From 90cee4c04bf53f25227451959c3914a845bbce29 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 10 Aug 2026 13:11:23 +1000 Subject: [PATCH 01/54] wip --- pkgs/ffigen/example/add/tool/ffigen.dart | 8 +- .../objective_c/avf_audio_bindings.dart | 1223 ----------------- .../example/objective_c/generate_code.dart | 13 +- pkgs/ffigen/lib/ffigen.dart | 2 + .../lib/src/code_generator/binding.dart | 3 + .../lib/src/code_generator/constant.dart | 3 + .../lib/src/code_generator/objc_methods.dart | 2 + .../lib/src/config_provider/config.dart | 206 +-- .../lib/src/config_provider/config_types.dart | 6 +- .../lib/src/config_provider/public_ast.dart | 122 ++ .../src/config_provider/public_visitor.dart | 8 + .../lib/src/config_provider/yaml_config.dart | 169 ++- pkgs/ffigen/lib/src/header_parser/parser.dart | 18 +- .../lib/src/visitor/apply_config_filters.dart | 71 +- .../src/visitor/fill_method_dependencies.dart | 6 +- .../ffigen/lib/src/visitor/list_bindings.dart | 16 + .../code_generator_test.dart | 8 - .../decl_decl_collision_test.dart | 6 - .../decl_symbol_address_collision_test.dart | 6 - .../reserved_keyword_collision_test.dart | 10 +- .../function_n_struct_test.dart | 8 - .../header_parser_tests/globals_test.dart | 8 - .../header_parser_tests/record_use_test.dart | 5 +- .../test/header_parser_tests/sort_test.dart | 7 +- .../large_objc_test.dart | 113 +- .../large_integration_tests/large_test.dart | 50 +- .../native_cpp_test/verify_bindings_test.dart | 29 +- .../native_objc_test/deprecated_test.dart | 84 +- .../test/native_objc_test/ns_range_test.dart | 14 +- .../swift_unavailable_test.dart | 13 +- .../native_objc_test/transitive_test.dart | 34 +- .../test/unit_tests/config_util_test.dart | 18 +- .../unit_tests/filtering_visitor_test.dart | 243 ++++ .../objc_inheritance_edge_case_test.dart | 5 +- .../unit_tests/objc_method_clone_test.dart | 5 +- 35 files changed, 836 insertions(+), 1706 deletions(-) create mode 100644 pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart diff --git a/pkgs/ffigen/example/add/tool/ffigen.dart b/pkgs/ffigen/example/add/tool/ffigen.dart index c8689b3166..d961c0ebbc 100644 --- a/pkgs/ffigen/example/add/tool/ffigen.dart +++ b/pkgs/ffigen/example/add/tool/ffigen.dart @@ -9,7 +9,13 @@ FfiGenerator getConfig(Uri packageRoot) { return FfiGenerator( output: Output(dartFile: packageRoot.resolve('lib/add.g.dart')), input: Input(entryPoints: [packageRoot.resolve('src/add.h')]), - functions: Functions.includeSet({'add'}), + visitors: [ + Visitor( + visitFunc: (node) { + if (node.name != 'add') node.isIncluded = false; + }, + ), + ], ); } diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index a5c0bfe631..e69de29bb2 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -1,1223 +0,0 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -// AUTO GENERATED FILE, DO NOT EDIT. -// -// Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; -import 'package:objective_c/objective_c.dart' as objc; -import 'package:ffi/ffi.dart' as pkg_ffi; - -const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); - -/// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include -/// AVAudioFormat in your config's objc-interfaces list. -/// -/// AVAudioFormat -extension type AVAudioFormat._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [AVAudioFormat] that points to the same underlying object as [other]. - AVAudioFormat.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioFormat', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } - - /// Constructs a [AVAudioFormat] that wraps the given raw object pointer. - AVAudioFormat.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioFormat', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } -} - -/// AVAudioPlayer -extension type AVAudioPlayer._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioPlayer] that points to the same underlying object as [other]. - AVAudioPlayer.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioPlayer', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - assert(isA(object$)); - } - - /// Constructs a [AVAudioPlayer] that wraps the given raw object pointer. - AVAudioPlayer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioPlayer', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [AVAudioPlayer]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_AVAudioPlayer, - ); - - /// alloc - static AVAudioPlayer alloc() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_alloc); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// allocWithZone: - static AVAudioPlayer allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_AVAudioPlayer, - _sel_allocWithZone_, - zone, - ); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// new - static AVAudioPlayer new$() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_new); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// Returns a new instance of AVAudioPlayer constructed with the default `new` method. - AVAudioPlayer() : this.as(new$().object$); -} - -extension AVAudioPlayer$Methods on AVAudioPlayer { - /// averagePowerForChannel: - double averagePowerForChannel(int channelNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.averagePowerForChannel:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_65s5ywFpret( - _$$ref.pointer, - _sel_averagePowerForChannel_, - channelNumber, - ) - : _objc_msgSend_65s5yw( - _$$ref.pointer, - _sel_averagePowerForChannel_, - channelNumber, - ); - } - - /// channelAssignments - objc.NSArray? get channelAssignments { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.channelAssignments', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_channelAssignments); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// currentDevice - objc.NSString? get currentDevice { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.currentDevice', - iOS: (true, null), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// currentTime - double get currentTime { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.currentTime', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); - } - - /// data - objc.NSData? get data { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.data', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// delegate - AVAudioPlayerDelegate? get delegate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.delegate', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); - return $ret.address == 0 - ? null - : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); - } - - /// deviceCurrentTime - double get deviceCurrentTime { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.deviceCurrentTime', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); - } - - /// duration - double get duration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.duration', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); - } - - /// enableRate - bool get enableRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.enableRate', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); - } - - /// format - AVAudioFormat get format { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.format', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); - return AVAudioFormat.fromPointer($ret, retain: true, release: true); - } - - /// init - AVAudioPlayer init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL:error: - AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithContentsOfURL:error:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithContentsOfURL:fileTypeHint:error: - AVAudioPlayer? initWithContentsOfURL$1( - objc.NSURL url, { - objc.NSString? fileTypeHint, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = fileTypeHint?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithContentsOfURL:fileTypeHint:error:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_fileTypeHint_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithData:error: - AVAudioPlayer? initWithData(objc.NSData data) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithData:error:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithData_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithData:fileTypeHint:error: - AVAudioPlayer? initWithData$1( - objc.NSData data, { - objc.NSString? fileTypeHint, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - final _$$ref$2 = fileTypeHint?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithData:fileTypeHint:error:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _$$ref.retainAndReturnPointer(), - _sel_initWithData_fileTypeHint_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// intendedSpatialExperience - CASpatialAudioExperience get intendedSpatialExperience { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.intendedSpatialExperience', - iOS: (true, null), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_intendedSpatialExperience, - ); - return CASpatialAudioExperience.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// isMeteringEnabled - bool get isMeteringEnabled { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.isMeteringEnabled', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); - } - - /// isPlaying - bool get isPlaying { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.isPlaying', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); - } - - /// numberOfChannels - int get numberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.numberOfChannels', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfChannels); - } - - /// numberOfLoops - int get numberOfLoops { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.numberOfLoops', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); - } - - /// pan - double get pan { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.pan', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); - } - - /// pause - void pause() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.pause', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); - } - - /// peakPowerForChannel: - double peakPowerForChannel(int channelNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.peakPowerForChannel:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_65s5ywFpret( - _$$ref.pointer, - _sel_peakPowerForChannel_, - channelNumber, - ) - : _objc_msgSend_65s5yw( - _$$ref.pointer, - _sel_peakPowerForChannel_, - channelNumber, - ); - } - - /// play - bool play() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.play', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); - } - - /// playAtTime: - bool playAtTime(double time) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.playAtTime:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time); - } - - /// prepareToPlay - bool prepareToPlay() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.prepareToPlay', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); - } - - /// rate - double get rate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.rate', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); - } - - /// setChannelAssignments: - set channelAssignments(objc.NSArray? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setChannelAssignments:', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setChannelAssignments_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setCurrentDevice: - set currentDevice(objc.NSString? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setCurrentDevice:', - iOS: (true, null), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setCurrentDevice_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setCurrentTime: - set currentTime(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setCurrentTime:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); - } - - /// setDelegate: - set delegate(AVAudioPlayerDelegate? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setDelegate:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setDelegate_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setEnableRate: - set enableRate(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setEnableRate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); - } - - /// setIntendedSpatialExperience: - set intendedSpatialExperience(CASpatialAudioExperience value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setIntendedSpatialExperience:', - iOS: (true, null), - macOS: (true, null), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setIntendedSpatialExperience_, - _$$ref$1.pointer, - ); - } - - /// setMeteringEnabled: - set isMeteringEnabled(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setMeteringEnabled:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setMeteringEnabled_, value); - } - - /// setNumberOfLoops: - set numberOfLoops(int value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setNumberOfLoops:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); - } - - /// setPan: - set pan(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setPan:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); - } - - /// setRate: - set rate(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setRate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); - } - - /// setVolume: - set volume(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setVolume:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); - } - - /// setVolume:fadeDuration: - void setVolume(double volume, {required double fadeDuration}) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setVolume:fadeDuration:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - _objc_msgSend_1p4uk9e( - _$$ref.pointer, - _sel_setVolume_fadeDuration_, - volume, - fadeDuration, - ); - } - - /// settings - objc.NSDictionary get settings { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.settings', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_settings); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// stop - void stop() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.stop', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); - } - - /// updateMeters - void updateMeters() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.updateMeters', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); - } - - /// url - objc.NSURL? get url { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.url', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// volume - double get volume { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.volume', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); - } -} - -/// WARNING: AVAudioPlayerDelegate is a stub. To generate bindings for this class, include -/// AVAudioPlayerDelegate in your config's objc-protocols list. -/// -/// AVAudioPlayerDelegate -extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [AVAudioPlayerDelegate] that points to the same underlying object as [other]. - AVAudioPlayerDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [AVAudioPlayerDelegate] that wraps the given raw object pointer. - AVAudioPlayerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include -/// CASpatialAudioExperience in your config's objc-interfaces list. -/// -/// CASpatialAudioExperience -extension type CASpatialAudioExperience._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [CASpatialAudioExperience] that points to the same underlying object as [other]. - CASpatialAudioExperience.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [CASpatialAudioExperience] that wraps the given raw object pointer. - CASpatialAudioExperience.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_AVAudioPlayer', -) -external ffi.Pointer _class_AVAudioPlayer_raw; -final _class_AVAudioPlayer = objc.getClass( - "AVAudioPlayer", - () => ffi.Native.addressOf>( - _class_AVAudioPlayer_raw, - ).cast(), -); -final _objc_msgSend_151sglz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18chyc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1p4uk9e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - double, - ) - >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_4sp4xj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_65s5yw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_65s5ywFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_91o635 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_v5hmet = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_xw2lbc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_alloc = objc.registerName("alloc"); -late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); -late final _sel_averagePowerForChannel_ = objc.registerName( - "averagePowerForChannel:", -); -late final _sel_channelAssignments = objc.registerName("channelAssignments"); -late final _sel_currentDevice = objc.registerName("currentDevice"); -late final _sel_currentTime = objc.registerName("currentTime"); -late final _sel_data = objc.registerName("data"); -late final _sel_delegate = objc.registerName("delegate"); -late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); -late final _sel_duration = objc.registerName("duration"); -late final _sel_enableRate = objc.registerName("enableRate"); -late final _sel_format = objc.registerName("format"); -late final _sel_init = objc.registerName("init"); -late final _sel_initWithContentsOfURL_error_ = objc.registerName( - "initWithContentsOfURL:error:", -); -late final _sel_initWithContentsOfURL_fileTypeHint_error_ = objc.registerName( - "initWithContentsOfURL:fileTypeHint:error:", -); -late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); -late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( - "initWithData:fileTypeHint:error:", -); -late final _sel_intendedSpatialExperience = objc.registerName( - "intendedSpatialExperience", -); -late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); -late final _sel_isPlaying = objc.registerName("isPlaying"); -late final _sel_new = objc.registerName("new"); -late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); -late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); -late final _sel_pan = objc.registerName("pan"); -late final _sel_pause = objc.registerName("pause"); -late final _sel_peakPowerForChannel_ = objc.registerName( - "peakPowerForChannel:", -); -late final _sel_play = objc.registerName("play"); -late final _sel_playAtTime_ = objc.registerName("playAtTime:"); -late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); -late final _sel_rate = objc.registerName("rate"); -late final _sel_setChannelAssignments_ = objc.registerName( - "setChannelAssignments:", -); -late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); -late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); -late final _sel_setDelegate_ = objc.registerName("setDelegate:"); -late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); -late final _sel_setIntendedSpatialExperience_ = objc.registerName( - "setIntendedSpatialExperience:", -); -late final _sel_setMeteringEnabled_ = objc.registerName("setMeteringEnabled:"); -late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); -late final _sel_setPan_ = objc.registerName("setPan:"); -late final _sel_setRate_ = objc.registerName("setRate:"); -late final _sel_setVolume_ = objc.registerName("setVolume:"); -late final _sel_setVolume_fadeDuration_ = objc.registerName( - "setVolume:fadeDuration:", -); -late final _sel_settings = objc.registerName("settings"); -late final _sel_stop = objc.registerName("stop"); -late final _sel_updateMeters = objc.registerName("updateMeters"); -late final _sel_url = objc.registerName("url"); -late final _sel_volume = objc.registerName("volume"); -typedef instancetype = ffi.Pointer; -typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/example/objective_c/generate_code.dart b/pkgs/ffigen/example/objective_c/generate_code.dart index 6c729474d0..1e8e865896 100644 --- a/pkgs/ffigen/example/objective_c/generate_code.dart +++ b/pkgs/ffigen/example/objective_c/generate_code.dart @@ -21,11 +21,14 @@ final config = FfiGenerator( // To tell FFIgen to generate Objective-C bindings, rather than C bindings, // set the objectiveC field to a non-null value. - objectiveC: ObjectiveC( - // The interfaces field is used to tell FFIgen which interfaces to generate - // bindings for. There's also a protocols and a categories field. - interfaces: Interfaces.includeSet({'AVAudioPlayer'}), - ), + objectiveC: const ObjectiveC(), + visitors: [ + Visitor( + visitObjCInterface: (node) { + if (node.name != 'AVAudioPlayer') node.isIncluded = false; + }, + ), + ], output: Output( // The Dart file where the bindings will be generated. diff --git a/pkgs/ffigen/lib/ffigen.dart b/pkgs/ffigen/lib/ffigen.dart index 504f1d560c..b2c31cb40b 100644 --- a/pkgs/ffigen/lib/ffigen.dart +++ b/pkgs/ffigen/lib/ffigen.dart @@ -22,6 +22,8 @@ export 'src/config_provider.dart' CommentStyle, CommentType, CompoundDependencies, + Cpp, + CppClasses, Declaration, Declarations, DynamicLibraryBindings, diff --git a/pkgs/ffigen/lib/src/code_generator/binding.dart b/pkgs/ffigen/lib/src/code_generator/binding.dart index 48c4e6b777..f72552bd93 100644 --- a/pkgs/ffigen/lib/src/code_generator/binding.dart +++ b/pkgs/ffigen/lib/src/code_generator/binding.dart @@ -38,6 +38,9 @@ abstract class Binding extends AstNode implements Declaration { /// Set by MarkBindingsVisitation. bool generateBindings = true; + /// Whether this binding is included by filter configuration. + bool isIncluded = true; + Binding({ required this.usr, required this.originalName, diff --git a/pkgs/ffigen/lib/src/code_generator/constant.dart b/pkgs/ffigen/lib/src/code_generator/constant.dart index e4ff470414..b8e875755f 100644 --- a/pkgs/ffigen/lib/src/code_generator/constant.dart +++ b/pkgs/ffigen/lib/src/code_generator/constant.dart @@ -61,6 +61,9 @@ class Constant extends NoLookUpBinding { ); } + @override + public_ast.AstNode? toPublicAstNode() => public_ast.Constant(this); + @override void visit(Visitation visitation) => visitation.visitConstant(this); } diff --git a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart index 0a8b7f5e69..962406beac 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart @@ -211,6 +211,7 @@ class ObjCMethod extends AstNode with HasLocalScope { Symbol? protocolMethodName; ObjCMethods? parent; ObjCMethod? setter; + bool isIncluded = true; @override void visitChildren(Visitor visitor, {bool omitMethodName = false}) { @@ -349,6 +350,7 @@ class ObjCMethod extends AstNode with HasLocalScope { ); clonedMethod.parent = parent; clonedMethod.protocolMethodName = protocolMethodName?.clone(); + clonedMethod.isIncluded = isIncluded; return clonedMethod; } diff --git a/pkgs/ffigen/lib/src/config_provider/config.dart b/pkgs/ffigen/lib/src/config_provider/config.dart index 5c19e8a85b..fadf6d1d65 100644 --- a/pkgs/ffigen/lib/src/config_provider/config.dart +++ b/pkgs/ffigen/lib/src/config_provider/config.dart @@ -105,15 +105,15 @@ final class FfiGenerator { const FfiGenerator({ this.input = const Input(), - this.enums = Enums.excludeAll, - this.functions = Functions.excludeAll, - this.globals = Globals.excludeAll, - this.macros = Macros.excludeAll, - this.structs = Structs.excludeAll, + this.enums = const Enums(), + this.functions = const Functions(), + this.globals = const Globals(), + this.macros = const Macros(), + this.structs = const Structs(), this.cpp, - this.typedefs = Typedefs.excludeAll, - this.unions = Unions.excludeAll, - this.unnamedEnums = UnnamedEnums.excludeAll, + this.typedefs = const Typedefs(), + this.unions = const Unions(), + this.unnamedEnums = const UnnamedEnums(), this.objectiveC, required this.output, this.visitors = const [], @@ -159,67 +159,16 @@ final class Input { /// Configuration for declarations. final class Declarations { - /// Whether to include the given declaration. - /// - /// ```dart - /// // This includes `Foo`, and nothing else: - /// include: (Declaration decl) => decl.originalName == 'Foo' - /// ``` - final bool Function(Declaration declaration) include; - - /// A function to pass to [include] that excludes all declarations. - static bool excludeAll(Declaration declaration) => false; - - /// A function to pass to [include] that includes all declarations. - static bool includeAll(Declaration declaration) => true; - - /// Returns a function to pass to [include] that includes all declarations - /// whose `originalName`s are in [names]. - static bool Function(Declaration) includeSet(Set names) => - (Declaration decl) => names.contains(decl.originalName); - - /// Whether the member of the declaration should be included. - /// - /// Only used for [Categories], [Interfaces], and [Protocols] methods and - /// properties. For Objective-C methods, this is the method selector, eg - /// `"arrayWithObjects:count:"`. - /// - /// Note that using [includeMember] to include a member of a class doesn't - /// affect whether the class is included. You'll also need to set [include] - /// for the class (this will be fixed in a future version of the API). - /// - /// ```dart - /// // This includes `Foo.bar`, and no other methods of `Foo`: - /// includeMember: (Declaration declaration, String member) => - /// ``` - // TODO(https://github.com/dart-lang/native/issues/2770): Merge with include. - final bool Function(Declaration declaration, String member) includeMember; - - /// A function to pass to [includeMember] that includes all members of all - /// declarations. - static bool includeAllMembers(Declaration declaration, String member) => true; - - /// A function to pass to [includeMember] that includes specific members. - /// - /// The map key is the declaration's `originalName`, and the value is the set - /// of member names to include. If the declaration is not in the map, all its - /// members are included. - static bool Function(Declaration, String) includeMemberSet( - Map> members, - ) => - (Declaration decl, String member) => - members[decl.originalName]?.contains(member) ?? true; - /// Whether the symbol address should be exposed for this declaration. /// /// The address is exposed as an FFI pointer. final bool Function(Declaration declaration) includeSymbolAddress; const Declarations({ - this.include = excludeAll, - this.includeMember = includeAllMembers, - this.includeSymbolAddress = excludeAll, + this.includeSymbolAddress = _includeSymbolAddressDefault, }); + + static bool _includeSymbolAddressDefault(Declaration declaration) => false; } /// Configuration for enum declarations. @@ -250,18 +199,7 @@ final class Enums extends Declarations { /// Whether to silence warning for enum integer type mimicking. final bool silenceWarning; - const Enums({ - super.include, - this.style = _styleDefault, - this.silenceWarning = false, - }); - - static const excludeAll = Enums(include: Declarations.excludeAll); - - static const includeAll = Enums(include: Declarations.includeAll); - - static Enums includeSet(Set names) => - Enums(include: Declarations.includeSet(names)); + const Enums({this.style = _styleDefault, this.silenceWarning = false}); } /// Configuration for how to generate enums. @@ -308,44 +246,22 @@ final class Functions extends Declarations { final Map> varArgs; const Functions({ - super.include, super.includeSymbolAddress, this.includeTypedef = _includeTypedefDefault, this.isLeaf = _isLeafDefault, this.recordUse = _recordUseDefault, this.varArgs = const >{}, }); - - static const excludeAll = Functions(include: Declarations.excludeAll); - - static const includeAll = Functions(include: Declarations.includeAll); - - static Functions includeSet(Set names) => - Functions(include: Declarations.includeSet(names)); } /// Configuration for globals. final class Globals extends Declarations { - const Globals({super.include, super.includeSymbolAddress}); - - static const excludeAll = Globals(include: Declarations.excludeAll); - - static const includeAll = Globals(include: Declarations.includeAll); - - static Globals includeSet(Set names) => - Globals(include: Declarations.includeSet(names)); + const Globals({super.includeSymbolAddress}); } /// Configuration for macros. final class Macros extends Declarations { - const Macros({super.include}); - - static const excludeAll = Macros(include: Declarations.excludeAll); - - static const includeAll = Macros(include: Declarations.includeAll); - - static Macros includeSet(Set names) => - Macros(include: Declarations.includeSet(names)); + const Macros(); } /// Configuration for struct declarations. @@ -359,17 +275,9 @@ final class Structs extends Declarations { static PackingValue? _packingOverrideDefault(Declaration declaration) => null; const Structs({ - super.include, this.dependencies = CompoundDependencies.opaque, this.packingOverride = _packingOverrideDefault, }); - - static const excludeAll = Structs(include: Declarations.excludeAll); - - static const includeAll = Structs(include: Declarations.includeAll); - - static Structs includeSet(Set names) => - Structs(include: Declarations.includeSet(names)); } /// Configuration for typedefs. @@ -382,28 +290,14 @@ final class Typedefs extends Declarations { final bool useSupportedTypedefs; const Typedefs({ - super.include, this.useSupportedTypedefs = true, this.includeUnused = false, }); - - static const Typedefs excludeAll = Typedefs(include: Declarations.excludeAll); - - static const Typedefs includeAll = Typedefs(include: Declarations.includeAll); - - static Typedefs includeSet(Set names) => - Typedefs(include: Declarations.includeSet(names)); } /// Configuration for C++ class declarations. final class CppClasses extends Declarations { - const CppClasses({super.include}); - - static const excludeAll = CppClasses(include: Declarations.excludeAll); - static const includeAll = CppClasses(include: Declarations.includeAll); - - static CppClasses includeSet(Set names) => - CppClasses(include: Declarations.includeSet(names)); + const CppClasses(); } /// Configuration for C++. @@ -411,7 +305,7 @@ final class Cpp { /// Declaration filters for C++ classes. final CppClasses classes; - const Cpp({this.classes = CppClasses.excludeAll}); + const Cpp({this.classes = const CppClasses()}); } /// Configuration for union declarations. @@ -419,29 +313,12 @@ final class Unions extends Declarations { /// Whether unions that are dependencies should be included. final CompoundDependencies dependencies; - const Unions({ - super.include, - this.dependencies = CompoundDependencies.opaque, - }); - - static const excludeAll = Unions(include: Declarations.excludeAll); - - static const includeAll = Unions(include: Declarations.includeAll); - - static Unions includeSet(Set names) => - Unions(include: Declarations.includeSet(names)); + const Unions({this.dependencies = CompoundDependencies.opaque}); } /// Configuration for unnamed enum constants. final class UnnamedEnums extends Declarations { - const UnnamedEnums({super.include}); - - static const excludeAll = UnnamedEnums(include: Declarations.excludeAll); - - static const includeAll = UnnamedEnums(include: Declarations.includeAll); - - static UnnamedEnums includeSet(Set names) => - UnnamedEnums(include: Declarations.includeSet(names)); + const UnnamedEnums(); } /// Configuration for Objective-C. @@ -468,9 +345,9 @@ final class ObjectiveC { final ExternalVersions externalVersions; const ObjectiveC({ - this.categories = Categories.excludeAll, - this.interfaces = Interfaces.excludeAll, - this.protocols = Protocols.excludeAll, + this.categories = const Categories(), + this.interfaces = const Interfaces(), + this.protocols = const Protocols(), this.externalVersions = const ExternalVersions(), @Deprecated('Only for internal use.') this.generateForPackageObjectiveC = false, @@ -485,18 +362,7 @@ final class Categories extends Declarations { /// transitively included categories will not be generated at all. final bool includeTransitive; - const Categories({ - super.include, - super.includeMember, - this.includeTransitive = true, - }); - - static const excludeAll = Categories(include: Declarations.excludeAll); - - static const includeAll = Categories(include: Declarations.includeAll); - - static Categories includeSet(Set names) => - Categories(include: Declarations.includeSet(names)); + const Categories({this.includeTransitive = true}); } /// Configuration for Objective-C interfaces. @@ -510,19 +376,7 @@ final class Interfaces extends Declarations { /// The module that the Objective-C interface belongs to. final String? Function(Declaration declaration) module; - const Interfaces({ - super.include, - super.includeMember, - this.includeTransitive = false, - this.module = noModule, - }); - - static const excludeAll = Interfaces(include: Declarations.excludeAll); - - static const includeAll = Interfaces(include: Declarations.includeAll); - - static Interfaces includeSet(Set names) => - Interfaces(include: Declarations.includeSet(names)); + const Interfaces({this.includeTransitive = false, this.module = noModule}); static String? noModule(Declaration declaration) => null; } @@ -538,19 +392,7 @@ final class Protocols extends Declarations { /// The module that the Objective-C protocol belongs to. final String? Function(Declaration declaration) module; - const Protocols({ - super.include, - super.includeMember, - this.includeTransitive = false, - this.module = noModule, - }); - - static const excludeAll = Protocols(include: Declarations.excludeAll); - - static const includeAll = Protocols(include: Declarations.includeAll); - - static Protocols includeSet(Set names) => - Protocols(include: Declarations.includeSet(names)); + const Protocols({this.includeTransitive = false, this.module = noModule}); static String? noModule(Declaration declaration) => null; } diff --git a/pkgs/ffigen/lib/src/config_provider/config_types.dart b/pkgs/ffigen/lib/src/config_provider/config_types.dart index f66c79c544..daa0f78e4a 100644 --- a/pkgs/ffigen/lib/src/config_provider/config_types.dart +++ b/pkgs/ffigen/lib/src/config_provider/config_types.dart @@ -147,11 +147,7 @@ final class YamlDeclarationFilters { _memberIncluder.shouldInclude(declaration.originalName, member); Declarations configAdapter() { - return Declarations( - include: shouldInclude, - includeSymbolAddress: shouldIncludeSymbolAddress, - includeMember: shouldIncludeMember, - ); + return Declarations(includeSymbolAddress: shouldIncludeSymbolAddress); } } diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index ae0551b0f6..c0ef3a535b 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -12,6 +12,9 @@ abstract class AstNode { const AstNode(); void accept(Visitor visitor); + + bool get isIncluded => true; + set isIncluded(bool value) {} } /// Base class for AST nodes with a name. @@ -62,6 +65,12 @@ class Func extends DeclNode { @override set name(String value) => _func.symbol.oldName = value; + + @override + bool get isIncluded => _func.isIncluded; + + @override + set isIncluded(bool value) => _func.isIncluded = value; } /// A C struct declaration. @@ -92,6 +101,17 @@ class Struct extends DeclNode { @override set name(String value) => _struct.symbol.oldName = value; + + bool get isInternal => _struct.isInternal; + + @override + bool get isIncluded => _struct.isIncluded; + + @override + set isIncluded(bool value) { + if (_struct.isInternal) return; + _struct.isIncluded = value; + } } /// A C union declaration. @@ -122,6 +142,12 @@ class Union extends DeclNode { @override set name(String value) => _union.symbol.oldName = value; + + @override + bool get isIncluded => _union.isIncluded; + + @override + set isIncluded(bool value) => _union.isIncluded = value; } /// An enum declaration. @@ -154,6 +180,12 @@ class EnumClass extends DeclNode { @override set name(String value) => _enumClass.symbol.oldName = value; + + @override + bool get isIncluded => _enumClass.isIncluded; + + @override + set isIncluded(bool value) => _enumClass.isIncluded = value; } /// A C global variable declaration. @@ -176,6 +208,40 @@ class Global extends DeclNode { @override set name(String value) => _global.symbol.oldName = value; + + @override + bool get isIncluded => _global.isIncluded; + + @override + set isIncluded(bool value) => _global.isIncluded = value; +} + +/// A C constant declaration. +class Constant extends DeclNode { + final internal.Constant _constant; + + Constant(this._constant); + + @override + void accept(Visitor visitor) => visitor.visitConstant(this); + + @override + String get usr => _constant.usr; + + @override + String get originalName => _constant.originalName; + + @override + String get name => _constant.symbol.oldName; + + @override + set name(String value) => _constant.symbol.oldName = value; + + @override + bool get isIncluded => _constant.isIncluded; + + @override + set isIncluded(bool value) => _constant.isIncluded = value; } /// A C macro constant declaration. @@ -198,6 +264,12 @@ class MacroConstant extends DeclNode { @override set name(String value) => _macro.symbol.oldName = value; + + @override + bool get isIncluded => _macro.isIncluded; + + @override + set isIncluded(bool value) => _macro.isIncluded = value; } /// A C typedef (type alias) declaration. @@ -220,6 +292,12 @@ class Typealias extends DeclNode { @override set name(String value) => _typealias.symbol.oldName = value; + + @override + bool get isIncluded => _typealias.isIncluded; + + @override + set isIncluded(bool value) => _typealias.isIncluded = value; } /// An Objective-C interface (class) declaration. @@ -250,6 +328,17 @@ class ObjCInterface extends DeclNode { @override set name(String value) => _interface.symbol.oldName = value; + + @override + bool get isIncluded => _interface.isIncluded; + + @override + set isIncluded(bool value) { + if (_interface.isInternal) return; + _interface.isIncluded = value; + } + + bool get isInternal => _interface.isInternal; } /// An Objective-C protocol declaration. @@ -280,6 +369,12 @@ class ObjCProtocol extends DeclNode { @override set name(String value) => _protocol.symbol.oldName = value; + + @override + bool get isIncluded => _protocol.isIncluded; + + @override + set isIncluded(bool value) => _protocol.isIncluded = value; } /// An Objective-C category declaration. @@ -313,6 +408,12 @@ class ObjCCategory extends DeclNode { @override set name(String value) => _category.symbol.oldName = value; + + @override + bool get isIncluded => _category.isIncluded; + + @override + set isIncluded(bool value) => _category.isIncluded = value; } /// A C++ class declaration. @@ -343,6 +444,12 @@ class CppClass extends DeclNode { @override set name(String value) => _cppClass.symbol.oldName = value; + + @override + bool get isIncluded => _cppClass.isIncluded; + + @override + set isIncluded(bool value) => _cppClass.isIncluded = value; } /// A field in a struct or union. @@ -480,6 +587,15 @@ class ObjCMethod extends NamedNode { /// Whether this method is a property setter. bool get isPropertySetter => _method.isPropertySetter; + + @override + bool get isIncluded => _method.isIncluded; + + @override + set isIncluded(bool value) { + if (parent case ObjCInterface itf when itf.isInternal) return; + _method.isIncluded = value; + } } /// An unnamed enum constant. @@ -502,4 +618,10 @@ class UnnamedEnumConstant extends DeclNode { @override set name(String value) => _constant.symbol.oldName = value; + + @override + bool get isIncluded => _constant.isIncluded; + + @override + set isIncluded(bool value) => _constant.isIncluded = value; } diff --git a/pkgs/ffigen/lib/src/config_provider/public_visitor.dart b/pkgs/ffigen/lib/src/config_provider/public_visitor.dart index b9f63349c2..87d75704d5 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_visitor.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_visitor.dart @@ -73,6 +73,7 @@ abstract base class Visitor { void Function(Union) visitUnion, void Function(EnumClass) visitEnum, void Function(Global) visitGlobal, + void Function(Constant) visitConstant, void Function(MacroConstant) visitMacro, void Function(Typealias) visitTypealias, void Function(ObjCInterface) visitObjCInterface, @@ -98,6 +99,7 @@ abstract base class Visitor { void visitUnion(Union node) {} void visitEnum(EnumClass node) {} void visitGlobal(Global node) {} + void visitConstant(Constant node) {} void visitMacro(MacroConstant node) {} void visitTypealias(Typealias node) {} void visitObjCInterface(ObjCInterface node) {} @@ -118,6 +120,7 @@ final class _CallbackVisitor extends Visitor { final void Function(Union) _visitUnion; final void Function(EnumClass) _visitEnum; final void Function(Global) _visitGlobal; + final void Function(Constant) _visitConstant; final void Function(MacroConstant) _visitMacro; final void Function(Typealias) _visitTypealias; final void Function(ObjCInterface) _visitObjCInterface; @@ -137,6 +140,7 @@ final class _CallbackVisitor extends Visitor { void Function(Union) visitUnion = _defaultVisit, void Function(EnumClass) visitEnum = _defaultVisit, void Function(Global) visitGlobal = _defaultVisit, + void Function(Constant) visitConstant = _defaultVisit, void Function(MacroConstant) visitMacro = _defaultVisit, void Function(Typealias) visitTypealias = _defaultVisit, void Function(ObjCInterface) visitObjCInterface = _defaultVisit, @@ -154,6 +158,7 @@ final class _CallbackVisitor extends Visitor { _visitUnion = visitUnion, _visitEnum = visitEnum, _visitGlobal = visitGlobal, + _visitConstant = visitConstant, _visitMacro = visitMacro, _visitTypealias = visitTypealias, _visitObjCInterface = visitObjCInterface, @@ -185,6 +190,9 @@ final class _CallbackVisitor extends Visitor { @override void visitGlobal(Global node) => _visitGlobal(node); + @override + void visitConstant(Constant node) => _visitConstant(node); + @override void visitMacro(MacroConstant node) => _visitMacro(node); diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index b628e13941..b03b9b1a4e 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -67,48 +67,92 @@ final class YamlConfig { late Map> _varArgFunctions = {}; /// Declaration config for Functions. - YamlDeclarationFilters get functionDecl => _functionDecl; - late YamlDeclarationFilters _functionDecl; + YamlDeclarationFilters get functionDecl => + _functionDecl ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _functionDecl; /// Declaration config for Structs. - YamlDeclarationFilters get structDecl => _structDecl; - late YamlDeclarationFilters _structDecl; + YamlDeclarationFilters get structDecl => + _structDecl ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _structDecl; /// Declaration config for Unions. - YamlDeclarationFilters get unionDecl => _unionDecl; - late YamlDeclarationFilters _unionDecl; + YamlDeclarationFilters get unionDecl => + _unionDecl ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _unionDecl; /// Declaration config for Enums. - YamlDeclarationFilters get enumClassDecl => _enumClassDecl; - late YamlDeclarationFilters _enumClassDecl; + YamlDeclarationFilters get enumClassDecl => + _enumClassDecl ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _enumClassDecl; /// Declaration config for Unnamed enum constants. - YamlDeclarationFilters get unnamedEnumConstants => _unnamedEnumConstants; - late YamlDeclarationFilters _unnamedEnumConstants; + YamlDeclarationFilters get unnamedEnumConstants => + _unnamedEnumConstants ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _unnamedEnumConstants; /// Declaration config for Globals. - YamlDeclarationFilters get globals => _globals; - late YamlDeclarationFilters _globals; + YamlDeclarationFilters get globals => + _globals ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _globals; /// Declaration config for Macro constants. - YamlDeclarationFilters get macroDecl => _macroDecl; - late YamlDeclarationFilters _macroDecl; + YamlDeclarationFilters get macroDecl => + _macroDecl ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _macroDecl; /// Declaration config for Typedefs. - YamlDeclarationFilters get typedefs => _typedefs; - late YamlDeclarationFilters _typedefs; + YamlDeclarationFilters get typedefs => + _typedefs ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _typedefs; /// Declaration config for Objective C interfaces. - YamlDeclarationFilters get objcInterfaces => _objcInterfaces; - late YamlDeclarationFilters _objcInterfaces; + YamlDeclarationFilters get objcInterfaces => + _objcInterfaces ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _objcInterfaces; /// Declaration config for Objective C protocols. - YamlDeclarationFilters get objcProtocols => _objcProtocols; - late YamlDeclarationFilters _objcProtocols; + YamlDeclarationFilters get objcProtocols => + _objcProtocols ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _objcProtocols; /// Declaration config for Objective C categories. - YamlDeclarationFilters get objcCategories => _objcCategories; - late YamlDeclarationFilters _objcCategories; + YamlDeclarationFilters get objcCategories => + _objcCategories ??= declarationConfigExtractor( + const {}, + _excludeAllByDefault, + ); + YamlDeclarationFilters? _objcCategories; /// If enabled, the default behavior of all declaration filters is to exclude /// everything, rather than include everything. @@ -1263,20 +1307,17 @@ final class YamlConfig { ), ), functions: Functions( - include: functionDecl.shouldInclude, includeSymbolAddress: functionDecl.shouldIncludeSymbolAddress, varArgs: varArgFunctions, includeTypedef: shouldExposeFunctionTypedef, isLeaf: isLeafFunction, ), structs: Structs( - include: _structDecl.shouldInclude, dependencies: _structDependencies, packingOverride: (decl) => _structPackingOverride.getOverridenPackValue(decl.originalName), ), enums: Enums( - include: _enumClassDecl.shouldInclude, silenceWarning: silenceEnumWarning, style: (e, suggestedStyle) { if (suggestedStyle != null) return suggestedStyle; @@ -1286,18 +1327,13 @@ final class YamlConfig { }; }, ), - unions: Unions( - include: _unionDecl.shouldInclude, - dependencies: _unionDependencies, - ), - unnamedEnums: UnnamedEnums(include: _unnamedEnumConstants.shouldInclude), + unions: Unions(dependencies: _unionDependencies), + unnamedEnums: const UnnamedEnums(), globals: Globals( - include: globals.shouldInclude, includeSymbolAddress: globals.shouldIncludeSymbolAddress, ), - macros: Macros(include: macroDecl.shouldInclude), + macros: const Macros(), typedefs: Typedefs( - include: typedefs.shouldInclude, useSupportedTypedefs: useSupportedTypedefs, includeUnused: includeUnusedTypedefs, ), @@ -1305,20 +1341,14 @@ final class YamlConfig { objectiveC: language == Language.objc ? ObjectiveC( interfaces: Interfaces( - include: objcInterfaces.shouldInclude, - includeMember: objcInterfaces.shouldIncludeMember, includeTransitive: includeTransitiveObjCInterfaces, module: interfaceModule, ), protocols: Protocols( - include: objcProtocols.shouldInclude, - includeMember: objcProtocols.shouldIncludeMember, includeTransitive: includeTransitiveObjCProtocols, module: protocolModule, ), categories: Categories( - include: objcCategories.shouldInclude, - includeMember: objcCategories.shouldIncludeMember, includeTransitive: includeTransitiveObjCCategories, ), externalVersions: externalVersions, @@ -1343,6 +1373,9 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitFunc(public_ast.Func node) { + if (!config.functionDecl.shouldInclude(_decl(node))) { + node.isIncluded = false; + } if (config.functionDecl.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1350,6 +1383,9 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitUnnamedEnumConstant(public_ast.UnnamedEnumConstant node) { + if (!config.unnamedEnumConstants.shouldInclude(_decl(node))) { + node.isIncluded = false; + } if (config.unnamedEnumConstants.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1357,6 +1393,9 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitStruct(public_ast.Struct node) { + if (!config.structDecl.shouldInclude(_decl(node))) { + node.isIncluded = false; + } if (config.structDecl.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1364,6 +1403,9 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitUnion(public_ast.Union node) { + if (!config.unionDecl.shouldInclude(_decl(node))) { + node.isIncluded = false; + } if (config.unionDecl.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1371,6 +1413,9 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitEnum(public_ast.EnumClass node) { + if (!config.enumClassDecl.shouldInclude(_decl(node))) { + node.isIncluded = false; + } if (config.enumClassDecl.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1378,6 +1423,19 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitGlobal(public_ast.Global node) { + if (!config.globals.shouldInclude(_decl(node))) { + node.isIncluded = false; + } + if (config.globals.rename(_decl(node)) case final rename?) { + node.name = rename; + } + } + + @override + void visitConstant(public_ast.Constant node) { + if (!config.globals.shouldInclude(_decl(node))) { + node.isIncluded = false; + } if (config.globals.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1385,6 +1443,9 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitMacro(public_ast.MacroConstant node) { + if (!config.macroDecl.shouldInclude(_decl(node))) { + node.isIncluded = false; + } if (config.macroDecl.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1392,6 +1453,9 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitTypealias(public_ast.Typealias node) { + if (!config.typedefs.shouldInclude(_decl(node))) { + node.isIncluded = false; + } if (config.typedefs.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1399,13 +1463,21 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitObjCInterface(public_ast.ObjCInterface node) { - if (config.objcInterfaces.rename(_decl(node)) case final rename?) { - node.name = rename; + if (!config.objcInterfaces.shouldInclude(_decl(node))) { + node.isIncluded = false; + } + if (!node.isInternal) { + if (config.objcInterfaces.rename(_decl(node)) case final rename?) { + node.name = rename; + } } } @override void visitObjCProtocol(public_ast.ObjCProtocol node) { + if (!config.objcProtocols.shouldInclude(_decl(node))) { + node.isIncluded = false; + } if (config.objcProtocols.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1413,6 +1485,9 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitObjCCategory(public_ast.ObjCCategory node) { + if (!config.objcCategories.shouldInclude(_decl(node))) { + node.isIncluded = false; + } if (config.objcCategories.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1431,12 +1506,16 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitObjCMethod(public_ast.ObjCMethod node) { - if (node.isPropertySetter) return; final decl = _getObjCDecl(node.parent); if (decl != null) { - if (decl.renameMember(_decl(node.parent), node.originalName) - case final rename?) { - node.name = rename; + if (!decl.shouldIncludeMember(_decl(node.parent), node.originalName)) { + node.isIncluded = false; + } + if (!node.isPropertySetter) { + if (decl.renameMember(_decl(node.parent), node.originalName) + case final rename?) { + node.name = rename; + } } } } diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index 544c980994..4e44ec2221 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -168,20 +168,18 @@ List _findObjectiveCSysroot() => [ List transformBindings(List rawBindings, Context context) { final config = context.config; - final nodes = rawBindings.map((b) => b.toPublicAstNode()).nonNulls.toList(); - for (final visitor in config.visitors) { - visitor.visitAll(nodes); - } - - final allBindings = visit( - context, - FindTransitiveDepsVisitation(), - rawBindings, - ).transitives; + final allBindings = rawBindings.toSet().union( + visit(context, FindTransitiveDepsVisitation(), rawBindings).transitives, + ); visit(context, CopyMethodsFromSuperTypesVisitation(), allBindings); visit(context, FixOverriddenMethodsVisitation(context), allBindings); + final nodes = allBindings.map((b) => b.toPublicAstNode()).nonNulls.toList(); + for (final visitor in config.visitors) { + visitor.visitAll(nodes); + } + final applyConfigFiltersVisitation = ApplyConfigFiltersVisitation(context); visit(context, applyConfigFiltersVisitation, allBindings); final directlyIncluded = applyConfigFiltersVisitation.directlyIncluded; diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index 345f28d390..cda46d0c1d 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -3,7 +3,6 @@ // BSD-style license that can be found in the LICENSE file. import '../code_generator.dart'; -import '../config_provider/config.dart' show Declarations; import '../context.dart'; import 'ast.dart'; @@ -14,79 +13,78 @@ class ApplyConfigFiltersVisitation extends Visitation { final indirectlyIncluded = {}; ApplyConfigFiltersVisitation(this.context); - void _visitImpl(Binding node, Declarations filters) { - node.visitChildren(visitor); + void _visitImpl(Binding node) { if (node.originalName == '') return; if (context.config.importType(node) != null) return; - if (filters.include(node)) directlyIncluded.add(node); + if (node.isIncluded) { + directlyIncluded.add(node); + } } @override - void visitStruct(Struct node) => _visitImpl(node, context.config.structs); + void visitStruct(Struct node) => _visitImpl(node); @override - void visitUnion(Union node) => _visitImpl(node, context.config.unions); + void visitUnion(Union node) => _visitImpl(node); @override void visitEnumClass(EnumClass node) { if (node.isAnonymous) return; - _visitImpl(node, context.config.enums); + _visitImpl(node); } @override void visitCppClass(CppClass node) { - final cppClasses = context.config.cpp?.classes; - if (cppClasses == null) return; - _visitImpl(node, cppClasses); + if (context.config.cpp == null) return; + _visitImpl(node); } @override - void visitFunc(Func node) => _visitImpl(node, context.config.functions); + void visitFunc(Func node) => _visitImpl(node); @override - void visitMacroConstant(MacroConstant node) => - _visitImpl(node, context.config.macros); + void visitMacroConstant(MacroConstant node) => _visitImpl(node); @override void visitObjCInterface(ObjCInterface node) { if (node.unavailable) return; - final objcInterfaces = context.config.objectiveC?.interfaces; - if (objcInterfaces == null) return; + if (context.config.objectiveC == null) return; + if (!node.isObjCImport) { + node.filterMethods((m) => !m.unavailable && m.isIncluded); + } if (!node.isInternal) { - node.filterMethods( - (m) => - !m.unavailable && - objcInterfaces.includeMember(node, m.originalName), - ); + _visitImpl(node); } - _visitImpl(node, objcInterfaces); // If this node is included, include all its super types. if (directlyIncluded.contains(node)) { - for (ObjCInterface? t = node; t != null; t = t.superType) { - if (!indirectlyIncluded.add(t)) break; + for (var t = node.superType; t != null; t = t.superType) { + if (!t.isObjCImport) { + if (!indirectlyIncluded.add(t)) break; + } } } } @override void visitObjCCategory(ObjCCategory node) { - final objcCategories = context.config.objectiveC?.categories; - if (objcCategories == null) return; + if (context.config.objectiveC == null) return; + node.filterMethods((m) { if (m.unavailable) return false; if (node.shouldCopyMethodToInterface(m)) return false; - return objcCategories.includeMember(node, m.originalName); + return m.isIncluded; }); - _visitImpl(node, objcCategories); + if (!node.isInternal) { + _visitImpl(node); + } } @override void visitObjCProtocol(ObjCProtocol node) { if (node.unavailable) return; - final objcProtocols = context.config.objectiveC?.protocols; - if (objcProtocols == null) return; + if (context.config.objectiveC == null) return; node.filterMethods((m) { // TODO(https://github.com/dart-lang/native/issues/1149): Support class @@ -96,28 +94,29 @@ class ApplyConfigFiltersVisitation extends Visitation { if (m.unavailable) return false; if (m.isClassMethod) return false; - return objcProtocols.includeMember(node, m.originalName); + return m.isIncluded; }); - _visitImpl(node, objcProtocols); + if (!node.isInternal) { + _visitImpl(node); + } } @override - void visitUnnamedEnumConstant(UnnamedEnumConstant node) => - _visitImpl(node, context.config.unnamedEnums); + void visitUnnamedEnumConstant(UnnamedEnumConstant node) => _visitImpl(node); @override - void visitGlobal(Global node) => _visitImpl(node, context.config.globals); + void visitGlobal(Global node) => _visitImpl(node); @override void visitConstant(Constant node) { // MacroConstant and UnnamedEnumConstant have their own overrides, so this // only applies to base Constants (e.g. from static const variables). - _visitImpl(node, context.config.globals); + _visitImpl(node); } @override void visitTypealias(Typealias node) { if (node.isAnonymous) return; - _visitImpl(node, context.config.typedefs); + _visitImpl(node); } } diff --git a/pkgs/ffigen/lib/src/visitor/fill_method_dependencies.dart b/pkgs/ffigen/lib/src/visitor/fill_method_dependencies.dart index 89672baddd..a7c9068f6c 100644 --- a/pkgs/ffigen/lib/src/visitor/fill_method_dependencies.dart +++ b/pkgs/ffigen/lib/src/visitor/fill_method_dependencies.dart @@ -105,7 +105,11 @@ class _MethodDepAdderVisitation extends Visitation { finalBindings.add(node); @override - void visitNoLookUpBinding(NoLookUpBinding node) => finalBindings.add(node); + void visitNoLookUpBinding(NoLookUpBinding node) { + if (node.isIncluded) { + finalBindings.add(node); + } + } @override void visitObjCBlock(ObjCBlock node) { diff --git a/pkgs/ffigen/lib/src/visitor/list_bindings.dart b/pkgs/ffigen/lib/src/visitor/list_bindings.dart index 6f9bfa6888..f110f6e8ae 100644 --- a/pkgs/ffigen/lib/src/visitor/list_bindings.dart +++ b/pkgs/ffigen/lib/src/visitor/list_bindings.dart @@ -140,6 +140,22 @@ class ListBindingsVisitation extends Visitation { node.visitChildren(visitor); } } + + @override + void visitMacroConstant(MacroConstant node) => + _visitImpl(node, _IncludeBehavior.configOnly); + + @override + void visitConstant(Constant node) => + _visitImpl(node, _IncludeBehavior.configOnly); + + @override + void visitUnnamedEnumConstant(UnnamedEnumConstant node) => + _visitImpl(node, _IncludeBehavior.configOnly); + + @override + void visitGlobal(Global node) => + _visitImpl(node, _IncludeBehavior.configOnly); } class MarkBindingsVisitation extends Visitation { diff --git a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart index af37007f67..619a254068 100644 --- a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart +++ b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart @@ -26,14 +26,6 @@ void main() { dartFile: Uri.file('unused'), style: const DynamicLibraryBindings(wrapperName: 'Bindings'), ), - enums: Enums.includeAll, - functions: Functions.includeAll, - globals: Globals.includeAll, - macros: Macros.includeAll, - structs: Structs.includeAll, - typedefs: Typedefs.includeAll, - unions: Unions.includeAll, - unnamedEnums: UnnamedEnums.includeAll, ), ); diff --git a/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart b/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart index 852edbee05..ca1435547c 100644 --- a/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart +++ b/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart @@ -17,12 +17,6 @@ void main() { dartFile: Uri.file('unused'), style: const DynamicLibraryBindings(wrapperName: 'Bindings'), ), - functions: Functions.includeAll, - structs: Structs.includeAll, - enums: Enums.includeAll, - globals: Globals.includeAll, - macros: Macros.includeAll, - typedefs: Typedefs.includeAll, ), ); final library = Library( diff --git a/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart b/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart index fce49fd9c5..902ef2cfbc 100644 --- a/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart +++ b/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart @@ -19,12 +19,6 @@ void main() { dartFile: Uri.file('unused'), style: const DynamicLibraryBindings(wrapperName: 'Bindings'), ), - functions: Functions.includeAll, - structs: Structs.includeAll, - enums: Enums.includeAll, - globals: Globals.includeAll, - macros: Macros.includeAll, - typedefs: Typedefs.includeAll, ), ); actual = Library( diff --git a/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart b/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart index 2274be87c6..6e79af52c0 100644 --- a/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart +++ b/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart @@ -33,15 +33,7 @@ void main() { ), ], ), - structs: Structs.includeAll, - unions: Unions.includeAll, - enums: Enums.includeAll, - functions: Functions.includeAll, - globals: Globals.includeAll, - typedefs: Typedefs( - include: (Declaration decl) => true, - includeUnused: true, - ), + typedefs: const Typedefs(includeUnused: true), ), ), ); diff --git a/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart b/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart index 5ec728234a..5a6646d8a4 100644 --- a/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart @@ -86,14 +86,6 @@ Library expectedLibrary() { dartFile: Uri.file('unused'), style: const DynamicLibraryBindings(), ), - enums: Enums.includeAll, - functions: Functions.includeAll, - globals: Globals.includeAll, - macros: Macros.includeAll, - structs: Structs.includeAll, - typedefs: Typedefs.includeAll, - unions: Unions.includeAll, - unnamedEnums: UnnamedEnums.includeAll, ), ); final struct1 = Struct( diff --git a/pkgs/ffigen/test/header_parser_tests/globals_test.dart b/pkgs/ffigen/test/header_parser_tests/globals_test.dart index df8a61b0bb..b0d4c32596 100644 --- a/pkgs/ffigen/test/header_parser_tests/globals_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/globals_test.dart @@ -95,14 +95,6 @@ Library expectedLibrary() { dartFile: Uri.file('unused'), style: const DynamicLibraryBindings(), ), - enums: Enums.includeAll, - functions: Functions.includeAll, - globals: Globals.includeAll, - macros: Macros.includeAll, - structs: Structs.includeAll, - typedefs: Typedefs.includeAll, - unions: Unions.includeAll, - unnamedEnums: UnnamedEnums.includeAll, ), ); final globalStruct = Struct(context: context, name: 'EmptyStruct'); diff --git a/pkgs/ffigen/test/header_parser_tests/record_use_test.dart b/pkgs/ffigen/test/header_parser_tests/record_use_test.dart index f46cd82f4f..6926ae07f2 100644 --- a/pkgs/ffigen/test/header_parser_tests/record_use_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/record_use_test.dart @@ -17,10 +17,7 @@ void main() { ); final generator = FfiGenerator( input: Input(entryPoints: [Uri.file(headerFile)]), - functions: Functions( - include: (decl) => true, - recordUse: (decl) => true, - ), + functions: Functions(recordUse: (decl) => true), visitors: [ Visitor( visitFunc: (node) { diff --git a/pkgs/ffigen/test/header_parser_tests/sort_test.dart b/pkgs/ffigen/test/header_parser_tests/sort_test.dart index 437ef2f928..6c94dbf114 100644 --- a/pkgs/ffigen/test/header_parser_tests/sort_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/sort_test.dart @@ -31,12 +31,7 @@ void main() { ), ], ), - structs: Structs.includeAll, - unions: Unions.includeAll, - typedefs: Typedefs( - include: (Declaration decl) => true, - includeUnused: true, - ), + typedefs: const Typedefs(includeUnused: true), ), ), ); diff --git a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart index 24dbc4c571..d0918e3f18 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart @@ -39,21 +39,16 @@ void main() { // TODO(https://github.com/dart-lang/sdk/issues/56247): Remove this. const inclusionRatio = 0.1; const seed = 1234; - bool randInclude(String kind, Declaration declaration, [String? member]) => + bool randInclude(String kind, DeclNode declaration, [String? member]) => fnvHash32('$seed.$kind.${declaration.usr}.$member') < ((1 << 32) * inclusionRatio); - bool Function(Declaration clazz) includeRandom( - String kind, [ + bool shouldIncludeNode( + String kind, + DeclNode declaration, [ Set forceIncludes = const {}, ]) => - (Declaration declaration) => - forceIncludes.contains(declaration.originalName) || - randInclude(kind, declaration); - bool Function(Declaration declaration, String member) includeMemberRandom( - String kind, - ) => - (Declaration clazz, String method) => - randInclude('$kind.memb', clazz, method); + forceIncludes.contains(declaration.originalName) || + randInclude(kind, declaration); final outFile = path.join( packagePathForTests, @@ -94,44 +89,76 @@ void main() { // ignore_for_file: unused_field ''', ), - functions: () { - return Functions(include: includeRandom('functionDecl')); - }(), - structs: () { - return Structs(include: includeRandom('structDecl')); - }(), - unions: () { - return Unions(include: includeRandom('unionDecl')); - }(), - enums: () { - return Enums(include: includeRandom('enums')); - }(), - unnamedEnums: () { - return UnnamedEnums(include: includeRandom('unnamedEnumConstants')); - }(), - globals: Globals(include: includeRandom('globals')), - typedefs: Typedefs(include: includeRandom('typedefs')), objectiveC: ObjectiveC( - interfaces: Interfaces( - include: includeRandom('objcInterfaces'), - includeMember: includeMemberRandom('objcInterfaces'), - includeTransitive: false, - ), - protocols: Protocols( - include: includeRandom('objcProtocols', forceIncludedProtocols), - includeMember: includeMemberRandom('objcProtocols'), - includeTransitive: false, - ), - categories: Categories( - include: includeRandom('objcCategories'), - includeMember: includeMemberRandom('objcCategories'), - includeTransitive: false, - ), + interfaces: const Interfaces(includeTransitive: false), + protocols: const Protocols(includeTransitive: false), + categories: const Categories(includeTransitive: false), externalVersions: ExternalVersions( ios: Versions(min: Version(12, 0, 0)), macos: Versions(min: Version(10, 14, 0)), ), ), + visitors: [ + Visitor( + visitFunc: (node) { + if (!shouldIncludeNode('functionDecl', node)) { + node.isIncluded = false; + } + }, + visitStruct: (node) { + if (!shouldIncludeNode('structDecl', node)) node.isIncluded = false; + }, + visitUnion: (node) { + if (!shouldIncludeNode('unionDecl', node)) node.isIncluded = false; + }, + visitEnum: (node) { + if (!shouldIncludeNode('enums', node)) node.isIncluded = false; + }, + visitUnnamedEnumConstant: (node) { + if (!shouldIncludeNode('unnamedEnumConstants', node)) { + node.isIncluded = false; + } + }, + visitGlobal: (node) { + if (!shouldIncludeNode('globals', node)) node.isIncluded = false; + }, + visitTypealias: (node) { + if (!shouldIncludeNode('typedefs', node)) node.isIncluded = false; + }, + visitObjCInterface: (node) { + if (!shouldIncludeNode('objcInterfaces', node)) { + node.isIncluded = false; + } + }, + visitObjCProtocol: (node) { + if (!shouldIncludeNode( + 'objcProtocols', + node, + forceIncludedProtocols, + )) { + node.isIncluded = false; + } + }, + visitObjCCategory: (node) { + if (!shouldIncludeNode('objcCategories', node)) { + node.isIncluded = false; + } + }, + visitObjCMethod: (node) { + final kind = switch (node.parent) { + ObjCInterface() => 'objcInterfaces', + ObjCProtocol() => 'objcProtocols', + ObjCCategory() => 'objcCategories', + _ => null, + }; + if (kind != null) { + if (!randInclude('$kind.memb', node.parent, node.originalName)) { + node.isIncluded = false; + } + } + }, + ), + ], ); final timer = Stopwatch()..start(); diff --git a/pkgs/ffigen/test/large_integration_tests/large_test.dart b/pkgs/ffigen/test/large_integration_tests/large_test.dart index b73d43b1c1..d63e8b3c53 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_test.dart @@ -2,9 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +import 'package:ffigen/ffigen.dart'; import 'package:ffigen/src/code_generator/imports.dart'; -import 'package:ffigen/src/config_provider/config.dart'; -import 'package:ffigen/src/config_provider/config_types.dart'; import 'package:ffigen/src/context.dart'; import 'package:ffigen/src/header_parser.dart'; import 'package:logging/logging.dart'; @@ -63,11 +62,6 @@ void main() { 'Index.h', ].any((filename) => header.pathSegments.last == filename), ), - functions: Functions.includeAll, - structs: Structs.includeAll, - enums: Enums.includeAll, - macros: Macros.includeAll, - typedefs: Typedefs(include: (_) => true), importType: (decl) => decl.originalName == 'time_t' ? ImportedType(ffiImport, 'Int64', 'int', 'time_t') : null, @@ -147,10 +141,6 @@ void main() { ], include: (Uri header) => header.pathSegments.last == 'cJSON.h', ), - functions: Functions.includeAll, - structs: Structs.includeAll, - macros: Macros.includeAll, - typedefs: Typedefs.includeAll, ); final context = testContext(generator); final library = parse(context); @@ -188,21 +178,29 @@ void main() { ], include: (Uri header) => header.pathSegments.last == 'sqlite3.h', ), - functions: Functions( - include: (declaration) => !{ - 'sqlite3_vmprintf', - 'sqlite3_vsnprintf', - 'sqlite3_str_vappendf', - }.contains(declaration.originalName), - ), - structs: Structs( - include: (declaration) => !vaRegex.hasMatch(declaration.originalName), - ), - globals: Globals.includeAll, - macros: Macros.includeAll, - typedefs: Typedefs( - include: (declaration) => !vaRegex.hasMatch(declaration.originalName), - ), + visitors: [ + Visitor( + visitFunc: (node) { + if ({ + 'sqlite3_vmprintf', + 'sqlite3_vsnprintf', + 'sqlite3_str_vappendf', + }.contains(node.originalName)) { + node.isIncluded = false; + } + }, + visitStruct: (node) { + if (vaRegex.hasMatch(node.originalName)) { + node.isIncluded = false; + } + }, + visitTypealias: (node) { + if (vaRegex.hasMatch(node.originalName)) { + node.isIncluded = false; + } + }, + ), + ], ); final context = testContext(generator); final library = parse(context); diff --git a/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart b/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart index 67b05eab5e..6b6faa69f5 100644 --- a/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart +++ b/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart @@ -4,7 +4,7 @@ import 'dart:io'; -import 'package:ffigen/src/config_provider/config.dart'; +import 'package:ffigen/ffigen.dart'; import 'package:path/path.dart' as path; import 'package:test/test.dart'; @@ -44,9 +44,19 @@ void main() { ], compilerOptions: ['-x', 'c++'], ), - cpp: Cpp( - classes: CppClasses.includeSet({'Animal', 'FinalizerTestSubject'}), - ), + cpp: const Cpp(), + visitors: [ + Visitor( + visitCppClass: (node) { + if (!{ + 'Animal', + 'FinalizerTestSubject', + }.contains(node.originalName)) { + node.isIncluded = false; + } + }, + ), + ], ), 'memory_edge_cases': FfiGenerator( output: Output( @@ -61,7 +71,16 @@ void main() { ], compilerOptions: ['-x', 'c++'], ), - cpp: Cpp(classes: CppClasses.includeSet({'Node', 'NodeManager'})), + cpp: const Cpp(), + visitors: [ + Visitor( + visitCppClass: (node) { + if (!{'Node', 'NodeManager'}.contains(node.originalName)) { + node.isIncluded = false; + } + }, + ), + ], ), }; diff --git a/pkgs/ffigen/test/native_objc_test/deprecated_test.dart b/pkgs/ffigen/test/native_objc_test/deprecated_test.dart index 8ac506414a..6a9e2af022 100644 --- a/pkgs/ffigen/test/native_objc_test/deprecated_test.dart +++ b/pkgs/ffigen/test/native_objc_test/deprecated_test.dart @@ -45,35 +45,65 @@ String bindingsForVersion({Versions? iosVers, Versions? macosVers}) { ], ), objectiveC: ObjectiveC( - interfaces: Interfaces( - include: (decl) => { - 'DeprecatedInterfaceMethods', - 'DeprecatedInterface', - }.contains(decl.originalName), - ), - protocols: Protocols( - include: (decl) => { - 'DeprecatedProtocolMethods', - 'DeprecatedProtocol', - }.contains(decl.originalName), - ), - categories: Categories( - include: (decl) => { - 'DeprecatedCategoryMethods', - 'DeprecatedCategory', - }.contains(decl.originalName), - includeTransitive: false, - ), + categories: const Categories(includeTransitive: false), externalVersions: ExternalVersions(ios: iosVers, macos: macosVers), ), - functions: Functions.includeSet({'normalFunction', 'deprecatedFunction'}), - structs: Structs.includeSet({'NormalStruct', 'DeprecatedStruct'}), - unions: Unions.includeSet({'NormalUnion', 'DeprecatedUnion'}), - enums: Enums.includeSet({'NormalEnum', 'DeprecatedEnum'}), - unnamedEnums: UnnamedEnums.includeSet({ - 'normalUnnamedEnum', - 'deprecatedUnnamedEnum', - }), + visitors: [ + Visitor( + visitObjCInterface: (node) { + if (!{ + 'DeprecatedInterfaceMethods', + 'DeprecatedInterface', + }.contains(node.originalName)) { + node.isIncluded = false; + } + }, + visitObjCProtocol: (node) { + if (!{ + 'DeprecatedProtocolMethods', + 'DeprecatedProtocol', + }.contains(node.originalName)) { + node.isIncluded = false; + } + }, + visitObjCCategory: (node) { + if (!{ + 'DeprecatedCategoryMethods', + 'DeprecatedCategory', + }.contains(node.originalName)) { + node.isIncluded = false; + } + }, + visitFunc: (node) { + if (!{'normalFunction', 'deprecatedFunction'}.contains(node.originalName)) { + node.isIncluded = false; + } + }, + visitStruct: (node) { + if (!{'NormalStruct', 'DeprecatedStruct'}.contains(node.originalName)) { + node.isIncluded = false; + } + }, + visitUnion: (node) { + if (!{'NormalUnion', 'DeprecatedUnion'}.contains(node.originalName)) { + node.isIncluded = false; + } + }, + visitEnum: (node) { + if (!{'NormalEnum', 'DeprecatedEnum'}.contains(node.originalName)) { + node.isIncluded = false; + } + }, + visitUnnamedEnumConstant: (node) { + if (!{ + 'normalUnnamedEnum', + 'deprecatedUnnamedEnum', + }.contains(node.originalName)) { + node.isIncluded = false; + } + }, + ), + ], ).generate(logger: createTestLogger()); final file = path.join( packagePathForTests, diff --git a/pkgs/ffigen/test/native_objc_test/ns_range_test.dart b/pkgs/ffigen/test/native_objc_test/ns_range_test.dart index 5928169617..8297cc79ea 100644 --- a/pkgs/ffigen/test/native_objc_test/ns_range_test.dart +++ b/pkgs/ffigen/test/native_objc_test/ns_range_test.dart @@ -46,12 +46,16 @@ void main() { ), ], ), - objectiveC: ObjectiveC( - interfaces: Interfaces( - include: (decl) => - {'SFTranscriptionSegment'}.contains(decl.originalName), + objectiveC: const ObjectiveC(), + visitors: [ + Visitor( + visitObjCInterface: (node) { + if (node.originalName != 'SFTranscriptionSegment') { + node.isIncluded = false; + } + }, ), - ), + ], ).generate(logger: createTestLogger()); final file = path.join( packagePathForTests, diff --git a/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart b/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart index 6e645c3f9c..e208084f84 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart @@ -47,11 +47,16 @@ void main() { ), ], ), - objectiveC: ObjectiveC( - interfaces: Interfaces( - include: (decl) => {'Animal'}.contains(decl.originalName), + objectiveC: const ObjectiveC(), + visitors: [ + Visitor( + visitObjCInterface: (node) { + if (node.originalName != 'Animal') { + node.isIncluded = false; + } + }, ), - ), + ], ).generate(logger: createTestLogger()); final file = path.join( packagePathForTests, diff --git a/pkgs/ffigen/test/native_objc_test/transitive_test.dart b/pkgs/ffigen/test/native_objc_test/transitive_test.dart index f247a964ac..f6ca814482 100644 --- a/pkgs/ffigen/test/native_objc_test/transitive_test.dart +++ b/pkgs/ffigen/test/native_objc_test/transitive_test.dart @@ -49,25 +49,39 @@ String generate({ ), objectiveC: ObjectiveC( interfaces: Interfaces( - include: (decl) => { - 'DirectlyIncluded', - 'DirectlyIncludedWithProtocol', - 'DirectlyIncludedIntForCat', - 'Bug2935DirectInterface', - }.contains(decl.originalName), includeTransitive: includeTransitiveObjCInterfaces, ), protocols: Protocols( - include: (decl) => - {'DirectlyIncludedProtocol'}.contains(decl.originalName), includeTransitive: includeTransitiveObjCProtocols, ), categories: Categories( - include: (decl) => - {'DirectlyIncludedCategory'}.contains(decl.originalName), includeTransitive: includeTransitiveObjCCategories, ), ), + visitors: [ + Visitor( + visitObjCInterface: (node) { + if (!{ + 'DirectlyIncluded', + 'DirectlyIncludedWithProtocol', + 'DirectlyIncludedIntForCat', + 'Bug2935DirectInterface', + }.contains(node.originalName)) { + node.isIncluded = false; + } + }, + visitObjCProtocol: (node) { + if (node.originalName != 'DirectlyIncludedProtocol') { + node.isIncluded = false; + } + }, + visitObjCCategory: (node) { + if (node.originalName != 'DirectlyIncludedCategory') { + node.isIncluded = false; + } + }, + ), + ], ).generate(logger: createTestLogger()); final file = path.join( packagePathForTests, diff --git a/pkgs/ffigen/test/unit_tests/config_util_test.dart b/pkgs/ffigen/test/unit_tests/config_util_test.dart index e7b74fe8b4..d2e7299702 100644 --- a/pkgs/ffigen/test/unit_tests/config_util_test.dart +++ b/pkgs/ffigen/test/unit_tests/config_util_test.dart @@ -9,21 +9,9 @@ Declaration decl(String name) => Declaration(usr: '', originalName: name); void main() { group('Declarations utils', () { - test('includeSet', () { - final includer = Declarations.includeSet({'foo', 'bar'}); - expect(includer(decl('foo')), isTrue); - expect(includer(decl('bar')), isTrue); - expect(includer(decl('baz')), isFalse); - }); - - test('includeMemberSet', () { - final includer = Declarations.includeMemberSet({ - 'foo': {'bar'}, - }); - expect(includer(decl('foo'), 'bar'), isTrue); - expect(includer(decl('foo'), 'baz'), isFalse); - expect(includer(decl('goo'), 'bar'), isTrue); - expect(includer(decl('goo'), 'baz'), isTrue); + test('default includeSymbolAddress', () { + final decls = const Declarations(); + expect(decls.includeSymbolAddress(decl('foo')), isFalse); }); }); } diff --git a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart new file mode 100644 index 0000000000..ca7ebc6752 --- /dev/null +++ b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart @@ -0,0 +1,243 @@ +// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +import 'package:ffigen/ffigen.dart' show FfiGenerator, Output, YamlConfig; +import 'package:ffigen/src/code_generator.dart'; +import 'package:ffigen/src/config_provider/public_ast.dart' as public_ast; +import 'package:ffigen/src/header_parser/sub_parsers/api_availability.dart'; +import 'package:ffigen/src/visitor/apply_config_filters.dart'; +import 'package:ffigen/src/visitor/visitor.dart'; +import 'package:test/test.dart'; +import 'package:yaml/yaml.dart'; + +import '../test_utils.dart'; + +final class FilteringVisitor extends public_ast.Visitor { + FilteringVisitor() : super.base(); + + @override + void visitFunc(public_ast.Func node) { + if (node.originalName == 'excluded_func') { + node.isIncluded = false; + } + } + + @override + void visitStruct(public_ast.Struct node) { + if (node.originalName == 'excluded_struct') { + node.isIncluded = false; + } + } + + @override + void visitUnion(public_ast.Union node) { + if (node.originalName == 'excluded_union') { + node.isIncluded = false; + } + } + + @override + void visitEnum(public_ast.EnumClass node) { + if (node.originalName == 'excluded_enum') { + node.isIncluded = false; + } + } + + @override + void visitGlobal(public_ast.Global node) { + if (node.originalName == 'excluded_global') { + node.isIncluded = false; + } + } + + @override + void visitMacro(public_ast.MacroConstant node) { + if (node.originalName == 'EXCLUDED_MACRO') { + node.isIncluded = false; + } + } + + @override + void visitTypealias(public_ast.Typealias node) { + if (node.originalName == 'excluded_typedef') { + node.isIncluded = false; + } + } + + @override + void visitObjCInterface(public_ast.ObjCInterface node) { + if (node.originalName == 'ExcludedInterface') { + node.isIncluded = false; + } + } + + @override + void visitObjCProtocol(public_ast.ObjCProtocol node) { + if (node.originalName == 'ExcludedProtocol') { + node.isIncluded = false; + } + } + + @override + void visitObjCCategory(public_ast.ObjCCategory node) { + if (node.originalName == 'ExcludedCategory') { + node.isIncluded = false; + } + } + + @override + void visitCppClass(public_ast.CppClass node) { + if (node.originalName == 'ExcludedCppClass') { + node.isIncluded = false; + } + } + + @override + void visitUnnamedEnumConstant(public_ast.UnnamedEnumConstant node) { + if (node.originalName == 'EXCLUDED_UNNAMED_ENUM') { + node.isIncluded = false; + } + } + + @override + void visitObjCMethod(public_ast.ObjCMethod node) { + if (node.originalName == 'excludedMethod') { + node.isIncluded = false; + } + } +} + +void main() { + group('FilteringVisitor Tests', () { + test('isIncluded defaults to true on Bindings and ObjCMethod', () { + final context = testContext( + FfiGenerator(output: Output(dartFile: Uri.file('out.dart'))), + ); + + final func = Func( + name: 'my_func', + originalName: 'my_func', + returnType: voidType, + ); + expect(func.isIncluded, isTrue); + + final method = ObjCMethod( + context: context, + originalName: 'myMethod', + name: 'myMethod', + kind: ObjCMethodKind.method, + isClassMethod: false, + isOptional: false, + returnType: voidType, + family: null, + apiAvailability: ApiAvailability.all, + params: [], + ownershipAttribute: null, + consumesSelfAttribute: false, + ); + expect(method.isIncluded, isTrue); + }); + + test('Custom Visitor setting isIncluded = false', () { + final context = testContext( + FfiGenerator(output: Output(dartFile: Uri.file('out.dart'))), + ); + + final includedFunc = Func( + name: 'included_func', + originalName: 'included_func', + returnType: voidType, + ); + + final excludedFunc = Func( + name: 'excluded_func', + originalName: 'excluded_func', + returnType: voidType, + ); + + final includedStruct = Struct( + name: 'included_struct', + originalName: 'included_struct', + context: context, + ); + + final excludedStruct = Struct( + name: 'excluded_struct', + originalName: 'excluded_struct', + context: context, + ); + + final rawBindings = [ + includedFunc, + excludedFunc, + includedStruct, + excludedStruct, + ]; + + final nodes = rawBindings + .map((b) => b.toPublicAstNode()) + .nonNulls + .toList(); + + FilteringVisitor().visitAll(nodes); + + expect(includedFunc.isIncluded, isTrue); + expect(excludedFunc.isIncluded, isFalse); + expect(includedStruct.isIncluded, isTrue); + expect(excludedStruct.isIncluded, isFalse); + + final visitation = ApplyConfigFiltersVisitation(context); + visit(context, visitation, rawBindings); + + expect(visitation.directlyIncluded.contains(includedFunc), isTrue); + expect(visitation.directlyIncluded.contains(excludedFunc), isFalse); + expect(visitation.directlyIncluded.contains(includedStruct), isTrue); + expect(visitation.directlyIncluded.contains(excludedStruct), isFalse); + }); + + test( + 'YamlConfigAstVisitor sets isIncluded = false from YAML configuration', + () { + final yamlConfig = YamlConfig.fromYaml( + loadYaml(r''' +output: 'out.dart' +headers: + entry-points: + - 'foo.h' +functions: + include: + - 'funcA' +structs: + include: + - 'StructA' +''') as YamlMap, + createTestLogger(), + ); + + final generator = yamlConfig.configAdapter(); + final yamlVisitor = generator.visitors.first; + + final funcA = Func( + name: 'funcA', + originalName: 'funcA', + returnType: voidType, + ); + final funcB = Func( + name: 'funcB', + originalName: 'funcB', + returnType: voidType, + ); + + final nodes = [ + funcA, + funcB, + ].map((b) => b.toPublicAstNode()).nonNulls.toList(); + yamlVisitor.visitAll(nodes); + + expect(funcA.isIncluded, isTrue); + expect(funcB.isIncluded, isFalse); + }, + ); + }); +} diff --git a/pkgs/ffigen/test/unit_tests/objc_inheritance_edge_case_test.dart b/pkgs/ffigen/test/unit_tests/objc_inheritance_edge_case_test.dart index 7600f5fa22..f93c1cd42a 100644 --- a/pkgs/ffigen/test/unit_tests/objc_inheritance_edge_case_test.dart +++ b/pkgs/ffigen/test/unit_tests/objc_inheritance_edge_case_test.dart @@ -19,10 +19,7 @@ void main() { ); final config = FfiGenerator( output: Output(dartFile: Uri.file('unused')), - objectiveC: const ObjectiveC( - interfaces: Interfaces.includeAll, - categories: Categories.includeAll, - ), + objectiveC: const ObjectiveC(), ); late Context context; final voidType = NativeType(SupportedNativeType.voidType); diff --git a/pkgs/ffigen/test/unit_tests/objc_method_clone_test.dart b/pkgs/ffigen/test/unit_tests/objc_method_clone_test.dart index bb1d5c047f..600d90a668 100644 --- a/pkgs/ffigen/test/unit_tests/objc_method_clone_test.dart +++ b/pkgs/ffigen/test/unit_tests/objc_method_clone_test.dart @@ -18,10 +18,7 @@ void main() { ); final config = FfiGenerator( output: Output(dartFile: Uri.file('unused')), - objectiveC: const ObjectiveC( - interfaces: Interfaces.includeAll, - categories: Categories.includeAll, - ), + objectiveC: const ObjectiveC(), ); late Context context; final voidType = NativeType(SupportedNativeType.voidType); From 5b864507fb89f3f38a641975884a72b9f40b6c01 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 10 Aug 2026 16:10:07 +1000 Subject: [PATCH 02/54] Lazy AST node wrappers --- .../lib/src/config_provider/public_ast.dart | 88 +++++++++---------- 1 file changed, 43 insertions(+), 45 deletions(-) diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index c0ef3a535b..3aa9698117 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -42,11 +42,11 @@ class Func extends DeclNode { final internal.Func _func; /// The parameters of this function. - final List params; + late final List params = _func.functionType.parameters + .map((p) => Param(this, p)) + .toList(); - Func(this._func) : params = [] { - params.addAll(_func.functionType.parameters.map((p) => Param(this, p))); - } + Func(this._func); @override void accept(Visitor visitor) { @@ -78,11 +78,11 @@ class Struct extends DeclNode { final internal.Struct _struct; /// The fields belonging to this struct. - final List members; + late final List members = _struct.members + .map((m) => Field(this, m)) + .toList(); - Struct(this._struct) : members = [] { - members.addAll(_struct.members.map((m) => Field(this, m))); - } + Struct(this._struct); @override void accept(Visitor visitor) { @@ -119,11 +119,11 @@ class Union extends DeclNode { final internal.Union _union; /// The fields belonging to this union. - final List members; + late final List members = _union.members + .map((m) => Field(this, m)) + .toList(); - Union(this._union) : members = [] { - members.addAll(_union.members.map((m) => Field(this, m))); - } + Union(this._union); @override void accept(Visitor visitor) { @@ -155,13 +155,11 @@ class EnumClass extends DeclNode { final internal.EnumClass _enumClass; /// The constants belonging to this enum. - final List constants; + late final List constants = _enumClass.enumConstants + .map((c) => EnumConstant(this, c)) + .toList(); - EnumClass(this._enumClass) : constants = [] { - constants.addAll( - _enumClass.enumConstants.map((c) => EnumConstant(this, c)), - ); - } + EnumClass(this._enumClass); @override void accept(Visitor visitor) { @@ -305,11 +303,11 @@ class ObjCInterface extends DeclNode { final internal.ObjCInterface _interface; /// The methods belonging to this Objective-C interface. - final List methods; + late final List methods = _interface.methods + .map((m) => ObjCMethod(this, m)) + .toList(); - ObjCInterface(this._interface) : methods = [] { - methods.addAll(_interface.methods.map((m) => ObjCMethod(this, m))); - } + ObjCInterface(this._interface); @override void accept(Visitor visitor) { @@ -346,11 +344,11 @@ class ObjCProtocol extends DeclNode { final internal.ObjCProtocol _protocol; /// The methods belonging to this Objective-C protocol. - final List methods; + late final List methods = _protocol.methods + .map((m) => ObjCMethod(this, m)) + .toList(); - ObjCProtocol(this._protocol) : methods = [] { - methods.addAll(_protocol.methods.map((m) => ObjCMethod(this, m))); - } + ObjCProtocol(this._protocol); @override void accept(Visitor visitor) { @@ -382,14 +380,14 @@ class ObjCCategory extends DeclNode { final internal.ObjCCategory _category; /// The methods belonging to this Objective-C category. - final List methods; - - ObjCCategory(this._category) : methods = [] { - methods.addAll(_category.methods.map((m) => ObjCMethod(this, m))); - } + late final List methods = _category.methods + .map((m) => ObjCMethod(this, m)) + .toList(); /// The [ObjCInterface] that this category extends. - ObjCInterface get interface => ObjCInterface(_category.parent); + late final ObjCInterface interface = ObjCInterface(_category.parent); + + ObjCCategory(this._category); @override void accept(Visitor visitor) { @@ -421,11 +419,11 @@ class CppClass extends DeclNode { final internal.CppClass _cppClass; /// The methods belonging to this C++ class. - final List methods; + late final List methods = _cppClass.methods + .map((m) => CppMethod(this, m)) + .toList(); - CppClass(this._cppClass) : methods = [] { - methods.addAll(_cppClass.methods.map((m) => CppMethod(this, m))); - } + CppClass(this._cppClass); @override void accept(Visitor visitor) { @@ -524,14 +522,14 @@ class CppMethod extends NamedNode { final internal.CppMethod _method; /// The parameters of this C++ method. - final List params; + late final List params = _method.parameters + .map((p) => Param(this, p)) + .toList(); /// The parent [CppClass] containing this C++ method. final CppClass parent; - CppMethod(this.parent, this._method) : params = [] { - params.addAll(_method.parameters.map((p) => Param(this, p))); - } + CppMethod(this.parent, this._method); @override void accept(Visitor visitor) { @@ -554,15 +552,15 @@ class ObjCMethod extends NamedNode { final internal.ObjCMethod _method; /// The parameters of this Objective-C method. - final List params; + late final List params = _method.params + .map((p) => Param(this, p)) + .toList(); /// The parent AST node containing this Objective-C method (an /// [ObjCInterface], [ObjCProtocol], or [ObjCCategory]). final DeclNode parent; - ObjCMethod(this.parent, this._method) : params = [] { - params.addAll(_method.params.map((p) => Param(this, p))); - } + ObjCMethod(this.parent, this._method); @override void accept(Visitor visitor) { @@ -593,7 +591,7 @@ class ObjCMethod extends NamedNode { @override set isIncluded(bool value) { - if (parent case ObjCInterface itf when itf.isInternal) return; + if (parent case final ObjCInterface itf when itf.isInternal) return; _method.isIncluded = value; } } From 6e419f825ec9a21f767f2e634d331cd65acaef79 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 10 Aug 2026 16:26:46 +1000 Subject: [PATCH 03/54] Don't visit children of excluded elements --- .../lib/src/config_provider/public_ast.dart | 20 +- .../unit_tests/filtering_visitor_test.dart | 199 +++++++++++++++++- 2 files changed, 208 insertions(+), 11 deletions(-) diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index 3aa9698117..7265dd26b5 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -51,7 +51,7 @@ class Func extends DeclNode { @override void accept(Visitor visitor) { visitor.visitFunc(this); - visitor.visitAll(params); + if (isIncluded) visitor.visitAll(params); } @override @@ -87,7 +87,7 @@ class Struct extends DeclNode { @override void accept(Visitor visitor) { visitor.visitStruct(this); - visitor.visitAll(members); + if (isIncluded) visitor.visitAll(members); } @override @@ -128,7 +128,7 @@ class Union extends DeclNode { @override void accept(Visitor visitor) { visitor.visitUnion(this); - visitor.visitAll(members); + if (isIncluded) visitor.visitAll(members); } @override @@ -164,7 +164,7 @@ class EnumClass extends DeclNode { @override void accept(Visitor visitor) { visitor.visitEnum(this); - visitor.visitAll(constants); + if (isIncluded) visitor.visitAll(constants); } @override @@ -312,7 +312,7 @@ class ObjCInterface extends DeclNode { @override void accept(Visitor visitor) { visitor.visitObjCInterface(this); - visitor.visitAll(methods); + if (isIncluded) visitor.visitAll(methods); } @override @@ -353,7 +353,7 @@ class ObjCProtocol extends DeclNode { @override void accept(Visitor visitor) { visitor.visitObjCProtocol(this); - visitor.visitAll(methods); + if (isIncluded) visitor.visitAll(methods); } @override @@ -392,7 +392,7 @@ class ObjCCategory extends DeclNode { @override void accept(Visitor visitor) { visitor.visitObjCCategory(this); - visitor.visitAll(methods); + if (isIncluded) visitor.visitAll(methods); } @override @@ -428,7 +428,7 @@ class CppClass extends DeclNode { @override void accept(Visitor visitor) { visitor.visitCppClass(this); - visitor.visitAll(methods); + if (isIncluded) visitor.visitAll(methods); } @override @@ -534,7 +534,7 @@ class CppMethod extends NamedNode { @override void accept(Visitor visitor) { visitor.visitCppMethod(this); - visitor.visitAll(params); + if (isIncluded) visitor.visitAll(params); } @override @@ -565,7 +565,7 @@ class ObjCMethod extends NamedNode { @override void accept(Visitor visitor) { visitor.visitObjCMethod(this); - visitor.visitAll(params); + if (isIncluded) visitor.visitAll(params); } /// The Objective-C method selector string. diff --git a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart index ca7ebc6752..215adbd873 100644 --- a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart +++ b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart @@ -4,6 +4,7 @@ import 'package:ffigen/ffigen.dart' show FfiGenerator, Output, YamlConfig; import 'package:ffigen/src/code_generator.dart'; +import 'package:ffigen/src/code_generator/scope.dart'; import 'package:ffigen/src/config_provider/public_ast.dart' as public_ast; import 'package:ffigen/src/header_parser/sub_parsers/api_availability.dart'; import 'package:ffigen/src/visitor/apply_config_filters.dart'; @@ -211,7 +212,8 @@ functions: structs: include: - 'StructA' -''') as YamlMap, +''') + as YamlMap, createTestLogger(), ); @@ -239,5 +241,200 @@ structs: expect(funcB.isIncluded, isFalse); }, ); + + test( + 'node.accept(visitor) does not visit children when isIncluded is false', + () { + final context = testContext( + FfiGenerator(output: Output(dartFile: Uri.file('out.dart'))), + ); + + final func = + Func( + name: 'func', + originalName: 'func', + returnType: voidType, + parameters: [Parameter(name: 'p1', type: intType)], + ).toPublicAstNode() + as public_ast.Func; + + final struct = + Struct( + name: 'struct', + originalName: 'struct', + context: context, + members: [ + CompoundMember( + name: 'm1', + originalName: 'm1', + type: intType, + ), + ], + ).toPublicAstNode() + as public_ast.Struct; + + final union = + Union( + name: 'union', + originalName: 'union', + context: context, + members: [ + CompoundMember( + name: 'm1', + originalName: 'm1', + type: intType, + ), + ], + ).toPublicAstNode() + as public_ast.Union; + + final enumClass = + EnumClass( + name: 'enum', + originalName: 'enum', + context: context, + enumConstants: [ + EnumConstant(name: 'c1', originalName: 'c1', value: 0), + ], + ).toPublicAstNode() + as public_ast.EnumClass; + + ObjCMethod createObjCMethod() => ObjCMethod( + context: context, + originalName: 'm1', + name: 'm1', + kind: ObjCMethodKind.method, + isClassMethod: false, + isOptional: false, + returnType: voidType, + family: null, + apiAvailability: ApiAvailability.all, + params: [Parameter(name: 'p1', type: intType)], + ownershipAttribute: null, + consumesSelfAttribute: false, + ); + + final objcInterfaceInternal = ObjCInterface( + context: context, + originalName: 'itf', + name: 'itf', + apiAvailability: ApiAvailability.all, + )..addMethod(createObjCMethod()); + final objcInterface = + objcInterfaceInternal.toPublicAstNode() as public_ast.ObjCInterface; + + final objcProtocolInternal = ObjCProtocol( + context: context, + originalName: 'proto', + name: 'proto', + apiAvailability: ApiAvailability.all, + )..addMethod(createObjCMethod()); + final objcProtocol = + objcProtocolInternal.toPublicAstNode() as public_ast.ObjCProtocol; + + final objcCategoryInternal = ObjCCategory( + context: context, + originalName: 'cat', + name: 'cat', + parent: objcInterfaceInternal, + apiAvailability: ApiAvailability.all, + )..addMethod(createObjCMethod()); + final objcCategory = + objcCategoryInternal.toPublicAstNode() as public_ast.ObjCCategory; + + final cppMethodInternal = CppMethod( + name: Symbol('m1', SymbolKind.method), + originalName: 'm1', + returnType: voidType, + parameters: [Parameter(name: 'p1', type: intType)], + isConstant: false, + ); + final cppClassInternal = CppClass( + name: 'cppClass', + originalName: 'cppClass', + context: context, + methods: [cppMethodInternal], + fields: [], + ); + final cppClass = + cppClassInternal.toPublicAstNode() as public_ast.CppClass; + + final cppMethod = TestCppMethod(cppClass, cppMethodInternal); + final objcMethod = objcInterface.methods.first; + + final testCases = <(String, public_ast.AstNode)>[ + ('Func', func), + ('Struct', struct), + ('Union', union), + ('EnumClass', enumClass), + ('ObjCInterface', objcInterface), + ('ObjCProtocol', objcProtocol), + ('ObjCCategory', objcCategory), + ('CppClass', cppClass), + ('CppMethod', cppMethod), + ('ObjCMethod', objcMethod), + ]; + + for (final (name, node) in testCases) { + final visitedWhenIncluded = []; + final visitorIncluded = public_ast.Visitor( + visitFunc: visitedWhenIncluded.add, + visitStruct: visitedWhenIncluded.add, + visitUnion: visitedWhenIncluded.add, + visitEnum: visitedWhenIncluded.add, + visitObjCInterface: visitedWhenIncluded.add, + visitObjCProtocol: visitedWhenIncluded.add, + visitObjCCategory: visitedWhenIncluded.add, + visitCppClass: visitedWhenIncluded.add, + visitCppMethod: visitedWhenIncluded.add, + visitObjCMethod: visitedWhenIncluded.add, + visitField: visitedWhenIncluded.add, + visitEnumConstant: visitedWhenIncluded.add, + visitParam: visitedWhenIncluded.add, + ); + + node.isIncluded = true; + node.accept(visitorIncluded); + expect( + visitedWhenIncluded.length, + greaterThan(1), + reason: '$name should visit children when included', + ); + expect(visitedWhenIncluded.first, same(node)); + + final visitedWhenExcluded = []; + final visitorExcluded = public_ast.Visitor( + visitFunc: visitedWhenExcluded.add, + visitStruct: visitedWhenExcluded.add, + visitUnion: visitedWhenExcluded.add, + visitEnum: visitedWhenExcluded.add, + visitObjCInterface: visitedWhenExcluded.add, + visitObjCProtocol: visitedWhenExcluded.add, + visitObjCCategory: visitedWhenExcluded.add, + visitCppClass: visitedWhenExcluded.add, + visitCppMethod: visitedWhenExcluded.add, + visitObjCMethod: visitedWhenExcluded.add, + visitField: visitedWhenExcluded.add, + visitEnumConstant: visitedWhenExcluded.add, + visitParam: visitedWhenExcluded.add, + ); + + node.isIncluded = false; + node.accept(visitorExcluded); + expect( + visitedWhenExcluded, + [same(node)], + reason: '$name should NOT visit children when not included', + ); + } + }, + ); }); } + +final class TestCppMethod extends public_ast.CppMethod { + TestCppMethod(super.parent, super.method); + + @override + bool isIncluded = true; +} From b9226e4d635b1b2fcf93c68df8537d5f020fb85c Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Tue, 11 Aug 2026 09:44:38 +1000 Subject: [PATCH 04/54] wip --- .../objective_c/avf_audio_bindings.dart | 1223 +++++++++++++++++ pkgs/ffigen/lib/src/code_generator/func.dart | 1 + .../lib/src/config_provider/yaml_config.dart | 69 +- pkgs/ffigen/lib/src/header_parser/parser.dart | 31 +- .../lib/src/visitor/apply_config_filters.dart | 24 +- .../native_objc_test/deprecated_test.dart | 10 +- .../native_objc_test/transitive_test.dart | 4 +- 7 files changed, 1285 insertions(+), 77 deletions(-) diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index e69de29bb2..a5c0bfe631 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -0,0 +1,1223 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// AUTO GENERATED FILE, DO NOT EDIT. +// +// Generated by `package:ffigen`. +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; +import 'package:objective_c/objective_c.dart' as objc; +import 'package:ffi/ffi.dart' as pkg_ffi; + +const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); + +/// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include +/// AVAudioFormat in your config's objc-interfaces list. +/// +/// AVAudioFormat +extension type AVAudioFormat._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [AVAudioFormat] that points to the same underlying object as [other]. + AVAudioFormat.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioFormat', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } + + /// Constructs a [AVAudioFormat] that wraps the given raw object pointer. + AVAudioFormat.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioFormat', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } +} + +/// AVAudioPlayer +extension type AVAudioPlayer._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioPlayer] that points to the same underlying object as [other]. + AVAudioPlayer.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioPlayer', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + assert(isA(object$)); + } + + /// Constructs a [AVAudioPlayer] that wraps the given raw object pointer. + AVAudioPlayer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioPlayer', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [AVAudioPlayer]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_AVAudioPlayer, + ); + + /// alloc + static AVAudioPlayer alloc() { + final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_alloc); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// allocWithZone: + static AVAudioPlayer allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_AVAudioPlayer, + _sel_allocWithZone_, + zone, + ); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// new + static AVAudioPlayer new$() { + final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_new); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// Returns a new instance of AVAudioPlayer constructed with the default `new` method. + AVAudioPlayer() : this.as(new$().object$); +} + +extension AVAudioPlayer$Methods on AVAudioPlayer { + /// averagePowerForChannel: + double averagePowerForChannel(int channelNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.averagePowerForChannel:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_65s5ywFpret( + _$$ref.pointer, + _sel_averagePowerForChannel_, + channelNumber, + ) + : _objc_msgSend_65s5yw( + _$$ref.pointer, + _sel_averagePowerForChannel_, + channelNumber, + ); + } + + /// channelAssignments + objc.NSArray? get channelAssignments { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.channelAssignments', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_channelAssignments); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// currentDevice + objc.NSString? get currentDevice { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.currentDevice', + iOS: (true, null), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// currentTime + double get currentTime { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.currentTime', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); + } + + /// data + objc.NSData? get data { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.data', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// delegate + AVAudioPlayerDelegate? get delegate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.delegate', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); + return $ret.address == 0 + ? null + : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); + } + + /// deviceCurrentTime + double get deviceCurrentTime { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.deviceCurrentTime', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); + } + + /// duration + double get duration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.duration', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); + } + + /// enableRate + bool get enableRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.enableRate', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); + } + + /// format + AVAudioFormat get format { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.format', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); + return AVAudioFormat.fromPointer($ret, retain: true, release: true); + } + + /// init + AVAudioPlayer init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL:error: + AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithContentsOfURL:error:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithContentsOfURL:fileTypeHint:error: + AVAudioPlayer? initWithContentsOfURL$1( + objc.NSURL url, { + objc.NSString? fileTypeHint, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = fileTypeHint?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithContentsOfURL:fileTypeHint:error:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_fileTypeHint_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithData:error: + AVAudioPlayer? initWithData(objc.NSData data) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithData:error:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithData_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithData:fileTypeHint:error: + AVAudioPlayer? initWithData$1( + objc.NSData data, { + objc.NSString? fileTypeHint, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + final _$$ref$2 = fileTypeHint?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithData:fileTypeHint:error:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.retainAndReturnPointer(), + _sel_initWithData_fileTypeHint_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// intendedSpatialExperience + CASpatialAudioExperience get intendedSpatialExperience { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.intendedSpatialExperience', + iOS: (true, null), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_intendedSpatialExperience, + ); + return CASpatialAudioExperience.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// isMeteringEnabled + bool get isMeteringEnabled { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.isMeteringEnabled', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); + } + + /// isPlaying + bool get isPlaying { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.isPlaying', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); + } + + /// numberOfChannels + int get numberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.numberOfChannels', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfChannels); + } + + /// numberOfLoops + int get numberOfLoops { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.numberOfLoops', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); + } + + /// pan + double get pan { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.pan', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); + } + + /// pause + void pause() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.pause', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); + } + + /// peakPowerForChannel: + double peakPowerForChannel(int channelNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.peakPowerForChannel:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_65s5ywFpret( + _$$ref.pointer, + _sel_peakPowerForChannel_, + channelNumber, + ) + : _objc_msgSend_65s5yw( + _$$ref.pointer, + _sel_peakPowerForChannel_, + channelNumber, + ); + } + + /// play + bool play() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.play', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); + } + + /// playAtTime: + bool playAtTime(double time) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.playAtTime:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time); + } + + /// prepareToPlay + bool prepareToPlay() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.prepareToPlay', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); + } + + /// rate + double get rate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.rate', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); + } + + /// setChannelAssignments: + set channelAssignments(objc.NSArray? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setChannelAssignments:', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setChannelAssignments_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setCurrentDevice: + set currentDevice(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setCurrentDevice:', + iOS: (true, null), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setCurrentDevice_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setCurrentTime: + set currentTime(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setCurrentTime:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); + } + + /// setDelegate: + set delegate(AVAudioPlayerDelegate? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setDelegate:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setDelegate_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setEnableRate: + set enableRate(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setEnableRate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); + } + + /// setIntendedSpatialExperience: + set intendedSpatialExperience(CASpatialAudioExperience value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setIntendedSpatialExperience:', + iOS: (true, null), + macOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setIntendedSpatialExperience_, + _$$ref$1.pointer, + ); + } + + /// setMeteringEnabled: + set isMeteringEnabled(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setMeteringEnabled:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setMeteringEnabled_, value); + } + + /// setNumberOfLoops: + set numberOfLoops(int value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setNumberOfLoops:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); + } + + /// setPan: + set pan(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setPan:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); + } + + /// setRate: + set rate(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setRate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); + } + + /// setVolume: + set volume(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setVolume:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); + } + + /// setVolume:fadeDuration: + void setVolume(double volume, {required double fadeDuration}) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setVolume:fadeDuration:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + _objc_msgSend_1p4uk9e( + _$$ref.pointer, + _sel_setVolume_fadeDuration_, + volume, + fadeDuration, + ); + } + + /// settings + objc.NSDictionary get settings { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.settings', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_settings); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// stop + void stop() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.stop', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); + } + + /// updateMeters + void updateMeters() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.updateMeters', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); + } + + /// url + objc.NSURL? get url { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.url', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// volume + double get volume { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.volume', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); + } +} + +/// WARNING: AVAudioPlayerDelegate is a stub. To generate bindings for this class, include +/// AVAudioPlayerDelegate in your config's objc-protocols list. +/// +/// AVAudioPlayerDelegate +extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [AVAudioPlayerDelegate] that points to the same underlying object as [other]. + AVAudioPlayerDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [AVAudioPlayerDelegate] that wraps the given raw object pointer. + AVAudioPlayerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include +/// CASpatialAudioExperience in your config's objc-interfaces list. +/// +/// CASpatialAudioExperience +extension type CASpatialAudioExperience._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [CASpatialAudioExperience] that points to the same underlying object as [other]. + CASpatialAudioExperience.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [CASpatialAudioExperience] that wraps the given raw object pointer. + CASpatialAudioExperience.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_AVAudioPlayer', +) +external ffi.Pointer _class_AVAudioPlayer_raw; +final _class_AVAudioPlayer = objc.getClass( + "AVAudioPlayer", + () => ffi.Native.addressOf>( + _class_AVAudioPlayer_raw, + ).cast(), +); +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18chyc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1hz7y9r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1p4uk9e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + double, + ) + >(); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1s56lr9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_4sp4xj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_65s5yw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_65s5ywFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_91o635 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hwm8nu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_v5hmet = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_xw2lbc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +late final _sel_averagePowerForChannel_ = objc.registerName( + "averagePowerForChannel:", +); +late final _sel_channelAssignments = objc.registerName("channelAssignments"); +late final _sel_currentDevice = objc.registerName("currentDevice"); +late final _sel_currentTime = objc.registerName("currentTime"); +late final _sel_data = objc.registerName("data"); +late final _sel_delegate = objc.registerName("delegate"); +late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); +late final _sel_duration = objc.registerName("duration"); +late final _sel_enableRate = objc.registerName("enableRate"); +late final _sel_format = objc.registerName("format"); +late final _sel_init = objc.registerName("init"); +late final _sel_initWithContentsOfURL_error_ = objc.registerName( + "initWithContentsOfURL:error:", +); +late final _sel_initWithContentsOfURL_fileTypeHint_error_ = objc.registerName( + "initWithContentsOfURL:fileTypeHint:error:", +); +late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); +late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( + "initWithData:fileTypeHint:error:", +); +late final _sel_intendedSpatialExperience = objc.registerName( + "intendedSpatialExperience", +); +late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); +late final _sel_isPlaying = objc.registerName("isPlaying"); +late final _sel_new = objc.registerName("new"); +late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); +late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); +late final _sel_pan = objc.registerName("pan"); +late final _sel_pause = objc.registerName("pause"); +late final _sel_peakPowerForChannel_ = objc.registerName( + "peakPowerForChannel:", +); +late final _sel_play = objc.registerName("play"); +late final _sel_playAtTime_ = objc.registerName("playAtTime:"); +late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); +late final _sel_rate = objc.registerName("rate"); +late final _sel_setChannelAssignments_ = objc.registerName( + "setChannelAssignments:", +); +late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); +late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); +late final _sel_setDelegate_ = objc.registerName("setDelegate:"); +late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); +late final _sel_setIntendedSpatialExperience_ = objc.registerName( + "setIntendedSpatialExperience:", +); +late final _sel_setMeteringEnabled_ = objc.registerName("setMeteringEnabled:"); +late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); +late final _sel_setPan_ = objc.registerName("setPan:"); +late final _sel_setRate_ = objc.registerName("setRate:"); +late final _sel_setVolume_ = objc.registerName("setVolume:"); +late final _sel_setVolume_fadeDuration_ = objc.registerName( + "setVolume:fadeDuration:", +); +late final _sel_settings = objc.registerName("settings"); +late final _sel_stop = objc.registerName("stop"); +late final _sel_updateMeters = objc.registerName("updateMeters"); +late final _sel_url = objc.registerName("url"); +late final _sel_volume = objc.registerName("volume"); +typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/lib/src/code_generator/func.dart b/pkgs/ffigen/lib/src/code_generator/func.dart index ebf9c7b28a..e2ab35e45c 100644 --- a/pkgs/ffigen/lib/src/code_generator/func.dart +++ b/pkgs/ffigen/lib/src/code_generator/func.dart @@ -63,6 +63,7 @@ class Func extends LookUpBinding with HasLocalScope { /// Contains typealias for function type if [exposeFunctionTypedefs] is true. Typealias? _exposedFunctionTypealias; + Typealias? get exposedFunctionTypealias => _exposedFunctionTypealias; /// [originalName] is looked up in dynamic library, if not /// provided, takes the value of [name]. diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index b03b9b1a4e..f0add88446 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -67,91 +67,58 @@ final class YamlConfig { late Map> _varArgFunctions = {}; /// Declaration config for Functions. - YamlDeclarationFilters get functionDecl => - _functionDecl ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + YamlDeclarationFilters get functionDecl => _functionDecl ??= + declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _functionDecl; /// Declaration config for Structs. - YamlDeclarationFilters get structDecl => - _structDecl ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + YamlDeclarationFilters get structDecl => _structDecl ??= + declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _structDecl; /// Declaration config for Unions. YamlDeclarationFilters get unionDecl => - _unionDecl ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + _unionDecl ??= declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _unionDecl; /// Declaration config for Enums. - YamlDeclarationFilters get enumClassDecl => - _enumClassDecl ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + YamlDeclarationFilters get enumClassDecl => _enumClassDecl ??= + declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _enumClassDecl; /// Declaration config for Unnamed enum constants. - YamlDeclarationFilters get unnamedEnumConstants => - _unnamedEnumConstants ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + YamlDeclarationFilters get unnamedEnumConstants => _unnamedEnumConstants ??= + declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _unnamedEnumConstants; /// Declaration config for Globals. YamlDeclarationFilters get globals => - _globals ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + _globals ??= declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _globals; /// Declaration config for Macro constants. YamlDeclarationFilters get macroDecl => - _macroDecl ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + _macroDecl ??= declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _macroDecl; /// Declaration config for Typedefs. YamlDeclarationFilters get typedefs => - _typedefs ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + _typedefs ??= declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _typedefs; /// Declaration config for Objective C interfaces. - YamlDeclarationFilters get objcInterfaces => - _objcInterfaces ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + YamlDeclarationFilters get objcInterfaces => _objcInterfaces ??= + declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _objcInterfaces; /// Declaration config for Objective C protocols. - YamlDeclarationFilters get objcProtocols => - _objcProtocols ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + YamlDeclarationFilters get objcProtocols => _objcProtocols ??= + declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _objcProtocols; /// Declaration config for Objective C categories. - YamlDeclarationFilters get objcCategories => - _objcCategories ??= declarationConfigExtractor( - const {}, - _excludeAllByDefault, - ); + YamlDeclarationFilters get objcCategories => _objcCategories ??= + declarationConfigExtractor(const {}, _excludeAllByDefault); YamlDeclarationFilters? _objcCategories; /// If enabled, the default behavior of all declaration filters is to exclude diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index 4e44ec2221..6759f2905c 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -168,25 +168,31 @@ List _findObjectiveCSysroot() => [ List transformBindings(List rawBindings, Context context) { final config = context.config; - final allBindings = rawBindings.toSet().union( - visit(context, FindTransitiveDepsVisitation(), rawBindings).transitives, - ); - - visit(context, CopyMethodsFromSuperTypesVisitation(), allBindings); - visit(context, FixOverriddenMethodsVisitation(context), allBindings); - - final nodes = allBindings.map((b) => b.toPublicAstNode()).nonNulls.toList(); + final rawNodes = rawBindings + .map((b) => b.toPublicAstNode()) + .nonNulls + .toList(); for (final visitor in config.visitors) { - visitor.visitAll(nodes); + visitor.visitAll(rawNodes); } final applyConfigFiltersVisitation = ApplyConfigFiltersVisitation(context); - visit(context, applyConfigFiltersVisitation, allBindings); + visit(context, applyConfigFiltersVisitation, rawBindings); final directlyIncluded = applyConfigFiltersVisitation.directlyIncluded; final included = directlyIncluded.union( applyConfigFiltersVisitation.indirectlyIncluded, ); + final transitives = visit( + context, + FindTransitiveDepsVisitation(), + included, + ).transitives; + final allBindings = included.union(transitives); + + visit(context, CopyMethodsFromSuperTypesVisitation(), allBindings); + visit(context, FixOverriddenMethodsVisitation(context), allBindings); + final byValueCompounds = visit( context, FindByValueCompoundsVisitation(), @@ -198,11 +204,6 @@ List transformBindings(List rawBindings, Context context) { allBindings, ); - final transitives = visit( - context, - FindTransitiveDepsVisitation(), - included, - ).transitives; final directTransitives = visit( context, FindDirectTransitiveDepsVisitation(config, included, directlyIncluded), diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index cda46d0c1d..430f78676d 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -21,26 +21,38 @@ class ApplyConfigFiltersVisitation extends Visitation { } } + void _visitWithChildren(Binding node) { + _visitImpl(node); + if (directlyIncluded.contains(node)) { + node.visitChildren(visitor); + } + } + @override - void visitStruct(Struct node) => _visitImpl(node); + void visitStruct(Struct node) => _visitWithChildren(node); @override - void visitUnion(Union node) => _visitImpl(node); + void visitUnion(Union node) => _visitWithChildren(node); @override void visitEnumClass(EnumClass node) { if (node.isAnonymous) return; - _visitImpl(node); + _visitWithChildren(node); } @override void visitCppClass(CppClass node) { if (context.config.cpp == null) return; - _visitImpl(node); + _visitWithChildren(node); } @override - void visitFunc(Func node) => _visitImpl(node); + void visitFunc(Func node) { + _visitImpl(node); + if (directlyIncluded.contains(node)) { + visitor.visit(node.exposedFunctionTypealias); + } + } @override void visitMacroConstant(MacroConstant node) => _visitImpl(node); @@ -117,6 +129,6 @@ class ApplyConfigFiltersVisitation extends Visitation { @override void visitTypealias(Typealias node) { if (node.isAnonymous) return; - _visitImpl(node); + _visitWithChildren(node); } } diff --git a/pkgs/ffigen/test/native_objc_test/deprecated_test.dart b/pkgs/ffigen/test/native_objc_test/deprecated_test.dart index 6a9e2af022..e72046cfb2 100644 --- a/pkgs/ffigen/test/native_objc_test/deprecated_test.dart +++ b/pkgs/ffigen/test/native_objc_test/deprecated_test.dart @@ -75,12 +75,18 @@ String bindingsForVersion({Versions? iosVers, Versions? macosVers}) { } }, visitFunc: (node) { - if (!{'normalFunction', 'deprecatedFunction'}.contains(node.originalName)) { + if (!{ + 'normalFunction', + 'deprecatedFunction', + }.contains(node.originalName)) { node.isIncluded = false; } }, visitStruct: (node) { - if (!{'NormalStruct', 'DeprecatedStruct'}.contains(node.originalName)) { + if (!{ + 'NormalStruct', + 'DeprecatedStruct', + }.contains(node.originalName)) { node.isIncluded = false; } }, diff --git a/pkgs/ffigen/test/native_objc_test/transitive_test.dart b/pkgs/ffigen/test/native_objc_test/transitive_test.dart index f6ca814482..79af1bf6ce 100644 --- a/pkgs/ffigen/test/native_objc_test/transitive_test.dart +++ b/pkgs/ffigen/test/native_objc_test/transitive_test.dart @@ -51,9 +51,7 @@ String generate({ interfaces: Interfaces( includeTransitive: includeTransitiveObjCInterfaces, ), - protocols: Protocols( - includeTransitive: includeTransitiveObjCProtocols, - ), + protocols: Protocols(includeTransitive: includeTransitiveObjCProtocols), categories: Categories( includeTransitive: includeTransitiveObjCCategories, ), From bddcbee14b29fde5fb8ad1bb8dcd52345cf6e806 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Tue, 11 Aug 2026 10:21:20 +1000 Subject: [PATCH 05/54] wip --- pkgs/ffigen/lib/src/config_provider/yaml_config.dart | 2 +- pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart | 3 +++ pkgs/ffigen/test/header_parser_tests/macros_config.yaml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index f0add88446..410f6db307 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -98,7 +98,7 @@ final class YamlConfig { /// Declaration config for Macro constants. YamlDeclarationFilters get macroDecl => - _macroDecl ??= declarationConfigExtractor(const {}, _excludeAllByDefault); + _macroDecl ??= declarationConfigExtractor(const {}, true); YamlDeclarationFilters? _macroDecl; /// Declaration config for Typedefs. diff --git a/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart b/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart index 5ff2b8cd1e..baf5a5559c 100644 --- a/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart +++ b/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart @@ -20,6 +20,9 @@ ${strings.excludeAllByDefault}: false ${strings.headers}: ${strings.entryPoints}: - '${absPath('test/config_tests/exclude_all_by_default.h')}' +${strings.macros}: + ${strings.include}: + - 'MACRO' '''); final library = parse(testContext(config)); diff --git a/pkgs/ffigen/test/header_parser_tests/macros_config.yaml b/pkgs/ffigen/test/header_parser_tests/macros_config.yaml index 52fe199944..1666750e8d 100644 --- a/pkgs/ffigen/test/header_parser_tests/macros_config.yaml +++ b/pkgs/ffigen/test/header_parser_tests/macros_config.yaml @@ -6,3 +6,4 @@ headers: - macros.h include-directives: - '**macros.h' +macros: {} From a2996b4fdae72f846acc690dbd380edbc74ac46d Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Tue, 11 Aug 2026 11:13:48 +1000 Subject: [PATCH 06/54] wip --- .../objective_c/avf_audio_bindings.dart | 308326 ++++++++++++++- pkgs/ffigen/lib/src/code_generator/scope.dart | 15 +- .../src/visitor/fix_overridden_methods.dart | 20 +- .../large_objc_test.dart | 4 + .../category_test_bindings.dart | 606 +- .../native_objc_test/category_test_bindings.m | 111 - .../method_filtering_test_bindings.dart | 85 + .../protocol_test_bindings.dart | 89 - .../sdk_variable_test_bindings.dart | 8 - .../swift_class_test_bindings.dart | 37 +- 10 files changed, 307374 insertions(+), 1927 deletions(-) delete mode 100644 pkgs/ffigen/test/native_objc_test/category_test_bindings.m diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index a5c0bfe631..4a69253574 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -11,1213 +11,307371 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +@ffi.Native< + OSStatus Function( + AEEventClass, + AEEventID, + DescType, + ffi.Pointer, + Size, + SInt16, + SInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEBuildAppleEvent( + int theClass, + int theID, + int addressType, + ffi.Pointer addressData, + int addressLength, + int returnID, + int transactionID, + ffi.Pointer result, + ffi.Pointer error, + ffi.Pointer paramsFmt, +); -/// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include -/// AVAudioFormat in your config's objc-interfaces list. -/// -/// AVAudioFormat -extension type AVAudioFormat._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [AVAudioFormat] that points to the same underlying object as [other]. - AVAudioFormat.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioFormat', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEBuildDesc( + ffi.Pointer dst, + ffi.Pointer error, + ffi.Pointer src, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEBuildParameters( + ffi.Pointer event, + ffi.Pointer error, + ffi.Pointer format, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + DescType, + DescType, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AECallObjectAccessor( + int desiredClass, + ffi.Pointer containerToken, + int containerClass, + int keyForm, + ffi.Pointer keyData, + ffi.Pointer token, +); + +@ffi.Native)>() +external int AECheckIsRecord(ffi.Pointer theDesc); + +@ffi.Native< + OSErr Function(ffi.Pointer, DescType, ffi.Pointer) +>() +external int AECoerceDesc( + ffi.Pointer theAEDesc, + int toType, + ffi.Pointer result, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + Size, + DescType, + ffi.Pointer, + ) +>() +external int AECoercePtr( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + int toType, + ffi.Pointer result, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AECompareDesc( + ffi.Pointer desc1, + ffi.Pointer desc2, + ffi.Pointer resultP, +); + +@ffi.Native, ffi.Pointer)>() +external int AECountItems( + ffi.Pointer theAEDescList, + ffi.Pointer theCount, +); + +@ffi.Native< + OSErr Function( + AEEventClass, + AEEventID, + ffi.Pointer, + AEReturnID, + AETransactionID, + ffi.Pointer, + ) +>() +external int AECreateAppleEvent( + int theAEEventClass, + int theAEEventID, + ffi.Pointer target, + int returnID, + int transactionID, + ffi.Pointer result, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + Size, + ffi.Pointer, + ) +>() +external int AECreateDesc( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + ffi.Pointer result, +); + +@ffi.Native< + OSStatus Function( + OSType, + ffi.Pointer, + Size, + AEDisposeExternalUPP, + SRefCon, + ffi.Pointer, + ) +>() +external int AECreateDescFromExternalPtr( + int descriptorType, + ffi.Pointer dataPtr, + int dataLength, + AEDisposeExternalUPP disposeCallback, + SRefCon disposeRefcon, + ffi.Pointer theDesc, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, Size, Boolean, ffi.Pointer) +>() +external int AECreateList( + ffi.Pointer factoringPtr, + int factoredSize, + int isRecord, + ffi.Pointer resultList, +); + +@ffi.Native() +external AERemoteProcessResolverRef AECreateRemoteProcessResolver( + CFAllocatorRef allocator, + CFURLRef url, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEDecodeMessage( + ffi.Pointer header, + ffi.Pointer event, + ffi.Pointer reply, +); + +@ffi.Native, ffi.Long)>() +external int AEDeleteItem(ffi.Pointer theAEDescList, int index$1); + +@ffi.Native, AEKeyword)>() +external int AEDeleteParam( + ffi.Pointer theAppleEvent, + int theAEKeyword, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + AEEventClass, + AEEventID, + Boolean, + ) +>() +external int AEDeterminePermissionToAutomateTarget( + ffi.Pointer target, + int theAEEventClass, + int theAEEventID, + int askUserIfNeeded, +); + +@ffi.Native)>() +external int AEDisposeDesc(ffi.Pointer theAEDesc); + +@ffi.Native() +external void AEDisposeRemoteProcessResolver(AERemoteProcessResolverRef ref); + +@ffi.Native)>() +external int AEDisposeToken(ffi.Pointer theToken); + +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer) +>() +external int AEDuplicateDesc( + ffi.Pointer theAEDesc, + ffi.Pointer result, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, Ptr, Size, ffi.Pointer) +>() +external int AEFlattenDesc( + ffi.Pointer theAEDesc, + Ptr buffer, + int bufferSize, + ffi.Pointer actualSize, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEArrayType, + AEArrayDataPointer, + Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEGetArray( + ffi.Pointer theAEDescList, + int arrayType, + AEArrayDataPointer arrayPtr, + int maximumSize, + ffi.Pointer itemType, + ffi.Pointer itemSize, + ffi.Pointer itemCount, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + ) +>() +external int AEGetAttributeDesc( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int desiredType, + ffi.Pointer result, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Pointer, + ) +>() +external int AEGetAttributePtr( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int desiredType, + ffi.Pointer typeCode, + ffi.Pointer dataPtr, + int maximumSize, + ffi.Pointer actualSize, +); + +@ffi.Native< + OSErr Function( + DescType, + DescType, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + Boolean, + ) +>() +external int AEGetCoercionHandler( + int fromType, + int toType, + ffi.Pointer handler, + ffi.Pointer handlerRefcon, + ffi.Pointer fromTypeIsDesc, + int isSysHandler, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer, Size) +>() +external int AEGetDescData( + ffi.Pointer theAEDesc, + ffi.Pointer dataPtr, + int maximumSize, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer, Size, Size) +>() +external int AEGetDescDataRange( + ffi.Pointer dataDesc, + ffi.Pointer buffer, + int offset, + int length, +); + +@ffi.Native)>() +external int AEGetDescDataSize(ffi.Pointer theAEDesc); + +@ffi.Native< + OSErr Function( + AEEventClass, + AEEventID, + ffi.Pointer, + ffi.Pointer, + Boolean, + ) +>() +external int AEGetEventHandler( + int theAEEventClass, + int theAEEventID, + ffi.Pointer handler, + ffi.Pointer handlerRefcon, + int isSysHandler, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Long, + DescType, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEGetNthDesc( + ffi.Pointer theAEDescList, + int index$1, + int desiredType, + ffi.Pointer theAEKeyword, + ffi.Pointer result, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Long, + DescType, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Pointer, + ) +>() +external int AEGetNthPtr( + ffi.Pointer theAEDescList, + int index$1, + int desiredType, + ffi.Pointer theAEKeyword, + ffi.Pointer typeCode, + ffi.Pointer dataPtr, + int maximumSize, + ffi.Pointer actualSize, +); + +@ffi.Native< + OSErr Function( + DescType, + DescType, + ffi.Pointer, + ffi.Pointer, + Boolean, + ) +>() +external int AEGetObjectAccessor( + int desiredClass, + int containerType, + ffi.Pointer accessor, + ffi.Pointer accessorRefcon, + int isSysHandler, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + ) +>() +external int AEGetParamDesc( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int desiredType, + ffi.Pointer result, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Pointer, + ) +>() +external int AEGetParamPtr( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int desiredType, + ffi.Pointer actualType, + ffi.Pointer dataPtr, + int maximumSize, + ffi.Pointer actualSize, +); + +@ffi.Native() +external int AEGetRegisteredMachPort(); + +@ffi.Native< + OSErr Function(AEKeyword, ffi.Pointer, Boolean) +>() +external int AEGetSpecialHandler( + int functionClass, + ffi.Pointer handler, + int isSysHandler, +); + +@ffi.Native)>() +external void AEInitializeDesc(ffi.Pointer desc); + +@ffi.Native< + OSErr Function( + DescType, + DescType, + AECoercionHandlerUPP, + SRefCon, + Boolean, + Boolean, + ) +>() +external int AEInstallCoercionHandler( + int fromType, + int toType, + AECoercionHandlerUPP handler, + SRefCon handlerRefcon, + int fromTypeIsDesc, + int isSysHandler, +); + +@ffi.Native< + OSErr Function(AEEventClass, AEEventID, AEEventHandlerUPP, SRefCon, Boolean) +>() +external int AEInstallEventHandler( + int theAEEventClass, + int theAEEventID, + AEEventHandlerUPP handler, + SRefCon handlerRefcon, + int isSysHandler, +); + +@ffi.Native< + OSErr Function(DescType, DescType, OSLAccessorUPP, SRefCon, Boolean) +>() +external int AEInstallObjectAccessor( + int desiredClass, + int containerType, + OSLAccessorUPP theAccessor, + SRefCon accessorRefcon, + int isSysHandler, +); + +@ffi.Native() +external int AEInstallSpecialHandler( + int functionClass, + AEEventHandlerUPP handler, + int isSysHandler, +); + +@ffi.Native)>() +external int AEManagerInfo(int keyWord, ffi.Pointer result); + +@ffi.Native() +external int AEObjectInit(); + +@ffi.Native, ffi.Pointer)>() +external int AEPrintDescToHandle( + ffi.Pointer desc, + ffi.Pointer result, +); + +@ffi.Native)>() +external int AEProcessMessage(ffi.Pointer header); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEArrayType, + ffi.Pointer, + DescType, + Size, + ffi.Long, + ) +>() +external int AEPutArray( + ffi.Pointer theAEDescList, + int arrayType, + ffi.Pointer arrayPtr, + int itemType, + int itemSize, + int itemCount, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, AEKeyword, ffi.Pointer) +>() +external int AEPutAttributeDesc( + ffi.Pointer theAppleEvent, + int theAEKeyword, + ffi.Pointer theAEDesc, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + Size, + ) +>() +external int AEPutAttributePtr( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int typeCode, + ffi.Pointer dataPtr, + int dataSize, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Long, ffi.Pointer) +>() +external int AEPutDesc( + ffi.Pointer theAEDescList, + int index$1, + ffi.Pointer theAEDesc, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, AEKeyword, ffi.Pointer) +>() +external int AEPutParamDesc( + ffi.Pointer theAppleEvent, + int theAEKeyword, + ffi.Pointer theAEDesc, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + Size, + ) +>() +external int AEPutParamPtr( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int typeCode, + ffi.Pointer dataPtr, + int dataSize, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Long, + DescType, + ffi.Pointer, + Size, + ) +>() +external int AEPutPtr( + ffi.Pointer theAEDescList, + int index$1, + int typeCode, + ffi.Pointer dataPtr, + int dataSize, +); + +@ffi.Native< + CFArrayRef Function(AERemoteProcessResolverRef, ffi.Pointer) +>() +external CFArrayRef AERemoteProcessResolverGetProcesses( + AERemoteProcessResolverRef ref, + ffi.Pointer outError, +); + +@ffi.Native< + ffi.Void Function( + AERemoteProcessResolverRef, + CFRunLoopRef, + CFStringRef, + AERemoteProcessResolverCallback, + ffi.Pointer, + ) +>() +external void AERemoteProcessResolverScheduleWithRunLoop( + AERemoteProcessResolverRef ref, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, + AERemoteProcessResolverCallback callback, + ffi.Pointer ctx, +); + +@ffi.Native() +external int AERemoveCoercionHandler( + int fromType, + int toType, + AECoercionHandlerUPP handler, + int isSysHandler, +); + +@ffi.Native< + OSErr Function(AEEventClass, AEEventID, AEEventHandlerUPP, Boolean) +>() +external int AERemoveEventHandler( + int theAEEventClass, + int theAEEventID, + AEEventHandlerUPP handler, + int isSysHandler, +); + +@ffi.Native() +external int AERemoveObjectAccessor( + int desiredClass, + int containerType, + OSLAccessorUPP theAccessor, + int isSysHandler, +); + +@ffi.Native() +external int AERemoveSpecialHandler( + int functionClass, + AEEventHandlerUPP handler, + int isSysHandler, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + Size, + ffi.Pointer, + ) +>() +external int AEReplaceDescData( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + ffi.Pointer theAEDesc, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Short, ffi.Pointer) +>() +external int AEResolve( + ffi.Pointer objectSpecifier, + int callbackFlags, + ffi.Pointer theToken, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + AESendMode, + ffi.Long, + ) +>() +external int AESendMessage( + ffi.Pointer event, + ffi.Pointer reply, + int sendMode, + int timeOutInTicks, +); + +@ffi.Native< + OSErr Function( + OSLCompareUPP, + OSLCountUPP, + OSLDisposeTokenUPP, + OSLGetMarkTokenUPP, + OSLMarkUPP, + OSLAdjustMarksUPP, + OSLGetErrDescUPP, + ) +>() +external int AESetObjectCallbacks( + OSLCompareUPP myCompareProc, + OSLCountUPP myCountProc, + OSLDisposeTokenUPP myDisposeTokenProc, + OSLGetMarkTokenUPP myGetMarkTokenProc, + OSLMarkUPP myMarkProc, + OSLAdjustMarksUPP myAdjustMarksProc, + OSLGetErrDescUPP myGetErrDescProcPtr, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AESizeOfAttribute( + ffi.Pointer theAppleEvent, + int theAEKeyword, + ffi.Pointer typeCode, + ffi.Pointer dataSize, +); + +@ffi.Native)>() +external int AESizeOfFlattenedDesc(ffi.Pointer theAEDesc); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AESizeOfNthItem( + ffi.Pointer theAEDescList, + int index$1, + ffi.Pointer typeCode, + ffi.Pointer dataSize, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AESizeOfParam( + ffi.Pointer theAppleEvent, + int theAEKeyword, + ffi.Pointer typeCode, + ffi.Pointer dataSize, +); + +@ffi.Native)>() +external int AEStreamClose(AEStreamRef ref, ffi.Pointer desc); + +@ffi.Native() +external int AEStreamCloseDesc(AEStreamRef ref); + +@ffi.Native() +external int AEStreamCloseList(AEStreamRef ref); + +@ffi.Native() +external int AEStreamCloseRecord(AEStreamRef ref); + +@ffi.Native< + AEStreamRef Function( + AEEventClass, + AEEventID, + DescType, + ffi.Pointer, + Size, + SInt16, + SInt32, + ) +>() +external AEStreamRef AEStreamCreateEvent( + int clazz, + int id, + int targetType, + ffi.Pointer targetData, + int targetLength, + int returnID, + int transactionID, +); + +@ffi.Native() +external AEStreamRef AEStreamOpen(); + +@ffi.Native() +external int AEStreamOpenDesc(AEStreamRef ref, int newType); + +@ffi.Native)>() +external AEStreamRef AEStreamOpenEvent(ffi.Pointer event); + +@ffi.Native() +external int AEStreamOpenKeyDesc(AEStreamRef ref, int key, int newType); + +@ffi.Native() +external int AEStreamOpenList(AEStreamRef ref); + +@ffi.Native() +external int AEStreamOpenRecord(AEStreamRef ref, int newType); + +@ffi.Native() +external int AEStreamOptionalParam(AEStreamRef ref, int key); + +@ffi.Native() +external int AEStreamSetRecordType(AEStreamRef ref, int newType); + +@ffi.Native)>() +external int AEStreamWriteAEDesc( + AEStreamRef ref, + ffi.Pointer desc, +); + +@ffi.Native, Size)>() +external int AEStreamWriteData( + AEStreamRef ref, + ffi.Pointer data, + int length, +); + +@ffi.Native< + OSStatus Function(AEStreamRef, DescType, ffi.Pointer, Size) +>() +external int AEStreamWriteDesc( + AEStreamRef ref, + int newType, + ffi.Pointer data, + int length, +); + +@ffi.Native() +external int AEStreamWriteKey(AEStreamRef ref, int key); + +@ffi.Native< + OSStatus Function( + AEStreamRef, + AEKeyword, + DescType, + ffi.Pointer, + Size, + ) +>() +external int AEStreamWriteKeyDesc( + AEStreamRef ref, + int key, + int newType, + ffi.Pointer data, + int length, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int AEUnflattenDesc( + ffi.Pointer buffer, + ffi.Pointer result, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Size, ffi.Pointer) +>() +external int AEUnflattenDescFromBytes( + ffi.Pointer buffer, + int bufferLen, + ffi.Pointer result, +); + +@ffi.Native>( + symbol: 'AVAudioBitRateStrategy_Constant', +) +external final ffi.Pointer +_AVAudioBitRateStrategy_Constant; + +objc.NSString get AVAudioBitRateStrategy_Constant => objc.NSString.fromPointer( + _AVAudioBitRateStrategy_Constant, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'AVAudioBitRateStrategy_LongTermAverage', +) +external final ffi.Pointer +_AVAudioBitRateStrategy_LongTermAverage; + +objc.NSString get AVAudioBitRateStrategy_LongTermAverage => + objc.NSString.fromPointer( + _AVAudioBitRateStrategy_LongTermAverage, + retain: true, + release: true, ); - } - /// Constructs a [AVAudioFormat] that wraps the given raw object pointer. - AVAudioFormat.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioFormat', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), +@ffi.Native>( + symbol: 'AVAudioBitRateStrategy_Variable', +) +external final ffi.Pointer +_AVAudioBitRateStrategy_Variable; + +objc.NSString get AVAudioBitRateStrategy_Variable => objc.NSString.fromPointer( + _AVAudioBitRateStrategy_Variable, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'AVAudioBitRateStrategy_VariableConstrained', +) +external final ffi.Pointer +_AVAudioBitRateStrategy_VariableConstrained; + +objc.NSString get AVAudioBitRateStrategy_VariableConstrained => + objc.NSString.fromPointer( + _AVAudioBitRateStrategy_VariableConstrained, + retain: true, + release: true, ); - } -} -/// AVAudioPlayer -extension type AVAudioPlayer._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioPlayer] that points to the same underlying object as [other]. - AVAudioPlayer.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioPlayer', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>(symbol: 'AVAudioFileTypeKey') +external final ffi.Pointer _AVAudioFileTypeKey; + +objc.NSString get AVAudioFileTypeKey => + objc.NSString.fromPointer(_AVAudioFileTypeKey, retain: true, release: true); + +@ffi.Native( + symbol: 'AVAudioSessionAvailableInputsChangeNotification', +) +external final NSNotificationName +_AVAudioSessionAvailableInputsChangeNotification; + +DartNSNotificationName get AVAudioSessionAvailableInputsChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionAvailableInputsChangeNotification, + retain: true, + release: true, ); - assert(isA(object$)); - } - /// Constructs a [AVAudioPlayer] that wraps the given raw object pointer. - AVAudioPlayer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioPlayer', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionCategoryAmbient') +external final AVAudioSessionCategory _AVAudioSessionCategoryAmbient; + +DartAVAudioSessionCategory get AVAudioSessionCategoryAmbient => + objc.NSString.fromPointer( + _AVAudioSessionCategoryAmbient, + retain: true, + release: true, ); - assert(isA(object$)); - } - /// Returns whether [obj] is an instance of [AVAudioPlayer]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_AVAudioPlayer, - ); +@ffi.Native( + symbol: 'AVAudioSessionCategoryAudioProcessing', +) +external final AVAudioSessionCategory _AVAudioSessionCategoryAudioProcessing; - /// alloc - static AVAudioPlayer alloc() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_alloc); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } +DartAVAudioSessionCategory get AVAudioSessionCategoryAudioProcessing => + objc.NSString.fromPointer( + _AVAudioSessionCategoryAudioProcessing, + retain: true, + release: true, + ); - /// allocWithZone: - static AVAudioPlayer allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_AVAudioPlayer, - _sel_allocWithZone_, - zone, +@ffi.Native(symbol: 'AVAudioSessionCategoryMultiRoute') +external final AVAudioSessionCategory _AVAudioSessionCategoryMultiRoute; + +DartAVAudioSessionCategory get AVAudioSessionCategoryMultiRoute => + objc.NSString.fromPointer( + _AVAudioSessionCategoryMultiRoute, + retain: true, + release: true, ); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - /// new - static AVAudioPlayer new$() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_new); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } +@ffi.Native( + symbol: 'AVAudioSessionCategoryPlayAndRecord', +) +external final AVAudioSessionCategory _AVAudioSessionCategoryPlayAndRecord; - /// Returns a new instance of AVAudioPlayer constructed with the default `new` method. - AVAudioPlayer() : this.as(new$().object$); -} +DartAVAudioSessionCategory get AVAudioSessionCategoryPlayAndRecord => + objc.NSString.fromPointer( + _AVAudioSessionCategoryPlayAndRecord, + retain: true, + release: true, + ); -extension AVAudioPlayer$Methods on AVAudioPlayer { - /// averagePowerForChannel: - double averagePowerForChannel(int channelNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.averagePowerForChannel:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionCategoryPlayback') +external final AVAudioSessionCategory _AVAudioSessionCategoryPlayback; + +DartAVAudioSessionCategory get AVAudioSessionCategoryPlayback => + objc.NSString.fromPointer( + _AVAudioSessionCategoryPlayback, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_65s5ywFpret( - _$$ref.pointer, - _sel_averagePowerForChannel_, - channelNumber, - ) - : _objc_msgSend_65s5yw( - _$$ref.pointer, - _sel_averagePowerForChannel_, - channelNumber, - ); - } - /// channelAssignments - objc.NSArray? get channelAssignments { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.channelAssignments', - iOS: (false, (7, 0, 0)), - macOS: (true, null), +@ffi.Native(symbol: 'AVAudioSessionCategoryRecord') +external final AVAudioSessionCategory _AVAudioSessionCategoryRecord; + +DartAVAudioSessionCategory get AVAudioSessionCategoryRecord => + objc.NSString.fromPointer( + _AVAudioSessionCategoryRecord, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_channelAssignments); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - /// currentDevice - objc.NSString? get currentDevice { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.currentDevice', - iOS: (true, null), - macOS: (false, (10, 13, 0)), +@ffi.Native(symbol: 'AVAudioSessionCategorySoloAmbient') +external final AVAudioSessionCategory _AVAudioSessionCategorySoloAmbient; + +DartAVAudioSessionCategory get AVAudioSessionCategorySoloAmbient => + objc.NSString.fromPointer( + _AVAudioSessionCategorySoloAmbient, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - /// currentTime - double get currentTime { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.currentTime', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native( + symbol: 'AVAudioSessionInterruptionNotification', +) +external final NSNotificationName _AVAudioSessionInterruptionNotification; + +DartNSNotificationName get AVAudioSessionInterruptionNotification => + objc.NSString.fromPointer( + _AVAudioSessionInterruptionNotification, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); - } - /// data - objc.NSData? get data { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.data', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionInterruptionOptionKey', +) +external final ffi.Pointer +_AVAudioSessionInterruptionOptionKey; + +objc.NSString get AVAudioSessionInterruptionOptionKey => + objc.NSString.fromPointer( + _AVAudioSessionInterruptionOptionKey, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - /// delegate - AVAudioPlayerDelegate? get delegate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.delegate', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionInterruptionReasonKey', +) +external final ffi.Pointer +_AVAudioSessionInterruptionReasonKey; + +objc.NSString get AVAudioSessionInterruptionReasonKey => + objc.NSString.fromPointer( + _AVAudioSessionInterruptionReasonKey, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); - return $ret.address == 0 - ? null - : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); - } - /// deviceCurrentTime - double get deviceCurrentTime { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.deviceCurrentTime', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionInterruptionTypeKey', +) +external final ffi.Pointer +_AVAudioSessionInterruptionTypeKey; + +objc.NSString get AVAudioSessionInterruptionTypeKey => + objc.NSString.fromPointer( + _AVAudioSessionInterruptionTypeKey, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); - } - /// duration - double get duration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.duration', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionInterruptionWasSuspendedKey', +) +external final ffi.Pointer +_AVAudioSessionInterruptionWasSuspendedKey; + +objc.NSString get AVAudioSessionInterruptionWasSuspendedKey => + objc.NSString.fromPointer( + _AVAudioSessionInterruptionWasSuspendedKey, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); - } - /// enableRate - bool get enableRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.enableRate', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), +@ffi.Native(symbol: 'AVAudioSessionLocationLower') +external AVAudioSessionLocation _AVAudioSessionLocationLower; + +DartAVAudioSessionLocation get AVAudioSessionLocationLower => + objc.NSString.fromPointer( + _AVAudioSessionLocationLower, + retain: true, + release: true, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); - } - /// format - AVAudioFormat get format { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.format', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), +set AVAudioSessionLocationLower(DartAVAudioSessionLocation value) { + objc.NSString.fromPointer( + _AVAudioSessionLocationLower, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionLocationLower = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionLocationUpper') +external AVAudioSessionLocation _AVAudioSessionLocationUpper; + +DartAVAudioSessionLocation get AVAudioSessionLocationUpper => + objc.NSString.fromPointer( + _AVAudioSessionLocationUpper, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); - return AVAudioFormat.fromPointer($ret, retain: true, release: true); - } - /// init - AVAudioPlayer init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), +set AVAudioSessionLocationUpper(DartAVAudioSessionLocation value) { + objc.NSString.fromPointer( + _AVAudioSessionLocationUpper, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionLocationUpper = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionMediaServicesWereLostNotification', +) +external final NSNotificationName +_AVAudioSessionMediaServicesWereLostNotification; + +DartNSNotificationName get AVAudioSessionMediaServicesWereLostNotification => + objc.NSString.fromPointer( + _AVAudioSessionMediaServicesWereLostNotification, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, + +@ffi.Native( + symbol: 'AVAudioSessionMediaServicesWereResetNotification', +) +external final NSNotificationName +_AVAudioSessionMediaServicesWereResetNotification; + +DartNSNotificationName get AVAudioSessionMediaServicesWereResetNotification => + objc.NSString.fromPointer( + _AVAudioSessionMediaServicesWereResetNotification, + retain: true, + release: true, ); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - /// initWithContentsOfURL:error: - AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithContentsOfURL:error:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native( + symbol: 'AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification', +) +external final NSNotificationName +_AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification; + +DartNSNotificationName +get AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification, + retain: true, + release: true, ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - /// initWithContentsOfURL:fileTypeHint:error: - AVAudioPlayer? initWithContentsOfURL$1( - objc.NSURL url, { - objc.NSString? fileTypeHint, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = fileTypeHint?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithContentsOfURL:fileTypeHint:error:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionMicrophoneInjectionIsAvailableKey', +) +external final ffi.Pointer +_AVAudioSessionMicrophoneInjectionIsAvailableKey; + +objc.NSString get AVAudioSessionMicrophoneInjectionIsAvailableKey => + objc.NSString.fromPointer( + _AVAudioSessionMicrophoneInjectionIsAvailableKey, + retain: true, + release: true, ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_fileTypeHint_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - /// initWithData:error: - AVAudioPlayer? initWithData(objc.NSData data) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithData:error:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithData_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } +@ffi.Native(symbol: 'AVAudioSessionModeDefault') +external final AVAudioSessionMode _AVAudioSessionModeDefault; - /// initWithData:fileTypeHint:error: - AVAudioPlayer? initWithData$1( - objc.NSData data, { - objc.NSString? fileTypeHint, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - final _$$ref$2 = fileTypeHint?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithData:fileTypeHint:error:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), +DartAVAudioSessionMode get AVAudioSessionModeDefault => + objc.NSString.fromPointer( + _AVAudioSessionModeDefault, + retain: true, + release: true, ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _$$ref.retainAndReturnPointer(), - _sel_initWithData_fileTypeHint_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - /// intendedSpatialExperience - CASpatialAudioExperience get intendedSpatialExperience { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.intendedSpatialExperience', - iOS: (true, null), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_intendedSpatialExperience, +@ffi.Native(symbol: 'AVAudioSessionModeGameChat') +external final AVAudioSessionMode _AVAudioSessionModeGameChat; + +DartAVAudioSessionMode get AVAudioSessionModeGameChat => + objc.NSString.fromPointer( + _AVAudioSessionModeGameChat, + retain: true, + release: true, ); - return CASpatialAudioExperience.fromPointer( - $ret, + +@ffi.Native(symbol: 'AVAudioSessionModeMeasurement') +external final AVAudioSessionMode _AVAudioSessionModeMeasurement; + +DartAVAudioSessionMode get AVAudioSessionModeMeasurement => + objc.NSString.fromPointer( + _AVAudioSessionModeMeasurement, retain: true, release: true, ); - } - /// isMeteringEnabled - bool get isMeteringEnabled { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.isMeteringEnabled', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeMoviePlayback') +external final AVAudioSessionMode _AVAudioSessionModeMoviePlayback; + +DartAVAudioSessionMode get AVAudioSessionModeMoviePlayback => + objc.NSString.fromPointer( + _AVAudioSessionModeMoviePlayback, + retain: true, + release: true, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); - } - /// isPlaying - bool get isPlaying { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.isPlaying', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeShortFormVideo') +external final AVAudioSessionMode _AVAudioSessionModeShortFormVideo; + +DartAVAudioSessionMode get AVAudioSessionModeShortFormVideo => + objc.NSString.fromPointer( + _AVAudioSessionModeShortFormVideo, + retain: true, + release: true, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); - } - /// numberOfChannels - int get numberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.numberOfChannels', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeSpokenAudio') +external final AVAudioSessionMode _AVAudioSessionModeSpokenAudio; + +DartAVAudioSessionMode get AVAudioSessionModeSpokenAudio => + objc.NSString.fromPointer( + _AVAudioSessionModeSpokenAudio, + retain: true, + release: true, ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfChannels); - } - /// numberOfLoops - int get numberOfLoops { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.numberOfLoops', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeVideoChat') +external final AVAudioSessionMode _AVAudioSessionModeVideoChat; + +DartAVAudioSessionMode get AVAudioSessionModeVideoChat => + objc.NSString.fromPointer( + _AVAudioSessionModeVideoChat, + retain: true, + release: true, ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); - } - /// pan - double get pan { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.pan', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeVideoRecording') +external final AVAudioSessionMode _AVAudioSessionModeVideoRecording; + +DartAVAudioSessionMode get AVAudioSessionModeVideoRecording => + objc.NSString.fromPointer( + _AVAudioSessionModeVideoRecording, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); - } - /// pause - void pause() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.pause', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeVoiceChat') +external final AVAudioSessionMode _AVAudioSessionModeVoiceChat; + +DartAVAudioSessionMode get AVAudioSessionModeVoiceChat => + objc.NSString.fromPointer( + _AVAudioSessionModeVoiceChat, + retain: true, + release: true, ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); - } - /// peakPowerForChannel: - double peakPowerForChannel(int channelNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.peakPowerForChannel:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeVoicePrompt') +external final AVAudioSessionMode _AVAudioSessionModeVoicePrompt; + +DartAVAudioSessionMode get AVAudioSessionModeVoicePrompt => + objc.NSString.fromPointer( + _AVAudioSessionModeVoicePrompt, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_65s5ywFpret( - _$$ref.pointer, - _sel_peakPowerForChannel_, - channelNumber, - ) - : _objc_msgSend_65s5yw( - _$$ref.pointer, - _sel_peakPowerForChannel_, - channelNumber, - ); - } - /// play - bool play() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.play', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionMuteStateKey', +) +external final ffi.Pointer _AVAudioSessionMuteStateKey; + +objc.NSString get AVAudioSessionMuteStateKey => objc.NSString.fromPointer( + _AVAudioSessionMuteStateKey, + retain: true, + release: true, +); + +@ffi.Native(symbol: 'AVAudioSessionOrientationBack') +external AVAudioSessionOrientation _AVAudioSessionOrientationBack; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationBack => + objc.NSString.fromPointer( + _AVAudioSessionOrientationBack, + retain: true, + release: true, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); - } - /// playAtTime: - bool playAtTime(double time) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.playAtTime:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), +set AVAudioSessionOrientationBack(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationBack, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationBack = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionOrientationBottom', +) +external AVAudioSessionOrientation _AVAudioSessionOrientationBottom; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationBottom => + objc.NSString.fromPointer( + _AVAudioSessionOrientationBottom, + retain: true, + release: true, ); - return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time); - } - /// prepareToPlay - bool prepareToPlay() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.prepareToPlay', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +set AVAudioSessionOrientationBottom(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationBottom, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationBottom = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionOrientationFront') +external AVAudioSessionOrientation _AVAudioSessionOrientationFront; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationFront => + objc.NSString.fromPointer( + _AVAudioSessionOrientationFront, + retain: true, + release: true, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); - } - /// rate - double get rate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.rate', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), +set AVAudioSessionOrientationFront(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationFront, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationFront = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionOrientationLeft') +external AVAudioSessionOrientation _AVAudioSessionOrientationLeft; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationLeft => + objc.NSString.fromPointer( + _AVAudioSessionOrientationLeft, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); - } - /// setChannelAssignments: - set channelAssignments(objc.NSArray? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setChannelAssignments:', - iOS: (false, (7, 0, 0)), - macOS: (true, null), +set AVAudioSessionOrientationLeft(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationLeft, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationLeft = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionOrientationRight') +external AVAudioSessionOrientation _AVAudioSessionOrientationRight; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationRight => + objc.NSString.fromPointer( + _AVAudioSessionOrientationRight, + retain: true, + release: true, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setChannelAssignments_, - _$$ref$1?.pointer ?? ffi.nullptr, + +set AVAudioSessionOrientationRight(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationRight, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationRight = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionOrientationTop') +external AVAudioSessionOrientation _AVAudioSessionOrientationTop; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationTop => + objc.NSString.fromPointer( + _AVAudioSessionOrientationTop, + retain: true, + release: true, ); - } - /// setCurrentDevice: - set currentDevice(objc.NSString? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setCurrentDevice:', - iOS: (true, null), - macOS: (false, (10, 13, 0)), +set AVAudioSessionOrientationTop(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationTop, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationTop = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionOutputMuteStateChangeNotification', +) +external final NSNotificationName +_AVAudioSessionOutputMuteStateChangeNotification; + +DartNSNotificationName get AVAudioSessionOutputMuteStateChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionOutputMuteStateChangeNotification, + retain: true, + release: true, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setCurrentDevice_, - _$$ref$1?.pointer ?? ffi.nullptr, + +@ffi.Native( + symbol: 'AVAudioSessionPolarPatternCardioid', +) +external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternCardioid; + +DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternCardioid => + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternCardioid, + retain: true, + release: true, ); - } - /// setCurrentTime: - set currentTime(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setCurrentTime:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +set AVAudioSessionPolarPatternCardioid(DartAVAudioSessionPolarPattern value) { + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternCardioid, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionPolarPatternCardioid = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionPolarPatternOmnidirectional', +) +external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternOmnidirectional; + +DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternOmnidirectional => + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternOmnidirectional, + retain: true, + release: true, ); - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); - } - /// setDelegate: - set delegate(AVAudioPlayerDelegate? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setDelegate:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +set AVAudioSessionPolarPatternOmnidirectional( + DartAVAudioSessionPolarPattern value, +) { + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternOmnidirectional, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionPolarPatternOmnidirectional = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionPolarPatternStereo', +) +external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternStereo; + +DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternStereo => + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternStereo, + retain: true, + release: true, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setDelegate_, - _$$ref$1?.pointer ?? ffi.nullptr, + +set AVAudioSessionPolarPatternStereo(DartAVAudioSessionPolarPattern value) { + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternStereo, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionPolarPatternStereo = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionPolarPatternSubcardioid', +) +external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternSubcardioid; + +DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternSubcardioid => + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternSubcardioid, + retain: true, + release: true, ); - } - /// setEnableRate: - set enableRate(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setEnableRate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), +set AVAudioSessionPolarPatternSubcardioid( + DartAVAudioSessionPolarPattern value, +) { + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternSubcardioid, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionPolarPatternSubcardioid = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionPortAVB') +external final AVAudioSessionPort _AVAudioSessionPortAVB; + +DartAVAudioSessionPort get AVAudioSessionPortAVB => objc.NSString.fromPointer( + _AVAudioSessionPortAVB, + retain: true, + release: true, +); + +@ffi.Native(symbol: 'AVAudioSessionPortAirPlay') +external final AVAudioSessionPort _AVAudioSessionPortAirPlay; + +DartAVAudioSessionPort get AVAudioSessionPortAirPlay => + objc.NSString.fromPointer( + _AVAudioSessionPortAirPlay, + retain: true, + release: true, ); - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); - } - /// setIntendedSpatialExperience: - set intendedSpatialExperience(CASpatialAudioExperience value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setIntendedSpatialExperience:', - iOS: (true, null), - macOS: (true, null), +@ffi.Native(symbol: 'AVAudioSessionPortBluetoothA2DP') +external final AVAudioSessionPort _AVAudioSessionPortBluetoothA2DP; + +DartAVAudioSessionPort get AVAudioSessionPortBluetoothA2DP => + objc.NSString.fromPointer( + _AVAudioSessionPortBluetoothA2DP, + retain: true, + release: true, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setIntendedSpatialExperience_, - _$$ref$1.pointer, + +@ffi.Native(symbol: 'AVAudioSessionPortBluetoothHFP') +external final AVAudioSessionPort _AVAudioSessionPortBluetoothHFP; + +DartAVAudioSessionPort get AVAudioSessionPortBluetoothHFP => + objc.NSString.fromPointer( + _AVAudioSessionPortBluetoothHFP, + retain: true, + release: true, ); - } - /// setMeteringEnabled: - set isMeteringEnabled(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setMeteringEnabled:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortBluetoothLE') +external final AVAudioSessionPort _AVAudioSessionPortBluetoothLE; + +DartAVAudioSessionPort get AVAudioSessionPortBluetoothLE => + objc.NSString.fromPointer( + _AVAudioSessionPortBluetoothLE, + retain: true, + release: true, ); - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setMeteringEnabled_, value); - } - /// setNumberOfLoops: - set numberOfLoops(int value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setNumberOfLoops:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortBuiltInMic') +external final AVAudioSessionPort _AVAudioSessionPortBuiltInMic; + +DartAVAudioSessionPort get AVAudioSessionPortBuiltInMic => + objc.NSString.fromPointer( + _AVAudioSessionPortBuiltInMic, + retain: true, + release: true, ); - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); - } - /// setPan: - set pan(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setPan:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortBuiltInReceiver') +external final AVAudioSessionPort _AVAudioSessionPortBuiltInReceiver; + +DartAVAudioSessionPort get AVAudioSessionPortBuiltInReceiver => + objc.NSString.fromPointer( + _AVAudioSessionPortBuiltInReceiver, + retain: true, + release: true, ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); - } - /// setRate: - set rate(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setRate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortBuiltInSpeaker') +external final AVAudioSessionPort _AVAudioSessionPortBuiltInSpeaker; + +DartAVAudioSessionPort get AVAudioSessionPortBuiltInSpeaker => + objc.NSString.fromPointer( + _AVAudioSessionPortBuiltInSpeaker, + retain: true, + release: true, ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); - } - /// setVolume: - set volume(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setVolume:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortCarAudio') +external final AVAudioSessionPort _AVAudioSessionPortCarAudio; + +DartAVAudioSessionPort get AVAudioSessionPortCarAudio => + objc.NSString.fromPointer( + _AVAudioSessionPortCarAudio, + retain: true, + release: true, ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); - } - /// setVolume:fadeDuration: - void setVolume(double volume, {required double fadeDuration}) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setVolume:fadeDuration:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), +@ffi.Native( + symbol: 'AVAudioSessionPortContinuityMicrophone', +) +external final AVAudioSessionPort _AVAudioSessionPortContinuityMicrophone; + +DartAVAudioSessionPort get AVAudioSessionPortContinuityMicrophone => + objc.NSString.fromPointer( + _AVAudioSessionPortContinuityMicrophone, + retain: true, + release: true, ); - _objc_msgSend_1p4uk9e( - _$$ref.pointer, - _sel_setVolume_fadeDuration_, - volume, - fadeDuration, + +@ffi.Native(symbol: 'AVAudioSessionPortDisplayPort') +external final AVAudioSessionPort _AVAudioSessionPortDisplayPort; + +DartAVAudioSessionPort get AVAudioSessionPortDisplayPort => + objc.NSString.fromPointer( + _AVAudioSessionPortDisplayPort, + retain: true, + release: true, ); - } - /// settings - objc.NSDictionary get settings { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.settings', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortFireWire') +external final AVAudioSessionPort _AVAudioSessionPortFireWire; + +DartAVAudioSessionPort get AVAudioSessionPortFireWire => + objc.NSString.fromPointer( + _AVAudioSessionPortFireWire, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_settings); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - /// stop - void stop() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.stop', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortHDMI') +external final AVAudioSessionPort _AVAudioSessionPortHDMI; + +DartAVAudioSessionPort get AVAudioSessionPortHDMI => objc.NSString.fromPointer( + _AVAudioSessionPortHDMI, + retain: true, + release: true, +); + +@ffi.Native(symbol: 'AVAudioSessionPortHeadphones') +external final AVAudioSessionPort _AVAudioSessionPortHeadphones; + +DartAVAudioSessionPort get AVAudioSessionPortHeadphones => + objc.NSString.fromPointer( + _AVAudioSessionPortHeadphones, + retain: true, + release: true, ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); - } - /// updateMeters - void updateMeters() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.updateMeters', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortHeadsetMic') +external final AVAudioSessionPort _AVAudioSessionPortHeadsetMic; + +DartAVAudioSessionPort get AVAudioSessionPortHeadsetMic => + objc.NSString.fromPointer( + _AVAudioSessionPortHeadsetMic, + retain: true, + release: true, ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); - } - /// url - objc.NSURL? get url { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.url', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortLineIn') +external final AVAudioSessionPort _AVAudioSessionPortLineIn; + +DartAVAudioSessionPort get AVAudioSessionPortLineIn => + objc.NSString.fromPointer( + _AVAudioSessionPortLineIn, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - /// volume - double get volume { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.volume', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortLineOut') +external final AVAudioSessionPort _AVAudioSessionPortLineOut; + +DartAVAudioSessionPort get AVAudioSessionPortLineOut => + objc.NSString.fromPointer( + _AVAudioSessionPortLineOut, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); - } -} -/// WARNING: AVAudioPlayerDelegate is a stub. To generate bindings for this class, include -/// AVAudioPlayerDelegate in your config's objc-protocols list. -/// -/// AVAudioPlayerDelegate -extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [AVAudioPlayerDelegate] that points to the same underlying object as [other]. - AVAudioPlayerDelegate.as(objc.ObjCObject other) : object$ = other; +@ffi.Native(symbol: 'AVAudioSessionPortPCI') +external final AVAudioSessionPort _AVAudioSessionPortPCI; - /// Constructs a [AVAudioPlayerDelegate] that wraps the given raw object pointer. - AVAudioPlayerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} +DartAVAudioSessionPort get AVAudioSessionPortPCI => objc.NSString.fromPointer( + _AVAudioSessionPortPCI, + retain: true, + release: true, +); -/// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include -/// CASpatialAudioExperience in your config's objc-interfaces list. -/// -/// CASpatialAudioExperience -extension type CASpatialAudioExperience._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [CASpatialAudioExperience] that points to the same underlying object as [other]. - CASpatialAudioExperience.as(objc.ObjCObject other) : object$ = other {} +@ffi.Native(symbol: 'AVAudioSessionPortThunderbolt') +external final AVAudioSessionPort _AVAudioSessionPortThunderbolt; - /// Constructs a [CASpatialAudioExperience] that wraps the given raw object pointer. - CASpatialAudioExperience.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} +DartAVAudioSessionPort get AVAudioSessionPortThunderbolt => + objc.NSString.fromPointer( + _AVAudioSessionPortThunderbolt, + retain: true, + release: true, + ); + +@ffi.Native(symbol: 'AVAudioSessionPortUSBAudio') +external final AVAudioSessionPort _AVAudioSessionPortUSBAudio; + +DartAVAudioSessionPort get AVAudioSessionPortUSBAudio => + objc.NSString.fromPointer( + _AVAudioSessionPortUSBAudio, + retain: true, + release: true, + ); + +@ffi.Native(symbol: 'AVAudioSessionPortVirtual') +external final AVAudioSessionPort _AVAudioSessionPortVirtual; + +DartAVAudioSessionPort get AVAudioSessionPortVirtual => + objc.NSString.fromPointer( + _AVAudioSessionPortVirtual, + retain: true, + release: true, + ); + +@ffi.Native( + symbol: 'AVAudioSessionRenderingCapabilitiesChangeNotification', +) +external final NSNotificationName +_AVAudioSessionRenderingCapabilitiesChangeNotification; + +DartNSNotificationName +get AVAudioSessionRenderingCapabilitiesChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionRenderingCapabilitiesChangeNotification, + retain: true, + release: true, + ); + +@ffi.Native( + symbol: 'AVAudioSessionRenderingModeChangeNotification', +) +external final NSNotificationName +_AVAudioSessionRenderingModeChangeNotification; + +DartNSNotificationName get AVAudioSessionRenderingModeChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionRenderingModeChangeNotification, + retain: true, + release: true, + ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$_AVAudioPlayer', + symbol: 'AVAudioSessionRenderingModeNewRenderingModeKey', ) -external ffi.Pointer _class_AVAudioPlayer_raw; -final _class_AVAudioPlayer = objc.getClass( - "AVAudioPlayer", - () => ffi.Native.addressOf>( - _class_AVAudioPlayer_raw, - ).cast(), -); -final _objc_msgSend_151sglz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18chyc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1p4uk9e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - double, - ) - >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_4sp4xj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_65s5yw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_65s5ywFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_91o635 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_v5hmet = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_xw2lbc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_alloc = objc.registerName("alloc"); -late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); -late final _sel_averagePowerForChannel_ = objc.registerName( - "averagePowerForChannel:", +external final ffi.Pointer +_AVAudioSessionRenderingModeNewRenderingModeKey; + +objc.NSString get AVAudioSessionRenderingModeNewRenderingModeKey => + objc.NSString.fromPointer( + _AVAudioSessionRenderingModeNewRenderingModeKey, + retain: true, + release: true, + ); + +@ffi.Native(symbol: 'AVAudioSessionRouteChangeNotification') +external final NSNotificationName _AVAudioSessionRouteChangeNotification; + +DartNSNotificationName get AVAudioSessionRouteChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionRouteChangeNotification, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVAudioSessionRouteChangePreviousRouteKey', +) +external final ffi.Pointer +_AVAudioSessionRouteChangePreviousRouteKey; + +objc.NSString get AVAudioSessionRouteChangePreviousRouteKey => + objc.NSString.fromPointer( + _AVAudioSessionRouteChangePreviousRouteKey, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVAudioSessionRouteChangeReasonKey', +) +external final ffi.Pointer +_AVAudioSessionRouteChangeReasonKey; + +objc.NSString get AVAudioSessionRouteChangeReasonKey => + objc.NSString.fromPointer( + _AVAudioSessionRouteChangeReasonKey, + retain: true, + release: true, + ); + +@ffi.Native( + symbol: 'AVAudioSessionSilenceSecondaryAudioHintNotification', +) +external final NSNotificationName +_AVAudioSessionSilenceSecondaryAudioHintNotification; + +DartNSNotificationName +get AVAudioSessionSilenceSecondaryAudioHintNotification => + objc.NSString.fromPointer( + _AVAudioSessionSilenceSecondaryAudioHintNotification, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVAudioSessionSilenceSecondaryAudioHintTypeKey', +) +external final ffi.Pointer +_AVAudioSessionSilenceSecondaryAudioHintTypeKey; + +objc.NSString get AVAudioSessionSilenceSecondaryAudioHintTypeKey => + objc.NSString.fromPointer( + _AVAudioSessionSilenceSecondaryAudioHintTypeKey, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVAudioSessionSpatialAudioEnabledKey', +) +external final ffi.Pointer +_AVAudioSessionSpatialAudioEnabledKey; + +objc.NSString get AVAudioSessionSpatialAudioEnabledKey => + objc.NSString.fromPointer( + _AVAudioSessionSpatialAudioEnabledKey, + retain: true, + release: true, + ); + +@ffi.Native( + symbol: 'AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification', +) +external final NSNotificationName +_AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification; + +DartNSNotificationName +get AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification => + objc.NSString.fromPointer( + _AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification, + retain: true, + release: true, + ); + +@ffi.Native( + symbol: 'AVAudioSessionUserIntentToUnmuteOutputNotification', +) +external final NSNotificationName +_AVAudioSessionUserIntentToUnmuteOutputNotification; + +DartNSNotificationName get AVAudioSessionUserIntentToUnmuteOutputNotification => + objc.NSString.fromPointer( + _AVAudioSessionUserIntentToUnmuteOutputNotification, + retain: true, + release: true, + ); + +@ffi.Native>(symbol: 'AVChannelLayoutKey') +external final ffi.Pointer _AVChannelLayoutKey; + +objc.NSString get AVChannelLayoutKey => + objc.NSString.fromPointer(_AVChannelLayoutKey, retain: true, release: true); + +@ffi.Native>( + symbol: 'AVEncoderASPFrequencyKey', +) +external final ffi.Pointer _AVEncoderASPFrequencyKey; + +objc.NSString get AVEncoderASPFrequencyKey => objc.NSString.fromPointer( + _AVEncoderASPFrequencyKey, + retain: true, + release: true, ); -late final _sel_channelAssignments = objc.registerName("channelAssignments"); -late final _sel_currentDevice = objc.registerName("currentDevice"); -late final _sel_currentTime = objc.registerName("currentTime"); -late final _sel_data = objc.registerName("data"); -late final _sel_delegate = objc.registerName("delegate"); -late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); -late final _sel_duration = objc.registerName("duration"); -late final _sel_enableRate = objc.registerName("enableRate"); -late final _sel_format = objc.registerName("format"); -late final _sel_init = objc.registerName("init"); -late final _sel_initWithContentsOfURL_error_ = objc.registerName( - "initWithContentsOfURL:error:", + +@ffi.Native>( + symbol: 'AVEncoderAudioQualityForVBRKey', +) +external final ffi.Pointer _AVEncoderAudioQualityForVBRKey; + +objc.NSString get AVEncoderAudioQualityForVBRKey => objc.NSString.fromPointer( + _AVEncoderAudioQualityForVBRKey, + retain: true, + release: true, ); -late final _sel_initWithContentsOfURL_fileTypeHint_error_ = objc.registerName( - "initWithContentsOfURL:fileTypeHint:error:", + +@ffi.Native>( + symbol: 'AVEncoderAudioQualityKey', +) +external final ffi.Pointer _AVEncoderAudioQualityKey; + +objc.NSString get AVEncoderAudioQualityKey => objc.NSString.fromPointer( + _AVEncoderAudioQualityKey, + retain: true, + release: true, ); -late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); -late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( - "initWithData:fileTypeHint:error:", + +@ffi.Native>( + symbol: 'AVEncoderBitDepthHintKey', +) +external final ffi.Pointer _AVEncoderBitDepthHintKey; + +objc.NSString get AVEncoderBitDepthHintKey => objc.NSString.fromPointer( + _AVEncoderBitDepthHintKey, + retain: true, + release: true, ); -late final _sel_intendedSpatialExperience = objc.registerName( - "intendedSpatialExperience", + +@ffi.Native>(symbol: 'AVEncoderBitRateKey') +external final ffi.Pointer _AVEncoderBitRateKey; + +objc.NSString get AVEncoderBitRateKey => objc.NSString.fromPointer( + _AVEncoderBitRateKey, + retain: true, + release: true, ); -late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); -late final _sel_isPlaying = objc.registerName("isPlaying"); -late final _sel_new = objc.registerName("new"); -late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); -late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); -late final _sel_pan = objc.registerName("pan"); -late final _sel_pause = objc.registerName("pause"); -late final _sel_peakPowerForChannel_ = objc.registerName( - "peakPowerForChannel:", + +@ffi.Native>( + symbol: 'AVEncoderBitRatePerChannelKey', +) +external final ffi.Pointer _AVEncoderBitRatePerChannelKey; + +objc.NSString get AVEncoderBitRatePerChannelKey => objc.NSString.fromPointer( + _AVEncoderBitRatePerChannelKey, + retain: true, + release: true, ); -late final _sel_play = objc.registerName("play"); -late final _sel_playAtTime_ = objc.registerName("playAtTime:"); -late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); -late final _sel_rate = objc.registerName("rate"); -late final _sel_setChannelAssignments_ = objc.registerName( - "setChannelAssignments:", + +@ffi.Native>( + symbol: 'AVEncoderBitRateStrategyKey', +) +external final ffi.Pointer _AVEncoderBitRateStrategyKey; + +objc.NSString get AVEncoderBitRateStrategyKey => objc.NSString.fromPointer( + _AVEncoderBitRateStrategyKey, + retain: true, + release: true, ); -late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); -late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); -late final _sel_setDelegate_ = objc.registerName("setDelegate:"); -late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); -late final _sel_setIntendedSpatialExperience_ = objc.registerName( - "setIntendedSpatialExperience:", + +@ffi.Native>( + symbol: 'AVEncoderContentSourceKey', +) +external final ffi.Pointer _AVEncoderContentSourceKey; + +objc.NSString get AVEncoderContentSourceKey => objc.NSString.fromPointer( + _AVEncoderContentSourceKey, + retain: true, + release: true, ); -late final _sel_setMeteringEnabled_ = objc.registerName("setMeteringEnabled:"); -late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); -late final _sel_setPan_ = objc.registerName("setPan:"); -late final _sel_setRate_ = objc.registerName("setRate:"); -late final _sel_setVolume_ = objc.registerName("setVolume:"); -late final _sel_setVolume_fadeDuration_ = objc.registerName( - "setVolume:fadeDuration:", + +@ffi.Native>( + symbol: 'AVEncoderDynamicRangeControlConfigurationKey', +) +external final ffi.Pointer +_AVEncoderDynamicRangeControlConfigurationKey; + +objc.NSString get AVEncoderDynamicRangeControlConfigurationKey => + objc.NSString.fromPointer( + _AVEncoderDynamicRangeControlConfigurationKey, + retain: true, + release: true, + ); + +@ffi.Native>(symbol: 'AVFormatIDKey') +external final ffi.Pointer _AVFormatIDKey; + +objc.NSString get AVFormatIDKey => + objc.NSString.fromPointer(_AVFormatIDKey, retain: true, release: true); + +@ffi.Native>(symbol: 'AVLinearPCMBitDepthKey') +external final ffi.Pointer _AVLinearPCMBitDepthKey; + +objc.NSString get AVLinearPCMBitDepthKey => objc.NSString.fromPointer( + _AVLinearPCMBitDepthKey, + retain: true, + release: true, ); -late final _sel_settings = objc.registerName("settings"); -late final _sel_stop = objc.registerName("stop"); -late final _sel_updateMeters = objc.registerName("updateMeters"); -late final _sel_url = objc.registerName("url"); -late final _sel_volume = objc.registerName("volume"); -typedef instancetype = ffi.Pointer; -typedef Dartinstancetype = objc.ObjCObject; + +@ffi.Native>( + symbol: 'AVLinearPCMIsBigEndianKey', +) +external final ffi.Pointer _AVLinearPCMIsBigEndianKey; + +objc.NSString get AVLinearPCMIsBigEndianKey => objc.NSString.fromPointer( + _AVLinearPCMIsBigEndianKey, + retain: true, + release: true, +); + +@ffi.Native>(symbol: 'AVLinearPCMIsFloatKey') +external final ffi.Pointer _AVLinearPCMIsFloatKey; + +objc.NSString get AVLinearPCMIsFloatKey => objc.NSString.fromPointer( + _AVLinearPCMIsFloatKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'AVLinearPCMIsNonInterleaved', +) +external final ffi.Pointer _AVLinearPCMIsNonInterleaved; + +objc.NSString get AVLinearPCMIsNonInterleaved => objc.NSString.fromPointer( + _AVLinearPCMIsNonInterleaved, + retain: true, + release: true, +); + +@ffi.Native>(symbol: 'AVNumberOfChannelsKey') +external final ffi.Pointer _AVNumberOfChannelsKey; + +objc.NSString get AVNumberOfChannelsKey => objc.NSString.fromPointer( + _AVNumberOfChannelsKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'AVSampleRateConverterAlgorithmKey', +) +external final ffi.Pointer +_AVSampleRateConverterAlgorithmKey; + +objc.NSString get AVSampleRateConverterAlgorithmKey => + objc.NSString.fromPointer( + _AVSampleRateConverterAlgorithmKey, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVSampleRateConverterAlgorithm_Mastering', +) +external final ffi.Pointer +_AVSampleRateConverterAlgorithm_Mastering; + +objc.NSString get AVSampleRateConverterAlgorithm_Mastering => + objc.NSString.fromPointer( + _AVSampleRateConverterAlgorithm_Mastering, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVSampleRateConverterAlgorithm_MinimumPhase', +) +external final ffi.Pointer +_AVSampleRateConverterAlgorithm_MinimumPhase; + +objc.NSString get AVSampleRateConverterAlgorithm_MinimumPhase => + objc.NSString.fromPointer( + _AVSampleRateConverterAlgorithm_MinimumPhase, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVSampleRateConverterAlgorithm_Normal', +) +external final ffi.Pointer +_AVSampleRateConverterAlgorithm_Normal; + +objc.NSString get AVSampleRateConverterAlgorithm_Normal => + objc.NSString.fromPointer( + _AVSampleRateConverterAlgorithm_Normal, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVSampleRateConverterAudioQualityKey', +) +external final ffi.Pointer +_AVSampleRateConverterAudioQualityKey; + +objc.NSString get AVSampleRateConverterAudioQualityKey => + objc.NSString.fromPointer( + _AVSampleRateConverterAudioQualityKey, + retain: true, + release: true, + ); + +@ffi.Native>(symbol: 'AVSampleRateKey') +external final ffi.Pointer _AVSampleRateKey; + +objc.NSString get AVSampleRateKey => + objc.NSString.fromPointer(_AVSampleRateKey, retain: true, release: true); + +@Deprecated('Deprecated') +@ffi.Native() +external int AXAPIEnabled(); + +@ffi.Native() +external int AXIsProcessTrusted(); + +@ffi.Native() +external int AXIsProcessTrustedWithOptions(CFDictionaryRef options); + +@Deprecated('Deprecated') +@ffi.Native(symbol: 'AXMakeProcessTrusted') +external int _AXMakeProcessTrusted(CFStringRef executablePath); + +AXError AXMakeProcessTrusted(CFStringRef executablePath) { + return AXError.fromValue(_AXMakeProcessTrusted(executablePath)); +} + +@ffi.Native< + SInt32 Function( + AXObserverRef, + AXUIElementRef, + CFStringRef, + ffi.Pointer, + ) +>(symbol: 'AXObserverAddNotification') +external int _AXObserverAddNotification( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, + ffi.Pointer refcon, +); + +AXError AXObserverAddNotification( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, + ffi.Pointer refcon, +) { + return AXError.fromValue( + _AXObserverAddNotification(observer, element, notification, refcon), + ); +} + +@ffi.Native< + SInt32 Function(pid_t, AXObserverCallback, ffi.Pointer) +>(symbol: 'AXObserverCreate') +external int _AXObserverCreate( + int application, + AXObserverCallback callback, + ffi.Pointer outObserver, +); + +AXError AXObserverCreate( + Dart__int32_t application, + AXObserverCallback callback, + ffi.Pointer outObserver, +) { + return AXError.fromValue( + _AXObserverCreate(application, callback, outObserver), + ); +} + +@ffi.Native< + SInt32 Function(pid_t, AXObserverCallbackWithInfo, ffi.Pointer) +>(symbol: 'AXObserverCreateWithInfoCallback') +external int _AXObserverCreateWithInfoCallback( + int application, + AXObserverCallbackWithInfo callback, + ffi.Pointer outObserver, +); + +AXError AXObserverCreateWithInfoCallback( + Dart__int32_t application, + AXObserverCallbackWithInfo callback, + ffi.Pointer outObserver, +) { + return AXError.fromValue( + _AXObserverCreateWithInfoCallback(application, callback, outObserver), + ); +} + +@ffi.Native() +external CFRunLoopSourceRef AXObserverGetRunLoopSource(AXObserverRef observer); + +@ffi.Native() +external int AXObserverGetTypeID(); + +@ffi.Native( + symbol: 'AXObserverRemoveNotification', +) +external int _AXObserverRemoveNotification( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, +); + +AXError AXObserverRemoveNotification( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, +) { + return AXError.fromValue( + _AXObserverRemoveNotification(observer, element, notification), + ); +} + +@ffi.Native< + AXTextMarkerRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) +>() +external AXTextMarkerRef AXTextMarkerCreate( + CFAllocatorRef allocator, + ffi.Pointer bytes, + int length, +); + +@ffi.Native Function(AXTextMarkerRef)>() +external ffi.Pointer AXTextMarkerGetBytePtr( + AXTextMarkerRef theTextMarker, +); + +@ffi.Native() +external int AXTextMarkerGetLength(AXTextMarkerRef marker); + +@ffi.Native() +external int AXTextMarkerGetTypeID(); + +@ffi.Native() +external AXTextMarkerRef AXTextMarkerRangeCopyEndMarker( + AXTextMarkerRangeRef textMarkerRange, +); + +@ffi.Native() +external AXTextMarkerRef AXTextMarkerRangeCopyStartMarker( + AXTextMarkerRangeRef textMarkerRange, +); + +@ffi.Native< + AXTextMarkerRangeRef Function( + CFAllocatorRef, + AXTextMarkerRef, + AXTextMarkerRef, + ) +>() +external AXTextMarkerRangeRef AXTextMarkerRangeCreate( + CFAllocatorRef allocator, + AXTextMarkerRef startMarker, + AXTextMarkerRef endMarker, +); + +@ffi.Native< + AXTextMarkerRangeRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + ffi.Pointer, + CFIndex, + ) +>() +external AXTextMarkerRangeRef AXTextMarkerRangeCreateWithBytes( + CFAllocatorRef allocator, + ffi.Pointer startMarkerBytes, + int startMarkerLength, + ffi.Pointer endMarkerBytes, + int endMarkerLength, +); + +@ffi.Native() +external int AXTextMarkerRangeGetTypeID(); + +@ffi.Native< + SInt32 Function(AXUIElementRef, CFStringRef, ffi.Pointer) +>(symbol: 'AXUIElementCopyActionDescription') +external int _AXUIElementCopyActionDescription( + AXUIElementRef element, + CFStringRef action, + ffi.Pointer description, +); + +AXError AXUIElementCopyActionDescription( + AXUIElementRef element, + CFStringRef action, + ffi.Pointer description, +) { + return AXError.fromValue( + _AXUIElementCopyActionDescription(element, action, description), + ); +} + +@ffi.Native)>( + symbol: 'AXUIElementCopyActionNames', +) +external int _AXUIElementCopyActionNames( + AXUIElementRef element, + ffi.Pointer names, +); + +AXError AXUIElementCopyActionNames( + AXUIElementRef element, + ffi.Pointer names, +) { + return AXError.fromValue(_AXUIElementCopyActionNames(element, names)); +} + +@ffi.Native)>( + symbol: 'AXUIElementCopyAttributeNames', +) +external int _AXUIElementCopyAttributeNames( + AXUIElementRef element, + ffi.Pointer names, +); + +AXError AXUIElementCopyAttributeNames( + AXUIElementRef element, + ffi.Pointer names, +) { + return AXError.fromValue(_AXUIElementCopyAttributeNames(element, names)); +} + +@ffi.Native< + SInt32 Function(AXUIElementRef, CFStringRef, ffi.Pointer) +>(symbol: 'AXUIElementCopyAttributeValue') +external int _AXUIElementCopyAttributeValue( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer value, +); + +AXError AXUIElementCopyAttributeValue( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer value, +) { + return AXError.fromValue( + _AXUIElementCopyAttributeValue(element, attribute, value), + ); +} + +@ffi.Native< + SInt32 Function( + AXUIElementRef, + CFStringRef, + CFIndex, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'AXUIElementCopyAttributeValues') +external int _AXUIElementCopyAttributeValues( + AXUIElementRef element, + CFStringRef attribute, + int index$1, + int maxValues, + ffi.Pointer values, +); + +AXError AXUIElementCopyAttributeValues( + AXUIElementRef element, + CFStringRef attribute, + DartCFIndex index$1, + DartCFIndex maxValues, + ffi.Pointer values, +) { + return AXError.fromValue( + _AXUIElementCopyAttributeValues( + element, + attribute, + index$1, + maxValues, + values, + ), + ); +} + +@ffi.Native< + SInt32 Function( + AXUIElementRef, + ffi.Float, + ffi.Float, + ffi.Pointer, + ) +>(symbol: 'AXUIElementCopyElementAtPosition') +external int _AXUIElementCopyElementAtPosition( + AXUIElementRef application, + double x, + double y, + ffi.Pointer element, +); + +AXError AXUIElementCopyElementAtPosition( + AXUIElementRef application, + double x, + double y, + ffi.Pointer element, +) { + return AXError.fromValue( + _AXUIElementCopyElementAtPosition(application, x, y, element), + ); +} + +@ffi.Native< + SInt32 Function(AXUIElementRef, CFArrayRef, UInt32, ffi.Pointer) +>(symbol: 'AXUIElementCopyMultipleAttributeValues') +external int _AXUIElementCopyMultipleAttributeValues( + AXUIElementRef element, + CFArrayRef attributes, + int options, + ffi.Pointer values, +); + +AXError AXUIElementCopyMultipleAttributeValues( + AXUIElementRef element, + CFArrayRef attributes, + DartUInt32 options, + ffi.Pointer values, +) { + return AXError.fromValue( + _AXUIElementCopyMultipleAttributeValues( + element, + attributes, + options, + values, + ), + ); +} + +@ffi.Native)>( + symbol: 'AXUIElementCopyParameterizedAttributeNames', +) +external int _AXUIElementCopyParameterizedAttributeNames( + AXUIElementRef element, + ffi.Pointer names, +); + +AXError AXUIElementCopyParameterizedAttributeNames( + AXUIElementRef element, + ffi.Pointer names, +) { + return AXError.fromValue( + _AXUIElementCopyParameterizedAttributeNames(element, names), + ); +} + +@ffi.Native< + SInt32 Function( + AXUIElementRef, + CFStringRef, + CFTypeRef, + ffi.Pointer, + ) +>(symbol: 'AXUIElementCopyParameterizedAttributeValue') +external int _AXUIElementCopyParameterizedAttributeValue( + AXUIElementRef element, + CFStringRef parameterizedAttribute, + CFTypeRef parameter, + ffi.Pointer result, +); + +AXError AXUIElementCopyParameterizedAttributeValue( + AXUIElementRef element, + CFStringRef parameterizedAttribute, + CFTypeRef parameter, + ffi.Pointer result, +) { + return AXError.fromValue( + _AXUIElementCopyParameterizedAttributeValue( + element, + parameterizedAttribute, + parameter, + result, + ), + ); +} + +@ffi.Native() +external AXUIElementRef AXUIElementCreateApplication(int pid); + +@ffi.Native() +external AXUIElementRef AXUIElementCreateSystemWide(); + +@ffi.Native)>( + symbol: 'AXUIElementGetAttributeValueCount', +) +external int _AXUIElementGetAttributeValueCount( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer count, +); + +AXError AXUIElementGetAttributeValueCount( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer count, +) { + return AXError.fromValue( + _AXUIElementGetAttributeValueCount(element, attribute, count), + ); +} + +@ffi.Native)>( + symbol: 'AXUIElementGetPid', +) +external int _AXUIElementGetPid(AXUIElementRef element, ffi.Pointer pid); + +AXError AXUIElementGetPid(AXUIElementRef element, ffi.Pointer pid) { + return AXError.fromValue(_AXUIElementGetPid(element, pid)); +} + +@ffi.Native() +external int AXUIElementGetTypeID(); + +@ffi.Native)>( + symbol: 'AXUIElementIsAttributeSettable', +) +external int _AXUIElementIsAttributeSettable( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer settable, +); + +AXError AXUIElementIsAttributeSettable( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer settable, +) { + return AXError.fromValue( + _AXUIElementIsAttributeSettable(element, attribute, settable), + ); +} + +@ffi.Native( + symbol: 'AXUIElementPerformAction', +) +external int _AXUIElementPerformAction( + AXUIElementRef element, + CFStringRef action, +); + +AXError AXUIElementPerformAction(AXUIElementRef element, CFStringRef action) { + return AXError.fromValue(_AXUIElementPerformAction(element, action)); +} + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'AXUIElementPostKeyboardEvent', +) +external int _AXUIElementPostKeyboardEvent( + AXUIElementRef application, + int keyChar, + int virtualKey, + int keyDown, +); + +AXError AXUIElementPostKeyboardEvent( + AXUIElementRef application, + DartCGCharCode keyChar, + DartCGKeyCode virtualKey, + DartBoolean keyDown, +) { + return AXError.fromValue( + _AXUIElementPostKeyboardEvent(application, keyChar, virtualKey, keyDown), + ); +} + +@ffi.Native( + symbol: 'AXUIElementSetAttributeValue', +) +external int _AXUIElementSetAttributeValue( + AXUIElementRef element, + CFStringRef attribute, + CFTypeRef value, +); + +AXError AXUIElementSetAttributeValue( + AXUIElementRef element, + CFStringRef attribute, + CFTypeRef value, +) { + return AXError.fromValue( + _AXUIElementSetAttributeValue(element, attribute, value), + ); +} + +@ffi.Native( + symbol: 'AXUIElementSetMessagingTimeout', +) +external int _AXUIElementSetMessagingTimeout( + AXUIElementRef element, + double timeoutInSeconds, +); + +AXError AXUIElementSetMessagingTimeout( + AXUIElementRef element, + double timeoutInSeconds, +) { + return AXError.fromValue( + _AXUIElementSetMessagingTimeout(element, timeoutInSeconds), + ); +} + +@ffi.Native)>( + symbol: 'AXValueCreate', +) +external AXValueRef _AXValueCreate(int theType, ffi.Pointer valuePtr); + +AXValueRef AXValueCreate(AXValueType theType, ffi.Pointer valuePtr) { + return _AXValueCreate(theType.value, valuePtr); +} + +@ffi.Native(symbol: 'AXValueGetType') +external int _AXValueGetType(AXValueRef value); + +AXValueType AXValueGetType(AXValueRef value) { + return AXValueType.fromValue(_AXValueGetType(value)); +} + +@ffi.Native() +external int AXValueGetTypeID(); + +@ffi.Native)>( + symbol: 'AXValueGetValue', +) +external int _AXValueGetValue( + AXValueRef value, + int theType, + ffi.Pointer valuePtr, +); + +DartBoolean AXValueGetValue( + AXValueRef value, + AXValueType theType, + ffi.Pointer valuePtr, +) { + return _AXValueGetValue(value, theType.value, valuePtr); +} + +@Deprecated('Deprecated') +@ffi.Native() +external int AbsoluteDeltaToDuration( + AbsoluteTime leftAbsoluteTime, + AbsoluteTime rightAbsoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Nanoseconds AbsoluteDeltaToNanoseconds( + AbsoluteTime leftAbsoluteTime, + AbsoluteTime rightAbsoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int AbsoluteToDuration(AbsoluteTime absoluteTime); + +@Deprecated('Deprecated') +@ffi.Native() +external Nanoseconds AbsoluteToNanoseconds(AbsoluteTime absoluteTime); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int AcquireIconRef(IconRef theIconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime AddAbsoluteToAbsolute( + AbsoluteTime absoluteTime1, + AbsoluteTime absoluteTime2, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int AddAtomic(int amount, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int AddAtomic16(int amount, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int AddAtomic8(int amount, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionTag, + SInt32, + SInt32, + ffi.Pointer, + ) +>() +external int AddCollectionItem( + Collection c, + int tag, + int id, + int itemSize, + ffi.Pointer itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int AddCollectionItemHdl( + Collection aCollection, + int tag, + int id, + Handle itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime AddDurationToAbsolute( + int duration, + AbsoluteTime absoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FolderType, + FolderDescFlags, + FolderClass, + FolderLocation, + OSType, + OSType, + ConstStrFileNameParam, + Boolean, + ) +>() +external int AddFolderDescriptor( + int foldType, + int flags, + int foldClass, + int foldLocation, + int badgeSignature, + int badgeType, + ConstStrFileNameParam name, + int replaceFlag, +); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime AddNanosecondsToAbsolute( + Nanoseconds nanoseconds, + AbsoluteTime absoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void AddResource( + Handle theData, + int theType, + int theID, + ConstStr255Param name, +); + +@ffi.Native< + OSStatus Function( + AuthorizationRef, + AuthorizationString, + ffi.Pointer>, + ) +>() +external int AuthorizationCopyInfo( + AuthorizationRef authorization, + AuthorizationString tag, + ffi.Pointer> info, +); + +@Deprecated('Deprecated') +@ffi.Native, UInt32)>() +external int AuthorizationCopyPrivilegedReference( + ffi.Pointer authorization, + int flags, +); + +@ffi.Native< + OSStatus Function( + AuthorizationRef, + ffi.Pointer, + ffi.Pointer, + UInt32, + ffi.Pointer>, + ) +>() +external int AuthorizationCopyRights( + AuthorizationRef authorization, + ffi.Pointer rights, + ffi.Pointer environment, + int flags, + ffi.Pointer> authorizedRights, +); + +@ffi.Native< + ffi.Void Function( + AuthorizationRef, + ffi.Pointer, + ffi.Pointer, + UInt32, + AuthorizationAsyncCallback, + ) +>(symbol: 'AuthorizationCopyRightsAsync') +external void _AuthorizationCopyRightsAsync( + AuthorizationRef authorization, + ffi.Pointer rights, + ffi.Pointer environment, + int flags, + AuthorizationAsyncCallback callbackBlock, +); + +void AuthorizationCopyRightsAsync( + AuthorizationRef authorization, + ffi.Pointer rights, + ffi.Pointer environment, + DartUInt32 flags, + DartAuthorizationAsyncCallback callbackBlock, +) { + final _$$ref = callbackBlock.ref; + return _AuthorizationCopyRightsAsync( + authorization, + rights, + environment, + flags, + _$$ref.pointer, + ); +} + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + UInt32, + ffi.Pointer, + ) +>() +external int AuthorizationCreate( + ffi.Pointer rights, + ffi.Pointer environment, + int flags, + ffi.Pointer authorization, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AuthorizationCreateFromExternalForm( + ffi.Pointer extForm, + ffi.Pointer authorization, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + AuthorizationRef, + ffi.Pointer, + UInt32, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int AuthorizationExecuteWithPrivileges( + AuthorizationRef authorization, + ffi.Pointer pathToTool, + int options, + ffi.Pointer> arguments, + ffi.Pointer> communicationsPipe, +); + +@ffi.Native() +external int AuthorizationFree(AuthorizationRef authorization, int flags); + +@ffi.Native)>() +external int AuthorizationFreeItemSet(ffi.Pointer set); + +@ffi.Native< + OSStatus Function(AuthorizationRef, ffi.Pointer) +>() +external int AuthorizationMakeExternalForm( + AuthorizationRef authorization, + ffi.Pointer extForm, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int AuthorizationRightGet( + ffi.Pointer rightName, + ffi.Pointer rightDefinition, +); + +@ffi.Native)>() +external int AuthorizationRightRemove( + AuthorizationRef authRef, + ffi.Pointer rightName, +); + +@ffi.Native< + OSStatus Function( + AuthorizationRef, + ffi.Pointer, + CFTypeRef, + CFStringRef, + CFBundleRef, + CFStringRef, + ) +>() +external int AuthorizationRightSet( + AuthorizationRef authRef, + ffi.Pointer rightName, + CFTypeRef rightDefinition, + CFStringRef descriptionKey, + CFBundleRef bundle, + CFStringRef localeTableName, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int BatteryCount(); + +@Deprecated('Deprecated') +@ffi.Native() +external int BitAnd(int value1, int value2); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitAndAtomic(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitAndAtomic16(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitAndAtomic8(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Long)>() +external void BitClr(ffi.Pointer bytePtr, int bitNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int BitNot(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external int BitOr(int value1, int value2); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitOrAtomic(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitOrAtomic16(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitOrAtomic8(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Long)>() +external void BitSet(ffi.Pointer bytePtr, int bitNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int BitShift(int value, int count); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Long)>() +external int BitTst(ffi.Pointer bytePtr, int bitNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int BitXor(int value1, int value2); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitXorAtomic(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitXorAtomic16(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitXorAtomic8(int mask, ffi.Pointer address); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native< + CFAbsoluteTime Function(CFAbsoluteTime, CFTimeZoneRef, CFGregorianUnits) +>() +external double CFAbsoluteTimeAddGregorianUnits( + double at, + CFTimeZoneRef tz, + CFGregorianUnits units, +); + +@ffi.Native() +external double CFAbsoluteTimeGetCurrent(); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external int CFAbsoluteTimeGetDayOfWeek(double at, CFTimeZoneRef tz); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external int CFAbsoluteTimeGetDayOfYear(double at, CFTimeZoneRef tz); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native< + CFGregorianUnits Function( + CFAbsoluteTime, + CFAbsoluteTime, + CFTimeZoneRef, + CFOptionFlags, + ) +>() +external CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits( + double at1, + double at2, + CFTimeZoneRef tz, + int unitFlags, +); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external CFGregorianDate CFAbsoluteTimeGetGregorianDate( + double at, + CFTimeZoneRef tz, +); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external int CFAbsoluteTimeGetWeekOfYear(double at, CFTimeZoneRef tz); + +@ffi.Native< + ffi.Pointer Function(CFAllocatorRef, CFIndex, CFOptionFlags) +>() +external ffi.Pointer CFAllocatorAllocate( + CFAllocatorRef allocator, + int size, + int hint, +); + +@ffi.Native< + ffi.Pointer Function(CFAllocatorRef, CFIndex, CFOptionFlags) +>() +external ffi.Pointer CFAllocatorAllocateBytes( + CFAllocatorRef allocator, + int size, + int hint, +); + +@ffi.Native< + ffi.Pointer Function( + CFAllocatorRef, + CFIndex, + CFAllocatorTypeID, + CFOptionFlags, + ) +>() +external ffi.Pointer CFAllocatorAllocateTyped( + CFAllocatorRef allocator, + int size, + int descriptor, + int hint, +); + +@ffi.Native< + CFAllocatorRef Function(CFAllocatorRef, ffi.Pointer) +>() +external CFAllocatorRef CFAllocatorCreate( + CFAllocatorRef allocator, + ffi.Pointer context, +); + +@ffi.Native< + CFAllocatorRef Function(CFAllocatorRef, ffi.Pointer<_malloc_zone_t>) +>() +external CFAllocatorRef CFAllocatorCreateWithZone( + CFAllocatorRef allocator, + ffi.Pointer<_malloc_zone_t> zone, +); + +@ffi.Native)>() +external void CFAllocatorDeallocate( + CFAllocatorRef allocator, + ffi.Pointer ptr, +); + +@ffi.Native< + ffi.Void Function(CFAllocatorRef, ffi.Pointer) +>() +external void CFAllocatorGetContext( + CFAllocatorRef allocator, + ffi.Pointer context, +); + +@ffi.Native() +external CFAllocatorRef CFAllocatorGetDefault(); + +@ffi.Native() +external int CFAllocatorGetPreferredSizeForSize( + CFAllocatorRef allocator, + int size, + int hint, +); + +@ffi.Native() +external int CFAllocatorGetTypeID(); + +@ffi.Native< + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFOptionFlags, + ) +>() +external ffi.Pointer CFAllocatorReallocate( + CFAllocatorRef allocator, + ffi.Pointer ptr, + int newsize, + int hint, +); + +@ffi.Native< + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFOptionFlags, + ) +>() +external ffi.Pointer CFAllocatorReallocateBytes( + CFAllocatorRef allocator, + ffi.Pointer ptr, + int newsize, + int hint, +); + +@ffi.Native< + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorTypeID, + CFOptionFlags, + ) +>() +external ffi.Pointer CFAllocatorReallocateTyped( + CFAllocatorRef allocator, + ffi.Pointer ptr, + int newsize, + int descriptor, + int hint, +); + +@ffi.Native() +external void CFAllocatorSetDefault(CFAllocatorRef allocator); + +@ffi.Native() +external void CFArrayAppendArray( + CFMutableArrayRef theArray, + CFArrayRef otherArray, + CFRange otherRange, +); + +@ffi.Native)>() +external void CFArrayAppendValue( + CFMutableArrayRef theArray, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFArrayRef, + CFRange, + CFArrayApplierFunction, + ffi.Pointer, + ) +>() +external void CFArrayApplyFunction( + CFArrayRef theArray, + CFRange range, + CFArrayApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native< + CFIndex Function( + CFArrayRef, + CFRange, + ffi.Pointer, + CFComparatorFunction, + ffi.Pointer, + ) +>() +external int CFArrayBSearchValues( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, + CFComparatorFunction comparator, + ffi.Pointer context, +); + +@ffi.Native)>() +external int CFArrayContainsValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, +); + +@ffi.Native< + CFArrayRef Function( + CFAllocatorRef, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ) +>() +external CFArrayRef CFArrayCreate( + CFAllocatorRef allocator, + ffi.Pointer> values, + int numValues, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFArrayRef CFArrayCreateCopy( + CFAllocatorRef allocator, + CFArrayRef theArray, +); + +@ffi.Native< + CFMutableArrayRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ) +>() +external CFMutableArrayRef CFArrayCreateMutable( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFMutableArrayRef CFArrayCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFArrayRef theArray, +); + +@ffi.Native() +external void CFArrayExchangeValuesAtIndices( + CFMutableArrayRef theArray, + int idx1, + int idx2, +); + +@ffi.Native() +external int CFArrayGetCount(CFArrayRef theArray); + +@ffi.Native)>() +external int CFArrayGetCountOfValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, +); + +@ffi.Native)>() +external int CFArrayGetFirstIndexOfValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, +); + +@ffi.Native)>() +external int CFArrayGetLastIndexOfValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, +); + +@ffi.Native() +external int CFArrayGetTypeID(); + +@ffi.Native Function(CFArrayRef, CFIndex)>() +external ffi.Pointer CFArrayGetValueAtIndex( + CFArrayRef theArray, + int idx, +); + +@ffi.Native< + ffi.Void Function(CFArrayRef, CFRange, ffi.Pointer>) +>() +external void CFArrayGetValues( + CFArrayRef theArray, + CFRange range, + ffi.Pointer> values, +); + +@ffi.Native< + ffi.Void Function(CFMutableArrayRef, CFIndex, ffi.Pointer) +>() +external void CFArrayInsertValueAtIndex( + CFMutableArrayRef theArray, + int idx, + ffi.Pointer value, +); + +@ffi.Native() +external void CFArrayRemoveAllValues(CFMutableArrayRef theArray); + +@ffi.Native() +external void CFArrayRemoveValueAtIndex(CFMutableArrayRef theArray, int idx); + +@ffi.Native< + ffi.Void Function( + CFMutableArrayRef, + CFRange, + ffi.Pointer>, + CFIndex, + ) +>() +external void CFArrayReplaceValues( + CFMutableArrayRef theArray, + CFRange range, + ffi.Pointer> newValues, + int newCount, +); + +@ffi.Native< + ffi.Void Function(CFMutableArrayRef, CFIndex, ffi.Pointer) +>() +external void CFArraySetValueAtIndex( + CFMutableArrayRef theArray, + int idx, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFMutableArrayRef, + CFRange, + CFComparatorFunction, + ffi.Pointer, + ) +>() +external void CFArraySortValues( + CFMutableArrayRef theArray, + CFRange range, + CFComparatorFunction comparator, + ffi.Pointer context, +); + +@ffi.Native() +external void CFAttributedStringBeginEditing(CFMutableAttributedStringRef aStr); + +@ffi.Native< + CFAttributedStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) +>() +external CFAttributedStringRef CFAttributedStringCreate( + CFAllocatorRef alloc, + CFStringRef str, + CFDictionaryRef attributes, +); + +@ffi.Native< + CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef) +>() +external CFAttributedStringRef CFAttributedStringCreateCopy( + CFAllocatorRef alloc, + CFAttributedStringRef aStr, +); + +@ffi.Native() +external CFMutableAttributedStringRef CFAttributedStringCreateMutable( + CFAllocatorRef alloc, + int maxLength, +); + +@ffi.Native< + CFMutableAttributedStringRef Function( + CFAllocatorRef, + CFIndex, + CFAttributedStringRef, + ) +>() +external CFMutableAttributedStringRef CFAttributedStringCreateMutableCopy( + CFAllocatorRef alloc, + int maxLength, + CFAttributedStringRef aStr, +); + +@ffi.Native< + CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef, CFRange) +>() +external CFAttributedStringRef CFAttributedStringCreateWithSubstring( + CFAllocatorRef alloc, + CFAttributedStringRef aStr, + CFRange range, +); + +@ffi.Native() +external void CFAttributedStringEndEditing(CFMutableAttributedStringRef aStr); + +@ffi.Native< + CFTypeRef Function( + CFAttributedStringRef, + CFIndex, + CFStringRef, + ffi.Pointer, + ) +>() +external CFTypeRef CFAttributedStringGetAttribute( + CFAttributedStringRef aStr, + int loc, + CFStringRef attrName, + ffi.Pointer effectiveRange, +); + +@ffi.Native< + CFTypeRef Function( + CFAttributedStringRef, + CFIndex, + CFStringRef, + CFRange, + ffi.Pointer, + ) +>() +external CFTypeRef CFAttributedStringGetAttributeAndLongestEffectiveRange( + CFAttributedStringRef aStr, + int loc, + CFStringRef attrName, + CFRange inRange, + ffi.Pointer longestEffectiveRange, +); + +@ffi.Native< + CFDictionaryRef Function(CFAttributedStringRef, CFIndex, ffi.Pointer) +>() +external CFDictionaryRef CFAttributedStringGetAttributes( + CFAttributedStringRef aStr, + int loc, + ffi.Pointer effectiveRange, +); + +@ffi.Native< + CFDictionaryRef Function( + CFAttributedStringRef, + CFIndex, + CFRange, + ffi.Pointer, + ) +>() +external CFDictionaryRef +CFAttributedStringGetAttributesAndLongestEffectiveRange( + CFAttributedStringRef aStr, + int loc, + CFRange inRange, + ffi.Pointer longestEffectiveRange, +); + +@ffi.Native< + ffi.Bool Function( + CFAttributedStringRef, + CFRange, + ffi.Int8, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CFAttributedStringGetBidiLevelsAndResolvedDirections( + CFAttributedStringRef attributedString, + CFRange range, + int baseDirection, + ffi.Pointer bidiLevels, + ffi.Pointer baseDirections, +); + +@ffi.Native() +external int CFAttributedStringGetLength(CFAttributedStringRef aStr); + +@ffi.Native() +external CFMutableStringRef CFAttributedStringGetMutableString( + CFMutableAttributedStringRef aStr, +); + +@ffi.Native< + ffi.Bool Function( + CFAttributedStringRef, + CFRange, + ffi.Int8, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CFAttributedStringGetStatisticalWritingDirections( + CFAttributedStringRef attributedString, + CFRange range, + int baseDirection, + ffi.Pointer bidiLevels, + ffi.Pointer baseDirections, +); + +@ffi.Native() +external CFStringRef CFAttributedStringGetString(CFAttributedStringRef aStr); + +@ffi.Native() +external int CFAttributedStringGetTypeID(); + +@ffi.Native< + ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) +>() +external void CFAttributedStringRemoveAttribute( + CFMutableAttributedStringRef aStr, + CFRange range, + CFStringRef attrName, +); + +@ffi.Native< + ffi.Void Function( + CFMutableAttributedStringRef, + CFRange, + CFAttributedStringRef, + ) +>() +external void CFAttributedStringReplaceAttributedString( + CFMutableAttributedStringRef aStr, + CFRange range, + CFAttributedStringRef replacement, +); + +@ffi.Native< + ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) +>() +external void CFAttributedStringReplaceString( + CFMutableAttributedStringRef aStr, + CFRange range, + CFStringRef replacement, +); + +@ffi.Native< + ffi.Void Function( + CFMutableAttributedStringRef, + CFRange, + CFStringRef, + CFTypeRef, + ) +>() +external void CFAttributedStringSetAttribute( + CFMutableAttributedStringRef aStr, + CFRange range, + CFStringRef attrName, + CFTypeRef value, +); + +@ffi.Native< + ffi.Void Function( + CFMutableAttributedStringRef, + CFRange, + CFDictionaryRef, + Boolean, + ) +>() +external void CFAttributedStringSetAttributes( + CFMutableAttributedStringRef aStr, + CFRange range, + CFDictionaryRef replacement, + int clearOtherAttributes, +); + +@ffi.Native() +external CFTypeRef CFAutorelease(CFTypeRef arg); + +@ffi.Native)>() +external void CFBagAddValue( + CFMutableBagRef theBag, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function(CFBagRef, CFBagApplierFunction, ffi.Pointer) +>() +external void CFBagApplyFunction( + CFBagRef theBag, + CFBagApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native)>() +external int CFBagContainsValue(CFBagRef theBag, ffi.Pointer value); + +@ffi.Native< + CFBagRef Function( + CFAllocatorRef, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ) +>() +external CFBagRef CFBagCreate( + CFAllocatorRef allocator, + ffi.Pointer> values, + int numValues, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFBagRef CFBagCreateCopy(CFAllocatorRef allocator, CFBagRef theBag); + +@ffi.Native< + CFMutableBagRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) +>() +external CFMutableBagRef CFBagCreateMutable( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFMutableBagRef CFBagCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFBagRef theBag, +); + +@ffi.Native() +external int CFBagGetCount(CFBagRef theBag); + +@ffi.Native)>() +external int CFBagGetCountOfValue(CFBagRef theBag, ffi.Pointer value); + +@ffi.Native() +external int CFBagGetTypeID(); + +@ffi.Native Function(CFBagRef, ffi.Pointer)>() +external ffi.Pointer CFBagGetValue( + CFBagRef theBag, + ffi.Pointer value, +); + +@ffi.Native< + Boolean Function( + CFBagRef, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CFBagGetValueIfPresent( + CFBagRef theBag, + ffi.Pointer candidate, + ffi.Pointer> value, +); + +@ffi.Native>)>() +external void CFBagGetValues( + CFBagRef theBag, + ffi.Pointer> values, +); + +@ffi.Native() +external void CFBagRemoveAllValues(CFMutableBagRef theBag); + +@ffi.Native)>() +external void CFBagRemoveValue( + CFMutableBagRef theBag, + ffi.Pointer value, +); + +@ffi.Native)>() +external void CFBagReplaceValue( + CFMutableBagRef theBag, + ffi.Pointer value, +); + +@ffi.Native)>() +external void CFBagSetValue( + CFMutableBagRef theBag, + ffi.Pointer value, +); + +@ffi.Native)>() +external void CFBinaryHeapAddValue( + CFBinaryHeapRef heap, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFBinaryHeapRef, + CFBinaryHeapApplierFunction, + ffi.Pointer, + ) +>() +external void CFBinaryHeapApplyFunction( + CFBinaryHeapRef heap, + CFBinaryHeapApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native)>() +external int CFBinaryHeapContainsValue( + CFBinaryHeapRef heap, + ffi.Pointer value, +); + +@ffi.Native< + CFBinaryHeapRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFBinaryHeapRef CFBinaryHeapCreate( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer callBacks, + ffi.Pointer compareContext, +); + +@ffi.Native< + CFBinaryHeapRef Function(CFAllocatorRef, CFIndex, CFBinaryHeapRef) +>() +external CFBinaryHeapRef CFBinaryHeapCreateCopy( + CFAllocatorRef allocator, + int capacity, + CFBinaryHeapRef heap, +); + +@ffi.Native() +external int CFBinaryHeapGetCount(CFBinaryHeapRef heap); + +@ffi.Native)>() +external int CFBinaryHeapGetCountOfValue( + CFBinaryHeapRef heap, + ffi.Pointer value, +); + +@ffi.Native Function(CFBinaryHeapRef)>() +external ffi.Pointer CFBinaryHeapGetMinimum(CFBinaryHeapRef heap); + +@ffi.Native< + Boolean Function(CFBinaryHeapRef, ffi.Pointer>) +>() +external int CFBinaryHeapGetMinimumIfPresent( + CFBinaryHeapRef heap, + ffi.Pointer> value, +); + +@ffi.Native() +external int CFBinaryHeapGetTypeID(); + +@ffi.Native< + ffi.Void Function(CFBinaryHeapRef, ffi.Pointer>) +>() +external void CFBinaryHeapGetValues( + CFBinaryHeapRef heap, + ffi.Pointer> values, +); + +@ffi.Native() +external void CFBinaryHeapRemoveAllValues(CFBinaryHeapRef heap); + +@ffi.Native() +external void CFBinaryHeapRemoveMinimumValue(CFBinaryHeapRef heap); + +@ffi.Native() +external int CFBitVectorContainsBit( + CFBitVectorRef bv, + CFRange range, + int value, +); + +@ffi.Native< + CFBitVectorRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) +>() +external CFBitVectorRef CFBitVectorCreate( + CFAllocatorRef allocator, + ffi.Pointer bytes, + int numBits, +); + +@ffi.Native() +external CFBitVectorRef CFBitVectorCreateCopy( + CFAllocatorRef allocator, + CFBitVectorRef bv, +); + +@ffi.Native() +external CFMutableBitVectorRef CFBitVectorCreateMutable( + CFAllocatorRef allocator, + int capacity, +); + +@ffi.Native< + CFMutableBitVectorRef Function(CFAllocatorRef, CFIndex, CFBitVectorRef) +>() +external CFMutableBitVectorRef CFBitVectorCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFBitVectorRef bv, +); + +@ffi.Native() +external void CFBitVectorFlipBitAtIndex(CFMutableBitVectorRef bv, int idx); + +@ffi.Native() +external void CFBitVectorFlipBits(CFMutableBitVectorRef bv, CFRange range); + +@ffi.Native() +external int CFBitVectorGetBitAtIndex(CFBitVectorRef bv, int idx); + +@ffi.Native)>() +external void CFBitVectorGetBits( + CFBitVectorRef bv, + CFRange range, + ffi.Pointer bytes, +); + +@ffi.Native() +external int CFBitVectorGetCount(CFBitVectorRef bv); + +@ffi.Native() +external int CFBitVectorGetCountOfBit( + CFBitVectorRef bv, + CFRange range, + int value, +); + +@ffi.Native() +external int CFBitVectorGetFirstIndexOfBit( + CFBitVectorRef bv, + CFRange range, + int value, +); + +@ffi.Native() +external int CFBitVectorGetLastIndexOfBit( + CFBitVectorRef bv, + CFRange range, + int value, +); + +@ffi.Native() +external int CFBitVectorGetTypeID(); + +@ffi.Native() +external void CFBitVectorSetAllBits(CFMutableBitVectorRef bv, int value); + +@ffi.Native() +external void CFBitVectorSetBitAtIndex( + CFMutableBitVectorRef bv, + int idx, + int value, +); + +@ffi.Native() +external void CFBitVectorSetBits( + CFMutableBitVectorRef bv, + CFRange range, + int value, +); + +@ffi.Native() +external void CFBitVectorSetCount(CFMutableBitVectorRef bv, int count); + +@ffi.Native() +external int CFBooleanGetTypeID(); + +@ffi.Native() +external int CFBooleanGetValue(CFBooleanRef boolean); + +@Deprecated( + 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', +) +@ffi.Native() +external void CFBundleCloseBundleResourceMap(CFBundleRef bundle, int refNum); + +@ffi.Native() +external CFURLRef CFBundleCopyAuxiliaryExecutableURL( + CFBundleRef bundle, + CFStringRef executableName, +); + +@ffi.Native() +external CFURLRef CFBundleCopyBuiltInPlugInsURL(CFBundleRef bundle); + +@ffi.Native() +external CFArrayRef CFBundleCopyBundleLocalizations(CFBundleRef bundle); + +@ffi.Native() +external CFURLRef CFBundleCopyBundleURL(CFBundleRef bundle); + +@ffi.Native() +external CFArrayRef CFBundleCopyExecutableArchitectures(CFBundleRef bundle); + +@ffi.Native() +external CFArrayRef CFBundleCopyExecutableArchitecturesForURL(CFURLRef url); + +@ffi.Native() +external CFURLRef CFBundleCopyExecutableURL(CFBundleRef bundle); + +@ffi.Native() +external CFDictionaryRef CFBundleCopyInfoDictionaryForURL(CFURLRef url); + +@ffi.Native() +external CFDictionaryRef CFBundleCopyInfoDictionaryInDirectory( + CFURLRef bundleURL, +); + +@ffi.Native() +external CFArrayRef CFBundleCopyLocalizationsForPreferences( + CFArrayRef locArray, + CFArrayRef prefArray, +); + +@ffi.Native() +external CFArrayRef CFBundleCopyLocalizationsForURL(CFURLRef url); + +@ffi.Native< + CFStringRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFStringRef CFBundleCopyLocalizedString( + CFBundleRef bundle, + CFStringRef key, + CFStringRef value, + CFStringRef tableName, +); + +@ffi.Native< + CFStringRef Function( + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFArrayRef, + ) +>() +external CFStringRef CFBundleCopyLocalizedStringForLocalizations( + CFBundleRef bundle, + CFStringRef key, + CFStringRef value, + CFStringRef tableName, + CFArrayRef localizations, +); + +@ffi.Native() +external CFArrayRef CFBundleCopyPreferredLocalizationsFromArray( + CFArrayRef locArray, +); + +@ffi.Native() +external CFURLRef CFBundleCopyPrivateFrameworksURL(CFBundleRef bundle); + +@ffi.Native< + CFURLRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFURLRef CFBundleCopyResourceURL( + CFBundleRef bundle, + CFStringRef resourceName, + CFStringRef resourceType, + CFStringRef subDirName, +); + +@ffi.Native< + CFURLRef Function( + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) +>() +external CFURLRef CFBundleCopyResourceURLForLocalization( + CFBundleRef bundle, + CFStringRef resourceName, + CFStringRef resourceType, + CFStringRef subDirName, + CFStringRef localizationName, +); + +@ffi.Native< + CFURLRef Function(CFURLRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFURLRef CFBundleCopyResourceURLInDirectory( + CFURLRef bundleURL, + CFStringRef resourceName, + CFStringRef resourceType, + CFStringRef subDirName, +); + +@ffi.Native() +external CFArrayRef CFBundleCopyResourceURLsOfType( + CFBundleRef bundle, + CFStringRef resourceType, + CFStringRef subDirName, +); + +@ffi.Native< + CFArrayRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFArrayRef CFBundleCopyResourceURLsOfTypeForLocalization( + CFBundleRef bundle, + CFStringRef resourceType, + CFStringRef subDirName, + CFStringRef localizationName, +); + +@ffi.Native() +external CFArrayRef CFBundleCopyResourceURLsOfTypeInDirectory( + CFURLRef bundleURL, + CFStringRef resourceType, + CFStringRef subDirName, +); + +@ffi.Native() +external CFURLRef CFBundleCopyResourcesDirectoryURL(CFBundleRef bundle); + +@ffi.Native() +external CFURLRef CFBundleCopySharedFrameworksURL(CFBundleRef bundle); + +@ffi.Native() +external CFURLRef CFBundleCopySharedSupportURL(CFBundleRef bundle); + +@ffi.Native() +external CFURLRef CFBundleCopySupportFilesDirectoryURL(CFBundleRef bundle); + +@ffi.Native() +external CFBundleRef CFBundleCreate( + CFAllocatorRef allocator, + CFURLRef bundleURL, +); + +@ffi.Native() +external CFArrayRef CFBundleCreateBundlesFromDirectory( + CFAllocatorRef allocator, + CFURLRef directoryURL, + CFStringRef bundleType, +); + +@ffi.Native() +external CFArrayRef CFBundleGetAllBundles(); + +@ffi.Native() +external CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID); + +@ffi.Native Function(CFBundleRef, CFStringRef)>() +external ffi.Pointer CFBundleGetDataPointerForName( + CFBundleRef bundle, + CFStringRef symbolName, +); + +@ffi.Native< + ffi.Void Function(CFBundleRef, CFArrayRef, ffi.Pointer>) +>() +external void CFBundleGetDataPointersForNames( + CFBundleRef bundle, + CFArrayRef symbolNames, + ffi.Pointer> stbl, +); + +@ffi.Native() +external CFStringRef CFBundleGetDevelopmentRegion(CFBundleRef bundle); + +@ffi.Native Function(CFBundleRef, CFStringRef)>() +external ffi.Pointer CFBundleGetFunctionPointerForName( + CFBundleRef bundle, + CFStringRef functionName, +); + +@ffi.Native< + ffi.Void Function(CFBundleRef, CFArrayRef, ffi.Pointer>) +>() +external void CFBundleGetFunctionPointersForNames( + CFBundleRef bundle, + CFArrayRef functionNames, + ffi.Pointer> ftbl, +); + +@ffi.Native() +external CFStringRef CFBundleGetIdentifier(CFBundleRef bundle); + +@ffi.Native() +external CFDictionaryRef CFBundleGetInfoDictionary(CFBundleRef bundle); + +@ffi.Native() +external CFDictionaryRef CFBundleGetLocalInfoDictionary(CFBundleRef bundle); + +@ffi.Native() +external CFBundleRef CFBundleGetMainBundle(); + +@ffi.Native< + ffi.Void Function(CFBundleRef, ffi.Pointer, ffi.Pointer) +>() +external void CFBundleGetPackageInfo( + CFBundleRef bundle, + ffi.Pointer packageType, + ffi.Pointer packageCreator, +); + +@ffi.Native< + Boolean Function(CFURLRef, ffi.Pointer, ffi.Pointer) +>() +external int CFBundleGetPackageInfoInDirectory( + CFURLRef url, + ffi.Pointer packageType, + ffi.Pointer packageCreator, +); + +@ffi.Native() +external CFPlugInRef CFBundleGetPlugIn(CFBundleRef bundle); + +@ffi.Native() +external int CFBundleGetTypeID(); + +@ffi.Native() +external CFTypeRef CFBundleGetValueForInfoDictionaryKey( + CFBundleRef bundle, + CFStringRef key, +); + +@ffi.Native() +external int CFBundleGetVersionNumber(CFBundleRef bundle); + +@ffi.Native() +external int CFBundleIsArchitectureLoadable(int arch); + +@ffi.Native() +external int CFBundleIsExecutableLoadable(CFBundleRef bundle); + +@ffi.Native() +external int CFBundleIsExecutableLoadableForURL(CFURLRef url); + +@ffi.Native() +external int CFBundleIsExecutableLoaded(CFBundleRef bundle); + +@ffi.Native() +external int CFBundleLoadExecutable(CFBundleRef bundle); + +@ffi.Native)>() +external int CFBundleLoadExecutableAndReturnError( + CFBundleRef bundle, + ffi.Pointer error, +); + +@Deprecated( + 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', +) +@ffi.Native< + SInt32 Function( + CFBundleRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CFBundleOpenBundleResourceFiles( + CFBundleRef bundle, + ffi.Pointer refNum, + ffi.Pointer localizedRefNum, +); + +@Deprecated( + 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', +) +@ffi.Native() +external int CFBundleOpenBundleResourceMap(CFBundleRef bundle); + +@ffi.Native)>() +external int CFBundlePreflightExecutable( + CFBundleRef bundle, + ffi.Pointer error, +); + +@ffi.Native() +external void CFBundleUnloadExecutable(CFBundleRef bundle); + +@ffi.Native< + Boolean Function( + CFCalendarRef, + ffi.Pointer, + CFOptionFlags, + ffi.Pointer, + ) +>() +external int CFCalendarAddComponents( + CFCalendarRef calendar, + ffi.Pointer at, + int options, + ffi.Pointer componentDesc, +); + +@ffi.Native< + Boolean Function( + CFCalendarRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CFCalendarComposeAbsoluteTime( + CFCalendarRef calendar, + ffi.Pointer at, + ffi.Pointer componentDesc, +); + +@ffi.Native() +external CFCalendarRef CFCalendarCopyCurrent(); + +@ffi.Native() +external CFLocaleRef CFCalendarCopyLocale(CFCalendarRef calendar); + +@ffi.Native() +external CFTimeZoneRef CFCalendarCopyTimeZone(CFCalendarRef calendar); + +@ffi.Native() +external CFCalendarRef CFCalendarCreateWithIdentifier( + CFAllocatorRef allocator, + CFCalendarIdentifier identifier, +); + +@ffi.Native< + Boolean Function(CFCalendarRef, CFAbsoluteTime, ffi.Pointer) +>() +external int CFCalendarDecomposeAbsoluteTime( + CFCalendarRef calendar, + double at, + ffi.Pointer componentDesc, +); + +@ffi.Native< + Boolean Function( + CFCalendarRef, + CFAbsoluteTime, + CFAbsoluteTime, + CFOptionFlags, + ffi.Pointer, + ) +>() +external int CFCalendarGetComponentDifference( + CFCalendarRef calendar, + double startingAT, + double resultAT, + int options, + ffi.Pointer componentDesc, +); + +@ffi.Native() +external int CFCalendarGetFirstWeekday(CFCalendarRef calendar); + +@ffi.Native() +external CFCalendarIdentifier CFCalendarGetIdentifier(CFCalendarRef calendar); + +@ffi.Native() +external CFRange CFCalendarGetMaximumRangeOfUnit( + CFCalendarRef calendar, + int unit, +); + +@ffi.Native() +external int CFCalendarGetMinimumDaysInFirstWeek(CFCalendarRef calendar); + +@ffi.Native() +external CFRange CFCalendarGetMinimumRangeOfUnit( + CFCalendarRef calendar, + int unit, +); + +@ffi.Native< + CFIndex Function(CFCalendarRef, CFOptionFlags, CFOptionFlags, CFAbsoluteTime) +>() +external int CFCalendarGetOrdinalityOfUnit( + CFCalendarRef calendar, + int smallerUnit, + int biggerUnit, + double at, +); + +@ffi.Native< + CFRange Function(CFCalendarRef, CFOptionFlags, CFOptionFlags, CFAbsoluteTime) +>() +external CFRange CFCalendarGetRangeOfUnit( + CFCalendarRef calendar, + int smallerUnit, + int biggerUnit, + double at, +); + +@ffi.Native< + Boolean Function( + CFCalendarRef, + CFOptionFlags, + CFAbsoluteTime, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CFCalendarGetTimeRangeOfUnit( + CFCalendarRef calendar, + int unit, + double at, + ffi.Pointer startp, + ffi.Pointer tip, +); + +@ffi.Native() +external int CFCalendarGetTypeID(); + +@ffi.Native() +external void CFCalendarSetFirstWeekday(CFCalendarRef calendar, int wkdy); + +@ffi.Native() +external void CFCalendarSetLocale(CFCalendarRef calendar, CFLocaleRef locale); + +@ffi.Native() +external void CFCalendarSetMinimumDaysInFirstWeek( + CFCalendarRef calendar, + int mwd, +); + +@ffi.Native() +external void CFCalendarSetTimeZone(CFCalendarRef calendar, CFTimeZoneRef tz); + +@ffi.Native() +external void CFCharacterSetAddCharactersInRange( + CFMutableCharacterSetRef theSet, + CFRange theRange, +); + +@ffi.Native() +external void CFCharacterSetAddCharactersInString( + CFMutableCharacterSetRef theSet, + CFStringRef theString, +); + +@ffi.Native() +external CFDataRef CFCharacterSetCreateBitmapRepresentation( + CFAllocatorRef alloc, + CFCharacterSetRef theSet, +); + +@ffi.Native() +external CFCharacterSetRef CFCharacterSetCreateCopy( + CFAllocatorRef alloc, + CFCharacterSetRef theSet, +); + +@ffi.Native() +external CFCharacterSetRef CFCharacterSetCreateInvertedSet( + CFAllocatorRef alloc, + CFCharacterSetRef theSet, +); + +@ffi.Native() +external CFMutableCharacterSetRef CFCharacterSetCreateMutable( + CFAllocatorRef alloc, +); + +@ffi.Native< + CFMutableCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef) +>() +external CFMutableCharacterSetRef CFCharacterSetCreateMutableCopy( + CFAllocatorRef alloc, + CFCharacterSetRef theSet, +); + +@ffi.Native() +external CFCharacterSetRef CFCharacterSetCreateWithBitmapRepresentation( + CFAllocatorRef alloc, + CFDataRef theData, +); + +@ffi.Native() +external CFCharacterSetRef CFCharacterSetCreateWithCharactersInRange( + CFAllocatorRef alloc, + CFRange theRange, +); + +@ffi.Native() +external CFCharacterSetRef CFCharacterSetCreateWithCharactersInString( + CFAllocatorRef alloc, + CFStringRef theString, +); + +@ffi.Native( + symbol: 'CFCharacterSetGetPredefined', +) +external CFCharacterSetRef _CFCharacterSetGetPredefined(int theSetIdentifier); + +CFCharacterSetRef CFCharacterSetGetPredefined( + CFCharacterSetPredefinedSet theSetIdentifier, +) { + return _CFCharacterSetGetPredefined(theSetIdentifier.value); +} + +@ffi.Native() +external int CFCharacterSetGetTypeID(); + +@ffi.Native() +external int CFCharacterSetHasMemberInPlane( + CFCharacterSetRef theSet, + int thePlane, +); + +@ffi.Native() +external void CFCharacterSetIntersect( + CFMutableCharacterSetRef theSet, + CFCharacterSetRef theOtherSet, +); + +@ffi.Native() +external void CFCharacterSetInvert(CFMutableCharacterSetRef theSet); + +@ffi.Native() +external int CFCharacterSetIsCharacterMember( + CFCharacterSetRef theSet, + int theChar, +); + +@ffi.Native() +external int CFCharacterSetIsLongCharacterMember( + CFCharacterSetRef theSet, + int theChar, +); + +@ffi.Native() +external int CFCharacterSetIsSupersetOfSet( + CFCharacterSetRef theSet, + CFCharacterSetRef theOtherset, +); + +@ffi.Native() +external void CFCharacterSetRemoveCharactersInRange( + CFMutableCharacterSetRef theSet, + CFRange theRange, +); + +@ffi.Native() +external void CFCharacterSetRemoveCharactersInString( + CFMutableCharacterSetRef theSet, + CFStringRef theString, +); + +@ffi.Native() +external void CFCharacterSetUnion( + CFMutableCharacterSetRef theSet, + CFCharacterSetRef theOtherSet, +); + +@ffi.Native() +external CFStringRef CFCopyDescription(CFTypeRef cf); + +@ffi.Native() +external CFURLRef CFCopyHomeDirectoryURL(); + +@ffi.Native() +external CFStringRef CFCopyTypeIDDescription(int type_id); + +@ffi.Native, CFIndex)>() +external void CFDataAppendBytes( + CFMutableDataRef theData, + ffi.Pointer bytes, + int length, +); + +@ffi.Native, CFIndex)>() +external CFDataRef CFDataCreate( + CFAllocatorRef allocator, + ffi.Pointer bytes, + int length, +); + +@ffi.Native() +external CFDataRef CFDataCreateCopy( + CFAllocatorRef allocator, + CFDataRef theData, +); + +@ffi.Native() +external CFMutableDataRef CFDataCreateMutable( + CFAllocatorRef allocator, + int capacity, +); + +@ffi.Native() +external CFMutableDataRef CFDataCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFDataRef theData, +); + +@ffi.Native< + CFDataRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorRef, + ) +>() +external CFDataRef CFDataCreateWithBytesNoCopy( + CFAllocatorRef allocator, + ffi.Pointer bytes, + int length, + CFAllocatorRef bytesDeallocator, +); + +@ffi.Native() +external void CFDataDeleteBytes(CFMutableDataRef theData, CFRange range); + +@ffi.Native() +external CFRange CFDataFind( + CFDataRef theData, + CFDataRef dataToFind, + CFRange searchRange, + int compareOptions, +); + +@ffi.Native Function(CFDataRef)>() +external ffi.Pointer CFDataGetBytePtr(CFDataRef theData); + +@ffi.Native)>() +external void CFDataGetBytes( + CFDataRef theData, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native() +external int CFDataGetLength(CFDataRef theData); + +@ffi.Native Function(CFMutableDataRef)>() +external ffi.Pointer CFDataGetMutableBytePtr(CFMutableDataRef theData); + +@ffi.Native() +external int CFDataGetTypeID(); + +@ffi.Native() +external void CFDataIncreaseLength(CFMutableDataRef theData, int extraLength); + +@ffi.Native< + ffi.Void Function(CFMutableDataRef, CFRange, ffi.Pointer, CFIndex) +>() +external void CFDataReplaceBytes( + CFMutableDataRef theData, + CFRange range, + ffi.Pointer newBytes, + int newLength, +); + +@ffi.Native() +external void CFDataSetLength(CFMutableDataRef theData, int length); + +@ffi.Native)>( + symbol: 'CFDateCompare', +) +external int _CFDateCompare( + CFDateRef theDate, + CFDateRef otherDate, + ffi.Pointer context, +); + +CFComparisonResult CFDateCompare( + CFDateRef theDate, + CFDateRef otherDate, + ffi.Pointer context, +) { + return CFComparisonResult.fromValue( + _CFDateCompare(theDate, otherDate, context), + ); +} + +@ffi.Native() +external CFDateRef CFDateCreate(CFAllocatorRef allocator, double at); + +@ffi.Native() +external CFTypeRef CFDateFormatterCopyProperty( + CFDateFormatterRef formatter, + CFDateFormatterKey key, +); + +@ffi.Native< + CFDateFormatterRef Function(CFAllocatorRef, CFLocaleRef, CFIndex, CFIndex) +>(symbol: 'CFDateFormatterCreate') +external CFDateFormatterRef _CFDateFormatterCreate( + CFAllocatorRef allocator, + CFLocaleRef locale, + int dateStyle, + int timeStyle, +); + +CFDateFormatterRef CFDateFormatterCreate( + CFAllocatorRef allocator, + CFLocaleRef locale, + CFDateFormatterStyle dateStyle, + CFDateFormatterStyle timeStyle, +) { + return _CFDateFormatterCreate( + allocator, + locale, + dateStyle.value, + timeStyle.value, + ); +} + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFOptionFlags, CFLocaleRef) +>() +external CFStringRef CFDateFormatterCreateDateFormatFromTemplate( + CFAllocatorRef allocator, + CFStringRef tmplate, + int options, + CFLocaleRef locale, +); + +@ffi.Native< + CFDateRef Function( + CFAllocatorRef, + CFDateFormatterRef, + CFStringRef, + ffi.Pointer, + ) +>() +external CFDateRef CFDateFormatterCreateDateFromString( + CFAllocatorRef allocator, + CFDateFormatterRef formatter, + CFStringRef string, + ffi.Pointer rangep, +); + +@ffi.Native() +external CFDateFormatterRef CFDateFormatterCreateISO8601Formatter( + CFAllocatorRef allocator, + int formatOptions, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, CFAbsoluteTime) +>() +external CFStringRef CFDateFormatterCreateStringWithAbsoluteTime( + CFAllocatorRef allocator, + CFDateFormatterRef formatter, + double at, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, CFDateRef) +>() +external CFStringRef CFDateFormatterCreateStringWithDate( + CFAllocatorRef allocator, + CFDateFormatterRef formatter, + CFDateRef date, +); + +@ffi.Native< + Boolean Function( + CFDateFormatterRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CFDateFormatterGetAbsoluteTimeFromString( + CFDateFormatterRef formatter, + CFStringRef string, + ffi.Pointer rangep, + ffi.Pointer atp, +); + +@ffi.Native( + symbol: 'CFDateFormatterGetDateStyle', +) +external int _CFDateFormatterGetDateStyle(CFDateFormatterRef formatter); + +CFDateFormatterStyle CFDateFormatterGetDateStyle(CFDateFormatterRef formatter) { + return CFDateFormatterStyle.fromValue( + _CFDateFormatterGetDateStyle(formatter), + ); +} + +@ffi.Native() +external CFStringRef CFDateFormatterGetFormat(CFDateFormatterRef formatter); + +@ffi.Native() +external CFLocaleRef CFDateFormatterGetLocale(CFDateFormatterRef formatter); + +@ffi.Native( + symbol: 'CFDateFormatterGetTimeStyle', +) +external int _CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter); + +CFDateFormatterStyle CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter) { + return CFDateFormatterStyle.fromValue( + _CFDateFormatterGetTimeStyle(formatter), + ); +} + +@ffi.Native() +external int CFDateFormatterGetTypeID(); + +@ffi.Native() +external void CFDateFormatterSetFormat( + CFDateFormatterRef formatter, + CFStringRef formatString, +); + +@ffi.Native() +external void CFDateFormatterSetProperty( + CFDateFormatterRef formatter, + CFStringRef key, + CFTypeRef value, +); + +@ffi.Native() +external double CFDateGetAbsoluteTime(CFDateRef theDate); + +@ffi.Native() +external double CFDateGetTimeIntervalSinceDate( + CFDateRef theDate, + CFDateRef otherDate, +); + +@ffi.Native() +external int CFDateGetTypeID(); + +@ffi.Native< + ffi.Void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFDictionaryAddValue( + CFMutableDictionaryRef theDict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFDictionaryRef, + CFDictionaryApplierFunction, + ffi.Pointer, + ) +>() +external void CFDictionaryApplyFunction( + CFDictionaryRef theDict, + CFDictionaryApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native)>() +external int CFDictionaryContainsKey( + CFDictionaryRef theDict, + ffi.Pointer key, +); + +@ffi.Native)>() +external int CFDictionaryContainsValue( + CFDictionaryRef theDict, + ffi.Pointer value, +); + +@ffi.Native< + CFDictionaryRef Function( + CFAllocatorRef, + ffi.Pointer>, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFDictionaryRef CFDictionaryCreate( + CFAllocatorRef allocator, + ffi.Pointer> keys, + ffi.Pointer> values, + int numValues, + ffi.Pointer keyCallBacks, + ffi.Pointer valueCallBacks, +); + +@ffi.Native() +external CFDictionaryRef CFDictionaryCreateCopy( + CFAllocatorRef allocator, + CFDictionaryRef theDict, +); + +@ffi.Native< + CFMutableDictionaryRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFMutableDictionaryRef CFDictionaryCreateMutable( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer keyCallBacks, + ffi.Pointer valueCallBacks, +); + +@ffi.Native< + CFMutableDictionaryRef Function(CFAllocatorRef, CFIndex, CFDictionaryRef) +>() +external CFMutableDictionaryRef CFDictionaryCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFDictionaryRef theDict, +); + +@ffi.Native() +external int CFDictionaryGetCount(CFDictionaryRef theDict); + +@ffi.Native)>() +external int CFDictionaryGetCountOfKey( + CFDictionaryRef theDict, + ffi.Pointer key, +); + +@ffi.Native)>() +external int CFDictionaryGetCountOfValue( + CFDictionaryRef theDict, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFDictionaryRef, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external void CFDictionaryGetKeysAndValues( + CFDictionaryRef theDict, + ffi.Pointer> keys, + ffi.Pointer> values, +); + +@ffi.Native() +external int CFDictionaryGetTypeID(); + +@ffi.Native< + ffi.Pointer Function(CFDictionaryRef, ffi.Pointer) +>() +external ffi.Pointer CFDictionaryGetValue( + CFDictionaryRef theDict, + ffi.Pointer key, +); + +@ffi.Native< + Boolean Function( + CFDictionaryRef, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CFDictionaryGetValueIfPresent( + CFDictionaryRef theDict, + ffi.Pointer key, + ffi.Pointer> value, +); + +@ffi.Native() +external void CFDictionaryRemoveAllValues(CFMutableDictionaryRef theDict); + +@ffi.Native)>() +external void CFDictionaryRemoveValue( + CFMutableDictionaryRef theDict, + ffi.Pointer key, +); + +@ffi.Native< + ffi.Void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFDictionaryReplaceValue( + CFMutableDictionaryRef theDict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFDictionarySetValue( + CFMutableDictionaryRef theDict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native() +external int CFEqual(CFTypeRef cf1, CFTypeRef cf2); + +@ffi.Native() +external CFStringRef CFErrorCopyDescription(CFErrorRef err); + +@ffi.Native() +external CFStringRef CFErrorCopyFailureReason(CFErrorRef err); + +@ffi.Native() +external CFStringRef CFErrorCopyRecoverySuggestion(CFErrorRef err); + +@ffi.Native() +external CFDictionaryRef CFErrorCopyUserInfo(CFErrorRef err); + +@ffi.Native< + CFErrorRef Function(CFAllocatorRef, CFErrorDomain, CFIndex, CFDictionaryRef) +>() +external CFErrorRef CFErrorCreate( + CFAllocatorRef allocator, + CFErrorDomain domain, + int code, + CFDictionaryRef userInfo, +); + +@ffi.Native< + CFErrorRef Function( + CFAllocatorRef, + CFErrorDomain, + CFIndex, + ffi.Pointer>, + ffi.Pointer>, + CFIndex, + ) +>() +external CFErrorRef CFErrorCreateWithUserInfoKeysAndValues( + CFAllocatorRef allocator, + CFErrorDomain domain, + int code, + ffi.Pointer> userInfoKeys, + ffi.Pointer> userInfoValues, + int numUserInfoValues, +); + +@ffi.Native() +external int CFErrorGetCode(CFErrorRef err); + +@ffi.Native() +external CFErrorDomain CFErrorGetDomain(CFErrorRef err); + +@ffi.Native() +external int CFErrorGetTypeID(); + +@Deprecated('Use NSURLSessionAPI for ftp requests') +@ffi.Native< + CFIndex Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + ffi.Pointer, + ) +>() +external int CFFTPCreateParsedResourceListing( + CFAllocatorRef alloc, + ffi.Pointer buffer, + int bufferLength, + ffi.Pointer parsed, +); + +@ffi.Native< + CFFileDescriptorRef Function( + CFAllocatorRef, + CFFileDescriptorNativeDescriptor, + Boolean, + CFFileDescriptorCallBack, + ffi.Pointer, + ) +>() +external CFFileDescriptorRef CFFileDescriptorCreate( + CFAllocatorRef allocator, + int fd, + int closeOnInvalidate, + CFFileDescriptorCallBack callout, + ffi.Pointer context, +); + +@ffi.Native< + CFRunLoopSourceRef Function(CFAllocatorRef, CFFileDescriptorRef, CFIndex) +>() +external CFRunLoopSourceRef CFFileDescriptorCreateRunLoopSource( + CFAllocatorRef allocator, + CFFileDescriptorRef f, + int order, +); + +@ffi.Native() +external void CFFileDescriptorDisableCallBacks( + CFFileDescriptorRef f, + int callBackTypes, +); + +@ffi.Native() +external void CFFileDescriptorEnableCallBacks( + CFFileDescriptorRef f, + int callBackTypes, +); + +@ffi.Native< + ffi.Void Function(CFFileDescriptorRef, ffi.Pointer) +>() +external void CFFileDescriptorGetContext( + CFFileDescriptorRef f, + ffi.Pointer context, +); + +@ffi.Native() +external int CFFileDescriptorGetNativeDescriptor(CFFileDescriptorRef f); + +@ffi.Native() +external int CFFileDescriptorGetTypeID(); + +@ffi.Native() +external void CFFileDescriptorInvalidate(CFFileDescriptorRef f); + +@ffi.Native() +external int CFFileDescriptorIsValid(CFFileDescriptorRef f); + +@ffi.Native() +external int CFFileSecurityClearProperties( + CFFileSecurityRef fileSec, + int clearPropertyMask, +); + +@ffi.Native)>() +external int CFFileSecurityCopyAccessControlList( + CFFileSecurityRef fileSec, + ffi.Pointer accessControlList, +); + +@ffi.Native)>() +external int CFFileSecurityCopyGroupUUID( + CFFileSecurityRef fileSec, + ffi.Pointer groupUUID, +); + +@ffi.Native)>() +external int CFFileSecurityCopyOwnerUUID( + CFFileSecurityRef fileSec, + ffi.Pointer ownerUUID, +); + +@ffi.Native() +external CFFileSecurityRef CFFileSecurityCreate(CFAllocatorRef allocator); + +@ffi.Native() +external CFFileSecurityRef CFFileSecurityCreateCopy( + CFAllocatorRef allocator, + CFFileSecurityRef fileSec, +); + +@ffi.Native)>() +external int CFFileSecurityGetGroup( + CFFileSecurityRef fileSec, + ffi.Pointer group, +); + +@ffi.Native)>() +external int CFFileSecurityGetMode( + CFFileSecurityRef fileSec, + ffi.Pointer mode, +); + +@ffi.Native)>() +external int CFFileSecurityGetOwner( + CFFileSecurityRef fileSec, + ffi.Pointer owner, +); + +@ffi.Native() +external int CFFileSecurityGetTypeID(); + +@ffi.Native() +external int CFFileSecuritySetAccessControlList( + CFFileSecurityRef fileSec, + acl_t accessControlList, +); + +@ffi.Native() +external int CFFileSecuritySetGroup(CFFileSecurityRef fileSec, int group); + +@ffi.Native() +external int CFFileSecuritySetGroupUUID( + CFFileSecurityRef fileSec, + CFUUIDRef groupUUID, +); + +@ffi.Native() +external int CFFileSecuritySetMode(CFFileSecurityRef fileSec, int mode); + +@ffi.Native() +external int CFFileSecuritySetOwner(CFFileSecurityRef fileSec, int owner); + +@ffi.Native() +external int CFFileSecuritySetOwnerUUID( + CFFileSecurityRef fileSec, + CFUUIDRef ownerUUID, +); + +@ffi.Native() +external CFAllocatorRef CFGetAllocator(CFTypeRef cf); + +@ffi.Native() +external int CFGetRetainCount(CFTypeRef cf); + +@ffi.Native() +external int CFGetTypeID(CFTypeRef cf); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external double CFGregorianDateGetAbsoluteTime( + CFGregorianDate gdate, + CFTimeZoneRef tz, +); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external int CFGregorianDateIsValid(CFGregorianDate gdate, int unitFlags); + +@ffi.Native() +external int CFHTTPAuthenticationAppliesToRequest( + CFHTTPAuthenticationRef auth, + CFHTTPMessageRef request, +); + +@ffi.Native() +external CFArrayRef CFHTTPAuthenticationCopyDomains( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native() +external CFStringRef CFHTTPAuthenticationCopyMethod( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native() +external CFStringRef CFHTTPAuthenticationCopyRealm( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native< + CFHTTPAuthenticationRef Function(CFAllocatorRef, CFHTTPMessageRef) +>() +external CFHTTPAuthenticationRef CFHTTPAuthenticationCreateFromResponse( + CFAllocatorRef alloc, + CFHTTPMessageRef response, +); + +@ffi.Native() +external int CFHTTPAuthenticationGetTypeID(); + +@ffi.Native< + Boolean Function(CFHTTPAuthenticationRef, ffi.Pointer) +>() +external int CFHTTPAuthenticationIsValid( + CFHTTPAuthenticationRef auth, + ffi.Pointer error, +); + +@ffi.Native() +external int CFHTTPAuthenticationRequiresAccountDomain( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native() +external int CFHTTPAuthenticationRequiresOrderedRequests( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native() +external int CFHTTPAuthenticationRequiresUserNameAndPassword( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native< + Boolean Function( + CFHTTPMessageRef, + CFHTTPMessageRef, + CFStringRef, + CFStringRef, + CFStringRef, + Boolean, + ) +>() +external int CFHTTPMessageAddAuthentication( + CFHTTPMessageRef request, + CFHTTPMessageRef authenticationFailureResponse, + CFStringRef username, + CFStringRef password, + CFStringRef authenticationScheme, + int forProxy, +); + +@ffi.Native, CFIndex)>() +external int CFHTTPMessageAppendBytes( + CFHTTPMessageRef message, + ffi.Pointer newBytes, + int numBytes, +); + +@ffi.Native< + Boolean Function( + CFHTTPMessageRef, + CFHTTPAuthenticationRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CFHTTPMessageApplyCredentialDictionary( + CFHTTPMessageRef request, + CFHTTPAuthenticationRef auth, + CFDictionaryRef dict, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function( + CFHTTPMessageRef, + CFHTTPAuthenticationRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external int CFHTTPMessageApplyCredentials( + CFHTTPMessageRef request, + CFHTTPAuthenticationRef auth, + CFStringRef username, + CFStringRef password, + ffi.Pointer error, +); + +@ffi.Native() +external CFDictionaryRef CFHTTPMessageCopyAllHeaderFields( + CFHTTPMessageRef message, +); + +@ffi.Native() +external CFDataRef CFHTTPMessageCopyBody(CFHTTPMessageRef message); + +@ffi.Native() +external CFStringRef CFHTTPMessageCopyHeaderFieldValue( + CFHTTPMessageRef message, + CFStringRef headerField, +); + +@ffi.Native() +external CFStringRef CFHTTPMessageCopyRequestMethod(CFHTTPMessageRef request); + +@ffi.Native() +external CFURLRef CFHTTPMessageCopyRequestURL(CFHTTPMessageRef request); + +@ffi.Native() +external CFStringRef CFHTTPMessageCopyResponseStatusLine( + CFHTTPMessageRef response, +); + +@ffi.Native() +external CFDataRef CFHTTPMessageCopySerializedMessage(CFHTTPMessageRef message); + +@ffi.Native() +external CFStringRef CFHTTPMessageCopyVersion(CFHTTPMessageRef message); + +@ffi.Native() +external CFHTTPMessageRef CFHTTPMessageCreateCopy( + CFAllocatorRef alloc, + CFHTTPMessageRef message, +); + +@ffi.Native() +external CFHTTPMessageRef CFHTTPMessageCreateEmpty( + CFAllocatorRef alloc, + int isRequest, +); + +@ffi.Native< + CFHTTPMessageRef Function(CFAllocatorRef, CFStringRef, CFURLRef, CFStringRef) +>() +external CFHTTPMessageRef CFHTTPMessageCreateRequest( + CFAllocatorRef alloc, + CFStringRef requestMethod, + CFURLRef url, + CFStringRef httpVersion, +); + +@ffi.Native< + CFHTTPMessageRef Function(CFAllocatorRef, CFIndex, CFStringRef, CFStringRef) +>() +external CFHTTPMessageRef CFHTTPMessageCreateResponse( + CFAllocatorRef alloc, + int statusCode, + CFStringRef statusDescription, + CFStringRef httpVersion, +); + +@ffi.Native() +external int CFHTTPMessageGetResponseStatusCode(CFHTTPMessageRef response); + +@ffi.Native() +external int CFHTTPMessageGetTypeID(); + +@ffi.Native() +external int CFHTTPMessageIsHeaderComplete(CFHTTPMessageRef message); + +@ffi.Native() +external int CFHTTPMessageIsRequest(CFHTTPMessageRef message); + +@ffi.Native() +external void CFHTTPMessageSetBody( + CFHTTPMessageRef message, + CFDataRef bodyData, +); + +@ffi.Native() +external void CFHTTPMessageSetHeaderFieldValue( + CFHTTPMessageRef message, + CFStringRef headerField, + CFStringRef value, +); + +@ffi.Native() +external int CFHash(CFTypeRef cf); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native( + symbol: 'CFHostCancelInfoResolution', +) +external void _CFHostCancelInfoResolution(CFHostRef theHost, int info); + +void CFHostCancelInfoResolution(CFHostRef theHost, CFHostInfoType info) { + return _CFHostCancelInfoResolution(theHost, info.value); +} + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external CFHostRef CFHostCreateCopy(CFAllocatorRef alloc, CFHostRef host); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external CFHostRef CFHostCreateWithAddress( + CFAllocatorRef allocator, + CFDataRef addr, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external CFHostRef CFHostCreateWithName( + CFAllocatorRef allocator, + CFStringRef hostname, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native)>() +external CFArrayRef CFHostGetAddressing( + CFHostRef theHost, + ffi.Pointer hasBeenResolved, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native)>() +external CFArrayRef CFHostGetNames( + CFHostRef theHost, + ffi.Pointer hasBeenResolved, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native)>() +external CFDataRef CFHostGetReachability( + CFHostRef theHost, + ffi.Pointer hasBeenResolved, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external int CFHostGetTypeID(); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external void CFHostScheduleWithRunLoop( + CFHostRef theHost, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native< + Boolean Function( + CFHostRef, + CFHostClientCallBack, + ffi.Pointer, + ) +>() +external int CFHostSetClient( + CFHostRef theHost, + CFHostClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native< + Boolean Function(CFHostRef, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'CFHostStartInfoResolution') +external int _CFHostStartInfoResolution( + CFHostRef theHost, + int info, + ffi.Pointer error, +); + +DartBoolean CFHostStartInfoResolution( + CFHostRef theHost, + CFHostInfoType info, + ffi.Pointer error, +) { + return _CFHostStartInfoResolution(theHost, info.value, error); +} + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external void CFHostUnscheduleFromRunLoop( + CFHostRef theHost, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native() +external CFArrayRef CFLocaleCopyAvailableLocaleIdentifiers(); + +@ffi.Native() +external CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(); + +@ffi.Native() +external CFLocaleRef CFLocaleCopyCurrent(); + +@ffi.Native() +external CFStringRef CFLocaleCopyDisplayNameForPropertyValue( + CFLocaleRef displayLocale, + CFLocaleKey key, + CFStringRef value, +); + +@ffi.Native() +external CFArrayRef CFLocaleCopyISOCountryCodes(); + +@ffi.Native() +external CFArrayRef CFLocaleCopyISOCurrencyCodes(); + +@ffi.Native() +external CFArrayRef CFLocaleCopyISOLanguageCodes(); + +@ffi.Native() +external CFArrayRef CFLocaleCopyPreferredLanguages(); + +@ffi.Native() +external CFLocaleRef CFLocaleCreate( + CFAllocatorRef allocator, + CFLocaleIdentifier localeIdentifier, +); + +@ffi.Native() +external CFLocaleIdentifier CFLocaleCreateCanonicalLanguageIdentifierFromString( + CFAllocatorRef allocator, + CFStringRef localeIdentifier, +); + +@ffi.Native() +external CFLocaleIdentifier +CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes( + CFAllocatorRef allocator, + int lcode, + int rcode, +); + +@ffi.Native() +external CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromString( + CFAllocatorRef allocator, + CFStringRef localeIdentifier, +); + +@ffi.Native() +external CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier( + CFAllocatorRef allocator, + CFLocaleIdentifier localeID, +); + +@ffi.Native() +external CFLocaleRef CFLocaleCreateCopy( + CFAllocatorRef allocator, + CFLocaleRef locale, +); + +@ffi.Native() +external CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromComponents( + CFAllocatorRef allocator, + CFDictionaryRef dictionary, +); + +@ffi.Native() +external CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode( + CFAllocatorRef allocator, + int lcid, +); + +@ffi.Native() +external CFLocaleIdentifier CFLocaleGetIdentifier(CFLocaleRef locale); + +@ffi.Native( + symbol: 'CFLocaleGetLanguageCharacterDirection', +) +external int _CFLocaleGetLanguageCharacterDirection(CFStringRef isoLangCode); + +CFLocaleLanguageDirection CFLocaleGetLanguageCharacterDirection( + CFStringRef isoLangCode, +) { + return CFLocaleLanguageDirection.fromValue( + _CFLocaleGetLanguageCharacterDirection(isoLangCode), + ); +} + +@ffi.Native( + symbol: 'CFLocaleGetLanguageLineDirection', +) +external int _CFLocaleGetLanguageLineDirection(CFStringRef isoLangCode); + +CFLocaleLanguageDirection CFLocaleGetLanguageLineDirection( + CFStringRef isoLangCode, +) { + return CFLocaleLanguageDirection.fromValue( + _CFLocaleGetLanguageLineDirection(isoLangCode), + ); +} + +@ffi.Native() +external CFLocaleRef CFLocaleGetSystem(); + +@ffi.Native() +external int CFLocaleGetTypeID(); + +@ffi.Native() +external CFTypeRef CFLocaleGetValue(CFLocaleRef locale, CFLocaleKey key); + +@ffi.Native() +external int CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier( + CFLocaleIdentifier localeIdentifier, +); + +@ffi.Native< + CFMachPortRef Function( + CFAllocatorRef, + CFMachPortCallBack, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFMachPortRef CFMachPortCreate( + CFAllocatorRef allocator, + CFMachPortCallBack callout, + ffi.Pointer context, + ffi.Pointer shouldFreeInfo, +); + +@ffi.Native< + CFRunLoopSourceRef Function(CFAllocatorRef, CFMachPortRef, CFIndex) +>() +external CFRunLoopSourceRef CFMachPortCreateRunLoopSource( + CFAllocatorRef allocator, + CFMachPortRef port, + int order, +); + +@ffi.Native< + CFMachPortRef Function( + CFAllocatorRef, + mach_port_t, + CFMachPortCallBack, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFMachPortRef CFMachPortCreateWithPort( + CFAllocatorRef allocator, + int portNum, + CFMachPortCallBack callout, + ffi.Pointer context, + ffi.Pointer shouldFreeInfo, +); + +@ffi.Native)>() +external void CFMachPortGetContext( + CFMachPortRef port, + ffi.Pointer context, +); + +@ffi.Native() +external CFMachPortInvalidationCallBack CFMachPortGetInvalidationCallBack( + CFMachPortRef port, +); + +@ffi.Native() +external int CFMachPortGetPort(CFMachPortRef port); + +@ffi.Native() +external int CFMachPortGetTypeID(); + +@ffi.Native() +external void CFMachPortInvalidate(CFMachPortRef port); + +@ffi.Native() +external int CFMachPortIsValid(CFMachPortRef port); + +@ffi.Native() +external void CFMachPortSetInvalidationCallBack( + CFMachPortRef port, + CFMachPortInvalidationCallBack callout, +); + +@ffi.Native() +external CFTypeRef CFMakeCollectable(CFTypeRef cf); + +@ffi.Native< + CFMessagePortRef Function( + CFAllocatorRef, + CFStringRef, + CFMessagePortCallBack, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFMessagePortRef CFMessagePortCreateLocal( + CFAllocatorRef allocator, + CFStringRef name, + CFMessagePortCallBack callout, + ffi.Pointer context, + ffi.Pointer shouldFreeInfo, +); + +@ffi.Native() +external CFMessagePortRef CFMessagePortCreateRemote( + CFAllocatorRef allocator, + CFStringRef name, +); + +@ffi.Native< + CFRunLoopSourceRef Function(CFAllocatorRef, CFMessagePortRef, CFIndex) +>() +external CFRunLoopSourceRef CFMessagePortCreateRunLoopSource( + CFAllocatorRef allocator, + CFMessagePortRef local, + int order, +); + +@ffi.Native< + ffi.Void Function(CFMessagePortRef, ffi.Pointer) +>() +external void CFMessagePortGetContext( + CFMessagePortRef ms, + ffi.Pointer context, +); + +@ffi.Native() +external CFMessagePortInvalidationCallBack CFMessagePortGetInvalidationCallBack( + CFMessagePortRef ms, +); + +@ffi.Native() +external CFStringRef CFMessagePortGetName(CFMessagePortRef ms); + +@ffi.Native() +external int CFMessagePortGetTypeID(); + +@ffi.Native() +external void CFMessagePortInvalidate(CFMessagePortRef ms); + +@ffi.Native() +external int CFMessagePortIsRemote(CFMessagePortRef ms); + +@ffi.Native() +external int CFMessagePortIsValid(CFMessagePortRef ms); + +@ffi.Native< + SInt32 Function( + CFMessagePortRef, + SInt32, + CFDataRef, + CFTimeInterval, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ) +>() +external int CFMessagePortSendRequest( + CFMessagePortRef remote, + int msgid, + CFDataRef data, + double sendTimeout, + double rcvTimeout, + CFStringRef replyMode, + ffi.Pointer returnData, +); + +@ffi.Native( + symbol: 'CFMessagePortSetDispatchQueue', +) +external void _CFMessagePortSetDispatchQueue( + CFMessagePortRef ms, + dispatch_queue_t queue, +); + +void CFMessagePortSetDispatchQueue( + CFMessagePortRef ms, + Dartdispatch_queue_t queue, +) { + final _$$ref = queue.ref; + return _CFMessagePortSetDispatchQueue(ms, _$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function(CFMessagePortRef, CFMessagePortInvalidationCallBack) +>() +external void CFMessagePortSetInvalidationCallBack( + CFMessagePortRef ms, + CFMessagePortInvalidationCallBack callout, +); + +@ffi.Native() +external int CFMessagePortSetName(CFMessagePortRef ms, CFStringRef newName); + +@Deprecated('Deprecated') +@ffi.Native< + CFNetDiagnosticStatus Function(CFNetDiagnosticRef, ffi.Pointer) +>() +external int CFNetDiagnosticCopyNetworkStatusPassively( + CFNetDiagnosticRef details, + ffi.Pointer description, +); + +@Deprecated('Deprecated') +@ffi.Native< + CFNetDiagnosticRef Function(CFAllocatorRef, CFReadStreamRef, CFWriteStreamRef) +>() +external CFNetDiagnosticRef CFNetDiagnosticCreateWithStreams( + CFAllocatorRef alloc, + CFReadStreamRef readStream, + CFWriteStreamRef writeStream, +); + +@Deprecated('Deprecated') +@ffi.Native() +external CFNetDiagnosticRef CFNetDiagnosticCreateWithURL( + CFAllocatorRef alloc, + CFURLRef url, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CFNetDiagnosticDiagnoseProblemInteractively( + CFNetDiagnosticRef details, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void CFNetDiagnosticSetName( + CFNetDiagnosticRef details, + CFStringRef name, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + CFNetServiceBrowserRef Function( + CFAllocatorRef, + CFNetServiceBrowserClientCallBack, + ffi.Pointer, + ) +>() +external CFNetServiceBrowserRef CFNetServiceBrowserCreate( + CFAllocatorRef alloc, + CFNetServiceBrowserClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external int CFNetServiceBrowserGetTypeID(); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external void CFNetServiceBrowserInvalidate(CFNetServiceBrowserRef browser); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceBrowserRef, CFRunLoopRef, CFStringRef) +>() +external void CFNetServiceBrowserScheduleWithRunLoop( + CFNetServiceBrowserRef browser, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function(CFNetServiceBrowserRef, Boolean, ffi.Pointer) +>() +external int CFNetServiceBrowserSearchForDomains( + CFNetServiceBrowserRef browser, + int registrationDomains, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function( + CFNetServiceBrowserRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external int CFNetServiceBrowserSearchForServices( + CFNetServiceBrowserRef browser, + CFStringRef domain, + CFStringRef serviceType, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceBrowserRef, ffi.Pointer) +>() +external void CFNetServiceBrowserStopSearch( + CFNetServiceBrowserRef browser, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceBrowserRef, CFRunLoopRef, CFStringRef) +>() +external void CFNetServiceBrowserUnscheduleFromRunLoop( + CFNetServiceBrowserRef browser, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external void CFNetServiceCancel(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + CFNetServiceRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFStringRef, + SInt32, + ) +>() +external CFNetServiceRef CFNetServiceCreate( + CFAllocatorRef alloc, + CFStringRef domain, + CFStringRef serviceType, + CFStringRef name, + int port, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFNetServiceRef CFNetServiceCreateCopy( + CFAllocatorRef alloc, + CFNetServiceRef service, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFDictionaryRef CFNetServiceCreateDictionaryWithTXTData( + CFAllocatorRef alloc, + CFDataRef txtRecord, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFDataRef CFNetServiceCreateTXTDataWithDictionary( + CFAllocatorRef alloc, + CFDictionaryRef keyValuePairs, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFArrayRef CFNetServiceGetAddressing(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFStringRef CFNetServiceGetDomain(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFStringRef CFNetServiceGetName(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external int CFNetServiceGetPortNumber(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFDataRef CFNetServiceGetTXTData(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFStringRef CFNetServiceGetTargetHost(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFStringRef CFNetServiceGetType(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external int CFNetServiceGetTypeID(); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + CFNetServiceMonitorRef Function( + CFAllocatorRef, + CFNetServiceRef, + CFNetServiceMonitorClientCallBack, + ffi.Pointer, + ) +>() +external CFNetServiceMonitorRef CFNetServiceMonitorCreate( + CFAllocatorRef alloc, + CFNetServiceRef theService, + CFNetServiceMonitorClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external int CFNetServiceMonitorGetTypeID(); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external void CFNetServiceMonitorInvalidate(CFNetServiceMonitorRef monitor); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceMonitorRef, CFRunLoopRef, CFStringRef) +>() +external void CFNetServiceMonitorScheduleWithRunLoop( + CFNetServiceMonitorRef monitor, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function( + CFNetServiceMonitorRef, + ffi.UnsignedInt, + ffi.Pointer, + ) +>(symbol: 'CFNetServiceMonitorStart') +external int _CFNetServiceMonitorStart( + CFNetServiceMonitorRef monitor, + int recordType, + ffi.Pointer error, +); + +DartBoolean CFNetServiceMonitorStart( + CFNetServiceMonitorRef monitor, + CFNetServiceMonitorType recordType, + ffi.Pointer error, +) { + return _CFNetServiceMonitorStart(monitor, recordType.value, error); +} + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceMonitorRef, ffi.Pointer) +>() +external void CFNetServiceMonitorStop( + CFNetServiceMonitorRef monitor, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceMonitorRef, CFRunLoopRef, CFStringRef) +>() +external void CFNetServiceMonitorUnscheduleFromRunLoop( + CFNetServiceMonitorRef monitor, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CFNetServiceRegister( + CFNetServiceRef theService, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function(CFNetServiceRef, CFOptionFlags, ffi.Pointer) +>() +external int CFNetServiceRegisterWithOptions( + CFNetServiceRef theService, + int options, + ffi.Pointer error, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CFNetServiceResolve( + CFNetServiceRef theService, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function(CFNetServiceRef, CFTimeInterval, ffi.Pointer) +>() +external int CFNetServiceResolveWithTimeout( + CFNetServiceRef theService, + double timeout, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external void CFNetServiceScheduleWithRunLoop( + CFNetServiceRef theService, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function( + CFNetServiceRef, + CFNetServiceClientCallBack, + ffi.Pointer, + ) +>() +external int CFNetServiceSetClient( + CFNetServiceRef theService, + CFNetServiceClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external int CFNetServiceSetTXTData( + CFNetServiceRef theService, + CFDataRef txtRecord, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external void CFNetServiceUnscheduleFromRunLoop( + CFNetServiceRef theService, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native< + CFArrayRef Function(CFStringRef, CFURLRef, ffi.Pointer) +>() +external CFArrayRef CFNetworkCopyProxiesForAutoConfigurationScript( + CFStringRef proxyAutoConfigurationScript, + CFURLRef targetURL, + ffi.Pointer error, +); + +@ffi.Native() +external CFArrayRef CFNetworkCopyProxiesForURL( + CFURLRef url, + CFDictionaryRef proxySettings, +); + +@ffi.Native() +external CFDictionaryRef CFNetworkCopySystemProxySettings(); + +@ffi.Native< + CFRunLoopSourceRef Function( + CFStringRef, + CFURLRef, + CFProxyAutoConfigurationResultCallback, + ffi.Pointer, + ) +>() +external CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationScript( + CFStringRef proxyAutoConfigurationScript, + CFURLRef targetURL, + CFProxyAutoConfigurationResultCallback cb, + ffi.Pointer clientContext, +); + +@ffi.Native< + CFRunLoopSourceRef Function( + CFURLRef, + CFURLRef, + CFProxyAutoConfigurationResultCallback, + ffi.Pointer, + ) +>() +external CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationURL( + CFURLRef proxyAutoConfigURL, + CFURLRef targetURL, + CFProxyAutoConfigurationResultCallback cb, + ffi.Pointer clientContext, +); + +@ffi.Native< + ffi.Void Function( + CFNotificationCenterRef, + ffi.Pointer, + CFNotificationCallback, + CFStringRef, + ffi.Pointer, + CFIndex, + ) +>(symbol: 'CFNotificationCenterAddObserver') +external void _CFNotificationCenterAddObserver( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationCallback callBack, + CFStringRef name, + ffi.Pointer object, + int suspensionBehavior, +); + +void CFNotificationCenterAddObserver( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationCallback callBack, + CFStringRef name, + ffi.Pointer object, + CFNotificationSuspensionBehavior suspensionBehavior, +) { + return _CFNotificationCenterAddObserver( + center, + observer, + callBack, + name, + object, + suspensionBehavior.value, + ); +} + +@ffi.Native() +external CFNotificationCenterRef CFNotificationCenterGetDarwinNotifyCenter(); + +@ffi.Native() +external CFNotificationCenterRef CFNotificationCenterGetDistributedCenter(); + +@ffi.Native() +external CFNotificationCenterRef CFNotificationCenterGetLocalCenter(); + +@ffi.Native() +external int CFNotificationCenterGetTypeID(); + +@ffi.Native< + ffi.Void Function( + CFNotificationCenterRef, + CFNotificationName, + ffi.Pointer, + CFDictionaryRef, + Boolean, + ) +>() +external void CFNotificationCenterPostNotification( + CFNotificationCenterRef center, + CFNotificationName name, + ffi.Pointer object, + CFDictionaryRef userInfo, + int deliverImmediately, +); + +@ffi.Native< + ffi.Void Function( + CFNotificationCenterRef, + CFNotificationName, + ffi.Pointer, + CFDictionaryRef, + CFOptionFlags, + ) +>() +external void CFNotificationCenterPostNotificationWithOptions( + CFNotificationCenterRef center, + CFNotificationName name, + ffi.Pointer object, + CFDictionaryRef userInfo, + int options, +); + +@ffi.Native)>() +external void CFNotificationCenterRemoveEveryObserver( + CFNotificationCenterRef center, + ffi.Pointer observer, +); + +@ffi.Native< + ffi.Void Function( + CFNotificationCenterRef, + ffi.Pointer, + CFNotificationName, + ffi.Pointer, + ) +>() +external void CFNotificationCenterRemoveObserver( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationName name, + ffi.Pointer object, +); + +@ffi.Native() +external int CFNullGetTypeID(); + +@ffi.Native)>( + symbol: 'CFNumberCompare', +) +external int _CFNumberCompare( + CFNumberRef number, + CFNumberRef otherNumber, + ffi.Pointer context, +); + +CFComparisonResult CFNumberCompare( + CFNumberRef number, + CFNumberRef otherNumber, + ffi.Pointer context, +) { + return CFComparisonResult.fromValue( + _CFNumberCompare(number, otherNumber, context), + ); +} + +@ffi.Native< + CFNumberRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) +>(symbol: 'CFNumberCreate') +external CFNumberRef _CFNumberCreate( + CFAllocatorRef allocator, + int theType, + ffi.Pointer valuePtr, +); + +CFNumberRef CFNumberCreate( + CFAllocatorRef allocator, + CFNumberType theType, + ffi.Pointer valuePtr, +) { + return _CFNumberCreate(allocator, theType.value, valuePtr); +} + +@ffi.Native() +external CFTypeRef CFNumberFormatterCopyProperty( + CFNumberFormatterRef formatter, + CFNumberFormatterKey key, +); + +@ffi.Native< + CFNumberFormatterRef Function(CFAllocatorRef, CFLocaleRef, CFIndex) +>(symbol: 'CFNumberFormatterCreate') +external CFNumberFormatterRef _CFNumberFormatterCreate( + CFAllocatorRef allocator, + CFLocaleRef locale, + int style, +); + +CFNumberFormatterRef CFNumberFormatterCreate( + CFAllocatorRef allocator, + CFLocaleRef locale, + CFNumberFormatterStyle style, +) { + return _CFNumberFormatterCreate(allocator, locale, style.value); +} + +@ffi.Native< + CFNumberRef Function( + CFAllocatorRef, + CFNumberFormatterRef, + CFStringRef, + ffi.Pointer, + CFOptionFlags, + ) +>() +external CFNumberRef CFNumberFormatterCreateNumberFromString( + CFAllocatorRef allocator, + CFNumberFormatterRef formatter, + CFStringRef string, + ffi.Pointer rangep, + int options, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFNumberFormatterRef, CFNumberRef) +>() +external CFStringRef CFNumberFormatterCreateStringWithNumber( + CFAllocatorRef allocator, + CFNumberFormatterRef formatter, + CFNumberRef number, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + CFNumberFormatterRef, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'CFNumberFormatterCreateStringWithValue') +external CFStringRef _CFNumberFormatterCreateStringWithValue( + CFAllocatorRef allocator, + CFNumberFormatterRef formatter, + int numberType, + ffi.Pointer valuePtr, +); + +CFStringRef CFNumberFormatterCreateStringWithValue( + CFAllocatorRef allocator, + CFNumberFormatterRef formatter, + CFNumberType numberType, + ffi.Pointer valuePtr, +) { + return _CFNumberFormatterCreateStringWithValue( + allocator, + formatter, + numberType.value, + valuePtr, + ); +} + +@ffi.Native< + Boolean Function(CFStringRef, ffi.Pointer, ffi.Pointer) +>() +external int CFNumberFormatterGetDecimalInfoForCurrencyCode( + CFStringRef currencyCode, + ffi.Pointer defaultFractionDigits, + ffi.Pointer roundingIncrement, +); + +@ffi.Native() +external CFStringRef CFNumberFormatterGetFormat(CFNumberFormatterRef formatter); + +@ffi.Native() +external CFLocaleRef CFNumberFormatterGetLocale(CFNumberFormatterRef formatter); + +@ffi.Native( + symbol: 'CFNumberFormatterGetStyle', +) +external int _CFNumberFormatterGetStyle(CFNumberFormatterRef formatter); + +CFNumberFormatterStyle CFNumberFormatterGetStyle( + CFNumberFormatterRef formatter, +) { + return CFNumberFormatterStyle.fromValue( + _CFNumberFormatterGetStyle(formatter), + ); +} + +@ffi.Native() +external int CFNumberFormatterGetTypeID(); + +@ffi.Native< + Boolean Function( + CFNumberFormatterRef, + CFStringRef, + ffi.Pointer, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'CFNumberFormatterGetValueFromString') +external int _CFNumberFormatterGetValueFromString( + CFNumberFormatterRef formatter, + CFStringRef string, + ffi.Pointer rangep, + int numberType, + ffi.Pointer valuePtr, +); + +DartBoolean CFNumberFormatterGetValueFromString( + CFNumberFormatterRef formatter, + CFStringRef string, + ffi.Pointer rangep, + CFNumberType numberType, + ffi.Pointer valuePtr, +) { + return _CFNumberFormatterGetValueFromString( + formatter, + string, + rangep, + numberType.value, + valuePtr, + ); +} + +@ffi.Native() +external void CFNumberFormatterSetFormat( + CFNumberFormatterRef formatter, + CFStringRef formatString, +); + +@ffi.Native< + ffi.Void Function(CFNumberFormatterRef, CFNumberFormatterKey, CFTypeRef) +>() +external void CFNumberFormatterSetProperty( + CFNumberFormatterRef formatter, + CFNumberFormatterKey key, + CFTypeRef value, +); + +@ffi.Native() +external int CFNumberGetByteSize(CFNumberRef number); + +@ffi.Native(symbol: 'CFNumberGetType') +external int _CFNumberGetType(CFNumberRef number); + +CFNumberType CFNumberGetType(CFNumberRef number) { + return CFNumberType.fromValue(_CFNumberGetType(number)); +} + +@ffi.Native() +external int CFNumberGetTypeID(); + +@ffi.Native)>( + symbol: 'CFNumberGetValue', +) +external int _CFNumberGetValue( + CFNumberRef number, + int theType, + ffi.Pointer valuePtr, +); + +DartBoolean CFNumberGetValue( + CFNumberRef number, + CFNumberType theType, + ffi.Pointer valuePtr, +) { + return _CFNumberGetValue(number, theType.value, valuePtr); +} + +@ffi.Native() +external int CFNumberIsFloatType(CFNumberRef number); + +@ffi.Native() +external void CFPlugInAddInstanceForFactory(CFUUIDRef factoryID); + +@ffi.Native() +external CFPlugInRef CFPlugInCreate( + CFAllocatorRef allocator, + CFURLRef plugInURL, +); + +@ffi.Native() +external CFArrayRef CFPlugInFindFactoriesForPlugInType(CFUUIDRef typeUUID); + +@ffi.Native() +external CFArrayRef CFPlugInFindFactoriesForPlugInTypeInPlugIn( + CFUUIDRef typeUUID, + CFPlugInRef plugIn, +); + +@ffi.Native() +external CFBundleRef CFPlugInGetBundle(CFPlugInRef plugIn); + +@ffi.Native() +external int CFPlugInGetTypeID(); + +@ffi.Native< + ffi.Pointer Function(CFAllocatorRef, CFUUIDRef, CFUUIDRef) +>() +external ffi.Pointer CFPlugInInstanceCreate( + CFAllocatorRef allocator, + CFUUIDRef factoryUUID, + CFUUIDRef typeUUID, +); + +@ffi.Native< + CFPlugInInstanceRef Function( + CFAllocatorRef, + CFIndex, + CFPlugInInstanceDeallocateInstanceDataFunction, + CFStringRef, + CFPlugInInstanceGetInterfaceFunction, + ) +>() +external CFPlugInInstanceRef CFPlugInInstanceCreateWithInstanceDataSize( + CFAllocatorRef allocator, + int instanceDataSize, + CFPlugInInstanceDeallocateInstanceDataFunction deallocateInstanceFunction, + CFStringRef factoryName, + CFPlugInInstanceGetInterfaceFunction getInterfaceFunction, +); + +@ffi.Native() +external CFStringRef CFPlugInInstanceGetFactoryName( + CFPlugInInstanceRef instance, +); + +@ffi.Native Function(CFPlugInInstanceRef)>() +external ffi.Pointer CFPlugInInstanceGetInstanceData( + CFPlugInInstanceRef instance, +); + +@ffi.Native< + Boolean Function( + CFPlugInInstanceRef, + CFStringRef, + ffi.Pointer>, + ) +>() +external int CFPlugInInstanceGetInterfaceFunctionTable( + CFPlugInInstanceRef instance, + CFStringRef interfaceName, + ffi.Pointer> ftbl, +); + +@ffi.Native() +external int CFPlugInInstanceGetTypeID(); + +@ffi.Native() +external int CFPlugInIsLoadOnDemand(CFPlugInRef plugIn); + +@ffi.Native() +external int CFPlugInRegisterFactoryFunction( + CFUUIDRef factoryUUID, + CFPlugInFactoryFunction func, +); + +@ffi.Native() +external int CFPlugInRegisterFactoryFunctionByName( + CFUUIDRef factoryUUID, + CFPlugInRef plugIn, + CFStringRef functionName, +); + +@ffi.Native() +external int CFPlugInRegisterPlugInType( + CFUUIDRef factoryUUID, + CFUUIDRef typeUUID, +); + +@ffi.Native() +external void CFPlugInRemoveInstanceForFactory(CFUUIDRef factoryID); + +@ffi.Native() +external void CFPlugInSetLoadOnDemand(CFPlugInRef plugIn, int flag); + +@ffi.Native() +external int CFPlugInUnregisterFactory(CFUUIDRef factoryUUID); + +@ffi.Native() +external int CFPlugInUnregisterPlugInType( + CFUUIDRef factoryUUID, + CFUUIDRef typeUUID, +); + +@ffi.Native() +external void CFPreferencesAddSuitePreferencesToApp( + CFStringRef applicationID, + CFStringRef suiteID, +); + +@ffi.Native() +external int CFPreferencesAppSynchronize(CFStringRef applicationID); + +@ffi.Native() +external int CFPreferencesAppValueIsForced( + CFStringRef key, + CFStringRef applicationID, +); + +@ffi.Native() +external CFPropertyListRef CFPreferencesCopyAppValue( + CFStringRef key, + CFStringRef applicationID, +); + +@Deprecated('Unsupported API') +@ffi.Native() +external CFArrayRef CFPreferencesCopyApplicationList( + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native() +external CFArrayRef CFPreferencesCopyKeyList( + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native< + CFDictionaryRef Function(CFArrayRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFDictionaryRef CFPreferencesCopyMultiple( + CFArrayRef keysToFetch, + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native< + CFPropertyListRef Function(CFStringRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFPropertyListRef CFPreferencesCopyValue( + CFStringRef key, + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native)>() +external int CFPreferencesGetAppBooleanValue( + CFStringRef key, + CFStringRef applicationID, + ffi.Pointer keyExistsAndHasValidFormat, +); + +@ffi.Native)>() +external int CFPreferencesGetAppIntegerValue( + CFStringRef key, + CFStringRef applicationID, + ffi.Pointer keyExistsAndHasValidFormat, +); + +@ffi.Native() +external void CFPreferencesRemoveSuitePreferencesFromApp( + CFStringRef applicationID, + CFStringRef suiteID, +); + +@ffi.Native() +external void CFPreferencesSetAppValue( + CFStringRef key, + CFPropertyListRef value, + CFStringRef applicationID, +); + +@ffi.Native< + ffi.Void Function( + CFDictionaryRef, + CFArrayRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) +>() +external void CFPreferencesSetMultiple( + CFDictionaryRef keysToSet, + CFArrayRef keysToRemove, + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native< + ffi.Void Function( + CFStringRef, + CFPropertyListRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) +>() +external void CFPreferencesSetValue( + CFStringRef key, + CFPropertyListRef value, + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native() +external int CFPreferencesSynchronize( + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native< + CFDataRef Function( + CFAllocatorRef, + CFPropertyListRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ) +>(symbol: 'CFPropertyListCreateData') +external CFDataRef _CFPropertyListCreateData( + CFAllocatorRef allocator, + CFPropertyListRef propertyList, + int format, + int options, + ffi.Pointer error, +); + +CFDataRef CFPropertyListCreateData( + CFAllocatorRef allocator, + CFPropertyListRef propertyList, + CFPropertyListFormat format, + DartCFOptionFlags options, + ffi.Pointer error, +) { + return _CFPropertyListCreateData( + allocator, + propertyList, + format.value, + options, + error, + ); +} + +@ffi.Native< + CFPropertyListRef Function(CFAllocatorRef, CFPropertyListRef, CFOptionFlags) +>() +external CFPropertyListRef CFPropertyListCreateDeepCopy( + CFAllocatorRef allocator, + CFPropertyListRef propertyList, + int mutabilityOption, +); + +@Deprecated('Use CFPropertyListCreateWithStream instead.') +@ffi.Native< + CFPropertyListRef Function( + CFAllocatorRef, + CFReadStreamRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFPropertyListRef CFPropertyListCreateFromStream( + CFAllocatorRef allocator, + CFReadStreamRef stream, + int streamLength, + int mutabilityOption, + ffi.Pointer format, + ffi.Pointer errorString, +); + +@Deprecated('Use CFPropertyListCreateWithData instead.') +@ffi.Native< + CFPropertyListRef Function( + CFAllocatorRef, + CFDataRef, + CFOptionFlags, + ffi.Pointer, + ) +>() +external CFPropertyListRef CFPropertyListCreateFromXMLData( + CFAllocatorRef allocator, + CFDataRef xmlData, + int mutabilityOption, + ffi.Pointer errorString, +); + +@ffi.Native< + CFPropertyListRef Function( + CFAllocatorRef, + CFDataRef, + CFOptionFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFPropertyListRef CFPropertyListCreateWithData( + CFAllocatorRef allocator, + CFDataRef data, + int options, + ffi.Pointer format, + ffi.Pointer error, +); + +@ffi.Native< + CFPropertyListRef Function( + CFAllocatorRef, + CFReadStreamRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFPropertyListRef CFPropertyListCreateWithStream( + CFAllocatorRef allocator, + CFReadStreamRef stream, + int streamLength, + int options, + ffi.Pointer format, + ffi.Pointer error, +); + +@Deprecated('Use CFPropertyListCreateData instead.') +@ffi.Native() +external CFDataRef CFPropertyListCreateXMLData( + CFAllocatorRef allocator, + CFPropertyListRef propertyList, +); + +@ffi.Native( + symbol: 'CFPropertyListIsValid', +) +external int _CFPropertyListIsValid(CFPropertyListRef plist, int format); + +DartBoolean CFPropertyListIsValid( + CFPropertyListRef plist, + CFPropertyListFormat format, +) { + return _CFPropertyListIsValid(plist, format.value); +} + +@ffi.Native< + CFIndex Function( + CFPropertyListRef, + CFWriteStreamRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ) +>(symbol: 'CFPropertyListWrite') +external int _CFPropertyListWrite( + CFPropertyListRef propertyList, + CFWriteStreamRef stream, + int format, + int options, + ffi.Pointer error, +); + +DartCFIndex CFPropertyListWrite( + CFPropertyListRef propertyList, + CFWriteStreamRef stream, + CFPropertyListFormat format, + DartCFOptionFlags options, + ffi.Pointer error, +) { + return _CFPropertyListWrite( + propertyList, + stream, + format.value, + options, + error, + ); +} + +@Deprecated('Use CFPropertyListWrite instead.') +@ffi.Native< + CFIndex Function( + CFPropertyListRef, + CFWriteStreamRef, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'CFPropertyListWriteToStream') +external int _CFPropertyListWriteToStream( + CFPropertyListRef propertyList, + CFWriteStreamRef stream, + int format, + ffi.Pointer errorString, +); + +DartCFIndex CFPropertyListWriteToStream( + CFPropertyListRef propertyList, + CFWriteStreamRef stream, + CFPropertyListFormat format, + ffi.Pointer errorString, +) { + return _CFPropertyListWriteToStream( + propertyList, + stream, + format.value, + errorString, + ); +} + +@ffi.Native() +external void CFReadStreamClose(CFReadStreamRef stream); + +@ffi.Native( + symbol: 'CFReadStreamCopyDispatchQueue', +) +external dispatch_queue_t _CFReadStreamCopyDispatchQueue( + CFReadStreamRef stream, +); + +Dartdispatch_queue_t CFReadStreamCopyDispatchQueue(CFReadStreamRef stream) { + return objc.NSObject.fromPointer( + _CFReadStreamCopyDispatchQueue(stream), + retain: true, + release: true, + ); +} + +@ffi.Native() +external CFErrorRef CFReadStreamCopyError(CFReadStreamRef stream); + +@ffi.Native() +external CFTypeRef CFReadStreamCopyProperty( + CFReadStreamRef stream, + CFStreamPropertyKey propertyName, +); + +@Deprecated('Use NSURLSession API for http requests') +@ffi.Native() +external CFReadStreamRef CFReadStreamCreateForHTTPRequest( + CFAllocatorRef alloc, + CFHTTPMessageRef request, +); + +@Deprecated('Use NSURLSession API for http requests') +@ffi.Native< + CFReadStreamRef Function(CFAllocatorRef, CFHTTPMessageRef, CFReadStreamRef) +>() +external CFReadStreamRef CFReadStreamCreateForStreamedHTTPRequest( + CFAllocatorRef alloc, + CFHTTPMessageRef requestHeaders, + CFReadStreamRef requestBody, +); + +@ffi.Native< + CFReadStreamRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorRef, + ) +>() +external CFReadStreamRef CFReadStreamCreateWithBytesNoCopy( + CFAllocatorRef alloc, + ffi.Pointer bytes, + int length, + CFAllocatorRef bytesDeallocator, +); + +@Deprecated('Use NSURLSessionAPI for ftp requests') +@ffi.Native() +external CFReadStreamRef CFReadStreamCreateWithFTPURL( + CFAllocatorRef alloc, + CFURLRef ftpURL, +); + +@ffi.Native() +external CFReadStreamRef CFReadStreamCreateWithFile( + CFAllocatorRef alloc, + CFURLRef fileURL, +); + +@ffi.Native< + ffi.Pointer Function(CFReadStreamRef, CFIndex, ffi.Pointer) +>() +external ffi.Pointer CFReadStreamGetBuffer( + CFReadStreamRef stream, + int maxBytesToRead, + ffi.Pointer numBytesRead, +); + +@ffi.Native() +external CFStreamError CFReadStreamGetError(CFReadStreamRef stream); + +@ffi.Native(symbol: 'CFReadStreamGetStatus') +external int _CFReadStreamGetStatus(CFReadStreamRef stream); + +CFStreamStatus CFReadStreamGetStatus(CFReadStreamRef stream) { + return CFStreamStatus.fromValue(_CFReadStreamGetStatus(stream)); +} + +@ffi.Native() +external int CFReadStreamGetTypeID(); + +@ffi.Native() +external int CFReadStreamHasBytesAvailable(CFReadStreamRef stream); + +@ffi.Native() +external int CFReadStreamOpen(CFReadStreamRef stream); + +@ffi.Native, CFIndex)>() +external int CFReadStreamRead( + CFReadStreamRef stream, + ffi.Pointer buffer, + int bufferLength, +); + +@ffi.Native() +external void CFReadStreamScheduleWithRunLoop( + CFReadStreamRef stream, + CFRunLoopRef runLoop, + CFRunLoopMode runLoopMode, +); + +@ffi.Native< + Boolean Function( + CFReadStreamRef, + CFOptionFlags, + CFReadStreamClientCallBack, + ffi.Pointer, + ) +>() +external int CFReadStreamSetClient( + CFReadStreamRef stream, + int streamEvents, + CFReadStreamClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@ffi.Native( + symbol: 'CFReadStreamSetDispatchQueue', +) +external void _CFReadStreamSetDispatchQueue( + CFReadStreamRef stream, + dispatch_queue_t q, +); + +void CFReadStreamSetDispatchQueue( + CFReadStreamRef stream, + Dartdispatch_queue_t q, +) { + final _$$ref = q.ref; + return _CFReadStreamSetDispatchQueue(stream, _$$ref.pointer); +} + +@ffi.Native() +external int CFReadStreamSetProperty( + CFReadStreamRef stream, + CFStreamPropertyKey propertyName, + CFTypeRef propertyValue, +); + +@ffi.Native() +external void CFReadStreamUnscheduleFromRunLoop( + CFReadStreamRef stream, + CFRunLoopRef runLoop, + CFRunLoopMode runLoopMode, +); + +@ffi.Native() +external void CFRelease(CFTypeRef cf); + +@ffi.Native() +external CFTypeRef CFRetain(CFTypeRef cf); + +@ffi.Native() +external void CFRunLoopAddCommonMode(CFRunLoopRef rl, CFRunLoopMode mode); + +@ffi.Native< + ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) +>() +external void CFRunLoopAddObserver( + CFRunLoopRef rl, + CFRunLoopObserverRef observer, + CFRunLoopMode mode, +); + +@ffi.Native< + ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) +>() +external void CFRunLoopAddSource( + CFRunLoopRef rl, + CFRunLoopSourceRef source, + CFRunLoopMode mode, +); + +@ffi.Native() +external void CFRunLoopAddTimer( + CFRunLoopRef rl, + CFRunLoopTimerRef timer, + CFRunLoopMode mode, +); + +@ffi.Native< + Boolean Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) +>() +external int CFRunLoopContainsObserver( + CFRunLoopRef rl, + CFRunLoopObserverRef observer, + CFRunLoopMode mode, +); + +@ffi.Native() +external int CFRunLoopContainsSource( + CFRunLoopRef rl, + CFRunLoopSourceRef source, + CFRunLoopMode mode, +); + +@ffi.Native() +external int CFRunLoopContainsTimer( + CFRunLoopRef rl, + CFRunLoopTimerRef timer, + CFRunLoopMode mode, +); + +@ffi.Native() +external CFArrayRef CFRunLoopCopyAllModes(CFRunLoopRef rl); + +@ffi.Native() +external CFRunLoopMode CFRunLoopCopyCurrentMode(CFRunLoopRef rl); + +@ffi.Native() +external CFRunLoopRef CFRunLoopGetCurrent(); + +@ffi.Native() +external CFRunLoopRef CFRunLoopGetMain(); + +@ffi.Native() +external double CFRunLoopGetNextTimerFireDate( + CFRunLoopRef rl, + CFRunLoopMode mode, +); + +@ffi.Native() +external int CFRunLoopGetTypeID(); + +@ffi.Native() +external int CFRunLoopIsWaiting(CFRunLoopRef rl); + +@ffi.Native< + CFRunLoopObserverRef Function( + CFAllocatorRef, + CFOptionFlags, + Boolean, + CFIndex, + CFRunLoopObserverCallBack, + ffi.Pointer, + ) +>() +external CFRunLoopObserverRef CFRunLoopObserverCreate( + CFAllocatorRef allocator, + int activities, + int repeats, + int order, + CFRunLoopObserverCallBack callout, + ffi.Pointer context, +); + +@ffi.Native< + CFRunLoopObserverRef Function( + CFAllocatorRef, + CFOptionFlags, + Boolean, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'CFRunLoopObserverCreateWithHandler') +external CFRunLoopObserverRef _CFRunLoopObserverCreateWithHandler( + CFAllocatorRef allocator, + int activities, + int repeats, + int order, + ffi.Pointer block, +); + +CFRunLoopObserverRef CFRunLoopObserverCreateWithHandler( + CFAllocatorRef allocator, + DartCFOptionFlags activities, + DartBoolean repeats, + DartCFIndex order, + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + block, +) { + final _$$ref = block.ref; + return _CFRunLoopObserverCreateWithHandler( + allocator, + activities, + repeats, + order, + _$$ref.pointer, + ); +} + +@ffi.Native() +external int CFRunLoopObserverDoesRepeat(CFRunLoopObserverRef observer); + +@ffi.Native() +external int CFRunLoopObserverGetActivities(CFRunLoopObserverRef observer); + +@ffi.Native< + ffi.Void Function(CFRunLoopObserverRef, ffi.Pointer) +>() +external void CFRunLoopObserverGetContext( + CFRunLoopObserverRef observer, + ffi.Pointer context, +); + +@ffi.Native() +external int CFRunLoopObserverGetOrder(CFRunLoopObserverRef observer); + +@ffi.Native() +external int CFRunLoopObserverGetTypeID(); + +@ffi.Native() +external void CFRunLoopObserverInvalidate(CFRunLoopObserverRef observer); + +@ffi.Native() +external int CFRunLoopObserverIsValid(CFRunLoopObserverRef observer); + +@ffi.Native< + ffi.Void Function(CFRunLoopRef, CFTypeRef, ffi.Pointer) +>(symbol: 'CFRunLoopPerformBlock') +external void _CFRunLoopPerformBlock( + CFRunLoopRef rl, + CFTypeRef mode, + ffi.Pointer block, +); + +void CFRunLoopPerformBlock( + CFRunLoopRef rl, + CFTypeRef mode, + objc.ObjCBlock block, +) { + final _$$ref = block.ref; + return _CFRunLoopPerformBlock(rl, mode, _$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) +>() +external void CFRunLoopRemoveObserver( + CFRunLoopRef rl, + CFRunLoopObserverRef observer, + CFRunLoopMode mode, +); + +@ffi.Native< + ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) +>() +external void CFRunLoopRemoveSource( + CFRunLoopRef rl, + CFRunLoopSourceRef source, + CFRunLoopMode mode, +); + +@ffi.Native() +external void CFRunLoopRemoveTimer( + CFRunLoopRef rl, + CFRunLoopTimerRef timer, + CFRunLoopMode mode, +); + +@ffi.Native() +external void CFRunLoopRun(); + +@ffi.Native( + symbol: 'CFRunLoopRunInMode', +) +external int _CFRunLoopRunInMode( + CFRunLoopMode mode, + double seconds, + int returnAfterSourceHandled, +); + +CFRunLoopRunResult CFRunLoopRunInMode( + CFRunLoopMode mode, + DartCFTimeInterval seconds, + DartBoolean returnAfterSourceHandled, +) { + return CFRunLoopRunResult.fromValue( + _CFRunLoopRunInMode(mode, seconds, returnAfterSourceHandled), + ); +} + +@ffi.Native< + CFRunLoopSourceRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ) +>() +external CFRunLoopSourceRef CFRunLoopSourceCreate( + CFAllocatorRef allocator, + int order, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Void Function(CFRunLoopSourceRef, ffi.Pointer) +>() +external void CFRunLoopSourceGetContext( + CFRunLoopSourceRef source, + ffi.Pointer context, +); + +@ffi.Native() +external int CFRunLoopSourceGetOrder(CFRunLoopSourceRef source); + +@ffi.Native() +external int CFRunLoopSourceGetTypeID(); + +@ffi.Native() +external void CFRunLoopSourceInvalidate(CFRunLoopSourceRef source); + +@ffi.Native() +external int CFRunLoopSourceIsValid(CFRunLoopSourceRef source); + +@ffi.Native() +external void CFRunLoopSourceSignal(CFRunLoopSourceRef source); + +@ffi.Native() +external void CFRunLoopStop(CFRunLoopRef rl); + +@ffi.Native< + CFRunLoopTimerRef Function( + CFAllocatorRef, + CFAbsoluteTime, + CFTimeInterval, + CFOptionFlags, + CFIndex, + CFRunLoopTimerCallBack, + ffi.Pointer, + ) +>() +external CFRunLoopTimerRef CFRunLoopTimerCreate( + CFAllocatorRef allocator, + double fireDate, + double interval, + int flags, + int order, + CFRunLoopTimerCallBack callout, + ffi.Pointer context, +); + +@ffi.Native< + CFRunLoopTimerRef Function( + CFAllocatorRef, + CFAbsoluteTime, + CFTimeInterval, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'CFRunLoopTimerCreateWithHandler') +external CFRunLoopTimerRef _CFRunLoopTimerCreateWithHandler( + CFAllocatorRef allocator, + double fireDate, + double interval, + int flags, + int order, + ffi.Pointer block, +); + +CFRunLoopTimerRef CFRunLoopTimerCreateWithHandler( + CFAllocatorRef allocator, + DartCFTimeInterval fireDate, + DartCFTimeInterval interval, + DartCFOptionFlags flags, + DartCFIndex order, + objc.ObjCBlock)> block, +) { + final _$$ref = block.ref; + return _CFRunLoopTimerCreateWithHandler( + allocator, + fireDate, + interval, + flags, + order, + _$$ref.pointer, + ); +} + +@ffi.Native() +external int CFRunLoopTimerDoesRepeat(CFRunLoopTimerRef timer); + +@ffi.Native< + ffi.Void Function(CFRunLoopTimerRef, ffi.Pointer) +>() +external void CFRunLoopTimerGetContext( + CFRunLoopTimerRef timer, + ffi.Pointer context, +); + +@ffi.Native() +external double CFRunLoopTimerGetInterval(CFRunLoopTimerRef timer); + +@ffi.Native() +external double CFRunLoopTimerGetNextFireDate(CFRunLoopTimerRef timer); + +@ffi.Native() +external int CFRunLoopTimerGetOrder(CFRunLoopTimerRef timer); + +@ffi.Native() +external double CFRunLoopTimerGetTolerance(CFRunLoopTimerRef timer); + +@ffi.Native() +external int CFRunLoopTimerGetTypeID(); + +@ffi.Native() +external void CFRunLoopTimerInvalidate(CFRunLoopTimerRef timer); + +@ffi.Native() +external int CFRunLoopTimerIsValid(CFRunLoopTimerRef timer); + +@ffi.Native() +external void CFRunLoopTimerSetNextFireDate( + CFRunLoopTimerRef timer, + double fireDate, +); + +@ffi.Native() +external void CFRunLoopTimerSetTolerance( + CFRunLoopTimerRef timer, + double tolerance, +); + +@ffi.Native() +external void CFRunLoopWakeUp(CFRunLoopRef rl); + +@ffi.Native)>() +external void CFSetAddValue( + CFMutableSetRef theSet, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function(CFSetRef, CFSetApplierFunction, ffi.Pointer) +>() +external void CFSetApplyFunction( + CFSetRef theSet, + CFSetApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native)>() +external int CFSetContainsValue(CFSetRef theSet, ffi.Pointer value); + +@ffi.Native< + CFSetRef Function( + CFAllocatorRef, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ) +>() +external CFSetRef CFSetCreate( + CFAllocatorRef allocator, + ffi.Pointer> values, + int numValues, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFSetRef CFSetCreateCopy(CFAllocatorRef allocator, CFSetRef theSet); + +@ffi.Native< + CFMutableSetRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) +>() +external CFMutableSetRef CFSetCreateMutable( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFMutableSetRef CFSetCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFSetRef theSet, +); + +@ffi.Native() +external int CFSetGetCount(CFSetRef theSet); + +@ffi.Native)>() +external int CFSetGetCountOfValue(CFSetRef theSet, ffi.Pointer value); + +@ffi.Native() +external int CFSetGetTypeID(); + +@ffi.Native Function(CFSetRef, ffi.Pointer)>() +external ffi.Pointer CFSetGetValue( + CFSetRef theSet, + ffi.Pointer value, +); + +@ffi.Native< + Boolean Function( + CFSetRef, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CFSetGetValueIfPresent( + CFSetRef theSet, + ffi.Pointer candidate, + ffi.Pointer> value, +); + +@ffi.Native>)>() +external void CFSetGetValues( + CFSetRef theSet, + ffi.Pointer> values, +); + +@ffi.Native() +external void CFSetRemoveAllValues(CFMutableSetRef theSet); + +@ffi.Native)>() +external void CFSetRemoveValue( + CFMutableSetRef theSet, + ffi.Pointer value, +); + +@ffi.Native)>() +external void CFSetReplaceValue( + CFMutableSetRef theSet, + ffi.Pointer value, +); + +@ffi.Native)>() +external void CFSetSetValue( + CFMutableSetRef theSet, + ffi.Pointer value, +); + +@ffi.Native() +external void CFShow(CFTypeRef obj); + +@ffi.Native() +external void CFShowStr(CFStringRef str); + +@ffi.Native( + symbol: 'CFSocketConnectToAddress', +) +external int _CFSocketConnectToAddress( + CFSocketRef s, + CFDataRef address, + double timeout, +); + +CFSocketError CFSocketConnectToAddress( + CFSocketRef s, + CFDataRef address, + DartCFTimeInterval timeout, +) { + return CFSocketError.fromValue( + _CFSocketConnectToAddress(s, address, timeout), + ); +} + +@ffi.Native() +external CFDataRef CFSocketCopyAddress(CFSocketRef s); + +@ffi.Native() +external CFDataRef CFSocketCopyPeerAddress(CFSocketRef s); + +@ffi.Native< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CFSocketCopyRegisteredSocketSignature') +external int _CFSocketCopyRegisteredSocketSignature( + ffi.Pointer nameServerSignature, + double timeout, + CFStringRef name, + ffi.Pointer signature, + ffi.Pointer nameServerAddress, +); + +CFSocketError CFSocketCopyRegisteredSocketSignature( + ffi.Pointer nameServerSignature, + DartCFTimeInterval timeout, + CFStringRef name, + ffi.Pointer signature, + ffi.Pointer nameServerAddress, +) { + return CFSocketError.fromValue( + _CFSocketCopyRegisteredSocketSignature( + nameServerSignature, + timeout, + name, + signature, + nameServerAddress, + ), + ); +} + +@ffi.Native< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CFSocketCopyRegisteredValue') +external int _CFSocketCopyRegisteredValue( + ffi.Pointer nameServerSignature, + double timeout, + CFStringRef name, + ffi.Pointer value, + ffi.Pointer nameServerAddress, +); + +CFSocketError CFSocketCopyRegisteredValue( + ffi.Pointer nameServerSignature, + DartCFTimeInterval timeout, + CFStringRef name, + ffi.Pointer value, + ffi.Pointer nameServerAddress, +) { + return CFSocketError.fromValue( + _CFSocketCopyRegisteredValue( + nameServerSignature, + timeout, + name, + value, + nameServerAddress, + ), + ); +} + +@ffi.Native< + CFSocketRef Function( + CFAllocatorRef, + SInt32, + SInt32, + SInt32, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + ) +>() +external CFSocketRef CFSocketCreate( + CFAllocatorRef allocator, + int protocolFamily, + int socketType, + int protocol, + int callBackTypes, + CFSocketCallBack callout, + ffi.Pointer context, +); + +@ffi.Native< + CFSocketRef Function( + CFAllocatorRef, + ffi.Pointer, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + CFTimeInterval, + ) +>() +external CFSocketRef CFSocketCreateConnectedToSocketSignature( + CFAllocatorRef allocator, + ffi.Pointer signature, + int callBackTypes, + CFSocketCallBack callout, + ffi.Pointer context, + double timeout, +); + +@ffi.Native() +external CFRunLoopSourceRef CFSocketCreateRunLoopSource( + CFAllocatorRef allocator, + CFSocketRef s, + int order, +); + +@ffi.Native< + CFSocketRef Function( + CFAllocatorRef, + CFSocketNativeHandle, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + ) +>() +external CFSocketRef CFSocketCreateWithNative( + CFAllocatorRef allocator, + int sock, + int callBackTypes, + CFSocketCallBack callout, + ffi.Pointer context, +); + +@ffi.Native< + CFSocketRef Function( + CFAllocatorRef, + ffi.Pointer, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + ) +>() +external CFSocketRef CFSocketCreateWithSocketSignature( + CFAllocatorRef allocator, + ffi.Pointer signature, + int callBackTypes, + CFSocketCallBack callout, + ffi.Pointer context, +); + +@ffi.Native() +external void CFSocketDisableCallBacks(CFSocketRef s, int callBackTypes); + +@ffi.Native() +external void CFSocketEnableCallBacks(CFSocketRef s, int callBackTypes); + +@ffi.Native)>() +external void CFSocketGetContext( + CFSocketRef s, + ffi.Pointer context, +); + +@ffi.Native() +external int CFSocketGetDefaultNameRegistryPortNumber(); + +@ffi.Native() +external int CFSocketGetNative(CFSocketRef s); + +@ffi.Native() +external int CFSocketGetSocketFlags(CFSocketRef s); + +@ffi.Native() +external int CFSocketGetTypeID(); + +@ffi.Native() +external void CFSocketInvalidate(CFSocketRef s); + +@ffi.Native() +external int CFSocketIsValid(CFSocketRef s); + +@ffi.Native< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ) +>(symbol: 'CFSocketRegisterSocketSignature') +external int _CFSocketRegisterSocketSignature( + ffi.Pointer nameServerSignature, + double timeout, + CFStringRef name, + ffi.Pointer signature, +); + +CFSocketError CFSocketRegisterSocketSignature( + ffi.Pointer nameServerSignature, + DartCFTimeInterval timeout, + CFStringRef name, + ffi.Pointer signature, +) { + return CFSocketError.fromValue( + _CFSocketRegisterSocketSignature( + nameServerSignature, + timeout, + name, + signature, + ), + ); +} + +@ffi.Native< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + CFPropertyListRef, + ) +>(symbol: 'CFSocketRegisterValue') +external int _CFSocketRegisterValue( + ffi.Pointer nameServerSignature, + double timeout, + CFStringRef name, + CFPropertyListRef value, +); + +CFSocketError CFSocketRegisterValue( + ffi.Pointer nameServerSignature, + DartCFTimeInterval timeout, + CFStringRef name, + CFPropertyListRef value, +) { + return CFSocketError.fromValue( + _CFSocketRegisterValue(nameServerSignature, timeout, name, value), + ); +} + +@ffi.Native< + CFIndex Function(CFSocketRef, CFDataRef, CFDataRef, CFTimeInterval) +>(symbol: 'CFSocketSendData') +external int _CFSocketSendData( + CFSocketRef s, + CFDataRef address, + CFDataRef data, + double timeout, +); + +CFSocketError CFSocketSendData( + CFSocketRef s, + CFDataRef address, + CFDataRef data, + DartCFTimeInterval timeout, +) { + return CFSocketError.fromValue(_CFSocketSendData(s, address, data, timeout)); +} + +@ffi.Native( + symbol: 'CFSocketSetAddress', +) +external int _CFSocketSetAddress(CFSocketRef s, CFDataRef address); + +CFSocketError CFSocketSetAddress(CFSocketRef s, CFDataRef address) { + return CFSocketError.fromValue(_CFSocketSetAddress(s, address)); +} + +@ffi.Native() +external void CFSocketSetDefaultNameRegistryPortNumber(int port); + +@ffi.Native() +external void CFSocketSetSocketFlags(CFSocketRef s, int flags); + +@ffi.Native< + CFIndex Function(ffi.Pointer, CFTimeInterval, CFStringRef) +>(symbol: 'CFSocketUnregister') +external int _CFSocketUnregister( + ffi.Pointer nameServerSignature, + double timeout, + CFStringRef name, +); + +CFSocketError CFSocketUnregister( + ffi.Pointer nameServerSignature, + DartCFTimeInterval timeout, + CFStringRef name, +) { + return CFSocketError.fromValue( + _CFSocketUnregister(nameServerSignature, timeout, name), + ); +} + +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>() +external void CFStreamCreateBoundPair( + CFAllocatorRef alloc, + ffi.Pointer readStream, + ffi.Pointer writeStream, + int transferBufferSize, +); + +@Deprecated('Use nw_connection_t in Network framework instead') +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStreamCreatePairWithPeerSocketSignature( + CFAllocatorRef alloc, + ffi.Pointer signature, + ffi.Pointer readStream, + ffi.Pointer writeStream, +); + +@Deprecated('Use nw_connection_t in Network framework instead') +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + CFSocketNativeHandle, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStreamCreatePairWithSocket( + CFAllocatorRef alloc, + int sock, + ffi.Pointer readStream, + ffi.Pointer writeStream, +); + +@Deprecated('Use Network framework instead') +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + CFHostRef, + SInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStreamCreatePairWithSocketToCFHost( + CFAllocatorRef alloc, + CFHostRef host, + int port, + ffi.Pointer readStream, + ffi.Pointer writeStream, +); + +@Deprecated('Use nw_connection_t in Network framework instead') +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + CFStringRef, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStreamCreatePairWithSocketToHost( + CFAllocatorRef alloc, + CFStringRef host, + int port, + ffi.Pointer readStream, + ffi.Pointer writeStream, +); + +@Deprecated('Use Network framework instead') +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + CFNetServiceRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStreamCreatePairWithSocketToNetService( + CFAllocatorRef alloc, + CFNetServiceRef service, + ffi.Pointer readStream, + ffi.Pointer writeStream, +); + +@ffi.Native() +external void CFStringAppend( + CFMutableStringRef theString, + CFStringRef appendedString, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFStringEncoding) +>() +external void CFStringAppendCString( + CFMutableStringRef theString, + ffi.Pointer cStr, + int encoding, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFIndex) +>() +external void CFStringAppendCharacters( + CFMutableStringRef theString, + ffi.Pointer chars, + int numChars, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef) +>() +external void CFStringAppendFormat( + CFMutableStringRef theString, + CFDictionaryRef formatOptions, + CFStringRef format, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef, va_list) +>() +external void CFStringAppendFormatAndArguments( + CFMutableStringRef theString, + CFDictionaryRef formatOptions, + CFStringRef format, + va_list arguments, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, ConstStr255Param, CFStringEncoding) +>() +external void CFStringAppendPascalString( + CFMutableStringRef theString, + ConstStr255Param pStr, + int encoding, +); + +@ffi.Native() +external void CFStringCapitalize( + CFMutableStringRef theString, + CFLocaleRef locale, +); + +@ffi.Native( + symbol: 'CFStringCompare', +) +external int _CFStringCompare( + CFStringRef theString1, + CFStringRef theString2, + int compareOptions, +); + +CFComparisonResult CFStringCompare( + CFStringRef theString1, + CFStringRef theString2, + DartCFOptionFlags compareOptions, +) { + return CFComparisonResult.fromValue( + _CFStringCompare(theString1, theString2, compareOptions), + ); +} + +@ffi.Native( + symbol: 'CFStringCompareWithOptions', +) +external int _CFStringCompareWithOptions( + CFStringRef theString1, + CFStringRef theString2, + CFRange rangeToCompare, + int compareOptions, +); + +CFComparisonResult CFStringCompareWithOptions( + CFStringRef theString1, + CFStringRef theString2, + CFRange rangeToCompare, + DartCFOptionFlags compareOptions, +) { + return CFComparisonResult.fromValue( + _CFStringCompareWithOptions( + theString1, + theString2, + rangeToCompare, + compareOptions, + ), + ); +} + +@ffi.Native< + CFIndex Function( + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + CFLocaleRef, + ) +>(symbol: 'CFStringCompareWithOptionsAndLocale') +external int _CFStringCompareWithOptionsAndLocale( + CFStringRef theString1, + CFStringRef theString2, + CFRange rangeToCompare, + int compareOptions, + CFLocaleRef locale, +); + +CFComparisonResult CFStringCompareWithOptionsAndLocale( + CFStringRef theString1, + CFStringRef theString2, + CFRange rangeToCompare, + DartCFOptionFlags compareOptions, + CFLocaleRef locale, +) { + return CFComparisonResult.fromValue( + _CFStringCompareWithOptionsAndLocale( + theString1, + theString2, + rangeToCompare, + compareOptions, + locale, + ), + ); +} + +@ffi.Native() +external CFStringRef CFStringConvertEncodingToIANACharSetName(int encoding); + +@ffi.Native() +external int CFStringConvertEncodingToNSStringEncoding(int encoding); + +@ffi.Native() +external int CFStringConvertEncodingToWindowsCodepage(int encoding); + +@ffi.Native() +external int CFStringConvertIANACharSetNameToEncoding(CFStringRef theString); + +@ffi.Native() +external int CFStringConvertNSStringEncodingToEncoding(int encoding); + +@ffi.Native() +external int CFStringConvertWindowsCodepageToEncoding(int codepage); + +@ffi.Native() +external CFArrayRef CFStringCreateArrayBySeparatingStrings( + CFAllocatorRef alloc, + CFStringRef theString, + CFStringRef separatorString, +); + +@ffi.Native< + CFArrayRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + ) +>() +external CFArrayRef CFStringCreateArrayWithFindResults( + CFAllocatorRef alloc, + CFStringRef theString, + CFStringRef stringToFind, + CFRange rangeToSearch, + int compareOptions, +); + +@ffi.Native() +external CFStringRef CFStringCreateByCombiningStrings( + CFAllocatorRef alloc, + CFArrayRef theArray, + CFStringRef separatorString, +); + +@ffi.Native() +external CFStringRef CFStringCreateCopy( + CFAllocatorRef alloc, + CFStringRef theString, +); + +@ffi.Native< + CFDataRef Function(CFAllocatorRef, CFStringRef, CFStringEncoding, UInt8) +>() +external CFDataRef CFStringCreateExternalRepresentation( + CFAllocatorRef alloc, + CFStringRef theString, + int encoding, + int lossByte, +); + +@ffi.Native() +external CFStringRef CFStringCreateFromExternalRepresentation( + CFAllocatorRef alloc, + CFDataRef data, + int encoding, +); + +@ffi.Native() +external CFMutableStringRef CFStringCreateMutable( + CFAllocatorRef alloc, + int maxLength, +); + +@ffi.Native() +external CFMutableStringRef CFStringCreateMutableCopy( + CFAllocatorRef alloc, + int maxLength, + CFStringRef theString, +); + +@ffi.Native< + CFMutableStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFIndex, + CFAllocatorRef, + ) +>() +external CFMutableStringRef CFStringCreateMutableWithExternalCharactersNoCopy( + CFAllocatorRef alloc, + ffi.Pointer chars, + int numChars, + int capacity, + CFAllocatorRef externalCharactersAllocator, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + CFDictionaryRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external CFStringRef CFStringCreateStringWithValidatedFormat( + CFAllocatorRef alloc, + CFDictionaryRef formatOptions, + CFStringRef validFormatSpecifiers, + CFStringRef format, + ffi.Pointer errorPtr, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + CFDictionaryRef, + CFStringRef, + CFStringRef, + va_list, + ffi.Pointer, + ) +>() +external CFStringRef CFStringCreateStringWithValidatedFormatAndArguments( + CFAllocatorRef alloc, + CFDictionaryRef formatOptions, + CFStringRef validFormatSpecifiers, + CFStringRef format, + va_list arguments, + ffi.Pointer errorPtr, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + Boolean, + ) +>() +external CFStringRef CFStringCreateWithBytes( + CFAllocatorRef alloc, + ffi.Pointer bytes, + int numBytes, + int encoding, + int isExternalRepresentation, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + Boolean, + CFAllocatorRef, + ) +>() +external CFStringRef CFStringCreateWithBytesNoCopy( + CFAllocatorRef alloc, + ffi.Pointer bytes, + int numBytes, + int encoding, + int isExternalRepresentation, + CFAllocatorRef contentsDeallocator, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFStringEncoding) +>() +external CFStringRef CFStringCreateWithCString( + CFAllocatorRef alloc, + ffi.Pointer cStr, + int encoding, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFStringEncoding, + CFAllocatorRef, + ) +>() +external CFStringRef CFStringCreateWithCStringNoCopy( + CFAllocatorRef alloc, + ffi.Pointer cStr, + int encoding, + CFAllocatorRef contentsDeallocator, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) +>() +external CFStringRef CFStringCreateWithCharacters( + CFAllocatorRef alloc, + ffi.Pointer chars, + int numChars, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorRef, + ) +>() +external CFStringRef CFStringCreateWithCharactersNoCopy( + CFAllocatorRef alloc, + ffi.Pointer chars, + int numChars, + CFAllocatorRef contentsDeallocator, +); + +@ffi.Native)>() +external CFStringRef CFStringCreateWithFileSystemRepresentation( + CFAllocatorRef alloc, + ffi.Pointer buffer, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef) +>() +external CFStringRef CFStringCreateWithFormat( + CFAllocatorRef alloc, + CFDictionaryRef formatOptions, + CFStringRef format, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef, va_list) +>() +external CFStringRef CFStringCreateWithFormatAndArguments( + CFAllocatorRef alloc, + CFDictionaryRef formatOptions, + CFStringRef format, + va_list arguments, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, ConstStr255Param, CFStringEncoding) +>() +external CFStringRef CFStringCreateWithPascalString( + CFAllocatorRef alloc, + ConstStr255Param pStr, + int encoding, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + ConstStr255Param, + CFStringEncoding, + CFAllocatorRef, + ) +>() +external CFStringRef CFStringCreateWithPascalStringNoCopy( + CFAllocatorRef alloc, + ConstStr255Param pStr, + int encoding, + CFAllocatorRef contentsDeallocator, +); + +@ffi.Native() +external CFStringRef CFStringCreateWithSubstring( + CFAllocatorRef alloc, + CFStringRef str, + CFRange range, +); + +@ffi.Native() +external void CFStringDelete(CFMutableStringRef theString, CFRange range); + +@ffi.Native() +external CFRange CFStringFind( + CFStringRef theString, + CFStringRef stringToFind, + int compareOptions, +); + +@ffi.Native< + CFIndex Function( + CFMutableStringRef, + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + ) +>() +external int CFStringFindAndReplace( + CFMutableStringRef theString, + CFStringRef stringToFind, + CFStringRef replacementString, + CFRange rangeToSearch, + int compareOptions, +); + +@ffi.Native< + Boolean Function( + CFStringRef, + CFCharacterSetRef, + CFRange, + CFOptionFlags, + ffi.Pointer, + ) +>() +external int CFStringFindCharacterFromSet( + CFStringRef theString, + CFCharacterSetRef theSet, + CFRange rangeToSearch, + int searchOptions, + ffi.Pointer result, +); + +@ffi.Native< + Boolean Function( + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + ffi.Pointer, + ) +>() +external int CFStringFindWithOptions( + CFStringRef theString, + CFStringRef stringToFind, + CFRange rangeToSearch, + int searchOptions, + ffi.Pointer result, +); + +@ffi.Native< + Boolean Function( + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + CFLocaleRef, + ffi.Pointer, + ) +>() +external int CFStringFindWithOptionsAndLocale( + CFStringRef theString, + CFStringRef stringToFind, + CFRange rangeToSearch, + int searchOptions, + CFLocaleRef locale, + ffi.Pointer result, +); + +@ffi.Native() +external void CFStringFold( + CFMutableStringRef theString, + int theFlags, + CFLocaleRef theLocale, +); + +@ffi.Native< + CFIndex Function( + CFStringRef, + CFRange, + CFStringEncoding, + UInt8, + Boolean, + ffi.Pointer, + CFIndex, + ffi.Pointer, + ) +>() +external int CFStringGetBytes( + CFStringRef theString, + CFRange range, + int encoding, + int lossByte, + int isExternalRepresentation, + ffi.Pointer buffer, + int maxBufLen, + ffi.Pointer usedBufLen, +); + +@ffi.Native< + Boolean Function( + CFStringRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + ) +>() +external int CFStringGetCString( + CFStringRef theString, + ffi.Pointer buffer, + int bufferSize, + int encoding, +); + +@ffi.Native Function(CFStringRef, CFStringEncoding)>() +external ffi.Pointer CFStringGetCStringPtr( + CFStringRef theString, + int encoding, +); + +@ffi.Native() +external int CFStringGetCharacterAtIndex(CFStringRef theString, int idx); + +@ffi.Native)>() +external void CFStringGetCharacters( + CFStringRef theString, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native Function(CFStringRef)>() +external ffi.Pointer CFStringGetCharactersPtr(CFStringRef theString); + +@ffi.Native() +external double CFStringGetDoubleValue(CFStringRef str); + +@ffi.Native() +external int CFStringGetFastestEncoding(CFStringRef theString); + +@ffi.Native, CFIndex)>() +external int CFStringGetFileSystemRepresentation( + CFStringRef string, + ffi.Pointer buffer, + int maxBufLen, +); + +@ffi.Native< + CFIndex Function( + CFStringRef, + CFIndex, + CFRange, + CFOptionFlags, + CFLocaleRef, + ffi.Pointer, + ) +>() +external int CFStringGetHyphenationLocationBeforeIndex( + CFStringRef string, + int location, + CFRange limitRange, + int options, + CFLocaleRef locale, + ffi.Pointer character, +); + +@ffi.Native() +external int CFStringGetIntValue(CFStringRef str); + +@ffi.Native() +external int CFStringGetLength(CFStringRef theString); + +@ffi.Native< + ffi.Void Function( + CFStringRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStringGetLineBounds( + CFStringRef theString, + CFRange range, + ffi.Pointer lineBeginIndex, + ffi.Pointer lineEndIndex, + ffi.Pointer contentsEndIndex, +); + +@ffi.Native Function()>() +external ffi.Pointer CFStringGetListOfAvailableEncodings(); + +@ffi.Native() +external int CFStringGetMaximumSizeForEncoding(int length, int encoding); + +@ffi.Native() +external int CFStringGetMaximumSizeOfFileSystemRepresentation( + CFStringRef string, +); + +@ffi.Native() +external int CFStringGetMostCompatibleMacStringEncoding(int encoding); + +@ffi.Native() +external CFStringRef CFStringGetNameOfEncoding(int encoding); + +@ffi.Native< + ffi.Void Function( + CFStringRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStringGetParagraphBounds( + CFStringRef string, + CFRange range, + ffi.Pointer parBeginIndex, + ffi.Pointer parEndIndex, + ffi.Pointer contentsEndIndex, +); + +@ffi.Native< + Boolean Function(CFStringRef, StringPtr, CFIndex, CFStringEncoding) +>() +external int CFStringGetPascalString( + CFStringRef theString, + StringPtr buffer, + int bufferSize, + int encoding, +); + +@ffi.Native() +external ConstStringPtr CFStringGetPascalStringPtr( + CFStringRef theString, + int encoding, +); + +@ffi.Native() +external CFRange CFStringGetRangeOfComposedCharactersAtIndex( + CFStringRef theString, + int theIndex, +); + +@ffi.Native() +external int CFStringGetSmallestEncoding(CFStringRef theString); + +@ffi.Native() +external int CFStringGetSystemEncoding(); + +@ffi.Native() +external int CFStringGetTypeID(); + +@ffi.Native() +external int CFStringHasPrefix(CFStringRef theString, CFStringRef prefix); + +@ffi.Native() +external int CFStringHasSuffix(CFStringRef theString, CFStringRef suffix); + +@ffi.Native() +external void CFStringInsert( + CFMutableStringRef str, + int idx, + CFStringRef insertedStr, +); + +@ffi.Native() +external int CFStringIsEncodingAvailable(int encoding); + +@ffi.Native() +external int CFStringIsHyphenationAvailableForLocale(CFLocaleRef locale); + +@ffi.Native() +external void CFStringLowercase( + CFMutableStringRef theString, + CFLocaleRef locale, +); + +@ffi.Native( + symbol: 'CFStringNormalize', +) +external void _CFStringNormalize(CFMutableStringRef theString, int theForm); + +void CFStringNormalize( + CFMutableStringRef theString, + CFStringNormalizationForm theForm, +) { + return _CFStringNormalize(theString, theForm.value); +} + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, CFStringRef, CFIndex, CFIndex) +>() +external void CFStringPad( + CFMutableStringRef theString, + CFStringRef padString, + int length, + int indexIntoPad, +); + +@ffi.Native() +external void CFStringReplace( + CFMutableStringRef theString, + CFRange range, + CFStringRef replacement, +); + +@ffi.Native() +external void CFStringReplaceAll( + CFMutableStringRef theString, + CFStringRef replacement, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFIndex, CFIndex) +>() +external void CFStringSetExternalCharactersNoCopy( + CFMutableStringRef theString, + ffi.Pointer chars, + int length, + int capacity, +); + +@ffi.Native() +external int CFStringTokenizerAdvanceToNextToken( + CFStringTokenizerRef tokenizer, +); + +@ffi.Native() +external CFStringRef CFStringTokenizerCopyBestStringLanguage( + CFStringRef string, + CFRange range, +); + +@ffi.Native() +external CFTypeRef CFStringTokenizerCopyCurrentTokenAttribute( + CFStringTokenizerRef tokenizer, + int attribute, +); + +@ffi.Native< + CFStringTokenizerRef Function( + CFAllocatorRef, + CFStringRef, + CFRange, + CFOptionFlags, + CFLocaleRef, + ) +>() +external CFStringTokenizerRef CFStringTokenizerCreate( + CFAllocatorRef alloc, + CFStringRef string, + CFRange range, + int options, + CFLocaleRef locale, +); + +@ffi.Native< + CFIndex Function( + CFStringTokenizerRef, + ffi.Pointer, + CFIndex, + CFMutableArrayRef, + ) +>() +external int CFStringTokenizerGetCurrentSubTokens( + CFStringTokenizerRef tokenizer, + ffi.Pointer ranges, + int maxRangeLength, + CFMutableArrayRef derivedSubTokens, +); + +@ffi.Native() +external CFRange CFStringTokenizerGetCurrentTokenRange( + CFStringTokenizerRef tokenizer, +); + +@ffi.Native() +external int CFStringTokenizerGetTypeID(); + +@ffi.Native() +external int CFStringTokenizerGoToTokenAtIndex( + CFStringTokenizerRef tokenizer, + int index$1, +); + +@ffi.Native() +external void CFStringTokenizerSetString( + CFStringTokenizerRef tokenizer, + CFStringRef string, + CFRange range, +); + +@ffi.Native< + Boolean Function( + CFMutableStringRef, + ffi.Pointer, + CFStringRef, + Boolean, + ) +>() +external int CFStringTransform( + CFMutableStringRef string, + ffi.Pointer range, + CFStringRef transform, + int reverse, +); + +@ffi.Native() +external void CFStringTrim( + CFMutableStringRef theString, + CFStringRef trimString, +); + +@ffi.Native() +external void CFStringTrimWhitespace(CFMutableStringRef theString); + +@ffi.Native() +external void CFStringUppercase( + CFMutableStringRef theString, + CFLocaleRef locale, +); + +@ffi.Native() +external CFStringRef CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz, double at); + +@ffi.Native() +external CFDictionaryRef CFTimeZoneCopyAbbreviationDictionary(); + +@ffi.Native() +external CFTimeZoneRef CFTimeZoneCopyDefault(); + +@ffi.Native() +external CFArrayRef CFTimeZoneCopyKnownNames(); + +@ffi.Native( + symbol: 'CFTimeZoneCopyLocalizedName', +) +external CFStringRef _CFTimeZoneCopyLocalizedName( + CFTimeZoneRef tz, + int style, + CFLocaleRef locale, +); + +CFStringRef CFTimeZoneCopyLocalizedName( + CFTimeZoneRef tz, + CFTimeZoneNameStyle style, + CFLocaleRef locale, +) { + return _CFTimeZoneCopyLocalizedName(tz, style.value, locale); +} + +@ffi.Native() +external CFTimeZoneRef CFTimeZoneCopySystem(); + +@ffi.Native() +external CFTimeZoneRef CFTimeZoneCreate( + CFAllocatorRef allocator, + CFStringRef name, + CFDataRef data, +); + +@ffi.Native() +external CFTimeZoneRef CFTimeZoneCreateWithName( + CFAllocatorRef allocator, + CFStringRef name, + int tryAbbrev, +); + +@ffi.Native() +external CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT( + CFAllocatorRef allocator, + double ti, +); + +@ffi.Native() +external CFDataRef CFTimeZoneGetData(CFTimeZoneRef tz); + +@ffi.Native() +external double CFTimeZoneGetDaylightSavingTimeOffset( + CFTimeZoneRef tz, + double at, +); + +@ffi.Native() +external CFStringRef CFTimeZoneGetName(CFTimeZoneRef tz); + +@ffi.Native() +external double CFTimeZoneGetNextDaylightSavingTimeTransition( + CFTimeZoneRef tz, + double at, +); + +@ffi.Native() +external double CFTimeZoneGetSecondsFromGMT(CFTimeZoneRef tz, double at); + +@ffi.Native() +external int CFTimeZoneGetTypeID(); + +@ffi.Native() +external int CFTimeZoneIsDaylightSavingTime(CFTimeZoneRef tz, double at); + +@ffi.Native() +external void CFTimeZoneResetSystem(); + +@ffi.Native() +external void CFTimeZoneSetAbbreviationDictionary(CFDictionaryRef dict); + +@ffi.Native() +external void CFTimeZoneSetDefault(CFTimeZoneRef tz); + +@ffi.Native() +external void CFTreeAppendChild(CFTreeRef tree, CFTreeRef newChild); + +@ffi.Native< + ffi.Void Function(CFTreeRef, CFTreeApplierFunction, ffi.Pointer) +>() +external void CFTreeApplyFunctionToChildren( + CFTreeRef tree, + CFTreeApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native)>() +external CFTreeRef CFTreeCreate( + CFAllocatorRef allocator, + ffi.Pointer context, +); + +@ffi.Native() +external CFTreeRef CFTreeFindRoot(CFTreeRef tree); + +@ffi.Native() +external CFTreeRef CFTreeGetChildAtIndex(CFTreeRef tree, int idx); + +@ffi.Native() +external int CFTreeGetChildCount(CFTreeRef tree); + +@ffi.Native)>() +external void CFTreeGetChildren( + CFTreeRef tree, + ffi.Pointer children, +); + +@ffi.Native)>() +external void CFTreeGetContext( + CFTreeRef tree, + ffi.Pointer context, +); + +@ffi.Native() +external CFTreeRef CFTreeGetFirstChild(CFTreeRef tree); + +@ffi.Native() +external CFTreeRef CFTreeGetNextSibling(CFTreeRef tree); + +@ffi.Native() +external CFTreeRef CFTreeGetParent(CFTreeRef tree); + +@ffi.Native() +external int CFTreeGetTypeID(); + +@ffi.Native() +external void CFTreeInsertSibling(CFTreeRef tree, CFTreeRef newSibling); + +@ffi.Native() +external void CFTreePrependChild(CFTreeRef tree, CFTreeRef newChild); + +@ffi.Native() +external void CFTreeRemove(CFTreeRef tree); + +@ffi.Native() +external void CFTreeRemoveAllChildren(CFTreeRef tree); + +@ffi.Native)>() +external void CFTreeSetContext( + CFTreeRef tree, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Void Function(CFTreeRef, CFComparatorFunction, ffi.Pointer) +>() +external void CFTreeSortChildren( + CFTreeRef tree, + CFComparatorFunction comparator, + ffi.Pointer context, +); + +@ffi.Native() +external int CFURLCanBeDecomposed(CFURLRef anURL); + +@ffi.Native() +external void CFURLClearResourcePropertyCache(CFURLRef url); + +@ffi.Native() +external void CFURLClearResourcePropertyCacheForKey( + CFURLRef url, + CFStringRef key, +); + +@ffi.Native() +external CFURLRef CFURLCopyAbsoluteURL(CFURLRef relativeURL); + +@ffi.Native( + symbol: 'CFURLCopyFileSystemPath', +) +external CFStringRef _CFURLCopyFileSystemPath(CFURLRef anURL, int pathStyle); + +CFStringRef CFURLCopyFileSystemPath(CFURLRef anURL, CFURLPathStyle pathStyle) { + return _CFURLCopyFileSystemPath(anURL, pathStyle.value); +} + +@ffi.Native() +external CFStringRef CFURLCopyFragment( + CFURLRef anURL, + CFStringRef charactersToLeaveEscaped, +); + +@ffi.Native() +external CFStringRef CFURLCopyHostName(CFURLRef anURL); + +@ffi.Native() +external CFStringRef CFURLCopyLastPathComponent(CFURLRef url); + +@ffi.Native() +external CFStringRef CFURLCopyNetLocation(CFURLRef anURL); + +@Deprecated( + 'The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them.', +) +@ffi.Native() +external CFStringRef CFURLCopyParameterString( + CFURLRef anURL, + CFStringRef charactersToLeaveEscaped, +); + +@ffi.Native() +external CFStringRef CFURLCopyPassword(CFURLRef anURL); + +@ffi.Native() +external CFStringRef CFURLCopyPath(CFURLRef anURL); + +@ffi.Native() +external CFStringRef CFURLCopyPathExtension(CFURLRef url); + +@ffi.Native() +external CFStringRef CFURLCopyQueryString( + CFURLRef anURL, + CFStringRef charactersToLeaveEscaped, +); + +@ffi.Native< + CFDictionaryRef Function(CFURLRef, CFArrayRef, ffi.Pointer) +>() +external CFDictionaryRef CFURLCopyResourcePropertiesForKeys( + CFURLRef url, + CFArrayRef keys, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function( + CFURLRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CFURLCopyResourcePropertyForKey( + CFURLRef url, + CFStringRef key, + ffi.Pointer propertyValueTypeRefPtr, + ffi.Pointer error, +); + +@ffi.Native() +external CFStringRef CFURLCopyResourceSpecifier(CFURLRef anURL); + +@ffi.Native() +external CFStringRef CFURLCopyScheme(CFURLRef anURL); + +@ffi.Native)>() +external CFStringRef CFURLCopyStrictPath( + CFURLRef anURL, + ffi.Pointer isAbsolute, +); + +@ffi.Native() +external CFStringRef CFURLCopyUserName(CFURLRef anURL); + +@ffi.Native< + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + CFURLRef, + Boolean, + ) +>() +external CFURLRef CFURLCreateAbsoluteURLWithBytes( + CFAllocatorRef alloc, + ffi.Pointer relativeURLBytes, + int length, + int encoding, + CFURLRef baseURL, + int useCompatibilityMode, +); + +@ffi.Native< + CFDataRef Function( + CFAllocatorRef, + CFURLRef, + CFOptionFlags, + CFArrayRef, + CFURLRef, + ffi.Pointer, + ) +>() +external CFDataRef CFURLCreateBookmarkData( + CFAllocatorRef allocator, + CFURLRef url, + int options, + CFArrayRef resourcePropertiesToInclude, + CFURLRef relativeToURL, + ffi.Pointer error, +); + +@Deprecated( + 'The Carbon Alias Manager is deprecated. This function should only be used to convert Carbon AliasRecords to bookmark data.', +) +@ffi.Native() +external CFDataRef CFURLCreateBookmarkDataFromAliasRecord( + CFAllocatorRef allocatorRef, + CFDataRef aliasRecordDataRef, +); + +@ffi.Native< + CFDataRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) +>() +external CFDataRef CFURLCreateBookmarkDataFromFile( + CFAllocatorRef allocator, + CFURLRef fileURL, + ffi.Pointer errorRef, +); + +@ffi.Native< + CFURLRef Function( + CFAllocatorRef, + CFDataRef, + CFOptionFlags, + CFURLRef, + CFArrayRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFURLRef CFURLCreateByResolvingBookmarkData( + CFAllocatorRef allocator, + CFDataRef bookmark, + int options, + CFURLRef relativeToURL, + CFArrayRef resourcePropertiesToInclude, + ffi.Pointer isStale, + ffi.Pointer error, +); + +@ffi.Native() +external CFURLRef CFURLCreateCopyAppendingPathComponent( + CFAllocatorRef allocator, + CFURLRef url, + CFStringRef pathComponent, + int isDirectory, +); + +@ffi.Native() +external CFURLRef CFURLCreateCopyAppendingPathExtension( + CFAllocatorRef allocator, + CFURLRef url, + CFStringRef extension, +); + +@ffi.Native() +external CFURLRef CFURLCreateCopyDeletingLastPathComponent( + CFAllocatorRef allocator, + CFURLRef url, +); + +@ffi.Native() +external CFURLRef CFURLCreateCopyDeletingPathExtension( + CFAllocatorRef allocator, + CFURLRef url, +); + +@ffi.Native< + CFDataRef Function(CFAllocatorRef, CFURLRef, CFStringEncoding, Boolean) +>() +external CFDataRef CFURLCreateData( + CFAllocatorRef allocator, + CFURLRef url, + int encoding, + int escapeWhitespace, +); + +@Deprecated( + 'For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys.', +) +@ffi.Native< + Boolean Function( + CFAllocatorRef, + CFURLRef, + ffi.Pointer, + ffi.Pointer, + CFArrayRef, + ffi.Pointer, + ) +>() +external int CFURLCreateDataAndPropertiesFromResource( + CFAllocatorRef alloc, + CFURLRef url, + ffi.Pointer resourceData, + ffi.Pointer properties, + CFArrayRef desiredProperties, + ffi.Pointer errorCode, +); + +@ffi.Native< + CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) +>() +external CFURLRef CFURLCreateFilePathURL( + CFAllocatorRef allocator, + CFURLRef url, + ffi.Pointer error, +); + +@ffi.Native< + CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) +>() +external CFURLRef CFURLCreateFileReferenceURL( + CFAllocatorRef allocator, + CFURLRef url, + ffi.Pointer error, +); + +@Deprecated('Not supported') +@ffi.Native)>() +external CFURLRef CFURLCreateFromFSRef( + CFAllocatorRef allocator, + ffi.Pointer fsRef, +); + +@ffi.Native< + CFURLRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, Boolean) +>() +external CFURLRef CFURLCreateFromFileSystemRepresentation( + CFAllocatorRef allocator, + ffi.Pointer buffer, + int bufLen, + int isDirectory, +); + +@ffi.Native< + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + Boolean, + CFURLRef, + ) +>() +external CFURLRef CFURLCreateFromFileSystemRepresentationRelativeToBase( + CFAllocatorRef allocator, + ffi.Pointer buffer, + int bufLen, + int isDirectory, + CFURLRef baseURL, +); + +@Deprecated( + 'For file resource properties, use CFURLCopyResourcePropertyForKey.', +) +@ffi.Native< + CFTypeRef Function(CFAllocatorRef, CFURLRef, CFStringRef, ffi.Pointer) +>() +external CFTypeRef CFURLCreatePropertyFromResource( + CFAllocatorRef alloc, + CFURLRef url, + CFStringRef property, + ffi.Pointer errorCode, +); + +@ffi.Native() +external CFDictionaryRef CFURLCreateResourcePropertiesForKeysFromBookmarkData( + CFAllocatorRef allocator, + CFArrayRef resourcePropertiesToReturn, + CFDataRef bookmark, +); + +@ffi.Native() +external CFTypeRef CFURLCreateResourcePropertyForKeyFromBookmarkData( + CFAllocatorRef allocator, + CFStringRef resourcePropertyKey, + CFDataRef bookmark, +); + +@Deprecated( + 'Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid).', +) +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringEncoding, + ) +>() +external CFStringRef CFURLCreateStringByAddingPercentEscapes( + CFAllocatorRef allocator, + CFStringRef originalString, + CFStringRef charactersToLeaveUnescaped, + CFStringRef legalURLCharactersToBeEscaped, + int encoding, +); + +@ffi.Native() +external CFStringRef CFURLCreateStringByReplacingPercentEscapes( + CFAllocatorRef allocator, + CFStringRef originalString, + CFStringRef charactersToLeaveEscaped, +); + +@Deprecated( + 'Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding.', +) +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFStringEncoding, + ) +>() +external CFStringRef CFURLCreateStringByReplacingPercentEscapesUsingEncoding( + CFAllocatorRef allocator, + CFStringRef origString, + CFStringRef charsToLeaveEscaped, + int encoding, +); + +@ffi.Native< + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + CFURLRef, + ) +>() +external CFURLRef CFURLCreateWithBytes( + CFAllocatorRef allocator, + ffi.Pointer URLBytes, + int length, + int encoding, + CFURLRef baseURL, +); + +@ffi.Native( + symbol: 'CFURLCreateWithFileSystemPath', +) +external CFURLRef _CFURLCreateWithFileSystemPath( + CFAllocatorRef allocator, + CFStringRef filePath, + int pathStyle, + int isDirectory, +); + +CFURLRef CFURLCreateWithFileSystemPath( + CFAllocatorRef allocator, + CFStringRef filePath, + CFURLPathStyle pathStyle, + DartBoolean isDirectory, +) { + return _CFURLCreateWithFileSystemPath( + allocator, + filePath, + pathStyle.value, + isDirectory, + ); +} + +@ffi.Native< + CFURLRef Function(CFAllocatorRef, CFStringRef, CFIndex, Boolean, CFURLRef) +>(symbol: 'CFURLCreateWithFileSystemPathRelativeToBase') +external CFURLRef _CFURLCreateWithFileSystemPathRelativeToBase( + CFAllocatorRef allocator, + CFStringRef filePath, + int pathStyle, + int isDirectory, + CFURLRef baseURL, +); + +CFURLRef CFURLCreateWithFileSystemPathRelativeToBase( + CFAllocatorRef allocator, + CFStringRef filePath, + CFURLPathStyle pathStyle, + DartBoolean isDirectory, + CFURLRef baseURL, +) { + return _CFURLCreateWithFileSystemPathRelativeToBase( + allocator, + filePath, + pathStyle.value, + isDirectory, + baseURL, + ); +} + +@ffi.Native() +external CFURLRef CFURLCreateWithString( + CFAllocatorRef allocator, + CFStringRef URLString, + CFURLRef baseURL, +); + +@Deprecated('Use CFURLGetFileSystemRepresentation and removefile(3) instead.') +@ffi.Native)>() +external int CFURLDestroyResource(CFURLRef url, ffi.Pointer errorCode); + +@ffi.Native< + CFURLEnumeratorRef Function( + CFAllocatorRef, + CFURLRef, + CFOptionFlags, + CFArrayRef, + ) +>() +external CFURLEnumeratorRef CFURLEnumeratorCreateForDirectoryURL( + CFAllocatorRef alloc, + CFURLRef directoryURL, + int option, + CFArrayRef propertyKeys, +); + +@ffi.Native< + CFURLEnumeratorRef Function(CFAllocatorRef, CFOptionFlags, CFArrayRef) +>() +external CFURLEnumeratorRef CFURLEnumeratorCreateForMountedVolumes( + CFAllocatorRef alloc, + int option, + CFArrayRef propertyKeys, +); + +@ffi.Native() +external int CFURLEnumeratorGetDescendentLevel(CFURLEnumeratorRef enumerator); + +@ffi.Native< + CFIndex Function( + CFURLEnumeratorRef, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CFURLEnumeratorGetNextURL') +external int _CFURLEnumeratorGetNextURL( + CFURLEnumeratorRef enumerator, + ffi.Pointer url, + ffi.Pointer error, +); + +CFURLEnumeratorResult CFURLEnumeratorGetNextURL( + CFURLEnumeratorRef enumerator, + ffi.Pointer url, + ffi.Pointer error, +) { + return CFURLEnumeratorResult.fromValue( + _CFURLEnumeratorGetNextURL(enumerator, url, error), + ); +} + +@Deprecated('Use File System Events API instead') +@ffi.Native() +external int CFURLEnumeratorGetSourceDidChange(CFURLEnumeratorRef enumerator); + +@ffi.Native() +external int CFURLEnumeratorGetTypeID(); + +@ffi.Native() +external void CFURLEnumeratorSkipDescendents(CFURLEnumeratorRef enumerator); + +@ffi.Native() +external CFURLRef CFURLGetBaseURL(CFURLRef anURL); + +@ffi.Native)>( + symbol: 'CFURLGetByteRangeForComponent', +) +external CFRange _CFURLGetByteRangeForComponent( + CFURLRef url, + int component, + ffi.Pointer rangeIncludingSeparators, +); + +CFRange CFURLGetByteRangeForComponent( + CFURLRef url, + CFURLComponentType component, + ffi.Pointer rangeIncludingSeparators, +) { + return _CFURLGetByteRangeForComponent( + url, + component.value, + rangeIncludingSeparators, + ); +} + +@ffi.Native, CFIndex)>() +external int CFURLGetBytes( + CFURLRef url, + ffi.Pointer buffer, + int bufferLength, +); + +@Deprecated('Not supported') +@ffi.Native)>() +external int CFURLGetFSRef(CFURLRef url, ffi.Pointer fsRef); + +@ffi.Native, CFIndex)>() +external int CFURLGetFileSystemRepresentation( + CFURLRef url, + int resolveAgainstBase, + ffi.Pointer buffer, + int maxBufLen, +); + +@ffi.Native() +external int CFURLGetPortNumber(CFURLRef anURL); + +@ffi.Native() +external CFStringRef CFURLGetString(CFURLRef anURL); + +@ffi.Native() +external int CFURLGetTypeID(); + +@ffi.Native() +external int CFURLHasDirectoryPath(CFURLRef anURL); + +@ffi.Native() +external int CFURLIsFileReferenceURL(CFURLRef url); + +@ffi.Native)>() +external int CFURLResourceIsReachable( + CFURLRef url, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function(CFURLRef, CFDictionaryRef, ffi.Pointer) +>() +external int CFURLSetResourcePropertiesForKeys( + CFURLRef url, + CFDictionaryRef keyedPropertyValues, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function(CFURLRef, CFStringRef, CFTypeRef, ffi.Pointer) +>() +external int CFURLSetResourcePropertyForKey( + CFURLRef url, + CFStringRef key, + CFTypeRef propertyValue, + ffi.Pointer error, +); + +@ffi.Native() +external void CFURLSetTemporaryResourcePropertyForKey( + CFURLRef url, + CFStringRef key, + CFTypeRef propertyValue, +); + +@ffi.Native() +external int CFURLStartAccessingSecurityScopedResource(CFURLRef url); + +@ffi.Native() +external void CFURLStopAccessingSecurityScopedResource(CFURLRef url); + +@ffi.Native< + Boolean Function( + CFDataRef, + CFURLRef, + CFURLBookmarkFileCreationOptions, + ffi.Pointer, + ) +>() +external int CFURLWriteBookmarkDataToFile( + CFDataRef bookmarkRef, + CFURLRef fileURL, + int options, + ffi.Pointer errorRef, +); + +@Deprecated( + 'For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys.', +) +@ffi.Native< + Boolean Function(CFURLRef, CFDataRef, CFDictionaryRef, ffi.Pointer) +>() +external int CFURLWriteDataAndPropertiesToResource( + CFURLRef url, + CFDataRef dataToWrite, + CFDictionaryRef propertiesToWrite, + ffi.Pointer errorCode, +); + +@ffi.Native() +external CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc); + +@ffi.Native() +external CFUUIDRef CFUUIDCreateFromString( + CFAllocatorRef alloc, + CFStringRef uuidStr, +); + +@ffi.Native() +external CFUUIDRef CFUUIDCreateFromUUIDBytes( + CFAllocatorRef alloc, + CFUUIDBytes bytes, +); + +@ffi.Native() +external CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid); + +@ffi.Native< + CFUUIDRef Function( + CFAllocatorRef, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + ) +>() +external CFUUIDRef CFUUIDCreateWithBytes( + CFAllocatorRef alloc, + int byte0, + int byte1, + int byte2, + int byte3, + int byte4, + int byte5, + int byte6, + int byte7, + int byte8, + int byte9, + int byte10, + int byte11, + int byte12, + int byte13, + int byte14, + int byte15, +); + +@ffi.Native< + CFUUIDRef Function( + CFAllocatorRef, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + ) +>() +external CFUUIDRef CFUUIDGetConstantUUIDWithBytes( + CFAllocatorRef alloc, + int byte0, + int byte1, + int byte2, + int byte3, + int byte4, + int byte5, + int byte6, + int byte7, + int byte8, + int byte9, + int byte10, + int byte11, + int byte12, + int byte13, + int byte14, + int byte15, +); + +@ffi.Native() +external int CFUUIDGetTypeID(); + +@ffi.Native() +external CFUUIDBytes CFUUIDGetUUIDBytes(CFUUIDRef uuid); + +@ffi.Native() +external int CFUserNotificationCancel(CFUserNotificationRef userNotification); + +@ffi.Native< + CFUserNotificationRef Function( + CFAllocatorRef, + CFTimeInterval, + CFOptionFlags, + ffi.Pointer, + CFDictionaryRef, + ) +>() +external CFUserNotificationRef CFUserNotificationCreate( + CFAllocatorRef allocator, + double timeout, + int flags, + ffi.Pointer error, + CFDictionaryRef dictionary, +); + +@ffi.Native< + CFRunLoopSourceRef Function( + CFAllocatorRef, + CFUserNotificationRef, + CFUserNotificationCallBack, + CFIndex, + ) +>() +external CFRunLoopSourceRef CFUserNotificationCreateRunLoopSource( + CFAllocatorRef allocator, + CFUserNotificationRef userNotification, + CFUserNotificationCallBack callout, + int order, +); + +@ffi.Native< + SInt32 Function( + CFTimeInterval, + CFOptionFlags, + CFURLRef, + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external int CFUserNotificationDisplayAlert( + double timeout, + int flags, + CFURLRef iconURL, + CFURLRef soundURL, + CFURLRef localizationURL, + CFStringRef alertHeader, + CFStringRef alertMessage, + CFStringRef defaultButtonTitle, + CFStringRef alternateButtonTitle, + CFStringRef otherButtonTitle, + ffi.Pointer responseFlags, +); + +@ffi.Native< + SInt32 Function( + CFTimeInterval, + CFOptionFlags, + CFURLRef, + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) +>() +external int CFUserNotificationDisplayNotice( + double timeout, + int flags, + CFURLRef iconURL, + CFURLRef soundURL, + CFURLRef localizationURL, + CFStringRef alertHeader, + CFStringRef alertMessage, + CFStringRef defaultButtonTitle, +); + +@ffi.Native() +external CFDictionaryRef CFUserNotificationGetResponseDictionary( + CFUserNotificationRef userNotification, +); + +@ffi.Native() +external CFStringRef CFUserNotificationGetResponseValue( + CFUserNotificationRef userNotification, + CFStringRef key, + int idx, +); + +@ffi.Native() +external int CFUserNotificationGetTypeID(); + +@ffi.Native< + SInt32 Function( + CFUserNotificationRef, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int CFUserNotificationReceiveResponse( + CFUserNotificationRef userNotification, + double timeout, + ffi.Pointer responseFlags, +); + +@ffi.Native< + SInt32 Function( + CFUserNotificationRef, + CFTimeInterval, + CFOptionFlags, + CFDictionaryRef, + ) +>() +external int CFUserNotificationUpdate( + CFUserNotificationRef userNotification, + double timeout, + int flags, + CFDictionaryRef dictionary, +); + +@ffi.Native() +external int CFWriteStreamCanAcceptBytes(CFWriteStreamRef stream); + +@ffi.Native() +external void CFWriteStreamClose(CFWriteStreamRef stream); + +@ffi.Native( + symbol: 'CFWriteStreamCopyDispatchQueue', +) +external dispatch_queue_t _CFWriteStreamCopyDispatchQueue( + CFWriteStreamRef stream, +); + +Dartdispatch_queue_t CFWriteStreamCopyDispatchQueue(CFWriteStreamRef stream) { + return objc.NSObject.fromPointer( + _CFWriteStreamCopyDispatchQueue(stream), + retain: true, + release: true, + ); +} + +@ffi.Native() +external CFErrorRef CFWriteStreamCopyError(CFWriteStreamRef stream); + +@ffi.Native() +external CFTypeRef CFWriteStreamCopyProperty( + CFWriteStreamRef stream, + CFStreamPropertyKey propertyName, +); + +@ffi.Native() +external CFWriteStreamRef CFWriteStreamCreateWithAllocatedBuffers( + CFAllocatorRef alloc, + CFAllocatorRef bufferAllocator, +); + +@ffi.Native< + CFWriteStreamRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) +>() +external CFWriteStreamRef CFWriteStreamCreateWithBuffer( + CFAllocatorRef alloc, + ffi.Pointer buffer, + int bufferCapacity, +); + +@Deprecated('Use NSURLSessionAPI for ftp requests') +@ffi.Native() +external CFWriteStreamRef CFWriteStreamCreateWithFTPURL( + CFAllocatorRef alloc, + CFURLRef ftpURL, +); + +@ffi.Native() +external CFWriteStreamRef CFWriteStreamCreateWithFile( + CFAllocatorRef alloc, + CFURLRef fileURL, +); + +@ffi.Native() +external CFStreamError CFWriteStreamGetError(CFWriteStreamRef stream); + +@ffi.Native( + symbol: 'CFWriteStreamGetStatus', +) +external int _CFWriteStreamGetStatus(CFWriteStreamRef stream); + +CFStreamStatus CFWriteStreamGetStatus(CFWriteStreamRef stream) { + return CFStreamStatus.fromValue(_CFWriteStreamGetStatus(stream)); +} + +@ffi.Native() +external int CFWriteStreamGetTypeID(); + +@ffi.Native() +external int CFWriteStreamOpen(CFWriteStreamRef stream); + +@ffi.Native() +external void CFWriteStreamScheduleWithRunLoop( + CFWriteStreamRef stream, + CFRunLoopRef runLoop, + CFRunLoopMode runLoopMode, +); + +@ffi.Native< + Boolean Function( + CFWriteStreamRef, + CFOptionFlags, + CFWriteStreamClientCallBack, + ffi.Pointer, + ) +>() +external int CFWriteStreamSetClient( + CFWriteStreamRef stream, + int streamEvents, + CFWriteStreamClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@ffi.Native( + symbol: 'CFWriteStreamSetDispatchQueue', +) +external void _CFWriteStreamSetDispatchQueue( + CFWriteStreamRef stream, + dispatch_queue_t q, +); + +void CFWriteStreamSetDispatchQueue( + CFWriteStreamRef stream, + Dartdispatch_queue_t q, +) { + final _$$ref = q.ref; + return _CFWriteStreamSetDispatchQueue(stream, _$$ref.pointer); +} + +@ffi.Native< + Boolean Function(CFWriteStreamRef, CFStreamPropertyKey, CFTypeRef) +>() +external int CFWriteStreamSetProperty( + CFWriteStreamRef stream, + CFStreamPropertyKey propertyName, + CFTypeRef propertyValue, +); + +@ffi.Native() +external void CFWriteStreamUnscheduleFromRunLoop( + CFWriteStreamRef stream, + CFRunLoopRef runLoop, + CFRunLoopMode runLoopMode, +); + +@ffi.Native, CFIndex)>() +external int CFWriteStreamWrite( + CFWriteStreamRef stream, + ffi.Pointer buffer, + int bufferLength, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) +>() +external CFStringRef CFXMLCreateStringByEscapingEntities( + CFAllocatorRef allocator, + CFStringRef string, + CFDictionaryRef entitiesDictionary, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) +>() +external CFStringRef CFXMLCreateStringByUnescapingEntities( + CFAllocatorRef allocator, + CFStringRef string, + CFDictionaryRef entitiesDictionary, +); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLNodeRef Function( + CFAllocatorRef, + CFIndex, + CFStringRef, + ffi.Pointer, + CFIndex, + ) +>(symbol: 'CFXMLNodeCreate') +external CFXMLNodeRef _CFXMLNodeCreate( + CFAllocatorRef alloc, + int xmlType, + CFStringRef dataString, + ffi.Pointer additionalInfoPtr, + int version, +); + +CFXMLNodeRef CFXMLNodeCreate( + CFAllocatorRef alloc, + CFXMLNodeTypeCode xmlType, + CFStringRef dataString, + ffi.Pointer additionalInfoPtr, + DartCFIndex version, +) { + return _CFXMLNodeCreate( + alloc, + xmlType.value, + dataString, + additionalInfoPtr, + version, + ); +} + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFXMLNodeRef CFXMLNodeCreateCopy( + CFAllocatorRef alloc, + CFXMLNodeRef origNode, +); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native Function(CFXMLNodeRef)>() +external ffi.Pointer CFXMLNodeGetInfoPtr(CFXMLNodeRef node); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFStringRef CFXMLNodeGetString(CFXMLNodeRef node); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native(symbol: 'CFXMLNodeGetTypeCode') +external int _CFXMLNodeGetTypeCode(CFXMLNodeRef node); + +CFXMLNodeTypeCode CFXMLNodeGetTypeCode(CFXMLNodeRef node) { + return CFXMLNodeTypeCode.fromValue(_CFXMLNodeGetTypeCode(node)); +} + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLNodeGetTypeID(); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLNodeGetVersion(CFXMLNodeRef node); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external void CFXMLParserAbort( + CFXMLParserRef parser, + int errorCode, + CFStringRef errorDescription, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFStringRef CFXMLParserCopyErrorDescription(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLParserRef Function( + CFAllocatorRef, + CFDataRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFXMLParserRef CFXMLParserCreate( + CFAllocatorRef allocator, + CFDataRef xmlData, + CFURLRef dataSource, + int parseOptions, + int versionOfNodes, + ffi.Pointer callBacks, + ffi.Pointer context, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLParserRef Function( + CFAllocatorRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFXMLParserRef CFXMLParserCreateWithDataFromURL( + CFAllocatorRef allocator, + CFURLRef dataSource, + int parseOptions, + int versionOfNodes, + ffi.Pointer callBacks, + ffi.Pointer context, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + ffi.Void Function(CFXMLParserRef, ffi.Pointer) +>() +external void CFXMLParserGetCallBacks( + CFXMLParserRef parser, + ffi.Pointer callBacks, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + ffi.Void Function(CFXMLParserRef, ffi.Pointer) +>() +external void CFXMLParserGetContext( + CFXMLParserRef parser, + ffi.Pointer context, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native Function(CFXMLParserRef)>() +external ffi.Pointer CFXMLParserGetDocument(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLParserGetLineNumber(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLParserGetLocation(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFURLRef CFXMLParserGetSourceURL(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLParserGetStatusCode(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLParserGetTypeID(); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLParserParse(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLTreeRef Function( + CFAllocatorRef, + CFDataRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ) +>() +external CFXMLTreeRef CFXMLTreeCreateFromData( + CFAllocatorRef allocator, + CFDataRef xmlData, + CFURLRef dataSource, + int parseOptions, + int versionOfNodes, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLTreeRef Function( + CFAllocatorRef, + CFDataRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ) +>() +external CFXMLTreeRef CFXMLTreeCreateFromDataWithError( + CFAllocatorRef allocator, + CFDataRef xmlData, + CFURLRef dataSource, + int parseOptions, + int versionOfNodes, + ffi.Pointer errorDict, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLTreeRef Function(CFAllocatorRef, CFURLRef, CFOptionFlags, CFIndex) +>() +external CFXMLTreeRef CFXMLTreeCreateWithDataFromURL( + CFAllocatorRef allocator, + CFURLRef dataSource, + int parseOptions, + int versionOfNodes, +); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFXMLTreeRef CFXMLTreeCreateWithNode( + CFAllocatorRef allocator, + CFXMLNodeRef node, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFDataRef CFXMLTreeCreateXMLData( + CFAllocatorRef allocator, + CFXMLTreeRef xmlTree, +); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFXMLNodeRef CFXMLTreeGetNode(CFXMLTreeRef xmlTree); + +@ffi.Native< + ffi.Int32 Function( + CGDisplayReservationInterval, + ffi.Pointer, + ) +>(symbol: 'CGAcquireDisplayFadeReservation') +external int _CGAcquireDisplayFadeReservation( + double seconds, + ffi.Pointer token, +); + +CGError CGAcquireDisplayFadeReservation( + DartCGDisplayReservationInterval seconds, + ffi.Pointer token, +) { + return CGError.fromValue(_CGAcquireDisplayFadeReservation(seconds, token)); +} + +@ffi.Native() +external CGAffineTransform CGAffineTransformConcat( + CGAffineTransform t1, + CGAffineTransform t2, +); + +@ffi.Native() +external CGAffineTransformComponents CGAffineTransformDecompose( + CGAffineTransform transform, +); + +@ffi.Native() +external bool CGAffineTransformEqualToTransform( + CGAffineTransform t1, + CGAffineTransform t2, +); + +@ffi.Native() +external final CGAffineTransform CGAffineTransformIdentity; + +@ffi.Native() +external CGAffineTransform CGAffineTransformInvert(CGAffineTransform t); + +@ffi.Native() +external bool CGAffineTransformIsIdentity(CGAffineTransform t); + +@ffi.Native< + CGAffineTransform Function( + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external CGAffineTransform CGAffineTransformMake( + double a, + double b, + double c, + double d, + double tx, + double ty, +); + +@ffi.Native() +external CGAffineTransform CGAffineTransformMakeRotation(double angle); + +@ffi.Native() +external CGAffineTransform CGAffineTransformMakeScale(double sx, double sy); + +@ffi.Native() +external CGAffineTransform CGAffineTransformMakeTranslation( + double tx, + double ty, +); + +@ffi.Native() +external CGAffineTransform CGAffineTransformMakeWithComponents( + CGAffineTransformComponents components, +); + +@ffi.Native() +external CGAffineTransform CGAffineTransformRotate( + CGAffineTransform t, + double angle, +); + +@ffi.Native() +external CGAffineTransform CGAffineTransformScale( + CGAffineTransform t, + double sx, + double sy, +); + +@ffi.Native() +external CGAffineTransform CGAffineTransformTranslate( + CGAffineTransform t, + double tx, + double ty, +); + +@ffi.Native< + OSStatus Function(CFURLRef, CFDictionaryRef, CGImageSourceAnimationBlock) +>(symbol: 'CGAnimateImageAtURLWithBlock') +external int _CGAnimateImageAtURLWithBlock( + CFURLRef url, + CFDictionaryRef options, + CGImageSourceAnimationBlock block, +); + +DartSInt32 CGAnimateImageAtURLWithBlock( + CFURLRef url, + CFDictionaryRef options, + DartCGImageSourceAnimationBlock block, +) { + final _$$ref = block.ref; + return _CGAnimateImageAtURLWithBlock(url, options, _$$ref.pointer); +} + +@ffi.Native< + OSStatus Function(CFDataRef, CFDictionaryRef, CGImageSourceAnimationBlock) +>(symbol: 'CGAnimateImageDataWithBlock') +external int _CGAnimateImageDataWithBlock( + CFDataRef data, + CFDictionaryRef options, + CGImageSourceAnimationBlock block, +); + +DartSInt32 CGAnimateImageDataWithBlock( + CFDataRef data, + CFDictionaryRef options, + DartCGImageSourceAnimationBlock block, +) { + final _$$ref = block.ref; + return _CGAnimateImageDataWithBlock(data, options, _$$ref.pointer); +} + +@ffi.Native( + symbol: 'CGAssociateMouseAndMouseCursorPosition', +) +external int _CGAssociateMouseAndMouseCursorPosition(int connected); + +CGError CGAssociateMouseAndMouseCursorPosition(Dartboolean_t connected) { + return CGError.fromValue(_CGAssociateMouseAndMouseCursorPosition(connected)); +} + +@ffi.Native)>( + symbol: 'CGBeginDisplayConfiguration', +) +external int _CGBeginDisplayConfiguration( + ffi.Pointer config, +); + +CGError CGBeginDisplayConfiguration(ffi.Pointer config) { + return CGError.fromValue(_CGBeginDisplayConfiguration(config)); +} + +@ffi.Native< + CGContextRef Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + CGColorSpaceRef, + ffi.Uint32, + ) +>() +external CGContextRef CGBitmapContextCreate( + ffi.Pointer data, + int width, + int height, + int bitsPerComponent, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, +); + +@ffi.Native< + CGContextRef Function( + ffi.Size, + ffi.Size, + CFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGBitmapContextCreateAdaptive') +external CGContextRef _CGBitmapContextCreateAdaptive( + int width, + int height, + CFDictionaryRef auxiliaryInfo, + ffi.Pointer onResolve, + ffi.Pointer onAllocate, + ffi.Pointer onFree, + ffi.Pointer onError, +); + +CGContextRef CGBitmapContextCreateAdaptive( + int width, + int height, + CFDictionaryRef auxiliaryInfo, + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >? + onResolve, + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >? + onAllocate, + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >? + onFree, + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >? + onError, +) { + final _$$ref = onResolve?.ref; + final _$$ref$1 = onAllocate?.ref; + final _$$ref$2 = onFree?.ref; + final _$$ref$3 = onError?.ref; + return _CGBitmapContextCreateAdaptive( + width, + height, + auxiliaryInfo, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native() +external CGImageRef CGBitmapContextCreateImage(CGContextRef context); + +@ffi.Native< + CGContextRef Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + CGColorSpaceRef, + ffi.Uint32, + CGBitmapContextReleaseDataCallback, + ffi.Pointer, + ) +>() +external CGContextRef CGBitmapContextCreateWithData( + ffi.Pointer data, + int width, + int height, + int bitsPerComponent, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, + CGBitmapContextReleaseDataCallback releaseCallback, + ffi.Pointer releaseInfo, +); + +@ffi.Native( + symbol: 'CGBitmapContextGetAlphaInfo', +) +external int _CGBitmapContextGetAlphaInfo(CGContextRef context); + +CGImageAlphaInfo CGBitmapContextGetAlphaInfo(CGContextRef context) { + return CGImageAlphaInfo.fromValue(_CGBitmapContextGetAlphaInfo(context)); +} + +@ffi.Native() +external int CGBitmapContextGetBitmapInfo(CGContextRef context); + +@ffi.Native() +external int CGBitmapContextGetBitsPerComponent(CGContextRef context); + +@ffi.Native() +external int CGBitmapContextGetBitsPerPixel(CGContextRef context); + +@ffi.Native() +external int CGBitmapContextGetBytesPerRow(CGContextRef context); + +@ffi.Native() +external CGColorSpaceRef CGBitmapContextGetColorSpace(CGContextRef context); + +@ffi.Native Function(CGContextRef)>() +external ffi.Pointer CGBitmapContextGetData(CGContextRef context); + +@ffi.Native() +external int CGBitmapContextGetHeight(CGContextRef context); + +@ffi.Native() +external int CGBitmapContextGetWidth(CGContextRef context); + +@ffi.Native( + symbol: 'CGCancelDisplayConfiguration', +) +external int _CGCancelDisplayConfiguration(CGDisplayConfigRef config); + +CGError CGCancelDisplayConfiguration(CGDisplayConfigRef config) { + return CGError.fromValue(_CGCancelDisplayConfiguration(config)); +} + +@ffi.Native(symbol: 'CGCaptureAllDisplays') +external int _CGCaptureAllDisplays(); + +CGError CGCaptureAllDisplays() { + return CGError.fromValue(_CGCaptureAllDisplays()); +} + +@ffi.Native( + symbol: 'CGCaptureAllDisplaysWithOptions', +) +external int _CGCaptureAllDisplaysWithOptions(int options); + +CGError CGCaptureAllDisplaysWithOptions(int options) { + return CGError.fromValue(_CGCaptureAllDisplaysWithOptions(options)); +} + +@ffi.Native< + ffi.Bool Function( + CGColorConversionInfoRef, + ffi.Size, + ffi.Size, + ffi.Pointer, + CGColorBufferFormat, + ffi.Pointer, + CGColorBufferFormat, + CFDictionaryRef, + ) +>() +external bool CGColorConversionInfoConvertData( + CGColorConversionInfoRef info, + int width, + int height, + ffi.Pointer dst_data, + CGColorBufferFormat dst_format, + ffi.Pointer src_data, + CGColorBufferFormat src_format, + CFDictionaryRef options, +); + +@ffi.Native< + CGColorConversionInfoRef Function(CGColorSpaceRef, CGColorSpaceRef) +>() +external CGColorConversionInfoRef CGColorConversionInfoCreate( + CGColorSpaceRef src, + CGColorSpaceRef dst, +); + +@ffi.Native< + CGColorConversionInfoRef Function( + CGColorSpaceRef, + ffi.Float, + CGColorSpaceRef, + ffi.Float, + ffi.Uint32, + CFDictionaryRef, + ffi.Pointer, + ) +>(symbol: 'CGColorConversionInfoCreateForToneMapping') +external CGColorConversionInfoRef _CGColorConversionInfoCreateForToneMapping( + CGColorSpaceRef from, + double source_headroom, + CGColorSpaceRef to, + double target_headroom, + int method, + CFDictionaryRef options, + ffi.Pointer error, +); + +CGColorConversionInfoRef CGColorConversionInfoCreateForToneMapping( + CGColorSpaceRef from, + double source_headroom, + CGColorSpaceRef to, + double target_headroom, + CGToneMapping method, + CFDictionaryRef options, + ffi.Pointer error, +) { + return _CGColorConversionInfoCreateForToneMapping( + from, + source_headroom, + to, + target_headroom, + method.value, + options, + error, + ); +} + +@ffi.Native< + CGColorConversionInfoRef Function( + CFDictionaryRef, + CGColorSpaceRef, + ffi.Uint32, + ffi.Int32, + ) +>(symbol: 'CGColorConversionInfoCreateFromList') +external CGColorConversionInfoRef _CGColorConversionInfoCreateFromList( + CFDictionaryRef options, + CGColorSpaceRef arg1, + int arg2, + int arg3, +); + +CGColorConversionInfoRef CGColorConversionInfoCreateFromList( + CFDictionaryRef options, + CGColorSpaceRef arg1, + CGColorConversionInfoTransformType arg2, + CGColorRenderingIntent arg3, +) { + return _CGColorConversionInfoCreateFromList( + options, + arg1, + arg2.value, + arg3.value, + ); +} + +@ffi.Native< + CGColorConversionInfoRef Function( + CFDictionaryRef, + CGColorSpaceRef, + ffi.Uint32, + ffi.Int32, + va_list, + ) +>(symbol: 'CGColorConversionInfoCreateFromListWithArguments') +external CGColorConversionInfoRef +_CGColorConversionInfoCreateFromListWithArguments( + CFDictionaryRef options, + CGColorSpaceRef arg1, + int arg2, + int arg3, + va_list arg4, +); + +CGColorConversionInfoRef CGColorConversionInfoCreateFromListWithArguments( + CFDictionaryRef options, + CGColorSpaceRef arg1, + CGColorConversionInfoTransformType arg2, + CGColorRenderingIntent arg3, + va_list arg4, +) { + return _CGColorConversionInfoCreateFromListWithArguments( + options, + arg1, + arg2.value, + arg3.value, + arg4, + ); +} + +@ffi.Native< + CGColorConversionInfoRef Function( + CGColorSpaceRef, + CGColorSpaceRef, + CFDictionaryRef, + ) +>() +external CGColorConversionInfoRef CGColorConversionInfoCreateWithOptions( + CGColorSpaceRef src, + CGColorSpaceRef dst, + CFDictionaryRef options, +); + +@ffi.Native() +external int CGColorConversionInfoGetTypeID(); + +@ffi.Native)>() +external CGColorRef CGColorCreate( + CGColorSpaceRef space, + ffi.Pointer components, +); + +@ffi.Native() +external CGColorRef CGColorCreateCopy(CGColorRef color); + +@ffi.Native< + CGColorRef Function(CGColorSpaceRef, ffi.Int32, CGColorRef, CFDictionaryRef) +>(symbol: 'CGColorCreateCopyByMatchingToColorSpace') +external CGColorRef _CGColorCreateCopyByMatchingToColorSpace( + CGColorSpaceRef arg0, + int intent, + CGColorRef color, + CFDictionaryRef options, +); + +CGColorRef CGColorCreateCopyByMatchingToColorSpace( + CGColorSpaceRef arg0, + CGColorRenderingIntent intent, + CGColorRef color, + CFDictionaryRef options, +) { + return _CGColorCreateCopyByMatchingToColorSpace( + arg0, + intent.value, + color, + options, + ); +} + +@ffi.Native() +external CGColorRef CGColorCreateCopyWithAlpha(CGColorRef color, double alpha); + +@ffi.Native() +external CGColorRef CGColorCreateGenericCMYK( + double cyan, + double magenta, + double yellow, + double black, + double alpha, +); + +@ffi.Native() +external CGColorRef CGColorCreateGenericGray(double gray, double alpha); + +@ffi.Native() +external CGColorRef CGColorCreateGenericGrayGamma2_2(double gray, double alpha); + +@ffi.Native() +external CGColorRef CGColorCreateGenericRGB( + double red, + double green, + double blue, + double alpha, +); + +@ffi.Native() +external CGColorRef CGColorCreateSRGB( + double red, + double green, + double blue, + double alpha, +); + +@ffi.Native< + CGColorRef Function( + ffi.Float, + CGColorSpaceRef, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external CGColorRef CGColorCreateWithContentHeadroom( + double headroom, + CGColorSpaceRef space, + double red, + double green, + double blue, + double alpha, +); + +@ffi.Native< + CGColorRef Function(CGColorSpaceRef, CGPatternRef, ffi.Pointer) +>() +external CGColorRef CGColorCreateWithPattern( + CGColorSpaceRef space, + CGPatternRef pattern, + ffi.Pointer components, +); + +@ffi.Native() +external bool CGColorEqualToColor(CGColorRef color1, CGColorRef color2); + +@ffi.Native() +external double CGColorGetAlpha(CGColorRef color); + +@ffi.Native() +external CGColorSpaceRef CGColorGetColorSpace(CGColorRef color); + +@ffi.Native Function(CGColorRef)>() +external ffi.Pointer CGColorGetComponents(CGColorRef color); + +@ffi.Native() +external CGColorRef CGColorGetConstantColor(CFStringRef colorName); + +@ffi.Native() +external double CGColorGetContentHeadroom(CGColorRef color); + +@ffi.Native() +external int CGColorGetNumberOfComponents(CGColorRef color); + +@ffi.Native() +external CGPatternRef CGColorGetPattern(CGColorRef color); + +@ffi.Native() +external int CGColorGetTypeID(); + +@ffi.Native() +external void CGColorRelease(CGColorRef color); + +@ffi.Native() +external CGColorRef CGColorRetain(CGColorRef color); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCopyBaseColorSpace(CGColorSpaceRef space); + +@ffi.Native() +external CFDataRef CGColorSpaceCopyICCData(CGColorSpaceRef space); + +@Deprecated('No longer supported') +@ffi.Native() +external CFDataRef CGColorSpaceCopyICCProfile(CGColorSpaceRef space); + +@ffi.Native() +external CFStringRef CGColorSpaceCopyName(CGColorSpaceRef space); + +@ffi.Native() +external CFPropertyListRef CGColorSpaceCopyPropertyList(CGColorSpaceRef space); + +@ffi.Native< + CGColorSpaceRef Function(ffi.Pointer, ffi.Pointer, CGFloat) +>() +external CGColorSpaceRef CGColorSpaceCreateCalibratedGray( + ffi.Pointer whitePoint, + ffi.Pointer blackPoint, + double gamma, +); + +@ffi.Native< + CGColorSpaceRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGColorSpaceRef CGColorSpaceCreateCalibratedRGB( + ffi.Pointer whitePoint, + ffi.Pointer blackPoint, + ffi.Pointer gamma, + ffi.Pointer matrix, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateCopyWithStandardRange( + CGColorSpaceRef s, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateDeviceCMYK(); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateDeviceGray(); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateDeviceRGB(); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateExtended(CGColorSpaceRef space); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateExtendedLinearized( + CGColorSpaceRef space, +); + +@ffi.Native< + CGColorSpaceRef Function( + ffi.Size, + ffi.Pointer, + CGDataProviderRef, + CGColorSpaceRef, + ) +>() +external CGColorSpaceRef CGColorSpaceCreateICCBased( + int nComponents, + ffi.Pointer range, + CGDataProviderRef profile, + CGColorSpaceRef alternate, +); + +@ffi.Native< + CGColorSpaceRef Function( + CGColorSpaceRef, + ffi.Size, + ffi.Pointer, + ) +>() +external CGColorSpaceRef CGColorSpaceCreateIndexed( + CGColorSpaceRef baseSpace, + int lastIndex, + ffi.Pointer colorTable, +); + +@ffi.Native< + CGColorSpaceRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGColorSpaceRef CGColorSpaceCreateLab( + ffi.Pointer whitePoint, + ffi.Pointer blackPoint, + ffi.Pointer range, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateLinearized(CGColorSpaceRef space); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreatePattern(CGColorSpaceRef baseSpace); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateWithColorSyncProfile( + ColorSyncProfileRef arg0, + CFDictionaryRef options, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateWithICCData(CFTypeRef data); + +@Deprecated('No longer supported') +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateWithICCProfile(CFDataRef data); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateWithName(CFStringRef name); + +@Deprecated('No longer supported') +@ffi.Native)>() +external CGColorSpaceRef CGColorSpaceCreateWithPlatformColorSpace( + ffi.Pointer ref, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateWithPropertyList( + CFPropertyListRef plist, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceGetBaseColorSpace(CGColorSpaceRef space); + +@ffi.Native)>() +external void CGColorSpaceGetColorTable( + CGColorSpaceRef space, + ffi.Pointer table, +); + +@ffi.Native() +external int CGColorSpaceGetColorTableCount(CGColorSpaceRef space); + +@ffi.Native(symbol: 'CGColorSpaceGetModel') +external int _CGColorSpaceGetModel(CGColorSpaceRef space); + +CGColorSpaceModel CGColorSpaceGetModel(CGColorSpaceRef space) { + return CGColorSpaceModel.fromValue(_CGColorSpaceGetModel(space)); +} + +@ffi.Native() +external CFStringRef CGColorSpaceGetName(CGColorSpaceRef space); + +@ffi.Native() +external int CGColorSpaceGetNumberOfComponents(CGColorSpaceRef space); + +@ffi.Native() +external int CGColorSpaceGetTypeID(); + +@ffi.Native() +external bool CGColorSpaceIsHDR(CGColorSpaceRef arg0); + +@ffi.Native() +external bool CGColorSpaceIsHLGBased(CGColorSpaceRef s); + +@ffi.Native() +external bool CGColorSpaceIsPQBased(CGColorSpaceRef s); + +@ffi.Native() +external bool CGColorSpaceIsWideGamutRGB(CGColorSpaceRef arg0); + +@ffi.Native() +external void CGColorSpaceRelease(CGColorSpaceRef space); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceRetain(CGColorSpaceRef space); + +@ffi.Native() +external bool CGColorSpaceSupportsOutput(CGColorSpaceRef space); + +@ffi.Native() +external bool CGColorSpaceUsesExtendedRange(CGColorSpaceRef space); + +@ffi.Native() +external bool CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef arg0); + +@ffi.Native( + symbol: 'CGCompleteDisplayConfiguration', +) +external int _CGCompleteDisplayConfiguration( + CGDisplayConfigRef config, + int option, +); + +CGError CGCompleteDisplayConfiguration(CGDisplayConfigRef config, int option) { + return CGError.fromValue(_CGCompleteDisplayConfiguration(config, option)); +} + +@ffi.Native< + ffi.Int32 Function( + CGDisplayConfigRef, + CGDisplayFadeInterval, + CGDisplayFadeInterval, + ffi.Float, + ffi.Float, + ffi.Float, + ) +>(symbol: 'CGConfigureDisplayFadeEffect') +external int _CGConfigureDisplayFadeEffect( + CGDisplayConfigRef config, + double fadeOutSeconds, + double fadeInSeconds, + double fadeRed, + double fadeGreen, + double fadeBlue, +); + +CGError CGConfigureDisplayFadeEffect( + CGDisplayConfigRef config, + DartCGDisplayFadeInterval fadeOutSeconds, + DartCGDisplayFadeInterval fadeInSeconds, + double fadeRed, + double fadeGreen, + double fadeBlue, +) { + return CGError.fromValue( + _CGConfigureDisplayFadeEffect( + config, + fadeOutSeconds, + fadeInSeconds, + fadeRed, + fadeGreen, + fadeBlue, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function(CGDisplayConfigRef, CGDirectDisplayID, CGDirectDisplayID) +>(symbol: 'CGConfigureDisplayMirrorOfDisplay') +external int _CGConfigureDisplayMirrorOfDisplay( + CGDisplayConfigRef config, + int display, + int master, +); + +CGError CGConfigureDisplayMirrorOfDisplay( + CGDisplayConfigRef config, + DartCGDirectDisplayID display, + DartCGDirectDisplayID master, +) { + return CGError.fromValue( + _CGConfigureDisplayMirrorOfDisplay(config, display, master), + ); +} + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Int32 Function(CGDisplayConfigRef, CGDirectDisplayID, CFDictionaryRef) +>(symbol: 'CGConfigureDisplayMode') +external int _CGConfigureDisplayMode( + CGDisplayConfigRef config, + int display, + CFDictionaryRef mode, +); + +CGError CGConfigureDisplayMode( + CGDisplayConfigRef config, + DartCGDirectDisplayID display, + CFDictionaryRef mode, +) { + return CGError.fromValue(_CGConfigureDisplayMode(config, display, mode)); +} + +@ffi.Native< + ffi.Int32 Function( + CGDisplayConfigRef, + CGDirectDisplayID, + ffi.Int32, + ffi.Int32, + ) +>(symbol: 'CGConfigureDisplayOrigin') +external int _CGConfigureDisplayOrigin( + CGDisplayConfigRef config, + int display, + int x, + int y, +); + +CGError CGConfigureDisplayOrigin( + CGDisplayConfigRef config, + DartCGDirectDisplayID display, + int x, + int y, +) { + return CGError.fromValue(_CGConfigureDisplayOrigin(config, display, x, y)); +} + +@ffi.Native< + ffi.Int32 Function( + CGDisplayConfigRef, + CGDirectDisplayID, + boolean_t, + boolean_t, + ) +>(symbol: 'CGConfigureDisplayStereoOperation') +external int _CGConfigureDisplayStereoOperation( + CGDisplayConfigRef config, + int display, + int stereo, + int forceBlueLine, +); + +CGError CGConfigureDisplayStereoOperation( + CGDisplayConfigRef config, + DartCGDirectDisplayID display, + Dartboolean_t stereo, + Dartboolean_t forceBlueLine, +) { + return CGError.fromValue( + _CGConfigureDisplayStereoOperation(config, display, stereo, forceBlueLine), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGDisplayConfigRef, + CGDirectDisplayID, + CGDisplayModeRef, + CFDictionaryRef, + ) +>(symbol: 'CGConfigureDisplayWithDisplayMode') +external int _CGConfigureDisplayWithDisplayMode( + CGDisplayConfigRef config, + int display, + CGDisplayModeRef mode, + CFDictionaryRef options, +); + +CGError CGConfigureDisplayWithDisplayMode( + CGDisplayConfigRef config, + DartCGDirectDisplayID display, + CGDisplayModeRef mode, + CFDictionaryRef options, +) { + return CGError.fromValue( + _CGConfigureDisplayWithDisplayMode(config, display, mode, options), + ); +} + +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ffi.Int, + ) +>() +external void CGContextAddArc( + CGContextRef c, + double x, + double y, + double radius, + double startAngle, + double endAngle, + int clockwise, +); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextAddArcToPoint( + CGContextRef c, + double x1, + double y1$1, + double x2, + double y2, + double radius, +); + +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external void CGContextAddCurveToPoint( + CGContextRef c, + double cp1x, + double cp1y, + double cp2x, + double cp2y, + double x, + double y, +); + +@ffi.Native() +external void CGContextAddEllipseInRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native() +external void CGContextAddLineToPoint(CGContextRef c, double x, double y); + +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) +>() +external void CGContextAddLines( + CGContextRef c, + ffi.Pointer points, + int count, +); + +@ffi.Native() +external void CGContextAddPath(CGContextRef c, CGPathRef path); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextAddQuadCurveToPoint( + CGContextRef c, + double cpx, + double cpy, + double x, + double y, +); + +@ffi.Native() +external void CGContextAddRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) +>() +external void CGContextAddRects( + CGContextRef c, + ffi.Pointer rects, + int count, +); + +@ffi.Native)>() +external void CGContextBeginPage( + CGContextRef c, + ffi.Pointer mediaBox, +); + +@ffi.Native() +external void CGContextBeginPath(CGContextRef c); + +@ffi.Native() +external void CGContextBeginTransparencyLayer( + CGContextRef c, + CFDictionaryRef auxiliaryInfo, +); + +@ffi.Native() +external void CGContextBeginTransparencyLayerWithRect( + CGContextRef c, + objc.CGRect rect, + CFDictionaryRef auxInfo, +); + +@ffi.Native() +external void CGContextClearRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native() +external void CGContextClip(CGContextRef c); + +@ffi.Native() +external void CGContextClipToMask( + CGContextRef c, + objc.CGRect rect, + CGImageRef mask, +); + +@ffi.Native() +external void CGContextClipToRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) +>() +external void CGContextClipToRects( + CGContextRef c, + ffi.Pointer rects, + int count, +); + +@ffi.Native() +external void CGContextClosePath(CGContextRef c); + +@ffi.Native() +external void CGContextConcatCTM(CGContextRef c, CGAffineTransform transform); + +@ffi.Native() +external objc.CGPoint CGContextConvertPointToDeviceSpace( + CGContextRef c, + objc.CGPoint point, +); + +@ffi.Native() +external objc.CGPoint CGContextConvertPointToUserSpace( + CGContextRef c, + objc.CGPoint point, +); + +@ffi.Native() +external objc.CGRect CGContextConvertRectToDeviceSpace( + CGContextRef c, + objc.CGRect rect, +); + +@ffi.Native() +external objc.CGRect CGContextConvertRectToUserSpace( + CGContextRef c, + objc.CGRect rect, +); + +@ffi.Native() +external objc.CGSize CGContextConvertSizeToDeviceSpace( + CGContextRef c, + objc.CGSize size, +); + +@ffi.Native() +external objc.CGSize CGContextConvertSizeToUserSpace( + CGContextRef c, + objc.CGSize size, +); + +@ffi.Native() +external CGPathRef CGContextCopyPath(CGContextRef c); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGGradientRef, objc.CGPoint, CGFloat) +>() +external void CGContextDrawConicGradient( + CGContextRef c, + CGGradientRef gradient, + objc.CGPoint center, + double angle, +); + +@ffi.Native() +external void CGContextDrawImage( + CGContextRef c, + objc.CGRect rect, + CGImageRef image, +); + +@ffi.Native< + ffi.Bool Function( + CGContextRef, + objc.CGRect, + CGImageRef, + ffi.Uint32, + CFDictionaryRef, + ) +>(symbol: 'CGContextDrawImageApplyingToneMapping') +external bool _CGContextDrawImageApplyingToneMapping( + CGContextRef c, + objc.CGRect r, + CGImageRef image, + int method, + CFDictionaryRef options, +); + +bool CGContextDrawImageApplyingToneMapping( + CGContextRef c, + objc.CGRect r, + CGImageRef image, + CGToneMapping method, + CFDictionaryRef options, +) { + return _CGContextDrawImageApplyingToneMapping( + c, + r, + image, + method.value, + options, + ); +} + +@ffi.Native() +external void CGContextDrawLayerAtPoint( + CGContextRef context, + objc.CGPoint point, + CGLayerRef layer, +); + +@ffi.Native() +external void CGContextDrawLayerInRect( + CGContextRef context, + objc.CGRect rect, + CGLayerRef layer, +); + +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGGradientRef, + objc.CGPoint, + objc.CGPoint, + ffi.Uint32, + ) +>() +external void CGContextDrawLinearGradient( + CGContextRef c, + CGGradientRef gradient, + objc.CGPoint startPoint, + objc.CGPoint endPoint, + int options, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(CGContextRef, objc.CGRect, CGPDFDocumentRef, ffi.Int) +>() +external void CGContextDrawPDFDocument( + CGContextRef c, + objc.CGRect rect, + CGPDFDocumentRef document, + int page, +); + +@ffi.Native() +external void CGContextDrawPDFPage(CGContextRef c, CGPDFPageRef page); + +@ffi.Native( + symbol: 'CGContextDrawPath', +) +external void _CGContextDrawPath(CGContextRef c, int mode); + +void CGContextDrawPath(CGContextRef c, CGPathDrawingMode mode) { + return _CGContextDrawPath(c, mode.value); +} + +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGGradientRef, + objc.CGPoint, + CGFloat, + objc.CGPoint, + CGFloat, + ffi.Uint32, + ) +>() +external void CGContextDrawRadialGradient( + CGContextRef c, + CGGradientRef gradient, + objc.CGPoint startCenter, + double startRadius, + objc.CGPoint endCenter, + double endRadius, + int options, +); + +@ffi.Native() +external void CGContextDrawShading(CGContextRef c, CGShadingRef shading); + +@ffi.Native() +external void CGContextDrawTiledImage( + CGContextRef c, + objc.CGRect rect, + CGImageRef image, +); + +@ffi.Native() +external void CGContextEOClip(CGContextRef c); + +@ffi.Native() +external void CGContextEOFillPath(CGContextRef c); + +@ffi.Native() +external void CGContextEndPage(CGContextRef c); + +@ffi.Native() +external void CGContextEndTransparencyLayer(CGContextRef c); + +@ffi.Native() +external void CGContextFillEllipseInRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native() +external void CGContextFillPath(CGContextRef c); + +@ffi.Native() +external void CGContextFillRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) +>() +external void CGContextFillRects( + CGContextRef c, + ffi.Pointer rects, + int count, +); + +@ffi.Native() +external void CGContextFlush(CGContextRef c); + +@ffi.Native() +external CGAffineTransform CGContextGetCTM(CGContextRef c); + +@ffi.Native() +external objc.CGRect CGContextGetClipBoundingBox(CGContextRef c); + +@ffi.Native() +external CGContentToneMappingInfo CGContextGetContentToneMappingInfo( + CGContextRef c, +); + +@ffi.Native() +external double CGContextGetEDRTargetHeadroom(CGContextRef c); + +@ffi.Native( + symbol: 'CGContextGetInterpolationQuality', +) +external int _CGContextGetInterpolationQuality(CGContextRef c); + +CGInterpolationQuality CGContextGetInterpolationQuality(CGContextRef c) { + return CGInterpolationQuality.fromValue(_CGContextGetInterpolationQuality(c)); +} + +@ffi.Native() +external objc.CGRect CGContextGetPathBoundingBox(CGContextRef c); + +@ffi.Native() +external objc.CGPoint CGContextGetPathCurrentPoint(CGContextRef c); + +@ffi.Native() +external CGAffineTransform CGContextGetTextMatrix(CGContextRef c); + +@ffi.Native() +external objc.CGPoint CGContextGetTextPosition(CGContextRef c); + +@ffi.Native() +external int CGContextGetTypeID(); + +@ffi.Native() +external CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform( + CGContextRef c, +); + +@ffi.Native() +external bool CGContextIsPathEmpty(CGContextRef c); + +@ffi.Native() +external void CGContextMoveToPoint(CGContextRef c, double x, double y); + +@ffi.Native( + symbol: 'CGContextPathContainsPoint', +) +external bool _CGContextPathContainsPoint( + CGContextRef c, + objc.CGPoint point, + int mode, +); + +bool CGContextPathContainsPoint( + CGContextRef c, + objc.CGPoint point, + CGPathDrawingMode mode, +) { + return _CGContextPathContainsPoint(c, point, mode.value); +} + +@ffi.Native() +external void CGContextRelease(CGContextRef c); + +@ffi.Native() +external void CGContextReplacePathWithStrokedPath(CGContextRef c); + +@ffi.Native() +external void CGContextResetClip(CGContextRef c); + +@ffi.Native() +external void CGContextRestoreGState(CGContextRef c); + +@ffi.Native() +external CGContextRef CGContextRetain(CGContextRef c); + +@ffi.Native() +external void CGContextRotateCTM(CGContextRef c, double angle); + +@ffi.Native() +external void CGContextSaveGState(CGContextRef c); + +@ffi.Native() +external void CGContextScaleCTM(CGContextRef c, double sx, double sy); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, CGFloat, ffi.Int32) +>(symbol: 'CGContextSelectFont') +external void _CGContextSelectFont( + CGContextRef c, + ffi.Pointer name, + double size, + int textEncoding, +); + +void CGContextSelectFont( + CGContextRef c, + ffi.Pointer name, + DartCGFloat size, + CGTextEncoding textEncoding, +) { + return _CGContextSelectFont(c, name, size, textEncoding.value); +} + +@ffi.Native() +external void CGContextSetAllowsAntialiasing( + CGContextRef c, + bool allowsAntialiasing, +); + +@ffi.Native() +external void CGContextSetAllowsFontSmoothing( + CGContextRef c, + bool allowsFontSmoothing, +); + +@ffi.Native() +external void CGContextSetAllowsFontSubpixelPositioning( + CGContextRef c, + bool allowsFontSubpixelPositioning, +); + +@ffi.Native() +external void CGContextSetAllowsFontSubpixelQuantization( + CGContextRef c, + bool allowsFontSubpixelQuantization, +); + +@ffi.Native() +external void CGContextSetAlpha(CGContextRef c, double alpha); + +@ffi.Native( + symbol: 'CGContextSetBlendMode', +) +external void _CGContextSetBlendMode(CGContextRef c, int mode); + +void CGContextSetBlendMode(CGContextRef c, CGBlendMode mode) { + return _CGContextSetBlendMode(c, mode.value); +} + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextSetCMYKFillColor( + CGContextRef c, + double cyan, + double magenta, + double yellow, + double black, + double alpha, +); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextSetCMYKStrokeColor( + CGContextRef c, + double cyan, + double magenta, + double yellow, + double black, + double alpha, +); + +@ffi.Native() +external void CGContextSetCharacterSpacing(CGContextRef c, double spacing); + +@ffi.Native() +external void CGContextSetContentToneMappingInfo( + CGContextRef c, + CGContentToneMappingInfo info, +); + +@ffi.Native() +external bool CGContextSetEDRTargetHeadroom(CGContextRef c, double headroom); + +@ffi.Native)>() +external void CGContextSetFillColor( + CGContextRef c, + ffi.Pointer components, +); + +@ffi.Native() +external void CGContextSetFillColorSpace(CGContextRef c, CGColorSpaceRef space); + +@ffi.Native() +external void CGContextSetFillColorWithColor(CGContextRef c, CGColorRef color); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGPatternRef, ffi.Pointer) +>() +external void CGContextSetFillPattern( + CGContextRef c, + CGPatternRef pattern, + ffi.Pointer components, +); + +@ffi.Native() +external void CGContextSetFlatness(CGContextRef c, double flatness); + +@ffi.Native() +external void CGContextSetFont(CGContextRef c, CGFontRef font); + +@ffi.Native() +external void CGContextSetFontSize(CGContextRef c, double size); + +@ffi.Native() +external void CGContextSetGrayFillColor( + CGContextRef c, + double gray, + double alpha, +); + +@ffi.Native() +external void CGContextSetGrayStrokeColor( + CGContextRef c, + double gray, + double alpha, +); + +@ffi.Native( + symbol: 'CGContextSetInterpolationQuality', +) +external void _CGContextSetInterpolationQuality(CGContextRef c, int quality); + +void CGContextSetInterpolationQuality( + CGContextRef c, + CGInterpolationQuality quality, +) { + return _CGContextSetInterpolationQuality(c, quality.value); +} + +@ffi.Native( + symbol: 'CGContextSetLineCap', +) +external void _CGContextSetLineCap(CGContextRef c, int cap); + +void CGContextSetLineCap(CGContextRef c, CGLineCap cap) { + return _CGContextSetLineCap(c, cap.value); +} + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, ffi.Pointer, ffi.Size) +>() +external void CGContextSetLineDash( + CGContextRef c, + double phase, + ffi.Pointer lengths, + int count, +); + +@ffi.Native( + symbol: 'CGContextSetLineJoin', +) +external void _CGContextSetLineJoin(CGContextRef c, int join); + +void CGContextSetLineJoin(CGContextRef c, CGLineJoin join) { + return _CGContextSetLineJoin(c, join.value); +} + +@ffi.Native() +external void CGContextSetLineWidth(CGContextRef c, double width); + +@ffi.Native() +external void CGContextSetMiterLimit(CGContextRef c, double limit); + +@ffi.Native() +external void CGContextSetPatternPhase(CGContextRef c, objc.CGSize phase); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextSetRGBFillColor( + CGContextRef c, + double red, + double green, + double blue, + double alpha, +); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextSetRGBStrokeColor( + CGContextRef c, + double red, + double green, + double blue, + double alpha, +); + +@ffi.Native( + symbol: 'CGContextSetRenderingIntent', +) +external void _CGContextSetRenderingIntent(CGContextRef c, int intent); + +void CGContextSetRenderingIntent( + CGContextRef c, + CGColorRenderingIntent intent, +) { + return _CGContextSetRenderingIntent(c, intent.value); +} + +@ffi.Native() +external void CGContextSetShadow( + CGContextRef c, + objc.CGSize offset, + double blur, +); + +@ffi.Native() +external void CGContextSetShadowWithColor( + CGContextRef c, + objc.CGSize offset, + double blur, + CGColorRef color, +); + +@ffi.Native() +external void CGContextSetShouldAntialias(CGContextRef c, bool shouldAntialias); + +@ffi.Native() +external void CGContextSetShouldSmoothFonts( + CGContextRef c, + bool shouldSmoothFonts, +); + +@ffi.Native() +external void CGContextSetShouldSubpixelPositionFonts( + CGContextRef c, + bool shouldSubpixelPositionFonts, +); + +@ffi.Native() +external void CGContextSetShouldSubpixelQuantizeFonts( + CGContextRef c, + bool shouldSubpixelQuantizeFonts, +); + +@ffi.Native)>() +external void CGContextSetStrokeColor( + CGContextRef c, + ffi.Pointer components, +); + +@ffi.Native() +external void CGContextSetStrokeColorSpace( + CGContextRef c, + CGColorSpaceRef space, +); + +@ffi.Native() +external void CGContextSetStrokeColorWithColor( + CGContextRef c, + CGColorRef color, +); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGPatternRef, ffi.Pointer) +>() +external void CGContextSetStrokePattern( + CGContextRef c, + CGPatternRef pattern, + ffi.Pointer components, +); + +@ffi.Native( + symbol: 'CGContextSetTextDrawingMode', +) +external void _CGContextSetTextDrawingMode(CGContextRef c, int mode); + +void CGContextSetTextDrawingMode(CGContextRef c, CGTextDrawingMode mode) { + return _CGContextSetTextDrawingMode(c, mode.value); +} + +@ffi.Native() +external void CGContextSetTextMatrix(CGContextRef c, CGAffineTransform t); + +@ffi.Native() +external void CGContextSetTextPosition(CGContextRef c, double x, double y); + +@Deprecated('No longer supported') +@ffi.Native, ffi.Size)>() +external void CGContextShowGlyphs( + CGContextRef c, + ffi.Pointer g, + int count, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGFloat, + CGFloat, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGContextShowGlyphsAtPoint( + CGContextRef c, + double x, + double y, + ffi.Pointer glyphs, + int count, +); + +@ffi.Native< + ffi.Void Function( + CGContextRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGContextShowGlyphsAtPositions( + CGContextRef c, + ffi.Pointer glyphs, + ffi.Pointer Lpositions, + int count, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + CGContextRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGContextShowGlyphsWithAdvances( + CGContextRef c, + ffi.Pointer glyphs, + ffi.Pointer advances, + int count, +); + +@Deprecated('No longer supported') +@ffi.Native, ffi.Size)>() +external void CGContextShowText( + CGContextRef c, + ffi.Pointer string, + int length, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGFloat, + CGFloat, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGContextShowTextAtPoint( + CGContextRef c, + double x, + double y, + ffi.Pointer string, + int length, +); + +@ffi.Native() +external void CGContextStrokeEllipseInRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) +>() +external void CGContextStrokeLineSegments( + CGContextRef c, + ffi.Pointer points, + int count, +); + +@ffi.Native() +external void CGContextStrokePath(CGContextRef c); + +@ffi.Native() +external void CGContextStrokeRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native() +external void CGContextStrokeRectWithWidth( + CGContextRef c, + objc.CGRect rect, + double width, +); + +@ffi.Native() +external void CGContextSynchronize(CGContextRef c); + +@ffi.Native() +external void CGContextSynchronizeAttributes(CGContextRef c); + +@ffi.Native() +external void CGContextTranslateCTM(CGContextRef c, double tx, double ty); + +@ffi.Native< + ffi.Bool Function( + ffi.Size, + ffi.Size, + ffi.Pointer, + CGColorDataFormat, + ffi.Pointer, + CGColorDataFormat, + CFDictionaryRef, + ) +>() +external bool CGConvertColorDataWithFormat( + int width, + int height, + ffi.Pointer dst_data, + CGColorDataFormat dst_format, + ffi.Pointer src_data, + CGColorDataFormat src_format, + CFDictionaryRef options, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int CGCursorIsDrawnInFramebuffer(); + +@Deprecated('No longer supported') +@ffi.Native() +external int CGCursorIsVisible(); + +@ffi.Native< + CGDataConsumerRef Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGDataConsumerRef CGDataConsumerCreate( + ffi.Pointer info, + ffi.Pointer cbks, +); + +@ffi.Native() +external CGDataConsumerRef CGDataConsumerCreateWithCFData( + CFMutableDataRef data, +); + +@ffi.Native() +external CGDataConsumerRef CGDataConsumerCreateWithURL(CFURLRef url); + +@ffi.Native() +external int CGDataConsumerGetTypeID(); + +@ffi.Native() +external void CGDataConsumerRelease(CGDataConsumerRef consumer); + +@ffi.Native() +external CGDataConsumerRef CGDataConsumerRetain(CGDataConsumerRef consumer); + +@ffi.Native() +external CFDataRef CGDataProviderCopyData(CGDataProviderRef provider); + +@ffi.Native< + CGDataProviderRef Function( + ffi.Pointer, + off_t, + ffi.Pointer, + ) +>() +external CGDataProviderRef CGDataProviderCreateDirect( + ffi.Pointer info, + int size, + ffi.Pointer callbacks, +); + +@ffi.Native< + CGDataProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGDataProviderRef CGDataProviderCreateSequential( + ffi.Pointer info, + ffi.Pointer callbacks, +); + +@ffi.Native() +external CGDataProviderRef CGDataProviderCreateWithCFData(CFDataRef data); + +@ffi.Native< + CGDataProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + CGDataProviderReleaseDataCallback, + ) +>() +external CGDataProviderRef CGDataProviderCreateWithData( + ffi.Pointer info, + ffi.Pointer data, + int size, + CGDataProviderReleaseDataCallback releaseData, +); + +@ffi.Native)>() +external CGDataProviderRef CGDataProviderCreateWithFilename( + ffi.Pointer filename, +); + +@ffi.Native() +external CGDataProviderRef CGDataProviderCreateWithURL(CFURLRef url); + +@ffi.Native Function(CGDataProviderRef)>() +external ffi.Pointer CGDataProviderGetInfo( + CGDataProviderRef provider, +); + +@ffi.Native() +external int CGDataProviderGetTypeID(); + +@ffi.Native() +external void CGDataProviderRelease(CGDataProviderRef provider); + +@ffi.Native() +external CGDataProviderRef CGDataProviderRetain(CGDataProviderRef provider); + +@ffi.Native Function(CGDirectDisplayID)>( + symbol: 'CGDirectDisplayCopyCurrentMetalDevice', +) +external ffi.Pointer +_CGDirectDisplayCopyCurrentMetalDevice(int display); + +MTLDevice? CGDirectDisplayCopyCurrentMetalDevice( + DartCGDirectDisplayID display, +) { + return _CGDirectDisplayCopyCurrentMetalDevice(display).address == 0 + ? null + : MTLDevice.fromPointer( + _CGDirectDisplayCopyCurrentMetalDevice(display), + retain: false, + release: true, + ); +} + +@Deprecated('No longer supported') +@ffi.Native() +external CFArrayRef CGDisplayAvailableModes(int dsp); + +@Deprecated('No longer supported') +@ffi.Native< + CFDictionaryRef Function( + CGDirectDisplayID, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>() +external CFDictionaryRef CGDisplayBestModeForParameters( + int display, + int bitsPerPixel, + int width, + int height, + ffi.Pointer exactMatch, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDictionaryRef Function( + CGDirectDisplayID, + ffi.Size, + ffi.Size, + ffi.Size, + CGRefreshRate, + ffi.Pointer, + ) +>() +external CFDictionaryRef CGDisplayBestModeForParametersAndRefreshRate( + int display, + int bitsPerPixel, + int width, + int height, + double refreshRate, + ffi.Pointer exactMatch, +); + +@ffi.Native() +external objc.CGRect CGDisplayBounds(int display); + +@ffi.Native(symbol: 'CGDisplayCapture') +external int _CGDisplayCapture(int display); + +CGError CGDisplayCapture(DartCGDirectDisplayID display) { + return CGError.fromValue(_CGDisplayCapture(display)); +} + +@ffi.Native( + symbol: 'CGDisplayCaptureWithOptions', +) +external int _CGDisplayCaptureWithOptions(int display, int options); + +CGError CGDisplayCaptureWithOptions( + DartCGDirectDisplayID display, + int options, +) { + return CGError.fromValue(_CGDisplayCaptureWithOptions(display, options)); +} + +@ffi.Native() +external CFArrayRef CGDisplayCopyAllDisplayModes( + int display, + CFDictionaryRef options, +); + +@ffi.Native() +external CGColorSpaceRef CGDisplayCopyColorSpace(int display); + +@ffi.Native() +external CGDisplayModeRef CGDisplayCopyDisplayMode(int display); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external CGImageRef CGDisplayCreateImage(int displayID); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external CGImageRef CGDisplayCreateImageForRect(int display, objc.CGRect rect); + +@ffi.Native() +external CFUUIDRef CGDisplayCreateUUIDFromDisplayID(int displayID); + +@Deprecated('No longer supported') +@ffi.Native() +external CFDictionaryRef CGDisplayCurrentMode(int display); + +@ffi.Native< + ffi.Int32 Function( + CGDisplayFadeReservationToken, + CGDisplayFadeInterval, + CGDisplayBlendFraction, + CGDisplayBlendFraction, + ffi.Float, + ffi.Float, + ffi.Float, + boolean_t, + ) +>(symbol: 'CGDisplayFade') +external int _CGDisplayFade( + int token, + double duration, + double startBlend, + double endBlend, + double redBlend, + double greenBlend, + double blueBlend, + int synchronous, +); + +CGError CGDisplayFade( + DartCGDisplayFadeReservationToken token, + DartCGDisplayFadeInterval duration, + DartCGDisplayBlendFraction startBlend, + DartCGDisplayBlendFraction endBlend, + double redBlend, + double greenBlend, + double blueBlend, + Dartboolean_t synchronous, +) { + return CGError.fromValue( + _CGDisplayFade( + token, + duration, + startBlend, + endBlend, + redBlend, + greenBlend, + blueBlend, + synchronous, + ), + ); +} + +@Deprecated('No longer supported') +@ffi.Native() +external int CGDisplayFadeOperationInProgress(); + +@ffi.Native() +external int CGDisplayGammaTableCapacity(int display); + +@ffi.Native() +external int CGDisplayGetDisplayIDFromUUID(CFUUIDRef uuid); + +@ffi.Native() +external CGContextRef CGDisplayGetDrawingContext(int display); + +@ffi.Native( + symbol: 'CGDisplayHideCursor', +) +external int _CGDisplayHideCursor(int display); + +CGError CGDisplayHideCursor(DartCGDirectDisplayID display) { + return CGError.fromValue(_CGDisplayHideCursor(display)); +} + +@ffi.Native() +external int CGDisplayIDToOpenGLDisplayMask(int display); + +@Deprecated('No longer supported') +@ffi.Native() +external int CGDisplayIOServicePort(int display); + +@ffi.Native() +external int CGDisplayIsActive(int display); + +@ffi.Native() +external int CGDisplayIsAlwaysInMirrorSet(int display); + +@ffi.Native() +external int CGDisplayIsAsleep(int display); + +@ffi.Native() +external int CGDisplayIsBuiltin(int display); + +@Deprecated('No longer supported') +@ffi.Native() +external int CGDisplayIsCaptured(int display); + +@ffi.Native() +external int CGDisplayIsInHWMirrorSet(int display); + +@ffi.Native() +external int CGDisplayIsInMirrorSet(int display); + +@ffi.Native() +external int CGDisplayIsMain(int display); + +@ffi.Native() +external int CGDisplayIsOnline(int display); + +@ffi.Native() +external int CGDisplayIsStereo(int display); + +@ffi.Native() +external int CGDisplayMirrorsDisplay(int display); + +@Deprecated('No longer supported') +@ffi.Native() +external CFStringRef CGDisplayModeCopyPixelEncoding(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetHeight(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetIODisplayModeID(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetIOFlags(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetPixelHeight(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetPixelWidth(CGDisplayModeRef mode); + +@ffi.Native() +external double CGDisplayModeGetRefreshRate(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetTypeID(); + +@ffi.Native() +external int CGDisplayModeGetWidth(CGDisplayModeRef mode); + +@ffi.Native() +external bool CGDisplayModeIsUsableForDesktopGUI(CGDisplayModeRef mode); + +@ffi.Native() +external void CGDisplayModeRelease(CGDisplayModeRef mode); + +@ffi.Native() +external CGDisplayModeRef CGDisplayModeRetain(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModelNumber(int display); + +@ffi.Native( + symbol: 'CGDisplayMoveCursorToPoint', +) +external int _CGDisplayMoveCursorToPoint(int display, objc.CGPoint point); + +CGError CGDisplayMoveCursorToPoint( + DartCGDirectDisplayID display, + objc.CGPoint point, +) { + return CGError.fromValue(_CGDisplayMoveCursorToPoint(display, point)); +} + +@ffi.Native() +external int CGDisplayPixelsHigh(int display); + +@ffi.Native() +external int CGDisplayPixelsWide(int display); + +@ffi.Native() +external int CGDisplayPrimaryDisplay(int display); + +@ffi.Native< + ffi.Int32 Function(CGDisplayReconfigurationCallBack, ffi.Pointer) +>(symbol: 'CGDisplayRegisterReconfigurationCallback') +external int _CGDisplayRegisterReconfigurationCallback( + CGDisplayReconfigurationCallBack callback, + ffi.Pointer userInfo, +); + +CGError CGDisplayRegisterReconfigurationCallback( + CGDisplayReconfigurationCallBack callback, + ffi.Pointer userInfo, +) { + return CGError.fromValue( + _CGDisplayRegisterReconfigurationCallback(callback, userInfo), + ); +} + +@ffi.Native(symbol: 'CGDisplayRelease') +external int _CGDisplayRelease(int display); + +CGError CGDisplayRelease(DartCGDirectDisplayID display) { + return CGError.fromValue(_CGDisplayRelease(display)); +} + +@ffi.Native< + ffi.Int32 Function(CGDisplayReconfigurationCallBack, ffi.Pointer) +>(symbol: 'CGDisplayRemoveReconfigurationCallback') +external int _CGDisplayRemoveReconfigurationCallback( + CGDisplayReconfigurationCallBack callback, + ffi.Pointer userInfo, +); + +CGError CGDisplayRemoveReconfigurationCallback( + CGDisplayReconfigurationCallBack callback, + ffi.Pointer userInfo, +) { + return CGError.fromValue( + _CGDisplayRemoveReconfigurationCallback(callback, userInfo), + ); +} + +@ffi.Native() +external void CGDisplayRestoreColorSyncSettings(); + +@ffi.Native() +external double CGDisplayRotation(int display); + +@ffi.Native() +external objc.CGSize CGDisplayScreenSize(int display); + +@ffi.Native() +external int CGDisplaySerialNumber(int display); + +@ffi.Native< + ffi.Int32 Function(CGDirectDisplayID, CGDisplayModeRef, CFDictionaryRef) +>(symbol: 'CGDisplaySetDisplayMode') +external int _CGDisplaySetDisplayMode( + int display, + CGDisplayModeRef mode, + CFDictionaryRef options, +); + +CGError CGDisplaySetDisplayMode( + DartCGDirectDisplayID display, + CGDisplayModeRef mode, + CFDictionaryRef options, +) { + return CGError.fromValue(_CGDisplaySetDisplayMode(display, mode, options)); +} + +@ffi.Native< + ffi.Int32 Function(CGDirectDisplayID, boolean_t, boolean_t, ffi.Uint32) +>(symbol: 'CGDisplaySetStereoOperation') +external int _CGDisplaySetStereoOperation( + int display, + int stereo, + int forceBlueLine, + int option, +); + +CGError CGDisplaySetStereoOperation( + DartCGDirectDisplayID display, + Dartboolean_t stereo, + Dartboolean_t forceBlueLine, + int option, +) { + return CGError.fromValue( + _CGDisplaySetStereoOperation(display, stereo, forceBlueLine, option), + ); +} + +@ffi.Native( + symbol: 'CGDisplayShowCursor', +) +external int _CGDisplayShowCursor(int display); + +CGError CGDisplayShowCursor(DartCGDirectDisplayID display) { + return CGError.fromValue(_CGDisplayShowCursor(display)); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + CGDisplayStreamRef Function( + CGDirectDisplayID, + ffi.Size, + ffi.Size, + ffi.Int32, + CFDictionaryRef, + CGDisplayStreamFrameAvailableHandler, + ) +>(symbol: 'CGDisplayStreamCreate') +external CGDisplayStreamRef _CGDisplayStreamCreate( + int display, + int outputWidth, + int outputHeight, + int pixelFormat, + CFDictionaryRef properties, + CGDisplayStreamFrameAvailableHandler handler, +); + +CGDisplayStreamRef CGDisplayStreamCreate( + DartCGDirectDisplayID display, + int outputWidth, + int outputHeight, + int pixelFormat, + CFDictionaryRef properties, + DartCGDisplayStreamFrameAvailableHandler? handler, +) { + final _$$ref = handler?.ref; + return _CGDisplayStreamCreate( + display, + outputWidth, + outputHeight, + pixelFormat, + properties, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + CGDisplayStreamRef Function( + CGDirectDisplayID, + ffi.Size, + ffi.Size, + ffi.Int32, + CFDictionaryRef, + dispatch_queue_t, + CGDisplayStreamFrameAvailableHandler, + ) +>(symbol: 'CGDisplayStreamCreateWithDispatchQueue') +external CGDisplayStreamRef _CGDisplayStreamCreateWithDispatchQueue( + int display, + int outputWidth, + int outputHeight, + int pixelFormat, + CFDictionaryRef properties, + dispatch_queue_t queue, + CGDisplayStreamFrameAvailableHandler handler, +); + +CGDisplayStreamRef CGDisplayStreamCreateWithDispatchQueue( + DartCGDirectDisplayID display, + int outputWidth, + int outputHeight, + int pixelFormat, + CFDictionaryRef properties, + Dartdispatch_queue_t queue, + DartCGDisplayStreamFrameAvailableHandler? handler, +) { + final _$$ref = queue.ref; + final _$$ref$1 = handler?.ref; + return _CGDisplayStreamCreateWithDispatchQueue( + display, + outputWidth, + outputHeight, + pixelFormat, + properties, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external CFRunLoopSourceRef CGDisplayStreamGetRunLoopSource( + CGDisplayStreamRef displayStream, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external int CGDisplayStreamGetTypeID(); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native( + symbol: 'CGDisplayStreamStart', +) +external int _CGDisplayStreamStart(CGDisplayStreamRef displayStream); + +CGError CGDisplayStreamStart(CGDisplayStreamRef displayStream) { + return CGError.fromValue(_CGDisplayStreamStart(displayStream)); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native( + symbol: 'CGDisplayStreamStop', +) +external int _CGDisplayStreamStop(CGDisplayStreamRef displayStream); + +CGError CGDisplayStreamStop(CGDisplayStreamRef displayStream) { + return CGError.fromValue(_CGDisplayStreamStop(displayStream)); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + CGDisplayStreamUpdateRef Function( + CGDisplayStreamUpdateRef, + CGDisplayStreamUpdateRef, + ) +>() +external CGDisplayStreamUpdateRef CGDisplayStreamUpdateCreateMergedUpdate( + CGDisplayStreamUpdateRef firstUpdate, + CGDisplayStreamUpdateRef secondUpdate, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external int CGDisplayStreamUpdateGetDropCount( + CGDisplayStreamUpdateRef updateRef, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + ffi.Void Function( + CGDisplayStreamUpdateRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CGDisplayStreamUpdateGetMovedRectsDelta( + CGDisplayStreamUpdateRef updateRef, + ffi.Pointer dx, + ffi.Pointer dy, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + ffi.Pointer Function( + CGDisplayStreamUpdateRef, + ffi.Int32, + ffi.Pointer, + ) +>(symbol: 'CGDisplayStreamUpdateGetRects') +external ffi.Pointer _CGDisplayStreamUpdateGetRects( + CGDisplayStreamUpdateRef updateRef, + int rectType, + ffi.Pointer rectCount, +); + +ffi.Pointer CGDisplayStreamUpdateGetRects( + CGDisplayStreamUpdateRef updateRef, + CGDisplayStreamUpdateRectType rectType, + ffi.Pointer rectCount, +) { + return _CGDisplayStreamUpdateGetRects(updateRef, rectType.value, rectCount); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external int CGDisplayStreamUpdateGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGDisplaySwitchToMode', +) +external int _CGDisplaySwitchToMode(int display, CFDictionaryRef mode); + +CGError CGDisplaySwitchToMode( + DartCGDirectDisplayID display, + CFDictionaryRef mode, +) { + return CGError.fromValue(_CGDisplaySwitchToMode(display, mode)); +} + +@ffi.Native() +external int CGDisplayUnitNumber(int display); + +@ffi.Native() +external int CGDisplayUsesOpenGLAcceleration(int display); + +@ffi.Native() +external int CGDisplayVendorNumber(int display); + +@ffi.Native() +external CFDictionaryRef CGEXRToneMappingGammaGetDefaultOptions(); + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGEnableEventStateCombining', +) +external int _CGEnableEventStateCombining(int combineState); + +CGError CGEnableEventStateCombining(Dartboolean_t combineState) { + return CGError.fromValue(_CGEnableEventStateCombining(combineState)); +} + +@ffi.Native() +external void CGErrorSetCallback(CGErrorCallback callback); + +@ffi.Native() +external CGEventRef CGEventCreate(CGEventSourceRef source); + +@ffi.Native() +external CGEventRef CGEventCreateCopy(CGEventRef event); + +@ffi.Native() +external CFDataRef CGEventCreateData( + CFAllocatorRef allocator, + CGEventRef event, +); + +@ffi.Native() +external CGEventRef CGEventCreateFromData( + CFAllocatorRef allocator, + CFDataRef data, +); + +@ffi.Native() +external CGEventRef CGEventCreateKeyboardEvent( + CGEventSourceRef source, + int virtualKey, + bool keyDown, +); + +@ffi.Native< + CGEventRef Function(CGEventSourceRef, ffi.Uint32, objc.CGPoint, ffi.Uint32) +>(symbol: 'CGEventCreateMouseEvent') +external CGEventRef _CGEventCreateMouseEvent( + CGEventSourceRef source, + int mouseType, + objc.CGPoint mouseCursorPosition, + int mouseButton, +); + +CGEventRef CGEventCreateMouseEvent( + CGEventSourceRef source, + CGEventType mouseType, + objc.CGPoint mouseCursorPosition, + CGMouseButton mouseButton, +) { + return _CGEventCreateMouseEvent( + source, + mouseType.value, + mouseCursorPosition, + mouseButton.value, + ); +} + +@ffi.Native< + CGEventRef Function(CGEventSourceRef, ffi.Uint32, ffi.Uint32, ffi.Int32) +>(symbol: 'CGEventCreateScrollWheelEvent') +external CGEventRef _CGEventCreateScrollWheelEvent( + CGEventSourceRef source, + int units, + int wheelCount, + int wheel1, +); + +CGEventRef CGEventCreateScrollWheelEvent( + CGEventSourceRef source, + CGScrollEventUnit units, + int wheelCount, + int wheel1, +) { + return _CGEventCreateScrollWheelEvent( + source, + units.value, + wheelCount, + wheel1, + ); +} + +@ffi.Native< + CGEventRef Function( + CGEventSourceRef, + ffi.Uint32, + ffi.Uint32, + ffi.Int32, + ffi.Int32, + ffi.Int32, + ) +>(symbol: 'CGEventCreateScrollWheelEvent2') +external CGEventRef _CGEventCreateScrollWheelEvent2( + CGEventSourceRef source, + int units, + int wheelCount, + int wheel1, + int wheel2, + int wheel3, +); + +CGEventRef CGEventCreateScrollWheelEvent2( + CGEventSourceRef source, + CGScrollEventUnit units, + int wheelCount, + int wheel1, + int wheel2, + int wheel3, +) { + return _CGEventCreateScrollWheelEvent2( + source, + units.value, + wheelCount, + wheel1, + wheel2, + wheel3, + ); +} + +@ffi.Native() +external CGEventSourceRef CGEventCreateSourceFromEvent(CGEventRef event); + +@ffi.Native( + symbol: 'CGEventGetDoubleValueField', +) +external double _CGEventGetDoubleValueField(CGEventRef event, int field); + +double CGEventGetDoubleValueField(CGEventRef event, CGEventField field) { + return _CGEventGetDoubleValueField(event, field.value); +} + +@ffi.Native() +external int CGEventGetFlags(CGEventRef event); + +@ffi.Native( + symbol: 'CGEventGetIntegerValueField', +) +external int _CGEventGetIntegerValueField(CGEventRef event, int field); + +int CGEventGetIntegerValueField(CGEventRef event, CGEventField field) { + return _CGEventGetIntegerValueField(event, field.value); +} + +@ffi.Native() +external objc.CGPoint CGEventGetLocation(CGEventRef event); + +@ffi.Native() +external int CGEventGetTimestamp(CGEventRef event); + +@ffi.Native(symbol: 'CGEventGetType') +external int _CGEventGetType(CGEventRef event); + +CGEventType CGEventGetType(CGEventRef event) { + return CGEventType.fromValue(_CGEventGetType(event)); +} + +@ffi.Native() +external int CGEventGetTypeID(); + +@ffi.Native() +external objc.CGPoint CGEventGetUnflippedLocation(CGEventRef event); + +@ffi.Native< + ffi.Void Function( + CGEventRef, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CGEventKeyboardGetUnicodeString( + CGEventRef event, + int maxStringLength, + ffi.Pointer actualStringLength, + ffi.Pointer unicodeString, +); + +@ffi.Native)>() +external void CGEventKeyboardSetUnicodeString( + CGEventRef event, + int stringLength, + ffi.Pointer unicodeString, +); + +@ffi.Native(symbol: 'CGEventPost') +external void _CGEventPost(int tap, CGEventRef event); + +void CGEventPost(CGEventTapLocation tap, CGEventRef event) { + return _CGEventPost(tap.value, event); +} + +@ffi.Native, CGEventRef)>() +external void CGEventPostToPSN( + ffi.Pointer processSerialNumber, + CGEventRef event, +); + +@ffi.Native() +external void CGEventPostToPid(int pid, CGEventRef event); + +@ffi.Native( + symbol: 'CGEventSetDoubleValueField', +) +external void _CGEventSetDoubleValueField( + CGEventRef event, + int field, + double value, +); + +void CGEventSetDoubleValueField( + CGEventRef event, + CGEventField field, + double value, +) { + return _CGEventSetDoubleValueField(event, field.value, value); +} + +@ffi.Native() +external void CGEventSetFlags(CGEventRef event, int flags); + +@ffi.Native( + symbol: 'CGEventSetIntegerValueField', +) +external void _CGEventSetIntegerValueField( + CGEventRef event, + int field, + int value, +); + +void CGEventSetIntegerValueField( + CGEventRef event, + CGEventField field, + int value, +) { + return _CGEventSetIntegerValueField(event, field.value, value); +} + +@ffi.Native() +external void CGEventSetLocation(CGEventRef event, objc.CGPoint location); + +@ffi.Native() +external void CGEventSetSource(CGEventRef event, CGEventSourceRef source); + +@ffi.Native() +external void CGEventSetTimestamp(CGEventRef event, int timestamp); + +@ffi.Native(symbol: 'CGEventSetType') +external void _CGEventSetType(CGEventRef event, int type); + +void CGEventSetType(CGEventRef event, CGEventType type) { + return _CGEventSetType(event, type.value); +} + +@ffi.Native( + symbol: 'CGEventSourceButtonState', +) +external bool _CGEventSourceButtonState(int stateID, int button); + +bool CGEventSourceButtonState( + CGEventSourceStateID stateID, + CGMouseButton button, +) { + return _CGEventSourceButtonState(stateID.value, button.value); +} + +@ffi.Native( + symbol: 'CGEventSourceCounterForEventType', +) +external int _CGEventSourceCounterForEventType(int stateID, int eventType); + +int CGEventSourceCounterForEventType( + CGEventSourceStateID stateID, + CGEventType eventType, +) { + return _CGEventSourceCounterForEventType(stateID.value, eventType.value); +} + +@ffi.Native(symbol: 'CGEventSourceCreate') +external CGEventSourceRef _CGEventSourceCreate(int stateID); + +CGEventSourceRef CGEventSourceCreate(CGEventSourceStateID stateID) { + return _CGEventSourceCreate(stateID.value); +} + +@ffi.Native(symbol: 'CGEventSourceFlagsState') +external int _CGEventSourceFlagsState(int stateID); + +int CGEventSourceFlagsState(CGEventSourceStateID stateID) { + return _CGEventSourceFlagsState(stateID.value); +} + +@ffi.Native() +external int CGEventSourceGetKeyboardType(CGEventSourceRef source); + +@ffi.Native( + symbol: 'CGEventSourceGetLocalEventsFilterDuringSuppressionState', +) +external int _CGEventSourceGetLocalEventsFilterDuringSuppressionState( + CGEventSourceRef source, + int state, +); + +int CGEventSourceGetLocalEventsFilterDuringSuppressionState( + CGEventSourceRef source, + CGEventSuppressionState state, +) { + return _CGEventSourceGetLocalEventsFilterDuringSuppressionState( + source, + state.value, + ); +} + +@ffi.Native() +external double CGEventSourceGetLocalEventsSuppressionInterval( + CGEventSourceRef source, +); + +@ffi.Native() +external double CGEventSourceGetPixelsPerLine(CGEventSourceRef source); + +@ffi.Native( + symbol: 'CGEventSourceGetSourceStateID', +) +external int _CGEventSourceGetSourceStateID(CGEventSourceRef source); + +CGEventSourceStateID CGEventSourceGetSourceStateID(CGEventSourceRef source) { + return CGEventSourceStateID.fromValue(_CGEventSourceGetSourceStateID(source)); +} + +@ffi.Native() +external int CGEventSourceGetTypeID(); + +@ffi.Native() +external int CGEventSourceGetUserData(CGEventSourceRef source); + +@ffi.Native( + symbol: 'CGEventSourceKeyState', +) +external bool _CGEventSourceKeyState(int stateID, int key); + +bool CGEventSourceKeyState(CGEventSourceStateID stateID, DartCGKeyCode key) { + return _CGEventSourceKeyState(stateID.value, key); +} + +@ffi.Native( + symbol: 'CGEventSourceSecondsSinceLastEventType', +) +external double _CGEventSourceSecondsSinceLastEventType( + int stateID, + int eventType, +); + +DartCFTimeInterval CGEventSourceSecondsSinceLastEventType( + CGEventSourceStateID stateID, + CGEventType eventType, +) { + return _CGEventSourceSecondsSinceLastEventType( + stateID.value, + eventType.value, + ); +} + +@ffi.Native() +external void CGEventSourceSetKeyboardType( + CGEventSourceRef source, + int keyboardType, +); + +@ffi.Native( + symbol: 'CGEventSourceSetLocalEventsFilterDuringSuppressionState', +) +external void _CGEventSourceSetLocalEventsFilterDuringSuppressionState( + CGEventSourceRef source, + int filter, + int state, +); + +void CGEventSourceSetLocalEventsFilterDuringSuppressionState( + CGEventSourceRef source, + int filter, + CGEventSuppressionState state, +) { + return _CGEventSourceSetLocalEventsFilterDuringSuppressionState( + source, + filter, + state.value, + ); +} + +@ffi.Native() +external void CGEventSourceSetLocalEventsSuppressionInterval( + CGEventSourceRef source, + double seconds, +); + +@ffi.Native() +external void CGEventSourceSetPixelsPerLine( + CGEventSourceRef source, + double pixelsPerLine, +); + +@ffi.Native() +external void CGEventSourceSetUserData(CGEventSourceRef source, int userData); + +@ffi.Native< + CFMachPortRef Function( + ffi.Uint32, + ffi.Uint32, + ffi.Uint32, + CGEventMask, + CGEventTapCallBack, + ffi.Pointer, + ) +>(symbol: 'CGEventTapCreate') +external CFMachPortRef _CGEventTapCreate( + int tap, + int place, + int options, + int eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +); + +CFMachPortRef CGEventTapCreate( + CGEventTapLocation tap, + CGEventTapPlacement place, + CGEventTapOptions options, + DartCGEventMask eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +) { + return _CGEventTapCreate( + tap.value, + place.value, + options.value, + eventsOfInterest, + callback, + userInfo, + ); +} + +@ffi.Native< + CFMachPortRef Function( + ffi.Pointer, + ffi.Uint32, + ffi.Uint32, + CGEventMask, + CGEventTapCallBack, + ffi.Pointer, + ) +>(symbol: 'CGEventTapCreateForPSN') +external CFMachPortRef _CGEventTapCreateForPSN( + ffi.Pointer processSerialNumber, + int place, + int options, + int eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +); + +CFMachPortRef CGEventTapCreateForPSN( + ffi.Pointer processSerialNumber, + CGEventTapPlacement place, + CGEventTapOptions options, + DartCGEventMask eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +) { + return _CGEventTapCreateForPSN( + processSerialNumber, + place.value, + options.value, + eventsOfInterest, + callback, + userInfo, + ); +} + +@ffi.Native< + CFMachPortRef Function( + pid_t, + ffi.Uint32, + ffi.Uint32, + CGEventMask, + CGEventTapCallBack, + ffi.Pointer, + ) +>(symbol: 'CGEventTapCreateForPid') +external CFMachPortRef _CGEventTapCreateForPid( + int pid, + int place, + int options, + int eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +); + +CFMachPortRef CGEventTapCreateForPid( + Dart__int32_t pid, + CGEventTapPlacement place, + CGEventTapOptions options, + DartCGEventMask eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +) { + return _CGEventTapCreateForPid( + pid, + place.value, + options.value, + eventsOfInterest, + callback, + userInfo, + ); +} + +@ffi.Native() +external void CGEventTapEnable(CFMachPortRef tap, bool enable); + +@ffi.Native() +external bool CGEventTapIsEnabled(CFMachPortRef tap); + +@ffi.Native() +external void CGEventTapPostEvent(CGEventTapProxy proxy, CGEventRef event); + +@ffi.Native( + symbol: 'CGFontCanCreatePostScriptSubset', +) +external bool _CGFontCanCreatePostScriptSubset(CGFontRef font, int format); + +bool CGFontCanCreatePostScriptSubset( + CGFontRef font, + CGFontPostScriptFormat format, +) { + return _CGFontCanCreatePostScriptSubset(font, format.value); +} + +@ffi.Native() +external CFStringRef CGFontCopyFullName(CGFontRef font); + +@ffi.Native() +external CFStringRef CGFontCopyGlyphNameForGlyph(CGFontRef font, int glyph); + +@ffi.Native() +external CFStringRef CGFontCopyPostScriptName(CGFontRef font); + +@ffi.Native() +external CFDataRef CGFontCopyTableForTag(CGFontRef font, int tag); + +@ffi.Native() +external CFArrayRef CGFontCopyTableTags(CGFontRef font); + +@ffi.Native() +external CFArrayRef CGFontCopyVariationAxes(CGFontRef font); + +@ffi.Native() +external CFDictionaryRef CGFontCopyVariations(CGFontRef font); + +@ffi.Native() +external CGFontRef CGFontCreateCopyWithVariations( + CGFontRef font, + CFDictionaryRef variations, +); + +@ffi.Native)>() +external CFDataRef CGFontCreatePostScriptEncoding( + CGFontRef font, + ffi.Pointer encoding, +); + +@ffi.Native< + CFDataRef Function( + CGFontRef, + CFStringRef, + ffi.Int32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'CGFontCreatePostScriptSubset') +external CFDataRef _CGFontCreatePostScriptSubset( + CGFontRef font, + CFStringRef subsetName, + int format, + ffi.Pointer glyphs, + int count, + ffi.Pointer encoding, +); + +CFDataRef CGFontCreatePostScriptSubset( + CGFontRef font, + CFStringRef subsetName, + CGFontPostScriptFormat format, + ffi.Pointer glyphs, + int count, + ffi.Pointer encoding, +) { + return _CGFontCreatePostScriptSubset( + font, + subsetName, + format.value, + glyphs, + count, + encoding, + ); +} + +@ffi.Native() +external CGFontRef CGFontCreateWithDataProvider(CGDataProviderRef provider); + +@ffi.Native() +external CGFontRef CGFontCreateWithFontName(CFStringRef name); + +@Deprecated('No longer supported') +@ffi.Native)>() +external CGFontRef CGFontCreateWithPlatformFont( + ffi.Pointer platformFontReference, +); + +@ffi.Native() +external int CGFontGetAscent(CGFontRef font); + +@ffi.Native() +external int CGFontGetCapHeight(CGFontRef font); + +@ffi.Native() +external int CGFontGetDescent(CGFontRef font); + +@ffi.Native() +external objc.CGRect CGFontGetFontBBox(CGFontRef font); + +@ffi.Native< + ffi.Bool Function( + CGFontRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external bool CGFontGetGlyphAdvances( + CGFontRef font, + ffi.Pointer glyphs, + int count, + ffi.Pointer advances, +); + +@ffi.Native< + ffi.Bool Function( + CGFontRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external bool CGFontGetGlyphBBoxes( + CGFontRef font, + ffi.Pointer glyphs, + int count, + ffi.Pointer bboxes, +); + +@ffi.Native() +external int CGFontGetGlyphWithGlyphName(CGFontRef font, CFStringRef name); + +@ffi.Native() +external double CGFontGetItalicAngle(CGFontRef font); + +@ffi.Native() +external int CGFontGetLeading(CGFontRef font); + +@ffi.Native() +external int CGFontGetNumberOfGlyphs(CGFontRef font); + +@ffi.Native() +external double CGFontGetStemV(CGFontRef font); + +@ffi.Native() +external int CGFontGetTypeID(); + +@ffi.Native() +external int CGFontGetUnitsPerEm(CGFontRef font); + +@ffi.Native() +external int CGFontGetXHeight(CGFontRef font); + +@ffi.Native() +external void CGFontRelease(CGFontRef font); + +@ffi.Native() +external CGFontRef CGFontRetain(CGFontRef font); + +@ffi.Native< + CGFunctionRef Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGFunctionRef CGFunctionCreate( + ffi.Pointer info, + int domainDimension, + ffi.Pointer domain, + int rangeDimension, + ffi.Pointer range, + ffi.Pointer callbacks, +); + +@ffi.Native() +external int CGFunctionGetTypeID(); + +@ffi.Native() +external void CGFunctionRelease(CGFunctionRef function); + +@ffi.Native() +external CGFunctionRef CGFunctionRetain(CGFunctionRef function); + +@ffi.Native< + ffi.Int32 Function( + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetActiveDisplayList') +external int _CGGetActiveDisplayList( + int maxDisplays, + ffi.Pointer activeDisplays, + ffi.Pointer displayCount, +); + +CGError CGGetActiveDisplayList( + int maxDisplays, + ffi.Pointer activeDisplays, + ffi.Pointer displayCount, +) { + return CGError.fromValue( + _CGGetActiveDisplayList(maxDisplays, activeDisplays, displayCount), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGDirectDisplayID, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetDisplayTransferByFormula') +external int _CGGetDisplayTransferByFormula( + int display, + ffi.Pointer redMin, + ffi.Pointer redMax, + ffi.Pointer redGamma, + ffi.Pointer greenMin, + ffi.Pointer greenMax, + ffi.Pointer greenGamma, + ffi.Pointer blueMin, + ffi.Pointer blueMax, + ffi.Pointer blueGamma, +); + +CGError CGGetDisplayTransferByFormula( + DartCGDirectDisplayID display, + ffi.Pointer redMin, + ffi.Pointer redMax, + ffi.Pointer redGamma, + ffi.Pointer greenMin, + ffi.Pointer greenMax, + ffi.Pointer greenGamma, + ffi.Pointer blueMin, + ffi.Pointer blueMax, + ffi.Pointer blueGamma, +) { + return CGError.fromValue( + _CGGetDisplayTransferByFormula( + display, + redMin, + redMax, + redGamma, + greenMin, + greenMax, + greenGamma, + blueMin, + blueMax, + blueGamma, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGDirectDisplayID, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetDisplayTransferByTable') +external int _CGGetDisplayTransferByTable( + int display, + int capacity, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, + ffi.Pointer sampleCount, +); + +CGError CGGetDisplayTransferByTable( + DartCGDirectDisplayID display, + int capacity, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, + ffi.Pointer sampleCount, +) { + return CGError.fromValue( + _CGGetDisplayTransferByTable( + display, + capacity, + redTable, + greenTable, + blueTable, + sampleCount, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGOpenGLDisplayMask, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetDisplaysWithOpenGLDisplayMask') +external int _CGGetDisplaysWithOpenGLDisplayMask( + int mask, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +); + +CGError CGGetDisplaysWithOpenGLDisplayMask( + DartCGOpenGLDisplayMask mask, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +) { + return CGError.fromValue( + _CGGetDisplaysWithOpenGLDisplayMask( + mask, + maxDisplays, + displays, + matchingDisplayCount, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function( + objc.CGPoint, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetDisplaysWithPoint') +external int _CGGetDisplaysWithPoint( + objc.CGPoint point, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +); + +CGError CGGetDisplaysWithPoint( + objc.CGPoint point, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +) { + return CGError.fromValue( + _CGGetDisplaysWithPoint(point, maxDisplays, displays, matchingDisplayCount), + ); +} + +@ffi.Native< + ffi.Int32 Function( + objc.CGRect, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetDisplaysWithRect') +external int _CGGetDisplaysWithRect( + objc.CGRect rect, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +); + +CGError CGGetDisplaysWithRect( + objc.CGRect rect, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +) { + return CGError.fromValue( + _CGGetDisplaysWithRect(rect, maxDisplays, displays, matchingDisplayCount), + ); +} + +@ffi.Native< + ffi.Int32 Function( + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetEventTapList') +external int _CGGetEventTapList( + int maxNumberOfTaps, + ffi.Pointer tapList, + ffi.Pointer eventTapCount, +); + +CGError CGGetEventTapList( + int maxNumberOfTaps, + ffi.Pointer tapList, + ffi.Pointer eventTapCount, +) { + return CGError.fromValue( + _CGGetEventTapList(maxNumberOfTaps, tapList, eventTapCount), + ); +} + +@ffi.Native, ffi.Pointer)>() +external void CGGetLastMouseDelta( + ffi.Pointer deltaX, + ffi.Pointer deltaY, +); + +@ffi.Native< + ffi.Int32 Function( + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetOnlineDisplayList') +external int _CGGetOnlineDisplayList( + int maxDisplays, + ffi.Pointer onlineDisplays, + ffi.Pointer displayCount, +); + +CGError CGGetOnlineDisplayList( + int maxDisplays, + ffi.Pointer onlineDisplays, + ffi.Pointer displayCount, +) { + return CGError.fromValue( + _CGGetOnlineDisplayList(maxDisplays, onlineDisplays, displayCount), + ); +} + +@ffi.Native< + CGGradientRef Function( + CGColorSpaceRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external CGGradientRef CGGradientCreateWithColorComponents( + CGColorSpaceRef space, + ffi.Pointer components, + ffi.Pointer locations, + int count, +); + +@ffi.Native< + CGGradientRef Function(CGColorSpaceRef, CFArrayRef, ffi.Pointer) +>() +external CGGradientRef CGGradientCreateWithColors( + CGColorSpaceRef space, + CFArrayRef colors, + ffi.Pointer locations, +); + +@ffi.Native< + CGGradientRef Function( + ffi.Float, + CGColorSpaceRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external CGGradientRef CGGradientCreateWithContentHeadroom( + double headroom, + CGColorSpaceRef space, + ffi.Pointer components, + ffi.Pointer locations, + int count, +); + +@ffi.Native() +external double CGGradientGetContentHeadroom(CGGradientRef gradient); + +@ffi.Native() +external int CGGradientGetTypeID(); + +@ffi.Native() +external void CGGradientRelease(CGGradientRef gradient); + +@ffi.Native() +external CGGradientRef CGGradientRetain(CGGradientRef gradient); + +@ffi.Native() +external double CGImageCalculateContentAverageLightLevel(CGImageRef image); + +@ffi.Native() +external double CGImageCalculateContentHeadroom(CGImageRef image); + +@ffi.Native() +external bool CGImageContainsImageSpecificToneMappingMetadata(CGImageRef image); + +@ffi.Native< + CGImageRef Function( + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + CGColorSpaceRef, + ffi.Uint32, + CGDataProviderRef, + ffi.Pointer, + ffi.Bool, + ffi.Int32, + ) +>(symbol: 'CGImageCreate') +external CGImageRef _CGImageCreate( + int width, + int height, + int bitsPerComponent, + int bitsPerPixel, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, + CGDataProviderRef provider, + ffi.Pointer decode, + bool shouldInterpolate, + int intent, +); + +CGImageRef CGImageCreate( + int width, + int height, + int bitsPerComponent, + int bitsPerPixel, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, + CGDataProviderRef provider, + ffi.Pointer decode, + bool shouldInterpolate, + CGColorRenderingIntent intent, +) { + return _CGImageCreate( + width, + height, + bitsPerComponent, + bitsPerPixel, + bytesPerRow, + space, + bitmapInfo, + provider, + decode, + shouldInterpolate, + intent.value, + ); +} + +@ffi.Native() +external CGImageRef CGImageCreateCopy(CGImageRef image); + +@ffi.Native() +external CGImageRef CGImageCreateCopyWithCalculatedHDRStats(CGImageRef image); + +@ffi.Native() +external CGImageRef CGImageCreateCopyWithColorSpace( + CGImageRef image, + CGColorSpaceRef space, +); + +@ffi.Native() +external CGImageRef CGImageCreateCopyWithContentAverageLightLevel( + CGImageRef image, + double avll, +); + +@ffi.Native() +external CGImageRef CGImageCreateCopyWithContentHeadroom( + double headroom, + CGImageRef image, +); + +@ffi.Native< + CGImageRef Function( + ffi.Float, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + CGColorSpaceRef, + ffi.Uint32, + CGDataProviderRef, + ffi.Pointer, + ffi.Bool, + ffi.Int32, + ) +>(symbol: 'CGImageCreateWithContentHeadroom') +external CGImageRef _CGImageCreateWithContentHeadroom( + double headroom, + int width, + int height, + int bitsPerComponent, + int bitsPerPixel, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, + CGDataProviderRef provider, + ffi.Pointer decode, + bool shouldInterpolate, + int intent, +); + +CGImageRef CGImageCreateWithContentHeadroom( + double headroom, + int width, + int height, + int bitsPerComponent, + int bitsPerPixel, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, + CGDataProviderRef provider, + ffi.Pointer decode, + bool shouldInterpolate, + CGColorRenderingIntent intent, +) { + return _CGImageCreateWithContentHeadroom( + headroom, + width, + height, + bitsPerComponent, + bitsPerPixel, + bytesPerRow, + space, + bitmapInfo, + provider, + decode, + shouldInterpolate, + intent.value, + ); +} + +@ffi.Native() +external CGImageRef CGImageCreateWithImageInRect( + CGImageRef image, + objc.CGRect rect, +); + +@ffi.Native< + CGImageRef Function( + CGDataProviderRef, + ffi.Pointer, + ffi.Bool, + ffi.Int32, + ) +>(symbol: 'CGImageCreateWithJPEGDataProvider') +external CGImageRef _CGImageCreateWithJPEGDataProvider( + CGDataProviderRef source, + ffi.Pointer decode, + bool shouldInterpolate, + int intent, +); + +CGImageRef CGImageCreateWithJPEGDataProvider( + CGDataProviderRef source, + ffi.Pointer decode, + bool shouldInterpolate, + CGColorRenderingIntent intent, +) { + return _CGImageCreateWithJPEGDataProvider( + source, + decode, + shouldInterpolate, + intent.value, + ); +} + +@ffi.Native() +external CGImageRef CGImageCreateWithMask(CGImageRef image, CGImageRef mask); + +@ffi.Native)>() +external CGImageRef CGImageCreateWithMaskingColors( + CGImageRef image, + ffi.Pointer components, +); + +@ffi.Native< + CGImageRef Function( + CGDataProviderRef, + ffi.Pointer, + ffi.Bool, + ffi.Int32, + ) +>(symbol: 'CGImageCreateWithPNGDataProvider') +external CGImageRef _CGImageCreateWithPNGDataProvider( + CGDataProviderRef source, + ffi.Pointer decode, + bool shouldInterpolate, + int intent, +); + +CGImageRef CGImageCreateWithPNGDataProvider( + CGDataProviderRef source, + ffi.Pointer decode, + bool shouldInterpolate, + CGColorRenderingIntent intent, +) { + return _CGImageCreateWithPNGDataProvider( + source, + decode, + shouldInterpolate, + intent.value, + ); +} + +@ffi.Native< + ffi.Void Function(CGImageDestinationRef, CFStringRef, CFDictionaryRef) +>() +external void CGImageDestinationAddAuxiliaryDataInfo( + CGImageDestinationRef idst, + CFStringRef auxiliaryImageDataType, + CFDictionaryRef auxiliaryDataInfoDictionary, +); + +@ffi.Native< + ffi.Void Function(CGImageDestinationRef, CGImageRef, CFDictionaryRef) +>() +external void CGImageDestinationAddImage( + CGImageDestinationRef idst, + CGImageRef image, + CFDictionaryRef properties, +); + +@ffi.Native< + ffi.Void Function( + CGImageDestinationRef, + CGImageRef, + CGImageMetadataRef, + CFDictionaryRef, + ) +>() +external void CGImageDestinationAddImageAndMetadata( + CGImageDestinationRef idst, + CGImageRef image, + CGImageMetadataRef metadata, + CFDictionaryRef options, +); + +@ffi.Native< + ffi.Void Function( + CGImageDestinationRef, + CGImageSourceRef, + ffi.Size, + CFDictionaryRef, + ) +>() +external void CGImageDestinationAddImageFromSource( + CGImageDestinationRef idst, + CGImageSourceRef isrc, + int index$1, + CFDictionaryRef properties, +); + +@ffi.Native< + ffi.Bool Function( + CGImageDestinationRef, + CGImageSourceRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external bool CGImageDestinationCopyImageSource( + CGImageDestinationRef idst, + CGImageSourceRef isrc, + CFDictionaryRef options, + ffi.Pointer err, +); + +@ffi.Native() +external CFArrayRef CGImageDestinationCopyTypeIdentifiers(); + +@ffi.Native< + CGImageDestinationRef Function( + CFMutableDataRef, + CFStringRef, + ffi.Size, + CFDictionaryRef, + ) +>() +external CGImageDestinationRef CGImageDestinationCreateWithData( + CFMutableDataRef data, + CFStringRef type, + int count, + CFDictionaryRef options, +); + +@ffi.Native< + CGImageDestinationRef Function( + CGDataConsumerRef, + CFStringRef, + ffi.Size, + CFDictionaryRef, + ) +>() +external CGImageDestinationRef CGImageDestinationCreateWithDataConsumer( + CGDataConsumerRef consumer, + CFStringRef type, + int count, + CFDictionaryRef options, +); + +@ffi.Native< + CGImageDestinationRef Function( + CFURLRef, + CFStringRef, + ffi.Size, + CFDictionaryRef, + ) +>() +external CGImageDestinationRef CGImageDestinationCreateWithURL( + CFURLRef url, + CFStringRef type, + int count, + CFDictionaryRef options, +); + +@ffi.Native() +external bool CGImageDestinationFinalize(CGImageDestinationRef idst); + +@ffi.Native() +external int CGImageDestinationGetTypeID(); + +@ffi.Native() +external void CGImageDestinationSetProperties( + CGImageDestinationRef idst, + CFDictionaryRef properties, +); + +@ffi.Native(symbol: 'CGImageGetAlphaInfo') +external int _CGImageGetAlphaInfo(CGImageRef image); + +CGImageAlphaInfo CGImageGetAlphaInfo(CGImageRef image) { + return CGImageAlphaInfo.fromValue(_CGImageGetAlphaInfo(image)); +} + +@ffi.Native() +external int CGImageGetBitmapInfo(CGImageRef image); + +@ffi.Native() +external int CGImageGetBitsPerComponent(CGImageRef image); + +@ffi.Native() +external int CGImageGetBitsPerPixel(CGImageRef image); + +@ffi.Native(symbol: 'CGImageGetByteOrderInfo') +external int _CGImageGetByteOrderInfo(CGImageRef image); + +CGImageByteOrderInfo CGImageGetByteOrderInfo(CGImageRef image) { + return CGImageByteOrderInfo.fromValue(_CGImageGetByteOrderInfo(image)); +} + +@ffi.Native() +external int CGImageGetBytesPerRow(CGImageRef image); + +@ffi.Native() +external CGColorSpaceRef CGImageGetColorSpace(CGImageRef image); + +@ffi.Native() +external double CGImageGetContentAverageLightLevel(CGImageRef image); + +@ffi.Native() +external double CGImageGetContentHeadroom(CGImageRef image); + +@ffi.Native() +external CGDataProviderRef CGImageGetDataProvider(CGImageRef image); + +@ffi.Native Function(CGImageRef)>() +external ffi.Pointer CGImageGetDecode(CGImageRef image); + +@ffi.Native() +external int CGImageGetHeight(CGImageRef image); + +@ffi.Native( + symbol: 'CGImageGetPixelFormatInfo', +) +external int _CGImageGetPixelFormatInfo(CGImageRef image); + +CGImagePixelFormatInfo CGImageGetPixelFormatInfo(CGImageRef image) { + return CGImagePixelFormatInfo.fromValue(_CGImageGetPixelFormatInfo(image)); +} + +@ffi.Native(symbol: 'CGImageGetRenderingIntent') +external int _CGImageGetRenderingIntent(CGImageRef image); + +CGColorRenderingIntent CGImageGetRenderingIntent(CGImageRef image) { + return CGColorRenderingIntent.fromValue(_CGImageGetRenderingIntent(image)); +} + +@ffi.Native() +external bool CGImageGetShouldInterpolate(CGImageRef image); + +@ffi.Native() +external int CGImageGetTypeID(); + +@ffi.Native() +external CFStringRef CGImageGetUTType(CGImageRef image); + +@ffi.Native() +external int CGImageGetWidth(CGImageRef image); + +@ffi.Native() +external bool CGImageIsMask(CGImageRef image); + +@ffi.Native< + CGImageRef Function( + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + CGDataProviderRef, + ffi.Pointer, + ffi.Bool, + ) +>() +external CGImageRef CGImageMaskCreate( + int width, + int height, + int bitsPerComponent, + int bitsPerPixel, + int bytesPerRow, + CGDataProviderRef provider, + ffi.Pointer decode, + bool shouldInterpolate, +); + +@ffi.Native< + CFStringRef Function(CGImageMetadataRef, CGImageMetadataTagRef, CFStringRef) +>() +external CFStringRef CGImageMetadataCopyStringValueWithPath( + CGImageMetadataRef metadata, + CGImageMetadataTagRef parent, + CFStringRef path, +); + +@ffi.Native< + CGImageMetadataTagRef Function(CGImageMetadataRef, CFStringRef, CFStringRef) +>() +external CGImageMetadataTagRef CGImageMetadataCopyTagMatchingImageProperty( + CGImageMetadataRef metadata, + CFStringRef dictionaryName, + CFStringRef propertyName, +); + +@ffi.Native< + CGImageMetadataTagRef Function( + CGImageMetadataRef, + CGImageMetadataTagRef, + CFStringRef, + ) +>() +external CGImageMetadataTagRef CGImageMetadataCopyTagWithPath( + CGImageMetadataRef metadata, + CGImageMetadataTagRef parent, + CFStringRef path, +); + +@ffi.Native() +external CFArrayRef CGImageMetadataCopyTags(CGImageMetadataRef metadata); + +@ffi.Native() +external CGImageMetadataRef CGImageMetadataCreateFromXMPData(CFDataRef data); + +@ffi.Native() +external CGMutableImageMetadataRef CGImageMetadataCreateMutable(); + +@ffi.Native() +external CGMutableImageMetadataRef CGImageMetadataCreateMutableCopy( + CGImageMetadataRef metadata, +); + +@ffi.Native() +external CFDataRef CGImageMetadataCreateXMPData( + CGImageMetadataRef metadata, + CFDictionaryRef options, +); + +@ffi.Native< + ffi.Void Function( + CGImageMetadataRef, + CFStringRef, + CFDictionaryRef, + CGImageMetadataTagBlock, + ) +>(symbol: 'CGImageMetadataEnumerateTagsUsingBlock') +external void _CGImageMetadataEnumerateTagsUsingBlock( + CGImageMetadataRef metadata, + CFStringRef rootPath, + CFDictionaryRef options, + CGImageMetadataTagBlock block, +); + +void CGImageMetadataEnumerateTagsUsingBlock( + CGImageMetadataRef metadata, + CFStringRef rootPath, + CFDictionaryRef options, + DartCGImageMetadataTagBlock block, +) { + final _$$ref = block.ref; + return _CGImageMetadataEnumerateTagsUsingBlock( + metadata, + rootPath, + options, + _$$ref.pointer, + ); +} + +@ffi.Native() +external int CGImageMetadataGetTypeID(); + +@ffi.Native< + ffi.Bool Function( + CGMutableImageMetadataRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external bool CGImageMetadataRegisterNamespaceForPrefix( + CGMutableImageMetadataRef metadata, + CFStringRef xmlns, + CFStringRef prefix, + ffi.Pointer err, +); + +@ffi.Native< + ffi.Bool Function( + CGMutableImageMetadataRef, + CGImageMetadataTagRef, + CFStringRef, + ) +>() +external bool CGImageMetadataRemoveTagWithPath( + CGMutableImageMetadataRef metadata, + CGImageMetadataTagRef parent, + CFStringRef path, +); + +@ffi.Native< + ffi.Bool Function( + CGMutableImageMetadataRef, + CGImageMetadataTagRef, + CFStringRef, + CGImageMetadataTagRef, + ) +>() +external bool CGImageMetadataSetTagWithPath( + CGMutableImageMetadataRef metadata, + CGImageMetadataTagRef parent, + CFStringRef path, + CGImageMetadataTagRef tag, +); + +@ffi.Native< + ffi.Bool Function( + CGMutableImageMetadataRef, + CFStringRef, + CFStringRef, + CFTypeRef, + ) +>() +external bool CGImageMetadataSetValueMatchingImageProperty( + CGMutableImageMetadataRef metadata, + CFStringRef dictionaryName, + CFStringRef propertyName, + CFTypeRef value, +); + +@ffi.Native< + ffi.Bool Function( + CGMutableImageMetadataRef, + CGImageMetadataTagRef, + CFStringRef, + CFTypeRef, + ) +>() +external bool CGImageMetadataSetValueWithPath( + CGMutableImageMetadataRef metadata, + CGImageMetadataTagRef parent, + CFStringRef path, + CFTypeRef value, +); + +@ffi.Native() +external CFStringRef CGImageMetadataTagCopyName(CGImageMetadataTagRef tag); + +@ffi.Native() +external CFStringRef CGImageMetadataTagCopyNamespace(CGImageMetadataTagRef tag); + +@ffi.Native() +external CFStringRef CGImageMetadataTagCopyPrefix(CGImageMetadataTagRef tag); + +@ffi.Native() +external CFArrayRef CGImageMetadataTagCopyQualifiers(CGImageMetadataTagRef tag); + +@ffi.Native() +external CFTypeRef CGImageMetadataTagCopyValue(CGImageMetadataTagRef tag); + +@ffi.Native< + CGImageMetadataTagRef Function( + CFStringRef, + CFStringRef, + CFStringRef, + ffi.Int32, + CFTypeRef, + ) +>(symbol: 'CGImageMetadataTagCreate') +external CGImageMetadataTagRef _CGImageMetadataTagCreate( + CFStringRef xmlns, + CFStringRef prefix, + CFStringRef name, + int type, + CFTypeRef value, +); + +CGImageMetadataTagRef CGImageMetadataTagCreate( + CFStringRef xmlns, + CFStringRef prefix, + CFStringRef name, + CGImageMetadataType type, + CFTypeRef value, +) { + return _CGImageMetadataTagCreate(xmlns, prefix, name, type.value, value); +} + +@ffi.Native( + symbol: 'CGImageMetadataTagGetType', +) +external int _CGImageMetadataTagGetType(CGImageMetadataTagRef tag); + +CGImageMetadataType CGImageMetadataTagGetType(CGImageMetadataTagRef tag) { + return CGImageMetadataType.fromValue(_CGImageMetadataTagGetType(tag)); +} + +@ffi.Native() +external int CGImageMetadataTagGetTypeID(); + +@ffi.Native() +external void CGImageRelease(CGImageRef image); + +@ffi.Native() +external CGImageRef CGImageRetain(CGImageRef image); + +@ffi.Native() +external bool CGImageShouldToneMap(CGImageRef image); + +@ffi.Native() +external CFDictionaryRef CGImageSourceCopyAuxiliaryDataInfoAtIndex( + CGImageSourceRef isrc, + int index$1, + CFStringRef auxiliaryImageDataType, +); + +@ffi.Native< + CGImageMetadataRef Function(CGImageSourceRef, ffi.Size, CFDictionaryRef) +>() +external CGImageMetadataRef CGImageSourceCopyMetadataAtIndex( + CGImageSourceRef isrc, + int index$1, + CFDictionaryRef options, +); + +@ffi.Native() +external CFDictionaryRef CGImageSourceCopyProperties( + CGImageSourceRef isrc, + CFDictionaryRef options, +); + +@ffi.Native< + CFDictionaryRef Function(CGImageSourceRef, ffi.Size, CFDictionaryRef) +>() +external CFDictionaryRef CGImageSourceCopyPropertiesAtIndex( + CGImageSourceRef isrc, + int index$1, + CFDictionaryRef options, +); + +@ffi.Native() +external CFArrayRef CGImageSourceCopyTypeIdentifiers(); + +@ffi.Native() +external CGImageRef CGImageSourceCreateImageAtIndex( + CGImageSourceRef isrc, + int index$1, + CFDictionaryRef options, +); + +@ffi.Native() +external CGImageSourceRef CGImageSourceCreateIncremental( + CFDictionaryRef options, +); + +@ffi.Native() +external CGImageRef CGImageSourceCreateThumbnailAtIndex( + CGImageSourceRef isrc, + int index$1, + CFDictionaryRef options, +); + +@ffi.Native() +external CGImageSourceRef CGImageSourceCreateWithData( + CFDataRef data, + CFDictionaryRef options, +); + +@ffi.Native() +external CGImageSourceRef CGImageSourceCreateWithDataProvider( + CGDataProviderRef provider, + CFDictionaryRef options, +); + +@ffi.Native() +external CGImageSourceRef CGImageSourceCreateWithURL( + CFURLRef url, + CFDictionaryRef options, +); + +@ffi.Native() +external int CGImageSourceGetCount(CGImageSourceRef isrc); + +@ffi.Native() +external int CGImageSourceGetPrimaryImageIndex(CGImageSourceRef isrc); + +@ffi.Native( + symbol: 'CGImageSourceGetStatus', +) +external int _CGImageSourceGetStatus(CGImageSourceRef isrc); + +CGImageSourceStatus CGImageSourceGetStatus(CGImageSourceRef isrc) { + return CGImageSourceStatus.fromValue(_CGImageSourceGetStatus(isrc)); +} + +@ffi.Native( + symbol: 'CGImageSourceGetStatusAtIndex', +) +external int _CGImageSourceGetStatusAtIndex(CGImageSourceRef isrc, int index$1); + +CGImageSourceStatus CGImageSourceGetStatusAtIndex( + CGImageSourceRef isrc, + int index$1, +) { + return CGImageSourceStatus.fromValue( + _CGImageSourceGetStatusAtIndex(isrc, index$1), + ); +} + +@ffi.Native() +external CFStringRef CGImageSourceGetType(CGImageSourceRef isrc); + +@ffi.Native() +external int CGImageSourceGetTypeID(); + +@ffi.Native() +external void CGImageSourceRemoveCacheAtIndex( + CGImageSourceRef isrc, + int index$1, +); + +@ffi.Native() +external int CGImageSourceSetAllowableTypes(CFArrayRef allowableTypes); + +@ffi.Native() +external void CGImageSourceUpdateData( + CGImageSourceRef isrc, + CFDataRef data, + bool final$, +); + +@ffi.Native() +external void CGImageSourceUpdateDataProvider( + CGImageSourceRef isrc, + CGDataProviderRef provider, + bool final$, +); + +@Deprecated('No longer supported') +@ffi.Native(symbol: 'CGInhibitLocalEvents') +external int _CGInhibitLocalEvents(int inhibit); + +CGError CGInhibitLocalEvents(Dartboolean_t inhibit) { + return CGError.fromValue(_CGInhibitLocalEvents(inhibit)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGLChoosePixelFormat') +external int _CGLChoosePixelFormat( + ffi.Pointer attribs, + ffi.Pointer pix, + ffi.Pointer npix, +); + +_CGLError CGLChoosePixelFormat( + ffi.Pointer attribs, + ffi.Pointer pix, + ffi.Pointer npix, +) { + return _CGLError.fromValue(_CGLChoosePixelFormat(attribs, pix, npix)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native(symbol: 'CGLClearDrawable') +external int _CGLClearDrawable(CGLContextObj ctx); + +_CGLError CGLClearDrawable(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLClearDrawable(ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLCopyContext', +) +external int _CGLCopyContext(CGLContextObj src, CGLContextObj dst, int mask); + +_CGLError CGLCopyContext( + CGLContextObj src, + CGLContextObj dst, + DartGLbitfield mask, +) { + return _CGLError.fromValue(_CGLCopyContext(src, dst, mask)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLPixelFormatObj, + CGLContextObj, + ffi.Pointer, + ) +>(symbol: 'CGLCreateContext') +external int _CGLCreateContext( + CGLPixelFormatObj pix, + CGLContextObj share, + ffi.Pointer ctx, +); + +_CGLError CGLCreateContext( + CGLPixelFormatObj pix, + CGLContextObj share, + ffi.Pointer ctx, +) { + return _CGLError.fromValue(_CGLCreateContext(pix, share, ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + GLsizei, + GLsizei, + GLenum, + GLenum, + GLint, + ffi.Pointer, + ) +>(symbol: 'CGLCreatePBuffer') +external int _CGLCreatePBuffer( + int width, + int height, + int target, + int internalFormat, + int max_level, + ffi.Pointer pbuffer, +); + +_CGLError CGLCreatePBuffer( + DartGLsizei width, + DartGLsizei height, + DartGLenum target, + DartGLenum internalFormat, + DartGLint max_level, + ffi.Pointer pbuffer, +) { + return _CGLError.fromValue( + _CGLCreatePBuffer( + width, + height, + target, + internalFormat, + max_level, + pbuffer, + ), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLPBufferObj, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGLDescribePBuffer') +external int _CGLDescribePBuffer( + CGLPBufferObj obj, + ffi.Pointer width, + ffi.Pointer height, + ffi.Pointer target, + ffi.Pointer internalFormat, + ffi.Pointer mipmap, +); + +_CGLError CGLDescribePBuffer( + CGLPBufferObj obj, + ffi.Pointer width, + ffi.Pointer height, + ffi.Pointer target, + ffi.Pointer internalFormat, + ffi.Pointer mipmap, +) { + return _CGLError.fromValue( + _CGLDescribePBuffer(obj, width, height, target, internalFormat, mipmap), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLPixelFormatObj, + GLint, + ffi.UnsignedInt, + ffi.Pointer, + ) +>(symbol: 'CGLDescribePixelFormat') +external int _CGLDescribePixelFormat( + CGLPixelFormatObj pix, + int pix_num, + int attrib, + ffi.Pointer value, +); + +_CGLError CGLDescribePixelFormat( + CGLPixelFormatObj pix, + DartGLint pix_num, + _CGLPixelFormatAttribute attrib, + ffi.Pointer value, +) { + return _CGLError.fromValue( + _CGLDescribePixelFormat(pix, pix_num, attrib.value, value), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLRendererInfoObj, + GLint, + ffi.UnsignedInt, + ffi.Pointer, + ) +>(symbol: 'CGLDescribeRenderer') +external int _CGLDescribeRenderer( + CGLRendererInfoObj rend, + int rend_num, + int prop, + ffi.Pointer value, +); + +_CGLError CGLDescribeRenderer( + CGLRendererInfoObj rend, + DartGLint rend_num, + _CGLRendererProperty prop, + ffi.Pointer value, +) { + return _CGLError.fromValue( + _CGLDescribeRenderer(rend, rend_num, prop.value, value), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLDestroyContext', +) +external int _CGLDestroyContext(CGLContextObj ctx); + +_CGLError CGLDestroyContext(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLDestroyContext(ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLDestroyPBuffer', +) +external int _CGLDestroyPBuffer(CGLPBufferObj pbuffer); + +_CGLError CGLDestroyPBuffer(CGLPBufferObj pbuffer) { + return _CGLError.fromValue(_CGLDestroyPBuffer(pbuffer)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLDestroyPixelFormat', +) +external int _CGLDestroyPixelFormat(CGLPixelFormatObj pix); + +_CGLError CGLDestroyPixelFormat(CGLPixelFormatObj pix) { + return _CGLError.fromValue(_CGLDestroyPixelFormat(pix)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLDestroyRendererInfo', +) +external int _CGLDestroyRendererInfo(CGLRendererInfoObj rend); + +_CGLError CGLDestroyRendererInfo(CGLRendererInfoObj rend) { + return _CGLError.fromValue(_CGLDestroyRendererInfo(rend)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLDisable', +) +external int _CGLDisable(CGLContextObj ctx, int pname); + +_CGLError CGLDisable(CGLContextObj ctx, _CGLContextEnable pname) { + return _CGLError.fromValue(_CGLDisable(ctx, pname.value)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLEnable', +) +external int _CGLEnable(CGLContextObj ctx, int pname); + +_CGLError CGLEnable(CGLContextObj ctx, _CGLContextEnable pname) { + return _CGLError.fromValue(_CGLEnable(ctx, pname.value)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native Function(ffi.UnsignedInt)>( + symbol: 'CGLErrorString', +) +external ffi.Pointer _CGLErrorString(int error); + +ffi.Pointer CGLErrorString(_CGLError error) { + return _CGLErrorString(error.value); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native(symbol: 'CGLFlushDrawable') +external int _CGLFlushDrawable(CGLContextObj ctx); + +_CGLError CGLFlushDrawable(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLFlushDrawable(ctx)); +} + +@ffi.Native() +external int CGLGetContextRetainCount(CGLContextObj ctx); + +@ffi.Native() +external CGLContextObj CGLGetCurrentContext(); + +@ffi.Native() +external cl_device_id CGLGetDeviceFromGLRenderer(int rendererID); + +@ffi.Native)>( + symbol: 'CGLGetGlobalOption', +) +external int _CGLGetGlobalOption(int pname, ffi.Pointer params); + +_CGLError CGLGetGlobalOption( + _CGLGlobalOption pname, + ffi.Pointer params, +) { + return _CGLError.fromValue(_CGLGetGlobalOption(pname.value, params)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLContextObj, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>(symbol: 'CGLGetOffScreen') +external int _CGLGetOffScreen( + CGLContextObj ctx, + ffi.Pointer width, + ffi.Pointer height, + ffi.Pointer rowbytes, + ffi.Pointer> baseaddr, +); + +_CGLError CGLGetOffScreen( + CGLContextObj ctx, + ffi.Pointer width, + ffi.Pointer height, + ffi.Pointer rowbytes, + ffi.Pointer> baseaddr, +) { + return _CGLError.fromValue( + _CGLGetOffScreen(ctx, width, height, rowbytes, baseaddr), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native)>( + symbol: 'CGLGetOption', +) +external int _CGLGetOption(int pname, ffi.Pointer param); + +_CGLError CGLGetOption(_CGLGlobalOption pname, ffi.Pointer param) { + return _CGLError.fromValue(_CGLGetOption(pname.value, param)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLContextObj, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGLGetPBuffer') +external int _CGLGetPBuffer( + CGLContextObj ctx, + ffi.Pointer pbuffer, + ffi.Pointer face, + ffi.Pointer level, + ffi.Pointer screen, +); + +_CGLError CGLGetPBuffer( + CGLContextObj ctx, + ffi.Pointer pbuffer, + ffi.Pointer face, + ffi.Pointer level, + ffi.Pointer screen, +) { + return _CGLError.fromValue(_CGLGetPBuffer(ctx, pbuffer, face, level, screen)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CGLGetPBufferRetainCount(CGLPBufferObj pbuffer); + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'CGLGetParameter') +external int _CGLGetParameter( + CGLContextObj ctx, + int pname, + ffi.Pointer params, +); + +_CGLError CGLGetParameter( + CGLContextObj ctx, + _CGLContextParameter pname, + ffi.Pointer params, +) { + return _CGLError.fromValue(_CGLGetParameter(ctx, pname.value, params)); +} + +@ffi.Native() +external CGLPixelFormatObj CGLGetPixelFormat(CGLContextObj ctx); + +@ffi.Native() +external int CGLGetPixelFormatRetainCount(CGLPixelFormatObj pix); + +@ffi.Native() +external CGLShareGroupObj CGLGetShareGroup(CGLContextObj ctx); + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native, ffi.Pointer)>() +external void CGLGetVersion( + ffi.Pointer majorvers, + ffi.Pointer minorvers, +); + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native)>( + symbol: 'CGLGetVirtualScreen', +) +external int _CGLGetVirtualScreen(CGLContextObj ctx, ffi.Pointer screen); + +_CGLError CGLGetVirtualScreen(CGLContextObj ctx, ffi.Pointer screen) { + return _CGLError.fromValue(_CGLGetVirtualScreen(ctx, screen)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'CGLIsEnabled') +external int _CGLIsEnabled( + CGLContextObj ctx, + int pname, + ffi.Pointer enable, +); + +_CGLError CGLIsEnabled( + CGLContextObj ctx, + _CGLContextEnable pname, + ffi.Pointer enable, +) { + return _CGLError.fromValue(_CGLIsEnabled(ctx, pname.value, enable)); +} + +@ffi.Native(symbol: 'CGLLockContext') +external int _CGLLockContext(CGLContextObj ctx); + +_CGLError CGLLockContext(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLLockContext(ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + GLuint, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGLQueryRendererInfo') +external int _CGLQueryRendererInfo( + int display_mask, + ffi.Pointer rend, + ffi.Pointer nrend, +); + +_CGLError CGLQueryRendererInfo( + DartGLuint display_mask, + ffi.Pointer rend, + ffi.Pointer nrend, +) { + return _CGLError.fromValue(_CGLQueryRendererInfo(display_mask, rend, nrend)); +} + +@ffi.Native() +external void CGLReleaseContext(CGLContextObj ctx); + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CGLReleasePBuffer(CGLPBufferObj pbuffer); + +@ffi.Native() +external void CGLReleasePixelFormat(CGLPixelFormatObj pix); + +@ffi.Native() +external CGLContextObj CGLRetainContext(CGLContextObj ctx); + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CGLPBufferObj CGLRetainPBuffer(CGLPBufferObj pbuffer); + +@ffi.Native() +external CGLPixelFormatObj CGLRetainPixelFormat(CGLPixelFormatObj pix); + +@ffi.Native( + symbol: 'CGLSetCurrentContext', +) +external int _CGLSetCurrentContext(CGLContextObj ctx); + +_CGLError CGLSetCurrentContext(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLSetCurrentContext(ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native(symbol: 'CGLSetFullScreen') +external int _CGLSetFullScreen(CGLContextObj ctx); + +_CGLError CGLSetFullScreen(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLSetFullScreen(ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLSetFullScreenOnDisplay', +) +external int _CGLSetFullScreenOnDisplay(CGLContextObj ctx, int display_mask); + +_CGLError CGLSetFullScreenOnDisplay( + CGLContextObj ctx, + DartGLuint display_mask, +) { + return _CGLError.fromValue(_CGLSetFullScreenOnDisplay(ctx, display_mask)); +} + +@ffi.Native)>( + symbol: 'CGLSetGlobalOption', +) +external int _CGLSetGlobalOption(int pname, ffi.Pointer params); + +_CGLError CGLSetGlobalOption( + _CGLGlobalOption pname, + ffi.Pointer params, +) { + return _CGLError.fromValue(_CGLSetGlobalOption(pname.value, params)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLContextObj, + GLsizei, + GLsizei, + GLint, + ffi.Pointer, + ) +>(symbol: 'CGLSetOffScreen') +external int _CGLSetOffScreen( + CGLContextObj ctx, + int width, + int height, + int rowbytes, + ffi.Pointer baseaddr, +); + +_CGLError CGLSetOffScreen( + CGLContextObj ctx, + DartGLsizei width, + DartGLsizei height, + DartGLint rowbytes, + ffi.Pointer baseaddr, +) { + return _CGLError.fromValue( + _CGLSetOffScreen(ctx, width, height, rowbytes, baseaddr), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLSetOption', +) +external int _CGLSetOption(int pname, int param); + +_CGLError CGLSetOption(_CGLGlobalOption pname, DartGLint param) { + return _CGLError.fromValue(_CGLSetOption(pname.value, param)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function(CGLContextObj, CGLPBufferObj, GLenum, GLint, GLint) +>(symbol: 'CGLSetPBuffer') +external int _CGLSetPBuffer( + CGLContextObj ctx, + CGLPBufferObj pbuffer, + int face, + int level, + int screen, +); + +_CGLError CGLSetPBuffer( + CGLContextObj ctx, + CGLPBufferObj pbuffer, + DartGLenum face, + DartGLint level, + DartGLint screen, +) { + return _CGLError.fromValue(_CGLSetPBuffer(ctx, pbuffer, face, level, screen)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'CGLSetParameter') +external int _CGLSetParameter( + CGLContextObj ctx, + int pname, + ffi.Pointer params, +); + +_CGLError CGLSetParameter( + CGLContextObj ctx, + _CGLContextParameter pname, + ffi.Pointer params, +) { + return _CGLError.fromValue(_CGLSetParameter(ctx, pname.value, params)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLSetVirtualScreen', +) +external int _CGLSetVirtualScreen(CGLContextObj ctx, int screen); + +_CGLError CGLSetVirtualScreen(CGLContextObj ctx, DartGLint screen) { + return _CGLError.fromValue(_CGLSetVirtualScreen(ctx, screen)); +} + +@ffi.Native< + ffi.UnsignedInt Function( + CGLContextObj, + GLenum, + GLenum, + GLsizei, + GLsizei, + GLenum, + GLenum, + IOSurfaceRef, + GLuint, + ) +>(symbol: 'CGLTexImageIOSurface2D') +external int _CGLTexImageIOSurface2D( + CGLContextObj ctx, + int target, + int internal_format, + int width, + int height, + int format, + int type, + IOSurfaceRef ioSurface, + int plane, +); + +_CGLError CGLTexImageIOSurface2D( + CGLContextObj ctx, + DartGLenum target, + DartGLenum internal_format, + DartGLsizei width, + DartGLsizei height, + DartGLenum format, + DartGLenum type, + IOSurfaceRef ioSurface, + DartGLuint plane, +) { + return _CGLError.fromValue( + _CGLTexImageIOSurface2D( + ctx, + target, + internal_format, + width, + height, + format, + type, + ioSurface, + plane, + ), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLTexImagePBuffer', +) +external int _CGLTexImagePBuffer( + CGLContextObj ctx, + CGLPBufferObj pbuffer, + int source, +); + +_CGLError CGLTexImagePBuffer( + CGLContextObj ctx, + CGLPBufferObj pbuffer, + DartGLenum source, +) { + return _CGLError.fromValue(_CGLTexImagePBuffer(ctx, pbuffer, source)); +} + +@ffi.Native(symbol: 'CGLUnlockContext') +external int _CGLUnlockContext(CGLContextObj ctx); + +_CGLError CGLUnlockContext(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLUnlockContext(ctx)); +} + +@ffi.Native(symbol: 'CGLUpdateContext') +external int _CGLUpdateContext(CGLContextObj ctx); + +_CGLError CGLUpdateContext(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLUpdateContext(ctx)); +} + +@ffi.Native() +external CGLayerRef CGLayerCreateWithContext( + CGContextRef context, + objc.CGSize size, + CFDictionaryRef auxiliaryInfo, +); + +@ffi.Native() +external CGContextRef CGLayerGetContext(CGLayerRef layer); + +@ffi.Native() +external objc.CGSize CGLayerGetSize(CGLayerRef layer); + +@ffi.Native() +external int CGLayerGetTypeID(); + +@ffi.Native() +external void CGLayerRelease(CGLayerRef layer); + +@ffi.Native() +external CGLayerRef CGLayerRetain(CGLayerRef layer); + +@ffi.Native() +external int CGMainDisplayID(); + +@ffi.Native() +external int CGOpenGLDisplayMaskToDisplayID(int mask); + +@ffi.Native< + ffi.Void Function( + CGPDFArrayRef, + CGPDFArrayApplierBlock, + ffi.Pointer, + ) +>(symbol: 'CGPDFArrayApplyBlock') +external void _CGPDFArrayApplyBlock( + CGPDFArrayRef array, + CGPDFArrayApplierBlock block, + ffi.Pointer info, +); + +void CGPDFArrayApplyBlock( + CGPDFArrayRef array, + DartCGPDFArrayApplierBlock? block, + ffi.Pointer info, +) { + final _$$ref = block?.ref; + return _CGPDFArrayApplyBlock(array, _$$ref?.pointer ?? ffi.nullptr, info); +} + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetArray( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetBoolean( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native() +external int CGPDFArrayGetCount(CGPDFArrayRef array); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetDictionary( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetInteger( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer>) +>() +external bool CGPDFArrayGetName( + CGPDFArrayRef array, + int index$1, + ffi.Pointer> value, +); + +@ffi.Native() +external bool CGPDFArrayGetNull(CGPDFArrayRef array, int index$1); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetNumber( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetObject( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetStream( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetString( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native() +external CGPDFContentStreamRef CGPDFContentStreamCreateWithPage( + CGPDFPageRef page, +); + +@ffi.Native< + CGPDFContentStreamRef Function( + CGPDFStreamRef, + CGPDFDictionaryRef, + CGPDFContentStreamRef, + ) +>() +external CGPDFContentStreamRef CGPDFContentStreamCreateWithStream( + CGPDFStreamRef stream, + CGPDFDictionaryRef streamResources, + CGPDFContentStreamRef parent, +); + +@ffi.Native< + CGPDFObjectRef Function( + CGPDFContentStreamRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGPDFObjectRef CGPDFContentStreamGetResource( + CGPDFContentStreamRef cs, + ffi.Pointer category, + ffi.Pointer name, +); + +@ffi.Native() +external CFArrayRef CGPDFContentStreamGetStreams(CGPDFContentStreamRef cs); + +@ffi.Native() +external void CGPDFContentStreamRelease(CGPDFContentStreamRef cs); + +@ffi.Native() +external CGPDFContentStreamRef CGPDFContentStreamRetain( + CGPDFContentStreamRef cs, +); + +@ffi.Native() +external void CGPDFContextAddDestinationAtPoint( + CGContextRef context, + CFStringRef name, + objc.CGPoint point, +); + +@ffi.Native() +external void CGPDFContextAddDocumentMetadata( + CGContextRef context, + CFDataRef metadata, +); + +@ffi.Native() +external void CGPDFContextBeginPage( + CGContextRef context, + CFDictionaryRef pageInfo, +); + +@ffi.Native( + symbol: 'CGPDFContextBeginTag', +) +external void _CGPDFContextBeginTag( + CGContextRef context, + int tagType, + CFDictionaryRef tagProperties, +); + +void CGPDFContextBeginTag( + CGContextRef context, + CGPDFTagType tagType, + CFDictionaryRef tagProperties, +) { + return _CGPDFContextBeginTag(context, tagType.value, tagProperties); +} + +@ffi.Native() +external void CGPDFContextClose(CGContextRef context); + +@ffi.Native< + CGContextRef Function( + CGDataConsumerRef, + ffi.Pointer, + CFDictionaryRef, + ) +>() +external CGContextRef CGPDFContextCreate( + CGDataConsumerRef consumer, + ffi.Pointer mediaBox, + CFDictionaryRef auxiliaryInfo, +); + +@ffi.Native< + CGContextRef Function(CFURLRef, ffi.Pointer, CFDictionaryRef) +>() +external CGContextRef CGPDFContextCreateWithURL( + CFURLRef url, + ffi.Pointer mediaBox, + CFDictionaryRef auxiliaryInfo, +); + +@ffi.Native() +external void CGPDFContextEndPage(CGContextRef context); + +@ffi.Native() +external void CGPDFContextEndTag(CGContextRef context); + +@ffi.Native() +external void CGPDFContextSetDestinationForRect( + CGContextRef context, + CFStringRef name, + objc.CGRect rect, +); + +@ffi.Native() +external void CGPDFContextSetIDTree( + CGContextRef context, + CGPDFDictionaryRef IDTreeDictionary, +); + +@ffi.Native() +external void CGPDFContextSetOutline( + CGContextRef context, + CFDictionaryRef outline$1, +); + +@ffi.Native() +external void CGPDFContextSetPageTagStructureTree( + CGContextRef context, + CFDictionaryRef pageTagStructureTreeDictionary, +); + +@ffi.Native() +external void CGPDFContextSetParentTree( + CGContextRef context, + CGPDFDictionaryRef parentTreeDictionary, +); + +@ffi.Native() +external void CGPDFContextSetURLForRect( + CGContextRef context, + CFURLRef url, + objc.CGRect rect, +); + +@ffi.Native< + ffi.Void Function( + CGPDFDictionaryRef, + CGPDFDictionaryApplierBlock, + ffi.Pointer, + ) +>(symbol: 'CGPDFDictionaryApplyBlock') +external void _CGPDFDictionaryApplyBlock( + CGPDFDictionaryRef dict, + CGPDFDictionaryApplierBlock block, + ffi.Pointer info, +); + +void CGPDFDictionaryApplyBlock( + CGPDFDictionaryRef dict, + DartCGPDFDictionaryApplierBlock? block, + ffi.Pointer info, +) { + final _$$ref = block?.ref; + return _CGPDFDictionaryApplyBlock(dict, _$$ref?.pointer ?? ffi.nullptr, info); +} + +@ffi.Native< + ffi.Void Function( + CGPDFDictionaryRef, + CGPDFDictionaryApplierFunction, + ffi.Pointer, + ) +>() +external void CGPDFDictionaryApplyFunction( + CGPDFDictionaryRef dict, + CGPDFDictionaryApplierFunction function, + ffi.Pointer info, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetArray( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetBoolean( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native() +external int CGPDFDictionaryGetCount(CGPDFDictionaryRef dict); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetDictionary( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetInteger( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external bool CGPDFDictionaryGetName( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer> value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetNumber( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetObject( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetStream( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetString( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native() +external bool CGPDFDocumentAllowsCopying(CGPDFDocumentRef document); + +@ffi.Native() +external bool CGPDFDocumentAllowsPrinting(CGPDFDocumentRef document); + +@ffi.Native() +external CGPDFDocumentRef CGPDFDocumentCreateWithProvider( + CGDataProviderRef provider, +); + +@ffi.Native() +external CGPDFDocumentRef CGPDFDocumentCreateWithURL(CFURLRef url); + +@ffi.Native() +external int CGPDFDocumentGetAccessPermissions(CGPDFDocumentRef document); + +@Deprecated('No longer supported') +@ffi.Native() +external objc.CGRect CGPDFDocumentGetArtBox( + CGPDFDocumentRef document, + int page, +); + +@Deprecated('No longer supported') +@ffi.Native() +external objc.CGRect CGPDFDocumentGetBleedBox( + CGPDFDocumentRef document, + int page, +); + +@ffi.Native() +external CGPDFDictionaryRef CGPDFDocumentGetCatalog(CGPDFDocumentRef document); + +@Deprecated('No longer supported') +@ffi.Native() +external objc.CGRect CGPDFDocumentGetCropBox( + CGPDFDocumentRef document, + int page, +); + +@ffi.Native() +external CGPDFArrayRef CGPDFDocumentGetID(CGPDFDocumentRef document); + +@ffi.Native() +external CGPDFDictionaryRef CGPDFDocumentGetInfo(CGPDFDocumentRef document); + +@Deprecated('No longer supported') +@ffi.Native() +external objc.CGRect CGPDFDocumentGetMediaBox( + CGPDFDocumentRef document, + int page, +); + +@ffi.Native() +external int CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document); + +@ffi.Native() +external CFDictionaryRef CGPDFDocumentGetOutline(CGPDFDocumentRef document); + +@ffi.Native() +external CGPDFPageRef CGPDFDocumentGetPage( + CGPDFDocumentRef document, + int pageNumber, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int CGPDFDocumentGetRotationAngle(CGPDFDocumentRef document, int page); + +@Deprecated('No longer supported') +@ffi.Native() +external objc.CGRect CGPDFDocumentGetTrimBox( + CGPDFDocumentRef document, + int page, +); + +@ffi.Native() +external int CGPDFDocumentGetTypeID(); + +@ffi.Native< + ffi.Void Function( + CGPDFDocumentRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CGPDFDocumentGetVersion( + CGPDFDocumentRef document, + ffi.Pointer majorVersion, + ffi.Pointer minorVersion, +); + +@ffi.Native() +external bool CGPDFDocumentIsEncrypted(CGPDFDocumentRef document); + +@ffi.Native() +external bool CGPDFDocumentIsUnlocked(CGPDFDocumentRef document); + +@ffi.Native() +external void CGPDFDocumentRelease(CGPDFDocumentRef document); + +@ffi.Native() +external CGPDFDocumentRef CGPDFDocumentRetain(CGPDFDocumentRef document); + +@ffi.Native)>() +external bool CGPDFDocumentUnlockWithPassword( + CGPDFDocumentRef document, + ffi.Pointer password, +); + +@ffi.Native(symbol: 'CGPDFObjectGetType') +external int _CGPDFObjectGetType(CGPDFObjectRef object); + +CGPDFObjectType CGPDFObjectGetType(CGPDFObjectRef object) { + return CGPDFObjectType.fromValue(_CGPDFObjectGetType(object)); +} + +@ffi.Native< + ffi.Bool Function(CGPDFObjectRef, ffi.Int32, ffi.Pointer) +>(symbol: 'CGPDFObjectGetValue') +external bool _CGPDFObjectGetValue( + CGPDFObjectRef object, + int type, + ffi.Pointer value, +); + +bool CGPDFObjectGetValue( + CGPDFObjectRef object, + CGPDFObjectType type, + ffi.Pointer value, +) { + return _CGPDFObjectGetValue(object, type.value, value); +} + +@ffi.Native() +external CGPDFOperatorTableRef CGPDFOperatorTableCreate(); + +@ffi.Native() +external void CGPDFOperatorTableRelease(CGPDFOperatorTableRef table); + +@ffi.Native() +external CGPDFOperatorTableRef CGPDFOperatorTableRetain( + CGPDFOperatorTableRef table, +); + +@ffi.Native< + ffi.Void Function( + CGPDFOperatorTableRef, + ffi.Pointer, + CGPDFOperatorCallback, + ) +>() +external void CGPDFOperatorTableSetCallback( + CGPDFOperatorTableRef table, + ffi.Pointer name, + CGPDFOperatorCallback callback, +); + +@ffi.Native( + symbol: 'CGPDFPageGetBoxRect', +) +external objc.CGRect _CGPDFPageGetBoxRect(CGPDFPageRef page, int box); + +objc.CGRect CGPDFPageGetBoxRect(CGPDFPageRef page, CGPDFBox box) { + return _CGPDFPageGetBoxRect(page, box.value); +} + +@ffi.Native() +external CGPDFDictionaryRef CGPDFPageGetDictionary(CGPDFPageRef page); + +@ffi.Native() +external CGPDFDocumentRef CGPDFPageGetDocument(CGPDFPageRef page); + +@ffi.Native< + CGAffineTransform Function( + CGPDFPageRef, + ffi.Int32, + objc.CGRect, + ffi.Int, + ffi.Bool, + ) +>(symbol: 'CGPDFPageGetDrawingTransform') +external CGAffineTransform _CGPDFPageGetDrawingTransform( + CGPDFPageRef page, + int box, + objc.CGRect rect, + int rotate, + bool preserveAspectRatio, +); + +CGAffineTransform CGPDFPageGetDrawingTransform( + CGPDFPageRef page, + CGPDFBox box, + objc.CGRect rect, + int rotate, + bool preserveAspectRatio, +) { + return _CGPDFPageGetDrawingTransform( + page, + box.value, + rect, + rotate, + preserveAspectRatio, + ); +} + +@ffi.Native() +external int CGPDFPageGetPageNumber(CGPDFPageRef page); + +@ffi.Native() +external int CGPDFPageGetRotationAngle(CGPDFPageRef page); + +@ffi.Native() +external int CGPDFPageGetTypeID(); + +@ffi.Native() +external void CGPDFPageRelease(CGPDFPageRef page); + +@ffi.Native() +external CGPDFPageRef CGPDFPageRetain(CGPDFPageRef page); + +@ffi.Native< + CGPDFScannerRef Function( + CGPDFContentStreamRef, + CGPDFOperatorTableRef, + ffi.Pointer, + ) +>() +external CGPDFScannerRef CGPDFScannerCreate( + CGPDFContentStreamRef cs, + CGPDFOperatorTableRef table, + ffi.Pointer info, +); + +@ffi.Native() +external CGPDFContentStreamRef CGPDFScannerGetContentStream( + CGPDFScannerRef scanner, +); + +@ffi.Native)>() +external bool CGPDFScannerPopArray( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopBoolean( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFScannerRef, ffi.Pointer) +>() +external bool CGPDFScannerPopDictionary( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopInteger( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFScannerRef, ffi.Pointer>) +>() +external bool CGPDFScannerPopName( + CGPDFScannerRef scanner, + ffi.Pointer> value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopNumber( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopObject( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopStream( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopString( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native() +external void CGPDFScannerRelease(CGPDFScannerRef scanner); + +@ffi.Native() +external CGPDFScannerRef CGPDFScannerRetain(CGPDFScannerRef scanner); + +@ffi.Native() +external bool CGPDFScannerScan(CGPDFScannerRef scanner); + +@ffi.Native() +external void CGPDFScannerStop(CGPDFScannerRef s); + +@ffi.Native)>() +external CFDataRef CGPDFStreamCopyData( + CGPDFStreamRef stream, + ffi.Pointer format, +); + +@ffi.Native() +external CGPDFDictionaryRef CGPDFStreamGetDictionary(CGPDFStreamRef stream); + +@ffi.Native() +external CFDateRef CGPDFStringCopyDate(CGPDFStringRef string); + +@ffi.Native() +external CFStringRef CGPDFStringCopyTextString(CGPDFStringRef string); + +@ffi.Native Function(CGPDFStringRef)>() +external ffi.Pointer CGPDFStringGetBytePtr( + CGPDFStringRef string, +); + +@ffi.Native() +external int CGPDFStringGetLength(CGPDFStringRef string); + +@ffi.Native Function(ffi.Int32)>( + symbol: 'CGPDFTagTypeGetName', +) +external ffi.Pointer _CGPDFTagTypeGetName(int tagType); + +ffi.Pointer CGPDFTagTypeGetName(CGPDFTagType tagType) { + return _CGPDFTagTypeGetName(tagType.value); +} + +@ffi.Native() +external bool CGPSConverterAbort(CGPSConverterRef converter); + +@ffi.Native< + ffi.Bool Function( + CGPSConverterRef, + CGDataProviderRef, + CGDataConsumerRef, + CFDictionaryRef, + ) +>() +external bool CGPSConverterConvert( + CGPSConverterRef converter, + CGDataProviderRef provider, + CGDataConsumerRef consumer, + CFDictionaryRef options, +); + +@ffi.Native< + CGPSConverterRef Function( + ffi.Pointer, + ffi.Pointer, + CFDictionaryRef, + ) +>() +external CGPSConverterRef CGPSConverterCreate( + ffi.Pointer info, + ffi.Pointer callbacks, + CFDictionaryRef options, +); + +@ffi.Native() +external int CGPSConverterGetTypeID(); + +@ffi.Native() +external bool CGPSConverterIsConverting(CGPSConverterRef converter); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ffi.Bool, + ) +>() +external void CGPathAddArc( + CGMutablePathRef path, + ffi.Pointer m, + double x, + double y, + double radius, + double startAngle, + double endAngle, + bool clockwise, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddArcToPoint( + CGMutablePathRef path, + ffi.Pointer m, + double x1, + double y1$1, + double x2, + double y2, + double radius, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddCurveToPoint( + CGMutablePathRef path, + ffi.Pointer m, + double cp1x, + double cp1y, + double cp2x, + double cp2y, + double x, + double y, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + objc.CGRect, + ) +>() +external void CGPathAddEllipseInRect( + CGMutablePathRef path, + ffi.Pointer m, + objc.CGRect rect, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddLineToPoint( + CGMutablePathRef path, + ffi.Pointer m, + double x, + double y, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGPathAddLines( + CGMutablePathRef path, + ffi.Pointer m, + ffi.Pointer points, + int count, +); + +@ffi.Native< + ffi.Void Function(CGMutablePathRef, ffi.Pointer, CGPathRef) +>() +external void CGPathAddPath( + CGMutablePathRef path1, + ffi.Pointer m, + CGPathRef path2, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddQuadCurveToPoint( + CGMutablePathRef path, + ffi.Pointer m, + double cpx, + double cpy, + double x, + double y, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + objc.CGRect, + ) +>() +external void CGPathAddRect( + CGMutablePathRef path, + ffi.Pointer m, + objc.CGRect rect, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGPathAddRects( + CGMutablePathRef path, + ffi.Pointer m, + ffi.Pointer rects, + int count, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddRelativeArc( + CGMutablePathRef path, + ffi.Pointer matrix, + double x, + double y, + double radius, + double startAngle, + double delta, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + objc.CGRect, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddRoundedRect( + CGMutablePathRef path, + ffi.Pointer transform, + objc.CGRect rect, + double cornerWidth, + double cornerHeight, +); + +@ffi.Native< + ffi.Void Function(CGPathRef, ffi.Pointer, CGPathApplierFunction) +>() +external void CGPathApply( + CGPathRef path, + ffi.Pointer info, + CGPathApplierFunction function, +); + +@ffi.Native( + symbol: 'CGPathApplyWithBlock', +) +external void _CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock block); + +void CGPathApplyWithBlock(CGPathRef path, DartCGPathApplyBlock block) { + final _$$ref = block.ref; + return _CGPathApplyWithBlock(path, _$$ref.pointer); +} + +@ffi.Native() +external void CGPathCloseSubpath(CGMutablePathRef path); + +@ffi.Native< + ffi.Bool Function( + CGPathRef, + ffi.Pointer, + objc.CGPoint, + ffi.Bool, + ) +>() +external bool CGPathContainsPoint( + CGPathRef path, + ffi.Pointer m, + objc.CGPoint point, + bool eoFill, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopy(CGPathRef path); + +@ffi.Native< + CGPathRef Function( + CGPathRef, + ffi.Pointer, + CGFloat, + ffi.Pointer, + ffi.Size, + ) +>() +external CGPathRef CGPathCreateCopyByDashingPath( + CGPathRef path, + ffi.Pointer transform, + double phase, + ffi.Pointer lengths, + int count, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyByFlattening( + CGPathRef path, + double flatteningThreshold, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyByIntersectingPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyByNormalizing( + CGPathRef path, + bool evenOddFillRule, +); + +@ffi.Native< + CGPathRef Function( + CGPathRef, + ffi.Pointer, + CGFloat, + ffi.Int32, + ffi.Int32, + CGFloat, + ) +>(symbol: 'CGPathCreateCopyByStrokingPath') +external CGPathRef _CGPathCreateCopyByStrokingPath( + CGPathRef path, + ffi.Pointer transform, + double lineWidth, + int lineCap, + int lineJoin, + double miterLimit, +); + +CGPathRef CGPathCreateCopyByStrokingPath( + CGPathRef path, + ffi.Pointer transform, + DartCGFloat lineWidth, + CGLineCap lineCap, + CGLineJoin lineJoin, + DartCGFloat miterLimit, +) { + return _CGPathCreateCopyByStrokingPath( + path, + transform, + lineWidth, + lineCap.value, + lineJoin.value, + miterLimit, + ); +} + +@ffi.Native() +external CGPathRef CGPathCreateCopyBySubtractingPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyBySymmetricDifferenceOfPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native)>() +external CGPathRef CGPathCreateCopyByTransformingPath( + CGPathRef path, + ffi.Pointer transform, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyByUnioningPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyOfLineByIntersectingPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyOfLineBySubtractingPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native() +external CGMutablePathRef CGPathCreateMutable(); + +@ffi.Native() +external CGMutablePathRef CGPathCreateMutableCopy(CGPathRef path); + +@ffi.Native< + CGMutablePathRef Function(CGPathRef, ffi.Pointer) +>() +external CGMutablePathRef CGPathCreateMutableCopyByTransformingPath( + CGPathRef path, + ffi.Pointer transform, +); + +@ffi.Native() +external CFArrayRef CGPathCreateSeparateComponents( + CGPathRef path, + bool evenOddFillRule, +); + +@ffi.Native)>() +external CGPathRef CGPathCreateWithEllipseInRect( + objc.CGRect rect, + ffi.Pointer transform, +); + +@ffi.Native)>() +external CGPathRef CGPathCreateWithRect( + objc.CGRect rect, + ffi.Pointer transform, +); + +@ffi.Native< + CGPathRef Function( + objc.CGRect, + CGFloat, + CGFloat, + ffi.Pointer, + ) +>() +external CGPathRef CGPathCreateWithRoundedRect( + objc.CGRect rect, + double cornerWidth, + double cornerHeight, + ffi.Pointer transform, +); + +@ffi.Native() +external bool CGPathEqualToPath(CGPathRef path1, CGPathRef path2); + +@ffi.Native() +external objc.CGRect CGPathGetBoundingBox(CGPathRef path); + +@ffi.Native() +external objc.CGPoint CGPathGetCurrentPoint(CGPathRef path); + +@ffi.Native() +external objc.CGRect CGPathGetPathBoundingBox(CGPathRef path); + +@ffi.Native() +external int CGPathGetTypeID(); + +@ffi.Native() +external bool CGPathIntersectsPath( + CGPathRef path1, + CGPathRef path2, + bool evenOddFillRule, +); + +@ffi.Native() +external bool CGPathIsEmpty(CGPathRef path); + +@ffi.Native)>() +external bool CGPathIsRect(CGPathRef path, ffi.Pointer rect); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + ) +>() +external void CGPathMoveToPoint( + CGMutablePathRef path, + ffi.Pointer m, + double x, + double y, +); + +@ffi.Native() +external void CGPathRelease(CGPathRef path); + +@ffi.Native() +external CGPathRef CGPathRetain(CGPathRef path); + +@ffi.Native< + CGPatternRef Function( + ffi.Pointer, + objc.CGRect, + CGAffineTransform, + CGFloat, + CGFloat, + ffi.Int32, + ffi.Bool, + ffi.Pointer, + ) +>(symbol: 'CGPatternCreate') +external CGPatternRef _CGPatternCreate( + ffi.Pointer info, + objc.CGRect bounds, + CGAffineTransform matrix, + double xStep, + double yStep, + int tiling, + bool isColored, + ffi.Pointer callbacks, +); + +CGPatternRef CGPatternCreate( + ffi.Pointer info, + objc.CGRect bounds, + CGAffineTransform matrix, + DartCGFloat xStep, + DartCGFloat yStep, + CGPatternTiling tiling, + bool isColored, + ffi.Pointer callbacks, +) { + return _CGPatternCreate( + info, + bounds, + matrix, + xStep, + yStep, + tiling.value, + isColored, + callbacks, + ); +} + +@ffi.Native() +external int CGPatternGetTypeID(); + +@ffi.Native() +external void CGPatternRelease(CGPatternRef pattern); + +@ffi.Native() +external CGPatternRef CGPatternRetain(CGPatternRef pattern); + +@ffi.Native() +external objc.CGPoint CGPointApplyAffineTransform( + objc.CGPoint point, + CGAffineTransform t, +); + +@ffi.Native() +external CFDictionaryRef CGPointCreateDictionaryRepresentation( + objc.CGPoint point, +); + +@ffi.Native() +external bool CGPointEqualToPoint(objc.CGPoint point1, objc.CGPoint point2); + +@ffi.Native)>() +external bool CGPointMakeWithDictionaryRepresentation( + CFDictionaryRef dict, + ffi.Pointer point, +); + +@ffi.Native() +external final objc.CGPoint CGPointZero; + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGPostKeyboardEvent', +) +external int _CGPostKeyboardEvent(int keyChar, int virtualKey, int keyDown); + +CGError CGPostKeyboardEvent( + DartCGCharCode keyChar, + DartCGKeyCode virtualKey, + Dartboolean_t keyDown, +) { + return CGError.fromValue(_CGPostKeyboardEvent(keyChar, virtualKey, keyDown)); +} + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Int32 Function(objc.CGPoint, boolean_t, CGButtonCount, boolean_t) +>(symbol: 'CGPostMouseEvent') +external int _CGPostMouseEvent( + objc.CGPoint mouseCursorPosition, + int updateMouseCursorPosition, + int buttonCount, + int mouseButtonDown, +); + +CGError CGPostMouseEvent( + objc.CGPoint mouseCursorPosition, + Dartboolean_t updateMouseCursorPosition, + DartCGButtonCount buttonCount, + Dartboolean_t mouseButtonDown, +) { + return CGError.fromValue( + _CGPostMouseEvent( + mouseCursorPosition, + updateMouseCursorPosition, + buttonCount, + mouseButtonDown, + ), + ); +} + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGPostScrollWheelEvent', +) +external int _CGPostScrollWheelEvent(int wheelCount, int wheel1); + +CGError CGPostScrollWheelEvent(DartCGWheelCount wheelCount, int wheel1) { + return CGError.fromValue(_CGPostScrollWheelEvent(wheelCount, wheel1)); +} + +@ffi.Native() +external bool CGPreflightListenEventAccess(); + +@ffi.Native() +external bool CGPreflightPostEventAccess(); + +@ffi.Native() +external bool CGPreflightScreenCaptureAccess(); + +@ffi.Native() +external objc.CGRect CGRectApplyAffineTransform( + objc.CGRect rect, + CGAffineTransform t, +); + +@ffi.Native() +external bool CGRectContainsPoint(objc.CGRect rect, objc.CGPoint point); + +@ffi.Native() +external bool CGRectContainsRect(objc.CGRect rect1, objc.CGRect rect2); + +@ffi.Native() +external CFDictionaryRef CGRectCreateDictionaryRepresentation(objc.CGRect arg0); + +@ffi.Native< + ffi.Void Function( + objc.CGRect, + ffi.Pointer, + ffi.Pointer, + CGFloat, + ffi.Uint32, + ) +>(symbol: 'CGRectDivide') +external void _CGRectDivide( + objc.CGRect rect, + ffi.Pointer slice, + ffi.Pointer remainder$1, + double amount, + int edge, +); + +void CGRectDivide( + objc.CGRect rect, + ffi.Pointer slice, + ffi.Pointer remainder$1, + DartCGFloat amount, + CGRectEdge edge, +) { + return _CGRectDivide(rect, slice, remainder$1, amount, edge.value); +} + +@ffi.Native() +external bool CGRectEqualToRect(objc.CGRect rect1, objc.CGRect rect2); + +@ffi.Native() +external double CGRectGetHeight(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMaxX(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMaxY(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMidX(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMidY(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMinX(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMinY(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetWidth(objc.CGRect rect); + +@ffi.Native() +external final objc.CGRect CGRectInfinite; + +@ffi.Native() +external objc.CGRect CGRectInset(objc.CGRect rect, double dx, double dy); + +@ffi.Native() +external objc.CGRect CGRectIntegral(objc.CGRect rect); + +@ffi.Native() +external objc.CGRect CGRectIntersection(objc.CGRect r1, objc.CGRect r2); + +@ffi.Native() +external bool CGRectIntersectsRect(objc.CGRect rect1, objc.CGRect rect2); + +@ffi.Native() +external bool CGRectIsEmpty(objc.CGRect rect); + +@ffi.Native() +external bool CGRectIsInfinite(objc.CGRect rect); + +@ffi.Native() +external bool CGRectIsNull(objc.CGRect rect); + +@ffi.Native)>() +external bool CGRectMakeWithDictionaryRepresentation( + CFDictionaryRef dict, + ffi.Pointer rect, +); + +@ffi.Native() +external final objc.CGRect CGRectNull; + +@ffi.Native() +external objc.CGRect CGRectOffset(objc.CGRect rect, double dx, double dy); + +@ffi.Native() +external objc.CGRect CGRectStandardize(objc.CGRect rect); + +@ffi.Native() +external objc.CGRect CGRectUnion(objc.CGRect r1, objc.CGRect r2); + +@ffi.Native() +external final objc.CGRect CGRectZero; + +@Deprecated('No longer supported') +@ffi.Native)>( + symbol: 'CGRegisterScreenRefreshCallback', +) +external int _CGRegisterScreenRefreshCallback( + CGScreenRefreshCallback callback, + ffi.Pointer userInfo, +); + +CGError CGRegisterScreenRefreshCallback( + CGScreenRefreshCallback callback, + ffi.Pointer userInfo, +) { + return CGError.fromValue( + _CGRegisterScreenRefreshCallback(callback, userInfo), + ); +} + +@ffi.Native(symbol: 'CGReleaseAllDisplays') +external int _CGReleaseAllDisplays(); + +CGError CGReleaseAllDisplays() { + return CGError.fromValue(_CGReleaseAllDisplays()); +} + +@ffi.Native( + symbol: 'CGReleaseDisplayFadeReservation', +) +external int _CGReleaseDisplayFadeReservation(int token); + +CGError CGReleaseDisplayFadeReservation( + DartCGDisplayFadeReservationToken token, +) { + return CGError.fromValue(_CGReleaseDisplayFadeReservation(token)); +} + +@Deprecated('No longer supported') +@ffi.Native)>() +external void CGReleaseScreenRefreshRects(ffi.Pointer rects); + +@ffi.Native Function(CGRenderingBufferProviderRef)>() +external ffi.Pointer CGRenderingBufferLockBytePtr( + CGRenderingBufferProviderRef provider, +); + +@ffi.Native< + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGRenderingBufferProviderCreate') +external CGRenderingBufferProviderRef _CGRenderingBufferProviderCreate( + ffi.Pointer info, + int size, + ffi.Pointer lockPointer, + ffi.Pointer unlockPointer, + ffi.Pointer releaseInfo, +); + +CGRenderingBufferProviderRef CGRenderingBufferProviderCreate( + ffi.Pointer info, + int size, + objc.ObjCBlock Function(ffi.Pointer)> + lockPointer, + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >? + unlockPointer, + objc.ObjCBlock)>? releaseInfo, +) { + final _$$ref = lockPointer.ref; + final _$$ref$1 = unlockPointer?.ref; + final _$$ref$2 = releaseInfo?.ref; + return _CGRenderingBufferProviderCreate( + info, + size, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native() +external CGRenderingBufferProviderRef CGRenderingBufferProviderCreateWithCFData( + CFMutableDataRef data, +); + +@ffi.Native() +external int CGRenderingBufferProviderGetSize( + CGRenderingBufferProviderRef provider, +); + +@ffi.Native() +external int CGRenderingBufferProviderGetTypeID(); + +@ffi.Native() +external void CGRenderingBufferUnlockBytePtr( + CGRenderingBufferProviderRef provider, +); + +@ffi.Native() +external bool CGRequestListenEventAccess(); + +@ffi.Native() +external bool CGRequestPostEventAccess(); + +@ffi.Native() +external bool CGRequestScreenCaptureAccess(); + +@ffi.Native() +external void CGRestorePermanentDisplayConfiguration(); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Int32 Function(CGScreenUpdateMoveCallback, ffi.Pointer) +>(symbol: 'CGScreenRegisterMoveCallback') +external int _CGScreenRegisterMoveCallback( + CGScreenUpdateMoveCallback callback, + ffi.Pointer userInfo, +); + +CGError CGScreenRegisterMoveCallback( + CGScreenUpdateMoveCallback callback, + ffi.Pointer userInfo, +) { + return CGError.fromValue(_CGScreenRegisterMoveCallback(callback, userInfo)); +} + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(CGScreenUpdateMoveCallback, ffi.Pointer) +>() +external void CGScreenUnregisterMoveCallback( + CGScreenUpdateMoveCallback callback, + ffi.Pointer userInfo, +); + +@ffi.Native() +external CFDictionaryRef CGSessionCopyCurrentDictionary(); + +@ffi.Native< + ffi.Int32 Function( + CGDirectDisplayID, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGSetDisplayTransferByByteTable') +external int _CGSetDisplayTransferByByteTable( + int display, + int tableSize, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, +); + +CGError CGSetDisplayTransferByByteTable( + DartCGDirectDisplayID display, + int tableSize, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, +) { + return CGError.fromValue( + _CGSetDisplayTransferByByteTable( + display, + tableSize, + redTable, + greenTable, + blueTable, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGDirectDisplayID, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + ) +>(symbol: 'CGSetDisplayTransferByFormula') +external int _CGSetDisplayTransferByFormula( + int display, + double redMin, + double redMax, + double redGamma, + double greenMin, + double greenMax, + double greenGamma, + double blueMin, + double blueMax, + double blueGamma, +); + +CGError CGSetDisplayTransferByFormula( + DartCGDirectDisplayID display, + DartCGGammaValue redMin, + DartCGGammaValue redMax, + DartCGGammaValue redGamma, + DartCGGammaValue greenMin, + DartCGGammaValue greenMax, + DartCGGammaValue greenGamma, + DartCGGammaValue blueMin, + DartCGGammaValue blueMax, + DartCGGammaValue blueGamma, +) { + return CGError.fromValue( + _CGSetDisplayTransferByFormula( + display, + redMin, + redMax, + redGamma, + greenMin, + greenMax, + greenGamma, + blueMin, + blueMax, + blueGamma, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGDirectDisplayID, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGSetDisplayTransferByTable') +external int _CGSetDisplayTransferByTable( + int display, + int tableSize, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, +); + +CGError CGSetDisplayTransferByTable( + DartCGDirectDisplayID display, + int tableSize, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, +) { + return CGError.fromValue( + _CGSetDisplayTransferByTable( + display, + tableSize, + redTable, + greenTable, + blueTable, + ), + ); +} + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGSetLocalEventsFilterDuringSuppressionState', +) +external int _CGSetLocalEventsFilterDuringSuppressionState( + int filter, + int state, +); + +CGError CGSetLocalEventsFilterDuringSuppressionState( + int filter, + CGEventSuppressionState state, +) { + return CGError.fromValue( + _CGSetLocalEventsFilterDuringSuppressionState(filter, state.value), + ); +} + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGSetLocalEventsSuppressionInterval', +) +external int _CGSetLocalEventsSuppressionInterval(double seconds); + +CGError CGSetLocalEventsSuppressionInterval(DartCFTimeInterval seconds) { + return CGError.fromValue(_CGSetLocalEventsSuppressionInterval(seconds)); +} + +@ffi.Native< + CGShadingRef Function( + CGColorSpaceRef, + objc.CGPoint, + objc.CGPoint, + CGFunctionRef, + ffi.Bool, + ffi.Bool, + ) +>() +external CGShadingRef CGShadingCreateAxial( + CGColorSpaceRef space, + objc.CGPoint start, + objc.CGPoint end, + CGFunctionRef function, + bool extendStart, + bool extendEnd, +); + +@ffi.Native< + CGShadingRef Function( + ffi.Float, + CGColorSpaceRef, + objc.CGPoint, + objc.CGPoint, + CGFunctionRef, + ffi.Bool, + ffi.Bool, + ) +>() +external CGShadingRef CGShadingCreateAxialWithContentHeadroom( + double headroom, + CGColorSpaceRef space, + objc.CGPoint start, + objc.CGPoint end, + CGFunctionRef function, + bool extendStart, + bool extendEnd, +); + +@ffi.Native< + CGShadingRef Function( + CGColorSpaceRef, + objc.CGPoint, + CGFloat, + objc.CGPoint, + CGFloat, + CGFunctionRef, + ffi.Bool, + ffi.Bool, + ) +>() +external CGShadingRef CGShadingCreateRadial( + CGColorSpaceRef space, + objc.CGPoint start, + double startRadius, + objc.CGPoint end, + double endRadius, + CGFunctionRef function, + bool extendStart, + bool extendEnd, +); + +@ffi.Native< + CGShadingRef Function( + ffi.Float, + CGColorSpaceRef, + objc.CGPoint, + CGFloat, + objc.CGPoint, + CGFloat, + CGFunctionRef, + ffi.Bool, + ffi.Bool, + ) +>() +external CGShadingRef CGShadingCreateRadialWithContentHeadroom( + double headroom, + CGColorSpaceRef space, + objc.CGPoint start, + double startRadius, + objc.CGPoint end, + double endRadius, + CGFunctionRef function, + bool extendStart, + bool extendEnd, +); + +@ffi.Native() +external double CGShadingGetContentHeadroom(CGShadingRef shading); + +@ffi.Native() +external int CGShadingGetTypeID(); + +@ffi.Native() +external void CGShadingRelease(CGShadingRef shading); + +@ffi.Native() +external CGShadingRef CGShadingRetain(CGShadingRef shading); + +@ffi.Native() +external int CGShieldingWindowID(int display); + +@ffi.Native() +external int CGShieldingWindowLevel(); + +@ffi.Native() +external objc.CGSize CGSizeApplyAffineTransform( + objc.CGSize size, + CGAffineTransform t, +); + +@ffi.Native() +external CFDictionaryRef CGSizeCreateDictionaryRepresentation(objc.CGSize size); + +@ffi.Native() +external bool CGSizeEqualToSize(objc.CGSize size1, objc.CGSize size2); + +@ffi.Native)>() +external bool CGSizeMakeWithDictionaryRepresentation( + CFDictionaryRef dict, + ffi.Pointer size, +); + +@ffi.Native() +external final objc.CGSize CGSizeZero; + +@Deprecated('No longer supported') +@ffi.Native)>() +external void CGUnregisterScreenRefreshCallback( + CGScreenRefreshCallback callback, + ffi.Pointer userInfo, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ) +>(symbol: 'CGWaitForScreenRefreshRects') +external int _CGWaitForScreenRefreshRects( + ffi.Pointer> rects, + ffi.Pointer count, +); + +CGError CGWaitForScreenRefreshRects( + ffi.Pointer> rects, + ffi.Pointer count, +) { + return CGError.fromValue(_CGWaitForScreenRefreshRects(rects, count)); +} + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Int32 Function( + ffi.Uint32, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGWaitForScreenUpdateRects') +external int _CGWaitForScreenUpdateRects( + int requestedOperations, + ffi.Pointer currentOperation, + ffi.Pointer> rects, + ffi.Pointer rectCount, + ffi.Pointer delta, +); + +CGError CGWaitForScreenUpdateRects( + int requestedOperations, + ffi.Pointer currentOperation, + ffi.Pointer> rects, + ffi.Pointer rectCount, + ffi.Pointer delta, +) { + return CGError.fromValue( + _CGWaitForScreenUpdateRects( + requestedOperations, + currentOperation, + rects, + rectCount, + delta, + ), + ); +} + +@ffi.Native( + symbol: 'CGWarpMouseCursorPosition', +) +external int _CGWarpMouseCursorPosition(objc.CGPoint newCursorPosition); + +CGError CGWarpMouseCursorPosition(objc.CGPoint newCursorPosition) { + return CGError.fromValue(_CGWarpMouseCursorPosition(newCursorPosition)); +} + +@ffi.Native(symbol: 'CGWindowLevelForKey') +external int _CGWindowLevelForKey(int key); + +DartCGWindowLevel CGWindowLevelForKey(CGWindowLevelKey key) { + return _CGWindowLevelForKey(key.value); +} + +@ffi.Native() +external CFArrayRef CGWindowListCopyWindowInfo( + int option, + int relativeToWindow, +); + +@ffi.Native() +external CFArrayRef CGWindowListCreate(int option, int relativeToWindow); + +@ffi.Native() +external CFArrayRef CGWindowListCreateDescriptionFromArray( + CFArrayRef windowArray, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + CGImageRef Function(objc.CGRect, ffi.Uint32, CGWindowID, ffi.Uint32) +>() +external CGImageRef CGWindowListCreateImage( + objc.CGRect screenBounds, + int listOption, + int windowID, + int imageOption, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external CGImageRef CGWindowListCreateImageFromArray( + objc.CGRect screenBounds, + CFArrayRef windowArray, + int imageOption, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFMachPortRef CGWindowServerCFMachPort(); + +@ffi.Native() +external CFMachPortRef CGWindowServerCreateServerPort(); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMAudioFormatDescriptionCreate( + CFAllocatorRef allocator, + ffi.Pointer asbd, + int layoutSize, + ffi.Pointer layout, + int magicCookieSize, + ffi.Pointer magicCookie, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CFArrayRef, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int CMAudioFormatDescriptionCreateSummary( + CFAllocatorRef allocator, + CFArrayRef formatDescriptionArray, + int flags, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + Boolean Function( + CMAudioFormatDescriptionRef, + CMAudioFormatDescriptionRef, + CMAudioFormatDescriptionMask, + ffi.Pointer, + ) +>() +external int CMAudioFormatDescriptionEqual( + CMAudioFormatDescriptionRef formatDescription, + CMAudioFormatDescriptionRef otherFormatDescription, + int equalityMask, + ffi.Pointer equalityMaskOut, +); + +@ffi.Native< + ffi.Pointer Function( + CMAudioFormatDescriptionRef, + ffi.Pointer, + ) +>() +external ffi.Pointer +CMAudioFormatDescriptionGetChannelLayout( + CMAudioFormatDescriptionRef desc, + ffi.Pointer sizeOut, +); + +@ffi.Native< + ffi.Pointer Function( + CMAudioFormatDescriptionRef, + ffi.Pointer, + ) +>() +external ffi.Pointer CMAudioFormatDescriptionGetFormatList( + CMAudioFormatDescriptionRef desc, + ffi.Pointer sizeOut, +); + +@ffi.Native< + ffi.Pointer Function( + CMAudioFormatDescriptionRef, + ffi.Pointer, + ) +>() +external ffi.Pointer CMAudioFormatDescriptionGetMagicCookie( + CMAudioFormatDescriptionRef desc, + ffi.Pointer sizeOut, +); + +@ffi.Native< + ffi.Pointer Function(CMAudioFormatDescriptionRef) +>() +external ffi.Pointer +CMAudioFormatDescriptionGetMostCompatibleFormat( + CMAudioFormatDescriptionRef desc, +); + +@ffi.Native< + ffi.Pointer Function(CMAudioFormatDescriptionRef) +>() +external ffi.Pointer +CMAudioFormatDescriptionGetRichestDecodableFormat( + CMAudioFormatDescriptionRef desc, +); + +@ffi.Native< + ffi.Pointer Function(CMAudioFormatDescriptionRef) +>() +external ffi.Pointer +CMAudioFormatDescriptionGetStreamBasicDescription( + CMAudioFormatDescriptionRef desc, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMediaType, + FourCharCode, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMFormatDescriptionCreate( + CFAllocatorRef allocator, + int mediaType, + int mediaSubType, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native() +external int CMFormatDescriptionEqual( + CMFormatDescriptionRef formatDescription, + CMFormatDescriptionRef otherFormatDescription, +); + +@ffi.Native< + Boolean Function( + CMFormatDescriptionRef, + CMFormatDescriptionRef, + CFTypeRef, + CFTypeRef, + ) +>() +external int CMFormatDescriptionEqualIgnoringExtensionKeys( + CMFormatDescriptionRef formatDescription, + CMFormatDescriptionRef otherFormatDescription, + CFTypeRef formatDescriptionExtensionKeysToIgnore, + CFTypeRef sampleDescriptionExtensionAtomKeysToIgnore, +); + +@ffi.Native() +external CFPropertyListRef CMFormatDescriptionGetExtension( + CMFormatDescriptionRef desc, + CFStringRef extensionKey, +); + +@ffi.Native() +external CFDictionaryRef CMFormatDescriptionGetExtensions( + CMFormatDescriptionRef desc, +); + +@ffi.Native() +external int CMFormatDescriptionGetMediaSubType(CMFormatDescriptionRef desc); + +@ffi.Native() +external int CMFormatDescriptionGetMediaType(CMFormatDescriptionRef desc); + +@ffi.Native() +external int CMFormatDescriptionGetTypeID(); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMetadataFormatDescriptionRef, + CMMetadataFormatDescriptionRef, + ffi.Pointer, + ) +>() +external int +CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions( + CFAllocatorRef allocator, + CMMetadataFormatDescriptionRef sourceDescription, + CMMetadataFormatDescriptionRef otherSourceDescription, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMetadataFormatType, + CFArrayRef, + ffi.Pointer, + ) +>() +external int CMMetadataFormatDescriptionCreateWithKeys( + CFAllocatorRef allocator, + int metadataType, + CFArrayRef keys, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMetadataFormatDescriptionRef, + CFArrayRef, + ffi.Pointer, + ) +>() +external int +CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications( + CFAllocatorRef allocator, + CMMetadataFormatDescriptionRef sourceDescription, + CFArrayRef metadataSpecifications, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMetadataFormatType, + CFArrayRef, + ffi.Pointer, + ) +>() +external int CMMetadataFormatDescriptionCreateWithMetadataSpecifications( + CFAllocatorRef allocator, + int metadataType, + CFArrayRef metadataSpecifications, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native() +external CFArrayRef CMMetadataFormatDescriptionGetIdentifiers( + CMMetadataFormatDescriptionRef desc, +); + +@ffi.Native() +external CFDictionaryRef CMMetadataFormatDescriptionGetKeyWithLocalID( + CMMetadataFormatDescriptionRef desc, + int localKeyID, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMuxedStreamType, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMMuxedFormatDescriptionCreate( + CFAllocatorRef allocator, + int muxType, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native)>() +external int CMSDecoderCopyAllCerts( + CMSDecoderRef cmsDecoder, + ffi.Pointer certsOut, +); + +@ffi.Native)>() +external int CMSDecoderCopyContent( + CMSDecoderRef cmsDecoder, + ffi.Pointer contentOut, +); + +@ffi.Native)>() +external int CMSDecoderCopyDetachedContent( + CMSDecoderRef cmsDecoder, + ffi.Pointer detachedContentOut, +); + +@ffi.Native)>() +external int CMSDecoderCopyEncapsulatedContentType( + CMSDecoderRef cmsDecoder, + ffi.Pointer eContentTypeOut, +); + +@ffi.Native< + OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSDecoderCopySignerCert( + CMSDecoderRef cmsDecoder, + int signerIndex, + ffi.Pointer signerCertOut, +); + +@ffi.Native< + OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSDecoderCopySignerEmailAddress( + CMSDecoderRef cmsDecoder, + int signerIndex, + ffi.Pointer signerEmailAddressOut, +); + +@ffi.Native< + OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSDecoderCopySignerSigningTime( + CMSDecoderRef cmsDecoder, + int signerIndex, + ffi.Pointer signingTime, +); + +@ffi.Native< + OSStatus Function( + CMSDecoderRef, + ffi.Size, + CFTypeRef, + Boolean, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CMSDecoderCopySignerStatus( + CMSDecoderRef cmsDecoder, + int signerIndex, + CFTypeRef policyOrArray, + int evaluateSecTrust, + ffi.Pointer signerStatusOut, + ffi.Pointer secTrustOut, + ffi.Pointer certVerifyResultCodeOut, +); + +@ffi.Native< + OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSDecoderCopySignerTimestamp( + CMSDecoderRef cmsDecoder, + int signerIndex, + ffi.Pointer timestamp, +); + +@ffi.Native< + OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSDecoderCopySignerTimestampCertificates( + CMSDecoderRef cmsDecoder, + int signerIndex, + ffi.Pointer certificateRefs, +); + +@ffi.Native< + OSStatus Function( + CMSDecoderRef, + CFTypeRef, + ffi.Size, + ffi.Pointer, + ) +>() +external int CMSDecoderCopySignerTimestampWithPolicy( + CMSDecoderRef cmsDecoder, + CFTypeRef timeStampPolicy, + int signerIndex, + ffi.Pointer timestamp, +); + +@ffi.Native)>() +external int CMSDecoderCreate(ffi.Pointer cmsDecoderOut); + +@ffi.Native() +external int CMSDecoderFinalizeMessage(CMSDecoderRef cmsDecoder); + +@ffi.Native)>() +external int CMSDecoderGetNumSigners( + CMSDecoderRef cmsDecoder, + ffi.Pointer numSignersOut, +); + +@ffi.Native() +external int CMSDecoderGetTypeID(); + +@ffi.Native)>() +external int CMSDecoderIsContentEncrypted( + CMSDecoderRef cmsDecoder, + ffi.Pointer isEncryptedOut, +); + +@ffi.Native() +external int CMSDecoderSetDetachedContent( + CMSDecoderRef cmsDecoder, + CFDataRef detachedContent, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CMSDecoderSetSearchKeychain( + CMSDecoderRef cmsDecoder, + CFTypeRef keychainOrArray, +); + +@ffi.Native, ffi.Size)>() +external int CMSDecoderUpdateMessage( + CMSDecoderRef cmsDecoder, + ffi.Pointer msgBytes, + int msgBytesLen, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFTypeRef, + CFTypeRef, + ffi.Pointer, + Boolean, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external int CMSEncode( + CFTypeRef signers, + CFTypeRef recipients, + ffi.Pointer eContentType, + int detachedContent, + int signedAttributes, + ffi.Pointer content, + int contentLen, + ffi.Pointer encodedContentOut, +); + +@ffi.Native< + OSStatus Function( + CFTypeRef, + CFTypeRef, + CFTypeRef, + Boolean, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external int CMSEncodeContent( + CFTypeRef signers, + CFTypeRef recipients, + CFTypeRef eContentTypeOID, + int detachedContent, + int signedAttributes, + ffi.Pointer content, + int contentLen, + ffi.Pointer encodedContentOut, +); + +@ffi.Native() +external int CMSEncoderAddRecipients( + CMSEncoderRef cmsEncoder, + CFTypeRef recipientOrArray, +); + +@ffi.Native() +external int CMSEncoderAddSignedAttributes( + CMSEncoderRef cmsEncoder, + int signedAttributes, +); + +@ffi.Native() +external int CMSEncoderAddSigners( + CMSEncoderRef cmsEncoder, + CFTypeRef signerOrArray, +); + +@ffi.Native() +external int CMSEncoderAddSupportingCerts( + CMSEncoderRef cmsEncoder, + CFTypeRef certOrArray, +); + +@ffi.Native)>() +external int CMSEncoderCopyEncapsulatedContentType( + CMSEncoderRef cmsEncoder, + ffi.Pointer eContentTypeOut, +); + +@ffi.Native)>() +external int CMSEncoderCopyEncodedContent( + CMSEncoderRef cmsEncoder, + ffi.Pointer encodedContentOut, +); + +@ffi.Native)>() +external int CMSEncoderCopyRecipients( + CMSEncoderRef cmsEncoder, + ffi.Pointer recipientsOut, +); + +@ffi.Native< + OSStatus Function(CMSEncoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSEncoderCopySignerTimestamp( + CMSEncoderRef cmsEncoder, + int signerIndex, + ffi.Pointer timestamp, +); + +@ffi.Native< + OSStatus Function( + CMSEncoderRef, + CFTypeRef, + ffi.Size, + ffi.Pointer, + ) +>() +external int CMSEncoderCopySignerTimestampWithPolicy( + CMSEncoderRef cmsEncoder, + CFTypeRef timeStampPolicy, + int signerIndex, + ffi.Pointer timestamp, +); + +@ffi.Native)>() +external int CMSEncoderCopySigners( + CMSEncoderRef cmsEncoder, + ffi.Pointer signersOut, +); + +@ffi.Native)>() +external int CMSEncoderCopySupportingCerts( + CMSEncoderRef cmsEncoder, + ffi.Pointer certsOut, +); + +@ffi.Native)>() +external int CMSEncoderCreate(ffi.Pointer cmsEncoderOut); + +@ffi.Native)>() +external int CMSEncoderGetCertificateChainMode( + CMSEncoderRef cmsEncoder, + ffi.Pointer chainModeOut, +); + +@ffi.Native)>() +external int CMSEncoderGetHasDetachedContent( + CMSEncoderRef cmsEncoder, + ffi.Pointer detachedContentOut, +); + +@ffi.Native() +external int CMSEncoderGetTypeID(); + +@ffi.Native( + symbol: 'CMSEncoderSetCertificateChainMode', +) +external int _CMSEncoderSetCertificateChainMode( + CMSEncoderRef cmsEncoder, + int chainMode, +); + +DartSInt32 CMSEncoderSetCertificateChainMode( + CMSEncoderRef cmsEncoder, + CMSCertificateChainMode chainMode, +) { + return _CMSEncoderSetCertificateChainMode(cmsEncoder, chainMode.value); +} + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CMSEncoderSetEncapsulatedContentType( + CMSEncoderRef cmsEncoder, + ffi.Pointer eContentType, +); + +@ffi.Native() +external int CMSEncoderSetEncapsulatedContentTypeOID( + CMSEncoderRef cmsEncoder, + CFTypeRef eContentTypeOID, +); + +@ffi.Native() +external int CMSEncoderSetHasDetachedContent( + CMSEncoderRef cmsEncoder, + int detachedContent, +); + +@ffi.Native() +external int CMSEncoderSetSignerAlgorithm( + CMSEncoderRef cmsEncoder, + CFStringRef digestAlgorithm, +); + +@ffi.Native, ffi.Size)>() +external int CMSEncoderUpdateContent( + CMSEncoderRef cmsEncoder, + ffi.Pointer content, + int contentLen, +); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CMTextFormatDescriptionGetDefaultStyle( + CMFormatDescriptionRef desc, + ffi.Pointer localFontIDOut, + ffi.Pointer boldOut, + ffi.Pointer italicOut, + ffi.Pointer underlineOut, + ffi.Pointer fontSizeOut, + ffi.Pointer colorComponentsOut, +); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + Boolean, + CGFloat, + ffi.Pointer, + ) +>() +external int CMTextFormatDescriptionGetDefaultTextBox( + CMFormatDescriptionRef desc, + int originIsAtTopLeft, + double heightOfTextTrack, + ffi.Pointer defaultTextBoxOut, +); + +@ffi.Native< + OSStatus Function(CMFormatDescriptionRef, ffi.Pointer) +>() +external int CMTextFormatDescriptionGetDisplayFlags( + CMFormatDescriptionRef desc, + ffi.Pointer displayFlagsOut, +); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + ffi.Uint16, + ffi.Pointer, + ) +>() +external int CMTextFormatDescriptionGetFontName( + CMFormatDescriptionRef desc, + int localFontID, + ffi.Pointer fontNameOut, +); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CMTextFormatDescriptionGetJustification( + CMFormatDescriptionRef desc, + ffi.Pointer horizontaJustificationlOut, + ffi.Pointer verticalJustificationOut, +); + +@ffi.Native() +external CMTime CMTimeAbsoluteValue(CMTime time$1); + +@ffi.Native() +external CMTime CMTimeAdd(CMTime lhs, CMTime rhs); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMTimeCodeFormatType, + CMTime, + ffi.Uint32, + ffi.Uint32, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMTimeCodeFormatDescriptionCreate( + CFAllocatorRef allocator, + int timeCodeFormatType, + CMTime frameDuration, + int frameQuanta, + int flags, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native() +external CMTime CMTimeCodeFormatDescriptionGetFrameDuration( + CMTimeCodeFormatDescriptionRef timeCodeFormatDescription, +); + +@ffi.Native() +external int CMTimeCodeFormatDescriptionGetFrameQuanta( + CMTimeCodeFormatDescriptionRef timeCodeFormatDescription, +); + +@ffi.Native() +external int CMTimeCodeFormatDescriptionGetTimeCodeFlags( + CMTimeCodeFormatDescriptionRef desc, +); + +@ffi.Native() +external int CMTimeCompare(CMTime time1, CMTime time2); + +@ffi.Native( + symbol: 'CMTimeConvertScale', +) +external CMTime _CMTimeConvertScale( + CMTime time$1, + int newTimescale, + int method, +); + +CMTime CMTimeConvertScale( + CMTime time$1, + int newTimescale, + CMTimeRoundingMethod method, +) { + return _CMTimeConvertScale(time$1, newTimescale, method.value); +} + +@ffi.Native() +external CFDictionaryRef CMTimeCopyAsDictionary( + CMTime time$1, + CFAllocatorRef allocator, +); + +@ffi.Native() +external CFStringRef CMTimeCopyDescription( + CFAllocatorRef allocator, + CMTime time$1, +); + +@ffi.Native() +external double CMTimeGetSeconds(CMTime time$1); + +@ffi.Native() +external CMTime CMTimeMake(int value, int timescale); + +@ffi.Native() +external CMTime CMTimeMakeFromDictionary( + CFDictionaryRef dictionaryRepresentation, +); + +@ffi.Native() +external CMTime CMTimeMakeWithEpoch(int value, int timescale, int epoch); + +@ffi.Native() +external CMTime CMTimeMakeWithSeconds(double seconds, int preferredTimescale); + +@ffi.Native() +external CMTime CMTimeMaximum(CMTime time1, CMTime time2); + +@ffi.Native() +external CMTime CMTimeMinimum(CMTime time1, CMTime time2); + +@ffi.Native() +external CMTime CMTimeMultiply(CMTime time$1, int multiplier); + +@ffi.Native() +external CMTime CMTimeMultiplyByFloat64(CMTime time$1, double multiplier); + +@ffi.Native() +external CMTime CMTimeMultiplyByRatio( + CMTime time$1, + int multiplier, + int divisor, +); + +@ffi.Native() +external void CMTimeShow(CMTime time$1); + +@ffi.Native() +external CMTime CMTimeSubtract(CMTime lhs, CMTime rhs); + +@ffi.Native< + OSStatus Function(CMVideoFormatDescriptionRef, ffi.Pointer) +>() +external int CMVideoFormatDescriptionCopyTagCollectionArray( + CMVideoFormatDescriptionRef formatDescription, + ffi.Pointer tagCollectionsOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMVideoCodecType, + ffi.Int32, + ffi.Int32, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionCreate( + CFAllocatorRef allocator, + int codecType, + int width, + int height, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CVImageBufferRef, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionCreateForImageBuffer( + CFAllocatorRef allocator, + CVImageBufferRef imageBuffer, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionCreateFromH264ParameterSets( + CFAllocatorRef allocator, + int parameterSetCount, + ffi.Pointer> parameterSetPointers, + ffi.Pointer parameterSetSizes, + int NALUnitHeaderLength, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionCreateFromHEVCParameterSets( + CFAllocatorRef allocator, + int parameterSetCount, + ffi.Pointer> parameterSetPointers, + ffi.Pointer parameterSetSizes, + int NALUnitHeaderLength, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native() +external objc.CGRect CMVideoFormatDescriptionGetCleanAperture( + CMVideoFormatDescriptionRef videoDesc, + int originIsAtTopLeft, +); + +@ffi.Native() +external CMVideoDimensions CMVideoFormatDescriptionGetDimensions( + CMVideoFormatDescriptionRef videoDesc, +); + +@ffi.Native() +external CFArrayRef +CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers(); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionGetH264ParameterSetAtIndex( + CMFormatDescriptionRef videoDesc, + int parameterSetIndex, + ffi.Pointer> parameterSetPointerOut, + ffi.Pointer parameterSetSizeOut, + ffi.Pointer parameterSetCountOut, + ffi.Pointer NALUnitHeaderLengthOut, +); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionGetHEVCParameterSetAtIndex( + CMFormatDescriptionRef videoDesc, + int parameterSetIndex, + ffi.Pointer> parameterSetPointerOut, + ffi.Pointer parameterSetSizeOut, + ffi.Pointer parameterSetCountOut, + ffi.Pointer NALUnitHeaderLengthOut, +); + +@ffi.Native< + objc.CGSize Function(CMVideoFormatDescriptionRef, Boolean, Boolean) +>() +external objc.CGSize CMVideoFormatDescriptionGetPresentationDimensions( + CMVideoFormatDescriptionRef videoDesc, + int usePixelAspectRatio, + int useCleanAperture, +); + +@ffi.Native() +external int CMVideoFormatDescriptionMatchesImageBuffer( + CMVideoFormatDescriptionRef desc, + CVImageBufferRef imageBuffer, +); + +@ffi.Native)>() +external int CSBackupIsItemExcluded( + CFURLRef item, + ffi.Pointer excludeByPath, +); + +@ffi.Native() +external int CSBackupSetItemExcluded( + CFURLRef item, + int exclude, + int excludeByPath, +); + +@Deprecated('Deprecated') +@ffi.Native() +external CFStringRef CSCopyMachineName(); + +@Deprecated('Deprecated') +@ffi.Native() +external CFStringRef CSCopyUserName(int useShortName); + +@ffi.Native() +external void CSDiskSpaceCancelRecovery(CFUUIDRef operationUUID); + +@ffi.Native() +external int CSDiskSpaceGetRecoveryEstimate(CFURLRef volumeURL); + +@ffi.Native< + ffi.Void Function( + CFURLRef, + UInt64, + CSDiskSpaceRecoveryOptions, + ffi.Pointer, + dispatch_queue_t, + CSDiskSpaceRecoveryCallback, + ) +>(symbol: 'CSDiskSpaceStartRecovery') +external void _CSDiskSpaceStartRecovery( + CFURLRef volumeURL, + int bytesNeeded, + int options, + ffi.Pointer outOperationUUID, + dispatch_queue_t callbackQueue, + CSDiskSpaceRecoveryCallback callback, +); + +void CSDiskSpaceStartRecovery( + CFURLRef volumeURL, + DartUInt64 bytesNeeded, + DartCSDiskSpaceRecoveryOptions options, + ffi.Pointer outOperationUUID, + Dartdispatch_queue_t callbackQueue, + DartCSDiskSpaceRecoveryCallback callback, +) { + final _$$ref = callbackQueue.ref; + final _$$ref$1 = callback.ref; + return _CSDiskSpaceStartRecovery( + volumeURL, + bytesNeeded, + options, + outOperationUUID, + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@Deprecated('Deprecated') +@ffi.Native() +external int CSGetComponentsThreadMode(); + +@ffi.Native() +external CSIdentityAuthorityRef CSGetDefaultIdentityAuthority(); + +@ffi.Native() +external CSIdentityAuthorityRef CSGetLocalIdentityAuthority(); + +@ffi.Native() +external CSIdentityAuthorityRef CSGetManagedIdentityAuthority(); + +@ffi.Native() +external void CSIdentityAddAlias(CSIdentityRef identity, CFStringRef alias); + +@ffi.Native() +external void CSIdentityAddMember(CSIdentityRef group, CSIdentityRef member); + +@ffi.Native() +external int CSIdentityAuthenticateUsingPassword( + CSIdentityRef user, + CFStringRef password, +); + +@ffi.Native() +external CFStringRef CSIdentityAuthorityCopyLocalizedName( + CSIdentityAuthorityRef authority, +); + +@ffi.Native() +external int CSIdentityAuthorityGetTypeID(); + +@ffi.Native< + Boolean Function(CSIdentityRef, AuthorizationRef, ffi.Pointer) +>() +external int CSIdentityCommit( + CSIdentityRef identity, + AuthorizationRef authorization, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function( + CSIdentityRef, + ffi.Pointer, + CFRunLoopRef, + CFStringRef, + AuthorizationRef, + ) +>() +external int CSIdentityCommitAsynchronously( + CSIdentityRef identity, + ffi.Pointer clientContext, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, + AuthorizationRef authorization, +); + +@ffi.Native< + CSIdentityRef Function( + CFAllocatorRef, + CSIdentityClass, + CFStringRef, + CFStringRef, + CSIdentityFlags, + CSIdentityAuthorityRef, + ) +>() +external CSIdentityRef CSIdentityCreate( + CFAllocatorRef allocator, + int identityClass, + CFStringRef fullName, + CFStringRef posixName, + int flags, + CSIdentityAuthorityRef authority, +); + +@ffi.Native() +external CSIdentityRef CSIdentityCreateCopy( + CFAllocatorRef allocator, + CSIdentityRef identity, +); + +@ffi.Native() +external CSIdentityQueryRef CSIdentityCreateGroupMembershipQuery( + CFAllocatorRef allocator, + CSIdentityRef group, +); + +@ffi.Native() +external CFDataRef CSIdentityCreatePersistentReference( + CFAllocatorRef allocator, + CSIdentityRef identity, +); + +@ffi.Native() +external void CSIdentityDelete(CSIdentityRef identity); + +@ffi.Native() +external CFArrayRef CSIdentityGetAliases(CSIdentityRef identity); + +@ffi.Native() +external CSIdentityAuthorityRef CSIdentityGetAuthority(CSIdentityRef identity); + +@ffi.Native() +external SecCertificateRef CSIdentityGetCertificate(CSIdentityRef user); + +@ffi.Native() +external int CSIdentityGetClass(CSIdentityRef identity); + +@ffi.Native() +external CFStringRef CSIdentityGetEmailAddress(CSIdentityRef identity); + +@ffi.Native() +external CFStringRef CSIdentityGetFullName(CSIdentityRef identity); + +@ffi.Native() +external CFDataRef CSIdentityGetImageData(CSIdentityRef identity); + +@ffi.Native() +external CFStringRef CSIdentityGetImageDataType(CSIdentityRef identity); + +@ffi.Native() +external CFURLRef CSIdentityGetImageURL(CSIdentityRef identity); + +@ffi.Native() +external int CSIdentityGetPosixID(CSIdentityRef identity); + +@ffi.Native() +external CFStringRef CSIdentityGetPosixName(CSIdentityRef identity); + +@ffi.Native() +external int CSIdentityGetTypeID(); + +@ffi.Native() +external CFUUIDRef CSIdentityGetUUID(CSIdentityRef identity); + +@ffi.Native() +external int CSIdentityIsCommitting(CSIdentityRef identity); + +@ffi.Native() +external int CSIdentityIsEnabled(CSIdentityRef user); + +@ffi.Native() +external int CSIdentityIsHidden(CSIdentityRef identity); + +@ffi.Native() +external int CSIdentityIsMemberOfGroup( + CSIdentityRef identity, + CSIdentityRef group, +); + +@ffi.Native() +external CFArrayRef CSIdentityQueryCopyResults(CSIdentityQueryRef query); + +@ffi.Native< + CSIdentityQueryRef Function( + CFAllocatorRef, + CSIdentityClass, + CSIdentityAuthorityRef, + ) +>() +external CSIdentityQueryRef CSIdentityQueryCreate( + CFAllocatorRef allocator, + int identityClass, + CSIdentityAuthorityRef authority, +); + +@ffi.Native() +external CSIdentityQueryRef CSIdentityQueryCreateForCurrentUser( + CFAllocatorRef allocator, +); + +@ffi.Native< + CSIdentityQueryRef Function( + CFAllocatorRef, + CFStringRef, + CSIdentityQueryStringComparisonMethod, + CSIdentityClass, + CSIdentityAuthorityRef, + ) +>() +external CSIdentityQueryRef CSIdentityQueryCreateForName( + CFAllocatorRef allocator, + CFStringRef name, + int comparisonMethod, + int identityClass, + CSIdentityAuthorityRef authority, +); + +@ffi.Native() +external CSIdentityQueryRef CSIdentityQueryCreateForPersistentReference( + CFAllocatorRef allocator, + CFDataRef referenceData, +); + +@ffi.Native< + CSIdentityQueryRef Function( + CFAllocatorRef, + id_t, + CSIdentityClass, + CSIdentityAuthorityRef, + ) +>() +external CSIdentityQueryRef CSIdentityQueryCreateForPosixID( + CFAllocatorRef allocator, + int posixID, + int identityClass, + CSIdentityAuthorityRef authority, +); + +@ffi.Native< + CSIdentityQueryRef Function(CFAllocatorRef, CFUUIDRef, CSIdentityAuthorityRef) +>() +external CSIdentityQueryRef CSIdentityQueryCreateForUUID( + CFAllocatorRef allocator, + CFUUIDRef uuid, + CSIdentityAuthorityRef authority, +); + +@ffi.Native< + Boolean Function( + CSIdentityQueryRef, + CSIdentityQueryFlags, + ffi.Pointer, + ) +>() +external int CSIdentityQueryExecute( + CSIdentityQueryRef query, + int flags, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function( + CSIdentityQueryRef, + CSIdentityQueryFlags, + ffi.Pointer, + CFRunLoopRef, + CFStringRef, + ) +>() +external int CSIdentityQueryExecuteAsynchronously( + CSIdentityQueryRef query, + int flags, + ffi.Pointer clientContext, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native() +external int CSIdentityQueryGetTypeID(); + +@ffi.Native() +external void CSIdentityQueryStop(CSIdentityQueryRef query); + +@ffi.Native() +external void CSIdentityRemoveAlias(CSIdentityRef identity, CFStringRef alias); + +@ffi.Native() +external void CSIdentityRemoveClient(CSIdentityRef identity); + +@ffi.Native() +external void CSIdentityRemoveMember(CSIdentityRef group, CSIdentityRef member); + +@ffi.Native() +external void CSIdentitySetCertificate( + CSIdentityRef user, + SecCertificateRef certificate, +); + +@ffi.Native() +external void CSIdentitySetEmailAddress( + CSIdentityRef identity, + CFStringRef emailAddress, +); + +@ffi.Native() +external void CSIdentitySetFullName( + CSIdentityRef identity, + CFStringRef fullName, +); + +@ffi.Native() +external void CSIdentitySetImageData( + CSIdentityRef identity, + CFDataRef imageData, + CFStringRef imageDataType, +); + +@ffi.Native() +external void CSIdentitySetImageURL(CSIdentityRef identity, CFURLRef url); + +@ffi.Native() +external void CSIdentitySetIsEnabled(CSIdentityRef user, int isEnabled); + +@ffi.Native() +external void CSIdentitySetPassword(CSIdentityRef user, CFStringRef password); + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ADC_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AD_CA_ISSUERS; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AD_CA_REPOSITORY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AD_OCSP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AD_TIME_STAMPING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_EPHEM; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_EPHEM_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID1_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID2_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID_ONEFLOW; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_ONE_FLOW; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_ONE_FLOW_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_PUB_NUMBER; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_STATIC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_STATIC_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_MQV1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_MQV1_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_MQV2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_MQV2_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLEID_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLEID_SHARING_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_ASC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_ECDSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_CODE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_CODE_SIGNING_DEV; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_ICHAT_ENCRYPTION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_ICHAT_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_PASSBOOK_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_QA_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_RESOURCE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_SYSTEM_IDENTITY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_AAI_INTERMEDIATE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ADC_APPLE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ADC_DEV_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLEID_INTERMEDIATE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLEID_SHARING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_CODE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_DEVELOPER_AUTHENTICATION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ESCROW_SERVICE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_INTERMEDIATE_MARKER; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ITMS_INTERMEDIATE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_MACAPPSTORE_RECEIPT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_PASSBOOK_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_PROVISIONING_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_SERVER_AUTHENTICATION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_SYSINT2_INTERMEDIATE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_WWDR_INTERMEDIATE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_FEE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_FEED; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_FEEDEXP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_FEE_MD5; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_FEE_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_ISIGN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_APPLEID_SHARING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_CODE_SIGN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_CODE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_CSR_GEN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_EAP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_ESCROW_SERVICE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_ICHAT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_IP_SEC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_LOCAL_CERT_GEN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_MACAPPSTORE_RECEIPT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_MOBILE_STORE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PACKAGE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PASSBOOK_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PCS_ESCROW_SERVICE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PKINIT_CLIENT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PKINIT_SERVER; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PROVISIONING_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_QA_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_RESOURCE_SIGN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION_CRL; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION_OCSP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_SMIME; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_SSL; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_SW_UPDATE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_TEST_MOBILE_STORE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_TIMESTAMPING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_X509_BASIC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AliasedEntryName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AuthorityInfoAccess; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AuthorityKeyIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AuthorityRevocationList; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_BasicConstraints; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_BiometricInfo; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_BusinessCategory; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CACertificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CSSMKeyStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CertIssuer; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Certicom; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CerticomEllCurve; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CertificatePolicies; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CertificateRevocationList; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ChallengePassword; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ClientAuth; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveFacsimileTelephoneNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveInternationalISDNNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveOrganizationName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveOrganizationalUnitName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectivePhysicalDeliveryOfficeName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectivePostOfficeBox; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectivePostalAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectivePostalCode; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveStateProvinceName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveStreetAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveTelephoneNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveTelexNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveTelexTerminalIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CommonName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ContentType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CounterSignature; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CountryName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CrlDistributionPoints; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CrlNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CrlReason; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CrossCertificatePair; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DES_CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DH; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DNQualifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EMAIL_ENCRYPT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EMAIL_SIGN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EXTENSION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_IDENTITY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_FETCH; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_LIST; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_REMOVE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_STORE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_EMAIL_ENCRYPT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_EMAIL_SIGN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_IDENTITY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_SHARED_SERVICES; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_ASYNC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_HOSTNAME; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_IS_PENDING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_PASSWORD; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_RENEW; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_USERNAME; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DSA_CMS; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DSA_JDK; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DeltaCrlIndicator; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Description; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DestinationIndicator; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DistinguishedName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DomainComponent; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSHA224; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSHA256; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSHA384; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSHA512; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSpecified; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_EKU_IPSec; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_COMPLIANCE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_LIMIT_VALUE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_RETENTION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_SSCD; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_EmailAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_EmailProtection; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_EnhancedSearchGuide; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ExtendedCertificateAttributes; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ExtendedKeyUsage; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ExtendedKeyUsageAny; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ExtendedUseCodeSigning; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_FacsimileTelephoneNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_GenerationQualifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_GivenName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_HoldInstructionCode; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_HouseIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_InhibitAnyPolicy; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Initials; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_InternationalISDNNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_InvalidityDate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_IssuerAltName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_IssuingDistributionPoint; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_IssuingDistributionPoints; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_AUTH_DATA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_DH_KEY_DATA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_KP_CLIENT_AUTH; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_KP_KDC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_RKEY_DATA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KeyUsage; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KnowledgeInformation; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_LocalityName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MACAPPSTORE_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MACAPPSTORE_RECEIPT_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD2WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD4; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD4WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD5; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD5WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MOBILE_STORE_SIGNING_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Member; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MessageDigest; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MicrosoftSGC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Name; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_NameConstraints; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_NetscapeCertSequence; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_NetscapeCertType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_NetscapeSGC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OAEP_ID_PSPECIFIED; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OAEP_MGF1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OCSPSigning; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OID_QCS_SYNTAX_V1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OID_QCS_SYNTAX_V2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ObjectClass; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OrganizationName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OrganizationalUnitName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Owner; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PDA_COUNTRY_CITIZEN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PDA_COUNTRY_RESIDENCE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PDA_DATE_OF_BIRTH; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PDA_GENDER; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PDA_PLACE_OF_BIRTH; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_certBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_crlBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_keyBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd128BitRC2CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd128BitRC4; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd2Key3DESCBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd3Key3DESCBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd40BitRC4; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbewithSHAAnd40BitRC2CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_safeContentsBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_secretBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_shroudedKeyBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS3; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_DES_EDE3_CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_DIGEST_ALG; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_ENCRYPT_ALG; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_HMAC_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_PBES2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_PBKDF2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_PBMAC1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_RC2_CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_RC5_CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD2AndDES; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD2AndRC2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD5AndDES; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD5AndRC2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithSHA1AndDES; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithSHA1AndRC2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_Data; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_DataWithAttributes; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_DigestedData; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_EncryptedData; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_EncryptedPrivateKeyInfo; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_EnvelopedData; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_SignedAndEnvelopedData; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_SignedData; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_CertTypes; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_CrlTypes; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_FriendlyName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_Id_Ct_TSTInfo; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_LocalKeyId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_SdsiCertificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_TimeStampToken; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_X509Certificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_X509Crl; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_ARCHIVE_CUTOFF; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_BASIC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_CRL; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_NOCHECK; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_NONCE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_RESPONSE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_SERVICE_LOCATOR; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PhysicalDeliveryOfficeName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PolicyConstraints; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PolicyMappings; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PostOfficeBox; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PostalAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PostalCode; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PreferredDeliveryMethod; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PresentationAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PrivateKeyUsagePeriod; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ProtocolInformation; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_QC_Statements; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_QT_CPS; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_QT_UNOTICE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_RSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_RSAWithOAEP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_RegisteredAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_RoleOccupant; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1WithDSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1WithDSA_CMS; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1WithDSA_JDK; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1WithRSA_OIW; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA224; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA224WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA256; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA256WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA384; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA384WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA512; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA512WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SearchGuide; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SeeAlso; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SerialNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ServerAuth; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SigningTime; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_StateProvinceName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_StreetAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectAltName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectDirectoryAttributes; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectEmailAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectInfoAccess; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectKeyIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectPicture; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectSignatureBitmap; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SupportedApplicationContext; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Surname; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_TEST_MOBILE_STORE_SIGNING_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_TelephoneNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_TelexNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_TelexTerminalIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_TimeStamping; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Title; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UniqueIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UniqueMember; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UnstructuredAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UnstructuredName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UseExemptions; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UserCertificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UserID; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UserPassword; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLIssuerNameCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLIssuerNameLDAP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLIssuerStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLNextUpdate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLNumberOfRevokedCertEntries; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedCertificatesCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedCertificatesStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryRevocationDate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntrySerialNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLThisUpdate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CertificateIssuerUniqueId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CertificateSubjectUniqueId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1IssuerName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1IssuerNameCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1IssuerNameLDAP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1IssuerNameStd; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SerialNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1Signature; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithm; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithmParameters; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithmTBS; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SignatureCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SignatureStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectNameCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectNameLDAP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectNameStd; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKey; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyAlgorithm; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyAlgorithmParameters; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1ValidityNotAfter; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1ValidityNotBefore; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1Version; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLAllExtensionsCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLAllExtensionsStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLExtensionCritical; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLExtensionId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLExtensionType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLNumberOfExtensions; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryAllExtensionsCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryAllExtensionsStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionCritical; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionValue; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryNumberOfExtensions; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntrySingleExtensionCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntrySingleExtensionStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLSignedCrlCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLSignedCrlStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLSingleExtensionCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLSingleExtensionStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLTbsCertListCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLTbsCertListStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLVersion; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3Certificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionCritical; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionValue; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionsCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionsStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateNumberOfExtensions; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3SignedCertificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3SignedCertificateCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_C_TwoCurve; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_EllCurve; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_FieldType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_PrimeCurve; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_PubKeyType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_SigType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X_121Address; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ecPublicKey; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp112r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp112r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp128r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp128r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp160k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp160r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp160r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp192k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp192r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp224k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp224r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp256k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp256r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp384r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp521r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect113r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect113r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect131r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect131r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect163k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect163r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect163r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect193r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect193r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect233k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect233r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect239k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect283k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect283r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect409k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect409r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect571k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect571r1; + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_AC_HANDLE, + ffi.Pointer, + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TUPLEGROUP_PTR, + ) +>() +external int CSSM_AC_AuthCompute( + int ACHandle, + ffi.Pointer BaseAuthorizations, + ffi.Pointer Credentials, + int NumberOfRequestors, + ffi.Pointer Requestors, + ffi.Pointer RequestedAuthorizationPeriod, + ffi.Pointer RequestedAuthorization, + CSSM_TUPLEGROUP_PTR AuthorizationResult, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_AC_HANDLE, + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CSSM_AC_PassThrough( + int ACHandle, + int TPHandle, + int CLHandle, + int CCHandle, + ffi.Pointer DBList, + int PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_CL_CertAbortCache(int CLHandle, int CertHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_CL_CertAbortQuery(int CLHandle, int ResultsHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + CSSM_HANDLE_PTR, + ) +>() +external int CSSM_CL_CertCache( + int CLHandle, + ffi.Pointer Cert, + CSSM_HANDLE_PTR CertHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CertCreateTemplate( + int CLHandle, + int NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertDescribeFormat( + int CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGetAllFields( + int CLHandle, + ffi.Pointer Cert, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGetAllTemplateFields( + int CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_HANDLE, + ffi.Pointer, + CSSM_HANDLE_PTR, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGetFirstCachedFieldValue( + int CLHandle, + int CertHandle, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_HANDLE_PTR, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGetFirstFieldValue( + int CLHandle, + ffi.Pointer Cert, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGetKeyInfo( + int CLHandle, + ffi.Pointer Cert, + ffi.Pointer Key, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CertGetNextCachedFieldValue( + int CLHandle, + int ResultsHandle, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CertGetNextFieldValue( + int CLHandle, + int ResultsHandle, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGroupFromVerifiedBundle( + int CLHandle, + int CCHandle, + ffi.Pointer CertBundle, + ffi.Pointer SignerCert, + ffi.Pointer CertGroup, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CertGroupToSignedBundle( + int CLHandle, + int CCHandle, + ffi.Pointer CertGroupToBundle, + ffi.Pointer BundleInfo, + CSSM_DATA_PTR SignedBundle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CertSign( + int CLHandle, + int CCHandle, + ffi.Pointer CertTemplate, + ffi.Pointer SignScope, + int ScopeSize, + CSSM_DATA_PTR SignedCert, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + uint32, + ) +>() +external int CSSM_CL_CertVerify( + int CLHandle, + int CCHandle, + ffi.Pointer CertToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + int ScopeSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_CC_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CertVerifyWithKey( + int CLHandle, + int CCHandle, + ffi.Pointer CertToBeVerified, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_CL_CrlAbortCache(int CLHandle, int CrlHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_CL_CrlAbortQuery(int CLHandle, int ResultsHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CrlAddCert( + int CLHandle, + int CCHandle, + ffi.Pointer Cert, + int NumberOfFields, + ffi.Pointer CrlEntryFields, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + CSSM_HANDLE_PTR, + ) +>() +external int CSSM_CL_CrlCache( + int CLHandle, + ffi.Pointer Crl, + CSSM_HANDLE_PTR CrlHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CrlCreateTemplate( + int CLHandle, + int NumberOfFields, + ffi.Pointer CrlTemplate, + CSSM_DATA_PTR NewCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CrlDescribeFormat( + int CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CrlGetAllCachedRecordFields( + int CLHandle, + int CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer NumberOfFields, + ffi.Pointer CrlFields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CrlGetAllFields( + int CLHandle, + ffi.Pointer Crl, + ffi.Pointer NumberOfCrlFields, + ffi.Pointer CrlFields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_HANDLE_PTR, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CrlGetFirstCachedFieldValue( + int CLHandle, + int CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_HANDLE_PTR, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CrlGetFirstFieldValue( + int CLHandle, + ffi.Pointer Crl, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CrlGetNextCachedFieldValue( + int CLHandle, + int ResultsHandle, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CrlGetNextFieldValue( + int CLHandle, + int ResultsHandle, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CrlRemoveCert( + int CLHandle, + ffi.Pointer Cert, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CrlSetFields( + int CLHandle, + int NumberOfFields, + ffi.Pointer CrlTemplate, + ffi.Pointer OldCrl, + CSSM_DATA_PTR ModifiedCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CrlSign( + int CLHandle, + int CCHandle, + ffi.Pointer UnsignedCrl, + ffi.Pointer SignScope, + int ScopeSize, + CSSM_DATA_PTR SignedCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + uint32, + ) +>() +external int CSSM_CL_CrlVerify( + int CLHandle, + int CCHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + int ScopeSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_CC_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CrlVerifyWithKey( + int CLHandle, + int CCHandle, + ffi.Pointer CrlToBeVerified, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, ffi.Pointer, CSSM_DATA_PTR) +>() +external int CSSM_CL_FreeFieldValue( + int CLHandle, + ffi.Pointer CertOrCrlOid, + CSSM_DATA_PTR Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, uint32, ffi.Pointer) +>() +external int CSSM_CL_FreeFields( + int CLHandle, + int NumberOfFields, + ffi.Pointer Fields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + CSSM_HANDLE, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_IsCertInCachedCrl( + int CLHandle, + ffi.Pointer Cert, + int CrlHandle, + ffi.Pointer CertFound, + CSSM_DATA_PTR CrlRecordIndex, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_IsCertInCrl( + int CLHandle, + ffi.Pointer Cert, + ffi.Pointer Crl, + ffi.Pointer CertFound, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + uint32, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CSSM_CL_PassThrough( + int CLHandle, + int CCHandle, + int PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_ChangeLoginAcl( + int CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_ChangeLoginOwner( + int CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + ffi.Pointer, + CSSM_PADDING, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateAsymmetricContext( + int CSPHandle, + int AlgorithmID, + ffi.Pointer AccessCred, + ffi.Pointer Key, + int Padding, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + CSSM_KEY_TYPE, + uint32, + ffi.Pointer, + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateDeriveKeyContext( + int CSPHandle, + int AlgorithmID, + int DeriveKeyType, + int DeriveKeyLengthInBits, + ffi.Pointer AccessCred, + ffi.Pointer BaseKey, + int IterationCount, + ffi.Pointer Salt, + ffi.Pointer Seed, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateDigestContext( + int CSPHandle, + int AlgorithmID, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateKeyGenContext( + int CSPHandle, + int AlgorithmID, + int KeySizeInBits, + ffi.Pointer Seed, + ffi.Pointer Salt, + ffi.Pointer StartDate, + ffi.Pointer EndDate, + ffi.Pointer Params, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateMacContext( + int CSPHandle, + int AlgorithmID, + ffi.Pointer Key, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreatePassThroughContext( + int CSPHandle, + ffi.Pointer Key, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + CSSM_SIZE, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateRandomGenContext( + int CSPHandle, + int AlgorithmID, + ffi.Pointer Seed, + int Length, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateSignatureContext( + int CSPHandle, + int AlgorithmID, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + CSSM_ENCRYPT_MODE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_PADDING, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateSymmetricContext( + int CSPHandle, + int AlgorithmID, + int Mode, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer InitVector, + int Padding, + ffi.Pointer Reserved, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_GetLoginAcl( + int CSPHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CSP_HANDLE, CSSM_ACL_OWNER_PROTOTYPE_PTR) +>() +external int CSSM_CSP_GetLoginOwner( + int CSPHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ) +>() +external int CSSM_CSP_GetOperationalStatistics( + int CSPHandle, + ffi.Pointer Statistics, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_Login( + int CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer LoginName, + ffi.Pointer Reserved, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_CSP_Logout(int CSPHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CSP_HANDLE, ffi.Pointer, CSSM_KEY_PTR) +>() +external int CSSM_CSP_ObtainPrivateKeyFromPublicKey( + int CSPHandle, + ffi.Pointer PublicKey, + CSSM_KEY_PTR PrivateKey, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CSSM_CSP_PassThrough( + int CCHandle, + int PassThroughId, + ffi.Pointer InData, + ffi.Pointer> OutData, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_ChangeKeyAcl( + int CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ffi.Pointer Key, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_ChangeKeyOwner( + int CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer NewOwner, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + CSSM_DB_ACCESS_TYPE, + ffi.Pointer, + ) +>() +external int CSSM_DL_Authenticate( + CSSM_DL_DB_HANDLE DLDBHandle, + int AccessRequest, + ffi.Pointer AccessCred, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_ChangeDbAcl( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_ChangeDbOwner( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + CSSM_DB_RECORDTYPE, + ffi.Pointer, + uint32, + ffi.Pointer, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_DL_CreateRelation( + CSSM_DL_DB_HANDLE DLDBHandle, + int RelationID, + ffi.Pointer RelationName, + int NumberOfAttributes, + ffi.Pointer pAttributeInfo, + int NumberOfIndexes, + ffi.Pointer pIndexInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DL_DataAbortQuery( + CSSM_DL_DB_HANDLE DLDBHandle, + int ResultsHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_DL_DB_HANDLE, ffi.Pointer) +>() +external int CSSM_DL_DataDelete( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecordIdentifier, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + ffi.Pointer, + CSSM_HANDLE_PTR, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, + CSSM_DATA_PTR, + ffi.Pointer, + ) +>() +external int CSSM_DL_DataGetFirst( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer Query, + CSSM_HANDLE_PTR ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + ffi.Pointer, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, + CSSM_DATA_PTR, + ) +>() +external int CSSM_DL_DataGetFromUniqueRecordId( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecord, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + CSSM_HANDLE, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, + CSSM_DATA_PTR, + ffi.Pointer, + ) +>() +external int CSSM_DL_DataGetNext( + CSSM_DL_DB_HANDLE DLDBHandle, + int ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + CSSM_DB_RECORDTYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_DataInsert( + CSSM_DL_DB_HANDLE DLDBHandle, + int RecordType, + ffi.Pointer Attributes, + ffi.Pointer Data, + ffi.Pointer UniqueId, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + CSSM_DB_RECORDTYPE, + CSSM_DB_UNIQUE_RECORD_PTR, + ffi.Pointer, + ffi.Pointer, + CSSM_DB_MODIFY_MODE, + ) +>() +external int CSSM_DL_DataModify( + CSSM_DL_DB_HANDLE DLDBHandle, + int RecordType, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, + ffi.Pointer AttributesToBeModified, + ffi.Pointer DataToBeModified, + int ModifyMode, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DL_DbClose(CSSM_DL_DB_HANDLE DLDBHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_DB_ACCESS_TYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_DbCreate( + int DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer DBInfo, + int AccessRequest, + ffi.Pointer CredAndAclEntry, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_DbDelete( + int DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer AccessCred, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_DB_ACCESS_TYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_DbOpen( + int DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + int AccessRequest, + ffi.Pointer AccessCred, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DL_DestroyRelation( + CSSM_DL_DB_HANDLE DLDBHandle, + int RelationID, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DL_FreeNameList(int DLHandle, CSSM_NAME_LIST_PTR NameList); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_DL_DB_HANDLE, CSSM_DB_UNIQUE_RECORD_PTR) +>() +external int CSSM_DL_FreeUniqueRecord( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_GetDbAcl( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_DL_DB_HANDLE, ffi.Pointer>) +>() +external int CSSM_DL_GetDbNameFromHandle( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> DbName, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_DL_HANDLE, ffi.Pointer) +>() +external int CSSM_DL_GetDbNames( + int DLHandle, + ffi.Pointer NameList, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_DL_DB_HANDLE, CSSM_ACL_OWNER_PROTOTYPE_PTR) +>() +external int CSSM_DL_GetDbOwner( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + uint32, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CSSM_DL_PassThrough( + CSSM_DL_DB_HANDLE DLDBHandle, + int PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_DecryptData( + int CCHandle, + ffi.Pointer CipherBufs, + int CipherBufCount, + CSSM_DATA_PTR ClearBufs, + int ClearBufCount, + ffi.Pointer bytesDecrypted, + CSSM_DATA_PTR RemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DecryptDataFinal(int CCHandle, CSSM_DATA_PTR RemData); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DecryptDataInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DecryptDataInitP(int CCHandle, int Privilege); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_DecryptDataP( + int CCHandle, + ffi.Pointer CipherBufs, + int CipherBufCount, + CSSM_DATA_PTR ClearBufs, + int ClearBufCount, + ffi.Pointer bytesDecrypted, + CSSM_DATA_PTR RemData, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_DecryptDataUpdate( + int CCHandle, + ffi.Pointer CipherBufs, + int CipherBufCount, + CSSM_DATA_PTR ClearBufs, + int ClearBufCount, + ffi.Pointer bytesDecrypted, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DeleteContext(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_DeleteContextAttributes( + int CCHandle, + int NumberOfAttributes, + ffi.Pointer ContextAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + CSSM_DATA_PTR, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + ) +>() +external int CSSM_DeriveKey( + int CCHandle, + CSSM_DATA_PTR Param, + int KeyUsage, + int KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR DerivedKey, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + ) +>() +external int CSSM_DigestData( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, + CSSM_DATA_PTR Digest, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_DigestDataClone( + int CCHandle, + ffi.Pointer ClonednewCCHandle, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DigestDataFinal(int CCHandle, CSSM_DATA_PTR Digest); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DigestDataInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) +>() +external int CSSM_DigestDataUpdate( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_EncryptData( + int CCHandle, + ffi.Pointer ClearBufs, + int ClearBufCount, + CSSM_DATA_PTR CipherBufs, + int CipherBufCount, + ffi.Pointer bytesEncrypted, + CSSM_DATA_PTR RemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_EncryptDataFinal(int CCHandle, CSSM_DATA_PTR RemData); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_EncryptDataInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_EncryptDataInitP(int CCHandle, int Privilege); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_EncryptDataP( + int CCHandle, + ffi.Pointer ClearBufs, + int ClearBufCount, + CSSM_DATA_PTR CipherBufs, + int CipherBufCount, + ffi.Pointer bytesEncrypted, + CSSM_DATA_PTR RemData, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_EncryptDataUpdate( + int CCHandle, + ffi.Pointer ClearBufs, + int ClearBufCount, + CSSM_DATA_PTR CipherBufs, + int CipherBufCount, + ffi.Pointer bytesEncrypted, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_FreeContext(CSSM_CONTEXT_PTR Context); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + CSSM_KEY_PTR, + CSSM_BOOL, + ) +>() +external int CSSM_FreeKey( + int CSPHandle, + ffi.Pointer AccessCred, + CSSM_KEY_PTR KeyPtr, + int Delete, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GenerateAlgorithmParams( + int CCHandle, + int ParamBits, + CSSM_DATA_PTR Param, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + ) +>() +external int CSSM_GenerateKey( + int CCHandle, + int KeyUsage, + int KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR Key, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_GenerateKeyP( + int CCHandle, + int KeyUsage, + int KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR Key, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + uint32, + ffi.Pointer, + CSSM_KEY_PTR, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + ) +>() +external int CSSM_GenerateKeyPair( + int CCHandle, + int PublicKeyUsage, + int PublicKeyAttr, + ffi.Pointer PublicKeyLabel, + CSSM_KEY_PTR PublicKey, + int PrivateKeyUsage, + int PrivateKeyAttr, + ffi.Pointer PrivateKeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR PrivateKey, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + uint32, + ffi.Pointer, + CSSM_KEY_PTR, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_GenerateKeyPairP( + int CCHandle, + int PublicKeyUsage, + int PublicKeyAttr, + ffi.Pointer PublicKeyLabel, + CSSM_KEY_PTR PublicKey, + int PrivateKeyUsage, + int PrivateKeyAttr, + ffi.Pointer PrivateKeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR PrivateKey, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + ) +>() +external int CSSM_GenerateMac( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, + CSSM_DATA_PTR Mac, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GenerateMacFinal(int CCHandle, CSSM_DATA_PTR Mac); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GenerateMacInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) +>() +external int CSSM_GenerateMacUpdate( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GenerateRandom(int CCHandle, CSSM_DATA_PTR RandomNumber); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_MODULE_HANDLE, CSSM_API_MEMORY_FUNCS_PTR) +>() +external int CSSM_GetAPIMemoryFunctions( + int AddInHandle, + CSSM_API_MEMORY_FUNCS_PTR AppMemoryFuncs, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer) +>() +external int CSSM_GetContext( + int CCHandle, + ffi.Pointer Context, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_GetContextAttribute( + ffi.Pointer Context, + int AttributeType, + ffi.Pointer ContextAttribute, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_GetKeyAcl( + int CSPHandle, + ffi.Pointer Key, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + CSSM_ACL_OWNER_PROTOTYPE_PTR, + ) +>() +external int CSSM_GetKeyOwner( + int CSPHandle, + ffi.Pointer Key, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GetModuleGUIDFromHandle( + int ModuleHandle, + CSSM_GUID_PTR ModuleGUID, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_GetPrivilege(ffi.Pointer Privilege); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GetSubserviceUIDFromHandle( + int ModuleHandle, + CSSM_SUBSERVICE_UID_PTR SubserviceUID, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + ) +>() +external int CSSM_GetTimeValue( + int CSPHandle, + int TimeAlgorithm, + ffi.Pointer TimeData, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + CSSM_PRIVILEGE_SCOPE, + ffi.Pointer, + CSSM_KEY_HIERARCHY, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_Init( + ffi.Pointer Version, + int Scope, + ffi.Pointer CallerGuid, + int KeyHierarchy, + ffi.Pointer PvcPolicy, + ffi.Pointer Reserved, +); + +@Deprecated('Deprecated') +@ffi.Native, CSSM_KEY_HIERARCHY)>() +external int CSSM_Introduce(ffi.Pointer ModuleID, int KeyHierarchy); + +@Deprecated('Deprecated') +@ffi.Native, CSSM_GUID_PTR)>() +external int CSSM_ListAttachedModuleManagers( + ffi.Pointer NumberOfModuleManagers, + CSSM_GUID_PTR ModuleManagerGuids, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + uint32, + CSSM_SERVICE_TYPE, + CSSM_ATTACH_FLAGS, + CSSM_KEY_HIERARCHY, + ffi.Pointer, + uint32, + ffi.Pointer, + CSSM_MODULE_HANDLE_PTR, + ) +>() +external int CSSM_ModuleAttach( + ffi.Pointer ModuleGuid, + ffi.Pointer Version, + ffi.Pointer MemoryFuncs, + int SubserviceID, + int SubServiceType, + int AttachFlags, + int KeyHierarchy, + ffi.Pointer FunctionTable, + int NumFunctionTable, + ffi.Pointer Reserved, + CSSM_MODULE_HANDLE_PTR NewModuleHandle, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_ModuleDetach(int ModuleHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + CSSM_KEY_HIERARCHY, + CSSM_API_ModuleEventHandler, + ffi.Pointer, + ) +>() +external int CSSM_ModuleLoad( + ffi.Pointer ModuleGuid, + int KeyHierarchy, + CSSM_API_ModuleEventHandler AppNotifyCallback, + ffi.Pointer AppNotifyCallbackCtx, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + CSSM_API_ModuleEventHandler, + ffi.Pointer, + ) +>() +external int CSSM_ModuleUnload( + ffi.Pointer ModuleGuid, + CSSM_API_ModuleEventHandler AppNotifyCallback, + ffi.Pointer AppNotifyCallbackCtx, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + CSSM_KEY_SIZE_PTR, + ) +>() +external int CSSM_QueryKeySizeInBits( + int CSPHandle, + int CCHandle, + ffi.Pointer Key, + CSSM_KEY_SIZE_PTR KeySize, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + CSSM_BOOL, + uint32, + CSSM_QUERY_SIZE_DATA_PTR, + ) +>() +external int CSSM_QuerySize( + int CCHandle, + int Encrypt, + int QuerySizeCount, + CSSM_QUERY_SIZE_DATA_PTR DataBlockSizes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_RetrieveCounter(int CSPHandle, CSSM_DATA_PTR Counter); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_RetrieveUniqueId(int CSPHandle, CSSM_DATA_PTR UniqueID$1); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_SetContext(int CCHandle, ffi.Pointer Context); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_SetPrivilege(int Privilege); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_ALGORITHMS, + CSSM_DATA_PTR, + ) +>() +external int CSSM_SignData( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, + int DigestAlgorithm, + CSSM_DATA_PTR Signature, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_SignDataFinal(int CCHandle, CSSM_DATA_PTR Signature); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_SignDataInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) +>() +external int CSSM_SignDataUpdate( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + ) +>() +external int CSSM_TP_ApplyCrlToDb( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer CrlToBeApplied, + ffi.Pointer SignerCertGroup, + ffi.Pointer ApplyCrlVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CertCreateTemplate( + int TPHandle, + int CLHandle, + int NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_CertGetAllTemplateFields( + int TPHandle, + int CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_CertGroupConstruct( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer DBList, + ffi.Pointer ConstructParams, + ffi.Pointer CertGroupFrag, + ffi.Pointer CertGroup, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_CertGroupPrune( + int TPHandle, + int CLHandle, + ffi.Pointer DBList, + ffi.Pointer OrderedCertGroup, + ffi.Pointer PrunedCertGroup, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_CertGroupToTupleGroup( + int TPHandle, + int CLHandle, + ffi.Pointer CertGroup, + ffi.Pointer TupleGroup, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + ) +>() +external int CSSM_TP_CertGroupVerify( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer CertGroupToBeVerified, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_TP_CertReclaimAbort(int TPHandle, int KeyCacheHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + uint32, + CSSM_LONG_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ) +>() +external int CSSM_TP_CertReclaimKey( + int TPHandle, + ffi.Pointer CertGroup, + int CertIndex, + int KeyCacheHandle, + int CSPHandle, + ffi.Pointer CredAndAclEntry, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CertRemoveFromCrlTemplate( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRemoved, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + CSSM_DATA_PTR NewCrlTemplate, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + CSSM_TP_CERTCHANGE_REASON, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CertRevoke( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRevoked, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + int Reason, + CSSM_DATA_PTR NewCrlTemplate, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CertSign( + int TPHandle, + int CLHandle, + int CCHandle, + ffi.Pointer CertTemplateToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCert, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_ConfirmCredResult( + int TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer Responses, + ffi.Pointer PreferredAuthority, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CrlCreateTemplate( + int TPHandle, + int CLHandle, + int NumberOfFields, + ffi.Pointer CrlFields, + CSSM_DATA_PTR NewCrlTemplate, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CrlSign( + int TPHandle, + int CLHandle, + int CCHandle, + ffi.Pointer CrlToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + ) +>() +external int CSSM_TP_CrlVerify( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCertGroup, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + CSSM_TP_FORM_TYPE, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_FormRequest( + int TPHandle, + ffi.Pointer PreferredAuthority, + int FormType, + CSSM_DATA_PTR BlankForm, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_TP_FORM_TYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_ACCESS_CREDENTIALS_PTR, + ) +>() +external int CSSM_TP_FormSubmit( + int TPHandle, + int FormType, + ffi.Pointer Form, + ffi.Pointer ClearanceAuthority, + ffi.Pointer RepresentedAuthority, + CSSM_ACCESS_CREDENTIALS_PTR Credentials, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CSSM_TP_PassThrough( + int TPHandle, + int CLHandle, + int CCHandle, + ffi.Pointer DBList, + int PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_ReceiveConfirmation( + int TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer Responses, + ffi.Pointer ElapsedTime, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_RetrieveCredResult( + int TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer EstimatedTime, + ffi.Pointer ConfirmationRequired, + ffi.Pointer RetrieveOutput, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + CSSM_TP_AUTHORITY_REQUEST_TYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_SubmitCredRequest( + int TPHandle, + ffi.Pointer PreferredAuthority, + int RequestType, + ffi.Pointer RequestInput, + ffi.Pointer CallerAuthContext, + ffi.Pointer EstimatedTime, + CSSM_DATA_PTR ReferenceIdentifier, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_TupleGroupToCertGroup( + int TPHandle, + int CLHandle, + ffi.Pointer TupleGroup, + ffi.Pointer CertTemplates, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_Terminate(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_Unintroduce(ffi.Pointer ModuleID); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + CSSM_DATA_PTR, + ) +>() +external int CSSM_UnwrapKey( + int CCHandle, + ffi.Pointer PublicKey, + ffi.Pointer WrappedKey, + int KeyUsage, + int KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR UnwrappedKey, + CSSM_DATA_PTR DescriptiveData, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + CSSM_DATA_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_UnwrapKeyP( + int CCHandle, + ffi.Pointer PublicKey, + ffi.Pointer WrappedKey, + int KeyUsage, + int KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR UnwrappedKey, + CSSM_DATA_PTR DescriptiveData, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_UpdateContextAttributes( + int CCHandle, + int NumberOfAttributes, + ffi.Pointer ContextAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_ALGORITHMS, + ffi.Pointer, + ) +>() +external int CSSM_VerifyData( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, + int DigestAlgorithm, + ffi.Pointer Signature, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_VerifyDataFinal( + int CCHandle, + ffi.Pointer Signature, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_VerifyDataInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) +>() +external int CSSM_VerifyDataUpdate( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_VerifyDevice( + int CSPHandle, + ffi.Pointer DeviceCert, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_VerifyMac( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, + ffi.Pointer Mac, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_VerifyMacFinal(int CCHandle, ffi.Pointer Mac); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_VerifyMacInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) +>() +external int CSSM_VerifyMacUpdate( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_WRAP_KEY_PTR, + ) +>() +external int CSSM_WrapKey( + int CCHandle, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer DescriptiveData, + CSSM_WRAP_KEY_PTR WrappedKey, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_WRAP_KEY_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_WrapKeyP( + int CCHandle, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer DescriptiveData, + CSSM_WRAP_KEY_PTR WrappedKey, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void CSSetComponentsThreadMode(int mode); + +@ffi.Native() +external CFArrayRef CTFontCollectionCopyExclusionDescriptors( + CTFontCollectionRef collection, +); + +@ffi.Native() +external CFArrayRef CTFontCollectionCopyFontAttribute( + CTFontCollectionRef collection, + CFStringRef attributeName, + int options, +); + +@ffi.Native() +external CFArrayRef CTFontCollectionCopyFontAttributes( + CTFontCollectionRef collection, + CFSetRef attributeNames, + int options, +); + +@ffi.Native() +external CFArrayRef CTFontCollectionCopyQueryDescriptors( + CTFontCollectionRef collection, +); + +@ffi.Native< + CTFontCollectionRef Function(CTFontCollectionRef, CFArrayRef, CFDictionaryRef) +>() +external CTFontCollectionRef CTFontCollectionCreateCopyWithFontDescriptors( + CTFontCollectionRef original, + CFArrayRef queryDescriptors, + CFDictionaryRef options, +); + +@ffi.Native() +external CTFontCollectionRef CTFontCollectionCreateFromAvailableFonts( + CFDictionaryRef options, +); + +@ffi.Native() +external CFArrayRef CTFontCollectionCreateMatchingFontDescriptors( + CTFontCollectionRef collection, +); + +@ffi.Native< + CFArrayRef Function(CTFontCollectionRef, CFStringRef, CFDictionaryRef) +>() +external CFArrayRef CTFontCollectionCreateMatchingFontDescriptorsForFamily( + CTFontCollectionRef collection, + CFStringRef familyName, + CFDictionaryRef options, +); + +@ffi.Native< + CFArrayRef Function( + CTFontCollectionRef, + CTFontCollectionSortDescriptorsCallback, + ffi.Pointer, + ) +>() +external CFArrayRef +CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback( + CTFontCollectionRef collection, + CTFontCollectionSortDescriptorsCallback sortCallback, + ffi.Pointer refCon, +); + +@ffi.Native() +external CFArrayRef CTFontCollectionCreateMatchingFontDescriptorsWithOptions( + CTFontCollectionRef collection, + CFDictionaryRef options, +); + +@ffi.Native() +external CTMutableFontCollectionRef CTFontCollectionCreateMutableCopy( + CTFontCollectionRef original, +); + +@ffi.Native() +external CTFontCollectionRef CTFontCollectionCreateWithFontDescriptors( + CFArrayRef queryDescriptors, + CFDictionaryRef options, +); + +@ffi.Native() +external int CTFontCollectionGetTypeID(); + +@ffi.Native() +external void CTFontCollectionSetExclusionDescriptors( + CTMutableFontCollectionRef collection, + CFArrayRef descriptors, +); + +@ffi.Native() +external void CTFontCollectionSetQueryDescriptors( + CTMutableFontCollectionRef collection, + CFArrayRef descriptors, +); + +@ffi.Native() +external CFTypeRef CTFontCopyAttribute(CTFontRef font, CFStringRef attribute); + +@ffi.Native() +external CFArrayRef CTFontCopyAvailableTables(CTFontRef font, int options); + +@ffi.Native() +external CFCharacterSetRef CTFontCopyCharacterSet(CTFontRef font); + +@ffi.Native() +external CFArrayRef CTFontCopyDefaultCascadeListForLanguages( + CTFontRef font, + CFArrayRef languagePrefList, +); + +@ffi.Native() +external CFStringRef CTFontCopyDisplayName(CTFontRef font); + +@ffi.Native() +external CFStringRef CTFontCopyFamilyName(CTFontRef font); + +@ffi.Native() +external CFArrayRef CTFontCopyFeatureSettings(CTFontRef font); + +@ffi.Native() +external CFArrayRef CTFontCopyFeatures(CTFontRef font); + +@ffi.Native() +external CTFontDescriptorRef CTFontCopyFontDescriptor(CTFontRef font); + +@ffi.Native() +external CFStringRef CTFontCopyFullName(CTFontRef font); + +@ffi.Native)>() +external CGFontRef CTFontCopyGraphicsFont( + CTFontRef font, + ffi.Pointer attributes, +); + +@ffi.Native< + CFStringRef Function(CTFontRef, CFStringRef, ffi.Pointer) +>() +external CFStringRef CTFontCopyLocalizedName( + CTFontRef font, + CFStringRef nameKey, + ffi.Pointer actualLanguage, +); + +@ffi.Native() +external CFStringRef CTFontCopyName(CTFontRef font, CFStringRef nameKey); + +@ffi.Native() +external CFStringRef CTFontCopyNameForGlyph(CTFontRef font, int glyph); + +@ffi.Native() +external CFStringRef CTFontCopyPostScriptName(CTFontRef font); + +@ffi.Native() +external CFArrayRef CTFontCopySupportedLanguages(CTFontRef font); + +@ffi.Native() +external CFDataRef CTFontCopyTable(CTFontRef font, int table, int options); + +@ffi.Native() +external CFDictionaryRef CTFontCopyTraits(CTFontRef font); + +@ffi.Native() +external CFDictionaryRef CTFontCopyVariation(CTFontRef font); + +@ffi.Native() +external CFArrayRef CTFontCopyVariationAxes(CTFontRef font); + +@ffi.Native< + CTFontRef Function( + CTFontRef, + CGFloat, + ffi.Pointer, + CTFontDescriptorRef, + ) +>() +external CTFontRef CTFontCreateCopyWithAttributes( + CTFontRef font, + double size, + ffi.Pointer matrix, + CTFontDescriptorRef attributes, +); + +@ffi.Native< + CTFontRef Function( + CTFontRef, + CGFloat, + ffi.Pointer, + CFStringRef, + ) +>() +external CTFontRef CTFontCreateCopyWithFamily( + CTFontRef font, + double size, + ffi.Pointer matrix, + CFStringRef family, +); + +@ffi.Native< + CTFontRef Function( + CTFontRef, + CGFloat, + ffi.Pointer, + ffi.Uint32, + ffi.Uint32, + ) +>() +external CTFontRef CTFontCreateCopyWithSymbolicTraits( + CTFontRef font, + double size, + ffi.Pointer matrix, + int symTraitValue, + int symTraitMask, +); + +@ffi.Native() +external CTFontRef CTFontCreateForString( + CTFontRef currentFont, + CFStringRef string, + CFRange range, +); + +@ffi.Native() +external CTFontRef CTFontCreateForStringWithLanguage( + CTFontRef currentFont, + CFStringRef string, + CFRange range, + CFStringRef language, +); + +@ffi.Native< + CGPathRef Function(CTFontRef, CGGlyph, ffi.Pointer) +>() +external CGPathRef CTFontCreatePathForGlyph( + CTFontRef font, + int glyph, + ffi.Pointer matrix, +); + +@ffi.Native( + symbol: 'CTFontCreateUIFontForLanguage', +) +external CTFontRef _CTFontCreateUIFontForLanguage( + int uiType, + double size, + CFStringRef language, +); + +CTFontRef CTFontCreateUIFontForLanguage( + CTFontUIFontType uiType, + DartCGFloat size, + CFStringRef language, +) { + return _CTFontCreateUIFontForLanguage(uiType.value, size, language); +} + +@ffi.Native< + CTFontRef Function( + CTFontDescriptorRef, + CGFloat, + ffi.Pointer, + ) +>() +external CTFontRef CTFontCreateWithFontDescriptor( + CTFontDescriptorRef descriptor, + double size, + ffi.Pointer matrix, +); + +@ffi.Native< + CTFontRef Function( + CTFontDescriptorRef, + CGFloat, + ffi.Pointer, + CFOptionFlags, + ) +>() +external CTFontRef CTFontCreateWithFontDescriptorAndOptions( + CTFontDescriptorRef descriptor, + double size, + ffi.Pointer matrix, + int options, +); + +@ffi.Native< + CTFontRef Function( + CGFontRef, + CGFloat, + ffi.Pointer, + CTFontDescriptorRef, + ) +>() +external CTFontRef CTFontCreateWithGraphicsFont( + CGFontRef graphicsFont, + double size, + ffi.Pointer matrix, + CTFontDescriptorRef attributes, +); + +@ffi.Native< + CTFontRef Function(CFStringRef, CGFloat, ffi.Pointer) +>() +external CTFontRef CTFontCreateWithName( + CFStringRef name, + double size, + ffi.Pointer matrix, +); + +@ffi.Native< + CTFontRef Function( + CFStringRef, + CGFloat, + ffi.Pointer, + CFOptionFlags, + ) +>() +external CTFontRef CTFontCreateWithNameAndOptions( + CFStringRef name, + double size, + ffi.Pointer matrix, + int options, +); + +@Deprecated('ATS is deprecated') +@ffi.Native< + CTFontRef Function( + ATSFontRef, + CGFloat, + ffi.Pointer, + CTFontDescriptorRef, + ) +>() +external CTFontRef CTFontCreateWithPlatformFont( + int platformFont, + double size, + ffi.Pointer matrix, + CTFontDescriptorRef attributes, +); + +@Deprecated('Quickdraw font references are deprecated') +@ffi.Native< + CTFontRef Function(ConstStr255Param, ffi.Int16, ffi.Uint8, CGFloat) +>() +external CTFontRef CTFontCreateWithQuickdrawInstance( + ConstStr255Param name, + int identifier, + int style, + double size, +); + +@ffi.Native() +external CFTypeRef CTFontDescriptorCopyAttribute( + CTFontDescriptorRef descriptor, + CFStringRef attribute, +); + +@ffi.Native() +external CFDictionaryRef CTFontDescriptorCopyAttributes( + CTFontDescriptorRef descriptor, +); + +@ffi.Native< + CFTypeRef Function(CTFontDescriptorRef, CFStringRef, ffi.Pointer) +>() +external CFTypeRef CTFontDescriptorCopyLocalizedAttribute( + CTFontDescriptorRef descriptor, + CFStringRef attribute, + ffi.Pointer language, +); + +@ffi.Native< + CTFontDescriptorRef Function(CTFontDescriptorRef, CFDictionaryRef) +>() +external CTFontDescriptorRef CTFontDescriptorCreateCopyWithAttributes( + CTFontDescriptorRef original, + CFDictionaryRef attributes, +); + +@ffi.Native() +external CTFontDescriptorRef CTFontDescriptorCreateCopyWithFamily( + CTFontDescriptorRef original, + CFStringRef family, +); + +@ffi.Native< + CTFontDescriptorRef Function(CTFontDescriptorRef, CFNumberRef, CFNumberRef) +>() +external CTFontDescriptorRef CTFontDescriptorCreateCopyWithFeature( + CTFontDescriptorRef original, + CFNumberRef featureTypeIdentifier, + CFNumberRef featureSelectorIdentifier, +); + +@ffi.Native< + CTFontDescriptorRef Function(CTFontDescriptorRef, ffi.Uint32, ffi.Uint32) +>() +external CTFontDescriptorRef CTFontDescriptorCreateCopyWithSymbolicTraits( + CTFontDescriptorRef original, + int symTraitValue, + int symTraitMask, +); + +@ffi.Native< + CTFontDescriptorRef Function(CTFontDescriptorRef, CFNumberRef, CGFloat) +>() +external CTFontDescriptorRef CTFontDescriptorCreateCopyWithVariation( + CTFontDescriptorRef original, + CFNumberRef variationIdentifier, + double variationValue, +); + +@ffi.Native() +external CTFontDescriptorRef CTFontDescriptorCreateMatchingFontDescriptor( + CTFontDescriptorRef descriptor, + CFSetRef mandatoryAttributes, +); + +@ffi.Native() +external CFArrayRef CTFontDescriptorCreateMatchingFontDescriptors( + CTFontDescriptorRef descriptor, + CFSetRef mandatoryAttributes, +); + +@ffi.Native() +external CTFontDescriptorRef CTFontDescriptorCreateWithAttributes( + CFDictionaryRef attributes, +); + +@ffi.Native() +external CTFontDescriptorRef CTFontDescriptorCreateWithNameAndSize( + CFStringRef name, + double size, +); + +@ffi.Native() +external int CTFontDescriptorGetTypeID(); + +@ffi.Native< + ffi.Bool Function(CFArrayRef, CFSetRef, CTFontDescriptorProgressHandler) +>(symbol: 'CTFontDescriptorMatchFontDescriptorsWithProgressHandler') +external bool _CTFontDescriptorMatchFontDescriptorsWithProgressHandler( + CFArrayRef descriptors, + CFSetRef mandatoryAttributes, + CTFontDescriptorProgressHandler progressBlock, +); + +bool CTFontDescriptorMatchFontDescriptorsWithProgressHandler( + CFArrayRef descriptors, + CFSetRef mandatoryAttributes, + DartCTFontDescriptorProgressHandler progressBlock, +) { + final _$$ref = progressBlock.ref; + return _CTFontDescriptorMatchFontDescriptorsWithProgressHandler( + descriptors, + mandatoryAttributes, + _$$ref.pointer, + ); +} + +@ffi.Native< + ffi.Void Function( + CTFontRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + CGContextRef, + ) +>() +external void CTFontDrawGlyphs( + CTFontRef font, + ffi.Pointer glyphs, + ffi.Pointer positions, + int count, + CGContextRef context, +); + +@ffi.Native< + ffi.Void Function( + CTFontRef, + ffi.Pointer, + objc.CGPoint, + CGContextRef, + ) +>(symbol: 'CTFontDrawImageFromAdaptiveImageProviderAtPoint') +external void _CTFontDrawImageFromAdaptiveImageProviderAtPoint( + CTFontRef font, + ffi.Pointer provider, + objc.CGPoint point, + CGContextRef context, +); + +void CTFontDrawImageFromAdaptiveImageProviderAtPoint( + CTFontRef font, + CTAdaptiveImageProviding provider, + objc.CGPoint point, + CGContextRef context, +) { + final _$$ref = provider.ref; + return _CTFontDrawImageFromAdaptiveImageProviderAtPoint( + font, + _$$ref.pointer, + point, + context, + ); +} + +@ffi.Native< + ffi.Double Function( + CTFontRef, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>(symbol: 'CTFontGetAdvancesForGlyphs') +external double _CTFontGetAdvancesForGlyphs( + CTFontRef font, + int orientation, + ffi.Pointer glyphs, + ffi.Pointer advances, + int count, +); + +double CTFontGetAdvancesForGlyphs( + CTFontRef font, + CTFontOrientation orientation, + ffi.Pointer glyphs, + ffi.Pointer advances, + DartCFIndex count, +) { + return _CTFontGetAdvancesForGlyphs( + font, + orientation.value, + glyphs, + advances, + count, + ); +} + +@ffi.Native() +external double CTFontGetAscent(CTFontRef font); + +@ffi.Native() +external objc.CGRect CTFontGetBoundingBox(CTFontRef font); + +@ffi.Native< + objc.CGRect Function( + CTFontRef, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>(symbol: 'CTFontGetBoundingRectsForGlyphs') +external objc.CGRect _CTFontGetBoundingRectsForGlyphs( + CTFontRef font, + int orientation, + ffi.Pointer glyphs, + ffi.Pointer boundingRects, + int count, +); + +objc.CGRect CTFontGetBoundingRectsForGlyphs( + CTFontRef font, + CTFontOrientation orientation, + ffi.Pointer glyphs, + ffi.Pointer boundingRects, + DartCFIndex count, +) { + return _CTFontGetBoundingRectsForGlyphs( + font, + orientation.value, + glyphs, + boundingRects, + count, + ); +} + +@ffi.Native() +external double CTFontGetCapHeight(CTFontRef font); + +@ffi.Native() +external double CTFontGetDescent(CTFontRef font); + +@ffi.Native() +external int CTFontGetGlyphCount(CTFontRef font); + +@ffi.Native() +external int CTFontGetGlyphWithName(CTFontRef font, CFStringRef glyphName); + +@ffi.Native< + ffi.Bool Function( + CTFontRef, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>() +external bool CTFontGetGlyphsForCharacters( + CTFontRef font, + ffi.Pointer characters, + ffi.Pointer glyphs, + int count, +); + +@ffi.Native() +external double CTFontGetLeading(CTFontRef font); + +@ffi.Native< + CFIndex Function(CTFontRef, CGGlyph, ffi.Pointer, CFIndex) +>() +external int CTFontGetLigatureCaretPositions( + CTFontRef font, + int glyph, + ffi.Pointer positions, + int maxPositions, +); + +@ffi.Native() +external CGAffineTransform CTFontGetMatrix(CTFontRef font); + +@ffi.Native< + objc.CGRect Function( + CTFontRef, + ffi.Pointer, + ffi.Pointer, + CFIndex, + CFOptionFlags, + ) +>() +external objc.CGRect CTFontGetOpticalBoundsForGlyphs( + CTFontRef font, + ffi.Pointer glyphs, + ffi.Pointer boundingRects, + int count, + int options, +); + +@Deprecated('ATS is deprecated') +@ffi.Native)>() +external int CTFontGetPlatformFont( + CTFontRef font, + ffi.Pointer attributes, +); + +@ffi.Native() +external double CTFontGetSize(CTFontRef font); + +@ffi.Native() +external double CTFontGetSlantAngle(CTFontRef font); + +@ffi.Native() +external int CTFontGetStringEncoding(CTFontRef font); + +@ffi.Native() +external int CTFontGetSymbolicTraits(CTFontRef font); + +@ffi.Native() +external int CTFontGetTypeID(); + +@ffi.Native)>( + symbol: 'CTFontGetTypographicBoundsForAdaptiveImageProvider', +) +external objc.CGRect _CTFontGetTypographicBoundsForAdaptiveImageProvider( + CTFontRef font, + ffi.Pointer provider, +); + +objc.CGRect CTFontGetTypographicBoundsForAdaptiveImageProvider( + CTFontRef font, + CTAdaptiveImageProviding? provider, +) { + final _$$ref = provider?.ref; + return _CTFontGetTypographicBoundsForAdaptiveImageProvider( + font, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native() +external double CTFontGetUnderlinePosition(CTFontRef font); + +@ffi.Native() +external double CTFontGetUnderlineThickness(CTFontRef font); + +@ffi.Native() +external int CTFontGetUnitsPerEm(CTFontRef font); + +@ffi.Native< + ffi.Void Function( + CTFontRef, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>() +external void CTFontGetVerticalTranslationsForGlyphs( + CTFontRef font, + ffi.Pointer glyphs, + ffi.Pointer translations, + int count, +); + +@ffi.Native() +external double CTFontGetXHeight(CTFontRef font); + +@ffi.Native() +external bool CTFontHasTable(CTFontRef font, int tag); + +@ffi.Native< + CFIndex Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CTFontManagerCompareFontFamilyNames') +external int _CTFontManagerCompareFontFamilyNames( + ffi.Pointer family1, + ffi.Pointer family2, + ffi.Pointer context, +); + +CFComparisonResult CTFontManagerCompareFontFamilyNames( + ffi.Pointer family1, + ffi.Pointer family2, + ffi.Pointer context, +) { + return CFComparisonResult.fromValue( + _CTFontManagerCompareFontFamilyNames(family1, family2, context), + ); +} + +@ffi.Native() +external CFArrayRef CTFontManagerCopyAvailableFontFamilyNames(); + +@ffi.Native() +external CFArrayRef CTFontManagerCopyAvailableFontURLs(); + +@ffi.Native() +external CFArrayRef CTFontManagerCopyAvailablePostScriptNames(); + +@ffi.Native( + symbol: 'CTFontManagerCopyRegisteredFontDescriptors', +) +external CFArrayRef _CTFontManagerCopyRegisteredFontDescriptors( + int scope, + bool enabled, +); + +CFArrayRef CTFontManagerCopyRegisteredFontDescriptors( + CTFontManagerScope scope, + bool enabled, +) { + return _CTFontManagerCopyRegisteredFontDescriptors(scope.value, enabled); +} + +@ffi.Native() +external CTFontDescriptorRef CTFontManagerCreateFontDescriptorFromData( + CFDataRef data, +); + +@ffi.Native() +external CFArrayRef CTFontManagerCreateFontDescriptorsFromData(CFDataRef data); + +@ffi.Native() +external CFArrayRef CTFontManagerCreateFontDescriptorsFromURL(CFURLRef fileURL); + +@Deprecated('This functionality will be removed in a future release') +@ffi.Native< + CFRunLoopSourceRef Function(CFIndex, ffi.Pointer) +>(symbol: 'CTFontManagerCreateFontRequestRunLoopSource') +external CFRunLoopSourceRef _CTFontManagerCreateFontRequestRunLoopSource( + int sourceOrder, + ffi.Pointer createMatchesCallback, +); + +CFRunLoopSourceRef CTFontManagerCreateFontRequestRunLoopSource( + DartCFIndex sourceOrder, + objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + > + createMatchesCallback, +) { + final _$$ref = createMatchesCallback.ref; + return _CTFontManagerCreateFontRequestRunLoopSource( + sourceOrder, + _$$ref.pointer, + ); +} + +@ffi.Native() +external void CTFontManagerEnableFontDescriptors( + CFArrayRef descriptors, + bool enable, +); + +@ffi.Native( + symbol: 'CTFontManagerGetAutoActivationSetting', +) +external int _CTFontManagerGetAutoActivationSetting( + CFStringRef bundleIdentifier, +); + +CTFontManagerAutoActivationSetting CTFontManagerGetAutoActivationSetting( + CFStringRef bundleIdentifier, +) { + return CTFontManagerAutoActivationSetting.fromValue( + _CTFontManagerGetAutoActivationSetting(bundleIdentifier), + ); +} + +@ffi.Native( + symbol: 'CTFontManagerGetScopeForURL', +) +external int _CTFontManagerGetScopeForURL(CFURLRef fontURL); + +CTFontManagerScope CTFontManagerGetScopeForURL(CFURLRef fontURL) { + return CTFontManagerScope.fromValue(_CTFontManagerGetScopeForURL(fontURL)); +} + +@ffi.Native() +external bool CTFontManagerIsSupportedFont(CFURLRef fontURL); + +@ffi.Native< + ffi.Void Function( + CFArrayRef, + ffi.Uint32, + ffi.Bool, + ffi.Pointer, + ) +>(symbol: 'CTFontManagerRegisterFontDescriptors') +external void _CTFontManagerRegisterFontDescriptors( + CFArrayRef fontDescriptors, + int scope, + bool enabled, + ffi.Pointer registrationHandler, +); + +void CTFontManagerRegisterFontDescriptors( + CFArrayRef fontDescriptors, + CTFontManagerScope scope, + bool enabled, + objc.ObjCBlock, ffi.Bool)>? + registrationHandler, +) { + final _$$ref = registrationHandler?.ref; + return _CTFontManagerRegisterFontDescriptors( + fontDescriptors, + scope.value, + enabled, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native< + ffi.Void Function( + CFArrayRef, + ffi.Uint32, + ffi.Bool, + ffi.Pointer, + ) +>(symbol: 'CTFontManagerRegisterFontURLs') +external void _CTFontManagerRegisterFontURLs( + CFArrayRef fontURLs, + int scope, + bool enabled, + ffi.Pointer registrationHandler, +); + +void CTFontManagerRegisterFontURLs( + CFArrayRef fontURLs, + CTFontManagerScope scope, + bool enabled, + objc.ObjCBlock, ffi.Bool)>? + registrationHandler, +) { + final _$$ref = registrationHandler?.ref; + return _CTFontManagerRegisterFontURLs( + fontURLs, + scope.value, + enabled, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native)>( + symbol: 'CTFontManagerRegisterFontsForURL', +) +external bool _CTFontManagerRegisterFontsForURL( + CFURLRef fontURL, + int scope, + ffi.Pointer error, +); + +bool CTFontManagerRegisterFontsForURL( + CFURLRef fontURL, + CTFontManagerScope scope, + ffi.Pointer error, +) { + return _CTFontManagerRegisterFontsForURL(fontURL, scope.value, error); +} + +@Deprecated('Deprecated') +@ffi.Native)>( + symbol: 'CTFontManagerRegisterFontsForURLs', +) +external bool _CTFontManagerRegisterFontsForURLs( + CFArrayRef fontURLs, + int scope, + ffi.Pointer errors, +); + +bool CTFontManagerRegisterFontsForURLs( + CFArrayRef fontURLs, + CTFontManagerScope scope, + ffi.Pointer errors, +) { + return _CTFontManagerRegisterFontsForURLs(fontURLs, scope.value, errors); +} + +@ffi.Native< + ffi.Void Function( + CFArrayRef, + CFBundleRef, + ffi.Uint32, + ffi.Bool, + ffi.Pointer, + ) +>(symbol: 'CTFontManagerRegisterFontsWithAssetNames') +external void _CTFontManagerRegisterFontsWithAssetNames( + CFArrayRef fontAssetNames, + CFBundleRef bundle, + int scope, + bool enabled, + ffi.Pointer registrationHandler, +); + +void CTFontManagerRegisterFontsWithAssetNames( + CFArrayRef fontAssetNames, + CFBundleRef bundle, + CTFontManagerScope scope, + bool enabled, + objc.ObjCBlock, ffi.Bool)>? + registrationHandler, +) { + final _$$ref = registrationHandler?.ref; + return _CTFontManagerRegisterFontsWithAssetNames( + fontAssetNames, + bundle, + scope.value, + enabled, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@Deprecated( + 'Use CTFontManagerCreateFontDescriptorsFromData or CTFontManagerRegisterFontsForURL', +) +@ffi.Native)>() +external bool CTFontManagerRegisterGraphicsFont( + CGFontRef font, + ffi.Pointer error, +); + +@ffi.Native)>( + symbol: 'CTFontManagerRequestFonts', +) +external void _CTFontManagerRequestFonts( + CFArrayRef fontDescriptors, + ffi.Pointer completionHandler, +); + +void CTFontManagerRequestFonts( + CFArrayRef fontDescriptors, + objc.ObjCBlock)> completionHandler, +) { + final _$$ref = completionHandler.ref; + return _CTFontManagerRequestFonts(fontDescriptors, _$$ref.pointer); +} + +@ffi.Native( + symbol: 'CTFontManagerSetAutoActivationSetting', +) +external void _CTFontManagerSetAutoActivationSetting( + CFStringRef bundleIdentifier, + int setting, +); + +void CTFontManagerSetAutoActivationSetting( + CFStringRef bundleIdentifier, + CTFontManagerAutoActivationSetting setting, +) { + return _CTFontManagerSetAutoActivationSetting( + bundleIdentifier, + setting.value, + ); +} + +@ffi.Native< + ffi.Void Function(CFArrayRef, ffi.Uint32, ffi.Pointer) +>(symbol: 'CTFontManagerUnregisterFontDescriptors') +external void _CTFontManagerUnregisterFontDescriptors( + CFArrayRef fontDescriptors, + int scope, + ffi.Pointer registrationHandler, +); + +void CTFontManagerUnregisterFontDescriptors( + CFArrayRef fontDescriptors, + CTFontManagerScope scope, + objc.ObjCBlock, ffi.Bool)>? + registrationHandler, +) { + final _$$ref = registrationHandler?.ref; + return _CTFontManagerUnregisterFontDescriptors( + fontDescriptors, + scope.value, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native< + ffi.Void Function(CFArrayRef, ffi.Uint32, ffi.Pointer) +>(symbol: 'CTFontManagerUnregisterFontURLs') +external void _CTFontManagerUnregisterFontURLs( + CFArrayRef fontURLs, + int scope, + ffi.Pointer registrationHandler, +); + +void CTFontManagerUnregisterFontURLs( + CFArrayRef fontURLs, + CTFontManagerScope scope, + objc.ObjCBlock, ffi.Bool)>? + registrationHandler, +) { + final _$$ref = registrationHandler?.ref; + return _CTFontManagerUnregisterFontURLs( + fontURLs, + scope.value, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native)>( + symbol: 'CTFontManagerUnregisterFontsForURL', +) +external bool _CTFontManagerUnregisterFontsForURL( + CFURLRef fontURL, + int scope, + ffi.Pointer error, +); + +bool CTFontManagerUnregisterFontsForURL( + CFURLRef fontURL, + CTFontManagerScope scope, + ffi.Pointer error, +) { + return _CTFontManagerUnregisterFontsForURL(fontURL, scope.value, error); +} + +@Deprecated('Deprecated') +@ffi.Native)>( + symbol: 'CTFontManagerUnregisterFontsForURLs', +) +external bool _CTFontManagerUnregisterFontsForURLs( + CFArrayRef fontURLs, + int scope, + ffi.Pointer errors, +); + +bool CTFontManagerUnregisterFontsForURLs( + CFArrayRef fontURLs, + CTFontManagerScope scope, + ffi.Pointer errors, +) { + return _CTFontManagerUnregisterFontsForURLs(fontURLs, scope.value, errors); +} + +@Deprecated('Use the API corresponding to the one used to register the font') +@ffi.Native)>() +external bool CTFontManagerUnregisterGraphicsFont( + CGFontRef font, + ffi.Pointer error, +); + +@ffi.Native() +external void CTFrameDraw(CTFrameRef frame, CGContextRef context); + +@ffi.Native() +external CFDictionaryRef CTFrameGetFrameAttributes(CTFrameRef frame); + +@ffi.Native)>() +external void CTFrameGetLineOrigins( + CTFrameRef frame, + CFRange range, + ffi.Pointer origins, +); + +@ffi.Native() +external CFArrayRef CTFrameGetLines(CTFrameRef frame); + +@ffi.Native() +external CGPathRef CTFrameGetPath(CTFrameRef frame); + +@ffi.Native() +external CFRange CTFrameGetStringRange(CTFrameRef frame); + +@ffi.Native() +external int CTFrameGetTypeID(); + +@ffi.Native() +external CFRange CTFrameGetVisibleStringRange(CTFrameRef frame); + +@ffi.Native< + CTFrameRef Function(CTFramesetterRef, CFRange, CGPathRef, CFDictionaryRef) +>() +external CTFrameRef CTFramesetterCreateFrame( + CTFramesetterRef framesetter, + CFRange stringRange, + CGPathRef path, + CFDictionaryRef frameAttributes, +); + +@ffi.Native() +external CTFramesetterRef CTFramesetterCreateWithAttributedString( + CFAttributedStringRef attrString, +); + +@ffi.Native() +external CTFramesetterRef CTFramesetterCreateWithTypesetter( + CTTypesetterRef typesetter, +); + +@ffi.Native() +external int CTFramesetterGetTypeID(); + +@ffi.Native() +external CTTypesetterRef CTFramesetterGetTypesetter( + CTFramesetterRef framesetter, +); + +@ffi.Native< + objc.CGSize Function( + CTFramesetterRef, + CFRange, + CFDictionaryRef, + objc.CGSize, + ffi.Pointer, + ) +>() +external objc.CGSize CTFramesetterSuggestFrameSizeWithConstraints( + CTFramesetterRef framesetter, + CFRange stringRange, + CFDictionaryRef frameAttributes, + objc.CGSize constraints, + ffi.Pointer fitRange, +); + +@Deprecated('Use -[NSProcessInfo operatingSystemVersion]') +@ffi.Native() +external int CTGetCoreTextVersion(); + +@ffi.Native( + symbol: 'CTGlyphInfoCreateWithCharacterIdentifier', +) +external CTGlyphInfoRef _CTGlyphInfoCreateWithCharacterIdentifier( + int cid, + int collection, + CFStringRef baseString, +); + +CTGlyphInfoRef CTGlyphInfoCreateWithCharacterIdentifier( + DartCGFontIndex cid, + CTCharacterCollection collection, + CFStringRef baseString, +) { + return _CTGlyphInfoCreateWithCharacterIdentifier( + cid, + collection.value, + baseString, + ); +} + +@ffi.Native() +external CTGlyphInfoRef CTGlyphInfoCreateWithGlyph( + int glyph, + CTFontRef font, + CFStringRef baseString, +); + +@ffi.Native() +external CTGlyphInfoRef CTGlyphInfoCreateWithGlyphName( + CFStringRef glyphName, + CTFontRef font, + CFStringRef baseString, +); + +@ffi.Native( + symbol: 'CTGlyphInfoGetCharacterCollection', +) +external int _CTGlyphInfoGetCharacterCollection(CTGlyphInfoRef glyphInfo); + +CTCharacterCollection CTGlyphInfoGetCharacterCollection( + CTGlyphInfoRef glyphInfo, +) { + return CTCharacterCollection.fromValue( + _CTGlyphInfoGetCharacterCollection(glyphInfo), + ); +} + +@ffi.Native() +external int CTGlyphInfoGetCharacterIdentifier(CTGlyphInfoRef glyphInfo); + +@ffi.Native() +external int CTGlyphInfoGetGlyph(CTGlyphInfoRef glyphInfo); + +@ffi.Native() +external CFStringRef CTGlyphInfoGetGlyphName(CTGlyphInfoRef glyphInfo); + +@ffi.Native() +external int CTGlyphInfoGetTypeID(); + +@ffi.Native() +external CTLineRef CTLineCreateJustifiedLine( + CTLineRef line, + double justificationFactor, + double justificationWidth, +); + +@ffi.Native( + symbol: 'CTLineCreateTruncatedLine', +) +external CTLineRef _CTLineCreateTruncatedLine( + CTLineRef line, + double width, + int truncationType, + CTLineRef truncationToken, +); + +CTLineRef CTLineCreateTruncatedLine( + CTLineRef line, + double width, + CTLineTruncationType truncationType, + CTLineRef truncationToken, +) { + return _CTLineCreateTruncatedLine( + line, + width, + truncationType.value, + truncationToken, + ); +} + +@ffi.Native() +external CTLineRef CTLineCreateWithAttributedString( + CFAttributedStringRef attrString, +); + +@ffi.Native() +external void CTLineDraw(CTLineRef line, CGContextRef context); + +@ffi.Native)>( + symbol: 'CTLineEnumerateCaretOffsets', +) +external void _CTLineEnumerateCaretOffsets( + CTLineRef line, + ffi.Pointer block, +); + +void CTLineEnumerateCaretOffsets( + CTLineRef line, + objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + block, +) { + final _$$ref = block.ref; + return _CTLineEnumerateCaretOffsets(line, _$$ref.pointer); +} + +@ffi.Native() +external objc.CGRect CTLineGetBoundsWithOptions(CTLineRef line, int options); + +@ffi.Native() +external int CTLineGetGlyphCount(CTLineRef line); + +@ffi.Native() +external CFArrayRef CTLineGetGlyphRuns(CTLineRef line); + +@ffi.Native() +external objc.CGRect CTLineGetImageBounds(CTLineRef line, CGContextRef context); + +@ffi.Native)>() +external double CTLineGetOffsetForStringIndex( + CTLineRef line, + int charIndex, + ffi.Pointer secondaryOffset, +); + +@ffi.Native() +external double CTLineGetPenOffsetForFlush( + CTLineRef line, + double flushFactor, + double flushWidth, +); + +@ffi.Native() +external int CTLineGetStringIndexForPosition( + CTLineRef line, + objc.CGPoint position, +); + +@ffi.Native() +external CFRange CTLineGetStringRange(CTLineRef line); + +@ffi.Native() +external double CTLineGetTrailingWhitespaceWidth(CTLineRef line); + +@ffi.Native() +external int CTLineGetTypeID(); + +@ffi.Native< + ffi.Double Function( + CTLineRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external double CTLineGetTypographicBounds( + CTLineRef line, + ffi.Pointer ascent, + ffi.Pointer descent, + ffi.Pointer leading, +); + +@ffi.Native< + CTParagraphStyleRef Function(ffi.Pointer, ffi.Size) +>() +external CTParagraphStyleRef CTParagraphStyleCreate( + ffi.Pointer settings, + int settingCount, +); + +@ffi.Native() +external CTParagraphStyleRef CTParagraphStyleCreateCopy( + CTParagraphStyleRef paragraphStyle, +); + +@ffi.Native() +external int CTParagraphStyleGetTypeID(); + +@ffi.Native< + ffi.Bool Function( + CTParagraphStyleRef, + ffi.Uint32, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'CTParagraphStyleGetValueForSpecifier') +external bool _CTParagraphStyleGetValueForSpecifier( + CTParagraphStyleRef paragraphStyle, + int spec, + int valueBufferSize, + ffi.Pointer valueBuffer, +); + +bool CTParagraphStyleGetValueForSpecifier( + CTParagraphStyleRef paragraphStyle, + CTParagraphStyleSpecifier spec, + int valueBufferSize, + ffi.Pointer valueBuffer, +) { + return _CTParagraphStyleGetValueForSpecifier( + paragraphStyle, + spec.value, + valueBufferSize, + valueBuffer, + ); +} + +@ffi.Native< + CTRubyAnnotationRef Function( + ffi.Uint8, + ffi.Uint8, + CGFloat, + ffi.Pointer, + ) +>(symbol: 'CTRubyAnnotationCreate') +external CTRubyAnnotationRef _CTRubyAnnotationCreate( + int alignment, + int overhang, + double sizeFactor, + ffi.Pointer text, +); + +CTRubyAnnotationRef CTRubyAnnotationCreate( + CTRubyAlignment alignment, + CTRubyOverhang overhang, + DartCGFloat sizeFactor, + ffi.Pointer text, +) { + return _CTRubyAnnotationCreate( + alignment.value, + overhang.value, + sizeFactor, + text, + ); +} + +@ffi.Native() +external CTRubyAnnotationRef CTRubyAnnotationCreateCopy( + CTRubyAnnotationRef rubyAnnotation, +); + +@ffi.Native< + CTRubyAnnotationRef Function( + ffi.Uint8, + ffi.Uint8, + ffi.Uint8, + CFStringRef, + CFDictionaryRef, + ) +>(symbol: 'CTRubyAnnotationCreateWithAttributes') +external CTRubyAnnotationRef _CTRubyAnnotationCreateWithAttributes( + int alignment, + int overhang, + int position, + CFStringRef string, + CFDictionaryRef attributes, +); + +CTRubyAnnotationRef CTRubyAnnotationCreateWithAttributes( + CTRubyAlignment alignment, + CTRubyOverhang overhang, + CTRubyPosition position, + CFStringRef string, + CFDictionaryRef attributes, +) { + return _CTRubyAnnotationCreateWithAttributes( + alignment.value, + overhang.value, + position.value, + string, + attributes, + ); +} + +@ffi.Native( + symbol: 'CTRubyAnnotationGetAlignment', +) +external int _CTRubyAnnotationGetAlignment(CTRubyAnnotationRef rubyAnnotation); + +CTRubyAlignment CTRubyAnnotationGetAlignment( + CTRubyAnnotationRef rubyAnnotation, +) { + return CTRubyAlignment.fromValue( + _CTRubyAnnotationGetAlignment(rubyAnnotation), + ); +} + +@ffi.Native( + symbol: 'CTRubyAnnotationGetOverhang', +) +external int _CTRubyAnnotationGetOverhang(CTRubyAnnotationRef rubyAnnotation); + +CTRubyOverhang CTRubyAnnotationGetOverhang(CTRubyAnnotationRef rubyAnnotation) { + return CTRubyOverhang.fromValue(_CTRubyAnnotationGetOverhang(rubyAnnotation)); +} + +@ffi.Native() +external double CTRubyAnnotationGetSizeFactor( + CTRubyAnnotationRef rubyAnnotation, +); + +@ffi.Native( + symbol: 'CTRubyAnnotationGetTextForPosition', +) +external CFStringRef _CTRubyAnnotationGetTextForPosition( + CTRubyAnnotationRef rubyAnnotation, + int position, +); + +CFStringRef CTRubyAnnotationGetTextForPosition( + CTRubyAnnotationRef rubyAnnotation, + CTRubyPosition position, +) { + return _CTRubyAnnotationGetTextForPosition(rubyAnnotation, position.value); +} + +@ffi.Native() +external int CTRubyAnnotationGetTypeID(); + +@ffi.Native< + CTRunDelegateRef Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external CTRunDelegateRef CTRunDelegateCreate( + ffi.Pointer callbacks, + ffi.Pointer refCon, +); + +@ffi.Native Function(CTRunDelegateRef)>() +external ffi.Pointer CTRunDelegateGetRefCon( + CTRunDelegateRef runDelegate, +); + +@ffi.Native() +external int CTRunDelegateGetTypeID(); + +@ffi.Native() +external void CTRunDraw(CTRunRef run, CGContextRef context, CFRange range); + +@ffi.Native)>() +external void CTRunGetAdvances( + CTRunRef run, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native Function(CTRunRef)>() +external ffi.Pointer CTRunGetAdvancesPtr(CTRunRef run); + +@ffi.Native() +external CFDictionaryRef CTRunGetAttributes(CTRunRef run); + +@ffi.Native< + ffi.Void Function( + CTRunRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CTRunGetBaseAdvancesAndOrigins( + CTRunRef runRef, + CFRange range, + ffi.Pointer advancesBuffer, + ffi.Pointer originsBuffer, +); + +@ffi.Native() +external int CTRunGetGlyphCount(CTRunRef run); + +@ffi.Native)>() +external void CTRunGetGlyphs( + CTRunRef run, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native Function(CTRunRef)>() +external ffi.Pointer CTRunGetGlyphsPtr(CTRunRef run); + +@ffi.Native() +external objc.CGRect CTRunGetImageBounds( + CTRunRef run, + CGContextRef context, + CFRange range, +); + +@ffi.Native)>() +external void CTRunGetPositions( + CTRunRef run, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native Function(CTRunRef)>() +external ffi.Pointer CTRunGetPositionsPtr(CTRunRef run); + +@ffi.Native() +external int CTRunGetStatus(CTRunRef run); + +@ffi.Native)>() +external void CTRunGetStringIndices( + CTRunRef run, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native Function(CTRunRef)>() +external ffi.Pointer CTRunGetStringIndicesPtr(CTRunRef run); + +@ffi.Native() +external CFRange CTRunGetStringRange(CTRunRef run); + +@ffi.Native() +external CGAffineTransform CTRunGetTextMatrix(CTRunRef run); + +@ffi.Native() +external int CTRunGetTypeID(); + +@ffi.Native< + ffi.Double Function( + CTRunRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external double CTRunGetTypographicBounds( + CTRunRef run, + CFRange range, + ffi.Pointer ascent, + ffi.Pointer descent, + ffi.Pointer leading, +); + +@ffi.Native( + symbol: 'CTTextTabCreate', +) +external CTTextTabRef _CTTextTabCreate( + int alignment, + double location, + CFDictionaryRef options, +); + +CTTextTabRef CTTextTabCreate( + CTTextAlignment alignment, + double location, + CFDictionaryRef options, +) { + return _CTTextTabCreate(alignment.value, location, options); +} + +@ffi.Native(symbol: 'CTTextTabGetAlignment') +external int _CTTextTabGetAlignment(CTTextTabRef tab); + +CTTextAlignment CTTextTabGetAlignment(CTTextTabRef tab) { + return CTTextAlignment.fromValue(_CTTextTabGetAlignment(tab)); +} + +@ffi.Native() +external double CTTextTabGetLocation(CTTextTabRef tab); + +@ffi.Native() +external CFDictionaryRef CTTextTabGetOptions(CTTextTabRef tab); + +@ffi.Native() +external int CTTextTabGetTypeID(); + +@ffi.Native() +external CTLineRef CTTypesetterCreateLine( + CTTypesetterRef typesetter, + CFRange stringRange, +); + +@ffi.Native() +external CTLineRef CTTypesetterCreateLineWithOffset( + CTTypesetterRef typesetter, + CFRange stringRange, + double offset, +); + +@ffi.Native() +external CTTypesetterRef CTTypesetterCreateWithAttributedString( + CFAttributedStringRef string, +); + +@ffi.Native() +external CTTypesetterRef CTTypesetterCreateWithAttributedStringAndOptions( + CFAttributedStringRef string, + CFDictionaryRef options, +); + +@ffi.Native() +external int CTTypesetterGetTypeID(); + +@ffi.Native() +external int CTTypesetterSuggestClusterBreak( + CTTypesetterRef typesetter, + int startIndex, + double width, +); + +@ffi.Native< + CFIndex Function(CTTypesetterRef, CFIndex, ffi.Double, ffi.Double) +>() +external int CTTypesetterSuggestClusterBreakWithOffset( + CTTypesetterRef typesetter, + int startIndex, + double width, + double offset, +); + +@ffi.Native() +external int CTTypesetterSuggestLineBreak( + CTTypesetterRef typesetter, + int startIndex, + double width, +); + +@ffi.Native< + CFIndex Function(CTTypesetterRef, CFIndex, ffi.Double, ffi.Double) +>() +external int CTTypesetterSuggestLineBreakWithOffset( + CTTypesetterRef typesetter, + int startIndex, + double width, + double offset, +); + +@ffi.Native< + CFTypeRef Function(CVBufferRef, CFStringRef, ffi.Pointer) +>() +external CFTypeRef CVBufferCopyAttachment( + CVBufferRef buffer, + CFStringRef key, + ffi.Pointer attachmentMode, +); + +@ffi.Native( + symbol: 'CVBufferCopyAttachments', +) +external CFDictionaryRef _CVBufferCopyAttachments( + CVBufferRef buffer, + int attachmentMode, +); + +CFDictionaryRef CVBufferCopyAttachments( + CVBufferRef buffer, + CVAttachmentMode attachmentMode, +) { + return _CVBufferCopyAttachments(buffer, attachmentMode.value); +} + +@Deprecated('Deprecated') +@ffi.Native< + CFTypeRef Function(CVBufferRef, CFStringRef, ffi.Pointer) +>() +external CFTypeRef CVBufferGetAttachment( + CVBufferRef buffer, + CFStringRef key, + ffi.Pointer attachmentMode, +); + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'CVBufferGetAttachments', +) +external CFDictionaryRef _CVBufferGetAttachments( + CVBufferRef buffer, + int attachmentMode, +); + +CFDictionaryRef CVBufferGetAttachments( + CVBufferRef buffer, + CVAttachmentMode attachmentMode, +) { + return _CVBufferGetAttachments(buffer, attachmentMode.value); +} + +@ffi.Native() +external int CVBufferHasAttachment(CVBufferRef buffer, CFStringRef key); + +@ffi.Native() +external void CVBufferPropagateAttachments( + CVBufferRef sourceBuffer, + CVBufferRef destinationBuffer, +); + +@ffi.Native() +external void CVBufferRelease(CVBufferRef buffer); + +@ffi.Native() +external void CVBufferRemoveAllAttachments(CVBufferRef buffer); + +@ffi.Native() +external void CVBufferRemoveAttachment(CVBufferRef buffer, CFStringRef key); + +@ffi.Native() +external CVBufferRef CVBufferRetain(CVBufferRef buffer); + +@ffi.Native( + symbol: 'CVBufferSetAttachment', +) +external void _CVBufferSetAttachment( + CVBufferRef buffer, + CFStringRef key, + CFTypeRef value, + int attachmentMode, +); + +void CVBufferSetAttachment( + CVBufferRef buffer, + CFStringRef key, + CFTypeRef value, + CVAttachmentMode attachmentMode, +) { + return _CVBufferSetAttachment(buffer, key, value, attachmentMode.value); +} + +@ffi.Native( + symbol: 'CVBufferSetAttachments', +) +external void _CVBufferSetAttachments( + CVBufferRef buffer, + CFDictionaryRef theAttachments, + int attachmentMode, +); + +void CVBufferSetAttachments( + CVBufferRef buffer, + CFDictionaryRef theAttachments, + CVAttachmentMode attachmentMode, +) { + return _CVBufferSetAttachments(buffer, theAttachments, attachmentMode.value); +} + +@ffi.Native() +external int CVColorPrimariesGetIntegerCodePointForString( + CFStringRef colorPrimariesString, +); + +@ffi.Native() +external CFStringRef CVColorPrimariesGetStringForIntegerCodePoint( + int colorPrimariesCodePoint, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native)>() +external int CVDisplayLinkCreateWithActiveCGDisplays( + ffi.Pointer displayLinkOut, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function(CGDirectDisplayID, ffi.Pointer) +>() +external int CVDisplayLinkCreateWithCGDisplay( + int displayID, + ffi.Pointer displayLinkOut, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function( + ffi.Pointer, + CFIndex, + ffi.Pointer, + ) +>() +external int CVDisplayLinkCreateWithCGDisplays( + ffi.Pointer displayArray, + int count, + ffi.Pointer displayLinkOut, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function(CGOpenGLDisplayMask, ffi.Pointer) +>() +external int CVDisplayLinkCreateWithOpenGLDisplayMask( + int mask, + ffi.Pointer displayLinkOut, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external double CVDisplayLinkGetActualOutputVideoRefreshPeriod( + CVDisplayLinkRef displayLink, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkGetCurrentCGDisplay(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native)>() +external int CVDisplayLinkGetCurrentTime( + CVDisplayLinkRef displayLink, + ffi.Pointer outTime, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external CVTime CVDisplayLinkGetNominalOutputVideoRefreshPeriod( + CVDisplayLinkRef displayLink, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external CVTime CVDisplayLinkGetOutputVideoLatency( + CVDisplayLinkRef displayLink, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkGetTypeID(); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkIsRunning(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external void CVDisplayLinkRelease(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external CVDisplayLinkRef CVDisplayLinkRetain(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkSetCurrentCGDisplay( + CVDisplayLinkRef displayLink, + int displayID, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function(CVDisplayLinkRef, CGLContextObj, CGLPixelFormatObj) +>() +external int CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext( + CVDisplayLinkRef displayLink, + CGLContextObj cglContext, + CGLPixelFormatObj cglPixelFormat, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function( + CVDisplayLinkRef, + CVDisplayLinkOutputCallback, + ffi.Pointer, + ) +>() +external int CVDisplayLinkSetOutputCallback( + CVDisplayLinkRef displayLink, + CVDisplayLinkOutputCallback callback, + ffi.Pointer userInfo, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native( + symbol: 'CVDisplayLinkSetOutputHandler', +) +external int _CVDisplayLinkSetOutputHandler( + CVDisplayLinkRef displayLink, + CVDisplayLinkOutputHandler handler, +); + +DartCVReturn CVDisplayLinkSetOutputHandler( + CVDisplayLinkRef displayLink, + DartCVDisplayLinkOutputHandler handler, +) { + final _$$ref = handler.ref; + return _CVDisplayLinkSetOutputHandler(displayLink, _$$ref.pointer); +} + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkStart(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkStop(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function( + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CVDisplayLinkTranslateTime( + CVDisplayLinkRef displayLink, + ffi.Pointer inTime, + ffi.Pointer outTime, +); + +@ffi.Native() +external int CVGetCurrentHostTime(); + +@ffi.Native() +external double CVGetHostClockFrequency(); + +@ffi.Native() +external int CVGetHostClockMinimumTimeDelta(); + +@ffi.Native() +external CGColorSpaceRef CVImageBufferCreateColorSpaceFromAttachments( + CFDictionaryRef attachments, +); + +@ffi.Native() +external objc.CGRect CVImageBufferGetCleanRect(CVImageBufferRef imageBuffer); + +@ffi.Native() +external CGColorSpaceRef CVImageBufferGetColorSpace( + CVImageBufferRef imageBuffer, +); + +@ffi.Native() +external objc.CGSize CVImageBufferGetDisplaySize(CVImageBufferRef imageBuffer); + +@ffi.Native() +external objc.CGSize CVImageBufferGetEncodedSize(CVImageBufferRef imageBuffer); + +@ffi.Native() +external int CVImageBufferIsFlipped(CVImageBufferRef imageBuffer); + +@ffi.Native() +external int CVIsCompressedPixelFormatAvailable(int pixelFormatType); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CVMetalBufferCacheCreate') +external int _CVMetalBufferCacheCreate( + CFAllocatorRef allocator, + CFDictionaryRef cacheAttributes, + ffi.Pointer metalDevice, + ffi.Pointer cacheOut, +); + +DartCVReturn CVMetalBufferCacheCreate( + CFAllocatorRef allocator, + CFDictionaryRef cacheAttributes, + MTLDevice metalDevice, + ffi.Pointer cacheOut, +) { + final _$$ref = metalDevice.ref; + return _CVMetalBufferCacheCreate( + allocator, + cacheAttributes, + _$$ref.pointer, + cacheOut, + ); +} + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVMetalBufferCacheRef, + CVImageBufferRef, + ffi.Pointer, + ) +>() +external int CVMetalBufferCacheCreateBufferFromImage( + CFAllocatorRef allocator, + CVMetalBufferCacheRef bufferCache, + CVImageBufferRef imageBuffer, + ffi.Pointer bufferOut, +); + +@ffi.Native() +external void CVMetalBufferCacheFlush( + CVMetalBufferCacheRef bufferCache, + int options, +); + +@ffi.Native() +external int CVMetalBufferCacheGetTypeID(); + +@ffi.Native Function(CVMetalBufferRef)>( + symbol: 'CVMetalBufferGetBuffer', +) +external ffi.Pointer _CVMetalBufferGetBuffer( + CVMetalBufferRef buffer, +); + +MTLBuffer? CVMetalBufferGetBuffer(CVMetalBufferRef buffer) { + return _CVMetalBufferGetBuffer(buffer).address == 0 + ? null + : MTLBuffer.fromPointer( + _CVMetalBufferGetBuffer(buffer), + retain: true, + release: true, + ); +} + +@ffi.Native() +external int CVMetalBufferGetTypeID(); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CFDictionaryRef, + ffi.Pointer, + CFDictionaryRef, + ffi.Pointer, + ) +>(symbol: 'CVMetalTextureCacheCreate') +external int _CVMetalTextureCacheCreate( + CFAllocatorRef allocator, + CFDictionaryRef cacheAttributes, + ffi.Pointer metalDevice, + CFDictionaryRef textureAttributes, + ffi.Pointer cacheOut, +); + +DartCVReturn CVMetalTextureCacheCreate( + CFAllocatorRef allocator, + CFDictionaryRef cacheAttributes, + MTLDevice metalDevice, + CFDictionaryRef textureAttributes, + ffi.Pointer cacheOut, +) { + final _$$ref = metalDevice.ref; + return _CVMetalTextureCacheCreate( + allocator, + cacheAttributes, + _$$ref.pointer, + textureAttributes, + cacheOut, + ); +} + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVMetalTextureCacheRef, + CVImageBufferRef, + CFDictionaryRef, + NSUInteger, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'CVMetalTextureCacheCreateTextureFromImage') +external int _CVMetalTextureCacheCreateTextureFromImage( + CFAllocatorRef allocator, + CVMetalTextureCacheRef textureCache, + CVImageBufferRef sourceImage, + CFDictionaryRef textureAttributes, + int pixelFormat, + int width, + int height, + int planeIndex, + ffi.Pointer textureOut, +); + +DartCVReturn CVMetalTextureCacheCreateTextureFromImage( + CFAllocatorRef allocator, + CVMetalTextureCacheRef textureCache, + CVImageBufferRef sourceImage, + CFDictionaryRef textureAttributes, + MTLPixelFormat pixelFormat, + int width, + int height, + int planeIndex, + ffi.Pointer textureOut, +) { + return _CVMetalTextureCacheCreateTextureFromImage( + allocator, + textureCache, + sourceImage, + textureAttributes, + pixelFormat.value, + width, + height, + planeIndex, + textureOut, + ); +} + +@ffi.Native() +external void CVMetalTextureCacheFlush( + CVMetalTextureCacheRef textureCache, + int options, +); + +@ffi.Native() +external int CVMetalTextureCacheGetTypeID(); + +@ffi.Native< + ffi.Void Function( + CVMetalTextureRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CVMetalTextureGetCleanTexCoords( + CVMetalTextureRef image, + ffi.Pointer lowerLeft, + ffi.Pointer lowerRight, + ffi.Pointer upperRight, + ffi.Pointer upperLeft, +); + +@ffi.Native Function(CVMetalTextureRef)>( + symbol: 'CVMetalTextureGetTexture', +) +external ffi.Pointer _CVMetalTextureGetTexture( + CVMetalTextureRef image, +); + +MTLTexture? CVMetalTextureGetTexture(CVMetalTextureRef image) { + return _CVMetalTextureGetTexture(image).address == 0 + ? null + : MTLTexture.fromPointer( + _CVMetalTextureGetTexture(image), + retain: true, + release: true, + ); +} + +@ffi.Native() +external int CVMetalTextureGetTypeID(); + +@ffi.Native() +external int CVMetalTextureIsFlipped(CVMetalTextureRef image); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function(CVOpenGLBufferRef, CGLContextObj, GLenum, GLint, GLint) +>() +external int CVOpenGLBufferAttach( + CVOpenGLBufferRef openGLBuffer, + CGLContextObj cglContext, + int face, + int level, + int screen, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + ffi.Size, + ffi.Size, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVOpenGLBufferCreate( + CFAllocatorRef allocator, + int width, + int height, + CFDictionaryRef attributes, + ffi.Pointer bufferOut, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CFDictionaryRef CVOpenGLBufferGetAttributes( + CVOpenGLBufferRef openGLBuffer, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLBufferGetTypeID(); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CFDictionaryRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVOpenGLBufferPoolCreate( + CFAllocatorRef allocator, + CFDictionaryRef poolAttributes, + CFDictionaryRef openGLBufferAttributes, + ffi.Pointer poolOut, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVOpenGLBufferPoolRef, + ffi.Pointer, + ) +>() +external int CVOpenGLBufferPoolCreateOpenGLBuffer( + CFAllocatorRef allocator, + CVOpenGLBufferPoolRef openGLBufferPool, + ffi.Pointer openGLBufferOut, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CFDictionaryRef CVOpenGLBufferPoolGetAttributes( + CVOpenGLBufferPoolRef pool, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CFDictionaryRef CVOpenGLBufferPoolGetOpenGLBufferAttributes( + CVOpenGLBufferPoolRef pool, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLBufferPoolGetTypeID(); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CVOpenGLBufferPoolRelease(CVOpenGLBufferPoolRef openGLBufferPool); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CVOpenGLBufferPoolRef CVOpenGLBufferPoolRetain( + CVOpenGLBufferPoolRef openGLBufferPool, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CVOpenGLBufferRelease(CVOpenGLBufferRef buffer); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CVOpenGLBufferRef CVOpenGLBufferRetain(CVOpenGLBufferRef buffer); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CFDictionaryRef, + CGLContextObj, + CGLPixelFormatObj, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVOpenGLTextureCacheCreate( + CFAllocatorRef allocator, + CFDictionaryRef cacheAttributes, + CGLContextObj cglContext, + CGLPixelFormatObj cglPixelFormat, + CFDictionaryRef textureAttributes, + ffi.Pointer cacheOut, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVOpenGLTextureCacheRef, + CVImageBufferRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVOpenGLTextureCacheCreateTextureFromImage( + CFAllocatorRef allocator, + CVOpenGLTextureCacheRef textureCache, + CVImageBufferRef sourceImage, + CFDictionaryRef attributes, + ffi.Pointer textureOut, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CVOpenGLTextureCacheFlush( + CVOpenGLTextureCacheRef textureCache, + int options, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLTextureCacheGetTypeID(); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CVOpenGLTextureCacheRelease(CVOpenGLTextureCacheRef textureCache); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CVOpenGLTextureCacheRef CVOpenGLTextureCacheRetain( + CVOpenGLTextureCacheRef textureCache, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.Void Function( + CVOpenGLTextureRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CVOpenGLTextureGetCleanTexCoords( + CVOpenGLTextureRef image, + ffi.Pointer lowerLeft, + ffi.Pointer lowerRight, + ffi.Pointer upperRight, + ffi.Pointer upperLeft, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLTextureGetName(CVOpenGLTextureRef image); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLTextureGetTarget(CVOpenGLTextureRef image); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLTextureGetTypeID(); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLTextureIsFlipped(CVOpenGLTextureRef image); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CVOpenGLTextureRelease(CVOpenGLTextureRef texture); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CVOpenGLTextureRef CVOpenGLTextureRetain(CVOpenGLTextureRef texture); + +@ffi.Native() +external CFDictionaryRef CVPixelBufferCopyCreationAttributes( + CVPixelBufferRef pixelBuffer, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + ffi.Size, + ffi.Size, + OSType, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferCreate( + CFAllocatorRef allocator, + int width, + int height, + int pixelFormatType, + CFDictionaryRef pixelBufferAttributes, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native< + CVReturn Function(CFAllocatorRef, CFArrayRef, ffi.Pointer) +>() +external int CVPixelBufferCreateResolvedAttributesDictionary( + CFAllocatorRef allocator, + CFArrayRef attributes, + ffi.Pointer resolvedDictionaryOut, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + ffi.Size, + ffi.Size, + OSType, + ffi.Pointer, + ffi.Size, + CVPixelBufferReleaseBytesCallback, + ffi.Pointer, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferCreateWithBytes( + CFAllocatorRef allocator, + int width, + int height, + int pixelFormatType, + ffi.Pointer baseAddress, + int bytesPerRow, + CVPixelBufferReleaseBytesCallback releaseCallback, + ffi.Pointer releaseRefCon, + CFDictionaryRef pixelBufferAttributes, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + IOSurfaceRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferCreateWithIOSurface( + CFAllocatorRef allocator, + IOSurfaceRef surface, + CFDictionaryRef pixelBufferAttributes, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + ffi.Size, + ffi.Size, + OSType, + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CVPixelBufferReleasePlanarBytesCallback, + ffi.Pointer, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferCreateWithPlanarBytes( + CFAllocatorRef allocator, + int width, + int height, + int pixelFormatType, + ffi.Pointer dataPtr, + int dataSize, + int numberOfPlanes, + ffi.Pointer> planeBaseAddress, + ffi.Pointer planeWidth, + ffi.Pointer planeHeight, + ffi.Pointer planeBytesPerRow, + CVPixelBufferReleasePlanarBytesCallback releaseCallback, + ffi.Pointer releaseRefCon, + CFDictionaryRef pixelBufferAttributes, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native() +external int CVPixelBufferFillExtendedPixels(CVPixelBufferRef pixelBuffer); + +@ffi.Native Function(CVPixelBufferRef)>() +external ffi.Pointer CVPixelBufferGetBaseAddress( + CVPixelBufferRef pixelBuffer, +); + +@ffi.Native Function(CVPixelBufferRef, ffi.Size)>() +external ffi.Pointer CVPixelBufferGetBaseAddressOfPlane( + CVPixelBufferRef pixelBuffer, + int planeIndex, +); + +@ffi.Native() +external int CVPixelBufferGetBytesPerRow(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetBytesPerRowOfPlane( + CVPixelBufferRef pixelBuffer, + int planeIndex, +); + +@ffi.Native() +external int CVPixelBufferGetDataSize(CVPixelBufferRef pixelBuffer); + +@ffi.Native< + ffi.Void Function( + CVPixelBufferRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CVPixelBufferGetExtendedPixels( + CVPixelBufferRef pixelBuffer, + ffi.Pointer extraColumnsOnLeft, + ffi.Pointer extraColumnsOnRight, + ffi.Pointer extraRowsOnTop, + ffi.Pointer extraRowsOnBottom, +); + +@ffi.Native() +external int CVPixelBufferGetHeight(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetHeightOfPlane( + CVPixelBufferRef pixelBuffer, + int planeIndex, +); + +@ffi.Native() +external IOSurfaceRef CVPixelBufferGetIOSurface(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetPixelFormatType(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetPlaneCount(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetTypeID(); + +@ffi.Native() +external int CVPixelBufferGetWidth(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetWidthOfPlane( + CVPixelBufferRef pixelBuffer, + int planeIndex, +); + +@ffi.Native() +external int CVPixelBufferIsCompatibleWithAttributes( + CVPixelBufferRef pixelBuffer, + CFDictionaryRef attributes, +); + +@ffi.Native() +external int CVPixelBufferIsPlanar(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferLockBaseAddress( + CVPixelBufferRef pixelBuffer, + int lockFlags, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CFDictionaryRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferPoolCreate( + CFAllocatorRef allocator, + CFDictionaryRef poolAttributes, + CFDictionaryRef pixelBufferAttributes, + ffi.Pointer poolOut, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVPixelBufferPoolRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferPoolCreatePixelBuffer( + CFAllocatorRef allocator, + CVPixelBufferPoolRef pixelBufferPool, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVPixelBufferPoolRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferPoolCreatePixelBufferWithAuxAttributes( + CFAllocatorRef allocator, + CVPixelBufferPoolRef pixelBufferPool, + CFDictionaryRef auxAttributes, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native() +external void CVPixelBufferPoolFlush(CVPixelBufferPoolRef pool, int options); + +@ffi.Native() +external CFDictionaryRef CVPixelBufferPoolGetAttributes( + CVPixelBufferPoolRef pool, +); + +@ffi.Native() +external CFDictionaryRef CVPixelBufferPoolGetPixelBufferAttributes( + CVPixelBufferPoolRef pool, +); + +@ffi.Native() +external int CVPixelBufferPoolGetTypeID(); + +@ffi.Native() +external void CVPixelBufferPoolRelease(CVPixelBufferPoolRef pixelBufferPool); + +@ffi.Native() +external CVPixelBufferPoolRef CVPixelBufferPoolRetain( + CVPixelBufferPoolRef pixelBufferPool, +); + +@ffi.Native() +external void CVPixelBufferRelease(CVPixelBufferRef texture); + +@ffi.Native() +external CVPixelBufferRef CVPixelBufferRetain(CVPixelBufferRef texture); + +@ffi.Native() +external int CVPixelBufferUnlockBaseAddress( + CVPixelBufferRef pixelBuffer, + int unlockFlags, +); + +@ffi.Native() +external CFArrayRef CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes( + CFAllocatorRef allocator, +); + +@ffi.Native() +external CFDictionaryRef CVPixelFormatDescriptionCreateWithPixelFormatType( + CFAllocatorRef allocator, + int pixelFormat, +); + +@ffi.Native() +external void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType( + CFDictionaryRef description, + int pixelFormat, +); + +@ffi.Native() +external CFStringRef CVPixelFormatTypeCopyFourCharCodeString(int pixelFormat); + +@ffi.Native() +external int CVTransferFunctionGetIntegerCodePointForString( + CFStringRef transferFunctionString, +); + +@ffi.Native() +external CFStringRef CVTransferFunctionGetStringForIntegerCodePoint( + int transferFunctionCodePoint, +); + +@ffi.Native() +external int CVYCbCrMatrixGetIntegerCodePointForString( + CFStringRef yCbCrMatrixString, +); + +@ffi.Native() +external CFStringRef CVYCbCrMatrixGetStringForIntegerCodePoint( + int yCbCrMatrixCodePoint, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentCanDo(ComponentInstance ci, int ftnNumber); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentClose(ComponentInstance ci, ComponentInstance self); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CallComponentDispatch(ffi.Pointer cp); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + ffi.Pointer, + ComponentFunctionUPP, + ) +>() +external int CallComponentFunction( + ffi.Pointer params, + ComponentFunctionUPP func, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + Handle, + ffi.Pointer, + ComponentFunctionUPP, + ) +>() +external int CallComponentFunctionWithStorage( + Handle storage, + ffi.Pointer params, + ComponentFunctionUPP func, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + Handle, + ffi.Pointer, + ProcPtr, + ProcInfoType, + ) +>() +external int CallComponentFunctionWithStorageProcInfo( + Handle storage, + ffi.Pointer params, + ProcPtr func, + int funcProcInfo, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + ComponentInstance, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CallComponentGetMPWorkFunction( + ComponentInstance ci, + ffi.Pointer workFunction, + ffi.Pointer> refCon, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + ComponentInstance, + OSType, + SInt16, + ffi.Pointer, + ) +>() +external int CallComponentGetPublicResource( + ComponentInstance ci, + int resourceType, + int resourceID, + ffi.Pointer resource, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentOpen(ComponentInstance ci, ComponentInstance self); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentRegister(ComponentInstance ci); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentTarget( + ComponentInstance ci, + ComponentInstance target, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentUnregister(ComponentInstance ci); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentVersion(ComponentInstance ci); + +@Deprecated('Deprecated') +@ffi.Native() +external Component CaptureComponent( + Component capturedComponent, + Component capturingComponent, +); + +@ffi.Native() +external int ChangeTextToUnicodeInfo( + TextToUnicodeInfo ioTextToUnicodeInfo, + ConstUnicodeMappingPtr iUnicodeMapping, +); + +@ffi.Native() +external int ChangeUnicodeToTextInfo( + UnicodeToTextInfo ioUnicodeToTextInfo, + ConstUnicodeMappingPtr iUnicodeMapping, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void ChangedResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external Collection CloneCollection(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external int CloseComponent(ComponentInstance aComponentInstance); + +@Deprecated('Deprecated') +@ffi.Native() +external int CloseComponentResFile(int refnum); + +@Deprecated('Deprecated') +@ffi.Native() +external void CloseResFile(int refNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int CollectionTagExists(Collection c, int tag); + +@ffi.Native() +external int ColorSyncAPIVersion(); + +@ffi.Native() +external CFStringRef ColorSyncCMMCopyCMMIdentifier(ColorSyncCMMRef arg0); + +@ffi.Native() +external CFStringRef ColorSyncCMMCopyLocalizedName(ColorSyncCMMRef arg0); + +@ffi.Native() +external ColorSyncCMMRef ColorSyncCMMCreate(CFBundleRef cmmBundle); + +@ffi.Native() +external CFBundleRef ColorSyncCMMGetBundle(ColorSyncCMMRef arg0); + +@ffi.Native() +external int ColorSyncCMMGetTypeID(); + +@ffi.Native() +external CFTypeRef ColorSyncCreateCodeFragment( + CFArrayRef profileSequence, + CFDictionaryRef options, +); + +@ffi.Native() +external CFDictionaryRef ColorSyncDeviceCopyDeviceInfo( + CFStringRef deviceClass, + CFUUIDRef devID, +); + +@ffi.Native() +external bool ColorSyncDeviceSetCustomProfiles( + CFStringRef deviceClass, + CFUUIDRef deviceID, + CFDictionaryRef profileInfo, +); + +@ffi.Native< + ffi.Void Function( + ColorSyncDeviceProfileIterateCallback, + ffi.Pointer, + ) +>() +external void ColorSyncIterateDeviceProfiles( + ColorSyncDeviceProfileIterateCallback callBack, + ffi.Pointer userInfo, +); + +@ffi.Native< + ffi.Void Function(ColorSyncCMMIterateCallback, ffi.Pointer) +>() +external void ColorSyncIterateInstalledCMMs( + ColorSyncCMMIterateCallback callBack, + ffi.Pointer userInfo, +); + +@ffi.Native< + ffi.Void Function( + ColorSyncProfileIterateCallback, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void ColorSyncIterateInstalledProfiles( + ColorSyncProfileIterateCallback callBack, + ffi.Pointer seed, + ffi.Pointer userInfo, + ffi.Pointer error, +); + +@ffi.Native< + ffi.Void Function( + ColorSyncProfileIterateCallback, + ffi.Pointer, + ffi.Pointer, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external void ColorSyncIterateInstalledProfilesWithOptions( + ColorSyncProfileIterateCallback callBack, + ffi.Pointer seed, + ffi.Pointer userInfo, + CFDictionaryRef options, + ffi.Pointer error, +); + +@ffi.Native() +external bool ColorSyncProfileContainsTag( + ColorSyncProfileRef prof, + CFStringRef signature, +); + +@ffi.Native)>() +external CFDataRef ColorSyncProfileCopyData( + ColorSyncProfileRef prof, + ffi.Pointer error, +); + +@ffi.Native() +external CFStringRef ColorSyncProfileCopyDescriptionString( + ColorSyncProfileRef prof, +); + +@ffi.Native() +external CFDataRef ColorSyncProfileCopyHeader(ColorSyncProfileRef prof); + +@ffi.Native() +external CFDataRef ColorSyncProfileCopyTag( + ColorSyncProfileRef prof, + CFStringRef signature, +); + +@ffi.Native() +external CFArrayRef ColorSyncProfileCopyTagSignatures(ColorSyncProfileRef prof); + +@ffi.Native)>() +external ColorSyncProfileRef ColorSyncProfileCreate( + CFDataRef data, + ffi.Pointer error, +); + +@ffi.Native() +external ColorSyncProfileRef ColorSyncProfileCreateDeviceProfile( + CFStringRef deviceClass, + CFUUIDRef deviceID, + CFTypeRef profileID, +); + +@ffi.Native)>() +external CFDataRef ColorSyncProfileCreateDisplayTransferTablesFromVCGT( + ColorSyncProfileRef profile, + ffi.Pointer nSamplesPerChannel, +); + +@ffi.Native() +external ColorSyncProfileRef ColorSyncProfileCreateLink( + CFArrayRef profileInfo, + CFDictionaryRef options, +); + +@ffi.Native() +external ColorSyncMutableProfileRef ColorSyncProfileCreateMutable(); + +@ffi.Native() +external ColorSyncMutableProfileRef ColorSyncProfileCreateMutableCopy( + ColorSyncProfileRef prof, +); + +@ffi.Native() +external ColorSyncProfileRef ColorSyncProfileCreateWithDisplayID(int displayID); + +@ffi.Native() +external ColorSyncProfileRef ColorSyncProfileCreateWithName(CFStringRef name); + +@ffi.Native)>() +external ColorSyncProfileRef ColorSyncProfileCreateWithURL( + CFURLRef url, + ffi.Pointer error, +); + +@ffi.Native)>() +external double ColorSyncProfileEstimateGamma( + ColorSyncProfileRef prof, + ffi.Pointer error, +); + +@ffi.Native)>() +external double ColorSyncProfileEstimateGammaWithDisplayID( + int displayID, + ffi.Pointer error, +); + +@ffi.Native< + ffi.Bool Function( + ColorSyncProfileRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool ColorSyncProfileGetDisplayTransferFormulaFromVCGT( + ColorSyncProfileRef profile, + ffi.Pointer redMin, + ffi.Pointer redMax, + ffi.Pointer redGamma, + ffi.Pointer greenMin, + ffi.Pointer greenMax, + ffi.Pointer greenGamma, + ffi.Pointer blueMin, + ffi.Pointer blueMax, + ffi.Pointer blueGamma, +); + +@ffi.Native() +external ColorSyncMD5 ColorSyncProfileGetMD5(ColorSyncProfileRef prof); + +@ffi.Native() +external int ColorSyncProfileGetTypeID(); + +@ffi.Native)>() +external CFURLRef ColorSyncProfileGetURL( + ColorSyncProfileRef prof, + ffi.Pointer error, +); + +@ffi.Native< + ffi.Bool Function( + ColorSyncProfileRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external bool ColorSyncProfileInstall( + ColorSyncProfileRef profile, + CFStringRef domain, + CFStringRef subpath, + ffi.Pointer error, +); + +@ffi.Native() +external bool ColorSyncProfileIsHLGBased(ColorSyncProfileRef arg0); + +@ffi.Native() +external bool ColorSyncProfileIsMatrixBased(ColorSyncProfileRef arg0); + +@ffi.Native() +external bool ColorSyncProfileIsPQBased(ColorSyncProfileRef arg0); + +@ffi.Native() +external bool ColorSyncProfileIsWideGamut(ColorSyncProfileRef arg0); + +@ffi.Native() +external void ColorSyncProfileRemoveTag( + ColorSyncMutableProfileRef prof, + CFStringRef signature, +); + +@ffi.Native() +external void ColorSyncProfileSetHeader( + ColorSyncMutableProfileRef prof, + CFDataRef header, +); + +@ffi.Native< + ffi.Void Function(ColorSyncMutableProfileRef, CFStringRef, CFDataRef) +>() +external void ColorSyncProfileSetTag( + ColorSyncMutableProfileRef prof, + CFStringRef signature, + CFDataRef data, +); + +@ffi.Native)>() +external bool ColorSyncProfileUninstall( + ColorSyncProfileRef profile, + ffi.Pointer error, +); + +@ffi.Native< + ffi.Bool Function( + ColorSyncProfileRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool ColorSyncProfileVerify( + ColorSyncProfileRef prof, + ffi.Pointer errors, + ffi.Pointer warnings, +); + +@ffi.Native() +external bool ColorSyncRegisterDevice( + CFStringRef deviceClass, + CFUUIDRef deviceID, + CFDictionaryRef deviceInfo, +); + +@ffi.Native< + ffi.Bool Function( + ColorSyncTransformRef, + ffi.Size, + ffi.Size, + ffi.Pointer, + ffi.UnsignedInt, + ColorSyncDataLayout, + ffi.Size, + ffi.Pointer, + ffi.UnsignedInt, + ColorSyncDataLayout, + ffi.Size, + CFDictionaryRef, + ) +>(symbol: 'ColorSyncTransformConvert') +external bool _ColorSyncTransformConvert( + ColorSyncTransformRef transform, + int width, + int height, + ffi.Pointer dst, + int dstDepth, + int dstLayout, + int dstBytesPerRow, + ffi.Pointer src, + int srcDepth, + int srcLayout, + int srcBytesPerRow, + CFDictionaryRef options, +); + +bool ColorSyncTransformConvert( + ColorSyncTransformRef transform, + int width, + int height, + ffi.Pointer dst, + ColorSyncDataDepth dstDepth, + DartColorSyncDataLayout dstLayout, + int dstBytesPerRow, + ffi.Pointer src, + ColorSyncDataDepth srcDepth, + DartColorSyncDataLayout srcLayout, + int srcBytesPerRow, + CFDictionaryRef options, +) { + return _ColorSyncTransformConvert( + transform, + width, + height, + dst, + dstDepth.value, + dstLayout, + dstBytesPerRow, + src, + srcDepth.value, + srcLayout, + srcBytesPerRow, + options, + ); +} + +@ffi.Native< + CFTypeRef Function(ColorSyncTransformRef, CFTypeRef, CFDictionaryRef) +>() +external CFTypeRef ColorSyncTransformCopyProperty( + ColorSyncTransformRef transform, + CFTypeRef key, + CFDictionaryRef options, +); + +@ffi.Native() +external ColorSyncTransformRef ColorSyncTransformCreate( + CFArrayRef profileSequence, + CFDictionaryRef options, +); + +@ffi.Native() +external CFArrayRef ColorSyncTransformGetProfileSequence( + ColorSyncTransformRef transform, +); + +@ffi.Native() +external int ColorSyncTransformGetTypeID(); + +@ffi.Native() +external void ColorSyncTransformSetProperty( + ColorSyncTransformRef transform, + CFTypeRef key, + CFTypeRef property, +); + +@ffi.Native() +external bool ColorSyncUnregisterDevice( + CFStringRef deviceClass, + CFUUIDRef deviceID, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CompareAndSwap( + int oldValue, + int newValue, + ffi.Pointer address, +); + +@Deprecated('Use NSImage or Core Graphics to composite images.') +@ffi.Native)>() +external int CompositeIconRef( + IconRef backgroundIconRef, + IconRef foregroundIconRef, + ffi.Pointer compositeIconRef, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int ContinueSpeech(SpeechChannel chan); + +@ffi.Native< + OSStatus Function( + TextToUnicodeInfo, + ConstStr255Param, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ConvertFromPStringToUnicode( + TextToUnicodeInfo iTextToUnicodeInfo, + ConstStr255Param iPascalStr, + int iOutputBufLen, + ffi.Pointer oUnicodeLen, + ffi.Pointer oUnicodeStr, +); + +@ffi.Native< + OSStatus Function( + TextToUnicodeInfo, + ByteCount, + ConstLogicalAddress, + OptionBits, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ConvertFromTextToUnicode( + TextToUnicodeInfo iTextToUnicodeInfo, + int iSourceLen, + ConstLogicalAddress iSourceStr, + int iControlFlags, + int iOffsetCount, + ffi.Pointer iOffsetArray, + ffi.Pointer oOffsetCount, + ffi.Pointer oOffsetArray, + int iOutputBufLen, + ffi.Pointer oSourceRead, + ffi.Pointer oUnicodeLen, + ffi.Pointer oUnicodeStr, +); + +@ffi.Native< + OSStatus Function( + UnicodeToTextInfo, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ConvertFromUnicodeToPString( + UnicodeToTextInfo iUnicodeToTextInfo, + int iUnicodeLen, + ffi.Pointer iUnicodeStr, + ffi.Pointer oPascalStr, +); + +@ffi.Native< + OSStatus Function( + UnicodeToTextRunInfo, + ByteCount, + ffi.Pointer, + OptionBits, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ByteCount, + ffi.Pointer, + ffi.Pointer, + LogicalAddress, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ConvertFromUnicodeToScriptCodeRun( + UnicodeToTextRunInfo iUnicodeToTextInfo, + int iUnicodeLen, + ffi.Pointer iUnicodeStr, + int iControlFlags, + int iOffsetCount, + ffi.Pointer iOffsetArray, + ffi.Pointer oOffsetCount, + ffi.Pointer oOffsetArray, + int iOutputBufLen, + ffi.Pointer oInputRead, + ffi.Pointer oOutputLen, + LogicalAddress oOutputStr, + int iScriptRunBufLen, + ffi.Pointer oScriptRunOutLen, + ffi.Pointer oScriptCodeRuns, +); + +@ffi.Native< + OSStatus Function( + UnicodeToTextInfo, + ByteCount, + ffi.Pointer, + OptionBits, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ByteCount, + ffi.Pointer, + ffi.Pointer, + LogicalAddress, + ) +>() +external int ConvertFromUnicodeToText( + UnicodeToTextInfo iUnicodeToTextInfo, + int iUnicodeLen, + ffi.Pointer iUnicodeStr, + int iControlFlags, + int iOffsetCount, + ffi.Pointer iOffsetArray, + ffi.Pointer oOffsetCount, + ffi.Pointer oOffsetArray, + int iOutputBufLen, + ffi.Pointer oInputRead, + ffi.Pointer oOutputLen, + LogicalAddress oOutputStr, +); + +@ffi.Native< + OSStatus Function( + UnicodeToTextRunInfo, + ByteCount, + ffi.Pointer, + OptionBits, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ByteCount, + ffi.Pointer, + ffi.Pointer, + LogicalAddress, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ConvertFromUnicodeToTextRun( + UnicodeToTextRunInfo iUnicodeToTextInfo, + int iUnicodeLen, + ffi.Pointer iUnicodeStr, + int iControlFlags, + int iOffsetCount, + ffi.Pointer iOffsetArray, + ffi.Pointer oOffsetCount, + ffi.Pointer oOffsetArray, + int iOutputBufLen, + ffi.Pointer oInputRead, + ffi.Pointer oOutputLen, + LogicalAddress oOutputStr, + int iEncodingRunBufLen, + ffi.Pointer oEncodingRunOutLen, + ffi.Pointer oEncodingRuns, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Collection CopyCollection( + Collection srcCollection, + Collection dstCollection, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(SpeechChannel, CFStringRef, ffi.Pointer) +>() +external int CopyPhonemesFromText( + SpeechChannel chan, + CFStringRef text, + ffi.Pointer phonemes, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int CopyProcessName( + ffi.Pointer psn, + ffi.Pointer name, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(SpeechChannel, CFStringRef, ffi.Pointer) +>() +external int CopySpeechProperty( + SpeechChannel chan, + CFStringRef property, + ffi.Pointer object, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + OSType, + OSType, + SInt16, + ffi.Pointer, + ByteCount, + Boolean, + ) +>() +external int CoreEndianFlipData( + int dataDomain, + int dataType, + int id, + ffi.Pointer data, + int dataLen, + int currentlyNative, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + OSType, + OSType, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CoreEndianGetFlipper( + int dataDomain, + int dataType, + ffi.Pointer proc, + ffi.Pointer> refcon, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(OSType, OSType, CoreEndianFlipProc, ffi.Pointer) +>() +external int CoreEndianInstallFlipper( + int dataDomain, + int dataType, + CoreEndianFlipProc proc, + ffi.Pointer refcon, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int Count1Resources(int theType); + +@Deprecated('Deprecated') +@ffi.Native() +external int Count1Types(); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountCollectionItems(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountCollectionOwners(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountCollectionTags(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountComponentInstances(Component aComponent); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CountComponents(ffi.Pointer looking); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountResources(int theType); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountTaggedCollectionItems(Collection c, int tag); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountTypes(); + +@ffi.Native< + OSStatus Function(OptionBits, ConstUnicodeMappingPtr, ffi.Pointer) +>() +external int CountUnicodeMappings( + int iFilter, + ConstUnicodeMappingPtr iFindMapping, + ffi.Pointer oActualCount, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int CountVoices(ffi.Pointer numVoices); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + ffi.Pointer, + Boolean, + ffi.Pointer, + ) +>() +external int CreateCompDescriptor( + int comparisonOperator, + ffi.Pointer operand1, + ffi.Pointer operand2, + int disposeInputs, + ffi.Pointer theDescriptor, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + DescType, + Boolean, + ffi.Pointer, + ) +>() +external int CreateLogicalDescriptor( + ffi.Pointer theLogicalTerms, + int theLogicOperator, + int disposeInputs, + ffi.Pointer theDescriptor, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + DescType, + ffi.Pointer, + Boolean, + ffi.Pointer, + ) +>() +external int CreateObjSpecifier( + int desiredClass, + ffi.Pointer theContainer, + int keyForm, + ffi.Pointer keyData, + int disposeInputs, + ffi.Pointer objSpecifier, +); + +@ffi.Native)>() +external int CreateOffsetDescriptor( + int theOffset, + ffi.Pointer theDescriptor, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + Boolean, + ffi.Pointer, + ) +>() +external int CreateRangeDescriptor( + ffi.Pointer rangeStart, + ffi.Pointer rangeStop, + int disposeInputs, + ffi.Pointer theDescriptor, +); + +@ffi.Native< + TextEncoding Function( + TextEncodingBase, + TextEncodingVariant, + TextEncodingFormat, + ) +>() +external int CreateTextEncoding( + int encodingBase, + int encodingVariant, + int encodingFormat, +); + +@ffi.Native< + OSStatus Function(ConstUnicodeMappingPtr, ffi.Pointer) +>() +external int CreateTextToUnicodeInfo( + ConstUnicodeMappingPtr iUnicodeMapping, + ffi.Pointer oTextToUnicodeInfo, +); + +@ffi.Native)>() +external int CreateTextToUnicodeInfoByEncoding( + int iEncoding, + ffi.Pointer oTextToUnicodeInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CreateThreadPool(int threadStyle, int numToCreate, int stackSize); + +@ffi.Native< + OSStatus Function(ConstUnicodeMappingPtr, ffi.Pointer) +>() +external int CreateUnicodeToTextInfo( + ConstUnicodeMappingPtr iUnicodeMapping, + ffi.Pointer oUnicodeToTextInfo, +); + +@ffi.Native)>() +external int CreateUnicodeToTextInfoByEncoding( + int iEncoding, + ffi.Pointer oUnicodeToTextInfo, +); + +@ffi.Native< + OSStatus Function( + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CreateUnicodeToTextRunInfo( + int iNumberOfMappings, + ffi.Pointer iUnicodeMappings, + ffi.Pointer oUnicodeToTextInfo, +); + +@ffi.Native< + OSStatus Function( + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CreateUnicodeToTextRunInfoByEncoding( + int iNumberOfEncodings, + ffi.Pointer iEncodings, + ffi.Pointer oUnicodeToTextInfo, +); + +@ffi.Native< + OSStatus Function( + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CreateUnicodeToTextRunInfoByScriptCode( + int iNumberOfScriptCodes, + ffi.Pointer iScripts, + ffi.Pointer oUnicodeToTextInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CurResFile(); + +@Deprecated('No longer supported') +@ffi.Native() +external int CurrentProcessorSpeed(); + +@ffi.Native() +external DAApprovalSessionRef DAApprovalSessionCreate(CFAllocatorRef allocator); + +@ffi.Native() +external int DAApprovalSessionGetTypeID(); + +@ffi.Native< + ffi.Void Function(DAApprovalSessionRef, CFRunLoopRef, CFStringRef) +>() +external void DAApprovalSessionScheduleWithRunLoop( + DAApprovalSessionRef session, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native< + ffi.Void Function(DAApprovalSessionRef, CFRunLoopRef, CFStringRef) +>() +external void DAApprovalSessionUnscheduleFromRunLoop( + DAApprovalSessionRef session, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native() +external CFDictionaryRef DADiskCopyDescription(DADiskRef disk); + +@ffi.Native() +external int DADiskCopyIOMedia(DADiskRef disk); + +@ffi.Native() +external DADiskRef DADiskCopyWholeDisk(DADiskRef disk); + +@ffi.Native< + DADiskRef Function(CFAllocatorRef, DASessionRef, ffi.Pointer) +>() +external DADiskRef DADiskCreateFromBSDName( + CFAllocatorRef allocator, + DASessionRef session, + ffi.Pointer name, +); + +@ffi.Native() +external DADiskRef DADiskCreateFromIOMedia( + CFAllocatorRef allocator, + DASessionRef session, + int media, +); + +@ffi.Native() +external DADiskRef DADiskCreateFromVolumePath( + CFAllocatorRef allocator, + DASessionRef session, + CFURLRef path, +); + +@ffi.Native Function(DADiskRef)>() +external ffi.Pointer DADiskGetBSDName(DADiskRef disk); + +@ffi.Native() +external int DADiskGetTypeID(); + +@ffi.Native() +external DASessionRef DASessionCreate(CFAllocatorRef allocator); + +@ffi.Native() +external int DASessionGetTypeID(); + +@ffi.Native() +external void DASessionScheduleWithRunLoop( + DASessionRef session, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native( + symbol: 'DASessionSetDispatchQueue', +) +external void _DASessionSetDispatchQueue( + DASessionRef session, + dispatch_queue_t queue, +); + +void DASessionSetDispatchQueue( + DASessionRef session, + Dartdispatch_queue_t? queue, +) { + final _$$ref = queue?.ref; + return _DASessionSetDispatchQueue(session, _$$ref?.pointer ?? ffi.nullptr); +} + +@ffi.Native() +external void DASessionUnscheduleFromRunLoop( + DASessionRef session, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native() +external CFStringRef DCSCopyTextDefinition( + DCSDictionaryRef dictionary, + CFStringRef textString, + CFRange range, +); + +@ffi.Native() +external CFRange DCSGetTermRangeInString( + DCSDictionaryRef dictionary, + CFStringRef textString, + int offset, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) +>() +external void DebugAssert( + int componentSignature, + int options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + int lineNumber, + ffi.Pointer value, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DebugStr(ConstStr255Param debuggerMsg); + +@Deprecated('Deprecated') +@ffi.Native() +external void Debugger(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int DecrementAtomic(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int DecrementAtomic16(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int DecrementAtomic8(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) +>() +external void Delay(int numTicks, ffi.Pointer finalTicks); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function(ffi.Pointer, ComponentInstance) +>() +external int DelegateComponentCall( + ffi.Pointer originalParams, + ComponentInstance ci, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int DeleteGestaltValue(int selector); + +@Deprecated('Deprecated') +@ffi.Native() +external int Dequeue(QElemPtr qElement, QHdrPtr qHeader); + +@Deprecated('Deprecated') +@ffi.Native() +external void DetachResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external int DetachResourceFile(int refNum); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSVolumeRefNum, + OSType, + ffi.Pointer, + Boolean, + ffi.Pointer, + ) +>() +external int DetermineIfPathIsEnclosedByFolder( + int domainOrVRefNum, + int folderType, + ffi.Pointer utf8Path, + int pathIsRealPath, + ffi.Pointer outResult, +); + +@ffi.Native() +external void DisposeAECoerceDescUPP(AECoerceDescUPP userUPP); + +@ffi.Native() +external void DisposeAECoercePtrUPP(AECoercePtrUPP userUPP); + +@ffi.Native() +external void DisposeAEDisposeExternalUPP(AEDisposeExternalUPP userUPP); + +@ffi.Native() +external void DisposeAEEventHandlerUPP(AEEventHandlerUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeCollection(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeCollectionExceptionUPP(CollectionExceptionUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeCollectionFlattenUPP(CollectionFlattenUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeComponentFunctionUPP(ComponentFunctionUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeComponentMPWorkFunctionUPP( + ComponentMPWorkFunctionUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeComponentRoutineUPP(ComponentRoutineUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDebugAssertOutputHandlerUPP( + DebugAssertOutputHandlerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int DisposeDebugComponent(int componentSignature); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDebugComponentCallbackUPP( + DebugComponentCallbackUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDebuggerDisposeThreadUPP(DebuggerDisposeThreadUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDebuggerNewThreadUPP(DebuggerNewThreadUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDebuggerThreadSchedulerUPP( + DebuggerThreadSchedulerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDeferredTaskUPP(DeferredTaskUPP userUPP); + +@Deprecated('No longer supported') +@ffi.Native() +external void DisposeExceptionHandlerUPP(ExceptionHandlerUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeFNSubscriptionUPP(FNSubscriptionUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeFSVolumeEjectUPP(FSVolumeEjectUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeFSVolumeMountUPP(FSVolumeMountUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeFSVolumeUnmountUPP(FSVolumeUnmountUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeFolderManagerNotificationUPP( + FolderManagerNotificationUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeGetMissingComponentResourceUPP( + GetMissingComponentResourceUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeHandle(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeIOCompletionUPP(IOCompletionUPP userUPP); + +@ffi.Native() +external void DisposeIconActionUPP(IconActionUPP userUPP); + +@ffi.Native() +external void DisposeIconGetterUPP(IconGetterUPP userUPP); + +@ffi.Native() +external void DisposeIndexToUCStringUPP(IndexToUCStringUPP userUPP); + +@Deprecated('No longer supported') +@ffi.Native() +external void DisposeKCCallbackUPP(KCCallbackUPP userUPP); + +@ffi.Native() +external void DisposeOSLAccessorUPP(OSLAccessorUPP userUPP); + +@ffi.Native() +external void DisposeOSLAdjustMarksUPP(OSLAdjustMarksUPP userUPP); + +@ffi.Native() +external void DisposeOSLCompareUPP(OSLCompareUPP userUPP); + +@ffi.Native() +external void DisposeOSLCountUPP(OSLCountUPP userUPP); + +@ffi.Native() +external void DisposeOSLDisposeTokenUPP(OSLDisposeTokenUPP userUPP); + +@ffi.Native() +external void DisposeOSLGetErrDescUPP(OSLGetErrDescUPP userUPP); + +@ffi.Native() +external void DisposeOSLGetMarkTokenUPP(OSLGetMarkTokenUPP userUPP); + +@ffi.Native() +external void DisposeOSLMarkUPP(OSLMarkUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposePtr(Ptr p); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeResErrUPP(ResErrUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeSelectorFunctionUPP(SelectorFunctionUPP userUPP); + +@Deprecated('No longer supported') +@ffi.Native() +external void DisposeSleepQUPP(SleepQUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int DisposeSpeechChannel(SpeechChannel chan); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechDoneUPP(SpeechDoneUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechErrorUPP(SpeechErrorUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechPhonemeUPP(SpeechPhonemeUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechSyncUPP(SpeechSyncUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechTextDoneUPP(SpeechTextDoneUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechWordUPP(SpeechWordUPP userUPP); + +@ffi.Native)>() +external int DisposeTextToUnicodeInfo( + ffi.Pointer ioTextToUnicodeInfo, +); + +@Deprecated('Deprecated') +@ffi.Native, Boolean)>() +external int DisposeThread( + int threadToDump, + ffi.Pointer threadResult, + int recycleThread, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeThreadEntryUPP(ThreadEntryUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeThreadSchedulerUPP(ThreadSchedulerUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeThreadSwitchUPP(ThreadSwitchUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeThreadTerminationUPP(ThreadTerminationUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeTimerUPP(TimerUPP userUPP); + +@ffi.Native() +external void DisposeUnicodeToTextFallbackUPP(UnicodeToTextFallbackUPP userUPP); + +@ffi.Native)>() +external int DisposeUnicodeToTextInfo( + ffi.Pointer ioUnicodeToTextInfo, +); + +@ffi.Native)>() +external int DisposeUnicodeToTextRunInfo( + ffi.Pointer ioUnicodeToTextRunInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime DurationToAbsolute(int duration); + +@Deprecated('Deprecated') +@ffi.Native() +external Nanoseconds DurationToNanoseconds(int theDuration); + +@Deprecated('Deprecated') +@ffi.Native() +external void EmptyCollection(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external void EmptyHandle(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external void Enqueue(QElemPtr qElement, QHdrPtr qHeader); + +@Deprecated('Deprecated') +@ffi.Native() +external void ExitToShell(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FNGetDirectoryForSubscription( + FNSubscriptionRef subscription, + ffi.Pointer ref, +); + +@Deprecated('Deprecated') +@ffi.Native, FNMessage, OptionBits)>() +external int FNNotify(ffi.Pointer ref, int message, int flags); + +@Deprecated('Deprecated') +@ffi.Native() +external int FNNotifyAll(int message, int flags); + +@Deprecated('Deprecated') +@ffi.Native, FNMessage, OptionBits)>() +external int FNNotifyByPath(ffi.Pointer path, int message, int flags); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + FNSubscriptionUPP, + ffi.Pointer, + OptionBits, + ffi.Pointer, + ) +>() +external int FNSubscribe( + ffi.Pointer directoryRef, + FNSubscriptionUPP callback, + ffi.Pointer refcon, + int flags, + ffi.Pointer subscription, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + FNSubscriptionUPP, + ffi.Pointer, + OptionBits, + ffi.Pointer, + ) +>() +external int FNSubscribeByPath( + ffi.Pointer directoryPath, + FNSubscriptionUPP callback, + ffi.Pointer refcon, + int flags, + ffi.Pointer subscription, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FNUnsubscribe(FNSubscriptionRef subscription); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIORefNum, + FSAllocationFlags, + UInt16, + SInt64, + UInt64, + ffi.Pointer, + ) +>() +external int FSAllocateFork( + int forkRefNum, + int flags, + int positionMode, + int positionOffset, + int requestCount, + ffi.Pointer actualCount, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSCancelVolumeOperation(FSVolumeOperation volumeOp); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIterator, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ffi.Pointer, + ) +>() +external int FSCatalogSearch( + FSIterator iterator, + ffi.Pointer searchCriteria, + int maximumObjects, + ffi.Pointer actualObjects, + ffi.Pointer containerChanged, + int whichInfo, + ffi.Pointer catalogInfos, + ffi.Pointer refs, + FSSpecPtr specs, + ffi.Pointer names, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSCloseFork(int forkRefNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSCloseIterator(FSIterator iterator); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Pointer)>() +external int FSCompareFSRefs(ffi.Pointer ref1, ffi.Pointer ref2); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + AliasHandle, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSCopyAliasInfo( + AliasHandle inAlias, + ffi.Pointer targetName, + ffi.Pointer volumeName, + ffi.Pointer pathString, + ffi.Pointer whichInfo, + ffi.Pointer info, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSCopyDADiskForVolume(int vRefNum, ffi.Pointer disk); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSCopyDiskIDForVolume( + int vRefNum, + ffi.Pointer diskID, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + ffi.Pointer, + CFStringRef, + OptionBits, + FSFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSCopyObjectAsync( + FSFileOperationRef fileOp, + ffi.Pointer source, + ffi.Pointer destDir, + CFStringRef destName, + int flags, + FSFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + ffi.Pointer, + OptionBits, + ) +>() +external int FSCopyObjectSync( + ffi.Pointer source, + ffi.Pointer destDir, + CFStringRef destName, + ffi.Pointer target, + int options, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSCopyURLForVolume(int vRefNum, ffi.Pointer url); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ffi.Pointer, + ) +>() +external int FSCreateDirectoryUnicode( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int whichInfo, + ffi.Pointer catalogInfo, + ffi.Pointer newRef, + FSSpecPtr newSpec, + ffi.Pointer newDirID, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + SInt8, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSCreateFileAndOpenForkUnicode( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int whichInfo, + ffi.Pointer catalogInfo, + int forkNameLength, + ffi.Pointer forkName, + int permissions, + ffi.Pointer forkRefNum, + ffi.Pointer newRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ) +>() +external int FSCreateFileUnicode( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int whichInfo, + ffi.Pointer catalogInfo, + ffi.Pointer newRef, + FSSpecPtr newSpec, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer) +>() +external int FSCreateFork( + ffi.Pointer ref, + int forkNameLength, + ffi.Pointer forkName, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ) +>() +external void FSCreateResFile( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int whichInfo, + ffi.Pointer catalogInfo, + ffi.Pointer newRef, + FSSpecPtr newSpec, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ) +>() +external int FSCreateResourceFile( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int whichInfo, + ffi.Pointer catalogInfo, + int forkNameLength, + ffi.Pointer forkName, + ffi.Pointer newRef, + FSSpecPtr newSpec, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer, UInt32) +>() +external int FSCreateResourceFork( + ffi.Pointer ref, + int forkNameLength, + ffi.Pointer forkName, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external CFStringRef FSCreateStringFromHFSUniStr( + CFAllocatorRef alloc, + ffi.Pointer uniStr, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSCreateVolumeOperation(ffi.Pointer volumeOp); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer) +>() +external int FSDeleteFork( + ffi.Pointer ref, + int forkNameLength, + ffi.Pointer forkName, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSDeleteObject(ffi.Pointer ref); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSVolumeRefNum, + OSType, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSDetermineIfRefIsEnclosedByFolder( + int domainOrVRefNum, + int folderType, + ffi.Pointer inRef, + ffi.Pointer outResult, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSDisposeVolumeOperation(FSVolumeOperation volumeOp); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeRefNum, + OptionBits, + FSVolumeOperation, + ffi.Pointer, + FSVolumeEjectUPP, + CFRunLoopRef, + CFStringRef, + ) +>() +external int FSEjectVolumeAsync( + int vRefNum, + int flags, + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + FSVolumeEjectUPP callback, + CFRunLoopRef runloop, + CFStringRef runloopMode, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSEjectVolumeSync( + int vRefNum, + int flags, + ffi.Pointer dissenter, +); + +@ffi.Native() +external CFStringRef FSEventStreamCopyDescription( + ConstFSEventStreamRef streamRef, +); + +@ffi.Native() +external CFArrayRef FSEventStreamCopyPathsBeingWatched( + ConstFSEventStreamRef streamRef, +); + +@ffi.Native< + FSEventStreamRef Function( + CFAllocatorRef, + FSEventStreamCallback, + ffi.Pointer, + CFArrayRef, + FSEventStreamEventId, + CFTimeInterval, + FSEventStreamCreateFlags, + ) +>() +external FSEventStreamRef FSEventStreamCreate( + CFAllocatorRef allocator, + FSEventStreamCallback callback, + ffi.Pointer context, + CFArrayRef pathsToWatch, + int sinceWhen, + double latency, + int flags, +); + +@ffi.Native< + FSEventStreamRef Function( + CFAllocatorRef, + FSEventStreamCallback, + ffi.Pointer, + dev_t, + CFArrayRef, + FSEventStreamEventId, + CFTimeInterval, + FSEventStreamCreateFlags, + ) +>() +external FSEventStreamRef FSEventStreamCreateRelativeToDevice( + CFAllocatorRef allocator, + FSEventStreamCallback callback, + ffi.Pointer context, + int deviceToWatch, + CFArrayRef pathsToWatchRelativeToDevice, + int sinceWhen, + double latency, + int flags, +); + +@ffi.Native() +external int FSEventStreamFlushAsync(FSEventStreamRef streamRef); + +@ffi.Native() +external void FSEventStreamFlushSync(FSEventStreamRef streamRef); + +@ffi.Native() +external int FSEventStreamGetDeviceBeingWatched( + ConstFSEventStreamRef streamRef, +); + +@ffi.Native() +external int FSEventStreamGetLatestEventId(ConstFSEventStreamRef streamRef); + +@ffi.Native() +external void FSEventStreamInvalidate(FSEventStreamRef streamRef); + +@ffi.Native() +external void FSEventStreamRelease(FSEventStreamRef streamRef); + +@ffi.Native() +external void FSEventStreamRetain(FSEventStreamRef streamRef); + +@Deprecated('Use FSEventStreamSetDispatchQueue instead.') +@ffi.Native() +external void FSEventStreamScheduleWithRunLoop( + FSEventStreamRef streamRef, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native( + symbol: 'FSEventStreamSetDispatchQueue', +) +external void _FSEventStreamSetDispatchQueue( + FSEventStreamRef streamRef, + dispatch_queue_t q, +); + +void FSEventStreamSetDispatchQueue( + FSEventStreamRef streamRef, + Dartdispatch_queue_t? q, +) { + final _$$ref = q?.ref; + return _FSEventStreamSetDispatchQueue( + streamRef, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native() +external int FSEventStreamSetExclusionPaths( + FSEventStreamRef streamRef, + CFArrayRef pathsToExclude, +); + +@ffi.Native() +external void FSEventStreamShow(ConstFSEventStreamRef streamRef); + +@ffi.Native() +external int FSEventStreamStart(FSEventStreamRef streamRef); + +@ffi.Native() +external void FSEventStreamStop(FSEventStreamRef streamRef); + +@Deprecated('Use FSEventStreamSetDispatchQueue instead.') +@ffi.Native() +external void FSEventStreamUnscheduleFromRunLoop( + FSEventStreamRef streamRef, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native() +external CFUUIDRef FSEventsCopyUUIDForDevice(int dev); + +@ffi.Native() +external int FSEventsGetCurrentEventId(); + +@ffi.Native() +external int FSEventsGetLastEventIdForDeviceBeforeTime(int dev, double time$1); + +@ffi.Native() +external int FSEventsPurgeEventsForDeviceUpToEventId(int dev, int eventId); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Pointer)>() +external int FSExchangeObjects( + ffi.Pointer ref, + ffi.Pointer destRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileOperationCancel(FSFileOperationRef fileOp); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int FSFileOperationCopyStatus( + FSFileOperationRef fileOp, + ffi.Pointer currentItem, + ffi.Pointer stage, + ffi.Pointer error, + ffi.Pointer statusDictionary, + ffi.Pointer> info, +); + +@Deprecated('Deprecated') +@ffi.Native() +external FSFileOperationRef FSFileOperationCreate(CFAllocatorRef alloc); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileOperationGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileOperationScheduleWithRunLoop( + FSFileOperationRef fileOp, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileOperationUnscheduleFromRunLoop( + FSFileOperationRef fileOp, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityCopyAccessControlList( + FSFileSecurityRef fileSec, + ffi.Pointer accessControlList, +); + +@Deprecated('Deprecated') +@ffi.Native() +external FSFileSecurityRef FSFileSecurityCreate(CFAllocatorRef alloc); + +@Deprecated('Deprecated') +@ffi.Native< + FSFileSecurityRef Function(CFAllocatorRef, ffi.Pointer) +>() +external FSFileSecurityRef FSFileSecurityCreateWithFSPermissionInfo( + CFAllocatorRef alloc, + ffi.Pointer permissions, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityGetGroup( + FSFileSecurityRef fileSec, + ffi.Pointer group, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityGetGroupUUID( + FSFileSecurityRef fileSec, + ffi.Pointer group, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityGetMode( + FSFileSecurityRef fileSec, + ffi.Pointer mode, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityGetOwner( + FSFileSecurityRef fileSec, + ffi.Pointer owner, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityGetOwnerUUID( + FSFileSecurityRef fileSec, + ffi.Pointer owner, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileSecurityGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native() +external FSFileSecurityRef FSFileSecurityRefCreateCopy( + CFAllocatorRef alloc, + FSFileSecurityRef fileSec, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileSecuritySetAccessControlList( + FSFileSecurityRef fileSec, + acl_t accessControlList, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileSecuritySetGroup(FSFileSecurityRef fileSec, int group); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecuritySetGroupUUID( + FSFileSecurityRef fileSec, + ffi.Pointer group, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileSecuritySetMode(FSFileSecurityRef fileSec, int mode); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileSecuritySetOwner(FSFileSecurityRef fileSec, int owner); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecuritySetOwnerUUID( + FSFileSecurityRef fileSec, + ffi.Pointer owner, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(FSVolumeRefNum, OSType, Boolean, ffi.Pointer) +>() +external int FSFindFolder( + int vRefNum, + int folderType, + int createFolder, + ffi.Pointer foundRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFlushFork(int forkRefNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFlushVolume(int vRefNum); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + AliasHandle, + Boolean, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSFollowFinderAlias( + ffi.Pointer fromFile, + AliasHandle alias, + int logon, + ffi.Pointer target, + ffi.Pointer wasChanged, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeOperation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int FSGetAsyncEjectStatus( + FSVolumeOperation volumeOp, + ffi.Pointer status, + ffi.Pointer volumeOpStatus, + ffi.Pointer volumeRefNum, + ffi.Pointer dissenter, + ffi.Pointer> clientData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeOperation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int FSGetAsyncMountStatus( + FSVolumeOperation volumeOp, + ffi.Pointer status, + ffi.Pointer volumeOpStatus, + ffi.Pointer mountedVolumeRefNum, + ffi.Pointer> clientData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeOperation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int FSGetAsyncUnmountStatus( + FSVolumeOperation volumeOp, + ffi.Pointer status, + ffi.Pointer volumeOpStatus, + ffi.Pointer volumeRefNum, + ffi.Pointer dissenter, + ffi.Pointer> clientData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ffi.Pointer, + ) +>() +external int FSGetCatalogInfo( + ffi.Pointer ref, + int whichInfo, + ffi.Pointer catalogInfo, + ffi.Pointer outName, + FSSpecPtr fsSpec, + ffi.Pointer parentRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIterator, + ItemCount, + ffi.Pointer, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ffi.Pointer, + ) +>() +external int FSGetCatalogInfoBulk( + FSIterator iterator, + int maximumObjects, + ffi.Pointer actualObjects, + ffi.Pointer containerChanged, + int whichInfo, + ffi.Pointer catalogInfos, + ffi.Pointer refs, + FSSpecPtr specs, + ffi.Pointer names, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetDataForkName(ffi.Pointer dataForkName); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIORefNum, + FSVolumeRefNum, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSGetForkCBInfo( + int desiredRefNum, + int volume, + ffi.Pointer iterator, + ffi.Pointer actualRefNum, + ffi.Pointer forkInfo, + ffi.Pointer ref, + ffi.Pointer outForkName, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetForkPosition(int forkRefNum, ffi.Pointer position); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetForkSize(int forkRefNum, ffi.Pointer forkSize); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetHFSUniStrFromString( + CFStringRef theString, + ffi.Pointer uniStr, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetResourceForkName(ffi.Pointer resourceForkName); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer, OptionBits) +>() +external int FSGetTemporaryDirectoryForReplaceObject( + ffi.Pointer originalObject, + ffi.Pointer temporaryDirectory, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetVolumeForDADisk( + DADiskRef disk, + ffi.Pointer vRefNum, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetVolumeForDiskID( + CFStringRef diskID, + ffi.Pointer vRefNum, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSVolumeRefNum, + ItemCount, + ffi.Pointer, + FSVolumeInfoBitmap, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSGetVolumeInfo( + int volume, + int volumeIndex, + ffi.Pointer actualVolume, + int whichInfo, + ffi.Pointer info, + ffi.Pointer volumeName, + ffi.Pointer rootDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(FSVolumeRefNum, BytePtr, ByteCount, ffi.Pointer) +>() +external int FSGetVolumeMountInfo( + int volume, + BytePtr buffer, + int bufferSize, + ffi.Pointer actualSize, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetVolumeMountInfoSize(int volume, ffi.Pointer size); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeRefNum, + ffi.Pointer, + ByteCount, + ) +>() +external int FSGetVolumeParms( + int volume, + ffi.Pointer buffer, + int bufferSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Pointer) +>() +external int FSIsAliasFile( + ffi.Pointer fileRef, + ffi.Pointer aliasFileFlag, + ffi.Pointer folderFlag, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSIsFSRefValid(ffi.Pointer ref); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSIterateForks( + ffi.Pointer ref, + ffi.Pointer forkIterator, + ffi.Pointer forkName, + ffi.Pointer forkSize, + ffi.Pointer forkPhysicalSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(FSIORefNum, UInt16, SInt64, UInt64, ffi.Pointer) +>() +external int FSLockRange( + int forkRefNum, + int positionMode, + int positionOffset, + int requestCount, + ffi.Pointer rangeStart, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + TextEncoding, + ffi.Pointer, + ) +>() +external int FSMakeFSRefUnicode( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int textEncodingHint, + ffi.Pointer newRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.UnsignedLong, + AliasHandle, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + FSAliasFilterProcPtr, + ffi.Pointer, + ) +>() +external int FSMatchAliasBulk( + ffi.Pointer fromFile, + int rulesMask, + AliasHandle inAlias, + ffi.Pointer aliasCount, + ffi.Pointer aliasList, + ffi.Pointer needsUpdate, + FSAliasFilterProcPtr aliasFilter, + ffi.Pointer yourDataPtr, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFStringRef, + CFURLRef, + FSVolumeOperation, + ffi.Pointer, + OptionBits, + FSVolumeMountUPP, + CFRunLoopRef, + CFStringRef, + ) +>() +external int FSMountLocalVolumeAsync( + CFStringRef diskID, + CFURLRef mountDir, + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + int flags, + FSVolumeMountUPP callback, + CFRunLoopRef runloop, + CFStringRef runloopMode, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFStringRef, + CFURLRef, + ffi.Pointer, + OptionBits, + ) +>() +external int FSMountLocalVolumeSync( + CFStringRef diskID, + CFURLRef mountDir, + ffi.Pointer mountedVolumeRefNum, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + FSVolumeOperation, + ffi.Pointer, + OptionBits, + FSVolumeMountUPP, + CFRunLoopRef, + CFStringRef, + ) +>() +external int FSMountServerVolumeAsync( + CFURLRef url, + CFURLRef mountDir, + CFStringRef user, + CFStringRef password, + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + int flags, + FSVolumeMountUPP callback, + CFRunLoopRef runloop, + CFStringRef runloopMode, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + OptionBits, + ) +>() +external int FSMountServerVolumeSync( + CFURLRef url, + CFURLRef mountDir, + CFStringRef user, + CFStringRef password, + ffi.Pointer mountedVolumeRefNum, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Pointer) +>() +external int FSMoveObject( + ffi.Pointer ref, + ffi.Pointer destDirectory, + ffi.Pointer newRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + ffi.Pointer, + CFStringRef, + OptionBits, + FSFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSMoveObjectAsync( + FSFileOperationRef fileOp, + ffi.Pointer source, + ffi.Pointer destDir, + CFStringRef destName, + int flags, + FSFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + ffi.Pointer, + OptionBits, + ) +>() +external int FSMoveObjectSync( + ffi.Pointer source, + ffi.Pointer destDir, + CFStringRef destName, + ffi.Pointer target, + int options, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + OptionBits, + FSFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSMoveObjectToTrashAsync( + FSFileOperationRef fileOp, + ffi.Pointer source, + int flags, + FSFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer, OptionBits) +>() +external int FSMoveObjectToTrashSync( + ffi.Pointer source, + ffi.Pointer target, + int options, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSNewAlias( + ffi.Pointer fromFile, + ffi.Pointer target, + ffi.Pointer inAlias, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSNewAliasFromPath( + ffi.Pointer fromFilePath, + ffi.Pointer targetPath, + int flags, + ffi.Pointer inAlias, + ffi.Pointer isDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Pointer)>() +external int FSNewAliasMinimal( + ffi.Pointer target, + ffi.Pointer inAlias, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSNewAliasMinimalUnicode( + ffi.Pointer targetParentRef, + int targetNameLength, + ffi.Pointer targetName, + ffi.Pointer inAlias, + ffi.Pointer isDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSNewAliasUnicode( + ffi.Pointer fromFile, + ffi.Pointer targetParentRef, + int targetNameLength, + ffi.Pointer targetName, + ffi.Pointer inAlias, + ffi.Pointer isDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + SInt8, + ffi.Pointer, + ) +>() +external int FSOpenFork( + ffi.Pointer ref, + int forkNameLength, + ffi.Pointer forkName, + int permissions, + ffi.Pointer forkRefNum, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, FSIteratorFlags, ffi.Pointer) +>() +external int FSOpenIterator( + ffi.Pointer container, + int iteratorFlags, + ffi.Pointer iterator, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, SignedByte, ffi.Pointer) +>() +external int FSOpenOrphanResFile( + ffi.Pointer ref, + int permission, + ffi.Pointer refNum, +); + +@Deprecated('Deprecated') +@ffi.Native, SInt8)>() +external int FSOpenResFile(ffi.Pointer ref, int permission); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + SInt8, + ffi.Pointer, + ) +>() +external int FSOpenResourceFile( + ffi.Pointer ref, + int forkNameLength, + ffi.Pointer forkName, + int permissions, + ffi.Pointer refNum, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + ffi.Pointer, + CFStringRef, + OptionBits, + FSPathFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSPathCopyObjectAsync( + FSFileOperationRef fileOp, + ffi.Pointer sourcePath, + ffi.Pointer destDirPath, + CFStringRef destName, + int flags, + FSPathFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + ffi.Pointer>, + OptionBits, + ) +>() +external int FSPathCopyObjectSync( + ffi.Pointer sourcePath, + ffi.Pointer destDirPath, + CFStringRef destName, + ffi.Pointer> targetPath, + int options, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int FSPathFileOperationCopyStatus( + FSFileOperationRef fileOp, + ffi.Pointer> currentItem, + ffi.Pointer stage, + ffi.Pointer error, + ffi.Pointer statusDictionary, + ffi.Pointer> info, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + UInt32, + OptionBits, + ) +>() +external int FSPathGetTemporaryDirectoryForReplaceObject( + ffi.Pointer originalObjectPath, + ffi.Pointer temporaryDirectoryPath, + int maxPathSize, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSPathMakeRef( + ffi.Pointer path, + ffi.Pointer ref, + ffi.Pointer isDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSPathMakeRefWithOptions( + ffi.Pointer path, + int options, + ffi.Pointer ref, + ffi.Pointer isDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + ffi.Pointer, + CFStringRef, + OptionBits, + FSPathFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSPathMoveObjectAsync( + FSFileOperationRef fileOp, + ffi.Pointer sourcePath, + ffi.Pointer destDirPath, + CFStringRef destName, + int flags, + FSPathFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + ffi.Pointer>, + OptionBits, + ) +>() +external int FSPathMoveObjectSync( + ffi.Pointer sourcePath, + ffi.Pointer destDirPath, + CFStringRef destName, + ffi.Pointer> targetPath, + int options, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + OptionBits, + FSPathFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSPathMoveObjectToTrashAsync( + FSFileOperationRef fileOp, + ffi.Pointer sourcePath, + int flags, + FSPathFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer>, + OptionBits, + ) +>() +external int FSPathMoveObjectToTrashSync( + ffi.Pointer sourcePath, + ffi.Pointer> targetPath, + int options, +); + +@Deprecated( + 'Use NSFileManager\'s -replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: instead. WARNING: FSPathReplaceObject does not work correctly in sandboxed apps.', +) +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + CFStringRef, + ffi.Pointer, + OptionBits, + ) +>() +external int FSPathReplaceObject( + ffi.Pointer originalObjectPath, + ffi.Pointer replacementObjectPath, + CFStringRef newName, + CFStringRef temporaryName, + ffi.Pointer temporaryDirectoryPath, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIORefNum, + UInt16, + SInt64, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSReadFork( + int forkRefNum, + int positionMode, + int positionOffset, + int requestCount, + ffi.Pointer buffer, + ffi.Pointer actualCount, +); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Pointer, UInt32)>() +external int FSRefMakePath( + ffi.Pointer ref, + ffi.Pointer path, + int pathBufferSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + TextEncoding, + ffi.Pointer, + ) +>() +external int FSRenameUnicode( + ffi.Pointer ref, + int nameLength, + ffi.Pointer name, + int textEncodingHint, + ffi.Pointer newRef, +); + +@Deprecated( + 'Use NSFileManager\'s -replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: instead. WARNING: FSReplaceObject does not work correctly in sandboxed apps.', +) +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + CFStringRef, + ffi.Pointer, + OptionBits, + ffi.Pointer, + ) +>() +external int FSReplaceObject( + ffi.Pointer originalObject, + ffi.Pointer replacementObject, + CFStringRef newName, + CFStringRef temporaryName, + ffi.Pointer temporaryDirectory, + int flags, + ffi.Pointer resultObject, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + AliasHandle, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSResolveAlias( + ffi.Pointer fromFile, + AliasHandle alias, + ffi.Pointer target, + ffi.Pointer wasChanged, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + Boolean, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSResolveAliasFile( + ffi.Pointer theRef, + int resolveAliasChains, + ffi.Pointer targetIsFolder, + ffi.Pointer wasAliased, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + Boolean, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +>() +external int FSResolveAliasFileWithMountFlags( + ffi.Pointer theRef, + int resolveAliasChains, + ffi.Pointer targetIsFolder, + ffi.Pointer wasAliased, + int mountFlags, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + AliasHandle, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +>() +external int FSResolveAliasWithMountFlags( + ffi.Pointer fromFile, + AliasHandle inAlias, + ffi.Pointer target, + ffi.Pointer wasChanged, + int mountFlags, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSResolveNodeID(int volume, int nodeID, FSRefPtr newRef); + +@Deprecated('Deprecated') +@ffi.Native< + Boolean Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSResourceFileAlreadyOpen( + ffi.Pointer resourceFileRef, + ffi.Pointer inChain, + ffi.Pointer refNum, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ) +>() +external int FSSetCatalogInfo( + ffi.Pointer ref, + int whichInfo, + ffi.Pointer catalogInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSSetForkPosition( + int forkRefNum, + int positionMode, + int positionOffset, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSSetForkSize( + int forkRefNum, + int positionMode, + int positionOffset, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(FSVolumeRefNum, FSVolumeInfoBitmap, ffi.Pointer) +>() +external int FSSetVolumeInfo( + int volume, + int whichInfo, + ffi.Pointer info, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSUnlinkObject(ffi.Pointer ref); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(FSIORefNum, UInt16, SInt64, UInt64, ffi.Pointer) +>() +external int FSUnlockRange( + int forkRefNum, + int positionMode, + int positionOffset, + int requestCount, + ffi.Pointer rangeStart, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeRefNum, + OptionBits, + FSVolumeOperation, + ffi.Pointer, + FSVolumeUnmountUPP, + CFRunLoopRef, + CFStringRef, + ) +>() +external int FSUnmountVolumeAsync( + int vRefNum, + int flags, + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + FSVolumeUnmountUPP callback, + CFRunLoopRef runloop, + CFStringRef runloopMode, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSUnmountVolumeSync( + int vRefNum, + int flags, + ffi.Pointer dissenter, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + AliasHandle, + ffi.Pointer, + ) +>() +external int FSUpdateAlias( + ffi.Pointer fromFile, + ffi.Pointer target, + AliasHandle alias, + ffi.Pointer wasChanged, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSVolumeMount( + BytePtr buffer, + ffi.Pointer mountedVolume, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIORefNum, + UInt16, + SInt64, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSWriteFork( + int forkRefNum, + int positionMode, + int positionOffset, + int requestCount, + ffi.Pointer buffer, + ffi.Pointer actualCount, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSVolumeRefNum, + OSType, + Boolean, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FindFolder( + int vRefNum, + int folderType, + int createFolder, + ffi.Pointer foundVRefNum, + ffi.Pointer foundDirID, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external Component FindNextComponent( + Component aComponent, + ffi.Pointer looking, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int Fix2Frac(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external int Fix2Long(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external double Fix2X(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external int FixATan2(int x, int y); + +@Deprecated('Deprecated') +@ffi.Native() +external int FixDiv(int x, int y); + +@Deprecated('Deprecated') +@ffi.Native() +external int FixMul(int a, int b); + +@Deprecated('Deprecated') +@ffi.Native() +external int FixRatio(int numer, int denom); + +@Deprecated('Deprecated') +@ffi.Native() +external int FixRound(int x); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(Collection, CollectionFlattenUPP, ffi.Pointer) +>() +external int FlattenCollection( + Collection c, + CollectionFlattenUPP flattenProc, + ffi.Pointer refCon, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FlattenCollectionToHdl(Collection aCollection, Handle flattened); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionFlattenUPP, + ffi.Pointer, + SInt32, + SInt32, + ) +>() +external int FlattenPartialCollection( + Collection c, + CollectionFlattenUPP flattenProc, + ffi.Pointer refCon, + int whichAttributes, + int matchingAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int Frac2Fix(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external double Frac2X(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external int FracCos(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external int FracDiv(int x, int y); + +@Deprecated('Deprecated') +@ffi.Native() +external int FracMul(int x, int y); + +@Deprecated('Deprecated') +@ffi.Native() +external int FracSin(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external int FracSqrt(int x); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int Gestalt(int selector, ffi.Pointer response); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle Get1IndResource(int theType, int itemIndex); + +@Deprecated('Deprecated') +@ffi.Native, ResourceIndex)>() +external void Get1IndType(ffi.Pointer theType, int itemIndex); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle Get1NamedResource(int theType, ConstStr255Param name); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle Get1Resource(int theType, int theID); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetAliasSize(AliasHandle alias); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetAliasSizeFromPtr(ffi.Pointer alias); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetAliasUserType(AliasHandle alias); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetAliasUserTypeFromPtr(ffi.Pointer alias); + +@Deprecated('No longer supported') +@ffi.Native() +external int GetCPUSpeed(); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetCollectionDefaultAttributes(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external CollectionExceptionUPP GetCollectionExceptionProc(Collection c); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionTag, + SInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetCollectionItem( + Collection c, + int tag, + int id, + ffi.Pointer itemSize, + ffi.Pointer itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetCollectionItemHdl( + Collection aCollection, + int tag, + int id, + Handle itemData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionTag, + SInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetCollectionItemInfo( + Collection c, + int tag, + int id, + ffi.Pointer itemIndex, + ffi.Pointer itemSize, + ffi.Pointer attributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetCollectionRetainCount(Collection c); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(Component, ffi.Pointer, SInt16, SInt16) +>() +external int GetComponentIndString( + Component aComponent, + ffi.Pointer theString, + int strListID, + int index$1, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Component, + ffi.Pointer, + Handle, + Handle, + Handle, + ) +>() +external int GetComponentInfo( + Component aComponent, + ffi.Pointer cd, + Handle componentName, + Handle componentInfo, + Handle componentIcon, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetComponentInstanceError(ComponentInstance aComponentInstance); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle GetComponentInstanceStorage( + ComponentInstance aComponentInstance, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetComponentListModSeed(); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(Component, ffi.Pointer, SInt16, SInt16) +>() +external int GetComponentPublicIndString( + Component aComponent, + ffi.Pointer theString, + int strListID, + int index$1, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetComponentPublicResource( + Component aComponent, + int resourceType, + int resourceID, + ffi.Pointer theResource, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + OSType, + SInt16, + SInt32, + ffi.Pointer, + GetMissingComponentResourceUPP, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetComponentPublicResourceList( + int resourceType, + int resourceID, + int flags, + ffi.Pointer cd, + GetMissingComponentResourceUPP missingProc, + ffi.Pointer refCon, + ffi.Pointer atomContainerPtr, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetComponentRefcon(Component aComponent); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetComponentResource( + Component aComponent, + int resType, + int resID, + ffi.Pointer theResource, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetComponentTypeModSeed(int componentType); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetCurrentProcess(ffi.Pointer pPSN); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetCurrentThread(ffi.Pointer currentThreadID); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native)>() +external int GetCustomIconsEnabled( + int vRefNum, + ffi.Pointer customIconsEnabled, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(UInt32, ffi.Pointer, ffi.Pointer) +>() +external int GetDebugComponentInfo( + int itemIndex, + ffi.Pointer componentSignature, + ffi.Pointer componentName, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + UInt32, + OSType, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetDebugOptionInfo( + int itemIndex, + int componentSignature, + ffi.Pointer optionSelectorNum, + ffi.Pointer optionName, + ffi.Pointer optionSetting, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetDefaultThreadStackSize( + int threadStyle, + ffi.Pointer stackSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeRefNum, + OSType, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetFolderNameUnicode( + int vRefNum, + int foldType, + ffi.Pointer foundVRefNum, + ffi.Pointer name, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(UInt32, ffi.Pointer, ffi.Pointer) +>() +external int GetFolderTypes( + int requestedTypeCount, + ffi.Pointer totalTypeCount, + ffi.Pointer theTypes, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetFrontProcess(ffi.Pointer pPSN); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetHandleSize(Handle h); + +@ffi.Native() +external int GetIconFamilyData( + IconFamilyHandle iconFamily, + int iconType, + Handle h, +); + +@Deprecated('Use -[NSWorkspace iconForFile:] instead.') +@ffi.Native)>() +external int GetIconRef( + int vRefNum, + int creator, + int iconType, + ffi.Pointer theIconRef, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native)>() +external int GetIconRefFromComponent( + Component inComponent, + ffi.Pointer outIconRef, +); + +@Deprecated('Use -[NSWorkspace iconForFile:] instead.') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + IconServicesUsageFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetIconRefFromFileInfo( + ffi.Pointer inRef, + int inFileNameLength, + ffi.Pointer inFileName, + int inWhichInfo, + ffi.Pointer inCatalogInfo, + int inUsageFlags, + ffi.Pointer outIconRef, + ffi.Pointer outLabel, +); + +@Deprecated('Use -[NSWorkspace iconForFile:] instead.') +@ffi.Native< + OSErr Function(SInt16, SInt32, SInt32, SInt8, SInt8, ffi.Pointer) +>() +external int GetIconRefFromFolder( + int vRefNum, + int parentFolderID, + int folderID, + int attributes, + int accessPrivileges, + ffi.Pointer theIconRef, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native< + OSStatus Function(ffi.Pointer, Size, ffi.Pointer) +>() +external int GetIconRefFromIconFamilyPtr( + ffi.Pointer inIconFamilyPtr, + int inSize, + ffi.Pointer outIconRef, +); + +@Deprecated('Use -[NSWorkspace iconForFileType:] instead.') +@ffi.Native< + OSErr Function( + OSType, + OSType, + CFStringRef, + CFStringRef, + IconServicesUsageFlags, + ffi.Pointer, + ) +>() +external int GetIconRefFromTypeInfo( + int inCreator, + int inType, + CFStringRef inExtension, + CFStringRef inMIMEType, + int inUsageFlags, + ffi.Pointer outIconRef, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native)>() +external int GetIconRefOwners(IconRef theIconRef, ffi.Pointer owners); + +@ffi.Native)>() +external IconRef GetIconRefVariant( + IconRef inIconRef, + int inVariant, + ffi.Pointer outTransform, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle GetIndResource(int theType, int itemIndex); + +@Deprecated('Deprecated') +@ffi.Native, ResourceIndex)>() +external void GetIndType(ffi.Pointer theType, int itemIndex); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int GetIndVoice(int index$1, ffi.Pointer voice); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(Collection, SInt32, ffi.Pointer, ffi.Pointer) +>() +external int GetIndexedCollectionItem( + Collection c, + int itemIndex, + ffi.Pointer itemSize, + ffi.Pointer itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetIndexedCollectionItemHdl( + Collection aCollection, + int itemIndex, + Handle itemData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + SInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetIndexedCollectionItemInfo( + Collection c, + int itemIndex, + ffi.Pointer tag, + ffi.Pointer id, + ffi.Pointer itemSize, + ffi.Pointer attributes, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetIndexedCollectionTag( + Collection c, + int tagIndex, + ffi.Pointer tag, +); + +@ffi.Native Function(OSStatus)>() +external ffi.Pointer GetMacOSStatusCommentString(int err); + +@ffi.Native Function(OSStatus)>() +external ffi.Pointer GetMacOSStatusErrorString(int err); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetMaxResourceSize(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle GetNamedResource(int theType, ConstStr255Param name); + +@Deprecated('Deprecated') +@ffi.Native() +external Collection GetNewCollection(int collectionID); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle GetNextFOND(Handle fondHandle); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetNextProcess(ffi.Pointer pPSN); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetNextResourceFile( + int curRefNum, + ffi.Pointer nextRefNum, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int GetProcessBundleLocation( + ffi.Pointer psn, + ffi.Pointer location, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetProcessForPID(int pid, ffi.Pointer psn); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer) +>() +external int GetProcessInformation( + ffi.Pointer PSN, + ffi.Pointer info, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int GetProcessPID( + ffi.Pointer psn, + ffi.Pointer pid, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetPtrSize(Ptr p); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetResAttrs(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetResFileAttrs(int refNum); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + Handle, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void GetResInfo( + Handle theResource, + ffi.Pointer theID, + ffi.Pointer theType, + ffi.Pointer name, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle GetResource(int theType, int theID); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetResourceSizeOnDisk(Handle theResource); + +@ffi.Native< + OSStatus Function( + TextEncoding, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetScriptInfoFromTextEncoding( + int iEncoding, + ffi.Pointer oTextScriptID, + ffi.Pointer oTextLanguageID, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetScriptManagerVariable(int selector); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int GetSpeechInfo( + SpeechChannel chan, + int selector, + ffi.Pointer speechInfo, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int GetSpeechPitch(SpeechChannel chan, ffi.Pointer pitch); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int GetSpeechRate(SpeechChannel chan, ffi.Pointer rate); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionTag, + SInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetTaggedCollectionItem( + Collection c, + int tag, + int whichItem, + ffi.Pointer itemSize, + ffi.Pointer itemData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionTag, + SInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetTaggedCollectionItemInfo( + Collection c, + int tag, + int whichItem, + ffi.Pointer id, + ffi.Pointer itemIndex, + ffi.Pointer itemSize, + ffi.Pointer attributes, +); + +@ffi.Native() +external int GetTextEncodingBase(int encoding); + +@ffi.Native() +external int GetTextEncodingFormat(int encoding); + +@ffi.Native< + OSStatus Function(ScriptCode, LangCode, RegionCode, ffi.Pointer) +>() +external int GetTextEncodingFromScriptInfo( + int iTextScriptID, + int iTextLanguageID, + int iTextRegionID, + ffi.Pointer oEncoding, +); + +@ffi.Native< + OSStatus Function( + TextEncoding, + TextEncodingNameSelector, + RegionCode, + TextEncoding, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + TextPtr, + ) +>() +external int GetTextEncodingName( + int iEncoding, + int iNamePartSelector, + int iPreferredRegion, + int iPreferredEncoding, + int iOutputBufLen, + ffi.Pointer oNameLength, + ffi.Pointer oActualRegion, + ffi.Pointer oActualEncoding, + TextPtr oEncodingName, +); + +@ffi.Native() +external int GetTextEncodingVariant(int encoding); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetThreadCurrentTaskRef(ffi.Pointer threadTRef); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetThreadState( + int threadToGet, + ffi.Pointer threadState, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetThreadStateGivenTaskRef( + ThreadTaskRef threadTRef, + int threadToGet, + ffi.Pointer threadState, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetTopResourceFile(ffi.Pointer refNum); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) +>() +external int GetVoiceDescription( + ffi.Pointer voice, + ffi.Pointer info, + int infoLength, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(ffi.Pointer, OSType, ffi.Pointer) +>() +external int GetVoiceInfo( + ffi.Pointer voice, + int selector, + ffi.Pointer voiceInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void HClrRBit(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external int HGetState(Handle h); + +@ffi.Native)>() +external int HIShapeContainsPoint( + HIShapeRef inShape, + ffi.Pointer inPoint, +); + +@ffi.Native() +external HIShapeRef HIShapeCreateCopy(HIShapeRef inShape); + +@ffi.Native() +external HIShapeRef HIShapeCreateDifference( + HIShapeRef inShape1, + HIShapeRef inShape2, +); + +@ffi.Native() +external HIShapeRef HIShapeCreateEmpty(); + +@ffi.Native() +external HIShapeRef HIShapeCreateIntersection( + HIShapeRef inShape1, + HIShapeRef inShape2, +); + +@ffi.Native() +external HIMutableShapeRef HIShapeCreateMutable(); + +@ffi.Native() +external HIMutableShapeRef HIShapeCreateMutableCopy(HIShapeRef inOrig); + +@ffi.Native)>() +external HIMutableShapeRef HIShapeCreateMutableWithRect( + ffi.Pointer inRect, +); + +@ffi.Native() +external HIShapeRef HIShapeCreateUnion( + HIShapeRef inShape1, + HIShapeRef inShape2, +); + +@ffi.Native() +external HIShapeRef HIShapeCreateWithQDRgn(RgnHandle inRgn); + +@ffi.Native)>() +external HIShapeRef HIShapeCreateWithRect(ffi.Pointer inRect); + +@ffi.Native() +external HIShapeRef HIShapeCreateXor(HIShapeRef inShape1, HIShapeRef inShape2); + +@ffi.Native() +external int HIShapeDifference( + HIShapeRef inShape1, + HIShapeRef inShape2, + HIMutableShapeRef outResult, +); + +@ffi.Native< + OSStatus Function( + HIShapeRef, + OptionBits, + HIShapeEnumerateProcPtr, + ffi.Pointer, + ) +>() +external int HIShapeEnumerate( + HIShapeRef inShape, + int inOptions, + HIShapeEnumerateProcPtr inProc, + ffi.Pointer inRefcon, +); + +@ffi.Native() +external int HIShapeGetAsQDRgn(HIShapeRef inShape, RgnHandle outRgn); + +@ffi.Native< + ffi.Pointer Function(HIShapeRef, ffi.Pointer) +>() +external ffi.Pointer HIShapeGetBounds( + HIShapeRef inShape, + ffi.Pointer outRect, +); + +@ffi.Native() +external int HIShapeGetTypeID(); + +@ffi.Native() +external int HIShapeInset(HIMutableShapeRef inShape, double inDX, double inDY); + +@ffi.Native() +external int HIShapeIntersect( + HIShapeRef inShape1, + HIShapeRef inShape2, + HIMutableShapeRef outResult, +); + +@ffi.Native)>() +external int HIShapeIntersectsRect( + HIShapeRef inShape, + ffi.Pointer inRect, +); + +@ffi.Native() +external int HIShapeIsEmpty(HIShapeRef inShape); + +@ffi.Native() +external int HIShapeIsRectangular(HIShapeRef inShape); + +@ffi.Native() +external int HIShapeOffset(HIMutableShapeRef inShape, double inDX, double inDY); + +@ffi.Native() +external int HIShapeReplacePathInCGContext( + HIShapeRef inShape, + CGContextRef inContext, +); + +@ffi.Native() +external int HIShapeSetEmpty(HIMutableShapeRef inShape); + +@ffi.Native() +external int HIShapeSetWithShape( + HIMutableShapeRef inDestShape, + HIShapeRef inSrcShape, +); + +@ffi.Native() +external int HIShapeUnion( + HIShapeRef inShape1, + HIShapeRef inShape2, + HIMutableShapeRef outResult, +); + +@ffi.Native)>() +external int HIShapeUnionWithRect( + HIMutableShapeRef inShape, + ffi.Pointer inRect, +); + +@ffi.Native() +external int HIShapeXor( + HIShapeRef inShape1, + HIShapeRef inShape2, + HIMutableShapeRef outResult, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void HLock(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external void HLockHi(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external void HSetRBit(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external void HSetState(Handle h, int flags); + +@Deprecated('Deprecated') +@ffi.Native() +external void HUnlock(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external int HandAndHand(Handle hand1, Handle hand2); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int HandToHand(ffi.Pointer theHndl); + +@Deprecated('Deprecated') +@ffi.Native() +external int HomeResFile(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICAddMapEntry( + ICInstance inst, + Handle entries, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, ICProfileID, ffi.Pointer) +>() +external int ICAddProfile( + ICInstance inst, + int prototypeID, + ffi.Pointer newID, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICBegin(ICInstance inst, int perm); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICCountMapEntries( + ICInstance inst, + Handle entries, + ffi.Pointer count, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICCountPref(ICInstance inst, ffi.Pointer count); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICCountProfiles(ICInstance inst, ffi.Pointer count); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, OSType, Handle, ffi.Pointer) +>() +external int ICCreateGURLEvent( + ICInstance inst, + int helperCreator, + Handle urlH, + ffi.Pointer theEvent, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICDeleteMapEntry(ICInstance inst, Handle entries, int pos); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICDeletePref(ICInstance inst, ConstStr255Param key); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICDeleteProfile(ICInstance inst, int thisID); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICEditPreferences(ICInstance inst, ConstStr255Param key); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICEnd(ICInstance inst); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, ConstStr255Param, ffi.Pointer, Handle) +>() +external int ICFindPrefHandle( + ICInstance inst, + ConstStr255Param key, + ffi.Pointer attr, + Handle prefh, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, Boolean, ffi.Pointer) +>() +external int ICGetConfigName( + ICInstance inst, + int longname, + ffi.Pointer name, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICGetCurrentProfile( + ICInstance inst, + ffi.Pointer currentID, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICGetDefaultPref( + ICInstance inst, + ConstStr255Param key, + Handle prefH, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + Handle, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ICGetIndMapEntry( + ICInstance inst, + Handle entries, + int index$1, + ffi.Pointer pos, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, ffi.Long, ffi.Pointer) +>() +external int ICGetIndPref( + ICInstance inst, + int index$1, + ffi.Pointer key, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICGetIndProfile( + ICInstance inst, + int index$1, + ffi.Pointer thisID, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, Handle, ffi.Long, ffi.Pointer) +>() +external int ICGetMapEntry( + ICInstance inst, + Handle entries, + int pos, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICGetPerm(ICInstance inst, ffi.Pointer perm); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + ConstStr255Param, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ICGetPref( + ICInstance inst, + ConstStr255Param key, + ffi.Pointer attr, + ffi.Pointer buf, + ffi.Pointer size, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + ConstStr255Param, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ICGetPrefHandle( + ICInstance inst, + ConstStr255Param key, + ffi.Pointer attr, + ffi.Pointer prefh, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, ICProfileID, ffi.Pointer) +>() +external int ICGetProfileName( + ICInstance inst, + int thisID, + ffi.Pointer name, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICGetSeed(ICInstance inst, ffi.Pointer seed); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICGetVersion( + ICInstance inst, + int whichVersion, + ffi.Pointer version, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + ConstStr255Param, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ICLaunchURL( + ICInstance inst, + ConstStr255Param hint, + ffi.Pointer data, + int len, + ffi.Pointer selStart, + ffi.Pointer selEnd, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + Handle, + ConstStr255Param, + ffi.Pointer, + ) +>() +external int ICMapEntriesFilename( + ICInstance inst, + Handle entries, + ConstStr255Param filename, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + Handle, + OSType, + OSType, + ConstStr255Param, + ffi.Pointer, + ) +>() +external int ICMapEntriesTypeCreator( + ICInstance inst, + Handle entries, + int fType, + int fCreator, + ConstStr255Param filename, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, ConstStr255Param, ffi.Pointer) +>() +external int ICMapFilename( + ICInstance inst, + ConstStr255Param filename, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + OSType, + OSType, + ConstStr255Param, + ffi.Pointer, + ) +>() +external int ICMapTypeCreator( + ICInstance inst, + int fType, + int fCreator, + ConstStr255Param filename, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + ConstStr255Param, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + Handle, + ) +>() +external int ICParseURL( + ICInstance inst, + ConstStr255Param hint, + ffi.Pointer data, + int len, + ffi.Pointer selStart, + ffi.Pointer selEnd, + Handle url, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICSendGURLEvent(ICInstance inst, ffi.Pointer theEvent); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICSetCurrentProfile(ICInstance inst, int newID); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, Handle, ffi.Long, ffi.Pointer) +>() +external int ICSetMapEntry( + ICInstance inst, + Handle entries, + int pos, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + ConstStr255Param, + ICAttr, + ffi.Pointer, + ffi.Long, + ) +>() +external int ICSetPref( + ICInstance inst, + ConstStr255Param key, + int attr, + ffi.Pointer buf, + int size, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICSetPrefHandle( + ICInstance inst, + ConstStr255Param key, + int attr, + Handle prefh, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICSetProfileName( + ICInstance inst, + int thisID, + ConstStr255Param name, +); + +@Deprecated('Deprecated') +@ffi.Native, OSType)>() +external int ICStart(ffi.Pointer inst, int signature); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICStop(ICInstance inst); + +@ffi.Native< + CFMutableDictionaryRef Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ) +>() +external CFMutableDictionaryRef IOBSDNameMatching( + int mainPort, + int options, + ffi.Pointer bsdName, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int IOCatalogueGetData( + int mainPort, + int flag, + ffi.Pointer> buffer, + ffi.Pointer size, +); + +@ffi.Native)>() +external int IOCatalogueModuleLoaded(int mainPort, ffi.Pointer name); + +@ffi.Native() +external int IOCatalogueReset(int mainPort, int flag); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ) +>() +external int IOCatalogueSendData( + int mainPort, + int flag, + ffi.Pointer buffer, + int size, +); + +@ffi.Native< + kern_return_t Function(mach_port_t, ffi.Uint32, ffi.Pointer) +>() +external int IOCatalogueTerminate( + int mainPort, + int flag, + ffi.Pointer description, +); + +@ffi.Native() +external int IOConnectAddClient(int connect$1, int client); + +@ffi.Native() +external int IOConnectAddRef(int connect$1); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + mach_port_t, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallAsyncMethod( + int connection, + int selector, + int wake_port, + ffi.Pointer reference, + int referenceCnt, + ffi.Pointer input, + int inputCnt, + ffi.Pointer inputStruct, + int inputStructCnt, + ffi.Pointer output, + ffi.Pointer outputCnt, + ffi.Pointer outputStruct, + ffi.Pointer outputStructCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + mach_port_t, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallAsyncScalarMethod( + int connection, + int selector, + int wake_port, + ffi.Pointer reference, + int referenceCnt, + ffi.Pointer input, + int inputCnt, + ffi.Pointer output, + ffi.Pointer outputCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + mach_port_t, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallAsyncStructMethod( + int connection, + int selector, + int wake_port, + ffi.Pointer reference, + int referenceCnt, + ffi.Pointer inputStruct, + int inputStructCnt, + ffi.Pointer outputStruct, + ffi.Pointer outputStructCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallMethod( + int connection, + int selector, + ffi.Pointer input, + int inputCnt, + ffi.Pointer inputStruct, + int inputStructCnt, + ffi.Pointer output, + ffi.Pointer outputCnt, + ffi.Pointer outputStruct, + ffi.Pointer outputStructCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallScalarMethod( + int connection, + int selector, + ffi.Pointer input, + int inputCnt, + ffi.Pointer output, + ffi.Pointer outputCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallStructMethod( + int connection, + int selector, + ffi.Pointer inputStruct, + int inputStructCnt, + ffi.Pointer outputStruct, + ffi.Pointer outputStructCnt, +); + +@ffi.Native)>() +external int IOConnectGetService( + int connect$1, + ffi.Pointer service, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + task_port_t, + ffi.Pointer, + ffi.Pointer, + IOOptionBits, + ) +>() +external int IOConnectMapMemory( + int connect$1, + int memoryType, + int intoTask, + ffi.Pointer atAddress, + ffi.Pointer ofSize, + int options, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + task_port_t, + ffi.Pointer, + ffi.Pointer, + IOOptionBits, + ) +>() +external int IOConnectMapMemory64( + int connect$1, + int memoryType, + int intoTask, + ffi.Pointer atAddress, + ffi.Pointer ofSize, + int options, +); + +@ffi.Native() +external int IOConnectRelease(int connect$1); + +@ffi.Native() +external int IOConnectSetCFProperties(int connect$1, CFTypeRef properties); + +@ffi.Native() +external int IOConnectSetCFProperty( + int connect$1, + CFStringRef propertyName, + CFTypeRef property, +); + +@ffi.Native< + kern_return_t Function(io_connect_t, ffi.Uint32, mach_port_t, ffi.UintPtr) +>() +external int IOConnectSetNotificationPort( + int connect$1, + int type, + int port, + int reference, +); + +@ffi.Native() +external int IOConnectTrap0(int connect$1, int index$1); + +@ffi.Native() +external int IOConnectTrap1(int connect$1, int index$1, int p1); + +@ffi.Native< + kern_return_t Function(io_connect_t, ffi.Uint32, ffi.UintPtr, ffi.UintPtr) +>() +external int IOConnectTrap2(int connect$1, int index$1, int p1, int p2); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ) +>() +external int IOConnectTrap3(int connect$1, int index$1, int p1, int p2, int p3); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ) +>() +external int IOConnectTrap4( + int connect$1, + int index$1, + int p1, + int p2, + int p3, + int p4, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ) +>() +external int IOConnectTrap5( + int connect$1, + int index$1, + int p1, + int p2, + int p3, + int p4, + int p5, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ) +>() +external int IOConnectTrap6( + int connect$1, + int index$1, + int p1, + int p2, + int p3, + int p4, + int p5, + int p6, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + task_port_t, + mach_vm_address_t, + ) +>() +external int IOConnectUnmapMemory( + int connect$1, + int memoryType, + int fromTask, + int atAddress, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + task_port_t, + mach_vm_address_t, + ) +>() +external int IOConnectUnmapMemory64( + int connect$1, + int memoryType, + int fromTask, + int atAddress, +); + +@ffi.Native)>() +external int IOCreateReceivePort( + int msgType, + ffi.Pointer recvPort, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void IODispatchCalloutFromMessage( + ffi.Pointer unused, + ffi.Pointer msg, + ffi.Pointer reference, +); + +@ffi.Native() +external int IOIteratorIsValid(int iterator); + +@ffi.Native() +external int IOIteratorNext(int iterator); + +@ffi.Native() +external void IOIteratorReset(int iterator); + +@ffi.Native)>() +external int IOKitGetBusyState(int mainPort, ffi.Pointer busyState); + +@ffi.Native)>() +external int IOKitWaitQuiet( + int mainPort, + ffi.Pointer waitTime, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + IOOptionBits, + ) +>() +external int IOKitWaitQuietWithOptions( + int mainPort, + ffi.Pointer waitTime, + int options, +); + +@ffi.Native)>() +external int IOMainPort(int bootstrapPort, ffi.Pointer mainPort); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IOMasterPort(int bootstrapPort, ffi.Pointer mainPort); + +@ffi.Native() +external IONotificationPortRef IONotificationPortCreate(int mainPort); + +@ffi.Native() +external void IONotificationPortDestroy(IONotificationPortRef notify); + +@ffi.Native() +external int IONotificationPortGetMachPort(IONotificationPortRef notify); + +@ffi.Native() +external CFRunLoopSourceRef IONotificationPortGetRunLoopSource( + IONotificationPortRef notify, +); + +@ffi.Native( + symbol: 'IONotificationPortSetDispatchQueue', +) +external void _IONotificationPortSetDispatchQueue( + IONotificationPortRef notify, + dispatch_queue_t queue, +); + +void IONotificationPortSetDispatchQueue( + IONotificationPortRef notify, + Dartdispatch_queue_t queue, +) { + final _$$ref = queue.ref; + return _IONotificationPortSetDispatchQueue(notify, _$$ref.pointer); +} + +@ffi.Native() +external int IONotificationPortSetImportanceReceiver( + IONotificationPortRef notify, +); + +@ffi.Native)>() +external int IOObjectConformsTo(int object, ffi.Pointer className); + +@ffi.Native() +external CFStringRef IOObjectCopyBundleIdentifierForClass( + CFStringRef classname, +); + +@ffi.Native() +external CFStringRef IOObjectCopyClass(int object); + +@ffi.Native() +external CFStringRef IOObjectCopySuperclassForClass(CFStringRef classname); + +@ffi.Native)>() +external int IOObjectGetClass(int object, ffi.Pointer className); + +@ffi.Native() +external int IOObjectGetKernelRetainCount(int object); + +@ffi.Native() +external int IOObjectGetRetainCount(int object); + +@ffi.Native() +external int IOObjectGetUserRetainCount(int object); + +@ffi.Native() +external int IOObjectIsEqualTo(int object, int anObject); + +@ffi.Native() +external int IOObjectRelease(int object); + +@ffi.Native() +external int IOObjectRetain(int object); + +@Deprecated('Deprecated') +@ffi.Native< + CFMutableDictionaryRef Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ) +>() +external CFMutableDictionaryRef IOOpenFirmwarePathMatching( + int mainPort, + int options, + ffi.Pointer path, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + IOOptionBits, + ffi.Pointer, + ) +>() +external int IORegistryCreateIterator( + int mainPort, + ffi.Pointer plane, + int options, + ffi.Pointer iterator, +); + +@ffi.Native() +external int IORegistryEntryCopyFromPath(int mainPort, CFStringRef path); + +@ffi.Native)>() +external CFStringRef IORegistryEntryCopyPath( + int entry, + ffi.Pointer plane, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + CFAllocatorRef, + IOOptionBits, + ) +>() +external int IORegistryEntryCreateCFProperties( + int entry, + ffi.Pointer properties, + CFAllocatorRef allocator, + int options, +); + +@ffi.Native< + CFTypeRef Function( + io_registry_entry_t, + CFStringRef, + CFAllocatorRef, + IOOptionBits, + ) +>() +external CFTypeRef IORegistryEntryCreateCFProperty( + int entry, + CFStringRef key, + CFAllocatorRef allocator, + int options, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + IOOptionBits, + ffi.Pointer, + ) +>() +external int IORegistryEntryCreateIterator( + int entry, + ffi.Pointer plane, + int options, + ffi.Pointer iterator, +); + +@ffi.Native)>() +external int IORegistryEntryFromPath(int mainPort, ffi.Pointer path); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetChildEntry( + int entry, + ffi.Pointer plane, + ffi.Pointer child, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetChildIterator( + int entry, + ffi.Pointer plane, + ffi.Pointer iterator, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetLocationInPlane( + int entry, + ffi.Pointer plane, + ffi.Pointer location, +); + +@ffi.Native< + kern_return_t Function(io_registry_entry_t, ffi.Pointer) +>() +external int IORegistryEntryGetName(int entry, ffi.Pointer name); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetNameInPlane( + int entry, + ffi.Pointer plane, + ffi.Pointer name, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetParentEntry( + int entry, + ffi.Pointer plane, + ffi.Pointer parent, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetParentIterator( + int entry, + ffi.Pointer plane, + ffi.Pointer iterator, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetPath( + int entry, + ffi.Pointer plane, + ffi.Pointer path, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetProperty( + int entry, + ffi.Pointer propertyName, + ffi.Pointer buffer, + ffi.Pointer size, +); + +@ffi.Native< + kern_return_t Function(io_registry_entry_t, ffi.Pointer) +>() +external int IORegistryEntryGetRegistryEntryID( + int entry, + ffi.Pointer entryID, +); + +@ffi.Native() +external CFMutableDictionaryRef IORegistryEntryIDMatching(int entryID); + +@ffi.Native)>() +external int IORegistryEntryInPlane(int entry, ffi.Pointer plane); + +@ffi.Native< + CFTypeRef Function( + io_registry_entry_t, + ffi.Pointer, + CFStringRef, + CFAllocatorRef, + IOOptionBits, + ) +>() +external CFTypeRef IORegistryEntrySearchCFProperty( + int entry, + ffi.Pointer plane, + CFStringRef key, + CFAllocatorRef allocator, + int options, +); + +@ffi.Native() +external int IORegistryEntrySetCFProperties(int entry, CFTypeRef properties); + +@ffi.Native< + kern_return_t Function(io_registry_entry_t, CFStringRef, CFTypeRef) +>() +external int IORegistryEntrySetCFProperty( + int entry, + CFStringRef propertyName, + CFTypeRef property, +); + +@ffi.Native() +external int IORegistryGetRootEntry(int mainPort); + +@ffi.Native() +external int IORegistryIteratorEnterEntry(int iterator); + +@ffi.Native() +external int IORegistryIteratorExitEntry(int iterator); + +@ffi.Native< + kern_return_t Function( + IONotificationPortRef, + io_service_t, + ffi.Pointer, + IOServiceInterestCallback, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOServiceAddInterestNotification( + IONotificationPortRef notifyPort, + int service, + ffi.Pointer interestType, + IOServiceInterestCallback callback, + ffi.Pointer refCon, + ffi.Pointer notification, +); + +@ffi.Native< + kern_return_t Function( + IONotificationPortRef, + ffi.Pointer, + CFDictionaryRef, + IOServiceMatchingCallback, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOServiceAddMatchingNotification( + IONotificationPortRef notifyPort, + ffi.Pointer notificationType, + CFDictionaryRef matching, + IOServiceMatchingCallback callback, + ffi.Pointer refCon, + ffi.Pointer notification, +); + +@Deprecated('Deprecated') +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + CFDictionaryRef, + mach_port_t, + ffi.UintPtr, + ffi.Pointer, + ) +>() +external int IOServiceAddNotification( + int mainPort, + ffi.Pointer notificationType, + CFDictionaryRef matching, + int wakePort, + int reference, + ffi.Pointer notification, +); + +@ffi.Native() +external int IOServiceAuthorize(int service, int options); + +@ffi.Native() +external int IOServiceClose(int connect$1); + +@ffi.Native)>() +external int IOServiceGetBusyState( + int service, + ffi.Pointer busyState, +); + +@ffi.Native() +external int IOServiceGetMatchingService( + int mainPort, + CFDictionaryRef matching, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int IOServiceGetMatchingServices( + int mainPort, + CFDictionaryRef matching, + ffi.Pointer existing, +); + +@ffi.Native< + kern_return_t Function(io_service_t, CFDictionaryRef, ffi.Pointer) +>() +external int IOServiceMatchPropertyTable( + int service, + CFDictionaryRef matching, + ffi.Pointer matches, +); + +@ffi.Native)>() +external CFMutableDictionaryRef IOServiceMatching(ffi.Pointer name); + +@ffi.Native)>() +external CFMutableDictionaryRef IOServiceNameMatching( + ffi.Pointer name, +); + +@Deprecated('Deprecated') +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOServiceOFPathToBSDName( + int mainPort, + ffi.Pointer openFirmwarePath, + ffi.Pointer bsdName, +); + +@ffi.Native< + kern_return_t Function( + io_service_t, + task_port_t, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int IOServiceOpen( + int service, + int owningTask, + int type, + ffi.Pointer connect$1, +); + +@ffi.Native() +external int IOServiceOpenAsFileDescriptor(int service, int oflag); + +@ffi.Native() +external int IOServiceRequestProbe(int service, int options); + +@ffi.Native< + kern_return_t Function(io_service_t, ffi.Pointer) +>() +external int IOServiceWaitQuiet( + int service, + ffi.Pointer waitTime, +); + +@ffi.Native() +external int IOSurfaceAlignProperty(CFStringRef property, int value); + +@ffi.Native() +external int IOSurfaceAllowsPixelSizeCasting(IOSurfaceRef buffer); + +@ffi.Native() +external CFDictionaryRef IOSurfaceCopyAllValues(IOSurfaceRef buffer); + +@ffi.Native() +external CFTypeRef IOSurfaceCopyValue(IOSurfaceRef buffer, CFStringRef key); + +@ffi.Native() +external IOSurfaceRef IOSurfaceCreate(CFDictionaryRef properties); + +@ffi.Native() +external int IOSurfaceCreateMachPort(IOSurfaceRef buffer); + +@ffi.Native( + symbol: 'IOSurfaceCreateXPCObject', +) +external xpc_object_t _IOSurfaceCreateXPCObject(IOSurfaceRef aSurface); + +Dartxpc_object_t IOSurfaceCreateXPCObject(IOSurfaceRef aSurface) { + return objc.NSObject.fromPointer( + _IOSurfaceCreateXPCObject(aSurface), + retain: false, + release: true, + ); +} + +@ffi.Native() +external void IOSurfaceDecrementUseCount(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetAllocSize(IOSurfaceRef buffer); + +@ffi.Native Function(IOSurfaceRef)>() +external ffi.Pointer IOSurfaceGetBaseAddress(IOSurfaceRef buffer); + +@ffi.Native Function(IOSurfaceRef, ffi.Size)>() +external ffi.Pointer IOSurfaceGetBaseAddressOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetBitDepthOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +); + +@ffi.Native() +external int IOSurfaceGetBitOffsetOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +); + +@ffi.Native() +external int IOSurfaceGetBytesPerElement(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetBytesPerElementOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetBytesPerRow(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetBytesPerRowOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetElementHeight(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetElementHeightOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetElementWidth(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetElementWidthOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetHeight(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetHeightOfPlane(IOSurfaceRef buffer, int planeIndex); + +@ffi.Native() +external int IOSurfaceGetID(IOSurfaceRef buffer); + +@ffi.Native( + symbol: 'IOSurfaceGetNameOfComponentOfPlane', +) +external int _IOSurfaceGetNameOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +); + +IOSurfaceComponentName IOSurfaceGetNameOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +) { + return IOSurfaceComponentName.fromValue( + _IOSurfaceGetNameOfComponentOfPlane(buffer, planeIndex, componentIndex), + ); +} + +@ffi.Native() +external int IOSurfaceGetNumberOfComponentsOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetPixelFormat(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetPlaneCount(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetPropertyAlignment(CFStringRef property); + +@ffi.Native() +external int IOSurfaceGetPropertyMaximum(CFStringRef property); + +@ffi.Native( + symbol: 'IOSurfaceGetRangeOfComponentOfPlane', +) +external int _IOSurfaceGetRangeOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +); + +IOSurfaceComponentRange IOSurfaceGetRangeOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +) { + return IOSurfaceComponentRange.fromValue( + _IOSurfaceGetRangeOfComponentOfPlane(buffer, planeIndex, componentIndex), + ); +} + +@ffi.Native() +external int IOSurfaceGetSeed(IOSurfaceRef buffer); + +@ffi.Native(symbol: 'IOSurfaceGetSubsampling') +external int _IOSurfaceGetSubsampling(IOSurfaceRef buffer); + +IOSurfaceSubsampling IOSurfaceGetSubsampling(IOSurfaceRef buffer) { + return IOSurfaceSubsampling.fromValue(_IOSurfaceGetSubsampling(buffer)); +} + +@ffi.Native() +external int IOSurfaceGetTypeID(); + +@ffi.Native( + symbol: 'IOSurfaceGetTypeOfComponentOfPlane', +) +external int _IOSurfaceGetTypeOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +); + +IOSurfaceComponentType IOSurfaceGetTypeOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +) { + return IOSurfaceComponentType.fromValue( + _IOSurfaceGetTypeOfComponentOfPlane(buffer, planeIndex, componentIndex), + ); +} + +@ffi.Native() +external int IOSurfaceGetUseCount(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetWidth(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetWidthOfPlane(IOSurfaceRef buffer, int planeIndex); + +@ffi.Native() +external void IOSurfaceIncrementUseCount(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceIsInUse(IOSurfaceRef buffer); + +@ffi.Native< + kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) +>() +external int IOSurfaceLock( + IOSurfaceRef buffer, + int options, + ffi.Pointer seed, +); + +@ffi.Native() +external IOSurfaceRef IOSurfaceLookup(int csid); + +@ffi.Native() +external IOSurfaceRef IOSurfaceLookupFromMachPort(int port); + +@ffi.Native( + symbol: 'IOSurfaceLookupFromXPCObject', +) +external IOSurfaceRef _IOSurfaceLookupFromXPCObject(xpc_object_t xobj); + +IOSurfaceRef IOSurfaceLookupFromXPCObject(Dartxpc_object_t xobj) { + final _$$ref = xobj.ref; + return _IOSurfaceLookupFromXPCObject(_$$ref.pointer); +} + +@ffi.Native() +external void IOSurfaceRemoveAllValues(IOSurfaceRef buffer); + +@ffi.Native() +external void IOSurfaceRemoveValue(IOSurfaceRef buffer, CFStringRef key); + +@ffi.Native< + kern_return_t Function(IOSurfaceRef, task_id_token_t, ffi.Int, ffi.Uint32) +>() +external int IOSurfaceSetOwnershipIdentity( + IOSurfaceRef buffer, + int task_id_token, + int newLedgerTag, + int newLedgerOptions, +); + +@ffi.Native< + kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) +>() +external int IOSurfaceSetPurgeable( + IOSurfaceRef buffer, + int newState, + ffi.Pointer oldState, +); + +@ffi.Native() +external void IOSurfaceSetValue( + IOSurfaceRef buffer, + CFStringRef key, + CFTypeRef value, +); + +@ffi.Native() +external void IOSurfaceSetValues( + IOSurfaceRef buffer, + CFDictionaryRef keysAndValues, +); + +@ffi.Native< + kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) +>() +external int IOSurfaceUnlock( + IOSurfaceRef buffer, + int options, + ffi.Pointer seed, +); + +@ffi.Native< + Boolean Function( + ffi.Pointer, + ffi.Pointer, + IconAlignmentType, + IconServicesUsageFlags, + IconRef, + ) +>() +external int IconRefContainsCGPoint( + ffi.Pointer testPt, + ffi.Pointer iconRect, + int align, + int iconServicesUsageFlags, + IconRef theIconRef, +); + +@ffi.Native< + Boolean Function( + ffi.Pointer, + ffi.Pointer, + IconAlignmentType, + IconServicesUsageFlags, + IconRef, + ) +>() +external int IconRefIntersectsCGRect( + ffi.Pointer testRect, + ffi.Pointer iconRect, + int align, + int iconServicesUsageFlags, + IconRef theIconRef, +); + +@ffi.Native< + HIShapeRef Function( + ffi.Pointer, + IconAlignmentType, + IconServicesUsageFlags, + IconRef, + ) +>() +external HIShapeRef IconRefToHIShape( + ffi.Pointer iconRect, + int align, + int iconServicesUsageFlags, + IconRef theIconRef, +); + +@ffi.Native< + OSErr Function(IconRef, IconSelectorValue, ffi.Pointer) +>() +external int IconRefToIconFamily( + IconRef theIconRef, + int whichIcons, + ffi.Pointer iconFamily, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IdentifyFolder( + int vRefNum, + int dirID, + ffi.Pointer foldType, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IncrementAtomic(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IncrementAtomic16(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IncrementAtomic8(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native() +external void InsTime(QElemPtr tmTaskPtr); + +@Deprecated('Deprecated') +@ffi.Native() +external void InsXTime(QElemPtr tmTaskPtr); + +@Deprecated('Deprecated') +@ffi.Native() +external int InsertResourceFile(int refNum, int where); + +@Deprecated('Deprecated') +@ffi.Native() +external void InstallDebugAssertOutputHandler( + DebugAssertOutputHandlerUPP handler, +); + +@Deprecated('No longer support') +@ffi.Native() +external ExceptionHandlerTPP InstallExceptionHandler( + ExceptionHandlerTPP theHandler, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int InstallTimeTask(QElemPtr tmTaskPtr); + +@Deprecated('Deprecated') +@ffi.Native() +external int InstallXTimeTask(QElemPtr tmTaskPtr); + +@Deprecated('Deprecated') +@ffi.Native() +external int InvalidateFolderDescriptorCache(int vRefNum, int dirID); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + DescType, + SRefCon, + ffi.Pointer, + AECoerceDescUPP, + ) +>() +external int InvokeAECoerceDescUPP( + ffi.Pointer fromDesc, + int toType, + SRefCon handlerRefcon, + ffi.Pointer toDesc, + AECoerceDescUPP userUPP, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + Size, + DescType, + SRefCon, + ffi.Pointer, + AECoercePtrUPP, + ) +>() +external int InvokeAECoercePtrUPP( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + int toType, + SRefCon handlerRefcon, + ffi.Pointer result, + AECoercePtrUPP userUPP, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, Size, SRefCon, AEDisposeExternalUPP) +>() +external void InvokeAEDisposeExternalUPP( + ffi.Pointer dataPtr, + int dataLength, + SRefCon refcon, + AEDisposeExternalUPP userUPP, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + SRefCon, + AEEventHandlerUPP, + ) +>() +external int InvokeAEEventHandlerUPP( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + SRefCon handlerRefcon, + AEEventHandlerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int InvokeCollectionExceptionUPP( + Collection c, + int status, + CollectionExceptionUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + SInt32, + ffi.Pointer, + ffi.Pointer, + CollectionFlattenUPP, + ) +>() +external int InvokeCollectionFlattenUPP( + int size, + ffi.Pointer data, + ffi.Pointer refCon, + CollectionFlattenUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + ffi.Pointer, + ComponentMPWorkFunctionHeaderRecordPtr, + ComponentMPWorkFunctionUPP, + ) +>() +external int InvokeComponentMPWorkFunctionUPP( + ffi.Pointer globalRefCon, + ComponentMPWorkFunctionHeaderRecordPtr header, + ComponentMPWorkFunctionUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + ffi.Pointer, + Handle, + ComponentRoutineUPP, + ) +>() +external int InvokeComponentRoutineUPP( + ffi.Pointer cp, + Handle componentStorage, + ComponentRoutineUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ConstStr255Param, + DebugAssertOutputHandlerUPP, + ) +>() +external void InvokeDebugAssertOutputHandlerUPP( + int componentSignature, + int options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + int lineNumber, + ffi.Pointer value, + ConstStr255Param outputMsg, + DebugAssertOutputHandlerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + SInt32, + UInt32, + ffi.Pointer, + DebugComponentCallbackUPP, + ) +>() +external void InvokeDebugComponentCallbackUPP( + int optionSelectorNum, + int command, + ffi.Pointer optionSetting, + DebugComponentCallbackUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeDebuggerDisposeThreadUPP( + int threadDeleted, + DebuggerDisposeThreadUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeDebuggerNewThreadUPP( + int threadCreated, + DebuggerNewThreadUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ThreadID Function(SchedulerInfoRecPtr, DebuggerThreadSchedulerUPP) +>() +external int InvokeDebuggerThreadSchedulerUPP( + SchedulerInfoRecPtr schedulerInfo, + DebuggerThreadSchedulerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeDeferredTaskUPP(int dtParam, DeferredTaskUPP userUPP); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function(ffi.Pointer, ExceptionHandlerUPP) +>() +external int InvokeExceptionHandlerUPP( + ffi.Pointer theException, + ExceptionHandlerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + FNMessage, + OptionBits, + ffi.Pointer, + FNSubscriptionRef, + FNSubscriptionUPP, + ) +>() +external void InvokeFNSubscriptionUPP( + int message, + int flags, + ffi.Pointer refcon, + FNSubscriptionRef subscription, + FNSubscriptionUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + FSVolumeOperation, + ffi.Pointer, + OSStatus, + FSVolumeRefNum, + pid_t, + FSVolumeEjectUPP, + ) +>() +external void InvokeFSVolumeEjectUPP( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + FSVolumeEjectUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + FSVolumeOperation, + ffi.Pointer, + OSStatus, + FSVolumeRefNum, + FSVolumeMountUPP, + ) +>() +external void InvokeFSVolumeMountUPP( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + int err, + int mountedVolumeRefNum, + FSVolumeMountUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + FSVolumeOperation, + ffi.Pointer, + OSStatus, + FSVolumeRefNum, + pid_t, + FSVolumeUnmountUPP, + ) +>() +external void InvokeFSVolumeUnmountUPP( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + FSVolumeUnmountUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + OSType, + ffi.Pointer, + ffi.Pointer, + FolderManagerNotificationUPP, + ) +>() +external int InvokeFolderManagerNotificationUPP( + int message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + FolderManagerNotificationUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Component, + OSType, + SInt16, + ffi.Pointer, + ffi.Pointer, + GetMissingComponentResourceUPP, + ) +>() +external int InvokeGetMissingComponentResourceUPP( + Component c, + int resType, + int resID, + ffi.Pointer refCon, + ffi.Pointer resource, + GetMissingComponentResourceUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeIOCompletionUPP( + ParmBlkPtr paramBlock, + IOCompletionUPP userUPP, +); + +@ffi.Native< + OSErr Function( + ResType, + ffi.Pointer, + ffi.Pointer, + IconActionUPP, + ) +>() +external int InvokeIconActionUPP( + int theType, + ffi.Pointer theIcon, + ffi.Pointer yourDataPtr, + IconActionUPP userUPP, +); + +@ffi.Native, IconGetterUPP)>() +external Handle InvokeIconGetterUPP( + int theType, + ffi.Pointer yourDataPtr, + IconGetterUPP userUPP, +); + +@ffi.Native< + Boolean Function( + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + IndexToUCStringUPP, + ) +>() +external int InvokeIndexToUCStringUPP( + int index$1, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer outString, + ffi.Pointer tsOptions, + IndexToUCStringUPP userUPP, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + KCEvent, + ffi.Pointer, + ffi.Pointer, + KCCallbackUPP, + ) +>() +external int InvokeKCCallbackUPP( + int keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + KCCallbackUPP userUPP, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + DescType, + DescType, + ffi.Pointer, + ffi.Pointer, + SRefCon, + OSLAccessorUPP, + ) +>() +external int InvokeOSLAccessorUPP( + int desiredClass, + ffi.Pointer container, + int containerClass, + int form, + ffi.Pointer selectionData, + ffi.Pointer value, + SRefCon accessorRefcon, + OSLAccessorUPP userUPP, +); + +@ffi.Native< + OSErr Function( + ffi.Long, + ffi.Long, + ffi.Pointer, + OSLAdjustMarksUPP, + ) +>() +external int InvokeOSLAdjustMarksUPP( + int newStart, + int newStop, + ffi.Pointer markToken, + OSLAdjustMarksUPP userUPP, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + OSLCompareUPP, + ) +>() +external int InvokeOSLCompareUPP( + int oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + OSLCompareUPP userUPP, +); + +@ffi.Native< + OSErr Function( + DescType, + DescType, + ffi.Pointer, + ffi.Pointer, + OSLCountUPP, + ) +>() +external int InvokeOSLCountUPP( + int desiredType, + int containerClass, + ffi.Pointer container, + ffi.Pointer result, + OSLCountUPP userUPP, +); + +@ffi.Native, OSLDisposeTokenUPP)>() +external int InvokeOSLDisposeTokenUPP( + ffi.Pointer unneededToken, + OSLDisposeTokenUPP userUPP, +); + +@ffi.Native< + OSErr Function(ffi.Pointer>, OSLGetErrDescUPP) +>() +external int InvokeOSLGetErrDescUPP( + ffi.Pointer> appDescPtr, + OSLGetErrDescUPP userUPP, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + DescType, + ffi.Pointer, + OSLGetMarkTokenUPP, + ) +>() +external int InvokeOSLGetMarkTokenUPP( + ffi.Pointer dContainerToken, + int containerClass, + ffi.Pointer result, + OSLGetMarkTokenUPP userUPP, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + OSLMarkUPP, + ) +>() +external int InvokeOSLMarkUPP( + ffi.Pointer dToken, + ffi.Pointer markToken, + int index$1, + OSLMarkUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeResErrUPP(int thErr, ResErrUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native, SelectorFunctionUPP)>() +external int InvokeSelectorFunctionUPP( + int selector, + ffi.Pointer response, + SelectorFunctionUPP userUPP, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int InvokeSleepQUPP( + int message, + SleepQRecPtr qRecPtr, + SleepQUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void InvokeSpeechDoneUPP( + SpeechChannel chan, + SRefCon refCon, + SpeechDoneUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + ffi.Void Function(SpeechChannel, SRefCon, OSErr, ffi.Long, SpeechErrorUPP) +>() +external void InvokeSpeechErrorUPP( + SpeechChannel chan, + SRefCon refCon, + int theError, + int bytePos, + SpeechErrorUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + ffi.Void Function(SpeechChannel, SRefCon, SInt16, SpeechPhonemeUPP) +>() +external void InvokeSpeechPhonemeUPP( + SpeechChannel chan, + SRefCon refCon, + int phonemeOpcode, + SpeechPhonemeUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void InvokeSpeechSyncUPP( + SpeechChannel chan, + SRefCon refCon, + int syncMessage, + SpeechSyncUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + ffi.Void Function( + SpeechChannel, + SRefCon, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + SpeechTextDoneUPP, + ) +>() +external void InvokeSpeechTextDoneUPP( + SpeechChannel chan, + SRefCon refCon, + ffi.Pointer> nextBuf, + ffi.Pointer byteLen, + ffi.Pointer controlFlags, + SpeechTextDoneUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + ffi.Void Function( + SpeechChannel, + SRefCon, + ffi.UnsignedLong, + UInt16, + SpeechWordUPP, + ) +>() +external void InvokeSpeechWordUPP( + SpeechChannel chan, + SRefCon refCon, + int wordPos, + int wordLen, + SpeechWordUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native, ThreadEntryUPP)>() +external voidPtr InvokeThreadEntryUPP( + ffi.Pointer threadParam, + ThreadEntryUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int InvokeThreadSchedulerUPP( + SchedulerInfoRecPtr schedulerInfo, + ThreadSchedulerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(ThreadID, ffi.Pointer, ThreadSwitchUPP) +>() +external void InvokeThreadSwitchUPP( + int threadBeingSwitched, + ffi.Pointer switchProcParam, + ThreadSwitchUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(ThreadID, ffi.Pointer, ThreadTerminationUPP) +>() +external void InvokeThreadTerminationUPP( + int threadTerminated, + ffi.Pointer terminationProcParam, + ThreadTerminationUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeTimerUPP(TMTaskPtr tmTaskPtr, TimerUPP userUPP); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ByteCount, + ffi.Pointer, + TextPtr, + ByteCount, + ffi.Pointer, + LogicalAddress, + ConstUnicodeMappingPtr, + UnicodeToTextFallbackUPP, + ) +>() +external int InvokeUnicodeToTextFallbackUPP( + ffi.Pointer iSrcUniStr, + int iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + TextPtr oDestStr, + int iDestStrLen, + ffi.Pointer oDestConvLen, + LogicalAddress iInfoPtr, + ConstUnicodeMappingPtr iUnicodeMappingPtr, + UnicodeToTextFallbackUPP userUPP, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int IsDataAvailableInIconRef(int inIconKind, IconRef inIconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external int IsHandleValid(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external int IsHeapValid(); + +@Deprecated('Use NSImage or Core Graphics to composite images.') +@ffi.Native< + OSErr Function(IconRef, ffi.Pointer, ffi.Pointer) +>() +external int IsIconRefComposite( + IconRef compositeIconRef, + ffi.Pointer backgroundIconRef, + ffi.Pointer foregroundIconRef, +); + +@ffi.Native() +external int IsIconRefMaskEmpty(IconRef iconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external int IsMetric(); + +@Deprecated('Deprecated') +@ffi.Native() +external int IsPointerValid(Ptr p); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IsProcessVisible(ffi.Pointer psn); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int IsValidIconRef(IconRef theIconRef); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function(KCCallbackUPP, KCEventMask, ffi.Pointer) +>() +external int KCAddCallback( + KCCallbackUPP callbackProc, + int eventMask, + ffi.Pointer userContext, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCCopyItem( + KCItemRef item, + KCRef destKeychain, + ffi.Pointer copy, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCCountKeychains(); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCDeleteItem(KCItemRef item); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer>, + ConstStringPtr, + ConstStringPtr, + ConstStringPtr, + ConstStringPtr, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCFindAppleSharePassword( + ffi.Pointer> serverSignature, + ConstStringPtr serverAddress, + ConstStringPtr serverName, + ConstStringPtr volumeName, + ConstStringPtr accountName, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + KCRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCFindFirstItem( + KCRef keychain, + ffi.Pointer attrList, + ffi.Pointer search, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ConstStringPtr, + ConstStringPtr, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCFindGenericPassword( + ConstStringPtr serviceName, + ConstStringPtr accountName, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ConstStringPtr, + ConstStringPtr, + ConstStringPtr, + UInt16, + OSType, + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCFindInternetPassword( + ConstStringPtr serverName, + ConstStringPtr securityDomain, + ConstStringPtr accountName, + int port, + int protocol, + int authType, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ConstStringPtr, + ConstStringPtr, + ConstStringPtr, + ConstStringPtr, + UInt16, + OSType, + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCFindInternetPasswordWithPath( + ConstStringPtr serverName, + ConstStringPtr securityDomain, + ConstStringPtr accountName, + ConstStringPtr path, + int port, + int protocol, + int authType, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCFindNextItem(KCSearchRef search, ffi.Pointer item); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function(KCItemRef, ffi.Pointer, ffi.Pointer) +>() +external int KCGetAttribute( + KCItemRef item, + ffi.Pointer attr, + ffi.Pointer actualLength, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + KCItemRef, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCGetData( + KCItemRef item, + int maxLength, + ffi.Pointer data, + ffi.Pointer actualLength, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCGetDefaultKeychain(ffi.Pointer keychain); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCGetIndKeychain(int index$1, ffi.Pointer keychain); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCGetKeychain(KCItemRef item, ffi.Pointer keychain); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCGetKeychainManagerVersion(ffi.Pointer returnVers); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCGetKeychainName(KCRef keychain, StringPtr keychainName); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCGetStatus(KCRef keychain, ffi.Pointer keychainStatus); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCIsInteractionAllowed(); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCLock(KCRef keychain); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCMakeAliasFromKCRef( + KCRef keychain, + ffi.Pointer keychainAlias, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCMakeKCRefFromAlias( + AliasHandle keychainAlias, + ffi.Pointer keychain, +); + +@Deprecated('No longer supported') +@ffi.Native, ffi.Pointer)>() +external int KCMakeKCRefFromFSRef( + ffi.Pointer keychainFSRef, + ffi.Pointer keychain, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + KCItemClass, + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCNewItem( + int itemClass, + int itemCreator, + int length, + ffi.Pointer data, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCReleaseItem(ffi.Pointer item); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCReleaseKeychain(ffi.Pointer keychain); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCReleaseSearch(ffi.Pointer search); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCRemoveCallback(KCCallbackUPP callbackProc); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCSetAttribute(KCItemRef item, ffi.Pointer attr); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCSetData(KCItemRef item, int length, ffi.Pointer data); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCSetDefaultKeychain(KCRef keychain); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCSetInteractionAllowed(int state); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCUpdateItem(KCItemRef item); + +@ffi.Native() +external final audit_token_t KERNEL_AUDIT_TOKEN; + +@ffi.Native() +external final security_token_t KERNEL_SECURITY_TOKEN; + +@Deprecated('Deprecated') +@ffi.Native)>() +external int KillProcess(ffi.Pointer inProcess); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetApFontID(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetBootDrive(); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr LMGetIntlSpec(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetMemErr(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetResErr(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetResLoad(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetSysFontSize(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetSysMap(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetTmpResLoad(); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetApFontID(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetBootDrive(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetIntlSpec(Ptr value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetMemErr(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetResErr(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetResLoad(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetSysFontFam(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetSysFontSize(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetSysMap(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetTmpResLoad(int value); + +@Deprecated('Use LSCanURLAcceptURL instead.') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + OptionBits, + OptionBits, + ffi.Pointer, + ) +>() +external int LSCanRefAcceptItem( + ffi.Pointer inItemFSRef, + ffi.Pointer inTargetRef, + int inRoleMask, + int inFlags, + ffi.Pointer outAcceptsItem, +); + +@ffi.Native< + OSStatus Function( + CFURLRef, + CFURLRef, + OptionBits, + OptionBits, + ffi.Pointer, + ) +>() +external int LSCanURLAcceptURL( + CFURLRef inItemURL, + CFURLRef inTargetURL, + int inRoleMask, + int inFlags, + ffi.Pointer outAcceptsItem, +); + +@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenURL:] instead.') +@ffi.Native() +external CFArrayRef LSCopyAllHandlersForURLScheme(CFStringRef inURLScheme); + +@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenContentType:] instead.') +@ffi.Native() +external CFArrayRef LSCopyAllRoleHandlersForContentType( + CFStringRef inContentType, + int inRole, +); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') +@ffi.Native)>() +external int LSCopyApplicationForMIMEType( + CFStringRef inMIMEType, + int inRoleMask, + ffi.Pointer outAppURL, +); + +@Deprecated( + 'Use -[NSWorkspace URLsForApplicationsWithBundleIdentifier:] instead.', +) +@ffi.Native)>() +external CFArrayRef LSCopyApplicationURLsForBundleIdentifier( + CFStringRef inBundleIdentifier, + ffi.Pointer outError, +); + +@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenURL:] instead.') +@ffi.Native() +external CFArrayRef LSCopyApplicationURLsForURL(CFURLRef inURL, int inRoleMask); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') +@ffi.Native< + CFURLRef Function(CFStringRef, OptionBits, ffi.Pointer) +>() +external CFURLRef LSCopyDefaultApplicationURLForContentType( + CFStringRef inContentType, + int inRoleMask, + ffi.Pointer outError, +); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenURL:] instead.') +@ffi.Native)>() +external CFURLRef LSCopyDefaultApplicationURLForURL( + CFURLRef inURL, + int inRoleMask, + ffi.Pointer outError, +); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenURL:] instead.') +@ffi.Native() +external CFStringRef LSCopyDefaultHandlerForURLScheme(CFStringRef inURLScheme); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') +@ffi.Native() +external CFStringRef LSCopyDefaultRoleHandlerForContentType( + CFStringRef inContentType, + int inRole, +); + +@Deprecated( + 'Use the URL resource property kCFURLLocalizedNameKey or NSURLLocalizedNameKey instead.', +) +@ffi.Native, ffi.Pointer)>() +external int LSCopyDisplayNameForRef( + ffi.Pointer inRef, + ffi.Pointer outDisplayName, +); + +@Deprecated( + 'Use the URL resource property kCFURLLocalizedNameKey or NSURLLocalizedNameKey instead.', +) +@ffi.Native)>() +external int LSCopyDisplayNameForURL( + CFURLRef inURL, + ffi.Pointer outDisplayName, +); + +@Deprecated( + 'Use CFURLCopyResourcePropertyForKey or -[NSURL getResourceValue:forKey:error:] instead.', +) +@ffi.Native< + OSStatus Function( + ffi.Pointer, + OptionBits, + CFStringRef, + ffi.Pointer, + ) +>() +external int LSCopyItemAttribute( + ffi.Pointer inItem, + int inRoles, + CFStringRef inAttributeName, + ffi.Pointer outValue, +); + +@Deprecated( + 'Use CFURLCopyResourcePropertiesForKeys or -[NSURL resourceValuesForKeys:error:] instead.', +) +@ffi.Native< + OSStatus Function( + ffi.Pointer, + OptionBits, + CFArrayRef, + ffi.Pointer, + ) +>() +external int LSCopyItemAttributes( + ffi.Pointer inItem, + int inRoles, + CFArrayRef inAttributeNames, + ffi.Pointer outValues, +); + +@Deprecated('Use URL resource properties instead.') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + OptionBits, + ffi.Pointer, + ) +>() +external int LSCopyItemInfoForRef( + ffi.Pointer inItemRef, + int inWhichInfo, + ffi.Pointer outItemInfo, +); + +@Deprecated('Use URL resource properties instead.') +@ffi.Native< + OSStatus Function(CFURLRef, OptionBits, ffi.Pointer) +>() +external int LSCopyItemInfoForURL( + CFURLRef inURL, + int inWhichInfo, + ffi.Pointer outItemInfo, +); + +@Deprecated('Use UTTypeCopyDescription instead.') +@ffi.Native)>() +external int LSCopyKindStringForMIMEType( + CFStringRef inMIMEType, + ffi.Pointer outKindString, +); + +@Deprecated( + 'Use the URL resource property kCFURLLocalizedTypeDescriptionKey or NSURLLocalizedTypeDescriptionKey instead.', +) +@ffi.Native, ffi.Pointer)>() +external int LSCopyKindStringForRef( + ffi.Pointer inFSRef, + ffi.Pointer outKindString, +); + +@Deprecated('Use UTTypeCopyDescription instead.') +@ffi.Native< + OSStatus Function(OSType, OSType, CFStringRef, ffi.Pointer) +>() +external int LSCopyKindStringForTypeInfo( + int inType, + int inCreator, + CFStringRef inExtension, + ffi.Pointer outKindString, +); + +@Deprecated( + 'Use the URL resource property kCFURLLocalizedTypeDescriptionKey or NSURLLocalizedTypeDescriptionKey instead.', +) +@ffi.Native)>() +external int LSCopyKindStringForURL( + CFURLRef inURL, + ffi.Pointer outKindString, +); + +@Deprecated('Use LSCopyApplicationURLsForBundleIdentifier instead.') +@ffi.Native< + OSStatus Function( + OSType, + CFStringRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSFindApplicationForInfo( + int inCreator, + CFStringRef inBundleID, + CFStringRef inName, + ffi.Pointer outAppRef, + ffi.Pointer outAppURL, +); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') +@ffi.Native< + OSStatus Function( + OSType, + OSType, + CFStringRef, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSGetApplicationForInfo( + int inType, + int inCreator, + CFStringRef inExtension, + int inRoleMask, + ffi.Pointer outAppRef, + ffi.Pointer outAppURL, +); + +@Deprecated('Use LSCopyDefaultApplicationURLForURL instead.') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSGetApplicationForItem( + ffi.Pointer inItemRef, + int inRoleMask, + ffi.Pointer outAppRef, + ffi.Pointer outAppURL, +); + +@Deprecated('Use LSCopyDefaultApplicationURLForURL instead.') +@ffi.Native< + OSStatus Function( + CFURLRef, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSGetApplicationForURL( + CFURLRef inURL, + int inRoleMask, + ffi.Pointer outAppRef, + ffi.Pointer outAppURL, +); + +@Deprecated( + 'Use CFURLCopyPathExtension(), -[NSURL pathExtension], or -[NSString pathExtension] instead.', +) +@ffi.Native< + OSStatus Function( + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSGetExtensionInfo( + int inNameLen, + ffi.Pointer inNameBuffer, + ffi.Pointer outExtStartIndex, +); + +@Deprecated('Creator codes are deprecated on OS X.') +@ffi.Native() +external int LSGetHandlerOptionsForContentType(CFStringRef inContentType); + +@Deprecated( + 'Use -[NSWorkspace launchApplicationAtURL:options:configuration:error:] instead.', +) +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSOpenApplication( + ffi.Pointer appParams, + ffi.Pointer outPSN, +); + +@ffi.Native)>() +external int LSOpenCFURLRef( + CFURLRef inURL, + ffi.Pointer outLaunchedURL, +); + +@Deprecated('Use LSOpenCFURLRef or -[NSWorkspace openURL:] instead.') +@ffi.Native, ffi.Pointer)>() +external int LSOpenFSRef( + ffi.Pointer inRef, + ffi.Pointer outLaunchedRef, +); + +@Deprecated('Use LSOpenFromURLSpec or NSWorkspace instead.') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int LSOpenFromRefSpec( + ffi.Pointer inLaunchSpec, + ffi.Pointer outLaunchedRef, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int LSOpenFromURLSpec( + ffi.Pointer inLaunchSpec, + ffi.Pointer outLaunchedURL, +); + +@Deprecated('Use NSWorkspace instead.') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + CFIndex, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>() +external int LSOpenItemsWithRole( + ffi.Pointer inItems, + int inItemCount, + int inRole, + ffi.Pointer inAEParam, + ffi.Pointer inAppParams, + ffi.Pointer outPSNs, + int inMaxPSNCount, +); + +@Deprecated('Use NSWorkspace instead.') +@ffi.Native< + OSStatus Function( + CFArrayRef, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>() +external int LSOpenURLsWithRole( + CFArrayRef inURLs, + int inRole, + ffi.Pointer inAEParam, + ffi.Pointer inAppParams, + ffi.Pointer outPSNs, + int inMaxPSNCount, +); + +@Deprecated('Use LSRegisterURL instead.') +@ffi.Native, Boolean)>() +external int LSRegisterFSRef(ffi.Pointer inRef, int inUpdate); + +@ffi.Native() +external int LSRegisterURL(CFURLRef inURL, int inUpdate); + +@Deprecated( + 'Use -[NSWorkspace setDefaultApplicationAtURL:toOpenURLsWithScheme:completionHandler:] instead.', +) +@ffi.Native() +external int LSSetDefaultHandlerForURLScheme( + CFStringRef inURLScheme, + CFStringRef inHandlerBundleID, +); + +@Deprecated( + 'Use -[NSWorkspace setDefaultApplicationAtURL:toOpenContentType:completionHandler:] instead.', +) +@ffi.Native() +external int LSSetDefaultRoleHandlerForContentType( + CFStringRef inContentType, + int inRole, + CFStringRef inHandlerBundleID, +); + +@Deprecated( + 'Use the URL resource property kCFURLHasHiddenExtensionKey or NSURLHasHiddenExtensionKey instead.', +) +@ffi.Native, Boolean)>() +external int LSSetExtensionHiddenForRef(ffi.Pointer inRef, int inHide); + +@Deprecated( + 'Use the URL resource property kCFURLHasHiddenExtensionKey or NSURLHasHiddenExtensionKey instead.', +) +@ffi.Native() +external int LSSetExtensionHiddenForURL(CFURLRef inURL, int inHide); + +@Deprecated('Creator codes are deprecated on OS X.') +@ffi.Native() +external int LSSetHandlerOptionsForContentType( + CFStringRef inContentType, + int inOptions, +); + +@Deprecated( + 'Use CFURLSetResourcePropertyForKey or -[NSURL setResourceValue:forKey:error:] instead.', +) +@ffi.Native< + OSStatus Function(ffi.Pointer, OptionBits, CFStringRef, CFTypeRef) +>() +external int LSSetItemAttribute( + ffi.Pointer inItem, + int inRoles, + CFStringRef inAttributeName, + CFTypeRef inValue, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + LSSharedFileListRef, + CFRunLoopRef, + CFStringRef, + LSSharedFileListChangedProcPtr, + ffi.Pointer, + ) +>() +external void LSSharedFileListAddObserver( + LSSharedFileListRef inList, + CFRunLoopRef inRunloop, + CFStringRef inRunloopMode, + LSSharedFileListChangedProcPtr callback, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFTypeRef LSSharedFileListCopyProperty( + LSSharedFileListRef inList, + CFStringRef inPropertyName, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external CFArrayRef LSSharedFileListCopySnapshot( + LSSharedFileListRef inList, + ffi.Pointer outSnapshotSeed, +); + +@Deprecated('No longer supported') +@ffi.Native< + LSSharedFileListRef Function(CFAllocatorRef, CFStringRef, CFTypeRef) +>() +external LSSharedFileListRef LSSharedFileListCreate( + CFAllocatorRef inAllocator, + CFStringRef inListType, + CFTypeRef listOptions, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListGetSeedValue(LSSharedFileListRef inList); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native< + LSSharedFileListItemRef Function( + LSSharedFileListRef, + LSSharedFileListItemRef, + CFStringRef, + IconRef, + ffi.Pointer, + CFDictionaryRef, + CFArrayRef, + ) +>() +external LSSharedFileListItemRef LSSharedFileListInsertItemFSRef( + LSSharedFileListRef inList, + LSSharedFileListItemRef insertAfterThisItem, + CFStringRef inDisplayName, + IconRef inIconRef, + ffi.Pointer inFSRef, + CFDictionaryRef inPropertiesToSet, + CFArrayRef inPropertiesToClear, +); + +@Deprecated('No longer supported') +@ffi.Native< + LSSharedFileListItemRef Function( + LSSharedFileListRef, + LSSharedFileListItemRef, + CFStringRef, + IconRef, + CFURLRef, + CFDictionaryRef, + CFArrayRef, + ) +>() +external LSSharedFileListItemRef LSSharedFileListInsertItemURL( + LSSharedFileListRef inList, + LSSharedFileListItemRef insertAfterThisItem, + CFStringRef inDisplayName, + IconRef inIconRef, + CFURLRef inURL, + CFDictionaryRef inPropertiesToSet, + CFArrayRef inPropertiesToClear, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFStringRef LSSharedFileListItemCopyDisplayName( + LSSharedFileListItemRef inItem, +); + +@Deprecated('No longer supported') +@ffi.Native() +external IconRef LSSharedFileListItemCopyIconRef( + LSSharedFileListItemRef inItem, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFTypeRef LSSharedFileListItemCopyProperty( + LSSharedFileListItemRef inItem, + CFStringRef inPropertyName, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFURLRef Function( + LSSharedFileListItemRef, + LSSharedFileListResolutionFlags, + ffi.Pointer, + ) +>() +external CFURLRef LSSharedFileListItemCopyResolvedURL( + LSSharedFileListItemRef inItem, + int inFlags, + ffi.Pointer outError, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListItemGetID(LSSharedFileListItemRef inItem); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListItemGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + LSSharedFileListRef, + LSSharedFileListItemRef, + LSSharedFileListItemRef, + ) +>() +external int LSSharedFileListItemMove( + LSSharedFileListRef inList, + LSSharedFileListItemRef inItem, + LSSharedFileListItemRef inMoveAfterItem, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListItemRemove( + LSSharedFileListRef inList, + LSSharedFileListItemRef inItem, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LSSharedFileListItemRef, + LSSharedFileListResolutionFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSSharedFileListItemResolve( + LSSharedFileListItemRef inItem, + int inFlags, + ffi.Pointer outURL, + ffi.Pointer outRef, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function(LSSharedFileListItemRef, CFStringRef, CFTypeRef) +>() +external int LSSharedFileListItemSetProperty( + LSSharedFileListItemRef inItem, + CFStringRef inPropertyName, + CFTypeRef inPropertyData, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListRemoveAllItems(LSSharedFileListRef inList); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + LSSharedFileListRef, + CFRunLoopRef, + CFStringRef, + LSSharedFileListChangedProcPtr, + ffi.Pointer, + ) +>() +external void LSSharedFileListRemoveObserver( + LSSharedFileListRef inList, + CFRunLoopRef inRunloop, + CFStringRef inRunloopMode, + LSSharedFileListChangedProcPtr callback, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListSetAuthorization( + LSSharedFileListRef inList, + AuthorizationRef inAuthorization, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListSetProperty( + LSSharedFileListRef inList, + CFStringRef inPropertyName, + CFTypeRef inPropertyData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int LaunchApplication(LaunchPBPtr LaunchParams); + +@Deprecated('Deprecated') +@ffi.Native() +external void LoadResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + LocaleNameMask, + ffi.Pointer, + ) +>() +external int LocaleCountNames( + LocaleRef locale, + int opVariant, + int nameMask, + ffi.Pointer nameCount, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + LocaleNameMask, + ItemCount, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleGetIndName( + LocaleRef locale, + int opVariant, + int nameMask, + int nameIndex, + int maxNameLen, + ffi.Pointer actualNameLen, + ffi.Pointer displayName, + ffi.Pointer displayLocale, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + LocaleNameMask, + LocaleRef, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleGetName( + LocaleRef locale, + int opVariant, + int nameMask, + LocaleRef displayLocale, + int maxNameLen, + ffi.Pointer actualNameLen, + ffi.Pointer displayName, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int LocaleOperationCountLocales( + int opClass, + ffi.Pointer localeCount, +); + +@ffi.Native)>() +external int LocaleOperationCountNames( + int opClass, + ffi.Pointer nameCount, +); + +@ffi.Native< + OSStatus Function( + LocaleOperationClass, + ItemCount, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleOperationGetIndName( + int opClass, + int nameIndex, + int maxNameLen, + ffi.Pointer actualNameLen, + ffi.Pointer displayName, + ffi.Pointer displayLocale, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LocaleOperationClass, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleOperationGetLocales( + int opClass, + int maxLocaleCount, + ffi.Pointer actualLocaleCount, + ffi.Pointer localeVariantList, +); + +@ffi.Native< + OSStatus Function( + LocaleOperationClass, + LocaleRef, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleOperationGetName( + int opClass, + LocaleRef displayLocale, + int maxNameLen, + ffi.Pointer actualNameLen, + ffi.Pointer displayName, +); + +@ffi.Native)>() +external int LocaleRefFromLangOrRegionCode( + int lang, + int region, + ffi.Pointer locale, +); + +@ffi.Native, ffi.Pointer)>() +external int LocaleRefFromLocaleString( + ffi.Pointer localeString, + ffi.Pointer locale, +); + +@ffi.Native< + OSStatus Function(LocaleRef, LocalePartMask, ByteCount, ffi.Pointer) +>() +external int LocaleRefGetPartString( + LocaleRef locale, + int partMask, + int maxStringLen, + ffi.Pointer partString, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleStringToLangAndRegionCodes( + ffi.Pointer localeString, + ffi.Pointer lang, + ffi.Pointer region, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int Long2Fix(int x); + +@ffi.Native() +external CFArrayRef MDCopyLabelKinds(); + +@ffi.Native() +external MDLabelRef MDCopyLabelWithUUID(CFUUIDRef labelUUID); + +@ffi.Native() +external CFArrayRef MDCopyLabelsMatchingExpression( + CFStringRef simpleQueryString, +); + +@ffi.Native() +external CFArrayRef MDCopyLabelsWithKind(CFStringRef kind); + +@ffi.Native() +external CFTypeRef MDItemCopyAttribute(MDItemRef item, CFStringRef name); + +@ffi.Native() +external CFDictionaryRef MDItemCopyAttributeList(MDItemRef item); + +@ffi.Native() +external CFArrayRef MDItemCopyAttributeNames(MDItemRef item); + +@ffi.Native() +external CFDictionaryRef MDItemCopyAttributes(MDItemRef item, CFArrayRef names); + +@ffi.Native() +external CFArrayRef MDItemCopyLabels(MDItemRef item); + +@ffi.Native() +external MDItemRef MDItemCreate(CFAllocatorRef allocator, CFStringRef path); + +@ffi.Native() +external MDItemRef MDItemCreateWithURL(CFAllocatorRef allocator, CFURLRef url); + +@ffi.Native)>( + symbol: 'MDItemGetCacheFileDescriptors', +) +external void _MDItemGetCacheFileDescriptors( + CFArrayRef items, + ffi.Pointer completionHandler, +); + +void MDItemGetCacheFileDescriptors( + CFArrayRef items, + objc.ObjCBlock)> completionHandler, +) { + final _$$ref = completionHandler.ref; + return _MDItemGetCacheFileDescriptors(items, _$$ref.pointer); +} + +@ffi.Native() +external int MDItemGetTypeID(); + +@ffi.Native() +external int MDItemRemoveLabel(MDItemRef item, MDLabelRef label); + +@ffi.Native() +external int MDItemSetLabel(MDItemRef item, MDLabelRef label); + +@ffi.Native() +external CFArrayRef MDItemsCopyAttributes(CFArrayRef items, CFArrayRef names); + +@ffi.Native() +external CFArrayRef MDItemsCreateWithURLs( + CFAllocatorRef allocator, + CFArrayRef urls, +); + +@ffi.Native() +external CFTypeRef MDLabelCopyAttribute(MDLabelRef label, CFStringRef name); + +@ffi.Native() +external CFStringRef MDLabelCopyAttributeName(MDLabelRef label); + +@ffi.Native< + MDLabelRef Function(CFAllocatorRef, CFStringRef, CFStringRef, ffi.UnsignedInt) +>(symbol: 'MDLabelCreate') +external MDLabelRef _MDLabelCreate( + CFAllocatorRef allocator, + CFStringRef displayName, + CFStringRef kind, + int domain, +); + +MDLabelRef MDLabelCreate( + CFAllocatorRef allocator, + CFStringRef displayName, + CFStringRef kind, + MDLabelDomain domain, +) { + return _MDLabelCreate(allocator, displayName, kind, domain.value); +} + +@ffi.Native() +external int MDLabelDelete(MDLabelRef label); + +@ffi.Native() +external int MDLabelGetTypeID(); + +@ffi.Native() +external int MDLabelSetAttributes(MDLabelRef label, CFDictionaryRef attrs); + +@ffi.Native() +external CFStringRef MDQueryCopyQueryString(MDQueryRef query); + +@ffi.Native() +external CFArrayRef MDQueryCopySortingAttributes(MDQueryRef query); + +@ffi.Native() +external CFArrayRef MDQueryCopyValueListAttributes(MDQueryRef query); + +@ffi.Native() +external CFArrayRef MDQueryCopyValuesOfAttribute( + MDQueryRef query, + CFStringRef name, +); + +@ffi.Native< + MDQueryRef Function(CFAllocatorRef, CFStringRef, CFArrayRef, CFArrayRef) +>() +external MDQueryRef MDQueryCreate( + CFAllocatorRef allocator, + CFStringRef queryString, + CFArrayRef valueListAttrs, + CFArrayRef sortingAttrs, +); + +@ffi.Native< + MDQueryRef Function( + CFAllocatorRef, + CFStringRef, + CFArrayRef, + CFArrayRef, + CFArrayRef, + ) +>() +external MDQueryRef MDQueryCreateForItems( + CFAllocatorRef allocator, + CFStringRef queryString, + CFArrayRef valueListAttrs, + CFArrayRef sortingAttrs, + CFArrayRef items, +); + +@ffi.Native< + MDQueryRef Function( + CFAllocatorRef, + MDQueryRef, + CFStringRef, + CFArrayRef, + CFArrayRef, + ) +>() +external MDQueryRef MDQueryCreateSubset( + CFAllocatorRef allocator, + MDQueryRef query, + CFStringRef queryString, + CFArrayRef valueListAttrs, + CFArrayRef sortingAttrs, +); + +@ffi.Native() +external void MDQueryDisableUpdates(MDQueryRef query); + +@ffi.Native() +external void MDQueryEnableUpdates(MDQueryRef query); + +@ffi.Native() +external int MDQueryExecute(MDQueryRef query, int optionFlags); + +@ffi.Native Function(MDQueryRef, CFStringRef, CFIndex)>() +external ffi.Pointer MDQueryGetAttributeValueOfResultAtIndex( + MDQueryRef query, + CFStringRef name, + int idx, +); + +@ffi.Native() +external MDQueryBatchingParams MDQueryGetBatchingParameters(MDQueryRef query); + +@ffi.Native() +external int MDQueryGetCountOfResultsWithAttributeValue( + MDQueryRef query, + CFStringRef name, + CFTypeRef value, +); + +@ffi.Native)>() +external int MDQueryGetIndexOfResult( + MDQueryRef query, + ffi.Pointer result, +); + +@ffi.Native Function(MDQueryRef, CFIndex)>() +external ffi.Pointer MDQueryGetResultAtIndex( + MDQueryRef query, + int idx, +); + +@ffi.Native() +external int MDQueryGetResultCount(MDQueryRef query); + +@ffi.Native() +external int MDQueryGetSortOptionFlagsForAttribute( + MDQueryRef query, + CFStringRef fieldName, +); + +@ffi.Native() +external int MDQueryGetTypeID(); + +@ffi.Native() +external int MDQueryIsGatheringComplete(MDQueryRef query); + +@ffi.Native() +external void MDQuerySetBatchingParameters( + MDQueryRef query, + MDQueryBatchingParams params, +); + +@ffi.Native< + ffi.Void Function( + MDQueryRef, + MDQueryCreateResultFunction, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void MDQuerySetCreateResultFunction( + MDQueryRef query, + MDQueryCreateResultFunction func, + ffi.Pointer context, + ffi.Pointer cb, +); + +@ffi.Native< + ffi.Void Function( + MDQueryRef, + MDQueryCreateValueFunction, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void MDQuerySetCreateValueFunction( + MDQueryRef query, + MDQueryCreateValueFunction func, + ffi.Pointer context, + ffi.Pointer cb, +); + +@ffi.Native( + symbol: 'MDQuerySetDispatchQueue', +) +external void _MDQuerySetDispatchQueue( + MDQueryRef query, + dispatch_queue_t queue, +); + +void MDQuerySetDispatchQueue(MDQueryRef query, Dartdispatch_queue_t queue) { + final _$$ref = queue.ref; + return _MDQuerySetDispatchQueue(query, _$$ref.pointer); +} + +@ffi.Native() +external void MDQuerySetMaxCount(MDQueryRef query, int size); + +@ffi.Native() +external void MDQuerySetSearchScope( + MDQueryRef query, + CFArrayRef scopeDirectories, + int scopeOptions, +); + +@ffi.Native< + ffi.Void Function( + MDQueryRef, + MDQuerySortComparatorFunction, + ffi.Pointer, + ) +>() +external void MDQuerySetSortComparator( + MDQueryRef query, + MDQuerySortComparatorFunction comparator, + ffi.Pointer context, +); + +@ffi.Native)>( + symbol: 'MDQuerySetSortComparatorBlock', +) +external void _MDQuerySetSortComparatorBlock( + MDQueryRef query, + ffi.Pointer comparator, +); + +void MDQuerySetSortComparatorBlock( + MDQueryRef query, + objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + > + comparator, +) { + final _$$ref = comparator.ref; + return _MDQuerySetSortComparatorBlock(query, _$$ref.pointer); +} + +@ffi.Native() +external int MDQuerySetSortOptionFlagsForAttribute( + MDQueryRef query, + CFStringRef fieldName, + int flags, +); + +@ffi.Native() +external int MDQuerySetSortOrder(MDQueryRef query, CFArrayRef sortingAttrs); + +@ffi.Native() +external void MDQueryStop(MDQueryRef query); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + ffi.Pointer, + MDS_FUNCS_PTR, + ffi.Pointer, + ) +>() +external int MDS_Initialize( + ffi.Pointer pCallerGuid, + ffi.Pointer pMemoryFunctions, + MDS_FUNCS_PTR pDlFunctions, + ffi.Pointer hMds, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int MDS_Install(int MdsHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int MDS_Terminate(int MdsHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int MDS_Uninstall(int MdsHandle); + +@ffi.Native() +external CFArrayRef MDSchemaCopyAllAttributes(); + +@ffi.Native() +external CFDictionaryRef MDSchemaCopyAttributesForContentType( + CFStringRef contentTypeUTI, +); + +@ffi.Native() +external CFStringRef MDSchemaCopyDisplayDescriptionForAttribute( + CFStringRef name, +); + +@ffi.Native() +external CFStringRef MDSchemaCopyDisplayNameForAttribute(CFStringRef name); + +@ffi.Native() +external CFDictionaryRef MDSchemaCopyMetaAttributesForAttribute( + CFStringRef name, +); + +@Deprecated('Use malloc()') +@ffi.Native() +external LogicalAddress MPAllocate(int size); + +@Deprecated('Use aligned_alloc()') +@ffi.Native() +external LogicalAddress MPAllocateAligned(int size, int alignment, int options); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPAllocateTaskStorageIndex( + ffi.Pointer taskIndex, +); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function(MPTimerID, ffi.Pointer, OptionBits) +>() +external int MPArmTimer( + MPTimerID timerID, + ffi.Pointer expirationTime, + int options, +); + +@Deprecated('Use bzero()') +@ffi.Native() +external void MPBlockClear(LogicalAddress address, int size); + +@Deprecated('Use memcpy()') +@ffi.Native() +external void MPBlockCopy( + LogicalAddress source, + LogicalAddress destination, + int size, +); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCancelTimer( + MPTimerID timerID, + ffi.Pointer timeRemaining, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPCauseNotification(MPNotificationID notificationID); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCreateCriticalRegion( + ffi.Pointer criticalRegion, +); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCreateEvent(ffi.Pointer event); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCreateNotification(ffi.Pointer notificationID); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCreateQueue(ffi.Pointer queue); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + MPSemaphoreCount, + MPSemaphoreCount, + ffi.Pointer, + ) +>() +external int MPCreateSemaphore( + int maximumValue, + int initialValue, + ffi.Pointer semaphore, +); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + TaskProc, + ffi.Pointer, + ByteCount, + MPQueueID, + ffi.Pointer, + ffi.Pointer, + MPTaskOptions, + ffi.Pointer, + ) +>() +external int MPCreateTask( + TaskProc entryPoint, + ffi.Pointer parameter, + int stackSize, + MPQueueID notifyQueue, + ffi.Pointer terminationParameter1, + ffi.Pointer terminationParameter2, + int options, + ffi.Pointer task, +); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCreateTimer(ffi.Pointer timerID); + +@Deprecated('Use libDispatch') +@ffi.Native() +external MPTaskID MPCurrentTaskID(); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeallocateTaskStorageIndex(int taskIndex); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPDelayUntil(ffi.Pointer expirationTime); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteCriticalRegion(MPCriticalRegionID criticalRegion); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteEvent(MPEventID event); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteNotification(MPNotificationID notificationID); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteQueue(MPQueueID queue); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteSemaphore(MPSemaphoreID semaphore); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteTimer(MPTimerID timerID); + +@Deprecated('No longer supported.') +@ffi.Native() +external int MPDisposeTaskException(MPTaskID task, int action); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPEnterCriticalRegion( + MPCriticalRegionID criticalRegion, + int timeout, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external void MPExit(int status); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPExitCriticalRegion(MPCriticalRegionID criticalRegion); + +@Deprecated('No longer supported.') +@ffi.Native< + OSStatus Function(MPTaskID, MPTaskStateKind, ffi.Pointer) +>() +external int MPExtractTaskState( + MPTaskID task, + int kind, + ffi.Pointer info, +); + +@Deprecated('Use free()') +@ffi.Native() +external void MPFree(LogicalAddress object); + +@Deprecated('Use malloc_size()') +@ffi.Native() +external int MPGetAllocatedBlockSize(LogicalAddress object); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int MPGetNextCpuID( + MPCoherenceID owningCoherenceID, + ffi.Pointer cpuID, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int MPGetNextTaskID( + MPProcessID owningProcessID, + ffi.Pointer taskID, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external TaskStorageValue MPGetTaskStorageValue(int taskIndex); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + MPNotificationID, + MPOpaqueID, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int MPModifyNotification( + MPNotificationID notificationID, + MPOpaqueID anID, + ffi.Pointer notifyParam1, + ffi.Pointer notifyParam2, + ffi.Pointer notifyParam3, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + MPNotificationID, + MPOpaqueIDClass, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int MPModifyNotificationParameters( + MPNotificationID notificationID, + int kind, + ffi.Pointer notifyParam1, + ffi.Pointer notifyParam2, + ffi.Pointer notifyParam3, +); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + MPQueueID, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int MPNotifyQueue( + MPQueueID queue, + ffi.Pointer param1, + ffi.Pointer param2, + ffi.Pointer param3, +); + +@Deprecated('Use sysctl(hw.ncpu)') +@ffi.Native() +external int MPProcessors(); + +@Deprecated('Use sysctl(hw.activecpu)') +@ffi.Native() +external int MPProcessorsScheduled(); + +@Deprecated('No longer supported.') +@ffi.Native() +external int MPRegisterDebugger(MPQueueID queue, int level); + +@Deprecated('Use libDispatch') +@ffi.Native< + ffi.Pointer Function( + MPRemoteProcedure, + ffi.Pointer, + MPRemoteContext, + ) +>() +external ffi.Pointer MPRemoteCall( + MPRemoteProcedure remoteProc, + ffi.Pointer parameter, + int context, +); + +@Deprecated('No longer supported.') +@ffi.Native< + ffi.Pointer Function( + MPRemoteProcedure, + ffi.Pointer, + MPRemoteContext, + ) +>() +external ffi.Pointer MPRemoteCallCFM( + MPRemoteProcedure remoteProc, + ffi.Pointer parameter, + int context, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSetEvent(MPEventID event, int flags); + +@Deprecated('No longer supported.') +@ffi.Native() +external int MPSetExceptionHandler(MPTaskID task, MPQueueID exceptionQ); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSetQueueReserve(MPQueueID queue, int count); + +@Deprecated('No longer supported.') +@ffi.Native< + OSStatus Function(MPTaskID, MPTaskStateKind, ffi.Pointer) +>() +external int MPSetTaskState( + MPTaskID task, + int kind, + ffi.Pointer info, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSetTaskStorageValue(int taskIndex, TaskStorageValue value); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSetTaskType(MPTaskID task, int taskType); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSetTaskWeight(MPTaskID task, int weight); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + MPTimerID, + MPOpaqueID, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int MPSetTimerNotify( + MPTimerID timerID, + MPOpaqueID anID, + ffi.Pointer notifyParam1, + ffi.Pointer notifyParam2, + ffi.Pointer notifyParam3, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSignalSemaphore(MPSemaphoreID semaphore); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPTaskIsPreemptive(MPTaskID taskID); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPTerminateTask(MPTaskID task, int terminationStatus); + +@Deprecated('No longer supported.') +@ffi.Native() +external int MPThrowException(MPTaskID task, int kind); + +@Deprecated('No longer supported.') +@ffi.Native() +external int MPUnregisterDebugger(MPQueueID queue); + +@Deprecated('Use libDispatch') +@ffi.Native, Duration)>() +external int MPWaitForEvent( + MPEventID event, + ffi.Pointer flags, + int timeout, +); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + MPQueueID, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + Duration, + ) +>() +external int MPWaitOnQueue( + MPQueueID queue, + ffi.Pointer> param1, + ffi.Pointer> param2, + ffi.Pointer> param3, + int timeout, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPWaitOnSemaphore(MPSemaphoreID semaphore, int timeout); + +@Deprecated('Use libDispatch') +@ffi.Native() +external void MPYield(); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int MakeVoiceSpec(int creator, int id, ffi.Pointer voice); + +@Deprecated('No longer supported') +@ffi.Native() +external int MaximumProcessorSpeed(); + +@Deprecated('Deprecated') +@ffi.Native() +external int MemError(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void Microseconds(ffi.Pointer microTickCount); + +@Deprecated('No longer supported') +@ffi.Native() +external int MinimumProcessorSpeed(); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Long Function( + Handle, + ffi.Long, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Long, + ) +>() +external int Munger( + Handle h, + int offset, + ffi.Pointer ptr1, + int len1, + ffi.Pointer ptr2, + int len2, +); + +@ffi.Native() +external NDR_record_t NDR_record; + +@ffi.Native>(symbol: 'NSAMPMDesignation') +external ffi.Pointer _NSAMPMDesignation; + +objc.NSString get NSAMPMDesignation => + objc.NSString.fromPointer(_NSAMPMDesignation, retain: true, release: true); + +set NSAMPMDesignation(objc.NSString value) { + objc.NSString.fromPointer( + _NSAMPMDesignation, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAMPMDesignation = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSAllHashTableObjects') +external ffi.Pointer _NSAllHashTableObjects( + ffi.Pointer table, +); + +objc.NSArray NSAllHashTableObjects(NSHashTable table) { + final _$$ref = table.ref; + return objc.NSArray.fromPointer( + _NSAllHashTableObjects(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSAllMapTableKeys') +external ffi.Pointer _NSAllMapTableKeys( + ffi.Pointer table, +); + +objc.NSArray NSAllMapTableKeys(NSMapTable table) { + final _$$ref = table.ref; + return objc.NSArray.fromPointer( + _NSAllMapTableKeys(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSAllMapTableValues') +external ffi.Pointer _NSAllMapTableValues( + ffi.Pointer table, +); + +objc.NSArray NSAllMapTableValues(NSMapTable table) { + final _$$ref = table.ref; + return objc.NSArray.fromPointer( + _NSAllMapTableValues(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native Function(NSUInteger, NSUInteger)>() +external ffi.Pointer NSAllocateCollectable(int size, int options); + +@ffi.Native Function(NSUInteger)>() +external ffi.Pointer NSAllocateMemoryPages(int bytes); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) +>(symbol: 'NSAllocateObject') +external ffi.Pointer _NSAllocateObject( + ffi.Pointer aClass, + int extraBytes, + ffi.Pointer zone, +); + +objc.ObjCObject NSAllocateObject( + objc.ObjCObject aClass, + DartNSUInteger extraBytes, + ffi.Pointer zone, +) { + final _$$ref = aClass.ref; + return objc.ObjCObject( + _NSAllocateObject(_$$ref.pointer, extraBytes, zone), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'NSAlternateDescriptionAttributeName', +) +external NSAttributedStringKey _NSAlternateDescriptionAttributeName; + +DartNSAttributedStringKey get NSAlternateDescriptionAttributeName => + objc.NSString.fromPointer( + _NSAlternateDescriptionAttributeName, + retain: true, + release: true, + ); + +set NSAlternateDescriptionAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSAlternateDescriptionAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAlternateDescriptionAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSAppleEventManagerWillProcessFirstEventNotification', +) +external NSNotificationName +_NSAppleEventManagerWillProcessFirstEventNotification; + +DartNSNotificationName +get NSAppleEventManagerWillProcessFirstEventNotification => + objc.NSString.fromPointer( + _NSAppleEventManagerWillProcessFirstEventNotification, + retain: true, + release: true, + ); + +set NSAppleEventManagerWillProcessFirstEventNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSAppleEventManagerWillProcessFirstEventNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleEventManagerWillProcessFirstEventNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native() +external final double NSAppleEventTimeOutDefault; + +@ffi.Native() +external final double NSAppleEventTimeOutNone; + +@ffi.Native>( + symbol: 'NSAppleScriptErrorAppName', +) +external ffi.Pointer _NSAppleScriptErrorAppName; + +objc.NSString get NSAppleScriptErrorAppName => objc.NSString.fromPointer( + _NSAppleScriptErrorAppName, + retain: true, + release: true, +); + +set NSAppleScriptErrorAppName(objc.NSString value) { + objc.NSString.fromPointer( + _NSAppleScriptErrorAppName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleScriptErrorAppName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSAppleScriptErrorBriefMessage', +) +external ffi.Pointer _NSAppleScriptErrorBriefMessage; + +objc.NSString get NSAppleScriptErrorBriefMessage => objc.NSString.fromPointer( + _NSAppleScriptErrorBriefMessage, + retain: true, + release: true, +); + +set NSAppleScriptErrorBriefMessage(objc.NSString value) { + objc.NSString.fromPointer( + _NSAppleScriptErrorBriefMessage, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleScriptErrorBriefMessage = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSAppleScriptErrorMessage', +) +external ffi.Pointer _NSAppleScriptErrorMessage; + +objc.NSString get NSAppleScriptErrorMessage => objc.NSString.fromPointer( + _NSAppleScriptErrorMessage, + retain: true, + release: true, +); + +set NSAppleScriptErrorMessage(objc.NSString value) { + objc.NSString.fromPointer( + _NSAppleScriptErrorMessage, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleScriptErrorMessage = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSAppleScriptErrorNumber', +) +external ffi.Pointer _NSAppleScriptErrorNumber; + +objc.NSString get NSAppleScriptErrorNumber => objc.NSString.fromPointer( + _NSAppleScriptErrorNumber, + retain: true, + release: true, +); + +set NSAppleScriptErrorNumber(objc.NSString value) { + objc.NSString.fromPointer( + _NSAppleScriptErrorNumber, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleScriptErrorNumber = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSAppleScriptErrorRange') +external ffi.Pointer _NSAppleScriptErrorRange; + +objc.NSString get NSAppleScriptErrorRange => objc.NSString.fromPointer( + _NSAppleScriptErrorRange, + retain: true, + release: true, +); + +set NSAppleScriptErrorRange(objc.NSString value) { + objc.NSString.fromPointer( + _NSAppleScriptErrorRange, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleScriptErrorRange = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSArgumentDomain') +external ffi.Pointer _NSArgumentDomain; + +objc.NSString get NSArgumentDomain => + objc.NSString.fromPointer(_NSArgumentDomain, retain: true, release: true); + +set NSArgumentDomain(objc.NSString value) { + objc.NSString.fromPointer( + _NSArgumentDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSArgumentDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSAssertionHandlerKey') +external ffi.Pointer _NSAssertionHandlerKey; + +objc.NSString get NSAssertionHandlerKey => objc.NSString.fromPointer( + _NSAssertionHandlerKey, + retain: true, + release: true, +); + +set NSAssertionHandlerKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSAssertionHandlerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAssertionHandlerKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSAverageKeyValueOperator') +external NSKeyValueOperator _NSAverageKeyValueOperator; + +DartNSKeyValueOperator get NSAverageKeyValueOperator => + objc.NSString.fromPointer( + _NSAverageKeyValueOperator, + retain: true, + release: true, + ); + +set NSAverageKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSAverageKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAverageKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSBuddhistCalendar') +external ffi.Pointer _NSBuddhistCalendar; + +objc.NSString get NSBuddhistCalendar => + objc.NSString.fromPointer(_NSBuddhistCalendar, retain: true, release: true); + +set NSBuddhistCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSBuddhistCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSBuddhistCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSBundleDidLoadNotification') +external NSNotificationName _NSBundleDidLoadNotification; + +DartNSNotificationName get NSBundleDidLoadNotification => + objc.NSString.fromPointer( + _NSBundleDidLoadNotification, + retain: true, + release: true, + ); + +set NSBundleDidLoadNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSBundleDidLoadNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSBundleDidLoadNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final double NSBundleResourceRequestLoadingPriorityUrgent; + +@ffi.Native( + symbol: 'NSBundleResourceRequestLowDiskSpaceNotification', +) +external NSNotificationName _NSBundleResourceRequestLowDiskSpaceNotification; + +DartNSNotificationName get NSBundleResourceRequestLowDiskSpaceNotification => + objc.NSString.fromPointer( + _NSBundleResourceRequestLowDiskSpaceNotification, + retain: true, + release: true, + ); + +set NSBundleResourceRequestLowDiskSpaceNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSBundleResourceRequestLowDiskSpaceNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSBundleResourceRequestLowDiskSpaceNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarDayChangedNotification') +external NSNotificationName _NSCalendarDayChangedNotification; + +DartNSNotificationName get NSCalendarDayChangedNotification => + objc.NSString.fromPointer( + _NSCalendarDayChangedNotification, + retain: true, + release: true, + ); + +set NSCalendarDayChangedNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSCalendarDayChangedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarDayChangedNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierBangla') +external NSCalendarIdentifier _NSCalendarIdentifierBangla; + +DartNSCalendarIdentifier get NSCalendarIdentifierBangla => + objc.NSString.fromPointer( + _NSCalendarIdentifierBangla, + retain: true, + release: true, + ); + +set NSCalendarIdentifierBangla(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierBangla, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierBangla = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierBuddhist') +external NSCalendarIdentifier _NSCalendarIdentifierBuddhist; + +DartNSCalendarIdentifier get NSCalendarIdentifierBuddhist => + objc.NSString.fromPointer( + _NSCalendarIdentifierBuddhist, + retain: true, + release: true, + ); + +set NSCalendarIdentifierBuddhist(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierBuddhist, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierBuddhist = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierChinese') +external NSCalendarIdentifier _NSCalendarIdentifierChinese; + +DartNSCalendarIdentifier get NSCalendarIdentifierChinese => + objc.NSString.fromPointer( + _NSCalendarIdentifierChinese, + retain: true, + release: true, + ); + +set NSCalendarIdentifierChinese(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierChinese, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierChinese = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierCoptic') +external NSCalendarIdentifier _NSCalendarIdentifierCoptic; + +DartNSCalendarIdentifier get NSCalendarIdentifierCoptic => + objc.NSString.fromPointer( + _NSCalendarIdentifierCoptic, + retain: true, + release: true, + ); + +set NSCalendarIdentifierCoptic(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierCoptic, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierCoptic = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierDangi') +external NSCalendarIdentifier _NSCalendarIdentifierDangi; + +DartNSCalendarIdentifier get NSCalendarIdentifierDangi => + objc.NSString.fromPointer( + _NSCalendarIdentifierDangi, + retain: true, + release: true, + ); + +set NSCalendarIdentifierDangi(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierDangi, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierDangi = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSCalendarIdentifierEthiopicAmeteAlem', +) +external NSCalendarIdentifier _NSCalendarIdentifierEthiopicAmeteAlem; + +DartNSCalendarIdentifier get NSCalendarIdentifierEthiopicAmeteAlem => + objc.NSString.fromPointer( + _NSCalendarIdentifierEthiopicAmeteAlem, + retain: true, + release: true, + ); + +set NSCalendarIdentifierEthiopicAmeteAlem(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierEthiopicAmeteAlem, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierEthiopicAmeteAlem = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSCalendarIdentifierEthiopicAmeteMihret', +) +external NSCalendarIdentifier _NSCalendarIdentifierEthiopicAmeteMihret; + +DartNSCalendarIdentifier get NSCalendarIdentifierEthiopicAmeteMihret => + objc.NSString.fromPointer( + _NSCalendarIdentifierEthiopicAmeteMihret, + retain: true, + release: true, + ); + +set NSCalendarIdentifierEthiopicAmeteMihret(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierEthiopicAmeteMihret, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierEthiopicAmeteMihret = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierGregorian') +external NSCalendarIdentifier _NSCalendarIdentifierGregorian; + +DartNSCalendarIdentifier get NSCalendarIdentifierGregorian => + objc.NSString.fromPointer( + _NSCalendarIdentifierGregorian, + retain: true, + release: true, + ); + +set NSCalendarIdentifierGregorian(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierGregorian, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierGregorian = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierGujarati') +external NSCalendarIdentifier _NSCalendarIdentifierGujarati; + +DartNSCalendarIdentifier get NSCalendarIdentifierGujarati => + objc.NSString.fromPointer( + _NSCalendarIdentifierGujarati, + retain: true, + release: true, + ); + +set NSCalendarIdentifierGujarati(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierGujarati, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierGujarati = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierHebrew') +external NSCalendarIdentifier _NSCalendarIdentifierHebrew; + +DartNSCalendarIdentifier get NSCalendarIdentifierHebrew => + objc.NSString.fromPointer( + _NSCalendarIdentifierHebrew, + retain: true, + release: true, + ); + +set NSCalendarIdentifierHebrew(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierHebrew, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierHebrew = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierISO8601') +external NSCalendarIdentifier _NSCalendarIdentifierISO8601; + +DartNSCalendarIdentifier get NSCalendarIdentifierISO8601 => + objc.NSString.fromPointer( + _NSCalendarIdentifierISO8601, + retain: true, + release: true, + ); + +set NSCalendarIdentifierISO8601(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierISO8601, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierISO8601 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierIndian') +external NSCalendarIdentifier _NSCalendarIdentifierIndian; + +DartNSCalendarIdentifier get NSCalendarIdentifierIndian => + objc.NSString.fromPointer( + _NSCalendarIdentifierIndian, + retain: true, + release: true, + ); + +set NSCalendarIdentifierIndian(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierIndian, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierIndian = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierIslamic') +external NSCalendarIdentifier _NSCalendarIdentifierIslamic; + +DartNSCalendarIdentifier get NSCalendarIdentifierIslamic => + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamic, + retain: true, + release: true, + ); + +set NSCalendarIdentifierIslamic(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamic, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierIslamic = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierIslamicCivil') +external NSCalendarIdentifier _NSCalendarIdentifierIslamicCivil; + +DartNSCalendarIdentifier get NSCalendarIdentifierIslamicCivil => + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicCivil, + retain: true, + release: true, + ); + +set NSCalendarIdentifierIslamicCivil(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicCivil, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierIslamicCivil = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierIslamicTabular') +external NSCalendarIdentifier _NSCalendarIdentifierIslamicTabular; + +DartNSCalendarIdentifier get NSCalendarIdentifierIslamicTabular => + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicTabular, + retain: true, + release: true, + ); + +set NSCalendarIdentifierIslamicTabular(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicTabular, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierIslamicTabular = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSCalendarIdentifierIslamicUmmAlQura', +) +external NSCalendarIdentifier _NSCalendarIdentifierIslamicUmmAlQura; + +DartNSCalendarIdentifier get NSCalendarIdentifierIslamicUmmAlQura => + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicUmmAlQura, + retain: true, + release: true, + ); + +set NSCalendarIdentifierIslamicUmmAlQura(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicUmmAlQura, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierIslamicUmmAlQura = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierJapanese') +external NSCalendarIdentifier _NSCalendarIdentifierJapanese; + +DartNSCalendarIdentifier get NSCalendarIdentifierJapanese => + objc.NSString.fromPointer( + _NSCalendarIdentifierJapanese, + retain: true, + release: true, + ); + +set NSCalendarIdentifierJapanese(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierJapanese, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierJapanese = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierKannada') +external NSCalendarIdentifier _NSCalendarIdentifierKannada; + +DartNSCalendarIdentifier get NSCalendarIdentifierKannada => + objc.NSString.fromPointer( + _NSCalendarIdentifierKannada, + retain: true, + release: true, + ); + +set NSCalendarIdentifierKannada(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierKannada, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierKannada = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierMalayalam') +external NSCalendarIdentifier _NSCalendarIdentifierMalayalam; + +DartNSCalendarIdentifier get NSCalendarIdentifierMalayalam => + objc.NSString.fromPointer( + _NSCalendarIdentifierMalayalam, + retain: true, + release: true, + ); + +set NSCalendarIdentifierMalayalam(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierMalayalam, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierMalayalam = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierMarathi') +external NSCalendarIdentifier _NSCalendarIdentifierMarathi; + +DartNSCalendarIdentifier get NSCalendarIdentifierMarathi => + objc.NSString.fromPointer( + _NSCalendarIdentifierMarathi, + retain: true, + release: true, + ); + +set NSCalendarIdentifierMarathi(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierMarathi, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierMarathi = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierOdia') +external NSCalendarIdentifier _NSCalendarIdentifierOdia; + +DartNSCalendarIdentifier get NSCalendarIdentifierOdia => + objc.NSString.fromPointer( + _NSCalendarIdentifierOdia, + retain: true, + release: true, + ); + +set NSCalendarIdentifierOdia(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierOdia, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierOdia = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierPersian') +external NSCalendarIdentifier _NSCalendarIdentifierPersian; + +DartNSCalendarIdentifier get NSCalendarIdentifierPersian => + objc.NSString.fromPointer( + _NSCalendarIdentifierPersian, + retain: true, + release: true, + ); + +set NSCalendarIdentifierPersian(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierPersian, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierPersian = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierRepublicOfChina') +external NSCalendarIdentifier _NSCalendarIdentifierRepublicOfChina; + +DartNSCalendarIdentifier get NSCalendarIdentifierRepublicOfChina => + objc.NSString.fromPointer( + _NSCalendarIdentifierRepublicOfChina, + retain: true, + release: true, + ); + +set NSCalendarIdentifierRepublicOfChina(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierRepublicOfChina, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierRepublicOfChina = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierTamil') +external NSCalendarIdentifier _NSCalendarIdentifierTamil; + +DartNSCalendarIdentifier get NSCalendarIdentifierTamil => + objc.NSString.fromPointer( + _NSCalendarIdentifierTamil, + retain: true, + release: true, + ); + +set NSCalendarIdentifierTamil(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierTamil, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierTamil = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierTelugu') +external NSCalendarIdentifier _NSCalendarIdentifierTelugu; + +DartNSCalendarIdentifier get NSCalendarIdentifierTelugu => + objc.NSString.fromPointer( + _NSCalendarIdentifierTelugu, + retain: true, + release: true, + ); + +set NSCalendarIdentifierTelugu(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierTelugu, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierTelugu = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierVietnamese') +external NSCalendarIdentifier _NSCalendarIdentifierVietnamese; + +DartNSCalendarIdentifier get NSCalendarIdentifierVietnamese => + objc.NSString.fromPointer( + _NSCalendarIdentifierVietnamese, + retain: true, + release: true, + ); + +set NSCalendarIdentifierVietnamese(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierVietnamese, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierVietnamese = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierVikram') +external NSCalendarIdentifier _NSCalendarIdentifierVikram; + +DartNSCalendarIdentifier get NSCalendarIdentifierVikram => + objc.NSString.fromPointer( + _NSCalendarIdentifierVikram, + retain: true, + release: true, + ); + +set NSCalendarIdentifierVikram(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierVikram, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierVikram = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCharacterConversionException') +external NSExceptionName _NSCharacterConversionException; + +DartNSExceptionName get NSCharacterConversionException => + objc.NSString.fromPointer( + _NSCharacterConversionException, + retain: true, + release: true, + ); + +set NSCharacterConversionException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSCharacterConversionException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCharacterConversionException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSChineseCalendar') +external ffi.Pointer _NSChineseCalendar; + +objc.NSString get NSChineseCalendar => + objc.NSString.fromPointer(_NSChineseCalendar, retain: true, release: true); + +set NSChineseCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSChineseCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSChineseCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSClassDescriptionNeededForClassNotification', +) +external NSNotificationName _NSClassDescriptionNeededForClassNotification; + +DartNSNotificationName get NSClassDescriptionNeededForClassNotification => + objc.NSString.fromPointer( + _NSClassDescriptionNeededForClassNotification, + retain: true, + release: true, + ); + +set NSClassDescriptionNeededForClassNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSClassDescriptionNeededForClassNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSClassDescriptionNeededForClassNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSClassFromString') +external ffi.Pointer _NSClassFromString( + ffi.Pointer aClassName, +); + +objc.ObjCObject? NSClassFromString(objc.NSString aClassName) { + final _$$ref = aClassName.ref; + return _NSClassFromString(_$$ref.pointer).address == 0 + ? null + : objc.ObjCObject( + _NSClassFromString(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSCocoaErrorDomain') +external NSErrorDomain _NSCocoaErrorDomain; + +DartNSErrorDomain get NSCocoaErrorDomain => + objc.NSString.fromPointer(_NSCocoaErrorDomain, retain: true, release: true); + +set NSCocoaErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSCocoaErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCocoaErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSCompareHashTables') +external bool _NSCompareHashTables( + ffi.Pointer table1, + ffi.Pointer table2, +); + +bool NSCompareHashTables(NSHashTable table1, NSHashTable table2) { + final _$$ref = table1.ref; + final _$$ref$1 = table2.ref; + return _NSCompareHashTables(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSCompareMapTables') +external bool _NSCompareMapTables( + ffi.Pointer table1, + ffi.Pointer table2, +); + +bool NSCompareMapTables(NSMapTable table1, NSMapTable table2) { + final _$$ref = table1.ref; + final _$$ref$1 = table2.ref; + return _NSCompareMapTables(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native>( + symbol: 'NSConnectionDidDieNotification', +) +external ffi.Pointer _NSConnectionDidDieNotification; + +objc.NSString get NSConnectionDidDieNotification => objc.NSString.fromPointer( + _NSConnectionDidDieNotification, + retain: true, + release: true, +); + +set NSConnectionDidDieNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSConnectionDidDieNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSConnectionDidDieNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSConnectionDidInitializeNotification', +) +external ffi.Pointer +_NSConnectionDidInitializeNotification; + +objc.NSString get NSConnectionDidInitializeNotification => + objc.NSString.fromPointer( + _NSConnectionDidInitializeNotification, + retain: true, + release: true, + ); + +set NSConnectionDidInitializeNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSConnectionDidInitializeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSConnectionDidInitializeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSConnectionReplyMode') +external ffi.Pointer _NSConnectionReplyMode; + +objc.NSString get NSConnectionReplyMode => objc.NSString.fromPointer( + _NSConnectionReplyMode, + retain: true, + release: true, +); + +set NSConnectionReplyMode(objc.NSString value) { + objc.NSString.fromPointer( + _NSConnectionReplyMode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSConnectionReplyMode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external bool NSContainsRect(NSRect aRect, NSRect bRect); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSCopyHashTableWithZone') +external ffi.Pointer _NSCopyHashTableWithZone( + ffi.Pointer table, + ffi.Pointer zone, +); + +NSHashTable NSCopyHashTableWithZone( + NSHashTable table, + ffi.Pointer zone, +) { + final _$$ref = table.ref; + return NSHashTable.fromPointer( + _NSCopyHashTableWithZone(_$$ref.pointer, zone), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSCopyMapTableWithZone') +external ffi.Pointer _NSCopyMapTableWithZone( + ffi.Pointer table, + ffi.Pointer zone, +); + +NSMapTable NSCopyMapTableWithZone(NSMapTable table, ffi.Pointer zone) { + final _$$ref = table.ref; + return NSMapTable.fromPointer( + _NSCopyMapTableWithZone(_$$ref.pointer, zone), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, NSUInteger) +>() +external void NSCopyMemoryPages( + ffi.Pointer source, + ffi.Pointer dest, + int bytes, +); + +@Deprecated('Not supported') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) +>(symbol: 'NSCopyObject') +external ffi.Pointer _NSCopyObject( + ffi.Pointer object, + int extraBytes, + ffi.Pointer zone, +); + +objc.ObjCObject NSCopyObject( + objc.ObjCObject object, + DartNSUInteger extraBytes, + ffi.Pointer zone, +) { + final _$$ref = object.ref; + return objc.ObjCObject( + _NSCopyObject(_$$ref.pointer, extraBytes, zone), + retain: true, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'NSCountHashTable', +) +external int _NSCountHashTable(ffi.Pointer table); + +DartNSUInteger NSCountHashTable(NSHashTable table) { + final _$$ref = table.ref; + return _NSCountHashTable(_$$ref.pointer); +} + +@ffi.Native(symbol: 'NSCountKeyValueOperator') +external NSKeyValueOperator _NSCountKeyValueOperator; + +DartNSKeyValueOperator get NSCountKeyValueOperator => objc.NSString.fromPointer( + _NSCountKeyValueOperator, + retain: true, + release: true, +); + +set NSCountKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSCountKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCountKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSCountMapTable', +) +external int _NSCountMapTable(ffi.Pointer table); + +DartNSUInteger NSCountMapTable(NSMapTable table) { + final _$$ref = table.ref; + return _NSCountMapTable(_$$ref.pointer); +} + +@ffi.Native< + ffi.Pointer Function(NSHashTableCallBacks, NSUInteger) +>(symbol: 'NSCreateHashTable') +external ffi.Pointer _NSCreateHashTable( + NSHashTableCallBacks callBacks, + int capacity, +); + +NSHashTable NSCreateHashTable( + NSHashTableCallBacks callBacks, + DartNSUInteger capacity, +) { + return NSHashTable.fromPointer( + _NSCreateHashTable(callBacks, capacity), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + NSHashTableCallBacks, + NSUInteger, + ffi.Pointer, + ) +>(symbol: 'NSCreateHashTableWithZone') +external ffi.Pointer _NSCreateHashTableWithZone( + NSHashTableCallBacks callBacks, + int capacity, + ffi.Pointer zone, +); + +NSHashTable NSCreateHashTableWithZone( + NSHashTableCallBacks callBacks, + DartNSUInteger capacity, + ffi.Pointer zone, +) { + return NSHashTable.fromPointer( + _NSCreateHashTableWithZone(callBacks, capacity, zone), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + NSMapTableKeyCallBacks, + NSMapTableValueCallBacks, + NSUInteger, + ) +>(symbol: 'NSCreateMapTable') +external ffi.Pointer _NSCreateMapTable( + NSMapTableKeyCallBacks keyCallBacks, + NSMapTableValueCallBacks valueCallBacks, + int capacity, +); + +NSMapTable NSCreateMapTable( + NSMapTableKeyCallBacks keyCallBacks, + NSMapTableValueCallBacks valueCallBacks, + DartNSUInteger capacity, +) { + return NSMapTable.fromPointer( + _NSCreateMapTable(keyCallBacks, valueCallBacks, capacity), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + NSMapTableKeyCallBacks, + NSMapTableValueCallBacks, + NSUInteger, + ffi.Pointer, + ) +>(symbol: 'NSCreateMapTableWithZone') +external ffi.Pointer _NSCreateMapTableWithZone( + NSMapTableKeyCallBacks keyCallBacks, + NSMapTableValueCallBacks valueCallBacks, + int capacity, + ffi.Pointer zone, +); + +NSMapTable NSCreateMapTableWithZone( + NSMapTableKeyCallBacks keyCallBacks, + NSMapTableValueCallBacks valueCallBacks, + DartNSUInteger capacity, + ffi.Pointer zone, +) { + return NSMapTable.fromPointer( + _NSCreateMapTableWithZone(keyCallBacks, valueCallBacks, capacity, zone), + retain: false, + release: true, + ); +} + +@ffi.Native Function(NSUInteger, NSUInteger, ffi.Bool)>() +external ffi.Pointer NSCreateZone( + int startSize, + int granularity, + bool canFree, +); + +@ffi.Native>(symbol: 'NSCurrencySymbol') +external ffi.Pointer _NSCurrencySymbol; + +objc.NSString get NSCurrencySymbol => + objc.NSString.fromPointer(_NSCurrencySymbol, retain: true, release: true); + +set NSCurrencySymbol(objc.NSString value) { + objc.NSString.fromPointer( + _NSCurrencySymbol, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCurrencySymbol = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCurrentLocaleDidChangeNotification') +external NSNotificationName _NSCurrentLocaleDidChangeNotification; + +DartNSNotificationName get NSCurrentLocaleDidChangeNotification => + objc.NSString.fromPointer( + _NSCurrentLocaleDidChangeNotification, + retain: true, + release: true, + ); + +set NSCurrentLocaleDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSCurrentLocaleDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCurrentLocaleDidChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSDateFormatString') +external ffi.Pointer _NSDateFormatString; + +objc.NSString get NSDateFormatString => + objc.NSString.fromPointer(_NSDateFormatString, retain: true, release: true); + +set NSDateFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSDateFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDateFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSDateTimeOrdering') +external ffi.Pointer _NSDateTimeOrdering; + +objc.NSString get NSDateTimeOrdering => + objc.NSString.fromPointer(_NSDateTimeOrdering, retain: true, release: true); + +set NSDateTimeOrdering(objc.NSString value) { + objc.NSString.fromPointer( + _NSDateTimeOrdering, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDateTimeOrdering = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native, NSUInteger)>() +external void NSDeallocateMemoryPages(ffi.Pointer ptr, int bytes); + +@ffi.Native)>( + symbol: 'NSDeallocateObject', +) +external void _NSDeallocateObject(ffi.Pointer object); + +void NSDeallocateObject(objc.ObjCObject object) { + final _$$ref = object.ref; + return _NSDeallocateObject(_$$ref.pointer); +} + +@ffi.Native(symbol: 'NSDebugDescriptionErrorKey') +external NSErrorUserInfoKey _NSDebugDescriptionErrorKey; + +DartNSErrorUserInfoKey get NSDebugDescriptionErrorKey => + objc.NSString.fromPointer( + _NSDebugDescriptionErrorKey, + retain: true, + release: true, + ); + +set NSDebugDescriptionErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSDebugDescriptionErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDebugDescriptionErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>(symbol: 'NSDecimalAdd') +external int _NSDecimalAdd( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + int roundingMode, +); + +NSCalculationError NSDecimalAdd( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalAdd(result, leftOperand, rightOperand, roundingMode.value), + ); +} + +@ffi.Native)>() +external void NSDecimalCompact(ffi.Pointer number); + +@ffi.Native, ffi.Pointer)>( + symbol: 'NSDecimalCompare', +) +external int _NSDecimalCompare( + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, +); + +objc.NSComparisonResult NSDecimalCompare( + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, +) { + return objc.NSComparisonResult.fromValue( + _NSDecimalCompare(leftOperand, rightOperand), + ); +} + +@ffi.Native, ffi.Pointer)>() +external void NSDecimalCopy( + ffi.Pointer destination, + ffi.Pointer source, +); + +@ffi.Native>(symbol: 'NSDecimalDigits') +external ffi.Pointer _NSDecimalDigits; + +objc.NSString get NSDecimalDigits => + objc.NSString.fromPointer(_NSDecimalDigits, retain: true, release: true); + +set NSDecimalDigits(objc.NSString value) { + objc.NSString.fromPointer( + _NSDecimalDigits, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalDigits = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>(symbol: 'NSDecimalDivide') +external int _NSDecimalDivide( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + int roundingMode, +); + +NSCalculationError NSDecimalDivide( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalDivide(result, leftOperand, rightOperand, roundingMode.value), + ); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>(symbol: 'NSDecimalMultiply') +external int _NSDecimalMultiply( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + int roundingMode, +); + +NSCalculationError NSDecimalMultiply( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalMultiply(result, leftOperand, rightOperand, roundingMode.value), + ); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Short, + NSUInteger, + ) +>(symbol: 'NSDecimalMultiplyByPowerOf10') +external int _NSDecimalMultiplyByPowerOf10( + ffi.Pointer result, + ffi.Pointer number, + int power, + int roundingMode, +); + +NSCalculationError NSDecimalMultiplyByPowerOf10( + ffi.Pointer result, + ffi.Pointer number, + int power, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalMultiplyByPowerOf10(result, number, power, roundingMode.value), + ); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>(symbol: 'NSDecimalNormalize') +external int _NSDecimalNormalize( + ffi.Pointer number1, + ffi.Pointer number2, + int roundingMode, +); + +NSCalculationError NSDecimalNormalize( + ffi.Pointer number1, + ffi.Pointer number2, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalNormalize(number1, number2, roundingMode.value), + ); +} + +@ffi.Native(symbol: 'NSDecimalNumberDivideByZeroException') +external NSExceptionName _NSDecimalNumberDivideByZeroException; + +DartNSExceptionName get NSDecimalNumberDivideByZeroException => + objc.NSString.fromPointer( + _NSDecimalNumberDivideByZeroException, + retain: true, + release: true, + ); + +set NSDecimalNumberDivideByZeroException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSDecimalNumberDivideByZeroException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalNumberDivideByZeroException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDecimalNumberExactnessException') +external NSExceptionName _NSDecimalNumberExactnessException; + +DartNSExceptionName get NSDecimalNumberExactnessException => + objc.NSString.fromPointer( + _NSDecimalNumberExactnessException, + retain: true, + release: true, + ); + +set NSDecimalNumberExactnessException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSDecimalNumberExactnessException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalNumberExactnessException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDecimalNumberOverflowException') +external NSExceptionName _NSDecimalNumberOverflowException; + +DartNSExceptionName get NSDecimalNumberOverflowException => + objc.NSString.fromPointer( + _NSDecimalNumberOverflowException, + retain: true, + release: true, + ); + +set NSDecimalNumberOverflowException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSDecimalNumberOverflowException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalNumberOverflowException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDecimalNumberUnderflowException') +external NSExceptionName _NSDecimalNumberUnderflowException; + +DartNSExceptionName get NSDecimalNumberUnderflowException => + objc.NSString.fromPointer( + _NSDecimalNumberUnderflowException, + retain: true, + release: true, + ); + +set NSDecimalNumberUnderflowException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSDecimalNumberUnderflowException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalNumberUnderflowException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSUInteger, + ) +>(symbol: 'NSDecimalPower') +external int _NSDecimalPower( + ffi.Pointer result, + ffi.Pointer number, + int power, + int roundingMode, +); + +NSCalculationError NSDecimalPower( + ffi.Pointer result, + ffi.Pointer number, + DartNSUInteger power, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalPower(result, number, power, roundingMode.value), + ); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + NSUInteger, + ) +>(symbol: 'NSDecimalRound') +external void _NSDecimalRound( + ffi.Pointer result, + ffi.Pointer number, + int scale, + int roundingMode, +); + +void NSDecimalRound( + ffi.Pointer result, + ffi.Pointer number, + DartNSInteger scale, + NSRoundingMode roundingMode, +) { + return _NSDecimalRound(result, number, scale, roundingMode.value); +} + +@ffi.Native>(symbol: 'NSDecimalSeparator') +external ffi.Pointer _NSDecimalSeparator; + +objc.NSString get NSDecimalSeparator => + objc.NSString.fromPointer(_NSDecimalSeparator, retain: true, release: true); + +set NSDecimalSeparator(objc.NSString value) { + objc.NSString.fromPointer( + _NSDecimalSeparator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalSeparator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSDecimalString') +external ffi.Pointer _NSDecimalString( + ffi.Pointer dcm, + ffi.Pointer locale, +); + +objc.NSString NSDecimalString( + ffi.Pointer dcm, + objc.ObjCObject? locale, +) { + final _$$ref = locale?.ref; + return objc.NSString.fromPointer( + _NSDecimalString(dcm, _$$ref?.pointer ?? ffi.nullptr), + retain: true, + release: true, + ); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>(symbol: 'NSDecimalSubtract') +external int _NSDecimalSubtract( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + int roundingMode, +); + +NSCalculationError NSDecimalSubtract( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalSubtract(result, leftOperand, rightOperand, roundingMode.value), + ); +} + +@ffi.Native)>( + symbol: 'NSDecrementExtraRefCountWasZero', +) +external bool _NSDecrementExtraRefCountWasZero( + ffi.Pointer object, +); + +bool NSDecrementExtraRefCountWasZero(objc.ObjCObject object) { + final _$$ref = object.ref; + return _NSDecrementExtraRefCountWasZero(_$$ref.pointer); +} + +@ffi.Native Function()>() +external ffi.Pointer NSDefaultMallocZone(); + +@ffi.Native(symbol: 'NSDefaultRunLoopMode') +external NSRunLoopMode _NSDefaultRunLoopMode; + +DartNSRunLoopMode get NSDefaultRunLoopMode => objc.NSString.fromPointer( + _NSDefaultRunLoopMode, + retain: true, + release: true, +); + +set NSDefaultRunLoopMode(DartNSRunLoopMode value) { + objc.NSString.fromPointer( + _NSDefaultRunLoopMode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDefaultRunLoopMode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDestinationInvalidException') +external NSExceptionName _NSDestinationInvalidException; + +DartNSExceptionName get NSDestinationInvalidException => + objc.NSString.fromPointer( + _NSDestinationInvalidException, + retain: true, + release: true, + ); + +set NSDestinationInvalidException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSDestinationInvalidException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDestinationInvalidException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDidBecomeSingleThreadedNotification') +external NSNotificationName _NSDidBecomeSingleThreadedNotification; + +DartNSNotificationName get NSDidBecomeSingleThreadedNotification => + objc.NSString.fromPointer( + _NSDidBecomeSingleThreadedNotification, + retain: true, + release: true, + ); + +set NSDidBecomeSingleThreadedNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSDidBecomeSingleThreadedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDidBecomeSingleThreadedNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSDistinctUnionOfArraysKeyValueOperator', +) +external NSKeyValueOperator _NSDistinctUnionOfArraysKeyValueOperator; + +DartNSKeyValueOperator get NSDistinctUnionOfArraysKeyValueOperator => + objc.NSString.fromPointer( + _NSDistinctUnionOfArraysKeyValueOperator, + retain: true, + release: true, + ); + +set NSDistinctUnionOfArraysKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSDistinctUnionOfArraysKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDistinctUnionOfArraysKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSDistinctUnionOfObjectsKeyValueOperator', +) +external NSKeyValueOperator _NSDistinctUnionOfObjectsKeyValueOperator; + +DartNSKeyValueOperator get NSDistinctUnionOfObjectsKeyValueOperator => + objc.NSString.fromPointer( + _NSDistinctUnionOfObjectsKeyValueOperator, + retain: true, + release: true, + ); + +set NSDistinctUnionOfObjectsKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSDistinctUnionOfObjectsKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDistinctUnionOfObjectsKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDistinctUnionOfSetsKeyValueOperator') +external NSKeyValueOperator _NSDistinctUnionOfSetsKeyValueOperator; + +DartNSKeyValueOperator get NSDistinctUnionOfSetsKeyValueOperator => + objc.NSString.fromPointer( + _NSDistinctUnionOfSetsKeyValueOperator, + retain: true, + release: true, + ); + +set NSDistinctUnionOfSetsKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSDistinctUnionOfSetsKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDistinctUnionOfSetsKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Void Function( + NSRect, + ffi.Pointer, + ffi.Pointer, + CGFloat, + NSUInteger, + ) +>(symbol: 'NSDivideRect') +external void _NSDivideRect( + NSRect inRect, + ffi.Pointer slice, + ffi.Pointer rem, + double amount, + int edge, +); + +void NSDivideRect( + NSRect inRect, + ffi.Pointer slice, + ffi.Pointer rem, + DartCGFloat amount, + NSRectEdge edge, +) { + return _NSDivideRect(inRect, slice, rem, amount, edge.value); +} + +@ffi.Native>( + symbol: 'NSEarlierTimeDesignations', +) +external ffi.Pointer _NSEarlierTimeDesignations; + +objc.NSString get NSEarlierTimeDesignations => objc.NSString.fromPointer( + _NSEarlierTimeDesignations, + retain: true, + release: true, +); + +set NSEarlierTimeDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSEarlierTimeDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSEarlierTimeDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external bool NSEdgeInsetsEqual( + objc.NSEdgeInsets aInsets, + objc.NSEdgeInsets bInsets, +); + +@ffi.Native() +external final objc.NSEdgeInsets NSEdgeInsetsZero; + +@ffi.Native)>() +external void NSEndHashTableEnumeration( + ffi.Pointer enumerator, +); + +@ffi.Native)>() +external void NSEndMapTableEnumeration(ffi.Pointer enumerator); + +@ffi.Native)>( + symbol: 'NSEnumerateHashTable', +) +external NSHashEnumerator _NSEnumerateHashTable( + ffi.Pointer table, +); + +NSHashEnumerator NSEnumerateHashTable(NSHashTable table) { + final _$$ref = table.ref; + return _NSEnumerateHashTable(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'NSEnumerateMapTable', +) +external NSMapEnumerator _NSEnumerateMapTable( + ffi.Pointer table, +); + +NSMapEnumerator NSEnumerateMapTable(NSMapTable table) { + final _$$ref = table.ref; + return _NSEnumerateMapTable(_$$ref.pointer); +} + +@ffi.Native() +external bool NSEqualPoints(NSPoint aPoint, NSPoint bPoint); + +@ffi.Native() +external bool NSEqualRects(NSRect aRect, NSRect bRect); + +@ffi.Native() +external bool NSEqualSizes(NSSize aSize, NSSize bSize); + +@ffi.Native>( + symbol: 'NSErrorFailingURLStringKey', +) +external ffi.Pointer _NSErrorFailingURLStringKey; + +objc.NSString get NSErrorFailingURLStringKey => objc.NSString.fromPointer( + _NSErrorFailingURLStringKey, + retain: true, + release: true, +); + +set NSErrorFailingURLStringKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSErrorFailingURLStringKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSErrorFailingURLStringKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionHostDidBecomeActiveNotification', +) +external ffi.Pointer +_NSExtensionHostDidBecomeActiveNotification; + +objc.NSString get NSExtensionHostDidBecomeActiveNotification => + objc.NSString.fromPointer( + _NSExtensionHostDidBecomeActiveNotification, + retain: true, + release: true, + ); + +set NSExtensionHostDidBecomeActiveNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionHostDidBecomeActiveNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionHostDidBecomeActiveNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionHostDidEnterBackgroundNotification', +) +external ffi.Pointer +_NSExtensionHostDidEnterBackgroundNotification; + +objc.NSString get NSExtensionHostDidEnterBackgroundNotification => + objc.NSString.fromPointer( + _NSExtensionHostDidEnterBackgroundNotification, + retain: true, + release: true, + ); + +set NSExtensionHostDidEnterBackgroundNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionHostDidEnterBackgroundNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionHostDidEnterBackgroundNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionHostWillEnterForegroundNotification', +) +external ffi.Pointer +_NSExtensionHostWillEnterForegroundNotification; + +objc.NSString get NSExtensionHostWillEnterForegroundNotification => + objc.NSString.fromPointer( + _NSExtensionHostWillEnterForegroundNotification, + retain: true, + release: true, + ); + +set NSExtensionHostWillEnterForegroundNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionHostWillEnterForegroundNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionHostWillEnterForegroundNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionHostWillResignActiveNotification', +) +external ffi.Pointer +_NSExtensionHostWillResignActiveNotification; + +objc.NSString get NSExtensionHostWillResignActiveNotification => + objc.NSString.fromPointer( + _NSExtensionHostWillResignActiveNotification, + retain: true, + release: true, + ); + +set NSExtensionHostWillResignActiveNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionHostWillResignActiveNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionHostWillResignActiveNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionItemAttachmentsKey', +) +external ffi.Pointer _NSExtensionItemAttachmentsKey; + +objc.NSString get NSExtensionItemAttachmentsKey => objc.NSString.fromPointer( + _NSExtensionItemAttachmentsKey, + retain: true, + release: true, +); + +set NSExtensionItemAttachmentsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionItemAttachmentsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionItemAttachmentsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionItemAttributedContentTextKey', +) +external ffi.Pointer +_NSExtensionItemAttributedContentTextKey; + +objc.NSString get NSExtensionItemAttributedContentTextKey => + objc.NSString.fromPointer( + _NSExtensionItemAttributedContentTextKey, + retain: true, + release: true, + ); + +set NSExtensionItemAttributedContentTextKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionItemAttributedContentTextKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionItemAttributedContentTextKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionItemAttributedTitleKey', +) +external ffi.Pointer _NSExtensionItemAttributedTitleKey; + +objc.NSString get NSExtensionItemAttributedTitleKey => + objc.NSString.fromPointer( + _NSExtensionItemAttributedTitleKey, + retain: true, + release: true, + ); + +set NSExtensionItemAttributedTitleKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionItemAttributedTitleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionItemAttributedTitleKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionItemsAndErrorsKey', +) +external ffi.Pointer _NSExtensionItemsAndErrorsKey; + +objc.NSString get NSExtensionItemsAndErrorsKey => objc.NSString.fromPointer( + _NSExtensionItemsAndErrorsKey, + retain: true, + release: true, +); + +set NSExtensionItemsAndErrorsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionItemsAndErrorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionItemsAndErrorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionJavaScriptFinalizeArgumentKey', +) +external ffi.Pointer +_NSExtensionJavaScriptFinalizeArgumentKey; + +objc.NSString get NSExtensionJavaScriptFinalizeArgumentKey => + objc.NSString.fromPointer( + _NSExtensionJavaScriptFinalizeArgumentKey, + retain: true, + release: true, + ); + +set NSExtensionJavaScriptFinalizeArgumentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionJavaScriptFinalizeArgumentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionJavaScriptFinalizeArgumentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionJavaScriptPreprocessingResultsKey', +) +external ffi.Pointer +_NSExtensionJavaScriptPreprocessingResultsKey; + +objc.NSString get NSExtensionJavaScriptPreprocessingResultsKey => + objc.NSString.fromPointer( + _NSExtensionJavaScriptPreprocessingResultsKey, + retain: true, + release: true, + ); + +set NSExtensionJavaScriptPreprocessingResultsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionJavaScriptPreprocessingResultsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionJavaScriptPreprocessingResultsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSExtraRefCount', +) +external int _NSExtraRefCount(ffi.Pointer object); + +DartNSUInteger NSExtraRefCount(objc.ObjCObject object) { + final _$$ref = object.ref; + return _NSExtraRefCount(_$$ref.pointer); +} + +@ffi.Native>( + symbol: 'NSFTPPropertyActiveTransferModeKey', +) +external final ffi.Pointer +_NSFTPPropertyActiveTransferModeKey; + +objc.NSString get NSFTPPropertyActiveTransferModeKey => + objc.NSString.fromPointer( + _NSFTPPropertyActiveTransferModeKey, + retain: true, + release: true, + ); + +@ffi.Native>(symbol: 'NSFTPPropertyFTPProxy') +external final ffi.Pointer _NSFTPPropertyFTPProxy; + +objc.NSString get NSFTPPropertyFTPProxy => objc.NSString.fromPointer( + _NSFTPPropertyFTPProxy, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSFTPPropertyFileOffsetKey', +) +external final ffi.Pointer _NSFTPPropertyFileOffsetKey; + +objc.NSString get NSFTPPropertyFileOffsetKey => objc.NSString.fromPointer( + _NSFTPPropertyFileOffsetKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSFTPPropertyUserLoginKey', +) +external final ffi.Pointer _NSFTPPropertyUserLoginKey; + +objc.NSString get NSFTPPropertyUserLoginKey => objc.NSString.fromPointer( + _NSFTPPropertyUserLoginKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSFTPPropertyUserPasswordKey', +) +external final ffi.Pointer _NSFTPPropertyUserPasswordKey; + +objc.NSString get NSFTPPropertyUserPasswordKey => objc.NSString.fromPointer( + _NSFTPPropertyUserPasswordKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSFailedAuthenticationException', +) +external ffi.Pointer _NSFailedAuthenticationException; + +objc.NSString get NSFailedAuthenticationException => objc.NSString.fromPointer( + _NSFailedAuthenticationException, + retain: true, + release: true, +); + +set NSFailedAuthenticationException(objc.NSString value) { + objc.NSString.fromPointer( + _NSFailedAuthenticationException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFailedAuthenticationException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileAppendOnly') +external NSFileAttributeKey _NSFileAppendOnly; + +DartNSFileAttributeKey get NSFileAppendOnly => + objc.NSString.fromPointer(_NSFileAppendOnly, retain: true, release: true); + +set NSFileAppendOnly(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileAppendOnly, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileAppendOnly = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileBusy') +external NSFileAttributeKey _NSFileBusy; + +DartNSFileAttributeKey get NSFileBusy => + objc.NSString.fromPointer(_NSFileBusy, retain: true, release: true); + +set NSFileBusy(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileBusy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileBusy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileCreationDate') +external NSFileAttributeKey _NSFileCreationDate; + +DartNSFileAttributeKey get NSFileCreationDate => + objc.NSString.fromPointer(_NSFileCreationDate, retain: true, release: true); + +set NSFileCreationDate(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileCreationDate, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileCreationDate = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileDeviceIdentifier') +external NSFileAttributeKey _NSFileDeviceIdentifier; + +DartNSFileAttributeKey get NSFileDeviceIdentifier => objc.NSString.fromPointer( + _NSFileDeviceIdentifier, + retain: true, + release: true, +); + +set NSFileDeviceIdentifier(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileDeviceIdentifier, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileDeviceIdentifier = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileExtensionHidden') +external NSFileAttributeKey _NSFileExtensionHidden; + +DartNSFileAttributeKey get NSFileExtensionHidden => objc.NSString.fromPointer( + _NSFileExtensionHidden, + retain: true, + release: true, +); + +set NSFileExtensionHidden(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileExtensionHidden, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileExtensionHidden = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileGroupOwnerAccountID') +external NSFileAttributeKey _NSFileGroupOwnerAccountID; + +DartNSFileAttributeKey get NSFileGroupOwnerAccountID => + objc.NSString.fromPointer( + _NSFileGroupOwnerAccountID, + retain: true, + release: true, + ); + +set NSFileGroupOwnerAccountID(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileGroupOwnerAccountID, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileGroupOwnerAccountID = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileGroupOwnerAccountName') +external NSFileAttributeKey _NSFileGroupOwnerAccountName; + +DartNSFileAttributeKey get NSFileGroupOwnerAccountName => + objc.NSString.fromPointer( + _NSFileGroupOwnerAccountName, + retain: true, + release: true, + ); + +set NSFileGroupOwnerAccountName(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileGroupOwnerAccountName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileGroupOwnerAccountName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileHFSCreatorCode') +external NSFileAttributeKey _NSFileHFSCreatorCode; + +DartNSFileAttributeKey get NSFileHFSCreatorCode => objc.NSString.fromPointer( + _NSFileHFSCreatorCode, + retain: true, + release: true, +); + +set NSFileHFSCreatorCode(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileHFSCreatorCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHFSCreatorCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileHFSTypeCode') +external NSFileAttributeKey _NSFileHFSTypeCode; + +DartNSFileAttributeKey get NSFileHFSTypeCode => + objc.NSString.fromPointer(_NSFileHFSTypeCode, retain: true, release: true); + +set NSFileHFSTypeCode(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileHFSTypeCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHFSTypeCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSFileHandleConnectionAcceptedNotification', +) +external NSNotificationName _NSFileHandleConnectionAcceptedNotification; + +DartNSNotificationName get NSFileHandleConnectionAcceptedNotification => + objc.NSString.fromPointer( + _NSFileHandleConnectionAcceptedNotification, + retain: true, + release: true, + ); + +set NSFileHandleConnectionAcceptedNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSFileHandleConnectionAcceptedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleConnectionAcceptedNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileHandleDataAvailableNotification') +external NSNotificationName _NSFileHandleDataAvailableNotification; + +DartNSNotificationName get NSFileHandleDataAvailableNotification => + objc.NSString.fromPointer( + _NSFileHandleDataAvailableNotification, + retain: true, + release: true, + ); + +set NSFileHandleDataAvailableNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSFileHandleDataAvailableNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleDataAvailableNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSFileHandleNotificationDataItem', +) +external ffi.Pointer _NSFileHandleNotificationDataItem; + +objc.NSString get NSFileHandleNotificationDataItem => objc.NSString.fromPointer( + _NSFileHandleNotificationDataItem, + retain: true, + release: true, +); + +set NSFileHandleNotificationDataItem(objc.NSString value) { + objc.NSString.fromPointer( + _NSFileHandleNotificationDataItem, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleNotificationDataItem = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSFileHandleNotificationFileHandleItem', +) +external ffi.Pointer +_NSFileHandleNotificationFileHandleItem; + +objc.NSString get NSFileHandleNotificationFileHandleItem => + objc.NSString.fromPointer( + _NSFileHandleNotificationFileHandleItem, + retain: true, + release: true, + ); + +set NSFileHandleNotificationFileHandleItem(objc.NSString value) { + objc.NSString.fromPointer( + _NSFileHandleNotificationFileHandleItem, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleNotificationFileHandleItem = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSFileHandleNotificationMonitorModes', +) +external ffi.Pointer _NSFileHandleNotificationMonitorModes; + +objc.NSString get NSFileHandleNotificationMonitorModes => + objc.NSString.fromPointer( + _NSFileHandleNotificationMonitorModes, + retain: true, + release: true, + ); + +set NSFileHandleNotificationMonitorModes(objc.NSString value) { + objc.NSString.fromPointer( + _NSFileHandleNotificationMonitorModes, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleNotificationMonitorModes = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileHandleOperationException') +external NSExceptionName _NSFileHandleOperationException; + +DartNSExceptionName get NSFileHandleOperationException => + objc.NSString.fromPointer( + _NSFileHandleOperationException, + retain: true, + release: true, + ); + +set NSFileHandleOperationException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSFileHandleOperationException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleOperationException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSFileHandleReadCompletionNotification', +) +external NSNotificationName _NSFileHandleReadCompletionNotification; + +DartNSNotificationName get NSFileHandleReadCompletionNotification => + objc.NSString.fromPointer( + _NSFileHandleReadCompletionNotification, + retain: true, + release: true, + ); + +set NSFileHandleReadCompletionNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSFileHandleReadCompletionNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleReadCompletionNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSFileHandleReadToEndOfFileCompletionNotification', +) +external NSNotificationName _NSFileHandleReadToEndOfFileCompletionNotification; + +DartNSNotificationName get NSFileHandleReadToEndOfFileCompletionNotification => + objc.NSString.fromPointer( + _NSFileHandleReadToEndOfFileCompletionNotification, + retain: true, + release: true, + ); + +set NSFileHandleReadToEndOfFileCompletionNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSFileHandleReadToEndOfFileCompletionNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleReadToEndOfFileCompletionNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileImmutable') +external NSFileAttributeKey _NSFileImmutable; + +DartNSFileAttributeKey get NSFileImmutable => + objc.NSString.fromPointer(_NSFileImmutable, retain: true, release: true); + +set NSFileImmutable(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileImmutable, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileImmutable = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSFileManagerUnmountDissentingProcessIdentifierErrorKey', +) +external ffi.Pointer +_NSFileManagerUnmountDissentingProcessIdentifierErrorKey; + +objc.NSString get NSFileManagerUnmountDissentingProcessIdentifierErrorKey => + objc.NSString.fromPointer( + _NSFileManagerUnmountDissentingProcessIdentifierErrorKey, + retain: true, + release: true, + ); + +set NSFileManagerUnmountDissentingProcessIdentifierErrorKey( + objc.NSString value, +) { + objc.NSString.fromPointer( + _NSFileManagerUnmountDissentingProcessIdentifierErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileManagerUnmountDissentingProcessIdentifierErrorKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileModificationDate') +external NSFileAttributeKey _NSFileModificationDate; + +DartNSFileAttributeKey get NSFileModificationDate => objc.NSString.fromPointer( + _NSFileModificationDate, + retain: true, + release: true, +); + +set NSFileModificationDate(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileModificationDate, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileModificationDate = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileOwnerAccountID') +external NSFileAttributeKey _NSFileOwnerAccountID; + +DartNSFileAttributeKey get NSFileOwnerAccountID => objc.NSString.fromPointer( + _NSFileOwnerAccountID, + retain: true, + release: true, +); + +set NSFileOwnerAccountID(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileOwnerAccountID, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileOwnerAccountID = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileOwnerAccountName') +external NSFileAttributeKey _NSFileOwnerAccountName; + +DartNSFileAttributeKey get NSFileOwnerAccountName => objc.NSString.fromPointer( + _NSFileOwnerAccountName, + retain: true, + release: true, +); + +set NSFileOwnerAccountName(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileOwnerAccountName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileOwnerAccountName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFilePathErrorKey') +external NSErrorUserInfoKey _NSFilePathErrorKey; + +DartNSErrorUserInfoKey get NSFilePathErrorKey => + objc.NSString.fromPointer(_NSFilePathErrorKey, retain: true, release: true); + +set NSFilePathErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSFilePathErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFilePathErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFilePosixPermissions') +external NSFileAttributeKey _NSFilePosixPermissions; + +DartNSFileAttributeKey get NSFilePosixPermissions => objc.NSString.fromPointer( + _NSFilePosixPermissions, + retain: true, + release: true, +); + +set NSFilePosixPermissions(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFilePosixPermissions, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFilePosixPermissions = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileProtectionComplete') +external NSFileProtectionType _NSFileProtectionComplete; + +DartNSFileProtectionType get NSFileProtectionComplete => + objc.NSString.fromPointer( + _NSFileProtectionComplete, + retain: true, + release: true, + ); + +set NSFileProtectionComplete(DartNSFileProtectionType value) { + objc.NSString.fromPointer( + _NSFileProtectionComplete, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionComplete = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileProtectionCompleteUnlessOpen') +external NSFileProtectionType _NSFileProtectionCompleteUnlessOpen; + +DartNSFileProtectionType get NSFileProtectionCompleteUnlessOpen => + objc.NSString.fromPointer( + _NSFileProtectionCompleteUnlessOpen, + retain: true, + release: true, + ); + +set NSFileProtectionCompleteUnlessOpen(DartNSFileProtectionType value) { + objc.NSString.fromPointer( + _NSFileProtectionCompleteUnlessOpen, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionCompleteUnlessOpen = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSFileProtectionCompleteUntilFirstUserAuthentication', +) +external NSFileProtectionType +_NSFileProtectionCompleteUntilFirstUserAuthentication; + +DartNSFileProtectionType +get NSFileProtectionCompleteUntilFirstUserAuthentication => + objc.NSString.fromPointer( + _NSFileProtectionCompleteUntilFirstUserAuthentication, + retain: true, + release: true, + ); + +set NSFileProtectionCompleteUntilFirstUserAuthentication( + DartNSFileProtectionType value, +) { + objc.NSString.fromPointer( + _NSFileProtectionCompleteUntilFirstUserAuthentication, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionCompleteUntilFirstUserAuthentication = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSFileProtectionCompleteWhenUserInactive', +) +external NSFileProtectionType _NSFileProtectionCompleteWhenUserInactive; + +DartNSFileProtectionType get NSFileProtectionCompleteWhenUserInactive => + objc.NSString.fromPointer( + _NSFileProtectionCompleteWhenUserInactive, + retain: true, + release: true, + ); + +set NSFileProtectionCompleteWhenUserInactive(DartNSFileProtectionType value) { + objc.NSString.fromPointer( + _NSFileProtectionCompleteWhenUserInactive, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionCompleteWhenUserInactive = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileProtectionKey') +external NSFileAttributeKey _NSFileProtectionKey; + +DartNSFileAttributeKey get NSFileProtectionKey => objc.NSString.fromPointer( + _NSFileProtectionKey, + retain: true, + release: true, +); + +set NSFileProtectionKey(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileProtectionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileProtectionNone') +external NSFileProtectionType _NSFileProtectionNone; + +DartNSFileProtectionType get NSFileProtectionNone => objc.NSString.fromPointer( + _NSFileProtectionNone, + retain: true, + release: true, +); + +set NSFileProtectionNone(DartNSFileProtectionType value) { + objc.NSString.fromPointer( + _NSFileProtectionNone, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionNone = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileReferenceCount') +external NSFileAttributeKey _NSFileReferenceCount; + +DartNSFileAttributeKey get NSFileReferenceCount => objc.NSString.fromPointer( + _NSFileReferenceCount, + retain: true, + release: true, +); + +set NSFileReferenceCount(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileReferenceCount, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileReferenceCount = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSize') +external NSFileAttributeKey _NSFileSize; + +DartNSFileAttributeKey get NSFileSize => + objc.NSString.fromPointer(_NSFileSize, retain: true, release: true); + +set NSFileSize(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSize, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSize = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemFileNumber') +external NSFileAttributeKey _NSFileSystemFileNumber; + +DartNSFileAttributeKey get NSFileSystemFileNumber => objc.NSString.fromPointer( + _NSFileSystemFileNumber, + retain: true, + release: true, +); + +set NSFileSystemFileNumber(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemFileNumber, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemFileNumber = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemFreeNodes') +external NSFileAttributeKey _NSFileSystemFreeNodes; + +DartNSFileAttributeKey get NSFileSystemFreeNodes => objc.NSString.fromPointer( + _NSFileSystemFreeNodes, + retain: true, + release: true, +); + +set NSFileSystemFreeNodes(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemFreeNodes, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemFreeNodes = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemFreeSize') +external NSFileAttributeKey _NSFileSystemFreeSize; + +DartNSFileAttributeKey get NSFileSystemFreeSize => objc.NSString.fromPointer( + _NSFileSystemFreeSize, + retain: true, + release: true, +); + +set NSFileSystemFreeSize(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemFreeSize, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemFreeSize = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemNodes') +external NSFileAttributeKey _NSFileSystemNodes; + +DartNSFileAttributeKey get NSFileSystemNodes => + objc.NSString.fromPointer(_NSFileSystemNodes, retain: true, release: true); + +set NSFileSystemNodes(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemNodes, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemNodes = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemNumber') +external NSFileAttributeKey _NSFileSystemNumber; + +DartNSFileAttributeKey get NSFileSystemNumber => + objc.NSString.fromPointer(_NSFileSystemNumber, retain: true, release: true); + +set NSFileSystemNumber(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemNumber, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemNumber = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemSize') +external NSFileAttributeKey _NSFileSystemSize; + +DartNSFileAttributeKey get NSFileSystemSize => + objc.NSString.fromPointer(_NSFileSystemSize, retain: true, release: true); + +set NSFileSystemSize(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemSize, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemSize = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileType') +external NSFileAttributeKey _NSFileType; + +DartNSFileAttributeKey get NSFileType => + objc.NSString.fromPointer(_NSFileType, retain: true, release: true); + +set NSFileType(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileType, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileType = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeBlockSpecial') +external NSFileAttributeType _NSFileTypeBlockSpecial; + +DartNSFileAttributeType get NSFileTypeBlockSpecial => objc.NSString.fromPointer( + _NSFileTypeBlockSpecial, + retain: true, + release: true, +); + +set NSFileTypeBlockSpecial(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeBlockSpecial, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeBlockSpecial = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeCharacterSpecial') +external NSFileAttributeType _NSFileTypeCharacterSpecial; + +DartNSFileAttributeType get NSFileTypeCharacterSpecial => + objc.NSString.fromPointer( + _NSFileTypeCharacterSpecial, + retain: true, + release: true, + ); + +set NSFileTypeCharacterSpecial(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeCharacterSpecial, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeCharacterSpecial = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeDirectory') +external NSFileAttributeType _NSFileTypeDirectory; + +DartNSFileAttributeType get NSFileTypeDirectory => objc.NSString.fromPointer( + _NSFileTypeDirectory, + retain: true, + release: true, +); + +set NSFileTypeDirectory(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeDirectory, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeDirectory = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native Function(OSType)>( + symbol: 'NSFileTypeForHFSTypeCode', +) +external ffi.Pointer _NSFileTypeForHFSTypeCode( + int hfsFileTypeCode, +); + +objc.NSString NSFileTypeForHFSTypeCode(DartUInt32 hfsFileTypeCode) { + return objc.NSString.fromPointer( + _NSFileTypeForHFSTypeCode(hfsFileTypeCode), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSFileTypeRegular') +external NSFileAttributeType _NSFileTypeRegular; + +DartNSFileAttributeType get NSFileTypeRegular => + objc.NSString.fromPointer(_NSFileTypeRegular, retain: true, release: true); + +set NSFileTypeRegular(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeRegular, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeRegular = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeSocket') +external NSFileAttributeType _NSFileTypeSocket; + +DartNSFileAttributeType get NSFileTypeSocket => + objc.NSString.fromPointer(_NSFileTypeSocket, retain: true, release: true); + +set NSFileTypeSocket(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeSocket, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeSocket = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeSymbolicLink') +external NSFileAttributeType _NSFileTypeSymbolicLink; + +DartNSFileAttributeType get NSFileTypeSymbolicLink => objc.NSString.fromPointer( + _NSFileTypeSymbolicLink, + retain: true, + release: true, +); + +set NSFileTypeSymbolicLink(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeSymbolicLink, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeSymbolicLink = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeUnknown') +external NSFileAttributeType _NSFileTypeUnknown; + +DartNSFileAttributeType get NSFileTypeUnknown => + objc.NSString.fromPointer(_NSFileTypeUnknown, retain: true, release: true); + +set NSFileTypeUnknown(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeUnknown, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeUnknown = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external double NSFoundationVersionNumber; + +@ffi.Native)>( + symbol: 'NSFreeHashTable', +) +external void _NSFreeHashTable(ffi.Pointer table); + +void NSFreeHashTable(NSHashTable table) { + final _$$ref = table.ref; + return _NSFreeHashTable(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'NSFreeMapTable', +) +external void _NSFreeMapTable(ffi.Pointer table); + +void NSFreeMapTable(NSMapTable table) { + final _$$ref = table.ref; + return _NSFreeMapTable(_$$ref.retainAndReturnPointer()); +} + +@ffi.Native Function()>( + symbol: 'NSFullUserName', +) +external ffi.Pointer _NSFullUserName(); + +objc.NSString NSFullUserName() { + return objc.NSString.fromPointer( + _NSFullUserName(), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSGenericException') +external NSExceptionName _NSGenericException; + +DartNSExceptionName get NSGenericException => + objc.NSString.fromPointer(_NSGenericException, retain: true, release: true); + +set NSGenericException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSGenericException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGenericException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer NSGetSizeAndAlignment( + ffi.Pointer typePtr$1, + ffi.Pointer sizep, + ffi.Pointer alignp, +); + +@ffi.Native Function()>() +external ffi.Pointer +NSGetUncaughtExceptionHandler(); + +@ffi.Native>(symbol: 'NSGlobalDomain') +external ffi.Pointer _NSGlobalDomain; + +objc.NSString get NSGlobalDomain => + objc.NSString.fromPointer(_NSGlobalDomain, retain: true, release: true); + +set NSGlobalDomain(objc.NSString value) { + objc.NSString.fromPointer( + _NSGlobalDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGlobalDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSGrammarCorrections') +external ffi.Pointer _NSGrammarCorrections; + +objc.NSString get NSGrammarCorrections => objc.NSString.fromPointer( + _NSGrammarCorrections, + retain: true, + release: true, +); + +set NSGrammarCorrections(objc.NSString value) { + objc.NSString.fromPointer( + _NSGrammarCorrections, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGrammarCorrections = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSGrammarRange') +external ffi.Pointer _NSGrammarRange; + +objc.NSString get NSGrammarRange => + objc.NSString.fromPointer(_NSGrammarRange, retain: true, release: true); + +set NSGrammarRange(objc.NSString value) { + objc.NSString.fromPointer( + _NSGrammarRange, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGrammarRange = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSGrammarUserDescription', +) +external ffi.Pointer _NSGrammarUserDescription; + +objc.NSString get NSGrammarUserDescription => objc.NSString.fromPointer( + _NSGrammarUserDescription, + retain: true, + release: true, +); + +set NSGrammarUserDescription(objc.NSString value) { + objc.NSString.fromPointer( + _NSGrammarUserDescription, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGrammarUserDescription = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSGregorianCalendar') +external ffi.Pointer _NSGregorianCalendar; + +objc.NSString get NSGregorianCalendar => objc.NSString.fromPointer( + _NSGregorianCalendar, + retain: true, + release: true, +); + +set NSGregorianCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSGregorianCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGregorianCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSHFSTypeCodeFromFileType', +) +external int _NSHFSTypeCodeFromFileType( + ffi.Pointer fileTypeString, +); + +DartUInt32 NSHFSTypeCodeFromFileType(objc.NSString fileTypeString) { + final _$$ref = fileTypeString.ref; + return _NSHFSTypeCodeFromFileType(_$$ref.pointer); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSHFSTypeOfFile') +external ffi.Pointer _NSHFSTypeOfFile( + ffi.Pointer fullFilePath, +); + +objc.NSString NSHFSTypeOfFile(objc.NSString fullFilePath) { + final _$$ref = fullFilePath.ref; + return objc.NSString.fromPointer( + _NSHFSTypeOfFile(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSHTTPCookieComment') +external NSHTTPCookiePropertyKey _NSHTTPCookieComment; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieComment => + objc.NSString.fromPointer( + _NSHTTPCookieComment, + retain: true, + release: true, + ); + +set NSHTTPCookieComment(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieComment, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieComment = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieCommentURL') +external NSHTTPCookiePropertyKey _NSHTTPCookieCommentURL; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieCommentURL => + objc.NSString.fromPointer( + _NSHTTPCookieCommentURL, + retain: true, + release: true, + ); + +set NSHTTPCookieCommentURL(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieCommentURL, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieCommentURL = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieDiscard') +external NSHTTPCookiePropertyKey _NSHTTPCookieDiscard; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieDiscard => + objc.NSString.fromPointer( + _NSHTTPCookieDiscard, + retain: true, + release: true, + ); + +set NSHTTPCookieDiscard(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieDiscard, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieDiscard = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieDomain') +external NSHTTPCookiePropertyKey _NSHTTPCookieDomain; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieDomain => + objc.NSString.fromPointer(_NSHTTPCookieDomain, retain: true, release: true); + +set NSHTTPCookieDomain(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieExpires') +external NSHTTPCookiePropertyKey _NSHTTPCookieExpires; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieExpires => + objc.NSString.fromPointer( + _NSHTTPCookieExpires, + retain: true, + release: true, + ); + +set NSHTTPCookieExpires(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieExpires, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieExpires = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSHTTPCookieManagerAcceptPolicyChangedNotification', +) +external NSNotificationName _NSHTTPCookieManagerAcceptPolicyChangedNotification; + +DartNSNotificationName get NSHTTPCookieManagerAcceptPolicyChangedNotification => + objc.NSString.fromPointer( + _NSHTTPCookieManagerAcceptPolicyChangedNotification, + retain: true, + release: true, + ); + +set NSHTTPCookieManagerAcceptPolicyChangedNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSHTTPCookieManagerAcceptPolicyChangedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieManagerAcceptPolicyChangedNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSHTTPCookieManagerCookiesChangedNotification', +) +external NSNotificationName _NSHTTPCookieManagerCookiesChangedNotification; + +DartNSNotificationName get NSHTTPCookieManagerCookiesChangedNotification => + objc.NSString.fromPointer( + _NSHTTPCookieManagerCookiesChangedNotification, + retain: true, + release: true, + ); + +set NSHTTPCookieManagerCookiesChangedNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSHTTPCookieManagerCookiesChangedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieManagerCookiesChangedNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieMaximumAge') +external NSHTTPCookiePropertyKey _NSHTTPCookieMaximumAge; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieMaximumAge => + objc.NSString.fromPointer( + _NSHTTPCookieMaximumAge, + retain: true, + release: true, + ); + +set NSHTTPCookieMaximumAge(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieMaximumAge, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieMaximumAge = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieName') +external NSHTTPCookiePropertyKey _NSHTTPCookieName; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieName => + objc.NSString.fromPointer(_NSHTTPCookieName, retain: true, release: true); + +set NSHTTPCookieName(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieOriginURL') +external NSHTTPCookiePropertyKey _NSHTTPCookieOriginURL; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieOriginURL => + objc.NSString.fromPointer( + _NSHTTPCookieOriginURL, + retain: true, + release: true, + ); + +set NSHTTPCookieOriginURL(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieOriginURL, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieOriginURL = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookiePath') +external NSHTTPCookiePropertyKey _NSHTTPCookiePath; + +DartNSHTTPCookiePropertyKey get NSHTTPCookiePath => + objc.NSString.fromPointer(_NSHTTPCookiePath, retain: true, release: true); + +set NSHTTPCookiePath(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookiePath, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookiePath = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookiePort') +external NSHTTPCookiePropertyKey _NSHTTPCookiePort; + +DartNSHTTPCookiePropertyKey get NSHTTPCookiePort => + objc.NSString.fromPointer(_NSHTTPCookiePort, retain: true, release: true); + +set NSHTTPCookiePort(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookiePort, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookiePort = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieSameSiteLax') +external NSHTTPCookieStringPolicy _NSHTTPCookieSameSiteLax; + +DartNSHTTPCookieStringPolicy get NSHTTPCookieSameSiteLax => + objc.NSString.fromPointer( + _NSHTTPCookieSameSiteLax, + retain: true, + release: true, + ); + +set NSHTTPCookieSameSiteLax(DartNSHTTPCookieStringPolicy value) { + objc.NSString.fromPointer( + _NSHTTPCookieSameSiteLax, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieSameSiteLax = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieSameSitePolicy') +external NSHTTPCookiePropertyKey _NSHTTPCookieSameSitePolicy; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieSameSitePolicy => + objc.NSString.fromPointer( + _NSHTTPCookieSameSitePolicy, + retain: true, + release: true, + ); + +set NSHTTPCookieSameSitePolicy(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieSameSitePolicy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieSameSitePolicy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieSameSiteStrict') +external NSHTTPCookieStringPolicy _NSHTTPCookieSameSiteStrict; + +DartNSHTTPCookieStringPolicy get NSHTTPCookieSameSiteStrict => + objc.NSString.fromPointer( + _NSHTTPCookieSameSiteStrict, + retain: true, + release: true, + ); + +set NSHTTPCookieSameSiteStrict(DartNSHTTPCookieStringPolicy value) { + objc.NSString.fromPointer( + _NSHTTPCookieSameSiteStrict, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieSameSiteStrict = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieSecure') +external NSHTTPCookiePropertyKey _NSHTTPCookieSecure; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieSecure => + objc.NSString.fromPointer(_NSHTTPCookieSecure, retain: true, release: true); + +set NSHTTPCookieSecure(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieSecure, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieSecure = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieSetByJavaScript') +external NSHTTPCookiePropertyKey _NSHTTPCookieSetByJavaScript; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieSetByJavaScript => + objc.NSString.fromPointer( + _NSHTTPCookieSetByJavaScript, + retain: true, + release: true, + ); + +set NSHTTPCookieSetByJavaScript(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieSetByJavaScript, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieSetByJavaScript = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieValue') +external NSHTTPCookiePropertyKey _NSHTTPCookieValue; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieValue => + objc.NSString.fromPointer(_NSHTTPCookieValue, retain: true, release: true); + +set NSHTTPCookieValue(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieValue, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieValue = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieVersion') +external NSHTTPCookiePropertyKey _NSHTTPCookieVersion; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieVersion => + objc.NSString.fromPointer( + _NSHTTPCookieVersion, + retain: true, + release: true, + ); + +set NSHTTPCookieVersion(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieVersion, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieVersion = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSHTTPPropertyErrorPageDataKey', +) +external final ffi.Pointer _NSHTTPPropertyErrorPageDataKey; + +objc.NSString get NSHTTPPropertyErrorPageDataKey => objc.NSString.fromPointer( + _NSHTTPPropertyErrorPageDataKey, + retain: true, + release: true, +); + +@ffi.Native>(symbol: 'NSHTTPPropertyHTTPProxy') +external final ffi.Pointer _NSHTTPPropertyHTTPProxy; + +objc.NSString get NSHTTPPropertyHTTPProxy => objc.NSString.fromPointer( + _NSHTTPPropertyHTTPProxy, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSHTTPPropertyRedirectionHeadersKey', +) +external final ffi.Pointer +_NSHTTPPropertyRedirectionHeadersKey; + +objc.NSString get NSHTTPPropertyRedirectionHeadersKey => + objc.NSString.fromPointer( + _NSHTTPPropertyRedirectionHeadersKey, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'NSHTTPPropertyServerHTTPVersionKey', +) +external final ffi.Pointer +_NSHTTPPropertyServerHTTPVersionKey; + +objc.NSString get NSHTTPPropertyServerHTTPVersionKey => + objc.NSString.fromPointer( + _NSHTTPPropertyServerHTTPVersionKey, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'NSHTTPPropertyStatusCodeKey', +) +external final ffi.Pointer _NSHTTPPropertyStatusCodeKey; + +objc.NSString get NSHTTPPropertyStatusCodeKey => objc.NSString.fromPointer( + _NSHTTPPropertyStatusCodeKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSHTTPPropertyStatusReasonKey', +) +external final ffi.Pointer _NSHTTPPropertyStatusReasonKey; + +objc.NSString get NSHTTPPropertyStatusReasonKey => objc.NSString.fromPointer( + _NSHTTPPropertyStatusReasonKey, + retain: true, + release: true, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSHashGet') +external ffi.Pointer _NSHashGet( + ffi.Pointer table, + ffi.Pointer pointer, +); + +ffi.Pointer NSHashGet( + NSHashTable table, + ffi.Pointer pointer, +) { + final _$$ref = table.ref; + return _NSHashGet(_$$ref.pointer, pointer); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSHashInsert') +external void _NSHashInsert( + ffi.Pointer table, + ffi.Pointer pointer, +); + +void NSHashInsert(NSHashTable table, ffi.Pointer pointer) { + final _$$ref = table.ref; + return _NSHashInsert(_$$ref.pointer, pointer); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSHashInsertIfAbsent') +external ffi.Pointer _NSHashInsertIfAbsent( + ffi.Pointer table, + ffi.Pointer pointer, +); + +ffi.Pointer NSHashInsertIfAbsent( + NSHashTable table, + ffi.Pointer pointer, +) { + final _$$ref = table.ref; + return _NSHashInsertIfAbsent(_$$ref.pointer, pointer); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSHashInsertKnownAbsent') +external void _NSHashInsertKnownAbsent( + ffi.Pointer table, + ffi.Pointer pointer, +); + +void NSHashInsertKnownAbsent(NSHashTable table, ffi.Pointer pointer) { + final _$$ref = table.ref; + return _NSHashInsertKnownAbsent(_$$ref.pointer, pointer); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSHashRemove') +external void _NSHashRemove( + ffi.Pointer table, + ffi.Pointer pointer, +); + +void NSHashRemove(NSHashTable table, ffi.Pointer pointer) { + final _$$ref = table.ref; + return _NSHashRemove(_$$ref.pointer, pointer); +} + +@ffi.Native>(symbol: 'NSHebrewCalendar') +external ffi.Pointer _NSHebrewCalendar; + +objc.NSString get NSHebrewCalendar => + objc.NSString.fromPointer(_NSHebrewCalendar, retain: true, release: true); + +set NSHebrewCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSHebrewCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHebrewCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHelpAnchorErrorKey') +external NSErrorUserInfoKey _NSHelpAnchorErrorKey; + +DartNSErrorUserInfoKey get NSHelpAnchorErrorKey => objc.NSString.fromPointer( + _NSHelpAnchorErrorKey, + retain: true, + release: true, +); + +set NSHelpAnchorErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSHelpAnchorErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHelpAnchorErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native Function()>( + symbol: 'NSHomeDirectory', +) +external ffi.Pointer _NSHomeDirectory(); + +objc.NSString NSHomeDirectory() { + return objc.NSString.fromPointer( + _NSHomeDirectory(), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSHomeDirectoryForUser') +external ffi.Pointer _NSHomeDirectoryForUser( + ffi.Pointer userName, +); + +objc.NSString? NSHomeDirectoryForUser(objc.NSString? userName) { + final _$$ref = userName?.ref; + return _NSHomeDirectoryForUser(_$$ref?.pointer ?? ffi.nullptr).address == 0 + ? null + : objc.NSString.fromPointer( + _NSHomeDirectoryForUser(_$$ref?.pointer ?? ffi.nullptr), + retain: true, + release: true, + ); +} + +@ffi.Native>(symbol: 'NSHourNameDesignations') +external ffi.Pointer _NSHourNameDesignations; + +objc.NSString get NSHourNameDesignations => objc.NSString.fromPointer( + _NSHourNameDesignations, + retain: true, + release: true, +); + +set NSHourNameDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSHourNameDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHourNameDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSISO8601Calendar') +external ffi.Pointer _NSISO8601Calendar; + +objc.NSString get NSISO8601Calendar => + objc.NSString.fromPointer(_NSISO8601Calendar, retain: true, release: true); + +set NSISO8601Calendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSISO8601Calendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSISO8601Calendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSImageURLAttributeName') +external NSAttributedStringKey _NSImageURLAttributeName; + +DartNSAttributedStringKey get NSImageURLAttributeName => + objc.NSString.fromPointer( + _NSImageURLAttributeName, + retain: true, + release: true, + ); + +set NSImageURLAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSImageURLAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSImageURLAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInconsistentArchiveException') +external NSExceptionName _NSInconsistentArchiveException; + +DartNSExceptionName get NSInconsistentArchiveException => + objc.NSString.fromPointer( + _NSInconsistentArchiveException, + retain: true, + release: true, + ); + +set NSInconsistentArchiveException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInconsistentArchiveException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInconsistentArchiveException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSIncrementExtraRefCount', +) +external void _NSIncrementExtraRefCount( + ffi.Pointer object, +); + +void NSIncrementExtraRefCount(objc.ObjCObject object) { + final _$$ref = object.ref; + return _NSIncrementExtraRefCount(_$$ref.pointer); +} + +@ffi.Native>(symbol: 'NSIndianCalendar') +external ffi.Pointer _NSIndianCalendar; + +objc.NSString get NSIndianCalendar => + objc.NSString.fromPointer(_NSIndianCalendar, retain: true, release: true); + +set NSIndianCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSIndianCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSIndianCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInflectionAgreementArgumentAttributeName', +) +external NSAttributedStringKey _NSInflectionAgreementArgumentAttributeName; + +DartNSAttributedStringKey get NSInflectionAgreementArgumentAttributeName => + objc.NSString.fromPointer( + _NSInflectionAgreementArgumentAttributeName, + retain: true, + release: true, + ); + +set NSInflectionAgreementArgumentAttributeName( + DartNSAttributedStringKey value, +) { + objc.NSString.fromPointer( + _NSInflectionAgreementArgumentAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionAgreementArgumentAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInflectionAgreementConceptAttributeName', +) +external NSAttributedStringKey _NSInflectionAgreementConceptAttributeName; + +DartNSAttributedStringKey get NSInflectionAgreementConceptAttributeName => + objc.NSString.fromPointer( + _NSInflectionAgreementConceptAttributeName, + retain: true, + release: true, + ); + +set NSInflectionAgreementConceptAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSInflectionAgreementConceptAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionAgreementConceptAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInflectionAlternativeAttributeName', +) +external NSAttributedStringKey _NSInflectionAlternativeAttributeName; + +DartNSAttributedStringKey get NSInflectionAlternativeAttributeName => + objc.NSString.fromPointer( + _NSInflectionAlternativeAttributeName, + retain: true, + release: true, + ); + +set NSInflectionAlternativeAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSInflectionAlternativeAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionAlternativeAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInflectionConceptsKey', +) +external NSAttributedStringFormattingContextKey _NSInflectionConceptsKey; + +DartNSAttributedStringFormattingContextKey get NSInflectionConceptsKey => + objc.NSString.fromPointer( + _NSInflectionConceptsKey, + retain: true, + release: true, + ); + +set NSInflectionConceptsKey(DartNSAttributedStringFormattingContextKey value) { + objc.NSString.fromPointer( + _NSInflectionConceptsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionConceptsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInflectionReferentConceptAttributeName', +) +external NSAttributedStringKey _NSInflectionReferentConceptAttributeName; + +DartNSAttributedStringKey get NSInflectionReferentConceptAttributeName => + objc.NSString.fromPointer( + _NSInflectionReferentConceptAttributeName, + retain: true, + release: true, + ); + +set NSInflectionReferentConceptAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSInflectionReferentConceptAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionReferentConceptAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInflectionRuleAttributeName') +external NSAttributedStringKey _NSInflectionRuleAttributeName; + +DartNSAttributedStringKey get NSInflectionRuleAttributeName => + objc.NSString.fromPointer( + _NSInflectionRuleAttributeName, + retain: true, + release: true, + ); + +set NSInflectionRuleAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSInflectionRuleAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionRuleAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInlinePresentationIntentAttributeName', +) +external NSAttributedStringKey _NSInlinePresentationIntentAttributeName; + +DartNSAttributedStringKey get NSInlinePresentationIntentAttributeName => + objc.NSString.fromPointer( + _NSInlinePresentationIntentAttributeName, + retain: true, + release: true, + ); + +set NSInlinePresentationIntentAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSInlinePresentationIntentAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInlinePresentationIntentAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external NSRect NSInsetRect(NSRect aRect, double dX, double dY); + +@ffi.Native() +external final NSHashTableCallBacks NSIntHashCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSIntMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSIntMapValueCallBacks; + +@ffi.Native() +external final NSHashTableCallBacks NSIntegerHashCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSIntegerMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSIntegerMapValueCallBacks; + +@ffi.Native() +external NSRect NSIntegralRect(NSRect aRect); + +@ffi.Native() +external NSRect NSIntegralRectWithOptions(NSRect aRect, int opts); + +@ffi.Native(symbol: 'NSInternalInconsistencyException') +external NSExceptionName _NSInternalInconsistencyException; + +DartNSExceptionName get NSInternalInconsistencyException => + objc.NSString.fromPointer( + _NSInternalInconsistencyException, + retain: true, + release: true, + ); + +set NSInternalInconsistencyException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInternalInconsistencyException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInternalInconsistencyException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSInternationalCurrencyString', +) +external ffi.Pointer _NSInternationalCurrencyString; + +objc.NSString get NSInternationalCurrencyString => objc.NSString.fromPointer( + _NSInternationalCurrencyString, + retain: true, + release: true, +); + +set NSInternationalCurrencyString(objc.NSString value) { + objc.NSString.fromPointer( + _NSInternationalCurrencyString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInternationalCurrencyString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external NSRange NSIntersectionRange(NSRange range1, NSRange range2); + +@ffi.Native() +external NSRect NSIntersectionRect(NSRect aRect, NSRect bRect); + +@ffi.Native() +external bool NSIntersectsRect(NSRect aRect, NSRect bRect); + +@ffi.Native(symbol: 'NSInvalidArchiveOperationException') +external NSExceptionName _NSInvalidArchiveOperationException; + +DartNSExceptionName get NSInvalidArchiveOperationException => + objc.NSString.fromPointer( + _NSInvalidArchiveOperationException, + retain: true, + release: true, + ); + +set NSInvalidArchiveOperationException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvalidArchiveOperationException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvalidArchiveOperationException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvalidArgumentException') +external NSExceptionName _NSInvalidArgumentException; + +DartNSExceptionName get NSInvalidArgumentException => objc.NSString.fromPointer( + _NSInvalidArgumentException, + retain: true, + release: true, +); + +set NSInvalidArgumentException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvalidArgumentException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvalidArgumentException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvalidReceivePortException') +external NSExceptionName _NSInvalidReceivePortException; + +DartNSExceptionName get NSInvalidReceivePortException => + objc.NSString.fromPointer( + _NSInvalidReceivePortException, + retain: true, + release: true, + ); + +set NSInvalidReceivePortException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvalidReceivePortException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvalidReceivePortException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvalidSendPortException') +external NSExceptionName _NSInvalidSendPortException; + +DartNSExceptionName get NSInvalidSendPortException => objc.NSString.fromPointer( + _NSInvalidSendPortException, + retain: true, + release: true, +); + +set NSInvalidSendPortException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvalidSendPortException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvalidSendPortException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvalidUnarchiveOperationException') +external NSExceptionName _NSInvalidUnarchiveOperationException; + +DartNSExceptionName get NSInvalidUnarchiveOperationException => + objc.NSString.fromPointer( + _NSInvalidUnarchiveOperationException, + retain: true, + release: true, + ); + +set NSInvalidUnarchiveOperationException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvalidUnarchiveOperationException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvalidUnarchiveOperationException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvocationOperationCancelledException') +external NSExceptionName _NSInvocationOperationCancelledException; + +DartNSExceptionName get NSInvocationOperationCancelledException => + objc.NSString.fromPointer( + _NSInvocationOperationCancelledException, + retain: true, + release: true, + ); + +set NSInvocationOperationCancelledException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvocationOperationCancelledException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvocationOperationCancelledException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvocationOperationVoidResultException') +external NSExceptionName _NSInvocationOperationVoidResultException; + +DartNSExceptionName get NSInvocationOperationVoidResultException => + objc.NSString.fromPointer( + _NSInvocationOperationVoidResultException, + retain: true, + release: true, + ); + +set NSInvocationOperationVoidResultException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvocationOperationVoidResultException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvocationOperationVoidResultException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external bool NSIsEmptyRect(NSRect aRect); + +@ffi.Native(symbol: 'NSIsNilTransformerName') +external NSValueTransformerName _NSIsNilTransformerName; + +DartNSValueTransformerName get NSIsNilTransformerName => + objc.NSString.fromPointer( + _NSIsNilTransformerName, + retain: true, + release: true, + ); + +set NSIsNilTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSIsNilTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSIsNilTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSIsNotNilTransformerName') +external NSValueTransformerName _NSIsNotNilTransformerName; + +DartNSValueTransformerName get NSIsNotNilTransformerName => + objc.NSString.fromPointer( + _NSIsNotNilTransformerName, + retain: true, + release: true, + ); + +set NSIsNotNilTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSIsNotNilTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSIsNotNilTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSIslamicCalendar') +external ffi.Pointer _NSIslamicCalendar; + +objc.NSString get NSIslamicCalendar => + objc.NSString.fromPointer(_NSIslamicCalendar, retain: true, release: true); + +set NSIslamicCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSIslamicCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSIslamicCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSIslamicCivilCalendar') +external ffi.Pointer _NSIslamicCivilCalendar; + +objc.NSString get NSIslamicCivilCalendar => objc.NSString.fromPointer( + _NSIslamicCivilCalendar, + retain: true, + release: true, +); + +set NSIslamicCivilCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSIslamicCivilCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSIslamicCivilCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSItemProviderErrorDomain', +) +external ffi.Pointer _NSItemProviderErrorDomain; + +objc.NSString get NSItemProviderErrorDomain => objc.NSString.fromPointer( + _NSItemProviderErrorDomain, + retain: true, + release: true, +); + +set NSItemProviderErrorDomain(objc.NSString value) { + objc.NSString.fromPointer( + _NSItemProviderErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSItemProviderErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSItemProviderPreferredImageSizeKey', +) +external ffi.Pointer _NSItemProviderPreferredImageSizeKey; + +objc.NSString get NSItemProviderPreferredImageSizeKey => + objc.NSString.fromPointer( + _NSItemProviderPreferredImageSizeKey, + retain: true, + release: true, + ); + +set NSItemProviderPreferredImageSizeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSItemProviderPreferredImageSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSItemProviderPreferredImageSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSJapaneseCalendar') +external ffi.Pointer _NSJapaneseCalendar; + +objc.NSString get NSJapaneseCalendar => + objc.NSString.fromPointer(_NSJapaneseCalendar, retain: true, release: true); + +set NSJapaneseCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSJapaneseCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSJapaneseCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSKeyValueChangeIndexesKey') +external NSKeyValueChangeKey _NSKeyValueChangeIndexesKey; + +DartNSKeyValueChangeKey get NSKeyValueChangeIndexesKey => + objc.NSString.fromPointer( + _NSKeyValueChangeIndexesKey, + retain: true, + release: true, + ); + +set NSKeyValueChangeIndexesKey(DartNSKeyValueChangeKey value) { + objc.NSString.fromPointer( + _NSKeyValueChangeIndexesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyValueChangeIndexesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSKeyValueChangeKindKey') +external NSKeyValueChangeKey _NSKeyValueChangeKindKey; + +DartNSKeyValueChangeKey get NSKeyValueChangeKindKey => + objc.NSString.fromPointer( + _NSKeyValueChangeKindKey, + retain: true, + release: true, + ); + +set NSKeyValueChangeKindKey(DartNSKeyValueChangeKey value) { + objc.NSString.fromPointer( + _NSKeyValueChangeKindKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyValueChangeKindKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSKeyValueChangeNewKey') +external NSKeyValueChangeKey _NSKeyValueChangeNewKey; + +DartNSKeyValueChangeKey get NSKeyValueChangeNewKey => objc.NSString.fromPointer( + _NSKeyValueChangeNewKey, + retain: true, + release: true, +); + +set NSKeyValueChangeNewKey(DartNSKeyValueChangeKey value) { + objc.NSString.fromPointer( + _NSKeyValueChangeNewKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyValueChangeNewKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSKeyValueChangeNotificationIsPriorKey', +) +external NSKeyValueChangeKey _NSKeyValueChangeNotificationIsPriorKey; + +DartNSKeyValueChangeKey get NSKeyValueChangeNotificationIsPriorKey => + objc.NSString.fromPointer( + _NSKeyValueChangeNotificationIsPriorKey, + retain: true, + release: true, + ); + +set NSKeyValueChangeNotificationIsPriorKey(DartNSKeyValueChangeKey value) { + objc.NSString.fromPointer( + _NSKeyValueChangeNotificationIsPriorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyValueChangeNotificationIsPriorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSKeyValueChangeOldKey') +external NSKeyValueChangeKey _NSKeyValueChangeOldKey; + +DartNSKeyValueChangeKey get NSKeyValueChangeOldKey => objc.NSString.fromPointer( + _NSKeyValueChangeOldKey, + retain: true, + release: true, +); + +set NSKeyValueChangeOldKey(DartNSKeyValueChangeKey value) { + objc.NSString.fromPointer( + _NSKeyValueChangeOldKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyValueChangeOldKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSKeyedArchiveRootObjectKey', +) +external ffi.Pointer _NSKeyedArchiveRootObjectKey; + +objc.NSString get NSKeyedArchiveRootObjectKey => objc.NSString.fromPointer( + _NSKeyedArchiveRootObjectKey, + retain: true, + release: true, +); + +set NSKeyedArchiveRootObjectKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSKeyedArchiveRootObjectKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyedArchiveRootObjectKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSKeyedUnarchiveFromDataTransformerName', +) +external NSValueTransformerName _NSKeyedUnarchiveFromDataTransformerName; + +DartNSValueTransformerName get NSKeyedUnarchiveFromDataTransformerName => + objc.NSString.fromPointer( + _NSKeyedUnarchiveFromDataTransformerName, + retain: true, + release: true, + ); + +set NSKeyedUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSKeyedUnarchiveFromDataTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyedUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLanguageIdentifierAttributeName') +external NSAttributedStringKey _NSLanguageIdentifierAttributeName; + +DartNSAttributedStringKey get NSLanguageIdentifierAttributeName => + objc.NSString.fromPointer( + _NSLanguageIdentifierAttributeName, + retain: true, + release: true, + ); + +set NSLanguageIdentifierAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSLanguageIdentifierAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLanguageIdentifierAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSLaterTimeDesignations') +external ffi.Pointer _NSLaterTimeDesignations; + +objc.NSString get NSLaterTimeDesignations => objc.NSString.fromPointer( + _NSLaterTimeDesignations, + retain: true, + release: true, +); + +set NSLaterTimeDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSLaterTimeDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLaterTimeDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagAdjective') +external NSLinguisticTag _NSLinguisticTagAdjective; + +DartNSLinguisticTag get NSLinguisticTagAdjective => objc.NSString.fromPointer( + _NSLinguisticTagAdjective, + retain: true, + release: true, +); + +set NSLinguisticTagAdjective(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagAdjective, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagAdjective = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagAdverb') +external NSLinguisticTag _NSLinguisticTagAdverb; + +DartNSLinguisticTag get NSLinguisticTagAdverb => objc.NSString.fromPointer( + _NSLinguisticTagAdverb, + retain: true, + release: true, +); + +set NSLinguisticTagAdverb(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagAdverb, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagAdverb = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagClassifier') +external NSLinguisticTag _NSLinguisticTagClassifier; + +DartNSLinguisticTag get NSLinguisticTagClassifier => objc.NSString.fromPointer( + _NSLinguisticTagClassifier, + retain: true, + release: true, +); + +set NSLinguisticTagClassifier(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagClassifier, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagClassifier = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagCloseParenthesis') +external NSLinguisticTag _NSLinguisticTagCloseParenthesis; + +DartNSLinguisticTag get NSLinguisticTagCloseParenthesis => + objc.NSString.fromPointer( + _NSLinguisticTagCloseParenthesis, + retain: true, + release: true, + ); + +set NSLinguisticTagCloseParenthesis(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagCloseParenthesis, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagCloseParenthesis = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagCloseQuote') +external NSLinguisticTag _NSLinguisticTagCloseQuote; + +DartNSLinguisticTag get NSLinguisticTagCloseQuote => objc.NSString.fromPointer( + _NSLinguisticTagCloseQuote, + retain: true, + release: true, +); + +set NSLinguisticTagCloseQuote(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagCloseQuote, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagCloseQuote = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagConjunction') +external NSLinguisticTag _NSLinguisticTagConjunction; + +DartNSLinguisticTag get NSLinguisticTagConjunction => objc.NSString.fromPointer( + _NSLinguisticTagConjunction, + retain: true, + release: true, +); + +set NSLinguisticTagConjunction(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagConjunction, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagConjunction = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagDash') +external NSLinguisticTag _NSLinguisticTagDash; + +DartNSLinguisticTag get NSLinguisticTagDash => objc.NSString.fromPointer( + _NSLinguisticTagDash, + retain: true, + release: true, +); + +set NSLinguisticTagDash(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagDash, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagDash = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagDeterminer') +external NSLinguisticTag _NSLinguisticTagDeterminer; + +DartNSLinguisticTag get NSLinguisticTagDeterminer => objc.NSString.fromPointer( + _NSLinguisticTagDeterminer, + retain: true, + release: true, +); + +set NSLinguisticTagDeterminer(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagDeterminer, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagDeterminer = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagIdiom') +external NSLinguisticTag _NSLinguisticTagIdiom; + +DartNSLinguisticTag get NSLinguisticTagIdiom => objc.NSString.fromPointer( + _NSLinguisticTagIdiom, + retain: true, + release: true, +); + +set NSLinguisticTagIdiom(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagIdiom, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagIdiom = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagInterjection') +external NSLinguisticTag _NSLinguisticTagInterjection; + +DartNSLinguisticTag get NSLinguisticTagInterjection => + objc.NSString.fromPointer( + _NSLinguisticTagInterjection, + retain: true, + release: true, + ); + +set NSLinguisticTagInterjection(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagInterjection, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagInterjection = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagNoun') +external NSLinguisticTag _NSLinguisticTagNoun; + +DartNSLinguisticTag get NSLinguisticTagNoun => objc.NSString.fromPointer( + _NSLinguisticTagNoun, + retain: true, + release: true, +); + +set NSLinguisticTagNoun(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagNoun, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagNoun = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagNumber') +external NSLinguisticTag _NSLinguisticTagNumber; + +DartNSLinguisticTag get NSLinguisticTagNumber => objc.NSString.fromPointer( + _NSLinguisticTagNumber, + retain: true, + release: true, +); + +set NSLinguisticTagNumber(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagNumber, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagNumber = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOpenParenthesis') +external NSLinguisticTag _NSLinguisticTagOpenParenthesis; + +DartNSLinguisticTag get NSLinguisticTagOpenParenthesis => + objc.NSString.fromPointer( + _NSLinguisticTagOpenParenthesis, + retain: true, + release: true, + ); + +set NSLinguisticTagOpenParenthesis(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOpenParenthesis, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOpenParenthesis = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOpenQuote') +external NSLinguisticTag _NSLinguisticTagOpenQuote; + +DartNSLinguisticTag get NSLinguisticTagOpenQuote => objc.NSString.fromPointer( + _NSLinguisticTagOpenQuote, + retain: true, + release: true, +); + +set NSLinguisticTagOpenQuote(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOpenQuote, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOpenQuote = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOrganizationName') +external NSLinguisticTag _NSLinguisticTagOrganizationName; + +DartNSLinguisticTag get NSLinguisticTagOrganizationName => + objc.NSString.fromPointer( + _NSLinguisticTagOrganizationName, + retain: true, + release: true, + ); + +set NSLinguisticTagOrganizationName(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOrganizationName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOrganizationName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOther') +external NSLinguisticTag _NSLinguisticTagOther; + +DartNSLinguisticTag get NSLinguisticTagOther => objc.NSString.fromPointer( + _NSLinguisticTagOther, + retain: true, + release: true, +); + +set NSLinguisticTagOther(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOther, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOther = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOtherPunctuation') +external NSLinguisticTag _NSLinguisticTagOtherPunctuation; + +DartNSLinguisticTag get NSLinguisticTagOtherPunctuation => + objc.NSString.fromPointer( + _NSLinguisticTagOtherPunctuation, + retain: true, + release: true, + ); + +set NSLinguisticTagOtherPunctuation(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOtherPunctuation, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOtherPunctuation = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOtherWhitespace') +external NSLinguisticTag _NSLinguisticTagOtherWhitespace; + +DartNSLinguisticTag get NSLinguisticTagOtherWhitespace => + objc.NSString.fromPointer( + _NSLinguisticTagOtherWhitespace, + retain: true, + release: true, + ); + +set NSLinguisticTagOtherWhitespace(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOtherWhitespace, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOtherWhitespace = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOtherWord') +external NSLinguisticTag _NSLinguisticTagOtherWord; + +DartNSLinguisticTag get NSLinguisticTagOtherWord => objc.NSString.fromPointer( + _NSLinguisticTagOtherWord, + retain: true, + release: true, +); + +set NSLinguisticTagOtherWord(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOtherWord, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOtherWord = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagParagraphBreak') +external NSLinguisticTag _NSLinguisticTagParagraphBreak; + +DartNSLinguisticTag get NSLinguisticTagParagraphBreak => + objc.NSString.fromPointer( + _NSLinguisticTagParagraphBreak, + retain: true, + release: true, + ); + +set NSLinguisticTagParagraphBreak(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagParagraphBreak, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagParagraphBreak = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagParticle') +external NSLinguisticTag _NSLinguisticTagParticle; + +DartNSLinguisticTag get NSLinguisticTagParticle => objc.NSString.fromPointer( + _NSLinguisticTagParticle, + retain: true, + release: true, +); + +set NSLinguisticTagParticle(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagParticle, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagParticle = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagPersonalName') +external NSLinguisticTag _NSLinguisticTagPersonalName; + +DartNSLinguisticTag get NSLinguisticTagPersonalName => + objc.NSString.fromPointer( + _NSLinguisticTagPersonalName, + retain: true, + release: true, + ); + +set NSLinguisticTagPersonalName(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagPersonalName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagPersonalName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagPlaceName') +external NSLinguisticTag _NSLinguisticTagPlaceName; + +DartNSLinguisticTag get NSLinguisticTagPlaceName => objc.NSString.fromPointer( + _NSLinguisticTagPlaceName, + retain: true, + release: true, +); + +set NSLinguisticTagPlaceName(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagPlaceName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagPlaceName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagPreposition') +external NSLinguisticTag _NSLinguisticTagPreposition; + +DartNSLinguisticTag get NSLinguisticTagPreposition => objc.NSString.fromPointer( + _NSLinguisticTagPreposition, + retain: true, + release: true, +); + +set NSLinguisticTagPreposition(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagPreposition, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagPreposition = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagPronoun') +external NSLinguisticTag _NSLinguisticTagPronoun; + +DartNSLinguisticTag get NSLinguisticTagPronoun => objc.NSString.fromPointer( + _NSLinguisticTagPronoun, + retain: true, + release: true, +); + +set NSLinguisticTagPronoun(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagPronoun, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagPronoun = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagPunctuation') +external NSLinguisticTag _NSLinguisticTagPunctuation; + +DartNSLinguisticTag get NSLinguisticTagPunctuation => objc.NSString.fromPointer( + _NSLinguisticTagPunctuation, + retain: true, + release: true, +); + +set NSLinguisticTagPunctuation(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagPunctuation, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagPunctuation = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeLanguage') +external NSLinguisticTagScheme _NSLinguisticTagSchemeLanguage; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeLanguage => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLanguage, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeLanguage(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLanguage, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeLanguage = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeLemma') +external NSLinguisticTagScheme _NSLinguisticTagSchemeLemma; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeLemma => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLemma, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeLemma(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLemma, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeLemma = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeLexicalClass') +external NSLinguisticTagScheme _NSLinguisticTagSchemeLexicalClass; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeLexicalClass => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLexicalClass, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeLexicalClass(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLexicalClass, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeLexicalClass = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeNameType') +external NSLinguisticTagScheme _NSLinguisticTagSchemeNameType; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeNameType => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeNameType, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeNameType(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeNameType, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeNameType = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSLinguisticTagSchemeNameTypeOrLexicalClass', +) +external NSLinguisticTagScheme _NSLinguisticTagSchemeNameTypeOrLexicalClass; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeNameTypeOrLexicalClass => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeNameTypeOrLexicalClass, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeNameTypeOrLexicalClass( + DartNSLinguisticTagScheme value, +) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeNameTypeOrLexicalClass, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeNameTypeOrLexicalClass = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeScript') +external NSLinguisticTagScheme _NSLinguisticTagSchemeScript; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeScript => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeScript, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeScript(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeScript, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeScript = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeTokenType') +external NSLinguisticTagScheme _NSLinguisticTagSchemeTokenType; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeTokenType => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeTokenType, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeTokenType(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeTokenType, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeTokenType = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSentenceTerminator') +external NSLinguisticTag _NSLinguisticTagSentenceTerminator; + +DartNSLinguisticTag get NSLinguisticTagSentenceTerminator => + objc.NSString.fromPointer( + _NSLinguisticTagSentenceTerminator, + retain: true, + release: true, + ); + +set NSLinguisticTagSentenceTerminator(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagSentenceTerminator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSentenceTerminator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagVerb') +external NSLinguisticTag _NSLinguisticTagVerb; + +DartNSLinguisticTag get NSLinguisticTagVerb => objc.NSString.fromPointer( + _NSLinguisticTagVerb, + retain: true, + release: true, +); + +set NSLinguisticTagVerb(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagVerb, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagVerb = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagWhitespace') +external NSLinguisticTag _NSLinguisticTagWhitespace; + +DartNSLinguisticTag get NSLinguisticTagWhitespace => objc.NSString.fromPointer( + _NSLinguisticTagWhitespace, + retain: true, + release: true, +); + +set NSLinguisticTagWhitespace(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagWhitespace, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagWhitespace = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagWord') +external NSLinguisticTag _NSLinguisticTagWord; + +DartNSLinguisticTag get NSLinguisticTagWord => objc.NSString.fromPointer( + _NSLinguisticTagWord, + retain: true, + release: true, +); + +set NSLinguisticTagWord(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagWord, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagWord = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagWordJoiner') +external NSLinguisticTag _NSLinguisticTagWordJoiner; + +DartNSLinguisticTag get NSLinguisticTagWordJoiner => objc.NSString.fromPointer( + _NSLinguisticTagWordJoiner, + retain: true, + release: true, +); + +set NSLinguisticTagWordJoiner(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagWordJoiner, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagWordJoiner = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSListItemDelimiterAttributeName') +external NSAttributedStringKey _NSListItemDelimiterAttributeName; + +DartNSAttributedStringKey get NSListItemDelimiterAttributeName => + objc.NSString.fromPointer( + _NSListItemDelimiterAttributeName, + retain: true, + release: true, + ); + +set NSListItemDelimiterAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSListItemDelimiterAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSListItemDelimiterAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSLoadedClasses') +external ffi.Pointer _NSLoadedClasses; + +objc.NSString get NSLoadedClasses => + objc.NSString.fromPointer(_NSLoadedClasses, retain: true, release: true); + +set NSLoadedClasses(objc.NSString value) { + objc.NSString.fromPointer( + _NSLoadedClasses, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLoadedClasses = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSLocalNotificationCenterType', +) +external NSDistributedNotificationCenterType _NSLocalNotificationCenterType; + +DartNSDistributedNotificationCenterType get NSLocalNotificationCenterType => + objc.NSString.fromPointer( + _NSLocalNotificationCenterType, + retain: true, + release: true, + ); + +set NSLocalNotificationCenterType( + DartNSDistributedNotificationCenterType value, +) { + objc.NSString.fromPointer( + _NSLocalNotificationCenterType, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalNotificationCenterType = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleAlternateQuotationBeginDelimiterKey') +external NSLocaleKey _NSLocaleAlternateQuotationBeginDelimiterKey; + +DartNSLocaleKey get NSLocaleAlternateQuotationBeginDelimiterKey => + objc.NSString.fromPointer( + _NSLocaleAlternateQuotationBeginDelimiterKey, + retain: true, + release: true, + ); + +set NSLocaleAlternateQuotationBeginDelimiterKey(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleAlternateQuotationBeginDelimiterKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleAlternateQuotationBeginDelimiterKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleAlternateQuotationEndDelimiterKey') +external NSLocaleKey _NSLocaleAlternateQuotationEndDelimiterKey; + +DartNSLocaleKey get NSLocaleAlternateQuotationEndDelimiterKey => + objc.NSString.fromPointer( + _NSLocaleAlternateQuotationEndDelimiterKey, + retain: true, + release: true, + ); + +set NSLocaleAlternateQuotationEndDelimiterKey(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleAlternateQuotationEndDelimiterKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleAlternateQuotationEndDelimiterKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCalendar') +external NSLocaleKey _NSLocaleCalendar; + +DartNSLocaleKey get NSLocaleCalendar => + objc.NSString.fromPointer(_NSLocaleCalendar, retain: true, release: true); + +set NSLocaleCalendar(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCollationIdentifier') +external NSLocaleKey _NSLocaleCollationIdentifier; + +DartNSLocaleKey get NSLocaleCollationIdentifier => objc.NSString.fromPointer( + _NSLocaleCollationIdentifier, + retain: true, + release: true, +); + +set NSLocaleCollationIdentifier(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCollationIdentifier, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCollationIdentifier = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCollatorIdentifier') +external NSLocaleKey _NSLocaleCollatorIdentifier; + +DartNSLocaleKey get NSLocaleCollatorIdentifier => objc.NSString.fromPointer( + _NSLocaleCollatorIdentifier, + retain: true, + release: true, +); + +set NSLocaleCollatorIdentifier(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCollatorIdentifier, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCollatorIdentifier = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCountryCode') +external NSLocaleKey _NSLocaleCountryCode; + +DartNSLocaleKey get NSLocaleCountryCode => objc.NSString.fromPointer( + _NSLocaleCountryCode, + retain: true, + release: true, +); + +set NSLocaleCountryCode(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCountryCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCountryCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCurrencyCode') +external NSLocaleKey _NSLocaleCurrencyCode; + +DartNSLocaleKey get NSLocaleCurrencyCode => objc.NSString.fromPointer( + _NSLocaleCurrencyCode, + retain: true, + release: true, +); + +set NSLocaleCurrencyCode(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCurrencyCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCurrencyCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCurrencySymbol') +external NSLocaleKey _NSLocaleCurrencySymbol; + +DartNSLocaleKey get NSLocaleCurrencySymbol => objc.NSString.fromPointer( + _NSLocaleCurrencySymbol, + retain: true, + release: true, +); + +set NSLocaleCurrencySymbol(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCurrencySymbol, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCurrencySymbol = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleDecimalSeparator') +external NSLocaleKey _NSLocaleDecimalSeparator; + +DartNSLocaleKey get NSLocaleDecimalSeparator => objc.NSString.fromPointer( + _NSLocaleDecimalSeparator, + retain: true, + release: true, +); + +set NSLocaleDecimalSeparator(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleDecimalSeparator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleDecimalSeparator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleExemplarCharacterSet') +external NSLocaleKey _NSLocaleExemplarCharacterSet; + +DartNSLocaleKey get NSLocaleExemplarCharacterSet => objc.NSString.fromPointer( + _NSLocaleExemplarCharacterSet, + retain: true, + release: true, +); + +set NSLocaleExemplarCharacterSet(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleExemplarCharacterSet, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleExemplarCharacterSet = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleGroupingSeparator') +external NSLocaleKey _NSLocaleGroupingSeparator; + +DartNSLocaleKey get NSLocaleGroupingSeparator => objc.NSString.fromPointer( + _NSLocaleGroupingSeparator, + retain: true, + release: true, +); + +set NSLocaleGroupingSeparator(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleGroupingSeparator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleGroupingSeparator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleIdentifier') +external NSLocaleKey _NSLocaleIdentifier; + +DartNSLocaleKey get NSLocaleIdentifier => + objc.NSString.fromPointer(_NSLocaleIdentifier, retain: true, release: true); + +set NSLocaleIdentifier(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleIdentifier, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleIdentifier = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleLanguageCode') +external NSLocaleKey _NSLocaleLanguageCode; + +DartNSLocaleKey get NSLocaleLanguageCode => objc.NSString.fromPointer( + _NSLocaleLanguageCode, + retain: true, + release: true, +); + +set NSLocaleLanguageCode(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleLanguageCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleLanguageCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleMeasurementSystem') +external NSLocaleKey _NSLocaleMeasurementSystem; + +DartNSLocaleKey get NSLocaleMeasurementSystem => objc.NSString.fromPointer( + _NSLocaleMeasurementSystem, + retain: true, + release: true, +); + +set NSLocaleMeasurementSystem(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleMeasurementSystem, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleMeasurementSystem = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleQuotationBeginDelimiterKey') +external NSLocaleKey _NSLocaleQuotationBeginDelimiterKey; + +DartNSLocaleKey get NSLocaleQuotationBeginDelimiterKey => + objc.NSString.fromPointer( + _NSLocaleQuotationBeginDelimiterKey, + retain: true, + release: true, + ); + +set NSLocaleQuotationBeginDelimiterKey(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleQuotationBeginDelimiterKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleQuotationBeginDelimiterKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleQuotationEndDelimiterKey') +external NSLocaleKey _NSLocaleQuotationEndDelimiterKey; + +DartNSLocaleKey get NSLocaleQuotationEndDelimiterKey => + objc.NSString.fromPointer( + _NSLocaleQuotationEndDelimiterKey, + retain: true, + release: true, + ); + +set NSLocaleQuotationEndDelimiterKey(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleQuotationEndDelimiterKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleQuotationEndDelimiterKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleScriptCode') +external NSLocaleKey _NSLocaleScriptCode; + +DartNSLocaleKey get NSLocaleScriptCode => + objc.NSString.fromPointer(_NSLocaleScriptCode, retain: true, release: true); + +set NSLocaleScriptCode(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleScriptCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleScriptCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleUsesMetricSystem') +external NSLocaleKey _NSLocaleUsesMetricSystem; + +DartNSLocaleKey get NSLocaleUsesMetricSystem => objc.NSString.fromPointer( + _NSLocaleUsesMetricSystem, + retain: true, + release: true, +); + +set NSLocaleUsesMetricSystem(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleUsesMetricSystem, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleUsesMetricSystem = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleVariantCode') +external NSLocaleKey _NSLocaleVariantCode; + +DartNSLocaleKey get NSLocaleVariantCode => objc.NSString.fromPointer( + _NSLocaleVariantCode, + retain: true, + release: true, +); + +set NSLocaleVariantCode(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleVariantCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleVariantCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocalizedDescriptionKey') +external NSErrorUserInfoKey _NSLocalizedDescriptionKey; + +DartNSErrorUserInfoKey get NSLocalizedDescriptionKey => + objc.NSString.fromPointer( + _NSLocalizedDescriptionKey, + retain: true, + release: true, + ); + +set NSLocalizedDescriptionKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSLocalizedDescriptionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedDescriptionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocalizedFailureErrorKey') +external NSErrorUserInfoKey _NSLocalizedFailureErrorKey; + +DartNSErrorUserInfoKey get NSLocalizedFailureErrorKey => + objc.NSString.fromPointer( + _NSLocalizedFailureErrorKey, + retain: true, + release: true, + ); + +set NSLocalizedFailureErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSLocalizedFailureErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedFailureErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocalizedFailureReasonErrorKey') +external NSErrorUserInfoKey _NSLocalizedFailureReasonErrorKey; + +DartNSErrorUserInfoKey get NSLocalizedFailureReasonErrorKey => + objc.NSString.fromPointer( + _NSLocalizedFailureReasonErrorKey, + retain: true, + release: true, + ); + +set NSLocalizedFailureReasonErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSLocalizedFailureReasonErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedFailureReasonErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSLocalizedNumberFormatAttributeName', +) +external NSAttributedStringKey _NSLocalizedNumberFormatAttributeName; + +DartNSAttributedStringKey get NSLocalizedNumberFormatAttributeName => + objc.NSString.fromPointer( + _NSLocalizedNumberFormatAttributeName, + retain: true, + release: true, + ); + +set NSLocalizedNumberFormatAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSLocalizedNumberFormatAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedNumberFormatAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocalizedRecoveryOptionsErrorKey') +external NSErrorUserInfoKey _NSLocalizedRecoveryOptionsErrorKey; + +DartNSErrorUserInfoKey get NSLocalizedRecoveryOptionsErrorKey => + objc.NSString.fromPointer( + _NSLocalizedRecoveryOptionsErrorKey, + retain: true, + release: true, + ); + +set NSLocalizedRecoveryOptionsErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSLocalizedRecoveryOptionsErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedRecoveryOptionsErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocalizedRecoverySuggestionErrorKey') +external NSErrorUserInfoKey _NSLocalizedRecoverySuggestionErrorKey; + +DartNSErrorUserInfoKey get NSLocalizedRecoverySuggestionErrorKey => + objc.NSString.fromPointer( + _NSLocalizedRecoverySuggestionErrorKey, + retain: true, + release: true, + ); + +set NSLocalizedRecoverySuggestionErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSLocalizedRecoverySuggestionErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedRecoverySuggestionErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSLog', +) +external void _NSLog(ffi.Pointer format); + +void NSLog(objc.NSString format) { + final _$$ref = format.ref; + return _NSLog(_$$ref.pointer); +} + +@ffi.Native() +external int NSLogPageSize(); + +@ffi.Native, va_list)>( + symbol: 'NSLogv', +) +external void _NSLogv(ffi.Pointer format, va_list args); + +void NSLogv(objc.NSString format, va_list args) { + final _$$ref = format.ref; + return _NSLogv(_$$ref.pointer, args); +} + +@ffi.Native(symbol: 'NSMachErrorDomain') +external NSErrorDomain _NSMachErrorDomain; + +DartNSErrorDomain get NSMachErrorDomain => + objc.NSString.fromPointer(_NSMachErrorDomain, retain: true, release: true); + +set NSMachErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSMachErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMachErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSMallocException') +external NSExceptionName _NSMallocException; + +DartNSExceptionName get NSMallocException => + objc.NSString.fromPointer(_NSMallocException, retain: true, release: true); + +set NSMallocException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSMallocException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMallocException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSMapGet') +external ffi.Pointer _NSMapGet( + ffi.Pointer table, + ffi.Pointer key, +); + +ffi.Pointer NSMapGet(NSMapTable table, ffi.Pointer key) { + final _$$ref = table.ref; + return _NSMapGet(_$$ref.pointer, key); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSMapInsert') +external void _NSMapInsert( + ffi.Pointer table, + ffi.Pointer key, + ffi.Pointer value, +); + +void NSMapInsert( + NSMapTable table, + ffi.Pointer key, + ffi.Pointer value, +) { + final _$$ref = table.ref; + return _NSMapInsert(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSMapInsertIfAbsent') +external ffi.Pointer _NSMapInsertIfAbsent( + ffi.Pointer table, + ffi.Pointer key, + ffi.Pointer value, +); + +ffi.Pointer NSMapInsertIfAbsent( + NSMapTable table, + ffi.Pointer key, + ffi.Pointer value, +) { + final _$$ref = table.ref; + return _NSMapInsertIfAbsent(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSMapInsertKnownAbsent') +external void _NSMapInsertKnownAbsent( + ffi.Pointer table, + ffi.Pointer key, + ffi.Pointer value, +); + +void NSMapInsertKnownAbsent( + NSMapTable table, + ffi.Pointer key, + ffi.Pointer value, +) { + final _$$ref = table.ref; + return _NSMapInsertKnownAbsent(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) +>(symbol: 'NSMapMember') +external bool _NSMapMember( + ffi.Pointer table, + ffi.Pointer key, + ffi.Pointer> originalKey, + ffi.Pointer> value, +); + +bool NSMapMember( + NSMapTable table, + ffi.Pointer key, + ffi.Pointer> originalKey, + ffi.Pointer> value, +) { + final _$$ref = table.ref; + return _NSMapMember(_$$ref.pointer, key, originalKey, value); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSMapRemove') +external void _NSMapRemove( + ffi.Pointer table, + ffi.Pointer key, +); + +void NSMapRemove(NSMapTable table, ffi.Pointer key) { + final _$$ref = table.ref; + return _NSMapRemove(_$$ref.pointer, key); +} + +@ffi.Native( + symbol: 'NSMarkdownSourcePositionAttributeName', +) +external NSAttributedStringKey _NSMarkdownSourcePositionAttributeName; + +DartNSAttributedStringKey get NSMarkdownSourcePositionAttributeName => + objc.NSString.fromPointer( + _NSMarkdownSourcePositionAttributeName, + retain: true, + release: true, + ); + +set NSMarkdownSourcePositionAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSMarkdownSourcePositionAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMarkdownSourcePositionAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSMaximumKeyValueOperator') +external NSKeyValueOperator _NSMaximumKeyValueOperator; + +DartNSKeyValueOperator get NSMaximumKeyValueOperator => + objc.NSString.fromPointer( + _NSMaximumKeyValueOperator, + retain: true, + release: true, + ); + +set NSMaximumKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSMaximumKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMaximumKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAcquisitionMakeKey', +) +external ffi.Pointer _NSMetadataItemAcquisitionMakeKey; + +objc.NSString get NSMetadataItemAcquisitionMakeKey => objc.NSString.fromPointer( + _NSMetadataItemAcquisitionMakeKey, + retain: true, + release: true, +); + +set NSMetadataItemAcquisitionMakeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAcquisitionMakeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAcquisitionMakeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAcquisitionModelKey', +) +external ffi.Pointer _NSMetadataItemAcquisitionModelKey; + +objc.NSString get NSMetadataItemAcquisitionModelKey => + objc.NSString.fromPointer( + _NSMetadataItemAcquisitionModelKey, + retain: true, + release: true, + ); + +set NSMetadataItemAcquisitionModelKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAcquisitionModelKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAcquisitionModelKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemAlbumKey') +external ffi.Pointer _NSMetadataItemAlbumKey; + +objc.NSString get NSMetadataItemAlbumKey => objc.NSString.fromPointer( + _NSMetadataItemAlbumKey, + retain: true, + release: true, +); + +set NSMetadataItemAlbumKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAlbumKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAlbumKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAltitudeKey', +) +external ffi.Pointer _NSMetadataItemAltitudeKey; + +objc.NSString get NSMetadataItemAltitudeKey => objc.NSString.fromPointer( + _NSMetadataItemAltitudeKey, + retain: true, + release: true, +); + +set NSMetadataItemAltitudeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAltitudeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAltitudeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemApertureKey', +) +external ffi.Pointer _NSMetadataItemApertureKey; + +objc.NSString get NSMetadataItemApertureKey => objc.NSString.fromPointer( + _NSMetadataItemApertureKey, + retain: true, + release: true, +); + +set NSMetadataItemApertureKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemApertureKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemApertureKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAppleLoopDescriptorsKey', +) +external ffi.Pointer +_NSMetadataItemAppleLoopDescriptorsKey; + +objc.NSString get NSMetadataItemAppleLoopDescriptorsKey => + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopDescriptorsKey, + retain: true, + release: true, + ); + +set NSMetadataItemAppleLoopDescriptorsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopDescriptorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAppleLoopDescriptorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAppleLoopsKeyFilterTypeKey', +) +external ffi.Pointer +_NSMetadataItemAppleLoopsKeyFilterTypeKey; + +objc.NSString get NSMetadataItemAppleLoopsKeyFilterTypeKey => + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsKeyFilterTypeKey, + retain: true, + release: true, + ); + +set NSMetadataItemAppleLoopsKeyFilterTypeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsKeyFilterTypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAppleLoopsKeyFilterTypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAppleLoopsLoopModeKey', +) +external ffi.Pointer _NSMetadataItemAppleLoopsLoopModeKey; + +objc.NSString get NSMetadataItemAppleLoopsLoopModeKey => + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsLoopModeKey, + retain: true, + release: true, + ); + +set NSMetadataItemAppleLoopsLoopModeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsLoopModeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAppleLoopsLoopModeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAppleLoopsRootKeyKey', +) +external ffi.Pointer _NSMetadataItemAppleLoopsRootKeyKey; + +objc.NSString get NSMetadataItemAppleLoopsRootKeyKey => + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsRootKeyKey, + retain: true, + release: true, + ); + +set NSMetadataItemAppleLoopsRootKeyKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsRootKeyKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAppleLoopsRootKeyKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemApplicationCategoriesKey', +) +external ffi.Pointer +_NSMetadataItemApplicationCategoriesKey; + +objc.NSString get NSMetadataItemApplicationCategoriesKey => + objc.NSString.fromPointer( + _NSMetadataItemApplicationCategoriesKey, + retain: true, + release: true, + ); + +set NSMetadataItemApplicationCategoriesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemApplicationCategoriesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemApplicationCategoriesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAttributeChangeDateKey', +) +external ffi.Pointer _NSMetadataItemAttributeChangeDateKey; + +objc.NSString get NSMetadataItemAttributeChangeDateKey => + objc.NSString.fromPointer( + _NSMetadataItemAttributeChangeDateKey, + retain: true, + release: true, + ); + +set NSMetadataItemAttributeChangeDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAttributeChangeDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAttributeChangeDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudiencesKey', +) +external ffi.Pointer _NSMetadataItemAudiencesKey; + +objc.NSString get NSMetadataItemAudiencesKey => objc.NSString.fromPointer( + _NSMetadataItemAudiencesKey, + retain: true, + release: true, +); + +set NSMetadataItemAudiencesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudiencesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudiencesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudioBitRateKey', +) +external ffi.Pointer _NSMetadataItemAudioBitRateKey; + +objc.NSString get NSMetadataItemAudioBitRateKey => objc.NSString.fromPointer( + _NSMetadataItemAudioBitRateKey, + retain: true, + release: true, +); + +set NSMetadataItemAudioBitRateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudioBitRateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudioBitRateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudioChannelCountKey', +) +external ffi.Pointer _NSMetadataItemAudioChannelCountKey; + +objc.NSString get NSMetadataItemAudioChannelCountKey => + objc.NSString.fromPointer( + _NSMetadataItemAudioChannelCountKey, + retain: true, + release: true, + ); + +set NSMetadataItemAudioChannelCountKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudioChannelCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudioChannelCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudioEncodingApplicationKey', +) +external ffi.Pointer +_NSMetadataItemAudioEncodingApplicationKey; + +objc.NSString get NSMetadataItemAudioEncodingApplicationKey => + objc.NSString.fromPointer( + _NSMetadataItemAudioEncodingApplicationKey, + retain: true, + release: true, + ); + +set NSMetadataItemAudioEncodingApplicationKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudioEncodingApplicationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudioEncodingApplicationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudioSampleRateKey', +) +external ffi.Pointer _NSMetadataItemAudioSampleRateKey; + +objc.NSString get NSMetadataItemAudioSampleRateKey => objc.NSString.fromPointer( + _NSMetadataItemAudioSampleRateKey, + retain: true, + release: true, +); + +set NSMetadataItemAudioSampleRateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudioSampleRateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudioSampleRateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudioTrackNumberKey', +) +external ffi.Pointer _NSMetadataItemAudioTrackNumberKey; + +objc.NSString get NSMetadataItemAudioTrackNumberKey => + objc.NSString.fromPointer( + _NSMetadataItemAudioTrackNumberKey, + retain: true, + release: true, + ); + +set NSMetadataItemAudioTrackNumberKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudioTrackNumberKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudioTrackNumberKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAuthorAddressesKey', +) +external ffi.Pointer _NSMetadataItemAuthorAddressesKey; + +objc.NSString get NSMetadataItemAuthorAddressesKey => objc.NSString.fromPointer( + _NSMetadataItemAuthorAddressesKey, + retain: true, + release: true, +); + +set NSMetadataItemAuthorAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAuthorAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAuthorAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAuthorEmailAddressesKey', +) +external ffi.Pointer +_NSMetadataItemAuthorEmailAddressesKey; + +objc.NSString get NSMetadataItemAuthorEmailAddressesKey => + objc.NSString.fromPointer( + _NSMetadataItemAuthorEmailAddressesKey, + retain: true, + release: true, + ); + +set NSMetadataItemAuthorEmailAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAuthorEmailAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAuthorEmailAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAuthorsKey', +) +external ffi.Pointer _NSMetadataItemAuthorsKey; + +objc.NSString get NSMetadataItemAuthorsKey => objc.NSString.fromPointer( + _NSMetadataItemAuthorsKey, + retain: true, + release: true, +); + +set NSMetadataItemAuthorsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAuthorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAuthorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemBitsPerSampleKey', +) +external ffi.Pointer _NSMetadataItemBitsPerSampleKey; + +objc.NSString get NSMetadataItemBitsPerSampleKey => objc.NSString.fromPointer( + _NSMetadataItemBitsPerSampleKey, + retain: true, + release: true, +); + +set NSMetadataItemBitsPerSampleKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemBitsPerSampleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemBitsPerSampleKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCFBundleIdentifierKey', +) +external ffi.Pointer _NSMetadataItemCFBundleIdentifierKey; + +objc.NSString get NSMetadataItemCFBundleIdentifierKey => + objc.NSString.fromPointer( + _NSMetadataItemCFBundleIdentifierKey, + retain: true, + release: true, + ); + +set NSMetadataItemCFBundleIdentifierKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCFBundleIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCFBundleIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCameraOwnerKey', +) +external ffi.Pointer _NSMetadataItemCameraOwnerKey; + +objc.NSString get NSMetadataItemCameraOwnerKey => objc.NSString.fromPointer( + _NSMetadataItemCameraOwnerKey, + retain: true, + release: true, +); + +set NSMetadataItemCameraOwnerKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCameraOwnerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCameraOwnerKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemCityKey') +external ffi.Pointer _NSMetadataItemCityKey; + +objc.NSString get NSMetadataItemCityKey => objc.NSString.fromPointer( + _NSMetadataItemCityKey, + retain: true, + release: true, +); + +set NSMetadataItemCityKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemCodecsKey') +external ffi.Pointer _NSMetadataItemCodecsKey; + +objc.NSString get NSMetadataItemCodecsKey => objc.NSString.fromPointer( + _NSMetadataItemCodecsKey, + retain: true, + release: true, +); + +set NSMetadataItemCodecsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCodecsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCodecsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemColorSpaceKey', +) +external ffi.Pointer _NSMetadataItemColorSpaceKey; + +objc.NSString get NSMetadataItemColorSpaceKey => objc.NSString.fromPointer( + _NSMetadataItemColorSpaceKey, + retain: true, + release: true, +); + +set NSMetadataItemColorSpaceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemColorSpaceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemColorSpaceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCommentKey', +) +external ffi.Pointer _NSMetadataItemCommentKey; + +objc.NSString get NSMetadataItemCommentKey => objc.NSString.fromPointer( + _NSMetadataItemCommentKey, + retain: true, + release: true, +); + +set NSMetadataItemCommentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCommentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCommentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemComposerKey', +) +external ffi.Pointer _NSMetadataItemComposerKey; + +objc.NSString get NSMetadataItemComposerKey => objc.NSString.fromPointer( + _NSMetadataItemComposerKey, + retain: true, + release: true, +); + +set NSMetadataItemComposerKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemComposerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemComposerKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContactKeywordsKey', +) +external ffi.Pointer _NSMetadataItemContactKeywordsKey; + +objc.NSString get NSMetadataItemContactKeywordsKey => objc.NSString.fromPointer( + _NSMetadataItemContactKeywordsKey, + retain: true, + release: true, +); + +set NSMetadataItemContactKeywordsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContactKeywordsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContactKeywordsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContentCreationDateKey', +) +external ffi.Pointer _NSMetadataItemContentCreationDateKey; + +objc.NSString get NSMetadataItemContentCreationDateKey => + objc.NSString.fromPointer( + _NSMetadataItemContentCreationDateKey, + retain: true, + release: true, + ); + +set NSMetadataItemContentCreationDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContentCreationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContentCreationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContentModificationDateKey', +) +external ffi.Pointer +_NSMetadataItemContentModificationDateKey; + +objc.NSString get NSMetadataItemContentModificationDateKey => + objc.NSString.fromPointer( + _NSMetadataItemContentModificationDateKey, + retain: true, + release: true, + ); + +set NSMetadataItemContentModificationDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContentModificationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContentModificationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContentTypeKey', +) +external ffi.Pointer _NSMetadataItemContentTypeKey; + +objc.NSString get NSMetadataItemContentTypeKey => objc.NSString.fromPointer( + _NSMetadataItemContentTypeKey, + retain: true, + release: true, +); + +set NSMetadataItemContentTypeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContentTypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContentTypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContentTypeTreeKey', +) +external ffi.Pointer _NSMetadataItemContentTypeTreeKey; + +objc.NSString get NSMetadataItemContentTypeTreeKey => objc.NSString.fromPointer( + _NSMetadataItemContentTypeTreeKey, + retain: true, + release: true, +); + +set NSMetadataItemContentTypeTreeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContentTypeTreeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContentTypeTreeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContributorsKey', +) +external ffi.Pointer _NSMetadataItemContributorsKey; + +objc.NSString get NSMetadataItemContributorsKey => objc.NSString.fromPointer( + _NSMetadataItemContributorsKey, + retain: true, + release: true, +); + +set NSMetadataItemContributorsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContributorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContributorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCopyrightKey', +) +external ffi.Pointer _NSMetadataItemCopyrightKey; + +objc.NSString get NSMetadataItemCopyrightKey => objc.NSString.fromPointer( + _NSMetadataItemCopyrightKey, + retain: true, + release: true, +); + +set NSMetadataItemCopyrightKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCopyrightKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCopyrightKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCountryKey', +) +external ffi.Pointer _NSMetadataItemCountryKey; + +objc.NSString get NSMetadataItemCountryKey => objc.NSString.fromPointer( + _NSMetadataItemCountryKey, + retain: true, + release: true, +); + +set NSMetadataItemCountryKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCountryKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCountryKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCoverageKey', +) +external ffi.Pointer _NSMetadataItemCoverageKey; + +objc.NSString get NSMetadataItemCoverageKey => objc.NSString.fromPointer( + _NSMetadataItemCoverageKey, + retain: true, + release: true, +); + +set NSMetadataItemCoverageKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCoverageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCoverageKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCreatorKey', +) +external ffi.Pointer _NSMetadataItemCreatorKey; + +objc.NSString get NSMetadataItemCreatorKey => objc.NSString.fromPointer( + _NSMetadataItemCreatorKey, + retain: true, + release: true, +); + +set NSMetadataItemCreatorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCreatorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCreatorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDateAddedKey', +) +external ffi.Pointer _NSMetadataItemDateAddedKey; + +objc.NSString get NSMetadataItemDateAddedKey => objc.NSString.fromPointer( + _NSMetadataItemDateAddedKey, + retain: true, + release: true, +); + +set NSMetadataItemDateAddedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDateAddedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDateAddedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDeliveryTypeKey', +) +external ffi.Pointer _NSMetadataItemDeliveryTypeKey; + +objc.NSString get NSMetadataItemDeliveryTypeKey => objc.NSString.fromPointer( + _NSMetadataItemDeliveryTypeKey, + retain: true, + release: true, +); + +set NSMetadataItemDeliveryTypeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDeliveryTypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDeliveryTypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDescriptionKey', +) +external ffi.Pointer _NSMetadataItemDescriptionKey; + +objc.NSString get NSMetadataItemDescriptionKey => objc.NSString.fromPointer( + _NSMetadataItemDescriptionKey, + retain: true, + release: true, +); + +set NSMetadataItemDescriptionKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDescriptionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDescriptionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDirectorKey', +) +external ffi.Pointer _NSMetadataItemDirectorKey; + +objc.NSString get NSMetadataItemDirectorKey => objc.NSString.fromPointer( + _NSMetadataItemDirectorKey, + retain: true, + release: true, +); + +set NSMetadataItemDirectorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDirectorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDirectorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDisplayNameKey', +) +external ffi.Pointer _NSMetadataItemDisplayNameKey; + +objc.NSString get NSMetadataItemDisplayNameKey => objc.NSString.fromPointer( + _NSMetadataItemDisplayNameKey, + retain: true, + release: true, +); + +set NSMetadataItemDisplayNameKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDisplayNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDisplayNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDownloadedDateKey', +) +external ffi.Pointer _NSMetadataItemDownloadedDateKey; + +objc.NSString get NSMetadataItemDownloadedDateKey => objc.NSString.fromPointer( + _NSMetadataItemDownloadedDateKey, + retain: true, + release: true, +); + +set NSMetadataItemDownloadedDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDownloadedDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDownloadedDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDueDateKey', +) +external ffi.Pointer _NSMetadataItemDueDateKey; + +objc.NSString get NSMetadataItemDueDateKey => objc.NSString.fromPointer( + _NSMetadataItemDueDateKey, + retain: true, + release: true, +); + +set NSMetadataItemDueDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDueDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDueDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDurationSecondsKey', +) +external ffi.Pointer _NSMetadataItemDurationSecondsKey; + +objc.NSString get NSMetadataItemDurationSecondsKey => objc.NSString.fromPointer( + _NSMetadataItemDurationSecondsKey, + retain: true, + release: true, +); + +set NSMetadataItemDurationSecondsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDurationSecondsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDurationSecondsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemEXIFGPSVersionKey', +) +external ffi.Pointer _NSMetadataItemEXIFGPSVersionKey; + +objc.NSString get NSMetadataItemEXIFGPSVersionKey => objc.NSString.fromPointer( + _NSMetadataItemEXIFGPSVersionKey, + retain: true, + release: true, +); + +set NSMetadataItemEXIFGPSVersionKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemEXIFGPSVersionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemEXIFGPSVersionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemEXIFVersionKey', +) +external ffi.Pointer _NSMetadataItemEXIFVersionKey; + +objc.NSString get NSMetadataItemEXIFVersionKey => objc.NSString.fromPointer( + _NSMetadataItemEXIFVersionKey, + retain: true, + release: true, +); + +set NSMetadataItemEXIFVersionKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemEXIFVersionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemEXIFVersionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemEditorsKey', +) +external ffi.Pointer _NSMetadataItemEditorsKey; + +objc.NSString get NSMetadataItemEditorsKey => objc.NSString.fromPointer( + _NSMetadataItemEditorsKey, + retain: true, + release: true, +); + +set NSMetadataItemEditorsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemEditorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemEditorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemEmailAddressesKey', +) +external ffi.Pointer _NSMetadataItemEmailAddressesKey; + +objc.NSString get NSMetadataItemEmailAddressesKey => objc.NSString.fromPointer( + _NSMetadataItemEmailAddressesKey, + retain: true, + release: true, +); + +set NSMetadataItemEmailAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemEmailAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemEmailAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemEncodingApplicationsKey', +) +external ffi.Pointer +_NSMetadataItemEncodingApplicationsKey; + +objc.NSString get NSMetadataItemEncodingApplicationsKey => + objc.NSString.fromPointer( + _NSMetadataItemEncodingApplicationsKey, + retain: true, + release: true, + ); + +set NSMetadataItemEncodingApplicationsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemEncodingApplicationsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemEncodingApplicationsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExecutableArchitecturesKey', +) +external ffi.Pointer +_NSMetadataItemExecutableArchitecturesKey; + +objc.NSString get NSMetadataItemExecutableArchitecturesKey => + objc.NSString.fromPointer( + _NSMetadataItemExecutableArchitecturesKey, + retain: true, + release: true, + ); + +set NSMetadataItemExecutableArchitecturesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExecutableArchitecturesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExecutableArchitecturesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExecutablePlatformKey', +) +external ffi.Pointer _NSMetadataItemExecutablePlatformKey; + +objc.NSString get NSMetadataItemExecutablePlatformKey => + objc.NSString.fromPointer( + _NSMetadataItemExecutablePlatformKey, + retain: true, + release: true, + ); + +set NSMetadataItemExecutablePlatformKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExecutablePlatformKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExecutablePlatformKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExposureModeKey', +) +external ffi.Pointer _NSMetadataItemExposureModeKey; + +objc.NSString get NSMetadataItemExposureModeKey => objc.NSString.fromPointer( + _NSMetadataItemExposureModeKey, + retain: true, + release: true, +); + +set NSMetadataItemExposureModeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExposureModeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExposureModeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExposureProgramKey', +) +external ffi.Pointer _NSMetadataItemExposureProgramKey; + +objc.NSString get NSMetadataItemExposureProgramKey => objc.NSString.fromPointer( + _NSMetadataItemExposureProgramKey, + retain: true, + release: true, +); + +set NSMetadataItemExposureProgramKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExposureProgramKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExposureProgramKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExposureTimeSecondsKey', +) +external ffi.Pointer _NSMetadataItemExposureTimeSecondsKey; + +objc.NSString get NSMetadataItemExposureTimeSecondsKey => + objc.NSString.fromPointer( + _NSMetadataItemExposureTimeSecondsKey, + retain: true, + release: true, + ); + +set NSMetadataItemExposureTimeSecondsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExposureTimeSecondsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExposureTimeSecondsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExposureTimeStringKey', +) +external ffi.Pointer _NSMetadataItemExposureTimeStringKey; + +objc.NSString get NSMetadataItemExposureTimeStringKey => + objc.NSString.fromPointer( + _NSMetadataItemExposureTimeStringKey, + retain: true, + release: true, + ); + +set NSMetadataItemExposureTimeStringKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExposureTimeStringKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExposureTimeStringKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFNumberKey', +) +external ffi.Pointer _NSMetadataItemFNumberKey; + +objc.NSString get NSMetadataItemFNumberKey => objc.NSString.fromPointer( + _NSMetadataItemFNumberKey, + retain: true, + release: true, +); + +set NSMetadataItemFNumberKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFNumberKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFNumberKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFSContentChangeDateKey', +) +external ffi.Pointer _NSMetadataItemFSContentChangeDateKey; + +objc.NSString get NSMetadataItemFSContentChangeDateKey => + objc.NSString.fromPointer( + _NSMetadataItemFSContentChangeDateKey, + retain: true, + release: true, + ); + +set NSMetadataItemFSContentChangeDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFSContentChangeDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFSContentChangeDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFSCreationDateKey', +) +external ffi.Pointer _NSMetadataItemFSCreationDateKey; + +objc.NSString get NSMetadataItemFSCreationDateKey => objc.NSString.fromPointer( + _NSMetadataItemFSCreationDateKey, + retain: true, + release: true, +); + +set NSMetadataItemFSCreationDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFSCreationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFSCreationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemFSNameKey') +external ffi.Pointer _NSMetadataItemFSNameKey; + +objc.NSString get NSMetadataItemFSNameKey => objc.NSString.fromPointer( + _NSMetadataItemFSNameKey, + retain: true, + release: true, +); + +set NSMetadataItemFSNameKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFSNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFSNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemFSSizeKey') +external ffi.Pointer _NSMetadataItemFSSizeKey; + +objc.NSString get NSMetadataItemFSSizeKey => objc.NSString.fromPointer( + _NSMetadataItemFSSizeKey, + retain: true, + release: true, +); + +set NSMetadataItemFSSizeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFSSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFSSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFinderCommentKey', +) +external ffi.Pointer _NSMetadataItemFinderCommentKey; + +objc.NSString get NSMetadataItemFinderCommentKey => objc.NSString.fromPointer( + _NSMetadataItemFinderCommentKey, + retain: true, + release: true, +); + +set NSMetadataItemFinderCommentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFinderCommentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFinderCommentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFlashOnOffKey', +) +external ffi.Pointer _NSMetadataItemFlashOnOffKey; + +objc.NSString get NSMetadataItemFlashOnOffKey => objc.NSString.fromPointer( + _NSMetadataItemFlashOnOffKey, + retain: true, + release: true, +); + +set NSMetadataItemFlashOnOffKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFlashOnOffKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFlashOnOffKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFocalLength35mmKey', +) +external ffi.Pointer _NSMetadataItemFocalLength35mmKey; + +objc.NSString get NSMetadataItemFocalLength35mmKey => objc.NSString.fromPointer( + _NSMetadataItemFocalLength35mmKey, + retain: true, + release: true, +); + +set NSMetadataItemFocalLength35mmKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFocalLength35mmKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFocalLength35mmKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFocalLengthKey', +) +external ffi.Pointer _NSMetadataItemFocalLengthKey; + +objc.NSString get NSMetadataItemFocalLengthKey => objc.NSString.fromPointer( + _NSMetadataItemFocalLengthKey, + retain: true, + release: true, +); + +set NSMetadataItemFocalLengthKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFocalLengthKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFocalLengthKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemFontsKey') +external ffi.Pointer _NSMetadataItemFontsKey; + +objc.NSString get NSMetadataItemFontsKey => objc.NSString.fromPointer( + _NSMetadataItemFontsKey, + retain: true, + release: true, +); + +set NSMetadataItemFontsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFontsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFontsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSAreaInformationKey', +) +external ffi.Pointer _NSMetadataItemGPSAreaInformationKey; + +objc.NSString get NSMetadataItemGPSAreaInformationKey => + objc.NSString.fromPointer( + _NSMetadataItemGPSAreaInformationKey, + retain: true, + release: true, + ); + +set NSMetadataItemGPSAreaInformationKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSAreaInformationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSAreaInformationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemGPSDOPKey') +external ffi.Pointer _NSMetadataItemGPSDOPKey; + +objc.NSString get NSMetadataItemGPSDOPKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDOPKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDOPKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDOPKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDOPKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDateStampKey', +) +external ffi.Pointer _NSMetadataItemGPSDateStampKey; + +objc.NSString get NSMetadataItemGPSDateStampKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDateStampKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDateStampKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDateStampKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDateStampKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDestBearingKey', +) +external ffi.Pointer _NSMetadataItemGPSDestBearingKey; + +objc.NSString get NSMetadataItemGPSDestBearingKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDestBearingKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDestBearingKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDestBearingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDestBearingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDestDistanceKey', +) +external ffi.Pointer _NSMetadataItemGPSDestDistanceKey; + +objc.NSString get NSMetadataItemGPSDestDistanceKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDestDistanceKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDestDistanceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDestDistanceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDestDistanceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDestLatitudeKey', +) +external ffi.Pointer _NSMetadataItemGPSDestLatitudeKey; + +objc.NSString get NSMetadataItemGPSDestLatitudeKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDestLatitudeKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDestLatitudeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDestLatitudeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDestLatitudeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDestLongitudeKey', +) +external ffi.Pointer _NSMetadataItemGPSDestLongitudeKey; + +objc.NSString get NSMetadataItemGPSDestLongitudeKey => + objc.NSString.fromPointer( + _NSMetadataItemGPSDestLongitudeKey, + retain: true, + release: true, + ); + +set NSMetadataItemGPSDestLongitudeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDestLongitudeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDestLongitudeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDifferentalKey', +) +external ffi.Pointer _NSMetadataItemGPSDifferentalKey; + +objc.NSString get NSMetadataItemGPSDifferentalKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDifferentalKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDifferentalKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDifferentalKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDifferentalKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSMapDatumKey', +) +external ffi.Pointer _NSMetadataItemGPSMapDatumKey; + +objc.NSString get NSMetadataItemGPSMapDatumKey => objc.NSString.fromPointer( + _NSMetadataItemGPSMapDatumKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSMapDatumKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSMapDatumKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSMapDatumKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSMeasureModeKey', +) +external ffi.Pointer _NSMetadataItemGPSMeasureModeKey; + +objc.NSString get NSMetadataItemGPSMeasureModeKey => objc.NSString.fromPointer( + _NSMetadataItemGPSMeasureModeKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSMeasureModeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSMeasureModeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSMeasureModeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSProcessingMethodKey', +) +external ffi.Pointer _NSMetadataItemGPSProcessingMethodKey; + +objc.NSString get NSMetadataItemGPSProcessingMethodKey => + objc.NSString.fromPointer( + _NSMetadataItemGPSProcessingMethodKey, + retain: true, + release: true, + ); + +set NSMetadataItemGPSProcessingMethodKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSProcessingMethodKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSProcessingMethodKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSStatusKey', +) +external ffi.Pointer _NSMetadataItemGPSStatusKey; + +objc.NSString get NSMetadataItemGPSStatusKey => objc.NSString.fromPointer( + _NSMetadataItemGPSStatusKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSStatusKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSStatusKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSStatusKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSTrackKey', +) +external ffi.Pointer _NSMetadataItemGPSTrackKey; + +objc.NSString get NSMetadataItemGPSTrackKey => objc.NSString.fromPointer( + _NSMetadataItemGPSTrackKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSTrackKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSTrackKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSTrackKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemGenreKey') +external ffi.Pointer _NSMetadataItemGenreKey; + +objc.NSString get NSMetadataItemGenreKey => objc.NSString.fromPointer( + _NSMetadataItemGenreKey, + retain: true, + release: true, +); + +set NSMetadataItemGenreKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGenreKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGenreKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemHasAlphaChannelKey', +) +external ffi.Pointer _NSMetadataItemHasAlphaChannelKey; + +objc.NSString get NSMetadataItemHasAlphaChannelKey => objc.NSString.fromPointer( + _NSMetadataItemHasAlphaChannelKey, + retain: true, + release: true, +); + +set NSMetadataItemHasAlphaChannelKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemHasAlphaChannelKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemHasAlphaChannelKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemHeadlineKey', +) +external ffi.Pointer _NSMetadataItemHeadlineKey; + +objc.NSString get NSMetadataItemHeadlineKey => objc.NSString.fromPointer( + _NSMetadataItemHeadlineKey, + retain: true, + release: true, +); + +set NSMetadataItemHeadlineKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemHeadlineKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemHeadlineKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemISOSpeedKey', +) +external ffi.Pointer _NSMetadataItemISOSpeedKey; + +objc.NSString get NSMetadataItemISOSpeedKey => objc.NSString.fromPointer( + _NSMetadataItemISOSpeedKey, + retain: true, + release: true, +); + +set NSMetadataItemISOSpeedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemISOSpeedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemISOSpeedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemIdentifierKey', +) +external ffi.Pointer _NSMetadataItemIdentifierKey; + +objc.NSString get NSMetadataItemIdentifierKey => objc.NSString.fromPointer( + _NSMetadataItemIdentifierKey, + retain: true, + release: true, +); + +set NSMetadataItemIdentifierKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemImageDirectionKey', +) +external ffi.Pointer _NSMetadataItemImageDirectionKey; + +objc.NSString get NSMetadataItemImageDirectionKey => objc.NSString.fromPointer( + _NSMetadataItemImageDirectionKey, + retain: true, + release: true, +); + +set NSMetadataItemImageDirectionKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemImageDirectionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemImageDirectionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemInformationKey', +) +external ffi.Pointer _NSMetadataItemInformationKey; + +objc.NSString get NSMetadataItemInformationKey => objc.NSString.fromPointer( + _NSMetadataItemInformationKey, + retain: true, + release: true, +); + +set NSMetadataItemInformationKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemInformationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemInformationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemInstantMessageAddressesKey', +) +external ffi.Pointer +_NSMetadataItemInstantMessageAddressesKey; + +objc.NSString get NSMetadataItemInstantMessageAddressesKey => + objc.NSString.fromPointer( + _NSMetadataItemInstantMessageAddressesKey, + retain: true, + release: true, + ); + +set NSMetadataItemInstantMessageAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemInstantMessageAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemInstantMessageAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemInstructionsKey', +) +external ffi.Pointer _NSMetadataItemInstructionsKey; + +objc.NSString get NSMetadataItemInstructionsKey => objc.NSString.fromPointer( + _NSMetadataItemInstructionsKey, + retain: true, + release: true, +); + +set NSMetadataItemInstructionsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemInstructionsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemInstructionsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemIsApplicationManagedKey', +) +external ffi.Pointer +_NSMetadataItemIsApplicationManagedKey; + +objc.NSString get NSMetadataItemIsApplicationManagedKey => + objc.NSString.fromPointer( + _NSMetadataItemIsApplicationManagedKey, + retain: true, + release: true, + ); + +set NSMetadataItemIsApplicationManagedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemIsApplicationManagedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemIsApplicationManagedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemIsGeneralMIDISequenceKey', +) +external ffi.Pointer +_NSMetadataItemIsGeneralMIDISequenceKey; + +objc.NSString get NSMetadataItemIsGeneralMIDISequenceKey => + objc.NSString.fromPointer( + _NSMetadataItemIsGeneralMIDISequenceKey, + retain: true, + release: true, + ); + +set NSMetadataItemIsGeneralMIDISequenceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemIsGeneralMIDISequenceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemIsGeneralMIDISequenceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemIsLikelyJunkKey', +) +external ffi.Pointer _NSMetadataItemIsLikelyJunkKey; + +objc.NSString get NSMetadataItemIsLikelyJunkKey => objc.NSString.fromPointer( + _NSMetadataItemIsLikelyJunkKey, + retain: true, + release: true, +); + +set NSMetadataItemIsLikelyJunkKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemIsLikelyJunkKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemIsLikelyJunkKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemIsUbiquitousKey', +) +external ffi.Pointer _NSMetadataItemIsUbiquitousKey; + +objc.NSString get NSMetadataItemIsUbiquitousKey => objc.NSString.fromPointer( + _NSMetadataItemIsUbiquitousKey, + retain: true, + release: true, +); + +set NSMetadataItemIsUbiquitousKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemIsUbiquitousKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemIsUbiquitousKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemKeySignatureKey', +) +external ffi.Pointer _NSMetadataItemKeySignatureKey; + +objc.NSString get NSMetadataItemKeySignatureKey => objc.NSString.fromPointer( + _NSMetadataItemKeySignatureKey, + retain: true, + release: true, +); + +set NSMetadataItemKeySignatureKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemKeySignatureKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemKeySignatureKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemKeywordsKey', +) +external ffi.Pointer _NSMetadataItemKeywordsKey; + +objc.NSString get NSMetadataItemKeywordsKey => objc.NSString.fromPointer( + _NSMetadataItemKeywordsKey, + retain: true, + release: true, +); + +set NSMetadataItemKeywordsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemKeywordsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemKeywordsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemKindKey') +external ffi.Pointer _NSMetadataItemKindKey; + +objc.NSString get NSMetadataItemKindKey => objc.NSString.fromPointer( + _NSMetadataItemKindKey, + retain: true, + release: true, +); + +set NSMetadataItemKindKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemKindKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemKindKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLanguagesKey', +) +external ffi.Pointer _NSMetadataItemLanguagesKey; + +objc.NSString get NSMetadataItemLanguagesKey => objc.NSString.fromPointer( + _NSMetadataItemLanguagesKey, + retain: true, + release: true, +); + +set NSMetadataItemLanguagesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLanguagesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLanguagesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLastUsedDateKey', +) +external ffi.Pointer _NSMetadataItemLastUsedDateKey; + +objc.NSString get NSMetadataItemLastUsedDateKey => objc.NSString.fromPointer( + _NSMetadataItemLastUsedDateKey, + retain: true, + release: true, +); + +set NSMetadataItemLastUsedDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLastUsedDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLastUsedDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLatitudeKey', +) +external ffi.Pointer _NSMetadataItemLatitudeKey; + +objc.NSString get NSMetadataItemLatitudeKey => objc.NSString.fromPointer( + _NSMetadataItemLatitudeKey, + retain: true, + release: true, +); + +set NSMetadataItemLatitudeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLatitudeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLatitudeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLayerNamesKey', +) +external ffi.Pointer _NSMetadataItemLayerNamesKey; + +objc.NSString get NSMetadataItemLayerNamesKey => objc.NSString.fromPointer( + _NSMetadataItemLayerNamesKey, + retain: true, + release: true, +); + +set NSMetadataItemLayerNamesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLayerNamesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLayerNamesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLensModelKey', +) +external ffi.Pointer _NSMetadataItemLensModelKey; + +objc.NSString get NSMetadataItemLensModelKey => objc.NSString.fromPointer( + _NSMetadataItemLensModelKey, + retain: true, + release: true, +); + +set NSMetadataItemLensModelKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLensModelKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLensModelKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLongitudeKey', +) +external ffi.Pointer _NSMetadataItemLongitudeKey; + +objc.NSString get NSMetadataItemLongitudeKey => objc.NSString.fromPointer( + _NSMetadataItemLongitudeKey, + retain: true, + release: true, +); + +set NSMetadataItemLongitudeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLongitudeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLongitudeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLyricistKey', +) +external ffi.Pointer _NSMetadataItemLyricistKey; + +objc.NSString get NSMetadataItemLyricistKey => objc.NSString.fromPointer( + _NSMetadataItemLyricistKey, + retain: true, + release: true, +); + +set NSMetadataItemLyricistKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLyricistKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLyricistKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMaxApertureKey', +) +external ffi.Pointer _NSMetadataItemMaxApertureKey; + +objc.NSString get NSMetadataItemMaxApertureKey => objc.NSString.fromPointer( + _NSMetadataItemMaxApertureKey, + retain: true, + release: true, +); + +set NSMetadataItemMaxApertureKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMaxApertureKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMaxApertureKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMediaTypesKey', +) +external ffi.Pointer _NSMetadataItemMediaTypesKey; + +objc.NSString get NSMetadataItemMediaTypesKey => objc.NSString.fromPointer( + _NSMetadataItemMediaTypesKey, + retain: true, + release: true, +); + +set NSMetadataItemMediaTypesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMediaTypesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMediaTypesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMeteringModeKey', +) +external ffi.Pointer _NSMetadataItemMeteringModeKey; + +objc.NSString get NSMetadataItemMeteringModeKey => objc.NSString.fromPointer( + _NSMetadataItemMeteringModeKey, + retain: true, + release: true, +); + +set NSMetadataItemMeteringModeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMeteringModeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMeteringModeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMusicalGenreKey', +) +external ffi.Pointer _NSMetadataItemMusicalGenreKey; + +objc.NSString get NSMetadataItemMusicalGenreKey => objc.NSString.fromPointer( + _NSMetadataItemMusicalGenreKey, + retain: true, + release: true, +); + +set NSMetadataItemMusicalGenreKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMusicalGenreKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMusicalGenreKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMusicalInstrumentCategoryKey', +) +external ffi.Pointer +_NSMetadataItemMusicalInstrumentCategoryKey; + +objc.NSString get NSMetadataItemMusicalInstrumentCategoryKey => + objc.NSString.fromPointer( + _NSMetadataItemMusicalInstrumentCategoryKey, + retain: true, + release: true, + ); + +set NSMetadataItemMusicalInstrumentCategoryKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMusicalInstrumentCategoryKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMusicalInstrumentCategoryKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMusicalInstrumentNameKey', +) +external ffi.Pointer +_NSMetadataItemMusicalInstrumentNameKey; + +objc.NSString get NSMetadataItemMusicalInstrumentNameKey => + objc.NSString.fromPointer( + _NSMetadataItemMusicalInstrumentNameKey, + retain: true, + release: true, + ); + +set NSMetadataItemMusicalInstrumentNameKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMusicalInstrumentNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMusicalInstrumentNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemNamedLocationKey', +) +external ffi.Pointer _NSMetadataItemNamedLocationKey; + +objc.NSString get NSMetadataItemNamedLocationKey => objc.NSString.fromPointer( + _NSMetadataItemNamedLocationKey, + retain: true, + release: true, +); + +set NSMetadataItemNamedLocationKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemNamedLocationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemNamedLocationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemNumberOfPagesKey', +) +external ffi.Pointer _NSMetadataItemNumberOfPagesKey; + +objc.NSString get NSMetadataItemNumberOfPagesKey => objc.NSString.fromPointer( + _NSMetadataItemNumberOfPagesKey, + retain: true, + release: true, +); + +set NSMetadataItemNumberOfPagesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemNumberOfPagesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemNumberOfPagesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemOrganizationsKey', +) +external ffi.Pointer _NSMetadataItemOrganizationsKey; + +objc.NSString get NSMetadataItemOrganizationsKey => objc.NSString.fromPointer( + _NSMetadataItemOrganizationsKey, + retain: true, + release: true, +); + +set NSMetadataItemOrganizationsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemOrganizationsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemOrganizationsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemOrientationKey', +) +external ffi.Pointer _NSMetadataItemOrientationKey; + +objc.NSString get NSMetadataItemOrientationKey => objc.NSString.fromPointer( + _NSMetadataItemOrientationKey, + retain: true, + release: true, +); + +set NSMetadataItemOrientationKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemOrientationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemOrientationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemOriginalFormatKey', +) +external ffi.Pointer _NSMetadataItemOriginalFormatKey; + +objc.NSString get NSMetadataItemOriginalFormatKey => objc.NSString.fromPointer( + _NSMetadataItemOriginalFormatKey, + retain: true, + release: true, +); + +set NSMetadataItemOriginalFormatKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemOriginalFormatKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemOriginalFormatKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemOriginalSourceKey', +) +external ffi.Pointer _NSMetadataItemOriginalSourceKey; + +objc.NSString get NSMetadataItemOriginalSourceKey => objc.NSString.fromPointer( + _NSMetadataItemOriginalSourceKey, + retain: true, + release: true, +); + +set NSMetadataItemOriginalSourceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemOriginalSourceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemOriginalSourceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPageHeightKey', +) +external ffi.Pointer _NSMetadataItemPageHeightKey; + +objc.NSString get NSMetadataItemPageHeightKey => objc.NSString.fromPointer( + _NSMetadataItemPageHeightKey, + retain: true, + release: true, +); + +set NSMetadataItemPageHeightKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPageHeightKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPageHeightKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPageWidthKey', +) +external ffi.Pointer _NSMetadataItemPageWidthKey; + +objc.NSString get NSMetadataItemPageWidthKey => objc.NSString.fromPointer( + _NSMetadataItemPageWidthKey, + retain: true, + release: true, +); + +set NSMetadataItemPageWidthKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPageWidthKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPageWidthKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemParticipantsKey', +) +external ffi.Pointer _NSMetadataItemParticipantsKey; + +objc.NSString get NSMetadataItemParticipantsKey => objc.NSString.fromPointer( + _NSMetadataItemParticipantsKey, + retain: true, + release: true, +); + +set NSMetadataItemParticipantsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemParticipantsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemParticipantsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemPathKey') +external ffi.Pointer _NSMetadataItemPathKey; + +objc.NSString get NSMetadataItemPathKey => objc.NSString.fromPointer( + _NSMetadataItemPathKey, + retain: true, + release: true, +); + +set NSMetadataItemPathKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPathKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPathKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPerformersKey', +) +external ffi.Pointer _NSMetadataItemPerformersKey; + +objc.NSString get NSMetadataItemPerformersKey => objc.NSString.fromPointer( + _NSMetadataItemPerformersKey, + retain: true, + release: true, +); + +set NSMetadataItemPerformersKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPerformersKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPerformersKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPhoneNumbersKey', +) +external ffi.Pointer _NSMetadataItemPhoneNumbersKey; + +objc.NSString get NSMetadataItemPhoneNumbersKey => objc.NSString.fromPointer( + _NSMetadataItemPhoneNumbersKey, + retain: true, + release: true, +); + +set NSMetadataItemPhoneNumbersKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPhoneNumbersKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPhoneNumbersKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPixelCountKey', +) +external ffi.Pointer _NSMetadataItemPixelCountKey; + +objc.NSString get NSMetadataItemPixelCountKey => objc.NSString.fromPointer( + _NSMetadataItemPixelCountKey, + retain: true, + release: true, +); + +set NSMetadataItemPixelCountKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPixelCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPixelCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPixelHeightKey', +) +external ffi.Pointer _NSMetadataItemPixelHeightKey; + +objc.NSString get NSMetadataItemPixelHeightKey => objc.NSString.fromPointer( + _NSMetadataItemPixelHeightKey, + retain: true, + release: true, +); + +set NSMetadataItemPixelHeightKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPixelHeightKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPixelHeightKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPixelWidthKey', +) +external ffi.Pointer _NSMetadataItemPixelWidthKey; + +objc.NSString get NSMetadataItemPixelWidthKey => objc.NSString.fromPointer( + _NSMetadataItemPixelWidthKey, + retain: true, + release: true, +); + +set NSMetadataItemPixelWidthKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPixelWidthKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPixelWidthKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemProducerKey', +) +external ffi.Pointer _NSMetadataItemProducerKey; + +objc.NSString get NSMetadataItemProducerKey => objc.NSString.fromPointer( + _NSMetadataItemProducerKey, + retain: true, + release: true, +); + +set NSMetadataItemProducerKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemProducerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemProducerKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemProfileNameKey', +) +external ffi.Pointer _NSMetadataItemProfileNameKey; + +objc.NSString get NSMetadataItemProfileNameKey => objc.NSString.fromPointer( + _NSMetadataItemProfileNameKey, + retain: true, + release: true, +); + +set NSMetadataItemProfileNameKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemProfileNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemProfileNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemProjectsKey', +) +external ffi.Pointer _NSMetadataItemProjectsKey; + +objc.NSString get NSMetadataItemProjectsKey => objc.NSString.fromPointer( + _NSMetadataItemProjectsKey, + retain: true, + release: true, +); + +set NSMetadataItemProjectsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemProjectsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemProjectsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPublishersKey', +) +external ffi.Pointer _NSMetadataItemPublishersKey; + +objc.NSString get NSMetadataItemPublishersKey => objc.NSString.fromPointer( + _NSMetadataItemPublishersKey, + retain: true, + release: true, +); + +set NSMetadataItemPublishersKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPublishersKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPublishersKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRecipientAddressesKey', +) +external ffi.Pointer _NSMetadataItemRecipientAddressesKey; + +objc.NSString get NSMetadataItemRecipientAddressesKey => + objc.NSString.fromPointer( + _NSMetadataItemRecipientAddressesKey, + retain: true, + release: true, + ); + +set NSMetadataItemRecipientAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRecipientAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRecipientAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRecipientEmailAddressesKey', +) +external ffi.Pointer +_NSMetadataItemRecipientEmailAddressesKey; + +objc.NSString get NSMetadataItemRecipientEmailAddressesKey => + objc.NSString.fromPointer( + _NSMetadataItemRecipientEmailAddressesKey, + retain: true, + release: true, + ); + +set NSMetadataItemRecipientEmailAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRecipientEmailAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRecipientEmailAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRecipientsKey', +) +external ffi.Pointer _NSMetadataItemRecipientsKey; + +objc.NSString get NSMetadataItemRecipientsKey => objc.NSString.fromPointer( + _NSMetadataItemRecipientsKey, + retain: true, + release: true, +); + +set NSMetadataItemRecipientsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRecipientsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRecipientsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRecordingDateKey', +) +external ffi.Pointer _NSMetadataItemRecordingDateKey; + +objc.NSString get NSMetadataItemRecordingDateKey => objc.NSString.fromPointer( + _NSMetadataItemRecordingDateKey, + retain: true, + release: true, +); + +set NSMetadataItemRecordingDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRecordingDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRecordingDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRecordingYearKey', +) +external ffi.Pointer _NSMetadataItemRecordingYearKey; + +objc.NSString get NSMetadataItemRecordingYearKey => objc.NSString.fromPointer( + _NSMetadataItemRecordingYearKey, + retain: true, + release: true, +); + +set NSMetadataItemRecordingYearKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRecordingYearKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRecordingYearKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRedEyeOnOffKey', +) +external ffi.Pointer _NSMetadataItemRedEyeOnOffKey; + +objc.NSString get NSMetadataItemRedEyeOnOffKey => objc.NSString.fromPointer( + _NSMetadataItemRedEyeOnOffKey, + retain: true, + release: true, +); + +set NSMetadataItemRedEyeOnOffKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRedEyeOnOffKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRedEyeOnOffKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemResolutionHeightDPIKey', +) +external ffi.Pointer _NSMetadataItemResolutionHeightDPIKey; + +objc.NSString get NSMetadataItemResolutionHeightDPIKey => + objc.NSString.fromPointer( + _NSMetadataItemResolutionHeightDPIKey, + retain: true, + release: true, + ); + +set NSMetadataItemResolutionHeightDPIKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemResolutionHeightDPIKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemResolutionHeightDPIKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemResolutionWidthDPIKey', +) +external ffi.Pointer _NSMetadataItemResolutionWidthDPIKey; + +objc.NSString get NSMetadataItemResolutionWidthDPIKey => + objc.NSString.fromPointer( + _NSMetadataItemResolutionWidthDPIKey, + retain: true, + release: true, + ); + +set NSMetadataItemResolutionWidthDPIKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemResolutionWidthDPIKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemResolutionWidthDPIKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemRightsKey') +external ffi.Pointer _NSMetadataItemRightsKey; + +objc.NSString get NSMetadataItemRightsKey => objc.NSString.fromPointer( + _NSMetadataItemRightsKey, + retain: true, + release: true, +); + +set NSMetadataItemRightsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRightsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRightsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemSecurityMethodKey', +) +external ffi.Pointer _NSMetadataItemSecurityMethodKey; + +objc.NSString get NSMetadataItemSecurityMethodKey => objc.NSString.fromPointer( + _NSMetadataItemSecurityMethodKey, + retain: true, + release: true, +); + +set NSMetadataItemSecurityMethodKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemSecurityMethodKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemSecurityMethodKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemSpeedKey') +external ffi.Pointer _NSMetadataItemSpeedKey; + +objc.NSString get NSMetadataItemSpeedKey => objc.NSString.fromPointer( + _NSMetadataItemSpeedKey, + retain: true, + release: true, +); + +set NSMetadataItemSpeedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemSpeedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemSpeedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemStarRatingKey', +) +external ffi.Pointer _NSMetadataItemStarRatingKey; + +objc.NSString get NSMetadataItemStarRatingKey => objc.NSString.fromPointer( + _NSMetadataItemStarRatingKey, + retain: true, + release: true, +); + +set NSMetadataItemStarRatingKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemStarRatingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemStarRatingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemStateOrProvinceKey', +) +external ffi.Pointer _NSMetadataItemStateOrProvinceKey; + +objc.NSString get NSMetadataItemStateOrProvinceKey => objc.NSString.fromPointer( + _NSMetadataItemStateOrProvinceKey, + retain: true, + release: true, +); + +set NSMetadataItemStateOrProvinceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemStateOrProvinceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemStateOrProvinceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemStreamableKey', +) +external ffi.Pointer _NSMetadataItemStreamableKey; + +objc.NSString get NSMetadataItemStreamableKey => objc.NSString.fromPointer( + _NSMetadataItemStreamableKey, + retain: true, + release: true, +); + +set NSMetadataItemStreamableKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemStreamableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemStreamableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemSubjectKey', +) +external ffi.Pointer _NSMetadataItemSubjectKey; + +objc.NSString get NSMetadataItemSubjectKey => objc.NSString.fromPointer( + _NSMetadataItemSubjectKey, + retain: true, + release: true, +); + +set NSMetadataItemSubjectKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemSubjectKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemSubjectKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemTempoKey') +external ffi.Pointer _NSMetadataItemTempoKey; + +objc.NSString get NSMetadataItemTempoKey => objc.NSString.fromPointer( + _NSMetadataItemTempoKey, + retain: true, + release: true, +); + +set NSMetadataItemTempoKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTempoKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTempoKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemTextContentKey', +) +external ffi.Pointer _NSMetadataItemTextContentKey; + +objc.NSString get NSMetadataItemTextContentKey => objc.NSString.fromPointer( + _NSMetadataItemTextContentKey, + retain: true, + release: true, +); + +set NSMetadataItemTextContentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTextContentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTextContentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemThemeKey') +external ffi.Pointer _NSMetadataItemThemeKey; + +objc.NSString get NSMetadataItemThemeKey => objc.NSString.fromPointer( + _NSMetadataItemThemeKey, + retain: true, + release: true, +); + +set NSMetadataItemThemeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemThemeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemThemeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemTimeSignatureKey', +) +external ffi.Pointer _NSMetadataItemTimeSignatureKey; + +objc.NSString get NSMetadataItemTimeSignatureKey => objc.NSString.fromPointer( + _NSMetadataItemTimeSignatureKey, + retain: true, + release: true, +); + +set NSMetadataItemTimeSignatureKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTimeSignatureKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTimeSignatureKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemTimestampKey', +) +external ffi.Pointer _NSMetadataItemTimestampKey; + +objc.NSString get NSMetadataItemTimestampKey => objc.NSString.fromPointer( + _NSMetadataItemTimestampKey, + retain: true, + release: true, +); + +set NSMetadataItemTimestampKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTimestampKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTimestampKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemTitleKey') +external ffi.Pointer _NSMetadataItemTitleKey; + +objc.NSString get NSMetadataItemTitleKey => objc.NSString.fromPointer( + _NSMetadataItemTitleKey, + retain: true, + release: true, +); + +set NSMetadataItemTitleKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTitleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTitleKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemTotalBitRateKey', +) +external ffi.Pointer _NSMetadataItemTotalBitRateKey; + +objc.NSString get NSMetadataItemTotalBitRateKey => objc.NSString.fromPointer( + _NSMetadataItemTotalBitRateKey, + retain: true, + release: true, +); + +set NSMetadataItemTotalBitRateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTotalBitRateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTotalBitRateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemURLKey') +external ffi.Pointer _NSMetadataItemURLKey; + +objc.NSString get NSMetadataItemURLKey => objc.NSString.fromPointer( + _NSMetadataItemURLKey, + retain: true, + release: true, +); + +set NSMetadataItemURLKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemURLKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemURLKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemVersionKey', +) +external ffi.Pointer _NSMetadataItemVersionKey; + +objc.NSString get NSMetadataItemVersionKey => objc.NSString.fromPointer( + _NSMetadataItemVersionKey, + retain: true, + release: true, +); + +set NSMetadataItemVersionKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemVersionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemVersionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemVideoBitRateKey', +) +external ffi.Pointer _NSMetadataItemVideoBitRateKey; + +objc.NSString get NSMetadataItemVideoBitRateKey => objc.NSString.fromPointer( + _NSMetadataItemVideoBitRateKey, + retain: true, + release: true, +); + +set NSMetadataItemVideoBitRateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemVideoBitRateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemVideoBitRateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemWhereFromsKey', +) +external ffi.Pointer _NSMetadataItemWhereFromsKey; + +objc.NSString get NSMetadataItemWhereFromsKey => objc.NSString.fromPointer( + _NSMetadataItemWhereFromsKey, + retain: true, + release: true, +); + +set NSMetadataItemWhereFromsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemWhereFromsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemWhereFromsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemWhiteBalanceKey', +) +external ffi.Pointer _NSMetadataItemWhiteBalanceKey; + +objc.NSString get NSMetadataItemWhiteBalanceKey => objc.NSString.fromPointer( + _NSMetadataItemWhiteBalanceKey, + retain: true, + release: true, +); + +set NSMetadataItemWhiteBalanceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemWhiteBalanceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemWhiteBalanceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope', +) +external ffi.Pointer +_NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope; + +objc.NSString get NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope => + objc.NSString.fromPointer( + _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, + retain: true, + release: true, + ); + +set NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope( + objc.NSString value, +) { + objc.NSString.fromPointer( + _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSMetadataQueryDidFinishGatheringNotification', +) +external NSNotificationName _NSMetadataQueryDidFinishGatheringNotification; + +DartNSNotificationName get NSMetadataQueryDidFinishGatheringNotification => + objc.NSString.fromPointer( + _NSMetadataQueryDidFinishGatheringNotification, + retain: true, + release: true, + ); + +set NSMetadataQueryDidFinishGatheringNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSMetadataQueryDidFinishGatheringNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryDidFinishGatheringNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSMetadataQueryDidStartGatheringNotification', +) +external NSNotificationName _NSMetadataQueryDidStartGatheringNotification; + +DartNSNotificationName get NSMetadataQueryDidStartGatheringNotification => + objc.NSString.fromPointer( + _NSMetadataQueryDidStartGatheringNotification, + retain: true, + release: true, + ); + +set NSMetadataQueryDidStartGatheringNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSMetadataQueryDidStartGatheringNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryDidStartGatheringNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSMetadataQueryDidUpdateNotification') +external NSNotificationName _NSMetadataQueryDidUpdateNotification; + +DartNSNotificationName get NSMetadataQueryDidUpdateNotification => + objc.NSString.fromPointer( + _NSMetadataQueryDidUpdateNotification, + retain: true, + release: true, + ); + +set NSMetadataQueryDidUpdateNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSMetadataQueryDidUpdateNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryDidUpdateNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSMetadataQueryGatheringProgressNotification', +) +external NSNotificationName _NSMetadataQueryGatheringProgressNotification; + +DartNSNotificationName get NSMetadataQueryGatheringProgressNotification => + objc.NSString.fromPointer( + _NSMetadataQueryGatheringProgressNotification, + retain: true, + release: true, + ); + +set NSMetadataQueryGatheringProgressNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSMetadataQueryGatheringProgressNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryGatheringProgressNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryIndexedLocalComputerScope', +) +external ffi.Pointer +_NSMetadataQueryIndexedLocalComputerScope; + +objc.NSString get NSMetadataQueryIndexedLocalComputerScope => + objc.NSString.fromPointer( + _NSMetadataQueryIndexedLocalComputerScope, + retain: true, + release: true, + ); + +set NSMetadataQueryIndexedLocalComputerScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryIndexedLocalComputerScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryIndexedLocalComputerScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryIndexedNetworkScope', +) +external ffi.Pointer _NSMetadataQueryIndexedNetworkScope; + +objc.NSString get NSMetadataQueryIndexedNetworkScope => + objc.NSString.fromPointer( + _NSMetadataQueryIndexedNetworkScope, + retain: true, + release: true, + ); + +set NSMetadataQueryIndexedNetworkScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryIndexedNetworkScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryIndexedNetworkScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryLocalComputerScope', +) +external ffi.Pointer _NSMetadataQueryLocalComputerScope; + +objc.NSString get NSMetadataQueryLocalComputerScope => + objc.NSString.fromPointer( + _NSMetadataQueryLocalComputerScope, + retain: true, + release: true, + ); + +set NSMetadataQueryLocalComputerScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryLocalComputerScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryLocalComputerScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryNetworkScope', +) +external ffi.Pointer _NSMetadataQueryNetworkScope; + +objc.NSString get NSMetadataQueryNetworkScope => objc.NSString.fromPointer( + _NSMetadataQueryNetworkScope, + retain: true, + release: true, +); + +set NSMetadataQueryNetworkScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryNetworkScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryNetworkScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryResultContentRelevanceAttribute', +) +external ffi.Pointer +_NSMetadataQueryResultContentRelevanceAttribute; + +objc.NSString get NSMetadataQueryResultContentRelevanceAttribute => + objc.NSString.fromPointer( + _NSMetadataQueryResultContentRelevanceAttribute, + retain: true, + release: true, + ); + +set NSMetadataQueryResultContentRelevanceAttribute(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryResultContentRelevanceAttribute, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryResultContentRelevanceAttribute = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUbiquitousDataScope', +) +external ffi.Pointer _NSMetadataQueryUbiquitousDataScope; + +objc.NSString get NSMetadataQueryUbiquitousDataScope => + objc.NSString.fromPointer( + _NSMetadataQueryUbiquitousDataScope, + retain: true, + release: true, + ); + +set NSMetadataQueryUbiquitousDataScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUbiquitousDataScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUbiquitousDataScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUbiquitousDocumentsScope', +) +external ffi.Pointer +_NSMetadataQueryUbiquitousDocumentsScope; + +objc.NSString get NSMetadataQueryUbiquitousDocumentsScope => + objc.NSString.fromPointer( + _NSMetadataQueryUbiquitousDocumentsScope, + retain: true, + release: true, + ); + +set NSMetadataQueryUbiquitousDocumentsScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUbiquitousDocumentsScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUbiquitousDocumentsScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUpdateAddedItemsKey', +) +external ffi.Pointer _NSMetadataQueryUpdateAddedItemsKey; + +objc.NSString get NSMetadataQueryUpdateAddedItemsKey => + objc.NSString.fromPointer( + _NSMetadataQueryUpdateAddedItemsKey, + retain: true, + release: true, + ); + +set NSMetadataQueryUpdateAddedItemsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUpdateAddedItemsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUpdateAddedItemsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUpdateChangedItemsKey', +) +external ffi.Pointer _NSMetadataQueryUpdateChangedItemsKey; + +objc.NSString get NSMetadataQueryUpdateChangedItemsKey => + objc.NSString.fromPointer( + _NSMetadataQueryUpdateChangedItemsKey, + retain: true, + release: true, + ); + +set NSMetadataQueryUpdateChangedItemsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUpdateChangedItemsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUpdateChangedItemsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUpdateRemovedItemsKey', +) +external ffi.Pointer _NSMetadataQueryUpdateRemovedItemsKey; + +objc.NSString get NSMetadataQueryUpdateRemovedItemsKey => + objc.NSString.fromPointer( + _NSMetadataQueryUpdateRemovedItemsKey, + retain: true, + release: true, + ); + +set NSMetadataQueryUpdateRemovedItemsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUpdateRemovedItemsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUpdateRemovedItemsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUserHomeScope', +) +external ffi.Pointer _NSMetadataQueryUserHomeScope; + +objc.NSString get NSMetadataQueryUserHomeScope => objc.NSString.fromPointer( + _NSMetadataQueryUserHomeScope, + retain: true, + release: true, +); + +set NSMetadataQueryUserHomeScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUserHomeScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUserHomeScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemContainerDisplayNameKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemContainerDisplayNameKey; + +objc.NSString get NSMetadataUbiquitousItemContainerDisplayNameKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemContainerDisplayNameKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemContainerDisplayNameKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemContainerDisplayNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemContainerDisplayNameKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadRequestedKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadRequestedKey; + +objc.NSString get NSMetadataUbiquitousItemDownloadRequestedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadRequestedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadRequestedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadRequestedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadRequestedKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadingErrorKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadingErrorKey; + +objc.NSString get NSMetadataUbiquitousItemDownloadingErrorKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingErrorKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadingErrorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadingErrorKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadingStatusCurrent', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadingStatusCurrent; + +objc.NSString get NSMetadataUbiquitousItemDownloadingStatusCurrent => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusCurrent, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadingStatusCurrent(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusCurrent, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadingStatusCurrent = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadingStatusDownloaded', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadingStatusDownloaded; + +objc.NSString get NSMetadataUbiquitousItemDownloadingStatusDownloaded => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusDownloaded, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadingStatusDownloaded(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusDownloaded, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadingStatusDownloaded = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadingStatusKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadingStatusKey; + +objc.NSString get NSMetadataUbiquitousItemDownloadingStatusKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadingStatusKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadingStatusKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadingStatusNotDownloaded', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadingStatusNotDownloaded; + +objc.NSString get NSMetadataUbiquitousItemDownloadingStatusNotDownloaded => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadingStatusNotDownloaded( + objc.NSString value, +) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemHasUnresolvedConflictsKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemHasUnresolvedConflictsKey; + +objc.NSString get NSMetadataUbiquitousItemHasUnresolvedConflictsKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemHasUnresolvedConflictsKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemHasUnresolvedConflictsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemHasUnresolvedConflictsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemHasUnresolvedConflictsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsDownloadedKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemIsDownloadedKey; + +objc.NSString get NSMetadataUbiquitousItemIsDownloadedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsDownloadedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsDownloadedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsDownloadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsDownloadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsDownloadingKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemIsDownloadingKey; + +objc.NSString get NSMetadataUbiquitousItemIsDownloadingKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsDownloadingKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsDownloadingKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsDownloadingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsDownloadingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsExternalDocumentKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemIsExternalDocumentKey; + +objc.NSString get NSMetadataUbiquitousItemIsExternalDocumentKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsExternalDocumentKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsExternalDocumentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsExternalDocumentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsExternalDocumentKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsSharedKey', +) +external ffi.Pointer _NSMetadataUbiquitousItemIsSharedKey; + +objc.NSString get NSMetadataUbiquitousItemIsSharedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsSharedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsSharedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsSharedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsSharedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsUploadedKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemIsUploadedKey; + +objc.NSString get NSMetadataUbiquitousItemIsUploadedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsUploadedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsUploadedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsUploadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsUploadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsUploadingKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemIsUploadingKey; + +objc.NSString get NSMetadataUbiquitousItemIsUploadingKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsUploadingKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsUploadingKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsUploadingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsUploadingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemPercentDownloadedKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemPercentDownloadedKey; + +objc.NSString get NSMetadataUbiquitousItemPercentDownloadedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemPercentDownloadedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemPercentDownloadedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemPercentDownloadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemPercentDownloadedKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemPercentUploadedKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemPercentUploadedKey; + +objc.NSString get NSMetadataUbiquitousItemPercentUploadedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemPercentUploadedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemPercentUploadedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemPercentUploadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemPercentUploadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemURLInLocalContainerKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemURLInLocalContainerKey; + +objc.NSString get NSMetadataUbiquitousItemURLInLocalContainerKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemURLInLocalContainerKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemURLInLocalContainerKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemURLInLocalContainerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemURLInLocalContainerKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemUploadingErrorKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemUploadingErrorKey; + +objc.NSString get NSMetadataUbiquitousItemUploadingErrorKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemUploadingErrorKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemUploadingErrorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemUploadingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemUploadingErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey; + +objc.NSString get NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey( + objc.NSString value, +) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemCurrentUserRoleKey', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemCurrentUserRoleKey; + +objc.NSString get NSMetadataUbiquitousSharedItemCurrentUserRoleKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemCurrentUserRoleKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemCurrentUserRoleKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemCurrentUserRoleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemCurrentUserRoleKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey; + +objc.NSString +get NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey( + objc.NSString value, +) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemOwnerNameComponentsKey', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemOwnerNameComponentsKey; + +objc.NSString get NSMetadataUbiquitousSharedItemOwnerNameComponentsKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemOwnerNameComponentsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemPermissionsReadOnly', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemPermissionsReadOnly; + +objc.NSString get NSMetadataUbiquitousSharedItemPermissionsReadOnly => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemPermissionsReadOnly, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemPermissionsReadOnly(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemPermissionsReadOnly, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemPermissionsReadOnly = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemPermissionsReadWrite', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemPermissionsReadWrite; + +objc.NSString get NSMetadataUbiquitousSharedItemPermissionsReadWrite => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemPermissionsReadWrite, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemPermissionsReadWrite(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemPermissionsReadWrite, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemPermissionsReadWrite = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemRoleOwner', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemRoleOwner; + +objc.NSString get NSMetadataUbiquitousSharedItemRoleOwner => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemRoleOwner, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemRoleOwner(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemRoleOwner, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemRoleOwner = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemRoleParticipant', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemRoleParticipant; + +objc.NSString get NSMetadataUbiquitousSharedItemRoleParticipant => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemRoleParticipant, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemRoleParticipant(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemRoleParticipant, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemRoleParticipant = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSMinimumKeyValueOperator') +external NSKeyValueOperator _NSMinimumKeyValueOperator; + +DartNSKeyValueOperator get NSMinimumKeyValueOperator => + objc.NSString.fromPointer( + _NSMinimumKeyValueOperator, + retain: true, + release: true, + ); + +set NSMinimumKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSMinimumKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMinimumKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMonthNameArray') +external ffi.Pointer _NSMonthNameArray; + +objc.NSString get NSMonthNameArray => + objc.NSString.fromPointer(_NSMonthNameArray, retain: true, release: true); + +set NSMonthNameArray(objc.NSString value) { + objc.NSString.fromPointer( + _NSMonthNameArray, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMonthNameArray = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSMorphologyAttributeName') +external NSAttributedStringKey _NSMorphologyAttributeName; + +DartNSAttributedStringKey get NSMorphologyAttributeName => + objc.NSString.fromPointer( + _NSMorphologyAttributeName, + retain: true, + release: true, + ); + +set NSMorphologyAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSMorphologyAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMorphologyAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external bool NSMouseInRect(NSPoint aPoint, NSRect aRect, bool flipped); + +@ffi.Native(symbol: 'NSMultipleUnderlyingErrorsKey') +external NSErrorUserInfoKey _NSMultipleUnderlyingErrorsKey; + +DartNSErrorUserInfoKey get NSMultipleUnderlyingErrorsKey => + objc.NSString.fromPointer( + _NSMultipleUnderlyingErrorsKey, + retain: true, + release: true, + ); + +set NSMultipleUnderlyingErrorsKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSMultipleUnderlyingErrorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMultipleUnderlyingErrorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSNegateBooleanTransformerName') +external NSValueTransformerName _NSNegateBooleanTransformerName; + +DartNSValueTransformerName get NSNegateBooleanTransformerName => + objc.NSString.fromPointer( + _NSNegateBooleanTransformerName, + retain: true, + release: true, + ); + +set NSNegateBooleanTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSNegateBooleanTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNegateBooleanTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSNegativeCurrencyFormatString', +) +external ffi.Pointer _NSNegativeCurrencyFormatString; + +objc.NSString get NSNegativeCurrencyFormatString => objc.NSString.fromPointer( + _NSNegativeCurrencyFormatString, + retain: true, + release: true, +); + +set NSNegativeCurrencyFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSNegativeCurrencyFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNegativeCurrencyFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSNetServicesErrorCode') +external ffi.Pointer _NSNetServicesErrorCode; + +objc.NSString get NSNetServicesErrorCode => objc.NSString.fromPointer( + _NSNetServicesErrorCode, + retain: true, + release: true, +); + +set NSNetServicesErrorCode(objc.NSString value) { + objc.NSString.fromPointer( + _NSNetServicesErrorCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNetServicesErrorCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSNetServicesErrorDomain') +external NSErrorDomain _NSNetServicesErrorDomain; + +DartNSErrorDomain get NSNetServicesErrorDomain => objc.NSString.fromPointer( + _NSNetServicesErrorDomain, + retain: true, + release: true, +); + +set NSNetServicesErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSNetServicesErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNetServicesErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSNextDayDesignations') +external ffi.Pointer _NSNextDayDesignations; + +objc.NSString get NSNextDayDesignations => objc.NSString.fromPointer( + _NSNextDayDesignations, + retain: true, + release: true, +); + +set NSNextDayDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSNextDayDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNextDayDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer NSNextHashEnumeratorItem( + ffi.Pointer enumerator, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external bool NSNextMapEnumeratorPair( + ffi.Pointer enumerator, + ffi.Pointer> key, + ffi.Pointer> value, +); + +@ffi.Native>( + symbol: 'NSNextNextDayDesignations', +) +external ffi.Pointer _NSNextNextDayDesignations; + +objc.NSString get NSNextNextDayDesignations => objc.NSString.fromPointer( + _NSNextNextDayDesignations, + retain: true, + release: true, +); + +set NSNextNextDayDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSNextNextDayDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNextNextDayDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final NSHashTableCallBacks NSNonOwnedPointerHashCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSNonOwnedPointerMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSNonOwnedPointerMapValueCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks; + +@ffi.Native() +external final NSHashTableCallBacks NSNonRetainedObjectHashCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSNonRetainedObjectMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSNonRetainedObjectMapValueCallBacks; + +@ffi.Native(symbol: 'NSOSStatusErrorDomain') +external NSErrorDomain _NSOSStatusErrorDomain; + +DartNSErrorDomain get NSOSStatusErrorDomain => objc.NSString.fromPointer( + _NSOSStatusErrorDomain, + retain: true, + release: true, +); + +set NSOSStatusErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSOSStatusErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSOSStatusErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final NSHashTableCallBacks NSObjectHashCallBacks; + +@ffi.Native(symbol: 'NSObjectInaccessibleException') +external NSExceptionName _NSObjectInaccessibleException; + +DartNSExceptionName get NSObjectInaccessibleException => + objc.NSString.fromPointer( + _NSObjectInaccessibleException, + retain: true, + release: true, + ); + +set NSObjectInaccessibleException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSObjectInaccessibleException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSObjectInaccessibleException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final NSMapTableKeyCallBacks NSObjectMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSObjectMapValueCallBacks; + +@ffi.Native(symbol: 'NSObjectNotAvailableException') +external NSExceptionName _NSObjectNotAvailableException; + +DartNSExceptionName get NSObjectNotAvailableException => + objc.NSString.fromPointer( + _NSObjectNotAvailableException, + retain: true, + release: true, + ); + +set NSObjectNotAvailableException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSObjectNotAvailableException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSObjectNotAvailableException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external NSRect NSOffsetRect(NSRect aRect, double dX, double dY); + +@ffi.Native(symbol: 'NSOldStyleException') +external NSExceptionName _NSOldStyleException; + +DartNSExceptionName get NSOldStyleException => objc.NSString.fromPointer( + _NSOldStyleException, + retain: true, + release: true, +); + +set NSOldStyleException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSOldStyleException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSOldStyleException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native Function()>( + symbol: 'NSOpenStepRootDirectory', +) +external ffi.Pointer _NSOpenStepRootDirectory(); + +objc.NSString NSOpenStepRootDirectory() { + return objc.NSString.fromPointer( + _NSOpenStepRootDirectory(), + retain: true, + release: true, + ); +} + +@ffi.Native>( + symbol: 'NSOperationNotSupportedForKeyException', +) +external ffi.Pointer +_NSOperationNotSupportedForKeyException; + +objc.NSString get NSOperationNotSupportedForKeyException => + objc.NSString.fromPointer( + _NSOperationNotSupportedForKeyException, + retain: true, + release: true, + ); + +set NSOperationNotSupportedForKeyException(objc.NSString value) { + objc.NSString.fromPointer( + _NSOperationNotSupportedForKeyException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSOperationNotSupportedForKeyException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final NSHashTableCallBacks NSOwnedObjectIdentityHashCallBacks; + +@ffi.Native() +external final NSHashTableCallBacks NSOwnedPointerHashCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSOwnedPointerMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks; + +@ffi.Native(symbol: 'NSPOSIXErrorDomain') +external NSErrorDomain _NSPOSIXErrorDomain; + +DartNSErrorDomain get NSPOSIXErrorDomain => + objc.NSString.fromPointer(_NSPOSIXErrorDomain, retain: true, release: true); + +set NSPOSIXErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSPOSIXErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPOSIXErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external int NSPageSize(); + +@ffi.Native(symbol: 'NSParseErrorException') +external NSExceptionName _NSParseErrorException; + +DartNSExceptionName get NSParseErrorException => objc.NSString.fromPointer( + _NSParseErrorException, + retain: true, + release: true, +); + +set NSParseErrorException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSParseErrorException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSParseErrorException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSPersianCalendar') +external ffi.Pointer _NSPersianCalendar; + +objc.NSString get NSPersianCalendar => + objc.NSString.fromPointer(_NSPersianCalendar, retain: true, release: true); + +set NSPersianCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersianCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersianCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentDelimiter', +) +external ffi.Pointer _NSPersonNameComponentDelimiter; + +objc.NSString get NSPersonNameComponentDelimiter => objc.NSString.fromPointer( + _NSPersonNameComponentDelimiter, + retain: true, + release: true, +); + +set NSPersonNameComponentDelimiter(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentDelimiter, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentDelimiter = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentFamilyName', +) +external ffi.Pointer _NSPersonNameComponentFamilyName; + +objc.NSString get NSPersonNameComponentFamilyName => objc.NSString.fromPointer( + _NSPersonNameComponentFamilyName, + retain: true, + release: true, +); + +set NSPersonNameComponentFamilyName(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentFamilyName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentFamilyName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentGivenName', +) +external ffi.Pointer _NSPersonNameComponentGivenName; + +objc.NSString get NSPersonNameComponentGivenName => objc.NSString.fromPointer( + _NSPersonNameComponentGivenName, + retain: true, + release: true, +); + +set NSPersonNameComponentGivenName(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentGivenName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentGivenName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentKey', +) +external ffi.Pointer _NSPersonNameComponentKey; + +objc.NSString get NSPersonNameComponentKey => objc.NSString.fromPointer( + _NSPersonNameComponentKey, + retain: true, + release: true, +); + +set NSPersonNameComponentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentMiddleName', +) +external ffi.Pointer _NSPersonNameComponentMiddleName; + +objc.NSString get NSPersonNameComponentMiddleName => objc.NSString.fromPointer( + _NSPersonNameComponentMiddleName, + retain: true, + release: true, +); + +set NSPersonNameComponentMiddleName(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentMiddleName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentMiddleName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentNickname', +) +external ffi.Pointer _NSPersonNameComponentNickname; + +objc.NSString get NSPersonNameComponentNickname => objc.NSString.fromPointer( + _NSPersonNameComponentNickname, + retain: true, + release: true, +); + +set NSPersonNameComponentNickname(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentNickname, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentNickname = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentPrefix', +) +external ffi.Pointer _NSPersonNameComponentPrefix; + +objc.NSString get NSPersonNameComponentPrefix => objc.NSString.fromPointer( + _NSPersonNameComponentPrefix, + retain: true, + release: true, +); + +set NSPersonNameComponentPrefix(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentPrefix, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentPrefix = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentSuffix', +) +external ffi.Pointer _NSPersonNameComponentSuffix; + +objc.NSString get NSPersonNameComponentSuffix => objc.NSString.fromPointer( + _NSPersonNameComponentSuffix, + retain: true, + release: true, +); + +set NSPersonNameComponentSuffix(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentSuffix, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentSuffix = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSPointFromString', +) +external NSPoint _NSPointFromString(ffi.Pointer aString); + +NSPoint NSPointFromString(objc.NSString aString) { + final _$$ref = aString.ref; + return _NSPointFromString(_$$ref.pointer); +} + +@ffi.Native() +external bool NSPointInRect(NSPoint aPoint, NSRect aRect); + +@ffi.Native() +external final NSHashTableCallBacks NSPointerToStructHashCallBacks; + +@ffi.Native(symbol: 'NSPortDidBecomeInvalidNotification') +external NSNotificationName _NSPortDidBecomeInvalidNotification; + +DartNSNotificationName get NSPortDidBecomeInvalidNotification => + objc.NSString.fromPointer( + _NSPortDidBecomeInvalidNotification, + retain: true, + release: true, + ); + +set NSPortDidBecomeInvalidNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSPortDidBecomeInvalidNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPortDidBecomeInvalidNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSPortReceiveException') +external NSExceptionName _NSPortReceiveException; + +DartNSExceptionName get NSPortReceiveException => objc.NSString.fromPointer( + _NSPortReceiveException, + retain: true, + release: true, +); + +set NSPortReceiveException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSPortReceiveException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPortReceiveException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSPortSendException') +external NSExceptionName _NSPortSendException; + +DartNSExceptionName get NSPortSendException => objc.NSString.fromPointer( + _NSPortSendException, + retain: true, + release: true, +); + +set NSPortSendException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSPortSendException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPortSendException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSPortTimeoutException') +external NSExceptionName _NSPortTimeoutException; + +DartNSExceptionName get NSPortTimeoutException => objc.NSString.fromPointer( + _NSPortTimeoutException, + retain: true, + release: true, +); + +set NSPortTimeoutException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSPortTimeoutException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPortTimeoutException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPositiveCurrencyFormatString', +) +external ffi.Pointer _NSPositiveCurrencyFormatString; + +objc.NSString get NSPositiveCurrencyFormatString => objc.NSString.fromPointer( + _NSPositiveCurrencyFormatString, + retain: true, + release: true, +); + +set NSPositiveCurrencyFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSPositiveCurrencyFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPositiveCurrencyFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSPresentationIntentAttributeName') +external NSAttributedStringKey _NSPresentationIntentAttributeName; + +DartNSAttributedStringKey get NSPresentationIntentAttributeName => + objc.NSString.fromPointer( + _NSPresentationIntentAttributeName, + retain: true, + release: true, + ); + +set NSPresentationIntentAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSPresentationIntentAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPresentationIntentAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSPriorDayDesignations') +external ffi.Pointer _NSPriorDayDesignations; + +objc.NSString get NSPriorDayDesignations => objc.NSString.fromPointer( + _NSPriorDayDesignations, + retain: true, + release: true, +); + +set NSPriorDayDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSPriorDayDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPriorDayDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProcessInfoPowerStateDidChangeNotification', +) +external NSNotificationName _NSProcessInfoPowerStateDidChangeNotification; + +DartNSNotificationName get NSProcessInfoPowerStateDidChangeNotification => + objc.NSString.fromPointer( + _NSProcessInfoPowerStateDidChangeNotification, + retain: true, + release: true, + ); + +set NSProcessInfoPowerStateDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSProcessInfoPowerStateDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProcessInfoPowerStateDidChangeNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProcessInfoThermalStateDidChangeNotification', +) +external NSNotificationName _NSProcessInfoThermalStateDidChangeNotification; + +DartNSNotificationName get NSProcessInfoThermalStateDidChangeNotification => + objc.NSString.fromPointer( + _NSProcessInfoThermalStateDidChangeNotification, + retain: true, + release: true, + ); + +set NSProcessInfoThermalStateDidChangeNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSProcessInfoThermalStateDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProcessInfoThermalStateDidChangeNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressEstimatedTimeRemainingKey', +) +external NSProgressUserInfoKey _NSProgressEstimatedTimeRemainingKey; + +DartNSProgressUserInfoKey get NSProgressEstimatedTimeRemainingKey => + objc.NSString.fromPointer( + _NSProgressEstimatedTimeRemainingKey, + retain: true, + release: true, + ); + +set NSProgressEstimatedTimeRemainingKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressEstimatedTimeRemainingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressEstimatedTimeRemainingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileAnimationImageKey') +external NSProgressUserInfoKey _NSProgressFileAnimationImageKey; + +DartNSProgressUserInfoKey get NSProgressFileAnimationImageKey => + objc.NSString.fromPointer( + _NSProgressFileAnimationImageKey, + retain: true, + release: true, + ); + +set NSProgressFileAnimationImageKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileAnimationImageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileAnimationImageKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileAnimationImageOriginalRectKey', +) +external NSProgressUserInfoKey _NSProgressFileAnimationImageOriginalRectKey; + +DartNSProgressUserInfoKey get NSProgressFileAnimationImageOriginalRectKey => + objc.NSString.fromPointer( + _NSProgressFileAnimationImageOriginalRectKey, + retain: true, + release: true, + ); + +set NSProgressFileAnimationImageOriginalRectKey( + DartNSProgressUserInfoKey value, +) { + objc.NSString.fromPointer( + _NSProgressFileAnimationImageOriginalRectKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileAnimationImageOriginalRectKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileCompletedCountKey') +external NSProgressUserInfoKey _NSProgressFileCompletedCountKey; + +DartNSProgressUserInfoKey get NSProgressFileCompletedCountKey => + objc.NSString.fromPointer( + _NSProgressFileCompletedCountKey, + retain: true, + release: true, + ); + +set NSProgressFileCompletedCountKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileCompletedCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileCompletedCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileIconKey') +external NSProgressUserInfoKey _NSProgressFileIconKey; + +DartNSProgressUserInfoKey get NSProgressFileIconKey => + objc.NSString.fromPointer( + _NSProgressFileIconKey, + retain: true, + release: true, + ); + +set NSProgressFileIconKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileIconKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileIconKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindCopying', +) +external NSProgressFileOperationKind _NSProgressFileOperationKindCopying; + +DartNSProgressFileOperationKind get NSProgressFileOperationKindCopying => + objc.NSString.fromPointer( + _NSProgressFileOperationKindCopying, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindCopying(DartNSProgressFileOperationKind value) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindCopying, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindCopying = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindDecompressingAfterDownloading', +) +external NSProgressFileOperationKind +_NSProgressFileOperationKindDecompressingAfterDownloading; + +DartNSProgressFileOperationKind +get NSProgressFileOperationKindDecompressingAfterDownloading => + objc.NSString.fromPointer( + _NSProgressFileOperationKindDecompressingAfterDownloading, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindDecompressingAfterDownloading( + DartNSProgressFileOperationKind value, +) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindDecompressingAfterDownloading, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindDecompressingAfterDownloading = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindDownloading', +) +external NSProgressFileOperationKind _NSProgressFileOperationKindDownloading; + +DartNSProgressFileOperationKind get NSProgressFileOperationKindDownloading => + objc.NSString.fromPointer( + _NSProgressFileOperationKindDownloading, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindDownloading( + DartNSProgressFileOperationKind value, +) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindDownloading, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindDownloading = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindDuplicating', +) +external NSProgressFileOperationKind _NSProgressFileOperationKindDuplicating; + +DartNSProgressFileOperationKind get NSProgressFileOperationKindDuplicating => + objc.NSString.fromPointer( + _NSProgressFileOperationKindDuplicating, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindDuplicating( + DartNSProgressFileOperationKind value, +) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindDuplicating, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindDuplicating = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileOperationKindKey') +external NSProgressUserInfoKey _NSProgressFileOperationKindKey; + +DartNSProgressUserInfoKey get NSProgressFileOperationKindKey => + objc.NSString.fromPointer( + _NSProgressFileOperationKindKey, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindReceiving', +) +external NSProgressFileOperationKind _NSProgressFileOperationKindReceiving; + +DartNSProgressFileOperationKind get NSProgressFileOperationKindReceiving => + objc.NSString.fromPointer( + _NSProgressFileOperationKindReceiving, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindReceiving( + DartNSProgressFileOperationKind value, +) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindReceiving, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindReceiving = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindUploading', +) +external NSProgressFileOperationKind _NSProgressFileOperationKindUploading; + +DartNSProgressFileOperationKind get NSProgressFileOperationKindUploading => + objc.NSString.fromPointer( + _NSProgressFileOperationKindUploading, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindUploading( + DartNSProgressFileOperationKind value, +) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindUploading, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindUploading = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileTotalCountKey') +external NSProgressUserInfoKey _NSProgressFileTotalCountKey; + +DartNSProgressUserInfoKey get NSProgressFileTotalCountKey => + objc.NSString.fromPointer( + _NSProgressFileTotalCountKey, + retain: true, + release: true, + ); + +set NSProgressFileTotalCountKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileTotalCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileTotalCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileURLKey') +external NSProgressUserInfoKey _NSProgressFileURLKey; + +DartNSProgressUserInfoKey get NSProgressFileURLKey => objc.NSString.fromPointer( + _NSProgressFileURLKey, + retain: true, + release: true, +); + +set NSProgressFileURLKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileURLKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileURLKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressKindFile') +external NSProgressKind _NSProgressKindFile; + +DartNSProgressKind get NSProgressKindFile => + objc.NSString.fromPointer(_NSProgressKindFile, retain: true, release: true); + +set NSProgressKindFile(DartNSProgressKind value) { + objc.NSString.fromPointer( + _NSProgressKindFile, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressKindFile = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressThroughputKey') +external NSProgressUserInfoKey _NSProgressThroughputKey; + +DartNSProgressUserInfoKey get NSProgressThroughputKey => + objc.NSString.fromPointer( + _NSProgressThroughputKey, + retain: true, + release: true, + ); + +set NSProgressThroughputKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressThroughputKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressThroughputKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSProtocolFromString') +external ffi.Pointer _NSProtocolFromString( + ffi.Pointer namestr, +); + +objc.Protocol? NSProtocolFromString(objc.NSString namestr) { + final _$$ref = namestr.ref; + return _NSProtocolFromString(_$$ref.pointer).address == 0 + ? null + : objc.Protocol.fromPointer( + _NSProtocolFromString(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSRangeException') +external NSExceptionName _NSRangeException; + +DartNSExceptionName get NSRangeException => + objc.NSString.fromPointer(_NSRangeException, retain: true, release: true); + +set NSRangeException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSRangeException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSRangeException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSRangeFromString', +) +external NSRange _NSRangeFromString(ffi.Pointer aString); + +NSRange NSRangeFromString(objc.NSString aString) { + final _$$ref = aString.ref; + return _NSRangeFromString(_$$ref.pointer); +} + +@Deprecated('Use NSProcessInfo instead') +@ffi.Native() +external int NSRealMemoryAvailable(); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, NSUInteger, NSUInteger) +>() +external ffi.Pointer NSReallocateCollectable( + ffi.Pointer ptr, + int size, + int options, +); + +@ffi.Native(symbol: 'NSRecoveryAttempterErrorKey') +external NSErrorUserInfoKey _NSRecoveryAttempterErrorKey; + +DartNSErrorUserInfoKey get NSRecoveryAttempterErrorKey => + objc.NSString.fromPointer( + _NSRecoveryAttempterErrorKey, + retain: true, + release: true, + ); + +set NSRecoveryAttempterErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSRecoveryAttempterErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSRecoveryAttempterErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSRectFromString', +) +external NSRect _NSRectFromString(ffi.Pointer aString); + +NSRect NSRectFromString(objc.NSString aString) { + final _$$ref = aString.ref; + return _NSRectFromString(_$$ref.pointer); +} + +@ffi.Native)>() +external void NSRecycleZone(ffi.Pointer zone); + +@ffi.Native>(symbol: 'NSRegistrationDomain') +external ffi.Pointer _NSRegistrationDomain; + +objc.NSString get NSRegistrationDomain => objc.NSString.fromPointer( + _NSRegistrationDomain, + retain: true, + release: true, +); + +set NSRegistrationDomain(objc.NSString value) { + objc.NSString.fromPointer( + _NSRegistrationDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSRegistrationDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSReplacementIndexAttributeName') +external NSAttributedStringKey _NSReplacementIndexAttributeName; + +DartNSAttributedStringKey get NSReplacementIndexAttributeName => + objc.NSString.fromPointer( + _NSReplacementIndexAttributeName, + retain: true, + release: true, + ); + +set NSReplacementIndexAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSReplacementIndexAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSReplacementIndexAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSRepublicOfChinaCalendar', +) +external ffi.Pointer _NSRepublicOfChinaCalendar; + +objc.NSString get NSRepublicOfChinaCalendar => objc.NSString.fromPointer( + _NSRepublicOfChinaCalendar, + retain: true, + release: true, +); + +set NSRepublicOfChinaCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSRepublicOfChinaCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSRepublicOfChinaCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSResetHashTable', +) +external void _NSResetHashTable(ffi.Pointer table); + +void NSResetHashTable(NSHashTable table) { + final _$$ref = table.ref; + return _NSResetHashTable(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'NSResetMapTable', +) +external void _NSResetMapTable(ffi.Pointer table); + +void NSResetMapTable(NSMapTable table) { + final _$$ref = table.ref; + return _NSResetMapTable(_$$ref.pointer); +} + +@ffi.Native() +external int NSRoundDownToMultipleOfPageSize(int bytes); + +@ffi.Native() +external int NSRoundUpToMultipleOfPageSize(int bytes); + +@ffi.Native(symbol: 'NSRunLoopCommonModes') +external NSRunLoopMode _NSRunLoopCommonModes; + +DartNSRunLoopMode get NSRunLoopCommonModes => objc.NSString.fromPointer( + _NSRunLoopCommonModes, + retain: true, + release: true, +); + +set NSRunLoopCommonModes(DartNSRunLoopMode value) { + objc.NSString.fromPointer( + _NSRunLoopCommonModes, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSRunLoopCommonModes = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(NSUInteger, NSUInteger, ffi.Bool) +>(symbol: 'NSSearchPathForDirectoriesInDomains') +external ffi.Pointer _NSSearchPathForDirectoriesInDomains( + int directory, + int domainMask, + bool expandTilde, +); + +objc.NSArray NSSearchPathForDirectoriesInDomains( + NSSearchPathDirectory directory, + DartNSUInteger domainMask, + bool expandTilde, +) { + return objc.NSArray.fromPointer( + _NSSearchPathForDirectoriesInDomains( + directory.value, + domainMask, + expandTilde, + ), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'NSSecureUnarchiveFromDataTransformerName', +) +external NSValueTransformerName _NSSecureUnarchiveFromDataTransformerName; + +DartNSValueTransformerName get NSSecureUnarchiveFromDataTransformerName => + objc.NSString.fromPointer( + _NSSecureUnarchiveFromDataTransformerName, + retain: true, + release: true, + ); + +set NSSecureUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSSecureUnarchiveFromDataTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSSecureUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSSelectorFromString') +external ffi.Pointer _NSSelectorFromString( + ffi.Pointer aSelectorName, +); + +ffi.Pointer NSSelectorFromString( + objc.NSString aSelectorName, +) { + final _$$ref = aSelectorName.ref; + return _NSSelectorFromString(_$$ref.pointer); +} + +@ffi.Native)>() +external void NSSetUncaughtExceptionHandler( + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSSetZoneName') +external void _NSSetZoneName( + ffi.Pointer zone, + ffi.Pointer name, +); + +void NSSetZoneName(ffi.Pointer zone, objc.NSString name) { + final _$$ref = name.ref; + return _NSSetZoneName(zone, _$$ref.pointer); +} + +@ffi.Native>(symbol: 'NSShortDateFormatString') +external ffi.Pointer _NSShortDateFormatString; + +objc.NSString get NSShortDateFormatString => objc.NSString.fromPointer( + _NSShortDateFormatString, + retain: true, + release: true, +); + +set NSShortDateFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSShortDateFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSShortDateFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSShortMonthNameArray') +external ffi.Pointer _NSShortMonthNameArray; + +objc.NSString get NSShortMonthNameArray => objc.NSString.fromPointer( + _NSShortMonthNameArray, + retain: true, + release: true, +); + +set NSShortMonthNameArray(objc.NSString value) { + objc.NSString.fromPointer( + _NSShortMonthNameArray, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSShortMonthNameArray = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSShortTimeDateFormatString', +) +external ffi.Pointer _NSShortTimeDateFormatString; + +objc.NSString get NSShortTimeDateFormatString => objc.NSString.fromPointer( + _NSShortTimeDateFormatString, + retain: true, + release: true, +); + +set NSShortTimeDateFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSShortTimeDateFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSShortTimeDateFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSShortWeekDayNameArray') +external ffi.Pointer _NSShortWeekDayNameArray; + +objc.NSString get NSShortWeekDayNameArray => objc.NSString.fromPointer( + _NSShortWeekDayNameArray, + retain: true, + release: true, +); + +set NSShortWeekDayNameArray(objc.NSString value) { + objc.NSString.fromPointer( + _NSShortWeekDayNameArray, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSShortWeekDayNameArray = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSShouldRetainWithZone') +external bool _NSShouldRetainWithZone( + ffi.Pointer anObject, + ffi.Pointer requestedZone, +); + +bool NSShouldRetainWithZone( + objc.ObjCObject anObject, + ffi.Pointer requestedZone, +) { + final _$$ref = anObject.ref; + return _NSShouldRetainWithZone(_$$ref.pointer, requestedZone); +} + +@ffi.Native)>( + symbol: 'NSSizeFromString', +) +external NSSize _NSSizeFromString(ffi.Pointer aString); + +NSSize NSSizeFromString(objc.NSString aString) { + final _$$ref = aString.ref; + return _NSSizeFromString(_$$ref.pointer); +} + +@ffi.Native(symbol: 'NSStreamDataWrittenToMemoryStreamKey') +external NSStreamPropertyKey _NSStreamDataWrittenToMemoryStreamKey; + +DartNSStreamPropertyKey get NSStreamDataWrittenToMemoryStreamKey => + objc.NSString.fromPointer( + _NSStreamDataWrittenToMemoryStreamKey, + retain: true, + release: true, + ); + +set NSStreamDataWrittenToMemoryStreamKey(DartNSStreamPropertyKey value) { + objc.NSString.fromPointer( + _NSStreamDataWrittenToMemoryStreamKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamDataWrittenToMemoryStreamKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamFileCurrentOffsetKey') +external NSStreamPropertyKey _NSStreamFileCurrentOffsetKey; + +DartNSStreamPropertyKey get NSStreamFileCurrentOffsetKey => + objc.NSString.fromPointer( + _NSStreamFileCurrentOffsetKey, + retain: true, + release: true, + ); + +set NSStreamFileCurrentOffsetKey(DartNSStreamPropertyKey value) { + objc.NSString.fromPointer( + _NSStreamFileCurrentOffsetKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamFileCurrentOffsetKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamNetworkServiceType') +external NSStreamPropertyKey _NSStreamNetworkServiceType; + +DartNSStreamPropertyKey get NSStreamNetworkServiceType => + objc.NSString.fromPointer( + _NSStreamNetworkServiceType, + retain: true, + release: true, + ); + +set NSStreamNetworkServiceType(DartNSStreamPropertyKey value) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceType, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceType = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamNetworkServiceTypeBackground', +) +external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeBackground; + +DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeBackground => + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeBackground, + retain: true, + release: true, + ); + +set NSStreamNetworkServiceTypeBackground( + DartNSStreamNetworkServiceTypeValue value, +) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeBackground, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceTypeBackground = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamNetworkServiceTypeCallSignaling', +) +external NSStreamNetworkServiceTypeValue +_NSStreamNetworkServiceTypeCallSignaling; + +DartNSStreamNetworkServiceTypeValue +get NSStreamNetworkServiceTypeCallSignaling => objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeCallSignaling, + retain: true, + release: true, +); + +set NSStreamNetworkServiceTypeCallSignaling( + DartNSStreamNetworkServiceTypeValue value, +) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeCallSignaling, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceTypeCallSignaling = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamNetworkServiceTypeVideo', +) +external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVideo; + +DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVideo => + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVideo, + retain: true, + release: true, + ); + +set NSStreamNetworkServiceTypeVideo(DartNSStreamNetworkServiceTypeValue value) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVideo, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceTypeVideo = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamNetworkServiceTypeVoIP', +) +external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVoIP; + +DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVoIP => + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVoIP, + retain: true, + release: true, + ); + +set NSStreamNetworkServiceTypeVoIP(DartNSStreamNetworkServiceTypeValue value) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVoIP, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceTypeVoIP = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamNetworkServiceTypeVoice', +) +external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVoice; + +DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVoice => + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVoice, + retain: true, + release: true, + ); + +set NSStreamNetworkServiceTypeVoice(DartNSStreamNetworkServiceTypeValue value) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVoice, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceTypeVoice = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSOCKSErrorDomain') +external NSErrorDomain _NSStreamSOCKSErrorDomain; + +DartNSErrorDomain get NSStreamSOCKSErrorDomain => objc.NSString.fromPointer( + _NSStreamSOCKSErrorDomain, + retain: true, + release: true, +); + +set NSStreamSOCKSErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSStreamSOCKSErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSOCKSProxyConfigurationKey') +external NSStreamPropertyKey _NSStreamSOCKSProxyConfigurationKey; + +DartNSStreamPropertyKey get NSStreamSOCKSProxyConfigurationKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyConfigurationKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyConfigurationKey(DartNSStreamPropertyKey value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyConfigurationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyConfigurationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSOCKSProxyHostKey', +) +external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyHostKey; + +DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyHostKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyHostKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyHostKey(DartNSStreamSOCKSProxyConfiguration value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyHostKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyHostKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSOCKSProxyPasswordKey', +) +external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyPasswordKey; + +DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyPasswordKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyPasswordKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyPasswordKey(DartNSStreamSOCKSProxyConfiguration value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyPasswordKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyPasswordKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSOCKSProxyPortKey', +) +external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyPortKey; + +DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyPortKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyPortKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyPortKey(DartNSStreamSOCKSProxyConfiguration value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyPortKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyPortKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSOCKSProxyUserKey', +) +external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyUserKey; + +DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyUserKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyUserKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyUserKey(DartNSStreamSOCKSProxyConfiguration value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyUserKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyUserKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSOCKSProxyVersion4') +external NSStreamSOCKSProxyVersion _NSStreamSOCKSProxyVersion4; + +DartNSStreamSOCKSProxyVersion get NSStreamSOCKSProxyVersion4 => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersion4, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyVersion4(DartNSStreamSOCKSProxyVersion value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersion4, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyVersion4 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSOCKSProxyVersion5') +external NSStreamSOCKSProxyVersion _NSStreamSOCKSProxyVersion5; + +DartNSStreamSOCKSProxyVersion get NSStreamSOCKSProxyVersion5 => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersion5, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyVersion5(DartNSStreamSOCKSProxyVersion value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersion5, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyVersion5 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSOCKSProxyVersionKey', +) +external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyVersionKey; + +DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyVersionKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersionKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyVersionKey(DartNSStreamSOCKSProxyConfiguration value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyVersionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSocketSSLErrorDomain') +external NSErrorDomain _NSStreamSocketSSLErrorDomain; + +DartNSErrorDomain get NSStreamSocketSSLErrorDomain => objc.NSString.fromPointer( + _NSStreamSocketSSLErrorDomain, + retain: true, + release: true, +); + +set NSStreamSocketSSLErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSStreamSocketSSLErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSSLErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSocketSecurityLevelKey') +external NSStreamPropertyKey _NSStreamSocketSecurityLevelKey; + +DartNSStreamPropertyKey get NSStreamSocketSecurityLevelKey => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelKey, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelKey(DartNSStreamPropertyKey value) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSocketSecurityLevelNegotiatedSSL', +) +external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelNegotiatedSSL; + +DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelNegotiatedSSL => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelNegotiatedSSL, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelNegotiatedSSL( + DartNSStreamSocketSecurityLevel value, +) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelNegotiatedSSL, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelNegotiatedSSL = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSocketSecurityLevelNone', +) +external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelNone; + +DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelNone => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelNone, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelNone(DartNSStreamSocketSecurityLevel value) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelNone, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelNone = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSocketSecurityLevelSSLv2', +) +external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelSSLv2; + +DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelSSLv2 => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelSSLv2, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelSSLv2(DartNSStreamSocketSecurityLevel value) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelSSLv2, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelSSLv2 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSocketSecurityLevelSSLv3', +) +external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelSSLv3; + +DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelSSLv3 => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelSSLv3, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelSSLv3(DartNSStreamSocketSecurityLevel value) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelSSLv3, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelSSLv3 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSocketSecurityLevelTLSv1', +) +external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelTLSv1; + +DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelTLSv1 => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelTLSv1, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelTLSv1(DartNSStreamSocketSecurityLevel value) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelTLSv1, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelTLSv1 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionAllowLossyKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionAllowLossyKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionAllowLossyKey => objc.NSString.fromPointer( + _NSStringEncodingDetectionAllowLossyKey, + retain: true, + release: true, +); + +set NSStringEncodingDetectionAllowLossyKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionAllowLossyKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionAllowLossyKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionDisallowedEncodingsKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionDisallowedEncodingsKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionDisallowedEncodingsKey => + objc.NSString.fromPointer( + _NSStringEncodingDetectionDisallowedEncodingsKey, + retain: true, + release: true, + ); + +set NSStringEncodingDetectionDisallowedEncodingsKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionDisallowedEncodingsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionDisallowedEncodingsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionFromWindowsKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionFromWindowsKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionFromWindowsKey => objc.NSString.fromPointer( + _NSStringEncodingDetectionFromWindowsKey, + retain: true, + release: true, +); + +set NSStringEncodingDetectionFromWindowsKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionFromWindowsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionFromWindowsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionLikelyLanguageKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionLikelyLanguageKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionLikelyLanguageKey => objc.NSString.fromPointer( + _NSStringEncodingDetectionLikelyLanguageKey, + retain: true, + release: true, +); + +set NSStringEncodingDetectionLikelyLanguageKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionLikelyLanguageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionLikelyLanguageKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionLossySubstitutionKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionLossySubstitutionKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionLossySubstitutionKey => objc.NSString.fromPointer( + _NSStringEncodingDetectionLossySubstitutionKey, + retain: true, + release: true, +); + +set NSStringEncodingDetectionLossySubstitutionKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionLossySubstitutionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionLossySubstitutionKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionSuggestedEncodingsKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionSuggestedEncodingsKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionSuggestedEncodingsKey => objc.NSString.fromPointer( + _NSStringEncodingDetectionSuggestedEncodingsKey, + retain: true, + release: true, +); + +set NSStringEncodingDetectionSuggestedEncodingsKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionSuggestedEncodingsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionSuggestedEncodingsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionUseOnlySuggestedEncodingsKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionUseOnlySuggestedEncodingsKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionUseOnlySuggestedEncodingsKey => + objc.NSString.fromPointer( + _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey, + retain: true, + release: true, + ); + +set NSStringEncodingDetectionUseOnlySuggestedEncodingsKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringEncodingErrorKey') +external NSErrorUserInfoKey _NSStringEncodingErrorKey; + +DartNSErrorUserInfoKey get NSStringEncodingErrorKey => + objc.NSString.fromPointer( + _NSStringEncodingErrorKey, + retain: true, + release: true, + ); + +set NSStringEncodingErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSStringEncodingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSStringFromClass') +external ffi.Pointer _NSStringFromClass( + ffi.Pointer aClass, +); + +objc.NSString NSStringFromClass(objc.ObjCObject aClass) { + final _$$ref = aClass.ref; + return objc.NSString.fromPointer( + _NSStringFromClass(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSStringFromHashTable') +external ffi.Pointer _NSStringFromHashTable( + ffi.Pointer table, +); + +objc.NSString NSStringFromHashTable(NSHashTable table) { + final _$$ref = table.ref; + return objc.NSString.fromPointer( + _NSStringFromHashTable(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSStringFromMapTable') +external ffi.Pointer _NSStringFromMapTable( + ffi.Pointer table, +); + +objc.NSString NSStringFromMapTable(NSMapTable table) { + final _$$ref = table.ref; + return objc.NSString.fromPointer( + _NSStringFromMapTable(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native Function(NSPoint)>( + symbol: 'NSStringFromPoint', +) +external ffi.Pointer _NSStringFromPoint(NSPoint aPoint); + +objc.NSString NSStringFromPoint(NSPoint aPoint) { + return objc.NSString.fromPointer( + _NSStringFromPoint(aPoint), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSStringFromProtocol') +external ffi.Pointer _NSStringFromProtocol( + ffi.Pointer proto, +); + +objc.NSString NSStringFromProtocol(objc.Protocol proto) { + final _$$ref = proto.ref; + return objc.NSString.fromPointer( + _NSStringFromProtocol(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native Function(NSRange)>( + symbol: 'NSStringFromRange', +) +external ffi.Pointer _NSStringFromRange(NSRange range); + +objc.NSString NSStringFromRange(NSRange range) { + return objc.NSString.fromPointer( + _NSStringFromRange(range), + retain: true, + release: true, + ); +} + +@ffi.Native Function(NSRect)>( + symbol: 'NSStringFromRect', +) +external ffi.Pointer _NSStringFromRect(NSRect aRect); + +objc.NSString NSStringFromRect(NSRect aRect) { + return objc.NSString.fromPointer( + _NSStringFromRect(aRect), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSStringFromSelector') +external ffi.Pointer _NSStringFromSelector( + ffi.Pointer aSelector, +); + +objc.NSString NSStringFromSelector(ffi.Pointer aSelector) { + return objc.NSString.fromPointer( + _NSStringFromSelector(aSelector), + retain: true, + release: true, + ); +} + +@ffi.Native Function(NSSize)>( + symbol: 'NSStringFromSize', +) +external ffi.Pointer _NSStringFromSize(NSSize aSize); + +objc.NSString NSStringFromSize(NSSize aSize) { + return objc.NSString.fromPointer( + _NSStringFromSize(aSize), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSStringTransformFullwidthToHalfwidth') +external NSStringTransform _NSStringTransformFullwidthToHalfwidth; + +DartNSStringTransform get NSStringTransformFullwidthToHalfwidth => + objc.NSString.fromPointer( + _NSStringTransformFullwidthToHalfwidth, + retain: true, + release: true, + ); + +set NSStringTransformFullwidthToHalfwidth(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformFullwidthToHalfwidth, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformFullwidthToHalfwidth = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformHiraganaToKatakana') +external NSStringTransform _NSStringTransformHiraganaToKatakana; + +DartNSStringTransform get NSStringTransformHiraganaToKatakana => + objc.NSString.fromPointer( + _NSStringTransformHiraganaToKatakana, + retain: true, + release: true, + ); + +set NSStringTransformHiraganaToKatakana(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformHiraganaToKatakana, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformHiraganaToKatakana = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToArabic') +external NSStringTransform _NSStringTransformLatinToArabic; + +DartNSStringTransform get NSStringTransformLatinToArabic => + objc.NSString.fromPointer( + _NSStringTransformLatinToArabic, + retain: true, + release: true, + ); + +set NSStringTransformLatinToArabic(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToArabic, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToArabic = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToCyrillic') +external NSStringTransform _NSStringTransformLatinToCyrillic; + +DartNSStringTransform get NSStringTransformLatinToCyrillic => + objc.NSString.fromPointer( + _NSStringTransformLatinToCyrillic, + retain: true, + release: true, + ); + +set NSStringTransformLatinToCyrillic(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToCyrillic, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToCyrillic = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToGreek') +external NSStringTransform _NSStringTransformLatinToGreek; + +DartNSStringTransform get NSStringTransformLatinToGreek => + objc.NSString.fromPointer( + _NSStringTransformLatinToGreek, + retain: true, + release: true, + ); + +set NSStringTransformLatinToGreek(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToGreek, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToGreek = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToHangul') +external NSStringTransform _NSStringTransformLatinToHangul; + +DartNSStringTransform get NSStringTransformLatinToHangul => + objc.NSString.fromPointer( + _NSStringTransformLatinToHangul, + retain: true, + release: true, + ); + +set NSStringTransformLatinToHangul(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToHangul, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToHangul = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToHebrew') +external NSStringTransform _NSStringTransformLatinToHebrew; + +DartNSStringTransform get NSStringTransformLatinToHebrew => + objc.NSString.fromPointer( + _NSStringTransformLatinToHebrew, + retain: true, + release: true, + ); + +set NSStringTransformLatinToHebrew(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToHebrew, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToHebrew = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToHiragana') +external NSStringTransform _NSStringTransformLatinToHiragana; + +DartNSStringTransform get NSStringTransformLatinToHiragana => + objc.NSString.fromPointer( + _NSStringTransformLatinToHiragana, + retain: true, + release: true, + ); + +set NSStringTransformLatinToHiragana(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToHiragana, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToHiragana = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToKatakana') +external NSStringTransform _NSStringTransformLatinToKatakana; + +DartNSStringTransform get NSStringTransformLatinToKatakana => + objc.NSString.fromPointer( + _NSStringTransformLatinToKatakana, + retain: true, + release: true, + ); + +set NSStringTransformLatinToKatakana(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToKatakana, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToKatakana = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToThai') +external NSStringTransform _NSStringTransformLatinToThai; + +DartNSStringTransform get NSStringTransformLatinToThai => + objc.NSString.fromPointer( + _NSStringTransformLatinToThai, + retain: true, + release: true, + ); + +set NSStringTransformLatinToThai(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToThai, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToThai = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformMandarinToLatin') +external NSStringTransform _NSStringTransformMandarinToLatin; + +DartNSStringTransform get NSStringTransformMandarinToLatin => + objc.NSString.fromPointer( + _NSStringTransformMandarinToLatin, + retain: true, + release: true, + ); + +set NSStringTransformMandarinToLatin(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformMandarinToLatin, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformMandarinToLatin = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformStripCombiningMarks') +external NSStringTransform _NSStringTransformStripCombiningMarks; + +DartNSStringTransform get NSStringTransformStripCombiningMarks => + objc.NSString.fromPointer( + _NSStringTransformStripCombiningMarks, + retain: true, + release: true, + ); + +set NSStringTransformStripCombiningMarks(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformStripCombiningMarks, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformStripCombiningMarks = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformStripDiacritics') +external NSStringTransform _NSStringTransformStripDiacritics; + +DartNSStringTransform get NSStringTransformStripDiacritics => + objc.NSString.fromPointer( + _NSStringTransformStripDiacritics, + retain: true, + release: true, + ); + +set NSStringTransformStripDiacritics(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformStripDiacritics, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformStripDiacritics = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformToLatin') +external NSStringTransform _NSStringTransformToLatin; + +DartNSStringTransform get NSStringTransformToLatin => objc.NSString.fromPointer( + _NSStringTransformToLatin, + retain: true, + release: true, +); + +set NSStringTransformToLatin(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformToLatin, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformToLatin = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformToUnicodeName') +external NSStringTransform _NSStringTransformToUnicodeName; + +DartNSStringTransform get NSStringTransformToUnicodeName => + objc.NSString.fromPointer( + _NSStringTransformToUnicodeName, + retain: true, + release: true, + ); + +set NSStringTransformToUnicodeName(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformToUnicodeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformToUnicodeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformToXMLHex') +external NSStringTransform _NSStringTransformToXMLHex; + +DartNSStringTransform get NSStringTransformToXMLHex => + objc.NSString.fromPointer( + _NSStringTransformToXMLHex, + retain: true, + release: true, + ); + +set NSStringTransformToXMLHex(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformToXMLHex, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformToXMLHex = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSSumKeyValueOperator') +external NSKeyValueOperator _NSSumKeyValueOperator; + +DartNSKeyValueOperator get NSSumKeyValueOperator => objc.NSString.fromPointer( + _NSSumKeyValueOperator, + retain: true, + release: true, +); + +set NSSumKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSSumKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSSumKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSSystemClockDidChangeNotification') +external NSNotificationName _NSSystemClockDidChangeNotification; + +DartNSNotificationName get NSSystemClockDidChangeNotification => + objc.NSString.fromPointer( + _NSSystemClockDidChangeNotification, + retain: true, + release: true, + ); + +set NSSystemClockDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSSystemClockDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSSystemClockDidChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSSystemTimeZoneDidChangeNotification') +external NSNotificationName _NSSystemTimeZoneDidChangeNotification; + +DartNSNotificationName get NSSystemTimeZoneDidChangeNotification => + objc.NSString.fromPointer( + _NSSystemTimeZoneDidChangeNotification, + retain: true, + release: true, + ); + +set NSSystemTimeZoneDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSSystemTimeZoneDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSSystemTimeZoneDidChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTaskDidTerminateNotification') +external NSNotificationName _NSTaskDidTerminateNotification; + +DartNSNotificationName get NSTaskDidTerminateNotification => + objc.NSString.fromPointer( + _NSTaskDidTerminateNotification, + retain: true, + release: true, + ); + +set NSTaskDidTerminateNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSTaskDidTerminateNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTaskDidTerminateNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native Function()>( + symbol: 'NSTemporaryDirectory', +) +external ffi.Pointer _NSTemporaryDirectory(); + +objc.NSString NSTemporaryDirectory() { + return objc.NSString.fromPointer( + _NSTemporaryDirectory(), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSTextCheckingAirlineKey') +external NSTextCheckingKey _NSTextCheckingAirlineKey; + +DartNSTextCheckingKey get NSTextCheckingAirlineKey => objc.NSString.fromPointer( + _NSTextCheckingAirlineKey, + retain: true, + release: true, +); + +set NSTextCheckingAirlineKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingAirlineKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingAirlineKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingCityKey') +external NSTextCheckingKey _NSTextCheckingCityKey; + +DartNSTextCheckingKey get NSTextCheckingCityKey => objc.NSString.fromPointer( + _NSTextCheckingCityKey, + retain: true, + release: true, +); + +set NSTextCheckingCityKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingCityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingCityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingCountryKey') +external NSTextCheckingKey _NSTextCheckingCountryKey; + +DartNSTextCheckingKey get NSTextCheckingCountryKey => objc.NSString.fromPointer( + _NSTextCheckingCountryKey, + retain: true, + release: true, +); + +set NSTextCheckingCountryKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingCountryKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingCountryKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingFlightKey') +external NSTextCheckingKey _NSTextCheckingFlightKey; + +DartNSTextCheckingKey get NSTextCheckingFlightKey => objc.NSString.fromPointer( + _NSTextCheckingFlightKey, + retain: true, + release: true, +); + +set NSTextCheckingFlightKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingFlightKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingFlightKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingJobTitleKey') +external NSTextCheckingKey _NSTextCheckingJobTitleKey; + +DartNSTextCheckingKey get NSTextCheckingJobTitleKey => + objc.NSString.fromPointer( + _NSTextCheckingJobTitleKey, + retain: true, + release: true, + ); + +set NSTextCheckingJobTitleKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingJobTitleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingJobTitleKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingNameKey') +external NSTextCheckingKey _NSTextCheckingNameKey; + +DartNSTextCheckingKey get NSTextCheckingNameKey => objc.NSString.fromPointer( + _NSTextCheckingNameKey, + retain: true, + release: true, +); + +set NSTextCheckingNameKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingOrganizationKey') +external NSTextCheckingKey _NSTextCheckingOrganizationKey; + +DartNSTextCheckingKey get NSTextCheckingOrganizationKey => + objc.NSString.fromPointer( + _NSTextCheckingOrganizationKey, + retain: true, + release: true, + ); + +set NSTextCheckingOrganizationKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingOrganizationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingOrganizationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingPhoneKey') +external NSTextCheckingKey _NSTextCheckingPhoneKey; + +DartNSTextCheckingKey get NSTextCheckingPhoneKey => objc.NSString.fromPointer( + _NSTextCheckingPhoneKey, + retain: true, + release: true, +); + +set NSTextCheckingPhoneKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingPhoneKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingPhoneKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingStateKey') +external NSTextCheckingKey _NSTextCheckingStateKey; + +DartNSTextCheckingKey get NSTextCheckingStateKey => objc.NSString.fromPointer( + _NSTextCheckingStateKey, + retain: true, + release: true, +); + +set NSTextCheckingStateKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingStateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingStateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingStreetKey') +external NSTextCheckingKey _NSTextCheckingStreetKey; + +DartNSTextCheckingKey get NSTextCheckingStreetKey => objc.NSString.fromPointer( + _NSTextCheckingStreetKey, + retain: true, + release: true, +); + +set NSTextCheckingStreetKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingStreetKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingStreetKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingZIPKey') +external NSTextCheckingKey _NSTextCheckingZIPKey; + +DartNSTextCheckingKey get NSTextCheckingZIPKey => objc.NSString.fromPointer( + _NSTextCheckingZIPKey, + retain: true, + release: true, +); + +set NSTextCheckingZIPKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingZIPKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingZIPKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSThisDayDesignations') +external ffi.Pointer _NSThisDayDesignations; + +objc.NSString get NSThisDayDesignations => objc.NSString.fromPointer( + _NSThisDayDesignations, + retain: true, + release: true, +); + +set NSThisDayDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSThisDayDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSThisDayDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSThousandsSeparator') +external ffi.Pointer _NSThousandsSeparator; + +objc.NSString get NSThousandsSeparator => objc.NSString.fromPointer( + _NSThousandsSeparator, + retain: true, + release: true, +); + +set NSThousandsSeparator(objc.NSString value) { + objc.NSString.fromPointer( + _NSThousandsSeparator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSThousandsSeparator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSThreadWillExitNotification') +external NSNotificationName _NSThreadWillExitNotification; + +DartNSNotificationName get NSThreadWillExitNotification => + objc.NSString.fromPointer( + _NSThreadWillExitNotification, + retain: true, + release: true, + ); + +set NSThreadWillExitNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSThreadWillExitNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSThreadWillExitNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSThumbnail1024x1024SizeKey') +external NSURLThumbnailDictionaryItem _NSThumbnail1024x1024SizeKey; + +DartNSURLThumbnailDictionaryItem get NSThumbnail1024x1024SizeKey => + objc.NSString.fromPointer( + _NSThumbnail1024x1024SizeKey, + retain: true, + release: true, + ); + +set NSThumbnail1024x1024SizeKey(DartNSURLThumbnailDictionaryItem value) { + objc.NSString.fromPointer( + _NSThumbnail1024x1024SizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSThumbnail1024x1024SizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSTimeDateFormatString') +external ffi.Pointer _NSTimeDateFormatString; + +objc.NSString get NSTimeDateFormatString => objc.NSString.fromPointer( + _NSTimeDateFormatString, + retain: true, + release: true, +); + +set NSTimeDateFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSTimeDateFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTimeDateFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSTimeFormatString') +external ffi.Pointer _NSTimeFormatString; + +objc.NSString get NSTimeFormatString => + objc.NSString.fromPointer(_NSTimeFormatString, retain: true, release: true); + +set NSTimeFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSTimeFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTimeFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLAddedToDirectoryDateKey') +external NSURLResourceKey _NSURLAddedToDirectoryDateKey; + +DartNSURLResourceKey get NSURLAddedToDirectoryDateKey => + objc.NSString.fromPointer( + _NSURLAddedToDirectoryDateKey, + retain: true, + release: true, + ); + +set NSURLAddedToDirectoryDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLAddedToDirectoryDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAddedToDirectoryDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLApplicationIsScriptableKey') +external NSURLResourceKey _NSURLApplicationIsScriptableKey; + +DartNSURLResourceKey get NSURLApplicationIsScriptableKey => + objc.NSString.fromPointer( + _NSURLApplicationIsScriptableKey, + retain: true, + release: true, + ); + +set NSURLApplicationIsScriptableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLApplicationIsScriptableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLApplicationIsScriptableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLAttributeModificationDateKey') +external NSURLResourceKey _NSURLAttributeModificationDateKey; + +DartNSURLResourceKey get NSURLAttributeModificationDateKey => + objc.NSString.fromPointer( + _NSURLAttributeModificationDateKey, + retain: true, + release: true, + ); + +set NSURLAttributeModificationDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLAttributeModificationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAttributeModificationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodClientCertificate', +) +external ffi.Pointer +_NSURLAuthenticationMethodClientCertificate; + +objc.NSString get NSURLAuthenticationMethodClientCertificate => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodClientCertificate, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodClientCertificate(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodClientCertificate, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodClientCertificate = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodDefault', +) +external ffi.Pointer _NSURLAuthenticationMethodDefault; + +objc.NSString get NSURLAuthenticationMethodDefault => objc.NSString.fromPointer( + _NSURLAuthenticationMethodDefault, + retain: true, + release: true, +); + +set NSURLAuthenticationMethodDefault(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodDefault, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodDefault = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodHTMLForm', +) +external ffi.Pointer _NSURLAuthenticationMethodHTMLForm; + +objc.NSString get NSURLAuthenticationMethodHTMLForm => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTMLForm, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodHTMLForm(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTMLForm, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodHTMLForm = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodHTTPBasic', +) +external ffi.Pointer _NSURLAuthenticationMethodHTTPBasic; + +objc.NSString get NSURLAuthenticationMethodHTTPBasic => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTTPBasic, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodHTTPBasic(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTTPBasic, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodHTTPBasic = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodHTTPDigest', +) +external ffi.Pointer _NSURLAuthenticationMethodHTTPDigest; + +objc.NSString get NSURLAuthenticationMethodHTTPDigest => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTTPDigest, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodHTTPDigest(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTTPDigest, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodHTTPDigest = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodNTLM', +) +external ffi.Pointer _NSURLAuthenticationMethodNTLM; + +objc.NSString get NSURLAuthenticationMethodNTLM => objc.NSString.fromPointer( + _NSURLAuthenticationMethodNTLM, + retain: true, + release: true, +); + +set NSURLAuthenticationMethodNTLM(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodNTLM, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodNTLM = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodNegotiate', +) +external ffi.Pointer _NSURLAuthenticationMethodNegotiate; + +objc.NSString get NSURLAuthenticationMethodNegotiate => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodNegotiate, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodNegotiate(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodNegotiate, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodNegotiate = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodServerTrust', +) +external ffi.Pointer _NSURLAuthenticationMethodServerTrust; + +objc.NSString get NSURLAuthenticationMethodServerTrust => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodServerTrust, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodServerTrust(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodServerTrust, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodServerTrust = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLCanonicalPathKey') +external NSURLResourceKey _NSURLCanonicalPathKey; + +DartNSURLResourceKey get NSURLCanonicalPathKey => objc.NSString.fromPointer( + _NSURLCanonicalPathKey, + retain: true, + release: true, +); + +set NSURLCanonicalPathKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLCanonicalPathKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLCanonicalPathKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLContentAccessDateKey') +external NSURLResourceKey _NSURLContentAccessDateKey; + +DartNSURLResourceKey get NSURLContentAccessDateKey => objc.NSString.fromPointer( + _NSURLContentAccessDateKey, + retain: true, + release: true, +); + +set NSURLContentAccessDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLContentAccessDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLContentAccessDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLContentModificationDateKey') +external NSURLResourceKey _NSURLContentModificationDateKey; + +DartNSURLResourceKey get NSURLContentModificationDateKey => + objc.NSString.fromPointer( + _NSURLContentModificationDateKey, + retain: true, + release: true, + ); + +set NSURLContentModificationDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLContentModificationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLContentModificationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLContentTypeKey') +external NSURLResourceKey _NSURLContentTypeKey; + +DartNSURLResourceKey get NSURLContentTypeKey => objc.NSString.fromPointer( + _NSURLContentTypeKey, + retain: true, + release: true, +); + +set NSURLContentTypeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLContentTypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLContentTypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLCreationDateKey') +external NSURLResourceKey _NSURLCreationDateKey; + +DartNSURLResourceKey get NSURLCreationDateKey => objc.NSString.fromPointer( + _NSURLCreationDateKey, + retain: true, + release: true, +); + +set NSURLCreationDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLCreationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLCreationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLCredentialStorageChangedNotification', +) +external NSNotificationName _NSURLCredentialStorageChangedNotification; + +DartNSNotificationName get NSURLCredentialStorageChangedNotification => + objc.NSString.fromPointer( + _NSURLCredentialStorageChangedNotification, + retain: true, + release: true, + ); + +set NSURLCredentialStorageChangedNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSURLCredentialStorageChangedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLCredentialStorageChangedNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLCredentialStorageRemoveSynchronizableCredentials', +) +external ffi.Pointer +_NSURLCredentialStorageRemoveSynchronizableCredentials; + +objc.NSString get NSURLCredentialStorageRemoveSynchronizableCredentials => + objc.NSString.fromPointer( + _NSURLCredentialStorageRemoveSynchronizableCredentials, + retain: true, + release: true, + ); + +set NSURLCredentialStorageRemoveSynchronizableCredentials(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLCredentialStorageRemoveSynchronizableCredentials, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLCredentialStorageRemoveSynchronizableCredentials = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLCustomIconKey') +external NSURLResourceKey _NSURLCustomIconKey; + +DartNSURLResourceKey get NSURLCustomIconKey => + objc.NSString.fromPointer(_NSURLCustomIconKey, retain: true, release: true); + +set NSURLCustomIconKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLCustomIconKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLCustomIconKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLDirectoryEntryCountKey') +external NSURLResourceKey _NSURLDirectoryEntryCountKey; + +DartNSURLResourceKey get NSURLDirectoryEntryCountKey => + objc.NSString.fromPointer( + _NSURLDirectoryEntryCountKey, + retain: true, + release: true, + ); + +set NSURLDirectoryEntryCountKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLDirectoryEntryCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLDirectoryEntryCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLDocumentIdentifierKey') +external NSURLResourceKey _NSURLDocumentIdentifierKey; + +DartNSURLResourceKey get NSURLDocumentIdentifierKey => + objc.NSString.fromPointer( + _NSURLDocumentIdentifierKey, + retain: true, + release: true, + ); + +set NSURLDocumentIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLDocumentIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLDocumentIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLEffectiveIconKey') +external NSURLResourceKey _NSURLEffectiveIconKey; + +DartNSURLResourceKey get NSURLEffectiveIconKey => objc.NSString.fromPointer( + _NSURLEffectiveIconKey, + retain: true, + release: true, +); + +set NSURLEffectiveIconKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLEffectiveIconKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLEffectiveIconKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLErrorBackgroundTaskCancelledReasonKey', +) +external ffi.Pointer +_NSURLErrorBackgroundTaskCancelledReasonKey; + +objc.NSString get NSURLErrorBackgroundTaskCancelledReasonKey => + objc.NSString.fromPointer( + _NSURLErrorBackgroundTaskCancelledReasonKey, + retain: true, + release: true, + ); + +set NSURLErrorBackgroundTaskCancelledReasonKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLErrorBackgroundTaskCancelledReasonKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorBackgroundTaskCancelledReasonKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLErrorDomain') +external NSErrorDomain _NSURLErrorDomain; + +DartNSErrorDomain get NSURLErrorDomain => + objc.NSString.fromPointer(_NSURLErrorDomain, retain: true, release: true); + +set NSURLErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSURLErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLErrorFailingURLErrorKey', +) +external ffi.Pointer _NSURLErrorFailingURLErrorKey; + +objc.NSString get NSURLErrorFailingURLErrorKey => objc.NSString.fromPointer( + _NSURLErrorFailingURLErrorKey, + retain: true, + release: true, +); + +set NSURLErrorFailingURLErrorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLErrorFailingURLErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorFailingURLErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLErrorFailingURLPeerTrustErrorKey', +) +external ffi.Pointer +_NSURLErrorFailingURLPeerTrustErrorKey; + +objc.NSString get NSURLErrorFailingURLPeerTrustErrorKey => + objc.NSString.fromPointer( + _NSURLErrorFailingURLPeerTrustErrorKey, + retain: true, + release: true, + ); + +set NSURLErrorFailingURLPeerTrustErrorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLErrorFailingURLPeerTrustErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorFailingURLPeerTrustErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLErrorFailingURLStringErrorKey', +) +external ffi.Pointer _NSURLErrorFailingURLStringErrorKey; + +objc.NSString get NSURLErrorFailingURLStringErrorKey => + objc.NSString.fromPointer( + _NSURLErrorFailingURLStringErrorKey, + retain: true, + release: true, + ); + +set NSURLErrorFailingURLStringErrorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLErrorFailingURLStringErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorFailingURLStringErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLErrorKey') +external NSErrorUserInfoKey _NSURLErrorKey; + +DartNSErrorUserInfoKey get NSURLErrorKey => + objc.NSString.fromPointer(_NSURLErrorKey, retain: true, release: true); + +set NSURLErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSURLErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLErrorNetworkUnavailableReasonKey') +external NSErrorUserInfoKey _NSURLErrorNetworkUnavailableReasonKey; + +DartNSErrorUserInfoKey get NSURLErrorNetworkUnavailableReasonKey => + objc.NSString.fromPointer( + _NSURLErrorNetworkUnavailableReasonKey, + retain: true, + release: true, + ); + +set NSURLErrorNetworkUnavailableReasonKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSURLErrorNetworkUnavailableReasonKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorNetworkUnavailableReasonKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileAllocatedSizeKey') +external NSURLResourceKey _NSURLFileAllocatedSizeKey; + +DartNSURLResourceKey get NSURLFileAllocatedSizeKey => objc.NSString.fromPointer( + _NSURLFileAllocatedSizeKey, + retain: true, + release: true, +); + +set NSURLFileAllocatedSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileAllocatedSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileAllocatedSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileContentIdentifierKey') +external NSURLResourceKey _NSURLFileContentIdentifierKey; + +DartNSURLResourceKey get NSURLFileContentIdentifierKey => + objc.NSString.fromPointer( + _NSURLFileContentIdentifierKey, + retain: true, + release: true, + ); + +set NSURLFileContentIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileContentIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileContentIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileIdentifierKey') +external NSURLResourceKey _NSURLFileIdentifierKey; + +DartNSURLResourceKey get NSURLFileIdentifierKey => objc.NSString.fromPointer( + _NSURLFileIdentifierKey, + retain: true, + release: true, +); + +set NSURLFileIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileProtectionComplete') +external NSURLFileProtectionType _NSURLFileProtectionComplete; + +DartNSURLFileProtectionType get NSURLFileProtectionComplete => + objc.NSString.fromPointer( + _NSURLFileProtectionComplete, + retain: true, + release: true, + ); + +set NSURLFileProtectionComplete(DartNSURLFileProtectionType value) { + objc.NSString.fromPointer( + _NSURLFileProtectionComplete, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionComplete = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLFileProtectionCompleteUnlessOpen', +) +external NSURLFileProtectionType _NSURLFileProtectionCompleteUnlessOpen; + +DartNSURLFileProtectionType get NSURLFileProtectionCompleteUnlessOpen => + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteUnlessOpen, + retain: true, + release: true, + ); + +set NSURLFileProtectionCompleteUnlessOpen(DartNSURLFileProtectionType value) { + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteUnlessOpen, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionCompleteUnlessOpen = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLFileProtectionCompleteUntilFirstUserAuthentication', +) +external NSURLFileProtectionType +_NSURLFileProtectionCompleteUntilFirstUserAuthentication; + +DartNSURLFileProtectionType +get NSURLFileProtectionCompleteUntilFirstUserAuthentication => + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteUntilFirstUserAuthentication, + retain: true, + release: true, + ); + +set NSURLFileProtectionCompleteUntilFirstUserAuthentication( + DartNSURLFileProtectionType value, +) { + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteUntilFirstUserAuthentication, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionCompleteUntilFirstUserAuthentication = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLFileProtectionCompleteWhenUserInactive', +) +external NSURLFileProtectionType _NSURLFileProtectionCompleteWhenUserInactive; + +DartNSURLFileProtectionType get NSURLFileProtectionCompleteWhenUserInactive => + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteWhenUserInactive, + retain: true, + release: true, + ); + +set NSURLFileProtectionCompleteWhenUserInactive( + DartNSURLFileProtectionType value, +) { + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteWhenUserInactive, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionCompleteWhenUserInactive = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileProtectionKey') +external NSURLResourceKey _NSURLFileProtectionKey; + +DartNSURLResourceKey get NSURLFileProtectionKey => objc.NSString.fromPointer( + _NSURLFileProtectionKey, + retain: true, + release: true, +); + +set NSURLFileProtectionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileProtectionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileProtectionNone') +external NSURLFileProtectionType _NSURLFileProtectionNone; + +DartNSURLFileProtectionType get NSURLFileProtectionNone => + objc.NSString.fromPointer( + _NSURLFileProtectionNone, + retain: true, + release: true, + ); + +set NSURLFileProtectionNone(DartNSURLFileProtectionType value) { + objc.NSString.fromPointer( + _NSURLFileProtectionNone, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionNone = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceIdentifierKey') +external NSURLResourceKey _NSURLFileResourceIdentifierKey; + +DartNSURLResourceKey get NSURLFileResourceIdentifierKey => + objc.NSString.fromPointer( + _NSURLFileResourceIdentifierKey, + retain: true, + release: true, + ); + +set NSURLFileResourceIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileResourceIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeBlockSpecial') +external NSURLFileResourceType _NSURLFileResourceTypeBlockSpecial; + +DartNSURLFileResourceType get NSURLFileResourceTypeBlockSpecial => + objc.NSString.fromPointer( + _NSURLFileResourceTypeBlockSpecial, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeBlockSpecial(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeBlockSpecial, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeBlockSpecial = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLFileResourceTypeCharacterSpecial', +) +external NSURLFileResourceType _NSURLFileResourceTypeCharacterSpecial; + +DartNSURLFileResourceType get NSURLFileResourceTypeCharacterSpecial => + objc.NSString.fromPointer( + _NSURLFileResourceTypeCharacterSpecial, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeCharacterSpecial(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeCharacterSpecial, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeCharacterSpecial = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeDirectory') +external NSURLFileResourceType _NSURLFileResourceTypeDirectory; + +DartNSURLFileResourceType get NSURLFileResourceTypeDirectory => + objc.NSString.fromPointer( + _NSURLFileResourceTypeDirectory, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeDirectory(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeDirectory, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeDirectory = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeKey') +external NSURLResourceKey _NSURLFileResourceTypeKey; + +DartNSURLResourceKey get NSURLFileResourceTypeKey => objc.NSString.fromPointer( + _NSURLFileResourceTypeKey, + retain: true, + release: true, +); + +set NSURLFileResourceTypeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeNamedPipe') +external NSURLFileResourceType _NSURLFileResourceTypeNamedPipe; + +DartNSURLFileResourceType get NSURLFileResourceTypeNamedPipe => + objc.NSString.fromPointer( + _NSURLFileResourceTypeNamedPipe, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeNamedPipe(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeNamedPipe, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeNamedPipe = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeRegular') +external NSURLFileResourceType _NSURLFileResourceTypeRegular; + +DartNSURLFileResourceType get NSURLFileResourceTypeRegular => + objc.NSString.fromPointer( + _NSURLFileResourceTypeRegular, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeRegular(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeRegular, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeRegular = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeSocket') +external NSURLFileResourceType _NSURLFileResourceTypeSocket; + +DartNSURLFileResourceType get NSURLFileResourceTypeSocket => + objc.NSString.fromPointer( + _NSURLFileResourceTypeSocket, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeSocket(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeSocket, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeSocket = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeSymbolicLink') +external NSURLFileResourceType _NSURLFileResourceTypeSymbolicLink; + +DartNSURLFileResourceType get NSURLFileResourceTypeSymbolicLink => + objc.NSString.fromPointer( + _NSURLFileResourceTypeSymbolicLink, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeSymbolicLink(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeSymbolicLink, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeSymbolicLink = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeUnknown') +external NSURLFileResourceType _NSURLFileResourceTypeUnknown; + +DartNSURLFileResourceType get NSURLFileResourceTypeUnknown => + objc.NSString.fromPointer( + _NSURLFileResourceTypeUnknown, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeUnknown(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeUnknown, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeUnknown = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSURLFileScheme') +external ffi.Pointer _NSURLFileScheme; + +objc.NSString get NSURLFileScheme => + objc.NSString.fromPointer(_NSURLFileScheme, retain: true, release: true); + +set NSURLFileScheme(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLFileScheme, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileScheme = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileSecurityKey') +external NSURLResourceKey _NSURLFileSecurityKey; + +DartNSURLResourceKey get NSURLFileSecurityKey => objc.NSString.fromPointer( + _NSURLFileSecurityKey, + retain: true, + release: true, +); + +set NSURLFileSecurityKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileSecurityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileSecurityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileSizeKey') +external NSURLResourceKey _NSURLFileSizeKey; + +DartNSURLResourceKey get NSURLFileSizeKey => + objc.NSString.fromPointer(_NSURLFileSizeKey, retain: true, release: true); + +set NSURLFileSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLGenerationIdentifierKey') +external NSURLResourceKey _NSURLGenerationIdentifierKey; + +DartNSURLResourceKey get NSURLGenerationIdentifierKey => + objc.NSString.fromPointer( + _NSURLGenerationIdentifierKey, + retain: true, + release: true, + ); + +set NSURLGenerationIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLGenerationIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLGenerationIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLHasHiddenExtensionKey') +external NSURLResourceKey _NSURLHasHiddenExtensionKey; + +DartNSURLResourceKey get NSURLHasHiddenExtensionKey => + objc.NSString.fromPointer( + _NSURLHasHiddenExtensionKey, + retain: true, + release: true, + ); + +set NSURLHasHiddenExtensionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLHasHiddenExtensionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLHasHiddenExtensionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsAliasFileKey') +external NSURLResourceKey _NSURLIsAliasFileKey; + +DartNSURLResourceKey get NSURLIsAliasFileKey => objc.NSString.fromPointer( + _NSURLIsAliasFileKey, + retain: true, + release: true, +); + +set NSURLIsAliasFileKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsAliasFileKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsAliasFileKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsApplicationKey') +external NSURLResourceKey _NSURLIsApplicationKey; + +DartNSURLResourceKey get NSURLIsApplicationKey => objc.NSString.fromPointer( + _NSURLIsApplicationKey, + retain: true, + release: true, +); + +set NSURLIsApplicationKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsApplicationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsApplicationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsDirectoryKey') +external NSURLResourceKey _NSURLIsDirectoryKey; + +DartNSURLResourceKey get NSURLIsDirectoryKey => objc.NSString.fromPointer( + _NSURLIsDirectoryKey, + retain: true, + release: true, +); + +set NSURLIsDirectoryKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsDirectoryKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsDirectoryKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsExcludedFromBackupKey') +external NSURLResourceKey _NSURLIsExcludedFromBackupKey; + +DartNSURLResourceKey get NSURLIsExcludedFromBackupKey => + objc.NSString.fromPointer( + _NSURLIsExcludedFromBackupKey, + retain: true, + release: true, + ); + +set NSURLIsExcludedFromBackupKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsExcludedFromBackupKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsExcludedFromBackupKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsExecutableKey') +external NSURLResourceKey _NSURLIsExecutableKey; + +DartNSURLResourceKey get NSURLIsExecutableKey => objc.NSString.fromPointer( + _NSURLIsExecutableKey, + retain: true, + release: true, +); + +set NSURLIsExecutableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsExecutableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsExecutableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsHiddenKey') +external NSURLResourceKey _NSURLIsHiddenKey; + +DartNSURLResourceKey get NSURLIsHiddenKey => + objc.NSString.fromPointer(_NSURLIsHiddenKey, retain: true, release: true); + +set NSURLIsHiddenKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsHiddenKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsHiddenKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsMountTriggerKey') +external NSURLResourceKey _NSURLIsMountTriggerKey; + +DartNSURLResourceKey get NSURLIsMountTriggerKey => objc.NSString.fromPointer( + _NSURLIsMountTriggerKey, + retain: true, + release: true, +); + +set NSURLIsMountTriggerKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsMountTriggerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsMountTriggerKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsPackageKey') +external NSURLResourceKey _NSURLIsPackageKey; + +DartNSURLResourceKey get NSURLIsPackageKey => + objc.NSString.fromPointer(_NSURLIsPackageKey, retain: true, release: true); + +set NSURLIsPackageKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsPackageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsPackageKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsPurgeableKey') +external NSURLResourceKey _NSURLIsPurgeableKey; + +DartNSURLResourceKey get NSURLIsPurgeableKey => objc.NSString.fromPointer( + _NSURLIsPurgeableKey, + retain: true, + release: true, +); + +set NSURLIsPurgeableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsPurgeableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsPurgeableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsReadableKey') +external NSURLResourceKey _NSURLIsReadableKey; + +DartNSURLResourceKey get NSURLIsReadableKey => + objc.NSString.fromPointer(_NSURLIsReadableKey, retain: true, release: true); + +set NSURLIsReadableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsReadableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsReadableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsRegularFileKey') +external NSURLResourceKey _NSURLIsRegularFileKey; + +DartNSURLResourceKey get NSURLIsRegularFileKey => objc.NSString.fromPointer( + _NSURLIsRegularFileKey, + retain: true, + release: true, +); + +set NSURLIsRegularFileKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsRegularFileKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsRegularFileKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsSparseKey') +external NSURLResourceKey _NSURLIsSparseKey; + +DartNSURLResourceKey get NSURLIsSparseKey => + objc.NSString.fromPointer(_NSURLIsSparseKey, retain: true, release: true); + +set NSURLIsSparseKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsSparseKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsSparseKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsSymbolicLinkKey') +external NSURLResourceKey _NSURLIsSymbolicLinkKey; + +DartNSURLResourceKey get NSURLIsSymbolicLinkKey => objc.NSString.fromPointer( + _NSURLIsSymbolicLinkKey, + retain: true, + release: true, +); + +set NSURLIsSymbolicLinkKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsSymbolicLinkKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsSymbolicLinkKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsSystemImmutableKey') +external NSURLResourceKey _NSURLIsSystemImmutableKey; + +DartNSURLResourceKey get NSURLIsSystemImmutableKey => objc.NSString.fromPointer( + _NSURLIsSystemImmutableKey, + retain: true, + release: true, +); + +set NSURLIsSystemImmutableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsSystemImmutableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsSystemImmutableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsUbiquitousItemKey') +external NSURLResourceKey _NSURLIsUbiquitousItemKey; + +DartNSURLResourceKey get NSURLIsUbiquitousItemKey => objc.NSString.fromPointer( + _NSURLIsUbiquitousItemKey, + retain: true, + release: true, +); + +set NSURLIsUbiquitousItemKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsUbiquitousItemKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsUbiquitousItemKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsUserImmutableKey') +external NSURLResourceKey _NSURLIsUserImmutableKey; + +DartNSURLResourceKey get NSURLIsUserImmutableKey => objc.NSString.fromPointer( + _NSURLIsUserImmutableKey, + retain: true, + release: true, +); + +set NSURLIsUserImmutableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsUserImmutableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsUserImmutableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsVolumeKey') +external NSURLResourceKey _NSURLIsVolumeKey; + +DartNSURLResourceKey get NSURLIsVolumeKey => + objc.NSString.fromPointer(_NSURLIsVolumeKey, retain: true, release: true); + +set NSURLIsVolumeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsVolumeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsVolumeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsWritableKey') +external NSURLResourceKey _NSURLIsWritableKey; + +DartNSURLResourceKey get NSURLIsWritableKey => + objc.NSString.fromPointer(_NSURLIsWritableKey, retain: true, release: true); + +set NSURLIsWritableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsWritableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsWritableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLKeysOfUnsetValuesKey') +external NSURLResourceKey _NSURLKeysOfUnsetValuesKey; + +DartNSURLResourceKey get NSURLKeysOfUnsetValuesKey => objc.NSString.fromPointer( + _NSURLKeysOfUnsetValuesKey, + retain: true, + release: true, +); + +set NSURLKeysOfUnsetValuesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLKeysOfUnsetValuesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLKeysOfUnsetValuesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLabelColorKey') +external NSURLResourceKey _NSURLLabelColorKey; + +DartNSURLResourceKey get NSURLLabelColorKey => + objc.NSString.fromPointer(_NSURLLabelColorKey, retain: true, release: true); + +set NSURLLabelColorKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLabelColorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLabelColorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLabelNumberKey') +external NSURLResourceKey _NSURLLabelNumberKey; + +DartNSURLResourceKey get NSURLLabelNumberKey => objc.NSString.fromPointer( + _NSURLLabelNumberKey, + retain: true, + release: true, +); + +set NSURLLabelNumberKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLabelNumberKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLabelNumberKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLinkCountKey') +external NSURLResourceKey _NSURLLinkCountKey; + +DartNSURLResourceKey get NSURLLinkCountKey => + objc.NSString.fromPointer(_NSURLLinkCountKey, retain: true, release: true); + +set NSURLLinkCountKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLinkCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLinkCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLocalizedLabelKey') +external NSURLResourceKey _NSURLLocalizedLabelKey; + +DartNSURLResourceKey get NSURLLocalizedLabelKey => objc.NSString.fromPointer( + _NSURLLocalizedLabelKey, + retain: true, + release: true, +); + +set NSURLLocalizedLabelKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLocalizedLabelKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLocalizedLabelKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLocalizedNameKey') +external NSURLResourceKey _NSURLLocalizedNameKey; + +DartNSURLResourceKey get NSURLLocalizedNameKey => objc.NSString.fromPointer( + _NSURLLocalizedNameKey, + retain: true, + release: true, +); + +set NSURLLocalizedNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLocalizedNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLocalizedNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLocalizedTypeDescriptionKey') +external NSURLResourceKey _NSURLLocalizedTypeDescriptionKey; + +DartNSURLResourceKey get NSURLLocalizedTypeDescriptionKey => + objc.NSString.fromPointer( + _NSURLLocalizedTypeDescriptionKey, + retain: true, + release: true, + ); + +set NSURLLocalizedTypeDescriptionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLocalizedTypeDescriptionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLocalizedTypeDescriptionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLMayHaveExtendedAttributesKey') +external NSURLResourceKey _NSURLMayHaveExtendedAttributesKey; + +DartNSURLResourceKey get NSURLMayHaveExtendedAttributesKey => + objc.NSString.fromPointer( + _NSURLMayHaveExtendedAttributesKey, + retain: true, + release: true, + ); + +set NSURLMayHaveExtendedAttributesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLMayHaveExtendedAttributesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLMayHaveExtendedAttributesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLMayShareFileContentKey') +external NSURLResourceKey _NSURLMayShareFileContentKey; + +DartNSURLResourceKey get NSURLMayShareFileContentKey => + objc.NSString.fromPointer( + _NSURLMayShareFileContentKey, + retain: true, + release: true, + ); + +set NSURLMayShareFileContentKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLMayShareFileContentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLMayShareFileContentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLNameKey') +external NSURLResourceKey _NSURLNameKey; + +DartNSURLResourceKey get NSURLNameKey => + objc.NSString.fromPointer(_NSURLNameKey, retain: true, release: true); + +set NSURLNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLParentDirectoryURLKey') +external NSURLResourceKey _NSURLParentDirectoryURLKey; + +DartNSURLResourceKey get NSURLParentDirectoryURLKey => + objc.NSString.fromPointer( + _NSURLParentDirectoryURLKey, + retain: true, + release: true, + ); + +set NSURLParentDirectoryURLKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLParentDirectoryURLKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLParentDirectoryURLKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLPathKey') +external NSURLResourceKey _NSURLPathKey; + +DartNSURLResourceKey get NSURLPathKey => + objc.NSString.fromPointer(_NSURLPathKey, retain: true, release: true); + +set NSURLPathKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLPathKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLPathKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLPreferredIOBlockSizeKey') +external NSURLResourceKey _NSURLPreferredIOBlockSizeKey; + +DartNSURLResourceKey get NSURLPreferredIOBlockSizeKey => + objc.NSString.fromPointer( + _NSURLPreferredIOBlockSizeKey, + retain: true, + release: true, + ); + +set NSURLPreferredIOBlockSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLPreferredIOBlockSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLPreferredIOBlockSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSURLProtectionSpaceFTP') +external ffi.Pointer _NSURLProtectionSpaceFTP; + +objc.NSString get NSURLProtectionSpaceFTP => objc.NSString.fromPointer( + _NSURLProtectionSpaceFTP, + retain: true, + release: true, +); + +set NSURLProtectionSpaceFTP(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceFTP, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceFTP = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceFTPProxy', +) +external ffi.Pointer _NSURLProtectionSpaceFTPProxy; + +objc.NSString get NSURLProtectionSpaceFTPProxy => objc.NSString.fromPointer( + _NSURLProtectionSpaceFTPProxy, + retain: true, + release: true, +); + +set NSURLProtectionSpaceFTPProxy(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceFTPProxy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceFTPProxy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceHTTP', +) +external ffi.Pointer _NSURLProtectionSpaceHTTP; + +objc.NSString get NSURLProtectionSpaceHTTP => objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTP, + retain: true, + release: true, +); + +set NSURLProtectionSpaceHTTP(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTP, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceHTTP = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceHTTPProxy', +) +external ffi.Pointer _NSURLProtectionSpaceHTTPProxy; + +objc.NSString get NSURLProtectionSpaceHTTPProxy => objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPProxy, + retain: true, + release: true, +); + +set NSURLProtectionSpaceHTTPProxy(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPProxy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceHTTPProxy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceHTTPS', +) +external ffi.Pointer _NSURLProtectionSpaceHTTPS; + +objc.NSString get NSURLProtectionSpaceHTTPS => objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPS, + retain: true, + release: true, +); + +set NSURLProtectionSpaceHTTPS(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPS, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceHTTPS = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceHTTPSProxy', +) +external ffi.Pointer _NSURLProtectionSpaceHTTPSProxy; + +objc.NSString get NSURLProtectionSpaceHTTPSProxy => objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPSProxy, + retain: true, + release: true, +); + +set NSURLProtectionSpaceHTTPSProxy(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPSProxy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceHTTPSProxy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceSOCKSProxy', +) +external ffi.Pointer _NSURLProtectionSpaceSOCKSProxy; + +objc.NSString get NSURLProtectionSpaceSOCKSProxy => objc.NSString.fromPointer( + _NSURLProtectionSpaceSOCKSProxy, + retain: true, + release: true, +); + +set NSURLProtectionSpaceSOCKSProxy(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceSOCKSProxy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceSOCKSProxy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLQuarantinePropertiesKey') +external NSURLResourceKey _NSURLQuarantinePropertiesKey; + +DartNSURLResourceKey get NSURLQuarantinePropertiesKey => + objc.NSString.fromPointer( + _NSURLQuarantinePropertiesKey, + retain: true, + release: true, + ); + +set NSURLQuarantinePropertiesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLQuarantinePropertiesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLQuarantinePropertiesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLSessionDownloadTaskResumeData', +) +external ffi.Pointer _NSURLSessionDownloadTaskResumeData; + +objc.NSString get NSURLSessionDownloadTaskResumeData => + objc.NSString.fromPointer( + _NSURLSessionDownloadTaskResumeData, + retain: true, + release: true, + ); + +set NSURLSessionDownloadTaskResumeData(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLSessionDownloadTaskResumeData, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLSessionDownloadTaskResumeData = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final double NSURLSessionTaskPriorityDefault; + +@ffi.Native() +external final double NSURLSessionTaskPriorityHigh; + +@ffi.Native() +external final double NSURLSessionTaskPriorityLow; + +@ffi.Native() +external final int NSURLSessionTransferSizeUnknown; + +@ffi.Native>( + symbol: 'NSURLSessionUploadTaskResumeData', +) +external ffi.Pointer _NSURLSessionUploadTaskResumeData; + +objc.NSString get NSURLSessionUploadTaskResumeData => objc.NSString.fromPointer( + _NSURLSessionUploadTaskResumeData, + retain: true, + release: true, +); + +set NSURLSessionUploadTaskResumeData(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLSessionUploadTaskResumeData, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLSessionUploadTaskResumeData = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLTagNamesKey') +external NSURLResourceKey _NSURLTagNamesKey; + +DartNSURLResourceKey get NSURLTagNamesKey => + objc.NSString.fromPointer(_NSURLTagNamesKey, retain: true, release: true); + +set NSURLTagNamesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLTagNamesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLTagNamesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLThumbnailDictionaryKey') +external NSURLResourceKey _NSURLThumbnailDictionaryKey; + +DartNSURLResourceKey get NSURLThumbnailDictionaryKey => + objc.NSString.fromPointer( + _NSURLThumbnailDictionaryKey, + retain: true, + release: true, + ); + +set NSURLThumbnailDictionaryKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLThumbnailDictionaryKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLThumbnailDictionaryKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLThumbnailKey') +external NSURLResourceKey _NSURLThumbnailKey; + +DartNSURLResourceKey get NSURLThumbnailKey => + objc.NSString.fromPointer(_NSURLThumbnailKey, retain: true, release: true); + +set NSURLThumbnailKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLThumbnailKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLThumbnailKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLTotalFileAllocatedSizeKey') +external NSURLResourceKey _NSURLTotalFileAllocatedSizeKey; + +DartNSURLResourceKey get NSURLTotalFileAllocatedSizeKey => + objc.NSString.fromPointer( + _NSURLTotalFileAllocatedSizeKey, + retain: true, + release: true, + ); + +set NSURLTotalFileAllocatedSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLTotalFileAllocatedSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLTotalFileAllocatedSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLTotalFileSizeKey') +external NSURLResourceKey _NSURLTotalFileSizeKey; + +DartNSURLResourceKey get NSURLTotalFileSizeKey => objc.NSString.fromPointer( + _NSURLTotalFileSizeKey, + retain: true, + release: true, +); + +set NSURLTotalFileSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLTotalFileSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLTotalFileSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLTypeIdentifierKey') +external NSURLResourceKey _NSURLTypeIdentifierKey; + +DartNSURLResourceKey get NSURLTypeIdentifierKey => objc.NSString.fromPointer( + _NSURLTypeIdentifierKey, + retain: true, + release: true, +); + +set NSURLTypeIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLTypeIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLTypeIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemContainerDisplayNameKey', +) +external NSURLResourceKey _NSURLUbiquitousItemContainerDisplayNameKey; + +DartNSURLResourceKey get NSURLUbiquitousItemContainerDisplayNameKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemContainerDisplayNameKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemContainerDisplayNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemContainerDisplayNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemContainerDisplayNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadRequestedKey') +external NSURLResourceKey _NSURLUbiquitousItemDownloadRequestedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemDownloadRequestedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadRequestedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemDownloadRequestedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadRequestedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadRequestedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadingErrorKey') +external NSURLResourceKey _NSURLUbiquitousItemDownloadingErrorKey; + +DartNSURLResourceKey get NSURLUbiquitousItemDownloadingErrorKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingErrorKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemDownloadingErrorKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadingErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemDownloadingStatusCurrent', +) +external NSURLUbiquitousItemDownloadingStatus +_NSURLUbiquitousItemDownloadingStatusCurrent; + +DartNSURLUbiquitousItemDownloadingStatus +get NSURLUbiquitousItemDownloadingStatusCurrent => objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusCurrent, + retain: true, + release: true, +); + +set NSURLUbiquitousItemDownloadingStatusCurrent( + DartNSURLUbiquitousItemDownloadingStatus value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusCurrent, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadingStatusCurrent = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemDownloadingStatusDownloaded', +) +external NSURLUbiquitousItemDownloadingStatus +_NSURLUbiquitousItemDownloadingStatusDownloaded; + +DartNSURLUbiquitousItemDownloadingStatus +get NSURLUbiquitousItemDownloadingStatusDownloaded => objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusDownloaded, + retain: true, + release: true, +); + +set NSURLUbiquitousItemDownloadingStatusDownloaded( + DartNSURLUbiquitousItemDownloadingStatus value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusDownloaded, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadingStatusDownloaded = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadingStatusKey') +external NSURLResourceKey _NSURLUbiquitousItemDownloadingStatusKey; + +DartNSURLResourceKey get NSURLUbiquitousItemDownloadingStatusKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemDownloadingStatusKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadingStatusKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemDownloadingStatusNotDownloaded', +) +external NSURLUbiquitousItemDownloadingStatus +_NSURLUbiquitousItemDownloadingStatusNotDownloaded; + +DartNSURLUbiquitousItemDownloadingStatus +get NSURLUbiquitousItemDownloadingStatusNotDownloaded => + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusNotDownloaded, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemDownloadingStatusNotDownloaded( + DartNSURLUbiquitousItemDownloadingStatus value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusNotDownloaded, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadingStatusNotDownloaded = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemHasUnresolvedConflictsKey', +) +external NSURLResourceKey _NSURLUbiquitousItemHasUnresolvedConflictsKey; + +DartNSURLResourceKey get NSURLUbiquitousItemHasUnresolvedConflictsKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemHasUnresolvedConflictsKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemHasUnresolvedConflictsKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemHasUnresolvedConflictsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemHasUnresolvedConflictsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsDownloadedKey') +external NSURLResourceKey _NSURLUbiquitousItemIsDownloadedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsDownloadedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsDownloadedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsDownloadedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsDownloadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsDownloadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsDownloadingKey') +external NSURLResourceKey _NSURLUbiquitousItemIsDownloadingKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsDownloadingKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsDownloadingKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsDownloadingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsDownloadingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsDownloadingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemIsExcludedFromSyncKey', +) +external NSURLResourceKey _NSURLUbiquitousItemIsExcludedFromSyncKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsExcludedFromSyncKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsExcludedFromSyncKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsExcludedFromSyncKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsExcludedFromSyncKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsExcludedFromSyncKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsSharedKey') +external NSURLResourceKey _NSURLUbiquitousItemIsSharedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsSharedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsSharedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsSharedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsSharedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsSharedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsSyncPausedKey') +external NSURLResourceKey _NSURLUbiquitousItemIsSyncPausedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsSyncPausedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsSyncPausedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsSyncPausedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsSyncPausedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsSyncPausedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsUploadedKey') +external NSURLResourceKey _NSURLUbiquitousItemIsUploadedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsUploadedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsUploadedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsUploadedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsUploadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsUploadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsUploadingKey') +external NSURLResourceKey _NSURLUbiquitousItemIsUploadingKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsUploadingKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsUploadingKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsUploadingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsUploadingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsUploadingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemPercentDownloadedKey') +external NSURLResourceKey _NSURLUbiquitousItemPercentDownloadedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemPercentDownloadedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemPercentDownloadedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemPercentDownloadedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemPercentDownloadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemPercentDownloadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemPercentUploadedKey') +external NSURLResourceKey _NSURLUbiquitousItemPercentUploadedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemPercentUploadedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemPercentUploadedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemPercentUploadedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemPercentUploadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemPercentUploadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemSupportedSyncControlsKey', +) +external NSURLResourceKey _NSURLUbiquitousItemSupportedSyncControlsKey; + +DartNSURLResourceKey get NSURLUbiquitousItemSupportedSyncControlsKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemSupportedSyncControlsKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemSupportedSyncControlsKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemSupportedSyncControlsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemSupportedSyncControlsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemUploadingErrorKey') +external NSURLResourceKey _NSURLUbiquitousItemUploadingErrorKey; + +DartNSURLResourceKey get NSURLUbiquitousItemUploadingErrorKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemUploadingErrorKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemUploadingErrorKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemUploadingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemUploadingErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemCurrentUserPermissionsKey', +) +external NSURLResourceKey _NSURLUbiquitousSharedItemCurrentUserPermissionsKey; + +DartNSURLResourceKey get NSURLUbiquitousSharedItemCurrentUserPermissionsKey => + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemCurrentUserPermissionsKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousSharedItemCurrentUserPermissionsKey( + DartNSURLResourceKey value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemCurrentUserPermissionsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemCurrentUserPermissionsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemCurrentUserRoleKey', +) +external NSURLResourceKey _NSURLUbiquitousSharedItemCurrentUserRoleKey; + +DartNSURLResourceKey get NSURLUbiquitousSharedItemCurrentUserRoleKey => + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemCurrentUserRoleKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousSharedItemCurrentUserRoleKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemCurrentUserRoleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemCurrentUserRoleKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey', +) +external NSURLResourceKey +_NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey; + +DartNSURLResourceKey +get NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey => + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey( + DartNSURLResourceKey value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemOwnerNameComponentsKey', +) +external NSURLResourceKey _NSURLUbiquitousSharedItemOwnerNameComponentsKey; + +DartNSURLResourceKey get NSURLUbiquitousSharedItemOwnerNameComponentsKey => + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemOwnerNameComponentsKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousSharedItemOwnerNameComponentsKey( + DartNSURLResourceKey value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemOwnerNameComponentsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemOwnerNameComponentsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemPermissionsReadOnly', +) +external NSURLUbiquitousSharedItemPermissions +_NSURLUbiquitousSharedItemPermissionsReadOnly; + +DartNSURLUbiquitousSharedItemPermissions +get NSURLUbiquitousSharedItemPermissionsReadOnly => objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemPermissionsReadOnly, + retain: true, + release: true, +); + +set NSURLUbiquitousSharedItemPermissionsReadOnly( + DartNSURLUbiquitousSharedItemPermissions value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemPermissionsReadOnly, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemPermissionsReadOnly = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemPermissionsReadWrite', +) +external NSURLUbiquitousSharedItemPermissions +_NSURLUbiquitousSharedItemPermissionsReadWrite; + +DartNSURLUbiquitousSharedItemPermissions +get NSURLUbiquitousSharedItemPermissionsReadWrite => objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemPermissionsReadWrite, + retain: true, + release: true, +); + +set NSURLUbiquitousSharedItemPermissionsReadWrite( + DartNSURLUbiquitousSharedItemPermissions value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemPermissionsReadWrite, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemPermissionsReadWrite = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemRoleOwner', +) +external NSURLUbiquitousSharedItemRole _NSURLUbiquitousSharedItemRoleOwner; + +DartNSURLUbiquitousSharedItemRole get NSURLUbiquitousSharedItemRoleOwner => + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemRoleOwner, + retain: true, + release: true, + ); + +set NSURLUbiquitousSharedItemRoleOwner( + DartNSURLUbiquitousSharedItemRole value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemRoleOwner, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemRoleOwner = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemRoleParticipant', +) +external NSURLUbiquitousSharedItemRole +_NSURLUbiquitousSharedItemRoleParticipant; + +DartNSURLUbiquitousSharedItemRole +get NSURLUbiquitousSharedItemRoleParticipant => objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemRoleParticipant, + retain: true, + release: true, +); + +set NSURLUbiquitousSharedItemRoleParticipant( + DartNSURLUbiquitousSharedItemRole value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemRoleParticipant, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemRoleParticipant = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeAvailableCapacityForImportantUsageKey', +) +external NSURLResourceKey _NSURLVolumeAvailableCapacityForImportantUsageKey; + +DartNSURLResourceKey get NSURLVolumeAvailableCapacityForImportantUsageKey => + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityForImportantUsageKey, + retain: true, + release: true, + ); + +set NSURLVolumeAvailableCapacityForImportantUsageKey( + DartNSURLResourceKey value, +) { + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityForImportantUsageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeAvailableCapacityForImportantUsageKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeAvailableCapacityForOpportunisticUsageKey', +) +external NSURLResourceKey _NSURLVolumeAvailableCapacityForOpportunisticUsageKey; + +DartNSURLResourceKey get NSURLVolumeAvailableCapacityForOpportunisticUsageKey => + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityForOpportunisticUsageKey, + retain: true, + release: true, + ); + +set NSURLVolumeAvailableCapacityForOpportunisticUsageKey( + DartNSURLResourceKey value, +) { + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityForOpportunisticUsageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeAvailableCapacityForOpportunisticUsageKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeAvailableCapacityKey') +external NSURLResourceKey _NSURLVolumeAvailableCapacityKey; + +DartNSURLResourceKey get NSURLVolumeAvailableCapacityKey => + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityKey, + retain: true, + release: true, + ); + +set NSURLVolumeAvailableCapacityKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeAvailableCapacityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeCreationDateKey') +external NSURLResourceKey _NSURLVolumeCreationDateKey; + +DartNSURLResourceKey get NSURLVolumeCreationDateKey => + objc.NSString.fromPointer( + _NSURLVolumeCreationDateKey, + retain: true, + release: true, + ); + +set NSURLVolumeCreationDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeCreationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeCreationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIdentifierKey') +external NSURLResourceKey _NSURLVolumeIdentifierKey; + +DartNSURLResourceKey get NSURLVolumeIdentifierKey => objc.NSString.fromPointer( + _NSURLVolumeIdentifierKey, + retain: true, + release: true, +); + +set NSURLVolumeIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsAutomountedKey') +external NSURLResourceKey _NSURLVolumeIsAutomountedKey; + +DartNSURLResourceKey get NSURLVolumeIsAutomountedKey => + objc.NSString.fromPointer( + _NSURLVolumeIsAutomountedKey, + retain: true, + release: true, + ); + +set NSURLVolumeIsAutomountedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsAutomountedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsAutomountedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsBrowsableKey') +external NSURLResourceKey _NSURLVolumeIsBrowsableKey; + +DartNSURLResourceKey get NSURLVolumeIsBrowsableKey => objc.NSString.fromPointer( + _NSURLVolumeIsBrowsableKey, + retain: true, + release: true, +); + +set NSURLVolumeIsBrowsableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsBrowsableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsBrowsableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsEjectableKey') +external NSURLResourceKey _NSURLVolumeIsEjectableKey; + +DartNSURLResourceKey get NSURLVolumeIsEjectableKey => objc.NSString.fromPointer( + _NSURLVolumeIsEjectableKey, + retain: true, + release: true, +); + +set NSURLVolumeIsEjectableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsEjectableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsEjectableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsEncryptedKey') +external NSURLResourceKey _NSURLVolumeIsEncryptedKey; + +DartNSURLResourceKey get NSURLVolumeIsEncryptedKey => objc.NSString.fromPointer( + _NSURLVolumeIsEncryptedKey, + retain: true, + release: true, +); + +set NSURLVolumeIsEncryptedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsEncryptedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsEncryptedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsInternalKey') +external NSURLResourceKey _NSURLVolumeIsInternalKey; + +DartNSURLResourceKey get NSURLVolumeIsInternalKey => objc.NSString.fromPointer( + _NSURLVolumeIsInternalKey, + retain: true, + release: true, +); + +set NSURLVolumeIsInternalKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsInternalKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsInternalKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsJournalingKey') +external NSURLResourceKey _NSURLVolumeIsJournalingKey; + +DartNSURLResourceKey get NSURLVolumeIsJournalingKey => + objc.NSString.fromPointer( + _NSURLVolumeIsJournalingKey, + retain: true, + release: true, + ); + +set NSURLVolumeIsJournalingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsJournalingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsJournalingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsLocalKey') +external NSURLResourceKey _NSURLVolumeIsLocalKey; + +DartNSURLResourceKey get NSURLVolumeIsLocalKey => objc.NSString.fromPointer( + _NSURLVolumeIsLocalKey, + retain: true, + release: true, +); + +set NSURLVolumeIsLocalKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsLocalKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsLocalKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsReadOnlyKey') +external NSURLResourceKey _NSURLVolumeIsReadOnlyKey; + +DartNSURLResourceKey get NSURLVolumeIsReadOnlyKey => objc.NSString.fromPointer( + _NSURLVolumeIsReadOnlyKey, + retain: true, + release: true, +); + +set NSURLVolumeIsReadOnlyKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsReadOnlyKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsReadOnlyKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsRemovableKey') +external NSURLResourceKey _NSURLVolumeIsRemovableKey; + +DartNSURLResourceKey get NSURLVolumeIsRemovableKey => objc.NSString.fromPointer( + _NSURLVolumeIsRemovableKey, + retain: true, + release: true, +); + +set NSURLVolumeIsRemovableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsRemovableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsRemovableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsRootFileSystemKey') +external NSURLResourceKey _NSURLVolumeIsRootFileSystemKey; + +DartNSURLResourceKey get NSURLVolumeIsRootFileSystemKey => + objc.NSString.fromPointer( + _NSURLVolumeIsRootFileSystemKey, + retain: true, + release: true, + ); + +set NSURLVolumeIsRootFileSystemKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsRootFileSystemKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsRootFileSystemKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeLocalizedFormatDescriptionKey', +) +external NSURLResourceKey _NSURLVolumeLocalizedFormatDescriptionKey; + +DartNSURLResourceKey get NSURLVolumeLocalizedFormatDescriptionKey => + objc.NSString.fromPointer( + _NSURLVolumeLocalizedFormatDescriptionKey, + retain: true, + release: true, + ); + +set NSURLVolumeLocalizedFormatDescriptionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeLocalizedFormatDescriptionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeLocalizedFormatDescriptionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeLocalizedNameKey') +external NSURLResourceKey _NSURLVolumeLocalizedNameKey; + +DartNSURLResourceKey get NSURLVolumeLocalizedNameKey => + objc.NSString.fromPointer( + _NSURLVolumeLocalizedNameKey, + retain: true, + release: true, + ); + +set NSURLVolumeLocalizedNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeLocalizedNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeLocalizedNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeMaximumFileSizeKey') +external NSURLResourceKey _NSURLVolumeMaximumFileSizeKey; + +DartNSURLResourceKey get NSURLVolumeMaximumFileSizeKey => + objc.NSString.fromPointer( + _NSURLVolumeMaximumFileSizeKey, + retain: true, + release: true, + ); + +set NSURLVolumeMaximumFileSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeMaximumFileSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeMaximumFileSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeMountFromLocationKey') +external NSURLResourceKey _NSURLVolumeMountFromLocationKey; + +DartNSURLResourceKey get NSURLVolumeMountFromLocationKey => + objc.NSString.fromPointer( + _NSURLVolumeMountFromLocationKey, + retain: true, + release: true, + ); + +set NSURLVolumeMountFromLocationKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeMountFromLocationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeMountFromLocationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeNameKey') +external NSURLResourceKey _NSURLVolumeNameKey; + +DartNSURLResourceKey get NSURLVolumeNameKey => + objc.NSString.fromPointer(_NSURLVolumeNameKey, retain: true, release: true); + +set NSURLVolumeNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeResourceCountKey') +external NSURLResourceKey _NSURLVolumeResourceCountKey; + +DartNSURLResourceKey get NSURLVolumeResourceCountKey => + objc.NSString.fromPointer( + _NSURLVolumeResourceCountKey, + retain: true, + release: true, + ); + +set NSURLVolumeResourceCountKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeResourceCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeResourceCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSubtypeKey') +external NSURLResourceKey _NSURLVolumeSubtypeKey; + +DartNSURLResourceKey get NSURLVolumeSubtypeKey => objc.NSString.fromPointer( + _NSURLVolumeSubtypeKey, + retain: true, + release: true, +); + +set NSURLVolumeSubtypeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSubtypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSubtypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsAccessPermissionsKey') +external NSURLResourceKey _NSURLVolumeSupportsAccessPermissionsKey; + +DartNSURLResourceKey get NSURLVolumeSupportsAccessPermissionsKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsAccessPermissionsKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsAccessPermissionsKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsAccessPermissionsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsAccessPermissionsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeSupportsAdvisoryFileLockingKey', +) +external NSURLResourceKey _NSURLVolumeSupportsAdvisoryFileLockingKey; + +DartNSURLResourceKey get NSURLVolumeSupportsAdvisoryFileLockingKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsAdvisoryFileLockingKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsAdvisoryFileLockingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsAdvisoryFileLockingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsAdvisoryFileLockingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeSupportsCasePreservedNamesKey', +) +external NSURLResourceKey _NSURLVolumeSupportsCasePreservedNamesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsCasePreservedNamesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsCasePreservedNamesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsCasePreservedNamesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsCasePreservedNamesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsCasePreservedNamesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeSupportsCaseSensitiveNamesKey', +) +external NSURLResourceKey _NSURLVolumeSupportsCaseSensitiveNamesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsCaseSensitiveNamesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsCaseSensitiveNamesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsCaseSensitiveNamesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsCaseSensitiveNamesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsCaseSensitiveNamesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsCompressionKey') +external NSURLResourceKey _NSURLVolumeSupportsCompressionKey; + +DartNSURLResourceKey get NSURLVolumeSupportsCompressionKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsCompressionKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsCompressionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsCompressionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsCompressionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsExclusiveRenamingKey') +external NSURLResourceKey _NSURLVolumeSupportsExclusiveRenamingKey; + +DartNSURLResourceKey get NSURLVolumeSupportsExclusiveRenamingKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsExclusiveRenamingKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsExclusiveRenamingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsExclusiveRenamingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsExclusiveRenamingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsExtendedSecurityKey') +external NSURLResourceKey _NSURLVolumeSupportsExtendedSecurityKey; + +DartNSURLResourceKey get NSURLVolumeSupportsExtendedSecurityKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsExtendedSecurityKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsExtendedSecurityKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsExtendedSecurityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsExtendedSecurityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsFileCloningKey') +external NSURLResourceKey _NSURLVolumeSupportsFileCloningKey; + +DartNSURLResourceKey get NSURLVolumeSupportsFileCloningKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsFileCloningKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsFileCloningKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsFileCloningKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsFileCloningKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsFileProtectionKey') +external NSURLResourceKey _NSURLVolumeSupportsFileProtectionKey; + +DartNSURLResourceKey get NSURLVolumeSupportsFileProtectionKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsFileProtectionKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsFileProtectionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsFileProtectionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsFileProtectionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsHardLinksKey') +external NSURLResourceKey _NSURLVolumeSupportsHardLinksKey; + +DartNSURLResourceKey get NSURLVolumeSupportsHardLinksKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsHardLinksKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsHardLinksKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsHardLinksKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsHardLinksKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsImmutableFilesKey') +external NSURLResourceKey _NSURLVolumeSupportsImmutableFilesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsImmutableFilesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsImmutableFilesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsImmutableFilesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsImmutableFilesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsImmutableFilesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsJournalingKey') +external NSURLResourceKey _NSURLVolumeSupportsJournalingKey; + +DartNSURLResourceKey get NSURLVolumeSupportsJournalingKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsJournalingKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsJournalingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsJournalingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsJournalingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsPersistentIDsKey') +external NSURLResourceKey _NSURLVolumeSupportsPersistentIDsKey; + +DartNSURLResourceKey get NSURLVolumeSupportsPersistentIDsKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsPersistentIDsKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsPersistentIDsKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsPersistentIDsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsPersistentIDsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsRenamingKey') +external NSURLResourceKey _NSURLVolumeSupportsRenamingKey; + +DartNSURLResourceKey get NSURLVolumeSupportsRenamingKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsRenamingKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsRenamingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsRenamingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsRenamingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeSupportsRootDirectoryDatesKey', +) +external NSURLResourceKey _NSURLVolumeSupportsRootDirectoryDatesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsRootDirectoryDatesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsRootDirectoryDatesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsRootDirectoryDatesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsRootDirectoryDatesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsRootDirectoryDatesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsSparseFilesKey') +external NSURLResourceKey _NSURLVolumeSupportsSparseFilesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsSparseFilesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsSparseFilesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsSparseFilesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsSparseFilesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsSparseFilesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsSwapRenamingKey') +external NSURLResourceKey _NSURLVolumeSupportsSwapRenamingKey; + +DartNSURLResourceKey get NSURLVolumeSupportsSwapRenamingKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsSwapRenamingKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsSwapRenamingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsSwapRenamingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsSwapRenamingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsSymbolicLinksKey') +external NSURLResourceKey _NSURLVolumeSupportsSymbolicLinksKey; + +DartNSURLResourceKey get NSURLVolumeSupportsSymbolicLinksKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsSymbolicLinksKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsSymbolicLinksKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsSymbolicLinksKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsSymbolicLinksKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsVolumeSizesKey') +external NSURLResourceKey _NSURLVolumeSupportsVolumeSizesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsVolumeSizesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsVolumeSizesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsVolumeSizesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsVolumeSizesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsVolumeSizesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsZeroRunsKey') +external NSURLResourceKey _NSURLVolumeSupportsZeroRunsKey; + +DartNSURLResourceKey get NSURLVolumeSupportsZeroRunsKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsZeroRunsKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsZeroRunsKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsZeroRunsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsZeroRunsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeTotalCapacityKey') +external NSURLResourceKey _NSURLVolumeTotalCapacityKey; + +DartNSURLResourceKey get NSURLVolumeTotalCapacityKey => + objc.NSString.fromPointer( + _NSURLVolumeTotalCapacityKey, + retain: true, + release: true, + ); + +set NSURLVolumeTotalCapacityKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeTotalCapacityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeTotalCapacityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeTypeNameKey') +external NSURLResourceKey _NSURLVolumeTypeNameKey; + +DartNSURLResourceKey get NSURLVolumeTypeNameKey => objc.NSString.fromPointer( + _NSURLVolumeTypeNameKey, + retain: true, + release: true, +); + +set NSURLVolumeTypeNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeTypeNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeTypeNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeURLForRemountingKey') +external NSURLResourceKey _NSURLVolumeURLForRemountingKey; + +DartNSURLResourceKey get NSURLVolumeURLForRemountingKey => + objc.NSString.fromPointer( + _NSURLVolumeURLForRemountingKey, + retain: true, + release: true, + ); + +set NSURLVolumeURLForRemountingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeURLForRemountingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeURLForRemountingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeURLKey') +external NSURLResourceKey _NSURLVolumeURLKey; + +DartNSURLResourceKey get NSURLVolumeURLKey => + objc.NSString.fromPointer(_NSURLVolumeURLKey, retain: true, release: true); + +set NSURLVolumeURLKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeURLKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeURLKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeUUIDStringKey') +external NSURLResourceKey _NSURLVolumeUUIDStringKey; + +DartNSURLResourceKey get NSURLVolumeUUIDStringKey => objc.NSString.fromPointer( + _NSURLVolumeUUIDStringKey, + retain: true, + release: true, +); + +set NSURLVolumeUUIDStringKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeUUIDStringKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeUUIDStringKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSUbiquitousKeyValueStoreChangeReasonKey', +) +external ffi.Pointer +_NSUbiquitousKeyValueStoreChangeReasonKey; + +objc.NSString get NSUbiquitousKeyValueStoreChangeReasonKey => + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreChangeReasonKey, + retain: true, + release: true, + ); + +set NSUbiquitousKeyValueStoreChangeReasonKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreChangeReasonKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousKeyValueStoreChangeReasonKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSUbiquitousKeyValueStoreChangedKeysKey', +) +external ffi.Pointer +_NSUbiquitousKeyValueStoreChangedKeysKey; + +objc.NSString get NSUbiquitousKeyValueStoreChangedKeysKey => + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreChangedKeysKey, + retain: true, + release: true, + ); + +set NSUbiquitousKeyValueStoreChangedKeysKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreChangedKeysKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousKeyValueStoreChangedKeysKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUbiquitousKeyValueStoreDidChangeExternallyNotification', +) +external NSNotificationName +_NSUbiquitousKeyValueStoreDidChangeExternallyNotification; + +DartNSNotificationName +get NSUbiquitousKeyValueStoreDidChangeExternallyNotification => + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreDidChangeExternallyNotification, + retain: true, + release: true, + ); + +set NSUbiquitousKeyValueStoreDidChangeExternallyNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreDidChangeExternallyNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousKeyValueStoreDidChangeExternallyNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUbiquitousUserDefaultsCompletedInitialSyncNotification', +) +external NSNotificationName +_NSUbiquitousUserDefaultsCompletedInitialSyncNotification; + +DartNSNotificationName +get NSUbiquitousUserDefaultsCompletedInitialSyncNotification => + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsCompletedInitialSyncNotification, + retain: true, + release: true, + ); + +set NSUbiquitousUserDefaultsCompletedInitialSyncNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsCompletedInitialSyncNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousUserDefaultsCompletedInitialSyncNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUbiquitousUserDefaultsDidChangeAccountsNotification', +) +external NSNotificationName +_NSUbiquitousUserDefaultsDidChangeAccountsNotification; + +DartNSNotificationName +get NSUbiquitousUserDefaultsDidChangeAccountsNotification => + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsDidChangeAccountsNotification, + retain: true, + release: true, + ); + +set NSUbiquitousUserDefaultsDidChangeAccountsNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsDidChangeAccountsNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousUserDefaultsDidChangeAccountsNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUbiquitousUserDefaultsNoCloudAccountNotification', +) +external NSNotificationName _NSUbiquitousUserDefaultsNoCloudAccountNotification; + +DartNSNotificationName get NSUbiquitousUserDefaultsNoCloudAccountNotification => + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsNoCloudAccountNotification, + retain: true, + release: true, + ); + +set NSUbiquitousUserDefaultsNoCloudAccountNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsNoCloudAccountNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousUserDefaultsNoCloudAccountNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUbiquityIdentityDidChangeNotification', +) +external NSNotificationName _NSUbiquityIdentityDidChangeNotification; + +DartNSNotificationName get NSUbiquityIdentityDidChangeNotification => + objc.NSString.fromPointer( + _NSUbiquityIdentityDidChangeNotification, + retain: true, + release: true, + ); + +set NSUbiquityIdentityDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUbiquityIdentityDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquityIdentityDidChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUnarchiveFromDataTransformerName', +) +external NSValueTransformerName _NSUnarchiveFromDataTransformerName; + +DartNSValueTransformerName get NSUnarchiveFromDataTransformerName => + objc.NSString.fromPointer( + _NSUnarchiveFromDataTransformerName, + retain: true, + release: true, + ); + +set NSUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSUnarchiveFromDataTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUndefinedKeyException') +external NSExceptionName _NSUndefinedKeyException; + +DartNSExceptionName get NSUndefinedKeyException => objc.NSString.fromPointer( + _NSUndefinedKeyException, + retain: true, + release: true, +); + +set NSUndefinedKeyException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSUndefinedKeyException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndefinedKeyException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUnderlyingErrorKey') +external NSErrorUserInfoKey _NSUnderlyingErrorKey; + +DartNSErrorUserInfoKey get NSUnderlyingErrorKey => objc.NSString.fromPointer( + _NSUnderlyingErrorKey, + retain: true, + release: true, +); + +set NSUnderlyingErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSUnderlyingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUnderlyingErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUndoManagerCheckpointNotification') +external NSNotificationName _NSUndoManagerCheckpointNotification; + +DartNSNotificationName get NSUndoManagerCheckpointNotification => + objc.NSString.fromPointer( + _NSUndoManagerCheckpointNotification, + retain: true, + release: true, + ); + +set NSUndoManagerCheckpointNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerCheckpointNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerCheckpointNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerDidCloseUndoGroupNotification', +) +external NSNotificationName _NSUndoManagerDidCloseUndoGroupNotification; + +DartNSNotificationName get NSUndoManagerDidCloseUndoGroupNotification => + objc.NSString.fromPointer( + _NSUndoManagerDidCloseUndoGroupNotification, + retain: true, + release: true, + ); + +set NSUndoManagerDidCloseUndoGroupNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerDidCloseUndoGroupNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerDidCloseUndoGroupNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerDidOpenUndoGroupNotification', +) +external NSNotificationName _NSUndoManagerDidOpenUndoGroupNotification; + +DartNSNotificationName get NSUndoManagerDidOpenUndoGroupNotification => + objc.NSString.fromPointer( + _NSUndoManagerDidOpenUndoGroupNotification, + retain: true, + release: true, + ); + +set NSUndoManagerDidOpenUndoGroupNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerDidOpenUndoGroupNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerDidOpenUndoGroupNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerDidRedoChangeNotification', +) +external NSNotificationName _NSUndoManagerDidRedoChangeNotification; + +DartNSNotificationName get NSUndoManagerDidRedoChangeNotification => + objc.NSString.fromPointer( + _NSUndoManagerDidRedoChangeNotification, + retain: true, + release: true, + ); + +set NSUndoManagerDidRedoChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerDidRedoChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerDidRedoChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerDidUndoChangeNotification', +) +external NSNotificationName _NSUndoManagerDidUndoChangeNotification; + +DartNSNotificationName get NSUndoManagerDidUndoChangeNotification => + objc.NSString.fromPointer( + _NSUndoManagerDidUndoChangeNotification, + retain: true, + release: true, + ); + +set NSUndoManagerDidUndoChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerDidUndoChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerDidUndoChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSUndoManagerGroupIsDiscardableKey', +) +external ffi.Pointer _NSUndoManagerGroupIsDiscardableKey; + +objc.NSString get NSUndoManagerGroupIsDiscardableKey => + objc.NSString.fromPointer( + _NSUndoManagerGroupIsDiscardableKey, + retain: true, + release: true, + ); + +set NSUndoManagerGroupIsDiscardableKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSUndoManagerGroupIsDiscardableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerGroupIsDiscardableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerWillCloseUndoGroupNotification', +) +external NSNotificationName _NSUndoManagerWillCloseUndoGroupNotification; + +DartNSNotificationName get NSUndoManagerWillCloseUndoGroupNotification => + objc.NSString.fromPointer( + _NSUndoManagerWillCloseUndoGroupNotification, + retain: true, + release: true, + ); + +set NSUndoManagerWillCloseUndoGroupNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerWillCloseUndoGroupNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerWillCloseUndoGroupNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerWillRedoChangeNotification', +) +external NSNotificationName _NSUndoManagerWillRedoChangeNotification; + +DartNSNotificationName get NSUndoManagerWillRedoChangeNotification => + objc.NSString.fromPointer( + _NSUndoManagerWillRedoChangeNotification, + retain: true, + release: true, + ); + +set NSUndoManagerWillRedoChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerWillRedoChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerWillRedoChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerWillUndoChangeNotification', +) +external NSNotificationName _NSUndoManagerWillUndoChangeNotification; + +DartNSNotificationName get NSUndoManagerWillUndoChangeNotification => + objc.NSString.fromPointer( + _NSUndoManagerWillUndoChangeNotification, + retain: true, + release: true, + ); + +set NSUndoManagerWillUndoChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerWillUndoChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerWillUndoChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUnionOfArraysKeyValueOperator') +external NSKeyValueOperator _NSUnionOfArraysKeyValueOperator; + +DartNSKeyValueOperator get NSUnionOfArraysKeyValueOperator => + objc.NSString.fromPointer( + _NSUnionOfArraysKeyValueOperator, + retain: true, + release: true, + ); + +set NSUnionOfArraysKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSUnionOfArraysKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUnionOfArraysKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUnionOfObjectsKeyValueOperator') +external NSKeyValueOperator _NSUnionOfObjectsKeyValueOperator; + +DartNSKeyValueOperator get NSUnionOfObjectsKeyValueOperator => + objc.NSString.fromPointer( + _NSUnionOfObjectsKeyValueOperator, + retain: true, + release: true, + ); + +set NSUnionOfObjectsKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSUnionOfObjectsKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUnionOfObjectsKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUnionOfSetsKeyValueOperator') +external NSKeyValueOperator _NSUnionOfSetsKeyValueOperator; + +DartNSKeyValueOperator get NSUnionOfSetsKeyValueOperator => + objc.NSString.fromPointer( + _NSUnionOfSetsKeyValueOperator, + retain: true, + release: true, + ); + +set NSUnionOfSetsKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSUnionOfSetsKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUnionOfSetsKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external NSRange NSUnionRange(NSRange range1, NSRange range2); + +@ffi.Native() +external NSRect NSUnionRect(NSRect aRect, NSRect bRect); + +@ffi.Native>( + symbol: 'NSUserActivityTypeBrowsingWeb', +) +external ffi.Pointer _NSUserActivityTypeBrowsingWeb; + +objc.NSString get NSUserActivityTypeBrowsingWeb => objc.NSString.fromPointer( + _NSUserActivityTypeBrowsingWeb, + retain: true, + release: true, +); + +set NSUserActivityTypeBrowsingWeb(objc.NSString value) { + objc.NSString.fromPointer( + _NSUserActivityTypeBrowsingWeb, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUserActivityTypeBrowsingWeb = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUserDefaultsDidChangeNotification') +external NSNotificationName _NSUserDefaultsDidChangeNotification; + +DartNSNotificationName get NSUserDefaultsDidChangeNotification => + objc.NSString.fromPointer( + _NSUserDefaultsDidChangeNotification, + retain: true, + release: true, + ); + +set NSUserDefaultsDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUserDefaultsDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUserDefaultsDidChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUserDefaultsSizeLimitExceededNotification', +) +external NSNotificationName _NSUserDefaultsSizeLimitExceededNotification; + +DartNSNotificationName get NSUserDefaultsSizeLimitExceededNotification => + objc.NSString.fromPointer( + _NSUserDefaultsSizeLimitExceededNotification, + retain: true, + release: true, + ); + +set NSUserDefaultsSizeLimitExceededNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUserDefaultsSizeLimitExceededNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUserDefaultsSizeLimitExceededNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native Function()>(symbol: 'NSUserName') +external ffi.Pointer _NSUserName(); + +objc.NSString NSUserName() { + return objc.NSString.fromPointer(_NSUserName(), retain: true, release: true); +} + +@ffi.Native>( + symbol: 'NSUserNotificationDefaultSoundName', +) +external ffi.Pointer _NSUserNotificationDefaultSoundName; + +objc.NSString get NSUserNotificationDefaultSoundName => + objc.NSString.fromPointer( + _NSUserNotificationDefaultSoundName, + retain: true, + release: true, + ); + +set NSUserNotificationDefaultSoundName(objc.NSString value) { + objc.NSString.fromPointer( + _NSUserNotificationDefaultSoundName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUserNotificationDefaultSoundName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSWeekDayNameArray') +external ffi.Pointer _NSWeekDayNameArray; + +objc.NSString get NSWeekDayNameArray => + objc.NSString.fromPointer(_NSWeekDayNameArray, retain: true, release: true); + +set NSWeekDayNameArray(objc.NSString value) { + objc.NSString.fromPointer( + _NSWeekDayNameArray, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSWeekDayNameArray = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSWillBecomeMultiThreadedNotification') +external NSNotificationName _NSWillBecomeMultiThreadedNotification; + +DartNSNotificationName get NSWillBecomeMultiThreadedNotification => + objc.NSString.fromPointer( + _NSWillBecomeMultiThreadedNotification, + retain: true, + release: true, + ); + +set NSWillBecomeMultiThreadedNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSWillBecomeMultiThreadedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSWillBecomeMultiThreadedNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSXMLParserErrorDomain') +external NSErrorDomain _NSXMLParserErrorDomain; + +DartNSErrorDomain get NSXMLParserErrorDomain => objc.NSString.fromPointer( + _NSXMLParserErrorDomain, + retain: true, + release: true, +); + +set NSXMLParserErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSXMLParserErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSXMLParserErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSYearMonthWeekDesignations', +) +external ffi.Pointer _NSYearMonthWeekDesignations; + +objc.NSString get NSYearMonthWeekDesignations => objc.NSString.fromPointer( + _NSYearMonthWeekDesignations, + retain: true, + release: true, +); + +set NSYearMonthWeekDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSYearMonthWeekDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSYearMonthWeekDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final NSPoint NSZeroPoint; + +@ffi.Native() +external final NSRect NSZeroRect; + +@ffi.Native() +external final NSSize NSZeroSize; + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, NSUInteger, NSUInteger) +>() +external ffi.Pointer NSZoneCalloc( + ffi.Pointer zone, + int numElems, + int byteSize, +); + +@ffi.Native, ffi.Pointer)>() +external void NSZoneFree(ffi.Pointer zone, ffi.Pointer ptr); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer NSZoneFromPointer(ffi.Pointer ptr); + +@ffi.Native Function(ffi.Pointer, NSUInteger)>() +external ffi.Pointer NSZoneMalloc(ffi.Pointer zone, int size); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'NSZoneName', +) +external ffi.Pointer _NSZoneName(ffi.Pointer zone); + +objc.NSString NSZoneName(ffi.Pointer zone) { + return objc.NSString.fromPointer( + _NSZoneName(zone), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>() +external ffi.Pointer NSZoneRealloc( + ffi.Pointer zone, + ffi.Pointer ptr, + int size, +); + +@Deprecated('Not supported') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NXReadNSObjectFromCoder') +external ffi.Pointer _NXReadNSObjectFromCoder( + ffi.Pointer decoder, +); + +objc.NSObject? NXReadNSObjectFromCoder(objc.NSCoder decoder) { + final _$$ref = decoder.ref; + return _NXReadNSObjectFromCoder(_$$ref.pointer).address == 0 + ? null + : objc.NSObject.fromPointer( + _NXReadNSObjectFromCoder(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime NanosecondsToAbsolute(Nanoseconds nanoseconds); + +@Deprecated('Deprecated') +@ffi.Native() +external int NanosecondsToDuration(Nanoseconds theNanoseconds); + +@ffi.Native< + OSStatus Function( + TextEncoding, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int NearestMacTextEncodings( + int generalEncoding, + ffi.Pointer bestMacEncoding, + ffi.Pointer alternateMacEncoding, +); + +@ffi.Native() +external AECoerceDescUPP NewAECoerceDescUPP(AECoerceDescProcPtr userRoutine); + +@ffi.Native() +external AECoercePtrUPP NewAECoercePtrUPP(AECoercePtrProcPtr userRoutine); + +@ffi.Native() +external AEDisposeExternalUPP NewAEDisposeExternalUPP( + AEDisposeExternalProcPtr userRoutine, +); + +@ffi.Native() +external AEEventHandlerUPP NewAEEventHandlerUPP( + AEEventHandlerProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Collection NewCollection(); + +@Deprecated('Deprecated') +@ffi.Native() +external CollectionExceptionUPP NewCollectionExceptionUPP( + CollectionExceptionProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external CollectionFlattenUPP NewCollectionFlattenUPP( + CollectionFlattenProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external ComponentFunctionUPP NewComponentFunctionUPP( + ProcPtr userRoutine, + int procInfo, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentMPWorkFunctionUPP Function(ComponentMPWorkFunctionProcPtr) +>() +external ComponentMPWorkFunctionUPP NewComponentMPWorkFunctionUPP( + ComponentMPWorkFunctionProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external ComponentRoutineUPP NewComponentRoutineUPP( + ComponentRoutineProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native< + DebugAssertOutputHandlerUPP Function(DebugAssertOutputHandlerProcPtr) +>() +external DebugAssertOutputHandlerUPP NewDebugAssertOutputHandlerUPP( + DebugAssertOutputHandlerProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(OSType, ConstStr255Param, DebugComponentCallbackUPP) +>() +external int NewDebugComponent( + int componentSignature, + ConstStr255Param componentName, + DebugComponentCallbackUPP componentCallback, +); + +@Deprecated('Deprecated') +@ffi.Native() +external DebugComponentCallbackUPP NewDebugComponentCallbackUPP( + DebugComponentCallbackProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int NewDebugOption( + int componentSignature, + int optionSelectorNum, + ConstStr255Param optionName, +); + +@Deprecated('Deprecated') +@ffi.Native() +external DebuggerDisposeThreadUPP NewDebuggerDisposeThreadUPP( + DebuggerDisposeThreadProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external DebuggerNewThreadUPP NewDebuggerNewThreadUPP( + DebuggerNewThreadProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native< + DebuggerThreadSchedulerUPP Function(DebuggerThreadSchedulerProcPtr) +>() +external DebuggerThreadSchedulerUPP NewDebuggerThreadSchedulerUPP( + DebuggerThreadSchedulerProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external DeferredTaskUPP NewDeferredTaskUPP(DeferredTaskProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle NewEmptyHandle(); + +@Deprecated('No longer supported') +@ffi.Native() +external ExceptionHandlerUPP NewExceptionHandlerUPP( + ExceptionHandlerProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external FNSubscriptionUPP NewFNSubscriptionUPP( + FNSubscriptionProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external FSVolumeEjectUPP NewFSVolumeEjectUPP(FSVolumeEjectProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external FSVolumeMountUPP NewFSVolumeMountUPP(FSVolumeMountProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external FSVolumeUnmountUPP NewFSVolumeUnmountUPP( + FSVolumeUnmountProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native< + FolderManagerNotificationUPP Function(FolderManagerNotificationProcPtr) +>() +external FolderManagerNotificationUPP NewFolderManagerNotificationUPP( + FolderManagerNotificationProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int NewGestaltValue(int selector, int newValue); + +@Deprecated('Deprecated') +@ffi.Native< + GetMissingComponentResourceUPP Function(GetMissingComponentResourceProcPtr) +>() +external GetMissingComponentResourceUPP NewGetMissingComponentResourceUPP( + GetMissingComponentResourceProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle NewHandle(int byteCount); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle NewHandleClear(int byteCount); + +@Deprecated('Deprecated') +@ffi.Native() +external IOCompletionUPP NewIOCompletionUPP(IOCompletionProcPtr userRoutine); + +@ffi.Native() +external IconActionUPP NewIconActionUPP(IconActionProcPtr userRoutine); + +@ffi.Native() +external IconGetterUPP NewIconGetterUPP(IconGetterProcPtr userRoutine); + +@ffi.Native() +external IndexToUCStringUPP NewIndexToUCStringUPP( + IndexToUCStringProcPtr userRoutine, +); + +@Deprecated('No longer supported') +@ffi.Native() +external KCCallbackUPP NewKCCallbackUPP(KCCallbackProcPtr userRoutine); + +@ffi.Native() +external OSLAccessorUPP NewOSLAccessorUPP(OSLAccessorProcPtr userRoutine); + +@ffi.Native() +external OSLAdjustMarksUPP NewOSLAdjustMarksUPP( + OSLAdjustMarksProcPtr userRoutine, +); + +@ffi.Native() +external OSLCompareUPP NewOSLCompareUPP(OSLCompareProcPtr userRoutine); + +@ffi.Native() +external OSLCountUPP NewOSLCountUPP(OSLCountProcPtr userRoutine); + +@ffi.Native() +external OSLDisposeTokenUPP NewOSLDisposeTokenUPP( + OSLDisposeTokenProcPtr userRoutine, +); + +@ffi.Native() +external OSLGetErrDescUPP NewOSLGetErrDescUPP(OSLGetErrDescProcPtr userRoutine); + +@ffi.Native() +external OSLGetMarkTokenUPP NewOSLGetMarkTokenUPP( + OSLGetMarkTokenProcPtr userRoutine, +); + +@ffi.Native() +external OSLMarkUPP NewOSLMarkUPP(OSLMarkProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr NewPtr(int byteCount); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr NewPtrClear(int byteCount); + +@Deprecated('Deprecated') +@ffi.Native() +external ResErrUPP NewResErrUPP(ResErrProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external SelectorFunctionUPP NewSelectorFunctionUPP( + SelectorFunctionProcPtr userRoutine, +); + +@Deprecated('No longer supported') +@ffi.Native() +external SleepQUPP NewSleepQUPP(SleepQProcPtr userRoutine); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer) +>() +external int NewSpeechChannel( + ffi.Pointer voice, + ffi.Pointer chan, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechDoneUPP NewSpeechDoneUPP(SpeechDoneProcPtr userRoutine); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechErrorUPP NewSpeechErrorUPP(SpeechErrorProcPtr userRoutine); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechPhonemeUPP NewSpeechPhonemeUPP(SpeechPhonemeProcPtr userRoutine); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechSyncUPP NewSpeechSyncUPP(SpeechSyncProcPtr userRoutine); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechTextDoneUPP NewSpeechTextDoneUPP( + SpeechTextDoneProcPtr userRoutine, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechWordUPP NewSpeechWordUPP(SpeechWordProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ThreadStyle, + ThreadEntryTPP, + ffi.Pointer, + Size, + ThreadOptions, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int NewThread( + int threadStyle, + ThreadEntryTPP threadEntry, + ffi.Pointer threadParam, + int stackSize, + int options, + ffi.Pointer> threadResult, + ffi.Pointer threadMade, +); + +@Deprecated('Deprecated') +@ffi.Native() +external ThreadEntryUPP NewThreadEntryUPP(ThreadEntryProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external ThreadSchedulerUPP NewThreadSchedulerUPP( + ThreadSchedulerProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external ThreadSwitchUPP NewThreadSwitchUPP(ThreadSwitchProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external ThreadTerminationUPP NewThreadTerminationUPP( + ThreadTerminationProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external TimerUPP NewTimerUPP(TimerProcPtr userRoutine); + +@ffi.Native() +external UnicodeToTextFallbackUPP NewUnicodeToTextFallbackUPP( + UnicodeToTextFallbackProcPtr userRoutine, +); + +@Deprecated( + 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicAdd32(int __theAmount, ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_add() from instead') +@ffi.Native)>() +external int OSAtomicAdd32Barrier( + int __theAmount, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', +) +@ffi.Native< + ffi.Int64 Function(ffi.Int64, ffi.Pointer) +>() +external int OSAtomicAdd64( + int __theAmount, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_add() from instead') +@ffi.Native< + ffi.Int64 Function(ffi.Int64, ffi.Pointer) +>() +external int OSAtomicAdd64Barrier( + int __theAmount, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_and_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicAnd32(int __theMask, ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_and() from instead') +@ffi.Native)>() +external int OSAtomicAnd32Barrier( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_and_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicAnd32Orig( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_and() from instead') +@ffi.Native)>() +external int OSAtomicAnd32OrigBarrier( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external bool OSAtomicCompareAndSwap32( + int __oldValue, + int __newValue, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_compare_exchange_strong() from instead') +@ffi.Native)>() +external bool OSAtomicCompareAndSwap32Barrier( + int __oldValue, + int __newValue, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', +) +@ffi.Native< + ffi.Bool Function( + ffi.Int64, + ffi.Int64, + ffi.Pointer, + ) +>() +external bool OSAtomicCompareAndSwap64( + int __oldValue, + int __newValue, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_compare_exchange_strong() from instead') +@ffi.Native< + ffi.Bool Function( + ffi.Int64, + ffi.Int64, + ffi.Pointer, + ) +>() +external bool OSAtomicCompareAndSwap64Barrier( + int __oldValue, + int __newValue, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', +) +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external bool OSAtomicCompareAndSwapPtr( + ffi.Pointer __oldValue, + ffi.Pointer __newValue, + ffi.Pointer> __theValue, +); + +@Deprecated('Use atomic_compare_exchange_strong() from instead') +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external bool OSAtomicCompareAndSwapPtrBarrier( + ffi.Pointer __oldValue, + ffi.Pointer __newValue, + ffi.Pointer> __theValue, +); + +@Deprecated( + 'Use atomic_fetch_sub_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicDecrement32(ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_sub() from instead') +@ffi.Native)>() +external int OSAtomicDecrement32Barrier(ffi.Pointer __theValue); + +@Deprecated( + 'Use atomic_fetch_sub_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicDecrement64( + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_sub() from instead') +@ffi.Native)>() +external int OSAtomicDecrement64Barrier( + ffi.Pointer __theValue, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Size) +>() +external ffi.Pointer OSAtomicDequeue( + ffi.Pointer __list, + int __offset, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external void OSAtomicEnqueue( + ffi.Pointer __list, + ffi.Pointer __new, + int __offset, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Size) +>() +external ffi.Pointer OSAtomicFifoDequeue( + ffi.Pointer __list, + int __offset, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external void OSAtomicFifoEnqueue( + ffi.Pointer __list, + ffi.Pointer __new, + int __offset, +); + +@Deprecated( + 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicIncrement32(ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_add() from instead') +@ffi.Native)>() +external int OSAtomicIncrement32Barrier(ffi.Pointer __theValue); + +@Deprecated( + 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicIncrement64( + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_add() from instead') +@ffi.Native)>() +external int OSAtomicIncrement64Barrier( + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_or_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicOr32(int __theMask, ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_or() from instead') +@ffi.Native)>() +external int OSAtomicOr32Barrier( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_or_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicOr32Orig( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_or() from instead') +@ffi.Native)>() +external int OSAtomicOr32OrigBarrier( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_xor_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicXor32(int __theMask, ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_xor() from instead') +@ffi.Native)>() +external int OSAtomicXor32Barrier( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_xor_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicXor32Orig( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_xor() from instead') +@ffi.Native)>() +external int OSAtomicXor32OrigBarrier( + int __theMask, + ffi.Pointer __theValue, +); + +@ffi.Native< + kern_return_t Function( + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int OSGetNotificationFromMessage( + ffi.Pointer msg, + int index$1, + ffi.Pointer type, + ffi.Pointer reference, + ffi.Pointer> content, + ffi.Pointer size, +); + +@Deprecated('Use atomic_thread_fence() from instead') +@ffi.Native() +external void OSMemoryBarrier(); + +@Deprecated('Use os_unfair_lock_lock() from instead') +@ffi.Native)>() +external void OSSpinLockLock(ffi.Pointer __lock); + +@Deprecated('Use os_unfair_lock_trylock() from instead') +@ffi.Native)>() +external bool OSSpinLockTry(ffi.Pointer __lock); + +@Deprecated('Use os_unfair_lock_unlock() from instead') +@ffi.Native)>() +external void OSSpinLockUnlock(ffi.Pointer __lock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int OpenAComponent( + Component aComponent, + ffi.Pointer ci, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int OpenAComponentResFile( + Component aComponent, + ffi.Pointer resRef, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int OpenADefaultComponent( + int componentType, + int componentSubType, + ffi.Pointer ci, +); + +@Deprecated('Deprecated') +@ffi.Native() +external ComponentInstance OpenComponent(Component aComponent); + +@Deprecated('Deprecated') +@ffi.Native() +external int OpenComponentResFile(Component aComponent); + +@Deprecated('Deprecated') +@ffi.Native() +external ComponentInstance OpenDefaultComponent( + int componentType, + int componentSubType, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int OverrideIconRef(IconRef oldIconRef, IconRef newIconRef); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBAllocateForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBAllocateForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCatalogSearchAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCatalogSearchSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCloseForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCloseForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCloseIteratorAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCloseIteratorSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCompareFSRefsAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCompareFSRefsSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCreateDirectoryUnicodeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCreateDirectoryUnicodeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external void PBCreateFileAndOpenForkUnicodeAsync( + FSRefForkIOParamPtr paramBlock, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBCreateFileAndOpenForkUnicodeSync(FSRefForkIOParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCreateFileUnicodeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCreateFileUnicodeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCreateForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCreateForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBDeleteForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBDeleteForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBDeleteObjectAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBDeleteObjectSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBExchangeObjectsAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBExchangeObjectsSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFSCopyFileAsync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFSCopyFileSync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFSResolveNodeIDAsync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFSResolveNodeIDSync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBFlushForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBFlushForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFlushVolumeAsync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFlushVolumeSync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetCatalogInfoAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetCatalogInfoBulkAsync( + ffi.Pointer paramBlock, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetCatalogInfoBulkSync( + ffi.Pointer paramBlock, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetCatalogInfoSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetForkCBInfoAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetForkCBInfoSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetForkPositionAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetForkPositionSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetForkSizeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetForkSizeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetVolumeInfoAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetVolumeInfoSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBIterateForksAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBIterateForksSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBMakeFSRefUnicodeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBMakeFSRefUnicodeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBMoveObjectAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBMoveObjectSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBOpenForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBOpenForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBOpenIteratorAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBOpenIteratorSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBReadForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBReadForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBRenameUnicodeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBRenameUnicodeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBSetCatalogInfoAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBSetCatalogInfoSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBSetForkPositionAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBSetForkPositionSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBSetForkSizeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBSetForkSizeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBSetVolumeInfoAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBSetVolumeInfoSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBUnlinkObjectAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBUnlinkObjectSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBWriteForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBWriteForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBXLockRangeAsync(FSRangeLockParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBXLockRangeSync(FSRangeLockParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBXUnlockRangeAsync(FSRangeLockParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBXUnlockRangeSync(FSRangeLockParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PLpos(ConstStr255Param str1, ConstStr255Param searchStr); + +@Deprecated('Deprecated') +@ffi.Native() +external StringPtr PLstrcat(StringPtr str, ConstStr255Param append); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr PLstrchr(ConstStr255Param str1, int ch1); + +@Deprecated('Deprecated') +@ffi.Native() +external int PLstrcmp(ConstStr255Param str1, ConstStr255Param str2); + +@Deprecated('Deprecated') +@ffi.Native() +external StringPtr PLstrcpy(StringPtr dest, ConstStr255Param source); + +@Deprecated('Deprecated') +@ffi.Native() +external int PLstrlen(ConstStr255Param str); + +@Deprecated('Deprecated') +@ffi.Native() +external StringPtr PLstrncat(StringPtr str1, ConstStr255Param append, int num); + +@Deprecated('Deprecated') +@ffi.Native() +external int PLstrncmp(ConstStr255Param str1, ConstStr255Param str2, int num); + +@Deprecated('Deprecated') +@ffi.Native() +external StringPtr PLstrncpy(StringPtr dest, ConstStr255Param source, int num); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr PLstrpbrk(ConstStr255Param str1, ConstStr255Param charSet); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr PLstrrchr(ConstStr255Param str1, int ch1); + +@Deprecated('Deprecated') +@ffi.Native() +external int PLstrspn(ConstStr255Param str1, ConstStr255Param charSet); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr PLstrstr(ConstStr255Param str1, ConstStr255Param searchStr); + +@ffi.Native() +external CGImageRef PMCGImageCreateWithEPSDataProvider( + CGDataProviderRef epsDataProvider, + CGImageRef epsPreview, +); + +@ffi.Native)>() +external int PMCopyAvailablePPDs(int domain, ffi.Pointer ppds); + +@ffi.Native)>() +external int PMCopyLocalizedPPD( + CFURLRef ppd, + ffi.Pointer localizedPPD, +); + +@ffi.Native)>() +external int PMCopyPPDData(CFURLRef ppd, ffi.Pointer data); + +@ffi.Native() +external int PMCopyPageFormat(PMPageFormat formatSrc, PMPageFormat formatDest); + +@ffi.Native() +external int PMCopyPrintSettings( + PMPrintSettings settingSrc, + PMPrintSettings settingDest, +); + +@ffi.Native)>() +external int PMCreateGenericPrinter(ffi.Pointer printer); + +@ffi.Native)>() +external int PMCreatePageFormat(ffi.Pointer pageFormat); + +@ffi.Native, PMPaper)>() +external int PMCreatePageFormatWithPMPaper( + ffi.Pointer pageFormat, + PMPaper paper, +); + +@ffi.Native)>() +external int PMCreatePrintSettings(ffi.Pointer printSettings); + +@ffi.Native)>() +external int PMCreateSession(ffi.Pointer printSession); + +@ffi.Native)>() +external int PMGetAdjustedPageRect( + PMPageFormat pageFormat, + ffi.Pointer pageRect, +); + +@ffi.Native)>() +external int PMGetAdjustedPaperRect( + PMPageFormat pageFormat, + ffi.Pointer paperRect, +); + +@ffi.Native)>() +external int PMGetCollate( + PMPrintSettings printSettings, + ffi.Pointer collate, +); + +@ffi.Native)>() +external int PMGetCopies( + PMPrintSettings printSettings, + ffi.Pointer copies, +); + +@ffi.Native)>() +external int PMGetDuplex( + PMPrintSettings printSettings, + ffi.Pointer duplexSetting, +); + +@ffi.Native)>() +external int PMGetFirstPage( + PMPrintSettings printSettings, + ffi.Pointer first, +); + +@ffi.Native)>() +external int PMGetLastPage( + PMPrintSettings printSettings, + ffi.Pointer last, +); + +@ffi.Native)>() +external int PMGetOrientation( + PMPageFormat pageFormat, + ffi.Pointer orientation, +); + +@ffi.Native< + OSStatus Function( + PMPageFormat, + OSType, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int PMGetPageFormatExtendedData( + PMPageFormat pageFormat, + int dataID, + ffi.Pointer size, + ffi.Pointer extendedData, +); + +@ffi.Native)>() +external int PMGetPageFormatPaper( + PMPageFormat format, + ffi.Pointer paper, +); + +@ffi.Native< + OSStatus Function(PMPrintSettings, ffi.Pointer, ffi.Pointer) +>() +external int PMGetPageRange( + PMPrintSettings printSettings, + ffi.Pointer minPage, + ffi.Pointer maxPage, +); + +@ffi.Native)>() +external int PMGetScale(PMPageFormat pageFormat, ffi.Pointer scale); + +@ffi.Native)>() +external int PMGetUnadjustedPageRect( + PMPageFormat pageFormat, + ffi.Pointer pageRect, +); + +@ffi.Native)>() +external int PMGetUnadjustedPaperRect( + PMPageFormat pageFormat, + ffi.Pointer paperRect, +); + +@ffi.Native< + OSStatus Function(PMPageFormat, ffi.Pointer, ffi.UnsignedInt) +>(symbol: 'PMPageFormatCreateDataRepresentation') +external int _PMPageFormatCreateDataRepresentation( + PMPageFormat pageFormat, + ffi.Pointer data, + int format, +); + +DartSInt32 PMPageFormatCreateDataRepresentation( + PMPageFormat pageFormat, + ffi.Pointer data, + PMDataFormat format, +) { + return _PMPageFormatCreateDataRepresentation(pageFormat, data, format.value); +} + +@ffi.Native)>() +external int PMPageFormatCreateWithDataRepresentation( + CFDataRef data, + ffi.Pointer pageFormat, +); + +@ffi.Native)>() +external int PMPageFormatGetPrinterID( + PMPageFormat pageFormat, + ffi.Pointer printerID, +); + +@ffi.Native< + OSStatus Function( + PMPrinter, + CFStringRef, + CFStringRef, + ffi.Double, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int PMPaperCreateCustom( + PMPrinter printer, + CFStringRef id, + CFStringRef name, + double width, + double height, + ffi.Pointer margins, + ffi.Pointer paperP, +); + +@ffi.Native)>() +external int PMPaperCreateLocalizedName( + PMPaper paper, + PMPrinter printer, + ffi.Pointer paperName, +); + +@ffi.Native)>() +external int PMPaperGetHeight( + PMPaper paper, + ffi.Pointer paperHeight, +); + +@ffi.Native)>() +external int PMPaperGetID(PMPaper paper, ffi.Pointer paperID); + +@ffi.Native)>() +external int PMPaperGetMargins( + PMPaper paper, + ffi.Pointer paperMargins, +); + +@ffi.Native)>() +external int PMPaperGetPPDPaperName( + PMPaper paper, + ffi.Pointer paperName, +); + +@ffi.Native)>() +external int PMPaperGetPrinterID( + PMPaper paper, + ffi.Pointer printerID, +); + +@ffi.Native)>() +external int PMPaperGetWidth(PMPaper paper, ffi.Pointer paperWidth); + +@ffi.Native() +external int PMPaperIsCustom(PMPaper paper); + +@ffi.Native)>() +external int PMPresetCopyName(PMPreset preset, ffi.Pointer name); + +@ffi.Native< + OSStatus Function(PMPreset, PMPrintSession, ffi.Pointer) +>() +external int PMPresetCreatePrintSettings( + PMPreset preset, + PMPrintSession session, + ffi.Pointer printSettings, +); + +@ffi.Native)>() +external int PMPresetGetAttributes( + PMPreset preset, + ffi.Pointer attributes, +); + +@ffi.Native)>() +external int PMPrintSettingsCopyAsDictionary( + PMPrintSettings printSettings, + ffi.Pointer settingsDictionary, +); + +@ffi.Native)>() +external int PMPrintSettingsCopyKeys( + PMPrintSettings printSettings, + ffi.Pointer settingsKeys, +); + +@ffi.Native< + OSStatus Function(PMPrintSettings, ffi.Pointer, ffi.UnsignedInt) +>(symbol: 'PMPrintSettingsCreateDataRepresentation') +external int _PMPrintSettingsCreateDataRepresentation( + PMPrintSettings printSettings, + ffi.Pointer data, + int format, +); + +DartSInt32 PMPrintSettingsCreateDataRepresentation( + PMPrintSettings printSettings, + ffi.Pointer data, + PMDataFormat format, +) { + return _PMPrintSettingsCreateDataRepresentation( + printSettings, + data, + format.value, + ); +} + +@ffi.Native)>() +external int PMPrintSettingsCreateWithDataRepresentation( + CFDataRef data, + ffi.Pointer printSettings, +); + +@ffi.Native)>() +external int PMPrintSettingsGetJobName( + PMPrintSettings printSettings, + ffi.Pointer name, +); + +@ffi.Native< + OSStatus Function(PMPrintSettings, CFStringRef, ffi.Pointer) +>() +external int PMPrintSettingsGetValue( + PMPrintSettings printSettings, + CFStringRef key, + ffi.Pointer value, +); + +@ffi.Native() +external int PMPrintSettingsSetJobName( + PMPrintSettings printSettings, + CFStringRef name, +); + +@ffi.Native< + OSStatus Function(PMPrintSettings, CFStringRef, CFTypeRef, Boolean) +>() +external int PMPrintSettingsSetValue( + PMPrintSettings printSettings, + CFStringRef key, + CFTypeRef value, + int locked, +); + +@ffi.Native< + OSStatus Function(PMPrintSettings, ffi.Pointer>) +>() +external int PMPrintSettingsToOptions( + PMPrintSettings settings, + ffi.Pointer> options, +); + +@ffi.Native< + OSStatus Function( + PMPrintSettings, + PMPrinter, + PMPageFormat, + ffi.Pointer>, + ) +>() +external int PMPrintSettingsToOptionsWithPrinterAndPageFormat( + PMPrintSettings settings, + PMPrinter printer, + PMPageFormat pageFormat, + ffi.Pointer> options, +); + +@ffi.Native)>() +external int PMPrinterCopyDescriptionURL( + PMPrinter printer, + CFStringRef descriptionType, + ffi.Pointer fileURL, +); + +@ffi.Native)>() +external int PMPrinterCopyDeviceURI( + PMPrinter printer, + ffi.Pointer deviceURI, +); + +@ffi.Native)>() +external int PMPrinterCopyHostName( + PMPrinter printer, + ffi.Pointer hostNameP, +); + +@ffi.Native)>() +external int PMPrinterCopyPresets( + PMPrinter printer, + ffi.Pointer presetList, +); + +@ffi.Native)>() +external int PMPrinterCopyState( + PMPrinter printer, + ffi.Pointer stateDict, +); + +@ffi.Native() +external PMPrinter PMPrinterCreateFromPrinterID(CFStringRef printerID); + +@ffi.Native< + OSStatus Function(PMPrinter, ffi.Pointer, ffi.Pointer) +>() +external int PMPrinterGetCommInfo( + PMPrinter printer, + ffi.Pointer supportsControlCharRangeP, + ffi.Pointer supportsEightBitP, +); + +@ffi.Native)>() +external int PMPrinterGetDriverCreator( + PMPrinter printer, + ffi.Pointer creator, +); + +@ffi.Native)>() +external int PMPrinterGetDriverReleaseInfo( + PMPrinter printer, + ffi.Pointer release, +); + +@ffi.Native() +external CFStringRef PMPrinterGetID(PMPrinter printer); + +@ffi.Native)>() +external int PMPrinterGetIndexedPrinterResolution( + PMPrinter printer, + int index$1, + ffi.Pointer resolutionP, +); + +@ffi.Native)>() +external int PMPrinterGetLanguageInfo( + PMPrinter printer, + ffi.Pointer info, +); + +@ffi.Native() +external CFStringRef PMPrinterGetLocation(PMPrinter printer); + +@ffi.Native)>() +external int PMPrinterGetMakeAndModelName( + PMPrinter printer, + ffi.Pointer makeAndModel, +); + +@ffi.Native< + OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) +>() +external int PMPrinterGetMimeTypes( + PMPrinter printer, + PMPrintSettings settings, + ffi.Pointer mimeTypes, +); + +@ffi.Native() +external CFStringRef PMPrinterGetName(PMPrinter printer); + +@ffi.Native< + OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) +>() +external int PMPrinterGetOutputResolution( + PMPrinter printer, + PMPrintSettings printSettings, + ffi.Pointer resolutionP, +); + +@ffi.Native)>() +external int PMPrinterGetPaperList( + PMPrinter printer, + ffi.Pointer paperList, +); + +@ffi.Native)>() +external int PMPrinterGetPrinterResolutionCount( + PMPrinter printer, + ffi.Pointer countP, +); + +@ffi.Native)>() +external int PMPrinterGetState( + PMPrinter printer, + ffi.Pointer state, +); + +@ffi.Native() +external int PMPrinterIsDefault(PMPrinter printer); + +@ffi.Native() +external int PMPrinterIsFavorite(PMPrinter printer); + +@ffi.Native() +external int PMPrinterIsPostScriptCapable(PMPrinter printer); + +@ffi.Native)>() +external int PMPrinterIsPostScriptPrinter( + PMPrinter printer, + ffi.Pointer isPSPrinter, +); + +@ffi.Native)>() +external int PMPrinterIsRemote( + PMPrinter printer, + ffi.Pointer isRemoteP, +); + +@ffi.Native< + OSStatus Function( + PMPrinter, + PMPrintSettings, + PMPageFormat, + CFStringRef, + CFURLRef, + ) +>() +external int PMPrinterPrintWithFile( + PMPrinter printer, + PMPrintSettings settings, + PMPageFormat format, + CFStringRef mimeType, + CFURLRef fileURL, +); + +@ffi.Native< + OSStatus Function( + PMPrinter, + PMPrintSettings, + PMPageFormat, + CFStringRef, + CGDataProviderRef, + ) +>() +external int PMPrinterPrintWithProvider( + PMPrinter printer, + PMPrintSettings settings, + PMPageFormat format, + CFStringRef mimeType, + CGDataProviderRef provider, +); + +@ffi.Native< + OSStatus Function(PMPrinter, CFStringRef, CFStringRef, CFDictionaryRef) +>() +external int PMPrinterSendCommand( + PMPrinter printer, + CFStringRef commandString, + CFStringRef jobTitle, + CFDictionaryRef options, +); + +@ffi.Native() +external int PMPrinterSetDefault(PMPrinter printer); + +@ffi.Native< + OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) +>() +external int PMPrinterSetOutputResolution( + PMPrinter printer, + PMPrintSettings printSettings, + ffi.Pointer resolutionP, +); + +@ffi.Native< + OSStatus Function( + PMPrinter, + PMPrintSettings, + PMPageFormat, + CFStringRef, + CFURLRef, + CFURLRef, + ) +>() +external int PMPrinterWritePostScriptToURL( + PMPrinter printer, + PMPrintSettings settings, + PMPageFormat format, + CFStringRef mimeType, + CFURLRef sourceFileURL, + CFURLRef destinationFileURL, +); + +@ffi.Native() +external int PMRelease(PMObject object); + +@ffi.Native() +external int PMRetain(PMObject object); + +@ffi.Native)>() +external int PMServerCreatePrinterList( + PMServer server, + ffi.Pointer printerList, +); + +@ffi.Native() +external int PMServerLaunchPrinterBrowser( + PMServer server, + CFDictionaryRef options, +); + +@ffi.Native() +external int PMSessionBeginCGDocumentNoDialog( + PMPrintSession printSession, + PMPrintSettings printSettings, + PMPageFormat pageFormat, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPageFormat, ffi.Pointer) +>() +external int PMSessionBeginPageNoDialog( + PMPrintSession printSession, + PMPageFormat pageFormat, + ffi.Pointer pageFrame, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) +>() +external int PMSessionCopyDestinationFormat( + PMPrintSession printSession, + PMPrintSettings printSettings, + ffi.Pointer destFormatP, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) +>() +external int PMSessionCopyDestinationLocation( + PMPrintSession printSession, + PMPrintSettings printSettings, + ffi.Pointer destLocationP, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMDestinationType, ffi.Pointer) +>() +external int PMSessionCopyOutputFormatList( + PMPrintSession printSession, + int destType, + ffi.Pointer documentFormatP, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPrinter, ffi.Pointer) +>() +external int PMSessionCreatePageFormatList( + PMPrintSession printSession, + PMPrinter printer, + ffi.Pointer pageFormatList, +); + +@ffi.Native< + OSStatus Function( + PMPrintSession, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int PMSessionCreatePrinterList( + PMPrintSession printSession, + ffi.Pointer printerList, + ffi.Pointer currentIndex, + ffi.Pointer currentPrinter, +); + +@ffi.Native() +external int PMSessionDefaultPageFormat( + PMPrintSession printSession, + PMPageFormat pageFormat, +); + +@ffi.Native() +external int PMSessionDefaultPrintSettings( + PMPrintSession printSession, + PMPrintSettings printSettings, +); + +@ffi.Native() +external int PMSessionEndDocumentNoDialog(PMPrintSession printSession); + +@ffi.Native() +external int PMSessionEndPageNoDialog(PMPrintSession printSession); + +@ffi.Native() +external int PMSessionError(PMPrintSession printSession); + +@ffi.Native)>() +external int PMSessionGetCGGraphicsContext( + PMPrintSession printSession, + ffi.Pointer context, +); + +@ffi.Native)>() +external int PMSessionGetCurrentPrinter( + PMPrintSession printSession, + ffi.Pointer currentPrinter, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, CFStringRef, ffi.Pointer) +>() +external int PMSessionGetDataFromSession( + PMPrintSession printSession, + CFStringRef key, + ffi.Pointer data, +); + +@ffi.Native< + OSStatus Function( + PMPrintSession, + PMPrintSettings, + ffi.Pointer, + ) +>() +external int PMSessionGetDestinationType( + PMPrintSession printSession, + PMPrintSettings printSettings, + ffi.Pointer destTypeP, +); + +@ffi.Native() +external int PMSessionSetCurrentPMPrinter( + PMPrintSession session, + PMPrinter printer, +); + +@ffi.Native() +external int PMSessionSetDataInSession( + PMPrintSession printSession, + CFStringRef key, + CFTypeRef data, +); + +@ffi.Native< + OSStatus Function( + PMPrintSession, + PMPrintSettings, + PMDestinationType, + CFStringRef, + CFURLRef, + ) +>() +external int PMSessionSetDestination( + PMPrintSession printSession, + PMPrintSettings printSettings, + int destType, + CFStringRef destFormat, + CFURLRef destLocation, +); + +@ffi.Native() +external int PMSessionSetError(PMPrintSession printSession, int printError); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPageFormat, ffi.Pointer) +>() +external int PMSessionValidatePageFormat( + PMPrintSession printSession, + PMPageFormat pageFormat, + ffi.Pointer changed, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) +>() +external int PMSessionValidatePrintSettings( + PMPrintSession printSession, + PMPrintSettings printSettings, + ffi.Pointer changed, +); + +@ffi.Native() +external int PMSetCollate(PMPrintSettings printSettings, int collate); + +@ffi.Native() +external int PMSetCopies(PMPrintSettings printSettings, int copies, int lock); + +@ffi.Native() +external int PMSetDuplex(PMPrintSettings printSettings, int duplexSetting); + +@ffi.Native() +external int PMSetFirstPage(PMPrintSettings printSettings, int first, int lock); + +@ffi.Native() +external int PMSetLastPage(PMPrintSettings printSettings, int last, int lock); + +@ffi.Native() +external int PMSetOrientation( + PMPageFormat pageFormat, + int orientation, + int lock, +); + +@ffi.Native< + OSStatus Function(PMPageFormat, OSType, UInt32, ffi.Pointer) +>() +external int PMSetPageFormatExtendedData( + PMPageFormat pageFormat, + int dataID, + int size, + ffi.Pointer extendedData, +); + +@ffi.Native() +external int PMSetPageRange( + PMPrintSettings printSettings, + int minPage, + int maxPage, +); + +@ffi.Native() +external int PMSetScale(PMPageFormat pageFormat, double scale); + +@ffi.Native)>() +external int PMWorkflowCopyItems(ffi.Pointer workflowItems); + +@ffi.Native< + OSStatus Function(CFURLRef, CFStringRef, ffi.Pointer, CFURLRef) +>() +external int PMWorkflowSubmitPDFWithOptions( + CFURLRef workflowItem, + CFStringRef title, + ffi.Pointer options, + CFURLRef pdfFile, +); + +@ffi.Native() +external int PMWorkflowSubmitPDFWithSettings( + CFURLRef workflowItem, + PMPrintSettings settings, + CFURLRef pdfFile, +); + +@ffi.Native() +external int PasteboardClear(PasteboardRef inPasteboard); + +@ffi.Native< + OSStatus Function( + PasteboardRef, + PasteboardItemID, + CFStringRef, + ffi.Pointer, + ) +>() +external int PasteboardCopyItemFlavorData( + PasteboardRef inPasteboard, + PasteboardItemID inItem, + CFStringRef inFlavorType, + ffi.Pointer outData, +); + +@ffi.Native< + OSStatus Function(PasteboardRef, PasteboardItemID, ffi.Pointer) +>() +external int PasteboardCopyItemFlavors( + PasteboardRef inPasteboard, + PasteboardItemID inItem, + ffi.Pointer outFlavorTypes, +); + +@ffi.Native)>() +external int PasteboardCopyName( + PasteboardRef inPasteboard, + ffi.Pointer outName, +); + +@ffi.Native)>() +external int PasteboardCopyPasteLocation( + PasteboardRef inPasteboard, + ffi.Pointer outPasteLocation, +); + +@ffi.Native)>() +external int PasteboardCreate( + CFStringRef inName, + ffi.Pointer outPasteboard, +); + +@ffi.Native)>() +external int PasteboardGetItemCount( + PasteboardRef inPasteboard, + ffi.Pointer outItemCount, +); + +@ffi.Native< + OSStatus Function( + PasteboardRef, + PasteboardItemID, + CFStringRef, + ffi.Pointer, + ) +>() +external int PasteboardGetItemFlavorFlags( + PasteboardRef inPasteboard, + PasteboardItemID inItem, + CFStringRef inFlavorType, + ffi.Pointer outFlags, +); + +@ffi.Native< + OSStatus Function(PasteboardRef, CFIndex, ffi.Pointer) +>() +external int PasteboardGetItemIdentifier( + PasteboardRef inPasteboard, + int inIndex, + ffi.Pointer outItem, +); + +@ffi.Native() +external int PasteboardGetTypeID(); + +@ffi.Native< + OSStatus Function( + PasteboardRef, + PasteboardItemID, + CFStringRef, + CFDataRef, + OptionBits, + ) +>() +external int PasteboardPutItemFlavor( + PasteboardRef inPasteboard, + PasteboardItemID inItem, + CFStringRef inFlavorType, + CFDataRef inData, + int inFlags, +); + +@ffi.Native() +external int PasteboardResolvePromises(PasteboardRef inPasteboard); + +@ffi.Native() +external int PasteboardSetPasteLocation( + PasteboardRef inPasteboard, + CFURLRef inPasteLocation, +); + +@ffi.Native< + OSStatus Function( + PasteboardRef, + PasteboardPromiseKeeperProcPtr, + ffi.Pointer, + ) +>() +external int PasteboardSetPromiseKeeper( + PasteboardRef inPasteboard, + PasteboardPromiseKeeperProcPtr inPromiseKeeper, + ffi.Pointer inContext, +); + +@ffi.Native() +external int PasteboardSynchronize(PasteboardRef inPasteboard); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int PauseSpeechAt(SpeechChannel chan, int whereToPause); + +@ffi.Native< + OSStatus Function( + CGContextRef, + ffi.Pointer, + IconAlignmentType, + IconTransformType, + ffi.Pointer, + PlotIconRefFlags, + IconRef, + ) +>() +external int PlotIconRefInContext( + CGContextRef inContext, + ffi.Pointer inRect, + int inAlign, + int inTransform, + ffi.Pointer inLabelColor, + int inFlags, + IconRef inIconRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void PrimeTime(QElemPtr tmTaskPtr, int count); + +@Deprecated('Deprecated') +@ffi.Native() +external int PrimeTimeTask(QElemPtr tmTaskPtr, int count); + +@Deprecated('Deprecated') +@ffi.Native< + CFDictionaryRef Function(ffi.Pointer, UInt32) +>() +external CFDictionaryRef ProcessInformationCopyDictionary( + ffi.Pointer PSN, + int infoToReturn, +); + +@Deprecated('Deprecated') +@ffi.Native, Handle, ffi.Long)>() +external int PtrAndHand(ffi.Pointer ptr1, Handle hand2, int size); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Long) +>() +external int PtrToHand( + ffi.Pointer srcPtr, + ffi.Pointer dstHndl, + int size, +); + +@Deprecated('Deprecated') +@ffi.Native, Handle, ffi.Long)>() +external int PtrToXHand(ffi.Pointer srcPtr, Handle dstHndl, int size); + +@Deprecated('Deprecated') +@ffi.Native() +external void PurgeCollection( + Collection c, + int whichAttributes, + int matchingAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void PurgeCollectionTag(Collection c, int tag); + +@ffi.Native< + OSStatus Function( + OptionBits, + ConstUnicodeMappingPtr, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int QueryUnicodeMappings( + int iFilter, + ConstUnicodeMappingPtr iFindMapping, + int iMaxCount, + ffi.Pointer oActualCount, + ffi.Pointer oReturnedMappings, +); + +@Deprecated('Use -[NSWorkspace iconForFile:] instead.') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int ReadIconFromFSRef( + ffi.Pointer ref, + ffi.Pointer iconFamily, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void ReadLocation(ffi.Pointer loc); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(Handle, ffi.Long, ffi.Pointer, ffi.Long) +>() +external void ReadPartialResource( + Handle theResource, + int offset, + ffi.Pointer buffer, + int count, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void ReallocateHandle(Handle h, int byteCount); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle RecoverHandle(Ptr p); + +@Deprecated('Deprecated') +@ffi.Native< + Component Function( + ffi.Pointer, + ComponentRoutineUPP, + SInt16, + Handle, + Handle, + Handle, + ) +>() +external Component RegisterComponent( + ffi.Pointer cd, + ComponentRoutineUPP componentEntryPoint, + int global, + Handle componentName, + Handle componentInfo, + Handle componentIcon, +); + +@Deprecated('Deprecated') +@ffi.Native, SInt16)>() +external int RegisterComponentFileRef(ffi.Pointer ref, int global); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + SInt16, + ffi.Pointer, + UInt32, + ) +>() +external int RegisterComponentFileRefEntries( + ffi.Pointer ref, + int global, + ffi.Pointer toRegister, + int registerCount, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Component RegisterComponentResource( + ComponentResourceHandle cr, + int global, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int RegisterComponentResourceFile(int resRefNum, int global); + +@Deprecated( + 'You do not need to register .icns files to use them with -[NSImage initWithContentsOfURL:].', +) +@ffi.Native< + OSStatus Function(OSType, OSType, ffi.Pointer, ffi.Pointer) +>() +external int RegisterIconRefFromFSRef( + int creator, + int iconType, + ffi.Pointer iconFile, + ffi.Pointer theIconRef, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native< + OSErr Function(OSType, OSType, IconFamilyHandle, ffi.Pointer) +>() +external int RegisterIconRefFromIconFamily( + int creator, + int iconType, + IconFamilyHandle iconFamily, + ffi.Pointer theIconRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ReleaseCollection(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external int ReleaseFolder(int vRefNum, int folderType); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int ReleaseIconRef(IconRef theIconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external void ReleaseResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external int RemoveCollectionItem(Collection c, int tag, int id); + +@Deprecated('Deprecated') +@ffi.Native() +external int RemoveFolderDescriptor(int foldType); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int RemoveIconRefOverride(IconRef theIconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external int RemoveIndexedCollectionItem(Collection c, int itemIndex); + +@Deprecated('Deprecated') +@ffi.Native() +external void RemoveResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external int RemoveTimeTask(QElemPtr tmTaskPtr); + +@Deprecated('Deprecated') +@ffi.Native() +external int ReplaceGestaltValue(int selector, int replacementValue); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ReplaceIndexedCollectionItem( + Collection c, + int itemIndex, + int itemSize, + ffi.Pointer itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ReplaceIndexedCollectionItemHdl( + Collection aCollection, + int itemIndex, + Handle itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ResError(); + +@ffi.Native() +external int ResetTextToUnicodeInfo(TextToUnicodeInfo ioTextToUnicodeInfo); + +@ffi.Native() +external int ResetUnicodeToTextInfo(UnicodeToTextInfo ioUnicodeToTextInfo); + +@ffi.Native() +external int ResetUnicodeToTextRunInfo( + UnicodeToTextRunInfo ioUnicodeToTextRunInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Component ResolveComponentAlias(Component aComponent); + +@ffi.Native() +external int ResolveDefaultTextEncoding(int encoding); + +@Deprecated('Deprecated') +@ffi.Native() +external int RetainCollection(Collection c); + +@ffi.Native< + OSStatus Function( + TextEncoding, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int RevertTextEncodingToScriptInfo( + int iEncoding, + ffi.Pointer oTextScriptID, + ffi.Pointer oTextLanguageID, + ffi.Pointer oTextFontname, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void RmvTime(QElemPtr tmTaskPtr); + +@ffi.Native() +external int S64Absolute(int value); + +@ffi.Native() +external CFURLRef SKDocumentCopyURL(SKDocumentRef inDocument); + +@ffi.Native() +external SKDocumentRef SKDocumentCreate( + CFStringRef inScheme, + SKDocumentRef inParent, + CFStringRef inName, +); + +@ffi.Native() +external SKDocumentRef SKDocumentCreateWithURL(CFURLRef inURL); + +@ffi.Native() +external CFStringRef SKDocumentGetName(SKDocumentRef inDocument); + +@ffi.Native() +external SKDocumentRef SKDocumentGetParent(SKDocumentRef inDocument); + +@ffi.Native() +external CFStringRef SKDocumentGetSchemeName(SKDocumentRef inDocument); + +@ffi.Native() +external int SKDocumentGetTypeID(); + +@ffi.Native() +external int SKIndexAddDocument( + SKIndexRef inIndex, + SKDocumentRef inDocument, + CFStringRef inMIMETypeHint, + int inCanReplace, +); + +@ffi.Native() +external int SKIndexAddDocumentWithText( + SKIndexRef inIndex, + SKDocumentRef inDocument, + CFStringRef inDocumentText, + int inCanReplace, +); + +@ffi.Native() +external void SKIndexClose(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexCompact(SKIndexRef inIndex); + +@ffi.Native() +external SKDocumentRef SKIndexCopyDocumentForDocumentID( + SKIndexRef inIndex, + int inDocumentID, +); + +@ffi.Native() +external CFArrayRef SKIndexCopyDocumentIDArrayForTermID( + SKIndexRef inIndex, + int inTermID, +); + +@ffi.Native() +external CFDictionaryRef SKIndexCopyDocumentProperties( + SKIndexRef inIndex, + SKDocumentRef inDocument, +); + +@ffi.Native< + ffi.Void Function( + SKIndexRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void SKIndexCopyDocumentRefsForDocumentIDs( + SKIndexRef inIndex, + int inCount, + ffi.Pointer inDocumentIDsArray, + ffi.Pointer outDocumentRefsArray, +); + +@ffi.Native< + ffi.Void Function( + SKIndexRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void SKIndexCopyDocumentURLsForDocumentIDs( + SKIndexRef inIndex, + int inCount, + ffi.Pointer inDocumentIDsArray, + ffi.Pointer outDocumentURLsArray, +); + +@ffi.Native< + ffi.Void Function( + SKIndexRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void SKIndexCopyInfoForDocumentIDs( + SKIndexRef inIndex, + int inCount, + ffi.Pointer inDocumentIDsArray, + ffi.Pointer outNamesArray, + ffi.Pointer outParentIDsArray, +); + +@ffi.Native() +external CFArrayRef SKIndexCopyTermIDArrayForDocumentID( + SKIndexRef inIndex, + int inDocumentID, +); + +@ffi.Native() +external CFStringRef SKIndexCopyTermStringForTermID( + SKIndexRef inIndex, + int inTermID, +); + +@ffi.Native< + SKIndexRef Function( + CFMutableDataRef, + CFStringRef, + ffi.UnsignedInt, + CFDictionaryRef, + ) +>(symbol: 'SKIndexCreateWithMutableData') +external SKIndexRef _SKIndexCreateWithMutableData( + CFMutableDataRef inData, + CFStringRef inIndexName, + int inIndexType, + CFDictionaryRef inAnalysisProperties, +); + +SKIndexRef SKIndexCreateWithMutableData( + CFMutableDataRef inData, + CFStringRef inIndexName, + SKIndexType inIndexType, + CFDictionaryRef inAnalysisProperties, +) { + return _SKIndexCreateWithMutableData( + inData, + inIndexName, + inIndexType.value, + inAnalysisProperties, + ); +} + +@ffi.Native< + SKIndexRef Function(CFURLRef, CFStringRef, ffi.UnsignedInt, CFDictionaryRef) +>(symbol: 'SKIndexCreateWithURL') +external SKIndexRef _SKIndexCreateWithURL( + CFURLRef inURL, + CFStringRef inIndexName, + int inIndexType, + CFDictionaryRef inAnalysisProperties, +); + +SKIndexRef SKIndexCreateWithURL( + CFURLRef inURL, + CFStringRef inIndexName, + SKIndexType inIndexType, + CFDictionaryRef inAnalysisProperties, +) { + return _SKIndexCreateWithURL( + inURL, + inIndexName, + inIndexType.value, + inAnalysisProperties, + ); +} + +@ffi.Native() +external SKDocumentRef SKIndexDocumentIteratorCopyNext( + SKIndexDocumentIteratorRef inIterator, +); + +@ffi.Native() +external SKIndexDocumentIteratorRef SKIndexDocumentIteratorCreate( + SKIndexRef inIndex, + SKDocumentRef inParentDocument, +); + +@ffi.Native() +external int SKIndexDocumentIteratorGetTypeID(); + +@ffi.Native() +external int SKIndexFlush(SKIndexRef inIndex); + +@ffi.Native() +external CFDictionaryRef SKIndexGetAnalysisProperties(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexGetDocumentCount(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexGetDocumentID(SKIndexRef inIndex, SKDocumentRef inDocument); + +@ffi.Native( + symbol: 'SKIndexGetDocumentState', +) +external int _SKIndexGetDocumentState( + SKIndexRef inIndex, + SKDocumentRef inDocument, +); + +SKDocumentIndexState SKIndexGetDocumentState( + SKIndexRef inIndex, + SKDocumentRef inDocument, +) { + return SKDocumentIndexState.fromValue( + _SKIndexGetDocumentState(inIndex, inDocument), + ); +} + +@ffi.Native() +external int SKIndexGetDocumentTermCount(SKIndexRef inIndex, int inDocumentID); + +@ffi.Native() +external int SKIndexGetDocumentTermFrequency( + SKIndexRef inIndex, + int inDocumentID, + int inTermID, +); + +@ffi.Native(symbol: 'SKIndexGetIndexType') +external int _SKIndexGetIndexType(SKIndexRef inIndex); + +SKIndexType SKIndexGetIndexType(SKIndexRef inIndex) { + return SKIndexType.fromValue(_SKIndexGetIndexType(inIndex)); +} + +@ffi.Native() +external int SKIndexGetMaximumBytesBeforeFlush(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexGetMaximumDocumentID(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexGetMaximumTermID(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexGetTermDocumentCount(SKIndexRef inIndex, int inTermID); + +@ffi.Native() +external int SKIndexGetTermIDForTermString( + SKIndexRef inIndex, + CFStringRef inTermString, +); + +@ffi.Native() +external int SKIndexGetTypeID(); + +@ffi.Native() +external int SKIndexMoveDocument( + SKIndexRef inIndex, + SKDocumentRef inDocument, + SKDocumentRef inNewParent, +); + +@ffi.Native() +external SKIndexRef SKIndexOpenWithData( + CFDataRef inData, + CFStringRef inIndexName, +); + +@ffi.Native() +external SKIndexRef SKIndexOpenWithMutableData( + CFMutableDataRef inData, + CFStringRef inIndexName, +); + +@ffi.Native() +external SKIndexRef SKIndexOpenWithURL( + CFURLRef inURL, + CFStringRef inIndexName, + int inWriteAccess, +); + +@ffi.Native() +external int SKIndexRemoveDocument( + SKIndexRef inIndex, + SKDocumentRef inDocument, +); + +@ffi.Native() +external int SKIndexRenameDocument( + SKIndexRef inIndex, + SKDocumentRef inDocument, + CFStringRef inNewName, +); + +@ffi.Native() +external void SKIndexSetDocumentProperties( + SKIndexRef inIndex, + SKDocumentRef inDocument, + CFDictionaryRef inProperties, +); + +@ffi.Native() +external void SKIndexSetMaximumBytesBeforeFlush( + SKIndexRef inIndex, + int inBytesForUpdate, +); + +@ffi.Native() +external void SKLoadDefaultExtractorPlugIns(); + +@ffi.Native() +external void SKSearchCancel(SKSearchRef inSearch); + +@ffi.Native() +external SKSearchRef SKSearchCreate( + SKIndexRef inIndex, + CFStringRef inQuery, + int inSearchOptions, +); + +@ffi.Native< + Boolean Function( + SKSearchRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int SKSearchFindMatches( + SKSearchRef inSearch, + int inMaximumCount, + ffi.Pointer outDocumentIDsArray, + ffi.Pointer outScoresArray, + double maximumTime, + ffi.Pointer outFoundCount, +); + +@ffi.Native() +external int SKSearchGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native() +external CFArrayRef SKSearchGroupCopyIndexes(SKSearchGroupRef inSearchGroup); + +@Deprecated('No longer supported') +@ffi.Native() +external SKSearchGroupRef SKSearchGroupCreate(CFArrayRef inArrayOfInIndexes); + +@Deprecated('No longer supported') +@ffi.Native() +external int SKSearchGroupGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native() +external CFArrayRef SKSearchResultsCopyMatchingTerms( + SKSearchResultsRef inSearchResults, + int inItem, +); + +@Deprecated('No longer supported') +@ffi.Native< + SKSearchResultsRef Function( + SKSearchGroupRef, + CFArrayRef, + CFIndex, + ffi.Pointer, + SKSearchResultsFilterCallBack, + ) +>() +external SKSearchResultsRef SKSearchResultsCreateWithDocuments( + SKSearchGroupRef inSearchGroup, + CFArrayRef inExampleDocuments, + int inMaxFoundDocuments, + ffi.Pointer inContext, + SKSearchResultsFilterCallBack inFilterCallBack, +); + +@Deprecated('No longer supported') +@ffi.Native< + SKSearchResultsRef Function( + SKSearchGroupRef, + CFStringRef, + ffi.UnsignedInt, + CFIndex, + ffi.Pointer, + SKSearchResultsFilterCallBack, + ) +>(symbol: 'SKSearchResultsCreateWithQuery') +external SKSearchResultsRef _SKSearchResultsCreateWithQuery( + SKSearchGroupRef inSearchGroup, + CFStringRef inQuery, + int inSearchType, + int inMaxFoundDocuments, + ffi.Pointer inContext, + SKSearchResultsFilterCallBack inFilterCallBack, +); + +SKSearchResultsRef SKSearchResultsCreateWithQuery( + SKSearchGroupRef inSearchGroup, + CFStringRef inQuery, + SKSearchType inSearchType, + DartCFIndex inMaxFoundDocuments, + ffi.Pointer inContext, + SKSearchResultsFilterCallBack inFilterCallBack, +) { + return _SKSearchResultsCreateWithQuery( + inSearchGroup, + inQuery, + inSearchType.value, + inMaxFoundDocuments, + inContext, + inFilterCallBack, + ); +} + +@Deprecated('No longer supported') +@ffi.Native() +external int SKSearchResultsGetCount(SKSearchResultsRef inSearchResults); + +@Deprecated('No longer supported') +@ffi.Native< + CFIndex Function( + SKSearchResultsRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SKSearchResultsGetInfoInRange( + SKSearchResultsRef inSearchResults, + CFRange inRange, + ffi.Pointer outDocumentsArray, + ffi.Pointer outIndexesArray, + ffi.Pointer outScoresArray, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int SKSearchResultsGetTypeID(); + +@ffi.Native() +external CFStringRef SKSummaryCopyParagraphAtIndex(SKSummaryRef summary, int i); + +@ffi.Native() +external CFStringRef SKSummaryCopyParagraphSummaryString( + SKSummaryRef summary, + int numParagraphs, +); + +@ffi.Native() +external CFStringRef SKSummaryCopySentenceAtIndex(SKSummaryRef summary, int i); + +@ffi.Native() +external CFStringRef SKSummaryCopySentenceSummaryString( + SKSummaryRef summary, + int numSentences, +); + +@ffi.Native() +external SKSummaryRef SKSummaryCreateWithString(CFStringRef inString); + +@ffi.Native() +external int SKSummaryGetParagraphCount(SKSummaryRef summary); + +@ffi.Native< + CFIndex Function( + SKSummaryRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SKSummaryGetParagraphSummaryInfo( + SKSummaryRef summary, + int numParagraphsInSummary, + ffi.Pointer outRankOrderOfParagraphs, + ffi.Pointer outParagraphIndexOfParagraphs, +); + +@ffi.Native() +external int SKSummaryGetSentenceCount(SKSummaryRef summary); + +@ffi.Native< + CFIndex Function( + SKSummaryRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SKSummaryGetSentenceSummaryInfo( + SKSummaryRef summary, + int numSentencesInSummary, + ffi.Pointer outRankOrderOfSentences, + ffi.Pointer outSentenceIndexOfSentences, + ffi.Pointer outParagraphIndexOfSentences, +); + +@ffi.Native() +external int SKSummaryGetTypeID(); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native, ffi.Size)>() +external int SSLAddDistinguishedName( + SSLContextRef context, + ffi.Pointer derDN, + int derDNLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLClose(SSLContextRef context); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLContextGetTypeID(); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyALPNProtocols( + SSLContextRef context, + ffi.Pointer protocols, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyCertificateAuthorities( + SSLContextRef context, + ffi.Pointer certificates, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyDistinguishedNames( + SSLContextRef context, + ffi.Pointer names, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyPeerCertificates( + SSLContextRef context, + ffi.Pointer certs, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyPeerTrust( + SSLContextRef context, + ffi.Pointer trust, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Pointer) +>() +external int SSLCopyRequestedPeerName( + SSLContextRef context, + ffi.Pointer peerName, + ffi.Pointer peerNameLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyRequestedPeerNameLength( + SSLContextRef ctx, + ffi.Pointer peerNameLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyTrustedRoots( + SSLContextRef context, + ffi.Pointer trustedRoots, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + SSLContextRef Function(CFAllocatorRef, ffi.UnsignedInt, ffi.UnsignedInt) +>(symbol: 'SSLCreateContext') +external SSLContextRef _SSLCreateContext( + CFAllocatorRef alloc, + int protocolSide, + int connectionType, +); + +SSLContextRef SSLCreateContext( + CFAllocatorRef alloc, + SSLProtocolSide protocolSide, + SSLConnectionType connectionType, +) { + return _SSLCreateContext(alloc, protocolSide.value, connectionType.value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLDisposeContext(SSLContextRef context); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetAllowsAnyRoot( + SSLContextRef context, + ffi.Pointer anyRoot, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetAllowsExpiredCerts( + SSLContextRef context, + ffi.Pointer allowsExpired, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetAllowsExpiredRoots( + SSLContextRef context, + ffi.Pointer allowsExpired, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetBufferedReadSize( + SSLContextRef context, + ffi.Pointer bufferSize, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetClientCertificateState( + SSLContextRef context, + ffi.Pointer clientState, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetConnection( + SSLContextRef context, + ffi.Pointer connection, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetDatagramWriteSize( + SSLContextRef dtlsContext, + ffi.Pointer bufSize, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int SSLGetDiffieHellmanParams( + SSLContextRef context, + ffi.Pointer> dhParams, + ffi.Pointer dhParamsLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetEnableCertVerify( + SSLContextRef context, + ffi.Pointer enableVerify, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SSLGetEnabledCiphers( + SSLContextRef context, + ffi.Pointer ciphers, + ffi.Pointer numCiphers, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetMaxDatagramRecordSize( + SSLContextRef dtlsContext, + ffi.Pointer maxSize, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetNegotiatedCipher( + SSLContextRef context, + ffi.Pointer cipherSuite, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetNegotiatedProtocolVersion( + SSLContextRef context, + ffi.Pointer protocol, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetNumberEnabledCiphers( + SSLContextRef context, + ffi.Pointer numCiphers, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetNumberSupportedCiphers( + SSLContextRef context, + ffi.Pointer numCiphers, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Pointer) +>() +external int SSLGetPeerDomainName( + SSLContextRef context, + ffi.Pointer peerName, + ffi.Pointer peerNameLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetPeerDomainNameLength( + SSLContextRef context, + ffi.Pointer peerNameLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int SSLGetPeerID( + SSLContextRef context, + ffi.Pointer> peerID, + ffi.Pointer peerIDLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetProtocolVersion( + SSLContextRef context, + ffi.Pointer protocol, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function(SSLContextRef, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'SSLGetProtocolVersionEnabled') +external int _SSLGetProtocolVersionEnabled( + SSLContextRef context, + int protocol, + ffi.Pointer enable, +); + +DartSInt32 SSLGetProtocolVersionEnabled( + SSLContextRef context, + SSLProtocol protocol, + ffi.Pointer enable, +) { + return _SSLGetProtocolVersionEnabled(context, protocol.value, enable); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetProtocolVersionMax( + SSLContextRef context, + ffi.Pointer maxVersion, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetProtocolVersionMin( + SSLContextRef context, + ffi.Pointer minVersion, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetRsaBlinding( + SSLContextRef context, + ffi.Pointer blinding, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function(SSLContextRef, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'SSLGetSessionOption') +external int _SSLGetSessionOption( + SSLContextRef context, + int option, + ffi.Pointer value, +); + +DartSInt32 SSLGetSessionOption( + SSLContextRef context, + SSLSessionOption option, + ffi.Pointer value, +) { + return _SSLGetSessionOption(context, option.value, value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetSessionState( + SSLContextRef context, + ffi.Pointer state, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SSLGetSupportedCiphers( + SSLContextRef context, + ffi.Pointer ciphers, + ffi.Pointer numCiphers, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLHandshake(SSLContextRef context); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLNewContext(int isServer, ffi.Pointer contextPtr); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLReHandshake(SSLContextRef context); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external int SSLRead( + SSLContextRef context, + ffi.Pointer data, + int dataLength, + ffi.Pointer processed, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetALPNProtocols(SSLContextRef context, CFArrayRef protocols); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetAllowsAnyRoot(SSLContextRef context, int anyRoot); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetAllowsExpiredCerts(SSLContextRef context, int allowsExpired); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetAllowsExpiredRoots(SSLContextRef context, int allowsExpired); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetCertificate(SSLContextRef context, CFArrayRef certRefs); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetCertificateAuthorities( + SSLContextRef context, + CFTypeRef certificateOrArray, + int replaceExisting, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetClientSideAuthenticate', +) +external int _SSLSetClientSideAuthenticate(SSLContextRef context, int auth); + +DartSInt32 SSLSetClientSideAuthenticate( + SSLContextRef context, + SSLAuthenticate auth, +) { + return _SSLSetClientSideAuthenticate(context, auth.value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetConnection( + SSLContextRef context, + SSLConnectionRef connection, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native, ffi.Size)>() +external int SSLSetDatagramHelloCookie( + SSLContextRef dtlsContext, + ffi.Pointer cookie, + int cookieLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native, ffi.Size)>() +external int SSLSetDiffieHellmanParams( + SSLContextRef context, + ffi.Pointer dhParams, + int dhParamsLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetEnableCertVerify(SSLContextRef context, int enableVerify); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size) +>() +external int SSLSetEnabledCiphers( + SSLContextRef context, + ffi.Pointer ciphers, + int numCiphers, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetEncryptionCertificate( + SSLContextRef context, + CFArrayRef certRefs, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetError(SSLContextRef context, int status); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetIOFuncs( + SSLContextRef context, + SSLReadFunc readFunc, + SSLWriteFunc writeFunc, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetMaxDatagramRecordSize( + SSLContextRef dtlsContext, + int maxSize, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetOCSPResponse(SSLContextRef context, CFDataRef response); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native, ffi.Size)>() +external int SSLSetPeerDomainName( + SSLContextRef context, + ffi.Pointer peerName, + int peerNameLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native, ffi.Size)>() +external int SSLSetPeerID( + SSLContextRef context, + ffi.Pointer peerID, + int peerIDLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetProtocolVersion', +) +external int _SSLSetProtocolVersion(SSLContextRef context, int version); + +DartSInt32 SSLSetProtocolVersion(SSLContextRef context, SSLProtocol version) { + return _SSLSetProtocolVersion(context, version.value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetProtocolVersionEnabled', +) +external int _SSLSetProtocolVersionEnabled( + SSLContextRef context, + int protocol, + int enable, +); + +DartSInt32 SSLSetProtocolVersionEnabled( + SSLContextRef context, + SSLProtocol protocol, + DartBoolean enable, +) { + return _SSLSetProtocolVersionEnabled(context, protocol.value, enable); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetProtocolVersionMax', +) +external int _SSLSetProtocolVersionMax(SSLContextRef context, int maxVersion); + +DartSInt32 SSLSetProtocolVersionMax( + SSLContextRef context, + SSLProtocol maxVersion, +) { + return _SSLSetProtocolVersionMax(context, maxVersion.value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetProtocolVersionMin', +) +external int _SSLSetProtocolVersionMin(SSLContextRef context, int minVersion); + +DartSInt32 SSLSetProtocolVersionMin( + SSLContextRef context, + SSLProtocol minVersion, +) { + return _SSLSetProtocolVersionMin(context, minVersion.value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetRsaBlinding(SSLContextRef context, int blinding); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetSessionConfig(SSLContextRef context, CFStringRef config); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetSessionOption', +) +external int _SSLSetSessionOption(SSLContextRef context, int option, int value); + +DartSInt32 SSLSetSessionOption( + SSLContextRef context, + SSLSessionOption option, + DartBoolean value, +) { + return _SSLSetSessionOption(context, option.value, value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetSessionTicketsEnabled(SSLContextRef context, int enabled); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetTrustedRoots( + SSLContextRef context, + CFArrayRef trustedRoots, + int replaceExisting, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external int SSLWrite( + SSLContextRef context, + ffi.Pointer data, + int dataLength, + ffi.Pointer processed, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SameProcess( + ffi.Pointer PSN1, + ffi.Pointer PSN2, + ffi.Pointer result, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external CFArrayRef SecACLCopyAuthorizations(SecACLRef acl); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecACLRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecACLCopyContents( + SecACLRef acl, + ffi.Pointer applicationList, + ffi.Pointer description, + ffi.Pointer promptSelector, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecACLRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecACLCopySimpleContents( + SecACLRef acl, + ffi.Pointer applicationList, + ffi.Pointer description, + ffi.Pointer promptSelector, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecAccessRef, + CFArrayRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecACLCreateFromSimpleContents( + SecAccessRef access$1, + CFArrayRef applicationList, + CFStringRef description, + ffi.Pointer promptSelector, + ffi.Pointer newAcl, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecAccessRef, + CFArrayRef, + CFStringRef, + uint16, + ffi.Pointer, + ) +>() +external int SecACLCreateWithSimpleContents( + SecAccessRef access$1, + CFArrayRef applicationList, + CFStringRef description, + int promptSelector, + ffi.Pointer newAcl, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecACLRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecACLGetAuthorizations( + SecACLRef acl, + ffi.Pointer tags, + ffi.Pointer tagCount, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecACLGetTypeID(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecACLRemove(SecACLRef aclRef); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function(SecACLRef, ffi.Pointer, uint32) +>() +external int SecACLSetAuthorizations( + SecACLRef acl, + ffi.Pointer tags, + int tagCount, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecACLSetContents( + SecACLRef acl, + CFArrayRef applicationList, + CFStringRef description, + int promptSelector, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecACLRef, + CFArrayRef, + CFStringRef, + ffi.Pointer, + ) +>() +external int SecACLSetSimpleContents( + SecACLRef acl, + CFArrayRef applicationList, + CFStringRef description, + ffi.Pointer promptSelector, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecACLUpdateAuthorizations( + SecACLRef acl, + CFArrayRef authorizations, +); + +@ffi.Native< + SecAccessControlRef Function( + CFAllocatorRef, + CFTypeRef, + CFOptionFlags, + ffi.Pointer, + ) +>() +external SecAccessControlRef SecAccessControlCreateWithFlags( + CFAllocatorRef allocator, + CFTypeRef protection, + int flags, + ffi.Pointer error, +); + +@ffi.Native() +external int SecAccessControlGetTypeID(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecAccessCopyACLList( + SecAccessRef accessRef, + ffi.Pointer aclList, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external CFArrayRef SecAccessCopyMatchingACLList( + SecAccessRef accessRef, + CFTypeRef authorizationTag, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecAccessRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecAccessCopyOwnerAndACL( + SecAccessRef accessRef, + ffi.Pointer userId, + ffi.Pointer groupId, + ffi.Pointer ownerType, + ffi.Pointer aclList, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecAccessRef, + CSSM_ACL_AUTHORIZATION_TAG, + ffi.Pointer, + ) +>() +external int SecAccessCopySelectedACLList( + SecAccessRef accessRef, + int action, + ffi.Pointer aclList, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(CFStringRef, CFArrayRef, ffi.Pointer) +>() +external int SecAccessCreate( + CFStringRef descriptor, + CFArrayRef trustedlist, + ffi.Pointer accessRef, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecAccessCreateFromOwnerAndACL( + ffi.Pointer owner, + int aclCount, + ffi.Pointer acls, + ffi.Pointer accessRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + SecAccessRef Function( + uid_t, + gid_t, + SecAccessOwnerType, + CFArrayRef, + ffi.Pointer, + ) +>() +external SecAccessRef SecAccessCreateWithOwnerAndACL( + int userId, + int groupId, + int ownerType, + CFArrayRef acls, + ffi.Pointer error, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecAccessRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecAccessGetOwnerAndACL( + SecAccessRef accessRef, + ffi.Pointer owner, + ffi.Pointer aclCount, + ffi.Pointer acls, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecAccessGetTypeID(); + +@ffi.Native< + ffi.Void Function( + CFStringRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>(symbol: 'SecAddSharedWebCredential') +external void _SecAddSharedWebCredential( + CFStringRef fqdn, + CFStringRef account, + CFStringRef password, + ffi.Pointer completionHandler, +); + +void SecAddSharedWebCredential( + CFStringRef fqdn, + CFStringRef account, + CFStringRef password, + objc.ObjCBlock)> completionHandler, +) { + final _$$ref = completionHandler.ref; + return _SecAddSharedWebCredential(fqdn, account, password, _$$ref.pointer); +} + +@ffi.Native() +external int SecCertificateAddToKeychain( + SecCertificateRef certificate, + SecKeychainRef keychain, +); + +@ffi.Native)>() +external int SecCertificateCopyCommonName( + SecCertificateRef certificate, + ffi.Pointer commonName, +); + +@ffi.Native() +external CFDataRef SecCertificateCopyData(SecCertificateRef certificate); + +@ffi.Native)>() +external int SecCertificateCopyEmailAddresses( + SecCertificateRef certificate, + ffi.Pointer emailAddresses, +); + +@ffi.Native() +external SecKeyRef SecCertificateCopyKey(SecCertificateRef certificate); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + SecCertificateRef, + ffi.Pointer, + ) +>() +external CFStringRef SecCertificateCopyLongDescription( + CFAllocatorRef alloc, + SecCertificateRef certificate, + ffi.Pointer error, +); + +@Deprecated( + 'SecCertificateCopyNormalizedIssuerContent is deprecated. Use SecCertificateCopyNormalizedIssuerSequence instead.', +) +@ffi.Native)>() +external CFDataRef SecCertificateCopyNormalizedIssuerContent( + SecCertificateRef certificate, + ffi.Pointer error, +); + +@ffi.Native() +external CFDataRef SecCertificateCopyNormalizedIssuerSequence( + SecCertificateRef certificate, +); + +@Deprecated( + 'SecCertificateCopyNormalizedSubjectContent is deprecated. Use SecCertificateCopyNormalizedSubjectSequence instead.', +) +@ffi.Native)>() +external CFDataRef SecCertificateCopyNormalizedSubjectContent( + SecCertificateRef certificate, + ffi.Pointer error, +); + +@ffi.Native() +external CFDataRef SecCertificateCopyNormalizedSubjectSequence( + SecCertificateRef certificate, +); + +@ffi.Native() +external CFDateRef SecCertificateCopyNotValidAfterDate( + SecCertificateRef certificate, +); + +@ffi.Native() +external CFDateRef SecCertificateCopyNotValidBeforeDate( + SecCertificateRef certificate, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(CFStringRef, uint32, ffi.Pointer) +>() +external int SecCertificateCopyPreference( + CFStringRef name, + int keyUsage, + ffi.Pointer certificate, +); + +@ffi.Native() +external SecCertificateRef SecCertificateCopyPreferred( + CFStringRef name, + CFArrayRef keyUsage, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecCertificateCopyPublicKey( + SecCertificateRef certificate, + ffi.Pointer key, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external CFDataRef SecCertificateCopySerialNumber( + SecCertificateRef certificate, + ffi.Pointer error, +); + +@ffi.Native)>() +external CFDataRef SecCertificateCopySerialNumberData( + SecCertificateRef certificate, + ffi.Pointer error, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + SecCertificateRef, + ffi.Pointer, + ) +>() +external CFStringRef SecCertificateCopyShortDescription( + CFAllocatorRef alloc, + SecCertificateRef certificate, + ffi.Pointer error, +); + +@ffi.Native() +external CFStringRef SecCertificateCopySubjectSummary( + SecCertificateRef certificate, +); + +@ffi.Native< + CFDictionaryRef Function( + SecCertificateRef, + CFArrayRef, + ffi.Pointer, + ) +>() +external CFDictionaryRef SecCertificateCopyValues( + SecCertificateRef certificate, + CFArrayRef keys, + ffi.Pointer error, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + CSSM_CERT_TYPE, + CSSM_CERT_ENCODING, + ffi.Pointer, + ) +>() +external int SecCertificateCreateFromData( + ffi.Pointer data, + int type, + int encoding, + ffi.Pointer certificate, +); + +@ffi.Native() +external SecCertificateRef SecCertificateCreateWithData( + CFAllocatorRef allocator, + CFDataRef data, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecCertificateRef, ffi.Pointer>) +>() +external int SecCertificateGetAlgorithmID( + SecCertificateRef certificate, + ffi.Pointer> algid, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecCertificateGetCLHandle( + SecCertificateRef certificate, + ffi.Pointer clHandle, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecCertificateGetData( + SecCertificateRef certificate, + CSSM_DATA_PTR data, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecCertificateRef, ffi.Pointer>) +>() +external int SecCertificateGetIssuer( + SecCertificateRef certificate, + ffi.Pointer> issuer, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecCertificateRef, ffi.Pointer>) +>() +external int SecCertificateGetSubject( + SecCertificateRef certificate, + ffi.Pointer> subject, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecCertificateGetType( + SecCertificateRef certificate, + ffi.Pointer certificateType, +); + +@ffi.Native() +external int SecCertificateGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecCertificateRef, CFStringRef, uint32, CFDateRef) +>() +external int SecCertificateSetPreference( + SecCertificateRef certificate, + CFStringRef name, + int keyUsage, + CFDateRef date, +); + +@ffi.Native() +external int SecCertificateSetPreferred( + SecCertificateRef certificate, + CFStringRef name, + CFArrayRef keyUsage, +); + +@ffi.Native() +external int SecCodeCheckValidity( + SecCodeRef code, + int flags, + SecRequirementRef requirement, +); + +@ffi.Native< + OSStatus Function( + SecCodeRef, + ffi.Uint32, + SecRequirementRef, + ffi.Pointer, + ) +>() +external int SecCodeCheckValidityWithErrors( + SecCodeRef code, + int flags, + SecRequirementRef requirement, + ffi.Pointer errors, +); + +@ffi.Native< + OSStatus Function( + SecStaticCodeRef, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int SecCodeCopyDesignatedRequirement( + SecStaticCodeRef code, + int flags, + ffi.Pointer requirement, +); + +@ffi.Native< + OSStatus Function( + SecCodeRef, + CFDictionaryRef, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int SecCodeCopyGuestWithAttributes( + SecCodeRef host, + CFDictionaryRef attributes, + int flags, + ffi.Pointer guest, +); + +@ffi.Native< + OSStatus Function(SecCodeRef, ffi.Uint32, ffi.Pointer) +>() +external int SecCodeCopyHost( + SecCodeRef guest, + int flags, + ffi.Pointer host, +); + +@ffi.Native< + OSStatus Function(SecStaticCodeRef, ffi.Uint32, ffi.Pointer) +>() +external int SecCodeCopyPath( + SecStaticCodeRef staticCode, + int flags, + ffi.Pointer path, +); + +@ffi.Native)>() +external int SecCodeCopySelf(int flags, ffi.Pointer self); + +@ffi.Native< + OSStatus Function(SecStaticCodeRef, ffi.Uint32, ffi.Pointer) +>() +external int SecCodeCopySigningInformation( + SecStaticCodeRef code, + int flags, + ffi.Pointer information, +); + +@ffi.Native< + OSStatus Function(SecCodeRef, ffi.Uint32, ffi.Pointer) +>() +external int SecCodeCopyStaticCode( + SecCodeRef code, + int flags, + ffi.Pointer staticCode, +); + +@ffi.Native< + OSStatus Function(xpc_object_t, ffi.Uint32, ffi.Pointer) +>(symbol: 'SecCodeCreateWithXPCMessage') +external int _SecCodeCreateWithXPCMessage( + xpc_object_t message, + int flags, + ffi.Pointer target, +); + +DartSInt32 SecCodeCreateWithXPCMessage( + Dartxpc_object_t message, + int flags, + ffi.Pointer target, +) { + final _$$ref = message.ref; + return _SecCodeCreateWithXPCMessage(_$$ref.pointer, flags, target); +} + +@ffi.Native() +external int SecCodeGetTypeID(); + +@ffi.Native() +external int SecCodeMapMemory(SecStaticCodeRef code, int flags); + +@ffi.Native< + OSStatus Function(SecStaticCodeRef, CFStringRef, CFDataRef, ffi.Uint32) +>() +external int SecCodeValidateFileResource( + SecStaticCodeRef code, + CFStringRef relativePath, + CFDataRef fileData, + int flags, +); + +@ffi.Native)>() +external CFStringRef SecCopyErrorMessageString( + int status, + ffi.Pointer reserved, +); + +@ffi.Native() +external CFStringRef SecCreateSharedWebCredentialPassword(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecDecodeTransformCreate( + CFTypeRef DecodeType, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecDecryptTransformCreate( + SecKeyRef keyRef, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external int SecDecryptTransformGetTypeID(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + SecTransformRef Function(CFTypeRef, CFIndex, ffi.Pointer) +>() +external SecTransformRef SecDigestTransformCreate( + CFTypeRef digestType, + int digestLength, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external int SecDigestTransformGetTypeID(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecEncodeTransformCreate( + CFTypeRef encodeType, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecEncryptTransformCreate( + SecKeyRef keyRef, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external int SecEncryptTransformGetTypeID(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external int SecGroupTransformGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + SecGuestRef, + ffi.Uint32, + CFURLRef, + CFDictionaryRef, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int SecHostCreateGuest( + int host, + int status, + CFURLRef path, + CFDictionaryRef attributes, + int flags, + ffi.Pointer newGuest, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecHostRemoveGuest(int host, int guest, int flags); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecHostSelectGuest(int guestRef, int flags); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecHostSelectedGuest(int flags, ffi.Pointer guestRef); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecGuestRef, ffi.Uint32, CFDictionaryRef, ffi.Uint32) +>() +external int SecHostSetGuestStatus( + int guestRef, + int status, + CFDictionaryRef attributes, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecHostSetHostingPort(int hostingPort, int flags); + +@ffi.Native)>() +external int SecIdentityCopyCertificate( + SecIdentityRef identityRef, + ffi.Pointer certificateRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFStringRef, + CSSM_KEYUSE, + CFArrayRef, + ffi.Pointer, + ) +>() +external int SecIdentityCopyPreference( + CFStringRef name, + int keyUsage, + CFArrayRef validIssuers, + ffi.Pointer identity, +); + +@ffi.Native() +external SecIdentityRef SecIdentityCopyPreferred( + CFStringRef name, + CFArrayRef keyUsage, + CFArrayRef validIssuers, +); + +@ffi.Native)>() +external int SecIdentityCopyPrivateKey( + SecIdentityRef identityRef, + ffi.Pointer privateKeyRef, +); + +@ffi.Native< + OSStatus Function( + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecIdentityCopySystemIdentity( + CFStringRef domain, + ffi.Pointer idRef, + ffi.Pointer actualDomain, +); + +@ffi.Native< + SecIdentityRef Function(CFAllocatorRef, SecCertificateRef, SecKeyRef) +>() +external SecIdentityRef SecIdentityCreate( + CFAllocatorRef allocator, + SecCertificateRef certificate, + SecKeyRef privateKey, +); + +@ffi.Native< + OSStatus Function(CFTypeRef, SecCertificateRef, ffi.Pointer) +>() +external int SecIdentityCreateWithCertificate( + CFTypeRef keychainOrArray, + SecCertificateRef certificateRef, + ffi.Pointer identityRef, +); + +@ffi.Native() +external int SecIdentityGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecIdentitySearchRef, ffi.Pointer) +>() +external int SecIdentitySearchCopyNext( + SecIdentitySearchRef searchRef, + ffi.Pointer identity, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(CFTypeRef, CSSM_KEYUSE, ffi.Pointer) +>() +external int SecIdentitySearchCreate( + CFTypeRef keychainOrArray, + int keyUsage, + ffi.Pointer searchRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecIdentitySearchGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecIdentitySetPreference( + SecIdentityRef identity, + CFStringRef name, + int keyUsage, +); + +@ffi.Native() +external int SecIdentitySetPreferred( + SecIdentityRef identity, + CFStringRef name, + CFArrayRef keyUsage, +); + +@ffi.Native() +external int SecIdentitySetSystemIdentity( + CFStringRef domain, + SecIdentityRef idRef, +); + +@ffi.Native)>() +external int SecItemAdd( + CFDictionaryRef attributes, + ffi.Pointer result, +); + +@ffi.Native)>() +external int SecItemCopyMatching( + CFDictionaryRef query, + ffi.Pointer result, +); + +@ffi.Native() +external int SecItemDelete(CFDictionaryRef query); + +@ffi.Native< + OSStatus Function( + CFTypeRef, + ffi.Uint32, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'SecItemExport') +external int _SecItemExport( + CFTypeRef secItemOrArray, + int outputFormat, + int flags, + ffi.Pointer keyParams, + ffi.Pointer exportedData, +); + +DartSInt32 SecItemExport( + CFTypeRef secItemOrArray, + SecExternalFormat outputFormat, + int flags, + ffi.Pointer keyParams, + ffi.Pointer exportedData, +) { + return _SecItemExport( + secItemOrArray, + outputFormat.value, + flags, + keyParams, + exportedData, + ); +} + +@ffi.Native< + OSStatus Function( + CFDataRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + SecKeychainRef, + ffi.Pointer, + ) +>() +external int SecItemImport( + CFDataRef importedData, + CFStringRef fileNameOrExtension, + ffi.Pointer inputFormat, + ffi.Pointer itemType, + int flags, + ffi.Pointer keyParams, + SecKeychainRef importKeychain, + ffi.Pointer outItems, +); + +@ffi.Native() +external int SecItemUpdate( + CFDictionaryRef query, + CFDictionaryRef attributesToUpdate, +); + +@ffi.Native() +external CFDictionaryRef SecKeyCopyAttributes(SecKeyRef key); + +@ffi.Native)>() +external CFDataRef SecKeyCopyExternalRepresentation( + SecKeyRef key, + ffi.Pointer error, +); + +@ffi.Native< + CFDataRef Function( + SecKeyRef, + SecKeyAlgorithm, + SecKeyRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external CFDataRef SecKeyCopyKeyExchangeResult( + SecKeyRef privateKey, + SecKeyAlgorithm algorithm, + SecKeyRef publicKey, + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@ffi.Native() +external SecKeyRef SecKeyCopyPublicKey(SecKeyRef key); + +@ffi.Native< + CFDataRef Function( + SecKeyRef, + SecKeyAlgorithm, + CFDataRef, + ffi.Pointer, + ) +>() +external CFDataRef SecKeyCreateDecryptedData( + SecKeyRef key, + SecKeyAlgorithm algorithm, + CFDataRef ciphertext, + ffi.Pointer error, +); + +@ffi.Native< + CFDataRef Function( + SecKeyRef, + SecKeyAlgorithm, + CFDataRef, + ffi.Pointer, + ) +>() +external CFDataRef SecKeyCreateEncryptedData( + SecKeyRef key, + SecKeyAlgorithm algorithm, + CFDataRef plaintext, + ffi.Pointer error, +); + +@Deprecated('No longer supported') +@ffi.Native< + SecKeyRef Function(CFDictionaryRef, CFDataRef, ffi.Pointer) +>() +external SecKeyRef SecKeyCreateFromData( + CFDictionaryRef parameters, + CFDataRef keyData, + ffi.Pointer error, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecKeychainRef, + CSSM_ALGORITHMS, + uint32, + CSSM_CC_HANDLE, + CSSM_KEYUSE, + uint32, + CSSM_KEYUSE, + uint32, + SecAccessRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecKeyCreatePair( + SecKeychainRef keychainRef, + int algorithm, + int keySizeInBits, + int contextHandle, + int publicKeyUsage, + int publicKeyAttr, + int privateKeyUsage, + int privateKeyAttr, + SecAccessRef initialAccess, + ffi.Pointer publicKey, + ffi.Pointer privateKey, +); + +@ffi.Native)>() +external SecKeyRef SecKeyCreateRandomKey( + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@ffi.Native< + CFDataRef Function( + SecKeyRef, + SecKeyAlgorithm, + CFDataRef, + ffi.Pointer, + ) +>() +external CFDataRef SecKeyCreateSignature( + SecKeyRef key, + SecKeyAlgorithm algorithm, + CFDataRef dataToSign, + ffi.Pointer error, +); + +@ffi.Native< + SecKeyRef Function(CFDataRef, CFDictionaryRef, ffi.Pointer) +>() +external SecKeyRef SecKeyCreateWithData( + CFDataRef keyData, + CFDictionaryRef attributes, + ffi.Pointer error, +); + +@Deprecated('No longer supported') +@ffi.Native< + SecKeyRef Function(CFStringRef, CFDictionaryRef, ffi.Pointer) +>() +external SecKeyRef SecKeyDeriveFromPassword( + CFStringRef password, + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecKeychainRef, + CSSM_ALGORITHMS, + uint32, + CSSM_CC_HANDLE, + CSSM_KEYUSE, + uint32, + SecAccessRef, + ffi.Pointer, + ) +>() +external int SecKeyGenerate( + SecKeychainRef keychainRef, + int algorithm, + int keySizeInBits, + int contextHandle, + int keyUsage, + int keyAttr, + SecAccessRef initialAccess, + ffi.Pointer keyRef, +); + +@Deprecated('Use SecKeyCreateRandomKey') +@ffi.Native< + OSStatus Function( + CFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecKeyGeneratePair( + CFDictionaryRef parameters, + ffi.Pointer publicKey, + ffi.Pointer privateKey, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(CFDictionaryRef, dispatch_queue_t, SecKeyGeneratePairBlock) +>(symbol: 'SecKeyGeneratePairAsync') +external void _SecKeyGeneratePairAsync( + CFDictionaryRef parameters, + dispatch_queue_t deliveryQueue, + SecKeyGeneratePairBlock result, +); + +void SecKeyGeneratePairAsync( + CFDictionaryRef parameters, + Dartdispatch_queue_t deliveryQueue, + DartSecKeyGeneratePairBlock result, +) { + final _$$ref = deliveryQueue.ref; + final _$$ref$1 = result.ref; + return _SecKeyGeneratePairAsync(parameters, _$$ref.pointer, _$$ref$1.pointer); +} + +@Deprecated('No longer supported') +@ffi.Native)>() +external SecKeyRef SecKeyGenerateSymmetric( + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@ffi.Native() +external int SecKeyGetBlockSize(SecKeyRef key); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecKeyGetCSPHandle( + SecKeyRef keyRef, + ffi.Pointer cspHandle, +); + +@Deprecated('Deprecated') +@ffi.Native>)>() +external int SecKeyGetCSSMKey( + SecKeyRef key, + ffi.Pointer> cssmKey, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + SecKeyRef, + CSSM_ACL_AUTHORIZATION_TAG, + uint32, + ffi.Pointer>, + ) +>(symbol: 'SecKeyGetCredentials') +external int _SecKeyGetCredentials( + SecKeyRef keyRef, + int operation, + int credentialType, + ffi.Pointer> outCredentials, +); + +DartSInt32 SecKeyGetCredentials( + SecKeyRef keyRef, + Dartsint32 operation, + SecCredentialType credentialType, + ffi.Pointer> outCredentials, +) { + return _SecKeyGetCredentials( + keyRef, + operation, + credentialType.value, + outCredentials, + ); +} + +@ffi.Native() +external int SecKeyGetTypeID(); + +@ffi.Native( + symbol: 'SecKeyIsAlgorithmSupported', +) +external int _SecKeyIsAlgorithmSupported( + SecKeyRef key, + int operation, + SecKeyAlgorithm algorithm, +); + +DartBoolean SecKeyIsAlgorithmSupported( + SecKeyRef key, + SecKeyOperationType operation, + SecKeyAlgorithm algorithm, +) { + return _SecKeyIsAlgorithmSupported(key, operation.value, algorithm); +} + +@Deprecated('No longer supported') +@ffi.Native< + SecKeyRef Function( + ffi.Pointer, + SecKeyRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external SecKeyRef SecKeyUnwrapSymmetric( + ffi.Pointer keyToUnwrap, + SecKeyRef unwrappingKey, + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function( + SecKeyRef, + SecKeyAlgorithm, + CFDataRef, + CFDataRef, + ffi.Pointer, + ) +>() +external int SecKeyVerifySignature( + SecKeyRef key, + SecKeyAlgorithm algorithm, + CFDataRef signedData, + CFDataRef signature, + ffi.Pointer error, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDataRef Function( + SecKeyRef, + SecKeyRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external CFDataRef SecKeyWrapSymmetric( + SecKeyRef keyToWrap, + SecKeyRef wrappingKey, + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainCallback, UInt32, ffi.Pointer) +>() +external int SecKeychainAddCallback( + SecKeychainCallback callbackFunction, + int eventMask, + ffi.Pointer userContext, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainRef, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecKeychainAddGenericPassword( + SecKeychainRef keychain, + int serviceNameLength, + ffi.Pointer serviceName, + int accountNameLength, + ffi.Pointer accountName, + int passwordLength, + ffi.Pointer passwordData, + ffi.Pointer itemRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainRef, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt16, + FourCharCode, + FourCharCode, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'SecKeychainAddInternetPassword') +external int _SecKeychainAddInternetPassword( + SecKeychainRef keychain, + int serverNameLength, + ffi.Pointer serverName, + int securityDomainLength, + ffi.Pointer securityDomain, + int accountNameLength, + ffi.Pointer accountName, + int pathLength, + ffi.Pointer path, + int port, + int protocol, + int authenticationType, + int passwordLength, + ffi.Pointer passwordData, + ffi.Pointer itemRef, +); + +DartSInt32 SecKeychainAddInternetPassword( + SecKeychainRef keychain, + DartUInt32 serverNameLength, + ffi.Pointer serverName, + DartUInt32 securityDomainLength, + ffi.Pointer securityDomain, + DartUInt32 accountNameLength, + ffi.Pointer accountName, + DartUInt32 pathLength, + ffi.Pointer path, + DartUInt16 port, + SecProtocolType protocol, + SecAuthenticationType authenticationType, + DartUInt32 passwordLength, + ffi.Pointer passwordData, + ffi.Pointer itemRef, +) { + return _SecKeychainAddInternetPassword( + keychain, + serverNameLength, + serverName, + securityDomainLength, + securityDomain, + accountNameLength, + accountName, + pathLength, + path, + port, + protocol.value, + authenticationType.value, + passwordLength, + passwordData, + itemRef, + ); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainRef, + UInt32, + ffi.Pointer>, + ) +>() +external int SecKeychainAttributeInfoForItemID( + SecKeychainRef keychain, + int itemID, + ffi.Pointer> info, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainCopyAccess( + SecKeychainRef keychain, + ffi.Pointer access$1, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainCopyDefault(ffi.Pointer keychain); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>( + symbol: 'SecKeychainCopyDomainDefault', +) +external int _SecKeychainCopyDomainDefault( + int domain, + ffi.Pointer keychain, +); + +DartSInt32 SecKeychainCopyDomainDefault( + SecPreferencesDomain domain, + ffi.Pointer keychain, +) { + return _SecKeychainCopyDomainDefault(domain.value, keychain); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>( + symbol: 'SecKeychainCopyDomainSearchList', +) +external int _SecKeychainCopyDomainSearchList( + int domain, + ffi.Pointer searchList, +); + +DartSInt32 SecKeychainCopyDomainSearchList( + SecPreferencesDomain domain, + ffi.Pointer searchList, +) { + return _SecKeychainCopyDomainSearchList(domain.value, searchList); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainCopySearchList(ffi.Pointer searchList); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainRef, ffi.Pointer) +>() +external int SecKeychainCopySettings( + SecKeychainRef keychain, + ffi.Pointer outSettings, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + UInt32, + ffi.Pointer, + Boolean, + SecAccessRef, + ffi.Pointer, + ) +>() +external int SecKeychainCreate( + ffi.Pointer pathName, + int passwordLength, + ffi.Pointer password, + int promptUser, + SecAccessRef initialAccess, + ffi.Pointer keychain, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainDelete(SecKeychainRef keychainOrArray); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + CFTypeRef, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int SecKeychainFindGenericPassword( + CFTypeRef keychainOrArray, + int serviceNameLength, + ffi.Pointer serviceName, + int accountNameLength, + ffi.Pointer accountName, + ffi.Pointer passwordLength, + ffi.Pointer> passwordData, + ffi.Pointer itemRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + CFTypeRef, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt16, + FourCharCode, + FourCharCode, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>(symbol: 'SecKeychainFindInternetPassword') +external int _SecKeychainFindInternetPassword( + CFTypeRef keychainOrArray, + int serverNameLength, + ffi.Pointer serverName, + int securityDomainLength, + ffi.Pointer securityDomain, + int accountNameLength, + ffi.Pointer accountName, + int pathLength, + ffi.Pointer path, + int port, + int protocol, + int authenticationType, + ffi.Pointer passwordLength, + ffi.Pointer> passwordData, + ffi.Pointer itemRef, +); + +DartSInt32 SecKeychainFindInternetPassword( + CFTypeRef keychainOrArray, + DartUInt32 serverNameLength, + ffi.Pointer serverName, + DartUInt32 securityDomainLength, + ffi.Pointer securityDomain, + DartUInt32 accountNameLength, + ffi.Pointer accountName, + DartUInt32 pathLength, + ffi.Pointer path, + DartUInt16 port, + SecProtocolType protocol, + SecAuthenticationType authenticationType, + ffi.Pointer passwordLength, + ffi.Pointer> passwordData, + ffi.Pointer itemRef, +) { + return _SecKeychainFindInternetPassword( + keychainOrArray, + serverNameLength, + serverName, + securityDomainLength, + securityDomain, + accountNameLength, + accountName, + pathLength, + path, + port, + protocol.value, + authenticationType.value, + passwordLength, + passwordData, + itemRef, + ); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainFreeAttributeInfo( + ffi.Pointer info, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecKeychainGetCSPHandle( + SecKeychainRef keychain, + ffi.Pointer cspHandle, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecKeychainGetDLDBHandle( + SecKeychainRef keychain, + ffi.Pointer dldbHandle, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainRef, ffi.Pointer, ffi.Pointer) +>() +external int SecKeychainGetPath( + SecKeychainRef keychain, + ffi.Pointer ioPathLength, + ffi.Pointer pathName, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainGetPreferenceDomain( + ffi.Pointer domain, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainGetStatus( + SecKeychainRef keychain, + ffi.Pointer keychainStatus, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainGetTypeID(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainGetUserInteractionAllowed(ffi.Pointer state); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainGetVersion(ffi.Pointer returnVers); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainItemCopyAccess( + SecKeychainItemRef itemRef, + ffi.Pointer access$1, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int SecKeychainItemCopyAttributesAndData( + SecKeychainItemRef itemRef, + ffi.Pointer info, + ffi.Pointer itemClass, + ffi.Pointer> attrList, + ffi.Pointer length, + ffi.Pointer> outData, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int SecKeychainItemCopyContent( + SecKeychainItemRef itemRef, + ffi.Pointer itemClass, + ffi.Pointer attrList, + ffi.Pointer length, + ffi.Pointer> outData, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainItemCopyFromPersistentReference( + CFDataRef persistentItemRef, + ffi.Pointer itemRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainItemRef, ffi.Pointer) +>() +external int SecKeychainItemCopyKeychain( + SecKeychainItemRef itemRef, + ffi.Pointer keychainRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + SecKeychainRef, + SecAccessRef, + ffi.Pointer, + ) +>() +external int SecKeychainItemCreateCopy( + SecKeychainItemRef itemRef, + SecKeychainRef destKeychainRef, + SecAccessRef initialAccess, + ffi.Pointer itemCopy, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + FourCharCode, + ffi.Pointer, + UInt32, + ffi.Pointer, + SecKeychainRef, + SecAccessRef, + ffi.Pointer, + ) +>(symbol: 'SecKeychainItemCreateFromContent') +external int _SecKeychainItemCreateFromContent( + int itemClass, + ffi.Pointer attrList, + int length, + ffi.Pointer data, + SecKeychainRef keychainRef, + SecAccessRef initialAccess, + ffi.Pointer itemRef, +); + +DartSInt32 SecKeychainItemCreateFromContent( + SecItemClass itemClass, + ffi.Pointer attrList, + DartUInt32 length, + ffi.Pointer data, + SecKeychainRef keychainRef, + SecAccessRef initialAccess, + ffi.Pointer itemRef, +) { + return _SecKeychainItemCreateFromContent( + itemClass.value, + attrList, + length, + data, + keychainRef, + initialAccess, + itemRef, + ); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainItemCreatePersistentReference( + SecKeychainItemRef itemRef, + ffi.Pointer persistentItemRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainItemDelete(SecKeychainItemRef itemRef); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFTypeRef, + ffi.Uint32, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'SecKeychainItemExport') +external int _SecKeychainItemExport( + CFTypeRef keychainItemOrArray, + int outputFormat, + int flags, + ffi.Pointer keyParams, + ffi.Pointer exportedData, +); + +DartSInt32 SecKeychainItemExport( + CFTypeRef keychainItemOrArray, + SecExternalFormat outputFormat, + int flags, + ffi.Pointer keyParams, + ffi.Pointer exportedData, +) { + return _SecKeychainItemExport( + keychainItemOrArray, + outputFormat.value, + flags, + keyParams, + exportedData, + ); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecKeychainItemFreeAttributesAndData( + ffi.Pointer attrList, + ffi.Pointer data, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecKeychainItemFreeContent( + ffi.Pointer attrList, + ffi.Pointer data, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function(SecKeychainItemRef, ffi.Pointer) +>() +external int SecKeychainItemGetDLDBHandle( + SecKeychainItemRef keyItemRef, + ffi.Pointer dldbHandle, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainItemGetTypeID(); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + ffi.Pointer>, + ) +>() +external int SecKeychainItemGetUniqueRecordID( + SecKeychainItemRef itemRef, + ffi.Pointer> uniqueRecordID, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFDataRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + SecKeychainRef, + ffi.Pointer, + ) +>() +external int SecKeychainItemImport( + CFDataRef importedData, + CFStringRef fileNameOrExtension, + ffi.Pointer inputFormat, + ffi.Pointer itemType, + int flags, + ffi.Pointer keyParams, + SecKeychainRef importKeychain, + ffi.Pointer outItems, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + ffi.Pointer, + UInt32, + ffi.Pointer, + ) +>() +external int SecKeychainItemModifyAttributesAndData( + SecKeychainItemRef itemRef, + ffi.Pointer attrList, + int length, + ffi.Pointer data, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + ffi.Pointer, + UInt32, + ffi.Pointer, + ) +>() +external int SecKeychainItemModifyContent( + SecKeychainItemRef itemRef, + ffi.Pointer attrList, + int length, + ffi.Pointer data, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainItemSetAccess( + SecKeychainItemRef itemRef, + SecAccessRef access$1, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainLock(SecKeychainRef keychain); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainLockAll(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int SecKeychainOpen( + ffi.Pointer pathName, + ffi.Pointer keychain, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainRemoveCallback(SecKeychainCallback callbackFunction); + +@Deprecated('SecKeychainSearch is not supported') +@ffi.Native< + OSStatus Function(SecKeychainSearchRef, ffi.Pointer) +>() +external int SecKeychainSearchCopyNext( + SecKeychainSearchRef searchRef, + ffi.Pointer itemRef, +); + +@Deprecated('SecKeychainSearch is not supported') +@ffi.Native< + OSStatus Function( + CFTypeRef, + FourCharCode, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'SecKeychainSearchCreateFromAttributes') +external int _SecKeychainSearchCreateFromAttributes( + CFTypeRef keychainOrArray, + int itemClass, + ffi.Pointer attrList, + ffi.Pointer searchRef, +); + +DartSInt32 SecKeychainSearchCreateFromAttributes( + CFTypeRef keychainOrArray, + SecItemClass itemClass, + ffi.Pointer attrList, + ffi.Pointer searchRef, +) { + return _SecKeychainSearchCreateFromAttributes( + keychainOrArray, + itemClass.value, + attrList, + searchRef, + ); +} + +@Deprecated('SecKeychainSearch is not supported') +@ffi.Native() +external int SecKeychainSearchGetTypeID(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainSetAccess( + SecKeychainRef keychain, + SecAccessRef access$1, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainSetDefault(SecKeychainRef keychain); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native( + symbol: 'SecKeychainSetDomainDefault', +) +external int _SecKeychainSetDomainDefault(int domain, SecKeychainRef keychain); + +DartSInt32 SecKeychainSetDomainDefault( + SecPreferencesDomain domain, + SecKeychainRef keychain, +) { + return _SecKeychainSetDomainDefault(domain.value, keychain); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native( + symbol: 'SecKeychainSetDomainSearchList', +) +external int _SecKeychainSetDomainSearchList(int domain, CFArrayRef searchList); + +DartSInt32 SecKeychainSetDomainSearchList( + SecPreferencesDomain domain, + CFArrayRef searchList, +) { + return _SecKeychainSetDomainSearchList(domain.value, searchList); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native( + symbol: 'SecKeychainSetPreferenceDomain', +) +external int _SecKeychainSetPreferenceDomain(int domain); + +DartSInt32 SecKeychainSetPreferenceDomain(SecPreferencesDomain domain) { + return _SecKeychainSetPreferenceDomain(domain.value); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainSetSearchList(CFArrayRef searchList); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainRef, ffi.Pointer) +>() +external int SecKeychainSetSettings( + SecKeychainRef keychain, + ffi.Pointer newSettings, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainSetUserInteractionAllowed(int state); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainRef, UInt32, ffi.Pointer, Boolean) +>() +external int SecKeychainUnlock( + SecKeychainRef keychain, + int passwordLength, + ffi.Pointer password, + int usePassword, +); + +@ffi.Native< + OSStatus Function(CFDataRef, CFDictionaryRef, ffi.Pointer) +>() +external int SecPKCS12Import( + CFDataRef pkcs12_data, + CFDictionaryRef options, + ffi.Pointer items, +); + +@ffi.Native() +external CFDictionaryRef SecPolicyCopyProperties(SecPolicyRef policyRef); + +@ffi.Native() +external SecPolicyRef SecPolicyCreateBasicX509(); + +@ffi.Native() +external SecPolicyRef SecPolicyCreateRevocation(int revocationFlags); + +@ffi.Native() +external SecPolicyRef SecPolicyCreateSSL(int server, CFStringRef hostname); + +@Deprecated('Deprecated') +@ffi.Native() +external SecPolicyRef SecPolicyCreateWithOID(CFTypeRef policyOID); + +@ffi.Native() +external SecPolicyRef SecPolicyCreateWithProperties( + CFTypeRef policyIdentifier, + CFDictionaryRef properties, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecPolicyGetOID( + SecPolicyRef policyRef, + ffi.Pointer oid, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecPolicyGetTPHandle( + SecPolicyRef policyRef, + ffi.Pointer tpHandle, +); + +@ffi.Native() +external int SecPolicyGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecPolicyGetValue( + SecPolicyRef policyRef, + ffi.Pointer value, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecPolicySearchCopyNext( + SecPolicySearchRef searchRef, + ffi.Pointer policyRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CSSM_CERT_TYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecPolicySearchCreate( + int certType, + ffi.Pointer policyOID, + ffi.Pointer value, + ffi.Pointer searchRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecPolicySearchGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecPolicySetProperties( + SecPolicyRef policyRef, + CFDictionaryRef properties, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecPolicySetValue( + SecPolicyRef policyRef, + ffi.Pointer value, +); + +@ffi.Native)>() +external int SecRandomCopyBytes( + SecRandomRef rnd, + int count, + ffi.Pointer bytes, +); + +@Deprecated( + 'Use ASAuthorizationController to make an ASAuthorizationPasswordRequest (AuthenticationServices framework)', +) +@ffi.Native< + ffi.Void Function(CFStringRef, CFStringRef, ffi.Pointer) +>(symbol: 'SecRequestSharedWebCredential') +external void _SecRequestSharedWebCredential( + CFStringRef fqdn, + CFStringRef account, + ffi.Pointer completionHandler, +); + +void SecRequestSharedWebCredential( + CFStringRef fqdn, + CFStringRef account, + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + completionHandler, +) { + final _$$ref = completionHandler.ref; + return _SecRequestSharedWebCredential(fqdn, account, _$$ref.pointer); +} + +@ffi.Native< + OSStatus Function(SecRequirementRef, ffi.Uint32, ffi.Pointer) +>() +external int SecRequirementCopyData( + SecRequirementRef requirement, + int flags, + ffi.Pointer data, +); + +@ffi.Native< + OSStatus Function(SecRequirementRef, ffi.Uint32, ffi.Pointer) +>() +external int SecRequirementCopyString( + SecRequirementRef requirement, + int flags, + ffi.Pointer text, +); + +@ffi.Native< + OSStatus Function(CFDataRef, ffi.Uint32, ffi.Pointer) +>() +external int SecRequirementCreateWithData( + CFDataRef data, + int flags, + ffi.Pointer requirement, +); + +@ffi.Native< + OSStatus Function(CFStringRef, ffi.Uint32, ffi.Pointer) +>() +external int SecRequirementCreateWithString( + CFStringRef text, + int flags, + ffi.Pointer requirement, +); + +@ffi.Native< + OSStatus Function( + CFStringRef, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecRequirementCreateWithStringAndErrors( + CFStringRef text, + int flags, + ffi.Pointer errors, + ffi.Pointer requirement, +); + +@ffi.Native() +external int SecRequirementGetTypeID(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecSignTransformCreate( + SecKeyRef key, + ffi.Pointer error, +); + +@ffi.Native< + OSStatus Function(SecStaticCodeRef, ffi.Uint32, SecRequirementRef) +>() +external int SecStaticCodeCheckValidity( + SecStaticCodeRef staticCode, + int flags, + SecRequirementRef requirement, +); + +@ffi.Native< + OSStatus Function( + SecStaticCodeRef, + ffi.Uint32, + SecRequirementRef, + ffi.Pointer, + ) +>() +external int SecStaticCodeCheckValidityWithErrors( + SecStaticCodeRef staticCode, + int flags, + SecRequirementRef requirement, + ffi.Pointer errors, +); + +@ffi.Native< + OSStatus Function(CFURLRef, ffi.Uint32, ffi.Pointer) +>() +external int SecStaticCodeCreateWithPath( + CFURLRef path, + int flags, + ffi.Pointer staticCode, +); + +@ffi.Native< + OSStatus Function( + CFURLRef, + ffi.Uint32, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int SecStaticCodeCreateWithPathAndAttributes( + CFURLRef path, + int flags, + CFDictionaryRef attributes, + ffi.Pointer staticCode, +); + +@ffi.Native() +external int SecStaticCodeGetTypeID(); + +@ffi.Native)>() +external CFStringRef SecTaskCopySigningIdentifier( + SecTaskRef task, + ffi.Pointer error, +); + +@ffi.Native< + CFTypeRef Function(SecTaskRef, CFStringRef, ffi.Pointer) +>() +external CFTypeRef SecTaskCopyValueForEntitlement( + SecTaskRef task, + CFStringRef entitlement, + ffi.Pointer error, +); + +@ffi.Native< + CFDictionaryRef Function(SecTaskRef, CFArrayRef, ffi.Pointer) +>() +external CFDictionaryRef SecTaskCopyValuesForEntitlements( + SecTaskRef task, + CFArrayRef entitlements, + ffi.Pointer error, +); + +@ffi.Native() +external SecTaskRef SecTaskCreateFromSelf(CFAllocatorRef allocator); + +@ffi.Native() +external SecTaskRef SecTaskCreateWithAuditToken( + CFAllocatorRef allocator, + audit_token_t token, +); + +@ffi.Native() +external int SecTaskGetCodeSignStatus(SecTaskRef task); + +@ffi.Native() +external int SecTaskGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native< + CFTypeRef Function( + SecTransformImplementationRef, + SecTransformStringOrAttributeRef, + CFIndex, + ) +>(symbol: 'SecTranformCustomGetAttribute') +external CFTypeRef _SecTranformCustomGetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + int type, +); + +CFTypeRef SecTranformCustomGetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + SecTransformMetaAttributeType type, +) { + return _SecTranformCustomGetAttribute(ref, attribute, type.value); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + SecGroupTransformRef Function( + SecTransformRef, + CFStringRef, + SecTransformRef, + CFStringRef, + SecGroupTransformRef, + ffi.Pointer, + ) +>() +external SecGroupTransformRef SecTransformConnectTransforms( + SecTransformRef sourceTransformRef, + CFStringRef sourceAttributeName, + SecTransformRef destinationTransformRef, + CFStringRef destinationAttributeName, + SecGroupTransformRef group, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external CFDictionaryRef SecTransformCopyExternalRepresentation( + SecTransformRef transformRef, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecTransformCreate( + CFStringRef name, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + SecTransformRef Function(CFDictionaryRef, ffi.Pointer) +>() +external SecTransformRef SecTransformCreateFromExternalRepresentation( + CFDictionaryRef dictionary, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external SecGroupTransformRef SecTransformCreateGroupTransform(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external SecTransformRef SecTransformCreateReadTransformWithReadStream( + CFReadStreamRef inputStream, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFTypeRef Function( + SecTransformImplementationRef, + SecTransformStringOrAttributeRef, + CFIndex, + ) +>(symbol: 'SecTransformCustomGetAttribute') +external CFTypeRef _SecTransformCustomGetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + int type, +); + +CFTypeRef SecTransformCustomGetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + SecTransformMetaAttributeType type, +) { + return _SecTransformCustomGetAttribute(ref, attribute, type.value); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFTypeRef Function( + SecTransformImplementationRef, + SecTransformStringOrAttributeRef, + CFIndex, + CFTypeRef, + ) +>(symbol: 'SecTransformCustomSetAttribute') +external CFTypeRef _SecTransformCustomSetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + int type, + CFTypeRef value, +); + +CFTypeRef SecTransformCustomSetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + SecTransformMetaAttributeType type, + CFTypeRef value, +) { + return _SecTransformCustomSetAttribute(ref, attribute, type.value, value); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external CFTypeRef SecTransformExecute( + SecTransformRef transformRef, + ffi.Pointer errorRef, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + ffi.Void Function(SecTransformRef, dispatch_queue_t, SecMessageBlock) +>(symbol: 'SecTransformExecuteAsync') +external void _SecTransformExecuteAsync( + SecTransformRef transformRef, + dispatch_queue_t deliveryQueue, + SecMessageBlock deliveryBlock, +); + +void SecTransformExecuteAsync( + SecTransformRef transformRef, + Dartdispatch_queue_t deliveryQueue, + DartSecMessageBlock deliveryBlock, +) { + final _$$ref = deliveryQueue.ref; + final _$$ref$1 = deliveryBlock.ref; + return _SecTransformExecuteAsync( + transformRef, + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external SecTransformRef SecTransformFindByName( + SecGroupTransformRef transform, + CFStringRef name, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external CFTypeRef SecTransformGetAttribute( + SecTransformRef transformRef, + CFStringRef key, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external int SecTransformGetTypeID(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external CFTypeRef SecTransformNoData(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFTypeRef Function( + SecTransformImplementationRef, + SecTransformStringOrAttributeRef, + CFTypeRef, + ) +>() +external CFTypeRef SecTransformPushbackAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + CFTypeRef value, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + Boolean Function(CFStringRef, SecTransformCreateFP, ffi.Pointer) +>() +external int SecTransformRegister( + CFStringRef uniqueName, + SecTransformCreateFP createTransformFunction, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + Boolean Function( + SecTransformRef, + CFStringRef, + CFTypeRef, + ffi.Pointer, + ) +>() +external int SecTransformSetAttribute( + SecTransformRef transformRef, + CFStringRef key, + CFTypeRef value, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFErrorRef Function( + SecTransformImplementationRef, + CFStringRef, + SecTransformStringOrAttributeRef, + SecTransformAttributeActionBlock, + ) +>(symbol: 'SecTransformSetAttributeAction') +external CFErrorRef _SecTransformSetAttributeAction( + SecTransformImplementationRef ref, + CFStringRef action, + SecTransformStringOrAttributeRef attribute, + SecTransformAttributeActionBlock newAction, +); + +CFErrorRef SecTransformSetAttributeAction( + SecTransformImplementationRef ref, + CFStringRef action, + SecTransformStringOrAttributeRef attribute, + DartSecTransformAttributeActionBlock newAction, +) { + final _$$ref = newAction.ref; + return _SecTransformSetAttributeAction( + ref, + action, + attribute, + _$$ref.pointer, + ); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFErrorRef Function( + SecTransformImplementationRef, + CFStringRef, + SecTransformDataBlock, + ) +>(symbol: 'SecTransformSetDataAction') +external CFErrorRef _SecTransformSetDataAction( + SecTransformImplementationRef ref, + CFStringRef action, + SecTransformDataBlock newAction, +); + +CFErrorRef SecTransformSetDataAction( + SecTransformImplementationRef ref, + CFStringRef action, + DartSecTransformDataBlock newAction, +) { + final _$$ref = newAction.ref; + return _SecTransformSetDataAction(ref, action, _$$ref.pointer); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFErrorRef Function( + SecTransformImplementationRef, + CFStringRef, + SecTransformActionBlock, + ) +>(symbol: 'SecTransformSetTransformAction') +external CFErrorRef _SecTransformSetTransformAction( + SecTransformImplementationRef ref, + CFStringRef action, + SecTransformActionBlock newAction, +); + +CFErrorRef SecTransformSetTransformAction( + SecTransformImplementationRef ref, + CFStringRef action, + DartSecTransformActionBlock newAction, +) { + final _$$ref = newAction.ref; + return _SecTransformSetTransformAction(ref, action, _$$ref.pointer); +} + +@ffi.Native)>() +external int SecTrustCopyAnchorCertificates(ffi.Pointer anchors); + +@ffi.Native() +external CFArrayRef SecTrustCopyCertificateChain(SecTrustRef trust); + +@ffi.Native)>() +external int SecTrustCopyCustomAnchorCertificates( + SecTrustRef trust, + ffi.Pointer anchors, +); + +@ffi.Native() +external CFDataRef SecTrustCopyExceptions(SecTrustRef trust); + +@ffi.Native() +external SecKeyRef SecTrustCopyKey(SecTrustRef trust); + +@ffi.Native)>() +external int SecTrustCopyPolicies( + SecTrustRef trust, + ffi.Pointer policies, +); + +@Deprecated('Deprecated') +@ffi.Native() +external CFArrayRef SecTrustCopyProperties(SecTrustRef trust); + +@Deprecated('Deprecated') +@ffi.Native() +external SecKeyRef SecTrustCopyPublicKey(SecTrustRef trust); + +@ffi.Native() +external CFDictionaryRef SecTrustCopyResult(SecTrustRef trust); + +@ffi.Native)>() +external int SecTrustCreateWithCertificates( + CFTypeRef certificates, + CFTypeRef policies, + ffi.Pointer trust, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecTrustEvaluate( + SecTrustRef trust, + ffi.Pointer result, +); + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'SecTrustEvaluateAsync', +) +external int _SecTrustEvaluateAsync( + SecTrustRef trust, + dispatch_queue_t queue, + SecTrustCallback result, +); + +DartSInt32 SecTrustEvaluateAsync( + SecTrustRef trust, + Dartdispatch_queue_t? queue, + DartSecTrustCallback result, +) { + final _$$ref = queue?.ref; + final _$$ref$1 = result.ref; + return _SecTrustEvaluateAsync( + trust, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + OSStatus Function(SecTrustRef, dispatch_queue_t, SecTrustWithErrorCallback) +>(symbol: 'SecTrustEvaluateAsyncWithError') +external int _SecTrustEvaluateAsyncWithError( + SecTrustRef trust, + dispatch_queue_t queue, + SecTrustWithErrorCallback result, +); + +DartSInt32 SecTrustEvaluateAsyncWithError( + SecTrustRef trust, + Dartdispatch_queue_t queue, + DartSecTrustWithErrorCallback result, +) { + final _$$ref = queue.ref; + final _$$ref$1 = result.ref; + return _SecTrustEvaluateAsyncWithError( + trust, + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native)>() +external bool SecTrustEvaluateWithError( + SecTrustRef trust, + ffi.Pointer error, +); + +@Deprecated('Deprecated') +@ffi.Native() +external SecCertificateRef SecTrustGetCertificateAtIndex( + SecTrustRef trust, + int ix, +); + +@ffi.Native() +external int SecTrustGetCertificateCount(SecTrustRef trust); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecTrustRef, ffi.Pointer) +>() +external int SecTrustGetCssmResult( + SecTrustRef trust, + ffi.Pointer result, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecTrustGetCssmResultCode( + SecTrustRef trust, + ffi.Pointer resultCode, +); + +@ffi.Native)>() +external int SecTrustGetNetworkFetchAllowed( + SecTrustRef trust, + ffi.Pointer allowFetch, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + SecTrustRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int SecTrustGetResult( + SecTrustRef trustRef, + ffi.Pointer result, + ffi.Pointer certChain, + ffi.Pointer> statusChain, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecTrustGetTPHandle( + SecTrustRef trust, + ffi.Pointer handle, +); + +@ffi.Native)>() +external int SecTrustGetTrustResult( + SecTrustRef trust, + ffi.Pointer result, +); + +@ffi.Native() +external int SecTrustGetTypeID(); + +@ffi.Native() +external double SecTrustGetVerifyTime(SecTrustRef trust); + +@ffi.Native() +external int SecTrustSetAnchorCertificates( + SecTrustRef trust, + CFArrayRef anchorCertificates, +); + +@ffi.Native() +external int SecTrustSetAnchorCertificatesOnly( + SecTrustRef trust, + int anchorCertificatesOnly, +); + +@ffi.Native() +external bool SecTrustSetExceptions(SecTrustRef trust, CFDataRef exceptions); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecTrustSetKeychains(SecTrustRef trust, CFTypeRef keychainOrArray); + +@ffi.Native() +external int SecTrustSetNetworkFetchAllowed(SecTrustRef trust, int allowFetch); + +@ffi.Native() +external int SecTrustSetOCSPResponse(SecTrustRef trust, CFTypeRef responseData); + +@ffi.Native() +external int SecTrustSetOptions(SecTrustRef trustRef, int options); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecTrustSetParameters( + SecTrustRef trustRef, + int action, + CFDataRef actionData, +); + +@ffi.Native() +external int SecTrustSetPolicies(SecTrustRef trust, CFTypeRef policies); + +@ffi.Native() +external int SecTrustSetSignedCertificateTimestamps( + SecTrustRef trust, + CFArrayRef sctArray, +); + +@ffi.Native() +external int SecTrustSetVerifyDate(SecTrustRef trust, CFDateRef verifyDate); + +@ffi.Native)>( + symbol: 'SecTrustSettingsCopyCertificates', +) +external int _SecTrustSettingsCopyCertificates( + int domain, + ffi.Pointer certArray, +); + +DartSInt32 SecTrustSettingsCopyCertificates( + SecTrustSettingsDomain domain, + ffi.Pointer certArray, +) { + return _SecTrustSettingsCopyCertificates(domain.value, certArray); +} + +@ffi.Native< + OSStatus Function(SecCertificateRef, ffi.Uint32, ffi.Pointer) +>(symbol: 'SecTrustSettingsCopyModificationDate') +external int _SecTrustSettingsCopyModificationDate( + SecCertificateRef certRef, + int domain, + ffi.Pointer modificationDate, +); + +DartSInt32 SecTrustSettingsCopyModificationDate( + SecCertificateRef certRef, + SecTrustSettingsDomain domain, + ffi.Pointer modificationDate, +) { + return _SecTrustSettingsCopyModificationDate( + certRef, + domain.value, + modificationDate, + ); +} + +@ffi.Native< + OSStatus Function(SecCertificateRef, ffi.Uint32, ffi.Pointer) +>(symbol: 'SecTrustSettingsCopyTrustSettings') +external int _SecTrustSettingsCopyTrustSettings( + SecCertificateRef certRef, + int domain, + ffi.Pointer trustSettings, +); + +DartSInt32 SecTrustSettingsCopyTrustSettings( + SecCertificateRef certRef, + SecTrustSettingsDomain domain, + ffi.Pointer trustSettings, +) { + return _SecTrustSettingsCopyTrustSettings( + certRef, + domain.value, + trustSettings, + ); +} + +@ffi.Native)>( + symbol: 'SecTrustSettingsCreateExternalRepresentation', +) +external int _SecTrustSettingsCreateExternalRepresentation( + int domain, + ffi.Pointer trustSettings, +); + +DartSInt32 SecTrustSettingsCreateExternalRepresentation( + SecTrustSettingsDomain domain, + ffi.Pointer trustSettings, +) { + return _SecTrustSettingsCreateExternalRepresentation( + domain.value, + trustSettings, + ); +} + +@ffi.Native( + symbol: 'SecTrustSettingsImportExternalRepresentation', +) +external int _SecTrustSettingsImportExternalRepresentation( + int domain, + CFDataRef trustSettings, +); + +DartSInt32 SecTrustSettingsImportExternalRepresentation( + SecTrustSettingsDomain domain, + CFDataRef trustSettings, +) { + return _SecTrustSettingsImportExternalRepresentation( + domain.value, + trustSettings, + ); +} + +@ffi.Native( + symbol: 'SecTrustSettingsRemoveTrustSettings', +) +external int _SecTrustSettingsRemoveTrustSettings( + SecCertificateRef certRef, + int domain, +); + +DartSInt32 SecTrustSettingsRemoveTrustSettings( + SecCertificateRef certRef, + SecTrustSettingsDomain domain, +) { + return _SecTrustSettingsRemoveTrustSettings(certRef, domain.value); +} + +@ffi.Native( + symbol: 'SecTrustSettingsSetTrustSettings', +) +external int _SecTrustSettingsSetTrustSettings( + SecCertificateRef certRef, + int domain, + CFTypeRef trustSettingsDictOrArray, +); + +DartSInt32 SecTrustSettingsSetTrustSettings( + SecCertificateRef certRef, + SecTrustSettingsDomain domain, + CFTypeRef trustSettingsDictOrArray, +) { + return _SecTrustSettingsSetTrustSettings( + certRef, + domain.value, + trustSettingsDictOrArray, + ); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecTrustedApplicationRef, ffi.Pointer) +>() +external int SecTrustedApplicationCopyData( + SecTrustedApplicationRef appRef, + ffi.Pointer data, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecTrustedApplicationCreateFromPath( + ffi.Pointer path, + ffi.Pointer app, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecTrustedApplicationGetTypeID(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecTrustedApplicationSetData( + SecTrustedApplicationRef appRef, + CFDataRef data, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + SecTransformRef Function(SecKeyRef, CFDataRef, ffi.Pointer) +>() +external SecTransformRef SecVerifyTransformCreate( + SecKeyRef key, + CFDataRef signature, + ffi.Pointer error, +); + +@ffi.Native() +external int SessionCreate(int flags, int attributes); + +@ffi.Native< + OSStatus Function( + SecuritySessionId, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SessionGetInfo( + int session, + ffi.Pointer sessionId, + ffi.Pointer attributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetAliasUserType(AliasHandle alias, int userType); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetAliasUserTypeWithPtr(AliasPtr alias, int userType); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetCollectionDefaultAttributes( + Collection c, + int whichAttributes, + int newAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetCollectionExceptionProc( + Collection c, + CollectionExceptionUPP exceptionProc, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetCollectionItemInfo( + Collection c, + int tag, + int id, + int whichAttributes, + int newAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetComponentInstanceError( + ComponentInstance aComponentInstance, + int theError, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetComponentInstanceStorage( + ComponentInstance aComponentInstance, + Handle theStorage, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetComponentRefcon(Component aComponent, int theRefcon); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int SetCustomIconsEnabled(int vRefNum, int enableCustomIcons); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetDebugOptionValue( + int componentSignature, + int optionSelectorNum, + int newOptionSetting, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + DebuggerNewThreadTPP, + DebuggerDisposeThreadTPP, + DebuggerThreadSchedulerTPP, + ) +>() +external int SetDebuggerNotificationProcs( + DebuggerNewThreadTPP notifyNewThread, + DebuggerDisposeThreadTPP notifyDisposeThread, + DebuggerThreadSchedulerTPP notifyThreadScheduler, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetDefaultComponent(Component aComponent, int flags); + +@ffi.Native< + OSStatus Function( + UnicodeToTextInfo, + UnicodeToTextFallbackUPP, + OptionBits, + LogicalAddress, + ) +>() +external int SetFallbackUnicodeToText( + UnicodeToTextInfo iUnicodeToTextInfo, + UnicodeToTextFallbackUPP iFallback, + int iControlFlags, + LogicalAddress iInfoPtr, +); + +@ffi.Native< + OSStatus Function( + UnicodeToTextRunInfo, + UnicodeToTextFallbackUPP, + OptionBits, + LogicalAddress, + ) +>() +external int SetFallbackUnicodeToTextRun( + UnicodeToTextRunInfo iUnicodeToTextRunInfo, + UnicodeToTextFallbackUPP iFallback, + int iControlFlags, + LogicalAddress iInfoPtr, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SetFrontProcess(ffi.Pointer pPSN); + +@Deprecated('Deprecated') +@ffi.Native, OptionBits)>() +external int SetFrontProcessWithOptions( + ffi.Pointer inProcess, + int inOptions, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetGestaltValue(int selector, int newValue); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetHandleSize(Handle h, int newSize); + +@ffi.Native() +external int SetIconFamilyData( + IconFamilyHandle iconFamily, + int iconType, + Handle h, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetIndexedCollectionItemInfo( + Collection c, + int itemIndex, + int whichAttributes, + int newAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetPtrSize(Ptr p, int newSize); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResAttrs(Handle theResource, int attrs); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResFileAttrs(int refNum, int attrs); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResInfo(Handle theResource, int theID, ConstStr255Param name); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResLoad(int load); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResPurge(int install); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResourceSize(Handle theResource, int newSize); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetScriptManagerVariable(int selector, int param); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int SetSpeechInfo( + SpeechChannel chan, + int selector, + ffi.Pointer speechInfo, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SetSpeechPitch(SpeechChannel chan, int pitch); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SetSpeechProperty( + SpeechChannel chan, + CFStringRef property, + CFTypeRef object, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SetSpeechRate(SpeechChannel chan, int rate); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetThreadReadyGivenTaskRef( + ThreadTaskRef threadTRef, + int threadToSet, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetThreadScheduler(ThreadSchedulerTPP threadScheduler); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetThreadState(int threadToSet, int newState, int suggestedThread); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetThreadStateEndCritical( + int threadToSet, + int newState, + int suggestedThread, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ThreadID, ThreadSwitchTPP, ffi.Pointer, Boolean) +>() +external int SetThreadSwitcher( + int thread, + ThreadSwitchTPP threadSwitcher, + ffi.Pointer switchProcParam, + int inOrOut, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ThreadID, ThreadTerminationTPP, ffi.Pointer) +>() +external int SetThreadTerminator( + int thread, + ThreadTerminationTPP threadTerminator, + ffi.Pointer terminationProcParam, +); + +@Deprecated('Deprecated') +@ffi.Native, Boolean)>() +external int ShowHideProcess(ffi.Pointer psn, int visible); + +@Deprecated('No longer supported') +@ffi.Native() +external void SleepQInstall(SleepQRecPtr qRecPtr); + +@Deprecated('No longer supported') +@ffi.Native() +external void SleepQRemove(SleepQRecPtr qRecPtr); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(SpeechChannel, ffi.Pointer, ffi.UnsignedLong, SInt32) +>() +external int SpeakBuffer( + SpeechChannel chan, + ffi.Pointer textBuf, + int textBytes, + int controlFlags, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeakCFString( + SpeechChannel chan, + CFStringRef aString, + CFDictionaryRef options, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeakString(ConstStr255Param textToBeSpoken); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(SpeechChannel, ffi.Pointer, ffi.UnsignedLong) +>() +external int SpeakText( + SpeechChannel chan, + ffi.Pointer textBuf, + int textBytes, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeechBusy(); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeechBusySystemWide(); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external NumVersion SpeechManagerVersion(); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeechSynthesisRegisterModuleURL(CFURLRef url); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeechSynthesisUnregisterModuleURL(CFURLRef url); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int StopSpeech(SpeechChannel chan); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int StopSpeechAt(SpeechChannel chan, int whereToStop); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime SubAbsoluteFromAbsolute( + AbsoluteTime leftAbsoluteTime, + AbsoluteTime rightAbsoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime SubDurationFromAbsolute( + int duration, + AbsoluteTime absoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime SubNanosecondsFromAbsolute( + Nanoseconds nanoseconds, + AbsoluteTime absoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SysBreak(); + +@Deprecated('Deprecated') +@ffi.Native() +external void SysBreakFunc(ConstStr255Param debuggerMsg); + +@Deprecated('Deprecated') +@ffi.Native() +external void SysBreakStr(ConstStr255Param debuggerMsg); + +@Deprecated('Deprecated') +@ffi.Native() +external void SysError(int errorCode); + +@ffi.Native() +external int TECClearConverterContextInfo(TECObjectRef encodingConverter); + +@ffi.Native() +external int TECClearSnifferContextInfo(TECSnifferObjectRef encodingSniffer); + +@ffi.Native< + OSStatus Function( + TECObjectRef, + ConstTextPtr, + ByteCount, + ffi.Pointer, + TextPtr, + ByteCount, + ffi.Pointer, + ) +>() +external int TECConvertText( + TECObjectRef encodingConverter, + ConstTextPtr inputBuffer, + int inputBufferLength, + ffi.Pointer actualInputLength, + TextPtr outputBuffer, + int outputBufferLength, + ffi.Pointer actualOutputLength, +); + +@ffi.Native< + OSStatus Function( + TECObjectRef, + ConstTextPtr, + ByteCount, + ffi.Pointer, + TextPtr, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECConvertTextToMultipleEncodings( + TECObjectRef encodingConverter, + ConstTextPtr inputBuffer, + int inputBufferLength, + ffi.Pointer actualInputLength, + TextPtr outputBuffer, + int outputBufferLength, + ffi.Pointer actualOutputLength, + ffi.Pointer outEncodingsBuffer, + int maxOutEncodingRuns, + ffi.Pointer actualOutEncodingRuns, +); + +@ffi.Native< + OSStatus Function( + TextEncoding, + TECInternetNameUsageMask, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int TECCopyTextEncodingInternetNameAndMIB( + int textEncoding, + int usage, + ffi.Pointer encodingNamePtr, + ffi.Pointer mibEnumPtr, +); + +@ffi.Native)>() +external int TECCountAvailableSniffers( + ffi.Pointer numberOfEncodings, +); + +@ffi.Native)>() +external int TECCountAvailableTextEncodings( + ffi.Pointer numberEncodings, +); + +@ffi.Native)>() +external int TECCountDestinationTextEncodings( + int inputEncoding, + ffi.Pointer numberOfEncodings, +); + +@ffi.Native)>() +external int TECCountDirectTextEncodingConversions( + ffi.Pointer numberOfEncodings, +); + +@ffi.Native)>() +external int TECCountMailTextEncodings( + int locale, + ffi.Pointer numberEncodings, +); + +@ffi.Native)>() +external int TECCountSubTextEncodings( + int inputEncoding, + ffi.Pointer numberOfEncodings, +); + +@ffi.Native)>() +external int TECCountWebTextEncodings( + int locale, + ffi.Pointer numberEncodings, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, TextEncoding, TextEncoding) +>() +external int TECCreateConverter( + ffi.Pointer newEncodingConverter, + int inputEncoding, + int outputEncoding, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ItemCount, + ) +>() +external int TECCreateConverterFromPath( + ffi.Pointer newEncodingConverter, + ffi.Pointer inPath, + int inEncodings, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + TextEncoding, + ItemCount, + ffi.Pointer, + ) +>() +external int TECCreateOneToManyConverter( + ffi.Pointer newEncodingConverter, + int inputEncoding, + int numOutputEncodings, + ffi.Pointer outputEncodings, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ItemCount, + ) +>() +external int TECCreateSniffer( + ffi.Pointer encodingSniffer, + ffi.Pointer testEncodings, + int numTextEncodings, +); + +@ffi.Native() +external int TECDisposeConverter(TECObjectRef newEncodingConverter); + +@ffi.Native() +external int TECDisposeSniffer(TECSnifferObjectRef encodingSniffer); + +@ffi.Native< + OSStatus Function( + TECObjectRef, + TextPtr, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECFlushMultipleEncodings( + TECObjectRef encodingConverter, + TextPtr outputBuffer, + int outputBufferLength, + ffi.Pointer actualOutputLength, + ffi.Pointer outEncodingsBuffer, + int maxOutEncodingRuns, + ffi.Pointer actualOutEncodingRuns, +); + +@ffi.Native< + OSStatus Function(TECObjectRef, TextPtr, ByteCount, ffi.Pointer) +>() +external int TECFlushText( + TECObjectRef encodingConverter, + TextPtr outputBuffer, + int outputBufferLength, + ffi.Pointer actualOutputLength, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetAvailableSniffers( + ffi.Pointer availableSniffers, + int maxAvailableSniffers, + ffi.Pointer actualAvailableSniffers, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetAvailableTextEncodings( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, +); + +@ffi.Native< + OSStatus Function( + TextEncoding, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetDestinationTextEncodings( + int inputEncoding, + ffi.Pointer destinationEncodings, + int maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetDirectTextEncodingConversions( + ffi.Pointer availableConversions, + int maxAvailableConversions, + ffi.Pointer actualAvailableConversions, +); + +@ffi.Native< + OSStatus Function(TECObjectRef, ffi.Pointer, ffi.Pointer) +>() +external int TECGetEncodingList( + TECObjectRef encodingConverter, + ffi.Pointer numEncodings, + ffi.Pointer encodingList, +); + +@ffi.Native)>() +external int TECGetInfo(ffi.Pointer tecInfo); + +@ffi.Native< + OSStatus Function( + RegionCode, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetMailTextEncodings( + int locale, + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, +); + +@ffi.Native< + OSStatus Function( + TextEncoding, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetSubTextEncodings( + int inputEncoding, + ffi.Pointer subEncodings, + int maxSubEncodings, + ffi.Pointer actualSubEncodings, +); + +@ffi.Native, ConstStr255Param)>() +external int TECGetTextEncodingFromInternetName( + ffi.Pointer textEncoding, + ConstStr255Param encodingName, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + TECInternetNameUsageMask, + CFStringRef, + SInt32, + ) +>() +external int TECGetTextEncodingFromInternetNameOrMIB( + ffi.Pointer textEncodingPtr, + int usage, + CFStringRef encodingName, + int mibEnum, +); + +@ffi.Native)>() +external int TECGetTextEncodingInternetName( + int textEncoding, + ffi.Pointer encodingName, +); + +@ffi.Native< + OSStatus Function( + RegionCode, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetWebTextEncodings( + int locale, + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, +); + +@ffi.Native() +external int TECSetBasicOptions( + TECObjectRef encodingConverter, + int controlFlags, +); + +@ffi.Native< + OSStatus Function( + TECSnifferObjectRef, + ConstTextPtr, + ByteCount, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ItemCount, + ) +>() +external int TECSniffTextEncoding( + TECSnifferObjectRef encodingSniffer, + ConstTextPtr inputBuffer, + int inputBufferLength, + ffi.Pointer testEncodings, + int numTextEncodings, + ffi.Pointer numErrsArray, + int maxErrs, + ffi.Pointer numFeaturesArray, + int maxFeatures, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int TaskLevel(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external Handle TempNewHandle(int logicalSize, ffi.Pointer resultCode); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int TestAndClear(int bit, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int TestAndSet(int bit, ffi.Pointer address); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function( + SpeechChannel, + ffi.Pointer, + ffi.UnsignedLong, + Handle, + ffi.Pointer, + ) +>() +external int TextToPhonemes( + SpeechChannel chan, + ffi.Pointer textBuf, + int textBytes, + Handle phonemeBuf, + ffi.Pointer phonemeBytes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ThreadBeginCritical(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ThreadCurrentStackSpace( + int thread, + ffi.Pointer freeStack, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ThreadEndCritical(); + +@Deprecated('Deprecated') +@ffi.Native() +external int TickCount(); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ProcessApplicationTransformState, + ) +>() +external int TransformProcessType( + ffi.Pointer psn, + int transformState, +); + +@ffi.Native)>() +external int TranslationCopyDestinationType( + TranslationRef inTranslation, + ffi.Pointer outDestinationType, +); + +@ffi.Native)>() +external int TranslationCopySourceType( + TranslationRef inTranslation, + ffi.Pointer outSourceType, +); + +@ffi.Native< + OSStatus Function( + CFStringRef, + CFStringRef, + TranslationFlags, + ffi.Pointer, + ) +>() +external int TranslationCreate( + CFStringRef inSourceType, + CFStringRef inDestinationType, + int inTranslationFlags, + ffi.Pointer outTranslation, +); + +@ffi.Native< + OSStatus Function( + CFArrayRef, + TranslationFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int TranslationCreateWithSourceArray( + CFArrayRef inSourceTypes, + int inTranslationFlags, + ffi.Pointer outDestinationTypes, + ffi.Pointer outTranslations, +); + +@ffi.Native)>() +external int TranslationGetTranslationFlags( + TranslationRef inTranslation, + ffi.Pointer outTranslationFlags, +); + +@ffi.Native() +external int TranslationGetTypeID(); + +@ffi.Native< + OSStatus Function(TranslationRef, CFDataRef, ffi.Pointer) +>() +external int TranslationPerformForData( + TranslationRef inTranslation, + CFDataRef inSourceData, + ffi.Pointer outDestinationData, +); + +@ffi.Native< + OSStatus Function( + TranslationRef, + ffi.Pointer, + ffi.Pointer, + CFStringRef, + ffi.Pointer, + ) +>() +external int TranslationPerformForFile( + TranslationRef inTranslation, + ffi.Pointer inSourceFile, + ffi.Pointer inDestinationDirectory, + CFStringRef inDestinationName, + ffi.Pointer outTranslatedFile, +); + +@ffi.Native< + OSStatus Function(TranslationRef, CFURLRef, CFURLRef, ffi.Pointer) +>() +external int TranslationPerformForURL( + TranslationRef inTranslation, + CFURLRef inSourceURL, + CFURLRef inDestinationURL, + ffi.Pointer outTranslatedURL, +); + +@ffi.Native< + OSStatus Function( + ConstTextToUnicodeInfo, + ByteCount, + ConstLogicalAddress, + ByteCount, + ffi.Pointer, + ) +>() +external int TruncateForTextToUnicode( + ConstTextToUnicodeInfo iTextToUnicodeInfo, + int iSourceLen, + ConstLogicalAddress iSourceStr, + int iMaxLen, + ffi.Pointer oTruncatedLen, +); + +@ffi.Native< + OSStatus Function( + ConstUnicodeToTextInfo, + ByteCount, + ffi.Pointer, + OptionBits, + ByteCount, + ffi.Pointer, + ) +>() +external int TruncateForUnicodeToText( + ConstUnicodeToTextInfo iUnicodeToTextInfo, + int iSourceLen, + ffi.Pointer iSourceStr, + int iControlFlags, + int iMaxLen, + ffi.Pointer oTruncatedLen, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int U64Compare(int left, int right); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + UAZoomChangeFocusType, + ) +>() +external int UAZoomChangeFocus( + ffi.Pointer inRect, + ffi.Pointer inHighlightRect, + int inType, +); + +@ffi.Native() +external int UAZoomEnabled(); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ItemCount, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCCompareCollationKeys( + ffi.Pointer key1Ptr, + int key1Length, + ffi.Pointer key2Ptr, + int key2Length, + ffi.Pointer equivalent, + ffi.Pointer order, +); + +@ffi.Native< + OSStatus Function( + CollatorRef, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCCompareText( + CollatorRef collatorRef, + ffi.Pointer text1Ptr, + int text1Length, + ffi.Pointer text2Ptr, + int text2Length, + ffi.Pointer equivalent, + ffi.Pointer order, +); + +@ffi.Native< + OSStatus Function( + UCCollateOptions, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCCompareTextDefault( + int options, + ffi.Pointer text1Ptr, + int text1Length, + ffi.Pointer text2Ptr, + int text2Length, + ffi.Pointer equivalent, + ffi.Pointer order, +); + +@ffi.Native< + OSStatus Function( + UCCollateOptions, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCCompareTextNoLocale( + int options, + ffi.Pointer text1Ptr, + int text1Length, + ffi.Pointer text2Ptr, + int text2Length, + ffi.Pointer equivalent, + ffi.Pointer order, +); + +@ffi.Native)>() +external int UCConvertCFAbsoluteTimeToLongDateTime( + double iCFTime, + ffi.Pointer oLongDate, +); + +@ffi.Native)>() +external int UCConvertCFAbsoluteTimeToSeconds( + double iCFTime, + ffi.Pointer oSeconds, +); + +@ffi.Native)>() +external int UCConvertCFAbsoluteTimeToUTCDateTime( + double iCFTime, + ffi.Pointer oUTCDate, +); + +@ffi.Native)>() +external int UCConvertLongDateTimeToCFAbsoluteTime( + int iLongTime, + ffi.Pointer oCFTime, +); + +@ffi.Native)>() +external int UCConvertSecondsToCFAbsoluteTime( + int iSeconds, + ffi.Pointer oCFTime, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int UCConvertUTCDateTimeToCFAbsoluteTime( + ffi.Pointer iUTCDate, + ffi.Pointer oCFTime, +); + +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + UCCollateOptions, + ffi.Pointer, + ) +>() +external int UCCreateCollator( + LocaleRef locale, + int opVariant, + int options, + ffi.Pointer collatorRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + UCTextBreakType, + ffi.Pointer, + ) +>() +external int UCCreateTextBreakLocator( + LocaleRef locale, + int opVariant, + int breakTypes, + ffi.Pointer breakRef, +); + +@ffi.Native)>() +external int UCDisposeCollator(ffi.Pointer collatorRef); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int UCDisposeTextBreakLocator( + ffi.Pointer breakRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + TextBreakLocatorRef, + UCTextBreakType, + UCTextBreakOptions, + ffi.Pointer, + UniCharCount, + UniCharArrayOffset, + ffi.Pointer, + ) +>() +external int UCFindTextBreak( + TextBreakLocatorRef breakRef, + int breakType, + int options, + ffi.Pointer textPtr, + int textLength, + int startOffset, + ffi.Pointer breakOffset, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + UniCharCount, + UCCharPropertyType, + ffi.Pointer, + ) +>() +external int UCGetCharProperty( + ffi.Pointer charPtr, + int textLength, + int propType, + ffi.Pointer propValue, +); + +@ffi.Native< + OSStatus Function( + CollatorRef, + ffi.Pointer, + UniCharCount, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCGetCollationKey( + CollatorRef collatorRef, + ffi.Pointer textPtr, + int textLength, + int maxKeySize, + ffi.Pointer actualKeySize, + ffi.Pointer collationKey, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + UInt16, + UInt16, + UInt32, + UInt32, + OptionBits, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCKeyTranslate( + ffi.Pointer keyLayoutPtr, + int virtualKeyCode, + int keyAction, + int modifierKeyState, + int keyboardType, + int keyTranslateOptions, + ffi.Pointer deadKeyState, + int maxStringLength, + ffi.Pointer actualStringLength, + ffi.Pointer unicodeString, +); + +@ffi.Native< + OSStatus Function( + UCTypeSelectRef, + CFStringRef, + ffi.Double, + ffi.Pointer, + ) +>() +external int UCTypeSelectAddKeyToSelector( + UCTypeSelectRef inRef, + CFStringRef inText, + double inEventTime, + ffi.Pointer updateFlag, +); + +@ffi.Native< + OSStatus Function( + UCTypeSelectRef, + CFStringRef, + ffi.Pointer, + ) +>() +external int UCTypeSelectCompare( + UCTypeSelectRef ref, + CFStringRef inText, + ffi.Pointer result, +); + +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + UCCollateOptions, + ffi.Pointer, + ) +>() +external int UCTypeSelectCreateSelector( + LocaleRef locale, + int opVariant, + int options, + ffi.Pointer newSelector, +); + +@ffi.Native< + OSStatus Function( + UCTypeSelectRef, + UInt32, + ffi.Pointer, + ffi.Pointer, + IndexToUCStringUPP, + ffi.Pointer, + ) +>() +external int UCTypeSelectFindItem( + UCTypeSelectRef ref, + int listSize, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + IndexToUCStringUPP userUPP, + ffi.Pointer closestItem, +); + +@ffi.Native() +external int UCTypeSelectFlushSelectorData(UCTypeSelectRef ref); + +@ffi.Native)>() +external int UCTypeSelectReleaseSelector(ffi.Pointer ref); + +@ffi.Native< + OSStatus Function( + UCTypeSelectRef, + CFStringRef, + UCTSWalkDirection, + UInt32, + ffi.Pointer, + ffi.Pointer, + IndexToUCStringUPP, + ffi.Pointer, + ) +>() +external int UCTypeSelectWalkList( + UCTypeSelectRef ref, + CFStringRef currSelect, + int direction, + int listSize, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + IndexToUCStringUPP userUPP, + ffi.Pointer closestItem, +); + +@ffi.Native() +external int UCTypeSelectWouldResetBuffer( + UCTypeSelectRef inRef, + CFStringRef inText, + double inEventTime, +); + +@Deprecated('HFS type codes are obsolete.') +@ffi.Native() +external CFStringRef UTCreateStringForOSType(int inOSType); + +@Deprecated('HFS type codes are obsolete.') +@ffi.Native() +external int UTGetOSTypeFromString(CFStringRef inString); + +@Deprecated('Use -[UTType conformsToType:] instead.') +@ffi.Native() +external int UTTypeConformsTo(CFStringRef inUTI, CFStringRef inConformsToUTI); + +@Deprecated('Use the UTType class instead.') +@ffi.Native() +external CFArrayRef UTTypeCopyAllTagsWithClass( + CFStringRef inUTI, + CFStringRef inTagClass, +); + +@Deprecated('Use the UTType class instead.') +@ffi.Native() +external CFDictionaryRef UTTypeCopyDeclaration(CFStringRef inUTI); + +@Deprecated('Deprecated') +@ffi.Native() +external CFURLRef UTTypeCopyDeclaringBundleURL(CFStringRef inUTI); + +@Deprecated('Use UTType.localizedDescription instead.') +@ffi.Native() +external CFStringRef UTTypeCopyDescription(CFStringRef inUTI); + +@Deprecated('Use the UTType class instead.') +@ffi.Native() +external CFStringRef UTTypeCopyPreferredTagWithClass( + CFStringRef inUTI, + CFStringRef inTagClass, +); + +@Deprecated('Use the UTType class instead.') +@ffi.Native() +external CFArrayRef UTTypeCreateAllIdentifiersForTag( + CFStringRef inTagClass, + CFStringRef inTag, + CFStringRef inConformingToUTI, +); + +@Deprecated('Use the UTType class instead.') +@ffi.Native() +external CFStringRef UTTypeCreatePreferredIdentifierForTag( + CFStringRef inTagClass, + CFStringRef inTag, + CFStringRef inConformingToUTI, +); + +@Deprecated('Use -[UTType isEqual:] instead.') +@ffi.Native() +external int UTTypeEqual(CFStringRef inUTI1, CFStringRef inUTI2); + +@Deprecated('Use UTType.declared instead.') +@ffi.Native() +external int UTTypeIsDeclared(CFStringRef inUTI); + +@Deprecated('Use UTType.dynamic instead.') +@ffi.Native() +external int UTTypeIsDynamic(CFStringRef inUTI); + +@ffi.Array.multi([16]) +@ffi.Native>() +external final ffi.Pointer UUID_NULL; + +@Deprecated('Deprecated') +@ffi.Native() +external int UncaptureComponent(Component aComponent); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(Collection, CollectionFlattenUPP, ffi.Pointer) +>() +external int UnflattenCollection( + Collection c, + CollectionFlattenUPP flattenProc, + ffi.Pointer refCon, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int UnflattenCollectionFromHdl( + Collection aCollection, + Handle flattened, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int Unique1ID(int theType); + +@Deprecated('Deprecated') +@ffi.Native() +external int UniqueID(int theType); + +@Deprecated('Deprecated') +@ffi.Native() +external int UnregisterComponent(Component aComponent); + +@Deprecated('You do not need to unregister icons.') +@ffi.Native() +external int UnregisterIconRef(int creator, int iconType); + +@Deprecated('Deprecated') +@ffi.Native< + UnsignedFixed Function(UnsignedFixed, UnsignedFixed, UnsignedFixed) +>() +external int UnsignedFixedMulDiv(int value, int multiplier, int divisor); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime UpTime(); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int UpdateIconRef(IconRef theIconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external void UpdateResFile(int refNum); + +@Deprecated('No longer supported') +@ffi.Native() +external int UpdateSystemActivity(int activity); + +@ffi.Native< + OSStatus Function( + ScriptCode, + LangCode, + RegionCode, + ConstStr255Param, + ffi.Pointer, + ) +>() +external int UpgradeScriptInfoToTextEncoding( + int iTextScriptID, + int iTextLanguageID, + int iRegionID, + ConstStr255Param iTextFontname, + ffi.Pointer oEncoding, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int UseDictionary(SpeechChannel chan, Handle dictionary); + +@Deprecated('Deprecated') +@ffi.Native() +external void UseResFile(int refNum); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int UseSpeechDictionary( + SpeechChannel chan, + CFDictionaryRef speechDictionary, +); + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'WSGetCFTypeIDFromWSTypeID', +) +external int _WSGetCFTypeIDFromWSTypeID(int typeID); + +DartCFTypeID WSGetCFTypeIDFromWSTypeID(WSTypeID typeID) { + return _WSGetCFTypeIDFromWSTypeID(typeID.value); +} + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'WSGetWSTypeIDFromCFType', +) +external int _WSGetWSTypeIDFromCFType(CFTypeRef ref); + +WSTypeID WSGetWSTypeIDFromCFType(CFTypeRef ref) { + return WSTypeID.fromValue(_WSGetWSTypeIDFromCFType(ref)); +} + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + WSMethodInvocationRef, + CFStringRef, + CFStringRef, + WSMethodInvocationDeserializationProcPtr, + ffi.Pointer, + ) +>() +external void WSMethodInvocationAddDeserializationOverride( + WSMethodInvocationRef invocation, + CFStringRef typeNamespace, + CFStringRef typeName, + WSMethodInvocationDeserializationProcPtr deserializationProc, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + WSMethodInvocationRef, + CFTypeID, + WSMethodInvocationSerializationProcPtr, + ffi.Pointer, + ) +>() +external void WSMethodInvocationAddSerializationOverride( + WSMethodInvocationRef invocation, + int objType, + WSMethodInvocationSerializationProcPtr serializationProc, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDictionaryRef Function(WSMethodInvocationRef, ffi.Pointer) +>() +external CFDictionaryRef WSMethodInvocationCopyParameters( + WSMethodInvocationRef invocation, + ffi.Pointer parameterOrder, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFTypeRef WSMethodInvocationCopyProperty( + WSMethodInvocationRef invocation, + CFStringRef propertyName, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFDataRef WSMethodInvocationCopySerialization( + WSMethodInvocationRef invocation, +); + +@Deprecated('No longer supported') +@ffi.Native< + WSMethodInvocationRef Function(CFURLRef, CFStringRef, CFStringRef) +>() +external WSMethodInvocationRef WSMethodInvocationCreate( + CFURLRef url, + CFStringRef methodName, + CFStringRef protocol, +); + +@Deprecated('No longer supported') +@ffi.Native() +external WSMethodInvocationRef WSMethodInvocationCreateFromSerialization( + CFDataRef contract, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int WSMethodInvocationGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native() +external CFDictionaryRef WSMethodInvocationInvoke( + WSMethodInvocationRef invocation, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(WSMethodInvocationRef, CFRunLoopRef, CFStringRef) +>() +external void WSMethodInvocationScheduleWithRunLoop( + WSMethodInvocationRef invocation, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + WSMethodInvocationRef, + WSMethodInvocationCallBackProcPtr, + ffi.Pointer, + ) +>() +external void WSMethodInvocationSetCallBack( + WSMethodInvocationRef invocation, + WSMethodInvocationCallBackProcPtr clientCB, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(WSMethodInvocationRef, CFDictionaryRef, CFArrayRef) +>() +external void WSMethodInvocationSetParameters( + WSMethodInvocationRef invocation, + CFDictionaryRef parameters, + CFArrayRef parameterOrder, +); + +@Deprecated('No longer supported') +@ffi.Native() +external void WSMethodInvocationSetProperty( + WSMethodInvocationRef invocation, + CFStringRef propertyName, + CFTypeRef propertyValue, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(WSMethodInvocationRef, CFRunLoopRef, CFStringRef) +>() +external void WSMethodInvocationUnscheduleFromRunLoop( + WSMethodInvocationRef invocation, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int WSMethodResultIsFault(CFDictionaryRef methodResult); + +@Deprecated('No longer supported') +@ffi.Native< + CFDataRef Function(WSProtocolHandlerRef, CFDictionaryRef, CFDictionaryRef) +>() +external CFDataRef WSProtocolHandlerCopyFaultDocument( + WSProtocolHandlerRef ref, + CFDictionaryRef methodContext, + CFDictionaryRef faultDict, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFTypeRef WSProtocolHandlerCopyProperty( + WSProtocolHandlerRef ref, + CFStringRef propertyName, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDictionaryRef Function(WSProtocolHandlerRef, CFStringRef, CFDataRef) +>() +external CFDictionaryRef WSProtocolHandlerCopyReplyDictionary( + WSProtocolHandlerRef ref, + CFStringRef methodName, + CFDataRef data, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDataRef Function(WSProtocolHandlerRef, CFDictionaryRef, CFTypeRef) +>() +external CFDataRef WSProtocolHandlerCopyReplyDocument( + WSProtocolHandlerRef ref, + CFDictionaryRef methodContext, + CFTypeRef resultValue, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFDictionaryRef WSProtocolHandlerCopyRequestDictionary( + WSProtocolHandlerRef ref, + CFDataRef data, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDataRef Function( + WSProtocolHandlerRef, + CFStringRef, + CFDictionaryRef, + CFArrayRef, + CFDictionaryRef, + ) +>() +external CFDataRef WSProtocolHandlerCopyRequestDocument( + WSProtocolHandlerRef ref, + CFStringRef methodName, + CFDictionaryRef methodParams, + CFArrayRef methodParamOrder, + CFDictionaryRef methodExtras, +); + +@Deprecated('No longer supported') +@ffi.Native() +external WSProtocolHandlerRef WSProtocolHandlerCreate( + CFAllocatorRef allocator, + CFStringRef protocol, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int WSProtocolHandlerGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + WSProtocolHandlerRef, + CFStringRef, + CFStringRef, + WSProtocolHandlerDeserializationProcPtr, + ffi.Pointer, + ) +>() +external void WSProtocolHandlerSetDeserializationOverride( + WSProtocolHandlerRef protocol, + CFStringRef typeNamespace, + CFStringRef typeName, + WSProtocolHandlerDeserializationProcPtr deserializationProc, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native() +external void WSProtocolHandlerSetProperty( + WSProtocolHandlerRef ref, + CFStringRef propertyName, + CFTypeRef propertyValue, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + WSProtocolHandlerRef, + CFTypeID, + WSProtocolHandlerSerializationProcPtr, + ffi.Pointer, + ) +>() +external void WSProtocolHandlerSetSerializationOverride( + WSProtocolHandlerRef protocol, + int objType, + WSProtocolHandlerSerializationProcPtr serializationProc, + ffi.Pointer context, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int WakeUpProcess(ffi.Pointer PSN); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() +external ffi.Pointer WideAdd( + ffi.Pointer target, + ffi.Pointer source, +); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer, SInt32)>() +external ffi.Pointer WideBitShift(ffi.Pointer target, int shift); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Pointer)>() +external int WideCompare(ffi.Pointer target, ffi.Pointer source); + +@Deprecated('Deprecated') +@ffi.Native, SInt32, ffi.Pointer)>() +external int WideDivide( + ffi.Pointer dividend, + int divisor, + ffi.Pointer remainder$1, +); + +@Deprecated('Deprecated') +@ffi.Native Function(SInt32, SInt32, ffi.Pointer)>() +external ffi.Pointer WideMultiply( + int multiplicand, + int multiplier, + ffi.Pointer target, +); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer WideNegate(ffi.Pointer target); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer, SInt32)>() +external ffi.Pointer WideShift(ffi.Pointer target, int shift); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int WideSquareRoot(ffi.Pointer source); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() +external ffi.Pointer WideSubtract( + ffi.Pointer target, + ffi.Pointer source, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, SInt32, ffi.Pointer) +>() +external ffi.Pointer WideWideDivide( + ffi.Pointer dividend, + int divisor, + ffi.Pointer remainder$1, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(Handle, ffi.Long, ffi.Pointer, ffi.Long) +>() +external void WritePartialResource( + Handle theResource, + int offset, + ffi.Pointer buffer, + int count, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void WriteResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external int X2Fix(double x); + +@Deprecated('Deprecated') +@ffi.Native() +external int X2Frac(double x); + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_ALLOW_BATTERY; + +@ffi.Native(symbol: 'XPC_ACTIVITY_CHECK_IN') +external xpc_object_t _XPC_ACTIVITY_CHECK_IN; + +Dartxpc_object_t get XPC_ACTIVITY_CHECK_IN => objc.NSObject.fromPointer( + _XPC_ACTIVITY_CHECK_IN, + retain: true, + release: true, +); + +set XPC_ACTIVITY_CHECK_IN(Dartxpc_object_t value) { + objc.NSObject.fromPointer( + _XPC_ACTIVITY_CHECK_IN, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _XPC_ACTIVITY_CHECK_IN = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_DELAY; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_GRACE_PERIOD; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_INTERVAL; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_15_MIN; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_1_DAY; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_1_HOUR; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_1_MIN; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_30_MIN; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_4_HOURS; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_5_MIN; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_7_DAYS; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_8_HOURS; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_PREVENT_DEVICE_SLEEP; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_PRIORITY; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_PRIORITY_MAINTENANCE; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_PRIORITY_UTILITY; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_REPEATING; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_REQUIRE_BATTERY_LEVEL; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_REQUIRE_HDD_SPINNING; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_REQUIRE_SCREEN_SLEEP; + +@Deprecated('Deprecated') +@ffi.Native() +external int YieldToAnyThread(); + +@Deprecated('Deprecated') +@ffi.Native() +external int YieldToThread(int suggestedThread); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_1037nh9( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) +>() +external void _1uu024u_protocolTrampoline_10lndml( + ffi.Pointer target, + ffi.Pointer arg0, + bool arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_10vn635( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + NSInteger, + NSInteger, + ) +>() +external void _1uu024u_protocolTrampoline_15e9dqx( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_18v1jvf( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_19u921t( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + PMPrintSession Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external PMPrintSession _1uu024u_protocolTrampoline_1ch2rph( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSTextCheckingTypes, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_1chy5b9( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_1cn988u( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native< + PMPrintSettings Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external PMPrintSettings _1uu024u_protocolTrampoline_1cwrrqo( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _1uu024u_protocolTrampoline_1em3l8z( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) +>() +external NSRange _1uu024u_protocolTrampoline_1j6oadz( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + bool arg5, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>() +external void _1uu024u_protocolTrampoline_1j7coyk( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_1l4hxwm( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_1lx650f( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_1mbt9g9( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_1p0fswn( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + CGFloat, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGImageRef _1uu024u_protocolTrampoline_1p89e63( + ffi.Pointer target, + ffi.Pointer arg0, + objc.CGSize arg1, + double arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + PMPageFormat Function(ffi.Pointer, ffi.Pointer) +>() +external PMPageFormat _1uu024u_protocolTrampoline_1pm5t72( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) +>() +external void _1uu024u_protocolTrampoline_1qf1qkl( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_1tz5yf( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_1yw2rcr( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _1uu024u_protocolTrampoline_2n06mv( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) +>() +external void _1uu024u_protocolTrampoline_34xzuf( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _1uu024u_protocolTrampoline_3su7tt( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + NSUInteger Function(ffi.Pointer, ffi.Pointer) +>() +external int _1uu024u_protocolTrampoline_5cb1bj( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_738w24( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) +>() +external void _1uu024u_protocolTrampoline_8acz2h( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_8jfq1p( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ) +>() +external void _1uu024u_protocolTrampoline_9crvvv( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_bklti2( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>() +external bool _1uu024u_protocolTrampoline_e3qsqz( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_fjrv01( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) +>() +external void _1uu024u_protocolTrampoline_h68abb( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, +); + +@ffi.Native< + PMPrinter Function(ffi.Pointer, ffi.Pointer) +>() +external PMPrinter _1uu024u_protocolTrampoline_h8xvuu( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_jk1ljc( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _1uu024u_protocolTrampoline_jk8du5( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external bool _1uu024u_protocolTrampoline_jp3gca( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer> arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_jyim80( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_l2g8ke( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) +>() +external void _1uu024u_protocolTrampoline_ly2579( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_m09tr7( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void _1uu024u_protocolTrampoline_ovsamd( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Short Function(ffi.Pointer, ffi.Pointer) +>() +external int _1uu024u_protocolTrampoline_p984hf( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_wpy7aa( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>() +external void _1uu024u_protocolTrampoline_wy9lus( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_xr62hr( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external NSRange _1uu024u_protocolTrampoline_xsqx6i( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_xx612k( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_zi5eed( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>() +external void _1uu024u_protocolTrampoline_zuf90e( + ffi.Pointer target, + ffi.Pointer arg0, + int arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) +>() +external void _1uu024u_protocolTrampoline_zzthnb( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + bool arg2, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1037nh9( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_10lndml( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_10ssdng( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_115kkcp( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_11t2oft( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_132rcs6( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_15e9dqx( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_15f11yh( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_15ghdzk( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_16sve1d( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_18kzm6a( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_18qun1e( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_18v1jvf( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1a22wz( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1b3bb6a( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1cn988u( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1ctgxtl( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1dqvvol( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1j7coyk( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1kwz7d1( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1l4hxwm( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1lx650f( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1otpo83( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1pl9qdv( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1qf1qkl( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1rz4y3( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1s56lr9( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1tz5yf( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1yrznn1( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_34xzuf( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_6enxqz( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_6jvo9y( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_8acz2h( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_8jfq1p( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_9crvvv( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_9fms3g( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_9o8504( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_b3tf6o( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_bklti2( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_du1izn( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_f167m6( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_fjrv01( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_gwxhxt( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_h68abb( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_hk7n97( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_jk1ljc( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_jyim80( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_k73ff5( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_l2g8ke( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_l3f29g( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_lmc3p5( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_ly2579( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_m09tr7( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_n8yd09( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_o762yo( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_og5b6y( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_ovsamd( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_pfv6jd( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_r8gdi7( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_rdj45r( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_tg5tbv( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_wy9lus( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_xtuoz7( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_xx612k( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_zuf90e( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_zzthnb( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1037nh9( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_10lndml( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_10ssdng( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_115kkcp( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_11t2oft( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_132rcs6( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_15e9dqx( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_15f11yh( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_15ghdzk( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_16sve1d( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_18kzm6a( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_18qun1e( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_18v1jvf( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1a22wz( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1b3bb6a( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1cn988u( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1ctgxtl( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1dqvvol( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1j7coyk( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1kwz7d1( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1l4hxwm( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1lx650f( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1otpo83( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1pl9qdv( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1qf1qkl( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1rz4y3( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1s56lr9( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1tz5yf( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1yrznn1( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_34xzuf( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_6enxqz( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_6jvo9y( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_8acz2h( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_8jfq1p( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_9crvvv( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_9fms3g( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_9o8504( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_b3tf6o( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_bklti2( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_du1izn( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_f167m6( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_fjrv01( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_gwxhxt( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_h68abb( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_hk7n97( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_jk1ljc( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_jyim80( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_k73ff5( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_l2g8ke( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_l3f29g( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_lmc3p5( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_ly2579( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_m09tr7( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_n8yd09( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_o762yo( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_og5b6y( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_ovsamd( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_pfv6jd( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_r8gdi7( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_rdj45r( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_tg5tbv( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_wy9lus( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_xtuoz7( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_xx612k( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_zuf90e( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_zzthnb( + int port, + ffi.Pointer context, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer _Block_copy(ffi.Pointer aBlock); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external void _Block_object_assign( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native, ffi.Int)>() +external void _Block_object_dispose(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external void _Block_release(ffi.Pointer aBlock); + +@ffi.Native>() +external ffi.Pointer<_RuneLocale> _CurrentRuneLocale; + +@ffi.Native<_RuneLocale>() +external _RuneLocale _DefaultRuneLocale; + +@ffi.Native() +external void _Exit(int arg0); + +@ffi.Native() +external final fenv_t _FE_DFL_DISABLE_DENORMS_ENV; + +@ffi.Native() +external final fenv_t _FE_DFL_ENV; + +@Deprecated('No longer useful (always true)') +@ffi.Native() +external int _MPIsFullyInitialized(); + +@Deprecated('Use libDispatch') +@ffi.Native< + Boolean Function(ffi.Pointer, UInt32, UInt32, UInt32, UInt32) +>() +external int _MPLibraryIsCompatible( + ffi.Pointer versionCString, + int major, + int minor, + int release, + int revision, +); + +@Deprecated('No longer useful') +@ffi.Native< + ffi.Void Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _MPLibraryVersion( + ffi.Pointer> versionCString, + ffi.Pointer major, + ffi.Pointer minor, + ffi.Pointer release, + ffi.Pointer revision, +); + +@ffi.Array.multi([32]) +@ffi.Native>>() +external ffi.Array> _NSConcreteGlobalBlock; + +@ffi.Array.multi([32]) +@ffi.Native>>() +external ffi.Array> _NSConcreteStackBlock; + +@ffi.Native() +external CFRange __CFRangeMake(int loc, int len); + +@ffi.Native)>() +external CFStringRef __CFStringMakeConstantString(ffi.Pointer cStr); + +@ffi.Native() +external CFDictionaryRef __MDItemCopyAttributesEllipsis1(MDItemRef item); + +@ffi.Native() +external int ___runetype(int arg0); + +@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() +external int ___tolower(int arg0); + +@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() +external int ___toupper(int arg0); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external void __assert_rtn( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native() +external double __cospi(double arg0); + +@ffi.Native() +external double __cospif(double arg0); + +@ffi.Native, ffi.Int)>() +external int __darwin_check_fd_set_overflow( + int arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native Function()>() +external ffi.Pointer __error(); + +@ffi.Native() +external double __exp10(double arg0); + +@ffi.Native() +external double __exp10f(double arg0); + +@ffi.Native() +external int __fpclassifyd(double arg0); + +@ffi.Native() +external int __fpclassifyf(double arg0); + +@ffi.Native() +external int __maskrune(int arg0, int arg1); + +@ffi.Native() +external int __math_errhandling(); + +@ffi.Native() +external int __mb_cur_max; + +@ffi.Native<__double2 Function(ffi.Double)>() +external __double2 __sincos_stret(double arg0); + +@ffi.Native<__float2 Function(ffi.Float)>() +external __float2 __sincosf_stret(double arg0); + +@ffi.Native<__double2 Function(ffi.Double)>() +external __double2 __sincospi_stret(double arg0); + +@ffi.Native<__float2 Function(ffi.Float)>() +external __float2 __sincospif_stret(double arg0); + +@ffi.Native() +external double __sinpi(double arg0); + +@ffi.Native() +external double __sinpif(double arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Size, + ffi.Pointer, + ) +>() +external int __snprintf_chk( + ffi.Pointer arg0, + int __maxlen, + int arg2, + int arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Size, + ffi.Pointer, + ) +>() +external int __sprintf_chk( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native)>() +external int __srget(ffi.Pointer arg0); + +@ffi.Native>() +external ffi.Pointer __stderrp; + +@ffi.Native>() +external ffi.Pointer __stdinp; + +@ffi.Native>() +external ffi.Pointer __stdoutp; + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) +>() +external int __svfscanf( + ffi.Pointer arg0, + ffi.Pointer arg1, + va_list arg2, +); + +@ffi.Native)>() +external int __swbuf(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external double __tanpi(double arg0); + +@ffi.Native() +external double __tanpif(double arg0); + +@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() +external int __tolower(int arg0); + +@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() +external int __toupper(int arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Size, + ffi.Pointer, + va_list, + ) +>() +external int __vsnprintf_chk( + ffi.Pointer arg0, + int __maxlen, + int arg2, + int arg3, + ffi.Pointer arg4, + va_list arg5, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Size, + ffi.Pointer, + va_list, + ) +>() +external int __vsprintf_chk( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + va_list arg4, +); + +@ffi.Native(symbol: '_dispatch_data_destructor_free') +external dispatch_block_t __dispatch_data_destructor_free; + +Dartdispatch_block_t get _dispatch_data_destructor_free => + ObjCBlock_ffiVoid.fromPointer( + __dispatch_data_destructor_free, + retain: true, + release: true, + ); + +set _dispatch_data_destructor_free(Dartdispatch_block_t value) { + ObjCBlock_ffiVoid.fromPointer( + __dispatch_data_destructor_free, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + __dispatch_data_destructor_free = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: '_dispatch_data_destructor_munmap') +external dispatch_block_t __dispatch_data_destructor_munmap; + +Dartdispatch_block_t get _dispatch_data_destructor_munmap => + ObjCBlock_ffiVoid.fromPointer( + __dispatch_data_destructor_munmap, + retain: true, + release: true, + ); + +set _dispatch_data_destructor_munmap(Dartdispatch_block_t value) { + ObjCBlock_ffiVoid.fromPointer( + __dispatch_data_destructor_munmap, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + __dispatch_data_destructor_munmap = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external dispatch_data_s _dispatch_data_empty; + +@ffi.Native() +external dispatch_queue_s _dispatch_main_q; + +@ffi.Native() +external dispatch_queue_attr_s _dispatch_queue_attr_concurrent; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_data_add; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_data_or; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_data_replace; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_mach_recv; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_mach_send; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_memorypressure; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_proc; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_read; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_signal; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_timer; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_vnode; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_write; + +@ffi.Native() +external void _exit(int arg0); + +@ffi.Native)>() +external int _host_page_size(int host, ffi.Pointer out_page_size); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_right_t, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_port_allocate_trap( + int target, + int right, + ffi.Pointer name, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_port_construct_trap( + int target, + ffi.Pointer options, + int context, + ffi.Pointer name, +); + +@ffi.Native() +external int _kernelrpc_mach_port_deallocate_trap(int target, int name); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_name_t, + mach_port_delta_t, + ffi.Uint64, + ) +>() +external int _kernelrpc_mach_port_destruct_trap( + int target, + int name, + int srdelta, + int guard, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) +>() +external int _kernelrpc_mach_port_extract_member_trap( + int target, + int name, + int pset, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_name_t, + mach_port_flavor_t, + mach_port_info_t, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_port_get_attributes_trap( + int target, + int name, + int flavor, + mach_port_info_t port_info_out, + ffi.Pointer port_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_name_t, + ffi.Uint64, + boolean_t, + ) +>() +external int _kernelrpc_mach_port_guard_trap( + int target, + int name, + int guard, + int strict, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) +>() +external int _kernelrpc_mach_port_insert_member_trap( + int target, + int name, + int pset, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_name_t, + mach_port_name_t, + mach_msg_type_name_t, + ) +>() +external int _kernelrpc_mach_port_insert_right_trap( + int target, + int name, + int poly, + int polyPoly, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_name_t, + mach_port_right_t, + mach_port_delta_t, + ) +>() +external int _kernelrpc_mach_port_mod_refs_trap( + int target, + int name, + int right, + int delta, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) +>() +external int _kernelrpc_mach_port_move_member_trap( + int target, + int member, + int after, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_msg_id_t, + mach_port_mscount_t, + mach_port_name_t, + mach_msg_type_name_t, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_port_request_notification_trap( + int task, + int name, + int msgid, + int sync$1, + int notify, + int notifyPoly, + ffi.Pointer previous, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_port_type_trap( + int task, + int name, + ffi.Pointer ptype, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, mach_port_name_t, ffi.Uint64) +>() +external int _kernelrpc_mach_port_unguard_trap(int target, int name, int guard); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Pointer, + mach_vm_size_t, + ffi.Int, + ) +>() +external int _kernelrpc_mach_vm_allocate_trap( + int target, + ffi.Pointer addr, + int size, + int flags, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, mach_vm_address_t, mach_vm_size_t) +>() +external int _kernelrpc_mach_vm_deallocate_trap( + int target, + int address, + int size, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Pointer, + mach_vm_size_t, + mach_vm_offset_t, + ffi.Int, + vm_prot_t, + ) +>() +external int _kernelrpc_mach_vm_map_trap( + int target, + ffi.Pointer address, + int size, + int mask, + int flags, + int cur_protection, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_vm_address_t, + mach_vm_size_t, + boolean_t, + vm_prot_t, + ) +>() +external int _kernelrpc_mach_vm_protect_trap( + int target, + int address, + int size, + int set_maximum, + int new_protection, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_vm_offset_t, + vm_purgable_t, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_vm_purgable_control_trap( + int target, + int address, + int control, + ffi.Pointer state, +); + +@ffi.Native, ffi.Int)>() +external void _longjmp(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int _setjmp(ffi.Pointer arg0); + +@ffi.Native<_xpc_bool_s>() +external final _xpc_bool_s _xpc_bool_false; + +@ffi.Native<_xpc_bool_s>() +external final _xpc_bool_s _xpc_bool_true; + +@ffi.Native<_xpc_dictionary_s>() +external final _xpc_dictionary_s _xpc_error_connection_interrupted; + +@ffi.Native<_xpc_dictionary_s>() +external final _xpc_dictionary_s _xpc_error_connection_invalid; + +@ffi.Native>() +external ffi.Pointer _xpc_error_key_description; + +@ffi.Native<_xpc_dictionary_s>() +external final _xpc_dictionary_s _xpc_error_peer_code_signing_requirement; + +@ffi.Native<_xpc_dictionary_s>() +external final _xpc_dictionary_s _xpc_error_termination_imminent; + +@ffi.Native>() +external ffi.Pointer _xpc_event_key_name; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_activity; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_array; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_bool; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_connection; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_data; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_date; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_dictionary; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_double; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_endpoint; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_error; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_fd; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_int64; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_null; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_rich_error; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_session; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_shmem; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_string; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_uint64; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_uuid; + +@ffi.Native)>() +external int a64l(ffi.Pointer arg0); + +@ffi.Native() +external void abort(); + +@ffi.Native() +external int abs(int arg0); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int accept( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native, ffi.Int)>() +external int access(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + uid_t, + ) +>() +external int accessx_np( + ffi.Pointer arg0, + int __sz, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native)>() +external int acct(ffi.Pointer arg0); + +@ffi.Native( + symbol: 'acl_add_flag_np', +) +external int _acl_add_flag_np(acl_flagset_t flagset_d, int flag); + +int acl_add_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { + return _acl_add_flag_np(flagset_d, flag.value); +} + +@ffi.Native( + symbol: 'acl_add_perm', +) +external int _acl_add_perm(acl_permset_t permset_d, int perm); + +int acl_add_perm(acl_permset_t permset_d, acl_perm_t perm) { + return _acl_add_perm(permset_d, perm.value); +} + +@ffi.Native)>() +external int acl_calc_mask(ffi.Pointer acl_p); + +@ffi.Native() +external int acl_clear_flags_np(acl_flagset_t flagset_d); + +@ffi.Native() +external int acl_clear_perms(acl_permset_t permset_d); + +@ffi.Native() +external int acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d); + +@ffi.Native, acl_t, ssize_t)>() +external int acl_copy_ext(ffi.Pointer buf_p, acl_t acl, int size); + +@ffi.Native, acl_t, ssize_t)>() +external int acl_copy_ext_native( + ffi.Pointer buf_p, + acl_t acl, + int size, +); + +@ffi.Native)>() +external acl_t acl_copy_int(ffi.Pointer buf_p); + +@ffi.Native)>() +external acl_t acl_copy_int_native(ffi.Pointer buf_p); + +@ffi.Native, ffi.Pointer)>() +external int acl_create_entry( + ffi.Pointer acl_p, + ffi.Pointer entry_p, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int acl_create_entry_np( + ffi.Pointer acl_p, + ffi.Pointer entry_p, + int entry_index, +); + +@ffi.Native)>() +external int acl_delete_def_file(ffi.Pointer path_p); + +@ffi.Native() +external int acl_delete_entry(acl_t acl, acl_entry_t entry_d); + +@ffi.Native( + symbol: 'acl_delete_flag_np', +) +external int _acl_delete_flag_np(acl_flagset_t flagset_d, int flag); + +int acl_delete_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { + return _acl_delete_flag_np(flagset_d, flag.value); +} + +@ffi.Native( + symbol: 'acl_delete_perm', +) +external int _acl_delete_perm(acl_permset_t permset_d, int perm); + +int acl_delete_perm(acl_permset_t permset_d, acl_perm_t perm) { + return _acl_delete_perm(permset_d, perm.value); +} + +@ffi.Native() +external acl_t acl_dup(acl_t acl); + +@ffi.Native)>() +external int acl_free(ffi.Pointer obj_p); + +@ffi.Native)>() +external acl_t acl_from_text(ffi.Pointer buf_p); + +@ffi.Native)>() +external int acl_get_entry( + acl_t acl, + int entry_id, + ffi.Pointer entry_p, +); + +@ffi.Native() +external acl_t acl_get_fd(int fd); + +@ffi.Native(symbol: 'acl_get_fd_np') +external acl_t _acl_get_fd_np(int fd, int type); + +acl_t acl_get_fd_np(int fd, acl_type_t type) { + return _acl_get_fd_np(fd, type.value); +} + +@ffi.Native, ffi.UnsignedInt)>( + symbol: 'acl_get_file', +) +external acl_t _acl_get_file(ffi.Pointer path_p, int type); + +acl_t acl_get_file(ffi.Pointer path_p, acl_type_t type) { + return _acl_get_file(path_p, type.value); +} + +@ffi.Native( + symbol: 'acl_get_flag_np', +) +external int _acl_get_flag_np(acl_flagset_t flagset_d, int flag); + +int acl_get_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { + return _acl_get_flag_np(flagset_d, flag.value); +} + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int acl_get_flagset_np( + ffi.Pointer obj_p, + ffi.Pointer flagset_p, +); + +@ffi.Native, ffi.UnsignedInt)>( + symbol: 'acl_get_link_np', +) +external acl_t _acl_get_link_np(ffi.Pointer path_p, int type); + +acl_t acl_get_link_np(ffi.Pointer path_p, acl_type_t type) { + return _acl_get_link_np(path_p, type.value); +} + +@ffi.Native( + symbol: 'acl_get_perm_np', +) +external int _acl_get_perm_np(acl_permset_t permset_d, int perm); + +int acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm) { + return _acl_get_perm_np(permset_d, perm.value); +} + +@ffi.Native)>() +external int acl_get_permset( + acl_entry_t entry_d, + ffi.Pointer permset_p, +); + +@ffi.Native)>() +external int acl_get_permset_mask_np( + acl_entry_t entry_d, + ffi.Pointer mask_p, +); + +@ffi.Native Function(acl_entry_t)>() +external ffi.Pointer acl_get_qualifier(acl_entry_t entry_d); + +@ffi.Native)>() +external int acl_get_tag_type( + acl_entry_t entry_d, + ffi.Pointer tag_type_p, +); + +@ffi.Native() +external acl_t acl_init(int count); + +@ffi.Native)>() +external int acl_maximal_permset_mask_np( + ffi.Pointer mask_p, +); + +@ffi.Native() +external int acl_set_fd(int fd, acl_t acl); + +@ffi.Native( + symbol: 'acl_set_fd_np', +) +external int _acl_set_fd_np(int fd, acl_t acl, int acl_type); + +int acl_set_fd_np(int fd, acl_t acl, acl_type_t acl_type) { + return _acl_set_fd_np(fd, acl, acl_type.value); +} + +@ffi.Native, ffi.UnsignedInt, acl_t)>( + symbol: 'acl_set_file', +) +external int _acl_set_file(ffi.Pointer path_p, int type, acl_t acl); + +int acl_set_file(ffi.Pointer path_p, acl_type_t type, acl_t acl) { + return _acl_set_file(path_p, type.value, acl); +} + +@ffi.Native, acl_flagset_t)>() +external int acl_set_flagset_np( + ffi.Pointer obj_p, + acl_flagset_t flagset_d, +); + +@ffi.Native, ffi.UnsignedInt, acl_t)>( + symbol: 'acl_set_link_np', +) +external int _acl_set_link_np( + ffi.Pointer path_p, + int type, + acl_t acl, +); + +int acl_set_link_np(ffi.Pointer path_p, acl_type_t type, acl_t acl) { + return _acl_set_link_np(path_p, type.value, acl); +} + +@ffi.Native() +external int acl_set_permset(acl_entry_t entry_d, acl_permset_t permset_d); + +@ffi.Native() +external int acl_set_permset_mask_np(acl_entry_t entry_d, int mask); + +@ffi.Native)>() +external int acl_set_qualifier( + acl_entry_t entry_d, + ffi.Pointer tag_qualifier_p, +); + +@ffi.Native( + symbol: 'acl_set_tag_type', +) +external int _acl_set_tag_type(acl_entry_t entry_d, int tag_type); + +int acl_set_tag_type(acl_entry_t entry_d, acl_tag_t tag_type) { + return _acl_set_tag_type(entry_d, tag_type.value); +} + +@ffi.Native() +external int acl_size(acl_t acl); + +@ffi.Native Function(acl_t, ffi.Pointer)>() +external ffi.Pointer acl_to_text( + acl_t acl, + ffi.Pointer len_p, +); + +@ffi.Native() +external int acl_valid(acl_t acl); + +@ffi.Native( + symbol: 'acl_valid_fd_np', +) +external int _acl_valid_fd_np(int fd, int type, acl_t acl); + +int acl_valid_fd_np(int fd, acl_type_t type, acl_t acl) { + return _acl_valid_fd_np(fd, type.value, acl); +} + +@ffi.Native, ffi.UnsignedInt, acl_t)>( + symbol: 'acl_valid_file_np', +) +external int _acl_valid_file_np( + ffi.Pointer path, + int type, + acl_t acl, +); + +int acl_valid_file_np(ffi.Pointer path, acl_type_t type, acl_t acl) { + return _acl_valid_file_np(path, type.value, acl); +} + +@ffi.Native, ffi.UnsignedInt, acl_t)>( + symbol: 'acl_valid_link_np', +) +external int _acl_valid_link_np( + ffi.Pointer path, + int type, + acl_t acl, +); + +int acl_valid_link_np(ffi.Pointer path, acl_type_t type, acl_t acl) { + return _acl_valid_link_np(path, type.value, acl); +} + +@ffi.Native() +external double acos(double arg0); + +@ffi.Native() +external double acosf(double arg0); + +@ffi.Native() +external double acosh(double arg0); + +@ffi.Native() +external double acoshf(double arg0); + +@ffi.Native< + kern_return_t Function( + thread_read_t, + ffi.Int, + thread_state_t, + ffi.Pointer, + ) +>() +external int act_get_state( + int target_act, + int flavor, + thread_state_t old_state, + ffi.Pointer old_stateCnt, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + ffi.Int, + thread_state_t, + mach_msg_type_number_t, + ) +>() +external int act_set_state( + int target_act, + int flavor, + thread_state_t new_state, + int new_stateCnt, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.UnsignedLong, + ffi.UnsignedInt, + ) +>() +external int add_profil( + ffi.Pointer arg0, + int __bufsiz, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer addr2ascii( + int arg0, + ffi.Pointer arg1, + int __size, + ffi.Pointer arg3, +); + +@ffi.Native, ffi.Pointer)>() +external int adjtime(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external int alarm(int arg0); + +@ffi.Native Function(ffi.Size, ffi.Size)>() +external ffi.Pointer aligned_alloc(int __alignment, int __size); + +@ffi.Native Function(ffi.Size)>() +external ffi.Pointer alloca(int __size); + +@Deprecated('Deprecated') +@ffi.Native() +external double annuity(double rate, double periods); + +@ffi.Native() +external int arc4random(); + +@Deprecated('use arc4random_stir') +@ffi.Native, ffi.Int)>() +external void arc4random_addrandom( + ffi.Pointer arg0, + int __datlen, +); + +@ffi.Native, ffi.Size)>() +external void arc4random_buf(ffi.Pointer __buf, int __nbytes); + +@ffi.Native() +external void arc4random_stir(); + +@ffi.Native() +external int arc4random_uniform(int __upper_bound); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int ascii2addr( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer asctime(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer asctime_r( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external double asin(double arg0); + +@ffi.Native() +external double asinf(double arg0); + +@ffi.Native() +external double asinh(double arg0); + +@ffi.Native() +external double asinhf(double arg0); + +@ffi.Native< + ffi.Int Function(ffi.Pointer>, ffi.Pointer) +>() +external int asprintf( + ffi.Pointer> arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer>) +>() +external int at_quick_exit( + ffi.Pointer> arg0, +); + +@ffi.Native() +external double atan(double arg0); + +@ffi.Native() +external double atan2(double arg0, double arg1); + +@ffi.Native() +external double atan2f(double arg0, double arg1); + +@ffi.Native() +external double atanf(double arg0); + +@ffi.Native() +external double atanh(double arg0); + +@ffi.Native() +external double atanhf(double arg0); + +@ffi.Native< + ffi.Int Function(ffi.Pointer>) +>() +external int atexit(ffi.Pointer> arg0); + +@ffi.Native)>( + symbol: 'atexit_b', +) +external int _atexit_b(ffi.Pointer arg0); + +int atexit_b(objc.ObjCBlock arg0) { + final _$$ref = arg0.ref; + return _atexit_b(_$$ref.pointer); +} + +@ffi.Native)>() +external double atof(ffi.Pointer arg0); + +@ffi.Native)>() +external int atoi(ffi.Pointer arg0); + +@ffi.Native)>() +external int atol(ffi.Pointer arg0); + +@ffi.Native)>() +external int atoll(ffi.Pointer arg0); + +@Deprecated('audit is deprecated') +@ffi.Native, ffi.Int)>() +external int audit(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int audit_session_join(int port); + +@ffi.Native)>() +external int audit_session_port( + int asid, + ffi.Pointer portname, +); + +@ffi.Native() +external int audit_session_self(); + +@Deprecated('audit is deprecated') +@ffi.Native)>() +external int auditctl(ffi.Pointer arg0); + +@Deprecated('audit is deprecated') +@ffi.Native, ffi.Int)>() +external int auditon(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int bcmp( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __n, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external void bcopy( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __n, +); + +@ffi.Native, socklen_t)>() +external int bind(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native)>() +external int bindresvport(int arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external int bindresvport_sa(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external int bootstrap_port; + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer brk(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer> Function( + ffi.Int, + ffi.Pointer>, + ) +>() +external ffi.Pointer> bsd_signal( + int arg0, + ffi.Pointer> arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) +>() +external ffi.Pointer bsearch( + ffi.Pointer __key, + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'bsearch_b') +external ffi.Pointer _bsearch_b( + ffi.Pointer __key, + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer __compar, +); + +ffi.Pointer bsearch_b( + ffi.Pointer __key, + ffi.Pointer __base, + int __nel, + int __width, + objc.ObjCBlock, ffi.Pointer)> + __compar, +) { + final _$$ref = __compar.ref; + return _bsearch_b(__key, __base, __nel, __width, _$$ref.pointer); +} + +@ffi.Native, ffi.Size)>() +external void bzero(ffi.Pointer arg0, int __n); + +@ffi.Native Function(ffi.Size, ffi.Size)>() +external ffi.Pointer calloc(int __count, int __size); + +@ffi.Native() +external double cbrt(double arg0); + +@ffi.Native() +external double cbrtf(double arg0); + +@ffi.Native() +external double ceil(double arg0); + +@ffi.Native() +external double ceilf(double arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer cgetcap( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native() +external int cgetclose(); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int cgetent( + ffi.Pointer> arg0, + ffi.Pointer> arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int cgetfirst( + ffi.Pointer> arg0, + ffi.Pointer> arg1, +); + +@ffi.Native, ffi.Pointer)>() +external int cgetmatch(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int cgetnext( + ffi.Pointer> arg0, + ffi.Pointer> arg1, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cgetnum( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native)>() +external int cgetset(ffi.Pointer arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int cgetstr( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int cgetustr( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, +); + +@ffi.Native)>() +external int chdir(ffi.Pointer arg0); + +@ffi.Native, uid_t, gid_t)>() +external int chown(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native)>() +external int chroot(ffi.Pointer arg0); + +@ffi.Native)>() +external void clearerr(ffi.Pointer arg0); + +@ffi.Native() +external int clock(); + +@ffi.Native)>() +external int clock_get_res(int arg0, ffi.Pointer arg1); + +@ffi.Native)>( + symbol: 'clock_getres', +) +external int _clock_getres(int __clock_id, ffi.Pointer __res); + +int clock_getres(clockid_t __clock_id, ffi.Pointer __res) { + return _clock_getres(__clock_id.value, __res); +} + +@ffi.Native)>( + symbol: 'clock_gettime', +) +external int _clock_gettime(int __clock_id, ffi.Pointer __tp); + +int clock_gettime(clockid_t __clock_id, ffi.Pointer __tp) { + return _clock_gettime(__clock_id.value, __tp); +} + +@ffi.Native<__uint64_t Function(ffi.UnsignedInt)>( + symbol: 'clock_gettime_nsec_np', +) +external int _clock_gettime_nsec_np(int __clock_id); + +Dart__uint64_t clock_gettime_nsec_np(clockid_t __clock_id) { + return _clock_gettime_nsec_np(__clock_id.value); +} + +@ffi.Native< + kern_return_t Function( + clock_ctrl_t, + clock_flavor_t, + clock_attr_t, + mach_msg_type_number_t, + ) +>() +external int clock_set_attributes( + int clock_ctrl, + int flavor, + clock_attr_t clock_attr, + int clock_attrCnt, +); + +@ffi.Native() +external int clock_set_res(int arg0, int arg1); + +@ffi.Native() +external int clock_set_time(int clock_ctrl, mach_timespec_t new_time); + +@ffi.Native)>( + symbol: 'clock_settime', +) +external int _clock_settime(int __clock_id, ffi.Pointer __tp); + +int clock_settime(clockid_t __clock_id, ffi.Pointer __tp) { + return _clock_settime(__clock_id.value, __tp); +} + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Int, + mach_timespec_t, + ffi.Pointer, + ) +>() +external int clock_sleep( + int arg0, + int arg1, + mach_timespec_t arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + sleep_type_t, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>() +external int clock_sleep_trap( + int clock_name, + int sleep_type, + int sleep_sec, + int sleep_nsec, + ffi.Pointer wakeup_time, +); + +@ffi.Native() +external int close(int arg0); + +@Deprecated('Deprecated') +@ffi.Native() +external double compound(double rate, double periods); + +@ffi.Native, ffi.Size)>() +external int confstr(int arg0, ffi.Pointer arg1, int __len); + +@ffi.Native, socklen_t)>() +external int connect(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + sae_associd_t, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int connectx( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ffi.Pointer arg4, + int arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, +); + +@ffi.Native() +external double copysign(double arg0, double arg1); + +@ffi.Native() +external double copysignf(double arg0, double arg1); + +@ffi.Native() +external double cos(double arg0); + +@ffi.Native() +external double cosf(double arg0); + +@ffi.Native() +external double cosh(double arg0); + +@ffi.Native() +external double coshf(double arg0); + +@ffi.Native, mode_t)>() +external int creat(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer crypt( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native Function(CSSM_ALGORITHMS)>() +external ffi.Pointer cssmAlgToOid(int algId); + +@ffi.Native< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>() +external bool cssmOidToAlg( + ffi.Pointer oid, + ffi.Pointer alg, +); + +@ffi.Native, CSSM_RETURN)>() +external void cssmPerror(ffi.Pointer how, int error); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ctermid(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ctermid_r(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ctime(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer ctime_r( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsAddDest( + ffi.Pointer name, + ffi.Pointer instance, + int num_dests, + ffi.Pointer> dests, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsAddDestMediaOptions( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + int flags, + ffi.Pointer size, + int num_options, + ffi.Pointer> options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsAddIntegerOption( + ffi.Pointer name, + int value, + int num_options, + ffi.Pointer> options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsAddOption( + ffi.Pointer name, + ffi.Pointer value, + int num_options, + ffi.Pointer> options, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int cupsArrayAdd(ffi.Pointer a, ffi.Pointer e); + +@ffi.Native)>() +external void cupsArrayClear(ffi.Pointer a); + +@ffi.Native)>() +external int cupsArrayCount(ffi.Pointer a); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayCurrent(ffi.Pointer a); + +@ffi.Native)>() +external void cupsArrayDelete(ffi.Pointer a); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayDup(ffi.Pointer a); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsArrayFind( + ffi.Pointer a, + ffi.Pointer e, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayFirst(ffi.Pointer a); + +@ffi.Native)>() +external int cupsArrayGetIndex(ffi.Pointer a); + +@ffi.Native)>() +external int cupsArrayGetInsert(ffi.Pointer a); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int) +>() +external ffi.Pointer cupsArrayIndex( + ffi.Pointer a, + int n, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int cupsArrayInsert( + ffi.Pointer a, + ffi.Pointer e, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayLast(ffi.Pointer a); + +@ffi.Native< + ffi.Pointer Function(cups_array_func_t, ffi.Pointer) +>() +external ffi.Pointer cupsArrayNew( + cups_array_func_t f, + ffi.Pointer d, +); + +@ffi.Native< + ffi.Pointer Function( + cups_array_func_t, + ffi.Pointer, + cups_ahash_func_t, + ffi.Int, + ) +>() +external ffi.Pointer cupsArrayNew2( + cups_array_func_t f, + ffi.Pointer d, + cups_ahash_func_t h, + int hsize, +); + +@ffi.Native< + ffi.Pointer Function( + cups_array_func_t, + ffi.Pointer, + cups_ahash_func_t, + ffi.Int, + cups_acopy_func_t, + cups_afree_func_t, + ) +>() +external ffi.Pointer cupsArrayNew3( + cups_array_func_t f, + ffi.Pointer d, + cups_ahash_func_t h, + int hsize, + cups_acopy_func_t cf, + cups_afree_func_t ff, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayNext(ffi.Pointer a); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayPrev(ffi.Pointer a); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int cupsArrayRemove( + ffi.Pointer a, + ffi.Pointer e, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayRestore(ffi.Pointer a); + +@ffi.Native)>() +external int cupsArraySave(ffi.Pointer a); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayUserData(ffi.Pointer a); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>(symbol: 'cupsCancelDestJob') +external int _cupsCancelDestJob( + ffi.Pointer http, + ffi.Pointer dest, + int job_id, +); + +ipp_status_e cupsCancelDestJob( + ffi.Pointer http, + ffi.Pointer dest, + int job_id, +) { + return ipp_status_e.fromValue(_cupsCancelDestJob(http, dest, job_id)); +} + +@ffi.Native, ffi.Int)>() +external int cupsCancelJob(ffi.Pointer name, int job_id); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int) +>(symbol: 'cupsCancelJob2') +external int _cupsCancelJob2( + ffi.Pointer http, + ffi.Pointer name, + int job_id, + int purge, +); + +ipp_status_e cupsCancelJob2( + ffi.Pointer http, + ffi.Pointer name, + int job_id, + int purge, +) { + return ipp_status_e.fromValue(_cupsCancelJob2(http, name, job_id, purge)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsCheckDestSupported( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + ffi.Pointer option, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'cupsCloseDestJob') +external int _cupsCloseDestJob( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int job_id, +); + +ipp_status_e cupsCloseDestJob( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int job_id, +) { + return ipp_status_e.fromValue(_cupsCloseDestJob(http, dest, info, job_id)); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + cups_dest_cb_t, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsConnectDest( + ffi.Pointer dest, + int flags, + int msec, + ffi.Pointer cancel, + ffi.Pointer resource, + int resourcesize, + cups_dest_cb_t cb, + ffi.Pointer user_data, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + cups_dest_block_t, + ) +>(symbol: 'cupsConnectDestBlock') +external ffi.Pointer _cupsConnectDestBlock( + ffi.Pointer dest, + int flags, + int msec, + ffi.Pointer cancel, + ffi.Pointer resource, + int resourcesize, + cups_dest_block_t block, +); + +ffi.Pointer cupsConnectDestBlock( + ffi.Pointer dest, + int flags, + int msec, + ffi.Pointer cancel, + ffi.Pointer resource, + int resourcesize, + Dartcups_dest_block_t block, +) { + final _$$ref = block.ref; + return _cupsConnectDestBlock( + dest, + flags, + msec, + cancel, + resource, + resourcesize, + _$$ref.pointer, + ); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsCopyDest( + ffi.Pointer dest, + int num_dests, + ffi.Pointer> dests, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int cupsCopyDestConflicts( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int num_options, + ffi.Pointer options, + ffi.Pointer new_option, + ffi.Pointer new_value, + ffi.Pointer num_conflicts, + ffi.Pointer> conflicts, + ffi.Pointer num_resolved, + ffi.Pointer> resolved, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsCopyDestInfo( + ffi.Pointer http, + ffi.Pointer dest, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'cupsCreateDestJob') +external int _cupsCreateDestJob( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + ffi.Pointer job_id, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +ipp_status_e cupsCreateDestJob( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + ffi.Pointer job_id, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +) { + return ipp_status_e.fromValue( + _cupsCreateDestJob(http, dest, info, job_id, title, num_options, options), + ); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int cupsCreateJob( + ffi.Pointer http, + ffi.Pointer name, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsDoAuthentication( + ffi.Pointer http, + ffi.Pointer method, + ffi.Pointer resource, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsDoFileRequest( + ffi.Pointer http, + ffi.Pointer request, + ffi.Pointer resource, + ffi.Pointer filename, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ) +>() +external ffi.Pointer cupsDoIORequest( + ffi.Pointer http, + ffi.Pointer request, + ffi.Pointer resource, + int infile, + int outfile, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsDoRequest( + ffi.Pointer http, + ffi.Pointer request, + ffi.Pointer resource, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'cupsEncodeOption') +external ffi.Pointer _cupsEncodeOption( + ffi.Pointer ipp, + int group_tag, + ffi.Pointer name, + ffi.Pointer value, +); + +ffi.Pointer cupsEncodeOption( + ffi.Pointer ipp, + ipp_tag_e group_tag, + ffi.Pointer name, + ffi.Pointer value, +) { + return _cupsEncodeOption(ipp, group_tag.value, name, value); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external void cupsEncodeOptions( + ffi.Pointer ipp, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'cupsEncodeOptions2') +external void _cupsEncodeOptions2( + ffi.Pointer ipp, + int num_options, + ffi.Pointer options, + int group_tag, +); + +void cupsEncodeOptions2( + ffi.Pointer ipp, + int num_options, + ffi.Pointer options, + ipp_tag_e group_tag, +) { + return _cupsEncodeOptions2(ipp, num_options, options, group_tag.value); +} + +@ffi.Native(symbol: 'cupsEncryption') +external int _cupsEncryption(); + +http_encryption_e cupsEncryption() { + return http_encryption_e.fromValue(_cupsEncryption()); +} + +@ffi.Native< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Int, + ffi.Pointer, + cups_ptype_t, + cups_ptype_t, + cups_dest_cb_t, + ffi.Pointer, + ) +>() +external int cupsEnumDests( + int flags, + int msec, + ffi.Pointer cancel, + int type, + int mask, + cups_dest_cb_t cb, + ffi.Pointer user_data, +); + +@ffi.Native< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Int, + ffi.Pointer, + cups_ptype_t, + cups_ptype_t, + cups_dest_block_t, + ) +>(symbol: 'cupsEnumDestsBlock') +external int _cupsEnumDestsBlock( + int flags, + int msec, + ffi.Pointer cancel, + int type, + int mask, + cups_dest_block_t block, +); + +int cupsEnumDestsBlock( + int flags, + int msec, + ffi.Pointer cancel, + Dartcups_ptype_t type, + Dartcups_ptype_t mask, + Dartcups_dest_block_t block, +) { + final _$$ref = block.ref; + return _cupsEnumDestsBlock(flags, msec, cancel, type, mask, _$$ref.pointer); +} + +@ffi.Native)>() +external int cupsFileClose(ffi.Pointer fp); + +@ffi.Native)>() +external int cupsFileCompression(ffi.Pointer fp); + +@ffi.Native)>() +external int cupsFileEOF(ffi.Pointer fp); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer cupsFileFind( + ffi.Pointer filename, + ffi.Pointer path, + int executable, + ffi.Pointer buffer, + int bufsize, +); + +@ffi.Native)>() +external int cupsFileFlush(ffi.Pointer fp); + +@ffi.Native)>() +external int cupsFileGetChar(ffi.Pointer fp); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsFileGetConf( + ffi.Pointer fp, + ffi.Pointer buf, + int buflen, + ffi.Pointer> value, + ffi.Pointer linenum, +); + +@ffi.Native< + ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int cupsFileGetLine( + ffi.Pointer fp, + ffi.Pointer buf, + int buflen, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer cupsFileGets( + ffi.Pointer fp, + ffi.Pointer buf, + int buflen, +); + +@ffi.Native, ffi.Int)>() +external int cupsFileLock(ffi.Pointer fp, int block); + +@ffi.Native)>() +external int cupsFileNumber(ffi.Pointer fp); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsFileOpen( + ffi.Pointer filename, + ffi.Pointer mode, +); + +@ffi.Native Function(ffi.Int, ffi.Pointer)>() +external ffi.Pointer cupsFileOpenFd( + int fd, + ffi.Pointer mode, +); + +@ffi.Native)>() +external int cupsFilePeekChar(ffi.Pointer fp); + +@ffi.Native, ffi.Pointer)>() +external int cupsFilePrintf( + ffi.Pointer fp, + ffi.Pointer format, +); + +@ffi.Native, ffi.Int)>() +external int cupsFilePutChar(ffi.Pointer fp, int c); + +@ffi.Native< + ssize_t Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsFilePutConf( + ffi.Pointer fp, + ffi.Pointer directive, + ffi.Pointer value, +); + +@ffi.Native, ffi.Pointer)>() +external int cupsFilePuts(ffi.Pointer fp, ffi.Pointer s); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int cupsFileRead( + ffi.Pointer fp, + ffi.Pointer buf, + int bytes, +); + +@ffi.Native)>() +external int cupsFileRewind(ffi.Pointer fp); + +@ffi.Native, off_t)>() +external int cupsFileSeek(ffi.Pointer fp, int pos); + +@ffi.Native Function()>() +external ffi.Pointer cupsFileStderr(); + +@ffi.Native Function()>() +external ffi.Pointer cupsFileStdin(); + +@ffi.Native Function()>() +external ffi.Pointer cupsFileStdout(); + +@ffi.Native)>() +external int cupsFileTell(ffi.Pointer fp); + +@ffi.Native)>() +external int cupsFileUnlock(ffi.Pointer fp); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int cupsFileWrite( + ffi.Pointer fp, + ffi.Pointer buf, + int bytes, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsFindDestDefault( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + ffi.Pointer option, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsFindDestReady( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + ffi.Pointer option, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsFindDestSupported( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + ffi.Pointer option, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'cupsFinishDestDocument') +external int _cupsFinishDestDocument( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, +); + +ipp_status_e cupsFinishDestDocument( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, +) { + return ipp_status_e.fromValue(_cupsFinishDestDocument(http, dest, info)); +} + +@ffi.Native, ffi.Pointer)>( + symbol: 'cupsFinishDocument', +) +external int _cupsFinishDocument( + ffi.Pointer http, + ffi.Pointer name, +); + +ipp_status_e cupsFinishDocument( + ffi.Pointer http, + ffi.Pointer name, +) { + return ipp_status_e.fromValue(_cupsFinishDocument(http, name)); +} + +@ffi.Native)>() +external void cupsFreeDestInfo(ffi.Pointer dinfo); + +@ffi.Native)>() +external void cupsFreeDests(int num_dests, ffi.Pointer dests); + +@ffi.Native)>() +external void cupsFreeJobs(int num_jobs, ffi.Pointer jobs); + +@ffi.Native)>() +external void cupsFreeOptions( + int num_options, + ffi.Pointer options, +); + +@Deprecated('Use cupsEnumDests instead.') +@ffi.Native>>)>() +external int cupsGetClasses( + ffi.Pointer>> classes, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int cupsGetConflicts( + ffi.Pointer ppd, + ffi.Pointer option, + ffi.Pointer choice, + ffi.Pointer> options, +); + +@ffi.Native Function()>() +external ffi.Pointer cupsGetDefault(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsGetDefault2(ffi.Pointer http); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsGetDest( + ffi.Pointer name, + ffi.Pointer instance, + int num_dests, + ffi.Pointer dests, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external int cupsGetDestMediaByIndex( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + int n, + int flags, + ffi.Pointer size, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external int cupsGetDestMediaByName( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + ffi.Pointer media, + int flags, + ffi.Pointer size, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external int cupsGetDestMediaBySize( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + int width, + int length, + int flags, + ffi.Pointer size, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int cupsGetDestMediaCount( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + int flags, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external int cupsGetDestMediaDefault( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + int flags, + ffi.Pointer size, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsGetDestWithURI( + ffi.Pointer name, + ffi.Pointer uri, +); + +@ffi.Native>)>() +external int cupsGetDests(ffi.Pointer> dests); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer>) +>() +external int cupsGetDests2( + ffi.Pointer http, + ffi.Pointer> dests, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>(symbol: 'cupsGetFd') +external int _cupsGetFd( + ffi.Pointer http, + ffi.Pointer resource, + int fd, +); + +http_status_e cupsGetFd( + ffi.Pointer http, + ffi.Pointer resource, + int fd, +) { + return http_status_e.fromValue(_cupsGetFd(http, resource, fd)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'cupsGetFile') +external int _cupsGetFile( + ffi.Pointer http, + ffi.Pointer resource, + ffi.Pointer filename, +); + +http_status_e cupsGetFile( + ffi.Pointer http, + ffi.Pointer resource, + ffi.Pointer filename, +) { + return http_status_e.fromValue(_cupsGetFile(http, resource, filename)); +} + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int cupsGetIntegerOption( + ffi.Pointer name, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Int, + ) +>() +external int cupsGetJobs( + ffi.Pointer> jobs, + ffi.Pointer name, + int myjobs, + int whichjobs, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Int, + ) +>() +external int cupsGetJobs2( + ffi.Pointer http, + ffi.Pointer> jobs, + ffi.Pointer name, + int myjobs, + int whichjobs, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsGetNamedDest( + ffi.Pointer http, + ffi.Pointer name, + ffi.Pointer instance, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsGetOption( + ffi.Pointer name, + int num_options, + ffi.Pointer options, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsGetPPD(ffi.Pointer name); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer cupsGetPPD2( + ffi.Pointer http, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'cupsGetPPD3') +external int _cupsGetPPD3( + ffi.Pointer http, + ffi.Pointer name, + ffi.Pointer modtime, + ffi.Pointer buffer, + int bufsize, +); + +http_status_e cupsGetPPD3( + ffi.Pointer http, + ffi.Pointer name, + ffi.Pointer modtime, + ffi.Pointer buffer, + int bufsize, +) { + return http_status_e.fromValue( + _cupsGetPPD3(http, name, modtime, buffer, bufsize), + ); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsGetPassword(ffi.Pointer prompt); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsGetPassword2( + ffi.Pointer prompt, + ffi.Pointer http, + ffi.Pointer method, + ffi.Pointer resource, +); + +@Deprecated('Use cupsEnumDests instead.') +@ffi.Native>>)>() +external int cupsGetPrinters( + ffi.Pointer>> printers, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer cupsGetResponse( + ffi.Pointer http, + ffi.Pointer resource, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer cupsGetServerPPD( + ffi.Pointer http, + ffi.Pointer name, +); + +@ffi.Native< + ssize_t Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) +>() +external int cupsHashData( + ffi.Pointer algorithm, + ffi.Pointer data, + int datalen, + ffi.Pointer hash, + int hashsize, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer cupsHashString( + ffi.Pointer hash, + int hashsize, + ffi.Pointer buffer, + int bufsize, +); + +@ffi.Native Function()>() +external ffi.Pointer cupsLangDefault(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsLangEncoding(ffi.Pointer lang); + +@ffi.Native() +external void cupsLangFlush(); + +@ffi.Native)>() +external void cupsLangFree(ffi.Pointer lang); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsLangGet(ffi.Pointer language); + +@ffi.Native(symbol: 'cupsLastError') +external int _cupsLastError(); + +ipp_status_e cupsLastError() { + return ipp_status_e.fromValue(_cupsLastError()); +} + +@ffi.Native Function()>() +external ffi.Pointer cupsLastErrorString(); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsLocalizeDestMedia( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int flags, + ffi.Pointer size, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsLocalizeDestOption( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + ffi.Pointer option, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsLocalizeDestValue( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + ffi.Pointer option, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + time_t, + ) +>() +external int cupsMakeServerCredentials( + ffi.Pointer path, + ffi.Pointer common_name, + int num_alt_names, + ffi.Pointer> alt_names, + int expiration_date, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int cupsMarkOptions( + ffi.Pointer ppd, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer cupsNotifySubject( + ffi.Pointer lang, + ffi.Pointer event, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer cupsNotifyText( + ffi.Pointer lang, + ffi.Pointer event, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsParseOptions( + ffi.Pointer arg, + int num_options, + ffi.Pointer> options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int cupsPrintFile( + ffi.Pointer name, + ffi.Pointer filename, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int cupsPrintFile2( + ffi.Pointer http, + ffi.Pointer name, + ffi.Pointer filename, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int cupsPrintFiles( + ffi.Pointer name, + int num_files, + ffi.Pointer> files, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int cupsPrintFiles2( + ffi.Pointer http, + ffi.Pointer name, + int num_files, + ffi.Pointer> files, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>(symbol: 'cupsPutFd') +external int _cupsPutFd( + ffi.Pointer http, + ffi.Pointer resource, + int fd, +); + +http_status_e cupsPutFd( + ffi.Pointer http, + ffi.Pointer resource, + int fd, +) { + return http_status_e.fromValue(_cupsPutFd(http, resource, fd)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'cupsPutFile') +external int _cupsPutFile( + ffi.Pointer http, + ffi.Pointer resource, + ffi.Pointer filename, +); + +http_status_e cupsPutFile( + ffi.Pointer http, + ffi.Pointer resource, + ffi.Pointer filename, +) { + return http_status_e.fromValue(_cupsPutFile(http, resource, filename)); +} + +@ffi.Native)>() +external void cupsRasterClose(ffi.Pointer r); + +@ffi.Native Function()>() +external ffi.Pointer cupsRasterErrorString(); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsRasterInitPWGHeader( + ffi.Pointer h, + ffi.Pointer media, + ffi.Pointer type, + int xdpi, + int ydpi, + ffi.Pointer sides, + ffi.Pointer sheet_back, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + cups_interpret_cb_t, + ) +>() +external int cupsRasterInterpretPPD( + ffi.Pointer h, + ffi.Pointer ppd, + int num_options, + ffi.Pointer options, + cups_interpret_cb_t func, +); + +@ffi.Native Function(ffi.Int, ffi.UnsignedInt)>( + symbol: 'cupsRasterOpen', +) +external ffi.Pointer _cupsRasterOpen(int fd, int mode); + +ffi.Pointer cupsRasterOpen(int fd, cups_mode_e mode) { + return _cupsRasterOpen(fd, mode.value); +} + +@ffi.Native< + ffi.Pointer Function( + cups_raster_iocb_t, + ffi.Pointer, + ffi.UnsignedInt, + ) +>(symbol: 'cupsRasterOpenIO') +external ffi.Pointer _cupsRasterOpenIO( + cups_raster_iocb_t iocb, + ffi.Pointer ctx, + int mode, +); + +ffi.Pointer cupsRasterOpenIO( + cups_raster_iocb_t iocb, + ffi.Pointer ctx, + cups_mode_e mode, +) { + return _cupsRasterOpenIO(iocb, ctx, mode.value); +} + +@Deprecated('Use cupsRasterReadHeader2 instead.') +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsRasterReadHeader( + ffi.Pointer r, + ffi.Pointer h, +); + +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsRasterReadHeader2( + ffi.Pointer r, + ffi.Pointer h, +); + +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int cupsRasterReadPixels( + ffi.Pointer r, + ffi.Pointer p, + int len, +); + +@Deprecated('Use cupsRasterWriteHeader2 instead.') +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsRasterWriteHeader( + ffi.Pointer r, + ffi.Pointer h, +); + +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsRasterWriteHeader2( + ffi.Pointer r, + ffi.Pointer h, +); + +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int cupsRasterWritePixels( + ffi.Pointer r, + ffi.Pointer p, + int len, +); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int cupsReadResponseData( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsRemoveDest( + ffi.Pointer name, + ffi.Pointer instance, + int num_dests, + ffi.Pointer> dests, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsRemoveOption( + ffi.Pointer name, + int num_options, + ffi.Pointer> options, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int cupsResolveConflicts( + ffi.Pointer ppd, + ffi.Pointer option, + ffi.Pointer choice, + ffi.Pointer num_options, + ffi.Pointer> options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'cupsSendRequest') +external int _cupsSendRequest( + ffi.Pointer http, + ffi.Pointer request, + ffi.Pointer resource, + int length, +); + +http_status_e cupsSendRequest( + ffi.Pointer http, + ffi.Pointer request, + ffi.Pointer resource, + int length, +) { + return http_status_e.fromValue( + _cupsSendRequest(http, request, resource, length), + ); +} + +@ffi.Native Function()>() +external ffi.Pointer cupsServer(); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + bearer_token_callback_t, + ffi.Pointer, + ) +>() +external void cupsSetBearerTokenCB( + ffi.Pointer http, + bearer_token_callback_t cb, + ffi.Pointer user_data, +); + +@ffi.Native)>() +external void cupsSetClientCertCB( + cups_client_cert_cb_t cb, + ffi.Pointer user_data, +); + +@ffi.Native)>() +external int cupsSetCredentials(ffi.Pointer certs); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external void cupsSetDefaultDest( + ffi.Pointer name, + ffi.Pointer instance, + int num_dests, + ffi.Pointer dests, +); + +@ffi.Native)>() +external void cupsSetDests(int num_dests, ffi.Pointer dests); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int cupsSetDests2( + ffi.Pointer http, + int num_dests, + ffi.Pointer dests, +); + +@ffi.Native(symbol: 'cupsSetEncryption') +external void _cupsSetEncryption(int e); + +void cupsSetEncryption(http_encryption_e e) { + return _cupsSetEncryption(e.value); +} + +@ffi.Native() +external void cupsSetPasswordCB(cups_password_cb_t cb); + +@ffi.Native)>() +external void cupsSetPasswordCB2( + cups_password_cb2_t cb, + ffi.Pointer user_data, +); + +@ffi.Native)>() +external void cupsSetServer(ffi.Pointer server); + +@ffi.Native)>() +external void cupsSetServerCertCB( + cups_server_cert_cb_t cb, + ffi.Pointer user_data, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int cupsSetServerCredentials( + ffi.Pointer path, + ffi.Pointer common_name, + int auto_create, +); + +@ffi.Native)>() +external void cupsSetUser(ffi.Pointer user); + +@ffi.Native)>() +external void cupsSetUserAgent(ffi.Pointer user_agent); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'cupsStartDestDocument') +external int _cupsStartDestDocument( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int job_id, + ffi.Pointer docname, + ffi.Pointer format, + int num_options, + ffi.Pointer options, + int last_document, +); + +http_status_e cupsStartDestDocument( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int job_id, + ffi.Pointer docname, + ffi.Pointer format, + int num_options, + ffi.Pointer options, + int last_document, +) { + return http_status_e.fromValue( + _cupsStartDestDocument( + http, + dest, + info, + job_id, + docname, + format, + num_options, + options, + last_document, + ), + ); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'cupsStartDocument') +external int _cupsStartDocument( + ffi.Pointer http, + ffi.Pointer name, + int job_id, + ffi.Pointer docname, + ffi.Pointer format, + int last_document, +); + +http_status_e cupsStartDocument( + ffi.Pointer http, + ffi.Pointer name, + int job_id, + ffi.Pointer docname, + ffi.Pointer format, + int last_document, +) { + return http_status_e.fromValue( + _cupsStartDocument(http, name, job_id, docname, format, last_document), + ); +} + +@ffi.Native, ffi.Int)>() +external int cupsTempFd(ffi.Pointer filename, int len); + +@Deprecated('Use cupsTempFd or cupsTempFile2 instead.') +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer cupsTempFile( + ffi.Pointer filename, + int len, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer cupsTempFile2( + ffi.Pointer filename, + int len, +); + +@ffi.Native Function()>() +external ffi.Pointer cupsUser(); + +@ffi.Native Function()>() +external ffi.Pointer cupsUserAgent(); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>(symbol: 'cupsWriteRequestData') +external int _cupsWriteRequestData( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +http_status_e cupsWriteRequestData( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +) { + return http_status_e.fromValue(_cupsWriteRequestData(http, buffer, length)); +} + +@Deprecated('Use posix_spawn APIs instead.') +@ffi.Native() +external int daemon(int arg0, int arg1); + +@ffi.Native() +external int daylight; + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Int, + ffi.Pointer, + ) +>() +external int debug_control_port_for_pid( + int target_tport, + int pid, + ffi.Pointer t, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external double dec2f(ffi.Pointer d); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int dec2l(ffi.Pointer d); + +@Deprecated('Deprecated') +@ffi.Native)>() +external double dec2num(ffi.Pointer d); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int dec2s(ffi.Pointer d); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void dec2str( + ffi.Pointer f, + ffi.Pointer d, + ffi.Pointer s, +); + +@ffi.Native Function(dev_t, mode_t)>() +external ffi.Pointer devname(int arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function(dev_t, mode_t, ffi.Pointer, ffi.Int) +>() +external ffi.Pointer devname_r( + int arg0, + int arg1, + ffi.Pointer buf, + int len, +); + +@ffi.Native() +external double difftime(int arg0, int arg1); + +@ffi.Native() +external int disconnectx(int arg0, int arg1, int arg2); + +@ffi.Native(symbol: 'dispatch_activate') +external void _dispatch_activate(dispatch_object_t object); + +void dispatch_activate(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_activate(_$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function(dispatch_time_t, dispatch_queue_t, dispatch_block_t) +>(symbol: 'dispatch_after') +external void _dispatch_after( + int when, + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_after( + Dartdispatch_time_t when, + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_after(when, _$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_time_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_after_f') +external void _dispatch_after_f( + int when, + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_after_f( + Dartdispatch_time_t when, + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_after_f(when, _$$ref.pointer, context, work); +} + +@ffi.Native() +external int dispatch_allow_send_signals(int preserve_signum); + +@ffi.Native< + ffi.Void Function(ffi.Size, dispatch_queue_t, ffi.Pointer) +>(symbol: 'dispatch_apply') +external void _dispatch_apply( + int iterations, + dispatch_queue_t queue, + ffi.Pointer block, +); + +void dispatch_apply( + int iterations, + Dartdispatch_queue_t? queue, + objc.ObjCBlock block, +) { + final _$$ref = queue?.ref; + final _$$ref$1 = block.ref; + return _dispatch_apply( + iterations, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Void Function( + ffi.Size, + dispatch_queue_t, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer context, ffi.Size iteration) + > + >, + ) +>(symbol: 'dispatch_apply_f') +external void _dispatch_apply_f( + int iterations, + dispatch_queue_t queue, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer context, ffi.Size iteration) + > + > + work, +); + +void dispatch_apply_f( + int iterations, + Dartdispatch_queue_t? queue, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer context, ffi.Size iteration) + > + > + work, +) { + final _$$ref = queue?.ref; + return _dispatch_apply_f( + iterations, + _$$ref?.pointer ?? ffi.nullptr, + context, + work, + ); +} + +@ffi.Native( + symbol: 'dispatch_assert_queue', +) +external void _dispatch_assert_queue(dispatch_queue_t queue); + +void dispatch_assert_queue(Dartdispatch_queue_t queue) { + final _$$ref = queue.ref; + return _dispatch_assert_queue(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_assert_queue_barrier', +) +external void _dispatch_assert_queue_barrier(dispatch_queue_t queue); + +void dispatch_assert_queue_barrier(Dartdispatch_queue_t queue) { + final _$$ref = queue.ref; + return _dispatch_assert_queue_barrier(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_assert_queue_not', +) +external void _dispatch_assert_queue_not(dispatch_queue_t queue); + +void dispatch_assert_queue_not(Dartdispatch_queue_t queue) { + final _$$ref = queue.ref; + return _dispatch_assert_queue_not(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_async', +) +external void _dispatch_async(dispatch_queue_t queue, dispatch_block_t block); + +void dispatch_async(Dartdispatch_queue_t queue, Dartdispatch_block_t block) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_async(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'dispatch_async_and_wait', +) +external void _dispatch_async_and_wait( + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_async_and_wait( + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_async_and_wait(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_async_and_wait_f') +external void _dispatch_async_and_wait_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_async_and_wait_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_async_and_wait_f(_$$ref.pointer, context, work); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_async_f') +external void _dispatch_async_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_async_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_async_f(_$$ref.pointer, context, work); +} + +@ffi.Native( + symbol: 'dispatch_barrier_async', +) +external void _dispatch_barrier_async( + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_barrier_async( + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_barrier_async(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'dispatch_barrier_async_and_wait', +) +external void _dispatch_barrier_async_and_wait( + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_barrier_async_and_wait( + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_barrier_async_and_wait(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_barrier_async_and_wait_f') +external void _dispatch_barrier_async_and_wait_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_barrier_async_and_wait_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_barrier_async_and_wait_f(_$$ref.pointer, context, work); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_barrier_async_f') +external void _dispatch_barrier_async_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_barrier_async_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_barrier_async_f(_$$ref.pointer, context, work); +} + +@ffi.Native( + symbol: 'dispatch_barrier_sync', +) +external void _dispatch_barrier_sync( + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_barrier_sync( + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_barrier_sync(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_barrier_sync_f') +external void _dispatch_barrier_sync_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_barrier_sync_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_barrier_sync_f(_$$ref.pointer, context, work); +} + +@ffi.Native( + symbol: 'dispatch_block_cancel', +) +external void _dispatch_block_cancel(dispatch_block_t block); + +void dispatch_block_cancel(Dartdispatch_block_t block) { + final _$$ref = block.ref; + return _dispatch_block_cancel(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_block_create', +) +external dispatch_block_t _dispatch_block_create( + int flags, + dispatch_block_t block, +); + +Dartdispatch_block_t dispatch_block_create( + int flags, + Dartdispatch_block_t block, +) { + final _$$ref = block.ref; + return ObjCBlock_ffiVoid.fromPointer( + _dispatch_block_create(flags, _$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_block_t Function( + ffi.UnsignedLong, + ffi.UnsignedInt, + ffi.Int, + dispatch_block_t, + ) +>(symbol: 'dispatch_block_create_with_qos_class') +external dispatch_block_t _dispatch_block_create_with_qos_class( + int flags, + int qos_class, + int relative_priority, + dispatch_block_t block, +); + +Dartdispatch_block_t dispatch_block_create_with_qos_class( + int flags, + qos_class_t qos_class, + int relative_priority, + Dartdispatch_block_t block, +) { + final _$$ref = block.ref; + return ObjCBlock_ffiVoid.fromPointer( + _dispatch_block_create_with_qos_class( + flags, + qos_class.value, + relative_priority, + _$$ref.pointer, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Void Function(dispatch_block_t, dispatch_queue_t, dispatch_block_t) +>(symbol: 'dispatch_block_notify') +external void _dispatch_block_notify( + dispatch_block_t block, + dispatch_queue_t queue, + dispatch_block_t notification_block, +); + +void dispatch_block_notify( + Dartdispatch_block_t block, + Dartdispatch_queue_t queue, + Dartdispatch_block_t notification_block, +) { + final _$$ref = block.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = notification_block.ref; + return _dispatch_block_notify( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native( + symbol: 'dispatch_block_perform', +) +external void _dispatch_block_perform(int flags, dispatch_block_t block); + +void dispatch_block_perform(int flags, Dartdispatch_block_t block) { + final _$$ref = block.ref; + return _dispatch_block_perform(flags, _$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_block_testcancel', +) +external int _dispatch_block_testcancel(dispatch_block_t block); + +int dispatch_block_testcancel(Dartdispatch_block_t block) { + final _$$ref = block.ref; + return _dispatch_block_testcancel(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_block_wait', +) +external int _dispatch_block_wait(dispatch_block_t block, int timeout); + +int dispatch_block_wait( + Dartdispatch_block_t block, + Dartdispatch_time_t timeout, +) { + final _$$ref = block.ref; + return _dispatch_block_wait(_$$ref.pointer, timeout); +} + +@ffi.Native( + symbol: 'dispatch_data_apply', +) +external bool _dispatch_data_apply( + dispatch_data_t data, + dispatch_data_applier_t applier, +); + +bool dispatch_data_apply( + Dartdispatch_data_t data, + Dartdispatch_data_applier_t applier, +) { + final _$$ref = data.ref; + final _$$ref$1 = applier.ref; + return _dispatch_data_apply(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + dispatch_data_t Function(dispatch_data_t, ffi.Size, ffi.Pointer) +>(symbol: 'dispatch_data_copy_region') +external dispatch_data_t _dispatch_data_copy_region( + dispatch_data_t data, + int location, + ffi.Pointer offset_ptr, +); + +Dartdispatch_data_t dispatch_data_copy_region( + Dartdispatch_data_t data, + int location, + ffi.Pointer offset_ptr, +) { + final _$$ref = data.ref; + return objc.NSObject.fromPointer( + _dispatch_data_copy_region(_$$ref.pointer, location, offset_ptr), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_data_t Function( + ffi.Pointer, + ffi.Size, + dispatch_queue_t, + dispatch_block_t, + ) +>(symbol: 'dispatch_data_create') +external dispatch_data_t _dispatch_data_create( + ffi.Pointer buffer, + int size, + dispatch_queue_t queue, + dispatch_block_t destructor, +); + +Dartdispatch_data_t dispatch_data_create( + ffi.Pointer buffer, + int size, + Dartdispatch_queue_t? queue, + Dartdispatch_block_t? destructor, +) { + final _$$ref = queue?.ref; + final _$$ref$1 = destructor?.ref; + return objc.NSObject.fromPointer( + _dispatch_data_create( + buffer, + size, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_data_create_concat', +) +external dispatch_data_t _dispatch_data_create_concat( + dispatch_data_t data1, + dispatch_data_t data2, +); + +Dartdispatch_data_t dispatch_data_create_concat( + Dartdispatch_data_t data1, + Dartdispatch_data_t data2, +) { + final _$$ref = data1.ref; + final _$$ref$1 = data2.ref; + return objc.NSObject.fromPointer( + _dispatch_data_create_concat(_$$ref.pointer, _$$ref$1.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_data_t Function( + dispatch_data_t, + ffi.Pointer>, + ffi.Pointer, + ) +>(symbol: 'dispatch_data_create_map') +external dispatch_data_t _dispatch_data_create_map( + dispatch_data_t data, + ffi.Pointer> buffer_ptr, + ffi.Pointer size_ptr, +); + +Dartdispatch_data_t dispatch_data_create_map( + Dartdispatch_data_t data, + ffi.Pointer> buffer_ptr, + ffi.Pointer size_ptr, +) { + final _$$ref = data.ref; + return objc.NSObject.fromPointer( + _dispatch_data_create_map(_$$ref.pointer, buffer_ptr, size_ptr), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_data_create_subrange', +) +external dispatch_data_t _dispatch_data_create_subrange( + dispatch_data_t data, + int offset, + int length, +); + +Dartdispatch_data_t dispatch_data_create_subrange( + Dartdispatch_data_t data, + int offset, + int length, +) { + final _$$ref = data.ref; + return objc.NSObject.fromPointer( + _dispatch_data_create_subrange(_$$ref.pointer, offset, length), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_data_get_size', +) +external int _dispatch_data_get_size(dispatch_data_t data); + +int dispatch_data_get_size(Dartdispatch_data_t data) { + final _$$ref = data.ref; + return _dispatch_data_get_size(_$$ref.pointer); +} + +@Deprecated('unsupported interface') +@ffi.Native)>( + symbol: 'dispatch_debug', +) +external void _dispatch_debug( + dispatch_object_t object, + ffi.Pointer message, +); + +void dispatch_debug( + Dartdispatch_object_t object, + ffi.Pointer message, +) { + final _$$ref = object.ref; + return _dispatch_debug(_$$ref.pointer, message); +} + +@Deprecated('unsupported interface') +@ffi.Native< + ffi.Void Function(dispatch_object_t, ffi.Pointer, va_list) +>(symbol: 'dispatch_debugv') +external void _dispatch_debugv( + dispatch_object_t object, + ffi.Pointer message, + va_list ap, +); + +void dispatch_debugv( + Dartdispatch_object_t object, + ffi.Pointer message, + va_list ap, +) { + final _$$ref = object.ref; + return _dispatch_debugv(_$$ref.pointer, message, ap); +} + +@ffi.Native Function(dispatch_object_t)>( + symbol: 'dispatch_get_context', +) +external ffi.Pointer _dispatch_get_context(dispatch_object_t object); + +ffi.Pointer dispatch_get_context(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_get_context(_$$ref.pointer); +} + +@Deprecated('unsupported interface') +@ffi.Native(symbol: 'dispatch_get_current_queue') +external dispatch_queue_t _dispatch_get_current_queue(); + +Dartdispatch_queue_t dispatch_get_current_queue() { + return objc.NSObject.fromPointer( + _dispatch_get_current_queue(), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_get_global_queue', +) +external dispatch_queue_global_t _dispatch_get_global_queue( + int identifier, + int flags, +); + +Dartdispatch_queue_global_t dispatch_get_global_queue( + int identifier, + int flags, +) { + return objc.NSObject.fromPointer( + _dispatch_get_global_queue(identifier, flags), + retain: true, + release: true, + ); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer dispatch_get_specific(ffi.Pointer key); + +@ffi.Native< + ffi.Void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t) +>(symbol: 'dispatch_group_async') +external void _dispatch_group_async( + dispatch_group_t group, + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_group_async( + Dartdispatch_group_t group, + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = group.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = block.ref; + return _dispatch_group_async( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native< + ffi.Void Function( + dispatch_group_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_group_async_f') +external void _dispatch_group_async_f( + dispatch_group_t group, + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_group_async_f( + Dartdispatch_group_t group, + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = group.ref; + final _$$ref$1 = queue.ref; + return _dispatch_group_async_f( + _$$ref.pointer, + _$$ref$1.pointer, + context, + work, + ); +} + +@ffi.Native(symbol: 'dispatch_group_create') +external dispatch_group_t _dispatch_group_create(); + +Dartdispatch_group_t dispatch_group_create() { + return objc.NSObject.fromPointer( + _dispatch_group_create(), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'dispatch_group_enter') +external void _dispatch_group_enter(dispatch_group_t group); + +void dispatch_group_enter(Dartdispatch_group_t group) { + final _$$ref = group.ref; + return _dispatch_group_enter(_$$ref.pointer); +} + +@ffi.Native(symbol: 'dispatch_group_leave') +external void _dispatch_group_leave(dispatch_group_t group); + +void dispatch_group_leave(Dartdispatch_group_t group) { + final _$$ref = group.ref; + return _dispatch_group_leave(_$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t) +>(symbol: 'dispatch_group_notify') +external void _dispatch_group_notify( + dispatch_group_t group, + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_group_notify( + Dartdispatch_group_t group, + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = group.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = block.ref; + return _dispatch_group_notify( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native< + ffi.Void Function( + dispatch_group_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_group_notify_f') +external void _dispatch_group_notify_f( + dispatch_group_t group, + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_group_notify_f( + Dartdispatch_group_t group, + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = group.ref; + final _$$ref$1 = queue.ref; + return _dispatch_group_notify_f( + _$$ref.pointer, + _$$ref$1.pointer, + context, + work, + ); +} + +@ffi.Native( + symbol: 'dispatch_group_wait', +) +external int _dispatch_group_wait(dispatch_group_t group, int timeout); + +int dispatch_group_wait( + Dartdispatch_group_t group, + Dartdispatch_time_t timeout, +) { + final _$$ref = group.ref; + return _dispatch_group_wait(_$$ref.pointer, timeout); +} + +@ffi.Native( + symbol: 'dispatch_io_barrier', +) +external void _dispatch_io_barrier( + dispatch_io_t channel, + dispatch_block_t barrier, +); + +void dispatch_io_barrier( + Dartdispatch_io_t channel, + Dartdispatch_block_t barrier, +) { + final _$$ref = channel.ref; + final _$$ref$1 = barrier.ref; + return _dispatch_io_barrier(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'dispatch_io_close', +) +external void _dispatch_io_close(dispatch_io_t channel, int flags); + +void dispatch_io_close( + Dartdispatch_io_t channel, + Dartdispatch_io_close_flags_t flags, +) { + final _$$ref = channel.ref; + return _dispatch_io_close(_$$ref.pointer, flags); +} + +@ffi.Native< + dispatch_io_t Function( + dispatch_io_type_t, + dispatch_fd_t, + dispatch_queue_t, + ffi.Pointer, + ) +>(symbol: 'dispatch_io_create') +external dispatch_io_t _dispatch_io_create( + int type, + int fd, + dispatch_queue_t queue, + ffi.Pointer cleanup_handler, +); + +Dartdispatch_io_t dispatch_io_create( + Dartdispatch_io_type_t type, + Dartdispatch_fd_t fd, + Dartdispatch_queue_t queue, + objc.ObjCBlock cleanup_handler, +) { + final _$$ref = queue.ref; + final _$$ref$1 = cleanup_handler.ref; + return objc.NSObject.fromPointer( + _dispatch_io_create(type, fd, _$$ref.pointer, _$$ref$1.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_io_t Function( + dispatch_io_type_t, + dispatch_io_t, + dispatch_queue_t, + ffi.Pointer, + ) +>(symbol: 'dispatch_io_create_with_io') +external dispatch_io_t _dispatch_io_create_with_io( + int type, + dispatch_io_t io, + dispatch_queue_t queue, + ffi.Pointer cleanup_handler, +); + +Dartdispatch_io_t dispatch_io_create_with_io( + Dartdispatch_io_type_t type, + Dartdispatch_io_t io, + Dartdispatch_queue_t queue, + objc.ObjCBlock cleanup_handler, +) { + final _$$ref = io.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = cleanup_handler.ref; + return objc.NSObject.fromPointer( + _dispatch_io_create_with_io( + type, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_io_t Function( + dispatch_io_type_t, + ffi.Pointer, + ffi.Int, + mode_t, + dispatch_queue_t, + ffi.Pointer, + ) +>(symbol: 'dispatch_io_create_with_path') +external dispatch_io_t _dispatch_io_create_with_path( + int type, + ffi.Pointer path, + int oflag, + int mode, + dispatch_queue_t queue, + ffi.Pointer cleanup_handler, +); + +Dartdispatch_io_t dispatch_io_create_with_path( + Dartdispatch_io_type_t type, + ffi.Pointer path, + int oflag, + Dart__uint16_t mode, + Dartdispatch_queue_t queue, + objc.ObjCBlock cleanup_handler, +) { + final _$$ref = queue.ref; + final _$$ref$1 = cleanup_handler.ref; + return objc.NSObject.fromPointer( + _dispatch_io_create_with_path( + type, + path, + oflag, + mode, + _$$ref.pointer, + _$$ref$1.pointer, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_io_get_descriptor', +) +external int _dispatch_io_get_descriptor(dispatch_io_t channel); + +Dartdispatch_fd_t dispatch_io_get_descriptor(Dartdispatch_io_t channel) { + final _$$ref = channel.ref; + return _dispatch_io_get_descriptor(_$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_io_t, + off_t, + ffi.Size, + dispatch_queue_t, + dispatch_io_handler_t, + ) +>(symbol: 'dispatch_io_read') +external void _dispatch_io_read( + dispatch_io_t channel, + int offset, + int length, + dispatch_queue_t queue, + dispatch_io_handler_t io_handler, +); + +void dispatch_io_read( + Dartdispatch_io_t channel, + Dart__int64_t offset, + int length, + Dartdispatch_queue_t queue, + Dartdispatch_io_handler_t io_handler, +) { + final _$$ref = channel.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = io_handler.ref; + return _dispatch_io_read( + _$$ref.pointer, + offset, + length, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native( + symbol: 'dispatch_io_set_high_water', +) +external void _dispatch_io_set_high_water( + dispatch_io_t channel, + int high_water, +); + +void dispatch_io_set_high_water(Dartdispatch_io_t channel, int high_water) { + final _$$ref = channel.ref; + return _dispatch_io_set_high_water(_$$ref.pointer, high_water); +} + +@ffi.Native< + ffi.Void Function(dispatch_io_t, ffi.Uint64, dispatch_io_interval_flags_t) +>(symbol: 'dispatch_io_set_interval') +external void _dispatch_io_set_interval( + dispatch_io_t channel, + int interval, + int flags, +); + +void dispatch_io_set_interval( + Dartdispatch_io_t channel, + int interval, + Dartdispatch_io_interval_flags_t flags, +) { + final _$$ref = channel.ref; + return _dispatch_io_set_interval(_$$ref.pointer, interval, flags); +} + +@ffi.Native( + symbol: 'dispatch_io_set_low_water', +) +external void _dispatch_io_set_low_water(dispatch_io_t channel, int low_water); + +void dispatch_io_set_low_water(Dartdispatch_io_t channel, int low_water) { + final _$$ref = channel.ref; + return _dispatch_io_set_low_water(_$$ref.pointer, low_water); +} + +@ffi.Native< + ffi.Void Function( + dispatch_io_t, + off_t, + dispatch_data_t, + dispatch_queue_t, + dispatch_io_handler_t, + ) +>(symbol: 'dispatch_io_write') +external void _dispatch_io_write( + dispatch_io_t channel, + int offset, + dispatch_data_t data, + dispatch_queue_t queue, + dispatch_io_handler_t io_handler, +); + +void dispatch_io_write( + Dartdispatch_io_t channel, + Dart__int64_t offset, + Dartdispatch_data_t data, + Dartdispatch_queue_t queue, + Dartdispatch_io_handler_t io_handler, +) { + final _$$ref = channel.ref; + final _$$ref$1 = data.ref; + final _$$ref$2 = queue.ref; + final _$$ref$3 = io_handler.ref; + return _dispatch_io_write( + _$$ref.pointer, + offset, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); +} + +@ffi.Native() +external void dispatch_main(); + +@ffi.Native, dispatch_block_t)>( + symbol: 'dispatch_once', +) +external void _dispatch_once( + ffi.Pointer predicate, + dispatch_block_t block, +); + +void dispatch_once( + ffi.Pointer predicate, + Dartdispatch_block_t block, +) { + final _$$ref = block.ref; + return _dispatch_once(predicate, _$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_function_t, + ) +>() +external void dispatch_once_f( + ffi.Pointer predicate, + ffi.Pointer context, + dispatch_function_t function, +); + +@ffi.Native( + symbol: 'dispatch_queue_attr_make_initially_inactive', +) +external dispatch_queue_attr_t _dispatch_queue_attr_make_initially_inactive( + dispatch_queue_attr_t attr, +); + +Dartdispatch_queue_attr_t dispatch_queue_attr_make_initially_inactive( + Dartdispatch_queue_attr_t? attr, +) { + final _$$ref = attr?.ref; + return objc.NSObject.fromPointer( + _dispatch_queue_attr_make_initially_inactive( + _$$ref?.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); +} + +@ffi.Native< + dispatch_queue_attr_t Function(dispatch_queue_attr_t, ffi.UnsignedLong) +>(symbol: 'dispatch_queue_attr_make_with_autorelease_frequency') +external dispatch_queue_attr_t +_dispatch_queue_attr_make_with_autorelease_frequency( + dispatch_queue_attr_t attr, + int frequency, +); + +Dartdispatch_queue_attr_t dispatch_queue_attr_make_with_autorelease_frequency( + Dartdispatch_queue_attr_t? attr, + dispatch_autorelease_frequency_t frequency, +) { + final _$$ref = attr?.ref; + return objc.NSObject.fromPointer( + _dispatch_queue_attr_make_with_autorelease_frequency( + _$$ref?.pointer ?? ffi.nullptr, + frequency.value, + ), + retain: true, + release: true, + ); +} + +@ffi.Native< + dispatch_queue_attr_t Function( + dispatch_queue_attr_t, + ffi.UnsignedInt, + ffi.Int, + ) +>(symbol: 'dispatch_queue_attr_make_with_qos_class') +external dispatch_queue_attr_t _dispatch_queue_attr_make_with_qos_class( + dispatch_queue_attr_t attr, + int qos_class, + int relative_priority, +); + +Dartdispatch_queue_attr_t dispatch_queue_attr_make_with_qos_class( + Dartdispatch_queue_attr_t? attr, + qos_class_t qos_class, + int relative_priority, +) { + final _$$ref = attr?.ref; + return objc.NSObject.fromPointer( + _dispatch_queue_attr_make_with_qos_class( + _$$ref?.pointer ?? ffi.nullptr, + qos_class.value, + relative_priority, + ), + retain: true, + release: true, + ); +} + +@ffi.Native< + dispatch_queue_t Function(ffi.Pointer, dispatch_queue_attr_t) +>(symbol: 'dispatch_queue_create') +external dispatch_queue_t _dispatch_queue_create( + ffi.Pointer label, + dispatch_queue_attr_t attr, +); + +Dartdispatch_queue_t dispatch_queue_create( + ffi.Pointer label, + Dartdispatch_queue_attr_t? attr, +) { + final _$$ref = attr?.ref; + return objc.NSObject.fromPointer( + _dispatch_queue_create(label, _$$ref?.pointer ?? ffi.nullptr), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_queue_t Function( + ffi.Pointer, + dispatch_queue_attr_t, + dispatch_queue_t, + ) +>(symbol: 'dispatch_queue_create_with_target') +external dispatch_queue_t _dispatch_queue_create_with_target( + ffi.Pointer label, + dispatch_queue_attr_t attr, + dispatch_queue_t target, +); + +Dartdispatch_queue_t dispatch_queue_create_with_target( + ffi.Pointer label, + Dartdispatch_queue_attr_t? attr, + Dartdispatch_queue_t? target, +) { + final _$$ref = attr?.ref; + final _$$ref$1 = target?.ref; + return objc.NSObject.fromPointer( + _dispatch_queue_create_with_target( + label, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ), + retain: false, + release: true, + ); +} + +@ffi.Native Function(dispatch_queue_t)>( + symbol: 'dispatch_queue_get_label', +) +external ffi.Pointer _dispatch_queue_get_label( + dispatch_queue_t queue, +); + +ffi.Pointer dispatch_queue_get_label(Dartdispatch_queue_t? queue) { + final _$$ref = queue?.ref; + return _dispatch_queue_get_label(_$$ref?.pointer ?? ffi.nullptr); +} + +@ffi.Native)>( + symbol: 'dispatch_queue_get_qos_class', +) +external int _dispatch_queue_get_qos_class( + dispatch_queue_t queue, + ffi.Pointer relative_priority_ptr, +); + +qos_class_t dispatch_queue_get_qos_class( + Dartdispatch_queue_t queue, + ffi.Pointer relative_priority_ptr, +) { + final _$$ref = queue.ref; + return qos_class_t.fromValue( + _dispatch_queue_get_qos_class(_$$ref.pointer, relative_priority_ptr), + ); +} + +@ffi.Native< + ffi.Pointer Function(dispatch_queue_t, ffi.Pointer) +>(symbol: 'dispatch_queue_get_specific') +external ffi.Pointer _dispatch_queue_get_specific( + dispatch_queue_t queue, + ffi.Pointer key, +); + +ffi.Pointer dispatch_queue_get_specific( + Dartdispatch_queue_t queue, + ffi.Pointer key, +) { + final _$$ref = queue.ref; + return _dispatch_queue_get_specific(_$$ref.pointer, key); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_queue_set_specific') +external void _dispatch_queue_set_specific( + dispatch_queue_t queue, + ffi.Pointer key, + ffi.Pointer context, + dispatch_function_t destructor, +); + +void dispatch_queue_set_specific( + Dartdispatch_queue_t queue, + ffi.Pointer key, + ffi.Pointer context, + dispatch_function_t destructor, +) { + final _$$ref = queue.ref; + return _dispatch_queue_set_specific(_$$ref.pointer, key, context, destructor); +} + +@ffi.Native< + ffi.Void Function( + dispatch_fd_t, + ffi.Size, + dispatch_queue_t, + ffi.Pointer, + ) +>(symbol: 'dispatch_read') +external void _dispatch_read( + int fd, + int length, + dispatch_queue_t queue, + ffi.Pointer handler, +); + +void dispatch_read( + Dartdispatch_fd_t fd, + int length, + Dartdispatch_queue_t queue, + objc.ObjCBlock handler, +) { + final _$$ref = queue.ref; + final _$$ref$1 = handler.ref; + return _dispatch_read(fd, length, _$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native(symbol: 'dispatch_release') +external void _dispatch_release(dispatch_object_t object); + +void dispatch_release(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_release(_$$ref.pointer); +} + +@ffi.Native(symbol: 'dispatch_resume') +external void _dispatch_resume(dispatch_object_t object); + +void dispatch_resume(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_resume(_$$ref.pointer); +} + +@ffi.Native(symbol: 'dispatch_retain') +external void _dispatch_retain(dispatch_object_t object); + +void dispatch_retain(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_retain(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_semaphore_create', +) +external dispatch_semaphore_t _dispatch_semaphore_create(int value); + +Dartdispatch_semaphore_t dispatch_semaphore_create(int value) { + return objc.NSObject.fromPointer( + _dispatch_semaphore_create(value), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_semaphore_signal', +) +external int _dispatch_semaphore_signal(dispatch_semaphore_t dsema); + +int dispatch_semaphore_signal(Dartdispatch_semaphore_t dsema) { + final _$$ref = dsema.ref; + return _dispatch_semaphore_signal(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_semaphore_wait', +) +external int _dispatch_semaphore_wait(dispatch_semaphore_t dsema, int timeout); + +int dispatch_semaphore_wait( + Dartdispatch_semaphore_t dsema, + Dartdispatch_time_t timeout, +) { + final _$$ref = dsema.ref; + return _dispatch_semaphore_wait(_$$ref.pointer, timeout); +} + +@ffi.Native)>( + symbol: 'dispatch_set_context', +) +external void _dispatch_set_context( + dispatch_object_t object, + ffi.Pointer context, +); + +void dispatch_set_context( + Dartdispatch_object_t object, + ffi.Pointer context, +) { + final _$$ref = object.ref; + return _dispatch_set_context(_$$ref.pointer, context); +} + +@ffi.Native( + symbol: 'dispatch_set_finalizer_f', +) +external void _dispatch_set_finalizer_f( + dispatch_object_t object, + dispatch_function_t finalizer, +); + +void dispatch_set_finalizer_f( + Dartdispatch_object_t object, + dispatch_function_t finalizer, +) { + final _$$ref = object.ref; + return _dispatch_set_finalizer_f(_$$ref.pointer, finalizer); +} + +@ffi.Native( + symbol: 'dispatch_set_qos_class_floor', +) +external void _dispatch_set_qos_class_floor( + dispatch_object_t object, + int qos_class, + int relative_priority, +); + +void dispatch_set_qos_class_floor( + Dartdispatch_object_t object, + qos_class_t qos_class, + int relative_priority, +) { + final _$$ref = object.ref; + return _dispatch_set_qos_class_floor( + _$$ref.pointer, + qos_class.value, + relative_priority, + ); +} + +@ffi.Native( + symbol: 'dispatch_set_target_queue', +) +external void _dispatch_set_target_queue( + dispatch_object_t object, + dispatch_queue_t queue, +); + +void dispatch_set_target_queue( + Dartdispatch_object_t object, + Dartdispatch_queue_t? queue, +) { + final _$$ref = object.ref; + final _$$ref$1 = queue?.ref; + return _dispatch_set_target_queue( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native( + symbol: 'dispatch_source_cancel', +) +external void _dispatch_source_cancel(dispatch_source_t source); + +void dispatch_source_cancel(Dartdispatch_source_t source) { + final _$$ref = source.ref; + return _dispatch_source_cancel(_$$ref.pointer); +} + +@ffi.Native< + dispatch_source_t Function( + dispatch_source_type_t, + ffi.UintPtr, + ffi.UintPtr, + dispatch_queue_t, + ) +>(symbol: 'dispatch_source_create') +external dispatch_source_t _dispatch_source_create( + dispatch_source_type_t type, + int handle, + int mask, + dispatch_queue_t queue, +); + +Dartdispatch_source_t dispatch_source_create( + dispatch_source_type_t type, + int handle, + int mask, + Dartdispatch_queue_t? queue, +) { + final _$$ref = queue?.ref; + return objc.NSObject.fromPointer( + _dispatch_source_create(type, handle, mask, _$$ref?.pointer ?? ffi.nullptr), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_source_get_data', +) +external int _dispatch_source_get_data(dispatch_source_t source); + +int dispatch_source_get_data(Dartdispatch_source_t source) { + final _$$ref = source.ref; + return _dispatch_source_get_data(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_source_get_handle', +) +external int _dispatch_source_get_handle(dispatch_source_t source); + +int dispatch_source_get_handle(Dartdispatch_source_t source) { + final _$$ref = source.ref; + return _dispatch_source_get_handle(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_source_get_mask', +) +external int _dispatch_source_get_mask(dispatch_source_t source); + +int dispatch_source_get_mask(Dartdispatch_source_t source) { + final _$$ref = source.ref; + return _dispatch_source_get_mask(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_source_merge_data', +) +external void _dispatch_source_merge_data(dispatch_source_t source, int value); + +void dispatch_source_merge_data(Dartdispatch_source_t source, int value) { + final _$$ref = source.ref; + return _dispatch_source_merge_data(_$$ref.pointer, value); +} + +@ffi.Native( + symbol: 'dispatch_source_set_cancel_handler', +) +external void _dispatch_source_set_cancel_handler( + dispatch_source_t source, + dispatch_block_t handler, +); + +void dispatch_source_set_cancel_handler( + Dartdispatch_source_t source, + Dartdispatch_block_t? handler, +) { + final _$$ref = source.ref; + final _$$ref$1 = handler?.ref; + return _dispatch_source_set_cancel_handler( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native( + symbol: 'dispatch_source_set_cancel_handler_f', +) +external void _dispatch_source_set_cancel_handler_f( + dispatch_source_t source, + dispatch_function_t handler, +); + +void dispatch_source_set_cancel_handler_f( + Dartdispatch_source_t source, + dispatch_function_t handler, +) { + final _$$ref = source.ref; + return _dispatch_source_set_cancel_handler_f(_$$ref.pointer, handler); +} + +@ffi.Native( + symbol: 'dispatch_source_set_event_handler', +) +external void _dispatch_source_set_event_handler( + dispatch_source_t source, + dispatch_block_t handler, +); + +void dispatch_source_set_event_handler( + Dartdispatch_source_t source, + Dartdispatch_block_t? handler, +) { + final _$$ref = source.ref; + final _$$ref$1 = handler?.ref; + return _dispatch_source_set_event_handler( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native( + symbol: 'dispatch_source_set_event_handler_f', +) +external void _dispatch_source_set_event_handler_f( + dispatch_source_t source, + dispatch_function_t handler, +); + +void dispatch_source_set_event_handler_f( + Dartdispatch_source_t source, + dispatch_function_t handler, +) { + final _$$ref = source.ref; + return _dispatch_source_set_event_handler_f(_$$ref.pointer, handler); +} + +@ffi.Native( + symbol: 'dispatch_source_set_registration_handler', +) +external void _dispatch_source_set_registration_handler( + dispatch_source_t source, + dispatch_block_t handler, +); + +void dispatch_source_set_registration_handler( + Dartdispatch_source_t source, + Dartdispatch_block_t? handler, +) { + final _$$ref = source.ref; + final _$$ref$1 = handler?.ref; + return _dispatch_source_set_registration_handler( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native( + symbol: 'dispatch_source_set_registration_handler_f', +) +external void _dispatch_source_set_registration_handler_f( + dispatch_source_t source, + dispatch_function_t handler, +); + +void dispatch_source_set_registration_handler_f( + Dartdispatch_source_t source, + dispatch_function_t handler, +) { + final _$$ref = source.ref; + return _dispatch_source_set_registration_handler_f(_$$ref.pointer, handler); +} + +@ffi.Native< + ffi.Void Function(dispatch_source_t, dispatch_time_t, ffi.Uint64, ffi.Uint64) +>(symbol: 'dispatch_source_set_timer') +external void _dispatch_source_set_timer( + dispatch_source_t source, + int start, + int interval, + int leeway, +); + +void dispatch_source_set_timer( + Dartdispatch_source_t source, + Dartdispatch_time_t start, + int interval, + int leeway, +) { + final _$$ref = source.ref; + return _dispatch_source_set_timer(_$$ref.pointer, start, interval, leeway); +} + +@ffi.Native( + symbol: 'dispatch_source_testcancel', +) +external int _dispatch_source_testcancel(dispatch_source_t source); + +int dispatch_source_testcancel(Dartdispatch_source_t source) { + final _$$ref = source.ref; + return _dispatch_source_testcancel(_$$ref.pointer); +} + +@ffi.Native(symbol: 'dispatch_suspend') +external void _dispatch_suspend(dispatch_object_t object); + +void dispatch_suspend(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_suspend(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_sync', +) +external void _dispatch_sync(dispatch_queue_t queue, dispatch_block_t block); + +void dispatch_sync(Dartdispatch_queue_t queue, Dartdispatch_block_t block) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_sync(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_sync_f') +external void _dispatch_sync_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_sync_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_sync_f(_$$ref.pointer, context, work); +} + +@ffi.Native() +external int dispatch_time(int when, int delta); + +@ffi.Native, ffi.Int64)>() +external int dispatch_walltime(ffi.Pointer when, int delta); + +@ffi.Native)>( + symbol: 'dispatch_workloop_create', +) +external dispatch_workloop_t _dispatch_workloop_create( + ffi.Pointer label, +); + +Dartdispatch_workloop_t dispatch_workloop_create(ffi.Pointer label) { + return objc.NSObject.fromPointer( + _dispatch_workloop_create(label), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'dispatch_workloop_create_inactive', +) +external dispatch_workloop_t _dispatch_workloop_create_inactive( + ffi.Pointer label, +); + +Dartdispatch_workloop_t dispatch_workloop_create_inactive( + ffi.Pointer label, +) { + return objc.NSObject.fromPointer( + _dispatch_workloop_create_inactive(label), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_workloop_set_autorelease_frequency', +) +external void _dispatch_workloop_set_autorelease_frequency( + dispatch_workloop_t workloop, + int frequency, +); + +void dispatch_workloop_set_autorelease_frequency( + Dartdispatch_workloop_t workloop, + dispatch_autorelease_frequency_t frequency, +) { + final _$$ref = workloop.ref; + return _dispatch_workloop_set_autorelease_frequency( + _$$ref.pointer, + frequency.value, + ); +} + +@ffi.Native( + symbol: 'dispatch_workloop_set_os_workgroup', +) +external void _dispatch_workloop_set_os_workgroup( + dispatch_workloop_t workloop, + os_workgroup_t workgroup, +); + +void dispatch_workloop_set_os_workgroup( + Dartdispatch_workloop_t workloop, + Dartos_workgroup_t workgroup, +) { + final _$$ref = workloop.ref; + final _$$ref$1 = workgroup.ref; + return _dispatch_workloop_set_os_workgroup(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_fd_t, + dispatch_data_t, + dispatch_queue_t, + ffi.Pointer, + ) +>(symbol: 'dispatch_write') +external void _dispatch_write( + int fd, + dispatch_data_t data, + dispatch_queue_t queue, + ffi.Pointer handler, +); + +void dispatch_write( + Dartdispatch_fd_t fd, + Dartdispatch_data_t data, + Dartdispatch_queue_t queue, + objc.ObjCBlock handler, +) { + final _$$ref = data.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = handler.ref; + return _dispatch_write( + fd, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native() +external div_t div(int arg0, int arg1); + +@ffi.Native)>() +external int dprintf(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external double drand48(); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void dtox80(ffi.Pointer x, ffi.Pointer x80); + +@ffi.Native() +external int dup(int arg0); + +@ffi.Native() +external int dup2(int arg0, int arg1); + +@ffi.Native() +external locale_t duplocale(locale_t arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Double, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ecvt( + double arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native, ffi.Int)>() +external void encrypt(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external void endhostent(); + +@ffi.Native() +external void endnetent(); + +@ffi.Native() +external void endnetgrent(); + +@ffi.Native() +external void endprotoent(); + +@ffi.Native() +external void endrpcent(); + +@ffi.Native() +external void endservent(); + +@ffi.Native() +external void endusershell(); + +@ffi.Native)>() +external double erand48(ffi.Pointer arg0); + +@ffi.Native() +external double erf(double arg0); + +@ffi.Native() +external double erfc(double arg0); + +@ffi.Native() +external double erfcf(double arg0); + +@ffi.Native() +external double erff(double arg0); + +@ffi.Native() +external int etap_trace_thread(int target_act, int trace_status); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int exchangedata( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native, ffi.Pointer)>() +external int execl(ffi.Pointer __path, ffi.Pointer __arg0); + +@ffi.Native, ffi.Pointer)>() +external int execle(ffi.Pointer __path, ffi.Pointer __arg0); + +@ffi.Native, ffi.Pointer)>() +external int execlp(ffi.Pointer __file, ffi.Pointer __arg0); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer>) +>() +external int execv( + ffi.Pointer __path, + ffi.Pointer> __argv, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int execvP( + ffi.Pointer __file, + ffi.Pointer __searchpath, + ffi.Pointer> __argv, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int execve( + ffi.Pointer __file, + ffi.Pointer> __argv, + ffi.Pointer> __envp, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer>) +>() +external int execvp( + ffi.Pointer __file, + ffi.Pointer> __argv, +); + +@ffi.Native() +external void exit(int arg0); + +@ffi.Native() +external double exp(double arg0); + +@ffi.Native() +external double exp2(double arg0); + +@ffi.Native() +external double exp2f(double arg0); + +@ffi.Native() +external double expf(double arg0); + +@ffi.Native() +external double expm1(double arg0); + +@ffi.Native() +external double expm1f(double arg0); + +@ffi.Native() +external double fabs(double arg0); + +@ffi.Native() +external double fabsf(double arg0); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) +>() +external int faccessat( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, +); + +@ffi.Native() +external int fchdir(int arg0); + +@ffi.Native() +external int fchown(int arg0, int arg1, int arg2); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, uid_t, gid_t, ffi.Int) +>() +external int fchownat( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, +); + +@ffi.Native)>() +external int fclose(ffi.Pointer arg0); + +@ffi.Native() +external int fcntl(int arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.Double, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer fcvt( + double arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native() +external double fdim(double arg0, double arg1); + +@ffi.Native() +external double fdimf(double arg0, double arg1); + +@ffi.Native Function(ffi.Int, ffi.Pointer)>() +external ffi.Pointer fdopen(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external int feclearexcept(int arg0); + +@ffi.Native)>() +external int fegetenv(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int fegetexceptflag(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int fegetround(); + +@ffi.Native)>() +external int feholdexcept(ffi.Pointer arg0); + +@ffi.Native)>() +external int feof(ffi.Pointer arg0); + +@ffi.Native() +external int feraiseexcept(int arg0); + +@ffi.Native)>() +external int ferror(ffi.Pointer arg0); + +@ffi.Native)>() +external int fesetenv(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int fesetexceptflag(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int fesetround(int arg0); + +@ffi.Native() +external int fetestexcept(int arg0); + +@ffi.Native)>() +external int feupdateenv(ffi.Pointer arg0); + +@ffi.Native Function(ffi.UnsignedLong)>() +external ffi.Pointer fflagstostr(int arg0); + +@ffi.Native)>() +external int fflush(ffi.Pointer arg0); + +@ffi.Native() +external int ffs(int arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int ffsctl(int arg0, int arg1, ffi.Pointer arg2, int arg3); + +@ffi.Native() +external int ffsl(int arg0); + +@ffi.Native() +external int ffsll(int arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) +>() +external int fgetattrlist( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, + int arg4, +); + +@ffi.Native)>() +external int fgetc(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer fgetln( + ffi.Pointer arg0, + ffi.Pointer __len, +); + +@ffi.Native, ffi.Pointer)>() +external int fgetpos(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer fgets( + ffi.Pointer arg0, + int __size, + ffi.Pointer arg2, +); + +@ffi.Native)>() +external int fileno(ffi.Pointer arg0); + +@ffi.Native() +external filesec_t filesec_dup(filesec_t arg0); + +@ffi.Native() +external void filesec_free(filesec_t arg0); + +@ffi.Native< + ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'filesec_get_property') +external int _filesec_get_property( + filesec_t arg0, + int arg1, + ffi.Pointer arg2, +); + +int filesec_get_property( + filesec_t arg0, + filesec_property_t arg1, + ffi.Pointer arg2, +) { + return _filesec_get_property(arg0, arg1.value, arg2); +} + +@ffi.Native() +external filesec_t filesec_init(); + +@ffi.Native)>( + symbol: 'filesec_query_property', +) +external int _filesec_query_property( + filesec_t arg0, + int arg1, + ffi.Pointer arg2, +); + +int filesec_query_property( + filesec_t arg0, + filesec_property_t arg1, + ffi.Pointer arg2, +) { + return _filesec_query_property(arg0, arg1.value, arg2); +} + +@ffi.Native< + ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'filesec_set_property') +external int _filesec_set_property( + filesec_t arg0, + int arg1, + ffi.Pointer arg2, +); + +int filesec_set_property( + filesec_t arg0, + filesec_property_t arg1, + ffi.Pointer arg2, +) { + return _filesec_set_property(arg0, arg1.value, arg2); +} + +@ffi.Native( + symbol: 'filesec_unset_property', +) +external int _filesec_unset_property(filesec_t arg0, int arg1); + +int filesec_unset_property(filesec_t arg0, filesec_property_t arg1) { + return _filesec_unset_property(arg0, arg1.value); +} + +@ffi.Native() +external int flock(int arg0, int arg1); + +@ffi.Native)>() +external void flockfile(ffi.Pointer arg0); + +@ffi.Native() +external double floor(double arg0); + +@ffi.Native() +external double floorf(double arg0); + +@ffi.Native() +external int fls(int arg0); + +@ffi.Native() +external int flsl(int arg0); + +@ffi.Native() +external int flsll(int arg0); + +@ffi.Native() +external double fma(double arg0, double arg1, double arg2); + +@ffi.Native() +external double fmaf(double arg0, double arg1, double arg2); + +@ffi.Native() +external double fmax(double arg0, double arg1); + +@ffi.Native() +external double fmaxf(double arg0, double arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external ffi.Pointer fmemopen( + ffi.Pointer __buf, + int __size, + ffi.Pointer __mode, +); + +@ffi.Native() +external double fmin(double arg0, double arg1); + +@ffi.Native() +external double fminf(double arg0, double arg1); + +@ffi.Native() +external double fmod(double arg0, double arg1); + +@ffi.Native() +external double fmodf(double arg0, double arg1); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer fmtcheck( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer fopen( + ffi.Pointer __filename, + ffi.Pointer __mode, +); + +@ffi.Native() +external int fork(); + +@ffi.Native() +external int fpathconf(int arg0, int arg1); + +@ffi.Native, ffi.Pointer)>() +external int fprintf(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external int fpurge(ffi.Pointer arg0); + +@ffi.Native)>() +external int fputc(int arg0, ffi.Pointer arg1); + +@ffi.Native, ffi.Pointer)>() +external int fputs(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>() +external int fread( + ffi.Pointer __ptr, + int __size, + int __nitems, + ffi.Pointer __stream, +); + +@ffi.Native, ffi.Size)>() +external int freadlink(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native)>() +external void free(ffi.Pointer arg0); + +@ffi.Native)>() +external void freeaddrinfo(ffi.Pointer arg0); + +@ffi.Native)>() +external void freehostent(ffi.Pointer arg0); + +@ffi.Native() +external int freelocale(locale_t arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer freopen( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native)>() +external double frexp(double arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external double frexpf(double arg0, ffi.Pointer arg1); + +@ffi.Native, ffi.Pointer)>() +external int fscanf(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int fsctl( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native, ffi.Long, ffi.Int)>() +external int fseek(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native, off_t, ffi.Int)>() +external int fseeko(ffi.Pointer __stream, int __offset, int __whence); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) +>() +external int fsetattrlist( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, + int arg4, +); + +@ffi.Native, ffi.Pointer)>() +external int fsetpos(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external int fsync(int arg0); + +@ffi.Native() +external int fsync_volume_np(int arg0, int arg1); + +@ffi.Native)>() +external int ftell(ffi.Pointer arg0); + +@ffi.Native)>() +external int ftello(ffi.Pointer __stream); + +@ffi.Native() +external int ftruncate(int arg0, int arg1); + +@ffi.Native)>() +external int ftrylockfile(ffi.Pointer arg0); + +@ffi.Native)>() +external void funlockfile(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + >, + ffi.Pointer< + ffi.NativeFunction< + fpos_t Function(ffi.Pointer, fpos_t, ffi.Int) + > + >, + ffi.Pointer)>>, + ) +>() +external ffi.Pointer funopen( + ffi.Pointer arg0, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + arg1, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + arg2, + ffi.Pointer< + ffi.NativeFunction, fpos_t, ffi.Int)> + > + arg3, + ffi.Pointer)>> arg4, +); + +@ffi.Native)>() +external int futimes(int arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>() +external int fwrite( + ffi.Pointer __ptr, + int __size, + int __nitems, + ffi.Pointer __stream, +); + +@ffi.Native() +external final CSSM_GUID gGuidAppleCSP; + +@ffi.Native() +external final CSSM_GUID gGuidAppleCSPDL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleDotMacDL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleDotMacTP; + +@ffi.Native() +external final CSSM_GUID gGuidAppleFileDL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleLDAPDL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleSdCSPDL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleX509CL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleX509TP; + +@ffi.Native() +external final CSSM_GUID gGuidCssm; + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer gai_strerror(int arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Double, ffi.Int, ffi.Pointer) +>() +external ffi.Pointer gcvt( + double arg0, + int arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int getaddrinfo( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) +>() +external int getattrlist( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, + int arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedLong, + ) +>() +external int getattrlistat( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + int arg4, + int arg5, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Uint64, + ) +>() +external int getattrlistbulk( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int getaudit(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int getaudit_addr(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int getauid(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer getbsize( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native)>() +external int getc(ffi.Pointer arg0); + +@ffi.Native)>() +external int getc_unlocked(ffi.Pointer arg0); + +@ffi.Native() +external int getchar(); + +@ffi.Native() +external int getchar_unlocked(); + +@ffi.Native Function(ffi.Pointer, ffi.Size)>() +external ffi.Pointer getcwd(ffi.Pointer arg0, int __size); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getdate(ffi.Pointer arg0); + +@ffi.Native() +external int getdate_err; + +@ffi.Native< + ssize_t Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int getdelim( + ffi.Pointer> __linep, + ffi.Pointer __linecapp, + int __delimiter, + ffi.Pointer __stream, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int getdirentriesattr( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, + ffi.Pointer arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + int arg7, +); + +@ffi.Native, ffi.Int)>() +external int getdomainname(ffi.Pointer arg0, int __namelen); + +@ffi.Native() +external int getdtablesize(); + +@ffi.Native() +external int getegid(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getenv(ffi.Pointer arg0); + +@ffi.Native() +external int geteuid(); + +@ffi.Native() +external int getgid(); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int getgrouplist( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer __ngroups, +); + +@ffi.Native)>() +external int getgroups(int __gidsetsize, ffi.Pointer arg1); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, socklen_t, ffi.Int) +>() +external ffi.Pointer gethostbyaddr( + ffi.Pointer arg0, + int arg1, + int arg2, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer gethostbyname(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer gethostbyname2( + ffi.Pointer arg0, + int arg1, +); + +@ffi.Native Function()>() +external ffi.Pointer gethostent(); + +@ffi.Native() +external int gethostid(); + +@ffi.Native, ffi.Size)>() +external int gethostname(ffi.Pointer arg0, int __namelen); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int gethostuuid( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int getiopolicy_np(int arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer getipnodebyaddr( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer getipnodebyname( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + in_addr, + in_addr, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int getipv4sourcefilter( + int arg0, + in_addr arg1, + in_addr arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native)>() +external int getitimer(int arg0, ffi.Pointer arg1); + +@ffi.Native< + ssize_t Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int getline( + ffi.Pointer> __linep, + ffi.Pointer __linecapp, + ffi.Pointer __stream, +); + +@ffi.Native, ffi.Int)>() +external int getloadavg(ffi.Pointer arg0, int __nelem); + +@ffi.Native Function()>() +external ffi.Pointer getlogin(); + +@ffi.Native, ffi.Size)>() +external int getlogin_r(ffi.Pointer arg0, int __namelen); + +@ffi.Native, mode_t)>() +external int getmode(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + socklen_t, + ffi.Pointer, + socklen_t, + ffi.Pointer, + socklen_t, + ffi.Int, + ) +>() +external int getnameinfo( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + int arg5, + int arg6, +); + +@ffi.Native Function(ffi.Uint32, ffi.Int)>() +external ffi.Pointer getnetbyaddr(int arg0, int arg1); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getnetbyname(ffi.Pointer arg0); + +@ffi.Native Function()>() +external ffi.Pointer getnetent(); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int getnetgrent( + ffi.Pointer> arg0, + ffi.Pointer> arg1, + ffi.Pointer> arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int getopt( + int __argc, + ffi.Pointer> arg1, + ffi.Pointer arg2, +); + +@ffi.Native() +external int getpagesize(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getpass(ffi.Pointer arg0); + +@ffi.Native, ffi.Pointer)>() +external int getpeereid( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int getpeername( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native() +external int getpgid(int arg0); + +@ffi.Native() +external int getpgrp(); + +@ffi.Native() +external int getpid(); + +@ffi.Native() +external int getppid(); + +@ffi.Native() +external int getpriority(int arg0, int arg1); + +@ffi.Native Function()>() +external ffi.Pointer getprogname(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getprotobyname(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer getprotobynumber(int arg0); + +@ffi.Native Function()>() +external ffi.Pointer getprotoent(); + +@ffi.Native)>() +external int getrlimit(int arg0, ffi.Pointer arg1); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getrpcbyname(ffi.Pointer name); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer getrpcbynumber(int number); + +@ffi.Native Function()>() +external ffi.Pointer getrpcent(); + +@ffi.Native)>() +external int getrusage(int arg0, ffi.Pointer arg1); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of gets(3), it is highly recommended that you use fgets(3) instead.', +) +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer gets(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer getservbyname( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native Function(ffi.Int, ffi.Pointer)>() +external ffi.Pointer getservbyport( + int arg0, + ffi.Pointer arg1, +); + +@ffi.Native Function()>() +external ffi.Pointer getservent(); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int getsgroups_np( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int getsid(int arg0); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int getsockname( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int getsockopt( + int arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Uint32, + ffi.Pointer, + socklen_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int getsourcefilter( + int arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int getsubopt( + ffi.Pointer> arg0, + ffi.Pointer> arg1, + ffi.Pointer> arg2, +); + +@ffi.Native, ffi.Pointer)>() +external int gettimeofday( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int getuid(); + +@ffi.Native Function()>() +external ffi.Pointer getusershell(); + +@ffi.Native)>() +external int getw(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getwd(ffi.Pointer arg0); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int getwgroups_np( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer gmtime(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() +external ffi.Pointer gmtime_r( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int grantpt(int arg0); + +@ffi.Native() +external int h_errno; + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) +>() +external int heapsort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'heapsort_b') +external int _heapsort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer __compar, +); + +int heapsort_b( + ffi.Pointer __base, + int __nel, + int __width, + objc.ObjCBlock, ffi.Pointer)> + __compar, +) { + final _$$ref = __compar.ref; + return _heapsort_b(__base, __nel, __width, _$$ref.pointer); +} + +@ffi.Native)>() +external void herror(ffi.Pointer arg0); + +@ffi.Native)>() +external int host_check_multiuser_mode( + int host, + ffi.Pointer multiuser_mode, +); + +@ffi.Native< + kern_return_t Function( + host_t, + mach_voucher_attr_raw_recipe_array_t, + mach_msg_type_number_t, + ffi.Pointer, + ) +>() +external int host_create_mach_voucher( + int host, + mach_voucher_attr_raw_recipe_array_t recipes, + int recipesCnt, + ffi.Pointer voucher, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_voucher_attr_raw_recipe_array_t, + ffi.Int, + ffi.Pointer, + ) +>() +external int host_create_mach_voucher_trap( + int host, + mach_voucher_attr_raw_recipe_array_t recipes, + int recipes_size, + ffi.Pointer voucher, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + ffi.Pointer, + memory_object_cluster_size_t, + ) +>() +external int host_default_memory_manager( + int host_priv, + ffi.Pointer default_manager, + int cluster_size, +); + +@ffi.Native)>() +external int host_get_UNDServer(int host, ffi.Pointer server); + +@ffi.Native)>() +external int host_get_atm_diagnostic_flag( + int host, + ffi.Pointer diagnostic_flag, +); + +@ffi.Native)>() +external int host_get_boot_info(int host_priv, ffi.Pointer boot_info); + +@ffi.Native< + kern_return_t Function(host_priv_t, clock_id_t, ffi.Pointer) +>() +external int host_get_clock_control( + int host_priv, + int clock_id, + ffi.Pointer clock_ctrl, +); + +@ffi.Native< + kern_return_t Function(host_t, clock_id_t, ffi.Pointer) +>() +external int host_get_clock_service( + int host, + int clock_id, + ffi.Pointer clock_serv, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + exception_mask_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int host_get_exception_ports( + int host_priv, + int exception_mask, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlers, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native)>() +external int host_get_io_main(int host, ffi.Pointer io_main); + +@ffi.Native)>() +external int host_get_multiuser_config_flags( + int host, + ffi.Pointer multiuser_flags, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>() +external int host_get_special_port( + int host_priv, + int node, + int which, + ffi.Pointer port, +); + +@ffi.Native< + kern_return_t Function( + host_t, + host_flavor_t, + host_info_t, + ffi.Pointer, + ) +>() +external int host_info( + int host, + int flavor, + host_info_t host_info_out, + ffi.Pointer host_info_outCnt, +); + +@ffi.Native)>() +external int host_kernel_version( + int host, + ffi.Pointer kernel_version, +); + +@ffi.Native< + kern_return_t Function( + host_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_lockgroup_info( + int host, + ffi.Pointer lockgroup_info$1, + ffi.Pointer lockgroup_infoCnt, +); + +@ffi.Native)>() +external int host_page_size(int arg0, ffi.Pointer arg1); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + host_flavor_t, + host_info_t, + ffi.Pointer, + ) +>() +external int host_priv_statistics( + int host_priv, + int flavor, + host_info_t host_info_out, + ffi.Pointer host_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + host_t, + processor_flavor_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_processor_info( + int host, + int flavor, + ffi.Pointer out_processor_count, + ffi.Pointer out_processor_info, + ffi.Pointer out_processor_infoCnt, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + processor_set_name_t, + ffi.Pointer, + ) +>() +external int host_processor_set_priv( + int host_priv, + int set_name, + ffi.Pointer set, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_processor_sets( + int host_priv, + ffi.Pointer processor_sets, + ffi.Pointer processor_setsCnt, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_processors( + int host_priv, + ffi.Pointer out_processor_list, + ffi.Pointer out_processor_listCnt, +); + +@ffi.Native() +external int host_reboot(int host_priv, int options); + +@ffi.Native< + kern_return_t Function( + host_t, + mach_voucher_attr_manager_t, + mach_voucher_attr_value_handle_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_register_mach_voucher_attr_manager( + int host, + int attr_manager, + int default_value, + ffi.Pointer new_key, + ffi.Pointer new_attr_control, +); + +@ffi.Native< + kern_return_t Function( + host_t, + mach_voucher_attr_manager_t, + mach_voucher_attr_value_handle_t, + mach_voucher_attr_key_t, + ffi.Pointer, + ) +>() +external int host_register_well_known_mach_voucher_attr_manager( + int host, + int attr_manager, + int default_value, + int key, + ffi.Pointer new_attr_control, +); + +@ffi.Native() +external int host_request_notification( + int host, + int notify_type, + int notify_port, +); + +@ffi.Native< + kern_return_t Function( + host_security_t, + task_t, + security_token_t, + audit_token_t, + host_t, + ledger_array_t, + mach_msg_type_number_t, + boolean_t, + ffi.Pointer, + ) +>() +external int host_security_create_task_token( + int host_security, + int parent_task, + security_token_t sec_token, + audit_token_t audit_token, + int host, + ledger_array_t ledgers, + int ledgersCnt, + int inherit_memory, + ffi.Pointer child_task, +); + +@ffi.Native< + kern_return_t Function( + host_security_t, + task_t, + security_token_t, + audit_token_t, + host_t, + ) +>() +external int host_security_set_task_token( + int host_security, + int target_task, + security_token_t sec_token, + audit_token_t audit_token, + int host, +); + +@ffi.Native() +external int host_set_UNDServer(int host, int server); + +@ffi.Native() +external int host_set_atm_diagnostic_flag(int host, int diagnostic_flag); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + ) +>() +external int host_set_exception_ports( + int host_priv, + int exception_mask, + int new_port, + int behavior, + int new_flavor, +); + +@ffi.Native() +external int host_set_multiuser_config_flags( + int host_priv, + int multiuser_flags, +); + +@ffi.Native() +external int host_set_special_port(int host_priv, int which, int port); + +@ffi.Native< + kern_return_t Function( + host_t, + host_flavor_t, + host_info_t, + ffi.Pointer, + ) +>() +external int host_statistics( + int host_priv, + int flavor, + host_info_t host_info_out, + ffi.Pointer host_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + host_t, + host_flavor_t, + host_info64_t, + ffi.Pointer, + ) +>() +external int host_statistics64( + int host_priv, + int flavor, + host_info64_t host_info64_out, + ffi.Pointer host_info64_outCnt, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int host_swap_exception_ports( + int host_priv, + int exception_mask, + int new_port, + int behavior, + int new_flavor, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlerss, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + host_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_virtual_physical_table_info( + int host, + ffi.Pointer info, + ffi.Pointer infoCnt, +); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer hstrerror(int arg0); + +@ffi.Native Function(ffi.Int, ffi.Int)>() +external ffi.Pointer httpAcceptConnection(int fd, int blocking); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int httpAddCredential( + ffi.Pointer credentials, + ffi.Pointer data, + int datalen, +); + +@ffi.Native)>() +external int httpAddrAny(ffi.Pointer addr); + +@ffi.Native, ffi.Int)>() +external int httpAddrClose(ffi.Pointer addr, int fd); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer httpAddrConnect( + ffi.Pointer addrlist, + ffi.Pointer sock, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer httpAddrConnect2( + ffi.Pointer addrlist, + ffi.Pointer sock, + int msec, + ffi.Pointer cancel, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>() +external ffi.Pointer httpAddrCopyList( + ffi.Pointer src, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int httpAddrEqual( + ffi.Pointer addr1, + ffi.Pointer addr2, +); + +@ffi.Native)>() +external int httpAddrFamily(ffi.Pointer addr); + +@ffi.Native)>() +external void httpAddrFreeList(ffi.Pointer addrlist); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer httpAddrGetList( + ffi.Pointer hostname, + int family, + ffi.Pointer service, +); + +@ffi.Native)>() +external int httpAddrLength(ffi.Pointer addr); + +@ffi.Native, ffi.Int)>() +external int httpAddrListen(ffi.Pointer addr, int port); + +@ffi.Native)>() +external int httpAddrLocalhost(ffi.Pointer addr); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer httpAddrLookup( + ffi.Pointer addr, + ffi.Pointer name, + int namelen, +); + +@ffi.Native)>() +external int httpAddrPort(ffi.Pointer addr); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer httpAddrString( + ffi.Pointer addr, + ffi.Pointer s, + int slen, +); + +@ffi.Native< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'httpAssembleURI') +external int _httpAssembleURI( + int encoding, + ffi.Pointer uri, + int urilen, + ffi.Pointer scheme, + ffi.Pointer username, + ffi.Pointer host, + int port, + ffi.Pointer resource, +); + +http_uri_status_e httpAssembleURI( + http_uri_coding_e encoding, + ffi.Pointer uri, + int urilen, + ffi.Pointer scheme, + ffi.Pointer username, + ffi.Pointer host, + int port, + ffi.Pointer resource, +) { + return http_uri_status_e.fromValue( + _httpAssembleURI( + encoding.value, + uri, + urilen, + scheme, + username, + host, + port, + resource, + ), + ); +} + +@ffi.Native< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'httpAssembleURIf') +external int _httpAssembleURIf( + int encoding, + ffi.Pointer uri, + int urilen, + ffi.Pointer scheme, + ffi.Pointer username, + ffi.Pointer host, + int port, + ffi.Pointer resourcef, +); + +http_uri_status_e httpAssembleURIf( + http_uri_coding_e encoding, + ffi.Pointer uri, + int urilen, + ffi.Pointer scheme, + ffi.Pointer username, + ffi.Pointer host, + int port, + ffi.Pointer resourcef, +) { + return http_uri_status_e.fromValue( + _httpAssembleURIf( + encoding.value, + uri, + urilen, + scheme, + username, + host, + port, + resourcef, + ), + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer httpAssembleUUID( + ffi.Pointer server, + int port, + ffi.Pointer name, + int number, + ffi.Pointer buffer, + int bufsize, +); + +@ffi.Native, ffi.Int)>() +external void httpBlocking(ffi.Pointer http, int b); + +@ffi.Native)>() +external int httpCheck(ffi.Pointer http); + +@ffi.Native)>() +external void httpClearCookie(ffi.Pointer http); + +@ffi.Native)>() +external void httpClearFields(ffi.Pointer http); + +@ffi.Native)>() +external void httpClose(ffi.Pointer http); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int httpCompareCredentials( + ffi.Pointer cred1, + ffi.Pointer cred2, +); + +@Deprecated('Use httpConnect2 instead.') +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer httpConnect(ffi.Pointer host, int port); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.UnsignedInt, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'httpConnect2') +external ffi.Pointer _httpConnect2( + ffi.Pointer host, + int port, + ffi.Pointer addrlist, + int family, + int encryption, + int blocking, + int msec, + ffi.Pointer cancel, +); + +ffi.Pointer httpConnect2( + ffi.Pointer host, + int port, + ffi.Pointer addrlist, + int family, + http_encryption_e encryption, + int blocking, + int msec, + ffi.Pointer cancel, +) { + return _httpConnect2( + host, + port, + addrlist, + family, + encryption.value, + blocking, + msec, + cancel, + ); +} + +@Deprecated('Use httpConnect2 instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.UnsignedInt) +>(symbol: 'httpConnectEncrypt') +external ffi.Pointer _httpConnectEncrypt( + ffi.Pointer host, + int port, + int encryption, +); + +ffi.Pointer httpConnectEncrypt( + ffi.Pointer host, + int port, + http_encryption_e encryption, +) { + return _httpConnectEncrypt(host, port, encryption.value); +} + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer>) +>() +external int httpCopyCredentials( + ffi.Pointer http, + ffi.Pointer> credentials, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int httpCredentialsAreValidForName( + ffi.Pointer credentials, + ffi.Pointer common_name, +); + +@ffi.Native)>() +external int httpCredentialsGetExpiration( + ffi.Pointer credentials, +); + +@ffi.Native< + ffi.UnsignedInt Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'httpCredentialsGetTrust') +external int _httpCredentialsGetTrust( + ffi.Pointer credentials, + ffi.Pointer common_name, +); + +http_trust_e httpCredentialsGetTrust( + ffi.Pointer credentials, + ffi.Pointer common_name, +) { + return http_trust_e.fromValue( + _httpCredentialsGetTrust(credentials, common_name), + ); +} + +@ffi.Native< + ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int httpCredentialsString( + ffi.Pointer credentials, + ffi.Pointer buffer, + int bufsize, +); + +@Deprecated('Use httpDecode64_2 instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer httpDecode64( + ffi.Pointer out, + ffi.Pointer in$, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer httpDecode64_2( + ffi.Pointer out, + ffi.Pointer outlen, + ffi.Pointer in$, +); + +@ffi.Native, ffi.Pointer)>() +external int httpDelete(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native)>() +external int httpDeleteCredentials(ffi.Pointer common_name); + +@Deprecated('Use httpEncode64_2 instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer httpEncode64( + ffi.Pointer out, + ffi.Pointer in$, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer httpEncode64_2( + ffi.Pointer out, + int outlen, + ffi.Pointer in$, + int inlen, +); + +@ffi.Native, ffi.UnsignedInt)>( + symbol: 'httpEncryption', +) +external int _httpEncryption(ffi.Pointer http, int e); + +int httpEncryption(ffi.Pointer http, http_encryption_e e) { + return _httpEncryption(http, e.value); +} + +@ffi.Native)>() +external int httpError(ffi.Pointer http); + +@ffi.Native)>(symbol: 'httpFieldValue') +external int _httpFieldValue(ffi.Pointer name); + +http_field_e httpFieldValue(ffi.Pointer name) { + return http_field_e.fromValue(_httpFieldValue(name)); +} + +@ffi.Native)>() +external void httpFlush(ffi.Pointer http); + +@ffi.Native)>() +external int httpFlushWrite(ffi.Pointer http); + +@ffi.Native)>() +external void httpFreeCredentials(ffi.Pointer certs); + +@ffi.Native, ffi.Pointer)>() +external int httpGet(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native)>() +external int httpGetActivity(ffi.Pointer http); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer httpGetAddress(ffi.Pointer http); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer httpGetAuthString(ffi.Pointer http); + +@ffi.Native)>() +external int httpGetBlocking(ffi.Pointer http); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer httpGetContentEncoding(ffi.Pointer http); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer httpGetCookie(ffi.Pointer http); + +@ffi.Native Function(time_t)>() +external ffi.Pointer httpGetDateString(int t); + +@ffi.Native< + ffi.Pointer Function(time_t, ffi.Pointer, ffi.Int) +>() +external ffi.Pointer httpGetDateString2( + int t, + ffi.Pointer s, + int slen, +); + +@ffi.Native)>() +external int httpGetDateTime(ffi.Pointer s); + +@ffi.Native)>( + symbol: 'httpGetEncryption', +) +external int _httpGetEncryption(ffi.Pointer http); + +http_encryption_e httpGetEncryption(ffi.Pointer http) { + return http_encryption_e.fromValue(_httpGetEncryption(http)); +} + +@ffi.Native)>(symbol: 'httpGetExpect') +external int _httpGetExpect(ffi.Pointer http); + +http_status_e httpGetExpect(ffi.Pointer http) { + return http_status_e.fromValue(_httpGetExpect(http)); +} + +@ffi.Native)>() +external int httpGetFd(ffi.Pointer http); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>( + symbol: 'httpGetField', +) +external ffi.Pointer _httpGetField( + ffi.Pointer http, + int field, +); + +ffi.Pointer httpGetField( + ffi.Pointer http, + http_field_e field, +) { + return _httpGetField(http, field.value); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer httpGetHostByName(ffi.Pointer name); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer httpGetHostname( + ffi.Pointer http, + ffi.Pointer s, + int slen, +); + +@ffi.Native)>( + symbol: 'httpGetKeepAlive', +) +external int _httpGetKeepAlive(ffi.Pointer http); + +http_keepalive_e httpGetKeepAlive(ffi.Pointer http) { + return http_keepalive_e.fromValue(_httpGetKeepAlive(http)); +} + +@Deprecated('Use httpGetLength2 instead.') +@ffi.Native)>() +external int httpGetLength(ffi.Pointer http); + +@ffi.Native)>() +external int httpGetLength2(ffi.Pointer http); + +@ffi.Native)>() +external int httpGetPending(ffi.Pointer http); + +@ffi.Native)>() +external int httpGetReady(ffi.Pointer http); + +@ffi.Native)>() +external int httpGetRemaining(ffi.Pointer http); + +@ffi.Native)>(symbol: 'httpGetState') +external int _httpGetState(ffi.Pointer http); + +http_state_e httpGetState(ffi.Pointer http) { + return http_state_e.fromValue(_httpGetState(http)); +} + +@ffi.Native)>(symbol: 'httpGetStatus') +external int _httpGetStatus(ffi.Pointer http); + +http_status_e httpGetStatus(ffi.Pointer http) { + return http_status_e.fromValue(_httpGetStatus(http)); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'httpGetSubField') +external ffi.Pointer _httpGetSubField( + ffi.Pointer http, + int field, + ffi.Pointer name, + ffi.Pointer value, +); + +ffi.Pointer httpGetSubField( + ffi.Pointer http, + http_field_e field, + ffi.Pointer name, + ffi.Pointer value, +) { + return _httpGetSubField(http, field.value, name, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'httpGetSubField2') +external ffi.Pointer _httpGetSubField2( + ffi.Pointer http, + int field, + ffi.Pointer name, + ffi.Pointer value, + int valuelen, +); + +ffi.Pointer httpGetSubField2( + ffi.Pointer http, + http_field_e field, + ffi.Pointer name, + ffi.Pointer value, + int valuelen, +) { + return _httpGetSubField2(http, field.value, name, value, valuelen); +} + +@ffi.Native)>( + symbol: 'httpGetVersion', +) +external int _httpGetVersion(ffi.Pointer http); + +http_version_e httpGetVersion(ffi.Pointer http) { + return http_version_e.fromValue(_httpGetVersion(http)); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer httpGets( + ffi.Pointer line, + int length, + ffi.Pointer http, +); + +@ffi.Native, ffi.Pointer)>() +external int httpHead(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native() +external void httpInitialize(); + +@ffi.Native)>() +external int httpIsChunked(ffi.Pointer http); + +@ffi.Native)>() +external int httpIsEncrypted(ffi.Pointer http); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int httpLoadCredentials( + ffi.Pointer path, + ffi.Pointer> credentials, + ffi.Pointer common_name, +); + +@Deprecated('Use cupsDoAuth or cupsHashData instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer httpMD5( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@Deprecated('Use cupsDoAuth or cupsHashData instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer httpMD5Final( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@Deprecated('Use cupsHashString instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer httpMD5String( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native, ffi.Pointer)>() +external int httpOptions(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int httpPeek( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native, ffi.Pointer)>() +external int httpPost(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native, ffi.Pointer)>() +external int httpPrintf(ffi.Pointer http, ffi.Pointer format); + +@ffi.Native, ffi.Pointer)>() +external int httpPut(ffi.Pointer http, ffi.Pointer uri); + +@Deprecated('Use httpRead2 instead.') +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int httpRead( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int httpRead2( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>(symbol: 'httpReadRequest') +external int _httpReadRequest( + ffi.Pointer http, + ffi.Pointer resource, + int resourcelen, +); + +http_state_e httpReadRequest( + ffi.Pointer http, + ffi.Pointer resource, + int resourcelen, +) { + return http_state_e.fromValue(_httpReadRequest(http, resource, resourcelen)); +} + +@Deprecated('Use httpReconnect2 instead.') +@ffi.Native)>() +external int httpReconnect(ffi.Pointer http); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int httpReconnect2( + ffi.Pointer http, + int msec, + ffi.Pointer cancel, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer httpResolveHostname( + ffi.Pointer http, + ffi.Pointer buffer, + int bufsize, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int httpSaveCredentials( + ffi.Pointer path, + ffi.Pointer credentials, + ffi.Pointer common_name, +); + +@Deprecated('Use httpSeparateURI instead.') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void httpSeparate( + ffi.Pointer uri, + ffi.Pointer method, + ffi.Pointer username, + ffi.Pointer host, + ffi.Pointer port, + ffi.Pointer resource, +); + +@Deprecated('Use httpSeparateURI instead.') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external void httpSeparate2( + ffi.Pointer uri, + ffi.Pointer method, + int methodlen, + ffi.Pointer username, + int usernamelen, + ffi.Pointer host, + int hostlen, + ffi.Pointer port, + ffi.Pointer resource, + int resourcelen, +); + +@ffi.Native< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'httpSeparateURI') +external int _httpSeparateURI( + int decoding, + ffi.Pointer uri, + ffi.Pointer scheme, + int schemelen, + ffi.Pointer username, + int usernamelen, + ffi.Pointer host, + int hostlen, + ffi.Pointer port, + ffi.Pointer resource, + int resourcelen, +); + +http_uri_status_e httpSeparateURI( + http_uri_coding_e decoding, + ffi.Pointer uri, + ffi.Pointer scheme, + int schemelen, + ffi.Pointer username, + int usernamelen, + ffi.Pointer host, + int hostlen, + ffi.Pointer port, + ffi.Pointer resource, + int resourcelen, +) { + return http_uri_status_e.fromValue( + _httpSeparateURI( + decoding.value, + uri, + scheme, + schemelen, + username, + usernamelen, + host, + hostlen, + port, + resource, + resourcelen, + ), + ); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void httpSetAuthString( + ffi.Pointer http, + ffi.Pointer scheme, + ffi.Pointer data, +); + +@ffi.Native, ffi.Pointer)>() +external void httpSetCookie( + ffi.Pointer http, + ffi.Pointer cookie, +); + +@ffi.Native, ffi.Pointer)>() +external int httpSetCredentials( + ffi.Pointer http, + ffi.Pointer certs, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>(symbol: 'httpSetDefaultField') +external void _httpSetDefaultField( + ffi.Pointer http, + int field, + ffi.Pointer value, +); + +void httpSetDefaultField( + ffi.Pointer http, + http_field_e field, + ffi.Pointer value, +) { + return _httpSetDefaultField(http, field.value, value); +} + +@ffi.Native, ffi.Int)>( + symbol: 'httpSetExpect', +) +external void _httpSetExpect(ffi.Pointer http, int expect); + +void httpSetExpect(ffi.Pointer http, http_status_e expect) { + return _httpSetExpect(http, expect.value); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>(symbol: 'httpSetField') +external void _httpSetField( + ffi.Pointer http, + int field, + ffi.Pointer value, +); + +void httpSetField( + ffi.Pointer http, + http_field_e field, + ffi.Pointer value, +) { + return _httpSetField(http, field.value, value); +} + +@ffi.Native, ffi.UnsignedInt)>( + symbol: 'httpSetKeepAlive', +) +external void _httpSetKeepAlive(ffi.Pointer http, int keep_alive); + +void httpSetKeepAlive(ffi.Pointer http, http_keepalive_e keep_alive) { + return _httpSetKeepAlive(http, keep_alive.value); +} + +@ffi.Native, ffi.Size)>() +external void httpSetLength(ffi.Pointer http, int length); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Double, + http_timeout_cb_t, + ffi.Pointer, + ) +>() +external void httpSetTimeout( + ffi.Pointer http, + double timeout, + http_timeout_cb_t cb, + ffi.Pointer user_data, +); + +@ffi.Native)>() +external void httpShutdown(ffi.Pointer http); + +@ffi.Native Function(ffi.Int)>(symbol: 'httpStateString') +external ffi.Pointer _httpStateString(int state); + +ffi.Pointer httpStateString(http_state_e state) { + return _httpStateString(state.value); +} + +@ffi.Native Function(ffi.Int)>(symbol: 'httpStatus') +external ffi.Pointer _httpStatus(int status); + +ffi.Pointer httpStatus(http_status_e status) { + return _httpStatus(status.value); +} + +@ffi.Native, ffi.Pointer)>() +external int httpTrace(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native Function(ffi.Int)>( + symbol: 'httpURIStatusString', +) +external ffi.Pointer _httpURIStatusString(int status); + +ffi.Pointer httpURIStatusString(http_uri_status_e status) { + return _httpURIStatusString(status.value); +} + +@ffi.Native)>(symbol: 'httpUpdate') +external int _httpUpdate(ffi.Pointer http); + +http_status_e httpUpdate(ffi.Pointer http) { + return http_status_e.fromValue(_httpUpdate(http)); +} + +@ffi.Native, ffi.Int)>() +external int httpWait(ffi.Pointer http, int msec); + +@Deprecated('Use httpWrite2 instead.') +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int httpWrite( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int httpWrite2( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native, ffi.Int)>( + symbol: 'httpWriteResponse', +) +external int _httpWriteResponse(ffi.Pointer http, int status); + +http_state_e httpWriteResponse(ffi.Pointer http, http_status_e status) { + return http_state_e.fromValue(_httpWriteResponse(http, status.value)); +} + +@ffi.Native() +external double hypot(double arg0, double arg1); + +@ffi.Native() +external double hypotf(double arg0, double arg1); + +@ffi.Native() +external int ilogb(double arg0); + +@ffi.Native() +external int ilogbf(double arg0); + +@ffi.Native() +external int imaxabs(int j); + +@ffi.Native() +external imaxdiv_t imaxdiv(int __numer, int __denom); + +@ffi.Native() +external final in6_addr in6addr_any; + +@ffi.Native() +external final in6_addr in6addr_linklocal_allnodes; + +@ffi.Native() +external final in6_addr in6addr_linklocal_allrouters; + +@ffi.Native() +external final in6_addr in6addr_linklocal_allv2routers; + +@ffi.Native() +external final in6_addr in6addr_loopback; + +@ffi.Native() +external final in6_addr in6addr_nodelocal_allnodes; + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer index(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + socklen_t, + ffi.Int, + __uint8_t, + socklen_t, + __uint8_t, + ffi.Pointer>, + ) +>() +external int inet6_opt_append( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, + int arg4, + int arg5, + ffi.Pointer> arg6, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + socklen_t, + ffi.Int, + __uint8_t, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int inet6_opt_find( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, + ffi.Pointer arg4, + ffi.Pointer> arg5, +); + +@ffi.Native, socklen_t, ffi.Int)>() +external int inet6_opt_finish(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + socklen_t, + ) +>() +external int inet6_opt_get_val( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native, socklen_t)>() +external int inet6_opt_init(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + socklen_t, + ffi.Int, + ffi.Pointer<__uint8_t>, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int inet6_opt_next( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer<__uint8_t> arg3, + ffi.Pointer arg4, + ffi.Pointer> arg5, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + socklen_t, + ) +>() +external int inet6_opt_set_val( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native< + ffi.Pointer<__uint8_t> Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Int, + ) +>() +external ffi.Pointer<__uint8_t> inet6_option_alloc( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer<__uint8_t>, + ffi.Int, + ffi.Int, + ) +>() +external int inet6_option_append( + ffi.Pointer arg0, + ffi.Pointer<__uint8_t> arg1, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int inet6_option_find( + ffi.Pointer arg0, + ffi.Pointer> arg1, + int arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int inet6_option_init( + ffi.Pointer arg0, + ffi.Pointer> arg1, + int arg2, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer>) +>() +external int inet6_option_next( + ffi.Pointer arg0, + ffi.Pointer> arg1, +); + +@ffi.Native() +external int inet6_option_space(int arg0); + +@ffi.Native, ffi.Pointer)>() +external int inet6_rth_add( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer inet6_rth_getaddr( + ffi.Pointer arg0, + int arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + socklen_t, + ffi.Int, + ffi.Int, + ) +>() +external ffi.Pointer inet6_rth_init( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native, ffi.Pointer)>() +external int inet6_rth_reverse( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native)>() +external int inet6_rth_segments(ffi.Pointer arg0); + +@ffi.Native() +external int inet6_rth_space(int arg0, int arg1); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt) +>() +external int inet6_rthdr_add( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer inet6_rthdr_getaddr( + ffi.Pointer arg0, + int arg1, +); + +@ffi.Native, ffi.Int)>() +external int inet6_rthdr_getflags(ffi.Pointer arg0, int arg1); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer inet6_rthdr_init( + ffi.Pointer arg0, + int arg1, +); + +@ffi.Native, ffi.UnsignedInt)>() +external int inet6_rthdr_lasthop(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int inet6_rthdr_segments(ffi.Pointer arg0); + +@ffi.Native() +external int inet6_rthdr_space(int arg0, int arg1); + +@ffi.Native)>() +external int inet_addr(ffi.Pointer arg0); + +@ffi.Native, ffi.Pointer)>() +external int inet_aton(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external int inet_lnaof(in_addr arg0); + +@ffi.Native() +external in_addr inet_makeaddr(int arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + __darwin_size_t, + ) +>() +external ffi.Pointer inet_net_ntop( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + int __size, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + __darwin_size_t, + ) +>() +external int inet_net_pton( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __size, +); + +@ffi.Native< + ffi.Pointer Function( + in_addr_t, + ffi.Pointer, + __darwin_size_t, + ) +>() +external ffi.Pointer inet_neta( + int arg0, + ffi.Pointer arg1, + int __size, +); + +@ffi.Native() +external int inet_netof(in_addr arg0); + +@ffi.Native)>() +external int inet_network(ffi.Pointer arg0); + +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external int inet_nsap_addr( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __maxlen, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer inet_nsap_ntoa( + int __binlen, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native Function(in_addr)>() +external ffi.Pointer inet_ntoa(in_addr arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + socklen_t, + ) +>() +external ffi.Pointer inet_ntop( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __size, +); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int inet_pton( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native, ffi.Int)>() +external int initgroups(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer initstate( + int arg0, + ffi.Pointer arg1, + int __size, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int innetgr( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Char, + ) +>(symbol: 'ippAddBoolean') +external ffi.Pointer _ippAddBoolean( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int value, +); + +ffi.Pointer ippAddBoolean( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int value, +) { + return _ippAddBoolean(ipp, group.value, name, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'ippAddBooleans') +external ffi.Pointer _ippAddBooleans( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int num_values, + ffi.Pointer values, +); + +ffi.Pointer ippAddBooleans( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int num_values, + ffi.Pointer values, +) { + return _ippAddBooleans(ipp, group.value, name, num_values, values); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddCollection') +external ffi.Pointer _ippAddCollection( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + ffi.Pointer value, +); + +ffi.Pointer ippAddCollection( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + ffi.Pointer value, +) { + return _ippAddCollection(ipp, group.value, name, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>(symbol: 'ippAddCollections') +external ffi.Pointer _ippAddCollections( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int num_values, + ffi.Pointer> values, +); + +ffi.Pointer ippAddCollections( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int num_values, + ffi.Pointer> values, +) { + return _ippAddCollections(ipp, group.value, name, num_values, values); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddDate') +external ffi.Pointer _ippAddDate( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + ffi.Pointer value, +); + +ffi.Pointer ippAddDate( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + ffi.Pointer value, +) { + return _ippAddDate(ipp, group.value, name, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'ippAddInteger') +external ffi.Pointer _ippAddInteger( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + int value, +); + +ffi.Pointer ippAddInteger( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + int value, +) { + return _ippAddInteger(ipp, group.value, value_tag.value, name, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'ippAddIntegers') +external ffi.Pointer _ippAddIntegers( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + int num_values, + ffi.Pointer values, +); + +ffi.Pointer ippAddIntegers( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + int num_values, + ffi.Pointer values, +) { + return _ippAddIntegers( + ipp, + group.value, + value_tag.value, + name, + num_values, + values, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'ippAddOctetString') +external ffi.Pointer _ippAddOctetString( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + ffi.Pointer data, + int datalen, +); + +ffi.Pointer ippAddOctetString( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + ffi.Pointer data, + int datalen, +) { + return _ippAddOctetString(ipp, group.value, name, data, datalen); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'ippAddOutOfBand') +external ffi.Pointer _ippAddOutOfBand( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, +); + +ffi.Pointer ippAddOutOfBand( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, +) { + return _ippAddOutOfBand(ipp, group.value, value_tag.value, name); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Int, + ) +>(symbol: 'ippAddRange') +external ffi.Pointer _ippAddRange( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int lower, + int upper, +); + +ffi.Pointer ippAddRange( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int lower, + int upper, +) { + return _ippAddRange(ipp, group.value, name, lower, upper); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddRanges') +external ffi.Pointer _ippAddRanges( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int num_values, + ffi.Pointer lower, + ffi.Pointer upper, +); + +ffi.Pointer ippAddRanges( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int num_values, + ffi.Pointer lower, + ffi.Pointer upper, +) { + return _ippAddRanges(ipp, group.value, name, num_values, lower, upper); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ffi.Int, + ) +>(symbol: 'ippAddResolution') +external ffi.Pointer _ippAddResolution( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int units, + int xres, + int yres, +); + +ffi.Pointer ippAddResolution( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + ipp_res_e units, + int xres, + int yres, +) { + return _ippAddResolution(ipp, group.value, name, units.value, xres, yres); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddResolutions') +external ffi.Pointer _ippAddResolutions( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int num_values, + int units, + ffi.Pointer xres, + ffi.Pointer yres, +); + +ffi.Pointer ippAddResolutions( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int num_values, + ipp_res_e units, + ffi.Pointer xres, + ffi.Pointer yres, +) { + return _ippAddResolutions( + ipp, + group.value, + name, + num_values, + units.value, + xres, + yres, + ); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippAddSeparator(ffi.Pointer ipp); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddString') +external ffi.Pointer _ippAddString( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer value, +); + +ffi.Pointer ippAddString( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer value, +) { + return _ippAddString( + ipp, + group.value, + value_tag.value, + name, + language, + value, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddStringf') +external ffi.Pointer _ippAddStringf( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer format, +); + +ffi.Pointer ippAddStringf( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer format, +) { + return _ippAddStringf( + ipp, + group.value, + value_tag.value, + name, + language, + format, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + va_list, + ) +>(symbol: 'ippAddStringfv') +external ffi.Pointer _ippAddStringfv( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer format, + va_list ap, +); + +ffi.Pointer ippAddStringfv( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer format, + va_list ap, +) { + return _ippAddStringfv( + ipp, + group.value, + value_tag.value, + name, + language, + format, + ap, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer>, + ) +>(symbol: 'ippAddStrings') +external ffi.Pointer _ippAddStrings( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + int num_values, + ffi.Pointer language, + ffi.Pointer> values, +); + +ffi.Pointer ippAddStrings( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + int num_values, + ffi.Pointer language, + ffi.Pointer> values, +) { + return _ippAddStrings( + ipp, + group.value, + value_tag.value, + name, + num_values, + language, + values, + ); +} + +@ffi.Native< + ffi.Size Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external int ippAttributeString( + ffi.Pointer attr, + ffi.Pointer buffer, + int bufsize, +); + +@ffi.Native, ffi.Int)>() +external int ippContainsInteger(ffi.Pointer attr, int value); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int ippContainsString( + ffi.Pointer attr, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer ippCopyAttribute( + ffi.Pointer dst, + ffi.Pointer attr, + int quickcopy, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ipp_copycb_t, + ffi.Pointer, + ) +>() +external int ippCopyAttributes( + ffi.Pointer dst, + ffi.Pointer src, + int quickcopy, + ipp_copycb_t cb, + ffi.Pointer context, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippCreateRequestedArray( + ffi.Pointer request, +); + +@ffi.Native)>() +external int ippDateToTime(ffi.Pointer date); + +@ffi.Native)>() +external void ippDelete(ffi.Pointer ipp); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void ippDeleteAttribute( + ffi.Pointer ipp, + ffi.Pointer attr, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Int, + ) +>() +external int ippDeleteValues( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + int count, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer ippEnumString( + ffi.Pointer attrname, + int enumvalue, +); + +@ffi.Native, ffi.Pointer)>() +external int ippEnumValue( + ffi.Pointer attrname, + ffi.Pointer enumstring, +); + +@ffi.Native Function(ffi.Int)>(symbol: 'ippErrorString') +external ffi.Pointer _ippErrorString(int error); + +ffi.Pointer ippErrorString(ipp_status_e error) { + return _ippErrorString(error.value); +} + +@ffi.Native)>(symbol: 'ippErrorValue') +external int _ippErrorValue(ffi.Pointer name); + +ipp_status_e ippErrorValue(ffi.Pointer name) { + return ipp_status_e.fromValue(_ippErrorValue(name)); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'ippFindAttribute') +external ffi.Pointer _ippFindAttribute( + ffi.Pointer ipp, + ffi.Pointer name, + int value_tag, +); + +ffi.Pointer ippFindAttribute( + ffi.Pointer ipp, + ffi.Pointer name, + ipp_tag_e value_tag, +) { + return _ippFindAttribute(ipp, name, value_tag.value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'ippFindNextAttribute') +external ffi.Pointer _ippFindNextAttribute( + ffi.Pointer ipp, + ffi.Pointer name, + int value_tag, +); + +ffi.Pointer ippFindNextAttribute( + ffi.Pointer ipp, + ffi.Pointer name, + ipp_tag_e value_tag, +) { + return _ippFindNextAttribute(ipp, name, value_tag.value); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippFirstAttribute(ffi.Pointer ipp); + +@ffi.Native, ffi.Int)>() +external int ippGetBoolean(ffi.Pointer attr, int element); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int) +>() +external ffi.Pointer ippGetCollection( + ffi.Pointer attr, + int element, +); + +@ffi.Native)>() +external int ippGetCount(ffi.Pointer attr); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int) +>() +external ffi.Pointer ippGetDate( + ffi.Pointer attr, + int element, +); + +@ffi.Native)>( + symbol: 'ippGetGroupTag', +) +external int _ippGetGroupTag(ffi.Pointer attr); + +ipp_tag_e ippGetGroupTag(ffi.Pointer attr) { + return ipp_tag_e.fromValue(_ippGetGroupTag(attr)); +} + +@ffi.Native, ffi.Int)>() +external int ippGetInteger(ffi.Pointer attr, int element); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippGetName(ffi.Pointer attr); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer ippGetOctetString( + ffi.Pointer attr, + int element, + ffi.Pointer datalen, +); + +@ffi.Native)>(symbol: 'ippGetOperation') +external int _ippGetOperation(ffi.Pointer ipp); + +ipp_op_e ippGetOperation(ffi.Pointer ipp) { + return ipp_op_e.fromValue(_ippGetOperation(ipp)); +} + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int ippGetRange( + ffi.Pointer attr, + int element, + ffi.Pointer upper, +); + +@ffi.Native)>() +external int ippGetRequestId(ffi.Pointer ipp); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ippGetResolution( + ffi.Pointer attr, + int element, + ffi.Pointer yres, + ffi.Pointer units, +); + +@ffi.Native)>(symbol: 'ippGetState') +external int _ippGetState(ffi.Pointer ipp); + +ipp_state_e ippGetState(ffi.Pointer ipp) { + return ipp_state_e.fromValue(_ippGetState(ipp)); +} + +@ffi.Native)>(symbol: 'ippGetStatusCode') +external int _ippGetStatusCode(ffi.Pointer ipp); + +ipp_status_e ippGetStatusCode(ffi.Pointer ipp) { + return ipp_status_e.fromValue(_ippGetStatusCode(ipp)); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external ffi.Pointer ippGetString( + ffi.Pointer attr, + int element, + ffi.Pointer> language, +); + +@ffi.Native)>( + symbol: 'ippGetValueTag', +) +external int _ippGetValueTag(ffi.Pointer attr); + +ipp_tag_e ippGetValueTag(ffi.Pointer attr) { + return ipp_tag_e.fromValue(_ippGetValueTag(attr)); +} + +@ffi.Native, ffi.Pointer)>() +external int ippGetVersion(ffi.Pointer ipp, ffi.Pointer minor); + +@ffi.Native)>() +external int ippLength(ffi.Pointer ipp); + +@ffi.Native Function()>() +external ffi.Pointer ippNew(); + +@ffi.Native Function(ffi.Int)>(symbol: 'ippNewRequest') +external ffi.Pointer _ippNewRequest(int op); + +ffi.Pointer ippNewRequest(ipp_op_e op) { + return _ippNewRequest(op.value); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippNewResponse(ffi.Pointer request); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippNextAttribute(ffi.Pointer ipp); + +@ffi.Native Function(ffi.Int)>(symbol: 'ippOpString') +external ffi.Pointer _ippOpString(int op); + +ffi.Pointer ippOpString(ipp_op_e op) { + return _ippOpString(op.value); +} + +@ffi.Native)>(symbol: 'ippOpValue') +external int _ippOpValue(ffi.Pointer name); + +ipp_op_e ippOpValue(ffi.Pointer name) { + return ipp_op_e.fromValue(_ippOpValue(name)); +} + +@ffi.Native() +external int ippPort(); + +@ffi.Native, ffi.Pointer)>( + symbol: 'ippRead', +) +external int _ippRead(ffi.Pointer http, ffi.Pointer ipp); + +ipp_state_e ippRead(ffi.Pointer http, ffi.Pointer ipp) { + return ipp_state_e.fromValue(_ippRead(http, ipp)); +} + +@ffi.Native)>( + symbol: 'ippReadFile', +) +external int _ippReadFile(int fd, ffi.Pointer ipp); + +ipp_state_e ippReadFile(int fd, ffi.Pointer ipp) { + return ipp_state_e.fromValue(_ippReadFile(fd, ipp)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ipp_iocb_t, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippReadIO') +external int _ippReadIO( + ffi.Pointer src, + ipp_iocb_t cb, + int blocking, + ffi.Pointer parent, + ffi.Pointer ipp, +); + +ipp_state_e ippReadIO( + ffi.Pointer src, + ipp_iocb_t cb, + int blocking, + ffi.Pointer parent, + ffi.Pointer ipp, +) { + return ipp_state_e.fromValue(_ippReadIO(src, cb, blocking, parent, ipp)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Int, + ) +>() +external int ippSetBoolean( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + int boolvalue, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ) +>() +external int ippSetCollection( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer colvalue, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ) +>() +external int ippSetDate( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer datevalue, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>(symbol: 'ippSetGroupTag') +external int _ippSetGroupTag( + ffi.Pointer ipp, + ffi.Pointer> attr, + int group_tag, +); + +int ippSetGroupTag( + ffi.Pointer ipp, + ffi.Pointer> attr, + ipp_tag_e group_tag, +) { + return _ippSetGroupTag(ipp, attr, group_tag.value); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Int, + ) +>() +external int ippSetInteger( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + int intvalue, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int ippSetName( + ffi.Pointer ipp, + ffi.Pointer> attr, + ffi.Pointer name, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>() +external int ippSetOctetString( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer data, + int datalen, +); + +@ffi.Native, ffi.Int)>( + symbol: 'ippSetOperation', +) +external int _ippSetOperation(ffi.Pointer ipp, int op); + +int ippSetOperation(ffi.Pointer ipp, ipp_op_e op) { + return _ippSetOperation(ipp, op.value); +} + +@ffi.Native() +external void ippSetPort(int p); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Int, + ffi.Int, + ) +>() +external int ippSetRange( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + int lowervalue, + int uppervalue, +); + +@ffi.Native, ffi.Int)>() +external int ippSetRequestId(ffi.Pointer ipp, int request_id); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.UnsignedInt, + ffi.Int, + ffi.Int, + ) +>(symbol: 'ippSetResolution') +external int _ippSetResolution( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + int unitsvalue, + int xresvalue, + int yresvalue, +); + +int ippSetResolution( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ipp_res_e unitsvalue, + int xresvalue, + int yresvalue, +) { + return _ippSetResolution( + ipp, + attr, + element, + unitsvalue.value, + xresvalue, + yresvalue, + ); +} + +@ffi.Native, ffi.Int)>( + symbol: 'ippSetState', +) +external int _ippSetState(ffi.Pointer ipp, int state); + +int ippSetState(ffi.Pointer ipp, ipp_state_e state) { + return _ippSetState(ipp, state.value); +} + +@ffi.Native, ffi.Int)>( + symbol: 'ippSetStatusCode', +) +external int _ippSetStatusCode(ffi.Pointer ipp, int status); + +int ippSetStatusCode(ffi.Pointer ipp, ipp_status_e status) { + return _ippSetStatusCode(ipp, status.value); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ) +>() +external int ippSetString( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer strvalue, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ) +>() +external int ippSetStringf( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer format, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + va_list, + ) +>() +external int ippSetStringfv( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer format, + va_list ap, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>(symbol: 'ippSetValueTag') +external int _ippSetValueTag( + ffi.Pointer ipp, + ffi.Pointer> attr, + int value_tag, +); + +int ippSetValueTag( + ffi.Pointer ipp, + ffi.Pointer> attr, + ipp_tag_e value_tag, +) { + return _ippSetValueTag(ipp, attr, value_tag.value); +} + +@ffi.Native, ffi.Int, ffi.Int)>() +external int ippSetVersion(ffi.Pointer ipp, int major, int minor); + +@ffi.Native Function(ffi.Int)>(symbol: 'ippStateString') +external ffi.Pointer _ippStateString(int state); + +ffi.Pointer ippStateString(ipp_state_e state) { + return _ippStateString(state.value); +} + +@ffi.Native Function(ffi.Int)>(symbol: 'ippTagString') +external ffi.Pointer _ippTagString(int tag); + +ffi.Pointer ippTagString(ipp_tag_e tag) { + return _ippTagString(tag.value); +} + +@ffi.Native)>(symbol: 'ippTagValue') +external int _ippTagValue(ffi.Pointer name); + +ipp_tag_e ippTagValue(ffi.Pointer name) { + return ipp_tag_e.fromValue(_ippTagValue(name)); +} + +@ffi.Native Function(time_t)>() +external ffi.Pointer ippTimeToDate(int t); + +@ffi.Native)>() +external int ippValidateAttribute(ffi.Pointer attr); + +@ffi.Native)>() +external int ippValidateAttributes(ffi.Pointer ipp); + +@ffi.Native, ffi.Pointer)>( + symbol: 'ippWrite', +) +external int _ippWrite(ffi.Pointer http, ffi.Pointer ipp); + +ipp_state_e ippWrite(ffi.Pointer http, ffi.Pointer ipp) { + return ipp_state_e.fromValue(_ippWrite(http, ipp)); +} + +@ffi.Native)>( + symbol: 'ippWriteFile', +) +external int _ippWriteFile(int fd, ffi.Pointer ipp); + +ipp_state_e ippWriteFile(int fd, ffi.Pointer ipp) { + return ipp_state_e.fromValue(_ippWriteFile(fd, ipp)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ipp_iocb_t, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippWriteIO') +external int _ippWriteIO( + ffi.Pointer dst, + ipp_iocb_t cb, + int blocking, + ffi.Pointer parent, + ffi.Pointer ipp, +); + +ipp_state_e ippWriteIO( + ffi.Pointer dst, + ipp_iocb_t cb, + int blocking, + ffi.Pointer parent, + ffi.Pointer ipp, +) { + return ipp_state_e.fromValue(_ippWriteIO(dst, cb, blocking, parent, ipp)); +} + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Int Function( + ffi.UnsignedLong, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int iruserok( + int arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int iruserok_sa( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native() +external int isatty(int arg0); + +@ffi.Native() +external int issetugid(); + +@ffi.Native() +external double j0(double arg0); + +@ffi.Native() +external double j1(double arg0); + +@ffi.Native() +external double jn(int arg0, double arg1); + +@ffi.Native)>() +external int jrand48(ffi.Pointer arg0); + +@ffi.Native() +external final CFStringRef kAERemoteProcessNameKey; + +@ffi.Native() +external final CFStringRef kAERemoteProcessProcessIDKey; + +@ffi.Native() +external final CFStringRef kAERemoteProcessURLKey; + +@ffi.Native() +external final CFStringRef kAERemoteProcessUserIDKey; + +@ffi.Native() +external CFStringRef kAXAttachmentTextAttribute; + +@ffi.Native() +external CFStringRef kAXAutocorrectedTextAttribute; + +@ffi.Native() +external CFStringRef kAXBackgroundColorTextAttribute; + +@ffi.Native() +external CFStringRef kAXFontFamilyKey; + +@ffi.Native() +external CFStringRef kAXFontNameKey; + +@ffi.Native() +external CFStringRef kAXFontSizeKey; + +@ffi.Native() +external CFStringRef kAXFontTextAttribute; + +@ffi.Native() +external CFStringRef kAXForegoundColorTextAttribute; + +@ffi.Native() +external CFStringRef kAXForegroundColorTextAttribute; + +@ffi.Native() +external CFStringRef kAXLinkTextAttribute; + +@ffi.Native() +external CFStringRef kAXListItemIndexTextAttribute; + +@ffi.Native() +external CFStringRef kAXListItemLevelTextAttribute; + +@ffi.Native() +external CFStringRef kAXListItemPrefixTextAttribute; + +@ffi.Native() +external CFStringRef kAXMarkedMisspelledTextAttribute; + +@ffi.Native() +external CFStringRef kAXMisspelledTextAttribute; + +@ffi.Native() +external CFStringRef kAXNaturalLanguageTextAttribute; + +@ffi.Native() +external CFStringRef kAXReplacementStringTextAttribute; + +@ffi.Native() +external CFStringRef kAXShadowTextAttribute; + +@ffi.Native() +external CFStringRef kAXStrikethroughColorTextAttribute; + +@ffi.Native() +external CFStringRef kAXStrikethroughTextAttribute; + +@ffi.Native() +external CFStringRef kAXSuperscriptTextAttribute; + +@ffi.Native() +external CFStringRef kAXTrustedCheckOptionPrompt; + +@ffi.Native() +external CFStringRef kAXUnderlineColorTextAttribute; + +@ffi.Native() +external CFStringRef kAXUnderlineTextAttribute; + +@ffi.Native() +external CFStringRef kAXVisibleNameKey; + +@ffi.Native() +external final double kCFAbsoluteTimeIntervalSince1904; + +@ffi.Native() +external final double kCFAbsoluteTimeIntervalSince1970; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorDefault; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorMalloc; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorMallocZone; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorNull; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorSystemDefault; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorUseContext; + +@ffi.Native() +external final CFCalendarIdentifier kCFBanglaCalendar; + +@ffi.Native() +external final CFBooleanRef kCFBooleanFalse; + +@ffi.Native() +external final CFBooleanRef kCFBooleanTrue; + +@ffi.Native() +external final CFCalendarIdentifier kCFBuddhistCalendar; + +@ffi.Native() +external final CFStringRef kCFBundleDevelopmentRegionKey; + +@ffi.Native() +external final CFStringRef kCFBundleExecutableKey; + +@ffi.Native() +external final CFStringRef kCFBundleIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFBundleInfoDictionaryVersionKey; + +@ffi.Native() +external final CFStringRef kCFBundleLocalizationsKey; + +@ffi.Native() +external final CFStringRef kCFBundleNameKey; + +@ffi.Native() +external final CFStringRef kCFBundleVersionKey; + +@ffi.Native() +external final CFCalendarIdentifier kCFChineseCalendar; + +@ffi.Native() +external final CFBagCallBacks kCFCopyStringBagCallBacks; + +@ffi.Native() +external final CFDictionaryKeyCallBacks kCFCopyStringDictionaryKeyCallBacks; + +@ffi.Native() +external final CFSetCallBacks kCFCopyStringSetCallBacks; + +@ffi.Native() +external double kCFCoreFoundationVersionNumber; + +@ffi.Native() +external CFStringRef kCFDNSServiceFailureKey; + +@ffi.Native() +external final CFCalendarIdentifier kCFDangiCalendar; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterAMSymbol; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterCalendar; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterCalendarName; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterDefaultDate; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterDefaultFormat; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterDoesRelativeDateFormattingKey; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterEraSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterGregorianStartDate; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterIsLenient; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterLongEraSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterPMSymbol; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterQuarterSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortQuarterSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortStandaloneMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortStandaloneQuarterSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortStandaloneWeekdaySymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortWeekdaySymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterStandaloneMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterStandaloneQuarterSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterStandaloneWeekdaySymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterTimeZone; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterTwoDigitStartDate; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterVeryShortMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey +kCFDateFormatterVeryShortStandaloneMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey +kCFDateFormatterVeryShortStandaloneWeekdaySymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterVeryShortWeekdaySymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterWeekdaySymbols; + +@ffi.Native() +external final CFStringRef kCFErrorDescriptionKey; + +@ffi.Native() +external CFStringRef kCFErrorDomainCFNetwork; + +@ffi.Native() +external final CFStringRef kCFErrorDomainCGImageMetadata; + +@ffi.Native() +external final CFErrorDomain kCFErrorDomainCocoa; + +@ffi.Native() +external final CFErrorDomain kCFErrorDomainMach; + +@ffi.Native() +external final CFErrorDomain kCFErrorDomainOSStatus; + +@ffi.Native() +external final CFErrorDomain kCFErrorDomainPOSIX; + +@ffi.Native() +external CFStringRef kCFErrorDomainWinSock; + +@ffi.Native() +external final CFStringRef kCFErrorFilePathKey; + +@ffi.Native() +external final CFStringRef kCFErrorLocalizedDescriptionKey; + +@ffi.Native() +external final CFStringRef kCFErrorLocalizedFailureKey; + +@ffi.Native() +external final CFStringRef kCFErrorLocalizedFailureReasonKey; + +@ffi.Native() +external final CFStringRef kCFErrorLocalizedRecoverySuggestionKey; + +@ffi.Native() +external final CFStringRef kCFErrorURLKey; + +@ffi.Native() +external final CFStringRef kCFErrorUnderlyingErrorKey; + +@ffi.Native() +external CFStringRef kCFFTPResourceGroup; + +@ffi.Native() +external CFStringRef kCFFTPResourceLink; + +@ffi.Native() +external CFStringRef kCFFTPResourceModDate; + +@ffi.Native() +external CFStringRef kCFFTPResourceMode; + +@ffi.Native() +external CFStringRef kCFFTPResourceName; + +@ffi.Native() +external CFStringRef kCFFTPResourceOwner; + +@ffi.Native() +external CFStringRef kCFFTPResourceSize; + +@ffi.Native() +external CFStringRef kCFFTPResourceType; + +@ffi.Native() +external CFStringRef kCFFTPStatusCodeKey; + +@ffi.Native() +external CFStringRef kCFGetAddrInfoFailureKey; + +@ffi.Native() +external final CFCalendarIdentifier kCFGregorianCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFGujaratiCalendar; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationAccountDomain; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationPassword; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeBasic; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeDigest; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeKerberos; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeNTLM; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeNegotiate; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeNegotiate2; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeXMobileMeAuthToken; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationUsername; + +@ffi.Native() +external CFStringRef kCFHTTPVersion1_0; + +@ffi.Native() +external CFStringRef kCFHTTPVersion1_1; + +@ffi.Native() +external CFStringRef kCFHTTPVersion2_0; + +@ffi.Native() +external CFStringRef kCFHTTPVersion3_0; + +@ffi.Native() +external final CFCalendarIdentifier kCFHebrewCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFISO8601Calendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFIndianCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFIslamicCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFIslamicCivilCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFIslamicTabularCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFJapaneseCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFKannadaCalendar; + +@ffi.Native() +external final CFLocaleKey kCFLocaleAlternateQuotationBeginDelimiterKey; + +@ffi.Native() +external final CFLocaleKey kCFLocaleAlternateQuotationEndDelimiterKey; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCalendar; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCalendarIdentifier; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCollationIdentifier; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCollatorIdentifier; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCountryCode; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCurrencyCode; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCurrencySymbol; + +@ffi.Native() +external final CFNotificationName kCFLocaleCurrentLocaleDidChangeNotification; + +@ffi.Native() +external final CFLocaleKey kCFLocaleDecimalSeparator; + +@ffi.Native() +external final CFLocaleKey kCFLocaleExemplarCharacterSet; + +@ffi.Native() +external final CFLocaleKey kCFLocaleGroupingSeparator; + +@ffi.Native() +external final CFLocaleKey kCFLocaleIdentifier; + +@ffi.Native() +external final CFLocaleKey kCFLocaleLanguageCode; + +@ffi.Native() +external final CFLocaleKey kCFLocaleMeasurementSystem; + +@ffi.Native() +external final CFLocaleKey kCFLocaleQuotationBeginDelimiterKey; + +@ffi.Native() +external final CFLocaleKey kCFLocaleQuotationEndDelimiterKey; + +@ffi.Native() +external final CFLocaleKey kCFLocaleScriptCode; + +@ffi.Native() +external final CFLocaleKey kCFLocaleUsesMetricSystem; + +@ffi.Native() +external final CFLocaleKey kCFLocaleVariantCode; + +@ffi.Native() +external final CFCalendarIdentifier kCFMalayalamCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFMarathiCalendar; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesExceptionsList; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesExcludeSimpleHostnames; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesFTPEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesFTPPassive; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesFTPPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesFTPProxy; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesGopherEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesGopherPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesGopherProxy; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPProxy; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPSEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPSPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPSProxy; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesProxyAutoConfigEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesProxyAutoConfigJavaScript; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesProxyAutoConfigURLString; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesProxyAutoDiscoveryEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesRTSPEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesRTSPPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesRTSPProxy; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesSOCKSEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesSOCKSPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesSOCKSProxy; + +@ffi.Native() +external final CFNullRef kCFNull; + +@ffi.Native() +external final CFNumberFormatterKey +kCFNumberFormatterAlwaysShowDecimalSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterCurrencyCode; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterCurrencyDecimalSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterCurrencyGroupingSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterCurrencySymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterDecimalSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterDefaultFormat; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterExponentSymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterFormatWidth; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterGroupingSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterGroupingSize; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterInfinitySymbol; + +@ffi.Native() +external final CFNumberFormatterKey +kCFNumberFormatterInternationalCurrencySymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterIsLenient; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMaxFractionDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMaxIntegerDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMaxSignificantDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMinFractionDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMinGroupingDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMinIntegerDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMinSignificantDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMinusSign; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMultiplier; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterNaNSymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterNegativePrefix; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterNegativeSuffix; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPaddingCharacter; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPaddingPosition; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPerMillSymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPercentSymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPlusSign; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPositivePrefix; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPositiveSuffix; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterRoundingIncrement; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterRoundingMode; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterSecondaryGroupingSize; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterUseGroupingSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterUseSignificantDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterZeroSymbol; + +@ffi.Native() +external final CFNumberRef kCFNumberNaN; + +@ffi.Native() +external final CFNumberRef kCFNumberNegativeInfinity; + +@ffi.Native() +external final CFNumberRef kCFNumberPositiveInfinity; + +@ffi.Native() +external final CFCalendarIdentifier kCFOdiaCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFPersianCalendar; + +@ffi.Native() +external final CFStringRef kCFPlugInDynamicRegisterFunctionKey; + +@ffi.Native() +external final CFStringRef kCFPlugInDynamicRegistrationKey; + +@ffi.Native() +external final CFStringRef kCFPlugInFactoriesKey; + +@ffi.Native() +external final CFStringRef kCFPlugInTypesKey; + +@ffi.Native() +external final CFStringRef kCFPlugInUnloadFunctionKey; + +@ffi.Native() +external CFStringRef kCFPreferencesAnyApplication; + +@ffi.Native() +external CFStringRef kCFPreferencesAnyHost; + +@ffi.Native() +external CFStringRef kCFPreferencesAnyUser; + +@ffi.Native() +external CFStringRef kCFPreferencesCurrentApplication; + +@ffi.Native() +external CFStringRef kCFPreferencesCurrentHost; + +@ffi.Native() +external CFStringRef kCFPreferencesCurrentUser; + +@ffi.Native() +external CFStringRef kCFProxyAutoConfigurationHTTPResponseKey; + +@ffi.Native() +external CFStringRef kCFProxyAutoConfigurationJavaScriptKey; + +@ffi.Native() +external CFStringRef kCFProxyAutoConfigurationURLKey; + +@ffi.Native() +external CFStringRef kCFProxyHostNameKey; + +@ffi.Native() +external CFStringRef kCFProxyPasswordKey; + +@ffi.Native() +external CFStringRef kCFProxyPortNumberKey; + +@ffi.Native() +external CFStringRef kCFProxyTypeAutoConfigurationJavaScript; + +@ffi.Native() +external CFStringRef kCFProxyTypeAutoConfigurationURL; + +@ffi.Native() +external CFStringRef kCFProxyTypeFTP; + +@ffi.Native() +external CFStringRef kCFProxyTypeHTTP; + +@ffi.Native() +external CFStringRef kCFProxyTypeHTTPS; + +@ffi.Native() +external CFStringRef kCFProxyTypeKey; + +@ffi.Native() +external CFStringRef kCFProxyTypeNone; + +@ffi.Native() +external CFStringRef kCFProxyTypeSOCKS; + +@ffi.Native() +external CFStringRef kCFProxyUsernameKey; + +@ffi.Native() +external final CFCalendarIdentifier kCFRepublicOfChinaCalendar; + +@ffi.Native() +external final CFRunLoopMode kCFRunLoopCommonModes; + +@ffi.Native() +external final CFRunLoopMode kCFRunLoopDefaultMode; + +@ffi.Native() +external CFStringRef kCFSOCKSNegotiationMethodKey; + +@ffi.Native() +external CFStringRef kCFSOCKSStatusCodeKey; + +@ffi.Native() +external CFStringRef kCFSOCKSVersionKey; + +@ffi.Native() +external final CFStringRef kCFSocketCommandKey; + +@ffi.Native() +external final CFStringRef kCFSocketErrorKey; + +@ffi.Native() +external final CFStringRef kCFSocketNameKey; + +@ffi.Native() +external final CFStringRef kCFSocketRegisterCommand; + +@ffi.Native() +external final CFStringRef kCFSocketResultKey; + +@ffi.Native() +external final CFStringRef kCFSocketRetrieveCommand; + +@ffi.Native() +external final CFStringRef kCFSocketValueKey; + +@ffi.Native() +external final int kCFStreamErrorDomainFTP; + +@ffi.Native() +external final int kCFStreamErrorDomainHTTP; + +@ffi.Native() +external final int kCFStreamErrorDomainMach; + +@ffi.Native() +external final int kCFStreamErrorDomainNetDB; + +@ffi.Native() +external final int kCFStreamErrorDomainNetServices; + +@ffi.Native() +external final int kCFStreamErrorDomainSOCKS; + +@ffi.Native() +external final int kCFStreamErrorDomainSSL; + +@ffi.Native() +external final int kCFStreamErrorDomainSystemConfiguration; + +@ffi.Native() +external final int kCFStreamErrorDomainWinSock; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceType; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeAVStreaming; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeBackground; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeCallSignaling; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeResponsiveAV; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeResponsiveData; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeVideo; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeVoIP; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeVoice; + +@ffi.Native() +external CFStringRef kCFStreamPropertyAllowConstrainedNetworkAccess; + +@ffi.Native() +external CFStringRef kCFStreamPropertyAllowExpensiveNetworkAccess; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertyAppendToFile; + +@ffi.Native() +external CFStringRef kCFStreamPropertyConnectionIsCellular; + +@ffi.Native() +external CFStringRef kCFStreamPropertyConnectionIsExpensive; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertyDataWritten; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPAttemptPersistentConnection; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPFetchResourceInfo; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPFileTransferOffset; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPPassword; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPProxy; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPProxyHost; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPProxyPassword; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPProxyPort; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPProxyUser; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPResourceSize; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPUsePassiveMode; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPUserName; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertyFileCurrentOffset; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPAttemptPersistentConnection; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPFinalRequest; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPFinalURL; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPProxy; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPProxyHost; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPProxyPort; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPRequestBytesWrittenCount; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPResponseHeader; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPSProxyHost; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPSProxyPort; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPShouldAutoredirect; + +@ffi.Native() +external CFStringRef kCFStreamPropertyNoCellular; + +@ffi.Native() +external CFStringRef kCFStreamPropertyProxyLocalBypass; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSPassword; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSProxy; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSProxyHost; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSProxyPort; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSUser; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSVersion; + +@ffi.Native() +external CFStringRef kCFStreamPropertySSLContext; + +@ffi.Native() +external CFStringRef kCFStreamPropertySSLPeerCertificates; + +@ffi.Native() +external CFStringRef kCFStreamPropertySSLPeerTrust; + +@ffi.Native() +external CFStringRef kCFStreamPropertySSLSettings; + +@ffi.Native() +external CFStringRef kCFStreamPropertyShouldCloseNativeSocket; + +@ffi.Native() +external CFStringRef kCFStreamPropertySocketExtendedBackgroundIdleMode; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertySocketNativeHandle; + +@ffi.Native() +external CFStringRef kCFStreamPropertySocketRemoteHost; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertySocketRemoteHostName; + +@ffi.Native() +external CFStringRef kCFStreamPropertySocketRemoteNetService; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertySocketRemotePortNumber; + +@ffi.Native() +external CFStringRef kCFStreamPropertySocketSecurityLevel; + +@ffi.Native() +external CFStringRef kCFStreamSSLAllowsAnyRoot; + +@ffi.Native() +external CFStringRef kCFStreamSSLAllowsExpiredCertificates; + +@ffi.Native() +external CFStringRef kCFStreamSSLAllowsExpiredRoots; + +@ffi.Native() +external CFStringRef kCFStreamSSLCertificates; + +@ffi.Native() +external CFStringRef kCFStreamSSLIsServer; + +@ffi.Native() +external CFStringRef kCFStreamSSLLevel; + +@ffi.Native() +external CFStringRef kCFStreamSSLPeerName; + +@ffi.Native() +external CFStringRef kCFStreamSSLValidatesCertificateChain; + +@ffi.Native() +external CFStringRef kCFStreamSocketSOCKSVersion4; + +@ffi.Native() +external CFStringRef kCFStreamSocketSOCKSVersion5; + +@ffi.Native() +external CFStringRef kCFStreamSocketSecurityLevelNegotiatedSSL; + +@ffi.Native() +external CFStringRef kCFStreamSocketSecurityLevelNone; + +@ffi.Native() +external CFStringRef kCFStreamSocketSecurityLevelSSLv2; + +@ffi.Native() +external CFStringRef kCFStreamSocketSecurityLevelSSLv3; + +@ffi.Native() +external CFStringRef kCFStreamSocketSecurityLevelTLSv1; + +@ffi.Native() +external final CFBinaryHeapCallBacks kCFStringBinaryHeapCallBacks; + +@ffi.Native() +external final CFStringRef kCFStringTransformFullwidthHalfwidth; + +@ffi.Native() +external final CFStringRef kCFStringTransformHiraganaKatakana; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinArabic; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinCyrillic; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinGreek; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinHangul; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinHebrew; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinHiragana; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinKatakana; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinThai; + +@ffi.Native() +external final CFStringRef kCFStringTransformMandarinLatin; + +@ffi.Native() +external final CFStringRef kCFStringTransformStripCombiningMarks; + +@ffi.Native() +external final CFStringRef kCFStringTransformStripDiacritics; + +@ffi.Native() +external final CFStringRef kCFStringTransformToLatin; + +@ffi.Native() +external final CFStringRef kCFStringTransformToUnicodeName; + +@ffi.Native() +external final CFStringRef kCFStringTransformToXMLHex; + +@ffi.Native() +external final CFCalendarIdentifier kCFTamilCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFTeluguCalendar; + +@ffi.Native() +external final CFNotificationName +kCFTimeZoneSystemTimeZoneDidChangeNotification; + +@ffi.Native() +external final CFArrayCallBacks kCFTypeArrayCallBacks; + +@ffi.Native() +external final CFBagCallBacks kCFTypeBagCallBacks; + +@ffi.Native() +external final CFDictionaryKeyCallBacks kCFTypeDictionaryKeyCallBacks; + +@ffi.Native() +external final CFDictionaryValueCallBacks kCFTypeDictionaryValueCallBacks; + +@ffi.Native() +external final CFSetCallBacks kCFTypeSetCallBacks; + +@ffi.Native() +external final CFStringRef kCFURLAddedToDirectoryDateKey; + +@ffi.Native() +external final CFStringRef kCFURLApplicationIsScriptableKey; + +@ffi.Native() +external final CFStringRef kCFURLAttributeModificationDateKey; + +@ffi.Native() +external final CFStringRef kCFURLCanonicalPathKey; + +@ffi.Native() +external final CFStringRef kCFURLContentAccessDateKey; + +@ffi.Native() +external final CFStringRef kCFURLContentModificationDateKey; + +@ffi.Native() +external final CFStringRef kCFURLCreationDateKey; + +@ffi.Native() +external final CFStringRef kCFURLCustomIconKey; + +@ffi.Native() +external final CFStringRef kCFURLDirectoryEntryCountKey; + +@ffi.Native() +external final CFStringRef kCFURLDocumentIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLEffectiveIconKey; + +@ffi.Native() +external CFStringRef kCFURLErrorFailingURLErrorKey; + +@ffi.Native() +external CFStringRef kCFURLErrorFailingURLStringErrorKey; + +@ffi.Native() +external final CFStringRef kCFURLFileAllocatedSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLFileContentIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLFileDirectoryContents; + +@ffi.Native() +external final CFStringRef kCFURLFileExists; + +@ffi.Native() +external final CFStringRef kCFURLFileIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLFileLastModificationTime; + +@ffi.Native() +external final CFStringRef kCFURLFileLength; + +@ffi.Native() +external final CFStringRef kCFURLFileOwnerID; + +@ffi.Native() +external final CFStringRef kCFURLFilePOSIXMode; + +@ffi.Native() +external final CFStringRef kCFURLFileProtectionComplete; + +@ffi.Native() +external final CFStringRef kCFURLFileProtectionCompleteUnlessOpen; + +@ffi.Native() +external final CFStringRef +kCFURLFileProtectionCompleteUntilFirstUserAuthentication; + +@ffi.Native() +external final CFStringRef kCFURLFileProtectionCompleteWhenUserInactive; + +@ffi.Native() +external final CFStringRef kCFURLFileProtectionKey; + +@ffi.Native() +external final CFStringRef kCFURLFileProtectionNone; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeBlockSpecial; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeCharacterSpecial; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeDirectory; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeKey; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeNamedPipe; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeRegular; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeSocket; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeSymbolicLink; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeUnknown; + +@ffi.Native() +external final CFStringRef kCFURLFileSecurityKey; + +@ffi.Native() +external final CFStringRef kCFURLFileSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLGenerationIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLHTTPStatusCode; + +@ffi.Native() +external final CFStringRef kCFURLHTTPStatusLine; + +@ffi.Native() +external final CFStringRef kCFURLHasHiddenExtensionKey; + +@ffi.Native() +external final CFStringRef kCFURLIsAliasFileKey; + +@ffi.Native() +external final CFStringRef kCFURLIsApplicationKey; + +@ffi.Native() +external final CFStringRef kCFURLIsDirectoryKey; + +@ffi.Native() +external final CFStringRef kCFURLIsExcludedFromBackupKey; + +@ffi.Native() +external final CFStringRef kCFURLIsExecutableKey; + +@ffi.Native() +external final CFStringRef kCFURLIsHiddenKey; + +@ffi.Native() +external final CFStringRef kCFURLIsMountTriggerKey; + +@ffi.Native() +external final CFStringRef kCFURLIsPackageKey; + +@ffi.Native() +external final CFStringRef kCFURLIsPurgeableKey; + +@ffi.Native() +external final CFStringRef kCFURLIsReadableKey; + +@ffi.Native() +external final CFStringRef kCFURLIsRegularFileKey; + +@ffi.Native() +external final CFStringRef kCFURLIsSparseKey; + +@ffi.Native() +external final CFStringRef kCFURLIsSymbolicLinkKey; + +@ffi.Native() +external final CFStringRef kCFURLIsSystemImmutableKey; + +@ffi.Native() +external final CFStringRef kCFURLIsUbiquitousItemKey; + +@ffi.Native() +external final CFStringRef kCFURLIsUserImmutableKey; + +@ffi.Native() +external final CFStringRef kCFURLIsVolumeKey; + +@ffi.Native() +external final CFStringRef kCFURLIsWritableKey; + +@ffi.Native() +external final CFStringRef kCFURLKeysOfUnsetValuesKey; + +@ffi.Native() +external final CFStringRef kCFURLLabelColorKey; + +@ffi.Native() +external final CFStringRef kCFURLLabelNumberKey; + +@ffi.Native() +external final CFStringRef kCFURLLinkCountKey; + +@ffi.Native() +external final CFStringRef kCFURLLocalizedLabelKey; + +@ffi.Native() +external final CFStringRef kCFURLLocalizedNameKey; + +@ffi.Native() +external final CFStringRef kCFURLLocalizedTypeDescriptionKey; + +@ffi.Native() +external final CFStringRef kCFURLMayHaveExtendedAttributesKey; + +@ffi.Native() +external final CFStringRef kCFURLMayShareFileContentKey; + +@ffi.Native() +external final CFStringRef kCFURLNameKey; + +@ffi.Native() +external final CFStringRef kCFURLParentDirectoryURLKey; + +@ffi.Native() +external final CFStringRef kCFURLPathKey; + +@ffi.Native() +external final CFStringRef kCFURLPreferredIOBlockSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLQuarantinePropertiesKey; + +@ffi.Native() +external final CFStringRef kCFURLTagNamesKey; + +@ffi.Native() +external final CFStringRef kCFURLTotalFileAllocatedSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLTotalFileSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLTypeIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemDownloadingErrorKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemDownloadingStatusCurrent; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemDownloadingStatusDownloaded; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemDownloadingStatusKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemDownloadingStatusNotDownloaded; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemHasUnresolvedConflictsKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsDownloadedKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsDownloadingKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsExcludedFromSyncKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsSyncPausedKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsUploadedKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsUploadingKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemPercentDownloadedKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemPercentUploadedKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemSupportedSyncControlsKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemUploadingErrorKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeAvailableCapacityForImportantUsageKey; + +@ffi.Native() +external final CFStringRef +kCFURLVolumeAvailableCapacityForOpportunisticUsageKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeAvailableCapacityKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeCreationDateKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsAutomountedKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsBrowsableKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsEjectableKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsEncryptedKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsInternalKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsJournalingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsLocalKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsReadOnlyKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsRemovableKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsRootFileSystemKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeLocalizedFormatDescriptionKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeLocalizedNameKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeMaximumFileSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeMountFromLocationKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeNameKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeResourceCountKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSubtypeKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsAccessPermissionsKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsAdvisoryFileLockingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsCasePreservedNamesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsCaseSensitiveNamesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsCompressionKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsExclusiveRenamingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsExtendedSecurityKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsFileCloningKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsFileProtectionKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsHardLinksKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsImmutableFilesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsJournalingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsPersistentIDsKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsRenamingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsRootDirectoryDatesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsSparseFilesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsSwapRenamingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsSymbolicLinksKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsVolumeSizesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsZeroRunsKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeTotalCapacityKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeTypeNameKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeURLForRemountingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeURLKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeUUIDStringKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationAlertHeaderKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationAlertMessageKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationAlertTopMostKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationAlternateButtonTitleKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationCheckBoxTitlesKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationDefaultButtonTitleKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationIconURLKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationKeyboardTypesKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationLocalizationURLKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationOtherButtonTitleKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationPopUpSelectionKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationPopUpTitlesKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationProgressIndicatorValueKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationSoundURLKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationTextFieldTitlesKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationTextFieldValuesKey; + +@ffi.Native() +external final CFCalendarIdentifier kCFVietnameseCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFVikramCalendar; + +@ffi.Native() +external final CFStringRef kCFXMLTreeErrorDescription; + +@ffi.Native() +external final CFStringRef kCFXMLTreeErrorLineNumber; + +@ffi.Native() +external final CFStringRef kCFXMLTreeErrorLocation; + +@ffi.Native() +external final CFStringRef kCFXMLTreeErrorStatusCode; + +@ffi.Native() +external CFStringRef kCGAdaptiveMaximumBitDepth; + +@ffi.Native() +external CFStringRef kCGColorBlack; + +@ffi.Native() +external CFStringRef kCGColorClear; + +@ffi.Native() +external CFStringRef kCGColorConversionBlackPointCompensation; + +@ffi.Native() +external CFStringRef kCGColorConversionTRCSize; + +@ffi.Native() +external CFStringRef kCGColorSpaceACESCGLinear; + +@ffi.Native() +external CFStringRef kCGColorSpaceAdobeRGB1998; + +@ffi.Native() +external CFStringRef kCGColorSpaceCoreMedia709; + +@ffi.Native() +external CFStringRef kCGColorSpaceDCIP3; + +@ffi.Native() +external CFStringRef kCGColorSpaceDisplayP3; + +@ffi.Native() +external CFStringRef kCGColorSpaceDisplayP3_HLG; + +@ffi.Native() +external CFStringRef kCGColorSpaceDisplayP3_PQ; + +@ffi.Native() +external CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedDisplayP3; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedGray; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedITUR_2020; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedLinearDisplayP3; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedLinearGray; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedLinearITUR_2020; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedLinearSRGB; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedRange; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedSRGB; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericCMYK; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericGray; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericGrayGamma2_2; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericLab; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericRGB; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericRGBLinear; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericXYZ; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2020; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2020_HLG; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2020_PQ; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2020_sRGBGamma; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2100_HLG; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2100_PQ; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_709; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_709_HLG; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_709_PQ; + +@ffi.Native() +external CFStringRef kCGColorSpaceLinearDisplayP3; + +@ffi.Native() +external CFStringRef kCGColorSpaceLinearGray; + +@ffi.Native() +external CFStringRef kCGColorSpaceLinearITUR_2020; + +@ffi.Native() +external CFStringRef kCGColorSpaceLinearSRGB; + +@ffi.Native() +external CFStringRef kCGColorSpaceROMMRGB; + +@ffi.Native() +external CFStringRef kCGColorSpaceSRGB; + +@ffi.Native() +external CFStringRef kCGColorWhite; + +@ffi.Native() +external CFStringRef kCGComputeHDRStats; + +@ffi.Native() +external CFStringRef kCGContentAverageLightLevel; + +@ffi.Native() +external CFStringRef kCGContentAverageLightLevelNits; + +@ffi.Native() +external double kCGDefaultHDRImageContentHeadroom; + +@ffi.Native() +external CFStringRef kCGDisplayShowDuplicateLowResolutionModes; + +@ffi.Native() +external CFStringRef kCGDisplayStreamColorSpace; + +@ffi.Native() +external CFStringRef kCGDisplayStreamDestinationRect; + +@ffi.Native() +external CFStringRef kCGDisplayStreamMinimumFrameTime; + +@ffi.Native() +external CFStringRef kCGDisplayStreamPreserveAspectRatio; + +@ffi.Native() +external CFStringRef kCGDisplayStreamQueueDepth; + +@ffi.Native() +external CFStringRef kCGDisplayStreamShowCursor; + +@ffi.Native() +external CFStringRef kCGDisplayStreamSourceRect; + +@ffi.Native() +external CFStringRef kCGDisplayStreamYCbCrMatrix; + +@ffi.Native() +external CFStringRef kCGDisplayStreamYCbCrMatrix_ITU_R_601_4; + +@ffi.Native() +external CFStringRef kCGDisplayStreamYCbCrMatrix_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCGDisplayStreamYCbCrMatrix_SMPTE_240M_1995; + +@ffi.Native() +external CFStringRef kCGDynamicRangeConstrained; + +@ffi.Native() +external CFStringRef kCGDynamicRangeHigh; + +@ffi.Native() +external CFStringRef kCGDynamicRangeStandard; + +@ffi.Native() +external CFStringRef kCGEXRToneMappingGammaDefog; + +@ffi.Native() +external CFStringRef kCGEXRToneMappingGammaExposure; + +@ffi.Native() +external CFStringRef kCGEXRToneMappingGammaKneeHigh; + +@ffi.Native() +external CFStringRef kCGEXRToneMappingGammaKneeLow; + +@ffi.Native() +external CFStringRef kCGFontVariationAxisDefaultValue; + +@ffi.Native() +external CFStringRef kCGFontVariationAxisMaxValue; + +@ffi.Native() +external CFStringRef kCGFontVariationAxisMinValue; + +@ffi.Native() +external CFStringRef kCGFontVariationAxisName; + +@ffi.Native() +external CFStringRef kCGImageAnimationDelayTime; + +@ffi.Native() +external CFStringRef kCGImageAnimationLoopCount; + +@ffi.Native() +external CFStringRef kCGImageAnimationStartIndex; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataInfoColorSpace; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataInfoData; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataInfoDataDescription; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataInfoMetadata; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeDepth; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeDisparity; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeHDRGainMap; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeISOGainMap; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypePortraitEffectsMatte; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationGlassesMatte; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationHairMatte; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationSkinMatte; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationSkyMatte; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationTeethMatte; + +@ffi.Native() +external CFStringRef kCGImageDestinationBackgroundColor; + +@ffi.Native() +external CFStringRef kCGImageDestinationDateTime; + +@ffi.Native() +external CFStringRef kCGImageDestinationEmbedThumbnail; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeAlternateColorSpace; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeBaseColorSpace; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeBaseIsSDR; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeBasePixelFormatRequest; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeGainMapPixelFormatRequest; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeGainMapSubsampleFactor; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeGenerateGainMapWithBaseImage; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeIsBaseImage; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeRequest; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeRequestOptions; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeToISOGainmap; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeToISOHDR; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeToSDR; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeTonemapMode; + +@ffi.Native() +external CFStringRef kCGImageDestinationImageMaxPixelSize; + +@ffi.Native() +external CFStringRef kCGImageDestinationLossyCompressionQuality; + +@ffi.Native() +external CFStringRef kCGImageDestinationMergeMetadata; + +@ffi.Native() +external CFStringRef kCGImageDestinationMetadata; + +@ffi.Native() +external CFStringRef kCGImageDestinationOptimizeColorForSharing; + +@ffi.Native() +external CFStringRef kCGImageDestinationOrientation; + +@ffi.Native() +external CFStringRef kCGImageDestinationPreserveGainMap; + +@ffi.Native() +external final CFStringRef kCGImageMetadataEnumerateRecursively; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceDublinCore; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceExif; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceExifAux; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceExifEX; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceIPTCCore; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceIPTCExtension; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespacePhotoshop; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceTIFF; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceXMPBasic; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceXMPRights; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixDublinCore; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixExif; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixExifAux; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixExifEX; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixIPTCCore; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixIPTCExtension; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixPhotoshop; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixTIFF; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixXMPBasic; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixXMPRights; + +@ffi.Native() +external CFStringRef kCGImageMetadataShouldExcludeGPS; + +@ffi.Native() +external CFStringRef kCGImageMetadataShouldExcludeXMP; + +@ffi.Native() +external CFStringRef kCGImageProperty8BIMDictionary; + +@ffi.Native() +external CFStringRef kCGImageProperty8BIMLayerNames; + +@ffi.Native() +external CFStringRef kCGImageProperty8BIMVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGCanvasPixelHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGCanvasPixelWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGFrameInfoArray; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGLoopCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGUnclampedDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyASTCBlockSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyASTCBlockSize4x4; + +@ffi.Native() +external CFStringRef kCGImagePropertyASTCBlockSize8x8; + +@ffi.Native() +external CFStringRef kCGImagePropertyASTCEncoder; + +@ffi.Native() +external CFStringRef kCGImagePropertyAVISDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyAuxiliaryData; + +@ffi.Native() +external CFStringRef kCGImagePropertyAuxiliaryDataType; + +@ffi.Native() +external CFStringRef kCGImagePropertyBCEncoder; + +@ffi.Native() +external CFStringRef kCGImagePropertyBCFormat; + +@ffi.Native() +external CFStringRef kCGImagePropertyBytesPerRow; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFCameraSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFContinuousDrive; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFFirmware; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFFlashExposureComp; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFFocusMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFImageFileName; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFImageName; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFImageSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFLensMaxMM; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFLensMinMM; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFLensModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFMeasuredEV; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFMeteringMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFOwnerName; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFRecordID; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFReleaseMethod; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFReleaseTiming; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFSelfTimingTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFShootingMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFWhiteBalanceIndex; + +@ffi.Native() +external CFStringRef kCGImagePropertyColorModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyColorModelCMYK; + +@ffi.Native() +external CFStringRef kCGImagePropertyColorModelGray; + +@ffi.Native() +external CFStringRef kCGImagePropertyColorModelLab; + +@ffi.Native() +external CFStringRef kCGImagePropertyColorModelRGB; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGActiveArea; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAnalogBalance; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAntiAliasStrength; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAsShotICCProfile; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAsShotNeutral; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAsShotPreProfileMatrix; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAsShotProfileName; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAsShotWhiteXY; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBackwardVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBaselineExposure; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBaselineExposureOffset; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBaselineNoise; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBaselineSharpness; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBayerGreenSplit; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBestQualityScale; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBlackLevel; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBlackLevelDeltaH; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBlackLevelDeltaV; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBlackLevelRepeatDim; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCFALayout; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCFAPlaneColor; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCalibrationIlluminant1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCalibrationIlluminant2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCameraCalibration1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCameraCalibration2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCameraCalibrationSignature; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCameraSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGChromaBlurRadius; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGColorMatrix1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGColorMatrix2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGColorimetricReference; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCurrentICCProfile; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCurrentPreProfileMatrix; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDefaultBlackRender; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDefaultCropOrigin; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDefaultCropSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDefaultScale; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDefaultUserCrop; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGExtraCameraProfiles; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGFixVignetteRadial; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGForwardMatrix1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGForwardMatrix2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGLensInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGLinearResponseLimit; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGLinearizationTable; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGLocalizedCameraModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGMakerNoteSafety; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGMaskedAreas; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGNewRawImageDigest; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGNoiseProfile; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGNoiseReductionApplied; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOpcodeList1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOpcodeList2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOpcodeList3; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalBestQualityFinalSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalDefaultCropSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalDefaultFinalSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalRawFileData; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalRawFileDigest; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalRawFileName; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewApplicationName; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewApplicationVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewColorSpace; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewDateTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewSettingsDigest; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewSettingsName; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPrivateData; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileCalibrationSignature; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileCopyright; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileEmbedPolicy; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileHueSatMapData1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileHueSatMapData2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileHueSatMapDims; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileHueSatMapEncoding; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileLookTableData; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileLookTableDims; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileLookTableEncoding; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileName; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileToneCurve; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGRawDataUniqueID; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGRawImageDigest; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGRawToPreviewGain; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGReductionMatrix1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGReductionMatrix2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGRowInterleaveFactor; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGShadowScale; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGSubTileBlockSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGUniqueCameraModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGWarpFisheye; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGWarpRectilinear; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGWhiteLevel; + +@ffi.Native() +external CFStringRef kCGImagePropertyDPIHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyDPIWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyDepth; + +@ffi.Native() +external CFStringRef kCGImagePropertyEncoder; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifApertureValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxFirmware; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxFlashCompensation; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxImageNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxLensID; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxLensInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxLensModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxLensSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxOwnerName; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifBodySerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifBrightnessValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifCFAPattern; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifCameraOwnerName; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifColorSpace; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifComponentsConfiguration; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifCompositeImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifCompressedBitsPerPixel; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifContrast; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifCustomRendered; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifDateTimeDigitized; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifDateTimeOriginal; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifDeviceSettingDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifDigitalZoomRatio; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifExposureBiasValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifExposureIndex; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifExposureMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifExposureProgram; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifExposureTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFileSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFlash; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFlashEnergy; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFlashPixVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFocalLenIn35mmFilm; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFocalLength; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFocalPlaneResolutionUnit; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFocalPlaneXResolution; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFocalPlaneYResolution; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifGainControl; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifGamma; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifISOSpeed; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifISOSpeedLatitudeyyy; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifISOSpeedLatitudezzz; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifISOSpeedRatings; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifImageUniqueID; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifLensMake; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifLensModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifLensSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifLensSpecification; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifLightSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifMakerNote; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifMaxApertureValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifMeteringMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifOECF; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifOffsetTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifOffsetTimeDigitized; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifOffsetTimeOriginal; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifPixelXDimension; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifPixelYDimension; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifRecommendedExposureIndex; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifRelatedSoundFile; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSaturation; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSceneCaptureType; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSceneType; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSensingMethod; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSensitivityType; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSharpness; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifShutterSpeedValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSourceExposureTimesOfCompositeImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSourceImageNumberOfCompositeImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSpatialFrequencyResponse; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSpectralSensitivity; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifStandardOutputSensitivity; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubjectArea; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubjectDistRange; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubjectDistance; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubjectLocation; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubsecTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubsecTimeDigitized; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubsecTimeOrginal; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubsecTimeOriginal; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifUserComment; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifWhiteBalance; + +@ffi.Native() +external CFStringRef kCGImagePropertyFileContentsDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyFileSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFCanvasPixelHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFCanvasPixelWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFFrameInfoArray; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFHasGlobalColorMap; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFImageColorMap; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFLoopCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFUnclampedDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSAltitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSAltitudeRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSAreaInformation; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDOP; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDateStamp; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestBearing; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestBearingRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestDistance; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestDistanceRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestLatitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestLatitudeRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestLongitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestLongitudeRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDifferental; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSHPositioningError; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSImgDirection; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSImgDirectionRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSLatitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSLatitudeRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSLongitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSLongitudeRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSMapDatum; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSMeasureMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSProcessingMethod; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSSatellites; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSSpeed; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSSpeedRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSStatus; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSTimeStamp; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSTrack; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSTrackRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageBaseline; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageDisparityAdjustment; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIndexLeft; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIndexMonoscopic; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIndexRight; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIsAlternateImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIsLeftImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIsMonoscopicImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIsRightImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageStereoAggressors; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImagesAlternate; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupIndex; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupMonoscopicImageLocation; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupType; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupTypeAlternate; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupTypeStereoPair; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroups; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSCanvasPixelHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSCanvasPixelWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSFrameInfoArray; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSLoopCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSUnclampedDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEIFDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyHasAlpha; + +@ffi.Native() +external CFStringRef kCGImagePropertyHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCActionAdvised; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCByline; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCBylineTitle; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCaptionAbstract; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCategory; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCity; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContact; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoAddress; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoCity; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoCountry; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoEmails; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoPhones; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoPostalCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoStateProvince; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoWebURLs; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContentLocationCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContentLocationName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCopyrightNotice; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCountryPrimaryLocationCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCountryPrimaryLocationName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCreatorContactInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCredit; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCDateCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCDigitalCreationDate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCDigitalCreationTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCEditStatus; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCEditorialUpdate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExpirationDate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExpirationTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAboutCvTerm; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAboutCvTermCvId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAboutCvTermId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAboutCvTermName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAboutCvTermRefinedAbout; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAddlModelInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCircaDateCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkContentDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkContributionDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightNotice; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightOwnerID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightOwnerName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCreator; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCreatorID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkDateCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkLicensorID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkLicensorName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkOrObject; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkPhysicalDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkSourceInvURL; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkSourceInventoryNo; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkStylePeriod; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkTitle; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAudioBitrate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAudioBitrateMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAudioChannelCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCircaDateCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContainerFormat; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContainerFormatIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContainerFormatName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContributor; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContributorIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContributorName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContributorRole; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtControlledVocabularyTerm; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCopyrightYear; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCreator; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCreatorIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCreatorName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCreatorRole; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreen; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegion; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionD; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionH; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionText; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionUnit; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionW; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionX; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionY; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDigitalImageGUID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDigitalSourceFileType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDigitalSourceType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDopesheet; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDopesheetLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDopesheetLinkLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDopesheetLinkLinkQualifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEmbdEncRightsExpr; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExpr; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprLangID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEpisode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEpisodeIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEpisodeName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEpisodeNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEvent; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtExternalMetadataLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtFeedIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtGenre; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtGenreCvId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtGenreCvTermId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtGenreCvTermName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtGenreCvTermRefinedAbout; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtHeadline; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtIPTCLastEdited; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLinkedEncRightsExpr; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExpr; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExprLangID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExprType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationCity; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationCountryCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationCountryName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationGPSAltitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationGPSLatitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationGPSLongitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationLocationId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationLocationName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationProvinceState; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationShown; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationSublocation; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationWorldRegion; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtMaxAvailHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtMaxAvailWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtModelAge; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtOrganisationInImageCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtOrganisationInImageName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonHeard; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonHeardIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonHeardName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageCharacteristic; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermCvId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermRefinedAbout; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageWDetails; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtProductInImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtProductInImageDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtProductInImageGTIN; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtProductInImageName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPublicationEvent; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPublicationEventDate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPublicationEventIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPublicationEventName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRating; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRatingRegion; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionCity; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionCountryCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionCountryName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSAltitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSLatitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSLongitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionLocationId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionLocationName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionProvinceState; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionSublocation; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionWorldRegion; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingScaleMaxValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingScaleMinValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingSourceLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingValueLogoLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRegistryEntryRole; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRegistryID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRegistryItemID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRegistryOrganisationID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtReleaseReady; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeason; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeasonIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeasonName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeasonNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeries; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeriesIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeriesName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtShownEvent; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtShownEventIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtShownEventName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtStorylineIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtStreamReady; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtStylePeriod; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSupplyChainSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSupplyChainSourceIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSupplyChainSourceName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTemporalCoverage; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTemporalCoverageFrom; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTemporalCoverageTo; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTranscript; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTranscriptLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTranscriptLinkLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTranscriptLinkLinkQualifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoBitrate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoBitrateMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoDisplayAspectRatio; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoEncodingProfile; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoShotType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoShotTypeIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoShotTypeName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoStreamsCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVisualColor; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtWorkflowTag; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermRefinedAbout; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCFixtureIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCHeadline; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCImageOrientation; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCImageType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCKeywords; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCLanguageIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCObjectAttributeReference; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCObjectCycle; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCObjectName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCObjectTypeReference; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCOriginalTransmissionReference; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCOriginatingProgram; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCProgramVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCProvinceState; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCReferenceDate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCReferenceNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCReferenceService; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCReleaseDate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCReleaseTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCRightsUsageTerms; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCScene; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCSpecialInstructions; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCStarRating; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCSubLocation; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCSubjectReference; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCSupplementalCategory; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCTimeCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCUrgency; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCWriterEditor; + +@ffi.Native() +external CFStringRef kCGImagePropertyImageCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyImageIndex; + +@ffi.Native() +external CFStringRef kCGImagePropertyImages; + +@ffi.Native() +external CFStringRef kCGImagePropertyIsFloat; + +@ffi.Native() +external CFStringRef kCGImagePropertyIsIndexed; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFDensityUnit; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFIsProgressive; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFXDensity; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFYDensity; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerAppleDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonAspectRatioInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonCameraSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonContinuousDrive; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonFirmware; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonFlashExposureComp; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonImageSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonLensModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonOwnerName; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerFujiDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerMinoltaDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonCameraSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonColorMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonDigitalZoom; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonFlashExposureComp; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonFlashSetting; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonFocusDistance; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonFocusMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonISOSelection; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonISOSetting; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonImageAdjustment; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonLensAdapter; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonLensInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonLensType; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonQuality; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonSharpenMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonShootingMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonShutterCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonWhiteBalanceMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerOlympusDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerPentaxDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyNamedColorSpace; + +@ffi.Native() +external CFStringRef kCGImagePropertyOpenEXRAspectRatio; + +@ffi.Native() +external CFStringRef kCGImagePropertyOpenEXRCompression; + +@ffi.Native() +external CFStringRef kCGImagePropertyOpenEXRDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyOrientation; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGAuthor; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGChromaticities; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGComment; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGCompressionFilter; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGCopyright; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGCreationTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGDisclaimer; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGGamma; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGInterlaceType; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGModificationTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGPixelsAspectRatio; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGSoftware; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGTitle; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGTransparency; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGWarning; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGXPixelsPerMeter; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGYPixelsPerMeter; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGsRGBIntent; + +@ffi.Native() +external CFStringRef kCGImagePropertyPVREncoder; + +@ffi.Native() +external CFStringRef kCGImagePropertyPixelFormat; + +@ffi.Native() +external CFStringRef kCGImagePropertyPixelHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyPixelWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyPrimaryImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyProfileName; + +@ffi.Native() +external CFStringRef kCGImagePropertyRawDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyTGACompression; + +@ffi.Native() +external CFStringRef kCGImagePropertyTGADictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFArtist; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFCompression; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFCopyright; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFDateTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFDocumentName; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFHostComputer; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFImageDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFMake; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFOrientation; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFPhotometricInterpretation; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFPrimaryChromaticities; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFResolutionUnit; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFSoftware; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFTileLength; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFTileWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFTransferFunction; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFWhitePoint; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFXPosition; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFXResolution; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFYPosition; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFYResolution; + +@ffi.Native() +external CFStringRef kCGImagePropertyThumbnailImages; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPCanvasPixelHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPCanvasPixelWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPFrameInfoArray; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPLoopCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPUnclampedDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyWidth; + +@ffi.Native() +external CFStringRef kCGImageProviderPreferredTileHeight; + +@ffi.Native() +external CFStringRef kCGImageProviderPreferredTileWidth; + +@ffi.Native() +external CFStringRef kCGImageSourceCreateThumbnailFromImageAlways; + +@ffi.Native() +external CFStringRef kCGImageSourceCreateThumbnailFromImageIfAbsent; + +@ffi.Native() +external CFStringRef kCGImageSourceCreateThumbnailWithTransform; + +@ffi.Native() +external CFStringRef kCGImageSourceDecodeRequest; + +@ffi.Native() +external CFStringRef kCGImageSourceDecodeRequestOptions; + +@ffi.Native() +external CFStringRef kCGImageSourceDecodeToHDR; + +@ffi.Native() +external CFStringRef kCGImageSourceDecodeToSDR; + +@ffi.Native() +external CFStringRef kCGImageSourceGenerateImageSpecificLumaScaling; + +@ffi.Native() +external CFStringRef kCGImageSourceShouldAllowFloat; + +@ffi.Native() +external CFStringRef kCGImageSourceShouldCache; + +@ffi.Native() +external CFStringRef kCGImageSourceShouldCacheImmediately; + +@ffi.Native() +external CFStringRef kCGImageSourceSubsampleFactor; + +@ffi.Native() +external CFStringRef kCGImageSourceThumbnailMaxPixelSize; + +@ffi.Native() +external CFStringRef kCGImageSourceTypeIdentifierHint; + +@ffi.Native() +external CFStringRef kCGPDFContextAccessPermissions; + +@ffi.Native() +external CFStringRef kCGPDFContextAllowsCopying; + +@ffi.Native() +external CFStringRef kCGPDFContextAllowsPrinting; + +@ffi.Native() +external CFStringRef kCGPDFContextArtBox; + +@ffi.Native() +external CFStringRef kCGPDFContextAuthor; + +@ffi.Native() +external CFStringRef kCGPDFContextBleedBox; + +@ffi.Native() +external CFStringRef kCGPDFContextCreateLinearizedPDF; + +@ffi.Native() +external CFStringRef kCGPDFContextCreatePDFA; + +@ffi.Native() +external CFStringRef kCGPDFContextCreator; + +@ffi.Native() +external CFStringRef kCGPDFContextCropBox; + +@ffi.Native() +external CFStringRef kCGPDFContextEncryptionKeyLength; + +@ffi.Native() +external CFStringRef kCGPDFContextKeywords; + +@ffi.Native() +external CFStringRef kCGPDFContextMediaBox; + +@ffi.Native() +external CFStringRef kCGPDFContextOutputIntent; + +@ffi.Native() +external CFStringRef kCGPDFContextOutputIntents; + +@ffi.Native() +external CFStringRef kCGPDFContextOwnerPassword; + +@ffi.Native() +external CFStringRef kCGPDFContextSubject; + +@ffi.Native() +external CFStringRef kCGPDFContextTitle; + +@ffi.Native() +external CFStringRef kCGPDFContextTrimBox; + +@ffi.Native() +external CFStringRef kCGPDFContextUserPassword; + +@ffi.Native() +external CFStringRef kCGPDFOutlineChildren; + +@ffi.Native() +external CFStringRef kCGPDFOutlineDestination; + +@ffi.Native() +external CFStringRef kCGPDFOutlineDestinationRect; + +@ffi.Native() +external CFStringRef kCGPDFOutlineTitle; + +@ffi.Native() +external final CGPDFTagProperty kCGPDFTagPropertyActualText; + +@ffi.Native() +external final CGPDFTagProperty kCGPDFTagPropertyAlternativeText; + +@ffi.Native() +external final CGPDFTagProperty kCGPDFTagPropertyLanguageText; + +@ffi.Native() +external final CGPDFTagProperty kCGPDFTagPropertyTitleText; + +@ffi.Native() +external CFStringRef kCGPDFXDestinationOutputProfile; + +@ffi.Native() +external CFStringRef kCGPDFXInfo; + +@ffi.Native() +external CFStringRef kCGPDFXOutputCondition; + +@ffi.Native() +external CFStringRef kCGPDFXOutputConditionIdentifier; + +@ffi.Native() +external CFStringRef kCGPDFXOutputIntentSubtype; + +@ffi.Native() +external CFStringRef kCGPDFXRegistryName; + +@ffi.Native() +external CFStringRef kCGPreferredDynamicRange; + +@ffi.Native() +external CFStringRef kCGSkipBoostToHDR; + +@ffi.Native() +external CFStringRef kCGUse100nitsHLGOOTF; + +@ffi.Native() +external CFStringRef kCGUseBT1886ForCoreVideoGamma; + +@ffi.Native() +external CFStringRef kCGUseLegacyHDREcosystem; + +@ffi.Native() +external CFStringRef kCGWindowAlpha; + +@ffi.Native() +external CFStringRef kCGWindowBackingLocationVideoMemory; + +@ffi.Native() +external CFStringRef kCGWindowBounds; + +@ffi.Native() +external CFStringRef kCGWindowIsOnscreen; + +@ffi.Native() +external CFStringRef kCGWindowLayer; + +@ffi.Native() +external CFStringRef kCGWindowMemoryUsage; + +@ffi.Native() +external CFStringRef kCGWindowName; + +@ffi.Native() +external CFStringRef kCGWindowNumber; + +@ffi.Native() +external CFStringRef kCGWindowOwnerName; + +@ffi.Native() +external CFStringRef kCGWindowOwnerPID; + +@ffi.Native() +external CFStringRef kCGWindowSharingState; + +@ffi.Native() +external CFStringRef kCGWindowStoreType; + +@ffi.Native() +external CFStringRef kCGWindowWorkspace; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionAlphaChannelMode_PremultipliedAlpha; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionAlphaChannelMode_StraightAlpha; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibrationExtrinsicOriginSource_StereoCameraSystemBaseline; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibrationLensAlgorithmKind_ParametricLens; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibrationLensDomain_Color; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Left; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Mono; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Right; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_ExtrinsicOrientationQuaternion; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_ExtrinsicOriginSource; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_IntrinsicMatrix; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_IntrinsicMatrixProjectionOffset; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_IntrinsicMatrixReferenceDimensions; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_LensAlgorithmKind; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_LensDistortions; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_LensDomain; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialX; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialY; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_LensIdentifier; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_LensRole; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_RadialAngleLimit; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_Bottom; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_BottomLeft; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_Center; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_DV420; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_Left; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_Top; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_TopLeft; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_DCI_P3; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_EBU_3213; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_P22; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_P3_D65; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_SMPTE_C; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionConformsToMPEG2VideoProfile; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtensionKey_MetadataKeyTable; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_AlphaChannelMode; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_AlternativeTransferCharacteristics; + +@ffi.Native() +external final CFStringRef +kCMFormatDescriptionExtension_AmbientViewingEnvironment; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_AuxiliaryTypeInfo; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_BitsPerComponent; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_BytesPerRow; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_CameraCalibrationDataLensCollection; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ChromaLocationBottomField; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ChromaLocationTopField; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_CleanAperture; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ColorPrimaries; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ContainsAlphaChannel; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ContentColorVolume; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ContentLightLevelInfo; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_ConvertedFromExternalSphericalTags; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_Depth; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_FieldCount; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_FieldDetail; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_FormatName; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_FullRangeVideo; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_GammaLevel; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_HasAdditionalViews; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_HasLeftStereoEyeView; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_HasRightStereoEyeView; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_HeroEye; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_HorizontalDisparityAdjustment; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_HorizontalFieldOfView; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ICCProfile; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_LogTransferFunction; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_MasteringDisplayColorVolume; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_OriginalCompressionSettings; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_PixelAspectRatio; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ProjectionKind; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_ProtectedContentOriginalFormat; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_RevisionLevel; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_SampleDescriptionExtensionAtoms; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_SpatialQuality; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_StereoCameraBaseline; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_TemporalQuality; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_TransferFunction; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_Vendor; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_VerbatimISOSampleEntry; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_VerbatimImageDescription; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_VerbatimSampleDescription; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_Version; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ViewPackingKind; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_YCbCrMatrix; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionFieldDetail_SpatialFirstLineEarly; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionFieldDetail_SpatialFirstLineLate; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionFieldDetail_TemporalBottomFirst; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionFieldDetail_TemporalTopFirst; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionHeroEye_Left; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionHeroEye_Right; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureHeight; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureHeightRational; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureHorizontalOffset; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionKey_CleanApertureHorizontalOffsetRational; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureVerticalOffset; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionKey_CleanApertureVerticalOffsetRational; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureWidth; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureWidthRational; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionLogTransferFunction_AppleLog; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionProjectionKind_AppleImmersiveVideo; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionProjectionKind_Equirectangular; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionProjectionKind_HalfEquirectangular; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionProjectionKind_ParametricImmersive; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionProjectionKind_Rectilinear; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_2100_HLG; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_Linear; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_240M_1995; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_ST_2084_PQ; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_ST_428_1; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_UseGamma; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_sRGB; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionVendor_Apple; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionViewPackingKind_OverUnder; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionViewPackingKind_SideBySide; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_601_4; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionYCbCrMatrix_SMPTE_240M_1995; + +@ffi.Native() +external CFStringRef kCMMApplyTransformProcName; + +@ffi.Native() +external CFStringRef kCMMCreateTransformPropertyProcName; + +@ffi.Native() +external CFStringRef kCMMInitializeLinkProfileProcName; + +@ffi.Native() +external CFStringRef kCMMInitializeTransformProcName; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_ConformingDataTypes; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_DataType; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_DataTypeNamespace; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_LanguageTag; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_LocalID; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_Namespace; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_SetupData; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_StructuralDependency; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_Value; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescriptionMetadataSpecificationKey_DataType; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescriptionMetadataSpecificationKey_ExtendedLanguageTag; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescriptionMetadataSpecificationKey_SetupData; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescriptionMetadataSpecificationKey_StructuralDependency; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInvalidFlag; + +@ffi.Native() +external CFStringRef kCMSEncoderDigestAlgorithmSHA1; + +@ffi.Native() +external CFStringRef kCMSEncoderDigestAlgorithmSHA256; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionColor_Alpha; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionColor_Blue; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionColor_Green; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionColor_Red; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_BackgroundColor; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_DefaultFontName; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_DefaultStyle; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_DefaultTextBox; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_DisplayFlags; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_FontTable; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_HorizontalJustification; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_TextJustification; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_VerticalJustification; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionRect_Bottom; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionRect_Left; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionRect_Right; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionRect_Top; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_Ascent; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_EndChar; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_Font; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_FontFace; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_FontSize; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_ForegroundColor; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_Height; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_StartChar; + +@ffi.Native() +external CFStringRef kCMTimeCodeFormatDescriptionExtension_SourceReferenceName; + +@ffi.Native() +external CFStringRef kCMTimeCodeFormatDescriptionKey_LangCode; + +@ffi.Native() +external CFStringRef kCMTimeCodeFormatDescriptionKey_Value; + +@ffi.Native() +external CFStringRef kCMTimeEpochKey; + +@ffi.Native() +external CFStringRef kCMTimeFlagsKey; + +@ffi.Native() +external final CMTime kCMTimeIndefinite; + +@ffi.Native() +external final CMTime kCMTimeInvalid; + +@ffi.Native() +external final CMTime kCMTimeNegativeInfinity; + +@ffi.Native() +external final CMTime kCMTimePositiveInfinity; + +@ffi.Native() +external CFStringRef kCMTimeScaleKey; + +@ffi.Native() +external CFStringRef kCMTimeValueKey; + +@ffi.Native() +external final CMTime kCMTimeZero; + +@ffi.Native() +external final CFStringRef kCSIdentityErrorDomain; + +@ffi.Native() +external final CFStringRef kCSIdentityGeneratePosixName; + +@ffi.Native() +external CFStringRef kCTAdaptiveImageProviderAttributeName; + +@ffi.Native() +external CFStringRef kCTBackgroundColorAttributeName; + +@ffi.Native() +external CFStringRef kCTBaselineClassAttributeName; + +@ffi.Native() +external CFStringRef kCTBaselineClassHanging; + +@ffi.Native() +external CFStringRef kCTBaselineClassIdeographicCentered; + +@ffi.Native() +external CFStringRef kCTBaselineClassIdeographicHigh; + +@ffi.Native() +external CFStringRef kCTBaselineClassIdeographicLow; + +@ffi.Native() +external CFStringRef kCTBaselineClassMath; + +@ffi.Native() +external CFStringRef kCTBaselineClassRoman; + +@ffi.Native() +external CFStringRef kCTBaselineInfoAttributeName; + +@ffi.Native() +external CFStringRef kCTBaselineOffsetAttributeName; + +@ffi.Native() +external CFStringRef kCTBaselineOriginalFont; + +@ffi.Native() +external CFStringRef kCTBaselineReferenceFont; + +@ffi.Native() +external CFStringRef kCTBaselineReferenceInfoAttributeName; + +@ffi.Native() +external CFStringRef kCTCharacterShapeAttributeName; + +@ffi.Native() +external CFStringRef kCTFontAttributeName; + +@ffi.Native() +external CFStringRef kCTFontBaselineAdjustAttribute; + +@ffi.Native() +external CFStringRef kCTFontCascadeListAttribute; + +@ffi.Native() +external CFStringRef kCTFontCharacterSetAttribute; + +@ffi.Native() +external CFStringRef kCTFontCollectionDisallowAutoActivationOption; + +@ffi.Native() +external CFStringRef kCTFontCollectionIncludeDisabledFontsOption; + +@ffi.Native() +external CFStringRef kCTFontCollectionRemoveDuplicatesOption; + +@ffi.Native() +external CFStringRef kCTFontCopyrightNameKey; + +@ffi.Native() +external CFStringRef kCTFontDescriptionNameKey; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingCurrentAssetSize; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingDescriptors; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingError; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingPercentage; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingResult; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingSourceDescriptor; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingTotalAssetSize; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingTotalDownloadedSize; + +@ffi.Native() +external CFStringRef kCTFontDesignerNameKey; + +@ffi.Native() +external CFStringRef kCTFontDesignerURLNameKey; + +@ffi.Native() +external CFStringRef kCTFontDisplayNameAttribute; + +@ffi.Native() +external CFStringRef kCTFontDownloadableAttribute; + +@ffi.Native() +external CFStringRef kCTFontDownloadedAttribute; + +@ffi.Native() +external CFStringRef kCTFontEnabledAttribute; + +@ffi.Native() +external CFStringRef kCTFontFamilyNameAttribute; + +@ffi.Native() +external CFStringRef kCTFontFamilyNameKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSampleTextKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSelectorDefaultKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSelectorIdentifierKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSelectorNameKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSelectorSettingKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSettingsAttribute; + +@ffi.Native() +external CFStringRef kCTFontFeatureTooltipTextKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureTypeExclusiveKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureTypeIdentifierKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureTypeNameKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureTypeSelectorsKey; + +@ffi.Native() +external CFStringRef kCTFontFeaturesAttribute; + +@ffi.Native() +external CFStringRef kCTFontFixedAdvanceAttribute; + +@ffi.Native() +external CFStringRef kCTFontFormatAttribute; + +@ffi.Native() +external CFStringRef kCTFontFullNameKey; + +@ffi.Native() +external CFStringRef kCTFontLanguagesAttribute; + +@ffi.Native() +external CFStringRef kCTFontLicenseNameKey; + +@ffi.Native() +external CFStringRef kCTFontLicenseURLNameKey; + +@ffi.Native() +external CFStringRef kCTFontMacintoshEncodingsAttribute; + +@ffi.Native() +external CFStringRef kCTFontManagerBundleIdentifier; + +@ffi.Native() +external CFStringRef kCTFontManagerErrorDomain; + +@ffi.Native() +external CFStringRef kCTFontManagerErrorFontAssetNameKey; + +@ffi.Native() +external CFStringRef kCTFontManagerErrorFontDescriptorsKey; + +@ffi.Native() +external CFStringRef kCTFontManagerErrorFontURLsKey; + +@ffi.Native() +external CFStringRef kCTFontManagerRegisteredFontsChangedNotification; + +@ffi.Native() +external CFStringRef kCTFontManufacturerNameKey; + +@ffi.Native() +external CFStringRef kCTFontMatrixAttribute; + +@ffi.Native() +external CFStringRef kCTFontNameAttribute; + +@ffi.Native() +external CFStringRef kCTFontOpenTypeFeatureTag; + +@ffi.Native() +external CFStringRef kCTFontOpenTypeFeatureValue; + +@ffi.Native() +external CFStringRef kCTFontOpticalSizeAttribute; + +@ffi.Native() +external CFStringRef kCTFontOrientationAttribute; + +@ffi.Native() +external CFStringRef kCTFontPostScriptCIDNameKey; + +@ffi.Native() +external CFStringRef kCTFontPostScriptNameKey; + +@ffi.Native() +external CFStringRef kCTFontPriorityAttribute; + +@ffi.Native() +external CFStringRef kCTFontRegistrationScopeAttribute; + +@ffi.Native() +external CFStringRef kCTFontRegistrationUserInfoAttribute; + +@ffi.Native() +external CFStringRef kCTFontSampleTextNameKey; + +@ffi.Native() +external CFStringRef kCTFontSizeAttribute; + +@ffi.Native() +external CFStringRef kCTFontSlantTrait; + +@ffi.Native() +external CFStringRef kCTFontStyleNameAttribute; + +@ffi.Native() +external CFStringRef kCTFontStyleNameKey; + +@ffi.Native() +external CFStringRef kCTFontSubFamilyNameKey; + +@ffi.Native() +external CFStringRef kCTFontSymbolicTrait; + +@ffi.Native() +external CFStringRef kCTFontTrademarkNameKey; + +@ffi.Native() +external CFStringRef kCTFontTraitsAttribute; + +@ffi.Native() +external CFStringRef kCTFontURLAttribute; + +@ffi.Native() +external CFStringRef kCTFontUniqueNameKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAttribute; + +@ffi.Native() +external CFStringRef kCTFontVariationAxesAttribute; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisDefaultValueKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisHiddenKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisIdentifierKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisMaximumValueKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisMinimumValueKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisNameKey; + +@ffi.Native() +external CFStringRef kCTFontVendorURLNameKey; + +@ffi.Native() +external CFStringRef kCTFontVersionNameKey; + +@ffi.Native() +external CFStringRef kCTFontWeightTrait; + +@ffi.Native() +external CFStringRef kCTFontWidthTrait; + +@ffi.Native() +external CFStringRef kCTForegroundColorAttributeName; + +@ffi.Native() +external CFStringRef kCTForegroundColorFromContextAttributeName; + +@ffi.Native() +external CFStringRef kCTFrameClippingPathsAttributeName; + +@ffi.Native() +external CFStringRef kCTFramePathClippingPathAttributeName; + +@ffi.Native() +external CFStringRef kCTFramePathFillRuleAttributeName; + +@ffi.Native() +external CFStringRef kCTFramePathWidthAttributeName; + +@ffi.Native() +external CFStringRef kCTFrameProgressionAttributeName; + +@ffi.Native() +external CFStringRef kCTGlyphInfoAttributeName; + +@ffi.Native() +external CFStringRef kCTHorizontalInVerticalFormsAttributeName; + +@ffi.Native() +external CFStringRef kCTKernAttributeName; + +@ffi.Native() +external CFStringRef kCTLanguageAttributeName; + +@ffi.Native() +external CFStringRef kCTLigatureAttributeName; + +@ffi.Native() +external CFStringRef kCTParagraphStyleAttributeName; + +@ffi.Native() +external CFStringRef kCTRubyAnnotationAttributeName; + +@ffi.Native() +external CFStringRef kCTRubyAnnotationScaleToFitAttributeName; + +@ffi.Native() +external CFStringRef kCTRubyAnnotationSizeFactorAttributeName; + +@ffi.Native() +external CFStringRef kCTRunDelegateAttributeName; + +@ffi.Native() +external CFStringRef kCTStrokeColorAttributeName; + +@ffi.Native() +external CFStringRef kCTStrokeWidthAttributeName; + +@ffi.Native() +external CFStringRef kCTSuperscriptAttributeName; + +@ffi.Native() +external CFStringRef kCTTabColumnTerminatorsAttributeName; + +@ffi.Native() +external CFStringRef kCTTrackingAttributeName; + +@ffi.Native() +external CFStringRef kCTTypesetterOptionAllowUnboundedLayout; + +@ffi.Native() +external CFStringRef kCTTypesetterOptionDisableBidiProcessing; + +@ffi.Native() +external CFStringRef kCTTypesetterOptionForcedEmbeddingLevel; + +@ffi.Native() +external CFStringRef kCTUnderlineColorAttributeName; + +@ffi.Native() +external CFStringRef kCTUnderlineStyleAttributeName; + +@ffi.Native() +external CFStringRef kCTVerticalFormsAttributeName; + +@ffi.Native() +external CFStringRef kCTWritingDirectionAttributeName; + +@ffi.Native() +external CFStringRef kCVBufferMovieTimeKey; + +@ffi.Native() +external CFStringRef kCVBufferNonPropagatedAttachmentsKey; + +@ffi.Native() +external CFStringRef kCVBufferPropagatedAttachmentsKey; + +@ffi.Native() +external CFStringRef kCVBufferTimeScaleKey; + +@ffi.Native() +external CFStringRef kCVBufferTimeValueKey; + +@ffi.Native() +external CFStringRef kCVImageBufferAlphaChannelIsOpaque; + +@ffi.Native() +external CFStringRef kCVImageBufferAlphaChannelModeKey; + +@ffi.Native() +external CFStringRef kCVImageBufferAlphaChannelMode_PremultipliedAlpha; + +@ffi.Native() +external CFStringRef kCVImageBufferAlphaChannelMode_StraightAlpha; + +@ffi.Native() +external final CFStringRef kCVImageBufferAmbientViewingEnvironmentKey; + +@ffi.Native() +external CFStringRef kCVImageBufferCGColorSpaceKey; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocationBottomFieldKey; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocationTopFieldKey; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_Bottom; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_BottomLeft; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_Center; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_DV420; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_Left; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_Top; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_TopLeft; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaSubsamplingKey; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaSubsampling_411; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaSubsampling_420; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaSubsampling_422; + +@ffi.Native() +external CFStringRef kCVImageBufferCleanApertureHeightKey; + +@ffi.Native() +external CFStringRef kCVImageBufferCleanApertureHorizontalOffsetKey; + +@ffi.Native() +external CFStringRef kCVImageBufferCleanApertureKey; + +@ffi.Native() +external CFStringRef kCVImageBufferCleanApertureVerticalOffsetKey; + +@ffi.Native() +external CFStringRef kCVImageBufferCleanApertureWidthKey; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimariesKey; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_DCI_P3; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_EBU_3213; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_P22; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_P3_D65; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_SMPTE_C; + +@ffi.Native() +external CFStringRef kCVImageBufferContentLightLevelInfoKey; + +@ffi.Native() +external CFStringRef kCVImageBufferDisplayDimensionsKey; + +@ffi.Native() +external CFStringRef kCVImageBufferDisplayHeightKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangleKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangleStereoLeftKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangleStereoRightKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey; + +@ffi.Native() +external final CFStringRef +kCVImageBufferDisplayMaskRectangle_RectangleHeightKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleLeftKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleTopKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleWidthKey; + +@ffi.Native() +external final CFStringRef +kCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey; + +@ffi.Native() +external final CFStringRef +kCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey; + +@ffi.Native() +external final CFStringRef +kCVImageBufferDisplayMaskRectangle_RightEdgePointsKey; + +@ffi.Native() +external CFStringRef kCVImageBufferDisplayWidthKey; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldCountKey; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldDetailKey; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldDetailSpatialFirstLineEarly; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldDetailSpatialFirstLineLate; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldDetailTemporalBottomFirst; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldDetailTemporalTopFirst; + +@ffi.Native() +external CFStringRef kCVImageBufferGammaLevelKey; + +@ffi.Native() +external CFStringRef kCVImageBufferICCProfileKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferLogTransferFunctionKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferLogTransferFunction_AppleLog; + +@ffi.Native() +external final CFStringRef kCVImageBufferLogTransferFunction_AppleLog2; + +@ffi.Native() +external CFStringRef kCVImageBufferMasteringDisplayColorVolumeKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPixelAspectRatioHorizontalSpacingKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPixelAspectRatioKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPixelAspectRatioVerticalSpacingKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPostDecodeProcessingFrameMetadataKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPostDecodeProcessingSequenceMetadataKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPreferredCleanApertureKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferRegionOfInterestKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferSceneIlluminationKey; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunctionKey; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_EBU_3213; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_ITU_R_2100_HLG; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_Linear; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_SMPTE_240M_1995; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_SMPTE_C; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_SMPTE_ST_428_1; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_UseGamma; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_sRGB; + +@ffi.Native() +external CFStringRef kCVImageBufferYCbCrMatrixKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferYCbCrMatrix_DCI_P3; + +@ffi.Native() +external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_601_4; + +@ffi.Native() +external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_709_2; + +@ffi.Native() +external final CFStringRef kCVImageBufferYCbCrMatrix_P3_D65; + +@ffi.Native() +external CFStringRef kCVImageBufferYCbCrMatrix_SMPTE_240M_1995; + +@ffi.Native() +external final CVTime kCVIndefiniteTime; + +@ffi.Native() +external CFStringRef kCVMetalBufferCacheMaximumBufferAgeKey; + +@ffi.Native() +external CFStringRef kCVMetalTextureCacheMaximumTextureAgeKey; + +@ffi.Native() +external CFStringRef kCVMetalTextureStorageMode; + +@ffi.Native() +external CFStringRef kCVMetalTextureUsage; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferHeight; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferInternalFormat; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferMaximumMipmapLevel; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferPoolMaximumBufferAgeKey; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferPoolMinimumBufferCountKey; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferTarget; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferWidth; + +@ffi.Native() +external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeAutomatic; + +@ffi.Native() +external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeBestPerformance; + +@ffi.Native() +external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeHighestQuality; + +@ffi.Native() +external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferBytesPerRowAlignmentKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferCGBitmapContextCompatibilityKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferCGImageCompatibilityKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferExtendedPixelsBottomKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferExtendedPixelsLeftKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferExtendedPixelsRightKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferExtendedPixelsTopKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferHeightKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferIOSurfaceOpenGLESFBOCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferIOSurfaceOpenGLESTextureCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferIOSurfacePropertiesKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferIOSurfacePurgeableKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferMemoryAllocatorKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferMetalCompatibilityKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferOpenGLCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferOpenGLESCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferOpenGLESTextureCacheCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferOpenGLTextureCacheCompatibilityKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferPixelFormatTypeKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferPlaneAlignmentKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferPoolAllocationThresholdKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferPoolFreeBufferNotification; + +@ffi.Native() +external CFStringRef kCVPixelBufferPoolMaximumBufferAgeKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferPoolMinimumBufferCountKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_BlackLevel; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_ColorMatrix; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_GainFactor; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_MetadataExtension; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_RecommendedCrop; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_SenselSitingOffsets; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceCCT; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_WhiteLevel; + +@ffi.Native() +external CFStringRef kCVPixelBufferVersatileBayerKey_BayerPattern; + +@ffi.Native() +external final CFStringRef kCVPixelBufferWidthKey; + +@ffi.Native() +external CFStringRef kCVPixelFormatBitsPerBlock; + +@ffi.Native() +external final CFStringRef kCVPixelFormatBitsPerComponent; + +@ffi.Native() +external CFStringRef kCVPixelFormatBlackBlock; + +@ffi.Native() +external CFStringRef kCVPixelFormatBlockHeight; + +@ffi.Native() +external CFStringRef kCVPixelFormatBlockHorizontalAlignment; + +@ffi.Native() +external CFStringRef kCVPixelFormatBlockVerticalAlignment; + +@ffi.Native() +external CFStringRef kCVPixelFormatBlockWidth; + +@ffi.Native() +external final CFStringRef kCVPixelFormatCGBitmapContextCompatibility; + +@ffi.Native() +external CFStringRef kCVPixelFormatCGBitmapInfo; + +@ffi.Native() +external final CFStringRef kCVPixelFormatCGImageCompatibility; + +@ffi.Native() +external CFStringRef kCVPixelFormatCodecType; + +@ffi.Native() +external CFStringRef kCVPixelFormatComponentRange; + +@ffi.Native() +external CFStringRef kCVPixelFormatComponentRange_FullRange; + +@ffi.Native() +external CFStringRef kCVPixelFormatComponentRange_VideoRange; + +@ffi.Native() +external CFStringRef kCVPixelFormatComponentRange_WideRange; + +@ffi.Native() +external CFStringRef kCVPixelFormatConstant; + +@ffi.Native() +external CFStringRef kCVPixelFormatContainsAlpha; + +@ffi.Native() +external CFStringRef kCVPixelFormatContainsGrayscale; + +@ffi.Native() +external CFStringRef kCVPixelFormatContainsRGB; + +@ffi.Native() +external final CFStringRef kCVPixelFormatContainsSenselArray; + +@ffi.Native() +external CFStringRef kCVPixelFormatContainsYCbCr; + +@ffi.Native() +external CFStringRef kCVPixelFormatFillExtendedPixelsCallback; + +@ffi.Native() +external CFStringRef kCVPixelFormatFourCC; + +@ffi.Native() +external CFStringRef kCVPixelFormatHorizontalSubsampling; + +@ffi.Native() +external CFStringRef kCVPixelFormatName; + +@ffi.Native() +external final CFStringRef kCVPixelFormatOpenGLCompatibility; + +@ffi.Native() +external CFStringRef kCVPixelFormatOpenGLESCompatibility; + +@ffi.Native() +external CFStringRef kCVPixelFormatOpenGLFormat; + +@ffi.Native() +external CFStringRef kCVPixelFormatOpenGLInternalFormat; + +@ffi.Native() +external CFStringRef kCVPixelFormatOpenGLType; + +@ffi.Native() +external CFStringRef kCVPixelFormatPlanes; + +@ffi.Native() +external final CFStringRef kCVPixelFormatQDCompatibility; + +@ffi.Native() +external CFStringRef kCVPixelFormatVerticalSubsampling; + +@ffi.Native() +external final CVTime kCVZeroTime; + +@ffi.Native() +external CFStringRef kColorSyncACESCGLinearProfile; + +@ffi.Native() +external CFStringRef kColorSyncAdobeRGB1998Profile; + +@ffi.Native() +external CFStringRef kColorSyncBestQuality; + +@ffi.Native() +external CFStringRef kColorSyncBlackPointCompensation; + +@ffi.Native() +external CFStringRef kColorSyncCameraDeviceClass; + +@ffi.Native() +external CFStringRef kColorSyncConversion1DLut; + +@ffi.Native() +external CFStringRef kColorSyncConversion3DLut; + +@ffi.Native() +external CFStringRef kColorSyncConversionBPC; + +@ffi.Native() +external CFStringRef kColorSyncConversionChannelID; + +@ffi.Native() +external CFStringRef kColorSyncConversionGridPoints; + +@ffi.Native() +external CFStringRef kColorSyncConversionInpChan; + +@ffi.Native() +external CFStringRef kColorSyncConversionMatrix; + +@ffi.Native() +external CFStringRef kColorSyncConversionNDLut; + +@ffi.Native() +external CFStringRef kColorSyncConversionOutChan; + +@ffi.Native() +external CFStringRef kColorSyncConversionParamCurve0; + +@ffi.Native() +external CFStringRef kColorSyncConversionParamCurve1; + +@ffi.Native() +external CFStringRef kColorSyncConversionParamCurve2; + +@ffi.Native() +external CFStringRef kColorSyncConversionParamCurve3; + +@ffi.Native() +external CFStringRef kColorSyncConversionParamCurve4; + +@ffi.Native() +external CFStringRef kColorSyncConvertQuality; + +@ffi.Native() +external CFStringRef kColorSyncConvertUseExtendedRange; + +@ffi.Native() +external CFStringRef kColorSyncCustomProfiles; + +@ffi.Native() +external CFStringRef kColorSyncDCIP3Profile; + +@ffi.Native() +external CFStringRef kColorSyncDeviceClass; + +@ffi.Native() +external CFStringRef kColorSyncDeviceDefaultProfileID; + +@ffi.Native() +external CFStringRef kColorSyncDeviceDescription; + +@ffi.Native() +external CFStringRef kColorSyncDeviceDescriptions; + +@ffi.Native() +external CFStringRef kColorSyncDeviceHostScope; + +@ffi.Native() +external CFStringRef kColorSyncDeviceID; + +@ffi.Native() +external CFStringRef kColorSyncDeviceModeDescription; + +@ffi.Native() +external CFStringRef kColorSyncDeviceModeDescriptions; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfileID; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfileIsCurrent; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfileIsDefault; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfileIsFactory; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfileURL; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfilesNotification; + +@ffi.Native() +external CFStringRef kColorSyncDeviceRegisteredNotification; + +@ffi.Native() +external CFStringRef kColorSyncDeviceUnregisteredNotification; + +@ffi.Native() +external CFStringRef kColorSyncDeviceUserScope; + +@ffi.Native() +external CFStringRef kColorSyncDisplayDeviceClass; + +@ffi.Native() +external CFStringRef kColorSyncDisplayDeviceProfilesNotification; + +@ffi.Native() +external CFStringRef kColorSyncDisplayP3Profile; + +@ffi.Native() +external CFStringRef kColorSyncDraftQuality; + +@ffi.Native() +external CFStringRef kColorSyncExtendedRange; + +@ffi.Native() +external CFStringRef kColorSyncFactoryProfiles; + +@ffi.Native() +external CFStringRef kColorSyncFixedPointRange; + +@ffi.Native() +external CFStringRef kColorSyncGenericCMYKProfile; + +@ffi.Native() +external CFStringRef kColorSyncGenericGrayGamma22Profile; + +@ffi.Native() +external CFStringRef kColorSyncGenericGrayProfile; + +@ffi.Native() +external CFStringRef kColorSyncGenericLabProfile; + +@ffi.Native() +external CFStringRef kColorSyncGenericRGBProfile; + +@ffi.Native() +external CFStringRef kColorSyncGenericXYZProfile; + +@ffi.Native() +external CFStringRef kColorSyncHDRDerivative; + +@ffi.Native() +external CFStringRef kColorSyncHLGDerivative; + +@ffi.Native() +external CFStringRef kColorSyncITUR2020Profile; + +@ffi.Native() +external CFStringRef kColorSyncITUR709Profile; + +@ffi.Native() +external CFStringRef kColorSyncNormalQuality; + +@ffi.Native() +external CFStringRef kColorSyncPQDerivative; + +@ffi.Native() +external CFStringRef kColorSyncPreferredCMM; + +@ffi.Native() +external CFStringRef kColorSyncPrinterDeviceClass; + +@ffi.Native() +external CFStringRef kColorSyncProfile; + +@ffi.Native() +external CFStringRef kColorSyncProfileCacheSeed; + +@ffi.Native() +external CFStringRef kColorSyncProfileClass; + +@ffi.Native() +external CFStringRef kColorSyncProfileColorSpace; + +@ffi.Native() +external CFStringRef kColorSyncProfileComputerDomain; + +@ffi.Native() +external CFStringRef kColorSyncProfileDescription; + +@ffi.Native() +external CFStringRef kColorSyncProfileHeader; + +@ffi.Native() +external CFStringRef kColorSyncProfileHostScope; + +@ffi.Native() +external CFStringRef kColorSyncProfileIsValid; + +@ffi.Native() +external CFStringRef kColorSyncProfileMD5Digest; + +@ffi.Native() +external CFStringRef kColorSyncProfilePCS; + +@ffi.Native() +external CFStringRef kColorSyncProfileRepositoryChangeNotification; + +@ffi.Native() +external CFStringRef kColorSyncProfileURL; + +@ffi.Native() +external CFStringRef kColorSyncProfileUserDomain; + +@ffi.Native() +external CFStringRef kColorSyncProfileUserScope; + +@ffi.Native() +external CFStringRef kColorSyncROMMRGBProfile; + +@ffi.Native() +external CFStringRef kColorSyncRegistrationUpdateWindowServer; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntent; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntentAbsolute; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntentPerceptual; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntentRelative; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntentSaturation; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntentUseProfileHeader; + +@ffi.Native() +external CFStringRef kColorSyncSRGBProfile; + +@ffi.Native() +external CFStringRef kColorSyncScannerDeviceClass; + +@ffi.Native() +external CFStringRef kColorSyncSigAToB0Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigAToB1Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigAToB2Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigAbstractClass; + +@ffi.Native() +external CFStringRef kColorSyncSigBToA0Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigBToA1Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigBToA2Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigBlueColorantTag; + +@ffi.Native() +external CFStringRef kColorSyncSigBlueTRCTag; + +@ffi.Native() +external CFStringRef kColorSyncSigCmykData; + +@ffi.Native() +external CFStringRef kColorSyncSigColorSpaceClass; + +@ffi.Native() +external CFStringRef kColorSyncSigCopyrightTag; + +@ffi.Native() +external CFStringRef kColorSyncSigDeviceMfgDescTag; + +@ffi.Native() +external CFStringRef kColorSyncSigDeviceModelDescTag; + +@ffi.Native() +external CFStringRef kColorSyncSigDisplayClass; + +@ffi.Native() +external CFStringRef kColorSyncSigGamutTag; + +@ffi.Native() +external CFStringRef kColorSyncSigGrayData; + +@ffi.Native() +external CFStringRef kColorSyncSigGrayTRCTag; + +@ffi.Native() +external CFStringRef kColorSyncSigGreenColorantTag; + +@ffi.Native() +external CFStringRef kColorSyncSigGreenTRCTag; + +@ffi.Native() +external CFStringRef kColorSyncSigInputClass; + +@ffi.Native() +external CFStringRef kColorSyncSigLabData; + +@ffi.Native() +external CFStringRef kColorSyncSigLinkClass; + +@ffi.Native() +external CFStringRef kColorSyncSigMediaBlackPointTag; + +@ffi.Native() +external CFStringRef kColorSyncSigMediaWhitePointTag; + +@ffi.Native() +external CFStringRef kColorSyncSigNamedColor2Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigNamedColorClass; + +@ffi.Native() +external CFStringRef kColorSyncSigOutputClass; + +@ffi.Native() +external CFStringRef kColorSyncSigPreview0Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigPreview1Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigPreview2Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigProfileDescriptionTag; + +@ffi.Native() +external CFStringRef kColorSyncSigProfileSequenceDescTag; + +@ffi.Native() +external CFStringRef kColorSyncSigRedColorantTag; + +@ffi.Native() +external CFStringRef kColorSyncSigRedTRCTag; + +@ffi.Native() +external CFStringRef kColorSyncSigRgbData; + +@ffi.Native() +external CFStringRef kColorSyncSigTechnologyTag; + +@ffi.Native() +external CFStringRef kColorSyncSigViewingCondDescTag; + +@ffi.Native() +external CFStringRef kColorSyncSigViewingConditionsTag; + +@ffi.Native() +external CFStringRef kColorSyncSigXYZData; + +@ffi.Native() +external CFStringRef kColorSyncTransformCodeFragmentMD5; + +@ffi.Native() +external CFStringRef kColorSyncTransformCodeFragmentType; + +@ffi.Native() +external CFStringRef kColorSyncTransformCreator; + +@ffi.Native() +external CFStringRef kColorSyncTransformDeviceToDevice; + +@ffi.Native() +external CFStringRef kColorSyncTransformDeviceToPCS; + +@ffi.Native() +external CFStringRef kColorSyncTransformDstSpace; + +@ffi.Native() +external CFStringRef kColorSyncTransformFullConversionData; + +@ffi.Native() +external CFStringRef kColorSyncTransformGamutCheck; + +@ffi.Native() +external CFStringRef kColorSyncTransformInfo; + +@ffi.Native() +external CFStringRef kColorSyncTransformPCSToDevice; + +@ffi.Native() +external CFStringRef kColorSyncTransformPCSToPCS; + +@ffi.Native() +external CFStringRef kColorSyncTransformParametricConversionData; + +@ffi.Native() +external CFStringRef kColorSyncTransformProfileSequnce; + +@ffi.Native() +external CFStringRef kColorSyncTransformSimplifiedConversionData; + +@ffi.Native() +external CFStringRef kColorSyncTransformSrcSpace; + +@ffi.Native() +external CFStringRef kColorSyncTransformTag; + +@ffi.Native() +external CFStringRef kColorSyncTransformUseITU709OETF; + +@ffi.Native() +external CFStringRef kColorSyncWaitForCacheReply; + +@ffi.Native() +external CFStringRef kColorSyncWebSafeColorsProfile; + +@ffi.Native() +external CFStringRef kDADiskDescriptionBusNameKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionBusPathKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceGUIDKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceInternalKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceModelKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDevicePathKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceProtocolKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceRevisionKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceTDMLockedKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceUnitKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceVendorKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionFSKitPrefix; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaBSDMajorKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaBSDMinorKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaBSDNameKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaBSDUnitKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaBlockSizeKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaContentKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaEjectableKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaEncryptedKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaEncryptionDetailKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaIconKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaKindKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaLeafKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaNameKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaPathKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaRemovableKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaSizeKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaTypeKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaUUIDKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaWholeKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaWritableKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionRepairRunningKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeKindKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeMountableKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeNameKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeNetworkKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumePathKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeTypeKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeUUIDKey; + +@ffi.Native() +external final CFStringRef kFSOperationBytesCompleteKey; + +@ffi.Native() +external final CFStringRef kFSOperationBytesRemainingKey; + +@ffi.Native() +external final CFStringRef kFSOperationObjectsCompleteKey; + +@ffi.Native() +external final CFStringRef kFSOperationObjectsRemainingKey; + +@ffi.Native() +external final CFStringRef kFSOperationThroughputKey; + +@ffi.Native() +external final CFStringRef kFSOperationTotalBytesKey; + +@ffi.Native() +external final CFStringRef kFSOperationTotalObjectsKey; + +@ffi.Native() +external final CFStringRef kFSOperationTotalUserVisibleObjectsKey; + +@ffi.Native() +external final CFStringRef kFSOperationUserVisibleObjectsCompleteKey; + +@ffi.Native() +external final CFStringRef kFSOperationUserVisibleObjectsRemainingKey; + +@ffi.Native() +external CFStringRef kIIOCameraExtrinsics_CoordinateSystemID; + +@ffi.Native() +external CFStringRef kIIOCameraExtrinsics_Position; + +@ffi.Native() +external CFStringRef kIIOCameraExtrinsics_Rotation; + +@ffi.Native() +external CFStringRef kIIOCameraModelType_GenericPinhole; + +@ffi.Native() +external CFStringRef kIIOCameraModelType_SimplifiedPinhole; + +@ffi.Native() +external CFStringRef kIIOCameraModel_Intrinsics; + +@ffi.Native() +external CFStringRef kIIOCameraModel_ModelType; + +@ffi.Native() +external CFStringRef kIIOMetadata_CameraExtrinsicsKey; + +@ffi.Native() +external CFStringRef kIIOMetadata_CameraModelKey; + +@ffi.Native() +external CFStringRef kIIOMonoscopicImageLocation_Center; + +@ffi.Native() +external CFStringRef kIIOMonoscopicImageLocation_Left; + +@ffi.Native() +external CFStringRef kIIOMonoscopicImageLocation_Right; + +@ffi.Native() +external CFStringRef kIIOMonoscopicImageLocation_Unspecified; + +@ffi.Native() +external CFStringRef kIIOStereoAggressors_Severity; + +@ffi.Native() +external CFStringRef kIIOStereoAggressors_SubTypeURI; + +@ffi.Native() +external CFStringRef kIIOStereoAggressors_Type; + +@ffi.Native() +external final int kIOMainPortDefault; + +@ffi.Native() +external final int kIOMasterPortDefault; + +@ffi.Native() +external CFStringRef kIOSurfaceAllocSize; + +@ffi.Native() +external CFStringRef kIOSurfaceBytesPerElement; + +@ffi.Native() +external CFStringRef kIOSurfaceBytesPerRow; + +@ffi.Native() +external CFStringRef kIOSurfaceCacheMode; + +@ffi.Native() +external CFStringRef kIOSurfaceColorSpace; + +@ffi.Native() +external CFStringRef kIOSurfaceContentHeadroom; + +@ffi.Native() +external CFStringRef kIOSurfaceElementHeight; + +@ffi.Native() +external CFStringRef kIOSurfaceElementWidth; + +@ffi.Native() +external CFStringRef kIOSurfaceHeight; + +@ffi.Native() +external CFStringRef kIOSurfaceICCProfile; + +@ffi.Native() +external CFStringRef kIOSurfaceIsGlobal; + +@ffi.Native() +external CFStringRef kIOSurfaceName; + +@ffi.Native() +external CFStringRef kIOSurfaceOffset; + +@ffi.Native() +external CFStringRef kIOSurfacePixelFormat; + +@ffi.Native() +external CFStringRef kIOSurfacePixelSizeCastingAllowed; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneBase; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneBitsPerElement; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneBytesPerElement; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneBytesPerRow; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneComponentBitDepths; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneComponentBitOffsets; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneComponentNames; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneComponentRanges; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneComponentTypes; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneElementHeight; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneElementWidth; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneHeight; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneInfo; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneOffset; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneSize; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneWidth; + +@ffi.Native() +external CFStringRef kIOSurfaceSubsampling; + +@ffi.Native() +external CFStringRef kIOSurfaceWidth; + +@ffi.Native() +external final CFStringRef kLSItemContentType; + +@ffi.Native() +external final CFStringRef kLSItemDisplayKind; + +@ffi.Native() +external final CFStringRef kLSItemDisplayName; + +@ffi.Native() +external final CFStringRef kLSItemExtension; + +@ffi.Native() +external final CFStringRef kLSItemExtensionIsHidden; + +@ffi.Native() +external final CFStringRef kLSItemFileCreator; + +@ffi.Native() +external final CFStringRef kLSItemFileType; + +@ffi.Native() +external final CFStringRef kLSItemIsInvisible; + +@ffi.Native() +external final CFStringRef kLSItemQuarantineProperties; + +@ffi.Native() +external final CFStringRef kLSItemRoleHandlerDisplayName; + +@ffi.Native() +external CFStringRef kLSQuarantineAgentBundleIdentifierKey; + +@ffi.Native() +external CFStringRef kLSQuarantineAgentNameKey; + +@ffi.Native() +external CFStringRef kLSQuarantineDataURLKey; + +@ffi.Native() +external CFStringRef kLSQuarantineOriginURLKey; + +@ffi.Native() +external CFStringRef kLSQuarantineTimeStampKey; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeCalendarEventAttachment; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeEmailAttachment; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeInstantMessageAttachment; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeKey; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeOtherAttachment; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeOtherDownload; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeWebDownload; + +@ffi.Native() +external CFStringRef kLSSharedFileListFavoriteItems; + +@ffi.Native() +external CFStringRef kLSSharedFileListFavoriteVolumes; + +@ffi.Native() +external CFStringRef kLSSharedFileListGlobalLoginItems; + +@ffi.Native() +external LSSharedFileListItemRef kLSSharedFileListItemBeforeFirst; + +@ffi.Native() +external CFStringRef kLSSharedFileListItemHidden; + +@ffi.Native() +external LSSharedFileListItemRef kLSSharedFileListItemLast; + +@ffi.Native() +external CFStringRef kLSSharedFileListLoginItemHidden; + +@ffi.Native() +external CFStringRef kLSSharedFileListRecentApplicationItems; + +@ffi.Native() +external CFStringRef kLSSharedFileListRecentDocumentItems; + +@ffi.Native() +external CFStringRef kLSSharedFileListRecentItemsMaxAmount; + +@ffi.Native() +external CFStringRef kLSSharedFileListRecentServerItems; + +@ffi.Native() +external CFStringRef kLSSharedFileListSessionLoginItems; + +@ffi.Native() +external CFStringRef kLSSharedFileListVolumesComputerVisible; + +@ffi.Native() +external CFStringRef kLSSharedFileListVolumesIDiskVisible; + +@ffi.Native() +external CFStringRef kLSSharedFileListVolumesNetworkVisible; + +@ffi.Native() +external final CFStringRef kMDAttributeAllValues; + +@ffi.Native() +external final CFStringRef kMDAttributeDisplayValues; + +@ffi.Native() +external final CFStringRef kMDAttributeMultiValued; + +@ffi.Native() +external final CFStringRef kMDAttributeName; + +@ffi.Native() +external final CFStringRef kMDAttributeReadOnlyValues; + +@ffi.Native() +external final CFStringRef kMDAttributeType; + +@ffi.Native() +external final CFStringRef kMDExporterAvaliable; + +@ffi.Native() +external final CFStringRef kMDItemAcquisitionMake; + +@ffi.Native() +external final CFStringRef kMDItemAcquisitionModel; + +@ffi.Native() +external final CFStringRef kMDItemAlbum; + +@ffi.Native() +external final CFStringRef kMDItemAltitude; + +@ffi.Native() +external final CFStringRef kMDItemAperture; + +@ffi.Native() +external final CFStringRef kMDItemAppleLoopDescriptors; + +@ffi.Native() +external final CFStringRef kMDItemAppleLoopsKeyFilterType; + +@ffi.Native() +external final CFStringRef kMDItemAppleLoopsLoopMode; + +@ffi.Native() +external final CFStringRef kMDItemAppleLoopsRootKey; + +@ffi.Native() +external final CFStringRef kMDItemApplicationCategories; + +@ffi.Native() +external final CFStringRef kMDItemAttributeChangeDate; + +@ffi.Native() +external final CFStringRef kMDItemAudiences; + +@ffi.Native() +external final CFStringRef kMDItemAudioBitRate; + +@ffi.Native() +external final CFStringRef kMDItemAudioChannelCount; + +@ffi.Native() +external final CFStringRef kMDItemAudioEncodingApplication; + +@ffi.Native() +external final CFStringRef kMDItemAudioSampleRate; + +@ffi.Native() +external final CFStringRef kMDItemAudioTrackNumber; + +@ffi.Native() +external final CFStringRef kMDItemAuthorAddresses; + +@ffi.Native() +external final CFStringRef kMDItemAuthorEmailAddresses; + +@ffi.Native() +external final CFStringRef kMDItemAuthors; + +@ffi.Native() +external final CFStringRef kMDItemBitsPerSample; + +@ffi.Native() +external final CFStringRef kMDItemCFBundleIdentifier; + +@ffi.Native() +external final CFStringRef kMDItemCameraOwner; + +@ffi.Native() +external final CFStringRef kMDItemCity; + +@ffi.Native() +external final CFStringRef kMDItemCodecs; + +@ffi.Native() +external final CFStringRef kMDItemColorSpace; + +@ffi.Native() +external final CFStringRef kMDItemComment; + +@ffi.Native() +external final CFStringRef kMDItemComposer; + +@ffi.Native() +external final CFStringRef kMDItemContactKeywords; + +@ffi.Native() +external final CFStringRef kMDItemContentCreationDate; + +@ffi.Native() +external final CFStringRef kMDItemContentModificationDate; + +@ffi.Native() +external final CFStringRef kMDItemContentType; + +@ffi.Native() +external final CFStringRef kMDItemContentTypeTree; + +@ffi.Native() +external final CFStringRef kMDItemContributors; + +@ffi.Native() +external final CFStringRef kMDItemCopyright; + +@ffi.Native() +external final CFStringRef kMDItemCountry; + +@ffi.Native() +external final CFStringRef kMDItemCoverage; + +@ffi.Native() +external final CFStringRef kMDItemCreator; + +@ffi.Native() +external final CFStringRef kMDItemDateAdded; + +@ffi.Native() +external final CFStringRef kMDItemDeliveryType; + +@ffi.Native() +external final CFStringRef kMDItemDescription; + +@ffi.Native() +external final CFStringRef kMDItemDirector; + +@ffi.Native() +external final CFStringRef kMDItemDisplayName; + +@ffi.Native() +external final CFStringRef kMDItemDownloadedDate; + +@ffi.Native() +external final CFStringRef kMDItemDueDate; + +@ffi.Native() +external final CFStringRef kMDItemDurationSeconds; + +@ffi.Native() +external final CFStringRef kMDItemEXIFGPSVersion; + +@ffi.Native() +external final CFStringRef kMDItemEXIFVersion; + +@ffi.Native() +external final CFStringRef kMDItemEditors; + +@ffi.Native() +external final CFStringRef kMDItemEmailAddresses; + +@ffi.Native() +external final CFStringRef kMDItemEncodingApplications; + +@ffi.Native() +external final CFStringRef kMDItemExecutableArchitectures; + +@ffi.Native() +external final CFStringRef kMDItemExecutablePlatform; + +@ffi.Native() +external final CFStringRef kMDItemExposureMode; + +@ffi.Native() +external final CFStringRef kMDItemExposureProgram; + +@ffi.Native() +external final CFStringRef kMDItemExposureTimeSeconds; + +@ffi.Native() +external final CFStringRef kMDItemExposureTimeString; + +@ffi.Native() +external final CFStringRef kMDItemFNumber; + +@ffi.Native() +external final CFStringRef kMDItemFSContentChangeDate; + +@ffi.Native() +external final CFStringRef kMDItemFSCreationDate; + +@ffi.Native() +external final CFStringRef kMDItemFSExists; + +@ffi.Native() +external final CFStringRef kMDItemFSHasCustomIcon; + +@ffi.Native() +external final CFStringRef kMDItemFSInvisible; + +@ffi.Native() +external final CFStringRef kMDItemFSIsExtensionHidden; + +@ffi.Native() +external final CFStringRef kMDItemFSIsReadable; + +@ffi.Native() +external final CFStringRef kMDItemFSIsStationery; + +@ffi.Native() +external final CFStringRef kMDItemFSIsWriteable; + +@ffi.Native() +external final CFStringRef kMDItemFSLabel; + +@ffi.Native() +external final CFStringRef kMDItemFSName; + +@ffi.Native() +external final CFStringRef kMDItemFSNodeCount; + +@ffi.Native() +external final CFStringRef kMDItemFSOwnerGroupID; + +@ffi.Native() +external final CFStringRef kMDItemFSOwnerUserID; + +@ffi.Native() +external final CFStringRef kMDItemFSSize; + +@ffi.Native() +external final CFStringRef kMDItemFinderComment; + +@ffi.Native() +external final CFStringRef kMDItemFlashOnOff; + +@ffi.Native() +external final CFStringRef kMDItemFocalLength; + +@ffi.Native() +external final CFStringRef kMDItemFocalLength35mm; + +@ffi.Native() +external final CFStringRef kMDItemFonts; + +@ffi.Native() +external final CFStringRef kMDItemGPSAreaInformation; + +@ffi.Native() +external final CFStringRef kMDItemGPSDOP; + +@ffi.Native() +external final CFStringRef kMDItemGPSDateStamp; + +@ffi.Native() +external final CFStringRef kMDItemGPSDestBearing; + +@ffi.Native() +external final CFStringRef kMDItemGPSDestDistance; + +@ffi.Native() +external final CFStringRef kMDItemGPSDestLatitude; + +@ffi.Native() +external final CFStringRef kMDItemGPSDestLongitude; + +@ffi.Native() +external final CFStringRef kMDItemGPSDifferental; + +@ffi.Native() +external final CFStringRef kMDItemGPSMapDatum; + +@ffi.Native() +external final CFStringRef kMDItemGPSMeasureMode; + +@ffi.Native() +external final CFStringRef kMDItemGPSProcessingMethod; + +@ffi.Native() +external final CFStringRef kMDItemGPSStatus; + +@ffi.Native() +external final CFStringRef kMDItemGPSTrack; + +@ffi.Native() +external final CFStringRef kMDItemGenre; + +@ffi.Native() +external final CFStringRef kMDItemHTMLContent; + +@ffi.Native() +external final CFStringRef kMDItemHasAlphaChannel; + +@ffi.Native() +external final CFStringRef kMDItemHeadline; + +@ffi.Native() +external final CFStringRef kMDItemISOSpeed; + +@ffi.Native() +external final CFStringRef kMDItemIdentifier; + +@ffi.Native() +external final CFStringRef kMDItemImageDirection; + +@ffi.Native() +external final CFStringRef kMDItemInformation; + +@ffi.Native() +external final CFStringRef kMDItemInstantMessageAddresses; + +@ffi.Native() +external final CFStringRef kMDItemInstructions; + +@ffi.Native() +external final CFStringRef kMDItemIsApplicationManaged; + +@ffi.Native() +external final CFStringRef kMDItemIsGeneralMIDISequence; + +@ffi.Native() +external final CFStringRef kMDItemIsLikelyJunk; + +@ffi.Native() +external final CFStringRef kMDItemKeySignature; + +@ffi.Native() +external final CFStringRef kMDItemKeywords; + +@ffi.Native() +external final CFStringRef kMDItemKind; + +@ffi.Native() +external final CFStringRef kMDItemLabelID; + +@ffi.Native() +external final CFStringRef kMDItemLabelIcon; + +@ffi.Native() +external final CFStringRef kMDItemLabelKind; + +@ffi.Native() +external final CFStringRef kMDItemLabelUUID; + +@ffi.Native() +external final CFStringRef kMDItemLanguages; + +@ffi.Native() +external final CFStringRef kMDItemLastUsedDate; + +@ffi.Native() +external final CFStringRef kMDItemLatitude; + +@ffi.Native() +external final CFStringRef kMDItemLayerNames; + +@ffi.Native() +external final CFStringRef kMDItemLensModel; + +@ffi.Native() +external final CFStringRef kMDItemLongitude; + +@ffi.Native() +external final CFStringRef kMDItemLyricist; + +@ffi.Native() +external final CFStringRef kMDItemMaxAperture; + +@ffi.Native() +external final CFStringRef kMDItemMediaExtensions; + +@ffi.Native() +external final CFStringRef kMDItemMediaTypes; + +@ffi.Native() +external final CFStringRef kMDItemMeteringMode; + +@ffi.Native() +external final CFStringRef kMDItemMusicalGenre; + +@ffi.Native() +external final CFStringRef kMDItemMusicalInstrumentCategory; + +@ffi.Native() +external final CFStringRef kMDItemMusicalInstrumentName; + +@ffi.Native() +external final CFStringRef kMDItemNamedLocation; + +@ffi.Native() +external final CFStringRef kMDItemNumberOfPages; + +@ffi.Native() +external final CFStringRef kMDItemOrganizations; + +@ffi.Native() +external final CFStringRef kMDItemOrientation; + +@ffi.Native() +external final CFStringRef kMDItemOriginalFormat; + +@ffi.Native() +external final CFStringRef kMDItemOriginalSource; + +@ffi.Native() +external final CFStringRef kMDItemPageHeight; + +@ffi.Native() +external final CFStringRef kMDItemPageWidth; + +@ffi.Native() +external final CFStringRef kMDItemParticipants; + +@ffi.Native() +external final CFStringRef kMDItemPath; + +@ffi.Native() +external final CFStringRef kMDItemPerformers; + +@ffi.Native() +external final CFStringRef kMDItemPhoneNumbers; + +@ffi.Native() +external final CFStringRef kMDItemPixelCount; + +@ffi.Native() +external final CFStringRef kMDItemPixelHeight; + +@ffi.Native() +external final CFStringRef kMDItemPixelWidth; + +@ffi.Native() +external final CFStringRef kMDItemProducer; + +@ffi.Native() +external final CFStringRef kMDItemProfileName; + +@ffi.Native() +external final CFStringRef kMDItemProjects; + +@ffi.Native() +external final CFStringRef kMDItemPublishers; + +@ffi.Native() +external final CFStringRef kMDItemRecipientAddresses; + +@ffi.Native() +external final CFStringRef kMDItemRecipientEmailAddresses; + +@ffi.Native() +external final CFStringRef kMDItemRecipients; + +@ffi.Native() +external final CFStringRef kMDItemRecordingDate; + +@ffi.Native() +external final CFStringRef kMDItemRecordingYear; + +@ffi.Native() +external final CFStringRef kMDItemRedEyeOnOff; + +@ffi.Native() +external final CFStringRef kMDItemResolutionHeightDPI; + +@ffi.Native() +external final CFStringRef kMDItemResolutionWidthDPI; + +@ffi.Native() +external final CFStringRef kMDItemRights; + +@ffi.Native() +external final CFStringRef kMDItemSecurityMethod; + +@ffi.Native() +external final CFStringRef kMDItemSpeed; + +@ffi.Native() +external final CFStringRef kMDItemStarRating; + +@ffi.Native() +external final CFStringRef kMDItemStateOrProvince; + +@ffi.Native() +external final CFStringRef kMDItemStreamable; + +@ffi.Native() +external final CFStringRef kMDItemSubject; + +@ffi.Native() +external final CFStringRef kMDItemSupportFileType; + +@ffi.Native() +external final CFStringRef kMDItemTempo; + +@ffi.Native() +external final CFStringRef kMDItemTextContent; + +@ffi.Native() +external final CFStringRef kMDItemTheme; + +@ffi.Native() +external final CFStringRef kMDItemTimeSignature; + +@ffi.Native() +external final CFStringRef kMDItemTimestamp; + +@ffi.Native() +external final CFStringRef kMDItemTitle; + +@ffi.Native() +external final CFStringRef kMDItemTotalBitRate; + +@ffi.Native() +external final CFStringRef kMDItemURL; + +@ffi.Native() +external final CFStringRef kMDItemVersion; + +@ffi.Native() +external final CFStringRef kMDItemVideoBitRate; + +@ffi.Native() +external final CFStringRef kMDItemWhereFroms; + +@ffi.Native() +external final CFStringRef kMDItemWhiteBalance; + +@ffi.Native() +external final CFStringRef kMDItemXMPCredit; + +@ffi.Native() +external final CFStringRef kMDItemXMPDigitalSourceType; + +@ffi.Native() +external final CFStringRef kMDLabelAddedNotification; + +@ffi.Native() +external CFStringRef kMDLabelBundleURL; + +@ffi.Native() +external final CFStringRef kMDLabelChangedNotification; + +@ffi.Native() +external CFStringRef kMDLabelContentChangeDate; + +@ffi.Native() +external CFStringRef kMDLabelDisplayName; + +@ffi.Native() +external CFStringRef kMDLabelIconData; + +@ffi.Native() +external CFStringRef kMDLabelIconUUID; + +@ffi.Native() +external CFStringRef kMDLabelIsMutuallyExclusiveSetMember; + +@ffi.Native() +external CFStringRef kMDLabelKind; + +@ffi.Native() +external CFStringRef kMDLabelKindIsMutuallyExclusiveSetKey; + +@ffi.Native() +external CFStringRef kMDLabelKindVisibilityKey; + +@ffi.Native() +external final CFStringRef kMDLabelRemovedNotification; + +@ffi.Native() +external CFStringRef kMDLabelSetsFinderColor; + +@ffi.Native() +external CFStringRef kMDLabelUUID; + +@ffi.Native() +external CFStringRef kMDLabelVisibility; + +@ffi.Native() +external CFStringRef kMDPrivateVisibility; + +@ffi.Native() +external CFStringRef kMDPublicVisibility; + +@ffi.Native() +external final CFStringRef kMDQueryDidFinishNotification; + +@ffi.Native() +external final CFStringRef kMDQueryDidUpdateNotification; + +@ffi.Native() +external final CFStringRef kMDQueryProgressNotification; + +@ffi.Native() +external final CFStringRef kMDQueryResultContentRelevance; + +@ffi.Native() +external final CFStringRef kMDQueryScopeAllIndexed; + +@ffi.Native() +external final CFStringRef kMDQueryScopeComputer; + +@ffi.Native() +external final CFStringRef kMDQueryScopeComputerIndexed; + +@ffi.Native() +external final CFStringRef kMDQueryScopeHome; + +@ffi.Native() +external final CFStringRef kMDQueryScopeNetwork; + +@ffi.Native() +external final CFStringRef kMDQueryScopeNetworkIndexed; + +@ffi.Native() +external final CFStringRef kMDQueryUpdateAddedItems; + +@ffi.Native() +external final CFStringRef kMDQueryUpdateChangedItems; + +@ffi.Native() +external final CFStringRef kMDQueryUpdateRemovedItems; + +@ffi.Native() +external final CFStringRef kSKEndTermChars; + +@ffi.Native() +external final CFStringRef kSKLanguageTypes; + +@ffi.Native() +external final CFStringRef kSKMaximumTerms; + +@ffi.Native() +external final CFStringRef kSKMinTermLength; + +@ffi.Native() +external final CFStringRef kSKProximityIndexing; + +@ffi.Native() +external final CFStringRef kSKStartTermChars; + +@ffi.Native() +external final CFStringRef kSKStopWords; + +@ffi.Native() +external final CFStringRef kSKSubstitutions; + +@ffi.Native() +external final CFStringRef kSKTermChars; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_3DES_fallback; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_ATSv1; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_ATSv1_noPFS; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_RC4_fallback; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_TLSv1_3DES_fallback; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_TLSv1_RC4_fallback; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_TLSv1_fallback; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_anonymous; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_default; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_legacy; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_legacy_DHE; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_standard; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationAny; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationChangeACL; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationChangeOwner; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationDecrypt; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationDelete; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationDerive; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationEncrypt; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationExportClear; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationExportWrapped; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationGenKey; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationImportClear; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationImportWrapped; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationIntegrity; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainCreate; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainDelete; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainItemDelete; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainItemInsert; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainItemModify; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainItemRead; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationLogin; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationMAC; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationPartitionID; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationSign; + +@ffi.Native() +external CFStringRef kSecAttrAccess; + +@ffi.Native() +external CFStringRef kSecAttrAccessControl; + +@ffi.Native() +external CFStringRef kSecAttrAccessGroup; + +@ffi.Native() +external CFStringRef kSecAttrAccessGroupToken; + +@ffi.Native() +external CFStringRef kSecAttrAccessible; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleAfterFirstUnlock; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleAlways; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleAlwaysThisDeviceOnly; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleWhenUnlocked; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleWhenUnlockedThisDeviceOnly; + +@ffi.Native() +external CFStringRef kSecAttrAccount; + +@ffi.Native() +external CFStringRef kSecAttrApplicationLabel; + +@ffi.Native() +external CFStringRef kSecAttrApplicationTag; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationType; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeDPA; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeDefault; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeHTMLForm; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeHTTPBasic; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeHTTPDigest; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeMSN; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeNTLM; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeRPA; + +@ffi.Native() +external CFStringRef kSecAttrCanDecrypt; + +@ffi.Native() +external CFStringRef kSecAttrCanDerive; + +@ffi.Native() +external CFStringRef kSecAttrCanEncrypt; + +@ffi.Native() +external CFStringRef kSecAttrCanSign; + +@ffi.Native() +external CFStringRef kSecAttrCanUnwrap; + +@ffi.Native() +external CFStringRef kSecAttrCanVerify; + +@ffi.Native() +external CFStringRef kSecAttrCanWrap; + +@ffi.Native() +external CFStringRef kSecAttrCertificateEncoding; + +@ffi.Native() +external CFStringRef kSecAttrCertificateType; + +@ffi.Native() +external CFStringRef kSecAttrComment; + +@ffi.Native() +external CFStringRef kSecAttrCreationDate; + +@ffi.Native() +external CFStringRef kSecAttrCreator; + +@ffi.Native() +external CFStringRef kSecAttrDescription; + +@ffi.Native() +external CFStringRef kSecAttrEffectiveKeySize; + +@ffi.Native() +external CFStringRef kSecAttrGeneric; + +@ffi.Native() +external CFStringRef kSecAttrIsExtractable; + +@ffi.Native() +external CFStringRef kSecAttrIsInvisible; + +@ffi.Native() +external CFStringRef kSecAttrIsNegative; + +@ffi.Native() +external CFStringRef kSecAttrIsPermanent; + +@ffi.Native() +external CFStringRef kSecAttrIsSensitive; + +@ffi.Native() +external CFStringRef kSecAttrIssuer; + +@ffi.Native() +external CFStringRef kSecAttrKeyClass; + +@ffi.Native() +external CFStringRef kSecAttrKeyClassPrivate; + +@ffi.Native() +external CFStringRef kSecAttrKeyClassPublic; + +@ffi.Native() +external CFStringRef kSecAttrKeyClassSymmetric; + +@ffi.Native() +external CFStringRef kSecAttrKeySizeInBits; + +@ffi.Native() +external CFStringRef kSecAttrKeyType; + +@ffi.Native() +external CFStringRef kSecAttrKeyType3DES; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeAES; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeCAST; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeDES; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeDSA; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeEC; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeECDSA; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeECSECPrimeRandom; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeRC2; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeRC4; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeRSA; + +@ffi.Native() +external CFStringRef kSecAttrLabel; + +@ffi.Native() +external CFStringRef kSecAttrModificationDate; + +@ffi.Native() +external CFStringRef kSecAttrPRF; + +@ffi.Native() +external CFStringRef kSecAttrPRFHmacAlgSHA1; + +@ffi.Native() +external CFStringRef kSecAttrPRFHmacAlgSHA224; + +@ffi.Native() +external CFStringRef kSecAttrPRFHmacAlgSHA256; + +@ffi.Native() +external CFStringRef kSecAttrPRFHmacAlgSHA384; + +@ffi.Native() +external CFStringRef kSecAttrPRFHmacAlgSHA512; + +@ffi.Native() +external CFStringRef kSecAttrPath; + +@ffi.Native() +external CFStringRef kSecAttrPersistantReference; + +@ffi.Native() +external CFStringRef kSecAttrPersistentReference; + +@ffi.Native() +external CFStringRef kSecAttrPort; + +@ffi.Native() +external CFStringRef kSecAttrProtocol; + +@ffi.Native() +external CFStringRef kSecAttrProtocolAFP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolAppleTalk; + +@ffi.Native() +external CFStringRef kSecAttrProtocolDAAP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolEPPC; + +@ffi.Native() +external CFStringRef kSecAttrProtocolFTP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolFTPAccount; + +@ffi.Native() +external CFStringRef kSecAttrProtocolFTPProxy; + +@ffi.Native() +external CFStringRef kSecAttrProtocolFTPS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolHTTP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolHTTPProxy; + +@ffi.Native() +external CFStringRef kSecAttrProtocolHTTPS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolHTTPSProxy; + +@ffi.Native() +external CFStringRef kSecAttrProtocolIMAP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolIMAPS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolIPP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolIRC; + +@ffi.Native() +external CFStringRef kSecAttrProtocolIRCS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolLDAP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolLDAPS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolNNTP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolNNTPS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolPOP3; + +@ffi.Native() +external CFStringRef kSecAttrProtocolPOP3S; + +@ffi.Native() +external CFStringRef kSecAttrProtocolRTSP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolRTSPProxy; + +@ffi.Native() +external CFStringRef kSecAttrProtocolSMB; + +@ffi.Native() +external CFStringRef kSecAttrProtocolSMTP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolSOCKS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolSSH; + +@ffi.Native() +external CFStringRef kSecAttrProtocolTelnet; + +@ffi.Native() +external CFStringRef kSecAttrProtocolTelnetS; + +@ffi.Native() +external CFStringRef kSecAttrPublicKeyHash; + +@ffi.Native() +external CFStringRef kSecAttrRounds; + +@ffi.Native() +external CFStringRef kSecAttrSalt; + +@ffi.Native() +external CFStringRef kSecAttrSecurityDomain; + +@ffi.Native() +external CFStringRef kSecAttrSerialNumber; + +@ffi.Native() +external CFStringRef kSecAttrServer; + +@ffi.Native() +external CFStringRef kSecAttrService; + +@ffi.Native() +external CFStringRef kSecAttrSubject; + +@ffi.Native() +external CFStringRef kSecAttrSubjectKeyID; + +@ffi.Native() +external CFStringRef kSecAttrSyncViewHint; + +@ffi.Native() +external CFStringRef kSecAttrSynchronizable; + +@ffi.Native() +external CFStringRef kSecAttrSynchronizableAny; + +@ffi.Native() +external CFStringRef kSecAttrTokenID; + +@ffi.Native() +external CFStringRef kSecAttrTokenIDSecureEnclave; + +@ffi.Native() +external CFStringRef kSecAttrType; + +@ffi.Native() +external CFStringRef kSecBase32Encoding; + +@ffi.Native() +external CFStringRef kSecBase64Encoding; + +@ffi.Native() +external CFStringRef kSecCFErrorArchitecture; + +@ffi.Native() +external CFStringRef kSecCFErrorGuestAttributes; + +@ffi.Native() +external CFStringRef kSecCFErrorInfoPlist; + +@ffi.Native() +external CFStringRef kSecCFErrorPath; + +@ffi.Native() +external CFStringRef kSecCFErrorPattern; + +@ffi.Native() +external CFStringRef kSecCFErrorRequirementSyntax; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceAdded; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceAltered; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceMissing; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceRecursive; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceSeal; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceSideband; + +@ffi.Native() +external CFStringRef kSecClass; + +@ffi.Native() +external CFStringRef kSecClassCertificate; + +@ffi.Native() +external CFStringRef kSecClassGenericPassword; + +@ffi.Native() +external CFStringRef kSecClassIdentity; + +@ffi.Native() +external CFStringRef kSecClassInternetPassword; + +@ffi.Native() +external CFStringRef kSecClassKey; + +@ffi.Native() +external CFStringRef kSecCodeAttributeArchitecture; + +@ffi.Native() +external CFStringRef kSecCodeAttributeBundleVersion; + +@ffi.Native() +external CFStringRef kSecCodeAttributeSubarchitecture; + +@ffi.Native() +external CFStringRef kSecCodeAttributeUniversalFileOffset; + +@ffi.Native() +external CFStringRef kSecCodeInfoCMS; + +@ffi.Native() +external CFStringRef kSecCodeInfoCdHashes; + +@ffi.Native() +external CFStringRef kSecCodeInfoCertificates; + +@ffi.Native() +external CFStringRef kSecCodeInfoChangedFiles; + +@ffi.Native() +external CFStringRef kSecCodeInfoDefaultDesignatedLightweightCodeRequirement; + +@ffi.Native() +external CFStringRef kSecCodeInfoDesignatedRequirement; + +@ffi.Native() +external CFStringRef kSecCodeInfoDigestAlgorithm; + +@ffi.Native() +external CFStringRef kSecCodeInfoDigestAlgorithms; + +@ffi.Native() +external CFStringRef kSecCodeInfoEntitlements; + +@ffi.Native() +external CFStringRef kSecCodeInfoEntitlementsDict; + +@ffi.Native() +external CFStringRef kSecCodeInfoFlags; + +@ffi.Native() +external CFStringRef kSecCodeInfoFormat; + +@ffi.Native() +external CFStringRef kSecCodeInfoIdentifier; + +@ffi.Native() +external CFStringRef kSecCodeInfoImplicitDesignatedRequirement; + +@ffi.Native() +external CFStringRef kSecCodeInfoMainExecutable; + +@ffi.Native() +external CFStringRef kSecCodeInfoPList; + +@ffi.Native() +external CFStringRef kSecCodeInfoPlatformIdentifier; + +@ffi.Native() +external CFStringRef kSecCodeInfoRequirementData; + +@ffi.Native() +external CFStringRef kSecCodeInfoRequirements; + +@ffi.Native() +external CFStringRef kSecCodeInfoRuntimeVersion; + +@ffi.Native() +external CFStringRef kSecCodeInfoSource; + +@ffi.Native() +external CFStringRef kSecCodeInfoStapledNotarizationTicket; + +@ffi.Native() +external CFStringRef kSecCodeInfoStatus; + +@ffi.Native() +external CFStringRef kSecCodeInfoTeamIdentifier; + +@ffi.Native() +external CFStringRef kSecCodeInfoTime; + +@ffi.Native() +external CFStringRef kSecCodeInfoTimestamp; + +@ffi.Native() +external CFStringRef kSecCodeInfoTrust; + +@ffi.Native() +external CFStringRef kSecCodeInfoUnique; + +@ffi.Native() +external CFStringRef kSecCompressionRatio; + +@ffi.Native() +external CFStringRef kSecDecodeTypeAttribute; + +@ffi.Native() +external CFStringRef kSecDigestHMACKeyAttribute; + +@ffi.Native() +external CFStringRef kSecDigestHMACMD5; + +@ffi.Native() +external CFStringRef kSecDigestHMACSHA1; + +@ffi.Native() +external CFStringRef kSecDigestHMACSHA2; + +@ffi.Native() +external CFStringRef kSecDigestLengthAttribute; + +@ffi.Native() +external CFStringRef kSecDigestMD2; + +@ffi.Native() +external CFStringRef kSecDigestMD4; + +@ffi.Native() +external CFStringRef kSecDigestMD5; + +@ffi.Native() +external CFStringRef kSecDigestSHA1; + +@ffi.Native() +external CFStringRef kSecDigestSHA2; + +@ffi.Native() +external CFStringRef kSecDigestTypeAttribute; + +@ffi.Native() +external CFStringRef kSecEncodeLineLengthAttribute; + +@ffi.Native() +external CFStringRef kSecEncodeTypeAttribute; + +@ffi.Native() +external CFStringRef kSecEncryptKey; + +@ffi.Native() +external CFStringRef kSecEncryptionMode; + +@ffi.Native() +external CFStringRef kSecGuestAttributeArchitecture; + +@ffi.Native() +external CFStringRef kSecGuestAttributeAudit; + +@ffi.Native() +external CFStringRef kSecGuestAttributeCanonical; + +@ffi.Native() +external CFStringRef kSecGuestAttributeDynamicCode; + +@ffi.Native() +external CFStringRef kSecGuestAttributeDynamicCodeInfoPlist; + +@ffi.Native() +external CFStringRef kSecGuestAttributeHash; + +@ffi.Native() +external CFStringRef kSecGuestAttributeMachPort; + +@ffi.Native() +external CFStringRef kSecGuestAttributePid; + +@ffi.Native() +external CFStringRef kSecGuestAttributeSubarchitecture; + +@ffi.Native() +external CFStringRef kSecIVKey; + +@ffi.Native() +external CFStringRef kSecIdentityDomainDefault; + +@ffi.Native() +external CFStringRef kSecIdentityDomainKerberosKDC; + +@ffi.Native() +external CFStringRef kSecImportExportAccess; + +@ffi.Native() +external CFStringRef kSecImportExportKeychain; + +@ffi.Native() +external CFStringRef kSecImportExportPassphrase; + +@ffi.Native() +external CFStringRef kSecImportItemCertChain; + +@ffi.Native() +external CFStringRef kSecImportItemIdentity; + +@ffi.Native() +external CFStringRef kSecImportItemKeyID; + +@ffi.Native() +external CFStringRef kSecImportItemLabel; + +@ffi.Native() +external CFStringRef kSecImportItemTrust; + +@ffi.Native() +external CFStringRef kSecImportToMemoryOnly; + +@ffi.Native() +external CFStringRef kSecInputIsAttributeName; + +@ffi.Native() +external final CFStringRef kSecInputIsDigest; + +@ffi.Native() +external CFStringRef kSecInputIsPlainText; + +@ffi.Native() +external CFStringRef kSecInputIsRaw; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactor; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandard; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureRFC4754; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA224AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA256AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA384AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA512AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA1AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorX963SHA224AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorX963SHA256AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorX963SHA384AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorX963SHA512AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA224AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA384AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA512AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA1AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardX963SHA224AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardX963SHA256AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardX963SHA384AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardX963SHA512AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionPKCS1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionRaw; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15Raw; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureRaw; + +@ffi.Native() +external CFStringRef kSecKeyAttributeName; + +@ffi.Native() +external SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterRequestedSize; + +@ffi.Native() +external SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterSharedInfo; + +@ffi.Native() +external CFStringRef kSecLineLength64; + +@ffi.Native() +external CFStringRef kSecLineLength76; + +@ffi.Native() +external CFStringRef kSecMatchCaseInsensitive; + +@ffi.Native() +external CFStringRef kSecMatchDiacriticInsensitive; + +@ffi.Native() +external CFStringRef kSecMatchEmailAddressIfPresent; + +@ffi.Native() +external CFStringRef kSecMatchHostOrSubdomainOfHost; + +@ffi.Native() +external CFStringRef kSecMatchIssuers; + +@ffi.Native() +external CFStringRef kSecMatchItemList; + +@ffi.Native() +external CFStringRef kSecMatchLimit; + +@ffi.Native() +external CFStringRef kSecMatchLimitAll; + +@ffi.Native() +external CFStringRef kSecMatchLimitOne; + +@ffi.Native() +external CFStringRef kSecMatchPolicy; + +@ffi.Native() +external CFStringRef kSecMatchSearchList; + +@ffi.Native() +external CFStringRef kSecMatchSubjectContains; + +@ffi.Native() +external CFStringRef kSecMatchSubjectEndsWith; + +@ffi.Native() +external CFStringRef kSecMatchSubjectStartsWith; + +@ffi.Native() +external CFStringRef kSecMatchSubjectWholeString; + +@ffi.Native() +external CFStringRef kSecMatchTrustedOnly; + +@ffi.Native() +external CFStringRef kSecMatchValidOnDate; + +@ffi.Native() +external CFStringRef kSecMatchWidthInsensitive; + +@ffi.Native() +external CFStringRef kSecModeCBCKey; + +@ffi.Native() +external CFStringRef kSecModeCFBKey; + +@ffi.Native() +external CFStringRef kSecModeECBKey; + +@ffi.Native() +external CFStringRef kSecModeNoneKey; + +@ffi.Native() +external CFStringRef kSecModeOFBKey; + +@ffi.Native() +external CFStringRef kSecOAEPEncodingParametersAttributeName; + +@ffi.Native() +external CFStringRef kSecOAEPMGF1DigestAlgorithmAttributeName; + +@ffi.Native() +external CFStringRef kSecOAEPMessageLengthAttributeName; + +@ffi.Native() +external CFStringRef kSecOIDADC_CERT_POLICY; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_CERT_POLICY; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_CODE_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_CODE_SIGNING_DEV; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_ICHAT_ENCRYPTION; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_ICHAT_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_RESOURCE_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_SYSTEM_IDENTITY; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_AAI_INTERMEDIATE; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_ADC_APPLE_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_ADC_DEV_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_APPLEID_INTERMEDIATE; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_APPLE_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_CODE_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_INTERMEDIATE_MARKER; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_ITMS_INTERMEDIATE; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_WWDR_INTERMEDIATE; + +@ffi.Native() +external CFStringRef kSecOIDAuthorityInfoAccess; + +@ffi.Native() +external CFStringRef kSecOIDAuthorityKeyIdentifier; + +@ffi.Native() +external CFStringRef kSecOIDBasicConstraints; + +@ffi.Native() +external CFStringRef kSecOIDBiometricInfo; + +@ffi.Native() +external CFStringRef kSecOIDCSSMKeyStruct; + +@ffi.Native() +external CFStringRef kSecOIDCertIssuer; + +@ffi.Native() +external CFStringRef kSecOIDCertificatePolicies; + +@ffi.Native() +external CFStringRef kSecOIDClientAuth; + +@ffi.Native() +external CFStringRef kSecOIDCollectiveStateProvinceName; + +@ffi.Native() +external CFStringRef kSecOIDCollectiveStreetAddress; + +@ffi.Native() +external CFStringRef kSecOIDCommonName; + +@ffi.Native() +external CFStringRef kSecOIDCountryName; + +@ffi.Native() +external CFStringRef kSecOIDCrlDistributionPoints; + +@ffi.Native() +external CFStringRef kSecOIDCrlNumber; + +@ffi.Native() +external CFStringRef kSecOIDCrlReason; + +@ffi.Native() +external CFStringRef kSecOIDDOTMAC_CERT_EMAIL_ENCRYPT; + +@ffi.Native() +external CFStringRef kSecOIDDOTMAC_CERT_EMAIL_SIGN; + +@ffi.Native() +external CFStringRef kSecOIDDOTMAC_CERT_EXTENSION; + +@ffi.Native() +external CFStringRef kSecOIDDOTMAC_CERT_IDENTITY; + +@ffi.Native() +external CFStringRef kSecOIDDOTMAC_CERT_POLICY; + +@ffi.Native() +external CFStringRef kSecOIDDeltaCrlIndicator; + +@ffi.Native() +external CFStringRef kSecOIDDescription; + +@ffi.Native() +external CFStringRef kSecOIDEKU_IPSec; + +@ffi.Native() +external CFStringRef kSecOIDEmailAddress; + +@ffi.Native() +external CFStringRef kSecOIDEmailProtection; + +@ffi.Native() +external CFStringRef kSecOIDExtendedKeyUsage; + +@ffi.Native() +external CFStringRef kSecOIDExtendedKeyUsageAny; + +@ffi.Native() +external CFStringRef kSecOIDExtendedUseCodeSigning; + +@ffi.Native() +external CFStringRef kSecOIDGivenName; + +@ffi.Native() +external CFStringRef kSecOIDHoldInstructionCode; + +@ffi.Native() +external CFStringRef kSecOIDInvalidityDate; + +@ffi.Native() +external CFStringRef kSecOIDIssuerAltName; + +@ffi.Native() +external CFStringRef kSecOIDIssuingDistributionPoint; + +@ffi.Native() +external CFStringRef kSecOIDIssuingDistributionPoints; + +@ffi.Native() +external CFStringRef kSecOIDKERBv5_PKINIT_KP_CLIENT_AUTH; + +@ffi.Native() +external CFStringRef kSecOIDKERBv5_PKINIT_KP_KDC; + +@ffi.Native() +external CFStringRef kSecOIDKeyUsage; + +@ffi.Native() +external CFStringRef kSecOIDLocalityName; + +@ffi.Native() +external CFStringRef kSecOIDMS_NTPrincipalName; + +@ffi.Native() +external CFStringRef kSecOIDMicrosoftSGC; + +@ffi.Native() +external CFStringRef kSecOIDNameConstraints; + +@ffi.Native() +external CFStringRef kSecOIDNetscapeCertSequence; + +@ffi.Native() +external CFStringRef kSecOIDNetscapeCertType; + +@ffi.Native() +external CFStringRef kSecOIDNetscapeSGC; + +@ffi.Native() +external CFStringRef kSecOIDOCSPSigning; + +@ffi.Native() +external CFStringRef kSecOIDOrganizationName; + +@ffi.Native() +external CFStringRef kSecOIDOrganizationalUnitName; + +@ffi.Native() +external CFStringRef kSecOIDPolicyConstraints; + +@ffi.Native() +external CFStringRef kSecOIDPolicyMappings; + +@ffi.Native() +external CFStringRef kSecOIDPrivateKeyUsagePeriod; + +@ffi.Native() +external CFStringRef kSecOIDQC_Statements; + +@ffi.Native() +external CFStringRef kSecOIDSRVName; + +@ffi.Native() +external CFStringRef kSecOIDSerialNumber; + +@ffi.Native() +external CFStringRef kSecOIDServerAuth; + +@ffi.Native() +external CFStringRef kSecOIDStateProvinceName; + +@ffi.Native() +external CFStringRef kSecOIDStreetAddress; + +@ffi.Native() +external CFStringRef kSecOIDSubjectAltName; + +@ffi.Native() +external CFStringRef kSecOIDSubjectDirectoryAttributes; + +@ffi.Native() +external CFStringRef kSecOIDSubjectEmailAddress; + +@ffi.Native() +external CFStringRef kSecOIDSubjectInfoAccess; + +@ffi.Native() +external CFStringRef kSecOIDSubjectKeyIdentifier; + +@ffi.Native() +external CFStringRef kSecOIDSubjectPicture; + +@ffi.Native() +external CFStringRef kSecOIDSubjectSignatureBitmap; + +@ffi.Native() +external CFStringRef kSecOIDSurname; + +@ffi.Native() +external CFStringRef kSecOIDTimeStamping; + +@ffi.Native() +external CFStringRef kSecOIDTitle; + +@ffi.Native() +external CFStringRef kSecOIDUseExemptions; + +@ffi.Native() +external CFStringRef kSecOIDX509V1CertificateIssuerUniqueId; + +@ffi.Native() +external CFStringRef kSecOIDX509V1CertificateSubjectUniqueId; + +@ffi.Native() +external CFStringRef kSecOIDX509V1IssuerName; + +@ffi.Native() +external CFStringRef kSecOIDX509V1IssuerNameCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V1IssuerNameLDAP; + +@ffi.Native() +external CFStringRef kSecOIDX509V1IssuerNameStd; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SerialNumber; + +@ffi.Native() +external CFStringRef kSecOIDX509V1Signature; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SignatureAlgorithm; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SignatureAlgorithmParameters; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SignatureAlgorithmTBS; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SignatureCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SignatureStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectName; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectNameCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectNameLDAP; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectNameStd; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectPublicKey; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectPublicKeyAlgorithm; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectPublicKeyAlgorithmParameters; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectPublicKeyCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V1ValidityNotAfter; + +@ffi.Native() +external CFStringRef kSecOIDX509V1ValidityNotBefore; + +@ffi.Native() +external CFStringRef kSecOIDX509V1Version; + +@ffi.Native() +external CFStringRef kSecOIDX509V3Certificate; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionCritical; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionId; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionType; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionValue; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionsCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionsStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateNumberOfExtensions; + +@ffi.Native() +external CFStringRef kSecOIDX509V3SignedCertificate; + +@ffi.Native() +external CFStringRef kSecOIDX509V3SignedCertificateCStruct; + +@ffi.Native() +external CFStringRef kSecPaddingKey; + +@ffi.Native() +external CFStringRef kSecPaddingNoneKey; + +@ffi.Native() +external CFStringRef kSecPaddingOAEPKey; + +@ffi.Native() +external CFStringRef kSecPaddingPKCS1Key; + +@ffi.Native() +external CFStringRef kSecPaddingPKCS5Key; + +@ffi.Native() +external CFStringRef kSecPaddingPKCS7Key; + +@ffi.Native() +external CFStringRef kSecPolicyAppleCodeSigning; + +@ffi.Native() +external CFStringRef kSecPolicyAppleEAP; + +@ffi.Native() +external CFStringRef kSecPolicyAppleEAPClient; + +@ffi.Native() +external CFStringRef kSecPolicyAppleEAPServer; + +@ffi.Native() +external CFStringRef kSecPolicyAppleIDValidation; + +@ffi.Native() +external CFStringRef kSecPolicyAppleIPSecClient; + +@ffi.Native() +external CFStringRef kSecPolicyAppleIPSecServer; + +@ffi.Native() +external CFStringRef kSecPolicyAppleIPsec; + +@ffi.Native() +external CFStringRef kSecPolicyApplePKINITClient; + +@ffi.Native() +external CFStringRef kSecPolicyApplePKINITServer; + +@ffi.Native() +external CFStringRef kSecPolicyApplePassbookSigning; + +@ffi.Native() +external CFStringRef kSecPolicyApplePayIssuerEncryption; + +@ffi.Native() +external CFStringRef kSecPolicyAppleRevocation; + +@ffi.Native() +external CFStringRef kSecPolicyAppleSMIME; + +@ffi.Native() +external CFStringRef kSecPolicyAppleSSL; + +@ffi.Native() +external CFStringRef kSecPolicyAppleSSLClient; + +@ffi.Native() +external CFStringRef kSecPolicyAppleSSLServer; + +@ffi.Native() +external CFStringRef kSecPolicyAppleTimeStamping; + +@ffi.Native() +external CFStringRef kSecPolicyAppleX509Basic; + +@ffi.Native() +external CFStringRef kSecPolicyAppleiChat; + +@ffi.Native() +external CFStringRef kSecPolicyClient; + +@ffi.Native() +external CFStringRef kSecPolicyKU_CRLSign; + +@ffi.Native() +external CFStringRef kSecPolicyKU_DataEncipherment; + +@ffi.Native() +external CFStringRef kSecPolicyKU_DecipherOnly; + +@ffi.Native() +external CFStringRef kSecPolicyKU_DigitalSignature; + +@ffi.Native() +external CFStringRef kSecPolicyKU_EncipherOnly; + +@ffi.Native() +external CFStringRef kSecPolicyKU_KeyAgreement; + +@ffi.Native() +external CFStringRef kSecPolicyKU_KeyCertSign; + +@ffi.Native() +external CFStringRef kSecPolicyKU_KeyEncipherment; + +@ffi.Native() +external CFStringRef kSecPolicyKU_NonRepudiation; + +@ffi.Native() +external CFStringRef kSecPolicyMacAppStoreReceipt; + +@ffi.Native() +external CFStringRef kSecPolicyName; + +@ffi.Native() +external CFStringRef kSecPolicyOid; + +@ffi.Native() +external CFStringRef kSecPolicyRevocationFlags; + +@ffi.Native() +external CFStringRef kSecPolicyTeamIdentifier; + +@ffi.Native() +external CFStringRef kSecPrivateKeyAttrs; + +@ffi.Native() +external CFStringRef kSecPropertyKeyLabel; + +@ffi.Native() +external CFStringRef kSecPropertyKeyLocalizedLabel; + +@ffi.Native() +external CFStringRef kSecPropertyKeyType; + +@ffi.Native() +external CFStringRef kSecPropertyKeyValue; + +@ffi.Native() +external CFStringRef kSecPropertyTypeArray; + +@ffi.Native() +external CFStringRef kSecPropertyTypeData; + +@ffi.Native() +external CFStringRef kSecPropertyTypeDate; + +@ffi.Native() +external CFStringRef kSecPropertyTypeError; + +@ffi.Native() +external CFStringRef kSecPropertyTypeNumber; + +@ffi.Native() +external CFStringRef kSecPropertyTypeSection; + +@ffi.Native() +external CFStringRef kSecPropertyTypeString; + +@ffi.Native() +external CFStringRef kSecPropertyTypeSuccess; + +@ffi.Native() +external CFStringRef kSecPropertyTypeTitle; + +@ffi.Native() +external CFStringRef kSecPropertyTypeURL; + +@ffi.Native() +external CFStringRef kSecPropertyTypeWarning; + +@ffi.Native() +external CFStringRef kSecPublicKeyAttrs; + +@ffi.Native() +external SecRandomRef kSecRandomDefault; + +@ffi.Native() +external CFStringRef kSecReturnAttributes; + +@ffi.Native() +external CFStringRef kSecReturnData; + +@ffi.Native() +external CFStringRef kSecReturnPersistentRef; + +@ffi.Native() +external CFStringRef kSecReturnRef; + +@ffi.Native() +external CFStringRef kSecSharedPassword; + +@ffi.Native() +external final CFStringRef kSecSignatureAttributeName; + +@ffi.Native() +external CFStringRef kSecTransformAbortAttributeName; + +@ffi.Native() +external CFStringRef kSecTransformAbortOriginatorKey; + +@ffi.Native() +external CFStringRef kSecTransformActionAttributeNotification; + +@ffi.Native() +external CFStringRef kSecTransformActionAttributeValidation; + +@ffi.Native() +external CFStringRef kSecTransformActionCanExecute; + +@ffi.Native() +external CFStringRef kSecTransformActionExternalizeExtraData; + +@ffi.Native() +external CFStringRef kSecTransformActionFinalize; + +@ffi.Native() +external CFStringRef kSecTransformActionInternalizeExtraData; + +@ffi.Native() +external CFStringRef kSecTransformActionProcessData; + +@ffi.Native() +external CFStringRef kSecTransformActionStartingExecution; + +@ffi.Native() +external CFStringRef kSecTransformDebugAttributeName; + +@ffi.Native() +external CFStringRef kSecTransformErrorDomain; + +@ffi.Native() +external CFStringRef kSecTransformInputAttributeName; + +@ffi.Native() +external CFStringRef kSecTransformOutputAttributeName; + +@ffi.Native() +external CFStringRef kSecTransformPreviousErrorKey; + +@ffi.Native() +external CFStringRef kSecTransformTransformName; + +@ffi.Native() +external CFStringRef kSecTrustCertificateTransparency; + +@ffi.Native() +external CFStringRef kSecTrustCertificateTransparencyWhiteList; + +@ffi.Native() +external CFStringRef kSecTrustEvaluationDate; + +@ffi.Native() +external CFStringRef kSecTrustExtendedValidation; + +@ffi.Native() +external CFStringRef kSecTrustOrganizationName; + +@ffi.Native() +external CFStringRef kSecTrustQCStatements; + +@ffi.Native() +external CFStringRef kSecTrustQWACValidation; + +@ffi.Native() +external CFStringRef kSecTrustResultValue; + +@ffi.Native() +external CFStringRef kSecTrustRevocationChecked; + +@ffi.Native() +external CFStringRef kSecTrustRevocationValidUntilDate; + +@ffi.Native() +external CFStringRef kSecUseAuthenticationContext; + +@ffi.Native() +external CFStringRef kSecUseAuthenticationUI; + +@ffi.Native() +external CFStringRef kSecUseAuthenticationUIAllow; + +@ffi.Native() +external CFStringRef kSecUseAuthenticationUIFail; + +@ffi.Native() +external CFStringRef kSecUseAuthenticationUISkip; + +@ffi.Native() +external CFStringRef kSecUseDataProtectionKeychain; + +@ffi.Native() +external CFStringRef kSecUseItemList; + +@ffi.Native() +external CFStringRef kSecUseKeychain; + +@ffi.Native() +external CFStringRef kSecUseNoAuthenticationUI; + +@ffi.Native() +external CFStringRef kSecUseOperationPrompt; + +@ffi.Native() +external CFStringRef kSecUseUserIndependentKeychain; + +@ffi.Native() +external CFStringRef kSecValueData; + +@ffi.Native() +external CFStringRef kSecValuePersistentRef; + +@ffi.Native() +external CFStringRef kSecValueRef; + +@ffi.Native() +external CFStringRef kSecZLibEncoding; + +@ffi.Native() +external CFStringRef kSpeechAudioGraphProperty; + +@ffi.Native() +external CFStringRef kSpeechAudioOutputFormatProperty; + +@ffi.Native() +external CFStringRef kSpeechAudioUnitProperty; + +@ffi.Native() +external CFStringRef kSpeechCharacterModeProperty; + +@ffi.Native() +external CFStringRef kSpeechCommandDelimiterProperty; + +@ffi.Native() +external CFStringRef kSpeechCommandPrefix; + +@ffi.Native() +external CFStringRef kSpeechCommandSuffix; + +@ffi.Native() +external CFStringRef kSpeechCurrentVoiceProperty; + +@ffi.Native() +external CFStringRef kSpeechDictionaryAbbreviations; + +@ffi.Native() +external CFStringRef kSpeechDictionaryEntryPhonemes; + +@ffi.Native() +external CFStringRef kSpeechDictionaryEntrySpelling; + +@ffi.Native() +external CFStringRef kSpeechDictionaryLocaleIdentifier; + +@ffi.Native() +external CFStringRef kSpeechDictionaryModificationDate; + +@ffi.Native() +external CFStringRef kSpeechDictionaryPronunciations; + +@ffi.Native() +external CFStringRef kSpeechErrorCFCallBack; + +@ffi.Native() +external CFStringRef kSpeechErrorCallbackCharacterOffset; + +@ffi.Native() +external CFStringRef kSpeechErrorCallbackSpokenString; + +@ffi.Native() +external CFStringRef kSpeechErrorCount; + +@ffi.Native() +external CFStringRef kSpeechErrorNewest; + +@ffi.Native() +external CFStringRef kSpeechErrorNewestCharacterOffset; + +@ffi.Native() +external CFStringRef kSpeechErrorOldest; + +@ffi.Native() +external CFStringRef kSpeechErrorOldestCharacterOffset; + +@ffi.Native() +external CFStringRef kSpeechErrorsProperty; + +@ffi.Native() +external CFStringRef kSpeechInputModeProperty; + +@ffi.Native() +external CFStringRef kSpeechModeLiteral; + +@ffi.Native() +external CFStringRef kSpeechModeNormal; + +@ffi.Native() +external CFStringRef kSpeechModePhoneme; + +@ffi.Native() +external CFStringRef kSpeechModeText; + +@ffi.Native() +external CFStringRef kSpeechModeTune; + +@ffi.Native() +external CFStringRef kSpeechNoEndingProsody; + +@ffi.Native() +external CFStringRef kSpeechNoSpeechInterrupt; + +@ffi.Native() +external CFStringRef kSpeechNumberModeProperty; + +@ffi.Native() +external CFStringRef kSpeechOutputChannelMapProperty; + +@ffi.Native() +external CFStringRef kSpeechOutputToAudioDeviceProperty; + +@ffi.Native() +external CFStringRef kSpeechOutputToExtAudioFileProperty; + +@ffi.Native() +external CFStringRef kSpeechOutputToFileDescriptorProperty; + +@ffi.Native() +external CFStringRef kSpeechOutputToFileURLProperty; + +@ffi.Native() +external CFStringRef kSpeechPhonemeCallBack; + +@ffi.Native() +external CFStringRef kSpeechPhonemeInfoExample; + +@ffi.Native() +external CFStringRef kSpeechPhonemeInfoHiliteEnd; + +@ffi.Native() +external CFStringRef kSpeechPhonemeInfoHiliteStart; + +@ffi.Native() +external CFStringRef kSpeechPhonemeInfoOpcode; + +@ffi.Native() +external CFStringRef kSpeechPhonemeInfoSymbol; + +@ffi.Native() +external CFStringRef kSpeechPhonemeOptionsProperty; + +@ffi.Native() +external CFStringRef kSpeechPhonemeSymbolsProperty; + +@ffi.Native() +external CFStringRef kSpeechPitchBaseProperty; + +@ffi.Native() +external CFStringRef kSpeechPitchModProperty; + +@ffi.Native() +external CFStringRef kSpeechPreflightThenPause; + +@ffi.Native() +external CFStringRef kSpeechRateProperty; + +@ffi.Native() +external CFStringRef kSpeechRecentSyncProperty; + +@ffi.Native() +external CFStringRef kSpeechRefConProperty; + +@ffi.Native() +external CFStringRef kSpeechResetProperty; + +@ffi.Native() +external CFStringRef kSpeechSpeechDoneCallBack; + +@ffi.Native() +external CFStringRef kSpeechStatusNumberOfCharactersLeft; + +@ffi.Native() +external CFStringRef kSpeechStatusOutputBusy; + +@ffi.Native() +external CFStringRef kSpeechStatusOutputPaused; + +@ffi.Native() +external CFStringRef kSpeechStatusPhonemeCode; + +@ffi.Native() +external CFStringRef kSpeechStatusProperty; + +@ffi.Native() +external CFStringRef kSpeechSyncCallBack; + +@ffi.Native() +external CFStringRef kSpeechSynthExtensionProperty; + +@ffi.Native() +external CFStringRef kSpeechSynthesizerInfoIdentifier; + +@ffi.Native() +external CFStringRef kSpeechSynthesizerInfoManufacturer; + +@ffi.Native() +external CFStringRef kSpeechSynthesizerInfoProperty; + +@ffi.Native() +external CFStringRef kSpeechSynthesizerInfoVersion; + +@ffi.Native() +external CFStringRef kSpeechTextDoneCallBack; + +@ffi.Native() +external CFStringRef kSpeechVoiceCreator; + +@ffi.Native() +external CFStringRef kSpeechVoiceID; + +@ffi.Native() +external CFStringRef kSpeechVolumeProperty; + +@ffi.Native() +external CFStringRef kSpeechWordCFCallBack; + +@ffi.Native() +external CFStringRef kUTExportedTypeDeclarationsKey; + +@ffi.Native() +external CFStringRef kUTImportedTypeDeclarationsKey; + +@ffi.Native() +external CFStringRef kUTTagClassFilenameExtension; + +@ffi.Native() +external CFStringRef kUTTagClassMIMEType; + +@ffi.Native() +external CFStringRef kUTTagClassNSPboardType; + +@ffi.Native() +external CFStringRef kUTTagClassOSType; + +@ffi.Native() +external CFStringRef kUTType3DContent; + +@ffi.Native() +external CFStringRef kUTTypeAVIMovie; + +@ffi.Native() +external CFStringRef kUTTypeAliasFile; + +@ffi.Native() +external CFStringRef kUTTypeAliasRecord; + +@ffi.Native() +external CFStringRef kUTTypeAppleICNS; + +@ffi.Native() +external CFStringRef kUTTypeAppleProtectedMPEG4Audio; + +@ffi.Native() +external CFStringRef kUTTypeAppleProtectedMPEG4Video; + +@ffi.Native() +external CFStringRef kUTTypeAppleScript; + +@ffi.Native() +external CFStringRef kUTTypeApplication; + +@ffi.Native() +external CFStringRef kUTTypeApplicationBundle; + +@ffi.Native() +external CFStringRef kUTTypeApplicationFile; + +@ffi.Native() +external CFStringRef kUTTypeArchive; + +@ffi.Native() +external CFStringRef kUTTypeAssemblyLanguageSource; + +@ffi.Native() +external CFStringRef kUTTypeAudio; + +@ffi.Native() +external CFStringRef kUTTypeAudioInterchangeFileFormat; + +@ffi.Native() +external CFStringRef kUTTypeAudiovisualContent; + +@ffi.Native() +external CFStringRef kUTTypeBMP; + +@ffi.Native() +external CFStringRef kUTTypeBinaryPropertyList; + +@ffi.Native() +external CFStringRef kUTTypeBookmark; + +@ffi.Native() +external CFStringRef kUTTypeBundle; + +@ffi.Native() +external CFStringRef kUTTypeBzip2Archive; + +@ffi.Native() +external CFStringRef kUTTypeCHeader; + +@ffi.Native() +external CFStringRef kUTTypeCPlusPlusHeader; + +@ffi.Native() +external CFStringRef kUTTypeCPlusPlusSource; + +@ffi.Native() +external CFStringRef kUTTypeCSource; + +@ffi.Native() +external CFStringRef kUTTypeCalendarEvent; + +@ffi.Native() +external CFStringRef kUTTypeCommaSeparatedText; + +@ffi.Native() +external CFStringRef kUTTypeCompositeContent; + +@ffi.Native() +external CFStringRef kUTTypeConformsToKey; + +@ffi.Native() +external CFStringRef kUTTypeContact; + +@ffi.Native() +external CFStringRef kUTTypeContent; + +@ffi.Native() +external CFStringRef kUTTypeData; + +@ffi.Native() +external CFStringRef kUTTypeDatabase; + +@ffi.Native() +external CFStringRef kUTTypeDelimitedText; + +@ffi.Native() +external CFStringRef kUTTypeDescriptionKey; + +@ffi.Native() +external CFStringRef kUTTypeDirectory; + +@ffi.Native() +external CFStringRef kUTTypeDiskImage; + +@ffi.Native() +external CFStringRef kUTTypeElectronicPublication; + +@ffi.Native() +external CFStringRef kUTTypeEmailMessage; + +@ffi.Native() +external CFStringRef kUTTypeExecutable; + +@ffi.Native() +external CFStringRef kUTTypeFileURL; + +@ffi.Native() +external CFStringRef kUTTypeFlatRTFD; + +@ffi.Native() +external CFStringRef kUTTypeFolder; + +@ffi.Native() +external CFStringRef kUTTypeFont; + +@ffi.Native() +external CFStringRef kUTTypeFramework; + +@ffi.Native() +external CFStringRef kUTTypeGIF; + +@ffi.Native() +external CFStringRef kUTTypeGNUZipArchive; + +@ffi.Native() +external CFStringRef kUTTypeHTML; + +@ffi.Native() +external CFStringRef kUTTypeICO; + +@ffi.Native() +external CFStringRef kUTTypeIconFileKey; + +@ffi.Native() +external CFStringRef kUTTypeIdentifierKey; + +@ffi.Native() +external CFStringRef kUTTypeImage; + +@ffi.Native() +external CFStringRef kUTTypeInkText; + +@ffi.Native() +external CFStringRef kUTTypeInternetLocation; + +@ffi.Native() +external CFStringRef kUTTypeItem; + +@ffi.Native() +external CFStringRef kUTTypeJPEG; + +@ffi.Native() +external CFStringRef kUTTypeJPEG2000; + +@ffi.Native() +external CFStringRef kUTTypeJSON; + +@ffi.Native() +external CFStringRef kUTTypeJavaArchive; + +@ffi.Native() +external CFStringRef kUTTypeJavaClass; + +@ffi.Native() +external CFStringRef kUTTypeJavaScript; + +@ffi.Native() +external CFStringRef kUTTypeJavaSource; + +@ffi.Native() +external CFStringRef kUTTypeLivePhoto; + +@ffi.Native() +external CFStringRef kUTTypeLog; + +@ffi.Native() +external CFStringRef kUTTypeM3UPlaylist; + +@ffi.Native() +external CFStringRef kUTTypeMIDIAudio; + +@ffi.Native() +external CFStringRef kUTTypeMP3; + +@ffi.Native() +external CFStringRef kUTTypeMPEG; + +@ffi.Native() +external CFStringRef kUTTypeMPEG2TransportStream; + +@ffi.Native() +external CFStringRef kUTTypeMPEG2Video; + +@ffi.Native() +external CFStringRef kUTTypeMPEG4; + +@ffi.Native() +external CFStringRef kUTTypeMPEG4Audio; + +@ffi.Native() +external CFStringRef kUTTypeMessage; + +@ffi.Native() +external CFStringRef kUTTypeMountPoint; + +@ffi.Native() +external CFStringRef kUTTypeMovie; + +@ffi.Native() +external CFStringRef kUTTypeOSAScript; + +@ffi.Native() +external CFStringRef kUTTypeOSAScriptBundle; + +@ffi.Native() +external CFStringRef kUTTypeObjectiveCPlusPlusSource; + +@ffi.Native() +external CFStringRef kUTTypeObjectiveCSource; + +@ffi.Native() +external CFStringRef kUTTypePDF; + +@ffi.Native() +external CFStringRef kUTTypePHPScript; + +@ffi.Native() +external CFStringRef kUTTypePICT; + +@ffi.Native() +external CFStringRef kUTTypePKCS12; + +@ffi.Native() +external CFStringRef kUTTypePNG; + +@ffi.Native() +external CFStringRef kUTTypePackage; + +@ffi.Native() +external CFStringRef kUTTypePerlScript; + +@ffi.Native() +external CFStringRef kUTTypePlainText; + +@ffi.Native() +external CFStringRef kUTTypePlaylist; + +@ffi.Native() +external CFStringRef kUTTypePluginBundle; + +@ffi.Native() +external CFStringRef kUTTypePresentation; + +@ffi.Native() +external CFStringRef kUTTypePropertyList; + +@ffi.Native() +external CFStringRef kUTTypePythonScript; + +@ffi.Native() +external CFStringRef kUTTypeQuickLookGenerator; + +@ffi.Native() +external CFStringRef kUTTypeQuickTimeImage; + +@ffi.Native() +external CFStringRef kUTTypeQuickTimeMovie; + +@ffi.Native() +external CFStringRef kUTTypeRTF; + +@ffi.Native() +external CFStringRef kUTTypeRTFD; + +@ffi.Native() +external CFStringRef kUTTypeRawImage; + +@ffi.Native() +external CFStringRef kUTTypeReferenceURLKey; + +@ffi.Native() +external CFStringRef kUTTypeResolvable; + +@ffi.Native() +external CFStringRef kUTTypeRubyScript; + +@ffi.Native() +external CFStringRef kUTTypeScalableVectorGraphics; + +@ffi.Native() +external CFStringRef kUTTypeScript; + +@ffi.Native() +external CFStringRef kUTTypeShellScript; + +@ffi.Native() +external CFStringRef kUTTypeSourceCode; + +@ffi.Native() +external CFStringRef kUTTypeSpotlightImporter; + +@ffi.Native() +external CFStringRef kUTTypeSpreadsheet; + +@ffi.Native() +external CFStringRef kUTTypeSwiftSource; + +@ffi.Native() +external CFStringRef kUTTypeSymLink; + +@ffi.Native() +external CFStringRef kUTTypeSystemPreferencesPane; + +@ffi.Native() +external CFStringRef kUTTypeTIFF; + +@ffi.Native() +external CFStringRef kUTTypeTXNTextAndMultimediaData; + +@ffi.Native() +external CFStringRef kUTTypeTabSeparatedText; + +@ffi.Native() +external CFStringRef kUTTypeTagSpecificationKey; + +@ffi.Native() +external CFStringRef kUTTypeText; + +@ffi.Native() +external CFStringRef kUTTypeToDoItem; + +@ffi.Native() +external CFStringRef kUTTypeURL; + +@ffi.Native() +external CFStringRef kUTTypeURLBookmarkData; + +@ffi.Native() +external CFStringRef kUTTypeUTF16ExternalPlainText; + +@ffi.Native() +external CFStringRef kUTTypeUTF16PlainText; + +@ffi.Native() +external CFStringRef kUTTypeUTF8PlainText; + +@ffi.Native() +external CFStringRef kUTTypeUTF8TabSeparatedText; + +@ffi.Native() +external CFStringRef kUTTypeUnixExecutable; + +@ffi.Native() +external CFStringRef kUTTypeVCard; + +@ffi.Native() +external CFStringRef kUTTypeVersionKey; + +@ffi.Native() +external CFStringRef kUTTypeVideo; + +@ffi.Native() +external CFStringRef kUTTypeVolume; + +@ffi.Native() +external CFStringRef kUTTypeWaveformAudio; + +@ffi.Native() +external CFStringRef kUTTypeWebArchive; + +@ffi.Native() +external CFStringRef kUTTypeWindowsExecutable; + +@ffi.Native() +external CFStringRef kUTTypeX509Certificate; + +@ffi.Native() +external CFStringRef kUTTypeXML; + +@ffi.Native() +external CFStringRef kUTTypeXMLPropertyList; + +@ffi.Native() +external CFStringRef kUTTypeXPCService; + +@ffi.Native() +external CFStringRef kUTTypeZipArchive; + +@ffi.Native() +external CFStringRef kWSDebugIncomingBody; + +@ffi.Native() +external CFStringRef kWSDebugIncomingHeaders; + +@ffi.Native() +external CFStringRef kWSDebugOutgoingBody; + +@ffi.Native() +external CFStringRef kWSDebugOutgoingHeaders; + +@ffi.Native() +external CFStringRef kWSFaultCode; + +@ffi.Native() +external CFStringRef kWSFaultExtra; + +@ffi.Native() +external CFStringRef kWSFaultString; + +@ffi.Native() +external CFStringRef kWSHTTPExtraHeaders; + +@ffi.Native() +external CFStringRef kWSHTTPFollowsRedirects; + +@ffi.Native() +external CFStringRef kWSHTTPMessage; + +@ffi.Native() +external CFStringRef kWSHTTPProxy; + +@ffi.Native() +external CFStringRef kWSHTTPResponseMessage; + +@ffi.Native() +external CFStringRef kWSHTTPVersion; + +@ffi.Native() +external CFStringRef kWSMethodInvocationResult; + +@ffi.Native() +external CFStringRef kWSMethodInvocationResultParameterName; + +@ffi.Native() +external CFStringRef kWSMethodInvocationTimeoutValue; + +@ffi.Native() +external CFStringRef kWSNetworkStreamFaultString; + +@ffi.Native() +external CFStringRef kWSRecordNamespaceURI; + +@ffi.Native() +external CFStringRef kWSRecordParameterOrder; + +@ffi.Native() +external CFStringRef kWSRecordType; + +@ffi.Native() +external CFStringRef kWSSOAP1999Protocol; + +@ffi.Native() +external CFStringRef kWSSOAP2001Protocol; + +@ffi.Native() +external CFStringRef kWSSOAPBodyEncodingStyle; + +@ffi.Native() +external CFStringRef kWSSOAPMessageHeaders; + +@ffi.Native() +external CFStringRef kWSSOAPMethodNamespaceURI; + +@ffi.Native() +external CFStringRef kWSSOAPStyleDoc; + +@ffi.Native() +external CFStringRef kWSSOAPStyleRPC; + +@ffi.Native() +external CFStringRef kWSStreamErrorDomain; + +@ffi.Native() +external CFStringRef kWSStreamErrorError; + +@ffi.Native() +external CFStringRef kWSStreamErrorMessage; + +@ffi.Native() +external CFStringRef kWSXMLRPCProtocol; + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kcfindapplesharepassword( + ffi.Pointer> serverSignature, + ffi.Pointer serverAddress, + ffi.Pointer serverName, + ffi.Pointer volumeName, + ffi.Pointer accountName, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kcfindgenericpassword( + ffi.Pointer serviceName, + ffi.Pointer accountName, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + UInt16, + OSType, + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kcfindinternetpassword( + ffi.Pointer serverName, + ffi.Pointer securityDomain, + ffi.Pointer accountName, + int port, + int protocol, + int authType, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + UInt16, + OSType, + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kcfindinternetpasswordwithpath( + ffi.Pointer serverName, + ffi.Pointer securityDomain, + ffi.Pointer accountName, + ffi.Pointer path, + int port, + int protocol, + int authType, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int kcgetkeychainname( + KCRef keychain, + ffi.Pointer keychainName, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + ffi.Uint32, + vm_offset_t, + mach_msg_type_number_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kext_request( + int host_priv, + int user_log_flags, + int request_data, + int request_dataCnt, + ffi.Pointer response_data, + ffi.Pointer response_dataCnt, + ffi.Pointer log_data, + ffi.Pointer log_dataCnt, + ffi.Pointer op_result, +); + +@ffi.Native() +external int kill(int arg0, int arg1); + +@ffi.Native() +external int killpg(int arg0, int arg1); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + kmod_t, + kmod_control_flavor_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kmod_control( + int host_priv, + int module, + int flavor, + ffi.Pointer data, + ffi.Pointer dataCnt, +); + +@ffi.Native< + kern_return_t Function(host_priv_t, vm_address_t, ffi.Pointer) +>() +external int kmod_create(int host_priv, int info, ffi.Pointer module); + +@ffi.Native() +external int kmod_destroy(int host_priv, int module); + +@ffi.Native< + kern_return_t Function( + host_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kmod_get_info( + int host, + ffi.Pointer modules, + ffi.Pointer modulesCnt, +); + +@ffi.Native Function(ffi.Long)>() +external ffi.Pointer l64a(int arg0); + +@ffi.Native() +external int labs(int arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int launch_activate_socket( + ffi.Pointer name, + ffi.Pointer> fds, + ffi.Pointer cnt, +); + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'launch_data_alloc', +) +external launch_data_t _launch_data_alloc(int type); + +launch_data_t launch_data_alloc(launch_data_type_t type) { + return _launch_data_alloc(type.value); +} + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_array_get_count(launch_data_t larray); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_array_get_index( + launch_data_t larray, + int idx, +); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_array_set_index( + launch_data_t larray, + launch_data_t lval, + int idx, +); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_copy(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_dict_get_count(launch_data_t ldict); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Bool Function(launch_data_t, launch_data_t, ffi.Pointer) +>() +external bool launch_data_dict_insert( + launch_data_t ldict, + launch_data_t lval, + ffi.Pointer key, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + launch_data_t, + launch_data_dict_iterator_t, + ffi.Pointer, + ) +>() +external void launch_data_dict_iterate( + launch_data_t ldict, + launch_data_dict_iterator_t iterator, + ffi.Pointer ctx, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external launch_data_t launch_data_dict_lookup( + launch_data_t ldict, + ffi.Pointer key, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external bool launch_data_dict_remove( + launch_data_t ldict, + ffi.Pointer key, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void launch_data_free(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_get_bool(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_get_errno(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_get_fd(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_get_integer(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_get_machport(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native Function(launch_data_t)>() +external ffi.Pointer launch_data_get_opaque(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_get_opaque_size(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external double launch_data_get_real(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native Function(launch_data_t)>() +external ffi.Pointer launch_data_get_string(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'launch_data_get_type', +) +external int _launch_data_get_type(launch_data_t ld); + +launch_data_type_t launch_data_get_type(launch_data_t ld) { + return launch_data_type_t.fromValue(_launch_data_get_type(ld)); +} + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_new_bool(bool val); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_new_fd(int fd); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_new_integer(int val); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_new_machport(int val); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Size)>() +external launch_data_t launch_data_new_opaque( + ffi.Pointer bytes, + int sz, +); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_new_real(double val); + +@Deprecated('Deprecated') +@ffi.Native)>() +external launch_data_t launch_data_new_string(ffi.Pointer val); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_set_bool(launch_data_t ld, bool val); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_set_fd(launch_data_t ld, int fd); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_set_integer(launch_data_t ld, int val); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_set_machport(launch_data_t ld, int mp); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Size)>() +external bool launch_data_set_opaque( + launch_data_t ld, + ffi.Pointer bytes, + int sz, +); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_set_real(launch_data_t ld, double val); + +@Deprecated('Deprecated') +@ffi.Native)>() +external bool launch_data_set_string( + launch_data_t ld, + ffi.Pointer val, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_get_fd(); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_msg(launch_data_t request); + +@ffi.Native, uid_t, gid_t)>() +external int lchown(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native)>() +external void lcong48(ffi.Pointer arg0); + +@ffi.Native() +external double ldexp(double arg0, int arg1); + +@ffi.Native() +external double ldexpf(double arg0, int arg1); + +@ffi.Native() +external ldiv_t ldiv(int arg0, int arg1); + +@ffi.Native() +external double lgamma(double arg0); + +@ffi.Native() +external double lgammaf(double arg0); + +@ffi.Native, ffi.Pointer)>() +external int link(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>() +external int linkat( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + int arg4, +); + +@ffi.Native() +external int listen(int arg0, int arg1); + +@ffi.Native() +external int llabs(int arg0); + +@ffi.Native() +external lldiv_t lldiv(int arg0, int arg1); + +@ffi.Native() +external int llrint(double arg0); + +@ffi.Native() +external int llrintf(double arg0); + +@ffi.Native() +external int llround(double arg0); + +@ffi.Native() +external int llroundf(double arg0); + +@ffi.Native Function()>() +external ffi.Pointer localeconv(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer localtime(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() +external ffi.Pointer localtime_r( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + kern_return_t Function(task_t, ffi.Pointer, ffi.Int, ffi.Int) +>() +external int lock_set_create( + int task, + ffi.Pointer new_lock_set, + int n_ulocks, + int policy, +); + +@ffi.Native() +external int lock_set_destroy(int task, int lock_set); + +@ffi.Native() +external int lockf(int arg0, int arg1, int arg2); + +@ffi.Native() +external double log(double arg0); + +@ffi.Native() +external double log10(double arg0); + +@ffi.Native() +external double log10f(double arg0); + +@ffi.Native() +external double log1p(double arg0); + +@ffi.Native() +external double log1pf(double arg0); + +@ffi.Native() +external double log2(double arg0); + +@ffi.Native() +external double log2f(double arg0); + +@ffi.Native() +external double logb(double arg0); + +@ffi.Native() +external double logbf(double arg0); + +@ffi.Native() +external double logf(double arg0); + +@ffi.Native, ffi.Int)>() +external void longjmp(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external void longjmperror(); + +@ffi.Native() +external int lrand48(); + +@ffi.Native() +external int lrint(double arg0); + +@ffi.Native() +external int lrintf(double arg0); + +@ffi.Native() +external int lround(double arg0); + +@ffi.Native() +external int lroundf(double arg0); + +@ffi.Native() +external int lseek(int arg0, int arg1, int arg2); + +@ffi.Native, ffi.Pointer)>() +external int lutimes(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native, mach_error_t)>() +external void mach_error(ffi.Pointer str, int error_value); + +@ffi.Native Function(mach_error_t)>() +external ffi.Pointer mach_error_string(int error_value); + +@ffi.Native Function(mach_error_t)>() +external ffi.Pointer mach_error_type(int error_value); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, ffi.Int, ffi.Pointer) +>() +external int mach_generate_activity_id( + int target, + int count, + ffi.Pointer activity_id, +); + +@ffi.Native() +external int mach_host_self(); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_offset_t, + vm_prot_t, + ffi.Pointer, + mem_entry_name_port_t, + ) +>() +external int mach_make_memory_entry( + int target_task, + ffi.Pointer size, + int offset, + int permission, + ffi.Pointer object_handle, + int parent_entry, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + memory_object_offset_t, + vm_prot_t, + ffi.Pointer, + mem_entry_name_port_t, + ) +>() +external int mach_make_memory_entry_64( + int target_task, + ffi.Pointer size, + int offset, + int permission, + ffi.Pointer object_handle, + int parent_entry, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_memory_info( + int host, + ffi.Pointer names, + ffi.Pointer namesCnt, + ffi.Pointer info, + ffi.Pointer infoCnt, + ffi.Pointer memory_info, + ffi.Pointer memory_infoCnt, +); + +@ffi.Native< + kern_return_t Function( + host_t, + boolean_t, + vm_size_t, + vm_prot_t, + memory_object_t, + ffi.Pointer, + ) +>() +external int mach_memory_object_memory_entry( + int host, + int internal, + int size, + int permission, + int pager, + ffi.Pointer entry_handle, +); + +@ffi.Native< + kern_return_t Function( + host_t, + boolean_t, + memory_object_size_t, + vm_prot_t, + memory_object_t, + ffi.Pointer, + ) +>() +external int mach_memory_object_memory_entry_64( + int host, + int internal, + int size, + int permission, + int pager, + ffi.Pointer entry_handle, +); + +@ffi.Native< + mach_msg_return_t Function( + ffi.Pointer, + mach_msg_option_t, + mach_msg_size_t, + mach_msg_size_t, + mach_port_name_t, + mach_msg_timeout_t, + mach_port_name_t, + ) +>() +external int mach_msg( + ffi.Pointer msg, + int option, + int send_size, + int rcv_size, + int rcv_name, + int timeout, + int notify, +); + +@ffi.Native)>() +external void mach_msg_destroy(ffi.Pointer arg0); + +@ffi.Native< + mach_msg_return_t Function( + ffi.Pointer, + mach_msg_option_t, + mach_msg_size_t, + mach_msg_size_t, + mach_port_name_t, + mach_msg_timeout_t, + mach_port_name_t, + ffi.Pointer, + mach_msg_size_t, + ) +>() +external int mach_msg_overwrite( + ffi.Pointer msg, + int option, + int send_size, + int rcv_size, + int rcv_name, + int timeout, + int notify, + ffi.Pointer rcv_msg, + int rcv_limit, +); + +@ffi.Native)>() +external int mach_msg_receive(ffi.Pointer arg0); + +@ffi.Native)>() +external int mach_msg_send(ffi.Pointer arg0); + +@ffi.Native< + mach_msg_return_t Function( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >, + mach_msg_size_t, + mach_port_t, + mach_msg_options_t, + ) +>() +external int mach_msg_server( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native< + mach_msg_return_t Function( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >, + mach_msg_size_t, + mach_port_t, + mach_msg_options_t, + ) +>() +external int mach_msg_server_importance( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native< + mach_msg_return_t Function( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >, + mach_msg_size_t, + mach_port_t, + mach_msg_options_t, + ) +>() +external int mach_msg_server_once( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_right_t, + ffi.Pointer, + ) +>() +external int mach_port_allocate( + int task, + int right, + ffi.Pointer name, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_right_t, + mach_port_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_allocate_full( + int task, + int right, + int proto, + ffi.Pointer qos, + ffi.Pointer name, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_right_t, mach_port_name_t) +>() +external int mach_port_allocate_name(int task, int right, int name); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_right_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_allocate_qos( + int task, + int right, + ffi.Pointer qos, + ffi.Pointer name, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_flavor_t, + mach_port_info_t, + mach_msg_type_number_t, + ) +>() +external int mach_port_assert_attributes( + int task, + int name, + int flavor, + mach_port_info_t info, + int infoCnt, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_options_ptr_t, + mach_port_context_t, + ffi.Pointer, + ) +>() +external int mach_port_construct( + int task, + mach_port_options_ptr_t options, + int context, + ffi.Pointer name, +); + +@ffi.Native() +external int mach_port_deallocate(int task, int name); + +@Deprecated( + 'Inherently unsafe API: instead manage rights with mach_port_destruct(), mach_port_deallocate() or mach_port_mod_refs()', +) +@ffi.Native() +external int mach_port_destroy(int task, int name); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_delta_t, + mach_port_context_t, + ) +>() +external int mach_port_destruct(int task, int name, int srdelta, int guard); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_dnrequest_info( + int task, + int name, + ffi.Pointer dnr_total, + ffi.Pointer dnr_used, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) +>() +external int mach_port_extract_member(int task, int name, int pset); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_msg_type_name_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_extract_right( + int task, + int name, + int msgt_name, + ffi.Pointer poly, + ffi.Pointer polyPoly, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + mach_port_flavor_t, + mach_port_info_t, + ffi.Pointer, + ) +>() +external int mach_port_get_attributes( + int task, + int name, + int flavor, + mach_port_info_t port_info_out, + ffi.Pointer port_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int mach_port_get_context( + int task, + int name, + ffi.Pointer context, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_right_t, + ffi.Pointer, + ) +>() +external int mach_port_get_refs( + int task, + int name, + int right, + ffi.Pointer refs, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int mach_port_get_service_port_info( + int task, + int name, + ffi.Pointer sp_info_out, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_get_set_status( + int task, + int name, + ffi.Pointer members, + ffi.Pointer membersCnt, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int mach_port_get_srights( + int task, + int name, + ffi.Pointer srights, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_context_t, + boolean_t, + ) +>() +external int mach_port_guard(int task, int name, int guard, int strict); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_context_t, + ffi.Uint64, + ) +>() +external int mach_port_guard_with_flags( + int task, + int name, + int guard, + int flags, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) +>() +external int mach_port_insert_member(int task, int name, int pset); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_t, + mach_msg_type_name_t, + ) +>() +external int mach_port_insert_right(int task, int name, int poly, int polyPoly); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int mach_port_is_connection_for_service( + int task, + int connection_port, + int service_port, + ffi.Pointer filter_policy_id, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_kernel_object( + int task, + int name, + ffi.Pointer object_type, + ffi.Pointer object_addr, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_kobject( + int task, + int name, + ffi.Pointer object_type, + ffi.Pointer object_addr, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_kobject_description( + int task, + int name, + ffi.Pointer object_type, + ffi.Pointer object_addr, + ffi.Pointer description, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_right_t, + mach_port_delta_t, + ) +>() +external int mach_port_mod_refs(int task, int name, int right, int delta); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) +>() +external int mach_port_move_member(int task, int member, int after); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_names( + int task, + ffi.Pointer names, + ffi.Pointer namesCnt, + ffi.Pointer types, + ffi.Pointer typesCnt, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_msg_trailer_type_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + mach_msg_trailer_info_t, + ffi.Pointer, + ) +>() +external int mach_port_peek( + int task, + int name, + int trailer_type, + ffi.Pointer request_seqnop, + ffi.Pointer msg_sizep, + ffi.Pointer msg_idp, + mach_msg_trailer_info_t trailer_infop, + ffi.Pointer trailer_infopCnt, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) +>() +external int mach_port_rename(int task, int old_name, int new_name); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_msg_id_t, + mach_port_mscount_t, + mach_port_t, + mach_msg_type_name_t, + ffi.Pointer, + ) +>() +external int mach_port_request_notification( + int task, + int name, + int msgid, + int sync$1, + int notify, + int notifyPoly, + ffi.Pointer previous, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_flavor_t, + mach_port_info_t, + mach_msg_type_number_t, + ) +>() +external int mach_port_set_attributes( + int task, + int name, + int flavor, + mach_port_info_t port_info, + int port_infoCnt, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_context_t) +>() +external int mach_port_set_context(int task, int name, int context); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_mscount_t) +>() +external int mach_port_set_mscount(int task, int name, int mscount); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_seqno_t) +>() +external int mach_port_set_seqno(int task, int name, int seqno); + +@ffi.Native< + kern_return_t Function( + ipc_space_inspect_t, + ffi.Pointer, + ) +>() +external int mach_port_space_basic_info( + int task, + ffi.Pointer basic_info, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_space_info( + int space, + ffi.Pointer space_info, + ffi.Pointer table_info, + ffi.Pointer table_infoCnt, + ffi.Pointer tree_info, + ffi.Pointer tree_infoCnt, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_context_t, + mach_port_context_t, + ) +>() +external int mach_port_swap_guard( + int task, + int name, + int old_guard, + int new_guard, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int mach_port_type( + int task, + int name, + ffi.Pointer ptype, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_context_t) +>() +external int mach_port_unguard(int task, int name, int guard); + +@ffi.Native< + kern_return_t Function( + task_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_ports_lookup( + int target_task, + ffi.Pointer init_port_set, + ffi.Pointer init_port_setCnt, +); + +@ffi.Native< + kern_return_t Function(task_t, mach_port_array_t, mach_msg_type_number_t) +>() +external int mach_ports_register( + int target_task, + mach_port_array_t init_port_set, + int init_port_setCnt, +); + +@ffi.Native() +external int mach_task_is_self(int task); + +@ffi.Native() +external int mach_task_self_; + +@ffi.Native() +external int mach_thread_self(); + +@ffi.Native)>() +external int mach_vm_reclaim_update_kernel_accounting_trap( + int target_tport, + ffi.Pointer bytes_reclaimed, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + vm_address_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_vm_region_info( + int task, + int address, + ffi.Pointer region, + ffi.Pointer objects, + ffi.Pointer objectsCnt, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + vm_address_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_vm_region_info_64( + int task, + int address, + ffi.Pointer region, + ffi.Pointer objects, + ffi.Pointer objectsCnt, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + vm_map_t, + mach_vm_address_t, + mach_vm_size_t, + vm_prot_t, + ) +>() +external int mach_vm_wire( + int host_priv, + int task, + int address, + int size, + int desired_access, +); + +@ffi.Native() +external int mach_voucher_deallocate(int voucher); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_voucher_attr_key_t, + mach_voucher_attr_raw_recipe_t, + ffi.Pointer, + ) +>() +external int mach_voucher_extract_attr_recipe_trap( + int voucher_name, + int key, + mach_voucher_attr_raw_recipe_t recipe, + ffi.Pointer recipe_size, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_zone_info( + int host, + ffi.Pointer names, + ffi.Pointer namesCnt, + ffi.Pointer info, + ffi.Pointer infoCnt, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + mach_zone_name_t, + ffi.Pointer, + ) +>() +external int mach_zone_info_for_zone( + int host, + mach_zone_name_t name, + ffi.Pointer info, +); + +@ffi.Native() +external int macx_backing_store_recovery(int pid); + +@ffi.Native() +external int macx_backing_store_suspend(int suspend); + +@ffi.Native() +external int macx_swapoff(int filename, int flags); + +@ffi.Native() +external int macx_swapon(int filename, int flags, int size, int priority); + +@ffi.Native() +external int macx_triggers( + int hi_water, + int low_water, + int flags, + int alert_port, +); + +@ffi.Native, ffi.Size, ffi.Int)>() +external int madvise(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native Function(ffi.Size)>() +external ffi.Pointer malloc(int __size); + +@ffi.Native< + ffi.Pointer Function(ffi.Size, ffi.Size, malloc_type_id_t) +>() +external ffi.Pointer malloc_type_aligned_alloc( + int alignment, + int size, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Size, ffi.Size, malloc_type_id_t) +>() +external ffi.Pointer malloc_type_calloc( + int count, + int size, + int type_id, +); + +@ffi.Native, malloc_type_id_t)>() +external void malloc_type_free(ffi.Pointer ptr, int type_id); + +@ffi.Native Function(ffi.Size, malloc_type_id_t)>() +external ffi.Pointer malloc_type_malloc(int size, int type_id); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Size, + ffi.Size, + malloc_type_id_t, + ) +>() +external int malloc_type_posix_memalign( + ffi.Pointer> memptr, + int alignment, + int size, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_realloc( + ffi.Pointer ptr, + int size, + int type_id, +); + +@ffi.Native Function(ffi.Size, malloc_type_id_t)>() +external ffi.Pointer malloc_type_valloc(int size, int type_id); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_zone_calloc( + ffi.Pointer zone, + int count, + int size, + int type_id, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + malloc_type_id_t, + ) +>() +external void malloc_type_zone_free( + ffi.Pointer zone, + ffi.Pointer ptr, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_zone_malloc( + ffi.Pointer zone, + int size, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_zone_memalign( + ffi.Pointer zone, + int alignment, + int size, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_zone_realloc( + ffi.Pointer zone, + ffi.Pointer ptr, + int size, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_zone_valloc( + ffi.Pointer zone, + int size, + int type_id, +); + +@ffi.Native, ffi.Size)>() +external int mblen(ffi.Pointer __s, int __n); + +@ffi.Native< + ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int mbstowcs( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __n, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int mbtowc( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __n, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Size, + ) +>() +external ffi.Pointer memccpy( + ffi.Pointer __dst, + ffi.Pointer __src, + int __c, + int __n, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Size) +>() +external ffi.Pointer memchr( + ffi.Pointer __s, + int __c, + int __n, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int memcmp( + ffi.Pointer __s1, + ffi.Pointer __s2, + int __n, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer memcpy( + ffi.Pointer __dst, + ffi.Pointer __src, + int __n, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer memmem( + ffi.Pointer __big, + int __big_len, + ffi.Pointer __little, + int __little_len, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer memmove( + ffi.Pointer __dst, + ffi.Pointer __src, + int __len, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Size) +>() +external ffi.Pointer memset( + ffi.Pointer __b, + int __c, + int __len, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external void memset_pattern16( + ffi.Pointer __b, + ffi.Pointer __pattern16, + int __len, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external void memset_pattern4( + ffi.Pointer __b, + ffi.Pointer __pattern4, + int __len, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external void memset_pattern8( + ffi.Pointer __b, + ffi.Pointer __pattern8, + int __len, +); + +@ffi.Native< + errno_t Function(ffi.Pointer, rsize_t, ffi.Int, rsize_t) +>() +external int memset_s(ffi.Pointer __s, int __smax, int __c, int __n); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) +>() +external int mergesort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'mergesort_b') +external int _mergesort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer __compar, +); + +int mergesort_b( + ffi.Pointer __base, + int __nel, + int __width, + objc.ObjCBlock, ffi.Pointer)> + __compar, +) { + final _$$ref = __compar.ref; + return _mergesort_b(__base, __nel, __width, _$$ref.pointer); +} + +@ffi.Native, vm_size_t)>() +external void mig_allocate(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external void mig_dealloc_reply_port(int reply_port); + +@ffi.Native() +external void mig_deallocate(int arg0, int arg1); + +@ffi.Native() +external int mig_get_reply_port(); + +@ffi.Native() +external void mig_put_reply_port(int reply_port); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external void mig_reply_setup( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int mig_strncpy( + ffi.Pointer dest, + ffi.Pointer src, + int len, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int mig_strncpy_zerofill( + ffi.Pointer dest, + ffi.Pointer src, + int len, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Pointer) +>() +external int mincore( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +); + +@ffi.Native, ffi.Size, ffi.Int)>() +external int minherit(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer mkdtemp(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Int, ffi.Pointer)>() +external ffi.Pointer mkdtempat_np( + int dfd, + ffi.Pointer path, +); + +@ffi.Native, mode_t, dev_t)>() +external int mknod(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native, ffi.Int)>() +external int mkostemp(ffi.Pointer path, int oflags); + +@ffi.Native, ffi.Int, ffi.Int)>() +external int mkostemps(ffi.Pointer path, int slen, int oflags); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) +>() +external int mkostempsat_np( + int dfd, + ffi.Pointer path, + int slen, + int oflags, +); + +@ffi.Native, mode_t)>() +external int mkpath_np(ffi.Pointer path, int omode); + +@ffi.Native, mode_t)>() +external int mkpathat_np(int dfd, ffi.Pointer path, int omode); + +@ffi.Native)>() +external int mkstemp(ffi.Pointer arg0); + +@ffi.Native, ffi.Int, ffi.Int)>() +external int mkstemp_dprotected_np( + ffi.Pointer path, + int dpclass, + int dpflags, +); + +@ffi.Native, ffi.Int)>() +external int mkstemps(ffi.Pointer arg0, int arg1); + +@ffi.Native, ffi.Int)>() +external int mkstempsat_np(int dfd, ffi.Pointer path, int slen); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.', +) +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer mktemp(ffi.Pointer arg0); + +@ffi.Native)>() +external int mktime(ffi.Pointer arg0); + +@ffi.Native, ffi.Size)>() +external int mlock(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int mlockall(int arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Int, + ffi.Int, + off_t, + ) +>() +external ffi.Pointer mmap( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, + int arg4, + int arg5, +); + +@ffi.Native)>() +external double modf(double arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external double modff(double arg0, ffi.Pointer arg1); + +@ffi.Native, ffi.Size, ffi.Int)>() +external int mprotect(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native() +external int mrand48(); + +@ffi.Native, ffi.Size, ffi.Int)>() +external int msync(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native, ffi.Size)>() +external int munlock(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int munlockall(); + +@ffi.Native, ffi.Size)>() +external int munmap(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external double nan(ffi.Pointer arg0); + +@ffi.Native)>() +external double nanf(ffi.Pointer arg0); + +@ffi.Native, ffi.Pointer)>() +external int nanosleep( + ffi.Pointer __rqtp, + ffi.Pointer __rmtp, +); + +@ffi.Native() +external double nearbyint(double arg0); + +@ffi.Native() +external double nearbyintf(double arg0); + +@ffi.Native, locale_t)>() +external locale_t newlocale( + int arg0, + ffi.Pointer arg1, + locale_t arg2, +); + +@ffi.Native() +external double nextafter(double arg0, double arg1); + +@ffi.Native() +external double nextafterf(double arg0, double arg1); + +@ffi.Native)>() +external int nfssvc(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external int nice(int arg0); + +@ffi.Native)>() +external int nrand48(ffi.Pointer arg0); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(ffi.Pointer, double_t, ffi.Pointer) +>() +external void num2dec(ffi.Pointer f, double x, ffi.Pointer d); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void numtostring(int theNum, ffi.Pointer theString); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'object_getClassName', +) +external ffi.Pointer _object_getClassName( + ffi.Pointer obj, +); + +ffi.Pointer object_getClassName(objc.ObjCObject? obj) { + final _$$ref = obj?.ref; + return _object_getClassName(_$$ref?.pointer ?? ffi.nullptr); +} + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'object_getIndexedIvars', +) +external ffi.Pointer _object_getIndexedIvars( + ffi.Pointer obj, +); + +ffi.Pointer object_getIndexedIvars(objc.ObjCObject? obj) { + final _$$ref = obj?.ref; + return _object_getIndexedIvars(_$$ref?.pointer ?? ffi.nullptr); +} + +@ffi.Native() +external final DERItem oidAdCAIssuer; + +@ffi.Native() +external final DERItem oidAdOCSP; + +@ffi.Native() +external final DERItem oidAnsip384r1; + +@ffi.Native() +external final DERItem oidAnsip521r1; + +@ffi.Native() +external final DERItem oidAnyExtendedKeyUsage; + +@ffi.Native() +external final DERItem oidAnyPolicy; + +@ffi.Native() +external final DERItem oidAuthorityInfoAccess; + +@ffi.Native() +external final DERItem oidAuthorityKeyIdentifier; + +@ffi.Native() +external final DERItem oidBasicConstraints; + +@ffi.Native() +external final DERItem oidCertificatePolicies; + +@ffi.Native() +external final DERItem oidCommonName; + +@ffi.Native() +external final DERItem oidCountryName; + +@ffi.Native() +external final DERItem oidCrlDistributionPoints; + +@ffi.Native() +external final DERItem oidDescription; + +@ffi.Native() +external final DERItem oidEcPrime192v1; + +@ffi.Native() +external final DERItem oidEcPrime256v1; + +@ffi.Native() +external final DERItem oidEcPubKey; + +@ffi.Native() +external final DERItem oidEmailAddress; + +@ffi.Native() +external final DERItem oidEntrustVersInfo; + +@ffi.Native() +external final DERItem oidExtendedKeyUsage; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageClientAuth; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageCodeSigning; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageEmailProtection; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageIPSec; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageMicrosoftSGC; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageNetscapeSGC; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageOCSPSigning; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageServerAuth; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageTimeStamping; + +@ffi.Native() +external final DERItem oidFee; + +@ffi.Native() +external final DERItem oidFriendlyName; + +@ffi.Native() +external final DERItem oidGoogleEmbeddedSignedCertificateTimestamp; + +@ffi.Native() +external final DERItem oidGoogleOCSPSignedCertificateTimestamp; + +@ffi.Native() +external final DERItem oidInhibitAnyPolicy; + +@ffi.Native() +external final DERItem oidIssuerAltName; + +@ffi.Native() +external final DERItem oidKeyUsage; + +@ffi.Native() +external final DERItem oidLocalKeyId; + +@ffi.Native() +external final DERItem oidLocalityName; + +@ffi.Native() +external final DERItem oidMSNTPrincipalName; + +@ffi.Native() +external final DERItem oidMd2; + +@ffi.Native() +external final DERItem oidMd2Rsa; + +@ffi.Native() +external final DERItem oidMd4; + +@ffi.Native() +external final DERItem oidMd4Rsa; + +@ffi.Native() +external final DERItem oidMd5; + +@ffi.Native() +external final DERItem oidMd5Fee; + +@ffi.Native() +external final DERItem oidMd5Rsa; + +@ffi.Native() +external final DERItem oidNameConstraints; + +@ffi.Native() +external final DERItem oidNetscapeCertType; + +@ffi.Native() +external final DERItem oidOrganizationName; + +@ffi.Native() +external final DERItem oidOrganizationalUnitName; + +@ffi.Native() +external final DERItem oidPolicyConstraints; + +@ffi.Native() +external final DERItem oidPolicyMappings; + +@ffi.Native() +external final DERItem oidPrivateKeyUsagePeriod; + +@ffi.Native() +external final DERItem oidQtCps; + +@ffi.Native() +external final DERItem oidQtUNotice; + +@ffi.Native() +external final DERItem oidRsa; + +@ffi.Native() +external final DERItem oidSha1; + +@ffi.Native() +external final DERItem oidSha1Dsa; + +@ffi.Native() +external final DERItem oidSha1DsaCommonOIW; + +@ffi.Native() +external final DERItem oidSha1DsaOIW; + +@ffi.Native() +external final DERItem oidSha1Ecdsa; + +@ffi.Native() +external final DERItem oidSha1Fee; + +@ffi.Native() +external final DERItem oidSha1Rsa; + +@ffi.Native() +external final DERItem oidSha1RsaOIW; + +@ffi.Native() +external final DERItem oidSha224; + +@ffi.Native() +external final DERItem oidSha224Ecdsa; + +@ffi.Native() +external final DERItem oidSha224Rsa; + +@ffi.Native() +external final DERItem oidSha256; + +@ffi.Native() +external final DERItem oidSha256Ecdsa; + +@ffi.Native() +external final DERItem oidSha256Rsa; + +@ffi.Native() +external final DERItem oidSha384; + +@ffi.Native() +external final DERItem oidSha384Ecdsa; + +@ffi.Native() +external final DERItem oidSha384Rsa; + +@ffi.Native() +external final DERItem oidSha512; + +@ffi.Native() +external final DERItem oidSha512Ecdsa; + +@ffi.Native() +external final DERItem oidSha512Rsa; + +@ffi.Native() +external final DERItem oidStateOrProvinceName; + +@ffi.Native() +external final DERItem oidSubjectAltName; + +@ffi.Native() +external final DERItem oidSubjectInfoAccess; + +@ffi.Native() +external final DERItem oidSubjectKeyIdentifier; + +@ffi.Native, ffi.Int)>() +external int open(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int, ffi.Int) +>() +external int open_dprotected_np( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer>, + ffi.Pointer, + ) +>() +external ffi.Pointer open_memstream( + ffi.Pointer> __bufp, + ffi.Pointer __sizep, +); + +@ffi.Native, ffi.Int)>() +external int openat(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) +>() +external int openat_authenticated_np( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int, ffi.Int) +>() +external int openat_dprotected_np( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, +); + +@ffi.Native, ffi.Int, filesec_t)>() +external int openx_np(ffi.Pointer arg0, int arg1, filesec_t arg2); + +@ffi.Native>() +external ffi.Pointer optarg; + +@ffi.Native() +external int opterr; + +@ffi.Native() +external int optind; + +@ffi.Native() +external int optopt; + +@ffi.Native() +external int optreset; + +@ffi.Native)>() +external void os_release(ffi.Pointer object); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer os_retain(ffi.Pointer object); + +@ffi.Native(symbol: 'os_workgroup_cancel') +external void _os_workgroup_cancel(os_workgroup_t wg); + +void os_workgroup_cancel(Dartos_workgroup_t wg) { + final _$$ref = wg.ref; + return _os_workgroup_cancel(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'os_workgroup_copy_port', +) +external int _os_workgroup_copy_port( + os_workgroup_t wg, + ffi.Pointer mach_port_out, +); + +int os_workgroup_copy_port( + Dartos_workgroup_t wg, + ffi.Pointer mach_port_out, +) { + final _$$ref = wg.ref; + return _os_workgroup_copy_port(_$$ref.pointer, mach_port_out); +} + +@ffi.Native, mach_port_t)>( + symbol: 'os_workgroup_create_with_port', +) +external os_workgroup_t _os_workgroup_create_with_port( + ffi.Pointer name, + int mach_port, +); + +Dartos_workgroup_t? os_workgroup_create_with_port( + ffi.Pointer name, + Dart__darwin_natural_t mach_port, +) { + return _os_workgroup_create_with_port(name, mach_port).address == 0 + ? null + : OS_os_workgroup.fromPointer( + _os_workgroup_create_with_port(name, mach_port), + retain: false, + release: true, + ); +} + +@ffi.Native, os_workgroup_t)>( + symbol: 'os_workgroup_create_with_workgroup', +) +external os_workgroup_t _os_workgroup_create_with_workgroup( + ffi.Pointer name, + os_workgroup_t wg, +); + +Dartos_workgroup_t? os_workgroup_create_with_workgroup( + ffi.Pointer name, + Dartos_workgroup_t wg, +) { + final _$$ref = wg.ref; + return _os_workgroup_create_with_workgroup(name, _$$ref.pointer).address == 0 + ? null + : OS_os_workgroup.fromPointer( + _os_workgroup_create_with_workgroup(name, _$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + os_workgroup_t, + ffi.Pointer, + ) +>(symbol: 'os_workgroup_get_working_arena') +external ffi.Pointer _os_workgroup_get_working_arena( + os_workgroup_t wg, + ffi.Pointer index_out, +); + +ffi.Pointer os_workgroup_get_working_arena( + Dartos_workgroup_t wg, + ffi.Pointer index_out, +) { + final _$$ref = wg.ref; + return _os_workgroup_get_working_arena(_$$ref.pointer, index_out); +} + +@ffi.Native< + ffi.Int Function(os_workgroup_interval_t, os_workgroup_interval_data_t) +>(symbol: 'os_workgroup_interval_finish') +external int _os_workgroup_interval_finish( + os_workgroup_interval_t wg, + os_workgroup_interval_data_t data, +); + +int os_workgroup_interval_finish( + Dartos_workgroup_interval_t wg, + os_workgroup_interval_data_t data, +) { + final _$$ref = wg.ref; + return _os_workgroup_interval_finish(_$$ref.pointer, data); +} + +@ffi.Native< + ffi.Int Function( + os_workgroup_interval_t, + ffi.Uint64, + ffi.Uint64, + os_workgroup_interval_data_t, + ) +>(symbol: 'os_workgroup_interval_start') +external int _os_workgroup_interval_start( + os_workgroup_interval_t wg, + int start, + int deadline, + os_workgroup_interval_data_t data, +); + +int os_workgroup_interval_start( + Dartos_workgroup_interval_t wg, + int start, + int deadline, + os_workgroup_interval_data_t data, +) { + final _$$ref = wg.ref; + return _os_workgroup_interval_start(_$$ref.pointer, start, deadline, data); +} + +@ffi.Native< + ffi.Int Function( + os_workgroup_interval_t, + ffi.Uint64, + os_workgroup_interval_data_t, + ) +>(symbol: 'os_workgroup_interval_update') +external int _os_workgroup_interval_update( + os_workgroup_interval_t wg, + int deadline, + os_workgroup_interval_data_t data, +); + +int os_workgroup_interval_update( + Dartos_workgroup_interval_t wg, + int deadline, + os_workgroup_interval_data_t data, +) { + final _$$ref = wg.ref; + return _os_workgroup_interval_update(_$$ref.pointer, deadline, data); +} + +@ffi.Native( + symbol: 'os_workgroup_join', +) +external int _os_workgroup_join( + os_workgroup_t wg, + os_workgroup_join_token_t token_out, +); + +int os_workgroup_join( + Dartos_workgroup_t wg, + os_workgroup_join_token_t token_out, +) { + final _$$ref = wg.ref; + return _os_workgroup_join(_$$ref.pointer, token_out); +} + +@ffi.Native( + symbol: 'os_workgroup_leave', +) +external void _os_workgroup_leave( + os_workgroup_t wg, + os_workgroup_join_token_t token, +); + +void os_workgroup_leave( + Dartos_workgroup_t wg, + os_workgroup_join_token_t token, +) { + final _$$ref = wg.ref; + return _os_workgroup_leave(_$$ref.pointer, token); +} + +@ffi.Native( + symbol: 'os_workgroup_max_parallel_threads', +) +external int _os_workgroup_max_parallel_threads( + os_workgroup_t wg, + os_workgroup_mpt_attr_t attr, +); + +int os_workgroup_max_parallel_threads( + Dartos_workgroup_t wg, + os_workgroup_mpt_attr_t attr, +) { + final _$$ref = wg.ref; + return _os_workgroup_max_parallel_threads(_$$ref.pointer, attr); +} + +@ffi.Native< + os_workgroup_parallel_t Function(ffi.Pointer, os_workgroup_attr_t) +>(symbol: 'os_workgroup_parallel_create') +external os_workgroup_parallel_t _os_workgroup_parallel_create( + ffi.Pointer name, + os_workgroup_attr_t attr, +); + +Dartos_workgroup_parallel_t? os_workgroup_parallel_create( + ffi.Pointer name, + os_workgroup_attr_t attr, +) { + return _os_workgroup_parallel_create(name, attr).address == 0 + ? null + : OS_os_workgroup.fromPointer( + _os_workgroup_parallel_create(name, attr), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Int Function( + os_workgroup_t, + ffi.Pointer, + ffi.Uint32, + os_workgroup_working_arena_destructor_t, + ) +>(symbol: 'os_workgroup_set_working_arena') +external int _os_workgroup_set_working_arena( + os_workgroup_t wg, + ffi.Pointer arena, + int max_workers, + os_workgroup_working_arena_destructor_t destructor, +); + +int os_workgroup_set_working_arena( + Dartos_workgroup_t wg, + ffi.Pointer arena, + int max_workers, + os_workgroup_working_arena_destructor_t destructor, +) { + final _$$ref = wg.ref; + return _os_workgroup_set_working_arena( + _$$ref.pointer, + arena, + max_workers, + destructor, + ); +} + +@ffi.Native( + symbol: 'os_workgroup_testcancel', +) +external bool _os_workgroup_testcancel(os_workgroup_t wg); + +bool os_workgroup_testcancel(Dartos_workgroup_t wg) { + final _$$ref = wg.ref; + return _os_workgroup_testcancel(_$$ref.pointer); +} + +@ffi.Native)>() +external void panic(ffi.Pointer arg0); + +@ffi.Native() +external void panic_init(int arg0); + +@ffi.Native, ffi.Int)>() +external int pathconf(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int pause(); + +@ffi.Native)>() +external int pclose(ffi.Pointer arg0); + +@ffi.Native)>() +external void perror(ffi.Pointer arg0); + +@ffi.Native)>() +external void pfctlinput(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external final double pi; + +@ffi.Native)>() +external int pid_for_task(int t, ffi.Pointer x); + +@ffi.Native)>() +external int pipe(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer popen( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int posix2time(int arg0); + +@ffi.Native, ffi.Size, ffi.Int)>() +external int posix_madvise(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native< + ffi.Int Function(ffi.Pointer>, ffi.Size, ffi.Size) +>() +external int posix_memalign( + ffi.Pointer> __memptr, + int __alignment, + int __size, +); + +@ffi.Native() +external int posix_openpt(int arg0); + +@ffi.Native() +external double pow(double arg0, double arg1); + +@ffi.Native() +external double powf(double arg0, double arg1); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native)>() +external void ppdClose(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer>>, + ) +>(symbol: 'ppdCollect') +external int _ppdCollect( + ffi.Pointer ppd, + int section, + ffi.Pointer>> choices, +); + +int ppdCollect( + ffi.Pointer ppd, + ppd_section_e section, + ffi.Pointer>> choices, +) { + return _ppdCollect(ppd, section.value, choices); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Float, + ffi.Pointer>>, + ) +>(symbol: 'ppdCollect2') +external int _ppdCollect2( + ffi.Pointer ppd, + int section, + double min_order, + ffi.Pointer>> choices, +); + +int ppdCollect2( + ffi.Pointer ppd, + ppd_section_e section, + double min_order, + ffi.Pointer>> choices, +) { + return _ppdCollect2(ppd, section.value, min_order, choices); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native)>() +external int ppdConflicts(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt) +>(symbol: 'ppdEmit') +external int _ppdEmit( + ffi.Pointer ppd, + ffi.Pointer fp, + int section, +); + +int ppdEmit( + ffi.Pointer ppd, + ffi.Pointer fp, + ppd_section_e section, +) { + return _ppdEmit(ppd, fp, section.value); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ffi.Float, + ) +>(symbol: 'ppdEmitAfterOrder') +external int _ppdEmitAfterOrder( + ffi.Pointer ppd, + ffi.Pointer fp, + int section, + int limit, + double min_order, +); + +int ppdEmitAfterOrder( + ffi.Pointer ppd, + ffi.Pointer fp, + ppd_section_e section, + int limit, + double min_order, +) { + return _ppdEmitAfterOrder(ppd, fp, section.value, limit, min_order); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.UnsignedInt) +>(symbol: 'ppdEmitFd') +external int _ppdEmitFd(ffi.Pointer ppd, int fd, int section); + +int ppdEmitFd(ffi.Pointer ppd, int fd, ppd_section_e section) { + return _ppdEmitFd(ppd, fd, section.value); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ppdEmitJCL( + ffi.Pointer ppd, + ffi.Pointer fp, + int job_id, + ffi.Pointer user, + ffi.Pointer title, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native, ffi.Pointer)>() +external int ppdEmitJCLEnd(ffi.Pointer ppd, ffi.Pointer fp); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Float, + ) +>(symbol: 'ppdEmitString') +external ffi.Pointer _ppdEmitString( + ffi.Pointer ppd, + int section, + double min_order, +); + +ffi.Pointer ppdEmitString( + ffi.Pointer ppd, + ppd_section_e section, + double min_order, +) { + return _ppdEmitString(ppd, section.value, min_order); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.UnsignedInt)>( + symbol: 'ppdErrorString', +) +external ffi.Pointer _ppdErrorString(int status); + +ffi.Pointer ppdErrorString(ppd_status_e status) { + return _ppdErrorString(status.value); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindAttr( + ffi.Pointer ppd, + ffi.Pointer name, + ffi.Pointer spec, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindChoice( + ffi.Pointer o, + ffi.Pointer option, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindCustomOption( + ffi.Pointer ppd, + ffi.Pointer keyword, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindCustomParam( + ffi.Pointer opt, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindMarkedChoice( + ffi.Pointer ppd, + ffi.Pointer keyword, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindNextAttr( + ffi.Pointer ppd, + ffi.Pointer name, + ffi.Pointer spec, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindOption( + ffi.Pointer ppd, + ffi.Pointer keyword, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdFirstCustomParam( + ffi.Pointer opt, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdFirstOption(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ppdInstallableConflict( + ffi.Pointer ppd, + ffi.Pointer option, + ffi.Pointer choice, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ppdIsMarked( + ffi.Pointer ppd, + ffi.Pointer keyword, + ffi.Pointer option, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native)>( + symbol: 'ppdLastError', +) +external int _ppdLastError(ffi.Pointer line); + +ppd_status_e ppdLastError(ffi.Pointer line) { + return ppd_status_e.fromValue(_ppdLastError(line)); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native)>() +external int ppdLocalize(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdLocalizeAttr( + ffi.Pointer ppd, + ffi.Pointer keyword, + ffi.Pointer spec, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer ppdLocalizeIPPReason( + ffi.Pointer ppd, + ffi.Pointer reason, + ffi.Pointer scheme, + ffi.Pointer buffer, + int bufsize, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer ppdLocalizeMarkerName( + ffi.Pointer ppd, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native)>() +external void ppdMarkDefaults(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ppdMarkOption( + ffi.Pointer ppd, + ffi.Pointer keyword, + ffi.Pointer option, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdNextCustomParam( + ffi.Pointer opt, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdNextOption(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdOpen(ffi.Pointer fp); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdOpen2(ffi.Pointer fp); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer ppdOpenFd(int fd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdOpenFile(ffi.Pointer filename); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Float Function(ffi.Pointer, ffi.Pointer) +>() +external double ppdPageLength( + ffi.Pointer ppd, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdPageSize( + ffi.Pointer ppd, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ppdPageSizeLimits( + ffi.Pointer ppd, + ffi.Pointer minimum, + ffi.Pointer maximum, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Float Function(ffi.Pointer, ffi.Pointer) +>() +external double ppdPageWidth( + ffi.Pointer ppd, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native(symbol: 'ppdSetConformance') +external void _ppdSetConformance(int c); + +void ppdSetConformance(ppd_conform_e c) { + return _ppdSetConformance(c.value); +} + +@ffi.Native, ffi.Size, off_t)>() +external int pread( + int __fd, + ffi.Pointer __buf, + int __nbyte, + int __offset, +); + +@ffi.Native)>() +external int printf(ffi.Pointer arg0); + +@ffi.Native() +external int processor_assign(int processor, int new_set, int wait$2); + +@ffi.Native< + kern_return_t Function(processor_t, processor_info_t, mach_msg_type_number_t) +>() +external int processor_control( + int processor, + processor_info_t processor_cmd, + int processor_cmdCnt, +); + +@ffi.Native() +external int processor_exit(int processor); + +@ffi.Native< + kern_return_t Function(processor_t, ffi.Pointer) +>() +external int processor_get_assignment( + int processor, + ffi.Pointer assigned_set, +); + +@ffi.Native< + kern_return_t Function( + processor_t, + processor_flavor_t, + ffi.Pointer, + processor_info_t, + ffi.Pointer, + ) +>() +external int processor_info( + int processor, + int flavor, + ffi.Pointer host, + processor_info_t processor_info_out, + ffi.Pointer processor_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + host_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int processor_set_create( + int host, + ffi.Pointer new_set, + ffi.Pointer new_name, +); + +@ffi.Native)>() +external int processor_set_default( + int host, + ffi.Pointer default_set, +); + +@ffi.Native() +external int processor_set_destroy(int set); + +@ffi.Native< + kern_return_t Function( + processor_set_name_t, + ffi.Int, + ffi.Pointer, + processor_set_info_t, + ffi.Pointer, + ) +>() +external int processor_set_info( + int set_name, + int flavor, + ffi.Pointer host, + processor_set_info_t info_out, + ffi.Pointer info_outCnt, +); + +@ffi.Native() +external int processor_set_max_priority( + int processor_set, + int max_priority, + int change_threads, +); + +@ffi.Native< + kern_return_t Function( + processor_set_t, + processor_set_flavor_t, + processor_set_info_t, + mach_msg_type_number_t, + boolean_t, + ) +>() +external int processor_set_policy_control( + int pset, + int flavor, + processor_set_info_t policy_info, + int policy_infoCnt, + int change, +); + +@ffi.Native() +external int processor_set_policy_disable( + int processor_set, + int policy, + int change_threads, +); + +@ffi.Native() +external int processor_set_policy_enable(int processor_set, int policy); + +@ffi.Native< + kern_return_t Function( + processor_set_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int processor_set_stack_usage( + int pset, + ffi.Pointer ltotal, + ffi.Pointer space, + ffi.Pointer resident, + ffi.Pointer maxusage, + ffi.Pointer maxstack, +); + +@ffi.Native< + kern_return_t Function( + processor_set_name_t, + processor_set_flavor_t, + processor_set_info_t, + ffi.Pointer, + ) +>() +external int processor_set_statistics( + int pset, + int flavor, + processor_set_info_t info_out, + ffi.Pointer info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + processor_set_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int processor_set_tasks( + int processor_set, + ffi.Pointer task_list, + ffi.Pointer task_listCnt, +); + +@ffi.Native< + kern_return_t Function( + processor_set_t, + mach_task_flavor_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int processor_set_tasks_with_flavor( + int processor_set, + int flavor, + ffi.Pointer task_list, + ffi.Pointer task_listCnt, +); + +@ffi.Native< + kern_return_t Function( + processor_set_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int processor_set_threads( + int processor_set, + ffi.Pointer thread_list, + ffi.Pointer thread_listCnt, +); + +@ffi.Native() +external int processor_start(int processor); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.UnsignedLong, + ffi.UnsignedInt, + ) +>() +external int profil( + ffi.Pointer arg0, + int __bufsiz, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int pselect( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native)>() +external void psignal(int arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) +>() +external void psort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'psort_b') +external void _psort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer __compar, +); + +void psort_b( + ffi.Pointer __base, + int __nel, + int __width, + objc.ObjCBlock, ffi.Pointer)> + __compar, +) { + final _$$ref = __compar.ref; + return _psort_b(__base, __nel, __width, _$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) +>() +external void psort_r( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer arg3, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + __compar, +); + +@ffi.Native, ffi.Pointer)>() +external int pthread_getugid_np( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int pthread_kill(pthread_t arg0, int arg1); + +@Deprecated( + 'Use of per-thread security contexts is error-prone and discouraged.', +) +@ffi.Native() +external int pthread_setugid_np(int arg0, int arg1); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int pthread_sigmask( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer ptsname(int arg0); + +@ffi.Native, ffi.Size)>() +external int ptsname_r(int fildes, ffi.Pointer buffer, int buflen); + +@ffi.Native)>() +external int putc(int arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external int putc_unlocked(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external int putchar(int arg0); + +@ffi.Native() +external int putchar_unlocked(int arg0); + +@ffi.Native)>() +external int putenv(ffi.Pointer arg0); + +@ffi.Native)>() +external int puts(ffi.Pointer arg0); + +@ffi.Native)>() +external int putw(int arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>() +external int pwgFormatSizeName( + ffi.Pointer keyword, + int keysize, + ffi.Pointer prefix, + ffi.Pointer name, + int width, + int length, + ffi.Pointer units, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int pwgInitSize( + ffi.Pointer size, + ffi.Pointer job, + ffi.Pointer margins_set, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer pwgMediaForLegacy( + ffi.Pointer legacy, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer pwgMediaForPPD(ffi.Pointer ppd); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer pwgMediaForPWG(ffi.Pointer pwg); + +@ffi.Native Function(ffi.Int, ffi.Int)>() +external ffi.Pointer pwgMediaForSize(int width, int length); + +@ffi.Native, ffi.Size, off_t)>() +external int pwrite( + int __fd, + ffi.Pointer __buf, + int __nbyte, + int __offset, +); + +@ffi.Native(symbol: 'qos_class_main') +external int _qos_class_main(); + +qos_class_t qos_class_main() { + return qos_class_t.fromValue(_qos_class_main()); +} + +@ffi.Native(symbol: 'qos_class_self') +external int _qos_class_self(); + +qos_class_t qos_class_self() { + return qos_class_t.fromValue(_qos_class_self()); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) +>() +external void qsort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'qsort_b') +external void _qsort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer __compar, +); + +void qsort_b( + ffi.Pointer __base, + int __nel, + int __width, + objc.ObjCBlock, ffi.Pointer)> + __compar, +) { + final _$$ref = __compar.ref; + return _qsort_b(__base, __nel, __width, _$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) +>() +external void qsort_r( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer arg3, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + __compar, +); + +@ffi.Native() +external void quick_exit(int arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int radixsort( + ffi.Pointer> __base, + int __nel, + ffi.Pointer __table, + int __endbyte, +); + +@ffi.Native() +external int raise(int arg0); + +@ffi.Native() +external int rand(); + +@ffi.Native)>() +external int rand_r(ffi.Pointer arg0); + +@ffi.Native() +external int random(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external double randomx(ffi.Pointer x); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int rcmd( + ffi.Pointer> arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external int rcmd_af( + ffi.Pointer> arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + int arg6, +); + +@ffi.Native, ffi.Size)>() +external int read(int arg0, ffi.Pointer arg1, int __nbyte); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int readlink( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __bufsize, +); + +@ffi.Native< + ssize_t Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external int readlinkat( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native Function(ffi.Pointer, ffi.Size)>() +external ffi.Pointer realloc(ffi.Pointer __ptr, int __size); + +@ffi.Native Function(ffi.Pointer, ffi.Size)>() +external ffi.Pointer reallocf( + ffi.Pointer __ptr, + int __size, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer realpath( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int reboot(int arg0); + +@ffi.Native< + ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size, ffi.Int) +>() +external int recv(int arg0, ffi.Pointer arg1, int arg2, int arg3); + +@ffi.Native< + ssize_t Function( + ffi.Int, + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int recvfrom( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native, ffi.Int)>() +external int recvmsg(int arg0, ffi.Pointer arg1, int arg2); + +@Deprecated('Deprecated') +@ffi.Native() +external int relation(double x, double y); + +@ffi.Native() +external double remainder(double arg0, double arg1); + +@ffi.Native() +external double remainderf(double arg0, double arg1); + +@ffi.Native)>() +external int remove(ffi.Pointer arg0); + +@ffi.Native)>() +external double remquo(double arg0, double arg1, ffi.Pointer arg2); + +@ffi.Native)>() +external double remquof(double arg0, double arg1, ffi.Pointer arg2); + +@ffi.Native, ffi.Pointer)>() +external int rename(ffi.Pointer __old, ffi.Pointer __new); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int renameat( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int renameatx_np( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + int arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int renamex_np( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native)>() +external int revoke(ffi.Pointer arg0); + +@ffi.Native)>() +external void rewind(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer rindex(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external double rint(double arg0); + +@ffi.Native() +external double rintf(double arg0); + +@ffi.Native)>() +external int rmdir(ffi.Pointer arg0); + +@ffi.Native() +external double round(double arg0); + +@ffi.Native() +external double roundf(double arg0); + +@ffi.Native)>() +external int rpmatch(ffi.Pointer arg0); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int rresvport(ffi.Pointer arg0); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Int)>() +external int rresvport_af(ffi.Pointer arg0, int arg1); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ruserok( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer sbrk(int arg0); + +@ffi.Native() +external double scalb(double arg0, double arg1); + +@ffi.Native() +external double scalbln(double arg0, int arg1); + +@ffi.Native() +external double scalblnf(double arg0, int arg1); + +@ffi.Native() +external double scalbn(double arg0, int arg1); + +@ffi.Native() +external double scalbnf(double arg0, int arg1); + +@ffi.Native)>() +external int scanf(ffi.Pointer arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external int searchfs( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ffi.Pointer arg5, +); + +@ffi.Native( + symbol: 'sec_certificate_copy_ref', +) +external SecCertificateRef _sec_certificate_copy_ref( + sec_certificate_t certificate, +); + +SecCertificateRef sec_certificate_copy_ref(Dartsec_certificate_t certificate) { + final _$$ref = certificate.ref; + return _sec_certificate_copy_ref(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'sec_certificate_create', +) +external sec_certificate_t _sec_certificate_create( + SecCertificateRef certificate, +); + +Dartsec_certificate_t? sec_certificate_create(SecCertificateRef certificate) { + return _sec_certificate_create(certificate).address == 0 + ? null + : objc.NSObject.fromPointer( + _sec_certificate_create(certificate), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'sec_identity_access_certificates', +) +external bool _sec_identity_access_certificates( + sec_identity_t identity, + ffi.Pointer handler, +); + +bool sec_identity_access_certificates( + Dartsec_identity_t identity, + objc.ObjCBlock handler, +) { + final _$$ref = identity.ref; + final _$$ref$1 = handler.ref; + return _sec_identity_access_certificates(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'sec_identity_copy_certificates_ref', +) +external CFArrayRef _sec_identity_copy_certificates_ref( + sec_identity_t identity, +); + +CFArrayRef sec_identity_copy_certificates_ref(Dartsec_identity_t identity) { + final _$$ref = identity.ref; + return _sec_identity_copy_certificates_ref(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'sec_identity_copy_ref', +) +external SecIdentityRef _sec_identity_copy_ref(sec_identity_t identity); + +SecIdentityRef sec_identity_copy_ref(Dartsec_identity_t identity) { + final _$$ref = identity.ref; + return _sec_identity_copy_ref(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'sec_identity_create', +) +external sec_identity_t _sec_identity_create(SecIdentityRef identity); + +Dartsec_identity_t? sec_identity_create(SecIdentityRef identity) { + return _sec_identity_create(identity).address == 0 + ? null + : objc.NSObject.fromPointer( + _sec_identity_create(identity), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'sec_identity_create_with_certificates', +) +external sec_identity_t _sec_identity_create_with_certificates( + SecIdentityRef identity, + CFArrayRef certificates, +); + +Dartsec_identity_t? sec_identity_create_with_certificates( + SecIdentityRef identity, + CFArrayRef certificates, +) { + return _sec_identity_create_with_certificates( + identity, + certificates, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _sec_identity_create_with_certificates(identity, certificates), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) +>(symbol: 'sec_protocol_metadata_access_distinguished_names') +external bool _sec_protocol_metadata_access_distinguished_names( + sec_protocol_metadata_t metadata, + ffi.Pointer handler, +); + +bool sec_protocol_metadata_access_distinguished_names( + Dartsec_protocol_metadata_t metadata, + objc.ObjCBlock handler, +) { + final _$$ref = metadata.ref; + final _$$ref$1 = handler.ref; + return _sec_protocol_metadata_access_distinguished_names( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) +>(symbol: 'sec_protocol_metadata_access_ocsp_response') +external bool _sec_protocol_metadata_access_ocsp_response( + sec_protocol_metadata_t metadata, + ffi.Pointer handler, +); + +bool sec_protocol_metadata_access_ocsp_response( + Dartsec_protocol_metadata_t metadata, + objc.ObjCBlock handler, +) { + final _$$ref = metadata.ref; + final _$$ref$1 = handler.ref; + return _sec_protocol_metadata_access_ocsp_response( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) +>(symbol: 'sec_protocol_metadata_access_peer_certificate_chain') +external bool _sec_protocol_metadata_access_peer_certificate_chain( + sec_protocol_metadata_t metadata, + ffi.Pointer handler, +); + +bool sec_protocol_metadata_access_peer_certificate_chain( + Dartsec_protocol_metadata_t metadata, + objc.ObjCBlock handler, +) { + final _$$ref = metadata.ref; + final _$$ref$1 = handler.ref; + return _sec_protocol_metadata_access_peer_certificate_chain( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) +>(symbol: 'sec_protocol_metadata_access_pre_shared_keys') +external bool _sec_protocol_metadata_access_pre_shared_keys( + sec_protocol_metadata_t metadata, + ffi.Pointer handler, +); + +bool sec_protocol_metadata_access_pre_shared_keys( + Dartsec_protocol_metadata_t metadata, + objc.ObjCBlock handler, +) { + final _$$ref = metadata.ref; + final _$$ref$1 = handler.ref; + return _sec_protocol_metadata_access_pre_shared_keys( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) +>(symbol: 'sec_protocol_metadata_access_supported_signature_algorithms') +external bool _sec_protocol_metadata_access_supported_signature_algorithms( + sec_protocol_metadata_t metadata, + ffi.Pointer handler, +); + +bool sec_protocol_metadata_access_supported_signature_algorithms( + Dartsec_protocol_metadata_t metadata, + objc.ObjCBlock handler, +) { + final _$$ref = metadata.ref; + final _$$ref$1 = handler.ref; + return _sec_protocol_metadata_access_supported_signature_algorithms( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) +>(symbol: 'sec_protocol_metadata_challenge_parameters_are_equal') +external bool _sec_protocol_metadata_challenge_parameters_are_equal( + sec_protocol_metadata_t metadataA, + sec_protocol_metadata_t metadataB, +); + +bool sec_protocol_metadata_challenge_parameters_are_equal( + Dartsec_protocol_metadata_t metadataA, + Dartsec_protocol_metadata_t metadataB, +) { + final _$$ref = metadataA.ref; + final _$$ref$1 = metadataB.ref; + return _sec_protocol_metadata_challenge_parameters_are_equal( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native Function(sec_protocol_metadata_t)>( + symbol: 'sec_protocol_metadata_copy_negotiated_protocol', +) +external ffi.Pointer _sec_protocol_metadata_copy_negotiated_protocol( + sec_protocol_metadata_t metadata, +); + +ffi.Pointer sec_protocol_metadata_copy_negotiated_protocol( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_copy_negotiated_protocol(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'sec_protocol_metadata_copy_peer_public_key', +) +external dispatch_data_t _sec_protocol_metadata_copy_peer_public_key( + sec_protocol_metadata_t metadata, +); + +Dartdispatch_data_t? sec_protocol_metadata_copy_peer_public_key( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_copy_peer_public_key(_$$ref.pointer).address == + 0 + ? null + : objc.NSObject.fromPointer( + _sec_protocol_metadata_copy_peer_public_key(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native Function(sec_protocol_metadata_t)>( + symbol: 'sec_protocol_metadata_copy_server_name', +) +external ffi.Pointer _sec_protocol_metadata_copy_server_name( + sec_protocol_metadata_t metadata, +); + +ffi.Pointer sec_protocol_metadata_copy_server_name( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_copy_server_name(_$$ref.pointer); +} + +@ffi.Native< + dispatch_data_t Function( + sec_protocol_metadata_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'sec_protocol_metadata_create_secret') +external dispatch_data_t _sec_protocol_metadata_create_secret( + sec_protocol_metadata_t metadata, + int label_len, + ffi.Pointer label, + int exporter_length, +); + +Dartdispatch_data_t? sec_protocol_metadata_create_secret( + Dartsec_protocol_metadata_t metadata, + int label_len, + ffi.Pointer label, + int exporter_length, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_create_secret( + _$$ref.pointer, + label_len, + label, + exporter_length, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _sec_protocol_metadata_create_secret( + _$$ref.pointer, + label_len, + label, + exporter_length, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_data_t Function( + sec_protocol_metadata_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'sec_protocol_metadata_create_secret_with_context') +external dispatch_data_t _sec_protocol_metadata_create_secret_with_context( + sec_protocol_metadata_t metadata, + int label_len, + ffi.Pointer label, + int context_len, + ffi.Pointer context, + int exporter_length, +); + +Dartdispatch_data_t? sec_protocol_metadata_create_secret_with_context( + Dartsec_protocol_metadata_t metadata, + int label_len, + ffi.Pointer label, + int context_len, + ffi.Pointer context, + int exporter_length, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_create_secret_with_context( + _$$ref.pointer, + label_len, + label, + context_len, + context, + exporter_length, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _sec_protocol_metadata_create_secret_with_context( + _$$ref.pointer, + label_len, + label, + context_len, + context, + exporter_length, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_metadata_get_early_data_accepted', +) +external bool _sec_protocol_metadata_get_early_data_accepted( + sec_protocol_metadata_t metadata, +); + +bool sec_protocol_metadata_get_early_data_accepted( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_get_early_data_accepted(_$$ref.pointer); +} + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'sec_protocol_metadata_get_negotiated_ciphersuite', +) +external int _sec_protocol_metadata_get_negotiated_ciphersuite( + sec_protocol_metadata_t metadata, +); + +DartSSLCipherSuite sec_protocol_metadata_get_negotiated_ciphersuite( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_get_negotiated_ciphersuite(_$$ref.pointer); +} + +@Deprecated('Deprecated') +@ffi.Native Function(sec_protocol_metadata_t)>( + symbol: 'sec_protocol_metadata_get_negotiated_protocol', +) +external ffi.Pointer _sec_protocol_metadata_get_negotiated_protocol( + sec_protocol_metadata_t metadata, +); + +ffi.Pointer sec_protocol_metadata_get_negotiated_protocol( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_get_negotiated_protocol(_$$ref.pointer); +} + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'sec_protocol_metadata_get_negotiated_protocol_version', +) +external int _sec_protocol_metadata_get_negotiated_protocol_version( + sec_protocol_metadata_t metadata, +); + +SSLProtocol sec_protocol_metadata_get_negotiated_protocol_version( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return SSLProtocol.fromValue( + _sec_protocol_metadata_get_negotiated_protocol_version(_$$ref.pointer), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_metadata_get_negotiated_tls_ciphersuite', +) +external int _sec_protocol_metadata_get_negotiated_tls_ciphersuite( + sec_protocol_metadata_t metadata, +); + +tls_ciphersuite_t sec_protocol_metadata_get_negotiated_tls_ciphersuite( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return tls_ciphersuite_t.fromValue( + _sec_protocol_metadata_get_negotiated_tls_ciphersuite(_$$ref.pointer), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_metadata_get_negotiated_tls_protocol_version', +) +external int _sec_protocol_metadata_get_negotiated_tls_protocol_version( + sec_protocol_metadata_t metadata, +); + +tls_protocol_version_t +sec_protocol_metadata_get_negotiated_tls_protocol_version( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return tls_protocol_version_t.fromValue( + _sec_protocol_metadata_get_negotiated_tls_protocol_version(_$$ref.pointer), + ); +} + +@Deprecated('Deprecated') +@ffi.Native Function(sec_protocol_metadata_t)>( + symbol: 'sec_protocol_metadata_get_server_name', +) +external ffi.Pointer _sec_protocol_metadata_get_server_name( + sec_protocol_metadata_t metadata, +); + +ffi.Pointer sec_protocol_metadata_get_server_name( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_get_server_name(_$$ref.pointer); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) +>(symbol: 'sec_protocol_metadata_peers_are_equal') +external bool _sec_protocol_metadata_peers_are_equal( + sec_protocol_metadata_t metadataA, + sec_protocol_metadata_t metadataB, +); + +bool sec_protocol_metadata_peers_are_equal( + Dartsec_protocol_metadata_t metadataA, + Dartsec_protocol_metadata_t metadataB, +) { + final _$$ref = metadataA.ref; + final _$$ref$1 = metadataB.ref; + return _sec_protocol_metadata_peers_are_equal( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Void Function(sec_protocol_options_t, dispatch_data_t, dispatch_data_t) +>(symbol: 'sec_protocol_options_add_pre_shared_key') +external void _sec_protocol_options_add_pre_shared_key( + sec_protocol_options_t options, + dispatch_data_t psk, + dispatch_data_t psk_identity, +); + +void sec_protocol_options_add_pre_shared_key( + Dartsec_protocol_options_t options, + Dartdispatch_data_t psk, + Dartdispatch_data_t psk_identity, +) { + final _$$ref = options.ref; + final _$$ref$1 = psk.ref; + final _$$ref$2 = psk_identity.ref; + return _sec_protocol_options_add_pre_shared_key( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native)>( + symbol: 'sec_protocol_options_add_tls_application_protocol', +) +external void _sec_protocol_options_add_tls_application_protocol( + sec_protocol_options_t options, + ffi.Pointer application_protocol, +); + +void sec_protocol_options_add_tls_application_protocol( + Dartsec_protocol_options_t options, + ffi.Pointer application_protocol, +) { + final _$$ref = options.ref; + return _sec_protocol_options_add_tls_application_protocol( + _$$ref.pointer, + application_protocol, + ); +} + +@Deprecated('Use sec_protocol_options_append_tls_ciphersuite') +@ffi.Native( + symbol: 'sec_protocol_options_add_tls_ciphersuite', +) +external void _sec_protocol_options_add_tls_ciphersuite( + sec_protocol_options_t options, + int ciphersuite, +); + +void sec_protocol_options_add_tls_ciphersuite( + Dartsec_protocol_options_t options, + DartSSLCipherSuite ciphersuite, +) { + final _$$ref = options.ref; + return _sec_protocol_options_add_tls_ciphersuite(_$$ref.pointer, ciphersuite); +} + +@Deprecated('Use sec_protocol_options_append_tls_ciphersuite_group') +@ffi.Native( + symbol: 'sec_protocol_options_add_tls_ciphersuite_group', +) +external void _sec_protocol_options_add_tls_ciphersuite_group( + sec_protocol_options_t options, + int group, +); + +void sec_protocol_options_add_tls_ciphersuite_group( + Dartsec_protocol_options_t options, + SSLCiphersuiteGroup group, +) { + final _$$ref = options.ref; + return _sec_protocol_options_add_tls_ciphersuite_group( + _$$ref.pointer, + group.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_append_tls_ciphersuite', +) +external void _sec_protocol_options_append_tls_ciphersuite( + sec_protocol_options_t options, + int ciphersuite, +); + +void sec_protocol_options_append_tls_ciphersuite( + Dartsec_protocol_options_t options, + tls_ciphersuite_t ciphersuite, +) { + final _$$ref = options.ref; + return _sec_protocol_options_append_tls_ciphersuite( + _$$ref.pointer, + ciphersuite.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_append_tls_ciphersuite_group', +) +external void _sec_protocol_options_append_tls_ciphersuite_group( + sec_protocol_options_t options, + int group, +); + +void sec_protocol_options_append_tls_ciphersuite_group( + Dartsec_protocol_options_t options, + tls_ciphersuite_group_t group, +) { + final _$$ref = options.ref; + return _sec_protocol_options_append_tls_ciphersuite_group( + _$$ref.pointer, + group.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_are_equal', +) +external bool _sec_protocol_options_are_equal( + sec_protocol_options_t optionsA, + sec_protocol_options_t optionsB, +); + +bool sec_protocol_options_are_equal( + Dartsec_protocol_options_t optionsA, + Dartsec_protocol_options_t optionsB, +) { + final _$$ref = optionsA.ref; + final _$$ref$1 = optionsB.ref; + return _sec_protocol_options_are_equal(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_default_max_dtls_protocol_version', +) +external int _sec_protocol_options_get_default_max_dtls_protocol_version(); + +tls_protocol_version_t +sec_protocol_options_get_default_max_dtls_protocol_version() { + return tls_protocol_version_t.fromValue( + _sec_protocol_options_get_default_max_dtls_protocol_version(), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_default_max_tls_protocol_version', +) +external int _sec_protocol_options_get_default_max_tls_protocol_version(); + +tls_protocol_version_t +sec_protocol_options_get_default_max_tls_protocol_version() { + return tls_protocol_version_t.fromValue( + _sec_protocol_options_get_default_max_tls_protocol_version(), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_default_min_dtls_protocol_version', +) +external int _sec_protocol_options_get_default_min_dtls_protocol_version(); + +tls_protocol_version_t +sec_protocol_options_get_default_min_dtls_protocol_version() { + return tls_protocol_version_t.fromValue( + _sec_protocol_options_get_default_min_dtls_protocol_version(), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_default_min_tls_protocol_version', +) +external int _sec_protocol_options_get_default_min_tls_protocol_version(); + +tls_protocol_version_t +sec_protocol_options_get_default_min_tls_protocol_version() { + return tls_protocol_version_t.fromValue( + _sec_protocol_options_get_default_min_tls_protocol_version(), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_enable_encrypted_client_hello', +) +external bool _sec_protocol_options_get_enable_encrypted_client_hello( + sec_protocol_options_t options, +); + +bool sec_protocol_options_get_enable_encrypted_client_hello( + Dartsec_protocol_options_t options, +) { + final _$$ref = options.ref; + return _sec_protocol_options_get_enable_encrypted_client_hello( + _$$ref.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_quic_use_legacy_codepoint', +) +external bool _sec_protocol_options_get_quic_use_legacy_codepoint( + sec_protocol_options_t options, +); + +bool sec_protocol_options_get_quic_use_legacy_codepoint( + Dartsec_protocol_options_t options, +) { + final _$$ref = options.ref; + return _sec_protocol_options_get_quic_use_legacy_codepoint(_$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_challenge_t, + dispatch_queue_t, + ) +>(symbol: 'sec_protocol_options_set_challenge_block') +external void _sec_protocol_options_set_challenge_block( + sec_protocol_options_t options, + sec_protocol_challenge_t challenge_block, + dispatch_queue_t challenge_queue, +); + +void sec_protocol_options_set_challenge_block( + Dartsec_protocol_options_t options, + Dartsec_protocol_challenge_t challenge_block, + Dartdispatch_queue_t challenge_queue, +) { + final _$$ref = options.ref; + final _$$ref$1 = challenge_block.ref; + final _$$ref$2 = challenge_queue.ref; + return _sec_protocol_options_set_challenge_block( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_enable_encrypted_client_hello', +) +external void _sec_protocol_options_set_enable_encrypted_client_hello( + sec_protocol_options_t options, + bool enable_encrypted_client_hello, +); + +void sec_protocol_options_set_enable_encrypted_client_hello( + Dartsec_protocol_options_t options, + bool enable_encrypted_client_hello, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_enable_encrypted_client_hello( + _$$ref.pointer, + enable_encrypted_client_hello, + ); +} + +@ffi.Native< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_key_update_t, + dispatch_queue_t, + ) +>(symbol: 'sec_protocol_options_set_key_update_block') +external void _sec_protocol_options_set_key_update_block( + sec_protocol_options_t options, + sec_protocol_key_update_t key_update_block, + dispatch_queue_t key_update_queue, +); + +void sec_protocol_options_set_key_update_block( + Dartsec_protocol_options_t options, + Dartsec_protocol_key_update_t key_update_block, + Dartdispatch_queue_t key_update_queue, +) { + final _$$ref = options.ref; + final _$$ref$1 = key_update_block.ref; + final _$$ref$2 = key_update_queue.ref; + return _sec_protocol_options_set_key_update_block( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_local_identity', +) +external void _sec_protocol_options_set_local_identity( + sec_protocol_options_t options, + sec_identity_t identity, +); + +void sec_protocol_options_set_local_identity( + Dartsec_protocol_options_t options, + Dartsec_identity_t identity, +) { + final _$$ref = options.ref; + final _$$ref$1 = identity.ref; + return _sec_protocol_options_set_local_identity( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_max_tls_protocol_version', +) +external void _sec_protocol_options_set_max_tls_protocol_version( + sec_protocol_options_t options, + int version, +); + +void sec_protocol_options_set_max_tls_protocol_version( + Dartsec_protocol_options_t options, + tls_protocol_version_t version, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_max_tls_protocol_version( + _$$ref.pointer, + version.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_min_tls_protocol_version', +) +external void _sec_protocol_options_set_min_tls_protocol_version( + sec_protocol_options_t options, + int version, +); + +void sec_protocol_options_set_min_tls_protocol_version( + Dartsec_protocol_options_t options, + tls_protocol_version_t version, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_min_tls_protocol_version( + _$$ref.pointer, + version.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_peer_authentication_optional', +) +external void _sec_protocol_options_set_peer_authentication_optional( + sec_protocol_options_t options, + bool peer_authentication_optional, +); + +void sec_protocol_options_set_peer_authentication_optional( + Dartsec_protocol_options_t options, + bool peer_authentication_optional, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_peer_authentication_optional( + _$$ref.pointer, + peer_authentication_optional, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_peer_authentication_required', +) +external void _sec_protocol_options_set_peer_authentication_required( + sec_protocol_options_t options, + bool peer_authentication_required, +); + +void sec_protocol_options_set_peer_authentication_required( + Dartsec_protocol_options_t options, + bool peer_authentication_required, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_peer_authentication_required( + _$$ref.pointer, + peer_authentication_required, + ); +} + +@ffi.Native< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_pre_shared_key_selection_t, + dispatch_queue_t, + ) +>(symbol: 'sec_protocol_options_set_pre_shared_key_selection_block') +external void _sec_protocol_options_set_pre_shared_key_selection_block( + sec_protocol_options_t options, + sec_protocol_pre_shared_key_selection_t psk_selection_block, + dispatch_queue_t psk_selection_queue, +); + +void sec_protocol_options_set_pre_shared_key_selection_block( + Dartsec_protocol_options_t options, + Dartsec_protocol_pre_shared_key_selection_t psk_selection_block, + Dartdispatch_queue_t psk_selection_queue, +) { + final _$$ref = options.ref; + final _$$ref$1 = psk_selection_block.ref; + final _$$ref$2 = psk_selection_queue.ref; + return _sec_protocol_options_set_pre_shared_key_selection_block( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_quic_use_legacy_codepoint', +) +external void _sec_protocol_options_set_quic_use_legacy_codepoint( + sec_protocol_options_t options, + bool quic_use_legacy_codepoint, +); + +void sec_protocol_options_set_quic_use_legacy_codepoint( + Dartsec_protocol_options_t options, + bool quic_use_legacy_codepoint, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_quic_use_legacy_codepoint( + _$$ref.pointer, + quic_use_legacy_codepoint, + ); +} + +@Deprecated('DHE ciphersuites are no longer supported') +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_diffie_hellman_parameters', +) +external void _sec_protocol_options_set_tls_diffie_hellman_parameters( + sec_protocol_options_t options, + dispatch_data_t params, +); + +void sec_protocol_options_set_tls_diffie_hellman_parameters( + Dartsec_protocol_options_t options, + Dartdispatch_data_t params, +) { + final _$$ref = options.ref; + final _$$ref$1 = params.ref; + return _sec_protocol_options_set_tls_diffie_hellman_parameters( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_false_start_enabled', +) +external void _sec_protocol_options_set_tls_false_start_enabled( + sec_protocol_options_t options, + bool false_start_enabled, +); + +void sec_protocol_options_set_tls_false_start_enabled( + Dartsec_protocol_options_t options, + bool false_start_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_false_start_enabled( + _$$ref.pointer, + false_start_enabled, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_is_fallback_attempt', +) +external void _sec_protocol_options_set_tls_is_fallback_attempt( + sec_protocol_options_t options, + bool is_fallback_attempt, +); + +void sec_protocol_options_set_tls_is_fallback_attempt( + Dartsec_protocol_options_t options, + bool is_fallback_attempt, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_is_fallback_attempt( + _$$ref.pointer, + is_fallback_attempt, + ); +} + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_max_version', +) +external void _sec_protocol_options_set_tls_max_version( + sec_protocol_options_t options, + int version, +); + +void sec_protocol_options_set_tls_max_version( + Dartsec_protocol_options_t options, + SSLProtocol version, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_max_version( + _$$ref.pointer, + version.value, + ); +} + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_min_version', +) +external void _sec_protocol_options_set_tls_min_version( + sec_protocol_options_t options, + int version, +); + +void sec_protocol_options_set_tls_min_version( + Dartsec_protocol_options_t options, + SSLProtocol version, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_min_version( + _$$ref.pointer, + version.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_ocsp_enabled', +) +external void _sec_protocol_options_set_tls_ocsp_enabled( + sec_protocol_options_t options, + bool ocsp_enabled, +); + +void sec_protocol_options_set_tls_ocsp_enabled( + Dartsec_protocol_options_t options, + bool ocsp_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_ocsp_enabled( + _$$ref.pointer, + ocsp_enabled, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_pre_shared_key_identity_hint', +) +external void _sec_protocol_options_set_tls_pre_shared_key_identity_hint( + sec_protocol_options_t options, + dispatch_data_t psk_identity_hint, +); + +void sec_protocol_options_set_tls_pre_shared_key_identity_hint( + Dartsec_protocol_options_t options, + Dartdispatch_data_t psk_identity_hint, +) { + final _$$ref = options.ref; + final _$$ref$1 = psk_identity_hint.ref; + return _sec_protocol_options_set_tls_pre_shared_key_identity_hint( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_renegotiation_enabled', +) +external void _sec_protocol_options_set_tls_renegotiation_enabled( + sec_protocol_options_t options, + bool renegotiation_enabled, +); + +void sec_protocol_options_set_tls_renegotiation_enabled( + Dartsec_protocol_options_t options, + bool renegotiation_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_renegotiation_enabled( + _$$ref.pointer, + renegotiation_enabled, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_resumption_enabled', +) +external void _sec_protocol_options_set_tls_resumption_enabled( + sec_protocol_options_t options, + bool resumption_enabled, +); + +void sec_protocol_options_set_tls_resumption_enabled( + Dartsec_protocol_options_t options, + bool resumption_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_resumption_enabled( + _$$ref.pointer, + resumption_enabled, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_sct_enabled', +) +external void _sec_protocol_options_set_tls_sct_enabled( + sec_protocol_options_t options, + bool sct_enabled, +); + +void sec_protocol_options_set_tls_sct_enabled( + Dartsec_protocol_options_t options, + bool sct_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_sct_enabled(_$$ref.pointer, sct_enabled); +} + +@ffi.Native)>( + symbol: 'sec_protocol_options_set_tls_server_name', +) +external void _sec_protocol_options_set_tls_server_name( + sec_protocol_options_t options, + ffi.Pointer server_name, +); + +void sec_protocol_options_set_tls_server_name( + Dartsec_protocol_options_t options, + ffi.Pointer server_name, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_server_name(_$$ref.pointer, server_name); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_tickets_enabled', +) +external void _sec_protocol_options_set_tls_tickets_enabled( + sec_protocol_options_t options, + bool tickets_enabled, +); + +void sec_protocol_options_set_tls_tickets_enabled( + Dartsec_protocol_options_t options, + bool tickets_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_tickets_enabled( + _$$ref.pointer, + tickets_enabled, + ); +} + +@ffi.Native< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_verify_t, + dispatch_queue_t, + ) +>(symbol: 'sec_protocol_options_set_verify_block') +external void _sec_protocol_options_set_verify_block( + sec_protocol_options_t options, + sec_protocol_verify_t verify_block, + dispatch_queue_t verify_block_queue, +); + +void sec_protocol_options_set_verify_block( + Dartsec_protocol_options_t options, + Dartsec_protocol_verify_t verify_block, + Dartdispatch_queue_t verify_block_queue, +) { + final _$$ref = options.ref; + final _$$ref$1 = verify_block.ref; + final _$$ref$2 = verify_block_queue.ref; + return _sec_protocol_options_set_verify_block( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native)>() +external void sec_release(ffi.Pointer obj); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer sec_retain(ffi.Pointer obj); + +@ffi.Native(symbol: 'sec_trust_copy_ref') +external SecTrustRef _sec_trust_copy_ref(sec_trust_t trust); + +SecTrustRef sec_trust_copy_ref(Dartsec_trust_t trust) { + final _$$ref = trust.ref; + return _sec_trust_copy_ref(_$$ref.pointer); +} + +@ffi.Native(symbol: 'sec_trust_create') +external sec_trust_t _sec_trust_create(SecTrustRef trust); + +Dartsec_trust_t? sec_trust_create(SecTrustRef trust) { + return _sec_trust_create(trust).address == 0 + ? null + : objc.NSObject.fromPointer( + _sec_trust_create(trust), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>() +external ffi.Pointer seed48( + ffi.Pointer arg0, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer sel_getName(ffi.Pointer sel); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer sel_getUid(ffi.Pointer str); + +@ffi.Native)>() +external bool sel_isMapped(ffi.Pointer sel); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer sel_registerName( + ffi.Pointer str, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int select( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + kern_return_t Function(task_t, ffi.Pointer, ffi.Int, ffi.Int) +>() +external int semaphore_create( + int task, + ffi.Pointer semaphore, + int policy, + int value, +); + +@ffi.Native() +external int semaphore_destroy(int task, int semaphore); + +@ffi.Native() +external int semaphore_signal(int semaphore); + +@ffi.Native() +external int semaphore_signal_all(int semaphore); + +@ffi.Native() +external int semaphore_signal_thread(int semaphore, int thread); + +@ffi.Native() +external int semaphore_timedwait(int semaphore, mach_timespec_t wait_time); + +@ffi.Native() +external int semaphore_timedwait_signal( + int wait_semaphore, + int signal_semaphore, + mach_timespec_t wait_time, +); + +@ffi.Native() +external int semaphore_wait(int semaphore); + +@ffi.Native() +external int semaphore_wait_signal(int wait_semaphore, int signal_semaphore); + +@ffi.Native< + ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size, ffi.Int) +>() +external int send(int arg0, ffi.Pointer arg1, int arg2, int arg3); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Int, + off_t, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external int sendfile( + int arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + int arg5, +); + +@ffi.Native, ffi.Int)>() +external int sendmsg(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native< + ssize_t Function( + ffi.Int, + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Pointer, + socklen_t, + ) +>() +external int sendto( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ffi.Pointer arg4, + int arg5, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) +>() +external int setattrlist( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, + int arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Uint32, + ) +>() +external int setattrlistat( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + int arg4, + int arg5, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int setaudit(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int setaudit_addr(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int setauid(ffi.Pointer arg0); + +@ffi.Native, ffi.Pointer)>() +external void setbuf(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external void setbuffer( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __size, +); + +@ffi.Native, ffi.Int)>() +external int setdomainname(ffi.Pointer arg0, int __namelen); + +@ffi.Native() +external int setegid(int arg0); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int setenv( + ffi.Pointer __name, + ffi.Pointer __value, + int __overwrite, +); + +@ffi.Native() +external int seteuid(int arg0); + +@ffi.Native() +external int setgid(int arg0); + +@ffi.Native)>() +external int setgroups(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external void sethostent(int arg0); + +@ffi.Native() +external void sethostid(int arg0); + +@ffi.Native, ffi.Int)>() +external int sethostname(ffi.Pointer arg0, int __namelen); + +@ffi.Native() +external int setiopolicy_np(int arg0, int arg1, int arg2); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + in_addr, + in_addr, + ffi.Uint32, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int setipv4sourcefilter( + int arg0, + in_addr arg1, + in_addr arg2, + int arg3, + int arg4, + ffi.Pointer arg5, +); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int setitimer( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native)>() +external int setjmp(ffi.Pointer arg0); + +@ffi.Native)>() +external void setkey(ffi.Pointer arg0); + +@ffi.Native)>() +external int setlinebuf(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Int, ffi.Pointer)>() +external ffi.Pointer setlocale(int arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external int setlogin(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer setmode(ffi.Pointer arg0); + +@ffi.Native() +external void setnetent(int arg0); + +@ffi.Native)>() +external void setnetgrent(ffi.Pointer arg0); + +@ffi.Native() +external int setpgid(int arg0, int arg1); + +@ffi.Native() +external int setpgrp(); + +@ffi.Native() +external int setpriority(int arg0, int arg1, int arg2); + +@ffi.Native)>() +external void setprogname(ffi.Pointer arg0); + +@ffi.Native() +external void setprotoent(int arg0); + +@ffi.Native() +external int setregid(int arg0, int arg1); + +@ffi.Native() +external int setreuid(int arg0, int arg1); + +@ffi.Native() +external int setrgid(int arg0); + +@ffi.Native)>() +external int setrlimit(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external void setrpcent(int stayopen); + +@ffi.Native() +external int setruid(int arg0); + +@ffi.Native() +external void setservent(int arg0); + +@ffi.Native)>() +external int setsgroups_np(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external int setsid(); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer, socklen_t) +>() +external int setsockopt( + int arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + int arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Uint32, + ffi.Pointer, + socklen_t, + ffi.Uint32, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int setsourcefilter( + int arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ffi.Pointer arg6, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer setstate(ffi.Pointer arg0); + +@ffi.Native, ffi.Pointer)>() +external int settimeofday( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int setuid(int arg0); + +@ffi.Native() +external void setusershell(); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Size) +>() +external int setvbuf( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int __size, +); + +@ffi.Native)>() +external int setwgroups_np(int arg0, ffi.Pointer arg1); + +@ffi.Native, ffi.Int)>() +external int shm_open(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int shm_unlink(ffi.Pointer arg0); + +@ffi.Native() +external int shutdown(int arg0, int arg1); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int sigaction( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native, ffi.Int)>() +external int sigaddset(ffi.Pointer arg0, int arg1); + +@ffi.Native, ffi.Pointer)>() +external int sigaltstack(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external int sigblock(int arg0); + +@ffi.Native, ffi.Int)>() +external int sigdelset(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int sigemptyset(ffi.Pointer arg0); + +@ffi.Native)>() +external int sigfillset(ffi.Pointer arg0); + +@ffi.Native() +external int sighold(int arg0); + +@ffi.Native() +external int sigignore(int arg0); + +@ffi.Native() +external int siginterrupt(int arg0, int arg1); + +@ffi.Native, ffi.Int)>() +external int sigismember(ffi.Pointer arg0, int arg1); + +@ffi.Native, ffi.Int)>() +external void siglongjmp(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Pointer> Function( + ffi.Int, + ffi.Pointer>, + ) +>() +external ffi.Pointer> signal( + int arg0, + ffi.Pointer> arg1, +); + +@ffi.Native() +external int signgam; + +@ffi.Native() +external int sigpause(int arg0); + +@ffi.Native)>() +external int sigpending(ffi.Pointer arg0); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int sigprocmask( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native() +external int sigrelse(int arg0); + +@ffi.Native< + ffi.Pointer> Function( + ffi.Int, + ffi.Pointer>, + ) +>() +external ffi.Pointer> sigset( + int arg0, + ffi.Pointer> arg1, +); + +@ffi.Native, ffi.Int)>() +external int sigsetjmp(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int sigsetmask(int arg0); + +@ffi.Native)>() +external int sigsuspend(ffi.Pointer arg0); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int sigvec( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native, ffi.Pointer)>() +external int sigwait(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external double sin(double arg0); + +@ffi.Native() +external double sinf(double arg0); + +@ffi.Native() +external double sinh(double arg0); + +@ffi.Native() +external double sinhf(double arg0); + +@ffi.Native() +external int sleep(int arg0); + +@ffi.Native< + ffi.Void Function( + cpu_type_t, + cpu_subtype_t, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external void slot_name( + int arg0, + int arg1, + ffi.Pointer> arg2, + ffi.Pointer> arg3, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Pointer) +>() +external int snprintf( + ffi.Pointer __str, + int __size, + ffi.Pointer __format, +); + +@ffi.Native() +external int sockatmark(int arg0); + +@ffi.Native() +external int socket(int arg0, int arg1, int arg2); + +@ffi.Native)>() +external int socketpair( + int arg0, + int arg1, + int arg2, + ffi.Pointer arg3, +); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.', +) +@ffi.Native, ffi.Pointer)>() +external int sprintf(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external double sqrt(double arg0); + +@ffi.Native() +external double sqrtf(double arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int sradixsort( + ffi.Pointer> __base, + int __nel, + ffi.Pointer __table, + int __endbyte, +); + +@ffi.Native() +external void srand(int arg0); + +@ffi.Native() +external void srand48(int arg0); + +@ffi.Native() +external void sranddev(); + +@ffi.Native() +external void srandom(int arg0); + +@ffi.Native() +external void srandomdev(); + +@ffi.Native, ffi.Pointer)>() +external int sscanf(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer stpcpy( + ffi.Pointer __dst, + ffi.Pointer __src, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer stpncpy( + ffi.Pointer __dst, + ffi.Pointer __src, + int __n, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void str2dec( + ffi.Pointer s, + ffi.Pointer ix, + ffi.Pointer d, + ffi.Pointer vp, +); + +@ffi.Native, ffi.Pointer)>() +external int strcasecmp(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strcasestr( + ffi.Pointer __big, + ffi.Pointer __little, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strcat( + ffi.Pointer __s1, + ffi.Pointer __s2, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer strchr(ffi.Pointer __s, int __c); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer strchrnul(ffi.Pointer __s, int __c); + +@ffi.Native, ffi.Pointer)>() +external int strcmp(ffi.Pointer __s1, ffi.Pointer __s2); + +@ffi.Native, ffi.Pointer)>() +external int strcoll(ffi.Pointer __s1, ffi.Pointer __s2); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strcpy( + ffi.Pointer __dst, + ffi.Pointer __src, +); + +@ffi.Native< + ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) +>() +external int strcspn( + ffi.Pointer __s, + ffi.Pointer __charset, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer strdup(ffi.Pointer __s1); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer strerror(int __errnum); + +@ffi.Native, ffi.Size)>() +external int strerror_r( + int __errnum, + ffi.Pointer __strerrbuf, + int __buflen, +); + +@ffi.Native< + ffi.Size Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int strftime( + ffi.Pointer arg0, + int __maxsize, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external int strlcat( + ffi.Pointer __dst, + ffi.Pointer __source, + int __size, +); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external int strlcpy( + ffi.Pointer __dst, + ffi.Pointer __source, + int __size, +); + +@ffi.Native)>() +external int strlen(ffi.Pointer __s); + +@ffi.Native)>() +external void strmode(int __mode, ffi.Pointer __bp); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int strncasecmp( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer strncat( + ffi.Pointer __s1, + ffi.Pointer __s2, + int __n, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int strncmp( + ffi.Pointer __s1, + ffi.Pointer __s2, + int __n, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer strncpy( + ffi.Pointer __dst, + ffi.Pointer __src, + int __n, +); + +@ffi.Native Function(ffi.Pointer, ffi.Size)>() +external ffi.Pointer strndup(ffi.Pointer __s1, int __n); + +@ffi.Native, ffi.Size)>() +external int strnlen(ffi.Pointer __s1, int __n); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer strnstr( + ffi.Pointer __big, + ffi.Pointer __little, + int __len, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strpbrk( + ffi.Pointer __s, + ffi.Pointer __charset, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer strptime( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer strrchr(ffi.Pointer __s, int __c); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer>, + ffi.Pointer, + ) +>() +external ffi.Pointer strsep( + ffi.Pointer> __stringp, + ffi.Pointer __delim, +); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer strsignal(int __sig); + +@ffi.Native, ffi.Size)>() +external int strsignal_r( + int __sig, + ffi.Pointer __strsignalbuf, + int __buflen, +); + +@ffi.Native< + ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) +>() +external int strspn(ffi.Pointer __s, ffi.Pointer __charset); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strstr( + ffi.Pointer __big, + ffi.Pointer __little, +); + +@ffi.Native< + ffi.Double Function(ffi.Pointer, ffi.Pointer>) +>() +external double strtod( + ffi.Pointer arg0, + ffi.Pointer> arg1, +); + +@ffi.Native< + ffi.Float Function(ffi.Pointer, ffi.Pointer>) +>() +external double strtof( + ffi.Pointer arg0, + ffi.Pointer> arg1, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int strtofflags( + ffi.Pointer> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + intmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoimax( + ffi.Pointer __nptr, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strtok( + ffi.Pointer __str, + ffi.Pointer __sep, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external ffi.Pointer strtok_r( + ffi.Pointer __str, + ffi.Pointer __sep, + ffi.Pointer> __lasts, +); + +@ffi.Native< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtol( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoll( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.LongLong Function( + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.Pointer>, + ) +>() +external int strtonum( + ffi.Pointer __numstr, + int __minval, + int __maxval, + ffi.Pointer> __errstrp, +); + +@ffi.Native< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoq( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoul( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoull( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + uintmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoumax( + ffi.Pointer __nptr, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtouq( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external int strxfrm( + ffi.Pointer __s1, + ffi.Pointer __s2, + int __n, +); + +@ffi.Native>() +external ffi.Pointer suboptarg; + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ssize_t) +>() +external void swab( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __len, +); + +@ffi.Native)>() +external int swapon(ffi.Pointer arg0); + +@ffi.Native() +external int swtch(); + +@ffi.Native() +external int swtch_pri(int pri); + +@ffi.Native, ffi.Pointer)>() +external int symlink(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int symlinkat( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +); + +@ffi.Native() +external void sync(); + +@ffi.Native, ffi.Int)>() +external int sync_volume_np(ffi.Pointer arg0, int arg1); + +@ffi.Native>>() +external ffi.Pointer> sys_errlist; + +@ffi.Native() +external final int sys_nerr; + +@ffi.Array.multi([32]) +@ffi.Native>>() +external ffi.Array> sys_siglist; + +@ffi.Array.multi([32]) +@ffi.Native>>() +external ffi.Array> sys_signame; + +@Deprecated( + 'syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost().', +) +@ffi.Native() +external int syscall(int arg0); + +@ffi.Native() +external int sysconf(int arg0); + +@ffi.Native)>() +external int system(ffi.Pointer arg0); + +@ffi.Native() +external double tan(double arg0); + +@ffi.Native() +external double tanf(double arg0); + +@ffi.Native() +external double tanh(double arg0); + +@ffi.Native() +external double tanhf(double arg0); + +@ffi.Native() +external int task_assign(int task, int new_set, int assign_threads); + +@ffi.Native() +external int task_assign_default(int task, int assign_threads); + +@ffi.Native< + kern_return_t Function( + task_t, + ledger_array_t, + mach_msg_type_number_t, + boolean_t, + ffi.Pointer, + ) +>() +external int task_create( + int target_task, + ledger_array_t ledgers, + int ledgersCnt, + int inherit_memory, + ffi.Pointer child_task, +); + +@ffi.Native)>() +external int task_create_identity_token( + int task, + ffi.Pointer token, +); + +@ffi.Native() +external int task_dyld_process_info_notify_deregister( + int target_task, + int notify, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_array_t, ffi.Pointer) +>() +external int task_dyld_process_info_notify_get( + mach_port_name_array_t names_addr, + ffi.Pointer names_count_addr, +); + +@ffi.Native() +external int task_dyld_process_info_notify_register( + int target_task, + int notify, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Int, + ffi.Pointer, + ) +>() +external int task_for_pid( + int target_tport, + int pid, + ffi.Pointer t, +); + +@ffi.Native)>() +external int task_generate_corpse( + int task, + ffi.Pointer corpse_task_port, +); + +@ffi.Native< + kern_return_t Function(task_inspect_t, ffi.Pointer) +>() +external int task_get_assignment( + int task, + ffi.Pointer assigned_set, +); + +@ffi.Native< + kern_return_t Function( + task_read_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_get_dyld_image_infos( + int task, + ffi.Pointer dyld_images, + ffi.Pointer dyld_imagesCnt, +); + +@ffi.Native< + kern_return_t Function( + task_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_get_emulation_vector( + int task, + ffi.Pointer vector_start, + ffi.Pointer emulation_vector, + ffi.Pointer emulation_vectorCnt, +); + +@ffi.Native< + kern_return_t Function(task_inspect_t, ffi.Pointer) +>() +external int task_get_exc_guard_behavior( + int task, + ffi.Pointer behavior, +); + +@ffi.Native< + kern_return_t Function( + task_t, + exception_mask_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int task_get_exception_ports( + int task, + int exception_mask, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlers, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + exception_mask_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_info_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int task_get_exception_ports_info( + int port, + int exception_mask, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_info_array_t old_handlers_info, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + task_read_t, + mach_voucher_selector_t, + ffi.Pointer, + ) +>() +external int task_get_mach_voucher( + int task, + int which, + ffi.Pointer voucher, +); + +@ffi.Native< + kern_return_t Function(task_inspect_t, ffi.Int, ffi.Pointer) +>() +external int task_get_special_port( + int task, + int which_port, + ffi.Pointer special_port, +); + +@ffi.Native< + kern_return_t Function( + task_read_t, + thread_state_flavor_t, + thread_state_t, + ffi.Pointer, + ) +>() +external int task_get_state( + int task, + int flavor, + thread_state_t old_state, + ffi.Pointer old_stateCnt, +); + +@ffi.Native< + kern_return_t Function( + task_id_token_t, + task_flavor_t, + ffi.Pointer, + ) +>() +external int task_identity_token_get_task_port( + int token, + int flavor, + ffi.Pointer task_port, +); + +@ffi.Native< + kern_return_t Function( + task_name_t, + task_flavor_t, + task_info_t, + ffi.Pointer, + ) +>() +external int task_info( + int target_task, + int flavor, + task_info_t task_info_out, + ffi.Pointer task_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + task_inspect_t, + task_inspect_flavor_t, + task_inspect_info_t, + ffi.Pointer, + ) +>() +external int task_inspect( + int task, + int flavor, + task_inspect_info_t info_out, + ffi.Pointer info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + task_t, + task_read_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_map_corpse_info( + int task, + int corspe_task, + ffi.Pointer kcd_addr_begin, + ffi.Pointer kcd_size, +); + +@ffi.Native< + kern_return_t Function( + task_t, + task_read_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_map_corpse_info_64( + int task, + int corspe_task, + ffi.Pointer kcd_addr_begin, + ffi.Pointer kcd_size, +); + +@ffi.Native< + kern_return_t Function( + task_t, + kcdata_object_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_map_kcdata_object_64( + int task, + int kcdata_object, + ffi.Pointer kcd_addr_begin, + ffi.Pointer kcd_size, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Int, + ffi.Pointer, + ) +>() +external int task_name_for_pid( + int target_tport, + int pid, + ffi.Pointer tn, +); + +@ffi.Native< + kern_return_t Function( + task_t, + policy_t, + policy_base_t, + mach_msg_type_number_t, + boolean_t, + boolean_t, + ) +>() +external int task_policy( + int task, + int policy, + policy_base_t base, + int baseCnt, + int set_limit, + int change, +); + +@ffi.Native< + kern_return_t Function( + task_policy_get_t, + task_policy_flavor_t, + task_policy_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_policy_get( + int task, + int flavor, + task_policy_t policy_info, + ffi.Pointer policy_infoCnt, + ffi.Pointer get_default, +); + +@ffi.Native< + kern_return_t Function( + task_policy_set_t, + task_policy_flavor_t, + task_policy_t, + mach_msg_type_number_t, + ) +>() +external int task_policy_set( + int task, + int flavor, + task_policy_t policy_info, + int policy_infoCnt, +); + +@ffi.Native< + kern_return_t Function(task_inspect_t, ffi.Pointer) +>() +external int task_purgable_info( + int task, + ffi.Pointer stats, +); + +@ffi.Native< + kern_return_t Function(task_t, ffi.Pointer) +>() +external int task_register_dyld_get_process_state( + int task, + ffi.Pointer dyld_process_state, +); + +@ffi.Native< + kern_return_t Function( + task_t, + dyld_kernel_image_info_array_t, + mach_msg_type_number_t, + ) +>() +external int task_register_dyld_image_infos( + int task, + dyld_kernel_image_info_array_t dyld_images, + int dyld_imagesCnt, +); + +@ffi.Native() +external int task_register_dyld_set_dyld_state(int task, int dyld_state); + +@ffi.Native< + kern_return_t Function(task_t, dyld_kernel_image_info_t, boolean_t, boolean_t) +>() +external int task_register_dyld_shared_cache_image_info( + int task, + dyld_kernel_image_info_t dyld_cache_image, + int no_cache, + int private_cache, +); + +@ffi.Native< + kern_return_t Function( + task_t, + ffi.Uint32, + exception_mask_t, + exception_behavior_t, + thread_state_flavor_t, + mach_port_t, + ) +>() +external int task_register_hardened_exception_handler( + int task, + int signed_pc_key, + int exceptions_allowed, + int behaviors_allowed, + int flavors_allowed, + int new_exception_port, +); + +@ffi.Native() +external int task_resume(int target_task); + +@ffi.Native() +external int task_resume2(int suspend_token); + +@ffi.Native() +external int task_sample(int task, int reply); + +@ffi.Native() +external int task_self_trap(); + +@ffi.Native() +external int task_set_corpse_forking_behavior(int task, int behavior); + +@ffi.Native() +external int task_set_emulation( + int target_port, + int routine_entry_pt, + int routine_number, +); + +@ffi.Native< + kern_return_t Function( + task_t, + ffi.Int, + emulation_vector_t, + mach_msg_type_number_t, + ) +>() +external int task_set_emulation_vector( + int task, + int vector_start, + emulation_vector_t emulation_vector, + int emulation_vectorCnt, +); + +@ffi.Native() +external int task_set_exc_guard_behavior(int task, int behavior); + +@ffi.Native< + kern_return_t Function( + task_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + ) +>() +external int task_set_exception_ports( + int task, + int exception_mask, + int new_port, + int behavior, + int new_flavor, +); + +@ffi.Native< + kern_return_t Function( + task_t, + task_flavor_t, + task_info_t, + mach_msg_type_number_t, + ) +>() +external int task_set_info( + int target_task, + int flavor, + task_info_t task_info_in, + int task_info_inCnt, +); + +@ffi.Native() +external int task_set_mach_voucher(int task, int voucher); + +@ffi.Native)>() +external int task_set_phys_footprint_limit( + int task, + int new_limit, + ffi.Pointer old_limit, +); + +@ffi.Native< + kern_return_t Function( + task_t, + processor_set_t, + policy_t, + policy_base_t, + mach_msg_type_number_t, + policy_limit_t, + mach_msg_type_number_t, + boolean_t, + ) +>() +external int task_set_policy( + int task, + int pset, + int policy, + policy_base_t base, + int baseCnt, + policy_limit_t limit, + int limitCnt, + int change, +); + +@ffi.Native() +external int task_set_port_space(int task, int table_entries); + +@ffi.Native() +external int task_set_ras_pc(int target_task, int basepc, int boundspc); + +@ffi.Native() +external int task_set_special_port(int task, int which_port, int special_port); + +@ffi.Native< + kern_return_t Function( + task_t, + thread_state_flavor_t, + thread_state_t, + mach_msg_type_number_t, + ) +>() +external int task_set_state( + int task, + int flavor, + thread_state_t new_state, + int new_stateCnt, +); + +@ffi.Native() +external int task_suspend(int target_task); + +@ffi.Native< + kern_return_t Function(task_read_t, ffi.Pointer) +>() +external int task_suspend2( + int target_task, + ffi.Pointer suspend_token, +); + +@ffi.Native< + kern_return_t Function( + task_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int task_swap_exception_ports( + int task, + int exception_mask, + int new_port, + int behavior, + int new_flavor, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlers, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function(task_t, ipc_voucher_t, ffi.Pointer) +>() +external int task_swap_mach_voucher( + int task, + int new_voucher, + ffi.Pointer old_voucher, +); + +@ffi.Native() +external int task_terminate(int target_task); + +@ffi.Native() +external int task_test_async_upcall_propagation( + int task, + int port, + int qos, + int iotier, +); + +@ffi.Native() +external int task_test_sync_upcall(int task, int port); + +@ffi.Native< + kern_return_t Function( + task_inspect_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_threads( + int target_task, + ffi.Pointer act_list, + ffi.Pointer act_listCnt, +); + +@ffi.Native< + kern_return_t Function( + task_t, + dyld_kernel_image_info_array_t, + mach_msg_type_number_t, + ) +>() +external int task_unregister_dyld_image_infos( + int task, + dyld_kernel_image_info_array_t dyld_images, + int dyld_imagesCnt, +); + +@ffi.Native() +external int task_wire(int target_task, int must_wire); + +@ffi.Native< + kern_return_t Function( + task_inspect_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_zone_info( + int target_task, + ffi.Pointer names, + ffi.Pointer namesCnt, + ffi.Pointer info, + ffi.Pointer infoCnt, +); + +@ffi.Native() +external int tcgetpgrp(int arg0); + +@ffi.Native() +external int tcsetpgrp(int arg0, int arg1); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead.', +) +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer tempnam( + ffi.Pointer __dir, + ffi.Pointer __prefix, +); + +@ffi.Native() +external double tgamma(double arg0); + +@ffi.Native() +external double tgammaf(double arg0); + +@ffi.Native() +external int thread_abort(int target_act); + +@ffi.Native() +external int thread_abort_safely(int target_act); + +@ffi.Native< + kern_return_t Function( + thread_t, + mach_port_t, + exception_mask_t, + exception_behavior_t, + thread_state_flavor_t, + ) +>() +external int thread_adopt_exception_handler( + int thread, + int exc_port, + int exc_mask, + int behavior_mask, + int flavor_mask, +); + +@ffi.Native() +external int thread_assign(int thread, int new_set); + +@ffi.Native() +external int thread_assign_default(int thread); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + ffi.Int, + thread_state_flavor_t, + thread_state_t, + mach_msg_type_number_t, + thread_state_t, + ffi.Pointer, + ) +>() +external int thread_convert_thread_state( + int thread, + int direction, + int flavor, + thread_state_t in_state, + int in_stateCnt, + thread_state_t out_state, + ffi.Pointer out_stateCnt, +); + +@ffi.Native)>() +external int thread_create( + int parent_task, + ffi.Pointer child_act, +); + +@ffi.Native< + kern_return_t Function( + task_t, + thread_state_flavor_t, + thread_state_t, + mach_msg_type_number_t, + ffi.Pointer, + ) +>() +external int thread_create_running( + int parent_task, + int flavor, + thread_state_t new_state, + int new_stateCnt, + ffi.Pointer child_act, +); + +@ffi.Native() +external int thread_depress_abort(int thread); + +@ffi.Native< + kern_return_t Function(thread_inspect_t, ffi.Pointer) +>() +external int thread_get_assignment( + int thread, + ffi.Pointer assigned_set, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + exception_mask_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int thread_get_exception_ports( + int thread, + int exception_mask, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlers, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + exception_mask_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_info_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int thread_get_exception_ports_info( + int port, + int exception_mask, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_info_array_t old_handlers_info, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + thread_read_t, + mach_voucher_selector_t, + ffi.Pointer, + ) +>() +external int thread_get_mach_voucher( + int thr_act, + int which, + ffi.Pointer voucher, +); + +@ffi.Native< + kern_return_t Function(thread_inspect_t, ffi.Int, ffi.Pointer) +>() +external int thread_get_special_port( + int thr_act, + int which_port, + ffi.Pointer special_port, +); + +@ffi.Native< + kern_return_t Function( + thread_read_t, + thread_state_flavor_t, + thread_state_t, + ffi.Pointer, + ) +>() +external int thread_get_state( + int target_act, + int flavor, + thread_state_t old_state, + ffi.Pointer old_stateCnt, +); + +@ffi.Native< + kern_return_t Function( + thread_inspect_t, + thread_flavor_t, + thread_info_t, + ffi.Pointer, + ) +>() +external int thread_info( + int target_act, + int flavor, + thread_info_t thread_info_out, + ffi.Pointer thread_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + policy_t, + policy_base_t, + mach_msg_type_number_t, + boolean_t, + ) +>() +external int thread_policy( + int thr_act, + int policy, + policy_base_t base, + int baseCnt, + int set_limit, +); + +@ffi.Native< + kern_return_t Function( + thread_inspect_t, + thread_policy_flavor_t, + thread_policy_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int thread_policy_get( + int thread, + int flavor, + thread_policy_t policy_info, + ffi.Pointer policy_infoCnt, + ffi.Pointer get_default, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + thread_policy_flavor_t, + thread_policy_t, + mach_msg_type_number_t, + ) +>() +external int thread_policy_set( + int thread, + int flavor, + thread_policy_t policy_info, + int policy_infoCnt, +); + +@ffi.Native() +external int thread_resume(int target_act); + +@ffi.Native() +external int thread_sample(int thread, int reply); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + ) +>() +external int thread_set_exception_ports( + int thread, + int exception_mask, + int new_port, + int behavior, + int new_flavor, +); + +@ffi.Native() +external int thread_set_mach_voucher(int thr_act, int voucher); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + processor_set_t, + policy_t, + policy_base_t, + mach_msg_type_number_t, + policy_limit_t, + mach_msg_type_number_t, + ) +>() +external int thread_set_policy( + int thr_act, + int pset, + int policy, + policy_base_t base, + int baseCnt, + policy_limit_t limit, + int limitCnt, +); + +@ffi.Native() +external int thread_set_special_port( + int thr_act, + int which_port, + int special_port, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + thread_state_flavor_t, + thread_state_t, + mach_msg_type_number_t, + ) +>() +external int thread_set_state( + int target_act, + int flavor, + thread_state_t new_state, + int new_stateCnt, +); + +@ffi.Native() +external int thread_suspend(int target_act); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int thread_swap_exception_ports( + int thread, + int exception_mask, + int new_port, + int behavior, + int new_flavor, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlers, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + ipc_voucher_t, + ffi.Pointer, + ) +>() +external int thread_swap_mach_voucher( + int thr_act, + int new_voucher, + ffi.Pointer old_voucher, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, ffi.Int, mach_msg_timeout_t) +>() +external int thread_switch(int thread_name, int option, int option_time); + +@ffi.Native() +external int thread_terminate(int target_act); + +@ffi.Native() +external int thread_wire(int host_priv, int thread, int wired); + +@ffi.Native)>() +external int time(ffi.Pointer arg0); + +@ffi.Native() +external int time2posix(int arg0); + +@ffi.Native)>() +external int timegm(ffi.Pointer arg0); + +@ffi.Native)>() +external int timelocal(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int timespec_get(ffi.Pointer ts, int base); + +@ffi.Native(symbol: 'timezone') +external int timezone$1; + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int timingsafe_bcmp( + ffi.Pointer __b1, + ffi.Pointer __b2, + int __len, +); + +@ffi.Native Function()>() +external ffi.Pointer tmpfile(); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.', +) +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer tmpnam(ffi.Pointer arg0); + +@ffi.Native() +external double trunc(double arg0); + +@ffi.Native, off_t)>() +external int truncate(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external double truncf(double arg0); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer ttyname(int arg0); + +@ffi.Native, ffi.Size)>() +external int ttyname_r(int arg0, ffi.Pointer arg1, int __len); + +@ffi.Native() +external int ttyslot(); + +@ffi.Native>>() +external ffi.Pointer> tzname; + +@ffi.Native() +external void tzset(); + +@ffi.Native() +external void tzsetwall(); + +@ffi.Native() +external int ualarm(int arg0, int arg1); + +@ffi.Native)>() +external int undelete(ffi.Pointer arg0); + +@ffi.Native)>() +external int ungetc(int arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external int unlink(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int unlinkat(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native() +external int unlockpt(int arg0); + +@ffi.Native)>() +external int unsetenv(ffi.Pointer arg0); + +@ffi.Native)>() +external int unwhiteout(ffi.Pointer arg0); + +@ffi.Native() +external locale_t uselocale(locale_t arg0); + +@ffi.Native() +external int usleep(int arg0); + +@ffi.Native, ffi.Pointer)>() +external int utimes(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external void uuid_clear(ffi.Pointer uu); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int uuid_compare( + ffi.Pointer uu1, + ffi.Pointer uu2, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external void uuid_copy( + ffi.Pointer dst, + ffi.Pointer src, +); + +@ffi.Native)>() +external void uuid_generate(ffi.Pointer out); + +@ffi.Native)>() +external void uuid_generate_random(ffi.Pointer out); + +@ffi.Native)>() +external void uuid_generate_time(ffi.Pointer out); + +@ffi.Native)>() +external int uuid_is_null(ffi.Pointer uu); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int uuid_parse( + ffi.Pointer in$, + ffi.Pointer uu, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void uuid_unparse( + ffi.Pointer uu, + ffi.Pointer out, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void uuid_unparse_lower( + ffi.Pointer uu, + ffi.Pointer out, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void uuid_unparse_upper( + ffi.Pointer uu, + ffi.Pointer out, +); + +@ffi.Native< + OSStatus Function( + AEEventClass, + AEEventID, + DescType, + ffi.Pointer, + Size, + SInt16, + SInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + va_list, + ) +>() +external int vAEBuildAppleEvent( + int theClass, + int theID, + int addressType, + ffi.Pointer addressData, + int addressLength, + int returnID, + int transactionID, + ffi.Pointer resultEvt, + ffi.Pointer error, + ffi.Pointer paramsFmt, + va_list args, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + va_list, + ) +>() +external int vAEBuildDesc( + ffi.Pointer dst, + ffi.Pointer error, + ffi.Pointer src, + va_list args, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + va_list, + ) +>() +external int vAEBuildParameters( + ffi.Pointer event, + ffi.Pointer error, + ffi.Pointer format, + va_list args, +); + +@ffi.Native Function(ffi.Size)>() +external ffi.Pointer valloc(int __size); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer, + va_list, + ) +>() +external int vasprintf( + ffi.Pointer> arg0, + ffi.Pointer arg1, + va_list arg2, +); + +@ffi.Native, va_list)>() +external int vdprintf(int arg0, ffi.Pointer arg1, va_list arg2); + +@Deprecated('Use posix_spawn or fork') +@ffi.Native() +external int vfork(); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) +>() +external int vfprintf( + ffi.Pointer arg0, + ffi.Pointer arg1, + va_list arg2, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) +>() +external int vfscanf( + ffi.Pointer __stream, + ffi.Pointer __format, + va_list arg2, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_size_t, + ffi.Int, + ) +>() +external int vm_allocate( + int target_task, + ffi.Pointer address, + int size, + int flags, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + vm_map_t, + ffi.Pointer, + vm_size_t, + ffi.Int, + ) +>() +external int vm_allocate_cpm( + int host_priv, + int task, + ffi.Pointer address, + int size, + int flags, +); + +@ffi.Native< + kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_behavior_t) +>() +external int vm_behavior_set( + int target_task, + int address, + int size, + int new_behavior, +); + +@ffi.Native< + kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_address_t) +>() +external int vm_copy( + int target_task, + int source_address, + int size, + int dest_address, +); + +@ffi.Native() +external int vm_deallocate(int target_task, int address, int size); + +@ffi.Native< + kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_inherit_t) +>() +external int vm_inherit( + int target_task, + int address, + int size, + int new_inheritance, +); + +@ffi.Native() +external int vm_kernel_page_mask; + +@ffi.Native() +external int vm_kernel_page_shift; + +@ffi.Native() +external int vm_kernel_page_size; + +@ffi.Native< + kern_return_t Function( + vm_map_t, + vm_address_t, + vm_size_t, + vm_machine_attribute_t, + ffi.Pointer, + ) +>() +external int vm_machine_attribute( + int target_task, + int address, + int size, + int attribute, + ffi.Pointer value, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_size_t, + vm_address_t, + ffi.Int, + mem_entry_name_port_t, + vm_offset_t, + boolean_t, + vm_prot_t, + vm_prot_t, + vm_inherit_t, + ) +>() +external int vm_map( + int target_task, + ffi.Pointer address, + int size, + int mask, + int flags, + int object, + int offset, + int copy, + int cur_protection, + int max_protection, + int inheritance, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_size_t, + vm_address_t, + ffi.Int, + mem_entry_name_port_t, + memory_object_offset_t, + boolean_t, + vm_prot_t, + vm_prot_t, + vm_inherit_t, + ) +>() +external int vm_map_64( + int target_task, + ffi.Pointer address, + int size, + int mask, + int flags, + int object, + int offset, + int copy, + int cur_protection, + int max_protection, + int inheritance, +); + +@ffi.Native() +external int vm_map_exec_lockdown(int target_task); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + vm_offset_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int vm_map_page_query( + int target_map, + int offset, + ffi.Pointer disposition, + ffi.Pointer ref_count, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int vm_mapped_pages_info( + int task, + ffi.Pointer pages, + ffi.Pointer pagesCnt, +); + +@ffi.Native< + kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_sync_t) +>() +external int vm_msync(int target_task, int address, int size, int sync_flags); + +@ffi.Native() +external int vm_page_mask; + +@ffi.Native() +external int vm_page_shift; + +@ffi.Native() +external int vm_page_size; + +@ffi.Native< + kern_return_t Function( + vm_map_t, + vm_address_t, + vm_size_t, + boolean_t, + vm_prot_t, + ) +>() +external int vm_protect( + int target_task, + int address, + int size, + int set_maximum, + int new_protection, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + vm_address_t, + vm_purgable_t, + ffi.Pointer, + ) +>() +external int vm_purgable_control( + int target_task, + int address, + int control, + ffi.Pointer state, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + vm_address_t, + vm_size_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int vm_read( + int target_task, + int address, + int size, + ffi.Pointer data, + ffi.Pointer dataCnt, +); + +@ffi.Native< + kern_return_t Function(vm_map_read_t, ffi.Pointer, natural_t) +>() +external int vm_read_list( + int target_task, + ffi.Pointer data_list, + int count, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + vm_address_t, + vm_size_t, + vm_address_t, + ffi.Pointer, + ) +>() +external int vm_read_overwrite( + int target_task, + int address, + int size, + int data, + ffi.Pointer outsize, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + ffi.Pointer, + ffi.Pointer, + vm_region_flavor_t, + vm_region_info_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int vm_region( + int target_task, + ffi.Pointer address, + ffi.Pointer size, + int flavor, + vm_region_info_t info, + ffi.Pointer infoCnt, + ffi.Pointer object_name, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + ffi.Pointer, + ffi.Pointer, + vm_region_flavor_t, + vm_region_info_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int vm_region_64( + int target_task, + ffi.Pointer address, + ffi.Pointer size, + int flavor, + vm_region_info_t info, + ffi.Pointer infoCnt, + ffi.Pointer object_name, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + vm_region_recurse_info_t, + ffi.Pointer, + ) +>() +external int vm_region_recurse( + int target_task, + ffi.Pointer address, + ffi.Pointer size, + ffi.Pointer nesting_depth, + vm_region_recurse_info_t info, + ffi.Pointer infoCnt, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + vm_region_recurse_info_t, + ffi.Pointer, + ) +>() +external int vm_region_recurse_64( + int target_task, + ffi.Pointer address, + ffi.Pointer size, + ffi.Pointer nesting_depth, + vm_region_recurse_info_t info, + ffi.Pointer infoCnt, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_size_t, + vm_address_t, + ffi.Int, + vm_map_t, + vm_address_t, + boolean_t, + ffi.Pointer, + ffi.Pointer, + vm_inherit_t, + ) +>() +external int vm_remap( + int target_task, + ffi.Pointer target_address, + int size, + int mask, + int flags, + int src_task, + int src_address, + int copy, + ffi.Pointer cur_protection, + ffi.Pointer max_protection, + int inheritance, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_size_t, + vm_address_t, + ffi.Int, + vm_map_read_t, + vm_address_t, + boolean_t, + ffi.Pointer, + ffi.Pointer, + vm_inherit_t, + ) +>() +external int vm_remap_new( + int target_task, + ffi.Pointer target_address, + int size, + int mask, + int flags, + int src_task, + int src_address, + int copy, + ffi.Pointer cur_protection, + ffi.Pointer max_protection, + int inheritance, +); + +@ffi.Native< + kern_return_t Function(ffi.Pointer, ffi.Pointer) +>() +external int vm_stats( + ffi.Pointer info, + ffi.Pointer count, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + vm_map_t, + vm_address_t, + vm_size_t, + vm_prot_t, + ) +>() +external int vm_wire( + int host_priv, + int task, + int address, + int size, + int desired_access, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + vm_address_t, + vm_offset_t, + mach_msg_type_number_t, + ) +>() +external int vm_write(int target_task, int address, int data, int dataCnt); + +@ffi.Native)>() +external voucher_mach_msg_state_t voucher_mach_msg_adopt( + ffi.Pointer msg, +); + +@ffi.Native)>() +external void voucher_mach_msg_clear(ffi.Pointer msg); + +@ffi.Native() +external void voucher_mach_msg_revert(voucher_mach_msg_state_t state); + +@ffi.Native)>() +external int voucher_mach_msg_set(ffi.Pointer msg); + +@ffi.Native, va_list)>() +external int vprintf(ffi.Pointer arg0, va_list arg1); + +@ffi.Native< + ffi.Pointer< + ffi.NativeFunction, va_list)> + > +>() +external ffi.Pointer< + ffi.NativeFunction, va_list)> +> +vprintf_stderr_func; + +@ffi.Native, va_list)>() +external int vscanf(ffi.Pointer __format, va_list arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + va_list, + ) +>() +external int vsnprintf( + ffi.Pointer __str, + int __size, + ffi.Pointer __format, + va_list arg3, +); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead.', +) +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) +>() +external int vsprintf( + ffi.Pointer arg0, + ffi.Pointer arg1, + va_list arg2, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) +>() +external int vsscanf( + ffi.Pointer __str, + ffi.Pointer __format, + va_list arg2, +); + +@ffi.Native)>() +external int wait(ffi.Pointer arg0); + +@ffi.Native< + pid_t Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int wait3( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + pid_t Function(pid_t, ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int wait4( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Int Function(ffi.UnsignedInt, id_t, ffi.Pointer, ffi.Int) +>(symbol: 'waitid') +external int _waitid(int arg0, int arg1, ffi.Pointer arg2, int arg3); + +int waitid( + idtype_t arg0, + Dart__uint32_t arg1, + ffi.Pointer arg2, + int arg3, +) { + return _waitid(arg0.value, arg1, arg2, arg3); +} + +@ffi.Native, ffi.Int)>() +external int waitpid(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native< + intmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int wcstoimax( + ffi.Pointer __nptr, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int wcstombs( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __n, +); + +@ffi.Native< + uintmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int wcstoumax( + ffi.Pointer __nptr, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native, ffi.WChar)>() +external int wctomb(ffi.Pointer arg0, int arg1); + +@ffi.Native, ffi.Size)>() +external int write(int __fd, ffi.Pointer __buf, int __nbyte); + +@Deprecated('Deprecated') +@ffi.Native)>() +external double x80tod(ffi.Pointer x80); + +@ffi.Native( + symbol: 'xpc_activity_copy_criteria', +) +external xpc_object_t _xpc_activity_copy_criteria(xpc_activity_t activity); + +Dartxpc_object_t? xpc_activity_copy_criteria(Dartxpc_object_t activity) { + final _$$ref = activity.ref; + return _xpc_activity_copy_criteria(_$$ref.pointer).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_activity_copy_criteria(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_activity_get_state', +) +external int _xpc_activity_get_state(xpc_activity_t activity); + +Dartxpc_activity_state_t xpc_activity_get_state(Dartxpc_object_t activity) { + final _$$ref = activity.ref; + return _xpc_activity_get_state(_$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, xpc_object_t, xpc_activity_handler_t) +>(symbol: 'xpc_activity_register') +external void _xpc_activity_register( + ffi.Pointer identifier, + xpc_object_t criteria, + xpc_activity_handler_t handler, +); + +void xpc_activity_register( + ffi.Pointer identifier, + Dartxpc_object_t criteria, + Dartxpc_activity_handler_t handler, +) { + final _$$ref = criteria.ref; + final _$$ref$1 = handler.ref; + return _xpc_activity_register(identifier, _$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_activity_set_criteria', +) +external void _xpc_activity_set_criteria( + xpc_activity_t activity, + xpc_object_t criteria, +); + +void xpc_activity_set_criteria( + Dartxpc_object_t activity, + Dartxpc_object_t criteria, +) { + final _$$ref = activity.ref; + final _$$ref$1 = criteria.ref; + return _xpc_activity_set_criteria(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_activity_set_state', +) +external bool _xpc_activity_set_state(xpc_activity_t activity, int state); + +bool xpc_activity_set_state( + Dartxpc_object_t activity, + Dartxpc_activity_state_t state, +) { + final _$$ref = activity.ref; + return _xpc_activity_set_state(_$$ref.pointer, state); +} + +@ffi.Native( + symbol: 'xpc_activity_should_defer', +) +external bool _xpc_activity_should_defer(xpc_activity_t activity); + +bool xpc_activity_should_defer(Dartxpc_object_t activity) { + final _$$ref = activity.ref; + return _xpc_activity_should_defer(_$$ref.pointer); +} + +@ffi.Native)>() +external void xpc_activity_unregister(ffi.Pointer identifier); + +@ffi.Native( + symbol: 'xpc_array_append_value', +) +external void _xpc_array_append_value(xpc_object_t xarray, xpc_object_t value); + +void xpc_array_append_value(Dartxpc_object_t xarray, Dartxpc_object_t value) { + final _$$ref = xarray.ref; + final _$$ref$1 = value.ref; + return _xpc_array_append_value(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_array_apply', +) +external bool _xpc_array_apply( + xpc_object_t xarray, + xpc_array_applier_t applier, +); + +bool xpc_array_apply(Dartxpc_object_t xarray, Dartxpc_array_applier_t applier) { + final _$$ref = xarray.ref; + final _$$ref$1 = applier.ref; + return _xpc_array_apply(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native, ffi.Size)>( + symbol: 'xpc_array_create', +) +external xpc_object_t _xpc_array_create( + ffi.Pointer objects, + int count, +); + +Dartxpc_object_t xpc_array_create( + ffi.Pointer objects, + int count, +) { + return objc.NSObject.fromPointer( + _xpc_array_create(objects, count), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_array_create_connection', +) +external xpc_connection_t _xpc_array_create_connection( + xpc_object_t xarray, + int index$1, +); + +Dartxpc_object_t? xpc_array_create_connection( + Dartxpc_object_t xarray, + int index$1, +) { + final _$$ref = xarray.ref; + return _xpc_array_create_connection(_$$ref.pointer, index$1).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_array_create_connection(_$$ref.pointer, index$1), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_array_create_empty') +external xpc_object_t _xpc_array_create_empty(); + +Dartxpc_object_t xpc_array_create_empty() { + return objc.NSObject.fromPointer( + _xpc_array_create_empty(), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_array_dup_fd', +) +external int _xpc_array_dup_fd(xpc_object_t xarray, int index$1); + +int xpc_array_dup_fd(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_dup_fd(_$$ref.pointer, index$1); +} + +@ffi.Native( + symbol: 'xpc_array_get_array', +) +external xpc_object_t _xpc_array_get_array(xpc_object_t xarray, int index$1); + +Dartxpc_object_t? xpc_array_get_array(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_array(_$$ref.pointer, index$1).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_array_get_array(_$$ref.pointer, index$1), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_array_get_bool', +) +external bool _xpc_array_get_bool(xpc_object_t xarray, int index$1); + +bool xpc_array_get_bool(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_bool(_$$ref.pointer, index$1); +} + +@ffi.Native(symbol: 'xpc_array_get_count') +external int _xpc_array_get_count(xpc_object_t xarray); + +int xpc_array_get_count(Dartxpc_object_t xarray) { + final _$$ref = xarray.ref; + return _xpc_array_get_count(_$$ref.pointer); +} + +@ffi.Native< + ffi.Pointer Function(xpc_object_t, ffi.Size, ffi.Pointer) +>(symbol: 'xpc_array_get_data') +external ffi.Pointer _xpc_array_get_data( + xpc_object_t xarray, + int index$1, + ffi.Pointer length, +); + +ffi.Pointer xpc_array_get_data( + Dartxpc_object_t xarray, + int index$1, + ffi.Pointer length, +) { + final _$$ref = xarray.ref; + return _xpc_array_get_data(_$$ref.pointer, index$1, length); +} + +@ffi.Native( + symbol: 'xpc_array_get_date', +) +external int _xpc_array_get_date(xpc_object_t xarray, int index$1); + +int xpc_array_get_date(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_date(_$$ref.pointer, index$1); +} + +@ffi.Native( + symbol: 'xpc_array_get_dictionary', +) +external xpc_object_t _xpc_array_get_dictionary( + xpc_object_t xarray, + int index$1, +); + +Dartxpc_object_t? xpc_array_get_dictionary( + Dartxpc_object_t xarray, + int index$1, +) { + final _$$ref = xarray.ref; + return _xpc_array_get_dictionary(_$$ref.pointer, index$1).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_array_get_dictionary(_$$ref.pointer, index$1), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_array_get_double', +) +external double _xpc_array_get_double(xpc_object_t xarray, int index$1); + +double xpc_array_get_double(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_double(_$$ref.pointer, index$1); +} + +@ffi.Native( + symbol: 'xpc_array_get_int64', +) +external int _xpc_array_get_int64(xpc_object_t xarray, int index$1); + +int xpc_array_get_int64(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_int64(_$$ref.pointer, index$1); +} + +@ffi.Native Function(xpc_object_t, ffi.Size)>( + symbol: 'xpc_array_get_string', +) +external ffi.Pointer _xpc_array_get_string( + xpc_object_t xarray, + int index$1, +); + +ffi.Pointer xpc_array_get_string( + Dartxpc_object_t xarray, + int index$1, +) { + final _$$ref = xarray.ref; + return _xpc_array_get_string(_$$ref.pointer, index$1); +} + +@ffi.Native( + symbol: 'xpc_array_get_uint64', +) +external int _xpc_array_get_uint64(xpc_object_t xarray, int index$1); + +int xpc_array_get_uint64(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_uint64(_$$ref.pointer, index$1); +} + +@ffi.Native Function(xpc_object_t, ffi.Size)>( + symbol: 'xpc_array_get_uuid', +) +external ffi.Pointer _xpc_array_get_uuid( + xpc_object_t xarray, + int index$1, +); + +ffi.Pointer xpc_array_get_uuid( + Dartxpc_object_t xarray, + int index$1, +) { + final _$$ref = xarray.ref; + return _xpc_array_get_uuid(_$$ref.pointer, index$1); +} + +@ffi.Native( + symbol: 'xpc_array_get_value', +) +external xpc_object_t _xpc_array_get_value(xpc_object_t xarray, int index$1); + +Dartxpc_object_t xpc_array_get_value(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return objc.NSObject.fromPointer( + _xpc_array_get_value(_$$ref.pointer, index$1), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_array_set_bool', +) +external void _xpc_array_set_bool(xpc_object_t xarray, int index$1, bool value); + +void xpc_array_set_bool(Dartxpc_object_t xarray, int index$1, bool value) { + final _$$ref = xarray.ref; + return _xpc_array_set_bool(_$$ref.pointer, index$1, value); +} + +@ffi.Native( + symbol: 'xpc_array_set_connection', +) +external void _xpc_array_set_connection( + xpc_object_t xarray, + int index$1, + xpc_connection_t connection, +); + +void xpc_array_set_connection( + Dartxpc_object_t xarray, + int index$1, + Dartxpc_object_t connection, +) { + final _$$ref = xarray.ref; + final _$$ref$1 = connection.ref; + return _xpc_array_set_connection(_$$ref.pointer, index$1, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Size, ffi.Pointer, ffi.Size) +>(symbol: 'xpc_array_set_data') +external void _xpc_array_set_data( + xpc_object_t xarray, + int index$1, + ffi.Pointer bytes, + int length, +); + +void xpc_array_set_data( + Dartxpc_object_t xarray, + int index$1, + ffi.Pointer bytes, + int length, +) { + final _$$ref = xarray.ref; + return _xpc_array_set_data(_$$ref.pointer, index$1, bytes, length); +} + +@ffi.Native( + symbol: 'xpc_array_set_date', +) +external void _xpc_array_set_date(xpc_object_t xarray, int index$1, int value); + +void xpc_array_set_date(Dartxpc_object_t xarray, int index$1, int value) { + final _$$ref = xarray.ref; + return _xpc_array_set_date(_$$ref.pointer, index$1, value); +} + +@ffi.Native( + symbol: 'xpc_array_set_double', +) +external void _xpc_array_set_double( + xpc_object_t xarray, + int index$1, + double value, +); + +void xpc_array_set_double(Dartxpc_object_t xarray, int index$1, double value) { + final _$$ref = xarray.ref; + return _xpc_array_set_double(_$$ref.pointer, index$1, value); +} + +@ffi.Native( + symbol: 'xpc_array_set_fd', +) +external void _xpc_array_set_fd(xpc_object_t xarray, int index$1, int fd); + +void xpc_array_set_fd(Dartxpc_object_t xarray, int index$1, int fd) { + final _$$ref = xarray.ref; + return _xpc_array_set_fd(_$$ref.pointer, index$1, fd); +} + +@ffi.Native( + symbol: 'xpc_array_set_int64', +) +external void _xpc_array_set_int64(xpc_object_t xarray, int index$1, int value); + +void xpc_array_set_int64(Dartxpc_object_t xarray, int index$1, int value) { + final _$$ref = xarray.ref; + return _xpc_array_set_int64(_$$ref.pointer, index$1, value); +} + +@ffi.Native)>( + symbol: 'xpc_array_set_string', +) +external void _xpc_array_set_string( + xpc_object_t xarray, + int index$1, + ffi.Pointer string, +); + +void xpc_array_set_string( + Dartxpc_object_t xarray, + int index$1, + ffi.Pointer string, +) { + final _$$ref = xarray.ref; + return _xpc_array_set_string(_$$ref.pointer, index$1, string); +} + +@ffi.Native( + symbol: 'xpc_array_set_uint64', +) +external void _xpc_array_set_uint64( + xpc_object_t xarray, + int index$1, + int value, +); + +void xpc_array_set_uint64(Dartxpc_object_t xarray, int index$1, int value) { + final _$$ref = xarray.ref; + return _xpc_array_set_uint64(_$$ref.pointer, index$1, value); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Size, ffi.Pointer) +>(symbol: 'xpc_array_set_uuid') +external void _xpc_array_set_uuid( + xpc_object_t xarray, + int index$1, + ffi.Pointer uuid, +); + +void xpc_array_set_uuid( + Dartxpc_object_t xarray, + int index$1, + ffi.Pointer uuid, +) { + final _$$ref = xarray.ref; + return _xpc_array_set_uuid(_$$ref.pointer, index$1, uuid); +} + +@ffi.Native( + symbol: 'xpc_array_set_value', +) +external void _xpc_array_set_value( + xpc_object_t xarray, + int index$1, + xpc_object_t value, +); + +void xpc_array_set_value( + Dartxpc_object_t xarray, + int index$1, + Dartxpc_object_t value, +) { + final _$$ref = xarray.ref; + final _$$ref$1 = value.ref; + return _xpc_array_set_value(_$$ref.pointer, index$1, _$$ref$1.pointer); +} + +@ffi.Native(symbol: 'xpc_bool_create') +external xpc_object_t _xpc_bool_create(bool value); + +Dartxpc_object_t xpc_bool_create(bool value) { + return objc.NSObject.fromPointer( + _xpc_bool_create(value), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_bool_get_value') +external bool _xpc_bool_get_value(xpc_object_t xbool); + +bool xpc_bool_get_value(Dartxpc_object_t xbool) { + final _$$ref = xbool.ref; + return _xpc_bool_get_value(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_activate', +) +external void _xpc_connection_activate(xpc_connection_t connection); + +void xpc_connection_activate(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_activate(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_cancel', +) +external void _xpc_connection_cancel(xpc_connection_t connection); + +void xpc_connection_cancel(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_cancel(_$$ref.pointer); +} + +@ffi.Native Function(xpc_connection_t)>( + symbol: 'xpc_connection_copy_invalidation_reason', +) +external ffi.Pointer _xpc_connection_copy_invalidation_reason( + xpc_connection_t connection, +); + +ffi.Pointer xpc_connection_copy_invalidation_reason( + Dartxpc_object_t connection, +) { + final _$$ref = connection.ref; + return _xpc_connection_copy_invalidation_reason(_$$ref.pointer); +} + +@ffi.Native, dispatch_queue_t)>( + symbol: 'xpc_connection_create', +) +external xpc_connection_t _xpc_connection_create( + ffi.Pointer name, + dispatch_queue_t targetq, +); + +Dartxpc_object_t xpc_connection_create( + ffi.Pointer name, + Dartdispatch_queue_t? targetq, +) { + final _$$ref = targetq?.ref; + return objc.NSObject.fromPointer( + _xpc_connection_create(name, _$$ref?.pointer ?? ffi.nullptr), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_create_from_endpoint', +) +external xpc_connection_t _xpc_connection_create_from_endpoint( + xpc_endpoint_t endpoint, +); + +Dartxpc_object_t xpc_connection_create_from_endpoint( + Dartxpc_object_t endpoint, +) { + final _$$ref = endpoint.ref; + return objc.NSObject.fromPointer( + _xpc_connection_create_from_endpoint(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_connection_t Function(ffi.Pointer, dispatch_queue_t, ffi.Uint64) +>(symbol: 'xpc_connection_create_mach_service') +external xpc_connection_t _xpc_connection_create_mach_service( + ffi.Pointer name, + dispatch_queue_t targetq, + int flags, +); + +Dartxpc_object_t xpc_connection_create_mach_service( + ffi.Pointer name, + Dartdispatch_queue_t? targetq, + int flags, +) { + final _$$ref = targetq?.ref; + return objc.NSObject.fromPointer( + _xpc_connection_create_mach_service( + name, + _$$ref?.pointer ?? ffi.nullptr, + flags, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_get_asid', +) +external int _xpc_connection_get_asid(xpc_connection_t connection); + +Dart__int32_t xpc_connection_get_asid(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_asid(_$$ref.pointer); +} + +@ffi.Native Function(xpc_connection_t)>( + symbol: 'xpc_connection_get_context', +) +external ffi.Pointer _xpc_connection_get_context( + xpc_connection_t connection, +); + +ffi.Pointer xpc_connection_get_context(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_context(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_connection_get_egid') +external int _xpc_connection_get_egid(xpc_connection_t connection); + +Dart__uint32_t xpc_connection_get_egid(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_egid(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_connection_get_euid') +external int _xpc_connection_get_euid(xpc_connection_t connection); + +Dart__uint32_t xpc_connection_get_euid(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_euid(_$$ref.pointer); +} + +@ffi.Native Function(xpc_connection_t)>( + symbol: 'xpc_connection_get_name', +) +external ffi.Pointer _xpc_connection_get_name( + xpc_connection_t connection, +); + +ffi.Pointer xpc_connection_get_name(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_name(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_connection_get_pid') +external int _xpc_connection_get_pid(xpc_connection_t connection); + +Dart__int32_t xpc_connection_get_pid(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_pid(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_resume', +) +external void _xpc_connection_resume(xpc_connection_t connection); + +void xpc_connection_resume(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_resume(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_send_barrier', +) +external void _xpc_connection_send_barrier( + xpc_connection_t connection, + dispatch_block_t barrier, +); + +void xpc_connection_send_barrier( + Dartxpc_object_t connection, + Dartdispatch_block_t barrier, +) { + final _$$ref = connection.ref; + final _$$ref$1 = barrier.ref; + return _xpc_connection_send_barrier(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_send_message', +) +external void _xpc_connection_send_message( + xpc_connection_t connection, + xpc_object_t message, +); + +void xpc_connection_send_message( + Dartxpc_object_t connection, + Dartxpc_object_t message, +) { + final _$$ref = connection.ref; + final _$$ref$1 = message.ref; + return _xpc_connection_send_message(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + xpc_connection_t, + xpc_object_t, + dispatch_queue_t, + xpc_handler_t, + ) +>(symbol: 'xpc_connection_send_message_with_reply') +external void _xpc_connection_send_message_with_reply( + xpc_connection_t connection, + xpc_object_t message, + dispatch_queue_t replyq, + xpc_handler_t handler, +); + +void xpc_connection_send_message_with_reply( + Dartxpc_object_t connection, + Dartxpc_object_t message, + Dartdispatch_queue_t? replyq, + Dartxpc_handler_t handler, +) { + final _$$ref = connection.ref; + final _$$ref$1 = message.ref; + final _$$ref$2 = replyq?.ref; + final _$$ref$3 = handler.ref; + return _xpc_connection_send_message_with_reply( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3.pointer, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_send_message_with_reply_sync', +) +external xpc_object_t _xpc_connection_send_message_with_reply_sync( + xpc_connection_t connection, + xpc_object_t message, +); + +Dartxpc_object_t xpc_connection_send_message_with_reply_sync( + Dartxpc_object_t connection, + Dartxpc_object_t message, +) { + final _$$ref = connection.ref; + final _$$ref$1 = message.ref; + return objc.NSObject.fromPointer( + _xpc_connection_send_message_with_reply_sync( + _$$ref.pointer, + _$$ref$1.pointer, + ), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_connection_set_context', +) +external void _xpc_connection_set_context( + xpc_connection_t connection, + ffi.Pointer context, +); + +void xpc_connection_set_context( + Dartxpc_object_t connection, + ffi.Pointer context, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_context(_$$ref.pointer, context); +} + +@ffi.Native( + symbol: 'xpc_connection_set_event_handler', +) +external void _xpc_connection_set_event_handler( + xpc_connection_t connection, + xpc_handler_t handler, +); + +void xpc_connection_set_event_handler( + Dartxpc_object_t connection, + Dartxpc_handler_t handler, +) { + final _$$ref = connection.ref; + final _$$ref$1 = handler.ref; + return _xpc_connection_set_event_handler(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_set_finalizer_f', +) +external void _xpc_connection_set_finalizer_f( + xpc_connection_t connection, + xpc_finalizer_t finalizer, +); + +void xpc_connection_set_finalizer_f( + Dartxpc_object_t connection, + xpc_finalizer_t finalizer, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_finalizer_f(_$$ref.pointer, finalizer); +} + +@ffi.Native)>( + symbol: 'xpc_connection_set_peer_code_signing_requirement', +) +external int _xpc_connection_set_peer_code_signing_requirement( + xpc_connection_t connection, + ffi.Pointer requirement, +); + +int xpc_connection_set_peer_code_signing_requirement( + Dartxpc_object_t connection, + ffi.Pointer requirement, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_peer_code_signing_requirement( + _$$ref.pointer, + requirement, + ); +} + +@ffi.Native)>( + symbol: 'xpc_connection_set_peer_entitlement_exists_requirement', +) +external int _xpc_connection_set_peer_entitlement_exists_requirement( + xpc_connection_t connection, + ffi.Pointer entitlement, +); + +int xpc_connection_set_peer_entitlement_exists_requirement( + Dartxpc_object_t connection, + ffi.Pointer entitlement, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_peer_entitlement_exists_requirement( + _$$ref.pointer, + entitlement, + ); +} + +@ffi.Native< + ffi.Int Function(xpc_connection_t, ffi.Pointer, xpc_object_t) +>(symbol: 'xpc_connection_set_peer_entitlement_matches_value_requirement') +external int _xpc_connection_set_peer_entitlement_matches_value_requirement( + xpc_connection_t connection, + ffi.Pointer entitlement, + xpc_object_t value, +); + +int xpc_connection_set_peer_entitlement_matches_value_requirement( + Dartxpc_object_t connection, + ffi.Pointer entitlement, + Dartxpc_object_t value, +) { + final _$$ref = connection.ref; + final _$$ref$1 = value.ref; + return _xpc_connection_set_peer_entitlement_matches_value_requirement( + _$$ref.pointer, + entitlement, + _$$ref$1.pointer, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_set_peer_lightweight_code_requirement', +) +external int _xpc_connection_set_peer_lightweight_code_requirement( + xpc_connection_t connection, + xpc_object_t lwcr, +); + +int xpc_connection_set_peer_lightweight_code_requirement( + Dartxpc_object_t connection, + Dartxpc_object_t lwcr, +) { + final _$$ref = connection.ref; + final _$$ref$1 = lwcr.ref; + return _xpc_connection_set_peer_lightweight_code_requirement( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native)>( + symbol: 'xpc_connection_set_peer_platform_identity_requirement', +) +external int _xpc_connection_set_peer_platform_identity_requirement( + xpc_connection_t connection, + ffi.Pointer signing_identifier, +); + +int xpc_connection_set_peer_platform_identity_requirement( + Dartxpc_object_t connection, + ffi.Pointer signing_identifier, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_peer_platform_identity_requirement( + _$$ref.pointer, + signing_identifier, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_set_peer_requirement', +) +external void _xpc_connection_set_peer_requirement( + xpc_connection_t connection, + xpc_peer_requirement_t peer_requirement, +); + +void xpc_connection_set_peer_requirement( + Dartxpc_object_t connection, + Dartxpc_peer_requirement_t peer_requirement, +) { + final _$$ref = connection.ref; + final _$$ref$1 = peer_requirement.ref; + return _xpc_connection_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native)>( + symbol: 'xpc_connection_set_peer_team_identity_requirement', +) +external int _xpc_connection_set_peer_team_identity_requirement( + xpc_connection_t connection, + ffi.Pointer signing_identifier, +); + +int xpc_connection_set_peer_team_identity_requirement( + Dartxpc_object_t connection, + ffi.Pointer signing_identifier, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_peer_team_identity_requirement( + _$$ref.pointer, + signing_identifier, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_set_target_queue', +) +external void _xpc_connection_set_target_queue( + xpc_connection_t connection, + dispatch_queue_t targetq, +); + +void xpc_connection_set_target_queue( + Dartxpc_object_t connection, + Dartdispatch_queue_t? targetq, +) { + final _$$ref = connection.ref; + final _$$ref$1 = targetq?.ref; + return _xpc_connection_set_target_queue( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_suspend', +) +external void _xpc_connection_suspend(xpc_connection_t connection); + +void xpc_connection_suspend(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_suspend(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_copy') +external xpc_object_t _xpc_copy(xpc_object_t object); + +Dartxpc_object_t? xpc_copy(Dartxpc_object_t object) { + final _$$ref = object.ref; + return _xpc_copy(_$$ref.pointer).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_copy(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native Function(xpc_object_t)>( + symbol: 'xpc_copy_description', +) +external ffi.Pointer _xpc_copy_description(xpc_object_t object); + +ffi.Pointer xpc_copy_description(Dartxpc_object_t object) { + final _$$ref = object.ref; + return _xpc_copy_description(_$$ref.pointer); +} + +@ffi.Native, ffi.Size)>( + symbol: 'xpc_data_create', +) +external xpc_object_t _xpc_data_create(ffi.Pointer bytes, int length); + +Dartxpc_object_t xpc_data_create(ffi.Pointer bytes, int length) { + return objc.NSObject.fromPointer( + _xpc_data_create(bytes, length), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_data_create_with_dispatch_data', +) +external xpc_object_t _xpc_data_create_with_dispatch_data( + dispatch_data_t ddata, +); + +Dartxpc_object_t xpc_data_create_with_dispatch_data(Dartdispatch_data_t ddata) { + final _$$ref = ddata.ref; + return objc.NSObject.fromPointer( + _xpc_data_create_with_dispatch_data(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Size Function(xpc_object_t, ffi.Pointer, ffi.Size, ffi.Size) +>(symbol: 'xpc_data_get_bytes') +external int _xpc_data_get_bytes( + xpc_object_t xdata, + ffi.Pointer buffer, + int off, + int length, +); + +int xpc_data_get_bytes( + Dartxpc_object_t xdata, + ffi.Pointer buffer, + int off, + int length, +) { + final _$$ref = xdata.ref; + return _xpc_data_get_bytes(_$$ref.pointer, buffer, off, length); +} + +@ffi.Native Function(xpc_object_t)>( + symbol: 'xpc_data_get_bytes_ptr', +) +external ffi.Pointer _xpc_data_get_bytes_ptr(xpc_object_t xdata); + +ffi.Pointer xpc_data_get_bytes_ptr(Dartxpc_object_t xdata) { + final _$$ref = xdata.ref; + return _xpc_data_get_bytes_ptr(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_data_get_length') +external int _xpc_data_get_length(xpc_object_t xdata); + +int xpc_data_get_length(Dartxpc_object_t xdata) { + final _$$ref = xdata.ref; + return _xpc_data_get_length(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_date_create') +external xpc_object_t _xpc_date_create(int interval); + +Dartxpc_object_t xpc_date_create(int interval) { + return objc.NSObject.fromPointer( + _xpc_date_create(interval), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_date_create_from_current') +external xpc_object_t _xpc_date_create_from_current(); + +Dartxpc_object_t xpc_date_create_from_current() { + return objc.NSObject.fromPointer( + _xpc_date_create_from_current(), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_date_get_value') +external int _xpc_date_get_value(xpc_object_t xdate); + +int xpc_date_get_value(Dartxpc_object_t xdate) { + final _$$ref = xdate.ref; + return _xpc_date_get_value(_$$ref.pointer); +} + +@ffi.Native Function()>() +external ffi.Pointer xpc_debugger_api_misuse_info(); + +@ffi.Native( + symbol: 'xpc_dictionary_apply', +) +external bool _xpc_dictionary_apply( + xpc_object_t xdict, + xpc_dictionary_applier_t applier, +); + +bool xpc_dictionary_apply( + Dartxpc_object_t xdict, + Dartxpc_dictionary_applier_t applier, +) { + final _$$ref = xdict.ref; + final _$$ref$1 = applier.ref; + return _xpc_dictionary_apply(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_copy_mach_send', +) +external int _xpc_dictionary_copy_mach_send( + xpc_object_t xdict, + ffi.Pointer key, +); + +Dart__darwin_natural_t xpc_dictionary_copy_mach_send( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_copy_mach_send(_$$ref.pointer, key); +} + +@ffi.Native< + xpc_object_t Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'xpc_dictionary_create') +external xpc_object_t _xpc_dictionary_create( + ffi.Pointer> keys, + ffi.Pointer values, + int count, +); + +Dartxpc_object_t xpc_dictionary_create( + ffi.Pointer> keys, + ffi.Pointer values, + int count, +) { + return objc.NSObject.fromPointer( + _xpc_dictionary_create(keys, values, count), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_create_connection', +) +external xpc_connection_t _xpc_dictionary_create_connection( + xpc_object_t xdict, + ffi.Pointer key, +); + +Dartxpc_object_t? xpc_dictionary_create_connection( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_create_connection(_$$ref.pointer, key).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_create_connection(_$$ref.pointer, key), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_dictionary_create_empty') +external xpc_object_t _xpc_dictionary_create_empty(); + +Dartxpc_object_t xpc_dictionary_create_empty() { + return objc.NSObject.fromPointer( + _xpc_dictionary_create_empty(), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_dictionary_create_reply', +) +external xpc_object_t _xpc_dictionary_create_reply(xpc_object_t original); + +Dartxpc_object_t? xpc_dictionary_create_reply(Dartxpc_object_t original) { + final _$$ref = original.ref; + return _xpc_dictionary_create_reply(_$$ref.pointer).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_create_reply(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_dup_fd', +) +external int _xpc_dictionary_dup_fd( + xpc_object_t xdict, + ffi.Pointer key, +); + +int xpc_dictionary_dup_fd(Dartxpc_object_t xdict, ffi.Pointer key) { + final _$$ref = xdict.ref; + return _xpc_dictionary_dup_fd(_$$ref.pointer, key); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_array', +) +external xpc_object_t _xpc_dictionary_get_array( + xpc_object_t xdict, + ffi.Pointer key, +); + +Dartxpc_object_t? xpc_dictionary_get_array( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_array(_$$ref.pointer, key).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_get_array(_$$ref.pointer, key), + retain: true, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_bool', +) +external bool _xpc_dictionary_get_bool( + xpc_object_t xdict, + ffi.Pointer key, +); + +bool xpc_dictionary_get_bool( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_bool(_$$ref.pointer, key); +} + +@ffi.Native(symbol: 'xpc_dictionary_get_count') +external int _xpc_dictionary_get_count(xpc_object_t xdict); + +int xpc_dictionary_get_count(Dartxpc_object_t xdict) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_count(_$$ref.pointer); +} + +@ffi.Native< + ffi.Pointer Function( + xpc_object_t, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'xpc_dictionary_get_data') +external ffi.Pointer _xpc_dictionary_get_data( + xpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer length, +); + +ffi.Pointer xpc_dictionary_get_data( + Dartxpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer length, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_data(_$$ref.pointer, key, length); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_date', +) +external int _xpc_dictionary_get_date( + xpc_object_t xdict, + ffi.Pointer key, +); + +int xpc_dictionary_get_date(Dartxpc_object_t xdict, ffi.Pointer key) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_date(_$$ref.pointer, key); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_dictionary', +) +external xpc_object_t _xpc_dictionary_get_dictionary( + xpc_object_t xdict, + ffi.Pointer key, +); + +Dartxpc_object_t? xpc_dictionary_get_dictionary( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_dictionary(_$$ref.pointer, key).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_get_dictionary(_$$ref.pointer, key), + retain: true, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_double', +) +external double _xpc_dictionary_get_double( + xpc_object_t xdict, + ffi.Pointer key, +); + +double xpc_dictionary_get_double( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_double(_$$ref.pointer, key); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_int64', +) +external int _xpc_dictionary_get_int64( + xpc_object_t xdict, + ffi.Pointer key, +); + +int xpc_dictionary_get_int64( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_int64(_$$ref.pointer, key); +} + +@ffi.Native( + symbol: 'xpc_dictionary_get_remote_connection', +) +external xpc_connection_t _xpc_dictionary_get_remote_connection( + xpc_object_t xdict, +); + +Dartxpc_object_t? xpc_dictionary_get_remote_connection(Dartxpc_object_t xdict) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_remote_connection(_$$ref.pointer).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_get_remote_connection(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(xpc_object_t, ffi.Pointer) +>(symbol: 'xpc_dictionary_get_string') +external ffi.Pointer _xpc_dictionary_get_string( + xpc_object_t xdict, + ffi.Pointer key, +); + +ffi.Pointer xpc_dictionary_get_string( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_string(_$$ref.pointer, key); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_uint64', +) +external int _xpc_dictionary_get_uint64( + xpc_object_t xdict, + ffi.Pointer key, +); + +int xpc_dictionary_get_uint64( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_uint64(_$$ref.pointer, key); +} + +@ffi.Native< + ffi.Pointer Function(xpc_object_t, ffi.Pointer) +>(symbol: 'xpc_dictionary_get_uuid') +external ffi.Pointer _xpc_dictionary_get_uuid( + xpc_object_t xdict, + ffi.Pointer key, +); + +ffi.Pointer xpc_dictionary_get_uuid( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_uuid(_$$ref.pointer, key); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_value', +) +external xpc_object_t _xpc_dictionary_get_value( + xpc_object_t xdict, + ffi.Pointer key, +); + +Dartxpc_object_t? xpc_dictionary_get_value( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_value(_$$ref.pointer, key).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_get_value(_$$ref.pointer, key), + retain: true, + release: true, + ); +} + +@ffi.Native, ffi.Bool)>( + symbol: 'xpc_dictionary_set_bool', +) +external void _xpc_dictionary_set_bool( + xpc_object_t xdict, + ffi.Pointer key, + bool value, +); + +void xpc_dictionary_set_bool( + Dartxpc_object_t xdict, + ffi.Pointer key, + bool value, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_bool(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Pointer, xpc_connection_t) +>(symbol: 'xpc_dictionary_set_connection') +external void _xpc_dictionary_set_connection( + xpc_object_t xdict, + ffi.Pointer key, + xpc_connection_t connection, +); + +void xpc_dictionary_set_connection( + Dartxpc_object_t xdict, + ffi.Pointer key, + Dartxpc_object_t connection, +) { + final _$$ref = xdict.ref; + final _$$ref$1 = connection.ref; + return _xpc_dictionary_set_connection(_$$ref.pointer, key, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + xpc_object_t, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'xpc_dictionary_set_data') +external void _xpc_dictionary_set_data( + xpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer bytes, + int length, +); + +void xpc_dictionary_set_data( + Dartxpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer bytes, + int length, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_data(_$$ref.pointer, key, bytes, length); +} + +@ffi.Native, ffi.Int64)>( + symbol: 'xpc_dictionary_set_date', +) +external void _xpc_dictionary_set_date( + xpc_object_t xdict, + ffi.Pointer key, + int value, +); + +void xpc_dictionary_set_date( + Dartxpc_object_t xdict, + ffi.Pointer key, + int value, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_date(_$$ref.pointer, key, value); +} + +@ffi.Native, ffi.Double)>( + symbol: 'xpc_dictionary_set_double', +) +external void _xpc_dictionary_set_double( + xpc_object_t xdict, + ffi.Pointer key, + double value, +); + +void xpc_dictionary_set_double( + Dartxpc_object_t xdict, + ffi.Pointer key, + double value, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_double(_$$ref.pointer, key, value); +} + +@ffi.Native, ffi.Int)>( + symbol: 'xpc_dictionary_set_fd', +) +external void _xpc_dictionary_set_fd( + xpc_object_t xdict, + ffi.Pointer key, + int fd, +); + +void xpc_dictionary_set_fd( + Dartxpc_object_t xdict, + ffi.Pointer key, + int fd, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_fd(_$$ref.pointer, key, fd); +} + +@ffi.Native, ffi.Int64)>( + symbol: 'xpc_dictionary_set_int64', +) +external void _xpc_dictionary_set_int64( + xpc_object_t xdict, + ffi.Pointer key, + int value, +); + +void xpc_dictionary_set_int64( + Dartxpc_object_t xdict, + ffi.Pointer key, + int value, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_int64(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Pointer, mach_port_t) +>(symbol: 'xpc_dictionary_set_mach_send') +external void _xpc_dictionary_set_mach_send( + xpc_object_t xdict, + ffi.Pointer key, + int p, +); + +void xpc_dictionary_set_mach_send( + Dartxpc_object_t xdict, + ffi.Pointer key, + Dart__darwin_natural_t p, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_mach_send(_$$ref.pointer, key, p); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Pointer, ffi.Pointer) +>(symbol: 'xpc_dictionary_set_string') +external void _xpc_dictionary_set_string( + xpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer string, +); + +void xpc_dictionary_set_string( + Dartxpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer string, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_string(_$$ref.pointer, key, string); +} + +@ffi.Native, ffi.Uint64)>( + symbol: 'xpc_dictionary_set_uint64', +) +external void _xpc_dictionary_set_uint64( + xpc_object_t xdict, + ffi.Pointer key, + int value, +); + +void xpc_dictionary_set_uint64( + Dartxpc_object_t xdict, + ffi.Pointer key, + int value, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_uint64(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Void Function( + xpc_object_t, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'xpc_dictionary_set_uuid') +external void _xpc_dictionary_set_uuid( + xpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer uuid, +); + +void xpc_dictionary_set_uuid( + Dartxpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer uuid, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_uuid(_$$ref.pointer, key, uuid); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Pointer, xpc_object_t) +>(symbol: 'xpc_dictionary_set_value') +external void _xpc_dictionary_set_value( + xpc_object_t xdict, + ffi.Pointer key, + xpc_object_t value, +); + +void xpc_dictionary_set_value( + Dartxpc_object_t xdict, + ffi.Pointer key, + Dartxpc_object_t? value, +) { + final _$$ref = xdict.ref; + final _$$ref$1 = value?.ref; + return _xpc_dictionary_set_value( + _$$ref.pointer, + key, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native(symbol: 'xpc_double_create') +external xpc_object_t _xpc_double_create(double value); + +Dartxpc_object_t xpc_double_create(double value) { + return objc.NSObject.fromPointer( + _xpc_double_create(value), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_double_get_value') +external double _xpc_double_get_value(xpc_object_t xdouble); + +double xpc_double_get_value(Dartxpc_object_t xdouble) { + final _$$ref = xdouble.ref; + return _xpc_double_get_value(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'xpc_endpoint_create', +) +external xpc_endpoint_t _xpc_endpoint_create(xpc_connection_t connection); + +Dartxpc_object_t xpc_endpoint_create(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return objc.NSObject.fromPointer( + _xpc_endpoint_create(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_equal') +external bool _xpc_equal(xpc_object_t object1, xpc_object_t object2); + +bool xpc_equal(Dartxpc_object_t object1, Dartxpc_object_t object2) { + final _$$ref = object1.ref; + final _$$ref$1 = object2.ref; + return _xpc_equal(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native(symbol: 'xpc_fd_create') +external xpc_object_t _xpc_fd_create(int fd); + +Dartxpc_object_t? xpc_fd_create(int fd) { + return _xpc_fd_create(fd).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_fd_create(fd), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_fd_dup') +external int _xpc_fd_dup(xpc_object_t xfd); + +int xpc_fd_dup(Dartxpc_object_t xfd) { + final _$$ref = xfd.ref; + return _xpc_fd_dup(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_get_type') +external xpc_type_t _xpc_get_type(xpc_object_t object); + +xpc_type_t xpc_get_type(Dartxpc_object_t object) { + final _$$ref = object.ref; + return _xpc_get_type(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_hash') +external int _xpc_hash(xpc_object_t object); + +int xpc_hash(Dartxpc_object_t object) { + final _$$ref = object.ref; + return _xpc_hash(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_int64_create') +external xpc_object_t _xpc_int64_create(int value); + +Dartxpc_object_t xpc_int64_create(int value) { + return objc.NSObject.fromPointer( + _xpc_int64_create(value), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_int64_get_value') +external int _xpc_int64_get_value(xpc_object_t xint); + +int xpc_int64_get_value(Dartxpc_object_t xint) { + final _$$ref = xint.ref; + return _xpc_int64_get_value(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'xpc_listener_activate', +) +external bool _xpc_listener_activate( + xpc_listener_t listener, + ffi.Pointer error_out, +); + +bool xpc_listener_activate( + Dartxpc_listener_t listener, + ffi.Pointer error_out, +) { + final _$$ref = listener.ref; + return _xpc_listener_activate(_$$ref.pointer, error_out); +} + +@ffi.Native(symbol: 'xpc_listener_cancel') +external void _xpc_listener_cancel(xpc_listener_t listener); + +void xpc_listener_cancel(Dartxpc_listener_t listener) { + final _$$ref = listener.ref; + return _xpc_listener_cancel(_$$ref.pointer); +} + +@ffi.Native Function(xpc_listener_t)>( + symbol: 'xpc_listener_copy_description', +) +external ffi.Pointer _xpc_listener_copy_description( + xpc_listener_t listener, +); + +ffi.Pointer xpc_listener_copy_description( + Dartxpc_listener_t listener, +) { + final _$$ref = listener.ref; + return _xpc_listener_copy_description(_$$ref.pointer); +} + +@ffi.Native< + xpc_listener_t Function( + ffi.Pointer, + dispatch_queue_t, + ffi.Uint64, + xpc_listener_incoming_session_handler_t, + ffi.Pointer, + ) +>(symbol: 'xpc_listener_create') +external xpc_listener_t _xpc_listener_create( + ffi.Pointer service, + dispatch_queue_t target_queue, + int flags, + xpc_listener_incoming_session_handler_t incoming_session_handler, + ffi.Pointer error_out, +); + +Dartxpc_listener_t? xpc_listener_create( + ffi.Pointer service, + Dartdispatch_queue_t? target_queue, + int flags, + Dartxpc_listener_incoming_session_handler_t incoming_session_handler, + ffi.Pointer error_out, +) { + final _$$ref = target_queue?.ref; + final _$$ref$1 = incoming_session_handler.ref; + return _xpc_listener_create( + service, + _$$ref?.pointer ?? ffi.nullptr, + flags, + _$$ref$1.pointer, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_listener_create( + service, + _$$ref?.pointer ?? ffi.nullptr, + flags, + _$$ref$1.pointer, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_listener_reject_peer', +) +external void _xpc_listener_reject_peer( + xpc_session_t peer, + ffi.Pointer reason, +); + +void xpc_listener_reject_peer( + Dartxpc_session_t peer, + ffi.Pointer reason, +) { + final _$$ref = peer.ref; + return _xpc_listener_reject_peer(_$$ref.pointer, reason); +} + +@ffi.Native)>( + symbol: 'xpc_listener_set_peer_code_signing_requirement', +) +external int _xpc_listener_set_peer_code_signing_requirement( + xpc_listener_t listener, + ffi.Pointer requirement, +); + +int xpc_listener_set_peer_code_signing_requirement( + Dartxpc_listener_t listener, + ffi.Pointer requirement, +) { + final _$$ref = listener.ref; + return _xpc_listener_set_peer_code_signing_requirement( + _$$ref.pointer, + requirement, + ); +} + +@ffi.Native( + symbol: 'xpc_listener_set_peer_requirement', +) +external void _xpc_listener_set_peer_requirement( + xpc_listener_t listener, + xpc_peer_requirement_t requirement, +); + +void xpc_listener_set_peer_requirement( + Dartxpc_listener_t listener, + Dartxpc_peer_requirement_t requirement, +) { + final _$$ref = listener.ref; + final _$$ref$1 = requirement.ref; + return _xpc_listener_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native() +external void xpc_main(xpc_connection_handler_t handler); + +@ffi.Native(symbol: 'xpc_null_create') +external xpc_object_t _xpc_null_create(); + +Dartxpc_object_t xpc_null_create() { + return objc.NSObject.fromPointer( + _xpc_null_create(), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_peer_requirement_t Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'xpc_peer_requirement_create_entitlement_exists') +external xpc_peer_requirement_t _xpc_peer_requirement_create_entitlement_exists( + ffi.Pointer entitlement, + ffi.Pointer error_out, +); + +Dartxpc_peer_requirement_t? xpc_peer_requirement_create_entitlement_exists( + ffi.Pointer entitlement, + ffi.Pointer error_out, +) { + return _xpc_peer_requirement_create_entitlement_exists( + entitlement, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_peer_requirement_create_entitlement_exists( + entitlement, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_peer_requirement_t Function( + ffi.Pointer, + xpc_object_t, + ffi.Pointer, + ) +>(symbol: 'xpc_peer_requirement_create_entitlement_matches_value') +external xpc_peer_requirement_t +_xpc_peer_requirement_create_entitlement_matches_value( + ffi.Pointer entitlement, + xpc_object_t value, + ffi.Pointer error_out, +); + +Dartxpc_peer_requirement_t? +xpc_peer_requirement_create_entitlement_matches_value( + ffi.Pointer entitlement, + Dartxpc_object_t value, + ffi.Pointer error_out, +) { + final _$$ref = value.ref; + return _xpc_peer_requirement_create_entitlement_matches_value( + entitlement, + _$$ref.pointer, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_peer_requirement_create_entitlement_matches_value( + entitlement, + _$$ref.pointer, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_peer_requirement_t Function(xpc_object_t, ffi.Pointer) +>(symbol: 'xpc_peer_requirement_create_lwcr') +external xpc_peer_requirement_t _xpc_peer_requirement_create_lwcr( + xpc_object_t lwcr, + ffi.Pointer error_out, +); + +Dartxpc_peer_requirement_t? xpc_peer_requirement_create_lwcr( + Dartxpc_object_t lwcr, + ffi.Pointer error_out, +) { + final _$$ref = lwcr.ref; + return _xpc_peer_requirement_create_lwcr(_$$ref.pointer, error_out).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_peer_requirement_create_lwcr(_$$ref.pointer, error_out), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_peer_requirement_t Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'xpc_peer_requirement_create_platform_identity') +external xpc_peer_requirement_t _xpc_peer_requirement_create_platform_identity( + ffi.Pointer signing_identifier, + ffi.Pointer error_out, +); + +Dartxpc_peer_requirement_t? xpc_peer_requirement_create_platform_identity( + ffi.Pointer signing_identifier, + ffi.Pointer error_out, +) { + return _xpc_peer_requirement_create_platform_identity( + signing_identifier, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_peer_requirement_create_platform_identity( + signing_identifier, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_peer_requirement_t Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'xpc_peer_requirement_create_team_identity') +external xpc_peer_requirement_t _xpc_peer_requirement_create_team_identity( + ffi.Pointer signing_identifier, + ffi.Pointer error_out, +); + +Dartxpc_peer_requirement_t? xpc_peer_requirement_create_team_identity( + ffi.Pointer signing_identifier, + ffi.Pointer error_out, +) { + return _xpc_peer_requirement_create_team_identity( + signing_identifier, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_peer_requirement_create_team_identity( + signing_identifier, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Bool Function( + xpc_peer_requirement_t, + xpc_object_t, + ffi.Pointer, + ) +>(symbol: 'xpc_peer_requirement_match_received_message') +external bool _xpc_peer_requirement_match_received_message( + xpc_peer_requirement_t peer_requirement, + xpc_object_t message, + ffi.Pointer error_out, +); + +bool xpc_peer_requirement_match_received_message( + Dartxpc_peer_requirement_t peer_requirement, + Dartxpc_object_t message, + ffi.Pointer error_out, +) { + final _$$ref = peer_requirement.ref; + final _$$ref$1 = message.ref; + return _xpc_peer_requirement_match_received_message( + _$$ref.pointer, + _$$ref$1.pointer, + error_out, + ); +} + +@ffi.Native(symbol: 'xpc_release') +external void _xpc_release(xpc_object_t object); + +void xpc_release(Dartxpc_object_t object) { + final _$$ref = object.ref; + return _xpc_release(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_retain') +external xpc_object_t _xpc_retain(xpc_object_t object); + +Dartxpc_object_t xpc_retain(Dartxpc_object_t object) { + final _$$ref = object.ref; + return objc.NSObject.fromPointer( + _xpc_retain(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_rich_error_can_retry', +) +external bool _xpc_rich_error_can_retry(xpc_rich_error_t error); + +bool xpc_rich_error_can_retry(Dartxpc_object_t error) { + final _$$ref = error.ref; + return _xpc_rich_error_can_retry(_$$ref.pointer); +} + +@ffi.Native Function(xpc_rich_error_t)>( + symbol: 'xpc_rich_error_copy_description', +) +external ffi.Pointer _xpc_rich_error_copy_description( + xpc_rich_error_t error, +); + +ffi.Pointer xpc_rich_error_copy_description(Dartxpc_object_t error) { + final _$$ref = error.ref; + return _xpc_rich_error_copy_description(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'xpc_session_activate', +) +external bool _xpc_session_activate( + xpc_session_t session, + ffi.Pointer error_out, +); + +bool xpc_session_activate( + Dartxpc_session_t session, + ffi.Pointer error_out, +) { + final _$$ref = session.ref; + return _xpc_session_activate(_$$ref.pointer, error_out); +} + +@ffi.Native(symbol: 'xpc_session_cancel') +external void _xpc_session_cancel(xpc_session_t session); + +void xpc_session_cancel(Dartxpc_session_t session) { + final _$$ref = session.ref; + return _xpc_session_cancel(_$$ref.pointer); +} + +@ffi.Native Function(xpc_session_t)>( + symbol: 'xpc_session_copy_description', +) +external ffi.Pointer _xpc_session_copy_description( + xpc_session_t session, +); + +ffi.Pointer xpc_session_copy_description(Dartxpc_session_t session) { + final _$$ref = session.ref; + return _xpc_session_copy_description(_$$ref.pointer); +} + +@ffi.Native< + xpc_session_t Function( + ffi.Pointer, + dispatch_queue_t, + ffi.Uint64, + ffi.Pointer, + ) +>(symbol: 'xpc_session_create_mach_service') +external xpc_session_t _xpc_session_create_mach_service( + ffi.Pointer mach_service, + dispatch_queue_t target_queue, + int flags, + ffi.Pointer error_out, +); + +Dartxpc_session_t? xpc_session_create_mach_service( + ffi.Pointer mach_service, + Dartdispatch_queue_t? target_queue, + int flags, + ffi.Pointer error_out, +) { + final _$$ref = target_queue?.ref; + return _xpc_session_create_mach_service( + mach_service, + _$$ref?.pointer ?? ffi.nullptr, + flags, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_session_create_mach_service( + mach_service, + _$$ref?.pointer ?? ffi.nullptr, + flags, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_session_t Function( + ffi.Pointer, + dispatch_queue_t, + ffi.Uint64, + ffi.Pointer, + ) +>(symbol: 'xpc_session_create_xpc_service') +external xpc_session_t _xpc_session_create_xpc_service( + ffi.Pointer name, + dispatch_queue_t target_queue, + int flags, + ffi.Pointer error_out, +); + +Dartxpc_session_t? xpc_session_create_xpc_service( + ffi.Pointer name, + Dartdispatch_queue_t? target_queue, + int flags, + ffi.Pointer error_out, +) { + final _$$ref = target_queue?.ref; + return _xpc_session_create_xpc_service( + name, + _$$ref?.pointer ?? ffi.nullptr, + flags, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_session_create_xpc_service( + name, + _$$ref?.pointer ?? ffi.nullptr, + flags, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_session_send_message', +) +external xpc_rich_error_t _xpc_session_send_message( + xpc_session_t session, + xpc_object_t message, +); + +Dartxpc_object_t? xpc_session_send_message( + Dartxpc_session_t session, + Dartxpc_object_t message, +) { + final _$$ref = session.ref; + final _$$ref$1 = message.ref; + return _xpc_session_send_message(_$$ref.pointer, _$$ref$1.pointer).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_session_send_message(_$$ref.pointer, _$$ref$1.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Void Function(xpc_session_t, xpc_object_t, xpc_session_reply_handler_t) +>(symbol: 'xpc_session_send_message_with_reply_async') +external void _xpc_session_send_message_with_reply_async( + xpc_session_t session, + xpc_object_t message, + xpc_session_reply_handler_t reply_handler, +); + +void xpc_session_send_message_with_reply_async( + Dartxpc_session_t session, + Dartxpc_object_t message, + Dartxpc_session_reply_handler_t reply_handler, +) { + final _$$ref = session.ref; + final _$$ref$1 = message.ref; + final _$$ref$2 = reply_handler.ref; + return _xpc_session_send_message_with_reply_async( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native< + xpc_object_t Function( + xpc_session_t, + xpc_object_t, + ffi.Pointer, + ) +>(symbol: 'xpc_session_send_message_with_reply_sync') +external xpc_object_t _xpc_session_send_message_with_reply_sync( + xpc_session_t session, + xpc_object_t message, + ffi.Pointer error_out, +); + +Dartxpc_object_t? xpc_session_send_message_with_reply_sync( + Dartxpc_session_t session, + Dartxpc_object_t message, + ffi.Pointer error_out, +) { + final _$$ref = session.ref; + final _$$ref$1 = message.ref; + return _xpc_session_send_message_with_reply_sync( + _$$ref.pointer, + _$$ref$1.pointer, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_session_send_message_with_reply_sync( + _$$ref.pointer, + _$$ref$1.pointer, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_session_set_cancel_handler', +) +external void _xpc_session_set_cancel_handler( + xpc_session_t session, + xpc_session_cancel_handler_t cancel_handler, +); + +void xpc_session_set_cancel_handler( + Dartxpc_session_t session, + Dartxpc_session_cancel_handler_t cancel_handler, +) { + final _$$ref = session.ref; + final _$$ref$1 = cancel_handler.ref; + return _xpc_session_set_cancel_handler(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function(xpc_session_t, xpc_session_incoming_message_handler_t) +>(symbol: 'xpc_session_set_incoming_message_handler') +external void _xpc_session_set_incoming_message_handler( + xpc_session_t session, + xpc_session_incoming_message_handler_t handler, +); + +void xpc_session_set_incoming_message_handler( + Dartxpc_session_t session, + Dartxpc_session_incoming_message_handler_t handler, +) { + final _$$ref = session.ref; + final _$$ref$1 = handler.ref; + return _xpc_session_set_incoming_message_handler( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native)>( + symbol: 'xpc_session_set_peer_code_signing_requirement', +) +external int _xpc_session_set_peer_code_signing_requirement( + xpc_session_t session, + ffi.Pointer requirement, +); + +int xpc_session_set_peer_code_signing_requirement( + Dartxpc_session_t session, + ffi.Pointer requirement, +) { + final _$$ref = session.ref; + return _xpc_session_set_peer_code_signing_requirement( + _$$ref.pointer, + requirement, + ); +} + +@ffi.Native( + symbol: 'xpc_session_set_peer_requirement', +) +external void _xpc_session_set_peer_requirement( + xpc_session_t session, + xpc_peer_requirement_t requirement, +); + +void xpc_session_set_peer_requirement( + Dartxpc_session_t session, + Dartxpc_peer_requirement_t requirement, +) { + final _$$ref = session.ref; + final _$$ref$1 = requirement.ref; + return _xpc_session_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_session_set_target_queue', +) +external void _xpc_session_set_target_queue( + xpc_session_t session, + dispatch_queue_t target_queue, +); + +void xpc_session_set_target_queue( + Dartxpc_session_t session, + Dartdispatch_queue_t? target_queue, +) { + final _$$ref = session.ref; + final _$$ref$1 = target_queue?.ref; + return _xpc_session_set_target_queue( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, dispatch_queue_t, xpc_handler_t) +>(symbol: 'xpc_set_event_stream_handler') +external void _xpc_set_event_stream_handler( + ffi.Pointer stream, + dispatch_queue_t targetq, + xpc_handler_t handler, +); + +void xpc_set_event_stream_handler( + ffi.Pointer stream, + Dartdispatch_queue_t? targetq, + Dartxpc_handler_t handler, +) { + final _$$ref = targetq?.ref; + final _$$ref$1 = handler.ref; + return _xpc_set_event_stream_handler( + stream, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1.pointer, + ); +} + +@ffi.Native, ffi.Size)>( + symbol: 'xpc_shmem_create', +) +external xpc_object_t _xpc_shmem_create( + ffi.Pointer region, + int length, +); + +Dartxpc_object_t xpc_shmem_create(ffi.Pointer region, int length) { + return objc.NSObject.fromPointer( + _xpc_shmem_create(region, length), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Size Function(xpc_object_t, ffi.Pointer>) +>(symbol: 'xpc_shmem_map') +external int _xpc_shmem_map( + xpc_object_t xshmem, + ffi.Pointer> region, +); + +int xpc_shmem_map( + Dartxpc_object_t xshmem, + ffi.Pointer> region, +) { + final _$$ref = xshmem.ref; + return _xpc_shmem_map(_$$ref.pointer, region); +} + +@ffi.Native)>( + symbol: 'xpc_string_create', +) +external xpc_object_t _xpc_string_create(ffi.Pointer string); + +Dartxpc_object_t xpc_string_create(ffi.Pointer string) { + return objc.NSObject.fromPointer( + _xpc_string_create(string), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_string_create_with_format', +) +external xpc_object_t _xpc_string_create_with_format(ffi.Pointer fmt); + +Dartxpc_object_t xpc_string_create_with_format(ffi.Pointer fmt) { + return objc.NSObject.fromPointer( + _xpc_string_create_with_format(fmt), + retain: false, + release: true, + ); +} + +@ffi.Native, va_list)>( + symbol: 'xpc_string_create_with_format_and_arguments', +) +external xpc_object_t _xpc_string_create_with_format_and_arguments( + ffi.Pointer fmt, + va_list ap, +); + +Dartxpc_object_t xpc_string_create_with_format_and_arguments( + ffi.Pointer fmt, + va_list ap, +) { + return objc.NSObject.fromPointer( + _xpc_string_create_with_format_and_arguments(fmt, ap), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_string_get_length') +external int _xpc_string_get_length(xpc_object_t xstring); + +int xpc_string_get_length(Dartxpc_object_t xstring) { + final _$$ref = xstring.ref; + return _xpc_string_get_length(_$$ref.pointer); +} + +@ffi.Native Function(xpc_object_t)>( + symbol: 'xpc_string_get_string_ptr', +) +external ffi.Pointer _xpc_string_get_string_ptr(xpc_object_t xstring); + +ffi.Pointer xpc_string_get_string_ptr(Dartxpc_object_t xstring) { + final _$$ref = xstring.ref; + return _xpc_string_get_string_ptr(_$$ref.pointer); +} + +@ffi.Native() +external void xpc_transaction_begin(); + +@ffi.Native() +external void xpc_transaction_end(); + +@ffi.Native Function(xpc_type_t)>() +external ffi.Pointer xpc_type_get_name(xpc_type_t type); + +@ffi.Native(symbol: 'xpc_uint64_create') +external xpc_object_t _xpc_uint64_create(int value); + +Dartxpc_object_t xpc_uint64_create(int value) { + return objc.NSObject.fromPointer( + _xpc_uint64_create(value), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_uint64_get_value') +external int _xpc_uint64_get_value(xpc_object_t xuint); + +int xpc_uint64_get_value(Dartxpc_object_t xuint) { + final _$$ref = xuint.ref; + return _xpc_uint64_get_value(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'xpc_uuid_create', +) +external xpc_object_t _xpc_uuid_create(ffi.Pointer uuid); + +Dartxpc_object_t xpc_uuid_create(ffi.Pointer uuid) { + return objc.NSObject.fromPointer( + _xpc_uuid_create(uuid), + retain: false, + release: true, + ); +} + +@ffi.Native Function(xpc_object_t)>( + symbol: 'xpc_uuid_get_bytes', +) +external ffi.Pointer _xpc_uuid_get_bytes(xpc_object_t xuuid); + +ffi.Pointer xpc_uuid_get_bytes(Dartxpc_object_t xuuid) { + final _$$ref = xuuid.ref; + return _xpc_uuid_get_bytes(_$$ref.pointer); +} + +@ffi.Native() +external double y0(double arg0); + +@ffi.Native() +external double y1(double arg0); + +@ffi.Native() +external double yn(int arg0, double arg1); + +const int AAPNotCreatedErr = -2120; + +const int AAPNotFoundErr = -2121; + +const int ACE2Type = 1094927666; + +const int ACE8Type = 1094927672; + +typedef AEAddressDesc = objc.AEDesc; + +final class AEArrayData extends ffi.Union { + @ffi.Array.multi([1]) + external ffi.Array kAEDataArray$1; + + @ffi.Array.multi([1]) + external ffi.Array kAEPackedArray$1; + + @ffi.Array.multi([1]) + external ffi.Array kAEHandleArray$1; + + @ffi.Array.multi([1]) + external ffi.Array kAEDescArray$1; + + @ffi.Array.multi([1]) + external ffi.Array kAEKeyDescArray$1; +} + +typedef AEArrayDataPointer = ffi.Pointer; +typedef AEArrayType = SInt8; + +@ffi.Packed(2) +final class AEBuildError extends ffi.Struct { + @AEBuildErrorCode() + external int fError; + + @UInt32() + external int fErrorPos; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fError, + required int fErrorPos, + }) => $allocator() + ..ref.fError = fError + ..ref.fErrorPos = fErrorPos; +} + +typedef AEBuildErrorCode = UInt32; +typedef AECoerceDescProcPtr = + ffi.Pointer>; +typedef AECoerceDescProcPtrFunction = + OSErr Function( + ffi.Pointer fromDesc, + DescType toType, + SRefCon handlerRefcon, + ffi.Pointer toDesc, + ); +typedef DartAECoerceDescProcPtrFunction = + DartSInt16 Function( + ffi.Pointer fromDesc, + DartUInt32 toType, + SRefCon handlerRefcon, + ffi.Pointer toDesc, + ); +typedef AECoerceDescUPP = AECoerceDescProcPtr; +typedef AECoercePtrProcPtr = + ffi.Pointer>; +typedef AECoercePtrProcPtrFunction = + OSErr Function( + DescType typeCode, + ffi.Pointer dataPtr, + Size dataSize, + DescType toType, + SRefCon handlerRefcon, + ffi.Pointer result, + ); +typedef DartAECoercePtrProcPtrFunction = + DartSInt16 Function( + DartUInt32 typeCode, + ffi.Pointer dataPtr, + DartSize dataSize, + DartUInt32 toType, + SRefCon handlerRefcon, + ffi.Pointer result, + ); +typedef AECoercePtrUPP = AECoercePtrProcPtr; +typedef AECoercionHandlerUPP = AECoerceDescUPP; +typedef AEDataStorage = ffi.Pointer; +typedef AEDataStorageType = ffi.Pointer; +typedef AEDescList = objc.AEDesc; +typedef AEDescPtr = ffi.Pointer; +typedef AEDisposeExternalProcPtr = + ffi.Pointer>; +typedef AEDisposeExternalProcPtrFunction = + ffi.Void Function( + ffi.Pointer dataPtr, + Size dataLength, + SRefCon refcon, + ); +typedef DartAEDisposeExternalProcPtrFunction = + void Function( + ffi.Pointer dataPtr, + DartSize dataLength, + SRefCon refcon, + ); +typedef AEDisposeExternalUPP = AEDisposeExternalProcPtr; +typedef AEEventClass = FourCharCode; +typedef AEEventHandlerProcPtr = + ffi.Pointer>; +typedef AEEventHandlerProcPtrFunction = + OSErr Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + SRefCon handlerRefcon, + ); +typedef DartAEEventHandlerProcPtrFunction = + DartSInt16 Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + SRefCon handlerRefcon, + ); +typedef AEEventHandlerUPP = AEEventHandlerProcPtr; +typedef AEEventID = FourCharCode; +typedef AEEventSource = SInt8; + +@ffi.Packed(2) +final class AEKeyDesc extends ffi.Struct { + @AEKeyword() + external int descKey; + + external objc.AEDesc descContent; +} + +typedef AEKeyword = FourCharCode; +typedef AERecord = AEDescList; + +final class AERemoteProcessResolver extends ffi.Opaque {} + +typedef AERemoteProcessResolverCallback = + ffi.Pointer>; +typedef AERemoteProcessResolverCallbackFunction = + ffi.Void Function( + AERemoteProcessResolverRef ref, + ffi.Pointer info, + ); +typedef DartAERemoteProcessResolverCallbackFunction = + void Function(AERemoteProcessResolverRef ref, ffi.Pointer info); + +@ffi.Packed(2) +final class AERemoteProcessResolverContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef AERemoteProcessResolverRef = ffi.Pointer; +typedef AEReturnID = SInt16; +typedef AESendMode = SInt32; +typedef AESendPriority = SInt16; +typedef AEStreamRef = ffi.Pointer; +typedef AETransactionID = SInt32; + +final class AFPAlternateAddress extends ffi.Struct { + @UInt8() + external int fVersion; + + @UInt8() + external int fAddressCount; + + @ffi.Array.multi([1]) + external ffi.Array fAddressList; +} + +final class AFPTagData extends ffi.Struct { + @UInt8() + external int fLength; + + @UInt8() + external int fType; + + @ffi.Array.multi([1]) + external ffi.Array fData; +} + +@ffi.Packed(2) +final class AFPVolMountInfo extends ffi.Struct { + @SInt16() + external int length; + + @VolumeType() + external int media; + + @SInt16() + external int flags; + + @SInt8() + external int nbpInterval; + + @SInt8() + external int nbpCount; + + @SInt16() + external int uamType; + + @SInt16() + external int zoneNameOffset; + + @SInt16() + external int serverNameOffset; + + @SInt16() + external int volNameOffset; + + @SInt16() + external int userNameOffset; + + @SInt16() + external int userPasswordOffset; + + @SInt16() + external int volPasswordOffset; + + @ffi.Array.multi([144]) + external ffi.Array AFPData; +} + +typedef AFPVolMountInfoPtr = ffi.Pointer; + +@ffi.Packed(2) +final class AFPXVolMountInfo extends ffi.Struct { + @SInt16() + external int length; + + @VolumeType() + external int media; + + @SInt16() + external int flags; + + @SInt8() + external int nbpInterval; + + @SInt8() + external int nbpCount; + + @SInt16() + external int uamType; + + @SInt16() + external int zoneNameOffset; + + @SInt16() + external int serverNameOffset; + + @SInt16() + external int volNameOffset; + + @SInt16() + external int userNameOffset; + + @SInt16() + external int userPasswordOffset; + + @SInt16() + external int volPasswordOffset; + + @SInt16() + external int extendedFlags; + + @SInt16() + external int uamNameOffset; + + @SInt16() + external int alternateAddressOffset; + + @ffi.Array.multi([176]) + external ffi.Array AFPData; +} + +typedef AFPXVolMountInfoPtr = ffi.Pointer; + +const int AIFCID = 1095321155; + +const int AIFCVersion1 = -1568648896; + +const int AIFFID = 1095321158; + +final class AIFFLoop extends ffi.Struct { + @SInt16() + external int playMode; + + @MarkerIdType() + external int beginLoop; + + @MarkerIdType() + external int endLoop; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int playMode, + required int beginLoop, + required int endLoop, + }) => $allocator() + ..ref.playMode = playMode + ..ref.beginLoop = beginLoop + ..ref.endLoop = endLoop; +} + +final class ALMXGlyphEntry extends ffi.Struct { + @SInt16() + external int GlyphIndexOffset; + + @SInt16() + external int HorizontalAdvance; + + @SInt16() + external int XOffsetToHOrigin; + + @SInt16() + external int VerticalAdvance; + + @SInt16() + external int YOffsetToVOrigin; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int GlyphIndexOffset, + required int HorizontalAdvance, + required int XOffsetToHOrigin, + required int VerticalAdvance, + required int YOffsetToVOrigin, + }) => $allocator() + ..ref.GlyphIndexOffset = GlyphIndexOffset + ..ref.HorizontalAdvance = HorizontalAdvance + ..ref.XOffsetToHOrigin = XOffsetToHOrigin + ..ref.VerticalAdvance = VerticalAdvance + ..ref.YOffsetToVOrigin = YOffsetToVOrigin; +} + +@ffi.Packed(2) +final class ALMXHeader extends ffi.Struct { + @Fixed() + external int Version; + + @UInt16() + external int Flags; + + @UInt16() + external int NMasters; + + @UInt16() + external int FirstGlyph; + + @UInt16() + external int LastGlyph; + + external SFNTLookupTable lookup; +} + +const int ASDBadForkErr = -2123; + +const int ASDBadHeaderErr = -2122; + +const int ASDEntryNotFoundErr = -2124; + +typedef ATSCubicClosePathProcPtr = + ffi.Pointer>; +typedef ATSCubicClosePathProcPtrFunction = + OSStatus Function(ffi.Pointer callBackDataPtr); +typedef DartATSCubicClosePathProcPtrFunction = + DartSInt32 Function(ffi.Pointer callBackDataPtr); +typedef ATSCubicClosePathUPP = ATSCubicClosePathProcPtr; +typedef ATSCubicCurveToProcPtr = + ffi.Pointer>; +typedef ATSCubicCurveToProcPtrFunction = + OSStatus Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer pt3, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSCubicCurveToProcPtrFunction = + DartSInt32 Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer pt3, + ffi.Pointer callBackDataPtr, + ); +typedef ATSCubicCurveToUPP = ATSCubicCurveToProcPtr; +typedef ATSCubicLineToProcPtr = + ffi.Pointer>; +typedef ATSCubicLineToProcPtrFunction = + OSStatus Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSCubicLineToProcPtrFunction = + DartSInt32 Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef ATSCubicLineToUPP = ATSCubicLineToProcPtr; +typedef ATSCubicMoveToProcPtr = + ffi.Pointer>; +typedef ATSCubicMoveToProcPtrFunction = + OSStatus Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSCubicMoveToProcPtrFunction = + DartSInt32 Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef ATSCubicMoveToUPP = ATSCubicMoveToProcPtr; +typedef ATSCurveType = UInt16; + +@ffi.Packed(2) +final class ATSFlatDataFontNameDataHeader extends ffi.Struct { + @ATSFlatDataFontSpeciferType() + external int nameSpecifierType; + + @UInt32() + external int nameSpecifierSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nameSpecifierType, + required int nameSpecifierSize, + }) => $allocator() + ..ref.nameSpecifierType = nameSpecifierType + ..ref.nameSpecifierSize = nameSpecifierSize; +} + +@ffi.Packed(2) +final class ATSFlatDataFontSpecRawNameData extends ffi.Struct { + @FontNameCode() + external int fontNameType; + + @FontPlatformCode() + external int fontNamePlatform; + + @FontScriptCode() + external int fontNameScript; + + @FontLanguageCode() + external int fontNameLanguage; + + @UInt32() + external int fontNameLength; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fontNameType, + required int fontNamePlatform, + required int fontNameScript, + required int fontNameLanguage, + required int fontNameLength, + }) => $allocator() + ..ref.fontNameType = fontNameType + ..ref.fontNamePlatform = fontNamePlatform + ..ref.fontNameScript = fontNameScript + ..ref.fontNameLanguage = fontNameLanguage + ..ref.fontNameLength = fontNameLength; +} + +@ffi.Packed(2) +final class ATSFlatDataFontSpecRawNameDataHeader extends ffi.Struct { + @UInt32() + external int numberOfFlattenedNames; + + @ffi.Array.multi([1]) + external ffi.Array nameDataArray; +} + +typedef ATSFlatDataFontSpeciferType = UInt32; + +@ffi.Packed(2) +final class ATSFlatDataLayoutControlsDataHeader extends ffi.Struct { + @UInt32() + external int numberOfLayoutControls; + + @ffi.Array.multi([1]) + external ffi.Array controlArray; +} + +@ffi.Packed(2) +final class ATSFlatDataLineInfoData extends ffi.Struct { + @UInt32() + external int lineLength; + + @UInt32() + external int numberOfLineControls; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lineLength, + required int numberOfLineControls, + }) => $allocator() + ..ref.lineLength = lineLength + ..ref.numberOfLineControls = numberOfLineControls; +} + +@ffi.Packed(2) +final class ATSFlatDataLineInfoHeader extends ffi.Struct { + @UInt32() + external int numberOfLines; + + @ffi.Array.multi([1]) + external ffi.Array lineInfoArray; +} + +@ffi.Packed(2) +final class ATSFlatDataMainHeaderBlock extends ffi.Struct { + @UInt32() + external int version; + + @UInt32() + external int sizeOfDataBlock; + + @UInt32() + external int offsetToTextLayouts; + + @UInt32() + external int offsetToStyleRuns; + + @UInt32() + external int offsetToStyleList; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int sizeOfDataBlock, + required int offsetToTextLayouts, + required int offsetToStyleRuns, + required int offsetToStyleList, + }) => $allocator() + ..ref.version = version + ..ref.sizeOfDataBlock = sizeOfDataBlock + ..ref.offsetToTextLayouts = offsetToTextLayouts + ..ref.offsetToStyleRuns = offsetToStyleRuns + ..ref.offsetToStyleList = offsetToStyleList; +} + +final class ATSFlatDataStyleListFeatureData extends ffi.Struct { + @ATSUFontFeatureType() + external int theFeatureType; + + @ATSUFontFeatureSelector() + external int theFeatureSelector; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int theFeatureType, + required int theFeatureSelector, + }) => $allocator() + ..ref.theFeatureType = theFeatureType + ..ref.theFeatureSelector = theFeatureSelector; +} + +@ffi.Packed(2) +final class ATSFlatDataStyleListHeader extends ffi.Struct { + @UInt32() + external int numberOfStyles; + + @ffi.Array.multi([1]) + external ffi.Array styleDataArray; +} + +@ffi.Packed(2) +final class ATSFlatDataStyleListStyleDataHeader extends ffi.Struct { + @UInt32() + external int sizeOfStyleInfo; + + @UInt32() + external int numberOfSetAttributes; + + @UInt32() + external int numberOfSetFeatures; + + @UInt32() + external int numberOfSetVariations; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sizeOfStyleInfo, + required int numberOfSetAttributes, + required int numberOfSetFeatures, + required int numberOfSetVariations, + }) => $allocator() + ..ref.sizeOfStyleInfo = sizeOfStyleInfo + ..ref.numberOfSetAttributes = numberOfSetAttributes + ..ref.numberOfSetFeatures = numberOfSetFeatures + ..ref.numberOfSetVariations = numberOfSetVariations; +} + +@ffi.Packed(2) +final class ATSFlatDataStyleListVariationData extends ffi.Struct { + @ATSUFontVariationAxis() + external int theVariationAxis; + + @ATSUFontVariationValue() + external int theVariationValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int theVariationAxis, + required int theVariationValue, + }) => $allocator() + ..ref.theVariationAxis = theVariationAxis + ..ref.theVariationValue = theVariationValue; +} + +@ffi.Packed(2) +final class ATSFlatDataStyleRunDataHeader extends ffi.Struct { + @UInt32() + external int numberOfStyleRuns; + + @ffi.Array.multi([1]) + external ffi.Array styleRunArray; +} + +@ffi.Packed(2) +final class ATSFlatDataTextLayoutDataHeader extends ffi.Struct { + @UInt32() + external int sizeOfLayoutData; + + @UInt32() + external int textLayoutLength; + + @UInt32() + external int offsetToLayoutControls; + + @UInt32() + external int offsetToLineInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sizeOfLayoutData, + required int textLayoutLength, + required int offsetToLayoutControls, + required int offsetToLineInfo, + }) => $allocator() + ..ref.sizeOfLayoutData = sizeOfLayoutData + ..ref.textLayoutLength = textLayoutLength + ..ref.offsetToLayoutControls = offsetToLayoutControls + ..ref.offsetToLineInfo = offsetToLineInfo; +} + +@ffi.Packed(2) +final class ATSFlatDataTextLayoutHeader extends ffi.Struct { + @UInt32() + external int numFlattenedTextLayouts; + + @ffi.Array.multi([1]) + external ffi.Array flattenedTextLayouts; +} + +typedef ATSFontApplierFunction = + ffi.Pointer>; +typedef ATSFontApplierFunctionFunction = + OSStatus Function(ATSFontRef iFont, ffi.Pointer iRefCon); +typedef DartATSFontApplierFunctionFunction = + DartSInt32 Function(DartUInt32 iFont, ffi.Pointer iRefCon); +typedef ATSFontAutoActivationSetting = UInt32; +typedef ATSFontContainerRef = UInt32; +typedef ATSFontContext = UInt32; +typedef ATSFontFamilyApplierFunction = + ffi.Pointer>; +typedef ATSFontFamilyApplierFunctionFunction = + OSStatus Function(ATSFontFamilyRef iFamily, ffi.Pointer iRefCon); +typedef DartATSFontFamilyApplierFunctionFunction = + DartSInt32 Function(DartUInt32 iFamily, ffi.Pointer iRefCon); +typedef ATSFontFamilyIterator = ffi.Pointer; + +final class ATSFontFamilyIterator_ extends ffi.Opaque {} + +typedef ATSFontFamilyRef = UInt32; + +@ffi.Packed(2) +final class ATSFontFilter extends ffi.Struct { + @UInt32() + external int version; + + @ffi.UnsignedInt() + external int filterSelectorAsInt; + + ATSFontFilterSelector get filterSelector => + ATSFontFilterSelector.fromValue(filterSelectorAsInt); + set filterSelector(ATSFontFilterSelector value) => + filterSelectorAsInt = value.value; + + external UnnamedUnion$6 filter; +} + +enum ATSFontFilterSelector { + kATSFontFilterSelectorUnspecified(0), + kATSFontFilterSelectorGeneration(3), + kATSFontFilterSelectorFontFamily(7), + kATSFontFilterSelectorFontFamilyApplierFunction(8), + kATSFontFilterSelectorFontApplierFunction(9), + kATSFileReferenceFilterSelector(10); + + final int value; + const ATSFontFilterSelector(this.value); + + static ATSFontFilterSelector fromValue(int value) => switch (value) { + 0 => kATSFontFilterSelectorUnspecified, + 3 => kATSFontFilterSelectorGeneration, + 7 => kATSFontFilterSelectorFontFamily, + 8 => kATSFontFilterSelectorFontFamilyApplierFunction, + 9 => kATSFontFilterSelectorFontApplierFunction, + 10 => kATSFileReferenceFilterSelector, + _ => throw ArgumentError('Unknown value for ATSFontFilterSelector: $value'), + }; +} + +typedef ATSFontFormat = UInt32; +typedef ATSFontIterator = ffi.Pointer; + +final class ATSFontIterator_ extends ffi.Opaque {} + +@ffi.Packed(2) +final class ATSFontMetrics extends ffi.Struct { + @UInt32() + external int version; + + @CGFloat() + external double ascent; + + @CGFloat() + external double descent; + + @CGFloat() + external double leading; + + @CGFloat() + external double avgAdvanceWidth; + + @CGFloat() + external double maxAdvanceWidth; + + @CGFloat() + external double minLeftSideBearing; + + @CGFloat() + external double minRightSideBearing; + + @CGFloat() + external double stemWidth; + + @CGFloat() + external double stemHeight; + + @CGFloat() + external double capHeight; + + @CGFloat() + external double xHeight; + + @CGFloat() + external double italicAngle; + + @CGFloat() + external double underlinePosition; + + @CGFloat() + external double underlineThickness; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required double ascent, + required double descent, + required double leading, + required double avgAdvanceWidth, + required double maxAdvanceWidth, + required double minLeftSideBearing, + required double minRightSideBearing, + required double stemWidth, + required double stemHeight, + required double capHeight, + required double xHeight, + required double italicAngle, + required double underlinePosition, + required double underlineThickness, + }) => $allocator() + ..ref.version = version + ..ref.ascent = ascent + ..ref.descent = descent + ..ref.leading = leading + ..ref.avgAdvanceWidth = avgAdvanceWidth + ..ref.maxAdvanceWidth = maxAdvanceWidth + ..ref.minLeftSideBearing = minLeftSideBearing + ..ref.minRightSideBearing = minRightSideBearing + ..ref.stemWidth = stemWidth + ..ref.stemHeight = stemHeight + ..ref.capHeight = capHeight + ..ref.xHeight = xHeight + ..ref.italicAngle = italicAngle + ..ref.underlinePosition = underlinePosition + ..ref.underlineThickness = underlineThickness; +} + +typedef ATSFontNotificationInfoRef = ffi.Pointer; + +final class ATSFontNotificationInfoRef_ extends ffi.Opaque {} + +typedef ATSFontNotificationRef = ffi.Pointer; + +final class ATSFontNotificationRef_ extends ffi.Opaque {} + +enum ATSFontNotifyAction { + kATSFontNotifyActionFontsChanged(1), + kATSFontNotifyActionDirectoriesChanged(2); + + final int value; + const ATSFontNotifyAction(this.value); + + static ATSFontNotifyAction fromValue(int value) => switch (value) { + 1 => kATSFontNotifyActionFontsChanged, + 2 => kATSFontNotifyActionDirectoriesChanged, + _ => throw ArgumentError('Unknown value for ATSFontNotifyAction: $value'), + }; +} + +enum ATSFontNotifyOption { + kATSFontNotifyOptionDefault(0), + kATSFontNotifyOptionReceiveWhileSuspended(1); + + final int value; + const ATSFontNotifyOption(this.value); + + static ATSFontNotifyOption fromValue(int value) => switch (value) { + 0 => kATSFontNotifyOptionDefault, + 1 => kATSFontNotifyOptionReceiveWhileSuspended, + _ => throw ArgumentError('Unknown value for ATSFontNotifyOption: $value'), + }; +} + +typedef ATSFontQueryCallback = + ffi.Pointer>; +typedef ATSFontQueryCallbackFunction = + CFPropertyListRef Function( + ffi.UnsignedInt msgid, + CFPropertyListRef data, + ffi.Pointer refCon, + ); +typedef DartATSFontQueryCallbackFunction = + CFPropertyListRef Function( + ATSFontQueryMessageID msgid, + CFPropertyListRef data, + ffi.Pointer refCon, + ); + +enum ATSFontQueryMessageID { + kATSQueryActivateFontMessage(1635021665); + + final int value; + const ATSFontQueryMessageID(this.value); + + static ATSFontQueryMessageID fromValue(int value) => switch (value) { + 1635021665 => kATSQueryActivateFontMessage, + _ => throw ArgumentError('Unknown value for ATSFontQueryMessageID: $value'), + }; +} + +@ffi.Packed(2) +final class ATSFontQuerySourceContext extends ffi.Struct { + @UInt32() + external int version; + + external ffi.Pointer refCon; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer refCon, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + }) => $allocator() + ..ref.version = version + ..ref.refCon = refCon + ..ref.retain = retain + ..ref.release = release; +} + +typedef ATSFontRef = UInt32; +typedef ATSFontSize = CGFloat; +typedef ATSGeneration = UInt32; + +@ffi.Packed(2) +final class ATSGlyphIdealMetrics extends ffi.Struct { + external ATSPoint advance; + + external ATSPoint sideBearing; + + external ATSPoint otherSideBearing; +} + +typedef ATSGlyphInfoFlags = UInt32; +typedef ATSGlyphRef = UInt16; + +@ffi.Packed(2) +final class ATSGlyphScreenMetrics extends ffi.Struct { + external ATSPoint deviceAdvance; + + external ATSPoint topLeft; + + @UInt32() + external int height; + + @UInt32() + external int width; + + external ATSPoint sideBearing; + + external ATSPoint otherSideBearing; +} + +@ffi.Packed(2) +final class ATSJustWidthDeltaEntryOverride extends ffi.Struct { + @Fixed() + external int beforeGrowLimit; + + @Fixed() + external int beforeShrinkLimit; + + @Fixed() + external int afterGrowLimit; + + @Fixed() + external int afterShrinkLimit; + + @JustificationFlags() + external int growFlags; + + @JustificationFlags() + external int shrinkFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int beforeGrowLimit, + required int beforeShrinkLimit, + required int afterGrowLimit, + required int afterShrinkLimit, + required int growFlags, + required int shrinkFlags, + }) => $allocator() + ..ref.beforeGrowLimit = beforeGrowLimit + ..ref.beforeShrinkLimit = beforeShrinkLimit + ..ref.afterGrowLimit = afterGrowLimit + ..ref.afterShrinkLimit = afterShrinkLimit + ..ref.growFlags = growFlags + ..ref.shrinkFlags = shrinkFlags; +} + +@ffi.Packed(2) +final class ATSLayoutRecord extends ffi.Struct { + @ATSGlyphRef() + external int glyphID; + + @ATSGlyphInfoFlags() + external int flags; + + @ByteCount() + external int originalOffset; + + @Fixed() + external int realPos; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int glyphID, + required int flags, + required int originalOffset, + required int realPos, + }) => $allocator() + ..ref.glyphID = glyphID + ..ref.flags = flags + ..ref.originalOffset = originalOffset + ..ref.realPos = realPos; +} + +typedef ATSLineLayoutOptions = UInt32; +typedef ATSNotificationCallback = + ffi.Pointer>; +typedef ATSNotificationCallbackFunction = + ffi.Void Function( + ATSFontNotificationInfoRef info, + ffi.Pointer refCon, + ); +typedef DartATSNotificationCallbackFunction = + void Function( + ATSFontNotificationInfoRef info, + ffi.Pointer refCon, + ); +typedef ATSOptionFlags = OptionBits; +typedef ATSPoint = objc.CGPoint; +typedef ATSQuadraticClosePathProcPtr = + ffi.Pointer>; +typedef ATSQuadraticClosePathProcPtrFunction = + OSStatus Function(ffi.Pointer callBackDataPtr); +typedef DartATSQuadraticClosePathProcPtrFunction = + DartSInt32 Function(ffi.Pointer callBackDataPtr); +typedef ATSQuadraticClosePathUPP = ATSQuadraticClosePathProcPtr; +typedef ATSQuadraticCurveProcPtr = + ffi.Pointer>; +typedef ATSQuadraticCurveProcPtrFunction = + OSStatus Function( + ffi.Pointer pt1, + ffi.Pointer controlPt, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSQuadraticCurveProcPtrFunction = + DartSInt32 Function( + ffi.Pointer pt1, + ffi.Pointer controlPt, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef ATSQuadraticCurveUPP = ATSQuadraticCurveProcPtr; +typedef ATSQuadraticLineProcPtr = + ffi.Pointer>; +typedef ATSQuadraticLineProcPtrFunction = + OSStatus Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSQuadraticLineProcPtrFunction = + DartSInt32 Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef ATSQuadraticLineUPP = ATSQuadraticLineProcPtr; +typedef ATSQuadraticNewPathProcPtr = + ffi.Pointer>; +typedef ATSQuadraticNewPathProcPtrFunction = + OSStatus Function(ffi.Pointer callBackDataPtr); +typedef DartATSQuadraticNewPathProcPtrFunction = + DartSInt32 Function(ffi.Pointer callBackDataPtr); +typedef ATSQuadraticNewPathUPP = ATSQuadraticNewPathProcPtr; +typedef ATSStyleRenderingOptions = UInt32; + +final class ATSTrapezoid extends ffi.Struct { + external FixedPoint upperLeft; + + external FixedPoint upperRight; + + external FixedPoint lowerRight; + + external FixedPoint lowerLeft; +} + +@ffi.Packed(2) +final class ATSUAttributeInfo extends ffi.Struct { + @ATSUAttributeTag() + external int fTag; + + @ByteCount() + external int fValueSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fTag, + required int fValueSize, + }) => $allocator() + ..ref.fTag = fTag + ..ref.fValueSize = fValueSize; +} + +typedef ATSUAttributeTag = UInt32; +typedef ATSUAttributeValuePtr = ffi.Pointer; +typedef ATSUBackgroundColor = ATSURGBAlphaColor; + +final class ATSUBackgroundData extends ffi.Union { + external ATSUBackgroundColor backgroundColor; + + external RedrawBackgroundUPP backgroundUPP; +} + +typedef ATSUBackgroundDataType = UInt32; + +@ffi.Packed(2) +final class ATSUCaret extends ffi.Struct { + @Fixed() + external int fX; + + @Fixed() + external int fY; + + @Fixed() + external int fDeltaX; + + @Fixed() + external int fDeltaY; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fX, + required int fY, + required int fDeltaX, + required int fDeltaY, + }) => $allocator() + ..ref.fX = fX + ..ref.fY = fY + ..ref.fDeltaX = fDeltaX + ..ref.fDeltaY = fDeltaY; +} + +typedef ATSUCursorMovementType = UInt16; + +@ffi.Packed(2) +final class ATSUCurvePath extends ffi.Struct { + @UInt32() + external int vectors; + + @ffi.Array.multi([1]) + external ffi.Array controlBits; + + @ffi.Array.multi([1]) + external ffi.Array vector; +} + +@ffi.Packed(2) +final class ATSUCurvePaths extends ffi.Struct { + @UInt32() + external int contours; + + @ffi.Array.multi([1]) + external ffi.Array contour; +} + +typedef ATSUDirectDataSelector = UInt32; +typedef ATSUFlattenStyleRunOptions = UInt32; +typedef ATSUFlattenedDataStreamFormat = UInt32; +typedef ATSUFontFallbackMethod = UInt16; +typedef ATSUFontFallbacks = ffi.Pointer; +typedef ATSUFontFeatureSelector = UInt16; +typedef ATSUFontFeatureType = UInt16; +typedef ATSUFontID = FMFont; +typedef ATSUFontVariationAxis = FourCharCode; +typedef ATSUFontVariationValue = Fixed; + +@ffi.Packed(2) +final class ATSUGlyphInfo extends ffi.Struct { + @GlyphID() + external int glyphID; + + @UInt16() + external int reserved; + + @UInt32() + external int layoutFlags; + + @UniCharArrayOffset() + external int charIndex; + + external ATSUStyle style; + + @Float32() + external double deltaY; + + @Float32() + external double idealX; + + @SInt16() + external int screenX; + + @SInt16() + external int caretX; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int glyphID, + required int reserved, + required int layoutFlags, + required int charIndex, + required ATSUStyle style, + required double deltaY, + required double idealX, + required int screenX, + required int caretX, + }) => $allocator() + ..ref.glyphID = glyphID + ..ref.reserved = reserved + ..ref.layoutFlags = layoutFlags + ..ref.charIndex = charIndex + ..ref.style = style + ..ref.deltaY = deltaY + ..ref.idealX = idealX + ..ref.screenX = screenX + ..ref.caretX = caretX; +} + +@ffi.Packed(2) +final class ATSUGlyphInfoArray extends ffi.Struct { + external ATSUTextLayout layout; + + @ItemCount() + external int numGlyphs; + + @ffi.Array.multi([1]) + external ffi.Array glyphs; +} + +final class ATSUGlyphSelector extends ffi.Struct { + @GlyphCollection() + external int collection; + + @GlyphID() + external int glyphID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int collection, + required int glyphID, + }) => $allocator() + ..ref.collection = collection + ..ref.glyphID = glyphID; +} + +typedef ATSUHighlightMethod = UInt32; +typedef ATSULayoutOperationCallbackStatus = UInt32; +typedef ATSULayoutOperationSelector = UInt32; +typedef ATSULineTruncation = UInt32; + +@ffi.Packed(2) +final class ATSURGBAlphaColor extends ffi.Struct { + @ffi.Float() + external double red; + + @ffi.Float() + external double green; + + @ffi.Float() + external double blue; + + @ffi.Float() + external double alpha; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double red, + required double green, + required double blue, + required double alpha, + }) => $allocator() + ..ref.red = red + ..ref.green = green + ..ref.blue = blue + ..ref.alpha = alpha; +} + +typedef ATSUStyle = ffi.Pointer; +typedef ATSUStyleComparison = UInt16; +typedef ATSUStyleLineCountType = UInt16; + +@ffi.Packed(2) +final class ATSUStyleRunInfo extends ffi.Struct { + @UInt32() + external int runLength; + + @UInt32() + external int styleObjectIndex; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int runLength, + required int styleObjectIndex, + }) => $allocator() + ..ref.runLength = runLength + ..ref.styleObjectIndex = styleObjectIndex; +} + +typedef ATSUStyleSettingRef = ffi.Pointer; + +@ffi.Packed(2) +final class ATSUTab extends ffi.Struct { + @ATSUTextMeasurement() + external int tabPosition; + + @ATSUTabType() + external int tabType; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tabPosition, + required int tabType, + }) => $allocator() + ..ref.tabPosition = tabPosition + ..ref.tabType = tabType; +} + +typedef ATSUTabType = UInt16; +typedef ATSUTextLayout = ffi.Pointer; +typedef ATSUTextMeasurement = Fixed; +typedef ATSUUnFlattenStyleRunOptions = UInt32; + +@ffi.Packed(2) +final class ATSUUnhighlightData extends ffi.Struct { + @ATSUBackgroundDataType() + external int dataType; + + external ATSUBackgroundData unhighlightData; +} + +typedef ATSUVerticalCharacterType = UInt16; + +final class AVAudio3DAngularOrientation extends ffi.Struct { + @ffi.Float() + external double yaw; + + @ffi.Float() + external double pitch; + + @ffi.Float() + external double roll; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double yaw, + required double pitch, + required double roll, + }) => $allocator() + ..ref.yaw = yaw + ..ref.pitch = pitch + ..ref.roll = roll; +} + +final class AVAudio3DPoint extends ffi.Struct { + @ffi.Float() + external double x; + + @ffi.Float() + external double y; + + @ffi.Float() + external double z; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double x, + required double y, + required double z, + }) => $allocator() + ..ref.x = x + ..ref.y = y + ..ref.z = z; +} + +typedef AVAudio3DVector = AVAudio3DPoint; + +final class AVAudio3DVectorOrientation extends ffi.Struct { + external AVAudio3DVector forward; + + external AVAudio3DVector up; +} + +typedef AVAudioChannelCount = ffi.Uint32; +typedef DartAVAudioChannelCount = int; + +enum AVAudioCommonFormat { + AVAudioOtherFormat(0), + AVAudioPCMFormatFloat32(1), + AVAudioPCMFormatFloat64(2), + AVAudioPCMFormatInt16(3), + AVAudioPCMFormatInt32(4); + + final int value; + const AVAudioCommonFormat(this.value); + + static AVAudioCommonFormat fromValue(int value) => switch (value) { + 0 => AVAudioOtherFormat, + 1 => AVAudioPCMFormatFloat32, + 2 => AVAudioPCMFormatFloat64, + 3 => AVAudioPCMFormatInt16, + 4 => AVAudioPCMFormatInt32, + _ => throw ArgumentError('Unknown value for AVAudioCommonFormat: $value'), + }; +} + +enum AVAudioContentSource { + AVAudioContentSource_Unspecified(-1), + AVAudioContentSource_Reserved(0), + AVAudioContentSource_AppleCapture_Traditional(1), + AVAudioContentSource_AppleCapture_Spatial(2), + AVAudioContentSource_AppleCapture_Spatial_Enhanced(3), + AVAudioContentSource_AppleMusic_Traditional(4), + AVAudioContentSource_AppleMusic_Spatial(5), + AVAudioContentSource_AppleAV_Traditional_Offline(6), + AVAudioContentSource_AppleAV_Spatial_Offline(7), + AVAudioContentSource_AppleAV_Traditional_Live(8), + AVAudioContentSource_AppleAV_Spatial_Live(9), + AVAudioContentSource_ApplePassthrough(10), + AVAudioContentSource_Capture_Traditional(33), + AVAudioContentSource_Capture_Spatial(34), + AVAudioContentSource_Capture_Spatial_Enhanced(35), + AVAudioContentSource_Music_Traditional(36), + AVAudioContentSource_Music_Spatial(37), + AVAudioContentSource_AV_Traditional_Offline(38), + AVAudioContentSource_AV_Spatial_Offline(39), + AVAudioContentSource_AV_Traditional_Live(40), + AVAudioContentSource_AV_Spatial_Live(41), + AVAudioContentSource_Passthrough(42); + + final int value; + const AVAudioContentSource(this.value); + + static AVAudioContentSource fromValue(int value) => switch (value) { + -1 => AVAudioContentSource_Unspecified, + 0 => AVAudioContentSource_Reserved, + 1 => AVAudioContentSource_AppleCapture_Traditional, + 2 => AVAudioContentSource_AppleCapture_Spatial, + 3 => AVAudioContentSource_AppleCapture_Spatial_Enhanced, + 4 => AVAudioContentSource_AppleMusic_Traditional, + 5 => AVAudioContentSource_AppleMusic_Spatial, + 6 => AVAudioContentSource_AppleAV_Traditional_Offline, + 7 => AVAudioContentSource_AppleAV_Spatial_Offline, + 8 => AVAudioContentSource_AppleAV_Traditional_Live, + 9 => AVAudioContentSource_AppleAV_Spatial_Live, + 10 => AVAudioContentSource_ApplePassthrough, + 33 => AVAudioContentSource_Capture_Traditional, + 34 => AVAudioContentSource_Capture_Spatial, + 35 => AVAudioContentSource_Capture_Spatial_Enhanced, + 36 => AVAudioContentSource_Music_Traditional, + 37 => AVAudioContentSource_Music_Spatial, + 38 => AVAudioContentSource_AV_Traditional_Offline, + 39 => AVAudioContentSource_AV_Spatial_Offline, + 40 => AVAudioContentSource_AV_Traditional_Live, + 41 => AVAudioContentSource_AV_Spatial_Live, + 42 => AVAudioContentSource_Passthrough, + _ => throw ArgumentError('Unknown value for AVAudioContentSource: $value'), + }; +} + +enum AVAudioDynamicRangeControlConfiguration { + AVAudioDynamicRangeControlConfiguration_None(0), + AVAudioDynamicRangeControlConfiguration_Music(1), + AVAudioDynamicRangeControlConfiguration_Speech(2), + AVAudioDynamicRangeControlConfiguration_Movie(3), + AVAudioDynamicRangeControlConfiguration_Capture(4); + + final int value; + const AVAudioDynamicRangeControlConfiguration(this.value); + + static AVAudioDynamicRangeControlConfiguration fromValue(int value) => + switch (value) { + 0 => AVAudioDynamicRangeControlConfiguration_None, + 1 => AVAudioDynamicRangeControlConfiguration_Music, + 2 => AVAudioDynamicRangeControlConfiguration_Speech, + 3 => AVAudioDynamicRangeControlConfiguration_Movie, + 4 => AVAudioDynamicRangeControlConfiguration_Capture, + _ => throw ArgumentError( + 'Unknown value for AVAudioDynamicRangeControlConfiguration: $value', + ), + }; +} + +/// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include +/// AVAudioFormat in your config's objc-interfaces list. +/// +/// AVAudioFormat +extension type AVAudioFormat._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [AVAudioFormat] that points to the same underlying object as [other]. + AVAudioFormat.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioFormat', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } + + /// Constructs a [AVAudioFormat] that wraps the given raw object pointer. + AVAudioFormat.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioFormat', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } +} + +typedef AVAudioFrameCount = ffi.Uint32; +typedef DartAVAudioFrameCount = int; +typedef AVAudioFramePosition = ffi.Int64; +typedef DartAVAudioFramePosition = int; +typedef AVAudioInteger = ffi.Long; +typedef DartAVAudioInteger = int; +typedef AVAudioNodeBus = NSUInteger; +typedef AVAudioNodeCompletionHandler = ffi.Pointer; +typedef DartAVAudioNodeCompletionHandler = objc.ObjCBlock; +typedef AVAudioPacketCount = ffi.Uint32; +typedef DartAVAudioPacketCount = int; + +/// AVAudioPlayer +extension type AVAudioPlayer._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioPlayer] that points to the same underlying object as [other]. + AVAudioPlayer.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioPlayer', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + assert(isA(object$)); + } + + /// Constructs a [AVAudioPlayer] that wraps the given raw object pointer. + AVAudioPlayer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioPlayer', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [AVAudioPlayer]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_AVAudioPlayer, + ); + + /// alloc + static AVAudioPlayer alloc() { + final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_alloc); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// allocWithZone: + static AVAudioPlayer allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_AVAudioPlayer, + _sel_allocWithZone_, + zone, + ); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// new + static AVAudioPlayer new$() { + final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_new); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// Returns a new instance of AVAudioPlayer constructed with the default `new` method. + AVAudioPlayer() : this.as(new$().object$); +} + +extension AVAudioPlayer$Methods on AVAudioPlayer { + /// averagePowerForChannel: + double averagePowerForChannel(DartNSUInteger channelNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.averagePowerForChannel:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_65s5ywFpret( + _$$ref.pointer, + _sel_averagePowerForChannel_, + channelNumber, + ) + : _objc_msgSend_65s5yw( + _$$ref.pointer, + _sel_averagePowerForChannel_, + channelNumber, + ); + } + + /// channelAssignments + objc.NSArray? get channelAssignments { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.channelAssignments', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_channelAssignments); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// currentDevice + objc.NSString? get currentDevice { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.currentDevice', + iOS: (true, null), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// currentTime + DartNSTimeInterval get currentTime { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.currentTime', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); + } + + /// data + objc.NSData? get data { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.data', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// delegate + AVAudioPlayerDelegate? get delegate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.delegate', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); + return $ret.address == 0 + ? null + : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); + } + + /// deviceCurrentTime + DartNSTimeInterval get deviceCurrentTime { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.deviceCurrentTime', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); + } + + /// duration + DartNSTimeInterval get duration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.duration', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); + } + + /// enableRate + bool get enableRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.enableRate', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); + } + + /// format + AVAudioFormat get format { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.format', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); + return AVAudioFormat.fromPointer($ret, retain: true, release: true); + } + + /// init + AVAudioPlayer init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL:error: + AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithContentsOfURL:error:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithContentsOfURL:fileTypeHint:error: + AVAudioPlayer? initWithContentsOfURL$1( + objc.NSURL url, { + objc.NSString? fileTypeHint, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = fileTypeHint?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithContentsOfURL:fileTypeHint:error:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_fileTypeHint_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithData:error: + AVAudioPlayer? initWithData(objc.NSData data) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithData:error:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithData_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithData:fileTypeHint:error: + AVAudioPlayer? initWithData$1( + objc.NSData data, { + objc.NSString? fileTypeHint, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + final _$$ref$2 = fileTypeHint?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithData:fileTypeHint:error:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.retainAndReturnPointer(), + _sel_initWithData_fileTypeHint_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// intendedSpatialExperience + CASpatialAudioExperience get intendedSpatialExperience { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.intendedSpatialExperience', + iOS: (true, null), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_intendedSpatialExperience, + ); + return CASpatialAudioExperience.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// isMeteringEnabled + bool get isMeteringEnabled { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.isMeteringEnabled', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); + } + + /// isPlaying + bool get isPlaying { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.isPlaying', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); + } + + /// numberOfChannels + DartNSUInteger get numberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.numberOfChannels', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfChannels); + } + + /// numberOfLoops + DartNSInteger get numberOfLoops { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.numberOfLoops', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); + } + + /// pan + double get pan { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.pan', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); + } + + /// pause + void pause$1() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.pause', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); + } + + /// peakPowerForChannel: + double peakPowerForChannel(DartNSUInteger channelNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.peakPowerForChannel:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_65s5ywFpret( + _$$ref.pointer, + _sel_peakPowerForChannel_, + channelNumber, + ) + : _objc_msgSend_65s5yw( + _$$ref.pointer, + _sel_peakPowerForChannel_, + channelNumber, + ); + } + + /// play + bool play() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.play', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); + } + + /// playAtTime: + bool playAtTime(DartNSTimeInterval time$1) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.playAtTime:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time$1); + } + + /// prepareToPlay + bool prepareToPlay() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.prepareToPlay', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); + } + + /// rate + double get rate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.rate', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); + } + + /// setChannelAssignments: + set channelAssignments(objc.NSArray? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setChannelAssignments:', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setChannelAssignments_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setCurrentDevice: + set currentDevice(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setCurrentDevice:', + iOS: (true, null), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setCurrentDevice_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setCurrentTime: + set currentTime(DartNSTimeInterval value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setCurrentTime:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); + } + + /// setDelegate: + set delegate(AVAudioPlayerDelegate? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setDelegate:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setDelegate_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setEnableRate: + set enableRate(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setEnableRate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); + } + + /// setIntendedSpatialExperience: + set intendedSpatialExperience(CASpatialAudioExperience value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setIntendedSpatialExperience:', + iOS: (true, null), + macOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setIntendedSpatialExperience_, + _$$ref$1.pointer, + ); + } + + /// setMeteringEnabled: + set isMeteringEnabled(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setMeteringEnabled:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setMeteringEnabled_, value); + } + + /// setNumberOfLoops: + set numberOfLoops(DartNSInteger value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setNumberOfLoops:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); + } + + /// setPan: + set pan(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setPan:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); + } + + /// setRate: + set rate(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setRate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); + } + + /// setVolume: + set volume(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setVolume:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); + } + + /// setVolume:fadeDuration: + void setVolume(double volume, {required DartNSTimeInterval fadeDuration}) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setVolume:fadeDuration:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + _objc_msgSend_1p4uk9e( + _$$ref.pointer, + _sel_setVolume_fadeDuration_, + volume, + fadeDuration, + ); + } + + /// settings + objc.NSDictionary get settings { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.settings', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_settings); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// stop + void stop() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.stop', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); + } + + /// updateMeters + void updateMeters() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.updateMeters', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); + } + + /// url + objc.NSURL? get url { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.url', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// volume + double get volume { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.volume', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); + } +} + +/// AVAudioPlayerDelegate +extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [AVAudioPlayerDelegate] that points to the same underlying object as [other]. + AVAudioPlayerDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [AVAudioPlayerDelegate] that wraps the given raw object pointer. + AVAudioPlayerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [AVAudioPlayerDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_AVAudioPlayerDelegate, + ); + } +} + +extension AVAudioPlayerDelegate$Methods on AVAudioPlayerDelegate { + /// audioPlayerDecodeErrorDidOccur:error: + void audioPlayerDecodeErrorDidOccur( + AVAudioPlayer player, { + objc.NSError? error, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = player.ref; + final _$$ref$2 = error?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_audioPlayerDecodeErrorDidOccur_error_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioPlayerDelegate', + 'audioPlayerDecodeErrorDidOccur:error:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_audioPlayerDecodeErrorDidOccur_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// audioPlayerDidFinishPlaying:successfully: + void audioPlayerDidFinishPlaying( + AVAudioPlayer player, { + required bool successfully, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = player.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_audioPlayerDidFinishPlaying_successfully_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioPlayerDelegate', + 'audioPlayerDidFinishPlaying:successfully:', + ); + } + _objc_msgSend_6p7ndb( + _$$ref.pointer, + _sel_audioPlayerDidFinishPlaying_successfully_, + _$$ref$1.pointer, + successfully, + ); + } +} + +interface class AVAudioPlayerDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_AVAudioPlayerDelegate.cast()); + + /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioPlayerDelegate implement({ + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioPlayerDelegate', + ); + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implement(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implement(builder, audioPlayerDidFinishPlaying_successfully_); + builder.addProtocol($protocol); + return AVAudioPlayerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implement(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implement(builder, audioPlayerDidFinishPlaying_successfully_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioPlayerDelegate implementAsListener({ + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioPlayerDelegate', + ); + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implementAsListener(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implementAsListener( + builder, + audioPlayerDidFinishPlaying_successfully_, + ); + builder.addProtocol($protocol); + return AVAudioPlayerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implementAsListener(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implementAsListener( + builder, + audioPlayerDidFinishPlaying_successfully_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioPlayerDelegate implementAsBlocking({ + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioPlayerDelegate', + ); + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implementAsBlocking(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implementAsBlocking( + builder, + audioPlayerDidFinishPlaying_successfully_, + ); + builder.addProtocol($protocol); + return AVAudioPlayerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implementAsBlocking(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implementAsBlocking( + builder, + audioPlayerDidFinishPlaying_successfully_, + ); + builder.addProtocol($protocol); + } + + /// audioPlayerDecodeErrorDidOccur:error: + static final audioPlayerDecodeErrorDidOccur_error_ = + objc.ObjCProtocolListenableMethod< + void Function(AVAudioPlayer, objc.NSError?) + >( + _protocol_AVAudioPlayerDelegate, + _sel_audioPlayerDecodeErrorDidOccur_error_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioPlayerDelegate, + _sel_audioPlayerDecodeErrorDidOccur_error_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(AVAudioPlayer, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.fromFunction( + ( + ffi.Pointer _, + AVAudioPlayer arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(AVAudioPlayer, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.listener( + ( + ffi.Pointer _, + AVAudioPlayer arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(AVAudioPlayer, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.blocking( + ( + ffi.Pointer _, + AVAudioPlayer arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// audioPlayerDidFinishPlaying:successfully: + static final audioPlayerDidFinishPlaying_successfully_ = + objc.ObjCProtocolListenableMethod( + _protocol_AVAudioPlayerDelegate, + _sel_audioPlayerDidFinishPlaying_successfully_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_zzthnb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioPlayerDelegate, + _sel_audioPlayerDidFinishPlaying_successfully_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(AVAudioPlayer, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.fromFunction( + (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => + func(arg1, arg2), + ), + (void Function(AVAudioPlayer, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.listener( + (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => + func(arg1, arg2), + ), + (void Function(AVAudioPlayer, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.blocking( + (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => + func(arg1, arg2), + ), + ); +} + +enum AVAudioQuality { + AVAudioQualityMin(0), + AVAudioQualityLow(32), + AVAudioQualityMedium(64), + AVAudioQualityHigh(96), + AVAudioQualityMax(127); + + final int value; + const AVAudioQuality(this.value); + + static AVAudioQuality fromValue(int value) => switch (value) { + 0 => AVAudioQualityMin, + 32 => AVAudioQualityLow, + 64 => AVAudioQualityMedium, + 96 => AVAudioQualityHigh, + 127 => AVAudioQualityMax, + _ => throw ArgumentError('Unknown value for AVAudioQuality: $value'), + }; +} + +/// WARNING: AVAudioSession is a stub. To generate bindings for this class, include +/// AVAudioSession in your config's objc-interfaces list. +/// +/// AVAudioSession +extension type AVAudioSession._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioSession] that points to the same underlying object as [other]. + AVAudioSession.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioSession', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + } + + /// Constructs a [AVAudioSession] that wraps the given raw object pointer. + AVAudioSession.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioSession', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + } +} + +sealed class AVAudioSessionActivationOptions { + static const AVAudioSessionActivationOptionNone = 0; +} + +typedef AVAudioSessionCategory = ffi.Pointer; +typedef DartAVAudioSessionCategory = objc.NSString; + +sealed class AVAudioSessionCategoryOptions { + static const AVAudioSessionCategoryOptionMixWithOthers = 1; + static const AVAudioSessionCategoryOptionDuckOthers = 2; + static const AVAudioSessionCategoryOptionAllowBluetooth = 4; + static const AVAudioSessionCategoryOptionAllowBluetoothHFP = 4; + static const AVAudioSessionCategoryOptionDefaultToSpeaker = 8; + static const AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers = + 17; + static const AVAudioSessionCategoryOptionAllowBluetoothA2DP = 32; + static const AVAudioSessionCategoryOptionAllowAirPlay = 64; + static const AVAudioSessionCategoryOptionOverrideMutedMicrophoneInterruption = + 128; + static const AVAudioSessionCategoryOptionBluetoothHighQualityRecording = + 524288; +} + +/// WARNING: AVAudioSessionDataSourceDescription is a stub. To generate bindings for this class, include +/// AVAudioSessionDataSourceDescription in your config's objc-interfaces list. +/// +/// AVAudioSessionDataSourceDescription +extension type AVAudioSessionDataSourceDescription._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioSessionDataSourceDescription] that points to the same underlying object as [other]. + AVAudioSessionDataSourceDescription.as(objc.ObjCObject other) + : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioSessionDataSourceDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } + + /// Constructs a [AVAudioSessionDataSourceDescription] that wraps the given raw object pointer. + AVAudioSessionDataSourceDescription.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioSessionDataSourceDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } +} + +/// AVAudioSessionDelegate +@Deprecated('No longer supported') +extension type AVAudioSessionDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [AVAudioSessionDelegate] that points to the same underlying object as [other]. + AVAudioSessionDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [AVAudioSessionDelegate] that wraps the given raw object pointer. + AVAudioSessionDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [AVAudioSessionDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_AVAudioSessionDelegate, + ); + } +} + +extension AVAudioSessionDelegate$Methods on AVAudioSessionDelegate { + /// beginInterruption + @Deprecated('No longer supported') + void beginInterruption() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSessionDelegate.beginInterruption', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_beginInterruption)) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioSessionDelegate', + 'beginInterruption', + ); + } + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_beginInterruption); + } + + /// endInterruption + @Deprecated('No longer supported') + void endInterruption() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSessionDelegate.endInterruption', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_endInterruption)) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioSessionDelegate', + 'endInterruption', + ); + } + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endInterruption); + } + + /// endInterruptionWithFlags: + void endInterruptionWithFlags(DartNSUInteger flags) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSessionDelegate.endInterruptionWithFlags:', + iOS: (false, (4, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_endInterruptionWithFlags_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioSessionDelegate', + 'endInterruptionWithFlags:', + ); + } + _objc_msgSend_1i9r4xy( + _$$ref.pointer, + _sel_endInterruptionWithFlags_, + flags, + ); + } + + /// inputIsAvailableChanged: + @Deprecated('No longer supported') + void inputIsAvailableChanged(bool isInputAvailable) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSessionDelegate.inputIsAvailableChanged:', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_inputIsAvailableChanged_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioSessionDelegate', + 'inputIsAvailableChanged:', + ); + } + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_inputIsAvailableChanged_, + isInputAvailable, + ); + } +} + +interface class AVAudioSessionDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_AVAudioSessionDelegate.cast()); + + /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioSessionDelegate implement({ + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioSessionDelegate', + ); + AVAudioSessionDelegate$Builder.beginInterruption.implement( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implement( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_.implement( + builder, + endInterruptionWithFlags_, + ); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implement( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + return AVAudioSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + AVAudioSessionDelegate$Builder.beginInterruption.implement( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implement( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_.implement( + builder, + endInterruptionWithFlags_, + ); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implement( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioSessionDelegate implementAsListener({ + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioSessionDelegate', + ); + AVAudioSessionDelegate$Builder.beginInterruption.implementAsListener( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implementAsListener( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ + .implementAsListener(builder, endInterruptionWithFlags_); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsListener( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + return AVAudioSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + AVAudioSessionDelegate$Builder.beginInterruption.implementAsListener( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implementAsListener( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ + .implementAsListener(builder, endInterruptionWithFlags_); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsListener( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioSessionDelegate implementAsBlocking({ + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioSessionDelegate', + ); + AVAudioSessionDelegate$Builder.beginInterruption.implementAsBlocking( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implementAsBlocking( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ + .implementAsBlocking(builder, endInterruptionWithFlags_); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsBlocking( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + return AVAudioSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + AVAudioSessionDelegate$Builder.beginInterruption.implementAsBlocking( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implementAsBlocking( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ + .implementAsBlocking(builder, endInterruptionWithFlags_); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsBlocking( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + } + + /// beginInterruption + static final beginInterruption = + objc.ObjCProtocolListenableMethod( + _protocol_AVAudioSessionDelegate, + _sel_beginInterruption, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioSessionDelegate, + _sel_beginInterruption, + isRequired: false, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// endInterruption + static final endInterruption = + objc.ObjCProtocolListenableMethod( + _protocol_AVAudioSessionDelegate, + _sel_endInterruption, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioSessionDelegate, + _sel_endInterruption, + isRequired: false, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// endInterruptionWithFlags: + static final endInterruptionWithFlags_ = + objc.ObjCProtocolListenableMethod( + _protocol_AVAudioSessionDelegate, + _sel_endInterruptionWithFlags_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >(_1uu024u_protocolTrampoline_zuf90e) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioSessionDelegate, + _sel_endInterruptionWithFlags_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUInteger.fromFunction( + (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), + ), + (void Function(DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUInteger.listener( + (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), + ), + (void Function(DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUInteger.blocking( + (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), + ), + ); + + /// inputIsAvailableChanged: + static final inputIsAvailableChanged_ = + objc.ObjCProtocolListenableMethod( + _protocol_AVAudioSessionDelegate, + _sel_inputIsAvailableChanged_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_10lndml) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioSessionDelegate, + _sel_inputIsAvailableChanged_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(bool) func) => + ObjCBlock_ffiVoid_ffiVoid_bool.fromFunction( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.listener( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.blocking( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + ); +} + +/// AVAudioSessionDeprecated +extension AVAudioSessionDeprecated on AVAudioSession { + /// currentHardwareInputNumberOfChannels + @Deprecated('Deprecated') + DartNSInteger get currentHardwareInputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.currentHardwareInputNumberOfChannels', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_currentHardwareInputNumberOfChannels, + ); + } + + /// currentHardwareOutputNumberOfChannels + @Deprecated('Deprecated') + DartNSInteger get currentHardwareOutputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.currentHardwareOutputNumberOfChannels', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_currentHardwareOutputNumberOfChannels, + ); + } + + /// currentHardwareSampleRate + @Deprecated('Deprecated') + double get currentHardwareSampleRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.currentHardwareSampleRate', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + _$$ref.pointer, + _sel_currentHardwareSampleRate, + ) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentHardwareSampleRate); + } + + /// delegate + @Deprecated('No longer supported') + AVAudioSessionDelegate? get delegate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.delegate', + iOS: (false, (4, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); + return $ret.address == 0 + ? null + : AVAudioSessionDelegate.fromPointer($ret, retain: true, release: true); + } + + /// inputIsAvailable + @Deprecated('Deprecated') + bool get inputIsAvailable { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputIsAvailable', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_inputIsAvailable); + } + + /// preferredHardwareSampleRate + @Deprecated('Deprecated') + double get preferredHardwareSampleRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredHardwareSampleRate', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + _$$ref.pointer, + _sel_preferredHardwareSampleRate, + ) + : _objc_msgSend_1ukqyt8( + _$$ref.pointer, + _sel_preferredHardwareSampleRate, + ); + } + + /// setActive:withFlags:error: + @Deprecated('Deprecated') + bool setActive(bool active, {required DartNSInteger withFlags}) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setActive:withFlags:error:', + iOS: (false, (4, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_tpnpd0( + _$$ref.pointer, + _sel_setActive_withFlags_error_, + active, + withFlags, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setDelegate: + @Deprecated('No longer supported') + set delegate(AVAudioSessionDelegate? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setDelegate:', + iOS: (false, (4, 0, 0)), + macOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setDelegate_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setPreferredHardwareSampleRate:error: + @Deprecated('Deprecated') + bool setPreferredHardwareSampleRate(double sampleRate) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredHardwareSampleRate:error:', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_xhvge5( + _$$ref.pointer, + _sel_setPreferredHardwareSampleRate_error_, + sampleRate, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +enum AVAudioSessionErrorCode { + AVAudioSessionErrorCodeNone(0), + AVAudioSessionErrorCodeMediaServicesFailed(1836282486), + AVAudioSessionErrorCodeIsBusy(560030580), + AVAudioSessionErrorCodeIncompatibleCategory(560161140), + AVAudioSessionErrorCodeCannotInterruptOthers(560557684), + AVAudioSessionErrorCodeMissingEntitlement(1701737535), + AVAudioSessionErrorCodeSiriIsRecording(1936290409), + AVAudioSessionErrorCodeCannotStartPlaying(561015905), + AVAudioSessionErrorCodeCannotStartRecording(561145187), + AVAudioSessionErrorCodeBadParam(-50), + AVAudioSessionErrorCodeInsufficientPriority(561017449), + AVAudioSessionErrorCodeResourceNotAvailable(561145203), + AVAudioSessionErrorCodeUnspecified(2003329396), + AVAudioSessionErrorCodeExpiredSession(561210739), + AVAudioSessionErrorCodeSessionNotActive(1768841571); + + final int value; + const AVAudioSessionErrorCode(this.value); + + static AVAudioSessionErrorCode fromValue(int value) => switch (value) { + 0 => AVAudioSessionErrorCodeNone, + 1836282486 => AVAudioSessionErrorCodeMediaServicesFailed, + 560030580 => AVAudioSessionErrorCodeIsBusy, + 560161140 => AVAudioSessionErrorCodeIncompatibleCategory, + 560557684 => AVAudioSessionErrorCodeCannotInterruptOthers, + 1701737535 => AVAudioSessionErrorCodeMissingEntitlement, + 1936290409 => AVAudioSessionErrorCodeSiriIsRecording, + 561015905 => AVAudioSessionErrorCodeCannotStartPlaying, + 561145187 => AVAudioSessionErrorCodeCannotStartRecording, + -50 => AVAudioSessionErrorCodeBadParam, + 561017449 => AVAudioSessionErrorCodeInsufficientPriority, + 561145203 => AVAudioSessionErrorCodeResourceNotAvailable, + 2003329396 => AVAudioSessionErrorCodeUnspecified, + 561210739 => AVAudioSessionErrorCodeExpiredSession, + 1768841571 => AVAudioSessionErrorCodeSessionNotActive, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionErrorCode: $value', + ), + }; +} + +@Deprecated('Deprecated') +const int AVAudioSessionErrorInsufficientPriority = 561017449; + +/// AVAudioSessionHardwareConfiguration +extension AVAudioSessionHardwareConfiguration on AVAudioSession { + /// IOBufferDuration + DartNSTimeInterval get IOBufferDuration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.IOBufferDuration', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_IOBufferDuration) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_IOBufferDuration); + } + + /// inputDataSource + AVAudioSessionDataSourceDescription? get inputDataSource { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputDataSource', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_inputDataSource); + return $ret.address == 0 + ? null + : AVAudioSessionDataSourceDescription.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// inputDataSources + objc.NSArray? get inputDataSources { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputDataSources', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_inputDataSources); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// inputGain + double get inputGain { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputGain', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_inputGain) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_inputGain); + } + + /// inputLatency + DartNSTimeInterval get inputLatency { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputLatency', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_inputLatency) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_inputLatency); + } + + /// inputNumberOfChannels + DartNSInteger get inputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputNumberOfChannels', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_inputNumberOfChannels); + } + + /// inputOrientation + AVAudioStereoOrientation get inputOrientation { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputOrientation', + iOS: (false, (14, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_1n4ndiq(_$$ref.pointer, _sel_inputOrientation); + return AVAudioStereoOrientation.fromValue($ret); + } + + /// isInputAvailable + bool get isInputAvailable { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.isInputAvailable', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isInputAvailable); + } + + /// isInputGainSettable + bool get isInputGainSettable { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.isInputGainSettable', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isInputGainSettable); + } + + /// maximumInputNumberOfChannels + DartNSInteger get maximumInputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.maximumInputNumberOfChannels', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_maximumInputNumberOfChannels, + ); + } + + /// maximumOutputNumberOfChannels + DartNSInteger get maximumOutputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.maximumOutputNumberOfChannels', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_maximumOutputNumberOfChannels, + ); + } + + /// outputDataSource + AVAudioSessionDataSourceDescription? get outputDataSource { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.outputDataSource', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_outputDataSource); + return $ret.address == 0 + ? null + : AVAudioSessionDataSourceDescription.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// outputDataSources + objc.NSArray? get outputDataSources { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.outputDataSources', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_outputDataSources); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// outputLatency + DartNSTimeInterval get outputLatency { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.outputLatency', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_outputLatency) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_outputLatency); + } + + /// outputNumberOfChannels + DartNSInteger get outputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.outputNumberOfChannels', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_outputNumberOfChannels); + } + + /// preferredIOBufferDuration + DartNSTimeInterval get preferredIOBufferDuration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredIOBufferDuration', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + _$$ref.pointer, + _sel_preferredIOBufferDuration, + ) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_preferredIOBufferDuration); + } + + /// preferredInputNumberOfChannels + DartNSInteger get preferredInputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredInputNumberOfChannels', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_preferredInputNumberOfChannels, + ); + } + + /// preferredInputOrientation + AVAudioStereoOrientation get preferredInputOrientation { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredInputOrientation', + iOS: (false, (14, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_1n4ndiq( + _$$ref.pointer, + _sel_preferredInputOrientation, + ); + return AVAudioStereoOrientation.fromValue($ret); + } + + /// preferredOutputNumberOfChannels + DartNSInteger get preferredOutputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredOutputNumberOfChannels', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_preferredOutputNumberOfChannels, + ); + } + + /// preferredSampleRate + double get preferredSampleRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredSampleRate', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_preferredSampleRate) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_preferredSampleRate); + } + + /// sampleRate + double get sampleRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.sampleRate', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_sampleRate) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_sampleRate); + } + + /// setInputDataSource:error: + bool setInputDataSource(AVAudioSessionDataSourceDescription? dataSource) { + final _$$ref = object$.ref; + final _$$ref$1 = dataSource?.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setInputDataSource:error:', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_setInputDataSource_error_, + _$$ref$1?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setInputGain:error: + bool setInputGain(double gain) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setInputGain:error:', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1c1ssyi( + _$$ref.pointer, + _sel_setInputGain_error_, + gain, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setOutputDataSource:error: + bool setOutputDataSource(AVAudioSessionDataSourceDescription? dataSource) { + final _$$ref = object$.ref; + final _$$ref$1 = dataSource?.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setOutputDataSource:error:', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_setOutputDataSource_error_, + _$$ref$1?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPreferredIOBufferDuration:error: + bool setPreferredIOBufferDuration(DartNSTimeInterval duration) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredIOBufferDuration:error:', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_xhvge5( + _$$ref.pointer, + _sel_setPreferredIOBufferDuration_error_, + duration, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPreferredInputNumberOfChannels:error: + bool setPreferredInputNumberOfChannels(DartNSInteger count) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredInputNumberOfChannels:error:', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_165e55c( + _$$ref.pointer, + _sel_setPreferredInputNumberOfChannels_error_, + count, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPreferredInputOrientation:error: + bool setPreferredInputOrientation(AVAudioStereoOrientation orientation) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredInputOrientation:error:', + iOS: (false, (14, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1db3yj( + _$$ref.pointer, + _sel_setPreferredInputOrientation_error_, + orientation.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPreferredOutputNumberOfChannels:error: + bool setPreferredOutputNumberOfChannels(DartNSInteger count) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredOutputNumberOfChannels:error:', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_165e55c( + _$$ref.pointer, + _sel_setPreferredOutputNumberOfChannels_error_, + count, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPreferredSampleRate:error: + bool setPreferredSampleRate(double sampleRate) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredSampleRate:error:', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_xhvge5( + _$$ref.pointer, + _sel_setPreferredSampleRate_error_, + sampleRate, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// supportedOutputChannelLayouts + objc.NSArray get supportedOutputChannelLayouts { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.supportedOutputChannelLayouts', + iOS: (false, (17, 2, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_supportedOutputChannelLayouts, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +enum AVAudioSessionIOType { + AVAudioSessionIOTypeNotSpecified(0), + AVAudioSessionIOTypeAggregated(1); + + final int value; + const AVAudioSessionIOType(this.value); + + static AVAudioSessionIOType fromValue(int value) => switch (value) { + 0 => AVAudioSessionIOTypeNotSpecified, + 1 => AVAudioSessionIOTypeAggregated, + _ => throw ArgumentError('Unknown value for AVAudioSessionIOType: $value'), + }; +} + +@Deprecated('Deprecated') +const int AVAudioSessionInterruptionFlags_ShouldResume = 1; + +sealed class AVAudioSessionInterruptionOptions { + static const AVAudioSessionInterruptionOptionShouldResume = 1; +} + +enum AVAudioSessionInterruptionReason { + AVAudioSessionInterruptionReasonDefault(0), + AVAudioSessionInterruptionReasonAppWasSuspended(1), + AVAudioSessionInterruptionReasonBuiltInMicMuted(2), + AVAudioSessionInterruptionReasonRouteDisconnected(4); + + final int value; + const AVAudioSessionInterruptionReason(this.value); + + static AVAudioSessionInterruptionReason fromValue(int value) => + switch (value) { + 0 => AVAudioSessionInterruptionReasonDefault, + 1 => AVAudioSessionInterruptionReasonAppWasSuspended, + 2 => AVAudioSessionInterruptionReasonBuiltInMicMuted, + 4 => AVAudioSessionInterruptionReasonRouteDisconnected, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionInterruptionReason: $value', + ), + }; +} + +enum AVAudioSessionInterruptionType { + AVAudioSessionInterruptionTypeBegan(1), + AVAudioSessionInterruptionTypeEnded(0); + + final int value; + const AVAudioSessionInterruptionType(this.value); + + static AVAudioSessionInterruptionType fromValue(int value) => switch (value) { + 1 => AVAudioSessionInterruptionTypeBegan, + 0 => AVAudioSessionInterruptionTypeEnded, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionInterruptionType: $value', + ), + }; +} + +typedef AVAudioSessionLocation = ffi.Pointer; +typedef DartAVAudioSessionLocation = objc.NSString; + +enum AVAudioSessionMicrophoneInjectionMode { + AVAudioSessionMicrophoneInjectionModeNone(0), + AVAudioSessionMicrophoneInjectionModeSpokenAudio(1); + + final int value; + const AVAudioSessionMicrophoneInjectionMode(this.value); + + static AVAudioSessionMicrophoneInjectionMode fromValue(int value) => + switch (value) { + 0 => AVAudioSessionMicrophoneInjectionModeNone, + 1 => AVAudioSessionMicrophoneInjectionModeSpokenAudio, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionMicrophoneInjectionMode: $value', + ), + }; +} + +typedef AVAudioSessionMode = ffi.Pointer; +typedef DartAVAudioSessionMode = objc.NSString; +typedef AVAudioSessionOrientation = ffi.Pointer; +typedef DartAVAudioSessionOrientation = objc.NSString; +typedef AVAudioSessionPolarPattern = ffi.Pointer; +typedef DartAVAudioSessionPolarPattern = objc.NSString; +typedef AVAudioSessionPort = ffi.Pointer; +typedef DartAVAudioSessionPort = objc.NSString; + +/// WARNING: AVAudioSessionPortDescription is a stub. To generate bindings for this class, include +/// AVAudioSessionPortDescription in your config's objc-interfaces list. +/// +/// AVAudioSessionPortDescription +extension type AVAudioSessionPortDescription._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioSessionPortDescription] that points to the same underlying object as [other]. + AVAudioSessionPortDescription.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioSessionPortDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } + + /// Constructs a [AVAudioSessionPortDescription] that wraps the given raw object pointer. + AVAudioSessionPortDescription.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioSessionPortDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } +} + +/// WARNING: AVAudioSessionPortExtensionBluetoothMicrophone is a stub. To generate bindings for this class, include +/// AVAudioSessionPortExtensionBluetoothMicrophone in your config's objc-interfaces list. +/// +/// AVAudioSessionPortExtensionBluetoothMicrophone +extension type AVAudioSessionPortExtensionBluetoothMicrophone._( + objc.ObjCObject object$ +) implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioSessionPortExtensionBluetoothMicrophone] that points to the same underlying object as [other]. + AVAudioSessionPortExtensionBluetoothMicrophone.as(objc.ObjCObject other) + : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioSessionPortExtensionBluetoothMicrophone', + iOS: (false, (26, 0, 0)), + macOS: (true, null), + ); + } + + /// Constructs a [AVAudioSessionPortExtensionBluetoothMicrophone] that wraps the given raw object pointer. + AVAudioSessionPortExtensionBluetoothMicrophone.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioSessionPortExtensionBluetoothMicrophone', + iOS: (false, (26, 0, 0)), + macOS: (true, null), + ); + } +} + +enum AVAudioSessionPortOverride { + AVAudioSessionPortOverrideNone(0), + AVAudioSessionPortOverrideSpeaker(1936747378); + + final int value; + const AVAudioSessionPortOverride(this.value); + + static AVAudioSessionPortOverride fromValue(int value) => switch (value) { + 0 => AVAudioSessionPortOverrideNone, + 1936747378 => AVAudioSessionPortOverrideSpeaker, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionPortOverride: $value', + ), + }; +} + +enum AVAudioSessionPromptStyle { + AVAudioSessionPromptStyleNone(1852796517), + AVAudioSessionPromptStyleShort(1936224884), + AVAudioSessionPromptStyleNormal(1852992876); + + final int value; + const AVAudioSessionPromptStyle(this.value); + + static AVAudioSessionPromptStyle fromValue(int value) => switch (value) { + 1852796517 => AVAudioSessionPromptStyleNone, + 1936224884 => AVAudioSessionPromptStyleShort, + 1852992876 => AVAudioSessionPromptStyleNormal, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionPromptStyle: $value', + ), + }; +} + +enum AVAudioSessionRecordPermission { + AVAudioSessionRecordPermissionUndetermined(1970168948), + AVAudioSessionRecordPermissionDenied(1684369017), + AVAudioSessionRecordPermissionGranted(1735552628); + + final int value; + const AVAudioSessionRecordPermission(this.value); + + static AVAudioSessionRecordPermission fromValue(int value) => switch (value) { + 1970168948 => AVAudioSessionRecordPermissionUndetermined, + 1684369017 => AVAudioSessionRecordPermissionDenied, + 1735552628 => AVAudioSessionRecordPermissionGranted, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionRecordPermission: $value', + ), + }; +} + +enum AVAudioSessionRenderingMode { + AVAudioSessionRenderingModeNotApplicable(0), + AVAudioSessionRenderingModeMonoStereo(1), + AVAudioSessionRenderingModeSurround(2), + AVAudioSessionRenderingModeSpatialAudio(3), + AVAudioSessionRenderingModeDolbyAudio(4), + AVAudioSessionRenderingModeDolbyAtmos(5); + + final int value; + const AVAudioSessionRenderingMode(this.value); + + static AVAudioSessionRenderingMode fromValue(int value) => switch (value) { + 0 => AVAudioSessionRenderingModeNotApplicable, + 1 => AVAudioSessionRenderingModeMonoStereo, + 2 => AVAudioSessionRenderingModeSurround, + 3 => AVAudioSessionRenderingModeSpatialAudio, + 4 => AVAudioSessionRenderingModeDolbyAudio, + 5 => AVAudioSessionRenderingModeDolbyAtmos, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionRenderingMode: $value', + ), + }; +} + +enum AVAudioSessionRouteChangeReason { + AVAudioSessionRouteChangeReasonUnknown(0), + AVAudioSessionRouteChangeReasonNewDeviceAvailable(1), + AVAudioSessionRouteChangeReasonOldDeviceUnavailable(2), + AVAudioSessionRouteChangeReasonCategoryChange(3), + AVAudioSessionRouteChangeReasonOverride(4), + AVAudioSessionRouteChangeReasonWakeFromSleep(6), + AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory(7), + AVAudioSessionRouteChangeReasonRouteConfigurationChange(8); + + final int value; + const AVAudioSessionRouteChangeReason(this.value); + + static AVAudioSessionRouteChangeReason fromValue(int value) => + switch (value) { + 0 => AVAudioSessionRouteChangeReasonUnknown, + 1 => AVAudioSessionRouteChangeReasonNewDeviceAvailable, + 2 => AVAudioSessionRouteChangeReasonOldDeviceUnavailable, + 3 => AVAudioSessionRouteChangeReasonCategoryChange, + 4 => AVAudioSessionRouteChangeReasonOverride, + 6 => AVAudioSessionRouteChangeReasonWakeFromSleep, + 7 => AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory, + 8 => AVAudioSessionRouteChangeReasonRouteConfigurationChange, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionRouteChangeReason: $value', + ), + }; +} + +/// WARNING: AVAudioSessionRouteDescription is a stub. To generate bindings for this class, include +/// AVAudioSessionRouteDescription in your config's objc-interfaces list. +/// +/// AVAudioSessionRouteDescription +extension type AVAudioSessionRouteDescription._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioSessionRouteDescription] that points to the same underlying object as [other]. + AVAudioSessionRouteDescription.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioSessionRouteDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } + + /// Constructs a [AVAudioSessionRouteDescription] that wraps the given raw object pointer. + AVAudioSessionRouteDescription.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioSessionRouteDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } +} + +enum AVAudioSessionRouteSharingPolicy { + AVAudioSessionRouteSharingPolicyDefault(0), + AVAudioSessionRouteSharingPolicyLongFormAudio(1), + AVAudioSessionRouteSharingPolicyIndependent(2), + AVAudioSessionRouteSharingPolicyLongFormVideo(3); + + static const AVAudioSessionRouteSharingPolicyLongForm = + AVAudioSessionRouteSharingPolicyLongFormAudio; + + final int value; + const AVAudioSessionRouteSharingPolicy(this.value); + + static AVAudioSessionRouteSharingPolicy fromValue(int value) => + switch (value) { + 0 => AVAudioSessionRouteSharingPolicyDefault, + 1 => AVAudioSessionRouteSharingPolicyLongFormAudio, + 2 => AVAudioSessionRouteSharingPolicyIndependent, + 3 => AVAudioSessionRouteSharingPolicyLongFormVideo, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionRouteSharingPolicy: $value', + ), + }; + + @override + String toString() { + if (this == AVAudioSessionRouteSharingPolicyLongFormAudio) + return "AVAudioSessionRouteSharingPolicy.AVAudioSessionRouteSharingPolicyLongFormAudio, AVAudioSessionRouteSharingPolicy.AVAudioSessionRouteSharingPolicyLongForm"; + return super.toString(); + } +} + +@Deprecated('Deprecated') +const int AVAudioSessionSetActiveFlags_NotifyOthersOnDeactivation = 1; + +sealed class AVAudioSessionSetActiveOptions { + static const AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation = 1; +} + +enum AVAudioSessionSilenceSecondaryAudioHintType { + AVAudioSessionSilenceSecondaryAudioHintTypeBegin(1), + AVAudioSessionSilenceSecondaryAudioHintTypeEnd(0); + + final int value; + const AVAudioSessionSilenceSecondaryAudioHintType(this.value); + + static AVAudioSessionSilenceSecondaryAudioHintType fromValue( + int value, + ) => switch (value) { + 1 => AVAudioSessionSilenceSecondaryAudioHintTypeBegin, + 0 => AVAudioSessionSilenceSecondaryAudioHintTypeEnd, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionSilenceSecondaryAudioHintType: $value', + ), + }; +} + +enum AVAudioStereoOrientation { + AVAudioStereoOrientationNone(0), + AVAudioStereoOrientationPortrait(1), + AVAudioStereoOrientationPortraitUpsideDown(2), + AVAudioStereoOrientationLandscapeRight(3), + AVAudioStereoOrientationLandscapeLeft(4); + + final int value; + const AVAudioStereoOrientation(this.value); + + static AVAudioStereoOrientation fromValue(int value) => switch (value) { + 0 => AVAudioStereoOrientationNone, + 1 => AVAudioStereoOrientationPortrait, + 2 => AVAudioStereoOrientationPortraitUpsideDown, + 3 => AVAudioStereoOrientationLandscapeRight, + 4 => AVAudioStereoOrientationLandscapeLeft, + _ => throw ArgumentError( + 'Unknown value for AVAudioStereoOrientation: $value', + ), + }; +} + +typedef AVAudioUInteger = ffi.UnsignedLong; +typedef DartAVAudioUInteger = int; +typedef AVMusicTimeStamp = ffi.Double; +typedef DartAVMusicTimeStamp = double; + +sealed class AXCopyMultipleAttributeOptions { + static const kAXCopyMultipleAttributeOptionStopOnError = 1; +} + +enum AXError { + kAXErrorSuccess(0), + kAXErrorFailure(-25200), + kAXErrorIllegalArgument(-25201), + kAXErrorInvalidUIElement(-25202), + kAXErrorInvalidUIElementObserver(-25203), + kAXErrorCannotComplete(-25204), + kAXErrorAttributeUnsupported(-25205), + kAXErrorActionUnsupported(-25206), + kAXErrorNotificationUnsupported(-25207), + kAXErrorNotImplemented(-25208), + kAXErrorNotificationAlreadyRegistered(-25209), + kAXErrorNotificationNotRegistered(-25210), + kAXErrorAPIDisabled(-25211), + kAXErrorNoValue(-25212), + kAXErrorParameterizedAttributeUnsupported(-25213), + kAXErrorNotEnoughPrecision(-25214); + + final int value; + const AXError(this.value); + + static AXError fromValue(int value) => switch (value) { + 0 => kAXErrorSuccess, + -25200 => kAXErrorFailure, + -25201 => kAXErrorIllegalArgument, + -25202 => kAXErrorInvalidUIElement, + -25203 => kAXErrorInvalidUIElementObserver, + -25204 => kAXErrorCannotComplete, + -25205 => kAXErrorAttributeUnsupported, + -25206 => kAXErrorActionUnsupported, + -25207 => kAXErrorNotificationUnsupported, + -25208 => kAXErrorNotImplemented, + -25209 => kAXErrorNotificationAlreadyRegistered, + -25210 => kAXErrorNotificationNotRegistered, + -25211 => kAXErrorAPIDisabled, + -25212 => kAXErrorNoValue, + -25213 => kAXErrorParameterizedAttributeUnsupported, + -25214 => kAXErrorNotEnoughPrecision, + _ => throw ArgumentError('Unknown value for AXError: $value'), + }; +} + +sealed class AXMenuItemModifiers { + static const kAXMenuItemModifierNone = 0; + static const kAXMenuItemModifierShift = 1; + static const kAXMenuItemModifierOption = 2; + static const kAXMenuItemModifierControl = 4; + static const kAXMenuItemModifierNoCommand = 8; +} + +typedef AXObserverCallback = + ffi.Pointer>; +typedef AXObserverCallbackFunction = + ffi.Void Function( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, + ffi.Pointer refcon, + ); +typedef DartAXObserverCallbackFunction = + void Function( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, + ffi.Pointer refcon, + ); +typedef AXObserverCallbackWithInfo = + ffi.Pointer>; +typedef AXObserverCallbackWithInfoFunction = + ffi.Void Function( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, + CFDictionaryRef info, + ffi.Pointer refcon, + ); +typedef DartAXObserverCallbackWithInfoFunction = + void Function( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, + CFDictionaryRef info, + ffi.Pointer refcon, + ); +typedef AXObserverRef = ffi.Pointer<__AXObserver>; + +enum AXPriority { + kAXPriorityLow(10), + kAXPriorityMedium(50), + kAXPriorityHigh(90); + + final int value; + const AXPriority(this.value); + + static AXPriority fromValue(int value) => switch (value) { + 10 => kAXPriorityLow, + 50 => kAXPriorityMedium, + 90 => kAXPriorityHigh, + _ => throw ArgumentError('Unknown value for AXPriority: $value'), + }; +} + +typedef AXTextMarkerRangeRef = ffi.Pointer<__AXTextMarkerRange>; +typedef AXTextMarkerRef = ffi.Pointer<__AXTextMarker>; +typedef AXUIElementRef = ffi.Pointer<__AXUIElement>; + +enum AXUnderlineStyle { + kAXUnderlineStyleNone(0), + kAXUnderlineStyleSingle(1), + kAXUnderlineStyleThick(2), + kAXUnderlineStyleDouble(9); + + final int value; + const AXUnderlineStyle(this.value); + + static AXUnderlineStyle fromValue(int value) => switch (value) { + 0 => kAXUnderlineStyleNone, + 1 => kAXUnderlineStyleSingle, + 2 => kAXUnderlineStyleThick, + 9 => kAXUnderlineStyleDouble, + _ => throw ArgumentError('Unknown value for AXUnderlineStyle: $value'), + }; +} + +typedef AXValueRef = ffi.Pointer<__AXValue>; + +enum AXValueType { + kAXValueTypeCGPoint(1), + kAXValueTypeCGSize(2), + kAXValueTypeCGRect(3), + kAXValueTypeCFRange(4), + kAXValueTypeAXError(5), + kAXValueTypeIllegal(0); + + final int value; + const AXValueType(this.value); + + static AXValueType fromValue(int value) => switch (value) { + 1 => kAXValueTypeCGPoint, + 2 => kAXValueTypeCGSize, + 3 => kAXValueTypeCGRect, + 4 => kAXValueTypeCFRange, + 5 => kAXValueTypeAXError, + 0 => kAXValueTypeIllegal, + _ => throw ArgumentError('Unknown value for AXValueType: $value'), + }; +} + +typedef AbsoluteTime = UnsignedWide; + +/// Activation +extension Activation on AVAudioSession { + /// activateWithOptions:completionHandler: + void activateWithOptions( + DartNSUInteger options, { + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = completionHandler.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.activateWithOptions:completionHandler:', + iOS: (true, null), + macOS: (true, null), + ); + _objc_msgSend_ivnkdn( + _$$ref.pointer, + _sel_activateWithOptions_completionHandler_, + options, + _$$ref$1.pointer, + ); + } + + /// setActive:error: + bool setActive(bool active) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setActive:error:', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_164wts2( + _$$ref.pointer, + _sel_setActive_error_, + active, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setActive:withOptions:error: + bool setActive$1(bool active, {required DartNSUInteger withOptions}) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setActive:withOptions:error:', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1nqw6vl( + _$$ref.pointer, + _sel_setActive_withOptions_error_, + active, + withOptions, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +typedef AliasHandle = ffi.Pointer; +typedef AliasInfoType = ffi.Short; +typedef DartAliasInfoType = int; +typedef AliasPtr = ffi.Pointer; + +final class AliasRecord extends ffi.Struct { + @ffi.Array.multi([6]) + external ffi.Array hidden; +} + +final class AnchorPoint extends ffi.Struct { + @SInt16() + external int x; + + @SInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +@ffi.Packed(2) +final class AnchorPointTable extends ffi.Struct { + @UInt32() + external int nPoints; + + @ffi.Array.multi([1]) + external ffi.Array points; +} + +@ffi.Packed(2) +final class AnkrTable extends ffi.Struct { + @UInt16() + external int version; + + @UInt16() + external int flags; + + @UInt32() + external int lookupTableOffset; + + @UInt32() + external int anchorPointTableOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int flags, + required int lookupTableOffset, + required int anchorPointTableOffset, + }) => $allocator() + ..ref.version = version + ..ref.flags = flags + ..ref.lookupTableOffset = lookupTableOffset + ..ref.anchorPointTableOffset = anchorPointTableOffset; +} + +const int AnnotationID = 1095650895; + +@ffi.Packed(2) +final class AppParameters extends ffi.Struct { + external UnnamedStruct theMsgEvent; + + @UInt32() + external int eventRefCon; + + @UInt32() + external int messageLength; +} + +typedef AppParametersPtr = ffi.Pointer; +typedef AppleEvent = AERecord; +typedef AppleEventPtr = ffi.Pointer; + +const int AppleShareMediaType = 1634103405; + +@ffi.Packed(2) +final class ApplicationSpecificChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @OSType() + external int applicationSignature; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef ApplicationSpecificChunkPtr = ffi.Pointer; + +const int ApplicationSpecificID = 1095782476; + +typedef AreaID = ffi.Pointer; + +final class AsscEntry extends ffi.Struct { + @SInt16() + external int fontSize; + + @SInt16() + external int fontStyle; + + @SInt16() + external int fontID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fontSize, + required int fontStyle, + required int fontID, + }) => $allocator() + ..ref.fontSize = fontSize + ..ref.fontStyle = fontStyle + ..ref.fontID = fontID; +} + +final class AudioBuffer extends ffi.Struct { + @UInt32() + external int mNumberChannels; + + @UInt32() + external int mDataByteSize; + + external ffi.Pointer mData; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mNumberChannels, + required int mDataByteSize, + required ffi.Pointer mData, + }) => $allocator() + ..ref.mNumberChannels = mNumberChannels + ..ref.mDataByteSize = mDataByteSize + ..ref.mData = mData; +} + +final class AudioBufferList extends ffi.Struct { + @UInt32() + external int mNumberBuffers; + + @ffi.Array.multi([1]) + external ffi.Array mBuffers; +} + +sealed class AudioChannelBitmap { + static const kAudioChannelBit_Left = 1; + static const kAudioChannelBit_Right = 2; + static const kAudioChannelBit_Center = 4; + static const kAudioChannelBit_LFEScreen = 8; + static const kAudioChannelBit_LeftSurround = 16; + static const kAudioChannelBit_RightSurround = 32; + static const kAudioChannelBit_LeftCenter = 64; + static const kAudioChannelBit_RightCenter = 128; + static const kAudioChannelBit_CenterSurround = 256; + static const kAudioChannelBit_LeftSurroundDirect = 512; + static const kAudioChannelBit_RightSurroundDirect = 1024; + static const kAudioChannelBit_TopCenterSurround = 2048; + static const kAudioChannelBit_VerticalHeightLeft = 4096; + static const kAudioChannelBit_VerticalHeightCenter = 8192; + static const kAudioChannelBit_VerticalHeightRight = 16384; + static const kAudioChannelBit_TopBackLeft = 32768; + static const kAudioChannelBit_TopBackCenter = 65536; + static const kAudioChannelBit_TopBackRight = 131072; + static const kAudioChannelBit_LeftTopFront = 4096; + static const kAudioChannelBit_CenterTopFront = 8192; + static const kAudioChannelBit_RightTopFront = 16384; + static const kAudioChannelBit_LeftTopMiddle = 2097152; + static const kAudioChannelBit_CenterTopMiddle = 2048; + static const kAudioChannelBit_RightTopMiddle = 8388608; + static const kAudioChannelBit_LeftTopRear = 16777216; + static const kAudioChannelBit_CenterTopRear = 33554432; + static const kAudioChannelBit_RightTopRear = 67108864; +} + +enum AudioChannelCoordinateIndex { + kAudioChannelCoordinates_LeftRight(0), + kAudioChannelCoordinates_BackFront(1), + kAudioChannelCoordinates_DownUp(2); + + static const kAudioChannelCoordinates_Azimuth = + kAudioChannelCoordinates_LeftRight; + static const kAudioChannelCoordinates_Elevation = + kAudioChannelCoordinates_BackFront; + static const kAudioChannelCoordinates_Distance = + kAudioChannelCoordinates_DownUp; + + final int value; + const AudioChannelCoordinateIndex(this.value); + + static AudioChannelCoordinateIndex fromValue(int value) => switch (value) { + 0 => kAudioChannelCoordinates_LeftRight, + 1 => kAudioChannelCoordinates_BackFront, + 2 => kAudioChannelCoordinates_DownUp, + _ => throw ArgumentError( + 'Unknown value for AudioChannelCoordinateIndex: $value', + ), + }; + + @override + String toString() { + if (this == kAudioChannelCoordinates_LeftRight) + return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_LeftRight, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Azimuth"; + if (this == kAudioChannelCoordinates_BackFront) + return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_BackFront, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Elevation"; + if (this == kAudioChannelCoordinates_DownUp) + return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_DownUp, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Distance"; + return super.toString(); + } +} + +final class AudioChannelDescription extends ffi.Struct { + @AudioChannelLabel() + external int mChannelLabel; + + @UInt32() + external int mChannelFlags; + + @ffi.Array.multi([3]) + external ffi.Array mCoordinates; +} + +sealed class AudioChannelFlags { + static const kAudioChannelFlags_AllOff = 0; + static const kAudioChannelFlags_RectangularCoordinates = 1; + static const kAudioChannelFlags_SphericalCoordinates = 2; + static const kAudioChannelFlags_Meters = 4; +} + +typedef AudioChannelLabel = UInt32; + +final class AudioChannelLayout extends ffi.Struct { + @AudioChannelLayoutTag() + external int mChannelLayoutTag; + + @UInt32() + external int mChannelBitmap; + + @UInt32() + external int mNumberChannelDescriptions; + + @ffi.Array.multi([1]) + external ffi.Array mChannelDescriptions; +} + +typedef AudioChannelLayoutTag = UInt32; + +final class AudioClassDescription extends ffi.Struct { + @OSType() + external int mType; + + @OSType() + external int mSubType; + + @OSType() + external int mManufacturer; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mType, + required int mSubType, + required int mManufacturer, + }) => $allocator() + ..ref.mType = mType + ..ref.mSubType = mSubType + ..ref.mManufacturer = mManufacturer; +} + +typedef AudioFormatFlags = UInt32; +typedef AudioFormatID = UInt32; + +final class AudioFormatListItem extends ffi.Struct { + external AudioStreamBasicDescription mASBD; + + @AudioChannelLayoutTag() + external int mChannelLayoutTag; +} + +@ffi.Packed(2) +final class AudioRecordingChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @ffi.Array.multi([24]) + external ffi.Array AESChannelStatus; +} + +typedef AudioRecordingChunkPtr = ffi.Pointer; + +const int AudioRecordingID = 1095062340; + +typedef AudioSampleType = Float32; +typedef AudioSessionID = ffi.Uint32; +typedef DartAudioSessionID = int; + +final class AudioStreamBasicDescription extends ffi.Struct { + @Float64() + external double mSampleRate; + + @AudioFormatID() + external int mFormatID; + + @AudioFormatFlags() + external int mFormatFlags; + + @UInt32() + external int mBytesPerPacket; + + @UInt32() + external int mFramesPerPacket; + + @UInt32() + external int mBytesPerFrame; + + @UInt32() + external int mChannelsPerFrame; + + @UInt32() + external int mBitsPerChannel; + + @UInt32() + external int mReserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double mSampleRate, + required int mFormatID, + required int mFormatFlags, + required int mBytesPerPacket, + required int mFramesPerPacket, + required int mBytesPerFrame, + required int mChannelsPerFrame, + required int mBitsPerChannel, + required int mReserved, + }) => $allocator() + ..ref.mSampleRate = mSampleRate + ..ref.mFormatID = mFormatID + ..ref.mFormatFlags = mFormatFlags + ..ref.mBytesPerPacket = mBytesPerPacket + ..ref.mFramesPerPacket = mFramesPerPacket + ..ref.mBytesPerFrame = mBytesPerFrame + ..ref.mChannelsPerFrame = mChannelsPerFrame + ..ref.mBitsPerChannel = mBitsPerChannel + ..ref.mReserved = mReserved; +} + +final class AudioStreamPacketDependencyDescription extends ffi.Struct { + @UInt32() + external int mIsIndependentlyDecodable; + + @UInt32() + external int mPreRollCount; + + @UInt32() + external int mFlags; + + @UInt32() + external int mReserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mIsIndependentlyDecodable, + required int mPreRollCount, + required int mFlags, + required int mReserved, + }) => $allocator() + ..ref.mIsIndependentlyDecodable = mIsIndependentlyDecodable + ..ref.mPreRollCount = mPreRollCount + ..ref.mFlags = mFlags + ..ref.mReserved = mReserved; +} + +final class AudioStreamPacketDescription extends ffi.Struct { + @SInt64() + external int mStartOffset; + + @UInt32() + external int mVariableFramesInPacket; + + @UInt32() + external int mDataByteSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mStartOffset, + required int mVariableFramesInPacket, + required int mDataByteSize, + }) => $allocator() + ..ref.mStartOffset = mStartOffset + ..ref.mVariableFramesInPacket = mVariableFramesInPacket + ..ref.mDataByteSize = mDataByteSize; +} + +final class AudioTimeStamp extends ffi.Struct { + @Float64() + external double mSampleTime; + + @UInt64() + external int mHostTime; + + @Float64() + external double mRateScalar; + + @UInt64() + external int mWordClockTime; + + external SMPTETime mSMPTETime; + + @UInt32() + external int mFlags; + + @UInt32() + external int mReserved; +} + +sealed class AudioTimeStampFlags { + static const kAudioTimeStampNothingValid = 0; + static const kAudioTimeStampSampleTimeValid = 1; + static const kAudioTimeStampHostTimeValid = 2; + static const kAudioTimeStampRateScalarValid = 4; + static const kAudioTimeStampWordClockTimeValid = 8; + static const kAudioTimeStampSMPTETimeValid = 16; + static const kAudioTimeStampSampleHostTimeValid = 3; +} + +typedef AudioUnitSampleType = Float32; + +final class AudioValueRange extends ffi.Struct { + @Float64() + external double mMinimum; + + @Float64() + external double mMaximum; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double mMinimum, + required double mMaximum, + }) => $allocator() + ..ref.mMinimum = mMinimum + ..ref.mMaximum = mMaximum; +} + +final class AudioValueTranslation extends ffi.Struct { + external ffi.Pointer mInputData; + + @UInt32() + external int mInputDataSize; + + external ffi.Pointer mOutputData; + + @UInt32() + external int mOutputDataSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer mInputData, + required int mInputDataSize, + required ffi.Pointer mOutputData, + required int mOutputDataSize, + }) => $allocator() + ..ref.mInputData = mInputData + ..ref.mInputDataSize = mInputDataSize + ..ref.mOutputData = mOutputData + ..ref.mOutputDataSize = mOutputDataSize; +} + +const int AuthorID = 1096111176; + +typedef AuthorizationAsyncCallback = ffi.Pointer; +typedef DartAuthorizationAsyncCallback = + objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >; +typedef AuthorizationEnvironment = AuthorizationItemSet; + +final class AuthorizationExternalForm extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array bytes; +} + +sealed class AuthorizationFlags { + static const kAuthorizationFlagDefaults = 0; + static const kAuthorizationFlagInteractionAllowed = 1; + static const kAuthorizationFlagExtendRights = 2; + static const kAuthorizationFlagPartialRights = 4; + static const kAuthorizationFlagDestroyRights = 8; + static const kAuthorizationFlagPreAuthorize = 16; + static const kAuthorizationFlagSkipInternalAuth = 512; + static const kAuthorizationFlagNoData = 1048576; +} + +final class AuthorizationItem extends ffi.Struct { + external AuthorizationString name; + + @ffi.Size() + external int valueLength; + + external ffi.Pointer value; + + @UInt32() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required AuthorizationString name, + required int valueLength, + required ffi.Pointer value, + required int flags, + }) => $allocator() + ..ref.name = name + ..ref.valueLength = valueLength + ..ref.value = value + ..ref.flags = flags; +} + +final class AuthorizationItemSet extends ffi.Struct { + @UInt32() + external int count; + + external ffi.Pointer items; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required ffi.Pointer items, + }) => $allocator() + ..ref.count = count + ..ref.items = items; +} + +final class AuthorizationOpaqueRef extends ffi.Opaque {} + +typedef AuthorizationRef = ffi.Pointer; +typedef AuthorizationRights = AuthorizationItemSet; +typedef AuthorizationString = ffi.Pointer; + +@ffi.Packed(2) +final class BTHeaderRec extends ffi.Struct { + @u_int16_t() + external int treeDepth; + + @u_int32_t() + external int rootNode; + + @u_int32_t() + external int leafRecords; + + @u_int32_t() + external int firstLeafNode; + + @u_int32_t() + external int lastLeafNode; + + @u_int16_t() + external int nodeSize; + + @u_int16_t() + external int maxKeyLength; + + @u_int32_t() + external int totalNodes; + + @u_int32_t() + external int freeNodes; + + @u_int16_t() + external int reserved1; + + @u_int32_t() + external int clumpSize; + + @u_int8_t() + external int btreeType; + + @u_int8_t() + external int keyCompareType; + + @u_int32_t() + external int attributes; + + @ffi.Array.multi([16]) + external ffi.Array reserved3; +} + +@ffi.Packed(2) +final class BTNodeDescriptor extends ffi.Struct { + @u_int32_t() + external int fLink; + + @u_int32_t() + external int bLink; + + @ffi.Int8() + external int kind; + + @u_int8_t() + external int height; + + @u_int16_t() + external int numRecords; + + @u_int16_t() + external int reserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fLink, + required int bLink, + required int kind, + required int height, + required int numRecords, + required int reserved, + }) => $allocator() + ..ref.fLink = fLink + ..ref.bLink = bLink + ..ref.kind = kind + ..ref.height = height + ..ref.numRecords = numRecords + ..ref.reserved = reserved; +} + +final class BTreeKey extends ffi.Union { + @u_int8_t() + external int length8; + + @u_int16_t() + external int length16; + + @ffi.Array.multi([522]) + external ffi.Array rawData; +} + +enum BTreeKeyLimits { + kMaxKeyLength(520); + + final int value; + const BTreeKeyLimits(this.value); + + static BTreeKeyLimits fromValue(int value) => switch (value) { + 520 => kMaxKeyLength, + _ => throw ArgumentError('Unknown value for BTreeKeyLimits: $value'), + }; +} + +@ffi.Packed(2) +final class BigEndianFixed extends ffi.Struct { + @Fixed() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BigEndianLong extends ffi.Struct { + @ffi.Long() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BigEndianOSType extends ffi.Struct { + @OSType() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => $allocator()..ref.bigEndianValue = bigEndianValue; +} + +final class BigEndianShort extends ffi.Struct { + @ffi.Short() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BigEndianUInt32 extends ffi.Struct { + @UInt32() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BigEndianUnsignedFixed extends ffi.Struct { + @UnsignedFixed() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => + $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BigEndianUnsignedLong extends ffi.Struct { + @ffi.UnsignedLong() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => + $allocator()..ref.bigEndianValue = bigEndianValue; +} + +final class BigEndianUnsignedShort extends ffi.Struct { + @ffi.UnsignedShort() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => + $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BitMap extends ffi.Struct { + external Ptr baseAddr; + + @ffi.Short() + external int rowBytes; + + external Rect bounds; +} + +typedef BitMapHandle = ffi.Pointer; +typedef BitMapPtr = ffi.Pointer; + +/// BluetoothMicrophoneExtension +extension BluetoothMicrophoneExtension on AVAudioSessionPortDescription { + /// bluetoothMicrophoneExtension + AVAudioSessionPortExtensionBluetoothMicrophone? + get bluetoothMicrophoneExtension { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSessionPortDescription.bluetoothMicrophoneExtension', + iOS: (false, (26, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_bluetoothMicrophoneExtension, + ); + return $ret.address == 0 + ? null + : AVAudioSessionPortExtensionBluetoothMicrophone.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +typedef Boolean = ffi.UnsignedChar; +typedef DartBoolean = int; +typedef BslnBaselineClass = UInt32; + +final class BslnFormat0Part extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array deltas; +} + +final class BslnFormat1Part extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array deltas; + + external SFNTLookupTable mappingData; +} + +final class BslnFormat2Part extends ffi.Struct { + @UInt16() + external int stdGlyph; + + @ffi.Array.multi([32]) + external ffi.Array ctlPoints; +} + +final class BslnFormat3Part extends ffi.Struct { + @UInt16() + external int stdGlyph; + + @ffi.Array.multi([32]) + external ffi.Array ctlPoints; + + external SFNTLookupTable mappingData; +} + +final class BslnFormatUnion extends ffi.Union { + external BslnFormat0Part fmt0Part; + + external BslnFormat1Part fmt1Part; + + external BslnFormat2Part fmt2Part; + + external BslnFormat3Part fmt3Part; +} + +@ffi.Packed(2) +final class BslnTable extends ffi.Struct { + @Fixed() + external int version; + + @BslnTableFormat() + external int format; + + @UInt16() + external int defaultBaseline; + + external BslnFormatUnion parts; +} + +typedef BslnTableFormat = UInt16; +typedef BslnTablePtr = ffi.Pointer; +typedef Byte = UInt8; +typedef ByteCount = ffi.UnsignedLong; +typedef DartByteCount = int; +typedef ByteOffset = ffi.UnsignedLong; +typedef DartByteOffset = int; +typedef BytePtr = ffi.Pointer; + +/// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include +/// CASpatialAudioExperience in your config's objc-interfaces list. +/// +/// CASpatialAudioExperience +extension type CASpatialAudioExperience._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [CASpatialAudioExperience] that points to the same underlying object as [other]. + CASpatialAudioExperience.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [CASpatialAudioExperience] that wraps the given raw object pointer. + CASpatialAudioExperience.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +const int CDEFNFnd = 88; + +typedef CE_AccessDescription = __CE_AccessDescription; +typedef CE_AuthorityInfoAccess = __CE_AuthorityInfoAccess; +typedef CE_AuthorityKeyID = __CE_AuthorityKeyID; +typedef CE_BasicConstraints = __CE_BasicConstraints; +typedef CE_CRLDistPointsSyntax = __CE_CRLDistPointsSyntax; +typedef CE_CRLDistributionPoint = __CE_CRLDistributionPoint; +typedef CE_CertPolicies = __CE_CertPolicies; +typedef CE_CrlDistReasonFlags = uint8; +typedef CE_CrlNumber = uint32; +typedef CE_CrlReason = uint32; + +final class CE_Data extends ffi.Union { + external CE_AuthorityKeyID authorityKeyID; + + external CE_SubjectKeyID subjectKeyID; + + @CE_KeyUsage() + external int keyUsage; + + external CE_GeneralNames subjectAltName; + + external CE_GeneralNames issuerAltName; + + external CE_ExtendedKeyUsage extendedKeyUsage; + + external CE_BasicConstraints basicConstraints; + + external CE_CertPolicies certPolicies; + + @CE_NetscapeCertType() + external int netscapeCertType; + + @CE_CrlNumber() + external int crlNumber; + + @CE_DeltaCrl() + external int deltaCrl; + + @CE_CrlReason() + external int crlReason; + + external CE_CRLDistPointsSyntax crlDistPoints; + + external CE_IssuingDistributionPoint issuingDistPoint; + + external CE_AuthorityInfoAccess authorityInfoAccess; + + external CE_QC_Statements qualifiedCertStatements; + + external CE_NameConstraints nameConstraints; + + external CE_PolicyMappings policyMappings; + + external CE_PolicyConstraints policyConstraints; + + @CE_InhibitAnyPolicy() + external int inhibitAnyPolicy; + + external SecAsn1Item rawData; +} + +typedef CE_DataAndType = __CE_DataAndType; +typedef CE_DeltaCrl = uint32; +typedef CE_DistributionPointName = __CE_DistributionPointName; +typedef CE_ExtendedKeyUsage = __CE_ExtendedKeyUsage; +typedef CE_GeneralName = __CE_GeneralName; +typedef CE_GeneralNames = __CE_GeneralNames; +typedef CE_GeneralSubtree = __CE_GeneralSubtree; +typedef CE_GeneralSubtrees = __CE_GeneralSubtrees; +typedef CE_InhibitAnyPolicy = uint32; +typedef CE_IssuingDistributionPoint = __CE_IssuingDistributionPoint; +typedef CE_KeyUsage = uint16; +typedef CE_NameConstraints = __CE_NameConstraints; +typedef CE_NameRegistrationAuthorities = CE_GeneralNames; +typedef CE_NetscapeCertType = uint16; +typedef CE_OtherName = __CE_OtherName; +typedef CE_PolicyConstraints = __CE_PolicyConstraints; +typedef CE_PolicyInformation = __CE_PolicyInformation; +typedef CE_PolicyMapping = __CE_PolicyMapping; +typedef CE_PolicyMappings = __CE_PolicyMappings; +typedef CE_PolicyQualifierInfo = __CE_PolicyQualifierInfo; +typedef CE_QC_Statement = __CE_QC_Statement; +typedef CE_QC_Statements = __CE_QC_Statements; +typedef CE_SemanticsInformation = __CE_SemanticsInformation; +typedef CE_SubjectKeyID = SecAsn1Item; +typedef CFAbsoluteTime = CFTimeInterval; +typedef CFAllocatorAllocateCallBack = + ffi.Pointer>; +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + CFIndex allocSize, + CFOptionFlags hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + DartCFIndex allocSize, + DartCFOptionFlags hint, + ffi.Pointer info, + ); + +final class CFAllocatorContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + external CFAllocatorAllocateCallBack allocate; + + external CFAllocatorReallocateCallBack reallocate; + + external CFAllocatorDeallocateCallBack deallocate; + + external CFAllocatorPreferredSizeCallBack preferredSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + required CFAllocatorAllocateCallBack allocate, + required CFAllocatorReallocateCallBack reallocate, + required CFAllocatorDeallocateCallBack deallocate, + required CFAllocatorPreferredSizeCallBack preferredSize, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.allocate = allocate + ..ref.reallocate = reallocate + ..ref.deallocate = deallocate + ..ref.preferredSize = preferredSize; +} + +typedef CFAllocatorCopyDescriptionCallBack = + ffi.Pointer>; +typedef CFAllocatorCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBack = + ffi.Pointer>; +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBack = + ffi.Pointer>; +typedef CFAllocatorPreferredSizeCallBackFunction = + CFIndex Function( + CFIndex size, + CFOptionFlags hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + DartCFIndex Function( + DartCFIndex size, + DartCFOptionFlags hint, + ffi.Pointer info, + ); +typedef CFAllocatorReallocateCallBack = + ffi.Pointer>; +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + CFIndex newsize, + CFOptionFlags hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + DartCFIndex newsize, + DartCFOptionFlags hint, + ffi.Pointer info, + ); +typedef CFAllocatorRef = ffi.Pointer<__CFAllocator>; +typedef CFAllocatorReleaseCallBack = + ffi.Pointer>; +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBack = + ffi.Pointer>; +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorTypeID = ffi.UnsignedLongLong; +typedef DartCFAllocatorTypeID = int; +typedef CFArrayApplierFunction = + ffi.Pointer>; +typedef CFArrayApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFArrayApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); + +final class CFArrayCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFArrayRetainCallBack retain; + + external CFArrayReleaseCallBack release; + + external CFArrayCopyDescriptionCallBack copyDescription; + + external CFArrayEqualCallBack equal; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFArrayRetainCallBack retain, + required CFArrayReleaseCallBack release, + required CFArrayCopyDescriptionCallBack copyDescription, + required CFArrayEqualCallBack equal, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal; +} + +typedef CFArrayCopyDescriptionCallBack = + ffi.Pointer>; +typedef CFArrayCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer value); +typedef CFArrayEqualCallBack = + ffi.Pointer>; +typedef CFArrayEqualCallBackFunction = + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFArrayEqualCallBackFunction = + DartBoolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef CFArrayRef = ffi.Pointer<__CFArray>; +typedef CFArrayReleaseCallBack = + ffi.Pointer>; +typedef CFArrayReleaseCallBackFunction = + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFArrayReleaseCallBackFunction = + void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef CFArrayRetainCallBack = + ffi.Pointer>; +typedef CFArrayRetainCallBackFunction = + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ); +typedef CFAttributedStringRef = ffi.Pointer<__CFAttributedString>; +typedef CFBagApplierFunction = + ffi.Pointer>; +typedef CFBagApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFBagApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); + +final class CFBagCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFBagRetainCallBack retain; + + external CFBagReleaseCallBack release; + + external CFBagCopyDescriptionCallBack copyDescription; + + external CFBagEqualCallBack equal; + + external CFBagHashCallBack hash; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFBagRetainCallBack retain, + required CFBagReleaseCallBack release, + required CFBagCopyDescriptionCallBack copyDescription, + required CFBagEqualCallBack equal, + required CFBagHashCallBack hash, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal + ..ref.hash = hash; +} + +typedef CFBagCopyDescriptionCallBack = + ffi.Pointer>; +typedef CFBagCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer value); +typedef CFBagEqualCallBack = + ffi.Pointer>; +typedef CFBagEqualCallBackFunction = + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFBagEqualCallBackFunction = + DartBoolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef CFBagHashCallBack = + ffi.Pointer>; +typedef CFBagHashCallBackFunction = + CFHashCode Function(ffi.Pointer value); +typedef DartCFBagHashCallBackFunction = + DartCFHashCode Function(ffi.Pointer value); +typedef CFBagRef = ffi.Pointer<__CFBag>; +typedef CFBagReleaseCallBack = + ffi.Pointer>; +typedef CFBagReleaseCallBackFunction = + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFBagReleaseCallBackFunction = + void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef CFBagRetainCallBack = + ffi.Pointer>; +typedef CFBagRetainCallBackFunction = + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ); +typedef CFBinaryHeapApplierFunction = + ffi.Pointer>; +typedef CFBinaryHeapApplierFunctionFunction = + ffi.Void Function(ffi.Pointer val, ffi.Pointer context); +typedef DartCFBinaryHeapApplierFunctionFunction = + void Function(ffi.Pointer val, ffi.Pointer context); + +final class CFBinaryHeapCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer ptr, + ) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer ptr) + > + > + release; + + external ffi.Pointer< + ffi.NativeFunction ptr)> + > + copyDescription; + + external ffi.Pointer< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer ptr1, + ffi.Pointer ptr2, + ffi.Pointer context, + ) + > + > + compare; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer ptr, + ) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer ptr) + > + > + release, + required ffi.Pointer< + ffi.NativeFunction ptr)> + > + copyDescription, + required ffi.Pointer< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer ptr1, + ffi.Pointer ptr2, + ffi.Pointer context, + ) + > + > + compare, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.compare = compare; +} + +final class CFBinaryHeapCompareContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFBinaryHeapRef = ffi.Pointer<__CFBinaryHeap>; +typedef CFBit = UInt32; +typedef CFBitVectorRef = ffi.Pointer<__CFBitVector>; +typedef CFBooleanRef = ffi.Pointer<__CFBoolean>; +typedef CFBundleRef = ffi.Pointer<__CFBundle>; +typedef CFBundleRefNum = ffi.Int; +typedef DartCFBundleRefNum = int; +typedef CFByteOrder = CFIndex; +typedef CFCalendarIdentifier = CFStringRef; +typedef CFCalendarRef = ffi.Pointer<__CFCalendar>; + +sealed class CFCalendarUnit { + static const kCFCalendarUnitEra = 2; + static const kCFCalendarUnitYear = 4; + static const kCFCalendarUnitMonth = 8; + static const kCFCalendarUnitDay = 16; + static const kCFCalendarUnitHour = 32; + static const kCFCalendarUnitMinute = 64; + static const kCFCalendarUnitSecond = 128; + static const kCFCalendarUnitWeek = 256; + static const kCFCalendarUnitWeekday = 512; + static const kCFCalendarUnitWeekdayOrdinal = 1024; + static const kCFCalendarUnitQuarter = 2048; + static const kCFCalendarUnitWeekOfMonth = 4096; + static const kCFCalendarUnitWeekOfYear = 8192; + static const kCFCalendarUnitYearForWeekOfYear = 16384; + static const kCFCalendarUnitDayOfYear = 65536; +} + +enum CFCharacterSetPredefinedSet { + kCFCharacterSetControl(1), + kCFCharacterSetWhitespace(2), + kCFCharacterSetWhitespaceAndNewline(3), + kCFCharacterSetDecimalDigit(4), + kCFCharacterSetLetter(5), + kCFCharacterSetLowercaseLetter(6), + kCFCharacterSetUppercaseLetter(7), + kCFCharacterSetNonBase(8), + kCFCharacterSetDecomposable(9), + kCFCharacterSetAlphaNumeric(10), + kCFCharacterSetPunctuation(11), + kCFCharacterSetCapitalizedLetter(13), + kCFCharacterSetSymbol(14), + kCFCharacterSetNewline(15), + kCFCharacterSetIllegal(12); + + final int value; + const CFCharacterSetPredefinedSet(this.value); + + static CFCharacterSetPredefinedSet fromValue(int value) => switch (value) { + 1 => kCFCharacterSetControl, + 2 => kCFCharacterSetWhitespace, + 3 => kCFCharacterSetWhitespaceAndNewline, + 4 => kCFCharacterSetDecimalDigit, + 5 => kCFCharacterSetLetter, + 6 => kCFCharacterSetLowercaseLetter, + 7 => kCFCharacterSetUppercaseLetter, + 8 => kCFCharacterSetNonBase, + 9 => kCFCharacterSetDecomposable, + 10 => kCFCharacterSetAlphaNumeric, + 11 => kCFCharacterSetPunctuation, + 13 => kCFCharacterSetCapitalizedLetter, + 14 => kCFCharacterSetSymbol, + 15 => kCFCharacterSetNewline, + 12 => kCFCharacterSetIllegal, + _ => throw ArgumentError( + 'Unknown value for CFCharacterSetPredefinedSet: $value', + ), + }; +} + +typedef CFCharacterSetRef = ffi.Pointer<__CFCharacterSet>; +typedef CFComparatorFunction = + ffi.Pointer>; +typedef CFComparatorFunctionFunction = + CFIndex Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef CFDataRef = ffi.Pointer<__CFData>; + +sealed class CFDataSearchFlags { + static const kCFDataSearchBackwards = 1; + static const kCFDataSearchAnchored = 2; +} + +typedef CFDateFormatterKey = CFStringRef; +typedef CFDateFormatterRef = ffi.Pointer<__CFDateFormatter>; + +enum CFDateFormatterStyle { + kCFDateFormatterNoStyle(0), + kCFDateFormatterShortStyle(1), + kCFDateFormatterMediumStyle(2), + kCFDateFormatterLongStyle(3), + kCFDateFormatterFullStyle(4); + + final int value; + const CFDateFormatterStyle(this.value); + + static CFDateFormatterStyle fromValue(int value) => switch (value) { + 0 => kCFDateFormatterNoStyle, + 1 => kCFDateFormatterShortStyle, + 2 => kCFDateFormatterMediumStyle, + 3 => kCFDateFormatterLongStyle, + 4 => kCFDateFormatterFullStyle, + _ => throw ArgumentError('Unknown value for CFDateFormatterStyle: $value'), + }; +} + +typedef CFDateRef = ffi.Pointer<__CFDate>; +typedef CFDictionaryApplierFunction = + ffi.Pointer>; +typedef CFDictionaryApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFDictionaryApplierFunctionFunction = + void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef CFDictionaryCopyDescriptionCallBack = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CFDictionaryCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer value); +typedef CFDictionaryEqualCallBack = + ffi.Pointer>; +typedef CFDictionaryEqualCallBackFunction = + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFDictionaryEqualCallBackFunction = + DartBoolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef CFDictionaryHashCallBack = + ffi.Pointer>; +typedef CFDictionaryHashCallBackFunction = + CFHashCode Function(ffi.Pointer value); +typedef DartCFDictionaryHashCallBackFunction = + DartCFHashCode Function(ffi.Pointer value); + +final class CFDictionaryKeyCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFDictionaryRetainCallBack retain; + + external CFDictionaryReleaseCallBack release; + + external CFDictionaryCopyDescriptionCallBack copyDescription; + + external CFDictionaryEqualCallBack equal; + + external CFDictionaryHashCallBack hash; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFDictionaryRetainCallBack retain, + required CFDictionaryReleaseCallBack release, + required CFDictionaryCopyDescriptionCallBack copyDescription, + required CFDictionaryEqualCallBack equal, + required CFDictionaryHashCallBack hash, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal + ..ref.hash = hash; +} + +typedef CFDictionaryRef = ffi.Pointer<__CFDictionary>; +typedef CFDictionaryReleaseCallBack = + ffi.Pointer>; +typedef CFDictionaryReleaseCallBackFunction = + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFDictionaryReleaseCallBackFunction = + void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef CFDictionaryRetainCallBack = + ffi.Pointer>; +typedef CFDictionaryRetainCallBackFunction = + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ); + +final class CFDictionaryValueCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFDictionaryRetainCallBack retain; + + external CFDictionaryReleaseCallBack release; + + external CFDictionaryCopyDescriptionCallBack copyDescription; + + external CFDictionaryEqualCallBack equal; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFDictionaryRetainCallBack retain, + required CFDictionaryReleaseCallBack release, + required CFDictionaryCopyDescriptionCallBack copyDescription, + required CFDictionaryEqualCallBack equal, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal; +} + +typedef CFErrorDomain = CFStringRef; +typedef CFErrorRef = ffi.Pointer<__CFError>; +typedef CFFileDescriptorCallBack = + ffi.Pointer>; +typedef CFFileDescriptorCallBackFunction = + ffi.Void Function( + CFFileDescriptorRef f, + CFOptionFlags callBackTypes, + ffi.Pointer info, + ); +typedef DartCFFileDescriptorCallBackFunction = + void Function( + CFFileDescriptorRef f, + DartCFOptionFlags callBackTypes, + ffi.Pointer info, + ); + +final class CFFileDescriptorContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFFileDescriptorNativeDescriptor = ffi.Int; +typedef DartCFFileDescriptorNativeDescriptor = int; +typedef CFFileDescriptorRef = ffi.Pointer<__CFFileDescriptor>; + +sealed class CFFileSecurityClearOptions { + static const kCFFileSecurityClearOwner = 1; + static const kCFFileSecurityClearGroup = 2; + static const kCFFileSecurityClearMode = 4; + static const kCFFileSecurityClearOwnerUUID = 8; + static const kCFFileSecurityClearGroupUUID = 16; + static const kCFFileSecurityClearAccessControlList = 32; +} + +typedef CFFileSecurityRef = ffi.Pointer<__CFFileSecurity>; + +final class CFGregorianDate extends ffi.Struct { + @SInt32() + external int year; + + @SInt8() + external int month; + + @SInt8() + external int day; + + @SInt8() + external int hour; + + @SInt8() + external int minute; + + @ffi.Double() + external double second; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int year, + required int month, + required int day, + required int hour, + required int minute, + required double second, + }) => $allocator() + ..ref.year = year + ..ref.month = month + ..ref.day = day + ..ref.hour = hour + ..ref.minute = minute + ..ref.second = second; +} + +sealed class CFGregorianUnitFlags { + static const kCFGregorianUnitsYears = 1; + static const kCFGregorianUnitsMonths = 2; + static const kCFGregorianUnitsDays = 4; + static const kCFGregorianUnitsHours = 8; + static const kCFGregorianUnitsMinutes = 16; + static const kCFGregorianUnitsSeconds = 32; + static const kCFGregorianAllUnits = 16777215; +} + +final class CFGregorianUnits extends ffi.Struct { + @SInt32() + external int years; + + @SInt32() + external int months; + + @SInt32() + external int days; + + @SInt32() + external int hours; + + @SInt32() + external int minutes; + + @ffi.Double() + external double seconds; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int years, + required int months, + required int days, + required int hours, + required int minutes, + required double seconds, + }) => $allocator() + ..ref.years = years + ..ref.months = months + ..ref.days = days + ..ref.hours = hours + ..ref.minutes = minutes + ..ref.seconds = seconds; +} + +typedef CFHTTPAuthenticationRef = ffi.Pointer<_CFHTTPAuthentication>; +typedef CFHTTPMessageRef = ffi.Pointer<__CFHTTPMessage>; +typedef CFHashCode = ffi.UnsignedLong; +typedef DartCFHashCode = int; +typedef CFHostClientCallBack = + ffi.Pointer>; +typedef CFHostClientCallBackFunction = + ffi.Void Function( + CFHostRef theHost, + ffi.UnsignedInt typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFHostClientCallBackFunction = + void Function( + CFHostRef theHost, + CFHostInfoType typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ); + +@ffi.Packed(2) +final class CFHostClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +enum CFHostInfoType { + kCFHostAddresses(0), + kCFHostNames(1), + kCFHostReachability(2); + + final int value; + const CFHostInfoType(this.value); + + static CFHostInfoType fromValue(int value) => switch (value) { + 0 => kCFHostAddresses, + 1 => kCFHostNames, + 2 => kCFHostReachability, + _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), + }; +} + +typedef CFHostRef = ffi.Pointer<__CFHost>; + +sealed class CFISO8601DateFormatOptions { + static const kCFISO8601DateFormatWithYear = 1; + static const kCFISO8601DateFormatWithMonth = 2; + static const kCFISO8601DateFormatWithWeekOfYear = 4; + static const kCFISO8601DateFormatWithDay = 16; + static const kCFISO8601DateFormatWithTime = 32; + static const kCFISO8601DateFormatWithTimeZone = 64; + static const kCFISO8601DateFormatWithSpaceBetweenDateAndTime = 128; + static const kCFISO8601DateFormatWithDashSeparatorInDate = 256; + static const kCFISO8601DateFormatWithColonSeparatorInTime = 512; + static const kCFISO8601DateFormatWithColonSeparatorInTimeZone = 1024; + static const kCFISO8601DateFormatWithFractionalSeconds = 2048; + static const kCFISO8601DateFormatWithFullDate = 275; + static const kCFISO8601DateFormatWithFullTime = 1632; + static const kCFISO8601DateFormatWithInternetDateTime = 1907; +} + +typedef CFIndex = ffi.Long; +typedef DartCFIndex = int; +typedef CFLocaleIdentifier = CFStringRef; +typedef CFLocaleKey = CFStringRef; + +enum CFLocaleLanguageDirection { + kCFLocaleLanguageDirectionUnknown(0), + kCFLocaleLanguageDirectionLeftToRight(1), + kCFLocaleLanguageDirectionRightToLeft(2), + kCFLocaleLanguageDirectionTopToBottom(3), + kCFLocaleLanguageDirectionBottomToTop(4); + + final int value; + const CFLocaleLanguageDirection(this.value); + + static CFLocaleLanguageDirection fromValue(int value) => switch (value) { + 0 => kCFLocaleLanguageDirectionUnknown, + 1 => kCFLocaleLanguageDirectionLeftToRight, + 2 => kCFLocaleLanguageDirectionRightToLeft, + 3 => kCFLocaleLanguageDirectionTopToBottom, + 4 => kCFLocaleLanguageDirectionBottomToTop, + _ => throw ArgumentError( + 'Unknown value for CFLocaleLanguageDirection: $value', + ), + }; +} + +typedef CFLocaleRef = ffi.Pointer<__CFLocale>; +typedef CFMachPortCallBack = + ffi.Pointer>; +typedef CFMachPortCallBackFunction = + ffi.Void Function( + CFMachPortRef port, + ffi.Pointer msg, + CFIndex size, + ffi.Pointer info, + ); +typedef DartCFMachPortCallBackFunction = + void Function( + CFMachPortRef port, + ffi.Pointer msg, + DartCFIndex size, + ffi.Pointer info, + ); + +final class CFMachPortContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFMachPortInvalidationCallBack = + ffi.Pointer>; +typedef CFMachPortInvalidationCallBackFunction = + ffi.Void Function(CFMachPortRef port, ffi.Pointer info); +typedef DartCFMachPortInvalidationCallBackFunction = + void Function(CFMachPortRef port, ffi.Pointer info); +typedef CFMachPortRef = ffi.Pointer<__CFMachPort>; +typedef CFMessagePortCallBack = + ffi.Pointer>; +typedef CFMessagePortCallBackFunction = + CFDataRef Function( + CFMessagePortRef local, + SInt32 msgid, + CFDataRef data, + ffi.Pointer info, + ); +typedef DartCFMessagePortCallBackFunction = + CFDataRef Function( + CFMessagePortRef local, + DartSInt32 msgid, + CFDataRef data, + ffi.Pointer info, + ); + +final class CFMessagePortContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFMessagePortInvalidationCallBack = + ffi.Pointer>; +typedef CFMessagePortInvalidationCallBackFunction = + ffi.Void Function(CFMessagePortRef ms, ffi.Pointer info); +typedef DartCFMessagePortInvalidationCallBackFunction = + void Function(CFMessagePortRef ms, ffi.Pointer info); +typedef CFMessagePortRef = ffi.Pointer<__CFMessagePort>; +typedef CFMutableArrayRef = ffi.Pointer<__CFArray>; +typedef CFMutableAttributedStringRef = ffi.Pointer<__CFAttributedString>; +typedef CFMutableBagRef = ffi.Pointer<__CFBag>; +typedef CFMutableBitVectorRef = ffi.Pointer<__CFBitVector>; +typedef CFMutableCharacterSetRef = ffi.Pointer<__CFCharacterSet>; +typedef CFMutableDataRef = ffi.Pointer<__CFData>; +typedef CFMutableDictionaryRef = ffi.Pointer<__CFDictionary>; +typedef CFMutableSetRef = ffi.Pointer<__CFSet>; +typedef CFMutableStringRef = ffi.Pointer; +typedef CFNetDiagnosticRef = ffi.Pointer<__CFNetDiagnostic>; +typedef CFNetDiagnosticStatus = CFIndex; + +@Deprecated('Deprecated') +enum CFNetDiagnosticStatusValues { + kCFNetDiagnosticNoErr(0), + kCFNetDiagnosticErr(-66560), + kCFNetDiagnosticConnectionUp(-66559), + kCFNetDiagnosticConnectionIndeterminate(-66558), + kCFNetDiagnosticConnectionDown(-66557); + + final int value; + const CFNetDiagnosticStatusValues(this.value); + + static CFNetDiagnosticStatusValues fromValue(int value) => switch (value) { + 0 => kCFNetDiagnosticNoErr, + -66560 => kCFNetDiagnosticErr, + -66559 => kCFNetDiagnosticConnectionUp, + -66558 => kCFNetDiagnosticConnectionIndeterminate, + -66557 => kCFNetDiagnosticConnectionDown, + _ => throw ArgumentError( + 'Unknown value for CFNetDiagnosticStatusValues: $value', + ), + }; +} + +typedef CFNetServiceBrowserClientCallBack = + ffi.Pointer>; +typedef CFNetServiceBrowserClientCallBackFunction = + ffi.Void Function( + CFNetServiceBrowserRef browser, + CFOptionFlags flags, + CFTypeRef domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceBrowserClientCallBackFunction = + void Function( + CFNetServiceBrowserRef browser, + DartCFOptionFlags flags, + CFTypeRef domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ); + +sealed class CFNetServiceBrowserFlags { + static const kCFNetServiceFlagMoreComing = 1; + static const kCFNetServiceFlagIsDomain = 2; + static const kCFNetServiceFlagIsDefault = 4; + static const kCFNetServiceFlagIsRegistrationDomain = 4; + static const kCFNetServiceFlagRemove = 8; +} + +typedef CFNetServiceBrowserRef = ffi.Pointer<__CFNetServiceBrowser>; +typedef CFNetServiceClientCallBack = + ffi.Pointer>; +typedef CFNetServiceClientCallBackFunction = + ffi.Void Function( + CFNetServiceRef theService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceClientCallBackFunction = + void Function( + CFNetServiceRef theService, + ffi.Pointer error, + ffi.Pointer info, + ); + +@ffi.Packed(2) +final class CFNetServiceClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFNetServiceMonitorClientCallBack = + ffi.Pointer>; +typedef CFNetServiceMonitorClientCallBackFunction = + ffi.Void Function( + CFNetServiceMonitorRef theMonitor, + CFNetServiceRef theService, + ffi.UnsignedInt typeInfo, + CFDataRef rdata, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceMonitorClientCallBackFunction = + void Function( + CFNetServiceMonitorRef theMonitor, + CFNetServiceRef theService, + CFNetServiceMonitorType typeInfo, + CFDataRef rdata, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef CFNetServiceMonitorRef = ffi.Pointer<__CFNetServiceMonitor>; + +enum CFNetServiceMonitorType { + kCFNetServiceMonitorTXT(1); + + final int value; + const CFNetServiceMonitorType(this.value); + + static CFNetServiceMonitorType fromValue(int value) => switch (value) { + 1 => kCFNetServiceMonitorTXT, + _ => throw ArgumentError( + 'Unknown value for CFNetServiceMonitorType: $value', + ), + }; +} + +typedef CFNetServiceRef = ffi.Pointer<__CFNetService>; + +sealed class CFNetServiceRegisterFlags { + static const kCFNetServiceFlagNoAutoRename = 1; +} + +enum CFNetServicesError { + kCFNetServicesErrorUnknown(-72000), + kCFNetServicesErrorCollision(-72001), + kCFNetServicesErrorNotFound(-72002), + kCFNetServicesErrorInProgress(-72003), + kCFNetServicesErrorBadArgument(-72004), + kCFNetServicesErrorCancel(-72005), + kCFNetServicesErrorInvalid(-72006), + kCFNetServicesErrorTimeout(-72007), + kCFNetServicesErrorMissingRequiredConfiguration(-72008); + + final int value; + const CFNetServicesError(this.value); + + static CFNetServicesError fromValue(int value) => switch (value) { + -72000 => kCFNetServicesErrorUnknown, + -72001 => kCFNetServicesErrorCollision, + -72002 => kCFNetServicesErrorNotFound, + -72003 => kCFNetServicesErrorInProgress, + -72004 => kCFNetServicesErrorBadArgument, + -72005 => kCFNetServicesErrorCancel, + -72006 => kCFNetServicesErrorInvalid, + -72007 => kCFNetServicesErrorTimeout, + -72008 => kCFNetServicesErrorMissingRequiredConfiguration, + _ => throw ArgumentError('Unknown value for CFNetServicesError: $value'), + }; +} + +enum CFNetworkErrors { + kCFHostErrorHostNotFound(1), + kCFHostErrorUnknown(2), + kCFSOCKSErrorUnknownClientVersion(100), + kCFSOCKSErrorUnsupportedServerVersion(101), + kCFSOCKS4ErrorRequestFailed(110), + kCFSOCKS4ErrorIdentdFailed(111), + kCFSOCKS4ErrorIdConflict(112), + kCFSOCKS4ErrorUnknownStatusCode(113), + kCFSOCKS5ErrorBadState(120), + kCFSOCKS5ErrorBadResponseAddr(121), + kCFSOCKS5ErrorBadCredentials(122), + kCFSOCKS5ErrorUnsupportedNegotiationMethod(123), + kCFSOCKS5ErrorNoAcceptableMethod(124), + kCFFTPErrorUnexpectedStatusCode(200), + kCFErrorHTTPAuthenticationTypeUnsupported(300), + kCFErrorHTTPBadCredentials(301), + kCFErrorHTTPConnectionLost(302), + kCFErrorHTTPParseFailure(303), + kCFErrorHTTPRedirectionLoopDetected(304), + kCFErrorHTTPBadURL(305), + kCFErrorHTTPProxyConnectionFailure(306), + kCFErrorHTTPBadProxyCredentials(307), + kCFErrorPACFileError(308), + kCFErrorPACFileAuth(309), + kCFErrorHTTPSProxyConnectionFailure(310), + kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod(311), + kCFURLErrorBackgroundSessionInUseByAnotherProcess(-996), + kCFURLErrorBackgroundSessionWasDisconnected(-997), + kCFURLErrorUnknown(-998), + kCFURLErrorCancelled(-999), + kCFURLErrorBadURL(-1000), + kCFURLErrorTimedOut(-1001), + kCFURLErrorUnsupportedURL(-1002), + kCFURLErrorCannotFindHost(-1003), + kCFURLErrorCannotConnectToHost(-1004), + kCFURLErrorNetworkConnectionLost(-1005), + kCFURLErrorDNSLookupFailed(-1006), + kCFURLErrorHTTPTooManyRedirects(-1007), + kCFURLErrorResourceUnavailable(-1008), + kCFURLErrorNotConnectedToInternet(-1009), + kCFURLErrorRedirectToNonExistentLocation(-1010), + kCFURLErrorBadServerResponse(-1011), + kCFURLErrorUserCancelledAuthentication(-1012), + kCFURLErrorUserAuthenticationRequired(-1013), + kCFURLErrorZeroByteResource(-1014), + kCFURLErrorCannotDecodeRawData(-1015), + kCFURLErrorCannotDecodeContentData(-1016), + kCFURLErrorCannotParseResponse(-1017), + kCFURLErrorInternationalRoamingOff(-1018), + kCFURLErrorCallIsActive(-1019), + kCFURLErrorDataNotAllowed(-1020), + kCFURLErrorRequestBodyStreamExhausted(-1021), + kCFURLErrorAppTransportSecurityRequiresSecureConnection(-1022), + kCFURLErrorFileDoesNotExist(-1100), + kCFURLErrorFileIsDirectory(-1101), + kCFURLErrorNoPermissionsToReadFile(-1102), + kCFURLErrorDataLengthExceedsMaximum(-1103), + kCFURLErrorFileOutsideSafeArea(-1104), + kCFURLErrorSecureConnectionFailed(-1200), + kCFURLErrorServerCertificateHasBadDate(-1201), + kCFURLErrorServerCertificateUntrusted(-1202), + kCFURLErrorServerCertificateHasUnknownRoot(-1203), + kCFURLErrorServerCertificateNotYetValid(-1204), + kCFURLErrorClientCertificateRejected(-1205), + kCFURLErrorClientCertificateRequired(-1206), + kCFURLErrorCannotLoadFromNetwork(-2000), + kCFURLErrorCannotCreateFile(-3000), + kCFURLErrorCannotOpenFile(-3001), + kCFURLErrorCannotCloseFile(-3002), + kCFURLErrorCannotWriteToFile(-3003), + kCFURLErrorCannotRemoveFile(-3004), + kCFURLErrorCannotMoveFile(-3005), + kCFURLErrorDownloadDecodingFailedMidStream(-3006), + kCFURLErrorDownloadDecodingFailedToComplete(-3007), + kCFHTTPCookieCannotParseCookieFile(-4000), + kCFNetServiceErrorUnknown(-72000), + kCFNetServiceErrorCollision(-72001), + kCFNetServiceErrorNotFound(-72002), + kCFNetServiceErrorInProgress(-72003), + kCFNetServiceErrorBadArgument(-72004), + kCFNetServiceErrorCancel(-72005), + kCFNetServiceErrorInvalid(-72006), + kCFNetServiceErrorTimeout(-72007), + kCFNetServiceErrorDNSServiceFailure(-73000); + + final int value; + const CFNetworkErrors(this.value); + + static CFNetworkErrors fromValue(int value) => switch (value) { + 1 => kCFHostErrorHostNotFound, + 2 => kCFHostErrorUnknown, + 100 => kCFSOCKSErrorUnknownClientVersion, + 101 => kCFSOCKSErrorUnsupportedServerVersion, + 110 => kCFSOCKS4ErrorRequestFailed, + 111 => kCFSOCKS4ErrorIdentdFailed, + 112 => kCFSOCKS4ErrorIdConflict, + 113 => kCFSOCKS4ErrorUnknownStatusCode, + 120 => kCFSOCKS5ErrorBadState, + 121 => kCFSOCKS5ErrorBadResponseAddr, + 122 => kCFSOCKS5ErrorBadCredentials, + 123 => kCFSOCKS5ErrorUnsupportedNegotiationMethod, + 124 => kCFSOCKS5ErrorNoAcceptableMethod, + 200 => kCFFTPErrorUnexpectedStatusCode, + 300 => kCFErrorHTTPAuthenticationTypeUnsupported, + 301 => kCFErrorHTTPBadCredentials, + 302 => kCFErrorHTTPConnectionLost, + 303 => kCFErrorHTTPParseFailure, + 304 => kCFErrorHTTPRedirectionLoopDetected, + 305 => kCFErrorHTTPBadURL, + 306 => kCFErrorHTTPProxyConnectionFailure, + 307 => kCFErrorHTTPBadProxyCredentials, + 308 => kCFErrorPACFileError, + 309 => kCFErrorPACFileAuth, + 310 => kCFErrorHTTPSProxyConnectionFailure, + 311 => kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod, + -996 => kCFURLErrorBackgroundSessionInUseByAnotherProcess, + -997 => kCFURLErrorBackgroundSessionWasDisconnected, + -998 => kCFURLErrorUnknown, + -999 => kCFURLErrorCancelled, + -1000 => kCFURLErrorBadURL, + -1001 => kCFURLErrorTimedOut, + -1002 => kCFURLErrorUnsupportedURL, + -1003 => kCFURLErrorCannotFindHost, + -1004 => kCFURLErrorCannotConnectToHost, + -1005 => kCFURLErrorNetworkConnectionLost, + -1006 => kCFURLErrorDNSLookupFailed, + -1007 => kCFURLErrorHTTPTooManyRedirects, + -1008 => kCFURLErrorResourceUnavailable, + -1009 => kCFURLErrorNotConnectedToInternet, + -1010 => kCFURLErrorRedirectToNonExistentLocation, + -1011 => kCFURLErrorBadServerResponse, + -1012 => kCFURLErrorUserCancelledAuthentication, + -1013 => kCFURLErrorUserAuthenticationRequired, + -1014 => kCFURLErrorZeroByteResource, + -1015 => kCFURLErrorCannotDecodeRawData, + -1016 => kCFURLErrorCannotDecodeContentData, + -1017 => kCFURLErrorCannotParseResponse, + -1018 => kCFURLErrorInternationalRoamingOff, + -1019 => kCFURLErrorCallIsActive, + -1020 => kCFURLErrorDataNotAllowed, + -1021 => kCFURLErrorRequestBodyStreamExhausted, + -1022 => kCFURLErrorAppTransportSecurityRequiresSecureConnection, + -1100 => kCFURLErrorFileDoesNotExist, + -1101 => kCFURLErrorFileIsDirectory, + -1102 => kCFURLErrorNoPermissionsToReadFile, + -1103 => kCFURLErrorDataLengthExceedsMaximum, + -1104 => kCFURLErrorFileOutsideSafeArea, + -1200 => kCFURLErrorSecureConnectionFailed, + -1201 => kCFURLErrorServerCertificateHasBadDate, + -1202 => kCFURLErrorServerCertificateUntrusted, + -1203 => kCFURLErrorServerCertificateHasUnknownRoot, + -1204 => kCFURLErrorServerCertificateNotYetValid, + -1205 => kCFURLErrorClientCertificateRejected, + -1206 => kCFURLErrorClientCertificateRequired, + -2000 => kCFURLErrorCannotLoadFromNetwork, + -3000 => kCFURLErrorCannotCreateFile, + -3001 => kCFURLErrorCannotOpenFile, + -3002 => kCFURLErrorCannotCloseFile, + -3003 => kCFURLErrorCannotWriteToFile, + -3004 => kCFURLErrorCannotRemoveFile, + -3005 => kCFURLErrorCannotMoveFile, + -3006 => kCFURLErrorDownloadDecodingFailedMidStream, + -3007 => kCFURLErrorDownloadDecodingFailedToComplete, + -4000 => kCFHTTPCookieCannotParseCookieFile, + -72000 => kCFNetServiceErrorUnknown, + -72001 => kCFNetServiceErrorCollision, + -72002 => kCFNetServiceErrorNotFound, + -72003 => kCFNetServiceErrorInProgress, + -72004 => kCFNetServiceErrorBadArgument, + -72005 => kCFNetServiceErrorCancel, + -72006 => kCFNetServiceErrorInvalid, + -72007 => kCFNetServiceErrorTimeout, + -73000 => kCFNetServiceErrorDNSServiceFailure, + _ => throw ArgumentError('Unknown value for CFNetworkErrors: $value'), + }; +} + +typedef CFNotificationCallback = + ffi.Pointer>; +typedef CFNotificationCallbackFunction = + ffi.Void Function( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationName name, + ffi.Pointer object, + CFDictionaryRef userInfo, + ); +typedef DartCFNotificationCallbackFunction = + void Function( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationName name, + ffi.Pointer object, + CFDictionaryRef userInfo, + ); +typedef CFNotificationCenterRef = ffi.Pointer<__CFNotificationCenter>; +typedef CFNotificationName = CFStringRef; + +enum CFNotificationSuspensionBehavior { + CFNotificationSuspensionBehaviorDrop(1), + CFNotificationSuspensionBehaviorCoalesce(2), + CFNotificationSuspensionBehaviorHold(3), + CFNotificationSuspensionBehaviorDeliverImmediately(4); + + final int value; + const CFNotificationSuspensionBehavior(this.value); + + static CFNotificationSuspensionBehavior fromValue(int value) => + switch (value) { + 1 => CFNotificationSuspensionBehaviorDrop, + 2 => CFNotificationSuspensionBehaviorCoalesce, + 3 => CFNotificationSuspensionBehaviorHold, + 4 => CFNotificationSuspensionBehaviorDeliverImmediately, + _ => throw ArgumentError( + 'Unknown value for CFNotificationSuspensionBehavior: $value', + ), + }; +} + +typedef CFNullRef = ffi.Pointer<__CFNull>; +typedef CFNumberFormatterKey = CFStringRef; + +sealed class CFNumberFormatterOptionFlags { + static const kCFNumberFormatterParseIntegersOnly = 1; +} + +enum CFNumberFormatterPadPosition { + kCFNumberFormatterPadBeforePrefix(0), + kCFNumberFormatterPadAfterPrefix(1), + kCFNumberFormatterPadBeforeSuffix(2), + kCFNumberFormatterPadAfterSuffix(3); + + final int value; + const CFNumberFormatterPadPosition(this.value); + + static CFNumberFormatterPadPosition fromValue(int value) => switch (value) { + 0 => kCFNumberFormatterPadBeforePrefix, + 1 => kCFNumberFormatterPadAfterPrefix, + 2 => kCFNumberFormatterPadBeforeSuffix, + 3 => kCFNumberFormatterPadAfterSuffix, + _ => throw ArgumentError( + 'Unknown value for CFNumberFormatterPadPosition: $value', + ), + }; +} + +typedef CFNumberFormatterRef = ffi.Pointer<__CFNumberFormatter>; + +enum CFNumberFormatterRoundingMode { + kCFNumberFormatterRoundCeiling(0), + kCFNumberFormatterRoundFloor(1), + kCFNumberFormatterRoundDown(2), + kCFNumberFormatterRoundUp(3), + kCFNumberFormatterRoundHalfEven(4), + kCFNumberFormatterRoundHalfDown(5), + kCFNumberFormatterRoundHalfUp(6); + + final int value; + const CFNumberFormatterRoundingMode(this.value); + + static CFNumberFormatterRoundingMode fromValue(int value) => switch (value) { + 0 => kCFNumberFormatterRoundCeiling, + 1 => kCFNumberFormatterRoundFloor, + 2 => kCFNumberFormatterRoundDown, + 3 => kCFNumberFormatterRoundUp, + 4 => kCFNumberFormatterRoundHalfEven, + 5 => kCFNumberFormatterRoundHalfDown, + 6 => kCFNumberFormatterRoundHalfUp, + _ => throw ArgumentError( + 'Unknown value for CFNumberFormatterRoundingMode: $value', + ), + }; +} + +enum CFNumberFormatterStyle { + kCFNumberFormatterNoStyle(0), + kCFNumberFormatterDecimalStyle(1), + kCFNumberFormatterCurrencyStyle(2), + kCFNumberFormatterPercentStyle(3), + kCFNumberFormatterScientificStyle(4), + kCFNumberFormatterSpellOutStyle(5), + kCFNumberFormatterOrdinalStyle(6), + kCFNumberFormatterCurrencyISOCodeStyle(8), + kCFNumberFormatterCurrencyPluralStyle(9), + kCFNumberFormatterCurrencyAccountingStyle(10); + + final int value; + const CFNumberFormatterStyle(this.value); + + static CFNumberFormatterStyle fromValue(int value) => switch (value) { + 0 => kCFNumberFormatterNoStyle, + 1 => kCFNumberFormatterDecimalStyle, + 2 => kCFNumberFormatterCurrencyStyle, + 3 => kCFNumberFormatterPercentStyle, + 4 => kCFNumberFormatterScientificStyle, + 5 => kCFNumberFormatterSpellOutStyle, + 6 => kCFNumberFormatterOrdinalStyle, + 8 => kCFNumberFormatterCurrencyISOCodeStyle, + 9 => kCFNumberFormatterCurrencyPluralStyle, + 10 => kCFNumberFormatterCurrencyAccountingStyle, + _ => throw ArgumentError( + 'Unknown value for CFNumberFormatterStyle: $value', + ), + }; +} + +typedef CFNumberRef = ffi.Pointer<__CFNumber>; + +enum CFNumberType { + kCFNumberSInt8Type(1), + kCFNumberSInt16Type(2), + kCFNumberSInt32Type(3), + kCFNumberSInt64Type(4), + kCFNumberFloat32Type(5), + kCFNumberFloat64Type(6), + kCFNumberCharType(7), + kCFNumberShortType(8), + kCFNumberIntType(9), + kCFNumberLongType(10), + kCFNumberLongLongType(11), + kCFNumberFloatType(12), + kCFNumberDoubleType(13), + kCFNumberCFIndexType(14), + kCFNumberNSIntegerType(15), + kCFNumberCGFloatType(16); + + static const kCFNumberMaxType = kCFNumberCGFloatType; + + final int value; + const CFNumberType(this.value); + + static CFNumberType fromValue(int value) => switch (value) { + 1 => kCFNumberSInt8Type, + 2 => kCFNumberSInt16Type, + 3 => kCFNumberSInt32Type, + 4 => kCFNumberSInt64Type, + 5 => kCFNumberFloat32Type, + 6 => kCFNumberFloat64Type, + 7 => kCFNumberCharType, + 8 => kCFNumberShortType, + 9 => kCFNumberIntType, + 10 => kCFNumberLongType, + 11 => kCFNumberLongLongType, + 12 => kCFNumberFloatType, + 13 => kCFNumberDoubleType, + 14 => kCFNumberCFIndexType, + 15 => kCFNumberNSIntegerType, + 16 => kCFNumberCGFloatType, + _ => throw ArgumentError('Unknown value for CFNumberType: $value'), + }; + + @override + String toString() { + if (this == kCFNumberCGFloatType) + return "CFNumberType.kCFNumberCGFloatType, CFNumberType.kCFNumberMaxType"; + return super.toString(); + } +} + +typedef CFOptionFlags = ffi.UnsignedLong; +typedef DartCFOptionFlags = int; +typedef CFPlugInDynamicRegisterFunction = + ffi.Pointer>; +typedef CFPlugInDynamicRegisterFunctionFunction = + ffi.Void Function(CFPlugInRef plugIn); +typedef DartCFPlugInDynamicRegisterFunctionFunction = + void Function(CFPlugInRef plugIn); +typedef CFPlugInFactoryFunction = + ffi.Pointer>; +typedef CFPlugInFactoryFunctionFunction = + ffi.Pointer Function( + CFAllocatorRef allocator, + CFUUIDRef typeUUID, + ); +typedef CFPlugInInstanceDeallocateInstanceDataFunction = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = + ffi.Void Function(ffi.Pointer instanceData); +typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = + void Function(ffi.Pointer instanceData); +typedef CFPlugInInstanceGetInterfaceFunction = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CFPlugInInstanceGetInterfaceFunctionFunction = + Boolean Function( + CFPlugInInstanceRef instance, + CFStringRef interfaceName, + ffi.Pointer> ftbl, + ); +typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = + DartBoolean Function( + CFPlugInInstanceRef instance, + CFStringRef interfaceName, + ffi.Pointer> ftbl, + ); +typedef CFPlugInInstanceRef = ffi.Pointer<__CFPlugInInstance>; +typedef CFPlugInRef = ffi.Pointer<__CFBundle>; +typedef CFPlugInUnloadFunction = + ffi.Pointer>; +typedef CFPlugInUnloadFunctionFunction = ffi.Void Function(CFPlugInRef plugIn); +typedef DartCFPlugInUnloadFunctionFunction = void Function(CFPlugInRef plugIn); + +enum CFPropertyListFormat { + kCFPropertyListOpenStepFormat(1), + kCFPropertyListXMLFormat_v1_0(100), + kCFPropertyListBinaryFormat_v1_0(200); + + final int value; + const CFPropertyListFormat(this.value); + + static CFPropertyListFormat fromValue(int value) => switch (value) { + 1 => kCFPropertyListOpenStepFormat, + 100 => kCFPropertyListXMLFormat_v1_0, + 200 => kCFPropertyListBinaryFormat_v1_0, + _ => throw ArgumentError('Unknown value for CFPropertyListFormat: $value'), + }; +} + +sealed class CFPropertyListMutabilityOptions { + static const kCFPropertyListImmutable = 0; + static const kCFPropertyListMutableContainers = 1; + static const kCFPropertyListMutableContainersAndLeaves = 2; +} + +typedef CFPropertyListRef = CFTypeRef; +typedef CFProxyAutoConfigurationResultCallback = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CFProxyAutoConfigurationResultCallbackFunction = + ffi.Void Function( + ffi.Pointer client, + CFArrayRef proxyList, + CFErrorRef error, + ); +typedef DartCFProxyAutoConfigurationResultCallbackFunction = + void Function( + ffi.Pointer client, + CFArrayRef proxyList, + CFErrorRef error, + ); + +final class CFRange extends ffi.Struct { + @CFIndex() + external int location; + + @CFIndex() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int location, + required int length, + }) => $allocator() + ..ref.location = location + ..ref.length = length; +} + +typedef CFReadStreamClientCallBack = + ffi.Pointer>; +typedef CFReadStreamClientCallBackFunction = + ffi.Void Function( + CFReadStreamRef stream, + CFOptionFlags type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFReadStreamClientCallBackFunction = + void Function( + CFReadStreamRef stream, + DartCFOptionFlags type, + ffi.Pointer clientCallBackInfo, + ); +typedef CFReadStreamRef = ffi.Pointer<__CFReadStream>; + +sealed class CFRunLoopActivity { + static const kCFRunLoopEntry = 1; + static const kCFRunLoopBeforeTimers = 2; + static const kCFRunLoopBeforeSources = 4; + static const kCFRunLoopBeforeWaiting = 32; + static const kCFRunLoopAfterWaiting = 64; + static const kCFRunLoopExit = 128; + static const kCFRunLoopAllActivities = 268435455; +} + +typedef CFRunLoopMode = CFStringRef; +typedef CFRunLoopObserverCallBack = + ffi.Pointer>; +typedef CFRunLoopObserverCallBackFunction = + ffi.Void Function( + CFRunLoopObserverRef observer, + CFOptionFlags activity, + ffi.Pointer info, + ); +typedef DartCFRunLoopObserverCallBackFunction = + void Function( + CFRunLoopObserverRef observer, + DartCFOptionFlags activity, + ffi.Pointer info, + ); + +final class CFRunLoopObserverContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFRunLoopObserverRef = ffi.Pointer<__CFRunLoopObserver>; +typedef CFRunLoopRef = ffi.Pointer; + +enum CFRunLoopRunResult { + kCFRunLoopRunFinished(1), + kCFRunLoopRunStopped(2), + kCFRunLoopRunTimedOut(3), + kCFRunLoopRunHandledSource(4); + + final int value; + const CFRunLoopRunResult(this.value); + + static CFRunLoopRunResult fromValue(int value) => switch (value) { + 1 => kCFRunLoopRunFinished, + 2 => kCFRunLoopRunStopped, + 3 => kCFRunLoopRunTimedOut, + 4 => kCFRunLoopRunHandledSource, + _ => throw ArgumentError('Unknown value for CFRunLoopRunResult: $value'), + }; +} + +final class CFRunLoopSourceContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + external ffi.Pointer< + ffi.NativeFunction< + Boolean Function(ffi.Pointer info1, ffi.Pointer info2) + > + > + equal; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + hash; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + CFRunLoopRef rl, + CFRunLoopMode mode, + ) + > + > + schedule; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + CFRunLoopRef rl, + CFRunLoopMode mode, + ) + > + > + cancel; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + perform; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + required ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ffi.Pointer info1, + ffi.Pointer info2, + ) + > + > + equal, + required ffi.Pointer< + ffi.NativeFunction info)> + > + hash, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + CFRunLoopRef rl, + CFRunLoopMode mode, + ) + > + > + schedule, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + CFRunLoopRef rl, + CFRunLoopMode mode, + ) + > + > + cancel, + required ffi.Pointer< + ffi.NativeFunction info)> + > + perform, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal + ..ref.hash = hash + ..ref.schedule = schedule + ..ref.cancel = cancel + ..ref.perform = perform; +} + +final class CFRunLoopSourceContext1 extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + external ffi.Pointer< + ffi.NativeFunction< + Boolean Function(ffi.Pointer info1, ffi.Pointer info2) + > + > + equal; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + hash; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + getPort; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer msg, + CFIndex size, + CFAllocatorRef allocator, + ffi.Pointer info, + ) + > + > + perform; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + required ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ffi.Pointer info1, + ffi.Pointer info2, + ) + > + > + equal, + required ffi.Pointer< + ffi.NativeFunction info)> + > + hash, + required ffi.Pointer< + ffi.NativeFunction info)> + > + getPort, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer msg, + CFIndex size, + CFAllocatorRef allocator, + ffi.Pointer info, + ) + > + > + perform, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal + ..ref.hash = hash + ..ref.getPort = getPort + ..ref.perform = perform; +} + +typedef CFRunLoopSourceRef = ffi.Pointer<__CFRunLoopSource>; +typedef CFRunLoopTimerCallBack = + ffi.Pointer>; +typedef CFRunLoopTimerCallBackFunction = + ffi.Void Function(CFRunLoopTimerRef timer, ffi.Pointer info); +typedef DartCFRunLoopTimerCallBackFunction = + void Function(CFRunLoopTimerRef timer, ffi.Pointer info); + +final class CFRunLoopTimerContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFRunLoopTimerRef = ffi.Pointer<__CFRunLoopTimer>; +typedef CFSetApplierFunction = + ffi.Pointer>; +typedef CFSetApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFSetApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); + +final class CFSetCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFSetRetainCallBack retain; + + external CFSetReleaseCallBack release; + + external CFSetCopyDescriptionCallBack copyDescription; + + external CFSetEqualCallBack equal; + + external CFSetHashCallBack hash; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFSetRetainCallBack retain, + required CFSetReleaseCallBack release, + required CFSetCopyDescriptionCallBack copyDescription, + required CFSetEqualCallBack equal, + required CFSetHashCallBack hash, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal + ..ref.hash = hash; +} + +typedef CFSetCopyDescriptionCallBack = + ffi.Pointer>; +typedef CFSetCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer value); +typedef CFSetEqualCallBack = + ffi.Pointer>; +typedef CFSetEqualCallBackFunction = + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFSetEqualCallBackFunction = + DartBoolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef CFSetHashCallBack = + ffi.Pointer>; +typedef CFSetHashCallBackFunction = + CFHashCode Function(ffi.Pointer value); +typedef DartCFSetHashCallBackFunction = + DartCFHashCode Function(ffi.Pointer value); +typedef CFSetRef = ffi.Pointer<__CFSet>; +typedef CFSetReleaseCallBack = + ffi.Pointer>; +typedef CFSetReleaseCallBackFunction = + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef DartCFSetReleaseCallBackFunction = + void Function(CFAllocatorRef allocator, ffi.Pointer value); +typedef CFSetRetainCallBack = + ffi.Pointer>; +typedef CFSetRetainCallBackFunction = + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ); +typedef CFSocketCallBack = + ffi.Pointer>; +typedef CFSocketCallBackFunction = + ffi.Void Function( + CFSocketRef s, + CFOptionFlags type, + CFDataRef address, + ffi.Pointer data, + ffi.Pointer info, + ); +typedef DartCFSocketCallBackFunction = + void Function( + CFSocketRef s, + DartCFOptionFlags type, + CFDataRef address, + ffi.Pointer data, + ffi.Pointer info, + ); + +sealed class CFSocketCallBackType { + static const kCFSocketNoCallBack = 0; + static const kCFSocketReadCallBack = 1; + static const kCFSocketAcceptCallBack = 2; + static const kCFSocketDataCallBack = 3; + static const kCFSocketConnectCallBack = 4; + static const kCFSocketWriteCallBack = 8; +} + +final class CFSocketContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +enum CFSocketError { + kCFSocketSuccess(0), + kCFSocketError(-1), + kCFSocketTimeout(-2); + + final int value; + const CFSocketError(this.value); + + static CFSocketError fromValue(int value) => switch (value) { + 0 => kCFSocketSuccess, + -1 => kCFSocketError, + -2 => kCFSocketTimeout, + _ => throw ArgumentError('Unknown value for CFSocketError: $value'), + }; +} + +typedef CFSocketNativeHandle = ffi.Int; +typedef DartCFSocketNativeHandle = int; +typedef CFSocketRef = ffi.Pointer<__CFSocket>; + +final class CFSocketSignature extends ffi.Struct { + @SInt32() + external int protocolFamily; + + @SInt32() + external int socketType; + + @SInt32() + external int protocol; + + external CFDataRef address; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protocolFamily, + required int socketType, + required int protocol, + required CFDataRef address, + }) => $allocator() + ..ref.protocolFamily = protocolFamily + ..ref.socketType = socketType + ..ref.protocol = protocol + ..ref.address = address; +} + +final class CFStreamClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +final class CFStreamError extends ffi.Struct { + @CFIndex() + external int domain; + + @SInt32() + external int error; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int domain, + required int error, + }) => $allocator() + ..ref.domain = domain + ..ref.error = error; +} + +enum CFStreamErrorDomain { + kCFStreamErrorDomainCustom(-1), + kCFStreamErrorDomainPOSIX(1), + kCFStreamErrorDomainMacOSStatus(2); + + final int value; + const CFStreamErrorDomain(this.value); + + static CFStreamErrorDomain fromValue(int value) => switch (value) { + -1 => kCFStreamErrorDomainCustom, + 1 => kCFStreamErrorDomainPOSIX, + 2 => kCFStreamErrorDomainMacOSStatus, + _ => throw ArgumentError('Unknown value for CFStreamErrorDomain: $value'), + }; +} + +enum CFStreamErrorHTTP { + kCFStreamErrorHTTPParseFailure(-1), + kCFStreamErrorHTTPRedirectionLoop(-2), + kCFStreamErrorHTTPBadURL(-3); + + final int value; + const CFStreamErrorHTTP(this.value); + + static CFStreamErrorHTTP fromValue(int value) => switch (value) { + -1 => kCFStreamErrorHTTPParseFailure, + -2 => kCFStreamErrorHTTPRedirectionLoop, + -3 => kCFStreamErrorHTTPBadURL, + _ => throw ArgumentError('Unknown value for CFStreamErrorHTTP: $value'), + }; +} + +enum CFStreamErrorHTTPAuthentication { + kCFStreamErrorHTTPAuthenticationTypeUnsupported(-1000), + kCFStreamErrorHTTPAuthenticationBadUserName(-1001), + kCFStreamErrorHTTPAuthenticationBadPassword(-1002); + + final int value; + const CFStreamErrorHTTPAuthentication(this.value); + + static CFStreamErrorHTTPAuthentication fromValue(int value) => + switch (value) { + -1000 => kCFStreamErrorHTTPAuthenticationTypeUnsupported, + -1001 => kCFStreamErrorHTTPAuthenticationBadUserName, + -1002 => kCFStreamErrorHTTPAuthenticationBadPassword, + _ => throw ArgumentError( + 'Unknown value for CFStreamErrorHTTPAuthentication: $value', + ), + }; +} + +sealed class CFStreamEventType { + static const kCFStreamEventNone = 0; + static const kCFStreamEventOpenCompleted = 1; + static const kCFStreamEventHasBytesAvailable = 2; + static const kCFStreamEventCanAcceptBytes = 4; + static const kCFStreamEventErrorOccurred = 8; + static const kCFStreamEventEndEncountered = 16; +} + +typedef CFStreamPropertyKey = CFStringRef; + +enum CFStreamStatus { + kCFStreamStatusNotOpen(0), + kCFStreamStatusOpening(1), + kCFStreamStatusOpen(2), + kCFStreamStatusReading(3), + kCFStreamStatusWriting(4), + kCFStreamStatusAtEnd(5), + kCFStreamStatusClosed(6), + kCFStreamStatusError(7); + + final int value; + const CFStreamStatus(this.value); + + static CFStreamStatus fromValue(int value) => switch (value) { + 0 => kCFStreamStatusNotOpen, + 1 => kCFStreamStatusOpening, + 2 => kCFStreamStatusOpen, + 3 => kCFStreamStatusReading, + 4 => kCFStreamStatusWriting, + 5 => kCFStreamStatusAtEnd, + 6 => kCFStreamStatusClosed, + 7 => kCFStreamStatusError, + _ => throw ArgumentError('Unknown value for CFStreamStatus: $value'), + }; +} + +enum CFStringBuiltInEncodings { + kCFStringEncodingMacRoman(0), + kCFStringEncodingWindowsLatin1(1280), + kCFStringEncodingISOLatin1(513), + kCFStringEncodingNextStepLatin(2817), + kCFStringEncodingASCII(1536), + kCFStringEncodingUnicode(256), + kCFStringEncodingUTF8(134217984), + kCFStringEncodingNonLossyASCII(3071), + kCFStringEncodingUTF16BE(268435712), + kCFStringEncodingUTF16LE(335544576), + kCFStringEncodingUTF32(201326848), + kCFStringEncodingUTF32BE(402653440), + kCFStringEncodingUTF32LE(469762304); + + static const kCFStringEncodingUTF16 = kCFStringEncodingUnicode; + + final int value; + const CFStringBuiltInEncodings(this.value); + + static CFStringBuiltInEncodings fromValue(int value) => switch (value) { + 0 => kCFStringEncodingMacRoman, + 1280 => kCFStringEncodingWindowsLatin1, + 513 => kCFStringEncodingISOLatin1, + 2817 => kCFStringEncodingNextStepLatin, + 1536 => kCFStringEncodingASCII, + 256 => kCFStringEncodingUnicode, + 134217984 => kCFStringEncodingUTF8, + 3071 => kCFStringEncodingNonLossyASCII, + 268435712 => kCFStringEncodingUTF16BE, + 335544576 => kCFStringEncodingUTF16LE, + 201326848 => kCFStringEncodingUTF32, + 402653440 => kCFStringEncodingUTF32BE, + 469762304 => kCFStringEncodingUTF32LE, + _ => throw ArgumentError( + 'Unknown value for CFStringBuiltInEncodings: $value', + ), + }; + + @override + String toString() { + if (this == kCFStringEncodingUnicode) + return "CFStringBuiltInEncodings.kCFStringEncodingUnicode, CFStringBuiltInEncodings.kCFStringEncodingUTF16"; + return super.toString(); + } +} + +sealed class CFStringCompareFlags { + static const kCFCompareCaseInsensitive = 1; + static const kCFCompareBackwards = 4; + static const kCFCompareAnchored = 8; + static const kCFCompareNonliteral = 16; + static const kCFCompareLocalized = 32; + static const kCFCompareNumerically = 64; + static const kCFCompareDiacriticInsensitive = 128; + static const kCFCompareWidthInsensitive = 256; + static const kCFCompareForcedOrdering = 512; +} + +typedef CFStringEncoding = UInt32; + +enum CFStringEncodings { + kCFStringEncodingMacJapanese(1), + kCFStringEncodingMacChineseTrad(2), + kCFStringEncodingMacKorean(3), + kCFStringEncodingMacArabic(4), + kCFStringEncodingMacHebrew(5), + kCFStringEncodingMacGreek(6), + kCFStringEncodingMacCyrillic(7), + kCFStringEncodingMacDevanagari(9), + kCFStringEncodingMacGurmukhi(10), + kCFStringEncodingMacGujarati(11), + kCFStringEncodingMacOriya(12), + kCFStringEncodingMacBengali(13), + kCFStringEncodingMacTamil(14), + kCFStringEncodingMacTelugu(15), + kCFStringEncodingMacKannada(16), + kCFStringEncodingMacMalayalam(17), + kCFStringEncodingMacSinhalese(18), + kCFStringEncodingMacBurmese(19), + kCFStringEncodingMacKhmer(20), + kCFStringEncodingMacThai(21), + kCFStringEncodingMacLaotian(22), + kCFStringEncodingMacGeorgian(23), + kCFStringEncodingMacArmenian(24), + kCFStringEncodingMacChineseSimp(25), + kCFStringEncodingMacTibetan(26), + kCFStringEncodingMacMongolian(27), + kCFStringEncodingMacEthiopic(28), + kCFStringEncodingMacCentralEurRoman(29), + kCFStringEncodingMacVietnamese(30), + kCFStringEncodingMacExtArabic(31), + kCFStringEncodingMacSymbol(33), + kCFStringEncodingMacDingbats(34), + kCFStringEncodingMacTurkish(35), + kCFStringEncodingMacCroatian(36), + kCFStringEncodingMacIcelandic(37), + kCFStringEncodingMacRomanian(38), + kCFStringEncodingMacCeltic(39), + kCFStringEncodingMacGaelic(40), + kCFStringEncodingMacFarsi(140), + kCFStringEncodingMacUkrainian(152), + kCFStringEncodingMacInuit(236), + kCFStringEncodingMacVT100(252), + kCFStringEncodingMacHFS(255), + kCFStringEncodingISOLatin2(514), + kCFStringEncodingISOLatin3(515), + kCFStringEncodingISOLatin4(516), + kCFStringEncodingISOLatinCyrillic(517), + kCFStringEncodingISOLatinArabic(518), + kCFStringEncodingISOLatinGreek(519), + kCFStringEncodingISOLatinHebrew(520), + kCFStringEncodingISOLatin5(521), + kCFStringEncodingISOLatin6(522), + kCFStringEncodingISOLatinThai(523), + kCFStringEncodingISOLatin7(525), + kCFStringEncodingISOLatin8(526), + kCFStringEncodingISOLatin9(527), + kCFStringEncodingISOLatin10(528), + kCFStringEncodingDOSLatinUS(1024), + kCFStringEncodingDOSGreek(1029), + kCFStringEncodingDOSBalticRim(1030), + kCFStringEncodingDOSLatin1(1040), + kCFStringEncodingDOSGreek1(1041), + kCFStringEncodingDOSLatin2(1042), + kCFStringEncodingDOSCyrillic(1043), + kCFStringEncodingDOSTurkish(1044), + kCFStringEncodingDOSPortuguese(1045), + kCFStringEncodingDOSIcelandic(1046), + kCFStringEncodingDOSHebrew(1047), + kCFStringEncodingDOSCanadianFrench(1048), + kCFStringEncodingDOSArabic(1049), + kCFStringEncodingDOSNordic(1050), + kCFStringEncodingDOSRussian(1051), + kCFStringEncodingDOSGreek2(1052), + kCFStringEncodingDOSThai(1053), + kCFStringEncodingDOSJapanese(1056), + kCFStringEncodingDOSChineseSimplif(1057), + kCFStringEncodingDOSKorean(1058), + kCFStringEncodingDOSChineseTrad(1059), + kCFStringEncodingWindowsLatin2(1281), + kCFStringEncodingWindowsCyrillic(1282), + kCFStringEncodingWindowsGreek(1283), + kCFStringEncodingWindowsLatin5(1284), + kCFStringEncodingWindowsHebrew(1285), + kCFStringEncodingWindowsArabic(1286), + kCFStringEncodingWindowsBalticRim(1287), + kCFStringEncodingWindowsVietnamese(1288), + kCFStringEncodingWindowsKoreanJohab(1296), + kCFStringEncodingANSEL(1537), + kCFStringEncodingJIS_X0201_76(1568), + kCFStringEncodingJIS_X0208_83(1569), + kCFStringEncodingJIS_X0208_90(1570), + kCFStringEncodingJIS_X0212_90(1571), + kCFStringEncodingJIS_C6226_78(1572), + kCFStringEncodingShiftJIS_X0213(1576), + kCFStringEncodingShiftJIS_X0213_MenKuTen(1577), + kCFStringEncodingGB_2312_80(1584), + kCFStringEncodingGBK_95(1585), + kCFStringEncodingGB_18030_2000(1586), + kCFStringEncodingKSC_5601_87(1600), + kCFStringEncodingKSC_5601_92_Johab(1601), + kCFStringEncodingCNS_11643_92_P1(1617), + kCFStringEncodingCNS_11643_92_P2(1618), + kCFStringEncodingCNS_11643_92_P3(1619), + kCFStringEncodingISO_2022_JP(2080), + kCFStringEncodingISO_2022_JP_2(2081), + kCFStringEncodingISO_2022_JP_1(2082), + kCFStringEncodingISO_2022_JP_3(2083), + kCFStringEncodingISO_2022_CN(2096), + kCFStringEncodingISO_2022_CN_EXT(2097), + kCFStringEncodingISO_2022_KR(2112), + kCFStringEncodingEUC_JP(2336), + kCFStringEncodingEUC_CN(2352), + kCFStringEncodingEUC_TW(2353), + kCFStringEncodingEUC_KR(2368), + kCFStringEncodingShiftJIS(2561), + kCFStringEncodingKOI8_R(2562), + kCFStringEncodingBig5(2563), + kCFStringEncodingMacRomanLatin1(2564), + kCFStringEncodingHZ_GB_2312(2565), + kCFStringEncodingBig5_HKSCS_1999(2566), + kCFStringEncodingVISCII(2567), + kCFStringEncodingKOI8_U(2568), + kCFStringEncodingBig5_E(2569), + kCFStringEncodingNextStepJapanese(2818), + kCFStringEncodingEBCDIC_US(3073), + kCFStringEncodingEBCDIC_CP037(3074), + kCFStringEncodingUTF7(67109120), + kCFStringEncodingUTF7_IMAP(2576); + + static const kCFStringEncodingShiftJIS_X0213_00 = + kCFStringEncodingShiftJIS_X0213; + + final int value; + const CFStringEncodings(this.value); + + static CFStringEncodings fromValue(int value) => switch (value) { + 1 => kCFStringEncodingMacJapanese, + 2 => kCFStringEncodingMacChineseTrad, + 3 => kCFStringEncodingMacKorean, + 4 => kCFStringEncodingMacArabic, + 5 => kCFStringEncodingMacHebrew, + 6 => kCFStringEncodingMacGreek, + 7 => kCFStringEncodingMacCyrillic, + 9 => kCFStringEncodingMacDevanagari, + 10 => kCFStringEncodingMacGurmukhi, + 11 => kCFStringEncodingMacGujarati, + 12 => kCFStringEncodingMacOriya, + 13 => kCFStringEncodingMacBengali, + 14 => kCFStringEncodingMacTamil, + 15 => kCFStringEncodingMacTelugu, + 16 => kCFStringEncodingMacKannada, + 17 => kCFStringEncodingMacMalayalam, + 18 => kCFStringEncodingMacSinhalese, + 19 => kCFStringEncodingMacBurmese, + 20 => kCFStringEncodingMacKhmer, + 21 => kCFStringEncodingMacThai, + 22 => kCFStringEncodingMacLaotian, + 23 => kCFStringEncodingMacGeorgian, + 24 => kCFStringEncodingMacArmenian, + 25 => kCFStringEncodingMacChineseSimp, + 26 => kCFStringEncodingMacTibetan, + 27 => kCFStringEncodingMacMongolian, + 28 => kCFStringEncodingMacEthiopic, + 29 => kCFStringEncodingMacCentralEurRoman, + 30 => kCFStringEncodingMacVietnamese, + 31 => kCFStringEncodingMacExtArabic, + 33 => kCFStringEncodingMacSymbol, + 34 => kCFStringEncodingMacDingbats, + 35 => kCFStringEncodingMacTurkish, + 36 => kCFStringEncodingMacCroatian, + 37 => kCFStringEncodingMacIcelandic, + 38 => kCFStringEncodingMacRomanian, + 39 => kCFStringEncodingMacCeltic, + 40 => kCFStringEncodingMacGaelic, + 140 => kCFStringEncodingMacFarsi, + 152 => kCFStringEncodingMacUkrainian, + 236 => kCFStringEncodingMacInuit, + 252 => kCFStringEncodingMacVT100, + 255 => kCFStringEncodingMacHFS, + 514 => kCFStringEncodingISOLatin2, + 515 => kCFStringEncodingISOLatin3, + 516 => kCFStringEncodingISOLatin4, + 517 => kCFStringEncodingISOLatinCyrillic, + 518 => kCFStringEncodingISOLatinArabic, + 519 => kCFStringEncodingISOLatinGreek, + 520 => kCFStringEncodingISOLatinHebrew, + 521 => kCFStringEncodingISOLatin5, + 522 => kCFStringEncodingISOLatin6, + 523 => kCFStringEncodingISOLatinThai, + 525 => kCFStringEncodingISOLatin7, + 526 => kCFStringEncodingISOLatin8, + 527 => kCFStringEncodingISOLatin9, + 528 => kCFStringEncodingISOLatin10, + 1024 => kCFStringEncodingDOSLatinUS, + 1029 => kCFStringEncodingDOSGreek, + 1030 => kCFStringEncodingDOSBalticRim, + 1040 => kCFStringEncodingDOSLatin1, + 1041 => kCFStringEncodingDOSGreek1, + 1042 => kCFStringEncodingDOSLatin2, + 1043 => kCFStringEncodingDOSCyrillic, + 1044 => kCFStringEncodingDOSTurkish, + 1045 => kCFStringEncodingDOSPortuguese, + 1046 => kCFStringEncodingDOSIcelandic, + 1047 => kCFStringEncodingDOSHebrew, + 1048 => kCFStringEncodingDOSCanadianFrench, + 1049 => kCFStringEncodingDOSArabic, + 1050 => kCFStringEncodingDOSNordic, + 1051 => kCFStringEncodingDOSRussian, + 1052 => kCFStringEncodingDOSGreek2, + 1053 => kCFStringEncodingDOSThai, + 1056 => kCFStringEncodingDOSJapanese, + 1057 => kCFStringEncodingDOSChineseSimplif, + 1058 => kCFStringEncodingDOSKorean, + 1059 => kCFStringEncodingDOSChineseTrad, + 1281 => kCFStringEncodingWindowsLatin2, + 1282 => kCFStringEncodingWindowsCyrillic, + 1283 => kCFStringEncodingWindowsGreek, + 1284 => kCFStringEncodingWindowsLatin5, + 1285 => kCFStringEncodingWindowsHebrew, + 1286 => kCFStringEncodingWindowsArabic, + 1287 => kCFStringEncodingWindowsBalticRim, + 1288 => kCFStringEncodingWindowsVietnamese, + 1296 => kCFStringEncodingWindowsKoreanJohab, + 1537 => kCFStringEncodingANSEL, + 1568 => kCFStringEncodingJIS_X0201_76, + 1569 => kCFStringEncodingJIS_X0208_83, + 1570 => kCFStringEncodingJIS_X0208_90, + 1571 => kCFStringEncodingJIS_X0212_90, + 1572 => kCFStringEncodingJIS_C6226_78, + 1576 => kCFStringEncodingShiftJIS_X0213, + 1577 => kCFStringEncodingShiftJIS_X0213_MenKuTen, + 1584 => kCFStringEncodingGB_2312_80, + 1585 => kCFStringEncodingGBK_95, + 1586 => kCFStringEncodingGB_18030_2000, + 1600 => kCFStringEncodingKSC_5601_87, + 1601 => kCFStringEncodingKSC_5601_92_Johab, + 1617 => kCFStringEncodingCNS_11643_92_P1, + 1618 => kCFStringEncodingCNS_11643_92_P2, + 1619 => kCFStringEncodingCNS_11643_92_P3, + 2080 => kCFStringEncodingISO_2022_JP, + 2081 => kCFStringEncodingISO_2022_JP_2, + 2082 => kCFStringEncodingISO_2022_JP_1, + 2083 => kCFStringEncodingISO_2022_JP_3, + 2096 => kCFStringEncodingISO_2022_CN, + 2097 => kCFStringEncodingISO_2022_CN_EXT, + 2112 => kCFStringEncodingISO_2022_KR, + 2336 => kCFStringEncodingEUC_JP, + 2352 => kCFStringEncodingEUC_CN, + 2353 => kCFStringEncodingEUC_TW, + 2368 => kCFStringEncodingEUC_KR, + 2561 => kCFStringEncodingShiftJIS, + 2562 => kCFStringEncodingKOI8_R, + 2563 => kCFStringEncodingBig5, + 2564 => kCFStringEncodingMacRomanLatin1, + 2565 => kCFStringEncodingHZ_GB_2312, + 2566 => kCFStringEncodingBig5_HKSCS_1999, + 2567 => kCFStringEncodingVISCII, + 2568 => kCFStringEncodingKOI8_U, + 2569 => kCFStringEncodingBig5_E, + 2818 => kCFStringEncodingNextStepJapanese, + 3073 => kCFStringEncodingEBCDIC_US, + 3074 => kCFStringEncodingEBCDIC_CP037, + 67109120 => kCFStringEncodingUTF7, + 2576 => kCFStringEncodingUTF7_IMAP, + _ => throw ArgumentError('Unknown value for CFStringEncodings: $value'), + }; + + @override + String toString() { + if (this == kCFStringEncodingShiftJIS_X0213) + return "CFStringEncodings.kCFStringEncodingShiftJIS_X0213, CFStringEncodings.kCFStringEncodingShiftJIS_X0213_00"; + return super.toString(); + } +} + +final class CFStringInlineBuffer extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array buffer; + + external CFStringRef theString; + + external ffi.Pointer directUniCharBuffer; + + external ffi.Pointer directCStringBuffer; + + external CFRange rangeToBuffer; + + @CFIndex() + external int bufferedRangeStart; + + @CFIndex() + external int bufferedRangeEnd; +} + +enum CFStringNormalizationForm { + kCFStringNormalizationFormD(0), + kCFStringNormalizationFormKD(1), + kCFStringNormalizationFormC(2), + kCFStringNormalizationFormKC(3); + + final int value; + const CFStringNormalizationForm(this.value); + + static CFStringNormalizationForm fromValue(int value) => switch (value) { + 0 => kCFStringNormalizationFormD, + 1 => kCFStringNormalizationFormKD, + 2 => kCFStringNormalizationFormC, + 3 => kCFStringNormalizationFormKC, + _ => throw ArgumentError( + 'Unknown value for CFStringNormalizationForm: $value', + ), + }; +} + +typedef CFStringRef = ffi.Pointer; +typedef CFStringTokenizerRef = ffi.Pointer<__CFStringTokenizer>; + +sealed class CFStringTokenizerTokenType { + static const kCFStringTokenizerTokenNone = 0; + static const kCFStringTokenizerTokenNormal = 1; + static const kCFStringTokenizerTokenHasSubTokensMask = 2; + static const kCFStringTokenizerTokenHasDerivedSubTokensMask = 4; + static const kCFStringTokenizerTokenHasHasNumbersMask = 8; + static const kCFStringTokenizerTokenHasNonLettersMask = 16; + static const kCFStringTokenizerTokenIsCJWordMask = 32; +} + +final class CFSwappedFloat32 extends ffi.Struct { + @ffi.Uint32() + external int v; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + }) => $allocator()..ref.v = v; +} + +final class CFSwappedFloat64 extends ffi.Struct { + @ffi.Uint64() + external int v; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + }) => $allocator()..ref.v = v; +} + +typedef CFTimeInterval = ffi.Double; +typedef DartCFTimeInterval = double; + +enum CFTimeZoneNameStyle { + kCFTimeZoneNameStyleStandard(0), + kCFTimeZoneNameStyleShortStandard(1), + kCFTimeZoneNameStyleDaylightSaving(2), + kCFTimeZoneNameStyleShortDaylightSaving(3), + kCFTimeZoneNameStyleGeneric(4), + kCFTimeZoneNameStyleShortGeneric(5); + + final int value; + const CFTimeZoneNameStyle(this.value); + + static CFTimeZoneNameStyle fromValue(int value) => switch (value) { + 0 => kCFTimeZoneNameStyleStandard, + 1 => kCFTimeZoneNameStyleShortStandard, + 2 => kCFTimeZoneNameStyleDaylightSaving, + 3 => kCFTimeZoneNameStyleShortDaylightSaving, + 4 => kCFTimeZoneNameStyleGeneric, + 5 => kCFTimeZoneNameStyleShortGeneric, + _ => throw ArgumentError('Unknown value for CFTimeZoneNameStyle: $value'), + }; +} + +typedef CFTimeZoneRef = ffi.Pointer<__CFTimeZone>; +typedef CFTreeApplierFunction = + ffi.Pointer>; +typedef CFTreeApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFTreeApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); + +final class CFTreeContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFTreeRetainCallBack retain; + + external CFTreeReleaseCallBack release; + + external CFTreeCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFTreeRetainCallBack retain, + required CFTreeReleaseCallBack release, + required CFTreeCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFTreeCopyDescriptionCallBack = + ffi.Pointer>; +typedef CFTreeCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer info); +typedef CFTreeRef = ffi.Pointer<__CFTree>; +typedef CFTreeReleaseCallBack = + ffi.Pointer>; +typedef CFTreeReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFTreeReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFTreeRetainCallBack = + ffi.Pointer>; +typedef CFTreeRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFTypeID = ffi.UnsignedLong; +typedef DartCFTypeID = int; +typedef CFTypeRef = ffi.Pointer; + +sealed class CFURLBookmarkCreationOptions { + static const kCFURLBookmarkCreationMinimalBookmarkMask = 512; + static const kCFURLBookmarkCreationSuitableForBookmarkFile = 1024; + static const kCFURLBookmarkCreationWithSecurityScope = 2048; + static const kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; + static const kCFURLBookmarkCreationWithoutImplicitSecurityScope = 536870912; + static const kCFURLBookmarkCreationPreferFileIDResolutionMask = 256; +} + +typedef CFURLBookmarkFileCreationOptions = CFOptionFlags; + +sealed class CFURLBookmarkResolutionOptions { + static const kCFURLBookmarkResolutionWithoutUIMask = 256; + static const kCFURLBookmarkResolutionWithoutMountingMask = 512; + static const kCFURLBookmarkResolutionWithSecurityScope = 1024; + static const kCFURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; + static const kCFBookmarkResolutionWithoutUIMask = 256; + static const kCFBookmarkResolutionWithoutMountingMask = 512; +} + +enum CFURLComponentType { + kCFURLComponentScheme(1), + kCFURLComponentNetLocation(2), + kCFURLComponentPath(3), + kCFURLComponentResourceSpecifier(4), + kCFURLComponentUser(5), + kCFURLComponentPassword(6), + kCFURLComponentUserInfo(7), + kCFURLComponentHost(8), + kCFURLComponentPort(9), + kCFURLComponentParameterString(10), + kCFURLComponentQuery(11), + kCFURLComponentFragment(12); + + final int value; + const CFURLComponentType(this.value); + + static CFURLComponentType fromValue(int value) => switch (value) { + 1 => kCFURLComponentScheme, + 2 => kCFURLComponentNetLocation, + 3 => kCFURLComponentPath, + 4 => kCFURLComponentResourceSpecifier, + 5 => kCFURLComponentUser, + 6 => kCFURLComponentPassword, + 7 => kCFURLComponentUserInfo, + 8 => kCFURLComponentHost, + 9 => kCFURLComponentPort, + 10 => kCFURLComponentParameterString, + 11 => kCFURLComponentQuery, + 12 => kCFURLComponentFragment, + _ => throw ArgumentError('Unknown value for CFURLComponentType: $value'), + }; +} + +sealed class CFURLEnumeratorOptions { + static const kCFURLEnumeratorDefaultBehavior = 0; + static const kCFURLEnumeratorDescendRecursively = 1; + static const kCFURLEnumeratorSkipInvisibles = 2; + static const kCFURLEnumeratorGenerateFileReferenceURLs = 4; + static const kCFURLEnumeratorSkipPackageContents = 8; + static const kCFURLEnumeratorIncludeDirectoriesPreOrder = 16; + static const kCFURLEnumeratorIncludeDirectoriesPostOrder = 32; + static const kCFURLEnumeratorGenerateRelativePathURLs = 64; +} + +typedef CFURLEnumeratorRef = ffi.Pointer<__CFURLEnumerator>; + +enum CFURLEnumeratorResult { + kCFURLEnumeratorSuccess(1), + kCFURLEnumeratorEnd(2), + kCFURLEnumeratorError(3), + kCFURLEnumeratorDirectoryPostOrderSuccess(4); + + final int value; + const CFURLEnumeratorResult(this.value); + + static CFURLEnumeratorResult fromValue(int value) => switch (value) { + 1 => kCFURLEnumeratorSuccess, + 2 => kCFURLEnumeratorEnd, + 3 => kCFURLEnumeratorError, + 4 => kCFURLEnumeratorDirectoryPostOrderSuccess, + _ => throw ArgumentError('Unknown value for CFURLEnumeratorResult: $value'), + }; +} + +@Deprecated('Use CFError codes instead') +enum CFURLError { + kCFURLUnknownError(-10), + kCFURLUnknownSchemeError(-11), + kCFURLResourceNotFoundError(-12), + kCFURLResourceAccessViolationError(-13), + kCFURLRemoteHostUnavailableError(-14), + kCFURLImproperArgumentsError(-15), + kCFURLUnknownPropertyKeyError(-16), + kCFURLPropertyKeyUnavailableError(-17), + kCFURLTimeoutError(-18); + + final int value; + const CFURLError(this.value); + + static CFURLError fromValue(int value) => switch (value) { + -10 => kCFURLUnknownError, + -11 => kCFURLUnknownSchemeError, + -12 => kCFURLResourceNotFoundError, + -13 => kCFURLResourceAccessViolationError, + -14 => kCFURLRemoteHostUnavailableError, + -15 => kCFURLImproperArgumentsError, + -16 => kCFURLUnknownPropertyKeyError, + -17 => kCFURLPropertyKeyUnavailableError, + -18 => kCFURLTimeoutError, + _ => throw ArgumentError('Unknown value for CFURLError: $value'), + }; +} + +enum CFURLPathStyle { + kCFURLPOSIXPathStyle(0), + kCFURLHFSPathStyle(1), + kCFURLWindowsPathStyle(2); + + final int value; + const CFURLPathStyle(this.value); + + static CFURLPathStyle fromValue(int value) => switch (value) { + 0 => kCFURLPOSIXPathStyle, + 1 => kCFURLHFSPathStyle, + 2 => kCFURLWindowsPathStyle, + _ => throw ArgumentError('Unknown value for CFURLPathStyle: $value'), + }; +} + +typedef CFURLRef = ffi.Pointer<__CFURL>; + +final class CFUUIDBytes extends ffi.Struct { + @UInt8() + external int byte0; + + @UInt8() + external int byte1; + + @UInt8() + external int byte2; + + @UInt8() + external int byte3; + + @UInt8() + external int byte4; + + @UInt8() + external int byte5; + + @UInt8() + external int byte6; + + @UInt8() + external int byte7; + + @UInt8() + external int byte8; + + @UInt8() + external int byte9; + + @UInt8() + external int byte10; + + @UInt8() + external int byte11; + + @UInt8() + external int byte12; + + @UInt8() + external int byte13; + + @UInt8() + external int byte14; + + @UInt8() + external int byte15; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int byte0, + required int byte1, + required int byte2, + required int byte3, + required int byte4, + required int byte5, + required int byte6, + required int byte7, + required int byte8, + required int byte9, + required int byte10, + required int byte11, + required int byte12, + required int byte13, + required int byte14, + required int byte15, + }) => $allocator() + ..ref.byte0 = byte0 + ..ref.byte1 = byte1 + ..ref.byte2 = byte2 + ..ref.byte3 = byte3 + ..ref.byte4 = byte4 + ..ref.byte5 = byte5 + ..ref.byte6 = byte6 + ..ref.byte7 = byte7 + ..ref.byte8 = byte8 + ..ref.byte9 = byte9 + ..ref.byte10 = byte10 + ..ref.byte11 = byte11 + ..ref.byte12 = byte12 + ..ref.byte13 = byte13 + ..ref.byte14 = byte14 + ..ref.byte15 = byte15; +} + +typedef CFUUIDRef = ffi.Pointer<__CFUUID>; +typedef CFUserNotificationCallBack = + ffi.Pointer>; +typedef CFUserNotificationCallBackFunction = + ffi.Void Function( + CFUserNotificationRef userNotification, + CFOptionFlags responseFlags, + ); +typedef DartCFUserNotificationCallBackFunction = + void Function( + CFUserNotificationRef userNotification, + DartCFOptionFlags responseFlags, + ); +typedef CFUserNotificationRef = ffi.Pointer<__CFUserNotification>; +typedef CFWriteStreamClientCallBack = + ffi.Pointer>; +typedef CFWriteStreamClientCallBackFunction = + ffi.Void Function( + CFWriteStreamRef stream, + CFOptionFlags type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFWriteStreamClientCallBackFunction = + void Function( + CFWriteStreamRef stream, + DartCFOptionFlags type, + ffi.Pointer clientCallBackInfo, + ); +typedef CFWriteStreamRef = ffi.Pointer<__CFWriteStream>; + +final class CFXMLAttributeDeclarationInfo extends ffi.Struct { + external CFStringRef attributeName; + + external CFStringRef typeString; + + external CFStringRef defaultString; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFStringRef attributeName, + required CFStringRef typeString, + required CFStringRef defaultString, + }) => $allocator() + ..ref.attributeName = attributeName + ..ref.typeString = typeString + ..ref.defaultString = defaultString; +} + +final class CFXMLAttributeListDeclarationInfo extends ffi.Struct { + @CFIndex() + external int numberOfAttributes; + + external ffi.Pointer attributes; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfAttributes, + required ffi.Pointer attributes, + }) => $allocator() + ..ref.numberOfAttributes = numberOfAttributes + ..ref.attributes = attributes; +} + +final class CFXMLDocumentInfo extends ffi.Struct { + external CFURLRef sourceURL; + + @CFStringEncoding() + external int encoding; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFURLRef sourceURL, + required int encoding, + }) => $allocator() + ..ref.sourceURL = sourceURL + ..ref.encoding = encoding; +} + +final class CFXMLDocumentTypeInfo extends ffi.Struct { + external CFXMLExternalID externalID; +} + +final class CFXMLElementInfo extends ffi.Struct { + external CFDictionaryRef attributes; + + external CFArrayRef attributeOrder; + + @Boolean() + external int isEmpty; + + @ffi.Array.multi([3]) + external ffi.Array _reserved; +} + +final class CFXMLElementTypeDeclarationInfo extends ffi.Struct { + external CFStringRef contentDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFStringRef contentDescription, + }) => + $allocator() + ..ref.contentDescription = contentDescription; +} + +final class CFXMLEntityInfo extends ffi.Struct { + @CFIndex() + external int entityTypeAsInt; + + CFXMLEntityTypeCode get entityType => + CFXMLEntityTypeCode.fromValue(entityTypeAsInt); + set entityType(CFXMLEntityTypeCode value) => entityTypeAsInt = value.value; + + external CFStringRef replacementText; + + external CFXMLExternalID entityID; + + external CFStringRef notationName; +} + +final class CFXMLEntityReferenceInfo extends ffi.Struct { + @CFIndex() + external int entityTypeAsInt; + + CFXMLEntityTypeCode get entityType => + CFXMLEntityTypeCode.fromValue(entityTypeAsInt); + set entityType(CFXMLEntityTypeCode value) => entityTypeAsInt = value.value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFXMLEntityTypeCode entityType, + }) => $allocator()..ref.entityType = entityType; +} + +enum CFXMLEntityTypeCode { + kCFXMLEntityTypeParameter(0), + kCFXMLEntityTypeParsedInternal(1), + kCFXMLEntityTypeParsedExternal(2), + kCFXMLEntityTypeUnparsed(3), + kCFXMLEntityTypeCharacter(4); + + final int value; + const CFXMLEntityTypeCode(this.value); + + static CFXMLEntityTypeCode fromValue(int value) => switch (value) { + 0 => kCFXMLEntityTypeParameter, + 1 => kCFXMLEntityTypeParsedInternal, + 2 => kCFXMLEntityTypeParsedExternal, + 3 => kCFXMLEntityTypeUnparsed, + 4 => kCFXMLEntityTypeCharacter, + _ => throw ArgumentError('Unknown value for CFXMLEntityTypeCode: $value'), + }; +} + +final class CFXMLExternalID extends ffi.Struct { + external CFURLRef systemID; + + external CFStringRef publicID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFURLRef systemID, + required CFStringRef publicID, + }) => $allocator() + ..ref.systemID = systemID + ..ref.publicID = publicID; +} + +typedef CFXMLNodeRef = ffi.Pointer<__CFXMLNode>; + +enum CFXMLNodeTypeCode { + kCFXMLNodeTypeDocument(1), + kCFXMLNodeTypeElement(2), + kCFXMLNodeTypeAttribute(3), + kCFXMLNodeTypeProcessingInstruction(4), + kCFXMLNodeTypeComment(5), + kCFXMLNodeTypeText(6), + kCFXMLNodeTypeCDATASection(7), + kCFXMLNodeTypeDocumentFragment(8), + kCFXMLNodeTypeEntity(9), + kCFXMLNodeTypeEntityReference(10), + kCFXMLNodeTypeDocumentType(11), + kCFXMLNodeTypeWhitespace(12), + kCFXMLNodeTypeNotation(13), + kCFXMLNodeTypeElementTypeDeclaration(14), + kCFXMLNodeTypeAttributeListDeclaration(15); + + final int value; + const CFXMLNodeTypeCode(this.value); + + static CFXMLNodeTypeCode fromValue(int value) => switch (value) { + 1 => kCFXMLNodeTypeDocument, + 2 => kCFXMLNodeTypeElement, + 3 => kCFXMLNodeTypeAttribute, + 4 => kCFXMLNodeTypeProcessingInstruction, + 5 => kCFXMLNodeTypeComment, + 6 => kCFXMLNodeTypeText, + 7 => kCFXMLNodeTypeCDATASection, + 8 => kCFXMLNodeTypeDocumentFragment, + 9 => kCFXMLNodeTypeEntity, + 10 => kCFXMLNodeTypeEntityReference, + 11 => kCFXMLNodeTypeDocumentType, + 12 => kCFXMLNodeTypeWhitespace, + 13 => kCFXMLNodeTypeNotation, + 14 => kCFXMLNodeTypeElementTypeDeclaration, + 15 => kCFXMLNodeTypeAttributeListDeclaration, + _ => throw ArgumentError('Unknown value for CFXMLNodeTypeCode: $value'), + }; +} + +final class CFXMLNotationInfo extends ffi.Struct { + external CFXMLExternalID externalID; +} + +typedef CFXMLParserAddChildCallBack = + ffi.Pointer>; +typedef CFXMLParserAddChildCallBackFunction = + ffi.Void Function( + CFXMLParserRef parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, + ); +typedef DartCFXMLParserAddChildCallBackFunction = + void Function( + CFXMLParserRef parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, + ); + +final class CFXMLParserCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFXMLParserCreateXMLStructureCallBack createXMLStructure; + + external CFXMLParserAddChildCallBack addChild; + + external CFXMLParserEndXMLStructureCallBack endXMLStructure; + + external CFXMLParserResolveExternalEntityCallBack resolveExternalEntity; + + external CFXMLParserHandleErrorCallBack handleError; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFXMLParserCreateXMLStructureCallBack createXMLStructure, + required CFXMLParserAddChildCallBack addChild, + required CFXMLParserEndXMLStructureCallBack endXMLStructure, + required CFXMLParserResolveExternalEntityCallBack resolveExternalEntity, + required CFXMLParserHandleErrorCallBack handleError, + }) => $allocator() + ..ref.version = version + ..ref.createXMLStructure = createXMLStructure + ..ref.addChild = addChild + ..ref.endXMLStructure = endXMLStructure + ..ref.resolveExternalEntity = resolveExternalEntity + ..ref.handleError = handleError; +} + +final class CFXMLParserContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFXMLParserRetainCallBack retain; + + external CFXMLParserReleaseCallBack release; + + external CFXMLParserCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFXMLParserRetainCallBack retain, + required CFXMLParserReleaseCallBack release, + required CFXMLParserCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFXMLParserCopyDescriptionCallBack = + ffi.Pointer>; +typedef CFXMLParserCopyDescriptionCallBackFunction = + CFStringRef Function(ffi.Pointer info); +typedef CFXMLParserCreateXMLStructureCallBack = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CFXMLParserCreateXMLStructureCallBackFunction = + ffi.Pointer Function( + CFXMLParserRef parser, + CFXMLNodeRef nodeDesc, + ffi.Pointer info, + ); +typedef CFXMLParserEndXMLStructureCallBack = + ffi.Pointer>; +typedef CFXMLParserEndXMLStructureCallBackFunction = + ffi.Void Function( + CFXMLParserRef parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ); +typedef DartCFXMLParserEndXMLStructureCallBackFunction = + void Function( + CFXMLParserRef parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ); +typedef CFXMLParserHandleErrorCallBack = + ffi.Pointer>; +typedef CFXMLParserHandleErrorCallBackFunction = + Boolean Function( + CFXMLParserRef parser, + CFIndex error, + ffi.Pointer info, + ); +typedef DartCFXMLParserHandleErrorCallBackFunction = + DartBoolean Function( + CFXMLParserRef parser, + DartCFIndex error, + ffi.Pointer info, + ); + +sealed class CFXMLParserOptions { + static const kCFXMLParserValidateDocument = 1; + static const kCFXMLParserSkipMetaData = 2; + static const kCFXMLParserReplacePhysicalEntities = 4; + static const kCFXMLParserSkipWhitespace = 8; + static const kCFXMLParserResolveExternalEntities = 16; + static const kCFXMLParserAddImpliedAttributes = 32; + static const kCFXMLParserAllOptions = 16777215; + static const kCFXMLParserNoOptions = 0; +} + +typedef CFXMLParserRef = ffi.Pointer<__CFXMLParser>; +typedef CFXMLParserReleaseCallBack = + ffi.Pointer>; +typedef CFXMLParserReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFXMLParserReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFXMLParserResolveExternalEntityCallBack = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CFXMLParserResolveExternalEntityCallBackFunction = + CFDataRef Function( + CFXMLParserRef parser, + ffi.Pointer extID, + ffi.Pointer info, + ); +typedef CFXMLParserRetainCallBack = + ffi.Pointer>; +typedef CFXMLParserRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); + +sealed class CFXMLParserStatusCode { + static const kCFXMLStatusParseNotBegun = -2; + static const kCFXMLStatusParseInProgress = -1; + static const kCFXMLStatusParseSuccessful = 0; + static const kCFXMLErrorUnexpectedEOF = 1; + static const kCFXMLErrorUnknownEncoding = 2; + static const kCFXMLErrorEncodingConversionFailure = 3; + static const kCFXMLErrorMalformedProcessingInstruction = 4; + static const kCFXMLErrorMalformedDTD = 5; + static const kCFXMLErrorMalformedName = 6; + static const kCFXMLErrorMalformedCDSect = 7; + static const kCFXMLErrorMalformedCloseTag = 8; + static const kCFXMLErrorMalformedStartTag = 9; + static const kCFXMLErrorMalformedDocument = 10; + static const kCFXMLErrorElementlessDocument = 11; + static const kCFXMLErrorMalformedComment = 12; + static const kCFXMLErrorMalformedCharacterReference = 13; + static const kCFXMLErrorMalformedParsedCharacterData = 14; + static const kCFXMLErrorNoData = 15; +} + +final class CFXMLProcessingInstructionInfo extends ffi.Struct { + external CFStringRef dataString; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFStringRef dataString, + }) => + $allocator()..ref.dataString = dataString; +} + +typedef CFXMLTreeRef = CFTreeRef; + +final class CGAffineTransform extends ffi.Struct { + @CGFloat() + external double a; + + @CGFloat() + external double b; + + @CGFloat() + external double c; + + @CGFloat() + external double d; + + @CGFloat() + external double tx; + + @CGFloat() + external double ty; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double a, + required double b, + required double c, + required double d, + required double tx, + required double ty, + }) => $allocator() + ..ref.a = a + ..ref.b = b + ..ref.c = c + ..ref.d = d + ..ref.tx = tx + ..ref.ty = ty; +} + +final class CGAffineTransformComponents extends ffi.Struct { + external objc.CGSize scale; + + @CGFloat() + external double horizontalShear; + + @CGFloat() + external double rotation; + + external CGVector translation; +} + +typedef CGBitmapContextReleaseDataCallback = + ffi.Pointer>; +typedef CGBitmapContextReleaseDataCallbackFunction = + ffi.Void Function( + ffi.Pointer releaseInfo, + ffi.Pointer data, + ); +typedef DartCGBitmapContextReleaseDataCallbackFunction = + void Function( + ffi.Pointer releaseInfo, + ffi.Pointer data, + ); + +sealed class CGBitmapInfo { + static const kCGBitmapAlphaInfoMask = 31; + static const kCGBitmapComponentInfoMask = 3840; + static const kCGBitmapByteOrderInfoMask = 28672; + static const kCGBitmapPixelFormatInfoMask = 983040; + static const kCGBitmapFloatInfoMask = 3840; + static const kCGBitmapByteOrderMask = 28672; + static const kCGBitmapFloatComponents = 256; + static const kCGBitmapByteOrderDefault = 0; + static const kCGBitmapByteOrder16Little = 4096; + static const kCGBitmapByteOrder32Little = 8192; + static const kCGBitmapByteOrder16Big = 12288; + static const kCGBitmapByteOrder32Big = 16384; +} + +enum CGBitmapLayout { + kCGBitmapLayoutAlphaOnly(0), + kCGBitmapLayoutGray(1), + kCGBitmapLayoutGrayAlpha(2), + kCGBitmapLayoutRGBA(3), + kCGBitmapLayoutARGB(4), + kCGBitmapLayoutRGBX(5), + kCGBitmapLayoutXRGB(6), + kCGBitmapLayoutBGRA(7), + kCGBitmapLayoutBGRX(8), + kCGBitmapLayoutABGR(9), + kCGBitmapLayoutXBGR(10), + kCGBitmapLayoutCMYK(11); + + final int value; + const CGBitmapLayout(this.value); + + static CGBitmapLayout fromValue(int value) => switch (value) { + 0 => kCGBitmapLayoutAlphaOnly, + 1 => kCGBitmapLayoutGray, + 2 => kCGBitmapLayoutGrayAlpha, + 3 => kCGBitmapLayoutRGBA, + 4 => kCGBitmapLayoutARGB, + 5 => kCGBitmapLayoutRGBX, + 6 => kCGBitmapLayoutXRGB, + 7 => kCGBitmapLayoutBGRA, + 8 => kCGBitmapLayoutBGRX, + 9 => kCGBitmapLayoutABGR, + 10 => kCGBitmapLayoutXBGR, + 11 => kCGBitmapLayoutCMYK, + _ => throw ArgumentError('Unknown value for CGBitmapLayout: $value'), + }; +} + +final class CGBitmapParameters extends ffi.Struct { + @ffi.Size() + external int width; + + @ffi.Size() + external int height; + + @ffi.Size() + external int bytesPerPixel; + + @ffi.Size() + external int alignedBytesPerRow; + + @ffi.Uint32() + external int componentAsInt; + + CGComponent get component => CGComponent.fromValue(componentAsInt); + set component(CGComponent value) => componentAsInt = value.value; + + @ffi.Uint32() + external int layoutAsInt; + + CGBitmapLayout get layout => CGBitmapLayout.fromValue(layoutAsInt); + set layout(CGBitmapLayout value) => layoutAsInt = value.value; + + @ffi.Uint32() + external int formatAsInt; + + CGImagePixelFormatInfo get format => + CGImagePixelFormatInfo.fromValue(formatAsInt); + set format(CGImagePixelFormatInfo value) => formatAsInt = value.value; + + external CGColorSpaceRef colorSpace; + + @ffi.Bool() + external bool hasPremultipliedAlpha; + + @CFByteOrder() + external int byteOrder; + + @ffi.Float() + external double edrTargetHeadroom; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int width, + required int height, + required int bytesPerPixel, + required int alignedBytesPerRow, + required CGComponent component, + required CGBitmapLayout layout, + required CGImagePixelFormatInfo format, + required CGColorSpaceRef colorSpace, + required bool hasPremultipliedAlpha, + required int byteOrder, + required double edrTargetHeadroom, + }) => $allocator() + ..ref.width = width + ..ref.height = height + ..ref.bytesPerPixel = bytesPerPixel + ..ref.alignedBytesPerRow = alignedBytesPerRow + ..ref.component = component + ..ref.layout = layout + ..ref.format = format + ..ref.colorSpace = colorSpace + ..ref.hasPremultipliedAlpha = hasPremultipliedAlpha + ..ref.byteOrder = byteOrder + ..ref.edrTargetHeadroom = edrTargetHeadroom; +} + +enum CGBlendMode { + kCGBlendModeNormal(0), + kCGBlendModeMultiply(1), + kCGBlendModeScreen(2), + kCGBlendModeOverlay(3), + kCGBlendModeDarken(4), + kCGBlendModeLighten(5), + kCGBlendModeColorDodge(6), + kCGBlendModeColorBurn(7), + kCGBlendModeSoftLight(8), + kCGBlendModeHardLight(9), + kCGBlendModeDifference(10), + kCGBlendModeExclusion(11), + kCGBlendModeHue(12), + kCGBlendModeSaturation(13), + kCGBlendModeColor(14), + kCGBlendModeLuminosity(15), + kCGBlendModeClear(16), + kCGBlendModeCopy(17), + kCGBlendModeSourceIn(18), + kCGBlendModeSourceOut(19), + kCGBlendModeSourceAtop(20), + kCGBlendModeDestinationOver(21), + kCGBlendModeDestinationIn(22), + kCGBlendModeDestinationOut(23), + kCGBlendModeDestinationAtop(24), + kCGBlendModeXOR(25), + kCGBlendModePlusDarker(26), + kCGBlendModePlusLighter(27); + + final int value; + const CGBlendMode(this.value); + + static CGBlendMode fromValue(int value) => switch (value) { + 0 => kCGBlendModeNormal, + 1 => kCGBlendModeMultiply, + 2 => kCGBlendModeScreen, + 3 => kCGBlendModeOverlay, + 4 => kCGBlendModeDarken, + 5 => kCGBlendModeLighten, + 6 => kCGBlendModeColorDodge, + 7 => kCGBlendModeColorBurn, + 8 => kCGBlendModeSoftLight, + 9 => kCGBlendModeHardLight, + 10 => kCGBlendModeDifference, + 11 => kCGBlendModeExclusion, + 12 => kCGBlendModeHue, + 13 => kCGBlendModeSaturation, + 14 => kCGBlendModeColor, + 15 => kCGBlendModeLuminosity, + 16 => kCGBlendModeClear, + 17 => kCGBlendModeCopy, + 18 => kCGBlendModeSourceIn, + 19 => kCGBlendModeSourceOut, + 20 => kCGBlendModeSourceAtop, + 21 => kCGBlendModeDestinationOver, + 22 => kCGBlendModeDestinationIn, + 23 => kCGBlendModeDestinationOut, + 24 => kCGBlendModeDestinationAtop, + 25 => kCGBlendModeXOR, + 26 => kCGBlendModePlusDarker, + 27 => kCGBlendModePlusLighter, + _ => throw ArgumentError('Unknown value for CGBlendMode: $value'), + }; +} + +typedef CGButtonCount = ffi.Uint32; +typedef DartCGButtonCount = int; + +sealed class CGCaptureOptions { + static const kCGCaptureNoOptions = 0; + static const kCGCaptureNoFill = 1; +} + +typedef CGCharCode = ffi.Uint16; +typedef DartCGCharCode = int; + +final class CGColor extends ffi.Opaque {} + +final class CGColorBufferFormat extends ffi.Struct { + @ffi.Uint32() + external int version; + + @ffi.Uint32() + external int bitmapInfo; + + @ffi.Size() + external int bitsPerComponent; + + @ffi.Size() + external int bitsPerPixel; + + @ffi.Size() + external int bytesPerRow; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int bitmapInfo, + required int bitsPerComponent, + required int bitsPerPixel, + required int bytesPerRow, + }) => $allocator() + ..ref.version = version + ..ref.bitmapInfo = bitmapInfo + ..ref.bitsPerComponent = bitsPerComponent + ..ref.bitsPerPixel = bitsPerPixel + ..ref.bytesPerRow = bytesPerRow; +} + +final class CGColorConversionInfo extends ffi.Opaque {} + +typedef CGColorConversionInfoRef = ffi.Pointer; + +enum CGColorConversionInfoTransformType { + kCGColorConversionTransformFromSpace(0), + kCGColorConversionTransformToSpace(1), + kCGColorConversionTransformApplySpace(2); + + final int value; + const CGColorConversionInfoTransformType(this.value); + + static CGColorConversionInfoTransformType fromValue(int value) => + switch (value) { + 0 => kCGColorConversionTransformFromSpace, + 1 => kCGColorConversionTransformToSpace, + 2 => kCGColorConversionTransformApplySpace, + _ => throw ArgumentError( + 'Unknown value for CGColorConversionInfoTransformType: $value', + ), + }; +} + +final class CGColorDataFormat extends ffi.Struct { + @ffi.Uint32() + external int version; + + external CFTypeRef colorspace_info; + + @ffi.Uint32() + external int bitmap_info; + + @ffi.Size() + external int bits_per_component; + + @ffi.Size() + external int bytes_per_row; + + @ffi.Int32() + external int intentAsInt; + + CGColorRenderingIntent get intent => + CGColorRenderingIntent.fromValue(intentAsInt); + set intent(CGColorRenderingIntent value) => intentAsInt = value.value; + + external ffi.Pointer decode; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFTypeRef colorspace_info, + required int bitmap_info, + required int bits_per_component, + required int bytes_per_row, + required CGColorRenderingIntent intent, + required ffi.Pointer decode, + }) => $allocator() + ..ref.version = version + ..ref.colorspace_info = colorspace_info + ..ref.bitmap_info = bitmap_info + ..ref.bits_per_component = bits_per_component + ..ref.bytes_per_row = bytes_per_row + ..ref.intent = intent + ..ref.decode = decode; +} + +sealed class CGColorModel { + static const kCGColorModelNoColorant = 0; + static const kCGColorModelGray = 1; + static const kCGColorModelRGB = 2; + static const kCGColorModelCMYK = 4; + static const kCGColorModelLab = 8; + static const kCGColorModelDeviceN = 16; +} + +typedef CGColorRef = ffi.Pointer; + +enum CGColorRenderingIntent { + kCGRenderingIntentDefault(0), + kCGRenderingIntentAbsoluteColorimetric(1), + kCGRenderingIntentRelativeColorimetric(2), + kCGRenderingIntentPerceptual(3), + kCGRenderingIntentSaturation(4); + + final int value; + const CGColorRenderingIntent(this.value); + + static CGColorRenderingIntent fromValue(int value) => switch (value) { + 0 => kCGRenderingIntentDefault, + 1 => kCGRenderingIntentAbsoluteColorimetric, + 2 => kCGRenderingIntentRelativeColorimetric, + 3 => kCGRenderingIntentPerceptual, + 4 => kCGRenderingIntentSaturation, + _ => throw ArgumentError( + 'Unknown value for CGColorRenderingIntent: $value', + ), + }; +} + +final class CGColorSpace extends ffi.Opaque {} + +enum CGColorSpaceModel { + kCGColorSpaceModelUnknown(-1), + kCGColorSpaceModelMonochrome(0), + kCGColorSpaceModelRGB(1), + kCGColorSpaceModelCMYK(2), + kCGColorSpaceModelLab(3), + kCGColorSpaceModelDeviceN(4), + kCGColorSpaceModelIndexed(5), + kCGColorSpaceModelPattern(6), + kCGColorSpaceModelXYZ(7); + + final int value; + const CGColorSpaceModel(this.value); + + static CGColorSpaceModel fromValue(int value) => switch (value) { + -1 => kCGColorSpaceModelUnknown, + 0 => kCGColorSpaceModelMonochrome, + 1 => kCGColorSpaceModelRGB, + 2 => kCGColorSpaceModelCMYK, + 3 => kCGColorSpaceModelLab, + 4 => kCGColorSpaceModelDeviceN, + 5 => kCGColorSpaceModelIndexed, + 6 => kCGColorSpaceModelPattern, + 7 => kCGColorSpaceModelXYZ, + _ => throw ArgumentError('Unknown value for CGColorSpaceModel: $value'), + }; +} + +typedef CGColorSpaceRef = ffi.Pointer; + +enum CGComponent { + kCGComponentUnknown(0), + kCGComponentInteger8Bit(1), + kCGComponentInteger10Bit(6), + kCGComponentInteger16Bit(2), + kCGComponentInteger32Bit(3), + kCGComponentFloat16Bit(5), + kCGComponentFloat32Bit(4); + + final int value; + const CGComponent(this.value); + + static CGComponent fromValue(int value) => switch (value) { + 0 => kCGComponentUnknown, + 1 => kCGComponentInteger8Bit, + 6 => kCGComponentInteger10Bit, + 2 => kCGComponentInteger16Bit, + 3 => kCGComponentInteger32Bit, + 5 => kCGComponentFloat16Bit, + 4 => kCGComponentFloat32Bit, + _ => throw ArgumentError('Unknown value for CGComponent: $value'), + }; +} + +sealed class CGConfigureOption { + static const kCGConfigureForAppOnly = 0; + static const kCGConfigureForSession = 1; + static const kCGConfigurePermanently = 2; +} + +final class CGContentInfo extends ffi.Struct { + @ffi.Uint32() + external int deepestImageComponentAsInt; + + CGComponent get deepestImageComponent => + CGComponent.fromValue(deepestImageComponentAsInt); + set deepestImageComponent(CGComponent value) => + deepestImageComponentAsInt = value.value; + + @ffi.Uint32() + external int contentColorModels; + + @ffi.Bool() + external bool hasWideGamut; + + @ffi.Bool() + external bool hasTransparency; + + @ffi.Float() + external double largestContentHeadroom; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CGComponent deepestImageComponent, + required int contentColorModels, + required bool hasWideGamut, + required bool hasTransparency, + required double largestContentHeadroom, + }) => $allocator() + ..ref.deepestImageComponent = deepestImageComponent + ..ref.contentColorModels = contentColorModels + ..ref.hasWideGamut = hasWideGamut + ..ref.hasTransparency = hasTransparency + ..ref.largestContentHeadroom = largestContentHeadroom; +} + +final class CGContentToneMappingInfo extends ffi.Struct { + @ffi.Uint32() + external int methodAsInt; + + CGToneMapping get method => CGToneMapping.fromValue(methodAsInt); + set method(CGToneMapping value) => methodAsInt = value.value; + + external CFDictionaryRef options; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CGToneMapping method, + required CFDictionaryRef options, + }) => $allocator() + ..ref.method = method + ..ref.options = options; +} + +final class CGContext extends ffi.Opaque {} + +typedef CGContextRef = ffi.Pointer; + +final class CGDataConsumer extends ffi.Opaque {} + +final class CGDataConsumerCallbacks extends ffi.Struct { + external CGDataConsumerPutBytesCallback putBytes; + + external CGDataConsumerReleaseInfoCallback releaseConsumer; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CGDataConsumerPutBytesCallback putBytes, + required CGDataConsumerReleaseInfoCallback releaseConsumer, + }) => $allocator() + ..ref.putBytes = putBytes + ..ref.releaseConsumer = releaseConsumer; +} + +typedef CGDataConsumerPutBytesCallback = + ffi.Pointer>; +typedef CGDataConsumerPutBytesCallbackFunction = + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + ffi.Size count, + ); +typedef DartCGDataConsumerPutBytesCallbackFunction = + int Function( + ffi.Pointer info, + ffi.Pointer buffer, + int count, + ); +typedef CGDataConsumerRef = ffi.Pointer; +typedef CGDataConsumerReleaseInfoCallback = + ffi.Pointer>; +typedef CGDataConsumerReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGDataConsumerReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); + +final class CGDataProvider extends ffi.Opaque {} + +final class CGDataProviderDirectCallbacks extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external CGDataProviderGetBytePointerCallback getBytePointer; + + external CGDataProviderReleaseBytePointerCallback releaseBytePointer; + + external CGDataProviderGetBytesAtPositionCallback getBytesAtPosition; + + external CGDataProviderReleaseInfoCallback releaseInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CGDataProviderGetBytePointerCallback getBytePointer, + required CGDataProviderReleaseBytePointerCallback releaseBytePointer, + required CGDataProviderGetBytesAtPositionCallback getBytesAtPosition, + required CGDataProviderReleaseInfoCallback releaseInfo, + }) => $allocator() + ..ref.version = version + ..ref.getBytePointer = getBytePointer + ..ref.releaseBytePointer = releaseBytePointer + ..ref.getBytesAtPosition = getBytesAtPosition + ..ref.releaseInfo = releaseInfo; +} + +typedef CGDataProviderGetBytePointerCallback = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CGDataProviderGetBytePointerCallbackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CGDataProviderGetBytesAtPositionCallback = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CGDataProviderGetBytesAtPositionCallbackFunction = + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + off_t pos, + ffi.Size cnt, + ); +typedef DartCGDataProviderGetBytesAtPositionCallbackFunction = + int Function( + ffi.Pointer info, + ffi.Pointer buffer, + Dart__int64_t pos, + int cnt, + ); +typedef CGDataProviderGetBytesCallback = + ffi.Pointer>; +typedef CGDataProviderGetBytesCallbackFunction = + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + ffi.Size count, + ); +typedef DartCGDataProviderGetBytesCallbackFunction = + int Function( + ffi.Pointer info, + ffi.Pointer buffer, + int count, + ); +typedef CGDataProviderRef = ffi.Pointer; +typedef CGDataProviderReleaseBytePointerCallback = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CGDataProviderReleaseBytePointerCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer pointer, + ); +typedef DartCGDataProviderReleaseBytePointerCallbackFunction = + void Function(ffi.Pointer info, ffi.Pointer pointer); +typedef CGDataProviderReleaseDataCallback = + ffi.Pointer>; +typedef CGDataProviderReleaseDataCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer data, + ffi.Size size, + ); +typedef DartCGDataProviderReleaseDataCallbackFunction = + void Function( + ffi.Pointer info, + ffi.Pointer data, + int size, + ); +typedef CGDataProviderReleaseInfoCallback = + ffi.Pointer>; +typedef CGDataProviderReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGDataProviderReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGDataProviderRewindCallback = + ffi.Pointer>; +typedef CGDataProviderRewindCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGDataProviderRewindCallbackFunction = + void Function(ffi.Pointer info); + +final class CGDataProviderSequentialCallbacks extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external CGDataProviderGetBytesCallback getBytes; + + external CGDataProviderSkipForwardCallback skipForward; + + external CGDataProviderRewindCallback rewind$1; + + external CGDataProviderReleaseInfoCallback releaseInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CGDataProviderGetBytesCallback getBytes, + required CGDataProviderSkipForwardCallback skipForward, + required CGDataProviderRewindCallback rewind$1, + required CGDataProviderReleaseInfoCallback releaseInfo, + }) => $allocator() + ..ref.version = version + ..ref.getBytes = getBytes + ..ref.skipForward = skipForward + ..ref.rewind$1 = rewind$1 + ..ref.releaseInfo = releaseInfo; +} + +typedef CGDataProviderSkipForwardCallback = + ffi.Pointer>; +typedef CGDataProviderSkipForwardCallbackFunction = + off_t Function(ffi.Pointer info, off_t count); +typedef DartCGDataProviderSkipForwardCallbackFunction = + Dart__int64_t Function(ffi.Pointer info, Dart__int64_t count); + +final class CGDeviceColor extends ffi.Struct { + @ffi.Float() + external double red; + + @ffi.Float() + external double green; + + @ffi.Float() + external double blue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double red, + required double green, + required double blue, + }) => $allocator() + ..ref.red = red + ..ref.green = green + ..ref.blue = blue; +} + +typedef CGDirectDisplayID = ffi.Uint32; +typedef DartCGDirectDisplayID = int; +typedef CGDisplayBlendFraction = ffi.Float; +typedef DartCGDisplayBlendFraction = double; + +sealed class CGDisplayChangeSummaryFlags { + static const kCGDisplayBeginConfigurationFlag = 1; + static const kCGDisplayMovedFlag = 2; + static const kCGDisplaySetMainFlag = 4; + static const kCGDisplaySetModeFlag = 8; + static const kCGDisplayAddFlag = 16; + static const kCGDisplayRemoveFlag = 32; + static const kCGDisplayEnabledFlag = 256; + static const kCGDisplayDisabledFlag = 512; + static const kCGDisplayMirrorFlag = 1024; + static const kCGDisplayUnMirrorFlag = 2048; + static const kCGDisplayDesktopShapeChangedFlag = 4096; +} + +typedef CGDisplayConfigRef = ffi.Pointer<_CGDisplayConfigRef>; +typedef CGDisplayCount = ffi.Uint32; +typedef DartCGDisplayCount = int; +typedef CGDisplayFadeInterval = ffi.Float; +typedef DartCGDisplayFadeInterval = double; +typedef CGDisplayFadeReservationToken = ffi.Uint32; +typedef DartCGDisplayFadeReservationToken = int; + +final class CGDisplayMode extends ffi.Opaque {} + +typedef CGDisplayModeRef = ffi.Pointer; +typedef CGDisplayReconfigurationCallBack = + ffi.Pointer>; +typedef CGDisplayReconfigurationCallBackFunction = + ffi.Void Function( + CGDirectDisplayID display, + ffi.Uint32 flags, + ffi.Pointer userInfo, + ); +typedef DartCGDisplayReconfigurationCallBackFunction = + void Function( + DartCGDirectDisplayID display, + int flags, + ffi.Pointer userInfo, + ); +typedef CGDisplayReservationInterval = ffi.Float; +typedef DartCGDisplayReservationInterval = double; + +final class CGDisplayStream extends ffi.Opaque {} + +typedef CGDisplayStreamFrameAvailableHandler = ffi.Pointer; +typedef DartCGDisplayStreamFrameAvailableHandler = + objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >; + +enum CGDisplayStreamFrameStatus { + kCGDisplayStreamFrameStatusFrameComplete(0), + kCGDisplayStreamFrameStatusFrameIdle(1), + kCGDisplayStreamFrameStatusFrameBlank(2), + kCGDisplayStreamFrameStatusStopped(3); + + final int value; + const CGDisplayStreamFrameStatus(this.value); + + static CGDisplayStreamFrameStatus fromValue(int value) => switch (value) { + 0 => kCGDisplayStreamFrameStatusFrameComplete, + 1 => kCGDisplayStreamFrameStatusFrameIdle, + 2 => kCGDisplayStreamFrameStatusFrameBlank, + 3 => kCGDisplayStreamFrameStatusStopped, + _ => throw ArgumentError( + 'Unknown value for CGDisplayStreamFrameStatus: $value', + ), + }; +} + +typedef CGDisplayStreamRef = ffi.Pointer; + +final class CGDisplayStreamUpdate extends ffi.Opaque {} + +enum CGDisplayStreamUpdateRectType { + kCGDisplayStreamUpdateRefreshedRects(0), + kCGDisplayStreamUpdateMovedRects(1), + kCGDisplayStreamUpdateDirtyRects(2), + kCGDisplayStreamUpdateReducedDirtyRects(3); + + final int value; + const CGDisplayStreamUpdateRectType(this.value); + + static CGDisplayStreamUpdateRectType fromValue(int value) => switch (value) { + 0 => kCGDisplayStreamUpdateRefreshedRects, + 1 => kCGDisplayStreamUpdateMovedRects, + 2 => kCGDisplayStreamUpdateDirtyRects, + 3 => kCGDisplayStreamUpdateReducedDirtyRects, + _ => throw ArgumentError( + 'Unknown value for CGDisplayStreamUpdateRectType: $value', + ), + }; +} + +typedef CGDisplayStreamUpdateRef = ffi.Pointer; + +enum CGError { + kCGErrorSuccess(0), + kCGErrorFailure(1000), + kCGErrorIllegalArgument(1001), + kCGErrorInvalidConnection(1002), + kCGErrorInvalidContext(1003), + kCGErrorCannotComplete(1004), + kCGErrorNotImplemented(1006), + kCGErrorRangeCheck(1007), + kCGErrorTypeCheck(1008), + kCGErrorInvalidOperation(1010), + kCGErrorNoneAvailable(1011); + + final int value; + const CGError(this.value); + + static CGError fromValue(int value) => switch (value) { + 0 => kCGErrorSuccess, + 1000 => kCGErrorFailure, + 1001 => kCGErrorIllegalArgument, + 1002 => kCGErrorInvalidConnection, + 1003 => kCGErrorInvalidContext, + 1004 => kCGErrorCannotComplete, + 1006 => kCGErrorNotImplemented, + 1007 => kCGErrorRangeCheck, + 1008 => kCGErrorTypeCheck, + 1010 => kCGErrorInvalidOperation, + 1011 => kCGErrorNoneAvailable, + _ => throw ArgumentError('Unknown value for CGError: $value'), + }; +} + +typedef CGErrorCallback = + ffi.Pointer>; +typedef CGErrorCallbackFunction = ffi.Void Function(); +typedef DartCGErrorCallbackFunction = void Function(); + +enum CGEventField { + kCGMouseEventNumber(0), + kCGMouseEventClickState(1), + kCGMouseEventPressure(2), + kCGMouseEventButtonNumber(3), + kCGMouseEventDeltaX(4), + kCGMouseEventDeltaY(5), + kCGMouseEventInstantMouser(6), + kCGMouseEventSubtype(7), + kCGKeyboardEventAutorepeat(8), + kCGKeyboardEventKeycode(9), + kCGKeyboardEventKeyboardType(10), + kCGScrollWheelEventDeltaAxis1(11), + kCGScrollWheelEventDeltaAxis2(12), + kCGScrollWheelEventDeltaAxis3(13), + kCGScrollWheelEventFixedPtDeltaAxis1(93), + kCGScrollWheelEventFixedPtDeltaAxis2(94), + kCGScrollWheelEventFixedPtDeltaAxis3(95), + kCGScrollWheelEventPointDeltaAxis1(96), + kCGScrollWheelEventPointDeltaAxis2(97), + kCGScrollWheelEventPointDeltaAxis3(98), + kCGScrollWheelEventScrollPhase(99), + kCGScrollWheelEventScrollCount(100), + kCGScrollWheelEventMomentumPhase(123), + kCGScrollWheelEventInstantMouser(14), + kCGTabletEventPointX(15), + kCGTabletEventPointY(16), + kCGTabletEventPointZ(17), + kCGTabletEventPointButtons(18), + kCGTabletEventPointPressure(19), + kCGTabletEventTiltX(20), + kCGTabletEventTiltY(21), + kCGTabletEventRotation(22), + kCGTabletEventTangentialPressure(23), + kCGTabletEventDeviceID(24), + kCGTabletEventVendor1(25), + kCGTabletEventVendor2(26), + kCGTabletEventVendor3(27), + kCGTabletProximityEventVendorID(28), + kCGTabletProximityEventTabletID(29), + kCGTabletProximityEventPointerID(30), + kCGTabletProximityEventDeviceID(31), + kCGTabletProximityEventSystemTabletID(32), + kCGTabletProximityEventVendorPointerType(33), + kCGTabletProximityEventVendorPointerSerialNumber(34), + kCGTabletProximityEventVendorUniqueID(35), + kCGTabletProximityEventCapabilityMask(36), + kCGTabletProximityEventPointerType(37), + kCGTabletProximityEventEnterProximity(38), + kCGEventTargetProcessSerialNumber(39), + kCGEventTargetUnixProcessID(40), + kCGEventSourceUnixProcessID(41), + kCGEventSourceUserData(42), + kCGEventSourceUserID(43), + kCGEventSourceGroupID(44), + kCGEventSourceStateID(45), + kCGScrollWheelEventIsContinuous(88), + kCGMouseEventWindowUnderMousePointer(91), + kCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent(92), + kCGEventUnacceleratedPointerMovementX(170), + kCGEventUnacceleratedPointerMovementY(171), + kCGScrollWheelEventMomentumOptionPhase(173), + kCGScrollWheelEventAcceleratedDeltaAxis1(176), + kCGScrollWheelEventAcceleratedDeltaAxis2(175), + kCGScrollWheelEventRawDeltaAxis1(178), + kCGScrollWheelEventRawDeltaAxis2(177); + + final int value; + const CGEventField(this.value); + + static CGEventField fromValue(int value) => switch (value) { + 0 => kCGMouseEventNumber, + 1 => kCGMouseEventClickState, + 2 => kCGMouseEventPressure, + 3 => kCGMouseEventButtonNumber, + 4 => kCGMouseEventDeltaX, + 5 => kCGMouseEventDeltaY, + 6 => kCGMouseEventInstantMouser, + 7 => kCGMouseEventSubtype, + 8 => kCGKeyboardEventAutorepeat, + 9 => kCGKeyboardEventKeycode, + 10 => kCGKeyboardEventKeyboardType, + 11 => kCGScrollWheelEventDeltaAxis1, + 12 => kCGScrollWheelEventDeltaAxis2, + 13 => kCGScrollWheelEventDeltaAxis3, + 93 => kCGScrollWheelEventFixedPtDeltaAxis1, + 94 => kCGScrollWheelEventFixedPtDeltaAxis2, + 95 => kCGScrollWheelEventFixedPtDeltaAxis3, + 96 => kCGScrollWheelEventPointDeltaAxis1, + 97 => kCGScrollWheelEventPointDeltaAxis2, + 98 => kCGScrollWheelEventPointDeltaAxis3, + 99 => kCGScrollWheelEventScrollPhase, + 100 => kCGScrollWheelEventScrollCount, + 123 => kCGScrollWheelEventMomentumPhase, + 14 => kCGScrollWheelEventInstantMouser, + 15 => kCGTabletEventPointX, + 16 => kCGTabletEventPointY, + 17 => kCGTabletEventPointZ, + 18 => kCGTabletEventPointButtons, + 19 => kCGTabletEventPointPressure, + 20 => kCGTabletEventTiltX, + 21 => kCGTabletEventTiltY, + 22 => kCGTabletEventRotation, + 23 => kCGTabletEventTangentialPressure, + 24 => kCGTabletEventDeviceID, + 25 => kCGTabletEventVendor1, + 26 => kCGTabletEventVendor2, + 27 => kCGTabletEventVendor3, + 28 => kCGTabletProximityEventVendorID, + 29 => kCGTabletProximityEventTabletID, + 30 => kCGTabletProximityEventPointerID, + 31 => kCGTabletProximityEventDeviceID, + 32 => kCGTabletProximityEventSystemTabletID, + 33 => kCGTabletProximityEventVendorPointerType, + 34 => kCGTabletProximityEventVendorPointerSerialNumber, + 35 => kCGTabletProximityEventVendorUniqueID, + 36 => kCGTabletProximityEventCapabilityMask, + 37 => kCGTabletProximityEventPointerType, + 38 => kCGTabletProximityEventEnterProximity, + 39 => kCGEventTargetProcessSerialNumber, + 40 => kCGEventTargetUnixProcessID, + 41 => kCGEventSourceUnixProcessID, + 42 => kCGEventSourceUserData, + 43 => kCGEventSourceUserID, + 44 => kCGEventSourceGroupID, + 45 => kCGEventSourceStateID, + 88 => kCGScrollWheelEventIsContinuous, + 91 => kCGMouseEventWindowUnderMousePointer, + 92 => kCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent, + 170 => kCGEventUnacceleratedPointerMovementX, + 171 => kCGEventUnacceleratedPointerMovementY, + 173 => kCGScrollWheelEventMomentumOptionPhase, + 176 => kCGScrollWheelEventAcceleratedDeltaAxis1, + 175 => kCGScrollWheelEventAcceleratedDeltaAxis2, + 178 => kCGScrollWheelEventRawDeltaAxis1, + 177 => kCGScrollWheelEventRawDeltaAxis2, + _ => throw ArgumentError('Unknown value for CGEventField: $value'), + }; +} + +sealed class CGEventFilterMask { + static const kCGEventFilterMaskPermitLocalMouseEvents = 1; + static const kCGEventFilterMaskPermitLocalKeyboardEvents = 2; + static const kCGEventFilterMaskPermitSystemDefinedEvents = 4; +} + +sealed class CGEventFlags { + static const kCGEventFlagMaskAlphaShift = 65536; + static const kCGEventFlagMaskShift = 131072; + static const kCGEventFlagMaskControl = 262144; + static const kCGEventFlagMaskAlternate = 524288; + static const kCGEventFlagMaskCommand = 1048576; + static const kCGEventFlagMaskHelp = 4194304; + static const kCGEventFlagMaskSecondaryFn = 8388608; + static const kCGEventFlagMaskNumericPad = 2097152; + static const kCGEventFlagMaskNonCoalesced = 256; +} + +typedef CGEventMask = ffi.Uint64; +typedef DartCGEventMask = int; + +enum CGEventMouseSubtype { + kCGEventMouseSubtypeDefault(0), + kCGEventMouseSubtypeTabletPoint(1), + kCGEventMouseSubtypeTabletProximity(2); + + final int value; + const CGEventMouseSubtype(this.value); + + static CGEventMouseSubtype fromValue(int value) => switch (value) { + 0 => kCGEventMouseSubtypeDefault, + 1 => kCGEventMouseSubtypeTabletPoint, + 2 => kCGEventMouseSubtypeTabletProximity, + _ => throw ArgumentError('Unknown value for CGEventMouseSubtype: $value'), + }; +} + +typedef CGEventRef = ffi.Pointer<__CGEvent>; +typedef CGEventSourceKeyboardType = ffi.Uint32; +typedef DartCGEventSourceKeyboardType = int; +typedef CGEventSourceRef = ffi.Pointer<__CGEventSource>; + +enum CGEventSourceStateID { + kCGEventSourceStatePrivate(-1), + kCGEventSourceStateCombinedSessionState(0), + kCGEventSourceStateHIDSystemState(1); + + final int value; + const CGEventSourceStateID(this.value); + + static CGEventSourceStateID fromValue(int value) => switch (value) { + -1 => kCGEventSourceStatePrivate, + 0 => kCGEventSourceStateCombinedSessionState, + 1 => kCGEventSourceStateHIDSystemState, + _ => throw ArgumentError('Unknown value for CGEventSourceStateID: $value'), + }; +} + +enum CGEventSuppressionState { + kCGEventSuppressionStateSuppressionInterval(0), + kCGEventSuppressionStateRemoteMouseDrag(1), + kCGNumberOfEventSuppressionStates(2); + + final int value; + const CGEventSuppressionState(this.value); + + static CGEventSuppressionState fromValue(int value) => switch (value) { + 0 => kCGEventSuppressionStateSuppressionInterval, + 1 => kCGEventSuppressionStateRemoteMouseDrag, + 2 => kCGNumberOfEventSuppressionStates, + _ => throw ArgumentError( + 'Unknown value for CGEventSuppressionState: $value', + ), + }; +} + +typedef CGEventTapCallBack = + ffi.Pointer>; +typedef CGEventTapCallBackFunction = + CGEventRef Function( + CGEventTapProxy proxy, + ffi.Uint32 type, + CGEventRef event, + ffi.Pointer userInfo, + ); +typedef DartCGEventTapCallBackFunction = + CGEventRef Function( + CGEventTapProxy proxy, + CGEventType type, + CGEventRef event, + ffi.Pointer userInfo, + ); +typedef CGEventTapInformation = __CGEventTapInformation; + +enum CGEventTapLocation { + kCGHIDEventTap(0), + kCGSessionEventTap(1), + kCGAnnotatedSessionEventTap(2); + + final int value; + const CGEventTapLocation(this.value); + + static CGEventTapLocation fromValue(int value) => switch (value) { + 0 => kCGHIDEventTap, + 1 => kCGSessionEventTap, + 2 => kCGAnnotatedSessionEventTap, + _ => throw ArgumentError('Unknown value for CGEventTapLocation: $value'), + }; +} + +enum CGEventTapOptions { + kCGEventTapOptionDefault(0), + kCGEventTapOptionListenOnly(1); + + final int value; + const CGEventTapOptions(this.value); + + static CGEventTapOptions fromValue(int value) => switch (value) { + 0 => kCGEventTapOptionDefault, + 1 => kCGEventTapOptionListenOnly, + _ => throw ArgumentError('Unknown value for CGEventTapOptions: $value'), + }; +} + +enum CGEventTapPlacement { + kCGHeadInsertEventTap(0), + kCGTailAppendEventTap(1); + + final int value; + const CGEventTapPlacement(this.value); + + static CGEventTapPlacement fromValue(int value) => switch (value) { + 0 => kCGHeadInsertEventTap, + 1 => kCGTailAppendEventTap, + _ => throw ArgumentError('Unknown value for CGEventTapPlacement: $value'), + }; +} + +typedef CGEventTapProxy = ffi.Pointer<__CGEventTapProxy>; +typedef CGEventTimestamp = ffi.Uint64; +typedef DartCGEventTimestamp = int; + +enum CGEventType { + kCGEventNull(0), + kCGEventLeftMouseDown(1), + kCGEventLeftMouseUp(2), + kCGEventRightMouseDown(3), + kCGEventRightMouseUp(4), + kCGEventMouseMoved(5), + kCGEventLeftMouseDragged(6), + kCGEventRightMouseDragged(7), + kCGEventKeyDown(10), + kCGEventKeyUp(11), + kCGEventFlagsChanged(12), + kCGEventScrollWheel(22), + kCGEventTabletPointer(23), + kCGEventTabletProximity(24), + kCGEventOtherMouseDown(25), + kCGEventOtherMouseUp(26), + kCGEventOtherMouseDragged(27), + kCGEventTapDisabledByTimeout(-2), + kCGEventTapDisabledByUserInput(-1); + + final int value; + const CGEventType(this.value); + + static CGEventType fromValue(int value) => switch (value) { + 0 => kCGEventNull, + 1 => kCGEventLeftMouseDown, + 2 => kCGEventLeftMouseUp, + 3 => kCGEventRightMouseDown, + 4 => kCGEventRightMouseUp, + 5 => kCGEventMouseMoved, + 6 => kCGEventLeftMouseDragged, + 7 => kCGEventRightMouseDragged, + 10 => kCGEventKeyDown, + 11 => kCGEventKeyUp, + 12 => kCGEventFlagsChanged, + 22 => kCGEventScrollWheel, + 23 => kCGEventTabletPointer, + 24 => kCGEventTabletProximity, + 25 => kCGEventOtherMouseDown, + 26 => kCGEventOtherMouseUp, + 27 => kCGEventOtherMouseDragged, + -2 => kCGEventTapDisabledByTimeout, + -1 => kCGEventTapDisabledByUserInput, + _ => throw ArgumentError('Unknown value for CGEventType: $value'), + }; +} + +typedef CGFloat = ffi.Double; +typedef DartCGFloat = double; + +final class CGFont extends ffi.Opaque {} + +typedef CGFontIndex = ffi.UnsignedShort; +typedef DartCGFontIndex = int; + +enum CGFontPostScriptFormat { + kCGFontPostScriptFormatType1(1), + kCGFontPostScriptFormatType3(3), + kCGFontPostScriptFormatType42(42); + + final int value; + const CGFontPostScriptFormat(this.value); + + static CGFontPostScriptFormat fromValue(int value) => switch (value) { + 1 => kCGFontPostScriptFormatType1, + 3 => kCGFontPostScriptFormatType3, + 42 => kCGFontPostScriptFormatType42, + _ => throw ArgumentError( + 'Unknown value for CGFontPostScriptFormat: $value', + ), + }; +} + +typedef CGFontRef = ffi.Pointer; + +final class CGFunction extends ffi.Opaque {} + +final class CGFunctionCallbacks extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external CGFunctionEvaluateCallback evaluate; + + external CGFunctionReleaseInfoCallback releaseInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CGFunctionEvaluateCallback evaluate, + required CGFunctionReleaseInfoCallback releaseInfo, + }) => $allocator() + ..ref.version = version + ..ref.evaluate = evaluate + ..ref.releaseInfo = releaseInfo; +} + +typedef CGFunctionEvaluateCallback = + ffi.Pointer>; +typedef CGFunctionEvaluateCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer in$, + ffi.Pointer out, + ); +typedef DartCGFunctionEvaluateCallbackFunction = + void Function( + ffi.Pointer info, + ffi.Pointer in$, + ffi.Pointer out, + ); +typedef CGFunctionRef = ffi.Pointer; +typedef CGFunctionReleaseInfoCallback = + ffi.Pointer>; +typedef CGFunctionReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGFunctionReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGGammaValue = ffi.Float; +typedef DartCGGammaValue = double; + +enum CGGesturePhase { + kCGGesturePhaseNone(0), + kCGGesturePhaseBegan(1), + kCGGesturePhaseChanged(2), + kCGGesturePhaseEnded(4), + kCGGesturePhaseCancelled(8), + kCGGesturePhaseMayBegin(128); + + final int value; + const CGGesturePhase(this.value); + + static CGGesturePhase fromValue(int value) => switch (value) { + 0 => kCGGesturePhaseNone, + 1 => kCGGesturePhaseBegan, + 2 => kCGGesturePhaseChanged, + 4 => kCGGesturePhaseEnded, + 8 => kCGGesturePhaseCancelled, + 128 => kCGGesturePhaseMayBegin, + _ => throw ArgumentError('Unknown value for CGGesturePhase: $value'), + }; +} + +typedef CGGlyph = CGFontIndex; + +enum CGGlyphDeprecatedEnum { + CGGlyphMin(0), + CGGlyphMax(1); + + final int value; + const CGGlyphDeprecatedEnum(this.value); + + static CGGlyphDeprecatedEnum fromValue(int value) => switch (value) { + 0 => CGGlyphMin, + 1 => CGGlyphMax, + _ => throw ArgumentError('Unknown value for CGGlyphDeprecatedEnum: $value'), + }; +} + +final class CGGradient extends ffi.Opaque {} + +sealed class CGGradientDrawingOptions { + static const kCGGradientDrawsBeforeStartLocation = 1; + static const kCGGradientDrawsAfterEndLocation = 2; +} + +typedef CGGradientRef = ffi.Pointer; + +final class CGImage extends ffi.Opaque {} + +enum CGImageAlphaInfo { + kCGImageAlphaNone(0), + kCGImageAlphaPremultipliedLast(1), + kCGImageAlphaPremultipliedFirst(2), + kCGImageAlphaLast(3), + kCGImageAlphaFirst(4), + kCGImageAlphaNoneSkipLast(5), + kCGImageAlphaNoneSkipFirst(6), + kCGImageAlphaOnly(7); + + final int value; + const CGImageAlphaInfo(this.value); + + static CGImageAlphaInfo fromValue(int value) => switch (value) { + 0 => kCGImageAlphaNone, + 1 => kCGImageAlphaPremultipliedLast, + 2 => kCGImageAlphaPremultipliedFirst, + 3 => kCGImageAlphaLast, + 4 => kCGImageAlphaFirst, + 5 => kCGImageAlphaNoneSkipLast, + 6 => kCGImageAlphaNoneSkipFirst, + 7 => kCGImageAlphaOnly, + _ => throw ArgumentError('Unknown value for CGImageAlphaInfo: $value'), + }; +} + +enum CGImageAnimationStatus { + kCGImageAnimationStatus_ParameterError(-22140), + kCGImageAnimationStatus_CorruptInputImage(-22141), + kCGImageAnimationStatus_UnsupportedFormat(-22142), + kCGImageAnimationStatus_IncompleteInputImage(-22143), + kCGImageAnimationStatus_AllocationFailure(-22144); + + final int value; + const CGImageAnimationStatus(this.value); + + static CGImageAnimationStatus fromValue(int value) => switch (value) { + -22140 => kCGImageAnimationStatus_ParameterError, + -22141 => kCGImageAnimationStatus_CorruptInputImage, + -22142 => kCGImageAnimationStatus_UnsupportedFormat, + -22143 => kCGImageAnimationStatus_IncompleteInputImage, + -22144 => kCGImageAnimationStatus_AllocationFailure, + _ => throw ArgumentError( + 'Unknown value for CGImageAnimationStatus: $value', + ), + }; +} + +enum CGImageByteOrderInfo { + kCGImageByteOrderMask(28672), + kCGImageByteOrderDefault(0), + kCGImageByteOrder16Little(4096), + kCGImageByteOrder32Little(8192), + kCGImageByteOrder16Big(12288), + kCGImageByteOrder32Big(16384); + + static const kCGImageByteOrder16Host = kCGImageByteOrder16Little; + static const kCGImageByteOrder32Host = kCGImageByteOrder32Little; + + final int value; + const CGImageByteOrderInfo(this.value); + + static CGImageByteOrderInfo fromValue(int value) => switch (value) { + 28672 => kCGImageByteOrderMask, + 0 => kCGImageByteOrderDefault, + 4096 => kCGImageByteOrder16Little, + 8192 => kCGImageByteOrder32Little, + 12288 => kCGImageByteOrder16Big, + 16384 => kCGImageByteOrder32Big, + _ => throw ArgumentError('Unknown value for CGImageByteOrderInfo: $value'), + }; + + @override + String toString() { + if (this == kCGImageByteOrder16Little) + return "CGImageByteOrderInfo.kCGImageByteOrder16Little, CGImageByteOrderInfo.kCGImageByteOrder16Host"; + if (this == kCGImageByteOrder32Little) + return "CGImageByteOrderInfo.kCGImageByteOrder32Little, CGImageByteOrderInfo.kCGImageByteOrder32Host"; + return super.toString(); + } +} + +enum CGImageComponentInfo { + kCGImageComponentInteger(0), + kCGImageComponentFloat(256); + + final int value; + const CGImageComponentInfo(this.value); + + static CGImageComponentInfo fromValue(int value) => switch (value) { + 0 => kCGImageComponentInteger, + 256 => kCGImageComponentFloat, + _ => throw ArgumentError('Unknown value for CGImageComponentInfo: $value'), + }; +} + +final class CGImageDestination extends ffi.Opaque {} + +typedef CGImageDestinationRef = ffi.Pointer; + +final class CGImageMetadata extends ffi.Opaque {} + +enum CGImageMetadataErrors { + kCGImageMetadataErrorUnknown(0), + kCGImageMetadataErrorUnsupportedFormat(1), + kCGImageMetadataErrorBadArgument(2), + kCGImageMetadataErrorConflictingArguments(3), + kCGImageMetadataErrorPrefixConflict(4); + + final int value; + const CGImageMetadataErrors(this.value); + + static CGImageMetadataErrors fromValue(int value) => switch (value) { + 0 => kCGImageMetadataErrorUnknown, + 1 => kCGImageMetadataErrorUnsupportedFormat, + 2 => kCGImageMetadataErrorBadArgument, + 3 => kCGImageMetadataErrorConflictingArguments, + 4 => kCGImageMetadataErrorPrefixConflict, + _ => throw ArgumentError('Unknown value for CGImageMetadataErrors: $value'), + }; +} + +typedef CGImageMetadataRef = ffi.Pointer; + +final class CGImageMetadataTag extends ffi.Opaque {} + +typedef CGImageMetadataTagBlock = ffi.Pointer; +typedef DartCGImageMetadataTagBlock = + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >; +typedef CGImageMetadataTagRef = ffi.Pointer; + +enum CGImageMetadataType { + kCGImageMetadataTypeInvalid(-1), + kCGImageMetadataTypeDefault(0), + kCGImageMetadataTypeString(1), + kCGImageMetadataTypeArrayUnordered(2), + kCGImageMetadataTypeArrayOrdered(3), + kCGImageMetadataTypeAlternateArray(4), + kCGImageMetadataTypeAlternateText(5), + kCGImageMetadataTypeStructure(6); + + final int value; + const CGImageMetadataType(this.value); + + static CGImageMetadataType fromValue(int value) => switch (value) { + -1 => kCGImageMetadataTypeInvalid, + 0 => kCGImageMetadataTypeDefault, + 1 => kCGImageMetadataTypeString, + 2 => kCGImageMetadataTypeArrayUnordered, + 3 => kCGImageMetadataTypeArrayOrdered, + 4 => kCGImageMetadataTypeAlternateArray, + 5 => kCGImageMetadataTypeAlternateText, + 6 => kCGImageMetadataTypeStructure, + _ => throw ArgumentError('Unknown value for CGImageMetadataType: $value'), + }; +} + +enum CGImagePixelFormatInfo { + kCGImagePixelFormatMask(983040), + kCGImagePixelFormatPacked(0), + kCGImagePixelFormatRGB555(65536), + kCGImagePixelFormatRGB565(131072), + kCGImagePixelFormatRGB101010(196608), + kCGImagePixelFormatRGBCIF10(262144); + + final int value; + const CGImagePixelFormatInfo(this.value); + + static CGImagePixelFormatInfo fromValue(int value) => switch (value) { + 983040 => kCGImagePixelFormatMask, + 0 => kCGImagePixelFormatPacked, + 65536 => kCGImagePixelFormatRGB555, + 131072 => kCGImagePixelFormatRGB565, + 196608 => kCGImagePixelFormatRGB101010, + 262144 => kCGImagePixelFormatRGBCIF10, + _ => throw ArgumentError( + 'Unknown value for CGImagePixelFormatInfo: $value', + ), + }; +} + +enum CGImagePropertyOrientation { + kCGImagePropertyOrientationUp(1), + kCGImagePropertyOrientationUpMirrored(2), + kCGImagePropertyOrientationDown(3), + kCGImagePropertyOrientationDownMirrored(4), + kCGImagePropertyOrientationLeftMirrored(5), + kCGImagePropertyOrientationRight(6), + kCGImagePropertyOrientationRightMirrored(7), + kCGImagePropertyOrientationLeft(8); + + final int value; + const CGImagePropertyOrientation(this.value); + + static CGImagePropertyOrientation fromValue(int value) => switch (value) { + 1 => kCGImagePropertyOrientationUp, + 2 => kCGImagePropertyOrientationUpMirrored, + 3 => kCGImagePropertyOrientationDown, + 4 => kCGImagePropertyOrientationDownMirrored, + 5 => kCGImagePropertyOrientationLeftMirrored, + 6 => kCGImagePropertyOrientationRight, + 7 => kCGImagePropertyOrientationRightMirrored, + 8 => kCGImagePropertyOrientationLeft, + _ => throw ArgumentError( + 'Unknown value for CGImagePropertyOrientation: $value', + ), + }; +} + +enum CGImagePropertyTGACompression { + kCGImageTGACompressionNone(0), + kCGImageTGACompressionRLE(1); + + final int value; + const CGImagePropertyTGACompression(this.value); + + static CGImagePropertyTGACompression fromValue(int value) => switch (value) { + 0 => kCGImageTGACompressionNone, + 1 => kCGImageTGACompressionRLE, + _ => throw ArgumentError( + 'Unknown value for CGImagePropertyTGACompression: $value', + ), + }; +} + +typedef CGImageRef = ffi.Pointer; + +final class CGImageSource extends ffi.Opaque {} + +typedef CGImageSourceAnimationBlock = ffi.Pointer; +typedef DartCGImageSourceAnimationBlock = + objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >; +typedef CGImageSourceRef = ffi.Pointer; + +enum CGImageSourceStatus { + kCGImageStatusUnexpectedEOF(-5), + kCGImageStatusInvalidData(-4), + kCGImageStatusUnknownType(-3), + kCGImageStatusReadingHeader(-2), + kCGImageStatusIncomplete(-1), + kCGImageStatusComplete(0); + + final int value; + const CGImageSourceStatus(this.value); + + static CGImageSourceStatus fromValue(int value) => switch (value) { + -5 => kCGImageStatusUnexpectedEOF, + -4 => kCGImageStatusInvalidData, + -3 => kCGImageStatusUnknownType, + -2 => kCGImageStatusReadingHeader, + -1 => kCGImageStatusIncomplete, + 0 => kCGImageStatusComplete, + _ => throw ArgumentError('Unknown value for CGImageSourceStatus: $value'), + }; +} + +enum CGInterpolationQuality { + kCGInterpolationDefault(0), + kCGInterpolationNone(1), + kCGInterpolationLow(2), + kCGInterpolationMedium(4), + kCGInterpolationHigh(3); + + final int value; + const CGInterpolationQuality(this.value); + + static CGInterpolationQuality fromValue(int value) => switch (value) { + 0 => kCGInterpolationDefault, + 1 => kCGInterpolationNone, + 2 => kCGInterpolationLow, + 4 => kCGInterpolationMedium, + 3 => kCGInterpolationHigh, + _ => throw ArgumentError( + 'Unknown value for CGInterpolationQuality: $value', + ), + }; +} + +typedef CGKeyCode = ffi.Uint16; +typedef DartCGKeyCode = int; + +enum CGLCPContextPriorityRequest { + kCGLCPContextPriorityRequestHigh(0), + kCGLCPContextPriorityRequestNormal(1), + kCGLCPContextPriorityRequestLow(2); + + final int value; + const CGLCPContextPriorityRequest(this.value); + + static CGLCPContextPriorityRequest fromValue(int value) => switch (value) { + 0 => kCGLCPContextPriorityRequestHigh, + 1 => kCGLCPContextPriorityRequestNormal, + 2 => kCGLCPContextPriorityRequestLow, + _ => throw ArgumentError( + 'Unknown value for CGLCPContextPriorityRequest: $value', + ), + }; +} + +typedef CGLContextObj = ffi.Pointer<_CGLContextObject>; +typedef CGLPBufferObj = ffi.Pointer<_CGLPBufferObject>; +typedef CGLPixelFormatObj = ffi.Pointer<_CGLPixelFormatObject>; +typedef CGLRendererInfoObj = ffi.Pointer<_CGLRendererInfoObject>; +typedef CGLShareGroupObj = ffi.Pointer; + +final class CGLShareGroupRec extends ffi.Opaque {} + +final class CGLayer extends ffi.Opaque {} + +typedef CGLayerRef = ffi.Pointer; + +enum CGLineCap { + kCGLineCapButt(0), + kCGLineCapRound(1), + kCGLineCapSquare(2); + + final int value; + const CGLineCap(this.value); + + static CGLineCap fromValue(int value) => switch (value) { + 0 => kCGLineCapButt, + 1 => kCGLineCapRound, + 2 => kCGLineCapSquare, + _ => throw ArgumentError('Unknown value for CGLineCap: $value'), + }; +} + +enum CGLineJoin { + kCGLineJoinMiter(0), + kCGLineJoinRound(1), + kCGLineJoinBevel(2); + + final int value; + const CGLineJoin(this.value); + + static CGLineJoin fromValue(int value) => switch (value) { + 0 => kCGLineJoinMiter, + 1 => kCGLineJoinRound, + 2 => kCGLineJoinBevel, + _ => throw ArgumentError('Unknown value for CGLineJoin: $value'), + }; +} + +enum CGMomentumScrollPhase { + kCGMomentumScrollPhaseNone(0), + kCGMomentumScrollPhaseBegin(1), + kCGMomentumScrollPhaseContinue(2), + kCGMomentumScrollPhaseEnd(3); + + final int value; + const CGMomentumScrollPhase(this.value); + + static CGMomentumScrollPhase fromValue(int value) => switch (value) { + 0 => kCGMomentumScrollPhaseNone, + 1 => kCGMomentumScrollPhaseBegin, + 2 => kCGMomentumScrollPhaseContinue, + 3 => kCGMomentumScrollPhaseEnd, + _ => throw ArgumentError('Unknown value for CGMomentumScrollPhase: $value'), + }; +} + +enum CGMouseButton { + kCGMouseButtonLeft(0), + kCGMouseButtonRight(1), + kCGMouseButtonCenter(2); + + final int value; + const CGMouseButton(this.value); + + static CGMouseButton fromValue(int value) => switch (value) { + 0 => kCGMouseButtonLeft, + 1 => kCGMouseButtonRight, + 2 => kCGMouseButtonCenter, + _ => throw ArgumentError('Unknown value for CGMouseButton: $value'), + }; +} + +typedef CGMutableImageMetadataRef = ffi.Pointer; +typedef CGMutablePathRef = ffi.Pointer; +typedef CGOpenGLDisplayMask = ffi.Uint32; +typedef DartCGOpenGLDisplayMask = int; + +sealed class CGPDFAccessPermissions { + static const kCGPDFAllowsLowQualityPrinting = 1; + static const kCGPDFAllowsHighQualityPrinting = 2; + static const kCGPDFAllowsDocumentChanges = 4; + static const kCGPDFAllowsDocumentAssembly = 8; + static const kCGPDFAllowsContentCopying = 16; + static const kCGPDFAllowsContentAccessibility = 32; + static const kCGPDFAllowsCommenting = 64; + static const kCGPDFAllowsFormFieldEntry = 128; +} + +final class CGPDFArray extends ffi.Opaque {} + +typedef CGPDFArrayApplierBlock = ffi.Pointer; +typedef DartCGPDFArrayApplierBlock = + objc.ObjCBlock< + ffi.Bool Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + >; +typedef CGPDFArrayRef = ffi.Pointer; +typedef CGPDFBoolean = ffi.UnsignedChar; +typedef DartCGPDFBoolean = int; + +enum CGPDFBox { + kCGPDFMediaBox(0), + kCGPDFCropBox(1), + kCGPDFBleedBox(2), + kCGPDFTrimBox(3), + kCGPDFArtBox(4); + + final int value; + const CGPDFBox(this.value); + + static CGPDFBox fromValue(int value) => switch (value) { + 0 => kCGPDFMediaBox, + 1 => kCGPDFCropBox, + 2 => kCGPDFBleedBox, + 3 => kCGPDFTrimBox, + 4 => kCGPDFArtBox, + _ => throw ArgumentError('Unknown value for CGPDFBox: $value'), + }; +} + +final class CGPDFContentStream extends ffi.Opaque {} + +typedef CGPDFContentStreamRef = ffi.Pointer; + +enum CGPDFDataFormat { + CGPDFDataFormatRaw(0), + CGPDFDataFormatJPEGEncoded(1), + CGPDFDataFormatJPEG2000(2); + + final int value; + const CGPDFDataFormat(this.value); + + static CGPDFDataFormat fromValue(int value) => switch (value) { + 0 => CGPDFDataFormatRaw, + 1 => CGPDFDataFormatJPEGEncoded, + 2 => CGPDFDataFormatJPEG2000, + _ => throw ArgumentError('Unknown value for CGPDFDataFormat: $value'), + }; +} + +final class CGPDFDictionary extends ffi.Opaque {} + +typedef CGPDFDictionaryApplierBlock = ffi.Pointer; +typedef DartCGPDFDictionaryApplierBlock = + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >; +typedef CGPDFDictionaryApplierFunction = + ffi.Pointer>; +typedef CGPDFDictionaryApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer key, + CGPDFObjectRef value, + ffi.Pointer info, + ); +typedef DartCGPDFDictionaryApplierFunctionFunction = + void Function( + ffi.Pointer key, + CGPDFObjectRef value, + ffi.Pointer info, + ); +typedef CGPDFDictionaryRef = ffi.Pointer; + +final class CGPDFDocument extends ffi.Opaque {} + +typedef CGPDFDocumentRef = ffi.Pointer; +typedef CGPDFInteger = ffi.Long; +typedef DartCGPDFInteger = int; + +final class CGPDFObject extends ffi.Opaque {} + +typedef CGPDFObjectRef = ffi.Pointer; + +enum CGPDFObjectType { + kCGPDFObjectTypeNull(1), + kCGPDFObjectTypeBoolean(2), + kCGPDFObjectTypeInteger(3), + kCGPDFObjectTypeReal(4), + kCGPDFObjectTypeName(5), + kCGPDFObjectTypeString(6), + kCGPDFObjectTypeArray(7), + kCGPDFObjectTypeDictionary(8), + kCGPDFObjectTypeStream(9); + + final int value; + const CGPDFObjectType(this.value); + + static CGPDFObjectType fromValue(int value) => switch (value) { + 1 => kCGPDFObjectTypeNull, + 2 => kCGPDFObjectTypeBoolean, + 3 => kCGPDFObjectTypeInteger, + 4 => kCGPDFObjectTypeReal, + 5 => kCGPDFObjectTypeName, + 6 => kCGPDFObjectTypeString, + 7 => kCGPDFObjectTypeArray, + 8 => kCGPDFObjectTypeDictionary, + 9 => kCGPDFObjectTypeStream, + _ => throw ArgumentError('Unknown value for CGPDFObjectType: $value'), + }; +} + +typedef CGPDFOperatorCallback = + ffi.Pointer>; +typedef CGPDFOperatorCallbackFunction = + ffi.Void Function(CGPDFScannerRef scanner, ffi.Pointer info); +typedef DartCGPDFOperatorCallbackFunction = + void Function(CGPDFScannerRef scanner, ffi.Pointer info); + +final class CGPDFOperatorTable extends ffi.Opaque {} + +typedef CGPDFOperatorTableRef = ffi.Pointer; + +final class CGPDFPage extends ffi.Opaque {} + +typedef CGPDFPageRef = ffi.Pointer; +typedef CGPDFReal = CGFloat; + +final class CGPDFScanner extends ffi.Opaque {} + +typedef CGPDFScannerRef = ffi.Pointer; + +final class CGPDFStream extends ffi.Opaque {} + +typedef CGPDFStreamRef = ffi.Pointer; + +final class CGPDFString extends ffi.Opaque {} + +typedef CGPDFStringRef = ffi.Pointer; +typedef CGPDFTagProperty = CFStringRef; + +enum CGPDFTagType { + CGPDFTagTypeDocument(100), + CGPDFTagTypePart(101), + CGPDFTagTypeArt(102), + CGPDFTagTypeSection(103), + CGPDFTagTypeDiv(104), + CGPDFTagTypeBlockQuote(105), + CGPDFTagTypeCaption(106), + CGPDFTagTypeTOC(107), + CGPDFTagTypeTOCI(108), + CGPDFTagTypeIndex(109), + CGPDFTagTypeNonStructure(110), + CGPDFTagTypePrivate(111), + CGPDFTagTypeParagraph(200), + CGPDFTagTypeHeader(201), + CGPDFTagTypeHeader1(202), + CGPDFTagTypeHeader2(203), + CGPDFTagTypeHeader3(204), + CGPDFTagTypeHeader4(205), + CGPDFTagTypeHeader5(206), + CGPDFTagTypeHeader6(207), + CGPDFTagTypeList(300), + CGPDFTagTypeListItem(301), + CGPDFTagTypeLabel(302), + CGPDFTagTypeListBody(303), + CGPDFTagTypeTable(400), + CGPDFTagTypeTableRow(401), + CGPDFTagTypeTableHeaderCell(402), + CGPDFTagTypeTableDataCell(403), + CGPDFTagTypeTableHeader(404), + CGPDFTagTypeTableBody(405), + CGPDFTagTypeTableFooter(406), + CGPDFTagTypeSpan(500), + CGPDFTagTypeQuote(501), + CGPDFTagTypeNote(502), + CGPDFTagTypeReference(503), + CGPDFTagTypeBibliography(504), + CGPDFTagTypeCode(505), + CGPDFTagTypeLink(506), + CGPDFTagTypeAnnotation(507), + CGPDFTagTypeRuby(600), + CGPDFTagTypeRubyBaseText(601), + CGPDFTagTypeRubyAnnotationText(602), + CGPDFTagTypeRubyPunctuation(603), + CGPDFTagTypeWarichu(604), + CGPDFTagTypeWarichuText(605), + CGPDFTagTypeWarichuPunctiation(606), + CGPDFTagTypeFigure(700), + CGPDFTagTypeFormula(701), + CGPDFTagTypeForm(702), + CGPDFTagTypeObject(800); + + final int value; + const CGPDFTagType(this.value); + + static CGPDFTagType fromValue(int value) => switch (value) { + 100 => CGPDFTagTypeDocument, + 101 => CGPDFTagTypePart, + 102 => CGPDFTagTypeArt, + 103 => CGPDFTagTypeSection, + 104 => CGPDFTagTypeDiv, + 105 => CGPDFTagTypeBlockQuote, + 106 => CGPDFTagTypeCaption, + 107 => CGPDFTagTypeTOC, + 108 => CGPDFTagTypeTOCI, + 109 => CGPDFTagTypeIndex, + 110 => CGPDFTagTypeNonStructure, + 111 => CGPDFTagTypePrivate, + 200 => CGPDFTagTypeParagraph, + 201 => CGPDFTagTypeHeader, + 202 => CGPDFTagTypeHeader1, + 203 => CGPDFTagTypeHeader2, + 204 => CGPDFTagTypeHeader3, + 205 => CGPDFTagTypeHeader4, + 206 => CGPDFTagTypeHeader5, + 207 => CGPDFTagTypeHeader6, + 300 => CGPDFTagTypeList, + 301 => CGPDFTagTypeListItem, + 302 => CGPDFTagTypeLabel, + 303 => CGPDFTagTypeListBody, + 400 => CGPDFTagTypeTable, + 401 => CGPDFTagTypeTableRow, + 402 => CGPDFTagTypeTableHeaderCell, + 403 => CGPDFTagTypeTableDataCell, + 404 => CGPDFTagTypeTableHeader, + 405 => CGPDFTagTypeTableBody, + 406 => CGPDFTagTypeTableFooter, + 500 => CGPDFTagTypeSpan, + 501 => CGPDFTagTypeQuote, + 502 => CGPDFTagTypeNote, + 503 => CGPDFTagTypeReference, + 504 => CGPDFTagTypeBibliography, + 505 => CGPDFTagTypeCode, + 506 => CGPDFTagTypeLink, + 507 => CGPDFTagTypeAnnotation, + 600 => CGPDFTagTypeRuby, + 601 => CGPDFTagTypeRubyBaseText, + 602 => CGPDFTagTypeRubyAnnotationText, + 603 => CGPDFTagTypeRubyPunctuation, + 604 => CGPDFTagTypeWarichu, + 605 => CGPDFTagTypeWarichuText, + 606 => CGPDFTagTypeWarichuPunctiation, + 700 => CGPDFTagTypeFigure, + 701 => CGPDFTagTypeFormula, + 702 => CGPDFTagTypeForm, + 800 => CGPDFTagTypeObject, + _ => throw ArgumentError('Unknown value for CGPDFTagType: $value'), + }; +} + +final class CGPSConverter extends ffi.Opaque {} + +typedef CGPSConverterBeginDocumentCallback = + ffi.Pointer>; +typedef CGPSConverterBeginDocumentCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPSConverterBeginDocumentCallbackFunction = + void Function(ffi.Pointer info); +typedef CGPSConverterBeginPageCallback = + ffi.Pointer>; +typedef CGPSConverterBeginPageCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Size pageNumber, + CFDictionaryRef pageInfo, + ); +typedef DartCGPSConverterBeginPageCallbackFunction = + void Function( + ffi.Pointer info, + int pageNumber, + CFDictionaryRef pageInfo, + ); + +final class CGPSConverterCallbacks extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external CGPSConverterBeginDocumentCallback beginDocument; + + external CGPSConverterEndDocumentCallback endDocument; + + external CGPSConverterBeginPageCallback beginPage; + + external CGPSConverterEndPageCallback endPage; + + external CGPSConverterProgressCallback noteProgress; + + external CGPSConverterMessageCallback noteMessage; + + external CGPSConverterReleaseInfoCallback releaseInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CGPSConverterBeginDocumentCallback beginDocument, + required CGPSConverterEndDocumentCallback endDocument, + required CGPSConverterBeginPageCallback beginPage, + required CGPSConverterEndPageCallback endPage, + required CGPSConverterProgressCallback noteProgress, + required CGPSConverterMessageCallback noteMessage, + required CGPSConverterReleaseInfoCallback releaseInfo, + }) => $allocator() + ..ref.version = version + ..ref.beginDocument = beginDocument + ..ref.endDocument = endDocument + ..ref.beginPage = beginPage + ..ref.endPage = endPage + ..ref.noteProgress = noteProgress + ..ref.noteMessage = noteMessage + ..ref.releaseInfo = releaseInfo; +} + +typedef CGPSConverterEndDocumentCallback = + ffi.Pointer>; +typedef CGPSConverterEndDocumentCallbackFunction = + ffi.Void Function(ffi.Pointer info, ffi.Bool success); +typedef DartCGPSConverterEndDocumentCallbackFunction = + void Function(ffi.Pointer info, bool success); +typedef CGPSConverterEndPageCallback = + ffi.Pointer>; +typedef CGPSConverterEndPageCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Size pageNumber, + CFDictionaryRef pageInfo, + ); +typedef DartCGPSConverterEndPageCallbackFunction = + void Function( + ffi.Pointer info, + int pageNumber, + CFDictionaryRef pageInfo, + ); +typedef CGPSConverterMessageCallback = + ffi.Pointer>; +typedef CGPSConverterMessageCallbackFunction = + ffi.Void Function(ffi.Pointer info, CFStringRef message); +typedef DartCGPSConverterMessageCallbackFunction = + void Function(ffi.Pointer info, CFStringRef message); +typedef CGPSConverterProgressCallback = + ffi.Pointer>; +typedef CGPSConverterProgressCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPSConverterProgressCallbackFunction = + void Function(ffi.Pointer info); +typedef CGPSConverterRef = ffi.Pointer; +typedef CGPSConverterReleaseInfoCallback = + ffi.Pointer>; +typedef CGPSConverterReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPSConverterReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); + +final class CGPath extends ffi.Opaque {} + +typedef CGPathApplierFunction = + ffi.Pointer>; +typedef CGPathApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer element, + ); +typedef DartCGPathApplierFunctionFunction = + void Function( + ffi.Pointer info, + ffi.Pointer element, + ); +typedef CGPathApplyBlock = ffi.Pointer; +typedef DartCGPathApplyBlock = + objc.ObjCBlock)>; + +enum CGPathDrawingMode { + kCGPathFill(0), + kCGPathEOFill(1), + kCGPathStroke(2), + kCGPathFillStroke(3), + kCGPathEOFillStroke(4); + + final int value; + const CGPathDrawingMode(this.value); + + static CGPathDrawingMode fromValue(int value) => switch (value) { + 0 => kCGPathFill, + 1 => kCGPathEOFill, + 2 => kCGPathStroke, + 3 => kCGPathFillStroke, + 4 => kCGPathEOFillStroke, + _ => throw ArgumentError('Unknown value for CGPathDrawingMode: $value'), + }; +} + +final class CGPathElement extends ffi.Struct { + @ffi.Int32() + external int typeAsInt; + + CGPathElementType get type => CGPathElementType.fromValue(typeAsInt); + set type(CGPathElementType value) => typeAsInt = value.value; + + external ffi.Pointer points; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CGPathElementType type, + required ffi.Pointer points, + }) => $allocator() + ..ref.type = type + ..ref.points = points; +} + +enum CGPathElementType { + kCGPathElementMoveToPoint(0), + kCGPathElementAddLineToPoint(1), + kCGPathElementAddQuadCurveToPoint(2), + kCGPathElementAddCurveToPoint(3), + kCGPathElementCloseSubpath(4); + + final int value; + const CGPathElementType(this.value); + + static CGPathElementType fromValue(int value) => switch (value) { + 0 => kCGPathElementMoveToPoint, + 1 => kCGPathElementAddLineToPoint, + 2 => kCGPathElementAddQuadCurveToPoint, + 3 => kCGPathElementAddCurveToPoint, + 4 => kCGPathElementCloseSubpath, + _ => throw ArgumentError('Unknown value for CGPathElementType: $value'), + }; +} + +typedef CGPathRef = ffi.Pointer; + +final class CGPattern extends ffi.Opaque {} + +final class CGPatternCallbacks extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external CGPatternDrawPatternCallback drawPattern; + + external CGPatternReleaseInfoCallback releaseInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CGPatternDrawPatternCallback drawPattern, + required CGPatternReleaseInfoCallback releaseInfo, + }) => $allocator() + ..ref.version = version + ..ref.drawPattern = drawPattern + ..ref.releaseInfo = releaseInfo; +} + +typedef CGPatternDrawPatternCallback = + ffi.Pointer>; +typedef CGPatternDrawPatternCallbackFunction = + ffi.Void Function(ffi.Pointer info, CGContextRef context); +typedef DartCGPatternDrawPatternCallbackFunction = + void Function(ffi.Pointer info, CGContextRef context); +typedef CGPatternRef = ffi.Pointer; +typedef CGPatternReleaseInfoCallback = + ffi.Pointer>; +typedef CGPatternReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPatternReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); + +enum CGPatternTiling { + kCGPatternTilingNoDistortion(0), + kCGPatternTilingConstantSpacingMinimalDistortion(1), + kCGPatternTilingConstantSpacing(2); + + final int value; + const CGPatternTiling(this.value); + + static CGPatternTiling fromValue(int value) => switch (value) { + 0 => kCGPatternTilingNoDistortion, + 1 => kCGPatternTilingConstantSpacingMinimalDistortion, + 2 => kCGPatternTilingConstantSpacing, + _ => throw ArgumentError('Unknown value for CGPatternTiling: $value'), + }; +} + +typedef CGRectCount = ffi.Uint32; +typedef DartCGRectCount = int; + +enum CGRectEdge { + CGRectMinXEdge(0), + CGRectMinYEdge(1), + CGRectMaxXEdge(2), + CGRectMaxYEdge(3); + + final int value; + const CGRectEdge(this.value); + + static CGRectEdge fromValue(int value) => switch (value) { + 0 => CGRectMinXEdge, + 1 => CGRectMinYEdge, + 2 => CGRectMaxXEdge, + 3 => CGRectMaxYEdge, + _ => throw ArgumentError('Unknown value for CGRectEdge: $value'), + }; +} + +typedef CGRefreshRate = ffi.Double; +typedef DartCGRefreshRate = double; + +final class CGRenderingBufferProvider extends ffi.Opaque {} + +typedef CGRenderingBufferProviderRef = ffi.Pointer; +typedef CGScreenRefreshCallback = + ffi.Pointer>; +typedef CGScreenRefreshCallbackFunction = + ffi.Void Function( + ffi.Uint32 count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); +typedef DartCGScreenRefreshCallbackFunction = + void Function( + int count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); +typedef CGScreenUpdateMoveCallback = + ffi.Pointer>; +typedef CGScreenUpdateMoveCallbackFunction = + ffi.Void Function( + CGScreenUpdateMoveDelta delta, + ffi.Size count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); +typedef DartCGScreenUpdateMoveCallbackFunction = + void Function( + CGScreenUpdateMoveDelta delta, + int count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); + +final class CGScreenUpdateMoveDelta extends ffi.Struct { + @ffi.Int32() + external int dX; + + @ffi.Int32() + external int dY; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int dX, + required int dY, + }) => $allocator() + ..ref.dX = dX + ..ref.dY = dY; +} + +sealed class CGScreenUpdateOperation { + static const kCGScreenUpdateOperationRefresh = 0; + static const kCGScreenUpdateOperationMove = 1; + static const kCGScreenUpdateOperationReducedDirtyRectangleCount = -2147483648; +} + +enum CGScrollEventUnit { + kCGScrollEventUnitPixel(0), + kCGScrollEventUnitLine(1); + + final int value; + const CGScrollEventUnit(this.value); + + static CGScrollEventUnit fromValue(int value) => switch (value) { + 0 => kCGScrollEventUnitPixel, + 1 => kCGScrollEventUnitLine, + _ => throw ArgumentError('Unknown value for CGScrollEventUnit: $value'), + }; +} + +enum CGScrollPhase { + kCGScrollPhaseBegan(1), + kCGScrollPhaseChanged(2), + kCGScrollPhaseEnded(4), + kCGScrollPhaseCancelled(8), + kCGScrollPhaseMayBegin(128); + + final int value; + const CGScrollPhase(this.value); + + static CGScrollPhase fromValue(int value) => switch (value) { + 1 => kCGScrollPhaseBegan, + 2 => kCGScrollPhaseChanged, + 4 => kCGScrollPhaseEnded, + 8 => kCGScrollPhaseCancelled, + 128 => kCGScrollPhaseMayBegin, + _ => throw ArgumentError('Unknown value for CGScrollPhase: $value'), + }; +} + +final class CGShading extends ffi.Opaque {} + +typedef CGShadingRef = ffi.Pointer; + +enum CGTextDrawingMode { + kCGTextFill(0), + kCGTextStroke(1), + kCGTextFillStroke(2), + kCGTextInvisible(3), + kCGTextFillClip(4), + kCGTextStrokeClip(5), + kCGTextFillStrokeClip(6), + kCGTextClip(7); + + final int value; + const CGTextDrawingMode(this.value); + + static CGTextDrawingMode fromValue(int value) => switch (value) { + 0 => kCGTextFill, + 1 => kCGTextStroke, + 2 => kCGTextFillStroke, + 3 => kCGTextInvisible, + 4 => kCGTextFillClip, + 5 => kCGTextStrokeClip, + 6 => kCGTextFillStrokeClip, + 7 => kCGTextClip, + _ => throw ArgumentError('Unknown value for CGTextDrawingMode: $value'), + }; +} + +@Deprecated('No longer supported') +enum CGTextEncoding { + kCGEncodingFontSpecific(0), + kCGEncodingMacRoman(1); + + final int value; + const CGTextEncoding(this.value); + + static CGTextEncoding fromValue(int value) => switch (value) { + 0 => kCGEncodingFontSpecific, + 1 => kCGEncodingMacRoman, + _ => throw ArgumentError('Unknown value for CGTextEncoding: $value'), + }; +} + +enum CGToneMapping { + kCGToneMappingDefault(0), + kCGToneMappingImageSpecificLumaScaling(1), + kCGToneMappingReferenceWhiteBased(2), + kCGToneMappingITURecommended(3), + kCGToneMappingEXRGamma(4), + kCGToneMappingNone(5); + + final int value; + const CGToneMapping(this.value); + + static CGToneMapping fromValue(int value) => switch (value) { + 0 => kCGToneMappingDefault, + 1 => kCGToneMappingImageSpecificLumaScaling, + 2 => kCGToneMappingReferenceWhiteBased, + 3 => kCGToneMappingITURecommended, + 4 => kCGToneMappingEXRGamma, + 5 => kCGToneMappingNone, + _ => throw ArgumentError('Unknown value for CGToneMapping: $value'), + }; +} + +final class CGVector extends ffi.Struct { + @CGFloat() + external double dx; + + @CGFloat() + external double dy; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double dx, + required double dy, + }) => $allocator() + ..ref.dx = dx + ..ref.dy = dy; +} + +typedef CGWheelCount = ffi.Uint32; +typedef DartCGWheelCount = int; + +enum CGWindowBackingType { + kCGBackingStoreRetained(0), + kCGBackingStoreNonretained(1), + kCGBackingStoreBuffered(2); + + final int value; + const CGWindowBackingType(this.value); + + static CGWindowBackingType fromValue(int value) => switch (value) { + 0 => kCGBackingStoreRetained, + 1 => kCGBackingStoreNonretained, + 2 => kCGBackingStoreBuffered, + _ => throw ArgumentError('Unknown value for CGWindowBackingType: $value'), + }; +} + +typedef CGWindowID = ffi.Uint32; +typedef DartCGWindowID = int; + +sealed class CGWindowImageOption { + static const kCGWindowImageDefault = 0; + static const kCGWindowImageBoundsIgnoreFraming = 1; + static const kCGWindowImageShouldBeOpaque = 2; + static const kCGWindowImageOnlyShadows = 4; + static const kCGWindowImageBestResolution = 8; + static const kCGWindowImageNominalResolution = 16; +} + +typedef CGWindowLevel = ffi.Int32; +typedef DartCGWindowLevel = int; + +enum CGWindowLevelKey { + kCGBaseWindowLevelKey(0), + kCGMinimumWindowLevelKey(1), + kCGDesktopWindowLevelKey(2), + kCGBackstopMenuLevelKey(3), + kCGNormalWindowLevelKey(4), + kCGFloatingWindowLevelKey(5), + kCGTornOffMenuWindowLevelKey(6), + kCGDockWindowLevelKey(7), + kCGMainMenuWindowLevelKey(8), + kCGStatusWindowLevelKey(9), + kCGModalPanelWindowLevelKey(10), + kCGPopUpMenuWindowLevelKey(11), + kCGDraggingWindowLevelKey(12), + kCGScreenSaverWindowLevelKey(13), + kCGMaximumWindowLevelKey(14), + kCGOverlayWindowLevelKey(15), + kCGHelpWindowLevelKey(16), + kCGUtilityWindowLevelKey(17), + kCGDesktopIconWindowLevelKey(18), + kCGCursorWindowLevelKey(19), + kCGAssistiveTechHighWindowLevelKey(20), + kCGNumberOfWindowLevelKeys(21); + + final int value; + const CGWindowLevelKey(this.value); + + static CGWindowLevelKey fromValue(int value) => switch (value) { + 0 => kCGBaseWindowLevelKey, + 1 => kCGMinimumWindowLevelKey, + 2 => kCGDesktopWindowLevelKey, + 3 => kCGBackstopMenuLevelKey, + 4 => kCGNormalWindowLevelKey, + 5 => kCGFloatingWindowLevelKey, + 6 => kCGTornOffMenuWindowLevelKey, + 7 => kCGDockWindowLevelKey, + 8 => kCGMainMenuWindowLevelKey, + 9 => kCGStatusWindowLevelKey, + 10 => kCGModalPanelWindowLevelKey, + 11 => kCGPopUpMenuWindowLevelKey, + 12 => kCGDraggingWindowLevelKey, + 13 => kCGScreenSaverWindowLevelKey, + 14 => kCGMaximumWindowLevelKey, + 15 => kCGOverlayWindowLevelKey, + 16 => kCGHelpWindowLevelKey, + 17 => kCGUtilityWindowLevelKey, + 18 => kCGDesktopIconWindowLevelKey, + 19 => kCGCursorWindowLevelKey, + 20 => kCGAssistiveTechHighWindowLevelKey, + 21 => kCGNumberOfWindowLevelKeys, + _ => throw ArgumentError('Unknown value for CGWindowLevelKey: $value'), + }; +} + +sealed class CGWindowListOption { + static const kCGWindowListOptionAll = 0; + static const kCGWindowListOptionOnScreenOnly = 1; + static const kCGWindowListOptionOnScreenAboveWindow = 2; + static const kCGWindowListOptionOnScreenBelowWindow = 4; + static const kCGWindowListOptionIncludingWindow = 8; + static const kCGWindowListExcludeDesktopElements = 16; +} + +enum CGWindowSharingType { + kCGWindowSharingNone(0), + kCGWindowSharingReadOnly(1), + kCGWindowSharingReadWrite(2); + + final int value; + const CGWindowSharingType(this.value); + + static CGWindowSharingType fromValue(int value) => switch (value) { + 0 => kCGWindowSharingNone, + 1 => kCGWindowSharingReadOnly, + 2 => kCGWindowSharingReadWrite, + _ => throw ArgumentError('Unknown value for CGWindowSharingType: $value'), + }; +} + +typedef CGrafPort = GrafPort; +typedef CGrafPtr = GrafPtr; + +@ffi.Packed(2) +final class CM2Header extends ffi.Struct { + @UInt32() + external int size; + + @OSType() + external int CMMType; + + @UInt32() + external int profileVersion; + + @OSType() + external int profileClass; + + @OSType() + external int dataColorSpace; + + @OSType() + external int profileConnectionSpace; + + external CMDateTime dateTime; + + @OSType() + external int CS2profileSignature; + + @OSType() + external int platform; + + @UInt32() + external int flags; + + @OSType() + external int deviceManufacturer; + + @UInt32() + external int deviceModel; + + @ffi.Array.multi([2]) + external ffi.Array deviceAttributes; + + @UInt32() + external int renderingIntent; + + external CMFixedXYZColor white; + + @OSType() + external int creator; + + @ffi.Array.multi([44]) + external ffi.Array reserved; +} + +final class CM2Profile extends ffi.Struct { + external CM2Header header; + + external CMTagElemTable tagTable; + + @ffi.Array.multi([1]) + external ffi.Array elemData; +} + +typedef CM2ProfileHandle = ffi.Pointer>; +typedef CM2ProfilePtr = ffi.Pointer; + +@ffi.Packed(2) +final class CM4Header extends ffi.Struct { + @UInt32() + external int size; + + @OSType() + external int CMMType; + + @UInt32() + external int profileVersion; + + @OSType() + external int profileClass; + + @OSType() + external int dataColorSpace; + + @OSType() + external int profileConnectionSpace; + + external CMDateTime dateTime; + + @OSType() + external int CS2profileSignature; + + @OSType() + external int platform; + + @UInt32() + external int flags; + + @OSType() + external int deviceManufacturer; + + @UInt32() + external int deviceModel; + + @ffi.Array.multi([2]) + external ffi.Array deviceAttributes; + + @UInt32() + external int renderingIntent; + + external CMFixedXYZColor white; + + @OSType() + external int creator; + + @ffi.Array.multi([16]) + external ffi.Array digest; + + @ffi.Array.multi([28]) + external ffi.Array reserved; +} + +@ffi.Packed(2) +final class CMAdaptationMatrixType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([9]) + external ffi.Array adaptationMatrix; +} + +final class CMAppleProfileHeader extends ffi.Union { + external CM2Header cm2; + + external CM4Header cm4; +} + +typedef CMAudioCodecType = FourCharCode; +typedef CMAudioFormatDescriptionMask = ffi.Uint32; +typedef DartCMAudioFormatDescriptionMask = int; +typedef CMAudioFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMBaseClassVersion = ffi.UintPtr; +typedef DartCMBaseClassVersion = int; + +final class CMBitmap extends ffi.Struct { + external ffi.Pointer image; + + @ffi.Size() + external int width; + + @ffi.Size() + external int height; + + @ffi.Size() + external int rowBytes; + + @ffi.Size() + external int pixelSize; + + @CMBitmapColorSpace() + external int space; + + @UInt32() + external int user1; + + @UInt32() + external int user2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer image, + required int width, + required int height, + required int rowBytes, + required int pixelSize, + required int space, + required int user1, + required int user2, + }) => $allocator() + ..ref.image = image + ..ref.width = width + ..ref.height = height + ..ref.rowBytes = rowBytes + ..ref.pixelSize = pixelSize + ..ref.space = space + ..ref.user1 = user1 + ..ref.user2 = user2; +} + +typedef CMBitmapCallBackProcPtr = + ffi.Pointer>; +typedef CMBitmapCallBackProcPtrFunction = + Boolean Function(SInt32 progress, ffi.Pointer refCon); +typedef DartCMBitmapCallBackProcPtrFunction = + DartBoolean Function(DartSInt32 progress, ffi.Pointer refCon); +typedef CMBitmapCallBackUPP = CMBitmapCallBackProcPtr; +typedef CMBitmapColorSpace = UInt32; + +final class CMBufferLocation extends ffi.Struct { + external ffi.Pointer buffer; + + @UInt32() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer buffer, + required int size, + }) => $allocator() + ..ref.buffer = buffer + ..ref.size = size; +} + +final class CMCMYColor extends ffi.Struct { + @UInt16() + external int cyan; + + @UInt16() + external int magenta; + + @UInt16() + external int yellow; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cyan, + required int magenta, + required int yellow, + }) => $allocator() + ..ref.cyan = cyan + ..ref.magenta = magenta + ..ref.yellow = yellow; +} + +final class CMCMYKColor extends ffi.Struct { + @UInt16() + external int cyan; + + @UInt16() + external int magenta; + + @UInt16() + external int yellow; + + @UInt16() + external int black; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cyan, + required int magenta, + required int yellow, + required int black, + }) => $allocator() + ..ref.cyan = cyan + ..ref.magenta = magenta + ..ref.yellow = yellow + ..ref.black = black; +} + +typedef CMChromaticAdaptation = UInt32; +typedef CMClosedCaptionFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMClosedCaptionFormatType = FourCharCode; + +final class CMColor extends ffi.Union { + external CMRGBColor rgb; + + external CMHSVColor hsv; + + external CMHLSColor hls; + + external CMXYZColor XYZ; + + external CMLabColor Lab; + + external CMLuvColor Luv; + + external CMYxyColor Yxy; + + external CMCMYKColor cmyk; + + external CMCMYColor cmy; + + external CMGrayColor gray; + + external CMMultichannel5Color mc5; + + external CMMultichannel6Color mc6; + + external CMMultichannel7Color mc7; + + external CMMultichannel8Color mc8; + + external CMNamedColor namedColor; +} + +typedef CMConcatCallBackProcPtr = + ffi.Pointer>; +typedef CMConcatCallBackProcPtrFunction = + Boolean Function(SInt32 progress, ffi.Pointer refCon); +typedef DartCMConcatCallBackProcPtrFunction = + DartBoolean Function(DartSInt32 progress, ffi.Pointer refCon); +typedef CMConcatCallBackUPP = CMConcatCallBackProcPtr; + +final class CMConcatProfileSet extends ffi.Struct { + @UInt16() + external int keyIndex; + + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array profileSet; +} + +@ffi.Packed(2) +final class CMCurveType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int countValue; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +@ffi.Packed(2) +final class CMDataType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int dataFlag; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +final class CMDateTime extends ffi.Struct { + @UInt16() + external int year; + + @UInt16() + external int month; + + @UInt16() + external int dayOfTheMonth; + + @UInt16() + external int hours; + + @UInt16() + external int minutes; + + @UInt16() + external int seconds; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int year, + required int month, + required int dayOfTheMonth, + required int hours, + required int minutes, + required int seconds, + }) => $allocator() + ..ref.year = year + ..ref.month = month + ..ref.dayOfTheMonth = dayOfTheMonth + ..ref.hours = hours + ..ref.minutes = minutes + ..ref.seconds = seconds; +} + +@ffi.Packed(2) +final class CMDateTimeType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + external CMDateTime dateTime; +} + +typedef CMDeviceClass = OSType; +typedef CMDeviceID = UInt32; + +final class CMDeviceInfo extends ffi.Struct { + @UInt32() + external int dataVersion; + + @CMDeviceClass() + external int deviceClass; + + @CMDeviceID() + external int deviceID; + + external CMDeviceScope deviceScope; + + @CMDeviceState() + external int deviceState; + + @CMDeviceProfileID() + external int defaultProfileID; + + external ffi.Pointer deviceName; + + @UInt32() + external int profileCount; + + @UInt32() + external int reserved; +} + +typedef CMDeviceInfoPtr = ffi.Pointer; + +final class CMDeviceProfileArray extends ffi.Struct { + @UInt32() + external int profileCount; + + @ffi.Array.multi([1]) + external ffi.Array profiles; +} + +typedef CMDeviceProfileArrayPtr = ffi.Pointer; +typedef CMDeviceProfileID = UInt32; + +final class CMDeviceProfileInfo extends ffi.Struct { + @UInt32() + external int dataVersion; + + @CMDeviceProfileID() + external int profileID; + + external CMProfileLocation profileLoc; + + external CFDictionaryRef profileName; + + @UInt32() + external int reserved; +} + +typedef CMDeviceProfileScope = CMDeviceScope; + +final class CMDeviceScope extends ffi.Struct { + external CFStringRef deviceUser; + + external CFStringRef deviceHost; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFStringRef deviceUser, + required CFStringRef deviceHost, + }) => $allocator() + ..ref.deviceUser = deviceUser + ..ref.deviceHost = deviceHost; +} + +typedef CMDeviceState = UInt32; +typedef CMDisplayIDType = UInt32; + +@ffi.Packed(2) +final class CMFixedXYColor extends ffi.Struct { + @Fixed() + external int x; + + @Fixed() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +@ffi.Packed(2) +final class CMFixedXYZColor extends ffi.Struct { + @Fixed() + external int X; + + @Fixed() + external int Y; + + @Fixed() + external int Z; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int X, + required int Y, + required int Z, + }) => $allocator() + ..ref.X = X + ..ref.Y = Y + ..ref.Z = Z; +} + +typedef CMFlattenProcPtr = + ffi.Pointer>; +typedef CMFlattenProcPtrFunction = + OSErr Function( + SInt32 command, + ffi.Pointer size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef DartCMFlattenProcPtrFunction = + DartSInt16 Function( + DartSInt32 command, + ffi.Pointer size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef CMFlattenUPP = CMFlattenProcPtr; + +final class CMFloatBitmap extends ffi.Struct { + @ffi.UnsignedLong() + external int version; + + @ffi.Array.multi([16]) + external ffi.Array> buffers; + + @ffi.Size() + external int height; + + @ffi.Size() + external int width; + + @ptrdiff_t() + external int rowStride; + + @ptrdiff_t() + external int colStride; + + @OSType() + external int space; + + @ffi.UnsignedInt() + external int flagsAsInt; + + CMFloatBitmapFlags get flags => CMFloatBitmapFlags.fromValue(flagsAsInt); + set flags(CMFloatBitmapFlags value) => flagsAsInt = value.value; +} + +enum CMFloatBitmapFlags { + kCMFloatBitmapFlagsNone(0), + kCMFloatBitmapFlagsAlpha(1), + kCMFloatBitmapFlagsAlphaPremul(2), + kCMFloatBitmapFlagsRangeClipped(4); + + final int value; + const CMFloatBitmapFlags(this.value); + + static CMFloatBitmapFlags fromValue(int value) => switch (value) { + 0 => kCMFloatBitmapFlagsNone, + 1 => kCMFloatBitmapFlagsAlpha, + 2 => kCMFloatBitmapFlagsAlphaPremul, + 4 => kCMFloatBitmapFlagsRangeClipped, + _ => throw ArgumentError('Unknown value for CMFloatBitmapFlags: $value'), + }; +} + +typedef CMFormatDescriptionRef = ffi.Pointer; + +final class CMGrayColor extends ffi.Struct { + @UInt16() + external int gray; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int gray, + }) => $allocator()..ref.gray = gray; +} + +final class CMHLSColor extends ffi.Struct { + @UInt16() + external int hue; + + @UInt16() + external int lightness; + + @UInt16() + external int saturation; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int hue, + required int lightness, + required int saturation, + }) => $allocator() + ..ref.hue = hue + ..ref.lightness = lightness + ..ref.saturation = saturation; +} + +final class CMHSVColor extends ffi.Struct { + @UInt16() + external int hue; + + @UInt16() + external int saturation; + + @UInt16() + external int value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int hue, + required int saturation, + required int value, + }) => $allocator() + ..ref.hue = hue + ..ref.saturation = saturation + ..ref.value = value; +} + +final class CMHandleLocation extends ffi.Struct { + external Handle h; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required Handle h, + }) => $allocator()..ref.h = h; +} + +@ffi.Packed(2) +final class CMIntentCRDVMSize extends ffi.Struct { + @UInt32() + external int renderingIntent; + + @UInt32() + external int VMSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int renderingIntent, + required int VMSize, + }) => $allocator() + ..ref.renderingIntent = renderingIntent + ..ref.VMSize = VMSize; +} + +typedef CMItemCount = CFIndex; +typedef CMItemIndex = CFIndex; +typedef CMIterateDeviceInfoProcPtr = + ffi.Pointer>; +typedef CMIterateDeviceInfoProcPtrFunction = + OSErr Function( + ffi.Pointer deviceInfo, + ffi.Pointer refCon, + ); +typedef DartCMIterateDeviceInfoProcPtrFunction = + DartSInt16 Function( + ffi.Pointer deviceInfo, + ffi.Pointer refCon, + ); +typedef CMIterateDeviceProfileProcPtr = + ffi.Pointer>; +typedef CMIterateDeviceProfileProcPtrFunction = + OSErr Function( + ffi.Pointer deviceInfo, + ffi.Pointer profileInfo, + ffi.Pointer refCon, + ); +typedef DartCMIterateDeviceProfileProcPtrFunction = + DartSInt16 Function( + ffi.Pointer deviceInfo, + ffi.Pointer profileInfo, + ffi.Pointer refCon, + ); + +final class CMLabColor extends ffi.Struct { + @UInt16() + external int L; + + @UInt16() + external int a; + + @UInt16() + external int b; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int L, + required int a, + required int b, + }) => $allocator() + ..ref.L = L + ..ref.a = a + ..ref.b = b; +} + +typedef CMLabToLabProcPtr = + ffi.Pointer>; +typedef CMLabToLabProcPtrFunction = + ffi.Void Function( + ffi.Pointer L, + ffi.Pointer a, + ffi.Pointer b, + ffi.Pointer refcon, + ); +typedef DartCMLabToLabProcPtrFunction = + void Function( + ffi.Pointer L, + ffi.Pointer a, + ffi.Pointer b, + ffi.Pointer refcon, + ); + +@ffi.Packed(2) +final class CMLut16Type extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt8() + external int inputChannels; + + @UInt8() + external int outputChannels; + + @UInt8() + external int gridPoints; + + @UInt8() + external int reserved2; + + @ffi.Array.multi([3, 3]) + external ffi.Array> matrix; + + @UInt16() + external int inputTableEntries; + + @UInt16() + external int outputTableEntries; + + @ffi.Array.multi([1]) + external ffi.Array inputTable; +} + +@ffi.Packed(2) +final class CMLut8Type extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt8() + external int inputChannels; + + @UInt8() + external int outputChannels; + + @UInt8() + external int gridPoints; + + @UInt8() + external int reserved2; + + @ffi.Array.multi([3, 3]) + external ffi.Array> matrix; + + @ffi.Array.multi([1]) + external ffi.Array inputTable; +} + +final class CMLuvColor extends ffi.Struct { + @UInt16() + external int L; + + @UInt16() + external int u; + + @UInt16() + external int v; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int L, + required int u, + required int v, + }) => $allocator() + ..ref.L = L + ..ref.u = u + ..ref.v = v; +} + +typedef CMMApplyTransformProc = + ffi.Pointer>; +typedef CMMApplyTransformProcFunction = + ffi.Bool Function( + ColorSyncTransformRef transform, + ffi.Size width, + ffi.Size height, + ffi.Size dstPlanes, + ffi.Pointer> dst, + ffi.UnsignedInt dstDepth, + ColorSyncDataLayout dstFormat, + ffi.Size dstBytesPerRow, + ffi.Size srcPlanes, + ffi.Pointer> src, + ffi.UnsignedInt srcDepth, + ColorSyncDataLayout srcFormat, + ffi.Size srcBytesPerRow, + CFDictionaryRef options, + ); +typedef DartCMMApplyTransformProcFunction = + bool Function( + ColorSyncTransformRef transform, + int width, + int height, + int dstPlanes, + ffi.Pointer> dst, + ColorSyncDataDepth dstDepth, + DartColorSyncDataLayout dstFormat, + int dstBytesPerRow, + int srcPlanes, + ffi.Pointer> src, + ColorSyncDataDepth srcDepth, + DartColorSyncDataLayout srcFormat, + int srcBytesPerRow, + CFDictionaryRef options, + ); +typedef CMMCreateTransformPropertyProc = + ffi.Pointer>; +typedef CMMCreateTransformPropertyProcFunction = + CFTypeRef Function( + ColorSyncTransformRef transform, + CFTypeRef key, + CFDictionaryRef options, + ); + +final class CMMInfo extends ffi.Struct { + @ffi.Size() + external int dataSize; + + @OSType() + external int CMMType; + + @OSType() + external int CMMMfr; + + @UInt32() + external int CMMVersion; + + @ffi.Array.multi([32]) + external ffi.Array ASCIIName; + + @ffi.Array.multi([256]) + external ffi.Array ASCIIDesc; + + @UniCharCount() + external int UniCodeNameCount; + + @ffi.Array.multi([32]) + external ffi.Array UniCodeName; + + @UniCharCount() + external int UniCodeDescCount; + + @ffi.Array.multi([256]) + external ffi.Array UniCodeDesc; +} + +typedef CMMInitializeLinkProfileProc = + ffi.Pointer>; +typedef CMMInitializeLinkProfileProcFunction = + ffi.Bool Function(ColorSyncMutableProfileRef, CFArrayRef, CFDictionaryRef); +typedef DartCMMInitializeLinkProfileProcFunction = + bool Function(ColorSyncMutableProfileRef, CFArrayRef, CFDictionaryRef); +typedef CMMInitializeTransformProc = + ffi.Pointer>; +typedef CMMInitializeTransformProcFunction = + ffi.Bool Function(ColorSyncTransformRef, CFArrayRef, CFDictionaryRef); +typedef DartCMMInitializeTransformProcFunction = + bool Function(ColorSyncTransformRef, CFArrayRef, CFDictionaryRef); +typedef CMMIterateProcPtr = + ffi.Pointer>; +typedef CMMIterateProcPtrFunction = + OSErr Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); +typedef DartCMMIterateProcPtrFunction = + DartSInt16 Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); +typedef CMMIterateUPP = CMMIterateProcPtr; + +@ffi.Packed(2) +final class CMMakeAndModel extends ffi.Struct { + @OSType() + external int manufacturer; + + @UInt32() + external int model; + + @UInt32() + external int serialNumber; + + @UInt32() + external int manufactureDate; + + @UInt32() + external int reserved1; + + @UInt32() + external int reserved2; + + @UInt32() + external int reserved3; + + @UInt32() + external int reserved4; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int manufacturer, + required int model, + required int serialNumber, + required int manufactureDate, + required int reserved1, + required int reserved2, + required int reserved3, + required int reserved4, + }) => $allocator() + ..ref.manufacturer = manufacturer + ..ref.model = model + ..ref.serialNumber = serialNumber + ..ref.manufactureDate = manufactureDate + ..ref.reserved1 = reserved1 + ..ref.reserved2 = reserved2 + ..ref.reserved3 = reserved3 + ..ref.reserved4 = reserved4; +} + +@ffi.Packed(2) +final class CMMakeAndModelType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + external CMMakeAndModel makeAndModel; +} + +@ffi.Packed(2) +final class CMMeasurementType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int standardObserver; + + external CMFixedXYZColor backingXYZ; + + @UInt32() + external int geometry; + + @UInt32() + external int flare; + + @UInt32() + external int illuminant; +} + +typedef CMMediaType = FourCharCode; +typedef CMMetadataFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMMetadataFormatType = FourCharCode; + +final class CMMultiFunctCLUTType extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array gridPoints; + + @UInt8() + external int entrySize; + + @ffi.Array.multi([3]) + external ffi.Array reserved; + + @ffi.Array.multi([2]) + external ffi.Array data; +} + +typedef CMMultiFunctLutA2BType = CMMultiFunctLutType; +typedef CMMultiFunctLutB2AType = CMMultiFunctLutType; + +@ffi.Packed(2) +final class CMMultiFunctLutType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt8() + external int inputChannels; + + @UInt8() + external int outputChannels; + + @UInt16() + external int reserved2; + + @UInt32() + external int offsetBcurves; + + @UInt32() + external int offsetMatrix; + + @UInt32() + external int offsetMcurves; + + @UInt32() + external int offsetCLUT; + + @UInt32() + external int offsetAcurves; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +@ffi.Packed(2) +final class CMMultiLocalizedUniCodeEntryRec extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array languageCode; + + @ffi.Array.multi([2]) + external ffi.Array regionCode; + + @UInt32() + external int textLength; + + @UInt32() + external int textOffset; +} + +@ffi.Packed(2) +final class CMMultiLocalizedUniCodeType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int entryCount; + + @UInt32() + external int entrySize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int typeDescriptor, + required int reserved, + required int entryCount, + required int entrySize, + }) => $allocator() + ..ref.typeDescriptor = typeDescriptor + ..ref.reserved = reserved + ..ref.entryCount = entryCount + ..ref.entrySize = entrySize; +} + +final class CMMultichannel5Color extends ffi.Struct { + @ffi.Array.multi([5]) + external ffi.Array components; +} + +final class CMMultichannel6Color extends ffi.Struct { + @ffi.Array.multi([6]) + external ffi.Array components; +} + +final class CMMultichannel7Color extends ffi.Struct { + @ffi.Array.multi([7]) + external ffi.Array components; +} + +final class CMMultichannel8Color extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array components; +} + +typedef CMMuxedFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMMuxedStreamType = FourCharCode; + +final class CMNamedColor extends ffi.Struct { + @UInt32() + external int namedColorIndex; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int namedColorIndex, + }) => $allocator()..ref.namedColorIndex = namedColorIndex; +} + +final class CMNamedColor2EntryType extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array rootName; + + @ffi.Array.multi([3]) + external ffi.Array PCSColorCoords; + + @ffi.Array.multi([1]) + external ffi.Array DeviceColorCoords; +} + +@ffi.Packed(2) +final class CMNamedColor2Type extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int vendorFlag; + + @UInt32() + external int count; + + @UInt32() + external int deviceChannelCount; + + @ffi.Array.multi([32]) + external ffi.Array prefixName; + + @ffi.Array.multi([32]) + external ffi.Array suffixName; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +@ffi.Packed(2) +final class CMNamedColorType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int vendorFlag; + + @UInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array prefixName; +} + +@ffi.Packed(2) +final class CMNativeDisplayInfo extends ffi.Struct { + @UInt32() + external int dataSize; + + external CMFixedXYColor redPhosphor; + + external CMFixedXYColor greenPhosphor; + + external CMFixedXYColor bluePhosphor; + + external CMFixedXYColor whitePoint; + + @Fixed() + external int redGammaValue; + + @Fixed() + external int greenGammaValue; + + @Fixed() + external int blueGammaValue; + + @UInt16() + external int gammaChannels; + + @UInt16() + external int gammaEntryCount; + + @UInt16() + external int gammaEntrySize; + + @ffi.Array.multi([1]) + external ffi.Array gammaData; +} + +@ffi.Packed(2) +final class CMNativeDisplayInfoType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + external CMNativeDisplayInfo nativeDisplayInfo; +} + +@ffi.Packed(2) +final class CMPS2CRDVMSizeType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array intentCRD; +} + +@ffi.Packed(2) +final class CMParametricCurveType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt16() + external int functionType; + + @UInt16() + external int reserved2; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +final class CMPathLocation extends ffi.Struct { + @ffi.Array.multi([1024]) + external ffi.Array path; +} + +typedef CMPersistentTrackID = ffi.Int32; +typedef DartCMPersistentTrackID = int; +typedef CMPixelFormatType = FourCharCode; + +final class CMProfLoc extends ffi.Union { + external CMHandleLocation handleLoc; + + external CMPathLocation pathLoc; + + external CMBufferLocation bufferLoc; +} + +final class CMProfileIterateData extends ffi.Struct { + @UInt32() + external int dataVersion; + + external CM2Header header; + + @ScriptCode() + external int code; + + @ffi.Array.multi([256]) + external ffi.Array name; + + external CMProfileLocation location; + + @UniCharCount() + external int uniCodeNameCount; + + external ffi.Pointer uniCodeName; + + external ffi.Pointer asciiName; + + external ffi.Pointer makeAndModel; + + external ffi.Pointer> digest; +} + +typedef CMProfileIterateProcPtr = + ffi.Pointer>; +typedef CMProfileIterateProcPtrFunction = + OSErr Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); +typedef DartCMProfileIterateProcPtrFunction = + DartSInt16 Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); +typedef CMProfileIterateUPP = CMProfileIterateProcPtr; + +final class CMProfileLocation extends ffi.Struct { + @ffi.Short() + external int locType; + + external CMProfLoc u; +} + +typedef CMProfileMD5Ptr = ffi.Pointer>; +typedef CMProfileRef = ffi.Pointer; + +@ffi.Packed(2) +final class CMProfileSequenceDescType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +final class CMRGBColor extends ffi.Struct { + @UInt16() + external int red; + + @UInt16() + external int green; + + @UInt16() + external int blue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int red, + required int green, + required int blue, + }) => $allocator() + ..ref.red = red + ..ref.green = green + ..ref.blue = blue; +} + +@ffi.Packed(2) +final class CMS15Fixed16ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +enum CMSCertificateChainMode { + kCMSCertificateNone(0), + kCMSCertificateSignerOnly(1), + kCMSCertificateChain(2), + kCMSCertificateChainWithRoot(3), + kCMSCertificateChainWithRootOrFail(4); + + final int value; + const CMSCertificateChainMode(this.value); + + static CMSCertificateChainMode fromValue(int value) => switch (value) { + 0 => kCMSCertificateNone, + 1 => kCMSCertificateSignerOnly, + 2 => kCMSCertificateChain, + 3 => kCMSCertificateChainWithRoot, + 4 => kCMSCertificateChainWithRootOrFail, + _ => throw ArgumentError( + 'Unknown value for CMSCertificateChainMode: $value', + ), + }; +} + +typedef CMSDecoderRef = ffi.Pointer<_CMSDecoder>; +typedef CMSEncoderRef = ffi.Pointer<_CMSEncoder>; + +sealed class CMSSignedAttributes { + static const kCMSAttrNone = 0; + static const kCMSAttrSmimeCapabilities = 1; + static const kCMSAttrSmimeEncryptionKeyPrefs = 2; + static const kCMSAttrSmimeMSEncryptionKeyPrefs = 4; + static const kCMSAttrSigningTime = 8; + static const kCMSAttrAppleCodesigningHashAgility = 16; + static const kCMSAttrAppleCodesigningHashAgilityV2 = 32; + static const kCMSAttrAppleExpirationTime = 64; +} + +enum CMSSignerStatus { + kCMSSignerUnsigned(0), + kCMSSignerValid(1), + kCMSSignerNeedsDetachedContent(2), + kCMSSignerInvalidSignature(3), + kCMSSignerInvalidCert(4), + kCMSSignerInvalidIndex(5); + + final int value; + const CMSSignerStatus(this.value); + + static CMSSignerStatus fromValue(int value) => switch (value) { + 0 => kCMSSignerUnsigned, + 1 => kCMSSignerValid, + 2 => kCMSSignerNeedsDetachedContent, + 3 => kCMSSignerInvalidSignature, + 4 => kCMSSignerInvalidCert, + 5 => kCMSSignerInvalidIndex, + _ => throw ArgumentError('Unknown value for CMSSignerStatus: $value'), + }; +} + +@ffi.Packed(2) +final class CMScreeningChannelRec extends ffi.Struct { + @Fixed() + external int frequency; + + @Fixed() + external int angle; + + @UInt32() + external int spotFunction; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int frequency, + required int angle, + required int spotFunction, + }) => $allocator() + ..ref.frequency = frequency + ..ref.angle = angle + ..ref.spotFunction = spotFunction; +} + +@ffi.Packed(2) +final class CMScreeningType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int screeningFlag; + + @UInt32() + external int channelCount; + + @ffi.Array.multi([1]) + external ffi.Array channelInfo; +} + +@ffi.Packed(2) +final class CMSignatureType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @OSType() + external int signature; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int typeDescriptor, + required int reserved, + required int signature, + }) => $allocator() + ..ref.typeDescriptor = typeDescriptor + ..ref.reserved = reserved + ..ref.signature = signature; +} + +typedef CMStructVersion = ffi.UintPtr; +typedef DartCMStructVersion = int; +typedef CMSubtitleFormatType = FourCharCode; + +@ffi.Packed(2) +final class CMTagElemTable extends ffi.Struct { + @UInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array tagList; +} + +@ffi.Packed(2) +final class CMTagRecord extends ffi.Struct { + @OSType() + external int tag; + + @UInt32() + external int elementOffset; + + @UInt32() + external int elementSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tag, + required int elementOffset, + required int elementSize, + }) => $allocator() + ..ref.tag = tag + ..ref.elementOffset = elementOffset + ..ref.elementSize = elementSize; +} + +typedef CMTaggedBufferGroupFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMTaggedBufferGroupFormatType = FourCharCode; + +@ffi.Packed(2) +final class CMTextDescriptionType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int ASCIICount; + + @ffi.Array.multi([2]) + external ffi.Array ASCIIName; +} + +typedef CMTextDisplayFlags = ffi.Uint32; +typedef DartCMTextDisplayFlags = int; +typedef CMTextFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMTextFormatType = FourCharCode; +typedef CMTextJustificationValue = ffi.Int8; +typedef DartCMTextJustificationValue = int; + +@ffi.Packed(2) +final class CMTextType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array text; +} + +@ffi.Packed(4) +final class CMTime extends ffi.Struct { + @CMTimeValue() + external int value; + + @CMTimeScale() + external int timescale; + + @ffi.Uint32() + external int flags; + + @CMTimeEpoch() + external int epoch; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int value, + required int timescale, + required int flags, + required int epoch, + }) => $allocator() + ..ref.value = value + ..ref.timescale = timescale + ..ref.flags = flags + ..ref.epoch = epoch; +} + +typedef CMTimeCodeFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMTimeCodeFormatType = FourCharCode; +typedef CMTimeEpoch = ffi.Int64; +typedef DartCMTimeEpoch = int; + +sealed class CMTimeFlags { + static const kCMTimeFlags_Valid = 1; + static const kCMTimeFlags_HasBeenRounded = 2; + static const kCMTimeFlags_PositiveInfinity = 4; + static const kCMTimeFlags_NegativeInfinity = 8; + static const kCMTimeFlags_Indefinite = 16; + static const kCMTimeFlags_ImpliedValueFlagsMask = 28; +} + +enum CMTimeRoundingMethod { + kCMTimeRoundingMethod_RoundHalfAwayFromZero(1), + kCMTimeRoundingMethod_RoundTowardZero(2), + kCMTimeRoundingMethod_RoundAwayFromZero(3), + kCMTimeRoundingMethod_QuickTime(4), + kCMTimeRoundingMethod_RoundTowardPositiveInfinity(5), + kCMTimeRoundingMethod_RoundTowardNegativeInfinity(6); + + static const kCMTimeRoundingMethod_Default = + kCMTimeRoundingMethod_RoundHalfAwayFromZero; + + final int value; + const CMTimeRoundingMethod(this.value); + + static CMTimeRoundingMethod fromValue(int value) => switch (value) { + 1 => kCMTimeRoundingMethod_RoundHalfAwayFromZero, + 2 => kCMTimeRoundingMethod_RoundTowardZero, + 3 => kCMTimeRoundingMethod_RoundAwayFromZero, + 4 => kCMTimeRoundingMethod_QuickTime, + 5 => kCMTimeRoundingMethod_RoundTowardPositiveInfinity, + 6 => kCMTimeRoundingMethod_RoundTowardNegativeInfinity, + _ => throw ArgumentError('Unknown value for CMTimeRoundingMethod: $value'), + }; + + @override + String toString() { + if (this == kCMTimeRoundingMethod_RoundHalfAwayFromZero) + return "CMTimeRoundingMethod.kCMTimeRoundingMethod_RoundHalfAwayFromZero, CMTimeRoundingMethod.kCMTimeRoundingMethod_Default"; + return super.toString(); + } +} + +typedef CMTimeScale = ffi.Int32; +typedef DartCMTimeScale = int; +typedef CMTimeValue = ffi.Int64; +typedef DartCMTimeValue = int; + +@ffi.Packed(2) +final class CMU16Fixed16ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +@ffi.Packed(2) +final class CMUInt16ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +@ffi.Packed(2) +final class CMUInt32ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +@ffi.Packed(2) +final class CMUInt64ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +@ffi.Packed(2) +final class CMUInt8ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +@ffi.Packed(2) +final class CMUcrBgType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int ucrCount; + + @ffi.Array.multi([1]) + external ffi.Array ucrValues; +} + +@ffi.Packed(2) +final class CMUnicodeTextType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array text; +} + +@ffi.Packed(2) +final class CMVideoCardGamma extends ffi.Struct { + @UInt32() + external int tagType; + + external UnnamedUnion$7 u; +} + +@ffi.Packed(2) +final class CMVideoCardGammaFormula extends ffi.Struct { + @Fixed() + external int redGamma; + + @Fixed() + external int redMin; + + @Fixed() + external int redMax; + + @Fixed() + external int greenGamma; + + @Fixed() + external int greenMin; + + @Fixed() + external int greenMax; + + @Fixed() + external int blueGamma; + + @Fixed() + external int blueMin; + + @Fixed() + external int blueMax; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int redGamma, + required int redMin, + required int redMax, + required int greenGamma, + required int greenMin, + required int greenMax, + required int blueGamma, + required int blueMin, + required int blueMax, + }) => $allocator() + ..ref.redGamma = redGamma + ..ref.redMin = redMin + ..ref.redMax = redMax + ..ref.greenGamma = greenGamma + ..ref.greenMin = greenMin + ..ref.greenMax = greenMax + ..ref.blueGamma = blueGamma + ..ref.blueMin = blueMin + ..ref.blueMax = blueMax; +} + +final class CMVideoCardGammaTable extends ffi.Struct { + @UInt16() + external int channels; + + @UInt16() + external int entryCount; + + @UInt16() + external int entrySize; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +@ffi.Packed(2) +final class CMVideoCardGammaType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + external CMVideoCardGamma gamma; +} + +typedef CMVideoCodecType = FourCharCode; + +final class CMVideoDimensions extends ffi.Struct { + @ffi.Int32() + external int width; + + @ffi.Int32() + external int height; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int width, + required int height, + }) => $allocator() + ..ref.width = width + ..ref.height = height; +} + +typedef CMVideoFormatDescriptionRef = CMFormatDescriptionRef; + +@ffi.Packed(2) +final class CMViewingConditionsType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + external CMFixedXYZColor illuminant; + + external CMFixedXYZColor surround; + + @UInt32() + external int stdIlluminant; +} + +typedef CMWorldRef = ffi.Pointer; + +final class CMXYZColor extends ffi.Struct { + @CMXYZComponent() + external int X; + + @CMXYZComponent() + external int Y; + + @CMXYZComponent() + external int Z; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int X, + required int Y, + required int Z, + }) => $allocator() + ..ref.X = X + ..ref.Y = Y + ..ref.Z = Z; +} + +typedef CMXYZComponent = UInt16; + +@ffi.Packed(2) +final class CMXYZType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array XYZ; +} + +final class CMYxyColor extends ffi.Struct { + @UInt16() + external int capY; + + @UInt16() + external int x; + + @UInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int capY, + required int x, + required int y, + }) => $allocator() + ..ref.capY = capY + ..ref.x = x + ..ref.y = y; +} + +@ffi.Packed(2) +final class CQDProcs extends ffi.Struct { + external QDTextUPP textProc; + + external QDLineUPP lineProc; + + external QDRectUPP rectProc; + + external QDRRectUPP rRectProc; + + external QDOvalUPP ovalProc; + + external QDArcUPP arcProc; + + external QDPolyUPP polyProc; + + external QDRgnUPP rgnProc; + + external QDBitsUPP bitsProc; + + external QDCommentUPP commentProc; + + external QDTxMeasUPP txMeasProc; + + external QDGetPicUPP getPicProc; + + external QDPutPicUPP putPicProc; + + external QDOpcodeUPP opcodeProc; + + external UniversalProcPtr newProc1; + + external QDStdGlyphsUPP glyphsProc; + + external QDPrinterStatusUPP printerStatusProc; + + external UniversalProcPtr newProc4; + + external UniversalProcPtr newProc5; + + external UniversalProcPtr newProc6; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QDTextUPP textProc, + required QDLineUPP lineProc, + required QDRectUPP rectProc, + required QDRRectUPP rRectProc, + required QDOvalUPP ovalProc, + required QDArcUPP arcProc, + required QDPolyUPP polyProc, + required QDRgnUPP rgnProc, + required QDBitsUPP bitsProc, + required QDCommentUPP commentProc, + required QDTxMeasUPP txMeasProc, + required QDGetPicUPP getPicProc, + required QDPutPicUPP putPicProc, + required QDOpcodeUPP opcodeProc, + required UniversalProcPtr newProc1, + required QDStdGlyphsUPP glyphsProc, + required QDPrinterStatusUPP printerStatusProc, + required UniversalProcPtr newProc4, + required UniversalProcPtr newProc5, + required UniversalProcPtr newProc6, + }) => $allocator() + ..ref.textProc = textProc + ..ref.lineProc = lineProc + ..ref.rectProc = rectProc + ..ref.rRectProc = rRectProc + ..ref.ovalProc = ovalProc + ..ref.arcProc = arcProc + ..ref.polyProc = polyProc + ..ref.rgnProc = rgnProc + ..ref.bitsProc = bitsProc + ..ref.commentProc = commentProc + ..ref.txMeasProc = txMeasProc + ..ref.getPicProc = getPicProc + ..ref.putPicProc = putPicProc + ..ref.opcodeProc = opcodeProc + ..ref.newProc1 = newProc1 + ..ref.glyphsProc = glyphsProc + ..ref.printerStatusProc = printerStatusProc + ..ref.newProc4 = newProc4 + ..ref.newProc5 = newProc5 + ..ref.newProc6 = newProc6; +} + +typedef CQDProcsPtr = ffi.Pointer; +typedef CSComponentsThreadMode = UInt32; +typedef CSDiskSpaceRecoveryCallback = ffi.Pointer; +typedef DartCSDiskSpaceRecoveryCallback = + objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >; +typedef CSDiskSpaceRecoveryOptions = ffi.Int; +typedef DartCSDiskSpaceRecoveryOptions = int; +typedef CSIdentityAuthorityRef = ffi.Pointer<__CSIdentityAuthority>; +typedef CSIdentityClass = CFIndex; + +@ffi.Packed(2) +final class CSIdentityClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + external CSIdentityStatusUpdatedCallback statusUpdated; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + required CSIdentityStatusUpdatedCallback statusUpdated, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.statusUpdated = statusUpdated; +} + +typedef CSIdentityFlags = CFOptionFlags; + +@ffi.Packed(2) +final class CSIdentityQueryClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retainInfo; + + external CFAllocatorReleaseCallBack releaseInfo; + + external CFAllocatorCopyDescriptionCallBack copyInfoDescription; + + external CSIdentityQueryReceiveEventCallback receiveEvent; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retainInfo, + required CFAllocatorReleaseCallBack releaseInfo, + required CFAllocatorCopyDescriptionCallBack copyInfoDescription, + required CSIdentityQueryReceiveEventCallback receiveEvent, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retainInfo = retainInfo + ..ref.releaseInfo = releaseInfo + ..ref.copyInfoDescription = copyInfoDescription + ..ref.receiveEvent = receiveEvent; +} + +typedef CSIdentityQueryEvent = CFIndex; +typedef CSIdentityQueryFlags = CFOptionFlags; +typedef CSIdentityQueryReceiveEventCallback = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CSIdentityQueryReceiveEventCallbackFunction = + ffi.Void Function( + CSIdentityQueryRef query, + CSIdentityQueryEvent event, + CFArrayRef identities, + CFErrorRef error, + ffi.Pointer info, + ); +typedef DartCSIdentityQueryReceiveEventCallbackFunction = + void Function( + CSIdentityQueryRef query, + DartCFIndex event, + CFArrayRef identities, + CFErrorRef error, + ffi.Pointer info, + ); +typedef CSIdentityQueryRef = ffi.Pointer<__CSIdentityQuery>; +typedef CSIdentityQueryStringComparisonMethod = CFIndex; +typedef CSIdentityRef = ffi.Pointer<__CSIdentity>; +typedef CSIdentityStatusUpdatedCallback = + ffi.Pointer>; +typedef CSIdentityStatusUpdatedCallbackFunction = + ffi.Void Function( + CSIdentityRef identity, + CFIndex status, + CFErrorRef error, + ffi.Pointer info, + ); +typedef DartCSIdentityStatusUpdatedCallbackFunction = + void Function( + CSIdentityRef identity, + DartCFIndex status, + CFErrorRef error, + ffi.Pointer info, + ); + +const int CSSMERR_AC_DEVICE_FAILED = -2147405595; + +const int CSSMERR_AC_DEVICE_RESET = -2147405596; + +const int CSSMERR_AC_FUNCTION_FAILED = -2147405814; + +const int CSSMERR_AC_FUNCTION_NOT_IMPLEMENTED = -2147405817; + +const int CSSMERR_AC_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147405597; + +const int CSSMERR_AC_INTERNAL_ERROR = -2147405823; + +const int CSSMERR_AC_INVALID_BASE_ACLS = -2147405567; + +const int CSSMERR_AC_INVALID_CL_HANDLE = -2147405742; + +const int CSSMERR_AC_INVALID_CONTEXT_HANDLE = -2147405760; + +const int CSSMERR_AC_INVALID_DATA = -2147405754; + +const int CSSMERR_AC_INVALID_DB_HANDLE = -2147405750; + +const int CSSMERR_AC_INVALID_DB_LIST = -2147405748; + +const int CSSMERR_AC_INVALID_DB_LIST_POINTER = -2147405747; + +const int CSSMERR_AC_INVALID_DL_HANDLE = -2147405743; + +const int CSSMERR_AC_INVALID_ENCODING = -2147405565; + +const int CSSMERR_AC_INVALID_INPUT_POINTER = -2147405819; + +const int CSSMERR_AC_INVALID_OUTPUT_POINTER = -2147405818; + +const int CSSMERR_AC_INVALID_PASSTHROUGH_ID = -2147405738; + +const int CSSMERR_AC_INVALID_POINTER = -2147405820; + +const int CSSMERR_AC_INVALID_REQUESTOR = -2147405563; + +const int CSSMERR_AC_INVALID_REQUEST_DESCRIPTOR = -2147405562; + +const int CSSMERR_AC_INVALID_TP_HANDLE = -2147405741; + +const int CSSMERR_AC_INVALID_TUPLE_CREDENTIALS = -2147405566; + +const int CSSMERR_AC_INVALID_VALIDITY_PERIOD = -2147405564; + +const int CSSMERR_AC_IN_DARK_WAKE = -2147405594; + +const int CSSMERR_AC_MDS_ERROR = -2147405821; + +const int CSSMERR_AC_MEMORY_ERROR = -2147405822; + +const int CSSMERR_AC_NO_USER_INTERACTION = -2147405600; + +const int CSSMERR_AC_OS_ACCESS_DENIED = -2147405815; + +const int CSSMERR_AC_SELF_CHECK_FAILED = -2147405816; + +const int CSSMERR_AC_SERVICE_NOT_AVAILABLE = -2147405598; + +const int CSSMERR_AC_USER_CANCELED = -2147405599; + +const int CSSMERR_APPLEDL_DISK_FULL = -2147412991; + +const int CSSMERR_APPLEDL_FILE_TOO_BIG = -2147412989; + +const int CSSMERR_APPLEDL_INCOMPATIBLE_DATABASE_BLOB = -2147412986; + +const int CSSMERR_APPLEDL_INCOMPATIBLE_KEY_BLOB = -2147412985; + +const int CSSMERR_APPLEDL_INVALID_DATABASE_BLOB = -2147412988; + +const int CSSMERR_APPLEDL_INVALID_KEY_BLOB = -2147412987; + +const int CSSMERR_APPLEDL_INVALID_OPEN_PARAMETERS = -2147412992; + +const int CSSMERR_APPLEDL_QUOTA_EXCEEDED = -2147412990; + +const int CSSMERR_APPLETP_BAD_CERT_FROM_ISSUER = -2147408873; + +const int CSSMERR_APPLETP_CA_PIN_MISMATCH = -2147408836; + +const int CSSMERR_APPLETP_CERT_NOT_FOUND_FROM_ISSUER = -2147408874; + +const int CSSMERR_APPLETP_CODE_SIGN_DEVELOPMENT = -2147408845; + +const int CSSMERR_APPLETP_CRL_BAD_URI = -2147408881; + +const int CSSMERR_APPLETP_CRL_EXPIRED = -2147408885; + +const int CSSMERR_APPLETP_CRL_INVALID_ANCHOR_CERT = -2147408877; + +const int CSSMERR_APPLETP_CRL_NOT_FOUND = -2147408883; + +const int CSSMERR_APPLETP_CRL_NOT_TRUSTED = -2147408878; + +const int CSSMERR_APPLETP_CRL_NOT_VALID_YET = -2147408884; + +const int CSSMERR_APPLETP_CRL_POLICY_FAIL = -2147408876; + +const int CSSMERR_APPLETP_CRL_SERVER_DOWN = -2147408882; + +const int CSSMERR_APPLETP_CS_BAD_CERT_CHAIN_LENGTH = -2147408849; + +const int CSSMERR_APPLETP_CS_BAD_PATH_LENGTH = -2147408847; + +const int CSSMERR_APPLETP_CS_NO_BASIC_CONSTRAINTS = -2147408848; + +const int CSSMERR_APPLETP_CS_NO_EXTENDED_KEY_USAGE = -2147408846; + +const int CSSMERR_APPLETP_EXT_KEYUSAGE_NOT_CRITICAL = -2147408838; + +const int CSSMERR_APPLETP_HOSTNAME_MISMATCH = -2147408896; + +const int CSSMERR_APPLETP_IDENTIFIER_MISSING = -2147408837; + +const int CSSMERR_APPLETP_IDP_FAIL = -2147408875; + +const int CSSMERR_APPLETP_INCOMPLETE_REVOCATION_CHECK = -2147408861; + +const int CSSMERR_APPLETP_INVALID_AUTHORITY_ID = -2147408892; + +const int CSSMERR_APPLETP_INVALID_CA = -2147408893; + +const int CSSMERR_APPLETP_INVALID_EMPTY_SUBJECT = -2147408841; + +const int CSSMERR_APPLETP_INVALID_EXTENDED_KEY_USAGE = -2147408889; + +const int CSSMERR_APPLETP_INVALID_ID_LINKAGE = -2147408888; + +const int CSSMERR_APPLETP_INVALID_KEY_USAGE = -2147408890; + +const int CSSMERR_APPLETP_INVALID_ROOT = -2147408886; + +const int CSSMERR_APPLETP_INVALID_SUBJECT_ID = -2147408891; + +const int CSSMERR_APPLETP_LEAF_PIN_MISMATCH = -2147408835; + +const int CSSMERR_APPLETP_MISSING_REQUIRED_EXTENSION = -2147408839; + +const int CSSMERR_APPLETP_NETWORK_FAILURE = -2147408860; + +const int CSSMERR_APPLETP_NO_BASIC_CONSTRAINTS = -2147408894; + +const int CSSMERR_APPLETP_OCSP_BAD_REQUEST = -2147408864; + +const int CSSMERR_APPLETP_OCSP_BAD_RESPONSE = -2147408865; + +const int CSSMERR_APPLETP_OCSP_INVALID_ANCHOR_CERT = -2147408858; + +const int CSSMERR_APPLETP_OCSP_NONCE_MISMATCH = -2147408850; + +const int CSSMERR_APPLETP_OCSP_NOT_TRUSTED = -2147408859; + +const int CSSMERR_APPLETP_OCSP_NO_SIGNER = -2147408856; + +const int CSSMERR_APPLETP_OCSP_RESP_INTERNAL_ERR = -2147408854; + +const int CSSMERR_APPLETP_OCSP_RESP_MALFORMED_REQ = -2147408855; + +const int CSSMERR_APPLETP_OCSP_RESP_SIG_REQUIRED = -2147408852; + +const int CSSMERR_APPLETP_OCSP_RESP_TRY_LATER = -2147408853; + +const int CSSMERR_APPLETP_OCSP_RESP_UNAUTHORIZED = -2147408851; + +const int CSSMERR_APPLETP_OCSP_SIG_ERROR = -2147408857; + +const int CSSMERR_APPLETP_OCSP_STATUS_UNRECOGNIZED = -2147408862; + +const int CSSMERR_APPLETP_OCSP_UNAVAILABLE = -2147408863; + +const int CSSMERR_APPLETP_PATH_LEN_CONSTRAINT = -2147408887; + +const int CSSMERR_APPLETP_RS_BAD_CERT_CHAIN_LENGTH = -2147408844; + +const int CSSMERR_APPLETP_RS_BAD_EXTENDED_KEY_USAGE = -2147408843; + +const int CSSMERR_APPLETP_SMIME_BAD_EXT_KEY_USE = -2147408871; + +const int CSSMERR_APPLETP_SMIME_BAD_KEY_USE = -2147408870; + +const int CSSMERR_APPLETP_SMIME_EMAIL_ADDRS_NOT_FOUND = -2147408872; + +const int CSSMERR_APPLETP_SMIME_KEYUSAGE_NOT_CRITICAL = -2147408869; + +const int CSSMERR_APPLETP_SMIME_NO_EMAIL_ADDRS = -2147408868; + +const int CSSMERR_APPLETP_SMIME_SUBJ_ALT_NAME_NOT_CRIT = -2147408867; + +const int CSSMERR_APPLETP_SSL_BAD_EXT_KEY_USE = -2147408866; + +const int CSSMERR_APPLETP_TRUST_SETTING_DENY = -2147408842; + +const int CSSMERR_APPLETP_UNKNOWN_CERT_EXTEN = -2147408880; + +const int CSSMERR_APPLETP_UNKNOWN_CRITICAL_EXTEN = -2147408895; + +const int CSSMERR_APPLETP_UNKNOWN_CRL_EXTEN = -2147408879; + +const int CSSMERR_APPLETP_UNKNOWN_QUAL_CERT_STATEMENT = -2147408840; + +const int CSSMERR_APPLE_DOTMAC_CSR_VERIFY_FAIL = -2147408785; + +const int CSSMERR_APPLE_DOTMAC_FAILED_CONSISTENCY_CHECK = -2147408784; + +const int CSSMERR_APPLE_DOTMAC_NO_REQ_PENDING = -2147408786; + +const int CSSMERR_APPLE_DOTMAC_REQ_IS_PENDING = -2147408787; + +const int CSSMERR_APPLE_DOTMAC_REQ_QUEUED = -2147408796; + +const int CSSMERR_APPLE_DOTMAC_REQ_REDIRECT = -2147408795; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ALREADY_EXIST = -2147408789; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_AUTH = -2147408792; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ERR = -2147408794; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_NOT_AVAIL = -2147408790; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_PARAM = -2147408793; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_SERVICE_ERROR = -2147408788; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_UNIMPL = -2147408791; + +const int CSSMERR_CL_CRL_ALREADY_SIGNED = -2147411897; + +const int CSSMERR_CL_DEVICE_FAILED = -2147411739; + +const int CSSMERR_CL_DEVICE_RESET = -2147411740; + +const int CSSMERR_CL_FUNCTION_FAILED = -2147411958; + +const int CSSMERR_CL_FUNCTION_NOT_IMPLEMENTED = -2147411961; + +const int CSSMERR_CL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147411741; + +const int CSSMERR_CL_INTERNAL_ERROR = -2147411967; + +const int CSSMERR_CL_INVALID_BUNDLE_INFO = -2147411708; + +const int CSSMERR_CL_INVALID_BUNDLE_POINTER = -2147411711; + +const int CSSMERR_CL_INVALID_CACHE_HANDLE = -2147411710; + +const int CSSMERR_CL_INVALID_CERTGROUP_POINTER = -2147411902; + +const int CSSMERR_CL_INVALID_CERT_POINTER = -2147411901; + +const int CSSMERR_CL_INVALID_CONTEXT_HANDLE = -2147411904; + +const int CSSMERR_CL_INVALID_CRL_INDEX = -2147411707; + +const int CSSMERR_CL_INVALID_CRL_POINTER = -2147411900; + +const int CSSMERR_CL_INVALID_DATA = -2147411898; + +const int CSSMERR_CL_INVALID_FIELD_POINTER = -2147411899; + +const int CSSMERR_CL_INVALID_INPUT_POINTER = -2147411963; + +const int CSSMERR_CL_INVALID_NUMBER_OF_FIELDS = -2147411896; + +const int CSSMERR_CL_INVALID_OUTPUT_POINTER = -2147411962; + +const int CSSMERR_CL_INVALID_PASSTHROUGH_ID = -2147411882; + +const int CSSMERR_CL_INVALID_POINTER = -2147411964; + +const int CSSMERR_CL_INVALID_RESULTS_HANDLE = -2147411709; + +const int CSSMERR_CL_INVALID_SCOPE = -2147411706; + +const int CSSMERR_CL_IN_DARK_WAKE = -2147411738; + +const int CSSMERR_CL_MDS_ERROR = -2147411965; + +const int CSSMERR_CL_MEMORY_ERROR = -2147411966; + +const int CSSMERR_CL_NO_FIELD_VALUES = -2147411705; + +const int CSSMERR_CL_NO_USER_INTERACTION = -2147411744; + +const int CSSMERR_CL_OS_ACCESS_DENIED = -2147411959; + +const int CSSMERR_CL_SCOPE_NOT_SUPPORTED = -2147411704; + +const int CSSMERR_CL_SELF_CHECK_FAILED = -2147411960; + +const int CSSMERR_CL_SERVICE_NOT_AVAILABLE = -2147411742; + +const int CSSMERR_CL_UNKNOWN_FORMAT = -2147411890; + +const int CSSMERR_CL_UNKNOWN_TAG = -2147411889; + +const int CSSMERR_CL_USER_CANCELED = -2147411743; + +const int CSSMERR_CL_VERIFICATION_FAILURE = -2147411895; + +const int CSSMERR_CSPDL_APPLE_DL_CONVERSION_ERROR = -2147415035; + +const int CSSMERR_CSP_ACL_ADD_FAILED = -2147416010; + +const int CSSMERR_CSP_ACL_BASE_CERTS_NOT_SUPPORTED = -2147416025; + +const int CSSMERR_CSP_ACL_CHALLENGE_CALLBACK_FAILED = -2147416019; + +const int CSSMERR_CSP_ACL_CHANGE_FAILED = -2147416015; + +const int CSSMERR_CSP_ACL_DELETE_FAILED = -2147416012; + +const int CSSMERR_CSP_ACL_ENTRY_TAG_NOT_FOUND = -2147416017; + +const int CSSMERR_CSP_ACL_REPLACE_FAILED = -2147416011; + +const int CSSMERR_CSP_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147416021; + +const int CSSMERR_CSP_ALGID_MISMATCH = -2147415789; + +const int CSSMERR_CSP_ALREADY_LOGGED_IN = -2147415726; + +const int CSSMERR_CSP_APPLE_ADD_APPLICATION_ACL_SUBJECT = -2147415040; + +const int CSSMERR_CSP_APPLE_INVALID_KEY_END_DATE = -2147415036; + +const int CSSMERR_CSP_APPLE_INVALID_KEY_START_DATE = -2147415037; + +const int CSSMERR_CSP_APPLE_PUBLIC_KEY_INCOMPLETE = -2147415039; + +const int CSSMERR_CSP_APPLE_SIGNATURE_MISMATCH = -2147415038; + +const int CSSMERR_CSP_APPLE_SSLv2_ROLLBACK = -2147415034; + +const int CSSMERR_CSP_ATTACH_HANDLE_BUSY = -2147415802; + +const int CSSMERR_CSP_BLOCK_SIZE_MISMATCH = -2147415731; + +const int CSSMERR_CSP_CRYPTO_DATA_CALLBACK_FAILED = -2147415722; + +const int CSSMERR_CSP_DEVICE_ERROR = -2147415804; + +const int CSSMERR_CSP_DEVICE_FAILED = -2147415835; + +const int CSSMERR_CSP_DEVICE_MEMORY_ERROR = -2147415803; + +const int CSSMERR_CSP_DEVICE_RESET = -2147415836; + +const int CSSMERR_CSP_DEVICE_VERIFY_FAILED = -2147415728; + +const int CSSMERR_CSP_FUNCTION_FAILED = -2147416054; + +const int CSSMERR_CSP_FUNCTION_NOT_IMPLEMENTED = -2147416057; + +const int CSSMERR_CSP_INPUT_LENGTH_ERROR = -2147415807; + +const int CSSMERR_CSP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147415837; + +const int CSSMERR_CSP_INTERNAL_ERROR = -2147416063; + +const int CSSMERR_CSP_INVALID_ACCESS_CREDENTIALS = -2147416027; + +const int CSSMERR_CSP_INVALID_ACL_BASE_CERTS = -2147416026; + +const int CSSMERR_CSP_INVALID_ACL_CHALLENGE_CALLBACK = -2147416020; + +const int CSSMERR_CSP_INVALID_ACL_EDIT_MODE = -2147416016; + +const int CSSMERR_CSP_INVALID_ACL_ENTRY_TAG = -2147416018; + +const int CSSMERR_CSP_INVALID_ACL_SUBJECT_VALUE = -2147416022; + +const int CSSMERR_CSP_INVALID_ALGORITHM = -2147415759; + +const int CSSMERR_CSP_INVALID_ATTR_ACCESS_CREDENTIALS = -2147415678; + +const int CSSMERR_CSP_INVALID_ATTR_ALG_PARAMS = -2147415704; + +const int CSSMERR_CSP_INVALID_ATTR_BASE = -2147415686; + +const int CSSMERR_CSP_INVALID_ATTR_BLOCK_SIZE = -2147415738; + +const int CSSMERR_CSP_INVALID_ATTR_DL_DB_HANDLE = -2147415680; + +const int CSSMERR_CSP_INVALID_ATTR_EFFECTIVE_BITS = -2147415696; + +const int CSSMERR_CSP_INVALID_ATTR_END_DATE = -2147415692; + +const int CSSMERR_CSP_INVALID_ATTR_INIT_VECTOR = -2147415752; + +const int CSSMERR_CSP_INVALID_ATTR_ITERATION_COUNT = -2147415682; + +const int CSSMERR_CSP_INVALID_ATTR_KEY = -2147415754; + +const int CSSMERR_CSP_INVALID_ATTR_KEY_LENGTH = -2147415740; + +const int CSSMERR_CSP_INVALID_ATTR_KEY_TYPE = -2147415700; + +const int CSSMERR_CSP_INVALID_ATTR_LABEL = -2147415702; + +const int CSSMERR_CSP_INVALID_ATTR_MODE = -2147415698; + +const int CSSMERR_CSP_INVALID_ATTR_OUTPUT_SIZE = -2147415708; + +const int CSSMERR_CSP_INVALID_ATTR_PADDING = -2147415748; + +const int CSSMERR_CSP_INVALID_ATTR_PASSPHRASE = -2147415742; + +const int CSSMERR_CSP_INVALID_ATTR_PRIME = -2147415688; + +const int CSSMERR_CSP_INVALID_ATTR_PRIVATE_KEY_FORMAT = -2147415674; + +const int CSSMERR_CSP_INVALID_ATTR_PUBLIC_KEY_FORMAT = -2147415676; + +const int CSSMERR_CSP_INVALID_ATTR_RANDOM = -2147415746; + +const int CSSMERR_CSP_INVALID_ATTR_ROUNDS = -2147415706; + +const int CSSMERR_CSP_INVALID_ATTR_SALT = -2147415750; + +const int CSSMERR_CSP_INVALID_ATTR_SEED = -2147415744; + +const int CSSMERR_CSP_INVALID_ATTR_START_DATE = -2147415694; + +const int CSSMERR_CSP_INVALID_ATTR_SUBPRIME = -2147415684; + +const int CSSMERR_CSP_INVALID_ATTR_SYMMETRIC_KEY_FORMAT = -2147415672; + +const int CSSMERR_CSP_INVALID_ATTR_VERSION = -2147415690; + +const int CSSMERR_CSP_INVALID_ATTR_WRAPPED_KEY_FORMAT = -2147415670; + +const int CSSMERR_CSP_INVALID_CONTEXT = -2147415760; + +const int CSSMERR_CSP_INVALID_CONTEXT_HANDLE = -2147416000; + +const int CSSMERR_CSP_INVALID_CRYPTO_DATA = -2147415976; + +const int CSSMERR_CSP_INVALID_DATA = -2147415994; + +const int CSSMERR_CSP_INVALID_DATA_COUNT = -2147415768; + +const int CSSMERR_CSP_INVALID_DIGEST_ALGORITHM = -2147415723; + +const int CSSMERR_CSP_INVALID_INPUT_POINTER = -2147416059; + +const int CSSMERR_CSP_INVALID_INPUT_VECTOR = -2147415766; + +const int CSSMERR_CSP_INVALID_KEY = -2147415792; + +const int CSSMERR_CSP_INVALID_KEYATTR_MASK = -2147415780; + +const int CSSMERR_CSP_INVALID_KEYUSAGE_MASK = -2147415782; + +const int CSSMERR_CSP_INVALID_KEY_CLASS = -2147415790; + +const int CSSMERR_CSP_INVALID_KEY_FORMAT = -2147415776; + +const int CSSMERR_CSP_INVALID_KEY_LABEL = -2147415778; + +const int CSSMERR_CSP_INVALID_KEY_POINTER = -2147415783; + +const int CSSMERR_CSP_INVALID_KEY_REFERENCE = -2147415791; + +const int CSSMERR_CSP_INVALID_LOGIN_NAME = -2147415727; + +const int CSSMERR_CSP_INVALID_NEW_ACL_ENTRY = -2147416014; + +const int CSSMERR_CSP_INVALID_NEW_ACL_OWNER = -2147416013; + +const int CSSMERR_CSP_INVALID_OUTPUT_POINTER = -2147416058; + +const int CSSMERR_CSP_INVALID_OUTPUT_VECTOR = -2147415765; + +const int CSSMERR_CSP_INVALID_PASSTHROUGH_ID = -2147415978; + +const int CSSMERR_CSP_INVALID_POINTER = -2147416060; + +const int CSSMERR_CSP_INVALID_SAMPLE_VALUE = -2147416024; + +const int CSSMERR_CSP_INVALID_SIGNATURE = -2147415733; + +const int CSSMERR_CSP_IN_DARK_WAKE = -2147415834; + +const int CSSMERR_CSP_KEY_BLOB_TYPE_INCORRECT = -2147415787; + +const int CSSMERR_CSP_KEY_HEADER_INCONSISTENT = -2147415786; + +const int CSSMERR_CSP_KEY_LABEL_ALREADY_EXISTS = -2147415724; + +const int CSSMERR_CSP_KEY_USAGE_INCORRECT = -2147415788; + +const int CSSMERR_CSP_MDS_ERROR = -2147416061; + +const int CSSMERR_CSP_MEMORY_ERROR = -2147416062; + +const int CSSMERR_CSP_MISSING_ATTR_ACCESS_CREDENTIALS = -2147415677; + +const int CSSMERR_CSP_MISSING_ATTR_ALG_PARAMS = -2147415703; + +const int CSSMERR_CSP_MISSING_ATTR_BASE = -2147415685; + +const int CSSMERR_CSP_MISSING_ATTR_BLOCK_SIZE = -2147415737; + +const int CSSMERR_CSP_MISSING_ATTR_DL_DB_HANDLE = -2147415679; + +const int CSSMERR_CSP_MISSING_ATTR_EFFECTIVE_BITS = -2147415695; + +const int CSSMERR_CSP_MISSING_ATTR_END_DATE = -2147415691; + +const int CSSMERR_CSP_MISSING_ATTR_INIT_VECTOR = -2147415751; + +const int CSSMERR_CSP_MISSING_ATTR_ITERATION_COUNT = -2147415681; + +const int CSSMERR_CSP_MISSING_ATTR_KEY = -2147415753; + +const int CSSMERR_CSP_MISSING_ATTR_KEY_LENGTH = -2147415739; + +const int CSSMERR_CSP_MISSING_ATTR_KEY_TYPE = -2147415699; + +const int CSSMERR_CSP_MISSING_ATTR_LABEL = -2147415701; + +const int CSSMERR_CSP_MISSING_ATTR_MODE = -2147415697; + +const int CSSMERR_CSP_MISSING_ATTR_OUTPUT_SIZE = -2147415707; + +const int CSSMERR_CSP_MISSING_ATTR_PADDING = -2147415747; + +const int CSSMERR_CSP_MISSING_ATTR_PASSPHRASE = -2147415741; + +const int CSSMERR_CSP_MISSING_ATTR_PRIME = -2147415687; + +const int CSSMERR_CSP_MISSING_ATTR_PRIVATE_KEY_FORMAT = -2147415673; + +const int CSSMERR_CSP_MISSING_ATTR_PUBLIC_KEY_FORMAT = -2147415675; + +const int CSSMERR_CSP_MISSING_ATTR_RANDOM = -2147415745; + +const int CSSMERR_CSP_MISSING_ATTR_ROUNDS = -2147415705; + +const int CSSMERR_CSP_MISSING_ATTR_SALT = -2147415749; + +const int CSSMERR_CSP_MISSING_ATTR_SEED = -2147415743; + +const int CSSMERR_CSP_MISSING_ATTR_START_DATE = -2147415693; + +const int CSSMERR_CSP_MISSING_ATTR_SUBPRIME = -2147415683; + +const int CSSMERR_CSP_MISSING_ATTR_SYMMETRIC_KEY_FORMAT = -2147415671; + +const int CSSMERR_CSP_MISSING_ATTR_VERSION = -2147415689; + +const int CSSMERR_CSP_MISSING_ATTR_WRAPPED_KEY_FORMAT = -2147415669; + +const int CSSMERR_CSP_NOT_LOGGED_IN = -2147415801; + +const int CSSMERR_CSP_NO_USER_INTERACTION = -2147415840; + +const int CSSMERR_CSP_OBJECT_ACL_NOT_SUPPORTED = -2147416029; + +const int CSSMERR_CSP_OBJECT_ACL_REQUIRED = -2147416028; + +const int CSSMERR_CSP_OBJECT_MANIP_AUTH_DENIED = -2147416030; + +const int CSSMERR_CSP_OBJECT_USE_AUTH_DENIED = -2147416031; + +const int CSSMERR_CSP_OPERATION_AUTH_DENIED = -2147416032; + +const int CSSMERR_CSP_OS_ACCESS_DENIED = -2147416055; + +const int CSSMERR_CSP_OUTPUT_LENGTH_ERROR = -2147415806; + +const int CSSMERR_CSP_PRIVATE_KEY_ALREADY_EXISTS = -2147415725; + +const int CSSMERR_CSP_PRIVATE_KEY_NOT_FOUND = -2147415730; + +const int CSSMERR_CSP_PRIVILEGE_NOT_GRANTED = -2147415989; + +const int CSSMERR_CSP_PRIVILEGE_NOT_SUPPORTED = -2147415805; + +const int CSSMERR_CSP_PUBLIC_KEY_INCONSISTENT = -2147415729; + +const int CSSMERR_CSP_QUERY_SIZE_UNKNOWN = -2147415732; + +const int CSSMERR_CSP_SAMPLE_VALUE_NOT_SUPPORTED = -2147416023; + +const int CSSMERR_CSP_SELF_CHECK_FAILED = -2147416056; + +const int CSSMERR_CSP_SERVICE_NOT_AVAILABLE = -2147415838; + +const int CSSMERR_CSP_STAGED_OPERATION_IN_PROGRESS = -2147415736; + +const int CSSMERR_CSP_STAGED_OPERATION_NOT_STARTED = -2147415735; + +const int CSSMERR_CSP_UNSUPPORTED_KEYATTR_MASK = -2147415779; + +const int CSSMERR_CSP_UNSUPPORTED_KEYUSAGE_MASK = -2147415781; + +const int CSSMERR_CSP_UNSUPPORTED_KEY_FORMAT = -2147415785; + +const int CSSMERR_CSP_UNSUPPORTED_KEY_LABEL = -2147415777; + +const int CSSMERR_CSP_UNSUPPORTED_KEY_SIZE = -2147415784; + +const int CSSMERR_CSP_USER_CANCELED = -2147415839; + +const int CSSMERR_CSP_VECTOR_OF_BUFS_UNSUPPORTED = -2147415767; + +const int CSSMERR_CSP_VERIFY_FAILED = -2147415734; + +const int CSSMERR_CSSM_ADDIN_AUTHENTICATE_FAILED = -2147417828; + +const int CSSMERR_CSSM_ADDIN_LOAD_FAILED = -2147417834; + +const int CSSMERR_CSSM_ADDIN_UNLOAD_FAILED = -2147417832; + +const int CSSMERR_CSSM_ATTRIBUTE_NOT_IN_CONTEXT = -2147417822; + +const int CSSMERR_CSSM_BUFFER_TOO_SMALL = -2147417824; + +const int CSSMERR_CSSM_DEVICE_FAILED = -2147417883; + +const int CSSMERR_CSSM_DEVICE_RESET = -2147417884; + +const int CSSMERR_CSSM_EMM_AUTHENTICATE_FAILED = -2147417829; + +const int CSSMERR_CSSM_EMM_LOAD_FAILED = -2147417836; + +const int CSSMERR_CSSM_EMM_UNLOAD_FAILED = -2147417835; + +const int CSSMERR_CSSM_EVENT_NOTIFICATION_CALLBACK_NOT_FOUND = -2147417819; + +const int CSSMERR_CSSM_FUNCTION_FAILED = -2147418102; + +const int CSSMERR_CSSM_FUNCTION_INTEGRITY_FAIL = -2147417851; + +const int CSSMERR_CSSM_FUNCTION_NOT_IMPLEMENTED = -2147418105; + +const int CSSMERR_CSSM_INCOMPATIBLE_VERSION = -2147418047; + +const int CSSMERR_CSSM_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147417885; + +const int CSSMERR_CSSM_INTERNAL_ERROR = -2147418111; + +const int CSSMERR_CSSM_INVALID_ADDIN_FUNCTION_TABLE = -2147417830; + +const int CSSMERR_CSSM_INVALID_ADDIN_HANDLE = -2147417855; + +const int CSSMERR_CSSM_INVALID_ATTRIBUTE = -2147417823; + +const int CSSMERR_CSSM_INVALID_CONTEXT_HANDLE = -2147418048; + +const int CSSMERR_CSSM_INVALID_GUID = -2147418100; + +const int CSSMERR_CSSM_INVALID_HANDLE_USAGE = -2147417853; + +const int CSSMERR_CSSM_INVALID_INPUT_POINTER = -2147418107; + +const int CSSMERR_CSSM_INVALID_KEY_HIERARCHY = -2147417833; + +const int CSSMERR_CSSM_INVALID_OUTPUT_POINTER = -2147418106; + +const int CSSMERR_CSSM_INVALID_POINTER = -2147418108; + +const int CSSMERR_CSSM_INVALID_PVC = -2147417837; + +const int CSSMERR_CSSM_INVALID_SERVICE_MASK = -2147417827; + +const int CSSMERR_CSSM_INVALID_SUBSERVICEID = -2147417825; + +const int CSSMERR_CSSM_IN_DARK_WAKE = -2147417882; + +const int CSSMERR_CSSM_LIB_REF_NOT_FOUND = -2147417831; + +const int CSSMERR_CSSM_MDS_ERROR = -2147418109; + +const int CSSMERR_CSSM_MEMORY_ERROR = -2147418110; + +const int CSSMERR_CSSM_MODULE_MANAGER_INITIALIZE_FAIL = -2147417821; + +const int CSSMERR_CSSM_MODULE_MANAGER_NOT_FOUND = -2147417820; + +const int CSSMERR_CSSM_MODULE_MANIFEST_VERIFY_FAILED = -2147418101; + +const int CSSMERR_CSSM_MODULE_NOT_LOADED = -2147417826; + +const int CSSMERR_CSSM_NOT_INITIALIZED = -2147417854; + +const int CSSMERR_CSSM_NO_USER_INTERACTION = -2147417888; + +const int CSSMERR_CSSM_OS_ACCESS_DENIED = -2147418103; + +const int CSSMERR_CSSM_PRIVILEGE_NOT_GRANTED = -2147418037; + +const int CSSMERR_CSSM_PVC_ALREADY_CONFIGURED = -2147417838; + +const int CSSMERR_CSSM_PVC_REFERENT_NOT_FOUND = -2147417852; + +const int CSSMERR_CSSM_SCOPE_NOT_SUPPORTED = -2147417839; + +const int CSSMERR_CSSM_SELF_CHECK_FAILED = -2147418104; + +const int CSSMERR_CSSM_SERVICE_NOT_AVAILABLE = -2147417886; + +const int CSSMERR_CSSM_USER_CANCELED = -2147417887; + +const int CSSMERR_DL_ACL_ADD_FAILED = -2147413962; + +const int CSSMERR_DL_ACL_BASE_CERTS_NOT_SUPPORTED = -2147413977; + +const int CSSMERR_DL_ACL_CHALLENGE_CALLBACK_FAILED = -2147413971; + +const int CSSMERR_DL_ACL_CHANGE_FAILED = -2147413967; + +const int CSSMERR_DL_ACL_DELETE_FAILED = -2147413964; + +const int CSSMERR_DL_ACL_ENTRY_TAG_NOT_FOUND = -2147413969; + +const int CSSMERR_DL_ACL_REPLACE_FAILED = -2147413963; + +const int CSSMERR_DL_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147413973; + +const int CSSMERR_DL_DATABASE_CORRUPT = -2147413759; + +const int CSSMERR_DL_DATASTORE_ALREADY_EXISTS = -2147413736; + +const int CSSMERR_DL_DATASTORE_DOESNOT_EXIST = -2147413737; + +const int CSSMERR_DL_DATASTORE_IS_OPEN = -2147413734; + +const int CSSMERR_DL_DB_LOCKED = -2147413735; + +const int CSSMERR_DL_DEVICE_FAILED = -2147413787; + +const int CSSMERR_DL_DEVICE_RESET = -2147413788; + +const int CSSMERR_DL_ENDOFDATA = -2147413715; + +const int CSSMERR_DL_FIELD_SPECIFIED_MULTIPLE = -2147413742; + +const int CSSMERR_DL_FUNCTION_FAILED = -2147414006; + +const int CSSMERR_DL_FUNCTION_NOT_IMPLEMENTED = -2147414009; + +const int CSSMERR_DL_INCOMPATIBLE_FIELD_FORMAT = -2147413741; + +const int CSSMERR_DL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147413789; + +const int CSSMERR_DL_INTERNAL_ERROR = -2147414015; + +const int CSSMERR_DL_INVALID_ACCESS_CREDENTIALS = -2147413979; + +const int CSSMERR_DL_INVALID_ACCESS_REQUEST = -2147413724; + +const int CSSMERR_DL_INVALID_ACL_BASE_CERTS = -2147413978; + +const int CSSMERR_DL_INVALID_ACL_CHALLENGE_CALLBACK = -2147413972; + +const int CSSMERR_DL_INVALID_ACL_EDIT_MODE = -2147413968; + +const int CSSMERR_DL_INVALID_ACL_ENTRY_TAG = -2147413970; + +const int CSSMERR_DL_INVALID_ACL_SUBJECT_VALUE = -2147413974; + +const int CSSMERR_DL_INVALID_CL_HANDLE = -2147413934; + +const int CSSMERR_DL_INVALID_CSP_HANDLE = -2147413936; + +const int CSSMERR_DL_INVALID_DB_HANDLE = -2147413942; + +const int CSSMERR_DL_INVALID_DB_LIST_POINTER = -2147413939; + +const int CSSMERR_DL_INVALID_DB_LOCATION = -2147413725; + +const int CSSMERR_DL_INVALID_DB_NAME = -2147413738; + +const int CSSMERR_DL_INVALID_DL_HANDLE = -2147413935; + +const int CSSMERR_DL_INVALID_FIELD_NAME = -2147413750; + +const int CSSMERR_DL_INVALID_INDEX_INFO = -2147413723; + +const int CSSMERR_DL_INVALID_INPUT_POINTER = -2147414011; + +const int CSSMERR_DL_INVALID_MODIFY_MODE = -2147413718; + +const int CSSMERR_DL_INVALID_NETWORK_ADDR = -2147413929; + +const int CSSMERR_DL_INVALID_NEW_ACL_ENTRY = -2147413966; + +const int CSSMERR_DL_INVALID_NEW_ACL_OWNER = -2147413965; + +const int CSSMERR_DL_INVALID_NEW_OWNER = -2147413721; + +const int CSSMERR_DL_INVALID_OPEN_PARAMETERS = -2147413717; + +const int CSSMERR_DL_INVALID_OUTPUT_POINTER = -2147414010; + +const int CSSMERR_DL_INVALID_PARSING_MODULE = -2147413740; + +const int CSSMERR_DL_INVALID_PASSTHROUGH_ID = -2147413930; + +const int CSSMERR_DL_INVALID_POINTER = -2147414012; + +const int CSSMERR_DL_INVALID_QUERY = -2147413714; + +const int CSSMERR_DL_INVALID_RECORDTYPE = -2147413751; + +const int CSSMERR_DL_INVALID_RECORD_INDEX = -2147413752; + +const int CSSMERR_DL_INVALID_RECORD_UID = -2147413720; + +const int CSSMERR_DL_INVALID_RESULTS_HANDLE = -2147413726; + +const int CSSMERR_DL_INVALID_SAMPLE_VALUE = -2147413976; + +const int CSSMERR_DL_INVALID_SELECTION_TAG = -2147413722; + +const int CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA = -2147413719; + +const int CSSMERR_DL_INVALID_VALUE = -2147413713; + +const int CSSMERR_DL_IN_DARK_WAKE = -2147413786; + +const int CSSMERR_DL_MDS_ERROR = -2147414013; + +const int CSSMERR_DL_MEMORY_ERROR = -2147414014; + +const int CSSMERR_DL_MISSING_VALUE = -2147413732; + +const int CSSMERR_DL_MULTIPLE_VALUES_UNSUPPORTED = -2147413712; + +const int CSSMERR_DL_NO_USER_INTERACTION = -2147413792; + +const int CSSMERR_DL_OBJECT_ACL_NOT_SUPPORTED = -2147413981; + +const int CSSMERR_DL_OBJECT_ACL_REQUIRED = -2147413980; + +const int CSSMERR_DL_OBJECT_MANIP_AUTH_DENIED = -2147413982; + +const int CSSMERR_DL_OBJECT_USE_AUTH_DENIED = -2147413983; + +const int CSSMERR_DL_OPERATION_AUTH_DENIED = -2147413984; + +const int CSSMERR_DL_OS_ACCESS_DENIED = -2147414007; + +const int CSSMERR_DL_RECORD_MODIFIED = -2147413716; + +const int CSSMERR_DL_RECORD_NOT_FOUND = -2147413733; + +const int CSSMERR_DL_SAMPLE_VALUE_NOT_SUPPORTED = -2147413975; + +const int CSSMERR_DL_SELF_CHECK_FAILED = -2147414008; + +const int CSSMERR_DL_SERVICE_NOT_AVAILABLE = -2147413790; + +const int CSSMERR_DL_STALE_UNIQUE_RECORD = -2147413711; + +const int CSSMERR_DL_UNSUPPORTED_FIELD_FORMAT = -2147413749; + +const int CSSMERR_DL_UNSUPPORTED_INDEX_INFO = -2147413748; + +const int CSSMERR_DL_UNSUPPORTED_LOCALITY = -2147413747; + +const int CSSMERR_DL_UNSUPPORTED_NUM_ATTRIBUTES = -2147413746; + +const int CSSMERR_DL_UNSUPPORTED_NUM_INDEXES = -2147413745; + +const int CSSMERR_DL_UNSUPPORTED_NUM_RECORDTYPES = -2147413744; + +const int CSSMERR_DL_UNSUPPORTED_NUM_SELECTION_PREDS = -2147413729; + +const int CSSMERR_DL_UNSUPPORTED_OPERATOR = -2147413727; + +const int CSSMERR_DL_UNSUPPORTED_QUERY = -2147413731; + +const int CSSMERR_DL_UNSUPPORTED_QUERY_LIMITS = -2147413730; + +const int CSSMERR_DL_UNSUPPORTED_RECORDTYPE = -2147413743; + +const int CSSMERR_DL_USER_CANCELED = -2147413791; + +const int CSSMERR_TP_AUTHENTICATION_FAILED = -2147409657; + +const int CSSMERR_TP_CERTGROUP_INCOMPLETE = -2147409656; + +const int CSSMERR_TP_CERTIFICATE_CANT_OPERATE = -2147409655; + +const int CSSMERR_TP_CERT_EXPIRED = -2147409654; + +const int CSSMERR_TP_CERT_NOT_VALID_YET = -2147409653; + +const int CSSMERR_TP_CERT_REVOKED = -2147409652; + +const int CSSMERR_TP_CERT_SUSPENDED = -2147409651; + +const int CSSMERR_TP_CRL_ALREADY_SIGNED = -2147409849; + +const int CSSMERR_TP_DEVICE_FAILED = -2147409691; + +const int CSSMERR_TP_DEVICE_RESET = -2147409692; + +const int CSSMERR_TP_FUNCTION_FAILED = -2147409910; + +const int CSSMERR_TP_FUNCTION_NOT_IMPLEMENTED = -2147409913; + +const int CSSMERR_TP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147409693; + +const int CSSMERR_TP_INSUFFICIENT_CREDENTIALS = -2147409650; + +const int CSSMERR_TP_INTERNAL_ERROR = -2147409919; + +const int CSSMERR_TP_INVALID_ACTION = -2147409649; + +const int CSSMERR_TP_INVALID_ACTION_DATA = -2147409648; + +const int CSSMERR_TP_INVALID_ANCHOR_CERT = -2147409646; + +const int CSSMERR_TP_INVALID_AUTHORITY = -2147409645; + +const int CSSMERR_TP_INVALID_CALLBACK = -2147409625; + +const int CSSMERR_TP_INVALID_CALLERAUTH_CONTEXT_POINTER = -2147409663; + +const int CSSMERR_TP_INVALID_CERTGROUP = -2147409660; + +const int CSSMERR_TP_INVALID_CERTGROUP_POINTER = -2147409854; + +const int CSSMERR_TP_INVALID_CERTIFICATE = -2147409643; + +const int CSSMERR_TP_INVALID_CERT_AUTHORITY = -2147409642; + +const int CSSMERR_TP_INVALID_CERT_POINTER = -2147409853; + +const int CSSMERR_TP_INVALID_CL_HANDLE = -2147409838; + +const int CSSMERR_TP_INVALID_CONTEXT_HANDLE = -2147409856; + +const int CSSMERR_TP_INVALID_CRL = -2147409638; + +const int CSSMERR_TP_INVALID_CRLGROUP = -2147409659; + +const int CSSMERR_TP_INVALID_CRLGROUP_POINTER = -2147409658; + +const int CSSMERR_TP_INVALID_CRL_AUTHORITY = -2147409641; + +const int CSSMERR_TP_INVALID_CRL_ENCODING = -2147409640; + +const int CSSMERR_TP_INVALID_CRL_POINTER = -2147409852; + +const int CSSMERR_TP_INVALID_CRL_TYPE = -2147409639; + +const int CSSMERR_TP_INVALID_CSP_HANDLE = -2147409840; + +const int CSSMERR_TP_INVALID_DATA = -2147409850; + +const int CSSMERR_TP_INVALID_DB_HANDLE = -2147409846; + +const int CSSMERR_TP_INVALID_DB_LIST = -2147409844; + +const int CSSMERR_TP_INVALID_DB_LIST_POINTER = -2147409843; + +const int CSSMERR_TP_INVALID_DL_HANDLE = -2147409839; + +const int CSSMERR_TP_INVALID_FIELD_POINTER = -2147409851; + +const int CSSMERR_TP_INVALID_FORM_TYPE = -2147409637; + +const int CSSMERR_TP_INVALID_ID = -2147409636; + +const int CSSMERR_TP_INVALID_IDENTIFIER = -2147409635; + +const int CSSMERR_TP_INVALID_IDENTIFIER_POINTER = -2147409662; + +const int CSSMERR_TP_INVALID_INDEX = -2147409634; + +const int CSSMERR_TP_INVALID_INPUT_POINTER = -2147409915; + +const int CSSMERR_TP_INVALID_KEYCACHE_HANDLE = -2147409661; + +const int CSSMERR_TP_INVALID_NAME = -2147409633; + +const int CSSMERR_TP_INVALID_NETWORK_ADDR = -2147409833; + +const int CSSMERR_TP_INVALID_NUMBER_OF_FIELDS = -2147409848; + +const int CSSMERR_TP_INVALID_OUTPUT_POINTER = -2147409914; + +const int CSSMERR_TP_INVALID_PASSTHROUGH_ID = -2147409834; + +const int CSSMERR_TP_INVALID_POINTER = -2147409916; + +const int CSSMERR_TP_INVALID_POLICY_IDENTIFIERS = -2147409632; + +const int CSSMERR_TP_INVALID_REASON = -2147409630; + +const int CSSMERR_TP_INVALID_REQUEST_INPUTS = -2147409629; + +const int CSSMERR_TP_INVALID_RESPONSE_VECTOR = -2147409628; + +const int CSSMERR_TP_INVALID_SIGNATURE = -2147409627; + +const int CSSMERR_TP_INVALID_STOP_ON_POLICY = -2147409626; + +const int CSSMERR_TP_INVALID_TIMESTRING = -2147409631; + +const int CSSMERR_TP_INVALID_TUPLE = -2147409624; + +const int CSSMERR_TP_INVALID_TUPLEGROUP = -2147409614; + +const int CSSMERR_TP_INVALID_TUPLEGROUP_POINTER = -2147409615; + +const int CSSMERR_TP_IN_DARK_WAKE = -2147409690; + +const int CSSMERR_TP_MDS_ERROR = -2147409917; + +const int CSSMERR_TP_MEMORY_ERROR = -2147409918; + +const int CSSMERR_TP_NOT_SIGNER = -2147409623; + +const int CSSMERR_TP_NOT_TRUSTED = -2147409622; + +const int CSSMERR_TP_NO_DEFAULT_AUTHORITY = -2147409621; + +const int CSSMERR_TP_NO_USER_INTERACTION = -2147409696; + +const int CSSMERR_TP_OS_ACCESS_DENIED = -2147409911; + +const int CSSMERR_TP_REJECTED_FORM = -2147409620; + +const int CSSMERR_TP_REQUEST_LOST = -2147409619; + +const int CSSMERR_TP_REQUEST_REJECTED = -2147409618; + +const int CSSMERR_TP_SELF_CHECK_FAILED = -2147409912; + +const int CSSMERR_TP_SERVICE_NOT_AVAILABLE = -2147409694; + +const int CSSMERR_TP_UNKNOWN_FORMAT = -2147409842; + +const int CSSMERR_TP_UNKNOWN_TAG = -2147409841; + +const int CSSMERR_TP_UNSUPPORTED_ADDR_TYPE = -2147409617; + +const int CSSMERR_TP_UNSUPPORTED_SERVICE = -2147409616; + +const int CSSMERR_TP_USER_CANCELED = -2147409695; + +const int CSSMERR_TP_VERIFICATION_FAILURE = -2147409847; + +const int CSSMERR_TP_VERIFY_ACTION_FAILED = -2147409644; + +typedef CSSM_ACCESS_CREDENTIALS = cssm_access_credentials; +typedef CSSM_ACCESS_CREDENTIALS_PTR = ffi.Pointer; + +const int CSSM_ACL_AUTHORIZATION_ANY = 1; + +const int CSSM_ACL_AUTHORIZATION_CHANGE_ACL = 65536; + +const int CSSM_ACL_AUTHORIZATION_CHANGE_OWNER = 65537; + +const int CSSM_ACL_AUTHORIZATION_DBS_CREATE = 22; + +const int CSSM_ACL_AUTHORIZATION_DBS_DELETE = 23; + +const int CSSM_ACL_AUTHORIZATION_DB_DELETE = 17; + +const int CSSM_ACL_AUTHORIZATION_DB_INSERT = 19; + +const int CSSM_ACL_AUTHORIZATION_DB_MODIFY = 20; + +const int CSSM_ACL_AUTHORIZATION_DB_READ = 21; + +const int CSSM_ACL_AUTHORIZATION_DECRYPT = 24; + +const int CSSM_ACL_AUTHORIZATION_DELETE = 25; + +const int CSSM_ACL_AUTHORIZATION_DERIVE = 28; + +const int CSSM_ACL_AUTHORIZATION_ENCRYPT = 35; + +const int CSSM_ACL_AUTHORIZATION_EXPORT_CLEAR = 37; + +const int CSSM_ACL_AUTHORIZATION_EXPORT_WRAPPED = 38; + +const int CSSM_ACL_AUTHORIZATION_GENKEY = 41; + +const int CSSM_ACL_AUTHORIZATION_IMPORT_CLEAR = 47; + +const int CSSM_ACL_AUTHORIZATION_IMPORT_WRAPPED = 48; + +const int CSSM_ACL_AUTHORIZATION_INTEGRITY = 65539; + +const int CSSM_ACL_AUTHORIZATION_LOGIN = 57; + +const int CSSM_ACL_AUTHORIZATION_MAC = 59; + +const int CSSM_ACL_AUTHORIZATION_PARTITION_ID = 65538; + +const int CSSM_ACL_AUTHORIZATION_PREAUTH_BASE = 16842752; + +const int CSSM_ACL_AUTHORIZATION_PREAUTH_END = 16908288; + +const int CSSM_ACL_AUTHORIZATION_SIGN = 115; + +typedef CSSM_ACL_AUTHORIZATION_TAG = sint32; + +const int CSSM_ACL_AUTHORIZATION_TAG_VENDOR_DEFINED_START = 65536; + +const int CSSM_ACL_CODE_SIGNATURE_INVALID = 0; + +const int CSSM_ACL_CODE_SIGNATURE_OSX = 1; + +typedef CSSM_ACL_EDIT = cssm_acl_edit; +typedef CSSM_ACL_EDIT_MODE = uint32; + +const int CSSM_ACL_EDIT_MODE_ADD = 1; + +const int CSSM_ACL_EDIT_MODE_DELETE = 2; + +const int CSSM_ACL_EDIT_MODE_REPLACE = 3; + +typedef CSSM_ACL_EDIT_PTR = ffi.Pointer; +typedef CSSM_ACL_ENTRY_INFO = cssm_acl_entry_info; +typedef CSSM_ACL_ENTRY_INFO_PTR = ffi.Pointer; +typedef CSSM_ACL_ENTRY_INPUT = cssm_acl_entry_input; +typedef CSSM_ACL_ENTRY_INPUT_PTR = ffi.Pointer; +typedef CSSM_ACL_ENTRY_PROTOTYPE = cssm_acl_entry_prototype; +typedef CSSM_ACL_ENTRY_PROTOTYPE_PTR = ffi.Pointer; +typedef CSSM_ACL_HANDLE = CSSM_HANDLE; + +const int CSSM_ACL_KEYCHAIN_PROMPT_CURRENT_VERSION = 257; + +const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID = 64; + +const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID_ACT = 128; + +const int CSSM_ACL_KEYCHAIN_PROMPT_REQUIRE_PASSPHRASE = 1; + +typedef CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR = cssm_acl_keychain_prompt_selector; + +const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED = 16; + +const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED_ACT = 32; + +const int CSSM_ACL_MATCH_BITS = 3; + +const int CSSM_ACL_MATCH_GID = 2; + +const int CSSM_ACL_MATCH_HONOR_ROOT = 256; + +const int CSSM_ACL_MATCH_UID = 1; + +typedef CSSM_ACL_OWNER_PROTOTYPE = cssm_acl_owner_prototype; +typedef CSSM_ACL_OWNER_PROTOTYPE_PTR = ffi.Pointer; + +const int CSSM_ACL_PREAUTH_TRACKING_AUTHORIZED = -2147483648; + +const int CSSM_ACL_PREAUTH_TRACKING_BLOCKED = 0; + +const int CSSM_ACL_PREAUTH_TRACKING_COUNT_MASK = 255; + +typedef CSSM_ACL_PREAUTH_TRACKING_STATE = uint32; + +const int CSSM_ACL_PREAUTH_TRACKING_UNKNOWN = 1073741824; + +const int CSSM_ACL_PROCESS_SELECTOR_CURRENT_VERSION = 257; + +typedef CSSM_ACL_PROCESS_SUBJECT_SELECTOR = cssm_acl_process_subject_selector; +typedef CSSM_ACL_SUBJECT_CALLBACK = + ffi.Pointer>; +typedef CSSM_ACL_SUBJECT_CALLBACKFunction = + CSSM_RETURN Function( + ffi.Pointer SubjectRequest, + CSSM_LIST_PTR SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = + Dartsint32 Function( + ffi.Pointer SubjectRequest, + CSSM_LIST_PTR SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef CSSM_ACL_SUBJECT_TYPE = sint32; + +const int CSSM_ACL_SUBJECT_TYPE_ANY = 1; + +const int CSSM_ACL_SUBJECT_TYPE_ASYMMETRIC_KEY = 65547; + +const int CSSM_ACL_SUBJECT_TYPE_BIOMETRIC = 8; + +const int CSSM_ACL_SUBJECT_TYPE_CODE_SIGNATURE = 116; + +const int CSSM_ACL_SUBJECT_TYPE_COMMENT = 12; + +const int CSSM_ACL_SUBJECT_TYPE_EXT_PAM_NAME = 78; + +const int CSSM_ACL_SUBJECT_TYPE_HASHED_SUBJECT = 44; + +const int CSSM_ACL_SUBJECT_TYPE_KEYCHAIN_PROMPT = 65536; + +const int CSSM_ACL_SUBJECT_TYPE_LOGIN_NAME = 58; + +const int CSSM_ACL_SUBJECT_TYPE_PARTITION = 65548; + +const int CSSM_ACL_SUBJECT_TYPE_PASSWORD = 79; + +const int CSSM_ACL_SUBJECT_TYPE_PREAUTH = 65545; + +const int CSSM_ACL_SUBJECT_TYPE_PREAUTH_SOURCE = 65546; + +const int CSSM_ACL_SUBJECT_TYPE_PROCESS = 65539; + +const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_BIOMETRIC = 83; + +const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_PASSWORD = 84; + +const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_BIOMETRIC = 86; + +const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_PASSWORD = 87; + +const int CSSM_ACL_SUBJECT_TYPE_PUBLIC_KEY = 89; + +const int CSSM_ACL_SUBJECT_TYPE_SYMMETRIC_KEY = 65541; + +const int CSSM_ACL_SUBJECT_TYPE_THRESHOLD = 123; + +typedef CSSM_ACL_VALIDITY_PERIOD = cssm_acl_validity_period; +typedef CSSM_ACL_VALIDITY_PERIOD_PTR = ffi.Pointer; + +const int CSSM_AC_BASE_AC_ERROR = -2147405568; + +const int CSSM_AC_BASE_ERROR = -2147405824; + +typedef CSSM_AC_HANDLE = CSSM_MODULE_HANDLE; + +const int CSSM_AC_PRIVATE_ERROR = -2147404800; + +const int CSSM_ADDR_CUSTOM = 1; + +const int CSSM_ADDR_NAME = 4; + +const int CSSM_ADDR_NONE = 0; + +const int CSSM_ADDR_SOCKADDR = 3; + +const int CSSM_ADDR_URL = 2; + +const int CSSM_ALGCLASS_ASYMMETRIC = 8; + +const int CSSM_ALGCLASS_CUSTOM = 1; + +const int CSSM_ALGCLASS_DERIVEKEY = 10; + +const int CSSM_ALGCLASS_DIGEST = 4; + +const int CSSM_ALGCLASS_KEYGEN = 9; + +const int CSSM_ALGCLASS_MAC = 7; + +const int CSSM_ALGCLASS_NONE = 0; + +const int CSSM_ALGCLASS_RANDOMGEN = 5; + +const int CSSM_ALGCLASS_SIGNATURE = 2; + +const int CSSM_ALGCLASS_SYMMETRIC = 3; + +const int CSSM_ALGCLASS_UNIQUEGEN = 6; + +const int CSSM_ALGID_3DES = 77; + +const int CSSM_ALGID_3DES_1KEY = 20; + +const int CSSM_ALGID_3DES_1KEY_EEE = 19; + +const int CSSM_ALGID_3DES_2KEY = 18; + +const int CSSM_ALGID_3DES_2KEY_EDE = 18; + +const int CSSM_ALGID_3DES_2KEY_EEE = 21; + +const int CSSM_ALGID_3DES_3KEY = 17; + +const int CSSM_ALGID_3DES_3KEY_EDE = 17; + +const int CSSM_ALGID_3DES_3KEY_EEE = 20; + +const int CSSM_ALGID_AES = -2147483647; + +const int CSSM_ALGID_APPLE_YARROW = -2147483648; + +const int CSSM_ALGID_ASC = -2147483641; + +const int CSSM_ALGID_BATON = 72; + +const int CSSM_ALGID_BLOWFISH = 28; + +const int CSSM_ALGID_CAST = 27; + +const int CSSM_ALGID_CAST3 = 53; + +const int CSSM_ALGID_CAST5 = 54; + +const int CSSM_ALGID_CDMF = 52; + +const int CSSM_ALGID_CRAB = 41; + +const int CSSM_ALGID_CUSTOM = 1; + +const int CSSM_ALGID_ConcatBaseAndData = 58; + +const int CSSM_ALGID_ConcatBaseAndKey = 56; + +const int CSSM_ALGID_ConcatDataAndBase = 59; + +const int CSSM_ALGID_ConcatKeyAndBase = 57; + +const int CSSM_ALGID_DES = 14; + +const int CSSM_ALGID_DESRandom = 50; + +const int CSSM_ALGID_DESX = 15; + +const int CSSM_ALGID_DH = 2; + +const int CSSM_ALGID_DSA = 43; + +const int CSSM_ALGID_DSA_BSAFE = 83; + +const int CSSM_ALGID_ECAES = 90; + +const int CSSM_ALGID_ECC = 93; + +const int CSSM_ALGID_ECDH = 84; + +const int CSSM_ALGID_ECDH_X963_KDF = -2147483619; + +const int CSSM_ALGID_ECDSA = 73; + +const int CSSM_ALGID_ECDSA_SPECIFIED = -2147483620; + +const int CSSM_ALGID_ECES = 89; + +const int CSSM_ALGID_ECMQV = 85; + +const int CSSM_ALGID_ECNRA = 87; + +const int CSSM_ALGID_ENTROPY_DEFAULT = -2147483631; + +const int CSSM_ALGID_ElGamal = 46; + +const int CSSM_ALGID_ExtractFromKey = 61; + +const int CSSM_ALGID_FASTHASH = 76; + +const int CSSM_ALGID_FEAL = 32; + +const int CSSM_ALGID_FEE = -2147483646; + +const int CSSM_ALGID_FEED = -2147483643; + +const int CSSM_ALGID_FEEDEXP = -2147483642; + +const int CSSM_ALGID_FEE_MD5 = -2147483645; + +const int CSSM_ALGID_FEE_SHA1 = -2147483644; + +const int CSSM_ALGID_FIPS186Random = 92; + +const int CSSM_ALGID_FortezzaTimestamp = 80; + +const int CSSM_ALGID_GOST = 39; + +const int CSSM_ALGID_GenericSecret = 55; + +const int CSSM_ALGID_HAVAL = 10; + +const int CSSM_ALGID_HAVAL3 = 98; + +const int CSSM_ALGID_HAVAL4 = 99; + +const int CSSM_ALGID_HAVAL5 = 100; + +const int CSSM_ALGID_IBCHASH = 12; + +const int CSSM_ALGID_IDEA = 22; + +const int CSSM_ALGID_IntelPlatformRandom = 96; + +const int CSSM_ALGID_JUNIPER = 75; + +const int CSSM_ALGID_KEA = 4; + +const int CSSM_ALGID_KEYCHAIN_KEY = -2147483639; + +const int CSSM_ALGID_KHAFRE = 37; + +const int CSSM_ALGID_KHUFU = 36; + +const int CSSM_ALGID_LAST = 2147483647; + +const int CSSM_ALGID_LOKI = 35; + +const int CSSM_ALGID_LUCIFER = 30; + +const int CSSM_ALGID_MADRYGA = 31; + +const int CSSM_ALGID_MAYFLY = 74; + +const int CSSM_ALGID_MD2 = 5; + +const int CSSM_ALGID_MD2Random = 47; + +const int CSSM_ALGID_MD2WithRSA = 45; + +const int CSSM_ALGID_MD4 = 6; + +const int CSSM_ALGID_MD5 = 7; + +const int CSSM_ALGID_MD5HMAC = 102; + +const int CSSM_ALGID_MD5Random = 48; + +const int CSSM_ALGID_MD5WithRSA = 44; + +const int CSSM_ALGID_MMB = 38; + +const int CSSM_ALGID_MQV = 94; + +const int CSSM_ALGID_NHASH = 9; + +const int CSSM_ALGID_NONE = 0; + +const int CSSM_ALGID_NRA = 95; + +const int CSSM_ALGID_OPENSSH1 = -2147483625; + +const int CSSM_ALGID_PBE_OPENSSL_MD5 = -2147483635; + +const int CSSM_ALGID_PH = 3; + +const int CSSM_ALGID_PKCS12_PBE_ENCR = -2147483638; + +const int CSSM_ALGID_PKCS12_PBE_MAC = -2147483637; + +const int CSSM_ALGID_PKCS12_SHA1_PBE = 86; + +const int CSSM_ALGID_PKCS5_PBKDF1_MD2 = 68; + +const int CSSM_ALGID_PKCS5_PBKDF1_MD5 = 67; + +const int CSSM_ALGID_PKCS5_PBKDF1_SHA1 = 69; + +const int CSSM_ALGID_PKCS5_PBKDF2 = 103; + +const int CSSM_ALGID_RC2 = 23; + +const int CSSM_ALGID_RC4 = 25; + +const int CSSM_ALGID_RC5 = 24; + +const int CSSM_ALGID_RDES = 16; + +const int CSSM_ALGID_REDOC = 33; + +const int CSSM_ALGID_REDOC3 = 34; + +const int CSSM_ALGID_RIPEMAC = 13; + +const int CSSM_ALGID_RIPEMD = 11; + +const int CSSM_ALGID_RSA = 42; + +const int CSSM_ALGID_RUNNING_COUNTER = 104; + +const int CSSM_ALGID_SAFER = 40; + +const int CSSM_ALGID_SEAL = 26; + +const int CSSM_ALGID_SECURE_PASSPHRASE = -2147483636; + +const int CSSM_ALGID_SHA1 = 8; + +const int CSSM_ALGID_SHA1HMAC = 91; + +const int CSSM_ALGID_SHA1HMAC_LEGACY = -2147483640; + +const int CSSM_ALGID_SHA1WithDSA = 81; + +const int CSSM_ALGID_SHA1WithECDSA = 82; + +const int CSSM_ALGID_SHA1WithECNRA = 88; + +const int CSSM_ALGID_SHA1WithRSA = 51; + +const int CSSM_ALGID_SHA224 = -2147483630; + +const int CSSM_ALGID_SHA224WithECDSA = -2147483624; + +const int CSSM_ALGID_SHA224WithRSA = -2147483629; + +const int CSSM_ALGID_SHA256 = -2147483634; + +const int CSSM_ALGID_SHA256WithECDSA = -2147483623; + +const int CSSM_ALGID_SHA256WithRSA = -2147483628; + +const int CSSM_ALGID_SHA384 = -2147483633; + +const int CSSM_ALGID_SHA384WithECDSA = -2147483622; + +const int CSSM_ALGID_SHA384WithRSA = -2147483627; + +const int CSSM_ALGID_SHA512 = -2147483632; + +const int CSSM_ALGID_SHA512WithECDSA = -2147483621; + +const int CSSM_ALGID_SHA512WithRSA = -2147483626; + +const int CSSM_ALGID_SHARandom = 49; + +const int CSSM_ALGID_SKIPJACK = 29; + +const int CSSM_ALGID_SSL3KeyAndMacDerive = 64; + +const int CSSM_ALGID_SSL3MD5 = 78; + +const int CSSM_ALGID_SSL3MD5_MAC = 65; + +@Deprecated('Deprecated') +const int CSSM_ALGID_SSL3MasterDerive = 63; + +@Deprecated('Deprecated') +const int CSSM_ALGID_SSL3PreMasterGen = 62; + +const int CSSM_ALGID_SSL3PrePrimaryGen = 62; + +const int CSSM_ALGID_SSL3PrimaryDerive = 63; + +const int CSSM_ALGID_SSL3SHA1 = 79; + +const int CSSM_ALGID_SSL3SHA1_MAC = 66; + +const int CSSM_ALGID_TIGER = 101; + +const int CSSM_ALGID_UTC = 97; + +const int CSSM_ALGID_VENDOR_DEFINED = -2147483648; + +const int CSSM_ALGID_WrapLynks = 70; + +const int CSSM_ALGID_WrapSET_OAEP = 71; + +const int CSSM_ALGID_XORBaseAndData = 60; + +const int CSSM_ALGID__FIRST_UNUSED = -2147483618; + +const int CSSM_ALGMODE_BC = 14; + +const int CSSM_ALGMODE_CBC = 4; + +const int CSSM_ALGMODE_CBC128 = 36; + +const int CSSM_ALGMODE_CBC64 = 25; + +const int CSSM_ALGMODE_CBCC = 16; + +const int CSSM_ALGMODE_CBCPD = 20; + +const int CSSM_ALGMODE_CBCPadIV8 = 6; + +const int CSSM_ALGMODE_CBC_IV8 = 5; + +const int CSSM_ALGMODE_CFB = 7; + +const int CSSM_ALGMODE_CFB16 = 29; + +const int CSSM_ALGMODE_CFB32 = 28; + +const int CSSM_ALGMODE_CFB8 = 30; + +const int CSSM_ALGMODE_CFBPadIV8 = 9; + +const int CSSM_ALGMODE_CFB_IV8 = 8; + +const int CSSM_ALGMODE_COUNTER = 13; + +const int CSSM_ALGMODE_CUSTOM = 1; + +const int CSSM_ALGMODE_ECB = 2; + +const int CSSM_ALGMODE_ECB128 = 34; + +const int CSSM_ALGMODE_ECB64 = 24; + +const int CSSM_ALGMODE_ECB96 = 35; + +const int CSSM_ALGMODE_ECBPad = 3; + +const int CSSM_ALGMODE_ISO_9796 = 41; + +const int CSSM_ALGMODE_LAST = 2147483647; + +const int CSSM_ALGMODE_NONE = 0; + +const int CSSM_ALGMODE_OAEP_HASH = 37; + +const int CSSM_ALGMODE_OFB = 10; + +const int CSSM_ALGMODE_OFB64 = 26; + +const int CSSM_ALGMODE_OFBNLF = 17; + +const int CSSM_ALGMODE_OFBPadIV8 = 12; + +const int CSSM_ALGMODE_OFB_IV8 = 11; + +const int CSSM_ALGMODE_PBC = 18; + +const int CSSM_ALGMODE_PCBC = 15; + +const int CSSM_ALGMODE_PFB = 19; + +const int CSSM_ALGMODE_PKCS1_EME_OAEP = 39; + +const int CSSM_ALGMODE_PKCS1_EME_V15 = 38; + +const int CSSM_ALGMODE_PKCS1_EMSA_V15 = 40; + +const int CSSM_ALGMODE_PRIVATE_KEY = 22; + +const int CSSM_ALGMODE_PRIVATE_WRAP = 32; + +const int CSSM_ALGMODE_PUBLIC_KEY = 21; + +const int CSSM_ALGMODE_RELAYX = 33; + +const int CSSM_ALGMODE_SHUFFLE = 23; + +const int CSSM_ALGMODE_VENDOR_DEFINED = -2147483648; + +const int CSSM_ALGMODE_WRAP = 31; + +const int CSSM_ALGMODE_X9_31 = 42; + +typedef CSSM_ALGORITHMS = uint32; +typedef CSSM_API_MEMORY_FUNCS = CSSM_MEMORY_FUNCS; +typedef CSSM_API_MEMORY_FUNCS_PTR = ffi.Pointer; +typedef CSSM_API_ModuleEventHandler = + ffi.Pointer>; +typedef CSSM_API_ModuleEventHandlerFunction = + CSSM_RETURN Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + uint32 SubserviceId, + CSSM_SERVICE_TYPE ServiceType, + CSSM_MODULE_EVENT EventType, + ); +typedef DartCSSM_API_ModuleEventHandlerFunction = + Dartsint32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + Dartuint32 SubserviceId, + Dartuint32 ServiceType, + Dartuint32 EventType, + ); + +const int CSSM_APPLECSPDL_DB_CHANGE_PASSWORD = 5; + +typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS = + cssm_applecspdl_db_change_password_parameters; +typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS_PTR = + ffi.Pointer; + +const int CSSM_APPLECSPDL_DB_GET_HANDLE = 6; + +const int CSSM_APPLECSPDL_DB_GET_SETTINGS = 2; + +const int CSSM_APPLECSPDL_DB_IS_LOCKED = 4; + +typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS = + cssm_applecspdl_db_is_locked_parameters; +typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS_PTR = + ffi.Pointer; + +const int CSSM_APPLECSPDL_DB_LOCK = 0; + +typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS = + cssm_applecspdl_db_settings_parameters; +typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS_PTR = + ffi.Pointer; + +const int CSSM_APPLECSPDL_DB_SET_SETTINGS = 3; + +const int CSSM_APPLECSPDL_DB_UNLOCK = 1; + +const int CSSM_APPLECSP_KEYDIGEST = 256; + +const int CSSM_APPLECSP_PUBKEY = 257; + +typedef CSSM_APPLEDL_OPEN_PARAMETERS = cssm_appledl_open_parameters; +typedef CSSM_APPLEDL_OPEN_PARAMETERS_PTR = + ffi.Pointer; + +const int CSSM_APPLEDL_OPEN_PARAMETERS_VERSION = 1; + +const int CSSM_APPLEFILEDL_COMMIT = 1; + +const int CSSM_APPLEFILEDL_DELETE_FILE = 6; + +const int CSSM_APPLEFILEDL_MAKE_BACKUP = 4; + +const int CSSM_APPLEFILEDL_MAKE_COPY = 5; + +const int CSSM_APPLEFILEDL_ROLLBACK = 2; + +const int CSSM_APPLEFILEDL_TAKE_FILE_LOCK = 3; + +const int CSSM_APPLEFILEDL_TOGGLE_AUTOCOMMIT = 0; + +const int CSSM_APPLESCPDL_CSP_GET_KEYHANDLE = 7; + +const int CSSM_APPLEX509CL_OBTAIN_CSR = 0; + +const int CSSM_APPLEX509CL_VERIFY_CSR = 1; + +final class CSSM_APPLE_CL_CSR_REQUEST extends ffi.Struct { + external CSSM_X509_NAME_PTR subjectNameX509; + + @CSSM_ALGORITHMS() + external int signatureAlg; + + external SecAsn1Oid signatureOid; + + @CSSM_CSP_HANDLE() + external int cspHand; + + external ffi.Pointer subjectPublicKey; + + external ffi.Pointer subjectPrivateKey; + + external ffi.Pointer challengeString; +} + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_10 = 10; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_11 = 11; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_12 = 12; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_13 = 13; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_14 = 14; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_15 = 15; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_16 = 16; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_17 = 17; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_18 = 18; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_19 = 19; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_20 = 20; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_21 = 21; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_22 = 22; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_23 = 23; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_24 = 24; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_25 = 25; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_26 = 26; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_27 = 27; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_28 = 28; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_8 = 8; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_9 = 9; + +final class CSSM_APPLE_TP_ACTION_DATA extends ffi.Struct { + @uint32() + external int Version; + + @CSSM_APPLE_TP_ACTION_FLAGS() + external int ActionFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Version, + required int ActionFlags, + }) => $allocator() + ..ref.Version = Version + ..ref.ActionFlags = ActionFlags; +} + +typedef CSSM_APPLE_TP_ACTION_FLAGS = uint32; + +final class CSSM_APPLE_TP_CERT_REQUEST extends ffi.Struct { + @CSSM_CSP_HANDLE() + external int cspHand; + + @CSSM_CL_HANDLE() + external int clHand; + + @uint32() + external int serialNumber; + + @uint32() + external int numSubjectNames; + + external ffi.Pointer subjectNames; + + @uint32() + external int numIssuerNames; + + external ffi.Pointer issuerNames; + + external CSSM_X509_NAME_PTR issuerNameX509; + + external ffi.Pointer certPublicKey; + + external ffi.Pointer issuerPrivateKey; + + @CSSM_ALGORITHMS() + external int signatureAlg; + + external SecAsn1Oid signatureOid; + + @uint32() + external int notBefore; + + @uint32() + external int notAfter; + + @uint32() + external int numExtensions; + + external ffi.Pointer extensions; + + external ffi.Pointer challengeString; +} + +final class CSSM_APPLE_TP_CRL_OPTIONS extends ffi.Struct { + @uint32() + external int Version; + + @CSSM_APPLE_TP_CRL_OPT_FLAGS() + external int CrlFlags; + + external CSSM_DL_DB_HANDLE_PTR crlStore; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Version, + required int CrlFlags, + required CSSM_DL_DB_HANDLE_PTR crlStore, + }) => $allocator() + ..ref.Version = Version + ..ref.CrlFlags = CrlFlags + ..ref.crlStore = crlStore; +} + +typedef CSSM_APPLE_TP_CRL_OPT_FLAGS = uint32; + +final class CSSM_APPLE_TP_NAME_OID extends ffi.Struct { + external ffi.Pointer string; + + external ffi.Pointer oid; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer string, + required ffi.Pointer oid, + }) => $allocator() + ..ref.string = string + ..ref.oid = oid; +} + +final class CSSM_APPLE_TP_SMIME_OPTIONS extends ffi.Struct { + @uint32() + external int Version; + + @CE_KeyUsage() + external int IntendedUsage; + + @uint32() + external int SenderEmailLen; + + external ffi.Pointer SenderEmail; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Version, + required int IntendedUsage, + required int SenderEmailLen, + required ffi.Pointer SenderEmail, + }) => $allocator() + ..ref.Version = Version + ..ref.IntendedUsage = IntendedUsage + ..ref.SenderEmailLen = SenderEmailLen + ..ref.SenderEmail = SenderEmail; +} + +final class CSSM_APPLE_TP_SSL_OPTIONS extends ffi.Struct { + @uint32() + external int Version; + + @uint32() + external int ServerNameLen; + + external ffi.Pointer ServerName; + + @uint32() + external int Flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Version, + required int ServerNameLen, + required ffi.Pointer ServerName, + required int Flags, + }) => $allocator() + ..ref.Version = Version + ..ref.ServerNameLen = ServerNameLen + ..ref.ServerName = ServerName + ..ref.Flags = Flags; +} + +const int CSSM_APPLE_UNLOCK_TYPE_KEYBAG = 3; + +const int CSSM_APPLE_UNLOCK_TYPE_KEY_DIRECT = 1; + +const int CSSM_APPLE_UNLOCK_TYPE_WRAPPED_PRIVATE = 2; + +const int CSSM_ASC_OPTIMIZE_ASCII = 5; + +const int CSSM_ASC_OPTIMIZE_DEFAULT = 0; + +const int CSSM_ASC_OPTIMIZE_SECURITY = 2; + +const int CSSM_ASC_OPTIMIZE_SIZE = 1; + +const int CSSM_ASC_OPTIMIZE_TIME = 3; + +const int CSSM_ASC_OPTIMIZE_TIME_SIZE = 4; + +typedef CSSM_ATTACH_FLAGS = uint32; + +const int CSSM_ATTACH_READ_ONLY = 1; + +const int CSSM_ATTRIBUTE_ACCESS_CREDENTIALS = -2147483612; + +const int CSSM_ATTRIBUTE_ALERT_TITLE = 545259527; + +const int CSSM_ATTRIBUTE_ALG_ID = 268435485; + +const int CSSM_ATTRIBUTE_ALG_PARAMS = 536870928; + +const int CSSM_ATTRIBUTE_ASC_OPTIMIZATION = 276824067; + +const int CSSM_ATTRIBUTE_BASE = 536870939; + +const int CSSM_ATTRIBUTE_BLOCK_SIZE = 268435468; + +const int CSSM_ATTRIBUTE_CSP_HANDLE = 268435490; + +const int CSSM_ATTRIBUTE_CUSTOM = 536870913; + +const int CSSM_ATTRIBUTE_DATA_ACCESS_CREDENTIALS = -2147483648; + +const int CSSM_ATTRIBUTE_DATA_CRYPTO_DATA = 805306368; + +const int CSSM_ATTRIBUTE_DATA_CSSM_DATA = 536870912; + +const int CSSM_ATTRIBUTE_DATA_DATE = 1610612736; + +const int CSSM_ATTRIBUTE_DATA_DL_DB_HANDLE = 33554432; + +const int CSSM_ATTRIBUTE_DATA_KEY = 1073741824; + +const int CSSM_ATTRIBUTE_DATA_KR_PROFILE = 50331648; + +const int CSSM_ATTRIBUTE_DATA_NONE = 0; + +const int CSSM_ATTRIBUTE_DATA_RANGE = 1879048192; + +const int CSSM_ATTRIBUTE_DATA_STRING = 1342177280; + +const int CSSM_ATTRIBUTE_DATA_UINT32 = 268435456; + +const int CSSM_ATTRIBUTE_DATA_VERSION = 16777216; + +const int CSSM_ATTRIBUTE_DESCRIPTION = 1342177282; + +const int CSSM_ATTRIBUTE_DL_DB_HANDLE = 33554467; + +const int CSSM_ATTRIBUTE_EFFECTIVE_BITS = 268435476; + +const int CSSM_ATTRIBUTE_END_DATE = 1610612758; + +const int CSSM_ATTRIBUTE_FEE_CURVE_TYPE = 276824066; + +const int CSSM_ATTRIBUTE_FEE_PRIME_TYPE = 276824065; + +const int CSSM_ATTRIBUTE_INIT_VECTOR = 536870916; + +const int CSSM_ATTRIBUTE_ITERATION_COUNT = 268435486; + +const int CSSM_ATTRIBUTE_IV_SIZE = 268435471; + +const int CSSM_ATTRIBUTE_KEY = 1073741827; + +const int CSSM_ATTRIBUTE_KEYATTR = 268435480; + +const int CSSM_ATTRIBUTE_KEYUSAGE = 268435479; + +const int CSSM_ATTRIBUTE_KEY_LENGTH = 268435466; + +const int CSSM_ATTRIBUTE_KEY_LENGTH_RANGE = 1879048203; + +const int CSSM_ATTRIBUTE_KEY_TYPE = 268435474; + +const int CSSM_ATTRIBUTE_KRPROFILE_LOCAL = 50331680; + +const int CSSM_ATTRIBUTE_KRPROFILE_REMOTE = 50331681; + +const int CSSM_ATTRIBUTE_LABEL = 536870929; + +const int CSSM_ATTRIBUTE_MODE = 268435475; + +const int CSSM_ATTRIBUTE_NONE = 0; + +const int CSSM_ATTRIBUTE_OUTPUT_SIZE = 268435469; + +const int CSSM_ATTRIBUTE_PADDING = 268435462; + +const int CSSM_ATTRIBUTE_PARAM_KEY = 1082130437; + +const int CSSM_ATTRIBUTE_PASSPHRASE = 805306377; + +const int CSSM_ATTRIBUTE_PRIME = 536870938; + +const int CSSM_ATTRIBUTE_PRIVATE_KEY_FORMAT = 268435494; + +const int CSSM_ATTRIBUTE_PROMPT = 545259526; + +const int CSSM_ATTRIBUTE_PUBLIC_KEY = 1082130432; + +const int CSSM_ATTRIBUTE_PUBLIC_KEY_FORMAT = 268435493; + +const int CSSM_ATTRIBUTE_RANDOM = 536870919; + +const int CSSM_ATTRIBUTE_ROUNDS = 268435470; + +const int CSSM_ATTRIBUTE_ROUNDS_RANGE = 1879048223; + +const int CSSM_ATTRIBUTE_RSA_BLINDING = 276824068; + +const int CSSM_ATTRIBUTE_SALT = 536870917; + +const int CSSM_ATTRIBUTE_SEED = 805306376; + +const int CSSM_ATTRIBUTE_START_DATE = 1610612757; + +const int CSSM_ATTRIBUTE_SUBPRIME = 536870940; + +const int CSSM_ATTRIBUTE_SYMMETRIC_KEY_FORMAT = 268435495; + +typedef CSSM_ATTRIBUTE_TYPE = uint32; + +const int CSSM_ATTRIBUTE_TYPE_MASK = -16777216; + +const int CSSM_ATTRIBUTE_VENDOR_DEFINED = 8388608; + +const int CSSM_ATTRIBUTE_VERIFY_PASSPHRASE = 276824072; + +const int CSSM_ATTRIBUTE_VERSION = 16777241; + +const int CSSM_ATTRIBUTE_WRAPPED_KEY_FORMAT = 268435496; + +typedef CSSM_AUTHORIZATIONGROUP = cssm_authorizationgroup; +typedef CSSM_AUTHORIZATIONGROUP_PTR = ffi.Pointer; +typedef CSSM_BASE_CERTS = cssm_base_certs; +typedef CSSM_BASE_CERTS_PTR = ffi.Pointer; + +const int CSSM_BASE_ERROR = -2147418112; + +typedef CSSM_BER_TAG = uint8; +typedef CSSM_BITMASK = uint32; +typedef CSSM_BOOL = sint32; +typedef CSSM_CALLBACK = ffi.Pointer>; +typedef CSSM_CALLBACKFunction = + CSSM_RETURN Function( + CSSM_DATA_PTR OutData, + ffi.Pointer CallerCtx, + ); +typedef DartCSSM_CALLBACKFunction = + Dartsint32 Function(CSSM_DATA_PTR OutData, ffi.Pointer CallerCtx); +typedef CSSM_CALLOC = ffi.Pointer>; +typedef CSSM_CALLOCFunction = + ffi.Pointer Function( + uint32 num, + CSSM_SIZE size, + ffi.Pointer allocref, + ); +typedef DartCSSM_CALLOCFunction = + ffi.Pointer Function( + Dartuint32 num, + DartCSSM_SIZE size, + ffi.Pointer allocref, + ); +typedef CSSM_CC_HANDLE = CSSM_LONG_HANDLE; +typedef CSSM_CERTGROUP = cssm_certgroup; + +const int CSSM_CERTGROUP_CERT_PAIR = 3; + +const int CSSM_CERTGROUP_DATA = 0; + +const int CSSM_CERTGROUP_ENCODED_CERT = 1; + +const int CSSM_CERTGROUP_PARSED_CERT = 2; + +typedef CSSM_CERTGROUP_PTR = ffi.Pointer; +typedef CSSM_CERTGROUP_TYPE = uint32; +typedef CSSM_CERTGROUP_TYPE_PTR = ffi.Pointer; + +const int CSSM_CERT_ACL_ENTRY = 12; + +typedef CSSM_CERT_BUNDLE = cssm_cert_bundle; + +const int CSSM_CERT_BUNDLE_CUSTOM = 1; + +typedef CSSM_CERT_BUNDLE_ENCODING = uint32; + +const int CSSM_CERT_BUNDLE_ENCODING_BER = 2; + +const int CSSM_CERT_BUNDLE_ENCODING_CUSTOM = 1; + +const int CSSM_CERT_BUNDLE_ENCODING_DER = 3; + +const int CSSM_CERT_BUNDLE_ENCODING_PGP = 5; + +const int CSSM_CERT_BUNDLE_ENCODING_SEXPR = 4; + +const int CSSM_CERT_BUNDLE_ENCODING_UNKNOWN = 0; + +typedef CSSM_CERT_BUNDLE_HEADER = cssm_cert_bundle_header; +typedef CSSM_CERT_BUNDLE_HEADER_PTR = ffi.Pointer; + +const int CSSM_CERT_BUNDLE_LAST = 32767; + +const int CSSM_CERT_BUNDLE_PFX = 5; + +const int CSSM_CERT_BUNDLE_PGP_KEYRING = 7; + +const int CSSM_CERT_BUNDLE_PKCS12 = 4; + +const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_DATA = 2; + +const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_ENVELOPED_DATA = 3; + +typedef CSSM_CERT_BUNDLE_PTR = ffi.Pointer; + +const int CSSM_CERT_BUNDLE_SPKI_SEQUENCE = 6; + +typedef CSSM_CERT_BUNDLE_TYPE = uint32; + +const int CSSM_CERT_BUNDLE_UNKNOWN = 0; + +typedef CSSM_CERT_ENCODING = uint32; + +const int CSSM_CERT_ENCODING_BER = 2; + +const int CSSM_CERT_ENCODING_CUSTOM = 1; + +const int CSSM_CERT_ENCODING_DER = 3; + +const int CSSM_CERT_ENCODING_LAST = 32767; + +const int CSSM_CERT_ENCODING_MULTIPLE = 32766; + +const int CSSM_CERT_ENCODING_NDR = 4; + +const int CSSM_CERT_ENCODING_PGP = 6; + +typedef CSSM_CERT_ENCODING_PTR = ffi.Pointer; + +const int CSSM_CERT_ENCODING_SEXPR = 5; + +const int CSSM_CERT_ENCODING_UNKNOWN = 0; + +const int CSSM_CERT_Intel = 8; + +const int CSSM_CERT_LAST = 32767; + +const int CSSM_CERT_MULTIPLE = 32766; + +typedef CSSM_CERT_PAIR = cssm_cert_pair; +typedef CSSM_CERT_PAIR_PTR = ffi.Pointer; +typedef CSSM_CERT_PARSE_FORMAT = uint32; + +const int CSSM_CERT_PARSE_FORMAT_COMPLEX = 3; + +const int CSSM_CERT_PARSE_FORMAT_CUSTOM = 1; + +const int CSSM_CERT_PARSE_FORMAT_LAST = 32767; + +const int CSSM_CERT_PARSE_FORMAT_MULTIPLE = 32766; + +const int CSSM_CERT_PARSE_FORMAT_NONE = 0; + +const int CSSM_CERT_PARSE_FORMAT_OID_NAMED = 4; + +typedef CSSM_CERT_PARSE_FORMAT_PTR = ffi.Pointer; + +const int CSSM_CERT_PARSE_FORMAT_SEXPR = 2; + +const int CSSM_CERT_PARSE_FORMAT_TUPLE = 5; + +const int CSSM_CERT_PGP = 4; + +const int CSSM_CERT_SDSIv1 = 6; + +const int CSSM_CERT_SPKI = 5; + +const int CSSM_CERT_STATUS_EXPIRED = 1; + +const int CSSM_CERT_STATUS_IS_FROM_NET = 32; + +const int CSSM_CERT_STATUS_IS_IN_ANCHORS = 8; + +const int CSSM_CERT_STATUS_IS_IN_INPUT_CERTS = 4; + +const int CSSM_CERT_STATUS_IS_ROOT = 16; + +const int CSSM_CERT_STATUS_NOT_VALID_YET = 2; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_DENY = 1024; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_ADMIN = 128; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_SYSTEM = 256; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_USER = 64; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_IGNORED_ERROR = 2048; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_TRUST = 512; + +const int CSSM_CERT_TUPLE = 11; + +typedef CSSM_CERT_TYPE = uint32; +typedef CSSM_CERT_TYPE_PTR = ffi.Pointer; + +const int CSSM_CERT_UNKNOWN = 0; + +const int CSSM_CERT_X9_ATTRIBUTE = 10; + +const int CSSM_CERT_X_509_ATTRIBUTE = 9; + +const int CSSM_CERT_X_509v1 = 1; + +const int CSSM_CERT_X_509v2 = 2; + +const int CSSM_CERT_X_509v3 = 3; + +typedef CSSM_CHALLENGE_CALLBACK = + ffi.Pointer>; +typedef CSSM_CHALLENGE_CALLBACKFunction = + CSSM_RETURN Function( + ffi.Pointer Challenge, + CSSM_SAMPLEGROUP_PTR Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_CHALLENGE_CALLBACKFunction = + Dartsint32 Function( + ffi.Pointer Challenge, + CSSM_SAMPLEGROUP_PTR Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ); + +const int CSSM_CL_BASE_CL_ERROR = -2147411712; + +const int CSSM_CL_BASE_ERROR = -2147411968; + +const int CSSM_CL_CUSTOM_CERT_BUNDLE_TYPE = 32768; + +const int CSSM_CL_CUSTOM_CERT_ENCODING = 32768; + +const int CSSM_CL_CUSTOM_CERT_PARSE_FORMAT = 32768; + +const int CSSM_CL_CUSTOM_CERT_TYPE = 32768; + +const int CSSM_CL_CUSTOM_CRL_PARSE_FORMAT = 32768; + +typedef CSSM_CL_HANDLE = CSSM_MODULE_HANDLE; + +const int CSSM_CL_PRIVATE_ERROR = -2147410944; + +const int CSSM_CL_TEMPLATE_INTERMEDIATE_CERT = 1; + +const int CSSM_CL_TEMPLATE_PKIX_CERTTEMPLATE = 2; + +typedef CSSM_CL_TEMPLATE_TYPE = uint32; +typedef CSSM_CONTEXT = cssm_context; +typedef CSSM_CONTEXT_ATTRIBUTE = cssm_context_attribute; +typedef CSSM_CONTEXT_ATTRIBUTE_PTR = ffi.Pointer; +typedef CSSM_CONTEXT_EVENT = uint32; + +const int CSSM_CONTEXT_EVENT_CREATE = 1; + +const int CSSM_CONTEXT_EVENT_DELETE = 2; + +const int CSSM_CONTEXT_EVENT_UPDATE = 3; + +typedef CSSM_CONTEXT_PTR = ffi.Pointer; +typedef CSSM_CONTEXT_TYPE = uint32; +typedef CSSM_CRLGROUP = cssm_crlgroup; + +const int CSSM_CRLGROUP_CRL_PAIR = 3; + +const int CSSM_CRLGROUP_DATA = 0; + +const int CSSM_CRLGROUP_ENCODED_CRL = 1; + +const int CSSM_CRLGROUP_PARSED_CRL = 2; + +typedef CSSM_CRLGROUP_PTR = ffi.Pointer; +typedef CSSM_CRLGROUP_TYPE = uint32; +typedef CSSM_CRLGROUP_TYPE_PTR = ffi.Pointer; +typedef CSSM_CRL_ENCODING = uint32; + +const int CSSM_CRL_ENCODING_BER = 2; + +const int CSSM_CRL_ENCODING_BLOOM = 4; + +const int CSSM_CRL_ENCODING_CUSTOM = 1; + +const int CSSM_CRL_ENCODING_DER = 3; + +const int CSSM_CRL_ENCODING_MULTIPLE = 32766; + +typedef CSSM_CRL_ENCODING_PTR = ffi.Pointer; + +const int CSSM_CRL_ENCODING_SEXPR = 5; + +const int CSSM_CRL_ENCODING_UNKNOWN = 0; + +typedef CSSM_CRL_PAIR = cssm_crl_pair; +typedef CSSM_CRL_PAIR_PTR = ffi.Pointer; +typedef CSSM_CRL_PARSE_FORMAT = uint32; + +const int CSSM_CRL_PARSE_FORMAT_COMPLEX = 3; + +const int CSSM_CRL_PARSE_FORMAT_CUSTOM = 1; + +const int CSSM_CRL_PARSE_FORMAT_LAST = 32767; + +const int CSSM_CRL_PARSE_FORMAT_MULTIPLE = 32766; + +const int CSSM_CRL_PARSE_FORMAT_NONE = 0; + +const int CSSM_CRL_PARSE_FORMAT_OID_NAMED = 4; + +typedef CSSM_CRL_PARSE_FORMAT_PTR = ffi.Pointer; + +const int CSSM_CRL_PARSE_FORMAT_SEXPR = 2; + +const int CSSM_CRL_PARSE_FORMAT_TUPLE = 5; + +typedef CSSM_CRL_TYPE = uint32; + +const int CSSM_CRL_TYPE_MULTIPLE = 32766; + +typedef CSSM_CRL_TYPE_PTR = ffi.Pointer; + +const int CSSM_CRL_TYPE_SPKI = 3; + +const int CSSM_CRL_TYPE_UNKNOWN = 0; + +const int CSSM_CRL_TYPE_X_509v1 = 1; + +const int CSSM_CRL_TYPE_X_509v2 = 2; + +typedef CSSM_CRYPTO_DATA = cssm_crypto_data; +typedef CSSM_CRYPTO_DATA_PTR = ffi.Pointer; +typedef CSSM_CSPTYPE = uint32; + +const int CSSM_CSP_BASE_CSP_ERROR = -2147415808; + +const int CSSM_CSP_BASE_ERROR = -2147416064; + +typedef CSSM_CSP_FLAGS = uint32; +typedef CSSM_CSP_HANDLE = CSSM_MODULE_HANDLE; + +const int CSSM_CSP_HARDWARE = 2; + +const int CSSM_CSP_HYBRID = 3; + +typedef CSSM_CSP_OPERATIONAL_STATISTICS = cssm_csp_operational_statistics; +typedef CSSM_CSP_OPERATIONAL_STATISTICS_PTR = + ffi.Pointer; + +const int CSSM_CSP_PRIVATE_ERROR = -2147415040; + +const int CSSM_CSP_RDR_EXISTS = 2; + +const int CSSM_CSP_RDR_HW = 4; + +const int CSSM_CSP_RDR_TOKENPRESENT = 1; + +typedef CSSM_CSP_READER_FLAGS = uint32; + +const int CSSM_CSP_SOFTWARE = 1; + +const int CSSM_CSP_STORES_CERTIFICATES = 134217728; + +const int CSSM_CSP_STORES_GENERIC = 268435456; + +const int CSSM_CSP_STORES_PRIVATE_KEYS = 16777216; + +const int CSSM_CSP_STORES_PUBLIC_KEYS = 33554432; + +const int CSSM_CSP_STORES_SESSION_KEYS = 67108864; + +const int CSSM_CSP_TOK_CLOCK_EXISTS = 64; + +const int CSSM_CSP_TOK_LOGIN_REQUIRED = 4; + +const int CSSM_CSP_TOK_PRIVATE_KEY_PASSWORD = 4194304; + +const int CSSM_CSP_TOK_PROT_AUTHENTICATION = 256; + +const int CSSM_CSP_TOK_RNG = 1; + +const int CSSM_CSP_TOK_SESSION_KEY_PASSWORD = 2097152; + +const int CSSM_CSP_TOK_USER_PIN_EXPIRED = 1048576; + +const int CSSM_CSP_TOK_USER_PIN_INITIALIZED = 8; + +const int CSSM_CSP_TOK_WRITE_PROTECTED = 2; + +const int CSSM_CSSM_BASE_CSSM_ERROR = -2147417840; + +const int CSSM_CSSM_BASE_ERROR = -2147418112; + +const int CSSM_CSSM_PRIVATE_ERROR = -2147417088; + +const int CSSM_CUSTOM_COMMON_ERROR_EXTENT = 224; + +typedef CSSM_DATA_PTR = ffi.Pointer; +typedef CSSM_DATE = cssm_date; +typedef CSSM_DATE_PTR = ffi.Pointer; +typedef CSSM_DBINFO = cssm_dbinfo; +typedef CSSM_DBINFO_PTR = ffi.Pointer; + +const int CSSM_DB_ACCESS_PRIVILEGED = 4; + +const int CSSM_DB_ACCESS_READ = 1; + +const int CSSM_DB_ACCESS_RESET = 65536; + +typedef CSSM_DB_ACCESS_TYPE = uint32; +typedef CSSM_DB_ACCESS_TYPE_PTR = ffi.Pointer; + +const int CSSM_DB_ACCESS_WRITE = 2; + +const int CSSM_DB_AND = 1; + +typedef CSSM_DB_ATTRIBUTE_DATA = cssm_db_attribute_data; +typedef CSSM_DB_ATTRIBUTE_DATA_PTR = ffi.Pointer; +typedef CSSM_DB_ATTRIBUTE_FORMAT = uint32; + +const int CSSM_DB_ATTRIBUTE_FORMAT_BIG_NUM = 3; + +const int CSSM_DB_ATTRIBUTE_FORMAT_BLOB = 6; + +const int CSSM_DB_ATTRIBUTE_FORMAT_COMPLEX = 8; + +const int CSSM_DB_ATTRIBUTE_FORMAT_MULTI_UINT32 = 7; + +typedef CSSM_DB_ATTRIBUTE_FORMAT_PTR = ffi.Pointer; + +const int CSSM_DB_ATTRIBUTE_FORMAT_REAL = 4; + +const int CSSM_DB_ATTRIBUTE_FORMAT_SINT32 = 1; + +const int CSSM_DB_ATTRIBUTE_FORMAT_STRING = 0; + +const int CSSM_DB_ATTRIBUTE_FORMAT_TIME_DATE = 5; + +const int CSSM_DB_ATTRIBUTE_FORMAT_UINT32 = 2; + +typedef CSSM_DB_ATTRIBUTE_INFO = cssm_db_attribute_info; +typedef CSSM_DB_ATTRIBUTE_INFO_PTR = ffi.Pointer; + +const int CSSM_DB_ATTRIBUTE_NAME_AS_INTEGER = 2; + +const int CSSM_DB_ATTRIBUTE_NAME_AS_OID = 1; + +const int CSSM_DB_ATTRIBUTE_NAME_AS_STRING = 0; + +typedef CSSM_DB_ATTRIBUTE_NAME_FORMAT = uint32; +typedef CSSM_DB_ATTRIBUTE_NAME_FORMAT_PTR = ffi.Pointer; + +const int CSSM_DB_CERT_USE_OWNER = 4; + +const int CSSM_DB_CERT_USE_PRIVACY = 32; + +const int CSSM_DB_CERT_USE_REVOKED = 8; + +const int CSSM_DB_CERT_USE_SIGNING = 16; + +const int CSSM_DB_CERT_USE_SYSTEM = 2; + +const int CSSM_DB_CERT_USE_TRUSTED = 1; + +typedef CSSM_DB_CONJUNCTIVE = uint32; +typedef CSSM_DB_CONJUNCTIVE_PTR = ffi.Pointer; + +const int CSSM_DB_CONTAINS = 4; + +const int CSSM_DB_CONTAINS_FINAL_SUBSTRING = 6; + +const int CSSM_DB_CONTAINS_INITIAL_SUBSTRING = 5; + +const int CSSM_DB_DATASTORES_UNKNOWN = -1; + +const int CSSM_DB_EQUAL = 0; + +const int CSSM_DB_FILESYSTEMSCAN_MODE = 1; + +const int CSSM_DB_GREATER_THAN = 3; + +typedef CSSM_DB_HANDLE = CSSM_MODULE_HANDLE; +typedef CSSM_DB_INDEXED_DATA_LOCATION = uint32; +typedef CSSM_DB_INDEX_INFO = cssm_db_index_info; +typedef CSSM_DB_INDEX_INFO_PTR = ffi.Pointer; + +const int CSSM_DB_INDEX_NONUNIQUE = 1; + +const int CSSM_DB_INDEX_ON_ATTRIBUTE = 1; + +const int CSSM_DB_INDEX_ON_RECORD = 2; + +const int CSSM_DB_INDEX_ON_UNKNOWN = 0; + +typedef CSSM_DB_INDEX_TYPE = uint32; + +const int CSSM_DB_INDEX_UNIQUE = 0; + +const int CSSM_DB_LESS_THAN = 2; + +const int CSSM_DB_MODIFY_ATTRIBUTE_ADD = 1; + +const int CSSM_DB_MODIFY_ATTRIBUTE_DELETE = 2; + +const int CSSM_DB_MODIFY_ATTRIBUTE_NONE = 0; + +const int CSSM_DB_MODIFY_ATTRIBUTE_REPLACE = 3; + +typedef CSSM_DB_MODIFY_MODE = uint32; + +const int CSSM_DB_NONE = 0; + +const int CSSM_DB_NOT_EQUAL = 1; + +typedef CSSM_DB_OPERATOR = uint32; +typedef CSSM_DB_OPERATOR_PTR = ffi.Pointer; + +const int CSSM_DB_OR = 2; + +typedef CSSM_DB_PARSING_MODULE_INFO = cssm_db_parsing_module_info; +typedef CSSM_DB_PARSING_MODULE_INFO_PTR = + ffi.Pointer; +typedef CSSM_DB_RECORDTYPE = uint32; + +const int CSSM_DB_RECORDTYPE_APP_DEFINED_END = -1; + +const int CSSM_DB_RECORDTYPE_APP_DEFINED_START = -2147483648; + +const int CSSM_DB_RECORDTYPE_OPEN_GROUP_END = 18; + +const int CSSM_DB_RECORDTYPE_OPEN_GROUP_START = 10; + +const int CSSM_DB_RECORDTYPE_SCHEMA_END = 4; + +const int CSSM_DB_RECORDTYPE_SCHEMA_START = 0; + +typedef CSSM_DB_RECORD_ATTRIBUTE_DATA = cssm_db_record_attribute_data; +typedef CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR = + ffi.Pointer; +typedef CSSM_DB_RECORD_ATTRIBUTE_INFO = cssm_db_record_attribute_info; +typedef CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR = + ffi.Pointer; +typedef CSSM_DB_RECORD_INDEX_INFO = cssm_db_record_index_info; +typedef CSSM_DB_RECORD_INDEX_INFO_PTR = ffi.Pointer; +typedef CSSM_DB_RETRIEVAL_MODES = uint32; +typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO = cssm_db_schema_attribute_info; +typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO_PTR = + ffi.Pointer; +typedef CSSM_DB_SCHEMA_INDEX_INFO = cssm_db_schema_index_info; +typedef CSSM_DB_SCHEMA_INDEX_INFO_PTR = ffi.Pointer; + +const int CSSM_DB_TRANSACTIONAL_MODE = 0; + +typedef CSSM_DB_UNIQUE_RECORD = cssm_db_unique_record; +typedef CSSM_DB_UNIQUE_RECORD_PTR = ffi.Pointer; +typedef CSSM_DLTYPE = uint32; +typedef CSSM_DLTYPE_PTR = ffi.Pointer; + +const int CSSM_DL_BASE_DL_ERROR = -2147413760; + +const int CSSM_DL_BASE_ERROR = -2147414016; + +const int CSSM_DL_CUSTOM = 1; + +typedef CSSM_DL_CUSTOM_ATTRIBUTES = ffi.Pointer; +typedef CSSM_DL_DB_HANDLE = cssm_dl_db_handle; +typedef CSSM_DL_DB_HANDLE_PTR = ffi.Pointer; +typedef CSSM_DL_DB_LIST = cssm_dl_db_list; +typedef CSSM_DL_DB_LIST_PTR = ffi.Pointer; + +const int CSSM_DL_DB_RECORD_ALL_KEYS = 18; + +const int CSSM_DL_DB_RECORD_ANY = 10; + +const int CSSM_DL_DB_RECORD_APPLESHARE_PASSWORD = -2147483646; + +const int CSSM_DL_DB_RECORD_CERT = 11; + +const int CSSM_DL_DB_RECORD_CRL = 12; + +const int CSSM_DL_DB_RECORD_EXTENDED_ATTRIBUTE = -2147479548; + +const int CSSM_DL_DB_RECORD_GENERIC = 14; + +const int CSSM_DL_DB_RECORD_GENERIC_PASSWORD = -2147483648; + +const int CSSM_DL_DB_RECORD_INTERNET_PASSWORD = -2147483647; + +const int CSSM_DL_DB_RECORD_METADATA = -2147450880; + +const int CSSM_DL_DB_RECORD_POLICY = 13; + +const int CSSM_DL_DB_RECORD_PRIVATE_KEY = 16; + +const int CSSM_DL_DB_RECORD_PUBLIC_KEY = 15; + +const int CSSM_DL_DB_RECORD_SYMMETRIC_KEY = 17; + +const int CSSM_DL_DB_RECORD_UNLOCK_REFERRAL = -2147479549; + +const int CSSM_DL_DB_RECORD_USER_TRUST = -2147479551; + +const int CSSM_DL_DB_RECORD_X509_CERTIFICATE = -2147479552; + +const int CSSM_DL_DB_RECORD_X509_CRL = -2147479550; + +const int CSSM_DL_DB_SCHEMA_ATTRIBUTES = 2; + +const int CSSM_DL_DB_SCHEMA_INDEXES = 1; + +const int CSSM_DL_DB_SCHEMA_INFO = 0; + +const int CSSM_DL_DB_SCHEMA_PARSING_MODULE = 3; + +const int CSSM_DL_FFS = 5; + +typedef CSSM_DL_FFS_ATTRIBUTES = ffi.Pointer; +typedef CSSM_DL_HANDLE = CSSM_MODULE_HANDLE; + +const int CSSM_DL_LDAP = 2; + +typedef CSSM_DL_LDAP_ATTRIBUTES = ffi.Pointer; + +const int CSSM_DL_MEMORY = 6; + +const int CSSM_DL_ODBC = 3; + +typedef CSSM_DL_ODBC_ATTRIBUTES = ffi.Pointer; + +const int CSSM_DL_PKCS11 = 4; + +typedef CSSM_DL_PKCS11_ATTRIBUTE = ffi.Pointer; +typedef CSSM_DL_PKCS11_ATTRIBUTE_PTR = ffi.Pointer; + +const int CSSM_DL_PRIVATE_ERROR = -2147412992; + +const int CSSM_DL_REMOTEDIR = 7; + +const int CSSM_DL_UNKNOWN = 0; + +const int CSSM_ELAPSED_TIME_COMPLETE = -2; + +const int CSSM_ELAPSED_TIME_UNKNOWN = -1; + +typedef CSSM_ENCODED_CERT = cssm_encoded_cert; +typedef CSSM_ENCODED_CERT_PTR = ffi.Pointer; +typedef CSSM_ENCODED_CRL = cssm_encoded_crl; +typedef CSSM_ENCODED_CRL_PTR = ffi.Pointer; +typedef CSSM_ENCRYPT_MODE = uint32; + +const int CSSM_ERRCODE_ACL_ADD_FAILED = 54; + +const int CSSM_ERRCODE_ACL_BASE_CERTS_NOT_SUPPORTED = 39; + +const int CSSM_ERRCODE_ACL_CHALLENGE_CALLBACK_FAILED = 45; + +const int CSSM_ERRCODE_ACL_CHANGE_FAILED = 49; + +const int CSSM_ERRCODE_ACL_DELETE_FAILED = 52; + +const int CSSM_ERRCODE_ACL_ENTRY_TAG_NOT_FOUND = 47; + +const int CSSM_ERRCODE_ACL_REPLACE_FAILED = 53; + +const int CSSM_ERRCODE_ACL_SUBJECT_TYPE_NOT_SUPPORTED = 43; + +const int CSSM_ERRCODE_CRL_ALREADY_SIGNED = 71; + +const int CSSM_ERRCODE_DEVICE_FAILED = 229; + +const int CSSM_ERRCODE_DEVICE_RESET = 228; + +const int CSSM_ERRCODE_FUNCTION_FAILED = 10; + +const int CSSM_ERRCODE_FUNCTION_NOT_IMPLEMENTED = 7; + +const int CSSM_ERRCODE_INCOMPATIBLE_VERSION = 65; + +const int CSSM_ERRCODE_INSUFFICIENT_CLIENT_IDENTIFICATION = 227; + +const int CSSM_ERRCODE_INTERNAL_ERROR = 1; + +const int CSSM_ERRCODE_INVALID_ACCESS_CREDENTIALS = 37; + +const int CSSM_ERRCODE_INVALID_ACL_BASE_CERTS = 38; + +const int CSSM_ERRCODE_INVALID_ACL_CHALLENGE_CALLBACK = 44; + +const int CSSM_ERRCODE_INVALID_ACL_EDIT_MODE = 48; + +const int CSSM_ERRCODE_INVALID_ACL_ENTRY_TAG = 46; + +const int CSSM_ERRCODE_INVALID_ACL_SUBJECT_VALUE = 42; + +const int CSSM_ERRCODE_INVALID_AC_HANDLE = 85; + +const int CSSM_ERRCODE_INVALID_CERTGROUP_POINTER = 66; + +const int CSSM_ERRCODE_INVALID_CERT_POINTER = 67; + +const int CSSM_ERRCODE_INVALID_CL_HANDLE = 82; + +const int CSSM_ERRCODE_INVALID_CONTEXT_HANDLE = 64; + +const int CSSM_ERRCODE_INVALID_CRL_POINTER = 68; + +const int CSSM_ERRCODE_INVALID_CRYPTO_DATA = 88; + +const int CSSM_ERRCODE_INVALID_CSP_HANDLE = 80; + +const int CSSM_ERRCODE_INVALID_DATA = 70; + +const int CSSM_ERRCODE_INVALID_DB_HANDLE = 74; + +const int CSSM_ERRCODE_INVALID_DB_LIST = 76; + +const int CSSM_ERRCODE_INVALID_DB_LIST_POINTER = 77; + +const int CSSM_ERRCODE_INVALID_DL_HANDLE = 81; + +const int CSSM_ERRCODE_INVALID_FIELD_POINTER = 69; + +const int CSSM_ERRCODE_INVALID_GUID = 12; + +const int CSSM_ERRCODE_INVALID_INPUT_POINTER = 5; + +const int CSSM_ERRCODE_INVALID_KR_HANDLE = 84; + +const int CSSM_ERRCODE_INVALID_NETWORK_ADDR = 87; + +const int CSSM_ERRCODE_INVALID_NEW_ACL_ENTRY = 50; + +const int CSSM_ERRCODE_INVALID_NEW_ACL_OWNER = 51; + +const int CSSM_ERRCODE_INVALID_NUMBER_OF_FIELDS = 72; + +const int CSSM_ERRCODE_INVALID_OUTPUT_POINTER = 6; + +const int CSSM_ERRCODE_INVALID_PASSTHROUGH_ID = 86; + +const int CSSM_ERRCODE_INVALID_POINTER = 4; + +const int CSSM_ERRCODE_INVALID_SAMPLE_VALUE = 40; + +const int CSSM_ERRCODE_INVALID_TP_HANDLE = 83; + +const int CSSM_ERRCODE_IN_DARK_WAKE = 230; + +const int CSSM_ERRCODE_MDS_ERROR = 3; + +const int CSSM_ERRCODE_MEMORY_ERROR = 2; + +const int CSSM_ERRCODE_MODULE_MANIFEST_VERIFY_FAILED = 11; + +const int CSSM_ERRCODE_NO_USER_INTERACTION = 224; + +const int CSSM_ERRCODE_OBJECT_ACL_NOT_SUPPORTED = 35; + +const int CSSM_ERRCODE_OBJECT_ACL_REQUIRED = 36; + +const int CSSM_ERRCODE_OBJECT_MANIP_AUTH_DENIED = 34; + +const int CSSM_ERRCODE_OBJECT_USE_AUTH_DENIED = 33; + +const int CSSM_ERRCODE_OPERATION_AUTH_DENIED = 32; + +const int CSSM_ERRCODE_OS_ACCESS_DENIED = 9; + +const int CSSM_ERRCODE_PRIVILEGE_NOT_GRANTED = 75; + +const int CSSM_ERRCODE_SAMPLE_VALUE_NOT_SUPPORTED = 41; + +const int CSSM_ERRCODE_SELF_CHECK_FAILED = 8; + +const int CSSM_ERRCODE_SERVICE_NOT_AVAILABLE = 226; + +const int CSSM_ERRCODE_UNKNOWN_FORMAT = 78; + +const int CSSM_ERRCODE_UNKNOWN_TAG = 79; + +const int CSSM_ERRCODE_USER_CANCELED = 225; + +const int CSSM_ERRCODE_VERIFICATION_FAILURE = 73; + +const int CSSM_ERRORCODE_COMMON_EXTENT = 256; + +const int CSSM_ERRORCODE_CUSTOM_OFFSET = 1024; + +const int CSSM_ERRORCODE_MODULE_EXTENT = 2048; + +const int CSSM_ESTIMATED_TIME_UNKNOWN = -1; + +typedef CSSM_EVIDENCE = cssm_evidence; +typedef CSSM_EVIDENCE_FORM = uint32; + +const int CSSM_EVIDENCE_FORM_APPLE_CERTGROUP = -2147483647; + +const int CSSM_EVIDENCE_FORM_APPLE_CERT_INFO = -2147483646; + +const int CSSM_EVIDENCE_FORM_APPLE_HEADER = -2147483648; + +const int CSSM_EVIDENCE_FORM_CERT = 1; + +const int CSSM_EVIDENCE_FORM_CERT_ID = 3; + +const int CSSM_EVIDENCE_FORM_CRL = 2; + +const int CSSM_EVIDENCE_FORM_CRL_ID = 4; + +const int CSSM_EVIDENCE_FORM_CRL_NEXTTIME = 7; + +const int CSSM_EVIDENCE_FORM_CRL_THISTIME = 6; + +const int CSSM_EVIDENCE_FORM_POLICYINFO = 8; + +const int CSSM_EVIDENCE_FORM_TUPLEGROUP = 9; + +const int CSSM_EVIDENCE_FORM_UNSPECIFIC = 0; + +const int CSSM_EVIDENCE_FORM_VERIFIER_TIME = 5; + +typedef CSSM_EVIDENCE_PTR = ffi.Pointer; + +const int CSSM_FALSE = 0; + +const int CSSM_FEE_CURVE_TYPE_ANSI_X9_62 = 3; + +const int CSSM_FEE_CURVE_TYPE_DEFAULT = 0; + +const int CSSM_FEE_CURVE_TYPE_MONTGOMERY = 1; + +const int CSSM_FEE_CURVE_TYPE_WEIERSTRASS = 2; + +const int CSSM_FEE_PRIME_TYPE_DEFAULT = 0; + +const int CSSM_FEE_PRIME_TYPE_FEE = 2; + +const int CSSM_FEE_PRIME_TYPE_GENERAL = 3; + +const int CSSM_FEE_PRIME_TYPE_MERSENNE = 1; + +typedef CSSM_FIELD = cssm_field; +typedef CSSM_FIELDGROUP = cssm_fieldgroup; +typedef CSSM_FIELDGROUP_PTR = ffi.Pointer; + +const int CSSM_FIELDVALUE_COMPLEX_DATA_TYPE = -1; + +typedef CSSM_FIELD_PTR = ffi.Pointer; +typedef CSSM_FREE = ffi.Pointer>; +typedef CSSM_FREEFunction = + ffi.Void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef DartCSSM_FREEFunction = + void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef CSSM_FUNC_NAME_ADDR = cssm_func_name_addr; +typedef CSSM_FUNC_NAME_ADDR_PTR = ffi.Pointer; +typedef CSSM_GUID = cssm_guid; +typedef CSSM_GUID_PTR = ffi.Pointer; +typedef CSSM_HANDLE = CSSM_INTPTR; +typedef CSSM_HANDLE_PTR = ffi.Pointer; +typedef CSSM_HEADERVERSION = uint32; + +const int CSSM_HINT_ADDRESS_APP = 1; + +const int CSSM_HINT_ADDRESS_SP = 2; + +const int CSSM_HINT_NONE = 0; + +typedef CSSM_INTPTR = ffi.IntPtr; +typedef DartCSSM_INTPTR = int; + +const int CSSM_INVALID_HANDLE = 0; + +typedef CSSM_KEA_DERIVE_PARAMS = cssm_kea_derive_params; +typedef CSSM_KEA_DERIVE_PARAMS_PTR = ffi.Pointer; +typedef CSSM_KEY = cssm_key; + +const int CSSM_KEYATTR_ALWAYS_SENSITIVE = 16; + +const int CSSM_KEYATTR_EXTRACTABLE = 32; + +typedef CSSM_KEYATTR_FLAGS = uint32; + +const int CSSM_KEYATTR_MODIFIABLE = 4; + +const int CSSM_KEYATTR_NEVER_EXTRACTABLE = 64; + +const int CSSM_KEYATTR_PARTIAL = 65536; + +const int CSSM_KEYATTR_PERMANENT = 1; + +const int CSSM_KEYATTR_PRIVATE = 2; + +const int CSSM_KEYATTR_PUBLIC_KEY_ENCRYPT = 131072; + +const int CSSM_KEYATTR_RETURN_DATA = 268435456; + +const int CSSM_KEYATTR_RETURN_DEFAULT = 0; + +const int CSSM_KEYATTR_RETURN_NONE = 1073741824; + +const int CSSM_KEYATTR_RETURN_REF = 536870912; + +const int CSSM_KEYATTR_SENSITIVE = 8; + +typedef CSSM_KEYBLOB_FORMAT = uint32; + +const int CSSM_KEYBLOB_OTHER = -1; + +const int CSSM_KEYBLOB_RAW = 0; + +const int CSSM_KEYBLOB_RAW_FORMAT_BSAFE = 6; + +const int CSSM_KEYBLOB_RAW_FORMAT_CCA = 9; + +const int CSSM_KEYBLOB_RAW_FORMAT_FIPS186 = 5; + +const int CSSM_KEYBLOB_RAW_FORMAT_MSCAPI = 3; + +const int CSSM_KEYBLOB_RAW_FORMAT_NONE = 0; + +const int CSSM_KEYBLOB_RAW_FORMAT_OCTET_STRING = 12; + +const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH = -2147483647; + +const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH2 = -2147483645; + +const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSL = -2147483646; + +const int CSSM_KEYBLOB_RAW_FORMAT_OTHER = -1; + +const int CSSM_KEYBLOB_RAW_FORMAT_PGP = 4; + +const int CSSM_KEYBLOB_RAW_FORMAT_PKCS1 = 1; + +const int CSSM_KEYBLOB_RAW_FORMAT_PKCS3 = 2; + +const int CSSM_KEYBLOB_RAW_FORMAT_PKCS8 = 10; + +const int CSSM_KEYBLOB_RAW_FORMAT_SPKI = 11; + +const int CSSM_KEYBLOB_RAW_FORMAT_VENDOR_DEFINED = -2147483648; + +const int CSSM_KEYBLOB_RAW_FORMAT_X509 = -2147483648; + +const int CSSM_KEYBLOB_REFERENCE = 2; + +const int CSSM_KEYBLOB_REF_FORMAT_INTEGER = 0; + +const int CSSM_KEYBLOB_REF_FORMAT_OTHER = -1; + +const int CSSM_KEYBLOB_REF_FORMAT_SPKI = 2; + +const int CSSM_KEYBLOB_REF_FORMAT_STRING = 1; + +typedef CSSM_KEYBLOB_TYPE = uint32; + +const int CSSM_KEYBLOB_WRAPPED = 3; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_APPLE_CUSTOM = 100; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_MSCAPI = 3; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_NONE = 0; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSH1 = 102; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSL = 101; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_OTHER = -1; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS7 = 2; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS8 = 1; + +typedef CSSM_KEYCLASS = uint32; + +const int CSSM_KEYCLASS_OTHER = -1; + +const int CSSM_KEYCLASS_PRIVATE_KEY = 1; + +const int CSSM_KEYCLASS_PUBLIC_KEY = 0; + +const int CSSM_KEYCLASS_SECRET_PART = 3; + +const int CSSM_KEYCLASS_SESSION_KEY = 2; + +typedef CSSM_KEYHEADER = cssm_keyheader; +typedef CSSM_KEYHEADER_PTR = ffi.Pointer; + +const int CSSM_KEYHEADER_VERSION = 2; + +typedef CSSM_KEYUSE = uint32; + +const int CSSM_KEYUSE_ANY = -2147483648; + +const int CSSM_KEYUSE_DECRYPT = 2; + +const int CSSM_KEYUSE_DERIVE = 256; + +const int CSSM_KEYUSE_ENCRYPT = 1; + +const int CSSM_KEYUSE_SIGN = 4; + +const int CSSM_KEYUSE_SIGN_RECOVER = 16; + +const int CSSM_KEYUSE_UNWRAP = 128; + +const int CSSM_KEYUSE_VERIFY = 8; + +const int CSSM_KEYUSE_VERIFY_RECOVER = 32; + +const int CSSM_KEYUSE_WRAP = 64; + +typedef CSSM_KEY_HIERARCHY = CSSM_BITMASK; + +const int CSSM_KEY_HIERARCHY_EXPORT = 2; + +const int CSSM_KEY_HIERARCHY_INTEG = 1; + +const int CSSM_KEY_HIERARCHY_NONE = 0; + +typedef CSSM_KEY_PTR = ffi.Pointer; +typedef CSSM_KEY_SIZE = cssm_key_size; +typedef CSSM_KEY_SIZE_PTR = ffi.Pointer; +typedef CSSM_KEY_TYPE = CSSM_ALGORITHMS; +typedef CSSM_KRSP_HANDLE = uint32; +typedef CSSM_KRSUBSERVICE = cssm_krsubservice; +typedef CSSM_KRSUBSERVICE_PTR = ffi.Pointer; + +const int CSSM_KR_BASE_ERROR = -2147407872; + +typedef CSSM_KR_NAME = cssm_kr_name; +typedef CSSM_KR_POLICY_FLAGS = uint32; +typedef CSSM_KR_POLICY_INFO = cssm_kr_policy_info; +typedef CSSM_KR_POLICY_INFO_PTR = ffi.Pointer; +typedef CSSM_KR_POLICY_LIST_ITEM = cssm_kr_policy_list_item; +typedef CSSM_KR_POLICY_LIST_ITEM_PTR = ffi.Pointer; +typedef CSSM_KR_POLICY_TYPE = uint32; + +const int CSSM_KR_PRIVATE_ERROR = -2147406848; + +typedef CSSM_KR_PROFILE = cssm_kr_profile; +typedef CSSM_KR_PROFILE_PTR = ffi.Pointer; +typedef CSSM_KR_WRAPPEDPRODUCT_INFO = cssm_kr_wrappedproductinfo; +typedef CSSM_KR_WRAPPEDPRODUCT_INFO_PTR = + ffi.Pointer; +typedef CSSM_LIST = cssm_list; +typedef CSSM_LIST_ELEMENT = cssm_list_element; + +const int CSSM_LIST_ELEMENT_DATUM = 0; + +typedef CSSM_LIST_ELEMENT_PTR = ffi.Pointer; + +const int CSSM_LIST_ELEMENT_SUBLIST = 1; + +typedef CSSM_LIST_ELEMENT_TYPE = uint32; +typedef CSSM_LIST_ELEMENT_TYPE_PTR = ffi.Pointer; + +const int CSSM_LIST_ELEMENT_WORDID = 2; + +typedef CSSM_LIST_PTR = ffi.Pointer; +typedef CSSM_LIST_TYPE = uint32; + +const int CSSM_LIST_TYPE_CUSTOM = 1; + +typedef CSSM_LIST_TYPE_PTR = ffi.Pointer; + +const int CSSM_LIST_TYPE_SEXPR = 2; + +const int CSSM_LIST_TYPE_UNKNOWN = 0; + +typedef CSSM_LONG_HANDLE = uint64; +typedef CSSM_LONG_HANDLE_PTR = ffi.Pointer; +typedef CSSM_MALLOC = ffi.Pointer>; +typedef CSSM_MALLOCFunction = + ffi.Pointer Function( + CSSM_SIZE size, + ffi.Pointer allocref, + ); +typedef DartCSSM_MALLOCFunction = + ffi.Pointer Function( + DartCSSM_SIZE size, + ffi.Pointer allocref, + ); +typedef CSSM_MANAGER_EVENT_NOTIFICATION = cssm_manager_event_notification; +typedef CSSM_MANAGER_EVENT_NOTIFICATION_PTR = + ffi.Pointer; +typedef CSSM_MANAGER_EVENT_TYPES = uint32; +typedef CSSM_MANAGER_REGISTRATION_INFO = cssm_manager_registration_info; +typedef CSSM_MANAGER_REGISTRATION_INFO_PTR = + ffi.Pointer; + +const int CSSM_MDS_BASE_ERROR = -2147414016; + +const int CSSM_MDS_PRIVATE_ERROR = -2147412992; + +typedef CSSM_MEMORY_FUNCS = cssm_memory_funcs; +typedef CSSM_MEMORY_FUNCS_PTR = ffi.Pointer; +typedef CSSM_MODULE_EVENT = uint32; +typedef CSSM_MODULE_EVENT_PTR = ffi.Pointer; +typedef CSSM_MODULE_FUNCS = cssm_module_funcs; +typedef CSSM_MODULE_FUNCS_PTR = ffi.Pointer; +typedef CSSM_MODULE_HANDLE = CSSM_HANDLE; +typedef CSSM_MODULE_HANDLE_PTR = ffi.Pointer; + +const int CSSM_MODULE_STRING_SIZE = 64; + +typedef CSSM_NAME_LIST = cssm_name_list; +typedef CSSM_NAME_LIST_PTR = ffi.Pointer; +typedef CSSM_NET_ADDRESS = cssm_net_address; +typedef CSSM_NET_ADDRESS_PTR = ffi.Pointer; +typedef CSSM_NET_ADDRESS_TYPE = uint32; +typedef CSSM_NET_PROTOCOL = uint32; + +const int CSSM_NET_PROTO_CMP = 10; + +const int CSSM_NET_PROTO_CMPS = 11; + +const int CSSM_NET_PROTO_CUSTOM = 1; + +const int CSSM_NET_PROTO_FTP = 7; + +const int CSSM_NET_PROTO_FTPS = 8; + +const int CSSM_NET_PROTO_LDAP = 3; + +const int CSSM_NET_PROTO_LDAPNS = 5; + +const int CSSM_NET_PROTO_LDAPS = 4; + +const int CSSM_NET_PROTO_NONE = 0; + +const int CSSM_NET_PROTO_OCSP = 9; + +const int CSSM_NET_PROTO_UNSPECIFIED = 2; + +const int CSSM_NET_PROTO_X500DAP = 6; + +const int CSSM_NOTIFY_FAULT = 3; + +const int CSSM_NOTIFY_INSERT = 1; + +const int CSSM_NOTIFY_REMOVE = 2; + +typedef CSSM_OID_PTR = ffi.Pointer; + +const int CSSM_OK = 0; + +typedef CSSM_PADDING = uint32; + +const int CSSM_PADDING_ALTERNATE = 4; + +const int CSSM_PADDING_APPLE_SSLv2 = -2147483648; + +const int CSSM_PADDING_CIPHERSTEALING = 8; + +const int CSSM_PADDING_CUSTOM = 1; + +const int CSSM_PADDING_FF = 5; + +const int CSSM_PADDING_NONE = 0; + +const int CSSM_PADDING_ONE = 3; + +const int CSSM_PADDING_PKCS1 = 10; + +const int CSSM_PADDING_PKCS5 = 6; + +const int CSSM_PADDING_PKCS7 = 7; + +const int CSSM_PADDING_RANDOM = 9; + +const int CSSM_PADDING_SIGRAW = 11; + +const int CSSM_PADDING_VENDOR_DEFINED = -2147483648; + +const int CSSM_PADDING_ZERO = 2; + +typedef CSSM_PARSED_CERT = cssm_parsed_cert; +typedef CSSM_PARSED_CERT_PTR = ffi.Pointer; +typedef CSSM_PARSED_CRL = cssm_parsed_crl; +typedef CSSM_PARSED_CRL_PTR = ffi.Pointer; +typedef CSSM_PKCS1_OAEP_PARAMS = cssm_pkcs1_oaep_params; +typedef CSSM_PKCS1_OAEP_PARAMS_PTR = ffi.Pointer; +typedef CSSM_PKCS5_PBKDF1_PARAMS = cssm_pkcs5_pbkdf1_params; +typedef CSSM_PKCS5_PBKDF1_PARAMS_PTR = ffi.Pointer; +typedef CSSM_PKCS5_PBKDF2_PARAMS = cssm_pkcs5_pbkdf2_params; +typedef CSSM_PKCS5_PBKDF2_PARAMS_PTR = ffi.Pointer; +typedef CSSM_PKCS5_PBKDF2_PRF = uint32; + +const int CSSM_PKCS5_PBKDF2_PRF_HMAC_SHA1 = 0; + +typedef CSSM_PKCS_OAEP_MGF = uint32; + +const int CSSM_PKCS_OAEP_MGF1_MD5 = 2; + +const int CSSM_PKCS_OAEP_MGF1_SHA1 = 1; + +const int CSSM_PKCS_OAEP_MGF_NONE = 0; + +typedef CSSM_PKCS_OAEP_PSOURCE = uint32; + +const int CSSM_PKCS_OAEP_PSOURCE_NONE = 0; + +const int CSSM_PKCS_OAEP_PSOURCE_Pspecified = 1; + +typedef CSSM_PRIVILEGE = uint64; +typedef CSSM_PRIVILEGE_SCOPE = uint32; + +const int CSSM_PRIVILEGE_SCOPE_NONE = 0; + +const int CSSM_PRIVILEGE_SCOPE_PROCESS = 1; + +const int CSSM_PRIVILEGE_SCOPE_THREAD = 2; + +typedef CSSM_PROC_ADDR = + ffi.Pointer>; +typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); +typedef DartCSSM_PROC_ADDRFunction = void Function(); +typedef CSSM_PROC_ADDR_PTR = ffi.Pointer; + +const int CSSM_PVC_APP = 1; + +typedef CSSM_PVC_MODE = CSSM_BITMASK; + +const int CSSM_PVC_NONE = 0; + +const int CSSM_PVC_SP = 2; + +typedef CSSM_QUERY = cssm_query; +typedef CSSM_QUERY_FLAGS = uint32; +typedef CSSM_QUERY_LIMITS = cssm_query_limits; +typedef CSSM_QUERY_LIMITS_PTR = ffi.Pointer; +typedef CSSM_QUERY_PTR = ffi.Pointer; + +const int CSSM_QUERY_RETURN_DATA = 1; + +const int CSSM_QUERY_SIZELIMIT_NONE = 0; + +typedef CSSM_QUERY_SIZE_DATA = cssm_query_size_data; +typedef CSSM_QUERY_SIZE_DATA_PTR = ffi.Pointer; + +const int CSSM_QUERY_TIMELIMIT_NONE = 0; + +typedef CSSM_RANGE = cssm_range; +typedef CSSM_RANGE_PTR = ffi.Pointer; +typedef CSSM_REALLOC = ffi.Pointer>; +typedef CSSM_REALLOCFunction = + ffi.Pointer Function( + ffi.Pointer memblock, + CSSM_SIZE size, + ffi.Pointer allocref, + ); +typedef DartCSSM_REALLOCFunction = + ffi.Pointer Function( + ffi.Pointer memblock, + DartCSSM_SIZE size, + ffi.Pointer allocref, + ); +typedef CSSM_RESOURCE_CONTROL_CONTEXT = cssm_resource_control_context; +typedef CSSM_RESOURCE_CONTROL_CONTEXT_PTR = + ffi.Pointer; +typedef CSSM_RETURN = sint32; +typedef CSSM_SAMPLE = cssm_sample; +typedef CSSM_SAMPLEGROUP = cssm_samplegroup; +typedef CSSM_SAMPLEGROUP_PTR = ffi.Pointer; +typedef CSSM_SAMPLE_PTR = ffi.Pointer; +typedef CSSM_SAMPLE_TYPE = CSSM_WORDID_TYPE; + +const int CSSM_SAMPLE_TYPE_ASYMMETRIC_KEY = 65547; + +const int CSSM_SAMPLE_TYPE_BIOMETRIC = 8; + +const int CSSM_SAMPLE_TYPE_COMMENT = 12; + +const int CSSM_SAMPLE_TYPE_HASHED_PASSWORD = 43; + +const int CSSM_SAMPLE_TYPE_KEYBAG_KEY = 65549; + +const int CSSM_SAMPLE_TYPE_KEYCHAIN_CHANGE_LOCK = 65538; + +const int CSSM_SAMPLE_TYPE_KEYCHAIN_LOCK = 65537; + +const int CSSM_SAMPLE_TYPE_KEYCHAIN_PROMPT = 65536; + +const int CSSM_SAMPLE_TYPE_PASSWORD = 79; + +const int CSSM_SAMPLE_TYPE_PREAUTH = 65545; + +const int CSSM_SAMPLE_TYPE_PROCESS = 65539; + +const int CSSM_SAMPLE_TYPE_PROMPTED_BIOMETRIC = 83; + +const int CSSM_SAMPLE_TYPE_PROMPTED_PASSWORD = 84; + +const int CSSM_SAMPLE_TYPE_PROTECTED_BIOMETRIC = 86; + +const int CSSM_SAMPLE_TYPE_PROTECTED_PASSWORD = 87; + +const int CSSM_SAMPLE_TYPE_RETRY_ID = 85; + +const int CSSM_SAMPLE_TYPE_SIGNED_NONCE = 117; + +const int CSSM_SAMPLE_TYPE_SIGNED_SECRET = 118; + +const int CSSM_SAMPLE_TYPE_SYMMETRIC_KEY = 65541; + +const int CSSM_SAMPLE_TYPE_THRESHOLD = 123; + +typedef CSSM_SC_FLAGS = uint32; +typedef CSSM_SELECTION_PREDICATE = cssm_selection_predicate; +typedef CSSM_SELECTION_PREDICATE_PTR = ffi.Pointer; + +const int CSSM_SERVICE_AC = 32; + +const int CSSM_SERVICE_CL = 8; + +const int CSSM_SERVICE_CSP = 2; + +const int CSSM_SERVICE_CSSM = 1; + +const int CSSM_SERVICE_DL = 4; + +const int CSSM_SERVICE_KR = 64; + +typedef CSSM_SERVICE_MASK = uint32; + +const int CSSM_SERVICE_TP = 16; + +typedef CSSM_SERVICE_TYPE = CSSM_SERVICE_MASK; +typedef CSSM_SIZE = ffi.Size; +typedef DartCSSM_SIZE = int; +typedef CSSM_SPI_AC_FUNCS = cssm_spi_ac_funcs; +typedef CSSM_SPI_AC_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SPI_CL_FUNCS = cssm_spi_cl_funcs; +typedef CSSM_SPI_CL_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SPI_CSP_FUNCS = cssm_spi_csp_funcs; +typedef CSSM_SPI_CSP_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SPI_DL_FUNCS = cssm_spi_dl_funcs; +typedef CSSM_SPI_DL_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SPI_KR_FUNCS = cssm_spi_kr_funcs; +typedef CSSM_SPI_KR_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SPI_ModuleEventHandler = + ffi.Pointer>; +typedef CSSM_SPI_ModuleEventHandlerFunction = + CSSM_RETURN Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + uint32 SubserviceId, + CSSM_SERVICE_TYPE ServiceType, + CSSM_MODULE_EVENT EventType, + ); +typedef DartCSSM_SPI_ModuleEventHandlerFunction = + Dartsint32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + Dartuint32 SubserviceId, + Dartuint32 ServiceType, + Dartuint32 EventType, + ); +typedef CSSM_SPI_TP_FUNCS = cssm_spi_tp_funcs; +typedef CSSM_SPI_TP_FUNCS_PTR = ffi.Pointer; +typedef CSSM_STATE_FUNCS = cssm_state_funcs; +typedef CSSM_STATE_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SUBSERVICE_UID = cssm_subservice_uid; +typedef CSSM_SUBSERVICE_UID_PTR = ffi.Pointer; +typedef CSSM_TIMESTRING = ffi.Pointer; +typedef CSSM_TP_ACTION = uint32; + +const int CSSM_TP_ACTION_ALLOW_EXPIRED = 1; + +const int CSSM_TP_ACTION_ALLOW_EXPIRED_ROOT = 8; + +const int CSSM_TP_ACTION_CRL_SUFFICIENT = 4; + +const int CSSM_TP_ACTION_DEFAULT = 0; + +const int CSSM_TP_ACTION_FETCH_CERT_FROM_NET = 4; + +const int CSSM_TP_ACTION_FETCH_CRL_FROM_NET = 2; + +const int CSSM_TP_ACTION_IMPLICIT_ANCHORS = 64; + +const int CSSM_TP_ACTION_LEAF_IS_CA = 2; + +const int CSSM_TP_ACTION_REQUIRE_CRL_IF_PRESENT = 8; + +const int CSSM_TP_ACTION_REQUIRE_CRL_PER_CERT = 1; + +const int CSSM_TP_ACTION_REQUIRE_REV_PER_CERT = 16; + +const int CSSM_TP_ACTION_TRUST_SETTINGS = 32; + +typedef CSSM_TP_APPLE_CERT_STATUS = uint32; + +final class CSSM_TP_APPLE_EVIDENCE_HEADER extends ffi.Struct { + @uint32() + external int Version; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Version, + }) => $allocator()..ref.Version = Version; +} + +@Deprecated('Deprecated') +final class CSSM_TP_APPLE_EVIDENCE_INFO extends ffi.Struct { + @CSSM_TP_APPLE_CERT_STATUS() + external int StatusBits; + + @uint32() + external int NumStatusCodes; + + external ffi.Pointer StatusCodes; + + @uint32() + external int Index; + + external CSSM_DL_DB_HANDLE DlDbHandle; + + external CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord; +} + +typedef CSSM_TP_AUTHORITY_ID = cssm_tp_authority_id; +typedef CSSM_TP_AUTHORITY_ID_PTR = ffi.Pointer; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTISSUE = 1; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTNOTARIZE = 6; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTRESUME = 4; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTREVOKE = 2; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTSUSPEND = 3; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTUSERECOVER = 7; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTVERIFY = 5; + +const int CSSM_TP_AUTHORITY_REQUEST_CRLISSUE = 256; + +typedef CSSM_TP_AUTHORITY_REQUEST_TYPE = uint32; +typedef CSSM_TP_AUTHORITY_REQUEST_TYPE_PTR = ffi.Pointer; + +const int CSSM_TP_BASE_ERROR = -2147409920; + +const int CSSM_TP_BASE_TP_ERROR = -2147409664; + +typedef CSSM_TP_CALLERAUTH_CONTEXT = cssm_tp_callerauth_context; +typedef CSSM_TP_CALLERAUTH_CONTEXT_PTR = + ffi.Pointer; +typedef CSSM_TP_CERTCHANGE_ACTION = uint32; + +const int CSSM_TP_CERTCHANGE_HOLD = 2; + +typedef CSSM_TP_CERTCHANGE_INPUT = cssm_tp_certchange_input; +typedef CSSM_TP_CERTCHANGE_INPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTCHANGE_NONE = 0; + +const int CSSM_TP_CERTCHANGE_NOT_AUTHORIZED = 5; + +const int CSSM_TP_CERTCHANGE_OK = 1; + +const int CSSM_TP_CERTCHANGE_OKWITHNEWTIME = 2; + +typedef CSSM_TP_CERTCHANGE_OUTPUT = cssm_tp_certchange_output; +typedef CSSM_TP_CERTCHANGE_OUTPUT_PTR = ffi.Pointer; +typedef CSSM_TP_CERTCHANGE_REASON = uint32; + +const int CSSM_TP_CERTCHANGE_REASON_AFFILIATIONCHANGE = 4; + +const int CSSM_TP_CERTCHANGE_REASON_CACOMPROMISE = 2; + +const int CSSM_TP_CERTCHANGE_REASON_CEASEOPERATION = 3; + +const int CSSM_TP_CERTCHANGE_REASON_HOLDRELEASE = 7; + +const int CSSM_TP_CERTCHANGE_REASON_KEYCOMPROMISE = 1; + +const int CSSM_TP_CERTCHANGE_REASON_SUPERCEDED = 5; + +const int CSSM_TP_CERTCHANGE_REASON_SUSPECTEDCOMPROMISE = 6; + +const int CSSM_TP_CERTCHANGE_REASON_UNKNOWN = 0; + +const int CSSM_TP_CERTCHANGE_REJECTED = 4; + +const int CSSM_TP_CERTCHANGE_RELEASE = 3; + +const int CSSM_TP_CERTCHANGE_REVOKE = 1; + +typedef CSSM_TP_CERTCHANGE_STATUS = uint32; + +const int CSSM_TP_CERTCHANGE_STATUS_UNKNOWN = 0; + +const int CSSM_TP_CERTCHANGE_WRONGCA = 3; + +typedef CSSM_TP_CERTISSUE_INPUT = cssm_tp_certissue_input; +typedef CSSM_TP_CERTISSUE_INPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTISSUE_NOT_AUTHORIZED = 5; + +const int CSSM_TP_CERTISSUE_OK = 1; + +const int CSSM_TP_CERTISSUE_OKWITHCERTMODS = 2; + +const int CSSM_TP_CERTISSUE_OKWITHSERVICEMODS = 3; + +typedef CSSM_TP_CERTISSUE_OUTPUT = cssm_tp_certissue_output; +typedef CSSM_TP_CERTISSUE_OUTPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTISSUE_REJECTED = 4; + +typedef CSSM_TP_CERTISSUE_STATUS = uint32; + +const int CSSM_TP_CERTISSUE_STATUS_UNKNOWN = 0; + +const int CSSM_TP_CERTISSUE_WILL_BE_REVOKED = 6; + +typedef CSSM_TP_CERTNOTARIZE_INPUT = cssm_tp_certnotarize_input; +typedef CSSM_TP_CERTNOTARIZE_INPUT_PTR = + ffi.Pointer; + +const int CSSM_TP_CERTNOTARIZE_NOT_AUTHORIZED = 5; + +const int CSSM_TP_CERTNOTARIZE_OK = 1; + +const int CSSM_TP_CERTNOTARIZE_OKWITHOUTFIELDS = 2; + +const int CSSM_TP_CERTNOTARIZE_OKWITHSERVICEMODS = 3; + +typedef CSSM_TP_CERTNOTARIZE_OUTPUT = cssm_tp_certnotarize_output; +typedef CSSM_TP_CERTNOTARIZE_OUTPUT_PTR = + ffi.Pointer; + +const int CSSM_TP_CERTNOTARIZE_REJECTED = 4; + +typedef CSSM_TP_CERTNOTARIZE_STATUS = uint32; + +const int CSSM_TP_CERTNOTARIZE_STATUS_UNKNOWN = 0; + +typedef CSSM_TP_CERTRECLAIM_INPUT = cssm_tp_certreclaim_input; +typedef CSSM_TP_CERTRECLAIM_INPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTRECLAIM_NOMATCH = 2; + +const int CSSM_TP_CERTRECLAIM_NOT_AUTHORIZED = 4; + +const int CSSM_TP_CERTRECLAIM_OK = 1; + +typedef CSSM_TP_CERTRECLAIM_OUTPUT = cssm_tp_certreclaim_output; +typedef CSSM_TP_CERTRECLAIM_OUTPUT_PTR = + ffi.Pointer; + +const int CSSM_TP_CERTRECLAIM_REJECTED = 3; + +typedef CSSM_TP_CERTRECLAIM_STATUS = uint32; + +const int CSSM_TP_CERTRECLAIM_STATUS_UNKNOWN = 0; + +const int CSSM_TP_CERTVERIFY_EXPIRED = 5; + +typedef CSSM_TP_CERTVERIFY_INPUT = cssm_tp_certverify_input; +typedef CSSM_TP_CERTVERIFY_INPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTVERIFY_INVALID = 2; + +const int CSSM_TP_CERTVERIFY_INVALID_AUTHORITY = 7; + +const int CSSM_TP_CERTVERIFY_INVALID_BASIC_CONSTRAINTS = 13; + +const int CSSM_TP_CERTVERIFY_INVALID_CERTGROUP = 10; + +const int CSSM_TP_CERTVERIFY_INVALID_CERT_VALUE = 9; + +const int CSSM_TP_CERTVERIFY_INVALID_CRL_DIST_PT = 14; + +const int CSSM_TP_CERTVERIFY_INVALID_NAME_TREE = 15; + +const int CSSM_TP_CERTVERIFY_INVALID_POLICY = 11; + +const int CSSM_TP_CERTVERIFY_INVALID_POLICY_IDS = 12; + +const int CSSM_TP_CERTVERIFY_INVALID_SIGNATURE = 8; + +const int CSSM_TP_CERTVERIFY_NOT_VALID_YET = 6; + +typedef CSSM_TP_CERTVERIFY_OUTPUT = cssm_tp_certverify_output; +typedef CSSM_TP_CERTVERIFY_OUTPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTVERIFY_REVOKED = 3; + +typedef CSSM_TP_CERTVERIFY_STATUS = uint32; + +const int CSSM_TP_CERTVERIFY_SUSPENDED = 4; + +const int CSSM_TP_CERTVERIFY_UNKNOWN = 0; + +const int CSSM_TP_CERTVERIFY_UNKNOWN_CRITICAL_EXT = 16; + +const int CSSM_TP_CERTVERIFY_VALID = 1; + +const int CSSM_TP_CERT_DIR_UPDATE = 8; + +const int CSSM_TP_CERT_NOTIFY_RENEW = 4; + +const int CSSM_TP_CERT_PUBLISH = 2; + +const int CSSM_TP_CONFIRM_ACCEPT = 1; + +const int CSSM_TP_CONFIRM_REJECT = 2; + +typedef CSSM_TP_CONFIRM_RESPONSE = cssm_tp_confirm_response; +typedef CSSM_TP_CONFIRM_RESPONSE_PTR = ffi.Pointer; +typedef CSSM_TP_CONFIRM_STATUS = uint32; +typedef CSSM_TP_CONFIRM_STATUS_PTR = ffi.Pointer; + +const int CSSM_TP_CONFIRM_STATUS_UNKNOWN = 0; + +typedef CSSM_TP_CRLISSUE_INPUT = cssm_tp_crlissue_input; +typedef CSSM_TP_CRLISSUE_INPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CRLISSUE_INVALID_DOMAIN = 3; + +const int CSSM_TP_CRLISSUE_NOT_AUTHORIZED = 6; + +const int CSSM_TP_CRLISSUE_NOT_CURRENT = 2; + +const int CSSM_TP_CRLISSUE_OK = 1; + +typedef CSSM_TP_CRLISSUE_OUTPUT = cssm_tp_crlissue_output; +typedef CSSM_TP_CRLISSUE_OUTPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CRLISSUE_REJECTED = 5; + +typedef CSSM_TP_CRLISSUE_STATUS = uint32; + +const int CSSM_TP_CRLISSUE_STATUS_UNKNOWN = 0; + +const int CSSM_TP_CRLISSUE_UNKNOWN_IDENTIFIER = 4; + +const int CSSM_TP_CRL_DISTRIBUTE = 16; + +typedef CSSM_TP_FORM_TYPE = uint32; + +const int CSSM_TP_FORM_TYPE_GENERIC = 0; + +const int CSSM_TP_FORM_TYPE_REGISTRATION = 1; + +typedef CSSM_TP_HANDLE = CSSM_MODULE_HANDLE; + +const int CSSM_TP_KEY_ARCHIVE = 1; + +typedef CSSM_TP_POLICYINFO = cssm_tp_policyinfo; +typedef CSSM_TP_POLICYINFO_PTR = ffi.Pointer; + +const int CSSM_TP_PRIVATE_ERROR = -2147408896; + +typedef CSSM_TP_REQUEST_SET = cssm_tp_request_set; +typedef CSSM_TP_REQUEST_SET_PTR = ffi.Pointer; +typedef CSSM_TP_RESULT_SET = cssm_tp_result_set; +typedef CSSM_TP_RESULT_SET_PTR = ffi.Pointer; +typedef CSSM_TP_SERVICES = uint32; +typedef CSSM_TP_STOP_ON = uint32; + +const int CSSM_TP_STOP_ON_FIRST_FAIL = 3; + +const int CSSM_TP_STOP_ON_FIRST_PASS = 2; + +const int CSSM_TP_STOP_ON_NONE = 1; + +const int CSSM_TP_STOP_ON_POLICY = 0; + +typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACK = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = + CSSM_RETURN Function( + CSSM_MODULE_HANDLE ModuleHandle, + ffi.Pointer CallerCtx, + CSSM_DATA_PTR VerifiedCert, + ); +typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = + Dartsint32 Function( + DartCSSM_INTPTR ModuleHandle, + ffi.Pointer CallerCtx, + CSSM_DATA_PTR VerifiedCert, + ); +typedef CSSM_TP_VERIFY_CONTEXT = cssm_tp_verify_context; +typedef CSSM_TP_VERIFY_CONTEXT_PTR = ffi.Pointer; +typedef CSSM_TP_VERIFY_CONTEXT_RESULT = cssm_tp_verify_context_result; +typedef CSSM_TP_VERIFY_CONTEXT_RESULT_PTR = + ffi.Pointer; + +const int CSSM_TRUE = 1; + +@Deprecated('Deprecated') +final class CSSM_TUPLE extends ffi.Struct { + external CSSM_LIST Issuer; + + external CSSM_LIST Subject; + + @CSSM_BOOL() + external int Delegate; + + external CSSM_LIST AuthorizationTag; + + external CSSM_LIST ValidityPeriod; +} + +typedef CSSM_TUPLEGROUP = cssm_tuplegroup; +typedef CSSM_TUPLEGROUP_PTR = ffi.Pointer; +typedef CSSM_TUPLE_PTR = ffi.Pointer; +typedef CSSM_UPCALLS = cssm_upcalls; +typedef CSSM_UPCALLS_CALLOC = + ffi.Pointer>; +typedef CSSM_UPCALLS_CALLOCFunction = + ffi.Pointer Function( + CSSM_HANDLE AddInHandle, + ffi.Size num, + ffi.Size size, + ); +typedef DartCSSM_UPCALLS_CALLOCFunction = + ffi.Pointer Function( + DartCSSM_INTPTR AddInHandle, + int num, + int size, + ); +typedef CSSM_UPCALLS_FREE = + ffi.Pointer>; +typedef CSSM_UPCALLS_FREEFunction = + ffi.Void Function(CSSM_HANDLE AddInHandle, ffi.Pointer memblock); +typedef DartCSSM_UPCALLS_FREEFunction = + void Function(DartCSSM_INTPTR AddInHandle, ffi.Pointer memblock); +typedef CSSM_UPCALLS_MALLOC = + ffi.Pointer>; +typedef CSSM_UPCALLS_MALLOCFunction = + ffi.Pointer Function(CSSM_HANDLE AddInHandle, ffi.Size size); +typedef DartCSSM_UPCALLS_MALLOCFunction = + ffi.Pointer Function(DartCSSM_INTPTR AddInHandle, int size); +typedef CSSM_UPCALLS_PTR = ffi.Pointer; +typedef CSSM_UPCALLS_REALLOC = + ffi.Pointer>; +typedef CSSM_UPCALLS_REALLOCFunction = + ffi.Pointer Function( + CSSM_HANDLE AddInHandle, + ffi.Pointer memblock, + ffi.Size size, + ); +typedef DartCSSM_UPCALLS_REALLOCFunction = + ffi.Pointer Function( + DartCSSM_INTPTR AddInHandle, + ffi.Pointer memblock, + int size, + ); + +const int CSSM_USEE_AUTHENTICATION = 6; + +const int CSSM_USEE_DOMESTIC = 1; + +const int CSSM_USEE_FINANCIAL = 2; + +const int CSSM_USEE_INSURANCE = 9; + +const int CSSM_USEE_KEYEXCH = 7; + +const int CSSM_USEE_KRENT = 4; + +const int CSSM_USEE_KRLE = 3; + +const int CSSM_USEE_LAST = 255; + +const int CSSM_USEE_MEDICAL = 8; + +const int CSSM_USEE_NONE = 0; + +const int CSSM_USEE_SSL = 5; + +typedef CSSM_USEE_TAG = CSSM_PRIVILEGE; + +const int CSSM_USEE_WEAK = 10; + +const int CSSM_VALUE_NOT_AVAILABLE = -1; + +typedef CSSM_VERSION = cssm_version; +typedef CSSM_VERSION_PTR = ffi.Pointer; + +const int CSSM_WORDID_A = 2; + +const int CSSM_WORDID_ACL = 3; + +const int CSSM_WORDID_ALPHA = 4; + +const int CSSM_WORDID_ASYMMETRIC_KEY = 65547; + +const int CSSM_WORDID_B = 5; + +const int CSSM_WORDID_BER = 6; + +const int CSSM_WORDID_BINARY = 7; + +const int CSSM_WORDID_BIOMETRIC = 8; + +const int CSSM_WORDID_C = 9; + +const int CSSM_WORDID_CANCELED = 10; + +const int CSSM_WORDID_CERT = 11; + +const int CSSM_WORDID_COMMENT = 12; + +const int CSSM_WORDID_CRL = 13; + +const int CSSM_WORDID_CUSTOM = 14; + +const int CSSM_WORDID_D = 15; + +const int CSSM_WORDID_DATE = 16; + +const int CSSM_WORDID_DBS_CREATE = 22; + +const int CSSM_WORDID_DBS_DELETE = 23; + +const int CSSM_WORDID_DB_DELETE = 17; + +const int CSSM_WORDID_DB_EXEC_STORED_QUERY = 18; + +const int CSSM_WORDID_DB_INSERT = 19; + +const int CSSM_WORDID_DB_MODIFY = 20; + +const int CSSM_WORDID_DB_READ = 21; + +const int CSSM_WORDID_DECRYPT = 24; + +const int CSSM_WORDID_DELETE = 25; + +const int CSSM_WORDID_DELTA_CRL = 26; + +const int CSSM_WORDID_DER = 27; + +const int CSSM_WORDID_DERIVE = 28; + +const int CSSM_WORDID_DISPLAY = 29; + +const int CSSM_WORDID_DO = 30; + +const int CSSM_WORDID_DSA = 31; + +const int CSSM_WORDID_DSA_SHA1 = 32; + +const int CSSM_WORDID_E = 33; + +const int CSSM_WORDID_ELGAMAL = 34; + +const int CSSM_WORDID_ENCRYPT = 35; + +const int CSSM_WORDID_ENTRY = 36; + +const int CSSM_WORDID_EXPORT_CLEAR = 37; + +const int CSSM_WORDID_EXPORT_WRAPPED = 38; + +const int CSSM_WORDID_G = 39; + +const int CSSM_WORDID_GE = 40; + +const int CSSM_WORDID_GENKEY = 41; + +const int CSSM_WORDID_HASH = 42; + +const int CSSM_WORDID_HASHED_PASSWORD = 43; + +const int CSSM_WORDID_HASHED_SUBJECT = 44; + +const int CSSM_WORDID_HAVAL = 45; + +const int CSSM_WORDID_IBCHASH = 46; + +const int CSSM_WORDID_IMPORT_CLEAR = 47; + +const int CSSM_WORDID_IMPORT_WRAPPED = 48; + +const int CSSM_WORDID_INTEL = 49; + +const int CSSM_WORDID_ISSUER = 50; + +const int CSSM_WORDID_ISSUER_INFO = 51; + +const int CSSM_WORDID_KEA = 53; + +const int CSSM_WORDID_KEY = 65543; + +const int CSSM_WORDID_KEYBAG_KEY = 65549; + +const int CSSM_WORDID_KEYCHAIN_CHANGE_LOCK = 65538; + +const int CSSM_WORDID_KEYCHAIN_LOCK = 65537; + +const int CSSM_WORDID_KEYCHAIN_PROMPT = 65536; + +const int CSSM_WORDID_KEYHOLDER = 54; + +const int CSSM_WORDID_K_OF_N = 52; + +const int CSSM_WORDID_L = 55; + +const int CSSM_WORDID_LE = 56; + +const int CSSM_WORDID_LOGIN = 57; + +const int CSSM_WORDID_LOGIN_NAME = 58; + +const int CSSM_WORDID_MAC = 59; + +const int CSSM_WORDID_MD2 = 60; + +const int CSSM_WORDID_MD2WITHRSA = 61; + +const int CSSM_WORDID_MD4 = 62; + +const int CSSM_WORDID_MD5 = 63; + +const int CSSM_WORDID_MD5WITHRSA = 64; + +const int CSSM_WORDID_N = 65; + +const int CSSM_WORDID_NAME = 66; + +const int CSSM_WORDID_NDR = 67; + +const int CSSM_WORDID_NHASH = 68; + +const int CSSM_WORDID_NOT_AFTER = 69; + +const int CSSM_WORDID_NOT_BEFORE = 70; + +const int CSSM_WORDID_NULL = 71; + +const int CSSM_WORDID_NUMERIC = 72; + +const int CSSM_WORDID_OBJECT_HASH = 73; + +const int CSSM_WORDID_ONE_TIME = 74; + +const int CSSM_WORDID_ONLINE = 75; + +const int CSSM_WORDID_OWNER = 76; + +const int CSSM_WORDID_P = 77; + +const int CSSM_WORDID_PAM_NAME = 78; + +const int CSSM_WORDID_PARTITION = 65548; + +const int CSSM_WORDID_PASSWORD = 79; + +const int CSSM_WORDID_PGP = 80; + +const int CSSM_WORDID_PIN = 65544; + +const int CSSM_WORDID_PREAUTH = 65545; + +const int CSSM_WORDID_PREAUTH_SOURCE = 65546; + +const int CSSM_WORDID_PREFIX = 81; + +const int CSSM_WORDID_PRIVATE_KEY = 82; + +const int CSSM_WORDID_PROCESS = 65539; + +const int CSSM_WORDID_PROMPTED_BIOMETRIC = 83; + +const int CSSM_WORDID_PROMPTED_PASSWORD = 84; + +const int CSSM_WORDID_PROPAGATE = 85; + +const int CSSM_WORDID_PROTECTED_BIOMETRIC = 86; + +const int CSSM_WORDID_PROTECTED_PASSWORD = 87; + +const int CSSM_WORDID_PROTECTED_PIN = 88; + +const int CSSM_WORDID_PUBLIC_KEY = 89; + +const int CSSM_WORDID_PUBLIC_KEY_FROM_CERT = 90; + +const int CSSM_WORDID_Q = 91; + +const int CSSM_WORDID_RANGE = 92; + +const int CSSM_WORDID_REVAL = 93; + +const int CSSM_WORDID_RIPEMAC = 94; + +const int CSSM_WORDID_RIPEMD = 95; + +const int CSSM_WORDID_RIPEMD160 = 96; + +const int CSSM_WORDID_RSA = 97; + +const int CSSM_WORDID_RSA_ISO9796 = 98; + +const int CSSM_WORDID_RSA_PKCS = 99; + +const int CSSM_WORDID_RSA_PKCS1 = 102; + +const int CSSM_WORDID_RSA_PKCS1_MD5 = 103; + +const int CSSM_WORDID_RSA_PKCS1_SHA1 = 104; + +const int CSSM_WORDID_RSA_PKCS1_SIG = 105; + +const int CSSM_WORDID_RSA_PKCS_MD5 = 100; + +const int CSSM_WORDID_RSA_PKCS_SHA1 = 101; + +const int CSSM_WORDID_RSA_RAW = 106; + +const int CSSM_WORDID_SDSIV1 = 107; + +const int CSSM_WORDID_SEQUENCE = 108; + +const int CSSM_WORDID_SET = 109; + +const int CSSM_WORDID_SEXPR = 110; + +const int CSSM_WORDID_SHA1 = 111; + +const int CSSM_WORDID_SHA1WITHDSA = 112; + +const int CSSM_WORDID_SHA1WITHECDSA = 113; + +const int CSSM_WORDID_SHA1WITHRSA = 114; + +const int CSSM_WORDID_SIGN = 115; + +const int CSSM_WORDID_SIGNATURE = 116; + +const int CSSM_WORDID_SIGNED_NONCE = 117; + +const int CSSM_WORDID_SIGNED_SECRET = 118; + +const int CSSM_WORDID_SPKI = 119; + +const int CSSM_WORDID_SUBJECT = 120; + +const int CSSM_WORDID_SUBJECT_INFO = 121; + +const int CSSM_WORDID_SYMMETRIC_KEY = 65541; + +const int CSSM_WORDID_SYSTEM = 65542; + +const int CSSM_WORDID_TAG = 122; + +const int CSSM_WORDID_THRESHOLD = 123; + +const int CSSM_WORDID_TIME = 124; + +typedef CSSM_WORDID_TYPE = sint32; + +const int CSSM_WORDID_URI = 125; + +const int CSSM_WORDID_VENDOR_END = 2147418112; + +const int CSSM_WORDID_VENDOR_START = 65536; + +const int CSSM_WORDID_VERSION = 126; + +const int CSSM_WORDID_X509V1 = 128; + +const int CSSM_WORDID_X509V2 = 129; + +const int CSSM_WORDID_X509V3 = 130; + +const int CSSM_WORDID_X509_ATTRIBUTE = 127; + +const int CSSM_WORDID_X9_ATTRIBUTE = 131; + +const int CSSM_WORDID__FIRST_UNUSED = 65550; + +const int CSSM_WORDID__NLU_ = 0; + +const int CSSM_WORDID__RESERVED_1 = 65540; + +const int CSSM_WORDID__STAR_ = 1; + +const int CSSM_WORDID__UNK_ = -1; + +typedef CSSM_WRAP_KEY = CSSM_KEY; +typedef CSSM_WRAP_KEY_PTR = ffi.Pointer; +typedef CSSM_X509EXT_BASICCONSTRAINTS = cssm_x509ext_basicConstraints; +typedef CSSM_X509EXT_BASICCONSTRAINTS_PTR = + ffi.Pointer; +typedef CSSM_X509EXT_PAIR = cssm_x509ext_pair; +typedef CSSM_X509EXT_PAIR_PTR = ffi.Pointer; +typedef CSSM_X509EXT_POLICYINFO = cssm_x509ext_policyInfo; +typedef CSSM_X509EXT_POLICYINFO_PTR = ffi.Pointer; +typedef CSSM_X509EXT_POLICYQUALIFIERINFO = cssm_x509ext_policyQualifierInfo; +typedef CSSM_X509EXT_POLICYQUALIFIERINFO_PTR = + ffi.Pointer; +typedef CSSM_X509EXT_POLICYQUALIFIERS = cssm_x509ext_policyQualifiers; +typedef CSSM_X509EXT_POLICYQUALIFIERS_PTR = + ffi.Pointer; +typedef CSSM_X509EXT_TAGandVALUE = cssm_x509_extensionTagAndValue; +typedef CSSM_X509EXT_TAGandVALUE_PTR = + ffi.Pointer; +typedef CSSM_X509_ALGORITHM_IDENTIFIER_PTR = ffi.Pointer; +typedef CSSM_X509_EXTENSION = cssm_x509_extension; +typedef CSSM_X509_EXTENSIONS = cssm_x509_extensions; +typedef CSSM_X509_EXTENSIONS_PTR = ffi.Pointer; +typedef CSSM_X509_EXTENSION_PTR = ffi.Pointer; +typedef CSSM_X509_NAME = cssm_x509_name; +typedef CSSM_X509_NAME_PTR = ffi.Pointer; +typedef CSSM_X509_OPTION = CSSM_BOOL; +typedef CSSM_X509_RDN = cssm_x509_rdn; +typedef CSSM_X509_RDN_PTR = ffi.Pointer; +typedef CSSM_X509_REVOKED_CERT_ENTRY = cssm_x509_revoked_cert_entry; +typedef CSSM_X509_REVOKED_CERT_ENTRY_PTR = + ffi.Pointer; +typedef CSSM_X509_REVOKED_CERT_LIST = cssm_x509_revoked_cert_list; +typedef CSSM_X509_REVOKED_CERT_LIST_PTR = + ffi.Pointer; +typedef CSSM_X509_SIGNATURE = cssm_x509_signature; +typedef CSSM_X509_SIGNATURE_PTR = ffi.Pointer; +typedef CSSM_X509_SIGNED_CERTIFICATE = cssm_x509_signed_certificate; +typedef CSSM_X509_SIGNED_CERTIFICATE_PTR = + ffi.Pointer; +typedef CSSM_X509_SIGNED_CRL = cssm_x509_signed_crl; +typedef CSSM_X509_SIGNED_CRL_PTR = ffi.Pointer; +typedef CSSM_X509_SUBJECT_PUBLIC_KEY_INFO_PTR = ffi.Pointer; +typedef CSSM_X509_TBS_CERTIFICATE = cssm_x509_tbs_certificate; +typedef CSSM_X509_TBS_CERTIFICATE_PTR = ffi.Pointer; +typedef CSSM_X509_TBS_CERTLIST = cssm_x509_tbs_certlist; +typedef CSSM_X509_TBS_CERTLIST_PTR = ffi.Pointer; +typedef CSSM_X509_TIME = cssm_x509_time; +typedef CSSM_X509_TIME_PTR = ffi.Pointer; +typedef CSSM_X509_TYPE_VALUE_PAIR = cssm_x509_type_value_pair; +typedef CSSM_X509_TYPE_VALUE_PAIR_PTR = ffi.Pointer; +typedef CSSM_X509_VALIDITY = x509_validity; +typedef CSSM_X509_VALIDITY_PTR = ffi.Pointer; + +const int CS_MAX_PATH = 1024; + +/// CTAdaptiveImageProviding +extension type CTAdaptiveImageProviding._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [CTAdaptiveImageProviding] that points to the same underlying object as [other]. + CTAdaptiveImageProviding.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [CTAdaptiveImageProviding] that wraps the given raw object pointer. + CTAdaptiveImageProviding.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [CTAdaptiveImageProviding]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_CTAdaptiveImageProviding, + ); + } +} + +extension CTAdaptiveImageProviding$Methods on CTAdaptiveImageProviding { + /// imageForProposedSize:scaleFactor:imageOffset:imageSize: + CGImageRef imageForProposedSize( + objc.CGSize proposedSize, { + required DartCGFloat scaleFactor, + required ffi.Pointer imageOffset, + required ffi.Pointer imageSize, + }) { + final _$$ref = object$.ref; + return _objc_msgSend_wep107( + _$$ref.pointer, + _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, + proposedSize, + scaleFactor, + imageOffset, + imageSize, + ); + } +} + +interface class CTAdaptiveImageProviding$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_CTAdaptiveImageProviding.cast()); + + /// Builds an object that implements the CTAdaptiveImageProviding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static CTAdaptiveImageProviding implement({ + required CGImageRef Function( + objc.CGSize, + DartCGFloat, + ffi.Pointer, + ffi.Pointer, + ) + imageForProposedSize_scaleFactor_imageOffset_imageSize_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'CTAdaptiveImageProviding', + ); + CTAdaptiveImageProviding$Builder + .imageForProposedSize_scaleFactor_imageOffset_imageSize_ + .implement( + builder, + imageForProposedSize_scaleFactor_imageOffset_imageSize_, + ); + builder.addProtocol($protocol); + return CTAdaptiveImageProviding.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the CTAdaptiveImageProviding protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required CGImageRef Function( + objc.CGSize, + DartCGFloat, + ffi.Pointer, + ffi.Pointer, + ) + imageForProposedSize_scaleFactor_imageOffset_imageSize_, + bool $keepIsolateAlive = true, + }) { + CTAdaptiveImageProviding$Builder + .imageForProposedSize_scaleFactor_imageOffset_imageSize_ + .implement( + builder, + imageForProposedSize_scaleFactor_imageOffset_imageSize_, + ); + builder.addProtocol($protocol); + } + + /// imageForProposedSize:scaleFactor:imageOffset:imageSize: + static final imageForProposedSize_scaleFactor_imageOffset_imageSize_ = + objc.ObjCProtocolMethod< + CGImageRef Function( + objc.CGSize, + DartCGFloat, + ffi.Pointer, + ffi.Pointer, + ) + >( + _protocol_CTAdaptiveImageProviding, + _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, + ffi.Native.addressOf< + ffi.NativeFunction< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + CGFloat, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1p89e63) + .cast(), + objc.getProtocolMethodSignature( + _protocol_CTAdaptiveImageProviding, + _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, + isRequired: true, + isInstanceMethod: true, + ), + ( + CGImageRef Function( + objc.CGSize, + DartCGFloat, + ffi.Pointer, + ffi.Pointer, + ) + func, + ) => + ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize.fromFunction( + ( + ffi.Pointer _, + objc.CGSize arg1, + DartCGFloat arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); +} + +enum CTCharacterCollection { + kCTCharacterCollectionIdentityMapping(0), + kCTCharacterCollectionAdobeCNS1(1), + kCTCharacterCollectionAdobeGB1(2), + kCTCharacterCollectionAdobeJapan1(3), + kCTCharacterCollectionAdobeJapan2(4), + kCTCharacterCollectionAdobeKorea1(5); + + static const kCTIdentityMappingCharacterCollection = + kCTCharacterCollectionIdentityMapping; + static const kCTAdobeCNS1CharacterCollection = + kCTCharacterCollectionAdobeCNS1; + static const kCTAdobeGB1CharacterCollection = kCTCharacterCollectionAdobeGB1; + static const kCTAdobeJapan1CharacterCollection = + kCTCharacterCollectionAdobeJapan1; + static const kCTAdobeJapan2CharacterCollection = + kCTCharacterCollectionAdobeJapan2; + static const kCTAdobeKorea1CharacterCollection = + kCTCharacterCollectionAdobeKorea1; + + final int value; + const CTCharacterCollection(this.value); + + static CTCharacterCollection fromValue(int value) => switch (value) { + 0 => kCTCharacterCollectionIdentityMapping, + 1 => kCTCharacterCollectionAdobeCNS1, + 2 => kCTCharacterCollectionAdobeGB1, + 3 => kCTCharacterCollectionAdobeJapan1, + 4 => kCTCharacterCollectionAdobeJapan2, + 5 => kCTCharacterCollectionAdobeKorea1, + _ => throw ArgumentError('Unknown value for CTCharacterCollection: $value'), + }; + + @override + String toString() { + if (this == kCTCharacterCollectionIdentityMapping) + return "CTCharacterCollection.kCTCharacterCollectionIdentityMapping, CTCharacterCollection.kCTIdentityMappingCharacterCollection"; + if (this == kCTCharacterCollectionAdobeCNS1) + return "CTCharacterCollection.kCTCharacterCollectionAdobeCNS1, CTCharacterCollection.kCTAdobeCNS1CharacterCollection"; + if (this == kCTCharacterCollectionAdobeGB1) + return "CTCharacterCollection.kCTCharacterCollectionAdobeGB1, CTCharacterCollection.kCTAdobeGB1CharacterCollection"; + if (this == kCTCharacterCollectionAdobeJapan1) + return "CTCharacterCollection.kCTCharacterCollectionAdobeJapan1, CTCharacterCollection.kCTAdobeJapan1CharacterCollection"; + if (this == kCTCharacterCollectionAdobeJapan2) + return "CTCharacterCollection.kCTCharacterCollectionAdobeJapan2, CTCharacterCollection.kCTAdobeJapan2CharacterCollection"; + if (this == kCTCharacterCollectionAdobeKorea1) + return "CTCharacterCollection.kCTCharacterCollectionAdobeKorea1, CTCharacterCollection.kCTAdobeKorea1CharacterCollection"; + return super.toString(); + } +} + +sealed class CTFontCollectionCopyOptions { + static const kCTFontCollectionCopyDefaultOptions = 0; + static const kCTFontCollectionCopyUnique = 1; + static const kCTFontCollectionCopyStandardSort = 2; +} + +typedef CTFontCollectionRef = ffi.Pointer<__CTFontCollection>; +typedef CTFontCollectionSortDescriptorsCallback = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CTFontCollectionSortDescriptorsCallbackFunction = + CFIndex Function( + CTFontDescriptorRef first, + CTFontDescriptorRef second, + ffi.Pointer refCon, + ); +typedef DartCTFontCollectionSortDescriptorsCallbackFunction = + CFComparisonResult Function( + CTFontDescriptorRef first, + CTFontDescriptorRef second, + ffi.Pointer refCon, + ); + +enum CTFontDescriptorMatchingState { + kCTFontDescriptorMatchingDidBegin(0), + kCTFontDescriptorMatchingDidFinish(1), + kCTFontDescriptorMatchingWillBeginQuerying(2), + kCTFontDescriptorMatchingStalled(3), + kCTFontDescriptorMatchingWillBeginDownloading(4), + kCTFontDescriptorMatchingDownloading(5), + kCTFontDescriptorMatchingDidFinishDownloading(6), + kCTFontDescriptorMatchingDidMatch(7), + kCTFontDescriptorMatchingDidFailWithError(8); + + final int value; + const CTFontDescriptorMatchingState(this.value); + + static CTFontDescriptorMatchingState fromValue(int value) => switch (value) { + 0 => kCTFontDescriptorMatchingDidBegin, + 1 => kCTFontDescriptorMatchingDidFinish, + 2 => kCTFontDescriptorMatchingWillBeginQuerying, + 3 => kCTFontDescriptorMatchingStalled, + 4 => kCTFontDescriptorMatchingWillBeginDownloading, + 5 => kCTFontDescriptorMatchingDownloading, + 6 => kCTFontDescriptorMatchingDidFinishDownloading, + 7 => kCTFontDescriptorMatchingDidMatch, + 8 => kCTFontDescriptorMatchingDidFailWithError, + _ => throw ArgumentError( + 'Unknown value for CTFontDescriptorMatchingState: $value', + ), + }; +} + +typedef CTFontDescriptorProgressHandler = ffi.Pointer; +typedef DartCTFontDescriptorProgressHandler = + objc.ObjCBlock)>; +typedef CTFontDescriptorRef = ffi.Pointer<__CTFontDescriptor>; + +enum CTFontFormat { + kCTFontFormatUnrecognized(0), + kCTFontFormatOpenTypePostScript(1), + kCTFontFormatOpenTypeTrueType(2), + kCTFontFormatTrueType(3), + kCTFontFormatPostScript(4), + kCTFontFormatBitmap(5); + + final int value; + const CTFontFormat(this.value); + + static CTFontFormat fromValue(int value) => switch (value) { + 0 => kCTFontFormatUnrecognized, + 1 => kCTFontFormatOpenTypePostScript, + 2 => kCTFontFormatOpenTypeTrueType, + 3 => kCTFontFormatTrueType, + 4 => kCTFontFormatPostScript, + 5 => kCTFontFormatBitmap, + _ => throw ArgumentError('Unknown value for CTFontFormat: $value'), + }; +} + +enum CTFontManagerAutoActivationSetting { + kCTFontManagerAutoActivationDefault(0), + kCTFontManagerAutoActivationDisabled(1), + kCTFontManagerAutoActivationEnabled(2), + kCTFontManagerAutoActivationPromptUser(3); + + final int value; + const CTFontManagerAutoActivationSetting(this.value); + + static CTFontManagerAutoActivationSetting fromValue(int value) => + switch (value) { + 0 => kCTFontManagerAutoActivationDefault, + 1 => kCTFontManagerAutoActivationDisabled, + 2 => kCTFontManagerAutoActivationEnabled, + 3 => kCTFontManagerAutoActivationPromptUser, + _ => throw ArgumentError( + 'Unknown value for CTFontManagerAutoActivationSetting: $value', + ), + }; +} + +enum CTFontManagerError { + kCTFontManagerErrorFileNotFound(101), + kCTFontManagerErrorInsufficientPermissions(102), + kCTFontManagerErrorUnrecognizedFormat(103), + kCTFontManagerErrorInvalidFontData(104), + kCTFontManagerErrorAlreadyRegistered(105), + kCTFontManagerErrorExceededResourceLimit(106), + kCTFontManagerErrorAssetNotFound(107), + kCTFontManagerErrorNotRegistered(201), + kCTFontManagerErrorInUse(202), + kCTFontManagerErrorSystemRequired(203), + kCTFontManagerErrorRegistrationFailed(301), + kCTFontManagerErrorMissingEntitlement(302), + kCTFontManagerErrorInsufficientInfo(303), + kCTFontManagerErrorCancelledByUser(304), + kCTFontManagerErrorDuplicatedName(305), + kCTFontManagerErrorInvalidFilePath(306), + kCTFontManagerErrorUnsupportedScope(307); + + final int value; + const CTFontManagerError(this.value); + + static CTFontManagerError fromValue(int value) => switch (value) { + 101 => kCTFontManagerErrorFileNotFound, + 102 => kCTFontManagerErrorInsufficientPermissions, + 103 => kCTFontManagerErrorUnrecognizedFormat, + 104 => kCTFontManagerErrorInvalidFontData, + 105 => kCTFontManagerErrorAlreadyRegistered, + 106 => kCTFontManagerErrorExceededResourceLimit, + 107 => kCTFontManagerErrorAssetNotFound, + 201 => kCTFontManagerErrorNotRegistered, + 202 => kCTFontManagerErrorInUse, + 203 => kCTFontManagerErrorSystemRequired, + 301 => kCTFontManagerErrorRegistrationFailed, + 302 => kCTFontManagerErrorMissingEntitlement, + 303 => kCTFontManagerErrorInsufficientInfo, + 304 => kCTFontManagerErrorCancelledByUser, + 305 => kCTFontManagerErrorDuplicatedName, + 306 => kCTFontManagerErrorInvalidFilePath, + 307 => kCTFontManagerErrorUnsupportedScope, + _ => throw ArgumentError('Unknown value for CTFontManagerError: $value'), + }; +} + +enum CTFontManagerScope { + kCTFontManagerScopeNone(0), + kCTFontManagerScopeProcess(1), + kCTFontManagerScopePersistent(2), + kCTFontManagerScopeSession(3); + + static const kCTFontManagerScopeUser = kCTFontManagerScopePersistent; + + final int value; + const CTFontManagerScope(this.value); + + static CTFontManagerScope fromValue(int value) => switch (value) { + 0 => kCTFontManagerScopeNone, + 1 => kCTFontManagerScopeProcess, + 2 => kCTFontManagerScopePersistent, + 3 => kCTFontManagerScopeSession, + _ => throw ArgumentError('Unknown value for CTFontManagerScope: $value'), + }; + + @override + String toString() { + if (this == kCTFontManagerScopePersistent) + return "CTFontManagerScope.kCTFontManagerScopePersistent, CTFontManagerScope.kCTFontManagerScopeUser"; + return super.toString(); + } +} + +sealed class CTFontOptions { + static const kCTFontOptionsDefault = 0; + static const kCTFontOptionsPreventAutoActivation = 1; + static const kCTFontOptionsPreventAutoDownload = 2; + static const kCTFontOptionsPreferSystemFont = 4; +} + +enum CTFontOrientation { + kCTFontOrientationDefault(0), + kCTFontOrientationHorizontal(1), + kCTFontOrientationVertical(2); + + static const kCTFontDefaultOrientation = kCTFontOrientationDefault; + static const kCTFontHorizontalOrientation = kCTFontOrientationHorizontal; + static const kCTFontVerticalOrientation = kCTFontOrientationVertical; + + final int value; + const CTFontOrientation(this.value); + + static CTFontOrientation fromValue(int value) => switch (value) { + 0 => kCTFontOrientationDefault, + 1 => kCTFontOrientationHorizontal, + 2 => kCTFontOrientationVertical, + _ => throw ArgumentError('Unknown value for CTFontOrientation: $value'), + }; + + @override + String toString() { + if (this == kCTFontOrientationDefault) + return "CTFontOrientation.kCTFontOrientationDefault, CTFontOrientation.kCTFontDefaultOrientation"; + if (this == kCTFontOrientationHorizontal) + return "CTFontOrientation.kCTFontOrientationHorizontal, CTFontOrientation.kCTFontHorizontalOrientation"; + if (this == kCTFontOrientationVertical) + return "CTFontOrientation.kCTFontOrientationVertical, CTFontOrientation.kCTFontVerticalOrientation"; + return super.toString(); + } +} + +typedef CTFontPriority = ffi.Uint32; +typedef DartCTFontPriority = int; +typedef CTFontRef = ffi.Pointer<__CTFont>; + +sealed class CTFontStylisticClass { + static const kCTFontClassUnknown = 0; + static const kCTFontClassOldStyleSerifs = 268435456; + static const kCTFontClassTransitionalSerifs = 536870912; + static const kCTFontClassModernSerifs = 805306368; + static const kCTFontClassClarendonSerifs = 1073741824; + static const kCTFontClassSlabSerifs = 1342177280; + static const kCTFontClassFreeformSerifs = 1879048192; + static const kCTFontClassSansSerif = -2147483648; + static const kCTFontClassOrnamentals = -1879048192; + static const kCTFontClassScripts = -1610612736; + static const kCTFontClassSymbolic = -1073741824; + static const kCTFontUnknownClass = 0; + static const kCTFontOldStyleSerifsClass = 268435456; + static const kCTFontTransitionalSerifsClass = 536870912; + static const kCTFontModernSerifsClass = 805306368; + static const kCTFontClarendonSerifsClass = 1073741824; + static const kCTFontSlabSerifsClass = 1342177280; + static const kCTFontFreeformSerifsClass = 1879048192; + static const kCTFontSansSerifClass = -2147483648; + static const kCTFontOrnamentalsClass = -1879048192; + static const kCTFontScriptsClass = -1610612736; + static const kCTFontSymbolicClass = -1073741824; +} + +sealed class CTFontSymbolicTraits { + static const kCTFontTraitItalic = 1; + static const kCTFontTraitBold = 2; + static const kCTFontTraitExpanded = 32; + static const kCTFontTraitCondensed = 64; + static const kCTFontTraitMonoSpace = 1024; + static const kCTFontTraitVertical = 2048; + static const kCTFontTraitUIOptimized = 4096; + static const kCTFontTraitColorGlyphs = 8192; + static const kCTFontTraitComposite = 16384; + static const kCTFontTraitClassMask = -268435456; + static const kCTFontItalicTrait = 1; + static const kCTFontBoldTrait = 2; + static const kCTFontExpandedTrait = 32; + static const kCTFontCondensedTrait = 64; + static const kCTFontMonoSpaceTrait = 1024; + static const kCTFontVerticalTrait = 2048; + static const kCTFontUIOptimizedTrait = 4096; + static const kCTFontColorGlyphsTrait = 8192; + static const kCTFontCompositeTrait = 16384; + static const kCTFontClassMaskTrait = -268435456; +} + +sealed class CTFontTableOptions { + static const kCTFontTableOptionNoOptions = 0; + static const kCTFontTableOptionExcludeSynthetic = 1; +} + +typedef CTFontTableTag = FourCharCode; + +enum CTFontUIFontType { + kCTFontUIFontNone(-1), + kCTFontUIFontUser(0), + kCTFontUIFontUserFixedPitch(1), + kCTFontUIFontSystem(2), + kCTFontUIFontEmphasizedSystem(3), + kCTFontUIFontSmallSystem(4), + kCTFontUIFontSmallEmphasizedSystem(5), + kCTFontUIFontMiniSystem(6), + kCTFontUIFontMiniEmphasizedSystem(7), + kCTFontUIFontViews(8), + kCTFontUIFontApplication(9), + kCTFontUIFontLabel(10), + kCTFontUIFontMenuTitle(11), + kCTFontUIFontMenuItem(12), + kCTFontUIFontMenuItemMark(13), + kCTFontUIFontMenuItemCmdKey(14), + kCTFontUIFontWindowTitle(15), + kCTFontUIFontPushButton(16), + kCTFontUIFontUtilityWindowTitle(17), + kCTFontUIFontAlertHeader(18), + kCTFontUIFontSystemDetail(19), + kCTFontUIFontEmphasizedSystemDetail(20), + kCTFontUIFontToolbar(21), + kCTFontUIFontSmallToolbar(22), + kCTFontUIFontMessage(23), + kCTFontUIFontPalette(24), + kCTFontUIFontToolTip(25), + kCTFontUIFontControlContent(26); + + static const kCTFontNoFontType = kCTFontUIFontNone; + static const kCTFontUserFontType = kCTFontUIFontUser; + static const kCTFontUserFixedPitchFontType = kCTFontUIFontUserFixedPitch; + static const kCTFontSystemFontType = kCTFontUIFontSystem; + static const kCTFontEmphasizedSystemFontType = kCTFontUIFontEmphasizedSystem; + static const kCTFontSmallSystemFontType = kCTFontUIFontSmallSystem; + static const kCTFontSmallEmphasizedSystemFontType = + kCTFontUIFontSmallEmphasizedSystem; + static const kCTFontMiniSystemFontType = kCTFontUIFontMiniSystem; + static const kCTFontMiniEmphasizedSystemFontType = + kCTFontUIFontMiniEmphasizedSystem; + static const kCTFontViewsFontType = kCTFontUIFontViews; + static const kCTFontApplicationFontType = kCTFontUIFontApplication; + static const kCTFontLabelFontType = kCTFontUIFontLabel; + static const kCTFontMenuTitleFontType = kCTFontUIFontMenuTitle; + static const kCTFontMenuItemFontType = kCTFontUIFontMenuItem; + static const kCTFontMenuItemMarkFontType = kCTFontUIFontMenuItemMark; + static const kCTFontMenuItemCmdKeyFontType = kCTFontUIFontMenuItemCmdKey; + static const kCTFontWindowTitleFontType = kCTFontUIFontWindowTitle; + static const kCTFontPushButtonFontType = kCTFontUIFontPushButton; + static const kCTFontUtilityWindowTitleFontType = + kCTFontUIFontUtilityWindowTitle; + static const kCTFontAlertHeaderFontType = kCTFontUIFontAlertHeader; + static const kCTFontSystemDetailFontType = kCTFontUIFontSystemDetail; + static const kCTFontEmphasizedSystemDetailFontType = + kCTFontUIFontEmphasizedSystemDetail; + static const kCTFontToolbarFontType = kCTFontUIFontToolbar; + static const kCTFontSmallToolbarFontType = kCTFontUIFontSmallToolbar; + static const kCTFontMessageFontType = kCTFontUIFontMessage; + static const kCTFontPaletteFontType = kCTFontUIFontPalette; + static const kCTFontToolTipFontType = kCTFontUIFontToolTip; + static const kCTFontControlContentFontType = kCTFontUIFontControlContent; + + final int value; + const CTFontUIFontType(this.value); + + static CTFontUIFontType fromValue(int value) => switch (value) { + -1 => kCTFontUIFontNone, + 0 => kCTFontUIFontUser, + 1 => kCTFontUIFontUserFixedPitch, + 2 => kCTFontUIFontSystem, + 3 => kCTFontUIFontEmphasizedSystem, + 4 => kCTFontUIFontSmallSystem, + 5 => kCTFontUIFontSmallEmphasizedSystem, + 6 => kCTFontUIFontMiniSystem, + 7 => kCTFontUIFontMiniEmphasizedSystem, + 8 => kCTFontUIFontViews, + 9 => kCTFontUIFontApplication, + 10 => kCTFontUIFontLabel, + 11 => kCTFontUIFontMenuTitle, + 12 => kCTFontUIFontMenuItem, + 13 => kCTFontUIFontMenuItemMark, + 14 => kCTFontUIFontMenuItemCmdKey, + 15 => kCTFontUIFontWindowTitle, + 16 => kCTFontUIFontPushButton, + 17 => kCTFontUIFontUtilityWindowTitle, + 18 => kCTFontUIFontAlertHeader, + 19 => kCTFontUIFontSystemDetail, + 20 => kCTFontUIFontEmphasizedSystemDetail, + 21 => kCTFontUIFontToolbar, + 22 => kCTFontUIFontSmallToolbar, + 23 => kCTFontUIFontMessage, + 24 => kCTFontUIFontPalette, + 25 => kCTFontUIFontToolTip, + 26 => kCTFontUIFontControlContent, + _ => throw ArgumentError('Unknown value for CTFontUIFontType: $value'), + }; + + @override + String toString() { + if (this == kCTFontUIFontNone) + return "CTFontUIFontType.kCTFontUIFontNone, CTFontUIFontType.kCTFontNoFontType"; + if (this == kCTFontUIFontUser) + return "CTFontUIFontType.kCTFontUIFontUser, CTFontUIFontType.kCTFontUserFontType"; + if (this == kCTFontUIFontUserFixedPitch) + return "CTFontUIFontType.kCTFontUIFontUserFixedPitch, CTFontUIFontType.kCTFontUserFixedPitchFontType"; + if (this == kCTFontUIFontSystem) + return "CTFontUIFontType.kCTFontUIFontSystem, CTFontUIFontType.kCTFontSystemFontType"; + if (this == kCTFontUIFontEmphasizedSystem) + return "CTFontUIFontType.kCTFontUIFontEmphasizedSystem, CTFontUIFontType.kCTFontEmphasizedSystemFontType"; + if (this == kCTFontUIFontSmallSystem) + return "CTFontUIFontType.kCTFontUIFontSmallSystem, CTFontUIFontType.kCTFontSmallSystemFontType"; + if (this == kCTFontUIFontSmallEmphasizedSystem) + return "CTFontUIFontType.kCTFontUIFontSmallEmphasizedSystem, CTFontUIFontType.kCTFontSmallEmphasizedSystemFontType"; + if (this == kCTFontUIFontMiniSystem) + return "CTFontUIFontType.kCTFontUIFontMiniSystem, CTFontUIFontType.kCTFontMiniSystemFontType"; + if (this == kCTFontUIFontMiniEmphasizedSystem) + return "CTFontUIFontType.kCTFontUIFontMiniEmphasizedSystem, CTFontUIFontType.kCTFontMiniEmphasizedSystemFontType"; + if (this == kCTFontUIFontViews) + return "CTFontUIFontType.kCTFontUIFontViews, CTFontUIFontType.kCTFontViewsFontType"; + if (this == kCTFontUIFontApplication) + return "CTFontUIFontType.kCTFontUIFontApplication, CTFontUIFontType.kCTFontApplicationFontType"; + if (this == kCTFontUIFontLabel) + return "CTFontUIFontType.kCTFontUIFontLabel, CTFontUIFontType.kCTFontLabelFontType"; + if (this == kCTFontUIFontMenuTitle) + return "CTFontUIFontType.kCTFontUIFontMenuTitle, CTFontUIFontType.kCTFontMenuTitleFontType"; + if (this == kCTFontUIFontMenuItem) + return "CTFontUIFontType.kCTFontUIFontMenuItem, CTFontUIFontType.kCTFontMenuItemFontType"; + if (this == kCTFontUIFontMenuItemMark) + return "CTFontUIFontType.kCTFontUIFontMenuItemMark, CTFontUIFontType.kCTFontMenuItemMarkFontType"; + if (this == kCTFontUIFontMenuItemCmdKey) + return "CTFontUIFontType.kCTFontUIFontMenuItemCmdKey, CTFontUIFontType.kCTFontMenuItemCmdKeyFontType"; + if (this == kCTFontUIFontWindowTitle) + return "CTFontUIFontType.kCTFontUIFontWindowTitle, CTFontUIFontType.kCTFontWindowTitleFontType"; + if (this == kCTFontUIFontPushButton) + return "CTFontUIFontType.kCTFontUIFontPushButton, CTFontUIFontType.kCTFontPushButtonFontType"; + if (this == kCTFontUIFontUtilityWindowTitle) + return "CTFontUIFontType.kCTFontUIFontUtilityWindowTitle, CTFontUIFontType.kCTFontUtilityWindowTitleFontType"; + if (this == kCTFontUIFontAlertHeader) + return "CTFontUIFontType.kCTFontUIFontAlertHeader, CTFontUIFontType.kCTFontAlertHeaderFontType"; + if (this == kCTFontUIFontSystemDetail) + return "CTFontUIFontType.kCTFontUIFontSystemDetail, CTFontUIFontType.kCTFontSystemDetailFontType"; + if (this == kCTFontUIFontEmphasizedSystemDetail) + return "CTFontUIFontType.kCTFontUIFontEmphasizedSystemDetail, CTFontUIFontType.kCTFontEmphasizedSystemDetailFontType"; + if (this == kCTFontUIFontToolbar) + return "CTFontUIFontType.kCTFontUIFontToolbar, CTFontUIFontType.kCTFontToolbarFontType"; + if (this == kCTFontUIFontSmallToolbar) + return "CTFontUIFontType.kCTFontUIFontSmallToolbar, CTFontUIFontType.kCTFontSmallToolbarFontType"; + if (this == kCTFontUIFontMessage) + return "CTFontUIFontType.kCTFontUIFontMessage, CTFontUIFontType.kCTFontMessageFontType"; + if (this == kCTFontUIFontPalette) + return "CTFontUIFontType.kCTFontUIFontPalette, CTFontUIFontType.kCTFontPaletteFontType"; + if (this == kCTFontUIFontToolTip) + return "CTFontUIFontType.kCTFontUIFontToolTip, CTFontUIFontType.kCTFontToolTipFontType"; + if (this == kCTFontUIFontControlContent) + return "CTFontUIFontType.kCTFontUIFontControlContent, CTFontUIFontType.kCTFontControlContentFontType"; + return super.toString(); + } +} + +enum CTFramePathFillRule { + kCTFramePathFillEvenOdd(0), + kCTFramePathFillWindingNumber(1); + + final int value; + const CTFramePathFillRule(this.value); + + static CTFramePathFillRule fromValue(int value) => switch (value) { + 0 => kCTFramePathFillEvenOdd, + 1 => kCTFramePathFillWindingNumber, + _ => throw ArgumentError('Unknown value for CTFramePathFillRule: $value'), + }; +} + +enum CTFrameProgression { + kCTFrameProgressionTopToBottom(0), + kCTFrameProgressionRightToLeft(1), + kCTFrameProgressionLeftToRight(2); + + final int value; + const CTFrameProgression(this.value); + + static CTFrameProgression fromValue(int value) => switch (value) { + 0 => kCTFrameProgressionTopToBottom, + 1 => kCTFrameProgressionRightToLeft, + 2 => kCTFrameProgressionLeftToRight, + _ => throw ArgumentError('Unknown value for CTFrameProgression: $value'), + }; +} + +typedef CTFrameRef = ffi.Pointer<__CTFrame>; +typedef CTFramesetterRef = ffi.Pointer<__CTFramesetter>; +typedef CTGlyphInfoRef = ffi.Pointer<__CTGlyphInfo>; + +sealed class CTLineBoundsOptions { + static const kCTLineBoundsExcludeTypographicLeading = 1; + static const kCTLineBoundsExcludeTypographicShifts = 2; + static const kCTLineBoundsUseHangingPunctuation = 4; + static const kCTLineBoundsUseGlyphPathBounds = 8; + static const kCTLineBoundsUseOpticalBounds = 16; + static const kCTLineBoundsIncludeLanguageExtents = 32; +} + +enum CTLineBreakMode { + kCTLineBreakByWordWrapping(0), + kCTLineBreakByCharWrapping(1), + kCTLineBreakByClipping(2), + kCTLineBreakByTruncatingHead(3), + kCTLineBreakByTruncatingTail(4), + kCTLineBreakByTruncatingMiddle(5); + + final int value; + const CTLineBreakMode(this.value); + + static CTLineBreakMode fromValue(int value) => switch (value) { + 0 => kCTLineBreakByWordWrapping, + 1 => kCTLineBreakByCharWrapping, + 2 => kCTLineBreakByClipping, + 3 => kCTLineBreakByTruncatingHead, + 4 => kCTLineBreakByTruncatingTail, + 5 => kCTLineBreakByTruncatingMiddle, + _ => throw ArgumentError('Unknown value for CTLineBreakMode: $value'), + }; +} + +typedef CTLineRef = ffi.Pointer<__CTLine>; + +enum CTLineTruncationType { + kCTLineTruncationStart(0), + kCTLineTruncationEnd(1), + kCTLineTruncationMiddle(2); + + final int value; + const CTLineTruncationType(this.value); + + static CTLineTruncationType fromValue(int value) => switch (value) { + 0 => kCTLineTruncationStart, + 1 => kCTLineTruncationEnd, + 2 => kCTLineTruncationMiddle, + _ => throw ArgumentError('Unknown value for CTLineTruncationType: $value'), + }; +} + +typedef CTMutableFontCollectionRef = ffi.Pointer<__CTFontCollection>; +typedef CTParagraphStyleRef = ffi.Pointer<__CTParagraphStyle>; + +final class CTParagraphStyleSetting extends ffi.Struct { + @ffi.Uint32() + external int specAsInt; + + CTParagraphStyleSpecifier get spec => + CTParagraphStyleSpecifier.fromValue(specAsInt); + set spec(CTParagraphStyleSpecifier value) => specAsInt = value.value; + + @ffi.Size() + external int valueSize; + + external ffi.Pointer value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CTParagraphStyleSpecifier spec, + required int valueSize, + required ffi.Pointer value, + }) => $allocator() + ..ref.spec = spec + ..ref.valueSize = valueSize + ..ref.value = value; +} + +enum CTParagraphStyleSpecifier { + kCTParagraphStyleSpecifierAlignment(0), + kCTParagraphStyleSpecifierFirstLineHeadIndent(1), + kCTParagraphStyleSpecifierHeadIndent(2), + kCTParagraphStyleSpecifierTailIndent(3), + kCTParagraphStyleSpecifierTabStops(4), + kCTParagraphStyleSpecifierDefaultTabInterval(5), + kCTParagraphStyleSpecifierLineBreakMode(6), + kCTParagraphStyleSpecifierLineHeightMultiple(7), + kCTParagraphStyleSpecifierMaximumLineHeight(8), + kCTParagraphStyleSpecifierMinimumLineHeight(9), + kCTParagraphStyleSpecifierLineSpacing(10), + kCTParagraphStyleSpecifierParagraphSpacing(11), + kCTParagraphStyleSpecifierParagraphSpacingBefore(12), + kCTParagraphStyleSpecifierBaseWritingDirection(13), + kCTParagraphStyleSpecifierMaximumLineSpacing(14), + kCTParagraphStyleSpecifierMinimumLineSpacing(15), + kCTParagraphStyleSpecifierLineSpacingAdjustment(16), + kCTParagraphStyleSpecifierLineBoundsOptions(17), + kCTParagraphStyleSpecifierCount(18); + + final int value; + const CTParagraphStyleSpecifier(this.value); + + static CTParagraphStyleSpecifier fromValue(int value) => switch (value) { + 0 => kCTParagraphStyleSpecifierAlignment, + 1 => kCTParagraphStyleSpecifierFirstLineHeadIndent, + 2 => kCTParagraphStyleSpecifierHeadIndent, + 3 => kCTParagraphStyleSpecifierTailIndent, + 4 => kCTParagraphStyleSpecifierTabStops, + 5 => kCTParagraphStyleSpecifierDefaultTabInterval, + 6 => kCTParagraphStyleSpecifierLineBreakMode, + 7 => kCTParagraphStyleSpecifierLineHeightMultiple, + 8 => kCTParagraphStyleSpecifierMaximumLineHeight, + 9 => kCTParagraphStyleSpecifierMinimumLineHeight, + 10 => kCTParagraphStyleSpecifierLineSpacing, + 11 => kCTParagraphStyleSpecifierParagraphSpacing, + 12 => kCTParagraphStyleSpecifierParagraphSpacingBefore, + 13 => kCTParagraphStyleSpecifierBaseWritingDirection, + 14 => kCTParagraphStyleSpecifierMaximumLineSpacing, + 15 => kCTParagraphStyleSpecifierMinimumLineSpacing, + 16 => kCTParagraphStyleSpecifierLineSpacingAdjustment, + 17 => kCTParagraphStyleSpecifierLineBoundsOptions, + 18 => kCTParagraphStyleSpecifierCount, + _ => throw ArgumentError( + 'Unknown value for CTParagraphStyleSpecifier: $value', + ), + }; +} + +enum CTRubyAlignment { + kCTRubyAlignmentInvalid(-1), + kCTRubyAlignmentAuto(0), + kCTRubyAlignmentStart(1), + kCTRubyAlignmentCenter(2), + kCTRubyAlignmentEnd(3), + kCTRubyAlignmentDistributeLetter(4), + kCTRubyAlignmentDistributeSpace(5), + kCTRubyAlignmentLineEdge(6); + + final int value; + const CTRubyAlignment(this.value); + + static CTRubyAlignment fromValue(int value) => switch (value) { + -1 => kCTRubyAlignmentInvalid, + 0 => kCTRubyAlignmentAuto, + 1 => kCTRubyAlignmentStart, + 2 => kCTRubyAlignmentCenter, + 3 => kCTRubyAlignmentEnd, + 4 => kCTRubyAlignmentDistributeLetter, + 5 => kCTRubyAlignmentDistributeSpace, + 6 => kCTRubyAlignmentLineEdge, + _ => throw ArgumentError('Unknown value for CTRubyAlignment: $value'), + }; +} + +typedef CTRubyAnnotationRef = ffi.Pointer<__CTRubyAnnotation>; + +enum CTRubyOverhang { + kCTRubyOverhangInvalid(-1), + kCTRubyOverhangAuto(0), + kCTRubyOverhangStart(1), + kCTRubyOverhangEnd(2), + kCTRubyOverhangNone(3); + + final int value; + const CTRubyOverhang(this.value); + + static CTRubyOverhang fromValue(int value) => switch (value) { + -1 => kCTRubyOverhangInvalid, + 0 => kCTRubyOverhangAuto, + 1 => kCTRubyOverhangStart, + 2 => kCTRubyOverhangEnd, + 3 => kCTRubyOverhangNone, + _ => throw ArgumentError('Unknown value for CTRubyOverhang: $value'), + }; +} + +enum CTRubyPosition { + kCTRubyPositionBefore(0), + kCTRubyPositionAfter(1), + kCTRubyPositionInterCharacter(2), + kCTRubyPositionInline(3), + kCTRubyPositionCount(4); + + final int value; + const CTRubyPosition(this.value); + + static CTRubyPosition fromValue(int value) => switch (value) { + 0 => kCTRubyPositionBefore, + 1 => kCTRubyPositionAfter, + 2 => kCTRubyPositionInterCharacter, + 3 => kCTRubyPositionInline, + 4 => kCTRubyPositionCount, + _ => throw ArgumentError('Unknown value for CTRubyPosition: $value'), + }; +} + +final class CTRunDelegateCallbacks extends ffi.Struct { + @CFIndex() + external int version; + + external CTRunDelegateDeallocateCallback dealloc; + + external CTRunDelegateGetAscentCallback getAscent; + + external CTRunDelegateGetDescentCallback getDescent; + + external CTRunDelegateGetWidthCallback getWidth; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CTRunDelegateDeallocateCallback dealloc, + required CTRunDelegateGetAscentCallback getAscent, + required CTRunDelegateGetDescentCallback getDescent, + required CTRunDelegateGetWidthCallback getWidth, + }) => $allocator() + ..ref.version = version + ..ref.dealloc = dealloc + ..ref.getAscent = getAscent + ..ref.getDescent = getDescent + ..ref.getWidth = getWidth; +} + +typedef CTRunDelegateDeallocateCallback = + ffi.Pointer>; +typedef CTRunDelegateDeallocateCallbackFunction = + ffi.Void Function(ffi.Pointer refCon); +typedef DartCTRunDelegateDeallocateCallbackFunction = + void Function(ffi.Pointer refCon); +typedef CTRunDelegateGetAscentCallback = + ffi.Pointer>; +typedef CTRunDelegateGetAscentCallbackFunction = + CGFloat Function(ffi.Pointer refCon); +typedef DartCTRunDelegateGetAscentCallbackFunction = + DartCGFloat Function(ffi.Pointer refCon); +typedef CTRunDelegateGetDescentCallback = + ffi.Pointer>; +typedef CTRunDelegateGetDescentCallbackFunction = + CGFloat Function(ffi.Pointer refCon); +typedef DartCTRunDelegateGetDescentCallbackFunction = + DartCGFloat Function(ffi.Pointer refCon); +typedef CTRunDelegateGetWidthCallback = + ffi.Pointer>; +typedef CTRunDelegateGetWidthCallbackFunction = + CGFloat Function(ffi.Pointer refCon); +typedef DartCTRunDelegateGetWidthCallbackFunction = + DartCGFloat Function(ffi.Pointer refCon); +typedef CTRunDelegateRef = ffi.Pointer<__CTRunDelegate>; +typedef CTRunRef = ffi.Pointer<__CTRun>; + +sealed class CTRunStatus { + static const kCTRunStatusNoStatus = 0; + static const kCTRunStatusRightToLeft = 1; + static const kCTRunStatusNonMonotonic = 2; + static const kCTRunStatusHasNonIdentityMatrix = 4; +} + +enum CTTextAlignment { + kCTTextAlignmentLeft(0), + kCTTextAlignmentRight(1), + kCTTextAlignmentCenter(2), + kCTTextAlignmentJustified(3), + kCTTextAlignmentNatural(4); + + static const kCTLeftTextAlignment = kCTTextAlignmentLeft; + static const kCTRightTextAlignment = kCTTextAlignmentRight; + static const kCTCenterTextAlignment = kCTTextAlignmentCenter; + static const kCTJustifiedTextAlignment = kCTTextAlignmentJustified; + static const kCTNaturalTextAlignment = kCTTextAlignmentNatural; + + final int value; + const CTTextAlignment(this.value); + + static CTTextAlignment fromValue(int value) => switch (value) { + 0 => kCTTextAlignmentLeft, + 1 => kCTTextAlignmentRight, + 2 => kCTTextAlignmentCenter, + 3 => kCTTextAlignmentJustified, + 4 => kCTTextAlignmentNatural, + _ => throw ArgumentError('Unknown value for CTTextAlignment: $value'), + }; + + @override + String toString() { + if (this == kCTTextAlignmentLeft) + return "CTTextAlignment.kCTTextAlignmentLeft, CTTextAlignment.kCTLeftTextAlignment"; + if (this == kCTTextAlignmentRight) + return "CTTextAlignment.kCTTextAlignmentRight, CTTextAlignment.kCTRightTextAlignment"; + if (this == kCTTextAlignmentCenter) + return "CTTextAlignment.kCTTextAlignmentCenter, CTTextAlignment.kCTCenterTextAlignment"; + if (this == kCTTextAlignmentJustified) + return "CTTextAlignment.kCTTextAlignmentJustified, CTTextAlignment.kCTJustifiedTextAlignment"; + if (this == kCTTextAlignmentNatural) + return "CTTextAlignment.kCTTextAlignmentNatural, CTTextAlignment.kCTNaturalTextAlignment"; + return super.toString(); + } +} + +typedef CTTextTabRef = ffi.Pointer<__CTTextTab>; +typedef CTTypesetterRef = ffi.Pointer<__CTTypesetter>; + +sealed class CTUnderlineStyle { + static const kCTUnderlineStyleNone = 0; + static const kCTUnderlineStyleSingle = 1; + static const kCTUnderlineStyleThick = 2; + static const kCTUnderlineStyleDouble = 9; +} + +sealed class CTUnderlineStyleModifiers { + static const kCTUnderlinePatternSolid = 0; + static const kCTUnderlinePatternDot = 256; + static const kCTUnderlinePatternDash = 512; + static const kCTUnderlinePatternDashDot = 768; + static const kCTUnderlinePatternDashDotDot = 1024; +} + +enum CTWritingDirection { + kCTWritingDirectionNatural(-1), + kCTWritingDirectionLeftToRight(0), + kCTWritingDirectionRightToLeft(1); + + final int value; + const CTWritingDirection(this.value); + + static CTWritingDirection fromValue(int value) => switch (value) { + -1 => kCTWritingDirectionNatural, + 0 => kCTWritingDirectionLeftToRight, + 1 => kCTWritingDirectionRightToLeft, + _ => throw ArgumentError('Unknown value for CTWritingDirection: $value'), + }; +} + +typedef CTabHandle = ffi.Pointer; +typedef CTabPtr = ffi.Pointer; + +enum CVAttachmentMode { + kCVAttachmentMode_ShouldNotPropagate(0), + kCVAttachmentMode_ShouldPropagate(1); + + final int value; + const CVAttachmentMode(this.value); + + static CVAttachmentMode fromValue(int value) => switch (value) { + 0 => kCVAttachmentMode_ShouldNotPropagate, + 1 => kCVAttachmentMode_ShouldPropagate, + _ => throw ArgumentError('Unknown value for CVAttachmentMode: $value'), + }; +} + +typedef CVBufferRef = ffi.Pointer<__CVBuffer>; +typedef CVDisplayLinkOutputCallback = + ffi.Pointer>; +typedef CVDisplayLinkOutputCallbackFunction = + CVReturn Function( + CVDisplayLinkRef displayLink, + ffi.Pointer inNow, + ffi.Pointer inOutputTime, + CVOptionFlags flagsIn, + ffi.Pointer flagsOut, + ffi.Pointer displayLinkContext, + ); +typedef DartCVDisplayLinkOutputCallbackFunction = + DartCVReturn Function( + CVDisplayLinkRef displayLink, + ffi.Pointer inNow, + ffi.Pointer inOutputTime, + DartCVOptionFlags flagsIn, + ffi.Pointer flagsOut, + ffi.Pointer displayLinkContext, + ); +typedef CVDisplayLinkOutputHandler = ffi.Pointer; +typedef DartCVDisplayLinkOutputHandler = + objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + >; +typedef CVDisplayLinkRef = ffi.Pointer<__CVDisplayLink>; +typedef CVFillExtendedPixelsCallBack = + ffi.Pointer>; + +final class CVFillExtendedPixelsCallBackData extends ffi.Struct { + @CFIndex() + external int version; + + external CVFillExtendedPixelsCallBack fillCallBack; + + external ffi.Pointer refCon; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CVFillExtendedPixelsCallBack fillCallBack, + required ffi.Pointer refCon, + }) => $allocator() + ..ref.version = version + ..ref.fillCallBack = fillCallBack + ..ref.refCon = refCon; +} + +typedef CVFillExtendedPixelsCallBackFunction = + Boolean Function( + CVPixelBufferRef pixelBuffer, + ffi.Pointer refCon, + ); +typedef DartCVFillExtendedPixelsCallBackFunction = + DartBoolean Function( + CVPixelBufferRef pixelBuffer, + ffi.Pointer refCon, + ); +typedef CVImageBufferRef = CVBufferRef; +typedef CVMetalBufferCacheRef = ffi.Pointer<__CVMetalBufferCache>; +typedef CVMetalBufferRef = CVBufferRef; +typedef CVMetalTextureCacheRef = ffi.Pointer<__CVMetalTextureCache>; +typedef CVMetalTextureRef = CVImageBufferRef; +typedef CVOpenGLBufferPoolRef = ffi.Pointer<__CVOpenGLBufferPool>; +typedef CVOpenGLBufferRef = CVImageBufferRef; +typedef CVOpenGLTextureCacheRef = ffi.Pointer<__CVOpenGLTextureCache>; +typedef CVOpenGLTextureRef = CVImageBufferRef; +typedef CVOptionFlags = ffi.Uint64; +typedef DartCVOptionFlags = int; + +sealed class CVPixelBufferLockFlags { + static const kCVPixelBufferLock_ReadOnly = 1; +} + +sealed class CVPixelBufferPoolFlushFlags { + static const kCVPixelBufferPoolFlushExcessBuffers = 1; +} + +typedef CVPixelBufferPoolRef = ffi.Pointer<__CVPixelBufferPool>; +typedef CVPixelBufferRef = CVImageBufferRef; +typedef CVPixelBufferReleaseBytesCallback = + ffi.Pointer>; +typedef CVPixelBufferReleaseBytesCallbackFunction = + ffi.Void Function( + ffi.Pointer releaseRefCon, + ffi.Pointer baseAddress, + ); +typedef DartCVPixelBufferReleaseBytesCallbackFunction = + void Function( + ffi.Pointer releaseRefCon, + ffi.Pointer baseAddress, + ); +typedef CVPixelBufferReleasePlanarBytesCallback = + ffi.Pointer< + ffi.NativeFunction + >; +typedef CVPixelBufferReleasePlanarBytesCallbackFunction = + ffi.Void Function( + ffi.Pointer releaseRefCon, + ffi.Pointer dataPtr, + ffi.Size dataSize, + ffi.Size numberOfPlanes, + ffi.Pointer> planeAddresses, + ); +typedef DartCVPixelBufferReleasePlanarBytesCallbackFunction = + void Function( + ffi.Pointer releaseRefCon, + ffi.Pointer dataPtr, + int dataSize, + int numberOfPlanes, + ffi.Pointer> planeAddresses, + ); + +final class CVPlanarComponentInfo extends ffi.Struct { + @ffi.Int32() + external int offset; + + @ffi.Uint32() + external int rowBytes; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int rowBytes, + }) => $allocator() + ..ref.offset = offset + ..ref.rowBytes = rowBytes; +} + +final class CVPlanarPixelBufferInfo extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array componentInfo; +} + +final class CVPlanarPixelBufferInfo_YCbCrBiPlanar extends ffi.Struct { + external CVPlanarComponentInfo componentInfoY; + + external CVPlanarComponentInfo componentInfoCbCr; +} + +final class CVPlanarPixelBufferInfo_YCbCrPlanar extends ffi.Struct { + external CVPlanarComponentInfo componentInfoY; + + external CVPlanarComponentInfo componentInfoCb; + + external CVPlanarComponentInfo componentInfoCr; +} + +typedef CVReturn = ffi.Int32; +typedef DartCVReturn = int; + +final class CVSMPTETime extends ffi.Struct { + @SInt16() + external int subframes; + + @SInt16() + external int subframeDivisor; + + @UInt32() + external int counter; + + @UInt32() + external int type; + + @UInt32() + external int flags; + + @SInt16() + external int hours; + + @SInt16() + external int minutes; + + @SInt16() + external int seconds; + + @SInt16() + external int frames; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int subframes, + required int subframeDivisor, + required int counter, + required int type, + required int flags, + required int hours, + required int minutes, + required int seconds, + required int frames, + }) => $allocator() + ..ref.subframes = subframes + ..ref.subframeDivisor = subframeDivisor + ..ref.counter = counter + ..ref.type = type + ..ref.flags = flags + ..ref.hours = hours + ..ref.minutes = minutes + ..ref.seconds = seconds + ..ref.frames = frames; +} + +sealed class CVSMPTETimeFlags { + static const kCVSMPTETimeValid = 1; + static const kCVSMPTETimeRunning = 2; +} + +enum CVSMPTETimeType { + kCVSMPTETimeType24(0), + kCVSMPTETimeType25(1), + kCVSMPTETimeType30Drop(2), + kCVSMPTETimeType30(3), + kCVSMPTETimeType2997(4), + kCVSMPTETimeType2997Drop(5), + kCVSMPTETimeType60(6), + kCVSMPTETimeType5994(7); + + final int value; + const CVSMPTETimeType(this.value); + + static CVSMPTETimeType fromValue(int value) => switch (value) { + 0 => kCVSMPTETimeType24, + 1 => kCVSMPTETimeType25, + 2 => kCVSMPTETimeType30Drop, + 3 => kCVSMPTETimeType30, + 4 => kCVSMPTETimeType2997, + 5 => kCVSMPTETimeType2997Drop, + 6 => kCVSMPTETimeType60, + 7 => kCVSMPTETimeType5994, + _ => throw ArgumentError('Unknown value for CVSMPTETimeType: $value'), + }; +} + +final class CVTime extends ffi.Struct { + @ffi.Int64() + external int timeValue; + + @ffi.Int32() + external int timeScale; + + @ffi.Int32() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int timeValue, + required int timeScale, + required int flags, + }) => $allocator() + ..ref.timeValue = timeValue + ..ref.timeScale = timeScale + ..ref.flags = flags; +} + +sealed class CVTimeFlags { + static const kCVTimeIsIndefinite = 1; +} + +final class CVTimeStamp extends ffi.Struct { + @ffi.Uint32() + external int version; + + @ffi.Int32() + external int videoTimeScale; + + @ffi.Int64() + external int videoTime; + + @ffi.Uint64() + external int hostTime; + + @ffi.Double() + external double rateScalar; + + @ffi.Int64() + external int videoRefreshPeriod; + + external CVSMPTETime smpteTime; + + @ffi.Uint64() + external int flags; + + @ffi.Uint64() + external int reserved; +} + +sealed class CVTimeStampFlags { + static const kCVTimeStampVideoTimeValid = 1; + static const kCVTimeStampHostTimeValid = 2; + static const kCVTimeStampSMPTETimeValid = 4; + static const kCVTimeStampVideoRefreshPeriodValid = 8; + static const kCVTimeStampRateScalarValid = 16; + static const kCVTimeStampTopField = 65536; + static const kCVTimeStampBottomField = 131072; + static const kCVTimeStampVideoHostTimeValid = 3; + static const kCVTimeStampIsInterlaced = 196608; +} + +typedef CallingConventionType = ffi.UnsignedShort; +typedef DartCallingConventionType = int; + +const int CantDecompress = -186; + +@ffi.Packed(2) +final class CatPositionRec extends ffi.Struct { + @SInt32() + external int initialize; + + @ffi.Array.multi([6]) + external ffi.Array priv; +} + +typedef CharParameter = ffi.Short; +typedef DartCharParameter = int; + +@ffi.Packed(2) +final class ChunkHeader extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ckID, + required int ckSize, + }) => $allocator() + ..ref.ckID = ckID + ..ref.ckSize = ckSize; +} + +typedef CollatorRef = ffi.Pointer; +typedef Collection = ffi.Pointer; +typedef CollectionExceptionProcPtr = + ffi.Pointer>; +typedef CollectionExceptionProcPtrFunction = + OSErr Function(Collection c, OSErr status); +typedef DartCollectionExceptionProcPtrFunction = + DartSInt16 Function(Collection c, DartSInt16 status); +typedef CollectionExceptionUPP = CollectionExceptionProcPtr; +typedef CollectionFlattenProcPtr = + ffi.Pointer>; +typedef CollectionFlattenProcPtrFunction = + OSErr Function( + SInt32 size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef DartCollectionFlattenProcPtrFunction = + DartSInt16 Function( + DartSInt32 size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef CollectionFlattenUPP = CollectionFlattenProcPtr; +typedef CollectionTag = FourCharCode; +typedef ColorComplementProcPtr = + ffi.Pointer>; +typedef ColorComplementProcPtrFunction = + Boolean Function(ffi.Pointer rgb); +typedef DartColorComplementProcPtrFunction = + DartBoolean Function(ffi.Pointer rgb); +typedef ColorComplementUPP = ColorComplementProcPtr; +typedef ColorSearchProcPtr = + ffi.Pointer>; +typedef ColorSearchProcPtrFunction = + Boolean Function(ffi.Pointer rgb, ffi.Pointer position); +typedef DartColorSearchProcPtrFunction = + DartBoolean Function( + ffi.Pointer rgb, + ffi.Pointer position, + ); +typedef ColorSearchUPP = ColorSearchProcPtr; + +final class ColorSpec extends ffi.Struct { + @ffi.Short() + external int value; + + external RGBColor rgb; +} + +typedef ColorSpecPtr = ffi.Pointer; + +enum ColorSyncAlphaInfo { + kColorSyncAlphaNone(0), + kColorSyncAlphaPremultipliedLast(1), + kColorSyncAlphaPremultipliedFirst(2), + kColorSyncAlphaLast(3), + kColorSyncAlphaFirst(4), + kColorSyncAlphaNoneSkipLast(5), + kColorSyncAlphaNoneSkipFirst(6); + + final int value; + const ColorSyncAlphaInfo(this.value); + + static ColorSyncAlphaInfo fromValue(int value) => switch (value) { + 0 => kColorSyncAlphaNone, + 1 => kColorSyncAlphaPremultipliedLast, + 2 => kColorSyncAlphaPremultipliedFirst, + 3 => kColorSyncAlphaLast, + 4 => kColorSyncAlphaFirst, + 5 => kColorSyncAlphaNoneSkipLast, + 6 => kColorSyncAlphaNoneSkipFirst, + _ => throw ArgumentError('Unknown value for ColorSyncAlphaInfo: $value'), + }; +} + +final class ColorSyncCMM extends ffi.Opaque {} + +typedef ColorSyncCMMIterateCallback = + ffi.Pointer>; +typedef ColorSyncCMMIterateCallbackFunction = + ffi.Bool Function(ColorSyncCMMRef cmm, ffi.Pointer userInfo); +typedef DartColorSyncCMMIterateCallbackFunction = + bool Function(ColorSyncCMMRef cmm, ffi.Pointer userInfo); +typedef ColorSyncCMMRef = ffi.Pointer; + +enum ColorSyncDataDepth { + kColorSync1BitGamut(1), + kColorSync8BitInteger(2), + kColorSync16BitInteger(3), + kColorSync16BitFloat(4), + kColorSync32BitInteger(5), + kColorSync32BitNamedColorIndex(6), + kColorSync32BitFloat(7), + kColorSync10BitInteger(8); + + final int value; + const ColorSyncDataDepth(this.value); + + static ColorSyncDataDepth fromValue(int value) => switch (value) { + 1 => kColorSync1BitGamut, + 2 => kColorSync8BitInteger, + 3 => kColorSync16BitInteger, + 4 => kColorSync16BitFloat, + 5 => kColorSync32BitInteger, + 6 => kColorSync32BitNamedColorIndex, + 7 => kColorSync32BitFloat, + 8 => kColorSync10BitInteger, + _ => throw ArgumentError('Unknown value for ColorSyncDataDepth: $value'), + }; +} + +typedef ColorSyncDataLayout = ffi.Uint32; +typedef DartColorSyncDataLayout = int; +typedef ColorSyncDeviceProfileIterateCallback = + ffi.Pointer< + ffi.NativeFunction + >; +typedef ColorSyncDeviceProfileIterateCallbackFunction = + ffi.Bool Function( + CFDictionaryRef colorSyncDeviceProfileInfo, + ffi.Pointer userInfo, + ); +typedef DartColorSyncDeviceProfileIterateCallbackFunction = + bool Function( + CFDictionaryRef colorSyncDeviceProfileInfo, + ffi.Pointer userInfo, + ); + +final class ColorSyncMD5 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array digest; +} + +typedef ColorSyncMutableProfileRef = ffi.Pointer; + +final class ColorSyncProfile extends ffi.Opaque {} + +typedef ColorSyncProfileIterateCallback = + ffi.Pointer>; +typedef ColorSyncProfileIterateCallbackFunction = + ffi.Bool Function( + CFDictionaryRef profileInfo, + ffi.Pointer userInfo, + ); +typedef DartColorSyncProfileIterateCallbackFunction = + bool Function(CFDictionaryRef profileInfo, ffi.Pointer userInfo); +typedef ColorSyncProfileRef = ffi.Pointer; + +final class ColorSyncTransform extends ffi.Opaque {} + +typedef ColorSyncTransformRef = ffi.Pointer; + +@ffi.Packed(2) +final class ColorTable extends ffi.Struct { + @SInt32() + external int ctSeed; + + @ffi.Short() + external int ctFlags; + + @ffi.Short() + external int ctSize; + + @ffi.Array.multi([1]) + external ffi.Array ctTable; +} + +@ffi.Packed(2) +final class Comment extends ffi.Struct { + @UInt32() + external int timeStamp; + + @MarkerIdType() + external int marker; + + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array text; +} + +const int CommentID = 1129270612; + +@ffi.Packed(2) +final class CommentsChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt16() + external int numComments; + + @ffi.Array.multi([1]) + external ffi.Array comments; +} + +typedef CommentsChunkPtr = ffi.Pointer; + +@ffi.Packed(2) +final class CommonChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @SInt16() + external int numChannels; + + @UInt32() + external int numSampleFrames; + + @SInt16() + external int sampleSize; + + external extended80 sampleRate; +} + +typedef CommonChunkPtr = ffi.Pointer; + +const int CommonID = 1129270605; + +typedef CompTimeValue = wide; +typedef Component = ffi.Pointer; + +final class ComponentAliasResource extends ffi.Struct { + external ComponentResource cr; + + external ComponentDescription aliasCD; +} + +@ffi.Packed(2) +final class ComponentDescription extends ffi.Struct { + @OSType() + external int componentType; + + @OSType() + external int componentSubType; + + @OSType() + external int componentManufacturer; + + @UInt32() + external int componentFlags; + + @UInt32() + external int componentFlagsMask; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int componentType, + required int componentSubType, + required int componentManufacturer, + required int componentFlags, + required int componentFlagsMask, + }) => $allocator() + ..ref.componentType = componentType + ..ref.componentSubType = componentSubType + ..ref.componentManufacturer = componentManufacturer + ..ref.componentFlags = componentFlags + ..ref.componentFlagsMask = componentFlagsMask; +} + +typedef ComponentFunctionUPP = UniversalProcPtr; +typedef ComponentInstance = ffi.Pointer; + +@ffi.Packed(2) +final class ComponentInstanceRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +@ffi.Packed(2) +final class ComponentMPWorkFunctionHeaderRecord extends ffi.Struct { + @UInt32() + external int headerSize; + + @UInt32() + external int recordSize; + + @UInt32() + external int workFlags; + + @UInt16() + external int processorCount; + + @UInt8() + external int unused; + + @UInt8() + external int isRunning; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int headerSize, + required int recordSize, + required int workFlags, + required int processorCount, + required int unused, + required int isRunning, + }) => $allocator() + ..ref.headerSize = headerSize + ..ref.recordSize = recordSize + ..ref.workFlags = workFlags + ..ref.processorCount = processorCount + ..ref.unused = unused + ..ref.isRunning = isRunning; +} + +typedef ComponentMPWorkFunctionHeaderRecordPtr = + ffi.Pointer; +typedef ComponentMPWorkFunctionProcPtr = + ffi.Pointer>; +typedef ComponentMPWorkFunctionProcPtrFunction = + ComponentResult Function( + ffi.Pointer globalRefCon, + ComponentMPWorkFunctionHeaderRecordPtr header, + ); +typedef DartComponentMPWorkFunctionProcPtrFunction = + DartSInt32 Function( + ffi.Pointer globalRefCon, + ComponentMPWorkFunctionHeaderRecordPtr header, + ); +typedef ComponentMPWorkFunctionUPP = ComponentMPWorkFunctionProcPtr; + +@ffi.Packed(2) +final class ComponentParameters extends ffi.Struct { + @UInt8() + external int flags; + + @UInt8() + external int paramSize; + + @SInt16() + external int what; + + @UInt32() + external int padding; + + @ffi.Array.multi([1]) + external ffi.Array params; +} + +@ffi.Packed(2) +final class ComponentPlatformInfo extends ffi.Struct { + @SInt32() + external int componentFlags; + + external ResourceSpec component; + + @SInt16() + external int platformType; +} + +@ffi.Packed(2) +final class ComponentPlatformInfoArray extends ffi.Struct { + @SInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array platformArray; +} + +@ffi.Packed(2) +final class ComponentRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +final class ComponentResource extends ffi.Struct { + external ComponentDescription cd; + + external ResourceSpec component; + + external ResourceSpec componentName; + + external ResourceSpec componentInfo; + + external ResourceSpec componentIcon; +} + +@ffi.Packed(2) +final class ComponentResourceExtension extends ffi.Struct { + @SInt32() + external int componentVersion; + + @SInt32() + external int componentRegisterFlags; + + @SInt16() + external int componentIconFamily; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int componentVersion, + required int componentRegisterFlags, + required int componentIconFamily, + }) => $allocator() + ..ref.componentVersion = componentVersion + ..ref.componentRegisterFlags = componentRegisterFlags + ..ref.componentIconFamily = componentIconFamily; +} + +typedef ComponentResourceHandle = ffi.Pointer; +typedef ComponentResourcePtr = ffi.Pointer; +typedef ComponentResult = SInt32; +typedef ComponentRoutineProcPtr = + ffi.Pointer>; +typedef ComponentRoutineProcPtrFunction = + ComponentResult Function( + ffi.Pointer cp, + Handle componentStorage, + ); +typedef DartComponentRoutineProcPtrFunction = + DartSInt32 Function( + ffi.Pointer cp, + Handle componentStorage, + ); +typedef ComponentRoutineUPP = ComponentRoutineProcPtr; +typedef ConstATSUAttributeValuePtr = ffi.Pointer; +typedef ConstFSEventStreamRef = ffi.Pointer<__FSEventStream>; +typedef ConstFSSpecPtr = ffi.Pointer; +typedef ConstHFSUniStr255Param = ffi.Pointer; +typedef ConstLogicalAddress = ffi.Pointer; +typedef ConstScriptCodeRunPtr = ffi.Pointer; +typedef ConstStr15Param = ffi.Pointer; +typedef ConstStr255Param = ffi.Pointer; +typedef ConstStr27Param = ffi.Pointer; +typedef ConstStr31Param = ffi.Pointer; +typedef ConstStr32Param = ffi.Pointer; +typedef ConstStr63Param = ffi.Pointer; +typedef ConstStrFileNameParam = ConstStr63Param; +typedef ConstStringPtr = ffi.Pointer; +typedef ConstTextEncodingRunPtr = ffi.Pointer; +typedef ConstTextPtr = ffi.Pointer; +typedef ConstTextToUnicodeInfo = TextToUnicodeInfo; +typedef ConstUniCharArrayPtr = ffi.Pointer; +typedef ConstUnicodeMappingPtr = ffi.Pointer; +typedef ConstUnicodeToTextInfo = UnicodeToTextInfo; + +@ffi.Packed(2) +final class ContainerChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt32() + external int formType; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ckID, + required int ckSize, + required int formType, + }) => $allocator() + ..ref.ckID = ckID + ..ref.ckSize = ckSize + ..ref.formType = formType; +} + +const int CopyrightID = 677587232; + +typedef CoreEndianFlipProc = + ffi.Pointer>; +typedef CoreEndianFlipProcFunction = + OSStatus Function( + OSType dataDomain, + OSType dataType, + SInt16 id, + ffi.Pointer dataPtr, + ByteCount dataSize, + Boolean currentlyNative, + ffi.Pointer refcon, + ); +typedef DartCoreEndianFlipProcFunction = + DartSInt32 Function( + DartUInt32 dataDomain, + DartUInt32 dataType, + DartSInt16 id, + ffi.Pointer dataPtr, + DartByteCount dataSize, + DartBoolean currentlyNative, + ffi.Pointer refcon, + ); + +@ffi.Packed(2) +final class CustomBadgeResource extends ffi.Struct { + @SInt16() + external int version; + + @SInt16() + external int customBadgeResourceID; + + @OSType() + external int customBadgeType; + + @OSType() + external int customBadgeCreator; + + @OSType() + external int windowBadgeType; + + @OSType() + external int windowBadgeCreator; + + @OSType() + external int overrideType; + + @OSType() + external int overrideCreator; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int customBadgeResourceID, + required int customBadgeType, + required int customBadgeCreator, + required int windowBadgeType, + required int windowBadgeCreator, + required int overrideType, + required int overrideCreator, + }) => $allocator() + ..ref.version = version + ..ref.customBadgeResourceID = customBadgeResourceID + ..ref.customBadgeType = customBadgeType + ..ref.customBadgeCreator = customBadgeCreator + ..ref.windowBadgeType = windowBadgeType + ..ref.windowBadgeCreator = windowBadgeCreator + ..ref.overrideType = overrideType + ..ref.overrideCreator = overrideCreator; +} + +typedef CustomBadgeResourceHandle = ffi.Pointer; +typedef CustomBadgeResourcePtr = ffi.Pointer; +typedef DAApprovalSessionRef = ffi.Pointer<__DASession>; +typedef DADiskRef = ffi.Pointer<__DADisk>; +typedef DASessionRef = ffi.Pointer<__DASession>; +typedef DCSDictionaryRef = ffi.Pointer<__DCSDictionary>; +typedef DERByte = ffi.Uint8; +typedef DartDERByte = int; +typedef DERInt = ffi.Uint32; +typedef DartDERInt = int; + +final class DERItem extends ffi.Struct { + external ffi.Pointer data; + + @DERSize() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer data, + required int length, + }) => $allocator() + ..ref.data = data + ..ref.length = length; +} + +typedef DERLong = ffi.Uint64; +typedef DartDERLong = int; +typedef DERShort = ffi.Uint16; +typedef DartDERShort = int; +typedef DERSignedInt = ffi.Int32; +typedef DartDERSignedInt = int; +typedef DERSignedLong = ffi.Int64; +typedef DartDERSignedLong = int; +typedef DERSize = ffi.Size; +typedef DartDERSize = int; +typedef DERTag = DERLong; + +const int DISPATCH_WALLTIME_NOW = -2; + +final class DInfo extends ffi.Struct { + external Rect frRect; + + @UInt16() + external int frFlags; + + external Point frLocation; + + @SInt16() + external int frView; +} + +@ffi.Packed(2) +final class DXInfo extends ffi.Struct { + external Point frScroll; + + @SInt32() + external int frOpenChain; + + @SInt8() + external int frScript; + + @SInt8() + external int frXFlags; + + @SInt16() + external int frComment; + + @SInt32() + external int frPutAway; +} + +typedef DateCachePtr = ffi.Pointer; + +final class DateCacheRecord extends ffi.Struct { + @ffi.Array.multi([256]) + external ffi.Array hidden; +} + +typedef DateDelta = SInt8; +typedef DateForm = SInt8; +typedef DateOrders = SInt8; + +final class DateTimeRec extends ffi.Struct { + @ffi.Short() + external int year; + + @ffi.Short() + external int month; + + @ffi.Short() + external int day; + + @ffi.Short() + external int hour; + + @ffi.Short() + external int minute; + + @ffi.Short() + external int second; + + @ffi.Short() + external int dayOfWeek; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int year, + required int month, + required int day, + required int hour, + required int minute, + required int second, + required int dayOfWeek, + }) => $allocator() + ..ref.year = year + ..ref.month = month + ..ref.day = day + ..ref.hour = hour + ..ref.minute = minute + ..ref.second = second + ..ref.dayOfWeek = dayOfWeek; +} + +typedef DebugAssertOutputHandlerProcPtr = + ffi.Pointer>; +typedef DebugAssertOutputHandlerProcPtrFunction = + ffi.Void Function( + OSType componentSignature, + UInt32 options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + ffi.Long lineNumber, + ffi.Pointer value, + ConstStr255Param outputMsg, + ); +typedef DartDebugAssertOutputHandlerProcPtrFunction = + void Function( + DartUInt32 componentSignature, + DartUInt32 options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + int lineNumber, + ffi.Pointer value, + ConstStr255Param outputMsg, + ); +typedef DebugAssertOutputHandlerUPP = DebugAssertOutputHandlerProcPtr; +typedef DebugComponentCallbackProcPtr = + ffi.Pointer>; +typedef DebugComponentCallbackProcPtrFunction = + ffi.Void Function( + SInt32 optionSelectorNum, + UInt32 command, + ffi.Pointer optionSetting, + ); +typedef DartDebugComponentCallbackProcPtrFunction = + void Function( + DartSInt32 optionSelectorNum, + DartUInt32 command, + ffi.Pointer optionSetting, + ); +typedef DebugComponentCallbackUPP = DebugComponentCallbackProcPtr; +typedef DebuggerDisposeThreadProcPtr = + ffi.Pointer>; +typedef DebuggerDisposeThreadProcPtrFunction = + ffi.Void Function(ThreadID threadDeleted); +typedef DartDebuggerDisposeThreadProcPtrFunction = + void Function(DartThreadID threadDeleted); +typedef DebuggerDisposeThreadTPP = DebuggerDisposeThreadUPP; +typedef DebuggerDisposeThreadUPP = DebuggerDisposeThreadProcPtr; +typedef DebuggerNewThreadProcPtr = + ffi.Pointer>; +typedef DebuggerNewThreadProcPtrFunction = + ffi.Void Function(ThreadID threadCreated); +typedef DartDebuggerNewThreadProcPtrFunction = + void Function(DartThreadID threadCreated); +typedef DebuggerNewThreadTPP = DebuggerNewThreadUPP; +typedef DebuggerNewThreadUPP = DebuggerNewThreadProcPtr; +typedef DebuggerThreadSchedulerProcPtr = + ffi.Pointer>; +typedef DebuggerThreadSchedulerProcPtrFunction = + ThreadID Function(SchedulerInfoRecPtr schedulerInfo); +typedef DartDebuggerThreadSchedulerProcPtrFunction = + DartThreadID Function(SchedulerInfoRecPtr schedulerInfo); +typedef DebuggerThreadSchedulerTPP = DebuggerThreadSchedulerUPP; +typedef DebuggerThreadSchedulerUPP = DebuggerThreadSchedulerProcPtr; + +final class DeferredTask extends ffi.Opaque {} + +typedef DeferredTaskProcPtr = + ffi.Pointer>; +typedef DeferredTaskProcPtrFunction = ffi.Void Function(ffi.Long dtParam); +typedef DartDeferredTaskProcPtrFunction = void Function(int dtParam); +typedef DeferredTaskPtr = ffi.Pointer; +typedef DeferredTaskUPP = DeferredTaskProcPtr; + +final class DelimiterInfo extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array startDelimiter; + + @ffi.Array.multi([2]) + external ffi.Array endDelimiter; +} + +typedef DescType = ResType; +typedef DialogPtr = ffi.Pointer; +typedef DragConstraint = UInt16; +typedef DragGrayRgnProcPtr = + ffi.Pointer>; +typedef DragGrayRgnProcPtrFunction = ffi.Void Function(); +typedef DartDragGrayRgnProcPtrFunction = void Function(); +typedef DragGrayRgnUPP = DragGrayRgnProcPtr; +typedef Duration = SInt32; + +const int EQUALTO = 2; + +enum EvCmd { + EVNOP(0), + EVHIDE(1), + EVSHOW(2), + EVMOVE(3), + EVLEVEL(4); + + final int value; + const EvCmd(this.value); + + static EvCmd fromValue(int value) => switch (value) { + 0 => EVNOP, + 1 => EVHIDE, + 2 => EVSHOW, + 3 => EVMOVE, + 4 => EVLEVEL, + _ => throw ArgumentError('Unknown value for EvCmd: $value'), + }; +} + +typedef ExceptionHandler = ExceptionHandlerTPP; +typedef ExceptionHandlerProcPtr = + ffi.Pointer>; +typedef ExceptionHandlerProcPtrFunction = + OSStatus Function(ffi.Pointer theException); +typedef DartExceptionHandlerProcPtrFunction = + DartSInt32 Function(ffi.Pointer theException); +typedef ExceptionHandlerTPP = ExceptionHandlerUPP; +typedef ExceptionHandlerUPP = ExceptionHandlerProcPtr; + +final class ExceptionInfo extends ffi.Union { + external ffi.Pointer memoryInfo; +} + +final class ExceptionInformation extends ffi.Struct { + @ExceptionKind() + external int theKind; + + external ffi.Pointer machineState; + + external ffi.Pointer registerImage; + + external ffi.Pointer FPUImage; + + external ExceptionInfo info; + + external ffi.Pointer vectorImage; +} + +final class ExceptionInformationPowerPC extends ffi.Struct { + @ExceptionKind() + external int theKind; + + external ffi.Pointer machineState; + + external ffi.Pointer registerImage; + + external ffi.Pointer FPUImage; + + external ExceptionInfo info; + + external ffi.Pointer vectorImage; +} + +typedef ExceptionKind = ffi.UnsignedLong; +typedef DartExceptionKind = int; + +@ffi.Packed(2) +final class ExtCommonChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @SInt16() + external int numChannels; + + @UInt32() + external int numSampleFrames; + + @SInt16() + external int sampleSize; + + external extended80 sampleRate; + + @UInt32() + external int compressionType; + + @ffi.Array.multi([1]) + external ffi.Array compressionName; +} + +typedef ExtCommonChunkPtr = ffi.Pointer; + +@ffi.Packed(2) +final class ExtComponentResource extends ffi.Struct { + external ComponentDescription cd; + + external ResourceSpec component; + + external ResourceSpec componentName; + + external ResourceSpec componentInfo; + + external ResourceSpec componentIcon; + + @SInt32() + external int componentVersion; + + @SInt32() + external int componentRegisterFlags; + + @SInt16() + external int componentIconFamily; + + @SInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array platformArray; +} + +typedef ExtComponentResourceHandle = ffi.Pointer; +typedef ExtComponentResourcePtr = ffi.Pointer; + +@ffi.Packed(2) +final class ExtendedFileInfo extends ffi.Struct { + @ffi.Array.multi([4]) + external ffi.Array reserved1; + + @UInt16() + external int extendedFinderFlags; + + @SInt16() + external int reserved2; + + @SInt32() + external int putAwayFolderID; +} + +@ffi.Packed(2) +final class ExtendedFolderInfo extends ffi.Struct { + external Point scrollPosition; + + @SInt32() + external int reserved1; + + @UInt16() + external int extendedFinderFlags; + + @SInt16() + external int reserved2; + + @SInt32() + external int putAwayFolderID; +} + +typedef FILE = __sFILE; + +@ffi.Packed(2) +final class FInfo extends ffi.Struct { + @OSType() + external int fdType; + + @OSType() + external int fdCreator; + + @UInt16() + external int fdFlags; + + external Point fdLocation; + + @SInt16() + external int fdFldr; +} + +typedef FMFilterSelector = UInt32; +typedef FMFont = UInt32; +typedef FMFontFamily = SInt16; + +final class FMFontFamilyInstance extends ffi.Struct { + @FMFontFamily() + external int fontFamily; + + @FMFontStyle() + external int fontStyle; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fontFamily, + required int fontStyle, + }) => $allocator() + ..ref.fontFamily = fontFamily + ..ref.fontStyle = fontStyle; +} + +@ffi.Packed(2) +final class FMFontFamilyInstanceIterator extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array reserved; +} + +@ffi.Packed(2) +final class FMFontFamilyIterator extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array reserved; +} + +@ffi.Packed(2) +final class FMFontIterator extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array reserved; +} + +typedef FMFontSize = SInt16; +typedef FMFontStyle = SInt16; +typedef FMGeneration = UInt32; + +final class FMInput extends ffi.Struct { + @ffi.Short() + external int family; + + @ffi.Short() + external int size; + + @Style() + external int face; + + @Boolean() + external int needBits; + + @ffi.Short() + external int device; + + external Point numer; + + external Point denom; +} + +typedef FNMessage = UInt32; +typedef FNSubscriptionProcPtr = + ffi.Pointer>; +typedef FNSubscriptionProcPtrFunction = + ffi.Void Function( + FNMessage message, + OptionBits flags, + ffi.Pointer refcon, + FNSubscriptionRef subscription, + ); +typedef DartFNSubscriptionProcPtrFunction = + void Function( + DartUInt32 message, + DartUInt32 flags, + ffi.Pointer refcon, + FNSubscriptionRef subscription, + ); +typedef FNSubscriptionRef = ffi.Pointer; +typedef FNSubscriptionUPP = FNSubscriptionProcPtr; + +const int FORMID = 1179603533; + +final class FPUInformation extends ffi.Struct { + external ffi.Pointer __unusedFPUInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedFPUInformationField, + }) => + $allocator() + ..ref.__unusedFPUInformationField = $unusedFPUInformationField; +} + +final class FPUInformationPowerPC extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array Registers; + + @ffi.UnsignedLong() + external int FPSCR; + + @ffi.UnsignedLong() + external int Reserved; +} + +typedef FSAliasFilterProcPtr = + ffi.Pointer>; +typedef FSAliasFilterProcPtrFunction = + Boolean Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + Ptr myDataPtr, + ); +typedef DartFSAliasFilterProcPtrFunction = + DartBoolean Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + Ptr myDataPtr, + ); + +@ffi.Packed(2) +final class FSAliasInfo extends ffi.Struct { + external UTCDateTime volumeCreateDate; + + external UTCDateTime targetCreateDate; + + @OSType() + external int fileType; + + @OSType() + external int fileCreator; + + @UInt32() + external int parentDirID; + + @UInt32() + external int nodeID; + + @UInt16() + external int filesystemID; + + @UInt16() + external int signature; + + @Boolean() + external int volumeIsBootVolume; + + @Boolean() + external int volumeIsAutomounted; + + @Boolean() + external int volumeIsEjectable; + + @Boolean() + external int volumeHasPersistentFileIDs; + + @Boolean() + external int isDirectory; +} + +typedef FSAliasInfoBitmap = UInt32; +typedef FSAliasInfoPtr = ffi.Pointer; +typedef FSAllocationFlags = UInt16; + +@ffi.Packed(2) +final class FSCatalogBulkParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + @Boolean() + external int containerChanged; + + @UInt8() + external int reserved; + + @FSIteratorFlags() + external int iteratorFlags; + + external FSIterator iterator; + + external ffi.Pointer container; + + @ItemCount() + external int maximumItems; + + @ItemCount() + external int actualItems; + + @FSCatalogInfoBitmap() + external int whichInfo; + + external ffi.Pointer catalogInfo; + + external ffi.Pointer refs; + + external FSSpecPtr specs; + + external ffi.Pointer names; + + external ffi.Pointer searchParams; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required int containerChanged, + required int reserved, + required int iteratorFlags, + required FSIterator iterator, + required ffi.Pointer container, + required int maximumItems, + required int actualItems, + required int whichInfo, + required ffi.Pointer catalogInfo, + required ffi.Pointer refs, + required FSSpecPtr specs, + required ffi.Pointer names, + required ffi.Pointer searchParams, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.containerChanged = containerChanged + ..ref.reserved = reserved + ..ref.iteratorFlags = iteratorFlags + ..ref.iterator = iterator + ..ref.container = container + ..ref.maximumItems = maximumItems + ..ref.actualItems = actualItems + ..ref.whichInfo = whichInfo + ..ref.catalogInfo = catalogInfo + ..ref.refs = refs + ..ref.specs = specs + ..ref.names = names + ..ref.searchParams = searchParams; +} + +typedef FSCatalogBulkParamPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FSCatalogInfo extends ffi.Struct { + @UInt16() + external int nodeFlags; + + @FSVolumeRefNum() + external int volume; + + @UInt32() + external int parentDirID; + + @UInt32() + external int nodeID; + + @UInt8() + external int sharingFlags; + + @UInt8() + external int userPrivileges; + + @UInt8() + external int reserved1; + + @UInt8() + external int reserved2; + + external UTCDateTime createDate; + + external UTCDateTime contentModDate; + + external UTCDateTime attributeModDate; + + external UTCDateTime accessDate; + + external UTCDateTime backupDate; + + external FSPermissionInfo permissions; + + @ffi.Array.multi([16]) + external ffi.Array finderInfo; + + @ffi.Array.multi([16]) + external ffi.Array extFinderInfo; + + @UInt64() + external int dataLogicalSize; + + @UInt64() + external int dataPhysicalSize; + + @UInt64() + external int rsrcLogicalSize; + + @UInt64() + external int rsrcPhysicalSize; + + @UInt32() + external int valence; + + @TextEncoding() + external int textEncodingHint; +} + +typedef FSCatalogInfoBitmap = UInt32; +typedef FSCatalogInfoPtr = ffi.Pointer; +typedef FSEjectStatus = UInt32; +typedef FSEventStreamCallback = + ffi.Pointer>; +typedef FSEventStreamCallbackFunction = + ffi.Void Function( + ConstFSEventStreamRef streamRef, + ffi.Pointer clientCallBackInfo, + ffi.Size numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ); +typedef DartFSEventStreamCallbackFunction = + void Function( + ConstFSEventStreamRef streamRef, + ffi.Pointer clientCallBackInfo, + int numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ); + +@ffi.Packed(2) +final class FSEventStreamContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef FSEventStreamCreateFlags = UInt32; +typedef FSEventStreamEventFlags = UInt32; +typedef FSEventStreamEventId = UInt64; +typedef FSEventStreamRef = ffi.Pointer<__FSEventStream>; + +@ffi.Packed(2) +final class FSFileOperationClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef FSFileOperationRef = ffi.Pointer<__FSFileOperation>; +typedef FSFileOperationStage = UInt32; +typedef FSFileOperationStatusProcPtr = + ffi.Pointer>; +typedef FSFileOperationStatusProcPtrFunction = + ffi.Void Function( + FSFileOperationRef fileOp, + ffi.Pointer currentItem, + FSFileOperationStage stage, + OSStatus error, + CFDictionaryRef statusDictionary, + ffi.Pointer info, + ); +typedef DartFSFileOperationStatusProcPtrFunction = + void Function( + FSFileOperationRef fileOp, + ffi.Pointer currentItem, + DartUInt32 stage, + DartSInt32 error, + CFDictionaryRef statusDictionary, + ffi.Pointer info, + ); +typedef FSFileSecurityRef = ffi.Pointer<__FSFileSecurity>; + +@ffi.Packed(2) +final class FSForkCBInfoParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + @FSIORefNum() + external int desiredRefNum; + + @FSVolumeRefNum() + external int volumeRefNum; + + @FSIORefNum() + external int iterator; + + @FSVolumeRefNum() + external int actualRefNum; + + external ffi.Pointer ref; + + external ffi.Pointer forkInfo; + + external ffi.Pointer forkName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required int desiredRefNum, + required int volumeRefNum, + required int iterator, + required int actualRefNum, + required ffi.Pointer ref, + required ffi.Pointer forkInfo, + required ffi.Pointer forkName, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.desiredRefNum = desiredRefNum + ..ref.volumeRefNum = volumeRefNum + ..ref.iterator = iterator + ..ref.actualRefNum = actualRefNum + ..ref.ref = ref + ..ref.forkInfo = forkInfo + ..ref.forkName = forkName; +} + +typedef FSForkCBInfoParamPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FSForkIOParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + external ffi.Pointer reserved1; + + @SInt16() + external int reserved2; + + @FSIORefNum() + external int forkRefNum; + + @UInt8() + external int reserved3; + + @SInt8() + external int permissions; + + external ffi.Pointer ref; + + external Ptr buffer; + + @UInt32() + external int requestCount; + + @UInt32() + external int actualCount; + + @UInt16() + external int positionMode; + + @SInt64() + external int positionOffset; + + @FSAllocationFlags() + external int allocationFlags; + + @UInt64() + external int allocationAmount; + + @UniCharCount() + external int forkNameLength; + + external ffi.Pointer forkName; + + external CatPositionRec forkIterator; + + external ffi.Pointer outForkName; +} + +typedef FSForkIOParamPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FSForkInfo extends ffi.Struct { + @FSForkInfoFlags() + external int flags; + + @SInt8() + external int permissions; + + @FSVolumeRefNum() + external int volume; + + @UInt32() + external int reserved2; + + @UInt32() + external int nodeID; + + @UInt32() + external int forkID; + + @UInt64() + external int currentPosition; + + @UInt64() + external int logicalEOF; + + @UInt64() + external int physicalEOF; + + @UInt64() + external int process; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int permissions, + required int volume, + required int reserved2, + required int nodeID, + required int forkID, + required int currentPosition, + required int logicalEOF, + required int physicalEOF, + required int process, + }) => $allocator() + ..ref.flags = flags + ..ref.permissions = permissions + ..ref.volume = volume + ..ref.reserved2 = reserved2 + ..ref.nodeID = nodeID + ..ref.forkID = forkID + ..ref.currentPosition = currentPosition + ..ref.logicalEOF = logicalEOF + ..ref.physicalEOF = physicalEOF + ..ref.process = process; +} + +typedef FSForkInfoFlags = UInt8; +typedef FSForkInfoPtr = ffi.Pointer; +typedef FSIORefNum = ffi.Int; +typedef DartFSIORefNum = int; +typedef FSIterator = ffi.Pointer; +typedef FSIteratorFlags = OptionBits; +typedef FSMountStatus = UInt32; +typedef FSPathFileOperationStatusProcPtr = + ffi.Pointer>; +typedef FSPathFileOperationStatusProcPtrFunction = + ffi.Void Function( + FSFileOperationRef fileOp, + ffi.Pointer currentItem, + FSFileOperationStage stage, + OSStatus error, + CFDictionaryRef statusDictionary, + ffi.Pointer info, + ); +typedef DartFSPathFileOperationStatusProcPtrFunction = + void Function( + FSFileOperationRef fileOp, + ffi.Pointer currentItem, + DartUInt32 stage, + DartSInt32 error, + CFDictionaryRef statusDictionary, + ffi.Pointer info, + ); + +@ffi.Packed(2) +final class FSPermissionInfo extends ffi.Struct { + @UInt32() + external int userID; + + @UInt32() + external int groupID; + + @UInt8() + external int reserved1; + + @UInt8() + external int userAccess; + + @UInt16() + external int mode; + + external FSFileSecurityRef fileSec; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int userID, + required int groupID, + required int reserved1, + required int userAccess, + required int mode, + required FSFileSecurityRef fileSec, + }) => $allocator() + ..ref.userID = userID + ..ref.groupID = groupID + ..ref.reserved1 = reserved1 + ..ref.userAccess = userAccess + ..ref.mode = mode + ..ref.fileSec = fileSec; +} + +@ffi.Packed(2) +final class FSRangeLockParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + @FSIORefNum() + external int forkRefNum; + + @UInt64() + external int requestCount; + + @UInt16() + external int positionMode; + + @SInt64() + external int positionOffset; + + @UInt64() + external int rangeStart; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required int forkRefNum, + required int requestCount, + required int positionMode, + required int positionOffset, + required int rangeStart, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.forkRefNum = forkRefNum + ..ref.requestCount = requestCount + ..ref.positionMode = positionMode + ..ref.positionOffset = positionOffset + ..ref.rangeStart = rangeStart; +} + +typedef FSRangeLockParamPtr = ffi.Pointer; + +final class FSRef extends ffi.Struct { + @ffi.Array.multi([80]) + external ffi.Array hidden; +} + +@ffi.Packed(2) +final class FSRefForkIOParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + external ffi.Pointer parentRef; + + @UniCharCount() + external int nameLength; + + external ffi.Pointer name; + + @FSCatalogInfoBitmap() + external int whichInfo; + + external ffi.Pointer catInfo; + + @UniCharCount() + external int forkNameLength; + + external ffi.Pointer forkName; + + @SInt8() + external int permissions; + + @UInt8() + external int reserved1; + + @FSIORefNum() + external int forkRefNum; + + external ffi.Pointer newRef; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required ffi.Pointer parentRef, + required int nameLength, + required ffi.Pointer name, + required int whichInfo, + required ffi.Pointer catInfo, + required int forkNameLength, + required ffi.Pointer forkName, + required int permissions, + required int reserved1, + required int forkRefNum, + required ffi.Pointer newRef, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.parentRef = parentRef + ..ref.nameLength = nameLength + ..ref.name = name + ..ref.whichInfo = whichInfo + ..ref.catInfo = catInfo + ..ref.forkNameLength = forkNameLength + ..ref.forkName = forkName + ..ref.permissions = permissions + ..ref.reserved1 = reserved1 + ..ref.forkRefNum = forkRefNum + ..ref.newRef = newRef; +} + +typedef FSRefForkIOParamPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FSRefParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + external ConstStringPtr ioNamePtr; + + @FSVolumeRefNum() + external int ioVRefNum; + + @SInt16() + external int reserved1; + + @UInt8() + external int reserved2; + + @UInt8() + external int reserved3; + + external ffi.Pointer ref; + + @FSCatalogInfoBitmap() + external int whichInfo; + + external ffi.Pointer catInfo; + + @UniCharCount() + external int nameLength; + + external ffi.Pointer name; + + @UInt32() + external int ioDirID; + + external FSSpecPtr spec; + + external ffi.Pointer parentRef; + + external ffi.Pointer newRef; + + @TextEncoding() + external int textEncodingHint; + + external ffi.Pointer outName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required ConstStringPtr ioNamePtr, + required int ioVRefNum, + required int reserved1, + required int reserved2, + required int reserved3, + required ffi.Pointer ref, + required int whichInfo, + required ffi.Pointer catInfo, + required int nameLength, + required ffi.Pointer name, + required int ioDirID, + required FSSpecPtr spec, + required ffi.Pointer parentRef, + required ffi.Pointer newRef, + required int textEncodingHint, + required ffi.Pointer outName, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.ioNamePtr = ioNamePtr + ..ref.ioVRefNum = ioVRefNum + ..ref.reserved1 = reserved1 + ..ref.reserved2 = reserved2 + ..ref.reserved3 = reserved3 + ..ref.ref = ref + ..ref.whichInfo = whichInfo + ..ref.catInfo = catInfo + ..ref.nameLength = nameLength + ..ref.name = name + ..ref.ioDirID = ioDirID + ..ref.spec = spec + ..ref.parentRef = parentRef + ..ref.newRef = newRef + ..ref.textEncodingHint = textEncodingHint + ..ref.outName = outName; +} + +typedef FSRefParamPtr = ffi.Pointer; +typedef FSRefPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FSSearchParams extends ffi.Struct { + @Duration() + external int searchTime; + + @OptionBits() + external int searchBits; + + @UniCharCount() + external int searchNameLength; + + external ffi.Pointer searchName; + + external ffi.Pointer searchInfo1; + + external ffi.Pointer searchInfo2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int searchTime, + required int searchBits, + required int searchNameLength, + required ffi.Pointer searchName, + required ffi.Pointer searchInfo1, + required ffi.Pointer searchInfo2, + }) => $allocator() + ..ref.searchTime = searchTime + ..ref.searchBits = searchBits + ..ref.searchNameLength = searchNameLength + ..ref.searchName = searchName + ..ref.searchInfo1 = searchInfo1 + ..ref.searchInfo2 = searchInfo2; +} + +typedef FSSearchParamsPtr = ffi.Pointer; + +final class FSSpec extends ffi.Struct { + @ffi.Array.multi([70]) + external ffi.Array hidden; +} + +typedef FSSpecArrayPtr = FSSpecPtr; +typedef FSSpecHandle = ffi.Pointer; +typedef FSSpecPtr = ffi.Pointer; +typedef FSUnmountStatus = UInt32; +typedef FSVolumeEjectProcPtr = + ffi.Pointer>; +typedef FSVolumeEjectProcPtrFunction = + ffi.Void Function( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + OSStatus err, + FSVolumeRefNum volumeRefNum, + pid_t dissenter, + ); +typedef DartFSVolumeEjectProcPtrFunction = + void Function( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + DartSInt32 err, + DartSInt16 volumeRefNum, + Dart__int32_t dissenter, + ); +typedef FSVolumeEjectUPP = FSVolumeEjectProcPtr; + +@ffi.Packed(2) +final class FSVolumeInfo extends ffi.Struct { + external UTCDateTime createDate; + + external UTCDateTime modifyDate; + + external UTCDateTime backupDate; + + external UTCDateTime checkedDate; + + @UInt32() + external int fileCount; + + @UInt32() + external int folderCount; + + @UInt64() + external int totalBytes; + + @UInt64() + external int freeBytes; + + @UInt32() + external int blockSize; + + @UInt32() + external int totalBlocks; + + @UInt32() + external int freeBlocks; + + @UInt32() + external int nextAllocation; + + @UInt32() + external int rsrcClumpSize; + + @UInt32() + external int dataClumpSize; + + @UInt32() + external int nextCatalogID; + + @ffi.Array.multi([32]) + external ffi.Array finderInfo; + + @UInt16() + external int flags; + + @UInt16() + external int filesystemID; + + @UInt16() + external int signature; + + @UInt16() + external int driveNumber; + + @FSIORefNum() + external int driverRefNum; +} + +typedef FSVolumeInfoBitmap = UInt32; + +@ffi.Packed(2) +final class FSVolumeInfoParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + external StringPtr ioNamePtr; + + @FSVolumeRefNum() + external int ioVRefNum; + + @UInt32() + external int volumeIndex; + + @FSVolumeInfoBitmap() + external int whichInfo; + + external ffi.Pointer volumeInfo; + + external ffi.Pointer volumeName; + + external ffi.Pointer ref; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required StringPtr ioNamePtr, + required int ioVRefNum, + required int volumeIndex, + required int whichInfo, + required ffi.Pointer volumeInfo, + required ffi.Pointer volumeName, + required ffi.Pointer ref, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.ioNamePtr = ioNamePtr + ..ref.ioVRefNum = ioVRefNum + ..ref.volumeIndex = volumeIndex + ..ref.whichInfo = whichInfo + ..ref.volumeInfo = volumeInfo + ..ref.volumeName = volumeName + ..ref.ref = ref; +} + +typedef FSVolumeInfoParamPtr = ffi.Pointer; +typedef FSVolumeInfoPtr = ffi.Pointer; +typedef FSVolumeMountProcPtr = + ffi.Pointer>; +typedef FSVolumeMountProcPtrFunction = + ffi.Void Function( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + OSStatus err, + FSVolumeRefNum mountedVolumeRefNum, + ); +typedef DartFSVolumeMountProcPtrFunction = + void Function( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + DartSInt32 err, + DartSInt16 mountedVolumeRefNum, + ); +typedef FSVolumeMountUPP = FSVolumeMountProcPtr; +typedef FSVolumeOperation = ffi.Pointer; +typedef FSVolumeRefNum = SInt16; +typedef FSVolumeUnmountProcPtr = + ffi.Pointer>; +typedef FSVolumeUnmountProcPtrFunction = + ffi.Void Function( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + OSStatus err, + FSVolumeRefNum volumeRefNum, + pid_t dissenter, + ); +typedef DartFSVolumeUnmountProcPtrFunction = + void Function( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + DartSInt32 err, + DartSInt16 volumeRefNum, + Dart__int32_t dissenter, + ); +typedef FSVolumeUnmountUPP = FSVolumeUnmountProcPtr; + +final class FVector extends ffi.Struct { + @ffi.Short() + external int start; + + @ffi.Short() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int start, + required int length, + }) => $allocator() + ..ref.start = start + ..ref.length = length; +} + +@ffi.Packed(2) +final class FXInfo extends ffi.Struct { + @SInt16() + external int fdIconID; + + @ffi.Array.multi([3]) + external ffi.Array fdReserved; + + @SInt8() + external int fdScript; + + @SInt8() + external int fdXFlags; + + @SInt16() + external int fdComment; + + @SInt32() + external int fdPutAway; +} + +@ffi.Packed(2) +final class FamRec extends ffi.Struct { + @SInt16() + external int ffFlags; + + @SInt16() + external int ffFamID; + + @SInt16() + external int ffFirstChar; + + @SInt16() + external int ffLastChar; + + @SInt16() + external int ffAscent; + + @SInt16() + external int ffDescent; + + @SInt16() + external int ffLeading; + + @SInt16() + external int ffWidMax; + + @SInt32() + external int ffWTabOff; + + @SInt32() + external int ffKernOff; + + @SInt32() + external int ffStylOff; + + @ffi.Array.multi([9]) + external ffi.Array ffProperty; + + @ffi.Array.multi([2]) + external ffi.Array ffIntl; + + @SInt16() + external int ffVersion; +} + +@ffi.Packed(2) +final class FileInfo extends ffi.Struct { + @OSType() + external int fileType; + + @OSType() + external int fileCreator; + + @UInt16() + external int finderFlags; + + external Point location; + + @UInt16() + external int reservedField; +} + +typedef Fixed = SInt32; + +@ffi.Packed(2) +final class FixedPoint extends ffi.Struct { + @Fixed() + external int x; + + @Fixed() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +typedef FixedPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FixedRect extends ffi.Struct { + @Fixed() + external int left; + + @Fixed() + external int top; + + @Fixed() + external int right; + + @Fixed() + external int bottom; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int left, + required int top, + required int right, + required int bottom, + }) => $allocator() + ..ref.left = left + ..ref.top = top + ..ref.right = right + ..ref.bottom = bottom; +} + +typedef Float32 = ffi.Float; +typedef DartFloat32 = double; + +@ffi.Packed(2) +final class Float32Point extends ffi.Struct { + @Float32() + external double x; + + @Float32() + external double y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double x, + required double y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +typedef Float64 = ffi.Double; +typedef DartFloat64 = double; + +final class Float80 extends ffi.Struct { + @SInt16() + external int exp$1; + + @ffi.Array.multi([4]) + external ffi.Array man; +} + +final class Float96 extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array exp$1; + + @ffi.Array.multi([4]) + external ffi.Array man; +} + +@ffi.Packed(2) +final class FndrDirInfo extends ffi.Struct { + external UnnamedStruct$5 frRect; + + @ffi.UnsignedShort() + external int frFlags; + + external UnnamedStruct$6 frLocation; + + @ffi.Int16() + external int opaque; +} + +@ffi.Packed(2) +final class FndrExtendedDirInfo extends ffi.Struct { + @u_int32_t() + external int document_id; + + @u_int32_t() + external int date_added; + + @u_int16_t() + external int extended_flags; + + @u_int16_t() + external int reserved3; + + @u_int32_t() + external int write_gen_counter; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int document_id, + required int date_added, + required int extended_flags, + required int reserved3, + required int write_gen_counter, + }) => $allocator() + ..ref.document_id = document_id + ..ref.date_added = date_added + ..ref.extended_flags = extended_flags + ..ref.reserved3 = reserved3 + ..ref.write_gen_counter = write_gen_counter; +} + +@ffi.Packed(2) +final class FndrExtendedFileInfo extends ffi.Struct { + @u_int32_t() + external int document_id; + + @u_int32_t() + external int date_added; + + @u_int16_t() + external int extended_flags; + + @u_int16_t() + external int reserved2; + + @u_int32_t() + external int write_gen_counter; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int document_id, + required int date_added, + required int extended_flags, + required int reserved2, + required int write_gen_counter, + }) => $allocator() + ..ref.document_id = document_id + ..ref.date_added = date_added + ..ref.extended_flags = extended_flags + ..ref.reserved2 = reserved2 + ..ref.write_gen_counter = write_gen_counter; +} + +@ffi.Packed(2) +final class FndrFileInfo extends ffi.Struct { + @u_int32_t() + external int fdType; + + @u_int32_t() + external int fdCreator; + + @u_int16_t() + external int fdFlags; + + external UnnamedStruct$7 fdLocation; + + @ffi.Int16() + external int opaque; +} + +@ffi.Packed(2) +final class FndrOpaqueInfo extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array opaque; +} + +typedef FolderClass = OSType; + +@ffi.Packed(2) +final class FolderDesc extends ffi.Struct { + @Size() + external int descSize; + + @FolderType() + external int foldType; + + @FolderDescFlags() + external int flags; + + @FolderClass() + external int foldClass; + + @FolderType() + external int foldLocation; + + @OSType() + external int badgeSignature; + + @OSType() + external int badgeType; + + @UInt32() + external int reserved; + + @ffi.Array.multi([64]) + external ffi.Array name; +} + +typedef FolderDescFlags = UInt32; +typedef FolderDescPtr = ffi.Pointer; + +final class FolderInfo extends ffi.Struct { + external Rect windowBounds; + + @UInt16() + external int finderFlags; + + external Point location; + + @UInt16() + external int reservedField; +} + +typedef FolderLocation = OSType; +typedef FolderManagerNotificationProcPtr = + ffi.Pointer>; +typedef FolderManagerNotificationProcPtrFunction = + OSStatus Function( + OSType message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ); +typedef DartFolderManagerNotificationProcPtrFunction = + DartSInt32 Function( + DartUInt32 message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ); +typedef FolderManagerNotificationUPP = FolderManagerNotificationProcPtr; + +@ffi.Packed(2) +final class FolderRouting extends ffi.Struct { + @Size() + external int descSize; + + @OSType() + external int fileType; + + @FolderType() + external int routeFromFolder; + + @FolderType() + external int routeToFolder; + + @RoutingFlags() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int descSize, + required int fileType, + required int routeFromFolder, + required int routeToFolder, + required int flags, + }) => $allocator() + ..ref.descSize = descSize + ..ref.fileType = fileType + ..ref.routeFromFolder = routeFromFolder + ..ref.routeToFolder = routeToFolder + ..ref.flags = flags; +} + +typedef FolderRoutingPtr = ffi.Pointer; +typedef FolderType = OSType; + +final class FontAssoc extends ffi.Struct { + @SInt16() + external int numAssoc; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numAssoc, + }) => $allocator()..ref.numAssoc = numAssoc; +} + +final class FontInfo extends ffi.Struct { + @ffi.Short() + external int ascent; + + @ffi.Short() + external int descent; + + @ffi.Short() + external int widMax; + + @ffi.Short() + external int leading; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ascent, + required int descent, + required int widMax, + required int leading, + }) => $allocator() + ..ref.ascent = ascent + ..ref.descent = descent + ..ref.widMax = widMax + ..ref.leading = leading; +} + +typedef FontLanguageCode = UInt32; +typedef FontNameCode = UInt32; +typedef FontPlatformCode = UInt32; + +final class FontRec extends ffi.Struct { + @SInt16() + external int fontType; + + @SInt16() + external int firstChar; + + @SInt16() + external int lastChar; + + @SInt16() + external int widMax; + + @SInt16() + external int kernMax; + + @SInt16() + external int nDescent; + + @SInt16() + external int fRectWidth; + + @SInt16() + external int fRectHeight; + + @UInt16() + external int owTLoc; + + @SInt16() + external int ascent; + + @SInt16() + external int descent; + + @SInt16() + external int leading; + + @SInt16() + external int rowWords; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fontType, + required int firstChar, + required int lastChar, + required int widMax, + required int kernMax, + required int nDescent, + required int fRectWidth, + required int fRectHeight, + required int owTLoc, + required int ascent, + required int descent, + required int leading, + required int rowWords, + }) => $allocator() + ..ref.fontType = fontType + ..ref.firstChar = firstChar + ..ref.lastChar = lastChar + ..ref.widMax = widMax + ..ref.kernMax = kernMax + ..ref.nDescent = nDescent + ..ref.fRectWidth = fRectWidth + ..ref.fRectHeight = fRectHeight + ..ref.owTLoc = owTLoc + ..ref.ascent = ascent + ..ref.descent = descent + ..ref.leading = leading + ..ref.rowWords = rowWords; +} + +typedef FontRecHdl = ffi.Pointer; +typedef FontRecPtr = ffi.Pointer; +typedef FontScriptCode = UInt32; + +@ffi.Packed(2) +final class FontVariation extends ffi.Struct { + @FourCharCode() + external int name; + + @Fixed() + external int value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int name, + required int value, + }) => $allocator() + ..ref.name = name + ..ref.value = value; +} + +typedef FormatClass = SInt8; +typedef FormatResultType = SInt8; +typedef FormatStatus = ffi.Short; +typedef DartFormatStatus = int; + +@ffi.Packed(2) +final class FormatVersionChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt32() + external int timestamp; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ckID, + required int ckSize, + required int timestamp, + }) => $allocator() + ..ref.ckID = ckID + ..ref.ckSize = ckSize + ..ref.timestamp = timestamp; +} + +typedef FormatVersionChunkPtr = ffi.Pointer; + +const int FormatVersionID = 1180058962; + +const int ForwardBackwardLooping = 2; + +const int ForwardLooping = 1; + +typedef FourCharCode = UInt32; +typedef Fract = SInt32; +typedef FractPtr = ffi.Pointer; +typedef GDHandle = ffi.Pointer; +typedef GDPtr = ffi.Pointer; + +@ffi.Packed(2) +final class GDevice extends ffi.Struct { + @ffi.Short() + external int gdRefNum; + + @ffi.Short() + external int gdID; + + @ffi.Short() + external int gdType; + + external Handle gdITable; + + @ffi.Short() + external int gdResPref; + + external Handle gdSearchProc; + + external Handle gdCompProc; + + @ffi.Short() + external int gdFlags; + + external PixMapHandle gdPMap; + + @SInt32() + external int gdRefCon; + + external GDHandle gdNextGD; + + external Rect gdRect; + + @SInt32() + external int gdMode; + + @ffi.Short() + external int gdCCBytes; + + @ffi.Short() + external int gdCCDepth; + + external Handle gdCCXData; + + external Handle gdCCXMask; + + external Handle gdExt; +} + +typedef GLbitfield = ffi.Uint32; +typedef DartGLbitfield = int; +typedef GLboolean = ffi.Uint8; +typedef DartGLboolean = int; +typedef GLbyte = ffi.Int8; +typedef DartGLbyte = int; +typedef GLchar = ffi.Char; +typedef DartGLchar = int; +typedef GLcharARB = ffi.Char; +typedef DartGLcharARB = int; +typedef GLclampd = ffi.Double; +typedef DartGLclampd = double; +typedef GLclampf = ffi.Float; +typedef DartGLclampf = double; +typedef GLdouble = ffi.Double; +typedef DartGLdouble = double; +typedef GLenum = ffi.Uint32; +typedef DartGLenum = int; +typedef GLfixed = ffi.Int32; +typedef DartGLfixed = int; +typedef GLfloat = ffi.Float; +typedef DartGLfloat = double; +typedef GLhalf = ffi.Uint16; +typedef DartGLhalf = int; +typedef GLhalfARB = ffi.Uint16; +typedef DartGLhalfARB = int; +typedef GLhandleARB = ffi.Pointer; +typedef GLint = ffi.Int32; +typedef DartGLint = int; +typedef GLint64 = ffi.Int64; +typedef DartGLint64 = int; +typedef GLint64EXT = ffi.Int64; +typedef DartGLint64EXT = int; +typedef GLintptr = ffi.IntPtr; +typedef DartGLintptr = int; +typedef GLintptrARB = ffi.IntPtr; +typedef DartGLintptrARB = int; +typedef GLshort = ffi.Int16; +typedef DartGLshort = int; +typedef GLsizei = ffi.Int32; +typedef DartGLsizei = int; +typedef GLsizeiptr = ffi.IntPtr; +typedef DartGLsizeiptr = int; +typedef GLsizeiptrARB = ffi.IntPtr; +typedef DartGLsizeiptrARB = int; +typedef GLsync = ffi.Pointer<__GLsync>; +typedef GLubyte = ffi.Uint8; +typedef DartGLubyte = int; +typedef GLuint = ffi.Uint32; +typedef DartGLuint = int; +typedef GLuint64 = ffi.Uint64; +typedef DartGLuint64 = int; +typedef GLuint64EXT = ffi.Uint64; +typedef DartGLuint64EXT = int; +typedef GLushort = ffi.Uint16; +typedef DartGLushort = int; +typedef GLvoid = ffi.Void; +typedef DartGLvoid = void; + +const int GREATERTHAN = 0; + +typedef GWorldFlags = ffi.UnsignedLong; +typedef DartGWorldFlags = int; +typedef GWorldPtr = CGrafPtr; +typedef GetMissingComponentResourceProcPtr = + ffi.Pointer>; +typedef GetMissingComponentResourceProcPtrFunction = + OSErr Function( + Component c, + OSType resType, + SInt16 resID, + ffi.Pointer refCon, + ffi.Pointer resource, + ); +typedef DartGetMissingComponentResourceProcPtrFunction = + DartSInt16 Function( + Component c, + DartUInt32 resType, + DartSInt16 resID, + ffi.Pointer refCon, + ffi.Pointer resource, + ); +typedef GetMissingComponentResourceUPP = GetMissingComponentResourceProcPtr; + +@ffi.Packed(2) +final class GetVolParmsInfoBuffer extends ffi.Struct { + @SInt16() + external int vMVersion; + + @SInt32() + external int vMAttrib; + + external Handle vMLocalHand; + + @SInt32() + external int vMServerAdr; + + @SInt32() + external int vMVolumeGrade; + + @SInt16() + external int vMForeignPrivID; + + @SInt32() + external int vMExtendedAttributes; + + external ffi.Pointer vMDeviceID; + + @UniCharCount() + external int vMMaxNameLength; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int vMVersion, + required int vMAttrib, + required Handle vMLocalHand, + required int vMServerAdr, + required int vMVolumeGrade, + required int vMForeignPrivID, + required int vMExtendedAttributes, + required ffi.Pointer vMDeviceID, + required int vMMaxNameLength, + }) => $allocator() + ..ref.vMVersion = vMVersion + ..ref.vMAttrib = vMAttrib + ..ref.vMLocalHand = vMLocalHand + ..ref.vMServerAdr = vMServerAdr + ..ref.vMVolumeGrade = vMVolumeGrade + ..ref.vMForeignPrivID = vMForeignPrivID + ..ref.vMExtendedAttributes = vMExtendedAttributes + ..ref.vMDeviceID = vMDeviceID + ..ref.vMMaxNameLength = vMMaxNameLength; +} + +typedef GlyphCollection = UInt16; +typedef GlyphID = ATSGlyphRef; + +final class GrafPort extends ffi.Struct { + @ffi.Array.multi([87]) + external ffi.Array whatever; +} + +typedef GrafPtr = ffi.Pointer; +typedef GrafVerb = SInt8; + +const int HDActivity = 3; + +@ffi.Packed(2) +final class HFSCatalogFile extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @u_int8_t() + external int flags; + + @ffi.Int8() + external int fileType; + + external FndrFileInfo userInfo; + + @u_int32_t() + external int fileID; + + @u_int16_t() + external int dataStartBlock; + + @ffi.Int32() + external int dataLogicalSize; + + @ffi.Int32() + external int dataPhysicalSize; + + @u_int16_t() + external int rsrcStartBlock; + + @ffi.Int32() + external int rsrcLogicalSize; + + @ffi.Int32() + external int rsrcPhysicalSize; + + @u_int32_t() + external int createDate; + + @u_int32_t() + external int modifyDate; + + @u_int32_t() + external int backupDate; + + external FndrOpaqueInfo finderInfo; + + @u_int16_t() + external int clumpSize; + + @ffi.Array.multi([3]) + external ffi.Array dataExtents; + + @ffi.Array.multi([3]) + external ffi.Array rsrcExtents; + + @u_int32_t() + external int reserved; +} + +@ffi.Packed(2) +final class HFSCatalogFolder extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @u_int16_t() + external int flags; + + @u_int16_t() + external int valence; + + @u_int32_t() + external int folderID; + + @u_int32_t() + external int createDate; + + @u_int32_t() + external int modifyDate; + + @u_int32_t() + external int backupDate; + + external FndrDirInfo userInfo; + + external FndrOpaqueInfo finderInfo; + + @ffi.Array.multi([4]) + external ffi.Array reserved; +} + +@ffi.Packed(2) +final class HFSCatalogKey extends ffi.Struct { + @u_int8_t() + external int keyLength; + + @u_int8_t() + external int reserved; + + @u_int32_t() + external int parentID; + + @ffi.Array.multi([32]) + external ffi.Array nodeName; +} + +typedef HFSCatalogNodeID = UInt32; + +@ffi.Packed(2) +final class HFSCatalogThread extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @ffi.Array.multi([2]) + external ffi.Array reserved; + + @u_int32_t() + external int parentID; + + @ffi.Array.multi([32]) + external ffi.Array nodeName; +} + +@ffi.Packed(2) +final class HFSExtentDescriptor extends ffi.Struct { + @u_int16_t() + external int startBlock; + + @u_int16_t() + external int blockCount; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int startBlock, + required int blockCount, + }) => $allocator() + ..ref.startBlock = startBlock + ..ref.blockCount = blockCount; +} + +@ffi.Packed(2) +final class HFSExtentKey extends ffi.Struct { + @u_int8_t() + external int keyLength; + + @u_int8_t() + external int forkType; + + @u_int32_t() + external int fileID; + + @u_int16_t() + external int startBlock; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int keyLength, + required int forkType, + required int fileID, + required int startBlock, + }) => $allocator() + ..ref.keyLength = keyLength + ..ref.forkType = forkType + ..ref.fileID = fileID + ..ref.startBlock = startBlock; +} + +@ffi.Packed(2) +final class HFSMasterDirectoryBlock extends ffi.Struct { + @u_int16_t() + external int drSigWord; + + @u_int32_t() + external int drCrDate; + + @u_int32_t() + external int drLsMod; + + @u_int16_t() + external int drAtrb; + + @u_int16_t() + external int drNmFls; + + @u_int16_t() + external int drVBMSt; + + @u_int16_t() + external int drAllocPtr; + + @u_int16_t() + external int drNmAlBlks; + + @u_int32_t() + external int drAlBlkSiz; + + @u_int32_t() + external int drClpSiz; + + @u_int16_t() + external int drAlBlSt; + + @u_int32_t() + external int drNxtCNID; + + @u_int16_t() + external int drFreeBks; + + @ffi.Array.multi([28]) + external ffi.Array drVN; + + @u_int32_t() + external int drVolBkUp; + + @u_int16_t() + external int drVSeqNum; + + @u_int32_t() + external int drWrCnt; + + @u_int32_t() + external int drXTClpSiz; + + @u_int32_t() + external int drCTClpSiz; + + @u_int16_t() + external int drNmRtDirs; + + @u_int32_t() + external int drFilCnt; + + @u_int32_t() + external int drDirCnt; + + @ffi.Array.multi([8]) + external ffi.Array drFndrInfo; + + @u_int16_t() + external int drEmbedSigWord; + + external HFSExtentDescriptor drEmbedExtent; + + @u_int32_t() + external int drXTFlSize; + + @ffi.Array.multi([3]) + external ffi.Array drXTExtRec; + + @u_int32_t() + external int drCTFlSize; + + @ffi.Array.multi([3]) + external ffi.Array drCTExtRec; +} + +@ffi.Packed(2) +final class HFSPlusAttrData extends ffi.Struct { + @u_int32_t() + external int recordType; + + @ffi.Array.multi([2]) + external ffi.Array reserved; + + @u_int32_t() + external int attrSize; + + @ffi.Array.multi([2]) + external ffi.Array attrData; +} + +@ffi.Packed(2) +final class HFSPlusAttrExtents extends ffi.Struct { + @u_int32_t() + external int recordType; + + @u_int32_t() + external int reserved; + + @ffi.Array.multi([8]) + external ffi.Array extents; +} + +@ffi.Packed(2) +final class HFSPlusAttrForkData extends ffi.Struct { + @u_int32_t() + external int recordType; + + @u_int32_t() + external int reserved; + + external HFSPlusForkData theFork; +} + +@ffi.Packed(2) +final class HFSPlusAttrInlineData extends ffi.Struct { + @u_int32_t() + external int recordType; + + @u_int32_t() + external int reserved; + + @u_int32_t() + external int logicalSize; + + @ffi.Array.multi([2]) + external ffi.Array userData; +} + +@ffi.Packed(2) +final class HFSPlusAttrKey extends ffi.Struct { + @u_int16_t() + external int keyLength; + + @u_int16_t() + external int pad; + + @u_int32_t() + external int fileID; + + @u_int32_t() + external int startBlock; + + @u_int16_t() + external int attrNameLen; + + @ffi.Array.multi([127]) + external ffi.Array attrName; +} + +final class HFSPlusAttrRecord extends ffi.Union { + @u_int32_t() + external int recordType; + + external HFSPlusAttrInlineData inlineData; + + external HFSPlusAttrData attrData; + + external HFSPlusAttrForkData forkData; + + external HFSPlusAttrExtents overflowExtents; +} + +@ffi.Packed(2) +final class HFSPlusBSDInfo extends ffi.Struct { + @u_int32_t() + external int ownerID; + + @u_int32_t() + external int groupID; + + @u_int8_t() + external int adminFlags; + + @u_int8_t() + external int ownerFlags; + + @u_int16_t() + external int fileMode; + + external UnnamedUnion$9 special; +} + +@ffi.Packed(2) +final class HFSPlusCatalogFile extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @u_int16_t() + external int flags; + + @u_int32_t() + external int reserved1; + + @u_int32_t() + external int fileID; + + @u_int32_t() + external int createDate; + + @u_int32_t() + external int contentModDate; + + @u_int32_t() + external int attributeModDate; + + @u_int32_t() + external int accessDate; + + @u_int32_t() + external int backupDate; + + external HFSPlusBSDInfo bsdInfo; + + external FndrFileInfo userInfo; + + external FndrOpaqueInfo finderInfo; + + @u_int32_t() + external int textEncoding; + + @u_int32_t() + external int reserved2; + + external HFSPlusForkData dataFork; + + external HFSPlusForkData resourceFork; +} + +@ffi.Packed(2) +final class HFSPlusCatalogFolder extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @u_int16_t() + external int flags; + + @u_int32_t() + external int valence; + + @u_int32_t() + external int folderID; + + @u_int32_t() + external int createDate; + + @u_int32_t() + external int contentModDate; + + @u_int32_t() + external int attributeModDate; + + @u_int32_t() + external int accessDate; + + @u_int32_t() + external int backupDate; + + external HFSPlusBSDInfo bsdInfo; + + external FndrDirInfo userInfo; + + external FndrOpaqueInfo finderInfo; + + @u_int32_t() + external int textEncoding; + + @u_int32_t() + external int folderCount; +} + +@ffi.Packed(2) +final class HFSPlusCatalogKey extends ffi.Struct { + @u_int16_t() + external int keyLength; + + @u_int32_t() + external int parentID; + + external HFSUniStr255 nodeName; +} + +@ffi.Packed(2) +final class HFSPlusCatalogThread extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @ffi.Int16() + external int reserved; + + @u_int32_t() + external int parentID; + + external HFSUniStr255 nodeName; +} + +@ffi.Packed(2) +final class HFSPlusExtentDescriptor extends ffi.Struct { + @u_int32_t() + external int startBlock; + + @u_int32_t() + external int blockCount; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int startBlock, + required int blockCount, + }) => $allocator() + ..ref.startBlock = startBlock + ..ref.blockCount = blockCount; +} + +@ffi.Packed(2) +final class HFSPlusExtentKey extends ffi.Struct { + @u_int16_t() + external int keyLength; + + @u_int8_t() + external int forkType; + + @u_int8_t() + external int pad; + + @u_int32_t() + external int fileID; + + @u_int32_t() + external int startBlock; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int keyLength, + required int forkType, + required int pad, + required int fileID, + required int startBlock, + }) => $allocator() + ..ref.keyLength = keyLength + ..ref.forkType = forkType + ..ref.pad = pad + ..ref.fileID = fileID + ..ref.startBlock = startBlock; +} + +@ffi.Packed(2) +final class HFSPlusForkData extends ffi.Struct { + @u_int64_t() + external int logicalSize; + + @u_int32_t() + external int clumpSize; + + @u_int32_t() + external int totalBlocks; + + @ffi.Array.multi([8]) + external ffi.Array extents; +} + +@ffi.Packed(2) +final class HFSPlusVolumeHeader extends ffi.Struct { + @u_int16_t() + external int signature; + + @u_int16_t() + external int version; + + @u_int32_t() + external int attributes; + + @u_int32_t() + external int lastMountedVersion; + + @u_int32_t() + external int journalInfoBlock; + + @u_int32_t() + external int createDate; + + @u_int32_t() + external int modifyDate; + + @u_int32_t() + external int backupDate; + + @u_int32_t() + external int checkedDate; + + @u_int32_t() + external int fileCount; + + @u_int32_t() + external int folderCount; + + @u_int32_t() + external int blockSize; + + @u_int32_t() + external int totalBlocks; + + @u_int32_t() + external int freeBlocks; + + @u_int32_t() + external int nextAllocation; + + @u_int32_t() + external int rsrcClumpSize; + + @u_int32_t() + external int dataClumpSize; + + @u_int32_t() + external int nextCatalogID; + + @u_int32_t() + external int writeCount; + + @u_int64_t() + external int encodingsBitmap; + + @ffi.Array.multi([32]) + external ffi.Array finderInfo; + + external HFSPlusForkData allocationFile; + + external HFSPlusForkData extentsFile; + + external HFSPlusForkData catalogFile; + + external HFSPlusForkData attributesFile; + + external HFSPlusForkData startupFile; +} + +@ffi.Packed(2) +final class HFSUniStr255 extends ffi.Struct { + @u_int16_t() + external int length; + + @ffi.Array.multi([255]) + external ffi.Array unicode; +} + +typedef HIMutableShapeRef = ffi.Pointer<__HIShape>; +typedef HIShapeEnumerateProcPtr = + ffi.Pointer>; +typedef HIShapeEnumerateProcPtrFunction = + OSStatus Function( + ffi.Int inMessage, + HIShapeRef inShape, + ffi.Pointer inRect, + ffi.Pointer inRefcon, + ); +typedef DartHIShapeEnumerateProcPtrFunction = + DartSInt32 Function( + int inMessage, + HIShapeRef inShape, + ffi.Pointer inRect, + ffi.Pointer inRefcon, + ); +typedef HIShapeRef = ffi.Pointer<__HIShape>; +typedef Handle = ffi.Pointer; + +@ffi.Packed(2) +final class ICAppSpec extends ffi.Struct { + @OSType() + external int fCreator; + + @ffi.Array.multi([64]) + external ffi.Array name; +} + +typedef ICAppSpecHandle = ffi.Pointer; + +final class ICAppSpecList extends ffi.Struct { + @SInt16() + external int numberOfItems; + + @ffi.Array.multi([1]) + external ffi.Array appSpecs; +} + +typedef ICAppSpecListHandle = ffi.Pointer; +typedef ICAppSpecListPtr = ffi.Pointer; +typedef ICAppSpecPtr = ffi.Pointer; +typedef ICAttr = UInt32; + +final class ICCharTable extends ffi.Struct { + @ffi.Array.multi([256]) + external ffi.Array netToMac; + + @ffi.Array.multi([256]) + external ffi.Array macToNet; +} + +typedef ICCharTableHandle = ffi.Pointer; +typedef ICCharTablePtr = ffi.Pointer; + +@ffi.Packed(2) +final class ICFileSpec extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array volName; + + @SInt32() + external int volCreationDate; + + external FSSpec fss; + + external AliasRecord alias; +} + +typedef ICFileSpecHandle = ffi.Pointer; +typedef ICFileSpecPtr = ffi.Pointer; +typedef ICFixedLength = SInt16; + +final class ICFontRecord extends ffi.Struct { + @SInt16() + external int size; + + @Style() + external int face; + + @ffi.Char() + external int pad; + + @ffi.Array.multi([256]) + external ffi.Array font; +} + +typedef ICFontRecordHandle = ffi.Pointer; +typedef ICFontRecordPtr = ffi.Pointer; +typedef ICInstance = ffi.Pointer; + +@ffi.Packed(2) +final class ICMapEntry extends ffi.Struct { + @SInt16() + external int totalLength; + + @ICFixedLength() + external int fixedLength; + + @SInt16() + external int version; + + @OSType() + external int fileType; + + @OSType() + external int fileCreator; + + @OSType() + external int postCreator; + + @ICMapEntryFlags() + external int flags; + + @ffi.Array.multi([256]) + external ffi.Array extension; + + @ffi.Array.multi([256]) + external ffi.Array creatorAppName; + + @ffi.Array.multi([256]) + external ffi.Array postAppName; + + @ffi.Array.multi([256]) + external ffi.Array MIMEType; + + @ffi.Array.multi([256]) + external ffi.Array entryName; +} + +typedef ICMapEntryFlags = SInt32; +typedef ICMapEntryHandle = ffi.Pointer; +typedef ICMapEntryPtr = ffi.Pointer; +typedef ICPerm = UInt8; +typedef ICProfileID = SInt32; +typedef ICProfileIDPtr = ffi.Pointer; + +final class ICServiceEntry extends ffi.Struct { + @ffi.Array.multi([256]) + external ffi.Array name; + + @SInt16() + external int port; + + @ICServiceEntryFlags() + external int flags; +} + +typedef ICServiceEntryFlags = SInt16; +typedef ICServiceEntryHandle = ffi.Pointer; +typedef ICServiceEntryPtr = ffi.Pointer; + +final class ICServices extends ffi.Struct { + @SInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array services; +} + +typedef ICServicesHandle = ffi.Pointer; +typedef ICServicesPtr = ffi.Pointer; +typedef IMP = ffi.Pointer>; +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef IOAddressRange = IOVirtualRange; +typedef IOAlignment = ffi.UnsignedInt; +typedef DartIOAlignment = int; +typedef IOAppleTimingID = UInt32; +typedef IOAsyncCallback = + ffi.Pointer>; +typedef IOAsyncCallback0 = + ffi.Pointer>; +typedef IOAsyncCallback0Function = + ffi.Void Function(ffi.Pointer refcon, IOReturn result); +typedef DartIOAsyncCallback0Function = + void Function(ffi.Pointer refcon, Dartkern_return_t result); +typedef IOAsyncCallback1 = + ffi.Pointer>; +typedef IOAsyncCallback1Function = + ffi.Void Function( + ffi.Pointer refcon, + IOReturn result, + ffi.Pointer arg0, + ); +typedef DartIOAsyncCallback1Function = + void Function( + ffi.Pointer refcon, + Dartkern_return_t result, + ffi.Pointer arg0, + ); +typedef IOAsyncCallback2 = + ffi.Pointer>; +typedef IOAsyncCallback2Function = + ffi.Void Function( + ffi.Pointer refcon, + IOReturn result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ); +typedef DartIOAsyncCallback2Function = + void Function( + ffi.Pointer refcon, + Dartkern_return_t result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ); +typedef IOAsyncCallbackFunction = + ffi.Void Function( + ffi.Pointer refcon, + IOReturn result, + ffi.Pointer> args, + ffi.Uint32 numArgs, + ); +typedef DartIOAsyncCallbackFunction = + void Function( + ffi.Pointer refcon, + Dartkern_return_t result, + ffi.Pointer> args, + int numArgs, + ); + +final class IOAsyncCompletionContent extends ffi.Opaque {} + +typedef IOByteCount = IOByteCount64; +typedef IOByteCount32 = UInt32; +typedef IOByteCount64 = UInt64; +typedef IOCacheMode = UInt32; +typedef IOColorComponent = UInt16; + +final class IOColorEntry extends ffi.Struct { + @UInt16() + external int index$1; + + @IOColorComponent() + external int red; + + @IOColorComponent() + external int green; + + @IOColorComponent() + external int blue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int index$1, + required int red, + required int green, + required int blue, + }) => $allocator() + ..ref.index$1 = index$1 + ..ref.red = red + ..ref.green = green + ..ref.blue = blue; +} + +typedef IOCompletionProcPtr = + ffi.Pointer>; +typedef IOCompletionProcPtrFunction = ffi.Void Function(ParmBlkPtr paramBlock); +typedef DartIOCompletionProcPtrFunction = void Function(ParmBlkPtr paramBlock); +typedef IOCompletionUPP = IOCompletionProcPtr; +typedef IODetailedTimingInformation = IODetailedTimingInformationV2; + +final class IODetailedTimingInformationV1 extends ffi.Struct { + @UInt32() + external int pixelClock; + + @UInt32() + external int horizontalActive; + + @UInt32() + external int horizontalBlanking; + + @UInt32() + external int horizontalBorder; + + @UInt32() + external int horizontalSyncOffset; + + @UInt32() + external int horizontalSyncWidth; + + @UInt32() + external int verticalActive; + + @UInt32() + external int verticalBlanking; + + @UInt32() + external int verticalBorder; + + @UInt32() + external int verticalSyncOffset; + + @UInt32() + external int verticalSyncWidth; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int pixelClock, + required int horizontalActive, + required int horizontalBlanking, + required int horizontalBorder, + required int horizontalSyncOffset, + required int horizontalSyncWidth, + required int verticalActive, + required int verticalBlanking, + required int verticalBorder, + required int verticalSyncOffset, + required int verticalSyncWidth, + }) => $allocator() + ..ref.pixelClock = pixelClock + ..ref.horizontalActive = horizontalActive + ..ref.horizontalBlanking = horizontalBlanking + ..ref.horizontalBorder = horizontalBorder + ..ref.horizontalSyncOffset = horizontalSyncOffset + ..ref.horizontalSyncWidth = horizontalSyncWidth + ..ref.verticalActive = verticalActive + ..ref.verticalBlanking = verticalBlanking + ..ref.verticalBorder = verticalBorder + ..ref.verticalSyncOffset = verticalSyncOffset + ..ref.verticalSyncWidth = verticalSyncWidth; +} + +final class IODetailedTimingInformationV2 extends ffi.Struct { + @ffi.Array.multi([3]) + external ffi.Array __reservedA; + + @UInt32() + external int horizontalScaledInset; + + @UInt32() + external int verticalScaledInset; + + @UInt32() + external int scalerFlags; + + @UInt32() + external int horizontalScaled; + + @UInt32() + external int verticalScaled; + + @UInt32() + external int signalConfig; + + @UInt32() + external int signalLevels; + + @UInt64() + external int pixelClock; + + @UInt64() + external int minPixelClock; + + @UInt64() + external int maxPixelClock; + + @UInt32() + external int horizontalActive; + + @UInt32() + external int horizontalBlanking; + + @UInt32() + external int horizontalSyncOffset; + + @UInt32() + external int horizontalSyncPulseWidth; + + @UInt32() + external int verticalActive; + + @UInt32() + external int verticalBlanking; + + @UInt32() + external int verticalSyncOffset; + + @UInt32() + external int verticalSyncPulseWidth; + + @UInt32() + external int horizontalBorderLeft; + + @UInt32() + external int horizontalBorderRight; + + @UInt32() + external int verticalBorderTop; + + @UInt32() + external int verticalBorderBottom; + + @UInt32() + external int horizontalSyncConfig; + + @UInt32() + external int horizontalSyncLevel; + + @UInt32() + external int verticalSyncConfig; + + @UInt32() + external int verticalSyncLevel; + + @UInt32() + external int numLinks; + + @UInt32() + external int verticalBlankingExtension; + + @UInt16() + external int pixelEncoding; + + @UInt16() + external int bitsPerColorComponent; + + @UInt16() + external int colorimetry; + + @UInt16() + external int dynamicRange; + + @UInt16() + external int dscCompressedBitsPerPixel; + + @UInt16() + external int dscSliceHeight; + + @UInt16() + external int dscSliceWidth; + + @UInt16() + external int verticalBlankingMaxStretchPerFrame; + + @UInt16() + external int verticalBlankingMaxShrinkPerFrame; + + @ffi.Array.multi([3]) + external ffi.Array __reservedB; +} + +typedef IODeviceNumber = ffi.UnsignedInt; +typedef DartIODeviceNumber = int; +typedef IODisplayModeID = SInt32; + +final class IODisplayModeInformation extends ffi.Struct { + @UInt32() + external int nominalWidth; + + @UInt32() + external int nominalHeight; + + @IOFixed1616() + external int refreshRate; + + @IOIndex() + external int maxDepthIndex; + + @UInt32() + external int flags; + + @UInt16() + external int imageWidth; + + @UInt16() + external int imageHeight; + + @ffi.Array.multi([3]) + external ffi.Array reserved; +} + +typedef IODisplayProductID = UInt32; + +final class IODisplayScalerInformation extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array __reservedA; + + @UInt32() + external int version; + + @ffi.Array.multi([2]) + external ffi.Array __reservedB; + + @IOOptionBits() + external int scalerFeatures; + + @UInt32() + external int maxHorizontalPixels; + + @UInt32() + external int maxVerticalPixels; + + @ffi.Array.multi([5]) + external ffi.Array __reservedC; +} + +typedef IODisplayTimingRange = IODisplayTimingRangeV2; + +final class IODisplayTimingRangeV1 extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array __reservedA; + + @UInt32() + external int version; + + @ffi.Array.multi([5]) + external ffi.Array __reservedB; + + @UInt64() + external int minPixelClock; + + @UInt64() + external int maxPixelClock; + + @UInt32() + external int maxPixelError; + + @UInt32() + external int supportedSyncFlags; + + @UInt32() + external int supportedSignalLevels; + + @UInt32() + external int supportedSignalConfigs; + + @UInt32() + external int minFrameRate; + + @UInt32() + external int maxFrameRate; + + @UInt32() + external int minLineRate; + + @UInt32() + external int maxLineRate; + + @UInt32() + external int maxHorizontalTotal; + + @UInt32() + external int maxVerticalTotal; + + @ffi.Array.multi([2]) + external ffi.Array __reservedD; + + @UInt8() + external int charSizeHorizontalActive; + + @UInt8() + external int charSizeHorizontalBlanking; + + @UInt8() + external int charSizeHorizontalSyncOffset; + + @UInt8() + external int charSizeHorizontalSyncPulse; + + @UInt8() + external int charSizeVerticalActive; + + @UInt8() + external int charSizeVerticalBlanking; + + @UInt8() + external int charSizeVerticalSyncOffset; + + @UInt8() + external int charSizeVerticalSyncPulse; + + @UInt8() + external int charSizeHorizontalBorderLeft; + + @UInt8() + external int charSizeHorizontalBorderRight; + + @UInt8() + external int charSizeVerticalBorderTop; + + @UInt8() + external int charSizeVerticalBorderBottom; + + @UInt8() + external int charSizeHorizontalTotal; + + @UInt8() + external int charSizeVerticalTotal; + + @UInt16() + external int __reservedE; + + @UInt32() + external int minHorizontalActiveClocks; + + @UInt32() + external int maxHorizontalActiveClocks; + + @UInt32() + external int minHorizontalBlankingClocks; + + @UInt32() + external int maxHorizontalBlankingClocks; + + @UInt32() + external int minHorizontalSyncOffsetClocks; + + @UInt32() + external int maxHorizontalSyncOffsetClocks; + + @UInt32() + external int minHorizontalPulseWidthClocks; + + @UInt32() + external int maxHorizontalPulseWidthClocks; + + @UInt32() + external int minVerticalActiveClocks; + + @UInt32() + external int maxVerticalActiveClocks; + + @UInt32() + external int minVerticalBlankingClocks; + + @UInt32() + external int maxVerticalBlankingClocks; + + @UInt32() + external int minVerticalSyncOffsetClocks; + + @UInt32() + external int maxVerticalSyncOffsetClocks; + + @UInt32() + external int minVerticalPulseWidthClocks; + + @UInt32() + external int maxVerticalPulseWidthClocks; + + @UInt32() + external int minHorizontalBorderLeft; + + @UInt32() + external int maxHorizontalBorderLeft; + + @UInt32() + external int minHorizontalBorderRight; + + @UInt32() + external int maxHorizontalBorderRight; + + @UInt32() + external int minVerticalBorderTop; + + @UInt32() + external int maxVerticalBorderTop; + + @UInt32() + external int minVerticalBorderBottom; + + @UInt32() + external int maxVerticalBorderBottom; + + @UInt32() + external int maxNumLinks; + + @UInt32() + external int minLink0PixelClock; + + @UInt32() + external int maxLink0PixelClock; + + @UInt32() + external int minLink1PixelClock; + + @UInt32() + external int maxLink1PixelClock; + + @UInt16() + external int supportedPixelEncoding; + + @UInt16() + external int supportedBitsPerColorComponent; + + @UInt16() + external int supportedColorimetryModes; + + @UInt16() + external int supportedDynamicRangeModes; + + @ffi.Array.multi([1]) + external ffi.Array __reservedF; +} + +final class IODisplayTimingRangeV2 extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array __reservedA; + + @UInt32() + external int version; + + @ffi.Array.multi([5]) + external ffi.Array __reservedB; + + @UInt64() + external int minPixelClock; + + @UInt64() + external int maxPixelClock; + + @UInt32() + external int maxPixelError; + + @UInt32() + external int supportedSyncFlags; + + @UInt32() + external int supportedSignalLevels; + + @UInt32() + external int supportedSignalConfigs; + + @UInt32() + external int minFrameRate; + + @UInt32() + external int maxFrameRate; + + @UInt32() + external int minLineRate; + + @UInt32() + external int maxLineRate; + + @UInt32() + external int maxHorizontalTotal; + + @UInt32() + external int maxVerticalTotal; + + @ffi.Array.multi([2]) + external ffi.Array __reservedD; + + @UInt8() + external int charSizeHorizontalActive; + + @UInt8() + external int charSizeHorizontalBlanking; + + @UInt8() + external int charSizeHorizontalSyncOffset; + + @UInt8() + external int charSizeHorizontalSyncPulse; + + @UInt8() + external int charSizeVerticalActive; + + @UInt8() + external int charSizeVerticalBlanking; + + @UInt8() + external int charSizeVerticalSyncOffset; + + @UInt8() + external int charSizeVerticalSyncPulse; + + @UInt8() + external int charSizeHorizontalBorderLeft; + + @UInt8() + external int charSizeHorizontalBorderRight; + + @UInt8() + external int charSizeVerticalBorderTop; + + @UInt8() + external int charSizeVerticalBorderBottom; + + @UInt8() + external int charSizeHorizontalTotal; + + @UInt8() + external int charSizeVerticalTotal; + + @UInt16() + external int __reservedE; + + @UInt32() + external int minHorizontalActiveClocks; + + @UInt32() + external int maxHorizontalActiveClocks; + + @UInt32() + external int minHorizontalBlankingClocks; + + @UInt32() + external int maxHorizontalBlankingClocks; + + @UInt32() + external int minHorizontalSyncOffsetClocks; + + @UInt32() + external int maxHorizontalSyncOffsetClocks; + + @UInt32() + external int minHorizontalPulseWidthClocks; + + @UInt32() + external int maxHorizontalPulseWidthClocks; + + @UInt32() + external int minVerticalActiveClocks; + + @UInt32() + external int maxVerticalActiveClocks; + + @UInt32() + external int minVerticalBlankingClocks; + + @UInt32() + external int maxVerticalBlankingClocks; + + @UInt32() + external int minVerticalSyncOffsetClocks; + + @UInt32() + external int maxVerticalSyncOffsetClocks; + + @UInt32() + external int minVerticalPulseWidthClocks; + + @UInt32() + external int maxVerticalPulseWidthClocks; + + @UInt32() + external int minHorizontalBorderLeft; + + @UInt32() + external int maxHorizontalBorderLeft; + + @UInt32() + external int minHorizontalBorderRight; + + @UInt32() + external int maxHorizontalBorderRight; + + @UInt32() + external int minVerticalBorderTop; + + @UInt32() + external int maxVerticalBorderTop; + + @UInt32() + external int minVerticalBorderBottom; + + @UInt32() + external int maxVerticalBorderBottom; + + @UInt32() + external int maxNumLinks; + + @UInt32() + external int minLink0PixelClock; + + @UInt32() + external int maxLink0PixelClock; + + @UInt32() + external int minLink1PixelClock; + + @UInt32() + external int maxLink1PixelClock; + + @UInt16() + external int supportedPixelEncoding; + + @UInt16() + external int supportedBitsPerColorComponent; + + @UInt16() + external int supportedColorimetryModes; + + @UInt16() + external int supportedDynamicRangeModes; + + @ffi.Array.multi([1]) + external ffi.Array __reservedF; + + @UInt64() + external int maxBandwidth; + + @UInt32() + external int dscMinSliceHeight; + + @UInt32() + external int dscMaxSliceHeight; + + @UInt32() + external int dscMinSliceWidth; + + @UInt32() + external int dscMaxSliceWidth; + + @UInt32() + external int dscMinSlicePerLine; + + @UInt32() + external int dscMaxSlicePerLine; + + @UInt16() + external int dscMinBPC; + + @UInt16() + external int dscMaxBPC; + + @UInt16() + external int dscMinBPP; + + @UInt16() + external int dscMaxBPP; + + @UInt8() + external int dscVBR; + + @UInt8() + external int dscBlockPredEnable; + + @ffi.Array.multi([6]) + external ffi.Array __reservedC; +} + +typedef IODisplayVendorID = UInt32; + +final class IOFBDPLinkConfig extends ffi.Struct { + @ffi.Uint16() + external int version; + + @ffi.Uint8() + external int bitRate; + + @ffi.Array.multi([1]) + external ffi.Array __reservedA; + + @ffi.Uint16() + external int t1Time; + + @ffi.Uint16() + external int t2Time; + + @ffi.Uint16() + external int t3Time; + + @ffi.Uint8() + external int idlePatterns; + + @ffi.Uint8() + external int laneCount; + + @ffi.Uint8() + external int voltage; + + @ffi.Uint8() + external int preEmphasis; + + @ffi.Uint8() + external int downspread; + + @ffi.Uint8() + external int scrambler; + + @ffi.Uint8() + external int maxBitRate; + + @ffi.Uint8() + external int maxLaneCount; + + @ffi.Uint8() + external int maxDownspread; + + @ffi.Array.multi([9]) + external ffi.Array __reservedB; +} + +@ffi.Packed(4) +final class IOFBDisplayModeDescription extends ffi.Struct { + external IODisplayModeInformation info; + + external IOTimingInformation timingInfo; +} + +final class IOFBHDRMetaData extends ffi.Union { + external IOFBHDRMetaDataV1 v1; +} + +final class IOFBHDRMetaDataV1 extends ffi.Struct { + @ffi.Uint16() + external int displayPrimary_X0; + + @ffi.Uint16() + external int displayPrimary_Y0; + + @ffi.Uint16() + external int displayPrimary_X1; + + @ffi.Uint16() + external int displayPrimary_Y1; + + @ffi.Uint16() + external int displayPrimary_X2; + + @ffi.Uint16() + external int displayPrimary_Y2; + + @ffi.Uint16() + external int displayPrimary_X; + + @ffi.Uint16() + external int displayPrimary_Y; + + @ffi.Uint16() + external int desiredLuminance_Max; + + @ffi.Uint16() + external int desiredLuminance_Min; + + @ffi.Uint16() + external int desiredLightLevel_Avg; + + @ffi.Uint16() + external int desiredLightLevel_Max; + + @ffi.Array.multi([5]) + external ffi.Array __reservedA; +} + +typedef IOFixed = SInt32; +typedef IOFixed1616 = UInt32; +typedef IOFixedPoint32 = __IOFixedPoint32; + +final class IOFramebufferInformation extends ffi.Struct { + @IOPhysicalAddress() + external int baseAddress; + + @UInt32() + external int activeWidth; + + @UInt32() + external int activeHeight; + + @IOByteCount() + external int bytesPerRow; + + @IOByteCount() + external int bytesPerPlane; + + @UInt32() + external int bitsPerPixel; + + @UInt32() + external int pixelType; + + @UInt32() + external int flags; + + @ffi.Array.multi([4]) + external ffi.Array reserved; +} + +final class IOGBounds extends ffi.Struct { + @SInt16() + external int minx; + + @SInt16() + external int maxx; + + @SInt16() + external int miny; + + @SInt16() + external int maxy; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int minx, + required int maxx, + required int miny, + required int maxy, + }) => $allocator() + ..ref.minx = minx + ..ref.maxx = maxx + ..ref.miny = miny + ..ref.maxy = maxy; +} + +final class IOGPoint extends ffi.Struct { + @SInt16() + external int x; + + @SInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +final class IOGSize extends ffi.Struct { + @SInt16() + external int width; + + @SInt16() + external int height; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int width, + required int height, + }) => $allocator() + ..ref.width = width + ..ref.height = height; +} + +final class IOHardwareCursorDescriptor extends ffi.Struct { + @UInt16() + external int majorVersion; + + @UInt16() + external int minorVersion; + + @UInt32() + external int height; + + @UInt32() + external int width; + + @UInt32() + external int bitDepth; + + @UInt32() + external int maskBitDepth; + + @UInt32() + external int numColors; + + external ffi.Pointer colorEncodings; + + @UInt32() + external int flags; + + @UInt32() + external int supportedSpecialEncodings; + + @ffi.Array.multi([16]) + external ffi.Array specialEncodings; +} + +final class IOHardwareCursorInfo extends ffi.Struct { + @UInt16() + external int majorVersion; + + @UInt16() + external int minorVersion; + + @UInt32() + external int cursorHeight; + + @UInt32() + external int cursorWidth; + + external ffi.Pointer colorMap; + + external ffi.Pointer hardwareCursorData; + + @UInt16() + external int cursorHotSpotX; + + @UInt16() + external int cursorHotSpotY; + + @ffi.Array.multi([5]) + external ffi.Array reserved; +} + +typedef IOIndex = SInt32; +typedef IOItemCount = UInt32; +typedef IOLogicalAddress = IOVirtualAddress; + +final class IONamedValue extends ffi.Struct { + @ffi.Int() + external int value; + + external ffi.Pointer name; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int value, + required ffi.Pointer name, + }) => $allocator() + ..ref.value = value + ..ref.name = name; +} + +final class IONotificationPort extends ffi.Opaque {} + +typedef IONotificationPortRef = ffi.Pointer; +typedef IOOptionBits = UInt32; +typedef IOPhysicalAddress = IOPhysicalAddress64; +typedef IOPhysicalAddress32 = UInt32; +typedef IOPhysicalAddress64 = UInt64; +typedef IOPhysicalLength = IOPhysicalLength64; +typedef IOPhysicalLength32 = UInt32; +typedef IOPhysicalLength64 = UInt64; + +final class IOPhysicalRange extends ffi.Struct { + @IOPhysicalAddress() + external int address; + + @IOByteCount() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int address, + required int length, + }) => $allocator() + ..ref.address = address + ..ref.length = length; +} + +typedef IOPixelAperture = IOIndex; + +final class IOPixelInformation extends ffi.Struct { + @UInt32() + external int bytesPerRow; + + @UInt32() + external int bytesPerPlane; + + @UInt32() + external int bitsPerPixel; + + @UInt32() + external int pixelType; + + @UInt32() + external int componentCount; + + @UInt32() + external int bitsPerComponent; + + @ffi.Array.multi([16]) + external ffi.Array componentMasks; + + @ffi.Array.multi([64]) + external ffi.Array pixelFormat; + + @UInt32() + external int flags; + + @UInt32() + external int activeWidth; + + @UInt32() + external int activeHeight; + + @ffi.Array.multi([2]) + external ffi.Array reserved; +} + +typedef IOReturn = kern_return_t; +typedef IOSelect = UInt32; +typedef IOServiceInterestCallback = + ffi.Pointer>; +typedef IOServiceInterestCallbackFunction = + ffi.Void Function( + ffi.Pointer refcon, + io_service_t service, + ffi.Uint32 messageType, + ffi.Pointer messageArgument, + ); +typedef DartIOServiceInterestCallbackFunction = + void Function( + ffi.Pointer refcon, + Dart__darwin_natural_t service, + int messageType, + ffi.Pointer messageArgument, + ); + +@ffi.Packed(4) +final class IOServiceInterestContent extends ffi.Struct { + @natural_t() + external int messageType; + + @ffi.Array.multi([1]) + external ffi.Array> messageArgument; +} + +@ffi.Packed(4) +final class IOServiceInterestContent64 extends ffi.Struct { + @natural_t() + external int messageType; + + @ffi.Array.multi([1]) + external ffi.Array messageArgument; +} + +typedef IOServiceMatchingCallback = + ffi.Pointer>; +typedef IOServiceMatchingCallbackFunction = + ffi.Void Function(ffi.Pointer refcon, io_iterator_t iterator); +typedef DartIOServiceMatchingCallbackFunction = + void Function( + ffi.Pointer refcon, + Dart__darwin_natural_t iterator, + ); + +enum IOSurfaceComponentName { + kIOSurfaceComponentNameUnknown(0), + kIOSurfaceComponentNameAlpha(1), + kIOSurfaceComponentNameRed(2), + kIOSurfaceComponentNameGreen(3), + kIOSurfaceComponentNameBlue(4), + kIOSurfaceComponentNameLuma(5), + kIOSurfaceComponentNameChromaRed(6), + kIOSurfaceComponentNameChromaBlue(7); + + final int value; + const IOSurfaceComponentName(this.value); + + static IOSurfaceComponentName fromValue(int value) => switch (value) { + 0 => kIOSurfaceComponentNameUnknown, + 1 => kIOSurfaceComponentNameAlpha, + 2 => kIOSurfaceComponentNameRed, + 3 => kIOSurfaceComponentNameGreen, + 4 => kIOSurfaceComponentNameBlue, + 5 => kIOSurfaceComponentNameLuma, + 6 => kIOSurfaceComponentNameChromaRed, + 7 => kIOSurfaceComponentNameChromaBlue, + _ => throw ArgumentError( + 'Unknown value for IOSurfaceComponentName: $value', + ), + }; +} + +enum IOSurfaceComponentRange { + kIOSurfaceComponentRangeUnknown(0), + kIOSurfaceComponentRangeFullRange(1), + kIOSurfaceComponentRangeVideoRange(2), + kIOSurfaceComponentRangeWideRange(3); + + final int value; + const IOSurfaceComponentRange(this.value); + + static IOSurfaceComponentRange fromValue(int value) => switch (value) { + 0 => kIOSurfaceComponentRangeUnknown, + 1 => kIOSurfaceComponentRangeFullRange, + 2 => kIOSurfaceComponentRangeVideoRange, + 3 => kIOSurfaceComponentRangeWideRange, + _ => throw ArgumentError( + 'Unknown value for IOSurfaceComponentRange: $value', + ), + }; +} + +enum IOSurfaceComponentType { + kIOSurfaceComponentTypeUnknown(0), + kIOSurfaceComponentTypeUnsignedInteger(1), + kIOSurfaceComponentTypeSignedInteger(2), + kIOSurfaceComponentTypeFloat(3), + kIOSurfaceComponentTypeSignedNormalized(4); + + final int value; + const IOSurfaceComponentType(this.value); + + static IOSurfaceComponentType fromValue(int value) => switch (value) { + 0 => kIOSurfaceComponentTypeUnknown, + 1 => kIOSurfaceComponentTypeUnsignedInteger, + 2 => kIOSurfaceComponentTypeSignedInteger, + 3 => kIOSurfaceComponentTypeFloat, + 4 => kIOSurfaceComponentTypeSignedNormalized, + _ => throw ArgumentError( + 'Unknown value for IOSurfaceComponentType: $value', + ), + }; +} + +typedef IOSurfaceID = ffi.Uint32; +typedef DartIOSurfaceID = int; + +sealed class IOSurfaceLockOptions { + static const kIOSurfaceLockReadOnly = 1; + static const kIOSurfaceLockAvoidSync = 2; +} + +sealed class IOSurfaceMemoryLedgerFlags { + static const kIOSurfaceMemoryLedgerFlagNoFootprint = 1; +} + +enum IOSurfaceMemoryLedgerTags { + kIOSurfaceMemoryLedgerTagDefault(1), + kIOSurfaceMemoryLedgerTagNetwork(2), + kIOSurfaceMemoryLedgerTagMedia(3), + kIOSurfaceMemoryLedgerTagGraphics(4), + kIOSurfaceMemoryLedgerTagNeural(5); + + final int value; + const IOSurfaceMemoryLedgerTags(this.value); + + static IOSurfaceMemoryLedgerTags fromValue(int value) => switch (value) { + 1 => kIOSurfaceMemoryLedgerTagDefault, + 2 => kIOSurfaceMemoryLedgerTagNetwork, + 3 => kIOSurfaceMemoryLedgerTagMedia, + 4 => kIOSurfaceMemoryLedgerTagGraphics, + 5 => kIOSurfaceMemoryLedgerTagNeural, + _ => throw ArgumentError( + 'Unknown value for IOSurfaceMemoryLedgerTags: $value', + ), + }; +} + +sealed class IOSurfacePurgeabilityState { + static const kIOSurfacePurgeableNonVolatile = 0; + static const kIOSurfacePurgeableVolatile = 1; + static const kIOSurfacePurgeableEmpty = 2; + static const kIOSurfacePurgeableKeepCurrent = 3; +} + +typedef IOSurfaceRef = ffi.Pointer<__IOSurface>; + +enum IOSurfaceSubsampling { + kIOSurfaceSubsamplingUnknown(0), + kIOSurfaceSubsamplingNone(1), + kIOSurfaceSubsampling422(2), + kIOSurfaceSubsampling420(3), + kIOSurfaceSubsampling411(4); + + final int value; + const IOSurfaceSubsampling(this.value); + + static IOSurfaceSubsampling fromValue(int value) => switch (value) { + 0 => kIOSurfaceSubsamplingUnknown, + 1 => kIOSurfaceSubsamplingNone, + 2 => kIOSurfaceSubsampling422, + 3 => kIOSurfaceSubsampling420, + 4 => kIOSurfaceSubsampling411, + _ => throw ArgumentError('Unknown value for IOSurfaceSubsampling: $value'), + }; +} + +final class IOTimingInformation extends ffi.Struct { + @IOAppleTimingID() + external int appleTimingID; + + @UInt32() + external int flags; + + external UnnamedUnion$10 detailedInfo; +} + +typedef IOVersion = UInt32; +typedef IOVirtualAddress = mach_vm_address_t; + +final class IOVirtualRange extends ffi.Struct { + @IOVirtualAddress() + external int address; + + @IOByteCount() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int address, + required int length, + }) => $allocator() + ..ref.address = address + ..ref.length = length; +} + +typedef ISAType = SInt8; +typedef IconActionProcPtr = + ffi.Pointer>; +typedef IconActionProcPtrFunction = + OSErr Function( + ResType theType, + ffi.Pointer theIcon, + ffi.Pointer yourDataPtr, + ); +typedef DartIconActionProcPtrFunction = + DartSInt16 Function( + DartUInt32 theType, + ffi.Pointer theIcon, + ffi.Pointer yourDataPtr, + ); +typedef IconActionUPP = IconActionProcPtr; +typedef IconAlignmentType = SInt16; + +@ffi.Packed(2) +final class IconFamilyElement extends ffi.Struct { + @OSType() + external int elementType; + + @SInt32() + external int elementSize; + + @ffi.Array.multi([1]) + external ffi.Array elementData; +} + +typedef IconFamilyHandle = ffi.Pointer; +typedef IconFamilyPtr = ffi.Pointer; + +@ffi.Packed(2) +final class IconFamilyResource extends ffi.Struct { + @OSType() + external int resourceType; + + @SInt32() + external int resourceSize; + + @ffi.Array.multi([1]) + external ffi.Array elements; +} + +typedef IconGetterProcPtr = + ffi.Pointer>; +typedef IconGetterProcPtrFunction = + Handle Function(ResType theType, ffi.Pointer yourDataPtr); +typedef DartIconGetterProcPtrFunction = + Handle Function(DartUInt32 theType, ffi.Pointer yourDataPtr); +typedef IconGetterUPP = IconGetterProcPtr; +typedef IconRef = ffi.Pointer; +typedef IconSelectorValue = UInt32; +typedef IconServicesUsageFlags = UInt32; +typedef IconTransformType = SInt16; + +const int IdleActivity = 4; + +typedef IndexToUCStringProcPtr = + ffi.Pointer>; +typedef IndexToUCStringProcPtrFunction = + Boolean Function( + UInt32 index$1, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer outString, + ffi.Pointer tsOptions, + ); +typedef DartIndexToUCStringProcPtrFunction = + DartBoolean Function( + DartUInt32 index$1, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer outString, + ffi.Pointer tsOptions, + ); +typedef IndexToUCStringUPP = IndexToUCStringProcPtr; + +@ffi.Packed(2) +final class InstrumentChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt8() + external int baseFrequency; + + @UInt8() + external int detune; + + @UInt8() + external int lowFrequency; + + @UInt8() + external int highFrequency; + + @UInt8() + external int lowVelocity; + + @UInt8() + external int highVelocity; + + @SInt16() + external int gain; + + external AIFFLoop sustainLoop; + + external AIFFLoop releaseLoop; +} + +typedef InstrumentChunkPtr = ffi.Pointer; + +const int InstrumentID = 1229869908; + +typedef Intl0Hndl = ffi.Pointer; +typedef Intl0Ptr = ffi.Pointer; + +final class Intl0Rec extends ffi.Struct { + @ffi.Char() + external int decimalPt; + + @ffi.Char() + external int thousSep; + + @ffi.Char() + external int listSep; + + @ffi.Char() + external int currSym1; + + @ffi.Char() + external int currSym2; + + @ffi.Char() + external int currSym3; + + @UInt8() + external int currFmt; + + @UInt8() + external int dateOrder; + + @UInt8() + external int shrtDateFmt; + + @ffi.Char() + external int dateSep; + + @UInt8() + external int timeCycle; + + @UInt8() + external int timeFmt; + + @ffi.Array.multi([4]) + external ffi.Array mornStr; + + @ffi.Array.multi([4]) + external ffi.Array eveStr; + + @ffi.Char() + external int timeSep; + + @ffi.Char() + external int time1Suff; + + @ffi.Char() + external int time2Suff; + + @ffi.Char() + external int time3Suff; + + @ffi.Char() + external int time4Suff; + + @ffi.Char() + external int time5Suff; + + @ffi.Char() + external int time6Suff; + + @ffi.Char() + external int time7Suff; + + @ffi.Char() + external int time8Suff; + + @UInt8() + external int metricSys; + + @ffi.Short() + external int intl0Vers; +} + +typedef Intl1Hndl = ffi.Pointer; +typedef Intl1Ptr = ffi.Pointer; + +final class Intl1Rec extends ffi.Struct { + @ffi.Array.multi([7, 16]) + external ffi.Array> days; + + @ffi.Array.multi([12, 16]) + external ffi.Array> months; + + @UInt8() + external int suppressDay; + + @UInt8() + external int lngDateFmt; + + @UInt8() + external int dayLeading0; + + @UInt8() + external int abbrLen; + + @ffi.Array.multi([4]) + external ffi.Array st0; + + @ffi.Array.multi([4]) + external ffi.Array st1; + + @ffi.Array.multi([4]) + external ffi.Array st2; + + @ffi.Array.multi([4]) + external ffi.Array st3; + + @ffi.Array.multi([4]) + external ffi.Array st4; + + @ffi.Short() + external int intl1Vers; + + @ffi.Array.multi([1]) + external ffi.Array localRtn; +} + +final class IntlText extends ffi.Struct { + @ScriptCode() + external int theScriptCode; + + @LangCode() + external int theLangCode; + + @ffi.Array.multi([1]) + external ffi.Array theText; +} + +typedef ItemCount = ffi.UnsignedLong; +typedef DartItemCount = int; + +@ffi.Packed(2) +final class Itl1ExtRec extends ffi.Struct { + external Intl1Rec base; + + @ffi.Short() + external int version; + + @ffi.Short() + external int format; + + @ffi.Short() + external int calendarCode; + + @SInt32() + external int extraDaysTableOffset; + + @SInt32() + external int extraDaysTableLength; + + @SInt32() + external int extraMonthsTableOffset; + + @SInt32() + external int extraMonthsTableLength; + + @SInt32() + external int abbrevDaysTableOffset; + + @SInt32() + external int abbrevDaysTableLength; + + @SInt32() + external int abbrevMonthsTableOffset; + + @SInt32() + external int abbrevMonthsTableLength; + + @SInt32() + external int extraSepsTableOffset; + + @SInt32() + external int extraSepsTableLength; + + @ffi.Array.multi([1]) + external ffi.Array tables; +} + +typedef Itl4Handle = ffi.Pointer; +typedef Itl4Ptr = ffi.Pointer; + +@ffi.Packed(2) +final class Itl4Rec extends ffi.Struct { + @ffi.Short() + external int flags; + + @SInt32() + external int resourceType; + + @ffi.Short() + external int resourceNum; + + @ffi.Short() + external int version; + + @SInt32() + external int resHeader1; + + @SInt32() + external int resHeader2; + + @ffi.Short() + external int numTables; + + @SInt32() + external int mapOffset; + + @SInt32() + external int strOffset; + + @SInt32() + external int fetchOffset; + + @SInt32() + external int unTokenOffset; + + @SInt32() + external int defPartsOffset; + + @SInt32() + external int resOffset6; + + @SInt32() + external int resOffset7; + + @SInt32() + external int resOffset8; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int resourceType, + required int resourceNum, + required int version, + required int resHeader1, + required int resHeader2, + required int numTables, + required int mapOffset, + required int strOffset, + required int fetchOffset, + required int unTokenOffset, + required int defPartsOffset, + required int resOffset6, + required int resOffset7, + required int resOffset8, + }) => $allocator() + ..ref.flags = flags + ..ref.resourceType = resourceType + ..ref.resourceNum = resourceNum + ..ref.version = version + ..ref.resHeader1 = resHeader1 + ..ref.resHeader2 = resHeader2 + ..ref.numTables = numTables + ..ref.mapOffset = mapOffset + ..ref.strOffset = strOffset + ..ref.fetchOffset = fetchOffset + ..ref.unTokenOffset = unTokenOffset + ..ref.defPartsOffset = defPartsOffset + ..ref.resOffset6 = resOffset6 + ..ref.resOffset7 = resOffset7 + ..ref.resOffset8 = resOffset8; +} + +@ffi.Packed(2) +final class Itl5Record extends ffi.Struct { + @Fixed() + external int versionNumber; + + @ffi.UnsignedShort() + external int numberOfTables; + + @ffi.Array.multi([3]) + external ffi.Array reserved; + + @ffi.Array.multi([1]) + external ffi.Array tableDirectory; +} + +@ffi.Packed(2) +final class ItlbExtRecord extends ffi.Struct { + external ItlbRecord base; + + @SInt32() + external int itlbLocalSize; + + @ffi.Short() + external int itlbMonoFond; + + @ffi.Short() + external int itlbMonoSize; + + @ffi.Short() + external int itlbPrefFond; + + @ffi.Short() + external int itlbPrefSize; + + @ffi.Short() + external int itlbSmallFond; + + @ffi.Short() + external int itlbSmallSize; + + @ffi.Short() + external int itlbSysFond; + + @ffi.Short() + external int itlbSysSize; + + @ffi.Short() + external int itlbAppFond; + + @ffi.Short() + external int itlbAppSize; + + @ffi.Short() + external int itlbHelpFond; + + @ffi.Short() + external int itlbHelpSize; + + @Style() + external int itlbValidStyles; + + @Style() + external int itlbAliasStyle; +} + +final class ItlbRecord extends ffi.Struct { + @ffi.Short() + external int itlbNumber; + + @ffi.Short() + external int itlbDate; + + @ffi.Short() + external int itlbSort; + + @ffi.Short() + external int itlbFlags; + + @ffi.Short() + external int itlbToken; + + @ffi.Short() + external int itlbEncoding; + + @ffi.Short() + external int itlbLang; + + @SInt8() + external int itlbNumRep; + + @SInt8() + external int itlbDateRep; + + @ffi.Short() + external int itlbKeys; + + @ffi.Short() + external int itlbIcon; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int itlbNumber, + required int itlbDate, + required int itlbSort, + required int itlbFlags, + required int itlbToken, + required int itlbEncoding, + required int itlbLang, + required int itlbNumRep, + required int itlbDateRep, + required int itlbKeys, + required int itlbIcon, + }) => $allocator() + ..ref.itlbNumber = itlbNumber + ..ref.itlbDate = itlbDate + ..ref.itlbSort = itlbSort + ..ref.itlbFlags = itlbFlags + ..ref.itlbToken = itlbToken + ..ref.itlbEncoding = itlbEncoding + ..ref.itlbLang = itlbLang + ..ref.itlbNumRep = itlbNumRep + ..ref.itlbDateRep = itlbDateRep + ..ref.itlbKeys = itlbKeys + ..ref.itlbIcon = itlbIcon; +} + +final class ItlcRecord extends ffi.Struct { + @ffi.Short() + external int itlcSystem; + + @ffi.Short() + external int itlcReserved; + + @SInt8() + external int itlcFontForce; + + @SInt8() + external int itlcIntlForce; + + @SInt8() + external int itlcOldKybd; + + @SInt8() + external int itlcFlags; + + @ffi.Short() + external int itlcIconOffset; + + @SInt8() + external int itlcIconSide; + + @SInt8() + external int itlcIconRsvd; + + @ffi.Short() + external int itlcRegionCode; + + @ffi.Short() + external int itlcSysFlags; + + @ffi.Array.multi([32]) + external ffi.Array itlcReserved4; +} + +@ffi.Packed(2) +final class JournalInfoBlock extends ffi.Struct { + @u_int32_t() + external int flags; + + @ffi.Array.multi([8]) + external ffi.Array device_signature; + + @u_int64_t() + external int offset; + + @u_int64_t() + external int size; + + @ffi.Array.multi([37]) + external ffi.Array ext_jnl_uuid; + + @ffi.Array.multi([48]) + external ffi.Array machine_serial_num; + + @ffi.Array.multi([43]) + external ffi.Array reserved; +} + +final class JustDirectionTable extends ffi.Struct { + @UInt16() + external int justClass; + + @UInt16() + external int widthDeltaClusters; + + @UInt16() + external int postcomp; + + external SFNTLookupTable lookup; +} + +@ffi.Packed(2) +final class JustPCAction extends ffi.Struct { + @UInt32() + external int actionCount; + + @ffi.Array.multi([1]) + external ffi.Array actions; +} + +@ffi.Packed(2) +final class JustPCActionSubrecord extends ffi.Struct { + @UInt16() + external int theClass; + + @JustPCActionType() + external int theType; + + @UInt32() + external int length; + + @UInt32() + external int data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int theClass, + required int theType, + required int length, + required int data, + }) => $allocator() + ..ref.theClass = theClass + ..ref.theType = theType + ..ref.length = length + ..ref.data = data; +} + +typedef JustPCActionType = UInt16; + +@ffi.Packed(2) +final class JustPCConditionalAddAction extends ffi.Struct { + @Fixed() + external int substThreshold; + + @UInt16() + external int addGlyph; + + @UInt16() + external int substGlyph; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int substThreshold, + required int addGlyph, + required int substGlyph, + }) => $allocator() + ..ref.substThreshold = substThreshold + ..ref.addGlyph = addGlyph + ..ref.substGlyph = substGlyph; +} + +@ffi.Packed(2) +final class JustPCDecompositionAction extends ffi.Struct { + @Fixed() + external int lowerLimit; + + @Fixed() + external int upperLimit; + + @UInt16() + external int order; + + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array glyphs; +} + +@ffi.Packed(2) +final class JustPCDuctilityAction extends ffi.Struct { + @UInt32() + external int ductilityAxis; + + @Fixed() + external int minimumLimit; + + @Fixed() + external int noStretchValue; + + @Fixed() + external int maximumLimit; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ductilityAxis, + required int minimumLimit, + required int noStretchValue, + required int maximumLimit, + }) => $allocator() + ..ref.ductilityAxis = ductilityAxis + ..ref.minimumLimit = minimumLimit + ..ref.noStretchValue = noStretchValue + ..ref.maximumLimit = maximumLimit; +} + +final class JustPCGlyphRepeatAddAction extends ffi.Struct { + @UInt16() + external int flags; + + @UInt16() + external int glyph; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int glyph, + }) => $allocator() + ..ref.flags = flags + ..ref.glyph = glyph; +} + +typedef JustPCUnconditionalAddAction = UInt16; + +final class JustPostcompTable extends ffi.Struct { + external SFNTLookupTable lookupTable; +} + +@ffi.Packed(2) +final class JustTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt16() + external int format; + + @UInt16() + external int horizHeaderOffset; + + @UInt16() + external int vertHeaderOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int format, + required int horizHeaderOffset, + required int vertHeaderOffset, + }) => $allocator() + ..ref.version = version + ..ref.format = format + ..ref.horizHeaderOffset = horizHeaderOffset + ..ref.vertHeaderOffset = vertHeaderOffset; +} + +@ffi.Packed(2) +final class JustWidthDeltaEntry extends ffi.Struct { + @UInt32() + external int justClass; + + @Fixed() + external int beforeGrowLimit; + + @Fixed() + external int beforeShrinkLimit; + + @Fixed() + external int afterGrowLimit; + + @Fixed() + external int afterShrinkLimit; + + @JustificationFlags() + external int growFlags; + + @JustificationFlags() + external int shrinkFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int justClass, + required int beforeGrowLimit, + required int beforeShrinkLimit, + required int afterGrowLimit, + required int afterShrinkLimit, + required int growFlags, + required int shrinkFlags, + }) => $allocator() + ..ref.justClass = justClass + ..ref.beforeGrowLimit = beforeGrowLimit + ..ref.beforeShrinkLimit = beforeShrinkLimit + ..ref.afterGrowLimit = afterGrowLimit + ..ref.afterShrinkLimit = afterShrinkLimit + ..ref.growFlags = growFlags + ..ref.shrinkFlags = shrinkFlags; +} + +@ffi.Packed(2) +final class JustWidthDeltaGroup extends ffi.Struct { + @UInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array entries; +} + +typedef JustificationFlags = UInt16; + +const int KAEISHandleCGI = 1935961955; + +typedef KCAttrType = SecKeychainAttrType; +typedef KCAttribute = SecKeychainAttribute; +typedef KCAttributeList = SecKeychainAttributeList; +typedef KCAuthType = FourCharCode; + +@ffi.Packed(2) +final class KCCallbackInfo extends ffi.Struct { + @UInt32() + external int version; + + external KCItemRef item; + + @ffi.Array.multi([2]) + external ffi.Array processID; + + @ffi.Array.multi([4]) + external ffi.Array event; + + external KCRef keychain; +} + +typedef KCCallbackProcPtr = + ffi.Pointer>; +typedef KCCallbackProcPtrFunction = + OSStatus Function( + KCEvent keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ); +typedef DartKCCallbackProcPtrFunction = + DartSInt32 Function( + DartUInt16 keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ); +typedef KCCallbackUPP = KCCallbackProcPtr; +typedef KCCertAddOptions = UInt32; +typedef KCCertSearchOptions = UInt32; +typedef KCEvent = UInt16; +typedef KCEventMask = UInt16; +typedef KCItemAttr = FourCharCode; +typedef KCItemClass = FourCharCode; +typedef KCItemRef = SecKeychainItemRef; +typedef KCProtocolType = FourCharCode; +typedef KCRef = SecKeychainRef; +typedef KCSearchRef = SecKeychainSearchRef; +typedef KCStatus = SecKeychainStatus; +typedef KCVerifyStopOn = UInt16; +typedef KernArrayOffset = UInt16; + +final class KernEntry extends ffi.Struct { + @SInt16() + external int kernStyle; + + @SInt16() + external int kernLength; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int kernStyle, + required int kernLength, + }) => $allocator() + ..ref.kernStyle = kernStyle + ..ref.kernLength = kernLength; +} + +final class KernFormatSpecificHeader extends ffi.Union { + external KernOrderedListHeader orderedList; + + external KernStateHeader stateTable; + + external KernSimpleArrayHeader simpleArray; + + external KernIndexArrayHeader indexArray; +} + +final class KernIndexArrayHeader extends ffi.Struct { + @UInt16() + external int glyphCount; + + @UInt8() + external int kernValueCount; + + @UInt8() + external int leftClassCount; + + @UInt8() + external int rightClassCount; + + @UInt8() + external int flags; + + @ffi.Array.multi([1]) + external ffi.Array kernValue; + + @ffi.Array.multi([1]) + external ffi.Array leftClass; + + @ffi.Array.multi([1]) + external ffi.Array rightClass; + + @ffi.Array.multi([1]) + external ffi.Array kernIndex; +} + +final class KernKerningPair extends ffi.Struct { + @UInt16() + external int left; + + @UInt16() + external int right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int left, + required int right, + }) => $allocator() + ..ref.left = left + ..ref.right = right; +} + +typedef KernKerningValue = SInt16; + +final class KernOffsetTable extends ffi.Struct { + @UInt16() + external int firstGlyph; + + @UInt16() + external int nGlyphs; + + @ffi.Array.multi([1]) + external ffi.Array offsetTable; +} + +typedef KernOffsetTablePtr = ffi.Pointer; + +final class KernOrderedListEntry extends ffi.Struct { + external KernKerningPair pair; + + @KernKerningValue() + external int value; +} + +typedef KernOrderedListEntryPtr = ffi.Pointer; + +final class KernOrderedListHeader extends ffi.Struct { + @UInt16() + external int nPairs; + + @UInt16() + external int searchRange; + + @UInt16() + external int entrySelector; + + @UInt16() + external int rangeShift; + + @ffi.Array.multi([1]) + external ffi.Array table; +} + +final class KernPair extends ffi.Struct { + @ffi.Char() + external int kernFirst; + + @ffi.Char() + external int kernSecond; + + @SInt16() + external int kernWidth; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int kernFirst, + required int kernSecond, + required int kernWidth, + }) => $allocator() + ..ref.kernFirst = kernFirst + ..ref.kernSecond = kernSecond + ..ref.kernWidth = kernWidth; +} + +final class KernSimpleArrayHeader extends ffi.Struct { + @UInt16() + external int rowWidth; + + @UInt16() + external int leftOffsetTable; + + @UInt16() + external int rightOffsetTable; + + @KernArrayOffset() + external int theArray; + + @ffi.Array.multi([1]) + external ffi.Array firstTable; +} + +final class KernStateEntry extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags; +} + +final class KernStateHeader extends ffi.Struct { + external STHeader header; + + @UInt16() + external int valueTable; + + @ffi.Array.multi([1]) + external ffi.Array firstTable; +} + +@ffi.Packed(2) +final class KernSubtableHeader extends ffi.Struct { + @SInt32() + external int length; + + @KernSubtableInfo() + external int stInfo; + + @SInt16() + external int tupleIndex; + + external KernFormatSpecificHeader fsHeader; +} + +typedef KernSubtableHeaderPtr = ffi.Pointer; +typedef KernSubtableInfo = UInt16; + +final class KernTable extends ffi.Struct { + @SInt16() + external int numKerns; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numKerns, + }) => $allocator()..ref.numKerns = numKerns; +} + +typedef KernTableFormat = UInt8; + +@ffi.Packed(2) +final class KernTableHeader extends ffi.Struct { + @Fixed() + external int version; + + @SInt32() + external int nTables; + + @ffi.Array.multi([1]) + external ffi.Array firstSubtable; +} + +typedef KernTableHeaderHandle = ffi.Pointer; +typedef KernTableHeaderPtr = ffi.Pointer; + +final class KernVersion0Header extends ffi.Struct { + @UInt16() + external int version; + + @UInt16() + external int nTables; + + @ffi.Array.multi([1]) + external ffi.Array firstSubtable; +} + +final class KernVersion0SubtableHeader extends ffi.Struct { + @UInt16() + external int version; + + @UInt16() + external int length; + + @KernSubtableInfo() + external int stInfo; + + external KernFormatSpecificHeader fsHeader; +} + +final class KerxAnchorPointAction extends ffi.Struct { + @UInt16() + external int markAnchorPoint; + + @UInt16() + external int currAnchorPoint; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int markAnchorPoint, + required int currAnchorPoint, + }) => $allocator() + ..ref.markAnchorPoint = markAnchorPoint + ..ref.currAnchorPoint = currAnchorPoint; +} + +typedef KerxArrayOffset = UInt32; + +final class KerxControlPointAction extends ffi.Struct { + @UInt16() + external int markControlPoint; + + @UInt16() + external int currControlPoint; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int markControlPoint, + required int currControlPoint, + }) => $allocator() + ..ref.markControlPoint = markControlPoint + ..ref.currControlPoint = currControlPoint; +} + +final class KerxControlPointEntry extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int actionIndex; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int actionIndex, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.actionIndex = actionIndex; +} + +@ffi.Packed(2) +final class KerxControlPointHeader extends ffi.Struct { + external STXHeader header; + + @UInt32() + external int flags; + + @ffi.Array.multi([1]) + external ffi.Array firstTable; +} + +final class KerxCoordinateAction extends ffi.Struct { + @UInt16() + external int markX; + + @UInt16() + external int markY; + + @UInt16() + external int currX; + + @UInt16() + external int currY; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int markX, + required int markY, + required int currX, + required int currY, + }) => $allocator() + ..ref.markX = markX + ..ref.markY = markY + ..ref.currX = currX + ..ref.currY = currY; +} + +final class KerxFormatSpecificHeader extends ffi.Union { + external KerxOrderedListHeader orderedList; + + external KerxStateHeader stateTable; + + external KerxSimpleArrayHeader simpleArray; + + external KerxIndexArrayHeader indexArray; + + external KerxControlPointHeader controlPoint; +} + +@ffi.Packed(2) +final class KerxIndexArrayHeader extends ffi.Struct { + @UInt32() + external int flags; + + @UInt16() + external int rowCount; + + @UInt16() + external int columnCount; + + @UInt32() + external int rowIndexTableOffset; + + @UInt32() + external int columnIndexTableOffset; + + @UInt32() + external int kerningArrayOffset; + + @UInt32() + external int kerningVectorOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int rowCount, + required int columnCount, + required int rowIndexTableOffset, + required int columnIndexTableOffset, + required int kerningArrayOffset, + required int kerningVectorOffset, + }) => $allocator() + ..ref.flags = flags + ..ref.rowCount = rowCount + ..ref.columnCount = columnCount + ..ref.rowIndexTableOffset = rowIndexTableOffset + ..ref.columnIndexTableOffset = columnIndexTableOffset + ..ref.kerningArrayOffset = kerningArrayOffset + ..ref.kerningVectorOffset = kerningVectorOffset; +} + +final class KerxKerningPair extends ffi.Struct { + @UInt16() + external int left; + + @UInt16() + external int right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int left, + required int right, + }) => $allocator() + ..ref.left = left + ..ref.right = right; +} + +final class KerxOrderedListEntry extends ffi.Struct { + external KerxKerningPair pair; + + @KernKerningValue() + external int value; +} + +typedef KerxOrderedListEntryPtr = ffi.Pointer; + +@ffi.Packed(2) +final class KerxOrderedListHeader extends ffi.Struct { + @UInt32() + external int nPairs; + + @UInt32() + external int searchRange; + + @UInt32() + external int entrySelector; + + @UInt32() + external int rangeShift; + + @ffi.Array.multi([1]) + external ffi.Array table; +} + +@ffi.Packed(2) +final class KerxSimpleArrayHeader extends ffi.Struct { + @UInt32() + external int rowWidth; + + @UInt32() + external int leftOffsetTable; + + @UInt32() + external int rightOffsetTable; + + @KerxArrayOffset() + external int theArray; + + @ffi.Array.multi([1]) + external ffi.Array firstTable; +} + +final class KerxStateEntry extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int valueIndex; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int valueIndex, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.valueIndex = valueIndex; +} + +@ffi.Packed(2) +final class KerxStateHeader extends ffi.Struct { + external STXHeader header; + + @UInt32() + external int valueTable; + + @ffi.Array.multi([1]) + external ffi.Array firstTable; +} + +typedef KerxSubtableCoverage = UInt32; + +@ffi.Packed(2) +final class KerxSubtableHeader extends ffi.Struct { + @UInt32() + external int length; + + @KerxSubtableCoverage() + external int stInfo; + + @UInt32() + external int tupleCount; + + external KerxFormatSpecificHeader fsHeader; +} + +typedef KerxSubtableHeaderPtr = ffi.Pointer; + +@ffi.Packed(2) +final class KerxTableHeader extends ffi.Struct { + @Fixed() + external int version; + + @UInt32() + external int nTables; + + @ffi.Array.multi([1]) + external ffi.Array firstSubtable; +} + +typedef KerxTableHeaderHandle = ffi.Pointer; +typedef KerxTableHeaderPtr = ffi.Pointer; + +const int LESSTHAN = 1; + +final class LLCStyleInfo extends ffi.Opaque {} + +sealed class LSAcceptanceFlags { + static const kLSAcceptDefault = 1; + static const kLSAcceptAllowLoginUI = 2; +} + +@ffi.Packed(2) +final class LSApplicationParameters extends ffi.Struct { + @CFIndex() + external int version; + + @OptionBits() + external int flags; + + external ffi.Pointer application; + + external ffi.Pointer asyncLaunchRefCon; + + external CFDictionaryRef environment; + + external CFArrayRef argv; + + external ffi.Pointer initialEvent; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int flags, + required ffi.Pointer application, + required ffi.Pointer asyncLaunchRefCon, + required CFDictionaryRef environment, + required CFArrayRef argv, + required ffi.Pointer initialEvent, + }) => $allocator() + ..ref.version = version + ..ref.flags = flags + ..ref.application = application + ..ref.asyncLaunchRefCon = asyncLaunchRefCon + ..ref.environment = environment + ..ref.argv = argv + ..ref.initialEvent = initialEvent; +} + +sealed class LSHandlerOptions { + static const kLSHandlerOptionsDefault = 0; + static const kLSHandlerOptionsIgnoreCreator = 1; +} + +sealed class LSItemInfoFlags { + static const kLSItemInfoIsPlainFile = 1; + static const kLSItemInfoIsPackage = 2; + static const kLSItemInfoIsApplication = 4; + static const kLSItemInfoIsContainer = 8; + static const kLSItemInfoIsAliasFile = 16; + static const kLSItemInfoIsSymlink = 32; + static const kLSItemInfoIsInvisible = 64; + static const kLSItemInfoIsNativeApp = 128; + static const kLSItemInfoIsClassicApp = 256; + static const kLSItemInfoAppPrefersNative = 512; + static const kLSItemInfoAppPrefersClassic = 1024; + static const kLSItemInfoAppIsScriptable = 2048; + static const kLSItemInfoIsVolume = 4096; + static const kLSItemInfoExtensionIsHidden = 1048576; +} + +@ffi.Packed(2) +final class LSItemInfoRecord extends ffi.Struct { + @OptionBits() + external int flags; + + @OSType() + external int filetype; + + @OSType() + external int creator; + + external CFStringRef extension; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int filetype, + required int creator, + required CFStringRef extension, + }) => $allocator() + ..ref.flags = flags + ..ref.filetype = filetype + ..ref.creator = creator + ..ref.extension = extension; +} + +@ffi.Packed(2) +final class LSLaunchFSRefSpec extends ffi.Struct { + external ffi.Pointer appRef; + + @ItemCount() + external int numDocs; + + external ffi.Pointer itemRefs; + + external ffi.Pointer passThruParams; + + @OptionBits() + external int launchFlags; + + external ffi.Pointer asyncRefCon; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer appRef, + required int numDocs, + required ffi.Pointer itemRefs, + required ffi.Pointer passThruParams, + required int launchFlags, + required ffi.Pointer asyncRefCon, + }) => $allocator() + ..ref.appRef = appRef + ..ref.numDocs = numDocs + ..ref.itemRefs = itemRefs + ..ref.passThruParams = passThruParams + ..ref.launchFlags = launchFlags + ..ref.asyncRefCon = asyncRefCon; +} + +sealed class LSLaunchFlags { + static const kLSLaunchDefaults = 1; + static const kLSLaunchAndPrint = 2; + static const kLSLaunchAndDisplayErrors = 64; + static const kLSLaunchDontAddToRecents = 256; + static const kLSLaunchDontSwitch = 512; + static const kLSLaunchAsync = 65536; + static const kLSLaunchNewInstance = 524288; + static const kLSLaunchAndHide = 1048576; + static const kLSLaunchAndHideOthers = 2097152; +} + +@ffi.Packed(2) +final class LSLaunchURLSpec extends ffi.Struct { + external CFURLRef appURL; + + external CFArrayRef itemURLs; + + external ffi.Pointer passThruParams; + + @OptionBits() + external int launchFlags; + + external ffi.Pointer asyncRefCon; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFURLRef appURL, + required CFArrayRef itemURLs, + required ffi.Pointer passThruParams, + required int launchFlags, + required ffi.Pointer asyncRefCon, + }) => $allocator() + ..ref.appURL = appURL + ..ref.itemURLs = itemURLs + ..ref.passThruParams = passThruParams + ..ref.launchFlags = launchFlags + ..ref.asyncRefCon = asyncRefCon; +} + +sealed class LSRequestedInfo { + static const kLSRequestExtension = 1; + static const kLSRequestTypeCreator = 2; + static const kLSRequestBasicFlagsOnly = 4; + static const kLSRequestAppTypeFlags = 8; + static const kLSRequestAllFlags = 16; + static const kLSRequestIconAndKind = 32; + static const kLSRequestExtensionFlagsOnly = 64; + static const kLSRequestAllInfo = -1; +} + +sealed class LSRolesMask { + static const kLSRolesNone = 1; + static const kLSRolesViewer = 2; + static const kLSRolesEditor = 4; + static const kLSRolesShell = 8; + static const kLSRolesAll = -1; +} + +typedef LSSharedFileListChangedProcPtr = + ffi.Pointer>; +typedef LSSharedFileListChangedProcPtrFunction = + ffi.Void Function( + LSSharedFileListRef inList, + ffi.Pointer context, + ); +typedef DartLSSharedFileListChangedProcPtrFunction = + void Function(LSSharedFileListRef inList, ffi.Pointer context); +typedef LSSharedFileListItemRef = ffi.Pointer; +typedef LSSharedFileListRef = ffi.Pointer; +typedef LSSharedFileListResolutionFlags = UInt32; +typedef LangCode = SInt16; +typedef LaunchFlags = UInt16; +typedef LaunchPBPtr = ffi.Pointer; + +@ffi.Packed(2) +final class LaunchParamBlockRec extends ffi.Struct { + @UInt32() + external int reserved1; + + @UInt16() + external int reserved2; + + @UInt16() + external int launchBlockID; + + @UInt32() + external int launchEPBLength; + + @UInt16() + external int launchFileFlags; + + @LaunchFlags() + external int launchControlFlags; + + external FSRefPtr launchAppRef; + + external ProcessSerialNumber launchProcessSN; + + @UInt32() + external int launchPreferredSize; + + @UInt32() + external int launchMinimumSize; + + @UInt32() + external int launchAvailableSize; + + external AppParametersPtr launchAppParameters; +} + +final class LcarCaretClassEntry extends ffi.Struct { + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array partials; +} + +@ffi.Packed(2) +final class LcarCaretTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt16() + external int format; + + external SFNTLookupTable lookup; +} + +typedef LcarCaretTablePtr = ffi.Pointer; + +@ffi.Packed(2) +final class LocalDateTime extends ffi.Struct { + @UInt16() + external int highSeconds; + + @UInt32() + external int lowSeconds; + + @UInt16() + external int fraction$1; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int highSeconds, + required int lowSeconds, + required int fraction$1, + }) => $allocator() + ..ref.highSeconds = highSeconds + ..ref.lowSeconds = lowSeconds + ..ref.fraction$1 = fraction$1; +} + +typedef LocalDateTimeHandle = ffi.Pointer; +typedef LocalDateTimePtr = ffi.Pointer; + +@ffi.Packed(2) +final class LocaleAndVariant extends ffi.Struct { + external LocaleRef locale; + + @LocaleOperationVariant() + external int opVariant; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required LocaleRef locale, + required int opVariant, + }) => $allocator() + ..ref.locale = locale + ..ref.opVariant = opVariant; +} + +typedef LocaleNameMask = UInt32; +typedef LocaleOperationClass = FourCharCode; +typedef LocaleOperationVariant = FourCharCode; +typedef LocalePartMask = UInt32; +typedef LocaleRef = ffi.Pointer; +typedef LogicalAddress = ffi.Pointer; + +final class LongDateCvt extends ffi.Union { + @SInt64() + external int c; + + external UnnamedStruct$22 hl; +} + +typedef LongDateField = SInt8; + +final class LongDateRec extends ffi.Union { + external UnnamedStruct$15 ld; + + @ffi.Array.multi([14]) + external ffi.Array list; + + external UnnamedStruct$16 od; +} + +typedef LongDateTime = SInt64; + +final class LtagStringRange extends ffi.Struct { + @UInt16() + external int offset; + + @UInt16() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int length, + }) => $allocator() + ..ref.offset = offset + ..ref.length = length; +} + +@ffi.Packed(2) +final class LtagTable extends ffi.Struct { + @UInt32() + external int version; + + @UInt32() + external int flags; + + @UInt32() + external int numTags; + + @ffi.Array.multi([1]) + external ffi.Array tagRange; +} + +const int MACE3Type = 1296122675; + +const int MACE6Type = 1296122678; + +typedef MDItemRef = ffi.Pointer<__MDItem>; + +enum MDLabelDomain { + kMDLabelUserDomain(0), + kMDLabelLocalDomain(1); + + final int value; + const MDLabelDomain(this.value); + + static MDLabelDomain fromValue(int value) => switch (value) { + 0 => kMDLabelUserDomain, + 1 => kMDLabelLocalDomain, + _ => throw ArgumentError('Unknown value for MDLabelDomain: $value'), + }; +} + +typedef MDLabelRef = ffi.Pointer<__MDLabel>; + +final class MDQueryBatchingParams extends ffi.Struct { + @ffi.Size() + external int first_max_num; + + @ffi.Size() + external int first_max_ms; + + @ffi.Size() + external int progress_max_num; + + @ffi.Size() + external int progress_max_ms; + + @ffi.Size() + external int update_max_num; + + @ffi.Size() + external int update_max_ms; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int first_max_num, + required int first_max_ms, + required int progress_max_num, + required int progress_max_ms, + required int update_max_num, + required int update_max_ms, + }) => $allocator() + ..ref.first_max_num = first_max_num + ..ref.first_max_ms = first_max_ms + ..ref.progress_max_num = progress_max_num + ..ref.progress_max_ms = progress_max_ms + ..ref.update_max_num = update_max_num + ..ref.update_max_ms = update_max_ms; +} + +typedef MDQueryCreateResultFunction = + ffi.Pointer>; +typedef MDQueryCreateResultFunctionFunction = + ffi.Pointer Function( + MDQueryRef query, + MDItemRef item, + ffi.Pointer context, + ); +typedef MDQueryCreateValueFunction = + ffi.Pointer>; +typedef MDQueryCreateValueFunctionFunction = + ffi.Pointer Function( + MDQueryRef query, + CFStringRef attrName, + CFTypeRef attrValue, + ffi.Pointer context, + ); + +enum MDQueryOptionFlags { + kMDQuerySynchronous(1), + kMDQueryWantsUpdates(4), + kMDQueryAllowFSTranslation(8); + + final int value; + const MDQueryOptionFlags(this.value); + + static MDQueryOptionFlags fromValue(int value) => switch (value) { + 1 => kMDQuerySynchronous, + 4 => kMDQueryWantsUpdates, + 8 => kMDQueryAllowFSTranslation, + _ => throw ArgumentError('Unknown value for MDQueryOptionFlags: $value'), + }; +} + +typedef MDQueryRef = ffi.Pointer<__MDQuery>; +typedef MDQuerySortComparatorFunction = + ffi.Pointer>; +typedef MDQuerySortComparatorFunctionFunction = + CFIndex Function( + ffi.Pointer attrs1, + ffi.Pointer attrs2, + ffi.Pointer context, + ); +typedef DartMDQuerySortComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer attrs1, + ffi.Pointer attrs2, + ffi.Pointer context, + ); + +enum MDQuerySortOptionFlags { + kMDQueryReverseSortOrderFlag(1); + + final int value; + const MDQuerySortOptionFlags(this.value); + + static MDQuerySortOptionFlags fromValue(int value) => switch (value) { + 1 => kMDQueryReverseSortOrderFlag, + _ => throw ArgumentError( + 'Unknown value for MDQuerySortOptionFlags: $value', + ), + }; +} + +typedef MDS_DB_HANDLE = CSSM_DL_DB_HANDLE; +typedef MDS_FUNCS = mds_funcs; +typedef MDS_FUNCS_PTR = ffi.Pointer; +typedef MDS_HANDLE = CSSM_DL_HANDLE; + +@ffi.Packed(2) +final class MIDIDataChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @ffi.Array.multi([1]) + external ffi.Array MIDIdata; +} + +typedef MIDIDataChunkPtr = ffi.Pointer; + +const int MIDIDataID = 1296647241; + +typedef MPAddressSpaceID = ffi.Pointer; + +final class MPAddressSpaceInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + external MPCoherenceID groupID; + + @ItemCount() + external int nTasks; + + @ffi.Array.multi([16]) + external ffi.Array vsid; +} + +typedef MPAreaID = ffi.Pointer; +typedef MPCoherenceID = ffi.Pointer; +typedef MPConsoleID = ffi.Pointer; +typedef MPCpuID = ffi.Pointer; +typedef MPCriticalRegionID = ffi.Pointer; + +final class MPCriticalRegionInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + @OSType() + external int regionName; + + @ItemCount() + external int nWaiting; + + external MPTaskID waitingTaskID; + + external MPTaskID owningTask; + + @ItemCount() + external int count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required MPProcessID processID, + required int regionName, + required int nWaiting, + required MPTaskID waitingTaskID, + required MPTaskID owningTask, + required int count, + }) => $allocator() + ..ref.version = version + ..ref.processID = processID + ..ref.regionName = regionName + ..ref.nWaiting = nWaiting + ..ref.waitingTaskID = waitingTaskID + ..ref.owningTask = owningTask + ..ref.count = count; +} + +typedef MPDebuggerLevel = UInt32; + +enum MPEG4ObjectID { + kMPEG4Object_AAC_Main(1), + kMPEG4Object_AAC_LC(2), + kMPEG4Object_AAC_SSR(3), + kMPEG4Object_AAC_LTP(4), + kMPEG4Object_AAC_SBR(5), + kMPEG4Object_AAC_Scalable(6), + kMPEG4Object_TwinVQ(7), + kMPEG4Object_CELP(8), + kMPEG4Object_HVXC(9); + + final int value; + const MPEG4ObjectID(this.value); + + static MPEG4ObjectID fromValue(int value) => switch (value) { + 1 => kMPEG4Object_AAC_Main, + 2 => kMPEG4Object_AAC_LC, + 3 => kMPEG4Object_AAC_SSR, + 4 => kMPEG4Object_AAC_LTP, + 5 => kMPEG4Object_AAC_SBR, + 6 => kMPEG4Object_AAC_Scalable, + 7 => kMPEG4Object_TwinVQ, + 8 => kMPEG4Object_CELP, + 9 => kMPEG4Object_HVXC, + _ => throw ArgumentError('Unknown value for MPEG4ObjectID: $value'), + }; +} + +typedef MPEventFlags = UInt32; +typedef MPEventID = ffi.Pointer; + +final class MPEventInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + @OSType() + external int eventName; + + @ItemCount() + external int nWaiting; + + external MPTaskID waitingTaskID; + + @MPEventFlags() + external int events; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required MPProcessID processID, + required int eventName, + required int nWaiting, + required MPTaskID waitingTaskID, + required int events, + }) => $allocator() + ..ref.version = version + ..ref.processID = processID + ..ref.eventName = eventName + ..ref.nWaiting = nWaiting + ..ref.waitingTaskID = waitingTaskID + ..ref.events = events; +} + +typedef MPExceptionKind = UInt32; +typedef MPIsFullyInitializedProc = + ffi.Pointer>; +typedef MPIsFullyInitializedProcFunction = Boolean Function(); +typedef DartMPIsFullyInitializedProcFunction = DartBoolean Function(); +@Deprecated('Deprecated') +const int MPLibrary_DevelopmentRevision = 1; + +@Deprecated('Deprecated') +const int MPLibrary_MajorVersion = 2; + +@Deprecated('Deprecated') +const int MPLibrary_MinorVersion = 3; + +@Deprecated('Deprecated') +const int MPLibrary_Release = 1; + +typedef MPNotificationID = ffi.Pointer; + +final class MPNotificationInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + @OSType() + external int notificationName; + + external MPQueueID queueID; + + external ffi.Pointer p1; + + external ffi.Pointer p2; + + external ffi.Pointer p3; + + external MPEventID eventID; + + @MPEventFlags() + external int events; + + external MPSemaphoreID semaphoreID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required MPProcessID processID, + required int notificationName, + required MPQueueID queueID, + required ffi.Pointer p1, + required ffi.Pointer p2, + required ffi.Pointer p3, + required MPEventID eventID, + required int events, + required MPSemaphoreID semaphoreID, + }) => $allocator() + ..ref.version = version + ..ref.processID = processID + ..ref.notificationName = notificationName + ..ref.queueID = queueID + ..ref.p1 = p1 + ..ref.p2 = p2 + ..ref.p3 = p3 + ..ref.eventID = eventID + ..ref.events = events + ..ref.semaphoreID = semaphoreID; +} + +typedef MPOpaqueID = ffi.Pointer; +typedef MPOpaqueIDClass = UInt32; +typedef MPPageSizeClass = UInt32; +typedef MPProcessID = ffi.Pointer; +typedef MPQueueID = ffi.Pointer; + +final class MPQueueInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + @OSType() + external int queueName; + + @ItemCount() + external int nWaiting; + + external MPTaskID waitingTaskID; + + @ItemCount() + external int nMessages; + + @ItemCount() + external int nReserved; + + external ffi.Pointer p1; + + external ffi.Pointer p2; + + external ffi.Pointer p3; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required MPProcessID processID, + required int queueName, + required int nWaiting, + required MPTaskID waitingTaskID, + required int nMessages, + required int nReserved, + required ffi.Pointer p1, + required ffi.Pointer p2, + required ffi.Pointer p3, + }) => $allocator() + ..ref.version = version + ..ref.processID = processID + ..ref.queueName = queueName + ..ref.nWaiting = nWaiting + ..ref.waitingTaskID = waitingTaskID + ..ref.nMessages = nMessages + ..ref.nReserved = nReserved + ..ref.p1 = p1 + ..ref.p2 = p2 + ..ref.p3 = p3; +} + +typedef MPRemoteContext = UInt8; +typedef MPRemoteProcedure = + ffi.Pointer>; +typedef MPRemoteProcedureFunction = + ffi.Pointer Function(ffi.Pointer parameter); +typedef MPSemaphoreCount = ItemCount; +typedef MPSemaphoreID = ffi.Pointer; + +final class MPSemaphoreInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + @OSType() + external int semaphoreName; + + @ItemCount() + external int nWaiting; + + external MPTaskID waitingTaskID; + + @ItemCount() + external int maximum; + + @ItemCount() + external int count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required MPProcessID processID, + required int semaphoreName, + required int nWaiting, + required MPTaskID waitingTaskID, + required int maximum, + required int count, + }) => $allocator() + ..ref.version = version + ..ref.processID = processID + ..ref.semaphoreName = semaphoreName + ..ref.nWaiting = nWaiting + ..ref.waitingTaskID = waitingTaskID + ..ref.maximum = maximum + ..ref.count = count; +} + +typedef MPTaskID = ffi.Pointer; + +final class MPTaskInfo extends ffi.Struct { + @PBVersion() + external int version; + + @OSType() + external int name; + + @OSType() + external int queueName; + + @UInt16() + external int runState; + + @UInt16() + external int lastCPU; + + @UInt32() + external int weight; + + external MPProcessID processID; + + external AbsoluteTime cpuTime; + + external AbsoluteTime schedTime; + + external AbsoluteTime creationTime; + + @ItemCount() + external int codePageFaults; + + @ItemCount() + external int dataPageFaults; + + @ItemCount() + external int preemptions; + + external MPCpuID cpuID; + + external MPOpaqueID blockedObject; + + external MPAddressSpaceID spaceID; + + external LogicalAddress stackBase; + + external LogicalAddress stackLimit; + + external LogicalAddress stackCurr; +} + +final class MPTaskInfoVersion2 extends ffi.Struct { + @PBVersion() + external int version; + + @OSType() + external int name; + + @OSType() + external int queueName; + + @UInt16() + external int runState; + + @UInt16() + external int lastCPU; + + @UInt32() + external int weight; + + external MPProcessID processID; + + external AbsoluteTime cpuTime; + + external AbsoluteTime schedTime; + + external AbsoluteTime creationTime; + + @ItemCount() + external int codePageFaults; + + @ItemCount() + external int dataPageFaults; + + @ItemCount() + external int preemptions; + + external MPCpuID cpuID; +} + +typedef MPTaskOptions = OptionBits; +typedef MPTaskStateKind = UInt32; +typedef MPTaskWeight = UInt32; +typedef MPTimerID = ffi.Pointer; + +/// WARNING: MTLBuffer is a stub. To generate bindings for this class, include +/// MTLBuffer in your config's objc-protocols list. +/// +/// MTLBuffer +extension type MTLBuffer._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [MTLBuffer] that points to the same underlying object as [other]. + MTLBuffer.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [MTLBuffer] that wraps the given raw object pointer. + MTLBuffer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: MTLDevice is a stub. To generate bindings for this class, include +/// MTLDevice in your config's objc-protocols list. +/// +/// MTLDevice +extension type MTLDevice._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [MTLDevice] that points to the same underlying object as [other]. + MTLDevice.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [MTLDevice] that wraps the given raw object pointer. + MTLDevice.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +enum MTLPixelFormat { + MTLPixelFormatInvalid(0), + MTLPixelFormatA8Unorm(1), + MTLPixelFormatR8Unorm(10), + MTLPixelFormatR8Unorm_sRGB(11), + MTLPixelFormatR8Snorm(12), + MTLPixelFormatR8Uint(13), + MTLPixelFormatR8Sint(14), + MTLPixelFormatR16Unorm(20), + MTLPixelFormatR16Snorm(22), + MTLPixelFormatR16Uint(23), + MTLPixelFormatR16Sint(24), + MTLPixelFormatR16Float(25), + MTLPixelFormatRG8Unorm(30), + MTLPixelFormatRG8Unorm_sRGB(31), + MTLPixelFormatRG8Snorm(32), + MTLPixelFormatRG8Uint(33), + MTLPixelFormatRG8Sint(34), + MTLPixelFormatB5G6R5Unorm(40), + MTLPixelFormatA1BGR5Unorm(41), + MTLPixelFormatABGR4Unorm(42), + MTLPixelFormatBGR5A1Unorm(43), + MTLPixelFormatR32Uint(53), + MTLPixelFormatR32Sint(54), + MTLPixelFormatR32Float(55), + MTLPixelFormatRG16Unorm(60), + MTLPixelFormatRG16Snorm(62), + MTLPixelFormatRG16Uint(63), + MTLPixelFormatRG16Sint(64), + MTLPixelFormatRG16Float(65), + MTLPixelFormatRGBA8Unorm(70), + MTLPixelFormatRGBA8Unorm_sRGB(71), + MTLPixelFormatRGBA8Snorm(72), + MTLPixelFormatRGBA8Uint(73), + MTLPixelFormatRGBA8Sint(74), + MTLPixelFormatBGRA8Unorm(80), + MTLPixelFormatBGRA8Unorm_sRGB(81), + MTLPixelFormatRGB10A2Unorm(90), + MTLPixelFormatRGB10A2Uint(91), + MTLPixelFormatRG11B10Float(92), + MTLPixelFormatRGB9E5Float(93), + MTLPixelFormatBGR10A2Unorm(94), + MTLPixelFormatBGR10_XR(554), + MTLPixelFormatBGR10_XR_sRGB(555), + MTLPixelFormatRG32Uint(103), + MTLPixelFormatRG32Sint(104), + MTLPixelFormatRG32Float(105), + MTLPixelFormatRGBA16Unorm(110), + MTLPixelFormatRGBA16Snorm(112), + MTLPixelFormatRGBA16Uint(113), + MTLPixelFormatRGBA16Sint(114), + MTLPixelFormatRGBA16Float(115), + MTLPixelFormatBGRA10_XR(552), + MTLPixelFormatBGRA10_XR_sRGB(553), + MTLPixelFormatRGBA32Uint(123), + MTLPixelFormatRGBA32Sint(124), + MTLPixelFormatRGBA32Float(125), + MTLPixelFormatBC1_RGBA(130), + MTLPixelFormatBC1_RGBA_sRGB(131), + MTLPixelFormatBC2_RGBA(132), + MTLPixelFormatBC2_RGBA_sRGB(133), + MTLPixelFormatBC3_RGBA(134), + MTLPixelFormatBC3_RGBA_sRGB(135), + MTLPixelFormatBC4_RUnorm(140), + MTLPixelFormatBC4_RSnorm(141), + MTLPixelFormatBC5_RGUnorm(142), + MTLPixelFormatBC5_RGSnorm(143), + MTLPixelFormatBC6H_RGBFloat(150), + MTLPixelFormatBC6H_RGBUfloat(151), + MTLPixelFormatBC7_RGBAUnorm(152), + MTLPixelFormatBC7_RGBAUnorm_sRGB(153), + MTLPixelFormatPVRTC_RGB_2BPP(160), + MTLPixelFormatPVRTC_RGB_2BPP_sRGB(161), + MTLPixelFormatPVRTC_RGB_4BPP(162), + MTLPixelFormatPVRTC_RGB_4BPP_sRGB(163), + MTLPixelFormatPVRTC_RGBA_2BPP(164), + MTLPixelFormatPVRTC_RGBA_2BPP_sRGB(165), + MTLPixelFormatPVRTC_RGBA_4BPP(166), + MTLPixelFormatPVRTC_RGBA_4BPP_sRGB(167), + MTLPixelFormatEAC_R11Unorm(170), + MTLPixelFormatEAC_R11Snorm(172), + MTLPixelFormatEAC_RG11Unorm(174), + MTLPixelFormatEAC_RG11Snorm(176), + MTLPixelFormatEAC_RGBA8(178), + MTLPixelFormatEAC_RGBA8_sRGB(179), + MTLPixelFormatETC2_RGB8(180), + MTLPixelFormatETC2_RGB8_sRGB(181), + MTLPixelFormatETC2_RGB8A1(182), + MTLPixelFormatETC2_RGB8A1_sRGB(183), + MTLPixelFormatASTC_4x4_sRGB(186), + MTLPixelFormatASTC_5x4_sRGB(187), + MTLPixelFormatASTC_5x5_sRGB(188), + MTLPixelFormatASTC_6x5_sRGB(189), + MTLPixelFormatASTC_6x6_sRGB(190), + MTLPixelFormatASTC_8x5_sRGB(192), + MTLPixelFormatASTC_8x6_sRGB(193), + MTLPixelFormatASTC_8x8_sRGB(194), + MTLPixelFormatASTC_10x5_sRGB(195), + MTLPixelFormatASTC_10x6_sRGB(196), + MTLPixelFormatASTC_10x8_sRGB(197), + MTLPixelFormatASTC_10x10_sRGB(198), + MTLPixelFormatASTC_12x10_sRGB(199), + MTLPixelFormatASTC_12x12_sRGB(200), + MTLPixelFormatASTC_4x4_LDR(204), + MTLPixelFormatASTC_5x4_LDR(205), + MTLPixelFormatASTC_5x5_LDR(206), + MTLPixelFormatASTC_6x5_LDR(207), + MTLPixelFormatASTC_6x6_LDR(208), + MTLPixelFormatASTC_8x5_LDR(210), + MTLPixelFormatASTC_8x6_LDR(211), + MTLPixelFormatASTC_8x8_LDR(212), + MTLPixelFormatASTC_10x5_LDR(213), + MTLPixelFormatASTC_10x6_LDR(214), + MTLPixelFormatASTC_10x8_LDR(215), + MTLPixelFormatASTC_10x10_LDR(216), + MTLPixelFormatASTC_12x10_LDR(217), + MTLPixelFormatASTC_12x12_LDR(218), + MTLPixelFormatASTC_4x4_HDR(222), + MTLPixelFormatASTC_5x4_HDR(223), + MTLPixelFormatASTC_5x5_HDR(224), + MTLPixelFormatASTC_6x5_HDR(225), + MTLPixelFormatASTC_6x6_HDR(226), + MTLPixelFormatASTC_8x5_HDR(228), + MTLPixelFormatASTC_8x6_HDR(229), + MTLPixelFormatASTC_8x8_HDR(230), + MTLPixelFormatASTC_10x5_HDR(231), + MTLPixelFormatASTC_10x6_HDR(232), + MTLPixelFormatASTC_10x8_HDR(233), + MTLPixelFormatASTC_10x10_HDR(234), + MTLPixelFormatASTC_12x10_HDR(235), + MTLPixelFormatASTC_12x12_HDR(236), + MTLPixelFormatGBGR422(240), + MTLPixelFormatBGRG422(241), + MTLPixelFormatDepth16Unorm(250), + MTLPixelFormatDepth32Float(252), + MTLPixelFormatStencil8(253), + MTLPixelFormatDepth24Unorm_Stencil8(255), + MTLPixelFormatDepth32Float_Stencil8(260), + MTLPixelFormatX32_Stencil8(261), + MTLPixelFormatX24_Stencil8(262), + MTLPixelFormatUnspecialized(263); + + final int value; + const MTLPixelFormat(this.value); + + static MTLPixelFormat fromValue(int value) => switch (value) { + 0 => MTLPixelFormatInvalid, + 1 => MTLPixelFormatA8Unorm, + 10 => MTLPixelFormatR8Unorm, + 11 => MTLPixelFormatR8Unorm_sRGB, + 12 => MTLPixelFormatR8Snorm, + 13 => MTLPixelFormatR8Uint, + 14 => MTLPixelFormatR8Sint, + 20 => MTLPixelFormatR16Unorm, + 22 => MTLPixelFormatR16Snorm, + 23 => MTLPixelFormatR16Uint, + 24 => MTLPixelFormatR16Sint, + 25 => MTLPixelFormatR16Float, + 30 => MTLPixelFormatRG8Unorm, + 31 => MTLPixelFormatRG8Unorm_sRGB, + 32 => MTLPixelFormatRG8Snorm, + 33 => MTLPixelFormatRG8Uint, + 34 => MTLPixelFormatRG8Sint, + 40 => MTLPixelFormatB5G6R5Unorm, + 41 => MTLPixelFormatA1BGR5Unorm, + 42 => MTLPixelFormatABGR4Unorm, + 43 => MTLPixelFormatBGR5A1Unorm, + 53 => MTLPixelFormatR32Uint, + 54 => MTLPixelFormatR32Sint, + 55 => MTLPixelFormatR32Float, + 60 => MTLPixelFormatRG16Unorm, + 62 => MTLPixelFormatRG16Snorm, + 63 => MTLPixelFormatRG16Uint, + 64 => MTLPixelFormatRG16Sint, + 65 => MTLPixelFormatRG16Float, + 70 => MTLPixelFormatRGBA8Unorm, + 71 => MTLPixelFormatRGBA8Unorm_sRGB, + 72 => MTLPixelFormatRGBA8Snorm, + 73 => MTLPixelFormatRGBA8Uint, + 74 => MTLPixelFormatRGBA8Sint, + 80 => MTLPixelFormatBGRA8Unorm, + 81 => MTLPixelFormatBGRA8Unorm_sRGB, + 90 => MTLPixelFormatRGB10A2Unorm, + 91 => MTLPixelFormatRGB10A2Uint, + 92 => MTLPixelFormatRG11B10Float, + 93 => MTLPixelFormatRGB9E5Float, + 94 => MTLPixelFormatBGR10A2Unorm, + 554 => MTLPixelFormatBGR10_XR, + 555 => MTLPixelFormatBGR10_XR_sRGB, + 103 => MTLPixelFormatRG32Uint, + 104 => MTLPixelFormatRG32Sint, + 105 => MTLPixelFormatRG32Float, + 110 => MTLPixelFormatRGBA16Unorm, + 112 => MTLPixelFormatRGBA16Snorm, + 113 => MTLPixelFormatRGBA16Uint, + 114 => MTLPixelFormatRGBA16Sint, + 115 => MTLPixelFormatRGBA16Float, + 552 => MTLPixelFormatBGRA10_XR, + 553 => MTLPixelFormatBGRA10_XR_sRGB, + 123 => MTLPixelFormatRGBA32Uint, + 124 => MTLPixelFormatRGBA32Sint, + 125 => MTLPixelFormatRGBA32Float, + 130 => MTLPixelFormatBC1_RGBA, + 131 => MTLPixelFormatBC1_RGBA_sRGB, + 132 => MTLPixelFormatBC2_RGBA, + 133 => MTLPixelFormatBC2_RGBA_sRGB, + 134 => MTLPixelFormatBC3_RGBA, + 135 => MTLPixelFormatBC3_RGBA_sRGB, + 140 => MTLPixelFormatBC4_RUnorm, + 141 => MTLPixelFormatBC4_RSnorm, + 142 => MTLPixelFormatBC5_RGUnorm, + 143 => MTLPixelFormatBC5_RGSnorm, + 150 => MTLPixelFormatBC6H_RGBFloat, + 151 => MTLPixelFormatBC6H_RGBUfloat, + 152 => MTLPixelFormatBC7_RGBAUnorm, + 153 => MTLPixelFormatBC7_RGBAUnorm_sRGB, + 160 => MTLPixelFormatPVRTC_RGB_2BPP, + 161 => MTLPixelFormatPVRTC_RGB_2BPP_sRGB, + 162 => MTLPixelFormatPVRTC_RGB_4BPP, + 163 => MTLPixelFormatPVRTC_RGB_4BPP_sRGB, + 164 => MTLPixelFormatPVRTC_RGBA_2BPP, + 165 => MTLPixelFormatPVRTC_RGBA_2BPP_sRGB, + 166 => MTLPixelFormatPVRTC_RGBA_4BPP, + 167 => MTLPixelFormatPVRTC_RGBA_4BPP_sRGB, + 170 => MTLPixelFormatEAC_R11Unorm, + 172 => MTLPixelFormatEAC_R11Snorm, + 174 => MTLPixelFormatEAC_RG11Unorm, + 176 => MTLPixelFormatEAC_RG11Snorm, + 178 => MTLPixelFormatEAC_RGBA8, + 179 => MTLPixelFormatEAC_RGBA8_sRGB, + 180 => MTLPixelFormatETC2_RGB8, + 181 => MTLPixelFormatETC2_RGB8_sRGB, + 182 => MTLPixelFormatETC2_RGB8A1, + 183 => MTLPixelFormatETC2_RGB8A1_sRGB, + 186 => MTLPixelFormatASTC_4x4_sRGB, + 187 => MTLPixelFormatASTC_5x4_sRGB, + 188 => MTLPixelFormatASTC_5x5_sRGB, + 189 => MTLPixelFormatASTC_6x5_sRGB, + 190 => MTLPixelFormatASTC_6x6_sRGB, + 192 => MTLPixelFormatASTC_8x5_sRGB, + 193 => MTLPixelFormatASTC_8x6_sRGB, + 194 => MTLPixelFormatASTC_8x8_sRGB, + 195 => MTLPixelFormatASTC_10x5_sRGB, + 196 => MTLPixelFormatASTC_10x6_sRGB, + 197 => MTLPixelFormatASTC_10x8_sRGB, + 198 => MTLPixelFormatASTC_10x10_sRGB, + 199 => MTLPixelFormatASTC_12x10_sRGB, + 200 => MTLPixelFormatASTC_12x12_sRGB, + 204 => MTLPixelFormatASTC_4x4_LDR, + 205 => MTLPixelFormatASTC_5x4_LDR, + 206 => MTLPixelFormatASTC_5x5_LDR, + 207 => MTLPixelFormatASTC_6x5_LDR, + 208 => MTLPixelFormatASTC_6x6_LDR, + 210 => MTLPixelFormatASTC_8x5_LDR, + 211 => MTLPixelFormatASTC_8x6_LDR, + 212 => MTLPixelFormatASTC_8x8_LDR, + 213 => MTLPixelFormatASTC_10x5_LDR, + 214 => MTLPixelFormatASTC_10x6_LDR, + 215 => MTLPixelFormatASTC_10x8_LDR, + 216 => MTLPixelFormatASTC_10x10_LDR, + 217 => MTLPixelFormatASTC_12x10_LDR, + 218 => MTLPixelFormatASTC_12x12_LDR, + 222 => MTLPixelFormatASTC_4x4_HDR, + 223 => MTLPixelFormatASTC_5x4_HDR, + 224 => MTLPixelFormatASTC_5x5_HDR, + 225 => MTLPixelFormatASTC_6x5_HDR, + 226 => MTLPixelFormatASTC_6x6_HDR, + 228 => MTLPixelFormatASTC_8x5_HDR, + 229 => MTLPixelFormatASTC_8x6_HDR, + 230 => MTLPixelFormatASTC_8x8_HDR, + 231 => MTLPixelFormatASTC_10x5_HDR, + 232 => MTLPixelFormatASTC_10x6_HDR, + 233 => MTLPixelFormatASTC_10x8_HDR, + 234 => MTLPixelFormatASTC_10x10_HDR, + 235 => MTLPixelFormatASTC_12x10_HDR, + 236 => MTLPixelFormatASTC_12x12_HDR, + 240 => MTLPixelFormatGBGR422, + 241 => MTLPixelFormatBGRG422, + 250 => MTLPixelFormatDepth16Unorm, + 252 => MTLPixelFormatDepth32Float, + 253 => MTLPixelFormatStencil8, + 255 => MTLPixelFormatDepth24Unorm_Stencil8, + 260 => MTLPixelFormatDepth32Float_Stencil8, + 261 => MTLPixelFormatX32_Stencil8, + 262 => MTLPixelFormatX24_Stencil8, + 263 => MTLPixelFormatUnspecialized, + _ => throw ArgumentError('Unknown value for MTLPixelFormat: $value'), + }; +} + +/// WARNING: MTLTexture is a stub. To generate bindings for this class, include +/// MTLTexture in your config's objc-protocols list. +/// +/// MTLTexture +extension type MTLTexture._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [MTLTexture] that points to the same underlying object as [other]. + MTLTexture.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [MTLTexture] that wraps the given raw object pointer. + MTLTexture.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +final class MacPolygon extends ffi.Struct { + @ffi.Short() + external int polySize; + + external Rect polyBBox; + + @ffi.Array.multi([1]) + external ffi.Array polyPoints; +} + +final class MachineInformation extends ffi.Struct { + external ffi.Pointer __unusedMachineInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedMachineInformationField, + }) => + $allocator() + ..ref.__unusedMachineInformationField = $unusedMachineInformationField; +} + +final class MachineInformationPowerPC extends ffi.Struct { + external UnsignedWide CTR; + + external UnsignedWide LR; + + external UnsignedWide PC; + + @ffi.UnsignedLong() + external int CRRegister; + + @ffi.UnsignedLong() + external int XER; + + @ffi.UnsignedLong() + external int MSR; + + @ffi.UnsignedLong() + external int MQ; + + @ffi.UnsignedLong() + external int ExceptKind; + + @ffi.UnsignedLong() + external int DSISR; + + external UnsignedWide DAR; + + external UnsignedWide Reserved; +} + +@ffi.Packed(2) +final class MachineLocation extends ffi.Struct { + @Fract() + external int latitude; + + @Fract() + external int longitude; + + external UnnamedUnion$3 u; +} + +@ffi.Packed(2) +final class Marker extends ffi.Struct { + @MarkerIdType() + external int id; + + @UInt32() + external int position; + + @ffi.Array.multi([256]) + external ffi.Array markerName; +} + +@ffi.Packed(2) +final class MarkerChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt16() + external int numMarkers; + + @ffi.Array.multi([1]) + external ffi.Array Markers; +} + +typedef MarkerChunkPtr = ffi.Pointer; + +const int MarkerID = 1296126539; + +typedef MarkerIdType = SInt16; + +final class MemoryExceptionInformation extends ffi.Struct { + external AreaID theArea; + + external LogicalAddress theAddress; + + @OSStatus() + external int theError; + + @MemoryReferenceKind() + external int theReference; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required AreaID theArea, + required LogicalAddress theAddress, + required int theError, + required int theReference, + }) => $allocator() + ..ref.theArea = theArea + ..ref.theAddress = theAddress + ..ref.theError = theError + ..ref.theReference = theReference; +} + +typedef MemoryReferenceKind = ffi.UnsignedLong; +typedef DartMemoryReferenceKind = int; + +/// MicrophoneInjection +extension MicrophoneInjection on AVAudioSession { + /// isMicrophoneInjectionAvailable + bool get isMicrophoneInjectionAvailable { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.isMicrophoneInjectionAvailable', + iOS: (false, (18, 2, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635( + _$$ref.pointer, + _sel_isMicrophoneInjectionAvailable, + ); + } + + /// preferredMicrophoneInjectionMode + AVAudioSessionMicrophoneInjectionMode get preferredMicrophoneInjectionMode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredMicrophoneInjectionMode', + iOS: (false, (18, 2, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_6pykvq( + _$$ref.pointer, + _sel_preferredMicrophoneInjectionMode, + ); + return AVAudioSessionMicrophoneInjectionMode.fromValue($ret); + } + + /// setPreferredMicrophoneInjectionMode:error: + bool setPreferredMicrophoneInjectionMode( + AVAudioSessionMicrophoneInjectionMode inValue, + ) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredMicrophoneInjectionMode:error:', + iOS: (false, (18, 2, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_2naryv( + _$$ref.pointer, + _sel_setPreferredMicrophoneInjectionMode_error_, + inValue.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +@ffi.Packed(2) +final class MixedModeStateRecord extends ffi.Struct { + @UInt32() + external int state1; + + @UInt32() + external int state2; + + @UInt32() + external int state3; + + @UInt32() + external int state4; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int state1, + required int state2, + required int state3, + required int state4, + }) => $allocator() + ..ref.state1 = state1 + ..ref.state2 = state2 + ..ref.state3 = state3 + ..ref.state4 = state4; +} + +@ffi.Packed(2) +final class MortChain extends ffi.Struct { + @MortSubtableMaskFlags() + external int defaultFlags; + + @UInt32() + external int length; + + @UInt16() + external int nFeatures; + + @UInt16() + external int nSubtables; + + @ffi.Array.multi([1]) + external ffi.Array featureEntries; +} + +final class MortContextualSubtable extends ffi.Struct { + external STHeader header; + + @UInt16() + external int substitutionTableOffset; +} + +@ffi.Packed(2) +final class MortFeatureEntry extends ffi.Struct { + @UInt16() + external int featureType; + + @UInt16() + external int featureSelector; + + @MortSubtableMaskFlags() + external int enableFlags; + + @MortSubtableMaskFlags() + external int disableFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int featureType, + required int featureSelector, + required int enableFlags, + required int disableFlags, + }) => $allocator() + ..ref.featureType = featureType + ..ref.featureSelector = featureSelector + ..ref.enableFlags = enableFlags + ..ref.disableFlags = disableFlags; +} + +final class MortInsertionSubtable extends ffi.Struct { + external STHeader header; +} + +typedef MortLigatureActionEntry = UInt32; + +final class MortLigatureSubtable extends ffi.Struct { + external STHeader header; + + @UInt16() + external int ligatureActionTableOffset; + + @UInt16() + external int componentTableOffset; + + @UInt16() + external int ligatureTableOffset; +} + +final class MortRearrangementSubtable extends ffi.Struct { + external STHeader header; +} + +final class MortSpecificSubtable extends ffi.Union { + external MortRearrangementSubtable rearrangement; + + external MortContextualSubtable contextual; + + external MortLigatureSubtable ligature; + + external MortSwashSubtable swash; + + external MortInsertionSubtable insertion; +} + +@ffi.Packed(2) +final class MortSubtable extends ffi.Struct { + @UInt16() + external int length; + + @UInt16() + external int coverage; + + @MortSubtableMaskFlags() + external int flags; + + external MortSpecificSubtable u; +} + +typedef MortSubtableMaskFlags = UInt32; + +final class MortSwashSubtable extends ffi.Struct { + external SFNTLookupTable lookup; +} + +@ffi.Packed(2) +final class MortTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt32() + external int nChains; + + @ffi.Array.multi([1]) + external ffi.Array chains; +} + +@ffi.Packed(2) +final class MorxChain extends ffi.Struct { + @MortSubtableMaskFlags() + external int defaultFlags; + + @UInt32() + external int length; + + @UInt32() + external int nFeatures; + + @UInt32() + external int nSubtables; + + @ffi.Array.multi([1]) + external ffi.Array featureEntries; +} + +@ffi.Packed(2) +final class MorxContextualSubtable extends ffi.Struct { + external STXHeader header; + + @UInt32() + external int substitutionTableOffset; +} + +@ffi.Packed(2) +final class MorxInsertionSubtable extends ffi.Struct { + external STXHeader header; + + @UInt32() + external int insertionGlyphTableOffset; +} + +@ffi.Packed(2) +final class MorxLigatureSubtable extends ffi.Struct { + external STXHeader header; + + @UInt32() + external int ligatureActionTableOffset; + + @UInt32() + external int componentTableOffset; + + @UInt32() + external int ligatureTableOffset; +} + +final class MorxRearrangementSubtable extends ffi.Struct { + external STXHeader header; +} + +final class MorxSpecificSubtable extends ffi.Union { + external MorxRearrangementSubtable rearrangement; + + external MorxContextualSubtable contextual; + + external MorxLigatureSubtable ligature; + + external MortSwashSubtable swash; + + external MorxInsertionSubtable insertion; +} + +@ffi.Packed(2) +final class MorxSubtable extends ffi.Struct { + @UInt32() + external int length; + + @UInt32() + external int coverage; + + @MortSubtableMaskFlags() + external int flags; + + external MorxSpecificSubtable u; +} + +@ffi.Packed(2) +final class MorxTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt32() + external int nChains; + + @ffi.Array.multi([1]) + external ffi.Array chains; +} + +final class NCMConcatProfileSet extends ffi.Struct { + @OSType() + external int cmm; + + @UInt32() + external int flags; + + @UInt32() + external int flagsMask; + + @UInt32() + external int profileCount; + + @ffi.Array.multi([1]) + external ffi.Array profileSpecs; +} + +final class NCMConcatProfileSpec extends ffi.Struct { + @UInt32() + external int renderingIntent; + + @UInt32() + external int transformTag; + + external CMProfileRef profile; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int renderingIntent, + required int transformTag, + required CMProfileRef profile, + }) => $allocator() + ..ref.renderingIntent = renderingIntent + ..ref.transformTag = transformTag + ..ref.profile = profile; +} + +final class NCMDeviceProfileInfo extends ffi.Struct { + @UInt32() + external int dataVersion; + + @CMDeviceProfileID() + external int profileID; + + external CMProfileLocation profileLoc; + + external CFDictionaryRef profileName; + + external CMDeviceProfileScope profileScope; + + @UInt32() + external int reserved; +} + +final class NDR_record_t extends ffi.Struct { + @ffi.UnsignedChar() + external int mig_vers; + + @ffi.UnsignedChar() + external int if_vers; + + @ffi.UnsignedChar() + external int reserved1; + + @ffi.UnsignedChar() + external int mig_encoding; + + @ffi.UnsignedChar() + external int int_rep; + + @ffi.UnsignedChar() + external int char_rep; + + @ffi.UnsignedChar() + external int float_rep; + + @ffi.UnsignedChar() + external int reserved2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mig_vers, + required int if_vers, + required int reserved1, + required int mig_encoding, + required int int_rep, + required int char_rep, + required int float_rep, + required int reserved2, + }) => $allocator() + ..ref.mig_vers = mig_vers + ..ref.if_vers = if_vers + ..ref.reserved1 = reserved1 + ..ref.mig_encoding = mig_encoding + ..ref.int_rep = int_rep + ..ref.char_rep = char_rep + ..ref.float_rep = float_rep + ..ref.reserved2 = reserved2; +} + +typedef NItl4Handle = ffi.Pointer; +typedef NItl4Ptr = ffi.Pointer; + +@ffi.Packed(2) +final class NItl4Rec extends ffi.Struct { + @ffi.Short() + external int flags; + + @SInt32() + external int resourceType; + + @ffi.Short() + external int resourceNum; + + @ffi.Short() + external int version; + + @ffi.Short() + external int format; + + @ffi.Short() + external int resHeader; + + @SInt32() + external int resHeader2; + + @ffi.Short() + external int numTables; + + @SInt32() + external int mapOffset; + + @SInt32() + external int strOffset; + + @SInt32() + external int fetchOffset; + + @SInt32() + external int unTokenOffset; + + @SInt32() + external int defPartsOffset; + + @SInt32() + external int whtSpListOffset; + + @SInt32() + external int resOffset7; + + @SInt32() + external int resOffset8; + + @ffi.Short() + external int resLength1; + + @ffi.Short() + external int resLength2; + + @ffi.Short() + external int resLength3; + + @ffi.Short() + external int unTokenLength; + + @ffi.Short() + external int defPartsLength; + + @ffi.Short() + external int whtSpListLength; + + @ffi.Short() + external int resLength7; + + @ffi.Short() + external int resLength8; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int resourceType, + required int resourceNum, + required int version, + required int format, + required int resHeader, + required int resHeader2, + required int numTables, + required int mapOffset, + required int strOffset, + required int fetchOffset, + required int unTokenOffset, + required int defPartsOffset, + required int whtSpListOffset, + required int resOffset7, + required int resOffset8, + required int resLength1, + required int resLength2, + required int resLength3, + required int unTokenLength, + required int defPartsLength, + required int whtSpListLength, + required int resLength7, + required int resLength8, + }) => $allocator() + ..ref.flags = flags + ..ref.resourceType = resourceType + ..ref.resourceNum = resourceNum + ..ref.version = version + ..ref.format = format + ..ref.resHeader = resHeader + ..ref.resHeader2 = resHeader2 + ..ref.numTables = numTables + ..ref.mapOffset = mapOffset + ..ref.strOffset = strOffset + ..ref.fetchOffset = fetchOffset + ..ref.unTokenOffset = unTokenOffset + ..ref.defPartsOffset = defPartsOffset + ..ref.whtSpListOffset = whtSpListOffset + ..ref.resOffset7 = resOffset7 + ..ref.resOffset8 = resOffset8 + ..ref.resLength1 = resLength1 + ..ref.resLength2 = resLength2 + ..ref.resLength3 = resLength3 + ..ref.unTokenLength = unTokenLength + ..ref.defPartsLength = defPartsLength + ..ref.whtSpListLength = whtSpListLength + ..ref.resLength7 = resLength7 + ..ref.resLength8 = resLength8; +} + +const int NSASCIIStringEncoding = 1; + +sealed class NSActivityOptions { + static const NSActivityIdleDisplaySleepDisabled = 1099511627776; + static const NSActivityIdleSystemSleepDisabled = 1048576; + static const NSActivitySuddenTerminationDisabled = 16384; + static const NSActivityAutomaticTerminationDisabled = 32768; + static const NSActivityAnimationTrackingEnabled = 35184372088832; + static const NSActivityTrackingEnabled = 70368744177664; + static const NSActivityUserInitiated = 16777215; + static const NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; + static const NSActivityBackground = 255; + static const NSActivityLatencyCritical = 1095216660480; + static const NSActivityUserInteractive = 1095233437695; +} + +final class NSAffineTransformStruct extends ffi.Struct { + @CGFloat() + external double m11; + + @CGFloat() + external double m12; + + @CGFloat() + external double m21; + + @CGFloat() + external double m22; + + @CGFloat() + external double tX; + + @CGFloat() + external double tY; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double m11, + required double m12, + required double m21, + required double m22, + required double tX, + required double tY, + }) => $allocator() + ..ref.m11 = m11 + ..ref.m12 = m12 + ..ref.m21 = m21 + ..ref.m22 = m22 + ..ref.tX = tX + ..ref.tY = tY; +} + +sealed class NSAlignmentOptions { + static const NSAlignMinXInward = 1; + static const NSAlignMinYInward = 2; + static const NSAlignMaxXInward = 4; + static const NSAlignMaxYInward = 8; + static const NSAlignWidthInward = 16; + static const NSAlignHeightInward = 32; + static const NSAlignMinXOutward = 256; + static const NSAlignMinYOutward = 512; + static const NSAlignMaxXOutward = 1024; + static const NSAlignMaxYOutward = 2048; + static const NSAlignWidthOutward = 4096; + static const NSAlignHeightOutward = 8192; + static const NSAlignMinXNearest = 65536; + static const NSAlignMinYNearest = 131072; + static const NSAlignMaxXNearest = 262144; + static const NSAlignMaxYNearest = 524288; + static const NSAlignWidthNearest = 1048576; + static const NSAlignHeightNearest = 2097152; + static const NSAlignRectFlipped = -9223372036854775808; + static const NSAlignAllEdgesInward = 15; + static const NSAlignAllEdgesOutward = 3840; + static const NSAlignAllEdgesNearest = 983040; +} + +/// WARNING: NSAppleEventDescriptor is a stub. To generate bindings for this class, include +/// NSAppleEventDescriptor in your config's objc-interfaces list. +/// +/// NSAppleEventDescriptor +extension type NSAppleEventDescriptor._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSAppleEventDescriptor] that points to the same underlying object as [other]. + NSAppleEventDescriptor.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSAppleEventDescriptor] that wraps the given raw object pointer. + NSAppleEventDescriptor.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +typedef NSAppleEventManagerSuspensionID = + ffi.Pointer<__NSAppleEventManagerSuspension>; + +/// WARNING: NSArchiver is a stub. To generate bindings for this class, include +/// NSArchiver in your config's objc-interfaces list. +/// +/// NSArchiver +@Deprecated('Use NSKeyedArchiver instead') +extension type NSArchiver._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSCoder { + /// Constructs a [NSArchiver] that points to the same underlying object as [other]. + NSArchiver.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSArchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSArchiver] that wraps the given raw object pointer. + NSArchiver.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSArchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +/// NSArchiverCallback +extension NSArchiverCallback on objc.NSObject { + /// classForArchiver + objc.ObjCObject? get classForArchiver { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classForArchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForArchiver); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// replacementObjectForArchiver: + @Deprecated('Deprecated') + objc.ObjCObject? replacementObjectForArchiver(NSArchiver archiver) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + objc.checkOsVersionInternal( + 'NSObject.replacementObjectForArchiver:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_replacementObjectForArchiver_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +const int NSArgumentEvaluationScriptError = 3; + +const int NSArgumentsWrongScriptError = 6; + +/// NSArrayCreation +extension NSArrayCreation on objc.NSArray { + /// initWithArray: + objc.NSArray initWithArray(objc.NSArray array) { + final _$$ref = object$.ref; + final _$$ref$1 = array.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + objc.NSArray initWithArray$1(objc.NSArray array, {required bool copyItems}) { + final _$$ref = object$.ref; + final _$$ref$1 = array.ref; + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSArray.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL:error: + objc.NSArray? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSArray.initWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithObjects: + objc.NSArray initWithObjects$1(objc.ObjCObject firstObj) { + final _$$ref = object$.ref; + final _$$ref$1 = firstObj.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjects_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: false, release: true); + } + + /// array + static objc.NSArray array() { + final $ret = _objc_msgSend_151sglz(_class_NSArray, _sel_array); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithArray: + static objc.NSArray arrayWithArray(objc.NSArray array) { + final _$$ref = array.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithArray_, + _$$ref.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithContentsOfURL:error: + static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSArray.arrayWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _class_NSArray, + _sel_arrayWithContentsOfURL_error_, + _$$ref.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// arrayWithObject: + static objc.NSArray arrayWithObject(objc.ObjCObject anObject) { + final _$$ref = anObject.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithObject_, + _$$ref.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithObjects: + static objc.NSArray arrayWithObjects(objc.ObjCObject firstObj) { + final _$$ref = firstObj.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithObjects_, + _$$ref.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithObjects:count: + static objc.NSArray arrayWithObjects$1( + ffi.Pointer> objects, { + required DartNSUInteger count, + }) { + final $ret = _objc_msgSend_zmbtbd( + _class_NSArray, + _sel_arrayWithObjects_count_, + objects, + count, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSArrayDiffing +extension NSArrayDiffing on objc.NSArray { + /// arrayByApplyingDifference: + objc.NSArray? arrayByApplyingDifference( + objc.NSOrderedCollectionDifference difference, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = difference.ref; + objc.checkOsVersionInternal( + 'NSArray.arrayByApplyingDifference:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_arrayByApplyingDifference_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// differenceFromArray: + objc.NSOrderedCollectionDifference differenceFromArray(objc.NSArray other) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + objc.checkOsVersionInternal( + 'NSArray.differenceFromArray:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_differenceFromArray_, + _$$ref$1.pointer, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// differenceFromArray:withOptions: + objc.NSOrderedCollectionDifference differenceFromArray$1( + objc.NSArray other, { + required DartNSUInteger withOptions, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + objc.checkOsVersionInternal( + 'NSArray.differenceFromArray:withOptions:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1wtpmu7( + _$$ref.pointer, + _sel_differenceFromArray_withOptions_, + _$$ref$1.pointer, + withOptions, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// differenceFromArray:withOptions:usingEquivalenceTest: + objc.NSOrderedCollectionDifference differenceFromArray$2( + objc.NSArray other, { + required DartNSUInteger withOptions, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingEquivalenceTest, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + final _$$ref$2 = usingEquivalenceTest.ref; + objc.checkOsVersionInternal( + 'NSArray.differenceFromArray:withOptions:usingEquivalenceTest:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1415lvo( + _$$ref.pointer, + _sel_differenceFromArray_withOptions_usingEquivalenceTest_, + _$$ref$1.pointer, + withOptions, + _$$ref$2.pointer, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSArrayPathExtensions +extension NSArrayPathExtensions on objc.NSArray { + /// pathsMatchingExtensions: + objc.NSArray pathsMatchingExtensions(objc.NSArray filterTypes) { + final _$$ref = object$.ref; + final _$$ref$1 = filterTypes.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_pathsMatchingExtensions_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSAttributedStringCreateFromMarkdown +extension NSAttributedStringCreateFromMarkdown on objc.NSAttributedString { + /// initWithContentsOfMarkdownFileAtURL:options:baseURL:error: + objc.NSAttributedString? initWithContentsOfMarkdownFileAtURL( + objc.NSURL markdownFile, { + objc.NSAttributedStringMarkdownParsingOptions? options, + objc.NSURL? baseURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markdownFile.ref; + final _$$ref$2 = options?.ref; + final _$$ref$3 = baseURL?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithContentsOfMarkdownFileAtURL:options:baseURL:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1k0ezzm( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithMarkdown:options:baseURL:error: + objc.NSAttributedString? initWithMarkdown( + objc.NSData markdown, { + objc.NSAttributedStringMarkdownParsingOptions? options, + objc.NSURL? baseURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markdown.ref; + final _$$ref$2 = options?.ref; + final _$$ref$3 = baseURL?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithMarkdown:options:baseURL:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1k0ezzm( + _$$ref.retainAndReturnPointer(), + _sel_initWithMarkdown_options_baseURL_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithMarkdownString:options:baseURL:error: + objc.NSAttributedString? initWithMarkdownString( + objc.NSString markdownString, { + objc.NSAttributedStringMarkdownParsingOptions? options, + objc.NSURL? baseURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markdownString.ref; + final _$$ref$2 = options?.ref; + final _$$ref$3 = baseURL?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithMarkdownString:options:baseURL:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1k0ezzm( + _$$ref.retainAndReturnPointer(), + _sel_initWithMarkdownString_options_baseURL_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +/// NSAttributedStringFormatting +extension NSAttributedStringFormatting on objc.NSAttributedString { + /// initWithFormat:options:locale: + objc.NSAttributedString initWithFormat( + objc.NSAttributedString format, { + required DartNSUInteger options, + objc.NSLocale? locale, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + final _$$ref$2 = locale?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithFormat:options:locale:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_187k8ck( + _$$ref.retainAndReturnPointer(), + _sel_initWithFormat_options_locale_, + _$$ref$1.pointer, + options, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// initWithFormat:options:locale:context: + objc.NSAttributedString initWithFormat$1( + objc.NSAttributedString format, { + required DartNSUInteger options, + objc.NSLocale? locale, + required objc.NSDictionary context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + final _$$ref$2 = locale?.ref; + final _$$ref$3 = context.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithFormat:options:locale:context:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_3fn4ca( + _$$ref.retainAndReturnPointer(), + _sel_initWithFormat_options_locale_context_, + _$$ref$1.pointer, + options, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// localizedAttributedStringWithFormat: + static objc.NSAttributedString localizedAttributedStringWithFormat( + objc.NSAttributedString format, + ) { + final _$$ref = format.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_, + _$$ref.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// localizedAttributedStringWithFormat:context: + static objc.NSAttributedString localizedAttributedStringWithFormat$1( + objc.NSAttributedString format, { + required objc.NSDictionary context, + }) { + final _$$ref = format.ref; + final _$$ref$1 = context.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:context:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_context_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// localizedAttributedStringWithFormat:options: + static objc.NSAttributedString localizedAttributedStringWithFormat$2( + objc.NSAttributedString format, { + required DartNSUInteger options, + }) { + final _$$ref = format.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:options:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_s058d2( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_options_, + _$$ref.pointer, + options, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// localizedAttributedStringWithFormat:options:context: + static objc.NSAttributedString localizedAttributedStringWithFormat$3( + objc.NSAttributedString format, { + required DartNSUInteger options, + required objc.NSDictionary context, + }) { + final _$$ref = format.ref; + final _$$ref$1 = context.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:options:context:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_187k8ck( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_options_context_, + _$$ref.pointer, + options, + _$$ref$1.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +typedef NSAttributedStringFormattingContextKey = + ffi.Pointer; +typedef DartNSAttributedStringFormattingContextKey = objc.NSString; +typedef NSAttributedStringKey = ffi.Pointer; +typedef DartNSAttributedStringKey = objc.NSString; +typedef NSBackgroundActivityCompletionHandler = ffi.Pointer; +typedef DartNSBackgroundActivityCompletionHandler = + objc.ObjCBlock; + +enum NSBackgroundActivityResult { + NSBackgroundActivityResultFinished(1), + NSBackgroundActivityResultDeferred(2); + + final int value; + const NSBackgroundActivityResult(this.value); + + static NSBackgroundActivityResult fromValue(int value) => switch (value) { + 1 => NSBackgroundActivityResultFinished, + 2 => NSBackgroundActivityResultDeferred, + _ => throw ArgumentError( + 'Unknown value for NSBackgroundActivityResult: $value', + ), + }; +} + +const int NSBundleErrorMaximum = 5119; + +const int NSBundleErrorMinimum = 4992; + +const int NSBundleExecutableArchitectureARM64 = 16777228; + +const int NSBundleExecutableArchitectureI386 = 7; + +const int NSBundleExecutableArchitecturePPC = 18; + +const int NSBundleExecutableArchitecturePPC64 = 16777234; + +const int NSBundleExecutableArchitectureX86_64 = 16777223; + +/// NSBundleExtensionMethods +extension NSBundleExtensionMethods on objc.NSString { + /// variantFittingPresentationWidth: + objc.NSString variantFittingPresentationWidth(DartNSInteger width) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.variantFittingPresentationWidth:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $ret = _objc_msgSend_qugqlf( + _$$ref.pointer, + _sel_variantFittingPresentationWidth_, + width, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +const int NSBundleOnDemandResourceExceededMaximumSizeError = 4993; + +const int NSBundleOnDemandResourceInvalidTagError = 4994; + +const int NSBundleOnDemandResourceOutOfSpaceError = 4992; + +/// NSBundleResourceRequestAdditions +extension NSBundleResourceRequestAdditions on objc.NSBundle { + /// preservationPriorityForTag: + double preservationPriorityForTag(objc.NSString tag) { + final _$$ref = object$.ref; + final _$$ref$1 = tag.ref; + objc.checkOsVersionInternal( + 'NSBundle.preservationPriorityForTag:', + iOS: (false, (9, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_mabicuFpret( + _$$ref.pointer, + _sel_preservationPriorityForTag_, + _$$ref$1.pointer, + ) + : _objc_msgSend_mabicu( + _$$ref.pointer, + _sel_preservationPriorityForTag_, + _$$ref$1.pointer, + ); + } + + /// setPreservationPriority:forTags: + void setPreservationPriority(double priority, {required objc.NSSet forTags}) { + final _$$ref = object$.ref; + final _$$ref$1 = forTags.ref; + objc.checkOsVersionInternal( + 'NSBundle.setPreservationPriority:forTags:', + iOS: (false, (9, 0, 0)), + macOS: (true, null), + ); + _objc_msgSend_130mcug( + _$$ref.pointer, + _sel_setPreservationPriority_forTags_, + priority, + _$$ref$1.pointer, + ); + } +} + +enum NSByteCountFormatterCountStyle { + NSByteCountFormatterCountStyleFile(0), + NSByteCountFormatterCountStyleMemory(1), + NSByteCountFormatterCountStyleDecimal(2), + NSByteCountFormatterCountStyleBinary(3); + + final int value; + const NSByteCountFormatterCountStyle(this.value); + + static NSByteCountFormatterCountStyle fromValue(int value) => switch (value) { + 0 => NSByteCountFormatterCountStyleFile, + 1 => NSByteCountFormatterCountStyleMemory, + 2 => NSByteCountFormatterCountStyleDecimal, + 3 => NSByteCountFormatterCountStyleBinary, + _ => throw ArgumentError( + 'Unknown value for NSByteCountFormatterCountStyle: $value', + ), + }; +} + +sealed class NSByteCountFormatterUnits { + static const NSByteCountFormatterUseDefault = 0; + static const NSByteCountFormatterUseBytes = 1; + static const NSByteCountFormatterUseKB = 2; + static const NSByteCountFormatterUseMB = 4; + static const NSByteCountFormatterUseGB = 8; + static const NSByteCountFormatterUseTB = 16; + static const NSByteCountFormatterUsePB = 32; + static const NSByteCountFormatterUseEB = 64; + static const NSByteCountFormatterUseZB = 128; + static const NSByteCountFormatterUseYBOrHigher = 65280; + static const NSByteCountFormatterUseAll = 65535; +} + +/// WARNING: NSCache is a stub. To generate bindings for this class, include +/// NSCache in your config's objc-interfaces list. +/// +/// NSCache +extension type NSCache._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSCache] that points to the same underlying object as [other]. + NSCache.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSCache', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } + + /// Constructs a [NSCache] that wraps the given raw object pointer. + NSCache.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSCache', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } +} + +/// NSCacheDelegate +extension type NSCacheDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSCacheDelegate] that points to the same underlying object as [other]. + NSCacheDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSCacheDelegate] that wraps the given raw object pointer. + NSCacheDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSCacheDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSCacheDelegate, + ); + } +} + +extension NSCacheDelegate$Methods on NSCacheDelegate { + /// cache:willEvictObject: + void cache(NSCache cache, {required objc.ObjCObject willEvictObject}) { + final _$$ref = object$.ref; + final _$$ref$1 = cache.ref; + final _$$ref$2 = willEvictObject.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_cache_willEvictObject_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSCacheDelegate', + 'cache:willEvictObject:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_cache_willEvictObject_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSCacheDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSCacheDelegate.cast()); + + /// Builds an object that implements the NSCacheDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCacheDelegate implement({ + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); + NSCacheDelegate$Builder.cache_willEvictObject_.implement( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + return NSCacheDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCacheDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + NSCacheDelegate$Builder.cache_willEvictObject_.implement( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSCacheDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCacheDelegate implementAsListener({ + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); + NSCacheDelegate$Builder.cache_willEvictObject_.implementAsListener( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + return NSCacheDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCacheDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + NSCacheDelegate$Builder.cache_willEvictObject_.implementAsListener( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSCacheDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCacheDelegate implementAsBlocking({ + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); + NSCacheDelegate$Builder.cache_willEvictObject_.implementAsBlocking( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + return NSCacheDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCacheDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + NSCacheDelegate$Builder.cache_willEvictObject_.implementAsBlocking( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + } + + /// cache:willEvictObject: + static final cache_willEvictObject_ = + objc.ObjCProtocolListenableMethod< + void Function(NSCache, objc.ObjCObject) + >( + _protocol_NSCacheDelegate, + _sel_cache_willEvictObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCacheDelegate, + _sel_cache_willEvictObject_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSCache, objc.ObjCObject) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.fromFunction( + (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => + func(arg1, arg2), + ), + (void Function(NSCache, objc.ObjCObject) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.listener( + (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => + func(arg1, arg2), + ), + (void Function(NSCache, objc.ObjCObject) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.blocking( + (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => + func(arg1, arg2), + ), + ); +} + +/// WARNING: NSCachedURLResponse is a stub. To generate bindings for this class, include +/// NSCachedURLResponse in your config's objc-interfaces list. +/// +/// NSCachedURLResponse +extension type NSCachedURLResponse._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSCachedURLResponse] that points to the same underlying object as [other]. + NSCachedURLResponse.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSCachedURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSCachedURLResponse] that wraps the given raw object pointer. + NSCachedURLResponse.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSCachedURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +enum NSCalculationError { + NSCalculationNoError(0), + NSCalculationLossOfPrecision(1), + NSCalculationUnderflow(2), + NSCalculationOverflow(3), + NSCalculationDivideByZero(4); + + final int value; + const NSCalculationError(this.value); + + static NSCalculationError fromValue(int value) => switch (value) { + 0 => NSCalculationNoError, + 1 => NSCalculationLossOfPrecision, + 2 => NSCalculationUnderflow, + 3 => NSCalculationOverflow, + 4 => NSCalculationDivideByZero, + _ => throw ArgumentError('Unknown value for NSCalculationError: $value'), + }; +} + +/// WARNING: NSCalendarDate is a stub. To generate bindings for this class, include +/// NSCalendarDate in your config's objc-interfaces list. +/// +/// NSCalendarDate +@Deprecated('Use NSCalendar and NSDateComponents and NSDateFormatter instead') +extension type NSCalendarDate._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSDate { + /// Constructs a [NSCalendarDate] that points to the same underlying object as [other]. + NSCalendarDate.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSCalendarDate', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } + + /// Constructs a [NSCalendarDate] that wraps the given raw object pointer. + NSCalendarDate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSCalendarDate', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } +} + +/// NSCalendarDateExtras +extension NSCalendarDateExtras on objc.NSDate { + /// dateWithCalendarFormat:timeZone: + @Deprecated('Deprecated') + NSCalendarDate dateWithCalendarFormat( + objc.NSString? format, { + NSTimeZone? timeZone, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format?.ref; + final _$$ref$2 = timeZone?.ref; + objc.checkOsVersionInternal( + 'NSDate.dateWithCalendarFormat:timeZone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_dateWithCalendarFormat_timeZone_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return NSCalendarDate.fromPointer($ret, retain: true, release: true); + } + + /// descriptionWithCalendarFormat:timeZone:locale: + @Deprecated('Deprecated') + objc.NSString? descriptionWithCalendarFormat( + objc.NSString? format, { + NSTimeZone? timeZone, + objc.ObjCObject? locale, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format?.ref; + final _$$ref$2 = timeZone?.ref; + final _$$ref$3 = locale?.ref; + objc.checkOsVersionInternal( + 'NSDate.descriptionWithCalendarFormat:timeZone:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_descriptionWithCalendarFormat_timeZone_locale_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// initWithString: + @Deprecated('Use NSDateFormatter instead') + objc.ObjCObject? initWithString(objc.NSString description) { + final _$$ref = object$.ref; + final _$$ref$1 = description.ref; + objc.checkOsVersionInternal( + 'NSDate.initWithString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithString_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// dateWithNaturalLanguageString: + @Deprecated( + 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', + ) + static objc.ObjCObject? dateWithNaturalLanguageString(objc.NSString string) { + final _$$ref = string.ref; + objc.checkOsVersionInternal( + 'NSDate.dateWithNaturalLanguageString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSDate, + _sel_dateWithNaturalLanguageString_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// dateWithNaturalLanguageString:locale: + @Deprecated( + 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', + ) + static objc.ObjCObject? dateWithNaturalLanguageString$1( + objc.NSString string, { + objc.ObjCObject? locale, + }) { + final _$$ref = string.ref; + final _$$ref$1 = locale?.ref; + objc.checkOsVersionInternal( + 'NSDate.dateWithNaturalLanguageString:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _class_NSDate, + _sel_dateWithNaturalLanguageString_locale_, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// dateWithString: + @Deprecated('Use NSDateFormatter instead') + static objc.ObjCObject dateWithString(objc.NSString aString) { + final _$$ref = aString.ref; + objc.checkOsVersionInternal( + 'NSDate.dateWithString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSDate, + _sel_dateWithString_, + _$$ref.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +typedef NSCalendarIdentifier = ffi.Pointer; +typedef DartNSCalendarIdentifier = objc.NSString; + +sealed class NSCalendarOptions { + static const NSCalendarWrapComponents = 1; + static const NSCalendarMatchStrictly = 2; + static const NSCalendarSearchBackwards = 4; + static const NSCalendarMatchPreviousTimePreservingSmallerUnits = 256; + static const NSCalendarMatchNextTimePreservingSmallerUnits = 512; + static const NSCalendarMatchNextTime = 1024; + static const NSCalendarMatchFirst = 4096; + static const NSCalendarMatchLast = 8192; +} + +sealed class NSCalendarUnit { + static const NSCalendarUnitEra = 2; + static const NSCalendarUnitYear = 4; + static const NSCalendarUnitMonth = 8; + static const NSCalendarUnitDay = 16; + static const NSCalendarUnitHour = 32; + static const NSCalendarUnitMinute = 64; + static const NSCalendarUnitSecond = 128; + static const NSCalendarUnitWeekday = 512; + static const NSCalendarUnitWeekdayOrdinal = 1024; + static const NSCalendarUnitQuarter = 2048; + static const NSCalendarUnitWeekOfMonth = 4096; + static const NSCalendarUnitWeekOfYear = 8192; + static const NSCalendarUnitYearForWeekOfYear = 16384; + static const NSCalendarUnitNanosecond = 32768; + static const NSCalendarUnitDayOfYear = 65536; + static const NSCalendarUnitCalendar = 1048576; + static const NSCalendarUnitTimeZone = 2097152; + static const NSCalendarUnitIsLeapMonth = 1073741824; + static const NSCalendarUnitIsRepeatedDay = 2147483648; + static const NSEraCalendarUnit = 2; + static const NSYearCalendarUnit = 4; + static const NSMonthCalendarUnit = 8; + static const NSDayCalendarUnit = 16; + static const NSHourCalendarUnit = 32; + static const NSMinuteCalendarUnit = 64; + static const NSSecondCalendarUnit = 128; + static const NSWeekCalendarUnit = 256; + static const NSWeekdayCalendarUnit = 512; + static const NSWeekdayOrdinalCalendarUnit = 1024; + static const NSQuarterCalendarUnit = 2048; + static const NSWeekOfMonthCalendarUnit = 4096; + static const NSWeekOfYearCalendarUnit = 8192; + static const NSYearForWeekOfYearCalendarUnit = 16384; + static const NSCalendarCalendarUnit = 1048576; + static const NSTimeZoneCalendarUnit = 2097152; +} + +const int NSCannotCreateScriptCommandError = 10; + +/// WARNING: NSClassDescription is a stub. To generate bindings for this class, include +/// NSClassDescription in your config's objc-interfaces list. +/// +/// NSClassDescription +extension type NSClassDescription._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSClassDescription] that points to the same underlying object as [other]. + NSClassDescription.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSClassDescription] that wraps the given raw object pointer. + NSClassDescription.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSClassDescriptionPrimitives +extension NSClassDescriptionPrimitives on objc.NSObject { + /// attributeKeys + objc.NSArray get attributeKeys { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.attributeKeys', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_attributeKeys); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// classDescription + NSClassDescription get classDescription { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classDescription', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classDescription); + return NSClassDescription.fromPointer($ret, retain: true, release: true); + } + + /// inverseForRelationshipKey: + objc.NSString? inverseForRelationshipKey(objc.NSString relationshipKey) { + final _$$ref = object$.ref; + final _$$ref$1 = relationshipKey.ref; + objc.checkOsVersionInternal( + 'NSObject.inverseForRelationshipKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_inverseForRelationshipKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// toManyRelationshipKeys + objc.NSArray get toManyRelationshipKeys { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.toManyRelationshipKeys', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_toManyRelationshipKeys, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// toOneRelationshipKeys + objc.NSArray get toOneRelationshipKeys { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.toOneRelationshipKeys', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_toOneRelationshipKeys, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSClientCertificate +extension NSClientCertificate on NSURLCredential { + /// certificates + objc.NSArray get certificates { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.certificates', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_certificates); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// identity + SecIdentityRef get identity { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.identity', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + return _objc_msgSend_nkb3zz(_$$ref.pointer, _sel_identity); + } + + /// credentialWithIdentity:certificates:persistence: + static NSURLCredential credentialWithIdentity( + SecIdentityRef identity, { + objc.NSArray? certificates, + required NSURLCredentialPersistence persistence, + }) { + final _$$ref = certificates?.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.credentialWithIdentity:certificates:persistence:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_jfo4g1( + _class_NSURLCredential, + _sel_credentialWithIdentity_certificates_persistence_, + identity, + _$$ref?.pointer ?? ffi.nullptr, + persistence.value, + ); + return NSURLCredential.fromPointer($ret, retain: true, release: true); + } +} + +/// NSClientCertificateSpace +extension NSClientCertificateSpace on NSURLProtectionSpace { + /// distinguishedNames + objc.NSArray? get distinguishedNames { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLProtectionSpace.distinguishedNames', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_distinguishedNames); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +const int NSCloudSharingConflictError = 5123; + +const int NSCloudSharingErrorMaximum = 5375; + +const int NSCloudSharingErrorMinimum = 5120; + +const int NSCloudSharingNetworkFailureError = 5120; + +const int NSCloudSharingNoPermissionError = 5124; + +const int NSCloudSharingOtherError = 5375; + +const int NSCloudSharingQuotaExceededError = 5121; + +const int NSCloudSharingTooManyParticipantsError = 5122; + +const int NSCoderErrorMaximum = 4991; + +const int NSCoderErrorMinimum = 4864; + +const int NSCoderInvalidValueError = 4866; + +/// NSCoderMethods +extension NSCoderMethods on objc.NSObject { + /// awakeAfterUsingCoder: + objc.ObjCObject? awakeAfterUsingCoder(objc.NSCoder coder) { + final _$$ref = object$.ref; + final _$$ref$1 = coder.ref; + objc.checkOsVersionInternal( + 'NSObject.awakeAfterUsingCoder:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_awakeAfterUsingCoder_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// classForCoder + objc.ObjCObject get classForCoder { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classForCoder', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForCoder); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// replacementObjectForCoder: + objc.ObjCObject? replacementObjectForCoder(objc.NSCoder coder) { + final _$$ref = object$.ref; + final _$$ref$1 = coder.ref; + objc.checkOsVersionInternal( + 'NSObject.replacementObjectForCoder:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_replacementObjectForCoder_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// setVersion: + static void setVersion(DartNSInteger aVersion) { + objc.checkOsVersionInternal( + 'NSObject.setVersion:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_4sp4xj(_class_NSObject, _sel_setVersion_, aVersion); + } + + /// version + static DartNSInteger version() { + objc.checkOsVersionInternal( + 'NSObject.version', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1hz7y9r(_class_NSObject, _sel_version); + } +} + +const int NSCoderReadCorruptError = 4864; + +const int NSCoderValueNotFoundError = 4865; + +const int NSCollectorDisabledOption = 2; + +typedef NSComparator = ffi.Pointer; +typedef DartNSComparator = + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >; + +/// NSComparisonMethods +extension NSComparisonMethods on objc.NSObject { + /// doesContain: + bool doesContain(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.doesContain:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_doesContain_, + _$$ref$1.pointer, + ); + } + + /// isCaseInsensitiveLike: + bool isCaseInsensitiveLike(objc.NSString object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.isCaseInsensitiveLike:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isCaseInsensitiveLike_, + _$$ref$1.pointer, + ); + } + + /// isEqualTo: + bool isEqualTo(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isEqualTo_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// isGreaterThan: + bool isGreaterThan(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isGreaterThan:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isGreaterThan_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// isGreaterThanOrEqualTo: + bool isGreaterThanOrEqualTo(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isGreaterThanOrEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isGreaterThanOrEqualTo_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// isLessThan: + bool isLessThan(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isLessThan:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isLessThan_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// isLessThanOrEqualTo: + bool isLessThanOrEqualTo(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isLessThanOrEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isLessThanOrEqualTo_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// isLike: + bool isLike(objc.NSString object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.isLike:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isLike_, + _$$ref$1.pointer, + ); + } + + /// isNotEqualTo: + bool isNotEqualTo(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isNotEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isNotEqualTo_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +enum NSComparisonPredicateModifier { + NSDirectPredicateModifier(0), + NSAllPredicateModifier(1), + NSAnyPredicateModifier(2); + + final int value; + const NSComparisonPredicateModifier(this.value); + + static NSComparisonPredicateModifier fromValue(int value) => switch (value) { + 0 => NSDirectPredicateModifier, + 1 => NSAllPredicateModifier, + 2 => NSAnyPredicateModifier, + _ => throw ArgumentError( + 'Unknown value for NSComparisonPredicateModifier: $value', + ), + }; +} + +sealed class NSComparisonPredicateOptions { + static const NSCaseInsensitivePredicateOption = 1; + static const NSDiacriticInsensitivePredicateOption = 2; + static const NSNormalizedPredicateOption = 4; +} + +enum NSCompoundPredicateType { + NSNotPredicateType(0), + NSAndPredicateType(1), + NSOrPredicateType(2); + + final int value; + const NSCompoundPredicateType(this.value); + + static NSCompoundPredicateType fromValue(int value) => switch (value) { + 0 => NSNotPredicateType, + 1 => NSAndPredicateType, + 2 => NSOrPredicateType, + _ => throw ArgumentError( + 'Unknown value for NSCompoundPredicateType: $value', + ), + }; +} + +const int NSCompressionErrorMaximum = 5503; + +const int NSCompressionErrorMinimum = 5376; + +const int NSCompressionFailedError = 5376; + +/// WARNING: NSConnection is a stub. To generate bindings for this class, include +/// NSConnection in your config's objc-interfaces list. +/// +/// NSConnection +@Deprecated('Use NSXPCConnection instead') +extension type NSConnection._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSConnection] that points to the same underlying object as [other]. + NSConnection.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSConnection', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSConnection] that wraps the given raw object pointer. + NSConnection.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSConnection', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +/// NSConnectionDelegate +@Deprecated('Use NSXPCConnection instead') +extension type NSConnectionDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSConnectionDelegate] that points to the same underlying object as [other]. + NSConnectionDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSConnectionDelegate] that wraps the given raw object pointer. + NSConnectionDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSConnectionDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSConnectionDelegate, + ); + } +} + +extension NSConnectionDelegate$Methods on NSConnectionDelegate { + /// authenticateComponents:withData: + @Deprecated('Use NSXPCConnection instead') + bool authenticateComponents( + objc.NSArray components, { + required objc.NSData withData, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = components.ref; + final _$$ref$2 = withData.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.authenticateComponents:withData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_authenticateComponents_withData_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'authenticateComponents:withData:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_authenticateComponents_withData_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// authenticationDataForComponents: + @Deprecated('Use NSXPCConnection instead') + objc.NSData authenticationDataForComponents(objc.NSArray components) { + final _$$ref = object$.ref; + final _$$ref$1 = components.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.authenticationDataForComponents:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_authenticationDataForComponents_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'authenticationDataForComponents:', + ); + } + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_authenticationDataForComponents_, + _$$ref$1.pointer, + ); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// connection:handleRequest: + @Deprecated('Use NSXPCConnection instead') + bool connection( + NSConnection connection, { + required NSDistantObjectRequest handleRequest, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = handleRequest.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.connection:handleRequest:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_handleRequest_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'connection:handleRequest:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_connection_handleRequest_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:shouldMakeNewConnection: + @Deprecated('Use NSXPCConnection instead') + bool connection$1( + NSConnection ancestor, { + required NSConnection shouldMakeNewConnection, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = ancestor.ref; + final _$$ref$2 = shouldMakeNewConnection.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.connection:shouldMakeNewConnection:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_shouldMakeNewConnection_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'connection:shouldMakeNewConnection:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_connection_shouldMakeNewConnection_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// createConversationForConnection: + @Deprecated('Use NSXPCConnection instead') + objc.ObjCObject createConversationForConnection(NSConnection conn) { + final _$$ref = object$.ref; + final _$$ref$1 = conn.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.createConversationForConnection:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_createConversationForConnection_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'createConversationForConnection:', + ); + } + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_createConversationForConnection_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// makeNewConnection:sender: + @Deprecated('Use NSXPCConnection instead') + bool makeNewConnection(NSConnection conn, {required NSConnection sender}) { + final _$$ref = object$.ref; + final _$$ref$1 = conn.ref; + final _$$ref$2 = sender.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.makeNewConnection:sender:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_makeNewConnection_sender_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'makeNewConnection:sender:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_makeNewConnection_sender_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSConnectionDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSConnectionDelegate.cast()); + + /// Builds an object that implements the NSConnectionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSConnectionDelegate implement({ + bool Function(objc.NSArray, objc.NSData)? authenticateComponents_withData_, + objc.NSData Function(objc.NSArray)? authenticationDataForComponents_, + bool Function(NSConnection, NSDistantObjectRequest)? + connection_handleRequest_, + bool Function(NSConnection, NSConnection)? + connection_shouldMakeNewConnection_, + objc.ObjCObject Function(NSConnection)? createConversationForConnection_, + bool Function(NSConnection, NSConnection)? makeNewConnection_sender_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSConnectionDelegate'); + NSConnectionDelegate$Builder.authenticateComponents_withData_.implement( + builder, + authenticateComponents_withData_, + ); + NSConnectionDelegate$Builder.authenticationDataForComponents_.implement( + builder, + authenticationDataForComponents_, + ); + NSConnectionDelegate$Builder.connection_handleRequest_.implement( + builder, + connection_handleRequest_, + ); + NSConnectionDelegate$Builder.connection_shouldMakeNewConnection_.implement( + builder, + connection_shouldMakeNewConnection_, + ); + NSConnectionDelegate$Builder.createConversationForConnection_.implement( + builder, + createConversationForConnection_, + ); + NSConnectionDelegate$Builder.makeNewConnection_sender_.implement( + builder, + makeNewConnection_sender_, + ); + builder.addProtocol($protocol); + return NSConnectionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSConnectionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(objc.NSArray, objc.NSData)? authenticateComponents_withData_, + objc.NSData Function(objc.NSArray)? authenticationDataForComponents_, + bool Function(NSConnection, NSDistantObjectRequest)? + connection_handleRequest_, + bool Function(NSConnection, NSConnection)? + connection_shouldMakeNewConnection_, + objc.ObjCObject Function(NSConnection)? createConversationForConnection_, + bool Function(NSConnection, NSConnection)? makeNewConnection_sender_, + bool $keepIsolateAlive = true, + }) { + NSConnectionDelegate$Builder.authenticateComponents_withData_.implement( + builder, + authenticateComponents_withData_, + ); + NSConnectionDelegate$Builder.authenticationDataForComponents_.implement( + builder, + authenticationDataForComponents_, + ); + NSConnectionDelegate$Builder.connection_handleRequest_.implement( + builder, + connection_handleRequest_, + ); + NSConnectionDelegate$Builder.connection_shouldMakeNewConnection_.implement( + builder, + connection_shouldMakeNewConnection_, + ); + NSConnectionDelegate$Builder.createConversationForConnection_.implement( + builder, + createConversationForConnection_, + ); + NSConnectionDelegate$Builder.makeNewConnection_sender_.implement( + builder, + makeNewConnection_sender_, + ); + builder.addProtocol($protocol); + } + + /// authenticateComponents:withData: + static final authenticateComponents_withData_ = + objc.ObjCProtocolMethod( + _protocol_NSConnectionDelegate, + _sel_authenticateComponents_withData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_authenticateComponents_withData_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(objc.NSArray, objc.NSData) func) => + ObjCBlock_bool_ffiVoid_NSArray_NSData.fromFunction( + (ffi.Pointer _, objc.NSArray arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + ); + + /// authenticationDataForComponents: + static final authenticationDataForComponents_ = + objc.ObjCProtocolMethod( + _protocol_NSConnectionDelegate, + _sel_authenticationDataForComponents_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_authenticationDataForComponents_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.NSData Function(objc.NSArray) func) => + ObjCBlock_NSData_ffiVoid_NSArray.fromFunction( + (ffi.Pointer _, objc.NSArray arg1) => func(arg1), + ), + ); + + /// connection:handleRequest: + static final connection_handleRequest_ = + objc.ObjCProtocolMethod< + bool Function(NSConnection, NSDistantObjectRequest) + >( + _protocol_NSConnectionDelegate, + _sel_connection_handleRequest_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_connection_handleRequest_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSConnection, NSDistantObjectRequest) func) => + ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest.fromFunction( + ( + ffi.Pointer _, + NSConnection arg1, + NSDistantObjectRequest arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:shouldMakeNewConnection: + static final connection_shouldMakeNewConnection_ = + objc.ObjCProtocolMethod( + _protocol_NSConnectionDelegate, + _sel_connection_shouldMakeNewConnection_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_connection_shouldMakeNewConnection_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSConnection, NSConnection) func) => + ObjCBlock_bool_ffiVoid_NSConnection_NSConnection.fromFunction( + (ffi.Pointer _, NSConnection arg1, NSConnection arg2) => + func(arg1, arg2), + ), + ); + + /// createConversationForConnection: + static final createConversationForConnection_ = + objc.ObjCProtocolMethod( + _protocol_NSConnectionDelegate, + _sel_createConversationForConnection_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_createConversationForConnection_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.ObjCObject Function(NSConnection) func) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection.fromFunction( + (ffi.Pointer _, NSConnection arg1) => func(arg1), + ), + ); + + /// makeNewConnection:sender: + static final makeNewConnection_sender_ = + objc.ObjCProtocolMethod( + _protocol_NSConnectionDelegate, + _sel_makeNewConnection_sender_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_makeNewConnection_sender_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSConnection, NSConnection) func) => + ObjCBlock_bool_ffiVoid_NSConnection_NSConnection.fromFunction( + (ffi.Pointer _, NSConnection arg1, NSConnection arg2) => + func(arg1, arg2), + ), + ); +} + +const int NSContainerSpecifierError = 2; + +/// NSCopyLinkMoveHandler +extension NSCopyLinkMoveHandler on objc.NSObject { + /// fileManager:shouldProceedAfterError: + @Deprecated(' Handler API no longer supported') + bool fileManager( + NSFileManager fm, { + required objc.NSDictionary shouldProceedAfterError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fm.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + objc.checkOsVersionInternal( + 'NSObject.fileManager:shouldProceedAfterError:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// fileManager:willProcessPath: + @Deprecated('Handler API no longer supported') + void fileManager$1( + NSFileManager fm, { + required objc.NSString willProcessPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fm.ref; + final _$$ref$2 = willProcessPath.ref; + objc.checkOsVersionInternal( + 'NSObject.fileManager:willProcessPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_fileManager_willProcessPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSCustomPronouns +@Deprecated('Use NSTermOfAddress instead') +extension NSCustomPronouns on NSMorphology$1 { + /// customPronounForLanguage: + @Deprecated('Use NSTermOfAddress instead') + NSMorphologyCustomPronoun? customPronounForLanguage(objc.NSString language) { + final _$$ref = object$.ref; + final _$$ref$1 = language.ref; + objc.checkOsVersionInternal( + 'NSMorphology.customPronounForLanguage:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_customPronounForLanguage_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : NSMorphologyCustomPronoun.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// setCustomPronoun:forLanguage:error: + @Deprecated('Use NSTermOfAddress instead') + bool setCustomPronoun( + NSMorphologyCustomPronoun? features, { + required objc.NSString forLanguage, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = features?.ref; + final _$$ref$2 = forLanguage.ref; + objc.checkOsVersionInternal( + 'NSMorphology.setCustomPronoun:forLanguage:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_6z4k82( + _$$ref.pointer, + _sel_setCustomPronoun_forLanguage_error_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +/// NSDataBase64Encoding +extension NSDataBase64Encoding on objc.NSData { + /// base64EncodedDataWithOptions: + objc.NSData base64EncodedDataWithOptions(DartNSUInteger options) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.base64EncodedDataWithOptions:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_ylninc( + _$$ref.pointer, + _sel_base64EncodedDataWithOptions_, + options, + ); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// base64EncodedStringWithOptions: + objc.NSString base64EncodedStringWithOptions(DartNSUInteger options) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.base64EncodedStringWithOptions:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_ylninc( + _$$ref.pointer, + _sel_base64EncodedStringWithOptions_, + options, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// initWithBase64EncodedData:options: + objc.NSData? initWithBase64EncodedData( + objc.NSData base64Data, { + required DartNSUInteger options, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = base64Data.ref; + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedData:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_7kpg7m( + _$$ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedData_options_, + _$$ref$1.pointer, + options, + ); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: false, release: true); + } + + /// initWithBase64EncodedString:options: + objc.NSData? initWithBase64EncodedString( + objc.NSString base64String, { + required DartNSUInteger options, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = base64String.ref; + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedString:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_7kpg7m( + _$$ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedString_options_, + _$$ref$1.pointer, + options, + ); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: false, release: true); + } +} + +/// NSDataCompression +extension NSDataCompression on objc.NSData { + /// compressedDataUsingAlgorithm:error: + objc.NSData? compressedDataUsingAlgorithm( + objc.NSDataCompressionAlgorithm algorithm, + ) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.compressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1vnlaqg( + _$$ref.pointer, + _sel_compressedDataUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decompressedDataUsingAlgorithm:error: + objc.NSData? decompressedDataUsingAlgorithm( + objc.NSDataCompressionAlgorithm algorithm, + ) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.decompressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1vnlaqg( + _$$ref.pointer, + _sel_decompressedDataUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +const int NSDateComponentUndefined = 9223372036854775807; + +enum NSDateComponentsFormatterUnitsStyle { + NSDateComponentsFormatterUnitsStylePositional(0), + NSDateComponentsFormatterUnitsStyleAbbreviated(1), + NSDateComponentsFormatterUnitsStyleShort(2), + NSDateComponentsFormatterUnitsStyleFull(3), + NSDateComponentsFormatterUnitsStyleSpellOut(4), + NSDateComponentsFormatterUnitsStyleBrief(5); + + final int value; + const NSDateComponentsFormatterUnitsStyle(this.value); + + static NSDateComponentsFormatterUnitsStyle fromValue(int value) => + switch (value) { + 0 => NSDateComponentsFormatterUnitsStylePositional, + 1 => NSDateComponentsFormatterUnitsStyleAbbreviated, + 2 => NSDateComponentsFormatterUnitsStyleShort, + 3 => NSDateComponentsFormatterUnitsStyleFull, + 4 => NSDateComponentsFormatterUnitsStyleSpellOut, + 5 => NSDateComponentsFormatterUnitsStyleBrief, + _ => throw ArgumentError( + 'Unknown value for NSDateComponentsFormatterUnitsStyle: $value', + ), + }; +} + +sealed class NSDateComponentsFormatterZeroFormattingBehavior { + static const NSDateComponentsFormatterZeroFormattingBehaviorNone = 0; + static const NSDateComponentsFormatterZeroFormattingBehaviorDefault = 1; + static const NSDateComponentsFormatterZeroFormattingBehaviorDropLeading = 2; + static const NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle = 4; + static const NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing = 8; + static const NSDateComponentsFormatterZeroFormattingBehaviorDropAll = 14; + static const NSDateComponentsFormatterZeroFormattingBehaviorPad = 65536; +} + +/// NSDateCreation +extension NSDateCreation on objc.NSDate { + /// initWithTimeInterval:sinceDate: + objc.NSDate initWithTimeInterval( + DartNSTimeInterval secsToBeAdded, { + required objc.NSDate sinceDate, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sinceDate.ref; + final $ret = _objc_msgSend_1ozwf6k( + _$$ref.retainAndReturnPointer(), + _sel_initWithTimeInterval_sinceDate_, + secsToBeAdded, + _$$ref$1.pointer, + ); + return objc.NSDate.fromPointer($ret, retain: false, release: true); + } + + /// initWithTimeIntervalSince1970: + objc.NSDate initWithTimeIntervalSince1970(DartNSTimeInterval secs) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_oa8mke( + _$$ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSince1970_, + secs, + ); + return objc.NSDate.fromPointer($ret, retain: false, release: true); + } + + /// initWithTimeIntervalSinceNow: + objc.NSDate initWithTimeIntervalSinceNow(DartNSTimeInterval secs) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_oa8mke( + _$$ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSinceNow_, + secs, + ); + return objc.NSDate.fromPointer($ret, retain: false, release: true); + } + + /// date + static objc.NSDate date() { + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_date); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// dateWithTimeInterval:sinceDate: + static objc.NSDate dateWithTimeInterval( + DartNSTimeInterval secsToBeAdded, { + required objc.NSDate sinceDate, + }) { + final _$$ref = sinceDate.ref; + final $ret = _objc_msgSend_1ozwf6k( + _class_NSDate, + _sel_dateWithTimeInterval_sinceDate_, + secsToBeAdded, + _$$ref.pointer, + ); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSince1970: + static objc.NSDate dateWithTimeIntervalSince1970(DartNSTimeInterval secs) { + final $ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSince1970_, + secs, + ); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSinceNow: + static objc.NSDate dateWithTimeIntervalSinceNow(DartNSTimeInterval secs) { + final $ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSinceNow_, + secs, + ); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSinceReferenceDate: + static objc.NSDate dateWithTimeIntervalSinceReferenceDate( + DartNSTimeInterval ti, + ) { + final $ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSinceReferenceDate_, + ti, + ); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// distantFuture + static objc.NSDate getDistantFuture() { + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantFuture); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// distantPast + static objc.NSDate getDistantPast() { + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantPast); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// now + static objc.NSDate getNow() { + objc.checkOsVersionInternal( + 'NSDate.now', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_now); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSDateFormatter is a stub. To generate bindings for this class, include +/// NSDateFormatter in your config's objc-interfaces list. +/// +/// NSDateFormatter +extension type NSDateFormatter._(objc.ObjCObject object$) + implements objc.ObjCObject, NSFormatter { + /// Constructs a [NSDateFormatter] that points to the same underlying object as [other]. + NSDateFormatter.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSDateFormatter] that wraps the given raw object pointer. + NSDateFormatter.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +enum NSDateFormatterBehavior { + NSDateFormatterBehaviorDefault(0), + NSDateFormatterBehavior10_0(1000), + NSDateFormatterBehavior10_4(1040); + + final int value; + const NSDateFormatterBehavior(this.value); + + static NSDateFormatterBehavior fromValue(int value) => switch (value) { + 0 => NSDateFormatterBehaviorDefault, + 1000 => NSDateFormatterBehavior10_0, + 1040 => NSDateFormatterBehavior10_4, + _ => throw ArgumentError( + 'Unknown value for NSDateFormatterBehavior: $value', + ), + }; +} + +/// NSDateFormatterCompatibility +extension NSDateFormatterCompatibility on NSDateFormatter { + /// allowsNaturalLanguage + @Deprecated('There is no replacement') + bool allowsNaturalLanguage() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSDateFormatter.allowsNaturalLanguage', + macOS: (false, (10, 4, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_allowsNaturalLanguage); + } + + /// initWithDateFormat:allowNaturalLanguage: + @Deprecated( + 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', + ) + objc.ObjCObject initWithDateFormat( + objc.NSString format, { + required bool allowNaturalLanguage, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + objc.checkOsVersionInternal( + 'NSDateFormatter.initWithDateFormat:allowNaturalLanguage:', + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithDateFormat_allowNaturalLanguage_, + _$$ref$1.pointer, + allowNaturalLanguage, + ); + return objc.ObjCObject($ret, retain: false, release: true); + } +} + +enum NSDateFormatterStyle { + NSDateFormatterNoStyle(0), + NSDateFormatterShortStyle(1), + NSDateFormatterMediumStyle(2), + NSDateFormatterLongStyle(3), + NSDateFormatterFullStyle(4); + + final int value; + const NSDateFormatterStyle(this.value); + + static NSDateFormatterStyle fromValue(int value) => switch (value) { + 0 => NSDateFormatterNoStyle, + 1 => NSDateFormatterShortStyle, + 2 => NSDateFormatterMediumStyle, + 3 => NSDateFormatterLongStyle, + 4 => NSDateFormatterFullStyle, + _ => throw ArgumentError('Unknown value for NSDateFormatterStyle: $value'), + }; +} + +enum NSDateIntervalFormatterStyle { + NSDateIntervalFormatterNoStyle(0), + NSDateIntervalFormatterShortStyle(1), + NSDateIntervalFormatterMediumStyle(2), + NSDateIntervalFormatterLongStyle(3), + NSDateIntervalFormatterFullStyle(4); + + final int value; + const NSDateIntervalFormatterStyle(this.value); + + static NSDateIntervalFormatterStyle fromValue(int value) => switch (value) { + 0 => NSDateIntervalFormatterNoStyle, + 1 => NSDateIntervalFormatterShortStyle, + 2 => NSDateIntervalFormatterMediumStyle, + 3 => NSDateIntervalFormatterLongStyle, + 4 => NSDateIntervalFormatterFullStyle, + _ => throw ArgumentError( + 'Unknown value for NSDateIntervalFormatterStyle: $value', + ), + }; +} + +final class NSDecimal extends ffi.Opaque {} + +/// WARNING: NSDecimalNumber is a stub. To generate bindings for this class, include +/// NSDecimalNumber in your config's objc-interfaces list. +/// +/// NSDecimalNumber +extension type NSDecimalNumber._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSNumber { + /// Constructs a [NSDecimalNumber] that points to the same underlying object as [other]. + NSDecimalNumber.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSDecimalNumber] that wraps the given raw object pointer. + NSDecimalNumber.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSDecimalNumberBehaviors +extension type NSDecimalNumberBehaviors._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSDecimalNumberBehaviors] that points to the same underlying object as [other]. + NSDecimalNumberBehaviors.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSDecimalNumberBehaviors] that wraps the given raw object pointer. + NSDecimalNumberBehaviors.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSDecimalNumberBehaviors]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSDecimalNumberBehaviors, + ); + } +} + +extension NSDecimalNumberBehaviors$Methods on NSDecimalNumberBehaviors { + /// exceptionDuringOperation:error:leftOperand:rightOperand: + NSDecimalNumber? exceptionDuringOperation( + ffi.Pointer operation, { + required NSCalculationError error, + required NSDecimalNumber leftOperand, + NSDecimalNumber? rightOperand, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = leftOperand.ref; + final _$$ref$2 = rightOperand?.ref; + final $ret = _objc_msgSend_1qldcx0( + _$$ref.pointer, + _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, + operation, + error.value, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : NSDecimalNumber.fromPointer($ret, retain: true, release: true); + } + + /// roundingMode + NSRoundingMode roundingMode() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_15dzt85(_$$ref.pointer, _sel_roundingMode); + return NSRoundingMode.fromValue($ret); + } + + /// scale + int scale() { + final _$$ref = object$.ref; + return _objc_msgSend_1jwityx(_$$ref.pointer, _sel_scale); + } +} + +interface class NSDecimalNumberBehaviors$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSDecimalNumberBehaviors.cast()); + + /// Builds an object that implements the NSDecimalNumberBehaviors protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSDecimalNumberBehaviors implement({ + required NSDecimalNumber? Function( + ffi.Pointer, + NSCalculationError, + NSDecimalNumber, + NSDecimalNumber?, + ) + exceptionDuringOperation_error_leftOperand_rightOperand_, + required NSRoundingMode Function() roundingMode, + required int Function() scale, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSDecimalNumberBehaviors', + ); + NSDecimalNumberBehaviors$Builder + .exceptionDuringOperation_error_leftOperand_rightOperand_ + .implement( + builder, + exceptionDuringOperation_error_leftOperand_rightOperand_, + ); + NSDecimalNumberBehaviors$Builder.roundingMode.implement( + builder, + roundingMode, + ); + NSDecimalNumberBehaviors$Builder.scale.implement(builder, scale); + builder.addProtocol($protocol); + return NSDecimalNumberBehaviors.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSDecimalNumberBehaviors protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required NSDecimalNumber? Function( + ffi.Pointer, + NSCalculationError, + NSDecimalNumber, + NSDecimalNumber?, + ) + exceptionDuringOperation_error_leftOperand_rightOperand_, + required NSRoundingMode Function() roundingMode, + required int Function() scale, + bool $keepIsolateAlive = true, + }) { + NSDecimalNumberBehaviors$Builder + .exceptionDuringOperation_error_leftOperand_rightOperand_ + .implement( + builder, + exceptionDuringOperation_error_leftOperand_rightOperand_, + ); + NSDecimalNumberBehaviors$Builder.roundingMode.implement( + builder, + roundingMode, + ); + NSDecimalNumberBehaviors$Builder.scale.implement(builder, scale); + builder.addProtocol($protocol); + } + + /// exceptionDuringOperation:error:leftOperand:rightOperand: + static final exceptionDuringOperation_error_leftOperand_rightOperand_ = + objc.ObjCProtocolMethod< + NSDecimalNumber? Function( + ffi.Pointer, + NSCalculationError, + NSDecimalNumber, + NSDecimalNumber?, + ) + >( + _protocol_NSDecimalNumberBehaviors, + _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_738w24) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDecimalNumberBehaviors, + _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, + isRequired: true, + isInstanceMethod: true, + ), + ( + NSDecimalNumber? Function( + ffi.Pointer, + NSCalculationError, + NSDecimalNumber, + NSDecimalNumber?, + ) + func, + ) => + ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + NSCalculationError arg2, + NSDecimalNumber arg3, + NSDecimalNumber? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// roundingMode + static final roundingMode = + objc.ObjCProtocolMethod( + _protocol_NSDecimalNumberBehaviors, + _sel_roundingMode, + ffi.Native.addressOf< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_5cb1bj) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDecimalNumberBehaviors, + _sel_roundingMode, + isRequired: true, + isInstanceMethod: true, + ), + (NSRoundingMode Function() func) => + ObjCBlock_NSRoundingMode_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// scale + static final scale = objc.ObjCProtocolMethod( + _protocol_NSDecimalNumberBehaviors, + _sel_scale, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_p984hf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDecimalNumberBehaviors, + _sel_scale, + isRequired: true, + isInstanceMethod: true, + ), + (int Function() func) => ObjCBlock_ffiShort_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); +} + +/// NSDecimalNumberExtensions +extension NSDecimalNumberExtensions on objc.NSNumber {} + +/// WARNING: NSDecimalNumberHandler is a stub. To generate bindings for this class, include +/// NSDecimalNumberHandler in your config's objc-interfaces list. +/// +/// NSDecimalNumberHandler +extension type NSDecimalNumberHandler._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + NSDecimalNumberBehaviors, + objc.NSCoding { + /// Constructs a [NSDecimalNumberHandler] that points to the same underlying object as [other]. + NSDecimalNumberHandler.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSDecimalNumberHandler] that wraps the given raw object pointer. + NSDecimalNumberHandler.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSDecimalNumberScanning +extension NSDecimalNumberScanning on NSScanner { + /// scanDecimal: + bool scanDecimal(ffi.Pointer dcm) { + final _$$ref = object$.ref; + return _objc_msgSend_ijkvzl(_$$ref.pointer, _sel_scanDecimal_, dcm); + } +} + +const int NSDecompressionFailedError = 5377; + +/// NSDelayedPerforming +extension NSDelayedPerforming on objc.NSObject { + /// performSelector:withObject:afterDelay: + void performSelector$3( + ffi.Pointer aSelector, { + objc.ObjCObject? withObject, + required DartNSTimeInterval afterDelay, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withObject?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelector:withObject:afterDelay:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_7ql5kn( + _$$ref.pointer, + _sel_performSelector_withObject_afterDelay_, + aSelector, + _$$ref$1?.pointer ?? ffi.nullptr, + afterDelay, + ); + } + + /// performSelector:withObject:afterDelay:inModes: + void performSelector$4( + ffi.Pointer aSelector, { + objc.ObjCObject? withObject, + required DartNSTimeInterval afterDelay, + required objc.NSArray inModes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withObject?.ref; + final _$$ref$2 = inModes.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelector:withObject:afterDelay:inModes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_t8ajot( + _$$ref.pointer, + _sel_performSelector_withObject_afterDelay_inModes_, + aSelector, + _$$ref$1?.pointer ?? ffi.nullptr, + afterDelay, + _$$ref$2.pointer, + ); + } + + /// cancelPreviousPerformRequestsWithTarget: + static void cancelPreviousPerformRequestsWithTarget(objc.ObjCObject aTarget) { + final _$$ref = aTarget.ref; + objc.checkOsVersionInternal( + 'NSObject.cancelPreviousPerformRequestsWithTarget:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _class_NSObject, + _sel_cancelPreviousPerformRequestsWithTarget_, + _$$ref.pointer, + ); + } + + /// cancelPreviousPerformRequestsWithTarget:selector:object: + static void cancelPreviousPerformRequestsWithTarget$1( + objc.ObjCObject aTarget, { + required ffi.Pointer selector, + objc.ObjCObject? object, + }) { + final _$$ref = aTarget.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.cancelPreviousPerformRequestsWithTarget:selector:object:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1ygbbzi( + _class_NSObject, + _sel_cancelPreviousPerformRequestsWithTarget_selector_object_, + _$$ref.pointer, + selector, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// NSDeprecated +extension NSDeprecated on objc.NSDictionary { + /// getObjects:andKeys: + @Deprecated('Use -getObjects:andKeys:count: instead') + void getObjects( + ffi.Pointer> objects, { + required ffi.Pointer> andKeys, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSDictionary.getObjects:andKeys:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_hefmm1( + _$$ref.pointer, + _sel_getObjects_andKeys_, + objects, + andKeys, + ); + } + + /// initWithContentsOfFile: + @Deprecated('Deprecated') + objc.NSDictionary? initWithContentsOfFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSDictionary.initWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + @Deprecated('Deprecated') + objc.NSDictionary? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.initWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// writeToFile:atomically: + @Deprecated('Deprecated') + bool writeToFile(objc.NSString path, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSDictionary.writeToFile:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToFile_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// writeToURL:atomically: + @Deprecated('Deprecated') + bool writeToURL(objc.NSURL url, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.writeToURL:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToURL_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// dictionaryWithContentsOfFile: + @Deprecated('Deprecated') + static objc.NSDictionary? dictionaryWithContentsOfFile(objc.NSString path) { + final _$$ref = path.ref; + objc.checkOsVersionInternal( + 'NSDictionary.dictionaryWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithContentsOfURL: + @Deprecated('Deprecated') + static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.dictionaryWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +/// NSDeprecated +extension NSDeprecated$1 on objc.NSArray { + /// getObjects: + @Deprecated('Use -getObjects:range: instead') + void getObjects(ffi.Pointer> objects) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSArray.getObjects:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1dau4w(_$$ref.pointer, _sel_getObjects_, objects); + } + + /// initWithContentsOfFile: + @Deprecated('Deprecated') + objc.NSArray? initWithContentsOfFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSArray.initWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + @Deprecated('Deprecated') + objc.NSArray? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSArray.initWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: false, release: true); + } + + /// writeToFile:atomically: + @Deprecated('Deprecated') + bool writeToFile(objc.NSString path, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSArray.writeToFile:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToFile_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// writeToURL:atomically: + @Deprecated('Deprecated') + bool writeToURL(objc.NSURL url, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSArray.writeToURL:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToURL_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// arrayWithContentsOfFile: + @Deprecated('Deprecated') + static objc.NSArray? arrayWithContentsOfFile(objc.NSString path) { + final _$$ref = path.ref; + objc.checkOsVersionInternal( + 'NSArray.arrayWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithContentsOfURL: + @Deprecated('Deprecated') + static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSArray.arrayWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSDeprecated +extension NSDeprecated$10 on NSIndexPath { + /// getIndexes: + @Deprecated('Deprecated') + void getIndexes(ffi.Pointer indexes) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSIndexPath.getIndexes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_h1puss(_$$ref.pointer, _sel_getIndexes_, indexes); + } +} + +/// NSDeprecated +extension NSDeprecated$2 on objc.NSValue { + /// getValue: + @Deprecated('Deprecated') + void getValue$1(ffi.Pointer value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSValue.getValue:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_ovsamd(_$$ref.pointer, _sel_getValue_, value); + } +} + +/// NSDeprecated +extension NSDeprecated$3 on objc.NSData { + /// base64Encoding + @Deprecated('Use base64EncodedStringWithOptions: instead') + objc.NSString base64Encoding() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.base64Encoding', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_base64Encoding); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// getBytes: + @Deprecated( + 'This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead.', + ) + void getBytes(ffi.Pointer buffer) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.getBytes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_ovsamd(_$$ref.pointer, _sel_getBytes_, buffer); + } + + /// initWithBase64Encoding: + @Deprecated('Use initWithBase64EncodedString:options: instead') + objc.ObjCObject? initWithBase64Encoding(objc.NSString base64String) { + final _$$ref = object$.ref; + final _$$ref$1 = base64String.ref; + objc.checkOsVersionInternal( + 'NSData.initWithBase64Encoding:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithBase64Encoding_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithContentsOfMappedFile: + @Deprecated( + 'Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.', + ) + objc.ObjCObject? initWithContentsOfMappedFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSData.initWithContentsOfMappedFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfMappedFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// dataWithContentsOfMappedFile: + @Deprecated( + 'Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.', + ) + static objc.ObjCObject? dataWithContentsOfMappedFile(objc.NSString path) { + final _$$ref = path.ref; + objc.checkOsVersionInternal( + 'NSData.dataWithContentsOfMappedFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSData, + _sel_dataWithContentsOfMappedFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSDeprecated +extension NSDeprecated$4 on objc.NSCoder { + /// decodeValueOfObjCType:at: + @Deprecated('Deprecated') + void decodeValueOfObjCType$1( + ffi.Pointer type, { + required ffi.Pointer at, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeValueOfObjCType:at:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1flkydz( + _$$ref.pointer, + _sel_decodeValueOfObjCType_at_, + type, + at, + ); + } +} + +/// NSDeprecated +extension NSDeprecated$5 on NSTask { + /// currentDirectoryPath + @Deprecated('Deprecated') + objc.NSString get currentDirectoryPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTask.currentDirectoryPath', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_currentDirectoryPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// launch + @Deprecated('Deprecated') + void launch() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTask.launch', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_launch); + } + + /// launchPath + @Deprecated('Deprecated') + objc.NSString? get launchPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTask.launchPath', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_launchPath); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// setCurrentDirectoryPath: + @Deprecated('Deprecated') + set currentDirectoryPath(objc.NSString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + objc.checkOsVersionInternal( + 'NSTask.setCurrentDirectoryPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setCurrentDirectoryPath_, + _$$ref$1.pointer, + ); + } + + /// setLaunchPath: + @Deprecated('Deprecated') + set launchPath(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSTask.setLaunchPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setLaunchPath_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// launchedTaskWithLaunchPath:arguments: + @Deprecated('Deprecated') + static NSTask launchedTaskWithLaunchPath( + objc.NSString path, { + required objc.NSArray arguments, + }) { + final _$$ref = path.ref; + final _$$ref$1 = arguments.ref; + objc.checkOsVersionInternal( + 'NSTask.launchedTaskWithLaunchPath:arguments:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _class_NSTask, + _sel_launchedTaskWithLaunchPath_arguments_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return NSTask.fromPointer($ret, retain: true, release: true); + } +} + +/// NSDeprecated +extension NSDeprecated$6 on NSScriptClassDescription$1 { + /// isReadOnlyKey: + @Deprecated('Deprecated') + bool isReadOnlyKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSScriptClassDescription.isReadOnlyKey:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isReadOnlyKey_, + _$$ref$1.pointer, + ); + } +} + +/// NSDeprecated +extension NSDeprecated$7 on NSFileWrapper { + /// addFileWithPath: + @Deprecated( + 'Instantiate a new NSFileWrapper with -initWithURL:options:error:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.', + ) + objc.NSString addFileWithPath(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.addFileWithPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_addFileWithPath_, + _$$ref$1.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// addSymbolicLinkWithDestination:preferredFilename: + @Deprecated( + 'Instantiate a new NSFileWrapper with -initWithSymbolicLinkDestinationURL:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.', + ) + objc.NSString addSymbolicLinkWithDestination( + objc.NSString path, { + required objc.NSString preferredFilename, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final _$$ref$2 = preferredFilename.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.addSymbolicLinkWithDestination:preferredFilename:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_addSymbolicLinkWithDestination_preferredFilename_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// initSymbolicLinkWithDestination: + @Deprecated( + 'Use -initSymbolicLinkWithDestinationURL: and -setPreferredFileName:, if necessary, instead.', + ) + objc.ObjCObject initSymbolicLinkWithDestination(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.initSymbolicLinkWithDestination:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initSymbolicLinkWithDestination_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithPath: + @Deprecated('Use -initWithURL:options:error: instead.') + objc.ObjCObject? initWithPath(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.initWithPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithPath_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// needsToBeUpdatedFromPath: + @Deprecated('Use -matchesContentsOfURL: instead.') + bool needsToBeUpdatedFromPath(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.needsToBeUpdatedFromPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_needsToBeUpdatedFromPath_, + _$$ref$1.pointer, + ); + } + + /// symbolicLinkDestination + @Deprecated('Use -symbolicLinkDestinationURL instead.') + objc.NSString symbolicLinkDestination() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.symbolicLinkDestination', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_symbolicLinkDestination, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// updateFromPath: + @Deprecated('Use -readFromURL:options:error: instead.') + bool updateFromPath(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.updateFromPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_updateFromPath_, + _$$ref$1.pointer, + ); + } + + /// writeToFile:atomically:updateFilenames: + @Deprecated('Use -writeToURL:options:originalContentsURL:error: instead.') + bool writeToFile( + objc.NSString path, { + required bool atomically, + required bool updateFilenames, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.writeToFile:atomically:updateFilenames:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_126fd3h( + _$$ref.pointer, + _sel_writeToFile_atomically_updateFilenames_, + _$$ref$1.pointer, + atomically, + updateFilenames, + ); + } +} + +/// NSDeprecated +extension NSDeprecated$8 on NSOperationQueue { + /// operationCount + @Deprecated('Deprecated') + DartNSUInteger get operationCount { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSOperationQueue.operationCount', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_operationCount); + } + + /// operations + @Deprecated( + 'access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead', + ) + objc.NSArray get operations { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSOperationQueue.operations', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_operations); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSDeprecated +extension NSDeprecated$9 on NSXMLElement { + /// setAttributesAsDictionary: + @Deprecated('Deprecated') + void setAttributesAsDictionary(objc.NSDictionary attributes) { + final _$$ref = object$.ref; + final _$$ref$1 = attributes.ref; + objc.checkOsVersionInternal( + 'NSXMLElement.setAttributesAsDictionary:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAttributesAsDictionary_, + _$$ref$1.pointer, + ); + } +} + +/// NSDeprecatedKeyValueCoding +extension NSDeprecatedKeyValueCoding on objc.NSObject { + /// handleQueryWithUnboundKey: + @Deprecated('Legacy KVC API') + objc.ObjCObject? handleQueryWithUnboundKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.handleQueryWithUnboundKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_handleQueryWithUnboundKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// handleTakeValue:forUnboundKey: + @Deprecated('Legacy KVC API') + void handleTakeValue( + objc.ObjCObject? value, { + required objc.NSString forUnboundKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forUnboundKey.ref; + objc.checkOsVersionInternal( + 'NSObject.handleTakeValue:forUnboundKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_handleTakeValue_forUnboundKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// storedValueForKey: + @Deprecated('Legacy KVC API') + objc.ObjCObject? storedValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.storedValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_storedValueForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// takeStoredValue:forKey: + @Deprecated('Legacy KVC API') + void takeStoredValue( + objc.ObjCObject? value, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.takeStoredValue:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_takeStoredValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// takeValue:forKey: + @Deprecated('Legacy KVC API') + void takeValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.takeValue:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_takeValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// takeValue:forKeyPath: + @Deprecated('Legacy KVC API') + void takeValue$1( + objc.ObjCObject? value, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.takeValue:forKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_takeValue_forKeyPath_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// takeValuesFromDictionary: + @Deprecated('Legacy KVC API') + void takeValuesFromDictionary(objc.NSDictionary properties) { + final _$$ref = object$.ref; + final _$$ref$1 = properties.ref; + objc.checkOsVersionInternal( + 'NSObject.takeValuesFromDictionary:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_takeValuesFromDictionary_, + _$$ref$1.pointer, + ); + } + + /// unableToSetNilForKey: + @Deprecated('Legacy KVC API') + void unableToSetNilForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.unableToSetNilForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_unableToSetNilForKey_, + _$$ref$1.pointer, + ); + } + + /// valuesForKeys: + @Deprecated('Legacy KVC API') + objc.NSDictionary valuesForKeys(objc.NSArray keys) { + final _$$ref = object$.ref; + final _$$ref$1 = keys.ref; + objc.checkOsVersionInternal( + 'NSObject.valuesForKeys:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valuesForKeys_, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// useStoredAccessor + @Deprecated('Legacy KVC API') + static bool useStoredAccessor() { + objc.checkOsVersionInternal( + 'NSObject.useStoredAccessor', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_91o635(_class_NSObject, _sel_useStoredAccessor); + } +} + +/// NSDeprecatedKeyValueObservingCustomization +extension NSDeprecatedKeyValueObservingCustomization on objc.NSObject { + /// setKeys:triggerChangeNotificationsForDependentKey: + @Deprecated('Use +keyPathsForValuesAffectingValueForKey instead') + static void setKeys( + objc.NSArray keys, { + required objc.NSString triggerChangeNotificationsForDependentKey, + }) { + final _$$ref = keys.ref; + final _$$ref$1 = triggerChangeNotificationsForDependentKey.ref; + objc.checkOsVersionInternal( + 'NSObject.setKeys:triggerChangeNotificationsForDependentKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _class_NSObject, + _sel_setKeys_triggerChangeNotificationsForDependentKey_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + } +} + +/// NSDeprecatedMethods +extension NSDeprecatedMethods on objc.NSObject {} + +/// NSDictionaryCreation +extension NSDictionaryCreation on objc.NSDictionary { + /// initWithContentsOfURL:error: + objc.NSDictionary? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.initWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithDictionary: + objc.NSDictionary initWithDictionary(objc.NSDictionary otherDictionary) { + final _$$ref = object$.ref; + final _$$ref$1 = otherDictionary.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithDictionary_, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// initWithDictionary:copyItems: + objc.NSDictionary initWithDictionary$1( + objc.NSDictionary otherDictionary, { + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = otherDictionary.ref; + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithDictionary_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// initWithObjects:forKeys: + objc.NSDictionary initWithObjects$1( + objc.NSArray objects, { + required objc.NSArray forKeys, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = objects.ref; + final _$$ref$2 = forKeys.ref; + final $ret = _objc_msgSend_15qeuct( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// initWithObjectsAndKeys: + objc.NSDictionary initWithObjectsAndKeys(objc.ObjCObject firstObject) { + final _$$ref = object$.ref; + final _$$ref$1 = firstObject.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjectsAndKeys_, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// dictionary + static objc.NSDictionary dictionary() { + final $ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_dictionary); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithContentsOfURL:error: + static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.dictionaryWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _class_NSDictionary, + _sel_dictionaryWithContentsOfURL_error_, + _$$ref.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// dictionaryWithDictionary: + static objc.NSDictionary dictionaryWithDictionary(objc.NSDictionary dict) { + final _$$ref = dict.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithDictionary_, + _$$ref.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithObject:forKey: + static objc.NSDictionary dictionaryWithObject( + objc.ObjCObject object, { + required objc.NSCopying forKey, + }) { + final _$$ref = object.ref; + final _$$ref$1 = forKey.ref; + final $ret = _objc_msgSend_15qeuct( + _class_NSDictionary, + _sel_dictionaryWithObject_forKey_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithObjects:forKeys: + static objc.NSDictionary dictionaryWithObjects( + objc.NSArray objects, { + required objc.NSArray forKeys, + }) { + final _$$ref = objects.ref; + final _$$ref$1 = forKeys.ref; + final $ret = _objc_msgSend_15qeuct( + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithObjects:forKeys:count: + static objc.NSDictionary dictionaryWithObjects$1( + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required DartNSUInteger count, + }) { + final $ret = _objc_msgSend_1dydpdi( + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_count_, + objects, + forKeys, + count, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithObjectsAndKeys: + static objc.NSDictionary dictionaryWithObjectsAndKeys( + objc.ObjCObject firstObject, + ) { + final _$$ref = firstObject.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithObjectsAndKeys_, + _$$ref.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +sealed class NSDirectoryEnumerationOptions { + static const NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1; + static const NSDirectoryEnumerationSkipsPackageDescendants = 2; + static const NSDirectoryEnumerationSkipsHiddenFiles = 4; + static const NSDirectoryEnumerationIncludesDirectoriesPostOrder = 8; + static const NSDirectoryEnumerationProducesRelativePathURLs = 16; +} + +/// NSDiscardableContent +extension type NSDiscardableContent._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSDiscardableContent] that points to the same underlying object as [other]. + NSDiscardableContent.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSDiscardableContent] that wraps the given raw object pointer. + NSDiscardableContent.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSDiscardableContent]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSDiscardableContent, + ); + } +} + +extension NSDiscardableContent$Methods on NSDiscardableContent { + /// beginContentAccess + bool beginContentAccess() { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_beginContentAccess); + } + + /// discardContentIfPossible + void discardContentIfPossible() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_discardContentIfPossible); + } + + /// endContentAccess + void endContentAccess() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endContentAccess); + } + + /// isContentDiscarded + bool isContentDiscarded() { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isContentDiscarded); + } +} + +interface class NSDiscardableContent$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSDiscardableContent.cast()); + + /// Builds an object that implements the NSDiscardableContent protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSDiscardableContent implement({ + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implement( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implement( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + return NSDiscardableContent.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSDiscardableContent protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implement( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implement( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSDiscardableContent protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSDiscardableContent implementAsListener({ + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implementAsListener( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implementAsListener( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + return NSDiscardableContent.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSDiscardableContent protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implementAsListener( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implementAsListener( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSDiscardableContent protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSDiscardableContent implementAsBlocking({ + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implementAsBlocking( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implementAsBlocking( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + return NSDiscardableContent.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSDiscardableContent protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implementAsBlocking( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implementAsBlocking( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + } + + /// beginContentAccess + static final beginContentAccess = objc.ObjCProtocolMethod( + _protocol_NSDiscardableContent, + _sel_beginContentAccess, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDiscardableContent, + _sel_beginContentAccess, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// discardContentIfPossible + static final discardContentIfPossible = + objc.ObjCProtocolListenableMethod( + _protocol_NSDiscardableContent, + _sel_discardContentIfPossible, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDiscardableContent, + _sel_discardContentIfPossible, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// endContentAccess + static final endContentAccess = + objc.ObjCProtocolListenableMethod( + _protocol_NSDiscardableContent, + _sel_endContentAccess, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDiscardableContent, + _sel_endContentAccess, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// isContentDiscarded + static final isContentDiscarded = objc.ObjCProtocolMethod( + _protocol_NSDiscardableContent, + _sel_isContentDiscarded, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDiscardableContent, + _sel_isContentDiscarded, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); +} + +/// NSDiscardableContentProxy +extension NSDiscardableContentProxy on objc.NSObject { + /// autoContentAccessingProxy + objc.ObjCObject get autoContentAccessingProxy { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.autoContentAccessingProxy', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_autoContentAccessingProxy, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// WARNING: NSDistantObjectRequest is a stub. To generate bindings for this class, include +/// NSDistantObjectRequest in your config's objc-interfaces list. +/// +/// NSDistantObjectRequest +@Deprecated('Use NSXPCConnection instead') +extension type NSDistantObjectRequest._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSDistantObjectRequest] that points to the same underlying object as [other]. + NSDistantObjectRequest.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSDistantObjectRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSDistantObjectRequest] that wraps the given raw object pointer. + NSDistantObjectRequest.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSDistantObjectRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +typedef NSDistributedNotificationCenterType = ffi.Pointer; +typedef DartNSDistributedNotificationCenterType = objc.NSString; + +sealed class NSDistributedNotificationOptions { + static const NSDistributedNotificationDeliverImmediately = 1; + static const NSDistributedNotificationPostToAllSessions = 2; +} + +/// NSDistributedObjects +extension NSDistributedObjects on objc.NSObject { + /// classForPortCoder + @Deprecated('Use NSXPCConnection instead') + objc.ObjCObject get classForPortCoder { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classForPortCoder', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForPortCoder); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// replacementObjectForPortCoder: + @Deprecated('Use NSXPCConnection instead') + objc.ObjCObject? replacementObjectForPortCoder(NSPortCoder coder) { + final _$$ref = object$.ref; + final _$$ref$1 = coder.ref; + objc.checkOsVersionInternal( + 'NSObject.replacementObjectForPortCoder:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_replacementObjectForPortCoder_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +enum NSEnergyFormatterUnit { + NSEnergyFormatterUnitJoule(11), + NSEnergyFormatterUnitKilojoule(14), + NSEnergyFormatterUnitCalorie(1793), + NSEnergyFormatterUnitKilocalorie(1794); + + final int value; + const NSEnergyFormatterUnit(this.value); + + static NSEnergyFormatterUnit fromValue(int value) => switch (value) { + 11 => NSEnergyFormatterUnitJoule, + 14 => NSEnergyFormatterUnitKilojoule, + 1793 => NSEnergyFormatterUnitCalorie, + 1794 => NSEnergyFormatterUnitKilocalorie, + _ => throw ArgumentError('Unknown value for NSEnergyFormatterUnit: $value'), + }; +} + +typedef NSErrorDomain = ffi.Pointer; +typedef DartNSErrorDomain = objc.NSString; + +/// NSErrorRecoveryAttempting +extension NSErrorRecoveryAttempting on objc.NSObject { + /// attemptRecoveryFromError:optionIndex: + bool attemptRecoveryFromError( + objc.NSError error, { + required DartNSUInteger optionIndex, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = error.ref; + objc.checkOsVersionInternal( + 'NSObject.attemptRecoveryFromError:optionIndex:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_z7gxsm( + _$$ref.pointer, + _sel_attemptRecoveryFromError_optionIndex_, + _$$ref$1.pointer, + optionIndex, + ); + } + + /// attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo: + void attemptRecoveryFromError$1( + objc.NSError error, { + required DartNSUInteger optionIndex, + objc.ObjCObject? delegate, + required ffi.Pointer didRecoverSelector, + required ffi.Pointer contextInfo, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = error.ref; + final _$$ref$2 = delegate?.ref; + objc.checkOsVersionInternal( + 'NSObject.attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_10txwc9( + _$$ref.pointer, + _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_, + _$$ref$1.pointer, + optionIndex, + _$$ref$2?.pointer ?? ffi.nullptr, + didRecoverSelector, + contextInfo, + ); + } +} + +typedef NSErrorUserInfoKey = ffi.Pointer; +typedef DartNSErrorUserInfoKey = objc.NSString; + +/// WARNING: NSException is a stub. To generate bindings for this class, include +/// NSException in your config's objc-interfaces list. +/// +/// NSException +extension type NSException._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSException] that points to the same underlying object as [other]. + NSException.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSException] that wraps the given raw object pointer. + NSException.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +typedef NSExceptionName = ffi.Pointer; +typedef DartNSExceptionName = objc.NSString; + +/// NSExceptionRaisingConveniences +extension NSExceptionRaisingConveniences on NSException { + /// raise:format: + static void raise$1( + DartNSExceptionName name, { + required objc.NSString format, + }) { + final _$$ref = name.ref; + final _$$ref$1 = format.ref; + _objc_msgSend_pfv6jd( + _class_NSException, + _sel_raise_format_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + } +} + +const int NSExecutableArchitectureMismatchError = 3585; + +const int NSExecutableErrorMaximum = 3839; + +const int NSExecutableErrorMinimum = 3584; + +const int NSExecutableLinkError = 3588; + +const int NSExecutableLoadError = 3587; + +const int NSExecutableNotLoadableError = 3584; + +const int NSExecutableRuntimeMismatchError = 3586; + +enum NSExpressionType { + NSConstantValueExpressionType(0), + NSEvaluatedObjectExpressionType(1), + NSVariableExpressionType(2), + NSKeyPathExpressionType(3), + NSFunctionExpressionType(4), + NSUnionSetExpressionType(5), + NSIntersectSetExpressionType(6), + NSMinusSetExpressionType(7), + NSSubqueryExpressionType(13), + NSAggregateExpressionType(14), + NSAnyKeyExpressionType(15), + NSBlockExpressionType(19), + NSConditionalExpressionType(20); + + final int value; + const NSExpressionType(this.value); + + static NSExpressionType fromValue(int value) => switch (value) { + 0 => NSConstantValueExpressionType, + 1 => NSEvaluatedObjectExpressionType, + 2 => NSVariableExpressionType, + 3 => NSKeyPathExpressionType, + 4 => NSFunctionExpressionType, + 5 => NSUnionSetExpressionType, + 6 => NSIntersectSetExpressionType, + 7 => NSMinusSetExpressionType, + 13 => NSSubqueryExpressionType, + 14 => NSAggregateExpressionType, + 15 => NSAnyKeyExpressionType, + 19 => NSBlockExpressionType, + 20 => NSConditionalExpressionType, + _ => throw ArgumentError('Unknown value for NSExpressionType: $value'), + }; +} + +/// NSExtendedAttributedString +extension NSExtendedAttributedString on objc.NSAttributedString { + /// attribute:atIndex:effectiveRange: + objc.ObjCObject? attribute( + DartNSAttributedStringKey attrName, { + required DartNSUInteger atIndex, + required NSRangePointer effectiveRange, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = attrName.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.attribute:atIndex:effectiveRange:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_7km9vu( + _$$ref.pointer, + _sel_attribute_atIndex_effectiveRange_, + _$$ref$1.pointer, + atIndex, + effectiveRange, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// attribute:atIndex:longestEffectiveRange:inRange: + objc.ObjCObject? attribute$1( + DartNSAttributedStringKey attrName, { + required DartNSUInteger atIndex, + required NSRangePointer longestEffectiveRange, + required NSRange inRange, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = attrName.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.attribute:atIndex:longestEffectiveRange:inRange:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1k1akuq( + _$$ref.pointer, + _sel_attribute_atIndex_longestEffectiveRange_inRange_, + _$$ref$1.pointer, + atIndex, + longestEffectiveRange, + inRange, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// attributedSubstringFromRange: + objc.NSAttributedString attributedSubstringFromRange(NSRange range) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.attributedSubstringFromRange:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1k1o1s7( + _$$ref.pointer, + _sel_attributedSubstringFromRange_, + range, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// attributesAtIndex:longestEffectiveRange:inRange: + objc.NSDictionary attributesAtIndex$1( + DartNSUInteger location, { + required NSRangePointer longestEffectiveRange, + required NSRange inRange, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.attributesAtIndex:longestEffectiveRange:inRange:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1pp2gs8( + _$$ref.pointer, + _sel_attributesAtIndex_longestEffectiveRange_inRange_, + location, + longestEffectiveRange, + inRange, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// enumerateAttribute:inRange:options:usingBlock: + void enumerateAttribute( + DartNSAttributedStringKey attrName, { + required NSRange inRange, + required DartNSUInteger options, + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = attrName.ref; + final _$$ref$2 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.enumerateAttribute:inRange:options:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_ipgwfh( + _$$ref.pointer, + _sel_enumerateAttribute_inRange_options_usingBlock_, + _$$ref$1.pointer, + inRange, + options, + _$$ref$2.pointer, + ); + } + + /// enumerateAttributesInRange:options:usingBlock: + void enumerateAttributesInRange( + NSRange enumerationRange, { + required DartNSUInteger options, + required objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.enumerateAttributesInRange:options:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_1kok4b( + _$$ref.pointer, + _sel_enumerateAttributesInRange_options_usingBlock_, + enumerationRange, + options, + _$$ref$1.pointer, + ); + } + + /// initWithAttributedString: + objc.NSAttributedString initWithAttributedString( + objc.NSAttributedString attrStr, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = attrStr.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithAttributedString_, + _$$ref$1.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// initWithString: + objc.NSAttributedString initWithString(objc.NSString str) { + final _$$ref = object$.ref; + final _$$ref$1 = str.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithString_, + _$$ref$1.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// initWithString:attributes: + objc.NSAttributedString initWithString$1( + objc.NSString str, { + objc.NSDictionary? attributes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = str.ref; + final _$$ref$2 = attributes?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithString:attributes:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.retainAndReturnPointer(), + _sel_initWithString_attributes_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// isEqualToAttributedString: + bool isEqualToAttributedString(objc.NSAttributedString other) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.isEqualToAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isEqualToAttributedString_, + _$$ref$1.pointer, + ); + } + + /// length + DartNSUInteger get length { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.length', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_length); + } +} + +/// NSExtendedCoder +extension NSExtendedCoder on objc.NSCoder { + /// allowedClasses + objc.NSSet? get allowedClasses { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.allowedClasses', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allowedClasses); + return $ret.address == 0 + ? null + : objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// allowsKeyedCoding + bool get allowsKeyedCoding { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_allowsKeyedCoding); + } + + /// containsValueForKey: + bool containsValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_containsValueForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeArrayOfObjCType:count:at: + void decodeArrayOfObjCType( + ffi.Pointer itemType, { + required DartNSUInteger count, + required ffi.Pointer at, + }) { + final _$$ref = object$.ref; + _objc_msgSend_1lwwnes( + _$$ref.pointer, + _sel_decodeArrayOfObjCType_count_at_, + itemType, + count, + at, + ); + } + + /// decodeArrayOfObjectsOfClass:forKey: + objc.NSArray? decodeArrayOfObjectsOfClass( + objc.ObjCObject cls, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = cls.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeArrayOfObjectsOfClass:forKey:', + iOS: (false, (14, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_decodeArrayOfObjectsOfClass_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// decodeArrayOfObjectsOfClasses:forKey: + objc.NSArray? decodeArrayOfObjectsOfClasses( + objc.NSSet classes, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = classes.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeArrayOfObjectsOfClasses:forKey:', + iOS: (false, (14, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_decodeArrayOfObjectsOfClasses_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// decodeBoolForKey: + bool decodeBoolForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_decodeBoolForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeBytesForKey:minimumLength: + ffi.Pointer decodeBytesForKey( + objc.NSString key, { + required DartNSUInteger minimumLength, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeBytesForKey:minimumLength:', + iOS: (false, (18, 4, 0)), + macOS: (false, (15, 4, 0)), + ); + return _objc_msgSend_nk32k5( + _$$ref.pointer, + _sel_decodeBytesForKey_minimumLength_, + _$$ref$1.pointer, + minimumLength, + ); + } + + /// decodeBytesForKey:returnedLength: + ffi.Pointer decodeBytesForKey$1( + objc.NSString key, { + required ffi.Pointer returnedLength, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_1pvm3yv( + _$$ref.pointer, + _sel_decodeBytesForKey_returnedLength_, + _$$ref$1.pointer, + returnedLength, + ); + } + + /// decodeBytesWithMinimumLength: + ffi.Pointer decodeBytesWithMinimumLength(DartNSUInteger length) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeBytesWithMinimumLength:', + iOS: (false, (18, 4, 0)), + macOS: (false, (15, 4, 0)), + ); + return _objc_msgSend_16bn854( + _$$ref.pointer, + _sel_decodeBytesWithMinimumLength_, + length, + ); + } + + /// decodeBytesWithReturnedLength: + ffi.Pointer decodeBytesWithReturnedLength( + ffi.Pointer lengthp, + ) { + final _$$ref = object$.ref; + return _objc_msgSend_2p9qiq( + _$$ref.pointer, + _sel_decodeBytesWithReturnedLength_, + lengthp, + ); + } + + /// decodeDictionaryWithKeysOfClass:objectsOfClass:forKey: + objc.NSDictionary? decodeDictionaryWithKeysOfClass( + objc.ObjCObject keyCls, { + required objc.ObjCObject objectsOfClass, + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = keyCls.ref; + final _$$ref$2 = objectsOfClass.ref; + final _$$ref$3 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:', + iOS: (false, (14, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey: + objc.NSDictionary? decodeDictionaryWithKeysOfClasses( + objc.NSSet keyClasses, { + required objc.NSSet objectsOfClasses, + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = keyClasses.ref; + final _$$ref$2 = objectsOfClasses.ref; + final _$$ref$3 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:', + iOS: (false, (14, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// decodeDoubleForKey: + double decodeDoubleForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return objc.useMsgSendVariants + ? _objc_msgSend_mabicuFpret( + _$$ref.pointer, + _sel_decodeDoubleForKey_, + _$$ref$1.pointer, + ) + : _objc_msgSend_mabicu( + _$$ref.pointer, + _sel_decodeDoubleForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeFloatForKey: + double decodeFloatForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return objc.useMsgSendVariants + ? _objc_msgSend_g4ia9xFpret( + _$$ref.pointer, + _sel_decodeFloatForKey_, + _$$ref$1.pointer, + ) + : _objc_msgSend_g4ia9x( + _$$ref.pointer, + _sel_decodeFloatForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeInt32ForKey: + int decodeInt32ForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_fd28sq( + _$$ref.pointer, + _sel_decodeInt32ForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeInt64ForKey: + int decodeInt64ForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_1oj5o8z( + _$$ref.pointer, + _sel_decodeInt64ForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeIntForKey: + int decodeIntForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_hws22w( + _$$ref.pointer, + _sel_decodeIntForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeIntegerForKey: + DartNSInteger decodeIntegerForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeIntegerForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1r6ymhb( + _$$ref.pointer, + _sel_decodeIntegerForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeObject + objc.ObjCObject? decodeObject() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodeObject); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodeObjectForKey: + objc.ObjCObject? decodeObjectForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_decodeObjectForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodeObjectOfClass:forKey: + objc.ObjCObject? decodeObjectOfClass( + objc.ObjCObject aClass, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = aClass.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeObjectOfClass:forKey:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_decodeObjectOfClass_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodeObjectOfClasses:forKey: + objc.ObjCObject? decodeObjectOfClasses( + objc.NSSet? classes, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = classes?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeObjectOfClasses:forKey:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_decodeObjectOfClasses_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodePropertyList + objc.ObjCObject? decodePropertyList() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodePropertyList); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodePropertyListForKey: + objc.ObjCObject? decodePropertyListForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodePropertyListForKey:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_decodePropertyListForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodeTopLevelObjectAndReturnError: + objc.ObjCObject? decodeTopLevelObjectAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeTopLevelObjectAndReturnError:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1w05pgk( + _$$ref.pointer, + _sel_decodeTopLevelObjectAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decodeTopLevelObjectForKey:error: + objc.ObjCObject? decodeTopLevelObjectForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeTopLevelObjectForKey:error:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.pointer, + _sel_decodeTopLevelObjectForKey_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decodeTopLevelObjectOfClass:forKey:error: + objc.ObjCObject? decodeTopLevelObjectOfClass( + objc.ObjCObject aClass, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = aClass.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeTopLevelObjectOfClass:forKey:error:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.pointer, + _sel_decodeTopLevelObjectOfClass_forKey_error_, + _$$ref$1.pointer, + _$$ref$2.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decodeTopLevelObjectOfClasses:forKey:error: + objc.ObjCObject? decodeTopLevelObjectOfClasses( + objc.NSSet? classes, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = classes?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeTopLevelObjectOfClasses:forKey:error:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.pointer, + _sel_decodeTopLevelObjectOfClasses_forKey_error_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decodeValuesOfObjCTypes: + void decodeValuesOfObjCTypes(ffi.Pointer types) { + final _$$ref = object$.ref; + _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_decodeValuesOfObjCTypes_, types); + } + + /// decodingFailurePolicy + objc.NSDecodingFailurePolicy get decodingFailurePolicy { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodingFailurePolicy', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $ret = _objc_msgSend_dgx62p( + _$$ref.pointer, + _sel_decodingFailurePolicy, + ); + return objc.NSDecodingFailurePolicy.fromValue($ret); + } + + /// encodeArrayOfObjCType:count:at: + void encodeArrayOfObjCType( + ffi.Pointer type, { + required DartNSUInteger count, + required ffi.Pointer at, + }) { + final _$$ref = object$.ref; + _objc_msgSend_1lwwnes( + _$$ref.pointer, + _sel_encodeArrayOfObjCType_count_at_, + type, + count, + at, + ); + } + + /// encodeBool:forKey: + void encodeBool(bool value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_hk7n97( + _$$ref.pointer, + _sel_encodeBool_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeBycopyObject: + void encodeBycopyObject(objc.ObjCObject? anObject) { + final _$$ref = object$.ref; + final _$$ref$1 = anObject?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeBycopyObject_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// encodeByrefObject: + void encodeByrefObject(objc.ObjCObject? anObject) { + final _$$ref = object$.ref; + final _$$ref$1 = anObject?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeByrefObject_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// encodeBytes:length: + void encodeBytes( + ffi.Pointer byteaddr, { + required DartNSUInteger length, + }) { + final _$$ref = object$.ref; + _objc_msgSend_zuf90e( + _$$ref.pointer, + _sel_encodeBytes_length_, + byteaddr, + length, + ); + } + + /// encodeBytes:length:forKey: + void encodeBytes$1( + ffi.Pointer bytes, { + required DartNSUInteger length, + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_18flwjr( + _$$ref.pointer, + _sel_encodeBytes_length_forKey_, + bytes, + length, + _$$ref$1.pointer, + ); + } + + /// encodeConditionalObject: + void encodeConditionalObject(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeConditionalObject_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// encodeConditionalObject:forKey: + void encodeConditionalObject$1( + objc.ObjCObject? object, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + final _$$ref$2 = forKey.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_encodeConditionalObject_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// encodeDouble:forKey: + void encodeDouble(double value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_130mcug( + _$$ref.pointer, + _sel_encodeDouble_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeFloat:forKey: + void encodeFloat(double value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_quo6mj( + _$$ref.pointer, + _sel_encodeFloat_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeInt32:forKey: + void encodeInt32(int value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_lof6g0( + _$$ref.pointer, + _sel_encodeInt32_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeInt64:forKey: + void encodeInt64(int value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_mpxix1( + _$$ref.pointer, + _sel_encodeInt64_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeInt:forKey: + void encodeInt(int value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_d8c3m2( + _$$ref.pointer, + _sel_encodeInt_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeInteger:forKey: + void encodeInteger(DartNSInteger value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.encodeInteger:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_1kva9v1( + _$$ref.pointer, + _sel_encodeInteger_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeObject: + void encodeObject(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeObject_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// encodeObject:forKey: + void encodeObject$1( + objc.ObjCObject? object, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + final _$$ref$2 = forKey.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_encodeObject_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// encodePropertyList: + void encodePropertyList(objc.ObjCObject aPropertyList) { + final _$$ref = object$.ref; + final _$$ref$1 = aPropertyList.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodePropertyList_, + _$$ref$1.pointer, + ); + } + + /// encodeRootObject: + void encodeRootObject(objc.ObjCObject rootObject) { + final _$$ref = object$.ref; + final _$$ref$1 = rootObject.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeRootObject_, + _$$ref$1.pointer, + ); + } + + /// encodeValuesOfObjCTypes: + void encodeValuesOfObjCTypes(ffi.Pointer types) { + final _$$ref = object$.ref; + _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_encodeValuesOfObjCTypes_, types); + } + + /// error + objc.NSError? get error { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.error', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_error); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } + + /// failWithError: + void failWithError(objc.NSError error) { + final _$$ref = object$.ref; + final _$$ref$1 = error.ref; + objc.checkOsVersionInternal( + 'NSCoder.failWithError:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_failWithError_, _$$ref$1.pointer); + } + + /// objectZone + ffi.Pointer objectZone() { + final _$$ref = object$.ref; + return _objc_msgSend_sz90oi(_$$ref.pointer, _sel_objectZone); + } + + /// requiresSecureCoding + bool get requiresSecureCoding { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.requiresSecureCoding', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_requiresSecureCoding); + } + + /// setObjectZone: + void setObjectZone(ffi.Pointer zone) { + final _$$ref = object$.ref; + _objc_msgSend_1lonves(_$$ref.pointer, _sel_setObjectZone_, zone); + } + + /// systemVersion + int get systemVersion { + final _$$ref = object$.ref; + return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_systemVersion); + } +} + +/// NSExtendedLocale +extension NSExtendedLocale on objc.NSLocale { + /// alternateQuotationBeginDelimiter + objc.NSString get alternateQuotationBeginDelimiter { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.alternateQuotationBeginDelimiter', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_alternateQuotationBeginDelimiter, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// alternateQuotationEndDelimiter + objc.NSString get alternateQuotationEndDelimiter { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.alternateQuotationEndDelimiter', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_alternateQuotationEndDelimiter, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// calendarIdentifier + objc.NSString get calendarIdentifier { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.calendarIdentifier', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_calendarIdentifier); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// collationIdentifier + objc.NSString? get collationIdentifier { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.collationIdentifier', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_collationIdentifier, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// collatorIdentifier + objc.NSString get collatorIdentifier { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.collatorIdentifier', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_collatorIdentifier); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// countryCode + @Deprecated('Deprecated') + objc.NSString? get countryCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.countryCode', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_countryCode); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// currencyCode + objc.NSString? get currencyCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.currencyCode', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currencyCode); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// currencySymbol + objc.NSString get currencySymbol { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.currencySymbol', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currencySymbol); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// decimalSeparator + objc.NSString get decimalSeparator { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.decimalSeparator', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decimalSeparator); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// exemplarCharacterSet + objc.NSCharacterSet get exemplarCharacterSet { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.exemplarCharacterSet', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_exemplarCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// groupingSeparator + objc.NSString get groupingSeparator { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.groupingSeparator', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_groupingSeparator); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// languageCode + objc.NSString get languageCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.languageCode', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_languageCode); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// languageIdentifier + objc.NSString get languageIdentifier { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.languageIdentifier', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_languageIdentifier); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localeIdentifier + objc.NSString get localeIdentifier { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_localeIdentifier); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForCalendarIdentifier: + objc.NSString? localizedStringForCalendarIdentifier( + objc.NSString calendarIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = calendarIdentifier.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForCalendarIdentifier:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForCalendarIdentifier_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForCollationIdentifier: + objc.NSString? localizedStringForCollationIdentifier( + objc.NSString collationIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = collationIdentifier.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForCollationIdentifier:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForCollationIdentifier_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForCollatorIdentifier: + objc.NSString? localizedStringForCollatorIdentifier( + objc.NSString collatorIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = collatorIdentifier.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForCollatorIdentifier:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForCollatorIdentifier_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForCountryCode: + objc.NSString? localizedStringForCountryCode(objc.NSString countryCode) { + final _$$ref = object$.ref; + final _$$ref$1 = countryCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForCountryCode:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForCountryCode_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForCurrencyCode: + objc.NSString? localizedStringForCurrencyCode(objc.NSString currencyCode) { + final _$$ref = object$.ref; + final _$$ref$1 = currencyCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForCurrencyCode:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForCurrencyCode_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForLanguageCode: + objc.NSString? localizedStringForLanguageCode(objc.NSString languageCode) { + final _$$ref = object$.ref; + final _$$ref$1 = languageCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForLanguageCode:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForLanguageCode_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForLocaleIdentifier: + objc.NSString localizedStringForLocaleIdentifier( + objc.NSString localeIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = localeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForLocaleIdentifier:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForLocaleIdentifier_, + _$$ref$1.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForScriptCode: + objc.NSString? localizedStringForScriptCode(objc.NSString scriptCode) { + final _$$ref = object$.ref; + final _$$ref$1 = scriptCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForScriptCode:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForScriptCode_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForVariantCode: + objc.NSString? localizedStringForVariantCode(objc.NSString variantCode) { + final _$$ref = object$.ref; + final _$$ref$1 = variantCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForVariantCode:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForVariantCode_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// quotationBeginDelimiter + objc.NSString get quotationBeginDelimiter { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.quotationBeginDelimiter', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_quotationBeginDelimiter, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// quotationEndDelimiter + objc.NSString get quotationEndDelimiter { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.quotationEndDelimiter', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_quotationEndDelimiter, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// regionCode + objc.NSString? get regionCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.regionCode', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_regionCode); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// scriptCode + objc.NSString? get scriptCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.scriptCode', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_scriptCode); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// usesMetricSystem + bool get usesMetricSystem { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.usesMetricSystem', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_usesMetricSystem); + } + + /// variantCode + objc.NSString? get variantCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.variantCode', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_variantCode); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// NSExtendedMutableAttributedString +extension NSExtendedMutableAttributedString on NSMutableAttributedString { + /// addAttribute:value:range: + void addAttribute( + DartNSAttributedStringKey name, { + required objc.ObjCObject value, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = name.ref; + final _$$ref$2 = value.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.addAttribute:value:range:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_6h5ewf( + _$$ref.pointer, + _sel_addAttribute_value_range_, + _$$ref$1.pointer, + _$$ref$2.pointer, + range, + ); + } + + /// addAttributes:range: + void addAttributes(objc.NSDictionary attrs, {required NSRange range}) { + final _$$ref = object$.ref; + final _$$ref$1 = attrs.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.addAttributes:range:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1oteutl( + _$$ref.pointer, + _sel_addAttributes_range_, + _$$ref$1.pointer, + range, + ); + } + + /// appendAttributedString: + void appendAttributedString(objc.NSAttributedString attrString) { + final _$$ref = object$.ref; + final _$$ref$1 = attrString.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.appendAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_appendAttributedString_, + _$$ref$1.pointer, + ); + } + + /// beginEditing + void beginEditing() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.beginEditing', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_beginEditing); + } + + /// deleteCharactersInRange: + void deleteCharactersInRange(NSRange range) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.deleteCharactersInRange:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_deleteCharactersInRange_, range); + } + + /// endEditing + void endEditing() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.endEditing', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endEditing); + } + + /// insertAttributedString:atIndex: + void insertAttributedString( + objc.NSAttributedString attrString, { + required DartNSUInteger atIndex, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = attrString.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.insertAttributedString:atIndex:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_djsa9o( + _$$ref.pointer, + _sel_insertAttributedString_atIndex_, + _$$ref$1.pointer, + atIndex, + ); + } + + /// mutableString + objc.NSMutableString get mutableString { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.mutableString', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_mutableString); + return objc.NSMutableString.fromPointer($ret, retain: true, release: true); + } + + /// removeAttribute:range: + void removeAttribute( + DartNSAttributedStringKey name, { + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = name.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.removeAttribute:range:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1oteutl( + _$$ref.pointer, + _sel_removeAttribute_range_, + _$$ref$1.pointer, + range, + ); + } + + /// replaceCharactersInRange:withAttributedString: + void replaceCharactersInRange( + NSRange range, { + required objc.NSAttributedString withAttributedString, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withAttributedString.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.replaceCharactersInRange:withAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1tv4uax( + _$$ref.pointer, + _sel_replaceCharactersInRange_withAttributedString_, + range, + _$$ref$1.pointer, + ); + } + + /// setAttributedString: + void setAttributedString(objc.NSAttributedString attrString) { + final _$$ref = object$.ref; + final _$$ref$1 = attrString.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.setAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAttributedString_, + _$$ref$1.pointer, + ); + } +} + +/// NSExtendedScanner +extension NSExtendedScanner on NSScanner { + /// isAtEnd + bool get isAtEnd { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isAtEnd); + } + + /// scanCharactersFromSet:intoString: + bool scanCharactersFromSet( + objc.NSCharacterSet set, { + required ffi.Pointer> intoString, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + return _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_scanCharactersFromSet_intoString_, + _$$ref$1.pointer, + intoString, + ); + } + + /// scanDouble: + bool scanDouble(ffi.Pointer result) { + final _$$ref = object$.ref; + return _objc_msgSend_lzroim(_$$ref.pointer, _sel_scanDouble_, result); + } + + /// scanFloat: + bool scanFloat(ffi.Pointer result) { + final _$$ref = object$.ref; + return _objc_msgSend_1kz7g09(_$$ref.pointer, _sel_scanFloat_, result); + } + + /// scanHexDouble: + bool scanHexDouble(ffi.Pointer result) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSScanner.scanHexDouble:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_lzroim(_$$ref.pointer, _sel_scanHexDouble_, result); + } + + /// scanHexFloat: + bool scanHexFloat(ffi.Pointer result) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSScanner.scanHexFloat:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1kz7g09(_$$ref.pointer, _sel_scanHexFloat_, result); + } + + /// scanHexInt: + bool scanHexInt(ffi.Pointer result) { + final _$$ref = object$.ref; + return _objc_msgSend_11a6od8(_$$ref.pointer, _sel_scanHexInt_, result); + } + + /// scanHexLongLong: + bool scanHexLongLong(ffi.Pointer result) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSScanner.scanHexLongLong:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1513vdc(_$$ref.pointer, _sel_scanHexLongLong_, result); + } + + /// scanInt: + bool scanInt(ffi.Pointer result) { + final _$$ref = object$.ref; + return _objc_msgSend_h10lj0(_$$ref.pointer, _sel_scanInt_, result); + } + + /// scanInteger: + bool scanInteger(ffi.Pointer result) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSScanner.scanInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_5bd8xr(_$$ref.pointer, _sel_scanInteger_, result); + } + + /// scanLongLong: + bool scanLongLong(ffi.Pointer result) { + final _$$ref = object$.ref; + return _objc_msgSend_1ea59hv(_$$ref.pointer, _sel_scanLongLong_, result); + } + + /// scanString:intoString: + bool scanString( + objc.NSString string, { + required ffi.Pointer> intoString, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + return _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_scanString_intoString_, + _$$ref$1.pointer, + intoString, + ); + } + + /// scanUnsignedLongLong: + bool scanUnsignedLongLong(ffi.Pointer result) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSScanner.scanUnsignedLongLong:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_1513vdc( + _$$ref.pointer, + _sel_scanUnsignedLongLong_, + result, + ); + } + + /// scanUpToCharactersFromSet:intoString: + bool scanUpToCharactersFromSet( + objc.NSCharacterSet set, { + required ffi.Pointer> intoString, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + return _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_scanUpToCharactersFromSet_intoString_, + _$$ref$1.pointer, + intoString, + ); + } + + /// scanUpToString:intoString: + bool scanUpToString( + objc.NSString string, { + required ffi.Pointer> intoString, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + return _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_scanUpToString_intoString_, + _$$ref$1.pointer, + intoString, + ); + } + + /// localizedScannerWithString: + static objc.ObjCObject localizedScannerWithString(objc.NSString string) { + final _$$ref = string.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSScanner, + _sel_localizedScannerWithString_, + _$$ref.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSExtendedStringPropertyListParsing +extension NSExtendedStringPropertyListParsing on objc.NSString { + /// propertyList + objc.ObjCObject propertyList() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_propertyList); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// propertyListFromStringsFileFormat + objc.NSDictionary? propertyListFromStringsFileFormat() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_propertyListFromStringsFileFormat, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +/// NSExtendedTimeZone +extension NSExtendedTimeZone on NSTimeZone { + /// abbreviation + objc.NSString? get abbreviation { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_abbreviation); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// daylightSavingTimeOffset + DartNSTimeInterval get daylightSavingTimeOffset { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTimeZone.daylightSavingTimeOffset', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + _$$ref.pointer, + _sel_daylightSavingTimeOffset, + ) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_daylightSavingTimeOffset); + } + + /// description + objc.NSString get description$1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// isDaylightSavingTime + bool get isDaylightSavingTime { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isDaylightSavingTime); + } + + /// isEqualToTimeZone: + bool isEqualToTimeZone(NSTimeZone aTimeZone) { + final _$$ref = object$.ref; + final _$$ref$1 = aTimeZone.ref; + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isEqualToTimeZone_, + _$$ref$1.pointer, + ); + } + + /// localizedName:locale: + objc.NSString? localizedName( + NSTimeZoneNameStyle style, { + objc.NSLocale? locale, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = locale?.ref; + objc.checkOsVersionInternal( + 'NSTimeZone.localizedName:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_1xmmt6t( + _$$ref.pointer, + _sel_localizedName_locale_, + style.value, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// nextDaylightSavingTimeTransition + objc.NSDate? get nextDaylightSavingTimeTransition { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTimeZone.nextDaylightSavingTimeTransition', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_nextDaylightSavingTimeTransition, + ); + return $ret.address == 0 + ? null + : objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// secondsFromGMT + DartNSInteger get secondsFromGMT { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_secondsFromGMT); + } + + /// abbreviationDictionary + static objc.NSDictionary getAbbreviationDictionary() { + objc.checkOsVersionInternal( + 'NSTimeZone.abbreviationDictionary', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSTimeZone, + _sel_abbreviationDictionary, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// defaultTimeZone + static NSTimeZone getDefaultTimeZone() { + final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_defaultTimeZone); + return NSTimeZone.fromPointer($ret, retain: true, release: true); + } + + /// knownTimeZoneNames + static objc.NSArray getKnownTimeZoneNames() { + final $ret = _objc_msgSend_151sglz( + _class_NSTimeZone, + _sel_knownTimeZoneNames, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// localTimeZone + static NSTimeZone getLocalTimeZone() { + final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_localTimeZone); + return NSTimeZone.fromPointer($ret, retain: true, release: true); + } + + /// resetSystemTimeZone + static void resetSystemTimeZone() { + _objc_msgSend_1pl9qdv(_class_NSTimeZone, _sel_resetSystemTimeZone); + } + + /// setAbbreviationDictionary: + static void setAbbreviationDictionary(objc.NSDictionary value) { + final _$$ref = value.ref; + objc.checkOsVersionInternal( + 'NSTimeZone.setAbbreviationDictionary:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_xtuoz7( + _class_NSTimeZone, + _sel_setAbbreviationDictionary_, + _$$ref.pointer, + ); + } + + /// setDefaultTimeZone: + static void setDefaultTimeZone(NSTimeZone value) { + final _$$ref = value.ref; + _objc_msgSend_xtuoz7( + _class_NSTimeZone, + _sel_setDefaultTimeZone_, + _$$ref.pointer, + ); + } + + /// systemTimeZone + static NSTimeZone getSystemTimeZone() { + final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_systemTimeZone); + return NSTimeZone.fromPointer($ret, retain: true, release: true); + } + + /// timeZoneDataVersion + static objc.NSString getTimeZoneDataVersion() { + objc.checkOsVersionInternal( + 'NSTimeZone.timeZoneDataVersion', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSTimeZone, + _sel_timeZoneDataVersion, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSExtensionContext is a stub. To generate bindings for this class, include +/// NSExtensionContext in your config's objc-interfaces list. +/// +/// NSExtensionContext +extension type NSExtensionContext._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSExtensionContext] that points to the same underlying object as [other]. + NSExtensionContext.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSExtensionContext', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } + + /// Constructs a [NSExtensionContext] that wraps the given raw object pointer. + NSExtensionContext.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSExtensionContext', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } +} + +/// NSExtensionRequestHandling +extension type NSExtensionRequestHandling._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSExtensionRequestHandling] that points to the same underlying object as [other]. + NSExtensionRequestHandling.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSExtensionRequestHandling] that wraps the given raw object pointer. + NSExtensionRequestHandling.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSExtensionRequestHandling]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSExtensionRequestHandling, + ); + } +} + +extension NSExtensionRequestHandling$Methods on NSExtensionRequestHandling { + /// beginRequestWithExtensionContext: + void beginRequestWithExtensionContext(NSExtensionContext context) { + final _$$ref = object$.ref; + final _$$ref$1 = context.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_beginRequestWithExtensionContext_, + _$$ref$1.pointer, + ); + } +} + +interface class NSExtensionRequestHandling$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSExtensionRequestHandling.cast()); + + /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSExtensionRequestHandling implement({ + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSExtensionRequestHandling', + ); + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implement(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + return NSExtensionRequestHandling.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implement(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSExtensionRequestHandling implementAsListener({ + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSExtensionRequestHandling', + ); + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implementAsListener(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + return NSExtensionRequestHandling.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implementAsListener(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSExtensionRequestHandling implementAsBlocking({ + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSExtensionRequestHandling', + ); + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implementAsBlocking(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + return NSExtensionRequestHandling.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implementAsBlocking(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + } + + /// beginRequestWithExtensionContext: + static final beginRequestWithExtensionContext_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSExtensionRequestHandling, + _sel_beginRequestWithExtensionContext_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSExtensionRequestHandling, + _sel_beginRequestWithExtensionContext_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSExtensionContext) func) => + ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.fromFunction( + (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), + ), + (void Function(NSExtensionContext) func) => + ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.listener( + (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), + ), + (void Function(NSExtensionContext) func) => + ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.blocking( + (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), + ), + ); +} + +const int NSFeatureUnsupportedError = 3328; + +typedef NSFileAttributeKey = ffi.Pointer; +typedef DartNSFileAttributeKey = objc.NSString; +typedef NSFileAttributeType = ffi.Pointer; +typedef DartNSFileAttributeType = objc.NSString; + +/// NSFileAttributes +extension NSFileAttributes on objc.NSDictionary { + /// fileCreationDate + objc.NSDate? fileCreationDate() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileCreationDate); + return $ret.address == 0 + ? null + : objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// fileExtensionHidden + bool fileExtensionHidden() { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileExtensionHidden); + } + + /// fileGroupOwnerAccountID + objc.NSNumber? fileGroupOwnerAccountID() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_fileGroupOwnerAccountID, + ); + return $ret.address == 0 + ? null + : objc.NSNumber.fromPointer($ret, retain: true, release: true); + } + + /// fileGroupOwnerAccountName + objc.NSString? fileGroupOwnerAccountName() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_fileGroupOwnerAccountName, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// fileHFSCreatorCode + DartUInt32 fileHFSCreatorCode() { + final _$$ref = object$.ref; + return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_fileHFSCreatorCode); + } + + /// fileHFSTypeCode + DartUInt32 fileHFSTypeCode() { + final _$$ref = object$.ref; + return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_fileHFSTypeCode); + } + + /// fileIsAppendOnly + bool fileIsAppendOnly() { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileIsAppendOnly); + } + + /// fileIsImmutable + bool fileIsImmutable() { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileIsImmutable); + } + + /// fileModificationDate + objc.NSDate? fileModificationDate() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_fileModificationDate, + ); + return $ret.address == 0 + ? null + : objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// fileOwnerAccountID + objc.NSNumber? fileOwnerAccountID() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileOwnerAccountID); + return $ret.address == 0 + ? null + : objc.NSNumber.fromPointer($ret, retain: true, release: true); + } + + /// fileOwnerAccountName + objc.NSString? fileOwnerAccountName() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_fileOwnerAccountName, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// filePosixPermissions + DartNSUInteger filePosixPermissions() { + final _$$ref = object$.ref; + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_filePosixPermissions); + } + + /// fileSize + int fileSize() { + final _$$ref = object$.ref; + return _objc_msgSend_1p4gbjy(_$$ref.pointer, _sel_fileSize); + } + + /// fileSystemFileNumber + DartNSUInteger fileSystemFileNumber() { + final _$$ref = object$.ref; + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_fileSystemFileNumber); + } + + /// fileSystemNumber + DartNSInteger fileSystemNumber() { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_fileSystemNumber); + } + + /// fileType + objc.NSString? fileType() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileType); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +sealed class NSFileCoordinatorReadingOptions { + static const NSFileCoordinatorReadingWithoutChanges = 1; + static const NSFileCoordinatorReadingResolvesSymbolicLink = 2; + static const NSFileCoordinatorReadingImmediatelyAvailableMetadataOnly = 4; + static const NSFileCoordinatorReadingForUploading = 8; +} + +sealed class NSFileCoordinatorWritingOptions { + static const NSFileCoordinatorWritingForDeleting = 1; + static const NSFileCoordinatorWritingForMoving = 2; + static const NSFileCoordinatorWritingForMerging = 4; + static const NSFileCoordinatorWritingForReplacing = 8; + static const NSFileCoordinatorWritingContentIndependentMetadataOnly = 16; +} + +const int NSFileErrorMaximum = 1023; + +const int NSFileErrorMinimum = 0; + +/// WARNING: NSFileHandle is a stub. To generate bindings for this class, include +/// NSFileHandle in your config's objc-interfaces list. +/// +/// NSFileHandle +extension type NSFileHandle._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [NSFileHandle] that points to the same underlying object as [other]. + NSFileHandle.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSFileHandle] that wraps the given raw object pointer. + NSFileHandle.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSFileHandleAsynchronousAccess +extension NSFileHandleAsynchronousAccess on NSFileHandle { + /// acceptConnectionInBackgroundAndNotify + void acceptConnectionInBackgroundAndNotify() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv( + _$$ref.pointer, + _sel_acceptConnectionInBackgroundAndNotify, + ); + } + + /// acceptConnectionInBackgroundAndNotifyForModes: + void acceptConnectionInBackgroundAndNotifyForModes(objc.NSArray? modes) { + final _$$ref = object$.ref; + final _$$ref$1 = modes?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_acceptConnectionInBackgroundAndNotifyForModes_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// readInBackgroundAndNotify + void readInBackgroundAndNotify() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_readInBackgroundAndNotify); + } + + /// readInBackgroundAndNotifyForModes: + void readInBackgroundAndNotifyForModes(objc.NSArray? modes) { + final _$$ref = object$.ref; + final _$$ref$1 = modes?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_readInBackgroundAndNotifyForModes_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// readToEndOfFileInBackgroundAndNotify + void readToEndOfFileInBackgroundAndNotify() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv( + _$$ref.pointer, + _sel_readToEndOfFileInBackgroundAndNotify, + ); + } + + /// readToEndOfFileInBackgroundAndNotifyForModes: + void readToEndOfFileInBackgroundAndNotifyForModes(objc.NSArray? modes) { + final _$$ref = object$.ref; + final _$$ref$1 = modes?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_readToEndOfFileInBackgroundAndNotifyForModes_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// readabilityHandler + objc.ObjCBlock? get readabilityHandler { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFileHandle.readabilityHandler', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_readabilityHandler); + return $ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSFileHandle.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// setReadabilityHandler: + set readabilityHandler( + objc.ObjCBlock? value, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSFileHandle.setReadabilityHandler:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_setReadabilityHandler_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setWriteabilityHandler: + set writeabilityHandler( + objc.ObjCBlock? value, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSFileHandle.setWriteabilityHandler:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_setWriteabilityHandler_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// waitForDataInBackgroundAndNotify + void waitForDataInBackgroundAndNotify() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv( + _$$ref.pointer, + _sel_waitForDataInBackgroundAndNotify, + ); + } + + /// waitForDataInBackgroundAndNotifyForModes: + void waitForDataInBackgroundAndNotifyForModes(objc.NSArray? modes) { + final _$$ref = object$.ref; + final _$$ref$1 = modes?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_waitForDataInBackgroundAndNotifyForModes_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// writeabilityHandler + objc.ObjCBlock? get writeabilityHandler { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFileHandle.writeabilityHandler', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_writeabilityHandler); + return $ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSFileHandle.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSFileHandleCreation +extension NSFileHandleCreation on NSFileHandle { + /// fileHandleWithNullDevice + static NSFileHandle getFileHandleWithNullDevice() { + final $ret = _objc_msgSend_151sglz( + _class_NSFileHandle, + _sel_fileHandleWithNullDevice, + ); + return NSFileHandle.fromPointer($ret, retain: true, release: true); + } + + /// fileHandleWithStandardError + static NSFileHandle getFileHandleWithStandardError() { + final $ret = _objc_msgSend_151sglz( + _class_NSFileHandle, + _sel_fileHandleWithStandardError, + ); + return NSFileHandle.fromPointer($ret, retain: true, release: true); + } + + /// fileHandleWithStandardInput + static NSFileHandle getFileHandleWithStandardInput() { + final $ret = _objc_msgSend_151sglz( + _class_NSFileHandle, + _sel_fileHandleWithStandardInput, + ); + return NSFileHandle.fromPointer($ret, retain: true, release: true); + } + + /// fileHandleWithStandardOutput + static NSFileHandle getFileHandleWithStandardOutput() { + final $ret = _objc_msgSend_151sglz( + _class_NSFileHandle, + _sel_fileHandleWithStandardOutput, + ); + return NSFileHandle.fromPointer($ret, retain: true, release: true); + } +} + +/// NSFileHandlePlatformSpecific +extension NSFileHandlePlatformSpecific on NSFileHandle { + /// fileDescriptor + int get fileDescriptor { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_fileDescriptor); + } +} + +const int NSFileLockingError = 255; + +/// WARNING: NSFileManager is a stub. To generate bindings for this class, include +/// NSFileManager in your config's objc-interfaces list. +/// +/// NSFileManager +extension type NSFileManager._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSFileManager] that points to the same underlying object as [other]. + NSFileManager.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSFileManager] that wraps the given raw object pointer. + NSFileManager.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSFileManagerDelegate +extension type NSFileManagerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSFileManagerDelegate] that points to the same underlying object as [other]. + NSFileManagerDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSFileManagerDelegate] that wraps the given raw object pointer. + NSFileManagerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSFileManagerDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSFileManagerDelegate, + ); + } +} + +extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { + /// fileManager:shouldCopyItemAtPath:toPath: + bool fileManager( + NSFileManager fileManager, { + required objc.NSString shouldCopyItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldCopyItemAtPath.ref; + final _$$ref$3 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldCopyItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldCopyItemAtPath:toPath:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldCopyItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldCopyItemAtURL:toURL: + bool fileManager$1( + NSFileManager fileManager, { + required objc.NSURL shouldCopyItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldCopyItemAtURL.ref; + final _$$ref$3 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldCopyItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldCopyItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldCopyItemAtURL:toURL:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldCopyItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldLinkItemAtPath:toPath: + bool fileManager$2( + NSFileManager fileManager, { + required objc.NSString shouldLinkItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldLinkItemAtPath.ref; + final _$$ref$3 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldLinkItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldLinkItemAtPath:toPath:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldLinkItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldLinkItemAtURL:toURL: + bool fileManager$3( + NSFileManager fileManager, { + required objc.NSURL shouldLinkItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldLinkItemAtURL.ref; + final _$$ref$3 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldLinkItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldLinkItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldLinkItemAtURL:toURL:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldLinkItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldMoveItemAtPath:toPath: + bool fileManager$4( + NSFileManager fileManager, { + required objc.NSString shouldMoveItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldMoveItemAtPath.ref; + final _$$ref$3 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldMoveItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldMoveItemAtPath:toPath:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldMoveItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldMoveItemAtURL:toURL: + bool fileManager$5( + NSFileManager fileManager, { + required objc.NSURL shouldMoveItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldMoveItemAtURL.ref; + final _$$ref$3 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldMoveItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldMoveItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldMoveItemAtURL:toURL:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldMoveItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: + bool fileManager$6( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSString copyingItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = copyingItemAtPath.ref; + final _$$ref$4 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:copyingItemAtURL:toURL: + bool fileManager$7( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSURL copyingItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = copyingItemAtURL.ref; + final _$$ref$4 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: + bool fileManager$8( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSString linkingItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = linkingItemAtPath.ref; + final _$$ref$4 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:linkingItemAtURL:toURL: + bool fileManager$9( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSURL linkingItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = linkingItemAtURL.ref; + final _$$ref$4 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:movingItemAtPath:toPath: + bool fileManager$10( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSString movingItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = movingItemAtPath.ref; + final _$$ref$4 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:movingItemAtPath:toPath:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:movingItemAtURL:toURL: + bool fileManager$11( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSURL movingItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = movingItemAtURL.ref; + final _$$ref$4 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:movingItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:movingItemAtURL:toURL:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:removingItemAtPath: + bool fileManager$12( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSString removingItemAtPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = removingItemAtPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:removingItemAtPath:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:removingItemAtURL: + bool fileManager$13( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSURL removingItemAtURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = removingItemAtURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:removingItemAtURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:removingItemAtURL:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldRemoveItemAtPath: + bool fileManager$14( + NSFileManager fileManager, { + required objc.NSString shouldRemoveItemAtPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldRemoveItemAtPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldRemoveItemAtPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldRemoveItemAtPath:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_fileManager_shouldRemoveItemAtPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// fileManager:shouldRemoveItemAtURL: + bool fileManager$15( + NSFileManager fileManager, { + required objc.NSURL shouldRemoveItemAtURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldRemoveItemAtURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldRemoveItemAtURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldRemoveItemAtURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldRemoveItemAtURL:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_fileManager_shouldRemoveItemAtURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSFileManagerDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSFileManagerDelegate.cast()); + + /// Builds an object that implements the NSFileManagerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSFileManagerDelegate implement({ + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldCopyItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldCopyItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldLinkItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldLinkItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldMoveItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldMoveItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString)? + fileManager_shouldProceedAfterError_removingItemAtPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL)? + fileManager_shouldProceedAfterError_removingItemAtURL_, + bool Function(NSFileManager, objc.NSString)? + fileManager_shouldRemoveItemAtPath_, + bool Function(NSFileManager, objc.NSURL)? + fileManager_shouldRemoveItemAtURL_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSFileManagerDelegate', + ); + NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtPath_toPath_ + .implement(builder, fileManager_shouldCopyItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtURL_toURL_ + .implement(builder, fileManager_shouldCopyItemAtURL_toURL_); + NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtPath_toPath_ + .implement(builder, fileManager_shouldLinkItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtURL_toURL_ + .implement(builder, fileManager_shouldLinkItemAtURL_toURL_); + NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtPath_toPath_ + .implement(builder, fileManager_shouldMoveItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtURL_toURL_ + .implement(builder, fileManager_shouldMoveItemAtURL_toURL_); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_removingItemAtPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_removingItemAtPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_removingItemAtURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_removingItemAtURL_, + ); + NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtPath_.implement( + builder, + fileManager_shouldRemoveItemAtPath_, + ); + NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtURL_.implement( + builder, + fileManager_shouldRemoveItemAtURL_, + ); + builder.addProtocol($protocol); + return NSFileManagerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSFileManagerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldCopyItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldCopyItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldLinkItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldLinkItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldMoveItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldMoveItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString)? + fileManager_shouldProceedAfterError_removingItemAtPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL)? + fileManager_shouldProceedAfterError_removingItemAtURL_, + bool Function(NSFileManager, objc.NSString)? + fileManager_shouldRemoveItemAtPath_, + bool Function(NSFileManager, objc.NSURL)? + fileManager_shouldRemoveItemAtURL_, + bool $keepIsolateAlive = true, + }) { + NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtPath_toPath_ + .implement(builder, fileManager_shouldCopyItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtURL_toURL_ + .implement(builder, fileManager_shouldCopyItemAtURL_toURL_); + NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtPath_toPath_ + .implement(builder, fileManager_shouldLinkItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtURL_toURL_ + .implement(builder, fileManager_shouldLinkItemAtURL_toURL_); + NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtPath_toPath_ + .implement(builder, fileManager_shouldMoveItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtURL_toURL_ + .implement(builder, fileManager_shouldMoveItemAtURL_toURL_); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_removingItemAtPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_removingItemAtPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_removingItemAtURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_removingItemAtURL_, + ); + NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtPath_.implement( + builder, + fileManager_shouldRemoveItemAtPath_, + ); + NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtURL_.implement( + builder, + fileManager_shouldRemoveItemAtURL_, + ); + builder.addProtocol($protocol); + } + + /// fileManager:shouldCopyItemAtPath:toPath: + static final fileManager_shouldCopyItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldCopyItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldCopyItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldCopyItemAtURL:toURL: + static final fileManager_shouldCopyItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldCopyItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldCopyItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSURL arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldLinkItemAtPath:toPath: + static final fileManager_shouldLinkItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldLinkItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldLinkItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldLinkItemAtURL:toURL: + static final fileManager_shouldLinkItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldLinkItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldLinkItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSURL arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldMoveItemAtPath:toPath: + static final fileManager_shouldMoveItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldMoveItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldMoveItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldMoveItemAtURL:toURL: + static final fileManager_shouldMoveItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldMoveItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldMoveItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSURL arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: + static final fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function( + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + objc.NSString arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:copyingItemAtURL:toURL: + static final fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + objc.NSURL arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: + static final fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function( + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + objc.NSString arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:linkingItemAtURL:toURL: + static final fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + objc.NSURL arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:movingItemAtPath:toPath: + static final fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function( + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + objc.NSString arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:movingItemAtURL:toURL: + static final fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + objc.NSURL arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:removingItemAtPath: + static final fileManager_shouldProceedAfterError_removingItemAtPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSError, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldProceedAfterError:removingItemAtURL: + static final fileManager_shouldProceedAfterError_removingItemAtURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSError, objc.NSURL) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldRemoveItemAtPath: + static final fileManager_shouldRemoveItemAtPath_ = + objc.ObjCProtocolMethod( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldRemoveItemAtPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldRemoveItemAtPath_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// fileManager:shouldRemoveItemAtURL: + static final fileManager_shouldRemoveItemAtURL_ = + objc.ObjCProtocolMethod( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldRemoveItemAtURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldRemoveItemAtURL_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSURL) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSURL.fromFunction( + (ffi.Pointer _, NSFileManager arg1, objc.NSURL arg2) => + func(arg1, arg2), + ), + ); +} + +sealed class NSFileManagerItemReplacementOptions { + static const NSFileManagerItemReplacementUsingNewMetadataOnly = 1; + static const NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; +} + +enum NSFileManagerResumeSyncBehavior { + NSFileManagerResumeSyncBehaviorPreserveLocalChanges(0), + NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict(1), + NSFileManagerResumeSyncBehaviorDropLocalChanges(2); + + final int value; + const NSFileManagerResumeSyncBehavior(this.value); + + static NSFileManagerResumeSyncBehavior fromValue(int value) => + switch (value) { + 0 => NSFileManagerResumeSyncBehaviorPreserveLocalChanges, + 1 => NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict, + 2 => NSFileManagerResumeSyncBehaviorDropLocalChanges, + _ => throw ArgumentError( + 'Unknown value for NSFileManagerResumeSyncBehavior: $value', + ), + }; +} + +sealed class NSFileManagerSupportedSyncControls { + static const NSFileManagerSupportedSyncControlsPauseSync = 1; + static const NSFileManagerSupportedSyncControlsFailUploadOnConflict = 2; +} + +const int NSFileManagerUnmountBusyError = 769; + +sealed class NSFileManagerUnmountOptions { + static const NSFileManagerUnmountAllPartitionsAndEjectDisk = 1; + static const NSFileManagerUnmountWithoutUI = 2; +} + +const int NSFileManagerUnmountUnknownError = 768; + +enum NSFileManagerUploadLocalVersionConflictPolicy { + NSFileManagerUploadConflictPolicyDefault(0), + NSFileManagerUploadConflictPolicyFailOnConflict(1); + + final int value; + const NSFileManagerUploadLocalVersionConflictPolicy(this.value); + + static NSFileManagerUploadLocalVersionConflictPolicy fromValue( + int value, + ) => switch (value) { + 0 => NSFileManagerUploadConflictPolicyDefault, + 1 => NSFileManagerUploadConflictPolicyFailOnConflict, + _ => throw ArgumentError( + 'Unknown value for NSFileManagerUploadLocalVersionConflictPolicy: $value', + ), + }; +} + +const int NSFileNoSuchFileError = 4; + +/// NSFilePresenter +extension type NSFilePresenter._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSFilePresenter] that points to the same underlying object as [other]. + NSFilePresenter.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSFilePresenter] that wraps the given raw object pointer. + NSFilePresenter.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSFilePresenter]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSFilePresenter, + ); + } +} + +extension NSFilePresenter$Methods on NSFilePresenter { + /// accommodatePresentedItemDeletionWithCompletionHandler: + void accommodatePresentedItemDeletionWithCompletionHandler( + objc.ObjCBlock completionHandler, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = completionHandler.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_accommodatePresentedItemDeletionWithCompletionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'accommodatePresentedItemDeletionWithCompletionHandler:', + ); + } + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_accommodatePresentedItemDeletionWithCompletionHandler_, + _$$ref$1.pointer, + ); + } + + /// accommodatePresentedItemEvictionWithCompletionHandler: + void accommodatePresentedItemEvictionWithCompletionHandler( + objc.ObjCBlock completionHandler, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSFilePresenter.accommodatePresentedItemEvictionWithCompletionHandler:', + iOS: (false, (17, 4, 0)), + macOS: (false, (14, 4, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_accommodatePresentedItemEvictionWithCompletionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'accommodatePresentedItemEvictionWithCompletionHandler:', + ); + } + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_accommodatePresentedItemEvictionWithCompletionHandler_, + _$$ref$1.pointer, + ); + } + + /// accommodatePresentedSubitemDeletionAtURL:completionHandler: + void accommodatePresentedSubitemDeletionAtURL( + objc.NSURL url, { + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = completionHandler.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'accommodatePresentedSubitemDeletionAtURL:completionHandler:', + ); + } + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// observedPresentedItemUbiquityAttributes + objc.NSSet get observedPresentedItemUbiquityAttributes { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFilePresenter.observedPresentedItemUbiquityAttributes', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_observedPresentedItemUbiquityAttributes, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'observedPresentedItemUbiquityAttributes', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_observedPresentedItemUbiquityAttributes, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// presentedItemDidChange + void presentedItemDidChange() { + final _$$ref = object$.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_presentedItemDidChange)) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidChange', + ); + } + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_presentedItemDidChange); + } + + /// presentedItemDidChangeUbiquityAttributes: + void presentedItemDidChangeUbiquityAttributes(objc.NSSet attributes) { + final _$$ref = object$.ref; + final _$$ref$1 = attributes.ref; + objc.checkOsVersionInternal( + 'NSFilePresenter.presentedItemDidChangeUbiquityAttributes:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedItemDidChangeUbiquityAttributes_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidChangeUbiquityAttributes:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedItemDidChangeUbiquityAttributes_, + _$$ref$1.pointer, + ); + } + + /// presentedItemDidGainVersion: + void presentedItemDidGainVersion(NSFileVersion version) { + final _$$ref = object$.ref; + final _$$ref$1 = version.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedItemDidGainVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidGainVersion:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedItemDidGainVersion_, + _$$ref$1.pointer, + ); + } + + /// presentedItemDidLoseVersion: + void presentedItemDidLoseVersion(NSFileVersion version) { + final _$$ref = object$.ref; + final _$$ref$1 = version.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedItemDidLoseVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidLoseVersion:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedItemDidLoseVersion_, + _$$ref$1.pointer, + ); + } + + /// presentedItemDidMoveToURL: + void presentedItemDidMoveToURL(objc.NSURL newURL) { + final _$$ref = object$.ref; + final _$$ref$1 = newURL.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedItemDidMoveToURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidMoveToURL:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedItemDidMoveToURL_, + _$$ref$1.pointer, + ); + } + + /// presentedItemDidResolveConflictVersion: + void presentedItemDidResolveConflictVersion(NSFileVersion version) { + final _$$ref = object$.ref; + final _$$ref$1 = version.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedItemDidResolveConflictVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidResolveConflictVersion:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedItemDidResolveConflictVersion_, + _$$ref$1.pointer, + ); + } + + /// presentedItemOperationQueue + NSOperationQueue get presentedItemOperationQueue { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_presentedItemOperationQueue, + ); + return NSOperationQueue.fromPointer($ret, retain: true, release: true); + } + + /// presentedItemURL + objc.NSURL? get presentedItemURL { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_presentedItemURL); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// presentedSubitemAtURL:didGainVersion: + void presentedSubitemAtURL( + objc.NSURL url, { + required NSFileVersion didGainVersion, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = didGainVersion.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didGainVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemAtURL:didGainVersion:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didGainVersion_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// presentedSubitemAtURL:didLoseVersion: + void presentedSubitemAtURL$1( + objc.NSURL url, { + required NSFileVersion didLoseVersion, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = didLoseVersion.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didLoseVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemAtURL:didLoseVersion:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didLoseVersion_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// presentedSubitemAtURL:didMoveToURL: + void presentedSubitemAtURL$2( + objc.NSURL oldURL, { + required objc.NSURL didMoveToURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = oldURL.ref; + final _$$ref$2 = didMoveToURL.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didMoveToURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemAtURL:didMoveToURL:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didMoveToURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// presentedSubitemAtURL:didResolveConflictVersion: + void presentedSubitemAtURL$3( + objc.NSURL url, { + required NSFileVersion didResolveConflictVersion, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = didResolveConflictVersion.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didResolveConflictVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemAtURL:didResolveConflictVersion:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didResolveConflictVersion_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// presentedSubitemDidAppearAtURL: + void presentedSubitemDidAppearAtURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemDidAppearAtURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemDidAppearAtURL:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedSubitemDidAppearAtURL_, + _$$ref$1.pointer, + ); + } + + /// presentedSubitemDidChangeAtURL: + void presentedSubitemDidChangeAtURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemDidChangeAtURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemDidChangeAtURL:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedSubitemDidChangeAtURL_, + _$$ref$1.pointer, + ); + } + + /// primaryPresentedItemURL + objc.NSURL? get primaryPresentedItemURL { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFilePresenter.primaryPresentedItemURL', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_primaryPresentedItemURL, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'primaryPresentedItemURL', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_primaryPresentedItemURL, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// relinquishPresentedItemToReader: + void relinquishPresentedItemToReader( + objc.ObjCBlock?)> + reader, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = reader.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_relinquishPresentedItemToReader_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'relinquishPresentedItemToReader:', + ); + } + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_relinquishPresentedItemToReader_, + _$$ref$1.pointer, + ); + } + + /// relinquishPresentedItemToWriter: + void relinquishPresentedItemToWriter( + objc.ObjCBlock?)> + writer, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = writer.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_relinquishPresentedItemToWriter_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'relinquishPresentedItemToWriter:', + ); + } + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_relinquishPresentedItemToWriter_, + _$$ref$1.pointer, + ); + } + + /// savePresentedItemChangesWithCompletionHandler: + void savePresentedItemChangesWithCompletionHandler( + objc.ObjCBlock completionHandler, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = completionHandler.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_savePresentedItemChangesWithCompletionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'savePresentedItemChangesWithCompletionHandler:', + ); + } + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_savePresentedItemChangesWithCompletionHandler_, + _$$ref$1.pointer, + ); + } +} + +interface class NSFilePresenter$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSFilePresenter.cast()); + + /// Builds an object that implements the NSFilePresenter protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSFilePresenter implement({ + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implement( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implement( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implement( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implement( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_.implement( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implement( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implement( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implement( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_.implement( + builder, + presentedItemDidResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_.implement( + builder, + presentedSubitemAtURL_didGainVersion_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_.implement( + builder, + presentedSubitemAtURL_didLoseVersion_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_.implement( + builder, + presentedSubitemAtURL_didMoveToURL_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implement(builder, presentedSubitemAtURL_didResolveConflictVersion_); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implement( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implement( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_.implement( + builder, + relinquishPresentedItemToReader_, + ); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_.implement( + builder, + relinquishPresentedItemToWriter_, + ); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implement(builder, savePresentedItemChangesWithCompletionHandler_); + builder.addProtocol($protocol); + return NSFilePresenter.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSFilePresenter protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implement( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implement( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implement( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implement( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_.implement( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implement( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implement( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implement( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_.implement( + builder, + presentedItemDidResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_.implement( + builder, + presentedSubitemAtURL_didGainVersion_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_.implement( + builder, + presentedSubitemAtURL_didLoseVersion_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_.implement( + builder, + presentedSubitemAtURL_didMoveToURL_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implement(builder, presentedSubitemAtURL_didResolveConflictVersion_); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implement( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implement( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_.implement( + builder, + relinquishPresentedItemToReader_, + ); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_.implement( + builder, + relinquishPresentedItemToWriter_, + ); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implement(builder, savePresentedItemChangesWithCompletionHandler_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSFilePresenter protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSFilePresenter implementAsListener({ + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implementAsListener( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implementAsListener( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implementAsListener( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implementAsListener( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ + .implementAsListener( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsListener( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsListener( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsListener( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ + .implementAsListener(builder, presentedItemDidResolveConflictVersion_); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ + .implementAsListener(builder, presentedSubitemAtURL_didGainVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ + .implementAsListener(builder, presentedSubitemAtURL_didLoseVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ + .implementAsListener(builder, presentedSubitemAtURL_didMoveToURL_); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implementAsListener( + builder, + presentedSubitemAtURL_didResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsListener( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsListener( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_ + .implementAsListener(builder, relinquishPresentedItemToReader_); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_ + .implementAsListener(builder, relinquishPresentedItemToWriter_); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implementAsListener( + builder, + savePresentedItemChangesWithCompletionHandler_, + ); + builder.addProtocol($protocol); + return NSFilePresenter.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSFilePresenter protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implementAsListener( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implementAsListener( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implementAsListener( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implementAsListener( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ + .implementAsListener( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsListener( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsListener( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsListener( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ + .implementAsListener(builder, presentedItemDidResolveConflictVersion_); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ + .implementAsListener(builder, presentedSubitemAtURL_didGainVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ + .implementAsListener(builder, presentedSubitemAtURL_didLoseVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ + .implementAsListener(builder, presentedSubitemAtURL_didMoveToURL_); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implementAsListener( + builder, + presentedSubitemAtURL_didResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsListener( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsListener( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_ + .implementAsListener(builder, relinquishPresentedItemToReader_); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_ + .implementAsListener(builder, relinquishPresentedItemToWriter_); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implementAsListener( + builder, + savePresentedItemChangesWithCompletionHandler_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSFilePresenter protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSFilePresenter implementAsBlocking({ + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implementAsBlocking( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ + .implementAsBlocking( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsBlocking( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsBlocking( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsBlocking( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ + .implementAsBlocking(builder, presentedItemDidResolveConflictVersion_); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ + .implementAsBlocking(builder, presentedSubitemAtURL_didGainVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ + .implementAsBlocking(builder, presentedSubitemAtURL_didLoseVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ + .implementAsBlocking(builder, presentedSubitemAtURL_didMoveToURL_); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implementAsBlocking( + builder, + presentedSubitemAtURL_didResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsBlocking( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsBlocking( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_ + .implementAsBlocking(builder, relinquishPresentedItemToReader_); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_ + .implementAsBlocking(builder, relinquishPresentedItemToWriter_); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implementAsBlocking( + builder, + savePresentedItemChangesWithCompletionHandler_, + ); + builder.addProtocol($protocol); + return NSFilePresenter.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSFilePresenter protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implementAsBlocking( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ + .implementAsBlocking( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsBlocking( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsBlocking( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsBlocking( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ + .implementAsBlocking(builder, presentedItemDidResolveConflictVersion_); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ + .implementAsBlocking(builder, presentedSubitemAtURL_didGainVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ + .implementAsBlocking(builder, presentedSubitemAtURL_didLoseVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ + .implementAsBlocking(builder, presentedSubitemAtURL_didMoveToURL_); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implementAsBlocking( + builder, + presentedSubitemAtURL_didResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsBlocking( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsBlocking( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_ + .implementAsBlocking(builder, relinquishPresentedItemToReader_); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_ + .implementAsBlocking(builder, relinquishPresentedItemToWriter_); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implementAsBlocking( + builder, + savePresentedItemChangesWithCompletionHandler_, + ); + builder.addProtocol($protocol); + } + + /// accommodatePresentedItemDeletionWithCompletionHandler: + static final accommodatePresentedItemDeletionWithCompletionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.ObjCBlock) + >( + _protocol_NSFilePresenter, + _sel_accommodatePresentedItemDeletionWithCompletionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1l4hxwm) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_accommodatePresentedItemDeletionWithCompletionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ); + + /// accommodatePresentedItemEvictionWithCompletionHandler: + static final accommodatePresentedItemEvictionWithCompletionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.ObjCBlock) + >( + _protocol_NSFilePresenter, + _sel_accommodatePresentedItemEvictionWithCompletionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1l4hxwm) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_accommodatePresentedItemEvictionWithCompletionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ); + + /// accommodatePresentedSubitemDeletionAtURL:completionHandler: + static final accommodatePresentedSubitemDeletionAtURL_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + objc.NSURL, + objc.ObjCBlock, + ) + >( + _protocol_NSFilePresenter, + _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk1ljc) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + objc.NSURL, + objc.ObjCBlock, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.NSURL arg1, + objc.ObjCBlock arg2, + ) => func(arg1, arg2), + ), + ( + void Function( + objc.NSURL, + objc.ObjCBlock, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.listener( + ( + ffi.Pointer _, + objc.NSURL arg1, + objc.ObjCBlock arg2, + ) => func(arg1, arg2), + ), + ( + void Function( + objc.NSURL, + objc.ObjCBlock, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.blocking( + ( + ffi.Pointer _, + objc.NSURL arg1, + objc.ObjCBlock arg2, + ) => func(arg1, arg2), + ), + ); + + /// observedPresentedItemUbiquityAttributes + static final observedPresentedItemUbiquityAttributes = + objc.ObjCProtocolMethod( + _protocol_NSFilePresenter, + _sel_observedPresentedItemUbiquityAttributes, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_observedPresentedItemUbiquityAttributes, + isRequired: false, + isInstanceMethod: true, + ), + (objc.NSSet Function() func) => ObjCBlock_NSSet_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// presentedItemDidChange + static final presentedItemDidChange = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidChange, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidChange, + isRequired: false, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// presentedItemDidChangeUbiquityAttributes: + static final presentedItemDidChangeUbiquityAttributes_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidChangeUbiquityAttributes_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidChangeUbiquityAttributes_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSSet) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSet.fromFunction( + (ffi.Pointer _, objc.NSSet arg1) => func(arg1), + ), + (void Function(objc.NSSet) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSet.listener( + (ffi.Pointer _, objc.NSSet arg1) => func(arg1), + ), + (void Function(objc.NSSet) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSet.blocking( + (ffi.Pointer _, objc.NSSet arg1) => func(arg1), + ), + ); + + /// presentedItemDidGainVersion: + static final presentedItemDidGainVersion_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidGainVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidGainVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + ); + + /// presentedItemDidLoseVersion: + static final presentedItemDidLoseVersion_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidLoseVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidLoseVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + ); + + /// presentedItemDidMoveToURL: + static final presentedItemDidMoveToURL_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidMoveToURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidMoveToURL_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + ); + + /// presentedItemDidResolveConflictVersion: + static final presentedItemDidResolveConflictVersion_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidResolveConflictVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidResolveConflictVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + ); + + /// presentedItemOperationQueue + static final presentedItemOperationQueue = + objc.ObjCProtocolMethod( + _protocol_NSFilePresenter, + _sel_presentedItemOperationQueue, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemOperationQueue, + isRequired: true, + isInstanceMethod: true, + ), + (NSOperationQueue Function() func) => + ObjCBlock_NSOperationQueue_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// presentedItemURL + static final presentedItemURL = + objc.ObjCProtocolMethod( + _protocol_NSFilePresenter, + _sel_presentedItemURL, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemURL, + isRequired: true, + isInstanceMethod: true, + ), + (objc.NSURL? Function() func) => ObjCBlock_NSURL_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// presentedSubitemAtURL:didGainVersion: + static final presentedSubitemAtURL_didGainVersion_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSURL, NSFileVersion) + >( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didGainVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didGainVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + ); + + /// presentedSubitemAtURL:didLoseVersion: + static final presentedSubitemAtURL_didLoseVersion_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSURL, NSFileVersion) + >( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didLoseVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didLoseVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + ); + + /// presentedSubitemAtURL:didMoveToURL: + static final presentedSubitemAtURL_didMoveToURL_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didMoveToURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didMoveToURL_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.fromFunction( + (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.listener( + (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.blocking( + (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => + func(arg1, arg2), + ), + ); + + /// presentedSubitemAtURL:didResolveConflictVersion: + static final presentedSubitemAtURL_didResolveConflictVersion_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSURL, NSFileVersion) + >( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didResolveConflictVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didResolveConflictVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + ); + + /// presentedSubitemDidAppearAtURL: + static final presentedSubitemDidAppearAtURL_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedSubitemDidAppearAtURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemDidAppearAtURL_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + ); + + /// presentedSubitemDidChangeAtURL: + static final presentedSubitemDidChangeAtURL_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedSubitemDidChangeAtURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemDidChangeAtURL_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + ); + + /// primaryPresentedItemURL + static final primaryPresentedItemURL = + objc.ObjCProtocolMethod( + _protocol_NSFilePresenter, + _sel_primaryPresentedItemURL, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_primaryPresentedItemURL, + isRequired: false, + isInstanceMethod: true, + ), + (objc.NSURL? Function() func) => ObjCBlock_NSURL_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// relinquishPresentedItemToReader: + static final relinquishPresentedItemToReader_ = + objc.ObjCProtocolListenableMethod< + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + >( + _protocol_NSFilePresenter, + _sel_relinquishPresentedItemToReader_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1l4hxwm) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_relinquishPresentedItemToReader_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.listener( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.blocking( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ); + + /// relinquishPresentedItemToWriter: + static final relinquishPresentedItemToWriter_ = + objc.ObjCProtocolListenableMethod< + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + >( + _protocol_NSFilePresenter, + _sel_relinquishPresentedItemToWriter_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1l4hxwm) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_relinquishPresentedItemToWriter_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.listener( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.blocking( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ); + + /// savePresentedItemChangesWithCompletionHandler: + static final savePresentedItemChangesWithCompletionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.ObjCBlock) + >( + _protocol_NSFilePresenter, + _sel_savePresentedItemChangesWithCompletionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1l4hxwm) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_savePresentedItemChangesWithCompletionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ); +} + +typedef NSFileProtectionType = ffi.Pointer; +typedef DartNSFileProtectionType = objc.NSString; +typedef NSFileProviderServiceName = ffi.Pointer; +typedef DartNSFileProviderServiceName = objc.NSString; + +const int NSFileReadCorruptFileError = 259; + +const int NSFileReadInapplicableStringEncodingError = 261; + +const int NSFileReadInvalidFileNameError = 258; + +const int NSFileReadNoPermissionError = 257; + +const int NSFileReadNoSuchFileError = 260; + +const int NSFileReadTooLargeError = 263; + +const int NSFileReadUnknownError = 256; + +const int NSFileReadUnknownStringEncodingError = 264; + +const int NSFileReadUnsupportedSchemeError = 262; + +/// WARNING: NSFileVersion is a stub. To generate bindings for this class, include +/// NSFileVersion in your config's objc-interfaces list. +/// +/// NSFileVersion +extension type NSFileVersion._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSFileVersion] that points to the same underlying object as [other]. + NSFileVersion.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSFileVersion', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } + + /// Constructs a [NSFileVersion] that wraps the given raw object pointer. + NSFileVersion.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSFileVersion', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } +} + +sealed class NSFileVersionAddingOptions { + static const NSFileVersionAddingByMoving = 1; +} + +sealed class NSFileVersionReplacingOptions { + static const NSFileVersionReplacingByMoving = 1; +} + +/// WARNING: NSFileWrapper is a stub. To generate bindings for this class, include +/// NSFileWrapper in your config's objc-interfaces list. +/// +/// NSFileWrapper +extension type NSFileWrapper._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [NSFileWrapper] that points to the same underlying object as [other]. + NSFileWrapper.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSFileWrapper', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSFileWrapper] that wraps the given raw object pointer. + NSFileWrapper.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSFileWrapper', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +sealed class NSFileWrapperReadingOptions { + static const NSFileWrapperReadingImmediate = 1; + static const NSFileWrapperReadingWithoutMapping = 2; +} + +sealed class NSFileWrapperWritingOptions { + static const NSFileWrapperWritingAtomic = 1; + static const NSFileWrapperWritingWithNameUpdating = 2; +} + +const int NSFileWriteFileExistsError = 516; + +const int NSFileWriteInapplicableStringEncodingError = 517; + +const int NSFileWriteInvalidFileNameError = 514; + +const int NSFileWriteNoPermissionError = 513; + +const int NSFileWriteOutOfSpaceError = 640; + +const int NSFileWriteUnknownError = 512; + +const int NSFileWriteUnsupportedSchemeError = 518; + +const int NSFileWriteVolumeReadOnlyError = 642; + +/// WARNING: NSFormatter is a stub. To generate bindings for this class, include +/// NSFormatter in your config's objc-interfaces list. +/// +/// NSFormatter +extension type NSFormatter._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCopying, objc.NSCoding { + /// Constructs a [NSFormatter] that points to the same underlying object as [other]. + NSFormatter.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSFormatter] that wraps the given raw object pointer. + NSFormatter.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +enum NSFormattingContext { + NSFormattingContextUnknown(0), + NSFormattingContextDynamic(1), + NSFormattingContextStandalone(2), + NSFormattingContextListItem(3), + NSFormattingContextBeginningOfSentence(4), + NSFormattingContextMiddleOfSentence(5); + + final int value; + const NSFormattingContext(this.value); + + static NSFormattingContext fromValue(int value) => switch (value) { + 0 => NSFormattingContextUnknown, + 1 => NSFormattingContextDynamic, + 2 => NSFormattingContextStandalone, + 3 => NSFormattingContextListItem, + 4 => NSFormattingContextBeginningOfSentence, + 5 => NSFormattingContextMiddleOfSentence, + _ => throw ArgumentError('Unknown value for NSFormattingContext: $value'), + }; +} + +const int NSFormattingError = 2048; + +const int NSFormattingErrorMaximum = 2559; + +const int NSFormattingErrorMinimum = 2048; + +enum NSFormattingUnitStyle { + NSFormattingUnitStyleShort(1), + NSFormattingUnitStyleMedium(2), + NSFormattingUnitStyleLong(3); + + final int value; + const NSFormattingUnitStyle(this.value); + + static NSFormattingUnitStyle fromValue(int value) => switch (value) { + 1 => NSFormattingUnitStyleShort, + 2 => NSFormattingUnitStyleMedium, + 3 => NSFormattingUnitStyleLong, + _ => throw ArgumentError('Unknown value for NSFormattingUnitStyle: $value'), + }; +} + +/// NSGenericFastEnumeration +extension NSGenericFastEnumeration on objc.NSDictionary { + /// countByEnumeratingWithState:objects:count: + DartNSUInteger countByEnumeratingWithState$1( + ffi.Pointer state, { + required ffi.Pointer> objects, + required DartNSUInteger count, + }) { + final _$$ref = object$.ref; + return _objc_msgSend_1b5ysjl( + _$$ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count, + ); + } +} + +/// NSGeometryCoding +extension NSGeometryCoding on objc.NSCoder { + /// decodePoint + NSPoint decodePoint() { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1uwdhlkStret($ptr, _$$ref.pointer, _sel_decodePoint) + : $ptr.ref = _objc_msgSend_1uwdhlk(_$$ref.pointer, _sel_decodePoint); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// decodeRect + NSRect decodeRect() { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_bu1hbwStret($ptr, _$$ref.pointer, _sel_decodeRect) + : $ptr.ref = _objc_msgSend_bu1hbw(_$$ref.pointer, _sel_decodeRect); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// decodeSize + NSSize decodeSize() { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_decodeSize) + : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_decodeSize); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// encodePoint: + void encodePoint(NSPoint point) { + final _$$ref = object$.ref; + _objc_msgSend_iy8iz6(_$$ref.pointer, _sel_encodePoint_, point); + } + + /// encodeRect: + void encodeRect(NSRect rect) { + final _$$ref = object$.ref; + _objc_msgSend_1okkq16(_$$ref.pointer, _sel_encodeRect_, rect); + } + + /// encodeSize: + void encodeSize(NSSize size) { + final _$$ref = object$.ref; + _objc_msgSend_13lgpwz(_$$ref.pointer, _sel_encodeSize_, size); + } +} + +/// NSGeometryKeyedCoding +extension NSGeometryKeyedCoding on objc.NSCoder { + /// decodePointForKey: + NSPoint decodePointForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1mpyy6yStret( + $ptr, + _$$ref.pointer, + _sel_decodePointForKey_, + _$$ref$1.pointer, + ) + : $ptr.ref = _objc_msgSend_1mpyy6y( + _$$ref.pointer, + _sel_decodePointForKey_, + _$$ref$1.pointer, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// decodeRectForKey: + NSRect decodeRectForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_qrtfceStret( + $ptr, + _$$ref.pointer, + _sel_decodeRectForKey_, + _$$ref$1.pointer, + ) + : $ptr.ref = _objc_msgSend_qrtfce( + _$$ref.pointer, + _sel_decodeRectForKey_, + _$$ref$1.pointer, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// decodeSizeForKey: + NSSize decodeSizeForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_18r320vStret( + $ptr, + _$$ref.pointer, + _sel_decodeSizeForKey_, + _$$ref$1.pointer, + ) + : $ptr.ref = _objc_msgSend_18r320v( + _$$ref.pointer, + _sel_decodeSizeForKey_, + _$$ref$1.pointer, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// encodePoint:forKey: + void encodePoint(NSPoint point, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_bkebbk( + _$$ref.pointer, + _sel_encodePoint_forKey_, + point, + _$$ref$1.pointer, + ); + } + + /// encodeRect:forKey: + void encodeRect(NSRect rect, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_f227js( + _$$ref.pointer, + _sel_encodeRect_forKey_, + rect, + _$$ref$1.pointer, + ); + } + + /// encodeSize:forKey: + void encodeSize(NSSize size, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_11tcc61( + _$$ref.pointer, + _sel_encodeSize_forKey_, + size, + _$$ref$1.pointer, + ); + } +} + +enum NSGrammaticalCase { + NSGrammaticalCaseNotSet(0), + NSGrammaticalCaseNominative(1), + NSGrammaticalCaseAccusative(2), + NSGrammaticalCaseDative(3), + NSGrammaticalCaseGenitive(4), + NSGrammaticalCasePrepositional(5), + NSGrammaticalCaseAblative(6), + NSGrammaticalCaseAdessive(7), + NSGrammaticalCaseAllative(8), + NSGrammaticalCaseElative(9), + NSGrammaticalCaseIllative(10), + NSGrammaticalCaseEssive(11), + NSGrammaticalCaseInessive(12), + NSGrammaticalCaseLocative(13), + NSGrammaticalCaseTranslative(14); + + final int value; + const NSGrammaticalCase(this.value); + + static NSGrammaticalCase fromValue(int value) => switch (value) { + 0 => NSGrammaticalCaseNotSet, + 1 => NSGrammaticalCaseNominative, + 2 => NSGrammaticalCaseAccusative, + 3 => NSGrammaticalCaseDative, + 4 => NSGrammaticalCaseGenitive, + 5 => NSGrammaticalCasePrepositional, + 6 => NSGrammaticalCaseAblative, + 7 => NSGrammaticalCaseAdessive, + 8 => NSGrammaticalCaseAllative, + 9 => NSGrammaticalCaseElative, + 10 => NSGrammaticalCaseIllative, + 11 => NSGrammaticalCaseEssive, + 12 => NSGrammaticalCaseInessive, + 13 => NSGrammaticalCaseLocative, + 14 => NSGrammaticalCaseTranslative, + _ => throw ArgumentError('Unknown value for NSGrammaticalCase: $value'), + }; +} + +enum NSGrammaticalDefiniteness { + NSGrammaticalDefinitenessNotSet(0), + NSGrammaticalDefinitenessIndefinite(1), + NSGrammaticalDefinitenessDefinite(2); + + final int value; + const NSGrammaticalDefiniteness(this.value); + + static NSGrammaticalDefiniteness fromValue(int value) => switch (value) { + 0 => NSGrammaticalDefinitenessNotSet, + 1 => NSGrammaticalDefinitenessIndefinite, + 2 => NSGrammaticalDefinitenessDefinite, + _ => throw ArgumentError( + 'Unknown value for NSGrammaticalDefiniteness: $value', + ), + }; +} + +enum NSGrammaticalDetermination { + NSGrammaticalDeterminationNotSet(0), + NSGrammaticalDeterminationIndependent(1), + NSGrammaticalDeterminationDependent(2); + + final int value; + const NSGrammaticalDetermination(this.value); + + static NSGrammaticalDetermination fromValue(int value) => switch (value) { + 0 => NSGrammaticalDeterminationNotSet, + 1 => NSGrammaticalDeterminationIndependent, + 2 => NSGrammaticalDeterminationDependent, + _ => throw ArgumentError( + 'Unknown value for NSGrammaticalDetermination: $value', + ), + }; +} + +enum NSGrammaticalGender { + NSGrammaticalGenderNotSet(0), + NSGrammaticalGenderFeminine(1), + NSGrammaticalGenderMasculine(2), + NSGrammaticalGenderNeuter(3); + + final int value; + const NSGrammaticalGender(this.value); + + static NSGrammaticalGender fromValue(int value) => switch (value) { + 0 => NSGrammaticalGenderNotSet, + 1 => NSGrammaticalGenderFeminine, + 2 => NSGrammaticalGenderMasculine, + 3 => NSGrammaticalGenderNeuter, + _ => throw ArgumentError('Unknown value for NSGrammaticalGender: $value'), + }; +} + +enum NSGrammaticalNumber { + NSGrammaticalNumberNotSet(0), + NSGrammaticalNumberSingular(1), + NSGrammaticalNumberZero(2), + NSGrammaticalNumberPlural(3), + NSGrammaticalNumberPluralTwo(4), + NSGrammaticalNumberPluralFew(5), + NSGrammaticalNumberPluralMany(6); + + final int value; + const NSGrammaticalNumber(this.value); + + static NSGrammaticalNumber fromValue(int value) => switch (value) { + 0 => NSGrammaticalNumberNotSet, + 1 => NSGrammaticalNumberSingular, + 2 => NSGrammaticalNumberZero, + 3 => NSGrammaticalNumberPlural, + 4 => NSGrammaticalNumberPluralTwo, + 5 => NSGrammaticalNumberPluralFew, + 6 => NSGrammaticalNumberPluralMany, + _ => throw ArgumentError('Unknown value for NSGrammaticalNumber: $value'), + }; +} + +enum NSGrammaticalPartOfSpeech { + NSGrammaticalPartOfSpeechNotSet(0), + NSGrammaticalPartOfSpeechDeterminer(1), + NSGrammaticalPartOfSpeechPronoun(2), + NSGrammaticalPartOfSpeechLetter(3), + NSGrammaticalPartOfSpeechAdverb(4), + NSGrammaticalPartOfSpeechParticle(5), + NSGrammaticalPartOfSpeechAdjective(6), + NSGrammaticalPartOfSpeechAdposition(7), + NSGrammaticalPartOfSpeechVerb(8), + NSGrammaticalPartOfSpeechNoun(9), + NSGrammaticalPartOfSpeechConjunction(10), + NSGrammaticalPartOfSpeechNumeral(11), + NSGrammaticalPartOfSpeechInterjection(12), + NSGrammaticalPartOfSpeechPreposition(13), + NSGrammaticalPartOfSpeechAbbreviation(14); + + final int value; + const NSGrammaticalPartOfSpeech(this.value); + + static NSGrammaticalPartOfSpeech fromValue(int value) => switch (value) { + 0 => NSGrammaticalPartOfSpeechNotSet, + 1 => NSGrammaticalPartOfSpeechDeterminer, + 2 => NSGrammaticalPartOfSpeechPronoun, + 3 => NSGrammaticalPartOfSpeechLetter, + 4 => NSGrammaticalPartOfSpeechAdverb, + 5 => NSGrammaticalPartOfSpeechParticle, + 6 => NSGrammaticalPartOfSpeechAdjective, + 7 => NSGrammaticalPartOfSpeechAdposition, + 8 => NSGrammaticalPartOfSpeechVerb, + 9 => NSGrammaticalPartOfSpeechNoun, + 10 => NSGrammaticalPartOfSpeechConjunction, + 11 => NSGrammaticalPartOfSpeechNumeral, + 12 => NSGrammaticalPartOfSpeechInterjection, + 13 => NSGrammaticalPartOfSpeechPreposition, + 14 => NSGrammaticalPartOfSpeechAbbreviation, + _ => throw ArgumentError( + 'Unknown value for NSGrammaticalPartOfSpeech: $value', + ), + }; +} + +enum NSGrammaticalPerson { + NSGrammaticalPersonNotSet(0), + NSGrammaticalPersonFirst(1), + NSGrammaticalPersonSecond(2), + NSGrammaticalPersonThird(3); + + final int value; + const NSGrammaticalPerson(this.value); + + static NSGrammaticalPerson fromValue(int value) => switch (value) { + 0 => NSGrammaticalPersonNotSet, + 1 => NSGrammaticalPersonFirst, + 2 => NSGrammaticalPersonSecond, + 3 => NSGrammaticalPersonThird, + _ => throw ArgumentError('Unknown value for NSGrammaticalPerson: $value'), + }; +} + +enum NSGrammaticalPronounType { + NSGrammaticalPronounTypeNotSet(0), + NSGrammaticalPronounTypePersonal(1), + NSGrammaticalPronounTypeReflexive(2), + NSGrammaticalPronounTypePossessive(3); + + final int value; + const NSGrammaticalPronounType(this.value); + + static NSGrammaticalPronounType fromValue(int value) => switch (value) { + 0 => NSGrammaticalPronounTypeNotSet, + 1 => NSGrammaticalPronounTypePersonal, + 2 => NSGrammaticalPronounTypeReflexive, + 3 => NSGrammaticalPronounTypePossessive, + _ => throw ArgumentError( + 'Unknown value for NSGrammaticalPronounType: $value', + ), + }; +} + +@Deprecated('Not supported') +const int NSHPUXOperatingSystem = 4; + +enum NSHTTPCookieAcceptPolicy { + NSHTTPCookieAcceptPolicyAlways(0), + NSHTTPCookieAcceptPolicyNever(1), + NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain(2); + + final int value; + const NSHTTPCookieAcceptPolicy(this.value); + + static NSHTTPCookieAcceptPolicy fromValue(int value) => switch (value) { + 0 => NSHTTPCookieAcceptPolicyAlways, + 1 => NSHTTPCookieAcceptPolicyNever, + 2 => NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain, + _ => throw ArgumentError( + 'Unknown value for NSHTTPCookieAcceptPolicy: $value', + ), + }; +} + +typedef NSHTTPCookiePropertyKey = ffi.Pointer; +typedef DartNSHTTPCookiePropertyKey = objc.NSString; + +/// WARNING: NSHTTPCookieStorage is a stub. To generate bindings for this class, include +/// NSHTTPCookieStorage in your config's objc-interfaces list. +/// +/// NSHTTPCookieStorage +extension type NSHTTPCookieStorage._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSHTTPCookieStorage] that points to the same underlying object as [other]. + NSHTTPCookieStorage.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSHTTPCookieStorage] that wraps the given raw object pointer. + NSHTTPCookieStorage.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +typedef NSHTTPCookieStringPolicy = ffi.Pointer; +typedef DartNSHTTPCookieStringPolicy = objc.NSString; + +/// NSHTTPURLRequest +extension NSHTTPURLRequest on NSURLRequest { + /// HTTPBody + objc.NSData? get HTTPBody { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPBody', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBody); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// HTTPBodyStream + objc.NSInputStream? get HTTPBodyStream { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPBodyStream', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBodyStream); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// HTTPMethod + objc.NSString? get HTTPMethod { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPMethod', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPMethod); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// HTTPShouldHandleCookies + bool get HTTPShouldHandleCookies { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPShouldHandleCookies', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldHandleCookies); + } + + /// HTTPShouldUsePipelining + @Deprecated( + 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', + ) + bool get HTTPShouldUsePipelining { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPShouldUsePipelining', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldUsePipelining); + } + + /// allHTTPHeaderFields + objc.NSDictionary? get allHTTPHeaderFields { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.allHTTPHeaderFields', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_allHTTPHeaderFields, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// valueForHTTPHeaderField: + objc.NSString? valueForHTTPHeaderField(objc.NSString field) { + final _$$ref = object$.ref; + final _$$ref$1 = field.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.valueForHTTPHeaderField:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForHTTPHeaderField_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSHTTPURLResponse is a stub. To generate bindings for this class, include +/// NSHTTPURLResponse in your config's objc-interfaces list. +/// +/// NSHTTPURLResponse +extension type NSHTTPURLResponse._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLResponse { + /// Constructs a [NSHTTPURLResponse] that points to the same underlying object as [other]. + NSHTTPURLResponse.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSHTTPURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSHTTPURLResponse] that wraps the given raw object pointer. + NSHTTPURLResponse.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSHTTPURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +final class NSHashEnumerator extends ffi.Struct { + @NSUInteger() + external int _pi; + + @NSUInteger() + external int _si; + + external ffi.Pointer _bs; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int $pi, + required int $si, + required ffi.Pointer $bs, + }) => $allocator() + ..ref._pi = $pi + ..ref._si = $si + ..ref._bs = $bs; +} + +/// WARNING: NSHashTable is a stub. To generate bindings for this class, include +/// NSHashTable in your config's objc-interfaces list. +/// +/// NSHashTable +extension type NSHashTable._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding, + objc.NSFastEnumeration { + /// Constructs a [NSHashTable] that points to the same underlying object as [other]. + NSHashTable.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSHashTable', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } + + /// Constructs a [NSHashTable] that wraps the given raw object pointer. + NSHashTable.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSHashTable', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } +} + +final class NSHashTableCallBacks extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + hash; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + isEqual; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + release; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + hash, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + isEqual, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + release, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe, + }) => $allocator() + ..ref.hash = hash + ..ref.isEqual = isEqual + ..ref.retain = retain + ..ref.release = release + ..ref.describe = describe; +} + +const int NSHashTableCopyIn = 65536; + +const int NSHashTableObjectPointerPersonality = 512; + +typedef NSHashTableOptions = NSUInteger; + +const int NSHashTableStrongMemory = 0; + +const int NSHashTableWeakMemory = 5; + +const int NSHashTableZeroingWeakMemory = 1; + +/// WARNING: NSHost is a stub. To generate bindings for this class, include +/// NSHost in your config's objc-interfaces list. +/// +/// NSHost +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +extension type NSHost._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSHost] that points to the same underlying object as [other]. + NSHost.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSHost', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSHost] that wraps the given raw object pointer. + NSHost.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSHost', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + } +} + +const int NSISO2022JPStringEncoding = 21; + +sealed class NSISO8601DateFormatOptions { + static const NSISO8601DateFormatWithYear = 1; + static const NSISO8601DateFormatWithMonth = 2; + static const NSISO8601DateFormatWithWeekOfYear = 4; + static const NSISO8601DateFormatWithDay = 16; + static const NSISO8601DateFormatWithTime = 32; + static const NSISO8601DateFormatWithTimeZone = 64; + static const NSISO8601DateFormatWithSpaceBetweenDateAndTime = 128; + static const NSISO8601DateFormatWithDashSeparatorInDate = 256; + static const NSISO8601DateFormatWithColonSeparatorInTime = 512; + static const NSISO8601DateFormatWithColonSeparatorInTimeZone = 1024; + static const NSISO8601DateFormatWithFractionalSeconds = 2048; + static const NSISO8601DateFormatWithFullDate = 275; + static const NSISO8601DateFormatWithFullTime = 1632; + static const NSISO8601DateFormatWithInternetDateTime = 1907; +} + +const int NSISOLatin1StringEncoding = 5; + +const int NSISOLatin2StringEncoding = 9; + +/// WARNING: NSIndexPath is a stub. To generate bindings for this class, include +/// NSIndexPath in your config's objc-interfaces list. +/// +/// NSIndexPath +extension type NSIndexPath._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSIndexPath] that points to the same underlying object as [other]. + NSIndexPath.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSIndexPath] that wraps the given raw object pointer. + NSIndexPath.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSInflectionAvailability +extension NSInflectionAvailability on NSInflectionRule { + /// canInflectLanguage: + static bool canInflectLanguage(objc.NSString language) { + final _$$ref = language.ref; + objc.checkOsVersionInternal( + 'NSInflectionRule.canInflectLanguage:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _class_NSInflectionRule, + _sel_canInflectLanguage_, + _$$ref.pointer, + ); + } + + /// canInflectPreferredLocalization + static bool getCanInflectPreferredLocalization() { + objc.checkOsVersionInternal( + 'NSInflectionRule.canInflectPreferredLocalization', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + return _objc_msgSend_91o635( + _class_NSInflectionRule, + _sel_canInflectPreferredLocalization, + ); + } +} + +/// WARNING: NSInflectionRule is a stub. To generate bindings for this class, include +/// NSInflectionRule in your config's objc-interfaces list. +/// +/// NSInflectionRule +extension type NSInflectionRule._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSInflectionRule] that points to the same underlying object as [other]. + NSInflectionRule.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSInflectionRule', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } + + /// Constructs a [NSInflectionRule] that wraps the given raw object pointer. + NSInflectionRule.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSInflectionRule', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } +} + +sealed class NSInlinePresentationIntent { + static const NSInlinePresentationIntentEmphasized = 1; + static const NSInlinePresentationIntentStronglyEmphasized = 2; + static const NSInlinePresentationIntentCode = 4; + static const NSInlinePresentationIntentStrikethrough = 32; + static const NSInlinePresentationIntentSoftBreak = 64; + static const NSInlinePresentationIntentLineBreak = 128; + static const NSInlinePresentationIntentInlineHTML = 256; + static const NSInlinePresentationIntentBlockHTML = 512; +} + +/// NSInputStreamExtensions +extension NSInputStreamExtensions on objc.NSInputStream { + /// initWithFileAtPath: + objc.NSInputStream? initWithFileAtPath(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithFileAtPath_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: false, release: true); + } + + /// inputStreamWithData: + static objc.NSInputStream? inputStreamWithData(objc.NSData data) { + final _$$ref = data.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithData_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// inputStreamWithFileAtPath: + static objc.NSInputStream? inputStreamWithFileAtPath(objc.NSString path) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithFileAtPath_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// inputStreamWithURL: + static objc.NSInputStream? inputStreamWithURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSInputStream.inputStreamWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } +} + +enum NSInsertionPosition { + NSPositionAfter(0), + NSPositionBefore(1), + NSPositionBeginning(2), + NSPositionEnd(3), + NSPositionReplace(4); + + final int value; + const NSInsertionPosition(this.value); + + static NSInsertionPosition fromValue(int value) => switch (value) { + 0 => NSPositionAfter, + 1 => NSPositionBefore, + 2 => NSPositionBeginning, + 3 => NSPositionEnd, + 4 => NSPositionReplace, + _ => throw ArgumentError('Unknown value for NSInsertionPosition: $value'), + }; +} + +typedef NSInteger = ffi.Long; +typedef DartNSInteger = int; + +const int NSInternalScriptError = 8; + +const int NSInternalSpecifierError = 5; + +/// NSInternetPassword +extension NSInternetPassword on NSURLCredential { + /// hasPassword + bool get hasPassword { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.hasPassword', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasPassword); + } + + /// password + objc.NSString? get password { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.password', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_password); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// user + objc.NSString? get user { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.user', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_user); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// credentialWithUser:password:persistence: + static NSURLCredential credentialWithUser( + objc.NSString user, { + required objc.NSString password, + required NSURLCredentialPersistence persistence, + }) { + final _$$ref = user.ref; + final _$$ref$1 = password.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.credentialWithUser:password:persistence:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_17ns785( + _class_NSURLCredential, + _sel_credentialWithUser_password_persistence_, + _$$ref.pointer, + _$$ref$1.pointer, + persistence.value, + ); + return NSURLCredential.fromPointer($ret, retain: true, release: true); + } +} + +const int NSInvalidIndexSpecifierError = 4; + +/// NSItemProvider +extension NSItemProvider on objc.NSURL { + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier( + objc.NSString typeIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_16fy0up( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref$1.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: + objc.NSProgress? loadDataWithTypeIdentifier( + objc.NSString typeIdentifier, { + required objc.ObjCBlock + forItemProviderCompletionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + final _$$ref$2 = forItemProviderCompletionHandler.ref; + objc.checkOsVersionInternal( + 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSProgress.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + objc.NSArray get writableTypeIdentifiersForItemProvider { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'writableTypeIdentifiersForItemProvider', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSItemProvider +extension NSItemProvider$1 on objc.NSString { + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier( + objc.NSString typeIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSString', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_16fy0up( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref$1.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: + objc.NSProgress? loadDataWithTypeIdentifier( + objc.NSString typeIdentifier, { + required objc.ObjCBlock + forItemProviderCompletionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + final _$$ref$2 = forItemProviderCompletionHandler.ref; + objc.checkOsVersionInternal( + 'NSString.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSProgress.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + objc.NSArray get writableTypeIdentifiersForItemProvider { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSString', + 'writableTypeIdentifiersForItemProvider', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +typedef NSItemProviderCompletionHandler = ffi.Pointer; +typedef DartNSItemProviderCompletionHandler = + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >; + +enum NSItemProviderErrorCode { + NSItemProviderUnknownError(-1), + NSItemProviderItemUnavailableError(-1000), + NSItemProviderUnexpectedValueClassError(-1100), + NSItemProviderUnavailableCoercionError(-1200); + + final int value; + const NSItemProviderErrorCode(this.value); + + static NSItemProviderErrorCode fromValue(int value) => switch (value) { + -1 => NSItemProviderUnknownError, + -1000 => NSItemProviderItemUnavailableError, + -1100 => NSItemProviderUnexpectedValueClassError, + -1200 => NSItemProviderUnavailableCoercionError, + _ => throw ArgumentError( + 'Unknown value for NSItemProviderErrorCode: $value', + ), + }; +} + +typedef NSItemProviderLoadHandler = ffi.Pointer; +typedef DartNSItemProviderLoadHandler = + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >; + +sealed class NSJSONReadingOptions { + static const NSJSONReadingMutableContainers = 1; + static const NSJSONReadingMutableLeaves = 2; + static const NSJSONReadingFragmentsAllowed = 4; + static const NSJSONReadingJSON5Allowed = 8; + static const NSJSONReadingTopLevelDictionaryAssumed = 16; + static const NSJSONReadingAllowFragments = 4; +} + +sealed class NSJSONWritingOptions { + static const NSJSONWritingPrettyPrinted = 1; + static const NSJSONWritingSortedKeys = 2; + static const NSJSONWritingFragmentsAllowed = 4; + static const NSJSONWritingWithoutEscapingSlashes = 8; +} + +const int NSJapaneseEUCStringEncoding = 3; + +const int NSKeySpecifierEvaluationScriptError = 2; + +typedef NSKeyValueChangeKey = ffi.Pointer; +typedef DartNSKeyValueChangeKey = objc.NSString; + +/// NSKeyValueCoding +extension NSKeyValueCoding on objc.NSArray { + /// setValue:forKey: + void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// valueForKey: + objc.ObjCObject valueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKey_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSKeyValueCoding +extension NSKeyValueCoding$1 on objc.NSDictionary { + /// valueForKey: + objc.ObjCObject? valueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSKeyValueCoding +extension NSKeyValueCoding$2 on objc.NSSet { + /// setValue:forKey: + void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// valueForKey: + objc.ObjCObject valueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKey_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSKeyValueCoding +extension NSKeyValueCoding$3 on objc.NSObject { + /// dictionaryWithValuesForKeys: + objc.NSDictionary dictionaryWithValuesForKeys(objc.NSArray keys) { + final _$$ref = object$.ref; + final _$$ref$1 = keys.ref; + objc.checkOsVersionInternal( + 'NSObject.dictionaryWithValuesForKeys:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_dictionaryWithValuesForKeys_, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// mutableArrayValueForKey: + objc.NSMutableArray mutableArrayValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableArrayValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableArrayValueForKey_, + _$$ref$1.pointer, + ); + return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); + } + + /// mutableArrayValueForKeyPath: + objc.NSMutableArray mutableArrayValueForKeyPath(objc.NSString keyPath) { + final _$$ref = object$.ref; + final _$$ref$1 = keyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableArrayValueForKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableArrayValueForKeyPath_, + _$$ref$1.pointer, + ); + return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); + } + + /// mutableOrderedSetValueForKey: + objc.NSMutableOrderedSet mutableOrderedSetValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableOrderedSetValueForKey:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableOrderedSetValueForKey_, + _$$ref$1.pointer, + ); + return objc.NSMutableOrderedSet.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// mutableOrderedSetValueForKeyPath: + objc.NSMutableOrderedSet mutableOrderedSetValueForKeyPath( + objc.NSString keyPath, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = keyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableOrderedSetValueForKeyPath:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableOrderedSetValueForKeyPath_, + _$$ref$1.pointer, + ); + return objc.NSMutableOrderedSet.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// mutableSetValueForKey: + objc.NSMutableSet mutableSetValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableSetValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableSetValueForKey_, + _$$ref$1.pointer, + ); + return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); + } + + /// mutableSetValueForKeyPath: + objc.NSMutableSet mutableSetValueForKeyPath(objc.NSString keyPath) { + final _$$ref = object$.ref; + final _$$ref$1 = keyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableSetValueForKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableSetValueForKeyPath_, + _$$ref$1.pointer, + ); + return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); + } + + /// setNilValueForKey: + void setNilValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.setNilValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setNilValueForKey_, + _$$ref$1.pointer, + ); + } + + /// setValue:forKey: + void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.setValue:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// setValue:forKeyPath: + void setValue$1(objc.ObjCObject? value, {required objc.NSString forKeyPath}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.setValue:forKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKeyPath_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// setValue:forUndefinedKey: + void setValue$2( + objc.ObjCObject? value, { + required objc.NSString forUndefinedKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forUndefinedKey.ref; + objc.checkOsVersionInternal( + 'NSObject.setValue:forUndefinedKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forUndefinedKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// setValuesForKeysWithDictionary: + void setValuesForKeysWithDictionary(objc.NSDictionary keyedValues) { + final _$$ref = object$.ref; + final _$$ref$1 = keyedValues.ref; + objc.checkOsVersionInternal( + 'NSObject.setValuesForKeysWithDictionary:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setValuesForKeysWithDictionary_, + _$$ref$1.pointer, + ); + } + + /// validateValue:forKey:error: + bool validateValue( + ffi.Pointer> ioValue, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.validateValue:forKey:error:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1j9bhml( + _$$ref.pointer, + _sel_validateValue_forKey_error_, + ioValue, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// validateValue:forKeyPath:error: + bool validateValue$1( + ffi.Pointer> ioValue, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.validateValue:forKeyPath:error:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1j9bhml( + _$$ref.pointer, + _sel_validateValue_forKeyPath_error_, + ioValue, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// valueForKey: + objc.ObjCObject? valueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.valueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// valueForKeyPath: + objc.ObjCObject? valueForKeyPath(objc.NSString keyPath) { + final _$$ref = object$.ref; + final _$$ref$1 = keyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.valueForKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKeyPath_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// valueForUndefinedKey: + objc.ObjCObject? valueForUndefinedKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.valueForUndefinedKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForUndefinedKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// accessInstanceVariablesDirectly + static bool getAccessInstanceVariablesDirectly() { + objc.checkOsVersionInternal( + 'NSObject.accessInstanceVariablesDirectly', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_91o635( + _class_NSObject, + _sel_accessInstanceVariablesDirectly, + ); + } +} + +/// NSKeyValueCoding +extension NSKeyValueCoding$4 on objc.NSOrderedSet { + /// setValue:forKey: + void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.setValue:forKey:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// valueForKey: + objc.ObjCObject valueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.valueForKey:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKey_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSKeyValueCoding +extension NSKeyValueCoding$5 on objc.NSMutableDictionary { + /// setValue:forKey: + void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } +} + +/// NSKeyValueObserverNotification +extension NSKeyValueObserverNotification on objc.NSObject { + /// didChange:valuesAtIndexes:forKey: + void didChange( + objc.NSKeyValueChange changeKind, { + required objc.NSIndexSet valuesAtIndexes, + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = valuesAtIndexes.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.didChange:valuesAtIndexes:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1diehjo( + _$$ref.pointer, + _sel_didChange_valuesAtIndexes_forKey_, + changeKind.value, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// didChangeValueForKey: + void didChangeValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.didChangeValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_didChangeValueForKey_, + _$$ref$1.pointer, + ); + } + + /// didChangeValueForKey:withSetMutation:usingObjects: + void didChangeValueForKey$1( + objc.NSString key, { + required objc.NSKeyValueSetMutationKind withSetMutation, + required objc.NSSet usingObjects, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final _$$ref$2 = usingObjects.ref; + objc.checkOsVersionInternal( + 'NSObject.didChangeValueForKey:withSetMutation:usingObjects:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_7w1jp7( + _$$ref.pointer, + _sel_didChangeValueForKey_withSetMutation_usingObjects_, + _$$ref$1.pointer, + withSetMutation.value, + _$$ref$2.pointer, + ); + } + + /// willChange:valuesAtIndexes:forKey: + void willChange( + objc.NSKeyValueChange changeKind, { + required objc.NSIndexSet valuesAtIndexes, + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = valuesAtIndexes.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.willChange:valuesAtIndexes:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1diehjo( + _$$ref.pointer, + _sel_willChange_valuesAtIndexes_forKey_, + changeKind.value, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// willChangeValueForKey: + void willChangeValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.willChangeValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_willChangeValueForKey_, + _$$ref$1.pointer, + ); + } + + /// willChangeValueForKey:withSetMutation:usingObjects: + void willChangeValueForKey$1( + objc.NSString key, { + required objc.NSKeyValueSetMutationKind withSetMutation, + required objc.NSSet usingObjects, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final _$$ref$2 = usingObjects.ref; + objc.checkOsVersionInternal( + 'NSObject.willChangeValueForKey:withSetMutation:usingObjects:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_7w1jp7( + _$$ref.pointer, + _sel_willChangeValueForKey_withSetMutation_usingObjects_, + _$$ref$1.pointer, + withSetMutation.value, + _$$ref$2.pointer, + ); + } +} + +/// NSKeyValueObserverRegistration +extension NSKeyValueObserverRegistration on objc.NSArray { + /// addObserver:forKeyPath:options:context: + void addObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required DartNSUInteger options, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + _objc_msgSend_akk2cd( + _$$ref.pointer, + _sel_addObserver_forKeyPath_options_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + options, + context, + ); + } + + /// addObserver:toObjectsAtIndexes:forKeyPath:options:context: + void addObserver$1( + objc.NSObject observer, { + required objc.NSIndexSet toObjectsAtIndexes, + required objc.NSString forKeyPath, + required DartNSUInteger options, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = toObjectsAtIndexes.ref; + final _$$ref$3 = forKeyPath.ref; + _objc_msgSend_1vfgg7v( + _$$ref.pointer, + _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + options, + context, + ); + } + + /// removeObserver:forKeyPath: + void removeObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeObserver:forKeyPath:context: + void removeObserver$1( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSArray.removeObserver:forKeyPath:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1jed5jl( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + context, + ); + } + + /// removeObserver:fromObjectsAtIndexes:forKeyPath: + void removeObserver$2( + objc.NSObject observer, { + required objc.NSIndexSet fromObjectsAtIndexes, + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = fromObjectsAtIndexes.ref; + final _$$ref$3 = forKeyPath.ref; + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// removeObserver:fromObjectsAtIndexes:forKeyPath:context: + void removeObserver$3( + objc.NSObject observer, { + required objc.NSIndexSet fromObjectsAtIndexes, + required objc.NSString forKeyPath, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = fromObjectsAtIndexes.ref; + final _$$ref$3 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSArray.removeObserver:fromObjectsAtIndexes:forKeyPath:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl4k3n( + _$$ref.pointer, + _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + context, + ); + } +} + +/// NSKeyValueObserverRegistration +extension NSKeyValueObserverRegistration$1 on objc.NSSet { + /// addObserver:forKeyPath:options:context: + void addObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required DartNSUInteger options, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + _objc_msgSend_akk2cd( + _$$ref.pointer, + _sel_addObserver_forKeyPath_options_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + options, + context, + ); + } + + /// removeObserver:forKeyPath: + void removeObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeObserver:forKeyPath:context: + void removeObserver$1( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSSet.removeObserver:forKeyPath:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1jed5jl( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + context, + ); + } +} + +/// NSKeyValueObserverRegistration +extension NSKeyValueObserverRegistration$2 on objc.NSOrderedSet { + /// addObserver:forKeyPath:options:context: + void addObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required DartNSUInteger options, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.addObserver:forKeyPath:options:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_akk2cd( + _$$ref.pointer, + _sel_addObserver_forKeyPath_options_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + options, + context, + ); + } + + /// removeObserver:forKeyPath: + void removeObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.removeObserver:forKeyPath:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeObserver:forKeyPath:context: + void removeObserver$1( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.removeObserver:forKeyPath:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1jed5jl( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + context, + ); + } +} + +/// NSKeyValueObserverRegistration +extension NSKeyValueObserverRegistration$3 on objc.NSObject { + /// addObserver:forKeyPath:options:context: + void addObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required DartNSUInteger options, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.addObserver:forKeyPath:options:context:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_akk2cd( + _$$ref.pointer, + _sel_addObserver_forKeyPath_options_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + options, + context, + ); + } + + /// removeObserver:forKeyPath: + void removeObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.removeObserver:forKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeObserver:forKeyPath:context: + void removeObserver$1( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.removeObserver:forKeyPath:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1jed5jl( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + context, + ); + } +} + +/// NSKeyValueObserving +extension NSKeyValueObserving on objc.NSObject { + /// observeValueForKeyPath:ofObject:change:context: + void observeValueForKeyPath( + objc.NSString? keyPath, { + objc.ObjCObject? ofObject, + objc.NSDictionary? change, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = keyPath?.ref; + final _$$ref$2 = ofObject?.ref; + final _$$ref$3 = change?.ref; + objc.checkOsVersionInternal( + 'NSObject.observeValueForKeyPath:ofObject:change:context:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl4k3n( + _$$ref.pointer, + _sel_observeValueForKeyPath_ofObject_change_context_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + context, + ); + } +} + +/// NSKeyValueObservingCustomization +extension NSKeyValueObservingCustomization on objc.NSObject { + /// observationInfo + ffi.Pointer get observationInfo { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.observationInfo', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_observationInfo); + } + + /// setObservationInfo: + set observationInfo(ffi.Pointer value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.setObservationInfo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_ovsamd(_$$ref.pointer, _sel_setObservationInfo_, value); + } + + /// automaticallyNotifiesObserversForKey: + static bool automaticallyNotifiesObserversForKey(objc.NSString key) { + final _$$ref = key.ref; + objc.checkOsVersionInternal( + 'NSObject.automaticallyNotifiesObserversForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _class_NSObject, + _sel_automaticallyNotifiesObserversForKey_, + _$$ref.pointer, + ); + } + + /// keyPathsForValuesAffectingValueForKey: + static objc.NSSet keyPathsForValuesAffectingValueForKey(objc.NSString key) { + final _$$ref = key.ref; + objc.checkOsVersionInternal( + 'NSObject.keyPathsForValuesAffectingValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSObject, + _sel_keyPathsForValuesAffectingValueForKey_, + _$$ref.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } +} + +typedef NSKeyValueOperator = ffi.Pointer; +typedef DartNSKeyValueOperator = objc.NSString; + +/// NSKeyValueSharedObserverRegistration +extension NSKeyValueSharedObserverRegistration on objc.NSObject { + /// setSharedObservers: + void setSharedObservers(NSKeyValueSharedObserversSnapshot? sharedObservers) { + final _$$ref = object$.ref; + final _$$ref$1 = sharedObservers?.ref; + objc.checkOsVersionInternal( + 'NSObject.setSharedObservers:', + iOS: (false, (18, 0, 0)), + macOS: (false, (15, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setSharedObservers_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// WARNING: NSKeyValueSharedObserversSnapshot is a stub. To generate bindings for this class, include +/// NSKeyValueSharedObserversSnapshot in your config's objc-interfaces list. +/// +/// NSKeyValueSharedObserversSnapshot +extension type NSKeyValueSharedObserversSnapshot._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSKeyValueSharedObserversSnapshot] that points to the same underlying object as [other]. + NSKeyValueSharedObserversSnapshot.as(objc.ObjCObject other) + : object$ = other { + objc.checkOsVersionInternal( + 'NSKeyValueSharedObserversSnapshot', + iOS: (false, (18, 0, 0)), + macOS: (false, (15, 0, 0)), + ); + } + + /// Constructs a [NSKeyValueSharedObserversSnapshot] that wraps the given raw object pointer. + NSKeyValueSharedObserversSnapshot.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSKeyValueSharedObserversSnapshot', + iOS: (false, (18, 0, 0)), + macOS: (false, (15, 0, 0)), + ); + } +} + +/// NSKeyValueSorting +extension NSKeyValueSorting on objc.NSMutableOrderedSet { + /// sortUsingDescriptors: + void sortUsingDescriptors(objc.NSArray sortDescriptors) { + final _$$ref = object$.ref; + final _$$ref$1 = sortDescriptors.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.sortUsingDescriptors:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_sortUsingDescriptors_, + _$$ref$1.pointer, + ); + } +} + +/// NSKeyValueSorting +extension NSKeyValueSorting$1 on objc.NSOrderedSet { + /// sortedArrayUsingDescriptors: + objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { + final _$$ref = object$.ref; + final _$$ref$1 = sortDescriptors.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.sortedArrayUsingDescriptors:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_sortedArrayUsingDescriptors_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +const int NSKeyValueValidationError = 1024; + +/// WARNING: NSKeyedArchiver is a stub. To generate bindings for this class, include +/// NSKeyedArchiver in your config's objc-interfaces list. +/// +/// NSKeyedArchiver +extension type NSKeyedArchiver._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSCoder { + /// Constructs a [NSKeyedArchiver] that points to the same underlying object as [other]. + NSKeyedArchiver.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSKeyedArchiver] that wraps the given raw object pointer. + NSKeyedArchiver.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSKeyedArchiverDelegate +extension type NSKeyedArchiverDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSKeyedArchiverDelegate] that points to the same underlying object as [other]. + NSKeyedArchiverDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSKeyedArchiverDelegate] that wraps the given raw object pointer. + NSKeyedArchiverDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSKeyedArchiverDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSKeyedArchiverDelegate, + ); + } +} + +extension NSKeyedArchiverDelegate$Methods on NSKeyedArchiverDelegate { + /// archiver:didEncodeObject: + void archiver(NSKeyedArchiver archiver, {objc.ObjCObject? didEncodeObject}) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + final _$$ref$2 = didEncodeObject?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_archiver_didEncodeObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedArchiverDelegate', + 'archiver:didEncodeObject:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_archiver_didEncodeObject_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// archiver:willEncodeObject: + objc.ObjCObject? archiver$1( + NSKeyedArchiver archiver, { + required objc.ObjCObject willEncodeObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + final _$$ref$2 = willEncodeObject.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_archiver_willEncodeObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedArchiverDelegate', + 'archiver:willEncodeObject:', + ); + } + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_archiver_willEncodeObject_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// archiver:willReplaceObject:withObject: + void archiver$2( + NSKeyedArchiver archiver, { + objc.ObjCObject? willReplaceObject, + objc.ObjCObject? withObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + final _$$ref$2 = willReplaceObject?.ref; + final _$$ref$3 = withObject?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_archiver_willReplaceObject_withObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedArchiverDelegate', + 'archiver:willReplaceObject:withObject:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_archiver_willReplaceObject_withObject_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// archiverDidFinish: + void archiverDidFinish(NSKeyedArchiver archiver) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_archiverDidFinish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedArchiverDelegate', + 'archiverDidFinish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_archiverDidFinish_, + _$$ref$1.pointer, + ); + } + + /// archiverWillFinish: + void archiverWillFinish(NSKeyedArchiver archiver) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_archiverWillFinish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedArchiverDelegate', + 'archiverWillFinish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_archiverWillFinish_, + _$$ref$1.pointer, + ); + } +} + +interface class NSKeyedArchiverDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSKeyedArchiverDelegate.cast()); + + /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedArchiverDelegate implement({ + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedArchiverDelegate', + ); + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_.implement( + builder, + archiver_didEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implement(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implement( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implement( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedArchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_.implement( + builder, + archiver_didEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implement(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implement( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implement( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedArchiverDelegate implementAsListener({ + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedArchiverDelegate', + ); + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ + .implementAsListener(builder, archiver_didEncodeObject_); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implementAsListener(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsListener( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsListener( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedArchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ + .implementAsListener(builder, archiver_didEncodeObject_); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implementAsListener(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsListener( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsListener( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedArchiverDelegate implementAsBlocking({ + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedArchiverDelegate', + ); + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ + .implementAsBlocking(builder, archiver_didEncodeObject_); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implementAsBlocking(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsBlocking( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsBlocking( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedArchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ + .implementAsBlocking(builder, archiver_didEncodeObject_); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implementAsBlocking(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsBlocking( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsBlocking( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// archiver:didEncodeObject: + static final archiver_didEncodeObject_ = + objc.ObjCProtocolListenableMethod< + void Function(NSKeyedArchiver, objc.ObjCObject?) + >( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_didEncodeObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_didEncodeObject_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.listener( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.blocking( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + ) => func(arg1, arg2), + ), + ); + + /// archiver:willEncodeObject: + static final archiver_willEncodeObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject) + >( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_willEncodeObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_zi5eed) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_willEncodeObject_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject) func) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject arg2, + ) => func(arg1, arg2), + ), + ); + + /// archiver:willReplaceObject:withObject: + static final archiver_willReplaceObject_withObject_ = + objc.ObjCProtocolListenableMethod< + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) + >( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_willReplaceObject_withObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_willReplaceObject_withObject_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + objc.ObjCObject? arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.listener( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + objc.ObjCObject? arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.blocking( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + objc.ObjCObject? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// archiverDidFinish: + static final archiverDidFinish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSKeyedArchiverDelegate, + _sel_archiverDidFinish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedArchiverDelegate, + _sel_archiverDidFinish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.fromFunction( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.listener( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.blocking( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + ); + + /// archiverWillFinish: + static final archiverWillFinish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSKeyedArchiverDelegate, + _sel_archiverWillFinish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedArchiverDelegate, + _sel_archiverWillFinish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.fromFunction( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.listener( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.blocking( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + ); +} + +/// NSKeyedArchiverObjectSubstitution +extension NSKeyedArchiverObjectSubstitution on objc.NSObject { + /// classForKeyedArchiver + objc.ObjCObject? get classForKeyedArchiver { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classForKeyedArchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_classForKeyedArchiver, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// replacementObjectForKeyedArchiver: + objc.ObjCObject? replacementObjectForKeyedArchiver(NSKeyedArchiver archiver) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + objc.checkOsVersionInternal( + 'NSObject.replacementObjectForKeyedArchiver:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_replacementObjectForKeyedArchiver_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// classFallbacksForKeyedArchiver + static objc.NSArray classFallbacksForKeyedArchiver() { + objc.checkOsVersionInternal( + 'NSObject.classFallbacksForKeyedArchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSObject, + _sel_classFallbacksForKeyedArchiver, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSKeyedUnarchiver is a stub. To generate bindings for this class, include +/// NSKeyedUnarchiver in your config's objc-interfaces list. +/// +/// NSKeyedUnarchiver +extension type NSKeyedUnarchiver._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSCoder { + /// Constructs a [NSKeyedUnarchiver] that points to the same underlying object as [other]. + NSKeyedUnarchiver.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSKeyedUnarchiver] that wraps the given raw object pointer. + NSKeyedUnarchiver.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSKeyedUnarchiverDelegate +extension type NSKeyedUnarchiverDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSKeyedUnarchiverDelegate] that points to the same underlying object as [other]. + NSKeyedUnarchiverDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSKeyedUnarchiverDelegate] that wraps the given raw object pointer. + NSKeyedUnarchiverDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSKeyedUnarchiverDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSKeyedUnarchiverDelegate, + ); + } +} + +extension NSKeyedUnarchiverDelegate$Methods on NSKeyedUnarchiverDelegate { + /// unarchiver:cannotDecodeObjectOfClassName:originalClasses: + objc.ObjCObject? unarchiver( + NSKeyedUnarchiver unarchiver, { + required objc.NSString cannotDecodeObjectOfClassName, + required objc.NSArray originalClasses, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = unarchiver.ref; + final _$$ref$2 = cannotDecodeObjectOfClassName.ref; + final _$$ref$3 = originalClasses.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedUnarchiverDelegate', + 'unarchiver:cannotDecodeObjectOfClassName:originalClasses:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// unarchiver:didDecodeObject: + objc.ObjCObject? unarchiver$1( + NSKeyedUnarchiver unarchiver, { + objc.ObjCObject? didDecodeObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = unarchiver.ref; + final _$$ref$2 = didDecodeObject?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_unarchiver_didDecodeObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedUnarchiverDelegate', + 'unarchiver:didDecodeObject:', + ); + } + final $ret = _objc_msgSend_wfjd8v( + _$$ref.pointer, + _sel_unarchiver_didDecodeObject_, + _$$ref$1.pointer, + _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// unarchiver:willReplaceObject:withObject: + void unarchiver$2( + NSKeyedUnarchiver unarchiver, { + required objc.ObjCObject willReplaceObject, + required objc.ObjCObject withObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = unarchiver.ref; + final _$$ref$2 = willReplaceObject.ref; + final _$$ref$3 = withObject.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_unarchiver_willReplaceObject_withObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedUnarchiverDelegate', + 'unarchiver:willReplaceObject:withObject:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_unarchiver_willReplaceObject_withObject_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// unarchiverDidFinish: + void unarchiverDidFinish(NSKeyedUnarchiver unarchiver) { + final _$$ref = object$.ref; + final _$$ref$1 = unarchiver.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_unarchiverDidFinish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedUnarchiverDelegate', + 'unarchiverDidFinish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_unarchiverDidFinish_, + _$$ref$1.pointer, + ); + } + + /// unarchiverWillFinish: + void unarchiverWillFinish(NSKeyedUnarchiver unarchiver) { + final _$$ref = object$.ref; + final _$$ref$1 = unarchiver.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_unarchiverWillFinish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedUnarchiverDelegate', + 'unarchiverWillFinish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_unarchiverWillFinish_, + _$$ref$1.pointer, + ); + } +} + +interface class NSKeyedUnarchiverDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSKeyedUnarchiverDelegate.cast()); + + /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedUnarchiverDelegate implement({ + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedUnarchiverDelegate', + ); + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implement(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implement( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implement( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedUnarchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implement(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implement( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implement( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedUnarchiverDelegate implementAsListener({ + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedUnarchiverDelegate', + ); + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implementAsListener(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsListener( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsListener( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedUnarchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implementAsListener(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsListener( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsListener( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedUnarchiverDelegate implementAsBlocking({ + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedUnarchiverDelegate', + ); + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implementAsBlocking(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsBlocking( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsBlocking( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedUnarchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implementAsBlocking(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsBlocking( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsBlocking( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// unarchiver:cannotDecodeObjectOfClassName:originalClasses: + static final unarchiver_cannotDecodeObjectOfClassName_originalClasses_ = + objc.ObjCProtocolMethod< + objc.ObjCObject? Function( + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + >( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.ObjCObject? Function( + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + func, + ) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray.fromFunction( + ( + ffi.Pointer _, + NSKeyedUnarchiver arg1, + objc.NSString arg2, + objc.NSArray arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// unarchiver:didDecodeObject: + static final unarchiver_didDecodeObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?) + >( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_didDecodeObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1p0fswn) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_didDecodeObject_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?) func) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSKeyedUnarchiver arg1, + objc.ObjCObject? arg2, + ) => func(arg1, arg2), + ), + ); + + /// unarchiver:willReplaceObject:withObject: + static final unarchiver_willReplaceObject_withObject_ = + objc.ObjCProtocolListenableMethod< + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) + >( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_willReplaceObject_withObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_willReplaceObject_withObject_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSKeyedUnarchiver arg1, + objc.ObjCObject arg2, + objc.ObjCObject arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.listener( + ( + ffi.Pointer _, + NSKeyedUnarchiver arg1, + objc.ObjCObject arg2, + objc.ObjCObject arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.blocking( + ( + ffi.Pointer _, + NSKeyedUnarchiver arg1, + objc.ObjCObject arg2, + objc.ObjCObject arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// unarchiverDidFinish: + static final unarchiverDidFinish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiverDidFinish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiverDidFinish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.fromFunction( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.listener( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.blocking( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + ); + + /// unarchiverWillFinish: + static final unarchiverWillFinish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiverWillFinish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiverWillFinish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.fromFunction( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.listener( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.blocking( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + ); +} + +/// NSKeyedUnarchiverObjectSubstitution +extension NSKeyedUnarchiverObjectSubstitution on objc.NSObject { + /// classForKeyedUnarchiver + static objc.ObjCObject classForKeyedUnarchiver() { + objc.checkOsVersionInternal( + 'NSObject.classForKeyedUnarchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSObject, + _sel_classForKeyedUnarchiver, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +enum NSLengthFormatterUnit { + NSLengthFormatterUnitMillimeter(8), + NSLengthFormatterUnitCentimeter(9), + NSLengthFormatterUnitMeter(11), + NSLengthFormatterUnitKilometer(14), + NSLengthFormatterUnitInch(1281), + NSLengthFormatterUnitFoot(1282), + NSLengthFormatterUnitYard(1283), + NSLengthFormatterUnitMile(1284); + + final int value; + const NSLengthFormatterUnit(this.value); + + static NSLengthFormatterUnit fromValue(int value) => switch (value) { + 8 => NSLengthFormatterUnitMillimeter, + 9 => NSLengthFormatterUnitCentimeter, + 11 => NSLengthFormatterUnitMeter, + 14 => NSLengthFormatterUnitKilometer, + 1281 => NSLengthFormatterUnitInch, + 1282 => NSLengthFormatterUnitFoot, + 1283 => NSLengthFormatterUnitYard, + 1284 => NSLengthFormatterUnitMile, + _ => throw ArgumentError('Unknown value for NSLengthFormatterUnit: $value'), + }; +} + +/// NSLinguisticAnalysis +extension NSLinguisticAnalysis on objc.NSString { + /// enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock: + @Deprecated( + 'All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API', + ) + void enumerateLinguisticTagsInRange( + NSRange range, { + required DartNSLinguisticTagScheme scheme, + required DartNSUInteger options, + NSOrthography? orthography, + required objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = scheme.ref; + final _$$ref$2 = orthography?.ref; + final _$$ref$3 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSString.enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_vij4rw( + _$$ref.pointer, + _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_, + range, + _$$ref$1.pointer, + options, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3.pointer, + ); + } + + /// linguisticTagsInRange:scheme:options:orthography:tokenRanges: + @Deprecated( + 'All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API', + ) + objc.NSArray linguisticTagsInRange( + NSRange range, { + required DartNSLinguisticTagScheme scheme, + required DartNSUInteger options, + NSOrthography? orthography, + required ffi.Pointer> tokenRanges, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = scheme.ref; + final _$$ref$2 = orthography?.ref; + objc.checkOsVersionInternal( + 'NSString.linguisticTagsInRange:scheme:options:orthography:tokenRanges:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1l09uru( + _$$ref.pointer, + _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_, + range, + _$$ref$1.pointer, + options, + _$$ref$2?.pointer ?? ffi.nullptr, + tokenRanges, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +typedef NSLinguisticTag = ffi.Pointer; +typedef DartNSLinguisticTag = objc.NSString; +typedef NSLinguisticTagScheme = ffi.Pointer; +typedef DartNSLinguisticTagScheme = objc.NSString; + +enum NSLinguisticTaggerUnit { + NSLinguisticTaggerUnitWord(0), + NSLinguisticTaggerUnitSentence(1), + NSLinguisticTaggerUnitParagraph(2), + NSLinguisticTaggerUnitDocument(3); + + final int value; + const NSLinguisticTaggerUnit(this.value); + + static NSLinguisticTaggerUnit fromValue(int value) => switch (value) { + 0 => NSLinguisticTaggerUnitWord, + 1 => NSLinguisticTaggerUnitSentence, + 2 => NSLinguisticTaggerUnitParagraph, + 3 => NSLinguisticTaggerUnitDocument, + _ => throw ArgumentError( + 'Unknown value for NSLinguisticTaggerUnit: $value', + ), + }; +} + +/// NSLocaleCreation +extension NSLocaleCreation on objc.NSLocale { + /// autoupdatingCurrentLocale + static objc.NSLocale getAutoupdatingCurrentLocale() { + objc.checkOsVersionInternal( + 'NSLocale.autoupdatingCurrentLocale', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSLocale, + _sel_autoupdatingCurrentLocale, + ); + return objc.NSLocale.fromPointer($ret, retain: true, release: true); + } + + /// currentLocale + static objc.NSLocale getCurrentLocale() { + final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_currentLocale); + return objc.NSLocale.fromPointer($ret, retain: true, release: true); + } + + /// localeWithLocaleIdentifier: + static objc.NSLocale localeWithLocaleIdentifier(objc.NSString ident) { + final _$$ref = ident.ref; + objc.checkOsVersionInternal( + 'NSLocale.localeWithLocaleIdentifier:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_localeWithLocaleIdentifier_, + _$$ref.pointer, + ); + return objc.NSLocale.fromPointer($ret, retain: true, release: true); + } + + /// systemLocale + static objc.NSLocale getSystemLocale() { + final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_systemLocale); + return objc.NSLocale.fromPointer($ret, retain: true, release: true); + } +} + +/// NSLocaleGeneralInfo +extension NSLocaleGeneralInfo on objc.NSLocale { + /// ISOCountryCodes + static objc.NSArray getISOCountryCodes() { + final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOCountryCodes); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// ISOCurrencyCodes + static objc.NSArray getISOCurrencyCodes() { + final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOCurrencyCodes); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// ISOLanguageCodes + static objc.NSArray getISOLanguageCodes() { + final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOLanguageCodes); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// availableLocaleIdentifiers + static objc.NSArray getAvailableLocaleIdentifiers() { + final $ret = _objc_msgSend_151sglz( + _class_NSLocale, + _sel_availableLocaleIdentifiers, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// canonicalLanguageIdentifierFromString: + static objc.NSString canonicalLanguageIdentifierFromString( + objc.NSString string, + ) { + final _$$ref = string.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_canonicalLanguageIdentifierFromString_, + _$$ref.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// canonicalLocaleIdentifierFromString: + static objc.NSString canonicalLocaleIdentifierFromString( + objc.NSString string, + ) { + final _$$ref = string.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_canonicalLocaleIdentifierFromString_, + _$$ref.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// characterDirectionForLanguage: + static objc.NSLocaleLanguageDirection characterDirectionForLanguage( + objc.NSString isoLangCode, + ) { + final _$$ref = isoLangCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.characterDirectionForLanguage:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1kn7frf( + _class_NSLocale, + _sel_characterDirectionForLanguage_, + _$$ref.pointer, + ); + return objc.NSLocaleLanguageDirection.fromValue($ret); + } + + /// commonISOCurrencyCodes + static objc.NSArray getCommonISOCurrencyCodes() { + objc.checkOsVersionInternal( + 'NSLocale.commonISOCurrencyCodes', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSLocale, + _sel_commonISOCurrencyCodes, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// componentsFromLocaleIdentifier: + static objc.NSDictionary componentsFromLocaleIdentifier( + objc.NSString string, + ) { + final _$$ref = string.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_componentsFromLocaleIdentifier_, + _$$ref.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// lineDirectionForLanguage: + static objc.NSLocaleLanguageDirection lineDirectionForLanguage( + objc.NSString isoLangCode, + ) { + final _$$ref = isoLangCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.lineDirectionForLanguage:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1kn7frf( + _class_NSLocale, + _sel_lineDirectionForLanguage_, + _$$ref.pointer, + ); + return objc.NSLocaleLanguageDirection.fromValue($ret); + } + + /// localeIdentifierFromComponents: + static objc.NSString localeIdentifierFromComponents(objc.NSDictionary dict) { + final _$$ref = dict.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_localeIdentifierFromComponents_, + _$$ref.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localeIdentifierFromWindowsLocaleCode: + static objc.NSString? localeIdentifierFromWindowsLocaleCode(int lcid) { + objc.checkOsVersionInternal( + 'NSLocale.localeIdentifierFromWindowsLocaleCode:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_lx7wnn( + _class_NSLocale, + _sel_localeIdentifierFromWindowsLocaleCode_, + lcid, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// preferredLanguages + static objc.NSArray getPreferredLanguages() { + objc.checkOsVersionInternal( + 'NSLocale.preferredLanguages', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSLocale, + _sel_preferredLanguages, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// windowsLocaleCodeFromLocaleIdentifier: + static int windowsLocaleCodeFromLocaleIdentifier( + objc.NSString localeIdentifier, + ) { + final _$$ref = localeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSLocale.windowsLocaleCodeFromLocaleIdentifier:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1nwix4r( + _class_NSLocale, + _sel_windowsLocaleCodeFromLocaleIdentifier_, + _$$ref.pointer, + ); + } +} + +typedef NSLocaleKey = ffi.Pointer; +typedef DartNSLocaleKey = objc.NSString; + +/// NSLocking +extension type NSLocking._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSLocking] that points to the same underlying object as [other]. + NSLocking.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSLocking] that wraps the given raw object pointer. + NSLocking.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSLocking]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSLocking, + ); + } +} + +extension NSLocking$Methods on NSLocking { + /// lock + void lock() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_lock); + } + + /// unlock + void unlock() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_unlock); + } +} + +interface class NSLocking$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSLocking.cast()); + + /// Builds an object that implements the NSLocking protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSLocking implement({ + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); + NSLocking$Builder.lock.implement(builder, lock); + NSLocking$Builder.unlock.implement(builder, unlock); + builder.addProtocol($protocol); + return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the NSLocking protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + NSLocking$Builder.lock.implement(builder, lock); + NSLocking$Builder.unlock.implement(builder, unlock); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSLocking protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSLocking implementAsListener({ + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); + NSLocking$Builder.lock.implementAsListener(builder, lock); + NSLocking$Builder.unlock.implementAsListener(builder, unlock); + builder.addProtocol($protocol); + return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the NSLocking protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + NSLocking$Builder.lock.implementAsListener(builder, lock); + NSLocking$Builder.unlock.implementAsListener(builder, unlock); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSLocking protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSLocking implementAsBlocking({ + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); + NSLocking$Builder.lock.implementAsBlocking(builder, lock); + NSLocking$Builder.unlock.implementAsBlocking(builder, unlock); + builder.addProtocol($protocol); + return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the NSLocking protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + NSLocking$Builder.lock.implementAsBlocking(builder, lock); + NSLocking$Builder.unlock.implementAsBlocking(builder, unlock); + builder.addProtocol($protocol); + } + + /// lock + static final lock = objc.ObjCProtocolListenableMethod( + _protocol_NSLocking, + _sel_lock, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSLocking, + _sel_lock, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// unlock + static final unlock = objc.ObjCProtocolListenableMethod( + _protocol_NSLocking, + _sel_unlock, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSLocking, + _sel_unlock, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); +} + +@Deprecated('Not supported') +const int NSMACHOperatingSystem = 5; + +const int NSMacOSRomanStringEncoding = 30; + +/// NSMachPortDelegate +extension type NSMachPortDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSPortDelegate { + /// Constructs a [NSMachPortDelegate] that points to the same underlying object as [other]. + NSMachPortDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSMachPortDelegate] that wraps the given raw object pointer. + NSMachPortDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMachPortDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSMachPortDelegate, + ); + } +} + +extension NSMachPortDelegate$Methods on NSMachPortDelegate { + /// handleMachMessage: + void handleMachMessage(ffi.Pointer msg) { + final _$$ref = object$.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_handleMachMessage_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSMachPortDelegate', + 'handleMachMessage:', + ); + } + _objc_msgSend_ovsamd(_$$ref.pointer, _sel_handleMachMessage_, msg); + } + + /// handlePortMessage: + void handlePortMessage(objc.NSPortMessage message) { + final _$$ref = object$.ref; + final _$$ref$1 = message.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_handlePortMessage_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSMachPortDelegate', + 'handlePortMessage:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_handlePortMessage_, + _$$ref$1.pointer, + ); + } +} + +interface class NSMachPortDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSMachPortDelegate.cast()); + + /// Builds an object that implements the NSMachPortDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSMachPortDelegate implement({ + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); + NSMachPortDelegate$Builder.handleMachMessage_.implement( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implement( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + return NSMachPortDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSMachPortDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + NSMachPortDelegate$Builder.handleMachMessage_.implement( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implement( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSMachPortDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSMachPortDelegate implementAsListener({ + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); + NSMachPortDelegate$Builder.handleMachMessage_.implementAsListener( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implementAsListener( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + return NSMachPortDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSMachPortDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + NSMachPortDelegate$Builder.handleMachMessage_.implementAsListener( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implementAsListener( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSMachPortDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSMachPortDelegate implementAsBlocking({ + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); + NSMachPortDelegate$Builder.handleMachMessage_.implementAsBlocking( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implementAsBlocking( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + return NSMachPortDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSMachPortDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + NSMachPortDelegate$Builder.handleMachMessage_.implementAsBlocking( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implementAsBlocking( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + } + + /// handleMachMessage: + static final handleMachMessage_ = + objc.ObjCProtocolListenableMethod)>( + _protocol_NSMachPortDelegate, + _sel_handleMachMessage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1037nh9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMachPortDelegate, + _sel_handleMachMessage_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(ffi.Pointer) func) => + ObjCBlock_ffiVoid_ffiVoid_ffiVoid.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + (void Function(ffi.Pointer) func) => + ObjCBlock_ffiVoid_ffiVoid_ffiVoid.listener( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + (void Function(ffi.Pointer) func) => + ObjCBlock_ffiVoid_ffiVoid_ffiVoid.blocking( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + ); + + /// handlePortMessage: + static final handlePortMessage_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSMachPortDelegate, + _sel_handlePortMessage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMachPortDelegate, + _sel_handlePortMessage_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSPortMessage) func) => + ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.fromFunction( + (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), + ), + (void Function(objc.NSPortMessage) func) => + ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.listener( + (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), + ), + (void Function(objc.NSPortMessage) func) => + ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.blocking( + (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), + ), + ); +} + +sealed class NSMachPortOptions { + static const NSMachPortDeallocateNone = 0; + static const NSMachPortDeallocateSendRight = 1; + static const NSMachPortDeallocateReceiveRight = 2; +} + +final class NSMapEnumerator extends ffi.Struct { + @NSUInteger() + external int _pi; + + @NSUInteger() + external int _si; + + external ffi.Pointer _bs; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int $pi, + required int $si, + required ffi.Pointer $bs, + }) => $allocator() + ..ref._pi = $pi + ..ref._si = $si + ..ref._bs = $bs; +} + +/// WARNING: NSMapTable is a stub. To generate bindings for this class, include +/// NSMapTable in your config's objc-interfaces list. +/// +/// NSMapTable +extension type NSMapTable._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding, + objc.NSFastEnumeration { + /// Constructs a [NSMapTable] that points to the same underlying object as [other]. + NSMapTable.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMapTable', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } + + /// Constructs a [NSMapTable] that wraps the given raw object pointer. + NSMapTable.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMapTable', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } +} + +const int NSMapTableCopyIn = 65536; + +final class NSMapTableKeyCallBacks extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + hash; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + isEqual; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + release; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe; + + external ffi.Pointer notAKeyMarker; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + hash, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + isEqual, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + release, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe, + required ffi.Pointer notAKeyMarker, + }) => $allocator() + ..ref.hash = hash + ..ref.isEqual = isEqual + ..ref.retain = retain + ..ref.release = release + ..ref.describe = describe + ..ref.notAKeyMarker = notAKeyMarker; +} + +const int NSMapTableObjectPointerPersonality = 512; + +typedef NSMapTableOptions = NSUInteger; + +const int NSMapTableStrongMemory = 0; + +final class NSMapTableValueCallBacks extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + release; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + release, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe, + }) => $allocator() + ..ref.retain = retain + ..ref.release = release + ..ref.describe = describe; +} + +const int NSMapTableWeakMemory = 5; + +const int NSMapTableZeroingWeakMemory = 1; + +enum NSMassFormatterUnit { + NSMassFormatterUnitGram(11), + NSMassFormatterUnitKilogram(14), + NSMassFormatterUnitOunce(1537), + NSMassFormatterUnitPound(1538), + NSMassFormatterUnitStone(1539); + + final int value; + const NSMassFormatterUnit(this.value); + + static NSMassFormatterUnit fromValue(int value) => switch (value) { + 11 => NSMassFormatterUnitGram, + 14 => NSMassFormatterUnitKilogram, + 1537 => NSMassFormatterUnitOunce, + 1538 => NSMassFormatterUnitPound, + 1539 => NSMassFormatterUnitStone, + _ => throw ArgumentError('Unknown value for NSMassFormatterUnit: $value'), + }; +} + +/// NSMatching +extension NSMatching on NSRegularExpression { + /// enumerateMatchesInString:options:range:usingBlock: + void enumerateMatchesInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + required objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + > + usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + final _$$ref$2 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.enumerateMatchesInString:options:range:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_105ehca( + _$$ref.pointer, + _sel_enumerateMatchesInString_options_range_usingBlock_, + _$$ref$1.pointer, + options, + range, + _$$ref$2.pointer, + ); + } + + /// firstMatchInString:options:range: + NSTextCheckingResult? firstMatchInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.firstMatchInString:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_pccgql( + _$$ref.pointer, + _sel_firstMatchInString_options_range_, + _$$ref$1.pointer, + options, + range, + ); + return $ret.address == 0 + ? null + : NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// matchesInString:options:range: + objc.NSArray matchesInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.matchesInString:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_pccgql( + _$$ref.pointer, + _sel_matchesInString_options_range_, + _$$ref$1.pointer, + options, + range, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// numberOfMatchesInString:options:range: + DartNSUInteger numberOfMatchesInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.numberOfMatchesInString:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_1rbikrg( + _$$ref.pointer, + _sel_numberOfMatchesInString_options_range_, + _$$ref$1.pointer, + options, + range, + ); + } + + /// rangeOfFirstMatchInString:options:range: + NSRange rangeOfFirstMatchInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.rangeOfFirstMatchInString:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_yl37m5Stret( + $ptr, + _$$ref.pointer, + _sel_rangeOfFirstMatchInString_options_range_, + _$$ref$1.pointer, + options, + range, + ) + : $ptr.ref = _objc_msgSend_yl37m5( + _$$ref.pointer, + _sel_rangeOfFirstMatchInString_options_range_, + _$$ref$1.pointer, + options, + range, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } +} + +sealed class NSMatchingFlags { + static const NSMatchingProgress = 1; + static const NSMatchingCompleted = 2; + static const NSMatchingHitEnd = 4; + static const NSMatchingRequiredEnd = 8; + static const NSMatchingInternalError = 16; +} + +sealed class NSMatchingOptions { + static const NSMatchingReportProgress = 1; + static const NSMatchingReportCompletion = 2; + static const NSMatchingAnchored = 4; + static const NSMatchingWithTransparentBounds = 8; + static const NSMatchingWithoutAnchoringBounds = 16; +} + +sealed class NSMeasurementFormatterUnitOptions { + static const NSMeasurementFormatterUnitOptionsProvidedUnit = 1; + static const NSMeasurementFormatterUnitOptionsNaturalScale = 2; + static const NSMeasurementFormatterUnitOptionsTemperatureWithoutUnit = 4; +} + +/// WARNING: NSMetadataItem is a stub. To generate bindings for this class, include +/// NSMetadataItem in your config's objc-interfaces list. +/// +/// NSMetadataItem +extension type NSMetadataItem._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSMetadataItem] that points to the same underlying object as [other]. + NSMetadataItem.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMetadataItem', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } + + /// Constructs a [NSMetadataItem] that wraps the given raw object pointer. + NSMetadataItem.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMetadataItem', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } +} + +/// WARNING: NSMetadataQuery is a stub. To generate bindings for this class, include +/// NSMetadataQuery in your config's objc-interfaces list. +/// +/// NSMetadataQuery +extension type NSMetadataQuery._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSMetadataQuery] that points to the same underlying object as [other]. + NSMetadataQuery.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMetadataQuery', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } + + /// Constructs a [NSMetadataQuery] that wraps the given raw object pointer. + NSMetadataQuery.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMetadataQuery', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } +} + +/// NSMetadataQueryDelegate +extension type NSMetadataQueryDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSMetadataQueryDelegate] that points to the same underlying object as [other]. + NSMetadataQueryDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSMetadataQueryDelegate] that wraps the given raw object pointer. + NSMetadataQueryDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMetadataQueryDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSMetadataQueryDelegate, + ); + } +} + +extension NSMetadataQueryDelegate$Methods on NSMetadataQueryDelegate { + /// metadataQuery:replacementObjectForResultObject: + objc.ObjCObject metadataQuery( + NSMetadataQuery query, { + required NSMetadataItem replacementObjectForResultObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = query.ref; + final _$$ref$2 = replacementObjectForResultObject.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_metadataQuery_replacementObjectForResultObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSMetadataQueryDelegate', + 'metadataQuery:replacementObjectForResultObject:', + ); + } + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_metadataQuery_replacementObjectForResultObject_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// metadataQuery:replacementValueForAttribute:value: + objc.ObjCObject metadataQuery$1( + NSMetadataQuery query, { + required objc.NSString replacementValueForAttribute, + required objc.ObjCObject value, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = query.ref; + final _$$ref$2 = replacementValueForAttribute.ref; + final _$$ref$3 = value.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_metadataQuery_replacementValueForAttribute_value_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSMetadataQueryDelegate', + 'metadataQuery:replacementValueForAttribute:value:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_metadataQuery_replacementValueForAttribute_value_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +interface class NSMetadataQueryDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSMetadataQueryDelegate.cast()); + + /// Builds an object that implements the NSMetadataQueryDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSMetadataQueryDelegate implement({ + objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem)? + metadataQuery_replacementObjectForResultObject_, + objc.ObjCObject Function(NSMetadataQuery, objc.NSString, objc.ObjCObject)? + metadataQuery_replacementValueForAttribute_value_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSMetadataQueryDelegate', + ); + NSMetadataQueryDelegate$Builder + .metadataQuery_replacementObjectForResultObject_ + .implement(builder, metadataQuery_replacementObjectForResultObject_); + NSMetadataQueryDelegate$Builder + .metadataQuery_replacementValueForAttribute_value_ + .implement(builder, metadataQuery_replacementValueForAttribute_value_); + builder.addProtocol($protocol); + return NSMetadataQueryDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSMetadataQueryDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem)? + metadataQuery_replacementObjectForResultObject_, + objc.ObjCObject Function(NSMetadataQuery, objc.NSString, objc.ObjCObject)? + metadataQuery_replacementValueForAttribute_value_, + bool $keepIsolateAlive = true, + }) { + NSMetadataQueryDelegate$Builder + .metadataQuery_replacementObjectForResultObject_ + .implement(builder, metadataQuery_replacementObjectForResultObject_); + NSMetadataQueryDelegate$Builder + .metadataQuery_replacementValueForAttribute_value_ + .implement(builder, metadataQuery_replacementValueForAttribute_value_); + builder.addProtocol($protocol); + } + + /// metadataQuery:replacementObjectForResultObject: + static final metadataQuery_replacementObjectForResultObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem) + >( + _protocol_NSMetadataQueryDelegate, + _sel_metadataQuery_replacementObjectForResultObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_zi5eed) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMetadataQueryDelegate, + _sel_metadataQuery_replacementObjectForResultObject_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem) func) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem.fromFunction( + ( + ffi.Pointer _, + NSMetadataQuery arg1, + NSMetadataItem arg2, + ) => func(arg1, arg2), + ), + ); + + /// metadataQuery:replacementValueForAttribute:value: + static final metadataQuery_replacementValueForAttribute_value_ = + objc.ObjCProtocolMethod< + objc.ObjCObject Function( + NSMetadataQuery, + objc.NSString, + objc.ObjCObject, + ) + >( + _protocol_NSMetadataQueryDelegate, + _sel_metadataQuery_replacementValueForAttribute_value_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMetadataQueryDelegate, + _sel_metadataQuery_replacementValueForAttribute_value_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.ObjCObject Function( + NSMetadataQuery, + objc.NSString, + objc.ObjCObject, + ) + func, + ) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSMetadataQuery arg1, + objc.NSString arg2, + objc.ObjCObject arg3, + ) => func(arg1, arg2, arg3), + ), + ); +} + +/// NSMorphology +extension NSMorphology on objc.NSAttributedString { + /// attributedStringByInflectingString + objc.NSAttributedString attributedStringByInflectingString() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.attributedStringByInflectingString', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_attributedStringByInflectingString, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// WARNING: NSMorphology$1 is a stub. To generate bindings for this class, include +/// NSMorphology in your config's objc-interfaces list. +/// +/// NSMorphology +extension type NSMorphology$1._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSMorphology$1] that points to the same underlying object as [other]. + NSMorphology$1.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMorphology', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } + + /// Constructs a [NSMorphology$1] that wraps the given raw object pointer. + NSMorphology$1.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMorphology', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } +} + +/// WARNING: NSMorphologyCustomPronoun is a stub. To generate bindings for this class, include +/// NSMorphologyCustomPronoun in your config's objc-interfaces list. +/// +/// NSMorphologyCustomPronoun +@Deprecated('Use NSTermOfAddress instead') +extension type NSMorphologyCustomPronoun._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSMorphologyCustomPronoun] that points to the same underlying object as [other]. + NSMorphologyCustomPronoun.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMorphologyCustomPronoun', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } + + /// Constructs a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. + NSMorphologyCustomPronoun.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMorphologyCustomPronoun', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } +} + +/// NSMorphologyUserSettings +extension NSMorphologyUserSettings on NSMorphology$1 { + /// isUnspecified + bool get isUnspecified { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMorphology.isUnspecified', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isUnspecified); + } + + /// userMorphology + static NSMorphology$1 getUserMorphology() { + objc.checkOsVersionInternal( + 'NSMorphology.userMorphology', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSMorphology, + _sel_userMorphology, + ); + return NSMorphology$1.fromPointer($ret, retain: true, release: true); + } +} + +/// NSMutableArrayCreation +extension NSMutableArrayCreation on objc.NSMutableArray { + /// initWithContentsOfFile: + objc.NSMutableArray? initWithContentsOfFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableArray.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + objc.NSMutableArray? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableArray.fromPointer($ret, retain: false, release: true); + } + + /// arrayWithCapacity: + static objc.NSMutableArray arrayWithCapacity(DartNSUInteger numItems) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableArray, + _sel_arrayWithCapacity_, + numItems, + ); + return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithContentsOfFile: + static objc.NSMutableArray? arrayWithContentsOfFile(objc.NSString path) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithContentsOfURL: + static objc.NSMutableArray? arrayWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSMutableArrayDiffing +extension NSMutableArrayDiffing on objc.NSMutableArray { + /// applyDifference: + void applyDifference(objc.NSOrderedCollectionDifference difference) { + final _$$ref = object$.ref; + final _$$ref$1 = difference.ref; + objc.checkOsVersionInternal( + 'NSMutableArray.applyDifference:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_applyDifference_, + _$$ref$1.pointer, + ); + } +} + +/// WARNING: NSMutableAttributedString is a stub. To generate bindings for this class, include +/// NSMutableAttributedString in your config's objc-interfaces list. +/// +/// NSMutableAttributedString +extension type NSMutableAttributedString._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSAttributedString { + /// Constructs a [NSMutableAttributedString] that points to the same underlying object as [other]. + NSMutableAttributedString.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMutableAttributedString', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSMutableAttributedString] that wraps the given raw object pointer. + NSMutableAttributedString.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMutableAttributedString', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +/// NSMutableAttributedStringFormatting +extension NSMutableAttributedStringFormatting on NSMutableAttributedString { + /// appendLocalizedFormat: + void appendLocalizedFormat(objc.NSAttributedString format) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.appendLocalizedFormat:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_appendLocalizedFormat_, + _$$ref$1.pointer, + ); + } +} + +/// NSMutableDataCompression +extension NSMutableDataCompression on objc.NSMutableData { + /// compressUsingAlgorithm:error: + bool compressUsingAlgorithm(objc.NSDataCompressionAlgorithm algorithm) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableData.compressUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_15v716q( + _$$ref.pointer, + _sel_compressUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decompressUsingAlgorithm:error: + bool decompressUsingAlgorithm(objc.NSDataCompressionAlgorithm algorithm) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableData.decompressUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_15v716q( + _$$ref.pointer, + _sel_decompressUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +/// NSMutableDataCreation +extension NSMutableDataCreation on objc.NSMutableData { + /// initWithCapacity: + objc.NSMutableData? initWithCapacity(DartNSUInteger capacity) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_14hpxwa( + _$$ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + capacity, + ); + return $ret.address == 0 + ? null + : objc.NSMutableData.fromPointer($ret, retain: false, release: true); + } + + /// initWithLength: + objc.NSMutableData? initWithLength(DartNSUInteger length) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_14hpxwa( + _$$ref.retainAndReturnPointer(), + _sel_initWithLength_, + length, + ); + return $ret.address == 0 + ? null + : objc.NSMutableData.fromPointer($ret, retain: false, release: true); + } + + /// dataWithCapacity: + static objc.NSMutableData? dataWithCapacity(DartNSUInteger aNumItems) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableData, + _sel_dataWithCapacity_, + aNumItems, + ); + return $ret.address == 0 + ? null + : objc.NSMutableData.fromPointer($ret, retain: true, release: true); + } + + /// dataWithLength: + static objc.NSMutableData? dataWithLength(DartNSUInteger length) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableData, + _sel_dataWithLength_, + length, + ); + return $ret.address == 0 + ? null + : objc.NSMutableData.fromPointer($ret, retain: true, release: true); + } +} + +/// NSMutableDictionaryCreation +extension NSMutableDictionaryCreation on objc.NSMutableDictionary { + /// initWithContentsOfFile: + objc.NSMutableDictionary? initWithContentsOfFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableDictionary.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// initWithContentsOfURL: + objc.NSMutableDictionary? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableDictionary.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// dictionaryWithCapacity: + static objc.NSMutableDictionary dictionaryWithCapacity( + DartNSUInteger numItems, + ) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableDictionary, + _sel_dictionaryWithCapacity_, + numItems, + ); + return objc.NSMutableDictionary.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithContentsOfFile: + static objc.NSMutableDictionary? dictionaryWithContentsOfFile( + objc.NSString path, + ) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableDictionary.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithContentsOfURL: + static objc.NSMutableDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableDictionary.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSMutableHTTPURLRequest +extension NSMutableHTTPURLRequest on NSMutableURLRequest { + /// HTTPBody + objc.NSData? get HTTPBody { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPBody', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBody); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// HTTPBodyStream + objc.NSInputStream? get HTTPBodyStream { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPBodyStream', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBodyStream); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// HTTPMethod + objc.NSString get HTTPMethod { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPMethod', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPMethod); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// HTTPShouldHandleCookies + bool get HTTPShouldHandleCookies { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPShouldHandleCookies', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldHandleCookies); + } + + /// HTTPShouldUsePipelining + @Deprecated( + 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', + ) + bool get HTTPShouldUsePipelining { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPShouldUsePipelining', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldUsePipelining); + } + + /// addValue:forHTTPHeaderField: + void addValue( + objc.NSString value, { + required objc.NSString forHTTPHeaderField, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + final _$$ref$2 = forHTTPHeaderField.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.addValue:forHTTPHeaderField:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_addValue_forHTTPHeaderField_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// allHTTPHeaderFields + objc.NSDictionary? get allHTTPHeaderFields { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.allHTTPHeaderFields', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_allHTTPHeaderFields, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// setAllHTTPHeaderFields: + set allHTTPHeaderFields(objc.NSDictionary? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setAllHTTPHeaderFields:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAllHTTPHeaderFields_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setHTTPBody: + set HTTPBody(objc.NSData? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPBody:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setHTTPBody_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setHTTPBodyStream: + set HTTPBodyStream(objc.NSInputStream? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPBodyStream:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setHTTPBodyStream_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setHTTPMethod: + set HTTPMethod(objc.NSString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPMethod:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setHTTPMethod_, _$$ref$1.pointer); + } + + /// setHTTPShouldHandleCookies: + set HTTPShouldHandleCookies(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPShouldHandleCookies:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_setHTTPShouldHandleCookies_, + value, + ); + } + + /// setHTTPShouldUsePipelining: + @Deprecated( + 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', + ) + set HTTPShouldUsePipelining(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPShouldUsePipelining:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_setHTTPShouldUsePipelining_, + value, + ); + } + + /// setValue:forHTTPHeaderField: + void setValue( + objc.NSString? value, { + required objc.NSString forHTTPHeaderField, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forHTTPHeaderField.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setValue:forHTTPHeaderField:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forHTTPHeaderField_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } +} + +/// NSMutableOrderedSetCreation +extension NSMutableOrderedSetCreation on objc.NSMutableOrderedSet { + /// orderedSetWithCapacity: + static objc.NSMutableOrderedSet orderedSetWithCapacity( + DartNSUInteger numItems, + ) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithCapacity:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableOrderedSet, + _sel_orderedSetWithCapacity_, + numItems, + ); + return objc.NSMutableOrderedSet.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSMutableOrderedSetDiffing +extension NSMutableOrderedSetDiffing on objc.NSMutableOrderedSet { + /// applyDifference: + void applyDifference(objc.NSOrderedCollectionDifference difference) { + final _$$ref = object$.ref; + final _$$ref$1 = difference.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.applyDifference:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_applyDifference_, + _$$ref$1.pointer, + ); + } +} + +/// NSMutableSetCreation +extension NSMutableSetCreation on objc.NSMutableSet { + /// setWithCapacity: + static objc.NSMutableSet setWithCapacity(DartNSUInteger numItems) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableSet, + _sel_setWithCapacity_, + numItems, + ); + return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); + } +} + +/// NSMutableStringExtensionMethods +extension NSMutableStringExtensionMethods on objc.NSMutableString { + /// appendFormat: + void appendFormat(objc.NSString format) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_appendFormat_, _$$ref$1.pointer); + } + + /// appendString: + void appendString(objc.NSString aString) { + final _$$ref = object$.ref; + final _$$ref$1 = aString.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_appendString_, _$$ref$1.pointer); + } + + /// applyTransform:reverse:range:updatedRange: + bool applyTransform( + DartNSStringTransform transform, { + required bool reverse, + required NSRange range, + required NSRangePointer updatedRange, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = transform.ref; + objc.checkOsVersionInternal( + 'NSMutableString.applyTransform:reverse:range:updatedRange:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + return _objc_msgSend_zy00wz( + _$$ref.pointer, + _sel_applyTransform_reverse_range_updatedRange_, + _$$ref$1.pointer, + reverse, + range, + updatedRange, + ); + } + + /// deleteCharactersInRange: + void deleteCharactersInRange(NSRange range) { + final _$$ref = object$.ref; + _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_deleteCharactersInRange_, range); + } + + /// initWithCapacity: + objc.NSMutableString initWithCapacity(DartNSUInteger capacity) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_14hpxwa( + _$$ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + capacity, + ); + return objc.NSMutableString.fromPointer($ret, retain: false, release: true); + } + + /// insertString:atIndex: + void insertString(objc.NSString aString, {required DartNSUInteger atIndex}) { + final _$$ref = object$.ref; + final _$$ref$1 = aString.ref; + _objc_msgSend_djsa9o( + _$$ref.pointer, + _sel_insertString_atIndex_, + _$$ref$1.pointer, + atIndex, + ); + } + + /// replaceOccurrencesOfString:withString:options:range: + DartNSUInteger replaceOccurrencesOfString( + objc.NSString target, { + required objc.NSString withString, + required DartNSUInteger options, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = target.ref; + final _$$ref$2 = withString.ref; + return _objc_msgSend_1upeo1d( + _$$ref.pointer, + _sel_replaceOccurrencesOfString_withString_options_range_, + _$$ref$1.pointer, + _$$ref$2.pointer, + options, + range, + ); + } + + /// setString: + void setString(objc.NSString aString) { + final _$$ref = object$.ref; + final _$$ref$1 = aString.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setString_, _$$ref$1.pointer); + } + + /// stringWithCapacity: + static objc.NSMutableString stringWithCapacity(DartNSUInteger capacity) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableString, + _sel_stringWithCapacity_, + capacity, + ); + return objc.NSMutableString.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSMutableURLRequest is a stub. To generate bindings for this class, include +/// NSMutableURLRequest in your config's objc-interfaces list. +/// +/// NSMutableURLRequest +extension type NSMutableURLRequest._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLRequest { + /// Constructs a [NSMutableURLRequest] that points to the same underlying object as [other]. + NSMutableURLRequest.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMutableURLRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSMutableURLRequest] that wraps the given raw object pointer. + NSMutableURLRequest.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMutableURLRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +const int NSNEXTSTEPStringEncoding = 2; + +/// WARNING: NSNetService is a stub. To generate bindings for this class, include +/// NSNetService in your config's objc-interfaces list. +/// +/// NSNetService +@Deprecated('Use nw_connection_t or nw_listener_t in Network framework instead') +extension type NSNetService._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSNetService] that points to the same underlying object as [other]. + NSNetService.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSNetService', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSNetService] that wraps the given raw object pointer. + NSNetService.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSNetService', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// WARNING: NSNetServiceBrowser is a stub. To generate bindings for this class, include +/// NSNetServiceBrowser in your config's objc-interfaces list. +/// +/// NSNetServiceBrowser +@Deprecated('Use nw_browser_t in Network framework instead') +extension type NSNetServiceBrowser._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSNetServiceBrowser] that points to the same underlying object as [other]. + NSNetServiceBrowser.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSNetServiceBrowser', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSNetServiceBrowser] that wraps the given raw object pointer. + NSNetServiceBrowser.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSNetServiceBrowser', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// NSNetServiceBrowserDelegate +extension type NSNetServiceBrowserDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSNetServiceBrowserDelegate] that points to the same underlying object as [other]. + NSNetServiceBrowserDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSNetServiceBrowserDelegate] that wraps the given raw object pointer. + NSNetServiceBrowserDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSNetServiceBrowserDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSNetServiceBrowserDelegate, + ); + } +} + +extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { + /// netServiceBrowser:didFindDomain:moreComing: + void netServiceBrowser( + NSNetServiceBrowser browser, { + required objc.NSString didFindDomain, + required bool moreComing, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + final _$$ref$2 = didFindDomain.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowser:didFindDomain:moreComing:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowser_didFindDomain_moreComing_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowser:didFindDomain:moreComing:', + ); + } + _objc_msgSend_1lhy15d( + _$$ref.pointer, + _sel_netServiceBrowser_didFindDomain_moreComing_, + _$$ref$1.pointer, + _$$ref$2.pointer, + moreComing, + ); + } + + /// netServiceBrowser:didFindService:moreComing: + void netServiceBrowser$1( + NSNetServiceBrowser browser, { + required NSNetService didFindService, + required bool moreComing, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + final _$$ref$2 = didFindService.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowser:didFindService:moreComing:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowser_didFindService_moreComing_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowser:didFindService:moreComing:', + ); + } + _objc_msgSend_1lhy15d( + _$$ref.pointer, + _sel_netServiceBrowser_didFindService_moreComing_, + _$$ref$1.pointer, + _$$ref$2.pointer, + moreComing, + ); + } + + /// netServiceBrowser:didNotSearch: + void netServiceBrowser$2( + NSNetServiceBrowser browser, { + required objc.NSDictionary didNotSearch, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + final _$$ref$2 = didNotSearch.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowser:didNotSearch:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowser_didNotSearch_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowser:didNotSearch:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_netServiceBrowser_didNotSearch_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// netServiceBrowser:didRemoveDomain:moreComing: + void netServiceBrowser$3( + NSNetServiceBrowser browser, { + required objc.NSString didRemoveDomain, + required bool moreComing, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + final _$$ref$2 = didRemoveDomain.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowser:didRemoveDomain:moreComing:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowser_didRemoveDomain_moreComing_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowser:didRemoveDomain:moreComing:', + ); + } + _objc_msgSend_1lhy15d( + _$$ref.pointer, + _sel_netServiceBrowser_didRemoveDomain_moreComing_, + _$$ref$1.pointer, + _$$ref$2.pointer, + moreComing, + ); + } + + /// netServiceBrowser:didRemoveService:moreComing: + void netServiceBrowser$4( + NSNetServiceBrowser browser, { + required NSNetService didRemoveService, + required bool moreComing, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + final _$$ref$2 = didRemoveService.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowser:didRemoveService:moreComing:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowser_didRemoveService_moreComing_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowser:didRemoveService:moreComing:', + ); + } + _objc_msgSend_1lhy15d( + _$$ref.pointer, + _sel_netServiceBrowser_didRemoveService_moreComing_, + _$$ref$1.pointer, + _$$ref$2.pointer, + moreComing, + ); + } + + /// netServiceBrowserDidStopSearch: + void netServiceBrowserDidStopSearch(NSNetServiceBrowser browser) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowserDidStopSearch:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowserDidStopSearch_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowserDidStopSearch:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceBrowserDidStopSearch_, + _$$ref$1.pointer, + ); + } + + /// netServiceBrowserWillSearch: + void netServiceBrowserWillSearch(NSNetServiceBrowser browser) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowserWillSearch:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowserWillSearch_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowserWillSearch:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceBrowserWillSearch_, + _$$ref$1.pointer, + ); + } +} + +interface class NSNetServiceBrowserDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSNetServiceBrowserDelegate.cast()); + + /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceBrowserDelegate implement({ + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSNetServiceBrowserDelegate', + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implement(builder, netServiceBrowser_didFindDomain_moreComing_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implement(builder, netServiceBrowser_didFindService_moreComing_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implement(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implement(builder, netServiceBrowser_didRemoveDomain_moreComing_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implement(builder, netServiceBrowser_didRemoveService_moreComing_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implement(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_.implement( + builder, + netServiceBrowserWillSearch_, + ); + builder.addProtocol($protocol); + return NSNetServiceBrowserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implement(builder, netServiceBrowser_didFindDomain_moreComing_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implement(builder, netServiceBrowser_didFindService_moreComing_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implement(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implement(builder, netServiceBrowser_didRemoveDomain_moreComing_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implement(builder, netServiceBrowser_didRemoveService_moreComing_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implement(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_.implement( + builder, + netServiceBrowserWillSearch_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceBrowserDelegate implementAsListener({ + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSNetServiceBrowserDelegate', + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didFindDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didFindService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implementAsListener(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didRemoveDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didRemoveService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implementAsListener(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ + .implementAsListener(builder, netServiceBrowserWillSearch_); + builder.addProtocol($protocol); + return NSNetServiceBrowserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didFindDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didFindService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implementAsListener(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didRemoveDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didRemoveService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implementAsListener(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ + .implementAsListener(builder, netServiceBrowserWillSearch_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceBrowserDelegate implementAsBlocking({ + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSNetServiceBrowserDelegate', + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didFindDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didFindService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implementAsBlocking(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didRemoveDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didRemoveService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implementAsBlocking(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ + .implementAsBlocking(builder, netServiceBrowserWillSearch_); + builder.addProtocol($protocol); + return NSNetServiceBrowserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didFindDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didFindService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implementAsBlocking(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didRemoveDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didRemoveService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implementAsBlocking(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ + .implementAsBlocking(builder, netServiceBrowserWillSearch_); + builder.addProtocol($protocol); + } + + /// netServiceBrowser:didFindDomain:moreComing: + static final netServiceBrowser_didFindDomain_moreComing_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetServiceBrowser, objc.NSString, bool) + >( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didFindDomain_moreComing_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_8acz2h) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didFindDomain_moreComing_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.fromFunction( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.listener( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.blocking( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// netServiceBrowser:didFindService:moreComing: + static final netServiceBrowser_didFindService_moreComing_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetServiceBrowser, NSNetService, bool) + >( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didFindService_moreComing_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_8acz2h) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didFindService_moreComing_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.fromFunction( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.listener( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.blocking( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// netServiceBrowser:didNotSearch: + static final netServiceBrowser_didNotSearch_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetServiceBrowser, objc.NSDictionary) + >( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didNotSearch_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didNotSearch_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.fromFunction( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.listener( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.blocking( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + ); + + /// netServiceBrowser:didRemoveDomain:moreComing: + static final netServiceBrowser_didRemoveDomain_moreComing_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetServiceBrowser, objc.NSString, bool) + >( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didRemoveDomain_moreComing_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_8acz2h) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didRemoveDomain_moreComing_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.fromFunction( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.listener( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.blocking( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// netServiceBrowser:didRemoveService:moreComing: + static final netServiceBrowser_didRemoveService_moreComing_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetServiceBrowser, NSNetService, bool) + >( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didRemoveService_moreComing_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_8acz2h) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didRemoveService_moreComing_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.fromFunction( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.listener( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.blocking( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// netServiceBrowserDidStopSearch: + static final netServiceBrowserDidStopSearch_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowserDidStopSearch_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowserDidStopSearch_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.fromFunction( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.listener( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.blocking( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + ); + + /// netServiceBrowserWillSearch: + static final netServiceBrowserWillSearch_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowserWillSearch_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowserWillSearch_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.fromFunction( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.listener( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.blocking( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + ); +} + +/// NSNetServiceDelegate +extension type NSNetServiceDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSNetServiceDelegate] that points to the same underlying object as [other]. + NSNetServiceDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSNetServiceDelegate] that wraps the given raw object pointer. + NSNetServiceDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSNetServiceDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSNetServiceDelegate, + ); + } +} + +extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { + /// netService:didAcceptConnectionWithInputStream:outputStream: + void netService( + NSNetService sender, { + required objc.NSInputStream didAcceptConnectionWithInputStream, + required objc.NSOutputStream outputStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didAcceptConnectionWithInputStream.ref; + final _$$ref$3 = outputStream.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netService:didAcceptConnectionWithInputStream:outputStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netService_didAcceptConnectionWithInputStream_outputStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netService:didAcceptConnectionWithInputStream:outputStream:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_netService_didAcceptConnectionWithInputStream_outputStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// netService:didNotPublish: + void netService$1( + NSNetService sender, { + required objc.NSDictionary didNotPublish, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didNotPublish.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netService:didNotPublish:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netService_didNotPublish_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netService:didNotPublish:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_netService_didNotPublish_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// netService:didNotResolve: + void netService$2( + NSNetService sender, { + required objc.NSDictionary didNotResolve, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didNotResolve.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netService:didNotResolve:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netService_didNotResolve_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netService:didNotResolve:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_netService_didNotResolve_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// netService:didUpdateTXTRecordData: + void netService$3( + NSNetService sender, { + required objc.NSData didUpdateTXTRecordData, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didUpdateTXTRecordData.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netService:didUpdateTXTRecordData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netService_didUpdateTXTRecordData_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netService:didUpdateTXTRecordData:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_netService_didUpdateTXTRecordData_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// netServiceDidPublish: + void netServiceDidPublish(NSNetService sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netServiceDidPublish:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceDidPublish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netServiceDidPublish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceDidPublish_, + _$$ref$1.pointer, + ); + } + + /// netServiceDidResolveAddress: + void netServiceDidResolveAddress(NSNetService sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netServiceDidResolveAddress:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceDidResolveAddress_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netServiceDidResolveAddress:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceDidResolveAddress_, + _$$ref$1.pointer, + ); + } + + /// netServiceDidStop: + void netServiceDidStop(NSNetService sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netServiceDidStop:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceDidStop_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netServiceDidStop:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceDidStop_, + _$$ref$1.pointer, + ); + } + + /// netServiceWillPublish: + void netServiceWillPublish(NSNetService sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netServiceWillPublish:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceWillPublish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netServiceWillPublish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceWillPublish_, + _$$ref$1.pointer, + ); + } + + /// netServiceWillResolve: + void netServiceWillResolve(NSNetService sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netServiceWillResolve:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceWillResolve_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netServiceWillResolve:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceWillResolve_, + _$$ref$1.pointer, + ); + } +} + +interface class NSNetServiceDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSNetServiceDelegate.cast()); + + /// Builds an object that implements the NSNetServiceDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceDelegate implement({ + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implement( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implement( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implement( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_.implement( + builder, + netService_didUpdateTXTRecordData_, + ); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implement( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_.implement( + builder, + netServiceDidResolveAddress_, + ); + NSNetServiceDelegate$Builder.netServiceDidStop_.implement( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implement( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implement( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + return NSNetServiceDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implement( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implement( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implement( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_.implement( + builder, + netService_didUpdateTXTRecordData_, + ); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implement( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_.implement( + builder, + netServiceDidResolveAddress_, + ); + NSNetServiceDelegate$Builder.netServiceDidStop_.implement( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implement( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implement( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSNetServiceDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceDelegate implementAsListener({ + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implementAsListener( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsListener( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsListener( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ + .implementAsListener(builder, netService_didUpdateTXTRecordData_); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsListener( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ + .implementAsListener(builder, netServiceDidResolveAddress_); + NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsListener( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsListener( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsListener( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + return NSNetServiceDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implementAsListener( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsListener( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsListener( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ + .implementAsListener(builder, netService_didUpdateTXTRecordData_); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsListener( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ + .implementAsListener(builder, netServiceDidResolveAddress_); + NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsListener( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsListener( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsListener( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSNetServiceDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceDelegate implementAsBlocking({ + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implementAsBlocking( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsBlocking( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsBlocking( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ + .implementAsBlocking(builder, netService_didUpdateTXTRecordData_); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsBlocking( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ + .implementAsBlocking(builder, netServiceDidResolveAddress_); + NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsBlocking( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsBlocking( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsBlocking( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + return NSNetServiceDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implementAsBlocking( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsBlocking( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsBlocking( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ + .implementAsBlocking(builder, netService_didUpdateTXTRecordData_); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsBlocking( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ + .implementAsBlocking(builder, netServiceDidResolveAddress_); + NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsBlocking( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsBlocking( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsBlocking( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + } + + /// netService:didAcceptConnectionWithInputStream:outputStream: + static final netService_didAcceptConnectionWithInputStream_outputStream_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) + >( + _protocol_NSNetServiceDelegate, + _sel_netService_didAcceptConnectionWithInputStream_outputStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netService_didAcceptConnectionWithInputStream_outputStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.fromFunction( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.listener( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.blocking( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// netService:didNotPublish: + static final netService_didNotPublish_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetService, objc.NSDictionary) + >( + _protocol_NSNetServiceDelegate, + _sel_netService_didNotPublish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netService_didNotPublish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.fromFunction( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.listener( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.blocking( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + ); + + /// netService:didNotResolve: + static final netService_didNotResolve_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetService, objc.NSDictionary) + >( + _protocol_NSNetServiceDelegate, + _sel_netService_didNotResolve_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netService_didNotResolve_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.fromFunction( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.listener( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.blocking( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + ); + + /// netService:didUpdateTXTRecordData: + static final netService_didUpdateTXTRecordData_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetService, objc.NSData) + >( + _protocol_NSNetServiceDelegate, + _sel_netService_didUpdateTXTRecordData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netService_didUpdateTXTRecordData_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.fromFunction( + (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.listener( + (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.blocking( + (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + ); + + /// netServiceDidPublish: + static final netServiceDidPublish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidPublish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidPublish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + ); + + /// netServiceDidResolveAddress: + static final netServiceDidResolveAddress_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidResolveAddress_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidResolveAddress_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + ); + + /// netServiceDidStop: + static final netServiceDidStop_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidStop_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidStop_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + ); + + /// netServiceWillPublish: + static final netServiceWillPublish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceDelegate, + _sel_netServiceWillPublish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netServiceWillPublish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + ); + + /// netServiceWillResolve: + static final netServiceWillResolve_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceDelegate, + _sel_netServiceWillResolve_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netServiceWillResolve_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + ); +} + +sealed class NSNetServiceOptions { + static const NSNetServiceNoAutoRename = 1; + static const NSNetServiceListenForConnections = 2; +} + +enum NSNetServicesError { + NSNetServicesUnknownError(-72000), + NSNetServicesCollisionError(-72001), + NSNetServicesNotFoundError(-72002), + NSNetServicesActivityInProgress(-72003), + NSNetServicesBadArgumentError(-72004), + NSNetServicesCancelledError(-72005), + NSNetServicesInvalidError(-72006), + NSNetServicesTimeoutError(-72007), + NSNetServicesMissingRequiredConfigurationError(-72008); + + final int value; + const NSNetServicesError(this.value); + + static NSNetServicesError fromValue(int value) => switch (value) { + -72000 => NSNetServicesUnknownError, + -72001 => NSNetServicesCollisionError, + -72002 => NSNetServicesNotFoundError, + -72003 => NSNetServicesActivityInProgress, + -72004 => NSNetServicesBadArgumentError, + -72005 => NSNetServicesCancelledError, + -72006 => NSNetServicesInvalidError, + -72007 => NSNetServicesTimeoutError, + -72008 => NSNetServicesMissingRequiredConfigurationError, + _ => throw ArgumentError('Unknown value for NSNetServicesError: $value'), + }; +} + +const int NSNoScriptError = 0; + +const int NSNoSpecifierError = 0; + +const int NSNoTopLevelContainersSpecifierError = 1; + +const int NSNonLossyASCIIStringEncoding = 7; + +const int NSNotFound = 9223372036854775807; + +sealed class NSNotificationCoalescing { + static const NSNotificationNoCoalescing = 0; + static const NSNotificationCoalescingOnName = 1; + static const NSNotificationCoalescingOnSender = 2; +} + +/// NSNotificationCreation +extension NSNotificationCreation on objc.NSNotification { + /// init + objc.NSNotification init$1() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return objc.NSNotification.fromPointer($ret, retain: false, release: true); + } + + /// notificationWithName:object: + static objc.NSNotification notificationWithName( + DartNSNotificationName aName, { + objc.ObjCObject? object, + }) { + final _$$ref = aName.ref; + final _$$ref$1 = object?.ref; + final $ret = _objc_msgSend_15qeuct( + _class_NSNotification, + _sel_notificationWithName_object_, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + return objc.NSNotification.fromPointer($ret, retain: true, release: true); + } + + /// notificationWithName:object:userInfo: + static objc.NSNotification notificationWithName$1( + DartNSNotificationName aName, { + objc.ObjCObject? object, + objc.NSDictionary? userInfo, + }) { + final _$$ref = aName.ref; + final _$$ref$1 = object?.ref; + final _$$ref$2 = userInfo?.ref; + final $ret = _objc_msgSend_11spmsz( + _class_NSNotification, + _sel_notificationWithName_object_userInfo_, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return objc.NSNotification.fromPointer($ret, retain: true, release: true); + } +} + +const int NSNotificationDeliverImmediately = 1; + +typedef NSNotificationName = ffi.Pointer; +typedef DartNSNotificationName = objc.NSString; + +const int NSNotificationPostToAllSessions = 2; + +enum NSNotificationSuspensionBehavior { + NSNotificationSuspensionBehaviorDrop(1), + NSNotificationSuspensionBehaviorCoalesce(2), + NSNotificationSuspensionBehaviorHold(3), + NSNotificationSuspensionBehaviorDeliverImmediately(4); + + final int value; + const NSNotificationSuspensionBehavior(this.value); + + static NSNotificationSuspensionBehavior fromValue(int value) => + switch (value) { + 1 => NSNotificationSuspensionBehaviorDrop, + 2 => NSNotificationSuspensionBehaviorCoalesce, + 3 => NSNotificationSuspensionBehaviorHold, + 4 => NSNotificationSuspensionBehaviorDeliverImmediately, + _ => throw ArgumentError( + 'Unknown value for NSNotificationSuspensionBehavior: $value', + ), + }; +} + +/// WARNING: NSNumberFormatter is a stub. To generate bindings for this class, include +/// NSNumberFormatter in your config's objc-interfaces list. +/// +/// NSNumberFormatter +extension type NSNumberFormatter._(objc.ObjCObject object$) + implements objc.ObjCObject, NSFormatter { + /// Constructs a [NSNumberFormatter] that points to the same underlying object as [other]. + NSNumberFormatter.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSNumberFormatter] that wraps the given raw object pointer. + NSNumberFormatter.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +enum NSNumberFormatterBehavior { + NSNumberFormatterBehaviorDefault(0), + NSNumberFormatterBehavior10_0(1000), + NSNumberFormatterBehavior10_4(1040); + + final int value; + const NSNumberFormatterBehavior(this.value); + + static NSNumberFormatterBehavior fromValue(int value) => switch (value) { + 0 => NSNumberFormatterBehaviorDefault, + 1000 => NSNumberFormatterBehavior10_0, + 1040 => NSNumberFormatterBehavior10_4, + _ => throw ArgumentError( + 'Unknown value for NSNumberFormatterBehavior: $value', + ), + }; +} + +/// NSNumberFormatterCompatibility +extension NSNumberFormatterCompatibility on NSNumberFormatter { + /// attributedStringForNil + objc.NSAttributedString get attributedStringForNil { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_attributedStringForNil, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// attributedStringForNotANumber + objc.NSAttributedString get attributedStringForNotANumber { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_attributedStringForNotANumber, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// attributedStringForZero + objc.NSAttributedString get attributedStringForZero { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_attributedStringForZero, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// format + objc.NSString get format { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// hasThousandSeparators + bool get hasThousandSeparators { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasThousandSeparators); + } + + /// localizesFormat + bool get localizesFormat { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_localizesFormat); + } + + /// roundingBehavior + NSDecimalNumberHandler get roundingBehavior { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_roundingBehavior); + return NSDecimalNumberHandler.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// setAttributedStringForNil: + set attributedStringForNil(objc.NSAttributedString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAttributedStringForNil_, + _$$ref$1.pointer, + ); + } + + /// setAttributedStringForNotANumber: + set attributedStringForNotANumber(objc.NSAttributedString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAttributedStringForNotANumber_, + _$$ref$1.pointer, + ); + } + + /// setAttributedStringForZero: + set attributedStringForZero(objc.NSAttributedString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAttributedStringForZero_, + _$$ref$1.pointer, + ); + } + + /// setFormat: + set format(objc.NSString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setFormat_, _$$ref$1.pointer); + } + + /// setHasThousandSeparators: + set hasThousandSeparators(bool value) { + final _$$ref = object$.ref; + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_setHasThousandSeparators_, + value, + ); + } + + /// setLocalizesFormat: + set localizesFormat(bool value) { + final _$$ref = object$.ref; + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setLocalizesFormat_, value); + } + + /// setRoundingBehavior: + set roundingBehavior(NSDecimalNumberHandler value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setRoundingBehavior_, + _$$ref$1.pointer, + ); + } + + /// setThousandSeparator: + set thousandSeparator(objc.NSString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setThousandSeparator_, + _$$ref$1.pointer, + ); + } + + /// thousandSeparator + objc.NSString get thousandSeparator { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_thousandSeparator); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +enum NSNumberFormatterPadPosition { + NSNumberFormatterPadBeforePrefix(0), + NSNumberFormatterPadAfterPrefix(1), + NSNumberFormatterPadBeforeSuffix(2), + NSNumberFormatterPadAfterSuffix(3); + + final int value; + const NSNumberFormatterPadPosition(this.value); + + static NSNumberFormatterPadPosition fromValue(int value) => switch (value) { + 0 => NSNumberFormatterPadBeforePrefix, + 1 => NSNumberFormatterPadAfterPrefix, + 2 => NSNumberFormatterPadBeforeSuffix, + 3 => NSNumberFormatterPadAfterSuffix, + _ => throw ArgumentError( + 'Unknown value for NSNumberFormatterPadPosition: $value', + ), + }; +} + +enum NSNumberFormatterRoundingMode { + NSNumberFormatterRoundCeiling(0), + NSNumberFormatterRoundFloor(1), + NSNumberFormatterRoundDown(2), + NSNumberFormatterRoundUp(3), + NSNumberFormatterRoundHalfEven(4), + NSNumberFormatterRoundHalfDown(5), + NSNumberFormatterRoundHalfUp(6); + + final int value; + const NSNumberFormatterRoundingMode(this.value); + + static NSNumberFormatterRoundingMode fromValue(int value) => switch (value) { + 0 => NSNumberFormatterRoundCeiling, + 1 => NSNumberFormatterRoundFloor, + 2 => NSNumberFormatterRoundDown, + 3 => NSNumberFormatterRoundUp, + 4 => NSNumberFormatterRoundHalfEven, + 5 => NSNumberFormatterRoundHalfDown, + 6 => NSNumberFormatterRoundHalfUp, + _ => throw ArgumentError( + 'Unknown value for NSNumberFormatterRoundingMode: $value', + ), + }; +} + +enum NSNumberFormatterStyle { + NSNumberFormatterNoStyle(0), + NSNumberFormatterDecimalStyle(1), + NSNumberFormatterCurrencyStyle(2), + NSNumberFormatterPercentStyle(3), + NSNumberFormatterScientificStyle(4), + NSNumberFormatterSpellOutStyle(5), + NSNumberFormatterOrdinalStyle(6), + NSNumberFormatterCurrencyISOCodeStyle(8), + NSNumberFormatterCurrencyPluralStyle(9), + NSNumberFormatterCurrencyAccountingStyle(10); + + final int value; + const NSNumberFormatterStyle(this.value); + + static NSNumberFormatterStyle fromValue(int value) => switch (value) { + 0 => NSNumberFormatterNoStyle, + 1 => NSNumberFormatterDecimalStyle, + 2 => NSNumberFormatterCurrencyStyle, + 3 => NSNumberFormatterPercentStyle, + 4 => NSNumberFormatterScientificStyle, + 5 => NSNumberFormatterSpellOutStyle, + 6 => NSNumberFormatterOrdinalStyle, + 8 => NSNumberFormatterCurrencyISOCodeStyle, + 9 => NSNumberFormatterCurrencyPluralStyle, + 10 => NSNumberFormatterCurrencyAccountingStyle, + _ => throw ArgumentError( + 'Unknown value for NSNumberFormatterStyle: $value', + ), + }; +} + +@Deprecated('Not supported') +const int NSOSF1OperatingSystem = 7; + +const int NSOpenStepUnicodeReservedBase = 62464; + +final class NSOperatingSystemVersion extends ffi.Struct { + @NSInteger() + external int majorVersion; + + @NSInteger() + external int minorVersion; + + @NSInteger() + external int patchVersion; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int majorVersion, + required int minorVersion, + required int patchVersion, + }) => $allocator() + ..ref.majorVersion = majorVersion + ..ref.minorVersion = minorVersion + ..ref.patchVersion = patchVersion; +} + +const int NSOperationNotSupportedForKeyScriptError = 9; + +const int NSOperationNotSupportedForKeySpecifierError = 6; + +/// WARNING: NSOperationQueue is a stub. To generate bindings for this class, include +/// NSOperationQueue in your config's objc-interfaces list. +/// +/// NSOperationQueue +extension type NSOperationQueue._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, NSProgressReporting { + /// Constructs a [NSOperationQueue] that points to the same underlying object as [other]. + NSOperationQueue.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSOperationQueue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } + + /// Constructs a [NSOperationQueue] that wraps the given raw object pointer. + NSOperationQueue.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOperationQueue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } +} + +const int NSOperationQueueDefaultMaxConcurrentOperationCount = -1; + +enum NSOperationQueuePriority { + NSOperationQueuePriorityVeryLow(-8), + NSOperationQueuePriorityLow(-4), + NSOperationQueuePriorityNormal(0), + NSOperationQueuePriorityHigh(4), + NSOperationQueuePriorityVeryHigh(8); + + final int value; + const NSOperationQueuePriority(this.value); + + static NSOperationQueuePriority fromValue(int value) => switch (value) { + -8 => NSOperationQueuePriorityVeryLow, + -4 => NSOperationQueuePriorityLow, + 0 => NSOperationQueuePriorityNormal, + 4 => NSOperationQueuePriorityHigh, + 8 => NSOperationQueuePriorityVeryHigh, + _ => throw ArgumentError( + 'Unknown value for NSOperationQueuePriority: $value', + ), + }; +} + +/// NSOrderedPerform +extension NSOrderedPerform on objc.NSRunLoop { + /// cancelPerformSelector:target:argument: + void cancelPerformSelector( + ffi.Pointer aSelector, { + required objc.ObjCObject target, + objc.ObjCObject? argument, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = target.ref; + final _$$ref$2 = argument?.ref; + _objc_msgSend_lzbvjm( + _$$ref.pointer, + _sel_cancelPerformSelector_target_argument_, + aSelector, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// cancelPerformSelectorsWithTarget: + void cancelPerformSelectorsWithTarget(objc.ObjCObject target) { + final _$$ref = object$.ref; + final _$$ref$1 = target.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_cancelPerformSelectorsWithTarget_, + _$$ref$1.pointer, + ); + } + + /// performSelector:target:argument:order:modes: + void performSelector$3( + ffi.Pointer aSelector, { + required objc.ObjCObject target, + objc.ObjCObject? argument, + required DartNSUInteger order, + required objc.NSArray modes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = target.ref; + final _$$ref$2 = argument?.ref; + final _$$ref$3 = modes.ref; + _objc_msgSend_11hj8md( + _$$ref.pointer, + _sel_performSelector_target_argument_order_modes_, + aSelector, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + order, + _$$ref$3.pointer, + ); + } +} + +/// NSOrderedSetCreation +extension NSOrderedSetCreation on objc.NSOrderedSet { + /// initWithArray: + objc.NSOrderedSet initWithArray(objc.NSArray array) { + final _$$ref = object$.ref; + final _$$ref$1 = array.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + objc.NSOrderedSet initWithArray$1( + objc.NSArray set, { + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithArray:range:copyItems: + objc.NSOrderedSet initWithArray$2( + objc.NSArray set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_range_copyItems_, + _$$ref$1.pointer, + range, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithObject: + objc.NSOrderedSet initWithObject(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObject_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithObjects: + objc.NSOrderedSet initWithObjects$1(objc.ObjCObject firstObj) { + final _$$ref = object$.ref; + final _$$ref$1 = firstObj.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjects_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithOrderedSet: + objc.NSOrderedSet initWithOrderedSet(objc.NSOrderedSet set) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithOrderedSet:copyItems: + objc.NSOrderedSet initWithOrderedSet$1( + objc.NSOrderedSet set, { + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithOrderedSet:range:copyItems: + objc.NSOrderedSet initWithOrderedSet$2( + objc.NSOrderedSet set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_range_copyItems_, + _$$ref$1.pointer, + range, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet: + objc.NSOrderedSet initWithSet(objc.NSSet set) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + objc.NSOrderedSet initWithSet$1(objc.NSSet set, {required bool copyItems}) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// orderedSet + static objc.NSOrderedSet orderedSet() { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithArray: + static objc.NSOrderedSet orderedSetWithArray(objc.NSArray array) { + final _$$ref = array.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithArray_, + _$$ref.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithArray:range:copyItems: + static objc.NSOrderedSet orderedSetWithArray$1( + objc.NSArray array, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = array.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _class_NSOrderedSet, + _sel_orderedSetWithArray_range_copyItems_, + _$$ref.pointer, + range, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObject: + static objc.NSOrderedSet orderedSetWithObject(objc.ObjCObject object) { + final _$$ref = object.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithObject_, + _$$ref.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObjects: + static objc.NSOrderedSet orderedSetWithObjects(objc.ObjCObject firstObj) { + final _$$ref = firstObj.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithObjects_, + _$$ref.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObjects:count: + static objc.NSOrderedSet orderedSetWithObjects$1( + ffi.Pointer> objects, { + required DartNSUInteger count, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_zmbtbd( + _class_NSOrderedSet, + _sel_orderedSetWithObjects_count_, + objects, + count, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet: + static objc.NSOrderedSet orderedSetWithOrderedSet(objc.NSOrderedSet set) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_, + _$$ref.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet:range:copyItems: + static objc.NSOrderedSet orderedSetWithOrderedSet$1( + objc.NSOrderedSet set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_range_copyItems_, + _$$ref.pointer, + range, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithSet: + static objc.NSOrderedSet orderedSetWithSet(objc.NSSet set) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithSet_, + _$$ref.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithSet:copyItems: + static objc.NSOrderedSet orderedSetWithSet$1( + objc.NSSet set, { + required bool copyItems, + }) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _class_NSOrderedSet, + _sel_orderedSetWithSet_copyItems_, + _$$ref.pointer, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } +} + +/// NSOrderedSetDiffing +extension NSOrderedSetDiffing on objc.NSOrderedSet { + /// differenceFromOrderedSet: + objc.NSOrderedCollectionDifference differenceFromOrderedSet( + objc.NSOrderedSet other, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.differenceFromOrderedSet:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_differenceFromOrderedSet_, + _$$ref$1.pointer, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// differenceFromOrderedSet:withOptions: + objc.NSOrderedCollectionDifference differenceFromOrderedSet$1( + objc.NSOrderedSet other, { + required DartNSUInteger withOptions, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.differenceFromOrderedSet:withOptions:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1wtpmu7( + _$$ref.pointer, + _sel_differenceFromOrderedSet_withOptions_, + _$$ref$1.pointer, + withOptions, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// differenceFromOrderedSet:withOptions:usingEquivalenceTest: + objc.NSOrderedCollectionDifference differenceFromOrderedSet$2( + objc.NSOrderedSet other, { + required DartNSUInteger withOptions, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingEquivalenceTest, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + final _$$ref$2 = usingEquivalenceTest.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.differenceFromOrderedSet:withOptions:usingEquivalenceTest:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1415lvo( + _$$ref.pointer, + _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_, + _$$ref$1.pointer, + withOptions, + _$$ref$2.pointer, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// orderedSetByApplyingDifference: + objc.NSOrderedSet? orderedSetByApplyingDifference( + objc.NSOrderedCollectionDifference difference, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = difference.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetByApplyingDifference:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_orderedSetByApplyingDifference_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSOrthography is a stub. To generate bindings for this class, include +/// NSOrthography in your config's objc-interfaces list. +/// +/// NSOrthography +extension type NSOrthography._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSOrthography] that points to the same underlying object as [other]. + NSOrthography.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSOrthography', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } + + /// Constructs a [NSOrthography] that wraps the given raw object pointer. + NSOrthography.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOrthography', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } +} + +/// NSOrthographyCreation +extension NSOrthographyCreation on NSOrthography {} + +/// NSOrthographyExtended +extension NSOrthographyExtended on NSOrthography { + /// allLanguages + objc.NSArray get allLanguages { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSOrthography.allLanguages', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allLanguages); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// allScripts + objc.NSArray get allScripts { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSOrthography.allScripts', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allScripts); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// dominantLanguage + objc.NSString get dominantLanguage { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSOrthography.dominantLanguage', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_dominantLanguage); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// dominantLanguageForScript: + objc.NSString? dominantLanguageForScript(objc.NSString script) { + final _$$ref = object$.ref; + final _$$ref$1 = script.ref; + objc.checkOsVersionInternal( + 'NSOrthography.dominantLanguageForScript:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_dominantLanguageForScript_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// languagesForScript: + objc.NSArray? languagesForScript(objc.NSString script) { + final _$$ref = object$.ref; + final _$$ref$1 = script.ref; + objc.checkOsVersionInternal( + 'NSOrthography.languagesForScript:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_languagesForScript_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSOutputStreamExtensions +extension NSOutputStreamExtensions on objc.NSOutputStream { + /// initToFileAtPath:append: + objc.NSOutputStream? initToFileAtPath( + objc.NSString path, { + required bool append, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initToFileAtPath_append_, + _$$ref$1.pointer, + append, + ); + return $ret.address == 0 + ? null + : objc.NSOutputStream.fromPointer($ret, retain: false, release: true); + } + + /// outputStreamToBuffer:capacity: + static objc.NSOutputStream outputStreamToBuffer( + ffi.Pointer buffer, { + required DartNSUInteger capacity, + }) { + final $ret = _objc_msgSend_158ju31( + _class_NSOutputStream, + _sel_outputStreamToBuffer_capacity_, + buffer, + capacity, + ); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } + + /// outputStreamToFileAtPath:append: + static objc.NSOutputStream outputStreamToFileAtPath( + objc.NSString path, { + required bool append, + }) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamToFileAtPath_append_, + _$$ref.pointer, + append, + ); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } + + /// outputStreamToMemory + static objc.NSOutputStream outputStreamToMemory() { + final $ret = _objc_msgSend_151sglz( + _class_NSOutputStream, + _sel_outputStreamToMemory, + ); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } + + /// outputStreamWithURL:append: + static objc.NSOutputStream? outputStreamWithURL( + objc.NSURL url, { + required bool append, + }) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSOutputStream.outputStreamWithURL:append:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamWithURL_append_, + _$$ref.pointer, + append, + ); + return $ret.address == 0 + ? null + : objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } +} + +sealed class NSPersonNameComponentsFormatterOptions { + static const NSPersonNameComponentsFormatterPhonetic = 2; +} + +enum NSPersonNameComponentsFormatterStyle { + NSPersonNameComponentsFormatterStyleDefault(0), + NSPersonNameComponentsFormatterStyleShort(1), + NSPersonNameComponentsFormatterStyleMedium(2), + NSPersonNameComponentsFormatterStyleLong(3), + NSPersonNameComponentsFormatterStyleAbbreviated(4); + + final int value; + const NSPersonNameComponentsFormatterStyle(this.value); + + static NSPersonNameComponentsFormatterStyle fromValue(int value) => + switch (value) { + 0 => NSPersonNameComponentsFormatterStyleDefault, + 1 => NSPersonNameComponentsFormatterStyleShort, + 2 => NSPersonNameComponentsFormatterStyleMedium, + 3 => NSPersonNameComponentsFormatterStyleLong, + 4 => NSPersonNameComponentsFormatterStyleAbbreviated, + _ => throw ArgumentError( + 'Unknown value for NSPersonNameComponentsFormatterStyle: $value', + ), + }; +} + +typedef NSPoint = objc.CGPoint; +typedef NSPointArray = ffi.Pointer; +typedef NSPointPointer = ffi.Pointer; + +/// WARNING: NSPointerArray is a stub. To generate bindings for this class, include +/// NSPointerArray in your config's objc-interfaces list. +/// +/// NSPointerArray +extension type NSPointerArray._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSFastEnumeration, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSPointerArray] that points to the same underlying object as [other]. + NSPointerArray.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSPointerArray', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } + + /// Constructs a [NSPointerArray] that wraps the given raw object pointer. + NSPointerArray.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSPointerArray', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } +} + +/// NSPointerArrayConveniences +extension NSPointerArrayConveniences on NSPointerArray { + /// allObjects + objc.NSArray get allObjects { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSPointerArray.allObjects', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allObjects); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// pointerArrayWithStrongObjects + @Deprecated('GC no longer supported') + static objc.ObjCObject pointerArrayWithStrongObjects() { + objc.checkOsVersionInternal( + 'NSPointerArray.pointerArrayWithStrongObjects', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSPointerArray, + _sel_pointerArrayWithStrongObjects, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// pointerArrayWithWeakObjects + @Deprecated('GC no longer supported') + static objc.ObjCObject pointerArrayWithWeakObjects() { + objc.checkOsVersionInternal( + 'NSPointerArray.pointerArrayWithWeakObjects', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSPointerArray, + _sel_pointerArrayWithWeakObjects, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// strongObjectsPointerArray + static NSPointerArray strongObjectsPointerArray() { + objc.checkOsVersionInternal( + 'NSPointerArray.strongObjectsPointerArray', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSPointerArray, + _sel_strongObjectsPointerArray, + ); + return NSPointerArray.fromPointer($ret, retain: true, release: true); + } + + /// weakObjectsPointerArray + static NSPointerArray weakObjectsPointerArray() { + objc.checkOsVersionInternal( + 'NSPointerArray.weakObjectsPointerArray', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSPointerArray, + _sel_weakObjectsPointerArray, + ); + return NSPointerArray.fromPointer($ret, retain: true, release: true); + } +} + +sealed class NSPointerFunctionsOptions { + static const NSPointerFunctionsStrongMemory = 0; + static const NSPointerFunctionsZeroingWeakMemory = 1; + static const NSPointerFunctionsOpaqueMemory = 2; + static const NSPointerFunctionsMallocMemory = 3; + static const NSPointerFunctionsMachVirtualMemory = 4; + static const NSPointerFunctionsWeakMemory = 5; + static const NSPointerFunctionsObjectPersonality = 0; + static const NSPointerFunctionsOpaquePersonality = 256; + static const NSPointerFunctionsObjectPointerPersonality = 512; + static const NSPointerFunctionsCStringPersonality = 768; + static const NSPointerFunctionsStructPersonality = 1024; + static const NSPointerFunctionsIntegerPersonality = 1280; + static const NSPointerFunctionsCopyIn = 65536; +} + +/// WARNING: NSPortCoder is a stub. To generate bindings for this class, include +/// NSPortCoder in your config's objc-interfaces list. +/// +/// NSPortCoder +@Deprecated('Use NSXPCConnection instead') +extension type NSPortCoder._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSCoder { + /// Constructs a [NSPortCoder] that points to the same underlying object as [other]. + NSPortCoder.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSPortCoder', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSPortCoder] that wraps the given raw object pointer. + NSPortCoder.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSPortCoder', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +enum NSPostingStyle { + NSPostWhenIdle(1), + NSPostASAP(2), + NSPostNow(3); + + final int value; + const NSPostingStyle(this.value); + + static NSPostingStyle fromValue(int value) => switch (value) { + 1 => NSPostWhenIdle, + 2 => NSPostASAP, + 3 => NSPostNow, + _ => throw ArgumentError('Unknown value for NSPostingStyle: $value'), + }; +} + +/// WARNING: NSPredicate is a stub. To generate bindings for this class, include +/// NSPredicate in your config's objc-interfaces list. +/// +/// NSPredicate +extension type NSPredicate._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSPredicate] that points to the same underlying object as [other]. + NSPredicate.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSPredicate', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } + + /// Constructs a [NSPredicate] that wraps the given raw object pointer. + NSPredicate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSPredicate', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } +} + +enum NSPredicateOperatorType { + NSLessThanPredicateOperatorType(0), + NSLessThanOrEqualToPredicateOperatorType(1), + NSGreaterThanPredicateOperatorType(2), + NSGreaterThanOrEqualToPredicateOperatorType(3), + NSEqualToPredicateOperatorType(4), + NSNotEqualToPredicateOperatorType(5), + NSMatchesPredicateOperatorType(6), + NSLikePredicateOperatorType(7), + NSBeginsWithPredicateOperatorType(8), + NSEndsWithPredicateOperatorType(9), + NSInPredicateOperatorType(10), + NSCustomSelectorPredicateOperatorType(11), + NSContainsPredicateOperatorType(99), + NSBetweenPredicateOperatorType(100); + + final int value; + const NSPredicateOperatorType(this.value); + + static NSPredicateOperatorType fromValue(int value) => switch (value) { + 0 => NSLessThanPredicateOperatorType, + 1 => NSLessThanOrEqualToPredicateOperatorType, + 2 => NSGreaterThanPredicateOperatorType, + 3 => NSGreaterThanOrEqualToPredicateOperatorType, + 4 => NSEqualToPredicateOperatorType, + 5 => NSNotEqualToPredicateOperatorType, + 6 => NSMatchesPredicateOperatorType, + 7 => NSLikePredicateOperatorType, + 8 => NSBeginsWithPredicateOperatorType, + 9 => NSEndsWithPredicateOperatorType, + 10 => NSInPredicateOperatorType, + 11 => NSCustomSelectorPredicateOperatorType, + 99 => NSContainsPredicateOperatorType, + 100 => NSBetweenPredicateOperatorType, + _ => throw ArgumentError( + 'Unknown value for NSPredicateOperatorType: $value', + ), + }; +} + +/// NSPredicateSupport +extension NSPredicateSupport on objc.NSArray { + /// filteredArrayUsingPredicate: + objc.NSArray filteredArrayUsingPredicate(NSPredicate predicate) { + final _$$ref = object$.ref; + final _$$ref$1 = predicate.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_filteredArrayUsingPredicate_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSPredicateSupport +extension NSPredicateSupport$1 on objc.NSSet { + /// filteredSetUsingPredicate: + objc.NSSet filteredSetUsingPredicate(NSPredicate predicate) { + final _$$ref = object$.ref; + final _$$ref$1 = predicate.ref; + objc.checkOsVersionInternal( + 'NSSet.filteredSetUsingPredicate:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_filteredSetUsingPredicate_, + _$$ref$1.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } +} + +/// NSPredicateSupport +extension NSPredicateSupport$2 on objc.NSMutableArray { + /// filterUsingPredicate: + void filterUsingPredicate(NSPredicate predicate) { + final _$$ref = object$.ref; + final _$$ref$1 = predicate.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_filterUsingPredicate_, + _$$ref$1.pointer, + ); + } +} + +/// NSPredicateSupport +extension NSPredicateSupport$3 on objc.NSMutableOrderedSet { + /// filterUsingPredicate: + void filterUsingPredicate(NSPredicate p) { + final _$$ref = object$.ref; + final _$$ref$1 = p.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.filterUsingPredicate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_filterUsingPredicate_, + _$$ref$1.pointer, + ); + } +} + +/// NSPredicateSupport +extension NSPredicateSupport$4 on objc.NSOrderedSet { + /// filteredOrderedSetUsingPredicate: + objc.NSOrderedSet filteredOrderedSetUsingPredicate(NSPredicate p) { + final _$$ref = object$.ref; + final _$$ref$1 = p.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.filteredOrderedSetUsingPredicate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_filteredOrderedSetUsingPredicate_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } +} + +/// NSPredicateSupport +extension NSPredicateSupport$5 on objc.NSMutableSet { + /// filterUsingPredicate: + void filterUsingPredicate(NSPredicate predicate) { + final _$$ref = object$.ref; + final _$$ref$1 = predicate.ref; + objc.checkOsVersionInternal( + 'NSMutableSet.filterUsingPredicate:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_filterUsingPredicate_, + _$$ref$1.pointer, + ); + } +} + +enum NSPresentationIntentKind { + NSPresentationIntentKindParagraph(0), + NSPresentationIntentKindHeader(1), + NSPresentationIntentKindOrderedList(2), + NSPresentationIntentKindUnorderedList(3), + NSPresentationIntentKindListItem(4), + NSPresentationIntentKindCodeBlock(5), + NSPresentationIntentKindBlockQuote(6), + NSPresentationIntentKindThematicBreak(7), + NSPresentationIntentKindTable(8), + NSPresentationIntentKindTableHeaderRow(9), + NSPresentationIntentKindTableRow(10), + NSPresentationIntentKindTableCell(11); + + final int value; + const NSPresentationIntentKind(this.value); + + static NSPresentationIntentKind fromValue(int value) => switch (value) { + 0 => NSPresentationIntentKindParagraph, + 1 => NSPresentationIntentKindHeader, + 2 => NSPresentationIntentKindOrderedList, + 3 => NSPresentationIntentKindUnorderedList, + 4 => NSPresentationIntentKindListItem, + 5 => NSPresentationIntentKindCodeBlock, + 6 => NSPresentationIntentKindBlockQuote, + 7 => NSPresentationIntentKindThematicBreak, + 8 => NSPresentationIntentKindTable, + 9 => NSPresentationIntentKindTableHeaderRow, + 10 => NSPresentationIntentKindTableRow, + 11 => NSPresentationIntentKindTableCell, + _ => throw ArgumentError( + 'Unknown value for NSPresentationIntentKind: $value', + ), + }; +} + +enum NSPresentationIntentTableColumnAlignment { + NSPresentationIntentTableColumnAlignmentLeft(0), + NSPresentationIntentTableColumnAlignmentCenter(1), + NSPresentationIntentTableColumnAlignmentRight(2); + + final int value; + const NSPresentationIntentTableColumnAlignment(this.value); + + static NSPresentationIntentTableColumnAlignment fromValue(int value) => + switch (value) { + 0 => NSPresentationIntentTableColumnAlignmentLeft, + 1 => NSPresentationIntentTableColumnAlignmentCenter, + 2 => NSPresentationIntentTableColumnAlignmentRight, + _ => throw ArgumentError( + 'Unknown value for NSPresentationIntentTableColumnAlignment: $value', + ), + }; +} + +/// NSPreviewSupport +extension NSPreviewSupport on objc.NSItemProvider { + /// loadPreviewImageWithOptions:completionHandler: + void loadPreviewImageWithOptions( + objc.NSDictionary options, { + required DartNSItemProviderCompletionHandler completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = options.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSItemProvider.loadPreviewImageWithOptions:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_loadPreviewImageWithOptions_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// previewImageHandler + DartNSItemProviderLoadHandler? get previewImageHandler { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSItemProvider.previewImageHandler', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_previewImageHandler); + return $ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// setPreviewImageHandler: + set previewImageHandler(DartNSItemProviderLoadHandler? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSItemProvider.setPreviewImageHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_setPreviewImageHandler_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// WARNING: NSProcessInfo is a stub. To generate bindings for this class, include +/// NSProcessInfo in your config's objc-interfaces list. +/// +/// NSProcessInfo +extension type NSProcessInfo._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSProcessInfo] that points to the same underlying object as [other]. + NSProcessInfo.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSProcessInfo] that wraps the given raw object pointer. + NSProcessInfo.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSProcessInfoActivity +extension NSProcessInfoActivity on NSProcessInfo { + /// beginActivityWithOptions:reason: + objc.NSObjectProtocol beginActivityWithOptions( + int options, { + required objc.NSString reason, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = reason.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.beginActivityWithOptions:reason:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_u2drt1( + _$$ref.pointer, + _sel_beginActivityWithOptions_reason_, + options, + _$$ref$1.pointer, + ); + return objc.NSObjectProtocol.fromPointer($ret, retain: true, release: true); + } + + /// endActivity: + void endActivity(objc.NSObjectProtocol activity) { + final _$$ref = object$.ref; + final _$$ref$1 = activity.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.endActivity:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_endActivity_, _$$ref$1.pointer); + } + + /// performActivityWithOptions:reason:usingBlock: + void performActivityWithOptions( + int options, { + required objc.NSString reason, + required objc.ObjCBlock usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = reason.ref; + final _$$ref$2 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.performActivityWithOptions:reason:usingBlock:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1jz97e( + _$$ref.pointer, + _sel_performActivityWithOptions_reason_usingBlock_, + options, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// performExpiringActivityWithReason:usingBlock: + void performExpiringActivityWithReason( + objc.NSString reason, { + required objc.ObjCBlock usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = reason.ref; + final _$$ref$2 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.performExpiringActivityWithReason:usingBlock:', + iOS: (false, (8, 2, 0)), + macOS: (true, null), + ); + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_performExpiringActivityWithReason_usingBlock_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSProcessInfoPlatform +extension NSProcessInfoPlatform on NSProcessInfo { + /// isMacCatalystApp + bool get isMacCatalystApp { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.isMacCatalystApp', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMacCatalystApp); + } + + /// isiOSAppOnMac + bool get isiOSAppOnMac { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.isiOSAppOnMac', + iOS: (false, (14, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isiOSAppOnMac); + } +} + +/// NSProcessInfoPowerState +extension NSProcessInfoPowerState on NSProcessInfo { + /// isLowPowerModeEnabled + bool get isLowPowerModeEnabled { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.isLowPowerModeEnabled', + iOS: (false, (9, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isLowPowerModeEnabled); + } +} + +enum NSProcessInfoThermalState { + NSProcessInfoThermalStateNominal(0), + NSProcessInfoThermalStateFair(1), + NSProcessInfoThermalStateSerious(2), + NSProcessInfoThermalStateCritical(3); + + final int value; + const NSProcessInfoThermalState(this.value); + + static NSProcessInfoThermalState fromValue(int value) => switch (value) { + 0 => NSProcessInfoThermalStateNominal, + 1 => NSProcessInfoThermalStateFair, + 2 => NSProcessInfoThermalStateSerious, + 3 => NSProcessInfoThermalStateCritical, + _ => throw ArgumentError( + 'Unknown value for NSProcessInfoThermalState: $value', + ), + }; +} + +/// NSProcessInfoThermalState +extension NSProcessInfoThermalState$1 on NSProcessInfo { + /// thermalState + NSProcessInfoThermalState get thermalState { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.thermalState', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 10, 3)), + ); + final $ret = _objc_msgSend_1fnsr6j(_$$ref.pointer, _sel_thermalState); + return NSProcessInfoThermalState.fromValue($ret); + } +} + +typedef NSProgressFileOperationKind = ffi.Pointer; +typedef DartNSProgressFileOperationKind = objc.NSString; +typedef NSProgressKind = ffi.Pointer; +typedef DartNSProgressKind = objc.NSString; +typedef NSProgressPublishingHandler = ffi.Pointer; +typedef DartNSProgressPublishingHandler = + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >; + +/// NSProgressReporting +extension type NSProgressReporting._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSProgressReporting] that points to the same underlying object as [other]. + NSProgressReporting.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSProgressReporting] that wraps the given raw object pointer. + NSProgressReporting.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSProgressReporting]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSProgressReporting, + ); + } +} + +extension NSProgressReporting$Methods on NSProgressReporting { + /// progress + objc.NSProgress get progress { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_progress); + return objc.NSProgress.fromPointer($ret, retain: true, release: true); + } +} + +interface class NSProgressReporting$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSProgressReporting.cast()); + + /// Builds an object that implements the NSProgressReporting protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSProgressReporting implement({ + required objc.NSProgress Function() progress, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSProgressReporting'); + NSProgressReporting$Builder.progress.implement(builder, progress); + builder.addProtocol($protocol); + return NSProgressReporting.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSProgressReporting protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.NSProgress Function() progress, + bool $keepIsolateAlive = true, + }) { + NSProgressReporting$Builder.progress.implement(builder, progress); + builder.addProtocol($protocol); + } + + /// progress + static final progress = objc.ObjCProtocolMethod( + _protocol_NSProgressReporting, + _sel_progress, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSProgressReporting, + _sel_progress, + isRequired: true, + isInstanceMethod: true, + ), + (objc.NSProgress Function() func) => + ObjCBlock_NSProgress_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); +} + +typedef NSProgressUnpublishingHandler = ffi.Pointer; +typedef DartNSProgressUnpublishingHandler = objc.ObjCBlock; +typedef NSProgressUserInfoKey = ffi.Pointer; +typedef DartNSProgressUserInfoKey = objc.NSString; + +/// NSPromisedItems +extension NSPromisedItems on objc.NSURL { + /// checkPromisedItemIsReachableAndReturnError: + bool checkPromisedItemIsReachableAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.checkPromisedItemIsReachableAndReturnError:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_checkPromisedItemIsReachableAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// getPromisedItemResourceValue:forKey:error: + bool getPromisedItemResourceValue( + ffi.Pointer> value, { + required DartNSURLResourceKey forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + objc.checkOsVersionInternal( + 'NSURL.getPromisedItemResourceValue:forKey:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1j9bhml( + _$$ref.pointer, + _sel_getPromisedItemResourceValue_forKey_error_, + value, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// promisedItemResourceValuesForKeys:error: + objc.NSDictionary? promisedItemResourceValuesForKeys(objc.NSArray keys) { + final _$$ref = object$.ref; + final _$$ref$1 = keys.ref; + objc.checkOsVersionInternal( + 'NSURL.promisedItemResourceValuesForKeys:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.pointer, + _sel_promisedItemResourceValuesForKeys_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +const int NSPropertyListErrorMaximum = 4095; + +const int NSPropertyListErrorMinimum = 3840; + +sealed class NSPropertyListMutabilityOptions { + static const NSPropertyListImmutable = 0; + static const NSPropertyListMutableContainers = 1; + static const NSPropertyListMutableContainersAndLeaves = 2; +} + +const int NSPropertyListReadCorruptError = 3840; + +const int NSPropertyListReadStreamError = 3842; + +const int NSPropertyListReadUnknownVersionError = 3841; + +const int NSPropertyListWriteInvalidError = 3852; + +typedef NSPropertyListWriteOptions = NSUInteger; + +const int NSPropertyListWriteStreamError = 3851; + +const int NSProprietaryStringEncoding = 65536; + +/// WARNING: NSProtocolChecker is a stub. To generate bindings for this class, include +/// NSProtocolChecker in your config's objc-interfaces list. +/// +/// NSProtocolChecker +extension type NSProtocolChecker._(objc.ObjCObject object$) + implements objc.ObjCObject, NSProxy { + /// Constructs a [NSProtocolChecker] that points to the same underlying object as [other]. + NSProtocolChecker.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSProtocolChecker] that wraps the given raw object pointer. + NSProtocolChecker.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSProtocolCheckerCreation +extension NSProtocolCheckerCreation on NSProtocolChecker {} + +/// WARNING: NSProxy is a stub. To generate bindings for this class, include +/// NSProxy in your config's objc-interfaces list. +/// +/// NSProxy +extension type NSProxy._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObjectProtocol { + /// Constructs a [NSProxy] that points to the same underlying object as [other]. + NSProxy.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSProxy] that wraps the given raw object pointer. + NSProxy.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +typedef NSRange = objc.NSRange; +typedef NSRangePointer = ffi.Pointer; + +const int NSReceiverEvaluationScriptError = 1; + +const int NSReceiversCantHandleCommandScriptError = 4; + +typedef NSRect = objc.CGRect; +typedef NSRectArray = ffi.Pointer; + +enum NSRectEdge { + NSRectEdgeMinX(0), + NSRectEdgeMinY(1), + NSRectEdgeMaxX(2), + NSRectEdgeMaxY(3); + + static const NSMinXEdge = NSRectEdgeMinX; + static const NSMinYEdge = NSRectEdgeMinY; + static const NSMaxXEdge = NSRectEdgeMaxX; + static const NSMaxYEdge = NSRectEdgeMaxY; + + final int value; + const NSRectEdge(this.value); + + static NSRectEdge fromValue(int value) => switch (value) { + 0 => NSRectEdgeMinX, + 1 => NSRectEdgeMinY, + 2 => NSRectEdgeMaxX, + 3 => NSRectEdgeMaxY, + _ => throw ArgumentError('Unknown value for NSRectEdge: $value'), + }; + + @override + String toString() { + if (this == NSRectEdgeMinX) + return "NSRectEdge.NSRectEdgeMinX, NSRectEdge.NSMinXEdge"; + if (this == NSRectEdgeMinY) + return "NSRectEdge.NSRectEdgeMinY, NSRectEdge.NSMinYEdge"; + if (this == NSRectEdgeMaxX) + return "NSRectEdge.NSRectEdgeMaxX, NSRectEdge.NSMaxXEdge"; + if (this == NSRectEdgeMaxY) + return "NSRectEdge.NSRectEdgeMaxY, NSRectEdge.NSMaxYEdge"; + return super.toString(); + } +} + +typedef NSRectPointer = ffi.Pointer; + +/// WARNING: NSRegularExpression is a stub. To generate bindings for this class, include +/// NSRegularExpression in your config's objc-interfaces list. +/// +/// NSRegularExpression +extension type NSRegularExpression._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSRegularExpression] that points to the same underlying object as [other]. + NSRegularExpression.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSRegularExpression', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } + + /// Constructs a [NSRegularExpression] that wraps the given raw object pointer. + NSRegularExpression.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSRegularExpression', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } +} + +sealed class NSRegularExpressionOptions { + static const NSRegularExpressionCaseInsensitive = 1; + static const NSRegularExpressionAllowCommentsAndWhitespace = 2; + static const NSRegularExpressionIgnoreMetacharacters = 4; + static const NSRegularExpressionDotMatchesLineSeparators = 8; + static const NSRegularExpressionAnchorsMatchLines = 16; + static const NSRegularExpressionUseUnixLineSeparators = 32; + static const NSRegularExpressionUseUnicodeWordBoundaries = 64; +} + +enum NSRelativeDateTimeFormatterStyle { + NSRelativeDateTimeFormatterStyleNumeric(0), + NSRelativeDateTimeFormatterStyleNamed(1); + + final int value; + const NSRelativeDateTimeFormatterStyle(this.value); + + static NSRelativeDateTimeFormatterStyle fromValue(int value) => + switch (value) { + 0 => NSRelativeDateTimeFormatterStyleNumeric, + 1 => NSRelativeDateTimeFormatterStyleNamed, + _ => throw ArgumentError( + 'Unknown value for NSRelativeDateTimeFormatterStyle: $value', + ), + }; +} + +enum NSRelativeDateTimeFormatterUnitsStyle { + NSRelativeDateTimeFormatterUnitsStyleFull(0), + NSRelativeDateTimeFormatterUnitsStyleSpellOut(1), + NSRelativeDateTimeFormatterUnitsStyleShort(2), + NSRelativeDateTimeFormatterUnitsStyleAbbreviated(3); + + final int value; + const NSRelativeDateTimeFormatterUnitsStyle(this.value); + + static NSRelativeDateTimeFormatterUnitsStyle fromValue(int value) => + switch (value) { + 0 => NSRelativeDateTimeFormatterUnitsStyleFull, + 1 => NSRelativeDateTimeFormatterUnitsStyleSpellOut, + 2 => NSRelativeDateTimeFormatterUnitsStyleShort, + 3 => NSRelativeDateTimeFormatterUnitsStyleAbbreviated, + _ => throw ArgumentError( + 'Unknown value for NSRelativeDateTimeFormatterUnitsStyle: $value', + ), + }; +} + +enum NSRelativePosition { + NSRelativeAfter(0), + NSRelativeBefore(1); + + final int value; + const NSRelativePosition(this.value); + + static NSRelativePosition fromValue(int value) => switch (value) { + 0 => NSRelativeAfter, + 1 => NSRelativeBefore, + _ => throw ArgumentError('Unknown value for NSRelativePosition: $value'), + }; +} + +/// NSReplacement +extension NSReplacement on NSRegularExpression { + /// replaceMatchesInString:options:range:withTemplate: + DartNSUInteger replaceMatchesInString( + objc.NSMutableString string, { + required DartNSUInteger options, + required NSRange range, + required objc.NSString withTemplate, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + final _$$ref$2 = withTemplate.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.replaceMatchesInString:options:range:withTemplate:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_kgvd6q( + _$$ref.pointer, + _sel_replaceMatchesInString_options_range_withTemplate_, + _$$ref$1.pointer, + options, + range, + _$$ref$2.pointer, + ); + } + + /// replacementStringForResult:inString:offset:template: + objc.NSString replacementStringForResult( + NSTextCheckingResult result, { + required objc.NSString inString, + required DartNSInteger offset, + required objc.NSString template, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = result.ref; + final _$$ref$2 = inString.ref; + final _$$ref$3 = template.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.replacementStringForResult:inString:offset:template:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_l9ppnx( + _$$ref.pointer, + _sel_replacementStringForResult_inString_offset_template_, + _$$ref$1.pointer, + _$$ref$2.pointer, + offset, + _$$ref$3.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByReplacingMatchesInString:options:range:withTemplate: + objc.NSString stringByReplacingMatchesInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + required objc.NSString withTemplate, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + final _$$ref$2 = withTemplate.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.stringByReplacingMatchesInString:options:range:withTemplate:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1lk7ow3( + _$$ref.pointer, + _sel_stringByReplacingMatchesInString_options_range_withTemplate_, + _$$ref$1.pointer, + options, + range, + _$$ref$2.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// escapedTemplateForString: + static objc.NSString escapedTemplateForString(objc.NSString string) { + final _$$ref = string.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.escapedTemplateForString:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSRegularExpression, + _sel_escapedTemplateForString_, + _$$ref.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +const int NSRequiredArgumentsMissingScriptError = 5; + +enum NSRoundingMode { + NSRoundPlain(0), + NSRoundDown(1), + NSRoundUp(2), + NSRoundBankers(3); + + final int value; + const NSRoundingMode(this.value); + + static NSRoundingMode fromValue(int value) => switch (value) { + 0 => NSRoundPlain, + 1 => NSRoundDown, + 2 => NSRoundUp, + 3 => NSRoundBankers, + _ => throw ArgumentError('Unknown value for NSRoundingMode: $value'), + }; +} + +/// NSRunLoopConveniences +extension NSRunLoopConveniences on objc.NSRunLoop { + /// configureAsServer + @Deprecated('Not supported') + void configureAsServer() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSRunLoop.configureAsServer', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_configureAsServer); + } + + /// performBlock: + void performBlock(objc.ObjCBlock block) { + final _$$ref = object$.ref; + final _$$ref$1 = block.ref; + objc.checkOsVersionInternal( + 'NSRunLoop.performBlock:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + _objc_msgSend_f167m6(_$$ref.pointer, _sel_performBlock_, _$$ref$1.pointer); + } + + /// performInModes:block: + void performInModes( + objc.NSArray modes, { + required objc.ObjCBlock block, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = modes.ref; + final _$$ref$2 = block.ref; + objc.checkOsVersionInternal( + 'NSRunLoop.performInModes:block:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_performInModes_block_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// run + void run() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_run); + } + + /// runMode:beforeDate: + bool runMode(DartNSRunLoopMode mode, {required objc.NSDate beforeDate}) { + final _$$ref = object$.ref; + final _$$ref$1 = mode.ref; + final _$$ref$2 = beforeDate.ref; + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_runMode_beforeDate_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// runUntilDate: + void runUntilDate(objc.NSDate limitDate) { + final _$$ref = object$.ref; + final _$$ref$1 = limitDate.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_runUntilDate_, _$$ref$1.pointer); + } +} + +typedef NSRunLoopMode = ffi.Pointer; +typedef DartNSRunLoopMode = objc.NSString; + +enum NSSaveOptions { + NSSaveOptionsYes(0), + NSSaveOptionsNo(1), + NSSaveOptionsAsk(2); + + final int value; + const NSSaveOptions(this.value); + + static NSSaveOptions fromValue(int value) => switch (value) { + 0 => NSSaveOptionsYes, + 1 => NSSaveOptionsNo, + 2 => NSSaveOptionsAsk, + _ => throw ArgumentError('Unknown value for NSSaveOptions: $value'), + }; +} + +const int NSScannedOption = 1; + +/// WARNING: NSScanner is a stub. To generate bindings for this class, include +/// NSScanner in your config's objc-interfaces list. +/// +/// NSScanner +extension type NSScanner._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCopying { + /// Constructs a [NSScanner] that points to the same underlying object as [other]. + NSScanner.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSScanner] that wraps the given raw object pointer. + NSScanner.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSScriptClassDescription +extension NSScriptClassDescription on objc.NSObject { + /// classCode + DartUInt32 get classCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classCode', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_classCode); + } + + /// className + objc.NSString get className { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.className', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_className); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSScriptClassDescription$1 is a stub. To generate bindings for this class, include +/// NSScriptClassDescription in your config's objc-interfaces list. +/// +/// NSScriptClassDescription +extension type NSScriptClassDescription$1._(objc.ObjCObject object$) + implements objc.ObjCObject, NSClassDescription { + /// Constructs a [NSScriptClassDescription$1] that points to the same underlying object as [other]. + NSScriptClassDescription$1.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSScriptClassDescription$1] that wraps the given raw object pointer. + NSScriptClassDescription$1.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSScriptKeyValueCoding +extension NSScriptKeyValueCoding on objc.NSObject { + /// coerceValue:forKey: + objc.ObjCObject? coerceValue( + objc.ObjCObject? value, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.coerceValue:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_coerceValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// insertValue:atIndex:inPropertyWithKey: + void insertValue( + objc.ObjCObject value, { + required DartNSUInteger atIndex, + required objc.NSString inPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + final _$$ref$2 = inPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.insertValue:atIndex:inPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_10nfbmq( + _$$ref.pointer, + _sel_insertValue_atIndex_inPropertyWithKey_, + _$$ref$1.pointer, + atIndex, + _$$ref$2.pointer, + ); + } + + /// insertValue:inPropertyWithKey: + void insertValue$1( + objc.ObjCObject value, { + required objc.NSString inPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + final _$$ref$2 = inPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.insertValue:inPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_insertValue_inPropertyWithKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeValueAtIndex:fromPropertyWithKey: + void removeValueAtIndex( + DartNSUInteger index$1, { + required objc.NSString fromPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fromPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.removeValueAtIndex:fromPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1gypgok( + _$$ref.pointer, + _sel_removeValueAtIndex_fromPropertyWithKey_, + index$1, + _$$ref$1.pointer, + ); + } + + /// replaceValueAtIndex:inPropertyWithKey:withValue: + void replaceValueAtIndex( + DartNSUInteger index$1, { + required objc.NSString inPropertyWithKey, + required objc.ObjCObject withValue, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = inPropertyWithKey.ref; + final _$$ref$2 = withValue.ref; + objc.checkOsVersionInternal( + 'NSObject.replaceValueAtIndex:inPropertyWithKey:withValue:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_rutu22( + _$$ref.pointer, + _sel_replaceValueAtIndex_inPropertyWithKey_withValue_, + index$1, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// valueAtIndex:inPropertyWithKey: + objc.ObjCObject? valueAtIndex( + DartNSUInteger index$1, { + required objc.NSString inPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = inPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.valueAtIndex:inPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_vbc8p4( + _$$ref.pointer, + _sel_valueAtIndex_inPropertyWithKey_, + index$1, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// valueWithName:inPropertyWithKey: + objc.ObjCObject? valueWithName( + objc.NSString name, { + required objc.NSString inPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = name.ref; + final _$$ref$2 = inPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.valueWithName:inPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_valueWithName_inPropertyWithKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// valueWithUniqueID:inPropertyWithKey: + objc.ObjCObject? valueWithUniqueID( + objc.ObjCObject uniqueID, { + required objc.NSString inPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = uniqueID.ref; + final _$$ref$2 = inPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.valueWithUniqueID:inPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_valueWithUniqueID_inPropertyWithKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// WARNING: NSScriptObjectSpecifier is a stub. To generate bindings for this class, include +/// NSScriptObjectSpecifier in your config's objc-interfaces list. +/// +/// NSScriptObjectSpecifier +extension type NSScriptObjectSpecifier._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCoding { + /// Constructs a [NSScriptObjectSpecifier] that points to the same underlying object as [other]. + NSScriptObjectSpecifier.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSScriptObjectSpecifier] that wraps the given raw object pointer. + NSScriptObjectSpecifier.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSScriptObjectSpecifiers +extension NSScriptObjectSpecifiers on objc.NSObject { + /// indicesOfObjectsByEvaluatingObjectSpecifier: + objc.NSArray? indicesOfObjectsByEvaluatingObjectSpecifier( + NSScriptObjectSpecifier specifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = specifier.ref; + objc.checkOsVersionInternal( + 'NSObject.indicesOfObjectsByEvaluatingObjectSpecifier:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_indicesOfObjectsByEvaluatingObjectSpecifier_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// objectSpecifier + NSScriptObjectSpecifier? get objectSpecifier { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.objectSpecifier', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_objectSpecifier); + return $ret.address == 0 + ? null + : NSScriptObjectSpecifier.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSScripting +extension NSScripting on objc.NSObject { + /// copyScriptingValue:forKey:withProperties: + objc.ObjCObject? copyScriptingValue( + objc.ObjCObject value, { + required objc.NSString forKey, + required objc.NSDictionary withProperties, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + final _$$ref$2 = forKey.ref; + final _$$ref$3 = withProperties.ref; + objc.checkOsVersionInternal( + 'NSObject.copyScriptingValue:forKey:withProperties:', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_copyScriptingValue_forKey_withProperties_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// newScriptingObjectOfClass:forValueForKey:withContentsValue:properties: + objc.ObjCObject? newScriptingObjectOfClass( + objc.ObjCObject objectClass, { + required objc.NSString forValueForKey, + objc.ObjCObject? withContentsValue, + required objc.NSDictionary properties, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = objectClass.ref; + final _$$ref$2 = forValueForKey.ref; + final _$$ref$3 = withContentsValue?.ref; + final _$$ref$4 = properties.ref; + objc.checkOsVersionInternal( + 'NSObject.newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_s92gih( + _$$ref.pointer, + _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// scriptingProperties + objc.NSDictionary? get scriptingProperties { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingProperties', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_scriptingProperties, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// scriptingValueForSpecifier: + objc.ObjCObject? scriptingValueForSpecifier( + NSScriptObjectSpecifier objectSpecifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = objectSpecifier.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingValueForSpecifier:', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_scriptingValueForSpecifier_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// setScriptingProperties: + set scriptingProperties(objc.NSDictionary? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSObject.setScriptingProperties:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setScriptingProperties_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// NSScriptingComparisonMethods +extension NSScriptingComparisonMethods on objc.NSObject { + /// scriptingBeginsWith: + bool scriptingBeginsWith(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingBeginsWith:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingBeginsWith_, + _$$ref$1.pointer, + ); + } + + /// scriptingContains: + bool scriptingContains(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingContains:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingContains_, + _$$ref$1.pointer, + ); + } + + /// scriptingEndsWith: + bool scriptingEndsWith(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingEndsWith:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingEndsWith_, + _$$ref$1.pointer, + ); + } + + /// scriptingIsEqualTo: + bool scriptingIsEqualTo(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingIsEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingIsEqualTo_, + _$$ref$1.pointer, + ); + } + + /// scriptingIsGreaterThan: + bool scriptingIsGreaterThan(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingIsGreaterThan:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingIsGreaterThan_, + _$$ref$1.pointer, + ); + } + + /// scriptingIsGreaterThanOrEqualTo: + bool scriptingIsGreaterThanOrEqualTo(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingIsGreaterThanOrEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingIsGreaterThanOrEqualTo_, + _$$ref$1.pointer, + ); + } + + /// scriptingIsLessThan: + bool scriptingIsLessThan(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingIsLessThan:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingIsLessThan_, + _$$ref$1.pointer, + ); + } + + /// scriptingIsLessThanOrEqualTo: + bool scriptingIsLessThanOrEqualTo(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingIsLessThanOrEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingIsLessThanOrEqualTo_, + _$$ref$1.pointer, + ); + } +} + +enum NSSearchPathDirectory { + NSApplicationDirectory(1), + NSDemoApplicationDirectory(2), + NSDeveloperApplicationDirectory(3), + NSAdminApplicationDirectory(4), + NSLibraryDirectory(5), + NSDeveloperDirectory(6), + NSUserDirectory(7), + NSDocumentationDirectory(8), + NSDocumentDirectory(9), + NSCoreServiceDirectory(10), + NSAutosavedInformationDirectory(11), + NSDesktopDirectory(12), + NSCachesDirectory(13), + NSApplicationSupportDirectory(14), + NSDownloadsDirectory(15), + NSInputMethodsDirectory(16), + NSMoviesDirectory(17), + NSMusicDirectory(18), + NSPicturesDirectory(19), + NSPrinterDescriptionDirectory(20), + NSSharedPublicDirectory(21), + NSPreferencePanesDirectory(22), + NSApplicationScriptsDirectory(23), + NSItemReplacementDirectory(99), + NSAllApplicationsDirectory(100), + NSAllLibrariesDirectory(101), + NSTrashDirectory(102); + + final int value; + const NSSearchPathDirectory(this.value); + + static NSSearchPathDirectory fromValue(int value) => switch (value) { + 1 => NSApplicationDirectory, + 2 => NSDemoApplicationDirectory, + 3 => NSDeveloperApplicationDirectory, + 4 => NSAdminApplicationDirectory, + 5 => NSLibraryDirectory, + 6 => NSDeveloperDirectory, + 7 => NSUserDirectory, + 8 => NSDocumentationDirectory, + 9 => NSDocumentDirectory, + 10 => NSCoreServiceDirectory, + 11 => NSAutosavedInformationDirectory, + 12 => NSDesktopDirectory, + 13 => NSCachesDirectory, + 14 => NSApplicationSupportDirectory, + 15 => NSDownloadsDirectory, + 16 => NSInputMethodsDirectory, + 17 => NSMoviesDirectory, + 18 => NSMusicDirectory, + 19 => NSPicturesDirectory, + 20 => NSPrinterDescriptionDirectory, + 21 => NSSharedPublicDirectory, + 22 => NSPreferencePanesDirectory, + 23 => NSApplicationScriptsDirectory, + 99 => NSItemReplacementDirectory, + 100 => NSAllApplicationsDirectory, + 101 => NSAllLibrariesDirectory, + 102 => NSTrashDirectory, + _ => throw ArgumentError('Unknown value for NSSearchPathDirectory: $value'), + }; +} + +sealed class NSSearchPathDomainMask { + static const NSUserDomainMask = 1; + static const NSLocalDomainMask = 2; + static const NSNetworkDomainMask = 4; + static const NSSystemDomainMask = 8; + static const NSAllDomainsMask = 65535; +} + +/// NSServerTrust +extension NSServerTrust on NSURLCredential { + /// credentialForTrust: + static NSURLCredential credentialForTrust(SecTrustRef trust) { + objc.checkOsVersionInternal( + 'NSURLCredential.credentialForTrust:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1s3ecd1( + _class_NSURLCredential, + _sel_credentialForTrust_, + trust, + ); + return NSURLCredential.fromPointer($ret, retain: true, release: true); + } +} + +/// NSServerTrustValidationSpace +extension NSServerTrustValidationSpace on NSURLProtectionSpace { + /// serverTrust + SecTrustRef get serverTrust { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLProtectionSpace.serverTrust', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_serverTrust); + } +} + +/// NSSetCreation +extension NSSetCreation on objc.NSSet { + /// initWithArray: + objc.NSSet initWithArray(objc.NSArray array) { + final _$$ref = object$.ref; + final _$$ref$1 = array.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_, + _$$ref$1.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithObjects: + objc.NSSet initWithObjects$1(objc.ObjCObject firstObj) { + final _$$ref = object$.ref; + final _$$ref$1 = firstObj.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjects_, + _$$ref$1.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet: + objc.NSSet initWithSet(objc.NSSet set) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_, + _$$ref$1.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + objc.NSSet initWithSet$1(objc.NSSet set, {required bool copyItems}) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSSet.fromPointer($ret, retain: false, release: true); + } + + /// set + static objc.NSSet set() { + final $ret = _objc_msgSend_151sglz(_class_NSSet, _sel_set); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// setWithArray: + static objc.NSSet setWithArray(objc.NSArray array) { + final _$$ref = array.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithArray_, + _$$ref.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// setWithObject: + static objc.NSSet setWithObject(objc.ObjCObject object) { + final _$$ref = object.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithObject_, + _$$ref.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// setWithObjects: + static objc.NSSet setWithObjects(objc.ObjCObject firstObj) { + final _$$ref = firstObj.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithObjects_, + _$$ref.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// setWithObjects:count: + static objc.NSSet setWithObjects$1( + ffi.Pointer> objects, { + required DartNSUInteger count, + }) { + final $ret = _objc_msgSend_zmbtbd( + _class_NSSet, + _sel_setWithObjects_count_, + objects, + count, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// setWithSet: + static objc.NSSet setWithSet(objc.NSSet set) { + final _$$ref = set.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithSet_, + _$$ref.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } +} + +/// NSSharedKeySetDictionary +extension NSSharedKeySetDictionary on objc.NSDictionary { + /// sharedKeySetForKeys: + static objc.ObjCObject sharedKeySetForKeys(objc.NSArray keys) { + final _$$ref = keys.ref; + objc.checkOsVersionInternal( + 'NSDictionary.sharedKeySetForKeys:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_sharedKeySetForKeys_, + _$$ref.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSSharedKeySetDictionary +extension NSSharedKeySetDictionary$1 on objc.NSMutableDictionary { + /// dictionaryWithSharedKeySet: + static objc.NSMutableDictionary dictionaryWithSharedKeySet( + objc.ObjCObject keyset, + ) { + final _$$ref = keyset.ref; + objc.checkOsVersionInternal( + 'NSMutableDictionary.dictionaryWithSharedKeySet:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithSharedKeySet_, + _$$ref.pointer, + ); + return objc.NSMutableDictionary.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +const int NSShiftJISStringEncoding = 8; + +typedef NSSize = objc.CGSize; +typedef NSSizeArray = ffi.Pointer; +typedef NSSizePointer = ffi.Pointer; +typedef NSSocketNativeHandle = ffi.Int; +typedef DartNSSocketNativeHandle = int; + +/// NSSocketStreamCreationExtensions +extension NSSocketStreamCreationExtensions on objc.NSStream { + /// getStreamsToHost:port:inputStream:outputStream: + @Deprecated('Use nw_connection_t in Network framework instead') + static void getStreamsToHost( + NSHost host, { + required DartNSInteger port, + required ffi.Pointer> inputStream, + required ffi.Pointer> outputStream, + }) { + final _$$ref = host.ref; + objc.checkOsVersionInternal( + 'NSStream.getStreamsToHost:port:inputStream:outputStream:', + iOS: (true, null), + macOS: (false, (10, 3, 0)), + ); + _objc_msgSend_1jknn71( + _class_NSStream, + _sel_getStreamsToHost_port_inputStream_outputStream_, + _$$ref.pointer, + port, + inputStream, + outputStream, + ); + } + + /// getStreamsToHostWithName:port:inputStream:outputStream: + @Deprecated('Use nw_connection_t in Network framework instead') + static void getStreamsToHostWithName( + objc.NSString hostname, { + required DartNSInteger port, + required ffi.Pointer> inputStream, + required ffi.Pointer> outputStream, + }) { + final _$$ref = hostname.ref; + objc.checkOsVersionInternal( + 'NSStream.getStreamsToHostWithName:port:inputStream:outputStream:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_1jknn71( + _class_NSStream, + _sel_getStreamsToHostWithName_port_inputStream_outputStream_, + _$$ref.pointer, + port, + inputStream, + outputStream, + ); + } +} + +@Deprecated('Not supported') +const int NSSolarisOperatingSystem = 3; + +/// NSSortDescriptorSorting +extension NSSortDescriptorSorting on objc.NSArray { + /// sortedArrayUsingDescriptors: + objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { + final _$$ref = object$.ref; + final _$$ref$1 = sortDescriptors.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_sortedArrayUsingDescriptors_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSSortDescriptorSorting +extension NSSortDescriptorSorting$1 on objc.NSSet { + /// sortedArrayUsingDescriptors: + objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { + final _$$ref = object$.ref; + final _$$ref$1 = sortDescriptors.ref; + objc.checkOsVersionInternal( + 'NSSet.sortedArrayUsingDescriptors:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_sortedArrayUsingDescriptors_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSSortDescriptorSorting +extension NSSortDescriptorSorting$2 on objc.NSMutableArray { + /// sortUsingDescriptors: + void sortUsingDescriptors(objc.NSArray sortDescriptors) { + final _$$ref = object$.ref; + final _$$ref$1 = sortDescriptors.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_sortUsingDescriptors_, + _$$ref$1.pointer, + ); + } +} + +/// WARNING: NSSpellServer is a stub. To generate bindings for this class, include +/// NSSpellServer in your config's objc-interfaces list. +/// +/// NSSpellServer +extension type NSSpellServer._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSSpellServer] that points to the same underlying object as [other]. + NSSpellServer.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSSpellServer] that wraps the given raw object pointer. + NSSpellServer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSSpellServerDelegate +extension type NSSpellServerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSSpellServerDelegate] that points to the same underlying object as [other]. + NSSpellServerDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSSpellServerDelegate] that wraps the given raw object pointer. + NSSpellServerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSSpellServerDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSSpellServerDelegate, + ); + } +} + +extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { + /// spellServer:checkGrammarInString:language:details: + NSRange spellServer( + NSSpellServer sender, { + required objc.NSString checkGrammarInString, + objc.NSString? language, + required ffi.Pointer> details, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = checkGrammarInString.ref; + final _$$ref$3 = language?.ref; + objc.checkOsVersionInternal( + 'NSSpellServerDelegate.spellServer:checkGrammarInString:language:details:', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_checkGrammarInString_language_details_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:checkGrammarInString:language:details:', + ); + } + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1r9lliaStret( + $ptr, + _$$ref.pointer, + _sel_spellServer_checkGrammarInString_language_details_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + details, + ) + : $ptr.ref = _objc_msgSend_1r9llia( + _$$ref.pointer, + _sel_spellServer_checkGrammarInString_language_details_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + details, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// spellServer:checkString:offset:types:options:orthography:wordCount: + objc.NSArray? spellServer$1( + NSSpellServer sender, { + required objc.NSString checkString, + required DartNSUInteger offset, + required DartNSTextCheckingTypes types, + objc.NSDictionary? options, + NSOrthography? orthography, + required ffi.Pointer wordCount, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = checkString.ref; + final _$$ref$3 = options?.ref; + final _$$ref$4 = orthography?.ref; + objc.checkOsVersionInternal( + 'NSSpellServerDelegate.spellServer:checkString:offset:types:options:orthography:wordCount:', + iOS: (true, null), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:checkString:offset:types:options:orthography:wordCount:', + ); + } + final $ret = _objc_msgSend_z7lrh9( + _$$ref.pointer, + _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, + _$$ref$1.pointer, + _$$ref$2.pointer, + offset, + types, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + wordCount, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// spellServer:didForgetWord:inLanguage: + void spellServer$2( + NSSpellServer sender, { + required objc.NSString didForgetWord, + required objc.NSString inLanguage, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didForgetWord.ref; + final _$$ref$3 = inLanguage.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_didForgetWord_inLanguage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:didForgetWord:inLanguage:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_spellServer_didForgetWord_inLanguage_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// spellServer:didLearnWord:inLanguage: + void spellServer$3( + NSSpellServer sender, { + required objc.NSString didLearnWord, + required objc.NSString inLanguage, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didLearnWord.ref; + final _$$ref$3 = inLanguage.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_didLearnWord_inLanguage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:didLearnWord:inLanguage:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_spellServer_didLearnWord_inLanguage_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// spellServer:findMisspelledWordInString:language:wordCount:countOnly: + NSRange spellServer$4( + NSSpellServer sender, { + required objc.NSString findMisspelledWordInString, + required objc.NSString language, + required ffi.Pointer wordCount, + required bool countOnly, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = findMisspelledWordInString.ref; + final _$$ref$3 = language.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:findMisspelledWordInString:language:wordCount:countOnly:', + ); + } + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1orxdfjStret( + $ptr, + _$$ref.pointer, + _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + wordCount, + countOnly, + ) + : $ptr.ref = _objc_msgSend_1orxdfj( + _$$ref.pointer, + _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + wordCount, + countOnly, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// spellServer:recordResponse:toCorrection:forWord:language: + void spellServer$5( + NSSpellServer sender, { + required DartNSUInteger recordResponse, + required objc.NSString toCorrection, + required objc.NSString forWord, + required objc.NSString language, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = toCorrection.ref; + final _$$ref$3 = forWord.ref; + final _$$ref$4 = language.ref; + objc.checkOsVersionInternal( + 'NSSpellServerDelegate.spellServer:recordResponse:toCorrection:forWord:language:', + iOS: (true, null), + macOS: (false, (10, 7, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_recordResponse_toCorrection_forWord_language_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:recordResponse:toCorrection:forWord:language:', + ); + } + _objc_msgSend_y1woti( + _$$ref.pointer, + _sel_spellServer_recordResponse_toCorrection_forWord_language_, + _$$ref$1.pointer, + recordResponse, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// spellServer:suggestCompletionsForPartialWordRange:inString:language: + objc.NSArray? spellServer$6( + NSSpellServer sender, { + required NSRange suggestCompletionsForPartialWordRange, + required objc.NSString inString, + required objc.NSString language, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = inString.ref; + final _$$ref$3 = language.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:suggestCompletionsForPartialWordRange:inString:language:', + ); + } + final $ret = _objc_msgSend_13fklwp( + _$$ref.pointer, + _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, + _$$ref$1.pointer, + suggestCompletionsForPartialWordRange, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// spellServer:suggestGuessesForWord:inLanguage: + objc.NSArray? spellServer$7( + NSSpellServer sender, { + required objc.NSString suggestGuessesForWord, + required objc.NSString inLanguage, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = suggestGuessesForWord.ref; + final _$$ref$3 = inLanguage.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_suggestGuessesForWord_inLanguage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:suggestGuessesForWord:inLanguage:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_spellServer_suggestGuessesForWord_inLanguage_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +interface class NSSpellServerDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSSpellServerDelegate.cast()); + + /// Builds an object that implements the NSSpellServerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSpellServerDelegate implement({ + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSSpellServerDelegate', + ); + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implement(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implement(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implement( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + return NSSpellServerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSpellServerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implement(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implement(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implement( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSSpellServerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSpellServerDelegate implementAsListener({ + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSSpellServerDelegate', + ); + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implementAsListener(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implementAsListener(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implementAsListener( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + return NSSpellServerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSpellServerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implementAsListener(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implementAsListener(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implementAsListener( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSSpellServerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSpellServerDelegate implementAsBlocking({ + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSSpellServerDelegate', + ); + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implementAsBlocking(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implementAsBlocking(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implementAsBlocking( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + return NSSpellServerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSpellServerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implementAsBlocking(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implementAsBlocking(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implementAsBlocking( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + } + + /// spellServer:checkGrammarInString:language:details: + static final spellServer_checkGrammarInString_language_details_ = + objc.ObjCProtocolMethod< + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_checkGrammarInString_language_details_, + ffi.Native.addressOf< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >(_1uu024u_protocolTrampoline_xsqx6i) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_checkGrammarInString_language_details_, + isRequired: false, + isInstanceMethod: true, + ), + ( + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + func, + ) => + ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString? arg3, + ffi.Pointer> arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// spellServer:checkString:offset:types:options:orthography:wordCount: + static final spellServer_checkString_offset_types_options_orthography_wordCount_ = + objc.ObjCProtocolMethod< + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSTextCheckingTypes, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1chy5b9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + func, + ) => + ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + DartNSUInteger arg3, + DartNSTextCheckingTypes arg4, + objc.NSDictionary? arg5, + NSOrthography? arg6, + ffi.Pointer arg7, + ) => func(arg1, arg2, arg3, arg4, arg5, arg6, arg7), + ), + ); + + /// spellServer:didForgetWord:inLanguage: + static final spellServer_didForgetWord_inLanguage_ = + objc.ObjCProtocolListenableMethod< + void Function(NSSpellServer, objc.NSString, objc.NSString) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_didForgetWord_inLanguage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_didForgetWord_inLanguage_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.listener( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// spellServer:didLearnWord:inLanguage: + static final spellServer_didLearnWord_inLanguage_ = + objc.ObjCProtocolListenableMethod< + void Function(NSSpellServer, objc.NSString, objc.NSString) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_didLearnWord_inLanguage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_didLearnWord_inLanguage_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.listener( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// spellServer:findMisspelledWordInString:language:wordCount:countOnly: + static final spellServer_findMisspelledWordInString_language_wordCount_countOnly_ = + objc.ObjCProtocolMethod< + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + ) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ffi.Native.addressOf< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_1j6oadz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + isRequired: false, + isInstanceMethod: true, + ), + ( + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + ) + func, + ) => + ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ffi.Pointer arg4, + bool arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// spellServer:recordResponse:toCorrection:forWord:language: + static final spellServer_recordResponse_toCorrection_forWord_language_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_recordResponse_toCorrection_forWord_language_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1cn988u) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_recordResponse_toCorrection_forWord_language_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + DartNSUInteger arg2, + objc.NSString arg3, + objc.NSString arg4, + objc.NSString arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.listener( + ( + ffi.Pointer _, + NSSpellServer arg1, + DartNSUInteger arg2, + objc.NSString arg3, + objc.NSString arg4, + objc.NSString arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSSpellServer arg1, + DartNSUInteger arg2, + objc.NSString arg3, + objc.NSString arg4, + objc.NSString arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// spellServer:suggestCompletionsForPartialWordRange:inString:language: + static final spellServer_suggestCompletionsForPartialWordRange_inString_language_ = + objc.ObjCProtocolMethod< + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + ) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_19u921t) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + NSRange arg2, + objc.NSString arg3, + objc.NSString arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// spellServer:suggestGuessesForWord:inLanguage: + static final spellServer_suggestGuessesForWord_inLanguage_ = + objc.ObjCProtocolMethod< + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_suggestGuessesForWord_inLanguage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_suggestGuessesForWord_inLanguage_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString) + func, + ) => + ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); +} + +/// NSStreamBoundPairCreationExtensions +extension NSStreamBoundPairCreationExtensions on objc.NSStream { + /// getBoundStreamsWithBufferSize:inputStream:outputStream: + static void getBoundStreamsWithBufferSize( + DartNSUInteger bufferSize, { + required ffi.Pointer> inputStream, + required ffi.Pointer> outputStream, + }) { + objc.checkOsVersionInternal( + 'NSStream.getBoundStreamsWithBufferSize:inputStream:outputStream:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_1i17va2( + _class_NSStream, + _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_, + bufferSize, + inputStream, + outputStream, + ); + } +} + +typedef NSStreamNetworkServiceTypeValue = ffi.Pointer; +typedef DartNSStreamNetworkServiceTypeValue = objc.NSString; +typedef NSStreamPropertyKey = ffi.Pointer; +typedef DartNSStreamPropertyKey = objc.NSString; +typedef NSStreamSOCKSProxyConfiguration = ffi.Pointer; +typedef DartNSStreamSOCKSProxyConfiguration = objc.NSString; +typedef NSStreamSOCKSProxyVersion = ffi.Pointer; +typedef DartNSStreamSOCKSProxyVersion = objc.NSString; +typedef NSStreamSocketSecurityLevel = ffi.Pointer; +typedef DartNSStreamSocketSecurityLevel = objc.NSString; + +/// NSStringDeprecated +extension NSStringDeprecated on objc.NSString { + /// cString + @Deprecated('Use -cStringUsingEncoding: instead') + ffi.Pointer cString() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.cString', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_cString); + } + + /// cStringLength + @Deprecated('Use -lengthOfBytesUsingEncoding: instead') + DartNSUInteger cStringLength() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.cStringLength', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_cStringLength); + } + + /// getCString: + @Deprecated('Use -getCString:maxLength:encoding: instead') + void getCString(ffi.Pointer bytes) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.getCString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_getCString_, bytes); + } + + /// getCString:maxLength: + @Deprecated('Use -getCString:maxLength:encoding: instead') + void getCString$1( + ffi.Pointer bytes, { + required DartNSUInteger maxLength, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.getCString:maxLength:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1h3mito( + _$$ref.pointer, + _sel_getCString_maxLength_, + bytes, + maxLength, + ); + } + + /// getCString:maxLength:range:remainingRange: + @Deprecated('Use -getCString:maxLength:encoding: instead') + void getCString$2( + ffi.Pointer bytes, { + required DartNSUInteger maxLength, + required NSRange range, + required NSRangePointer remainingRange, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.getCString:maxLength:range:remainingRange:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_3gpdva( + _$$ref.pointer, + _sel_getCString_maxLength_range_remainingRange_, + bytes, + maxLength, + range, + remainingRange, + ); + } + + /// getCharacters: + void getCharacters(ffi.Pointer buffer) { + final _$$ref = object$.ref; + _objc_msgSend_g3kdhc(_$$ref.pointer, _sel_getCharacters_, buffer); + } + + /// initWithCString: + @Deprecated('Use -initWithCString:encoding: instead') + objc.ObjCObject? initWithCString(ffi.Pointer bytes) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.initWithCString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_56zxyn( + _$$ref.retainAndReturnPointer(), + _sel_initWithCString_, + bytes, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithCString:length: + @Deprecated('Use -initWithCString:encoding: instead') + objc.ObjCObject? initWithCString$1( + ffi.Pointer bytes, { + required DartNSUInteger length, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.initWithCString:length:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_erqryg( + _$$ref.retainAndReturnPointer(), + _sel_initWithCString_length_, + bytes, + length, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithCStringNoCopy:length:freeWhenDone: + @Deprecated('Use -initWithCString:encoding: instead') + objc.ObjCObject? initWithCStringNoCopy( + ffi.Pointer bytes, { + required DartNSUInteger length, + required bool freeWhenDone, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.initWithCStringNoCopy:length:freeWhenDone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1ojrli4( + _$$ref.retainAndReturnPointer(), + _sel_initWithCStringNoCopy_length_freeWhenDone_, + bytes, + length, + freeWhenDone, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithContentsOfFile: + @Deprecated('Use -initWithContentsOfFile:encoding:error: instead') + objc.ObjCObject? initWithContentsOfFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSString.initWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + @Deprecated('Use -initWithContentsOfURL:encoding:error: instead') + objc.ObjCObject? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSString.initWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// lossyCString + @Deprecated('Use -cStringUsingEncoding: instead') + ffi.Pointer lossyCString() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.lossyCString', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_lossyCString); + } + + /// writeToFile:atomically: + @Deprecated('Use -writeToFile:atomically:encoding:error: instead') + bool writeToFile(objc.NSString path, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSString.writeToFile:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToFile_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// writeToURL:atomically: + @Deprecated('Use -writeToURL:atomically:encoding:error: instead') + bool writeToURL(objc.NSURL url, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSString.writeToURL:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToURL_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// stringWithCString: + @Deprecated('Use +stringWithCString:encoding: instead') + static objc.ObjCObject? stringWithCString(ffi.Pointer bytes) { + objc.checkOsVersionInternal( + 'NSString.stringWithCString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_56zxyn( + _class_NSString, + _sel_stringWithCString_, + bytes, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// stringWithCString:length: + @Deprecated('Use +stringWithCString:encoding:') + static objc.ObjCObject? stringWithCString$1( + ffi.Pointer bytes, { + required DartNSUInteger length, + }) { + objc.checkOsVersionInternal( + 'NSString.stringWithCString:length:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_erqryg( + _class_NSString, + _sel_stringWithCString_length_, + bytes, + length, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// stringWithContentsOfFile: + @Deprecated('Use +stringWithContentsOfFile:encoding:error: instead') + static objc.ObjCObject? stringWithContentsOfFile(objc.NSString path) { + final _$$ref = path.ref; + objc.checkOsVersionInternal( + 'NSString.stringWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_stringWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// stringWithContentsOfURL: + @Deprecated('Use +stringWithContentsOfURL:encoding:error: instead') + static objc.ObjCObject? stringWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSString.stringWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_stringWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +typedef NSStringEncoding = NSUInteger; + +/// NSStringEncodingDetection +extension NSStringEncodingDetection on objc.NSString { + /// stringEncodingForData:encodingOptions:convertedString:usedLossyConversion: + static DartNSUInteger stringEncodingForData( + objc.NSData data, { + objc.NSDictionary? encodingOptions, + required ffi.Pointer> convertedString, + required ffi.Pointer usedLossyConversion, + }) { + final _$$ref = data.ref; + final _$$ref$1 = encodingOptions?.ref; + objc.checkOsVersionInternal( + 'NSString.stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_1q2ox4r( + _class_NSString, + _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + convertedString, + usedLossyConversion, + ); + } +} + +typedef NSStringEncodingDetectionOptionsKey = ffi.Pointer; +typedef DartNSStringEncodingDetectionOptionsKey = objc.NSString; + +/// NSStringPathExtensions +extension NSStringPathExtensions on objc.NSString { + /// completePathIntoString:caseSensitive:matchesIntoArray:filterTypes: + DartNSUInteger completePathIntoString( + ffi.Pointer> outputName, { + required bool caseSensitive, + required ffi.Pointer> matchesIntoArray, + objc.NSArray? filterTypes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = filterTypes?.ref; + return _objc_msgSend_8mvqcu( + _$$ref.pointer, + _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_, + outputName, + caseSensitive, + matchesIntoArray, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// fileSystemRepresentation + ffi.Pointer get fileSystemRepresentation { + final _$$ref = object$.ref; + return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_fileSystemRepresentation); + } + + /// getFileSystemRepresentation:maxLength: + bool getFileSystemRepresentation( + ffi.Pointer cname, { + required DartNSUInteger maxLength, + }) { + final _$$ref = object$.ref; + return _objc_msgSend_8cymbm( + _$$ref.pointer, + _sel_getFileSystemRepresentation_maxLength_, + cname, + maxLength, + ); + } + + /// isAbsolutePath + bool get isAbsolutePath { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isAbsolutePath); + } + + /// lastPathComponent + objc.NSString get lastPathComponent { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// pathComponents + objc.NSArray get pathComponents { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// pathExtension + objc.NSString get pathExtension { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByAbbreviatingWithTildeInPath + objc.NSString get stringByAbbreviatingWithTildeInPath { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByAbbreviatingWithTildeInPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByAppendingPathComponent: + objc.NSString stringByAppendingPathComponent(objc.NSString str) { + final _$$ref = object$.ref; + final _$$ref$1 = str.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_stringByAppendingPathComponent_, + _$$ref$1.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByAppendingPathExtension: + objc.NSString? stringByAppendingPathExtension(objc.NSString str) { + final _$$ref = object$.ref; + final _$$ref$1 = str.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_stringByAppendingPathExtension_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByDeletingLastPathComponent + objc.NSString get stringByDeletingLastPathComponent { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByDeletingLastPathComponent, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByDeletingPathExtension + objc.NSString get stringByDeletingPathExtension { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByDeletingPathExtension, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByExpandingTildeInPath + objc.NSString get stringByExpandingTildeInPath { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByExpandingTildeInPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByResolvingSymlinksInPath + objc.NSString get stringByResolvingSymlinksInPath { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByResolvingSymlinksInPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByStandardizingPath + objc.NSString get stringByStandardizingPath { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByStandardizingPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringsByAppendingPaths: + objc.NSArray stringsByAppendingPaths(objc.NSArray paths) { + final _$$ref = object$.ref; + final _$$ref$1 = paths.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_stringsByAppendingPaths_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// pathWithComponents: + static objc.NSString pathWithComponents(objc.NSArray components) { + final _$$ref = components.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_pathWithComponents_, + _$$ref.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +typedef NSStringTransform = ffi.Pointer; +typedef DartNSStringTransform = objc.NSString; +@Deprecated('Not supported') +const int NSSunOSOperatingSystem = 6; + +final class NSSwappedDouble extends ffi.Struct { + @ffi.UnsignedLongLong() + external int v; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + }) => $allocator()..ref.v = v; +} + +final class NSSwappedFloat extends ffi.Struct { + @ffi.UnsignedInt() + external int v; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + }) => $allocator()..ref.v = v; +} + +const int NSSymbolStringEncoding = 6; + +/// WARNING: NSTask is a stub. To generate bindings for this class, include +/// NSTask in your config's objc-interfaces list. +/// +/// NSTask +extension type NSTask._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSTask] that points to the same underlying object as [other]. + NSTask.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSTask] that wraps the given raw object pointer. + NSTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSTaskConveniences +extension NSTaskConveniences on NSTask { + /// waitUntilExit + void waitUntilExit() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_waitUntilExit); + } + + /// launchedTaskWithExecutableURL:arguments:error:terminationHandler: + static NSTask? launchedTaskWithExecutableURL( + objc.NSURL url, { + required objc.NSArray arguments, + required ffi.Pointer> error, + objc.ObjCBlock? terminationHandler, + }) { + final _$$ref = url.ref; + final _$$ref$1 = arguments.ref; + final _$$ref$2 = terminationHandler?.ref; + objc.checkOsVersionInternal( + 'NSTask.launchedTaskWithExecutableURL:arguments:error:terminationHandler:', + iOS: (true, null), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_1f2nccz( + _class_NSTask, + _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_, + _$$ref.pointer, + _$$ref$1.pointer, + error, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : NSTask.fromPointer($ret, retain: true, release: true); + } +} + +enum NSTaskTerminationReason { + NSTaskTerminationReasonExit(1), + NSTaskTerminationReasonUncaughtSignal(2); + + final int value; + const NSTaskTerminationReason(this.value); + + static NSTaskTerminationReason fromValue(int value) => switch (value) { + 1 => NSTaskTerminationReasonExit, + 2 => NSTaskTerminationReasonUncaughtSignal, + _ => throw ArgumentError( + 'Unknown value for NSTaskTerminationReason: $value', + ), + }; +} + +enum NSTestComparisonOperation { + NSEqualToComparison(0), + NSLessThanOrEqualToComparison(1), + NSLessThanComparison(2), + NSGreaterThanOrEqualToComparison(3), + NSGreaterThanComparison(4), + NSBeginsWithComparison(5), + NSEndsWithComparison(6), + NSContainsComparison(7); + + final int value; + const NSTestComparisonOperation(this.value); + + static NSTestComparisonOperation fromValue(int value) => switch (value) { + 0 => NSEqualToComparison, + 1 => NSLessThanOrEqualToComparison, + 2 => NSLessThanComparison, + 3 => NSGreaterThanOrEqualToComparison, + 4 => NSGreaterThanComparison, + 5 => NSBeginsWithComparison, + 6 => NSEndsWithComparison, + 7 => NSContainsComparison, + _ => throw ArgumentError( + 'Unknown value for NSTestComparisonOperation: $value', + ), + }; +} + +const int NSTextCheckingAllCustomTypes = -4294967296; + +const int NSTextCheckingAllSystemTypes = 4294967295; + +const int NSTextCheckingAllTypes = -1; + +typedef NSTextCheckingKey = ffi.Pointer; +typedef DartNSTextCheckingKey = objc.NSString; + +/// WARNING: NSTextCheckingResult is a stub. To generate bindings for this class, include +/// NSTextCheckingResult in your config's objc-interfaces list. +/// +/// NSTextCheckingResult +extension type NSTextCheckingResult._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSTextCheckingResult] that points to the same underlying object as [other]. + NSTextCheckingResult.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSTextCheckingResult', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } + + /// Constructs a [NSTextCheckingResult] that wraps the given raw object pointer. + NSTextCheckingResult.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSTextCheckingResult', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } +} + +/// NSTextCheckingResultCreation +extension NSTextCheckingResultCreation on NSTextCheckingResult { + /// addressCheckingResultWithRange:components: + static NSTextCheckingResult addressCheckingResultWithRange( + NSRange range, { + required objc.NSDictionary components, + }) { + final _$$ref = components.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.addressCheckingResultWithRange:components:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_addressCheckingResultWithRange_components_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// correctionCheckingResultWithRange:replacementString: + static NSTextCheckingResult correctionCheckingResultWithRange( + NSRange range, { + required objc.NSString replacementString, + }) { + final _$$ref = replacementString.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.correctionCheckingResultWithRange:replacementString:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_correctionCheckingResultWithRange_replacementString_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// correctionCheckingResultWithRange:replacementString:alternativeStrings: + static NSTextCheckingResult correctionCheckingResultWithRange$1( + NSRange range, { + required objc.NSString replacementString, + required objc.NSArray alternativeStrings, + }) { + final _$$ref = replacementString.ref; + final _$$ref$1 = alternativeStrings.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.correctionCheckingResultWithRange:replacementString:alternativeStrings:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_1llrn9f( + _class_NSTextCheckingResult, + _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_, + range, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// dashCheckingResultWithRange:replacementString: + static NSTextCheckingResult dashCheckingResultWithRange( + NSRange range, { + required objc.NSString replacementString, + }) { + final _$$ref = replacementString.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.dashCheckingResultWithRange:replacementString:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_dashCheckingResultWithRange_replacementString_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// dateCheckingResultWithRange:date: + static NSTextCheckingResult dateCheckingResultWithRange( + NSRange range, { + required objc.NSDate date, + }) { + final _$$ref = date.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.dateCheckingResultWithRange:date:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_dateCheckingResultWithRange_date_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// dateCheckingResultWithRange:date:timeZone:duration: + static NSTextCheckingResult dateCheckingResultWithRange$1( + NSRange range, { + required objc.NSDate date, + required NSTimeZone timeZone, + required DartNSTimeInterval duration, + }) { + final _$$ref = date.ref; + final _$$ref$1 = timeZone.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.dateCheckingResultWithRange:date:timeZone:duration:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_u8u7og( + _class_NSTextCheckingResult, + _sel_dateCheckingResultWithRange_date_timeZone_duration_, + range, + _$$ref.pointer, + _$$ref$1.pointer, + duration, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// grammarCheckingResultWithRange:details: + static NSTextCheckingResult grammarCheckingResultWithRange( + NSRange range, { + required objc.NSArray details, + }) { + final _$$ref = details.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.grammarCheckingResultWithRange:details:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_grammarCheckingResultWithRange_details_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// linkCheckingResultWithRange:URL: + static NSTextCheckingResult linkCheckingResultWithRange( + NSRange range, { + required objc.NSURL URL, + }) { + final _$$ref = URL.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.linkCheckingResultWithRange:URL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_linkCheckingResultWithRange_URL_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// orthographyCheckingResultWithRange:orthography: + static NSTextCheckingResult orthographyCheckingResultWithRange( + NSRange range, { + required NSOrthography orthography, + }) { + final _$$ref = orthography.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.orthographyCheckingResultWithRange:orthography:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_orthographyCheckingResultWithRange_orthography_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// phoneNumberCheckingResultWithRange:phoneNumber: + static NSTextCheckingResult phoneNumberCheckingResultWithRange( + NSRange range, { + required objc.NSString phoneNumber, + }) { + final _$$ref = phoneNumber.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.phoneNumberCheckingResultWithRange:phoneNumber:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_phoneNumberCheckingResultWithRange_phoneNumber_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// quoteCheckingResultWithRange:replacementString: + static NSTextCheckingResult quoteCheckingResultWithRange( + NSRange range, { + required objc.NSString replacementString, + }) { + final _$$ref = replacementString.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.quoteCheckingResultWithRange:replacementString:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_quoteCheckingResultWithRange_replacementString_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// regularExpressionCheckingResultWithRanges:count:regularExpression: + static NSTextCheckingResult regularExpressionCheckingResultWithRanges( + NSRangePointer ranges, { + required DartNSUInteger count, + required NSRegularExpression regularExpression, + }) { + final _$$ref = regularExpression.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.regularExpressionCheckingResultWithRanges:count:regularExpression:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1fs7dv0( + _class_NSTextCheckingResult, + _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_, + ranges, + count, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// replacementCheckingResultWithRange:replacementString: + static NSTextCheckingResult replacementCheckingResultWithRange( + NSRange range, { + required objc.NSString replacementString, + }) { + final _$$ref = replacementString.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.replacementCheckingResultWithRange:replacementString:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_replacementCheckingResultWithRange_replacementString_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// spellCheckingResultWithRange: + static NSTextCheckingResult spellCheckingResultWithRange(NSRange range) { + objc.checkOsVersionInternal( + 'NSTextCheckingResult.spellCheckingResultWithRange:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1k1o1s7( + _class_NSTextCheckingResult, + _sel_spellCheckingResultWithRange_, + range, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// transitInformationCheckingResultWithRange:components: + static NSTextCheckingResult transitInformationCheckingResultWithRange( + NSRange range, { + required objc.NSDictionary components, + }) { + final _$$ref = components.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.transitInformationCheckingResultWithRange:components:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_transitInformationCheckingResultWithRange_components_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } +} + +/// NSTextCheckingResultOptional +extension NSTextCheckingResultOptional on NSTextCheckingResult { + /// URL + objc.NSURL? get URL { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.URL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_URL); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// addressComponents + objc.NSDictionary? get addressComponents { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.addressComponents', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_addressComponents); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// alternativeStrings + objc.NSArray? get alternativeStrings { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.alternativeStrings', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_alternativeStrings); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// components + objc.NSDictionary? get components { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.components', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_components); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// date + objc.NSDate? get date { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.date', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_date); + return $ret.address == 0 + ? null + : objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// duration + DartNSTimeInterval get duration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.duration', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); + } + + /// grammarDetails + objc.NSArray? get grammarDetails { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.grammarDetails', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_grammarDetails); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// numberOfRanges + DartNSUInteger get numberOfRanges { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.numberOfRanges', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfRanges); + } + + /// orthography + NSOrthography? get orthography { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.orthography', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_orthography); + return $ret.address == 0 + ? null + : NSOrthography.fromPointer($ret, retain: true, release: true); + } + + /// phoneNumber + objc.NSString? get phoneNumber { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.phoneNumber', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_phoneNumber); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// rangeAtIndex: + NSRange rangeAtIndex(DartNSUInteger idx) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.rangeAtIndex:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_d3i1uyStret( + $ptr, + _$$ref.pointer, + _sel_rangeAtIndex_, + idx, + ) + : $ptr.ref = _objc_msgSend_d3i1uy( + _$$ref.pointer, + _sel_rangeAtIndex_, + idx, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// rangeWithName: + NSRange rangeWithName(objc.NSString name) { + final _$$ref = object$.ref; + final _$$ref$1 = name.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.rangeWithName:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_182fzonStret( + $ptr, + _$$ref.pointer, + _sel_rangeWithName_, + _$$ref$1.pointer, + ) + : $ptr.ref = _objc_msgSend_182fzon( + _$$ref.pointer, + _sel_rangeWithName_, + _$$ref$1.pointer, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// regularExpression + NSRegularExpression? get regularExpression { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.regularExpression', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_regularExpression); + return $ret.address == 0 + ? null + : NSRegularExpression.fromPointer($ret, retain: true, release: true); + } + + /// replacementString + objc.NSString? get replacementString { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.replacementString', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_replacementString); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// resultByAdjustingRangesWithOffset: + NSTextCheckingResult resultByAdjustingRangesWithOffset(DartNSInteger offset) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.resultByAdjustingRangesWithOffset:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_qugqlf( + _$$ref.pointer, + _sel_resultByAdjustingRangesWithOffset_, + offset, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// timeZone + NSTimeZone? get timeZone { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.timeZone', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_timeZone); + return $ret.address == 0 + ? null + : NSTimeZone.fromPointer($ret, retain: true, release: true); + } +} + +sealed class NSTextCheckingType { + static const NSTextCheckingTypeOrthography = 1; + static const NSTextCheckingTypeSpelling = 2; + static const NSTextCheckingTypeGrammar = 4; + static const NSTextCheckingTypeDate = 8; + static const NSTextCheckingTypeAddress = 16; + static const NSTextCheckingTypeLink = 32; + static const NSTextCheckingTypeQuote = 64; + static const NSTextCheckingTypeDash = 128; + static const NSTextCheckingTypeReplacement = 256; + static const NSTextCheckingTypeCorrection = 512; + static const NSTextCheckingTypeRegularExpression = 1024; + static const NSTextCheckingTypePhoneNumber = 2048; + static const NSTextCheckingTypeTransitInformation = 4096; +} + +typedef NSTextCheckingTypes = ffi.Uint64; +typedef DartNSTextCheckingTypes = int; + +/// WARNING: NSThread is a stub. To generate bindings for this class, include +/// NSThread in your config's objc-interfaces list. +/// +/// NSThread +extension type NSThread._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSThread] that points to the same underlying object as [other]. + NSThread.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSThread] that wraps the given raw object pointer. + NSThread.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSThreadPerformAdditions +extension NSThreadPerformAdditions on objc.NSObject { + /// performSelector:onThread:withObject:waitUntilDone: + void performSelector$3( + ffi.Pointer aSelector, { + required NSThread onThread, + objc.ObjCObject? withObject, + required bool waitUntilDone, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = onThread.ref; + final _$$ref$2 = withObject?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelector:onThread:withObject:waitUntilDone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_1whyima( + _$$ref.pointer, + _sel_performSelector_onThread_withObject_waitUntilDone_, + aSelector, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + waitUntilDone, + ); + } + + /// performSelector:onThread:withObject:waitUntilDone:modes: + void performSelector$4( + ffi.Pointer aSelector, { + required NSThread onThread, + objc.ObjCObject? withObject, + required bool waitUntilDone, + objc.NSArray? modes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = onThread.ref; + final _$$ref$2 = withObject?.ref; + final _$$ref$3 = modes?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelector:onThread:withObject:waitUntilDone:modes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_1cc1buo( + _$$ref.pointer, + _sel_performSelector_onThread_withObject_waitUntilDone_modes_, + aSelector, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + waitUntilDone, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// performSelectorInBackground:withObject: + void performSelectorInBackground( + ffi.Pointer aSelector, { + objc.ObjCObject? withObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withObject?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelectorInBackground:withObject:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_1qv0eq4( + _$$ref.pointer, + _sel_performSelectorInBackground_withObject_, + aSelector, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// performSelectorOnMainThread:withObject:waitUntilDone: + void performSelectorOnMainThread( + ffi.Pointer aSelector, { + objc.ObjCObject? withObject, + required bool waitUntilDone, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withObject?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelectorOnMainThread:withObject:waitUntilDone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_tsocn4( + _$$ref.pointer, + _sel_performSelectorOnMainThread_withObject_waitUntilDone_, + aSelector, + _$$ref$1?.pointer ?? ffi.nullptr, + waitUntilDone, + ); + } + + /// performSelectorOnMainThread:withObject:waitUntilDone:modes: + void performSelectorOnMainThread$1( + ffi.Pointer aSelector, { + objc.ObjCObject? withObject, + required bool waitUntilDone, + objc.NSArray? modes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withObject?.ref; + final _$$ref$2 = modes?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelectorOnMainThread:withObject:waitUntilDone:modes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1fdou4m( + _$$ref.pointer, + _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_, + aSelector, + _$$ref$1?.pointer ?? ffi.nullptr, + waitUntilDone, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +typedef NSTimeInterval = ffi.Double; +typedef DartNSTimeInterval = double; + +/// WARNING: NSTimeZone is a stub. To generate bindings for this class, include +/// NSTimeZone in your config's objc-interfaces list. +/// +/// NSTimeZone +extension type NSTimeZone._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSTimeZone] that points to the same underlying object as [other]. + NSTimeZone.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSTimeZone] that wraps the given raw object pointer. + NSTimeZone.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSTimeZoneCreation +extension NSTimeZoneCreation on NSTimeZone {} + +enum NSTimeZoneNameStyle { + NSTimeZoneNameStyleStandard(0), + NSTimeZoneNameStyleShortStandard(1), + NSTimeZoneNameStyleDaylightSaving(2), + NSTimeZoneNameStyleShortDaylightSaving(3), + NSTimeZoneNameStyleGeneric(4), + NSTimeZoneNameStyleShortGeneric(5); + + final int value; + const NSTimeZoneNameStyle(this.value); + + static NSTimeZoneNameStyle fromValue(int value) => switch (value) { + 0 => NSTimeZoneNameStyleStandard, + 1 => NSTimeZoneNameStyleShortStandard, + 2 => NSTimeZoneNameStyleDaylightSaving, + 3 => NSTimeZoneNameStyleShortDaylightSaving, + 4 => NSTimeZoneNameStyleGeneric, + 5 => NSTimeZoneNameStyleShortGeneric, + _ => throw ArgumentError('Unknown value for NSTimeZoneNameStyle: $value'), + }; +} + +/// NSTypedstreamCompatibility +extension NSTypedstreamCompatibility on objc.NSCoder { + /// decodeNXObject + @Deprecated('Not supported') + objc.ObjCObject? decodeNXObject() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeNXObject', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodeNXObject); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// encodeNXObject: + @Deprecated('Not supported') + void encodeNXObject(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSCoder.encodeNXObject:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeNXObject_, + _$$ref$1.pointer, + ); + } +} + +typedef NSUInteger = ffi.UnsignedLong; +typedef DartNSUInteger = int; + +/// WARNING: NSURLAuthenticationChallenge is a stub. To generate bindings for this class, include +/// NSURLAuthenticationChallenge in your config's objc-interfaces list. +/// +/// NSURLAuthenticationChallenge +extension type NSURLAuthenticationChallenge._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [NSURLAuthenticationChallenge] that points to the same underlying object as [other]. + NSURLAuthenticationChallenge.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallenge', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLAuthenticationChallenge] that wraps the given raw object pointer. + NSURLAuthenticationChallenge.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallenge', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// NSURLAuthenticationChallengeSender +extension type NSURLAuthenticationChallengeSender._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSURLAuthenticationChallengeSender] that points to the same underlying object as [other]. + NSURLAuthenticationChallengeSender.as(objc.ObjCObject other) + : object$ = other; + + /// Constructs a [NSURLAuthenticationChallengeSender] that wraps the given raw object pointer. + NSURLAuthenticationChallengeSender.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLAuthenticationChallengeSender]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLAuthenticationChallengeSender, + ); + } +} + +extension NSURLAuthenticationChallengeSender$Methods + on NSURLAuthenticationChallengeSender { + /// cancelAuthenticationChallenge: + void cancelAuthenticationChallenge(NSURLAuthenticationChallenge challenge) { + final _$$ref = object$.ref; + final _$$ref$1 = challenge.ref; + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallengeSender.cancelAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_cancelAuthenticationChallenge_, + _$$ref$1.pointer, + ); + } + + /// continueWithoutCredentialForAuthenticationChallenge: + void continueWithoutCredentialForAuthenticationChallenge( + NSURLAuthenticationChallenge challenge, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = challenge.ref; + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallengeSender.continueWithoutCredentialForAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_continueWithoutCredentialForAuthenticationChallenge_, + _$$ref$1.pointer, + ); + } + + /// performDefaultHandlingForAuthenticationChallenge: + void performDefaultHandlingForAuthenticationChallenge( + NSURLAuthenticationChallenge challenge, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = challenge.ref; + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallengeSender.performDefaultHandlingForAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_performDefaultHandlingForAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLAuthenticationChallengeSender', + 'performDefaultHandlingForAuthenticationChallenge:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_performDefaultHandlingForAuthenticationChallenge_, + _$$ref$1.pointer, + ); + } + + /// rejectProtectionSpaceAndContinueWithChallenge: + void rejectProtectionSpaceAndContinueWithChallenge( + NSURLAuthenticationChallenge challenge, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = challenge.ref; + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallengeSender.rejectProtectionSpaceAndContinueWithChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_rejectProtectionSpaceAndContinueWithChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLAuthenticationChallengeSender', + 'rejectProtectionSpaceAndContinueWithChallenge:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_rejectProtectionSpaceAndContinueWithChallenge_, + _$$ref$1.pointer, + ); + } + + /// useCredential:forAuthenticationChallenge: + void useCredential( + NSURLCredential credential, { + required NSURLAuthenticationChallenge forAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = credential.ref; + final _$$ref$2 = forAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallengeSender.useCredential:forAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_useCredential_forAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSURLAuthenticationChallengeSender$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => objc.Protocol.fromPointer( + _protocol_NSURLAuthenticationChallengeSender.cast(), + ); + + /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLAuthenticationChallengeSender implement({ + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLAuthenticationChallengeSender', + ); + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implement(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implement( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implement(builder, performDefaultHandlingForAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implement(builder, rejectProtectionSpaceAndContinueWithChallenge_); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implement(builder, useCredential_forAuthenticationChallenge_); + builder.addProtocol($protocol); + return NSURLAuthenticationChallengeSender.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implement(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implement( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implement(builder, performDefaultHandlingForAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implement(builder, rejectProtectionSpaceAndContinueWithChallenge_); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implement(builder, useCredential_forAuthenticationChallenge_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLAuthenticationChallengeSender implementAsListener({ + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLAuthenticationChallengeSender', + ); + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implementAsListener(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implementAsListener( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implementAsListener( + builder, + performDefaultHandlingForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implementAsListener( + builder, + rejectProtectionSpaceAndContinueWithChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implementAsListener( + builder, + useCredential_forAuthenticationChallenge_, + ); + builder.addProtocol($protocol); + return NSURLAuthenticationChallengeSender.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implementAsListener(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implementAsListener( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implementAsListener( + builder, + performDefaultHandlingForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implementAsListener( + builder, + rejectProtectionSpaceAndContinueWithChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implementAsListener( + builder, + useCredential_forAuthenticationChallenge_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLAuthenticationChallengeSender implementAsBlocking({ + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLAuthenticationChallengeSender', + ); + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implementAsBlocking(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implementAsBlocking( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implementAsBlocking( + builder, + performDefaultHandlingForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implementAsBlocking( + builder, + rejectProtectionSpaceAndContinueWithChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implementAsBlocking( + builder, + useCredential_forAuthenticationChallenge_, + ); + builder.addProtocol($protocol); + return NSURLAuthenticationChallengeSender.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implementAsBlocking(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implementAsBlocking( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implementAsBlocking( + builder, + performDefaultHandlingForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implementAsBlocking( + builder, + rejectProtectionSpaceAndContinueWithChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implementAsBlocking( + builder, + useCredential_forAuthenticationChallenge_, + ); + builder.addProtocol($protocol); + } + + /// cancelAuthenticationChallenge: + static final cancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLAuthenticationChallenge) + >( + _protocol_NSURLAuthenticationChallengeSender, + _sel_cancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLAuthenticationChallengeSender, + _sel_cancelAuthenticationChallenge_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + ); + + /// continueWithoutCredentialForAuthenticationChallenge: + static final continueWithoutCredentialForAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLAuthenticationChallenge) + >( + _protocol_NSURLAuthenticationChallengeSender, + _sel_continueWithoutCredentialForAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLAuthenticationChallengeSender, + _sel_continueWithoutCredentialForAuthenticationChallenge_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + ); + + /// performDefaultHandlingForAuthenticationChallenge: + static final performDefaultHandlingForAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLAuthenticationChallenge) + >( + _protocol_NSURLAuthenticationChallengeSender, + _sel_performDefaultHandlingForAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLAuthenticationChallengeSender, + _sel_performDefaultHandlingForAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + ); + + /// rejectProtectionSpaceAndContinueWithChallenge: + static final rejectProtectionSpaceAndContinueWithChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLAuthenticationChallenge) + >( + _protocol_NSURLAuthenticationChallengeSender, + _sel_rejectProtectionSpaceAndContinueWithChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLAuthenticationChallengeSender, + _sel_rejectProtectionSpaceAndContinueWithChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + ); + + /// useCredential:forAuthenticationChallenge: + static final useCredential_forAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLCredential, NSURLAuthenticationChallenge) + >( + _protocol_NSURLAuthenticationChallengeSender, + _sel_useCredential_forAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLAuthenticationChallengeSender, + _sel_useCredential_forAuthenticationChallenge_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLCredential arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLCredential arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLCredential arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); +} + +typedef NSURLBookmarkFileCreationOptions = NSUInteger; + +/// WARNING: NSURLCache is a stub. To generate bindings for this class, include +/// NSURLCache in your config's objc-interfaces list. +/// +/// NSURLCache +extension type NSURLCache._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLCache] that points to the same underlying object as [other]. + NSURLCache.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLCache', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLCache] that wraps the given raw object pointer. + NSURLCache.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLCache', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +enum NSURLCacheStoragePolicy { + NSURLCacheStorageAllowed(0), + NSURLCacheStorageAllowedInMemoryOnly(1), + NSURLCacheStorageNotAllowed(2); + + final int value; + const NSURLCacheStoragePolicy(this.value); + + static NSURLCacheStoragePolicy fromValue(int value) => switch (value) { + 0 => NSURLCacheStorageAllowed, + 1 => NSURLCacheStorageAllowedInMemoryOnly, + 2 => NSURLCacheStorageNotAllowed, + _ => throw ArgumentError( + 'Unknown value for NSURLCacheStoragePolicy: $value', + ), + }; +} + +/// NSURLClient +extension NSURLClient on objc.NSObject { + /// URL:resourceDataDidBecomeAvailable: + @Deprecated('Use NSURLConnection instead') + void URL( + objc.NSURL sender, { + required objc.NSData resourceDataDidBecomeAvailable, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = resourceDataDidBecomeAvailable.ref; + objc.checkOsVersionInternal( + 'NSObject.URL:resourceDataDidBecomeAvailable:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URL_resourceDataDidBecomeAvailable_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URL:resourceDidFailLoadingWithReason: + @Deprecated('Use NSURLConnection instead') + void URL$1( + objc.NSURL sender, { + required objc.NSString resourceDidFailLoadingWithReason, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = resourceDidFailLoadingWithReason.ref; + objc.checkOsVersionInternal( + 'NSObject.URL:resourceDidFailLoadingWithReason:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URL_resourceDidFailLoadingWithReason_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLResourceDidCancelLoading: + @Deprecated('Use NSURLConnection instead') + void URLResourceDidCancelLoading(objc.NSURL sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSObject.URLResourceDidCancelLoading:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLResourceDidCancelLoading_, + _$$ref$1.pointer, + ); + } + + /// URLResourceDidFinishLoading: + @Deprecated('Use NSURLConnection instead') + void URLResourceDidFinishLoading(objc.NSURL sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSObject.URLResourceDidFinishLoading:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLResourceDidFinishLoading_, + _$$ref$1.pointer, + ); + } +} + +/// WARNING: NSURLConnection is a stub. To generate bindings for this class, include +/// NSURLConnection in your config's objc-interfaces list. +/// +/// NSURLConnection +extension type NSURLConnection._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLConnection] that points to the same underlying object as [other]. + NSURLConnection.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLConnection', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLConnection] that wraps the given raw object pointer. + NSURLConnection.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLConnection', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// NSURLConnectionDataDelegate +extension type NSURLConnectionDataDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLConnectionDelegate { + /// Constructs a [NSURLConnectionDataDelegate] that points to the same underlying object as [other]. + NSURLConnectionDataDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLConnectionDataDelegate] that wraps the given raw object pointer. + NSURLConnectionDataDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLConnectionDataDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLConnectionDataDelegate, + ); + } +} + +extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { + /// connection:canAuthenticateAgainstProtectionSpace: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + bool connection( + NSURLConnection connection, { + required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:canAuthenticateAgainstProtectionSpace:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:canAuthenticateAgainstProtectionSpace:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didCancelAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$1( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didCancelAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didCancelAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didCancelAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didFailWithError: + void connection$2( + NSURLConnection connection, { + required objc.NSError didFailWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didFailWithError.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didFailWithError:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didFailWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didFailWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didFailWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didReceiveAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$3( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didReceiveAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didReceiveAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didReceiveAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didReceiveData: + void connection$4( + NSURLConnection connection, { + required objc.NSData didReceiveData, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didReceiveData.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didReceiveData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didReceiveData_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didReceiveData:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didReceiveData_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didReceiveResponse: + void connection$5( + NSURLConnection connection, { + required NSURLResponse didReceiveResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didReceiveResponse.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didReceiveResponse:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didReceiveResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didReceiveResponse:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didReceiveResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite: + void connection$6( + NSURLConnection connection, { + required DartNSInteger didSendBodyData, + required DartNSInteger totalBytesWritten, + required DartNSInteger totalBytesExpectedToWrite, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:', + ); + } + _objc_msgSend_ifge4x( + _$$ref.pointer, + _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + _$$ref$1.pointer, + didSendBodyData, + totalBytesWritten, + totalBytesExpectedToWrite, + ); + } + + /// connection:needNewBodyStream: + objc.NSInputStream? connection$7( + NSURLConnection connection, { + required NSURLRequest needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:needNewBodyStream:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:needNewBodyStream:', + ); + } + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_connection_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// connection:willCacheResponse: + NSCachedURLResponse? connection$8( + NSURLConnection connection, { + required NSCachedURLResponse willCacheResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = willCacheResponse.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:willCacheResponse:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_willCacheResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:willCacheResponse:', + ); + } + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_connection_willCacheResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : NSCachedURLResponse.fromPointer($ret, retain: true, release: true); + } + + /// connection:willSendRequest:redirectResponse: + NSURLRequest? connection$9( + NSURLConnection connection, { + required NSURLRequest willSendRequest, + NSURLResponse? redirectResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = willSendRequest.ref; + final _$$ref$3 = redirectResponse?.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:willSendRequest:redirectResponse:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_willSendRequest_redirectResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:willSendRequest:redirectResponse:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_connection_willSendRequest_redirectResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : NSURLRequest.fromPointer($ret, retain: true, release: true); + } + + /// connection:willSendRequestForAuthenticationChallenge: + void connection$10( + NSURLConnection connection, { + required NSURLAuthenticationChallenge + willSendRequestForAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:willSendRequestForAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:willSendRequestForAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connectionDidFinishLoading: + void connectionDidFinishLoading(NSURLConnection connection) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connectionDidFinishLoading:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connectionDidFinishLoading_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connectionDidFinishLoading:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_connectionDidFinishLoading_, + _$$ref$1.pointer, + ); + } + + /// connectionShouldUseCredentialStorage: + bool connectionShouldUseCredentialStorage(NSURLConnection connection) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connectionShouldUseCredentialStorage:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connectionShouldUseCredentialStorage:', + ); + } + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLConnectionDataDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLConnectionDataDelegate.cast()); + + /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDataDelegate implement({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDataDelegate', + ); + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_.implement( + builder, + connection_didFailWithError_, + ); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_.implement( + builder, + connection_didReceiveData_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implement(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implement( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_.implement( + builder, + connectionDidFinishLoading_, + ); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_.implement( + builder, + connection_didFailWithError_, + ); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_.implement( + builder, + connection_didReceiveData_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implement(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implement( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_.implement( + builder, + connectionDidFinishLoading_, + ); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDataDelegate implementAsListener({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDataDelegate', + ); + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ + .implementAsListener(builder, connection_didReceiveData_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implementAsListener(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implementAsListener( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ + .implementAsListener(builder, connectionDidFinishLoading_); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ + .implementAsListener(builder, connection_didReceiveData_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implementAsListener(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implementAsListener( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ + .implementAsListener(builder, connectionDidFinishLoading_); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDataDelegate implementAsBlocking({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDataDelegate', + ); + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ + .implementAsBlocking(builder, connection_didReceiveData_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implementAsBlocking(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implementAsBlocking( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ + .implementAsBlocking(builder, connectionDidFinishLoading_); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ + .implementAsBlocking(builder, connection_didReceiveData_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implementAsBlocking(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implementAsBlocking( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ + .implementAsBlocking(builder, connectionDidFinishLoading_); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// connection:canAuthenticateAgainstProtectionSpace: + static final connection_canAuthenticateAgainstProtectionSpace_ = + objc.ObjCProtocolMethod< + bool Function(NSURLConnection, NSURLProtectionSpace) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection, NSURLProtectionSpace) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLProtectionSpace arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didCancelAuthenticationChallenge: + static final connection_didCancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didFailWithError: + static final connection_didFailWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, objc.NSError) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didFailWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didFailWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didReceiveAuthenticationChallenge: + static final connection_didReceiveAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didReceiveData: + static final connection_didReceiveData_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, objc.NSData) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveData_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didReceiveResponse: + static final connection_didReceiveResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLResponse) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveResponse_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite: + static final connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + NSInteger, + NSInteger, + ) + > + >(_1uu024u_protocolTrampoline_15e9dqx) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + DartNSInteger arg2, + DartNSInteger arg3, + DartNSInteger arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + DartNSInteger arg2, + DartNSInteger arg3, + DartNSInteger arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + DartNSInteger arg2, + DartNSInteger arg3, + DartNSInteger arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// connection:needNewBodyStream: + static final connection_needNewBodyStream_ = + objc.ObjCProtocolMethod< + objc.NSInputStream? Function(NSURLConnection, NSURLRequest) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_zi5eed) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.NSInputStream? Function(NSURLConnection, NSURLRequest) func) => + ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLRequest arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:willCacheResponse: + static final connection_willCacheResponse_ = + objc.ObjCProtocolMethod< + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willCacheResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_zi5eed) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willCacheResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse) + func, + ) => + ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSCachedURLResponse arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:willSendRequest:redirectResponse: + static final connection_willSendRequest_redirectResponse_ = + objc.ObjCProtocolMethod< + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willSendRequest_redirectResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willSendRequest_redirectResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?) + func, + ) => + ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLRequest arg2, + NSURLResponse? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// connection:willSendRequestForAuthenticationChallenge: + static final connection_willSendRequestForAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connectionDidFinishLoading: + static final connectionDidFinishLoading_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLConnectionDataDelegate, + _sel_connectionDidFinishLoading_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connectionDidFinishLoading_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.fromFunction( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + (void Function(NSURLConnection) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.listener( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + (void Function(NSURLConnection) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.blocking( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + ); + + /// connectionShouldUseCredentialStorage: + static final connectionShouldUseCredentialStorage_ = + objc.ObjCProtocolMethod( + _protocol_NSURLConnectionDataDelegate, + _sel_connectionShouldUseCredentialStorage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connectionShouldUseCredentialStorage_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + ); +} + +/// NSURLConnectionDelegate +extension type NSURLConnectionDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSURLConnectionDelegate] that points to the same underlying object as [other]. + NSURLConnectionDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLConnectionDelegate] that wraps the given raw object pointer. + NSURLConnectionDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLConnectionDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLConnectionDelegate, + ); + } +} + +extension NSURLConnectionDelegate$Methods on NSURLConnectionDelegate { + /// connection:canAuthenticateAgainstProtectionSpace: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + bool connection( + NSURLConnection connection, { + required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connection:canAuthenticateAgainstProtectionSpace:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connection:canAuthenticateAgainstProtectionSpace:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didCancelAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$1( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didCancelAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connection:didCancelAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connection:didCancelAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didFailWithError: + void connection$2( + NSURLConnection connection, { + required objc.NSError didFailWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didFailWithError.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connection:didFailWithError:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didFailWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connection:didFailWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didFailWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didReceiveAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$3( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didReceiveAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connection:didReceiveAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connection:didReceiveAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:willSendRequestForAuthenticationChallenge: + void connection$4( + NSURLConnection connection, { + required NSURLAuthenticationChallenge + willSendRequestForAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connection:willSendRequestForAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connection:willSendRequestForAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connectionShouldUseCredentialStorage: + bool connectionShouldUseCredentialStorage(NSURLConnection connection) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connectionShouldUseCredentialStorage:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connectionShouldUseCredentialStorage:', + ); + } + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLConnectionDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLConnectionDelegate.cast()); + + /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDelegate implement({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDelegate', + ); + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDelegate$Builder.connection_didFailWithError_.implement( + builder, + connection_didFailWithError_, + ); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDelegate$Builder.connection_didFailWithError_.implement( + builder, + connection_didFailWithError_, + ); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDelegate implementAsListener({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDelegate', + ); + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDelegate implementAsBlocking({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDelegate', + ); + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// connection:canAuthenticateAgainstProtectionSpace: + static final connection_canAuthenticateAgainstProtectionSpace_ = + objc.ObjCProtocolMethod< + bool Function(NSURLConnection, NSURLProtectionSpace) + >( + _protocol_NSURLConnectionDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection, NSURLProtectionSpace) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLProtectionSpace arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didCancelAuthenticationChallenge: + static final connection_didCancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didFailWithError: + static final connection_didFailWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, objc.NSError) + >( + _protocol_NSURLConnectionDelegate, + _sel_connection_didFailWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connection_didFailWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didReceiveAuthenticationChallenge: + static final connection_didReceiveAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:willSendRequestForAuthenticationChallenge: + static final connection_willSendRequestForAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connectionShouldUseCredentialStorage: + static final connectionShouldUseCredentialStorage_ = + objc.ObjCProtocolMethod( + _protocol_NSURLConnectionDelegate, + _sel_connectionShouldUseCredentialStorage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connectionShouldUseCredentialStorage_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + ); +} + +/// NSURLConnectionDownloadDelegate +extension type NSURLConnectionDownloadDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLConnectionDelegate { + /// Constructs a [NSURLConnectionDownloadDelegate] that points to the same underlying object as [other]. + NSURLConnectionDownloadDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLConnectionDownloadDelegate] that wraps the given raw object pointer. + NSURLConnectionDownloadDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLConnectionDownloadDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLConnectionDownloadDelegate, + ); + } +} + +extension NSURLConnectionDownloadDelegate$Methods + on NSURLConnectionDownloadDelegate { + /// connection:canAuthenticateAgainstProtectionSpace: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + bool connection( + NSURLConnection connection, { + required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:canAuthenticateAgainstProtectionSpace:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:canAuthenticateAgainstProtectionSpace:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didCancelAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$1( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didCancelAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:didCancelAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:didCancelAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didFailWithError: + void connection$2( + NSURLConnection connection, { + required objc.NSError didFailWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didFailWithError.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:didFailWithError:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didFailWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:didFailWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didFailWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didReceiveAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$3( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didReceiveAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:didReceiveAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:didReceiveAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didWriteData:totalBytesWritten:expectedTotalBytes: + void connection$4( + NSURLConnection connection, { + required int didWriteData, + required int totalBytesWritten, + required int expectedTotalBytes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:didWriteData:totalBytesWritten:expectedTotalBytes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:didWriteData:totalBytesWritten:expectedTotalBytes:', + ); + } + _objc_msgSend_3ow0v1( + _$$ref.pointer, + _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + _$$ref$1.pointer, + didWriteData, + totalBytesWritten, + expectedTotalBytes, + ); + } + + /// connection:willSendRequestForAuthenticationChallenge: + void connection$5( + NSURLConnection connection, { + required NSURLAuthenticationChallenge + willSendRequestForAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:willSendRequestForAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:willSendRequestForAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connectionDidFinishDownloading:destinationURL: + void connectionDidFinishDownloading( + NSURLConnection connection, { + required objc.NSURL destinationURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = destinationURL.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connectionDidFinishDownloading:destinationURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connectionDidFinishDownloading_destinationURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes: + void connectionDidResumeDownloading( + NSURLConnection connection, { + required int totalBytesWritten, + required int expectedTotalBytes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:', + ); + } + _objc_msgSend_6cylk3( + _$$ref.pointer, + _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + _$$ref$1.pointer, + totalBytesWritten, + expectedTotalBytes, + ); + } + + /// connectionShouldUseCredentialStorage: + bool connectionShouldUseCredentialStorage(NSURLConnection connection) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connectionShouldUseCredentialStorage:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connectionShouldUseCredentialStorage:', + ); + } + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLConnectionDownloadDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => objc.Protocol.fromPointer( + _protocol_NSURLConnectionDownloadDelegate.cast(), + ); + + /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDownloadDelegate implement({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDownloadDelegate', + ); + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implement(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implement( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implement(builder, connectionDidFinishDownloading_destinationURL_); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implement( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implement(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implement( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implement(builder, connectionDidFinishDownloading_destinationURL_); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implement( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDownloadDelegate implementAsListener({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDownloadDelegate', + ); + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implementAsListener( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implementAsListener( + builder, + connectionDidFinishDownloading_destinationURL_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implementAsListener( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implementAsListener( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implementAsListener( + builder, + connectionDidFinishDownloading_destinationURL_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implementAsListener( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDownloadDelegate implementAsBlocking({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDownloadDelegate', + ); + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implementAsBlocking( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implementAsBlocking( + builder, + connectionDidFinishDownloading_destinationURL_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implementAsBlocking( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implementAsBlocking( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implementAsBlocking( + builder, + connectionDidFinishDownloading_destinationURL_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implementAsBlocking( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// connection:canAuthenticateAgainstProtectionSpace: + static final connection_canAuthenticateAgainstProtectionSpace_ = + objc.ObjCProtocolMethod< + bool Function(NSURLConnection, NSURLProtectionSpace) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection, NSURLProtectionSpace) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLProtectionSpace arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didCancelAuthenticationChallenge: + static final connection_didCancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didFailWithError: + static final connection_didFailWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, objc.NSError) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didFailWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didFailWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didReceiveAuthenticationChallenge: + static final connection_didReceiveAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didWriteData:totalBytesWritten:expectedTotalBytes: + static final connection_didWriteData_totalBytesWritten_expectedTotalBytes_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, int, int, int) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + >(_1uu024u_protocolTrampoline_1qf1qkl) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + (void Function(NSURLConnection, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + (void Function(NSURLConnection, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// connection:willSendRequestForAuthenticationChallenge: + static final connection_willSendRequestForAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connectionDidFinishDownloading:destinationURL: + static final connectionDidFinishDownloading_destinationURL_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, objc.NSURL) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionDidFinishDownloading_destinationURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionDidFinishDownloading_destinationURL_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSURL arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSURL arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSURL arg2, + ) => func(arg1, arg2), + ), + ); + + /// connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes: + static final connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, int, int) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ) + > + >(_1uu024u_protocolTrampoline_9crvvv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLConnection, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLConnection, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// connectionShouldUseCredentialStorage: + static final connectionShouldUseCredentialStorage_ = + objc.ObjCProtocolMethod( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionShouldUseCredentialStorage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionShouldUseCredentialStorage_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + ); +} + +/// NSURLConnectionQueuedLoading +extension NSURLConnectionQueuedLoading on NSURLConnection { + /// sendAsynchronousRequest:queue:completionHandler: + @Deprecated( + 'Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h', + ) + static void sendAsynchronousRequest( + NSURLRequest request, { + required NSOperationQueue queue, + required objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = request.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLConnection.sendAsynchronousRequest:queue:completionHandler:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_18qun1e( + _class_NSURLConnection, + _sel_sendAsynchronousRequest_queue_completionHandler_, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSURLConnectionSynchronousLoading +extension NSURLConnectionSynchronousLoading on NSURLConnection { + /// sendSynchronousRequest:returningResponse:error: + @Deprecated( + 'Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h', + ) + static objc.NSData? sendSynchronousRequest( + NSURLRequest request, { + required ffi.Pointer> returningResponse, + }) { + final _$$ref = request.ref; + objc.checkOsVersionInternal( + 'NSURLConnection.sendSynchronousRequest:returningResponse:error:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 3, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_b99g2z( + _class_NSURLConnection, + _sel_sendSynchronousRequest_returningResponse_error_, + _$$ref.pointer, + returningResponse, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +/// WARNING: NSURLCredential is a stub. To generate bindings for this class, include +/// NSURLCredential in your config's objc-interfaces list. +/// +/// NSURLCredential +extension type NSURLCredential._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSURLCredential] that points to the same underlying object as [other]. + NSURLCredential.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLCredential', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLCredential] that wraps the given raw object pointer. + NSURLCredential.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLCredential', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +enum NSURLCredentialPersistence { + NSURLCredentialPersistenceNone(0), + NSURLCredentialPersistenceForSession(1), + NSURLCredentialPersistencePermanent(2), + NSURLCredentialPersistenceSynchronizable(3); + + final int value; + const NSURLCredentialPersistence(this.value); + + static NSURLCredentialPersistence fromValue(int value) => switch (value) { + 0 => NSURLCredentialPersistenceNone, + 1 => NSURLCredentialPersistenceForSession, + 2 => NSURLCredentialPersistencePermanent, + 3 => NSURLCredentialPersistenceSynchronizable, + _ => throw ArgumentError( + 'Unknown value for NSURLCredentialPersistence: $value', + ), + }; +} + +/// WARNING: NSURLCredentialStorage is a stub. To generate bindings for this class, include +/// NSURLCredentialStorage in your config's objc-interfaces list. +/// +/// NSURLCredentialStorage +extension type NSURLCredentialStorage._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLCredentialStorage] that points to the same underlying object as [other]. + NSURLCredentialStorage.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLCredentialStorage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLCredentialStorage] that wraps the given raw object pointer. + NSURLCredentialStorage.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLCredentialStorage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// WARNING: NSURLDownload is a stub. To generate bindings for this class, include +/// NSURLDownload in your config's objc-interfaces list. +/// +/// NSURLDownload +extension type NSURLDownload._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLDownload] that points to the same underlying object as [other]. + NSURLDownload.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLDownload', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLDownload] that wraps the given raw object pointer. + NSURLDownload.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLDownload', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// NSURLDownloadDelegate +extension type NSURLDownloadDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSURLDownloadDelegate] that points to the same underlying object as [other]. + NSURLDownloadDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLDownloadDelegate] that wraps the given raw object pointer. + NSURLDownloadDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLDownloadDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLDownloadDelegate, + ); + } +} + +extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { + /// download:canAuthenticateAgainstProtectionSpace: + bool download( + NSURLDownload connection, { + required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:canAuthenticateAgainstProtectionSpace:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_canAuthenticateAgainstProtectionSpace_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:canAuthenticateAgainstProtectionSpace:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_download_canAuthenticateAgainstProtectionSpace_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:decideDestinationWithSuggestedFilename: + void download$1( + NSURLDownload download, { + required objc.NSString decideDestinationWithSuggestedFilename, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = decideDestinationWithSuggestedFilename.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:decideDestinationWithSuggestedFilename:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_decideDestinationWithSuggestedFilename_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:decideDestinationWithSuggestedFilename:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_decideDestinationWithSuggestedFilename_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:didCancelAuthenticationChallenge: + void download$2( + NSURLDownload download, { + required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = didCancelAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didCancelAuthenticationChallenge:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didCancelAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didCancelAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_didCancelAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:didCreateDestination: + void download$3( + NSURLDownload download, { + required objc.NSString didCreateDestination, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = didCreateDestination.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didCreateDestination:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didCreateDestination_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didCreateDestination:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_didCreateDestination_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:didFailWithError: + void download$4( + NSURLDownload download, { + required objc.NSError didFailWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = didFailWithError.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didFailWithError:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didFailWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didFailWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_didFailWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:didReceiveAuthenticationChallenge: + void download$5( + NSURLDownload download, { + required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = didReceiveAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didReceiveAuthenticationChallenge:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didReceiveAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didReceiveAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_didReceiveAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:didReceiveDataOfLength: + void download$6( + NSURLDownload download, { + required DartNSUInteger didReceiveDataOfLength, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didReceiveDataOfLength:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didReceiveDataOfLength_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didReceiveDataOfLength:', + ); + } + _objc_msgSend_djsa9o( + _$$ref.pointer, + _sel_download_didReceiveDataOfLength_, + _$$ref$1.pointer, + didReceiveDataOfLength, + ); + } + + /// download:didReceiveResponse: + void download$7( + NSURLDownload download, { + required NSURLResponse didReceiveResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = didReceiveResponse.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didReceiveResponse:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didReceiveResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didReceiveResponse:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_didReceiveResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:shouldDecodeSourceDataOfMIMEType: + bool download$8( + NSURLDownload download, { + required objc.NSString shouldDecodeSourceDataOfMIMEType, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = shouldDecodeSourceDataOfMIMEType.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:shouldDecodeSourceDataOfMIMEType:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_shouldDecodeSourceDataOfMIMEType_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:shouldDecodeSourceDataOfMIMEType:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_download_shouldDecodeSourceDataOfMIMEType_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:willResumeWithResponse:fromByte: + void download$9( + NSURLDownload download, { + required NSURLResponse willResumeWithResponse, + required int fromByte, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = willResumeWithResponse.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:willResumeWithResponse:fromByte:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_willResumeWithResponse_fromByte_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:willResumeWithResponse:fromByte:', + ); + } + _objc_msgSend_wp1dbz( + _$$ref.pointer, + _sel_download_willResumeWithResponse_fromByte_, + _$$ref$1.pointer, + _$$ref$2.pointer, + fromByte, + ); + } + + /// download:willSendRequest:redirectResponse: + NSURLRequest? download$10( + NSURLDownload download, { + required NSURLRequest willSendRequest, + NSURLResponse? redirectResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = willSendRequest.ref; + final _$$ref$3 = redirectResponse?.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:willSendRequest:redirectResponse:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_willSendRequest_redirectResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:willSendRequest:redirectResponse:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_download_willSendRequest_redirectResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : NSURLRequest.fromPointer($ret, retain: true, release: true); + } + + /// downloadDidBegin: + void downloadDidBegin(NSURLDownload download) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.downloadDidBegin:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_downloadDidBegin_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'downloadDidBegin:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_downloadDidBegin_, + _$$ref$1.pointer, + ); + } + + /// downloadDidFinish: + void downloadDidFinish(NSURLDownload download) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.downloadDidFinish:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_downloadDidFinish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'downloadDidFinish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_downloadDidFinish_, + _$$ref$1.pointer, + ); + } + + /// downloadShouldUseCredentialStorage: + bool downloadShouldUseCredentialStorage(NSURLDownload download) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.downloadShouldUseCredentialStorage:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_downloadShouldUseCredentialStorage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'downloadShouldUseCredentialStorage:', + ); + } + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_downloadShouldUseCredentialStorage_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLDownloadDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLDownloadDelegate.cast()); + + /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLDownloadDelegate implement({ + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLDownloadDelegate', + ); + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implement(builder, download_decideDestinationWithSuggestedFilename_); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implement(builder, download_didCancelAuthenticationChallenge_); + NSURLDownloadDelegate$Builder.download_didCreateDestination_.implement( + builder, + download_didCreateDestination_, + ); + NSURLDownloadDelegate$Builder.download_didFailWithError_.implement( + builder, + download_didFailWithError_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implement(builder, download_didReceiveAuthenticationChallenge_); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_.implement( + builder, + download_didReceiveDataOfLength_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_.implement( + builder, + download_didReceiveResponse_, + ); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implement(builder, download_willResumeWithResponse_fromByte_); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implement( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implement( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + return NSURLDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implement(builder, download_decideDestinationWithSuggestedFilename_); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implement(builder, download_didCancelAuthenticationChallenge_); + NSURLDownloadDelegate$Builder.download_didCreateDestination_.implement( + builder, + download_didCreateDestination_, + ); + NSURLDownloadDelegate$Builder.download_didFailWithError_.implement( + builder, + download_didFailWithError_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implement(builder, download_didReceiveAuthenticationChallenge_); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_.implement( + builder, + download_didReceiveDataOfLength_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_.implement( + builder, + download_didReceiveResponse_, + ); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implement(builder, download_willResumeWithResponse_fromByte_); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implement( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implement( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLDownloadDelegate implementAsListener({ + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLDownloadDelegate', + ); + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implementAsListener( + builder, + download_decideDestinationWithSuggestedFilename_, + ); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + download_didCancelAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didCreateDestination_ + .implementAsListener(builder, download_didCreateDestination_); + NSURLDownloadDelegate$Builder.download_didFailWithError_ + .implementAsListener(builder, download_didFailWithError_); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + download_didReceiveAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ + .implementAsListener(builder, download_didReceiveDataOfLength_); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_ + .implementAsListener(builder, download_didReceiveResponse_); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implementAsListener( + builder, + download_willResumeWithResponse_fromByte_, + ); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsListener( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsListener( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + return NSURLDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implementAsListener( + builder, + download_decideDestinationWithSuggestedFilename_, + ); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + download_didCancelAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didCreateDestination_ + .implementAsListener(builder, download_didCreateDestination_); + NSURLDownloadDelegate$Builder.download_didFailWithError_ + .implementAsListener(builder, download_didFailWithError_); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + download_didReceiveAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ + .implementAsListener(builder, download_didReceiveDataOfLength_); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_ + .implementAsListener(builder, download_didReceiveResponse_); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implementAsListener( + builder, + download_willResumeWithResponse_fromByte_, + ); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsListener( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsListener( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLDownloadDelegate implementAsBlocking({ + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLDownloadDelegate', + ); + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implementAsBlocking( + builder, + download_decideDestinationWithSuggestedFilename_, + ); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + download_didCancelAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didCreateDestination_ + .implementAsBlocking(builder, download_didCreateDestination_); + NSURLDownloadDelegate$Builder.download_didFailWithError_ + .implementAsBlocking(builder, download_didFailWithError_); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + download_didReceiveAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ + .implementAsBlocking(builder, download_didReceiveDataOfLength_); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_ + .implementAsBlocking(builder, download_didReceiveResponse_); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implementAsBlocking( + builder, + download_willResumeWithResponse_fromByte_, + ); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsBlocking( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsBlocking( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + return NSURLDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implementAsBlocking( + builder, + download_decideDestinationWithSuggestedFilename_, + ); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + download_didCancelAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didCreateDestination_ + .implementAsBlocking(builder, download_didCreateDestination_); + NSURLDownloadDelegate$Builder.download_didFailWithError_ + .implementAsBlocking(builder, download_didFailWithError_); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + download_didReceiveAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ + .implementAsBlocking(builder, download_didReceiveDataOfLength_); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_ + .implementAsBlocking(builder, download_didReceiveResponse_); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implementAsBlocking( + builder, + download_willResumeWithResponse_fromByte_, + ); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsBlocking( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsBlocking( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + } + + /// download:canAuthenticateAgainstProtectionSpace: + static final download_canAuthenticateAgainstProtectionSpace_ = + objc.ObjCProtocolMethod< + bool Function(NSURLDownload, NSURLProtectionSpace) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_canAuthenticateAgainstProtectionSpace_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_canAuthenticateAgainstProtectionSpace_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLDownload, NSURLProtectionSpace) func) => + ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLProtectionSpace arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:decideDestinationWithSuggestedFilename: + static final download_decideDestinationWithSuggestedFilename_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, objc.NSString) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_decideDestinationWithSuggestedFilename_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_decideDestinationWithSuggestedFilename_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didCancelAuthenticationChallenge: + static final download_didCancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, NSURLAuthenticationChallenge) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didCancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didCancelAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didCreateDestination: + static final download_didCreateDestination_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, objc.NSString) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didCreateDestination_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didCreateDestination_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didFailWithError: + static final download_didFailWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, objc.NSError) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didFailWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didFailWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didReceiveAuthenticationChallenge: + static final download_didReceiveAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, NSURLAuthenticationChallenge) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didReceiveDataOfLength: + static final download_didReceiveDataOfLength_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, DartNSUInteger) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveDataOfLength_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >(_1uu024u_protocolTrampoline_wy9lus) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveDataOfLength_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + DartNSUInteger arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + DartNSUInteger arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + DartNSUInteger arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didReceiveResponse: + static final download_didReceiveResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, NSURLResponse) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveResponse_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:shouldDecodeSourceDataOfMIMEType: + static final download_shouldDecodeSourceDataOfMIMEType_ = + objc.ObjCProtocolMethod( + _protocol_NSURLDownloadDelegate, + _sel_download_shouldDecodeSourceDataOfMIMEType_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_shouldDecodeSourceDataOfMIMEType_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSURLDownload_NSString.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:willResumeWithResponse:fromByte: + static final download_willResumeWithResponse_fromByte_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, NSURLResponse, int) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_willResumeWithResponse_fromByte_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + > + >(_1uu024u_protocolTrampoline_34xzuf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_willResumeWithResponse_fromByte_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, NSURLResponse, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLDownload, NSURLResponse, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLDownload, NSURLResponse, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// download:willSendRequest:redirectResponse: + static final download_willSendRequest_redirectResponse_ = + objc.ObjCProtocolMethod< + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_willSendRequest_redirectResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_willSendRequest_redirectResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?) + func, + ) => + ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLRequest arg2, + NSURLResponse? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// downloadDidBegin: + static final downloadDidBegin_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLDownloadDelegate, + _sel_downloadDidBegin_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_downloadDidBegin_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.fromFunction( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.listener( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.blocking( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + ); + + /// downloadDidFinish: + static final downloadDidFinish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLDownloadDelegate, + _sel_downloadDidFinish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_downloadDidFinish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.fromFunction( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.listener( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.blocking( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + ); + + /// downloadShouldUseCredentialStorage: + static final downloadShouldUseCredentialStorage_ = + objc.ObjCProtocolMethod( + _protocol_NSURLDownloadDelegate, + _sel_downloadShouldUseCredentialStorage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_downloadShouldUseCredentialStorage_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLDownload) func) => + ObjCBlock_bool_ffiVoid_NSURLDownload.fromFunction( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + ); +} + +const int NSURLErrorAppTransportSecurityRequiresSecureConnection = -1022; + +const int NSURLErrorBackgroundSessionInUseByAnotherProcess = -996; + +const int NSURLErrorBackgroundSessionRequiresSharedContainer = -995; + +const int NSURLErrorBackgroundSessionWasDisconnected = -997; + +const int NSURLErrorBadServerResponse = -1011; + +const int NSURLErrorBadURL = -1000; + +const int NSURLErrorCallIsActive = -1019; + +const int NSURLErrorCancelled = -999; + +const int NSURLErrorCancelledReasonBackgroundUpdatesDisabled = 1; + +const int NSURLErrorCancelledReasonInsufficientSystemResources = 2; + +const int NSURLErrorCancelledReasonUserForceQuitApplication = 0; + +const int NSURLErrorCannotCloseFile = -3002; + +const int NSURLErrorCannotConnectToHost = -1004; + +const int NSURLErrorCannotCreateFile = -3000; + +const int NSURLErrorCannotDecodeContentData = -1016; + +const int NSURLErrorCannotDecodeRawData = -1015; + +const int NSURLErrorCannotFindHost = -1003; + +const int NSURLErrorCannotLoadFromNetwork = -2000; + +const int NSURLErrorCannotMoveFile = -3005; + +const int NSURLErrorCannotOpenFile = -3001; + +const int NSURLErrorCannotParseResponse = -1017; + +const int NSURLErrorCannotRemoveFile = -3004; + +const int NSURLErrorCannotWriteToFile = -3003; + +const int NSURLErrorClientCertificateRejected = -1205; + +const int NSURLErrorClientCertificateRequired = -1206; + +const int NSURLErrorDNSLookupFailed = -1006; + +const int NSURLErrorDataLengthExceedsMaximum = -1103; + +const int NSURLErrorDataNotAllowed = -1020; + +const int NSURLErrorDownloadDecodingFailedMidStream = -3006; + +const int NSURLErrorDownloadDecodingFailedToComplete = -3007; + +const int NSURLErrorFileDoesNotExist = -1100; + +const int NSURLErrorFileIsDirectory = -1101; + +const int NSURLErrorFileOutsideSafeArea = -1104; + +const int NSURLErrorHTTPTooManyRedirects = -1007; + +const int NSURLErrorInternationalRoamingOff = -1018; + +const int NSURLErrorNetworkConnectionLost = -1005; + +enum NSURLErrorNetworkUnavailableReason { + NSURLErrorNetworkUnavailableReasonCellular(0), + NSURLErrorNetworkUnavailableReasonExpensive(1), + NSURLErrorNetworkUnavailableReasonConstrained(2); + + final int value; + const NSURLErrorNetworkUnavailableReason(this.value); + + static NSURLErrorNetworkUnavailableReason fromValue(int value) => + switch (value) { + 0 => NSURLErrorNetworkUnavailableReasonCellular, + 1 => NSURLErrorNetworkUnavailableReasonExpensive, + 2 => NSURLErrorNetworkUnavailableReasonConstrained, + _ => throw ArgumentError( + 'Unknown value for NSURLErrorNetworkUnavailableReason: $value', + ), + }; +} + +const int NSURLErrorNoPermissionsToReadFile = -1102; + +const int NSURLErrorNotConnectedToInternet = -1009; + +const int NSURLErrorRedirectToNonExistentLocation = -1010; + +const int NSURLErrorRequestBodyStreamExhausted = -1021; + +const int NSURLErrorResourceUnavailable = -1008; + +const int NSURLErrorSecureConnectionFailed = -1200; + +const int NSURLErrorServerCertificateHasBadDate = -1201; + +const int NSURLErrorServerCertificateHasUnknownRoot = -1203; + +const int NSURLErrorServerCertificateNotYetValid = -1204; + +const int NSURLErrorServerCertificateUntrusted = -1202; + +const int NSURLErrorTimedOut = -1001; + +const int NSURLErrorUnknown = -1; + +const int NSURLErrorUnsupportedURL = -1002; + +const int NSURLErrorUserAuthenticationRequired = -1013; + +const int NSURLErrorUserCancelledAuthentication = -1012; + +const int NSURLErrorZeroByteResource = -1014; + +typedef NSURLFileProtectionType = ffi.Pointer; +typedef DartNSURLFileProtectionType = objc.NSString; +typedef NSURLFileResourceType = ffi.Pointer; +typedef DartNSURLFileResourceType = objc.NSString; + +/// NSURLHandleClient +@Deprecated('Deprecated') +extension type NSURLHandleClient._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSURLHandleClient] that points to the same underlying object as [other]. + NSURLHandleClient.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLHandleClient] that wraps the given raw object pointer. + NSURLHandleClient.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLHandleClient]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLHandleClient, + ); + } +} + +extension NSURLHandleClient$Methods on NSURLHandleClient { + /// URLHandle:resourceDataDidBecomeAvailable: + @Deprecated('Deprecated') + void URLHandle( + objc.NSURLHandle sender, { + required objc.NSData resourceDataDidBecomeAvailable, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = resourceDataDidBecomeAvailable.ref; + objc.checkOsVersionInternal( + 'NSURLHandleClient.URLHandle:resourceDataDidBecomeAvailable:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLHandle_resourceDataDidBecomeAvailable_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLHandle:resourceDidFailLoadingWithReason: + @Deprecated('Deprecated') + void URLHandle$1( + objc.NSURLHandle sender, { + required objc.NSString resourceDidFailLoadingWithReason, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = resourceDidFailLoadingWithReason.ref; + objc.checkOsVersionInternal( + 'NSURLHandleClient.URLHandle:resourceDidFailLoadingWithReason:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLHandle_resourceDidFailLoadingWithReason_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLHandleResourceDidBeginLoading: + @Deprecated('Deprecated') + void URLHandleResourceDidBeginLoading(objc.NSURLHandle sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSURLHandleClient.URLHandleResourceDidBeginLoading:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLHandleResourceDidBeginLoading_, + _$$ref$1.pointer, + ); + } + + /// URLHandleResourceDidCancelLoading: + @Deprecated('Deprecated') + void URLHandleResourceDidCancelLoading(objc.NSURLHandle sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSURLHandleClient.URLHandleResourceDidCancelLoading:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLHandleResourceDidCancelLoading_, + _$$ref$1.pointer, + ); + } + + /// URLHandleResourceDidFinishLoading: + @Deprecated('Deprecated') + void URLHandleResourceDidFinishLoading(objc.NSURLHandle sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSURLHandleClient.URLHandleResourceDidFinishLoading:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLHandleResourceDidFinishLoading_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLHandleClient$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLHandleClient.cast()); + + /// Builds an object that implements the NSURLHandleClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLHandleClient implement({ + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implement( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implement( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidBeginLoading_.implement( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidCancelLoading_.implement( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidFinishLoading_.implement( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLHandleClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLHandleClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implement( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implement( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidBeginLoading_.implement( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidCancelLoading_.implement( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidFinishLoading_.implement( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLHandleClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLHandleClient implementAsListener({ + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implementAsListener( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implementAsListener( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidBeginLoading_.implementAsListener( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidCancelLoading_.implementAsListener( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidFinishLoading_.implementAsListener( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLHandleClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLHandleClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implementAsListener( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implementAsListener( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidBeginLoading_.implementAsListener( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidCancelLoading_.implementAsListener( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidFinishLoading_.implementAsListener( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLHandleClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLHandleClient implementAsBlocking({ + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implementAsBlocking( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implementAsBlocking( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidBeginLoading_.implementAsBlocking( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidCancelLoading_.implementAsBlocking( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidFinishLoading_.implementAsBlocking( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLHandleClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLHandleClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implementAsBlocking( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implementAsBlocking( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidBeginLoading_.implementAsBlocking( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidCancelLoading_.implementAsBlocking( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidFinishLoading_.implementAsBlocking( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// URLHandle:resourceDataDidBecomeAvailable: + static final URLHandle_resourceDataDidBecomeAvailable_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSURLHandle, objc.NSData) + >( + _protocol_NSURLHandleClient, + _sel_URLHandle_resourceDataDidBecomeAvailable_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLHandleClient, + _sel_URLHandle_resourceDataDidBecomeAvailable_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSURLHandle, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.fromFunction( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSURLHandle, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.listener( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSURLHandle, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.blocking( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLHandle:resourceDidFailLoadingWithReason: + static final URLHandle_resourceDidFailLoadingWithReason_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSURLHandle, objc.NSString) + >( + _protocol_NSURLHandleClient, + _sel_URLHandle_resourceDidFailLoadingWithReason_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLHandleClient, + _sel_URLHandle_resourceDidFailLoadingWithReason_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSURLHandle, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.fromFunction( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSURLHandle, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.listener( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSURLHandle, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.blocking( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLHandleResourceDidBeginLoading: + static final URLHandleResourceDidBeginLoading_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidBeginLoading_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidBeginLoading_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + ); + + /// URLHandleResourceDidCancelLoading: + static final URLHandleResourceDidCancelLoading_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidCancelLoading_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidCancelLoading_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + ); + + /// URLHandleResourceDidFinishLoading: + static final URLHandleResourceDidFinishLoading_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidFinishLoading_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidFinishLoading_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + ); +} + +/// NSURLLoading +extension NSURLLoading on objc.NSURL { + /// URLHandleUsingCache: + @Deprecated('Use NSURLConnection instead') + objc.NSURLHandle? URLHandleUsingCache(bool shouldUseCache) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLHandleUsingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1t6aok9( + _$$ref.pointer, + _sel_URLHandleUsingCache_, + shouldUseCache, + ); + return $ret.address == 0 + ? null + : objc.NSURLHandle.fromPointer($ret, retain: true, release: true); + } + + /// loadResourceDataNotifyingClient:usingCache: + @Deprecated('Use NSURLConnection instead') + void loadResourceDataNotifyingClient( + objc.ObjCObject client, { + required bool usingCache, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = client.ref; + objc.checkOsVersionInternal( + 'NSURL.loadResourceDataNotifyingClient:usingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_6p7ndb( + _$$ref.pointer, + _sel_loadResourceDataNotifyingClient_usingCache_, + _$$ref$1.pointer, + usingCache, + ); + } + + /// propertyForKey: + @Deprecated('Use NSURLConnection instead') + objc.ObjCObject? propertyForKey(objc.NSString propertyKey) { + final _$$ref = object$.ref; + final _$$ref$1 = propertyKey.ref; + objc.checkOsVersionInternal( + 'NSURL.propertyForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_propertyForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// resourceDataUsingCache: + @Deprecated('Use NSURLConnection instead') + objc.NSData? resourceDataUsingCache(bool shouldUseCache) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.resourceDataUsingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1t6aok9( + _$$ref.pointer, + _sel_resourceDataUsingCache_, + shouldUseCache, + ); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// setProperty:forKey: + @Deprecated('Use NSURLConnection instead') + bool setProperty(objc.ObjCObject property, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = property.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSURL.setProperty:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_setProperty_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// setResourceData: + @Deprecated('Use NSURLConnection instead') + bool setResourceData(objc.NSData data) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + objc.checkOsVersionInternal( + 'NSURL.setResourceData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_setResourceData_, + _$$ref$1.pointer, + ); + } +} + +/// NSURLPathUtilities +extension NSURLPathUtilities on objc.NSURL { + /// URLByAppendingPathComponent: + objc.NSURL? URLByAppendingPathComponent(objc.NSString pathComponent) { + final _$$ref = object$.ref; + final _$$ref$1 = pathComponent.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathComponent:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_URLByAppendingPathComponent_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByAppendingPathComponent:isDirectory: + objc.NSURL? URLByAppendingPathComponent$1( + objc.NSString pathComponent, { + required bool isDirectory, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = pathComponent.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathComponent:isDirectory:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.pointer, + _sel_URLByAppendingPathComponent_isDirectory_, + _$$ref$1.pointer, + isDirectory, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByAppendingPathExtension: + objc.NSURL? URLByAppendingPathExtension(objc.NSString pathExtension) { + final _$$ref = object$.ref; + final _$$ref$1 = pathExtension.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathExtension:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_URLByAppendingPathExtension_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByDeletingLastPathComponent + objc.NSURL? get URLByDeletingLastPathComponent { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByDeletingLastPathComponent', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByDeletingLastPathComponent, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByDeletingPathExtension + objc.NSURL? get URLByDeletingPathExtension { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByDeletingPathExtension', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByDeletingPathExtension, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByResolvingSymlinksInPath + objc.NSURL? get URLByResolvingSymlinksInPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByResolvingSymlinksInPath', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByResolvingSymlinksInPath, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByStandardizingPath + objc.NSURL? get URLByStandardizingPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByStandardizingPath', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByStandardizingPath, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// checkResourceIsReachableAndReturnError: + bool checkResourceIsReachableAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.checkResourceIsReachableAndReturnError:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_checkResourceIsReachableAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// lastPathComponent + objc.NSString? get lastPathComponent { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.lastPathComponent', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// pathComponents + objc.NSArray? get pathComponents { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.pathComponents', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// pathExtension + objc.NSString? get pathExtension { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.pathExtension', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// fileURLWithPathComponents: + static objc.NSURL? fileURLWithPathComponents(objc.NSArray components) { + final _$$ref = components.ref; + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPathComponents:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSURL, + _sel_fileURLWithPathComponents_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSURLProtectionSpace is a stub. To generate bindings for this class, include +/// NSURLProtectionSpace in your config's objc-interfaces list. +/// +/// NSURLProtectionSpace +extension type NSURLProtectionSpace._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSURLProtectionSpace] that points to the same underlying object as [other]. + NSURLProtectionSpace.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLProtectionSpace', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLProtectionSpace] that wraps the given raw object pointer. + NSURLProtectionSpace.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLProtectionSpace', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// WARNING: NSURLProtocol is a stub. To generate bindings for this class, include +/// NSURLProtocol in your config's objc-interfaces list. +/// +/// NSURLProtocol +extension type NSURLProtocol._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLProtocol] that points to the same underlying object as [other]. + NSURLProtocol.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLProtocol', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLProtocol] that wraps the given raw object pointer. + NSURLProtocol.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLProtocol', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// NSURLProtocolClient +extension type NSURLProtocolClient._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSURLProtocolClient] that points to the same underlying object as [other]. + NSURLProtocolClient.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLProtocolClient] that wraps the given raw object pointer. + NSURLProtocolClient.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLProtocolClient]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLProtocolClient, + ); + } +} + +extension NSURLProtocolClient$Methods on NSURLProtocolClient { + /// URLProtocol:cachedResponseIsValid: + void URLProtocol( + NSURLProtocol protocol, { + required NSCachedURLResponse cachedResponseIsValid, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = cachedResponseIsValid.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:cachedResponseIsValid:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLProtocol_cachedResponseIsValid_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLProtocol:didCancelAuthenticationChallenge: + void URLProtocol$1( + NSURLProtocol protocol, { + required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = didCancelAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:didCancelAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLProtocol_didCancelAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLProtocol:didFailWithError: + void URLProtocol$2( + NSURLProtocol protocol, { + required objc.NSError didFailWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = didFailWithError.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:didFailWithError:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLProtocol_didFailWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLProtocol:didLoadData: + void URLProtocol$3( + NSURLProtocol protocol, { + required objc.NSData didLoadData, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = didLoadData.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:didLoadData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLProtocol_didLoadData_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLProtocol:didReceiveAuthenticationChallenge: + void URLProtocol$4( + NSURLProtocol protocol, { + required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = didReceiveAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:didReceiveAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLProtocol_didReceiveAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLProtocol:didReceiveResponse:cacheStoragePolicy: + void URLProtocol$5( + NSURLProtocol protocol, { + required NSURLResponse didReceiveResponse, + required NSURLCacheStoragePolicy cacheStoragePolicy, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = didReceiveResponse.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:didReceiveResponse:cacheStoragePolicy:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_1mik4ys( + _$$ref.pointer, + _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, + _$$ref$1.pointer, + _$$ref$2.pointer, + cacheStoragePolicy.value, + ); + } + + /// URLProtocol:wasRedirectedToRequest:redirectResponse: + void URLProtocol$6( + NSURLProtocol protocol, { + required NSURLRequest wasRedirectedToRequest, + required NSURLResponse redirectResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = wasRedirectedToRequest.ref; + final _$$ref$3 = redirectResponse.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:wasRedirectedToRequest:redirectResponse:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLProtocolDidFinishLoading: + void URLProtocolDidFinishLoading(NSURLProtocol protocol) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocolDidFinishLoading:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLProtocolDidFinishLoading_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLProtocolClient$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLProtocolClient.cast()); + + /// Builds an object that implements the NSURLProtocolClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLProtocolClient implement({ + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); + NSURLProtocolClient$Builder.URLProtocol_cachedResponseIsValid_.implement( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implement( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder.URLProtocol_didFailWithError_.implement( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implement( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implement( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implement( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implement( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder.URLProtocolDidFinishLoading_.implement( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLProtocolClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLProtocolClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLProtocolClient$Builder.URLProtocol_cachedResponseIsValid_.implement( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implement( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder.URLProtocol_didFailWithError_.implement( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implement( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implement( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implement( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implement( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder.URLProtocolDidFinishLoading_.implement( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLProtocolClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLProtocolClient implementAsListener({ + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); + NSURLProtocolClient$Builder + .URLProtocol_cachedResponseIsValid_.implementAsListener( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implementAsListener( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didFailWithError_.implementAsListener( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsListener( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implementAsListener( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsListener( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsListener( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder + .URLProtocolDidFinishLoading_.implementAsListener( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLProtocolClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLProtocolClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLProtocolClient$Builder + .URLProtocol_cachedResponseIsValid_.implementAsListener( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implementAsListener( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didFailWithError_.implementAsListener( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsListener( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implementAsListener( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsListener( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsListener( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder + .URLProtocolDidFinishLoading_.implementAsListener( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLProtocolClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLProtocolClient implementAsBlocking({ + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); + NSURLProtocolClient$Builder + .URLProtocol_cachedResponseIsValid_.implementAsBlocking( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implementAsBlocking( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didFailWithError_.implementAsBlocking( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsBlocking( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implementAsBlocking( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsBlocking( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsBlocking( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder + .URLProtocolDidFinishLoading_.implementAsBlocking( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLProtocolClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLProtocolClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLProtocolClient$Builder + .URLProtocol_cachedResponseIsValid_.implementAsBlocking( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implementAsBlocking( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didFailWithError_.implementAsBlocking( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsBlocking( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implementAsBlocking( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsBlocking( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsBlocking( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder + .URLProtocolDidFinishLoading_.implementAsBlocking( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// URLProtocol:cachedResponseIsValid: + static final URLProtocol_cachedResponseIsValid_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, NSCachedURLResponse) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_cachedResponseIsValid_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_cachedResponseIsValid_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, NSCachedURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSCachedURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSCachedURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSCachedURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSCachedURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSCachedURLResponse arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLProtocol:didCancelAuthenticationChallenge: + static final URLProtocol_didCancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, NSURLAuthenticationChallenge) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didCancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didCancelAuthenticationChallenge_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLProtocol:didFailWithError: + static final URLProtocol_didFailWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, objc.NSError) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didFailWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didFailWithError_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLProtocol:didLoadData: + static final URLProtocol_didLoadData_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, objc.NSData) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didLoadData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didLoadData_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.fromFunction( + (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSURLProtocol, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.listener( + (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSURLProtocol, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.blocking( + (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + ); + + /// URLProtocol:didReceiveAuthenticationChallenge: + static final URLProtocol_didReceiveAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, NSURLAuthenticationChallenge) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didReceiveAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didReceiveAuthenticationChallenge_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLProtocol:didReceiveResponse:cacheStoragePolicy: + static final URLProtocol_didReceiveResponse_cacheStoragePolicy_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >(_1uu024u_protocolTrampoline_1j7coyk) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, + isRequired: true, + isInstanceMethod: true, + ), + ( + void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLResponse arg2, + NSURLCacheStoragePolicy arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLResponse arg2, + NSURLCacheStoragePolicy arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLResponse arg2, + NSURLCacheStoragePolicy arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLProtocol:wasRedirectedToRequest:redirectResponse: + static final URLProtocol_wasRedirectedToRequest_redirectResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLRequest arg2, + NSURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLRequest arg2, + NSURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLRequest arg2, + NSURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLProtocolDidFinishLoading: + static final URLProtocolDidFinishLoading_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLProtocolClient, + _sel_URLProtocolDidFinishLoading_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocolDidFinishLoading_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.fromFunction( + (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), + ), + (void Function(NSURLProtocol) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.listener( + (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), + ), + (void Function(NSURLProtocol) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.blocking( + (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), + ), + ); +} + +enum NSURLRelationship { + NSURLRelationshipContains(0), + NSURLRelationshipSame(1), + NSURLRelationshipOther(2); + + final int value; + const NSURLRelationship(this.value); + + static NSURLRelationship fromValue(int value) => switch (value) { + 0 => NSURLRelationshipContains, + 1 => NSURLRelationshipSame, + 2 => NSURLRelationshipOther, + _ => throw ArgumentError('Unknown value for NSURLRelationship: $value'), + }; +} + +/// WARNING: NSURLRequest is a stub. To generate bindings for this class, include +/// NSURLRequest in your config's objc-interfaces list. +/// +/// NSURLRequest +extension type NSURLRequest._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying, + objc.NSMutableCopying { + /// Constructs a [NSURLRequest] that points to the same underlying object as [other]. + NSURLRequest.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLRequest] that wraps the given raw object pointer. + NSURLRequest.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +enum NSURLRequestAttribution { + NSURLRequestAttributionDeveloper(0), + NSURLRequestAttributionUser(1); + + final int value; + const NSURLRequestAttribution(this.value); + + static NSURLRequestAttribution fromValue(int value) => switch (value) { + 0 => NSURLRequestAttributionDeveloper, + 1 => NSURLRequestAttributionUser, + _ => throw ArgumentError( + 'Unknown value for NSURLRequestAttribution: $value', + ), + }; +} + +enum NSURLRequestCachePolicy { + NSURLRequestUseProtocolCachePolicy(0), + NSURLRequestReloadIgnoringLocalCacheData(1), + NSURLRequestReloadIgnoringLocalAndRemoteCacheData(4), + NSURLRequestReturnCacheDataElseLoad(2), + NSURLRequestReturnCacheDataDontLoad(3), + NSURLRequestReloadRevalidatingCacheData(5); + + static const NSURLRequestReloadIgnoringCacheData = + NSURLRequestReloadIgnoringLocalCacheData; + + final int value; + const NSURLRequestCachePolicy(this.value); + + static NSURLRequestCachePolicy fromValue(int value) => switch (value) { + 0 => NSURLRequestUseProtocolCachePolicy, + 1 => NSURLRequestReloadIgnoringLocalCacheData, + 4 => NSURLRequestReloadIgnoringLocalAndRemoteCacheData, + 2 => NSURLRequestReturnCacheDataElseLoad, + 3 => NSURLRequestReturnCacheDataDontLoad, + 5 => NSURLRequestReloadRevalidatingCacheData, + _ => throw ArgumentError( + 'Unknown value for NSURLRequestCachePolicy: $value', + ), + }; + + @override + String toString() { + if (this == NSURLRequestReloadIgnoringLocalCacheData) + return "NSURLRequestCachePolicy.NSURLRequestReloadIgnoringLocalCacheData, NSURLRequestCachePolicy.NSURLRequestReloadIgnoringCacheData"; + return super.toString(); + } +} + +enum NSURLRequestNetworkServiceType { + NSURLNetworkServiceTypeDefault(0), + NSURLNetworkServiceTypeVoIP(1), + NSURLNetworkServiceTypeVideo(2), + NSURLNetworkServiceTypeBackground(3), + NSURLNetworkServiceTypeVoice(4), + NSURLNetworkServiceTypeResponsiveData(6), + NSURLNetworkServiceTypeAVStreaming(8), + NSURLNetworkServiceTypeResponsiveAV(9), + NSURLNetworkServiceTypeCallSignaling(11); + + final int value; + const NSURLRequestNetworkServiceType(this.value); + + static NSURLRequestNetworkServiceType fromValue(int value) => switch (value) { + 0 => NSURLNetworkServiceTypeDefault, + 1 => NSURLNetworkServiceTypeVoIP, + 2 => NSURLNetworkServiceTypeVideo, + 3 => NSURLNetworkServiceTypeBackground, + 4 => NSURLNetworkServiceTypeVoice, + 6 => NSURLNetworkServiceTypeResponsiveData, + 8 => NSURLNetworkServiceTypeAVStreaming, + 9 => NSURLNetworkServiceTypeResponsiveAV, + 11 => NSURLNetworkServiceTypeCallSignaling, + _ => throw ArgumentError( + 'Unknown value for NSURLRequestNetworkServiceType: $value', + ), + }; +} + +typedef NSURLResourceKey = ffi.Pointer; +typedef DartNSURLResourceKey = objc.NSString; + +/// WARNING: NSURLResponse is a stub. To generate bindings for this class, include +/// NSURLResponse in your config's objc-interfaces list. +/// +/// NSURLResponse +extension type NSURLResponse._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSURLResponse] that points to the same underlying object as [other]. + NSURLResponse.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLResponse] that wraps the given raw object pointer. + NSURLResponse.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// WARNING: NSURLSession is a stub. To generate bindings for this class, include +/// NSURLSession in your config's objc-interfaces list. +/// +/// NSURLSession +extension type NSURLSession._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLSession] that points to the same underlying object as [other]. + NSURLSession.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSession', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSession] that wraps the given raw object pointer. + NSURLSession.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSession', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +/// NSURLSessionAsynchronousConvenience +extension NSURLSessionAsynchronousConvenience on NSURLSession { + /// dataTaskWithRequest:completionHandler: + NSURLSessionDataTask dataTaskWithRequest( + NSURLRequest request, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = request.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.dataTaskWithRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_dataTaskWithRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + /// dataTaskWithURL:completionHandler: + NSURLSessionDataTask dataTaskWithURL( + objc.NSURL url, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.dataTaskWithURL:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_dataTaskWithURL_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + /// downloadTaskWithRequest:completionHandler: + NSURLSessionDownloadTask downloadTaskWithRequest( + NSURLRequest request, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = request.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.downloadTaskWithRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_downloadTaskWithRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// downloadTaskWithResumeData:completionHandler: + NSURLSessionDownloadTask downloadTaskWithResumeData( + objc.NSData resumeData, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = resumeData.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.downloadTaskWithResumeData:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_downloadTaskWithResumeData_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// downloadTaskWithURL:completionHandler: + NSURLSessionDownloadTask downloadTaskWithURL( + objc.NSURL url, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.downloadTaskWithURL:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_downloadTaskWithURL_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// uploadTaskWithRequest:fromData:completionHandler: + NSURLSessionUploadTask uploadTaskWithRequest( + NSURLRequest request, { + objc.NSData? fromData, + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = request.ref; + final _$$ref$2 = fromData?.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.uploadTaskWithRequest:fromData:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_2wiv66( + _$$ref.pointer, + _sel_uploadTaskWithRequest_fromData_completionHandler_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3.pointer, + ); + return NSURLSessionUploadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// uploadTaskWithRequest:fromFile:completionHandler: + NSURLSessionUploadTask uploadTaskWithRequest$1( + NSURLRequest request, { + required objc.NSURL fromFile, + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = request.ref; + final _$$ref$2 = fromFile.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.uploadTaskWithRequest:fromFile:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_2wiv66( + _$$ref.pointer, + _sel_uploadTaskWithRequest_fromFile_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return NSURLSessionUploadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// uploadTaskWithResumeData:completionHandler: + NSURLSessionUploadTask uploadTaskWithResumeData( + objc.NSData resumeData, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = resumeData.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.uploadTaskWithResumeData:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_uploadTaskWithResumeData_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionUploadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +enum NSURLSessionAuthChallengeDisposition { + NSURLSessionAuthChallengeUseCredential(0), + NSURLSessionAuthChallengePerformDefaultHandling(1), + NSURLSessionAuthChallengeCancelAuthenticationChallenge(2), + NSURLSessionAuthChallengeRejectProtectionSpace(3); + + final int value; + const NSURLSessionAuthChallengeDisposition(this.value); + + static NSURLSessionAuthChallengeDisposition fromValue(int value) => + switch (value) { + 0 => NSURLSessionAuthChallengeUseCredential, + 1 => NSURLSessionAuthChallengePerformDefaultHandling, + 2 => NSURLSessionAuthChallengeCancelAuthenticationChallenge, + 3 => NSURLSessionAuthChallengeRejectProtectionSpace, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionAuthChallengeDisposition: $value', + ), + }; +} + +/// WARNING: NSURLSessionConfiguration is a stub. To generate bindings for this class, include +/// NSURLSessionConfiguration in your config's objc-interfaces list. +/// +/// NSURLSessionConfiguration +extension type NSURLSessionConfiguration._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCopying { + /// Constructs a [NSURLSessionConfiguration] that points to the same underlying object as [other]. + NSURLSessionConfiguration.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSessionConfiguration] that wraps the given raw object pointer. + NSURLSessionConfiguration.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +/// NSURLSessionDataDelegate +extension type NSURLSessionDataDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLSessionTaskDelegate { + /// Constructs a [NSURLSessionDataDelegate] that points to the same underlying object as [other]. + NSURLSessionDataDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionDataDelegate] that wraps the given raw object pointer. + NSURLSessionDataDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionDataDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionDataDelegate, + ); + } +} + +extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { + /// URLSession:dataTask:didBecomeDownloadTask: + void URLSession( + NSURLSession session, { + required NSURLSessionDataTask dataTask, + required NSURLSessionDownloadTask didBecomeDownloadTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = dataTask.ref; + final _$$ref$3 = didBecomeDownloadTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:dataTask:didBecomeDownloadTask:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_dataTask_didBecomeDownloadTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:dataTask:didBecomeDownloadTask:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_dataTask_didBecomeDownloadTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:dataTask:didBecomeStreamTask: + void URLSession$1( + NSURLSession session, { + required NSURLSessionDataTask dataTask, + required NSURLSessionStreamTask didBecomeStreamTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = dataTask.ref; + final _$$ref$3 = didBecomeStreamTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:dataTask:didBecomeStreamTask:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_dataTask_didBecomeStreamTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:dataTask:didBecomeStreamTask:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_dataTask_didBecomeStreamTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:dataTask:didReceiveData: + void URLSession$2( + NSURLSession session, { + required NSURLSessionDataTask dataTask, + required objc.NSData didReceiveData, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = dataTask.ref; + final _$$ref$3 = didReceiveData.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:dataTask:didReceiveData:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_dataTask_didReceiveData_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:dataTask:didReceiveData:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_dataTask_didReceiveData_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:dataTask:didReceiveResponse:completionHandler: + void URLSession$3( + NSURLSession session, { + required NSURLSessionDataTask dataTask, + required NSURLResponse didReceiveResponse, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = dataTask.ref; + final _$$ref$3 = didReceiveResponse.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:dataTask:didReceiveResponse:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:dataTask:didReceiveResponse:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:dataTask:willCacheResponse:completionHandler: + void URLSession$4( + NSURLSession session, { + required NSURLSessionDataTask dataTask, + required NSCachedURLResponse willCacheResponse, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = dataTask.ref; + final _$$ref$3 = willCacheResponse.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:dataTask:willCacheResponse:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_dataTask_willCacheResponse_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:dataTask:willCacheResponse:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_dataTask_willCacheResponse_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:didBecomeInvalidWithError: + void URLSession$5( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didCreateTask: + void URLSession$6( + NSURLSession session, { + required NSURLSessionTask didCreateTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didCreateTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:didCreateTask:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:didCreateTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$7( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didCompleteWithError: + void URLSession$8( + NSURLSession session, { + required NSURLSessionTask task, + objc.NSError? didCompleteWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didCompleteWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:didCompleteWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:didCompleteWithError:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:task:didFinishCollectingMetrics: + void URLSession$9( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLSessionTaskMetrics didFinishCollectingMetrics, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didFinishCollectingMetrics.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:didFinishCollectingMetrics:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:didFinishCollectingMetrics:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didReceiveChallenge:completionHandler: + void URLSession$10( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveChallenge.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didReceiveInformationalResponse: + void URLSession$11( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse didReceiveInformationalResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveInformationalResponse.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:didReceiveInformationalResponse:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:didReceiveInformationalResponse:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + void URLSession$12( + NSURLSession session, { + required NSURLSessionTask task, + required int didSendBodyData, + required int totalBytesSent, + required int totalBytesExpectedToSend, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didSendBodyData, + totalBytesSent, + totalBytesExpectedToSend, + ); + } + + /// URLSession:task:needNewBodyStream: + void URLSession$13( + NSURLSession session, { + required NSURLSessionTask task, + required objc.ObjCBlock + needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:needNewBodyStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:needNewBodyStream:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + void URLSession$14( + NSURLSession session, { + required NSURLSessionTask task, + required int needNewBodyStreamFromOffset, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + ); + } + _objc_msgSend_9cddqw( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + needNewBodyStreamFromOffset, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + void URLSession$15( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLRequest willBeginDelayedRequest, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willBeginDelayedRequest.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:willBeginDelayedRequest:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + void URLSession$16( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse willPerformHTTPRedirection, + required NSURLRequest newRequest, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willPerformHTTPRedirection.ref; + final _$$ref$4 = newRequest.ref; + final _$$ref$5 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + ); + } + _objc_msgSend_e1wgee( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + _$$ref$5.pointer, + ); + } + + /// URLSession:taskIsWaitingForConnectivity: + void URLSession$17( + NSURLSession session, { + required NSURLSessionTask taskIsWaitingForConnectivity, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = taskIsWaitingForConnectivity.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:taskIsWaitingForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:taskIsWaitingForConnectivity:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionDataDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionDataDelegate.cast()); + + /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDataDelegate implement({ + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDataDelegate', + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implement( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implement( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implement( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implement( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implement( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implement( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implement( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implement( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implement( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implement( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDataDelegate implementAsListener({ + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDataDelegate', + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implementAsListener( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implementAsListener( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDataDelegate implementAsBlocking({ + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDataDelegate', + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:dataTask:didBecomeDownloadTask: + static final URLSession_dataTask_didBecomeDownloadTask_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeDownloadTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeDownloadTask_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:dataTask:didBecomeStreamTask: + static final URLSession_dataTask_didBecomeStreamTask_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeStreamTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeStreamTask_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:dataTask:didReceiveData: + static final URLSession_dataTask_didReceiveData_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveData_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:dataTask:didReceiveResponse:completionHandler: + static final URLSession_dataTask_didReceiveResponse_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:dataTask:willCacheResponse:completionHandler: + static final URLSession_dataTask_willCacheResponse_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_willCacheResponse_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_willCacheResponse_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didCreateTask: + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didCompleteWithError: + static final URLSession_task_didCompleteWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didFinishCollectingMetrics: + static final URLSession_task_didFinishCollectingMetrics_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didReceiveChallenge:completionHandler: + static final URLSession_task_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didReceiveInformationalResponse: + static final URLSession_task_didReceiveInformationalResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:needNewBodyStream: + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + static final URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:taskIsWaitingForConnectivity: + static final URLSession_taskIsWaitingForConnectivity_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionDataDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +/// WARNING: NSURLSessionDataTask is a stub. To generate bindings for this class, include +/// NSURLSessionDataTask in your config's objc-interfaces list. +/// +/// NSURLSessionDataTask +extension type NSURLSessionDataTask._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLSessionTask { + /// Constructs a [NSURLSessionDataTask] that points to the same underlying object as [other]. + NSURLSessionDataTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionDataTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSessionDataTask] that wraps the given raw object pointer. + NSURLSessionDataTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionDataTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +enum NSURLSessionDelayedRequestDisposition { + NSURLSessionDelayedRequestContinueLoading(0), + NSURLSessionDelayedRequestUseNewRequest(1), + NSURLSessionDelayedRequestCancel(2); + + final int value; + const NSURLSessionDelayedRequestDisposition(this.value); + + static NSURLSessionDelayedRequestDisposition fromValue(int value) => + switch (value) { + 0 => NSURLSessionDelayedRequestContinueLoading, + 1 => NSURLSessionDelayedRequestUseNewRequest, + 2 => NSURLSessionDelayedRequestCancel, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionDelayedRequestDisposition: $value', + ), + }; +} + +/// NSURLSessionDelegate +extension type NSURLSessionDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSURLSessionDelegate] that points to the same underlying object as [other]. + NSURLSessionDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionDelegate] that wraps the given raw object pointer. + NSURLSessionDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionDelegate, + ); + } +} + +extension NSURLSessionDelegate$Methods on NSURLSessionDelegate { + /// URLSession:didBecomeInvalidWithError: + void URLSession( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$1( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionDelegate.cast()); + + /// Builds an object that implements the NSURLSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDelegate implement({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDelegate implementAsListener({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDelegate implementAsBlocking({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +/// NSURLSessionDeprecated +extension NSURLSessionDeprecated on NSURLSessionConfiguration { + /// backgroundSessionConfiguration: + @Deprecated('Deprecated') + static NSURLSessionConfiguration backgroundSessionConfiguration( + objc.NSString identifier, + ) { + final _$$ref = identifier.ref; + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.backgroundSessionConfiguration:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSURLSessionConfiguration, + _sel_backgroundSessionConfiguration_, + _$$ref.pointer, + ); + return NSURLSessionConfiguration.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSURLSessionDownloadDelegate +extension type NSURLSessionDownloadDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLSessionTaskDelegate { + /// Constructs a [NSURLSessionDownloadDelegate] that points to the same underlying object as [other]. + NSURLSessionDownloadDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionDownloadDelegate] that wraps the given raw object pointer. + NSURLSessionDownloadDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionDownloadDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionDownloadDelegate, + ); + } +} + +extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { + /// URLSession:didBecomeInvalidWithError: + void URLSession( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didCreateTask: + void URLSession$1( + NSURLSession session, { + required NSURLSessionTask didCreateTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didCreateTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:didCreateTask:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:didCreateTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$2( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:downloadTask:didFinishDownloadingToURL: + void URLSession$3( + NSURLSession session, { + required NSURLSessionDownloadTask downloadTask, + required objc.NSURL didFinishDownloadingToURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = downloadTask.ref; + final _$$ref$3 = didFinishDownloadingToURL.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didFinishDownloadingToURL:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_downloadTask_didFinishDownloadingToURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes: + void URLSession$4( + NSURLSession session, { + required NSURLSessionDownloadTask downloadTask, + required int didResumeAtOffset, + required int expectedTotalBytes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = downloadTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:', + ); + } + _objc_msgSend_fm5719( + _$$ref.pointer, + _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didResumeAtOffset, + expectedTotalBytes, + ); + } + + /// URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite: + void URLSession$5( + NSURLSession session, { + required NSURLSessionDownloadTask downloadTask, + required int didWriteData, + required int totalBytesWritten, + required int totalBytesExpectedToWrite, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = downloadTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didWriteData, + totalBytesWritten, + totalBytesExpectedToWrite, + ); + } + + /// URLSession:task:didCompleteWithError: + void URLSession$6( + NSURLSession session, { + required NSURLSessionTask task, + objc.NSError? didCompleteWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didCompleteWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:didCompleteWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:didCompleteWithError:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:task:didFinishCollectingMetrics: + void URLSession$7( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLSessionTaskMetrics didFinishCollectingMetrics, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didFinishCollectingMetrics.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:didFinishCollectingMetrics:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:didFinishCollectingMetrics:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didReceiveChallenge:completionHandler: + void URLSession$8( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveChallenge.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didReceiveInformationalResponse: + void URLSession$9( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse didReceiveInformationalResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveInformationalResponse.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:didReceiveInformationalResponse:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:didReceiveInformationalResponse:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + void URLSession$10( + NSURLSession session, { + required NSURLSessionTask task, + required int didSendBodyData, + required int totalBytesSent, + required int totalBytesExpectedToSend, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didSendBodyData, + totalBytesSent, + totalBytesExpectedToSend, + ); + } + + /// URLSession:task:needNewBodyStream: + void URLSession$11( + NSURLSession session, { + required NSURLSessionTask task, + required objc.ObjCBlock + needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:needNewBodyStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:needNewBodyStream:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + void URLSession$12( + NSURLSession session, { + required NSURLSessionTask task, + required int needNewBodyStreamFromOffset, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + ); + } + _objc_msgSend_9cddqw( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + needNewBodyStreamFromOffset, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + void URLSession$13( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLRequest willBeginDelayedRequest, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willBeginDelayedRequest.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:willBeginDelayedRequest:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + void URLSession$14( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse willPerformHTTPRedirection, + required NSURLRequest newRequest, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willPerformHTTPRedirection.ref; + final _$$ref$4 = newRequest.ref; + final _$$ref$5 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + ); + } + _objc_msgSend_e1wgee( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + _$$ref$5.pointer, + ); + } + + /// URLSession:taskIsWaitingForConnectivity: + void URLSession$15( + NSURLSession session, { + required NSURLSessionTask taskIsWaitingForConnectivity, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = taskIsWaitingForConnectivity.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:taskIsWaitingForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:taskIsWaitingForConnectivity:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionDownloadDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionDownloadDelegate.cast()); + + /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDownloadDelegate implement({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDownloadDelegate', + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implement( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implement( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implement( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implement( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implement( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implement( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDownloadDelegate implementAsListener({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDownloadDelegate', + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsListener( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsListener( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsListener( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsListener( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsListener( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsListener( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDownloadDelegate implementAsBlocking({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDownloadDelegate', + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsBlocking( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsBlocking( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsBlocking( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsBlocking( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsBlocking( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsBlocking( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didCreateTask: + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:downloadTask:didFinishDownloadingToURL: + static final URLSession_downloadTask_didFinishDownloadingToURL_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didFinishDownloadingToURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didFinishDownloadingToURL_, + isRequired: true, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes: + static final URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_ly2579) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite: + static final URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:didCompleteWithError: + static final URLSession_task_didCompleteWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didFinishCollectingMetrics: + static final URLSession_task_didFinishCollectingMetrics_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didReceiveChallenge:completionHandler: + static final URLSession_task_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didReceiveInformationalResponse: + static final URLSession_task_didReceiveInformationalResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:needNewBodyStream: + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + static final URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:taskIsWaitingForConnectivity: + static final URLSession_taskIsWaitingForConnectivity_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +/// WARNING: NSURLSessionDownloadTask is a stub. To generate bindings for this class, include +/// NSURLSessionDownloadTask in your config's objc-interfaces list. +/// +/// NSURLSessionDownloadTask +extension type NSURLSessionDownloadTask._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLSessionTask { + /// Constructs a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. + NSURLSessionDownloadTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionDownloadTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSessionDownloadTask] that wraps the given raw object pointer. + NSURLSessionDownloadTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionDownloadTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +enum NSURLSessionMultipathServiceType { + NSURLSessionMultipathServiceTypeNone(0), + NSURLSessionMultipathServiceTypeHandover(1), + NSURLSessionMultipathServiceTypeInteractive(2), + NSURLSessionMultipathServiceTypeAggregate(3); + + final int value; + const NSURLSessionMultipathServiceType(this.value); + + static NSURLSessionMultipathServiceType fromValue(int value) => + switch (value) { + 0 => NSURLSessionMultipathServiceTypeNone, + 1 => NSURLSessionMultipathServiceTypeHandover, + 2 => NSURLSessionMultipathServiceTypeInteractive, + 3 => NSURLSessionMultipathServiceTypeAggregate, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionMultipathServiceType: $value', + ), + }; +} + +enum NSURLSessionResponseDisposition { + NSURLSessionResponseCancel(0), + NSURLSessionResponseAllow(1), + NSURLSessionResponseBecomeDownload(2), + NSURLSessionResponseBecomeStream(3); + + final int value; + const NSURLSessionResponseDisposition(this.value); + + static NSURLSessionResponseDisposition fromValue(int value) => + switch (value) { + 0 => NSURLSessionResponseCancel, + 1 => NSURLSessionResponseAllow, + 2 => NSURLSessionResponseBecomeDownload, + 3 => NSURLSessionResponseBecomeStream, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionResponseDisposition: $value', + ), + }; +} + +/// NSURLSessionStreamDelegate +extension type NSURLSessionStreamDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLSessionTaskDelegate { + /// Constructs a [NSURLSessionStreamDelegate] that points to the same underlying object as [other]. + NSURLSessionStreamDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionStreamDelegate] that wraps the given raw object pointer. + NSURLSessionStreamDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionStreamDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionStreamDelegate, + ); + } +} + +extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { + /// URLSession:betterRouteDiscoveredForStreamTask: + void URLSession( + NSURLSession session, { + required NSURLSessionStreamTask betterRouteDiscoveredForStreamTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = betterRouteDiscoveredForStreamTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:betterRouteDiscoveredForStreamTask:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_betterRouteDiscoveredForStreamTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:betterRouteDiscoveredForStreamTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_betterRouteDiscoveredForStreamTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didBecomeInvalidWithError: + void URLSession$1( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didCreateTask: + void URLSession$2( + NSURLSession session, { + required NSURLSessionTask didCreateTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didCreateTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:didCreateTask:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:didCreateTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$3( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:readClosedForStreamTask: + void URLSession$4( + NSURLSession session, { + required NSURLSessionStreamTask readClosedForStreamTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = readClosedForStreamTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:readClosedForStreamTask:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_readClosedForStreamTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:readClosedForStreamTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_readClosedForStreamTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:streamTask:didBecomeInputStream:outputStream: + void URLSession$5( + NSURLSession session, { + required NSURLSessionStreamTask streamTask, + required objc.NSInputStream didBecomeInputStream, + required objc.NSOutputStream outputStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = streamTask.ref; + final _$$ref$3 = didBecomeInputStream.ref; + final _$$ref$4 = outputStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:streamTask:didBecomeInputStream:outputStream:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:streamTask:didBecomeInputStream:outputStream:', + ); + } + _objc_msgSend_mlcr8l( + _$$ref.pointer, + _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didCompleteWithError: + void URLSession$6( + NSURLSession session, { + required NSURLSessionTask task, + objc.NSError? didCompleteWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didCompleteWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:didCompleteWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:didCompleteWithError:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:task:didFinishCollectingMetrics: + void URLSession$7( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLSessionTaskMetrics didFinishCollectingMetrics, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didFinishCollectingMetrics.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:didFinishCollectingMetrics:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:didFinishCollectingMetrics:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didReceiveChallenge:completionHandler: + void URLSession$8( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveChallenge.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didReceiveInformationalResponse: + void URLSession$9( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse didReceiveInformationalResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveInformationalResponse.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:didReceiveInformationalResponse:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:didReceiveInformationalResponse:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + void URLSession$10( + NSURLSession session, { + required NSURLSessionTask task, + required int didSendBodyData, + required int totalBytesSent, + required int totalBytesExpectedToSend, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didSendBodyData, + totalBytesSent, + totalBytesExpectedToSend, + ); + } + + /// URLSession:task:needNewBodyStream: + void URLSession$11( + NSURLSession session, { + required NSURLSessionTask task, + required objc.ObjCBlock + needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:needNewBodyStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:needNewBodyStream:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + void URLSession$12( + NSURLSession session, { + required NSURLSessionTask task, + required int needNewBodyStreamFromOffset, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + ); + } + _objc_msgSend_9cddqw( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + needNewBodyStreamFromOffset, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + void URLSession$13( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLRequest willBeginDelayedRequest, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willBeginDelayedRequest.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:willBeginDelayedRequest:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + void URLSession$14( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse willPerformHTTPRedirection, + required NSURLRequest newRequest, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willPerformHTTPRedirection.ref; + final _$$ref$4 = newRequest.ref; + final _$$ref$5 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + ); + } + _objc_msgSend_e1wgee( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + _$$ref$5.pointer, + ); + } + + /// URLSession:taskIsWaitingForConnectivity: + void URLSession$15( + NSURLSession session, { + required NSURLSessionTask taskIsWaitingForConnectivity, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = taskIsWaitingForConnectivity.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:taskIsWaitingForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:taskIsWaitingForConnectivity:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:writeClosedForStreamTask: + void URLSession$16( + NSURLSession session, { + required NSURLSessionStreamTask writeClosedForStreamTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = writeClosedForStreamTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:writeClosedForStreamTask:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_writeClosedForStreamTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:writeClosedForStreamTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_writeClosedForStreamTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionStreamDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionStreamDelegate.cast()); + + /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionStreamDelegate implement({ + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionStreamDelegate', + ); + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implement( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implement( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implement( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implement( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionStreamDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implement( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implement( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implement( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implement( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionStreamDelegate implementAsListener({ + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionStreamDelegate', + ); + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implementAsListener( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implementAsListener( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsListener( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implementAsListener( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionStreamDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implementAsListener( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implementAsListener( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsListener( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implementAsListener( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionStreamDelegate implementAsBlocking({ + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionStreamDelegate', + ); + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implementAsBlocking( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implementAsBlocking( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsBlocking( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implementAsBlocking( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionStreamDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implementAsBlocking( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implementAsBlocking( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsBlocking( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implementAsBlocking( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:betterRouteDiscoveredForStreamTask: + static final URLSession_betterRouteDiscoveredForStreamTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionStreamTask) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_betterRouteDiscoveredForStreamTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_betterRouteDiscoveredForStreamTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didCreateTask: + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:readClosedForStreamTask: + static final URLSession_readClosedForStreamTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionStreamTask) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_readClosedForStreamTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_readClosedForStreamTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:streamTask:didBecomeInputStream:outputStream: + static final URLSession_streamTask_didBecomeInputStream_outputStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_8jfq1p) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + objc.NSInputStream arg3, + objc.NSOutputStream arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + objc.NSInputStream arg3, + objc.NSOutputStream arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + objc.NSInputStream arg3, + objc.NSOutputStream arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didCompleteWithError: + static final URLSession_task_didCompleteWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didFinishCollectingMetrics: + static final URLSession_task_didFinishCollectingMetrics_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didReceiveChallenge:completionHandler: + static final URLSession_task_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didReceiveInformationalResponse: + static final URLSession_task_didReceiveInformationalResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:needNewBodyStream: + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + static final URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:taskIsWaitingForConnectivity: + static final URLSession_taskIsWaitingForConnectivity_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:writeClosedForStreamTask: + static final URLSession_writeClosedForStreamTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionStreamTask) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_writeClosedForStreamTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_writeClosedForStreamTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +/// WARNING: NSURLSessionStreamTask is a stub. To generate bindings for this class, include +/// NSURLSessionStreamTask in your config's objc-interfaces list. +/// +/// NSURLSessionStreamTask +extension type NSURLSessionStreamTask._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLSessionTask { + /// Constructs a [NSURLSessionStreamTask] that points to the same underlying object as [other]. + NSURLSessionStreamTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionStreamTask', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + } + + /// Constructs a [NSURLSessionStreamTask] that wraps the given raw object pointer. + NSURLSessionStreamTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionStreamTask', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + } +} + +/// WARNING: NSURLSessionTask is a stub. To generate bindings for this class, include +/// NSURLSessionTask in your config's objc-interfaces list. +/// +/// NSURLSessionTask +extension type NSURLSessionTask._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + NSProgressReporting { + /// Constructs a [NSURLSessionTask] that points to the same underlying object as [other]. + NSURLSessionTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSessionTask] that wraps the given raw object pointer. + NSURLSessionTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +/// NSURLSessionTaskAdditions +extension NSURLSessionTaskAdditions on NSURLProtocol { + /// task + NSURLSessionTask? get task { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLProtocol.task', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_task); + return $ret.address == 0 + ? null + : NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + /// canInitWithTask: + static bool canInitWithTask(NSURLSessionTask task) { + final _$$ref = task.ref; + objc.checkOsVersionInternal( + 'NSURLProtocol.canInitWithTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_19nvye5( + _class_NSURLProtocol, + _sel_canInitWithTask_, + _$$ref.pointer, + ); + } +} + +/// NSURLSessionTaskAdditions +extension NSURLSessionTaskAdditions$1 on NSURLCredentialStorage { + /// getCredentialsForProtectionSpace:task:completionHandler: + void getCredentialsForProtectionSpace( + NSURLProtectionSpace protectionSpace, { + required NSURLSessionTask task, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protectionSpace.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLCredentialStorage.getCredentialsForProtectionSpace:task:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_getCredentialsForProtectionSpace_task_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// getDefaultCredentialForProtectionSpace:task:completionHandler: + void getDefaultCredentialForProtectionSpace( + NSURLProtectionSpace space, { + required NSURLSessionTask task, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = space.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLCredentialStorage.getDefaultCredentialForProtectionSpace:task:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// removeCredential:forProtectionSpace:options:task: + void removeCredential( + NSURLCredential credential, { + required NSURLProtectionSpace forProtectionSpace, + objc.NSDictionary? options, + required NSURLSessionTask task, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = credential.ref; + final _$$ref$2 = forProtectionSpace.ref; + final _$$ref$3 = options?.ref; + final _$$ref$4 = task.ref; + objc.checkOsVersionInternal( + 'NSURLCredentialStorage.removeCredential:forProtectionSpace:options:task:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_mlcr8l( + _$$ref.pointer, + _sel_removeCredential_forProtectionSpace_options_task_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4.pointer, + ); + } + + /// setCredential:forProtectionSpace:task: + void setCredential( + NSURLCredential credential, { + required NSURLProtectionSpace forProtectionSpace, + required NSURLSessionTask task, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = credential.ref; + final _$$ref$2 = forProtectionSpace.ref; + final _$$ref$3 = task.ref; + objc.checkOsVersionInternal( + 'NSURLCredentialStorage.setCredential:forProtectionSpace:task:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_setCredential_forProtectionSpace_task_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// setDefaultCredential:forProtectionSpace:task: + void setDefaultCredential( + NSURLCredential credential, { + required NSURLProtectionSpace forProtectionSpace, + required NSURLSessionTask task, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = credential.ref; + final _$$ref$2 = forProtectionSpace.ref; + final _$$ref$3 = task.ref; + objc.checkOsVersionInternal( + 'NSURLCredentialStorage.setDefaultCredential:forProtectionSpace:task:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_setDefaultCredential_forProtectionSpace_task_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// NSURLSessionTaskAdditions +extension NSURLSessionTaskAdditions$2 on NSURLCache { + /// getCachedResponseForDataTask:completionHandler: + void getCachedResponseForDataTask( + NSURLSessionDataTask dataTask, { + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = dataTask.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLCache.getCachedResponseForDataTask:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_getCachedResponseForDataTask_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeCachedResponseForDataTask: + void removeCachedResponseForDataTask(NSURLSessionDataTask dataTask) { + final _$$ref = object$.ref; + final _$$ref$1 = dataTask.ref; + objc.checkOsVersionInternal( + 'NSURLCache.removeCachedResponseForDataTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_removeCachedResponseForDataTask_, + _$$ref$1.pointer, + ); + } + + /// storeCachedResponse:forDataTask: + void storeCachedResponse( + NSCachedURLResponse cachedResponse, { + required NSURLSessionDataTask forDataTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = cachedResponse.ref; + final _$$ref$2 = forDataTask.ref; + objc.checkOsVersionInternal( + 'NSURLCache.storeCachedResponse:forDataTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_storeCachedResponse_forDataTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSURLSessionTaskAdditions +extension NSURLSessionTaskAdditions$3 on NSHTTPCookieStorage { + /// getCookiesForTask:completionHandler: + void getCookiesForTask( + NSURLSessionTask task, { + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = task.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage.getCookiesForTask:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_getCookiesForTask_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// storeCookies:forTask: + void storeCookies(objc.NSArray cookies, {required NSURLSessionTask forTask}) { + final _$$ref = object$.ref; + final _$$ref$1 = cookies.ref; + final _$$ref$2 = forTask.ref; + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage.storeCookies:forTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_storeCookies_forTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSURLSessionTaskDelegate +extension type NSURLSessionTaskDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLSessionDelegate { + /// Constructs a [NSURLSessionTaskDelegate] that points to the same underlying object as [other]. + NSURLSessionTaskDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionTaskDelegate] that wraps the given raw object pointer. + NSURLSessionTaskDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionTaskDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionTaskDelegate, + ); + } +} + +extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { + /// URLSession:didBecomeInvalidWithError: + void URLSession( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didCreateTask: + void URLSession$1( + NSURLSession session, { + required NSURLSessionTask didCreateTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didCreateTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:didCreateTask:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:didCreateTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$2( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didCompleteWithError: + void URLSession$3( + NSURLSession session, { + required NSURLSessionTask task, + objc.NSError? didCompleteWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didCompleteWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:didCompleteWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:didCompleteWithError:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:task:didFinishCollectingMetrics: + void URLSession$4( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLSessionTaskMetrics didFinishCollectingMetrics, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didFinishCollectingMetrics.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:didFinishCollectingMetrics:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:didFinishCollectingMetrics:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didReceiveChallenge:completionHandler: + void URLSession$5( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveChallenge.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didReceiveInformationalResponse: + void URLSession$6( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse didReceiveInformationalResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveInformationalResponse.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:didReceiveInformationalResponse:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:didReceiveInformationalResponse:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + void URLSession$7( + NSURLSession session, { + required NSURLSessionTask task, + required int didSendBodyData, + required int totalBytesSent, + required int totalBytesExpectedToSend, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didSendBodyData, + totalBytesSent, + totalBytesExpectedToSend, + ); + } + + /// URLSession:task:needNewBodyStream: + void URLSession$8( + NSURLSession session, { + required NSURLSessionTask task, + required objc.ObjCBlock + needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:needNewBodyStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:needNewBodyStream:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + void URLSession$9( + NSURLSession session, { + required NSURLSessionTask task, + required int needNewBodyStreamFromOffset, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + ); + } + _objc_msgSend_9cddqw( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + needNewBodyStreamFromOffset, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + void URLSession$10( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLRequest willBeginDelayedRequest, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willBeginDelayedRequest.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:willBeginDelayedRequest:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + void URLSession$11( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse willPerformHTTPRedirection, + required NSURLRequest newRequest, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willPerformHTTPRedirection.ref; + final _$$ref$4 = newRequest.ref; + final _$$ref$5 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + ); + } + _objc_msgSend_e1wgee( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + _$$ref$5.pointer, + ); + } + + /// URLSession:taskIsWaitingForConnectivity: + void URLSession$12( + NSURLSession session, { + required NSURLSessionTask taskIsWaitingForConnectivity, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = taskIsWaitingForConnectivity.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:taskIsWaitingForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:taskIsWaitingForConnectivity:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionTaskDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionTaskDelegate.cast()); + + /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionTaskDelegate implement({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionTaskDelegate', + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionTaskDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionTaskDelegate implementAsListener({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionTaskDelegate', + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionTaskDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionTaskDelegate implementAsBlocking({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionTaskDelegate', + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionTaskDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didCreateTask: + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didCompleteWithError: + static final URLSession_task_didCompleteWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didFinishCollectingMetrics: + static final URLSession_task_didFinishCollectingMetrics_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didReceiveChallenge:completionHandler: + static final URLSession_task_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didReceiveInformationalResponse: + static final URLSession_task_didReceiveInformationalResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:needNewBodyStream: + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + static final URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:taskIsWaitingForConnectivity: + static final URLSession_taskIsWaitingForConnectivity_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +/// WARNING: NSURLSessionTaskMetrics is a stub. To generate bindings for this class, include +/// NSURLSessionTaskMetrics in your config's objc-interfaces list. +/// +/// NSURLSessionTaskMetrics +extension type NSURLSessionTaskMetrics._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLSessionTaskMetrics] that points to the same underlying object as [other]. + NSURLSessionTaskMetrics.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionTaskMetrics', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + } + + /// Constructs a [NSURLSessionTaskMetrics] that wraps the given raw object pointer. + NSURLSessionTaskMetrics.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionTaskMetrics', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + } +} + +enum NSURLSessionTaskMetricsDomainResolutionProtocol { + NSURLSessionTaskMetricsDomainResolutionProtocolUnknown(0), + NSURLSessionTaskMetricsDomainResolutionProtocolUDP(1), + NSURLSessionTaskMetricsDomainResolutionProtocolTCP(2), + NSURLSessionTaskMetricsDomainResolutionProtocolTLS(3), + NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS(4); + + final int value; + const NSURLSessionTaskMetricsDomainResolutionProtocol(this.value); + + static NSURLSessionTaskMetricsDomainResolutionProtocol fromValue( + int value, + ) => switch (value) { + 0 => NSURLSessionTaskMetricsDomainResolutionProtocolUnknown, + 1 => NSURLSessionTaskMetricsDomainResolutionProtocolUDP, + 2 => NSURLSessionTaskMetricsDomainResolutionProtocolTCP, + 3 => NSURLSessionTaskMetricsDomainResolutionProtocolTLS, + 4 => NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionTaskMetricsDomainResolutionProtocol: $value', + ), + }; +} + +enum NSURLSessionTaskMetricsResourceFetchType { + NSURLSessionTaskMetricsResourceFetchTypeUnknown(0), + NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad(1), + NSURLSessionTaskMetricsResourceFetchTypeServerPush(2), + NSURLSessionTaskMetricsResourceFetchTypeLocalCache(3); + + final int value; + const NSURLSessionTaskMetricsResourceFetchType(this.value); + + static NSURLSessionTaskMetricsResourceFetchType fromValue(int value) => + switch (value) { + 0 => NSURLSessionTaskMetricsResourceFetchTypeUnknown, + 1 => NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad, + 2 => NSURLSessionTaskMetricsResourceFetchTypeServerPush, + 3 => NSURLSessionTaskMetricsResourceFetchTypeLocalCache, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionTaskMetricsResourceFetchType: $value', + ), + }; +} + +enum NSURLSessionTaskState { + NSURLSessionTaskStateRunning(0), + NSURLSessionTaskStateSuspended(1), + NSURLSessionTaskStateCanceling(2), + NSURLSessionTaskStateCompleted(3); + + final int value; + const NSURLSessionTaskState(this.value); + + static NSURLSessionTaskState fromValue(int value) => switch (value) { + 0 => NSURLSessionTaskStateRunning, + 1 => NSURLSessionTaskStateSuspended, + 2 => NSURLSessionTaskStateCanceling, + 3 => NSURLSessionTaskStateCompleted, + _ => throw ArgumentError('Unknown value for NSURLSessionTaskState: $value'), + }; +} + +/// WARNING: NSURLSessionUploadTask is a stub. To generate bindings for this class, include +/// NSURLSessionUploadTask in your config's objc-interfaces list. +/// +/// NSURLSessionUploadTask +extension type NSURLSessionUploadTask._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLSessionDataTask { + /// Constructs a [NSURLSessionUploadTask] that points to the same underlying object as [other]. + NSURLSessionUploadTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionUploadTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSessionUploadTask] that wraps the given raw object pointer. + NSURLSessionUploadTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionUploadTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +enum NSURLSessionWebSocketCloseCode { + NSURLSessionWebSocketCloseCodeInvalid(0), + NSURLSessionWebSocketCloseCodeNormalClosure(1000), + NSURLSessionWebSocketCloseCodeGoingAway(1001), + NSURLSessionWebSocketCloseCodeProtocolError(1002), + NSURLSessionWebSocketCloseCodeUnsupportedData(1003), + NSURLSessionWebSocketCloseCodeNoStatusReceived(1005), + NSURLSessionWebSocketCloseCodeAbnormalClosure(1006), + NSURLSessionWebSocketCloseCodeInvalidFramePayloadData(1007), + NSURLSessionWebSocketCloseCodePolicyViolation(1008), + NSURLSessionWebSocketCloseCodeMessageTooBig(1009), + NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing(1010), + NSURLSessionWebSocketCloseCodeInternalServerError(1011), + NSURLSessionWebSocketCloseCodeTLSHandshakeFailure(1015); + + final int value; + const NSURLSessionWebSocketCloseCode(this.value); + + static NSURLSessionWebSocketCloseCode fromValue(int value) => switch (value) { + 0 => NSURLSessionWebSocketCloseCodeInvalid, + 1000 => NSURLSessionWebSocketCloseCodeNormalClosure, + 1001 => NSURLSessionWebSocketCloseCodeGoingAway, + 1002 => NSURLSessionWebSocketCloseCodeProtocolError, + 1003 => NSURLSessionWebSocketCloseCodeUnsupportedData, + 1005 => NSURLSessionWebSocketCloseCodeNoStatusReceived, + 1006 => NSURLSessionWebSocketCloseCodeAbnormalClosure, + 1007 => NSURLSessionWebSocketCloseCodeInvalidFramePayloadData, + 1008 => NSURLSessionWebSocketCloseCodePolicyViolation, + 1009 => NSURLSessionWebSocketCloseCodeMessageTooBig, + 1010 => NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing, + 1011 => NSURLSessionWebSocketCloseCodeInternalServerError, + 1015 => NSURLSessionWebSocketCloseCodeTLSHandshakeFailure, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionWebSocketCloseCode: $value', + ), + }; +} + +/// NSURLSessionWebSocketDelegate +extension type NSURLSessionWebSocketDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLSessionTaskDelegate { + /// Constructs a [NSURLSessionWebSocketDelegate] that points to the same underlying object as [other]. + NSURLSessionWebSocketDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionWebSocketDelegate] that wraps the given raw object pointer. + NSURLSessionWebSocketDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionWebSocketDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionWebSocketDelegate, + ); + } +} + +extension NSURLSessionWebSocketDelegate$Methods + on NSURLSessionWebSocketDelegate { + /// URLSession:didBecomeInvalidWithError: + void URLSession( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didCreateTask: + void URLSession$1( + NSURLSession session, { + required NSURLSessionTask didCreateTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didCreateTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:didCreateTask:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:didCreateTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$2( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didCompleteWithError: + void URLSession$3( + NSURLSession session, { + required NSURLSessionTask task, + objc.NSError? didCompleteWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didCompleteWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:didCompleteWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:didCompleteWithError:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:task:didFinishCollectingMetrics: + void URLSession$4( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLSessionTaskMetrics didFinishCollectingMetrics, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didFinishCollectingMetrics.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:didFinishCollectingMetrics:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:didFinishCollectingMetrics:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didReceiveChallenge:completionHandler: + void URLSession$5( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveChallenge.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didReceiveInformationalResponse: + void URLSession$6( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse didReceiveInformationalResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveInformationalResponse.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:didReceiveInformationalResponse:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:didReceiveInformationalResponse:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + void URLSession$7( + NSURLSession session, { + required NSURLSessionTask task, + required int didSendBodyData, + required int totalBytesSent, + required int totalBytesExpectedToSend, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didSendBodyData, + totalBytesSent, + totalBytesExpectedToSend, + ); + } + + /// URLSession:task:needNewBodyStream: + void URLSession$8( + NSURLSession session, { + required NSURLSessionTask task, + required objc.ObjCBlock + needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:needNewBodyStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:needNewBodyStream:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + void URLSession$9( + NSURLSession session, { + required NSURLSessionTask task, + required int needNewBodyStreamFromOffset, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + ); + } + _objc_msgSend_9cddqw( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + needNewBodyStreamFromOffset, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + void URLSession$10( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLRequest willBeginDelayedRequest, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willBeginDelayedRequest.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:willBeginDelayedRequest:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + void URLSession$11( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse willPerformHTTPRedirection, + required NSURLRequest newRequest, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willPerformHTTPRedirection.ref; + final _$$ref$4 = newRequest.ref; + final _$$ref$5 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + ); + } + _objc_msgSend_e1wgee( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + _$$ref$5.pointer, + ); + } + + /// URLSession:taskIsWaitingForConnectivity: + void URLSession$12( + NSURLSession session, { + required NSURLSessionTask taskIsWaitingForConnectivity, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = taskIsWaitingForConnectivity.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:taskIsWaitingForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:taskIsWaitingForConnectivity:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:webSocketTask:didCloseWithCode:reason: + void URLSession$13( + NSURLSession session, { + required NSURLSessionWebSocketTask webSocketTask, + required NSURLSessionWebSocketCloseCode didCloseWithCode, + objc.NSData? reason, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = webSocketTask.ref; + final _$$ref$3 = reason?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:webSocketTask:didCloseWithCode:reason:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_webSocketTask_didCloseWithCode_reason_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:webSocketTask:didCloseWithCode:reason:', + ); + } + _objc_msgSend_d9bpjb( + _$$ref.pointer, + _sel_URLSession_webSocketTask_didCloseWithCode_reason_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didCloseWithCode.value, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:webSocketTask:didOpenWithProtocol: + void URLSession$14( + NSURLSession session, { + required NSURLSessionWebSocketTask webSocketTask, + objc.NSString? didOpenWithProtocol, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = webSocketTask.ref; + final _$$ref$3 = didOpenWithProtocol?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:webSocketTask:didOpenWithProtocol:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_webSocketTask_didOpenWithProtocol_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:webSocketTask:didOpenWithProtocol:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_webSocketTask_didOpenWithProtocol_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionWebSocketDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionWebSocketDelegate.cast()); + + /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionWebSocketDelegate implement({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionWebSocketDelegate', + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implement( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implement( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionWebSocketDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implement( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implement( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionWebSocketDelegate implementAsListener({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionWebSocketDelegate', + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsListener( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsListener( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionWebSocketDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsListener( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsListener( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionWebSocketDelegate implementAsBlocking({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionWebSocketDelegate', + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsBlocking( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsBlocking( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionWebSocketDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsBlocking( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsBlocking( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didCreateTask: + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didCompleteWithError: + static final URLSession_task_didCompleteWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didFinishCollectingMetrics: + static final URLSession_task_didFinishCollectingMetrics_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didReceiveChallenge:completionHandler: + static final URLSession_task_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didReceiveInformationalResponse: + static final URLSession_task_didReceiveInformationalResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:needNewBodyStream: + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + static final URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:taskIsWaitingForConnectivity: + static final URLSession_taskIsWaitingForConnectivity_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:webSocketTask:didCloseWithCode:reason: + static final URLSession_webSocketTask_didCloseWithCode_reason_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didCloseWithCode_reason_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1lx650f) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didCloseWithCode_reason_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + NSURLSessionWebSocketCloseCode arg3, + objc.NSData? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + NSURLSessionWebSocketCloseCode arg3, + objc.NSData? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + NSURLSessionWebSocketCloseCode arg3, + objc.NSData? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:webSocketTask:didOpenWithProtocol: + static final URLSession_webSocketTask_didOpenWithProtocol_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didOpenWithProtocol_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didOpenWithProtocol_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +enum NSURLSessionWebSocketMessageType { + NSURLSessionWebSocketMessageTypeData(0), + NSURLSessionWebSocketMessageTypeString(1); + + final int value; + const NSURLSessionWebSocketMessageType(this.value); + + static NSURLSessionWebSocketMessageType fromValue(int value) => + switch (value) { + 0 => NSURLSessionWebSocketMessageTypeData, + 1 => NSURLSessionWebSocketMessageTypeString, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionWebSocketMessageType: $value', + ), + }; +} + +/// WARNING: NSURLSessionWebSocketTask is a stub. To generate bindings for this class, include +/// NSURLSessionWebSocketTask in your config's objc-interfaces list. +/// +/// NSURLSessionWebSocketTask +extension type NSURLSessionWebSocketTask._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLSessionTask { + /// Constructs a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. + NSURLSessionWebSocketTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketTask', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + } + + /// Constructs a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. + NSURLSessionWebSocketTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketTask', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + } +} + +typedef NSURLThumbnailDictionaryItem = ffi.Pointer; +typedef DartNSURLThumbnailDictionaryItem = objc.NSString; +typedef NSURLUbiquitousItemDownloadingStatus = ffi.Pointer; +typedef DartNSURLUbiquitousItemDownloadingStatus = objc.NSString; +typedef NSURLUbiquitousSharedItemPermissions = ffi.Pointer; +typedef DartNSURLUbiquitousSharedItemPermissions = objc.NSString; +typedef NSURLUbiquitousSharedItemRole = ffi.Pointer; +typedef DartNSURLUbiquitousSharedItemRole = objc.NSString; + +/// NSURLUtilities +extension NSURLUtilities on objc.NSString { + /// stringByAddingPercentEncodingWithAllowedCharacters: + objc.NSString? stringByAddingPercentEncodingWithAllowedCharacters( + objc.NSCharacterSet allowedCharacters, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = allowedCharacters.ref; + objc.checkOsVersionInternal( + 'NSString.stringByAddingPercentEncodingWithAllowedCharacters:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_stringByAddingPercentEncodingWithAllowedCharacters_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByAddingPercentEscapesUsingEncoding: + @Deprecated( + 'Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.', + ) + objc.NSString? stringByAddingPercentEscapesUsingEncoding(DartNSUInteger enc) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.stringByAddingPercentEscapesUsingEncoding:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_14hpxwa( + _$$ref.pointer, + _sel_stringByAddingPercentEscapesUsingEncoding_, + enc, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByRemovingPercentEncoding + objc.NSString? get stringByRemovingPercentEncoding { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.stringByRemovingPercentEncoding', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByRemovingPercentEncoding, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByReplacingPercentEscapesUsingEncoding: + @Deprecated( + 'Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding.', + ) + objc.NSString? stringByReplacingPercentEscapesUsingEncoding( + DartNSUInteger enc, + ) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.stringByReplacingPercentEscapesUsingEncoding:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_14hpxwa( + _$$ref.pointer, + _sel_stringByReplacingPercentEscapesUsingEncoding_, + enc, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// NSURLUtilities +extension NSURLUtilities$1 on objc.NSCharacterSet { + /// URLFragmentAllowedCharacterSet + static objc.NSCharacterSet getURLFragmentAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLFragmentAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLFragmentAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// URLHostAllowedCharacterSet + static objc.NSCharacterSet getURLHostAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLHostAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLHostAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// URLPasswordAllowedCharacterSet + static objc.NSCharacterSet getURLPasswordAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLPasswordAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLPasswordAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// URLPathAllowedCharacterSet + static objc.NSCharacterSet getURLPathAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLPathAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLPathAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// URLQueryAllowedCharacterSet + static objc.NSCharacterSet getURLQueryAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLQueryAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLQueryAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// URLUserAllowedCharacterSet + static objc.NSCharacterSet getURLUserAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLUserAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLUserAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } +} + +const int NSUTF16BigEndianStringEncoding = 2415919360; + +const int NSUTF16LittleEndianStringEncoding = 2483028224; + +const int NSUTF16StringEncoding = 10; + +const int NSUTF32BigEndianStringEncoding = 2550137088; + +const int NSUTF32LittleEndianStringEncoding = 2617245952; + +const int NSUTF32StringEncoding = 2348810496; + +const int NSUTF8StringEncoding = 4; + +const int NSUbiquitousFileErrorMaximum = 4607; + +const int NSUbiquitousFileErrorMinimum = 4352; + +const int NSUbiquitousFileNotUploadedDueToQuotaError = 4354; + +const int NSUbiquitousFileUbiquityServerNotAvailable = 4355; + +const int NSUbiquitousFileUnavailableError = 4353; + +const int NSUbiquitousKeyValueStoreAccountChange = 3; + +const int NSUbiquitousKeyValueStoreInitialSyncChange = 1; + +const int NSUbiquitousKeyValueStoreQuotaViolationChange = 2; + +const int NSUbiquitousKeyValueStoreServerChange = 0; + +typedef NSUncaughtExceptionHandler = + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer exception$1) + >; +@Deprecated('Deprecated') +const int NSUndefinedDateComponent = 9223372036854775807; + +const int NSUndoCloseGroupingRunLoopOrdering = 350000; + +typedef NSUndoManagerUserInfoKey = ffi.Pointer; +typedef DartNSUndoManagerUserInfoKey = objc.NSString; + +const int NSUnicodeStringEncoding = 10; + +const int NSUnknownKeyScriptError = 7; + +const int NSUnknownKeySpecifierError = 3; + +/// WARNING: NSUserActivity is a stub. To generate bindings for this class, include +/// NSUserActivity in your config's objc-interfaces list. +/// +/// NSUserActivity +extension type NSUserActivity._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSUserActivity] that points to the same underlying object as [other]. + NSUserActivity.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSUserActivity', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } + + /// Constructs a [NSUserActivity] that wraps the given raw object pointer. + NSUserActivity.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSUserActivity', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } +} + +const int NSUserActivityConnectionUnavailableError = 4609; + +/// NSUserActivityDelegate +extension type NSUserActivityDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSUserActivityDelegate] that points to the same underlying object as [other]. + NSUserActivityDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSUserActivityDelegate] that wraps the given raw object pointer. + NSUserActivityDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSUserActivityDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSUserActivityDelegate, + ); + } +} + +extension NSUserActivityDelegate$Methods on NSUserActivityDelegate { + /// userActivity:didReceiveInputStream:outputStream: + void userActivity( + NSUserActivity userActivity, { + required objc.NSInputStream didReceiveInputStream, + required objc.NSOutputStream outputStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = userActivity.ref; + final _$$ref$2 = didReceiveInputStream.ref; + final _$$ref$3 = outputStream.ref; + objc.checkOsVersionInternal( + 'NSUserActivityDelegate.userActivity:didReceiveInputStream:outputStream:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_userActivity_didReceiveInputStream_outputStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserActivityDelegate', + 'userActivity:didReceiveInputStream:outputStream:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_userActivity_didReceiveInputStream_outputStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// userActivityWasContinued: + void userActivityWasContinued(NSUserActivity userActivity) { + final _$$ref = object$.ref; + final _$$ref$1 = userActivity.ref; + objc.checkOsVersionInternal( + 'NSUserActivityDelegate.userActivityWasContinued:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_userActivityWasContinued_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserActivityDelegate', + 'userActivityWasContinued:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_userActivityWasContinued_, + _$$ref$1.pointer, + ); + } + + /// userActivityWillSave: + void userActivityWillSave(NSUserActivity userActivity) { + final _$$ref = object$.ref; + final _$$ref$1 = userActivity.ref; + objc.checkOsVersionInternal( + 'NSUserActivityDelegate.userActivityWillSave:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_userActivityWillSave_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserActivityDelegate', + 'userActivityWillSave:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_userActivityWillSave_, + _$$ref$1.pointer, + ); + } +} + +interface class NSUserActivityDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSUserActivityDelegate.cast()); + + /// Builds an object that implements the NSUserActivityDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserActivityDelegate implement({ + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserActivityDelegate', + ); + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implement(builder, userActivity_didReceiveInputStream_outputStream_); + NSUserActivityDelegate$Builder.userActivityWasContinued_.implement( + builder, + userActivityWasContinued_, + ); + NSUserActivityDelegate$Builder.userActivityWillSave_.implement( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + return NSUserActivityDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserActivityDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implement(builder, userActivity_didReceiveInputStream_outputStream_); + NSUserActivityDelegate$Builder.userActivityWasContinued_.implement( + builder, + userActivityWasContinued_, + ); + NSUserActivityDelegate$Builder.userActivityWillSave_.implement( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSUserActivityDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserActivityDelegate implementAsListener({ + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserActivityDelegate', + ); + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implementAsListener( + builder, + userActivity_didReceiveInputStream_outputStream_, + ); + NSUserActivityDelegate$Builder.userActivityWasContinued_ + .implementAsListener(builder, userActivityWasContinued_); + NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsListener( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + return NSUserActivityDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserActivityDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implementAsListener( + builder, + userActivity_didReceiveInputStream_outputStream_, + ); + NSUserActivityDelegate$Builder.userActivityWasContinued_ + .implementAsListener(builder, userActivityWasContinued_); + NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsListener( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSUserActivityDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserActivityDelegate implementAsBlocking({ + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserActivityDelegate', + ); + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implementAsBlocking( + builder, + userActivity_didReceiveInputStream_outputStream_, + ); + NSUserActivityDelegate$Builder.userActivityWasContinued_ + .implementAsBlocking(builder, userActivityWasContinued_); + NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsBlocking( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + return NSUserActivityDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserActivityDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implementAsBlocking( + builder, + userActivity_didReceiveInputStream_outputStream_, + ); + NSUserActivityDelegate$Builder.userActivityWasContinued_ + .implementAsBlocking(builder, userActivityWasContinued_); + NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsBlocking( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + } + + /// userActivity:didReceiveInputStream:outputStream: + static final userActivity_didReceiveInputStream_outputStream_ = + objc.ObjCProtocolListenableMethod< + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) + >( + _protocol_NSUserActivityDelegate, + _sel_userActivity_didReceiveInputStream_outputStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserActivityDelegate, + _sel_userActivity_didReceiveInputStream_outputStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.fromFunction( + ( + ffi.Pointer _, + NSUserActivity arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.listener( + ( + ffi.Pointer _, + NSUserActivity arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.blocking( + ( + ffi.Pointer _, + NSUserActivity arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// userActivityWasContinued: + static final userActivityWasContinued_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSUserActivityDelegate, + _sel_userActivityWasContinued_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserActivityDelegate, + _sel_userActivityWasContinued_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.fromFunction( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.listener( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.blocking( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + ); + + /// userActivityWillSave: + static final userActivityWillSave_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSUserActivityDelegate, + _sel_userActivityWillSave_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserActivityDelegate, + _sel_userActivityWillSave_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.fromFunction( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.listener( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.blocking( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + ); +} + +const int NSUserActivityErrorMaximum = 4863; + +const int NSUserActivityErrorMinimum = 4608; + +const int NSUserActivityHandoffFailedError = 4608; + +const int NSUserActivityHandoffUserInfoTooLargeError = 4611; + +typedef NSUserActivityPersistentIdentifier = ffi.Pointer; +typedef DartNSUserActivityPersistentIdentifier = objc.NSString; + +const int NSUserActivityRemoteApplicationTimedOutError = 4610; + +typedef NSUserAppleScriptTaskCompletionHandler = + ffi.Pointer; +typedef DartNSUserAppleScriptTaskCompletionHandler = + objc.ObjCBlock; +typedef NSUserAutomatorTaskCompletionHandler = ffi.Pointer; +typedef DartNSUserAutomatorTaskCompletionHandler = + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >; + +const int NSUserCancelledError = 3072; + +/// NSUserInformation +extension NSUserInformation on NSProcessInfo { + /// fullUserName + objc.NSString get fullUserName { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.fullUserName', + iOS: (true, null), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fullUserName); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// userName + objc.NSString get userName { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.userName', + iOS: (true, null), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_userName); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// NSUserInformation +extension NSUserInformation$1 on NSFileManager { + /// homeDirectoryForCurrentUser + objc.NSURL get homeDirectoryForCurrentUser { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFileManager.homeDirectoryForCurrentUser', + iOS: (true, null), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_homeDirectoryForCurrentUser, + ); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// homeDirectoryForUser: + objc.NSURL? homeDirectoryForUser(objc.NSString userName) { + final _$$ref = object$.ref; + final _$$ref$1 = userName.ref; + objc.checkOsVersionInternal( + 'NSFileManager.homeDirectoryForUser:', + iOS: (true, null), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_homeDirectoryForUser_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// temporaryDirectory + objc.NSURL get temporaryDirectory { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFileManager.temporaryDirectory', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_temporaryDirectory); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSUserNotification is a stub. To generate bindings for this class, include +/// NSUserNotification in your config's objc-interfaces list. +/// +/// NSUserNotification +@Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', +) +extension type NSUserNotification._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCopying { + /// Constructs a [NSUserNotification] that points to the same underlying object as [other]. + NSUserNotification.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSUserNotification', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + } + + /// Constructs a [NSUserNotification] that wraps the given raw object pointer. + NSUserNotification.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSUserNotification', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + } +} + +@Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', +) +enum NSUserNotificationActivationType { + NSUserNotificationActivationTypeNone(0), + NSUserNotificationActivationTypeContentsClicked(1), + NSUserNotificationActivationTypeActionButtonClicked(2), + NSUserNotificationActivationTypeReplied(3), + NSUserNotificationActivationTypeAdditionalActionClicked(4); + + final int value; + const NSUserNotificationActivationType(this.value); + + static NSUserNotificationActivationType fromValue(int value) => + switch (value) { + 0 => NSUserNotificationActivationTypeNone, + 1 => NSUserNotificationActivationTypeContentsClicked, + 2 => NSUserNotificationActivationTypeActionButtonClicked, + 3 => NSUserNotificationActivationTypeReplied, + 4 => NSUserNotificationActivationTypeAdditionalActionClicked, + _ => throw ArgumentError( + 'Unknown value for NSUserNotificationActivationType: $value', + ), + }; +} + +/// WARNING: NSUserNotificationCenter is a stub. To generate bindings for this class, include +/// NSUserNotificationCenter in your config's objc-interfaces list. +/// +/// NSUserNotificationCenter +@Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', +) +extension type NSUserNotificationCenter._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSUserNotificationCenter] that points to the same underlying object as [other]. + NSUserNotificationCenter.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSUserNotificationCenter', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + } + + /// Constructs a [NSUserNotificationCenter] that wraps the given raw object pointer. + NSUserNotificationCenter.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSUserNotificationCenter', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + } +} + +/// NSUserNotificationCenterDelegate +extension type NSUserNotificationCenterDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSUserNotificationCenterDelegate] that points to the same underlying object as [other]. + NSUserNotificationCenterDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSUserNotificationCenterDelegate] that wraps the given raw object pointer. + NSUserNotificationCenterDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSUserNotificationCenterDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSUserNotificationCenterDelegate, + ); + } +} + +extension NSUserNotificationCenterDelegate$Methods + on NSUserNotificationCenterDelegate { + /// userNotificationCenter:didActivateNotification: + @Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', + ) + void userNotificationCenter( + NSUserNotificationCenter center, { + required NSUserNotification didActivateNotification, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = center.ref; + final _$$ref$2 = didActivateNotification.ref; + objc.checkOsVersionInternal( + 'NSUserNotificationCenterDelegate.userNotificationCenter:didActivateNotification:', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_userNotificationCenter_didActivateNotification_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserNotificationCenterDelegate', + 'userNotificationCenter:didActivateNotification:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_userNotificationCenter_didActivateNotification_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// userNotificationCenter:didDeliverNotification: + @Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', + ) + void userNotificationCenter$1( + NSUserNotificationCenter center, { + required NSUserNotification didDeliverNotification, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = center.ref; + final _$$ref$2 = didDeliverNotification.ref; + objc.checkOsVersionInternal( + 'NSUserNotificationCenterDelegate.userNotificationCenter:didDeliverNotification:', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_userNotificationCenter_didDeliverNotification_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserNotificationCenterDelegate', + 'userNotificationCenter:didDeliverNotification:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_userNotificationCenter_didDeliverNotification_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// userNotificationCenter:shouldPresentNotification: + @Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', + ) + bool userNotificationCenter$2( + NSUserNotificationCenter center, { + required NSUserNotification shouldPresentNotification, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = center.ref; + final _$$ref$2 = shouldPresentNotification.ref; + objc.checkOsVersionInternal( + 'NSUserNotificationCenterDelegate.userNotificationCenter:shouldPresentNotification:', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_userNotificationCenter_shouldPresentNotification_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserNotificationCenterDelegate', + 'userNotificationCenter:shouldPresentNotification:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_userNotificationCenter_shouldPresentNotification_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSUserNotificationCenterDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => objc.Protocol.fromPointer( + _protocol_NSUserNotificationCenterDelegate.cast(), + ); + + /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserNotificationCenterDelegate implement({ + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserNotificationCenterDelegate', + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implement(builder, userNotificationCenter_didActivateNotification_); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implement(builder, userNotificationCenter_didDeliverNotification_); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + return NSUserNotificationCenterDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implement(builder, userNotificationCenter_didActivateNotification_); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implement(builder, userNotificationCenter_didDeliverNotification_); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserNotificationCenterDelegate implementAsListener({ + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserNotificationCenterDelegate', + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implementAsListener( + builder, + userNotificationCenter_didActivateNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implementAsListener( + builder, + userNotificationCenter_didDeliverNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + return NSUserNotificationCenterDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implementAsListener( + builder, + userNotificationCenter_didActivateNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implementAsListener( + builder, + userNotificationCenter_didDeliverNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserNotificationCenterDelegate implementAsBlocking({ + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserNotificationCenterDelegate', + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implementAsBlocking( + builder, + userNotificationCenter_didActivateNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implementAsBlocking( + builder, + userNotificationCenter_didDeliverNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + return NSUserNotificationCenterDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implementAsBlocking( + builder, + userNotificationCenter_didActivateNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implementAsBlocking( + builder, + userNotificationCenter_didDeliverNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + } + + /// userNotificationCenter:didActivateNotification: + static final userNotificationCenter_didActivateNotification_ = + objc.ObjCProtocolListenableMethod< + void Function(NSUserNotificationCenter, NSUserNotification) + >( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_didActivateNotification_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_didActivateNotification_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.listener( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.blocking( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + ); + + /// userNotificationCenter:didDeliverNotification: + static final userNotificationCenter_didDeliverNotification_ = + objc.ObjCProtocolListenableMethod< + void Function(NSUserNotificationCenter, NSUserNotification) + >( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_didDeliverNotification_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_didDeliverNotification_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.listener( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.blocking( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + ); + + /// userNotificationCenter:shouldPresentNotification: + static final userNotificationCenter_shouldPresentNotification_ = + objc.ObjCProtocolMethod< + bool Function(NSUserNotificationCenter, NSUserNotification) + >( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_shouldPresentNotification_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_shouldPresentNotification_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + ); +} + +typedef NSUserScriptTaskCompletionHandler = ffi.Pointer; +typedef DartNSUserScriptTaskCompletionHandler = + objc.ObjCBlock; +typedef NSUserUnixTaskCompletionHandler = ffi.Pointer; +typedef DartNSUserUnixTaskCompletionHandler = + objc.ObjCBlock; + +const int NSValidationErrorMaximum = 2047; + +const int NSValidationErrorMinimum = 1024; + +/// NSValueCreation +extension NSValueCreation on objc.NSValue { + /// value:withObjCType: + static objc.NSValue value( + ffi.Pointer value, { + required ffi.Pointer withObjCType, + }) { + final $ret = _objc_msgSend_e9mncn( + _class_NSValue, + _sel_value_withObjCType_, + value, + withObjCType, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } + + /// valueWithBytes:objCType: + static objc.NSValue valueWithBytes( + ffi.Pointer value, { + required ffi.Pointer objCType, + }) { + final $ret = _objc_msgSend_e9mncn( + _class_NSValue, + _sel_valueWithBytes_objCType_, + value, + objCType, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } +} + +/// NSValueExtensionMethods +extension NSValueExtensionMethods on objc.NSValue { + /// isEqualToValue: + bool isEqualToValue(objc.NSValue value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isEqualToValue_, + _$$ref$1.pointer, + ); + } + + /// nonretainedObjectValue + objc.ObjCObject? get nonretainedObjectValue { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_nonretainedObjectValue, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// pointerValue + ffi.Pointer get pointerValue { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_pointerValue); + } + + /// valueWithNonretainedObject: + static objc.NSValue valueWithNonretainedObject(objc.ObjCObject? anObject) { + final _$$ref = anObject?.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSValue, + _sel_valueWithNonretainedObject_, + _$$ref?.pointer ?? ffi.nullptr, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } + + /// valueWithPointer: + static objc.NSValue valueWithPointer(ffi.Pointer pointer) { + final $ret = _objc_msgSend_1mbt9g9( + _class_NSValue, + _sel_valueWithPointer_, + pointer, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } +} + +/// NSValueGeometryExtensions +extension NSValueGeometryExtensions on objc.NSValue { + /// edgeInsetsValue + objc.NSEdgeInsets get edgeInsetsValue { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSValue.edgeInsetsValue', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_sl0cgwStret($ptr, _$$ref.pointer, _sel_edgeInsetsValue) + : $ptr.ref = _objc_msgSend_sl0cgw(_$$ref.pointer, _sel_edgeInsetsValue); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// pointValue + NSPoint get pointValue { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1uwdhlkStret($ptr, _$$ref.pointer, _sel_pointValue) + : $ptr.ref = _objc_msgSend_1uwdhlk(_$$ref.pointer, _sel_pointValue); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// rectValue + NSRect get rectValue { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_bu1hbwStret($ptr, _$$ref.pointer, _sel_rectValue) + : $ptr.ref = _objc_msgSend_bu1hbw(_$$ref.pointer, _sel_rectValue); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// sizeValue + NSSize get sizeValue { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_sizeValue) + : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_sizeValue); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// valueWithEdgeInsets: + static objc.NSValue valueWithEdgeInsets(objc.NSEdgeInsets insets) { + objc.checkOsVersionInternal( + 'NSValue.valueWithEdgeInsets:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $ret = _objc_msgSend_sax6zm( + _class_NSValue, + _sel_valueWithEdgeInsets_, + insets, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } + + /// valueWithPoint: + static objc.NSValue valueWithPoint(NSPoint point) { + final $ret = _objc_msgSend_wgkxx2( + _class_NSValue, + _sel_valueWithPoint_, + point, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } + + /// valueWithRect: + static objc.NSValue valueWithRect(NSRect rect) { + final $ret = _objc_msgSend_15yz4e6( + _class_NSValue, + _sel_valueWithRect_, + rect, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } + + /// valueWithSize: + static objc.NSValue valueWithSize(NSSize size) { + final $ret = _objc_msgSend_1c2zpn3( + _class_NSValue, + _sel_valueWithSize_, + size, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } +} + +/// NSValueRangeExtensions +extension NSValueRangeExtensions on objc.NSValue { + /// rangeValue + NSRange get rangeValue { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_rangeValue) + : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_rangeValue); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// valueWithRange: + static objc.NSValue valueWithRange(NSRange range) { + final $ret = _objc_msgSend_1k1o1s7( + _class_NSValue, + _sel_valueWithRange_, + range, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } +} + +typedef NSValueTransformerName = ffi.Pointer; +typedef DartNSValueTransformerName = objc.NSString; + +/// WARNING: NSView is a stub. To generate bindings for this class, include +/// NSView in your config's objc-interfaces list. +/// +/// NSView +extension type NSView._(objc.ObjCObject object$) implements objc.ObjCObject { + /// Constructs a [NSView] that points to the same underlying object as [other]. + NSView.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSView] that wraps the given raw object pointer. + NSView.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +sealed class NSVolumeEnumerationOptions { + static const NSVolumeEnumerationSkipHiddenVolumes = 2; + static const NSVolumeEnumerationProduceFileReferenceURLs = 4; +} + +enum NSWhoseSubelementIdentifier { + NSIndexSubelement(0), + NSEverySubelement(1), + NSMiddleSubelement(2), + NSRandomSubelement(3), + NSNoSubelement(4); + + final int value; + const NSWhoseSubelementIdentifier(this.value); + + static NSWhoseSubelementIdentifier fromValue(int value) => switch (value) { + 0 => NSIndexSubelement, + 1 => NSEverySubelement, + 2 => NSMiddleSubelement, + 3 => NSRandomSubelement, + 4 => NSNoSubelement, + _ => throw ArgumentError( + 'Unknown value for NSWhoseSubelementIdentifier: $value', + ), + }; +} + +@Deprecated('Not supported') +const int NSWindows95OperatingSystem = 2; + +const int NSWindowsCP1250StringEncoding = 15; + +const int NSWindowsCP1251StringEncoding = 11; + +const int NSWindowsCP1252StringEncoding = 12; + +const int NSWindowsCP1253StringEncoding = 13; + +const int NSWindowsCP1254StringEncoding = 14; + +@Deprecated('Not supported') +const int NSWindowsNTOperatingSystem = 1; + +@Deprecated('Deprecated') +const int NSWrapCalendarComponents = 1; + +enum NSXMLDTDNodeKind { + NSXMLEntityGeneralKind(1), + NSXMLEntityParsedKind(2), + NSXMLEntityUnparsedKind(3), + NSXMLEntityParameterKind(4), + NSXMLEntityPredefined(5), + NSXMLAttributeCDATAKind(6), + NSXMLAttributeIDKind(7), + NSXMLAttributeIDRefKind(8), + NSXMLAttributeIDRefsKind(9), + NSXMLAttributeEntityKind(10), + NSXMLAttributeEntitiesKind(11), + NSXMLAttributeNMTokenKind(12), + NSXMLAttributeNMTokensKind(13), + NSXMLAttributeEnumerationKind(14), + NSXMLAttributeNotationKind(15), + NSXMLElementDeclarationUndefinedKind(16), + NSXMLElementDeclarationEmptyKind(17), + NSXMLElementDeclarationAnyKind(18), + NSXMLElementDeclarationMixedKind(19), + NSXMLElementDeclarationElementKind(20); + + final int value; + const NSXMLDTDNodeKind(this.value); + + static NSXMLDTDNodeKind fromValue(int value) => switch (value) { + 1 => NSXMLEntityGeneralKind, + 2 => NSXMLEntityParsedKind, + 3 => NSXMLEntityUnparsedKind, + 4 => NSXMLEntityParameterKind, + 5 => NSXMLEntityPredefined, + 6 => NSXMLAttributeCDATAKind, + 7 => NSXMLAttributeIDKind, + 8 => NSXMLAttributeIDRefKind, + 9 => NSXMLAttributeIDRefsKind, + 10 => NSXMLAttributeEntityKind, + 11 => NSXMLAttributeEntitiesKind, + 12 => NSXMLAttributeNMTokenKind, + 13 => NSXMLAttributeNMTokensKind, + 14 => NSXMLAttributeEnumerationKind, + 15 => NSXMLAttributeNotationKind, + 16 => NSXMLElementDeclarationUndefinedKind, + 17 => NSXMLElementDeclarationEmptyKind, + 18 => NSXMLElementDeclarationAnyKind, + 19 => NSXMLElementDeclarationMixedKind, + 20 => NSXMLElementDeclarationElementKind, + _ => throw ArgumentError('Unknown value for NSXMLDTDNodeKind: $value'), + }; +} + +enum NSXMLDocumentContentKind { + NSXMLDocumentXMLKind(0), + NSXMLDocumentXHTMLKind(1), + NSXMLDocumentHTMLKind(2), + NSXMLDocumentTextKind(3); + + final int value; + const NSXMLDocumentContentKind(this.value); + + static NSXMLDocumentContentKind fromValue(int value) => switch (value) { + 0 => NSXMLDocumentXMLKind, + 1 => NSXMLDocumentXHTMLKind, + 2 => NSXMLDocumentHTMLKind, + 3 => NSXMLDocumentTextKind, + _ => throw ArgumentError( + 'Unknown value for NSXMLDocumentContentKind: $value', + ), + }; +} + +/// WARNING: NSXMLElement is a stub. To generate bindings for this class, include +/// NSXMLElement in your config's objc-interfaces list. +/// +/// NSXMLElement +extension type NSXMLElement._(objc.ObjCObject object$) + implements objc.ObjCObject, NSXMLNode { + /// Constructs a [NSXMLElement] that points to the same underlying object as [other]. + NSXMLElement.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSXMLElement] that wraps the given raw object pointer. + NSXMLElement.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// WARNING: NSXMLNode is a stub. To generate bindings for this class, include +/// NSXMLNode in your config's objc-interfaces list. +/// +/// NSXMLNode +extension type NSXMLNode._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCopying { + /// Constructs a [NSXMLNode] that points to the same underlying object as [other]. + NSXMLNode.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSXMLNode] that wraps the given raw object pointer. + NSXMLNode.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +enum NSXMLNodeKind { + NSXMLInvalidKind(0), + NSXMLDocumentKind(1), + NSXMLElementKind(2), + NSXMLAttributeKind(3), + NSXMLNamespaceKind(4), + NSXMLProcessingInstructionKind(5), + NSXMLCommentKind(6), + NSXMLTextKind(7), + NSXMLDTDKind(8), + NSXMLEntityDeclarationKind(9), + NSXMLAttributeDeclarationKind(10), + NSXMLElementDeclarationKind(11), + NSXMLNotationDeclarationKind(12); + + final int value; + const NSXMLNodeKind(this.value); + + static NSXMLNodeKind fromValue(int value) => switch (value) { + 0 => NSXMLInvalidKind, + 1 => NSXMLDocumentKind, + 2 => NSXMLElementKind, + 3 => NSXMLAttributeKind, + 4 => NSXMLNamespaceKind, + 5 => NSXMLProcessingInstructionKind, + 6 => NSXMLCommentKind, + 7 => NSXMLTextKind, + 8 => NSXMLDTDKind, + 9 => NSXMLEntityDeclarationKind, + 10 => NSXMLAttributeDeclarationKind, + 11 => NSXMLElementDeclarationKind, + 12 => NSXMLNotationDeclarationKind, + _ => throw ArgumentError('Unknown value for NSXMLNodeKind: $value'), + }; +} + +sealed class NSXMLNodeOptions { + static const NSXMLNodeOptionsNone = 0; + static const NSXMLNodeIsCDATA = 1; + static const NSXMLNodeExpandEmptyElement = 2; + static const NSXMLNodeCompactEmptyElement = 4; + static const NSXMLNodeUseSingleQuotes = 8; + static const NSXMLNodeUseDoubleQuotes = 16; + static const NSXMLNodeNeverEscapeContents = 32; + static const NSXMLDocumentTidyHTML = 512; + static const NSXMLDocumentTidyXML = 1024; + static const NSXMLDocumentValidate = 8192; + static const NSXMLNodeLoadExternalEntitiesAlways = 16384; + static const NSXMLNodeLoadExternalEntitiesSameOriginOnly = 32768; + static const NSXMLNodeLoadExternalEntitiesNever = 524288; + static const NSXMLDocumentXInclude = 65536; + static const NSXMLNodePrettyPrint = 131072; + static const NSXMLDocumentIncludeContentTypeDeclaration = 262144; + static const NSXMLNodePreserveNamespaceOrder = 1048576; + static const NSXMLNodePreserveAttributeOrder = 2097152; + static const NSXMLNodePreserveEntities = 4194304; + static const NSXMLNodePreservePrefixes = 8388608; + static const NSXMLNodePreserveCDATA = 16777216; + static const NSXMLNodePreserveWhitespace = 33554432; + static const NSXMLNodePreserveDTD = 67108864; + static const NSXMLNodePreserveCharacterReferences = 134217728; + static const NSXMLNodePromoteSignificantWhitespace = 268435456; + static const NSXMLNodePreserveEmptyElements = 6; + static const NSXMLNodePreserveQuotes = 24; + static const NSXMLNodePreserveAll = 4293918750; +} + +/// WARNING: NSXMLParser is a stub. To generate bindings for this class, include +/// NSXMLParser in your config's objc-interfaces list. +/// +/// NSXMLParser +extension type NSXMLParser._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSXMLParser] that points to the same underlying object as [other]. + NSXMLParser.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSXMLParser] that wraps the given raw object pointer. + NSXMLParser.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSXMLParserDelegate +extension type NSXMLParserDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSXMLParserDelegate] that points to the same underlying object as [other]. + NSXMLParserDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSXMLParserDelegate] that wraps the given raw object pointer. + NSXMLParserDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSXMLParserDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSXMLParserDelegate, + ); + } +} + +extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { + /// parser:didEndElement:namespaceURI:qualifiedName: + void parser( + NSXMLParser parser, { + required objc.NSString didEndElement, + objc.NSString? namespaceURI, + objc.NSString? qualifiedName, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = didEndElement.ref; + final _$$ref$3 = namespaceURI?.ref; + final _$$ref$4 = qualifiedName?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_didEndElement_namespaceURI_qualifiedName_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:didEndElement:namespaceURI:qualifiedName:', + ); + } + _objc_msgSend_mlcr8l( + _$$ref.pointer, + _sel_parser_didEndElement_namespaceURI_qualifiedName_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + ); + } + + /// parser:didEndMappingPrefix: + void parser$1( + NSXMLParser parser, { + required objc.NSString didEndMappingPrefix, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = didEndMappingPrefix.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_didEndMappingPrefix_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:didEndMappingPrefix:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_didEndMappingPrefix_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:didStartElement:namespaceURI:qualifiedName:attributes: + void parser$2( + NSXMLParser parser, { + required objc.NSString didStartElement, + objc.NSString? namespaceURI, + objc.NSString? qualifiedName, + required objc.NSDictionary attributes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = didStartElement.ref; + final _$$ref$3 = namespaceURI?.ref; + final _$$ref$4 = qualifiedName?.ref; + final _$$ref$5 = attributes.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:didStartElement:namespaceURI:qualifiedName:attributes:', + ); + } + _objc_msgSend_1wqutdn( + _$$ref.pointer, + _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + _$$ref$5.pointer, + ); + } + + /// parser:didStartMappingPrefix:toURI: + void parser$3( + NSXMLParser parser, { + required objc.NSString didStartMappingPrefix, + required objc.NSString toURI, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = didStartMappingPrefix.ref; + final _$$ref$3 = toURI.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_didStartMappingPrefix_toURI_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:didStartMappingPrefix:toURI:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_parser_didStartMappingPrefix_toURI_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: + void parser$4( + NSXMLParser parser, { + required objc.NSString foundAttributeDeclarationWithName, + required objc.NSString forElement, + objc.NSString? type, + objc.NSString? defaultValue, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundAttributeDeclarationWithName.ref; + final _$$ref$3 = forElement.ref; + final _$$ref$4 = type?.ref; + final _$$ref$5 = defaultValue?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:', + ); + } + _objc_msgSend_1wqutdn( + _$$ref.pointer, + _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4?.pointer ?? ffi.nullptr, + _$$ref$5?.pointer ?? ffi.nullptr, + ); + } + + /// parser:foundCDATA: + void parser$5(NSXMLParser parser, {required objc.NSData foundCDATA}) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundCDATA.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_parser_foundCDATA_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundCDATA:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_foundCDATA_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:foundCharacters: + void parser$6(NSXMLParser parser, {required objc.NSString foundCharacters}) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundCharacters.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundCharacters_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundCharacters:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_foundCharacters_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:foundComment: + void parser$7(NSXMLParser parser, {required objc.NSString foundComment}) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundComment.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_parser_foundComment_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundComment:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_foundComment_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:foundElementDeclarationWithName:model: + void parser$8( + NSXMLParser parser, { + required objc.NSString foundElementDeclarationWithName, + required objc.NSString model, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundElementDeclarationWithName.ref; + final _$$ref$3 = model.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundElementDeclarationWithName_model_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundElementDeclarationWithName:model:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_parser_foundElementDeclarationWithName_model_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// parser:foundExternalEntityDeclarationWithName:publicID:systemID: + void parser$9( + NSXMLParser parser, { + required objc.NSString foundExternalEntityDeclarationWithName, + objc.NSString? publicID, + objc.NSString? systemID, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundExternalEntityDeclarationWithName.ref; + final _$$ref$3 = publicID?.ref; + final _$$ref$4 = systemID?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundExternalEntityDeclarationWithName:publicID:systemID:', + ); + } + _objc_msgSend_mlcr8l( + _$$ref.pointer, + _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + ); + } + + /// parser:foundIgnorableWhitespace: + void parser$10( + NSXMLParser parser, { + required objc.NSString foundIgnorableWhitespace, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundIgnorableWhitespace.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundIgnorableWhitespace_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundIgnorableWhitespace:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_foundIgnorableWhitespace_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:foundInternalEntityDeclarationWithName:value: + void parser$11( + NSXMLParser parser, { + required objc.NSString foundInternalEntityDeclarationWithName, + objc.NSString? value, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundInternalEntityDeclarationWithName.ref; + final _$$ref$3 = value?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundInternalEntityDeclarationWithName_value_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundInternalEntityDeclarationWithName:value:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_parser_foundInternalEntityDeclarationWithName_value_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// parser:foundNotationDeclarationWithName:publicID:systemID: + void parser$12( + NSXMLParser parser, { + required objc.NSString foundNotationDeclarationWithName, + objc.NSString? publicID, + objc.NSString? systemID, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundNotationDeclarationWithName.ref; + final _$$ref$3 = publicID?.ref; + final _$$ref$4 = systemID?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundNotationDeclarationWithName:publicID:systemID:', + ); + } + _objc_msgSend_mlcr8l( + _$$ref.pointer, + _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + ); + } + + /// parser:foundProcessingInstructionWithTarget:data: + void parser$13( + NSXMLParser parser, { + required objc.NSString foundProcessingInstructionWithTarget, + objc.NSString? data, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundProcessingInstructionWithTarget.ref; + final _$$ref$3 = data?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundProcessingInstructionWithTarget_data_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundProcessingInstructionWithTarget:data:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_parser_foundProcessingInstructionWithTarget_data_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName: + void parser$14( + NSXMLParser parser, { + required objc.NSString foundUnparsedEntityDeclarationWithName, + objc.NSString? publicID, + objc.NSString? systemID, + objc.NSString? notationName, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundUnparsedEntityDeclarationWithName.ref; + final _$$ref$3 = publicID?.ref; + final _$$ref$4 = systemID?.ref; + final _$$ref$5 = notationName?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:', + ); + } + _objc_msgSend_1wqutdn( + _$$ref.pointer, + _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + _$$ref$5?.pointer ?? ffi.nullptr, + ); + } + + /// parser:parseErrorOccurred: + void parser$15( + NSXMLParser parser, { + required objc.NSError parseErrorOccurred, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = parseErrorOccurred.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_parseErrorOccurred_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:parseErrorOccurred:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_parseErrorOccurred_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:resolveExternalEntityName:systemID: + objc.NSData? parser$16( + NSXMLParser parser, { + required objc.NSString resolveExternalEntityName, + objc.NSString? systemID, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = resolveExternalEntityName.ref; + final _$$ref$3 = systemID?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_resolveExternalEntityName_systemID_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:resolveExternalEntityName:systemID:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_parser_resolveExternalEntityName_systemID_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// parser:validationErrorOccurred: + void parser$17( + NSXMLParser parser, { + required objc.NSError validationErrorOccurred, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = validationErrorOccurred.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_validationErrorOccurred_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:validationErrorOccurred:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_validationErrorOccurred_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parserDidEndDocument: + void parserDidEndDocument(NSXMLParser parser) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_parserDidEndDocument_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parserDidEndDocument:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_parserDidEndDocument_, + _$$ref$1.pointer, + ); + } + + /// parserDidStartDocument: + void parserDidStartDocument(NSXMLParser parser) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parserDidStartDocument_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parserDidStartDocument:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_parserDidStartDocument_, + _$$ref$1.pointer, + ); + } +} + +interface class NSXMLParserDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSXMLParserDelegate.cast()); + + /// Builds an object that implements the NSXMLParserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSXMLParserDelegate implement({ + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implement(builder, parser_didEndElement_namespaceURI_qualifiedName_); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implement( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implement( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_.implement( + builder, + parser_didStartMappingPrefix_toURI_, + ); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implement( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implement( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implement( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implement( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implement(builder, parser_foundElementDeclarationWithName_model_); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implement( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_.implement( + builder, + parser_foundIgnorableWhitespace_, + ); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implement( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implement( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implement(builder, parser_foundProcessingInstructionWithTarget_data_); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implement( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implement( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_.implement( + builder, + parser_validationErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implement( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implement( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + return NSXMLParserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSXMLParserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implement(builder, parser_didEndElement_namespaceURI_qualifiedName_); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implement( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implement( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_.implement( + builder, + parser_didStartMappingPrefix_toURI_, + ); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implement( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implement( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implement( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implement( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implement(builder, parser_foundElementDeclarationWithName_model_); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implement( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_.implement( + builder, + parser_foundIgnorableWhitespace_, + ); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implement( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implement( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implement(builder, parser_foundProcessingInstructionWithTarget_data_); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implement( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implement( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_.implement( + builder, + parser_validationErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implement( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implement( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSXMLParserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSXMLParserDelegate implementAsListener({ + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implementAsListener( + builder, + parser_didEndElement_namespaceURI_qualifiedName_, + ); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsListener( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implementAsListener( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ + .implementAsListener(builder, parser_didStartMappingPrefix_toURI_); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implementAsListener( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsListener( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsListener( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implementAsListener( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implementAsListener( + builder, + parser_foundElementDeclarationWithName_model_, + ); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implementAsListener( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ + .implementAsListener(builder, parser_foundIgnorableWhitespace_); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implementAsListener( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implementAsListener( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implementAsListener( + builder, + parser_foundProcessingInstructionWithTarget_data_, + ); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implementAsListener( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsListener( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ + .implementAsListener(builder, parser_validationErrorOccurred_); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsListener( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsListener( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + return NSXMLParserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSXMLParserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implementAsListener( + builder, + parser_didEndElement_namespaceURI_qualifiedName_, + ); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsListener( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implementAsListener( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ + .implementAsListener(builder, parser_didStartMappingPrefix_toURI_); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implementAsListener( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsListener( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsListener( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implementAsListener( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implementAsListener( + builder, + parser_foundElementDeclarationWithName_model_, + ); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implementAsListener( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ + .implementAsListener(builder, parser_foundIgnorableWhitespace_); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implementAsListener( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implementAsListener( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implementAsListener( + builder, + parser_foundProcessingInstructionWithTarget_data_, + ); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implementAsListener( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsListener( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ + .implementAsListener(builder, parser_validationErrorOccurred_); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsListener( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsListener( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSXMLParserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSXMLParserDelegate implementAsBlocking({ + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implementAsBlocking( + builder, + parser_didEndElement_namespaceURI_qualifiedName_, + ); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsBlocking( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implementAsBlocking( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ + .implementAsBlocking(builder, parser_didStartMappingPrefix_toURI_); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implementAsBlocking( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsBlocking( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsBlocking( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implementAsBlocking( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implementAsBlocking( + builder, + parser_foundElementDeclarationWithName_model_, + ); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implementAsBlocking( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ + .implementAsBlocking(builder, parser_foundIgnorableWhitespace_); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implementAsBlocking( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implementAsBlocking( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implementAsBlocking( + builder, + parser_foundProcessingInstructionWithTarget_data_, + ); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implementAsBlocking( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsBlocking( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ + .implementAsBlocking(builder, parser_validationErrorOccurred_); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsBlocking( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsBlocking( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + return NSXMLParserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSXMLParserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implementAsBlocking( + builder, + parser_didEndElement_namespaceURI_qualifiedName_, + ); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsBlocking( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implementAsBlocking( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ + .implementAsBlocking(builder, parser_didStartMappingPrefix_toURI_); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implementAsBlocking( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsBlocking( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsBlocking( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implementAsBlocking( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implementAsBlocking( + builder, + parser_foundElementDeclarationWithName_model_, + ); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implementAsBlocking( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ + .implementAsBlocking(builder, parser_foundIgnorableWhitespace_); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implementAsBlocking( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implementAsBlocking( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implementAsBlocking( + builder, + parser_foundProcessingInstructionWithTarget_data_, + ); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implementAsBlocking( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsBlocking( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ + .implementAsBlocking(builder, parser_validationErrorOccurred_); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsBlocking( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsBlocking( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + } + + /// parser:didEndElement:namespaceURI:qualifiedName: + static final parser_didEndElement_namespaceURI_qualifiedName_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_didEndElement_namespaceURI_qualifiedName_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_8jfq1p) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_didEndElement_namespaceURI_qualifiedName_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// parser:didEndMappingPrefix: + static final parser_didEndMappingPrefix_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_didEndMappingPrefix_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_didEndMappingPrefix_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + ); + + /// parser:didStartElement:namespaceURI:qualifiedName:attributes: + static final parser_didStartElement_namespaceURI_qualifiedName_attributes_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_m09tr7) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSDictionary arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSDictionary arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSDictionary arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// parser:didStartMappingPrefix:toURI: + static final parser_didStartMappingPrefix_toURI_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_didStartMappingPrefix_toURI_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_didStartMappingPrefix_toURI_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: + static final parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_m09tr7) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// parser:foundCDATA: + static final parser_foundCDATA_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSData) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundCDATA_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundCDATA_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + ); + + /// parser:foundCharacters: + static final parser_foundCharacters_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundCharacters_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundCharacters_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + ); + + /// parser:foundComment: + static final parser_foundComment_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundComment_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundComment_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + ); + + /// parser:foundElementDeclarationWithName:model: + static final parser_foundElementDeclarationWithName_model_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundElementDeclarationWithName_model_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundElementDeclarationWithName_model_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// parser:foundExternalEntityDeclarationWithName:publicID:systemID: + static final parser_foundExternalEntityDeclarationWithName_publicID_systemID_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_8jfq1p) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// parser:foundIgnorableWhitespace: + static final parser_foundIgnorableWhitespace_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundIgnorableWhitespace_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundIgnorableWhitespace_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + ); + + /// parser:foundInternalEntityDeclarationWithName:value: + static final parser_foundInternalEntityDeclarationWithName_value_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString, objc.NSString?) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundInternalEntityDeclarationWithName_value_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundInternalEntityDeclarationWithName_value_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// parser:foundNotationDeclarationWithName:publicID:systemID: + static final parser_foundNotationDeclarationWithName_publicID_systemID_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_8jfq1p) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// parser:foundProcessingInstructionWithTarget:data: + static final parser_foundProcessingInstructionWithTarget_data_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString, objc.NSString?) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundProcessingInstructionWithTarget_data_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundProcessingInstructionWithTarget_data_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName: + static final parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_m09tr7) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// parser:parseErrorOccurred: + static final parser_parseErrorOccurred_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSError) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_parseErrorOccurred_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_parseErrorOccurred_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + ); + + /// parser:resolveExternalEntityName:systemID: + static final parser_resolveExternalEntityName_systemID_ = + objc.ObjCProtocolMethod< + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_resolveExternalEntityName_systemID_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_resolveExternalEntityName_systemID_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?) + func, + ) => + ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// parser:validationErrorOccurred: + static final parser_validationErrorOccurred_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSError) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_validationErrorOccurred_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_validationErrorOccurred_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + ); + + /// parserDidEndDocument: + static final parserDidEndDocument_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSXMLParserDelegate, + _sel_parserDidEndDocument_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parserDidEndDocument_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.fromFunction( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.listener( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.blocking( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + ); + + /// parserDidStartDocument: + static final parserDidStartDocument_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSXMLParserDelegate, + _sel_parserDidStartDocument_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parserDidStartDocument_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.fromFunction( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.listener( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.blocking( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + ); +} + +enum NSXMLParserError { + NSXMLParserInternalError(1), + NSXMLParserOutOfMemoryError(2), + NSXMLParserDocumentStartError(3), + NSXMLParserEmptyDocumentError(4), + NSXMLParserPrematureDocumentEndError(5), + NSXMLParserInvalidHexCharacterRefError(6), + NSXMLParserInvalidDecimalCharacterRefError(7), + NSXMLParserInvalidCharacterRefError(8), + NSXMLParserInvalidCharacterError(9), + NSXMLParserCharacterRefAtEOFError(10), + NSXMLParserCharacterRefInPrologError(11), + NSXMLParserCharacterRefInEpilogError(12), + NSXMLParserCharacterRefInDTDError(13), + NSXMLParserEntityRefAtEOFError(14), + NSXMLParserEntityRefInPrologError(15), + NSXMLParserEntityRefInEpilogError(16), + NSXMLParserEntityRefInDTDError(17), + NSXMLParserParsedEntityRefAtEOFError(18), + NSXMLParserParsedEntityRefInPrologError(19), + NSXMLParserParsedEntityRefInEpilogError(20), + NSXMLParserParsedEntityRefInInternalSubsetError(21), + NSXMLParserEntityReferenceWithoutNameError(22), + NSXMLParserEntityReferenceMissingSemiError(23), + NSXMLParserParsedEntityRefNoNameError(24), + NSXMLParserParsedEntityRefMissingSemiError(25), + NSXMLParserUndeclaredEntityError(26), + NSXMLParserUnparsedEntityError(28), + NSXMLParserEntityIsExternalError(29), + NSXMLParserEntityIsParameterError(30), + NSXMLParserUnknownEncodingError(31), + NSXMLParserEncodingNotSupportedError(32), + NSXMLParserStringNotStartedError(33), + NSXMLParserStringNotClosedError(34), + NSXMLParserNamespaceDeclarationError(35), + NSXMLParserEntityNotStartedError(36), + NSXMLParserEntityNotFinishedError(37), + NSXMLParserLessThanSymbolInAttributeError(38), + NSXMLParserAttributeNotStartedError(39), + NSXMLParserAttributeNotFinishedError(40), + NSXMLParserAttributeHasNoValueError(41), + NSXMLParserAttributeRedefinedError(42), + NSXMLParserLiteralNotStartedError(43), + NSXMLParserLiteralNotFinishedError(44), + NSXMLParserCommentNotFinishedError(45), + NSXMLParserProcessingInstructionNotStartedError(46), + NSXMLParserProcessingInstructionNotFinishedError(47), + NSXMLParserNotationNotStartedError(48), + NSXMLParserNotationNotFinishedError(49), + NSXMLParserAttributeListNotStartedError(50), + NSXMLParserAttributeListNotFinishedError(51), + NSXMLParserMixedContentDeclNotStartedError(52), + NSXMLParserMixedContentDeclNotFinishedError(53), + NSXMLParserElementContentDeclNotStartedError(54), + NSXMLParserElementContentDeclNotFinishedError(55), + NSXMLParserXMLDeclNotStartedError(56), + NSXMLParserXMLDeclNotFinishedError(57), + NSXMLParserConditionalSectionNotStartedError(58), + NSXMLParserConditionalSectionNotFinishedError(59), + NSXMLParserExternalSubsetNotFinishedError(60), + NSXMLParserDOCTYPEDeclNotFinishedError(61), + NSXMLParserMisplacedCDATAEndStringError(62), + NSXMLParserCDATANotFinishedError(63), + NSXMLParserMisplacedXMLDeclarationError(64), + NSXMLParserSpaceRequiredError(65), + NSXMLParserSeparatorRequiredError(66), + NSXMLParserNMTOKENRequiredError(67), + NSXMLParserNAMERequiredError(68), + NSXMLParserPCDATARequiredError(69), + NSXMLParserURIRequiredError(70), + NSXMLParserPublicIdentifierRequiredError(71), + NSXMLParserLTRequiredError(72), + NSXMLParserGTRequiredError(73), + NSXMLParserLTSlashRequiredError(74), + NSXMLParserEqualExpectedError(75), + NSXMLParserTagNameMismatchError(76), + NSXMLParserUnfinishedTagError(77), + NSXMLParserStandaloneValueError(78), + NSXMLParserInvalidEncodingNameError(79), + NSXMLParserCommentContainsDoubleHyphenError(80), + NSXMLParserInvalidEncodingError(81), + NSXMLParserExternalStandaloneEntityError(82), + NSXMLParserInvalidConditionalSectionError(83), + NSXMLParserEntityValueRequiredError(84), + NSXMLParserNotWellBalancedError(85), + NSXMLParserExtraContentError(86), + NSXMLParserInvalidCharacterInEntityError(87), + NSXMLParserParsedEntityRefInInternalError(88), + NSXMLParserEntityRefLoopError(89), + NSXMLParserEntityBoundaryError(90), + NSXMLParserInvalidURIError(91), + NSXMLParserURIFragmentError(92), + NSXMLParserNoDTDError(94), + NSXMLParserDelegateAbortedParseError(512); + + final int value; + const NSXMLParserError(this.value); + + static NSXMLParserError fromValue(int value) => switch (value) { + 1 => NSXMLParserInternalError, + 2 => NSXMLParserOutOfMemoryError, + 3 => NSXMLParserDocumentStartError, + 4 => NSXMLParserEmptyDocumentError, + 5 => NSXMLParserPrematureDocumentEndError, + 6 => NSXMLParserInvalidHexCharacterRefError, + 7 => NSXMLParserInvalidDecimalCharacterRefError, + 8 => NSXMLParserInvalidCharacterRefError, + 9 => NSXMLParserInvalidCharacterError, + 10 => NSXMLParserCharacterRefAtEOFError, + 11 => NSXMLParserCharacterRefInPrologError, + 12 => NSXMLParserCharacterRefInEpilogError, + 13 => NSXMLParserCharacterRefInDTDError, + 14 => NSXMLParserEntityRefAtEOFError, + 15 => NSXMLParserEntityRefInPrologError, + 16 => NSXMLParserEntityRefInEpilogError, + 17 => NSXMLParserEntityRefInDTDError, + 18 => NSXMLParserParsedEntityRefAtEOFError, + 19 => NSXMLParserParsedEntityRefInPrologError, + 20 => NSXMLParserParsedEntityRefInEpilogError, + 21 => NSXMLParserParsedEntityRefInInternalSubsetError, + 22 => NSXMLParserEntityReferenceWithoutNameError, + 23 => NSXMLParserEntityReferenceMissingSemiError, + 24 => NSXMLParserParsedEntityRefNoNameError, + 25 => NSXMLParserParsedEntityRefMissingSemiError, + 26 => NSXMLParserUndeclaredEntityError, + 28 => NSXMLParserUnparsedEntityError, + 29 => NSXMLParserEntityIsExternalError, + 30 => NSXMLParserEntityIsParameterError, + 31 => NSXMLParserUnknownEncodingError, + 32 => NSXMLParserEncodingNotSupportedError, + 33 => NSXMLParserStringNotStartedError, + 34 => NSXMLParserStringNotClosedError, + 35 => NSXMLParserNamespaceDeclarationError, + 36 => NSXMLParserEntityNotStartedError, + 37 => NSXMLParserEntityNotFinishedError, + 38 => NSXMLParserLessThanSymbolInAttributeError, + 39 => NSXMLParserAttributeNotStartedError, + 40 => NSXMLParserAttributeNotFinishedError, + 41 => NSXMLParserAttributeHasNoValueError, + 42 => NSXMLParserAttributeRedefinedError, + 43 => NSXMLParserLiteralNotStartedError, + 44 => NSXMLParserLiteralNotFinishedError, + 45 => NSXMLParserCommentNotFinishedError, + 46 => NSXMLParserProcessingInstructionNotStartedError, + 47 => NSXMLParserProcessingInstructionNotFinishedError, + 48 => NSXMLParserNotationNotStartedError, + 49 => NSXMLParserNotationNotFinishedError, + 50 => NSXMLParserAttributeListNotStartedError, + 51 => NSXMLParserAttributeListNotFinishedError, + 52 => NSXMLParserMixedContentDeclNotStartedError, + 53 => NSXMLParserMixedContentDeclNotFinishedError, + 54 => NSXMLParserElementContentDeclNotStartedError, + 55 => NSXMLParserElementContentDeclNotFinishedError, + 56 => NSXMLParserXMLDeclNotStartedError, + 57 => NSXMLParserXMLDeclNotFinishedError, + 58 => NSXMLParserConditionalSectionNotStartedError, + 59 => NSXMLParserConditionalSectionNotFinishedError, + 60 => NSXMLParserExternalSubsetNotFinishedError, + 61 => NSXMLParserDOCTYPEDeclNotFinishedError, + 62 => NSXMLParserMisplacedCDATAEndStringError, + 63 => NSXMLParserCDATANotFinishedError, + 64 => NSXMLParserMisplacedXMLDeclarationError, + 65 => NSXMLParserSpaceRequiredError, + 66 => NSXMLParserSeparatorRequiredError, + 67 => NSXMLParserNMTOKENRequiredError, + 68 => NSXMLParserNAMERequiredError, + 69 => NSXMLParserPCDATARequiredError, + 70 => NSXMLParserURIRequiredError, + 71 => NSXMLParserPublicIdentifierRequiredError, + 72 => NSXMLParserLTRequiredError, + 73 => NSXMLParserGTRequiredError, + 74 => NSXMLParserLTSlashRequiredError, + 75 => NSXMLParserEqualExpectedError, + 76 => NSXMLParserTagNameMismatchError, + 77 => NSXMLParserUnfinishedTagError, + 78 => NSXMLParserStandaloneValueError, + 79 => NSXMLParserInvalidEncodingNameError, + 80 => NSXMLParserCommentContainsDoubleHyphenError, + 81 => NSXMLParserInvalidEncodingError, + 82 => NSXMLParserExternalStandaloneEntityError, + 83 => NSXMLParserInvalidConditionalSectionError, + 84 => NSXMLParserEntityValueRequiredError, + 85 => NSXMLParserNotWellBalancedError, + 86 => NSXMLParserExtraContentError, + 87 => NSXMLParserInvalidCharacterInEntityError, + 88 => NSXMLParserParsedEntityRefInInternalError, + 89 => NSXMLParserEntityRefLoopError, + 90 => NSXMLParserEntityBoundaryError, + 91 => NSXMLParserInvalidURIError, + 92 => NSXMLParserURIFragmentError, + 94 => NSXMLParserNoDTDError, + 512 => NSXMLParserDelegateAbortedParseError, + _ => throw ArgumentError('Unknown value for NSXMLParserError: $value'), + }; +} + +enum NSXMLParserExternalEntityResolvingPolicy { + NSXMLParserResolveExternalEntitiesNever(0), + NSXMLParserResolveExternalEntitiesNoNetwork(1), + NSXMLParserResolveExternalEntitiesSameOriginOnly(2), + NSXMLParserResolveExternalEntitiesAlways(3); + + final int value; + const NSXMLParserExternalEntityResolvingPolicy(this.value); + + static NSXMLParserExternalEntityResolvingPolicy fromValue(int value) => + switch (value) { + 0 => NSXMLParserResolveExternalEntitiesNever, + 1 => NSXMLParserResolveExternalEntitiesNoNetwork, + 2 => NSXMLParserResolveExternalEntitiesSameOriginOnly, + 3 => NSXMLParserResolveExternalEntitiesAlways, + _ => throw ArgumentError( + 'Unknown value for NSXMLParserExternalEntityResolvingPolicy: $value', + ), + }; +} + +/// NSXMLParserLocatorAdditions +extension NSXMLParserLocatorAdditions on NSXMLParser { + /// columnNumber + DartNSInteger get columnNumber { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_columnNumber); + } + + /// lineNumber + DartNSInteger get lineNumber { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_lineNumber); + } + + /// publicID + objc.NSString? get publicID { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_publicID); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// systemID + objc.NSString? get systemID { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_systemID); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSXPCConnection is a stub. To generate bindings for this class, include +/// NSXPCConnection in your config's objc-interfaces list. +/// +/// NSXPCConnection +extension type NSXPCConnection._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, NSXPCProxyCreating { + /// Constructs a [NSXPCConnection] that points to the same underlying object as [other]. + NSXPCConnection.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSXPCConnection', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + } + + /// Constructs a [NSXPCConnection] that wraps the given raw object pointer. + NSXPCConnection.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSXPCConnection', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + } +} + +const int NSXPCConnectionCodeSigningRequirementFailure = 4102; + +const int NSXPCConnectionErrorMaximum = 4224; + +const int NSXPCConnectionErrorMinimum = 4096; + +const int NSXPCConnectionInterrupted = 4097; + +const int NSXPCConnectionInvalid = 4099; + +sealed class NSXPCConnectionOptions { + static const NSXPCConnectionPrivileged = 4096; +} + +const int NSXPCConnectionReplyInvalid = 4101; + +/// WARNING: NSXPCListener is a stub. To generate bindings for this class, include +/// NSXPCListener in your config's objc-interfaces list. +/// +/// NSXPCListener +extension type NSXPCListener._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSXPCListener] that points to the same underlying object as [other]. + NSXPCListener.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSXPCListener', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + } + + /// Constructs a [NSXPCListener] that wraps the given raw object pointer. + NSXPCListener.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSXPCListener', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + } +} + +/// NSXPCListenerDelegate +extension type NSXPCListenerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSXPCListenerDelegate] that points to the same underlying object as [other]. + NSXPCListenerDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSXPCListenerDelegate] that wraps the given raw object pointer. + NSXPCListenerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSXPCListenerDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSXPCListenerDelegate, + ); + } +} + +extension NSXPCListenerDelegate$Methods on NSXPCListenerDelegate { + /// listener:shouldAcceptNewConnection: + bool listener( + NSXPCListener listener, { + required NSXPCConnection shouldAcceptNewConnection, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = listener.ref; + final _$$ref$2 = shouldAcceptNewConnection.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_listener_shouldAcceptNewConnection_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXPCListenerDelegate', + 'listener:shouldAcceptNewConnection:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_listener_shouldAcceptNewConnection_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSXPCListenerDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSXPCListenerDelegate.cast()); + + /// Builds an object that implements the NSXPCListenerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSXPCListenerDelegate implement({ + bool Function(NSXPCListener, NSXPCConnection)? + listener_shouldAcceptNewConnection_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSXPCListenerDelegate', + ); + NSXPCListenerDelegate$Builder.listener_shouldAcceptNewConnection_.implement( + builder, + listener_shouldAcceptNewConnection_, + ); + builder.addProtocol($protocol); + return NSXPCListenerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSXPCListenerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSXPCListener, NSXPCConnection)? + listener_shouldAcceptNewConnection_, + bool $keepIsolateAlive = true, + }) { + NSXPCListenerDelegate$Builder.listener_shouldAcceptNewConnection_.implement( + builder, + listener_shouldAcceptNewConnection_, + ); + builder.addProtocol($protocol); + } + + /// listener:shouldAcceptNewConnection: + static final listener_shouldAcceptNewConnection_ = + objc.ObjCProtocolMethod( + _protocol_NSXPCListenerDelegate, + _sel_listener_shouldAcceptNewConnection_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXPCListenerDelegate, + _sel_listener_shouldAcceptNewConnection_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSXPCListener, NSXPCConnection) func) => + ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection.fromFunction( + ( + ffi.Pointer _, + NSXPCListener arg1, + NSXPCConnection arg2, + ) => func(arg1, arg2), + ), + ); +} + +/// NSXPCProxyCreating +extension type NSXPCProxyCreating._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSXPCProxyCreating] that points to the same underlying object as [other]. + NSXPCProxyCreating.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSXPCProxyCreating] that wraps the given raw object pointer. + NSXPCProxyCreating.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSXPCProxyCreating]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSXPCProxyCreating, + ); + } +} + +extension NSXPCProxyCreating$Methods on NSXPCProxyCreating { + /// remoteObjectProxy + objc.ObjCObject remoteObjectProxy() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_remoteObjectProxy); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// remoteObjectProxyWithErrorHandler: + objc.ObjCObject remoteObjectProxyWithErrorHandler( + objc.ObjCBlock handler, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = handler.ref; + final $ret = _objc_msgSend_nnxkei( + _$$ref.pointer, + _sel_remoteObjectProxyWithErrorHandler_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// synchronousRemoteObjectProxyWithErrorHandler: + objc.ObjCObject synchronousRemoteObjectProxyWithErrorHandler( + objc.ObjCBlock handler, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = handler.ref; + objc.checkOsVersionInternal( + 'NSXPCProxyCreating.synchronousRemoteObjectProxyWithErrorHandler:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_synchronousRemoteObjectProxyWithErrorHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXPCProxyCreating', + 'synchronousRemoteObjectProxyWithErrorHandler:', + ); + } + final $ret = _objc_msgSend_nnxkei( + _$$ref.pointer, + _sel_synchronousRemoteObjectProxyWithErrorHandler_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +interface class NSXPCProxyCreating$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSXPCProxyCreating.cast()); + + /// Builds an object that implements the NSXPCProxyCreating protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSXPCProxyCreating implement({ + required objc.ObjCObject Function() remoteObjectProxy, + required objc.ObjCObject Function( + objc.ObjCBlock, + ) + remoteObjectProxyWithErrorHandler_, + objc.ObjCObject Function(objc.ObjCBlock)? + synchronousRemoteObjectProxyWithErrorHandler_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSXPCProxyCreating'); + NSXPCProxyCreating$Builder.remoteObjectProxy.implement( + builder, + remoteObjectProxy, + ); + NSXPCProxyCreating$Builder.remoteObjectProxyWithErrorHandler_.implement( + builder, + remoteObjectProxyWithErrorHandler_, + ); + NSXPCProxyCreating$Builder.synchronousRemoteObjectProxyWithErrorHandler_ + .implement(builder, synchronousRemoteObjectProxyWithErrorHandler_); + builder.addProtocol($protocol); + return NSXPCProxyCreating.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSXPCProxyCreating protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObject Function() remoteObjectProxy, + required objc.ObjCObject Function( + objc.ObjCBlock, + ) + remoteObjectProxyWithErrorHandler_, + objc.ObjCObject Function(objc.ObjCBlock)? + synchronousRemoteObjectProxyWithErrorHandler_, + bool $keepIsolateAlive = true, + }) { + NSXPCProxyCreating$Builder.remoteObjectProxy.implement( + builder, + remoteObjectProxy, + ); + NSXPCProxyCreating$Builder.remoteObjectProxyWithErrorHandler_.implement( + builder, + remoteObjectProxyWithErrorHandler_, + ); + NSXPCProxyCreating$Builder.synchronousRemoteObjectProxyWithErrorHandler_ + .implement(builder, synchronousRemoteObjectProxyWithErrorHandler_); + builder.addProtocol($protocol); + } + + /// remoteObjectProxy + static final remoteObjectProxy = + objc.ObjCProtocolMethod( + _protocol_NSXPCProxyCreating, + _sel_remoteObjectProxy, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXPCProxyCreating, + _sel_remoteObjectProxy, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObject Function() func) => + ObjCBlock_objcObjCObjectImpl_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// remoteObjectProxyWithErrorHandler: + static final remoteObjectProxyWithErrorHandler_ = + objc.ObjCProtocolMethod< + objc.ObjCObject Function( + objc.ObjCBlock, + ) + >( + _protocol_NSXPCProxyCreating, + _sel_remoteObjectProxyWithErrorHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_wpy7aa) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXPCProxyCreating, + _sel_remoteObjectProxyWithErrorHandler_, + isRequired: true, + isInstanceMethod: true, + ), + ( + objc.ObjCObject Function( + objc.ObjCBlock, + ) + func, + ) => ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ); + + /// synchronousRemoteObjectProxyWithErrorHandler: + static final synchronousRemoteObjectProxyWithErrorHandler_ = + objc.ObjCProtocolMethod< + objc.ObjCObject Function( + objc.ObjCBlock, + ) + >( + _protocol_NSXPCProxyCreating, + _sel_synchronousRemoteObjectProxyWithErrorHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_wpy7aa) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXPCProxyCreating, + _sel_synchronousRemoteObjectProxyWithErrorHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.ObjCObject Function( + objc.ObjCBlock, + ) + func, + ) => ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ); +} + +typedef NSZone = objc.NSZone; + +const int NS_BigEndian = 2; + +const int NS_LittleEndian = 1; + +const int NS_UnknownByteOrder = 0; + +typedef NXCoord = ffi.Float; +typedef DartNXCoord = double; +typedef NXEvent = _NXEvent; + +final class NXEventData extends ffi.Union { + external UnnamedStruct$21 mouse; + + external UnnamedStruct$13 mouseMove; + + external UnnamedStruct$12 key; + + external UnnamedStruct$18 tracking; + + external UnnamedStruct$9 scrollWheel; + + external UnnamedStruct$9 zoom; + + external UnnamedStruct$10 compound$1; + + external UnnamedStruct$17 tablet; + + external UnnamedStruct$19 proximity; +} + +typedef NXEventExt = _NXEventExt; +typedef NXEventExtension = _NXEventExtension; +typedef NXEventPtr = ffi.Pointer<_NXEvent>; + +final class NXEventSystemDevice extends ffi.Struct { + @ffi.Int() + external int interface; + + @ffi.Int() + external int interface_addr; + + @ffi.Int() + external int dev_type; + + @ffi.Int() + external int id; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int interface, + required int interface_addr, + required int dev_type, + required int id, + }) => $allocator() + ..ref.interface = interface + ..ref.interface_addr = interface_addr + ..ref.dev_type = dev_type + ..ref.id = id; +} + +final class NXEventSystemDeviceList extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array dev; +} + +typedef NXEventSystemInfoType = ffi.Pointer; +typedef NXKeyMapping = evsioKeymapping; + +enum NXMouseButton { + NX_OneButton(0), + NX_LeftButton(1), + NX_RightButton(2); + + final int value; + const NXMouseButton(this.value); + + static NXMouseButton fromValue(int value) => switch (value) { + 0 => NX_OneButton, + 1 => NX_LeftButton, + 2 => NX_RightButton, + _ => throw ArgumentError('Unknown value for NXMouseButton: $value'), + }; +} + +typedef NXMouseScaling = evsioMouseScaling; +typedef NXPoint = _NXPoint; +typedef NXSize = _NXSize; +typedef NXTabletPointData = _NXTabletPointData; +typedef NXTabletPointDataPtr = ffi.Pointer<_NXTabletPointData>; +typedef NXTabletProximityData = _NXTabletProximityData; +typedef NXTabletProximityDataPtr = ffi.Pointer<_NXTabletProximityData>; + +const int NameID = 1312902469; + +final class NameTable extends ffi.Struct { + @SInt16() + external int stringCount; + + @ffi.Array.multi([256]) + external ffi.Array baseFontName; +} + +typedef Nanoseconds = UnsignedWide; + +const int NetActivity = 2; + +const int NoLooping = 0; + +const int NoneType = 1313820229; + +final class NumFormatString extends ffi.Struct { + @UInt8() + external int fLength; + + @UInt8() + external int fVersion; + + @ffi.Array.multi([254]) + external ffi.Array data; +} + +typedef NumFormatStringRec = NumFormatString; + +final class NumVersion extends ffi.Struct { + @UInt8() + external int nonRelRev; + + @UInt8() + external int stage; + + @UInt8() + external int minorAndBugRev; + + @UInt8() + external int majorRev; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nonRelRev, + required int stage, + required int minorAndBugRev, + required int majorRev, + }) => $allocator() + ..ref.nonRelRev = nonRelRev + ..ref.stage = stage + ..ref.minorAndBugRev = minorAndBugRev + ..ref.majorRev = majorRev; +} + +final class NumVersionVariant extends ffi.Union { + external NumVersion parts; + + @UInt32() + external int whole; +} + +typedef NumVersionVariantHandle = ffi.Pointer; +typedef NumVersionVariantPtr = ffi.Pointer; + +final class NumberParts extends ffi.Struct { + @ffi.Short() + external int version; + + @ffi.Array.multi([31]) + external ffi.Array data; + + external WideCharArr pePlus; + + external WideCharArr peMinus; + + external WideCharArr peMinusPlus; + + external WideCharArr altNumTable; + + @ffi.Array.multi([20]) + external ffi.Array reserved; +} + +typedef NumberPartsPtr = ffi.Pointer; + +const int OSAControlFlowError = -2755; + +const int OSADuplicateHandler = -2752; + +const int OSADuplicateParameter = -2750; + +const int OSADuplicateProperty = -2751; + +const int OSAIllegalAccess = -1723; + +const int OSAIllegalAssign = -10003; + +const int OSAIllegalIndex = -1719; + +const int OSAIllegalRange = -1720; + +const int OSAInconsistentDeclarations = -2754; + +const int OSAMessageNotUnderstood = -1708; + +const int OSAMissingParameter = -1701; + +const int OSAParameterMismatch = -1721; + +const int OSASyntaxError = -2740; + +const int OSASyntaxTypeError = -2741; + +const int OSATokenTooLong = -2742; + +const int OSAUndefinedHandler = -1717; + +const int OSAUndefinedVariable = -2753; + +typedef OSAtomic_int64_aligned64_t = ffi.Int64; +typedef DartOSAtomic_int64_aligned64_t = int; + +const int OSBigEndian = 2; + +typedef OSErr = SInt16; +typedef OSFifoQueueHead = UnnamedStruct$2; +typedef OSLAccessorProcPtr = + ffi.Pointer>; +typedef OSLAccessorProcPtrFunction = + OSErr Function( + DescType desiredClass, + ffi.Pointer container, + DescType containerClass, + DescType form, + ffi.Pointer selectionData, + ffi.Pointer value, + SRefCon accessorRefcon, + ); +typedef DartOSLAccessorProcPtrFunction = + DartSInt16 Function( + DartUInt32 desiredClass, + ffi.Pointer container, + DartUInt32 containerClass, + DartUInt32 form, + ffi.Pointer selectionData, + ffi.Pointer value, + SRefCon accessorRefcon, + ); +typedef OSLAccessorUPP = OSLAccessorProcPtr; +typedef OSLAdjustMarksProcPtr = + ffi.Pointer>; +typedef OSLAdjustMarksProcPtrFunction = + OSErr Function( + ffi.Long newStart, + ffi.Long newStop, + ffi.Pointer markToken, + ); +typedef DartOSLAdjustMarksProcPtrFunction = + DartSInt16 Function( + int newStart, + int newStop, + ffi.Pointer markToken, + ); +typedef OSLAdjustMarksUPP = OSLAdjustMarksProcPtr; +typedef OSLCompareProcPtr = + ffi.Pointer>; +typedef OSLCompareProcPtrFunction = + OSErr Function( + DescType oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ); +typedef DartOSLCompareProcPtrFunction = + DartSInt16 Function( + DartUInt32 oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ); +typedef OSLCompareUPP = OSLCompareProcPtr; +typedef OSLCountProcPtr = + ffi.Pointer>; +typedef OSLCountProcPtrFunction = + OSErr Function( + DescType desiredType, + DescType containerClass, + ffi.Pointer container, + ffi.Pointer result, + ); +typedef DartOSLCountProcPtrFunction = + DartSInt16 Function( + DartUInt32 desiredType, + DartUInt32 containerClass, + ffi.Pointer container, + ffi.Pointer result, + ); +typedef OSLCountUPP = OSLCountProcPtr; +typedef OSLDisposeTokenProcPtr = + ffi.Pointer>; +typedef OSLDisposeTokenProcPtrFunction = + OSErr Function(ffi.Pointer unneededToken); +typedef DartOSLDisposeTokenProcPtrFunction = + DartSInt16 Function(ffi.Pointer unneededToken); +typedef OSLDisposeTokenUPP = OSLDisposeTokenProcPtr; +typedef OSLGetErrDescProcPtr = + ffi.Pointer>; +typedef OSLGetErrDescProcPtrFunction = + OSErr Function(ffi.Pointer> appDescPtr); +typedef DartOSLGetErrDescProcPtrFunction = + DartSInt16 Function(ffi.Pointer> appDescPtr); +typedef OSLGetErrDescUPP = OSLGetErrDescProcPtr; +typedef OSLGetMarkTokenProcPtr = + ffi.Pointer>; +typedef OSLGetMarkTokenProcPtrFunction = + OSErr Function( + ffi.Pointer dContainerToken, + DescType containerClass, + ffi.Pointer result, + ); +typedef DartOSLGetMarkTokenProcPtrFunction = + DartSInt16 Function( + ffi.Pointer dContainerToken, + DartUInt32 containerClass, + ffi.Pointer result, + ); +typedef OSLGetMarkTokenUPP = OSLGetMarkTokenProcPtr; +typedef OSLMarkProcPtr = + ffi.Pointer>; +typedef OSLMarkProcPtrFunction = + OSErr Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + ffi.Long index$1, + ); +typedef DartOSLMarkProcPtrFunction = + DartSInt16 Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + int index$1, + ); +typedef OSLMarkUPP = OSLMarkProcPtr; + +const int OSLittleEndian = 1; + +final class OSNotificationHeader extends ffi.Opaque {} + +final class OSNotificationHeader64 extends ffi.Opaque {} + +typedef OSQueueHead = UnnamedStruct$1; +typedef OSSpinLock = ffi.Int32; +typedef DartOSSpinLock = int; +typedef OSStatus = SInt32; +typedef OSType = FourCharCode; +typedef OSTypePtr = ffi.Pointer; + +const int OSUnknownByteOrder = 0; + +/// OS_dispatch_data +extension type OS_dispatch_data._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_data] that points to the same underlying object as [other]. + OS_dispatch_data.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_data] that wraps the given raw object pointer. + OS_dispatch_data.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_data]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_data, + ); + } +} + +extension OS_dispatch_data$Methods on OS_dispatch_data {} + +interface class OS_dispatch_data$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_data.cast()); + + /// Builds an object that implements the OS_dispatch_data protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_data implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_data'); + + builder.addProtocol($protocol); + return OS_dispatch_data.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_data protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_group +extension type OS_dispatch_group._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_group] that points to the same underlying object as [other]. + OS_dispatch_group.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_group] that wraps the given raw object pointer. + OS_dispatch_group.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_group]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_group, + ); + } +} + +extension OS_dispatch_group$Methods on OS_dispatch_group {} + +interface class OS_dispatch_group$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_group.cast()); + + /// Builds an object that implements the OS_dispatch_group protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_group implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_group'); + + builder.addProtocol($protocol); + return OS_dispatch_group.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_group protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_io +extension type OS_dispatch_io._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_io] that points to the same underlying object as [other]. + OS_dispatch_io.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_io] that wraps the given raw object pointer. + OS_dispatch_io.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_io]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_io, + ); + } +} + +extension OS_dispatch_io$Methods on OS_dispatch_io {} + +interface class OS_dispatch_io$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_io.cast()); + + /// Builds an object that implements the OS_dispatch_io protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_io implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_io'); + + builder.addProtocol($protocol); + return OS_dispatch_io.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_io protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_object +extension type OS_dispatch_object._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_dispatch_object] that points to the same underlying object as [other]. + OS_dispatch_object.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_object] that wraps the given raw object pointer. + OS_dispatch_object.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_object]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_object, + ); + } +} + +extension OS_dispatch_object$Methods on OS_dispatch_object {} + +interface class OS_dispatch_object$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_object.cast()); + + /// Builds an object that implements the OS_dispatch_object protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_object implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_object'); + + builder.addProtocol($protocol); + return OS_dispatch_object.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_object protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue +extension type OS_dispatch_queue._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_queue] that points to the same underlying object as [other]. + OS_dispatch_queue.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue] that wraps the given raw object pointer. + OS_dispatch_queue.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue, + ); + } +} + +extension OS_dispatch_queue$Methods on OS_dispatch_queue {} + +interface class OS_dispatch_queue$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue.cast()); + + /// Builds an object that implements the OS_dispatch_queue protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_queue'); + + builder.addProtocol($protocol); + return OS_dispatch_queue.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_attr +extension type OS_dispatch_queue_attr._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_queue_attr] that points to the same underlying object as [other]. + OS_dispatch_queue_attr.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_attr] that wraps the given raw object pointer. + OS_dispatch_queue_attr.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_attr]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_attr, + ); + } +} + +extension OS_dispatch_queue_attr$Methods on OS_dispatch_queue_attr {} + +interface class OS_dispatch_queue_attr$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_attr.cast()); + + /// Builds an object that implements the OS_dispatch_queue_attr protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_attr implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_attr', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_attr.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_attr protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_concurrent +extension type OS_dispatch_queue_concurrent._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue { + /// Constructs a [OS_dispatch_queue_concurrent] that points to the same underlying object as [other]. + OS_dispatch_queue_concurrent.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_concurrent] that wraps the given raw object pointer. + OS_dispatch_queue_concurrent.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_concurrent]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_concurrent, + ); + } +} + +extension OS_dispatch_queue_concurrent$Methods + on OS_dispatch_queue_concurrent {} + +interface class OS_dispatch_queue_concurrent$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_concurrent.cast()); + + /// Builds an object that implements the OS_dispatch_queue_concurrent protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_concurrent implement({ + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_concurrent', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_concurrent.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_concurrent protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_global +extension type OS_dispatch_queue_global._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue { + /// Constructs a [OS_dispatch_queue_global] that points to the same underlying object as [other]. + OS_dispatch_queue_global.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_global] that wraps the given raw object pointer. + OS_dispatch_queue_global.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_global]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_global, + ); + } +} + +extension OS_dispatch_queue_global$Methods on OS_dispatch_queue_global {} + +interface class OS_dispatch_queue_global$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_global.cast()); + + /// Builds an object that implements the OS_dispatch_queue_global protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_global implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_global', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_global.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_global protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_main +extension type OS_dispatch_queue_main._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue_serial { + /// Constructs a [OS_dispatch_queue_main] that points to the same underlying object as [other]. + OS_dispatch_queue_main.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_main] that wraps the given raw object pointer. + OS_dispatch_queue_main.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_main]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_main, + ); + } +} + +extension OS_dispatch_queue_main$Methods on OS_dispatch_queue_main {} + +interface class OS_dispatch_queue_main$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_main.cast()); + + /// Builds an object that implements the OS_dispatch_queue_main protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_main implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_main', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_main.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_main protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_serial +extension type OS_dispatch_queue_serial._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue { + /// Constructs a [OS_dispatch_queue_serial] that points to the same underlying object as [other]. + OS_dispatch_queue_serial.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_serial] that wraps the given raw object pointer. + OS_dispatch_queue_serial.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_serial]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_serial, + ); + } +} + +extension OS_dispatch_queue_serial$Methods on OS_dispatch_queue_serial {} + +interface class OS_dispatch_queue_serial$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_serial.cast()); + + /// Builds an object that implements the OS_dispatch_queue_serial protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_serial implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_serial', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_serial.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_serial protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_serial_executor +extension type OS_dispatch_queue_serial_executor._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue { + /// Constructs a [OS_dispatch_queue_serial_executor] that points to the same underlying object as [other]. + OS_dispatch_queue_serial_executor.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_serial_executor] that wraps the given raw object pointer. + OS_dispatch_queue_serial_executor.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_serial_executor]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_serial_executor, + ); + } +} + +extension OS_dispatch_queue_serial_executor$Methods + on OS_dispatch_queue_serial_executor {} + +interface class OS_dispatch_queue_serial_executor$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => objc.Protocol.fromPointer( + _protocol_OS_dispatch_queue_serial_executor.cast(), + ); + + /// Builds an object that implements the OS_dispatch_queue_serial_executor protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_serial_executor implement({ + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_serial_executor', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_serial_executor.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_serial_executor protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_semaphore +extension type OS_dispatch_semaphore._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_semaphore] that points to the same underlying object as [other]. + OS_dispatch_semaphore.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_semaphore] that wraps the given raw object pointer. + OS_dispatch_semaphore.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_semaphore]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_semaphore, + ); + } +} + +extension OS_dispatch_semaphore$Methods on OS_dispatch_semaphore {} + +interface class OS_dispatch_semaphore$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_semaphore.cast()); + + /// Builds an object that implements the OS_dispatch_semaphore protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_semaphore implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_semaphore', + ); + + builder.addProtocol($protocol); + return OS_dispatch_semaphore.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_semaphore protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_source +extension type OS_dispatch_source._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_source] that points to the same underlying object as [other]. + OS_dispatch_source.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_source] that wraps the given raw object pointer. + OS_dispatch_source.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_source]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_source, + ); + } +} + +extension OS_dispatch_source$Methods on OS_dispatch_source {} + +interface class OS_dispatch_source$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_source.cast()); + + /// Builds an object that implements the OS_dispatch_source protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_source implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_source'); + + builder.addProtocol($protocol); + return OS_dispatch_source.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_source protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_workloop +extension type OS_dispatch_workloop._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue { + /// Constructs a [OS_dispatch_workloop] that points to the same underlying object as [other]. + OS_dispatch_workloop.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_workloop] that wraps the given raw object pointer. + OS_dispatch_workloop.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_workloop]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_workloop, + ); + } +} + +extension OS_dispatch_workloop$Methods on OS_dispatch_workloop {} + +interface class OS_dispatch_workloop$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_workloop.cast()); + + /// Builds an object that implements the OS_dispatch_workloop protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_workloop implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_workloop'); + + builder.addProtocol($protocol); + return OS_dispatch_workloop.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_workloop protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// WARNING: OS_object is a stub. To generate bindings for this class, include +/// OS_object in your config's objc-interfaces list. +/// +/// OS_object +extension type OS_object._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [OS_object] that points to the same underlying object as [other]. + OS_object.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [OS_object] that wraps the given raw object pointer. + OS_object.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// WARNING: OS_os_workgroup is a stub. To generate bindings for this class, include +/// OS_os_workgroup in your config's objc-interfaces list. +/// +/// OS_os_workgroup +extension type OS_os_workgroup._(objc.ObjCObject object$) + implements objc.ObjCObject, OS_object { + /// Constructs a [OS_os_workgroup] that points to the same underlying object as [other]. + OS_os_workgroup.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [OS_os_workgroup] that wraps the given raw object pointer. + OS_os_workgroup.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// OS_os_workgroup_interval +extension type OS_os_workgroup_interval._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [OS_os_workgroup_interval] that points to the same underlying object as [other]. + OS_os_workgroup_interval.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_os_workgroup_interval] that wraps the given raw object pointer. + OS_os_workgroup_interval.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_os_workgroup_interval]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_os_workgroup_interval, + ); + } +} + +extension OS_os_workgroup_interval$Methods on OS_os_workgroup_interval {} + +interface class OS_os_workgroup_interval$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_os_workgroup_interval.cast()); + + /// Builds an object that implements the OS_os_workgroup_interval protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_os_workgroup_interval implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_os_workgroup_interval', + ); + + builder.addProtocol($protocol); + return OS_os_workgroup_interval.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_os_workgroup_interval protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_os_workgroup_parallel +extension type OS_os_workgroup_parallel._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [OS_os_workgroup_parallel] that points to the same underlying object as [other]. + OS_os_workgroup_parallel.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_os_workgroup_parallel] that wraps the given raw object pointer. + OS_os_workgroup_parallel.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_os_workgroup_parallel]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_os_workgroup_parallel, + ); + } +} + +extension OS_os_workgroup_parallel$Methods on OS_os_workgroup_parallel {} + +interface class OS_os_workgroup_parallel$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_os_workgroup_parallel.cast()); + + /// Builds an object that implements the OS_os_workgroup_parallel protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_os_workgroup_parallel implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_os_workgroup_parallel', + ); + + builder.addProtocol($protocol); + return OS_os_workgroup_parallel.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_os_workgroup_parallel protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_certificate +extension type OS_sec_certificate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_certificate] that points to the same underlying object as [other]. + OS_sec_certificate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_certificate] that wraps the given raw object pointer. + OS_sec_certificate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_certificate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_certificate, + ); + } +} + +extension OS_sec_certificate$Methods on OS_sec_certificate {} + +interface class OS_sec_certificate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_certificate.cast()); + + /// Builds an object that implements the OS_sec_certificate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_certificate implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_certificate'); + + builder.addProtocol($protocol); + return OS_sec_certificate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_sec_certificate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_identity +extension type OS_sec_identity._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_identity] that points to the same underlying object as [other]. + OS_sec_identity.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_identity] that wraps the given raw object pointer. + OS_sec_identity.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_identity]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_identity, + ); + } +} + +extension OS_sec_identity$Methods on OS_sec_identity {} + +interface class OS_sec_identity$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_identity.cast()); + + /// Builds an object that implements the OS_sec_identity protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_identity implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_identity'); + + builder.addProtocol($protocol); + return OS_sec_identity.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_sec_identity protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_object +extension type OS_sec_object._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_object] that points to the same underlying object as [other]. + OS_sec_object.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_object] that wraps the given raw object pointer. + OS_sec_object.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_object]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_object, + ); + } +} + +extension OS_sec_object$Methods on OS_sec_object {} + +interface class OS_sec_object$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_object.cast()); + + /// Builds an object that implements the OS_sec_object protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_object implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_object'); + + builder.addProtocol($protocol); + return OS_sec_object.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the OS_sec_object protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_protocol_metadata +extension type OS_sec_protocol_metadata._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_protocol_metadata] that points to the same underlying object as [other]. + OS_sec_protocol_metadata.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_protocol_metadata] that wraps the given raw object pointer. + OS_sec_protocol_metadata.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_protocol_metadata]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_protocol_metadata, + ); + } +} + +extension OS_sec_protocol_metadata$Methods on OS_sec_protocol_metadata {} + +interface class OS_sec_protocol_metadata$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_protocol_metadata.cast()); + + /// Builds an object that implements the OS_sec_protocol_metadata protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_protocol_metadata implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_sec_protocol_metadata', + ); + + builder.addProtocol($protocol); + return OS_sec_protocol_metadata.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_sec_protocol_metadata protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_protocol_options +extension type OS_sec_protocol_options._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_protocol_options] that points to the same underlying object as [other]. + OS_sec_protocol_options.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_protocol_options] that wraps the given raw object pointer. + OS_sec_protocol_options.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_protocol_options]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_protocol_options, + ); + } +} + +extension OS_sec_protocol_options$Methods on OS_sec_protocol_options {} + +interface class OS_sec_protocol_options$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_protocol_options.cast()); + + /// Builds an object that implements the OS_sec_protocol_options protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_protocol_options implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_sec_protocol_options', + ); + + builder.addProtocol($protocol); + return OS_sec_protocol_options.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_sec_protocol_options protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_trust +extension type OS_sec_trust._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_trust] that points to the same underlying object as [other]. + OS_sec_trust.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_trust] that wraps the given raw object pointer. + OS_sec_trust.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_trust]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_trust, + ); + } +} + +extension OS_sec_trust$Methods on OS_sec_trust {} + +interface class OS_sec_trust$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_trust.cast()); + + /// Builds an object that implements the OS_sec_trust protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_trust implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_trust'); + + builder.addProtocol($protocol); + return OS_sec_trust.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the OS_sec_trust protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_xpc_listener +extension type OS_xpc_listener._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_xpc_listener] that points to the same underlying object as [other]. + OS_xpc_listener.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_xpc_listener] that wraps the given raw object pointer. + OS_xpc_listener.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_xpc_listener]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_xpc_listener, + ); + } +} + +extension OS_xpc_listener$Methods on OS_xpc_listener {} + +interface class OS_xpc_listener$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_xpc_listener.cast()); + + /// Builds an object that implements the OS_xpc_listener protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_xpc_listener implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_listener'); + + builder.addProtocol($protocol); + return OS_xpc_listener.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_xpc_listener protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_xpc_object +extension type OS_xpc_object._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_xpc_object] that points to the same underlying object as [other]. + OS_xpc_object.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_xpc_object] that wraps the given raw object pointer. + OS_xpc_object.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_xpc_object]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_xpc_object, + ); + } +} + +extension OS_xpc_object$Methods on OS_xpc_object {} + +interface class OS_xpc_object$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_xpc_object.cast()); + + /// Builds an object that implements the OS_xpc_object protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_xpc_object implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_object'); + + builder.addProtocol($protocol); + return OS_xpc_object.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the OS_xpc_object protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_xpc_peer_requirement +extension type OS_xpc_peer_requirement._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_xpc_peer_requirement] that points to the same underlying object as [other]. + OS_xpc_peer_requirement.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_xpc_peer_requirement] that wraps the given raw object pointer. + OS_xpc_peer_requirement.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_xpc_peer_requirement]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_xpc_peer_requirement, + ); + } +} + +extension OS_xpc_peer_requirement$Methods on OS_xpc_peer_requirement {} + +interface class OS_xpc_peer_requirement$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_xpc_peer_requirement.cast()); + + /// Builds an object that implements the OS_xpc_peer_requirement protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_xpc_peer_requirement implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_xpc_peer_requirement', + ); + + builder.addProtocol($protocol); + return OS_xpc_peer_requirement.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_xpc_peer_requirement protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_xpc_session +extension type OS_xpc_session._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_xpc_session] that points to the same underlying object as [other]. + OS_xpc_session.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_xpc_session] that wraps the given raw object pointer. + OS_xpc_session.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_xpc_session]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_xpc_session, + ); + } +} + +extension OS_xpc_session$Methods on OS_xpc_session {} + +interface class OS_xpc_session$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_xpc_session.cast()); + + /// Builds an object that implements the OS_xpc_session protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_xpc_session implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_session'); + + builder.addProtocol($protocol); + return OS_xpc_session.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_xpc_session protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer<__CFDictionary>, ffi.Int)>`. +abstract final class ObjCBlock_CFArrayRef_CFDictionaryRef_pidt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + > + fromFunction( + CFArrayRef Function(CFDictionaryRef, Dart__int32_t) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + >( + objc.newClosureBlock(_closureCallable, ( + CFDictionaryRef arg0, + int arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CFArrayRef _fnPtrTrampoline( + ffi.Pointer block, + CFDictionaryRef arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CFArrayRef Function(CFDictionaryRef arg0, pid_t arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFArrayRef Function( + ffi.Pointer, + CFDictionaryRef, + pid_t, + ) + >(_fnPtrTrampoline) + .cast(); + static CFArrayRef _closureTrampoline( + ffi.Pointer block, + CFDictionaryRef arg0, + int arg1, + ) => + (objc.getBlockClosure(block) + as CFArrayRef Function(CFDictionaryRef, int))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFArrayRef Function( + ffi.Pointer, + CFDictionaryRef, + pid_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer<__CFDictionary>, ffi.Int)>`. +extension ObjCBlock_CFArrayRef_CFDictionaryRef_pidt$CallExtension + on + objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + > { + CFArrayRef call(CFDictionaryRef arg0, Dart__int32_t arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFArrayRef Function( + ffi.Pointer block, + CFDictionaryRef arg0, + pid_t arg1, + ) + > + >() + .asFunction< + CFArrayRef Function( + ffi.Pointer, + CFDictionaryRef, + int, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_CFComparisonResult_CFTypeRef_CFTypeRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + CFComparisonResult Function(ffi.Pointer, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1).value; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFIndex Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as int Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFIndex Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_CFComparisonResult_CFTypeRef_CFTypeRef$CallExtension + on + objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + > { + CFComparisonResult call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return CFComparisonResult.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1), + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function()>`. +abstract final class ObjCBlock_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function()> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function()>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function()> fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock Function()>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function()> fromFunction( + CFErrorRef Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function()>( + objc.newClosureBlock(_closureCallable, () { + return fn(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CFErrorRef _fnPtrTrampoline(ffi.Pointer block) => + block.ref.target + .cast>() + .asFunction()(); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFErrorRef Function(ffi.Pointer) + >(_fnPtrTrampoline) + .cast(); + static CFErrorRef _closureTrampoline(ffi.Pointer block) => + (objc.getBlockClosure(block) as CFErrorRef Function())(); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFErrorRef Function(ffi.Pointer) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function()>`. +extension ObjCBlock_CFErrorRef$CallExtension + on objc.ObjCBlock Function()> { + CFErrorRef call() { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFErrorRef Function(ffi.Pointer block) + > + >() + .asFunction)>()( + ref.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function()>`. +abstract final class ObjCBlock_CFTypeRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function()> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function()>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function()> fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock Function()>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function()> fromFunction( + CFTypeRef Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function()>( + objc.newClosureBlock(_closureCallable, () { + return fn(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CFTypeRef _fnPtrTrampoline(ffi.Pointer block) => + block.ref.target + .cast>() + .asFunction()(); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function(ffi.Pointer) + >(_fnPtrTrampoline) + .cast(); + static CFTypeRef _closureTrampoline(ffi.Pointer block) => + (objc.getBlockClosure(block) as CFTypeRef Function())(); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function(ffi.Pointer) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function()>`. +extension ObjCBlock_CFTypeRef$CallExtension + on objc.ObjCBlock Function()> { + CFTypeRef call() { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFTypeRef Function(ffi.Pointer block) + > + >() + .asFunction)>()( + ref.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_CFTypeRef_SecTransformAttributeRef_CFTypeRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + CFTypeRef Function(SecTransformAttributeRef arg0, CFTypeRef arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + CFTypeRef Function(SecTransformAttributeRef, CFTypeRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + SecTransformAttributeRef arg0, + CFTypeRef arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CFTypeRef _fnPtrTrampoline( + ffi.Pointer block, + SecTransformAttributeRef arg0, + CFTypeRef arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CFTypeRef Function(SecTransformAttributeRef arg0, CFTypeRef arg1) + > + >() + .asFunction< + CFTypeRef Function(SecTransformAttributeRef, CFTypeRef) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function( + ffi.Pointer, + SecTransformAttributeRef, + CFTypeRef, + ) + >(_fnPtrTrampoline) + .cast(); + static CFTypeRef _closureTrampoline( + ffi.Pointer block, + SecTransformAttributeRef arg0, + CFTypeRef arg1, + ) => + (objc.getBlockClosure(block) + as CFTypeRef Function(SecTransformAttributeRef, CFTypeRef))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function( + ffi.Pointer, + SecTransformAttributeRef, + CFTypeRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_CFTypeRef_SecTransformAttributeRef_CFTypeRef$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + CFTypeRef call(SecTransformAttributeRef arg0, CFTypeRef arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFTypeRef Function( + ffi.Pointer block, + SecTransformAttributeRef arg0, + CFTypeRef arg1, + ) + > + >() + .asFunction< + CFTypeRef Function( + ffi.Pointer, + SecTransformAttributeRef, + CFTypeRef, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, objc.CGSize, ffi.Double, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + CGImageRef Function( + ffi.Pointer arg0, + objc.CGSize arg1, + CGFloat arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + CGImageRef Function( + ffi.Pointer, + objc.CGSize, + DartCGFloat, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + objc.CGSize arg1, + double arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn(arg0, arg1, arg2, arg3, arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CGImageRef _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + objc.CGSize arg1, + double arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CGImageRef Function( + ffi.Pointer arg0, + objc.CGSize arg1, + CGFloat arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + CGImageRef Function( + ffi.Pointer, + objc.CGSize, + double, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + CGFloat, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static CGImageRef _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + objc.CGSize arg1, + double arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as CGImageRef Function( + ffi.Pointer, + objc.CGSize, + double, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + CGFloat, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, objc.CGSize, ffi.Double, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + > { + CGImageRef call( + ffi.Pointer arg0, + objc.CGSize arg1, + DartCGFloat arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CGImageRef Function( + ffi.Pointer block, + ffi.Pointer arg0, + objc.CGSize arg1, + CGFloat arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + double, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2, arg3, arg4); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CGRenderingBufferProviderRef _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static CGRenderingBufferProviderRef _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + CGRenderingBufferProviderRef call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer, ffi.Uint64, ffi.Pointer)>`. +abstract final class ObjCBlock_CVReturn_CVDisplayLinkRef_CVTimeStamp_CVTimeStamp_CVOptionFlags_CVOptionFlags { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + CVReturn Function( + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + CVOptionFlags arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + > + fromFunction( + DartCVReturn Function( + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + DartCVOptionFlags, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) { + return fn(arg0, arg1, arg2, arg3, arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CVReturn Function( + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + CVOptionFlags arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + int Function( + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CVReturn Function( + ffi.Pointer, + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + CVOptionFlags, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as int Function( + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CVReturn Function( + ffi.Pointer, + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + CVOptionFlags, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer, ffi.Uint64, ffi.Pointer)>`. +extension ObjCBlock_CVReturn_CVDisplayLinkRef_CVTimeStamp_CVTimeStamp_CVOptionFlags_CVOptionFlags$CallExtension + on + objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + > { + DartCVReturn call( + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + DartCVOptionFlags arg3, + ffi.Pointer arg4, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CVReturn Function( + ffi.Pointer block, + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + CVOptionFlags arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2, arg3, arg4); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSArray_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSArray? Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0)?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSArray_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSArray? call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0) + .address == + 0 + ? null + : objc.NSArray.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSRange, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + final _$$ref = fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + arg2, + objc.NSString.fromPointer(arg3, retain: true, release: true), + objc.NSString.fromPointer(arg4, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSRange, objc.NSString, objc.NSString)>`. +extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString$CallExtension + on + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + > { + objc.NSArray? call( + ffi.Pointer arg0, + NSSpellServer arg1, + NSRange arg2, + objc.NSString arg3, + objc.NSString arg4, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + arg2, + _$$ref$2.pointer, + _$$ref$3.pointer, + ) + .address == + 0 + ? null + : objc.NSArray.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + arg2, + _$$ref$2.pointer, + _$$ref$3.pointer, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. +extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString$CallExtension + on + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > { + objc.NSArray? call( + ffi.Pointer arg0, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ) + .address == + 0 + ? null + : objc.NSArray.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, ffi.UnsignedLong, ffi.Uint64, objc.NSDictionary?, NSOrthography?, ffi.Pointer)>`. +abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + NSTextCheckingTypes arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + > + fromFunction( + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) { + final _$$ref = fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3, + arg4, + arg5.address == 0 + ? null + : objc.NSDictionary.fromPointer( + arg5, + retain: true, + release: true, + ), + arg6.address == 0 + ? null + : NSOrthography.fromPointer(arg6, retain: true, release: true), + arg7, + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + NSTextCheckingTypes arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSTextCheckingTypes, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSTextCheckingTypes, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, ffi.UnsignedLong, ffi.Uint64, objc.NSDictionary?, NSOrthography?, ffi.Pointer)>`. +extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger$CallExtension + on + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + > { + objc.NSArray? call( + ffi.Pointer arg0, + NSSpellServer arg1, + objc.NSString arg2, + DartNSUInteger arg3, + DartNSTextCheckingTypes arg4, + objc.NSDictionary? arg5, + NSOrthography? arg6, + ffi.Pointer arg7, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg5?.ref; + final _$$ref$4 = arg6?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + NSTextCheckingTypes arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + arg3, + arg4, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + arg7, + ) + .address == + 0 + ? null + : objc.NSArray.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + NSTextCheckingTypes arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + arg3, + arg4, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + arg7, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSString, ffi.Pointer)>`. +abstract final class ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + > + fromFunction( + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + PDEPlugInCallbackProtocol, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + objc.NSString.fromPointer(arg1, retain: true, release: true), + PDEPlugInCallbackProtocol.fromPointer( + arg2, + retain: true, + release: true, + ), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSString, ffi.Pointer)>`. +extension ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol$CallExtension + on + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + > { + objc.NSArray? call( + ffi.Pointer arg0, + objc.NSString arg1, + PDEPlugInCallbackProtocol arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) + .address == + 0 + ? null + : objc.NSArray.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSCachedURLResponse)>`. +abstract final class ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + > + fromFunction( + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSCachedURLResponse.fromPointer(arg2, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSCachedURLResponse)>`. +extension ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse$CallExtension + on + objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + > { + NSCachedURLResponse? call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSCachedURLResponse arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) + .address == + 0 + ? null + : NSCachedURLResponse.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_NSComparisonResult_objcObjCObjectImpl_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.NSComparisonResult Function(objc.ObjCObject, objc.ObjCObject) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + objc.ObjCObject(arg0, retain: true, release: true), + objc.ObjCObject(arg1, retain: true, release: true), + ).value; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as int Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_NSComparisonResult_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.NSComparisonResult call(objc.ObjCObject arg0, objc.ObjCObject arg1) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + return objc.NSComparisonResult.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer), + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSArray)>`. +abstract final class ObjCBlock_NSData_ffiVoid_NSArray { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSData Function(ffi.Pointer, objc.NSArray) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock, objc.NSArray)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSData Function(ffi.Pointer, objc.NSArray) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock, objc.NSArray)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSData Function(ffi.Pointer, objc.NSArray) + > + fromFunction( + objc.NSData Function(ffi.Pointer, objc.NSArray) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock, objc.NSArray)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + final _$$ref = fn( + arg0, + objc.NSArray.fromPointer(arg1, retain: true, release: true), + ).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSArray)>`. +extension ObjCBlock_NSData_ffiVoid_NSArray$CallExtension + on + objc.ObjCBlock< + objc.NSData Function(ffi.Pointer, objc.NSArray) + > { + objc.NSData call(ffi.Pointer arg0, objc.NSArray arg1) { + final _$$ref$1 = arg1.ref; + return objc.NSData.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. +abstract final class ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromFunction( + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. +extension ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString$CallExtension + on + objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > { + objc.NSData? call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ) + .address == + 0 + ? null + : objc.NSData.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, NSUInteger, NSDecimalNumber, NSDecimalNumber?)>`. +abstract final class ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + > + fromFunction( + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSCalculationError, + NSDecimalNumber, + NSDecimalNumber?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + final _$$ref = fn( + arg0, + arg1, + NSCalculationError.fromValue(arg2), + NSDecimalNumber.fromPointer(arg3, retain: true, release: true), + arg4.address == 0 + ? null + : NSDecimalNumber.fromPointer( + arg4, + retain: true, + release: true, + ), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, NSUInteger, NSDecimalNumber, NSDecimalNumber?)>`. +extension ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber$CallExtension + on + objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + > { + NSDecimalNumber? call( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSCalculationError arg2, + NSDecimalNumber arg3, + NSDecimalNumber? arg4, + ) { + final _$$ref$1 = arg3.ref; + final _$$ref$2 = arg4?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1, + arg2.value, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ) + .address == + 0 + ? null + : NSDecimalNumber.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1, + arg2.value, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSDictionary_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSDictionary? Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0)?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSDictionary_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSDictionary? call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0) + .address == + 0 + ? null + : objc.NSDictionary.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLRequest)>`. +abstract final class ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + > + fromFunction( + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSURLRequest.fromPointer(arg2, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLRequest)>`. +extension ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest$CallExtension + on + objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + > { + objc.NSInputStream? call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSURLRequest arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) + .address == + 0 + ? null + : objc.NSInputStream.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSOperationQueue_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + NSOperationQueue Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSOperationQueue_ffiVoid$CallExtension + on objc.ObjCBlock)> { + NSOperationQueue call(ffi.Pointer arg0) { + return NSOperationQueue.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock? Function(objc.NSProgress)>`. +abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > + fromFunction( + DartNSProgressUnpublishingHandler? Function(objc.NSProgress) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + final _$$ref = fn( + objc.NSProgress.fromPointer(arg0, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static NSProgressUnpublishingHandler _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0, + ) + > + >() + .asFunction< + NSProgressUnpublishingHandler Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static NSProgressUnpublishingHandler _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as NSProgressUnpublishingHandler Function( + ffi.Pointer, + ))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock? Function(objc.NSProgress)>`. +extension ObjCBlock_NSProgressUnpublishingHandler_NSProgress$CallExtension + on + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > { + DartNSProgressUnpublishingHandler? call(objc.NSProgress arg0) { + final _$$ref$1 = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref$1.pointer) + .address == + 0 + ? null + : ObjCBlock_ffiVoid.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref$1.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSProgress_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSProgress Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSProgress_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSProgress call(ffi.Pointer arg0) { + return objc.NSProgress.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString?, ffi.Pointer>)>`. +abstract final class ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + > + fromFunction( + NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) { + return fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static NSRange _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_fnPtrTrampoline) + .cast(); + static NSRange _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) => + (objc.getBlockClosure(block) + as NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString?, ffi.Pointer>)>`. +extension ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray$CallExtension + on + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + > { + NSRange call( + ffi.Pointer arg0, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString? arg3, + ffi.Pointer> arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + arg4, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString, ffi.Pointer, ffi.Bool)>`. +abstract final class ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Bool arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + > + fromFunction( + NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + bool arg5, + ) { + return fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4, + arg5, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static NSRange _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + bool arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Bool arg5, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_fnPtrTrampoline) + .cast(); + static NSRange _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + bool arg5, + ) => + (objc.getBlockClosure(block) + as NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString, ffi.Pointer, ffi.Bool)>`. +extension ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool$CallExtension + on + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + > { + NSRange call( + ffi.Pointer arg0, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ffi.Pointer arg4, + bool arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Bool arg5, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + arg4, + arg5, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSRoundingMode_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + NSRoundingMode Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0).value; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSRoundingMode_ffiVoid$CallExtension + on objc.ObjCBlock)> { + NSRoundingMode call(ffi.Pointer arg0) { + return NSRoundingMode.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0), + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSSet_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSSet Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSSet_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSSet call(ffi.Pointer arg0) { + return objc.NSSet.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSString_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSString Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSString_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSString call(ffi.Pointer arg0) { + return objc.NSString.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLRequest, NSURLResponse?)>`. +abstract final class ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + > + fromFunction( + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSURLRequest.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : NSURLResponse.fromPointer(arg3, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLRequest, NSURLResponse?)>`. +extension ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse$CallExtension + on + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + > { + NSURLRequest? call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSURLRequest arg2, + NSURLResponse? arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ) + .address == + 0 + ? null + : NSURLRequest.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLRequest, NSURLResponse?)>`. +abstract final class ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + > + fromFunction( + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + NSURLRequest.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : NSURLResponse.fromPointer(arg3, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLRequest, NSURLResponse?)>`. +extension ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse$CallExtension + on + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + > { + NSURLRequest? call( + ffi.Pointer arg0, + NSURLDownload arg1, + NSURLRequest arg2, + NSURLResponse? arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ) + .address == + 0 + ? null + : NSURLRequest.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSURL_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSURL? Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0)?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSURL_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSURL? call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0) + .address == + 0 + ? null + : objc.NSURL.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSView_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + NSView? Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0)?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSView_ffiVoid$CallExtension + on objc.ObjCBlock)> { + NSView? call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0) + .address == + 0 + ? null + : NSView.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_PMPageFormat_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + PMPageFormat Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static PMPageFormat _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + PMPageFormat Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static PMPageFormat _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as PMPageFormat Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + PMPageFormat Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_PMPageFormat_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + PMPageFormat call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + PMPageFormat Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + PMPageFormat Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_PMPrintSession_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + PMPrintSession Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static PMPrintSession _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + PMPrintSession Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static PMPrintSession _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as PMPrintSession Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + PMPrintSession Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_PMPrintSession_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + PMPrintSession call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + PMPrintSession Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + PMPrintSession Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_PMPrintSettings_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + PMPrintSettings Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static PMPrintSettings _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + PMPrintSettings Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static PMPrintSettings _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as PMPrintSettings Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + PMPrintSettings Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_PMPrintSettings_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + PMPrintSettings call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + PMPrintSettings Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + PMPrintSettings Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_PMPrinter_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + PMPrinter Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static PMPrinter _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + PMPrinter Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static PMPrinter _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as PMPrinter Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + PMPrinter Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_PMPrinter_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + PMPrinter call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + PMPrinter Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + PMPrinter Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Bool)>`. +abstract final class ObjCBlock_bool_CFArrayRef_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, ffi.Bool)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, ffi.Bool)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, ffi.Bool)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock, ffi.Bool)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, ffi.Bool)> + fromFunction( + bool Function(CFArrayRef, bool) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, ffi.Bool)>( + objc.newClosureBlock(_closureCallable, (CFArrayRef arg0, bool arg1) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + bool arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + CFArrayRef, + ffi.Bool, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + bool arg1, + ) => (objc.getBlockClosure(block) as bool Function(CFArrayRef, bool))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + CFArrayRef, + ffi.Bool, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Bool)>`. +extension ObjCBlock_bool_CFArrayRef_bool$CallExtension + on objc.ObjCBlock, ffi.Bool)> { + bool call(CFArrayRef arg0, bool arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + CFArrayRef arg0, + ffi.Bool arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, CFArrayRef, bool) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_CFStringRef_CGImageMetadataTagRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(CFStringRef arg0, CGImageMetadataTagRef arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function(CFStringRef, CGImageMetadataTagRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + CFStringRef arg0, + CGImageMetadataTagRef arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + CFStringRef arg0, + CGImageMetadataTagRef arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(CFStringRef arg0, CGImageMetadataTagRef arg1) + > + >() + .asFunction()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + CFStringRef, + CGImageMetadataTagRef, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + CFStringRef arg0, + CGImageMetadataTagRef arg1, + ) => + (objc.getBlockClosure(block) + as bool Function(CFStringRef, CGImageMetadataTagRef))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + CFStringRef, + CGImageMetadataTagRef, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_CFStringRef_CGImageMetadataTagRef$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call(CFStringRef arg0, CGImageMetadataTagRef arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + CFStringRef arg0, + CGImageMetadataTagRef arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + CFStringRef, + CGImageMetadataTagRef, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_CGContentInfo_CGBitmapParameters { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function(ffi.Pointer, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_CGContentInfo_CGBitmapParameters$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_bool_CTFontDescriptorMatchingState_CFDictionaryRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Uint32 arg0, CFDictionaryRef arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + > + fromFunction( + bool Function(CTFontDescriptorMatchingState, CFDictionaryRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + CFDictionaryRef arg1, + ) { + return fn(CTFontDescriptorMatchingState.fromValue(arg0), arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + CFDictionaryRef arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Uint32 arg0, CFDictionaryRef arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Uint32, + CFDictionaryRef, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + int arg0, + CFDictionaryRef arg1, + ) => (objc.getBlockClosure(block) as bool Function(int, CFDictionaryRef))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Uint32, + CFDictionaryRef, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_bool_CTFontDescriptorMatchingState_CFDictionaryRef$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + > { + bool call(CTFontDescriptorMatchingState arg0, CFDictionaryRef arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Uint32 arg0, + CFDictionaryRef arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, int, CFDictionaryRef) + >()(ref.pointer, arg0.value, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ObjectType_ObjectType { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function(objc.ObjCObject, objc.ObjCObject) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + objc.ObjCObject(arg0, retain: true, release: true), + objc.ObjCObject(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_ObjectType_ObjectType$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call(objc.ObjCObject arg0, objc.ObjCObject arg1) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Size)>`. +abstract final class ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + dispatch_data_t arg0, + ffi.Size arg1, + ffi.Pointer arg2, + ffi.Size arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) + > + fromFunction( + bool Function(Dartdispatch_data_t, int, ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >( + objc.newClosureBlock(_closureCallable, ( + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + arg1, + arg2, + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + dispatch_data_t arg0, + ffi.Size arg1, + ffi.Pointer arg2, + ffi.Size arg3, + ) + > + >() + .asFunction< + bool Function(dispatch_data_t, int, ffi.Pointer, int) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + dispatch_data_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ) => + (objc.getBlockClosure(block) + as bool Function(dispatch_data_t, int, ffi.Pointer, int))( + arg0, + arg1, + arg2, + arg3, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + dispatch_data_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Size)>`. +extension ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + > { + bool call( + Dartdispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + dispatch_data_t arg0, + ffi.Size arg1, + ffi.Pointer arg2, + ffi.Size arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + dispatch_data_t, + int, + ffi.Pointer, + int, + ) + >()(ref.pointer, _$$ref.pointer, arg1, arg2, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ffiChar_CGPDFObjectRef_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function(ffi.Pointer, CGPDFObjectRef, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + CGPDFObjectRef, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + CGPDFObjectRef, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + CGPDFObjectRef, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + CGPDFObjectRef, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_bool_ffiChar_CGPDFObjectRef_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call( + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + CGPDFObjectRef, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSObject)>`. +abstract final class ObjCBlock_bool_ffiChar_xpcobjectt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, objc.NSObject)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, objc.NSObject)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, objc.NSObject)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, xpc_object_t arg1) + > + > + ptr, + ) => objc.ObjCBlock, objc.NSObject)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, objc.NSObject)> + fromFunction( + bool Function(ffi.Pointer, Dartxpc_object_t) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, objc.NSObject)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + xpc_object_t arg1, + ) { + return fn( + arg0, + objc.NSObject.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + xpc_object_t arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, xpc_object_t arg1) + > + >() + .asFunction, xpc_object_t)>()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + xpc_object_t, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + xpc_object_t arg1, + ) => + (objc.getBlockClosure(block) + as bool Function(ffi.Pointer, xpc_object_t))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + xpc_object_t, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSObject)>`. +extension ObjCBlock_bool_ffiChar_xpcobjectt$CallExtension + on objc.ObjCBlock, objc.NSObject)> { + bool call(ffi.Pointer arg0, Dartxpc_object_t arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + xpc_object_t arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + xpc_object_t, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ffiSize_CGPDFObjectRef_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Size arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromFunction( + bool Function(int, CGPDFObjectRef, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Size arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function(int, CGPDFObjectRef, ffi.Pointer) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Size, + CGPDFObjectRef, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + int arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function(int, CGPDFObjectRef, ffi.Pointer))( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Size, + CGPDFObjectRef, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_ffiSize_CGPDFObjectRef_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call(int arg0, CGPDFObjectRef arg1, ffi.Pointer arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Size arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + int, + CGPDFObjectRef, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_bool_ffiSize_xpcobjectt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + bool Function(int, Dartxpc_object_t) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0, xpc_object_t arg1) { + return fn( + arg0, + objc.NSObject.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + xpc_object_t arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Size, + xpc_object_t, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + int arg0, + xpc_object_t arg1, + ) => (objc.getBlockClosure(block) as bool Function(int, xpc_object_t))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Size, + xpc_object_t, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_bool_ffiSize_xpcobjectt$CallExtension + on objc.ObjCBlock { + bool call(int arg0, Dartxpc_object_t arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Size arg0, + xpc_object_t arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, int, xpc_object_t) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_bool_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + bool Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => (objc.getBlockClosure(block) as bool Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_bool_ffiVoid$CallExtension + on objc.ObjCBlock)> { + bool call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSArray, objc.NSData)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSArray_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + > + fromFunction( + bool Function(ffi.Pointer, objc.NSArray, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSArray.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSArray, objc.NSData)>`. +extension ObjCBlock_bool_ffiVoid_NSArray_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + > { + bool call(ffi.Pointer arg0, objc.NSArray arg1, objc.NSData arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSConnection, NSConnection)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSConnection_NSConnection { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + > + fromFunction( + bool Function(ffi.Pointer, NSConnection, NSConnection) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSConnection.fromPointer(arg1, retain: true, release: true), + NSConnection.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSConnection, NSConnection)>`. +extension ObjCBlock_bool_ffiVoid_NSConnection_NSConnection$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + > { + bool call(ffi.Pointer arg0, NSConnection arg1, NSConnection arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSConnection, NSDistantObjectRequest)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + > + fromFunction( + bool Function(ffi.Pointer, NSConnection, NSDistantObjectRequest) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSConnection.fromPointer(arg1, retain: true, release: true), + NSDistantObjectRequest.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSConnection, NSDistantObjectRequest)>`. +extension ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + > { + bool call( + ffi.Pointer arg0, + NSConnection arg1, + NSDistantObjectRequest arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer>)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer>, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer>)>`. +extension ObjCBlock_bool_ffiVoid_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + > { + bool call( + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + objc.NSString.fromPointer(arg4, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + objc.NSString arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + objc.NSURL.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + objc.NSURL.fromPointer(arg3, retain: true, release: true), + objc.NSURL.fromPointer(arg4, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + objc.NSURL arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + > + fromFunction( + bool Function(ffi.Pointer, NSFileManager, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSString, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSString arg2, + objc.NSString arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSURL)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + > + fromFunction( + bool Function(ffi.Pointer, NSFileManager, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSURL.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSURL)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + > { + bool call(ffi.Pointer arg0, NSFileManager arg1, objc.NSURL arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSURL, objc.NSURL)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + > + fromFunction( + bool Function(ffi.Pointer, NSFileManager, objc.NSURL, objc.NSURL) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSURL.fromPointer(arg2, retain: true, release: true), + objc.NSURL.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSURL, objc.NSURL)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSURL arg2, + objc.NSURL arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromFunction( + bool Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSString.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + > { + bool call( + ffi.Pointer arg0, + objc.NSString arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSURLConnection { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLConnection) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock, NSURLConnection)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLConnection) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock, NSURLConnection)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLConnection) + > + fromFunction( + bool Function(ffi.Pointer, NSURLConnection) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock, NSURLConnection)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection)>`. +extension ObjCBlock_bool_ffiVoid_NSURLConnection$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLConnection) + > { + bool call(ffi.Pointer arg0, NSURLConnection arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLProtectionSpace)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + > + fromFunction( + bool Function(ffi.Pointer, NSURLConnection, NSURLProtectionSpace) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSURLProtectionSpace.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLProtectionSpace)>`. +extension ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + > { + bool call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSURLProtectionSpace arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSURLDownload)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSURLDownload)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSURLDownload)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSURLDownload)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLDownload)> + fromFunction( + bool Function(ffi.Pointer, NSURLDownload) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSURLDownload)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload)>`. +extension ObjCBlock_bool_ffiVoid_NSURLDownload$CallExtension + on objc.ObjCBlock, NSURLDownload)> { + bool call(ffi.Pointer arg0, NSURLDownload arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromFunction( + bool Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSURLDownload_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + > { + bool call( + ffi.Pointer arg0, + NSURLDownload arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLProtectionSpace)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + > + fromFunction( + bool Function(ffi.Pointer, NSURLDownload, NSURLProtectionSpace) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + NSURLProtectionSpace.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLProtectionSpace)>`. +extension ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + > { + bool call( + ffi.Pointer arg0, + NSURLDownload arg1, + NSURLProtectionSpace arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSUserNotificationCenter.fromPointer( + arg1, + retain: true, + release: true, + ), + NSUserNotification.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. +extension ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > { + bool call( + ffi.Pointer arg0, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXPCListener, NSXPCConnection)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + > + fromFunction( + bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSXPCListener.fromPointer(arg1, retain: true, release: true), + NSXPCConnection.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXPCListener, NSXPCConnection)>`. +extension ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSXPCListener, + NSXPCConnection, + ) + > { + bool call( + ffi.Pointer arg0, + NSXPCListener arg1, + NSXPCConnection arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiInt_ffiUnsignedInt_cupsdestt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.UnsignedInt arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > + fromFunction( + int Function(int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int Function(ffi.UnsignedInt arg0, ffi.Pointer arg1) + > + >() + .asFunction)>()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as int Function(int, ffi.Pointer))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiInt_ffiUnsignedInt_cupsdestt$CallExtension + on + objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > { + int call(int arg0, ffi.Pointer arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer block, + ffi.UnsignedInt arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiInt_ffiVoid_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + int Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as int Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_ffiInt_ffiVoid_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > { + int call(ffi.Pointer arg0, ffi.Pointer arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiShort_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + int Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiShort_ffiVoid$CallExtension + on objc.ObjCBlock)> { + int call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Short Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, () { + return fn(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function() fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort( + _1uu024u_wrapListenerBlock_1pl9qdv, + (ffi.Pointer rawArgs) => fn(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function() fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort( + _1uu024u_wrapBlockingBlock_1pl9qdv, + (ffi.Pointer rawArgs) => fn(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline(ffi.Pointer block) => block + .ref + .target + .cast>() + .asFunction()(); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline(ffi.Pointer block) => + (objc.getBlockClosure(block) as void Function())(); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid$CallExtension + on objc.ObjCBlock { + void call() { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block) + > + >() + .asFunction)>()( + ref.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_Boolean_UInt64_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(Boolean arg0, UInt64 arg1, CFErrorRef arg2) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > + fromFunction( + void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + int arg1, + CFErrorRef arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > + listener( + void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_115kkcp, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_zgaes8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > + blocking( + void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_115kkcp, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_zgaes8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + int arg1, + CFErrorRef arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(Boolean arg0, UInt64 arg1, CFErrorRef arg2) + > + >() + .asFunction()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + Boolean, + UInt64, + CFErrorRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + int arg1, + CFErrorRef arg2, + ) => (objc.getBlockClosure(block) as void Function(int, int, CFErrorRef))( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + Boolean, + UInt64, + CFErrorRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_Boolean_UInt64_CFErrorRef$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > { + void call(DartBoolean arg0, DartUInt64 arg1, CFErrorRef arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + Boolean arg0, + UInt64 arg1, + CFErrorRef arg2, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, int, int, CFErrorRef) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_CFArrayRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + void Function(CFArrayRef) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (CFArrayRef arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(CFArrayRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9fms3g, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vgtcpl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(CFArrayRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9fms3g, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vgtcpl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, CFArrayRef) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + ) => (objc.getBlockClosure(block) as void Function(CFArrayRef))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, CFArrayRef) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_CFArrayRef$CallExtension + on objc.ObjCBlock)> { + void call(CFArrayRef arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFArrayRef arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, CFArrayRef) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__CFError>)>`. +abstract final class ObjCBlock_ffiVoid_CFArrayRef_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + fromFunction( + void Function(CFArrayRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + >( + objc.newClosureBlock(_closureCallable, ( + CFArrayRef arg0, + CFErrorRef arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + listener( + void Function(CFArrayRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_15ghdzk, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17mefw7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + blocking( + void Function(CFArrayRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15ghdzk, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17mefw7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + CFErrorRef arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFArrayRef, + CFErrorRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + CFErrorRef arg1, + ) => (objc.getBlockClosure(block) as void Function(CFArrayRef, CFErrorRef))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFArrayRef, + CFErrorRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer<__CFError>)>`. +extension ObjCBlock_ffiVoid_CFArrayRef_CFErrorRef$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > { + void call(CFArrayRef arg0, CFErrorRef arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFArrayRef arg0, + CFErrorRef arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, CFArrayRef, CFErrorRef) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + void Function(CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (CFErrorRef arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1kwz7d1, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13g89k6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1kwz7d1, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13g89k6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFErrorRef arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, CFErrorRef) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFErrorRef arg0, + ) => (objc.getBlockClosure(block) as void Function(CFErrorRef))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, CFErrorRef) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_CFErrorRef$CallExtension + on objc.ObjCBlock)> { + void call(CFErrorRef arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFErrorRef arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, CFErrorRef) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_CFErrorRef_CGContentInfo_CGBitmapParameters { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + void Function( + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > + listener( + void Function( + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1yrznn1, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hs0ws6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > + blocking( + void Function( + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1yrznn1, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hs0ws6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_CFErrorRef_CGContentInfo_CGBitmapParameters$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > { + void call( + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, CFOptionFlags)>`. +abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopObserverRef arg0, CFOptionFlags arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + fromFunction( + void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >( + objc.newClosureBlock(_closureCallable, ( + CFRunLoopObserverRef arg0, + int arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + listener( + void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_tg5tbv, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_14lm7fk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + blocking( + void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_tg5tbv, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_14lm7fk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFRunLoopObserverRef arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopObserverRef arg0, CFOptionFlags arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFRunLoopObserverRef arg0, + int arg1, + ) => + (objc.getBlockClosure(block) as void Function(CFRunLoopObserverRef, int))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, CFOptionFlags)>`. +extension ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > { + void call(CFRunLoopObserverRef arg0, DartCFOptionFlags arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFRunLoopObserverRef arg0, + CFOptionFlags arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + CFRunLoopObserverRef, + int, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_CFRunLoopTimerRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer> + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + void Function(CFRunLoopTimerRef) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (CFRunLoopTimerRef arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + listener( + void Function(CFRunLoopTimerRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1dqvvol, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_n2dxuu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> + blocking( + void Function(CFRunLoopTimerRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1dqvvol, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_n2dxuu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFRunLoopTimerRef arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFRunLoopTimerRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFRunLoopTimerRef arg0, + ) => (objc.getBlockClosure(block) as void Function(CFRunLoopTimerRef))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFRunLoopTimerRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_CFRunLoopTimerRef$CallExtension + on objc.ObjCBlock)> { + void call(CFRunLoopTimerRef arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFRunLoopTimerRef arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, CFRunLoopTimerRef) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__CFError>, ffi.UnsignedChar)>`. +abstract final class ObjCBlock_ffiVoid_CFTypeRef_CFErrorRef_Boolean { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFTypeRef arg0, CFErrorRef arg1, Boolean arg2) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > + fromFunction( + void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >( + objc.newClosureBlock(_closureCallable, ( + CFTypeRef arg0, + CFErrorRef arg1, + int arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > + listener( + void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_b3tf6o, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1sucxsg.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > + blocking( + void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_b3tf6o, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1sucxsg.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFTypeRef arg0, + CFErrorRef arg1, + int arg2, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(CFTypeRef arg0, CFErrorRef arg1, Boolean arg2) + > + >() + .asFunction()( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFTypeRef, + CFErrorRef, + Boolean, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFTypeRef arg0, + CFErrorRef arg1, + int arg2, + ) => + (objc.getBlockClosure(block) + as void Function(CFTypeRef, CFErrorRef, int))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFTypeRef, + CFErrorRef, + Boolean, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer<__CFError>, ffi.UnsignedChar)>`. +extension ObjCBlock_ffiVoid_CFTypeRef_CFErrorRef_Boolean$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > { + void call(CFTypeRef arg0, CFErrorRef arg1, DartBoolean arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFTypeRef arg0, + CFErrorRef arg1, + Boolean arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + CFTypeRef, + CFErrorRef, + int, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_CGDisplayStreamFrameStatus_Uint64_IOSurfaceRef_CGDisplayStreamUpdateRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int32 arg0, + ffi.Uint64 arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > + fromFunction( + void Function( + CGDisplayStreamFrameStatus, + int, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + int arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) { + return fn( + CGDisplayStreamFrameStatus.fromValue(arg0), + arg1, + arg2, + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > + listener( + void Function( + CGDisplayStreamFrameStatus, + int, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_du1izn, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1lr5l4t.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > + blocking( + void Function( + CGDisplayStreamFrameStatus, + int, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_du1izn, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1lr5l4t.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + int arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int32 arg0, + ffi.Uint64 arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) + > + >() + .asFunction< + void Function(int, int, IOSurfaceRef, CGDisplayStreamUpdateRef) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + ffi.Uint64, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + int arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) => + (objc.getBlockClosure(block) + as void Function(int, int, IOSurfaceRef, CGDisplayStreamUpdateRef))( + arg0, + arg1, + arg2, + arg3, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + ffi.Uint64, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_CGDisplayStreamFrameStatus_Uint64_IOSurfaceRef_CGDisplayStreamUpdateRef$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > { + void call( + CGDisplayStreamFrameStatus arg0, + int arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int32 arg0, + ffi.Uint64 arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + int, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + >()(ref.pointer, arg0.value, arg1, arg2, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_CGPathElement { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1ctgxtl, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_dmvhfp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1ctgxtl, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_dmvhfp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_CGPathElement$CallExtension + on objc.ObjCBlock)> { + void call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + void Function( + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + listener( + void Function( + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_rdj45r, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v1zq3a.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + blocking( + void Function( + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_rdj45r, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v1zq3a.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + void call( + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSAppleEventDescriptor_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > + fromFunction( + void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : NSAppleEventDescriptor.fromPointer( + arg0, + retain: true, + release: true, + ), + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > + listener( + void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1gmgda9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > + blocking( + void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1gmgda9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSAppleEventDescriptor_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > { + void call(NSAppleEventDescriptor? arg0, objc.NSError? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSArray { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSArray?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSArray.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSArray?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1p7ak3v.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSArray?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1p7ak3v.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSArray$CallExtension + on objc.ObjCBlock { + void call(objc.NSArray? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSBackgroundActivityResult { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSBackgroundActivityResult) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0) { + return fn(NSBackgroundActivityResult.fromValue(arg0)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSBackgroundActivityResult) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_10ssdng, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_ldsont.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSBackgroundActivityResult) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_10ssdng, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_ldsont.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, NSInteger) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ) => (objc.getBlockClosure(block) as void Function(int))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, NSInteger) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSBackgroundActivityResult$CallExtension + on objc.ObjCBlock { + void call(NSBackgroundActivityResult arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ) + > + >() + .asFunction, int)>()( + ref.pointer, + arg0.value, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSCachedURLResponse?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : NSCachedURLResponse.fromPointer( + arg0, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSCachedURLResponse?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_wtbfzi.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSCachedURLResponse?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_wtbfzi.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSCachedURLResponse$CallExtension + on objc.ObjCBlock { + void call(NSCachedURLResponse? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSData_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSData.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x5cg0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x5cg0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension + on objc.ObjCBlock { + void call(objc.NSData? arg0, objc.NSError? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + fromFunction( + void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSData.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + listener( + void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1mv87bk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + blocking( + void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1mv87bk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > { + void call(objc.NSData? arg0, NSURLResponse? arg1, objc.NSError? arg2) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + final _$$ref$2 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSDictionary?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSDictionary.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSDictionary?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_6tydoo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSDictionary?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_6tydoo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSDictionary$CallExtension + on objc.ObjCBlock { + void call(objc.NSDictionary? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSDictionary, + objc.NSRange, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSDictionary, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + fromFunction( + void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSDictionary, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) { + return fn( + objc.NSDictionary.fromPointer(arg0, retain: true, release: true), + arg1, + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + listener( + void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1a22wz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v8in3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + blocking( + void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1a22wz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v8in3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSDictionary_NSRange_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSDictionary, + objc.NSRange, + ffi.Pointer, + ) + > { + void call(objc.NSDictionary arg0, NSRange arg1, ffi.Pointer arg2) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSError.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_117e0ww.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_117e0ww.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSError$CallExtension + on objc.ObjCBlock { + void call(objc.NSError? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSError$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn(objc.NSError.fromPointer(arg0, retain: true, release: true)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_b9s2kt.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_b9s2kt.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSError$1$CallExtension + on objc.ObjCBlock { + void call(objc.NSError arg0) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSFileHandle { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSFileHandle) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn(NSFileHandle.fromPointer(arg0, retain: true, release: true)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSFileHandle) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v5xz31.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSFileHandle) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v5xz31.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSFileHandle$CallExtension + on objc.ObjCBlock { + void call(NSFileHandle arg0) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSInputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSInputStream?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSInputStream.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSInputStream?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ura76.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSInputStream?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ura76.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSInputStream$CallExtension + on objc.ObjCBlock { + void call(objc.NSInputStream? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>`. +abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + fromFunction( + void Function( + DartNSItemProviderCompletionHandler, + objc.ObjCObject, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >( + objc.newClosureBlock(_closureCallable, ( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( + arg0, + retain: true, + release: true, + ), + objc.ObjCObject(arg1, retain: true, release: true), + objc.NSDictionary.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + listener( + void Function( + DartNSItemProviderCompletionHandler, + objc.ObjCObject, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1b3bb6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_6yk1dr.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + blocking( + void Function( + DartNSItemProviderCompletionHandler, + objc.ObjCObject, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1b3bb6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_6yk1dr.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>`. +extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > { + void call( + DartNSItemProviderCompletionHandler arg0, + objc.ObjCObject arg1, + objc.NSDictionary arg2, + ) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(Dartsec_certificate_t) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (sec_certificate_t arg0) { + return fn(objc.NSObject.fromPointer(arg0, retain: true, release: true)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(Dartsec_certificate_t) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1q305zu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(Dartsec_certificate_t) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1q305zu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + sec_certificate_t arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_certificate_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + sec_certificate_t arg0, + ) => (objc.getBlockClosure(block) as void Function(sec_certificate_t))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_certificate_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSObject$CallExtension + on objc.ObjCBlock { + void call(Dartsec_certificate_t arg0) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_certificate_t arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, sec_certificate_t) + >()(ref.pointer, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSObject$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(Dartdispatch_data_t?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0) { + return fn( + arg0.address == 0 + ? null + : objc.NSObject.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(Dartdispatch_data_t?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n468bj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(Dartdispatch_data_t?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n468bj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, dispatch_data_t) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, dispatch_data_t) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSObject$1$CallExtension + on objc.ObjCBlock { + void call(Dartdispatch_data_t? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, dispatch_data_t) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + fromFunction( + void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSString.fromPointer(arg0, retain: true, release: true), + arg1, + arg2, + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + listener( + void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_lmc3p5, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pvrxoh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + blocking( + void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_lmc3p5, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pvrxoh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > { + void call( + objc.NSString? arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSTask { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSTask) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn(NSTask.fromPointer(arg0, retain: true, release: true)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSTask) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_347s5u.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSTask) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_347s5u.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSTask$CallExtension + on objc.ObjCBlock { + void call(NSTask arg0) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) + > + fromFunction( + void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0.address == 0 + ? null + : NSTextCheckingResult.fromPointer( + arg0, + retain: true, + release: true, + ), + arg1, + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) + > + listener( + void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_6jvo9y, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1uc4fg7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) + > + blocking( + void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6jvo9y, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1uc4fg7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + > { + void call( + NSTextCheckingResult? arg0, + DartNSUInteger arg1, + ffi.Pointer arg2, + ) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLCredential { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : NSURLCredential.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13o2rom.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13o2rom.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLCredential$CallExtension + on objc.ObjCBlock { + void call(NSURLCredential? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : NSURLRequest.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n6ph2.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n6ph2.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLRequest$CallExtension + on objc.ObjCBlock { + void call(NSURLRequest? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + fromFunction( + void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0.address == 0 + ? null + : NSURLResponse.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSData.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + listener( + void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1oftdow.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + blocking( + void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1oftdow.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > { + void call(NSURLResponse? arg0, objc.NSData? arg1, objc.NSError? arg2) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + final _$$ref$2 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + int arg0, + ffi.Pointer arg1, + ) { + return fn( + NSURLSessionAuthChallengeDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLCredential.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_n8yd09, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_u65oe8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_n8yd09, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_u65oe8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + NSInteger arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential$CallExtension + on objc.ObjCBlock { + void call(NSURLSessionAuthChallengeDisposition arg0, NSURLCredential? arg1) { + final _$$ref = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0.value, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + int arg0, + ffi.Pointer arg1, + ) { + return fn( + NSURLSessionDelayedRequestDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLRequest.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1otpo83, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_171cldw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1otpo83, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_171cldw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + NSInteger arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest$CallExtension + on objc.ObjCBlock { + void call(NSURLSessionDelayedRequestDisposition arg0, NSURLRequest? arg1) { + final _$$ref = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0.value, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSURLSessionResponseDisposition) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0) { + return fn(NSURLSessionResponseDisposition.fromValue(arg0)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURLSessionResponseDisposition) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_16sve1d, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1y7f3jy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURLSessionResponseDisposition) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_16sve1d, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1y7f3jy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, NSInteger) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ) => (objc.getBlockClosure(block) as void Function(int))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, NSInteger) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLSessionResponseDisposition$CallExtension + on objc.ObjCBlock { + void call(NSURLSessionResponseDisposition arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ) + > + >() + .asFunction, int)>()( + ref.pointer, + arg0.value, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + fromFunction( + void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSURL.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + listener( + void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3gru2r.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + blocking( + void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3gru2r.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > { + void call(objc.NSURL? arg0, NSURLResponse? arg1, objc.NSError? arg2) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + final _$$ref$2 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_OSStatus_AuthorizationRights { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(OSStatus arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > + fromFunction( + void Function(DartSInt32, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > + listener( + void Function(DartSInt32, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_l3f29g, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1v0sc8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > + blocking( + void Function(DartSInt32, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_l3f29g, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1v0sc8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + OSStatus arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + OSStatus, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + OSStatus, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_OSStatus_AuthorizationRights$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > { + void call(DartSInt32 arg0, ffi.Pointer arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + OSStatus arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__SecKey>, ffi.Pointer<__CFError>)>`. +abstract final class ObjCBlock_ffiVoid_SecKeyRef_SecKeyRef_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > + fromFunction( + void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + SecKeyRef arg0, + SecKeyRef arg1, + CFErrorRef arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > + listener( + void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1rz4y3, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_5zyi3o.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > + blocking( + void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1rz4y3, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_5zyi3o.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + SecKeyRef arg0, + SecKeyRef arg1, + CFErrorRef arg2, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) + > + >() + .asFunction()( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecKeyRef, + SecKeyRef, + CFErrorRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + SecKeyRef arg0, + SecKeyRef arg1, + CFErrorRef arg2, + ) => + (objc.getBlockClosure(block) + as void Function(SecKeyRef, SecKeyRef, CFErrorRef))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecKeyRef, + SecKeyRef, + CFErrorRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer<__SecKey>, ffi.Pointer<__CFError>)>`. +extension ObjCBlock_ffiVoid_SecKeyRef_SecKeyRef_CFErrorRef$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > { + void call(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + SecKeyRef arg0, + SecKeyRef arg1, + CFErrorRef arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + SecKeyRef, + SecKeyRef, + CFErrorRef, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Uint32)>`. +abstract final class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, ffi.Uint32)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, ffi.Uint32)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, ffi.Uint32)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock, ffi.Uint32)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, ffi.Uint32)> + fromFunction( + void Function(SecTrustRef, SecTrustResultType) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, ffi.Uint32)>( + objc.newClosureBlock(_closureCallable, (SecTrustRef arg0, int arg1) { + return fn(arg0, SecTrustResultType.fromValue(arg1)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, ffi.Uint32)> + listener( + void Function(SecTrustRef, SecTrustResultType) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_gwxhxt, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12rv5aa.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, ffi.Uint32)> + blocking( + void Function(SecTrustRef, SecTrustResultType) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_gwxhxt, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12rv5aa.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + SecTrustRef arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + SecTrustRef arg0, + int arg1, + ) => (objc.getBlockClosure(block) as void Function(SecTrustRef, int))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Uint32)>`. +extension ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType$CallExtension + on objc.ObjCBlock, ffi.Uint32)> { + void call(SecTrustRef arg0, SecTrustResultType arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + SecTrustRef arg0, + ffi.Uint32 arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, SecTrustRef, int) + >()(ref.pointer, arg0, arg1.value); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)>`. +abstract final class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + fromFunction( + void Function(SecTrustRef, bool, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + listener( + void Function(SecTrustRef, bool, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_k73ff5, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_j3xbuw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + blocking( + void Function(SecTrustRef, bool, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_k73ff5, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_j3xbuw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + SecTrustRef arg0, + ffi.Bool arg1, + CFErrorRef arg2, + ) + > + >() + .asFunction()( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2, + ) => + (objc.getBlockClosure(block) + as void Function(SecTrustRef, bool, CFErrorRef))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)>`. +extension ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + > { + void call(SecTrustRef arg0, bool arg1, CFErrorRef arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + SecTrustRef arg0, + ffi.Bool arg1, + CFErrorRef arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + SecTrustRef, + bool, + CFErrorRef, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_Uint16 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_15f11yh, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_tbof01.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15f11yh, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_tbof01.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Uint16) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ) => (objc.getBlockClosure(block) as void Function(int))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Uint16) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_Uint16$CallExtension + on objc.ObjCBlock { + void call(int arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Uint16 arg0, + ) + > + >() + .asFunction, int)>()( + ref.pointer, + arg0, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(bool) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (bool arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1s56lr9, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k4je64.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1s56lr9, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k4je64.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + bool arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Bool) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + bool arg0, + ) => (objc.getBlockClosure(block) as void Function(bool))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Bool) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_bool$CallExtension + on objc.ObjCBlock { + void call(bool arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Bool arg0, + ) + > + >() + .asFunction, bool)>()( + ref.pointer, + arg0, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_bool_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Bool arg0, ffi.Pointer arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(bool, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + bool arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(bool, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hk7n97, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_syyzqk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(bool, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hk7n97, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_syyzqk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + bool arg0, + ffi.Pointer arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Bool arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + bool arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function(bool, ffi.Pointer))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_bool_NSError$CallExtension + on objc.ObjCBlock { + void call(bool arg0, objc.NSError? arg1) { + final _$$ref = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Bool arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + bool, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(bool, Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + bool arg0, + dispatch_data_t arg1, + int arg2, + ) { + return fn( + arg0, + arg1.address == 0 + ? null + : objc.NSObject.fromPointer(arg1, retain: true, release: true), + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(bool, Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_og5b6y, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_uul9n9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(bool, Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_og5b6y, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_uul9n9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + bool arg0, + dispatch_data_t arg1, + int arg2, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Bool arg0, + dispatch_data_t arg1, + ffi.Int arg2, + ) + > + >() + .asFunction()( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + bool arg0, + dispatch_data_t arg1, + int arg2, + ) => + (objc.getBlockClosure(block) + as void Function(bool, dispatch_data_t, int))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt$CallExtension + on objc.ObjCBlock { + void call(bool arg0, Dartdispatch_data_t? arg1, int arg2) { + final _$$ref = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Bool arg0, + dispatch_data_t arg1, + ffi.Int arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + bool, + dispatch_data_t, + int, + ) + >()(ref.pointer, arg0, _$$ref?.pointer ?? ffi.nullptr, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + dispatch_data_t arg0, + dispatch_data_t arg1, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + objc.NSObject.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_lmnq5k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_lmnq5k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + dispatch_data_t arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1) + > + >() + .asFunction()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + dispatch_data_t arg1, + ) => + (objc.getBlockClosure(block) + as void Function(dispatch_data_t, dispatch_data_t))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat$CallExtension + on objc.ObjCBlock { + void call(Dartdispatch_data_t arg0, Dartdispatch_data_t arg1) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + dispatch_data_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(Dartdispatch_data_t, int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0, int arg1) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + arg1, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(Dartdispatch_data_t, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18kzm6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k4eb20.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(Dartdispatch_data_t, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18kzm6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k4eb20.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_dispatchdatat_ffiInt$CallExtension + on objc.ObjCBlock { + void call(Dartdispatch_data_t arg0, int arg1) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + ffi.Int arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, dispatch_data_t, int) + >()(ref.pointer, _$$ref.pointer, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0, int arg1) { + return fn( + arg0.address == 0 + ? null + : objc.NSObject.fromPointer(arg0, retain: true, release: true), + arg1, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18kzm6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_11uyayp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18kzm6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_11uyayp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1$CallExtension + on objc.ObjCBlock { + void call(Dartdispatch_data_t? arg0, int arg1) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + ffi.Int arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, dispatch_data_t, int) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Double arg0, + CFIndex arg1, + ffi.Bool arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + fromFunction( + void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + double arg0, + int arg1, + bool arg2, + ffi.Pointer arg3, + ) { + return fn(arg0, arg1, arg2, arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + listener( + void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_132rcs6, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1xkpqmj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + blocking( + void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_132rcs6, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1xkpqmj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + double arg0, + int arg1, + bool arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Double arg0, + CFIndex arg1, + ffi.Bool arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function(double, int, bool, ffi.Pointer) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Double, + CFIndex, + ffi.Bool, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + double arg0, + int arg1, + bool arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function(double, int, bool, ffi.Pointer))( + arg0, + arg1, + arg2, + arg3, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Double, + CFIndex, + ffi.Bool, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Double, + ffi.Long, + ffi.Bool, + ffi.Pointer, + ) + > { + void call( + double arg0, + DartCFIndex arg1, + bool arg2, + ffi.Pointer arg3, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Double arg0, + CFIndex arg1, + ffi.Bool arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + double, + int, + bool, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_ffiInt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9o8504, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1s2j81k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9o8504, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1s2j81k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Int) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ) => (objc.getBlockClosure(block) as void Function(int))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Int) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_ffiInt$CallExtension + on objc.ObjCBlock { + void call(int arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int arg0, + ) + > + >() + .asFunction, int)>()( + ref.pointer, + arg0, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_ffiSize { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_6enxqz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_kqbpyy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6enxqz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_kqbpyy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Size) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ) => (objc.getBlockClosure(block) as void Function(int))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Size) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_ffiSize$CallExtension + on objc.ObjCBlock { + void call(int arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Size arg0, + ) + > + >() + .asFunction, int)>()( + ref.pointer, + arg0, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiSize_CGImageRef_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Size arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromFunction( + void Function(int, CGImageRef, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + listener( + void Function(int, CGImageRef, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_11t2oft, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1x2wp90.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + blocking( + void Function(int, CGImageRef, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_11t2oft, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1x2wp90.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Size arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + CGImageRef, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function(int, CGImageRef, ffi.Pointer))( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + CGImageRef, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiSize_CGImageRef_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + > { + void call(int arg0, CGImageRef arg1, ffi.Pointer arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Size arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + CGImageRef, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function(ffi.Pointer)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunction( + CFTypeRef Function(CFTypeRef) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newClosureBlock(_closureCallable, (CFTypeRef arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CFTypeRef _fnPtrTrampoline( + ffi.Pointer block, + CFTypeRef arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function(ffi.Pointer, CFTypeRef) + >(_fnPtrTrampoline) + .cast(); + static CFTypeRef _closureTrampoline( + ffi.Pointer block, + CFTypeRef arg0, + ) => (objc.getBlockClosure(block) as CFTypeRef Function(CFTypeRef))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function(ffi.Pointer, CFTypeRef) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid$CallExtension + on objc.ObjCBlock Function(ffi.Pointer)> { + CFTypeRef call(CFTypeRef arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFTypeRef Function( + ffi.Pointer block, + CFTypeRef arg0, + ) + > + >() + .asFunction< + CFTypeRef Function(ffi.Pointer, CFTypeRef) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_ovsamd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_awd5mj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ovsamd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_awd5mj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid$1$CallExtension + on objc.ObjCBlock)> { + void call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid$2 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock?)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock?)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock?)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock?)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock?)> + fromFunction( + void Function(objc.ObjCBlock?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock?)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : ObjCBlock_ffiVoid.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock?)> + listener( + void Function(objc.ObjCBlock?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_f167m6, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12cm2y5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock?)> + blocking( + void Function(objc.ObjCBlock?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_f167m6, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12cm2y5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?)>`. +extension ObjCBlock_ffiVoid_ffiVoid$2$CallExtension + on objc.ObjCBlock?)> { + void call(objc.ObjCBlock? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock, AVAudioPlayer, objc.NSError?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > + fromFunction( + void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + AVAudioPlayer.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > + listener( + void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3prg4b.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > + blocking( + void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3prg4b.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, AVAudioPlayer, objc.NSError?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > { + void call( + ffi.Pointer arg0, + AVAudioPlayer arg1, + objc.NSError? arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, AVAudioPlayer, ffi.Bool)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Bool arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > + fromFunction( + void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + bool arg2, + ) { + return fn( + arg0, + AVAudioPlayer.fromPointer(arg1, retain: true, release: true), + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > + listener( + void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_zzthnb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1giidhf.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > + blocking( + void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_zzthnb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1giidhf.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + bool arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Bool arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + bool arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, AVAudioPlayer, ffi.Bool)>`. +extension ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > { + void call(ffi.Pointer arg0, AVAudioPlayer arg1, bool arg2) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Bool arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(ref.pointer, arg0, _$$ref.pointer, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, NSCache, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > + fromFunction( + void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSCache.fromPointer(arg1, retain: true, release: true), + objc.ObjCObject(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > + listener( + void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1sy9q99.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > + blocking( + void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1sy9q99.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSCache, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > { + void call(ffi.Pointer arg0, NSCache arg1, objc.ObjCObject arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSExtensionContext)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > + fromFunction( + void Function(ffi.Pointer, NSExtensionContext) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSExtensionContext.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > + listener( + void Function(ffi.Pointer, NSExtensionContext) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_truc42.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > + blocking( + void Function(ffi.Pointer, NSExtensionContext) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_truc42.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSExtensionContext)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > { + void call(ffi.Pointer arg0, NSExtensionContext arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileVersion)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSFileVersion { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSFileVersion)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSFileVersion)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSFileVersion)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSFileVersion)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSFileVersion)> + fromFunction( + void Function(ffi.Pointer, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSFileVersion)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSFileVersion.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSFileVersion)> + listener( + void Function(ffi.Pointer, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSFileVersion) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1y4tc38.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSFileVersion)> + blocking( + void Function(ffi.Pointer, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSFileVersion) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1y4tc38.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileVersion)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSFileVersion$CallExtension + on objc.ObjCBlock, NSFileVersion)> { + void call(ffi.Pointer arg0, NSFileVersion arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock, NSKeyedArchiver)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock, NSKeyedArchiver)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > + fromFunction( + void Function(ffi.Pointer, NSKeyedArchiver) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock, NSKeyedArchiver)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > + listener( + void Function(ffi.Pointer, NSKeyedArchiver) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ciefi0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > + blocking( + void Function(ffi.Pointer, NSKeyedArchiver) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ciefi0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSKeyedArchiver)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > { + void call(ffi.Pointer arg0, NSKeyedArchiver arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > + fromFunction( + void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.ObjCObject(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > + listener( + void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1oetg5g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > + blocking( + void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1oetg5g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > { + void call( + ffi.Pointer arg0, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?, ffi.Pointer?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSKeyedArchiver, + objc.ObjCObject?, + objc.ObjCObject?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.ObjCObject(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.ObjCObject(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > + listener( + void Function( + ffi.Pointer, + NSKeyedArchiver, + objc.ObjCObject?, + objc.ObjCObject?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_170i760.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSKeyedArchiver, + objc.ObjCObject?, + objc.ObjCObject?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_170i760.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?, ffi.Pointer?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > { + void call( + ffi.Pointer arg0, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + objc.ObjCObject? arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2?.ref; + final _$$ref$2 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSKeyedUnarchiver)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > + fromFunction( + void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > + listener( + void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pfw36l.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > + blocking( + void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pfw36l.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSKeyedUnarchiver)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > { + void call(ffi.Pointer arg0, NSKeyedUnarchiver arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSKeyedUnarchiver, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.ObjCObject, + objc.ObjCObject, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), + objc.ObjCObject(arg2, retain: true, release: true), + objc.ObjCObject(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > + listener( + void Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.ObjCObject, + objc.ObjCObject, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1o2efq5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > + blocking( + void Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.ObjCObject, + objc.ObjCObject, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1o2efq5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSKeyedUnarchiver, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > { + void call( + ffi.Pointer arg0, + NSKeyedUnarchiver arg1, + objc.ObjCObject arg2, + objc.ObjCObject arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetService)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSNetService)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSNetService)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSNetService)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSNetService)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSNetService)> + fromFunction( + void Function(ffi.Pointer, NSNetService) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSNetService)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSNetService.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSNetService)> + listener( + void Function(ffi.Pointer, NSNetService) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_u4a6zc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSNetService)> + blocking( + void Function(ffi.Pointer, NSNetService) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_u4a6zc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetService)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetService$CallExtension + on objc.ObjCBlock, NSNetService)> { + void call(ffi.Pointer arg0, NSNetService arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > + fromFunction( + void Function(ffi.Pointer, NSNetServiceBrowser) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > + listener( + void Function(ffi.Pointer, NSNetServiceBrowser) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_19rrqmo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > + blocking( + void Function(ffi.Pointer, NSNetServiceBrowser) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_19rrqmo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > { + void call(ffi.Pointer arg0, NSNetServiceBrowser arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSDictionary)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > + fromFunction( + void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), + objc.NSDictionary.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > + listener( + void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_adcfsd.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > + blocking( + void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_adcfsd.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSDictionary)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > { + void call( + ffi.Pointer arg0, + NSNetServiceBrowser arg1, + objc.NSDictionary arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, NSNetService, ffi.Bool)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) { + return fn( + arg0, + NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), + NSNetService.fromPointer(arg2, retain: true, release: true), + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > + listener( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_8acz2h, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x7mqjz.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > + blocking( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8acz2h, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x7mqjz.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, NSNetService, ffi.Bool)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > { + void call( + ffi.Pointer arg0, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSString, ffi.Bool)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) { + return fn( + arg0, + NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > + listener( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_8acz2h, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1nn0na.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > + blocking( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8acz2h, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1nn0na.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSString, ffi.Bool)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > { + void call( + ffi.Pointer arg0, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > + fromFunction( + void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSNetService.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > + listener( + void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pj0but.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > + blocking( + void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pj0but.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > { + void call(ffi.Pointer arg0, NSNetService arg1, objc.NSData arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSDictionary)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSDictionary, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSDictionary, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + > + fromFunction( + void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSDictionary, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSNetService.fromPointer(arg1, retain: true, release: true), + objc.NSDictionary.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + > + listener( + void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_16t4ozp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + > + blocking( + void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_16t4ozp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSDictionary)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSDictionary, + ) + > { + void call( + ffi.Pointer arg0, + NSNetService arg1, + objc.NSDictionary arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSInputStream, objc.NSOutputStream)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSNetService.fromPointer(arg1, retain: true, release: true), + objc.NSInputStream.fromPointer(arg2, retain: true, release: true), + objc.NSOutputStream.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + listener( + void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_tikg8p.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + blocking( + void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_tikg8p.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSInputStream, objc.NSOutputStream)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > { + void call( + ffi.Pointer arg0, + NSNetService arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSPortMessage)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSPortMessage { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > + fromFunction( + void Function(ffi.Pointer, objc.NSPortMessage) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + objc.NSPortMessage.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > + listener( + void Function(ffi.Pointer, objc.NSPortMessage) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1e1kc88.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > + blocking( + void Function(ffi.Pointer, objc.NSPortMessage) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1e1kc88.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSPortMessage)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSPortMessage$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > { + void call(ffi.Pointer arg0, objc.NSPortMessage arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSSet)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSet { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, objc.NSSet)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, objc.NSSet)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, objc.NSSet)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, objc.NSSet)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, objc.NSSet)> + fromFunction( + void Function(ffi.Pointer, objc.NSSet) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, objc.NSSet)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + objc.NSSet.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, objc.NSSet)> + listener( + void Function(ffi.Pointer, objc.NSSet) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, objc.NSSet)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k2hpmy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, objc.NSSet)> + blocking( + void Function(ffi.Pointer, objc.NSSet) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, objc.NSSet)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k2hpmy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSSet)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSSet$CallExtension + on objc.ObjCBlock, objc.NSSet)> { + void call(ffi.Pointer arg0, objc.NSSet arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + listener( + void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1usrzbh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + blocking( + void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1usrzbh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > { + void call( + ffi.Pointer arg0, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, ffi.UnsignedLong, objc.NSString, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) { + return fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + arg2, + objc.NSString.fromPointer(arg3, retain: true, release: true), + objc.NSString.fromPointer(arg4, retain: true, release: true), + objc.NSString.fromPointer(arg5, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > + listener( + void Function( + ffi.Pointer, + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1cn988u, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_gcznpv.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > + blocking( + void Function( + ffi.Pointer, + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1cn988u, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_gcznpv.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, ffi.UnsignedLong, objc.NSString, objc.NSString, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > { + void call( + ffi.Pointer arg0, + NSSpellServer arg1, + DartNSUInteger arg2, + objc.NSString arg3, + objc.NSString arg4, + objc.NSString arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg3.ref; + final _$$ref$2 = arg4.ref; + final _$$ref$3 = arg5.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + arg2, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromFunction( + void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSString.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > + listener( + void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ptzs7z.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > + blocking( + void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ptzs7z.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > { + void call( + ffi.Pointer arg0, + objc.NSString arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + int arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_zuf90e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ltqoqj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_zuf90e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ltqoqj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1) + > + >() + .asFunction, int)>()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, int))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSUInteger$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > { + void call(ffi.Pointer arg0, DartNSUInteger arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSUInteger arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURL)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, objc.NSURL)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, objc.NSURL)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, objc.NSURL)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, objc.NSURL)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, objc.NSURL)> + fromFunction( + void Function(ffi.Pointer, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, objc.NSURL)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + objc.NSURL.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, objc.NSURL)> + listener( + void Function(ffi.Pointer, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, objc.NSURL)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_461rr9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, objc.NSURL)> + blocking( + void Function(ffi.Pointer, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, objc.NSURL)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_461rr9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURL)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURL$CallExtension + on objc.ObjCBlock, objc.NSURL)> { + void call(ffi.Pointer arg0, objc.NSURL arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLAuthenticationChallenge)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > + fromFunction( + void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLAuthenticationChallenge.fromPointer( + arg1, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > + listener( + void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1z0whcc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > + blocking( + void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1z0whcc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLAuthenticationChallenge)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > { + void call(ffi.Pointer arg0, NSURLAuthenticationChallenge arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock, NSURLConnection)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock, NSURLConnection)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock, NSURLConnection)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > + listener( + void Function(ffi.Pointer, NSURLConnection) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15jt9u5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > + blocking( + void Function(ffi.Pointer, NSURLConnection) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15jt9u5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > { + void call(ffi.Pointer arg0, NSURLConnection arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > + listener( + void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15vjajw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15vjajw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + objc.NSData arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSError)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + > + listener( + void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vpa8ji.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vpa8ji.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSError)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + objc.NSError, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + objc.NSError arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.Long, ffi.Long, ffi.Long)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSInteger arg2, + NSInteger arg3, + NSInteger arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + arg2, + arg3, + arg4, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_15e9dqx, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_133h48c.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15e9dqx, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_133h48c.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSInteger arg2, + NSInteger arg3, + NSInteger arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + NSInteger, + NSInteger, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + NSInteger, + NSInteger, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.Long, ffi.Long, ffi.Long)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + DartNSInteger arg2, + DartNSInteger arg3, + DartNSInteger arg4, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSInteger arg2, + NSInteger arg3, + NSInteger arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3, arg4); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSURL)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + objc.NSURL.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > + listener( + void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1odc9lb.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1odc9lb.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSURL)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > { + void call(ffi.Pointer arg0, NSURLConnection arg1, objc.NSURL arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLAuthenticationChallenge)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_aec946.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_aec946.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLAuthenticationChallenge)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLResponse)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSURLResponse.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + > + listener( + void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1i7oea2.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1i7oea2.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLResponse)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLResponse, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSURLResponse arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, int, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + arg2, + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > + listener( + void Function(ffi.Pointer, NSURLConnection, int, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9crvvv, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_5wf51x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, int, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9crvvv, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_5wf51x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + int arg2, + int arg3, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong, ffi.LongLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ffi.LongLong arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + arg2, + arg3, + arg4, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + listener( + void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1qf1qkl, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3jhjrc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1qf1qkl, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3jhjrc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ffi.LongLong arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong, ffi.LongLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + int arg2, + int arg3, + int arg4, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ffi.LongLong arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3, arg4); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLCredential, NSURLAuthenticationChallenge)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLCredential.fromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1o8dtl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1o8dtl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLCredential, NSURLAuthenticationChallenge)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > { + void call( + ffi.Pointer arg0, + NSURLCredential arg1, + NSURLAuthenticationChallenge arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSURLDownload)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSURLDownload)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSURLDownload)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSURLDownload)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLDownload)> + fromFunction( + void Function(ffi.Pointer, NSURLDownload) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSURLDownload)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLDownload)> + listener( + void Function(ffi.Pointer, NSURLDownload) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13sb76x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSURLDownload)> + blocking( + void Function(ffi.Pointer, NSURLDownload) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13sb76x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload$CallExtension + on objc.ObjCBlock, NSURLDownload)> { + void call(ffi.Pointer arg0, NSURLDownload arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSError)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > + fromFunction( + void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > + listener( + void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_14dahaa.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > + blocking( + void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_14dahaa.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSError)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > { + void call(ffi.Pointer arg0, NSURLDownload arg1, objc.NSError arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromFunction( + void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + listener( + void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_18kc0nv.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + blocking( + void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_18kc0nv.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > { + void call( + ffi.Pointer arg0, + NSURLDownload arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + ffi.UnsignedLong, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + ffi.UnsignedLong, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + ffi.UnsignedLong, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_wy9lus, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_19pyqcd.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_wy9lus, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_19pyqcd.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + ffi.UnsignedLong, + ) + > { + void call( + ffi.Pointer arg0, + NSURLDownload arg1, + DartNSUInteger arg2, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLAuthenticationChallenge)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hwelu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hwelu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLAuthenticationChallenge)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > { + void call( + ffi.Pointer arg0, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLResponse)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > + fromFunction( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + NSURLResponse.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > + listener( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hj9xku.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > + blocking( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hj9xku.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLResponse)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > { + void call( + ffi.Pointer arg0, + NSURLDownload arg1, + NSURLResponse arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLResponse, ffi.LongLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.LongLong arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > + fromFunction( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + NSURLResponse.fromPointer(arg2, retain: true, release: true), + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > + listener( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_34xzuf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12tf05r.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > + blocking( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_34xzuf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12tf05r.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.LongLong arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLResponse, ffi.LongLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > { + void call( + ffi.Pointer arg0, + NSURLDownload arg1, + NSURLResponse arg2, + int arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.LongLong arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > + fromFunction( + void Function(ffi.Pointer, objc.NSURLHandle) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > + listener( + void Function(ffi.Pointer, objc.NSURLHandle) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xj71gr.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > + blocking( + void Function(ffi.Pointer, objc.NSURLHandle) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xj71gr.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURLHandle)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > { + void call(ffi.Pointer arg0, objc.NSURLHandle arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + > + fromFunction( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + > + listener( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_136y7ma.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + > + blocking( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_136y7ma.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURLHandle, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURLHandle, + objc.NSData, + ) + > { + void call( + ffi.Pointer arg0, + objc.NSURLHandle arg1, + objc.NSData arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURLHandle, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURLHandle, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + > + fromFunction( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURLHandle, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + > + listener( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_teaic5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + > + blocking( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_teaic5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURLHandle, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURLHandle, + objc.NSString, + ) + > { + void call( + ffi.Pointer arg0, + objc.NSURLHandle arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSURLProtocol)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSURLProtocol)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSURLProtocol)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSURLProtocol)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLProtocol)> + fromFunction( + void Function(ffi.Pointer, NSURLProtocol) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSURLProtocol)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLProtocol)> + listener( + void Function(ffi.Pointer, NSURLProtocol) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1jcra61.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSURLProtocol)> + blocking( + void Function(ffi.Pointer, NSURLProtocol) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1jcra61.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol$CallExtension + on objc.ObjCBlock, NSURLProtocol)> { + void call(ffi.Pointer arg0, NSURLProtocol arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSCachedURLResponse)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + > + fromFunction( + void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + NSCachedURLResponse.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + > + listener( + void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_s52y0g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + > + blocking( + void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_s52y0g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSCachedURLResponse)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + > { + void call( + ffi.Pointer arg0, + NSURLProtocol arg1, + NSCachedURLResponse arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > + fromFunction( + void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > + listener( + void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1p1ax08.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > + blocking( + void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1p1ax08.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > { + void call(ffi.Pointer arg0, NSURLProtocol arg1, objc.NSData arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, objc.NSError)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > + fromFunction( + void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > + listener( + void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_rojepe.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > + blocking( + void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_rojepe.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, objc.NSError)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > { + void call(ffi.Pointer arg0, NSURLProtocol arg1, objc.NSError arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLAuthenticationChallenge)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ek5uoy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ek5uoy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLAuthenticationChallenge)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > { + void call( + ffi.Pointer arg0, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLRequest, NSURLResponse)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + NSURLRequest.fromPointer(arg2, retain: true, release: true), + NSURLResponse.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12ykekb.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12ykekb.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLRequest, NSURLResponse)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > { + void call( + ffi.Pointer arg0, + NSURLProtocol arg1, + NSURLRequest arg2, + NSURLResponse arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLResponse, NSUInteger)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + NSURLResponse.fromPointer(arg2, retain: true, release: true), + NSURLCacheStoragePolicy.fromValue(arg3), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1j7coyk, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_abn34x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1j7coyk, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_abn34x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLResponse, NSUInteger)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > { + void call( + ffi.Pointer arg0, + NSURLProtocol arg1, + NSURLResponse arg2, + NSURLCacheStoragePolicy arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3.value); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSURLSession)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSURLSession)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSURLSession)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSURLSession)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLSession)> + fromFunction( + void Function(ffi.Pointer, NSURLSession) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSURLSession)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLSession)> + listener( + void Function(ffi.Pointer, NSURLSession) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_7xicdf.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSURLSession)> + blocking( + void Function(ffi.Pointer, NSURLSession) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_7xicdf.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession$CallExtension + on objc.ObjCBlock, NSURLSession)> { + void call(ffi.Pointer arg0, NSURLSession arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, objc.NSError?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + fromFunction( + void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + listener( + void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1f64crj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + blocking( + void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1f64crj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, objc.NSError?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > { + void call(ffi.Pointer arg0, NSURLSession arg1, objc.NSError? arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg2, + retain: true, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( + arg3, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_bklti2, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_de64m.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_bklti2, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_de64m.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), + NSCachedURLResponse.fromPointer(arg3, retain: true, release: true), + ObjCBlock_ffiVoid_NSCachedURLResponse.fromPointer( + arg4, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15cdu5z.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15cdu5z.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), + objc.NSData.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_16ix251.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_16ix251.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), + NSURLResponse.fromPointer(arg3, retain: true, release: true), + ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.fromPointer( + arg4, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1xfn2k3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1xfn2k3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), + NSURLSessionDownloadTask.fromPointer( + arg3, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_140cpyj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_140cpyj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), + NSURLSessionStreamTask.fromPointer( + arg3, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_43hp0b.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_43hp0b.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDownloadTask.fromPointer( + arg2, + retain: true, + release: true, + ), + arg3, + arg4, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_ly2579, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1l7b9ji.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ly2579, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1l7b9ji.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3, arg4); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDownloadTask.fromPointer( + arg2, + retain: true, + release: true, + ), + arg3, + arg4, + arg5, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_h68abb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pfucun.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_h68abb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pfucun.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + arg3, + arg4, + arg5, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDownloadTask.fromPointer( + arg2, + retain: true, + release: true, + ), + objc.NSURL.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_pm23bg.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_pm23bg.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > + fromFunction( + void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionStreamTask.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > + listener( + void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_qss5hc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > + blocking( + void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_qss5hc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask, objc.NSInputStream, objc.NSOutputStream)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionStreamTask.fromPointer( + arg2, + retain: true, + release: true, + ), + objc.NSInputStream.fromPointer(arg3, retain: true, release: true), + objc.NSOutputStream.fromPointer(arg4, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_8jfq1p, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_nhk5a9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8jfq1p, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_nhk5a9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask, objc.NSInputStream, objc.NSOutputStream)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + objc.NSInputStream arg3, + objc.NSOutputStream arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + fromFunction( + void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + listener( + void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k1nazc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + blocking( + void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k1nazc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + arg3, + arg4, + arg5, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_h68abb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xh08sz.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_h68abb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xh08sz.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + arg3, + arg4, + arg5, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + arg3, + ObjCBlock_ffiVoid_NSInputStream.fromPointer( + arg4, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_jyim80, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_99x6vt.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_jyim80, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_99x6vt.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + arg3, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSError.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_qjjttc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_qjjttc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + NSHTTPURLResponse.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n5meg5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n5meg5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + NSHTTPURLResponse.fromPointer(arg3, retain: true, release: true), + NSURLRequest.fromPointer(arg4, retain: true, release: true), + ObjCBlock_ffiVoid_NSURLRequest.fromPointer( + arg5, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_l2g8ke, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ayzt6i.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_l2g8ke, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ayzt6i.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + final _$$ref$4 = arg5.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg3, + retain: true, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( + arg4, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_31cygh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_31cygh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + NSURLRequest.fromPointer(arg3, retain: true, release: true), + ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.fromPointer( + arg4, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_jqba1.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_jqba1.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + NSURLSessionTaskMetrics.fromPointer( + arg3, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_i7wriu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_i7wriu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + ObjCBlock_ffiVoid_NSInputStream.fromPointer( + arg3, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_bklti2, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_112ozxo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_bklti2, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_112ozxo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionWebSocketTask.fromPointer( + arg2, + retain: true, + release: true, + ), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xcrg5s.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xcrg5s.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSInteger arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionWebSocketTask.fromPointer( + arg2, + retain: true, + release: true, + ), + NSURLSessionWebSocketCloseCode.fromValue(arg3), + arg4.address == 0 + ? null + : objc.NSData.fromPointer(arg4, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1lx650f, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17jmtfx.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1lx650f, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17jmtfx.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSInteger arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + NSURLSessionWebSocketCloseCode arg3, + objc.NSData? arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg4?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSInteger arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + arg3.value, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURL, NSFileVersion)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > + fromFunction( + void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSURL.fromPointer(arg1, retain: true, release: true), + NSFileVersion.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > + listener( + void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1siniii.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > + blocking( + void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1siniii.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURL, NSFileVersion)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > { + void call(ffi.Pointer arg0, objc.NSURL arg1, NSFileVersion arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURL, objc.NSURL)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > + fromFunction( + void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSURL.fromPointer(arg1, retain: true, release: true), + objc.NSURL.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > + listener( + void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_jzitwn.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > + blocking( + void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_jzitwn.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURL, objc.NSURL)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > { + void call(ffi.Pointer arg0, objc.NSURL arg1, objc.NSURL arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURL, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSURL.fromPointer(arg1, retain: true, release: true), + ObjCBlock_ffiVoid_NSError.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_jk1ljc, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_pfi7f3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_jk1ljc, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_pfi7f3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURL, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + objc.NSURL arg1, + objc.ObjCBlock arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSUserActivity)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock, NSUserActivity)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSUserActivity)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > + fromFunction( + void Function(ffi.Pointer, NSUserActivity) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock, NSUserActivity)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSUserActivity.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > + listener( + void Function(ffi.Pointer, NSUserActivity) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_197qivc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > + blocking( + void Function(ffi.Pointer, NSUserActivity) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_197qivc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSUserActivity)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSUserActivity$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > { + void call(ffi.Pointer arg0, NSUserActivity arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSUserActivity, objc.NSInputStream, objc.NSOutputStream)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSUserActivity.fromPointer(arg1, retain: true, release: true), + objc.NSInputStream.fromPointer(arg2, retain: true, release: true), + objc.NSOutputStream.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + listener( + void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1j32c3t.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + blocking( + void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1j32c3t.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSUserActivity, objc.NSInputStream, objc.NSOutputStream)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > { + void call( + ffi.Pointer arg0, + NSUserActivity arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSUserNotificationCenter.fromPointer( + arg1, + retain: true, + release: true, + ), + NSUserNotification.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + listener( + void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_blvx9k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + blocking( + void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_blvx9k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > { + void call( + ffi.Pointer arg0, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSXMLParser)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSXMLParser)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSXMLParser)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSXMLParser)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSXMLParser)> + fromFunction( + void Function(ffi.Pointer, NSXMLParser) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSXMLParser)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSXMLParser)> + listener( + void Function(ffi.Pointer, NSXMLParser) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1fj0jrw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSXMLParser)> + blocking( + void Function(ffi.Pointer, NSXMLParser) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1fj0jrw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser$CallExtension + on objc.ObjCBlock, NSXMLParser)> { + void call(ffi.Pointer arg0, NSXMLParser arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > + fromFunction( + void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > + listener( + void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vaglpl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > + blocking( + void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vaglpl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > { + void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSData arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSError)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > + fromFunction( + void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > + listener( + void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17xklgp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > + blocking( + void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17xklgp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSError)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > { + void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSError arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > + fromFunction( + void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > + listener( + void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1r6tt56.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > + blocking( + void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1r6tt56.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > { + void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSString arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_121fmzs.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_121fmzs.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_nemba7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_nemba7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4.address == 0 + ? null + : objc.NSString.fromPointer(arg4, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_8jfq1p, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hacm4k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8jfq1p, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hacm4k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + final _$$ref$3 = arg4?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSDictionary)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4.address == 0 + ? null + : objc.NSString.fromPointer(arg4, retain: true, release: true), + objc.NSDictionary.fromPointer(arg5, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1kowxjl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1kowxjl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSDictionary)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSDictionary arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + final _$$ref$3 = arg4?.ref; + final _$$ref$4 = arg5.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString, objc.NSString?, objc.NSString?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4.address == 0 + ? null + : objc.NSString.fromPointer(arg4, retain: true, release: true), + arg5.address == 0 + ? null + : objc.NSString.fromPointer(arg5, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vx7t4i.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vx7t4i.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString, objc.NSString?, objc.NSString?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4?.ref; + final _$$ref$4 = arg5?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSString?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4.address == 0 + ? null + : objc.NSString.fromPointer(arg4, retain: true, release: true), + arg5.address == 0 + ? null + : objc.NSString.fromPointer(arg5, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_t3r59d.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_t3r59d.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSString?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + final _$$ref$3 = arg4?.ref; + final _$$ref$4 = arg5?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Bool)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, ffi.Bool)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, ffi.Bool)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, ffi.Bool)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1) + > + > + ptr, + ) => objc.ObjCBlock, ffi.Bool)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, ffi.Bool)> + fromFunction( + void Function(ffi.Pointer, bool) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, ffi.Bool)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + bool arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, ffi.Bool)> + listener( + void Function(ffi.Pointer, bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, ffi.Bool)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_10lndml, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_wpl2gn.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, ffi.Bool)> + blocking( + void Function(ffi.Pointer, bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, ffi.Bool)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_10lndml, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_wpl2gn.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + bool arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1) + > + >() + .asFunction, bool)>()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + bool arg1, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, bool))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Bool)>`. +extension ObjCBlock_ffiVoid_ffiVoid_bool$CallExtension + on objc.ObjCBlock, ffi.Bool)> { + void call(ffi.Pointer arg0, bool arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Bool arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + void Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + listener( + void Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1037nh9, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hj6v1u.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + blocking( + void Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1037nh9, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hj6v1u.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > { + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + ObjCBlock_ffiVoid_NSError.fromPointer( + arg1, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1l4hxwm, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1s0z6xl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1l4hxwm, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1s0z6xl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + objc.ObjCBlock arg1, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.ObjCBlock?)>)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + > + fromFunction( + void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + ObjCBlock_ffiVoid_ffiVoid$2.fromPointer( + arg1, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + > + listener( + void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1l4hxwm, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_eu2222.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + > + blocking( + void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1l4hxwm, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_eu2222.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.ObjCBlock?)>)>`. +extension ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + > { + void call( + ffi.Pointer arg0, + objc.ObjCBlock?)> + arg1, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock?, objc.NSError)>`. +abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + fromFunction( + void Function(objc.NSSecureCoding?, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSSecureCoding.fromPointer( + arg0, + retain: true, + release: true, + ), + objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + listener( + void Function(objc.NSSecureCoding?, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_krrtfh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + blocking( + void Function(objc.NSSecureCoding?, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_krrtfh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?, objc.NSError)>`. +extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > { + void call(objc.NSSecureCoding? arg0, objc.NSError arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock?, objc.NSError?)>`. +abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > + fromFunction( + void Function(objc.ObjCObject?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.ObjCObject(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > + listener( + void Function(objc.ObjCObject?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1tklz9g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > + blocking( + void Function(objc.ObjCObject?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1tklz9g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?, objc.NSError?)>`. +extension ObjCBlock_ffiVoid_objcObjCObjectImpl_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > { + void call(objc.ObjCObject? arg0, objc.NSError? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock?, objc.NSRange, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + fromFunction( + void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0.address == 0 + ? null + : objc.ObjCObject(arg0, retain: true, release: true), + arg1, + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + listener( + void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1a22wz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_q6fcam.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + blocking( + void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1a22wz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_q6fcam.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?, objc.NSRange, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > { + void call(objc.ObjCObject? arg0, NSRange arg1, ffi.Pointer arg2) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartdispatch_data_t?, + Dartsec_protocol_pre_shared_key_selection_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSObject.fromPointer(arg1, retain: true, release: true), + ObjCBlock_ffiVoid_NSObject$1.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartdispatch_data_t?, + Dartsec_protocol_pre_shared_key_selection_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18qun1e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1nq9pr6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartdispatch_data_t?, + Dartsec_protocol_pre_shared_key_selection_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18qun1e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1nq9pr6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartdispatch_data_t? arg1, + Dartsec_protocol_pre_shared_key_selection_complete_t arg2, + ) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1?.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >()( + ref.pointer, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_challenge_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + ObjCBlock_ffiVoid_NSObject$1.fromPointer( + arg1, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_challenge_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_o762yo, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hj4uui.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_challenge_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_o762yo, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hj4uui.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) + > + >() + .asFunction< + void Function( + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartsec_protocol_challenge_complete_t arg1, + ) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_key_update_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >( + objc.newClosureBlock(_closureCallable, ( + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + ObjCBlock_ffiVoid.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_key_update_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_o762yo, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_di5ft6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_key_update_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_o762yo, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_di5ft6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) + > + >() + .asFunction< + void Function( + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartsec_protocol_key_update_complete_t arg1, + ) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_trust_t, + Dartsec_protocol_verify_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + objc.NSObject.fromPointer(arg1, retain: true, release: true), + ObjCBlock_ffiVoid_bool.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_trust_t, + Dartsec_protocol_verify_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18qun1e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1e3xl1p.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_trust_t, + Dartsec_protocol_verify_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18qun1e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1e3xl1p.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartsec_trust_t arg1, + Dartsec_protocol_verify_complete_t arg2, + ) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_xpcobjectt_xpcricherrort { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(xpc_object_t arg0, xpc_rich_error_t arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + xpc_object_t arg0, + xpc_rich_error_t arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSObject.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSObject.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1uox71a.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1uox71a.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + xpc_object_t arg0, + xpc_rich_error_t arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(xpc_object_t arg0, xpc_rich_error_t arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + xpc_object_t, + xpc_rich_error_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + xpc_object_t arg0, + xpc_rich_error_t arg1, + ) => + (objc.getBlockClosure(block) + as void Function(xpc_object_t, xpc_rich_error_t))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + xpc_object_t, + xpc_rich_error_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_xpcobjectt_xpcricherrort$CallExtension + on objc.ObjCBlock { + void call(Dartxpc_object_t? arg0, Dartxpc_object_t? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + xpc_object_t arg0, + xpc_rich_error_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + xpc_object_t, + xpc_rich_error_t, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, objc.NSBundle)>`. +abstract final class ObjCBlock_instancetype_ffiVoid_NSBundle { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + > + fromFunction( + Dartinstancetype? Function(ffi.Pointer, objc.NSBundle) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + final _$$ref = fn( + arg0, + objc.NSBundle.fromPointer(arg1, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndReturnPointer() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static instancetype _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static instancetype _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as instancetype Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, objc.NSBundle)>`. +extension ObjCBlock_instancetype_ffiVoid_NSBundle$CallExtension + on + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + > { + Dartinstancetype? call(ffi.Pointer arg0, objc.NSBundle arg1) { + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer) + .address == + 0 + ? null + : objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer), + retain: false, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + objc.ObjCObject Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + objc.ObjCObject call(ffi.Pointer arg0) { + return objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSConnection)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + > + fromFunction( + objc.ObjCObject Function(ffi.Pointer, NSConnection) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + final _$$ref = fn( + arg0, + NSConnection.fromPointer(arg1, retain: true, release: true), + ).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSConnection)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + > { + objc.ObjCObject call(ffi.Pointer arg0, NSConnection arg1) { + final _$$ref$1 = arg1.ref; + return objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedArchiver, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObject? Function( + ffi.Pointer, + NSKeyedArchiver, + objc.ObjCObject, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), + objc.ObjCObject(arg2, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedArchiver, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + > { + objc.ObjCObject? call( + ffi.Pointer arg0, + NSKeyedArchiver arg1, + objc.ObjCObject arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) + .address == + 0 + ? null + : objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedUnarchiver, objc.NSString, objc.NSArray)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + > + fromFunction( + objc.ObjCObject? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSArray.fromPointer(arg3, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedUnarchiver, objc.NSString, objc.NSArray)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray$CallExtension + on + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + > { + objc.ObjCObject? call( + ffi.Pointer arg0, + NSKeyedUnarchiver arg1, + objc.NSString arg2, + objc.NSArray arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ) + .address == + 0 + ? null + : objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, NSKeyedUnarchiver, objc.Consumed?>)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + > + fromFunction( + objc.ObjCObject? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.ObjCObject?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.ObjCObject(arg2, retain: false, release: true), + )?.ref; + return _$$ref?.retainAndReturnPointer() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, NSKeyedUnarchiver, objc.Consumed?>)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + > { + objc.ObjCObject? call( + ffi.Pointer arg0, + NSKeyedUnarchiver arg1, + objc.ObjCObject? arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, + ) + .address == + 0 + ? null + : objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, + ), + retain: false, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, NSMetadataItem)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + > + fromFunction( + objc.ObjCObject Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + NSMetadataQuery.fromPointer(arg1, retain: true, release: true), + NSMetadataItem.fromPointer(arg2, retain: true, release: true), + ).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, NSMetadataItem)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + > { + objc.ObjCObject call( + ffi.Pointer arg0, + NSMetadataQuery arg1, + NSMetadataItem arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, objc.NSString, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObject Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + objc.ObjCObject, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSMetadataQuery.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.ObjCObject(arg3, retain: true, release: true), + ).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, objc.NSString, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + > { + objc.ObjCObject call( + ffi.Pointer arg0, + NSMetadataQuery arg1, + objc.NSString arg2, + objc.ObjCObject arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3.ref; + return objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, objc.ObjCBlock)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromFunction( + objc.ObjCObject Function( + ffi.Pointer, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + final _$$ref = fn( + arg0, + ObjCBlock_ffiVoid_NSError$1.fromPointer( + arg1, + retain: true, + release: true, + ), + ).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, objc.ObjCBlock)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > { + objc.ObjCObject call( + ffi.Pointer arg0, + objc.ObjCBlock arg1, + ) { + final _$$ref$1 = arg1.ref; + return objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_ppdfiles_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function(ffi.Pointer)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunction( + ffi.Pointer Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_ppdfiles_ffiVoid$CallExtension + on objc.ObjCBlock Function(ffi.Pointer)> { + ffi.Pointer call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Observation +extension Observation on AVAudioSession { + /// isOtherAudioPlaying + bool get isOtherAudioPlaying { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.isOtherAudioPlaying', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOtherAudioPlaying); + } + + /// outputVolume + double get outputVolume { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.outputVolume', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_outputVolume) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_outputVolume); + } + + /// promptStyle + AVAudioSessionPromptStyle get promptStyle { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.promptStyle', + iOS: (false, (13, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_fooyu3(_$$ref.pointer, _sel_promptStyle); + return AVAudioSessionPromptStyle.fromValue($ret); + } + + /// secondaryAudioShouldBeSilencedHint + bool get secondaryAudioShouldBeSilencedHint { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.secondaryAudioShouldBeSilencedHint', + iOS: (false, (8, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635( + _$$ref.pointer, + _sel_secondaryAudioShouldBeSilencedHint, + ); + } +} + +final class OffPair extends ffi.Struct { + @ffi.Short() + external int offFirst; + + @ffi.Short() + external int offSecond; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offFirst, + required int offSecond, + }) => $allocator() + ..ref.offFirst = offFirst + ..ref.offSecond = offSecond; +} + +@ffi.Packed(2) +final class OffsetArray extends ffi.Struct { + @SInt16() + external int fNumOfOffsets; + + @ffi.Array.multi([1]) + external ffi.Array fOffset; +} + +typedef OffsetArrayHandle = ffi.Pointer; +typedef OffsetArrayPtr = ffi.Pointer; + +final class OpaqueAEStreamRef extends ffi.Opaque {} + +final class OpaqueATSUFontFallbacks extends ffi.Opaque {} + +final class OpaqueATSUStyle extends ffi.Opaque {} + +final class OpaqueATSUTextLayout extends ffi.Opaque {} + +final class OpaqueAreaID extends ffi.Opaque {} + +final class OpaqueCMProfileRef extends ffi.Opaque {} + +final class OpaqueCMWorldRef extends ffi.Opaque {} + +final class OpaqueCollatorRef extends ffi.Opaque {} + +final class OpaqueCollection extends ffi.Opaque {} + +final class OpaqueDialogPtr extends ffi.Opaque {} + +final class OpaqueFNSubscriptionRef extends ffi.Opaque {} + +final class OpaqueFSIterator extends ffi.Opaque {} + +final class OpaqueFSVolumeOperation extends ffi.Opaque {} + +final class OpaqueGrafPtr extends ffi.Opaque {} + +final class OpaqueICInstance extends ffi.Opaque {} + +final class OpaqueIconRef extends ffi.Opaque {} + +final class OpaqueLSSharedFileListItemRef extends ffi.Opaque {} + +final class OpaqueLSSharedFileListRef extends ffi.Opaque {} + +final class OpaqueLocaleRef extends ffi.Opaque {} + +final class OpaqueMPAddressSpaceID extends ffi.Opaque {} + +final class OpaqueMPAreaID extends ffi.Opaque {} + +final class OpaqueMPCoherenceID extends ffi.Opaque {} + +final class OpaqueMPConsoleID extends ffi.Opaque {} + +final class OpaqueMPCpuID extends ffi.Opaque {} + +final class OpaqueMPCriticalRegionID extends ffi.Opaque {} + +final class OpaqueMPEventID extends ffi.Opaque {} + +final class OpaqueMPNotificationID extends ffi.Opaque {} + +final class OpaqueMPOpaqueID extends ffi.Opaque {} + +final class OpaqueMPProcessID extends ffi.Opaque {} + +final class OpaqueMPQueueID extends ffi.Opaque {} + +final class OpaqueMPSemaphoreID extends ffi.Opaque {} + +final class OpaqueMPTaskID extends ffi.Opaque {} + +final class OpaqueMPTimerID extends ffi.Opaque {} + +final class OpaquePMPageFormat extends ffi.Opaque {} + +final class OpaquePMPaper extends ffi.Opaque {} + +final class OpaquePMPreset extends ffi.Opaque {} + +final class OpaquePMPrintSession extends ffi.Opaque {} + +final class OpaquePMPrintSettings extends ffi.Opaque {} + +final class OpaquePMPrinter extends ffi.Opaque {} + +final class OpaquePMServer extends ffi.Opaque {} + +final class OpaquePasteboardRef extends ffi.Opaque {} + +final class OpaquePolicySearchRef extends ffi.Opaque {} + +final class OpaqueRgnHandle extends ffi.Opaque {} + +typedef OpaqueSecAccessRef = __SecAccess; +typedef OpaqueSecCertificateRef = __SecCertificate; +typedef OpaqueSecIdentityRef = __SecIdentity; + +final class OpaqueSecIdentitySearchRef extends ffi.Opaque {} + +typedef OpaqueSecKeyRef = __SecKey; + +final class OpaqueSecTransformImplementation extends ffi.Opaque {} + +final class OpaqueTECObjectRef extends ffi.Opaque {} + +final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} + +final class OpaqueTextBreakLocatorRef extends ffi.Opaque {} + +final class OpaqueTextToUnicodeInfo extends ffi.Opaque {} + +final class OpaqueTranslationRef extends ffi.Opaque {} + +final class OpaqueUCTypeSelectRef extends ffi.Opaque {} + +final class OpaqueUnicodeToTextInfo extends ffi.Opaque {} + +final class OpaqueUnicodeToTextRunInfo extends ffi.Opaque {} + +final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} + +final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} + +final class OpaqueWindowPtr extends ffi.Opaque {} + +final class OpbdSideValues extends ffi.Struct { + @SInt16() + external int leftSideShift; + + @SInt16() + external int topSideShift; + + @SInt16() + external int rightSideShift; + + @SInt16() + external int bottomSideShift; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int leftSideShift, + required int topSideShift, + required int rightSideShift, + required int bottomSideShift, + }) => $allocator() + ..ref.leftSideShift = leftSideShift + ..ref.topSideShift = topSideShift + ..ref.rightSideShift = rightSideShift + ..ref.bottomSideShift = bottomSideShift; +} + +@ffi.Packed(2) +final class OpbdTable extends ffi.Struct { + @Fixed() + external int version; + + @OpbdTableFormat() + external int format; + + external SFNTLookupTable lookupTable; +} + +typedef OpbdTableFormat = UInt16; + +@ffi.Packed(2) +final class OpenCPicParams extends ffi.Struct { + external Rect srcRect; + + @Fixed() + external int hRes; + + @Fixed() + external int vRes; + + @ffi.Short() + external int version; + + @ffi.Short() + external int reserved1; + + @SInt32() + external int reserved2; +} + +typedef OptionBits = UInt32; + +const int OverallAct = 0; + +typedef PBVersion = UInt32; + +/// PDEPanel +extension type PDEPanel._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [PDEPanel] that points to the same underlying object as [other]. + PDEPanel.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [PDEPanel] that wraps the given raw object pointer. + PDEPanel.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [PDEPanel]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_PDEPanel, + ); + } +} + +extension PDEPanel$Methods on PDEPanel { + /// PPDOptionKeyValueDidChange:ppdChoice: + void PPDOptionKeyValueDidChange( + objc.NSString option, { + required objc.NSString ppdChoice, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = option.ref; + final _$$ref$2 = ppdChoice.ref; + objc.checkOsVersionInternal( + 'PDEPanel.PPDOptionKeyValueDidChange:ppdChoice:', + iOS: (true, null), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_PPDOptionKeyValueDidChange_ppdChoice_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// panelKind + objc.NSString panelKind() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.panelKind', iOS: (true, null)); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelKind); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// panelName + objc.NSString panelName() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.panelName', iOS: (true, null)); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelName); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// panelView + NSView? panelView() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.panelView', iOS: (true, null)); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelView); + return $ret.address == 0 + ? null + : NSView.fromPointer($ret, retain: true, release: true); + } + + /// printWindowWillClose: + void printWindowWillClose(bool userCanceled) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPanel.printWindowWillClose:', + iOS: (true, null), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_printWindowWillClose_)) { + throw objc.UnimplementedOptionalMethodException( + 'PDEPanel', + 'printWindowWillClose:', + ); + } + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_printWindowWillClose_, + userCanceled, + ); + } + + /// restoreValuesAndReturnError: + bool restoreValuesAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPanel.restoreValuesAndReturnError:', + iOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_restoreValuesAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// saveValuesAndReturnError: + bool saveValuesAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPanel.saveValuesAndReturnError:', + iOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_saveValuesAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// shouldHide + bool shouldHide() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.shouldHide', iOS: (true, null)); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldHide); + } + + /// shouldPrint + bool shouldPrint() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.shouldPrint', iOS: (true, null)); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_shouldPrint)) { + throw objc.UnimplementedOptionalMethodException( + 'PDEPanel', + 'shouldPrint', + ); + } + return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldPrint); + } + + /// shouldShowHelp + bool shouldShowHelp() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.shouldShowHelp', iOS: (true, null)); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_shouldShowHelp)) { + throw objc.UnimplementedOptionalMethodException( + 'PDEPanel', + 'shouldShowHelp', + ); + } + return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldShowHelp); + } + + /// summaryInfo + objc.NSDictionary? summaryInfo() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.summaryInfo', iOS: (true, null)); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_summaryInfo); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// supportedPPDOptionKeys + objc.NSArray? supportedPPDOptionKeys() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPanel.supportedPPDOptionKeys', + iOS: (true, null), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_supportedPPDOptionKeys)) { + throw objc.UnimplementedOptionalMethodException( + 'PDEPanel', + 'supportedPPDOptionKeys', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_supportedPPDOptionKeys, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// willShow + void willShow() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.willShow', iOS: (true, null)); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_willShow); + } +} + +interface class PDEPanel$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_PDEPanel.cast()); + + /// Builds an object that implements the PDEPanel protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static PDEPanel implement({ + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implement( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implement( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implement(builder, willShow); + builder.addProtocol($protocol); + return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the PDEPanel protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implement( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implement( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implement(builder, willShow); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the PDEPanel protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static PDEPanel implementAsListener({ + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsListener( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implementAsListener( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implementAsListener(builder, willShow); + builder.addProtocol($protocol); + return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the PDEPanel protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsListener( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implementAsListener( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implementAsListener(builder, willShow); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the PDEPanel protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static PDEPanel implementAsBlocking({ + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsBlocking( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implementAsBlocking( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implementAsBlocking(builder, willShow); + builder.addProtocol($protocol); + return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the PDEPanel protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsBlocking( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implementAsBlocking( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implementAsBlocking(builder, willShow); + builder.addProtocol($protocol); + } + + /// PPDOptionKeyValueDidChange:ppdChoice: + static final PPDOptionKeyValueDidChange_ppdChoice_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSString, objc.NSString) + >( + _protocol_PDEPanel, + _sel_PPDOptionKeyValueDidChange_ppdChoice_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_PPDOptionKeyValueDidChange_ppdChoice_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.listener( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.blocking( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// panelKind + static final panelKind = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_panelKind, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_panelKind, + isRequired: true, + isInstanceMethod: true, + ), + (objc.NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// panelName + static final panelName = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_panelName, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_panelName, + isRequired: true, + isInstanceMethod: true, + ), + (objc.NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// panelView + static final panelView = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_panelView, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_panelView, + isRequired: true, + isInstanceMethod: true, + ), + (NSView? Function() func) => ObjCBlock_NSView_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// printWindowWillClose: + static final printWindowWillClose_ = + objc.ObjCProtocolListenableMethod( + _protocol_PDEPanel, + _sel_printWindowWillClose_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_10lndml) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_printWindowWillClose_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(bool) func) => + ObjCBlock_ffiVoid_ffiVoid_bool.fromFunction( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.listener( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.blocking( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + ); + + /// restoreValuesAndReturnError: + static final restoreValuesAndReturnError_ = + objc.ObjCProtocolMethod< + bool Function(ffi.Pointer>) + >( + _protocol_PDEPanel, + _sel_restoreValuesAndReturnError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >(_1uu024u_protocolTrampoline_jp3gca) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_restoreValuesAndReturnError_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(ffi.Pointer>) func) => + ObjCBlock_bool_ffiVoid_NSError.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer> arg1, + ) => func(arg1), + ), + ); + + /// saveValuesAndReturnError: + static final saveValuesAndReturnError_ = + objc.ObjCProtocolMethod< + bool Function(ffi.Pointer>) + >( + _protocol_PDEPanel, + _sel_saveValuesAndReturnError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >(_1uu024u_protocolTrampoline_jp3gca) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_saveValuesAndReturnError_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(ffi.Pointer>) func) => + ObjCBlock_bool_ffiVoid_NSError.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer> arg1, + ) => func(arg1), + ), + ); + + /// shouldHide + static final shouldHide = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_shouldHide, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_shouldHide, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// shouldPrint + static final shouldPrint = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_shouldPrint, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_shouldPrint, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// shouldShowHelp + static final shouldShowHelp = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_shouldShowHelp, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_shouldShowHelp, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// summaryInfo + static final summaryInfo = + objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_summaryInfo, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_summaryInfo, + isRequired: true, + isInstanceMethod: true, + ), + (objc.NSDictionary? Function() func) => + ObjCBlock_NSDictionary_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// supportedPPDOptionKeys + static final supportedPPDOptionKeys = + objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_supportedPPDOptionKeys, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_supportedPPDOptionKeys, + isRequired: false, + isInstanceMethod: true, + ), + (objc.NSArray? Function() func) => + ObjCBlock_NSArray_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// willShow + static final willShow = objc.ObjCProtocolListenableMethod( + _protocol_PDEPanel, + _sel_willShow, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_willShow, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); +} + +/// PDEPlugIn +extension type PDEPlugIn._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [PDEPlugIn] that points to the same underlying object as [other]. + PDEPlugIn.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [PDEPlugIn] that wraps the given raw object pointer. + PDEPlugIn.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [PDEPlugIn]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_PDEPlugIn, + ); + } +} + +extension PDEPlugIn$Methods on PDEPlugIn { + /// PDEPanelsForType:withHostInfo: + objc.NSArray? PDEPanelsForType( + objc.NSString pdeType, { + required PDEPlugInCallbackProtocol withHostInfo, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = pdeType.ref; + final _$$ref$2 = withHostInfo.ref; + objc.checkOsVersionInternal( + 'PDEPlugIn.PDEPanelsForType:withHostInfo:', + iOS: (true, null), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_PDEPanelsForType_withHostInfo_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// initWithBundle: + PDEPlugIn? initWithBundle(objc.NSBundle theBundle) { + final _$$ref = object$.ref; + final _$$ref$1 = theBundle.ref; + objc.checkOsVersionInternal('PDEPlugIn.initWithBundle:', iOS: (true, null)); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithBundle_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : PDEPlugIn.fromPointer($ret, retain: false, release: true); + } +} + +interface class PDEPlugIn$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_PDEPlugIn.cast()); + + /// Builds an object that implements the PDEPlugIn protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static PDEPlugIn implement({ + required objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) + PDEPanelsForType_withHostInfo_, + required Dartinstancetype? Function(objc.NSBundle) initWithBundle_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPlugIn'); + PDEPlugIn$Builder.PDEPanelsForType_withHostInfo_.implement( + builder, + PDEPanelsForType_withHostInfo_, + ); + PDEPlugIn$Builder.initWithBundle_.implement(builder, initWithBundle_); + builder.addProtocol($protocol); + return PDEPlugIn.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the PDEPlugIn protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) + PDEPanelsForType_withHostInfo_, + required Dartinstancetype? Function(objc.NSBundle) initWithBundle_, + bool $keepIsolateAlive = true, + }) { + PDEPlugIn$Builder.PDEPanelsForType_withHostInfo_.implement( + builder, + PDEPanelsForType_withHostInfo_, + ); + PDEPlugIn$Builder.initWithBundle_.implement(builder, initWithBundle_); + builder.addProtocol($protocol); + } + + /// PDEPanelsForType:withHostInfo: + static final PDEPanelsForType_withHostInfo_ = + objc.ObjCProtocolMethod< + objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) + >( + _protocol_PDEPlugIn, + _sel_PDEPanelsForType_withHostInfo_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_zi5eed) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugIn, + _sel_PDEPanelsForType_withHostInfo_, + isRequired: true, + isInstanceMethod: true, + ), + ( + objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) func, + ) => + ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol.fromFunction( + ( + ffi.Pointer _, + objc.NSString arg1, + PDEPlugInCallbackProtocol arg2, + ) => func(arg1, arg2), + ), + ); + + /// initWithBundle: + static final initWithBundle_ = + objc.ObjCProtocolMethod( + _protocol_PDEPlugIn, + _sel_initWithBundle_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugIn, + _sel_initWithBundle_, + isRequired: true, + isInstanceMethod: true, + ), + (Dartinstancetype? Function(objc.NSBundle) func) => + ObjCBlock_instancetype_ffiVoid_NSBundle.fromFunction( + (ffi.Pointer _, objc.NSBundle arg1) => func(arg1), + ), + ); +} + +/// PDEPlugInCallbackProtocol +extension type PDEPlugInCallbackProtocol._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [PDEPlugInCallbackProtocol] that points to the same underlying object as [other]. + PDEPlugInCallbackProtocol.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [PDEPlugInCallbackProtocol] that wraps the given raw object pointer. + PDEPlugInCallbackProtocol.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [PDEPlugInCallbackProtocol]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_PDEPlugInCallbackProtocol, + ); + } +} + +extension PDEPlugInCallbackProtocol$Methods on PDEPlugInCallbackProtocol { + /// PMPrinter + PMPrinter PMPrinter$1() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.PMPrinter', + iOS: (true, null), + ); + return _objc_msgSend_bm6pu2(_$$ref.pointer, _sel_PMPrinter); + } + + /// pageFormat + PMPageFormat pageFormat() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.pageFormat', + iOS: (true, null), + ); + return _objc_msgSend_1dcy00i(_$$ref.pointer, _sel_pageFormat); + } + + /// ppdFile + ffi.Pointer ppdFile() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.ppdFile', + iOS: (true, null), + ); + return _objc_msgSend_wbgokv(_$$ref.pointer, _sel_ppdFile); + } + + /// printSession + PMPrintSession printSession() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.printSession', + iOS: (true, null), + ); + return _objc_msgSend_esp80j(_$$ref.pointer, _sel_printSession); + } + + /// printSettings + PMPrintSettings printSettings() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.printSettings', + iOS: (true, null), + ); + return _objc_msgSend_1tqkjbg(_$$ref.pointer, _sel_printSettings); + } + + /// willChangePPDOptionKeyValue:ppdChoice: + bool willChangePPDOptionKeyValue( + objc.NSString option, { + required objc.NSString ppdChoice, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = option.ref; + final _$$ref$2 = ppdChoice.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.willChangePPDOptionKeyValue:ppdChoice:', + iOS: (true, null), + ); + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_willChangePPDOptionKeyValue_ppdChoice_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class PDEPlugInCallbackProtocol$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_PDEPlugInCallbackProtocol.cast()); + + /// Builds an object that implements the PDEPlugInCallbackProtocol protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static PDEPlugInCallbackProtocol implement({ + required PMPrinter Function() PMPrinter$1, + required PMPageFormat Function() pageFormat, + required ffi.Pointer Function() ppdFile, + required PMPrintSession Function() printSession, + required PMPrintSettings Function() printSettings, + required bool Function(objc.NSString, objc.NSString) + willChangePPDOptionKeyValue_ppdChoice_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'PDEPlugInCallbackProtocol', + ); + PDEPlugInCallbackProtocol$Builder.PMPrinter$1.implement( + builder, + PMPrinter$1, + ); + PDEPlugInCallbackProtocol$Builder.pageFormat.implement(builder, pageFormat); + PDEPlugInCallbackProtocol$Builder.ppdFile.implement(builder, ppdFile); + PDEPlugInCallbackProtocol$Builder.printSession.implement( + builder, + printSession, + ); + PDEPlugInCallbackProtocol$Builder.printSettings.implement( + builder, + printSettings, + ); + PDEPlugInCallbackProtocol$Builder.willChangePPDOptionKeyValue_ppdChoice_ + .implement(builder, willChangePPDOptionKeyValue_ppdChoice_); + builder.addProtocol($protocol); + return PDEPlugInCallbackProtocol.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the PDEPlugInCallbackProtocol protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required PMPrinter Function() PMPrinter$1, + required PMPageFormat Function() pageFormat, + required ffi.Pointer Function() ppdFile, + required PMPrintSession Function() printSession, + required PMPrintSettings Function() printSettings, + required bool Function(objc.NSString, objc.NSString) + willChangePPDOptionKeyValue_ppdChoice_, + bool $keepIsolateAlive = true, + }) { + PDEPlugInCallbackProtocol$Builder.PMPrinter$1.implement( + builder, + PMPrinter$1, + ); + PDEPlugInCallbackProtocol$Builder.pageFormat.implement(builder, pageFormat); + PDEPlugInCallbackProtocol$Builder.ppdFile.implement(builder, ppdFile); + PDEPlugInCallbackProtocol$Builder.printSession.implement( + builder, + printSession, + ); + PDEPlugInCallbackProtocol$Builder.printSettings.implement( + builder, + printSettings, + ); + PDEPlugInCallbackProtocol$Builder.willChangePPDOptionKeyValue_ppdChoice_ + .implement(builder, willChangePPDOptionKeyValue_ppdChoice_); + builder.addProtocol($protocol); + } + + /// PMPrinter + static final PMPrinter$1 = objc.ObjCProtocolMethod( + _protocol_PDEPlugInCallbackProtocol, + _sel_PMPrinter, + ffi.Native.addressOf< + ffi.NativeFunction< + PMPrinter Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_h8xvuu) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_PMPrinter, + isRequired: true, + isInstanceMethod: true, + ), + (PMPrinter Function() func) => ObjCBlock_PMPrinter_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// pageFormat + static final pageFormat = objc.ObjCProtocolMethod( + _protocol_PDEPlugInCallbackProtocol, + _sel_pageFormat, + ffi.Native.addressOf< + ffi.NativeFunction< + PMPageFormat Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1pm5t72) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_pageFormat, + isRequired: true, + isInstanceMethod: true, + ), + (PMPageFormat Function() func) => + ObjCBlock_PMPageFormat_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// ppdFile + static final ppdFile = + objc.ObjCProtocolMethod Function()>( + _protocol_PDEPlugInCallbackProtocol, + _sel_ppdFile, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_10vn635) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_ppdFile, + isRequired: true, + isInstanceMethod: true, + ), + (ffi.Pointer Function() func) => + ObjCBlock_ppdfiles_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// printSession + static final printSession = + objc.ObjCProtocolMethod( + _protocol_PDEPlugInCallbackProtocol, + _sel_printSession, + ffi.Native.addressOf< + ffi.NativeFunction< + PMPrintSession Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1ch2rph) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_printSession, + isRequired: true, + isInstanceMethod: true, + ), + (PMPrintSession Function() func) => + ObjCBlock_PMPrintSession_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// printSettings + static final printSettings = + objc.ObjCProtocolMethod( + _protocol_PDEPlugInCallbackProtocol, + _sel_printSettings, + ffi.Native.addressOf< + ffi.NativeFunction< + PMPrintSettings Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1cwrrqo) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_printSettings, + isRequired: true, + isInstanceMethod: true, + ), + (PMPrintSettings Function() func) => + ObjCBlock_PMPrintSettings_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// willChangePPDOptionKeyValue:ppdChoice: + static final willChangePPDOptionKeyValue_ppdChoice_ = + objc.ObjCProtocolMethod( + _protocol_PDEPlugInCallbackProtocol, + _sel_willChangePPDOptionKeyValue_ppdChoice_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_willChangePPDOptionKeyValue_ppdChoice_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.NSString, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); +} + +@ffi.Packed(2) +final class PEFContainerHeader extends ffi.Struct { + @OSType() + external int tag1; + + @OSType() + external int tag2; + + @OSType() + external int architecture; + + @UInt32() + external int formatVersion; + + @UInt32() + external int dateTimeStamp; + + @UInt32() + external int oldDefVersion; + + @UInt32() + external int oldImpVersion; + + @UInt32() + external int currentVersion; + + @UInt16() + external int sectionCount; + + @UInt16() + external int instSectionCount; + + @UInt32() + external int reservedA; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tag1, + required int tag2, + required int architecture, + required int formatVersion, + required int dateTimeStamp, + required int oldDefVersion, + required int oldImpVersion, + required int currentVersion, + required int sectionCount, + required int instSectionCount, + required int reservedA, + }) => $allocator() + ..ref.tag1 = tag1 + ..ref.tag2 = tag2 + ..ref.architecture = architecture + ..ref.formatVersion = formatVersion + ..ref.dateTimeStamp = dateTimeStamp + ..ref.oldDefVersion = oldDefVersion + ..ref.oldImpVersion = oldImpVersion + ..ref.currentVersion = currentVersion + ..ref.sectionCount = sectionCount + ..ref.instSectionCount = instSectionCount + ..ref.reservedA = reservedA; +} + +@ffi.Packed(2) +final class PEFExportedSymbol extends ffi.Struct { + @UInt32() + external int classAndName; + + @UInt32() + external int symbolValue; + + @SInt16() + external int sectionIndex; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int classAndName, + required int symbolValue, + required int sectionIndex, + }) => $allocator() + ..ref.classAndName = classAndName + ..ref.symbolValue = symbolValue + ..ref.sectionIndex = sectionIndex; +} + +@ffi.Packed(2) +final class PEFExportedSymbolHashSlot extends ffi.Struct { + @UInt32() + external int countAndStart; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int countAndStart, + }) => + $allocator() + ..ref.countAndStart = countAndStart; +} + +final class PEFExportedSymbolKey extends ffi.Struct { + external UnnamedUnion$11 u; +} + +@ffi.Packed(2) +final class PEFImportedLibrary extends ffi.Struct { + @UInt32() + external int nameOffset; + + @UInt32() + external int oldImpVersion; + + @UInt32() + external int currentVersion; + + @UInt32() + external int importedSymbolCount; + + @UInt32() + external int firstImportedSymbol; + + @UInt8() + external int options; + + @UInt8() + external int reservedA; + + @UInt16() + external int reservedB; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nameOffset, + required int oldImpVersion, + required int currentVersion, + required int importedSymbolCount, + required int firstImportedSymbol, + required int options, + required int reservedA, + required int reservedB, + }) => $allocator() + ..ref.nameOffset = nameOffset + ..ref.oldImpVersion = oldImpVersion + ..ref.currentVersion = currentVersion + ..ref.importedSymbolCount = importedSymbolCount + ..ref.firstImportedSymbol = firstImportedSymbol + ..ref.options = options + ..ref.reservedA = reservedA + ..ref.reservedB = reservedB; +} + +@ffi.Packed(2) +final class PEFImportedSymbol extends ffi.Struct { + @UInt32() + external int classAndName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int classAndName, + }) => $allocator()..ref.classAndName = classAndName; +} + +@ffi.Packed(2) +final class PEFLoaderInfoHeader extends ffi.Struct { + @SInt32() + external int mainSection; + + @UInt32() + external int mainOffset; + + @SInt32() + external int initSection; + + @UInt32() + external int initOffset; + + @SInt32() + external int termSection; + + @UInt32() + external int termOffset; + + @UInt32() + external int importedLibraryCount; + + @UInt32() + external int totalImportedSymbolCount; + + @UInt32() + external int relocSectionCount; + + @UInt32() + external int relocInstrOffset; + + @UInt32() + external int loaderStringsOffset; + + @UInt32() + external int exportHashOffset; + + @UInt32() + external int exportHashTablePower; + + @UInt32() + external int exportedSymbolCount; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mainSection, + required int mainOffset, + required int initSection, + required int initOffset, + required int termSection, + required int termOffset, + required int importedLibraryCount, + required int totalImportedSymbolCount, + required int relocSectionCount, + required int relocInstrOffset, + required int loaderStringsOffset, + required int exportHashOffset, + required int exportHashTablePower, + required int exportedSymbolCount, + }) => $allocator() + ..ref.mainSection = mainSection + ..ref.mainOffset = mainOffset + ..ref.initSection = initSection + ..ref.initOffset = initOffset + ..ref.termSection = termSection + ..ref.termOffset = termOffset + ..ref.importedLibraryCount = importedLibraryCount + ..ref.totalImportedSymbolCount = totalImportedSymbolCount + ..ref.relocSectionCount = relocSectionCount + ..ref.relocInstrOffset = relocInstrOffset + ..ref.loaderStringsOffset = loaderStringsOffset + ..ref.exportHashOffset = exportHashOffset + ..ref.exportHashTablePower = exportHashTablePower + ..ref.exportedSymbolCount = exportedSymbolCount; +} + +@ffi.Packed(2) +final class PEFLoaderRelocationHeader extends ffi.Struct { + @UInt16() + external int sectionIndex; + + @UInt16() + external int reservedA; + + @UInt32() + external int relocCount; + + @UInt32() + external int firstRelocOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sectionIndex, + required int reservedA, + required int relocCount, + required int firstRelocOffset, + }) => $allocator() + ..ref.sectionIndex = sectionIndex + ..ref.reservedA = reservedA + ..ref.relocCount = relocCount + ..ref.firstRelocOffset = firstRelocOffset; +} + +typedef PEFRelocChunk = UInt16; + +@ffi.Packed(2) +final class PEFSectionHeader extends ffi.Struct { + @SInt32() + external int nameOffset; + + @UInt32() + external int defaultAddress; + + @UInt32() + external int totalLength; + + @UInt32() + external int unpackedLength; + + @UInt32() + external int containerLength; + + @UInt32() + external int containerOffset; + + @UInt8() + external int sectionKind; + + @UInt8() + external int shareKind; + + @UInt8() + external int alignment; + + @UInt8() + external int reservedA; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nameOffset, + required int defaultAddress, + required int totalLength, + required int unpackedLength, + required int containerLength, + required int containerOffset, + required int sectionKind, + required int shareKind, + required int alignment, + required int reservedA, + }) => $allocator() + ..ref.nameOffset = nameOffset + ..ref.defaultAddress = defaultAddress + ..ref.totalLength = totalLength + ..ref.unpackedLength = unpackedLength + ..ref.containerLength = containerLength + ..ref.containerOffset = containerOffset + ..ref.sectionKind = sectionKind + ..ref.shareKind = shareKind + ..ref.alignment = alignment + ..ref.reservedA = reservedA; +} + +final class PEFSplitHashWord extends ffi.Struct { + @UInt16() + external int nameLength; + + @UInt16() + external int hashValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nameLength, + required int hashValue, + }) => $allocator() + ..ref.nameLength = nameLength + ..ref.hashValue = hashValue; +} + +typedef PMBorderType = UInt16; +typedef PMColorSpaceModel = UInt32; + +enum PMDataFormat { + kPMDataFormatXMLDefault(0), + kPMDataFormatXMLMinimal(1), + kPMDataFormatXMLCompressed(2); + + final int value; + const PMDataFormat(this.value); + + static PMDataFormat fromValue(int value) => switch (value) { + 0 => kPMDataFormatXMLDefault, + 1 => kPMDataFormatXMLMinimal, + 2 => kPMDataFormatXMLCompressed, + _ => throw ArgumentError('Unknown value for PMDataFormat: $value'), + }; +} + +typedef PMDestinationType = UInt16; +typedef PMDuplexMode = UInt32; + +final class PMLanguageInfo extends ffi.Struct { + @ffi.Array.multi([33]) + external ffi.Array level; + + @ffi.Array.multi([33]) + external ffi.Array version; + + @ffi.Array.multi([33]) + external ffi.Array release; +} + +typedef PMLayoutDirection = UInt16; +typedef PMObject = ffi.Pointer; +typedef PMOrientation = UInt16; +typedef PMPPDDomain = UInt16; +typedef PMPageFormat = ffi.Pointer; + +enum PMPageToPaperMappingType { + kPMPageToPaperMappingNone(1), + kPMPageToPaperMappingScaleToFit(2); + + final int value; + const PMPageToPaperMappingType(this.value); + + static PMPageToPaperMappingType fromValue(int value) => switch (value) { + 1 => kPMPageToPaperMappingNone, + 2 => kPMPageToPaperMappingScaleToFit, + _ => throw ArgumentError( + 'Unknown value for PMPageToPaperMappingType: $value', + ), + }; +} + +typedef PMPaper = ffi.Pointer; +typedef PMPaperMargins = PMRect; +typedef PMPaperType = UInt32; +typedef PMPreset = ffi.Pointer; +typedef PMPrintDialogOptionFlags = OptionBits; +typedef PMPrintSession = ffi.Pointer; +typedef PMPrintSettings = ffi.Pointer; +typedef PMPrinter = ffi.Pointer; +typedef PMPrinterState = UInt16; +typedef PMQualityMode = UInt32; + +final class PMRect extends ffi.Struct { + @ffi.Double() + external double top; + + @ffi.Double() + external double left; + + @ffi.Double() + external double bottom; + + @ffi.Double() + external double right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double top, + required double left, + required double bottom, + required double right, + }) => $allocator() + ..ref.top = top + ..ref.left = left + ..ref.bottom = bottom + ..ref.right = right; +} + +final class PMResolution extends ffi.Struct { + @ffi.Double() + external double hRes; + + @ffi.Double() + external double vRes; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double hRes, + required double vRes, + }) => $allocator() + ..ref.hRes = hRes + ..ref.vRes = vRes; +} + +typedef PMScalingAlignment = UInt16; +typedef PMServer = ffi.Pointer; +typedef PRefCon = ffi.Pointer; + +final class ParamBlockRec extends ffi.Opaque {} + +typedef ParmBlkPtr = ffi.Pointer; + +sealed class PasteboardFlavorFlags { + static const kPasteboardFlavorNoFlags = 0; + static const kPasteboardFlavorSenderOnly = 1; + static const kPasteboardFlavorSenderTranslated = 2; + static const kPasteboardFlavorNotSaved = 4; + static const kPasteboardFlavorRequestOnly = 8; + static const kPasteboardFlavorSystemTranslated = 256; + static const kPasteboardFlavorPromised = 512; +} + +typedef PasteboardItemID = ffi.Pointer; +typedef PasteboardPromiseKeeperProcPtr = + ffi.Pointer>; +typedef PasteboardPromiseKeeperProcPtrFunction = + OSStatus Function( + PasteboardRef pasteboard, + PasteboardItemID item, + CFStringRef flavorType, + ffi.Pointer context, + ); +typedef DartPasteboardPromiseKeeperProcPtrFunction = + DartSInt32 Function( + PasteboardRef pasteboard, + PasteboardItemID item, + CFStringRef flavorType, + ffi.Pointer context, + ); +typedef PasteboardRef = ffi.Pointer; + +enum PasteboardStandardLocation { + kPasteboardStandardLocationTrash(1953657704), + kPasteboardStandardLocationUnknown(1970170734); + + final int value; + const PasteboardStandardLocation(this.value); + + static PasteboardStandardLocation fromValue(int value) => switch (value) { + 1953657704 => kPasteboardStandardLocationTrash, + 1970170734 => kPasteboardStandardLocationUnknown, + _ => throw ArgumentError( + 'Unknown value for PasteboardStandardLocation: $value', + ), + }; +} + +sealed class PasteboardSyncFlags { + static const kPasteboardModified = 1; + static const kPasteboardClientIsOwner = 2; +} + +typedef PatHandle = ffi.Pointer; +typedef PatPtr = ffi.Pointer; + +final class Pattern extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array pat; +} + +final class PhonemeDescriptor extends ffi.Struct { + @SInt16() + external int phonemeCount; + + @ffi.Array.multi([1]) + external ffi.Array thePhonemes; +} + +final class PhonemeInfo extends ffi.Struct { + @SInt16() + external int opcode; + + @ffi.Array.multi([16]) + external ffi.Array phStr; + + @ffi.Array.multi([32]) + external ffi.Array exampleStr; + + @SInt16() + external int hiliteStart; + + @SInt16() + external int hiliteEnd; +} + +typedef PhysicalAddress = ffi.Pointer; +typedef PicHandle = ffi.Pointer; +typedef PicPtr = ffi.Pointer; + +final class Picture extends ffi.Struct { + @ffi.Short() + external int picSize; + + external Rect picFrame; +} + +@ffi.Packed(2) +final class PixMap extends ffi.Struct { + external Ptr baseAddr; + + @ffi.Short() + external int rowBytes; + + external Rect bounds; + + @ffi.Short() + external int pmVersion; + + @ffi.Short() + external int packType; + + @SInt32() + external int packSize; + + @Fixed() + external int hRes; + + @Fixed() + external int vRes; + + @ffi.Short() + external int pixelType; + + @ffi.Short() + external int pixelSize; + + @ffi.Short() + external int cmpCount; + + @ffi.Short() + external int cmpSize; + + @OSType() + external int pixelFormat; + + external CTabHandle pmTable; + + external ffi.Pointer pmExt; +} + +typedef PixMapHandle = ffi.Pointer; +typedef PixMapPtr = ffi.Pointer; + +@ffi.Packed(2) +final class PixPat extends ffi.Struct { + @ffi.Short() + external int patType; + + external PixMapHandle patMap; + + external Handle patData; + + external Handle patXData; + + @ffi.Short() + external int patXValid; + + external Handle patXMap; + + external Pattern pat1Data; +} + +typedef PixPatHandle = ffi.Pointer; +typedef PixPatPtr = ffi.Pointer; +typedef PlotIconRefFlags = UInt32; + +final class Point extends ffi.Struct { + @ffi.Short() + external int v; + + @ffi.Short() + external int h; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + required int h, + }) => $allocator() + ..ref.v = v + ..ref.h = h; +} + +typedef PointPtr = ffi.Pointer; +typedef PolyHandle = ffi.Pointer; +typedef PolyPtr = ffi.Pointer; +typedef Polygon = MacPolygon; +typedef PrinterStatusOpcode = SInt32; +typedef ProcHandle = ffi.Pointer; +typedef ProcInfoType = ffi.UnsignedLong; +typedef DartProcInfoType = int; +typedef ProcPtr = ffi.Pointer>; +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef ProcessApplicationTransformState = UInt32; + +@ffi.Packed(2) +final class ProcessInfoExtendedRec extends ffi.Struct { + @UInt32() + external int processInfoLength; + + external StringPtr processName; + + external ProcessSerialNumber processNumber; + + @UInt32() + external int processType; + + @OSType() + external int processSignature; + + @UInt32() + external int processMode; + + external Ptr processLocation; + + @UInt32() + external int processSize; + + @UInt32() + external int processFreeMem; + + external ProcessSerialNumber processLauncher; + + @UInt32() + external int processLaunchDate; + + @UInt32() + external int processActiveTime; + + external FSRefPtr processAppRef; + + @UInt32() + external int processTempMemTotal; + + @UInt32() + external int processPurgeableTempMemTotal; +} + +typedef ProcessInfoExtendedRecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class ProcessInfoRec extends ffi.Struct { + @UInt32() + external int processInfoLength; + + external StringPtr processName; + + external ProcessSerialNumber processNumber; + + @UInt32() + external int processType; + + @OSType() + external int processSignature; + + @UInt32() + external int processMode; + + external Ptr processLocation; + + @UInt32() + external int processSize; + + @UInt32() + external int processFreeMem; + + external ProcessSerialNumber processLauncher; + + @UInt32() + external int processLaunchDate; + + @UInt32() + external int processActiveTime; + + external FSRefPtr processAppRef; +} + +typedef ProcessInfoRecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class ProcessSerialNumber extends ffi.Struct { + @UInt32() + external int highLongOfPSN; + + @UInt32() + external int lowLongOfPSN; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int highLongOfPSN, + required int lowLongOfPSN, + }) => $allocator() + ..ref.highLongOfPSN = highLongOfPSN + ..ref.lowLongOfPSN = lowLongOfPSN; +} + +typedef ProcessSerialNumberPtr = ffi.Pointer; +typedef PropCharProperties = UInt16; + +final class PropLookupSegment extends ffi.Struct { + @UInt16() + external int lastGlyph; + + @UInt16() + external int firstGlyph; + + @UInt16() + external int value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lastGlyph, + required int firstGlyph, + required int value, + }) => $allocator() + ..ref.lastGlyph = lastGlyph + ..ref.firstGlyph = firstGlyph + ..ref.value = value; +} + +final class PropLookupSingle extends ffi.Struct { + @UInt16() + external int glyph; + + @PropCharProperties() + external int props; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int glyph, + required int props, + }) => $allocator() + ..ref.glyph = glyph + ..ref.props = props; +} + +@ffi.Packed(2) +final class PropTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt16() + external int format; + + @PropCharProperties() + external int defaultProps; + + external SFNTLookupTable lookup; +} + +typedef Ptr = ffi.Pointer; +typedef QDArcProcPtr = ffi.Pointer>; +typedef QDArcProcPtrFunction = + ffi.Void Function( + GrafVerb verb, + ffi.Pointer r, + ffi.Short startAngle, + ffi.Short arcAngle, + ); +typedef DartQDArcProcPtrFunction = + void Function( + DartSInt8 verb, + ffi.Pointer r, + int startAngle, + int arcAngle, + ); +typedef QDArcUPP = QDArcProcPtr; +typedef QDBitsProcPtr = ffi.Pointer>; +typedef QDBitsProcPtrFunction = + ffi.Void Function( + ffi.Pointer srcBits, + ffi.Pointer srcRect, + ffi.Pointer dstRect, + ffi.Short mode, + RgnHandle maskRgn, + ); +typedef DartQDBitsProcPtrFunction = + void Function( + ffi.Pointer srcBits, + ffi.Pointer srcRect, + ffi.Pointer dstRect, + int mode, + RgnHandle maskRgn, + ); +typedef QDBitsUPP = QDBitsProcPtr; +typedef QDCommentProcPtr = + ffi.Pointer>; +typedef QDCommentProcPtrFunction = + ffi.Void Function(ffi.Short kind, ffi.Short dataSize, Handle dataHandle); +typedef DartQDCommentProcPtrFunction = + void Function(int kind, int dataSize, Handle dataHandle); +typedef QDCommentUPP = QDCommentProcPtr; +typedef QDErr = ffi.Short; +typedef DartQDErr = int; +typedef QDGetPicProcPtr = + ffi.Pointer>; +typedef QDGetPicProcPtrFunction = + ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); +typedef DartQDGetPicProcPtrFunction = + void Function(ffi.Pointer dataPtr, int byteCount); +typedef QDGetPicUPP = QDGetPicProcPtr; +typedef QDJShieldCursorProcPtr = + ffi.Pointer>; +typedef QDJShieldCursorProcPtrFunction = + ffi.Void Function( + ffi.Short left, + ffi.Short top, + ffi.Short right, + ffi.Short bottom, + ); +typedef DartQDJShieldCursorProcPtrFunction = + void Function(int left, int top, int right, int bottom); +typedef QDJShieldCursorUPP = QDJShieldCursorProcPtr; +typedef QDLineProcPtr = ffi.Pointer>; +typedef QDLineProcPtrFunction = ffi.Void Function(Point newPt); +typedef DartQDLineProcPtrFunction = void Function(Point newPt); +typedef QDLineUPP = QDLineProcPtr; +typedef QDOpcodeProcPtr = + ffi.Pointer>; +typedef QDOpcodeProcPtrFunction = + ffi.Void Function( + ffi.Pointer fromRect, + ffi.Pointer toRect, + UInt16 opcode, + SInt16 version, + ); +typedef DartQDOpcodeProcPtrFunction = + void Function( + ffi.Pointer fromRect, + ffi.Pointer toRect, + DartUInt16 opcode, + DartSInt16 version, + ); +typedef QDOpcodeUPP = QDOpcodeProcPtr; +typedef QDOvalProcPtr = ffi.Pointer>; +typedef QDOvalProcPtrFunction = + ffi.Void Function(GrafVerb verb, ffi.Pointer r); +typedef DartQDOvalProcPtrFunction = + void Function(DartSInt8 verb, ffi.Pointer r); +typedef QDOvalUPP = QDOvalProcPtr; +typedef QDPolyProcPtr = ffi.Pointer>; +typedef QDPolyProcPtrFunction = + ffi.Void Function(GrafVerb verb, PolyHandle poly); +typedef DartQDPolyProcPtrFunction = + void Function(DartSInt8 verb, PolyHandle poly); +typedef QDPolyUPP = QDPolyProcPtr; +typedef QDPrinterStatusProcPtr = + ffi.Pointer>; +typedef QDPrinterStatusProcPtrFunction = + OSStatus Function( + PrinterStatusOpcode opcode, + CGrafPtr currentPort, + ffi.Pointer printerStatus, + ); +typedef DartQDPrinterStatusProcPtrFunction = + DartSInt32 Function( + DartSInt32 opcode, + CGrafPtr currentPort, + ffi.Pointer printerStatus, + ); +typedef QDPrinterStatusUPP = QDPrinterStatusProcPtr; +typedef QDPutPicProcPtr = + ffi.Pointer>; +typedef QDPutPicProcPtrFunction = + ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); +typedef DartQDPutPicProcPtrFunction = + void Function(ffi.Pointer dataPtr, int byteCount); +typedef QDPutPicUPP = QDPutPicProcPtr; +typedef QDRRectProcPtr = + ffi.Pointer>; +typedef QDRRectProcPtrFunction = + ffi.Void Function( + GrafVerb verb, + ffi.Pointer r, + ffi.Short ovalWidth, + ffi.Short ovalHeight, + ); +typedef DartQDRRectProcPtrFunction = + void Function( + DartSInt8 verb, + ffi.Pointer r, + int ovalWidth, + int ovalHeight, + ); +typedef QDRRectUPP = QDRRectProcPtr; +typedef QDRectProcPtr = ffi.Pointer>; +typedef QDRectProcPtrFunction = + ffi.Void Function(GrafVerb verb, ffi.Pointer r); +typedef DartQDRectProcPtrFunction = + void Function(DartSInt8 verb, ffi.Pointer r); +typedef QDRectUPP = QDRectProcPtr; +typedef QDRegionParseDirection = SInt32; +typedef QDRgnProcPtr = ffi.Pointer>; +typedef QDRgnProcPtrFunction = ffi.Void Function(GrafVerb verb, RgnHandle rgn); +typedef DartQDRgnProcPtrFunction = void Function(DartSInt8 verb, RgnHandle rgn); +typedef QDRgnUPP = QDRgnProcPtr; +typedef QDStdGlyphsProcPtr = + ffi.Pointer>; +typedef QDStdGlyphsProcPtrFunction = + OSStatus Function(ffi.Pointer dataStream, ByteCount size); +typedef DartQDStdGlyphsProcPtrFunction = + DartSInt32 Function(ffi.Pointer dataStream, DartByteCount size); +typedef QDStdGlyphsUPP = QDStdGlyphsProcPtr; +typedef QDTextProcPtr = ffi.Pointer>; +typedef QDTextProcPtrFunction = + ffi.Void Function( + ffi.Short byteCount, + ffi.Pointer textBuf, + Point numer, + Point denom, + ); +typedef DartQDTextProcPtrFunction = + void Function( + int byteCount, + ffi.Pointer textBuf, + Point numer, + Point denom, + ); +typedef QDTextUPP = QDTextProcPtr; +typedef QDTxMeasProcPtr = + ffi.Pointer>; +typedef QDTxMeasProcPtrFunction = + ffi.Short Function( + ffi.Short byteCount, + ffi.Pointer textAddr, + ffi.Pointer numer, + ffi.Pointer denom, + ffi.Pointer info, + ); +typedef DartQDTxMeasProcPtrFunction = + int Function( + int byteCount, + ffi.Pointer textAddr, + ffi.Pointer numer, + ffi.Pointer denom, + ffi.Pointer info, + ); +typedef QDTxMeasUPP = QDTxMeasProcPtr; + +@ffi.Packed(2) +final class QElem extends ffi.Struct { + external ffi.Pointer qLink; + + @ffi.Short() + external int qType; + + @ffi.Array.multi([1]) + external ffi.Array qData; +} + +typedef QElemPtr = ffi.Pointer; + +final class QHdr extends ffi.Opaque {} + +typedef QHdrPtr = ffi.Pointer; +typedef QTypes = SignedByte; +typedef RDFlagsType = UInt8; + +final class RGBColor extends ffi.Struct { + @ffi.UnsignedShort() + external int red; + + @ffi.UnsignedShort() + external int green; + + @ffi.UnsignedShort() + external int blue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int red, + required int green, + required int blue, + }) => $allocator() + ..ref.red = red + ..ref.green = green + ..ref.blue = blue; +} + +final class ROTAGlyphEntry extends ffi.Struct { + @SInt16() + external int GlyphIndexOffset; + + @SInt16() + external int HBaselineOffset; + + @SInt16() + external int VBaselineOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int GlyphIndexOffset, + required int HBaselineOffset, + required int VBaselineOffset, + }) => $allocator() + ..ref.GlyphIndexOffset = GlyphIndexOffset + ..ref.HBaselineOffset = HBaselineOffset + ..ref.VBaselineOffset = VBaselineOffset; +} + +@ffi.Packed(2) +final class ROTAHeader extends ffi.Struct { + @Fixed() + external int Version; + + @UInt16() + external int Flags; + + @UInt16() + external int NMasters; + + @UInt16() + external int FirstGlyph; + + @UInt16() + external int LastGlyph; + + external SFNTLookupTable lookup; +} + +typedef RTAType = SInt8; + +final class Rect extends ffi.Struct { + @ffi.Short() + external int top; + + @ffi.Short() + external int left; + + @ffi.Short() + external int bottom; + + @ffi.Short() + external int right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int top, + required int left, + required int bottom, + required int right, + }) => $allocator() + ..ref.top = top + ..ref.left = left + ..ref.bottom = bottom + ..ref.right = right; +} + +typedef RectPtr = ffi.Pointer; +typedef RedrawBackgroundProcPtr = + ffi.Pointer>; +typedef RedrawBackgroundProcPtrFunction = + Boolean Function( + ATSUTextLayout iLayout, + UniCharArrayOffset iTextOffset, + UniCharCount iTextLength, + ffi.Pointer iUnhighlightArea, + ItemCount iTrapezoidCount, + ); +typedef DartRedrawBackgroundProcPtrFunction = + DartBoolean Function( + ATSUTextLayout iLayout, + DartUniCharArrayOffset iTextOffset, + DartUniCharCount iTextLength, + ffi.Pointer iUnhighlightArea, + DartItemCount iTrapezoidCount, + ); +typedef RedrawBackgroundUPP = RedrawBackgroundProcPtr; +typedef RegionCode = SInt16; +typedef RegionToRectsProcPtr = + ffi.Pointer>; +typedef RegionToRectsProcPtrFunction = + OSStatus Function( + UInt16 message, + RgnHandle rgn, + ffi.Pointer rect, + ffi.Pointer refCon, + ); +typedef DartRegionToRectsProcPtrFunction = + DartSInt32 Function( + DartUInt16 message, + RgnHandle rgn, + ffi.Pointer rect, + ffi.Pointer refCon, + ); +typedef RegionToRectsUPP = RegionToRectsProcPtr; +typedef Register68kProcPtr = + ffi.Pointer>; +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + +final class RegisterInformation extends ffi.Struct { + external ffi.Pointer __unusedRegisterInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedRegisterInformationField, + }) => $allocator() + ..ref.__unusedRegisterInformationField = $unusedRegisterInformationField; +} + +final class RegisterInformationPowerPC extends ffi.Struct { + external UnsignedWide R0; + + external UnsignedWide R1; + + external UnsignedWide R2; + + external UnsignedWide R3; + + external UnsignedWide R4; + + external UnsignedWide R5; + + external UnsignedWide R6; + + external UnsignedWide R7; + + external UnsignedWide R8; + + external UnsignedWide R9; + + external UnsignedWide R10; + + external UnsignedWide R11; + + external UnsignedWide R12; + + external UnsignedWide R13; + + external UnsignedWide R14; + + external UnsignedWide R15; + + external UnsignedWide R16; + + external UnsignedWide R17; + + external UnsignedWide R18; + + external UnsignedWide R19; + + external UnsignedWide R20; + + external UnsignedWide R21; + + external UnsignedWide R22; + + external UnsignedWide R23; + + external UnsignedWide R24; + + external UnsignedWide R25; + + external UnsignedWide R26; + + external UnsignedWide R27; + + external UnsignedWide R28; + + external UnsignedWide R29; + + external UnsignedWide R30; + + external UnsignedWide R31; +} + +@ffi.Packed(2) +final class RegisteredComponentInstanceRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef RegisteredComponentInstanceRecordPtr = + ffi.Pointer; + +@ffi.Packed(2) +final class RegisteredComponentRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef RegisteredComponentRecordPtr = ffi.Pointer; +typedef ResAttributes = SInt16; +typedef ResErrProcPtr = ffi.Pointer>; +typedef ResErrProcPtrFunction = ffi.Void Function(OSErr thErr); +typedef DartResErrProcPtrFunction = void Function(DartSInt16 thErr); +typedef ResErrUPP = ResErrProcPtr; +typedef ResFileAttributes = SInt16; +typedef ResFileRefNum = FSIORefNum; +typedef ResID = SInt16; +typedef ResType = FourCharCode; +typedef ResTypePtr = ffi.Pointer; +typedef ResourceCount = SInt16; +typedef ResourceEndianFilterPtr = + ffi.Pointer>; +typedef ResourceEndianFilterPtrFunction = + OSErr Function(Handle theResource, Boolean currentlyNativeEndian); +typedef DartResourceEndianFilterPtrFunction = + DartSInt16 Function(Handle theResource, DartBoolean currentlyNativeEndian); +typedef ResourceIndex = SInt16; + +@ffi.Packed(2) +final class ResourceSpec extends ffi.Struct { + @OSType() + external int resType; + + @SInt16() + external int resID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int resType, + required int resID, + }) => $allocator() + ..ref.resType = resType + ..ref.resID = resID; +} + +typedef RgnHandle = ffi.Pointer; + +@ffi.Packed(2) +final class RoutineDescriptor extends ffi.Struct { + @UInt16() + external int goMixedModeTrap; + + @SInt8() + external int version; + + @RDFlagsType() + external int routineDescriptorFlags; + + @UInt32() + external int reserved1; + + @UInt8() + external int reserved2; + + @UInt8() + external int selectorInfo; + + @UInt16() + external int routineCount; + + @ffi.Array.multi([1]) + external ffi.Array routineRecords; +} + +typedef RoutineDescriptorHandle = ffi.Pointer; +typedef RoutineDescriptorPtr = ffi.Pointer; +typedef RoutineFlagsType = ffi.UnsignedShort; +typedef DartRoutineFlagsType = int; + +@ffi.Packed(2) +final class RoutineRecord extends ffi.Struct { + @ProcInfoType() + external int procInfo; + + @SInt8() + external int reserved1; + + @ISAType() + external int ISA; + + @RoutineFlagsType() + external int routineFlags; + + external ProcPtr procDescriptor; + + @UInt32() + external int reserved2; + + @UInt32() + external int selector; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int procInfo, + required int reserved1, + required int ISA, + required int routineFlags, + required ProcPtr procDescriptor, + required int reserved2, + required int selector, + }) => $allocator() + ..ref.procInfo = procInfo + ..ref.reserved1 = reserved1 + ..ref.ISA = ISA + ..ref.routineFlags = routineFlags + ..ref.procDescriptor = procDescriptor + ..ref.reserved2 = reserved2 + ..ref.selector = selector; +} + +typedef RoutineRecordHandle = ffi.Pointer; +typedef RoutineRecordPtr = ffi.Pointer; + +/// RoutingConfiguration +extension RoutingConfiguration on AVAudioSession { + /// availableInputs + objc.NSArray? get availableInputs { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.availableInputs', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_availableInputs); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// currentRoute + AVAudioSessionRouteDescription get currentRoute { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.currentRoute', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentRoute); + return AVAudioSessionRouteDescription.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// prefersInterruptionOnRouteDisconnect + bool get prefersInterruptionOnRouteDisconnect { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.prefersInterruptionOnRouteDisconnect', + iOS: (false, (17, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635( + _$$ref.pointer, + _sel_prefersInterruptionOnRouteDisconnect, + ); + } + + /// setAggregatedIOPreference:error: + bool setAggregatedIOPreference(AVAudioSessionIOType inIOType) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setAggregatedIOPreference:error:', + iOS: (false, (10, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_vqual9( + _$$ref.pointer, + _sel_setAggregatedIOPreference_error_, + inIOType.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPrefersInterruptionOnRouteDisconnect:error: + bool setPrefersInterruptionOnRouteDisconnect(bool inValue) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPrefersInterruptionOnRouteDisconnect:error:', + iOS: (false, (17, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_164wts2( + _$$ref.pointer, + _sel_setPrefersInterruptionOnRouteDisconnect_error_, + inValue, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setSupportsMultichannelContent:error: + bool setSupportsMultichannelContent(bool inValue) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setSupportsMultichannelContent:error:', + iOS: (false, (15, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_164wts2( + _$$ref.pointer, + _sel_setSupportsMultichannelContent_error_, + inValue, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// supportsMultichannelContent + bool get supportsMultichannelContent { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.supportsMultichannelContent', + iOS: (false, (15, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635( + _$$ref.pointer, + _sel_supportsMultichannelContent, + ); + } +} + +typedef RoutingFlags = UInt32; + +@ffi.Packed(2) +final class RoutingResourceEntry extends ffi.Struct { + @OSType() + external int creator; + + @OSType() + external int fileType; + + @OSType() + external int targetFolder; + + @OSType() + external int destinationFolder; + + @OSType() + external int reservedField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int creator, + required int fileType, + required int targetFolder, + required int destinationFolder, + required int reservedField, + }) => $allocator() + ..ref.creator = creator + ..ref.fileType = fileType + ..ref.targetFolder = targetFolder + ..ref.destinationFolder = destinationFolder + ..ref.reservedField = reservedField; +} + +typedef RoutingResourceHandle = ffi.Pointer; +typedef RoutingResourcePtr = ffi.Pointer; +typedef RsrcChainLocation = SInt16; + +final class RuleBasedTrslRecord extends ffi.Struct { + @ffi.Short() + external int sourceType; + + @ffi.Short() + external int targetType; + + @ffi.Short() + external int formatNumber; + + @ffi.Short() + external int propertyFlag; + + @ffi.Short() + external int numberOfRules; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sourceType, + required int targetType, + required int formatNumber, + required int propertyFlag, + required int numberOfRules, + }) => $allocator() + ..ref.sourceType = sourceType + ..ref.targetType = targetType + ..ref.formatNumber = formatNumber + ..ref.propertyFlag = propertyFlag + ..ref.numberOfRules = numberOfRules; +} + +final class SFNTLookupArrayHeader extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array lookupValues; +} + +final class SFNTLookupBinarySearchHeader extends ffi.Struct { + @UInt16() + external int unitSize; + + @UInt16() + external int nUnits; + + @UInt16() + external int searchRange; + + @UInt16() + external int entrySelector; + + @UInt16() + external int rangeShift; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int unitSize, + required int nUnits, + required int searchRange, + required int entrySelector, + required int rangeShift, + }) => $allocator() + ..ref.unitSize = unitSize + ..ref.nUnits = nUnits + ..ref.searchRange = searchRange + ..ref.entrySelector = entrySelector + ..ref.rangeShift = rangeShift; +} + +final class SFNTLookupFormatSpecificHeader extends ffi.Union { + external SFNTLookupArrayHeader theArray; + + external SFNTLookupSegmentHeader segment; + + external SFNTLookupSingleHeader single; + + external SFNTLookupTrimmedArrayHeader trimmedArray; + + external SFNTLookupVectorHeader vector; +} + +typedef SFNTLookupKind = UInt32; +typedef SFNTLookupOffset = UInt16; + +final class SFNTLookupSegment extends ffi.Struct { + @UInt16() + external int lastGlyph; + + @UInt16() + external int firstGlyph; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +final class SFNTLookupSegmentHeader extends ffi.Struct { + external SFNTLookupBinarySearchHeader binSearch; + + @ffi.Array.multi([1]) + external ffi.Array segments; +} + +final class SFNTLookupSingle extends ffi.Struct { + @UInt16() + external int glyph; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +final class SFNTLookupSingleHeader extends ffi.Struct { + external SFNTLookupBinarySearchHeader binSearch; + + @ffi.Array.multi([1]) + external ffi.Array entries; +} + +final class SFNTLookupTable extends ffi.Struct { + @SFNTLookupTableFormat() + external int format; + + external SFNTLookupFormatSpecificHeader fsHeader; +} + +typedef SFNTLookupTableFormat = UInt16; +typedef SFNTLookupTableHandle = ffi.Pointer; +typedef SFNTLookupTablePtr = ffi.Pointer; + +final class SFNTLookupTrimmedArrayHeader extends ffi.Struct { + @UInt16() + external int firstGlyph; + + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array valueArray; +} + +typedef SFNTLookupValue = UInt16; + +final class SFNTLookupVectorHeader extends ffi.Struct { + @UInt16() + external int valueSize; + + @UInt16() + external int firstGlyph; + + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array values; +} + +typedef SInt = ffi.Int; +typedef DartSInt = int; +typedef SInt16 = ffi.Short; +typedef DartSInt16 = int; +typedef SInt32 = ffi.Int; +typedef DartSInt32 = int; +typedef SInt64 = ffi.LongLong; +typedef DartSInt64 = int; +typedef SInt8 = ffi.SignedChar; +typedef DartSInt8 = int; +typedef SKDocumentID = CFIndex; + +enum SKDocumentIndexState { + kSKDocumentStateNotIndexed(0), + kSKDocumentStateIndexed(1), + kSKDocumentStateAddPending(2), + kSKDocumentStateDeletePending(3); + + final int value; + const SKDocumentIndexState(this.value); + + static SKDocumentIndexState fromValue(int value) => switch (value) { + 0 => kSKDocumentStateNotIndexed, + 1 => kSKDocumentStateIndexed, + 2 => kSKDocumentStateAddPending, + 3 => kSKDocumentStateDeletePending, + _ => throw ArgumentError('Unknown value for SKDocumentIndexState: $value'), + }; +} + +typedef SKDocumentRef = CFTypeRef; +typedef SKIndexDocumentIteratorRef = ffi.Pointer<__SKIndexDocumentIterator>; +typedef SKIndexRef = ffi.Pointer<__SKIndex>; + +enum SKIndexType { + kSKIndexUnknown(0), + kSKIndexInverted(1), + kSKIndexVector(2), + kSKIndexInvertedVector(3); + + final int value; + const SKIndexType(this.value); + + static SKIndexType fromValue(int value) => switch (value) { + 0 => kSKIndexUnknown, + 1 => kSKIndexInverted, + 2 => kSKIndexVector, + 3 => kSKIndexInvertedVector, + _ => throw ArgumentError('Unknown value for SKIndexType: $value'), + }; +} + +typedef SKSearchGroupRef = ffi.Pointer<__SKSearchGroup>; +typedef SKSearchOptions = UInt32; +typedef SKSearchRef = ffi.Pointer<__SKSearch>; +typedef SKSearchResultsFilterCallBack = + ffi.Pointer>; +typedef SKSearchResultsFilterCallBackFunction = + Boolean Function( + SKIndexRef inIndex, + SKDocumentRef inDocument, + ffi.Pointer inContext, + ); +typedef DartSKSearchResultsFilterCallBackFunction = + DartBoolean Function( + SKIndexRef inIndex, + SKDocumentRef inDocument, + ffi.Pointer inContext, + ); +typedef SKSearchResultsRef = ffi.Pointer<__SKSearchResults>; + +enum SKSearchType { + kSKSearchRanked(0), + kSKSearchBooleanRanked(1), + kSKSearchRequiredRanked(2), + kSKSearchPrefixRanked(3); + + final int value; + const SKSearchType(this.value); + + static SKSearchType fromValue(int value) => switch (value) { + 0 => kSKSearchRanked, + 1 => kSKSearchBooleanRanked, + 2 => kSKSearchRequiredRanked, + 3 => kSKSearchPrefixRanked, + _ => throw ArgumentError('Unknown value for SKSearchType: $value'), + }; +} + +typedef SKSummaryRef = ffi.Pointer<__SKSummary>; + +final class SMPTETime extends ffi.Struct { + @SInt16() + external int mSubframes; + + @SInt16() + external int mSubframeDivisor; + + @UInt32() + external int mCounter; + + @UInt32() + external int mTypeAsInt; + + SMPTETimeType get mType => SMPTETimeType.fromValue(mTypeAsInt); + set mType(SMPTETimeType value) => mTypeAsInt = value.value; + + @UInt32() + external int mFlags; + + @SInt16() + external int mHours; + + @SInt16() + external int mMinutes; + + @SInt16() + external int mSeconds; + + @SInt16() + external int mFrames; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mSubframes, + required int mSubframeDivisor, + required int mCounter, + required SMPTETimeType mType, + required int mFlags, + required int mHours, + required int mMinutes, + required int mSeconds, + required int mFrames, + }) => $allocator() + ..ref.mSubframes = mSubframes + ..ref.mSubframeDivisor = mSubframeDivisor + ..ref.mCounter = mCounter + ..ref.mType = mType + ..ref.mFlags = mFlags + ..ref.mHours = mHours + ..ref.mMinutes = mMinutes + ..ref.mSeconds = mSeconds + ..ref.mFrames = mFrames; +} + +sealed class SMPTETimeFlags { + static const kSMPTETimeUnknown = 0; + static const kSMPTETimeValid = 1; + static const kSMPTETimeRunning = 2; +} + +enum SMPTETimeType { + kSMPTETimeType24(0), + kSMPTETimeType25(1), + kSMPTETimeType30Drop(2), + kSMPTETimeType30(3), + kSMPTETimeType2997(4), + kSMPTETimeType2997Drop(5), + kSMPTETimeType60(6), + kSMPTETimeType5994(7), + kSMPTETimeType60Drop(8), + kSMPTETimeType5994Drop(9), + kSMPTETimeType50(10), + kSMPTETimeType2398(11); + + final int value; + const SMPTETimeType(this.value); + + static SMPTETimeType fromValue(int value) => switch (value) { + 0 => kSMPTETimeType24, + 1 => kSMPTETimeType25, + 2 => kSMPTETimeType30Drop, + 3 => kSMPTETimeType30, + 4 => kSMPTETimeType2997, + 5 => kSMPTETimeType2997Drop, + 6 => kSMPTETimeType60, + 7 => kSMPTETimeType5994, + 8 => kSMPTETimeType60Drop, + 9 => kSMPTETimeType5994Drop, + 10 => kSMPTETimeType50, + 11 => kSMPTETimeType2398, + _ => throw ArgumentError('Unknown value for SMPTETimeType: $value'), + }; +} + +typedef SRefCon = ffi.Pointer; + +enum SSLAuthenticate { + kNeverAuthenticate(0), + kAlwaysAuthenticate(1), + kTryAuthenticate(2); + + final int value; + const SSLAuthenticate(this.value); + + static SSLAuthenticate fromValue(int value) => switch (value) { + 0 => kNeverAuthenticate, + 1 => kAlwaysAuthenticate, + 2 => kTryAuthenticate, + _ => throw ArgumentError('Unknown value for SSLAuthenticate: $value'), + }; +} + +typedef SSLCipherSuite = ffi.Uint16; +typedef DartSSLCipherSuite = int; + +enum SSLCiphersuiteGroup { + kSSLCiphersuiteGroupDefault(0), + kSSLCiphersuiteGroupCompatibility(1), + kSSLCiphersuiteGroupLegacy(2), + kSSLCiphersuiteGroupATS(3), + kSSLCiphersuiteGroupATSCompatibility(4); + + final int value; + const SSLCiphersuiteGroup(this.value); + + static SSLCiphersuiteGroup fromValue(int value) => switch (value) { + 0 => kSSLCiphersuiteGroupDefault, + 1 => kSSLCiphersuiteGroupCompatibility, + 2 => kSSLCiphersuiteGroupLegacy, + 3 => kSSLCiphersuiteGroupATS, + 4 => kSSLCiphersuiteGroupATSCompatibility, + _ => throw ArgumentError('Unknown value for SSLCiphersuiteGroup: $value'), + }; +} + +enum SSLClientCertificateState { + kSSLClientCertNone(0), + kSSLClientCertRequested(1), + kSSLClientCertSent(2), + kSSLClientCertRejected(3); + + final int value; + const SSLClientCertificateState(this.value); + + static SSLClientCertificateState fromValue(int value) => switch (value) { + 0 => kSSLClientCertNone, + 1 => kSSLClientCertRequested, + 2 => kSSLClientCertSent, + 3 => kSSLClientCertRejected, + _ => throw ArgumentError( + 'Unknown value for SSLClientCertificateState: $value', + ), + }; +} + +typedef SSLConnectionRef = ffi.Pointer; + +enum SSLConnectionType { + kSSLStreamType(0), + kSSLDatagramType(1); + + final int value; + const SSLConnectionType(this.value); + + static SSLConnectionType fromValue(int value) => switch (value) { + 0 => kSSLStreamType, + 1 => kSSLDatagramType, + _ => throw ArgumentError('Unknown value for SSLConnectionType: $value'), + }; +} + +final class SSLContext extends ffi.Opaque {} + +typedef SSLContextRef = ffi.Pointer; + +enum SSLProtocol { + kSSLProtocolUnknown(0), + kTLSProtocol1(4), + kTLSProtocol11(7), + kTLSProtocol12(8), + kDTLSProtocol1(9), + kTLSProtocol13(10), + kDTLSProtocol12(11), + kTLSProtocolMaxSupported(999), + kSSLProtocol2(1), + kSSLProtocol3(2), + kSSLProtocol3Only(3), + kTLSProtocol1Only(5), + kSSLProtocolAll(6); + + final int value; + const SSLProtocol(this.value); + + static SSLProtocol fromValue(int value) => switch (value) { + 0 => kSSLProtocolUnknown, + 4 => kTLSProtocol1, + 7 => kTLSProtocol11, + 8 => kTLSProtocol12, + 9 => kDTLSProtocol1, + 10 => kTLSProtocol13, + 11 => kDTLSProtocol12, + 999 => kTLSProtocolMaxSupported, + 1 => kSSLProtocol2, + 2 => kSSLProtocol3, + 3 => kSSLProtocol3Only, + 5 => kTLSProtocol1Only, + 6 => kSSLProtocolAll, + _ => throw ArgumentError('Unknown value for SSLProtocol: $value'), + }; +} + +enum SSLProtocolSide { + kSSLServerSide(0), + kSSLClientSide(1); + + final int value; + const SSLProtocolSide(this.value); + + static SSLProtocolSide fromValue(int value) => switch (value) { + 0 => kSSLServerSide, + 1 => kSSLClientSide, + _ => throw ArgumentError('Unknown value for SSLProtocolSide: $value'), + }; +} + +typedef SSLReadFunc = ffi.Pointer>; +typedef SSLReadFuncFunction = + OSStatus Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLReadFuncFunction = + DartSInt32 Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); + +enum SSLSessionOption { + kSSLSessionOptionBreakOnServerAuth(0), + kSSLSessionOptionBreakOnCertRequested(1), + kSSLSessionOptionBreakOnClientAuth(2), + kSSLSessionOptionFalseStart(3), + kSSLSessionOptionSendOneByteRecord(4), + kSSLSessionOptionAllowServerIdentityChange(5), + kSSLSessionOptionFallback(6), + kSSLSessionOptionBreakOnClientHello(7), + kSSLSessionOptionAllowRenegotiation(8), + kSSLSessionOptionEnableSessionTickets(9); + + final int value; + const SSLSessionOption(this.value); + + static SSLSessionOption fromValue(int value) => switch (value) { + 0 => kSSLSessionOptionBreakOnServerAuth, + 1 => kSSLSessionOptionBreakOnCertRequested, + 2 => kSSLSessionOptionBreakOnClientAuth, + 3 => kSSLSessionOptionFalseStart, + 4 => kSSLSessionOptionSendOneByteRecord, + 5 => kSSLSessionOptionAllowServerIdentityChange, + 6 => kSSLSessionOptionFallback, + 7 => kSSLSessionOptionBreakOnClientHello, + 8 => kSSLSessionOptionAllowRenegotiation, + 9 => kSSLSessionOptionEnableSessionTickets, + _ => throw ArgumentError('Unknown value for SSLSessionOption: $value'), + }; +} + +enum SSLSessionState { + kSSLIdle(0), + kSSLHandshake(1), + kSSLConnected(2), + kSSLClosed(3), + kSSLAborted(4); + + final int value; + const SSLSessionState(this.value); + + static SSLSessionState fromValue(int value) => switch (value) { + 0 => kSSLIdle, + 1 => kSSLHandshake, + 2 => kSSLConnected, + 3 => kSSLClosed, + 4 => kSSLAborted, + _ => throw ArgumentError('Unknown value for SSLSessionState: $value'), + }; +} + +typedef SSLWriteFunc = ffi.Pointer>; +typedef SSLWriteFuncFunction = + OSStatus Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLWriteFuncFunction = + DartSInt32 Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); + +const int SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 17; + +const int SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; + +const int SSL_DHE_DSS_WITH_DES_CBC_SHA = 18; + +const int SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 20; + +const int SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; + +const int SSL_DHE_RSA_WITH_DES_CBC_SHA = 21; + +const int SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 11; + +const int SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; + +const int SSL_DH_DSS_WITH_DES_CBC_SHA = 12; + +const int SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 14; + +const int SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; + +const int SSL_DH_RSA_WITH_DES_CBC_SHA = 15; + +const int SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA = 25; + +const int SSL_DH_anon_EXPORT_WITH_RC4_40_MD5 = 23; + +const int SSL_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; + +const int SSL_DH_anon_WITH_DES_CBC_SHA = 26; + +const int SSL_DH_anon_WITH_RC4_128_MD5 = 24; + +const int SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA = 29; + +const int SSL_FORTEZZA_DMS_WITH_NULL_SHA = 28; + +const int SSL_NO_SUCH_CIPHERSUITE = -1; + +const int SSL_NULL_WITH_NULL_NULL = 0; + +const int SSL_RSA_EXPORT_WITH_DES40_CBC_SHA = 8; + +const int SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 6; + +const int SSL_RSA_EXPORT_WITH_RC4_40_MD5 = 3; + +const int SSL_RSA_WITH_3DES_EDE_CBC_MD5 = -125; + +const int SSL_RSA_WITH_3DES_EDE_CBC_SHA = 10; + +const int SSL_RSA_WITH_DES_CBC_MD5 = -126; + +const int SSL_RSA_WITH_DES_CBC_SHA = 9; + +const int SSL_RSA_WITH_IDEA_CBC_MD5 = -127; + +const int SSL_RSA_WITH_IDEA_CBC_SHA = 7; + +const int SSL_RSA_WITH_NULL_MD5 = 1; + +const int SSL_RSA_WITH_NULL_SHA = 2; + +const int SSL_RSA_WITH_RC2_CBC_MD5 = -128; + +const int SSL_RSA_WITH_RC4_128_MD5 = 4; + +const int SSL_RSA_WITH_RC4_128_SHA = 5; + +typedef STClass = UInt8; + +final class STClassTable extends ffi.Struct { + @UInt16() + external int firstGlyph; + + @UInt16() + external int nGlyphs; + + @ffi.Array.multi([1]) + external ffi.Array classes; +} + +typedef STEntryIndex = UInt8; + +final class STEntryOne extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int offset1; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int offset1, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.offset1 = offset1; +} + +final class STEntryTwo extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int offset1; + + @UInt16() + external int offset2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int offset1, + required int offset2, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.offset1 = offset1 + ..ref.offset2 = offset2; +} + +final class STEntryZero extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags; +} + +final class STHeader extends ffi.Struct { + @UInt8() + external int filler; + + @STClass() + external int nClasses; + + @UInt16() + external int classTableOffset; + + @UInt16() + external int stateArrayOffset; + + @UInt16() + external int entryTableOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int filler, + required int nClasses, + required int classTableOffset, + required int stateArrayOffset, + required int entryTableOffset, + }) => $allocator() + ..ref.filler = filler + ..ref.nClasses = nClasses + ..ref.classTableOffset = classTableOffset + ..ref.stateArrayOffset = stateArrayOffset + ..ref.entryTableOffset = entryTableOffset; +} + +typedef STXClass = UInt16; +typedef STXClassTable = SFNTLookupTable; +typedef STXEntryIndex = UInt16; + +final class STXEntryOne extends ffi.Struct { + @STXStateIndex() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int index1; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int index1, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.index1 = index1; +} + +final class STXEntryTwo extends ffi.Struct { + @STXStateIndex() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int index1; + + @UInt16() + external int index2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int index1, + required int index2, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.index1 = index1 + ..ref.index2 = index2; +} + +final class STXEntryZero extends ffi.Struct { + @STXStateIndex() + external int newState; + + @UInt16() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags; +} + +@ffi.Packed(2) +final class STXHeader extends ffi.Struct { + @UInt32() + external int nClasses; + + @UInt32() + external int classTableOffset; + + @UInt32() + external int stateArrayOffset; + + @UInt32() + external int entryTableOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nClasses, + required int classTableOffset, + required int stateArrayOffset, + required int entryTableOffset, + }) => $allocator() + ..ref.nClasses = nClasses + ..ref.classTableOffset = classTableOffset + ..ref.stateArrayOffset = stateArrayOffset + ..ref.entryTableOffset = entryTableOffset; +} + +typedef STXStateIndex = UInt16; + +@ffi.Packed(2) +final class SchedulerInfoRec extends ffi.Struct { + @UInt32() + external int InfoRecSize; + + @ThreadID() + external int CurrentThreadID; + + @ThreadID() + external int SuggestedThreadID; + + @ThreadID() + external int InterruptedCoopThreadID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int InfoRecSize, + required int CurrentThreadID, + required int SuggestedThreadID, + required int InterruptedCoopThreadID, + }) => $allocator() + ..ref.InfoRecSize = InfoRecSize + ..ref.CurrentThreadID = CurrentThreadID + ..ref.SuggestedThreadID = SuggestedThreadID + ..ref.InterruptedCoopThreadID = InterruptedCoopThreadID; +} + +typedef SchedulerInfoRecPtr = ffi.Pointer; +typedef ScriptCode = SInt16; + +@ffi.Packed(2) +final class ScriptCodeRun extends ffi.Struct { + @ByteOffset() + external int offset; + + @ScriptCode() + external int script; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int script, + }) => $allocator() + ..ref.offset = offset + ..ref.script = script; +} + +typedef ScriptCodeRunPtr = ffi.Pointer; +typedef ScriptTokenType = ffi.Short; +typedef DartScriptTokenType = int; +typedef SecACLRef = ffi.Pointer<__SecACL>; + +sealed class SecAccessControlCreateFlags { + static const kSecAccessControlUserPresence = 1; + static const kSecAccessControlBiometryAny = 2; + static const kSecAccessControlTouchIDAny = 2; + static const kSecAccessControlBiometryCurrentSet = 8; + static const kSecAccessControlTouchIDCurrentSet = 8; + static const kSecAccessControlDevicePasscode = 16; + static const kSecAccessControlWatch = 32; + static const kSecAccessControlCompanion = 32; + static const kSecAccessControlOr = 16384; + static const kSecAccessControlAnd = 32768; + static const kSecAccessControlPrivateKeyUsage = 1073741824; + static const kSecAccessControlApplicationPassword = 2147483648; +} + +typedef SecAccessControlRef = ffi.Pointer<__SecAccessControl>; +typedef SecAccessOwnerType = UInt32; +typedef SecAccessRef = ffi.Pointer<__SecAccess>; + +@Deprecated('SecAsn1 is not supported') +final class SecAsn1AlgId extends ffi.Struct { + external SecAsn1Oid algorithm; + + external SecAsn1Item parameters; +} + +typedef SecAsn1Item = cssm_data; +typedef SecAsn1Oid = cssm_data; + +@Deprecated('SecAsn1 is not supported') +final class SecAsn1PubKeyInfo extends ffi.Struct { + external SecAsn1AlgId algorithm; + + external SecAsn1Item subjectPublicKey; +} + +typedef SecAsn1Template = SecAsn1Template_struct; +typedef SecAsn1TemplateChooser = + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg, + Boolean enc, + ffi.Pointer buf, + ffi.Size len, + ffi.Pointer dest, + ) + >; +typedef SecAsn1TemplateChooserPtr = ffi.Pointer; + +final class SecAsn1Template_struct extends ffi.Struct { + @ffi.Uint32() + external int kind; + + @ffi.Uint32() + external int offset; + + external ffi.Pointer sub; + + @ffi.Uint32() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int kind, + required int offset, + required ffi.Pointer sub, + required int size, + }) => $allocator() + ..ref.kind = kind + ..ref.offset = offset + ..ref.sub = sub + ..ref.size = size; +} + +enum SecAuthenticationType { + kSecAuthenticationTypeNTLM(1835824238), + kSecAuthenticationTypeMSN(1634628461), + kSecAuthenticationTypeDPA(1633775716), + kSecAuthenticationTypeRPA(1633775730), + kSecAuthenticationTypeHTTPBasic(1886680168), + kSecAuthenticationTypeHTTPDigest(1685353576), + kSecAuthenticationTypeHTMLForm(1836216166), + kSecAuthenticationTypeDefault(1953261156), + kSecAuthenticationTypeAny(0); + + final int value; + const SecAuthenticationType(this.value); + + static SecAuthenticationType fromValue(int value) => switch (value) { + 1835824238 => kSecAuthenticationTypeNTLM, + 1634628461 => kSecAuthenticationTypeMSN, + 1633775716 => kSecAuthenticationTypeDPA, + 1633775730 => kSecAuthenticationTypeRPA, + 1886680168 => kSecAuthenticationTypeHTTPBasic, + 1685353576 => kSecAuthenticationTypeHTTPDigest, + 1836216166 => kSecAuthenticationTypeHTMLForm, + 1953261156 => kSecAuthenticationTypeDefault, + 0 => kSecAuthenticationTypeAny, + _ => throw ArgumentError('Unknown value for SecAuthenticationType: $value'), + }; +} + +enum SecCSDigestAlgorithm { + kSecCodeSignatureNoHash(0), + kSecCodeSignatureHashSHA1(1), + kSecCodeSignatureHashSHA256(2), + kSecCodeSignatureHashSHA256Truncated(3), + kSecCodeSignatureHashSHA384(4), + kSecCodeSignatureHashSHA512(5); + + final int value; + const SecCSDigestAlgorithm(this.value); + + static SecCSDigestAlgorithm fromValue(int value) => switch (value) { + 0 => kSecCodeSignatureNoHash, + 1 => kSecCodeSignatureHashSHA1, + 2 => kSecCodeSignatureHashSHA256, + 3 => kSecCodeSignatureHashSHA256Truncated, + 4 => kSecCodeSignatureHashSHA384, + 5 => kSecCodeSignatureHashSHA512, + _ => throw ArgumentError('Unknown value for SecCSDigestAlgorithm: $value'), + }; +} + +sealed class SecCSFlags { + static const kSecCSDefaultFlags = 0; + static const kSecCSConsiderExpiration = -2147483648; + static const kSecCSEnforceRevocationChecks = 1073741824; + static const kSecCSNoNetworkAccess = 536870912; + static const kSecCSReportProgress = 268435456; + static const kSecCSCheckTrustedAnchors = 134217728; + static const kSecCSQuickCheck = 67108864; + static const kSecCSApplyEmbeddedPolicy = 33554432; + static const kSecCSStripDisallowedXattrs = 16777216; + static const kSecCSMatchGuestRequirementInKernel = 8388608; +} + +typedef SecCertificateRef = ffi.Pointer<__SecCertificate>; +typedef SecCodeRef = ffi.Pointer<__SecCode>; + +sealed class SecCodeSignatureFlags { + static const kSecCodeSignatureHost = 1; + static const kSecCodeSignatureAdhoc = 2; + static const kSecCodeSignatureForceHard = 256; + static const kSecCodeSignatureForceKill = 512; + static const kSecCodeSignatureForceExpiration = 1024; + static const kSecCodeSignatureRestrict = 2048; + static const kSecCodeSignatureEnforcement = 4096; + static const kSecCodeSignatureLibraryValidation = 8192; + static const kSecCodeSignatureRuntime = 65536; + static const kSecCodeSignatureLinkerSigned = 131072; +} + +sealed class SecCodeStatus { + static const kSecCodeStatusValid = 1; + static const kSecCodeStatusHard = 256; + static const kSecCodeStatusKill = 512; + static const kSecCodeStatusDebugged = 268435456; + static const kSecCodeStatusPlatform = 67108864; +} + +@Deprecated('No longer supported') +enum SecCredentialType { + kSecCredentialTypeDefault(0), + kSecCredentialTypeWithUI(1), + kSecCredentialTypeNoUI(2); + + final int value; + const SecCredentialType(this.value); + + static SecCredentialType fromValue(int value) => switch (value) { + 0 => kSecCredentialTypeDefault, + 1 => kSecCredentialTypeWithUI, + 2 => kSecCredentialTypeNoUI, + _ => throw ArgumentError('Unknown value for SecCredentialType: $value'), + }; +} + +enum SecExternalFormat { + kSecFormatUnknown(0), + kSecFormatOpenSSL(1), + kSecFormatSSH(2), + kSecFormatBSAFE(3), + kSecFormatRawKey(4), + kSecFormatWrappedPKCS8(5), + kSecFormatWrappedOpenSSL(6), + kSecFormatWrappedSSH(7), + kSecFormatWrappedLSH(8), + kSecFormatX509Cert(9), + kSecFormatPEMSequence(10), + kSecFormatPKCS7(11), + kSecFormatPKCS12(12), + kSecFormatNetscapeCertSequence(13), + kSecFormatSSHv2(14); + + final int value; + const SecExternalFormat(this.value); + + static SecExternalFormat fromValue(int value) => switch (value) { + 0 => kSecFormatUnknown, + 1 => kSecFormatOpenSSL, + 2 => kSecFormatSSH, + 3 => kSecFormatBSAFE, + 4 => kSecFormatRawKey, + 5 => kSecFormatWrappedPKCS8, + 6 => kSecFormatWrappedOpenSSL, + 7 => kSecFormatWrappedSSH, + 8 => kSecFormatWrappedLSH, + 9 => kSecFormatX509Cert, + 10 => kSecFormatPEMSequence, + 11 => kSecFormatPKCS7, + 12 => kSecFormatPKCS12, + 13 => kSecFormatNetscapeCertSequence, + 14 => kSecFormatSSHv2, + _ => throw ArgumentError('Unknown value for SecExternalFormat: $value'), + }; +} + +enum SecExternalItemType { + kSecItemTypeUnknown(0), + kSecItemTypePrivateKey(1), + kSecItemTypePublicKey(2), + kSecItemTypeSessionKey(3), + kSecItemTypeCertificate(4), + kSecItemTypeAggregate(5); + + final int value; + const SecExternalItemType(this.value); + + static SecExternalItemType fromValue(int value) => switch (value) { + 0 => kSecItemTypeUnknown, + 1 => kSecItemTypePrivateKey, + 2 => kSecItemTypePublicKey, + 3 => kSecItemTypeSessionKey, + 4 => kSecItemTypeCertificate, + 5 => kSecItemTypeAggregate, + _ => throw ArgumentError('Unknown value for SecExternalItemType: $value'), + }; +} + +typedef SecGroupTransformRef = CFTypeRef; +typedef SecGuestRef = u_int32_t; +typedef SecIdentityRef = ffi.Pointer<__SecIdentity>; +typedef SecIdentitySearchRef = ffi.Pointer; + +enum SecItemAttr { + kSecCreationDateItemAttr(1667522932), + kSecModDateItemAttr(1835295092), + kSecDescriptionItemAttr(1684370275), + kSecCommentItemAttr(1768123764), + kSecCreatorItemAttr(1668445298), + kSecTypeItemAttr(1954115685), + kSecScriptCodeItemAttr(1935897200), + kSecLabelItemAttr(1818321516), + kSecInvisibleItemAttr(1768846953), + kSecNegativeItemAttr(1852139361), + kSecCustomIconItemAttr(1668641641), + kSecAccountItemAttr(1633903476), + kSecServiceItemAttr(1937138533), + kSecGenericItemAttr(1734700641), + kSecSecurityDomainItemAttr(1935961454), + kSecServerItemAttr(1936881266), + kSecAuthenticationTypeItemAttr(1635023216), + kSecPortItemAttr(1886351988), + kSecPathItemAttr(1885434984), + kSecVolumeItemAttr(1986817381), + kSecAddressItemAttr(1633969266), + kSecSignatureItemAttr(1936943463), + kSecProtocolItemAttr(1886675820), + kSecCertificateType(1668577648), + kSecCertificateEncoding(1667591779), + kSecCrlType(1668445296), + kSecCrlEncoding(1668443747), + kSecAlias(1634494835); + + final int value; + const SecItemAttr(this.value); + + static SecItemAttr fromValue(int value) => switch (value) { + 1667522932 => kSecCreationDateItemAttr, + 1835295092 => kSecModDateItemAttr, + 1684370275 => kSecDescriptionItemAttr, + 1768123764 => kSecCommentItemAttr, + 1668445298 => kSecCreatorItemAttr, + 1954115685 => kSecTypeItemAttr, + 1935897200 => kSecScriptCodeItemAttr, + 1818321516 => kSecLabelItemAttr, + 1768846953 => kSecInvisibleItemAttr, + 1852139361 => kSecNegativeItemAttr, + 1668641641 => kSecCustomIconItemAttr, + 1633903476 => kSecAccountItemAttr, + 1937138533 => kSecServiceItemAttr, + 1734700641 => kSecGenericItemAttr, + 1935961454 => kSecSecurityDomainItemAttr, + 1936881266 => kSecServerItemAttr, + 1635023216 => kSecAuthenticationTypeItemAttr, + 1886351988 => kSecPortItemAttr, + 1885434984 => kSecPathItemAttr, + 1986817381 => kSecVolumeItemAttr, + 1633969266 => kSecAddressItemAttr, + 1936943463 => kSecSignatureItemAttr, + 1886675820 => kSecProtocolItemAttr, + 1668577648 => kSecCertificateType, + 1667591779 => kSecCertificateEncoding, + 1668445296 => kSecCrlType, + 1668443747 => kSecCrlEncoding, + 1634494835 => kSecAlias, + _ => throw ArgumentError('Unknown value for SecItemAttr: $value'), + }; +} + +enum SecItemClass { + kSecInternetPasswordItemClass(1768842612), + kSecGenericPasswordItemClass(1734700656), + kSecAppleSharePasswordItemClass(1634953328), + kSecCertificateItemClass(-2147479552), + kSecPublicKeyItemClass(15), + kSecPrivateKeyItemClass(16), + kSecSymmetricKeyItemClass(17); + + final int value; + const SecItemClass(this.value); + + static SecItemClass fromValue(int value) => switch (value) { + 1768842612 => kSecInternetPasswordItemClass, + 1734700656 => kSecGenericPasswordItemClass, + 1634953328 => kSecAppleSharePasswordItemClass, + -2147479552 => kSecCertificateItemClass, + 15 => kSecPublicKeyItemClass, + 16 => kSecPrivateKeyItemClass, + 17 => kSecSymmetricKeyItemClass, + _ => throw ArgumentError('Unknown value for SecItemClass: $value'), + }; +} + +sealed class SecItemImportExportFlags { + static const kSecItemPemArmour = 1; +} + +final class SecItemImportExportKeyParameters extends ffi.Struct { + @ffi.Uint32() + external int version; + + @ffi.Uint32() + external int flags; + + external CFTypeRef passphrase; + + external CFStringRef alertTitle; + + external CFStringRef alertPrompt; + + external SecAccessRef accessRef; + + external CFArrayRef keyUsage; + + external CFArrayRef keyAttributes; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int flags, + required CFTypeRef passphrase, + required CFStringRef alertTitle, + required CFStringRef alertPrompt, + required SecAccessRef accessRef, + required CFArrayRef keyUsage, + required CFArrayRef keyAttributes, + }) => $allocator() + ..ref.version = version + ..ref.flags = flags + ..ref.passphrase = passphrase + ..ref.alertTitle = alertTitle + ..ref.alertPrompt = alertPrompt + ..ref.accessRef = accessRef + ..ref.keyUsage = keyUsage + ..ref.keyAttributes = keyAttributes; +} + +typedef SecKeyAlgorithm = CFStringRef; +typedef SecKeyGeneratePairBlock = ffi.Pointer; +typedef DartSecKeyGeneratePairBlock = + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >; + +sealed class SecKeyImportExportFlags { + static const kSecKeyImportOnlyOne = 1; + static const kSecKeySecurePassphrase = 2; + static const kSecKeyNoAccessControl = 4; +} + +final class SecKeyImportExportParameters extends ffi.Struct { + @ffi.Uint32() + external int version; + + @ffi.Uint32() + external int flags; + + external CFTypeRef passphrase; + + external CFStringRef alertTitle; + + external CFStringRef alertPrompt; + + external SecAccessRef accessRef; + + @CSSM_KEYUSE() + external int keyUsage; + + @CSSM_KEYATTR_FLAGS() + external int keyAttributes; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int flags, + required CFTypeRef passphrase, + required CFStringRef alertTitle, + required CFStringRef alertPrompt, + required SecAccessRef accessRef, + required int keyUsage, + required int keyAttributes, + }) => $allocator() + ..ref.version = version + ..ref.flags = flags + ..ref.passphrase = passphrase + ..ref.alertTitle = alertTitle + ..ref.alertPrompt = alertPrompt + ..ref.accessRef = accessRef + ..ref.keyUsage = keyUsage + ..ref.keyAttributes = keyAttributes; +} + +typedef SecKeyKeyExchangeParameter = CFStringRef; + +enum SecKeyOperationType { + kSecKeyOperationTypeSign(0), + kSecKeyOperationTypeVerify(1), + kSecKeyOperationTypeEncrypt(2), + kSecKeyOperationTypeDecrypt(3), + kSecKeyOperationTypeKeyExchange(4); + + final int value; + const SecKeyOperationType(this.value); + + static SecKeyOperationType fromValue(int value) => switch (value) { + 0 => kSecKeyOperationTypeSign, + 1 => kSecKeyOperationTypeVerify, + 2 => kSecKeyOperationTypeEncrypt, + 3 => kSecKeyOperationTypeDecrypt, + 4 => kSecKeyOperationTypeKeyExchange, + _ => throw ArgumentError('Unknown value for SecKeyOperationType: $value'), + }; +} + +typedef SecKeyRef = ffi.Pointer<__SecKey>; + +@Deprecated('No longer supported') +enum SecKeySizes { + kSecDefaultKeySize(0), + kSec3DES192(192), + kSecAES128(128), + kSecAES256(256), + kSecp384r1(384), + kSecp521r1(521), + kSecRSAMin(1024), + kSecRSAMax(4096); + + static const kSecAES192 = kSec3DES192; + static const kSecp192r1 = kSec3DES192; + static const kSecp256r1 = kSecAES256; + + final int value; + const SecKeySizes(this.value); + + static SecKeySizes fromValue(int value) => switch (value) { + 0 => kSecDefaultKeySize, + 192 => kSec3DES192, + 128 => kSecAES128, + 256 => kSecAES256, + 384 => kSecp384r1, + 521 => kSecp521r1, + 1024 => kSecRSAMin, + 4096 => kSecRSAMax, + _ => throw ArgumentError('Unknown value for SecKeySizes: $value'), + }; + + @override + String toString() { + if (this == kSec3DES192) + return "SecKeySizes.kSec3DES192, SecKeySizes.kSecAES192, SecKeySizes.kSecp192r1"; + if (this == kSecAES256) + return "SecKeySizes.kSecAES256, SecKeySizes.kSecp256r1"; + return super.toString(); + } +} + +sealed class SecKeyUsage { + static const kSecKeyUsageUnspecified = 0; + static const kSecKeyUsageDigitalSignature = 1; + static const kSecKeyUsageNonRepudiation = 2; + static const kSecKeyUsageContentCommitment = 2; + static const kSecKeyUsageKeyEncipherment = 4; + static const kSecKeyUsageDataEncipherment = 8; + static const kSecKeyUsageKeyAgreement = 16; + static const kSecKeyUsageKeyCertSign = 32; + static const kSecKeyUsageCRLSign = 64; + static const kSecKeyUsageEncipherOnly = 128; + static const kSecKeyUsageDecipherOnly = 256; + static const kSecKeyUsageCritical = -2147483648; + static const kSecKeyUsageAll = 2147483647; +} + +typedef SecKeychainAttrType = OSType; + +final class SecKeychainAttribute extends ffi.Struct { + @SecKeychainAttrType() + external int tag; + + @UInt32() + external int length; + + external ffi.Pointer data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tag, + required int length, + required ffi.Pointer data, + }) => $allocator() + ..ref.tag = tag + ..ref.length = length + ..ref.data = data; +} + +final class SecKeychainAttributeInfo extends ffi.Struct { + @UInt32() + external int count; + + external ffi.Pointer tag; + + external ffi.Pointer format; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required ffi.Pointer tag, + required ffi.Pointer format, + }) => $allocator() + ..ref.count = count + ..ref.tag = tag + ..ref.format = format; +} + +final class SecKeychainAttributeList extends ffi.Struct { + @UInt32() + external int count; + + external ffi.Pointer attr; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required ffi.Pointer attr, + }) => $allocator() + ..ref.count = count + ..ref.attr = attr; +} + +typedef SecKeychainAttributePtr = ffi.Pointer; +typedef SecKeychainCallback = + ffi.Pointer>; +typedef SecKeychainCallbackFunction = + OSStatus Function( + UInt32 keychainEvent, + ffi.Pointer info, + ffi.Pointer context, + ); +typedef DartSecKeychainCallbackFunction = + DartSInt32 Function( + SecKeychainEvent keychainEvent, + ffi.Pointer info, + ffi.Pointer context, + ); + +final class SecKeychainCallbackInfo extends ffi.Struct { + @UInt32() + external int version; + + external SecKeychainItemRef item; + + external SecKeychainRef keychain; + + @pid_t() + external int pid; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required SecKeychainItemRef item, + required SecKeychainRef keychain, + required int pid, + }) => $allocator() + ..ref.version = version + ..ref.item = item + ..ref.keychain = keychain + ..ref.pid = pid; +} + +enum SecKeychainEvent { + kSecLockEvent(1), + kSecUnlockEvent(2), + kSecAddEvent(3), + kSecDeleteEvent(4), + kSecUpdateEvent(5), + kSecPasswordChangedEvent(6), + kSecDefaultChangedEvent(9), + kSecDataAccessEvent(10), + kSecKeychainListChangedEvent(11), + kSecTrustSettingsChangedEvent(12); + + final int value; + const SecKeychainEvent(this.value); + + static SecKeychainEvent fromValue(int value) => switch (value) { + 1 => kSecLockEvent, + 2 => kSecUnlockEvent, + 3 => kSecAddEvent, + 4 => kSecDeleteEvent, + 5 => kSecUpdateEvent, + 6 => kSecPasswordChangedEvent, + 9 => kSecDefaultChangedEvent, + 10 => kSecDataAccessEvent, + 11 => kSecKeychainListChangedEvent, + 12 => kSecTrustSettingsChangedEvent, + _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), + }; +} + +sealed class SecKeychainEventMask { + static const kSecLockEventMask = 2; + static const kSecUnlockEventMask = 4; + static const kSecAddEventMask = 8; + static const kSecDeleteEventMask = 16; + static const kSecUpdateEventMask = 32; + static const kSecPasswordChangedEventMask = 64; + static const kSecDefaultChangedEventMask = 512; + static const kSecDataAccessEventMask = 1024; + static const kSecKeychainListChangedMask = 2048; + static const kSecTrustSettingsChangedEventMask = 4096; + static const kSecEveryEventMask = -1; +} + +typedef SecKeychainItemRef = ffi.Pointer<__SecKeychainItem>; + +sealed class SecKeychainPromptSelector { + static const kSecKeychainPromptRequirePassphase = 1; + static const kSecKeychainPromptUnsigned = 16; + static const kSecKeychainPromptUnsignedAct = 32; + static const kSecKeychainPromptInvalid = 64; + static const kSecKeychainPromptInvalidAct = 128; +} + +typedef SecKeychainRef = ffi.Pointer<__SecKeychain>; +typedef SecKeychainSearchRef = ffi.Pointer<__SecKeychainSearch>; + +final class SecKeychainSettings extends ffi.Struct { + @UInt32() + external int version; + + @Boolean() + external int lockOnSleep; + + @Boolean() + external int useLockInterval; + + @UInt32() + external int lockInterval; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int lockOnSleep, + required int useLockInterval, + required int lockInterval, + }) => $allocator() + ..ref.version = version + ..ref.lockOnSleep = lockOnSleep + ..ref.useLockInterval = useLockInterval + ..ref.lockInterval = lockInterval; +} + +typedef SecKeychainStatus = UInt32; +typedef SecMessageBlock = ffi.Pointer; +typedef DartSecMessageBlock = + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >; + +@Deprecated('Replaced with SecKeyAlgorithm') +sealed class SecPadding { + static const kSecPaddingNone = 0; + static const kSecPaddingPKCS1 = 1; + static const kSecPaddingOAEP = 2; + static const kSecPaddingSigRaw = 16384; + static const kSecPaddingPKCS1MD2 = 32768; + static const kSecPaddingPKCS1MD5 = 32769; + static const kSecPaddingPKCS1SHA1 = 32770; + static const kSecPaddingPKCS1SHA224 = 32771; + static const kSecPaddingPKCS1SHA256 = 32772; + static const kSecPaddingPKCS1SHA384 = 32773; + static const kSecPaddingPKCS1SHA512 = 32774; +} + +typedef SecPasswordRef = ffi.Pointer<__SecPassword>; +typedef SecPolicyRef = ffi.Pointer<__SecPolicy>; +typedef SecPolicySearchRef = ffi.Pointer; + +enum SecPreferencesDomain { + kSecPreferencesDomainUser(0), + kSecPreferencesDomainSystem(1), + kSecPreferencesDomainCommon(2), + kSecPreferencesDomainDynamic(3); + + final int value; + const SecPreferencesDomain(this.value); + + static SecPreferencesDomain fromValue(int value) => switch (value) { + 0 => kSecPreferencesDomainUser, + 1 => kSecPreferencesDomainSystem, + 2 => kSecPreferencesDomainCommon, + 3 => kSecPreferencesDomainDynamic, + _ => throw ArgumentError('Unknown value for SecPreferencesDomain: $value'), + }; +} + +enum SecProtocolType { + kSecProtocolTypeFTP(1718906912), + kSecProtocolTypeFTPAccount(1718906977), + kSecProtocolTypeHTTP(1752462448), + kSecProtocolTypeIRC(1769104160), + kSecProtocolTypeNNTP(1852732528), + kSecProtocolTypePOP3(1886351411), + kSecProtocolTypeSMTP(1936553072), + kSecProtocolTypeSOCKS(1936685088), + kSecProtocolTypeIMAP(1768776048), + kSecProtocolTypeLDAP(1818517872), + kSecProtocolTypeAppleTalk(1635019883), + kSecProtocolTypeAFP(1634103328), + kSecProtocolTypeTelnet(1952803950), + kSecProtocolTypeSSH(1936943136), + kSecProtocolTypeFTPS(1718906995), + kSecProtocolTypeHTTPS(1752461427), + kSecProtocolTypeHTTPProxy(1752461432), + kSecProtocolTypeHTTPSProxy(1752462200), + kSecProtocolTypeFTPProxy(1718907000), + kSecProtocolTypeCIFS(1667851891), + kSecProtocolTypeSMB(1936548384), + kSecProtocolTypeRTSP(1920234352), + kSecProtocolTypeRTSPProxy(1920234360), + kSecProtocolTypeDAAP(1684103536), + kSecProtocolTypeEPPC(1701867619), + kSecProtocolTypeIPP(1768976416), + kSecProtocolTypeNNTPS(1853124723), + kSecProtocolTypeLDAPS(1818521715), + kSecProtocolTypeTelnetS(1952803955), + kSecProtocolTypeIMAPS(1768779891), + kSecProtocolTypeIRCS(1769104243), + kSecProtocolTypePOP3S(1886351475), + kSecProtocolTypeCVSpserver(1668707184), + kSecProtocolTypeSVN(1937141280), + kSecProtocolTypeAny(0); + + final int value; + const SecProtocolType(this.value); + + static SecProtocolType fromValue(int value) => switch (value) { + 1718906912 => kSecProtocolTypeFTP, + 1718906977 => kSecProtocolTypeFTPAccount, + 1752462448 => kSecProtocolTypeHTTP, + 1769104160 => kSecProtocolTypeIRC, + 1852732528 => kSecProtocolTypeNNTP, + 1886351411 => kSecProtocolTypePOP3, + 1936553072 => kSecProtocolTypeSMTP, + 1936685088 => kSecProtocolTypeSOCKS, + 1768776048 => kSecProtocolTypeIMAP, + 1818517872 => kSecProtocolTypeLDAP, + 1635019883 => kSecProtocolTypeAppleTalk, + 1634103328 => kSecProtocolTypeAFP, + 1952803950 => kSecProtocolTypeTelnet, + 1936943136 => kSecProtocolTypeSSH, + 1718906995 => kSecProtocolTypeFTPS, + 1752461427 => kSecProtocolTypeHTTPS, + 1752461432 => kSecProtocolTypeHTTPProxy, + 1752462200 => kSecProtocolTypeHTTPSProxy, + 1718907000 => kSecProtocolTypeFTPProxy, + 1667851891 => kSecProtocolTypeCIFS, + 1936548384 => kSecProtocolTypeSMB, + 1920234352 => kSecProtocolTypeRTSP, + 1920234360 => kSecProtocolTypeRTSPProxy, + 1684103536 => kSecProtocolTypeDAAP, + 1701867619 => kSecProtocolTypeEPPC, + 1768976416 => kSecProtocolTypeIPP, + 1853124723 => kSecProtocolTypeNNTPS, + 1818521715 => kSecProtocolTypeLDAPS, + 1952803955 => kSecProtocolTypeTelnetS, + 1768779891 => kSecProtocolTypeIMAPS, + 1769104243 => kSecProtocolTypeIRCS, + 1886351475 => kSecProtocolTypePOP3S, + 1668707184 => kSecProtocolTypeCVSpserver, + 1937141280 => kSecProtocolTypeSVN, + 0 => kSecProtocolTypeAny, + _ => throw ArgumentError('Unknown value for SecProtocolType: $value'), + }; +} + +typedef SecRandomRef = ffi.Pointer<__SecRandom>; +typedef SecRequirementRef = ffi.Pointer<__SecRequirement>; + +enum SecRequirementType { + kSecHostRequirementType(1), + kSecGuestRequirementType(2), + kSecDesignatedRequirementType(3), + kSecLibraryRequirementType(4), + kSecPluginRequirementType(5), + kSecInvalidRequirementType(6); + + static const kSecRequirementTypeCount = kSecInvalidRequirementType; + + final int value; + const SecRequirementType(this.value); + + static SecRequirementType fromValue(int value) => switch (value) { + 1 => kSecHostRequirementType, + 2 => kSecGuestRequirementType, + 3 => kSecDesignatedRequirementType, + 4 => kSecLibraryRequirementType, + 5 => kSecPluginRequirementType, + 6 => kSecInvalidRequirementType, + _ => throw ArgumentError('Unknown value for SecRequirementType: $value'), + }; + + @override + String toString() { + if (this == kSecInvalidRequirementType) + return "SecRequirementType.kSecInvalidRequirementType, SecRequirementType.kSecRequirementTypeCount"; + return super.toString(); + } +} + +typedef SecStaticCodeRef = ffi.Pointer<__SecCode>; +typedef SecTaskRef = ffi.Pointer<__SecTask>; +typedef SecTransformActionBlock = ffi.Pointer; +typedef DartSecTransformActionBlock = + objc.ObjCBlock Function()>; +typedef SecTransformAttributeActionBlock = ffi.Pointer; +typedef DartSecTransformAttributeActionBlock = + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >; +typedef SecTransformAttributeRef = CFTypeRef; +typedef SecTransformCreateFP = + ffi.Pointer>; +typedef SecTransformCreateFPFunction = + SecTransformInstanceBlock Function( + CFStringRef name, + SecTransformRef newTransform, + SecTransformImplementationRef ref, + ); +typedef DartSecTransformCreateFPFunction = + DartSecTransformInstanceBlock Function( + CFStringRef name, + SecTransformRef newTransform, + SecTransformImplementationRef ref, + ); +typedef SecTransformDataBlock = ffi.Pointer; +typedef DartSecTransformDataBlock = + objc.ObjCBlock Function(ffi.Pointer)>; +typedef SecTransformImplementationRef = + ffi.Pointer; +typedef SecTransformInstanceBlock = ffi.Pointer; +typedef DartSecTransformInstanceBlock = + objc.ObjCBlock Function()>; + +@Deprecated('SecTransform is no longer supported') +enum SecTransformMetaAttributeType { + kSecTransformMetaAttributeValue(0), + kSecTransformMetaAttributeName(1), + kSecTransformMetaAttributeRef(2), + kSecTransformMetaAttributeRequired(3), + kSecTransformMetaAttributeRequiresOutboundConnection(4), + kSecTransformMetaAttributeDeferred(5), + kSecTransformMetaAttributeStream(6), + kSecTransformMetaAttributeCanCycle(7), + kSecTransformMetaAttributeExternalize(8), + kSecTransformMetaAttributeHasOutboundConnections(9), + kSecTransformMetaAttributeHasInboundConnection(10); + + final int value; + const SecTransformMetaAttributeType(this.value); + + static SecTransformMetaAttributeType fromValue(int value) => switch (value) { + 0 => kSecTransformMetaAttributeValue, + 1 => kSecTransformMetaAttributeName, + 2 => kSecTransformMetaAttributeRef, + 3 => kSecTransformMetaAttributeRequired, + 4 => kSecTransformMetaAttributeRequiresOutboundConnection, + 5 => kSecTransformMetaAttributeDeferred, + 6 => kSecTransformMetaAttributeStream, + 7 => kSecTransformMetaAttributeCanCycle, + 8 => kSecTransformMetaAttributeExternalize, + 9 => kSecTransformMetaAttributeHasOutboundConnections, + 10 => kSecTransformMetaAttributeHasInboundConnection, + _ => throw ArgumentError( + 'Unknown value for SecTransformMetaAttributeType: $value', + ), + }; +} + +typedef SecTransformRef = CFTypeRef; +typedef SecTransformStringOrAttributeRef = CFTypeRef; +typedef SecTrustCallback = ffi.Pointer; +typedef DartSecTrustCallback = + objc.ObjCBlock, ffi.Uint32)>; + +sealed class SecTrustOptionFlags { + static const kSecTrustOptionAllowExpired = 1; + static const kSecTrustOptionLeafIsCA = 2; + static const kSecTrustOptionFetchIssuerFromNet = 4; + static const kSecTrustOptionAllowExpiredRoot = 8; + static const kSecTrustOptionRequireRevPerCert = 16; + static const kSecTrustOptionUseTrustSettings = 32; + static const kSecTrustOptionImplicitAnchors = 64; +} + +typedef SecTrustRef = ffi.Pointer<__SecTrust>; + +enum SecTrustResultType { + kSecTrustResultInvalid(0), + kSecTrustResultProceed(1), + kSecTrustResultConfirm(2), + kSecTrustResultDeny(3), + kSecTrustResultUnspecified(4), + kSecTrustResultRecoverableTrustFailure(5), + kSecTrustResultFatalTrustFailure(6), + kSecTrustResultOtherError(7); + + final int value; + const SecTrustResultType(this.value); + + static SecTrustResultType fromValue(int value) => switch (value) { + 0 => kSecTrustResultInvalid, + 1 => kSecTrustResultProceed, + 2 => kSecTrustResultConfirm, + 3 => kSecTrustResultDeny, + 4 => kSecTrustResultUnspecified, + 5 => kSecTrustResultRecoverableTrustFailure, + 6 => kSecTrustResultFatalTrustFailure, + 7 => kSecTrustResultOtherError, + _ => throw ArgumentError('Unknown value for SecTrustResultType: $value'), + }; +} + +enum SecTrustSettingsDomain { + kSecTrustSettingsDomainUser(0), + kSecTrustSettingsDomainAdmin(1), + kSecTrustSettingsDomainSystem(2); + + final int value; + const SecTrustSettingsDomain(this.value); + + static SecTrustSettingsDomain fromValue(int value) => switch (value) { + 0 => kSecTrustSettingsDomainUser, + 1 => kSecTrustSettingsDomainAdmin, + 2 => kSecTrustSettingsDomainSystem, + _ => throw ArgumentError( + 'Unknown value for SecTrustSettingsDomain: $value', + ), + }; +} + +sealed class SecTrustSettingsKeyUsage { + static const kSecTrustSettingsKeyUseSignature = 1; + static const kSecTrustSettingsKeyUseEnDecryptData = 2; + static const kSecTrustSettingsKeyUseEnDecryptKey = 4; + static const kSecTrustSettingsKeyUseSignCert = 8; + static const kSecTrustSettingsKeyUseSignRevocation = 16; + static const kSecTrustSettingsKeyUseKeyExchange = 32; + static const kSecTrustSettingsKeyUseAny = -1; +} + +enum SecTrustSettingsResult { + kSecTrustSettingsResultInvalid(0), + kSecTrustSettingsResultTrustRoot(1), + kSecTrustSettingsResultTrustAsRoot(2), + kSecTrustSettingsResultDeny(3), + kSecTrustSettingsResultUnspecified(4); + + final int value; + const SecTrustSettingsResult(this.value); + + static SecTrustSettingsResult fromValue(int value) => switch (value) { + 0 => kSecTrustSettingsResultInvalid, + 1 => kSecTrustSettingsResultTrustRoot, + 2 => kSecTrustSettingsResultTrustAsRoot, + 3 => kSecTrustSettingsResultDeny, + 4 => kSecTrustSettingsResultUnspecified, + _ => throw ArgumentError( + 'Unknown value for SecTrustSettingsResult: $value', + ), + }; +} + +typedef SecTrustWithErrorCallback = ffi.Pointer; +typedef DartSecTrustWithErrorCallback = + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >; +typedef SecTrustedApplicationRef = ffi.Pointer<__SecTrustedApplication>; +typedef SecuritySessionId = UInt32; +typedef SelectorFunctionProcPtr = + ffi.Pointer>; +typedef SelectorFunctionProcPtrFunction = + OSErr Function(OSType selector, ffi.Pointer response); +typedef DartSelectorFunctionProcPtrFunction = + DartSInt16 Function(DartUInt32 selector, ffi.Pointer response); +typedef SelectorFunctionUPP = SelectorFunctionProcPtr; + +sealed class SessionAttributeBits { + static const sessionIsRoot = 1; + static const sessionHasGraphicAccess = 16; + static const sessionHasTTY = 32; + static const sessionIsRemote = 4096; +} + +sealed class SessionCreationFlags { + static const sessionKeepCurrentBootstrap = 32768; +} + +typedef ShortFixed = ffi.Short; +typedef DartShortFixed = int; +typedef ShortFixedPtr = ffi.Pointer; +typedef SignedByte = SInt8; +typedef Size = ffi.Long; +typedef DartSize = int; + +@ffi.Packed(2) +final class SizeResourceRec extends ffi.Struct { + @UInt16() + external int flags; + + @UInt32() + external int preferredHeapSize; + + @UInt32() + external int minimumHeapSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int preferredHeapSize, + required int minimumHeapSize, + }) => $allocator() + ..ref.flags = flags + ..ref.preferredHeapSize = preferredHeapSize + ..ref.minimumHeapSize = minimumHeapSize; +} + +typedef SizeResourceRecHandle = ffi.Pointer; +typedef SizeResourceRecPtr = ffi.Pointer; +typedef SleepQProcPtr = ffi.Pointer>; +typedef SleepQProcPtrFunction = + ffi.Long Function(ffi.Long message, SleepQRecPtr qRecPtr); +typedef DartSleepQProcPtrFunction = + int Function(int message, SleepQRecPtr qRecPtr); + +@ffi.Packed(2) +final class SleepQRec extends ffi.Struct { + external SleepQRecPtr sleepQLink; + + @ffi.Short() + external int sleepQType$1; + + external SleepQUPP sleepQProc; + + @ffi.Short() + external int sleepQFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required SleepQRecPtr sleepQLink, + required int sleepQType$1, + required SleepQUPP sleepQProc, + required int sleepQFlags, + }) => $allocator() + ..ref.sleepQLink = sleepQLink + ..ref.sleepQType$1 = sleepQType$1 + ..ref.sleepQProc = sleepQProc + ..ref.sleepQFlags = sleepQFlags; +} + +typedef SleepQRecPtr = ffi.Pointer; +typedef SleepQUPP = SleepQProcPtr; + +const int SlpTypeErr = -5; + +@ffi.Packed(2) +final class SoundDataChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt32() + external int offset; + + @UInt32() + external int blockSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ckID, + required int ckSize, + required int offset, + required int blockSize, + }) => $allocator() + ..ref.ckID = ckID + ..ref.ckSize = ckSize + ..ref.offset = offset + ..ref.blockSize = blockSize; +} + +typedef SoundDataChunkPtr = ffi.Pointer; + +const int SoundDataID = 1397968452; + +typedef SpeechChannel = ffi.Pointer; + +@ffi.Packed(2) +final class SpeechChannelRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef SpeechDoneProcPtr = + ffi.Pointer>; +typedef SpeechDoneProcPtrFunction = + ffi.Void Function(SpeechChannel chan, SRefCon refCon); +typedef DartSpeechDoneProcPtrFunction = + void Function(SpeechChannel chan, SRefCon refCon); +typedef SpeechDoneUPP = SpeechDoneProcPtr; +typedef SpeechErrorCFProcPtr = + ffi.Pointer>; +typedef SpeechErrorCFProcPtrFunction = + ffi.Void Function(SpeechChannel chan, SRefCon refCon, CFErrorRef theError); +typedef DartSpeechErrorCFProcPtrFunction = + void Function(SpeechChannel chan, SRefCon refCon, CFErrorRef theError); + +@ffi.Packed(2) +final class SpeechErrorInfo extends ffi.Struct { + @SInt16() + external int count; + + @OSErr() + external int oldest; + + @ffi.Long() + external int oldPos; + + @OSErr() + external int newest; + + @ffi.Long() + external int newPos; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required int oldest, + required int oldPos, + required int newest, + required int newPos, + }) => $allocator() + ..ref.count = count + ..ref.oldest = oldest + ..ref.oldPos = oldPos + ..ref.newest = newest + ..ref.newPos = newPos; +} + +typedef SpeechErrorProcPtr = + ffi.Pointer>; +typedef SpeechErrorProcPtrFunction = + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + OSErr theError, + ffi.Long bytePos, + ); +typedef DartSpeechErrorProcPtrFunction = + void Function( + SpeechChannel chan, + SRefCon refCon, + DartSInt16 theError, + int bytePos, + ); +typedef SpeechErrorUPP = SpeechErrorProcPtr; +typedef SpeechPhonemeProcPtr = + ffi.Pointer>; +typedef SpeechPhonemeProcPtrFunction = + ffi.Void Function(SpeechChannel chan, SRefCon refCon, SInt16 phonemeOpcode); +typedef DartSpeechPhonemeProcPtrFunction = + void Function(SpeechChannel chan, SRefCon refCon, DartSInt16 phonemeOpcode); +typedef SpeechPhonemeUPP = SpeechPhonemeProcPtr; + +@ffi.Packed(2) +final class SpeechStatusInfo extends ffi.Struct { + @Boolean() + external int outputBusy; + + @Boolean() + external int outputPaused; + + @ffi.Long() + external int inputBytesLeft; + + @SInt16() + external int phonemeCode; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int outputBusy, + required int outputPaused, + required int inputBytesLeft, + required int phonemeCode, + }) => $allocator() + ..ref.outputBusy = outputBusy + ..ref.outputPaused = outputPaused + ..ref.inputBytesLeft = inputBytesLeft + ..ref.phonemeCode = phonemeCode; +} + +typedef SpeechSyncProcPtr = + ffi.Pointer>; +typedef SpeechSyncProcPtrFunction = + ffi.Void Function(SpeechChannel chan, SRefCon refCon, OSType syncMessage); +typedef DartSpeechSyncProcPtrFunction = + void Function(SpeechChannel chan, SRefCon refCon, DartUInt32 syncMessage); +typedef SpeechSyncUPP = SpeechSyncProcPtr; +typedef SpeechTextDoneProcPtr = + ffi.Pointer>; +typedef SpeechTextDoneProcPtrFunction = + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + ffi.Pointer> nextBuf, + ffi.Pointer byteLen, + ffi.Pointer controlFlags, + ); +typedef DartSpeechTextDoneProcPtrFunction = + void Function( + SpeechChannel chan, + SRefCon refCon, + ffi.Pointer> nextBuf, + ffi.Pointer byteLen, + ffi.Pointer controlFlags, + ); +typedef SpeechTextDoneUPP = SpeechTextDoneProcPtr; + +@ffi.Packed(2) +final class SpeechVersionInfo extends ffi.Struct { + @OSType() + external int synthType; + + @OSType() + external int synthSubType; + + @OSType() + external int synthManufacturer; + + @SInt32() + external int synthFlags; + + external NumVersion synthVersion; +} + +typedef SpeechWordCFProcPtr = + ffi.Pointer>; +typedef SpeechWordCFProcPtrFunction = + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + CFStringRef aString, + CFRange wordRange, + ); +typedef DartSpeechWordCFProcPtrFunction = + void Function( + SpeechChannel chan, + SRefCon refCon, + CFStringRef aString, + CFRange wordRange, + ); +typedef SpeechWordProcPtr = + ffi.Pointer>; +typedef SpeechWordProcPtrFunction = + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + ffi.UnsignedLong wordPos, + UInt16 wordLen, + ); +typedef DartSpeechWordProcPtrFunction = + void Function( + SpeechChannel chan, + SRefCon refCon, + int wordPos, + DartUInt16 wordLen, + ); +typedef SpeechWordUPP = SpeechWordProcPtr; + +@ffi.Packed(2) +final class SpeechXtndData extends ffi.Struct { + @OSType() + external int synthCreator; + + @ffi.Array.multi([2]) + external ffi.Array synthData; +} + +typedef String2DateStatus = StringToDateStatus; +typedef StringHandle = ffi.Pointer; +typedef StringPtr = ffi.Pointer; +typedef StringToDateStatus = ffi.Short; +typedef DartStringToDateStatus = int; +typedef Style = ffi.UnsignedChar; +typedef DartStyle = int; +typedef StyleField = Style; +typedef StyleParameter = ffi.Short; +typedef DartStyleParameter = int; + +@ffi.Packed(2) +final class StyleTable extends ffi.Struct { + @SInt16() + external int fontClass; + + @SInt32() + external int offset; + + @SInt32() + external int reserved; + + @ffi.Array.multi([48]) + external ffi.Array indexes; +} + +typedef SysPPtr = ffi.Pointer; + +final class TECBufferContextRec extends ffi.Struct { + external ConstTextPtr textInputBuffer; + + external ConstTextPtr textInputBufferEnd; + + external TextPtr textOutputBuffer; + + external TextPtr textOutputBufferEnd; + + external ConstTextEncodingRunPtr encodingInputBuffer; + + external ConstTextEncodingRunPtr encodingInputBufferEnd; + + external TextEncodingRunPtr encodingOutputBuffer; + + external TextEncodingRunPtr encodingOutputBufferEnd; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ConstTextPtr textInputBuffer, + required ConstTextPtr textInputBufferEnd, + required TextPtr textOutputBuffer, + required TextPtr textOutputBufferEnd, + required ConstTextEncodingRunPtr encodingInputBuffer, + required ConstTextEncodingRunPtr encodingInputBufferEnd, + required TextEncodingRunPtr encodingOutputBuffer, + required TextEncodingRunPtr encodingOutputBufferEnd, + }) => $allocator() + ..ref.textInputBuffer = textInputBuffer + ..ref.textInputBufferEnd = textInputBufferEnd + ..ref.textOutputBuffer = textOutputBuffer + ..ref.textOutputBufferEnd = textOutputBufferEnd + ..ref.encodingInputBuffer = encodingInputBuffer + ..ref.encodingInputBufferEnd = encodingInputBufferEnd + ..ref.encodingOutputBuffer = encodingOutputBuffer + ..ref.encodingOutputBufferEnd = encodingOutputBufferEnd; +} + +@ffi.Packed(2) +final class TECConversionInfo extends ffi.Struct { + @TextEncoding() + external int sourceEncoding; + + @TextEncoding() + external int destinationEncoding; + + @UInt16() + external int reserved1; + + @UInt16() + external int reserved2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sourceEncoding, + required int destinationEncoding, + required int reserved1, + required int reserved2, + }) => $allocator() + ..ref.sourceEncoding = sourceEncoding + ..ref.destinationEncoding = destinationEncoding + ..ref.reserved1 = reserved1 + ..ref.reserved2 = reserved2; +} + +final class TECConverterContextRec extends ffi.Struct { + external Ptr pluginRec; + + @TextEncoding() + external int sourceEncoding; + + @TextEncoding() + external int destEncoding; + + @UInt32() + external int reserved1; + + @UInt32() + external int reserved2; + + external TECBufferContextRec bufferContext; + + external URefCon contextRefCon; + + external ProcPtr conversionProc; + + external ProcPtr flushProc; + + external ProcPtr clearContextInfoProc; + + @UInt32() + external int options1; + + @UInt32() + external int options2; + + external TECPluginStateRec pluginState; +} + +final class TECEncodingPairRec extends ffi.Struct { + external TextEncodingRec source; + + external TextEncodingRec dest; +} + +final class TECEncodingPairs extends ffi.Struct { + external TECEncodingPairRec encodingPair; + + @UInt32() + external int flags; + + @UInt32() + external int speed; +} + +typedef TECEncodingPairsHandle = ffi.Pointer; +typedef TECEncodingPairsPtr = ffi.Pointer; + +final class TECEncodingPairsRec extends ffi.Struct { + @UInt32() + external int count; + + external TECEncodingPairs encodingPairs; +} + +typedef TECEncodingsListHandle = ffi.Pointer; +typedef TECEncodingsListPtr = ffi.Pointer; + +final class TECEncodingsListRec extends ffi.Struct { + @UInt32() + external int count; + + external TextEncodingRec encodings; +} + +@ffi.Packed(2) +final class TECInfo extends ffi.Struct { + @UInt16() + external int format; + + @UInt16() + external int tecVersion; + + @UInt32() + external int tecTextConverterFeatures; + + @UInt32() + external int tecUnicodeConverterFeatures; + + @UInt32() + external int tecTextCommonFeatures; + + @ffi.Array.multi([32]) + external ffi.Array tecTextEncodingsFolderName; + + @ffi.Array.multi([32]) + external ffi.Array tecExtensionFileName; + + @UInt16() + external int tecLowestTEFileVersion; + + @UInt16() + external int tecHighestTEFileVersion; +} + +typedef TECInfoHandle = ffi.Pointer; +typedef TECInfoPtr = ffi.Pointer; + +final class TECInternetNameRec extends ffi.Struct { + @UInt32() + external int offset; + + external TextEncodingRec searchEncoding; + + @UInt8() + external int encodingNameLength; + + @ffi.Array.multi([1]) + external ffi.Array encodingName; +} + +typedef TECInternetNameUsageMask = UInt32; +typedef TECInternetNamesHandle = ffi.Pointer; +typedef TECInternetNamesPtr = ffi.Pointer; + +final class TECInternetNamesRec extends ffi.Struct { + @UInt32() + external int count; + + external TECInternetNameRec InternetNames; +} + +typedef TECLocaleListToEncodingListPtr = + ffi.Pointer; + +final class TECLocaleListToEncodingListRec extends ffi.Struct { + @UInt32() + external int offset; + + @UInt32() + external int count; + + @RegionCode() + external int locales; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int count, + required int locales, + }) => $allocator() + ..ref.offset = offset + ..ref.count = count + ..ref.locales = locales; +} + +typedef TECLocaleToEncodingsListHandle = + ffi.Pointer; +typedef TECLocaleToEncodingsListPtr = ffi.Pointer; + +final class TECLocaleToEncodingsListRec extends ffi.Struct { + @UInt32() + external int count; + + external TECLocaleListToEncodingListRec localeListToEncodingList; +} + +typedef TECObjectRef = ffi.Pointer; +typedef TECPluginClearContextInfoPtr = + ffi.Pointer>; +typedef TECPluginClearContextInfoPtrFunction = + OSStatus Function( + TECObjectRef encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginClearContextInfoPtrFunction = + DartSInt32 Function( + TECObjectRef encodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginClearSnifferContextInfoPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef TECPluginClearSnifferContextInfoPtrFunction = + OSStatus Function( + TECSnifferObjectRef encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginClearSnifferContextInfoPtrFunction = + DartSInt32 Function( + TECSnifferObjectRef encodingSniffer, + ffi.Pointer snifContext, + ); +typedef TECPluginConvertTextEncodingPtr = + ffi.Pointer>; +typedef TECPluginConvertTextEncodingPtrFunction = + OSStatus Function( + TECObjectRef encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginConvertTextEncodingPtrFunction = + DartSInt32 Function( + TECObjectRef encodingConverter, + ffi.Pointer plugContext, + ); + +final class TECPluginDispatchTable extends ffi.Struct { + @TECPluginVersion() + external int version; + + @TECPluginVersion() + external int compatibleVersion; + + @TECPluginSignature() + external int PluginID; + + external TECPluginNewEncodingConverterPtr PluginNewEncodingConverter; + + external TECPluginClearContextInfoPtr PluginClearContextInfo; + + external TECPluginConvertTextEncodingPtr PluginConvertTextEncoding; + + external TECPluginFlushConversionPtr PluginFlushConversion; + + external TECPluginDisposeEncodingConverterPtr PluginDisposeEncodingConverter; + + external TECPluginNewEncodingSnifferPtr PluginNewEncodingSniffer; + + external TECPluginClearSnifferContextInfoPtr PluginClearSnifferContextInfo; + + external TECPluginSniffTextEncodingPtr PluginSniffTextEncoding; + + external TECPluginDisposeEncodingSnifferPtr PluginDisposeEncodingSniffer; + + external TECPluginGetCountAvailableTextEncodingsPtr + PluginGetCountAvailableTextEncodings; + + external TECPluginGetCountAvailableTextEncodingPairsPtr + PluginGetCountAvailableTextEncodingPairs; + + external TECPluginGetCountDestinationTextEncodingsPtr + PluginGetCountDestinationTextEncodings; + + external TECPluginGetCountSubTextEncodingsPtr PluginGetCountSubTextEncodings; + + external TECPluginGetCountAvailableSniffersPtr + PluginGetCountAvailableSniffers; + + external TECPluginGetCountWebEncodingsPtr PluginGetCountWebTextEncodings; + + external TECPluginGetCountMailEncodingsPtr PluginGetCountMailTextEncodings; + + external TECPluginGetTextEncodingInternetNamePtr + PluginGetTextEncodingInternetName; + + external TECPluginGetTextEncodingFromInternetNamePtr + PluginGetTextEncodingFromInternetName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int compatibleVersion, + required int PluginID, + required TECPluginNewEncodingConverterPtr PluginNewEncodingConverter, + required TECPluginClearContextInfoPtr PluginClearContextInfo, + required TECPluginConvertTextEncodingPtr PluginConvertTextEncoding, + required TECPluginFlushConversionPtr PluginFlushConversion, + required TECPluginDisposeEncodingConverterPtr + PluginDisposeEncodingConverter, + required TECPluginNewEncodingSnifferPtr PluginNewEncodingSniffer, + required TECPluginClearSnifferContextInfoPtr PluginClearSnifferContextInfo, + required TECPluginSniffTextEncodingPtr PluginSniffTextEncoding, + required TECPluginDisposeEncodingSnifferPtr PluginDisposeEncodingSniffer, + required TECPluginGetCountAvailableTextEncodingsPtr + PluginGetCountAvailableTextEncodings, + required TECPluginGetCountAvailableTextEncodingPairsPtr + PluginGetCountAvailableTextEncodingPairs, + required TECPluginGetCountDestinationTextEncodingsPtr + PluginGetCountDestinationTextEncodings, + required TECPluginGetCountSubTextEncodingsPtr + PluginGetCountSubTextEncodings, + required TECPluginGetCountAvailableSniffersPtr + PluginGetCountAvailableSniffers, + required TECPluginGetCountWebEncodingsPtr PluginGetCountWebTextEncodings, + required TECPluginGetCountMailEncodingsPtr PluginGetCountMailTextEncodings, + required TECPluginGetTextEncodingInternetNamePtr + PluginGetTextEncodingInternetName, + required TECPluginGetTextEncodingFromInternetNamePtr + PluginGetTextEncodingFromInternetName, + }) => $allocator() + ..ref.version = version + ..ref.compatibleVersion = compatibleVersion + ..ref.PluginID = PluginID + ..ref.PluginNewEncodingConverter = PluginNewEncodingConverter + ..ref.PluginClearContextInfo = PluginClearContextInfo + ..ref.PluginConvertTextEncoding = PluginConvertTextEncoding + ..ref.PluginFlushConversion = PluginFlushConversion + ..ref.PluginDisposeEncodingConverter = PluginDisposeEncodingConverter + ..ref.PluginNewEncodingSniffer = PluginNewEncodingSniffer + ..ref.PluginClearSnifferContextInfo = PluginClearSnifferContextInfo + ..ref.PluginSniffTextEncoding = PluginSniffTextEncoding + ..ref.PluginDisposeEncodingSniffer = PluginDisposeEncodingSniffer + ..ref.PluginGetCountAvailableTextEncodings = + PluginGetCountAvailableTextEncodings + ..ref.PluginGetCountAvailableTextEncodingPairs = + PluginGetCountAvailableTextEncodingPairs + ..ref.PluginGetCountDestinationTextEncodings = + PluginGetCountDestinationTextEncodings + ..ref.PluginGetCountSubTextEncodings = PluginGetCountSubTextEncodings + ..ref.PluginGetCountAvailableSniffers = PluginGetCountAvailableSniffers + ..ref.PluginGetCountWebTextEncodings = PluginGetCountWebTextEncodings + ..ref.PluginGetCountMailTextEncodings = PluginGetCountMailTextEncodings + ..ref.PluginGetTextEncodingInternetName = PluginGetTextEncodingInternetName + ..ref.PluginGetTextEncodingFromInternetName = + PluginGetTextEncodingFromInternetName; +} + +typedef TECPluginDisposeEncodingConverterPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef TECPluginDisposeEncodingConverterPtrFunction = + OSStatus Function( + TECObjectRef newEncodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginDisposeEncodingConverterPtrFunction = + DartSInt32 Function( + TECObjectRef newEncodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginDisposeEncodingSnifferPtr = + ffi.Pointer>; +typedef TECPluginDisposeEncodingSnifferPtrFunction = + OSStatus Function( + TECSnifferObjectRef encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginDisposeEncodingSnifferPtrFunction = + DartSInt32 Function( + TECSnifferObjectRef encodingSniffer, + ffi.Pointer snifContext, + ); +typedef TECPluginFlushConversionPtr = + ffi.Pointer>; +typedef TECPluginFlushConversionPtrFunction = + OSStatus Function( + TECObjectRef encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginFlushConversionPtrFunction = + DartSInt32 Function( + TECObjectRef encodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginGetCountAvailableSniffersPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef TECPluginGetCountAvailableSniffersPtrFunction = + OSStatus Function( + ffi.Pointer availableEncodings, + ItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableSniffersPtrFunction = + DartSInt32 Function( + ffi.Pointer availableEncodings, + DartItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountAvailableTextEncodingPairsPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef TECPluginGetCountAvailableTextEncodingPairsPtrFunction = + OSStatus Function( + ffi.Pointer availableEncodings, + ItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableTextEncodingPairsPtrFunction = + DartSInt32 Function( + ffi.Pointer availableEncodings, + DartItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountAvailableTextEncodingsPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef TECPluginGetCountAvailableTextEncodingsPtrFunction = + OSStatus Function( + ffi.Pointer availableEncodings, + ItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableTextEncodingsPtrFunction = + DartSInt32 Function( + ffi.Pointer availableEncodings, + DartItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountDestinationTextEncodingsPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef TECPluginGetCountDestinationTextEncodingsPtrFunction = + OSStatus Function( + TextEncoding inputEncoding, + ffi.Pointer destinationEncodings, + ItemCount maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ); +typedef DartTECPluginGetCountDestinationTextEncodingsPtrFunction = + DartSInt32 Function( + DartUInt32 inputEncoding, + ffi.Pointer destinationEncodings, + DartItemCount maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ); +typedef TECPluginGetCountMailEncodingsPtr = + ffi.Pointer>; +typedef TECPluginGetCountMailEncodingsPtrFunction = + OSStatus Function( + ffi.Pointer availableEncodings, + ItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountMailEncodingsPtrFunction = + DartSInt32 Function( + ffi.Pointer availableEncodings, + DartItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountSubTextEncodingsPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef TECPluginGetCountSubTextEncodingsPtrFunction = + OSStatus Function( + TextEncoding inputEncoding, + ffi.Pointer subEncodings, + ItemCount maxSubEncodings, + ffi.Pointer actualSubEncodings, + ); +typedef DartTECPluginGetCountSubTextEncodingsPtrFunction = + DartSInt32 Function( + DartUInt32 inputEncoding, + ffi.Pointer subEncodings, + DartItemCount maxSubEncodings, + ffi.Pointer actualSubEncodings, + ); +typedef TECPluginGetCountWebEncodingsPtr = + ffi.Pointer>; +typedef TECPluginGetCountWebEncodingsPtrFunction = + OSStatus Function( + ffi.Pointer availableEncodings, + ItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountWebEncodingsPtrFunction = + DartSInt32 Function( + ffi.Pointer availableEncodings, + DartItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetPluginDispatchTablePtr = + ffi.Pointer>; +typedef TECPluginGetPluginDispatchTablePtrFunction = + ffi.Pointer Function(); +typedef TECPluginGetTextEncodingFromInternetNamePtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef TECPluginGetTextEncodingFromInternetNamePtrFunction = + OSStatus Function( + ffi.Pointer textEncoding, + ConstStr255Param encodingName, + ); +typedef DartTECPluginGetTextEncodingFromInternetNamePtrFunction = + DartSInt32 Function( + ffi.Pointer textEncoding, + ConstStr255Param encodingName, + ); +typedef TECPluginGetTextEncodingInternetNamePtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef TECPluginGetTextEncodingInternetNamePtrFunction = + OSStatus Function( + TextEncoding textEncoding, + ffi.Pointer encodingName, + ); +typedef DartTECPluginGetTextEncodingInternetNamePtrFunction = + DartSInt32 Function( + DartUInt32 textEncoding, + ffi.Pointer encodingName, + ); +typedef TECPluginNewEncodingConverterPtr = + ffi.Pointer>; +typedef TECPluginNewEncodingConverterPtrFunction = + OSStatus Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, + TextEncoding inputEncoding, + TextEncoding outputEncoding, + ); +typedef DartTECPluginNewEncodingConverterPtrFunction = + DartSInt32 Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, + DartUInt32 inputEncoding, + DartUInt32 outputEncoding, + ); +typedef TECPluginNewEncodingSnifferPtr = + ffi.Pointer>; +typedef TECPluginNewEncodingSnifferPtrFunction = + OSStatus Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + TextEncoding inputEncoding, + ); +typedef DartTECPluginNewEncodingSnifferPtrFunction = + DartSInt32 Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + DartUInt32 inputEncoding, + ); +typedef TECPluginSig = OSType; +typedef TECPluginSignature = OSType; +typedef TECPluginSniffTextEncodingPtr = + ffi.Pointer>; +typedef TECPluginSniffTextEncodingPtrFunction = + OSStatus Function( + TECSnifferObjectRef encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginSniffTextEncodingPtrFunction = + DartSInt32 Function( + TECSnifferObjectRef encodingSniffer, + ffi.Pointer snifContext, + ); + +final class TECPluginStateRec extends ffi.Struct { + @UInt8() + external int state1; + + @UInt8() + external int state2; + + @UInt8() + external int state3; + + @UInt8() + external int state4; + + @UInt32() + external int longState1; + + @UInt32() + external int longState2; + + @UInt32() + external int longState3; + + @UInt32() + external int longState4; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int state1, + required int state2, + required int state3, + required int state4, + required int longState1, + required int longState2, + required int longState3, + required int longState4, + }) => $allocator() + ..ref.state1 = state1 + ..ref.state2 = state2 + ..ref.state3 = state3 + ..ref.state4 = state4 + ..ref.longState1 = longState1 + ..ref.longState2 = longState2 + ..ref.longState3 = longState3 + ..ref.longState4 = longState4; +} + +typedef TECPluginVersion = UInt32; + +final class TECSnifferContextRec extends ffi.Struct { + external Ptr pluginRec; + + @TextEncoding() + external int encoding; + + @ItemCount() + external int maxErrors; + + @ItemCount() + external int maxFeatures; + + external ConstTextPtr textInputBuffer; + + external ConstTextPtr textInputBufferEnd; + + @ItemCount() + external int numFeatures; + + @ItemCount() + external int numErrors; + + external URefCon contextRefCon; + + external ProcPtr sniffProc; + + external ProcPtr clearContextInfoProc; + + external TECPluginStateRec pluginState; +} + +typedef TECSnifferObjectRef = ffi.Pointer; + +final class TECSubTextEncodingRec extends ffi.Struct { + @UInt32() + external int offset; + + external TextEncodingRec searchEncoding; + + @UInt32() + external int count; + + external TextEncodingRec subEncodings; +} + +typedef TECSubTextEncodingsHandle = ffi.Pointer; +typedef TECSubTextEncodingsPtr = ffi.Pointer; + +final class TECSubTextEncodingsRec extends ffi.Struct { + @UInt32() + external int count; + + external TECSubTextEncodingRec subTextEncodingRec; +} + +const int TLS_AES_128_CCM_8_SHA256 = 4869; + +const int TLS_AES_128_CCM_SHA256 = 4868; + +const int TLS_AES_128_GCM_SHA256 = 4865; + +const int TLS_AES_256_GCM_SHA384 = 4866; + +const int TLS_CHACHA20_POLY1305_SHA256 = 4867; + +const int TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; + +const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 50; + +const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = 64; + +const int TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 = 162; + +const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 56; + +const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = 106; + +const int TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 = 163; + +const int TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = 143; + +const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA = 144; + +const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 = 178; + +const int TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 = 170; + +const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA = 145; + +const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 = 179; + +const int TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 = 171; + +const int TLS_DHE_PSK_WITH_NULL_SHA = 45; + +const int TLS_DHE_PSK_WITH_NULL_SHA256 = 180; + +const int TLS_DHE_PSK_WITH_NULL_SHA384 = 181; + +const int TLS_DHE_PSK_WITH_RC4_128_SHA = 142; + +const int TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; + +const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 51; + +const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 103; + +const int TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = 158; + +const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 57; + +const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 107; + +const int TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = 159; + +const int TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; + +const int TLS_DH_DSS_WITH_AES_128_CBC_SHA = 48; + +const int TLS_DH_DSS_WITH_AES_128_CBC_SHA256 = 62; + +const int TLS_DH_DSS_WITH_AES_128_GCM_SHA256 = 164; + +const int TLS_DH_DSS_WITH_AES_256_CBC_SHA = 54; + +const int TLS_DH_DSS_WITH_AES_256_CBC_SHA256 = 104; + +const int TLS_DH_DSS_WITH_AES_256_GCM_SHA384 = 165; + +const int TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; + +const int TLS_DH_RSA_WITH_AES_128_CBC_SHA = 49; + +const int TLS_DH_RSA_WITH_AES_128_CBC_SHA256 = 63; + +const int TLS_DH_RSA_WITH_AES_128_GCM_SHA256 = 160; + +const int TLS_DH_RSA_WITH_AES_256_CBC_SHA = 55; + +const int TLS_DH_RSA_WITH_AES_256_CBC_SHA256 = 105; + +const int TLS_DH_RSA_WITH_AES_256_GCM_SHA384 = 161; + +const int TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; + +const int TLS_DH_anon_WITH_AES_128_CBC_SHA = 52; + +const int TLS_DH_anon_WITH_AES_128_CBC_SHA256 = 108; + +const int TLS_DH_anon_WITH_AES_128_GCM_SHA256 = 166; + +const int TLS_DH_anon_WITH_AES_256_CBC_SHA = 58; + +const int TLS_DH_anon_WITH_AES_256_CBC_SHA256 = 109; + +const int TLS_DH_anon_WITH_AES_256_GCM_SHA384 = 167; + +const int TLS_DH_anon_WITH_RC4_128_MD5 = 24; + +const int TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = -16376; + +const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = -16375; + +const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = -16349; + +const int TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = -16341; + +const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = -16374; + +const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = -16348; + +const int TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = -16340; + +const int TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = -13143; + +const int TLS_ECDHE_ECDSA_WITH_NULL_SHA = -16378; + +const int TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = -16377; + +const int TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA = -16331; + +const int TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA = -16330; + +const int TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 = -13140; + +const int TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = -16366; + +const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = -16365; + +const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = -16345; + +const int TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = -16337; + +const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = -16364; + +const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = -16344; + +const int TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = -16336; + +const int TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = -13144; + +const int TLS_ECDHE_RSA_WITH_NULL_SHA = -16368; + +const int TLS_ECDHE_RSA_WITH_RC4_128_SHA = -16367; + +const int TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = -16381; + +const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = -16380; + +const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 = -16347; + +const int TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = -16339; + +const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = -16379; + +const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 = -16346; + +const int TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = -16338; + +const int TLS_ECDH_ECDSA_WITH_NULL_SHA = -16383; + +const int TLS_ECDH_ECDSA_WITH_RC4_128_SHA = -16382; + +const int TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = -16371; + +const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = -16370; + +const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 = -16343; + +const int TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 = -16335; + +const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = -16369; + +const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 = -16342; + +const int TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 = -16334; + +const int TLS_ECDH_RSA_WITH_NULL_SHA = -16373; + +const int TLS_ECDH_RSA_WITH_RC4_128_SHA = -16372; + +const int TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = -16361; + +const int TLS_ECDH_anon_WITH_AES_128_CBC_SHA = -16360; + +const int TLS_ECDH_anon_WITH_AES_256_CBC_SHA = -16359; + +const int TLS_ECDH_anon_WITH_NULL_SHA = -16363; + +const int TLS_ECDH_anon_WITH_RC4_128_SHA = -16362; + +const int TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 255; + +const int TLS_NULL_WITH_NULL_NULL = 0; + +const int TLS_PSK_WITH_3DES_EDE_CBC_SHA = 139; + +const int TLS_PSK_WITH_AES_128_CBC_SHA = 140; + +const int TLS_PSK_WITH_AES_128_CBC_SHA256 = 174; + +const int TLS_PSK_WITH_AES_128_GCM_SHA256 = 168; + +const int TLS_PSK_WITH_AES_256_CBC_SHA = 141; + +const int TLS_PSK_WITH_AES_256_CBC_SHA384 = 175; + +const int TLS_PSK_WITH_AES_256_GCM_SHA384 = 169; + +const int TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 = -13141; + +const int TLS_PSK_WITH_NULL_SHA = 44; + +const int TLS_PSK_WITH_NULL_SHA256 = 176; + +const int TLS_PSK_WITH_NULL_SHA384 = 177; + +const int TLS_PSK_WITH_RC4_128_SHA = 138; + +const int TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = 147; + +const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA = 148; + +const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 = 182; + +const int TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 = 172; + +const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA = 149; + +const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 = 183; + +const int TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 = 173; + +const int TLS_RSA_PSK_WITH_NULL_SHA = 46; + +const int TLS_RSA_PSK_WITH_NULL_SHA256 = 184; + +const int TLS_RSA_PSK_WITH_NULL_SHA384 = 185; + +const int TLS_RSA_PSK_WITH_RC4_128_SHA = 146; + +const int TLS_RSA_WITH_3DES_EDE_CBC_SHA = 10; + +const int TLS_RSA_WITH_AES_128_CBC_SHA = 47; + +const int TLS_RSA_WITH_AES_128_CBC_SHA256 = 60; + +const int TLS_RSA_WITH_AES_128_GCM_SHA256 = 156; + +const int TLS_RSA_WITH_AES_256_CBC_SHA = 53; + +const int TLS_RSA_WITH_AES_256_CBC_SHA256 = 61; + +const int TLS_RSA_WITH_AES_256_GCM_SHA384 = 157; + +const int TLS_RSA_WITH_NULL_MD5 = 1; + +const int TLS_RSA_WITH_NULL_SHA = 2; + +const int TLS_RSA_WITH_NULL_SHA256 = 59; + +const int TLS_RSA_WITH_RC4_128_MD5 = 4; + +const int TLS_RSA_WITH_RC4_128_SHA = 5; + +@ffi.Packed(2) +final class TMTask extends ffi.Struct { + external QElemPtr qLink; + + @ffi.Short() + external int qType; + + external TimerUPP tmAddr; + + @ffi.Long() + external int tmCount; + + @ffi.Long() + external int tmWakeUp; + + @ffi.Long() + external int tmReserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required TimerUPP tmAddr, + required int tmCount, + required int tmWakeUp, + required int tmReserved, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.tmAddr = tmAddr + ..ref.tmCount = tmCount + ..ref.tmWakeUp = tmWakeUp + ..ref.tmReserved = tmReserved; +} + +typedef TMTaskPtr = ffi.Pointer; + +@ffi.Packed(2) +final class TScriptingSizeResource extends ffi.Struct { + @SInt16() + external int scriptingSizeFlags; + + @UInt32() + external int minStackSize; + + @UInt32() + external int preferredStackSize; + + @UInt32() + external int maxStackSize; + + @UInt32() + external int minHeapSize; + + @UInt32() + external int preferredHeapSize; + + @UInt32() + external int maxHeapSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int scriptingSizeFlags, + required int minStackSize, + required int preferredStackSize, + required int maxStackSize, + required int minHeapSize, + required int preferredHeapSize, + required int maxHeapSize, + }) => $allocator() + ..ref.scriptingSizeFlags = scriptingSizeFlags + ..ref.minStackSize = minStackSize + ..ref.preferredStackSize = preferredStackSize + ..ref.maxStackSize = maxStackSize + ..ref.minHeapSize = minHeapSize + ..ref.preferredHeapSize = preferredHeapSize + ..ref.maxHeapSize = maxHeapSize; +} + +@ffi.Packed(2) +final class TableDirectoryRecord extends ffi.Struct { + @OSType() + external int tableSignature; + + @UInt32() + external int reserved; + + @UInt32() + external int tableStartOffset; + + @UInt32() + external int tableSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tableSignature, + required int reserved, + required int tableStartOffset, + required int tableSize, + }) => $allocator() + ..ref.tableSignature = tableSignature + ..ref.reserved = reserved + ..ref.tableStartOffset = tableStartOffset + ..ref.tableSize = tableSize; +} + +typedef TaskProc = ffi.Pointer>; +typedef TaskProcFunction = OSStatus Function(ffi.Pointer parameter); +typedef DartTaskProcFunction = + DartSInt32 Function(ffi.Pointer parameter); +typedef TaskStorageIndex = ItemCount; +typedef TaskStorageValue = LogicalAddress; +typedef TextBreakLocatorRef = ffi.Pointer; + +@ffi.Packed(2) +final class TextChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @ffi.Array.multi([1]) + external ffi.Array text; +} + +typedef TextChunkPtr = ffi.Pointer; +typedef TextEncoding = UInt32; +typedef TextEncodingBase = UInt32; +typedef TextEncodingFormat = UInt32; +typedef TextEncodingNameSelector = UInt32; + +final class TextEncodingRec extends ffi.Struct { + @UInt32() + external int base; + + @UInt32() + external int variant; + + @UInt32() + external int format; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int base, + required int variant, + required int format, + }) => $allocator() + ..ref.base = base + ..ref.variant = variant + ..ref.format = format; +} + +@ffi.Packed(2) +final class TextEncodingRun extends ffi.Struct { + @ByteOffset() + external int offset; + + @TextEncoding() + external int textEncoding; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int textEncoding, + }) => $allocator() + ..ref.offset = offset + ..ref.textEncoding = textEncoding; +} + +typedef TextEncodingRunPtr = ffi.Pointer; +typedef TextEncodingVariant = UInt32; +typedef TextPtr = ffi.Pointer; + +@ffi.Packed(2) +final class TextRange extends ffi.Struct { + @SInt32() + external int fStart; + + @SInt32() + external int fEnd; + + @SInt16() + external int fHiliteStyle; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fStart, + required int fEnd, + required int fHiliteStyle, + }) => $allocator() + ..ref.fStart = fStart + ..ref.fEnd = fEnd + ..ref.fHiliteStyle = fHiliteStyle; +} + +final class TextRangeArray extends ffi.Struct { + @SInt16() + external int fNumOfRanges; + + @ffi.Array.multi([1]) + external ffi.Array fRange; +} + +typedef TextRangeArrayHandle = ffi.Pointer; +typedef TextRangeArrayPtr = ffi.Pointer; +typedef TextRangeHandle = ffi.Pointer; +typedef TextRangePtr = ffi.Pointer; +typedef TextToUnicodeInfo = ffi.Pointer; +typedef ThreadEntryProcPtr = + ffi.Pointer>; +typedef ThreadEntryProcPtrFunction = + voidPtr Function(ffi.Pointer threadParam); +typedef ThreadEntryTPP = ThreadEntryUPP; +typedef ThreadEntryUPP = ThreadEntryProcPtr; +typedef ThreadID = ffi.UnsignedLong; +typedef DartThreadID = int; +typedef ThreadOptions = UInt32; +typedef ThreadSchedulerProcPtr = + ffi.Pointer>; +typedef ThreadSchedulerProcPtrFunction = + ThreadID Function(SchedulerInfoRecPtr schedulerInfo); +typedef DartThreadSchedulerProcPtrFunction = + DartThreadID Function(SchedulerInfoRecPtr schedulerInfo); +typedef ThreadSchedulerTPP = ThreadSchedulerUPP; +typedef ThreadSchedulerUPP = ThreadSchedulerProcPtr; +typedef ThreadState = UInt16; +typedef ThreadStyle = UInt32; +typedef ThreadSwitchProcPtr = + ffi.Pointer>; +typedef ThreadSwitchProcPtrFunction = + ffi.Void Function( + ThreadID threadBeingSwitched, + ffi.Pointer switchProcParam, + ); +typedef DartThreadSwitchProcPtrFunction = + void Function( + DartThreadID threadBeingSwitched, + ffi.Pointer switchProcParam, + ); +typedef ThreadSwitchTPP = ThreadSwitchUPP; +typedef ThreadSwitchUPP = ThreadSwitchProcPtr; +typedef ThreadTaskRef = ffi.Pointer; +typedef ThreadTerminationProcPtr = + ffi.Pointer>; +typedef ThreadTerminationProcPtrFunction = + ffi.Void Function( + ThreadID threadTerminated, + ffi.Pointer terminationProcParam, + ); +typedef DartThreadTerminationProcPtrFunction = + void Function( + DartThreadID threadTerminated, + ffi.Pointer terminationProcParam, + ); +typedef ThreadTerminationTPP = ThreadTerminationUPP; +typedef ThreadTerminationUPP = ThreadTerminationProcPtr; +typedef TimeBase = ffi.Pointer; + +final class TimeBaseRecord extends ffi.Opaque {} + +@ffi.Packed(2) +final class TimeRecord extends ffi.Struct { + external CompTimeValue value; + + @TimeScale() + external int scale; + + external TimeBase base; +} + +typedef TimeScale = SInt32; +typedef TimeValue = SInt32; +typedef TimeValue64 = SInt64; +typedef TimerProcPtr = ffi.Pointer>; +typedef TimerProcPtrFunction = ffi.Void Function(TMTaskPtr tmTaskPtr); +typedef DartTimerProcPtrFunction = void Function(TMTaskPtr tmTaskPtr); +typedef TimerUPP = TimerProcPtr; + +@ffi.Packed(2) +final class TogglePB extends ffi.Struct { + @ffi.Long() + external int togFlags; + + @ResType() + external int amChars; + + @ResType() + external int pmChars; + + @ffi.Array.multi([4]) + external ffi.Array reserved; +} + +typedef ToggleResults = SInt16; + +@Deprecated('Deprecated') +@ffi.Packed(2) +final class TokenBlock extends ffi.Struct { + external Ptr source; + + @ffi.Long() + external int sourceLength; + + external Ptr tokenList; + + @ffi.Long() + external int tokenLength; + + @ffi.Long() + external int tokenCount; + + external Ptr stringList; + + @ffi.Long() + external int stringLength; + + @ffi.Long() + external int stringCount; + + @Boolean() + external int doString; + + @Boolean() + external int doAppend; + + @Boolean() + external int doAlphanumeric; + + @Boolean() + external int doNest; + + @ffi.Array.multi([2]) + external ffi.Array leftDelims; + + @ffi.Array.multi([2]) + external ffi.Array rightDelims; + + @ffi.Array.multi([4]) + external ffi.Array leftComment; + + @ffi.Array.multi([4]) + external ffi.Array rightComment; + + @ScriptTokenType() + external int escapeCode; + + @ScriptTokenType() + external int decimalCode; + + external Handle itlResource; + + @ffi.Array.multi([8]) + external ffi.Array reserved; +} + +typedef TokenBlockPtr = ffi.Pointer; + +@Deprecated('Deprecated') +@ffi.Packed(2) +final class TokenRec extends ffi.Struct { + @ScriptTokenType() + external int theToken; + + external Ptr position; + + @ffi.Long() + external int length; + + external StringPtr stringPosition; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int theToken, + required Ptr position, + required int length, + required StringPtr stringPosition, + }) => $allocator() + ..ref.theToken = theToken + ..ref.position = position + ..ref.length = length + ..ref.stringPosition = stringPosition; +} + +typedef TokenRecPtr = ffi.Pointer; +typedef TokenResults = SInt8; + +@ffi.Packed(2) +final class TrakTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt16() + external int format; + + @UInt16() + external int horizOffset; + + @UInt16() + external int vertOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int format, + required int horizOffset, + required int vertOffset, + }) => $allocator() + ..ref.version = version + ..ref.format = format + ..ref.horizOffset = horizOffset + ..ref.vertOffset = vertOffset; +} + +@ffi.Packed(2) +final class TrakTableData extends ffi.Struct { + @UInt16() + external int nTracks; + + @UInt16() + external int nSizes; + + @UInt32() + external int sizeTableOffset; + + @ffi.Array.multi([1]) + external ffi.Array trakTable; +} + +@ffi.Packed(2) +final class TrakTableEntry extends ffi.Struct { + @Fixed() + external int track; + + @UInt16() + external int nameTableIndex; + + @UInt16() + external int sizesOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int track, + required int nameTableIndex, + required int sizesOffset, + }) => $allocator() + ..ref.track = track + ..ref.nameTableIndex = nameTableIndex + ..ref.sizesOffset = sizesOffset; +} + +typedef TrakValue = SInt16; +typedef TranslationFlags = OptionBits; +typedef TranslationRef = ffi.Pointer; +typedef TruncCode = ffi.Short; +typedef DartTruncCode = int; +typedef UAZoomChangeFocusType = UInt32; +typedef UCCharPropertyType = SInt32; +typedef UCCharPropertyValue = UInt32; +typedef UCCollateOptions = UInt32; +typedef UCCollationValue = UInt32; +typedef UCKeyCharSeq = UInt16; + +@ffi.Packed(2) +final class UCKeyLayoutFeatureInfo extends ffi.Struct { + @UInt16() + external int keyLayoutFeatureInfoFormat; + + @UInt16() + external int reserved; + + @UInt32() + external int maxOutputStringLength; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int keyLayoutFeatureInfoFormat, + required int reserved, + required int maxOutputStringLength, + }) => $allocator() + ..ref.keyLayoutFeatureInfoFormat = keyLayoutFeatureInfoFormat + ..ref.reserved = reserved + ..ref.maxOutputStringLength = maxOutputStringLength; +} + +@ffi.Packed(2) +final class UCKeyModifiersToTableNum extends ffi.Struct { + @UInt16() + external int keyModifiersToTableNumFormat; + + @UInt16() + external int defaultTableNum; + + @UInt32() + external int modifiersCount; + + @ffi.Array.multi([1]) + external ffi.Array tableNum; +} + +typedef UCKeyOutput = UInt16; + +final class UCKeySequenceDataIndex extends ffi.Struct { + @UInt16() + external int keySequenceDataIndexFormat; + + @UInt16() + external int charSequenceCount; + + @ffi.Array.multi([1]) + external ffi.Array charSequenceOffsets; +} + +final class UCKeyStateEntryRange extends ffi.Struct { + @UInt16() + external int curStateStart; + + @UInt8() + external int curStateRange; + + @UInt8() + external int deltaMultiplier; + + @UCKeyCharSeq() + external int charData; + + @UInt16() + external int nextState; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int curStateStart, + required int curStateRange, + required int deltaMultiplier, + required int charData, + required int nextState, + }) => $allocator() + ..ref.curStateStart = curStateStart + ..ref.curStateRange = curStateRange + ..ref.deltaMultiplier = deltaMultiplier + ..ref.charData = charData + ..ref.nextState = nextState; +} + +final class UCKeyStateEntryTerminal extends ffi.Struct { + @UInt16() + external int curState; + + @UCKeyCharSeq() + external int charData; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int curState, + required int charData, + }) => $allocator() + ..ref.curState = curState + ..ref.charData = charData; +} + +@ffi.Packed(2) +final class UCKeyStateRecord extends ffi.Struct { + @UCKeyCharSeq() + external int stateZeroCharData; + + @UInt16() + external int stateZeroNextState; + + @UInt16() + external int stateEntryCount; + + @UInt16() + external int stateEntryFormat; + + @ffi.Array.multi([1]) + external ffi.Array stateEntryData; +} + +@ffi.Packed(2) +final class UCKeyStateRecordsIndex extends ffi.Struct { + @UInt16() + external int keyStateRecordsIndexFormat; + + @UInt16() + external int keyStateRecordCount; + + @ffi.Array.multi([1]) + external ffi.Array keyStateRecordOffsets; +} + +final class UCKeyStateTerminators extends ffi.Struct { + @UInt16() + external int keyStateTerminatorsFormat; + + @UInt16() + external int keyStateTerminatorCount; + + @ffi.Array.multi([1]) + external ffi.Array keyStateTerminators; +} + +@ffi.Packed(2) +final class UCKeyToCharTableIndex extends ffi.Struct { + @UInt16() + external int keyToCharTableIndexFormat; + + @UInt16() + external int keyToCharTableSize; + + @UInt32() + external int keyToCharTableCount; + + @ffi.Array.multi([1]) + external ffi.Array keyToCharTableOffsets; +} + +@ffi.Packed(2) +final class UCKeyboardLayout extends ffi.Struct { + @UInt16() + external int keyLayoutHeaderFormat; + + @UInt16() + external int keyLayoutDataVersion; + + @UInt32() + external int keyLayoutFeatureInfoOffset; + + @UInt32() + external int keyboardTypeCount; + + @ffi.Array.multi([1]) + external ffi.Array keyboardTypeList; +} + +@ffi.Packed(2) +final class UCKeyboardTypeHeader extends ffi.Struct { + @UInt32() + external int keyboardTypeFirst; + + @UInt32() + external int keyboardTypeLast; + + @UInt32() + external int keyModifiersToTableNumOffset; + + @UInt32() + external int keyToCharTableIndexOffset; + + @UInt32() + external int keyStateRecordsIndexOffset; + + @UInt32() + external int keyStateTerminatorsOffset; + + @UInt32() + external int keySequenceDataIndexOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int keyboardTypeFirst, + required int keyboardTypeLast, + required int keyModifiersToTableNumOffset, + required int keyToCharTableIndexOffset, + required int keyStateRecordsIndexOffset, + required int keyStateTerminatorsOffset, + required int keySequenceDataIndexOffset, + }) => $allocator() + ..ref.keyboardTypeFirst = keyboardTypeFirst + ..ref.keyboardTypeLast = keyboardTypeLast + ..ref.keyModifiersToTableNumOffset = keyModifiersToTableNumOffset + ..ref.keyToCharTableIndexOffset = keyToCharTableIndexOffset + ..ref.keyStateRecordsIndexOffset = keyStateRecordsIndexOffset + ..ref.keyStateTerminatorsOffset = keyStateTerminatorsOffset + ..ref.keySequenceDataIndexOffset = keySequenceDataIndexOffset; +} + +typedef UCTSWalkDirection = UInt16; +typedef UCTextBreakOptions = UInt32; +typedef UCTextBreakType = UInt32; +typedef UCTypeSelectCompareResult = SInt32; +typedef UCTypeSelectOptions = UInt16; +typedef UCTypeSelectRef = ffi.Pointer; +typedef UInt = ffi.UnsignedInt; +typedef DartUInt = int; +typedef UInt16 = ffi.UnsignedShort; +typedef DartUInt16 = int; +typedef UInt32 = ffi.UnsignedInt; +typedef DartUInt32 = int; +typedef UInt64 = ffi.UnsignedLongLong; +typedef DartUInt64 = int; +typedef UInt8 = ffi.UnsignedChar; +typedef DartUInt8 = int; +typedef UNDServerRef = mach_port_t; + +const int UNORDERED = 3; + +typedef URefCon = ffi.Pointer; + +@ffi.Packed(2) +final class UTCDateTime extends ffi.Struct { + @UInt16() + external int highSeconds; + + @UInt32() + external int lowSeconds; + + @UInt16() + external int fraction$1; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int highSeconds, + required int lowSeconds, + required int fraction$1, + }) => $allocator() + ..ref.highSeconds = highSeconds + ..ref.lowSeconds = lowSeconds + ..ref.fraction$1 = fraction$1; +} + +typedef UTCDateTimeHandle = ffi.Pointer; +typedef UTCDateTimePtr = ffi.Pointer; +typedef UTF16Char = UInt16; +typedef UTF32Char = UInt32; +typedef UTF8Char = UInt8; +typedef UniChar = UInt16; +typedef UniCharArrayHandle = ffi.Pointer; +typedef UniCharArrayOffset = ffi.UnsignedLong; +typedef DartUniCharArrayOffset = int; +typedef UniCharArrayPtr = ffi.Pointer; +typedef UniCharCount = ffi.UnsignedLong; +typedef DartUniCharCount = int; +typedef UniCharCountPtr = ffi.Pointer; +typedef UniCharPtr = ffi.Pointer; +typedef UnicodeMapVersion = SInt32; + +@ffi.Packed(2) +final class UnicodeMapping extends ffi.Struct { + @TextEncoding() + external int unicodeEncoding; + + @TextEncoding() + external int otherEncoding; + + @UnicodeMapVersion() + external int mappingVersion; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int unicodeEncoding, + required int otherEncoding, + required int mappingVersion, + }) => $allocator() + ..ref.unicodeEncoding = unicodeEncoding + ..ref.otherEncoding = otherEncoding + ..ref.mappingVersion = mappingVersion; +} + +typedef UnicodeMappingPtr = ffi.Pointer; +typedef UnicodeScalarValue = UInt32; +typedef UnicodeToTextFallbackProcPtr = + ffi.Pointer>; +typedef UnicodeToTextFallbackProcPtrFunction = + OSStatus Function( + ffi.Pointer iSrcUniStr, + ByteCount iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + TextPtr oDestStr, + ByteCount iDestStrLen, + ffi.Pointer oDestConvLen, + LogicalAddress iInfoPtr, + ConstUnicodeMappingPtr iUnicodeMappingPtr, + ); +typedef DartUnicodeToTextFallbackProcPtrFunction = + DartSInt32 Function( + ffi.Pointer iSrcUniStr, + DartByteCount iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + TextPtr oDestStr, + DartByteCount iDestStrLen, + ffi.Pointer oDestConvLen, + LogicalAddress iInfoPtr, + ConstUnicodeMappingPtr iUnicodeMappingPtr, + ); +typedef UnicodeToTextFallbackUPP = UnicodeToTextFallbackProcPtr; +typedef UnicodeToTextInfo = ffi.Pointer; +typedef UnicodeToTextRunInfo = ffi.Pointer; +typedef UniversalProcHandle = ffi.Pointer; +typedef UniversalProcPtr = ProcPtr; + +@ffi.Packed(2) +final class UnnamedStruct extends ffi.Struct { + @UInt16() + external int what; + + @UInt32() + external int message; + + @UInt32() + external int when; + + external Point where; + + @UInt16() + external int modifiers; +} + +final class UnnamedStruct$1 extends ffi.Struct { + external ffi.Pointer opaque1; + + @ffi.Long() + external int opaque2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer opaque1, + required int opaque2, + }) => $allocator() + ..ref.opaque1 = opaque1 + ..ref.opaque2 = opaque2; +} + +final class UnnamedStruct$10 extends ffi.Struct { + @SInt16() + external int reserved; + + @SInt16() + external int subType; + + external UnnamedUnion$12 misc; +} + +final class UnnamedStruct$11 extends ffi.Struct { + @SInt16() + external int x; + + @SInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +final class UnnamedStruct$12 extends ffi.Struct { + @UInt16() + external int origCharSet; + + @SInt16() + external int repeat; + + @UInt16() + external int charSet; + + @UInt16() + external int charCode; + + @UInt16() + external int keyCode; + + @UInt16() + external int origCharCode; + + @SInt32() + external int reserved1; + + @UInt32() + external int keyboardType; + + @SInt32() + external int reserved2; + + @SInt32() + external int reserved3; + + @SInt32() + external int reserved4; + + @ffi.Array.multi([4]) + external ffi.Array reserved5; +} + +final class UnnamedStruct$13 extends ffi.Struct { + @SInt32() + external int dx; + + @SInt32() + external int dy; + + @UInt8() + external int subx; + + @UInt8() + external int suby; + + @UInt8() + external int subType; + + @UInt8() + external int reserved1; + + @SInt32() + external int reserved2; + + external UnnamedUnion$13 tablet; +} + +final class UnnamedStruct$14 extends ffi.Struct { + @SInt16() + external int x; + + @SInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +final class UnnamedStruct$15 extends ffi.Struct { + @ffi.Short() + external int era; + + @ffi.Short() + external int year; + + @ffi.Short() + external int month; + + @ffi.Short() + external int day; + + @ffi.Short() + external int hour; + + @ffi.Short() + external int minute; + + @ffi.Short() + external int second; + + @ffi.Short() + external int dayOfWeek; + + @ffi.Short() + external int dayOfYear; + + @ffi.Short() + external int weekOfYear; + + @ffi.Short() + external int pm; + + @ffi.Short() + external int res1; + + @ffi.Short() + external int res2; + + @ffi.Short() + external int res3; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int era, + required int year, + required int month, + required int day, + required int hour, + required int minute, + required int second, + required int dayOfWeek, + required int dayOfYear, + required int weekOfYear, + required int pm, + required int res1, + required int res2, + required int res3, + }) => $allocator() + ..ref.era = era + ..ref.year = year + ..ref.month = month + ..ref.day = day + ..ref.hour = hour + ..ref.minute = minute + ..ref.second = second + ..ref.dayOfWeek = dayOfWeek + ..ref.dayOfYear = dayOfYear + ..ref.weekOfYear = weekOfYear + ..ref.pm = pm + ..ref.res1 = res1 + ..ref.res2 = res2 + ..ref.res3 = res3; +} + +final class UnnamedStruct$16 extends ffi.Struct { + @ffi.Short() + external int eraAlt; + + external DateTimeRec oldDate; +} + +final class UnnamedStruct$17 extends ffi.Struct { + @SInt32() + external int x; + + @SInt32() + external int y; + + @SInt32() + external int z; + + @UInt16() + external int buttons; + + @UInt16() + external int pressure; + + external UnnamedStruct$11 tilt; + + @UInt16() + external int rotation; + + @SInt16() + external int tangentialPressure; + + @UInt16() + external int deviceID; + + @SInt16() + external int vendor1; + + @SInt16() + external int vendor2; + + @SInt16() + external int vendor3; + + @ffi.Array.multi([4]) + external ffi.Array reserved; +} + +final class UnnamedStruct$18 extends ffi.Struct { + @SInt16() + external int reserved; + + @SInt16() + external int eventNum; + + @SInt32() + external int trackingNum; + + @SInt32() + external int userData; + + @SInt32() + external int reserved1; + + @SInt32() + external int reserved2; + + @SInt32() + external int reserved3; + + @SInt32() + external int reserved4; + + @SInt32() + external int reserved5; + + @ffi.Array.multi([4]) + external ffi.Array reserved6; +} + +final class UnnamedStruct$19 extends ffi.Struct { + @UInt16() + external int vendorID; + + @UInt16() + external int tabletID; + + @UInt16() + external int pointerID; + + @UInt16() + external int deviceID; + + @UInt16() + external int systemTabletID; + + @UInt16() + external int vendorPointerType; + + @UInt32() + external int pointerSerialNumber; + + @UInt64() + external int uniqueID; + + @UInt32() + external int capabilityMask; + + @UInt8() + external int pointerType; + + @UInt8() + external int enterProximity; + + @SInt16() + external int reserved1; + + @ffi.Array.multi([4]) + external ffi.Array reserved2; +} + +final class UnnamedStruct$2 extends ffi.Struct { + external ffi.Pointer opaque1; + + external ffi.Pointer opaque2; + + @ffi.Int() + external int opaque3; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer opaque1, + required ffi.Pointer opaque2, + required int opaque3, + }) => $allocator() + ..ref.opaque1 = opaque1 + ..ref.opaque2 = opaque2 + ..ref.opaque3 = opaque3; +} + +final class UnnamedStruct$20 extends ffi.Struct { + @SInt32() + external int x; + + @SInt32() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +final class UnnamedStruct$21 extends ffi.Struct { + @UInt8() + external int subx; + + @UInt8() + external int suby; + + @SInt16() + external int eventNum; + + @SInt32() + external int click; + + @UInt8() + external int pressure; + + @UInt8() + external int buttonNumber; + + @UInt8() + external int subType; + + @UInt8() + external int reserved2; + + @SInt32() + external int reserved3; + + external UnnamedUnion$14 tablet; +} + +@ffi.Packed(2) +final class UnnamedStruct$22 extends ffi.Struct { + @UInt32() + external int lLow; + + @UInt32() + external int lHigh; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lLow, + required int lHigh, + }) => $allocator() + ..ref.lLow = lLow + ..ref.lHigh = lHigh; +} + +final class UnnamedStruct$3 extends ffi.Struct { + @ffi.Array.multi([3]) + external ffi.Array pad; + + @SInt8() + external int Delta; +} + +final class UnnamedStruct$4 extends ffi.Struct { + @ffi.UnsignedChar() + external int length; + + @ffi.Array.multi([36]) + external ffi.Array text; + + @ffi.UnsignedChar() + external int unused; +} + +final class UnnamedStruct$5 extends ffi.Struct { + @ffi.Int16() + external int top; + + @ffi.Int16() + external int left; + + @ffi.Int16() + external int bottom; + + @ffi.Int16() + external int right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int top, + required int left, + required int bottom, + required int right, + }) => $allocator() + ..ref.top = top + ..ref.left = left + ..ref.bottom = bottom + ..ref.right = right; +} + +final class UnnamedStruct$6 extends ffi.Struct { + @u_int16_t() + external int v; + + @u_int16_t() + external int h; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + required int h, + }) => $allocator() + ..ref.v = v + ..ref.h = h; +} + +final class UnnamedStruct$7 extends ffi.Struct { + @ffi.Int16() + external int v; + + @ffi.Int16() + external int h; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + required int h, + }) => $allocator() + ..ref.v = v + ..ref.h = h; +} + +final class UnnamedStruct$8 extends ffi.Struct { + @ffi.Char() + external int lo; + + @ffi.Char() + external int hi; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lo, + required int hi, + }) => $allocator() + ..ref.lo = lo + ..ref.hi = hi; +} + +final class UnnamedStruct$9 extends ffi.Struct { + @SInt16() + external int deltaAxis1; + + @SInt16() + external int deltaAxis2; + + @SInt16() + external int deltaAxis3; + + @SInt16() + external int reserved1; + + @SInt32() + external int fixedDeltaAxis1; + + @SInt32() + external int fixedDeltaAxis2; + + @SInt32() + external int fixedDeltaAxis3; + + @SInt32() + external int pointDeltaAxis1; + + @SInt32() + external int pointDeltaAxis2; + + @SInt32() + external int pointDeltaAxis3; + + @ffi.Array.multi([4]) + external ffi.Array reserved8; +} + +final class UnnamedUnion extends ffi.Union { + external CSSM_LIST Sublist; + + external SecAsn1Item Word; +} + +final class UnnamedUnion$1 extends ffi.Union { + external CSSM_DATA_PTR CertList; + + external CSSM_ENCODED_CERT_PTR EncodedCertList; + + external CSSM_PARSED_CERT_PTR ParsedCertList; + + external CSSM_CERT_PAIR_PTR PairCertList; +} + +final class UnnamedUnion$10 extends ffi.Union { + external IODetailedTimingInformationV1 v1; + + external IODetailedTimingInformationV2 v2; +} + +final class UnnamedUnion$11 extends ffi.Union { + @UInt32() + external int fullHashWord; + + external PEFSplitHashWord splitHashWord; +} + +final class UnnamedUnion$12 extends ffi.Union { + @ffi.Array.multi([11]) + external ffi.Array F; + + @ffi.Array.multi([11]) + external ffi.Array L; + + @ffi.Array.multi([22]) + external ffi.Array S; + + @ffi.Array.multi([44]) + external ffi.Array C; +} + +final class UnnamedUnion$13 extends ffi.Union { + external NXTabletPointData point; + + external NXTabletProximityData proximity; +} + +final class UnnamedUnion$14 extends ffi.Union { + external NXTabletPointData point; + + external NXTabletProximityData proximity; +} + +final class UnnamedUnion$15 extends ffi.Union { + external arm_thread_state32_t ts_32; + + external arm_thread_state64_t ts_64; +} + +final class UnnamedUnion$16 extends ffi.Union { + @boolean_t() + external int is_master; + + @boolean_t() + external int is_main; +} + +final class UnnamedUnion$2 extends ffi.Union { + external CSSM_DATA_PTR CrlList; + + external CSSM_ENCODED_CRL_PTR EncodedCrlList; + + external CSSM_PARSED_CRL_PTR ParsedCrlList; + + external CSSM_CRL_PAIR_PTR PairCrlList; +} + +final class UnnamedUnion$3 extends ffi.Union { + @ffi.Long() + external int gmtDelta; + + external UnnamedStruct$3 dls; +} + +final class UnnamedUnion$4 extends ffi.Union { + @ffi.Array.multi([2]) + external ffi.Array reserved; + + @mach_port_name_t() + external int work_interval_port; + + external mach_service_port_info_t service_port_info; + + @mach_port_name_t() + external int service_port_name; +} + +final class UnnamedUnion$5 extends ffi.Union { + @ffi.Array.multi([16]) + external ffi.Array<__uint8_t> __u6_addr8; + + @ffi.Array.multi([8]) + external ffi.Array<__uint16_t> __u6_addr16; + + @ffi.Array.multi([4]) + external ffi.Array<__uint32_t> __u6_addr32; +} + +final class UnnamedUnion$6 extends ffi.Union { + @ATSGeneration() + external int generationFilter; + + @ATSFontFamilyRef() + external int fontFamilyFilter; + + external ATSFontFamilyApplierFunction fontFamilyApplierFunctionFilter; + + external ATSFontApplierFunction fontApplierFunctionFilter; +} + +final class UnnamedUnion$7 extends ffi.Union { + external CMVideoCardGammaTable table; + + external CMVideoCardGammaFormula formula; +} + +final class UnnamedUnion$8 extends ffi.Union { + external ffi.Pointer fullName; + + external CSSM_X509_RDN_PTR rdn; +} + +final class UnnamedUnion$9 extends ffi.Union { + @u_int32_t() + external int iNodeNum; + + @u_int32_t() + external int linkCount; + + @u_int32_t() + external int rawDevice; +} + +typedef UnsignedFixed = UInt32; +typedef UnsignedFixedPtr = ffi.Pointer; + +@ffi.Packed(2) +final class UnsignedWide extends ffi.Struct { + @UInt32() + external int lo; + + @UInt32() + external int hi; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lo, + required int hi, + }) => $allocator() + ..ref.lo = lo + ..ref.hi = hi; +} + +typedef UnsignedWidePtr = ffi.Pointer; + +final class UntokenTable extends ffi.Struct { + @ffi.Short() + external int len; + + @ffi.Short() + external int lastToken; + + @ffi.Array.multi([256]) + external ffi.Array index$1; +} + +typedef UntokenTableHandle = ffi.Pointer; +typedef UntokenTablePtr = ffi.Pointer; + +const int UsrActivity = 1; + +typedef VDGamRecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class VDGammaRecord extends ffi.Struct { + external Ptr csGTable; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required Ptr csGTable, + }) => $allocator()..ref.csGTable = csGTable; +} + +typedef VHSelect = SInt8; + +final class Vector128 extends ffi.Union { + @ffi.Array.multi([4]) + external ffi.Array l; + + @ffi.Array.multi([8]) + external ffi.Array s; + + @ffi.Array.multi([16]) + external ffi.Array c; +} + +final class VectorInformation extends ffi.Struct { + external ffi.Pointer __unusedVectorInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedVectorInformationField, + }) => + $allocator() + ..ref.__unusedVectorInformationField = $unusedVectorInformationField; +} + +final class VectorInformationPowerPC extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array Registers; + + external Vector128 VSCR; + + @UInt32() + external int VRsave; +} + +final class VersRec extends ffi.Struct { + external NumVersion numericVersion; + + @ffi.Short() + external int countryCode; + + @ffi.Array.multi([256]) + external ffi.Array shortVersion; + + @ffi.Array.multi([256]) + external ffi.Array reserved; +} + +typedef VersRecHndl = ffi.Pointer; +typedef VersRecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class VoiceDescription extends ffi.Struct { + @SInt32() + external int length; + + external VoiceSpec voice; + + @SInt32() + external int version; + + @ffi.Array.multi([64]) + external ffi.Array name; + + @ffi.Array.multi([256]) + external ffi.Array comment; + + @SInt16() + external int gender; + + @SInt16() + external int age; + + @SInt16() + external int script; + + @SInt16() + external int language; + + @SInt16() + external int region; + + @ffi.Array.multi([4]) + external ffi.Array reserved; +} + +final class VoiceFileInfo extends ffi.Struct { + external FSSpec fileSpec; + + @SInt16() + external int resID; +} + +@ffi.Packed(2) +final class VoiceSpec extends ffi.Struct { + @OSType() + external int creator; + + @OSType() + external int id; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int creator, + required int id, + }) => $allocator() + ..ref.creator = creator + ..ref.id = id; +} + +typedef VoiceSpecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class VolMountInfoHeader extends ffi.Struct { + @SInt16() + external int length; + + @VolumeType() + external int media; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int length, + required int media, + }) => $allocator() + ..ref.length = length + ..ref.media = media; +} + +typedef VolMountInfoPtr = ffi.Pointer; + +@ffi.Packed(2) +final class VolumeMountInfoHeader extends ffi.Struct { + @SInt16() + external int length; + + @VolumeType() + external int media; + + @SInt16() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int length, + required int media, + required int flags, + }) => $allocator() + ..ref.length = length + ..ref.media = media + ..ref.flags = flags; +} + +typedef VolumeMountInfoHeaderPtr = ffi.Pointer; +typedef VolumeType = OSType; + +const int WDEFNFnd = 87; + +@ffi.Packed(2) +final class WSClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external WSClientContextRetainCallBackProcPtr retain; + + external WSClientContextReleaseCallBackProcPtr release; + + external WSClientContextCopyDescriptionCallBackProcPtr copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required WSClientContextRetainCallBackProcPtr retain, + required WSClientContextReleaseCallBackProcPtr release, + required WSClientContextCopyDescriptionCallBackProcPtr copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef WSClientContextCopyDescriptionCallBackProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef WSClientContextCopyDescriptionCallBackProcPtrFunction = + CFStringRef Function(ffi.Pointer info); +typedef WSClientContextReleaseCallBackProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef WSClientContextReleaseCallBackProcPtrFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartWSClientContextReleaseCallBackProcPtrFunction = + void Function(ffi.Pointer info); +typedef WSClientContextRetainCallBackProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef WSClientContextRetainCallBackProcPtrFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef WSMethodInvocationCallBackProcPtr = + ffi.Pointer>; +typedef WSMethodInvocationCallBackProcPtrFunction = + ffi.Void Function( + WSMethodInvocationRef invocation, + ffi.Pointer info, + CFDictionaryRef outRef, + ); +typedef DartWSMethodInvocationCallBackProcPtrFunction = + void Function( + WSMethodInvocationRef invocation, + ffi.Pointer info, + CFDictionaryRef outRef, + ); +typedef WSMethodInvocationDeserializationProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef WSMethodInvocationDeserializationProcPtrFunction = + CFTypeRef Function( + WSMethodInvocationRef invocation, + CFXMLTreeRef msgRoot, + CFXMLTreeRef deserializeRoot, + ffi.Pointer info, + ); +typedef WSMethodInvocationRef = ffi.Pointer; +typedef WSMethodInvocationSerializationProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef WSMethodInvocationSerializationProcPtrFunction = + CFStringRef Function( + WSMethodInvocationRef invocation, + CFTypeRef obj, + ffi.Pointer info, + ); +typedef WSProtocolHandlerDeserializationProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef WSProtocolHandlerDeserializationProcPtrFunction = + CFTypeRef Function( + WSProtocolHandlerRef protocol, + CFXMLTreeRef msgRoot, + CFXMLTreeRef deserializeRoot, + ffi.Pointer info, + ); +typedef WSProtocolHandlerRef = ffi.Pointer; +typedef WSProtocolHandlerSerializationProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef WSProtocolHandlerSerializationProcPtrFunction = + CFStringRef Function( + WSProtocolHandlerRef protocol, + CFTypeRef obj, + ffi.Pointer info, + ); + +enum WSTypeID { + eWSUnknownType(0), + eWSNullType(1), + eWSBooleanType(2), + eWSIntegerType(3), + eWSDoubleType(4), + eWSStringType(5), + eWSDateType(6), + eWSDataType(7), + eWSArrayType(8), + eWSDictionaryType(9); + + final int value; + const WSTypeID(this.value); + + static WSTypeID fromValue(int value) => switch (value) { + 0 => eWSUnknownType, + 1 => eWSNullType, + 2 => eWSBooleanType, + 3 => eWSIntegerType, + 4 => eWSDoubleType, + 5 => eWSStringType, + 6 => eWSDateType, + 7 => eWSDataType, + 8 => eWSArrayType, + 9 => eWSDictionaryType, + _ => throw ArgumentError('Unknown value for WSTypeID: $value'), + }; +} + +final class WideChar extends ffi.Union { + external UnnamedStruct$8 a; + + @ffi.Short() + external int b; +} + +final class WideCharArr extends ffi.Struct { + @ffi.Short() + external int size; + + @ffi.Array.multi([10]) + external ffi.Array data; +} + +typedef WidePtr = ffi.Pointer; +typedef WindowPtr = ffi.Pointer; +typedef WindowRef = WindowPtr; + +final class WritingCode extends ffi.Struct { + @ScriptCode() + external int theScriptCode; + + @LangCode() + external int theLangCode; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int theScriptCode, + required int theLangCode, + }) => $allocator() + ..ref.theScriptCode = theScriptCode + ..ref.theLangCode = theLangCode; +} + +@ffi.Packed(2) +final class XLibContainerHeader extends ffi.Struct { + @OSType() + external int tag1; + + @OSType() + external int tag2; + + @UInt32() + external int currentFormat; + + @UInt32() + external int containerStringsOffset; + + @UInt32() + external int exportHashOffset; + + @UInt32() + external int exportKeyOffset; + + @UInt32() + external int exportSymbolOffset; + + @UInt32() + external int exportNamesOffset; + + @UInt32() + external int exportHashTablePower; + + @UInt32() + external int exportedSymbolCount; + + @UInt32() + external int fragNameOffset; + + @UInt32() + external int fragNameLength; + + @UInt32() + external int dylibPathOffset; + + @UInt32() + external int dylibPathLength; + + @OSType() + external int cpuFamily; + + @OSType() + external int cpuModel; + + @UInt32() + external int dateTimeStamp; + + @UInt32() + external int currentVersion; + + @UInt32() + external int oldDefVersion; + + @UInt32() + external int oldImpVersion; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tag1, + required int tag2, + required int currentFormat, + required int containerStringsOffset, + required int exportHashOffset, + required int exportKeyOffset, + required int exportSymbolOffset, + required int exportNamesOffset, + required int exportHashTablePower, + required int exportedSymbolCount, + required int fragNameOffset, + required int fragNameLength, + required int dylibPathOffset, + required int dylibPathLength, + required int cpuFamily, + required int cpuModel, + required int dateTimeStamp, + required int currentVersion, + required int oldDefVersion, + required int oldImpVersion, + }) => $allocator() + ..ref.tag1 = tag1 + ..ref.tag2 = tag2 + ..ref.currentFormat = currentFormat + ..ref.containerStringsOffset = containerStringsOffset + ..ref.exportHashOffset = exportHashOffset + ..ref.exportKeyOffset = exportKeyOffset + ..ref.exportSymbolOffset = exportSymbolOffset + ..ref.exportNamesOffset = exportNamesOffset + ..ref.exportHashTablePower = exportHashTablePower + ..ref.exportedSymbolCount = exportedSymbolCount + ..ref.fragNameOffset = fragNameOffset + ..ref.fragNameLength = fragNameLength + ..ref.dylibPathOffset = dylibPathOffset + ..ref.dylibPathLength = dylibPathLength + ..ref.cpuFamily = cpuFamily + ..ref.cpuModel = cpuModel + ..ref.dateTimeStamp = dateTimeStamp + ..ref.currentVersion = currentVersion + ..ref.oldDefVersion = oldDefVersion + ..ref.oldImpVersion = oldImpVersion; +} + +@ffi.Packed(2) +final class XLibExportedSymbol extends ffi.Struct { + @UInt32() + external int classAndName; + + @UInt32() + external int bpOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int classAndName, + required int bpOffset, + }) => $allocator() + ..ref.classAndName = classAndName + ..ref.bpOffset = bpOffset; +} + +typedef XLibExportedSymbolHashSlot = PEFExportedSymbolHashSlot; +typedef XLibExportedSymbolKey = PEFExportedSymbolKey; + +const int XPC_ACTIVITY_STATE_CHECK_IN = 0; + +const int XPC_ACTIVITY_STATE_CONTINUE = 4; + +const int XPC_ACTIVITY_STATE_DEFER = 3; + +const int XPC_ACTIVITY_STATE_DONE = 5; + +const int XPC_ACTIVITY_STATE_RUN = 2; + +const int XPC_ACTIVITY_STATE_WAIT = 1; + +extension type _BlockArgs_112ozxo._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_112ozxo] that points to the same underlying object as [other]. + _BlockArgs_112ozxo.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_112ozxo] that wraps the given raw object pointer. + _BlockArgs_112ozxo.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_112ozxo]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_112ozxo, + ); +} + +extension _BlockArgs_112ozxo$Methods on _BlockArgs_112ozxo { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg3); + return ObjCBlock_ffiVoid_NSInputStream.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_117e0ww._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_117e0ww] that points to the same underlying object as [other]. + _BlockArgs_117e0ww.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_117e0ww] that wraps the given raw object pointer. + _BlockArgs_117e0ww.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_117e0ww]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_117e0ww, + ); +} + +extension _BlockArgs_117e0ww$Methods on _BlockArgs_117e0ww { + objc.NSError? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_11uyayp._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_11uyayp] that points to the same underlying object as [other]. + _BlockArgs_11uyayp.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_11uyayp] that wraps the given raw object pointer. + _BlockArgs_11uyayp.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_11uyayp]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_11uyayp, + ); +} + +extension _BlockArgs_11uyayp$Methods on _BlockArgs_11uyayp { + Dartdispatch_data_t? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + int get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_121fmzs._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_121fmzs] that points to the same underlying object as [other]. + _BlockArgs_121fmzs.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_121fmzs] that wraps the given raw object pointer. + _BlockArgs_121fmzs.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_121fmzs]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_121fmzs, + ); +} + +extension _BlockArgs_121fmzs$Methods on _BlockArgs_121fmzs { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_12cm2y5._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_12cm2y5] that points to the same underlying object as [other]. + _BlockArgs_12cm2y5.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_12cm2y5] that wraps the given raw object pointer. + _BlockArgs_12cm2y5.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_12cm2y5]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_12cm2y5, + ); +} + +extension _BlockArgs_12cm2y5$Methods on _BlockArgs_12cm2y5 { + objc.ObjCBlock? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_12rv5aa._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_12rv5aa] that points to the same underlying object as [other]. + _BlockArgs_12rv5aa.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_12rv5aa] that wraps the given raw object pointer. + _BlockArgs_12rv5aa.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_12rv5aa]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_12rv5aa, + ); +} + +extension _BlockArgs_12rv5aa$Methods on _BlockArgs_12rv5aa { + SecTrustRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_arg0); + } + + SecTrustResultType get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_1hbj4cd(_$$ref.pointer, _sel_arg1); + return SecTrustResultType.fromValue($ret); + } +} + +extension type _BlockArgs_12tf05r._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_12tf05r] that points to the same underlying object as [other]. + _BlockArgs_12tf05r.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_12tf05r] that wraps the given raw object pointer. + _BlockArgs_12tf05r.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_12tf05r]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_12tf05r, + ); +} + +extension _BlockArgs_12tf05r$Methods on _BlockArgs_12tf05r { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_12ykekb._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_12ykekb] that points to the same underlying object as [other]. + _BlockArgs_12ykekb.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_12ykekb] that wraps the given raw object pointer. + _BlockArgs_12ykekb.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_12ykekb]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_12ykekb, + ); +} + +extension _BlockArgs_12ykekb$Methods on _BlockArgs_12ykekb { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + NSURLRequest get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLRequest.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_133h48c._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_133h48c] that points to the same underlying object as [other]. + _BlockArgs_133h48c.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_133h48c] that wraps the given raw object pointer. + _BlockArgs_133h48c.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_133h48c]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_133h48c, + ); +} + +extension _BlockArgs_133h48c$Methods on _BlockArgs_133h48c { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + DartNSInteger get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg2); + } + + DartNSInteger get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg3); + } + + DartNSInteger get arg4 { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg4); + } +} + +extension type _BlockArgs_136y7ma._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_136y7ma] that points to the same underlying object as [other]. + _BlockArgs_136y7ma.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_136y7ma] that wraps the given raw object pointer. + _BlockArgs_136y7ma.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_136y7ma]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_136y7ma, + ); +} + +extension _BlockArgs_136y7ma$Methods on _BlockArgs_136y7ma { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURLHandle get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_13g89k6._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_13g89k6] that points to the same underlying object as [other]. + _BlockArgs_13g89k6.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_13g89k6] that wraps the given raw object pointer. + _BlockArgs_13g89k6.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_13g89k6]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_13g89k6, + ); +} + +extension _BlockArgs_13g89k6$Methods on _BlockArgs_13g89k6 { + CFErrorRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_13o2rom._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_13o2rom] that points to the same underlying object as [other]. + _BlockArgs_13o2rom.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_13o2rom] that wraps the given raw object pointer. + _BlockArgs_13o2rom.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_13o2rom]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_13o2rom, + ); +} + +extension _BlockArgs_13o2rom$Methods on _BlockArgs_13o2rom { + NSURLCredential? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSURLCredential.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_13sb76x._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_13sb76x] that points to the same underlying object as [other]. + _BlockArgs_13sb76x.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_13sb76x] that wraps the given raw object pointer. + _BlockArgs_13sb76x.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_13sb76x]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_13sb76x, + ); +} + +extension _BlockArgs_13sb76x$Methods on _BlockArgs_13sb76x { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_140cpyj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_140cpyj] that points to the same underlying object as [other]. + _BlockArgs_140cpyj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_140cpyj] that wraps the given raw object pointer. + _BlockArgs_140cpyj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_140cpyj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_140cpyj, + ); +} + +extension _BlockArgs_140cpyj$Methods on _BlockArgs_140cpyj { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDataTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDownloadTask get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_14dahaa._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_14dahaa] that points to the same underlying object as [other]. + _BlockArgs_14dahaa.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_14dahaa] that wraps the given raw object pointer. + _BlockArgs_14dahaa.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_14dahaa]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_14dahaa, + ); +} + +extension _BlockArgs_14dahaa$Methods on _BlockArgs_14dahaa { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + objc.NSError get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_14lm7fk._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_14lm7fk] that points to the same underlying object as [other]. + _BlockArgs_14lm7fk.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_14lm7fk] that wraps the given raw object pointer. + _BlockArgs_14lm7fk.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_14lm7fk]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_14lm7fk, + ); +} + +extension _BlockArgs_14lm7fk$Methods on _BlockArgs_14lm7fk { + CFRunLoopObserverRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1bonwe(_$$ref.pointer, _sel_arg0); + } + + DartCFOptionFlags get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_vkpxx6(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_15cdu5z._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_15cdu5z] that points to the same underlying object as [other]. + _BlockArgs_15cdu5z.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_15cdu5z] that wraps the given raw object pointer. + _BlockArgs_15cdu5z.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_15cdu5z]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_15cdu5z, + ); +} + +extension _BlockArgs_15cdu5z$Methods on _BlockArgs_15cdu5z { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDataTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + NSCachedURLResponse get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSCachedURLResponse.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + return ObjCBlock_ffiVoid_NSCachedURLResponse.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_15jt9u5._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_15jt9u5] that points to the same underlying object as [other]. + _BlockArgs_15jt9u5.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_15jt9u5] that wraps the given raw object pointer. + _BlockArgs_15jt9u5.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_15jt9u5]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_15jt9u5, + ); +} + +extension _BlockArgs_15jt9u5$Methods on _BlockArgs_15jt9u5 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_15vjajw._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_15vjajw] that points to the same underlying object as [other]. + _BlockArgs_15vjajw.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_15vjajw] that wraps the given raw object pointer. + _BlockArgs_15vjajw.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_15vjajw]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_15vjajw, + ); +} + +extension _BlockArgs_15vjajw$Methods on _BlockArgs_15vjajw { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_16ix251._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_16ix251] that points to the same underlying object as [other]. + _BlockArgs_16ix251.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_16ix251] that wraps the given raw object pointer. + _BlockArgs_16ix251.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_16ix251]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_16ix251, + ); +} + +extension _BlockArgs_16ix251$Methods on _BlockArgs_16ix251 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDataTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_16t4ozp._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_16t4ozp] that points to the same underlying object as [other]. + _BlockArgs_16t4ozp.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_16t4ozp] that wraps the given raw object pointer. + _BlockArgs_16t4ozp.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_16t4ozp]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_16t4ozp, + ); +} + +extension _BlockArgs_16t4ozp$Methods on _BlockArgs_16t4ozp { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetService get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetService.fromPointer($ret, retain: true, release: true); + } + + objc.NSDictionary get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_170i760._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_170i760] that points to the same underlying object as [other]. + _BlockArgs_170i760.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_170i760] that wraps the given raw object pointer. + _BlockArgs_170i760.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_170i760]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_170i760, + ); +} + +extension _BlockArgs_170i760$Methods on _BlockArgs_170i760 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSKeyedArchiver get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCObject? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + objc.ObjCObject? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_171cldw._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_171cldw] that points to the same underlying object as [other]. + _BlockArgs_171cldw.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_171cldw] that wraps the given raw object pointer. + _BlockArgs_171cldw.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_171cldw]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_171cldw, + ); +} + +extension _BlockArgs_171cldw$Methods on _BlockArgs_171cldw { + NSURLSessionDelayedRequestDisposition get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_tyifel(_$$ref.pointer, _sel_arg0); + return NSURLSessionDelayedRequestDisposition.fromValue($ret); + } + + NSURLRequest? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : NSURLRequest.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_17jmtfx._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_17jmtfx] that points to the same underlying object as [other]. + _BlockArgs_17jmtfx.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_17jmtfx] that wraps the given raw object pointer. + _BlockArgs_17jmtfx.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_17jmtfx]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_17jmtfx, + ); +} + +extension _BlockArgs_17jmtfx$Methods on _BlockArgs_17jmtfx { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionWebSocketTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionWebSocketTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + NSURLSessionWebSocketCloseCode get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_1rhk8uh(_$$ref.pointer, _sel_arg3); + return NSURLSessionWebSocketCloseCode.fromValue($ret); + } + + objc.NSData? get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_17mefw7._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_17mefw7] that points to the same underlying object as [other]. + _BlockArgs_17mefw7.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_17mefw7] that wraps the given raw object pointer. + _BlockArgs_17mefw7.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_17mefw7]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_17mefw7, + ); +} + +extension _BlockArgs_17mefw7$Methods on _BlockArgs_17mefw7 { + CFArrayRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_odvxky(_$$ref.pointer, _sel_arg0); + } + + CFErrorRef get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_17xklgp._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_17xklgp] that points to the same underlying object as [other]. + _BlockArgs_17xklgp.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_17xklgp] that wraps the given raw object pointer. + _BlockArgs_17xklgp.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_17xklgp]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_17xklgp, + ); +} + +extension _BlockArgs_17xklgp$Methods on _BlockArgs_17xklgp { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSError get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_18kc0nv._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_18kc0nv] that points to the same underlying object as [other]. + _BlockArgs_18kc0nv.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_18kc0nv] that wraps the given raw object pointer. + _BlockArgs_18kc0nv.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_18kc0nv]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_18kc0nv, + ); +} + +extension _BlockArgs_18kc0nv$Methods on _BlockArgs_18kc0nv { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_197qivc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_197qivc] that points to the same underlying object as [other]. + _BlockArgs_197qivc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_197qivc] that wraps the given raw object pointer. + _BlockArgs_197qivc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_197qivc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_197qivc, + ); +} + +extension _BlockArgs_197qivc$Methods on _BlockArgs_197qivc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSUserActivity get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSUserActivity.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_19pyqcd._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_19pyqcd] that points to the same underlying object as [other]. + _BlockArgs_19pyqcd.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_19pyqcd] that wraps the given raw object pointer. + _BlockArgs_19pyqcd.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_19pyqcd]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_19pyqcd, + ); +} + +extension _BlockArgs_19pyqcd$Methods on _BlockArgs_19pyqcd { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + DartNSUInteger get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_19rrqmo._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_19rrqmo] that points to the same underlying object as [other]. + _BlockArgs_19rrqmo.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_19rrqmo] that wraps the given raw object pointer. + _BlockArgs_19rrqmo.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_19rrqmo]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_19rrqmo, + ); +} + +extension _BlockArgs_19rrqmo$Methods on _BlockArgs_19rrqmo { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetServiceBrowser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1ayzt6i._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ayzt6i] that points to the same underlying object as [other]. + _BlockArgs_1ayzt6i.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ayzt6i] that wraps the given raw object pointer. + _BlockArgs_1ayzt6i.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ayzt6i]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ayzt6i, + ); +} + +extension _BlockArgs_1ayzt6i$Methods on _BlockArgs_1ayzt6i { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + NSHTTPURLResponse get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSHTTPURLResponse.fromPointer($ret, retain: true, release: true); + } + + NSURLRequest get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return NSURLRequest.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg5 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg5); + return ObjCBlock_ffiVoid_NSURLRequest.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1ciefi0._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ciefi0] that points to the same underlying object as [other]. + _BlockArgs_1ciefi0.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ciefi0] that wraps the given raw object pointer. + _BlockArgs_1ciefi0.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ciefi0]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ciefi0, + ); +} + +extension _BlockArgs_1ciefi0$Methods on _BlockArgs_1ciefi0 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSKeyedArchiver get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1e1kc88._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1e1kc88] that points to the same underlying object as [other]. + _BlockArgs_1e1kc88.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1e1kc88] that wraps the given raw object pointer. + _BlockArgs_1e1kc88.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1e1kc88]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1e1kc88, + ); +} + +extension _BlockArgs_1e1kc88$Methods on _BlockArgs_1e1kc88 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSPortMessage get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSPortMessage.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1e3xl1p._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1e3xl1p] that points to the same underlying object as [other]. + _BlockArgs_1e3xl1p.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1e3xl1p] that wraps the given raw object pointer. + _BlockArgs_1e3xl1p.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1e3xl1p]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1e3xl1p, + ); +} + +extension _BlockArgs_1e3xl1p$Methods on _BlockArgs_1e3xl1p { + Dartsec_protocol_metadata_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartsec_trust_t get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartsec_protocol_verify_complete_t get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); + return ObjCBlock_ffiVoid_bool.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1ek5uoy._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ek5uoy] that points to the same underlying object as [other]. + _BlockArgs_1ek5uoy.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ek5uoy] that wraps the given raw object pointer. + _BlockArgs_1ek5uoy.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ek5uoy]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ek5uoy, + ); +} + +extension _BlockArgs_1ek5uoy$Methods on _BlockArgs_1ek5uoy { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1f64crj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1f64crj] that points to the same underlying object as [other]. + _BlockArgs_1f64crj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1f64crj] that wraps the given raw object pointer. + _BlockArgs_1f64crj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1f64crj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1f64crj, + ); +} + +extension _BlockArgs_1f64crj$Methods on _BlockArgs_1f64crj { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1fj0jrw._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1fj0jrw] that points to the same underlying object as [other]. + _BlockArgs_1fj0jrw.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1fj0jrw] that wraps the given raw object pointer. + _BlockArgs_1fj0jrw.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1fj0jrw]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1fj0jrw, + ); +} + +extension _BlockArgs_1fj0jrw$Methods on _BlockArgs_1fj0jrw { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1giidhf._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1giidhf] that points to the same underlying object as [other]. + _BlockArgs_1giidhf.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1giidhf] that wraps the given raw object pointer. + _BlockArgs_1giidhf.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1giidhf]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1giidhf, + ); +} + +extension _BlockArgs_1giidhf$Methods on _BlockArgs_1giidhf { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + AVAudioPlayer get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return AVAudioPlayer.fromPointer($ret, retain: true, release: true); + } + + bool get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_1gmgda9._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1gmgda9] that points to the same underlying object as [other]. + _BlockArgs_1gmgda9.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1gmgda9] that wraps the given raw object pointer. + _BlockArgs_1gmgda9.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1gmgda9]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1gmgda9, + ); +} + +extension _BlockArgs_1gmgda9$Methods on _BlockArgs_1gmgda9 { + NSAppleEventDescriptor? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSAppleEventDescriptor.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1hj9xku._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1hj9xku] that points to the same underlying object as [other]. + _BlockArgs_1hj9xku.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1hj9xku] that wraps the given raw object pointer. + _BlockArgs_1hj9xku.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1hj9xku]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1hj9xku, + ); +} + +extension _BlockArgs_1hj9xku$Methods on _BlockArgs_1hj9xku { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1hs0ws6._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1hs0ws6] that points to the same underlying object as [other]. + _BlockArgs_1hs0ws6.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1hs0ws6] that wraps the given raw object pointer. + _BlockArgs_1hs0ws6.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1hs0ws6]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1hs0ws6, + ); +} + +extension _BlockArgs_1hs0ws6$Methods on _BlockArgs_1hs0ws6 { + CFErrorRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg0); + } + + ffi.Pointer get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1vkunzi(_$$ref.pointer, _sel_arg1); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1wgub22(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_1hwelu._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1hwelu] that points to the same underlying object as [other]. + _BlockArgs_1hwelu.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1hwelu] that wraps the given raw object pointer. + _BlockArgs_1hwelu.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1hwelu]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1hwelu, + ); +} + +extension _BlockArgs_1hwelu$Methods on _BlockArgs_1hwelu { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1i7oea2._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1i7oea2] that points to the same underlying object as [other]. + _BlockArgs_1i7oea2.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1i7oea2] that wraps the given raw object pointer. + _BlockArgs_1i7oea2.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1i7oea2]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1i7oea2, + ); +} + +extension _BlockArgs_1i7oea2$Methods on _BlockArgs_1i7oea2 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1j32c3t._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1j32c3t] that points to the same underlying object as [other]. + _BlockArgs_1j32c3t.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1j32c3t] that wraps the given raw object pointer. + _BlockArgs_1j32c3t.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1j32c3t]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1j32c3t, + ); +} + +extension _BlockArgs_1j32c3t$Methods on _BlockArgs_1j32c3t { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSUserActivity get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSUserActivity.fromPointer($ret, retain: true, release: true); + } + + objc.NSInputStream get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + objc.NSOutputStream get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1jcra61._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1jcra61] that points to the same underlying object as [other]. + _BlockArgs_1jcra61.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1jcra61] that wraps the given raw object pointer. + _BlockArgs_1jcra61.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1jcra61]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1jcra61, + ); +} + +extension _BlockArgs_1jcra61$Methods on _BlockArgs_1jcra61 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1kowxjl._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1kowxjl] that points to the same underlying object as [other]. + _BlockArgs_1kowxjl.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1kowxjl] that wraps the given raw object pointer. + _BlockArgs_1kowxjl.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1kowxjl]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1kowxjl, + ); +} + +extension _BlockArgs_1kowxjl$Methods on _BlockArgs_1kowxjl { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSDictionary get arg5 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1l7b9ji._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1l7b9ji] that points to the same underlying object as [other]. + _BlockArgs_1l7b9ji.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1l7b9ji] that wraps the given raw object pointer. + _BlockArgs_1l7b9ji.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1l7b9ji]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1l7b9ji, + ); +} + +extension _BlockArgs_1l7b9ji$Methods on _BlockArgs_1l7b9ji { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDownloadTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + } + + int get arg4 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); + } +} + +extension type _BlockArgs_1lr5l4t._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1lr5l4t] that points to the same underlying object as [other]. + _BlockArgs_1lr5l4t.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1lr5l4t] that wraps the given raw object pointer. + _BlockArgs_1lr5l4t.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1lr5l4t]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1lr5l4t, + ); +} + +extension _BlockArgs_1lr5l4t$Methods on _BlockArgs_1lr5l4t { + CGDisplayStreamFrameStatus get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_jbzgy2(_$$ref.pointer, _sel_arg0); + return CGDisplayStreamFrameStatus.fromValue($ret); + } + + int get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_9qbz9w(_$$ref.pointer, _sel_arg1); + } + + IOSurfaceRef get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_11nrymb(_$$ref.pointer, _sel_arg2); + } + + CGDisplayStreamUpdateRef get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_16a25o7(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_1ltqoqj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ltqoqj] that points to the same underlying object as [other]. + _BlockArgs_1ltqoqj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ltqoqj] that wraps the given raw object pointer. + _BlockArgs_1ltqoqj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ltqoqj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ltqoqj, + ); +} + +extension _BlockArgs_1ltqoqj$Methods on _BlockArgs_1ltqoqj { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + DartNSUInteger get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_1mv87bk._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1mv87bk] that points to the same underlying object as [other]. + _BlockArgs_1mv87bk.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1mv87bk] that wraps the given raw object pointer. + _BlockArgs_1mv87bk.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1mv87bk]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1mv87bk, + ); +} + +extension _BlockArgs_1mv87bk$Methods on _BlockArgs_1mv87bk { + objc.NSData? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1n468bj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1n468bj] that points to the same underlying object as [other]. + _BlockArgs_1n468bj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1n468bj] that wraps the given raw object pointer. + _BlockArgs_1n468bj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1n468bj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1n468bj, + ); +} + +extension _BlockArgs_1n468bj$Methods on _BlockArgs_1n468bj { + Dartdispatch_data_t? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1n5meg5._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1n5meg5] that points to the same underlying object as [other]. + _BlockArgs_1n5meg5.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1n5meg5] that wraps the given raw object pointer. + _BlockArgs_1n5meg5.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1n5meg5]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1n5meg5, + ); +} + +extension _BlockArgs_1n5meg5$Methods on _BlockArgs_1n5meg5 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + NSHTTPURLResponse get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSHTTPURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1n6ph2._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1n6ph2] that points to the same underlying object as [other]. + _BlockArgs_1n6ph2.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1n6ph2] that wraps the given raw object pointer. + _BlockArgs_1n6ph2.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1n6ph2]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1n6ph2, + ); +} + +extension _BlockArgs_1n6ph2$Methods on _BlockArgs_1n6ph2 { + NSURLRequest? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSURLRequest.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1nn0na._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1nn0na] that points to the same underlying object as [other]. + _BlockArgs_1nn0na.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1nn0na] that wraps the given raw object pointer. + _BlockArgs_1nn0na.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1nn0na]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1nn0na, + ); +} + +extension _BlockArgs_1nn0na$Methods on _BlockArgs_1nn0na { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetServiceBrowser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + bool get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_1nq9pr6._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1nq9pr6] that points to the same underlying object as [other]. + _BlockArgs_1nq9pr6.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1nq9pr6] that wraps the given raw object pointer. + _BlockArgs_1nq9pr6.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1nq9pr6]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1nq9pr6, + ); +} + +extension _BlockArgs_1nq9pr6$Methods on _BlockArgs_1nq9pr6 { + Dartsec_protocol_metadata_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartdispatch_data_t? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartsec_protocol_pre_shared_key_selection_complete_t get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); + return ObjCBlock_ffiVoid_NSObject$1.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1o2efq5._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1o2efq5] that points to the same underlying object as [other]. + _BlockArgs_1o2efq5.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1o2efq5] that wraps the given raw object pointer. + _BlockArgs_1o2efq5.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1o2efq5]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1o2efq5, + ); +} + +extension _BlockArgs_1o2efq5$Methods on _BlockArgs_1o2efq5 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSKeyedUnarchiver get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSKeyedUnarchiver.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCObject get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.ObjCObject($ret, retain: true, release: true); + } + + objc.ObjCObject get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1o8dtl._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1o8dtl] that points to the same underlying object as [other]. + _BlockArgs_1o8dtl.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1o8dtl] that wraps the given raw object pointer. + _BlockArgs_1o8dtl.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1o8dtl]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1o8dtl, + ); +} + +extension _BlockArgs_1o8dtl$Methods on _BlockArgs_1o8dtl { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLCredential get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLCredential.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1odc9lb._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1odc9lb] that points to the same underlying object as [other]. + _BlockArgs_1odc9lb.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1odc9lb] that wraps the given raw object pointer. + _BlockArgs_1odc9lb.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1odc9lb]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1odc9lb, + ); +} + +extension _BlockArgs_1odc9lb$Methods on _BlockArgs_1odc9lb { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + objc.NSURL get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1oetg5g._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1oetg5g] that points to the same underlying object as [other]. + _BlockArgs_1oetg5g.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1oetg5g] that wraps the given raw object pointer. + _BlockArgs_1oetg5g.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1oetg5g]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1oetg5g, + ); +} + +extension _BlockArgs_1oetg5g$Methods on _BlockArgs_1oetg5g { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSKeyedArchiver get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCObject? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1oftdow._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1oftdow] that points to the same underlying object as [other]. + _BlockArgs_1oftdow.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1oftdow] that wraps the given raw object pointer. + _BlockArgs_1oftdow.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1oftdow]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1oftdow, + ); +} + +extension _BlockArgs_1oftdow$Methods on _BlockArgs_1oftdow { + NSURLResponse? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + objc.NSData? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1p1ax08._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1p1ax08] that points to the same underlying object as [other]. + _BlockArgs_1p1ax08.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1p1ax08] that wraps the given raw object pointer. + _BlockArgs_1p1ax08.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1p1ax08]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1p1ax08, + ); +} + +extension _BlockArgs_1p1ax08$Methods on _BlockArgs_1p1ax08 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1p7ak3v._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1p7ak3v] that points to the same underlying object as [other]. + _BlockArgs_1p7ak3v.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1p7ak3v] that wraps the given raw object pointer. + _BlockArgs_1p7ak3v.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1p7ak3v]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1p7ak3v, + ); +} + +extension _BlockArgs_1p7ak3v$Methods on _BlockArgs_1p7ak3v { + objc.NSArray? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1pfucun._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1pfucun] that points to the same underlying object as [other]. + _BlockArgs_1pfucun.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1pfucun] that wraps the given raw object pointer. + _BlockArgs_1pfucun.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1pfucun]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1pfucun, + ); +} + +extension _BlockArgs_1pfucun$Methods on _BlockArgs_1pfucun { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDownloadTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + } + + int get arg4 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); + } + + int get arg5 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg5); + } +} + +extension type _BlockArgs_1pfw36l._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1pfw36l] that points to the same underlying object as [other]. + _BlockArgs_1pfw36l.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1pfw36l] that wraps the given raw object pointer. + _BlockArgs_1pfw36l.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1pfw36l]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1pfw36l, + ); +} + +extension _BlockArgs_1pfw36l$Methods on _BlockArgs_1pfw36l { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSKeyedUnarchiver get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSKeyedUnarchiver.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1pj0but._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1pj0but] that points to the same underlying object as [other]. + _BlockArgs_1pj0but.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1pj0but] that wraps the given raw object pointer. + _BlockArgs_1pj0but.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1pj0but]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1pj0but, + ); +} + +extension _BlockArgs_1pj0but$Methods on _BlockArgs_1pj0but { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetService get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetService.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1ptzs7z._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ptzs7z] that points to the same underlying object as [other]. + _BlockArgs_1ptzs7z.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ptzs7z] that wraps the given raw object pointer. + _BlockArgs_1ptzs7z.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ptzs7z]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ptzs7z, + ); +} + +extension _BlockArgs_1ptzs7z$Methods on _BlockArgs_1ptzs7z { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSString get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1pvrxoh._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1pvrxoh] that points to the same underlying object as [other]. + _BlockArgs_1pvrxoh.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1pvrxoh] that wraps the given raw object pointer. + _BlockArgs_1pvrxoh.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1pvrxoh]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1pvrxoh, + ); +} + +extension _BlockArgs_1pvrxoh$Methods on _BlockArgs_1pvrxoh { + objc.NSString? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + NSRange get arg1 { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + NSRange get arg2 { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg2) + : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg2); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + ffi.Pointer get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_1q305zu._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1q305zu] that points to the same underlying object as [other]. + _BlockArgs_1q305zu.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1q305zu] that wraps the given raw object pointer. + _BlockArgs_1q305zu.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1q305zu]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1q305zu, + ); +} + +extension _BlockArgs_1q305zu$Methods on _BlockArgs_1q305zu { + Dartsec_certificate_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1r6tt56._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1r6tt56] that points to the same underlying object as [other]. + _BlockArgs_1r6tt56.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1r6tt56] that wraps the given raw object pointer. + _BlockArgs_1r6tt56.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1r6tt56]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1r6tt56, + ); +} + +extension _BlockArgs_1r6tt56$Methods on _BlockArgs_1r6tt56 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1s0z6xl._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1s0z6xl] that points to the same underlying object as [other]. + _BlockArgs_1s0z6xl.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1s0z6xl] that wraps the given raw object pointer. + _BlockArgs_1s0z6xl.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1s0z6xl]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1s0z6xl, + ); +} + +extension _BlockArgs_1s0z6xl$Methods on _BlockArgs_1s0z6xl { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.ObjCBlock get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + return ObjCBlock_ffiVoid_NSError.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1s2j81k._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1s2j81k] that points to the same underlying object as [other]. + _BlockArgs_1s2j81k.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1s2j81k] that wraps the given raw object pointer. + _BlockArgs_1s2j81k.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1s2j81k]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1s2j81k, + ); +} + +extension _BlockArgs_1s2j81k$Methods on _BlockArgs_1s2j81k { + int get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_1siniii._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1siniii] that points to the same underlying object as [other]. + _BlockArgs_1siniii.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1siniii] that wraps the given raw object pointer. + _BlockArgs_1siniii.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1siniii]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1siniii, + ); +} + +extension _BlockArgs_1siniii$Methods on _BlockArgs_1siniii { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURL get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + NSFileVersion get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSFileVersion.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1sucxsg._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1sucxsg] that points to the same underlying object as [other]. + _BlockArgs_1sucxsg.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1sucxsg] that wraps the given raw object pointer. + _BlockArgs_1sucxsg.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1sucxsg]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1sucxsg, + ); +} + +extension _BlockArgs_1sucxsg$Methods on _BlockArgs_1sucxsg { + CFTypeRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + CFErrorRef get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg1); + } + + DartBoolean get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1ko4qka(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_1sy9q99._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1sy9q99] that points to the same underlying object as [other]. + _BlockArgs_1sy9q99.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1sy9q99] that wraps the given raw object pointer. + _BlockArgs_1sy9q99.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1sy9q99]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1sy9q99, + ); +} + +extension _BlockArgs_1sy9q99$Methods on _BlockArgs_1sy9q99 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSCache get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSCache.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCObject get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1tklz9g._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1tklz9g] that points to the same underlying object as [other]. + _BlockArgs_1tklz9g.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1tklz9g] that wraps the given raw object pointer. + _BlockArgs_1tklz9g.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1tklz9g]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1tklz9g, + ); +} + +extension _BlockArgs_1tklz9g$Methods on _BlockArgs_1tklz9g { + objc.ObjCObject? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1uc4fg7._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1uc4fg7] that points to the same underlying object as [other]. + _BlockArgs_1uc4fg7.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1uc4fg7] that wraps the given raw object pointer. + _BlockArgs_1uc4fg7.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1uc4fg7]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1uc4fg7, + ); +} + +extension _BlockArgs_1uc4fg7$Methods on _BlockArgs_1uc4fg7 { + NSTextCheckingResult? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + DartNSUInteger get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1d2nxes(_$$ref.pointer, _sel_arg1); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_1uox71a._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1uox71a] that points to the same underlying object as [other]. + _BlockArgs_1uox71a.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1uox71a] that wraps the given raw object pointer. + _BlockArgs_1uox71a.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1uox71a]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1uox71a, + ); +} + +extension _BlockArgs_1uox71a$Methods on _BlockArgs_1uox71a { + Dartxpc_object_t? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartxpc_object_t? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1ura76._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ura76] that points to the same underlying object as [other]. + _BlockArgs_1ura76.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ura76] that wraps the given raw object pointer. + _BlockArgs_1ura76.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ura76]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ura76, + ); +} + +extension _BlockArgs_1ura76$Methods on _BlockArgs_1ura76 { + objc.NSInputStream? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1usrzbh._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1usrzbh] that points to the same underlying object as [other]. + _BlockArgs_1usrzbh.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1usrzbh] that wraps the given raw object pointer. + _BlockArgs_1usrzbh.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1usrzbh]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1usrzbh, + ); +} + +extension _BlockArgs_1usrzbh$Methods on _BlockArgs_1usrzbh { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSSpellServer get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSSpellServer.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1v0sc8._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1v0sc8] that points to the same underlying object as [other]. + _BlockArgs_1v0sc8.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1v0sc8] that wraps the given raw object pointer. + _BlockArgs_1v0sc8.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1v0sc8]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1v0sc8, + ); +} + +extension _BlockArgs_1v0sc8$Methods on _BlockArgs_1v0sc8 { + DartSInt32 get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg0); + } + + ffi.Pointer get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1dpg4ct(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_1x2wp90._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1x2wp90] that points to the same underlying object as [other]. + _BlockArgs_1x2wp90.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1x2wp90] that wraps the given raw object pointer. + _BlockArgs_1x2wp90.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1x2wp90]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1x2wp90, + ); +} + +extension _BlockArgs_1x2wp90$Methods on _BlockArgs_1x2wp90 { + int get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_h0gkbf(_$$ref.pointer, _sel_arg0); + } + + CGImageRef get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_y1izi1(_$$ref.pointer, _sel_arg1); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_1xfn2k3._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1xfn2k3] that points to the same underlying object as [other]. + _BlockArgs_1xfn2k3.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1xfn2k3] that wraps the given raw object pointer. + _BlockArgs_1xfn2k3.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1xfn2k3]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1xfn2k3, + ); +} + +extension _BlockArgs_1xfn2k3$Methods on _BlockArgs_1xfn2k3 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDataTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + return ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1xkpqmj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1xkpqmj] that points to the same underlying object as [other]. + _BlockArgs_1xkpqmj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1xkpqmj] that wraps the given raw object pointer. + _BlockArgs_1xkpqmj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1xkpqmj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1xkpqmj, + ); +} + +extension _BlockArgs_1xkpqmj$Methods on _BlockArgs_1xkpqmj { + double get arg0 { + final _$$ref = object$.ref; + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_arg0) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_arg0); + } + + DartCFIndex get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg1); + } + + bool get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg2); + } + + ffi.Pointer get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_1y4tc38._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1y4tc38] that points to the same underlying object as [other]. + _BlockArgs_1y4tc38.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1y4tc38] that wraps the given raw object pointer. + _BlockArgs_1y4tc38.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1y4tc38]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1y4tc38, + ); +} + +extension _BlockArgs_1y4tc38$Methods on _BlockArgs_1y4tc38 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSFileVersion get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSFileVersion.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1y7f3jy._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1y7f3jy] that points to the same underlying object as [other]. + _BlockArgs_1y7f3jy.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1y7f3jy] that wraps the given raw object pointer. + _BlockArgs_1y7f3jy.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1y7f3jy]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1y7f3jy, + ); +} + +extension _BlockArgs_1y7f3jy$Methods on _BlockArgs_1y7f3jy { + NSURLSessionResponseDisposition get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_129c579(_$$ref.pointer, _sel_arg0); + return NSURLSessionResponseDisposition.fromValue($ret); + } +} + +extension type _BlockArgs_1z0whcc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1z0whcc] that points to the same underlying object as [other]. + _BlockArgs_1z0whcc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1z0whcc] that wraps the given raw object pointer. + _BlockArgs_1z0whcc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1z0whcc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1z0whcc, + ); +} + +extension _BlockArgs_1z0whcc$Methods on _BlockArgs_1z0whcc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLAuthenticationChallenge get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_31cygh._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_31cygh] that points to the same underlying object as [other]. + _BlockArgs_31cygh.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_31cygh] that wraps the given raw object pointer. + _BlockArgs_31cygh.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_31cygh]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_31cygh, + ); +} + +extension _BlockArgs_31cygh$Methods on _BlockArgs_31cygh { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.ObjCBlock get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + return ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_347s5u._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_347s5u] that points to the same underlying object as [other]. + _BlockArgs_347s5u.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_347s5u] that wraps the given raw object pointer. + _BlockArgs_347s5u.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_347s5u]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_347s5u, + ); +} + +extension _BlockArgs_347s5u$Methods on _BlockArgs_347s5u { + NSTask get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return NSTask.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_3gru2r._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_3gru2r] that points to the same underlying object as [other]. + _BlockArgs_3gru2r.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_3gru2r] that wraps the given raw object pointer. + _BlockArgs_3gru2r.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_3gru2r]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_3gru2r, + ); +} + +extension _BlockArgs_3gru2r$Methods on _BlockArgs_3gru2r { + objc.NSURL? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_3jhjrc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_3jhjrc] that points to the same underlying object as [other]. + _BlockArgs_3jhjrc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_3jhjrc] that wraps the given raw object pointer. + _BlockArgs_3jhjrc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_3jhjrc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_3jhjrc, + ); +} + +extension _BlockArgs_3jhjrc$Methods on _BlockArgs_3jhjrc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + int get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg2); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); + } + + int get arg4 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg4); + } +} + +extension type _BlockArgs_3prg4b._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_3prg4b] that points to the same underlying object as [other]. + _BlockArgs_3prg4b.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_3prg4b] that wraps the given raw object pointer. + _BlockArgs_3prg4b.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_3prg4b]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_3prg4b, + ); +} + +extension _BlockArgs_3prg4b$Methods on _BlockArgs_3prg4b { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + AVAudioPlayer get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return AVAudioPlayer.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_43hp0b._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_43hp0b] that points to the same underlying object as [other]. + _BlockArgs_43hp0b.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_43hp0b] that wraps the given raw object pointer. + _BlockArgs_43hp0b.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_43hp0b]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_43hp0b, + ); +} + +extension _BlockArgs_43hp0b$Methods on _BlockArgs_43hp0b { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDataTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionStreamTask get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLSessionStreamTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_461rr9._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_461rr9] that points to the same underlying object as [other]. + _BlockArgs_461rr9.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_461rr9] that wraps the given raw object pointer. + _BlockArgs_461rr9.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_461rr9]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_461rr9, + ); +} + +extension _BlockArgs_461rr9$Methods on _BlockArgs_461rr9 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURL get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_5wf51x._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_5wf51x] that points to the same underlying object as [other]. + _BlockArgs_5wf51x.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_5wf51x] that wraps the given raw object pointer. + _BlockArgs_5wf51x.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_5wf51x]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_5wf51x, + ); +} + +extension _BlockArgs_5wf51x$Methods on _BlockArgs_5wf51x { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + int get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg2); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_5zyi3o._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_5zyi3o] that points to the same underlying object as [other]. + _BlockArgs_5zyi3o.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_5zyi3o] that wraps the given raw object pointer. + _BlockArgs_5zyi3o.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_5zyi3o]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_5zyi3o, + ); +} + +extension _BlockArgs_5zyi3o$Methods on _BlockArgs_5zyi3o { + SecKeyRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_oziolg(_$$ref.pointer, _sel_arg0); + } + + SecKeyRef get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_oziolg(_$$ref.pointer, _sel_arg1); + } + + CFErrorRef get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_6tydoo._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_6tydoo] that points to the same underlying object as [other]. + _BlockArgs_6tydoo.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_6tydoo] that wraps the given raw object pointer. + _BlockArgs_6tydoo.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_6tydoo]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_6tydoo, + ); +} + +extension _BlockArgs_6tydoo$Methods on _BlockArgs_6tydoo { + objc.NSDictionary? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_6yk1dr._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_6yk1dr] that points to the same underlying object as [other]. + _BlockArgs_6yk1dr.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_6yk1dr] that wraps the given raw object pointer. + _BlockArgs_6yk1dr.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_6yk1dr]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_6yk1dr, + ); +} + +extension _BlockArgs_6yk1dr$Methods on _BlockArgs_6yk1dr { + DartNSItemProviderCompletionHandler get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); + return ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.ObjCObject get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.ObjCObject($ret, retain: true, release: true); + } + + objc.NSDictionary get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_7xicdf._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_7xicdf] that points to the same underlying object as [other]. + _BlockArgs_7xicdf.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_7xicdf] that wraps the given raw object pointer. + _BlockArgs_7xicdf.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_7xicdf]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_7xicdf, + ); +} + +extension _BlockArgs_7xicdf$Methods on _BlockArgs_7xicdf { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_99x6vt._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_99x6vt] that points to the same underlying object as [other]. + _BlockArgs_99x6vt.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_99x6vt] that wraps the given raw object pointer. + _BlockArgs_99x6vt.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_99x6vt]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_99x6vt, + ); +} + +extension _BlockArgs_99x6vt$Methods on _BlockArgs_99x6vt { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + } + + objc.ObjCBlock get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + return ObjCBlock_ffiVoid_NSInputStream.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_abn34x._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_abn34x] that points to the same underlying object as [other]. + _BlockArgs_abn34x.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_abn34x] that wraps the given raw object pointer. + _BlockArgs_abn34x.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_abn34x]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_abn34x, + ); +} + +extension _BlockArgs_abn34x$Methods on _BlockArgs_abn34x { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + NSURLCacheStoragePolicy get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_4qsw9q(_$$ref.pointer, _sel_arg3); + return NSURLCacheStoragePolicy.fromValue($ret); + } +} + +extension type _BlockArgs_adcfsd._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_adcfsd] that points to the same underlying object as [other]. + _BlockArgs_adcfsd.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_adcfsd] that wraps the given raw object pointer. + _BlockArgs_adcfsd.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_adcfsd]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_adcfsd, + ); +} + +extension _BlockArgs_adcfsd$Methods on _BlockArgs_adcfsd { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetServiceBrowser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); + } + + objc.NSDictionary get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_aec946._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_aec946] that points to the same underlying object as [other]. + _BlockArgs_aec946.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_aec946] that wraps the given raw object pointer. + _BlockArgs_aec946.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_aec946]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_aec946, + ); +} + +extension _BlockArgs_aec946$Methods on _BlockArgs_aec946 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_awd5mj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_awd5mj] that points to the same underlying object as [other]. + _BlockArgs_awd5mj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_awd5mj] that wraps the given raw object pointer. + _BlockArgs_awd5mj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_awd5mj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_awd5mj, + ); +} + +extension _BlockArgs_awd5mj$Methods on _BlockArgs_awd5mj { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_b9s2kt._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_b9s2kt] that points to the same underlying object as [other]. + _BlockArgs_b9s2kt.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_b9s2kt] that wraps the given raw object pointer. + _BlockArgs_b9s2kt.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_b9s2kt]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_b9s2kt, + ); +} + +extension _BlockArgs_b9s2kt$Methods on _BlockArgs_b9s2kt { + objc.NSError get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_blvx9k._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_blvx9k] that points to the same underlying object as [other]. + _BlockArgs_blvx9k.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_blvx9k] that wraps the given raw object pointer. + _BlockArgs_blvx9k.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_blvx9k]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_blvx9k, + ); +} + +extension _BlockArgs_blvx9k$Methods on _BlockArgs_blvx9k { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSUserNotificationCenter get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSUserNotificationCenter.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + NSUserNotification get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSUserNotification.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_de64m._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_de64m] that points to the same underlying object as [other]. + _BlockArgs_de64m.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_de64m] that wraps the given raw object pointer. + _BlockArgs_de64m.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_de64m]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_de64m, + ); +} + +extension _BlockArgs_de64m$Methods on _BlockArgs_de64m { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.ObjCBlock get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg3); + return ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_di5ft6._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_di5ft6] that points to the same underlying object as [other]. + _BlockArgs_di5ft6.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_di5ft6] that wraps the given raw object pointer. + _BlockArgs_di5ft6.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_di5ft6]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_di5ft6, + ); +} + +extension _BlockArgs_di5ft6$Methods on _BlockArgs_di5ft6 { + Dartsec_protocol_metadata_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartsec_protocol_key_update_complete_t get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + return ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_dmvhfp._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_dmvhfp] that points to the same underlying object as [other]. + _BlockArgs_dmvhfp.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_dmvhfp] that wraps the given raw object pointer. + _BlockArgs_dmvhfp.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_dmvhfp]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_dmvhfp, + ); +} + +extension _BlockArgs_dmvhfp$Methods on _BlockArgs_dmvhfp { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_syi8bx(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_eu2222._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_eu2222] that points to the same underlying object as [other]. + _BlockArgs_eu2222.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_eu2222] that wraps the given raw object pointer. + _BlockArgs_eu2222.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_eu2222]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_eu2222, + ); +} + +extension _BlockArgs_eu2222$Methods on _BlockArgs_eu2222 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.ObjCBlock?)> + get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + return ObjCBlock_ffiVoid_ffiVoid$2.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_gcznpv._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_gcznpv] that points to the same underlying object as [other]. + _BlockArgs_gcznpv.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_gcznpv] that wraps the given raw object pointer. + _BlockArgs_gcznpv.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_gcznpv]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_gcznpv, + ); +} + +extension _BlockArgs_gcznpv$Methods on _BlockArgs_gcznpv { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSSpellServer get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSSpellServer.fromPointer($ret, retain: true, release: true); + } + + DartNSUInteger get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg2); + } + + objc.NSString get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg5 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_hacm4k._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_hacm4k] that points to the same underlying object as [other]. + _BlockArgs_hacm4k.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_hacm4k] that wraps the given raw object pointer. + _BlockArgs_hacm4k.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_hacm4k]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_hacm4k, + ); +} + +extension _BlockArgs_hacm4k$Methods on _BlockArgs_hacm4k { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_hj4uui._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_hj4uui] that points to the same underlying object as [other]. + _BlockArgs_hj4uui.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_hj4uui] that wraps the given raw object pointer. + _BlockArgs_hj4uui.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_hj4uui]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_hj4uui, + ); +} + +extension _BlockArgs_hj4uui$Methods on _BlockArgs_hj4uui { + Dartsec_protocol_metadata_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartsec_protocol_challenge_complete_t get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + return ObjCBlock_ffiVoid_NSObject$1.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_hj6v1u._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_hj6v1u] that points to the same underlying object as [other]. + _BlockArgs_hj6v1u.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_hj6v1u] that wraps the given raw object pointer. + _BlockArgs_hj6v1u.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_hj6v1u]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_hj6v1u, + ); +} + +extension _BlockArgs_hj6v1u$Methods on _BlockArgs_hj6v1u { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + ffi.Pointer get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_i7wriu._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_i7wriu] that points to the same underlying object as [other]. + _BlockArgs_i7wriu.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_i7wriu] that wraps the given raw object pointer. + _BlockArgs_i7wriu.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_i7wriu]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_i7wriu, + ); +} + +extension _BlockArgs_i7wriu$Methods on _BlockArgs_i7wriu { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTaskMetrics get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLSessionTaskMetrics.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_ii17hk._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_ii17hk] that points to the same underlying object as [other]. + _BlockArgs_ii17hk.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_ii17hk] that wraps the given raw object pointer. + _BlockArgs_ii17hk.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_ii17hk]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_ii17hk, + ); +} + +extension _BlockArgs_ii17hk$Methods on _BlockArgs_ii17hk {} + +extension type _BlockArgs_j3xbuw._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_j3xbuw] that points to the same underlying object as [other]. + _BlockArgs_j3xbuw.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_j3xbuw] that wraps the given raw object pointer. + _BlockArgs_j3xbuw.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_j3xbuw]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_j3xbuw, + ); +} + +extension _BlockArgs_j3xbuw$Methods on _BlockArgs_j3xbuw { + SecTrustRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_arg0); + } + + bool get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg1); + } + + CFErrorRef get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_jqba1._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_jqba1] that points to the same underlying object as [other]. + _BlockArgs_jqba1.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_jqba1] that wraps the given raw object pointer. + _BlockArgs_jqba1.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_jqba1]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_jqba1, + ); +} + +extension _BlockArgs_jqba1$Methods on _BlockArgs_jqba1 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + NSURLRequest get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLRequest.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + return ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_jzitwn._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_jzitwn] that points to the same underlying object as [other]. + _BlockArgs_jzitwn.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_jzitwn] that wraps the given raw object pointer. + _BlockArgs_jzitwn.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_jzitwn]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_jzitwn, + ); +} + +extension _BlockArgs_jzitwn$Methods on _BlockArgs_jzitwn { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURL get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + objc.NSURL get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_k1nazc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_k1nazc] that points to the same underlying object as [other]. + _BlockArgs_k1nazc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_k1nazc] that wraps the given raw object pointer. + _BlockArgs_k1nazc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_k1nazc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_k1nazc, + ); +} + +extension _BlockArgs_k1nazc$Methods on _BlockArgs_k1nazc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_k2hpmy._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_k2hpmy] that points to the same underlying object as [other]. + _BlockArgs_k2hpmy.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_k2hpmy] that wraps the given raw object pointer. + _BlockArgs_k2hpmy.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_k2hpmy]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_k2hpmy, + ); +} + +extension _BlockArgs_k2hpmy$Methods on _BlockArgs_k2hpmy { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSSet get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_k4eb20._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_k4eb20] that points to the same underlying object as [other]. + _BlockArgs_k4eb20.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_k4eb20] that wraps the given raw object pointer. + _BlockArgs_k4eb20.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_k4eb20]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_k4eb20, + ); +} + +extension _BlockArgs_k4eb20$Methods on _BlockArgs_k4eb20 { + Dartdispatch_data_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + int get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_k4je64._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_k4je64] that points to the same underlying object as [other]. + _BlockArgs_k4je64.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_k4je64] that wraps the given raw object pointer. + _BlockArgs_k4je64.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_k4je64]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_k4je64, + ); +} + +extension _BlockArgs_k4je64$Methods on _BlockArgs_k4je64 { + bool get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_kqbpyy._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_kqbpyy] that points to the same underlying object as [other]. + _BlockArgs_kqbpyy.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_kqbpyy] that wraps the given raw object pointer. + _BlockArgs_kqbpyy.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_kqbpyy]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_kqbpyy, + ); +} + +extension _BlockArgs_kqbpyy$Methods on _BlockArgs_kqbpyy { + int get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_h0gkbf(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_krrtfh._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_krrtfh] that points to the same underlying object as [other]. + _BlockArgs_krrtfh.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_krrtfh] that wraps the given raw object pointer. + _BlockArgs_krrtfh.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_krrtfh]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_krrtfh, + ); +} + +extension _BlockArgs_krrtfh$Methods on _BlockArgs_krrtfh { + objc.NSSecureCoding? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSSecureCoding.fromPointer($ret, retain: true, release: true); + } + + objc.NSError get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_ldsont._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_ldsont] that points to the same underlying object as [other]. + _BlockArgs_ldsont.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_ldsont] that wraps the given raw object pointer. + _BlockArgs_ldsont.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_ldsont]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_ldsont, + ); +} + +extension _BlockArgs_ldsont$Methods on _BlockArgs_ldsont { + NSBackgroundActivityResult get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_hjhgti(_$$ref.pointer, _sel_arg0); + return NSBackgroundActivityResult.fromValue($ret); + } +} + +extension type _BlockArgs_lmnq5k._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_lmnq5k] that points to the same underlying object as [other]. + _BlockArgs_lmnq5k.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_lmnq5k] that wraps the given raw object pointer. + _BlockArgs_lmnq5k.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_lmnq5k]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_lmnq5k, + ); +} + +extension _BlockArgs_lmnq5k$Methods on _BlockArgs_lmnq5k { + Dartdispatch_data_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartdispatch_data_t get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_n2dxuu._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_n2dxuu] that points to the same underlying object as [other]. + _BlockArgs_n2dxuu.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_n2dxuu] that wraps the given raw object pointer. + _BlockArgs_n2dxuu.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_n2dxuu]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_n2dxuu, + ); +} + +extension _BlockArgs_n2dxuu$Methods on _BlockArgs_n2dxuu { + CFRunLoopTimerRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1yyiln9(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_nemba7._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_nemba7] that points to the same underlying object as [other]. + _BlockArgs_nemba7.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_nemba7] that wraps the given raw object pointer. + _BlockArgs_nemba7.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_nemba7]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_nemba7, + ); +} + +extension _BlockArgs_nemba7$Methods on _BlockArgs_nemba7 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_nhk5a9._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_nhk5a9] that points to the same underlying object as [other]. + _BlockArgs_nhk5a9.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_nhk5a9] that wraps the given raw object pointer. + _BlockArgs_nhk5a9.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_nhk5a9]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_nhk5a9, + ); +} + +extension _BlockArgs_nhk5a9$Methods on _BlockArgs_nhk5a9 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionStreamTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionStreamTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.NSInputStream get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + objc.NSOutputStream get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_pfi7f3._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_pfi7f3] that points to the same underlying object as [other]. + _BlockArgs_pfi7f3.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_pfi7f3] that wraps the given raw object pointer. + _BlockArgs_pfi7f3.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_pfi7f3]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_pfi7f3, + ); +} + +extension _BlockArgs_pfi7f3$Methods on _BlockArgs_pfi7f3 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURL get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); + return ObjCBlock_ffiVoid_NSError.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_pm23bg._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_pm23bg] that points to the same underlying object as [other]. + _BlockArgs_pm23bg.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_pm23bg] that wraps the given raw object pointer. + _BlockArgs_pm23bg.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_pm23bg]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_pm23bg, + ); +} + +extension _BlockArgs_pm23bg$Methods on _BlockArgs_pm23bg { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDownloadTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.NSURL get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_q6fcam._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_q6fcam] that points to the same underlying object as [other]. + _BlockArgs_q6fcam.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_q6fcam] that wraps the given raw object pointer. + _BlockArgs_q6fcam.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_q6fcam]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_q6fcam, + ); +} + +extension _BlockArgs_q6fcam$Methods on _BlockArgs_q6fcam { + objc.ObjCObject? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + NSRange get arg1 { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_qjjttc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_qjjttc] that points to the same underlying object as [other]. + _BlockArgs_qjjttc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_qjjttc] that wraps the given raw object pointer. + _BlockArgs_qjjttc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_qjjttc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_qjjttc, + ); +} + +extension _BlockArgs_qjjttc$Methods on _BlockArgs_qjjttc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_qss5hc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_qss5hc] that points to the same underlying object as [other]. + _BlockArgs_qss5hc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_qss5hc] that wraps the given raw object pointer. + _BlockArgs_qss5hc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_qss5hc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_qss5hc, + ); +} + +extension _BlockArgs_qss5hc$Methods on _BlockArgs_qss5hc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionStreamTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionStreamTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_rojepe._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_rojepe] that points to the same underlying object as [other]. + _BlockArgs_rojepe.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_rojepe] that wraps the given raw object pointer. + _BlockArgs_rojepe.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_rojepe]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_rojepe, + ); +} + +extension _BlockArgs_rojepe$Methods on _BlockArgs_rojepe { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + objc.NSError get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_s52y0g._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_s52y0g] that points to the same underlying object as [other]. + _BlockArgs_s52y0g.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_s52y0g] that wraps the given raw object pointer. + _BlockArgs_s52y0g.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_s52y0g]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_s52y0g, + ); +} + +extension _BlockArgs_s52y0g$Methods on _BlockArgs_s52y0g { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + NSCachedURLResponse get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSCachedURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_syyzqk._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_syyzqk] that points to the same underlying object as [other]. + _BlockArgs_syyzqk.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_syyzqk] that wraps the given raw object pointer. + _BlockArgs_syyzqk.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_syyzqk]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_syyzqk, + ); +} + +extension _BlockArgs_syyzqk$Methods on _BlockArgs_syyzqk { + bool get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_t3r59d._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_t3r59d] that points to the same underlying object as [other]. + _BlockArgs_t3r59d.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_t3r59d] that wraps the given raw object pointer. + _BlockArgs_t3r59d.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_t3r59d]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_t3r59d, + ); +} + +extension _BlockArgs_t3r59d$Methods on _BlockArgs_t3r59d { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg5 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_tbof01._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_tbof01] that points to the same underlying object as [other]. + _BlockArgs_tbof01.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_tbof01] that wraps the given raw object pointer. + _BlockArgs_tbof01.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_tbof01]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_tbof01, + ); +} + +extension _BlockArgs_tbof01$Methods on _BlockArgs_tbof01 { + int get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_rmqcvp(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_teaic5._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_teaic5] that points to the same underlying object as [other]. + _BlockArgs_teaic5.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_teaic5] that wraps the given raw object pointer. + _BlockArgs_teaic5.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_teaic5]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_teaic5, + ); +} + +extension _BlockArgs_teaic5$Methods on _BlockArgs_teaic5 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURLHandle get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_tikg8p._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_tikg8p] that points to the same underlying object as [other]. + _BlockArgs_tikg8p.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_tikg8p] that wraps the given raw object pointer. + _BlockArgs_tikg8p.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_tikg8p]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_tikg8p, + ); +} + +extension _BlockArgs_tikg8p$Methods on _BlockArgs_tikg8p { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetService get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetService.fromPointer($ret, retain: true, release: true); + } + + objc.NSInputStream get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + objc.NSOutputStream get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_truc42._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_truc42] that points to the same underlying object as [other]. + _BlockArgs_truc42.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_truc42] that wraps the given raw object pointer. + _BlockArgs_truc42.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_truc42]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_truc42, + ); +} + +extension _BlockArgs_truc42$Methods on _BlockArgs_truc42 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSExtensionContext get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSExtensionContext.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_u4a6zc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_u4a6zc] that points to the same underlying object as [other]. + _BlockArgs_u4a6zc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_u4a6zc] that wraps the given raw object pointer. + _BlockArgs_u4a6zc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_u4a6zc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_u4a6zc, + ); +} + +extension _BlockArgs_u4a6zc$Methods on _BlockArgs_u4a6zc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetService get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetService.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_u65oe8._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_u65oe8] that points to the same underlying object as [other]. + _BlockArgs_u65oe8.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_u65oe8] that wraps the given raw object pointer. + _BlockArgs_u65oe8.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_u65oe8]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_u65oe8, + ); +} + +extension _BlockArgs_u65oe8$Methods on _BlockArgs_u65oe8 { + NSURLSessionAuthChallengeDisposition get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_1vfc2dz(_$$ref.pointer, _sel_arg0); + return NSURLSessionAuthChallengeDisposition.fromValue($ret); + } + + NSURLCredential? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : NSURLCredential.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_uul9n9._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_uul9n9] that points to the same underlying object as [other]. + _BlockArgs_uul9n9.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_uul9n9] that wraps the given raw object pointer. + _BlockArgs_uul9n9.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_uul9n9]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_uul9n9, + ); +} + +extension _BlockArgs_uul9n9$Methods on _BlockArgs_uul9n9 { + bool get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); + } + + Dartdispatch_data_t? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + int get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_v1zq3a._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_v1zq3a] that points to the same underlying object as [other]. + _BlockArgs_v1zq3a.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_v1zq3a] that wraps the given raw object pointer. + _BlockArgs_v1zq3a.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_v1zq3a]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_v1zq3a, + ); +} + +extension _BlockArgs_v1zq3a$Methods on _BlockArgs_v1zq3a { + CGRenderingBufferProviderRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1p2ukjz(_$$ref.pointer, _sel_arg0); + } + + ffi.Pointer get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1vkunzi(_$$ref.pointer, _sel_arg1); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1wgub22(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_v5xz31._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_v5xz31] that points to the same underlying object as [other]. + _BlockArgs_v5xz31.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_v5xz31] that wraps the given raw object pointer. + _BlockArgs_v5xz31.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_v5xz31]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_v5xz31, + ); +} + +extension _BlockArgs_v5xz31$Methods on _BlockArgs_v5xz31 { + NSFileHandle get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return NSFileHandle.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_v8in3._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_v8in3] that points to the same underlying object as [other]. + _BlockArgs_v8in3.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_v8in3] that wraps the given raw object pointer. + _BlockArgs_v8in3.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_v8in3]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_v8in3, + ); +} + +extension _BlockArgs_v8in3$Methods on _BlockArgs_v8in3 { + objc.NSDictionary get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + NSRange get arg1 { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_vaglpl._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_vaglpl] that points to the same underlying object as [other]. + _BlockArgs_vaglpl.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_vaglpl] that wraps the given raw object pointer. + _BlockArgs_vaglpl.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_vaglpl]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_vaglpl, + ); +} + +extension _BlockArgs_vaglpl$Methods on _BlockArgs_vaglpl { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_vgtcpl._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_vgtcpl] that points to the same underlying object as [other]. + _BlockArgs_vgtcpl.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_vgtcpl] that wraps the given raw object pointer. + _BlockArgs_vgtcpl.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_vgtcpl]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_vgtcpl, + ); +} + +extension _BlockArgs_vgtcpl$Methods on _BlockArgs_vgtcpl { + CFArrayRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_odvxky(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_vpa8ji._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_vpa8ji] that points to the same underlying object as [other]. + _BlockArgs_vpa8ji.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_vpa8ji] that wraps the given raw object pointer. + _BlockArgs_vpa8ji.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_vpa8ji]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_vpa8ji, + ); +} + +extension _BlockArgs_vpa8ji$Methods on _BlockArgs_vpa8ji { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + objc.NSError get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_vx7t4i._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_vx7t4i] that points to the same underlying object as [other]. + _BlockArgs_vx7t4i.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_vx7t4i] that wraps the given raw object pointer. + _BlockArgs_vx7t4i.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_vx7t4i]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_vx7t4i, + ); +} + +extension _BlockArgs_vx7t4i$Methods on _BlockArgs_vx7t4i { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg5 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_wpl2gn._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_wpl2gn] that points to the same underlying object as [other]. + _BlockArgs_wpl2gn.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_wpl2gn] that wraps the given raw object pointer. + _BlockArgs_wpl2gn.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_wpl2gn]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_wpl2gn, + ); +} + +extension _BlockArgs_wpl2gn$Methods on _BlockArgs_wpl2gn { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + bool get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_wtbfzi._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_wtbfzi] that points to the same underlying object as [other]. + _BlockArgs_wtbfzi.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_wtbfzi] that wraps the given raw object pointer. + _BlockArgs_wtbfzi.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_wtbfzi]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_wtbfzi, + ); +} + +extension _BlockArgs_wtbfzi$Methods on _BlockArgs_wtbfzi { + NSCachedURLResponse? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSCachedURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. + _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. + _BlockArgs_x5cg0.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_x5cg0, + ); +} + +extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { + objc.NSData? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_x7mqjz._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_x7mqjz] that points to the same underlying object as [other]. + _BlockArgs_x7mqjz.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_x7mqjz] that wraps the given raw object pointer. + _BlockArgs_x7mqjz.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_x7mqjz]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_x7mqjz, + ); +} + +extension _BlockArgs_x7mqjz$Methods on _BlockArgs_x7mqjz { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetServiceBrowser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); + } + + NSNetService get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSNetService.fromPointer($ret, retain: true, release: true); + } + + bool get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_xcrg5s._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_xcrg5s] that points to the same underlying object as [other]. + _BlockArgs_xcrg5s.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_xcrg5s] that wraps the given raw object pointer. + _BlockArgs_xcrg5s.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_xcrg5s]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_xcrg5s, + ); +} + +extension _BlockArgs_xcrg5s$Methods on _BlockArgs_xcrg5s { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionWebSocketTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionWebSocketTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.NSString? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_xh08sz._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_xh08sz] that points to the same underlying object as [other]. + _BlockArgs_xh08sz.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_xh08sz] that wraps the given raw object pointer. + _BlockArgs_xh08sz.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_xh08sz]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_xh08sz, + ); +} + +extension _BlockArgs_xh08sz$Methods on _BlockArgs_xh08sz { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + } + + int get arg4 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); + } + + int get arg5 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg5); + } +} + +extension type _BlockArgs_xj71gr._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_xj71gr] that points to the same underlying object as [other]. + _BlockArgs_xj71gr.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_xj71gr] that wraps the given raw object pointer. + _BlockArgs_xj71gr.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_xj71gr]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_xj71gr, + ); +} + +extension _BlockArgs_xj71gr$Methods on _BlockArgs_xj71gr { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURLHandle get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_zgaes8._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_zgaes8] that points to the same underlying object as [other]. + _BlockArgs_zgaes8.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_zgaes8] that wraps the given raw object pointer. + _BlockArgs_zgaes8.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_zgaes8]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_zgaes8, + ); +} + +extension _BlockArgs_zgaes8$Methods on _BlockArgs_zgaes8 { + DartBoolean get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1ko4qka(_$$ref.pointer, _sel_arg0); + } + + DartUInt64 get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1p4gbjy(_$$ref.pointer, _sel_arg1); + } + + CFErrorRef get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); + } +} + +final class _CFHTTPAuthentication extends ffi.Opaque {} + +final class _CGDisplayConfigRef extends ffi.Opaque {} + +enum _CGLContextEnable { + kCGLCESwapRectangle(201), + kCGLCESwapLimit(203), + kCGLCERasterization(221), + kCGLCEStateValidation(301), + kCGLCESurfaceBackingSize(305), + kCGLCEDisplayListOptimization(307), + kCGLCEMPEngine(313), + kCGLCECrashOnRemovedFunctions(316); + + final int value; + const _CGLContextEnable(this.value); + + static _CGLContextEnable fromValue(int value) => switch (value) { + 201 => kCGLCESwapRectangle, + 203 => kCGLCESwapLimit, + 221 => kCGLCERasterization, + 301 => kCGLCEStateValidation, + 305 => kCGLCESurfaceBackingSize, + 307 => kCGLCEDisplayListOptimization, + 313 => kCGLCEMPEngine, + 316 => kCGLCECrashOnRemovedFunctions, + _ => throw ArgumentError('Unknown value for _CGLContextEnable: $value'), + }; +} + +final class _CGLContextObject extends ffi.Opaque {} + +enum _CGLContextParameter { + kCGLCPSwapRectangle(200), + kCGLCPSwapInterval(222), + kCGLCPDispatchTableSize(224), + kCGLCPClientStorage(226), + kCGLCPSurfaceTexture(228), + kCGLCPSurfaceOrder(235), + kCGLCPSurfaceOpacity(236), + kCGLCPSurfaceBackingSize(304), + kCGLCPSurfaceSurfaceVolatile(306), + kCGLCPReclaimResources(308), + kCGLCPCurrentRendererID(309), + kCGLCPGPUVertexProcessing(310), + kCGLCPGPUFragmentProcessing(311), + kCGLCPHasDrawable(314), + kCGLCPMPSwapsInFlight(315), + kCGLCPGPURestartStatus(317), + kCGLCPAbortOnGPURestartStatusBlacklisted(318), + kCGLCPSupportGPURestart(319), + kCGLCPSupportSeparateAddressSpace(320), + kCGLCPContextPriorityRequest(608); + + static const kCGLCPAbortOnGPURestartStatusDenied = + kCGLCPAbortOnGPURestartStatusBlacklisted; + + final int value; + const _CGLContextParameter(this.value); + + static _CGLContextParameter fromValue(int value) => switch (value) { + 200 => kCGLCPSwapRectangle, + 222 => kCGLCPSwapInterval, + 224 => kCGLCPDispatchTableSize, + 226 => kCGLCPClientStorage, + 228 => kCGLCPSurfaceTexture, + 235 => kCGLCPSurfaceOrder, + 236 => kCGLCPSurfaceOpacity, + 304 => kCGLCPSurfaceBackingSize, + 306 => kCGLCPSurfaceSurfaceVolatile, + 308 => kCGLCPReclaimResources, + 309 => kCGLCPCurrentRendererID, + 310 => kCGLCPGPUVertexProcessing, + 311 => kCGLCPGPUFragmentProcessing, + 314 => kCGLCPHasDrawable, + 315 => kCGLCPMPSwapsInFlight, + 317 => kCGLCPGPURestartStatus, + 318 => kCGLCPAbortOnGPURestartStatusBlacklisted, + 319 => kCGLCPSupportGPURestart, + 320 => kCGLCPSupportSeparateAddressSpace, + 608 => kCGLCPContextPriorityRequest, + _ => throw ArgumentError('Unknown value for _CGLContextParameter: $value'), + }; + + @override + String toString() { + if (this == kCGLCPAbortOnGPURestartStatusBlacklisted) + return "_CGLContextParameter.kCGLCPAbortOnGPURestartStatusBlacklisted, _CGLContextParameter.kCGLCPAbortOnGPURestartStatusDenied"; + return super.toString(); + } +} + +enum _CGLError { + kCGLNoError(0), + kCGLBadAttribute(10000), + kCGLBadProperty(10001), + kCGLBadPixelFormat(10002), + kCGLBadRendererInfo(10003), + kCGLBadContext(10004), + kCGLBadDrawable(10005), + kCGLBadDisplay(10006), + kCGLBadState(10007), + kCGLBadValue(10008), + kCGLBadMatch(10009), + kCGLBadEnumeration(10010), + kCGLBadOffScreen(10011), + kCGLBadFullScreen(10012), + kCGLBadWindow(10013), + kCGLBadAddress(10014), + kCGLBadCodeModule(10015), + kCGLBadAlloc(10016), + kCGLBadConnection(10017); + + final int value; + const _CGLError(this.value); + + static _CGLError fromValue(int value) => switch (value) { + 0 => kCGLNoError, + 10000 => kCGLBadAttribute, + 10001 => kCGLBadProperty, + 10002 => kCGLBadPixelFormat, + 10003 => kCGLBadRendererInfo, + 10004 => kCGLBadContext, + 10005 => kCGLBadDrawable, + 10006 => kCGLBadDisplay, + 10007 => kCGLBadState, + 10008 => kCGLBadValue, + 10009 => kCGLBadMatch, + 10010 => kCGLBadEnumeration, + 10011 => kCGLBadOffScreen, + 10012 => kCGLBadFullScreen, + 10013 => kCGLBadWindow, + 10014 => kCGLBadAddress, + 10015 => kCGLBadCodeModule, + 10016 => kCGLBadAlloc, + 10017 => kCGLBadConnection, + _ => throw ArgumentError('Unknown value for _CGLError: $value'), + }; +} + +enum _CGLGPURestartStatus { + kCGLCPGPURestartStatusNone(0), + kCGLCPGPURestartStatusCaused(1), + kCGLCPGPURestartStatusBlacklisted(2); + + static const kCGLCPGPURestartStatusDenied = kCGLCPGPURestartStatusBlacklisted; + + final int value; + const _CGLGPURestartStatus(this.value); + + static _CGLGPURestartStatus fromValue(int value) => switch (value) { + 0 => kCGLCPGPURestartStatusNone, + 1 => kCGLCPGPURestartStatusCaused, + 2 => kCGLCPGPURestartStatusBlacklisted, + _ => throw ArgumentError('Unknown value for _CGLGPURestartStatus: $value'), + }; + + @override + String toString() { + if (this == kCGLCPGPURestartStatusBlacklisted) + return "_CGLGPURestartStatus.kCGLCPGPURestartStatusBlacklisted, _CGLGPURestartStatus.kCGLCPGPURestartStatusDenied"; + return super.toString(); + } +} + +enum _CGLGlobalOption { + kCGLGOFormatCacheSize(501), + kCGLGOClearFormatCache(502), + kCGLGORetainRenderers(503), + kCGLGOUseBuildCache(506), + kCGLGOResetLibrary(504), + kCGLGOUseErrorHandler(505); + + final int value; + const _CGLGlobalOption(this.value); + + static _CGLGlobalOption fromValue(int value) => switch (value) { + 501 => kCGLGOFormatCacheSize, + 502 => kCGLGOClearFormatCache, + 503 => kCGLGORetainRenderers, + 506 => kCGLGOUseBuildCache, + 504 => kCGLGOResetLibrary, + 505 => kCGLGOUseErrorHandler, + _ => throw ArgumentError('Unknown value for _CGLGlobalOption: $value'), + }; +} + +enum _CGLOpenGLProfile { + kCGLOGLPVersion_Legacy(4096), + kCGLOGLPVersion_3_2_Core(12800), + kCGLOGLPVersion_GL4_Core(16640); + + static const kCGLOGLPVersion_GL3_Core = kCGLOGLPVersion_3_2_Core; + + final int value; + const _CGLOpenGLProfile(this.value); + + static _CGLOpenGLProfile fromValue(int value) => switch (value) { + 4096 => kCGLOGLPVersion_Legacy, + 12800 => kCGLOGLPVersion_3_2_Core, + 16640 => kCGLOGLPVersion_GL4_Core, + _ => throw ArgumentError('Unknown value for _CGLOpenGLProfile: $value'), + }; + + @override + String toString() { + if (this == kCGLOGLPVersion_3_2_Core) + return "_CGLOpenGLProfile.kCGLOGLPVersion_3_2_Core, _CGLOpenGLProfile.kCGLOGLPVersion_GL3_Core"; + return super.toString(); + } +} + +final class _CGLPBufferObject extends ffi.Opaque {} + +enum _CGLPixelFormatAttribute { + kCGLPFAAllRenderers(1), + kCGLPFATripleBuffer(3), + kCGLPFADoubleBuffer(5), + kCGLPFAColorSize(8), + kCGLPFAAlphaSize(11), + kCGLPFADepthSize(12), + kCGLPFAStencilSize(13), + kCGLPFAMinimumPolicy(51), + kCGLPFAMaximumPolicy(52), + kCGLPFASampleBuffers(55), + kCGLPFASamples(56), + kCGLPFAColorFloat(58), + kCGLPFAMultisample(59), + kCGLPFASupersample(60), + kCGLPFASampleAlpha(61), + kCGLPFARendererID(70), + kCGLPFANoRecovery(72), + kCGLPFAAccelerated(73), + kCGLPFAClosestPolicy(74), + kCGLPFABackingStore(76), + kCGLPFABackingVolatile(77), + kCGLPFADisplayMask(84), + kCGLPFAAllowOfflineRenderers(96), + kCGLPFAAcceleratedCompute(97), + kCGLPFAOpenGLProfile(99), + kCGLPFASupportsAutomaticGraphicsSwitching(101), + kCGLPFAVirtualScreenCount(128), + kCGLPFAAuxBuffers(7), + kCGLPFAAccumSize(14), + kCGLPFAAuxDepthStencil(57), + kCGLPFAStereo(6), + kCGLPFAOffScreen(53), + kCGLPFAWindow(80), + kCGLPFACompliant(83), + kCGLPFAPBuffer(90), + kCGLPFARemotePBuffer(91), + kCGLPFASingleRenderer(71), + kCGLPFARobust(75), + kCGLPFAMPSafe(78), + kCGLPFAMultiScreen(81), + kCGLPFAFullScreen(54); + + final int value; + const _CGLPixelFormatAttribute(this.value); + + static _CGLPixelFormatAttribute fromValue(int value) => switch (value) { + 1 => kCGLPFAAllRenderers, + 3 => kCGLPFATripleBuffer, + 5 => kCGLPFADoubleBuffer, + 8 => kCGLPFAColorSize, + 11 => kCGLPFAAlphaSize, + 12 => kCGLPFADepthSize, + 13 => kCGLPFAStencilSize, + 51 => kCGLPFAMinimumPolicy, + 52 => kCGLPFAMaximumPolicy, + 55 => kCGLPFASampleBuffers, + 56 => kCGLPFASamples, + 58 => kCGLPFAColorFloat, + 59 => kCGLPFAMultisample, + 60 => kCGLPFASupersample, + 61 => kCGLPFASampleAlpha, + 70 => kCGLPFARendererID, + 72 => kCGLPFANoRecovery, + 73 => kCGLPFAAccelerated, + 74 => kCGLPFAClosestPolicy, + 76 => kCGLPFABackingStore, + 77 => kCGLPFABackingVolatile, + 84 => kCGLPFADisplayMask, + 96 => kCGLPFAAllowOfflineRenderers, + 97 => kCGLPFAAcceleratedCompute, + 99 => kCGLPFAOpenGLProfile, + 101 => kCGLPFASupportsAutomaticGraphicsSwitching, + 128 => kCGLPFAVirtualScreenCount, + 7 => kCGLPFAAuxBuffers, + 14 => kCGLPFAAccumSize, + 57 => kCGLPFAAuxDepthStencil, + 6 => kCGLPFAStereo, + 53 => kCGLPFAOffScreen, + 80 => kCGLPFAWindow, + 83 => kCGLPFACompliant, + 90 => kCGLPFAPBuffer, + 91 => kCGLPFARemotePBuffer, + 71 => kCGLPFASingleRenderer, + 75 => kCGLPFARobust, + 78 => kCGLPFAMPSafe, + 81 => kCGLPFAMultiScreen, + 54 => kCGLPFAFullScreen, + _ => throw ArgumentError( + 'Unknown value for _CGLPixelFormatAttribute: $value', + ), + }; +} + +final class _CGLPixelFormatObject extends ffi.Opaque {} + +final class _CGLRendererInfoObject extends ffi.Opaque {} + +enum _CGLRendererProperty { + kCGLRPOffScreen(53), + kCGLRPRendererID(70), + kCGLRPAccelerated(73), + kCGLRPBackingStore(76), + kCGLRPWindow(80), + kCGLRPCompliant(83), + kCGLRPDisplayMask(84), + kCGLRPBufferModes(100), + kCGLRPColorModes(103), + kCGLRPAccumModes(104), + kCGLRPDepthModes(105), + kCGLRPStencilModes(106), + kCGLRPMaxAuxBuffers(107), + kCGLRPMaxSampleBuffers(108), + kCGLRPMaxSamples(109), + kCGLRPSampleModes(110), + kCGLRPSampleAlpha(111), + kCGLRPGPUVertProcCapable(122), + kCGLRPGPUFragProcCapable(123), + kCGLRPRendererCount(128), + kCGLRPOnline(129), + kCGLRPAcceleratedCompute(130), + kCGLRPVideoMemoryMegabytes(131), + kCGLRPTextureMemoryMegabytes(132), + kCGLRPMajorGLVersion(133), + kCGLRPRegistryIDLow(140), + kCGLRPRegistryIDHigh(141), + kCGLRPRemovable(142), + kCGLRPRobust(75), + kCGLRPMPSafe(78), + kCGLRPMultiScreen(81), + kCGLRPFullScreen(54), + kCGLRPVideoMemory(120), + kCGLRPTextureMemory(121); + + final int value; + const _CGLRendererProperty(this.value); + + static _CGLRendererProperty fromValue(int value) => switch (value) { + 53 => kCGLRPOffScreen, + 70 => kCGLRPRendererID, + 73 => kCGLRPAccelerated, + 76 => kCGLRPBackingStore, + 80 => kCGLRPWindow, + 83 => kCGLRPCompliant, + 84 => kCGLRPDisplayMask, + 100 => kCGLRPBufferModes, + 103 => kCGLRPColorModes, + 104 => kCGLRPAccumModes, + 105 => kCGLRPDepthModes, + 106 => kCGLRPStencilModes, + 107 => kCGLRPMaxAuxBuffers, + 108 => kCGLRPMaxSampleBuffers, + 109 => kCGLRPMaxSamples, + 110 => kCGLRPSampleModes, + 111 => kCGLRPSampleAlpha, + 122 => kCGLRPGPUVertProcCapable, + 123 => kCGLRPGPUFragProcCapable, + 128 => kCGLRPRendererCount, + 129 => kCGLRPOnline, + 130 => kCGLRPAcceleratedCompute, + 131 => kCGLRPVideoMemoryMegabytes, + 132 => kCGLRPTextureMemoryMegabytes, + 133 => kCGLRPMajorGLVersion, + 140 => kCGLRPRegistryIDLow, + 141 => kCGLRPRegistryIDHigh, + 142 => kCGLRPRemovable, + 75 => kCGLRPRobust, + 78 => kCGLRPMPSafe, + 81 => kCGLRPMultiScreen, + 54 => kCGLRPFullScreen, + 120 => kCGLRPVideoMemory, + 121 => kCGLRPTextureMemory, + _ => throw ArgumentError('Unknown value for _CGLRendererProperty: $value'), + }; +} + +final class _CMSDecoder extends ffi.Opaque {} + +final class _CMSEncoder extends ffi.Opaque {} + +@Deprecated('Deprecated') +const int _MixedModeMagic = 43774; + +final class _NXEvent extends ffi.Struct { + @SInt32() + external int type; + + external UnnamedStruct$20 location; + + @UInt64() + external int time$1; + + @SInt32() + external int flags; + + @UInt32() + external int window; + + @UInt64() + external int service_id; + + @SInt32() + external int ext_pid; + + external NXEventData data; +} + +final class _NXEventExt extends ffi.Struct { + external NXEvent payload; + + external NXEventExtension extension; +} + +final class _NXEventExtension extends ffi.Struct { + @UInt32() + external int flags; + + external audit_token_t audit$1; +} + +final class _NXPoint extends ffi.Struct { + @NXCoord() + external double x; + + @NXCoord() + external double y; +} + +final class _NXSize extends ffi.Struct { + @NXCoord() + external double width; + + @NXCoord() + external double height; +} + +final class _NXTabletPointData extends ffi.Struct { + @SInt32() + external int x; + + @SInt32() + external int y; + + @SInt32() + external int z; + + @UInt16() + external int buttons; + + @UInt16() + external int pressure; + + external UnnamedStruct$14 tilt; + + @UInt16() + external int rotation; + + @SInt16() + external int tangentialPressure; + + @UInt16() + external int deviceID; + + @SInt16() + external int vendor1; + + @SInt16() + external int vendor2; + + @SInt16() + external int vendor3; +} + +final class _NXTabletProximityData extends ffi.Struct { + @UInt16() + external int vendorID; + + @UInt16() + external int tabletID; + + @UInt16() + external int pointerID; + + @UInt16() + external int deviceID; + + @UInt16() + external int systemTabletID; + + @UInt16() + external int vendorPointerType; + + @UInt32() + external int pointerSerialNumber; + + @UInt64() + external int uniqueID; + + @UInt32() + external int capabilityMask; + + @UInt8() + external int pointerType; + + @UInt8() + external int enterProximity; + + @SInt16() + external int reserved1; +} + +@ffi.Packed(1) +final class _OSUnalignedU16 extends ffi.Struct { + @ffi.Uint16() + external int __val; +} + +@ffi.Packed(1) +final class _OSUnalignedU32 extends ffi.Struct { + @ffi.Uint32() + external int __val; +} + +@ffi.Packed(1) +final class _OSUnalignedU64 extends ffi.Struct { + @ffi.Uint64() + external int __val; +} + +final class _RuneCharClass extends ffi.Struct { + @ffi.Array.multi([14]) + external ffi.Array __name; + + @__uint32_t() + external int __mask; +} + +final class _RuneEntry extends ffi.Struct { + @__darwin_rune_t() + external int __min; + + @__darwin_rune_t() + external int __max; + + @__darwin_rune_t() + external int __map; + + external ffi.Pointer<__uint32_t> __types; +} + +final class _RuneLocale extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array __magic; + + @ffi.Array.multi([32]) + external ffi.Array __encoding; + + external ffi.Pointer< + ffi.NativeFunction< + __darwin_rune_t Function( + ffi.Pointer, + __darwin_size_t, + ffi.Pointer>, + ) + > + > + __sgetrune; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + __darwin_rune_t, + ffi.Pointer, + __darwin_size_t, + ffi.Pointer>, + ) + > + > + __sputrune; + + @__darwin_rune_t() + external int __invalid_rune; + + @ffi.Array.multi([256]) + external ffi.Array<__uint32_t> __runetype; + + @ffi.Array.multi([256]) + external ffi.Array<__darwin_rune_t> __maplower; + + @ffi.Array.multi([256]) + external ffi.Array<__darwin_rune_t> __mapupper; + + external _RuneRange __runetype_ext; + + external _RuneRange __maplower_ext; + + external _RuneRange __mapupper_ext; + + external ffi.Pointer __variable; + + @ffi.Int() + external int __variable_len; + + @ffi.Int() + external int __ncharclasses; + + external ffi.Pointer<_RuneCharClass> __charclasses; +} + +final class _RuneRange extends ffi.Struct { + @ffi.Int() + external int __nranges; + + external ffi.Pointer<_RuneEntry> __ranges; +} + +final class __AXObserver extends ffi.Opaque {} + +final class __AXTextMarker extends ffi.Opaque {} + +final class __AXTextMarkerRange extends ffi.Opaque {} + +final class __AXUIElement extends ffi.Opaque {} + +final class __AXValue extends ffi.Opaque {} + +final class __CE_AccessDescription extends ffi.Struct { + external SecAsn1Oid accessMethod; + + external CE_GeneralName accessLocation; +} + +final class __CE_AuthorityInfoAccess extends ffi.Struct { + @uint32() + external int numAccessDescriptions; + + external ffi.Pointer accessDescriptions; +} + +final class __CE_AuthorityKeyID extends ffi.Struct { + @CSSM_BOOL() + external int keyIdentifierPresent; + + external SecAsn1Item keyIdentifier; + + @CSSM_BOOL() + external int generalNamesPresent; + + external ffi.Pointer generalNames; + + @CSSM_BOOL() + external int serialNumberPresent; + + external SecAsn1Item serialNumber; +} + +final class __CE_BasicConstraints extends ffi.Struct { + @CSSM_BOOL() + external int cA; + + @CSSM_BOOL() + external int pathLenConstraintPresent; + + @uint32() + external int pathLenConstraint; +} + +final class __CE_CRLDistPointsSyntax extends ffi.Struct { + @uint32() + external int numDistPoints; + + external ffi.Pointer distPoints; +} + +final class __CE_CRLDistributionPoint extends ffi.Struct { + external ffi.Pointer distPointName; + + @CSSM_BOOL() + external int reasonsPresent; + + @CE_CrlDistReasonFlags() + external int reasons; + + external ffi.Pointer crlIssuer; +} + +final class __CE_CertPolicies extends ffi.Struct { + @uint32() + external int numPolicies; + + external ffi.Pointer policies; +} + +enum __CE_CrlDistributionPointNameType { + CE_CDNT_FullName(0), + CE_CDNT_NameRelativeToCrlIssuer(1); + + final int value; + const __CE_CrlDistributionPointNameType(this.value); + + static __CE_CrlDistributionPointNameType fromValue(int value) => + switch (value) { + 0 => CE_CDNT_FullName, + 1 => CE_CDNT_NameRelativeToCrlIssuer, + _ => throw ArgumentError( + 'Unknown value for __CE_CrlDistributionPointNameType: $value', + ), + }; +} + +final class __CE_DataAndType extends ffi.Struct { + @ffi.UnsignedInt() + external int typeAsInt; + + __CE_DataType get type => __CE_DataType.fromValue(typeAsInt); + set type(__CE_DataType value) => typeAsInt = value.value; + + external CE_Data extension; + + @CSSM_BOOL() + external int critical; +} + +enum __CE_DataType { + DT_AuthorityKeyID(0), + DT_SubjectKeyID(1), + DT_KeyUsage(2), + DT_SubjectAltName(3), + DT_IssuerAltName(4), + DT_ExtendedKeyUsage(5), + DT_BasicConstraints(6), + DT_CertPolicies(7), + DT_NetscapeCertType(8), + DT_CrlNumber(9), + DT_DeltaCrl(10), + DT_CrlReason(11), + DT_CrlDistributionPoints(12), + DT_IssuingDistributionPoint(13), + DT_AuthorityInfoAccess(14), + DT_Other(15), + DT_QC_Statements(16), + DT_NameConstraints(17), + DT_PolicyMappings(18), + DT_PolicyConstraints(19), + DT_InhibitAnyPolicy(20); + + final int value; + const __CE_DataType(this.value); + + static __CE_DataType fromValue(int value) => switch (value) { + 0 => DT_AuthorityKeyID, + 1 => DT_SubjectKeyID, + 2 => DT_KeyUsage, + 3 => DT_SubjectAltName, + 4 => DT_IssuerAltName, + 5 => DT_ExtendedKeyUsage, + 6 => DT_BasicConstraints, + 7 => DT_CertPolicies, + 8 => DT_NetscapeCertType, + 9 => DT_CrlNumber, + 10 => DT_DeltaCrl, + 11 => DT_CrlReason, + 12 => DT_CrlDistributionPoints, + 13 => DT_IssuingDistributionPoint, + 14 => DT_AuthorityInfoAccess, + 15 => DT_Other, + 16 => DT_QC_Statements, + 17 => DT_NameConstraints, + 18 => DT_PolicyMappings, + 19 => DT_PolicyConstraints, + 20 => DT_InhibitAnyPolicy, + _ => throw ArgumentError('Unknown value for __CE_DataType: $value'), + }; +} + +final class __CE_DistributionPointName extends ffi.Struct { + @ffi.UnsignedInt() + external int nameTypeAsInt; + + __CE_CrlDistributionPointNameType get nameType => + __CE_CrlDistributionPointNameType.fromValue(nameTypeAsInt); + set nameType(__CE_CrlDistributionPointNameType value) => + nameTypeAsInt = value.value; + + external UnnamedUnion$8 dpn; +} + +final class __CE_ExtendedKeyUsage extends ffi.Struct { + @uint32() + external int numPurposes; + + external CSSM_OID_PTR purposes; +} + +final class __CE_GeneralName extends ffi.Struct { + @ffi.UnsignedInt() + external int nameTypeAsInt; + + __CE_GeneralNameType get nameType => + __CE_GeneralNameType.fromValue(nameTypeAsInt); + set nameType(__CE_GeneralNameType value) => nameTypeAsInt = value.value; + + @CSSM_BOOL() + external int berEncoded; + + external SecAsn1Item name; +} + +enum __CE_GeneralNameType { + GNT_OtherName(0), + GNT_RFC822Name(1), + GNT_DNSName(2), + GNT_X400Address(3), + GNT_DirectoryName(4), + GNT_EdiPartyName(5), + GNT_URI(6), + GNT_IPAddress(7), + GNT_RegisteredID(8); + + final int value; + const __CE_GeneralNameType(this.value); + + static __CE_GeneralNameType fromValue(int value) => switch (value) { + 0 => GNT_OtherName, + 1 => GNT_RFC822Name, + 2 => GNT_DNSName, + 3 => GNT_X400Address, + 4 => GNT_DirectoryName, + 5 => GNT_EdiPartyName, + 6 => GNT_URI, + 7 => GNT_IPAddress, + 8 => GNT_RegisteredID, + _ => throw ArgumentError('Unknown value for __CE_GeneralNameType: $value'), + }; +} + +final class __CE_GeneralNames extends ffi.Struct { + @uint32() + external int numNames; + + external ffi.Pointer generalName; +} + +final class __CE_GeneralSubtree extends ffi.Struct { + external ffi.Pointer base; + + @uint32() + external int minimum; + + @CSSM_BOOL() + external int maximumPresent; + + @uint32() + external int maximum; +} + +final class __CE_GeneralSubtrees extends ffi.Struct { + @uint32() + external int numSubtrees; + + external ffi.Pointer subtrees; +} + +final class __CE_IssuingDistributionPoint extends ffi.Struct { + external ffi.Pointer distPointName; + + @CSSM_BOOL() + external int onlyUserCertsPresent; + + @CSSM_BOOL() + external int onlyUserCerts; + + @CSSM_BOOL() + external int onlyCACertsPresent; + + @CSSM_BOOL() + external int onlyCACerts; + + @CSSM_BOOL() + external int onlySomeReasonsPresent; + + @CE_CrlDistReasonFlags() + external int onlySomeReasons; + + @CSSM_BOOL() + external int indirectCrlPresent; + + @CSSM_BOOL() + external int indirectCrl; +} + +final class __CE_NameConstraints extends ffi.Struct { + external ffi.Pointer permitted; + + external ffi.Pointer excluded; +} + +final class __CE_OtherName extends ffi.Struct { + external SecAsn1Oid typeId; + + external SecAsn1Item value; +} + +final class __CE_PolicyConstraints extends ffi.Struct { + @CSSM_BOOL() + external int requireExplicitPolicyPresent; + + @uint32() + external int requireExplicitPolicy; + + @CSSM_BOOL() + external int inhibitPolicyMappingPresent; + + @uint32() + external int inhibitPolicyMapping; +} + +final class __CE_PolicyInformation extends ffi.Struct { + external SecAsn1Oid certPolicyId; + + @uint32() + external int numPolicyQualifiers; + + external ffi.Pointer policyQualifiers; +} + +final class __CE_PolicyMapping extends ffi.Struct { + external SecAsn1Oid issuerDomainPolicy; + + external SecAsn1Oid subjectDomainPolicy; +} + +final class __CE_PolicyMappings extends ffi.Struct { + @uint32() + external int numPolicyMappings; + + external ffi.Pointer policyMappings; +} + +final class __CE_PolicyQualifierInfo extends ffi.Struct { + external SecAsn1Oid policyQualifierId; + + external SecAsn1Item qualifier; +} + +final class __CE_QC_Statement extends ffi.Struct { + external SecAsn1Oid statementId; + + external ffi.Pointer semanticsInfo; + + external ffi.Pointer otherInfo; +} + +final class __CE_QC_Statements extends ffi.Struct { + @uint32() + external int numQCStatements; + + external ffi.Pointer qcStatements; +} + +final class __CE_SemanticsInformation extends ffi.Struct { + external ffi.Pointer semanticsIdentifier; + + external ffi.Pointer + nameRegistrationAuthorities; +} + +final class __CFAllocator extends ffi.Opaque {} + +final class __CFArray extends ffi.Opaque {} + +final class __CFAttributedString extends ffi.Opaque {} + +final class __CFBag extends ffi.Opaque {} + +final class __CFBinaryHeap extends ffi.Opaque {} + +final class __CFBitVector extends ffi.Opaque {} + +final class __CFBoolean extends ffi.Opaque {} + +final class __CFBundle extends ffi.Opaque {} + +enum __CFByteOrder { + CFByteOrderUnknown(0), + CFByteOrderLittleEndian(1), + CFByteOrderBigEndian(2); + + final int value; + const __CFByteOrder(this.value); + + static __CFByteOrder fromValue(int value) => switch (value) { + 0 => CFByteOrderUnknown, + 1 => CFByteOrderLittleEndian, + 2 => CFByteOrderBigEndian, + _ => throw ArgumentError('Unknown value for __CFByteOrder: $value'), + }; +} + +final class __CFCalendar extends ffi.Opaque {} + +final class __CFCharacterSet extends ffi.Opaque {} + +final class __CFData extends ffi.Opaque {} + +final class __CFDate extends ffi.Opaque {} + +final class __CFDateFormatter extends ffi.Opaque {} + +final class __CFDictionary extends ffi.Opaque {} + +final class __CFError extends ffi.Opaque {} + +final class __CFFileDescriptor extends ffi.Opaque {} + +final class __CFFileSecurity extends ffi.Opaque {} + +final class __CFHTTPMessage extends ffi.Opaque {} + +final class __CFHost extends ffi.Opaque {} + +final class __CFLocale extends ffi.Opaque {} + +final class __CFMachPort extends ffi.Opaque {} + +final class __CFMessagePort extends ffi.Opaque {} + +final class __CFNetDiagnostic extends ffi.Opaque {} + +final class __CFNetService extends ffi.Opaque {} + +final class __CFNetServiceBrowser extends ffi.Opaque {} + +final class __CFNetServiceMonitor extends ffi.Opaque {} + +final class __CFNotificationCenter extends ffi.Opaque {} + +final class __CFNull extends ffi.Opaque {} + +final class __CFNumber extends ffi.Opaque {} + +final class __CFNumberFormatter extends ffi.Opaque {} + +final class __CFPlugInInstance extends ffi.Opaque {} + +final class __CFReadStream extends ffi.Opaque {} + +final class __CFRunLoopObserver extends ffi.Opaque {} + +final class __CFRunLoopSource extends ffi.Opaque {} + +final class __CFRunLoopTimer extends ffi.Opaque {} + +final class __CFSet extends ffi.Opaque {} + +final class __CFSocket extends ffi.Opaque {} + +final class __CFStringTokenizer extends ffi.Opaque {} + +final class __CFTimeZone extends ffi.Opaque {} + +final class __CFTree extends ffi.Opaque {} + +final class __CFURL extends ffi.Opaque {} + +final class __CFURLEnumerator extends ffi.Opaque {} + +final class __CFUUID extends ffi.Opaque {} + +final class __CFUserNotification extends ffi.Opaque {} + +final class __CFWriteStream extends ffi.Opaque {} + +final class __CFXMLNode extends ffi.Opaque {} + +final class __CFXMLParser extends ffi.Opaque {} + +final class __CGEvent extends ffi.Opaque {} + +final class __CGEventSource extends ffi.Opaque {} + +final class __CGEventTapInformation extends ffi.Struct { + @ffi.Uint32() + external int eventTapID; + + @ffi.Uint32() + external int tapPointAsInt; + + CGEventTapLocation get tapPoint => + CGEventTapLocation.fromValue(tapPointAsInt); + set tapPoint(CGEventTapLocation value) => tapPointAsInt = value.value; + + @ffi.Uint32() + external int optionsAsInt; + + CGEventTapOptions get options => CGEventTapOptions.fromValue(optionsAsInt); + set options(CGEventTapOptions value) => optionsAsInt = value.value; + + @CGEventMask() + external int eventsOfInterest; + + @pid_t() + external int tappingProcess; + + @pid_t() + external int processBeingTapped; + + @ffi.Bool() + external bool enabled; + + @ffi.Float() + external double minUsecLatency; + + @ffi.Float() + external double avgUsecLatency; + + @ffi.Float() + external double maxUsecLatency; +} + +final class __CGEventTapProxy extends ffi.Opaque {} + +final class __CSIdentity extends ffi.Opaque {} + +final class __CSIdentityAuthority extends ffi.Opaque {} + +final class __CSIdentityQuery extends ffi.Opaque {} + +final class __CTFont extends ffi.Opaque {} + +final class __CTFontCollection extends ffi.Opaque {} + +final class __CTFontDescriptor extends ffi.Opaque {} + +final class __CTFrame extends ffi.Opaque {} + +final class __CTFramesetter extends ffi.Opaque {} + +final class __CTGlyphInfo extends ffi.Opaque {} + +final class __CTLine extends ffi.Opaque {} + +final class __CTParagraphStyle extends ffi.Opaque {} + +final class __CTRubyAnnotation extends ffi.Opaque {} + +final class __CTRun extends ffi.Opaque {} + +final class __CTRunDelegate extends ffi.Opaque {} + +final class __CTTextTab extends ffi.Opaque {} + +final class __CTTypesetter extends ffi.Opaque {} + +final class __CVBuffer extends ffi.Opaque {} + +final class __CVDisplayLink extends ffi.Opaque {} + +final class __CVMetalBufferCache extends ffi.Opaque {} + +final class __CVMetalTextureCache extends ffi.Opaque {} + +final class __CVOpenGLBufferPool extends ffi.Opaque {} + +final class __CVOpenGLTextureCache extends ffi.Opaque {} + +final class __CVPixelBufferPool extends ffi.Opaque {} + +final class __DADisk extends ffi.Opaque {} + +final class __DASession extends ffi.Opaque {} + +final class __DCSDictionary extends ffi.Opaque {} + +final class __FSEventStream extends ffi.Opaque {} + +final class __FSFileOperation extends ffi.Opaque {} + +final class __FSFileSecurity extends ffi.Opaque {} + +final class __GLsync extends ffi.Opaque {} + +final class __HIShape extends ffi.Opaque {} + +final class __IOFixedPoint32 extends ffi.Struct { + @ffi.Int32() + external int x; + + @ffi.Int32() + external int y; +} + +final class __IOSurface extends ffi.Opaque {} + +final class __MDItem extends ffi.Opaque {} + +final class __MDLabel extends ffi.Opaque {} + +final class __MDQuery extends ffi.Opaque {} + +final class __NSAppleEventManagerSuspension extends ffi.Opaque {} + +final class __ReplyUnion__clock_priv_subsystem extends ffi.Union { + external __Reply__clock_set_time_t Reply_clock_set_time; + + external __Reply__clock_set_attributes_t Reply_clock_set_attributes; +} + +final class __ReplyUnion__host_priv_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__host_security_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__mach_host_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__mach_port_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__processor_set_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__processor_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__task_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__thread_act_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__vm_map_subsystem extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Reply___host_page_size_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_size_t() + external int out_page_size; +} + +final class __Reply__act_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int old_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array old_state; +} + +final class __Reply__act_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__clock_set_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__clock_set_time_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__etap_trace_thread_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_check_multiuser_mode_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Uint32() + external int multiuser_mode; +} + +final class __Reply__host_create_mach_voucher_t extends ffi.Opaque {} + +final class __Reply__host_default_memory_manager_t extends ffi.Opaque {} + +final class __Reply__host_get_UNDServer_t extends ffi.Opaque {} + +final class __Reply__host_get_atm_diagnostic_flag_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Uint32() + external int diagnostic_flag; +} + +final class __Reply__host_get_boot_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int boot_infoOffset; + + @mach_msg_type_number_t() + external int boot_infoCnt; + + @ffi.Array.multi([4096]) + external ffi.Array boot_info; +} + +final class __Reply__host_get_clock_control_t extends ffi.Opaque {} + +final class __Reply__host_get_clock_service_t extends ffi.Opaque {} + +final class __Reply__host_get_exception_ports_t extends ffi.Opaque {} + +final class __Reply__host_get_io_main_t extends ffi.Opaque {} + +final class __Reply__host_get_multiuser_config_flags_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Uint32() + external int multiuser_flags; +} + +final class __Reply__host_get_special_port_t extends ffi.Opaque {} + +final class __Reply__host_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int host_info_outCnt; + + @ffi.Array.multi([68]) + external ffi.Array host_info_out; +} + +final class __Reply__host_kernel_version_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int kernel_versionOffset; + + @mach_msg_type_number_t() + external int kernel_versionCnt; + + @ffi.Array.multi([512]) + external ffi.Array kernel_version; +} + +final class __Reply__host_lockgroup_info_t extends ffi.Opaque {} + +final class __Reply__host_priv_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int host_info_outCnt; + + @ffi.Array.multi([68]) + external ffi.Array host_info_out; +} + +final class __Reply__host_processor_info_t extends ffi.Opaque {} + +final class __Reply__host_processor_set_priv_t extends ffi.Opaque {} + +final class __Reply__host_processor_sets_t extends ffi.Opaque {} + +final class __Reply__host_processors_t extends ffi.Opaque {} + +final class __Reply__host_reboot_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_register_mach_voucher_attr_manager_t + extends ffi.Opaque {} + +final class __Reply__host_register_well_known_mach_voucher_attr_manager_t + extends ffi.Opaque {} + +final class __Reply__host_request_notification_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_security_create_task_token_t extends ffi.Opaque {} + +final class __Reply__host_security_set_task_token_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_set_UNDServer_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_set_atm_diagnostic_flag_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_set_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_set_multiuser_config_flags_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_set_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_statistics64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int host_info64_outCnt; + + @ffi.Array.multi([256]) + external ffi.Array host_info64_out; +} + +final class __Reply__host_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int host_info_outCnt; + + @ffi.Array.multi([68]) + external ffi.Array host_info_out; +} + +final class __Reply__host_swap_exception_ports_t extends ffi.Opaque {} + +final class __Reply__host_virtual_physical_table_info_t extends ffi.Opaque {} + +final class __Reply__kext_request_t extends ffi.Opaque {} + +final class __Reply__kmod_control_t extends ffi.Opaque {} + +final class __Reply__kmod_create_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @kmod_t() + external int module; +} + +final class __Reply__kmod_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__kmod_get_info_t extends ffi.Opaque {} + +final class __Reply__lock_set_create_t extends ffi.Opaque {} + +final class __Reply__lock_set_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_make_memory_entry_64_t extends ffi.Opaque {} + +final class __Reply__mach_make_memory_entry_t extends ffi.Opaque {} + +final class __Reply__mach_memory_info_t extends ffi.Opaque {} + +final class __Reply__mach_memory_object_memory_entry_64_t extends ffi.Opaque {} + +final class __Reply__mach_memory_object_memory_entry_t extends ffi.Opaque {} + +final class __Reply__mach_port_allocate_full_t extends ffi.Opaque {} + +final class __Reply__mach_port_allocate_name_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_allocate_qos_t extends ffi.Opaque {} + +final class __Reply__mach_port_allocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_name_t() + external int name; +} + +final class __Reply__mach_port_assert_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_construct_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_name_t() + external int name; +} + +final class __Reply__mach_port_deallocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_destruct_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_dnrequest_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.UnsignedInt() + external int dnr_total; + + @ffi.UnsignedInt() + external int dnr_used; +} + +final class __Reply__mach_port_extract_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_extract_right_t extends ffi.Opaque {} + +final class __Reply__mach_port_get_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int port_info_outCnt; + + @ffi.Array.multi([17]) + external ffi.Array port_info_out; +} + +@ffi.Packed(4) +final class __Reply__mach_port_get_context_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_context_t() + external int context; +} + +final class __Reply__mach_port_get_refs_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_urefs_t() + external int refs; +} + +final class __Reply__mach_port_get_service_port_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + external mach_service_port_info_data_t sp_info_out; +} + +final class __Reply__mach_port_get_set_status_t extends ffi.Opaque {} + +final class __Reply__mach_port_get_srights_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_rights_t() + external int srights; +} + +final class __Reply__mach_port_guard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_guard_with_flags_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_insert_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_insert_right_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +@ffi.Packed(4) +final class __Reply__mach_port_is_connection_for_service_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Uint64() + external int filter_policy_id; +} + +final class __Reply__mach_port_kernel_object_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.UnsignedInt() + external int object_type; + + @ffi.UnsignedInt() + external int object_addr; +} + +@ffi.Packed(4) +final class __Reply__mach_port_kobject_description_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @natural_t() + external int object_typeAsInt; + + ipc_info_object_type_t get object_type => + ipc_info_object_type_t.fromValue(object_typeAsInt); + set object_type(ipc_info_object_type_t value) => + object_typeAsInt = value.value; + + @mach_vm_address_t() + external int object_addr; + + @mach_msg_type_number_t() + external int descriptionOffset; + + @mach_msg_type_number_t() + external int descriptionCnt; + + @ffi.Array.multi([512]) + external ffi.Array description; +} + +@ffi.Packed(4) +final class __Reply__mach_port_kobject_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @natural_t() + external int object_typeAsInt; + + ipc_info_object_type_t get object_type => + ipc_info_object_type_t.fromValue(object_typeAsInt); + set object_type(ipc_info_object_type_t value) => + object_typeAsInt = value.value; + + @mach_vm_address_t() + external int object_addr; +} + +final class __Reply__mach_port_mod_refs_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_move_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_names_t extends ffi.Opaque {} + +final class __Reply__mach_port_peek_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_seqno_t() + external int request_seqnop; + + @mach_msg_size_t() + external int msg_sizep; + + @mach_msg_id_t() + external int msg_idp; + + @mach_msg_type_number_t() + external int trailer_infopCnt; + + @ffi.Array.multi([68]) + external ffi.Array trailer_infop; +} + +final class __Reply__mach_port_rename_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_request_notification_t extends ffi.Opaque {} + +final class __Reply__mach_port_set_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_set_context_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_set_mscount_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_set_seqno_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_space_basic_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + external ipc_info_space_basic_t basic_info; +} + +final class __Reply__mach_port_space_info_t extends ffi.Opaque {} + +final class __Reply__mach_port_swap_guard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_type_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_type_t() + external int ptype; +} + +final class __Reply__mach_port_unguard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_ports_lookup_t extends ffi.Opaque {} + +final class __Reply__mach_ports_register_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_vm_region_info_64_t extends ffi.Opaque {} + +final class __Reply__mach_vm_region_info_t extends ffi.Opaque {} + +final class __Reply__mach_vm_wire_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +@ffi.Packed(4) +final class __Reply__mach_zone_info_for_zone_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + external mach_zone_info_t info; +} + +final class __Reply__mach_zone_info_t extends ffi.Opaque {} + +final class __Reply__processor_assign_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_exit_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_get_assignment_t extends ffi.Opaque {} + +final class __Reply__processor_info_t extends ffi.Opaque {} + +final class __Reply__processor_set_create_t extends ffi.Opaque {} + +final class __Reply__processor_set_default_t extends ffi.Opaque {} + +final class __Reply__processor_set_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_set_info_t extends ffi.Opaque {} + +final class __Reply__processor_set_max_priority_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_set_policy_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_set_policy_disable_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_set_policy_enable_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +@ffi.Packed(4) +final class __Reply__processor_set_stack_usage_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.UnsignedInt() + external int ltotal; + + @vm_size_t() + external int space; + + @vm_size_t() + external int resident; + + @vm_size_t() + external int maxusage; + + @vm_offset_t() + external int maxstack; +} + +final class __Reply__processor_set_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int info_outCnt; + + @ffi.Array.multi([5]) + external ffi.Array info_out; +} + +final class __Reply__processor_set_tasks_t extends ffi.Opaque {} + +final class __Reply__processor_set_tasks_with_flavor_t extends ffi.Opaque {} + +final class __Reply__processor_set_threads_t extends ffi.Opaque {} + +final class __Reply__processor_start_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__semaphore_create_t extends ffi.Opaque {} + +final class __Reply__semaphore_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_assign_default_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_assign_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_create_identity_token_t extends ffi.Opaque {} + +final class __Reply__task_create_t extends ffi.Opaque {} + +final class __Reply__task_dyld_process_info_notify_deregister_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_dyld_process_info_notify_register_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_generate_corpse_t extends ffi.Opaque {} + +final class __Reply__task_get_assignment_t extends ffi.Opaque {} + +final class __Reply__task_get_dyld_image_infos_t extends ffi.Opaque {} + +final class __Reply__task_get_emulation_vector_t extends ffi.Opaque {} + +final class __Reply__task_get_exc_guard_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @task_exc_guard_behavior_t() + external int behavior; +} + +final class __Reply__task_get_exception_ports_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int masksCnt; + + @ffi.Array.multi([32]) + external ffi.Array masks; + + @ffi.Array.multi([32]) + external ffi.Array old_handlers_info; + + @ffi.Array.multi([32]) + external ffi.Array old_behaviors; + + @ffi.Array.multi([32]) + external ffi.Array old_flavors; +} + +final class __Reply__task_get_exception_ports_t extends ffi.Opaque {} + +final class __Reply__task_get_mach_voucher_t extends ffi.Opaque {} + +final class __Reply__task_get_special_port_t extends ffi.Opaque {} + +final class __Reply__task_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int old_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array old_state; +} + +final class __Reply__task_identity_token_get_task_port_t extends ffi.Opaque {} + +final class __Reply__task_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int task_info_outCnt; + + @ffi.Array.multi([94]) + external ffi.Array task_info_out; +} + +final class __Reply__task_inspect_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int info_outCnt; + + @ffi.Array.multi([4]) + external ffi.Array info_out; +} + +@ffi.Packed(4) +final class __Reply__task_map_corpse_info_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_vm_address_t() + external int kcd_addr_begin; + + @mach_vm_size_t() + external int kcd_size; +} + +@ffi.Packed(4) +final class __Reply__task_map_corpse_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int kcd_addr_begin; + + @ffi.Uint32() + external int kcd_size; +} + +@ffi.Packed(4) +final class __Reply__task_map_kcdata_object_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_vm_address_t() + external int kcd_addr_begin; + + @mach_vm_size_t() + external int kcd_size; +} + +final class __Reply__task_policy_get_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @ffi.Array.multi([16]) + external ffi.Array policy_info; + + @boolean_t() + external int get_default; +} + +final class __Reply__task_policy_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +@ffi.Packed(4) +final class __Reply__task_purgable_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + external task_purgable_info_t stats; +} + +@ffi.Packed(4) +final class __Reply__task_register_dyld_get_process_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + external dyld_kernel_process_info_t dyld_process_state; +} + +final class __Reply__task_register_dyld_image_infos_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_register_dyld_set_dyld_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_register_dyld_shared_cache_image_info_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_register_hardened_exception_handler_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_resume2_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_resume_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_sample_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_corpse_forking_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_emulation_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_emulation_vector_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_exc_guard_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_mach_voucher_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_phys_footprint_limit_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Int() + external int old_limit; +} + +final class __Reply__task_set_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_port_space_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_ras_pc_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_suspend2_t extends ffi.Opaque {} + +final class __Reply__task_suspend_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_swap_exception_ports_t extends ffi.Opaque {} + +final class __Reply__task_swap_mach_voucher_t extends ffi.Opaque {} + +final class __Reply__task_terminate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_test_async_upcall_propagation_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_test_sync_upcall_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_threads_t extends ffi.Opaque {} + +final class __Reply__task_unregister_dyld_image_infos_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_wire_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_zone_info_t extends ffi.Opaque {} + +final class __Reply__thread_abort_safely_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_abort_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_adopt_exception_handler_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_assign_default_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_assign_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_convert_thread_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int out_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array out_state; +} + +final class __Reply__thread_create_running_t extends ffi.Opaque {} + +final class __Reply__thread_create_t extends ffi.Opaque {} + +final class __Reply__thread_depress_abort_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_get_assignment_t extends ffi.Opaque {} + +final class __Reply__thread_get_exception_ports_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int masksCnt; + + @ffi.Array.multi([32]) + external ffi.Array masks; + + @ffi.Array.multi([32]) + external ffi.Array old_handlers_info; + + @ffi.Array.multi([32]) + external ffi.Array old_behaviors; + + @ffi.Array.multi([32]) + external ffi.Array old_flavors; +} + +final class __Reply__thread_get_exception_ports_t extends ffi.Opaque {} + +final class __Reply__thread_get_mach_voucher_t extends ffi.Opaque {} + +final class __Reply__thread_get_special_port_t extends ffi.Opaque {} + +final class __Reply__thread_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int old_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array old_state; +} + +final class __Reply__thread_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int thread_info_outCnt; + + @ffi.Array.multi([32]) + external ffi.Array thread_info_out; +} + +final class __Reply__thread_policy_get_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @ffi.Array.multi([16]) + external ffi.Array policy_info; + + @boolean_t() + external int get_default; +} + +final class __Reply__thread_policy_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_resume_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_sample_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_set_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_set_mach_voucher_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_set_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_set_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_suspend_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_swap_exception_ports_t extends ffi.Opaque {} + +final class __Reply__thread_swap_mach_voucher_t extends ffi.Opaque {} + +final class __Reply__thread_terminate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_wire_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +@ffi.Packed(4) +final class __Reply__vm_allocate_cpm_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; +} + +@ffi.Packed(4) +final class __Reply__vm_allocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; +} + +final class __Reply__vm_behavior_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_copy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_deallocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_inherit_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_machine_attribute_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_machine_attribute_val_t() + external int value; +} + +@ffi.Packed(4) +final class __Reply__vm_map_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; +} + +final class __Reply__vm_map_exec_lockdown_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_map_page_query_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @integer_t() + external int disposition; + + @integer_t() + external int ref_count; +} + +@ffi.Packed(4) +final class __Reply__vm_map_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; +} + +final class __Reply__vm_mapped_pages_info_t extends ffi.Opaque {} + +final class __Reply__vm_msync_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_protect_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_purgable_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Int() + external int state; +} + +final class __Reply__vm_read_list_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Array.multi([256]) + external ffi.Array data_list; +} + +@ffi.Packed(4) +final class __Reply__vm_read_overwrite_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_size_t() + external int outsize; +} + +final class __Reply__vm_read_t extends ffi.Opaque {} + +final class __Reply__vm_region_64_t extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Reply__vm_region_recurse_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @natural_t() + external int nesting_depth; + + @mach_msg_type_number_t() + external int infoCnt; + + @ffi.Array.multi([19]) + external ffi.Array info; +} + +@ffi.Packed(4) +final class __Reply__vm_region_recurse_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @natural_t() + external int nesting_depth; + + @mach_msg_type_number_t() + external int infoCnt; + + @ffi.Array.multi([19]) + external ffi.Array info; +} + +final class __Reply__vm_region_t extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Reply__vm_remap_new_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int target_address; + + @vm_prot_t() + external int cur_protection; + + @vm_prot_t() + external int max_protection; +} + +@ffi.Packed(4) +final class __Reply__vm_remap_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int target_address; + + @vm_prot_t() + external int cur_protection; + + @vm_prot_t() + external int max_protection; +} + +final class __Reply__vm_wire_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_write_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __RequestUnion__clock_priv_subsystem extends ffi.Union { + external __Request__clock_set_time_t Request_clock_set_time; + + external __Request__clock_set_attributes_t Request_clock_set_attributes; +} + +final class __RequestUnion__host_priv_subsystem extends ffi.Opaque {} + +final class __RequestUnion__host_security_subsystem extends ffi.Opaque {} + +final class __RequestUnion__mach_host_subsystem extends ffi.Opaque {} + +final class __RequestUnion__mach_port_subsystem extends ffi.Opaque {} + +final class __RequestUnion__processor_set_subsystem extends ffi.Union { + external __Request__processor_set_statistics_t + Request_processor_set_statistics; + + external __Request__processor_set_destroy_t Request_processor_set_destroy; + + external __Request__processor_set_max_priority_t + Request_processor_set_max_priority; + + external __Request__processor_set_policy_enable_t + Request_processor_set_policy_enable; + + external __Request__processor_set_policy_disable_t + Request_processor_set_policy_disable; + + external __Request__processor_set_tasks_t Request_processor_set_tasks; + + external __Request__processor_set_threads_t Request_processor_set_threads; + + external __Request__processor_set_policy_control_t + Request_processor_set_policy_control; + + external __Request__processor_set_stack_usage_t + Request_processor_set_stack_usage; + + external __Request__processor_set_info_t Request_processor_set_info; + + external __Request__processor_set_tasks_with_flavor_t + Request_processor_set_tasks_with_flavor; +} + +final class __RequestUnion__processor_subsystem extends ffi.Opaque {} + +final class __RequestUnion__task_subsystem extends ffi.Opaque {} + +final class __RequestUnion__thread_act_subsystem extends ffi.Opaque {} + +final class __RequestUnion__vm_map_subsystem extends ffi.Opaque {} + +final class __Request___host_page_size_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__act_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int flavor; + + @mach_msg_type_number_t() + external int old_stateCnt; +} + +final class __Request__act_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int flavor; + + @mach_msg_type_number_t() + external int new_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array new_state; +} + +final class __Request__clock_set_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @clock_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int clock_attrCnt; + + @ffi.Array.multi([1]) + external ffi.Array clock_attr; +} + +final class __Request__clock_set_time_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + external mach_timespec_t new_time; +} + +final class __Request__etap_trace_thread_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @boolean_t() + external int trace_status; +} + +final class __Request__host_check_multiuser_mode_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_create_mach_voucher_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_msg_type_number_t() + external int recipesCnt; + + @ffi.Array.multi([5120]) + external ffi.Array recipes; +} + +final class __Request__host_default_memory_manager_t extends ffi.Opaque {} + +final class __Request__host_get_UNDServer_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_get_atm_diagnostic_flag_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_get_boot_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_get_clock_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @clock_id_t() + external int clock_id; +} + +final class __Request__host_get_clock_service_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @clock_id_t() + external int clock_id; +} + +final class __Request__host_get_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @exception_mask_t() + external int exception_mask; +} + +final class __Request__host_get_io_main_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_get_multiuser_config_flags_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_get_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int node; + + @ffi.Int() + external int which; +} + +final class __Request__host_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @host_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int host_info_outCnt; +} + +final class __Request__host_kernel_version_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_lockgroup_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_priv_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @host_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int host_info_outCnt; +} + +final class __Request__host_processor_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @processor_flavor_t() + external int flavor; +} + +final class __Request__host_processor_set_priv_t extends ffi.Opaque {} + +final class __Request__host_processor_sets_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_processors_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_reboot_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int options; +} + +final class __Request__host_register_mach_voucher_attr_manager_t + extends ffi.Opaque {} + +final class __Request__host_register_well_known_mach_voucher_attr_manager_t + extends ffi.Opaque {} + +final class __Request__host_request_notification_t extends ffi.Opaque {} + +final class __Request__host_security_create_task_token_t extends ffi.Opaque {} + +final class __Request__host_security_set_task_token_t extends ffi.Opaque {} + +final class __Request__host_set_UNDServer_t extends ffi.Opaque {} + +final class __Request__host_set_atm_diagnostic_flag_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Uint32() + external int diagnostic_flag; +} + +final class __Request__host_set_exception_ports_t extends ffi.Opaque {} + +final class __Request__host_set_multiuser_config_flags_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Uint32() + external int multiuser_flags; +} + +final class __Request__host_set_special_port_t extends ffi.Opaque {} + +final class __Request__host_statistics64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @host_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int host_info64_outCnt; +} + +final class __Request__host_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @host_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int host_info_outCnt; +} + +final class __Request__host_swap_exception_ports_t extends ffi.Opaque {} + +final class __Request__host_virtual_physical_table_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__kext_request_t extends ffi.Opaque {} + +final class __Request__kmod_control_t extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Request__kmod_create_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int info; +} + +final class __Request__kmod_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kmod_t() + external int module; +} + +final class __Request__kmod_get_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__lock_set_create_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int n_ulocks; + + @ffi.Int() + external int policy; +} + +final class __Request__lock_set_destroy_t extends ffi.Opaque {} + +final class __Request__mach_make_memory_entry_64_t extends ffi.Opaque {} + +final class __Request__mach_make_memory_entry_t extends ffi.Opaque {} + +final class __Request__mach_memory_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__mach_memory_object_memory_entry_64_t + extends ffi.Opaque {} + +final class __Request__mach_memory_object_memory_entry_t extends ffi.Opaque {} + +final class __Request__mach_port_allocate_full_t extends ffi.Opaque {} + +final class __Request__mach_port_allocate_name_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_right_t() + external int right; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_allocate_qos_t extends ffi.Opaque {} + +final class __Request__mach_port_allocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_right_t() + external int right; +} + +final class __Request__mach_port_assert_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int infoCnt; + + @ffi.Array.multi([17]) + external ffi.Array info; +} + +final class __Request__mach_port_construct_t extends ffi.Opaque {} + +final class __Request__mach_port_deallocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +@ffi.Packed(4) +final class __Request__mach_port_destruct_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_delta_t() + external int srdelta; + + @mach_port_context_t() + external int guard; +} + +final class __Request__mach_port_dnrequest_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_extract_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_name_t() + external int pset; +} + +final class __Request__mach_port_extract_right_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_msg_type_name_t() + external int msgt_name; +} + +final class __Request__mach_port_get_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int port_info_outCnt; +} + +final class __Request__mach_port_get_context_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_get_refs_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_right_t() + external int right; +} + +final class __Request__mach_port_get_service_port_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_get_set_status_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_get_srights_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +@ffi.Packed(4) +final class __Request__mach_port_guard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_context_t() + external int guard; + + @boolean_t() + external int strict; +} + +@ffi.Packed(4) +final class __Request__mach_port_guard_with_flags_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_context_t() + external int guard; + + @ffi.Uint64() + external int flags; +} + +final class __Request__mach_port_insert_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_name_t() + external int pset; +} + +final class __Request__mach_port_insert_right_t extends ffi.Opaque {} + +final class __Request__mach_port_is_connection_for_service_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int connection_port; + + @mach_port_name_t() + external int service_port; +} + +final class __Request__mach_port_kernel_object_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_kobject_description_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_kobject_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_mod_refs_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_right_t() + external int right; + + @mach_port_delta_t() + external int delta; +} + +final class __Request__mach_port_move_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int member; + + @mach_port_name_t() + external int after; +} + +final class __Request__mach_port_names_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__mach_port_peek_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_msg_trailer_type_t() + external int trailer_type; + + @mach_port_seqno_t() + external int request_seqnop; + + @mach_msg_type_number_t() + external int trailer_infopCnt; +} + +final class __Request__mach_port_rename_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int old_name; + + @mach_port_name_t() + external int new_name; +} + +final class __Request__mach_port_request_notification_t extends ffi.Opaque {} + +final class __Request__mach_port_set_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int port_infoCnt; + + @ffi.Array.multi([17]) + external ffi.Array port_info; +} + +@ffi.Packed(4) +final class __Request__mach_port_set_context_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_context_t() + external int context; +} + +final class __Request__mach_port_set_mscount_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_mscount_t() + external int mscount; +} + +final class __Request__mach_port_set_seqno_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_seqno_t() + external int seqno; +} + +final class __Request__mach_port_space_basic_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__mach_port_space_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +@ffi.Packed(4) +final class __Request__mach_port_swap_guard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_context_t() + external int old_guard; + + @mach_port_context_t() + external int new_guard; +} + +final class __Request__mach_port_type_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +@ffi.Packed(4) +final class __Request__mach_port_unguard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_context_t() + external int guard; +} + +final class __Request__mach_ports_lookup_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__mach_ports_register_t extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Request__mach_vm_region_info_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; +} + +@ffi.Packed(4) +final class __Request__mach_vm_region_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; +} + +final class __Request__mach_vm_wire_t extends ffi.Opaque {} + +final class __Request__mach_zone_info_for_zone_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + external mach_zone_name_t name; +} + +final class __Request__mach_zone_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_assign_t extends ffi.Opaque {} + +final class __Request__processor_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_msg_type_number_t() + external int processor_cmdCnt; + + @ffi.Array.multi([20]) + external ffi.Array processor_cmd; +} + +final class __Request__processor_exit_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_get_assignment_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @processor_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int processor_info_outCnt; +} + +final class __Request__processor_set_create_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_set_default_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_set_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_set_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int flavor; + + @mach_msg_type_number_t() + external int info_outCnt; +} + +final class __Request__processor_set_max_priority_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int max_priority; + + @boolean_t() + external int change_threads; +} + +final class __Request__processor_set_policy_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @processor_set_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @ffi.Array.multi([5]) + external ffi.Array policy_info; + + @boolean_t() + external int change; +} + +final class __Request__processor_set_policy_disable_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int policy; + + @boolean_t() + external int change_threads; +} + +final class __Request__processor_set_policy_enable_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int policy; +} + +final class __Request__processor_set_stack_usage_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_set_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @processor_set_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int info_outCnt; +} + +final class __Request__processor_set_tasks_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_set_tasks_with_flavor_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_task_flavor_t() + external int flavor; +} + +final class __Request__processor_set_threads_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_start_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__semaphore_create_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int policy; + + @ffi.Int() + external int value; +} + +final class __Request__semaphore_destroy_t extends ffi.Opaque {} + +final class __Request__task_assign_default_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @boolean_t() + external int assign_threads; +} + +final class __Request__task_assign_t extends ffi.Opaque {} + +final class __Request__task_create_identity_token_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_create_t extends ffi.Opaque {} + +final class __Request__task_dyld_process_info_notify_deregister_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int notify; +} + +final class __Request__task_dyld_process_info_notify_register_t + extends ffi.Opaque {} + +final class __Request__task_generate_corpse_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_get_assignment_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_get_dyld_image_infos_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_get_emulation_vector_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_get_exc_guard_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_get_exception_ports_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @exception_mask_t() + external int exception_mask; +} + +final class __Request__task_get_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @exception_mask_t() + external int exception_mask; +} + +final class __Request__task_get_mach_voucher_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_voucher_selector_t() + external int which; +} + +final class __Request__task_get_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int which_port; +} + +final class __Request__task_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int old_stateCnt; +} + +final class __Request__task_identity_token_get_task_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_flavor_t() + external int flavor; +} + +final class __Request__task_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int task_info_outCnt; +} + +final class __Request__task_inspect_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_inspect_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int info_outCnt; +} + +final class __Request__task_map_corpse_info_64_t extends ffi.Opaque {} + +final class __Request__task_map_corpse_info_t extends ffi.Opaque {} + +final class __Request__task_map_kcdata_object_64_t extends ffi.Opaque {} + +final class __Request__task_policy_get_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_policy_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @boolean_t() + external int get_default; +} + +final class __Request__task_policy_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_policy_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @ffi.Array.multi([16]) + external ffi.Array policy_info; +} + +final class __Request__task_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @policy_t() + external int policy; + + @mach_msg_type_number_t() + external int baseCnt; + + @ffi.Array.multi([5]) + external ffi.Array base; + + @boolean_t() + external int set_limit; + + @boolean_t() + external int change; +} + +final class __Request__task_purgable_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_register_dyld_get_process_state_t + extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_register_dyld_image_infos_t extends ffi.Opaque {} + +final class __Request__task_register_dyld_set_dyld_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Uint8() + external int dyld_state; + + @ffi.Array.multi([3]) + external ffi.Array dyld_statePad; +} + +@ffi.Packed(4) +final class __Request__task_register_dyld_shared_cache_image_info_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + external dyld_kernel_image_info_t dyld_cache_image; + + @boolean_t() + external int no_cache; + + @boolean_t() + external int private_cache; +} + +final class __Request__task_register_hardened_exception_handler_t + extends ffi.Opaque {} + +final class __Request__task_resume2_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_resume_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_sample_t extends ffi.Opaque {} + +final class __Request__task_set_corpse_forking_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_corpse_forking_behavior_t() + external int behavior; +} + +@ffi.Packed(4) +final class __Request__task_set_emulation_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int routine_entry_pt; + + @ffi.Int() + external int routine_number; +} + +final class __Request__task_set_emulation_vector_t extends ffi.Opaque {} + +final class __Request__task_set_exc_guard_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_exc_guard_behavior_t() + external int behavior; +} + +final class __Request__task_set_exception_ports_t extends ffi.Opaque {} + +final class __Request__task_set_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int task_info_inCnt; + + @ffi.Array.multi([94]) + external ffi.Array task_info_in; +} + +final class __Request__task_set_mach_voucher_t extends ffi.Opaque {} + +final class __Request__task_set_phys_footprint_limit_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int new_limit; +} + +final class __Request__task_set_policy_t extends ffi.Opaque {} + +final class __Request__task_set_port_space_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int table_entries; +} + +@ffi.Packed(4) +final class __Request__task_set_ras_pc_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int basepc; + + @vm_address_t() + external int boundspc; +} + +final class __Request__task_set_special_port_t extends ffi.Opaque {} + +final class __Request__task_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int new_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array new_state; +} + +final class __Request__task_suspend2_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_suspend_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_swap_exception_ports_t extends ffi.Opaque {} + +final class __Request__task_swap_mach_voucher_t extends ffi.Opaque {} + +final class __Request__task_terminate_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_test_async_upcall_propagation_t + extends ffi.Opaque {} + +final class __Request__task_test_sync_upcall_t extends ffi.Opaque {} + +final class __Request__task_threads_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_unregister_dyld_image_infos_t extends ffi.Opaque {} + +final class __Request__task_wire_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @boolean_t() + external int must_wire; +} + +final class __Request__task_zone_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_abort_safely_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_abort_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_adopt_exception_handler_t extends ffi.Opaque {} + +final class __Request__thread_assign_default_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_assign_t extends ffi.Opaque {} + +final class __Request__thread_convert_thread_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int direction; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int in_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array in_state; + + @mach_msg_type_number_t() + external int out_stateCnt; +} + +final class __Request__thread_create_running_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int new_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array new_state; +} + +final class __Request__thread_create_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_depress_abort_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_get_assignment_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_get_exception_ports_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @exception_mask_t() + external int exception_mask; +} + +final class __Request__thread_get_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @exception_mask_t() + external int exception_mask; +} + +final class __Request__thread_get_mach_voucher_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_voucher_selector_t() + external int which; +} + +final class __Request__thread_get_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int which_port; +} + +final class __Request__thread_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int old_stateCnt; +} + +final class __Request__thread_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int thread_info_outCnt; +} + +final class __Request__thread_policy_get_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_policy_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @boolean_t() + external int get_default; +} + +final class __Request__thread_policy_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_policy_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @ffi.Array.multi([16]) + external ffi.Array policy_info; +} + +final class __Request__thread_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @policy_t() + external int policy; + + @mach_msg_type_number_t() + external int baseCnt; + + @ffi.Array.multi([5]) + external ffi.Array base; + + @boolean_t() + external int set_limit; +} + +final class __Request__thread_resume_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_sample_t extends ffi.Opaque {} + +final class __Request__thread_set_exception_ports_t extends ffi.Opaque {} + +final class __Request__thread_set_mach_voucher_t extends ffi.Opaque {} + +final class __Request__thread_set_policy_t extends ffi.Opaque {} + +final class __Request__thread_set_special_port_t extends ffi.Opaque {} + +final class __Request__thread_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int new_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array new_state; +} + +final class __Request__thread_suspend_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_swap_exception_ports_t extends ffi.Opaque {} + +final class __Request__thread_swap_mach_voucher_t extends ffi.Opaque {} + +final class __Request__thread_terminate_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_wire_t extends ffi.Opaque {} + +final class __Request__vm_allocate_cpm_t extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Request__vm_allocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @ffi.Int() + external int flags; +} + +@ffi.Packed(4) +final class __Request__vm_behavior_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_behavior_t() + external int new_behavior; +} + +@ffi.Packed(4) +final class __Request__vm_copy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int source_address; + + @vm_size_t() + external int size; + + @vm_address_t() + external int dest_address; +} + +@ffi.Packed(4) +final class __Request__vm_deallocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; +} + +@ffi.Packed(4) +final class __Request__vm_inherit_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_inherit_t() + external int new_inheritance; +} + +@ffi.Packed(4) +final class __Request__vm_machine_attribute_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_machine_attribute_t() + external int attribute; + + @vm_machine_attribute_val_t() + external int value; +} + +final class __Request__vm_map_64_t extends ffi.Opaque {} + +final class __Request__vm_map_exec_lockdown_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +@ffi.Packed(4) +final class __Request__vm_map_page_query_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_offset_t() + external int offset; +} + +final class __Request__vm_map_t extends ffi.Opaque {} + +final class __Request__vm_mapped_pages_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +@ffi.Packed(4) +final class __Request__vm_msync_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_sync_t() + external int sync_flags; +} + +@ffi.Packed(4) +final class __Request__vm_protect_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @boolean_t() + external int set_maximum; + + @vm_prot_t() + external int new_protection; +} + +@ffi.Packed(4) +final class __Request__vm_purgable_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_purgable_t() + external int control; + + @ffi.Int() + external int state; +} + +final class __Request__vm_read_list_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Array.multi([256]) + external ffi.Array data_list; + + @natural_t() + external int count; +} + +@ffi.Packed(4) +final class __Request__vm_read_overwrite_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_address_t() + external int data; +} + +@ffi.Packed(4) +final class __Request__vm_read_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; +} + +@ffi.Packed(4) +final class __Request__vm_region_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_region_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int infoCnt; +} + +@ffi.Packed(4) +final class __Request__vm_region_recurse_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @natural_t() + external int nesting_depth; + + @mach_msg_type_number_t() + external int infoCnt; +} + +@ffi.Packed(4) +final class __Request__vm_region_recurse_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @natural_t() + external int nesting_depth; + + @mach_msg_type_number_t() + external int infoCnt; +} + +@ffi.Packed(4) +final class __Request__vm_region_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_region_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int infoCnt; +} + +final class __Request__vm_remap_new_t extends ffi.Opaque {} + +final class __Request__vm_remap_t extends ffi.Opaque {} + +final class __Request__vm_wire_t extends ffi.Opaque {} + +final class __Request__vm_write_t extends ffi.Opaque {} + +final class __SKIndex extends ffi.Opaque {} + +final class __SKIndexDocumentIterator extends ffi.Opaque {} + +final class __SKSearch extends ffi.Opaque {} + +final class __SKSearchGroup extends ffi.Opaque {} + +final class __SKSearchResults extends ffi.Opaque {} + +final class __SKSummary extends ffi.Opaque {} + +final class __SecACL extends ffi.Opaque {} + +final class __SecAccess extends ffi.Opaque {} + +final class __SecAccessControl extends ffi.Opaque {} + +final class __SecCertificate extends ffi.Opaque {} + +final class __SecCode extends ffi.Opaque {} + +final class __SecIdentity extends ffi.Opaque {} + +final class __SecKey extends ffi.Opaque {} + +final class __SecKeychain extends ffi.Opaque {} + +final class __SecKeychainItem extends ffi.Opaque {} + +final class __SecKeychainSearch extends ffi.Opaque {} + +final class __SecPassword extends ffi.Opaque {} + +final class __SecPolicy extends ffi.Opaque {} + +final class __SecRandom extends ffi.Opaque {} + +final class __SecRequirement extends ffi.Opaque {} + +final class __SecTask extends ffi.Opaque {} + +final class __SecTrust extends ffi.Opaque {} + +final class __SecTrustedApplication extends ffi.Opaque {} + +final class __arm_legacy_debug_state extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bcr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wcr; +} + +final class __arm_pagein_state extends ffi.Struct { + @ffi.Int() + external int __pagein_error; +} + +typedef __builtin_va_list = ffi.Pointer; + +final class __darwin_arm_cpmu_state64 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __ctrs; +} + +final class __darwin_arm_debug_state32 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bcr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wcr; + + @__uint64_t() + external int __mdscr_el1; +} + +final class __darwin_arm_debug_state64 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __bvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __bcr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __wvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __wcr; + + @__uint64_t() + external int __mdscr_el1; +} + +final class __darwin_arm_exception_state extends ffi.Struct { + @__uint32_t() + external int __exception; + + @__uint32_t() + external int __fsr; + + @__uint32_t() + external int __far; +} + +final class __darwin_arm_exception_state64 extends ffi.Struct { + @__uint64_t() + external int __far; + + @__uint32_t() + external int __esr; + + @__uint32_t() + external int __exception; +} + +final class __darwin_arm_exception_state64_v2 extends ffi.Struct { + @__uint64_t() + external int __far; + + @__uint64_t() + external int __esr; +} + +final class __darwin_arm_neon_state extends ffi.Opaque {} + +final class __darwin_arm_neon_state64 extends ffi.Opaque {} + +final class __darwin_arm_sme2_state extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array __zt0; +} + +final class __darwin_arm_sme_state extends ffi.Struct { + @__uint64_t() + external int __svcr; + + @__uint64_t() + external int __tpidr2_el0; + + @__uint16_t() + external int __svl_b; +} + +final class __darwin_arm_sme_za_state extends ffi.Struct { + @ffi.Array.multi([4096]) + external ffi.Array __za; +} + +final class __darwin_arm_sve_p_state extends ffi.Struct { + @ffi.Array.multi([16, 32]) + external ffi.Array> __p; +} + +final class __darwin_arm_sve_z_state extends ffi.Struct { + @ffi.Array.multi([16, 256]) + external ffi.Array> __z; +} + +final class __darwin_arm_thread_state extends ffi.Struct { + @ffi.Array.multi([13]) + external ffi.Array<__uint32_t> __r; + + @__uint32_t() + external int __sp; + + @__uint32_t() + external int __lr; + + @__uint32_t() + external int __pc; + + @__uint32_t() + external int __cpsr; +} + +final class __darwin_arm_thread_state64 extends ffi.Struct { + @ffi.Array.multi([29]) + external ffi.Array<__uint64_t> __x; + + @__uint64_t() + external int __fp; + + @__uint64_t() + external int __lr; + + @__uint64_t() + external int __sp; + + @__uint64_t() + external int __pc; + + @__uint32_t() + external int __cpsr; + + @__uint32_t() + external int __pad; +} + +final class __darwin_arm_vfp_state extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array<__uint32_t> __r; + + @__uint32_t() + external int __fpscr; +} + +typedef __darwin_blkcnt_t = __int64_t; +typedef __darwin_blksize_t = __int32_t; +typedef __darwin_clock_t = ffi.UnsignedLong; +typedef Dart__darwin_clock_t = int; +typedef __darwin_ct_rune_t = ffi.Int; +typedef Dart__darwin_ct_rune_t = int; +typedef __darwin_dev_t = __int32_t; +typedef __darwin_fsblkcnt_t = ffi.UnsignedInt; +typedef Dart__darwin_fsblkcnt_t = int; +typedef __darwin_fsfilcnt_t = ffi.UnsignedInt; +typedef Dart__darwin_fsfilcnt_t = int; +typedef __darwin_gid_t = __uint32_t; +typedef __darwin_id_t = __uint32_t; +typedef __darwin_ino64_t = __uint64_t; +typedef __darwin_ino_t = __darwin_ino64_t; +typedef __darwin_intptr_t = ffi.Long; +typedef Dart__darwin_intptr_t = int; +typedef __darwin_mach_port_name_t = __darwin_natural_t; +typedef __darwin_mach_port_t = __darwin_mach_port_name_t; +typedef __darwin_mbstate_t = __mbstate_t; + +final class __darwin_mcontext32 extends ffi.Struct { + external __darwin_arm_exception_state __es; + + external __darwin_arm_thread_state __ss; + + external __darwin_arm_vfp_state __fs; +} + +final class __darwin_mcontext64 extends ffi.Opaque {} + +typedef __darwin_mode_t = __uint16_t; +typedef __darwin_natural_t = ffi.UnsignedInt; +typedef Dart__darwin_natural_t = int; +typedef __darwin_nl_item = ffi.Int; +typedef Dart__darwin_nl_item = int; +typedef __darwin_off_t = __int64_t; +typedef __darwin_pid_t = __int32_t; +typedef __darwin_pthread_attr_t = _opaque_pthread_attr_t; +typedef __darwin_pthread_cond_t = _opaque_pthread_cond_t; +typedef __darwin_pthread_condattr_t = _opaque_pthread_condattr_t; + +final class __darwin_pthread_handler_rec extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction)> + > + __routine; + + external ffi.Pointer __arg; + + external ffi.Pointer<__darwin_pthread_handler_rec> __next; +} + +typedef __darwin_pthread_key_t = ffi.UnsignedLong; +typedef Dart__darwin_pthread_key_t = int; +typedef __darwin_pthread_mutex_t = _opaque_pthread_mutex_t; +typedef __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t; +typedef __darwin_pthread_once_t = _opaque_pthread_once_t; +typedef __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t; +typedef __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t; +typedef __darwin_pthread_t = ffi.Pointer<_opaque_pthread_t>; +typedef __darwin_ptrdiff_t = ffi.Long; +typedef Dart__darwin_ptrdiff_t = int; +typedef __darwin_rune_t = __darwin_wchar_t; + +final class __darwin_sigaltstack extends ffi.Struct { + external ffi.Pointer ss_sp; + + @__darwin_size_t() + external int ss_size; + + @ffi.Int() + external int ss_flags; +} + +typedef __darwin_sigset_t = __uint32_t; +typedef __darwin_size_t = ffi.UnsignedLong; +typedef Dart__darwin_size_t = int; +typedef __darwin_socklen_t = __uint32_t; +typedef __darwin_ssize_t = ffi.Long; +typedef Dart__darwin_ssize_t = int; +typedef __darwin_suseconds_t = __int32_t; +typedef __darwin_time_t = ffi.Long; +typedef Dart__darwin_time_t = int; + +final class __darwin_ucontext extends ffi.Struct { + @ffi.Int() + external int uc_onstack; + + @__darwin_sigset_t() + external int uc_sigmask; + + external __darwin_sigaltstack uc_stack; + + external ffi.Pointer<__darwin_ucontext> uc_link; + + @__darwin_size_t() + external int uc_mcsize; + + external ffi.Pointer<__darwin_mcontext64> uc_mcontext; +} + +typedef __darwin_uid_t = __uint32_t; +typedef __darwin_useconds_t = __uint32_t; +typedef __darwin_va_list = __builtin_va_list; +typedef __darwin_wchar_t = ffi.Int; +typedef Dart__darwin_wchar_t = int; +typedef __darwin_wctrans_t = ffi.Int; +typedef Dart__darwin_wctrans_t = int; +typedef __darwin_wctype_t = __uint32_t; +typedef __darwin_wint_t = ffi.Int; +typedef Dart__darwin_wint_t = int; + +final class __double2 extends ffi.Struct { + @ffi.Double() + external double __sinval; + + @ffi.Double() + external double __cosval; +} + +final class __float2 extends ffi.Struct { + @ffi.Float() + external double __sinval; + + @ffi.Float() + external double __cosval; +} + +const int __fpcr_flush_to_zero = 16777216; + +const int __fpcr_trap_denormal = 32768; + +const int __fpcr_trap_divbyzero = 512; + +const int __fpcr_trap_inexact = 4096; + +const int __fpcr_trap_invalid = 256; + +const int __fpcr_trap_overflow = 1024; + +const int __fpcr_trap_underflow = 2048; + +const int __fpsr_saturation = 134217728; + +typedef __gnuc_va_list = __builtin_va_list; +typedef __int16_t = ffi.Short; +typedef Dart__int16_t = int; +typedef __int32_t = ffi.Int; +typedef Dart__int32_t = int; +typedef __int64_t = ffi.LongLong; +typedef Dart__int64_t = int; +typedef __int8_t = ffi.SignedChar; +typedef Dart__int8_t = int; + +final class __mbstate_t extends ffi.Union { + @ffi.Array.multi([128]) + external ffi.Array __mbstate8; + + @ffi.LongLong() + external int _mbstateL; +} + +@ffi.Packed(4) +final class __msfilterreq extends ffi.Struct { + @ffi.Uint32() + external int msfr_ifindex; + + @ffi.Uint32() + external int msfr_fmode; + + @ffi.Uint32() + external int msfr_nsrcs; + + @ffi.Uint32() + external int __msfr_align; + + external sockaddr_storage msfr_group; + + external ffi.Pointer msfr_srcs; +} + +final class __sFILE extends ffi.Struct { + external ffi.Pointer _p; + + @ffi.Int() + external int _r; + + @ffi.Int() + external int _w; + + @ffi.Short() + external int _flags; + + @ffi.Short() + external int _file; + + external __sbuf _bf; + + @ffi.Int() + external int _lbfsize; + + external ffi.Pointer _cookie; + + external ffi.Pointer< + ffi.NativeFunction)> + > + _close$1; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + _read$1; + + external ffi.Pointer< + ffi.NativeFunction, fpos_t, ffi.Int)> + > + _seek; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + _write$1; + + external __sbuf _ub; + + external ffi.Pointer<__sFILEX> _extra; + + @ffi.Int() + external int _ur; + + @ffi.Array.multi([3]) + external ffi.Array _ubuf; + + @ffi.Array.multi([1]) + external ffi.Array _nbuf; + + external __sbuf _lb; + + @ffi.Int() + external int _blksize; + + @fpos_t() + external int _offset; +} + +final class __sFILEX extends ffi.Opaque {} + +final class __sbuf extends ffi.Struct { + external ffi.Pointer _base; + + @ffi.Int() + external int _size; +} + +final class __sigaction extends ffi.Struct { + external __sigaction_u __sigaction_u$1; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + > + sa_tramp; + + @sigset_t() + external int sa_mask; + + @ffi.Int() + external int sa_flags; +} + +final class __sigaction_u extends ffi.Union { + external ffi.Pointer> + __sa_handler; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Int, ffi.Pointer<__siginfo>, ffi.Pointer) + > + > + __sa_sigaction; +} + +final class __siginfo extends ffi.Struct { + @ffi.Int() + external int si_signo; + + @ffi.Int() + external int si_errno; + + @ffi.Int() + external int si_code; + + @pid_t() + external int si_pid; + + @uid_t() + external int si_uid; + + @ffi.Int() + external int si_status; + + external ffi.Pointer si_addr; + + external sigval si_value; + + @ffi.Long() + external int si_band; + + @ffi.Array.multi([7]) + external ffi.Array __pad; +} + +final class __sockaddr_header extends ffi.Struct { + @__uint8_t() + external int sa_len; + + @sa_family_t() + external int sa_family; +} + +typedef __uint16_t = ffi.UnsignedShort; +typedef Dart__uint16_t = int; +typedef __uint32_t = ffi.UnsignedInt; +typedef Dart__uint32_t = int; +typedef __uint64_t = ffi.UnsignedLongLong; +typedef Dart__uint64_t = int; +typedef __uint8_t = ffi.UnsignedChar; +typedef Dart__uint8_t = int; + +final class _acl extends ffi.Opaque {} + +final class _acl_entry extends ffi.Opaque {} + +final class _acl_flagset extends ffi.Opaque {} + +final class _acl_permset extends ffi.Opaque {} + +final class _cl_device_id extends ffi.Opaque {} + +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_AVAudioPlayer', +) +external ffi.Pointer _class_AVAudioPlayer_raw; +final _class_AVAudioPlayer = objc.getClass( + "AVAudioPlayer", + () => ffi.Native.addressOf>( + _class_AVAudioPlayer_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSArray') +external ffi.Pointer _class_NSArray_raw; +final _class_NSArray = objc.getClass( + "NSArray", + () => ffi.Native.addressOf>( + _class_NSArray_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSAttributedString', +) +external ffi.Pointer _class_NSAttributedString_raw; +final _class_NSAttributedString = objc.getClass( + "NSAttributedString", + () => ffi.Native.addressOf>( + _class_NSAttributedString_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSBundle') +external ffi.Pointer _class_NSBundle_raw; +final _class_NSBundle = objc.getClass( + "NSBundle", + () => ffi.Native.addressOf>( + _class_NSBundle_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSCharacterSet', +) +external ffi.Pointer _class_NSCharacterSet_raw; +final _class_NSCharacterSet = objc.getClass( + "NSCharacterSet", + () => ffi.Native.addressOf>( + _class_NSCharacterSet_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSCoder') +external ffi.Pointer _class_NSCoder_raw; +final _class_NSCoder = objc.getClass( + "NSCoder", + () => ffi.Native.addressOf>( + _class_NSCoder_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSData') +external ffi.Pointer _class_NSData_raw; +final _class_NSData = objc.getClass( + "NSData", + () => ffi.Native.addressOf>( + _class_NSData_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSDate') +external ffi.Pointer _class_NSDate_raw; +final _class_NSDate = objc.getClass( + "NSDate", + () => ffi.Native.addressOf>( + _class_NSDate_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSDictionary', +) +external ffi.Pointer _class_NSDictionary_raw; +final _class_NSDictionary = objc.getClass( + "NSDictionary", + () => ffi.Native.addressOf>( + _class_NSDictionary_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSInputStream', +) +external ffi.Pointer _class_NSInputStream_raw; +final _class_NSInputStream = objc.getClass( + "NSInputStream", + () => ffi.Native.addressOf>( + _class_NSInputStream_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSItemProvider', +) +external ffi.Pointer _class_NSItemProvider_raw; +final _class_NSItemProvider = objc.getClass( + "NSItemProvider", + () => ffi.Native.addressOf>( + _class_NSItemProvider_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSLocale') +external ffi.Pointer _class_NSLocale_raw; +final _class_NSLocale = objc.getClass( + "NSLocale", + () => ffi.Native.addressOf>( + _class_NSLocale_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableArray', +) +external ffi.Pointer _class_NSMutableArray_raw; +final _class_NSMutableArray = objc.getClass( + "NSMutableArray", + () => ffi.Native.addressOf>( + _class_NSMutableArray_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableData', +) +external ffi.Pointer _class_NSMutableData_raw; +final _class_NSMutableData = objc.getClass( + "NSMutableData", + () => ffi.Native.addressOf>( + _class_NSMutableData_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableDictionary', +) +external ffi.Pointer _class_NSMutableDictionary_raw; +final _class_NSMutableDictionary = objc.getClass( + "NSMutableDictionary", + () => ffi.Native.addressOf>( + _class_NSMutableDictionary_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableOrderedSet', +) +external ffi.Pointer _class_NSMutableOrderedSet_raw; +final _class_NSMutableOrderedSet = objc.getClass( + "NSMutableOrderedSet", + () => ffi.Native.addressOf>( + _class_NSMutableOrderedSet_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableSet', +) +external ffi.Pointer _class_NSMutableSet_raw; +final _class_NSMutableSet = objc.getClass( + "NSMutableSet", + () => ffi.Native.addressOf>( + _class_NSMutableSet_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableString', +) +external ffi.Pointer _class_NSMutableString_raw; +final _class_NSMutableString = objc.getClass( + "NSMutableString", + () => ffi.Native.addressOf>( + _class_NSMutableString_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSNotification', +) +external ffi.Pointer _class_NSNotification_raw; +final _class_NSNotification = objc.getClass( + "NSNotification", + () => ffi.Native.addressOf>( + _class_NSNotification_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSNumber') +external ffi.Pointer _class_NSNumber_raw; +final _class_NSNumber = objc.getClass( + "NSNumber", + () => ffi.Native.addressOf>( + _class_NSNumber_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSObject') +external ffi.Pointer _class_NSObject_raw; +final _class_NSObject = objc.getClass( + "NSObject", + () => ffi.Native.addressOf>( + _class_NSObject_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSOrderedSet', +) +external ffi.Pointer _class_NSOrderedSet_raw; +final _class_NSOrderedSet = objc.getClass( + "NSOrderedSet", + () => ffi.Native.addressOf>( + _class_NSOrderedSet_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSOutputStream', +) +external ffi.Pointer _class_NSOutputStream_raw; +final _class_NSOutputStream = objc.getClass( + "NSOutputStream", + () => ffi.Native.addressOf>( + _class_NSOutputStream_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSRunLoop') +external ffi.Pointer _class_NSRunLoop_raw; +final _class_NSRunLoop = objc.getClass( + "NSRunLoop", + () => ffi.Native.addressOf>( + _class_NSRunLoop_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSSet') +external ffi.Pointer _class_NSSet_raw; +final _class_NSSet = objc.getClass( + "NSSet", + () => ffi.Native.addressOf>( + _class_NSSet_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSStream') +external ffi.Pointer _class_NSStream_raw; +final _class_NSStream = objc.getClass( + "NSStream", + () => ffi.Native.addressOf>( + _class_NSStream_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSString') +external ffi.Pointer _class_NSString_raw; +final _class_NSString = objc.getClass( + "NSString", + () => ffi.Native.addressOf>( + _class_NSString_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSURL') +external ffi.Pointer _class_NSURL_raw; +final _class_NSURL = objc.getClass( + "NSURL", + () => ffi.Native.addressOf>( + _class_NSURL_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSValue') +external ffi.Pointer _class_NSValue_raw; +final _class_NSValue = objc.getClass( + "NSValue", + () => ffi.Native.addressOf>( + _class_NSValue_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_bklti2', +) +external ffi.Pointer _class__BlockArgs_112ozxo_raw; +final _class__BlockArgs_112ozxo = objc.getClass( + "_1uu024u_BlockArgs_bklti2", + () => ffi.Native.addressOf>( + _class__BlockArgs_112ozxo_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_117e0ww_raw; +final _class__BlockArgs_117e0ww = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_117e0ww_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18kzm6a', +) +external ffi.Pointer _class__BlockArgs_11uyayp_raw; +final _class__BlockArgs_11uyayp = objc.getClass( + "_1uu024u_BlockArgs_18kzm6a", + () => ffi.Native.addressOf>( + _class__BlockArgs_11uyayp_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_121fmzs_raw; +final _class__BlockArgs_121fmzs = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_121fmzs_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_f167m6', +) +external ffi.Pointer _class__BlockArgs_12cm2y5_raw; +final _class__BlockArgs_12cm2y5 = objc.getClass( + "_1uu024u_BlockArgs_f167m6", + () => ffi.Native.addressOf>( + _class__BlockArgs_12cm2y5_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_gwxhxt', +) +external ffi.Pointer _class__BlockArgs_12rv5aa_raw; +final _class__BlockArgs_12rv5aa = objc.getClass( + "_1uu024u_BlockArgs_gwxhxt", + () => ffi.Native.addressOf>( + _class__BlockArgs_12rv5aa_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_34xzuf', +) +external ffi.Pointer _class__BlockArgs_12tf05r_raw; +final _class__BlockArgs_12tf05r = objc.getClass( + "_1uu024u_BlockArgs_34xzuf", + () => ffi.Native.addressOf>( + _class__BlockArgs_12tf05r_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_12ykekb_raw; +final _class__BlockArgs_12ykekb = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_12ykekb_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15e9dqx', +) +external ffi.Pointer _class__BlockArgs_133h48c_raw; +final _class__BlockArgs_133h48c = objc.getClass( + "_1uu024u_BlockArgs_15e9dqx", + () => ffi.Native.addressOf>( + _class__BlockArgs_133h48c_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_136y7ma_raw; +final _class__BlockArgs_136y7ma = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_136y7ma_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1kwz7d1', +) +external ffi.Pointer _class__BlockArgs_13g89k6_raw; +final _class__BlockArgs_13g89k6 = objc.getClass( + "_1uu024u_BlockArgs_1kwz7d1", + () => ffi.Native.addressOf>( + _class__BlockArgs_13g89k6_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_13o2rom_raw; +final _class__BlockArgs_13o2rom = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_13o2rom_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_13sb76x_raw; +final _class__BlockArgs_13sb76x = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_13sb76x_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_140cpyj_raw; +final _class__BlockArgs_140cpyj = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_140cpyj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_14dahaa_raw; +final _class__BlockArgs_14dahaa = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_14dahaa_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_tg5tbv', +) +external ffi.Pointer _class__BlockArgs_14lm7fk_raw; +final _class__BlockArgs_14lm7fk = objc.getClass( + "_1uu024u_BlockArgs_tg5tbv", + () => ffi.Native.addressOf>( + _class__BlockArgs_14lm7fk_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', +) +external ffi.Pointer _class__BlockArgs_15cdu5z_raw; +final _class__BlockArgs_15cdu5z = objc.getClass( + "_1uu024u_BlockArgs_xx612k", + () => ffi.Native.addressOf>( + _class__BlockArgs_15cdu5z_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_15jt9u5_raw; +final _class__BlockArgs_15jt9u5 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_15jt9u5_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_15vjajw_raw; +final _class__BlockArgs_15vjajw = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_15vjajw_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_16ix251_raw; +final _class__BlockArgs_16ix251 = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_16ix251_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_16t4ozp_raw; +final _class__BlockArgs_16t4ozp = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_16t4ozp_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_170i760_raw; +final _class__BlockArgs_170i760 = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_170i760_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1otpo83', +) +external ffi.Pointer _class__BlockArgs_171cldw_raw; +final _class__BlockArgs_171cldw = objc.getClass( + "_1uu024u_BlockArgs_1otpo83", + () => ffi.Native.addressOf>( + _class__BlockArgs_171cldw_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1lx650f', +) +external ffi.Pointer _class__BlockArgs_17jmtfx_raw; +final _class__BlockArgs_17jmtfx = objc.getClass( + "_1uu024u_BlockArgs_1lx650f", + () => ffi.Native.addressOf>( + _class__BlockArgs_17jmtfx_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15ghdzk', +) +external ffi.Pointer _class__BlockArgs_17mefw7_raw; +final _class__BlockArgs_17mefw7 = objc.getClass( + "_1uu024u_BlockArgs_15ghdzk", + () => ffi.Native.addressOf>( + _class__BlockArgs_17mefw7_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_17xklgp_raw; +final _class__BlockArgs_17xklgp = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_17xklgp_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_18kc0nv_raw; +final _class__BlockArgs_18kc0nv = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_18kc0nv_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_197qivc_raw; +final _class__BlockArgs_197qivc = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_197qivc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_wy9lus', +) +external ffi.Pointer _class__BlockArgs_19pyqcd_raw; +final _class__BlockArgs_19pyqcd = objc.getClass( + "_1uu024u_BlockArgs_wy9lus", + () => ffi.Native.addressOf>( + _class__BlockArgs_19pyqcd_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_19rrqmo_raw; +final _class__BlockArgs_19rrqmo = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_19rrqmo_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_l2g8ke', +) +external ffi.Pointer _class__BlockArgs_1ayzt6i_raw; +final _class__BlockArgs_1ayzt6i = objc.getClass( + "_1uu024u_BlockArgs_l2g8ke", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ayzt6i_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1ciefi0_raw; +final _class__BlockArgs_1ciefi0 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ciefi0_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1e1kc88_raw; +final _class__BlockArgs_1e1kc88 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1e1kc88_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18qun1e', +) +external ffi.Pointer _class__BlockArgs_1e3xl1p_raw; +final _class__BlockArgs_1e3xl1p = objc.getClass( + "_1uu024u_BlockArgs_18qun1e", + () => ffi.Native.addressOf>( + _class__BlockArgs_1e3xl1p_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1ek5uoy_raw; +final _class__BlockArgs_1ek5uoy = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ek5uoy_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1f64crj_raw; +final _class__BlockArgs_1f64crj = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1f64crj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1fj0jrw_raw; +final _class__BlockArgs_1fj0jrw = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1fj0jrw_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_zzthnb', +) +external ffi.Pointer _class__BlockArgs_1giidhf_raw; +final _class__BlockArgs_1giidhf = objc.getClass( + "_1uu024u_BlockArgs_zzthnb", + () => ffi.Native.addressOf>( + _class__BlockArgs_1giidhf_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_1gmgda9_raw; +final _class__BlockArgs_1gmgda9 = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_1gmgda9_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1hj9xku_raw; +final _class__BlockArgs_1hj9xku = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1hj9xku_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1yrznn1', +) +external ffi.Pointer _class__BlockArgs_1hs0ws6_raw; +final _class__BlockArgs_1hs0ws6 = objc.getClass( + "_1uu024u_BlockArgs_1yrznn1", + () => ffi.Native.addressOf>( + _class__BlockArgs_1hs0ws6_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1hwelu_raw; +final _class__BlockArgs_1hwelu = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1hwelu_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1i7oea2_raw; +final _class__BlockArgs_1i7oea2 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1i7oea2_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_1j32c3t_raw; +final _class__BlockArgs_1j32c3t = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1j32c3t_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1jcra61_raw; +final _class__BlockArgs_1jcra61 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1jcra61_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', +) +external ffi.Pointer _class__BlockArgs_1kowxjl_raw; +final _class__BlockArgs_1kowxjl = objc.getClass( + "_1uu024u_BlockArgs_m09tr7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1kowxjl_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ly2579', +) +external ffi.Pointer _class__BlockArgs_1l7b9ji_raw; +final _class__BlockArgs_1l7b9ji = objc.getClass( + "_1uu024u_BlockArgs_ly2579", + () => ffi.Native.addressOf>( + _class__BlockArgs_1l7b9ji_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_du1izn', +) +external ffi.Pointer _class__BlockArgs_1lr5l4t_raw; +final _class__BlockArgs_1lr5l4t = objc.getClass( + "_1uu024u_BlockArgs_du1izn", + () => ffi.Native.addressOf>( + _class__BlockArgs_1lr5l4t_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_zuf90e', +) +external ffi.Pointer _class__BlockArgs_1ltqoqj_raw; +final _class__BlockArgs_1ltqoqj = objc.getClass( + "_1uu024u_BlockArgs_zuf90e", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ltqoqj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', +) +external ffi.Pointer _class__BlockArgs_1mv87bk_raw; +final _class__BlockArgs_1mv87bk = objc.getClass( + "_1uu024u_BlockArgs_r8gdi7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1mv87bk_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_1n468bj_raw; +final _class__BlockArgs_1n468bj = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1n468bj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_1n5meg5_raw; +final _class__BlockArgs_1n5meg5 = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1n5meg5_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_1n6ph2_raw; +final _class__BlockArgs_1n6ph2 = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1n6ph2_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8acz2h', +) +external ffi.Pointer _class__BlockArgs_1nn0na_raw; +final _class__BlockArgs_1nn0na = objc.getClass( + "_1uu024u_BlockArgs_8acz2h", + () => ffi.Native.addressOf>( + _class__BlockArgs_1nn0na_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18qun1e', +) +external ffi.Pointer _class__BlockArgs_1nq9pr6_raw; +final _class__BlockArgs_1nq9pr6 = objc.getClass( + "_1uu024u_BlockArgs_18qun1e", + () => ffi.Native.addressOf>( + _class__BlockArgs_1nq9pr6_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_1o2efq5_raw; +final _class__BlockArgs_1o2efq5 = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1o2efq5_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1o8dtl_raw; +final _class__BlockArgs_1o8dtl = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1o8dtl_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1odc9lb_raw; +final _class__BlockArgs_1odc9lb = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1odc9lb_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1oetg5g_raw; +final _class__BlockArgs_1oetg5g = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1oetg5g_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', +) +external ffi.Pointer _class__BlockArgs_1oftdow_raw; +final _class__BlockArgs_1oftdow = objc.getClass( + "_1uu024u_BlockArgs_r8gdi7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1oftdow_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1p1ax08_raw; +final _class__BlockArgs_1p1ax08 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1p1ax08_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_1p7ak3v_raw; +final _class__BlockArgs_1p7ak3v = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1p7ak3v_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_h68abb', +) +external ffi.Pointer _class__BlockArgs_1pfucun_raw; +final _class__BlockArgs_1pfucun = objc.getClass( + "_1uu024u_BlockArgs_h68abb", + () => ffi.Native.addressOf>( + _class__BlockArgs_1pfucun_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1pfw36l_raw; +final _class__BlockArgs_1pfw36l = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1pfw36l_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1pj0but_raw; +final _class__BlockArgs_1pj0but = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1pj0but_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1ptzs7z_raw; +final _class__BlockArgs_1ptzs7z = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ptzs7z_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_lmc3p5', +) +external ffi.Pointer _class__BlockArgs_1pvrxoh_raw; +final _class__BlockArgs_1pvrxoh = objc.getClass( + "_1uu024u_BlockArgs_lmc3p5", + () => ffi.Native.addressOf>( + _class__BlockArgs_1pvrxoh_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_1q305zu_raw; +final _class__BlockArgs_1q305zu = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1q305zu_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1r6tt56_raw; +final _class__BlockArgs_1r6tt56 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1r6tt56_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1l4hxwm', +) +external ffi.Pointer _class__BlockArgs_1s0z6xl_raw; +final _class__BlockArgs_1s0z6xl = objc.getClass( + "_1uu024u_BlockArgs_1l4hxwm", + () => ffi.Native.addressOf>( + _class__BlockArgs_1s0z6xl_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9o8504', +) +external ffi.Pointer _class__BlockArgs_1s2j81k_raw; +final _class__BlockArgs_1s2j81k = objc.getClass( + "_1uu024u_BlockArgs_9o8504", + () => ffi.Native.addressOf>( + _class__BlockArgs_1s2j81k_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1siniii_raw; +final _class__BlockArgs_1siniii = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1siniii_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_b3tf6o', +) +external ffi.Pointer _class__BlockArgs_1sucxsg_raw; +final _class__BlockArgs_1sucxsg = objc.getClass( + "_1uu024u_BlockArgs_b3tf6o", + () => ffi.Native.addressOf>( + _class__BlockArgs_1sucxsg_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1sy9q99_raw; +final _class__BlockArgs_1sy9q99 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1sy9q99_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_1tklz9g_raw; +final _class__BlockArgs_1tklz9g = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_1tklz9g_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6jvo9y', +) +external ffi.Pointer _class__BlockArgs_1uc4fg7_raw; +final _class__BlockArgs_1uc4fg7 = objc.getClass( + "_1uu024u_BlockArgs_6jvo9y", + () => ffi.Native.addressOf>( + _class__BlockArgs_1uc4fg7_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_1uox71a_raw; +final _class__BlockArgs_1uox71a = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_1uox71a_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_1ura76_raw; +final _class__BlockArgs_1ura76 = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ura76_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_1usrzbh_raw; +final _class__BlockArgs_1usrzbh = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1usrzbh_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_l3f29g', +) +external ffi.Pointer _class__BlockArgs_1v0sc8_raw; +final _class__BlockArgs_1v0sc8 = objc.getClass( + "_1uu024u_BlockArgs_l3f29g", + () => ffi.Native.addressOf>( + _class__BlockArgs_1v0sc8_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_11t2oft', +) +external ffi.Pointer _class__BlockArgs_1x2wp90_raw; +final _class__BlockArgs_1x2wp90 = objc.getClass( + "_1uu024u_BlockArgs_11t2oft", + () => ffi.Native.addressOf>( + _class__BlockArgs_1x2wp90_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', +) +external ffi.Pointer _class__BlockArgs_1xfn2k3_raw; +final _class__BlockArgs_1xfn2k3 = objc.getClass( + "_1uu024u_BlockArgs_xx612k", + () => ffi.Native.addressOf>( + _class__BlockArgs_1xfn2k3_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_132rcs6', +) +external ffi.Pointer _class__BlockArgs_1xkpqmj_raw; +final _class__BlockArgs_1xkpqmj = objc.getClass( + "_1uu024u_BlockArgs_132rcs6", + () => ffi.Native.addressOf>( + _class__BlockArgs_1xkpqmj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1y4tc38_raw; +final _class__BlockArgs_1y4tc38 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1y4tc38_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_16sve1d', +) +external ffi.Pointer _class__BlockArgs_1y7f3jy_raw; +final _class__BlockArgs_1y7f3jy = objc.getClass( + "_1uu024u_BlockArgs_16sve1d", + () => ffi.Native.addressOf>( + _class__BlockArgs_1y7f3jy_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1z0whcc_raw; +final _class__BlockArgs_1z0whcc = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1z0whcc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', +) +external ffi.Pointer _class__BlockArgs_31cygh_raw; +final _class__BlockArgs_31cygh = objc.getClass( + "_1uu024u_BlockArgs_xx612k", + () => ffi.Native.addressOf>( + _class__BlockArgs_31cygh_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_347s5u_raw; +final _class__BlockArgs_347s5u = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_347s5u_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', +) +external ffi.Pointer _class__BlockArgs_3gru2r_raw; +final _class__BlockArgs_3gru2r = objc.getClass( + "_1uu024u_BlockArgs_r8gdi7", + () => ffi.Native.addressOf>( + _class__BlockArgs_3gru2r_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1qf1qkl', +) +external ffi.Pointer _class__BlockArgs_3jhjrc_raw; +final _class__BlockArgs_3jhjrc = objc.getClass( + "_1uu024u_BlockArgs_1qf1qkl", + () => ffi.Native.addressOf>( + _class__BlockArgs_3jhjrc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_3prg4b_raw; +final _class__BlockArgs_3prg4b = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_3prg4b_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_43hp0b_raw; +final _class__BlockArgs_43hp0b = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_43hp0b_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_461rr9_raw; +final _class__BlockArgs_461rr9 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_461rr9_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9crvvv', +) +external ffi.Pointer _class__BlockArgs_5wf51x_raw; +final _class__BlockArgs_5wf51x = objc.getClass( + "_1uu024u_BlockArgs_9crvvv", + () => ffi.Native.addressOf>( + _class__BlockArgs_5wf51x_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1rz4y3', +) +external ffi.Pointer _class__BlockArgs_5zyi3o_raw; +final _class__BlockArgs_5zyi3o = objc.getClass( + "_1uu024u_BlockArgs_1rz4y3", + () => ffi.Native.addressOf>( + _class__BlockArgs_5zyi3o_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_6tydoo_raw; +final _class__BlockArgs_6tydoo = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_6tydoo_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1b3bb6a', +) +external ffi.Pointer _class__BlockArgs_6yk1dr_raw; +final _class__BlockArgs_6yk1dr = objc.getClass( + "_1uu024u_BlockArgs_1b3bb6a", + () => ffi.Native.addressOf>( + _class__BlockArgs_6yk1dr_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_7xicdf_raw; +final _class__BlockArgs_7xicdf = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_7xicdf_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_jyim80', +) +external ffi.Pointer _class__BlockArgs_99x6vt_raw; +final _class__BlockArgs_99x6vt = objc.getClass( + "_1uu024u_BlockArgs_jyim80", + () => ffi.Native.addressOf>( + _class__BlockArgs_99x6vt_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1j7coyk', +) +external ffi.Pointer _class__BlockArgs_abn34x_raw; +final _class__BlockArgs_abn34x = objc.getClass( + "_1uu024u_BlockArgs_1j7coyk", + () => ffi.Native.addressOf>( + _class__BlockArgs_abn34x_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_adcfsd_raw; +final _class__BlockArgs_adcfsd = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_adcfsd_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_aec946_raw; +final _class__BlockArgs_aec946 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_aec946_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ovsamd', +) +external ffi.Pointer _class__BlockArgs_awd5mj_raw; +final _class__BlockArgs_awd5mj = objc.getClass( + "_1uu024u_BlockArgs_ovsamd", + () => ffi.Native.addressOf>( + _class__BlockArgs_awd5mj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_b9s2kt_raw; +final _class__BlockArgs_b9s2kt = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_b9s2kt_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_blvx9k_raw; +final _class__BlockArgs_blvx9k = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_blvx9k_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_bklti2', +) +external ffi.Pointer _class__BlockArgs_de64m_raw; +final _class__BlockArgs_de64m = objc.getClass( + "_1uu024u_BlockArgs_bklti2", + () => ffi.Native.addressOf>( + _class__BlockArgs_de64m_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_o762yo', +) +external ffi.Pointer _class__BlockArgs_di5ft6_raw; +final _class__BlockArgs_di5ft6 = objc.getClass( + "_1uu024u_BlockArgs_o762yo", + () => ffi.Native.addressOf>( + _class__BlockArgs_di5ft6_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1ctgxtl', +) +external ffi.Pointer _class__BlockArgs_dmvhfp_raw; +final _class__BlockArgs_dmvhfp = objc.getClass( + "_1uu024u_BlockArgs_1ctgxtl", + () => ffi.Native.addressOf>( + _class__BlockArgs_dmvhfp_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1l4hxwm', +) +external ffi.Pointer _class__BlockArgs_eu2222_raw; +final _class__BlockArgs_eu2222 = objc.getClass( + "_1uu024u_BlockArgs_1l4hxwm", + () => ffi.Native.addressOf>( + _class__BlockArgs_eu2222_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1cn988u', +) +external ffi.Pointer _class__BlockArgs_gcznpv_raw; +final _class__BlockArgs_gcznpv = objc.getClass( + "_1uu024u_BlockArgs_1cn988u", + () => ffi.Native.addressOf>( + _class__BlockArgs_gcznpv_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8jfq1p', +) +external ffi.Pointer _class__BlockArgs_hacm4k_raw; +final _class__BlockArgs_hacm4k = objc.getClass( + "_1uu024u_BlockArgs_8jfq1p", + () => ffi.Native.addressOf>( + _class__BlockArgs_hacm4k_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_o762yo', +) +external ffi.Pointer _class__BlockArgs_hj4uui_raw; +final _class__BlockArgs_hj4uui = objc.getClass( + "_1uu024u_BlockArgs_o762yo", + () => ffi.Native.addressOf>( + _class__BlockArgs_hj4uui_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1037nh9', +) +external ffi.Pointer _class__BlockArgs_hj6v1u_raw; +final _class__BlockArgs_hj6v1u = objc.getClass( + "_1uu024u_BlockArgs_1037nh9", + () => ffi.Native.addressOf>( + _class__BlockArgs_hj6v1u_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_i7wriu_raw; +final _class__BlockArgs_i7wriu = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_i7wriu_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1pl9qdv', +) +external ffi.Pointer _class__BlockArgs_ii17hk_raw; +final _class__BlockArgs_ii17hk = objc.getClass( + "_1uu024u_BlockArgs_1pl9qdv", + () => ffi.Native.addressOf>( + _class__BlockArgs_ii17hk_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_k73ff5', +) +external ffi.Pointer _class__BlockArgs_j3xbuw_raw; +final _class__BlockArgs_j3xbuw = objc.getClass( + "_1uu024u_BlockArgs_k73ff5", + () => ffi.Native.addressOf>( + _class__BlockArgs_j3xbuw_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', +) +external ffi.Pointer _class__BlockArgs_jqba1_raw; +final _class__BlockArgs_jqba1 = objc.getClass( + "_1uu024u_BlockArgs_xx612k", + () => ffi.Native.addressOf>( + _class__BlockArgs_jqba1_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_jzitwn_raw; +final _class__BlockArgs_jzitwn = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_jzitwn_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_k1nazc_raw; +final _class__BlockArgs_k1nazc = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_k1nazc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_k2hpmy_raw; +final _class__BlockArgs_k2hpmy = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_k2hpmy_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18kzm6a', +) +external ffi.Pointer _class__BlockArgs_k4eb20_raw; +final _class__BlockArgs_k4eb20 = objc.getClass( + "_1uu024u_BlockArgs_18kzm6a", + () => ffi.Native.addressOf>( + _class__BlockArgs_k4eb20_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1s56lr9', +) +external ffi.Pointer _class__BlockArgs_k4je64_raw; +final _class__BlockArgs_k4je64 = objc.getClass( + "_1uu024u_BlockArgs_1s56lr9", + () => ffi.Native.addressOf>( + _class__BlockArgs_k4je64_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6enxqz', +) +external ffi.Pointer _class__BlockArgs_kqbpyy_raw; +final _class__BlockArgs_kqbpyy = objc.getClass( + "_1uu024u_BlockArgs_6enxqz", + () => ffi.Native.addressOf>( + _class__BlockArgs_kqbpyy_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_krrtfh_raw; +final _class__BlockArgs_krrtfh = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_krrtfh_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_10ssdng', +) +external ffi.Pointer _class__BlockArgs_ldsont_raw; +final _class__BlockArgs_ldsont = objc.getClass( + "_1uu024u_BlockArgs_10ssdng", + () => ffi.Native.addressOf>( + _class__BlockArgs_ldsont_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_lmnq5k_raw; +final _class__BlockArgs_lmnq5k = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_lmnq5k_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1dqvvol', +) +external ffi.Pointer _class__BlockArgs_n2dxuu_raw; +final _class__BlockArgs_n2dxuu = objc.getClass( + "_1uu024u_BlockArgs_1dqvvol", + () => ffi.Native.addressOf>( + _class__BlockArgs_n2dxuu_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_nemba7_raw; +final _class__BlockArgs_nemba7 = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_nemba7_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8jfq1p', +) +external ffi.Pointer _class__BlockArgs_nhk5a9_raw; +final _class__BlockArgs_nhk5a9 = objc.getClass( + "_1uu024u_BlockArgs_8jfq1p", + () => ffi.Native.addressOf>( + _class__BlockArgs_nhk5a9_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_jk1ljc', +) +external ffi.Pointer _class__BlockArgs_pfi7f3_raw; +final _class__BlockArgs_pfi7f3 = objc.getClass( + "_1uu024u_BlockArgs_jk1ljc", + () => ffi.Native.addressOf>( + _class__BlockArgs_pfi7f3_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_pm23bg_raw; +final _class__BlockArgs_pm23bg = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_pm23bg_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1a22wz', +) +external ffi.Pointer _class__BlockArgs_q6fcam_raw; +final _class__BlockArgs_q6fcam = objc.getClass( + "_1uu024u_BlockArgs_1a22wz", + () => ffi.Native.addressOf>( + _class__BlockArgs_q6fcam_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_qjjttc_raw; +final _class__BlockArgs_qjjttc = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_qjjttc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_qss5hc_raw; +final _class__BlockArgs_qss5hc = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_qss5hc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_rojepe_raw; +final _class__BlockArgs_rojepe = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_rojepe_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_s52y0g_raw; +final _class__BlockArgs_s52y0g = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_s52y0g_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hk7n97', +) +external ffi.Pointer _class__BlockArgs_syyzqk_raw; +final _class__BlockArgs_syyzqk = objc.getClass( + "_1uu024u_BlockArgs_hk7n97", + () => ffi.Native.addressOf>( + _class__BlockArgs_syyzqk_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', +) +external ffi.Pointer _class__BlockArgs_t3r59d_raw; +final _class__BlockArgs_t3r59d = objc.getClass( + "_1uu024u_BlockArgs_m09tr7", + () => ffi.Native.addressOf>( + _class__BlockArgs_t3r59d_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15f11yh', +) +external ffi.Pointer _class__BlockArgs_tbof01_raw; +final _class__BlockArgs_tbof01 = objc.getClass( + "_1uu024u_BlockArgs_15f11yh", + () => ffi.Native.addressOf>( + _class__BlockArgs_tbof01_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_teaic5_raw; +final _class__BlockArgs_teaic5 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_teaic5_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_tikg8p_raw; +final _class__BlockArgs_tikg8p = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_tikg8p_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_truc42_raw; +final _class__BlockArgs_truc42 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_truc42_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_u4a6zc_raw; +final _class__BlockArgs_u4a6zc = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_u4a6zc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_n8yd09', +) +external ffi.Pointer _class__BlockArgs_u65oe8_raw; +final _class__BlockArgs_u65oe8 = objc.getClass( + "_1uu024u_BlockArgs_n8yd09", + () => ffi.Native.addressOf>( + _class__BlockArgs_u65oe8_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_og5b6y', +) +external ffi.Pointer _class__BlockArgs_uul9n9_raw; +final _class__BlockArgs_uul9n9 = objc.getClass( + "_1uu024u_BlockArgs_og5b6y", + () => ffi.Native.addressOf>( + _class__BlockArgs_uul9n9_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_rdj45r', +) +external ffi.Pointer _class__BlockArgs_v1zq3a_raw; +final _class__BlockArgs_v1zq3a = objc.getClass( + "_1uu024u_BlockArgs_rdj45r", + () => ffi.Native.addressOf>( + _class__BlockArgs_v1zq3a_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_v5xz31_raw; +final _class__BlockArgs_v5xz31 = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_v5xz31_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1a22wz', +) +external ffi.Pointer _class__BlockArgs_v8in3_raw; +final _class__BlockArgs_v8in3 = objc.getClass( + "_1uu024u_BlockArgs_1a22wz", + () => ffi.Native.addressOf>( + _class__BlockArgs_v8in3_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_vaglpl_raw; +final _class__BlockArgs_vaglpl = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_vaglpl_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9fms3g', +) +external ffi.Pointer _class__BlockArgs_vgtcpl_raw; +final _class__BlockArgs_vgtcpl = objc.getClass( + "_1uu024u_BlockArgs_9fms3g", + () => ffi.Native.addressOf>( + _class__BlockArgs_vgtcpl_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_vpa8ji_raw; +final _class__BlockArgs_vpa8ji = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_vpa8ji_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', +) +external ffi.Pointer _class__BlockArgs_vx7t4i_raw; +final _class__BlockArgs_vx7t4i = objc.getClass( + "_1uu024u_BlockArgs_m09tr7", + () => ffi.Native.addressOf>( + _class__BlockArgs_vx7t4i_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_10lndml', +) +external ffi.Pointer _class__BlockArgs_wpl2gn_raw; +final _class__BlockArgs_wpl2gn = objc.getClass( + "_1uu024u_BlockArgs_10lndml", + () => ffi.Native.addressOf>( + _class__BlockArgs_wpl2gn_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_wtbfzi_raw; +final _class__BlockArgs_wtbfzi = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_wtbfzi_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_x5cg0_raw; +final _class__BlockArgs_x5cg0 = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_x5cg0_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8acz2h', +) +external ffi.Pointer _class__BlockArgs_x7mqjz_raw; +final _class__BlockArgs_x7mqjz = objc.getClass( + "_1uu024u_BlockArgs_8acz2h", + () => ffi.Native.addressOf>( + _class__BlockArgs_x7mqjz_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_xcrg5s_raw; +final _class__BlockArgs_xcrg5s = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_xcrg5s_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_h68abb', +) +external ffi.Pointer _class__BlockArgs_xh08sz_raw; +final _class__BlockArgs_xh08sz = objc.getClass( + "_1uu024u_BlockArgs_h68abb", + () => ffi.Native.addressOf>( + _class__BlockArgs_xh08sz_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_xj71gr_raw; +final _class__BlockArgs_xj71gr = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_xj71gr_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_115kkcp', +) +external ffi.Pointer _class__BlockArgs_zgaes8_raw; +final _class__BlockArgs_zgaes8 = objc.getClass( + "_1uu024u_BlockArgs_115kkcp", + () => ffi.Native.addressOf>( + _class__BlockArgs_zgaes8_raw, + ).cast(), +); + +final class _cups_array_s extends ffi.Opaque {} + +final class _cups_dinfo_s extends ffi.Opaque {} + +final class _cups_file_s extends ffi.Opaque {} + +final class _cups_raster_s extends ffi.Opaque {} + +final class _filesec extends ffi.Opaque {} + +final class _http_addr_u extends ffi.Union { + external sockaddr addr; + + external sockaddr_in ipv4; + + external sockaddr_in6 ipv6; + + external sockaddr_un un; + + @ffi.Array.multi([256]) + external ffi.Array pad; +} + +final class _http_s extends ffi.Opaque {} + +final class _ipp_attribute_s extends ffi.Opaque {} + +final class _ipp_s extends ffi.Opaque {} + +final class _launch_data extends ffi.Opaque {} + +final class _malloc_zone_t extends ffi.Opaque {} + +final _objc_msgSend_105ehca = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_10nfbmq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_10txwc9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11a6od8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11hj8md = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11nrymb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__IOSurface> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__IOSurface> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11spmsz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11tcc61 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ffi.Pointer, + ) + >(); +final _objc_msgSend_126fd3h = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Bool, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + bool, + ) + >(); +final _objc_msgSend_129c579 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_130mcug = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); +final _objc_msgSend_13fklwp = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_13lgpwz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ) + >(); +final _objc_msgSend_13yqbb6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1415lvo = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_14hpxwa = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1513vdc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_158ju31 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_15dzt85 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_15qeuct = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_15v716q = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_15yz4e6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ) + >(); +final _objc_msgSend_164wts2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_165e55c = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_16a25o7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_16bn854 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_16fy0up = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_17amj0z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_17ns785 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_182fzon = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_182fzonStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_187k8ck = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18chyc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_18flwjr = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18qun1e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18r320v = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGSize Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGSize Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18r320vStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1b5ysjl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_1bonwe = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFRunLoopObserver> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__CFRunLoopObserver> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1c1ssyi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1c2zpn3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ) + >(); +final _objc_msgSend_1cc1buo = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1d2nxes = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1dau4w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1db3yj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1dcy00i = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1diehjo = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1dom33q = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1dpg4ct = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1dydpdi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_1e3ic39 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFError> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__CFError> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1e3pm0z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_1ea59hv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1f2nccz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1fdou4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1flkydz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1fnsr6j = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1fs7dv0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1fuqfwb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1gypgok = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1h3mito = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1hbj4cd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Uint32 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1hz7y9r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1i17va2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1i9r4xy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1iyq28l = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1j9bhml = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1jed5jl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1jknn71 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1jwityx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1jz97e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1k0ezzm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1k101e3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1k1akuq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_1k1o1s7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_1kn7frf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ko4qka = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedChar Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1kok4b = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1kva9v1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1kz7g09 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1l09uru = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1lhy15d = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1lk7ow3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1llrn9f = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lonves = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lsax7n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lwwnes = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1mbt9g9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1mik4ys = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1modw1b = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >(); +final _objc_msgSend_1mpyy6y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGPoint Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGPoint Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1mpyy6yStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1n4ndiq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1nqw6vl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + NSUInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + bool, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1nwix4r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Uint32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1oj5o8z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int64 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ojrli4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); +final _objc_msgSend_1okkq16 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ) + >(); +final _objc_msgSend_1ommad9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__SecTrust> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__SecTrust> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1orxdfj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1orxdfjStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1oteutl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_1ozwf6k = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1p2ukjz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1p4gbjy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1p4uk9e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + double, + ) + >(); +final _objc_msgSend_1pl4k3n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1pp2gs8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_1pvm3yv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1q2ox4r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1qldcx0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1qv0eq4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1r6ymhb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1r7ue5f = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1r9llia = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1r9lliaStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1rbikrg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +final _objc_msgSend_1rhk8uh = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1s3ecd1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecTrust>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecTrust>, + ) + >(); +final _objc_msgSend_1s56lr9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1sbro63 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1sotr3r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1t6aok9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1tqkjbg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1tv4uax = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1u11dbb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1u11dbbStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1upeo1d = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +final _objc_msgSend_1uwdhlk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGPoint Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGPoint Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1uwdhlkStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vdfken = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGSize Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGSize Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vdfkenStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vfc2dz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vfgg7v = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vkunzi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vnlaqg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1w05pgk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1wgub22 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1whyima = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1wqutdn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1wtpmu7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1xmmt6t = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ygbbzi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1yyiln9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFRunLoopTimer> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__CFRunLoopTimer> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2naryv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_2p9qiq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2wiv66 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3fn4ca = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3gpdva = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3ow0v1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >(); +final _objc_msgSend_3pyzne = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_4qsw9q = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_4sp4xj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_56zxyn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_5bd8xr = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_65s5yw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_65s5ywFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_6cylk3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_6ex6p5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_6h5ewf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_6p7ndb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_6pykvq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_6z4k82 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_7km9vu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_7kpg7m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_7ql5kn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_7w1jp7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_8cymbm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_8mvqcu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Bool, + ffi.Pointer>, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + bool, + ffi.Pointer>, + ffi.Pointer, + ) + >(); +final _objc_msgSend_91o635 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_9cddqw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_9qbz9w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Uint64 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_akk2cd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_b99g2z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_bkebbk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ffi.Pointer, + ) + >(); +final _objc_msgSend_bm6pu2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_bstjp9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_bu1hbw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGRect Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGRect Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_bu1hbwStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_d3i1uy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_d3i1uyStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_d8c3m2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_d9bpjb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_dgx62p = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_djsa9o = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_e1wgee = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_e3qsqz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_e9mncn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_erqryg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_esp80j = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_f167m6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_f227js = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ffi.Pointer, + ) + >(); +final _objc_msgSend_fd28sq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_fm5719 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_fooyu3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_g3kdhc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_g4ia9x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_g4ia9xFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_gtxojt = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_h0gkbf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Size Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_h10lj0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_h1puss = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_h42mdr = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hefmm1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_hjhgti = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hk7n97 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hwm8nu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_hws22w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_ifge4x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >(); +final _objc_msgSend_ijkvzl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_ipgwfh = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_ivnkdn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_iy8iz6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ) + >(); +final _objc_msgSend_jbzgy2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_jfo4g1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecIdentity>, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecIdentity>, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_kgvd6q = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_l9p60w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_l9ppnx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_lof6g0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_lx7wnn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_lzbvjm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_lzroim = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_m7tls4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_mabicu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_mlcr8l = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_mpxix1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_nk32k5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_nkb3zz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__SecIdentity> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__SecIdentity> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_nnxkei = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_o762yo = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_oa8mke = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_odvxky = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFArray> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__CFArray> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_ovsamd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_oziolg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__SecKey> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__SecKey> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_pccgql = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +final _objc_msgSend_pfv6jd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_pysgoz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int64 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_qrtfce = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGRect Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGRect Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_qrtfceStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_qugqlf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_quo6mj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); +final _objc_msgSend_r0bo0s = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_r8gdi7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_rmqcvp = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Uint16 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_rutu22 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_s058d2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_s92gih = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_sax6zm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSEdgeInsets, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSEdgeInsets, + ) + >(); +final _objc_msgSend_sl0cgw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSEdgeInsets Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.NSEdgeInsets Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_sl0cgwStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_syi8bx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_sz90oi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_t8ajot = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); +final _objc_msgSend_tpnpd0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Long, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + bool, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_tsocn4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_tyifel = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_u2drt1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_u8u7og = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_uwvaik = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_v5hmet = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_vbc8p4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_vij4rw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_vkpxx6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + CFOptionFlags Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_vqual9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_w9bq5x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + bool, + ) + >(); +final _objc_msgSend_wbgokv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_wep107 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + double, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_wfjd8v = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_wgkxx2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ) + >(); +final _objc_msgSend_wp1dbz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_xhvge5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_xw2lbc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_y1izi1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_y1woti = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_yl37m5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +final _objc_msgSend_yl37m5Stret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +final _objc_msgSend_ylninc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_z7gxsm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_z7lrh9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Uint64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_zmbtbd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_zuf90e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_zy00wz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + objc.NSRange, + ffi.Pointer, + ) + >(); + +final class _opaque_pthread_attr_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([56]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_cond_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([40]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_condattr_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([8]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_mutex_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([56]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_mutexattr_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([8]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_once_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([8]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_rwlock_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([192]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_rwlockattr_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([16]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + external ffi.Pointer<__darwin_pthread_handler_rec> __cleanup_stack; + + @ffi.Array.multi([8176]) + external ffi.Array __opaque; +} + +final class _ppd_cache_s extends ffi.Opaque {} + +typedef _ppd_cache_t = _ppd_cache_s; +@ffi.Native Function()>( + symbol: '_1uu024u_AVAudioPlayerDelegate', +) +external ffi.Pointer +_protocol_AVAudioPlayerDelegate_raw(); +final _protocol_AVAudioPlayerDelegate = objc.getProtocol( + "AVAudioPlayerDelegate", + _protocol_AVAudioPlayerDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_AVAudioSessionDelegate', +) +external ffi.Pointer +_protocol_AVAudioSessionDelegate_raw(); +final _protocol_AVAudioSessionDelegate = objc.getProtocol( + "AVAudioSessionDelegate", + _protocol_AVAudioSessionDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_CTAdaptiveImageProviding', +) +external ffi.Pointer +_protocol_CTAdaptiveImageProviding_raw(); +final _protocol_CTAdaptiveImageProviding = objc.getProtocol( + "CTAdaptiveImageProviding", + _protocol_CTAdaptiveImageProviding_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSCacheDelegate', +) +external ffi.Pointer _protocol_NSCacheDelegate_raw(); +final _protocol_NSCacheDelegate = objc.getProtocol( + "NSCacheDelegate", + _protocol_NSCacheDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSConnectionDelegate', +) +external ffi.Pointer +_protocol_NSConnectionDelegate_raw(); +final _protocol_NSConnectionDelegate = objc.getProtocol( + "NSConnectionDelegate", + _protocol_NSConnectionDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSDecimalNumberBehaviors', +) +external ffi.Pointer +_protocol_NSDecimalNumberBehaviors_raw(); +final _protocol_NSDecimalNumberBehaviors = objc.getProtocol( + "NSDecimalNumberBehaviors", + _protocol_NSDecimalNumberBehaviors_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSDiscardableContent', +) +external ffi.Pointer +_protocol_NSDiscardableContent_raw(); +final _protocol_NSDiscardableContent = objc.getProtocol( + "NSDiscardableContent", + _protocol_NSDiscardableContent_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSExtensionRequestHandling', +) +external ffi.Pointer +_protocol_NSExtensionRequestHandling_raw(); +final _protocol_NSExtensionRequestHandling = objc.getProtocol( + "NSExtensionRequestHandling", + _protocol_NSExtensionRequestHandling_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSFileManagerDelegate', +) +external ffi.Pointer +_protocol_NSFileManagerDelegate_raw(); +final _protocol_NSFileManagerDelegate = objc.getProtocol( + "NSFileManagerDelegate", + _protocol_NSFileManagerDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSFilePresenter', +) +external ffi.Pointer _protocol_NSFilePresenter_raw(); +final _protocol_NSFilePresenter = objc.getProtocol( + "NSFilePresenter", + _protocol_NSFilePresenter_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSKeyedArchiverDelegate', +) +external ffi.Pointer +_protocol_NSKeyedArchiverDelegate_raw(); +final _protocol_NSKeyedArchiverDelegate = objc.getProtocol( + "NSKeyedArchiverDelegate", + _protocol_NSKeyedArchiverDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSKeyedUnarchiverDelegate', +) +external ffi.Pointer +_protocol_NSKeyedUnarchiverDelegate_raw(); +final _protocol_NSKeyedUnarchiverDelegate = objc.getProtocol( + "NSKeyedUnarchiverDelegate", + _protocol_NSKeyedUnarchiverDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSLocking', +) +external ffi.Pointer _protocol_NSLocking_raw(); +final _protocol_NSLocking = objc.getProtocol( + "NSLocking", + _protocol_NSLocking_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSMachPortDelegate', +) +external ffi.Pointer _protocol_NSMachPortDelegate_raw(); +final _protocol_NSMachPortDelegate = objc.getProtocol( + "NSMachPortDelegate", + _protocol_NSMachPortDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSMetadataQueryDelegate', +) +external ffi.Pointer +_protocol_NSMetadataQueryDelegate_raw(); +final _protocol_NSMetadataQueryDelegate = objc.getProtocol( + "NSMetadataQueryDelegate", + _protocol_NSMetadataQueryDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSNetServiceBrowserDelegate', +) +external ffi.Pointer +_protocol_NSNetServiceBrowserDelegate_raw(); +final _protocol_NSNetServiceBrowserDelegate = objc.getProtocol( + "NSNetServiceBrowserDelegate", + _protocol_NSNetServiceBrowserDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSNetServiceDelegate', +) +external ffi.Pointer +_protocol_NSNetServiceDelegate_raw(); +final _protocol_NSNetServiceDelegate = objc.getProtocol( + "NSNetServiceDelegate", + _protocol_NSNetServiceDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSProgressReporting', +) +external ffi.Pointer _protocol_NSProgressReporting_raw(); +final _protocol_NSProgressReporting = objc.getProtocol( + "NSProgressReporting", + _protocol_NSProgressReporting_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSSpellServerDelegate', +) +external ffi.Pointer +_protocol_NSSpellServerDelegate_raw(); +final _protocol_NSSpellServerDelegate = objc.getProtocol( + "NSSpellServerDelegate", + _protocol_NSSpellServerDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLAuthenticationChallengeSender', +) +external ffi.Pointer +_protocol_NSURLAuthenticationChallengeSender_raw(); +final _protocol_NSURLAuthenticationChallengeSender = objc.getProtocol( + "NSURLAuthenticationChallengeSender", + _protocol_NSURLAuthenticationChallengeSender_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLConnectionDataDelegate', +) +external ffi.Pointer +_protocol_NSURLConnectionDataDelegate_raw(); +final _protocol_NSURLConnectionDataDelegate = objc.getProtocol( + "NSURLConnectionDataDelegate", + _protocol_NSURLConnectionDataDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLConnectionDelegate', +) +external ffi.Pointer +_protocol_NSURLConnectionDelegate_raw(); +final _protocol_NSURLConnectionDelegate = objc.getProtocol( + "NSURLConnectionDelegate", + _protocol_NSURLConnectionDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLConnectionDownloadDelegate', +) +external ffi.Pointer +_protocol_NSURLConnectionDownloadDelegate_raw(); +final _protocol_NSURLConnectionDownloadDelegate = objc.getProtocol( + "NSURLConnectionDownloadDelegate", + _protocol_NSURLConnectionDownloadDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLDownloadDelegate', +) +external ffi.Pointer +_protocol_NSURLDownloadDelegate_raw(); +final _protocol_NSURLDownloadDelegate = objc.getProtocol( + "NSURLDownloadDelegate", + _protocol_NSURLDownloadDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLHandleClient', +) +external ffi.Pointer _protocol_NSURLHandleClient_raw(); +final _protocol_NSURLHandleClient = objc.getProtocol( + "NSURLHandleClient", + _protocol_NSURLHandleClient_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLProtocolClient', +) +external ffi.Pointer _protocol_NSURLProtocolClient_raw(); +final _protocol_NSURLProtocolClient = objc.getProtocol( + "NSURLProtocolClient", + _protocol_NSURLProtocolClient_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionDataDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionDataDelegate_raw(); +final _protocol_NSURLSessionDataDelegate = objc.getProtocol( + "NSURLSessionDataDelegate", + _protocol_NSURLSessionDataDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionDelegate_raw(); +final _protocol_NSURLSessionDelegate = objc.getProtocol( + "NSURLSessionDelegate", + _protocol_NSURLSessionDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionDownloadDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionDownloadDelegate_raw(); +final _protocol_NSURLSessionDownloadDelegate = objc.getProtocol( + "NSURLSessionDownloadDelegate", + _protocol_NSURLSessionDownloadDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionStreamDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionStreamDelegate_raw(); +final _protocol_NSURLSessionStreamDelegate = objc.getProtocol( + "NSURLSessionStreamDelegate", + _protocol_NSURLSessionStreamDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionTaskDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionTaskDelegate_raw(); +final _protocol_NSURLSessionTaskDelegate = objc.getProtocol( + "NSURLSessionTaskDelegate", + _protocol_NSURLSessionTaskDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionWebSocketDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionWebSocketDelegate_raw(); +final _protocol_NSURLSessionWebSocketDelegate = objc.getProtocol( + "NSURLSessionWebSocketDelegate", + _protocol_NSURLSessionWebSocketDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSUserActivityDelegate', +) +external ffi.Pointer +_protocol_NSUserActivityDelegate_raw(); +final _protocol_NSUserActivityDelegate = objc.getProtocol( + "NSUserActivityDelegate", + _protocol_NSUserActivityDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSUserNotificationCenterDelegate', +) +external ffi.Pointer +_protocol_NSUserNotificationCenterDelegate_raw(); +final _protocol_NSUserNotificationCenterDelegate = objc.getProtocol( + "NSUserNotificationCenterDelegate", + _protocol_NSUserNotificationCenterDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSXMLParserDelegate', +) +external ffi.Pointer _protocol_NSXMLParserDelegate_raw(); +final _protocol_NSXMLParserDelegate = objc.getProtocol( + "NSXMLParserDelegate", + _protocol_NSXMLParserDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSXPCListenerDelegate', +) +external ffi.Pointer +_protocol_NSXPCListenerDelegate_raw(); +final _protocol_NSXPCListenerDelegate = objc.getProtocol( + "NSXPCListenerDelegate", + _protocol_NSXPCListenerDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSXPCProxyCreating', +) +external ffi.Pointer _protocol_NSXPCProxyCreating_raw(); +final _protocol_NSXPCProxyCreating = objc.getProtocol( + "NSXPCProxyCreating", + _protocol_NSXPCProxyCreating_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_data', +) +external ffi.Pointer _protocol_OS_dispatch_data_raw(); +final _protocol_OS_dispatch_data = objc.getProtocol( + "OS_dispatch_data", + _protocol_OS_dispatch_data_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_group', +) +external ffi.Pointer _protocol_OS_dispatch_group_raw(); +final _protocol_OS_dispatch_group = objc.getProtocol( + "OS_dispatch_group", + _protocol_OS_dispatch_group_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_io', +) +external ffi.Pointer _protocol_OS_dispatch_io_raw(); +final _protocol_OS_dispatch_io = objc.getProtocol( + "OS_dispatch_io", + _protocol_OS_dispatch_io_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_object', +) +external ffi.Pointer _protocol_OS_dispatch_object_raw(); +final _protocol_OS_dispatch_object = objc.getProtocol( + "OS_dispatch_object", + _protocol_OS_dispatch_object_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue', +) +external ffi.Pointer _protocol_OS_dispatch_queue_raw(); +final _protocol_OS_dispatch_queue = objc.getProtocol( + "OS_dispatch_queue", + _protocol_OS_dispatch_queue_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_attr', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_attr_raw(); +final _protocol_OS_dispatch_queue_attr = objc.getProtocol( + "OS_dispatch_queue_attr", + _protocol_OS_dispatch_queue_attr_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_concurrent', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_concurrent_raw(); +final _protocol_OS_dispatch_queue_concurrent = objc.getProtocol( + "OS_dispatch_queue_concurrent", + _protocol_OS_dispatch_queue_concurrent_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_global', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_global_raw(); +final _protocol_OS_dispatch_queue_global = objc.getProtocol( + "OS_dispatch_queue_global", + _protocol_OS_dispatch_queue_global_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_main', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_main_raw(); +final _protocol_OS_dispatch_queue_main = objc.getProtocol( + "OS_dispatch_queue_main", + _protocol_OS_dispatch_queue_main_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_serial', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_serial_raw(); +final _protocol_OS_dispatch_queue_serial = objc.getProtocol( + "OS_dispatch_queue_serial", + _protocol_OS_dispatch_queue_serial_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_serial_executor', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_serial_executor_raw(); +final _protocol_OS_dispatch_queue_serial_executor = objc.getProtocol( + "OS_dispatch_queue_serial_executor", + _protocol_OS_dispatch_queue_serial_executor_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_semaphore', +) +external ffi.Pointer +_protocol_OS_dispatch_semaphore_raw(); +final _protocol_OS_dispatch_semaphore = objc.getProtocol( + "OS_dispatch_semaphore", + _protocol_OS_dispatch_semaphore_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_source', +) +external ffi.Pointer _protocol_OS_dispatch_source_raw(); +final _protocol_OS_dispatch_source = objc.getProtocol( + "OS_dispatch_source", + _protocol_OS_dispatch_source_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_workloop', +) +external ffi.Pointer +_protocol_OS_dispatch_workloop_raw(); +final _protocol_OS_dispatch_workloop = objc.getProtocol( + "OS_dispatch_workloop", + _protocol_OS_dispatch_workloop_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_os_workgroup_interval', +) +external ffi.Pointer +_protocol_OS_os_workgroup_interval_raw(); +final _protocol_OS_os_workgroup_interval = objc.getProtocol( + "OS_os_workgroup_interval", + _protocol_OS_os_workgroup_interval_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_os_workgroup_parallel', +) +external ffi.Pointer +_protocol_OS_os_workgroup_parallel_raw(); +final _protocol_OS_os_workgroup_parallel = objc.getProtocol( + "OS_os_workgroup_parallel", + _protocol_OS_os_workgroup_parallel_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_certificate', +) +external ffi.Pointer _protocol_OS_sec_certificate_raw(); +final _protocol_OS_sec_certificate = objc.getProtocol( + "OS_sec_certificate", + _protocol_OS_sec_certificate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_identity', +) +external ffi.Pointer _protocol_OS_sec_identity_raw(); +final _protocol_OS_sec_identity = objc.getProtocol( + "OS_sec_identity", + _protocol_OS_sec_identity_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_object', +) +external ffi.Pointer _protocol_OS_sec_object_raw(); +final _protocol_OS_sec_object = objc.getProtocol( + "OS_sec_object", + _protocol_OS_sec_object_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_protocol_metadata', +) +external ffi.Pointer +_protocol_OS_sec_protocol_metadata_raw(); +final _protocol_OS_sec_protocol_metadata = objc.getProtocol( + "OS_sec_protocol_metadata", + _protocol_OS_sec_protocol_metadata_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_protocol_options', +) +external ffi.Pointer +_protocol_OS_sec_protocol_options_raw(); +final _protocol_OS_sec_protocol_options = objc.getProtocol( + "OS_sec_protocol_options", + _protocol_OS_sec_protocol_options_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_trust', +) +external ffi.Pointer _protocol_OS_sec_trust_raw(); +final _protocol_OS_sec_trust = objc.getProtocol( + "OS_sec_trust", + _protocol_OS_sec_trust_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_xpc_listener', +) +external ffi.Pointer _protocol_OS_xpc_listener_raw(); +final _protocol_OS_xpc_listener = objc.getProtocol( + "OS_xpc_listener", + _protocol_OS_xpc_listener_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_xpc_object', +) +external ffi.Pointer _protocol_OS_xpc_object_raw(); +final _protocol_OS_xpc_object = objc.getProtocol( + "OS_xpc_object", + _protocol_OS_xpc_object_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_xpc_peer_requirement', +) +external ffi.Pointer +_protocol_OS_xpc_peer_requirement_raw(); +final _protocol_OS_xpc_peer_requirement = objc.getProtocol( + "OS_xpc_peer_requirement", + _protocol_OS_xpc_peer_requirement_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_xpc_session', +) +external ffi.Pointer _protocol_OS_xpc_session_raw(); +final _protocol_OS_xpc_session = objc.getProtocol( + "OS_xpc_session", + _protocol_OS_xpc_session_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_PDEPanel', +) +external ffi.Pointer _protocol_PDEPanel_raw(); +final _protocol_PDEPanel = objc.getProtocol("PDEPanel", _protocol_PDEPanel_raw); +@ffi.Native Function()>( + symbol: '_1uu024u_PDEPlugIn', +) +external ffi.Pointer _protocol_PDEPlugIn_raw(); +final _protocol_PDEPlugIn = objc.getProtocol( + "PDEPlugIn", + _protocol_PDEPlugIn_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_PDEPlugInCallbackProtocol', +) +external ffi.Pointer +_protocol_PDEPlugInCallbackProtocol_raw(); +final _protocol_PDEPlugInCallbackProtocol = objc.getProtocol( + "PDEPlugInCallbackProtocol", + _protocol_PDEPlugInCallbackProtocol_raw, +); +late final _sel_HTTPBody = objc.registerName("HTTPBody"); +late final _sel_HTTPBodyStream = objc.registerName("HTTPBodyStream"); +late final _sel_HTTPMethod = objc.registerName("HTTPMethod"); +late final _sel_HTTPShouldHandleCookies = objc.registerName( + "HTTPShouldHandleCookies", +); +late final _sel_HTTPShouldUsePipelining = objc.registerName( + "HTTPShouldUsePipelining", +); +late final _sel_IOBufferDuration = objc.registerName("IOBufferDuration"); +late final _sel_ISOCountryCodes = objc.registerName("ISOCountryCodes"); +late final _sel_ISOCurrencyCodes = objc.registerName("ISOCurrencyCodes"); +late final _sel_ISOLanguageCodes = objc.registerName("ISOLanguageCodes"); +late final _sel_PDEPanelsForType_withHostInfo_ = objc.registerName( + "PDEPanelsForType:withHostInfo:", +); +late final _sel_PMPrinter = objc.registerName("PMPrinter"); +late final _sel_PPDOptionKeyValueDidChange_ppdChoice_ = objc.registerName( + "PPDOptionKeyValueDidChange:ppdChoice:", +); +late final _sel_URL = objc.registerName("URL"); +late final _sel_URLByAppendingPathComponent_ = objc.registerName( + "URLByAppendingPathComponent:", +); +late final _sel_URLByAppendingPathComponent_isDirectory_ = objc.registerName( + "URLByAppendingPathComponent:isDirectory:", +); +late final _sel_URLByAppendingPathExtension_ = objc.registerName( + "URLByAppendingPathExtension:", +); +late final _sel_URLByDeletingLastPathComponent = objc.registerName( + "URLByDeletingLastPathComponent", +); +late final _sel_URLByDeletingPathExtension = objc.registerName( + "URLByDeletingPathExtension", +); +late final _sel_URLByResolvingSymlinksInPath = objc.registerName( + "URLByResolvingSymlinksInPath", +); +late final _sel_URLByStandardizingPath = objc.registerName( + "URLByStandardizingPath", +); +late final _sel_URLFragmentAllowedCharacterSet = objc.registerName( + "URLFragmentAllowedCharacterSet", +); +late final _sel_URLHandleResourceDidBeginLoading_ = objc.registerName( + "URLHandleResourceDidBeginLoading:", +); +late final _sel_URLHandleResourceDidCancelLoading_ = objc.registerName( + "URLHandleResourceDidCancelLoading:", +); +late final _sel_URLHandleResourceDidFinishLoading_ = objc.registerName( + "URLHandleResourceDidFinishLoading:", +); +late final _sel_URLHandleUsingCache_ = objc.registerName( + "URLHandleUsingCache:", +); +late final _sel_URLHandle_resourceDataDidBecomeAvailable_ = objc.registerName( + "URLHandle:resourceDataDidBecomeAvailable:", +); +late final _sel_URLHandle_resourceDidFailLoadingWithReason_ = objc.registerName( + "URLHandle:resourceDidFailLoadingWithReason:", +); +late final _sel_URLHostAllowedCharacterSet = objc.registerName( + "URLHostAllowedCharacterSet", +); +late final _sel_URLPasswordAllowedCharacterSet = objc.registerName( + "URLPasswordAllowedCharacterSet", +); +late final _sel_URLPathAllowedCharacterSet = objc.registerName( + "URLPathAllowedCharacterSet", +); +late final _sel_URLProtocolDidFinishLoading_ = objc.registerName( + "URLProtocolDidFinishLoading:", +); +late final _sel_URLProtocol_cachedResponseIsValid_ = objc.registerName( + "URLProtocol:cachedResponseIsValid:", +); +late final _sel_URLProtocol_didCancelAuthenticationChallenge_ = objc + .registerName("URLProtocol:didCancelAuthenticationChallenge:"); +late final _sel_URLProtocol_didFailWithError_ = objc.registerName( + "URLProtocol:didFailWithError:", +); +late final _sel_URLProtocol_didLoadData_ = objc.registerName( + "URLProtocol:didLoadData:", +); +late final _sel_URLProtocol_didReceiveAuthenticationChallenge_ = objc + .registerName("URLProtocol:didReceiveAuthenticationChallenge:"); +late final _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_ = objc + .registerName("URLProtocol:didReceiveResponse:cacheStoragePolicy:"); +late final _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_ = objc + .registerName("URLProtocol:wasRedirectedToRequest:redirectResponse:"); +late final _sel_URLQueryAllowedCharacterSet = objc.registerName( + "URLQueryAllowedCharacterSet", +); +late final _sel_URLResourceDidCancelLoading_ = objc.registerName( + "URLResourceDidCancelLoading:", +); +late final _sel_URLResourceDidFinishLoading_ = objc.registerName( + "URLResourceDidFinishLoading:", +); +late final _sel_URLSessionDidFinishEventsForBackgroundURLSession_ = objc + .registerName("URLSessionDidFinishEventsForBackgroundURLSession:"); +late final _sel_URLSession_betterRouteDiscoveredForStreamTask_ = objc + .registerName("URLSession:betterRouteDiscoveredForStreamTask:"); +late final _sel_URLSession_dataTask_didBecomeDownloadTask_ = objc.registerName( + "URLSession:dataTask:didBecomeDownloadTask:", +); +late final _sel_URLSession_dataTask_didBecomeStreamTask_ = objc.registerName( + "URLSession:dataTask:didBecomeStreamTask:", +); +late final _sel_URLSession_dataTask_didReceiveData_ = objc.registerName( + "URLSession:dataTask:didReceiveData:", +); +late final _sel_URLSession_dataTask_didReceiveResponse_completionHandler_ = objc + .registerName("URLSession:dataTask:didReceiveResponse:completionHandler:"); +late final _sel_URLSession_dataTask_willCacheResponse_completionHandler_ = objc + .registerName("URLSession:dataTask:willCacheResponse:completionHandler:"); +late final _sel_URLSession_didBecomeInvalidWithError_ = objc.registerName( + "URLSession:didBecomeInvalidWithError:", +); +late final _sel_URLSession_didCreateTask_ = objc.registerName( + "URLSession:didCreateTask:", +); +late final _sel_URLSession_didReceiveChallenge_completionHandler_ = objc + .registerName("URLSession:didReceiveChallenge:completionHandler:"); +late final _sel_URLSession_downloadTask_didFinishDownloadingToURL_ = objc + .registerName("URLSession:downloadTask:didFinishDownloadingToURL:"); +late final _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ = + objc.registerName( + "URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:", + ); +late final _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ = + objc.registerName( + "URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:", + ); +late final _sel_URLSession_readClosedForStreamTask_ = objc.registerName( + "URLSession:readClosedForStreamTask:", +); +late final _sel_URLSession_streamTask_didBecomeInputStream_outputStream_ = objc + .registerName("URLSession:streamTask:didBecomeInputStream:outputStream:"); +late final _sel_URLSession_taskIsWaitingForConnectivity_ = objc.registerName( + "URLSession:taskIsWaitingForConnectivity:", +); +late final _sel_URLSession_task_didCompleteWithError_ = objc.registerName( + "URLSession:task:didCompleteWithError:", +); +late final _sel_URLSession_task_didFinishCollectingMetrics_ = objc.registerName( + "URLSession:task:didFinishCollectingMetrics:", +); +late final _sel_URLSession_task_didReceiveChallenge_completionHandler_ = objc + .registerName("URLSession:task:didReceiveChallenge:completionHandler:"); +late final _sel_URLSession_task_didReceiveInformationalResponse_ = objc + .registerName("URLSession:task:didReceiveInformationalResponse:"); +late final _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.registerName( + "URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:", + ); +late final _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.registerName( + "URLSession:task:needNewBodyStreamFromOffset:completionHandler:", + ); +late final _sel_URLSession_task_needNewBodyStream_ = objc.registerName( + "URLSession:task:needNewBodyStream:", +); +late final _sel_URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.registerName( + "URLSession:task:willBeginDelayedRequest:completionHandler:", + ); +late final _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.registerName( + "URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:", + ); +late final _sel_URLSession_webSocketTask_didCloseWithCode_reason_ = objc + .registerName("URLSession:webSocketTask:didCloseWithCode:reason:"); +late final _sel_URLSession_webSocketTask_didOpenWithProtocol_ = objc + .registerName("URLSession:webSocketTask:didOpenWithProtocol:"); +late final _sel_URLSession_writeClosedForStreamTask_ = objc.registerName( + "URLSession:writeClosedForStreamTask:", +); +late final _sel_URLUserAllowedCharacterSet = objc.registerName( + "URLUserAllowedCharacterSet", +); +late final _sel_URL_resourceDataDidBecomeAvailable_ = objc.registerName( + "URL:resourceDataDidBecomeAvailable:", +); +late final _sel_URL_resourceDidFailLoadingWithReason_ = objc.registerName( + "URL:resourceDidFailLoadingWithReason:", +); +late final _sel_abbreviation = objc.registerName("abbreviation"); +late final _sel_abbreviationDictionary = objc.registerName( + "abbreviationDictionary", +); +late final _sel_acceptConnectionInBackgroundAndNotify = objc.registerName( + "acceptConnectionInBackgroundAndNotify", +); +late final _sel_acceptConnectionInBackgroundAndNotifyForModes_ = objc + .registerName("acceptConnectionInBackgroundAndNotifyForModes:"); +late final _sel_accessInstanceVariablesDirectly = objc.registerName( + "accessInstanceVariablesDirectly", +); +late final _sel_accommodatePresentedItemDeletionWithCompletionHandler_ = objc + .registerName("accommodatePresentedItemDeletionWithCompletionHandler:"); +late final _sel_accommodatePresentedItemEvictionWithCompletionHandler_ = objc + .registerName("accommodatePresentedItemEvictionWithCompletionHandler:"); +late final _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_ = + objc.registerName( + "accommodatePresentedSubitemDeletionAtURL:completionHandler:", + ); +late final _sel_activateWithOptions_completionHandler_ = objc.registerName( + "activateWithOptions:completionHandler:", +); +late final _sel_addAttribute_value_range_ = objc.registerName( + "addAttribute:value:range:", +); +late final _sel_addAttributes_range_ = objc.registerName( + "addAttributes:range:", +); +late final _sel_addFileWithPath_ = objc.registerName("addFileWithPath:"); +late final _sel_addObserver_forKeyPath_options_context_ = objc.registerName( + "addObserver:forKeyPath:options:context:", +); +late final _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_ = + objc.registerName( + "addObserver:toObjectsAtIndexes:forKeyPath:options:context:", + ); +late final _sel_addSymbolicLinkWithDestination_preferredFilename_ = objc + .registerName("addSymbolicLinkWithDestination:preferredFilename:"); +late final _sel_addValue_forHTTPHeaderField_ = objc.registerName( + "addValue:forHTTPHeaderField:", +); +late final _sel_addressCheckingResultWithRange_components_ = objc.registerName( + "addressCheckingResultWithRange:components:", +); +late final _sel_addressComponents = objc.registerName("addressComponents"); +late final _sel_allHTTPHeaderFields = objc.registerName("allHTTPHeaderFields"); +late final _sel_allLanguages = objc.registerName("allLanguages"); +late final _sel_allObjects = objc.registerName("allObjects"); +late final _sel_allScripts = objc.registerName("allScripts"); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +late final _sel_allowedClasses = objc.registerName("allowedClasses"); +late final _sel_allowsKeyedCoding = objc.registerName("allowsKeyedCoding"); +late final _sel_allowsNaturalLanguage = objc.registerName( + "allowsNaturalLanguage", +); +late final _sel_alternateQuotationBeginDelimiter = objc.registerName( + "alternateQuotationBeginDelimiter", +); +late final _sel_alternateQuotationEndDelimiter = objc.registerName( + "alternateQuotationEndDelimiter", +); +late final _sel_alternativeStrings = objc.registerName("alternativeStrings"); +late final _sel_appendAttributedString_ = objc.registerName( + "appendAttributedString:", +); +late final _sel_appendFormat_ = objc.registerName("appendFormat:"); +late final _sel_appendLocalizedFormat_ = objc.registerName( + "appendLocalizedFormat:", +); +late final _sel_appendString_ = objc.registerName("appendString:"); +late final _sel_applyDifference_ = objc.registerName("applyDifference:"); +late final _sel_applyTransform_reverse_range_updatedRange_ = objc.registerName( + "applyTransform:reverse:range:updatedRange:", +); +late final _sel_archiverDidFinish_ = objc.registerName("archiverDidFinish:"); +late final _sel_archiverWillFinish_ = objc.registerName("archiverWillFinish:"); +late final _sel_archiver_didEncodeObject_ = objc.registerName( + "archiver:didEncodeObject:", +); +late final _sel_archiver_willEncodeObject_ = objc.registerName( + "archiver:willEncodeObject:", +); +late final _sel_archiver_willReplaceObject_withObject_ = objc.registerName( + "archiver:willReplaceObject:withObject:", +); +late final _sel_arg0 = objc.registerName("arg0"); +late final _sel_arg1 = objc.registerName("arg1"); +late final _sel_arg2 = objc.registerName("arg2"); +late final _sel_arg3 = objc.registerName("arg3"); +late final _sel_arg4 = objc.registerName("arg4"); +late final _sel_arg5 = objc.registerName("arg5"); +late final _sel_array = objc.registerName("array"); +late final _sel_arrayByApplyingDifference_ = objc.registerName( + "arrayByApplyingDifference:", +); +late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); +late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); +late final _sel_arrayWithContentsOfFile_ = objc.registerName( + "arrayWithContentsOfFile:", +); +late final _sel_arrayWithContentsOfURL_ = objc.registerName( + "arrayWithContentsOfURL:", +); +late final _sel_arrayWithContentsOfURL_error_ = objc.registerName( + "arrayWithContentsOfURL:error:", +); +late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); +late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); +late final _sel_arrayWithObjects_count_ = objc.registerName( + "arrayWithObjects:count:", +); +late final _sel_attemptRecoveryFromError_optionIndex_ = objc.registerName( + "attemptRecoveryFromError:optionIndex:", +); +late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_ = + objc.registerName( + "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:", + ); +late final _sel_attributeKeys = objc.registerName("attributeKeys"); +late final _sel_attribute_atIndex_effectiveRange_ = objc.registerName( + "attribute:atIndex:effectiveRange:", +); +late final _sel_attribute_atIndex_longestEffectiveRange_inRange_ = objc + .registerName("attribute:atIndex:longestEffectiveRange:inRange:"); +late final _sel_attributedStringByInflectingString = objc.registerName( + "attributedStringByInflectingString", +); +late final _sel_attributedStringForNil = objc.registerName( + "attributedStringForNil", +); +late final _sel_attributedStringForNotANumber = objc.registerName( + "attributedStringForNotANumber", +); +late final _sel_attributedStringForZero = objc.registerName( + "attributedStringForZero", +); +late final _sel_attributedSubstringFromRange_ = objc.registerName( + "attributedSubstringFromRange:", +); +late final _sel_attributesAtIndex_longestEffectiveRange_inRange_ = objc + .registerName("attributesAtIndex:longestEffectiveRange:inRange:"); +late final _sel_audioPlayerDecodeErrorDidOccur_error_ = objc.registerName( + "audioPlayerDecodeErrorDidOccur:error:", +); +late final _sel_audioPlayerDidFinishPlaying_successfully_ = objc.registerName( + "audioPlayerDidFinishPlaying:successfully:", +); +late final _sel_authenticateComponents_withData_ = objc.registerName( + "authenticateComponents:withData:", +); +late final _sel_authenticationDataForComponents_ = objc.registerName( + "authenticationDataForComponents:", +); +late final _sel_autoContentAccessingProxy = objc.registerName( + "autoContentAccessingProxy", +); +late final _sel_automaticallyNotifiesObserversForKey_ = objc.registerName( + "automaticallyNotifiesObserversForKey:", +); +late final _sel_autoupdatingCurrentLocale = objc.registerName( + "autoupdatingCurrentLocale", +); +late final _sel_availableInputs = objc.registerName("availableInputs"); +late final _sel_availableLocaleIdentifiers = objc.registerName( + "availableLocaleIdentifiers", +); +late final _sel_averagePowerForChannel_ = objc.registerName( + "averagePowerForChannel:", +); +late final _sel_awakeAfterUsingCoder_ = objc.registerName( + "awakeAfterUsingCoder:", +); +late final _sel_backgroundSessionConfiguration_ = objc.registerName( + "backgroundSessionConfiguration:", +); +late final _sel_base64EncodedDataWithOptions_ = objc.registerName( + "base64EncodedDataWithOptions:", +); +late final _sel_base64EncodedStringWithOptions_ = objc.registerName( + "base64EncodedStringWithOptions:", +); +late final _sel_base64Encoding = objc.registerName("base64Encoding"); +late final _sel_beginActivityWithOptions_reason_ = objc.registerName( + "beginActivityWithOptions:reason:", +); +late final _sel_beginContentAccess = objc.registerName("beginContentAccess"); +late final _sel_beginEditing = objc.registerName("beginEditing"); +late final _sel_beginInterruption = objc.registerName("beginInterruption"); +late final _sel_beginRequestWithExtensionContext_ = objc.registerName( + "beginRequestWithExtensionContext:", +); +late final _sel_bluetoothMicrophoneExtension = objc.registerName( + "bluetoothMicrophoneExtension", +); +late final _sel_cString = objc.registerName("cString"); +late final _sel_cStringLength = objc.registerName("cStringLength"); +late final _sel_cache_willEvictObject_ = objc.registerName( + "cache:willEvictObject:", +); +late final _sel_calendarIdentifier = objc.registerName("calendarIdentifier"); +late final _sel_canInflectLanguage_ = objc.registerName("canInflectLanguage:"); +late final _sel_canInflectPreferredLocalization = objc.registerName( + "canInflectPreferredLocalization", +); +late final _sel_canInitWithTask_ = objc.registerName("canInitWithTask:"); +late final _sel_cancelAuthenticationChallenge_ = objc.registerName( + "cancelAuthenticationChallenge:", +); +late final _sel_cancelPerformSelector_target_argument_ = objc.registerName( + "cancelPerformSelector:target:argument:", +); +late final _sel_cancelPerformSelectorsWithTarget_ = objc.registerName( + "cancelPerformSelectorsWithTarget:", +); +late final _sel_cancelPreviousPerformRequestsWithTarget_ = objc.registerName( + "cancelPreviousPerformRequestsWithTarget:", +); +late final _sel_cancelPreviousPerformRequestsWithTarget_selector_object_ = objc + .registerName("cancelPreviousPerformRequestsWithTarget:selector:object:"); +late final _sel_canonicalLanguageIdentifierFromString_ = objc.registerName( + "canonicalLanguageIdentifierFromString:", +); +late final _sel_canonicalLocaleIdentifierFromString_ = objc.registerName( + "canonicalLocaleIdentifierFromString:", +); +late final _sel_certificates = objc.registerName("certificates"); +late final _sel_channelAssignments = objc.registerName("channelAssignments"); +late final _sel_characterDirectionForLanguage_ = objc.registerName( + "characterDirectionForLanguage:", +); +late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( + "checkPromisedItemIsReachableAndReturnError:", +); +late final _sel_checkResourceIsReachableAndReturnError_ = objc.registerName( + "checkResourceIsReachableAndReturnError:", +); +late final _sel_classCode = objc.registerName("classCode"); +late final _sel_classDescription = objc.registerName("classDescription"); +late final _sel_classFallbacksForKeyedArchiver = objc.registerName( + "classFallbacksForKeyedArchiver", +); +late final _sel_classForArchiver = objc.registerName("classForArchiver"); +late final _sel_classForCoder = objc.registerName("classForCoder"); +late final _sel_classForKeyedArchiver = objc.registerName( + "classForKeyedArchiver", +); +late final _sel_classForKeyedUnarchiver = objc.registerName( + "classForKeyedUnarchiver", +); +late final _sel_classForPortCoder = objc.registerName("classForPortCoder"); +late final _sel_className = objc.registerName("className"); +late final _sel_coerceValue_forKey_ = objc.registerName("coerceValue:forKey:"); +late final _sel_collationIdentifier = objc.registerName("collationIdentifier"); +late final _sel_collatorIdentifier = objc.registerName("collatorIdentifier"); +late final _sel_columnNumber = objc.registerName("columnNumber"); +late final _sel_commonISOCurrencyCodes = objc.registerName( + "commonISOCurrencyCodes", +); +late final _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_ = + objc.registerName( + "completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:", + ); +late final _sel_components = objc.registerName("components"); +late final _sel_componentsFromLocaleIdentifier_ = objc.registerName( + "componentsFromLocaleIdentifier:", +); +late final _sel_compressUsingAlgorithm_error_ = objc.registerName( + "compressUsingAlgorithm:error:", +); +late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( + "compressedDataUsingAlgorithm:error:", +); +late final _sel_configureAsServer = objc.registerName("configureAsServer"); +late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); +late final _sel_connectionDidFinishDownloading_destinationURL_ = objc + .registerName("connectionDidFinishDownloading:destinationURL:"); +late final _sel_connectionDidFinishLoading_ = objc.registerName( + "connectionDidFinishLoading:", +); +late final _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ = + objc.registerName( + "connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:", + ); +late final _sel_connectionShouldUseCredentialStorage_ = objc.registerName( + "connectionShouldUseCredentialStorage:", +); +late final _sel_connection_canAuthenticateAgainstProtectionSpace_ = objc + .registerName("connection:canAuthenticateAgainstProtectionSpace:"); +late final _sel_connection_didCancelAuthenticationChallenge_ = objc + .registerName("connection:didCancelAuthenticationChallenge:"); +late final _sel_connection_didFailWithError_ = objc.registerName( + "connection:didFailWithError:", +); +late final _sel_connection_didReceiveAuthenticationChallenge_ = objc + .registerName("connection:didReceiveAuthenticationChallenge:"); +late final _sel_connection_didReceiveData_ = objc.registerName( + "connection:didReceiveData:", +); +late final _sel_connection_didReceiveResponse_ = objc.registerName( + "connection:didReceiveResponse:", +); +late final _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ = + objc.registerName( + "connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:", + ); +late final _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_ = + objc.registerName( + "connection:didWriteData:totalBytesWritten:expectedTotalBytes:", + ); +late final _sel_connection_handleRequest_ = objc.registerName( + "connection:handleRequest:", +); +late final _sel_connection_needNewBodyStream_ = objc.registerName( + "connection:needNewBodyStream:", +); +late final _sel_connection_shouldMakeNewConnection_ = objc.registerName( + "connection:shouldMakeNewConnection:", +); +late final _sel_connection_willCacheResponse_ = objc.registerName( + "connection:willCacheResponse:", +); +late final _sel_connection_willSendRequestForAuthenticationChallenge_ = objc + .registerName("connection:willSendRequestForAuthenticationChallenge:"); +late final _sel_connection_willSendRequest_redirectResponse_ = objc + .registerName("connection:willSendRequest:redirectResponse:"); +late final _sel_containsValueForKey_ = objc.registerName( + "containsValueForKey:", +); +late final _sel_continueWithoutCredentialForAuthenticationChallenge_ = objc + .registerName("continueWithoutCredentialForAuthenticationChallenge:"); +late final _sel_copyScriptingValue_forKey_withProperties_ = objc.registerName( + "copyScriptingValue:forKey:withProperties:", +); +late final _sel_correctionCheckingResultWithRange_replacementString_ = objc + .registerName("correctionCheckingResultWithRange:replacementString:"); +late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_ = + objc.registerName( + "correctionCheckingResultWithRange:replacementString:alternativeStrings:", + ); +late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( + "countByEnumeratingWithState:objects:count:", +); +late final _sel_countryCode = objc.registerName("countryCode"); +late final _sel_createConversationForConnection_ = objc.registerName( + "createConversationForConnection:", +); +late final _sel_credentialForTrust_ = objc.registerName("credentialForTrust:"); +late final _sel_credentialWithIdentity_certificates_persistence_ = objc + .registerName("credentialWithIdentity:certificates:persistence:"); +late final _sel_credentialWithUser_password_persistence_ = objc.registerName( + "credentialWithUser:password:persistence:", +); +late final _sel_currencyCode = objc.registerName("currencyCode"); +late final _sel_currencySymbol = objc.registerName("currencySymbol"); +late final _sel_currentDevice = objc.registerName("currentDevice"); +late final _sel_currentDirectoryPath = objc.registerName( + "currentDirectoryPath", +); +late final _sel_currentHardwareInputNumberOfChannels = objc.registerName( + "currentHardwareInputNumberOfChannels", +); +late final _sel_currentHardwareOutputNumberOfChannels = objc.registerName( + "currentHardwareOutputNumberOfChannels", +); +late final _sel_currentHardwareSampleRate = objc.registerName( + "currentHardwareSampleRate", +); +late final _sel_currentLocale = objc.registerName("currentLocale"); +late final _sel_currentRoute = objc.registerName("currentRoute"); +late final _sel_currentTime = objc.registerName("currentTime"); +late final _sel_customPronounForLanguage_ = objc.registerName( + "customPronounForLanguage:", +); +late final _sel_dashCheckingResultWithRange_replacementString_ = objc + .registerName("dashCheckingResultWithRange:replacementString:"); +late final _sel_data = objc.registerName("data"); +late final _sel_dataTaskWithRequest_completionHandler_ = objc.registerName( + "dataTaskWithRequest:completionHandler:", +); +late final _sel_dataTaskWithURL_completionHandler_ = objc.registerName( + "dataTaskWithURL:completionHandler:", +); +late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); +late final _sel_dataWithContentsOfMappedFile_ = objc.registerName( + "dataWithContentsOfMappedFile:", +); +late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); +late final _sel_date = objc.registerName("date"); +late final _sel_dateCheckingResultWithRange_date_ = objc.registerName( + "dateCheckingResultWithRange:date:", +); +late final _sel_dateCheckingResultWithRange_date_timeZone_duration_ = objc + .registerName("dateCheckingResultWithRange:date:timeZone:duration:"); +late final _sel_dateWithCalendarFormat_timeZone_ = objc.registerName( + "dateWithCalendarFormat:timeZone:", +); +late final _sel_dateWithNaturalLanguageString_ = objc.registerName( + "dateWithNaturalLanguageString:", +); +late final _sel_dateWithNaturalLanguageString_locale_ = objc.registerName( + "dateWithNaturalLanguageString:locale:", +); +late final _sel_dateWithString_ = objc.registerName("dateWithString:"); +late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( + "dateWithTimeIntervalSince1970:", +); +late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( + "dateWithTimeIntervalSinceNow:", +); +late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( + "dateWithTimeIntervalSinceReferenceDate:", +); +late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( + "dateWithTimeInterval:sinceDate:", +); +late final _sel_daylightSavingTimeOffset = objc.registerName( + "daylightSavingTimeOffset", +); +late final _sel_decimalSeparator = objc.registerName("decimalSeparator"); +late final _sel_decodeArrayOfObjCType_count_at_ = objc.registerName( + "decodeArrayOfObjCType:count:at:", +); +late final _sel_decodeArrayOfObjectsOfClass_forKey_ = objc.registerName( + "decodeArrayOfObjectsOfClass:forKey:", +); +late final _sel_decodeArrayOfObjectsOfClasses_forKey_ = objc.registerName( + "decodeArrayOfObjectsOfClasses:forKey:", +); +late final _sel_decodeBoolForKey_ = objc.registerName("decodeBoolForKey:"); +late final _sel_decodeBytesForKey_minimumLength_ = objc.registerName( + "decodeBytesForKey:minimumLength:", +); +late final _sel_decodeBytesForKey_returnedLength_ = objc.registerName( + "decodeBytesForKey:returnedLength:", +); +late final _sel_decodeBytesWithMinimumLength_ = objc.registerName( + "decodeBytesWithMinimumLength:", +); +late final _sel_decodeBytesWithReturnedLength_ = objc.registerName( + "decodeBytesWithReturnedLength:", +); +late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_ = objc + .registerName("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); +late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_ = + objc.registerName( + "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:", + ); +late final _sel_decodeDoubleForKey_ = objc.registerName("decodeDoubleForKey:"); +late final _sel_decodeFloatForKey_ = objc.registerName("decodeFloatForKey:"); +late final _sel_decodeInt32ForKey_ = objc.registerName("decodeInt32ForKey:"); +late final _sel_decodeInt64ForKey_ = objc.registerName("decodeInt64ForKey:"); +late final _sel_decodeIntForKey_ = objc.registerName("decodeIntForKey:"); +late final _sel_decodeIntegerForKey_ = objc.registerName( + "decodeIntegerForKey:", +); +late final _sel_decodeNXObject = objc.registerName("decodeNXObject"); +late final _sel_decodeObject = objc.registerName("decodeObject"); +late final _sel_decodeObjectForKey_ = objc.registerName("decodeObjectForKey:"); +late final _sel_decodeObjectOfClass_forKey_ = objc.registerName( + "decodeObjectOfClass:forKey:", +); +late final _sel_decodeObjectOfClasses_forKey_ = objc.registerName( + "decodeObjectOfClasses:forKey:", +); +late final _sel_decodePoint = objc.registerName("decodePoint"); +late final _sel_decodePointForKey_ = objc.registerName("decodePointForKey:"); +late final _sel_decodePropertyList = objc.registerName("decodePropertyList"); +late final _sel_decodePropertyListForKey_ = objc.registerName( + "decodePropertyListForKey:", +); +late final _sel_decodeRect = objc.registerName("decodeRect"); +late final _sel_decodeRectForKey_ = objc.registerName("decodeRectForKey:"); +late final _sel_decodeSize = objc.registerName("decodeSize"); +late final _sel_decodeSizeForKey_ = objc.registerName("decodeSizeForKey:"); +late final _sel_decodeTopLevelObjectAndReturnError_ = objc.registerName( + "decodeTopLevelObjectAndReturnError:", +); +late final _sel_decodeTopLevelObjectForKey_error_ = objc.registerName( + "decodeTopLevelObjectForKey:error:", +); +late final _sel_decodeTopLevelObjectOfClass_forKey_error_ = objc.registerName( + "decodeTopLevelObjectOfClass:forKey:error:", +); +late final _sel_decodeTopLevelObjectOfClasses_forKey_error_ = objc.registerName( + "decodeTopLevelObjectOfClasses:forKey:error:", +); +late final _sel_decodeValueOfObjCType_at_ = objc.registerName( + "decodeValueOfObjCType:at:", +); +late final _sel_decodeValuesOfObjCTypes_ = objc.registerName( + "decodeValuesOfObjCTypes:", +); +late final _sel_decodingFailurePolicy = objc.registerName( + "decodingFailurePolicy", +); +late final _sel_decompressUsingAlgorithm_error_ = objc.registerName( + "decompressUsingAlgorithm:error:", +); +late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( + "decompressedDataUsingAlgorithm:error:", +); +late final _sel_defaultTimeZone = objc.registerName("defaultTimeZone"); +late final _sel_delegate = objc.registerName("delegate"); +late final _sel_deleteCharactersInRange_ = objc.registerName( + "deleteCharactersInRange:", +); +late final _sel_description = objc.registerName("description"); +late final _sel_descriptionWithCalendarFormat_timeZone_locale_ = objc + .registerName("descriptionWithCalendarFormat:timeZone:locale:"); +late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); +late final _sel_dictionary = objc.registerName("dictionary"); +late final _sel_dictionaryWithCapacity_ = objc.registerName( + "dictionaryWithCapacity:", +); +late final _sel_dictionaryWithContentsOfFile_ = objc.registerName( + "dictionaryWithContentsOfFile:", +); +late final _sel_dictionaryWithContentsOfURL_ = objc.registerName( + "dictionaryWithContentsOfURL:", +); +late final _sel_dictionaryWithContentsOfURL_error_ = objc.registerName( + "dictionaryWithContentsOfURL:error:", +); +late final _sel_dictionaryWithDictionary_ = objc.registerName( + "dictionaryWithDictionary:", +); +late final _sel_dictionaryWithObject_forKey_ = objc.registerName( + "dictionaryWithObject:forKey:", +); +late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( + "dictionaryWithObjectsAndKeys:", +); +late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( + "dictionaryWithObjects:forKeys:", +); +late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( + "dictionaryWithObjects:forKeys:count:", +); +late final _sel_dictionaryWithSharedKeySet_ = objc.registerName( + "dictionaryWithSharedKeySet:", +); +late final _sel_dictionaryWithValuesForKeys_ = objc.registerName( + "dictionaryWithValuesForKeys:", +); +late final _sel_didChangeValueForKey_ = objc.registerName( + "didChangeValueForKey:", +); +late final _sel_didChangeValueForKey_withSetMutation_usingObjects_ = objc + .registerName("didChangeValueForKey:withSetMutation:usingObjects:"); +late final _sel_didChange_valuesAtIndexes_forKey_ = objc.registerName( + "didChange:valuesAtIndexes:forKey:", +); +late final _sel_differenceFromArray_ = objc.registerName( + "differenceFromArray:", +); +late final _sel_differenceFromArray_withOptions_ = objc.registerName( + "differenceFromArray:withOptions:", +); +late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_ = objc + .registerName("differenceFromArray:withOptions:usingEquivalenceTest:"); +late final _sel_differenceFromOrderedSet_ = objc.registerName( + "differenceFromOrderedSet:", +); +late final _sel_differenceFromOrderedSet_withOptions_ = objc.registerName( + "differenceFromOrderedSet:withOptions:", +); +late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_ = + objc.registerName( + "differenceFromOrderedSet:withOptions:usingEquivalenceTest:", + ); +late final _sel_discardContentIfPossible = objc.registerName( + "discardContentIfPossible", +); +late final _sel_distantFuture = objc.registerName("distantFuture"); +late final _sel_distantPast = objc.registerName("distantPast"); +late final _sel_distinguishedNames = objc.registerName("distinguishedNames"); +late final _sel_doesContain_ = objc.registerName("doesContain:"); +late final _sel_dominantLanguage = objc.registerName("dominantLanguage"); +late final _sel_dominantLanguageForScript_ = objc.registerName( + "dominantLanguageForScript:", +); +late final _sel_downloadDidBegin_ = objc.registerName("downloadDidBegin:"); +late final _sel_downloadDidFinish_ = objc.registerName("downloadDidFinish:"); +late final _sel_downloadShouldUseCredentialStorage_ = objc.registerName( + "downloadShouldUseCredentialStorage:", +); +late final _sel_downloadTaskWithRequest_completionHandler_ = objc.registerName( + "downloadTaskWithRequest:completionHandler:", +); +late final _sel_downloadTaskWithResumeData_completionHandler_ = objc + .registerName("downloadTaskWithResumeData:completionHandler:"); +late final _sel_downloadTaskWithURL_completionHandler_ = objc.registerName( + "downloadTaskWithURL:completionHandler:", +); +late final _sel_download_canAuthenticateAgainstProtectionSpace_ = objc + .registerName("download:canAuthenticateAgainstProtectionSpace:"); +late final _sel_download_decideDestinationWithSuggestedFilename_ = objc + .registerName("download:decideDestinationWithSuggestedFilename:"); +late final _sel_download_didCancelAuthenticationChallenge_ = objc.registerName( + "download:didCancelAuthenticationChallenge:", +); +late final _sel_download_didCreateDestination_ = objc.registerName( + "download:didCreateDestination:", +); +late final _sel_download_didFailWithError_ = objc.registerName( + "download:didFailWithError:", +); +late final _sel_download_didReceiveAuthenticationChallenge_ = objc.registerName( + "download:didReceiveAuthenticationChallenge:", +); +late final _sel_download_didReceiveDataOfLength_ = objc.registerName( + "download:didReceiveDataOfLength:", +); +late final _sel_download_didReceiveResponse_ = objc.registerName( + "download:didReceiveResponse:", +); +late final _sel_download_shouldDecodeSourceDataOfMIMEType_ = objc.registerName( + "download:shouldDecodeSourceDataOfMIMEType:", +); +late final _sel_download_willResumeWithResponse_fromByte_ = objc.registerName( + "download:willResumeWithResponse:fromByte:", +); +late final _sel_download_willSendRequest_redirectResponse_ = objc.registerName( + "download:willSendRequest:redirectResponse:", +); +late final _sel_duration = objc.registerName("duration"); +late final _sel_edgeInsetsValue = objc.registerName("edgeInsetsValue"); +late final _sel_enableRate = objc.registerName("enableRate"); +late final _sel_encodeArrayOfObjCType_count_at_ = objc.registerName( + "encodeArrayOfObjCType:count:at:", +); +late final _sel_encodeBool_forKey_ = objc.registerName("encodeBool:forKey:"); +late final _sel_encodeBycopyObject_ = objc.registerName("encodeBycopyObject:"); +late final _sel_encodeByrefObject_ = objc.registerName("encodeByrefObject:"); +late final _sel_encodeBytes_length_ = objc.registerName("encodeBytes:length:"); +late final _sel_encodeBytes_length_forKey_ = objc.registerName( + "encodeBytes:length:forKey:", +); +late final _sel_encodeConditionalObject_ = objc.registerName( + "encodeConditionalObject:", +); +late final _sel_encodeConditionalObject_forKey_ = objc.registerName( + "encodeConditionalObject:forKey:", +); +late final _sel_encodeDouble_forKey_ = objc.registerName( + "encodeDouble:forKey:", +); +late final _sel_encodeFloat_forKey_ = objc.registerName("encodeFloat:forKey:"); +late final _sel_encodeInt32_forKey_ = objc.registerName("encodeInt32:forKey:"); +late final _sel_encodeInt64_forKey_ = objc.registerName("encodeInt64:forKey:"); +late final _sel_encodeInt_forKey_ = objc.registerName("encodeInt:forKey:"); +late final _sel_encodeInteger_forKey_ = objc.registerName( + "encodeInteger:forKey:", +); +late final _sel_encodeNXObject_ = objc.registerName("encodeNXObject:"); +late final _sel_encodeObject_ = objc.registerName("encodeObject:"); +late final _sel_encodeObject_forKey_ = objc.registerName( + "encodeObject:forKey:", +); +late final _sel_encodePoint_ = objc.registerName("encodePoint:"); +late final _sel_encodePoint_forKey_ = objc.registerName("encodePoint:forKey:"); +late final _sel_encodePropertyList_ = objc.registerName("encodePropertyList:"); +late final _sel_encodeRect_ = objc.registerName("encodeRect:"); +late final _sel_encodeRect_forKey_ = objc.registerName("encodeRect:forKey:"); +late final _sel_encodeRootObject_ = objc.registerName("encodeRootObject:"); +late final _sel_encodeSize_ = objc.registerName("encodeSize:"); +late final _sel_encodeSize_forKey_ = objc.registerName("encodeSize:forKey:"); +late final _sel_encodeValuesOfObjCTypes_ = objc.registerName( + "encodeValuesOfObjCTypes:", +); +late final _sel_endActivity_ = objc.registerName("endActivity:"); +late final _sel_endContentAccess = objc.registerName("endContentAccess"); +late final _sel_endEditing = objc.registerName("endEditing"); +late final _sel_endInterruption = objc.registerName("endInterruption"); +late final _sel_endInterruptionWithFlags_ = objc.registerName( + "endInterruptionWithFlags:", +); +late final _sel_enumerateAttribute_inRange_options_usingBlock_ = objc + .registerName("enumerateAttribute:inRange:options:usingBlock:"); +late final _sel_enumerateAttributesInRange_options_usingBlock_ = objc + .registerName("enumerateAttributesInRange:options:usingBlock:"); +late final _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_ = + objc.registerName( + "enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:", + ); +late final _sel_enumerateMatchesInString_options_range_usingBlock_ = objc + .registerName("enumerateMatchesInString:options:range:usingBlock:"); +late final _sel_error = objc.registerName("error"); +late final _sel_escapedTemplateForString_ = objc.registerName( + "escapedTemplateForString:", +); +late final _sel_exceptionDuringOperation_error_leftOperand_rightOperand_ = objc + .registerName("exceptionDuringOperation:error:leftOperand:rightOperand:"); +late final _sel_exemplarCharacterSet = objc.registerName( + "exemplarCharacterSet", +); +late final _sel_failWithError_ = objc.registerName("failWithError:"); +late final _sel_fileCreationDate = objc.registerName("fileCreationDate"); +late final _sel_fileDescriptor = objc.registerName("fileDescriptor"); +late final _sel_fileExtensionHidden = objc.registerName("fileExtensionHidden"); +late final _sel_fileGroupOwnerAccountID = objc.registerName( + "fileGroupOwnerAccountID", +); +late final _sel_fileGroupOwnerAccountName = objc.registerName( + "fileGroupOwnerAccountName", +); +late final _sel_fileHFSCreatorCode = objc.registerName("fileHFSCreatorCode"); +late final _sel_fileHFSTypeCode = objc.registerName("fileHFSTypeCode"); +late final _sel_fileHandleWithNullDevice = objc.registerName( + "fileHandleWithNullDevice", +); +late final _sel_fileHandleWithStandardError = objc.registerName( + "fileHandleWithStandardError", +); +late final _sel_fileHandleWithStandardInput = objc.registerName( + "fileHandleWithStandardInput", +); +late final _sel_fileHandleWithStandardOutput = objc.registerName( + "fileHandleWithStandardOutput", +); +late final _sel_fileIsAppendOnly = objc.registerName("fileIsAppendOnly"); +late final _sel_fileIsImmutable = objc.registerName("fileIsImmutable"); +late final _sel_fileManager_shouldCopyItemAtPath_toPath_ = objc.registerName( + "fileManager:shouldCopyItemAtPath:toPath:", +); +late final _sel_fileManager_shouldCopyItemAtURL_toURL_ = objc.registerName( + "fileManager:shouldCopyItemAtURL:toURL:", +); +late final _sel_fileManager_shouldLinkItemAtPath_toPath_ = objc.registerName( + "fileManager:shouldLinkItemAtPath:toPath:", +); +late final _sel_fileManager_shouldLinkItemAtURL_toURL_ = objc.registerName( + "fileManager:shouldLinkItemAtURL:toURL:", +); +late final _sel_fileManager_shouldMoveItemAtPath_toPath_ = objc.registerName( + "fileManager:shouldMoveItemAtPath:toPath:", +); +late final _sel_fileManager_shouldMoveItemAtURL_toURL_ = objc.registerName( + "fileManager:shouldMoveItemAtURL:toURL:", +); +late final _sel_fileManager_shouldProceedAfterError_ = objc.registerName( + "fileManager:shouldProceedAfterError:", +); +late final _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ = + objc.registerName( + "fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:", + ); +late final _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ = + objc.registerName( + "fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:", + ); +late final _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ = + objc.registerName( + "fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:", + ); +late final _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ = + objc.registerName( + "fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:", + ); +late final _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ = + objc.registerName( + "fileManager:shouldProceedAfterError:movingItemAtPath:toPath:", + ); +late final _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ = + objc.registerName( + "fileManager:shouldProceedAfterError:movingItemAtURL:toURL:", + ); +late final _sel_fileManager_shouldProceedAfterError_removingItemAtPath_ = objc + .registerName("fileManager:shouldProceedAfterError:removingItemAtPath:"); +late final _sel_fileManager_shouldProceedAfterError_removingItemAtURL_ = objc + .registerName("fileManager:shouldProceedAfterError:removingItemAtURL:"); +late final _sel_fileManager_shouldRemoveItemAtPath_ = objc.registerName( + "fileManager:shouldRemoveItemAtPath:", +); +late final _sel_fileManager_shouldRemoveItemAtURL_ = objc.registerName( + "fileManager:shouldRemoveItemAtURL:", +); +late final _sel_fileManager_willProcessPath_ = objc.registerName( + "fileManager:willProcessPath:", +); +late final _sel_fileModificationDate = objc.registerName( + "fileModificationDate", +); +late final _sel_fileOwnerAccountID = objc.registerName("fileOwnerAccountID"); +late final _sel_fileOwnerAccountName = objc.registerName( + "fileOwnerAccountName", +); +late final _sel_filePosixPermissions = objc.registerName( + "filePosixPermissions", +); +late final _sel_fileSize = objc.registerName("fileSize"); +late final _sel_fileSystemFileNumber = objc.registerName( + "fileSystemFileNumber", +); +late final _sel_fileSystemNumber = objc.registerName("fileSystemNumber"); +late final _sel_fileSystemRepresentation = objc.registerName( + "fileSystemRepresentation", +); +late final _sel_fileType = objc.registerName("fileType"); +late final _sel_fileURLWithPathComponents_ = objc.registerName( + "fileURLWithPathComponents:", +); +late final _sel_filterUsingPredicate_ = objc.registerName( + "filterUsingPredicate:", +); +late final _sel_filteredArrayUsingPredicate_ = objc.registerName( + "filteredArrayUsingPredicate:", +); +late final _sel_filteredOrderedSetUsingPredicate_ = objc.registerName( + "filteredOrderedSetUsingPredicate:", +); +late final _sel_filteredSetUsingPredicate_ = objc.registerName( + "filteredSetUsingPredicate:", +); +late final _sel_firstMatchInString_options_range_ = objc.registerName( + "firstMatchInString:options:range:", +); +late final _sel_format = objc.registerName("format"); +late final _sel_fullUserName = objc.registerName("fullUserName"); +late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_ = objc + .registerName("getBoundStreamsWithBufferSize:inputStream:outputStream:"); +late final _sel_getBytes_ = objc.registerName("getBytes:"); +late final _sel_getCString_ = objc.registerName("getCString:"); +late final _sel_getCString_maxLength_ = objc.registerName( + "getCString:maxLength:", +); +late final _sel_getCString_maxLength_range_remainingRange_ = objc.registerName( + "getCString:maxLength:range:remainingRange:", +); +late final _sel_getCachedResponseForDataTask_completionHandler_ = objc + .registerName("getCachedResponseForDataTask:completionHandler:"); +late final _sel_getCharacters_ = objc.registerName("getCharacters:"); +late final _sel_getCookiesForTask_completionHandler_ = objc.registerName( + "getCookiesForTask:completionHandler:", +); +late final _sel_getCredentialsForProtectionSpace_task_completionHandler_ = objc + .registerName("getCredentialsForProtectionSpace:task:completionHandler:"); +late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_ = + objc.registerName( + "getDefaultCredentialForProtectionSpace:task:completionHandler:", + ); +late final _sel_getFileSystemRepresentation_maxLength_ = objc.registerName( + "getFileSystemRepresentation:maxLength:", +); +late final _sel_getIndexes_ = objc.registerName("getIndexes:"); +late final _sel_getObjects_ = objc.registerName("getObjects:"); +late final _sel_getObjects_andKeys_ = objc.registerName("getObjects:andKeys:"); +late final _sel_getPromisedItemResourceValue_forKey_error_ = objc.registerName( + "getPromisedItemResourceValue:forKey:error:", +); +late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_ = objc + .registerName("getStreamsToHostWithName:port:inputStream:outputStream:"); +late final _sel_getStreamsToHost_port_inputStream_outputStream_ = objc + .registerName("getStreamsToHost:port:inputStream:outputStream:"); +late final _sel_getValue_ = objc.registerName("getValue:"); +late final _sel_grammarCheckingResultWithRange_details_ = objc.registerName( + "grammarCheckingResultWithRange:details:", +); +late final _sel_grammarDetails = objc.registerName("grammarDetails"); +late final _sel_groupingSeparator = objc.registerName("groupingSeparator"); +late final _sel_handleMachMessage_ = objc.registerName("handleMachMessage:"); +late final _sel_handlePortMessage_ = objc.registerName("handlePortMessage:"); +late final _sel_handleQueryWithUnboundKey_ = objc.registerName( + "handleQueryWithUnboundKey:", +); +late final _sel_handleTakeValue_forUnboundKey_ = objc.registerName( + "handleTakeValue:forUnboundKey:", +); +late final _sel_hasPassword = objc.registerName("hasPassword"); +late final _sel_hasThousandSeparators = objc.registerName( + "hasThousandSeparators", +); +late final _sel_homeDirectoryForCurrentUser = objc.registerName( + "homeDirectoryForCurrentUser", +); +late final _sel_homeDirectoryForUser_ = objc.registerName( + "homeDirectoryForUser:", +); +late final _sel_identity = objc.registerName("identity"); +late final _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_ = objc + .registerName("imageForProposedSize:scaleFactor:imageOffset:imageSize:"); +late final _sel_indicesOfObjectsByEvaluatingObjectSpecifier_ = objc + .registerName("indicesOfObjectsByEvaluatingObjectSpecifier:"); +late final _sel_init = objc.registerName("init"); +late final _sel_initSymbolicLinkWithDestination_ = objc.registerName( + "initSymbolicLinkWithDestination:", +); +late final _sel_initToFileAtPath_append_ = objc.registerName( + "initToFileAtPath:append:", +); +late final _sel_initWithArray_ = objc.registerName("initWithArray:"); +late final _sel_initWithArray_copyItems_ = objc.registerName( + "initWithArray:copyItems:", +); +late final _sel_initWithArray_range_copyItems_ = objc.registerName( + "initWithArray:range:copyItems:", +); +late final _sel_initWithAttributedString_ = objc.registerName( + "initWithAttributedString:", +); +late final _sel_initWithBase64EncodedData_options_ = objc.registerName( + "initWithBase64EncodedData:options:", +); +late final _sel_initWithBase64EncodedString_options_ = objc.registerName( + "initWithBase64EncodedString:options:", +); +late final _sel_initWithBase64Encoding_ = objc.registerName( + "initWithBase64Encoding:", +); +late final _sel_initWithBundle_ = objc.registerName("initWithBundle:"); +late final _sel_initWithCStringNoCopy_length_freeWhenDone_ = objc.registerName( + "initWithCStringNoCopy:length:freeWhenDone:", +); +late final _sel_initWithCString_ = objc.registerName("initWithCString:"); +late final _sel_initWithCString_length_ = objc.registerName( + "initWithCString:length:", +); +late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); +late final _sel_initWithContentsOfFile_ = objc.registerName( + "initWithContentsOfFile:", +); +late final _sel_initWithContentsOfMappedFile_ = objc.registerName( + "initWithContentsOfMappedFile:", +); +late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_ = + objc.registerName( + "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:", + ); +late final _sel_initWithContentsOfURL_ = objc.registerName( + "initWithContentsOfURL:", +); +late final _sel_initWithContentsOfURL_error_ = objc.registerName( + "initWithContentsOfURL:error:", +); +late final _sel_initWithContentsOfURL_fileTypeHint_error_ = objc.registerName( + "initWithContentsOfURL:fileTypeHint:error:", +); +late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); +late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( + "initWithData:fileTypeHint:error:", +); +late final _sel_initWithDateFormat_allowNaturalLanguage_ = objc.registerName( + "initWithDateFormat:allowNaturalLanguage:", +); +late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); +late final _sel_initWithDictionary_copyItems_ = objc.registerName( + "initWithDictionary:copyItems:", +); +late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); +late final _sel_initWithFormat_options_locale_ = objc.registerName( + "initWithFormat:options:locale:", +); +late final _sel_initWithFormat_options_locale_context_ = objc.registerName( + "initWithFormat:options:locale:context:", +); +late final _sel_initWithLength_ = objc.registerName("initWithLength:"); +late final _sel_initWithMarkdownString_options_baseURL_error_ = objc + .registerName("initWithMarkdownString:options:baseURL:error:"); +late final _sel_initWithMarkdown_options_baseURL_error_ = objc.registerName( + "initWithMarkdown:options:baseURL:error:", +); +late final _sel_initWithObject_ = objc.registerName("initWithObject:"); +late final _sel_initWithObjectsAndKeys_ = objc.registerName( + "initWithObjectsAndKeys:", +); +late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); +late final _sel_initWithObjects_forKeys_ = objc.registerName( + "initWithObjects:forKeys:", +); +late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); +late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( + "initWithOrderedSet:copyItems:", +); +late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( + "initWithOrderedSet:range:copyItems:", +); +late final _sel_initWithPath_ = objc.registerName("initWithPath:"); +late final _sel_initWithSet_ = objc.registerName("initWithSet:"); +late final _sel_initWithSet_copyItems_ = objc.registerName( + "initWithSet:copyItems:", +); +late final _sel_initWithString_ = objc.registerName("initWithString:"); +late final _sel_initWithString_attributes_ = objc.registerName( + "initWithString:attributes:", +); +late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( + "initWithTimeIntervalSince1970:", +); +late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( + "initWithTimeIntervalSinceNow:", +); +late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( + "initWithTimeInterval:sinceDate:", +); +late final _sel_inputDataSource = objc.registerName("inputDataSource"); +late final _sel_inputDataSources = objc.registerName("inputDataSources"); +late final _sel_inputGain = objc.registerName("inputGain"); +late final _sel_inputIsAvailable = objc.registerName("inputIsAvailable"); +late final _sel_inputIsAvailableChanged_ = objc.registerName( + "inputIsAvailableChanged:", +); +late final _sel_inputLatency = objc.registerName("inputLatency"); +late final _sel_inputNumberOfChannels = objc.registerName( + "inputNumberOfChannels", +); +late final _sel_inputOrientation = objc.registerName("inputOrientation"); +late final _sel_inputStreamWithData_ = objc.registerName( + "inputStreamWithData:", +); +late final _sel_inputStreamWithFileAtPath_ = objc.registerName( + "inputStreamWithFileAtPath:", +); +late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); +late final _sel_insertAttributedString_atIndex_ = objc.registerName( + "insertAttributedString:atIndex:", +); +late final _sel_insertString_atIndex_ = objc.registerName( + "insertString:atIndex:", +); +late final _sel_insertValue_atIndex_inPropertyWithKey_ = objc.registerName( + "insertValue:atIndex:inPropertyWithKey:", +); +late final _sel_insertValue_inPropertyWithKey_ = objc.registerName( + "insertValue:inPropertyWithKey:", +); +late final _sel_intendedSpatialExperience = objc.registerName( + "intendedSpatialExperience", +); +late final _sel_inverseForRelationshipKey_ = objc.registerName( + "inverseForRelationshipKey:", +); +late final _sel_isAbsolutePath = objc.registerName("isAbsolutePath"); +late final _sel_isAtEnd = objc.registerName("isAtEnd"); +late final _sel_isCaseInsensitiveLike_ = objc.registerName( + "isCaseInsensitiveLike:", +); +late final _sel_isContentDiscarded = objc.registerName("isContentDiscarded"); +late final _sel_isDaylightSavingTime = objc.registerName( + "isDaylightSavingTime", +); +late final _sel_isEqualToAttributedString_ = objc.registerName( + "isEqualToAttributedString:", +); +late final _sel_isEqualToTimeZone_ = objc.registerName("isEqualToTimeZone:"); +late final _sel_isEqualToValue_ = objc.registerName("isEqualToValue:"); +late final _sel_isEqualTo_ = objc.registerName("isEqualTo:"); +late final _sel_isGreaterThanOrEqualTo_ = objc.registerName( + "isGreaterThanOrEqualTo:", +); +late final _sel_isGreaterThan_ = objc.registerName("isGreaterThan:"); +late final _sel_isInputAvailable = objc.registerName("isInputAvailable"); +late final _sel_isInputGainSettable = objc.registerName("isInputGainSettable"); +late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_isLessThanOrEqualTo_ = objc.registerName( + "isLessThanOrEqualTo:", +); +late final _sel_isLessThan_ = objc.registerName("isLessThan:"); +late final _sel_isLike_ = objc.registerName("isLike:"); +late final _sel_isLowPowerModeEnabled = objc.registerName( + "isLowPowerModeEnabled", +); +late final _sel_isMacCatalystApp = objc.registerName("isMacCatalystApp"); +late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); +late final _sel_isMicrophoneInjectionAvailable = objc.registerName( + "isMicrophoneInjectionAvailable", +); +late final _sel_isNotEqualTo_ = objc.registerName("isNotEqualTo:"); +late final _sel_isOtherAudioPlaying = objc.registerName("isOtherAudioPlaying"); +late final _sel_isPlaying = objc.registerName("isPlaying"); +late final _sel_isReadOnlyKey_ = objc.registerName("isReadOnlyKey:"); +late final _sel_isUnspecified = objc.registerName("isUnspecified"); +late final _sel_isiOSAppOnMac = objc.registerName("isiOSAppOnMac"); +late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = + objc.registerName( + "itemProviderVisibilityForRepresentationWithTypeIdentifier:", + ); +late final _sel_keyPathsForValuesAffectingValueForKey_ = objc.registerName( + "keyPathsForValuesAffectingValueForKey:", +); +late final _sel_knownTimeZoneNames = objc.registerName("knownTimeZoneNames"); +late final _sel_languageCode = objc.registerName("languageCode"); +late final _sel_languageIdentifier = objc.registerName("languageIdentifier"); +late final _sel_languagesForScript_ = objc.registerName("languagesForScript:"); +late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); +late final _sel_launch = objc.registerName("launch"); +late final _sel_launchPath = objc.registerName("launchPath"); +late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_ = + objc.registerName( + "launchedTaskWithExecutableURL:arguments:error:terminationHandler:", + ); +late final _sel_launchedTaskWithLaunchPath_arguments_ = objc.registerName( + "launchedTaskWithLaunchPath:arguments:", +); +late final _sel_length = objc.registerName("length"); +late final _sel_lineDirectionForLanguage_ = objc.registerName( + "lineDirectionForLanguage:", +); +late final _sel_lineNumber = objc.registerName("lineNumber"); +late final _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_ = + objc.registerName( + "linguisticTagsInRange:scheme:options:orthography:tokenRanges:", + ); +late final _sel_linkCheckingResultWithRange_URL_ = objc.registerName( + "linkCheckingResultWithRange:URL:", +); +late final _sel_listener_shouldAcceptNewConnection_ = objc.registerName( + "listener:shouldAcceptNewConnection:", +); +late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = + objc.registerName( + "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", + ); +late final _sel_loadPreviewImageWithOptions_completionHandler_ = objc + .registerName("loadPreviewImageWithOptions:completionHandler:"); +late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( + "loadResourceDataNotifyingClient:usingCache:", +); +late final _sel_localTimeZone = objc.registerName("localTimeZone"); +late final _sel_localeIdentifier = objc.registerName("localeIdentifier"); +late final _sel_localeIdentifierFromComponents_ = objc.registerName( + "localeIdentifierFromComponents:", +); +late final _sel_localeIdentifierFromWindowsLocaleCode_ = objc.registerName( + "localeIdentifierFromWindowsLocaleCode:", +); +late final _sel_localeWithLocaleIdentifier_ = objc.registerName( + "localeWithLocaleIdentifier:", +); +late final _sel_localizedAttributedStringWithFormat_ = objc.registerName( + "localizedAttributedStringWithFormat:", +); +late final _sel_localizedAttributedStringWithFormat_context_ = objc + .registerName("localizedAttributedStringWithFormat:context:"); +late final _sel_localizedAttributedStringWithFormat_options_ = objc + .registerName("localizedAttributedStringWithFormat:options:"); +late final _sel_localizedAttributedStringWithFormat_options_context_ = objc + .registerName("localizedAttributedStringWithFormat:options:context:"); +late final _sel_localizedName_locale_ = objc.registerName( + "localizedName:locale:", +); +late final _sel_localizedScannerWithString_ = objc.registerName( + "localizedScannerWithString:", +); +late final _sel_localizedStringForCalendarIdentifier_ = objc.registerName( + "localizedStringForCalendarIdentifier:", +); +late final _sel_localizedStringForCollationIdentifier_ = objc.registerName( + "localizedStringForCollationIdentifier:", +); +late final _sel_localizedStringForCollatorIdentifier_ = objc.registerName( + "localizedStringForCollatorIdentifier:", +); +late final _sel_localizedStringForCountryCode_ = objc.registerName( + "localizedStringForCountryCode:", +); +late final _sel_localizedStringForCurrencyCode_ = objc.registerName( + "localizedStringForCurrencyCode:", +); +late final _sel_localizedStringForLanguageCode_ = objc.registerName( + "localizedStringForLanguageCode:", +); +late final _sel_localizedStringForLocaleIdentifier_ = objc.registerName( + "localizedStringForLocaleIdentifier:", +); +late final _sel_localizedStringForScriptCode_ = objc.registerName( + "localizedStringForScriptCode:", +); +late final _sel_localizedStringForVariantCode_ = objc.registerName( + "localizedStringForVariantCode:", +); +late final _sel_localizesFormat = objc.registerName("localizesFormat"); +late final _sel_lock = objc.registerName("lock"); +late final _sel_lossyCString = objc.registerName("lossyCString"); +late final _sel_makeNewConnection_sender_ = objc.registerName( + "makeNewConnection:sender:", +); +late final _sel_matchesInString_options_range_ = objc.registerName( + "matchesInString:options:range:", +); +late final _sel_maximumInputNumberOfChannels = objc.registerName( + "maximumInputNumberOfChannels", +); +late final _sel_maximumOutputNumberOfChannels = objc.registerName( + "maximumOutputNumberOfChannels", +); +late final _sel_metadataQuery_replacementObjectForResultObject_ = objc + .registerName("metadataQuery:replacementObjectForResultObject:"); +late final _sel_metadataQuery_replacementValueForAttribute_value_ = objc + .registerName("metadataQuery:replacementValueForAttribute:value:"); +late final _sel_mutableArrayValueForKeyPath_ = objc.registerName( + "mutableArrayValueForKeyPath:", +); +late final _sel_mutableArrayValueForKey_ = objc.registerName( + "mutableArrayValueForKey:", +); +late final _sel_mutableOrderedSetValueForKeyPath_ = objc.registerName( + "mutableOrderedSetValueForKeyPath:", +); +late final _sel_mutableOrderedSetValueForKey_ = objc.registerName( + "mutableOrderedSetValueForKey:", +); +late final _sel_mutableSetValueForKeyPath_ = objc.registerName( + "mutableSetValueForKeyPath:", +); +late final _sel_mutableSetValueForKey_ = objc.registerName( + "mutableSetValueForKey:", +); +late final _sel_mutableString = objc.registerName("mutableString"); +late final _sel_needsToBeUpdatedFromPath_ = objc.registerName( + "needsToBeUpdatedFromPath:", +); +late final _sel_netServiceBrowserDidStopSearch_ = objc.registerName( + "netServiceBrowserDidStopSearch:", +); +late final _sel_netServiceBrowserWillSearch_ = objc.registerName( + "netServiceBrowserWillSearch:", +); +late final _sel_netServiceBrowser_didFindDomain_moreComing_ = objc.registerName( + "netServiceBrowser:didFindDomain:moreComing:", +); +late final _sel_netServiceBrowser_didFindService_moreComing_ = objc + .registerName("netServiceBrowser:didFindService:moreComing:"); +late final _sel_netServiceBrowser_didNotSearch_ = objc.registerName( + "netServiceBrowser:didNotSearch:", +); +late final _sel_netServiceBrowser_didRemoveDomain_moreComing_ = objc + .registerName("netServiceBrowser:didRemoveDomain:moreComing:"); +late final _sel_netServiceBrowser_didRemoveService_moreComing_ = objc + .registerName("netServiceBrowser:didRemoveService:moreComing:"); +late final _sel_netServiceDidPublish_ = objc.registerName( + "netServiceDidPublish:", +); +late final _sel_netServiceDidResolveAddress_ = objc.registerName( + "netServiceDidResolveAddress:", +); +late final _sel_netServiceDidStop_ = objc.registerName("netServiceDidStop:"); +late final _sel_netServiceWillPublish_ = objc.registerName( + "netServiceWillPublish:", +); +late final _sel_netServiceWillResolve_ = objc.registerName( + "netServiceWillResolve:", +); +late final _sel_netService_didAcceptConnectionWithInputStream_outputStream_ = + objc.registerName( + "netService:didAcceptConnectionWithInputStream:outputStream:", + ); +late final _sel_netService_didNotPublish_ = objc.registerName( + "netService:didNotPublish:", +); +late final _sel_netService_didNotResolve_ = objc.registerName( + "netService:didNotResolve:", +); +late final _sel_netService_didUpdateTXTRecordData_ = objc.registerName( + "netService:didUpdateTXTRecordData:", +); +late final _sel_new = objc.registerName("new"); +late final _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_ = + objc.registerName( + "newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:", + ); +late final _sel_nextDaylightSavingTimeTransition = objc.registerName( + "nextDaylightSavingTimeTransition", +); +late final _sel_nonretainedObjectValue = objc.registerName( + "nonretainedObjectValue", +); +late final _sel_notificationWithName_object_ = objc.registerName( + "notificationWithName:object:", +); +late final _sel_notificationWithName_object_userInfo_ = objc.registerName( + "notificationWithName:object:userInfo:", +); +late final _sel_now = objc.registerName("now"); +late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); +late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); +late final _sel_numberOfMatchesInString_options_range_ = objc.registerName( + "numberOfMatchesInString:options:range:", +); +late final _sel_numberOfRanges = objc.registerName("numberOfRanges"); +late final _sel_objectSpecifier = objc.registerName("objectSpecifier"); +late final _sel_objectZone = objc.registerName("objectZone"); +late final _sel_observationInfo = objc.registerName("observationInfo"); +late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc + .registerName("observeValueForKeyPath:ofObject:change:context:"); +late final _sel_observedPresentedItemUbiquityAttributes = objc.registerName( + "observedPresentedItemUbiquityAttributes", +); +late final _sel_operationCount = objc.registerName("operationCount"); +late final _sel_operations = objc.registerName("operations"); +late final _sel_orderedSet = objc.registerName("orderedSet"); +late final _sel_orderedSetByApplyingDifference_ = objc.registerName( + "orderedSetByApplyingDifference:", +); +late final _sel_orderedSetWithArray_ = objc.registerName( + "orderedSetWithArray:", +); +late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( + "orderedSetWithArray:range:copyItems:", +); +late final _sel_orderedSetWithCapacity_ = objc.registerName( + "orderedSetWithCapacity:", +); +late final _sel_orderedSetWithObject_ = objc.registerName( + "orderedSetWithObject:", +); +late final _sel_orderedSetWithObjects_ = objc.registerName( + "orderedSetWithObjects:", +); +late final _sel_orderedSetWithObjects_count_ = objc.registerName( + "orderedSetWithObjects:count:", +); +late final _sel_orderedSetWithOrderedSet_ = objc.registerName( + "orderedSetWithOrderedSet:", +); +late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( + "orderedSetWithOrderedSet:range:copyItems:", +); +late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); +late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( + "orderedSetWithSet:copyItems:", +); +late final _sel_orthography = objc.registerName("orthography"); +late final _sel_orthographyCheckingResultWithRange_orthography_ = objc + .registerName("orthographyCheckingResultWithRange:orthography:"); +late final _sel_outputDataSource = objc.registerName("outputDataSource"); +late final _sel_outputDataSources = objc.registerName("outputDataSources"); +late final _sel_outputLatency = objc.registerName("outputLatency"); +late final _sel_outputNumberOfChannels = objc.registerName( + "outputNumberOfChannels", +); +late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( + "outputStreamToBuffer:capacity:", +); +late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( + "outputStreamToFileAtPath:append:", +); +late final _sel_outputStreamToMemory = objc.registerName( + "outputStreamToMemory", +); +late final _sel_outputStreamWithURL_append_ = objc.registerName( + "outputStreamWithURL:append:", +); +late final _sel_outputVolume = objc.registerName("outputVolume"); +late final _sel_pageFormat = objc.registerName("pageFormat"); +late final _sel_pan = objc.registerName("pan"); +late final _sel_panelKind = objc.registerName("panelKind"); +late final _sel_panelName = objc.registerName("panelName"); +late final _sel_panelView = objc.registerName("panelView"); +late final _sel_parserDidEndDocument_ = objc.registerName( + "parserDidEndDocument:", +); +late final _sel_parserDidStartDocument_ = objc.registerName( + "parserDidStartDocument:", +); +late final _sel_parser_didEndElement_namespaceURI_qualifiedName_ = objc + .registerName("parser:didEndElement:namespaceURI:qualifiedName:"); +late final _sel_parser_didEndMappingPrefix_ = objc.registerName( + "parser:didEndMappingPrefix:", +); +late final _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_ = + objc.registerName( + "parser:didStartElement:namespaceURI:qualifiedName:attributes:", + ); +late final _sel_parser_didStartMappingPrefix_toURI_ = objc.registerName( + "parser:didStartMappingPrefix:toURI:", +); +late final _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ = + objc.registerName( + "parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:", + ); +late final _sel_parser_foundCDATA_ = objc.registerName("parser:foundCDATA:"); +late final _sel_parser_foundCharacters_ = objc.registerName( + "parser:foundCharacters:", +); +late final _sel_parser_foundComment_ = objc.registerName( + "parser:foundComment:", +); +late final _sel_parser_foundElementDeclarationWithName_model_ = objc + .registerName("parser:foundElementDeclarationWithName:model:"); +late final _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_ = + objc.registerName( + "parser:foundExternalEntityDeclarationWithName:publicID:systemID:", + ); +late final _sel_parser_foundIgnorableWhitespace_ = objc.registerName( + "parser:foundIgnorableWhitespace:", +); +late final _sel_parser_foundInternalEntityDeclarationWithName_value_ = objc + .registerName("parser:foundInternalEntityDeclarationWithName:value:"); +late final _sel_parser_foundNotationDeclarationWithName_publicID_systemID_ = + objc.registerName( + "parser:foundNotationDeclarationWithName:publicID:systemID:", + ); +late final _sel_parser_foundProcessingInstructionWithTarget_data_ = objc + .registerName("parser:foundProcessingInstructionWithTarget:data:"); +late final _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ = + objc.registerName( + "parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:", + ); +late final _sel_parser_parseErrorOccurred_ = objc.registerName( + "parser:parseErrorOccurred:", +); +late final _sel_parser_resolveExternalEntityName_systemID_ = objc.registerName( + "parser:resolveExternalEntityName:systemID:", +); +late final _sel_parser_validationErrorOccurred_ = objc.registerName( + "parser:validationErrorOccurred:", +); +late final _sel_password = objc.registerName("password"); +late final _sel_pathComponents = objc.registerName("pathComponents"); +late final _sel_pathExtension = objc.registerName("pathExtension"); +late final _sel_pathWithComponents_ = objc.registerName("pathWithComponents:"); +late final _sel_pathsMatchingExtensions_ = objc.registerName( + "pathsMatchingExtensions:", +); +late final _sel_pause = objc.registerName("pause"); +late final _sel_peakPowerForChannel_ = objc.registerName( + "peakPowerForChannel:", +); +late final _sel_performActivityWithOptions_reason_usingBlock_ = objc + .registerName("performActivityWithOptions:reason:usingBlock:"); +late final _sel_performBlock_ = objc.registerName("performBlock:"); +late final _sel_performDefaultHandlingForAuthenticationChallenge_ = objc + .registerName("performDefaultHandlingForAuthenticationChallenge:"); +late final _sel_performExpiringActivityWithReason_usingBlock_ = objc + .registerName("performExpiringActivityWithReason:usingBlock:"); +late final _sel_performInModes_block_ = objc.registerName( + "performInModes:block:", +); +late final _sel_performSelectorInBackground_withObject_ = objc.registerName( + "performSelectorInBackground:withObject:", +); +late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_ = objc + .registerName("performSelectorOnMainThread:withObject:waitUntilDone:"); +late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_ = + objc.registerName( + "performSelectorOnMainThread:withObject:waitUntilDone:modes:", + ); +late final _sel_performSelector_onThread_withObject_waitUntilDone_ = objc + .registerName("performSelector:onThread:withObject:waitUntilDone:"); +late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_ = objc + .registerName("performSelector:onThread:withObject:waitUntilDone:modes:"); +late final _sel_performSelector_target_argument_order_modes_ = objc + .registerName("performSelector:target:argument:order:modes:"); +late final _sel_performSelector_withObject_afterDelay_ = objc.registerName( + "performSelector:withObject:afterDelay:", +); +late final _sel_performSelector_withObject_afterDelay_inModes_ = objc + .registerName("performSelector:withObject:afterDelay:inModes:"); +late final _sel_phoneNumber = objc.registerName("phoneNumber"); +late final _sel_phoneNumberCheckingResultWithRange_phoneNumber_ = objc + .registerName("phoneNumberCheckingResultWithRange:phoneNumber:"); +late final _sel_play = objc.registerName("play"); +late final _sel_playAtTime_ = objc.registerName("playAtTime:"); +late final _sel_pointValue = objc.registerName("pointValue"); +late final _sel_pointerArrayWithStrongObjects = objc.registerName( + "pointerArrayWithStrongObjects", +); +late final _sel_pointerArrayWithWeakObjects = objc.registerName( + "pointerArrayWithWeakObjects", +); +late final _sel_pointerValue = objc.registerName("pointerValue"); +late final _sel_ppdFile = objc.registerName("ppdFile"); +late final _sel_preferredHardwareSampleRate = objc.registerName( + "preferredHardwareSampleRate", +); +late final _sel_preferredIOBufferDuration = objc.registerName( + "preferredIOBufferDuration", +); +late final _sel_preferredInputNumberOfChannels = objc.registerName( + "preferredInputNumberOfChannels", +); +late final _sel_preferredInputOrientation = objc.registerName( + "preferredInputOrientation", +); +late final _sel_preferredLanguages = objc.registerName("preferredLanguages"); +late final _sel_preferredMicrophoneInjectionMode = objc.registerName( + "preferredMicrophoneInjectionMode", +); +late final _sel_preferredOutputNumberOfChannels = objc.registerName( + "preferredOutputNumberOfChannels", +); +late final _sel_preferredSampleRate = objc.registerName("preferredSampleRate"); +late final _sel_prefersInterruptionOnRouteDisconnect = objc.registerName( + "prefersInterruptionOnRouteDisconnect", +); +late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); +late final _sel_presentedItemDidChange = objc.registerName( + "presentedItemDidChange", +); +late final _sel_presentedItemDidChangeUbiquityAttributes_ = objc.registerName( + "presentedItemDidChangeUbiquityAttributes:", +); +late final _sel_presentedItemDidGainVersion_ = objc.registerName( + "presentedItemDidGainVersion:", +); +late final _sel_presentedItemDidLoseVersion_ = objc.registerName( + "presentedItemDidLoseVersion:", +); +late final _sel_presentedItemDidMoveToURL_ = objc.registerName( + "presentedItemDidMoveToURL:", +); +late final _sel_presentedItemDidResolveConflictVersion_ = objc.registerName( + "presentedItemDidResolveConflictVersion:", +); +late final _sel_presentedItemOperationQueue = objc.registerName( + "presentedItemOperationQueue", +); +late final _sel_presentedItemURL = objc.registerName("presentedItemURL"); +late final _sel_presentedSubitemAtURL_didGainVersion_ = objc.registerName( + "presentedSubitemAtURL:didGainVersion:", +); +late final _sel_presentedSubitemAtURL_didLoseVersion_ = objc.registerName( + "presentedSubitemAtURL:didLoseVersion:", +); +late final _sel_presentedSubitemAtURL_didMoveToURL_ = objc.registerName( + "presentedSubitemAtURL:didMoveToURL:", +); +late final _sel_presentedSubitemAtURL_didResolveConflictVersion_ = objc + .registerName("presentedSubitemAtURL:didResolveConflictVersion:"); +late final _sel_presentedSubitemDidAppearAtURL_ = objc.registerName( + "presentedSubitemDidAppearAtURL:", +); +late final _sel_presentedSubitemDidChangeAtURL_ = objc.registerName( + "presentedSubitemDidChangeAtURL:", +); +late final _sel_preservationPriorityForTag_ = objc.registerName( + "preservationPriorityForTag:", +); +late final _sel_previewImageHandler = objc.registerName("previewImageHandler"); +late final _sel_primaryPresentedItemURL = objc.registerName( + "primaryPresentedItemURL", +); +late final _sel_printSession = objc.registerName("printSession"); +late final _sel_printSettings = objc.registerName("printSettings"); +late final _sel_printWindowWillClose_ = objc.registerName( + "printWindowWillClose:", +); +late final _sel_progress = objc.registerName("progress"); +late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( + "promisedItemResourceValuesForKeys:error:", +); +late final _sel_promptStyle = objc.registerName("promptStyle"); +late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); +late final _sel_propertyList = objc.registerName("propertyList"); +late final _sel_propertyListFromStringsFileFormat = objc.registerName( + "propertyListFromStringsFileFormat", +); +late final _sel_publicID = objc.registerName("publicID"); +late final _sel_quotationBeginDelimiter = objc.registerName( + "quotationBeginDelimiter", +); +late final _sel_quotationEndDelimiter = objc.registerName( + "quotationEndDelimiter", +); +late final _sel_quoteCheckingResultWithRange_replacementString_ = objc + .registerName("quoteCheckingResultWithRange:replacementString:"); +late final _sel_raise_format_ = objc.registerName("raise:format:"); +late final _sel_rangeAtIndex_ = objc.registerName("rangeAtIndex:"); +late final _sel_rangeOfFirstMatchInString_options_range_ = objc.registerName( + "rangeOfFirstMatchInString:options:range:", +); +late final _sel_rangeValue = objc.registerName("rangeValue"); +late final _sel_rangeWithName_ = objc.registerName("rangeWithName:"); +late final _sel_rate = objc.registerName("rate"); +late final _sel_readInBackgroundAndNotify = objc.registerName( + "readInBackgroundAndNotify", +); +late final _sel_readInBackgroundAndNotifyForModes_ = objc.registerName( + "readInBackgroundAndNotifyForModes:", +); +late final _sel_readToEndOfFileInBackgroundAndNotify = objc.registerName( + "readToEndOfFileInBackgroundAndNotify", +); +late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_ = objc + .registerName("readToEndOfFileInBackgroundAndNotifyForModes:"); +late final _sel_readabilityHandler = objc.registerName("readabilityHandler"); +late final _sel_rectValue = objc.registerName("rectValue"); +late final _sel_regionCode = objc.registerName("regionCode"); +late final _sel_regularExpression = objc.registerName("regularExpression"); +late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_ = + objc.registerName( + "regularExpressionCheckingResultWithRanges:count:regularExpression:", + ); +late final _sel_rejectProtectionSpaceAndContinueWithChallenge_ = objc + .registerName("rejectProtectionSpaceAndContinueWithChallenge:"); +late final _sel_relinquishPresentedItemToReader_ = objc.registerName( + "relinquishPresentedItemToReader:", +); +late final _sel_relinquishPresentedItemToWriter_ = objc.registerName( + "relinquishPresentedItemToWriter:", +); +late final _sel_remoteObjectProxy = objc.registerName("remoteObjectProxy"); +late final _sel_remoteObjectProxyWithErrorHandler_ = objc.registerName( + "remoteObjectProxyWithErrorHandler:", +); +late final _sel_removeAttribute_range_ = objc.registerName( + "removeAttribute:range:", +); +late final _sel_removeCachedResponseForDataTask_ = objc.registerName( + "removeCachedResponseForDataTask:", +); +late final _sel_removeCredential_forProtectionSpace_options_task_ = objc + .registerName("removeCredential:forProtectionSpace:options:task:"); +late final _sel_removeObserver_forKeyPath_ = objc.registerName( + "removeObserver:forKeyPath:", +); +late final _sel_removeObserver_forKeyPath_context_ = objc.registerName( + "removeObserver:forKeyPath:context:", +); +late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_ = objc + .registerName("removeObserver:fromObjectsAtIndexes:forKeyPath:"); +late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_ = objc + .registerName("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"); +late final _sel_removeValueAtIndex_fromPropertyWithKey_ = objc.registerName( + "removeValueAtIndex:fromPropertyWithKey:", +); +late final _sel_replaceCharactersInRange_withAttributedString_ = objc + .registerName("replaceCharactersInRange:withAttributedString:"); +late final _sel_replaceMatchesInString_options_range_withTemplate_ = objc + .registerName("replaceMatchesInString:options:range:withTemplate:"); +late final _sel_replaceOccurrencesOfString_withString_options_range_ = objc + .registerName("replaceOccurrencesOfString:withString:options:range:"); +late final _sel_replaceValueAtIndex_inPropertyWithKey_withValue_ = objc + .registerName("replaceValueAtIndex:inPropertyWithKey:withValue:"); +late final _sel_replacementCheckingResultWithRange_replacementString_ = objc + .registerName("replacementCheckingResultWithRange:replacementString:"); +late final _sel_replacementObjectForArchiver_ = objc.registerName( + "replacementObjectForArchiver:", +); +late final _sel_replacementObjectForCoder_ = objc.registerName( + "replacementObjectForCoder:", +); +late final _sel_replacementObjectForKeyedArchiver_ = objc.registerName( + "replacementObjectForKeyedArchiver:", +); +late final _sel_replacementObjectForPortCoder_ = objc.registerName( + "replacementObjectForPortCoder:", +); +late final _sel_replacementString = objc.registerName("replacementString"); +late final _sel_replacementStringForResult_inString_offset_template_ = objc + .registerName("replacementStringForResult:inString:offset:template:"); +late final _sel_requiresSecureCoding = objc.registerName( + "requiresSecureCoding", +); +late final _sel_resetSystemTimeZone = objc.registerName("resetSystemTimeZone"); +late final _sel_resourceDataUsingCache_ = objc.registerName( + "resourceDataUsingCache:", +); +late final _sel_restoreValuesAndReturnError_ = objc.registerName( + "restoreValuesAndReturnError:", +); +late final _sel_resultByAdjustingRangesWithOffset_ = objc.registerName( + "resultByAdjustingRangesWithOffset:", +); +late final _sel_roundingBehavior = objc.registerName("roundingBehavior"); +late final _sel_roundingMode = objc.registerName("roundingMode"); +late final _sel_run = objc.registerName("run"); +late final _sel_runMode_beforeDate_ = objc.registerName("runMode:beforeDate:"); +late final _sel_runUntilDate_ = objc.registerName("runUntilDate:"); +late final _sel_sampleRate = objc.registerName("sampleRate"); +late final _sel_savePresentedItemChangesWithCompletionHandler_ = objc + .registerName("savePresentedItemChangesWithCompletionHandler:"); +late final _sel_saveValuesAndReturnError_ = objc.registerName( + "saveValuesAndReturnError:", +); +late final _sel_scale = objc.registerName("scale"); +late final _sel_scanCharactersFromSet_intoString_ = objc.registerName( + "scanCharactersFromSet:intoString:", +); +late final _sel_scanDecimal_ = objc.registerName("scanDecimal:"); +late final _sel_scanDouble_ = objc.registerName("scanDouble:"); +late final _sel_scanFloat_ = objc.registerName("scanFloat:"); +late final _sel_scanHexDouble_ = objc.registerName("scanHexDouble:"); +late final _sel_scanHexFloat_ = objc.registerName("scanHexFloat:"); +late final _sel_scanHexInt_ = objc.registerName("scanHexInt:"); +late final _sel_scanHexLongLong_ = objc.registerName("scanHexLongLong:"); +late final _sel_scanInt_ = objc.registerName("scanInt:"); +late final _sel_scanInteger_ = objc.registerName("scanInteger:"); +late final _sel_scanLongLong_ = objc.registerName("scanLongLong:"); +late final _sel_scanString_intoString_ = objc.registerName( + "scanString:intoString:", +); +late final _sel_scanUnsignedLongLong_ = objc.registerName( + "scanUnsignedLongLong:", +); +late final _sel_scanUpToCharactersFromSet_intoString_ = objc.registerName( + "scanUpToCharactersFromSet:intoString:", +); +late final _sel_scanUpToString_intoString_ = objc.registerName( + "scanUpToString:intoString:", +); +late final _sel_scriptCode = objc.registerName("scriptCode"); +late final _sel_scriptingBeginsWith_ = objc.registerName( + "scriptingBeginsWith:", +); +late final _sel_scriptingContains_ = objc.registerName("scriptingContains:"); +late final _sel_scriptingEndsWith_ = objc.registerName("scriptingEndsWith:"); +late final _sel_scriptingIsEqualTo_ = objc.registerName("scriptingIsEqualTo:"); +late final _sel_scriptingIsGreaterThanOrEqualTo_ = objc.registerName( + "scriptingIsGreaterThanOrEqualTo:", +); +late final _sel_scriptingIsGreaterThan_ = objc.registerName( + "scriptingIsGreaterThan:", +); +late final _sel_scriptingIsLessThanOrEqualTo_ = objc.registerName( + "scriptingIsLessThanOrEqualTo:", +); +late final _sel_scriptingIsLessThan_ = objc.registerName( + "scriptingIsLessThan:", +); +late final _sel_scriptingProperties = objc.registerName("scriptingProperties"); +late final _sel_scriptingValueForSpecifier_ = objc.registerName( + "scriptingValueForSpecifier:", +); +late final _sel_secondaryAudioShouldBeSilencedHint = objc.registerName( + "secondaryAudioShouldBeSilencedHint", +); +late final _sel_secondsFromGMT = objc.registerName("secondsFromGMT"); +late final _sel_sendAsynchronousRequest_queue_completionHandler_ = objc + .registerName("sendAsynchronousRequest:queue:completionHandler:"); +late final _sel_sendSynchronousRequest_returningResponse_error_ = objc + .registerName("sendSynchronousRequest:returningResponse:error:"); +late final _sel_serverTrust = objc.registerName("serverTrust"); +late final _sel_set = objc.registerName("set"); +late final _sel_setAbbreviationDictionary_ = objc.registerName( + "setAbbreviationDictionary:", +); +late final _sel_setActive_error_ = objc.registerName("setActive:error:"); +late final _sel_setActive_withFlags_error_ = objc.registerName( + "setActive:withFlags:error:", +); +late final _sel_setActive_withOptions_error_ = objc.registerName( + "setActive:withOptions:error:", +); +late final _sel_setAggregatedIOPreference_error_ = objc.registerName( + "setAggregatedIOPreference:error:", +); +late final _sel_setAllHTTPHeaderFields_ = objc.registerName( + "setAllHTTPHeaderFields:", +); +late final _sel_setAttributedStringForNil_ = objc.registerName( + "setAttributedStringForNil:", +); +late final _sel_setAttributedStringForNotANumber_ = objc.registerName( + "setAttributedStringForNotANumber:", +); +late final _sel_setAttributedStringForZero_ = objc.registerName( + "setAttributedStringForZero:", +); +late final _sel_setAttributedString_ = objc.registerName( + "setAttributedString:", +); +late final _sel_setAttributesAsDictionary_ = objc.registerName( + "setAttributesAsDictionary:", +); +late final _sel_setChannelAssignments_ = objc.registerName( + "setChannelAssignments:", +); +late final _sel_setCredential_forProtectionSpace_task_ = objc.registerName( + "setCredential:forProtectionSpace:task:", +); +late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); +late final _sel_setCurrentDirectoryPath_ = objc.registerName( + "setCurrentDirectoryPath:", +); +late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); +late final _sel_setCustomPronoun_forLanguage_error_ = objc.registerName( + "setCustomPronoun:forLanguage:error:", +); +late final _sel_setDefaultCredential_forProtectionSpace_task_ = objc + .registerName("setDefaultCredential:forProtectionSpace:task:"); +late final _sel_setDefaultTimeZone_ = objc.registerName("setDefaultTimeZone:"); +late final _sel_setDelegate_ = objc.registerName("setDelegate:"); +late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); +late final _sel_setFormat_ = objc.registerName("setFormat:"); +late final _sel_setHTTPBodyStream_ = objc.registerName("setHTTPBodyStream:"); +late final _sel_setHTTPBody_ = objc.registerName("setHTTPBody:"); +late final _sel_setHTTPMethod_ = objc.registerName("setHTTPMethod:"); +late final _sel_setHTTPShouldHandleCookies_ = objc.registerName( + "setHTTPShouldHandleCookies:", +); +late final _sel_setHTTPShouldUsePipelining_ = objc.registerName( + "setHTTPShouldUsePipelining:", +); +late final _sel_setHasThousandSeparators_ = objc.registerName( + "setHasThousandSeparators:", +); +late final _sel_setInputDataSource_error_ = objc.registerName( + "setInputDataSource:error:", +); +late final _sel_setInputGain_error_ = objc.registerName("setInputGain:error:"); +late final _sel_setIntendedSpatialExperience_ = objc.registerName( + "setIntendedSpatialExperience:", +); +late final _sel_setKeys_triggerChangeNotificationsForDependentKey_ = objc + .registerName("setKeys:triggerChangeNotificationsForDependentKey:"); +late final _sel_setLaunchPath_ = objc.registerName("setLaunchPath:"); +late final _sel_setLocalizesFormat_ = objc.registerName("setLocalizesFormat:"); +late final _sel_setMeteringEnabled_ = objc.registerName("setMeteringEnabled:"); +late final _sel_setNilValueForKey_ = objc.registerName("setNilValueForKey:"); +late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); +late final _sel_setObjectZone_ = objc.registerName("setObjectZone:"); +late final _sel_setObservationInfo_ = objc.registerName("setObservationInfo:"); +late final _sel_setOutputDataSource_error_ = objc.registerName( + "setOutputDataSource:error:", +); +late final _sel_setPan_ = objc.registerName("setPan:"); +late final _sel_setPreferredHardwareSampleRate_error_ = objc.registerName( + "setPreferredHardwareSampleRate:error:", +); +late final _sel_setPreferredIOBufferDuration_error_ = objc.registerName( + "setPreferredIOBufferDuration:error:", +); +late final _sel_setPreferredInputNumberOfChannels_error_ = objc.registerName( + "setPreferredInputNumberOfChannels:error:", +); +late final _sel_setPreferredInputOrientation_error_ = objc.registerName( + "setPreferredInputOrientation:error:", +); +late final _sel_setPreferredMicrophoneInjectionMode_error_ = objc.registerName( + "setPreferredMicrophoneInjectionMode:error:", +); +late final _sel_setPreferredOutputNumberOfChannels_error_ = objc.registerName( + "setPreferredOutputNumberOfChannels:error:", +); +late final _sel_setPreferredSampleRate_error_ = objc.registerName( + "setPreferredSampleRate:error:", +); +late final _sel_setPrefersInterruptionOnRouteDisconnect_error_ = objc + .registerName("setPrefersInterruptionOnRouteDisconnect:error:"); +late final _sel_setPreservationPriority_forTags_ = objc.registerName( + "setPreservationPriority:forTags:", +); +late final _sel_setPreviewImageHandler_ = objc.registerName( + "setPreviewImageHandler:", +); +late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); +late final _sel_setRate_ = objc.registerName("setRate:"); +late final _sel_setReadabilityHandler_ = objc.registerName( + "setReadabilityHandler:", +); +late final _sel_setResourceData_ = objc.registerName("setResourceData:"); +late final _sel_setRoundingBehavior_ = objc.registerName( + "setRoundingBehavior:", +); +late final _sel_setScriptingProperties_ = objc.registerName( + "setScriptingProperties:", +); +late final _sel_setSharedObservers_ = objc.registerName("setSharedObservers:"); +late final _sel_setString_ = objc.registerName("setString:"); +late final _sel_setSupportsMultichannelContent_error_ = objc.registerName( + "setSupportsMultichannelContent:error:", +); +late final _sel_setThousandSeparator_ = objc.registerName( + "setThousandSeparator:", +); +late final _sel_setValue_forHTTPHeaderField_ = objc.registerName( + "setValue:forHTTPHeaderField:", +); +late final _sel_setValue_forKeyPath_ = objc.registerName( + "setValue:forKeyPath:", +); +late final _sel_setValue_forKey_ = objc.registerName("setValue:forKey:"); +late final _sel_setValue_forUndefinedKey_ = objc.registerName( + "setValue:forUndefinedKey:", +); +late final _sel_setValuesForKeysWithDictionary_ = objc.registerName( + "setValuesForKeysWithDictionary:", +); +late final _sel_setVersion_ = objc.registerName("setVersion:"); +late final _sel_setVolume_ = objc.registerName("setVolume:"); +late final _sel_setVolume_fadeDuration_ = objc.registerName( + "setVolume:fadeDuration:", +); +late final _sel_setWithArray_ = objc.registerName("setWithArray:"); +late final _sel_setWithCapacity_ = objc.registerName("setWithCapacity:"); +late final _sel_setWithObject_ = objc.registerName("setWithObject:"); +late final _sel_setWithObjects_ = objc.registerName("setWithObjects:"); +late final _sel_setWithObjects_count_ = objc.registerName( + "setWithObjects:count:", +); +late final _sel_setWithSet_ = objc.registerName("setWithSet:"); +late final _sel_setWriteabilityHandler_ = objc.registerName( + "setWriteabilityHandler:", +); +late final _sel_settings = objc.registerName("settings"); +late final _sel_sharedKeySetForKeys_ = objc.registerName( + "sharedKeySetForKeys:", +); +late final _sel_shouldHide = objc.registerName("shouldHide"); +late final _sel_shouldPrint = objc.registerName("shouldPrint"); +late final _sel_shouldShowHelp = objc.registerName("shouldShowHelp"); +late final _sel_sizeValue = objc.registerName("sizeValue"); +late final _sel_sortUsingDescriptors_ = objc.registerName( + "sortUsingDescriptors:", +); +late final _sel_sortedArrayUsingDescriptors_ = objc.registerName( + "sortedArrayUsingDescriptors:", +); +late final _sel_spellCheckingResultWithRange_ = objc.registerName( + "spellCheckingResultWithRange:", +); +late final _sel_spellServer_checkGrammarInString_language_details_ = objc + .registerName("spellServer:checkGrammarInString:language:details:"); +late final _sel_spellServer_checkString_offset_types_options_orthography_wordCount_ = + objc.registerName( + "spellServer:checkString:offset:types:options:orthography:wordCount:", + ); +late final _sel_spellServer_didForgetWord_inLanguage_ = objc.registerName( + "spellServer:didForgetWord:inLanguage:", +); +late final _sel_spellServer_didLearnWord_inLanguage_ = objc.registerName( + "spellServer:didLearnWord:inLanguage:", +); +late final _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_ = + objc.registerName( + "spellServer:findMisspelledWordInString:language:wordCount:countOnly:", + ); +late final _sel_spellServer_recordResponse_toCorrection_forWord_language_ = objc + .registerName("spellServer:recordResponse:toCorrection:forWord:language:"); +late final _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_ = + objc.registerName( + "spellServer:suggestCompletionsForPartialWordRange:inString:language:", + ); +late final _sel_spellServer_suggestGuessesForWord_inLanguage_ = objc + .registerName("spellServer:suggestGuessesForWord:inLanguage:"); +late final _sel_stop = objc.registerName("stop"); +late final _sel_storeCachedResponse_forDataTask_ = objc.registerName( + "storeCachedResponse:forDataTask:", +); +late final _sel_storeCookies_forTask_ = objc.registerName( + "storeCookies:forTask:", +); +late final _sel_storedValueForKey_ = objc.registerName("storedValueForKey:"); +late final _sel_stringByAbbreviatingWithTildeInPath = objc.registerName( + "stringByAbbreviatingWithTildeInPath", +); +late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_ = objc + .registerName("stringByAddingPercentEncodingWithAllowedCharacters:"); +late final _sel_stringByAddingPercentEscapesUsingEncoding_ = objc.registerName( + "stringByAddingPercentEscapesUsingEncoding:", +); +late final _sel_stringByAppendingPathComponent_ = objc.registerName( + "stringByAppendingPathComponent:", +); +late final _sel_stringByAppendingPathExtension_ = objc.registerName( + "stringByAppendingPathExtension:", +); +late final _sel_stringByDeletingLastPathComponent = objc.registerName( + "stringByDeletingLastPathComponent", +); +late final _sel_stringByDeletingPathExtension = objc.registerName( + "stringByDeletingPathExtension", +); +late final _sel_stringByExpandingTildeInPath = objc.registerName( + "stringByExpandingTildeInPath", +); +late final _sel_stringByRemovingPercentEncoding = objc.registerName( + "stringByRemovingPercentEncoding", +); +late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_ = + objc.registerName( + "stringByReplacingMatchesInString:options:range:withTemplate:", + ); +late final _sel_stringByReplacingPercentEscapesUsingEncoding_ = objc + .registerName("stringByReplacingPercentEscapesUsingEncoding:"); +late final _sel_stringByResolvingSymlinksInPath = objc.registerName( + "stringByResolvingSymlinksInPath", +); +late final _sel_stringByStandardizingPath = objc.registerName( + "stringByStandardizingPath", +); +late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_ = + objc.registerName( + "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:", + ); +late final _sel_stringWithCString_ = objc.registerName("stringWithCString:"); +late final _sel_stringWithCString_length_ = objc.registerName( + "stringWithCString:length:", +); +late final _sel_stringWithCapacity_ = objc.registerName("stringWithCapacity:"); +late final _sel_stringWithContentsOfFile_ = objc.registerName( + "stringWithContentsOfFile:", +); +late final _sel_stringWithContentsOfURL_ = objc.registerName( + "stringWithContentsOfURL:", +); +late final _sel_stringsByAppendingPaths_ = objc.registerName( + "stringsByAppendingPaths:", +); +late final _sel_strongObjectsPointerArray = objc.registerName( + "strongObjectsPointerArray", +); +late final _sel_summaryInfo = objc.registerName("summaryInfo"); +late final _sel_supportedOutputChannelLayouts = objc.registerName( + "supportedOutputChannelLayouts", +); +late final _sel_supportedPPDOptionKeys = objc.registerName( + "supportedPPDOptionKeys", +); +late final _sel_supportsMultichannelContent = objc.registerName( + "supportsMultichannelContent", +); +late final _sel_symbolicLinkDestination = objc.registerName( + "symbolicLinkDestination", +); +late final _sel_synchronousRemoteObjectProxyWithErrorHandler_ = objc + .registerName("synchronousRemoteObjectProxyWithErrorHandler:"); +late final _sel_systemID = objc.registerName("systemID"); +late final _sel_systemLocale = objc.registerName("systemLocale"); +late final _sel_systemTimeZone = objc.registerName("systemTimeZone"); +late final _sel_systemVersion = objc.registerName("systemVersion"); +late final _sel_takeStoredValue_forKey_ = objc.registerName( + "takeStoredValue:forKey:", +); +late final _sel_takeValue_forKeyPath_ = objc.registerName( + "takeValue:forKeyPath:", +); +late final _sel_takeValue_forKey_ = objc.registerName("takeValue:forKey:"); +late final _sel_takeValuesFromDictionary_ = objc.registerName( + "takeValuesFromDictionary:", +); +late final _sel_task = objc.registerName("task"); +late final _sel_temporaryDirectory = objc.registerName("temporaryDirectory"); +late final _sel_thermalState = objc.registerName("thermalState"); +late final _sel_thousandSeparator = objc.registerName("thousandSeparator"); +late final _sel_timeZone = objc.registerName("timeZone"); +late final _sel_timeZoneDataVersion = objc.registerName("timeZoneDataVersion"); +late final _sel_toManyRelationshipKeys = objc.registerName( + "toManyRelationshipKeys", +); +late final _sel_toOneRelationshipKeys = objc.registerName( + "toOneRelationshipKeys", +); +late final _sel_transitInformationCheckingResultWithRange_components_ = objc + .registerName("transitInformationCheckingResultWithRange:components:"); +late final _sel_unableToSetNilForKey_ = objc.registerName( + "unableToSetNilForKey:", +); +late final _sel_unarchiverDidFinish_ = objc.registerName( + "unarchiverDidFinish:", +); +late final _sel_unarchiverWillFinish_ = objc.registerName( + "unarchiverWillFinish:", +); +late final _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_ = objc + .registerName("unarchiver:cannotDecodeObjectOfClassName:originalClasses:"); +late final _sel_unarchiver_didDecodeObject_ = objc.registerName( + "unarchiver:didDecodeObject:", +); +late final _sel_unarchiver_willReplaceObject_withObject_ = objc.registerName( + "unarchiver:willReplaceObject:withObject:", +); +late final _sel_unlock = objc.registerName("unlock"); +late final _sel_updateFromPath_ = objc.registerName("updateFromPath:"); +late final _sel_updateMeters = objc.registerName("updateMeters"); +late final _sel_uploadTaskWithRequest_fromData_completionHandler_ = objc + .registerName("uploadTaskWithRequest:fromData:completionHandler:"); +late final _sel_uploadTaskWithRequest_fromFile_completionHandler_ = objc + .registerName("uploadTaskWithRequest:fromFile:completionHandler:"); +late final _sel_uploadTaskWithResumeData_completionHandler_ = objc.registerName( + "uploadTaskWithResumeData:completionHandler:", +); +late final _sel_url = objc.registerName("url"); +late final _sel_useCredential_forAuthenticationChallenge_ = objc.registerName( + "useCredential:forAuthenticationChallenge:", +); +late final _sel_useStoredAccessor = objc.registerName("useStoredAccessor"); +late final _sel_user = objc.registerName("user"); +late final _sel_userActivityWasContinued_ = objc.registerName( + "userActivityWasContinued:", +); +late final _sel_userActivityWillSave_ = objc.registerName( + "userActivityWillSave:", +); +late final _sel_userActivity_didReceiveInputStream_outputStream_ = objc + .registerName("userActivity:didReceiveInputStream:outputStream:"); +late final _sel_userMorphology = objc.registerName("userMorphology"); +late final _sel_userName = objc.registerName("userName"); +late final _sel_userNotificationCenter_didActivateNotification_ = objc + .registerName("userNotificationCenter:didActivateNotification:"); +late final _sel_userNotificationCenter_didDeliverNotification_ = objc + .registerName("userNotificationCenter:didDeliverNotification:"); +late final _sel_userNotificationCenter_shouldPresentNotification_ = objc + .registerName("userNotificationCenter:shouldPresentNotification:"); +late final _sel_usesMetricSystem = objc.registerName("usesMetricSystem"); +late final _sel_validateValue_forKeyPath_error_ = objc.registerName( + "validateValue:forKeyPath:error:", +); +late final _sel_validateValue_forKey_error_ = objc.registerName( + "validateValue:forKey:error:", +); +late final _sel_valueAtIndex_inPropertyWithKey_ = objc.registerName( + "valueAtIndex:inPropertyWithKey:", +); +late final _sel_valueForHTTPHeaderField_ = objc.registerName( + "valueForHTTPHeaderField:", +); +late final _sel_valueForKeyPath_ = objc.registerName("valueForKeyPath:"); +late final _sel_valueForKey_ = objc.registerName("valueForKey:"); +late final _sel_valueForUndefinedKey_ = objc.registerName( + "valueForUndefinedKey:", +); +late final _sel_valueWithBytes_objCType_ = objc.registerName( + "valueWithBytes:objCType:", +); +late final _sel_valueWithEdgeInsets_ = objc.registerName( + "valueWithEdgeInsets:", +); +late final _sel_valueWithName_inPropertyWithKey_ = objc.registerName( + "valueWithName:inPropertyWithKey:", +); +late final _sel_valueWithNonretainedObject_ = objc.registerName( + "valueWithNonretainedObject:", +); +late final _sel_valueWithPoint_ = objc.registerName("valueWithPoint:"); +late final _sel_valueWithPointer_ = objc.registerName("valueWithPointer:"); +late final _sel_valueWithRange_ = objc.registerName("valueWithRange:"); +late final _sel_valueWithRect_ = objc.registerName("valueWithRect:"); +late final _sel_valueWithSize_ = objc.registerName("valueWithSize:"); +late final _sel_valueWithUniqueID_inPropertyWithKey_ = objc.registerName( + "valueWithUniqueID:inPropertyWithKey:", +); +late final _sel_value_withObjCType_ = objc.registerName("value:withObjCType:"); +late final _sel_valuesForKeys_ = objc.registerName("valuesForKeys:"); +late final _sel_variantCode = objc.registerName("variantCode"); +late final _sel_variantFittingPresentationWidth_ = objc.registerName( + "variantFittingPresentationWidth:", +); +late final _sel_version = objc.registerName("version"); +late final _sel_volume = objc.registerName("volume"); +late final _sel_waitForDataInBackgroundAndNotify = objc.registerName( + "waitForDataInBackgroundAndNotify", +); +late final _sel_waitForDataInBackgroundAndNotifyForModes_ = objc.registerName( + "waitForDataInBackgroundAndNotifyForModes:", +); +late final _sel_waitUntilExit = objc.registerName("waitUntilExit"); +late final _sel_weakObjectsPointerArray = objc.registerName( + "weakObjectsPointerArray", +); +late final _sel_willChangePPDOptionKeyValue_ppdChoice_ = objc.registerName( + "willChangePPDOptionKeyValue:ppdChoice:", +); +late final _sel_willChangeValueForKey_ = objc.registerName( + "willChangeValueForKey:", +); +late final _sel_willChangeValueForKey_withSetMutation_usingObjects_ = objc + .registerName("willChangeValueForKey:withSetMutation:usingObjects:"); +late final _sel_willChange_valuesAtIndexes_forKey_ = objc.registerName( + "willChange:valuesAtIndexes:forKey:", +); +late final _sel_willShow = objc.registerName("willShow"); +late final _sel_windowsLocaleCodeFromLocaleIdentifier_ = objc.registerName( + "windowsLocaleCodeFromLocaleIdentifier:", +); +late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( + "writableTypeIdentifiersForItemProvider", +); +late final _sel_writeToFile_atomically_ = objc.registerName( + "writeToFile:atomically:", +); +late final _sel_writeToFile_atomically_updateFilenames_ = objc.registerName( + "writeToFile:atomically:updateFilenames:", +); +late final _sel_writeToURL_atomically_ = objc.registerName( + "writeToURL:atomically:", +); +late final _sel_writeabilityHandler = objc.registerName("writeabilityHandler"); + +final class _xlocale extends ffi.Opaque {} + +final class _xpc_bool_s extends ffi.Opaque {} + +final class _xpc_dictionary_s extends ffi.Opaque {} + +final class _xpc_type_s extends ffi.Opaque {} + +const int abbrevDate = 2; + +const int abortErr = -27; + +final class accessx_descriptor extends ffi.Struct { + @ffi.UnsignedInt() + external int ad_name_offset; + + @ffi.Int() + external int ad_flags; + + @ffi.Array.multi([2]) + external ffi.Array ad_pad; +} + +enum acl_entry_id_t { + ACL_FIRST_ENTRY(0), + ACL_NEXT_ENTRY(-1), + ACL_LAST_ENTRY(-2); + + final int value; + const acl_entry_id_t(this.value); + + static acl_entry_id_t fromValue(int value) => switch (value) { + 0 => ACL_FIRST_ENTRY, + -1 => ACL_NEXT_ENTRY, + -2 => ACL_LAST_ENTRY, + _ => throw ArgumentError('Unknown value for acl_entry_id_t: $value'), + }; +} + +typedef acl_entry_t = ffi.Pointer<_acl_entry>; + +enum acl_flag_t { + ACL_FLAG_DEFER_INHERIT(1), + ACL_FLAG_NO_INHERIT(131072), + ACL_ENTRY_INHERITED(16), + ACL_ENTRY_FILE_INHERIT(32), + ACL_ENTRY_DIRECTORY_INHERIT(64), + ACL_ENTRY_LIMIT_INHERIT(128), + ACL_ENTRY_ONLY_INHERIT(256); + + final int value; + const acl_flag_t(this.value); + + static acl_flag_t fromValue(int value) => switch (value) { + 1 => ACL_FLAG_DEFER_INHERIT, + 131072 => ACL_FLAG_NO_INHERIT, + 16 => ACL_ENTRY_INHERITED, + 32 => ACL_ENTRY_FILE_INHERIT, + 64 => ACL_ENTRY_DIRECTORY_INHERIT, + 128 => ACL_ENTRY_LIMIT_INHERIT, + 256 => ACL_ENTRY_ONLY_INHERIT, + _ => throw ArgumentError('Unknown value for acl_flag_t: $value'), + }; +} + +typedef acl_flagset_t = ffi.Pointer<_acl_flagset>; + +enum acl_perm_t { + ACL_READ_DATA(2), + ACL_WRITE_DATA(4), + ACL_EXECUTE(8), + ACL_DELETE(16), + ACL_APPEND_DATA(32), + ACL_DELETE_CHILD(64), + ACL_READ_ATTRIBUTES(128), + ACL_WRITE_ATTRIBUTES(256), + ACL_READ_EXTATTRIBUTES(512), + ACL_WRITE_EXTATTRIBUTES(1024), + ACL_READ_SECURITY(2048), + ACL_WRITE_SECURITY(4096), + ACL_CHANGE_OWNER(8192), + ACL_SYNCHRONIZE(1048576); + + static const ACL_LIST_DIRECTORY = ACL_READ_DATA; + static const ACL_ADD_FILE = ACL_WRITE_DATA; + static const ACL_SEARCH = ACL_EXECUTE; + static const ACL_ADD_SUBDIRECTORY = ACL_APPEND_DATA; + + final int value; + const acl_perm_t(this.value); + + static acl_perm_t fromValue(int value) => switch (value) { + 2 => ACL_READ_DATA, + 4 => ACL_WRITE_DATA, + 8 => ACL_EXECUTE, + 16 => ACL_DELETE, + 32 => ACL_APPEND_DATA, + 64 => ACL_DELETE_CHILD, + 128 => ACL_READ_ATTRIBUTES, + 256 => ACL_WRITE_ATTRIBUTES, + 512 => ACL_READ_EXTATTRIBUTES, + 1024 => ACL_WRITE_EXTATTRIBUTES, + 2048 => ACL_READ_SECURITY, + 4096 => ACL_WRITE_SECURITY, + 8192 => ACL_CHANGE_OWNER, + 1048576 => ACL_SYNCHRONIZE, + _ => throw ArgumentError('Unknown value for acl_perm_t: $value'), + }; + + @override + String toString() { + if (this == ACL_READ_DATA) + return "acl_perm_t.ACL_READ_DATA, acl_perm_t.ACL_LIST_DIRECTORY"; + if (this == ACL_WRITE_DATA) + return "acl_perm_t.ACL_WRITE_DATA, acl_perm_t.ACL_ADD_FILE"; + if (this == ACL_EXECUTE) + return "acl_perm_t.ACL_EXECUTE, acl_perm_t.ACL_SEARCH"; + if (this == ACL_APPEND_DATA) + return "acl_perm_t.ACL_APPEND_DATA, acl_perm_t.ACL_ADD_SUBDIRECTORY"; + return super.toString(); + } +} + +typedef acl_permset_mask_t = u_int64_t; +typedef acl_permset_t = ffi.Pointer<_acl_permset>; +typedef acl_t = ffi.Pointer<_acl>; + +enum acl_tag_t { + ACL_UNDEFINED_TAG(0), + ACL_EXTENDED_ALLOW(1), + ACL_EXTENDED_DENY(2); + + final int value; + const acl_tag_t(this.value); + + static acl_tag_t fromValue(int value) => switch (value) { + 0 => ACL_UNDEFINED_TAG, + 1 => ACL_EXTENDED_ALLOW, + 2 => ACL_EXTENDED_DENY, + _ => throw ArgumentError('Unknown value for acl_tag_t: $value'), + }; +} + +enum acl_type_t { + ACL_TYPE_EXTENDED(256), + ACL_TYPE_ACCESS(0), + ACL_TYPE_DEFAULT(1), + ACL_TYPE_AFS(2), + ACL_TYPE_CODA(3), + ACL_TYPE_NTFS(4), + ACL_TYPE_NWFS(5); + + final int value; + const acl_type_t(this.value); + + static acl_type_t fromValue(int value) => switch (value) { + 256 => ACL_TYPE_EXTENDED, + 0 => ACL_TYPE_ACCESS, + 1 => ACL_TYPE_DEFAULT, + 2 => ACL_TYPE_AFS, + 3 => ACL_TYPE_CODA, + 4 => ACL_TYPE_NTFS, + 5 => ACL_TYPE_NWFS, + _ => throw ArgumentError('Unknown value for acl_type_t: $value'), + }; +} + +const int activDev = 5; + +@Deprecated('Deprecated') +const int acuteUprA = 231; + +@Deprecated('Deprecated') +const int acuteUprI = 234; + +@Deprecated('Deprecated') +const int acuteUprO = 238; + +@Deprecated('Deprecated') +const int acuteUprU = 242; + +const int addRefFailed = -195; + +const int addResFailed = -194; + +typedef addr64_t = ffi.Uint64; +typedef Dartaddr64_t = int; + +final class addrinfo extends ffi.Struct { + @ffi.Int() + external int ai_flags; + + @ffi.Int() + external int ai_family; + + @ffi.Int() + external int ai_socktype; + + @ffi.Int() + external int ai_protocol; + + @socklen_t() + external int ai_addrlen; + + external ffi.Pointer ai_canonname; + + external ffi.Pointer ai_addr; + + external ffi.Pointer ai_next; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ai_flags, + required int ai_family, + required int ai_socktype, + required int ai_protocol, + required int ai_addrlen, + required ffi.Pointer ai_canonname, + required ffi.Pointer ai_addr, + required ffi.Pointer ai_next, + }) => $allocator() + ..ref.ai_flags = ai_flags + ..ref.ai_family = ai_family + ..ref.ai_socktype = ai_socktype + ..ref.ai_protocol = ai_protocol + ..ref.ai_addrlen = ai_addrlen + ..ref.ai_canonname = ai_canonname + ..ref.ai_addr = ai_addr + ..ref.ai_next = ai_next; +} + +const int aeBuildSyntaxBadData = 12; + +const int aeBuildSyntaxBadDesc = 11; + +const int aeBuildSyntaxBadEOF = 2; + +const int aeBuildSyntaxBadHex = 6; + +const int aeBuildSyntaxBadNegative = 4; + +const int aeBuildSyntaxBadToken = 1; + +const int aeBuildSyntaxCoercedList = 18; + +const int aeBuildSyntaxMissingQuote = 5; + +const int aeBuildSyntaxNoCloseBrace = 15; + +const int aeBuildSyntaxNoCloseBracket = 14; + +const int aeBuildSyntaxNoCloseHex = 8; + +const int aeBuildSyntaxNoCloseParen = 13; + +const int aeBuildSyntaxNoCloseString = 10; + +const int aeBuildSyntaxNoColon = 17; + +const int aeBuildSyntaxNoEOF = 3; + +const int aeBuildSyntaxNoErr = 0; + +const int aeBuildSyntaxNoKey = 16; + +const int aeBuildSyntaxOddHex = 7; + +const int aeBuildSyntaxUncoercedDoubleAt = 19; + +const int aeBuildSyntaxUncoercedHex = 9; + +const int afpAccessDenied = -5000; + +const int afpAlreadyLoggedInErr = -5047; + +const int afpAlreadyMounted = -5062; + +const int afpAuthContinue = -5001; + +const int afpBadDirIDType = -5060; + +const int afpBadIDErr = -5039; + +const int afpBadUAM = -5002; + +const int afpBadVersNum = -5003; + +const int afpBitmapErr = -5004; + +const int afpCallNotAllowed = -5048; + +const int afpCallNotSupported = -5024; + +const int afpCantMountMoreSrvre = -5061; + +const int afpCantMove = -5005; + +const int afpCantRename = -5028; + +const int afpCatalogChanged = -5037; + +const int afpContainsSharedErr = -5033; + +const int afpDenyConflict = -5006; + +const int afpDiffVolErr = -5036; + +const int afpDirNotEmpty = -5007; + +const int afpDirNotFound = -5029; + +const int afpDiskFull = -5008; + +const int afpEofError = -5009; + +const int afpFileBusy = -5010; + +const int afpFlatVol = -5011; + +const int afpIDExists = -5035; + +const int afpIDNotFound = -5034; + +const int afpIconTypeError = -5030; + +const int afpInsideSharedErr = -5043; + +const int afpInsideTrashErr = -5044; + +const int afpItemNotFound = -5012; + +const int afpLockErr = -5013; + +const int afpMiscErr = -5014; + +const int afpNoMoreLocks = -5015; + +const int afpNoServer = -5016; + +const int afpObjectExists = -5017; + +const int afpObjectLocked = -5032; + +const int afpObjectNotFound = -5018; + +const int afpObjectTypeErr = -5025; + +const int afpParmErr = -5019; + +const int afpPwdExpiredErr = -5042; + +const int afpPwdNeedsChangeErr = -5045; + +const int afpPwdPolicyErr = -5046; + +const int afpPwdSameErr = -5040; + +const int afpPwdTooShortErr = -5041; + +const int afpRangeNotLocked = -5020; + +const int afpRangeOverlap = -5021; + +const int afpSameNodeErr = -5063; + +const int afpSameObjectErr = -5038; + +const int afpServerGoingDown = -5027; + +const int afpSessClosed = -5022; + +const int afpTooManyFilesOpen = -5026; + +const int afpUserNotAuth = -5023; + +const int afpVolLocked = -5031; + +typedef alarm_port_t = alarm_t; +typedef alarm_t = mach_port_t; +typedef alarm_type_t = ffi.Int; +typedef Dartalarm_type_t = int; + +const int alphaStage = 64; + +const int appIsDaemon = -606; + +const int appMemFullErr = -605; + +const int appModeErr = -602; + +const int appVersionTooOld = -876; + +@Deprecated('Deprecated') +const int appleLogo = 240; + +const int appleMenuFolderIconResource = -3982; + +typedef arcade_register_t = mach_port_t; +typedef arm_debug_state32_t = __darwin_arm_debug_state32; +typedef arm_debug_state64_t = __darwin_arm_debug_state64; +typedef arm_debug_state_t = __arm_legacy_debug_state; +typedef arm_exception_state32_t = __darwin_arm_exception_state; +typedef arm_exception_state64_t = __darwin_arm_exception_state64; +typedef arm_exception_state64_v2_t = __darwin_arm_exception_state64_v2; +typedef arm_exception_state_t = __darwin_arm_exception_state; +typedef arm_neon_state32_t = __darwin_arm_neon_state; +typedef arm_neon_state64_t = __darwin_arm_neon_state64; +typedef arm_neon_state_t = __darwin_arm_neon_state; +typedef arm_pagein_state_t = __arm_pagein_state; +typedef arm_sme2_state_t = __darwin_arm_sme2_state; +typedef arm_sme_state_t = __darwin_arm_sme_state; +typedef arm_sme_za_state_t = __darwin_arm_sme_za_state; + +final class arm_state_hdr extends ffi.Struct { + @ffi.Uint32() + external int flavor; + + @ffi.Uint32() + external int count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flavor, + required int count, + }) => $allocator() + ..ref.flavor = flavor + ..ref.count = count; +} + +typedef arm_state_hdr_t = arm_state_hdr; +typedef arm_sve_p_state_t = __darwin_arm_sve_p_state; +typedef arm_sve_z_state_t = __darwin_arm_sve_z_state; +typedef arm_thread_state32_t = __darwin_arm_thread_state; +typedef arm_thread_state64_t = __darwin_arm_thread_state64; +typedef arm_thread_state_t = __darwin_arm_thread_state; + +final class arm_unified_thread_state extends ffi.Struct { + external arm_state_hdr_t ash; + + external UnnamedUnion$15 uts; +} + +typedef arm_unified_thread_state_t = arm_unified_thread_state; +typedef arm_vfp_state_t = __darwin_arm_vfp_state; +@Deprecated('Deprecated') +const int asiAliasName = 0; + +@Deprecated('Deprecated') +const int asiParentName = 1; + +@Deprecated('Deprecated') +const int asiServerName = -2; + +@Deprecated('Deprecated') +const int asiVolumeName = -1; + +@Deprecated('Deprecated') +const int asiZoneName = -3; + +const int aspBadVersNum = -1066; + +const int aspBufTooSmall = -1067; + +const int aspNoAck = -1075; + +const int aspNoMoreSess = -1068; + +const int aspNoServers = -1069; + +const int aspParamErr = -1070; + +const int aspServerBusy = -1071; + +const int aspSessClosed = -1072; + +const int aspSizeErr = -1073; + +const int aspTooMany = -1074; + +const int atAbsoluteCenter = 5; + +const int atBottom = 3; + +const int atBottomLeft = 11; + +const int atBottomRight = 15; + +const int atCenterBottom = 7; + +const int atCenterLeft = 9; + +const int atCenterRight = 13; + +const int atCenterTop = 6; + +const int atHorizontalCenter = 4; + +const int atLeft = 8; + +const int atNone = 0; + +const int atRight = 12; + +const int atTop = 2; + +const int atTopLeft = 10; + +const int atTopRight = 14; + +const int atVerticalCenter = 1; + +const int atomIndexInvalidErr = -2104; + +const int atomsNotOfSameTypeErr = -2103; + +const int atpBadRsp = -3107; + +const int atpLenErr = -3106; + +typedef au_asflgs_t = u_int64_t; +typedef au_asid_t = pid_t; +typedef au_class_t = u_int32_t; +typedef au_ctlmode_t = ffi.UnsignedChar; +typedef Dartau_ctlmode_t = int; +typedef au_emod_t = u_int16_t; + +final class au_evclass_map extends ffi.Struct { + @au_event_t() + external int ec_number; + + @au_class_t() + external int ec_class; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ec_number, + required int ec_class, + }) => $allocator() + ..ref.ec_number = ec_number + ..ref.ec_class = ec_class; +} + +typedef au_evclass_map_t = au_evclass_map; +typedef au_event_t = u_int16_t; + +final class au_expire_after extends ffi.Struct { + @time_t() + external int age; + + @ffi.Size() + external int size; + + @ffi.UnsignedChar() + external int op_type; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int age, + required int size, + required int op_type, + }) => $allocator() + ..ref.age = age + ..ref.size = size + ..ref.op_type = op_type; +} + +typedef au_expire_after_t = au_expire_after; +typedef au_fstat_t = audit_fstat; +typedef au_id_t = uid_t; + +final class au_mask extends ffi.Struct { + @ffi.UnsignedInt() + external int am_success; + + @ffi.UnsignedInt() + external int am_failure; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int am_success, + required int am_failure, + }) => $allocator() + ..ref.am_success = am_success + ..ref.am_failure = am_failure; +} + +typedef au_mask_t = au_mask; + +final class au_qctrl extends ffi.Struct { + @ffi.Int() + external int aq_hiwater; + + @ffi.Int() + external int aq_lowater; + + @ffi.Int() + external int aq_bufsz; + + @ffi.Int() + external int aq_delay; + + @ffi.Int() + external int aq_minfree; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int aq_hiwater, + required int aq_lowater, + required int aq_bufsz, + required int aq_delay, + required int aq_minfree, + }) => $allocator() + ..ref.aq_hiwater = aq_hiwater + ..ref.aq_lowater = aq_lowater + ..ref.aq_bufsz = aq_bufsz + ..ref.aq_delay = aq_delay + ..ref.aq_minfree = aq_minfree; +} + +typedef au_qctrl_t = au_qctrl; + +final class au_session extends ffi.Struct { + external ffi.Pointer as_aia_p; + + external au_mask_t as_mask; +} + +typedef au_session_t = au_session; +typedef au_stat_t = audit_stat; + +final class au_tid extends ffi.Struct { + @dev_t() + external int port; + + @u_int32_t() + external int machine; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int port, + required int machine, + }) => $allocator() + ..ref.port = port + ..ref.machine = machine; +} + +final class au_tid_addr extends ffi.Struct { + @dev_t() + external int at_port; + + @u_int32_t() + external int at_type; + + @ffi.Array.multi([4]) + external ffi.Array at_addr; +} + +typedef au_tid_addr_t = au_tid_addr; +typedef au_tid_t = au_tid; + +final class au_token extends ffi.Opaque {} + +final class audit_fstat extends ffi.Struct { + @u_int64_t() + external int af_filesz; + + @u_int64_t() + external int af_currsz; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int af_filesz, + required int af_currsz, + }) => $allocator() + ..ref.af_filesz = af_filesz + ..ref.af_currsz = af_currsz; +} + +enum audit_session_flags { + AU_SESSION_FLAG_IS_INITIAL(1), + AU_SESSION_FLAG_HAS_GRAPHIC_ACCESS(16), + AU_SESSION_FLAG_HAS_TTY(32), + AU_SESSION_FLAG_IS_REMOTE(4096), + AU_SESSION_FLAG_HAS_CONSOLE_ACCESS(8192), + AU_SESSION_FLAG_HAS_AUTHENTICATED(16384); + + final int value; + const audit_session_flags(this.value); + + static audit_session_flags fromValue(int value) => switch (value) { + 1 => AU_SESSION_FLAG_IS_INITIAL, + 16 => AU_SESSION_FLAG_HAS_GRAPHIC_ACCESS, + 32 => AU_SESSION_FLAG_HAS_TTY, + 4096 => AU_SESSION_FLAG_IS_REMOTE, + 8192 => AU_SESSION_FLAG_HAS_CONSOLE_ACCESS, + 16384 => AU_SESSION_FLAG_HAS_AUTHENTICATED, + _ => throw ArgumentError('Unknown value for audit_session_flags: $value'), + }; +} + +final class audit_stat extends ffi.Struct { + @ffi.UnsignedInt() + external int as_version; + + @ffi.UnsignedInt() + external int as_numevent; + + @ffi.Int() + external int as_generated; + + @ffi.Int() + external int as_nonattrib; + + @ffi.Int() + external int as_kernel; + + @ffi.Int() + external int as_audit; + + @ffi.Int() + external int as_auditctl; + + @ffi.Int() + external int as_enqueue; + + @ffi.Int() + external int as_written; + + @ffi.Int() + external int as_wblocked; + + @ffi.Int() + external int as_rblocked; + + @ffi.Int() + external int as_dropped; + + @ffi.Int() + external int as_totalsize; + + @ffi.UnsignedInt() + external int as_memused; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int as_version, + required int as_numevent, + required int as_generated, + required int as_nonattrib, + required int as_kernel, + required int as_audit, + required int as_auditctl, + required int as_enqueue, + required int as_written, + required int as_wblocked, + required int as_rblocked, + required int as_dropped, + required int as_totalsize, + required int as_memused, + }) => $allocator() + ..ref.as_version = as_version + ..ref.as_numevent = as_numevent + ..ref.as_generated = as_generated + ..ref.as_nonattrib = as_nonattrib + ..ref.as_kernel = as_kernel + ..ref.as_audit = as_audit + ..ref.as_auditctl = as_auditctl + ..ref.as_enqueue = as_enqueue + ..ref.as_written = as_written + ..ref.as_wblocked = as_wblocked + ..ref.as_rblocked = as_rblocked + ..ref.as_dropped = as_dropped + ..ref.as_totalsize = as_totalsize + ..ref.as_memused = as_memused; +} + +final class audit_token_t extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array val; +} + +final class auditinfo extends ffi.Struct { + @au_id_t() + external int ai_auid; + + external au_mask_t ai_mask; + + external au_tid_t ai_termid; + + @au_asid_t() + external int ai_asid; +} + +final class auditinfo_addr extends ffi.Struct { + @au_id_t() + external int ai_auid; + + external au_mask_t ai_mask; + + external au_tid_addr_t ai_termid; + + @au_asid_t() + external int ai_asid; + + @au_asflgs_t() + external int ai_flags; +} + +typedef auditinfo_addr_t = auditinfo_addr; +typedef auditinfo_t = auditinfo; + +final class auditpinfo extends ffi.Struct { + @pid_t() + external int ap_pid; + + @au_id_t() + external int ap_auid; + + external au_mask_t ap_mask; + + external au_tid_t ap_termid; + + @au_asid_t() + external int ap_asid; +} + +final class auditpinfo_addr extends ffi.Struct { + @pid_t() + external int ap_pid; + + @au_id_t() + external int ap_auid; + + external au_mask_t ap_mask; + + external au_tid_addr_t ap_termid; + + @au_asid_t() + external int ap_asid; + + @au_asflgs_t() + external int ap_flags; +} + +typedef auditpinfo_addr_t = auditpinfo_addr; +typedef auditpinfo_t = auditpinfo; + +const int authFailErr = -927; + +const int auxiliaryExportDataUnavailable = -2058; + +const int bAccessCntl = 18; + +const int bAllowCDiDataHandler = 17; + +const int bAncestorModDateChanges = 11; + +const int bDoNotDisplay = 24; + +const int bHasBTreeMgr = 5; + +const int bHasBlankAccessPrivileges = 4; + +const int bHasCatSearch = 7; + +const int bHasCopyFile = 14; + +const int bHasDesktopMgr = 12; + +const int bHasDirectIO = 1; + +const int bHasExtFSVol = 16; + +const int bHasFileIDs = 6; + +const int bHasFolderLock = 10; + +const int bHasMoveRename = 13; + +const int bHasOpenDeny = 15; + +const int bHasPersonalAccessPrivileges = 9; + +const int bHasShortName = 11; + +const int bHasUserGroupList = 8; + +const int bIsAutoMounted = 14; + +const int bIsCasePreserving = 23; + +const int bIsCaseSensitive = 22; + +const int bIsEjectable = 0; + +const int bIsOnExternalBus = 27; + +const int bIsOnInternalBus = 21; + +const int bIsRemovable = 25; + +const int bL2PCanMapFileBlocks = 9; + +const int bLimitFCBs = 31; + +const int bLocalWList = 30; + +const int bNoBootBlks = 19; + +const int bNoDeskItems = 20; + +const int bNoLclSync = 27; + +const int bNoMiniFndr = 29; + +const int bNoRootTimes = 26; + +const int bNoSwitchTo = 25; + +const int bNoSysDir = 17; + +const int bNoVNEdit = 28; + +const int bNoVolumeSizes = 20; + +const int bParentModDateChanges = 10; + +const int bSupports2TBFiles = 4; + +const int bSupportsAsyncRequests = 3; + +const int bSupportsExclusiveLocks = 18; + +const int bSupportsExtendedFileSecurity = 28; + +const int bSupportsFSCatalogSearch = 2; + +const int bSupportsFSExchangeObjects = 3; + +const int bSupportsHFSPlusAPIs = 1; + +const int bSupportsJournaling = 19; + +const int bSupportsLongNames = 5; + +const int bSupportsMultiScriptNames = 6; + +const int bSupportsNamedForks = 7; + +const int bSupportsSubtreeIterators = 8; + +const int bSupportsSymbolicLinks = 13; + +const int bSupportsTrashVolumeCache = 2; + +const int bTrshOffLine = 26; + +const int badATPSkt = -1099; + +const int badBtSlpErr = -70; + +const int badBuffNum = -1100; + +const int badCallOrderErr = -2209; + +const int badChannel = -205; + +const int badCksmErr = -69; + +const int badCodecCharacterizationErr = -8993; + +const int badComponentInstance = -2147450879; + +const int badComponentSelector = -2147450878; + +const int badComponentType = -2005; + +const int badControllerHeight = -9994; + +const int badDBtSlp = -73; + +const int badDCksum = -72; + +const int badDataRefIndex = -2050; + +@Deprecated('Deprecated') +const int badDelim = 3; + +const int badDepthErr = -2207; + +const int badDictFormat = -246; + +const int badDragFlavorErr = -1852; + +const int badDragItemErr = -1851; + +const int badDragRefErr = -1850; + +const int badEditIndex = -2033; + +const int badEditList = -2017; + +const int badEditionFileErr = -453; + +@Deprecated('Deprecated') +const int badEnding = 4; + +const int badExtResource = -185; + +const int badFCBErr = -1327; + +const int badFidErr = -1307; + +const int badFileFormat = -208; + +const int badFolderDescErr = -4270; + +const int badFormat = -206; + +const int badImageDescription = -2001; + +const int badImageErr = -1861; + +const int badImageRgnErr = -1860; + +const int badInputText = -247; + +const int badLocNameErr = -931; + +const int badMDBErr = -60; + +const int badMovErr = -122; + +const int badPasteboardFlavorErr = -25133; + +const int badPasteboardIndexErr = -25131; + +const int badPasteboardItemErr = -25132; + +const int badPasteboardSyncErr = -25130; + +const int badPortNameErr = -919; + +const int badProfileError = -4008; + +const int badPublicMovieAtom = -2002; + +const int badReqErr = -909; + +const int badRoutingSizeErr = -4276; + +const int badSGChannel = -9406; + +const int badScrapRefErr = -4990; + +const int badSectionErr = -451; + +const int badServiceMethodErr = -930; + +const int badSubPartErr = -454; + +const int badTrackIndex = -2028; + +const int badTranslationRefErr = -3031; + +const int badTranslationSpecErr = -3031; + +const int badUnitErr = -21; + +@Deprecated('Deprecated') +const int baseDblQuote = 227; + +@Deprecated('Deprecated') +const int baseSingQuote = 226; + +const int bdNamErr = -37; + +typedef bearer_token_callback_t = + ffi.Pointer>; +typedef bearer_token_callback_tFunction = + ffi.Pointer Function( + ffi.Pointer http, + ffi.Pointer resource, + ffi.Pointer user_data, + ); + +const int betaStage = 96; + +typedef blkcnt_t = __darwin_blkcnt_t; +typedef blksize_t = __darwin_blksize_t; + +const int bold = 1; + +typedef boolean_t = ffi.Int; +typedef Dartboolean_t = int; +typedef bootstrap_t = mach_port_t; + +const int breakRecd = -90; + +@Deprecated('Deprecated') +const int breveMark = 249; + +const int btDupRecErr = -414; + +const int btKeyAttrErr = -417; + +const int btKeyLenErr = -416; + +const int btNoSpace = -413; + +const int btRecNotFnd = -415; + +const int buf2SmallErr = -3101; + +const int bufTooSmall = -243; + +const int bufferIsSmall = -607; + +const int buffersTooSmall = -210; + +const int cADBAddress = 1667327074; + +const int cAEList = 1818850164; + +const int cAddressSpec = 1667327090; + +const int cAppleTalkAddress = 1667331104; + +const int cApplication = 1667330160; + +const int cArc = 1667330659; + +const int cBoolean = 1651470188; + +const int cBusAddress = 1667396979; + +const int cCell = 1667458412; + +const int cChar = 1667784992; + +const int cColorTable = 1668051572; + +const int cColumn = 1667460972; + +const int cDepthErr = -157; + +const int cDevErr = -155; + +const int cDevSpec = 1667523958; + +const int cDocument = 1685021557; + +const int cDrawingArea = 1667527287; + +const int cEnumeration = 1701737837; + +const int cEthernetAddress = 1667591712; + +const int cFTPItem = 1718906912; + +const int cFile = 1718185061; + +const int cFireWireAddress = 1667659552; + +const int cFixed = 1718188132; + +const int cFixedPoint = 1718644340; + +const int cFixedRectangle = 1718772596; + +const int cGraphicLine = 1735158126; + +const int cGraphicObject = 1667723106; + +const int cGraphicShape = 1667724136; + +const int cGraphicText = 1667724408; + +const int cGroupedGraphic = 1668311395; + +const int cHTML = 1752460652; + +const int cIPAddress = 1667854368; + +const int cInsertionLoc = 1768846188; + +const int cInsertionPoint = 1667853939; + +const int cInternetAddress = 1229996356; + +const int cIntlText = 1769240692; + +const int cIntlWritingCode = 1768846444; + +const int cItem = 1667855469; + +const int cKeystroke = 1802531443; + +const int cLine = 1668049262; + +const int cLocalTalkAddress = 1668052000; + +const int cLongDateTime = 1818522656; + +const int cLongFixed = 1818654820; + +const int cLongFixedPoint = 1818652788; + +const int cLongFixedRectangle = 1818653283; + +const int cLongInteger = 1819242087; + +const int cLongPoint = 1819307636; + +const int cLongRectangle = 1819435892; + +const int cMachineLoc = 1833725795; + +const int cMatchErr = -150; + +const int cMenu = 1668116085; + +const int cMenuItem = 1668113774; + +const int cNoMemErr = -152; + +const int cObject = 1668244074; + +const int cObjectSpecifier = 1868720672; + +const int cOpenableObject = 1668247394; + +const int cOval = 1668249196; + +const int cPICT = 1346978644; + +const int cParagraph = 1668309362; + +const int cPixel = 1668315244; + +const int cPixelMap = 1668311416; + +const int cPolygon = 1668310894; + +const int cProperty = 1886547824; + +const int cProtectErr = -154; + +const int cQDPoint = 1363439732; + +const int cQDRectangle = 1902408308; + +const int cRGBColor = 1666336578; + +const int cRangeErr = -153; + +const int cRectangle = 1668441443; + +const int cResErr = -156; + +const int cRotation = 1953656692; + +const int cRoundedRectangle = 1668444771; + +const int cRow = 1668444023; + +const int cSCSIAddress = 1668506483; + +const int cSelection = 1668506988; + +const int cShortInteger = 1936224114; + +const int cTable = 1668571756; + +const int cTempMemErr = -151; + +const int cText = 1668577396; + +const int cTextFlow = 1667656815; + +const int cTextStyles = 1953723513; + +const int cTokenRingAddress = 1668575083; + +const int cType = 1954115685; + +const int cURL = 1970433056; + +const int cUSBAddress = 1668641634; + +const int cVersion = 1986359923; + +const int cWindow = 1668770158; + +const int cWord = 1668771698; + +typedef caddr_t = ffi.Pointer; +@Deprecated('Deprecated') +const int calArabicCivil = 1; + +@Deprecated('Deprecated') +const int calArabicLunar = 2; + +@Deprecated('Deprecated') +const int calCoptic = 5; + +@Deprecated('Deprecated') +const int calGregorian = 0; + +@Deprecated('Deprecated') +const int calJapanese = 3; + +@Deprecated('Deprecated') +const int calJewish = 4; + +@Deprecated('Deprecated') +const int calPersian = 6; + +const int callNotSupportedByNodeErr = -30542; + +const int callerSecuritySession = -1; + +const int cannotBeLeafAtomErr = -2109; + +const int cannotDeferErr = -625; + +const int cannotFindAtomErr = -2101; + +const int cannotMakeContiguousErr = -622; + +const int cannotMoveAttachedController = -9999; + +const int cannotSetWidthOfAttachedController = -9997; + +const int cantCreatePickerWindow = -4004; + +const int cantCreateSingleForkFile = -2022; + +const int cantDoThatInCurrentMode = -9402; + +const int cantEnableTrack = -2035; + +const int cantFindHandler = -2003; + +const int cantGetFlavorErr = -1854; + +const int cantLoadPackage = -4005; + +const int cantLoadPickMethodErr = -11003; + +const int cantLoadPicker = -4003; + +const int cantOpenHandler = -2004; + +const int cantPutPublicMovieAtom = -2016; + +const int cantReadUtilities = 33280; + +const int cantReceiveFromSynthesizerOSErr = -2073; + +const int cantSendToSynthesizerOSErr = -2072; + +const int cantStepErr = -75; + +const int catChangedErr = -1304; + +const int cbNotFound = -1102; + +typedef ccntTokenRecHandle = ffi.Pointer; +typedef ccntTokenRecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class ccntTokenRecord extends ffi.Struct { + @DescType() + external int tokenClass; + + external objc.AEDesc token; +} + +const int cdevGenErr = -1; + +const int cdevMemErr = 0; + +const int cdevResErr = 1; + +const int cdevUnset = 3; + +@Deprecated('Deprecated') +const int cedilla = 252; + +@Deprecated('Deprecated') +const int centeredDot = 225; + +const int century = 128; + +const int cfragAbortClosureErr = -2830; + +const int cfragArchitectureErr = -2823; + +const int cfragCFMInternalErr = -2819; + +const int cfragCFMStartupErr = -2818; + +const int cfragCFragRsrcErr = -2857; + +const int cfragClosureIDErr = -2829; + +const int cfragConnectionIDErr = -2801; + +const int cfragContainerIDErr = -2828; + +const int cfragContextIDErr = -2800; + +const int cfragDupRegistrationErr = -2805; + +const int cfragExecFileRefErr = -2854; + +const int cfragFileSizeErr = -2825; + +const int cfragFirstErrCode = -2800; + +const int cfragFirstReservedCode = -2897; + +const int cfragFragmentCorruptErr = -2820; + +const int cfragFragmentFormatErr = -2806; + +const int cfragFragmentUsageErr = -2824; + +const int cfragImportTooNewErr = -2814; + +const int cfragImportTooOldErr = -2813; + +const int cfragInitAtBootErr = -2816; + +const int cfragInitFunctionErr = -2821; + +const int cfragInitLoopErr = -2815; + +const int cfragInitOrderErr = -2812; + +const int cfragLastErrCode = -2899; + +const int cfragLibConnErr = -2817; + +const int cfragMapFileErr = -2851; + +const int cfragNoApplicationErr = -2822; + +const int cfragNoClientMemErr = -2810; + +const int cfragNoIDsErr = -2811; + +const int cfragNoLibraryErr = -2804; + +const int cfragNoPositionErr = -2808; + +const int cfragNoPrivateMemErr = -2809; + +const int cfragNoRegistrationErr = -2827; + +const int cfragNoSectionErr = -2803; + +const int cfragNoSymbolErr = -2802; + +const int cfragNotClosureErr = -2826; + +const int cfragOutputLengthErr = -2831; + +const int cfragReservedCode_1 = -2899; + +const int cfragReservedCode_2 = -2898; + +const int cfragReservedCode_3 = -2897; + +const int cfragRsrcForkErr = -2856; + +const int cfragStdFolderErr = -2855; + +const int cfragUnresolvedErr = -2807; + +const int channelBusy = -209; + +const int channelNotBusy = -211; + +@Deprecated('Deprecated') +const int circumflex = 246; + +@Deprecated('Deprecated') +const int circumflexUprA = 229; + +@Deprecated('Deprecated') +const int circumflexUprE = 230; + +@Deprecated('Deprecated') +const int circumflexUprI = 235; + +@Deprecated('Deprecated') +const int circumflexUprO = 239; + +@Deprecated('Deprecated') +const int circumflexUprU = 243; + +const int ckSumErr = -3103; + +typedef cl_device_id = ffi.Pointer<_cl_device_id>; + +const int clearDev = 13; + +const int clkRdErr = -85; + +const int clkWrErr = -86; + +typedef clock_attr_t = ffi.Pointer; +typedef clock_ctrl_port_t = clock_ctrl_t; +typedef clock_ctrl_t = mach_port_t; +typedef clock_flavor_t = ffi.Int; +typedef Dartclock_flavor_t = int; +typedef clock_id_t = ffi.Int; +typedef Dartclock_id_t = int; +typedef clock_reply_t = mach_port_t; +typedef clock_res_t = ffi.Int; +typedef Dartclock_res_t = int; +typedef clock_serv_port_t = clock_serv_t; +typedef clock_serv_t = mach_port_t; +typedef clock_t = __darwin_clock_t; + +enum clockid_t { + _CLOCK_REALTIME(0), + _CLOCK_MONOTONIC(6), + _CLOCK_MONOTONIC_RAW(4), + _CLOCK_MONOTONIC_RAW_APPROX(5), + _CLOCK_UPTIME_RAW(8), + _CLOCK_UPTIME_RAW_APPROX(9), + _CLOCK_PROCESS_CPUTIME_ID(12), + _CLOCK_THREAD_CPUTIME_ID(16); + + final int value; + const clockid_t(this.value); + + static clockid_t fromValue(int value) => switch (value) { + 0 => _CLOCK_REALTIME, + 6 => _CLOCK_MONOTONIC, + 4 => _CLOCK_MONOTONIC_RAW, + 5 => _CLOCK_MONOTONIC_RAW_APPROX, + 8 => _CLOCK_UPTIME_RAW, + 9 => _CLOCK_UPTIME_RAW_APPROX, + 12 => _CLOCK_PROCESS_CPUTIME_ID, + 16 => _CLOCK_THREAD_CPUTIME_ID, + _ => throw ArgumentError('Unknown value for clockid_t: $value'), + }; +} + +final class clockinfo extends ffi.Struct { + @ffi.Int() + external int hz; + + @ffi.Int() + external int tick; + + @ffi.Int() + external int tickadj; + + @ffi.Int() + external int stathz; + + @ffi.Int() + external int profhz; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int hz, + required int tick, + required int tickadj, + required int stathz, + required int profhz, + }) => $allocator() + ..ref.hz = hz + ..ref.tick = tick + ..ref.tickadj = tickadj + ..ref.stathz = stathz + ..ref.profhz = profhz; +} + +const int closErr = -24; + +const int closeDev = 2; + +const int cm10CLRData = 1094929490; + +const int cm11CLRData = 1111706706; + +const int cm12CLRData = 1128483922; + +const int cm13CLRData = 1145261138; + +const int cm14CLRData = 1162038354; + +const int cm15CLRData = 1178815570; + +const int cm16_8ColorPacking = 8192; + +const int cm24_8ColorPacking = 8448; + +const int cm32_16ColorPacking = 9728; + +const int cm32_32ColorPacking = 9984; + +const int cm32_8ColorPacking = 2048; + +const int cm3CLRData = 860048466; + +const int cm40_8ColorPacking = 8704; + +const int cm48_16ColorPacking = 10496; + +const int cm48_8ColorPacking = 8960; + +const int cm4CLRData = 876825682; + +const int cm56_8ColorPacking = 9216; + +const int cm5CLRData = 893602898; + +const int cm64_16ColorPacking = 10752; + +const int cm64_8ColorPacking = 9472; + +const int cm6CLRData = 910380114; + +const int cm7CLRData = 927157330; + +const int cm8CLRData = 943934546; + +const int cm8_8ColorPacking = 10240; + +const int cm9CLRData = 960711762; + +const int cmARGB32PmulSpace = 6337; + +const int cmARGB32Space = 6273; + +const int cmARGB64LPmulSpace = 31425; + +const int cmARGB64LSpace = 31361; + +const int cmARGB64PmulSpace = 15041; + +const int cmARGB64Space = 14977; + +const int cmAToB0Tag = 1093812784; + +const int cmAToB1Tag = 1093812785; + +const int cmAToB2Tag = 1093812786; + +const int cmAbortWriteAccess = 7; + +const int cmAbsoluteColorimetric = 3; + +const int cmAbstractClass = 1633842036; + +const int cmAlphaFirstPacking = 4096; + +const int cmAlphaLastPacking = 0; + +const int cmAlphaPmulSpace = 64; + +const int cmAlphaSpace = 128; + +const int cmAsciiData = 0; + +const int cmBToA0Tag = 1110589744; + +const int cmBToA1Tag = 1110589745; + +const int cmBToA2Tag = 1110589746; + +const int cmBeginAccess = 8; + +const int cmBestMode = 2; + +const int cmBinaryData = 1; + +const int cmBlackPointCompensation = 1; + +const int cmBlackPointCompensationMask = 4; + +const int cmBlueColorantTag = 1649957210; + +const int cmBlueTRCTag = 1649693251; + +const int cmBradfordChromaticAdaptation = 3; + +const int cmBufferBasedProfile = 6; + +const int cmCMSReservedFlagsMask = -65536; + +const int cmCMYData = 1129142560; + +const int cmCMYK32Space = 2050; + +const int cmCMYK64LSpace = 27138; + +const int cmCMYK64Space = 10754; + +const int cmCMYKData = 1129142603; + +const int cmCMYKSpace = 2; + +const int cmCS1ChromTag = 1667789421; + +const int cmCS1CustTag = 1668641652; + +const int cmCS1NameTag = 1851878757; + +const int cmCS1ProfileVersion = 256; + +const int cmCS1TRCTag = 1953653536; + +const int cmCS2ProfileVersion = 33554432; + +const int cmCalibrationDateTimeTag = 1667329140; + +const int cmCameraDeviceClass = 1668117089; + +const int cmCantConcatenateError = -178; + +const int cmCantCopyModifiedV1Profile = -4215; + +const int cmCantDeleteElement = -4202; + +const int cmCantDeleteProfile = -180; + +const int cmCantGamutCheckError = -4217; + +const int cmCantXYZ = -179; + +const int cmCharTargetTag = 1952543335; + +const int cmChromaticAdaptationTag = 1667785060; + +const int cmCloseAccess = 5; + +const int cmCloseSpool = 5; + +const int cmColorSpaceAlphaMask = 128; + +const int cmColorSpaceClass = 1936744803; + +const int cmColorSpaceEncodingMask = 983040; + +const int cmColorSpacePackingMask = 65280; + +const int cmColorSpacePremulAlphaMask = 64; + +const int cmColorSpaceReservedMask = -1048576; + +const int cmColorSpaceSpaceAndAlphaMask = 255; + +const int cmColorSpaceSpaceMask = 63; + +const int cmCopyrightTag = 1668313716; + +const int cmCreateNewAccess = 6; + +const int cmCurrentDeviceInfoVersion = 65536; + +const int cmCurrentProfileInfoVersion = 65536; + +const int cmCurrentProfileLocationSize = 1032; + +const int cmCurrentProfileMajorVersion = 33554432; + +const int cmDefaultDeviceID = 0; + +const int cmDefaultProfileID = 0; + +const int cmDeviceAlreadyRegistered = -4228; + +const int cmDeviceDBNotFoundErr = -4227; + +const int cmDeviceInfoVersion1 = 65536; + +const int cmDeviceMfgDescTag = 1684893284; + +const int cmDeviceModelDescTag = 1684890724; + +const int cmDeviceNotRegistered = -4229; + +const int cmDeviceProfileInfoVersion1 = 65536; + +const int cmDeviceProfileInfoVersion2 = 131072; + +const int cmDeviceProfilesNotFound = -4230; + +const int cmDeviceStateAppleRsvdBits = -16711681; + +const int cmDeviceStateBusy = 2; + +const int cmDeviceStateDefault = 0; + +const int cmDeviceStateDeviceRsvdBits = 16711680; + +const int cmDeviceStateForceNotify = -2147483648; + +const int cmDeviceStateOffline = 1; + +const int cmDisplayClass = 1835955314; + +const int cmDisplayDeviceClass = 1835955314; + +const int cmDisplayUse = 1685089401; + +const int cmDraftMode = 1; + +const int cmElementTagNotFound = -4200; + +const int cmEmbeddedMask = 1; + +const int cmEmbeddedProfile = 0; + +const int cmEmbeddedUse = 1; + +const int cmEmbeddedUseMask = 2; + +const int cmEndAccess = 9; + +const int cmErrIncompatibleProfile = -4208; + +const int cmFatalProfileErr = -4203; + +const int cmFlare0 = 0; + +const int cmFlare100 = 1; + +const int cmGamutCheckingMask = 524288; + +const int cmGamutResult1Space = 2828; + +const int cmGamutResultSpace = 12; + +const int cmGamutTag = 1734438260; + +const int cmGeometry045or450 = 1; + +const int cmGeometry0dord0 = 2; + +const int cmGeometryUnknown = 0; + +const int cmGlossy = 1; + +const int cmGlossyMatteMask = 2; + +const int cmGray16LSpace = 16394; + +const int cmGray16Space = 10; + +const int cmGray8Space = 10250; + +const int cmGrayA16PmulSpace = 8394; + +const int cmGrayA16Space = 8330; + +const int cmGrayA32LPmulSpace = 16586; + +const int cmGrayA32LSpace = 16522; + +const int cmGrayA32PmulSpace = 202; + +const int cmGrayA32Space = 138; + +const int cmGrayAPmulSpace = 202; + +const int cmGrayASpace = 138; + +const int cmGrayData = 1196573017; + +const int cmGraySpace = 10; + +const int cmGrayTRCTag = 1800688195; + +const int cmGreenColorantTag = 1733843290; + +const int cmGreenTRCTag = 1733579331; + +const int cmHLS32Space = 2564; + +const int cmHLSData = 1212961568; + +const int cmHLSSpace = 4; + +const int cmHSV32Space = 2563; + +const int cmHSVData = 1213421088; + +const int cmHSVSpace = 3; + +const int cmICCProfileVersion2 = 33554432; + +const int cmICCProfileVersion21 = 34603008; + +const int cmICCProfileVersion4 = 67108864; + +const int cmICCReservedFlagsMask = 65535; + +const int cmIlluminantA = 6; + +const int cmIlluminantD50 = 1; + +const int cmIlluminantD55 = 5; + +const int cmIlluminantD65 = 2; + +const int cmIlluminantD93 = 3; + +const int cmIlluminantEquiPower = 7; + +const int cmIlluminantF2 = 4; + +const int cmIlluminantF8 = 8; + +const int cmIlluminantUnknown = 0; + +const int cmIndexRangeErr = -4201; + +const int cmInputClass = 1935896178; + +const int cmInputUse = 1768845428; + +const int cmInternalCFErr = -4231; + +const int cmInterpolationMask = 262144; + +const int cmInvalidColorSpace = -4209; + +const int cmInvalidDstMap = -4211; + +const int cmInvalidProfile = -4204; + +const int cmInvalidProfileComment = -4213; + +const int cmInvalidProfileLocation = -4205; + +const int cmInvalidSearch = -4206; + +const int cmInvalidSrcMap = -4210; + +const int cmIterateAllDeviceProfiles = 4; + +const int cmIterateCurrentDeviceProfiles = 3; + +const int cmIterateCustomDeviceProfiles = 2; + +const int cmIterateDeviceProfilesMask = 15; + +const int cmIterateFactoryDeviceProfiles = 1; + +const int cmLAB24Space = 8456; + +const int cmLAB32Space = 2568; + +const int cmLAB48LSpace = 26888; + +const int cmLAB48Space = 10504; + +const int cmLABSpace = 8; + +const int cmLUV32Space = 2567; + +const int cmLUVSpace = 7; + +const int cmLabData = 1281450528; + +const int cmLinearChromaticAdaptation = 1; + +const int cmLinesPer = 1; + +const int cmLinkClass = 1818848875; + +const int cmLittleEndianPacking = 16384; + +const int cmLong10ColorPacking = 2560; + +const int cmLong8ColorPacking = 2048; + +const int cmLuminanceTag = 1819635049; + +const int cmLuvData = 1282766368; + +const int cmMCEight8Space = 9492; + +const int cmMCEightSpace = 20; + +const int cmMCFive8Space = 8721; + +const int cmMCFiveSpace = 17; + +const int cmMCH5Data = 1296255029; + +const int cmMCH6Data = 1296255030; + +const int cmMCH7Data = 1296255031; + +const int cmMCH8Data = 1296255032; + +const int cmMCSeven8Space = 9235; + +const int cmMCSevenSpace = 19; + +const int cmMCSix8Space = 8978; + +const int cmMCSixSpace = 18; + +const int cmMacintosh = 1095782476; + +const int cmMagicNumber = 1633907568; + +const int cmMakeAndModelTag = 1835888484; + +const int cmMeasurementTag = 1835360627; + +const int cmMediaBlackPointTag = 1651208308; + +const int cmMediaWhitePointTag = 2004119668; + +const int cmMethodError = -171; + +const int cmMethodNotFound = -175; + +const int cmMicrosoft = 1297303124; + +const int cmNamedColor2Tag = 1852009522; + +const int cmNamedColorClass = 1852662636; + +const int cmNamedColorNotFound = -4216; + +const int cmNamedColorTag = 1852010348; + +const int cmNamedData = 1312902469; + +const int cmNamedIndexed32LSpace = 26384; + +const int cmNamedIndexed32Space = 10000; + +const int cmNamedIndexedSpace = 16; + +const int cmNativeDisplayInfoTag = 1852074350; + +const int cmNoColorPacking = 0; + +const int cmNoCurrentProfile = -182; + +const int cmNoGDevicesError = -4212; + +const int cmNoProfileBase = 0; + +const int cmNoSpace = 0; + +const int cmNormalMode = 0; + +const int cmNumHeaderElements = 10; + +const int cmOneBitDirectPacking = 2816; + +const int cmOpenReadAccess = 1; + +const int cmOpenReadSpool = 1; + +const int cmOpenWriteAccess = 2; + +const int cmOpenWriteSpool = 2; + +const int cmOriginalProfileLocationSize = 72; + +const int cmOutputClass = 1886549106; + +const int cmOutputUse = 1869968496; + +const int cmPS2CRD0Tag = 1886610480; + +const int cmPS2CRD1Tag = 1886610481; + +const int cmPS2CRD2Tag = 1886610482; + +const int cmPS2CRD3Tag = 1886610483; + +const int cmPS2CRDVMSizeTag = 1886615149; + +const int cmPS2CSATag = 1886597747; + +const int cmPS2RenderingIntentTag = 1886597737; + +const int cmPS7bit = 1; + +const int cmPS8bit = 2; + +const int cmParametricType0 = 0; + +const int cmParametricType1 = 1; + +const int cmParametricType2 = 2; + +const int cmParametricType3 = 3; + +const int cmParametricType4 = 4; + +const int cmPathBasedProfile = 5; + +const int cmPerceptual = 0; + +const int cmPrefsSynchError = -4232; + +const int cmPreview0Tag = 1886545200; + +const int cmPreview1Tag = 1886545201; + +const int cmPreview2Tag = 1886545202; + +const int cmPrinterDeviceClass = 1886549106; + +const int cmProfileDescriptionMLTag = 1685283693; + +const int cmProfileDescriptionTag = 1684370275; + +const int cmProfileError = -170; + +const int cmProfileIterateDataVersion1 = 65536; + +const int cmProfileIterateDataVersion2 = 131072; + +const int cmProfileIterateDataVersion3 = 196608; + +const int cmProfileIterateDataVersion4 = 262144; + +const int cmProfileMajorVersionMask = -16777216; + +const int cmProfileNotFound = -176; + +const int cmProfileSequenceDescTag = 1886610801; + +const int cmProfilesIdentical = -177; + +const int cmProofDeviceClass = 1886549350; + +const int cmProofUse = 1886549350; + +const int cmPrtrDefaultScreens = 0; + +const int cmQualityMask = 196608; + +const int cmRGB16LSpace = 17665; + +const int cmRGB16Space = 1281; + +const int cmRGB24Space = 8449; + +const int cmRGB32Space = 2049; + +const int cmRGB48LSpace = 26881; + +const int cmRGB48Space = 10497; + +const int cmRGB565LSpace = 17921; + +const int cmRGB565Space = 1537; + +const int cmRGBA32PmulSpace = 2241; + +const int cmRGBA32Space = 2177; + +const int cmRGBA64LPmulSpace = 27329; + +const int cmRGBA64LSpace = 27265; + +const int cmRGBA64PmulSpace = 10945; + +const int cmRGBA64Space = 10881; + +const int cmRGBAPmulSpace = 193; + +const int cmRGBASpace = 129; + +const int cmRGBData = 1380401696; + +const int cmRGBSpace = 1; + +const int cmRangeOverFlow = -4214; + +const int cmReadAccess = 3; + +const int cmReadSpool = 3; + +const int cmRedColorantTag = 1918392666; + +const int cmRedTRCTag = 1918128707; + +const int cmReflective = 0; + +const int cmReflectiveTransparentMask = 1; + +const int cmRelativeColorimetric = 1; + +const int cmReservedSpace1 = 9; + +const int cmReservedSpace2 = 11; + +const int cmReverseChannelPacking = 32768; + +const int cmSRGB16ChannelEncoding = 65536; + +const int cmSRGBData = 1934772034; + +const int cmSaturation = 2; + +const int cmScannerDeviceClass = 1935896178; + +const int cmScreeningDescTag = 1935897188; + +const int cmScreeningTag = 1935897198; + +const int cmSearchError = -4207; + +const int cmSigCrdInfoType = 1668441193; + +const int cmSigCurveType = 1668641398; + +const int cmSigDataType = 1684108385; + +const int cmSigDateTimeType = 1685350765; + +const int cmSigLut16Type = 1835430962; + +const int cmSigLut8Type = 1835430961; + +const int cmSigMakeAndModelType = 1835888484; + +const int cmSigMeasurementType = 1835360627; + +const int cmSigMultiFunctA2BType = 1832993312; + +const int cmSigMultiFunctB2AType = 1833058592; + +const int cmSigMultiLocalizedUniCodeType = 1835824483; + +const int cmSigNamedColor2Type = 1852009522; + +const int cmSigNamedColorType = 1852010348; + +const int cmSigNativeDisplayInfoType = 1852074350; + +const int cmSigPS2CRDVMSizeType = 1886615149; + +const int cmSigParametricCurveType = 1885434465; + +const int cmSigProfileDescriptionType = 1684370275; + +const int cmSigProfileSequenceDescType = 1886610801; + +const int cmSigS15Fixed16Type = 1936077618; + +const int cmSigScreeningType = 1935897198; + +const int cmSigSignatureType = 1936287520; + +const int cmSigTextType = 1952807028; + +const int cmSigU16Fixed16Type = 1969632050; + +const int cmSigU1Fixed15Type = 1969631542; + +const int cmSigUInt16Type = 1969828150; + +const int cmSigUInt32Type = 1969828658; + +const int cmSigUInt64Type = 1969829428; + +const int cmSigUInt8Type = 1969827896; + +const int cmSigUcrBgType = 1650877472; + +const int cmSigUnicodeTextType = 1970567284; + +const int cmSigVideoCardGammaType = 1986226036; + +const int cmSigViewingConditionsType = 1986618743; + +const int cmSigXYZType = 1482250784; + +const int cmSiliconGraphics = 1397180704; + +const int cmSolaris = 1398099543; + +const int cmSpotFunctionCross = 7; + +const int cmSpotFunctionDefault = 1; + +const int cmSpotFunctionDiamond = 3; + +const int cmSpotFunctionEllipse = 4; + +const int cmSpotFunctionLine = 5; + +const int cmSpotFunctionRound = 2; + +const int cmSpotFunctionSquare = 6; + +const int cmSpotFunctionUnknown = 0; + +const int cmStdobs1931TwoDegrees = 1; + +const int cmStdobs1964TenDegrees = 2; + +const int cmStdobsUnknown = 0; + +const int cmTaligent = 1413959252; + +const int cmTechnologyAMDisplay = 1095582752; + +const int cmTechnologyCRTDisplay = 1129468960; + +const int cmTechnologyDigitalCamera = 1684234605; + +const int cmTechnologyDyeSublimationPrinter = 1685288290; + +const int cmTechnologyElectrophotographicPrinter = 1701865583; + +const int cmTechnologyElectrostaticPrinter = 1702065249; + +const int cmTechnologyFilmScanner = 1718838126; + +const int cmTechnologyFilmWriter = 1718645358; + +const int cmTechnologyFlexography = 1718379896; + +const int cmTechnologyGravure = 1735549302; + +const int cmTechnologyInkJetPrinter = 1768580468; + +const int cmTechnologyOffsetLithography = 1868981875; + +const int cmTechnologyPMDisplay = 1347240992; + +const int cmTechnologyPhotoCD = 1263551300; + +const int cmTechnologyPhotoImageSetter = 1768777587; + +const int cmTechnologyPhotographicPaperPrinter = 1919969391; + +const int cmTechnologyProjectionTelevision = 1886024822; + +const int cmTechnologyReflectiveScanner = 1920164718; + +const int cmTechnologySilkscreen = 1936288875; + +const int cmTechnologyTag = 1952801640; + +const int cmTechnologyThermalWaxPrinter = 1953980792; + +const int cmTechnologyVideoCamera = 1986618467; + +const int cmTechnologyVideoMonitor = 1986618477; + +const int cmUcrBgTag = 1650877472; + +const int cmUnsupportedDataType = -181; + +const int cmUseDefaultChromaticAdaptation = 0; + +const int cmVideoCardGammaFormulaType = 1; + +const int cmVideoCardGammaTableType = 0; + +const int cmVideoCardGammaTag = 1986226036; + +const int cmViewingConditionsDescTag = 1987405156; + +const int cmViewingConditionsTag = 1986618743; + +const int cmVonKriesChromaticAdaptation = 2; + +const int cmWord565ColorPacking = 1536; + +const int cmWord5ColorPacking = 1280; + +const int cmWriteAccess = 4; + +const int cmWriteSpool = 4; + +const int cmXYZ24Space = 8454; + +const int cmXYZ32Space = 2566; + +const int cmXYZ48LSpace = 26886; + +const int cmXYZ48Space = 10502; + +const int cmXYZData = 1482250784; + +const int cmXYZSpace = 6; + +const int cmYCbCrData = 1497588338; + +const int cmYXY32Space = 2565; + +const int cmYXYSpace = 5; + +const int cmYxyData = 1501067552; + +const int cmapFontTableTag = 1668112752; + +@Deprecated('Deprecated') +const int cmpAliasNoFlags = 0; + +@Deprecated('Deprecated') +const int cmpAliasOnlyThisFile = 1; + +@Deprecated('Deprecated') +const int cmpIsMissing = 536870912; + +@Deprecated('Deprecated') +const int cmpThreadSafe = 268435456; + +@Deprecated('Deprecated') +const int cmpWantsRegisterMessage = -2147483648; + +final class cmsghdr extends ffi.Struct { + @socklen_t() + external int cmsg_len; + + @ffi.Int() + external int cmsg_level; + + @ffi.Int() + external int cmsg_type; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cmsg_len, + required int cmsg_level, + required int cmsg_type, + }) => $allocator() + ..ref.cmsg_len = cmsg_len + ..ref.cmsg_level = cmsg_level + ..ref.cmsg_type = cmsg_type; +} + +typedef coalition_t = mach_port_t; + +const int codecAbortErr = -8967; + +const int codecBadDataErr = -8969; + +const int codecCantQueueErr = -8975; + +const int codecCantWhenErr = -8974; + +const int codecConditionErr = -8972; + +const int codecDataVersErr = -8970; + +const int codecDisabledErr = -8978; + +const int codecDroppedFrameErr = -8989; + +const int codecErr = -8960; + +const int codecExtensionNotFoundErr = -8971; + +const int codecImageBufErr = -8965; + +const int codecNeedAccessKeyErr = -8987; + +const int codecNeedToFlushChainErr = -8979; + +const int codecNoMemoryPleaseWaitErr = -8977; + +const int codecNothingToBlitErr = -8976; + +const int codecOffscreenFailedErr = -8988; + +const int codecOffscreenFailedPleaseRetryErr = -8992; + +const int codecOpenErr = -8973; + +const int codecParameterDialogConfirm = -8986; + +const int codecScreenBufErr = -8964; + +const int codecSizeErr = -8963; + +const int codecSpoolErr = -8966; + +const int codecUnimpErr = -8962; + +const int codecWouldOffscreenErr = -8968; + +const int collectionIndexRangeErr = -5752; + +const int collectionItemLockedErr = -5750; + +const int collectionItemNotFoundErr = -5751; + +const int collectionVersionErr = -5753; + +const int colorSyncNotInstalled = -4007; + +const int colorsRequestedErr = -11004; + +@Deprecated('Deprecated') +const int componentAutoVersionIncludeFlags = 4; + +const int componentDllEntryNotFoundErr = -2092; + +const int componentDllLoadErr = -2091; + +@Deprecated('Deprecated') +const int componentDoAutoVersion = 1; + +const int componentDontRegister = -3003; + +@Deprecated('Deprecated') +const int componentHasMultiplePlatforms = 8; + +@Deprecated('Deprecated') +const int componentLoadResident = 16; + +const int componentNotCaptured = -3002; + +const int componentNotThreadSafeErr = -2098; + +@Deprecated('Deprecated') +const int componentWantsUnregister = 2; + +const int condense = 32; + +const int connectionInvalid = -609; + +const int constraintReachedErr = -30541; + +const int containerAlreadyOpenWrn = -462; + +const int containerNotFoundWrn = -461; + +const int controlErr = -17; + +const int controlHandleInvalidErr = -30599; + +const int controlInvalidDataVersionErr = -30597; + +const int controlPanelFolderIconResource = -3976; + +const int controlPropertyInvalid = -5603; + +const int controlPropertyNotFoundErr = -5604; + +const int controllerBoundsNotExact = -9996; + +const int controllerHasFixedHeight = -9998; + +const int copyDev = 11; + +const int corErr = -3; + +const int coreFoundationUnknownErr = -4960; + +const int couldNotParseSourceFileErr = -3026; + +const int couldNotResolveDataRef = -2000; + +const int couldNotUseAnExistingSample = -2052; + +const int couldntGetRequiredComponent = -9405; + +typedef cpu_subtype_t = integer_t; +typedef cpu_threadtype_t = integer_t; +typedef cpu_type_t = integer_t; +@Deprecated('Deprecated') +const int crash = 5; + +@Deprecated('Deprecated') +final class cssm_access_credentials extends ffi.Struct { + @ffi.Array.multi([68]) + external ffi.Array EntryTag; + + external CSSM_BASE_CERTS BaseCerts; + + external CSSM_SAMPLEGROUP Samples; + + external CSSM_CHALLENGE_CALLBACK Callback; + + external ffi.Pointer CallerCtx; +} + +@Deprecated('Deprecated') +final class cssm_acl_edit extends ffi.Struct { + @CSSM_ACL_EDIT_MODE() + external int EditMode; + + @CSSM_ACL_HANDLE() + external int OldEntryHandle; + + external ffi.Pointer NewEntry; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int EditMode, + required int OldEntryHandle, + required ffi.Pointer NewEntry, + }) => $allocator() + ..ref.EditMode = EditMode + ..ref.OldEntryHandle = OldEntryHandle + ..ref.NewEntry = NewEntry; +} + +@Deprecated('Deprecated') +final class cssm_acl_entry_info extends ffi.Struct { + external CSSM_ACL_ENTRY_PROTOTYPE EntryPublicInfo; + + @CSSM_ACL_HANDLE() + external int EntryHandle; +} + +@Deprecated('Deprecated') +final class cssm_acl_entry_input extends ffi.Struct { + external CSSM_ACL_ENTRY_PROTOTYPE Prototype; + + external CSSM_ACL_SUBJECT_CALLBACK Callback; + + external ffi.Pointer CallerContext; +} + +@Deprecated('Deprecated') +final class cssm_acl_entry_prototype extends ffi.Struct { + external CSSM_LIST TypedSubject; + + @CSSM_BOOL() + external int Delegate; + + external CSSM_AUTHORIZATIONGROUP Authorization; + + external CSSM_ACL_VALIDITY_PERIOD TimeRange; + + @ffi.Array.multi([68]) + external ffi.Array EntryTag; +} + +final class cssm_acl_keychain_prompt_selector extends ffi.Struct { + @uint16() + external int version; + + @uint16() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int flags, + }) => $allocator() + ..ref.version = version + ..ref.flags = flags; +} + +@Deprecated('Deprecated') +final class cssm_acl_owner_prototype extends ffi.Struct { + external CSSM_LIST TypedSubject; + + @CSSM_BOOL() + external int Delegate; +} + +final class cssm_acl_process_subject_selector extends ffi.Struct { + @uint16() + external int version; + + @uint16() + external int mask; + + @uint32() + external int uid; + + @uint32() + external int gid; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int mask, + required int uid, + required int gid, + }) => $allocator() + ..ref.version = version + ..ref.mask = mask + ..ref.uid = uid + ..ref.gid = gid; +} + +@Deprecated('Deprecated') +final class cssm_acl_validity_period extends ffi.Struct { + external SecAsn1Item StartDate; + + external SecAsn1Item EndDate; +} + +final class cssm_applecspdl_db_change_password_parameters extends ffi.Struct { + external ffi.Pointer accessCredentials; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer accessCredentials, + }) => + $allocator() + ..ref.accessCredentials = accessCredentials; +} + +final class cssm_applecspdl_db_is_locked_parameters extends ffi.Struct { + @uint8() + external int isLocked; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int isLocked, + }) => + $allocator() + ..ref.isLocked = isLocked; +} + +final class cssm_applecspdl_db_settings_parameters extends ffi.Struct { + @uint32() + external int idleTimeout; + + @uint8() + external int lockOnSleep; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int idleTimeout, + required int lockOnSleep, + }) => $allocator() + ..ref.idleTimeout = idleTimeout + ..ref.lockOnSleep = lockOnSleep; +} + +final class cssm_appledl_open_parameters extends ffi.Struct { + @uint32() + external int length; + + @uint32() + external int version; + + @CSSM_BOOL() + external int autoCommit; + + @uint32() + external int mask; + + @mode_t() + external int mode; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int length, + required int version, + required int autoCommit, + required int mask, + required int mode, + }) => $allocator() + ..ref.length = length + ..ref.version = version + ..ref.autoCommit = autoCommit + ..ref.mask = mask + ..ref.mode = mode; +} + +enum cssm_appledl_open_parameters_mask { + kCSSM_APPLEDL_MASK_MODE(1); + + final int value; + const cssm_appledl_open_parameters_mask(this.value); + + static cssm_appledl_open_parameters_mask fromValue(int value) => + switch (value) { + 1 => kCSSM_APPLEDL_MASK_MODE, + _ => throw ArgumentError( + 'Unknown value for cssm_appledl_open_parameters_mask: $value', + ), + }; +} + +final class cssm_authorizationgroup extends ffi.Struct { + @uint32() + external int NumberOfAuthTags; + + external ffi.Pointer AuthTags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfAuthTags, + required ffi.Pointer AuthTags, + }) => $allocator() + ..ref.NumberOfAuthTags = NumberOfAuthTags + ..ref.AuthTags = AuthTags; +} + +@Deprecated('Deprecated') +final class cssm_base_certs extends ffi.Struct { + @CSSM_TP_HANDLE() + external int TPHandle; + + @CSSM_CL_HANDLE() + external int CLHandle; + + external CSSM_CERTGROUP Certs; +} + +@Deprecated('Deprecated') +final class cssm_cert_bundle extends ffi.Struct { + external CSSM_CERT_BUNDLE_HEADER BundleHeader; + + external SecAsn1Item Bundle; +} + +@Deprecated('Deprecated') +final class cssm_cert_bundle_header extends ffi.Struct { + @CSSM_CERT_BUNDLE_TYPE() + external int BundleType; + + @CSSM_CERT_BUNDLE_ENCODING() + external int BundleEncoding; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int BundleType, + required int BundleEncoding, + }) => $allocator() + ..ref.BundleType = BundleType + ..ref.BundleEncoding = BundleEncoding; +} + +@Deprecated('Deprecated') +final class cssm_cert_pair extends ffi.Struct { + external CSSM_ENCODED_CERT EncodedCert; + + external CSSM_PARSED_CERT ParsedCert; +} + +@Deprecated('Deprecated') +final class cssm_certgroup extends ffi.Struct { + @CSSM_CERT_TYPE() + external int CertType; + + @CSSM_CERT_ENCODING() + external int CertEncoding; + + @uint32() + external int NumCerts; + + external UnnamedUnion$1 GroupList; + + @CSSM_CERTGROUP_TYPE() + external int CertGroupType; + + external ffi.Pointer Reserved; +} + +@Deprecated('Deprecated') +final class cssm_context extends ffi.Struct { + @CSSM_CONTEXT_TYPE() + external int ContextType; + + @CSSM_ALGORITHMS() + external int AlgorithmType; + + @uint32() + external int NumberOfAttributes; + + external CSSM_CONTEXT_ATTRIBUTE_PTR ContextAttributes; + + @CSSM_CSP_HANDLE() + external int CSPHandle; + + @CSSM_BOOL() + external int Privileged; + + @uint32() + external int EncryptionProhibited; + + @uint32() + external int WorkFactor; + + @uint32() + external int Reserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ContextType, + required int AlgorithmType, + required int NumberOfAttributes, + required CSSM_CONTEXT_ATTRIBUTE_PTR ContextAttributes, + required int CSPHandle, + required int Privileged, + required int EncryptionProhibited, + required int WorkFactor, + required int Reserved, + }) => $allocator() + ..ref.ContextType = ContextType + ..ref.AlgorithmType = AlgorithmType + ..ref.NumberOfAttributes = NumberOfAttributes + ..ref.ContextAttributes = ContextAttributes + ..ref.CSPHandle = CSPHandle + ..ref.Privileged = Privileged + ..ref.EncryptionProhibited = EncryptionProhibited + ..ref.WorkFactor = WorkFactor + ..ref.Reserved = Reserved; +} + +@Deprecated('Deprecated') +final class cssm_context_attribute extends ffi.Struct { + @CSSM_ATTRIBUTE_TYPE() + external int AttributeType; + + @uint32() + external int AttributeLength; + + external cssm_context_attribute_value Attribute; +} + +@Deprecated('Deprecated') +final class cssm_context_attribute_value extends ffi.Union { + external ffi.Pointer String; + + @uint32() + external int Uint32; + + external CSSM_ACCESS_CREDENTIALS_PTR AccessCredentials; + + external CSSM_KEY_PTR Key; + + external CSSM_DATA_PTR Data; + + @CSSM_PADDING() + external int Padding; + + external CSSM_DATE_PTR Date; + + external CSSM_RANGE_PTR Range; + + external CSSM_CRYPTO_DATA_PTR CryptoData; + + external CSSM_VERSION_PTR Version; + + external CSSM_DL_DB_HANDLE_PTR DLDBHandle; + + external ffi.Pointer KRProfile; +} + +@Deprecated('Deprecated') +final class cssm_crl_pair extends ffi.Struct { + external CSSM_ENCODED_CRL EncodedCrl; + + external CSSM_PARSED_CRL ParsedCrl; +} + +@Deprecated('Deprecated') +final class cssm_crlgroup extends ffi.Struct { + @CSSM_CRL_TYPE() + external int CrlType; + + @CSSM_CRL_ENCODING() + external int CrlEncoding; + + @uint32() + external int NumberOfCrls; + + external UnnamedUnion$2 GroupCrlList; + + @CSSM_CRLGROUP_TYPE() + external int CrlGroupType; +} + +@Deprecated('Deprecated') +final class cssm_crypto_data extends ffi.Struct { + external SecAsn1Item Param; + + external CSSM_CALLBACK Callback; + + external ffi.Pointer CallerCtx; +} + +final class cssm_csp_operational_statistics extends ffi.Struct { + @CSSM_BOOL() + external int UserAuthenticated; + + @CSSM_CSP_FLAGS() + external int DeviceFlags; + + @uint32() + external int TokenMaxSessionCount; + + @uint32() + external int TokenOpenedSessionCount; + + @uint32() + external int TokenMaxRWSessionCount; + + @uint32() + external int TokenOpenedRWSessionCount; + + @uint32() + external int TokenTotalPublicMem; + + @uint32() + external int TokenFreePublicMem; + + @uint32() + external int TokenTotalPrivateMem; + + @uint32() + external int TokenFreePrivateMem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int UserAuthenticated, + required int DeviceFlags, + required int TokenMaxSessionCount, + required int TokenOpenedSessionCount, + required int TokenMaxRWSessionCount, + required int TokenOpenedRWSessionCount, + required int TokenTotalPublicMem, + required int TokenFreePublicMem, + required int TokenTotalPrivateMem, + required int TokenFreePrivateMem, + }) => $allocator() + ..ref.UserAuthenticated = UserAuthenticated + ..ref.DeviceFlags = DeviceFlags + ..ref.TokenMaxSessionCount = TokenMaxSessionCount + ..ref.TokenOpenedSessionCount = TokenOpenedSessionCount + ..ref.TokenMaxRWSessionCount = TokenMaxRWSessionCount + ..ref.TokenOpenedRWSessionCount = TokenOpenedRWSessionCount + ..ref.TokenTotalPublicMem = TokenTotalPublicMem + ..ref.TokenFreePublicMem = TokenFreePublicMem + ..ref.TokenTotalPrivateMem = TokenTotalPrivateMem + ..ref.TokenFreePrivateMem = TokenFreePrivateMem; +} + +final class cssm_data extends ffi.Struct { + @ffi.Size() + external int Length; + + external ffi.Pointer Data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Length, + required ffi.Pointer Data, + }) => $allocator() + ..ref.Length = Length + ..ref.Data = Data; +} + +final class cssm_date extends ffi.Struct { + @ffi.Array.multi([4]) + external ffi.Array Year; + + @ffi.Array.multi([2]) + external ffi.Array Month; + + @ffi.Array.multi([2]) + external ffi.Array Day; +} + +@Deprecated('Deprecated') +final class cssm_db_attribute_data extends ffi.Struct { + external CSSM_DB_ATTRIBUTE_INFO Info; + + @uint32() + external int NumberOfValues; + + external CSSM_DATA_PTR Value; +} + +@Deprecated('Deprecated') +final class cssm_db_attribute_info extends ffi.Struct { + @CSSM_DB_ATTRIBUTE_NAME_FORMAT() + external int AttributeNameFormat; + + external cssm_db_attribute_label Label; + + @CSSM_DB_ATTRIBUTE_FORMAT() + external int AttributeFormat; +} + +@Deprecated('Deprecated') +final class cssm_db_attribute_label extends ffi.Union { + external ffi.Pointer AttributeName; + + external SecAsn1Oid AttributeOID; + + @uint32() + external int AttributeID; +} + +@Deprecated('Deprecated') +final class cssm_db_index_info extends ffi.Struct { + @CSSM_DB_INDEX_TYPE() + external int IndexType; + + @CSSM_DB_INDEXED_DATA_LOCATION() + external int IndexedDataLocation; + + external CSSM_DB_ATTRIBUTE_INFO Info; +} + +@Deprecated('Deprecated') +final class cssm_db_parsing_module_info extends ffi.Struct { + @CSSM_DB_RECORDTYPE() + external int RecordType; + + external CSSM_SUBSERVICE_UID ModuleSubserviceUid; +} + +@Deprecated('Deprecated') +final class cssm_db_record_attribute_data extends ffi.Struct { + @CSSM_DB_RECORDTYPE() + external int DataRecordType; + + @uint32() + external int SemanticInformation; + + @uint32() + external int NumberOfAttributes; + + external CSSM_DB_ATTRIBUTE_DATA_PTR AttributeData; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int DataRecordType, + required int SemanticInformation, + required int NumberOfAttributes, + required CSSM_DB_ATTRIBUTE_DATA_PTR AttributeData, + }) => $allocator() + ..ref.DataRecordType = DataRecordType + ..ref.SemanticInformation = SemanticInformation + ..ref.NumberOfAttributes = NumberOfAttributes + ..ref.AttributeData = AttributeData; +} + +@Deprecated('Deprecated') +final class cssm_db_record_attribute_info extends ffi.Struct { + @CSSM_DB_RECORDTYPE() + external int DataRecordType; + + @uint32() + external int NumberOfAttributes; + + external CSSM_DB_ATTRIBUTE_INFO_PTR AttributeInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int DataRecordType, + required int NumberOfAttributes, + required CSSM_DB_ATTRIBUTE_INFO_PTR AttributeInfo, + }) => $allocator() + ..ref.DataRecordType = DataRecordType + ..ref.NumberOfAttributes = NumberOfAttributes + ..ref.AttributeInfo = AttributeInfo; +} + +@Deprecated('Deprecated') +final class cssm_db_record_index_info extends ffi.Struct { + @CSSM_DB_RECORDTYPE() + external int DataRecordType; + + @uint32() + external int NumberOfIndexes; + + external CSSM_DB_INDEX_INFO_PTR IndexInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int DataRecordType, + required int NumberOfIndexes, + required CSSM_DB_INDEX_INFO_PTR IndexInfo, + }) => $allocator() + ..ref.DataRecordType = DataRecordType + ..ref.NumberOfIndexes = NumberOfIndexes + ..ref.IndexInfo = IndexInfo; +} + +@Deprecated('Deprecated') +final class cssm_db_schema_attribute_info extends ffi.Struct { + @uint32() + external int AttributeId; + + external ffi.Pointer AttributeName; + + external SecAsn1Oid AttributeNameID; + + @CSSM_DB_ATTRIBUTE_FORMAT() + external int DataType; +} + +final class cssm_db_schema_index_info extends ffi.Struct { + @uint32() + external int AttributeId; + + @uint32() + external int IndexId; + + @CSSM_DB_INDEX_TYPE() + external int IndexType; + + @CSSM_DB_INDEXED_DATA_LOCATION() + external int IndexedDataLocation; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int AttributeId, + required int IndexId, + required int IndexType, + required int IndexedDataLocation, + }) => $allocator() + ..ref.AttributeId = AttributeId + ..ref.IndexId = IndexId + ..ref.IndexType = IndexType + ..ref.IndexedDataLocation = IndexedDataLocation; +} + +@Deprecated('Deprecated') +final class cssm_db_unique_record extends ffi.Struct { + external CSSM_DB_INDEX_INFO RecordLocator; + + external SecAsn1Item RecordIdentifier; +} + +@Deprecated('Deprecated') +final class cssm_dbinfo extends ffi.Struct { + @uint32() + external int NumberOfRecordTypes; + + external CSSM_DB_PARSING_MODULE_INFO_PTR DefaultParsingModules; + + external CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR RecordAttributeNames; + + external CSSM_DB_RECORD_INDEX_INFO_PTR RecordIndexes; + + @CSSM_BOOL() + external int IsLocal; + + external ffi.Pointer AccessPath; + + external ffi.Pointer Reserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfRecordTypes, + required CSSM_DB_PARSING_MODULE_INFO_PTR DefaultParsingModules, + required CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR RecordAttributeNames, + required CSSM_DB_RECORD_INDEX_INFO_PTR RecordIndexes, + required int IsLocal, + required ffi.Pointer AccessPath, + required ffi.Pointer Reserved, + }) => $allocator() + ..ref.NumberOfRecordTypes = NumberOfRecordTypes + ..ref.DefaultParsingModules = DefaultParsingModules + ..ref.RecordAttributeNames = RecordAttributeNames + ..ref.RecordIndexes = RecordIndexes + ..ref.IsLocal = IsLocal + ..ref.AccessPath = AccessPath + ..ref.Reserved = Reserved; +} + +final class cssm_dl_db_handle extends ffi.Struct { + @CSSM_DL_HANDLE() + external int DLHandle; + + @CSSM_DB_HANDLE() + external int DBHandle; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int DLHandle, + required int DBHandle, + }) => $allocator() + ..ref.DLHandle = DLHandle + ..ref.DBHandle = DBHandle; +} + +@Deprecated('Deprecated') +final class cssm_dl_db_list extends ffi.Struct { + @uint32() + external int NumHandles; + + external CSSM_DL_DB_HANDLE_PTR DLDBHandle; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumHandles, + required CSSM_DL_DB_HANDLE_PTR DLDBHandle, + }) => $allocator() + ..ref.NumHandles = NumHandles + ..ref.DLDBHandle = DLDBHandle; +} + +final class cssm_dl_pkcs11_attributes extends ffi.Struct { + @uint32() + external int DeviceAccessFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int DeviceAccessFlags, + }) => + $allocator() + ..ref.DeviceAccessFlags = DeviceAccessFlags; +} + +@Deprecated('Deprecated') +final class cssm_encoded_cert extends ffi.Struct { + @CSSM_CERT_TYPE() + external int CertType; + + @CSSM_CERT_ENCODING() + external int CertEncoding; + + external SecAsn1Item CertBlob; +} + +@Deprecated('Deprecated') +final class cssm_encoded_crl extends ffi.Struct { + @CSSM_CRL_TYPE() + external int CrlType; + + @CSSM_CRL_ENCODING() + external int CrlEncoding; + + external SecAsn1Item CrlBlob; +} + +@Deprecated('Deprecated') +final class cssm_evidence extends ffi.Struct { + @CSSM_EVIDENCE_FORM() + external int EvidenceForm; + + external ffi.Pointer Evidence; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int EvidenceForm, + required ffi.Pointer Evidence, + }) => $allocator() + ..ref.EvidenceForm = EvidenceForm + ..ref.Evidence = Evidence; +} + +@Deprecated('Deprecated') +final class cssm_field extends ffi.Struct { + external SecAsn1Oid FieldOid; + + external SecAsn1Item FieldValue; +} + +@Deprecated('Deprecated') +final class cssm_fieldgroup extends ffi.Struct { + @ffi.Int() + external int NumberOfFields; + + external CSSM_FIELD_PTR Fields; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfFields, + required CSSM_FIELD_PTR Fields, + }) => $allocator() + ..ref.NumberOfFields = NumberOfFields + ..ref.Fields = Fields; +} + +final class cssm_func_name_addr extends ffi.Struct { + @ffi.Array.multi([68]) + external ffi.Array Name; + + external CSSM_PROC_ADDR Address; +} + +final class cssm_guid extends ffi.Struct { + @uint32() + external int Data1; + + @uint16() + external int Data2; + + @uint16() + external int Data3; + + @ffi.Array.multi([8]) + external ffi.Array Data4; +} + +@Deprecated('Deprecated') +final class cssm_kea_derive_params extends ffi.Struct { + external SecAsn1Item Rb; + + external SecAsn1Item Yb; +} + +@Deprecated('Deprecated') +final class cssm_key extends ffi.Struct { + external CSSM_KEYHEADER KeyHeader; + + external SecAsn1Item KeyData; +} + +final class cssm_key_size extends ffi.Struct { + @uint32() + external int LogicalKeySizeInBits; + + @uint32() + external int EffectiveKeySizeInBits; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int LogicalKeySizeInBits, + required int EffectiveKeySizeInBits, + }) => $allocator() + ..ref.LogicalKeySizeInBits = LogicalKeySizeInBits + ..ref.EffectiveKeySizeInBits = EffectiveKeySizeInBits; +} + +@Deprecated('Deprecated') +final class cssm_keyheader extends ffi.Struct { + @CSSM_HEADERVERSION() + external int HeaderVersion; + + external CSSM_GUID CspId; + + @CSSM_KEYBLOB_TYPE() + external int BlobType; + + @CSSM_KEYBLOB_FORMAT() + external int Format; + + @CSSM_ALGORITHMS() + external int AlgorithmId; + + @CSSM_KEYCLASS() + external int KeyClass; + + @uint32() + external int LogicalKeySizeInBits; + + @CSSM_KEYATTR_FLAGS() + external int KeyAttr; + + @CSSM_KEYUSE() + external int KeyUsage; + + external CSSM_DATE StartDate; + + external CSSM_DATE EndDate; + + @CSSM_ALGORITHMS() + external int WrapAlgorithmId; + + @CSSM_ENCRYPT_MODE() + external int WrapMode; + + @uint32() + external int Reserved; +} + +final class cssm_kr_name extends ffi.Struct { + @uint8() + external int Type; + + @uint8() + external int Length; + + external ffi.Pointer Name; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Type, + required int Length, + required ffi.Pointer Name, + }) => $allocator() + ..ref.Type = Type + ..ref.Length = Length + ..ref.Name = Name; +} + +@Deprecated('Deprecated') +final class cssm_kr_policy_info extends ffi.Struct { + @CSSM_BOOL() + external int krbNotAllowed; + + @uint32() + external int numberOfEntries; + + external ffi.Pointer policyEntry; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int krbNotAllowed, + required int numberOfEntries, + required ffi.Pointer policyEntry, + }) => $allocator() + ..ref.krbNotAllowed = krbNotAllowed + ..ref.numberOfEntries = numberOfEntries + ..ref.policyEntry = policyEntry; +} + +@Deprecated('Deprecated') +final class cssm_kr_policy_list_item extends ffi.Struct { + external ffi.Pointer next; + + @CSSM_ALGORITHMS() + external int AlgorithmId; + + @CSSM_ENCRYPT_MODE() + external int Mode; + + @uint32() + external int MaxKeyLength; + + @uint32() + external int MaxRounds; + + @uint8() + external int WorkFactor; + + @CSSM_KR_POLICY_FLAGS() + external int PolicyFlags; + + @CSSM_CONTEXT_TYPE() + external int AlgClass; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer next, + required int AlgorithmId, + required int Mode, + required int MaxKeyLength, + required int MaxRounds, + required int WorkFactor, + required int PolicyFlags, + required int AlgClass, + }) => $allocator() + ..ref.next = next + ..ref.AlgorithmId = AlgorithmId + ..ref.Mode = Mode + ..ref.MaxKeyLength = MaxKeyLength + ..ref.MaxRounds = MaxRounds + ..ref.WorkFactor = WorkFactor + ..ref.PolicyFlags = PolicyFlags + ..ref.AlgClass = AlgClass; +} + +@Deprecated('Deprecated') +final class cssm_kr_profile extends ffi.Struct { + external CSSM_KR_NAME UserName; + + external CSSM_CERTGROUP_PTR UserCertificate; + + external CSSM_CERTGROUP_PTR KRSCertChain; + + @uint8() + external int LE_KRANum; + + external CSSM_CERTGROUP_PTR LE_KRACertChainList; + + @uint8() + external int ENT_KRANum; + + external CSSM_CERTGROUP_PTR ENT_KRACertChainList; + + @uint8() + external int INDIV_KRANum; + + external CSSM_CERTGROUP_PTR INDIV_KRACertChainList; + + external CSSM_DATA_PTR INDIV_AuthenticationInfo; + + @uint32() + external int KRSPFlags; + + external CSSM_DATA_PTR KRSPExtensions; +} + +@Deprecated('Deprecated') +final class cssm_kr_wrappedproductinfo extends ffi.Struct { + external CSSM_VERSION StandardVersion; + + @ffi.Array.multi([68]) + external ffi.Array StandardDescription; + + external CSSM_VERSION ProductVersion; + + @ffi.Array.multi([68]) + external ffi.Array ProductDescription; + + @ffi.Array.multi([68]) + external ffi.Array ProductVendor; + + @uint32() + external int ProductFlags; +} + +@Deprecated('Deprecated') +final class cssm_krsubservice extends ffi.Struct { + @uint32() + external int SubServiceId; + + external ffi.Pointer Description; + + external CSSM_KR_WRAPPEDPRODUCT_INFO WrappedProduct; +} + +final class cssm_list extends ffi.Struct { + @CSSM_LIST_TYPE() + external int ListType; + + external CSSM_LIST_ELEMENT_PTR Head; + + external CSSM_LIST_ELEMENT_PTR Tail; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ListType, + required CSSM_LIST_ELEMENT_PTR Head, + required CSSM_LIST_ELEMENT_PTR Tail, + }) => $allocator() + ..ref.ListType = ListType + ..ref.Head = Head + ..ref.Tail = Tail; +} + +@Deprecated('Deprecated') +final class cssm_list_element extends ffi.Struct { + external ffi.Pointer NextElement; + + @CSSM_WORDID_TYPE() + external int WordID; + + @CSSM_LIST_ELEMENT_TYPE() + external int ElementType; + + external UnnamedUnion Element; +} + +@Deprecated('Deprecated') +final class cssm_manager_event_notification extends ffi.Struct { + @CSSM_SERVICE_MASK() + external int DestinationModuleManagerType; + + @CSSM_SERVICE_MASK() + external int SourceModuleManagerType; + + @CSSM_MANAGER_EVENT_TYPES() + external int Event; + + @uint32() + external int EventId; + + external SecAsn1Item EventData; +} + +@Deprecated('Deprecated') +final class cssm_manager_registration_info extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction + > + Initialize; + + external ffi.Pointer> Terminate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_STATE_FUNCS_PTR CssmStateCallTable) + > + > + RegisterDispatchTable; + + external ffi.Pointer> + DeregisterDispatchTable; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer EventDescription, + ) + > + > + EventNotifyManager; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_FUNC_NAME_ADDR_PTR FuncNameAddrPtr, + uint32 NumOfFuncNameAddr, + ) + > + > + RefreshFunctionTable; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction + > + Initialize, + required ffi.Pointer> Terminate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_STATE_FUNCS_PTR CssmStateCallTable) + > + > + RegisterDispatchTable, + required ffi.Pointer> + DeregisterDispatchTable, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer EventDescription, + ) + > + > + EventNotifyManager, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_FUNC_NAME_ADDR_PTR FuncNameAddrPtr, + uint32 NumOfFuncNameAddr, + ) + > + > + RefreshFunctionTable, + }) => $allocator() + ..ref.Initialize = Initialize + ..ref.Terminate = Terminate + ..ref.RegisterDispatchTable = RegisterDispatchTable + ..ref.DeregisterDispatchTable = DeregisterDispatchTable + ..ref.EventNotifyManager = EventNotifyManager + ..ref.RefreshFunctionTable = RefreshFunctionTable; +} + +final class cssm_memory_funcs extends ffi.Struct { + external CSSM_MALLOC malloc_func; + + external CSSM_FREE free_func; + + external CSSM_REALLOC realloc_func; + + external CSSM_CALLOC calloc_func; + + external ffi.Pointer AllocRef; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CSSM_MALLOC malloc_func, + required CSSM_FREE free_func, + required CSSM_REALLOC realloc_func, + required CSSM_CALLOC calloc_func, + required ffi.Pointer AllocRef, + }) => $allocator() + ..ref.malloc_func = malloc_func + ..ref.free_func = free_func + ..ref.realloc_func = realloc_func + ..ref.calloc_func = calloc_func + ..ref.AllocRef = AllocRef; +} + +@Deprecated('Deprecated') +final class cssm_module_funcs extends ffi.Struct { + @CSSM_SERVICE_TYPE() + external int ServiceType; + + @uint32() + external int NumberOfServiceFuncs; + + external ffi.Pointer ServiceFuncs; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ServiceType, + required int NumberOfServiceFuncs, + required ffi.Pointer ServiceFuncs, + }) => $allocator() + ..ref.ServiceType = ServiceType + ..ref.NumberOfServiceFuncs = NumberOfServiceFuncs + ..ref.ServiceFuncs = ServiceFuncs; +} + +final class cssm_name_list extends ffi.Struct { + @uint32() + external int NumStrings; + + external ffi.Pointer> String; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumStrings, + required ffi.Pointer> String, + }) => $allocator() + ..ref.NumStrings = NumStrings + ..ref.String = String; +} + +@Deprecated('Deprecated') +final class cssm_net_address extends ffi.Struct { + @CSSM_NET_ADDRESS_TYPE() + external int AddressType; + + external SecAsn1Item Address; +} + +final class cssm_parsed_cert extends ffi.Struct { + @CSSM_CERT_TYPE() + external int CertType; + + @CSSM_CERT_PARSE_FORMAT() + external int ParsedCertFormat; + + external ffi.Pointer ParsedCert; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CertType, + required int ParsedCertFormat, + required ffi.Pointer ParsedCert, + }) => $allocator() + ..ref.CertType = CertType + ..ref.ParsedCertFormat = ParsedCertFormat + ..ref.ParsedCert = ParsedCert; +} + +final class cssm_parsed_crl extends ffi.Struct { + @CSSM_CRL_TYPE() + external int CrlType; + + @CSSM_CRL_PARSE_FORMAT() + external int ParsedCrlFormat; + + external ffi.Pointer ParsedCrl; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CrlType, + required int ParsedCrlFormat, + required ffi.Pointer ParsedCrl, + }) => $allocator() + ..ref.CrlType = CrlType + ..ref.ParsedCrlFormat = ParsedCrlFormat + ..ref.ParsedCrl = ParsedCrl; +} + +@Deprecated('Deprecated') +final class cssm_pkcs1_oaep_params extends ffi.Struct { + @uint32() + external int HashAlgorithm; + + external SecAsn1Item HashParams; + + @CSSM_PKCS_OAEP_MGF() + external int MGF; + + external SecAsn1Item MGFParams; + + @CSSM_PKCS_OAEP_PSOURCE() + external int PSource; + + external SecAsn1Item PSourceParams; +} + +@Deprecated('Deprecated') +final class cssm_pkcs5_pbkdf1_params extends ffi.Struct { + external SecAsn1Item Passphrase; + + external SecAsn1Item InitVector; +} + +@Deprecated('Deprecated') +final class cssm_pkcs5_pbkdf2_params extends ffi.Struct { + external SecAsn1Item Passphrase; + + @CSSM_PKCS5_PBKDF2_PRF() + external int PseudoRandomFunction; +} + +@Deprecated('Deprecated') +final class cssm_query extends ffi.Struct { + @CSSM_DB_RECORDTYPE() + external int RecordType; + + @CSSM_DB_CONJUNCTIVE() + external int Conjunctive; + + @uint32() + external int NumSelectionPredicates; + + external CSSM_SELECTION_PREDICATE_PTR SelectionPredicate; + + external CSSM_QUERY_LIMITS QueryLimits; + + @CSSM_QUERY_FLAGS() + external int QueryFlags; +} + +@Deprecated('Deprecated') +final class cssm_query_limits extends ffi.Struct { + @uint32() + external int TimeLimit; + + @uint32() + external int SizeLimit; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int TimeLimit, + required int SizeLimit, + }) => $allocator() + ..ref.TimeLimit = TimeLimit + ..ref.SizeLimit = SizeLimit; +} + +final class cssm_query_size_data extends ffi.Struct { + @uint32() + external int SizeInputBlock; + + @uint32() + external int SizeOutputBlock; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int SizeInputBlock, + required int SizeOutputBlock, + }) => $allocator() + ..ref.SizeInputBlock = SizeInputBlock + ..ref.SizeOutputBlock = SizeOutputBlock; +} + +final class cssm_range extends ffi.Struct { + @uint32() + external int Min; + + @uint32() + external int Max; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Min, + required int Max, + }) => $allocator() + ..ref.Min = Min + ..ref.Max = Max; +} + +@Deprecated('Deprecated') +final class cssm_resource_control_context extends ffi.Struct { + external CSSM_ACCESS_CREDENTIALS_PTR AccessCred; + + external CSSM_ACL_ENTRY_INPUT InitialAclEntry; +} + +@Deprecated('Deprecated') +final class cssm_sample extends ffi.Struct { + external CSSM_LIST TypedSample; + + external ffi.Pointer Verifier; +} + +@Deprecated('Deprecated') +final class cssm_samplegroup extends ffi.Struct { + @uint32() + external int NumberOfSamples; + + external ffi.Pointer Samples; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfSamples, + required ffi.Pointer Samples, + }) => $allocator() + ..ref.NumberOfSamples = NumberOfSamples + ..ref.Samples = Samples; +} + +@Deprecated('Deprecated') +final class cssm_selection_predicate extends ffi.Struct { + @CSSM_DB_OPERATOR() + external int DbOperator; + + external CSSM_DB_ATTRIBUTE_DATA Attribute; +} + +@Deprecated('Deprecated') +final class cssm_spi_ac_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_AC_HANDLE ACHandle, + ffi.Pointer BaseAuthorizations, + ffi.Pointer Credentials, + uint32 NumberOfRequestors, + ffi.Pointer Requestors, + ffi.Pointer RequestedAuthorizationPeriod, + ffi.Pointer RequestedAuthorization, + CSSM_TUPLEGROUP_PTR AuthorizationResult, + ) + > + > + AuthCompute; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_AC_HANDLE ACHandle, + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DBList, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_AC_HANDLE ACHandle, + ffi.Pointer BaseAuthorizations, + ffi.Pointer Credentials, + uint32 NumberOfRequestors, + ffi.Pointer Requestors, + ffi.Pointer RequestedAuthorizationPeriod, + ffi.Pointer RequestedAuthorization, + CSSM_TUPLEGROUP_PTR AuthorizationResult, + ) + > + > + AuthCompute, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_AC_HANDLE ACHandle, + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DBList, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough, + }) => $allocator() + ..ref.AuthCompute = AuthCompute + ..ref.PassThrough = PassThrough; +} + +@Deprecated('Deprecated') +final class cssm_spi_cl_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, + ) + > + > + CertCreateTemplate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllTemplateFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertTemplate, + ffi.Pointer SignScope, + uint32 ScopeSize, + CSSM_DATA_PTR SignedCert, + ) + > + > + CertSign; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + uint32 ScopeSize, + ) + > + > + CertVerify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertToBeVerified, + ) + > + > + CertVerifyWithKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CertGetFirstFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CertGetNextFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) + > + > + CertAbortQuery; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer Key, + ) + > + > + CertGetKeyInfo; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer FieldArray, + ) + > + > + FreeFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertOrCrlOid, + CSSM_DATA_PTR Value, + ) + > + > + FreeFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + CSSM_HANDLE_PTR CertHandle, + ) + > + > + CertCache; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CertHandle, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CertGetFirstCachedFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CertGetNextCachedFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CertHandle) + > + > + CertAbortCache; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertGroupToBundle, + ffi.Pointer BundleInfo, + CSSM_DATA_PTR SignedBundle, + ) + > + > + CertGroupToSignedBundle; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertBundle, + ffi.Pointer SignerCert, + ffi.Pointer CertGroup, + ) + > + > + CertGroupFromVerifiedBundle; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, + ) + > + > + CertDescribeFormat; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlTemplate, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlCreateTemplate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlTemplate, + ffi.Pointer OldCrl, + CSSM_DATA_PTR ModifiedCrl, + ) + > + > + CrlSetFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Cert, + uint32 NumberOfFields, + ffi.Pointer CrlEntryFields, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlAddCert; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlRemoveCert; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer UnsignedCrl, + ffi.Pointer SignScope, + uint32 ScopeSize, + CSSM_DATA_PTR SignedCrl, + ) + > + > + CrlSign; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + uint32 ScopeSize, + ) + > + > + CrlVerify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeVerified, + ) + > + > + CrlVerifyWithKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer Crl, + ffi.Pointer CertFound, + ) + > + > + IsCertInCrl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CrlGetFirstFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CrlGetNextFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) + > + > + CrlAbortQuery; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + ffi.Pointer NumberOfCrlFields, + ffi.Pointer CrlFields, + ) + > + > + CrlGetAllFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + CSSM_HANDLE_PTR CrlHandle, + ) + > + > + CrlCache; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + CSSM_HANDLE CrlHandle, + ffi.Pointer CertFound, + CSSM_DATA_PTR CrlRecordIndex, + ) + > + > + IsCertInCachedCrl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CrlGetFirstCachedFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CrlGetNextCachedFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer NumberOfFields, + ffi.Pointer CrlFields, + ) + > + > + CrlGetAllCachedRecordFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CrlHandle) + > + > + CrlAbortCache; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, + ) + > + > + CrlDescribeFormat; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, + ) + > + > + CertCreateTemplate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllTemplateFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertTemplate, + ffi.Pointer SignScope, + uint32 ScopeSize, + CSSM_DATA_PTR SignedCert, + ) + > + > + CertSign, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + uint32 ScopeSize, + ) + > + > + CertVerify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertToBeVerified, + ) + > + > + CertVerifyWithKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CertGetFirstFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CertGetNextFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) + > + > + CertAbortQuery, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer Key, + ) + > + > + CertGetKeyInfo, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer FieldArray, + ) + > + > + FreeFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertOrCrlOid, + CSSM_DATA_PTR Value, + ) + > + > + FreeFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + CSSM_HANDLE_PTR CertHandle, + ) + > + > + CertCache, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CertHandle, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CertGetFirstCachedFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CertGetNextCachedFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CertHandle) + > + > + CertAbortCache, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertGroupToBundle, + ffi.Pointer BundleInfo, + CSSM_DATA_PTR SignedBundle, + ) + > + > + CertGroupToSignedBundle, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertBundle, + ffi.Pointer SignerCert, + ffi.Pointer CertGroup, + ) + > + > + CertGroupFromVerifiedBundle, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, + ) + > + > + CertDescribeFormat, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlTemplate, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlCreateTemplate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlTemplate, + ffi.Pointer OldCrl, + CSSM_DATA_PTR ModifiedCrl, + ) + > + > + CrlSetFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Cert, + uint32 NumberOfFields, + ffi.Pointer CrlEntryFields, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlAddCert, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlRemoveCert, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer UnsignedCrl, + ffi.Pointer SignScope, + uint32 ScopeSize, + CSSM_DATA_PTR SignedCrl, + ) + > + > + CrlSign, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + uint32 ScopeSize, + ) + > + > + CrlVerify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeVerified, + ) + > + > + CrlVerifyWithKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer Crl, + ffi.Pointer CertFound, + ) + > + > + IsCertInCrl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CrlGetFirstFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CrlGetNextFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) + > + > + CrlAbortQuery, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + ffi.Pointer NumberOfCrlFields, + ffi.Pointer CrlFields, + ) + > + > + CrlGetAllFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + CSSM_HANDLE_PTR CrlHandle, + ) + > + > + CrlCache, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + CSSM_HANDLE CrlHandle, + ffi.Pointer CertFound, + CSSM_DATA_PTR CrlRecordIndex, + ) + > + > + IsCertInCachedCrl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CrlGetFirstCachedFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CrlGetNextCachedFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer NumberOfFields, + ffi.Pointer CrlFields, + ) + > + > + CrlGetAllCachedRecordFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CrlHandle) + > + > + CrlAbortCache, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, + ) + > + > + CrlDescribeFormat, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough, + }) => $allocator() + ..ref.CertCreateTemplate = CertCreateTemplate + ..ref.CertGetAllTemplateFields = CertGetAllTemplateFields + ..ref.CertSign = CertSign + ..ref.CertVerify = CertVerify + ..ref.CertVerifyWithKey = CertVerifyWithKey + ..ref.CertGetFirstFieldValue = CertGetFirstFieldValue + ..ref.CertGetNextFieldValue = CertGetNextFieldValue + ..ref.CertAbortQuery = CertAbortQuery + ..ref.CertGetKeyInfo = CertGetKeyInfo + ..ref.CertGetAllFields = CertGetAllFields + ..ref.FreeFields = FreeFields + ..ref.FreeFieldValue = FreeFieldValue + ..ref.CertCache = CertCache + ..ref.CertGetFirstCachedFieldValue = CertGetFirstCachedFieldValue + ..ref.CertGetNextCachedFieldValue = CertGetNextCachedFieldValue + ..ref.CertAbortCache = CertAbortCache + ..ref.CertGroupToSignedBundle = CertGroupToSignedBundle + ..ref.CertGroupFromVerifiedBundle = CertGroupFromVerifiedBundle + ..ref.CertDescribeFormat = CertDescribeFormat + ..ref.CrlCreateTemplate = CrlCreateTemplate + ..ref.CrlSetFields = CrlSetFields + ..ref.CrlAddCert = CrlAddCert + ..ref.CrlRemoveCert = CrlRemoveCert + ..ref.CrlSign = CrlSign + ..ref.CrlVerify = CrlVerify + ..ref.CrlVerifyWithKey = CrlVerifyWithKey + ..ref.IsCertInCrl = IsCertInCrl + ..ref.CrlGetFirstFieldValue = CrlGetFirstFieldValue + ..ref.CrlGetNextFieldValue = CrlGetNextFieldValue + ..ref.CrlAbortQuery = CrlAbortQuery + ..ref.CrlGetAllFields = CrlGetAllFields + ..ref.CrlCache = CrlCache + ..ref.IsCertInCachedCrl = IsCertInCachedCrl + ..ref.CrlGetFirstCachedFieldValue = CrlGetFirstCachedFieldValue + ..ref.CrlGetNextCachedFieldValue = CrlGetNextCachedFieldValue + ..ref.CrlGetAllCachedRecordFields = CrlGetAllCachedRecordFields + ..ref.CrlAbortCache = CrlAbortCache + ..ref.CrlDescribeFormat = CrlDescribeFormat + ..ref.PassThrough = PassThrough; +} + +@Deprecated('Deprecated') +final class cssm_spi_csp_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CONTEXT_EVENT Event, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + EventNotify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_BOOL Encrypt, + uint32 QuerySizeCount, + CSSM_QUERY_SIZE_DATA_PTR DataBlock, + ) + > + > + QuerySize; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_ALGORITHMS DigestAlgorithm, + CSSM_DATA_PTR Signature, + ) + > + > + SignData; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + SignDataInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + SignDataUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Signature, + ) + > + > + SignDataFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_ALGORITHMS DigestAlgorithm, + ffi.Pointer Signature, + ) + > + > + VerifyData; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + VerifyDataInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + VerifyDataUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Signature, + ) + > + > + VerifyDataFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_DATA_PTR Digest, + ) + > + > + DigestData; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + DigestDataInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + DigestDataUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_CC_HANDLE ClonedCCHandle, + ) + > + > + DigestDataClone; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Digest, + ) + > + > + DigestDataFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_DATA_PTR Mac, + ) + > + > + GenerateMac; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + GenerateMacInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + GenerateMacUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Mac, + ) + > + > + GenerateMacFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ffi.Pointer Mac, + ) + > + > + VerifyMac; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + VerifyMacInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + VerifyMacUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Mac, + ) + > + > + VerifyMacFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer ClearBufs, + uint32 ClearBufCount, + CSSM_DATA_PTR CipherBufs, + uint32 CipherBufCount, + ffi.Pointer bytesEncrypted, + CSSM_DATA_PTR RemData, + CSSM_PRIVILEGE Privilege, + ) + > + > + EncryptData; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_PRIVILEGE Privilege, + ) + > + > + EncryptDataInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer ClearBufs, + uint32 ClearBufCount, + CSSM_DATA_PTR CipherBufs, + uint32 CipherBufCount, + ffi.Pointer bytesEncrypted, + ) + > + > + EncryptDataUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR RemData, + ) + > + > + EncryptDataFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer CipherBufs, + uint32 CipherBufCount, + CSSM_DATA_PTR ClearBufs, + uint32 ClearBufCount, + ffi.Pointer bytesDecrypted, + CSSM_DATA_PTR RemData, + CSSM_PRIVILEGE Privilege, + ) + > + > + DecryptData; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_PRIVILEGE Privilege, + ) + > + > + DecryptDataInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CipherBufs, + uint32 CipherBufCount, + CSSM_DATA_PTR ClearBufs, + uint32 ClearBufCount, + ffi.Pointer bytesDecrypted, + ) + > + > + DecryptDataUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR RemData, + ) + > + > + DecryptDataFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer Key, + CSSM_KEY_SIZE_PTR KeySize, + ) + > + > + QueryKeySizeInBits; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR Key, + CSSM_PRIVILEGE Privilege, + ) + > + > + GenerateKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 PublicKeyUsage, + uint32 PublicKeyAttr, + ffi.Pointer PublicKeyLabel, + CSSM_KEY_PTR PublicKey, + uint32 PrivateKeyUsage, + uint32 PrivateKeyAttr, + ffi.Pointer PrivateKeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR PrivateKey, + CSSM_PRIVILEGE Privilege, + ) + > + > + GenerateKeyPair; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_DATA_PTR RandomNumber, + ) + > + > + GenerateRandom; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 ParamBits, + CSSM_DATA_PTR Param, + ffi.Pointer NumberOfUpdatedAttibutes, + ffi.Pointer UpdatedAttributes, + ) + > + > + GenerateAlgorithmParams; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer DescriptiveData, + CSSM_WRAP_KEY_PTR WrappedKey, + CSSM_PRIVILEGE Privilege, + ) + > + > + WrapKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer PublicKey, + ffi.Pointer WrappedKey, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR UnwrappedKey, + CSSM_DATA_PTR DescriptiveData, + CSSM_PRIVILEGE Privilege, + ) + > + > + UnwrapKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_DATA_PTR Param, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR DerivedKey, + ) + > + > + DeriveKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + CSSM_KEY_PTR KeyPtr, + CSSM_BOOL Delete, + ) + > + > + FreeKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 PassThroughId, + ffi.Pointer InData, + ffi.Pointer> OutData, + ) + > + > + PassThrough; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer LoginName, + ffi.Pointer Reserved, + ) + > + > + Login; + + external ffi.Pointer< + ffi.NativeFunction + > + Logout; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ) + > + > + ChangeLoginAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer PublicKey, + CSSM_KEY_PTR PrivateKey, + ) + > + > + ObtainPrivateKeyFromPublicKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR UniqueID$1) + > + > + RetrieveUniqueId; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR Counter) + > + > + RetrieveCounter; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer DeviceCert, + ) + > + > + VerifyDevice; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_ALGORITHMS TimeAlgorithm, + ffi.Pointer TimeData, + ) + > + > + GetTimeValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Statistics, + ) + > + > + GetOperationalStatistics; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetLoginAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Key, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetKeyAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ffi.Pointer Key, + ) + > + > + ChangeKeyAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Key, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetKeyOwner; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer NewOwner, + ) + > + > + ChangeKeyOwner; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetLoginOwner; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, + ) + > + > + ChangeLoginOwner; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CONTEXT_EVENT Event, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + EventNotify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_BOOL Encrypt, + uint32 QuerySizeCount, + CSSM_QUERY_SIZE_DATA_PTR DataBlock, + ) + > + > + QuerySize, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_ALGORITHMS DigestAlgorithm, + CSSM_DATA_PTR Signature, + ) + > + > + SignData, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + SignDataInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + SignDataUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Signature, + ) + > + > + SignDataFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_ALGORITHMS DigestAlgorithm, + ffi.Pointer Signature, + ) + > + > + VerifyData, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + VerifyDataInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + VerifyDataUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Signature, + ) + > + > + VerifyDataFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_DATA_PTR Digest, + ) + > + > + DigestData, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + DigestDataInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + DigestDataUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_CC_HANDLE ClonedCCHandle, + ) + > + > + DigestDataClone, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Digest, + ) + > + > + DigestDataFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_DATA_PTR Mac, + ) + > + > + GenerateMac, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + GenerateMacInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + GenerateMacUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Mac, + ) + > + > + GenerateMacFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ffi.Pointer Mac, + ) + > + > + VerifyMac, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + VerifyMacInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + VerifyMacUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Mac, + ) + > + > + VerifyMacFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer ClearBufs, + uint32 ClearBufCount, + CSSM_DATA_PTR CipherBufs, + uint32 CipherBufCount, + ffi.Pointer bytesEncrypted, + CSSM_DATA_PTR RemData, + CSSM_PRIVILEGE Privilege, + ) + > + > + EncryptData, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_PRIVILEGE Privilege, + ) + > + > + EncryptDataInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer ClearBufs, + uint32 ClearBufCount, + CSSM_DATA_PTR CipherBufs, + uint32 CipherBufCount, + ffi.Pointer bytesEncrypted, + ) + > + > + EncryptDataUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR RemData, + ) + > + > + EncryptDataFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer CipherBufs, + uint32 CipherBufCount, + CSSM_DATA_PTR ClearBufs, + uint32 ClearBufCount, + ffi.Pointer bytesDecrypted, + CSSM_DATA_PTR RemData, + CSSM_PRIVILEGE Privilege, + ) + > + > + DecryptData, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_PRIVILEGE Privilege, + ) + > + > + DecryptDataInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CipherBufs, + uint32 CipherBufCount, + CSSM_DATA_PTR ClearBufs, + uint32 ClearBufCount, + ffi.Pointer bytesDecrypted, + ) + > + > + DecryptDataUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR RemData, + ) + > + > + DecryptDataFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer Key, + CSSM_KEY_SIZE_PTR KeySize, + ) + > + > + QueryKeySizeInBits, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR Key, + CSSM_PRIVILEGE Privilege, + ) + > + > + GenerateKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 PublicKeyUsage, + uint32 PublicKeyAttr, + ffi.Pointer PublicKeyLabel, + CSSM_KEY_PTR PublicKey, + uint32 PrivateKeyUsage, + uint32 PrivateKeyAttr, + ffi.Pointer PrivateKeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR PrivateKey, + CSSM_PRIVILEGE Privilege, + ) + > + > + GenerateKeyPair, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_DATA_PTR RandomNumber, + ) + > + > + GenerateRandom, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 ParamBits, + CSSM_DATA_PTR Param, + ffi.Pointer NumberOfUpdatedAttibutes, + ffi.Pointer UpdatedAttributes, + ) + > + > + GenerateAlgorithmParams, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer DescriptiveData, + CSSM_WRAP_KEY_PTR WrappedKey, + CSSM_PRIVILEGE Privilege, + ) + > + > + WrapKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer PublicKey, + ffi.Pointer WrappedKey, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR UnwrappedKey, + CSSM_DATA_PTR DescriptiveData, + CSSM_PRIVILEGE Privilege, + ) + > + > + UnwrapKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_DATA_PTR Param, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR DerivedKey, + ) + > + > + DeriveKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + CSSM_KEY_PTR KeyPtr, + CSSM_BOOL Delete, + ) + > + > + FreeKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 PassThroughId, + ffi.Pointer InData, + ffi.Pointer> OutData, + ) + > + > + PassThrough, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer LoginName, + ffi.Pointer Reserved, + ) + > + > + Login, + required ffi.Pointer< + ffi.NativeFunction + > + Logout, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ) + > + > + ChangeLoginAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer PublicKey, + CSSM_KEY_PTR PrivateKey, + ) + > + > + ObtainPrivateKeyFromPublicKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_DATA_PTR UniqueID$1, + ) + > + > + RetrieveUniqueId, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR Counter) + > + > + RetrieveCounter, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer DeviceCert, + ) + > + > + VerifyDevice, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_ALGORITHMS TimeAlgorithm, + ffi.Pointer TimeData, + ) + > + > + GetTimeValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Statistics, + ) + > + > + GetOperationalStatistics, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetLoginAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Key, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetKeyAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ffi.Pointer Key, + ) + > + > + ChangeKeyAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Key, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetKeyOwner, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer NewOwner, + ) + > + > + ChangeKeyOwner, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetLoginOwner, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, + ) + > + > + ChangeLoginOwner, + }) => $allocator() + ..ref.EventNotify = EventNotify + ..ref.QuerySize = QuerySize + ..ref.SignData = SignData + ..ref.SignDataInit = SignDataInit + ..ref.SignDataUpdate = SignDataUpdate + ..ref.SignDataFinal = SignDataFinal + ..ref.VerifyData = VerifyData + ..ref.VerifyDataInit = VerifyDataInit + ..ref.VerifyDataUpdate = VerifyDataUpdate + ..ref.VerifyDataFinal = VerifyDataFinal + ..ref.DigestData = DigestData + ..ref.DigestDataInit = DigestDataInit + ..ref.DigestDataUpdate = DigestDataUpdate + ..ref.DigestDataClone = DigestDataClone + ..ref.DigestDataFinal = DigestDataFinal + ..ref.GenerateMac = GenerateMac + ..ref.GenerateMacInit = GenerateMacInit + ..ref.GenerateMacUpdate = GenerateMacUpdate + ..ref.GenerateMacFinal = GenerateMacFinal + ..ref.VerifyMac = VerifyMac + ..ref.VerifyMacInit = VerifyMacInit + ..ref.VerifyMacUpdate = VerifyMacUpdate + ..ref.VerifyMacFinal = VerifyMacFinal + ..ref.EncryptData = EncryptData + ..ref.EncryptDataInit = EncryptDataInit + ..ref.EncryptDataUpdate = EncryptDataUpdate + ..ref.EncryptDataFinal = EncryptDataFinal + ..ref.DecryptData = DecryptData + ..ref.DecryptDataInit = DecryptDataInit + ..ref.DecryptDataUpdate = DecryptDataUpdate + ..ref.DecryptDataFinal = DecryptDataFinal + ..ref.QueryKeySizeInBits = QueryKeySizeInBits + ..ref.GenerateKey = GenerateKey + ..ref.GenerateKeyPair = GenerateKeyPair + ..ref.GenerateRandom = GenerateRandom + ..ref.GenerateAlgorithmParams = GenerateAlgorithmParams + ..ref.WrapKey = WrapKey + ..ref.UnwrapKey = UnwrapKey + ..ref.DeriveKey = DeriveKey + ..ref.FreeKey = FreeKey + ..ref.PassThrough = PassThrough + ..ref.Login = Login + ..ref.Logout = Logout + ..ref.ChangeLoginAcl = ChangeLoginAcl + ..ref.ObtainPrivateKeyFromPublicKey = ObtainPrivateKeyFromPublicKey + ..ref.RetrieveUniqueId = RetrieveUniqueId + ..ref.RetrieveCounter = RetrieveCounter + ..ref.VerifyDevice = VerifyDevice + ..ref.GetTimeValue = GetTimeValue + ..ref.GetOperationalStatistics = GetOperationalStatistics + ..ref.GetLoginAcl = GetLoginAcl + ..ref.GetKeyAcl = GetKeyAcl + ..ref.ChangeKeyAcl = ChangeKeyAcl + ..ref.GetKeyOwner = GetKeyOwner + ..ref.ChangeKeyOwner = ChangeKeyOwner + ..ref.GetLoginOwner = GetLoginOwner + ..ref.ChangeLoginOwner = ChangeLoginOwner; +} + +@Deprecated('Deprecated') +final class cssm_spi_dl_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, + ) + > + > + DbOpen; + + external ffi.Pointer< + ffi.NativeFunction + > + DbClose; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer DBInfo, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer CredAndAclEntry, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, + ) + > + > + DbCreate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer AccessCred, + ) + > + > + DbDelete; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RelationID, + ffi.Pointer RelationName, + uint32 NumberOfAttributes, + ffi.Pointer pAttributeInfo, + uint32 NumberOfIndexes, + ffi.Pointer pIndexInfo, + ) + > + > + CreateRelation; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RelationID, + ) + > + > + DestroyRelation; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ) + > + > + Authenticate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetDbAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ) + > + > + ChangeDbAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetDbOwner; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, + ) + > + > + ChangeDbOwner; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer NameList, + ) + > + > + GetDbNames; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> DbName, + ) + > + > + GetDbNameFromHandle; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_DL_HANDLE DLHandle, CSSM_NAME_LIST_PTR NameList) + > + > + FreeNameList; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RecordType, + ffi.Pointer Attributes, + ffi.Pointer Data, + ffi.Pointer UniqueId, + ) + > + > + DataInsert; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecordIdentifier, + ) + > + > + DataDelete; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RecordType, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, + ffi.Pointer AttributesToBeModified, + ffi.Pointer DataToBeModified, + CSSM_DB_MODIFY_MODE ModifyMode, + ) + > + > + DataModify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer Query, + CSSM_HANDLE_PTR ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetFirst; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_HANDLE ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetNext; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_HANDLE ResultsHandle, + ) + > + > + DataAbortQuery; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecord, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ) + > + > + DataGetFromUniqueRecordId; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, + ) + > + > + FreeUniqueRecord; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, + ) + > + > + DbOpen, + required ffi.Pointer< + ffi.NativeFunction + > + DbClose, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer DBInfo, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer CredAndAclEntry, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, + ) + > + > + DbCreate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer AccessCred, + ) + > + > + DbDelete, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RelationID, + ffi.Pointer RelationName, + uint32 NumberOfAttributes, + ffi.Pointer pAttributeInfo, + uint32 NumberOfIndexes, + ffi.Pointer pIndexInfo, + ) + > + > + CreateRelation, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RelationID, + ) + > + > + DestroyRelation, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ) + > + > + Authenticate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetDbAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ) + > + > + ChangeDbAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetDbOwner, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, + ) + > + > + ChangeDbOwner, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer NameList, + ) + > + > + GetDbNames, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> DbName, + ) + > + > + GetDbNameFromHandle, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + CSSM_NAME_LIST_PTR NameList, + ) + > + > + FreeNameList, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RecordType, + ffi.Pointer Attributes, + ffi.Pointer Data, + ffi.Pointer UniqueId, + ) + > + > + DataInsert, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecordIdentifier, + ) + > + > + DataDelete, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RecordType, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, + ffi.Pointer AttributesToBeModified, + ffi.Pointer DataToBeModified, + CSSM_DB_MODIFY_MODE ModifyMode, + ) + > + > + DataModify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer Query, + CSSM_HANDLE_PTR ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetFirst, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_HANDLE ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetNext, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_HANDLE ResultsHandle, + ) + > + > + DataAbortQuery, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecord, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ) + > + > + DataGetFromUniqueRecordId, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, + ) + > + > + FreeUniqueRecord, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough, + }) => $allocator() + ..ref.DbOpen = DbOpen + ..ref.DbClose = DbClose + ..ref.DbCreate = DbCreate + ..ref.DbDelete = DbDelete + ..ref.CreateRelation = CreateRelation + ..ref.DestroyRelation = DestroyRelation + ..ref.Authenticate = Authenticate + ..ref.GetDbAcl = GetDbAcl + ..ref.ChangeDbAcl = ChangeDbAcl + ..ref.GetDbOwner = GetDbOwner + ..ref.ChangeDbOwner = ChangeDbOwner + ..ref.GetDbNames = GetDbNames + ..ref.GetDbNameFromHandle = GetDbNameFromHandle + ..ref.FreeNameList = FreeNameList + ..ref.DataInsert = DataInsert + ..ref.DataDelete = DataDelete + ..ref.DataModify = DataModify + ..ref.DataGetFirst = DataGetFirst + ..ref.DataGetNext = DataGetNext + ..ref.DataAbortQuery = DataAbortQuery + ..ref.DataGetFromUniqueRecordId = DataGetFromUniqueRecordId + ..ref.FreeUniqueRecord = FreeUniqueRecord + ..ref.PassThrough = PassThrough; +} + +@Deprecated('Deprecated') +final class cssm_spi_kr_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KRRegistrationContextHandle, + ffi.Pointer KRRegistrationContext, + ffi.Pointer KRInData, + ffi.Pointer AccessCredentials, + CSSM_KR_POLICY_FLAGS KRFlags, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR ReferenceHandle, + ) + > + > + RegistrationRequest; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ReferenceHandle, + ffi.Pointer EstimatedTime, + CSSM_KR_PROFILE_PTR KRProfile, + ) + > + > + RegistrationRetrieve; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KREnablementContextHandle, + ffi.Pointer KREnablementContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + ffi.Pointer KRSPOptions, + CSSM_KR_POLICY_FLAGS KRFlags, + CSSM_DATA_PTR KRFields, + ) + > + > + GenerateRecoveryFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KREnablementContextHandle, + ffi.Pointer KREnablementContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + ffi.Pointer KRSPOptions, + CSSM_KR_POLICY_FLAGS KRFlags, + ffi.Pointer KRFields, + ) + > + > + ProcessRecoveryFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KRRequestContextHandle, + ffi.Pointer KRRequestContext, + ffi.Pointer KRInData, + ffi.Pointer AccessCredentials, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR ReferenceHandle, + ) + > + > + RecoveryRequest; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ReferenceHandle, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR CacheHandle, + ffi.Pointer NumberOfRecoveredKeys, + ) + > + > + RecoveryRetrieve; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE CacheHandle, + uint32 IndexInResults, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CredAndAclEntry, + uint32 Flags, + CSSM_KEY_PTR RecoveredKey, + CSSM_DATA_PTR OtherInfo, + ) + > + > + GetRecoveredObject; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ResultsHandle, + ) + > + > + RecoveryRequestAbort; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KeyRecoveryContextHandle, + ffi.Pointer KeyRecoveryContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KRRegistrationContextHandle, + ffi.Pointer KRRegistrationContext, + ffi.Pointer KRInData, + ffi.Pointer AccessCredentials, + CSSM_KR_POLICY_FLAGS KRFlags, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR ReferenceHandle, + ) + > + > + RegistrationRequest, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ReferenceHandle, + ffi.Pointer EstimatedTime, + CSSM_KR_PROFILE_PTR KRProfile, + ) + > + > + RegistrationRetrieve, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KREnablementContextHandle, + ffi.Pointer KREnablementContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + ffi.Pointer KRSPOptions, + CSSM_KR_POLICY_FLAGS KRFlags, + CSSM_DATA_PTR KRFields, + ) + > + > + GenerateRecoveryFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KREnablementContextHandle, + ffi.Pointer KREnablementContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + ffi.Pointer KRSPOptions, + CSSM_KR_POLICY_FLAGS KRFlags, + ffi.Pointer KRFields, + ) + > + > + ProcessRecoveryFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KRRequestContextHandle, + ffi.Pointer KRRequestContext, + ffi.Pointer KRInData, + ffi.Pointer AccessCredentials, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR ReferenceHandle, + ) + > + > + RecoveryRequest, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ReferenceHandle, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR CacheHandle, + ffi.Pointer NumberOfRecoveredKeys, + ) + > + > + RecoveryRetrieve, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE CacheHandle, + uint32 IndexInResults, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CredAndAclEntry, + uint32 Flags, + CSSM_KEY_PTR RecoveredKey, + CSSM_DATA_PTR OtherInfo, + ) + > + > + GetRecoveredObject, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ResultsHandle, + ) + > + > + RecoveryRequestAbort, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KeyRecoveryContextHandle, + ffi.Pointer KeyRecoveryContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough, + }) => $allocator() + ..ref.RegistrationRequest = RegistrationRequest + ..ref.RegistrationRetrieve = RegistrationRetrieve + ..ref.GenerateRecoveryFields = GenerateRecoveryFields + ..ref.ProcessRecoveryFields = ProcessRecoveryFields + ..ref.RecoveryRequest = RecoveryRequest + ..ref.RecoveryRetrieve = RecoveryRetrieve + ..ref.GetRecoveredObject = GetRecoveredObject + ..ref.RecoveryRequestAbort = RecoveryRequestAbort + ..ref.PassThrough = PassThrough; +} + +@Deprecated('Deprecated') +final class cssm_spi_tp_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer PreferredAuthority, + CSSM_TP_AUTHORITY_REQUEST_TYPE RequestType, + ffi.Pointer RequestInput, + ffi.Pointer CallerAuthContext, + ffi.Pointer EstimatedTime, + CSSM_DATA_PTR ReferenceIdentifier, + ) + > + > + SubmitCredRequest; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer EstimatedTime, + ffi.Pointer ConfirmationRequired, + ffi.Pointer RetrieveOutput, + ) + > + > + RetrieveCredResult; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer Responses, + ffi.Pointer PreferredAuthority, + ) + > + > + ConfirmCredResult; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer Responses, + ffi.Pointer ElapsedTime, + ) + > + > + ReceiveConfirmation; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer CertGroup, + uint32 CertIndex, + CSSM_LONG_HANDLE KeyCacheHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CredAndAclEntry, + ) + > + > + CertReclaimKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_LONG_HANDLE KeyCacheHandle, + ) + > + > + CertReclaimAbort; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer PreferredAuthority, + CSSM_TP_FORM_TYPE FormType, + CSSM_DATA_PTR BlankForm, + ) + > + > + FormRequest; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_TP_FORM_TYPE FormType, + ffi.Pointer Form, + ffi.Pointer ClearanceAuthority, + ffi.Pointer RepresentedAuthority, + CSSM_ACCESS_CREDENTIALS_PTR Credentials, + ) + > + > + FormSubmit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CertGroupToBeVerified, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, + ) + > + > + CertGroupVerify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, + ) + > + > + CertCreateTemplate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllTemplateFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertTemplateToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCert, + ) + > + > + CertSign; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCertGroup, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + ) + > + > + CrlVerify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlFields, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CrlCreateTemplate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRevoked, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + CSSM_TP_CERTCHANGE_REASON Reason, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CertRevoke; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRemoved, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CertRemoveFromCrlTemplate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCrl, + ) + > + > + CrlSign; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CrlToBeApplied, + ffi.Pointer SignerCertGroup, + ffi.Pointer ApplyCrlVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, + ) + > + > + ApplyCrlToDb; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer DBList, + ffi.Pointer ConstructParams, + ffi.Pointer CertGroupFrag, + ffi.Pointer CertGroup, + ) + > + > + CertGroupConstruct; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer DBList, + ffi.Pointer OrderedCertGroup, + ffi.Pointer PrunedCertGroup, + ) + > + > + CertGroupPrune; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertGroup, + ffi.Pointer TupleGroup, + ) + > + > + CertGroupToTupleGroup; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer TupleGroup, + ffi.Pointer CertTemplates, + ) + > + > + TupleGroupToCertGroup; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DBList, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer PreferredAuthority, + CSSM_TP_AUTHORITY_REQUEST_TYPE RequestType, + ffi.Pointer RequestInput, + ffi.Pointer CallerAuthContext, + ffi.Pointer EstimatedTime, + CSSM_DATA_PTR ReferenceIdentifier, + ) + > + > + SubmitCredRequest, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer EstimatedTime, + ffi.Pointer ConfirmationRequired, + ffi.Pointer RetrieveOutput, + ) + > + > + RetrieveCredResult, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer Responses, + ffi.Pointer PreferredAuthority, + ) + > + > + ConfirmCredResult, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer Responses, + ffi.Pointer ElapsedTime, + ) + > + > + ReceiveConfirmation, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer CertGroup, + uint32 CertIndex, + CSSM_LONG_HANDLE KeyCacheHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CredAndAclEntry, + ) + > + > + CertReclaimKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_LONG_HANDLE KeyCacheHandle, + ) + > + > + CertReclaimAbort, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer PreferredAuthority, + CSSM_TP_FORM_TYPE FormType, + CSSM_DATA_PTR BlankForm, + ) + > + > + FormRequest, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_TP_FORM_TYPE FormType, + ffi.Pointer Form, + ffi.Pointer ClearanceAuthority, + ffi.Pointer RepresentedAuthority, + CSSM_ACCESS_CREDENTIALS_PTR Credentials, + ) + > + > + FormSubmit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CertGroupToBeVerified, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, + ) + > + > + CertGroupVerify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, + ) + > + > + CertCreateTemplate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllTemplateFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertTemplateToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCert, + ) + > + > + CertSign, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCertGroup, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + ) + > + > + CrlVerify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlFields, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CrlCreateTemplate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRevoked, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + CSSM_TP_CERTCHANGE_REASON Reason, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CertRevoke, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRemoved, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CertRemoveFromCrlTemplate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCrl, + ) + > + > + CrlSign, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CrlToBeApplied, + ffi.Pointer SignerCertGroup, + ffi.Pointer ApplyCrlVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, + ) + > + > + ApplyCrlToDb, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer DBList, + ffi.Pointer ConstructParams, + ffi.Pointer CertGroupFrag, + ffi.Pointer CertGroup, + ) + > + > + CertGroupConstruct, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer DBList, + ffi.Pointer OrderedCertGroup, + ffi.Pointer PrunedCertGroup, + ) + > + > + CertGroupPrune, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertGroup, + ffi.Pointer TupleGroup, + ) + > + > + CertGroupToTupleGroup, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer TupleGroup, + ffi.Pointer CertTemplates, + ) + > + > + TupleGroupToCertGroup, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DBList, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough, + }) => $allocator() + ..ref.SubmitCredRequest = SubmitCredRequest + ..ref.RetrieveCredResult = RetrieveCredResult + ..ref.ConfirmCredResult = ConfirmCredResult + ..ref.ReceiveConfirmation = ReceiveConfirmation + ..ref.CertReclaimKey = CertReclaimKey + ..ref.CertReclaimAbort = CertReclaimAbort + ..ref.FormRequest = FormRequest + ..ref.FormSubmit = FormSubmit + ..ref.CertGroupVerify = CertGroupVerify + ..ref.CertCreateTemplate = CertCreateTemplate + ..ref.CertGetAllTemplateFields = CertGetAllTemplateFields + ..ref.CertSign = CertSign + ..ref.CrlVerify = CrlVerify + ..ref.CrlCreateTemplate = CrlCreateTemplate + ..ref.CertRevoke = CertRevoke + ..ref.CertRemoveFromCrlTemplate = CertRemoveFromCrlTemplate + ..ref.CrlSign = CrlSign + ..ref.ApplyCrlToDb = ApplyCrlToDb + ..ref.CertGroupConstruct = CertGroupConstruct + ..ref.CertGroupPrune = CertGroupPrune + ..ref.CertGroupToTupleGroup = CertGroupToTupleGroup + ..ref.TupleGroupToCertGroup = TupleGroupToCertGroup + ..ref.PassThrough = PassThrough; +} + +@Deprecated('Deprecated') +final class cssm_state_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddIn, + CSSM_SERVICE_MASK AddinType, + ffi.Pointer> SPFunctions, + CSSM_GUID_PTR Guid, + ffi.Pointer Serialized, + ) + > + > + cssm_GetAttachFunctions; + + external ffi.Pointer< + ffi.NativeFunction + > + cssm_ReleaseAttachFunctions; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddIn, + CSSM_UPCALLS_PTR UpcallTable, + ) + > + > + cssm_GetAppMemoryFunctions; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddin, + CSSM_PROC_ADDR SrcAddress, + CSSM_PROC_ADDR DestAddress, + CSSM_PRIVILEGE InPriv, + ffi.Pointer OutPriv, + CSSM_BITMASK Hints, + ffi.Pointer IsOK, + ) + > + > + cssm_IsFuncCallValid; + + external ffi.Pointer< + ffi.NativeFunction GUID)> + > + cssm_DeregisterManagerServices; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer EventDescription, + ) + > + > + cssm_DeliverModuleManagerEvent; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddIn, + CSSM_SERVICE_MASK AddinType, + ffi.Pointer> SPFunctions, + CSSM_GUID_PTR Guid, + ffi.Pointer Serialized, + ) + > + > + cssm_GetAttachFunctions, + required ffi.Pointer< + ffi.NativeFunction + > + cssm_ReleaseAttachFunctions, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddIn, + CSSM_UPCALLS_PTR UpcallTable, + ) + > + > + cssm_GetAppMemoryFunctions, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddin, + CSSM_PROC_ADDR SrcAddress, + CSSM_PROC_ADDR DestAddress, + CSSM_PRIVILEGE InPriv, + ffi.Pointer OutPriv, + CSSM_BITMASK Hints, + ffi.Pointer IsOK, + ) + > + > + cssm_IsFuncCallValid, + required ffi.Pointer< + ffi.NativeFunction GUID)> + > + cssm_DeregisterManagerServices, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer EventDescription, + ) + > + > + cssm_DeliverModuleManagerEvent, + }) => $allocator() + ..ref.cssm_GetAttachFunctions = cssm_GetAttachFunctions + ..ref.cssm_ReleaseAttachFunctions = cssm_ReleaseAttachFunctions + ..ref.cssm_GetAppMemoryFunctions = cssm_GetAppMemoryFunctions + ..ref.cssm_IsFuncCallValid = cssm_IsFuncCallValid + ..ref.cssm_DeregisterManagerServices = cssm_DeregisterManagerServices + ..ref.cssm_DeliverModuleManagerEvent = cssm_DeliverModuleManagerEvent; +} + +@Deprecated('Deprecated') +final class cssm_subservice_uid extends ffi.Struct { + external CSSM_GUID Guid; + + external CSSM_VERSION Version; + + @uint32() + external int SubserviceId; + + @CSSM_SERVICE_TYPE() + external int SubserviceType; +} + +@Deprecated('Deprecated') +final class cssm_tp_authority_id extends ffi.Struct { + external ffi.Pointer AuthorityCert; + + external CSSM_NET_ADDRESS_PTR AuthorityLocation; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer AuthorityCert, + required CSSM_NET_ADDRESS_PTR AuthorityLocation, + }) => $allocator() + ..ref.AuthorityCert = AuthorityCert + ..ref.AuthorityLocation = AuthorityLocation; +} + +@Deprecated('Deprecated') +final class cssm_tp_callerauth_context extends ffi.Struct { + external CSSM_TP_POLICYINFO Policy; + + external CSSM_TIMESTRING VerifyTime; + + @CSSM_TP_STOP_ON() + external int VerificationAbortOn; + + external CSSM_TP_VERIFICATION_RESULTS_CALLBACK CallbackWithVerifiedCert; + + @uint32() + external int NumberOfAnchorCerts; + + external CSSM_DATA_PTR AnchorCerts; + + external CSSM_DL_DB_LIST_PTR DBList; + + external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_certchange_input extends ffi.Struct { + @CSSM_TP_CERTCHANGE_ACTION() + external int Action; + + @CSSM_TP_CERTCHANGE_REASON() + external int Reason; + + @CSSM_CL_HANDLE() + external int CLHandle; + + external CSSM_DATA_PTR Cert; + + external CSSM_FIELD_PTR ChangeInfo; + + external CSSM_TIMESTRING StartTime; + + external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Action, + required int Reason, + required int CLHandle, + required CSSM_DATA_PTR Cert, + required CSSM_FIELD_PTR ChangeInfo, + required CSSM_TIMESTRING StartTime, + required CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials, + }) => $allocator() + ..ref.Action = Action + ..ref.Reason = Reason + ..ref.CLHandle = CLHandle + ..ref.Cert = Cert + ..ref.ChangeInfo = ChangeInfo + ..ref.StartTime = StartTime + ..ref.CallerCredentials = CallerCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_certchange_output extends ffi.Struct { + @CSSM_TP_CERTCHANGE_STATUS() + external int ActionStatus; + + external CSSM_FIELD RevokeInfo; +} + +@Deprecated('Deprecated') +final class cssm_tp_certissue_input extends ffi.Struct { + external CSSM_SUBSERVICE_UID CSPSubserviceUid; + + @CSSM_CL_HANDLE() + external int CLHandle; + + @uint32() + external int NumberOfTemplateFields; + + external CSSM_FIELD_PTR SubjectCertFields; + + @CSSM_TP_SERVICES() + external int MoreServiceRequests; + + @uint32() + external int NumberOfServiceControls; + + external CSSM_FIELD_PTR ServiceControls; + + external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_certissue_output extends ffi.Struct { + @CSSM_TP_CERTISSUE_STATUS() + external int IssueStatus; + + external CSSM_CERTGROUP_PTR CertGroup; + + @CSSM_TP_SERVICES() + external int PerformedServiceRequests; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int IssueStatus, + required CSSM_CERTGROUP_PTR CertGroup, + required int PerformedServiceRequests, + }) => $allocator() + ..ref.IssueStatus = IssueStatus + ..ref.CertGroup = CertGroup + ..ref.PerformedServiceRequests = PerformedServiceRequests; +} + +@Deprecated('Deprecated') +final class cssm_tp_certnotarize_input extends ffi.Struct { + @CSSM_CL_HANDLE() + external int CLHandle; + + @uint32() + external int NumberOfFields; + + external CSSM_FIELD_PTR MoreFields; + + external CSSM_FIELD_PTR SignScope; + + @uint32() + external int ScopeSize; + + @CSSM_TP_SERVICES() + external int MoreServiceRequests; + + @uint32() + external int NumberOfServiceControls; + + external CSSM_FIELD_PTR ServiceControls; + + external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CLHandle, + required int NumberOfFields, + required CSSM_FIELD_PTR MoreFields, + required CSSM_FIELD_PTR SignScope, + required int ScopeSize, + required int MoreServiceRequests, + required int NumberOfServiceControls, + required CSSM_FIELD_PTR ServiceControls, + required CSSM_ACCESS_CREDENTIALS_PTR UserCredentials, + }) => $allocator() + ..ref.CLHandle = CLHandle + ..ref.NumberOfFields = NumberOfFields + ..ref.MoreFields = MoreFields + ..ref.SignScope = SignScope + ..ref.ScopeSize = ScopeSize + ..ref.MoreServiceRequests = MoreServiceRequests + ..ref.NumberOfServiceControls = NumberOfServiceControls + ..ref.ServiceControls = ServiceControls + ..ref.UserCredentials = UserCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_certnotarize_output extends ffi.Struct { + @CSSM_TP_CERTNOTARIZE_STATUS() + external int NotarizeStatus; + + external CSSM_CERTGROUP_PTR NotarizedCertGroup; + + @CSSM_TP_SERVICES() + external int PerformedServiceRequests; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NotarizeStatus, + required CSSM_CERTGROUP_PTR NotarizedCertGroup, + required int PerformedServiceRequests, + }) => $allocator() + ..ref.NotarizeStatus = NotarizeStatus + ..ref.NotarizedCertGroup = NotarizedCertGroup + ..ref.PerformedServiceRequests = PerformedServiceRequests; +} + +@Deprecated('Deprecated') +final class cssm_tp_certreclaim_input extends ffi.Struct { + @CSSM_CL_HANDLE() + external int CLHandle; + + @uint32() + external int NumberOfSelectionFields; + + external CSSM_FIELD_PTR SelectionFields; + + external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CLHandle, + required int NumberOfSelectionFields, + required CSSM_FIELD_PTR SelectionFields, + required CSSM_ACCESS_CREDENTIALS_PTR UserCredentials, + }) => $allocator() + ..ref.CLHandle = CLHandle + ..ref.NumberOfSelectionFields = NumberOfSelectionFields + ..ref.SelectionFields = SelectionFields + ..ref.UserCredentials = UserCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_certreclaim_output extends ffi.Struct { + @CSSM_TP_CERTRECLAIM_STATUS() + external int ReclaimStatus; + + external CSSM_CERTGROUP_PTR ReclaimedCertGroup; + + @CSSM_LONG_HANDLE() + external int KeyCacheHandle; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ReclaimStatus, + required CSSM_CERTGROUP_PTR ReclaimedCertGroup, + required int KeyCacheHandle, + }) => $allocator() + ..ref.ReclaimStatus = ReclaimStatus + ..ref.ReclaimedCertGroup = ReclaimedCertGroup + ..ref.KeyCacheHandle = KeyCacheHandle; +} + +@Deprecated('Deprecated') +final class cssm_tp_certverify_input extends ffi.Struct { + @CSSM_CL_HANDLE() + external int CLHandle; + + external CSSM_DATA_PTR Cert; + + external CSSM_TP_VERIFY_CONTEXT_PTR VerifyContext; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CLHandle, + required CSSM_DATA_PTR Cert, + required CSSM_TP_VERIFY_CONTEXT_PTR VerifyContext, + }) => $allocator() + ..ref.CLHandle = CLHandle + ..ref.Cert = Cert + ..ref.VerifyContext = VerifyContext; +} + +@Deprecated('Deprecated') +final class cssm_tp_certverify_output extends ffi.Struct { + @CSSM_TP_CERTVERIFY_STATUS() + external int VerifyStatus; + + @uint32() + external int NumberOfEvidence; + + external CSSM_EVIDENCE_PTR Evidence; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int VerifyStatus, + required int NumberOfEvidence, + required CSSM_EVIDENCE_PTR Evidence, + }) => $allocator() + ..ref.VerifyStatus = VerifyStatus + ..ref.NumberOfEvidence = NumberOfEvidence + ..ref.Evidence = Evidence; +} + +@Deprecated('Deprecated') +final class cssm_tp_confirm_response extends ffi.Struct { + @uint32() + external int NumberOfResponses; + + external CSSM_TP_CONFIRM_STATUS_PTR Responses; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfResponses, + required CSSM_TP_CONFIRM_STATUS_PTR Responses, + }) => $allocator() + ..ref.NumberOfResponses = NumberOfResponses + ..ref.Responses = Responses; +} + +@Deprecated('Deprecated') +final class cssm_tp_crlissue_input extends ffi.Struct { + @CSSM_CL_HANDLE() + external int CLHandle; + + @uint32() + external int CrlIdentifier; + + external CSSM_TIMESTRING CrlThisTime; + + external CSSM_FIELD_PTR PolicyIdentifier; + + external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CLHandle, + required int CrlIdentifier, + required CSSM_TIMESTRING CrlThisTime, + required CSSM_FIELD_PTR PolicyIdentifier, + required CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials, + }) => $allocator() + ..ref.CLHandle = CLHandle + ..ref.CrlIdentifier = CrlIdentifier + ..ref.CrlThisTime = CrlThisTime + ..ref.PolicyIdentifier = PolicyIdentifier + ..ref.CallerCredentials = CallerCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_crlissue_output extends ffi.Struct { + @CSSM_TP_CRLISSUE_STATUS() + external int IssueStatus; + + external CSSM_ENCODED_CRL_PTR Crl; + + external CSSM_TIMESTRING CrlNextTime; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int IssueStatus, + required CSSM_ENCODED_CRL_PTR Crl, + required CSSM_TIMESTRING CrlNextTime, + }) => $allocator() + ..ref.IssueStatus = IssueStatus + ..ref.Crl = Crl + ..ref.CrlNextTime = CrlNextTime; +} + +@Deprecated('Deprecated') +final class cssm_tp_policyinfo extends ffi.Struct { + @uint32() + external int NumberOfPolicyIds; + + external CSSM_FIELD_PTR PolicyIds; + + external ffi.Pointer PolicyControl; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfPolicyIds, + required CSSM_FIELD_PTR PolicyIds, + required ffi.Pointer PolicyControl, + }) => $allocator() + ..ref.NumberOfPolicyIds = NumberOfPolicyIds + ..ref.PolicyIds = PolicyIds + ..ref.PolicyControl = PolicyControl; +} + +@Deprecated('Deprecated') +final class cssm_tp_request_set extends ffi.Struct { + @uint32() + external int NumberOfRequests; + + external ffi.Pointer Requests; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfRequests, + required ffi.Pointer Requests, + }) => $allocator() + ..ref.NumberOfRequests = NumberOfRequests + ..ref.Requests = Requests; +} + +final class cssm_tp_result_set extends ffi.Struct { + @uint32() + external int NumberOfResults; + + external ffi.Pointer Results; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfResults, + required ffi.Pointer Results, + }) => $allocator() + ..ref.NumberOfResults = NumberOfResults + ..ref.Results = Results; +} + +@Deprecated('Deprecated') +final class cssm_tp_verify_context extends ffi.Struct { + @CSSM_TP_ACTION() + external int Action; + + external SecAsn1Item ActionData; + + external CSSM_CRLGROUP Crls; + + external CSSM_TP_CALLERAUTH_CONTEXT_PTR Cred; +} + +@Deprecated('Deprecated') +final class cssm_tp_verify_context_result extends ffi.Struct { + @uint32() + external int NumberOfEvidences; + + external CSSM_EVIDENCE_PTR Evidence; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfEvidences, + required CSSM_EVIDENCE_PTR Evidence, + }) => $allocator() + ..ref.NumberOfEvidences = NumberOfEvidences + ..ref.Evidence = Evidence; +} + +@Deprecated('Deprecated') +final class cssm_tuplegroup extends ffi.Struct { + @uint32() + external int NumberOfTuples; + + external CSSM_TUPLE_PTR Tuples; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfTuples, + required CSSM_TUPLE_PTR Tuples, + }) => $allocator() + ..ref.NumberOfTuples = NumberOfTuples + ..ref.Tuples = Tuples; +} + +@Deprecated('Deprecated') +final class cssm_upcalls extends ffi.Struct { + external CSSM_UPCALLS_MALLOC malloc_func; + + external CSSM_UPCALLS_FREE free_func; + + external CSSM_UPCALLS_REALLOC realloc_func; + + external CSSM_UPCALLS_CALLOC calloc_func; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CC_HANDLE Cc, + CSSM_MODULE_HANDLE_PTR ModuleHandle, + ) + > + > + CcToHandle_func; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE Module, + CSSM_GUID_PTR Guid, + CSSM_VERSION_PTR Version, + ffi.Pointer SubServiceId, + ffi.Pointer SubServiceType, + ffi.Pointer AttachFlags, + ffi.Pointer KeyHierarchy, + CSSM_API_MEMORY_FUNCS_PTR AttachedMemFuncs, + CSSM_FUNC_NAME_ADDR_PTR FunctionTable, + uint32 NumFunctions, + ) + > + > + GetModuleInfo_func; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CSSM_UPCALLS_MALLOC malloc_func, + required CSSM_UPCALLS_FREE free_func, + required CSSM_UPCALLS_REALLOC realloc_func, + required CSSM_UPCALLS_CALLOC calloc_func, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CC_HANDLE Cc, + CSSM_MODULE_HANDLE_PTR ModuleHandle, + ) + > + > + CcToHandle_func, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE Module, + CSSM_GUID_PTR Guid, + CSSM_VERSION_PTR Version, + ffi.Pointer SubServiceId, + ffi.Pointer SubServiceType, + ffi.Pointer AttachFlags, + ffi.Pointer KeyHierarchy, + CSSM_API_MEMORY_FUNCS_PTR AttachedMemFuncs, + CSSM_FUNC_NAME_ADDR_PTR FunctionTable, + uint32 NumFunctions, + ) + > + > + GetModuleInfo_func, + }) => $allocator() + ..ref.malloc_func = malloc_func + ..ref.free_func = free_func + ..ref.realloc_func = realloc_func + ..ref.calloc_func = calloc_func + ..ref.CcToHandle_func = CcToHandle_func + ..ref.GetModuleInfo_func = GetModuleInfo_func; +} + +final class cssm_version extends ffi.Struct { + @uint32() + external int Major; + + @uint32() + external int Minor; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Major, + required int Minor, + }) => $allocator() + ..ref.Major = Major + ..ref.Minor = Minor; +} + +@Deprecated('Deprecated') +final class cssm_x509_extension extends ffi.Struct { + external SecAsn1Oid extnId; + + @CSSM_BOOL() + external int critical; + + @ffi.UnsignedInt() + external int formatAsInt; + + extension_data_format get format => + extension_data_format.fromValue(formatAsInt); + set format(extension_data_format value) => formatAsInt = value.value; + + external cssm_x509ext_value value; + + external SecAsn1Item BERvalue; +} + +@Deprecated('Deprecated') +final class cssm_x509_extensionTagAndValue extends ffi.Struct { + @CSSM_BER_TAG() + external int type; + + external SecAsn1Item value; +} + +@Deprecated('Deprecated') +final class cssm_x509_extensions extends ffi.Struct { + @uint32() + external int numberOfExtensions; + + external CSSM_X509_EXTENSION_PTR extensions; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfExtensions, + required CSSM_X509_EXTENSION_PTR extensions, + }) => $allocator() + ..ref.numberOfExtensions = numberOfExtensions + ..ref.extensions = extensions; +} + +@Deprecated('Deprecated') +final class cssm_x509_name extends ffi.Struct { + @uint32() + external int numberOfRDNs; + + external CSSM_X509_RDN_PTR RelativeDistinguishedName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfRDNs, + required CSSM_X509_RDN_PTR RelativeDistinguishedName, + }) => $allocator() + ..ref.numberOfRDNs = numberOfRDNs + ..ref.RelativeDistinguishedName = RelativeDistinguishedName; +} + +@Deprecated('Deprecated') +final class cssm_x509_rdn extends ffi.Struct { + @uint32() + external int numberOfPairs; + + external CSSM_X509_TYPE_VALUE_PAIR_PTR AttributeTypeAndValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfPairs, + required CSSM_X509_TYPE_VALUE_PAIR_PTR AttributeTypeAndValue, + }) => $allocator() + ..ref.numberOfPairs = numberOfPairs + ..ref.AttributeTypeAndValue = AttributeTypeAndValue; +} + +@Deprecated('Deprecated') +final class cssm_x509_revoked_cert_entry extends ffi.Struct { + external SecAsn1Item certificateSerialNumber; + + external CSSM_X509_TIME revocationDate; + + external CSSM_X509_EXTENSIONS extensions; +} + +@Deprecated('Deprecated') +final class cssm_x509_revoked_cert_list extends ffi.Struct { + @uint32() + external int numberOfRevokedCertEntries; + + external CSSM_X509_REVOKED_CERT_ENTRY_PTR revokedCertEntry; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfRevokedCertEntries, + required CSSM_X509_REVOKED_CERT_ENTRY_PTR revokedCertEntry, + }) => $allocator() + ..ref.numberOfRevokedCertEntries = numberOfRevokedCertEntries + ..ref.revokedCertEntry = revokedCertEntry; +} + +@Deprecated('Deprecated') +final class cssm_x509_signature extends ffi.Struct { + external SecAsn1AlgId algorithmIdentifier; + + external SecAsn1Item encrypted; +} + +@Deprecated('Deprecated') +final class cssm_x509_signed_certificate extends ffi.Struct { + external CSSM_X509_TBS_CERTIFICATE certificate; + + external CSSM_X509_SIGNATURE signature; +} + +@Deprecated('Deprecated') +final class cssm_x509_signed_crl extends ffi.Struct { + external CSSM_X509_TBS_CERTLIST tbsCertList; + + external CSSM_X509_SIGNATURE signature; +} + +@Deprecated('Deprecated') +final class cssm_x509_tbs_certificate extends ffi.Struct { + external SecAsn1Item version; + + external SecAsn1Item serialNumber; + + external SecAsn1AlgId signature; + + external CSSM_X509_NAME issuer; + + external CSSM_X509_VALIDITY validity; + + external CSSM_X509_NAME subject; + + external SecAsn1PubKeyInfo subjectPublicKeyInfo; + + external SecAsn1Item issuerUniqueIdentifier; + + external SecAsn1Item subjectUniqueIdentifier; + + external CSSM_X509_EXTENSIONS extensions; +} + +@Deprecated('Deprecated') +final class cssm_x509_tbs_certlist extends ffi.Struct { + external SecAsn1Item version; + + external SecAsn1AlgId signature; + + external CSSM_X509_NAME issuer; + + external CSSM_X509_TIME thisUpdate; + + external CSSM_X509_TIME nextUpdate; + + external CSSM_X509_REVOKED_CERT_LIST_PTR revokedCertificates; + + external CSSM_X509_EXTENSIONS extensions; +} + +@Deprecated('Deprecated') +final class cssm_x509_time extends ffi.Struct { + @CSSM_BER_TAG() + external int timeType; + + external SecAsn1Item time$1; +} + +@Deprecated('Deprecated') +final class cssm_x509_type_value_pair extends ffi.Struct { + external SecAsn1Oid type; + + @CSSM_BER_TAG() + external int valueType; + + external SecAsn1Item value; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_basicConstraints extends ffi.Struct { + @CSSM_BOOL() + external int cA; + + @CSSM_X509_OPTION() + external int pathLenConstraintPresent; + + @uint32() + external int pathLenConstraint; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cA, + required int pathLenConstraintPresent, + required int pathLenConstraint, + }) => $allocator() + ..ref.cA = cA + ..ref.pathLenConstraintPresent = pathLenConstraintPresent + ..ref.pathLenConstraint = pathLenConstraint; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_pair extends ffi.Struct { + external CSSM_X509EXT_TAGandVALUE tagAndValue; + + external ffi.Pointer parsedValue; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_policyInfo extends ffi.Struct { + external SecAsn1Oid policyIdentifier; + + external CSSM_X509EXT_POLICYQUALIFIERS policyQualifiers; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_policyQualifierInfo extends ffi.Struct { + external SecAsn1Oid policyQualifierId; + + external SecAsn1Item value; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_policyQualifiers extends ffi.Struct { + @uint32() + external int numberOfPolicyQualifiers; + + external ffi.Pointer policyQualifier; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfPolicyQualifiers, + required ffi.Pointer policyQualifier, + }) => $allocator() + ..ref.numberOfPolicyQualifiers = numberOfPolicyQualifiers + ..ref.policyQualifier = policyQualifier; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_value extends ffi.Union { + external ffi.Pointer tagAndValue; + + external ffi.Pointer parsedValue; + + external ffi.Pointer valuePair; +} + +typedef ct_rune_t = __darwin_ct_rune_t; +typedef cups_acopy_func_t = + ffi.Pointer>; +typedef cups_acopy_func_tFunction = + ffi.Pointer Function( + ffi.Pointer element, + ffi.Pointer data, + ); + +enum cups_adv_e { + CUPS_ADVANCE_NONE(0), + CUPS_ADVANCE_FILE(1), + CUPS_ADVANCE_JOB(2), + CUPS_ADVANCE_SET(3), + CUPS_ADVANCE_PAGE(4); + + final int value; + const cups_adv_e(this.value); + + static cups_adv_e fromValue(int value) => switch (value) { + 0 => CUPS_ADVANCE_NONE, + 1 => CUPS_ADVANCE_FILE, + 2 => CUPS_ADVANCE_JOB, + 3 => CUPS_ADVANCE_SET, + 4 => CUPS_ADVANCE_PAGE, + _ => throw ArgumentError('Unknown value for cups_adv_e: $value'), + }; +} + +typedef cups_afree_func_t = + ffi.Pointer>; +typedef cups_afree_func_tFunction = + ffi.Void Function( + ffi.Pointer element, + ffi.Pointer data, + ); +typedef Dartcups_afree_func_tFunction = + void Function(ffi.Pointer element, ffi.Pointer data); +typedef cups_ahash_func_t = + ffi.Pointer>; +typedef cups_ahash_func_tFunction = + ffi.Int Function(ffi.Pointer element, ffi.Pointer data); +typedef Dartcups_ahash_func_tFunction = + int Function(ffi.Pointer element, ffi.Pointer data); +typedef cups_array_func_t = + ffi.Pointer>; +typedef cups_array_func_tFunction = + ffi.Int Function( + ffi.Pointer first, + ffi.Pointer second, + ffi.Pointer data, + ); +typedef Dartcups_array_func_tFunction = + int Function( + ffi.Pointer first, + ffi.Pointer second, + ffi.Pointer data, + ); +typedef cups_array_t = _cups_array_s; + +enum cups_bool_e { + CUPS_FALSE(0), + CUPS_TRUE(1); + + final int value; + const cups_bool_e(this.value); + + static cups_bool_e fromValue(int value) => switch (value) { + 0 => CUPS_FALSE, + 1 => CUPS_TRUE, + _ => throw ArgumentError('Unknown value for cups_bool_e: $value'), + }; +} + +typedef cups_client_cert_cb_t = + ffi.Pointer>; +typedef cups_client_cert_cb_tFunction = + ffi.Int Function( + ffi.Pointer http, + ffi.Pointer tls, + ffi.Pointer distinguished_names, + ffi.Pointer user_data, + ); +typedef Dartcups_client_cert_cb_tFunction = + int Function( + ffi.Pointer http, + ffi.Pointer tls, + ffi.Pointer distinguished_names, + ffi.Pointer user_data, + ); + +enum cups_cspace_e { + CUPS_CSPACE_W(0), + CUPS_CSPACE_RGB(1), + CUPS_CSPACE_RGBA(2), + CUPS_CSPACE_K(3), + CUPS_CSPACE_CMY(4), + CUPS_CSPACE_YMC(5), + CUPS_CSPACE_CMYK(6), + CUPS_CSPACE_YMCK(7), + CUPS_CSPACE_KCMY(8), + CUPS_CSPACE_KCMYcm(9), + CUPS_CSPACE_GMCK(10), + CUPS_CSPACE_GMCS(11), + CUPS_CSPACE_WHITE(12), + CUPS_CSPACE_GOLD(13), + CUPS_CSPACE_SILVER(14), + CUPS_CSPACE_CIEXYZ(15), + CUPS_CSPACE_CIELab(16), + CUPS_CSPACE_RGBW(17), + CUPS_CSPACE_SW(18), + CUPS_CSPACE_SRGB(19), + CUPS_CSPACE_ADOBERGB(20), + CUPS_CSPACE_P3E(21), + CUPS_CSPACE_GRAYE(22), + CUPS_CSPACE_ICC1(32), + CUPS_CSPACE_ICC2(33), + CUPS_CSPACE_ICC3(34), + CUPS_CSPACE_ICC4(35), + CUPS_CSPACE_ICC5(36), + CUPS_CSPACE_ICC6(37), + CUPS_CSPACE_ICC7(38), + CUPS_CSPACE_ICC8(39), + CUPS_CSPACE_ICC9(40), + CUPS_CSPACE_ICCA(41), + CUPS_CSPACE_ICCB(42), + CUPS_CSPACE_ICCC(43), + CUPS_CSPACE_ICCD(44), + CUPS_CSPACE_ICCE(45), + CUPS_CSPACE_ICCF(46), + CUPS_CSPACE_DEVICE1(48), + CUPS_CSPACE_DEVICE2(49), + CUPS_CSPACE_DEVICE3(50), + CUPS_CSPACE_DEVICE4(51), + CUPS_CSPACE_DEVICE5(52), + CUPS_CSPACE_DEVICE6(53), + CUPS_CSPACE_DEVICE7(54), + CUPS_CSPACE_DEVICE8(55), + CUPS_CSPACE_DEVICE9(56), + CUPS_CSPACE_DEVICEA(57), + CUPS_CSPACE_DEVICEB(58), + CUPS_CSPACE_DEVICEC(59), + CUPS_CSPACE_DEVICED(60), + CUPS_CSPACE_DEVICEE(61), + CUPS_CSPACE_DEVICEF(62); + + final int value; + const cups_cspace_e(this.value); + + static cups_cspace_e fromValue(int value) => switch (value) { + 0 => CUPS_CSPACE_W, + 1 => CUPS_CSPACE_RGB, + 2 => CUPS_CSPACE_RGBA, + 3 => CUPS_CSPACE_K, + 4 => CUPS_CSPACE_CMY, + 5 => CUPS_CSPACE_YMC, + 6 => CUPS_CSPACE_CMYK, + 7 => CUPS_CSPACE_YMCK, + 8 => CUPS_CSPACE_KCMY, + 9 => CUPS_CSPACE_KCMYcm, + 10 => CUPS_CSPACE_GMCK, + 11 => CUPS_CSPACE_GMCS, + 12 => CUPS_CSPACE_WHITE, + 13 => CUPS_CSPACE_GOLD, + 14 => CUPS_CSPACE_SILVER, + 15 => CUPS_CSPACE_CIEXYZ, + 16 => CUPS_CSPACE_CIELab, + 17 => CUPS_CSPACE_RGBW, + 18 => CUPS_CSPACE_SW, + 19 => CUPS_CSPACE_SRGB, + 20 => CUPS_CSPACE_ADOBERGB, + 21 => CUPS_CSPACE_P3E, + 22 => CUPS_CSPACE_GRAYE, + 32 => CUPS_CSPACE_ICC1, + 33 => CUPS_CSPACE_ICC2, + 34 => CUPS_CSPACE_ICC3, + 35 => CUPS_CSPACE_ICC4, + 36 => CUPS_CSPACE_ICC5, + 37 => CUPS_CSPACE_ICC6, + 38 => CUPS_CSPACE_ICC7, + 39 => CUPS_CSPACE_ICC8, + 40 => CUPS_CSPACE_ICC9, + 41 => CUPS_CSPACE_ICCA, + 42 => CUPS_CSPACE_ICCB, + 43 => CUPS_CSPACE_ICCC, + 44 => CUPS_CSPACE_ICCD, + 45 => CUPS_CSPACE_ICCE, + 46 => CUPS_CSPACE_ICCF, + 48 => CUPS_CSPACE_DEVICE1, + 49 => CUPS_CSPACE_DEVICE2, + 50 => CUPS_CSPACE_DEVICE3, + 51 => CUPS_CSPACE_DEVICE4, + 52 => CUPS_CSPACE_DEVICE5, + 53 => CUPS_CSPACE_DEVICE6, + 54 => CUPS_CSPACE_DEVICE7, + 55 => CUPS_CSPACE_DEVICE8, + 56 => CUPS_CSPACE_DEVICE9, + 57 => CUPS_CSPACE_DEVICEA, + 58 => CUPS_CSPACE_DEVICEB, + 59 => CUPS_CSPACE_DEVICEC, + 60 => CUPS_CSPACE_DEVICED, + 61 => CUPS_CSPACE_DEVICEE, + 62 => CUPS_CSPACE_DEVICEF, + _ => throw ArgumentError('Unknown value for cups_cspace_e: $value'), + }; +} + +enum cups_cut_e { + CUPS_CUT_NONE(0), + CUPS_CUT_FILE(1), + CUPS_CUT_JOB(2), + CUPS_CUT_SET(3), + CUPS_CUT_PAGE(4); + + final int value; + const cups_cut_e(this.value); + + static cups_cut_e fromValue(int value) => switch (value) { + 0 => CUPS_CUT_NONE, + 1 => CUPS_CUT_FILE, + 2 => CUPS_CUT_JOB, + 3 => CUPS_CUT_SET, + 4 => CUPS_CUT_PAGE, + _ => throw ArgumentError('Unknown value for cups_cut_e: $value'), + }; +} + +typedef cups_dest_block_t = ffi.Pointer; +typedef Dartcups_dest_block_t = + objc.ObjCBlock)>; +typedef cups_dest_cb_t = + ffi.Pointer>; +typedef cups_dest_cb_tFunction = + ffi.Int Function( + ffi.Pointer user_data, + ffi.UnsignedInt flags, + ffi.Pointer dest, + ); +typedef Dartcups_dest_cb_tFunction = + int Function( + ffi.Pointer user_data, + int flags, + ffi.Pointer dest, + ); + +final class cups_dest_s extends ffi.Struct { + external ffi.Pointer name; + + external ffi.Pointer instance; + + @ffi.Int() + external int is_default; + + @ffi.Int() + external int num_options; + + external ffi.Pointer options; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer name, + required ffi.Pointer instance, + required int is_default, + required int num_options, + required ffi.Pointer options, + }) => $allocator() + ..ref.name = name + ..ref.instance = instance + ..ref.is_default = is_default + ..ref.num_options = num_options + ..ref.options = options; +} + +typedef cups_dest_t = cups_dest_s; +typedef cups_dinfo_t = _cups_dinfo_s; + +enum cups_edge_e { + CUPS_EDGE_TOP(0), + CUPS_EDGE_RIGHT(1), + CUPS_EDGE_BOTTOM(2), + CUPS_EDGE_LEFT(3); + + final int value; + const cups_edge_e(this.value); + + static cups_edge_e fromValue(int value) => switch (value) { + 0 => CUPS_EDGE_TOP, + 1 => CUPS_EDGE_RIGHT, + 2 => CUPS_EDGE_BOTTOM, + 3 => CUPS_EDGE_LEFT, + _ => throw ArgumentError('Unknown value for cups_edge_e: $value'), + }; +} + +enum cups_encoding_e { + CUPS_AUTO_ENCODING(-1), + CUPS_US_ASCII(0), + CUPS_ISO8859_1(1), + CUPS_ISO8859_2(2), + CUPS_ISO8859_3(3), + CUPS_ISO8859_4(4), + CUPS_ISO8859_5(5), + CUPS_ISO8859_6(6), + CUPS_ISO8859_7(7), + CUPS_ISO8859_8(8), + CUPS_ISO8859_9(9), + CUPS_ISO8859_10(10), + CUPS_UTF8(11), + CUPS_ISO8859_13(12), + CUPS_ISO8859_14(13), + CUPS_ISO8859_15(14), + CUPS_WINDOWS_874(15), + CUPS_WINDOWS_1250(16), + CUPS_WINDOWS_1251(17), + CUPS_WINDOWS_1252(18), + CUPS_WINDOWS_1253(19), + CUPS_WINDOWS_1254(20), + CUPS_WINDOWS_1255(21), + CUPS_WINDOWS_1256(22), + CUPS_WINDOWS_1257(23), + CUPS_WINDOWS_1258(24), + CUPS_KOI8_R(25), + CUPS_KOI8_U(26), + CUPS_ISO8859_11(27), + CUPS_ISO8859_16(28), + CUPS_MAC_ROMAN(29), + CUPS_ENCODING_SBCS_END(63), + CUPS_WINDOWS_932(64), + CUPS_WINDOWS_936(65), + CUPS_WINDOWS_949(66), + CUPS_WINDOWS_950(67), + CUPS_WINDOWS_1361(68), + CUPS_ENCODING_DBCS_END(127), + CUPS_EUC_CN(128), + CUPS_EUC_JP(129), + CUPS_EUC_KR(130), + CUPS_EUC_TW(131), + CUPS_JIS_X0213(132), + CUPS_ENCODING_VBCS_END(191); + + final int value; + const cups_encoding_e(this.value); + + static cups_encoding_e fromValue(int value) => switch (value) { + -1 => CUPS_AUTO_ENCODING, + 0 => CUPS_US_ASCII, + 1 => CUPS_ISO8859_1, + 2 => CUPS_ISO8859_2, + 3 => CUPS_ISO8859_3, + 4 => CUPS_ISO8859_4, + 5 => CUPS_ISO8859_5, + 6 => CUPS_ISO8859_6, + 7 => CUPS_ISO8859_7, + 8 => CUPS_ISO8859_8, + 9 => CUPS_ISO8859_9, + 10 => CUPS_ISO8859_10, + 11 => CUPS_UTF8, + 12 => CUPS_ISO8859_13, + 13 => CUPS_ISO8859_14, + 14 => CUPS_ISO8859_15, + 15 => CUPS_WINDOWS_874, + 16 => CUPS_WINDOWS_1250, + 17 => CUPS_WINDOWS_1251, + 18 => CUPS_WINDOWS_1252, + 19 => CUPS_WINDOWS_1253, + 20 => CUPS_WINDOWS_1254, + 21 => CUPS_WINDOWS_1255, + 22 => CUPS_WINDOWS_1256, + 23 => CUPS_WINDOWS_1257, + 24 => CUPS_WINDOWS_1258, + 25 => CUPS_KOI8_R, + 26 => CUPS_KOI8_U, + 27 => CUPS_ISO8859_11, + 28 => CUPS_ISO8859_16, + 29 => CUPS_MAC_ROMAN, + 63 => CUPS_ENCODING_SBCS_END, + 64 => CUPS_WINDOWS_932, + 65 => CUPS_WINDOWS_936, + 66 => CUPS_WINDOWS_949, + 67 => CUPS_WINDOWS_950, + 68 => CUPS_WINDOWS_1361, + 127 => CUPS_ENCODING_DBCS_END, + 128 => CUPS_EUC_CN, + 129 => CUPS_EUC_JP, + 130 => CUPS_EUC_KR, + 131 => CUPS_EUC_TW, + 132 => CUPS_JIS_X0213, + 191 => CUPS_ENCODING_VBCS_END, + _ => throw ArgumentError('Unknown value for cups_encoding_e: $value'), + }; +} + +typedef cups_file_t = _cups_file_s; +typedef cups_interpret_cb_t = + ffi.Pointer>; +typedef cups_interpret_cb_tFunction = + ffi.Int Function( + ffi.Pointer header, + ffi.Int preferred_bits, + ); +typedef Dartcups_interpret_cb_tFunction = + int Function(ffi.Pointer header, int preferred_bits); + +final class cups_job_s extends ffi.Struct { + @ffi.Int() + external int id; + + external ffi.Pointer dest; + + external ffi.Pointer title; + + external ffi.Pointer user; + + external ffi.Pointer format; + + @ffi.UnsignedInt() + external int stateAsInt; + + ipp_jstate_e get state => ipp_jstate_e.fromValue(stateAsInt); + set state(ipp_jstate_e value) => stateAsInt = value.value; + + @ffi.Int() + external int size; + + @ffi.Int() + external int priority; + + @time_t() + external int completed_time; + + @time_t() + external int creation_time; + + @time_t() + external int processing_time; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int id, + required ffi.Pointer dest, + required ffi.Pointer title, + required ffi.Pointer user, + required ffi.Pointer format, + required ipp_jstate_e state, + required int size, + required int priority, + required int completed_time, + required int creation_time, + required int processing_time, + }) => $allocator() + ..ref.id = id + ..ref.dest = dest + ..ref.title = title + ..ref.user = user + ..ref.format = format + ..ref.state = state + ..ref.size = size + ..ref.priority = priority + ..ref.completed_time = completed_time + ..ref.creation_time = creation_time + ..ref.processing_time = processing_time; +} + +typedef cups_job_t = cups_job_s; + +enum cups_jog_e { + CUPS_JOG_NONE(0), + CUPS_JOG_FILE(1), + CUPS_JOG_JOB(2), + CUPS_JOG_SET(3); + + final int value; + const cups_jog_e(this.value); + + static cups_jog_e fromValue(int value) => switch (value) { + 0 => CUPS_JOG_NONE, + 1 => CUPS_JOG_FILE, + 2 => CUPS_JOG_JOB, + 3 => CUPS_JOG_SET, + _ => throw ArgumentError('Unknown value for cups_jog_e: $value'), + }; +} + +final class cups_lang_s extends ffi.Struct { + external ffi.Pointer next; + + @ffi.Int() + external int used; + + @ffi.Int() + external int encodingAsInt; + + cups_encoding_e get encoding => cups_encoding_e.fromValue(encodingAsInt); + set encoding(cups_encoding_e value) => encodingAsInt = value.value; + + @ffi.Array.multi([16]) + external ffi.Array language; + + external ffi.Pointer strings; +} + +typedef cups_lang_t = cups_lang_s; + +enum cups_mode_e { + CUPS_RASTER_READ(0), + CUPS_RASTER_WRITE(1), + CUPS_RASTER_WRITE_COMPRESSED(2), + CUPS_RASTER_WRITE_PWG(3), + CUPS_RASTER_WRITE_APPLE(4); + + final int value; + const cups_mode_e(this.value); + + static cups_mode_e fromValue(int value) => switch (value) { + 0 => CUPS_RASTER_READ, + 1 => CUPS_RASTER_WRITE, + 2 => CUPS_RASTER_WRITE_COMPRESSED, + 3 => CUPS_RASTER_WRITE_PWG, + 4 => CUPS_RASTER_WRITE_APPLE, + _ => throw ArgumentError('Unknown value for cups_mode_e: $value'), + }; +} + +final class cups_option_s extends ffi.Struct { + external ffi.Pointer name; + + external ffi.Pointer value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer name, + required ffi.Pointer value, + }) => $allocator() + ..ref.name = name + ..ref.value = value; +} + +typedef cups_option_t = cups_option_s; + +enum cups_order_e { + CUPS_ORDER_CHUNKED(0), + CUPS_ORDER_BANDED(1), + CUPS_ORDER_PLANAR(2); + + final int value; + const cups_order_e(this.value); + + static cups_order_e fromValue(int value) => switch (value) { + 0 => CUPS_ORDER_CHUNKED, + 1 => CUPS_ORDER_BANDED, + 2 => CUPS_ORDER_PLANAR, + _ => throw ArgumentError('Unknown value for cups_order_e: $value'), + }; +} + +enum cups_orient_e { + CUPS_ORIENT_0(0), + CUPS_ORIENT_90(1), + CUPS_ORIENT_180(2), + CUPS_ORIENT_270(3); + + final int value; + const cups_orient_e(this.value); + + static cups_orient_e fromValue(int value) => switch (value) { + 0 => CUPS_ORIENT_0, + 1 => CUPS_ORIENT_90, + 2 => CUPS_ORIENT_180, + 3 => CUPS_ORIENT_270, + _ => throw ArgumentError('Unknown value for cups_orient_e: $value'), + }; +} + +final class cups_page_header2_s extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array MediaClass; + + @ffi.Array.multi([64]) + external ffi.Array MediaColor; + + @ffi.Array.multi([64]) + external ffi.Array MediaType; + + @ffi.Array.multi([64]) + external ffi.Array OutputType; + + @ffi.UnsignedInt() + external int AdvanceDistance; + + @ffi.UnsignedInt() + external int AdvanceMediaAsInt; + + cups_adv_e get AdvanceMedia => cups_adv_e.fromValue(AdvanceMediaAsInt); + set AdvanceMedia(cups_adv_e value) => AdvanceMediaAsInt = value.value; + + @ffi.UnsignedInt() + external int CollateAsInt; + + cups_bool_e get Collate => cups_bool_e.fromValue(CollateAsInt); + set Collate(cups_bool_e value) => CollateAsInt = value.value; + + @ffi.UnsignedInt() + external int CutMediaAsInt; + + cups_cut_e get CutMedia => cups_cut_e.fromValue(CutMediaAsInt); + set CutMedia(cups_cut_e value) => CutMediaAsInt = value.value; + + @ffi.UnsignedInt() + external int DuplexAsInt; + + cups_bool_e get Duplex => cups_bool_e.fromValue(DuplexAsInt); + set Duplex(cups_bool_e value) => DuplexAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array HWResolution; + + @ffi.Array.multi([4]) + external ffi.Array ImagingBoundingBox; + + @ffi.UnsignedInt() + external int InsertSheetAsInt; + + cups_bool_e get InsertSheet => cups_bool_e.fromValue(InsertSheetAsInt); + set InsertSheet(cups_bool_e value) => InsertSheetAsInt = value.value; + + @ffi.UnsignedInt() + external int JogAsInt; + + cups_jog_e get Jog => cups_jog_e.fromValue(JogAsInt); + set Jog(cups_jog_e value) => JogAsInt = value.value; + + @ffi.UnsignedInt() + external int LeadingEdgeAsInt; + + cups_edge_e get LeadingEdge => cups_edge_e.fromValue(LeadingEdgeAsInt); + set LeadingEdge(cups_edge_e value) => LeadingEdgeAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array Margins; + + @ffi.UnsignedInt() + external int ManualFeedAsInt; + + cups_bool_e get ManualFeed => cups_bool_e.fromValue(ManualFeedAsInt); + set ManualFeed(cups_bool_e value) => ManualFeedAsInt = value.value; + + @ffi.UnsignedInt() + external int MediaPosition; + + @ffi.UnsignedInt() + external int MediaWeight; + + @ffi.UnsignedInt() + external int MirrorPrintAsInt; + + cups_bool_e get MirrorPrint => cups_bool_e.fromValue(MirrorPrintAsInt); + set MirrorPrint(cups_bool_e value) => MirrorPrintAsInt = value.value; + + @ffi.UnsignedInt() + external int NegativePrintAsInt; + + cups_bool_e get NegativePrint => cups_bool_e.fromValue(NegativePrintAsInt); + set NegativePrint(cups_bool_e value) => NegativePrintAsInt = value.value; + + @ffi.UnsignedInt() + external int NumCopies; + + @ffi.UnsignedInt() + external int OrientationAsInt; + + cups_orient_e get Orientation => cups_orient_e.fromValue(OrientationAsInt); + set Orientation(cups_orient_e value) => OrientationAsInt = value.value; + + @ffi.UnsignedInt() + external int OutputFaceUpAsInt; + + cups_bool_e get OutputFaceUp => cups_bool_e.fromValue(OutputFaceUpAsInt); + set OutputFaceUp(cups_bool_e value) => OutputFaceUpAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array PageSize; + + @ffi.UnsignedInt() + external int SeparationsAsInt; + + cups_bool_e get Separations => cups_bool_e.fromValue(SeparationsAsInt); + set Separations(cups_bool_e value) => SeparationsAsInt = value.value; + + @ffi.UnsignedInt() + external int TraySwitchAsInt; + + cups_bool_e get TraySwitch => cups_bool_e.fromValue(TraySwitchAsInt); + set TraySwitch(cups_bool_e value) => TraySwitchAsInt = value.value; + + @ffi.UnsignedInt() + external int TumbleAsInt; + + cups_bool_e get Tumble => cups_bool_e.fromValue(TumbleAsInt); + set Tumble(cups_bool_e value) => TumbleAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsWidth; + + @ffi.UnsignedInt() + external int cupsHeight; + + @ffi.UnsignedInt() + external int cupsMediaType; + + @ffi.UnsignedInt() + external int cupsBitsPerColor; + + @ffi.UnsignedInt() + external int cupsBitsPerPixel; + + @ffi.UnsignedInt() + external int cupsBytesPerLine; + + @ffi.UnsignedInt() + external int cupsColorOrderAsInt; + + cups_order_e get cupsColorOrder => + cups_order_e.fromValue(cupsColorOrderAsInt); + set cupsColorOrder(cups_order_e value) => cupsColorOrderAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsColorSpaceAsInt; + + cups_cspace_e get cupsColorSpace => + cups_cspace_e.fromValue(cupsColorSpaceAsInt); + set cupsColorSpace(cups_cspace_e value) => cupsColorSpaceAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsCompression; + + @ffi.UnsignedInt() + external int cupsRowCount; + + @ffi.UnsignedInt() + external int cupsRowFeed; + + @ffi.UnsignedInt() + external int cupsRowStep; + + @ffi.UnsignedInt() + external int cupsNumColors; + + @ffi.Float() + external double cupsBorderlessScalingFactor; + + @ffi.Array.multi([2]) + external ffi.Array cupsPageSize; + + @ffi.Array.multi([4]) + external ffi.Array cupsImagingBBox; + + @ffi.Array.multi([16]) + external ffi.Array cupsInteger; + + @ffi.Array.multi([16]) + external ffi.Array cupsReal; + + @ffi.Array.multi([16, 64]) + external ffi.Array> cupsString; + + @ffi.Array.multi([64]) + external ffi.Array cupsMarkerType; + + @ffi.Array.multi([64]) + external ffi.Array cupsRenderingIntent; + + @ffi.Array.multi([64]) + external ffi.Array cupsPageSizeName; +} + +typedef cups_page_header2_t = cups_page_header2_s; + +final class cups_page_header_s extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array MediaClass; + + @ffi.Array.multi([64]) + external ffi.Array MediaColor; + + @ffi.Array.multi([64]) + external ffi.Array MediaType; + + @ffi.Array.multi([64]) + external ffi.Array OutputType; + + @ffi.UnsignedInt() + external int AdvanceDistance; + + @ffi.UnsignedInt() + external int AdvanceMediaAsInt; + + cups_adv_e get AdvanceMedia => cups_adv_e.fromValue(AdvanceMediaAsInt); + set AdvanceMedia(cups_adv_e value) => AdvanceMediaAsInt = value.value; + + @ffi.UnsignedInt() + external int CollateAsInt; + + cups_bool_e get Collate => cups_bool_e.fromValue(CollateAsInt); + set Collate(cups_bool_e value) => CollateAsInt = value.value; + + @ffi.UnsignedInt() + external int CutMediaAsInt; + + cups_cut_e get CutMedia => cups_cut_e.fromValue(CutMediaAsInt); + set CutMedia(cups_cut_e value) => CutMediaAsInt = value.value; + + @ffi.UnsignedInt() + external int DuplexAsInt; + + cups_bool_e get Duplex => cups_bool_e.fromValue(DuplexAsInt); + set Duplex(cups_bool_e value) => DuplexAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array HWResolution; + + @ffi.Array.multi([4]) + external ffi.Array ImagingBoundingBox; + + @ffi.UnsignedInt() + external int InsertSheetAsInt; + + cups_bool_e get InsertSheet => cups_bool_e.fromValue(InsertSheetAsInt); + set InsertSheet(cups_bool_e value) => InsertSheetAsInt = value.value; + + @ffi.UnsignedInt() + external int JogAsInt; + + cups_jog_e get Jog => cups_jog_e.fromValue(JogAsInt); + set Jog(cups_jog_e value) => JogAsInt = value.value; + + @ffi.UnsignedInt() + external int LeadingEdgeAsInt; + + cups_edge_e get LeadingEdge => cups_edge_e.fromValue(LeadingEdgeAsInt); + set LeadingEdge(cups_edge_e value) => LeadingEdgeAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array Margins; + + @ffi.UnsignedInt() + external int ManualFeedAsInt; + + cups_bool_e get ManualFeed => cups_bool_e.fromValue(ManualFeedAsInt); + set ManualFeed(cups_bool_e value) => ManualFeedAsInt = value.value; + + @ffi.UnsignedInt() + external int MediaPosition; + + @ffi.UnsignedInt() + external int MediaWeight; + + @ffi.UnsignedInt() + external int MirrorPrintAsInt; + + cups_bool_e get MirrorPrint => cups_bool_e.fromValue(MirrorPrintAsInt); + set MirrorPrint(cups_bool_e value) => MirrorPrintAsInt = value.value; + + @ffi.UnsignedInt() + external int NegativePrintAsInt; + + cups_bool_e get NegativePrint => cups_bool_e.fromValue(NegativePrintAsInt); + set NegativePrint(cups_bool_e value) => NegativePrintAsInt = value.value; + + @ffi.UnsignedInt() + external int NumCopies; + + @ffi.UnsignedInt() + external int OrientationAsInt; + + cups_orient_e get Orientation => cups_orient_e.fromValue(OrientationAsInt); + set Orientation(cups_orient_e value) => OrientationAsInt = value.value; + + @ffi.UnsignedInt() + external int OutputFaceUpAsInt; + + cups_bool_e get OutputFaceUp => cups_bool_e.fromValue(OutputFaceUpAsInt); + set OutputFaceUp(cups_bool_e value) => OutputFaceUpAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array PageSize; + + @ffi.UnsignedInt() + external int SeparationsAsInt; + + cups_bool_e get Separations => cups_bool_e.fromValue(SeparationsAsInt); + set Separations(cups_bool_e value) => SeparationsAsInt = value.value; + + @ffi.UnsignedInt() + external int TraySwitchAsInt; + + cups_bool_e get TraySwitch => cups_bool_e.fromValue(TraySwitchAsInt); + set TraySwitch(cups_bool_e value) => TraySwitchAsInt = value.value; + + @ffi.UnsignedInt() + external int TumbleAsInt; + + cups_bool_e get Tumble => cups_bool_e.fromValue(TumbleAsInt); + set Tumble(cups_bool_e value) => TumbleAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsWidth; + + @ffi.UnsignedInt() + external int cupsHeight; + + @ffi.UnsignedInt() + external int cupsMediaType; + + @ffi.UnsignedInt() + external int cupsBitsPerColor; + + @ffi.UnsignedInt() + external int cupsBitsPerPixel; + + @ffi.UnsignedInt() + external int cupsBytesPerLine; + + @ffi.UnsignedInt() + external int cupsColorOrderAsInt; + + cups_order_e get cupsColorOrder => + cups_order_e.fromValue(cupsColorOrderAsInt); + set cupsColorOrder(cups_order_e value) => cupsColorOrderAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsColorSpaceAsInt; + + cups_cspace_e get cupsColorSpace => + cups_cspace_e.fromValue(cupsColorSpaceAsInt); + set cupsColorSpace(cups_cspace_e value) => cupsColorSpaceAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsCompression; + + @ffi.UnsignedInt() + external int cupsRowCount; + + @ffi.UnsignedInt() + external int cupsRowFeed; + + @ffi.UnsignedInt() + external int cupsRowStep; +} + +typedef cups_page_header_t = cups_page_header_s; +typedef cups_password_cb2_t = + ffi.Pointer>; +typedef cups_password_cb2_tFunction = + ffi.Pointer Function( + ffi.Pointer prompt, + ffi.Pointer http, + ffi.Pointer method, + ffi.Pointer resource, + ffi.Pointer user_data, + ); +typedef cups_password_cb_t = + ffi.Pointer>; +typedef cups_password_cb_tFunction = + ffi.Pointer Function(ffi.Pointer prompt); + +enum cups_ptype_e { + CUPS_PRINTER_LOCAL(0), + CUPS_PRINTER_CLASS(1), + CUPS_PRINTER_REMOTE(2), + CUPS_PRINTER_BW(4), + CUPS_PRINTER_COLOR(8), + CUPS_PRINTER_DUPLEX(16), + CUPS_PRINTER_STAPLE(32), + CUPS_PRINTER_COPIES(64), + CUPS_PRINTER_COLLATE(128), + CUPS_PRINTER_PUNCH(256), + CUPS_PRINTER_COVER(512), + CUPS_PRINTER_BIND(1024), + CUPS_PRINTER_SORT(2048), + CUPS_PRINTER_SMALL(4096), + CUPS_PRINTER_MEDIUM(8192), + CUPS_PRINTER_LARGE(16384), + CUPS_PRINTER_VARIABLE(32768), + CUPS_PRINTER_IMPLICIT(65536), + CUPS_PRINTER_DEFAULT(131072), + CUPS_PRINTER_FAX(262144), + CUPS_PRINTER_REJECTING(524288), + CUPS_PRINTER_DELETE(1048576), + CUPS_PRINTER_NOT_SHARED(2097152), + CUPS_PRINTER_AUTHENTICATED(4194304), + CUPS_PRINTER_COMMANDS(8388608), + CUPS_PRINTER_DISCOVERED(16777216), + CUPS_PRINTER_SCANNER(33554432), + CUPS_PRINTER_MFP(67108864), + CUPS_PRINTER_3D(134217728), + CUPS_PRINTER_OPTIONS(458748); + + final int value; + const cups_ptype_e(this.value); + + static cups_ptype_e fromValue(int value) => switch (value) { + 0 => CUPS_PRINTER_LOCAL, + 1 => CUPS_PRINTER_CLASS, + 2 => CUPS_PRINTER_REMOTE, + 4 => CUPS_PRINTER_BW, + 8 => CUPS_PRINTER_COLOR, + 16 => CUPS_PRINTER_DUPLEX, + 32 => CUPS_PRINTER_STAPLE, + 64 => CUPS_PRINTER_COPIES, + 128 => CUPS_PRINTER_COLLATE, + 256 => CUPS_PRINTER_PUNCH, + 512 => CUPS_PRINTER_COVER, + 1024 => CUPS_PRINTER_BIND, + 2048 => CUPS_PRINTER_SORT, + 4096 => CUPS_PRINTER_SMALL, + 8192 => CUPS_PRINTER_MEDIUM, + 16384 => CUPS_PRINTER_LARGE, + 32768 => CUPS_PRINTER_VARIABLE, + 65536 => CUPS_PRINTER_IMPLICIT, + 131072 => CUPS_PRINTER_DEFAULT, + 262144 => CUPS_PRINTER_FAX, + 524288 => CUPS_PRINTER_REJECTING, + 1048576 => CUPS_PRINTER_DELETE, + 2097152 => CUPS_PRINTER_NOT_SHARED, + 4194304 => CUPS_PRINTER_AUTHENTICATED, + 8388608 => CUPS_PRINTER_COMMANDS, + 16777216 => CUPS_PRINTER_DISCOVERED, + 33554432 => CUPS_PRINTER_SCANNER, + 67108864 => CUPS_PRINTER_MFP, + 134217728 => CUPS_PRINTER_3D, + 458748 => CUPS_PRINTER_OPTIONS, + _ => throw ArgumentError('Unknown value for cups_ptype_e: $value'), + }; +} + +typedef cups_ptype_t = ffi.UnsignedInt; +typedef Dartcups_ptype_t = int; +typedef cups_raster_iocb_t = + ffi.Pointer>; +typedef cups_raster_iocb_tFunction = + ssize_t Function( + ffi.Pointer ctx, + ffi.Pointer buffer, + ffi.Size length, + ); +typedef Dartcups_raster_iocb_tFunction = + Dart__darwin_ssize_t Function( + ffi.Pointer ctx, + ffi.Pointer buffer, + int length, + ); +typedef cups_raster_t = _cups_raster_s; +typedef cups_server_cert_cb_t = + ffi.Pointer>; +typedef cups_server_cert_cb_tFunction = + ffi.Int Function( + ffi.Pointer http, + ffi.Pointer tls, + ffi.Pointer certs, + ffi.Pointer user_data, + ); +typedef Dartcups_server_cert_cb_tFunction = + int Function( + ffi.Pointer http, + ffi.Pointer tls, + ffi.Pointer certs, + ffi.Pointer user_data, + ); + +final class cups_size_s extends ffi.Struct { + @ffi.Array.multi([128]) + external ffi.Array media; + + @ffi.Int() + external int width; + + @ffi.Int() + external int length; + + @ffi.Int() + external int bottom; + + @ffi.Int() + external int left; + + @ffi.Int() + external int right; + + @ffi.Int() + external int top; +} + +typedef cups_size_t = cups_size_s; + +const int curNumberPartsVersion = 1; + +const int currLeadingZ = 128; + +const int currNegSym = 32; + +const int currSymLead = 16; + +const int currTrailingZ = 64; + +const int currentCurLang = -4; + +const int currentDefLang = -5; + +const int cursorDev = 14; + +const int cutDev = 10; + +const int dInstErr = -26; + +const int dRemovErr = -25; + +typedef daddr_t = ffi.Int32; +typedef Dartdaddr_t = int; + +const int dataAlreadyClosed = -2045; + +const int dataAlreadyOpenForWrite = -2044; + +const int dataNoDataRef = -2047; + +const int dataNotOpenForRead = -2042; + +const int dataNotOpenForWrite = -2043; + +const int dataVerErr = -68; + +const int dateStdMask = 127; + +const int dateTimeInvalid = 34816; + +const int dateTimeNotFound = 33792; + +const int dayField = 3; + +const int dayLdingZ = 32; + +const int dayMask = 8; + +const int dayOfWeekField = 7; + +const int dayOfWeekMask = 128; + +const int dayOfYearField = 8; + +const int dayOfYearMask = 256; + +@Deprecated('Deprecated') +const int dblDagger = 224; + +const int dceExtErr = -30; + +const int dcmBadDataSizeErr = -7117; + +const int dcmBadDictionaryErr = -7102; + +const int dcmBadFeatureErr = -7124; + +const int dcmBadFieldInfoErr = -7111; + +const int dcmBadFieldTypeErr = -7112; + +const int dcmBadFindMethodErr = -7118; + +const int dcmBadKeyErr = -7115; + +const int dcmBadPropertyErr = -7119; + +const int dcmBlockFullErr = -7107; + +const int dcmBufferOverflowErr = -7127; + +const int dcmDictionaryBusyErr = -7105; + +const int dcmDictionaryNotOpenErr = -7104; + +const int dcmDupRecordErr = -7109; + +const int dcmIterationCompleteErr = -7126; + +const int dcmNecessaryFieldErr = -7110; + +const int dcmNoAccessMethodErr = -7122; + +const int dcmNoFieldErr = -7113; + +const int dcmNoRecordErr = -7108; + +const int dcmNotDictionaryErr = -7101; + +const int dcmParamErr = -7100; + +const int dcmPermissionErr = -7103; + +const int dcmProtectedErr = -7121; + +const int dcmTooManyKeyErr = -7116; + +const int ddpLenErr = -92; + +const int ddpSktErr = -91; + +const int deactivDev = 6; + +const int debuggingDuplicateOptionErr = -13882; + +const int debuggingDuplicateSignatureErr = -13881; + +const int debuggingExecutionContextErr = -13880; + +const int debuggingInvalidNameErr = -13885; + +const int debuggingInvalidOptionErr = -13884; + +const int debuggingInvalidSignatureErr = -13883; + +const int debuggingNoCallbackErr = -13886; + +const int debuggingNoMatchErr = -13887; + +final class decform extends ffi.Struct { + @ffi.Char() + external int style; + + @ffi.Char() + external int unused; + + @ffi.Short() + external int digits; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int style, + required int unused, + required int digits, + }) => $allocator() + ..ref.style = style + ..ref.unused = unused + ..ref.digits = digits; +} + +final class decimal extends ffi.Struct { + @ffi.Char() + external int sgn; + + @ffi.Char() + external int unused; + + @ffi.Short() + external int exp$1; + + external UnnamedStruct$4 sig; +} + +@Deprecated('Deprecated') +const int defaultComponentAnyFlags = 1; + +@Deprecated('Deprecated') +const int defaultComponentAnyFlagsAnyManufacturer = 3; + +@Deprecated('Deprecated') +const int defaultComponentAnyFlagsAnyManufacturerAnySubType = 7; + +@Deprecated('Deprecated') +const int defaultComponentAnyManufacturer = 2; + +@Deprecated('Deprecated') +const int defaultComponentAnySubType = 4; + +@Deprecated('Deprecated') +const int defaultComponentIdentical = 0; + +@Deprecated('Deprecated') +const int defaultPhysicalEntryCount = 8; + +@Deprecated('Deprecated') +const int delimPad = -2; + +const int descriptorFontTableTag = 1717859171; + +const int desktopDamagedErr = -1305; + +const int desktopIconResource = -3992; + +const int destPortErr = -906; + +typedef dev_t = __darwin_dev_t; + +const int developStage = 32; + +const int deviceCantMeetRequest = -9408; + +@Deprecated('Deprecated') +const int diaeresisUprE = 232; + +@Deprecated('Deprecated') +const int diaeresisUprI = 236; + +@Deprecated('Deprecated') +const int diaeresisUprY = 217; + +const int dialogNoTimeoutErr = -5640; + +const int diffVolErr = -1303; + +const int digiUnimpErr = -2201; + +const int dirFulErr = -33; + +const int dirNFErr = -120; + +const int directXObjectAlreadyExists = -8990; + +enum dispatch_autorelease_frequency_t { + DISPATCH_AUTORELEASE_FREQUENCY_INHERIT(0), + DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM(1), + DISPATCH_AUTORELEASE_FREQUENCY_NEVER(2); + + final int value; + const dispatch_autorelease_frequency_t(this.value); + + static dispatch_autorelease_frequency_t fromValue(int value) => + switch (value) { + 0 => DISPATCH_AUTORELEASE_FREQUENCY_INHERIT, + 1 => DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM, + 2 => DISPATCH_AUTORELEASE_FREQUENCY_NEVER, + _ => throw ArgumentError( + 'Unknown value for dispatch_autorelease_frequency_t: $value', + ), + }; +} + +sealed class dispatch_block_flags_t { + static const DISPATCH_BLOCK_BARRIER = 1; + static const DISPATCH_BLOCK_DETACHED = 2; + static const DISPATCH_BLOCK_ASSIGN_CURRENT = 4; + static const DISPATCH_BLOCK_NO_QOS_CLASS = 8; + static const DISPATCH_BLOCK_INHERIT_QOS_CLASS = 16; + static const DISPATCH_BLOCK_ENFORCE_QOS_CLASS = 32; +} + +typedef dispatch_block_t = ffi.Pointer; +typedef Dartdispatch_block_t = objc.ObjCBlock; +typedef dispatch_data_applier_t = ffi.Pointer; +typedef Dartdispatch_data_applier_t = + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >; + +final class dispatch_data_s extends ffi.Opaque {} + +typedef dispatch_data_t = ffi.Pointer; +typedef Dartdispatch_data_t = objc.NSObject; +typedef dispatch_fd_t = ffi.Int; +typedef Dartdispatch_fd_t = int; +typedef dispatch_function_t = + ffi.Pointer>; +typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); +typedef dispatch_group_t = ffi.Pointer; +typedef Dartdispatch_group_t = objc.NSObject; +typedef dispatch_io_close_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_io_close_flags_t = int; +typedef dispatch_io_handler_t = ffi.Pointer; +typedef Dartdispatch_io_handler_t = + objc.ObjCBlock; +typedef dispatch_io_interval_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_io_interval_flags_t = int; +typedef dispatch_io_t = ffi.Pointer; +typedef Dartdispatch_io_t = objc.NSObject; +typedef dispatch_io_type_t = ffi.UnsignedLong; +typedef Dartdispatch_io_type_t = int; +typedef dispatch_object_t = ffi.Pointer; +typedef Dartdispatch_object_t = objc.NSObject; +typedef dispatch_once_t = ffi.IntPtr; +typedef Dartdispatch_once_t = int; + +final class dispatch_queue_attr_s extends ffi.Opaque {} + +typedef dispatch_queue_attr_t = ffi.Pointer; +typedef Dartdispatch_queue_attr_t = objc.NSObject; +typedef dispatch_queue_concurrent_t = ffi.Pointer; +typedef Dartdispatch_queue_concurrent_t = objc.NSObject; +typedef dispatch_queue_global_t = ffi.Pointer; +typedef Dartdispatch_queue_global_t = objc.NSObject; +typedef dispatch_queue_main_t = ffi.Pointer; +typedef Dartdispatch_queue_main_t = objc.NSObject; +typedef dispatch_queue_priority_t = ffi.Long; +typedef Dartdispatch_queue_priority_t = int; + +final class dispatch_queue_s extends ffi.Opaque {} + +typedef dispatch_queue_serial_executor_t = ffi.Pointer; +typedef Dartdispatch_queue_serial_executor_t = objc.NSObject; +typedef dispatch_queue_serial_t = ffi.Pointer; +typedef Dartdispatch_queue_serial_t = objc.NSObject; +typedef dispatch_queue_t = ffi.Pointer; +typedef Dartdispatch_queue_t = objc.NSObject; +typedef dispatch_semaphore_t = ffi.Pointer; +typedef Dartdispatch_semaphore_t = objc.NSObject; +typedef dispatch_source_mach_recv_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_mach_recv_flags_t = int; +typedef dispatch_source_mach_send_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_mach_send_flags_t = int; +typedef dispatch_source_memorypressure_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_memorypressure_flags_t = int; +typedef dispatch_source_proc_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_proc_flags_t = int; +typedef dispatch_source_t = ffi.Pointer; +typedef Dartdispatch_source_t = objc.NSObject; +typedef dispatch_source_timer_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_timer_flags_t = int; + +final class dispatch_source_type_s extends ffi.Opaque {} + +typedef dispatch_source_type_t = ffi.Pointer; +typedef dispatch_source_vnode_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_vnode_flags_t = int; +typedef dispatch_time_t = ffi.Uint64; +typedef Dartdispatch_time_t = int; +typedef dispatch_workloop_t = ffi.Pointer; +typedef Dartdispatch_workloop_t = objc.NSObject; + +final class div_t extends ffi.Struct { + @ffi.Int() + external int quot; + + @ffi.Int() + external int rem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int quot, + required int rem, + }) => $allocator() + ..ref.quot = quot + ..ref.rem = rem; +} + +const int dmy = 1; + +@Deprecated('Deprecated') +const int dotlessLwrI = 245; + +@Deprecated('Deprecated') +const int doubleAcute = 253; + +typedef double_t = ffi.Double; +typedef Dartdouble_t = double; + +const int dragNotAcceptedErr = -1857; + +const int driverHardwareGoneErr = -503; + +const int dropFolderIconResource = -3979; + +@Deprecated('Deprecated') +const int drvQType = 3; + +const int ds32BitMode = 103; + +const int dsAddressErr = 2; + +const int dsBadLaunch = 26; + +const int dsBadLibrary = 1010; + +const int dsBadPatch = 99; + +const int dsBadPatchHeader = 83; + +const int dsBadSANEOpcode = 81; + +const int dsBadSlotInt = 51; + +const int dsBadStartupDisk = 42; + +const int dsBufPtrTooLow = 106; + +const int dsBusError = 1; + +const int dsCDEFNotFound = 88; + +const int dsCantHoldSystemHeap = 114; + +const int dsChkErr = 5; + +const int dsCoreErr = 12; + +const int dsDirtyDisk = 20004; + +const int dsDisassemblerInstalled = -11; + +const int dsExtensionsDisabled = -13; + +const int dsFPErr = 16; + +const int dsFSErr = 27; + +const int dsFinderErr = 41; + +const int dsForcedQuit = 20002; + +const int dsGibblyMovedToDisabledFolder = 117; + +const int dsGreeting = 40; + +const int dsHD20Installed = -12; + +const int dsHMenuFindErr = 86; + +const int dsIOCoreErr = 14; + +const int dsIllInstErr = 3; + +const int dsIrqErr = 13; + +const int dsLineAErr = 9; + +const int dsLineFErr = 10; + +const int dsLoadErr = 15; + +const int dsLostConnectionToNetworkDisk = 121; + +const int dsMBATAPISysError = 29203; + +const int dsMBATASysError = 29202; + +const int dsMBExternFlpySysError = 29204; + +const int dsMBFlpySysError = 29201; + +const int dsMBSysError = 29200; + +const int dsMBarNFnd = 85; + +const int dsMDEFNotFound = 89; + +const int dsMacOSROMVersionTooOld = 120; + +const int dsMacsBugInstalled = -10; + +const int dsMemFullErr = 25; + +const int dsMiscErr = 11; + +const int dsMixedModeFailure = 1011; + +const int dsMustUseFCBAccessors = 119; + +const int dsNeedToWriteBootBlocks = 104; + +const int dsNoExtsDisassembler = -2; + +const int dsNoExtsMacsBug = -1; + +const int dsNoFPU = 90; + +const int dsNoPackErr = 17; + +const int dsNoPatch = 98; + +const int dsNoPk1 = 18; + +const int dsNoPk2 = 19; + +const int dsNoPk3 = 20; + +const int dsNoPk4 = 21; + +const int dsNoPk5 = 22; + +const int dsNoPk6 = 23; + +const int dsNoPk7 = 24; + +const int dsNotEnoughRAMToBoot = 105; + +const int dsNotThe1 = 31; + +const int dsOldSystem = 102; + +const int dsOvflowErr = 6; + +const int dsPCCardATASysError = 29205; + +const int dsParityErr = 101; + +const int dsPrivErr = 7; + +const int dsRAMDiskTooBig = 122; + +const int dsReinsert = 30; + +const int dsRemoveDisk = 20003; + +const int dsSCSIWarn = 20010; + +const int dsShutDownOrRestart = 20000; + +const int dsShutDownOrResume = 20109; + +const int dsStknHeap = 28; + +const int dsSwitchOffOrRestart = 20001; + +const int dsSysErr = 32767; + +const int dsSystemFileErr = 43; + +const int dsSystemRequiresPowerPC = 116; + +const int dsTraceErr = 8; + +const int dsUnBootableSystem = 118; + +const int dsVMBadBackingStore = 113; + +const int dsVMDeferredFuncTableFull = 112; + +const int dsWDEFNotFound = 87; + +const int dsWriteToSupervisorStackGuardPage = 128; + +const int dsZeroDivErr = 4; + +const int dskFulErr = -34; + +@Deprecated('Deprecated') +const int dtQType = 7; + +@Deprecated('Deprecated') +const int dummyType = 0; + +const int dupFNErr = -48; + +const int duplicateAtomTypeAndIDErr = -2105; + +const int duplicateFlavorErr = -1853; + +const int duplicateFolderDescErr = -4271; + +const int duplicateHandlerErr = -1855; + +const int duplicatePasteboardFlavorErr = -25134; + +const int duplicateRoutingErr = -4274; + +const int duplicateScrapFlavorErr = -4989; + +@Deprecated('Deprecated') +const int durationDay = 86400000; + +@Deprecated('Deprecated') +const int durationForever = 2147483647; + +@Deprecated('Deprecated') +const int durationHour = 3600000; + +@Deprecated('Deprecated') +const int durationMicrosecond = -1; + +@Deprecated('Deprecated') +const int durationMillisecond = 1; + +@Deprecated('Deprecated') +const int durationMinute = 60000; + +@Deprecated('Deprecated') +const int durationNoWait = 0; + +@Deprecated('Deprecated') +const int durationSecond = 1000; + +final class dyld_kernel_image_info extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array uuid; + + external fsobj_id_t fsobjid; + + external fsid_t fsid$1; + + @ffi.Uint64() + external int load_addr; +} + +typedef dyld_kernel_image_info_array_t = ffi.Pointer; +typedef dyld_kernel_image_info_t = dyld_kernel_image_info; + +final class dyld_kernel_process_info extends ffi.Struct { + external dyld_kernel_image_info cache_image_info; + + @ffi.Uint64() + external int timestamp; + + @ffi.Uint32() + external int imageCount; + + @ffi.Uint32() + external int initialImageCount; + + @ffi.Uint8() + external int dyldState; + + @boolean_t() + external int no_cache; + + @boolean_t() + external int private_cache; +} + +typedef dyld_kernel_process_info_t = dyld_kernel_process_info; + +const int dym = 4; + +const int eADB = 1700881506; + +const int eAddressSpec = 1700881523; + +const int eAnalogAudio = 1701863797; + +const int eAppleTalk = 1701863796; + +const int eAudioLineIn = 1701011817; + +const int eAudioLineOut = 1701011820; + +const int eAudioOut = 1701011823; + +const int eBus = 1700951411; + +const int eCDROM = 1701012512; + +const int eCapsLockDown = 1264807019; + +const int eClearKey = 1802716928; + +const int eCommSlot = 1701012333; + +const int eCommandDown = 1264807268; + +const int eConduit = 1701015406; + +const int eControlDown = 1264809068; + +const int eDVD = 1701082724; + +const int eDeleteKey = 1802711808; + +const int eDeviceType = 1701082740; + +const int eDigitalAudio = 1701864545; + +const int eDisplay = 1701078131; + +const int eDownArrowKey = 1802730752; + +const int eEndKey = 1802729216; + +const int eEnterKey = 1802718208; + +const int eEscapeKey = 1802712320; + +const int eEthernet = 1701012846; + +const int eF10Key = 1802726656; + +const int eF11Key = 1802725120; + +const int eF12Key = 1802727168; + +const int eF13Key = 1802725632; + +const int eF14Key = 1802726144; + +const int eF15Key = 1802727680; + +const int eF1Key = 1802729984; + +const int eF2Key = 1802729472; + +const int eF3Key = 1802724096; + +const int eF4Key = 1802728960; + +const int eF5Key = 1802723328; + +const int eF6Key = 1802723584; + +const int eF7Key = 1802723840; + +const int eF8Key = 1802724352; + +const int eF9Key = 1802724608; + +const int eFireWire = 1701013111; + +const int eFloppy = 1701209120; + +const int eForwardDelKey = 1802728704; + +const int eHD = 1701340192; + +const int eHelpKey = 1802727936; + +const int eHomeKey = 1802728192; + +const int eIP = 1701865840; + +const int eIRTalk = 1701865844; + +const int eInfrared = 1701013874; + +const int eIrDA = 1701865842; + +const int eKeyKind = 1701540724; + +const int eKeyboard = 1701536356; + +const int eLCD = 1701080163; + +const int eLeftArrowKey = 1802730240; + +const int eLenErr = -92; + +const int eLocalTalk = 1701014644; + +const int eMacIP = 1701866857; + +const int eMacVideo = 1701866870; + +const int eMicrophone = 1701014889; + +const int eModem = 1701080429; + +const int eModemPort = 1701014896; + +const int eModemPrinterPort = 1701671024; + +const int eModifiers = 1699570803; + +const int eMonitorOut = 1701014894; + +const int eMouse = 1701670773; + +const int eMultiErr = -91; + +const int eNuBus = 1701737826; + +const int eNuBusCard = 1701080674; + +const int eOptionDown = 1265594484; + +const int ePCIbus = 1701015657; + +const int ePCIcard = 1701081193; + +const int ePCcard = 1701015651; + +const int ePDScard = 1701864563; + +const int ePDSslot = 1701015652; + +const int ePPP = 1701867632; + +const int ePageDownKey = 1802729728; + +const int ePageUpKey = 1802728448; + +const int ePointingDevice = 1701081188; + +const int ePostScript = 1701867635; + +const int ePrinter = 1701081202; + +const int ePrinterPort = 1701015664; + +const int eProtocol = 1701868143; + +const int eReturnKey = 1802707968; + +const int eRightArrowKey = 1802730496; + +const int eSCSI = 1701016419; + +const int eSVGA = 1701868391; + +const int eScheme = 1702060904; + +const int eSerial = 1701868402; + +const int eShiftDown = 1265854068; + +const int eSpeakers = 1701081968; + +const int eStorageDevice = 1701081972; + +const int eSvideo = 1701868406; + +const int eTabKey = 1802711040; + +const int eTokenRing = 1702129515; + +const int eTrackball = 1702130283; + +const int eTrackpad = 1701082224; + +const int eUSB = 1701016947; + +const int eUpArrowKey = 1802731008; + +const int eVideoIn = 1701017193; + +const int eVideoMonitor = 1701082733; + +const int eVideoOut = 1701017199; + +const int editingNotAllowed = -9995; + +const int editionMgrInitErr = -450; + +const int emptyPathErr = -2111; + +typedef emulation_vector_t = ffi.Pointer; + +const int endOfDataReached = -2046; + +const int enumArrows = 1634890351; + +const int enumJustification = 1786082164; + +const int enumKeyForm = 1801876077; + +const int enumPosition = 1886352233; + +const int enumProtection = 1886549102; + +const int enumQuality = 1903518060; + +const int enumSaveOptions = 1935767151; + +const int enumStyle = 1937013100; + +const int enumTransferMode = 1953653102; + +const int envBadVers = -5501; + +const int envNotPresent = -5500; + +const int envVersTooBig = -5502; + +const int eofErr = -39; + +const int eraField = 0; + +const int eraMask = 1; + +const int errAEAccessorNotFound = -1723; + +const int errAEBadKeyForm = -10002; + +const int errAEBadListItem = -1705; + +const int errAEBadTestKey = -1726; + +const int errAEBufferTooSmall = -1741; + +const int errAEBuildSyntaxError = -1740; + +const int errAECantHandleClass = -10010; + +const int errAECantPutThatThere = -10024; + +const int errAECantSupplyType = -10009; + +const int errAECantUndo = -10015; + +const int errAECoercionFail = -1700; + +const int errAECorruptData = -1702; + +const int errAEDescIsNull = -1739; + +const int errAEDescNotFound = -1701; + +const int errAEDuplicateHandler = -1736; + +const int errAEEmptyListContainer = -1730; + +const int errAEEventFailed = -10000; + +const int errAEEventFiltered = -1735; + +const int errAEEventNotHandled = -1708; + +const int errAEEventNotPermitted = -1743; + +const int errAEEventWouldRequireUserConsent = -1744; + +const int errAEHandlerNotFound = -1717; + +const int errAEIllegalIndex = -1719; + +const int errAEImpossibleRange = -1720; + +const int errAEInTransaction = -10011; + +const int errAEIndexTooLarge = -10007; + +const int errAELocalOnly = -10016; + +const int errAENegativeCount = -1729; + +const int errAENewerVersion = -1706; + +const int errAENoSuchLogical = -1725; + +const int errAENoSuchObject = -1728; + +const int errAENoSuchTransaction = -10012; + +const int errAENoUserInteraction = -1713; + +const int errAENoUserSelection = -10013; + +const int errAENotAEDesc = -1704; + +const int errAENotASingleObject = -10014; + +const int errAENotASpecialFunction = -1714; + +const int errAENotAnElement = -10008; + +const int errAENotAnEnumMember = -10023; + +const int errAENotAnObjSpec = -1727; + +const int errAENotAppleEvent = -1707; + +const int errAENotModifiable = -10003; + +const int errAEParamMissed = -1715; + +const int errAEPrivilegeError = -10004; + +const int errAEPropertiesClash = -10025; + +const int errAEReadDenied = -10005; + +const int errAEReceiveEscapeCurrent = -1734; + +const int errAEReceiveTerminate = -1733; + +const int errAERecordingIsAlreadyOn = -1732; + +const int errAEReplyNotArrived = -1718; + +const int errAEReplyNotValid = -1709; + +const int errAEStreamAlreadyConverted = -1738; + +const int errAEStreamBadNesting = -1737; + +const int errAETargetAddressNotPermitted = -1742; + +const int errAETimeout = -1712; + +const int errAETypeError = -10001; + +const int errAEUnknownAddressType = -1716; + +const int errAEUnknownObjectType = -1731; + +const int errAEUnknownSendMode = -1710; + +const int errAEWaitCanceled = -1711; + +const int errAEWriteDenied = -10006; + +const int errAEWrongDataType = -1703; + +const int errAEWrongNumberArgs = -1721; + +const int errASCantCompareMoreThan32k = -2721; + +const int errASCantConsiderAndIgnore = -2720; + +const int errASIllegalFormalParameter = -2761; + +const int errASInconsistentNames = -2780; + +const int errASNoResultReturned = -2763; + +const int errASParameterNotForEvent = -2762; + +const int errASTerminologyNestingTooDeep = -2760; + +const int errAborted = -1279; + +const int errAlreadyInImagingMode = -5243; + +const int errAttention = -1276; + +const int errAuthorizationBadAddress = -60033; + +const int errAuthorizationCanceled = -60006; + +const int errAuthorizationDenied = -60005; + +const int errAuthorizationExternalizeNotAllowed = -60009; + +const int errAuthorizationInteractionNotAllowed = -60007; + +const int errAuthorizationInternal = -60008; + +const int errAuthorizationInternalizeNotAllowed = -60010; + +const int errAuthorizationInvalidFlags = -60011; + +const int errAuthorizationInvalidPointer = -60004; + +const int errAuthorizationInvalidRef = -60002; + +const int errAuthorizationInvalidSet = -60001; + +const int errAuthorizationInvalidTag = -60003; + +const int errAuthorizationSuccess = 0; + +const int errAuthorizationToolEnvironmentError = -60032; + +const int errAuthorizationToolExecuteFailure = -60031; + +const int errCannotUndo = -5253; + +const int errCantEmbedIntoSelf = -30594; + +const int errCantEmbedRoot = -30595; + +const int errControlDoesntSupportFocus = -30582; + +const int errControlHiddenOrDisabled = -30592; + +const int errControlIsNotEmbedder = -30590; + +const int errControlsAlreadyExist = -30589; + +const int errCoreEndianDataDoesNotMatchFormat = -4942; + +const int errCoreEndianDataTooLongForFormat = -4941; + +const int errCoreEndianDataTooShortForFormat = -4940; + +const int errCorruptWindowDescription = -5606; + +const int errCouldntSetFocus = -30585; + +const int errCppGeneral = -32000; + +const int errCppLastSystemDefinedError = -32020; + +const int errCppLastUserDefinedError = -32049; + +const int errCppbad_alloc = -32001; + +const int errCppbad_cast = -32002; + +const int errCppbad_exception = -32003; + +const int errCppbad_typeid = -32004; + +const int errCppdomain_error = -32006; + +const int errCppinvalid_argument = -32007; + +const int errCppios_base_failure = -32014; + +const int errCpplength_error = -32008; + +const int errCpplogic_error = -32005; + +const int errCppout_of_range = -32009; + +const int errCppoverflow_error = -32011; + +const int errCpprange_error = -32012; + +const int errCppruntime_error = -32010; + +const int errCppunderflow_error = -32013; + +const int errDSPQueueSize = -1274; + +const int errDataNotSupported = -30581; + +const int errDataSizeMismatch = -30591; + +const int errEmptyScrap = -5249; + +const int errEndOfBody = -1813; + +const int errEndOfDocument = -1812; + +const int errEngineNotFound = -5244; + +const int errFSAttributeNotFound = -1427; + +const int errFSBadAllocFlags = -1413; + +const int errFSBadBuffer = -1403; + +const int errFSBadFSRef = -1401; + +const int errFSBadForkName = -1402; + +const int errFSBadForkRef = -1404; + +const int errFSBadInfoBitmap = -1405; + +const int errFSBadItemCount = -1418; + +const int errFSBadIteratorFlags = -1422; + +const int errFSBadPosMode = -1412; + +const int errFSBadSearchParams = -1419; + +const int errFSForkExists = -1421; + +const int errFSForkNotFound = -1409; + +const int errFSIteratorNotFound = -1423; + +const int errFSIteratorNotSupported = -1424; + +const int errFSMissingCatInfo = -1406; + +const int errFSMissingName = -1411; + +const int errFSNameTooLong = -1410; + +const int errFSNoMoreItems = -1417; + +const int errFSNotAFolder = -1407; + +const int errFSNotEnoughSpaceForOperation = -1429; + +const int errFSOperationNotSupported = -1426; + +const int errFSPropertyNotValid = -1428; + +const int errFSQuotaExceeded = -1425; + +const int errFSRefsDifferent = -1420; + +const int errFSUnknownCall = -1400; + +const int errFloatingWindowsNotInitialized = -5609; + +const int errFwdReset = -1275; + +const int errIAAllocationErr = -5381; + +const int errIABufferTooSmall = -5384; + +const int errIACanceled = -5385; + +const int errIAEndOfTextRun = -5388; + +const int errIAInvalidDocument = -5386; + +const int errIANoErr = 0; + +const int errIANoMoreItems = -5383; + +const int errIAParamErr = -5382; + +const int errIATextExtractionErr = -5387; + +const int errIAUnknownErr = -5380; + +const int errInvalidPartCode = -30588; + +const int errInvalidRange = -5246; + +const int errInvalidWindowProperty = -5603; + +const int errInvalidWindowPtr = -5600; + +const int errInvalidWindowRef = -5600; + +const int errItemNotControl = -30596; + +const int errIteratorReachedEnd = -5245; + +const int errKCAuthFailed = -25293; + +const int errKCBufferTooSmall = -25301; + +const int errKCCreateChainFailed = -25318; + +const int errKCDataNotAvailable = -25316; + +const int errKCDataNotModifiable = -25317; + +const int errKCDataTooLarge = -25302; + +const int errKCDuplicateCallback = -25297; + +const int errKCDuplicateItem = -25299; + +const int errKCDuplicateKeychain = -25296; + +const int errKCInteractionNotAllowed = -25308; + +const int errKCInteractionRequired = -25315; + +const int errKCInvalidCallback = -25298; + +const int errKCInvalidItemRef = -25304; + +const int errKCInvalidKeychain = -25295; + +const int errKCInvalidSearchRef = -25305; + +const int errKCItemNotFound = -25300; + +const int errKCKeySizeNotAllowed = -25311; + +const int errKCNoCertificateModule = -25313; + +const int errKCNoDefaultKeychain = -25307; + +const int errKCNoPolicyModule = -25314; + +const int errKCNoStorageModule = -25312; + +const int errKCNoSuchAttr = -25303; + +const int errKCNoSuchClass = -25306; + +const int errKCNoSuchKeychain = -25294; + +const int errKCNotAvailable = -25291; + +const int errKCReadOnly = -25292; + +const int errKCReadOnlyAttr = -25309; + +const int errKCWrongKCVersion = -25310; + +const int errMarginWilllNotFit = -5241; + +const int errMessageNotSupported = -30580; + +const int errNoHiliteText = -5248; + +const int errNoRootControl = -30586; + +const int errNonContiuousAttribute = -5252; + +const int errNotInImagingMode = -5242; + +const int errOSAAppNotHighLevelEventAware = -2704; + +const int errOSABadSelector = -1754; + +const int errOSABadStorageType = -1752; + +const int errOSACantAccess = -1728; + +const int errOSACantAssign = -10006; + +const int errOSACantCoerce = -1700; + +const int errOSACantCreate = -2710; + +const int errOSACantGetTerminology = -2709; + +const int errOSACantLaunch = -2703; + +const int errOSACantOpenComponent = -1762; + +const int errOSACantStorePointers = -1763; + +const int errOSAComponentMismatch = -1761; + +const int errOSACorruptData = -1702; + +const int errOSACorruptTerminology = -2705; + +const int errOSADataBlockTooLarge = -2708; + +const int errOSADataFormatObsolete = -1758; + +const int errOSADataFormatTooNew = -1759; + +const int errOSADivideByZero = -2701; + +const int errOSAGeneralError = -2700; + +const int errOSAInternalTableOverflow = -2707; + +const int errOSAInvalidID = -1751; + +const int errOSANoSuchDialect = -1757; + +const int errOSANumericOverflow = -2702; + +const int errOSARecordingIsAlreadyOn = -1732; + +const int errOSAScriptError = -1753; + +const int errOSASourceNotAvailable = -1756; + +const int errOSAStackOverflow = -2706; + +const int errOSASystemError = -1750; + +const int errOSATypeError = -1703; + +const int errOffsetInvalid = -1800; + +const int errOffsetIsOutsideOfView = -1801; + +const int errOffsetNotOnElementBounday = -5247; + +const int errOpenDenied = -1273; + +const int errOpening = -1277; + +const int errReadOnlyText = -5250; + +const int errRefNum = -1280; + +const int errRootAlreadyExists = -30587; + +const int errSSLATSCertificateHashAlgorithmViolation = -9885; + +const int errSSLATSCertificateTrustViolation = -9886; + +const int errSSLATSCiphersuiteViolation = -9882; + +const int errSSLATSLeafCertificateHashAlgorithmViolation = -9884; + +const int errSSLATSMinimumKeySizeViolation = -9883; + +const int errSSLATSMinimumVersionViolation = -9881; + +const int errSSLATSViolation = -9880; + +const int errSSLBadCert = -9808; + +const int errSSLBadCertificateStatusResponse = -9862; + +const int errSSLBadCipherSuite = -9818; + +const int errSSLBadConfiguration = -9848; + +const int errSSLBadRecordMac = -9846; + +const int errSSLBufferOverflow = -9817; + +const int errSSLCertExpired = -9814; + +const int errSSLCertNotYetValid = -9815; + +const int errSSLCertificateRequired = -9863; + +const int errSSLClientCertRequested = -9842; + +const int errSSLClientHelloReceived = -9851; + +const int errSSLClosedAbort = -9806; + +const int errSSLClosedGraceful = -9805; + +const int errSSLClosedNoNotify = -9816; + +const int errSSLConfigurationFailed = -9854; + +const int errSSLConnectionRefused = -9844; + +const int errSSLCrypto = -9809; + +const int errSSLDecodeError = -9859; + +const int errSSLDecompressFail = -9857; + +const int errSSLDecryptionFail = -9845; + +const int errSSLEarlyDataRejected = -9890; + +const int errSSLFatalAlert = -9802; + +const int errSSLHandshakeFail = -9858; + +const int errSSLHostNameMismatch = -9843; + +const int errSSLIllegalParam = -9830; + +const int errSSLInappropriateFallback = -9860; + +const int errSSLInternal = -9810; + +const int errSSLMissingExtension = -9861; + +const int errSSLModuleAttach = -9811; + +const int errSSLNegotiation = -9801; + +const int errSSLNetworkTimeout = -9853; + +const int errSSLNoRootCert = -9813; + +const int errSSLPeerAccessDenied = -9832; + +const int errSSLPeerAuthCompleted = -9841; + +const int errSSLPeerBadCert = -9825; + +const int errSSLPeerBadRecordMac = -9820; + +const int errSSLPeerCertExpired = -9828; + +const int errSSLPeerCertRevoked = -9827; + +const int errSSLPeerCertUnknown = -9829; + +const int errSSLPeerDecodeError = -9833; + +const int errSSLPeerDecompressFail = -9823; + +const int errSSLPeerDecryptError = -9834; + +const int errSSLPeerDecryptionFail = -9821; + +const int errSSLPeerExportRestriction = -9835; + +const int errSSLPeerHandshakeFail = -9824; + +const int errSSLPeerInsufficientSecurity = -9837; + +const int errSSLPeerInternalError = -9838; + +const int errSSLPeerNoRenegotiation = -9840; + +const int errSSLPeerProtocolVersion = -9836; + +const int errSSLPeerRecordOverflow = -9822; + +const int errSSLPeerUnexpectedMsg = -9819; + +const int errSSLPeerUnknownCA = -9831; + +const int errSSLPeerUnsupportedCert = -9826; + +const int errSSLPeerUserCancelled = -9839; + +const int errSSLProtocol = -9800; + +const int errSSLRecordOverflow = -9847; + +const int errSSLSessionNotFound = -9804; + +const int errSSLTransportReset = -9852; + +const int errSSLUnexpectedMessage = -9856; + +const int errSSLUnexpectedRecord = -9849; + +const int errSSLUnknownPSKIdentity = -9864; + +const int errSSLUnknownRootCert = -9812; + +const int errSSLUnrecognizedName = -9865; + +const int errSSLUnsupportedExtension = -9855; + +const int errSSLWeakPeerEphemeralDHKey = -9850; + +const int errSSLWouldBlock = -9803; + +const int errSSLXCertChainInvalid = -9807; + +const int errSecACLAddFailed = -67698; + +const int errSecACLChangeFailed = -67699; + +const int errSecACLDeleteFailed = -67696; + +const int errSecACLNotSimple = -25240; + +const int errSecACLReplaceFailed = -67697; + +const int errSecAddinLoadFailed = -67711; + +const int errSecAddinUnloadFailed = -67714; + +const int errSecAlgorithmMismatch = -67730; + +const int errSecAllocate = -108; + +const int errSecAlreadyLoggedIn = -67814; + +const int errSecAppleAddAppACLSubject = -67589; + +const int errSecAppleInvalidKeyEndDate = -67593; + +const int errSecAppleInvalidKeyStartDate = -67592; + +const int errSecApplePublicKeyIncomplete = -67590; + +const int errSecAppleSSLv2Rollback = -67595; + +const int errSecAppleSignatureMismatch = -67591; + +const int errSecAttachHandleBusy = -67728; + +const int errSecAttributeNotInContext = -67720; + +const int errSecAuthFailed = -25293; + +const int errSecBadReq = -909; + +const int errSecBlockSizeMismatch = -67810; + +const int errSecBufferTooSmall = -25301; + +const int errSecCRLAlreadySigned = -67684; + +const int errSecCRLBadURI = -67617; + +const int errSecCRLExpired = -67613; + +const int errSecCRLNotFound = -67615; + +const int errSecCRLNotTrusted = -67620; + +const int errSecCRLNotValidYet = -67614; + +const int errSecCRLPolicyFailed = -67621; + +const int errSecCRLServerDown = -67616; + +const int errSecCSAmbiguousBundleFormat = -67011; + +const int errSecCSBadBundleFormat = -67028; + +const int errSecCSBadCallbackValue = -67020; + +const int errSecCSBadDictionaryFormat = -67058; + +const int errSecCSBadDiskImageFormat = -67001; + +const int errSecCSBadFrameworkVersion = -67009; + +const int errSecCSBadLVArch = -67017; + +const int errSecCSBadMainExecutable = -67010; + +const int errSecCSBadNestedCode = -67021; + +const int errSecCSBadObjectFormat = -67049; + +const int errSecCSBadResource = -67054; + +const int errSecCSBadTeamIdentifier = -66997; + +const int errSecCSCMSConstructionFailed = -66991; + +const int errSecCSCMSTooLarge = -67036; + +const int errSecCSCancelled = -67006; + +const int errSecCSDBAccess = -67032; + +const int errSecCSDBDenied = -67033; + +const int errSecCSDSStoreSymlink = -67012; + +const int errSecCSDbCorrupt = -67024; + +const int errSecCSFileHardQuarantined = -67026; + +const int errSecCSGuestInvalid = -67063; + +const int errSecCSHelperFailed = -67019; + +const int errSecCSHostProtocolContradiction = -67043; + +const int errSecCSHostProtocolDedicationError = -67042; + +const int errSecCSHostProtocolInvalidAttribute = -67031; + +const int errSecCSHostProtocolInvalidHash = -67035; + +const int errSecCSHostProtocolNotProxy = -67041; + +const int errSecCSHostProtocolRelativePath = -67044; + +const int errSecCSHostProtocolStateError = -67040; + +const int errSecCSHostProtocolUnrelated = -67039; + +const int errSecCSHostReject = -67047; + +const int errSecCSInfoPlistFailed = -67030; + +const int errSecCSInternalError = -67048; + +const int errSecCSInvalidAssociatedFileData = -66999; + +const int errSecCSInvalidAttributeValues = -67066; + +const int errSecCSInvalidEntitlements = -66994; + +const int errSecCSInvalidFlags = -67070; + +const int errSecCSInvalidObjectRef = -67071; + +const int errSecCSInvalidPlatform = -67005; + +const int errSecCSInvalidRuntimeVersion = -66993; + +const int errSecCSInvalidSymlink = -67003; + +const int errSecCSInvalidTeamIdentifier = -66998; + +const int errSecCSMultipleGuests = -67064; + +const int errSecCSNoMainExecutable = -67029; + +const int errSecCSNoMatches = -67027; + +const int errSecCSNoSuchCode = -67065; + +const int errSecCSNotAHost = -67046; + +const int errSecCSNotAppLike = -67002; + +const int errSecCSNotSupported = -67037; + +const int errSecCSObjectRequired = -67069; + +const int errSecCSOutdated = -67025; + +const int errSecCSRegularFile = -67015; + +const int errSecCSRemoteSignerFailed = -66990; + +const int errSecCSReqFailed = -67050; + +const int errSecCSReqInvalid = -67052; + +const int errSecCSReqUnsupported = -67051; + +const int errSecCSResourceDirectoryFailed = -67023; + +const int errSecCSResourceNotSupported = -67016; + +const int errSecCSResourceRulesInvalid = -67053; + +const int errSecCSResourcesInvalid = -67055; + +const int errSecCSResourcesNotFound = -67056; + +const int errSecCSResourcesNotSealed = -67057; + +const int errSecCSRevokedNotarization = -66992; + +const int errSecCSSigDBAccess = -67032; + +const int errSecCSSigDBDenied = -67033; + +const int errSecCSSignatureFailed = -67061; + +const int errSecCSSignatureInvalid = -67045; + +const int errSecCSSignatureNotVerifiable = -67060; + +const int errSecCSSignatureUnsupported = -67059; + +const int errSecCSSignatureUntrusted = -66996; + +const int errSecCSStaticCodeChanged = -67034; + +const int errSecCSStaticCodeNotFound = -67068; + +const int errSecCSTooBig = -67004; + +const int errSecCSUnimplemented = -67072; + +const int errSecCSUnsealedAppRoot = -67014; + +const int errSecCSUnsealedFrameworkRoot = -67008; + +const int errSecCSUnsigned = -67062; + +const int errSecCSUnsignedNestedCode = -67022; + +const int errSecCSUnsupportedDigestAlgorithm = -67000; + +const int errSecCSUnsupportedGuestAttributes = -67067; + +const int errSecCSVetoed = -67018; + +const int errSecCSWeakResourceEnvelope = -67007; + +const int errSecCSWeakResourceRules = -67013; + +const int errSecCallbackFailed = -67695; + +const int errSecCertificateCannotOperate = -67817; + +const int errSecCertificateDuplicateExtension = -67903; + +const int errSecCertificateExpired = -67818; + +const int errSecCertificateIsCA = -67902; + +const int errSecCertificateNameNotAllowed = -67900; + +const int errSecCertificateNotValidYet = -67819; + +const int errSecCertificatePolicyNotAllowed = -67899; + +const int errSecCertificateRevoked = -67820; + +const int errSecCertificateSuspended = -67821; + +const int errSecCertificateValidityPeriodTooLong = -67901; + +const int errSecCodeSigningBadCertChainLength = -67647; + +const int errSecCodeSigningBadPathLengthConstraint = -67649; + +const int errSecCodeSigningDevelopment = -67651; + +const int errSecCodeSigningNoBasicConstraints = -67648; + +const int errSecCodeSigningNoExtendedKeyUsage = -67650; + +const int errSecConversionError = -67594; + +const int errSecCoreFoundationUnknown = -4960; + +const int errSecCreateChainFailed = -25318; + +const int errSecDataNotAvailable = -25316; + +const int errSecDataNotModifiable = -25317; + +const int errSecDataTooLarge = -25302; + +const int errSecDatabaseLocked = -67869; + +const int errSecDatastoreIsOpen = -67870; + +const int errSecDecode = -26275; + +const int errSecDeviceError = -67727; + +const int errSecDeviceFailed = -67588; + +const int errSecDeviceReset = -67587; + +const int errSecDeviceVerifyFailed = -67812; + +const int errSecDiskFull = -34; + +@Deprecated('use errSecDiskFull') +const int errSecDskFull = -34; + +const int errSecDuplicateCallback = -25297; + +const int errSecDuplicateItem = -25299; + +const int errSecDuplicateKeychain = -25296; + +const int errSecEMMLoadFailed = -67709; + +const int errSecEMMUnloadFailed = -67710; + +const int errSecEndOfData = -67634; + +const int errSecEventNotificationCallbackNotFound = -67723; + +const int errSecExtendedKeyUsageNotCritical = -67881; + +const int errSecFieldSpecifiedMultiple = -67866; + +const int errSecFileTooBig = -67597; + +const int errSecFunctionFailed = -67677; + +const int errSecFunctionIntegrityFail = -67670; + +const int errSecHostNameMismatch = -67602; + +const int errSecIDPFailure = -67622; + +const int errSecIO = -36; + +const int errSecInDarkWake = -25320; + +const int errSecIncompatibleDatabaseBlob = -67600; + +const int errSecIncompatibleFieldFormat = -67867; + +const int errSecIncompatibleKeyBlob = -67601; + +const int errSecIncompatibleVersion = -67704; + +const int errSecIncompleteCertRevocationCheck = -67635; + +const int errSecInputLengthError = -67724; + +const int errSecInsufficientClientID = -67586; + +const int errSecInsufficientCredentials = -67822; + +const int errSecInteractionNotAllowed = -25308; + +const int errSecInteractionRequired = -25315; + +const int errSecInternalComponent = -2070; + +const int errSecInternalError = -67671; + +@Deprecated('Deprecated') +const int errSecInvaldCRLAuthority = -67827; + +const int errSecInvalidACL = -67702; + +const int errSecInvalidAccessCredentials = -67700; + +const int errSecInvalidAccessRequest = -67876; + +const int errSecInvalidAction = -67823; + +const int errSecInvalidAddinFunctionTable = -67716; + +const int errSecInvalidAlgorithm = -67747; + +const int errSecInvalidAlgorithmParms = -67770; + +const int errSecInvalidAttributeAccessCredentials = -67796; + +const int errSecInvalidAttributeBase = -67788; + +const int errSecInvalidAttributeBlockSize = -67764; + +const int errSecInvalidAttributeDLDBHandle = -67794; + +const int errSecInvalidAttributeEffectiveBits = -67778; + +const int errSecInvalidAttributeEndDate = -67782; + +const int errSecInvalidAttributeInitVector = -67750; + +const int errSecInvalidAttributeIterationCount = -67792; + +const int errSecInvalidAttributeKey = -67748; + +const int errSecInvalidAttributeKeyLength = -67762; + +const int errSecInvalidAttributeKeyType = -67774; + +const int errSecInvalidAttributeLabel = -67772; + +const int errSecInvalidAttributeMode = -67776; + +const int errSecInvalidAttributeOutputSize = -67766; + +const int errSecInvalidAttributePadding = -67754; + +const int errSecInvalidAttributePassphrase = -67760; + +const int errSecInvalidAttributePrime = -67786; + +const int errSecInvalidAttributePrivateKeyFormat = -67800; + +const int errSecInvalidAttributePublicKeyFormat = -67798; + +const int errSecInvalidAttributeRandom = -67756; + +const int errSecInvalidAttributeRounds = -67768; + +const int errSecInvalidAttributeSalt = -67752; + +const int errSecInvalidAttributeSeed = -67758; + +const int errSecInvalidAttributeStartDate = -67780; + +const int errSecInvalidAttributeSubprime = -67790; + +const int errSecInvalidAttributeSymmetricKeyFormat = -67802; + +const int errSecInvalidAttributeVersion = -67784; + +const int errSecInvalidAttributeWrappedKeyFormat = -67804; + +const int errSecInvalidAuthority = -67824; + +const int errSecInvalidAuthorityKeyID = -67606; + +const int errSecInvalidBaseACLs = -67851; + +const int errSecInvalidBundleInfo = -67857; + +const int errSecInvalidCRL = -67830; + +const int errSecInvalidCRLAuthority = -67827; + +const int errSecInvalidCRLEncoding = -67828; + +const int errSecInvalidCRLGroup = -67816; + +const int errSecInvalidCRLIndex = -67858; + +const int errSecInvalidCRLType = -67829; + +const int errSecInvalidCallback = -25298; + +const int errSecInvalidCertAuthority = -67826; + +const int errSecInvalidCertificateGroup = -67691; + +const int errSecInvalidCertificateRef = -67690; + +const int errSecInvalidContext = -67746; + +const int errSecInvalidDBList = -67681; + +const int errSecInvalidDBLocation = -67875; + +const int errSecInvalidData = -67673; + +const int errSecInvalidDatabaseBlob = -67598; + +const int errSecInvalidDigestAlgorithm = -67815; + +const int errSecInvalidEncoding = -67853; + +const int errSecInvalidExtendedKeyUsage = -67609; + +const int errSecInvalidFormType = -67831; + +const int errSecInvalidGUID = -67679; + +const int errSecInvalidHandle = -67680; + +const int errSecInvalidHandleUsage = -67668; + +const int errSecInvalidID = -67832; + +const int errSecInvalidIDLinkage = -67610; + +const int errSecInvalidIdentifier = -67833; + +const int errSecInvalidIndex = -67834; + +const int errSecInvalidIndexInfo = -67877; + +const int errSecInvalidInputVector = -67744; + +const int errSecInvalidItemRef = -25304; + +const int errSecInvalidKeyAttributeMask = -67738; + +const int errSecInvalidKeyBlob = -67599; + +const int errSecInvalidKeyFormat = -67742; + +const int errSecInvalidKeyHierarchy = -67713; + +const int errSecInvalidKeyLabel = -67740; + +const int errSecInvalidKeyRef = -67712; + +const int errSecInvalidKeyUsageForPolicy = -67608; + +const int errSecInvalidKeyUsageMask = -67736; + +const int errSecInvalidKeychain = -25295; + +const int errSecInvalidLoginName = -67813; + +const int errSecInvalidModifyMode = -67879; + +const int errSecInvalidName = -67689; + +const int errSecInvalidNetworkAddress = -67683; + +const int errSecInvalidNewOwner = -67878; + +const int errSecInvalidNumberOfFields = -67685; + +const int errSecInvalidOutputVector = -67745; + +const int errSecInvalidOwnerEdit = -25244; + +const int errSecInvalidPVC = -67708; + +const int errSecInvalidParsingModule = -67868; + +const int errSecInvalidPassthroughID = -67682; + +const int errSecInvalidPasswordRef = -25261; + +const int errSecInvalidPointer = -67675; + +const int errSecInvalidPolicyIdentifiers = -67835; + +const int errSecInvalidPrefsDomain = -25319; + +const int errSecInvalidQuery = -67693; + +const int errSecInvalidReason = -67837; + +const int errSecInvalidRecord = -67701; + +const int errSecInvalidRequestInputs = -67838; + +const int errSecInvalidRequestor = -67855; + +const int errSecInvalidResponseVector = -67839; + +const int errSecInvalidRoot = -67612; + +const int errSecInvalidSampleValue = -67703; + +const int errSecInvalidScope = -67706; + +const int errSecInvalidSearchRef = -25305; + +const int errSecInvalidServiceMask = -67717; + +const int errSecInvalidSignature = -67688; + +const int errSecInvalidStopOnPolicy = -67840; + +const int errSecInvalidSubServiceID = -67719; + +const int errSecInvalidSubjectKeyID = -67607; + +const int errSecInvalidSubjectName = -67655; + +const int errSecInvalidTimeString = -67836; + +const int errSecInvalidTrustSetting = -25242; + +const int errSecInvalidTrustSettings = -25262; + +const int errSecInvalidTuple = -67841; + +@Deprecated('Deprecated') +const int errSecInvalidTupleCredendtials = -67852; + +const int errSecInvalidTupleCredentials = -67852; + +const int errSecInvalidTupleGroup = -67850; + +const int errSecInvalidValidityPeriod = -67854; + +const int errSecInvalidValue = -67694; + +const int errSecItemNotFound = -25300; + +const int errSecKeyBlobTypeIncorrect = -67732; + +const int errSecKeyHeaderInconsistent = -67733; + +const int errSecKeyIsSensitive = -25258; + +const int errSecKeySizeNotAllowed = -25311; + +const int errSecKeyUsageIncorrect = -67731; + +const int errSecLibraryReferenceNotFound = -67715; + +const int errSecMDSError = -67674; + +const int errSecMemoryError = -67672; + +const int errSecMissingAlgorithmParms = -67771; + +const int errSecMissingAttributeAccessCredentials = -67797; + +const int errSecMissingAttributeBase = -67789; + +const int errSecMissingAttributeBlockSize = -67765; + +const int errSecMissingAttributeDLDBHandle = -67795; + +const int errSecMissingAttributeEffectiveBits = -67779; + +const int errSecMissingAttributeEndDate = -67783; + +const int errSecMissingAttributeInitVector = -67751; + +const int errSecMissingAttributeIterationCount = -67793; + +const int errSecMissingAttributeKey = -67749; + +const int errSecMissingAttributeKeyLength = -67763; + +const int errSecMissingAttributeKeyType = -67775; + +const int errSecMissingAttributeLabel = -67773; + +const int errSecMissingAttributeMode = -67777; + +const int errSecMissingAttributeOutputSize = -67767; + +const int errSecMissingAttributePadding = -67755; + +const int errSecMissingAttributePassphrase = -67761; + +const int errSecMissingAttributePrime = -67787; + +const int errSecMissingAttributePrivateKeyFormat = -67801; + +const int errSecMissingAttributePublicKeyFormat = -67799; + +const int errSecMissingAttributeRandom = -67757; + +const int errSecMissingAttributeRounds = -67769; + +const int errSecMissingAttributeSalt = -67753; + +const int errSecMissingAttributeSeed = -67759; + +const int errSecMissingAttributeStartDate = -67781; + +const int errSecMissingAttributeSubprime = -67791; + +const int errSecMissingAttributeSymmetricKeyFormat = -67803; + +const int errSecMissingAttributeVersion = -67785; + +const int errSecMissingAttributeWrappedKeyFormat = -67805; + +const int errSecMissingEntitlement = -34018; + +const int errSecMissingQualifiedCertStatement = -67904; + +const int errSecMissingRequiredExtension = -67880; + +const int errSecMissingValue = -67871; + +const int errSecMobileMeCSRVerifyFailure = -67665; + +const int errSecMobileMeFailedConsistencyCheck = -67666; + +const int errSecMobileMeNoRequestPending = -67664; + +const int errSecMobileMeRequestAlreadyPending = -67663; + +const int errSecMobileMeRequestQueued = -67657; + +const int errSecMobileMeRequestRedirected = -67658; + +const int errSecMobileMeServerAlreadyExists = -67661; + +const int errSecMobileMeServerError = -67659; + +const int errSecMobileMeServerNotAvailable = -67660; + +const int errSecMobileMeServerServiceErr = -67662; + +const int errSecModuleManagerInitializeFailed = -67721; + +const int errSecModuleManagerNotFound = -67722; + +const int errSecModuleManifestVerifyFailed = -67678; + +const int errSecModuleNotLoaded = -67718; + +const int errSecMultipleExecSegments = -66995; + +const int errSecMultiplePrivKeys = -25259; + +const int errSecMultipleValuesUnsupported = -67842; + +const int errSecNetworkFailure = -67636; + +const int errSecNoAccessForItem = -25243; + +const int errSecNoBasicConstraints = -67604; + +const int errSecNoBasicConstraintsCA = -67605; + +const int errSecNoCertificateModule = -25313; + +const int errSecNoDefaultAuthority = -67844; + +const int errSecNoDefaultKeychain = -25307; + +const int errSecNoFieldValues = -67859; + +const int errSecNoPolicyModule = -25314; + +const int errSecNoStorageModule = -25312; + +const int errSecNoSuchAttr = -25303; + +const int errSecNoSuchClass = -25306; + +const int errSecNoSuchKeychain = -25294; + +const int errSecNoTrustSettings = -25263; + +const int errSecNotAvailable = -25291; + +const int errSecNotInitialized = -67667; + +const int errSecNotLoggedIn = -67729; + +const int errSecNotSigner = -26267; + +const int errSecNotTrusted = -67843; + +const int errSecOCSPBadRequest = -67631; + +const int errSecOCSPBadResponse = -67630; + +const int errSecOCSPNoSigner = -67640; + +const int errSecOCSPNotTrustedToAnchor = -67637; + +const int errSecOCSPResponderInternalError = -67642; + +const int errSecOCSPResponderMalformedReq = -67641; + +const int errSecOCSPResponderSignatureRequired = -67644; + +const int errSecOCSPResponderTryLater = -67643; + +const int errSecOCSPResponderUnauthorized = -67645; + +const int errSecOCSPResponseNonceMismatch = -67646; + +const int errSecOCSPSignatureError = -67639; + +const int errSecOCSPStatusUnrecognized = -67633; + +const int errSecOCSPUnavailable = -67632; + +const int errSecOpWr = -49; + +const int errSecOutputLengthError = -67725; + +const int errSecPVCAlreadyConfigured = -67707; + +const int errSecPVCReferentNotFound = -67669; + +const int errSecParam = -50; + +const int errSecPassphraseRequired = -25260; + +const int errSecPathLengthConstraintExceeded = -67611; + +const int errSecPkcs12VerifyFailure = -25264; + +const int errSecPolicyNotFound = -25241; + +const int errSecPrivilegeNotGranted = -67705; + +const int errSecPrivilegeNotSupported = -67726; + +const int errSecPublicKeyInconsistent = -67811; + +const int errSecQuerySizeUnknown = -67809; + +const int errSecQuotaExceeded = -67596; + +const int errSecReadOnly = -25292; + +const int errSecReadOnlyAttr = -25309; + +const int errSecRecordModified = -67638; + +const int errSecRejectedForm = -67845; + +const int errSecRequestDescriptor = -67856; + +const int errSecRequestLost = -67846; + +const int errSecRequestRejected = -67847; + +const int errSecResourceSignBadCertChainLength = -67652; + +const int errSecResourceSignBadExtKeyUsage = -67653; + +const int errSecRestrictedAPI = -34020; + +const int errSecSMIMEBadExtendedKeyUsage = -67624; + +const int errSecSMIMEBadKeyUsage = -67625; + +const int errSecSMIMEEmailAddressesNotFound = -67623; + +const int errSecSMIMEKeyUsageNotCritical = -67626; + +const int errSecSMIMENoEmailAddress = -67627; + +const int errSecSMIMESubjAltNameNotCritical = -67628; + +const int errSecSSLBadExtendedKeyUsage = -67629; + +const int errSecSelfCheckFailed = -67676; + +const int errSecServiceNotAvailable = -67585; + +const int errSecSigningTimeMissing = -67894; + +const int errSecStagedOperationInProgress = -67806; + +const int errSecStagedOperationNotStarted = -67807; + +const int errSecSuccess = 0; + +const int errSecTagNotFound = -67692; + +const int errSecTimestampAddInfoNotAvailable = -67892; + +const int errSecTimestampBadAlg = -67886; + +const int errSecTimestampBadDataFormat = -67888; + +const int errSecTimestampBadRequest = -67887; + +const int errSecTimestampInvalid = -67883; + +const int errSecTimestampMissing = -67882; + +const int errSecTimestampNotTrusted = -67884; + +const int errSecTimestampRejection = -67895; + +const int errSecTimestampRevocationNotification = -67898; + +const int errSecTimestampRevocationWarning = -67897; + +const int errSecTimestampServiceNotAvailable = -67885; + +const int errSecTimestampSystemFailure = -67893; + +const int errSecTimestampTimeNotAvailable = -67889; + +const int errSecTimestampUnacceptedExtension = -67891; + +const int errSecTimestampUnacceptedPolicy = -67890; + +const int errSecTimestampWaiting = -67896; + +const int errSecTrustNotAvailable = -25245; + +const int errSecTrustSettingDeny = -67654; + +const int errSecUnimplemented = -4; + +const int errSecUnknownCRLExtension = -67619; + +const int errSecUnknownCertExtension = -67618; + +const int errSecUnknownCriticalExtensionFlag = -67603; + +const int errSecUnknownFormat = -25257; + +const int errSecUnknownQualifiedCertStatement = -67656; + +const int errSecUnknownTag = -67687; + +const int errSecUnsupportedAddressType = -67848; + +const int errSecUnsupportedFieldFormat = -67860; + +const int errSecUnsupportedFormat = -25256; + +const int errSecUnsupportedIndexInfo = -67861; + +const int errSecUnsupportedKeyAttributeMask = -67739; + +const int errSecUnsupportedKeyFormat = -67734; + +const int errSecUnsupportedKeyLabel = -67741; + +const int errSecUnsupportedKeySize = -67735; + +const int errSecUnsupportedKeyUsageMask = -67737; + +const int errSecUnsupportedLocality = -67862; + +const int errSecUnsupportedNumAttributes = -67863; + +const int errSecUnsupportedNumIndexes = -67864; + +const int errSecUnsupportedNumRecordTypes = -67865; + +const int errSecUnsupportedNumSelectionPreds = -67873; + +const int errSecUnsupportedOperator = -67874; + +const int errSecUnsupportedQueryLimits = -67872; + +const int errSecUnsupportedService = -67849; + +const int errSecUnsupportedVectorOfBuffers = -67743; + +const int errSecUserCanceled = -128; + +const int errSecVerificationFailure = -67686; + +const int errSecVerifyActionFailed = -67825; + +const int errSecVerifyFailed = -67808; + +const int errSecWrPerm = -61; + +const int errSecWrongSecVersion = -25310; + +const int errSessionAuthorizationDenied = -60502; + +const int errSessionInternal = -60008; + +const int errSessionInvalidAttributes = -60501; + +const int errSessionInvalidFlags = -60011; + +const int errSessionInvalidId = -60500; + +const int errSessionSuccess = 0; + +const int errSessionValueNotSet = -60503; + +const int errState = -1278; + +const int errTaskNotFound = -10780; + +const int errTopOfBody = -1811; + +const int errTopOfDocument = -1810; + +const int errUnknownAttributeTag = -5240; + +const int errUnknownControl = -30584; + +const int errUnknownElement = -5251; + +const int errUnrecognizedWindowClass = -5605; + +const int errUnsupportedWindowAttributesForClass = -5601; + +const int errUserWantsToDragWindow = -5607; + +const int errWSInternalError = -65793; + +const int errWSParseError = -65795; + +const int errWSTimeoutError = -65796; + +const int errWSTransportError = -65794; + +const int errWindowDoesNotFitOnscreen = -5611; + +const int errWindowDoesNotHaveProxy = -5602; + +const int errWindowDoesntSupportFocus = -30583; + +const int errWindowNotFound = -5610; + +const int errWindowPropertyNotFound = -5604; + +const int errWindowRegionCodeInvalid = -30593; + +const int errWindowsAlreadyInitialized = -5608; + +typedef errno_t = ffi.Int; +typedef Darterrno_t = int; + +const int eurlAFP = 1634103328; + +const int eurlAT = 1635000352; + +const int eurlEPPC = 1701867619; + +const int eurlFTP = 1718906912; + +const int eurlFile = 1718185061; + +const int eurlGopher = 1735420018; + +const int eurlHTTP = 1752462448; + +const int eurlHTTPS = 1752461427; + +const int eurlIMAP = 1768776048; + +const int eurlLDAP = 1970037872; + +const int eurlLaunch = 1818326382; + +const int eurlMail = 1835100524; + +const int eurlMailbox = 1835167608; + +const int eurlMessage = 1835365235; + +const int eurlMulti = 1836412020; + +const int eurlNFS = 1970169459; + +const int eurlNNTP = 1852732528; + +const int eurlNews = 1852143475; + +const int eurlPOP = 1970302832; + +const int eurlRTSP = 1920234352; + +const int eurlSNews = 1936619379; + +const int eurlTelnet = 1953263220; + +const int eurlUnknown = 1970433087; + +@Deprecated('Deprecated') +const int evType = 4; + +final class evsioKeymapping extends ffi.Struct { + @ffi.Int() + external int size; + + external ffi.Pointer mapping; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int size, + required ffi.Pointer mapping, + }) => $allocator() + ..ref.size = size + ..ref.mapping = mapping; +} + +final class evsioMouseScaling extends ffi.Struct { + @ffi.Int() + external int numScaleLevels; + + @ffi.Array.multi([20]) + external ffi.Array scaleThresholds; + + @ffi.Array.multi([20]) + external ffi.Array scaleFactors; +} + +const int evtNotEnb = 1; + +const int exUserBreak = -492; + +final class exception extends ffi.Struct { + @ffi.Int() + external int type; + + external ffi.Pointer name; + + @ffi.Double() + external double arg1; + + @ffi.Double() + external double arg2; + + @ffi.Double() + external double retval; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int type, + required ffi.Pointer name, + required double arg1, + required double arg2, + required double retval, + }) => $allocator() + ..ref.type = type + ..ref.name = name + ..ref.arg1 = arg1 + ..ref.arg2 = arg2 + ..ref.retval = retval; +} + +typedef exception_behavior_array_t = ffi.Pointer; +typedef exception_behavior_t = ffi.Int; +typedef Dartexception_behavior_t = int; +typedef exception_data_t = ffi.Pointer; +typedef exception_data_type_t = integer_t; +typedef exception_flavor_array_t = ffi.Pointer; +typedef exception_handler_array_t = ffi.Pointer; +typedef exception_handler_info_array_t = ffi.Pointer; +typedef exception_handler_info_t = ipc_info_port_t; +typedef exception_handler_t = mach_port_t; +typedef exception_mask_array_t = ffi.Pointer; +typedef exception_mask_t = ffi.UnsignedInt; +typedef Dartexception_mask_t = int; +typedef exception_port_arrary_t = exception_handler_array_t; +typedef exception_port_array_t = ffi.Pointer; +typedef exception_port_info_array_t = ffi.Pointer; +typedef exception_port_t = exception_handler_t; +typedef exception_type_t = ffi.Int; +typedef Dartexception_type_t = int; + +const int excessCollsns = -95; + +const int extFSErr = -58; + +const int extend = 64; + +typedef extended80 = Float80; +typedef extended96 = Float96; + +const int extendedBlock = 19523; + +const int extendedBlockLen = 40; + +enum extension_data_format { + CSSM_X509_DATAFORMAT_ENCODED(0), + CSSM_X509_DATAFORMAT_PARSED(1), + CSSM_X509_DATAFORMAT_PAIR(2); + + final int value; + const extension_data_format(this.value); + + static extension_data_format fromValue(int value) => switch (value) { + 0 => CSSM_X509_DATAFORMAT_ENCODED, + 1 => CSSM_X509_DATAFORMAT_PARSED, + 2 => CSSM_X509_DATAFORMAT_PAIR, + _ => throw ArgumentError('Unknown value for extension_data_format: $value'), + }; +} + +const int extensionsFolderIconResource = -3973; + +const int extractErr = -3104; + +const int extraneousStrings = 16; + +@Deprecated('Deprecated') +const int fBadPartsTable = 10; + +@Deprecated('Deprecated') +const int fBestGuess = 1; + +const int fBsyErr = -47; + +const int fDesktop = -2; + +const int fDisk = 0; + +@Deprecated('Deprecated') +const int fEmptyFormatString = 13; + +@Deprecated('Deprecated') +const int fExtraDecimal = 5; + +@Deprecated('Deprecated') +const int fExtraExp = 7; + +@Deprecated('Deprecated') +const int fExtraPercent = 11; + +@Deprecated('Deprecated') +const int fExtraSeparator = 12; + +@Deprecated('Deprecated') +const int fFormStrIsNAN = 9; + +@Deprecated('Deprecated') +const int fFormatOK = 0; + +@Deprecated('Deprecated') +const int fFormatOverflow = 8; + +const int fHasBundle = 8192; + +const int fInvisible = 16384; + +const int fLckdErr = -45; + +@Deprecated('Deprecated') +const int fMissingDelimiter = 4; + +@Deprecated('Deprecated') +const int fMissingLiteral = 6; + +@Deprecated('Deprecated') +const int fNegative = 1; + +const int fOnDesk = 1; + +@Deprecated('Deprecated') +const int fOutOfSynch = 2; + +@Deprecated('Deprecated') +const int fPositive = 0; + +@Deprecated('Deprecated') +const int fSpuriousChars = 3; + +const int fTrash = -3; + +@Deprecated('Deprecated') +const int fVNumber = 0; + +@Deprecated('Deprecated') +const int fZero = 2; + +const int false$ = 0; + +@Deprecated('Deprecated') +const int false32b = 0; + +const int fatalDateTime = 32768; + +final class fattributiontag extends ffi.Struct { + @ffi.UnsignedInt() + external int ft_flags; + + @ffi.UnsignedLongLong() + external int ft_hash; + + @ffi.Array.multi([255]) + external ffi.Array ft_attribution_name; +} + +typedef fattributiontag_t = fattributiontag; + +final class fchecklv extends ffi.Struct { + @off_t() + external int lv_file_start; + + @ffi.Size() + external int lv_error_message_size; + + external ffi.Pointer lv_error_message; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lv_file_start, + required int lv_error_message_size, + required ffi.Pointer lv_error_message, + }) => $allocator() + ..ref.lv_file_start = lv_file_start + ..ref.lv_error_message_size = lv_error_message_size + ..ref.lv_error_message = lv_error_message; +} + +typedef fchecklv_t = fchecklv; +typedef fd_mask = __int32_t; + +final class fd_set extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array<__int32_t> fds_bits; +} + +const int featureFontTableTag = 1717920116; + +const int featureUnsupported = -2053; + +final class fenv_t extends ffi.Struct { + @ffi.UnsignedLongLong() + external int __fpsr; + + @ffi.UnsignedLongLong() + external int __fpcr; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int $fpsr, + required int $fpcr, + }) => $allocator() + ..ref.__fpsr = $fpsr + ..ref.__fpcr = $fpcr; +} + +@Deprecated('Deprecated') +const int fetchReference = 2; + +typedef fexcept_t = ffi.UnsignedShort; +typedef Dartfexcept_t = int; + +final class fgetsigsinfo extends ffi.Struct { + @off_t() + external int fg_file_start; + + @ffi.Int() + external int fg_info_request; + + @ffi.Int() + external int fg_sig_is_platform; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fg_file_start, + required int fg_info_request, + required int fg_sig_is_platform, + }) => $allocator() + ..ref.fg_file_start = fg_file_start + ..ref.fg_info_request = fg_info_request + ..ref.fg_sig_is_platform = fg_sig_is_platform; +} + +typedef fgetsigsinfo_t = fgetsigsinfo; +@Deprecated('Deprecated') +const int fiLigature = 222; + +const int fidExists = -1301; + +const int fidNotFound = -1300; + +const int fieldOrderNotIntl = 8; + +const int fileBoundsErr = -1309; + +const int fileOffsetTooBigErr = -2125; + +enum filesec_property_t { + FILESEC_OWNER(1), + FILESEC_GROUP(2), + FILESEC_UUID(3), + FILESEC_MODE(4), + FILESEC_ACL(5), + FILESEC_GRPUUID(6), + FILESEC_ACL_RAW(100), + FILESEC_ACL_ALLOCSIZE(101); + + final int value; + const filesec_property_t(this.value); + + static filesec_property_t fromValue(int value) => switch (value) { + 1 => FILESEC_OWNER, + 2 => FILESEC_GROUP, + 3 => FILESEC_UUID, + 4 => FILESEC_MODE, + 5 => FILESEC_ACL, + 6 => FILESEC_GRPUUID, + 100 => FILESEC_ACL_RAW, + 101 => FILESEC_ACL_ALLOCSIZE, + _ => throw ArgumentError('Unknown value for filesec_property_t: $value'), + }; +} + +typedef filesec_t = ffi.Pointer<_filesec>; + +const int finalStage = 128; + +const int firstDskErr = -84; + +const int firstPickerError = -4000; + +typedef fixpt_t = u_int32_t; +@Deprecated('Deprecated') +const int flLigature = 223; + +typedef float_t = ffi.Float; +typedef Dartfloat_t = double; + +final class flock$1 extends ffi.Struct { + @off_t() + external int l_start; + + @off_t() + external int l_len; + + @pid_t() + external int l_pid; + + @ffi.Short() + external int l_type; + + @ffi.Short() + external int l_whence; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int l_start, + required int l_len, + required int l_pid, + required int l_type, + required int l_whence, + }) => $allocator() + ..ref.l_start = l_start + ..ref.l_len = l_len + ..ref.l_pid = l_pid + ..ref.l_type = l_type + ..ref.l_whence = l_whence; +} + +final class flocktimeout extends ffi.Struct { + external flock$1 fl; + + external timespec timeout; +} + +const int floppyIconResource = -3998; + +const int fmt1Err = -82; + +const int fmt2Err = -83; + +const int fnOpnErr = -38; + +const int fnfErr = -43; + +const int fontDecError = -64; + +const int fontNotDeclared = -65; + +const int fontNotOutlineErr = -32615; + +const int fontSubErr = -66; + +const int fontsFolderIconResource = -3968; + +const int forceReadBit = 6; + +const int forceReadMask = 64; + +const int formAbsolutePosition = 1768842360; + +const int formName = 1851878757; + +const int formPropertyID = 1886547824; + +const int formRange = 1918987879; + +const int formRelativePosition = 1919249509; + +const int formTest = 1952805748; + +const int formUniqueID = 1229201440; + +const int formWhose = 2003332979; + +typedef fpos_t = __darwin_off_t; + +final class fpunchhole extends ffi.Struct { + @ffi.UnsignedInt() + external int fp_flags; + + @ffi.UnsignedInt() + external int reserved; + + @off_t() + external int fp_offset; + + @off_t() + external int fp_length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fp_flags, + required int reserved, + required int fp_offset, + required int fp_length, + }) => $allocator() + ..ref.fp_flags = fp_flags + ..ref.reserved = reserved + ..ref.fp_offset = fp_offset + ..ref.fp_length = fp_length; +} + +typedef fpunchhole_t = fpunchhole; +@Deprecated('Deprecated') +const int fraction = 218; + +const int fsAtMark = 0; + +const int fsCurPerm = 0; + +const int fsDSIntErr = -127; + +const int fsDataTooBigErr = -1310; + +const int fsFromLEOF = 2; + +const int fsFromMark = 3; + +const int fsFromStart = 1; + +@Deprecated('Deprecated') +const int fsQType = 5; + +const int fsRdAccessPerm = 1; + +const int fsRdDenyPerm = 16; + +const int fsRdPerm = 1; + +const int fsRdWrPerm = 3; + +const int fsRdWrShPerm = 4; + +const int fsRnErr = -59; + +const int fsRtDirID = 2; + +const int fsRtParID = 1; + +const int fsSBAccessDate = 131072; + +const int fsSBAccessDateBit = 17; + +const int fsSBAttributeModDate = 65536; + +const int fsSBAttributeModDateBit = 16; + +const int fsSBDrBkDat = 2048; + +const int fsSBDrBkDatBit = 11; + +const int fsSBDrCrDat = 512; + +const int fsSBDrCrDatBit = 9; + +const int fsSBDrFndrInfo = 4096; + +const int fsSBDrFndrInfoBit = 12; + +const int fsSBDrMdDat = 1024; + +const int fsSBDrMdDatBit = 10; + +const int fsSBDrNmFls = 16; + +const int fsSBDrNmFlsBit = 4; + +const int fsSBDrParID = 8192; + +const int fsSBDrParIDBit = 13; + +const int fsSBDrUsrWds = 8; + +const int fsSBDrUsrWdsBit = 3; + +const int fsSBFlAttrib = 4; + +const int fsSBFlAttribBit = 2; + +const int fsSBFlBkDat = 2048; + +const int fsSBFlBkDatBit = 11; + +const int fsSBFlCrDat = 512; + +const int fsSBFlCrDatBit = 9; + +const int fsSBFlFndrInfo = 8; + +const int fsSBFlFndrInfoBit = 3; + +const int fsSBFlLgLen = 32; + +const int fsSBFlLgLenBit = 5; + +const int fsSBFlMdDat = 1024; + +const int fsSBFlMdDatBit = 10; + +const int fsSBFlParID = 8192; + +const int fsSBFlParIDBit = 13; + +const int fsSBFlPyLen = 64; + +const int fsSBFlPyLenBit = 6; + +const int fsSBFlRLgLen = 128; + +const int fsSBFlRLgLenBit = 7; + +const int fsSBFlRPyLen = 256; + +const int fsSBFlRPyLenBit = 8; + +const int fsSBFlXFndrInfo = 4096; + +const int fsSBFlXFndrInfoBit = 12; + +const int fsSBFullName = 2; + +const int fsSBFullNameBit = 1; + +const int fsSBGroupID = 4194304; + +const int fsSBGroupIDBit = 22; + +const int fsSBNegate = 16384; + +const int fsSBNegateBit = 14; + +const int fsSBNodeID = 32768; + +const int fsSBNodeIDBit = 15; + +const int fsSBPartialName = 1; + +const int fsSBPartialNameBit = 0; + +const int fsSBPermissions = 262144; + +const int fsSBPermissionsBit = 18; + +const int fsSBSkipHiddenItems = 1048576; + +const int fsSBSkipHiddenItemsBit = 20; + +const int fsSBSkipPackageContents = 524288; + +const int fsSBSkipPackageContentsBit = 19; + +const int fsSBUserID = 2097152; + +const int fsSBUserIDBit = 21; + +const int fsUnixPriv = 1; + +const int fsWrAccessPerm = 2; + +const int fsWrDenyPerm = 32; + +const int fsWrPerm = 2; + +typedef fsblkcnt_t = __darwin_fsblkcnt_t; +typedef fsfilcnt_t = __darwin_fsfilcnt_t; + +final class fsid extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array val; +} + +typedef fsid_t = fsid; + +final class fsignatures extends ffi.Struct { + @off_t() + external int fs_file_start; + + external ffi.Pointer fs_blob_start; + + @ffi.Size() + external int fs_blob_size; + + @ffi.Size() + external int fs_fsignatures_size; + + @ffi.Array.multi([20]) + external ffi.Array fs_cdhash; + + @ffi.Int() + external int fs_hash_type; +} + +typedef fsignatures_t = fsignatures; + +const int fsmBadFFSNameErr = -433; + +const int fsmBadFSDLenErr = -434; + +const int fsmBadFSDVersionErr = -436; + +const int fsmBusyFFSErr = -432; + +const int fsmDuplicateFSIDErr = -435; + +const int fsmFFSNotFoundErr = -431; + +const int fsmNoAlternateStackErr = -437; + +const int fsmUnknownFSMMessageErr = -438; + +final class fsobj_id extends ffi.Struct { + @u_int32_t() + external int fid_objno; + + @u_int32_t() + external int fid_generation; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fid_objno, + required int fid_generation, + }) => $allocator() + ..ref.fid_objno = fid_objno + ..ref.fid_generation = fid_generation; +} + +typedef fsobj_id_t = fsobj_id; + +final class fspecread extends ffi.Struct { + @ffi.UnsignedInt() + external int fsr_flags; + + @ffi.UnsignedInt() + external int reserved; + + @off_t() + external int fsr_offset; + + @off_t() + external int fsr_length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fsr_flags, + required int reserved, + required int fsr_offset, + required int fsr_length, + }) => $allocator() + ..ref.fsr_flags = fsr_flags + ..ref.reserved = reserved + ..ref.fsr_offset = fsr_offset + ..ref.fsr_length = fsr_length; +} + +typedef fspecread_t = fspecread; + +final class fssearchblock extends ffi.Opaque {} + +final class fstore extends ffi.Struct { + @ffi.UnsignedInt() + external int fst_flags; + + @ffi.Int() + external int fst_posmode; + + @off_t() + external int fst_offset; + + @off_t() + external int fst_length; + + @off_t() + external int fst_bytesalloc; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fst_flags, + required int fst_posmode, + required int fst_offset, + required int fst_length, + required int fst_bytesalloc, + }) => $allocator() + ..ref.fst_flags = fst_flags + ..ref.fst_posmode = fst_posmode + ..ref.fst_offset = fst_offset + ..ref.fst_length = fst_length + ..ref.fst_bytesalloc = fst_bytesalloc; +} + +typedef fstore_t = fstore; + +final class fsupplement extends ffi.Struct { + @off_t() + external int fs_file_start; + + @off_t() + external int fs_blob_start; + + @ffi.Size() + external int fs_blob_size; + + @ffi.Int() + external int fs_orig_fd; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fs_file_start, + required int fs_blob_start, + required int fs_blob_size, + required int fs_orig_fd, + }) => $allocator() + ..ref.fs_file_start = fs_file_start + ..ref.fs_blob_start = fs_blob_start + ..ref.fs_blob_size = fs_blob_size + ..ref.fs_orig_fd = fs_orig_fd; +} + +typedef fsupplement_t = fsupplement; + +final class ftrimactivefile extends ffi.Struct { + @off_t() + external int fta_offset; + + @off_t() + external int fta_length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fta_offset, + required int fta_length, + }) => $allocator() + ..ref.fta_offset = fta_offset + ..ref.fta_length = fta_length; +} + +typedef ftrimactivefile_t = ftrimactivefile; + +const int fullTrashIconResource = -3984; + +const int gWorldsNotSameDepthAndSizeErr = -2066; + +const int gcrOnMFMErr = -400; + +const int genCdevRangeBit = 27; + +const int genericApplicationIconResource = -3996; + +const int genericCDROMIconResource = -3987; + +const int genericDeskAccessoryIconResource = -3991; + +const int genericDocumentIconResource = -4000; + +const int genericEditionFileIconResource = -3989; + +const int genericExtensionIconResource = -16415; + +const int genericFileServerIconResource = -3972; + +const int genericFolderIconResource = -3999; + +const int genericHardDiskIconResource = -3995; + +const int genericMoverObjectIconResource = -3969; + +const int genericPreferencesIconResource = -3971; + +const int genericQueryDocumentIconResource = -16506; + +const int genericRAMDiskIconResource = -3988; + +const int genericStationeryIconResource = -3985; + +const int genericSuitcaseIconResource = -3970; + +const int gestalt16BitAudioSupport = 12; + +const int gestalt16BitSoundIO = 7; + +const int gestalt20thAnniversary = 512; + +const int gestalt32BitAddressing = 0; + +const int gestalt32BitCapable = 2; + +const int gestalt32BitQD = 512; + +const int gestalt32BitQD11 = 513; + +const int gestalt32BitQD12 = 544; + +const int gestalt32BitQD13 = 560; + +const int gestalt32BitSysZone = 1; + +const int gestalt68000 = 1; + +const int gestalt68010 = 2; + +const int gestalt68020 = 3; + +const int gestalt68030 = 4; + +const int gestalt68030MMU = 3; + +const int gestalt68040 = 5; + +const int gestalt68040FPU = 3; + +const int gestalt68040MMU = 4; + +const int gestalt68851 = 2; + +const int gestalt68881 = 1; + +const int gestalt68882 = 2; + +const int gestalt68k = 1; + +const int gestalt8BitQD = 256; + +const int gestaltADBISOKbdII = 11; + +const int gestaltADBKbdII = 10; + +const int gestaltAFPClient = 1634103411; + +const int gestaltAFPClient3_5 = 1; + +const int gestaltAFPClient3_6 = 2; + +const int gestaltAFPClient3_6_1 = 3; + +const int gestaltAFPClient3_6_2 = 4; + +const int gestaltAFPClient3_6_3 = 5; + +const int gestaltAFPClient3_7 = 6; + +const int gestaltAFPClient3_7_2 = 7; + +const int gestaltAFPClient3_8 = 8; + +const int gestaltAFPClient3_8_1 = 9; + +const int gestaltAFPClient3_8_3 = 10; + +const int gestaltAFPClient3_8_4 = 11; + +const int gestaltAFPClientAttributeMask = -65536; + +const int gestaltAFPClientCfgRsrc = 16; + +const int gestaltAFPClientMultiReq = 31; + +const int gestaltAFPClientSupportsIP = 29; + +const int gestaltAFPClientVMUI = 30; + +const int gestaltAFPClientVersionMask = 65535; + +const int gestaltALMAttr = 1953655152; + +const int gestaltALMHasCFMSupport = 2; + +const int gestaltALMHasRescanNotifiers = 3; + +const int gestaltALMHasSFGroup = 1; + +const int gestaltALMHasSFLocation = 1; + +const int gestaltALMPresent = 0; + +const int gestaltALMVers = 2002873451; + +const int gestaltAMU = 1; + +const int gestaltATAAttr = 1635016992; + +const int gestaltATAPresent = 0; + +const int gestaltATSUAscentDescentControlsFeature = 16; + +const int gestaltATSUBatchBreakLinesFeature = 16; + +const int gestaltATSUBiDiCursorPositionFeature = 32; + +const int gestaltATSUByCharacterClusterFeature = 16; + +const int gestaltATSUDecimalTabFeature = 32; + +const int gestaltATSUDirectAccess = 16; + +const int gestaltATSUDropShadowStyleFeature = 32; + +const int gestaltATSUFallbacksFeature = 1; + +const int gestaltATSUFallbacksObjFeatures = 8; + +const int gestaltATSUFeatures = 1969845094; + +const int gestaltATSUGlyphBoundsFeature = 1; + +const int gestaltATSUHighlightColorControlFeature = 32; + +const int gestaltATSUHighlightInactiveTextFeature = 16; + +const int gestaltATSUIgnoreLeadingFeature = 8; + +const int gestaltATSULayoutCacheClearFeature = 1; + +const int gestaltATSULayoutCreateAndCopyFeature = 1; + +const int gestaltATSULineControlFeature = 1; + +const int gestaltATSULowLevelOrigFeatures = 4; + +const int gestaltATSUMemoryFeature = 1; + +const int gestaltATSUNearestCharLineBreakFeature = 32; + +const int gestaltATSUPositionToCursorFeature = 16; + +const int gestaltATSUStrikeThroughStyleFeature = 32; + +const int gestaltATSUTabSupportFeature = 16; + +const int gestaltATSUTextLocatorUsageFeature = 2; + +const int gestaltATSUTrackingFeature = 1; + +const int gestaltATSUUnderlineOptionsStyleFeature = 32; + +const int gestaltATSUUpdate1 = 131072; + +const int gestaltATSUUpdate2 = 196608; + +const int gestaltATSUUpdate3 = 262144; + +const int gestaltATSUUpdate4 = 327680; + +const int gestaltATSUUpdate5 = 393216; + +const int gestaltATSUUpdate6 = 458752; + +const int gestaltATSUUpdate7 = 524288; + +const int gestaltATSUVersion = 1969845110; + +const int gestaltATalkVersion = 1635019638; + +const int gestaltAUXVersion = 1630500216; + +const int gestaltAVLTreeAttr = 1953654117; + +const int gestaltAVLTreePresentBit = 0; + +const int gestaltAVLTreeSupportsHandleBasedTreeBit = 1; + +const int gestaltAVLTreeSupportsTreeLockingBit = 2; + +const int gestaltAWS6150_60 = 75; + +const int gestaltAWS6150_66 = 100; + +const int gestaltAWS8150_110 = 40; + +const int gestaltAWS8150_80 = 65; + +const int gestaltAWS8550 = 68; + +const int gestaltAWS9150_120 = 57; + +const int gestaltAWS9150_80 = 39; + +const int gestaltAddressingModeAttr = 1633969266; + +const int gestaltAdminFeaturesFlagsAttr = 1718773092; + +const int gestaltAliasMgrAttr = 1634494835; + +const int gestaltAliasMgrFollowsAliasesWhenResolving = 4; + +const int gestaltAliasMgrPrefersPath = 7; + +const int gestaltAliasMgrPresent = 0; + +const int gestaltAliasMgrRequiresAccessors = 8; + +const int gestaltAliasMgrResolveAliasFileWithMountOptions = 3; + +const int gestaltAliasMgrSupportsAOCEKeychain = 2; + +const int gestaltAliasMgrSupportsExtendedCalls = 5; + +const int gestaltAliasMgrSupportsFSCalls = 6; + +const int gestaltAliasMgrSupportsRemoteAppletalk = 1; + +const int gestaltAllegroQD = 592; + +const int gestaltAllegroQDText = 256; + +const int gestaltAltivecRegistersSwappedCorrectlyBit = 20; + +const int gestaltAntiAliasedTextAvailable = 2; + +const int gestaltAppearanceAttr = 1634758770; + +const int gestaltAppearanceCompatMode = 1; + +const int gestaltAppearanceExists = 0; + +const int gestaltAppearanceVersion = 1634760306; + +const int gestaltAppleAdjustADBKbd = 15; + +const int gestaltAppleAdjustISOKbd = 16; + +const int gestaltAppleAdjustKeypad = 14; + +const int gestaltAppleEventsAttr = 1702260340; + +const int gestaltAppleEventsPresent = 0; + +const int gestaltAppleGuideIsDebug = 30; + +const int gestaltAppleGuidePresent = 31; + +const int gestaltAppleScriptAttr = 1634952050; + +const int gestaltAppleScriptPowerPCSupport = 1; + +const int gestaltAppleScriptPresent = 0; + +const int gestaltAppleScriptVersion = 1634952054; + +const int gestaltAppleTalkVersion = 1635019883; + +const int gestaltArbitorAttr = 1634886176; + +const int gestaltArm = 20; + +const int gestaltAsyncSCSI = 0; + +const int gestaltAsyncSCSIINROM = 1; + +const int gestaltBuiltInSoundInput = 4; + +const int gestaltBusClkSpeed = 1650682987; + +const int gestaltBusClkSpeedMHz = 1650682989; + +const int gestaltCFM99Present = 2; + +const int gestaltCFM99PresentMask = 4; + +const int gestaltCFMAttr = 1667658343; + +const int gestaltCFMPresent = 0; + +const int gestaltCFMPresentMask = 1; + +const int gestaltCPU486 = 1765029942; + +const int gestaltCPU601 = 257; + +const int gestaltCPU603 = 259; + +const int gestaltCPU603e = 262; + +const int gestaltCPU603ev = 263; + +const int gestaltCPU604 = 260; + +const int gestaltCPU604e = 265; + +const int gestaltCPU604ev = 266; + +const int gestaltCPU68000 = 0; + +const int gestaltCPU68010 = 1; + +const int gestaltCPU68020 = 2; + +const int gestaltCPU68030 = 3; + +const int gestaltCPU68040 = 4; + +const int gestaltCPU750 = 264; + +const int gestaltCPU750FX = 288; + +const int gestaltCPU970 = 313; + +const int gestaltCPU970FX = 316; + +const int gestaltCPU970MP = 324; + +const int gestaltCPUARM64 = 1635268148; + +const int gestaltCPUARMFamily = 1634888992; + +const int gestaltCPUApollo = 273; + +const int gestaltCPUG4 = 268; + +const int gestaltCPUG47447 = 274; + +const int gestaltCPUG47450 = 272; + +const int gestaltCPUPentium = 1765095478; + +const int gestaltCPUPentium4 = 1765108086; + +const int gestaltCPUPentiumII = 1765108073; + +const int gestaltCPUPentiumPro = 1765109874; + +const int gestaltCPUX86 = 1769502840; + +const int gestaltCRMAttr = 1668443424; + +const int gestaltCRMPersistentFix = 1; + +const int gestaltCRMPresent = 0; + +const int gestaltCRMToolRsrcCalls = 2; + +const int gestaltCTBVersion = 1668571766; + +const int gestaltCanStartDragInFloatWindow = 4; + +const int gestaltCanUseCGTextRendering = 6; + +const int gestaltCarbonVersion = 1667395438; + +const int gestaltCardServicesPresent = 0; + +const int gestaltClassic = 1; + +const int gestaltClassicII = 23; + +const int gestaltCloseViewAttr = 1112753249; + +const int gestaltCloseViewDisplayMgrFriendly = 1; + +const int gestaltCloseViewEnabled = 0; + +const int gestaltCollectionMgrVersion = 1668052078; + +const int gestaltColorMatchingAttr = 1668117601; + +const int gestaltColorMatchingLibLoaded = 1; + +const int gestaltColorMatchingVersion = 1668117603; + +const int gestaltColorPicker = 1668311922; + +const int gestaltColorPickerVersion = 1668311922; + +const int gestaltColorSync10 = 256; + +const int gestaltColorSync104 = 260; + +const int gestaltColorSync105 = 261; + +const int gestaltColorSync11 = 272; + +const int gestaltColorSync20 = 512; + +const int gestaltColorSync21 = 528; + +const int gestaltColorSync211 = 529; + +const int gestaltColorSync212 = 530; + +const int gestaltColorSync213 = 531; + +const int gestaltColorSync25 = 592; + +const int gestaltColorSync26 = 608; + +const int gestaltColorSync261 = 609; + +const int gestaltColorSync30 = 768; + +const int gestaltComponentMgr = 1668312692; + +const int gestaltComponentPlatform = 1668247660; + +const int gestaltCompressionMgr = 1768123760; + +const int gestaltConnMgrAttr = 1668247150; + +const int gestaltConnMgrCMSearchFix = 1; + +const int gestaltConnMgrErrorString = 2; + +const int gestaltConnMgrMultiAsyncIO = 3; + +const int gestaltConnMgrPresent = 0; + +const int gestaltControlMgrAttr = 1668183148; + +const int gestaltControlMgrPresent = 1; + +const int gestaltControlMgrPresentBit = 0; + +const int gestaltControlMgrVersion = 1668118130; + +const int gestaltControlMsgPresentMask = 1; + +const int gestaltControlStripAttr = 1935959414; + +const int gestaltControlStripExists = 0; + +const int gestaltControlStripUserFont = 2; + +const int gestaltControlStripUserHotKey = 3; + +const int gestaltControlStripVersion = 1668511346; + +const int gestaltControlStripVersionFixed = 1; + +const int gestaltCountOfCPUs = 1668314483; + +const int gestaltCreatesAliasFontRsrc = 4; + +const int gestaltCurrentGraphicsVersion = 66048; + +const int gestaltDBAccessMgrAttr = 1684169059; + +const int gestaltDBAccessMgrPresent = 0; + +const int gestaltDITLExtAttr = 1684632684; + +const int gestaltDITLExtPresent = 0; + +const int gestaltDITLExtSupportsIctb = 1; + +const int gestaltDTMgrSupportsFSM = 7; + +const int gestaltDTPFeatures = 1685352550; + +const int gestaltDTPInfo = 1685352568; + +const int gestaltDesktopPicturesAttr = 1684762744; + +const int gestaltDesktopPicturesDisplayed = 1; + +const int gestaltDesktopPicturesInstalled = 0; + +const int gestaltDesktopSpeechRecognition = 1; + +const int gestaltDialogMgrAttr = 1684828007; + +const int gestaltDialogMgrHasAquaAlertBit = 2; + +const int gestaltDialogMgrHasAquaAlertMask = 4; + +const int gestaltDialogMgrPresent = 1; + +const int gestaltDialogMgrPresentBit = 0; + +const int gestaltDialogMgrPresentMask = 1; + +const int gestaltDialogMsgPresentMask = 1; + +const int gestaltDictionaryMgrAttr = 1684628340; + +const int gestaltDictionaryMgrPresent = 0; + +const int gestaltDigitalSignatureVersion = 1685285223; + +const int gestaltDiskCacheSize = 1684239226; + +const int gestaltDisplayMgrAttr = 1685089401; + +const int gestaltDisplayMgrCanConfirm = 4; + +const int gestaltDisplayMgrCanSwitchMirrored = 2; + +const int gestaltDisplayMgrColorSyncAware = 5; + +const int gestaltDisplayMgrGeneratesProfiles = 6; + +const int gestaltDisplayMgrPresent = 0; + +const int gestaltDisplayMgrSetDepthNotifies = 3; + +const int gestaltDisplayMgrSleepNotifies = 7; + +const int gestaltDisplayMgrVers = 1685089398; + +const int gestaltDragMgrAttr = 1685217639; + +const int gestaltDragMgrFloatingWind = 1; + +const int gestaltDragMgrHasImageSupport = 3; + +const int gestaltDragMgrPresent = 0; + +const int gestaltDrawSprocketVersion = 1685287030; + +const int gestaltDupSelectorErr = -5552; + +const int gestaltEMMU1 = 5; + +const int gestaltEasyAccessAttr = 1700885369; + +const int gestaltEasyAccessLocked = 3; + +const int gestaltEasyAccessOff = 0; + +const int gestaltEasyAccessOn = 1; + +const int gestaltEasyAccessSticky = 2; + +const int gestaltEditionMgrAttr = 1701082222; + +const int gestaltEditionMgrPresent = 0; + +const int gestaltEditionMgrTranslationAware = 1; + +const int gestaltExtADBKbd = 4; + +const int gestaltExtISOADBKbd = 9; + +const int gestaltExtToolboxTable = 2020897908; + +const int gestaltExtendedTimeMgr = 3; + +const int gestaltExtendedWindowAttributes = 1; + +const int gestaltExtendedWindowAttributesBit = 1; + +const int gestaltExtendedWindowAttributesMask = 2; + +const int gestaltExtensionTableVersion = 1702126188; + +const int gestaltFBCCurrentVersion = 17; + +const int gestaltFBCIndexingState = 1717724009; + +const int gestaltFBCVersion = 1717724022; + +const int gestaltFBCindexingCritical = 1; + +const int gestaltFBCindexingSafe = 0; + +const int gestaltFPUType = 1718646048; + +const int gestaltFSAllowsConcurrentAsyncIO = 17; + +const int gestaltFSAttr = 1718820896; + +const int gestaltFSIncompatibleDFA82 = 10; + +const int gestaltFSMDoesDynamicLoad = 3; + +const int gestaltFSMVersion = 1718840608; + +const int gestaltFSNoMFSVols = 8; + +const int gestaltFSSupports2TBVols = 5; + +const int gestaltFSSupports4GBVols = 4; + +const int gestaltFSSupportsDirectIO = 11; + +const int gestaltFSSupportsExclusiveLocks = 15; + +const int gestaltFSSupportsHFSPlusVols = 9; + +const int gestaltFSSupportsHardLinkDetection = 16; + +const int gestaltFSUsesPOSIXPathsForConversion = 14; + +const int gestaltFXfrMgrAsync = 3; + +const int gestaltFXfrMgrAttr = 1719166578; + +const int gestaltFXfrMgrErrorString = 2; + +const int gestaltFXfrMgrMultiFile = 1; + +const int gestaltFXfrMgrPresent = 0; + +const int gestaltFileAllocationZeroedBlocksBit = 4; + +const int gestaltFileMappingAttr = 1718381936; + +const int gestaltFileMappingMultipleFilesFix = 1; + +const int gestaltFileMappingPresent = 0; + +const int gestaltFindFolderAttr = 1718578276; + +const int gestaltFindFolderPresent = 0; + +const int gestaltFindFolderRedirectionAttr = 1718578277; + +const int gestaltFinderAttr = 1718510706; + +const int gestaltFinderCallsAEProcess = 2; + +const int gestaltFinderDropEvent = 0; + +const int gestaltFinderFloppyRootComments = 8; + +const int gestaltFinderFullDragManagerSupport = 7; + +const int gestaltFinderHasClippings = 6; + +const int gestaltFinderLargeAndNotSavedFlavorsOK = 9; + +const int gestaltFinderMagicPlacement = 1; + +const int gestaltFinderSupports4GBVolumes = 4; + +const int gestaltFinderUnderstandsRedirectedDesktopFolder = 11; + +const int gestaltFinderUsesExtensibleFolderManager = 10; + +const int gestaltFinderUsesSpecialOpenFoldersFile = 0; + +const int gestaltFirstSlotNumber = 1936487473; + +const int gestaltFloppyAttr = 1718382713; + +const int gestaltFloppyIsMFMOnly = 0; + +const int gestaltFloppyIsManualEject = 1; + +const int gestaltFloppyUsesDiskInPlace = 2; + +const int gestaltFolderDescSupport = 1; + +const int gestaltFolderMgrFollowsAliasesWhenResolving = 2; + +const int gestaltFolderMgrSupportsDomains = 4; + +const int gestaltFolderMgrSupportsExtendedCalls = 3; + +const int gestaltFolderMgrSupportsFSCalls = 5; + +const int gestaltFontMgrAttr = 1718578804; + +const int gestaltFrontWindowMayBeHiddenBit = 8; + +const int gestaltFrontWindowMayBeHiddenMask = 256; + +const int gestaltFullExtFSDispatching = 0; + +const int gestaltGXPrintingMgrVersion = 1886218098; + +const int gestaltGXVersion = 1902405496; + +const int gestaltGraphicsAttr = 1734768737; + +const int gestaltGraphicsIsDebugging = 1; + +const int gestaltGraphicsIsLoaded = 2; + +const int gestaltGraphicsIsPowerPC = 4; + +const int gestaltGraphicsVersion = 1735550584; + +const int gestaltHardwareAttr = 1751414642; + +const int gestaltHardwareVendorApple = 1097887852; + +const int gestaltHardwareVendorCode = 1752326500; + +const int gestaltHasASC = 3; + +const int gestaltHasColor = 0; + +const int gestaltHasDeepGWorlds = 1; + +const int gestaltHasDirectPixMaps = 2; + +const int gestaltHasEnhancedLtalk = 30; + +const int gestaltHasExtendedDiskInit = 6; + +const int gestaltHasFMTuner = 7; + +const int gestaltHasFSSpecCalls = 1; + +const int gestaltHasFileSystemManager = 2; + +const int gestaltHasFloatingWindows = 2; + +const int gestaltHasFloatingWindowsBit = 2; + +const int gestaltHasFloatingWindowsMask = 4; + +const int gestaltHasGPIaToDCDa = 0; + +const int gestaltHasGPIaToRTxCa = 1; + +const int gestaltHasGPIbToDCDb = 2; + +const int gestaltHasGrayishTextOr = 3; + +const int gestaltHasHFSPlusAPIs = 12; + +const int gestaltHasHWClosedCaptioning = 2; + +const int gestaltHasIRRemote = 3; + +const int gestaltHasParityCapability = 0; + +const int gestaltHasResourceOverrides = 1; + +const int gestaltHasSCC = 4; + +const int gestaltHasSCSI = 7; + +const int gestaltHasSCSI961 = 21; + +const int gestaltHasSCSI962 = 22; + +const int gestaltHasSerialFader = 6; + +const int gestaltHasSingleWindowModeBit = 8; + +const int gestaltHasSingleWindowModeMask = 256; + +const int gestaltHasSoftPowerOff = 19; + +const int gestaltHasSoundFader = 1; + +const int gestaltHasSoundInputDevice = 5; + +const int gestaltHasStereoDecoder = 5; + +const int gestaltHasSystemIRFunction = 8; + +const int gestaltHasTVTuner = 0; + +const int gestaltHasUniversalROM = 24; + +const int gestaltHasVIA1 = 0; + +const int gestaltHasVIA2 = 1; + +const int gestaltHasVidDecoderScaler = 4; + +const int gestaltHasWindowBuffering = 3; + +const int gestaltHasWindowBufferingBit = 3; + +const int gestaltHasWindowBufferingMask = 8; + +const int gestaltHasWindowShadowsBit = 6; + +const int gestaltHasWindowShadowsMask = 64; + +const int gestaltHasZoomedVideo = 11; + +const int gestaltHelpMgrAttr = 1751477360; + +const int gestaltHelpMgrExtensions = 1; + +const int gestaltHelpMgrPresent = 0; + +const int gestaltHidePortA = 3; + +const int gestaltHidePortB = 4; + +const int gestaltHighLevelMatching = 0; + +const int gestaltINeedIRPowerOffConfirm = 10; + +const int gestaltIPCSupport = 7; + +const int gestaltIRDisabled = 9; + +const int gestaltIconUtilitiesAttr = 1768124270; + +const int gestaltIconUtilitiesHas32BitIcons = 2; + +const int gestaltIconUtilitiesHas48PixelIcons = 1; + +const int gestaltIconUtilitiesHas8BitDeepMasks = 3; + +const int gestaltIconUtilitiesHasIconServices = 4; + +const int gestaltIconUtilitiesPresent = 0; + +const int gestaltInitHeapZerosOutHeapsBit = 1; + +const int gestaltIntel = 10; + +const int gestaltInternalDisplay = 1768190832; + +const int gestaltJapanAdjustADBKbd = 17; + +const int gestaltKeyboardType = 1801610272; + +const int gestaltLaunchCanReturn = 1; + +const int gestaltLaunchControl = 3; + +const int gestaltLaunchFullFileSpec = 2; + +const int gestaltLineLevelInput = 9; + +const int gestaltLocationErr = -5553; + +const int gestaltLogicalPageSize = 1885827962; + +const int gestaltLogicalRAMSize = 1819435373; + +const int gestaltLowMemorySize = 1819108717; + +const int gestaltMBLegacy = 0; + +const int gestaltMBMultipleBays = 2; + +const int gestaltMBSingleBay = 1; + +const int gestaltMMUType = 1835889952; + +const int gestaltMPCallableAPIsAttr = 1836086115; + +const int gestaltMPDeviceManager = 1; + +const int gestaltMPFileManager = 0; + +const int gestaltMPTrapCalls = 2; + +const int gestaltMac512KE = 3; + +const int gestaltMacAndPad = 2; + +const int gestaltMacCentris610 = 52; + +const int gestaltMacCentris650 = 30; + +const int gestaltMacCentris660AV = 60; + +const int gestaltMacClassic = 17; + +const int gestaltMacColorClassic = 49; + +const int gestaltMacII = 6; + +const int gestaltMacIIci = 11; + +const int gestaltMacIIcx = 8; + +const int gestaltMacIIfx = 13; + +const int gestaltMacIIsi = 18; + +const int gestaltMacIIvi = 44; + +const int gestaltMacIIvm = 45; + +const int gestaltMacIIvx = 48; + +const int gestaltMacIIx = 7; + +const int gestaltMacKbd = 1; + +const int gestaltMacLC = 19; + +const int gestaltMacLC475 = 89; + +const int gestaltMacLC520 = 56; + +const int gestaltMacLC575 = 92; + +const int gestaltMacLC580 = 99; + +const int gestaltMacLCII = 37; + +const int gestaltMacLCIII = 27; + +const int gestaltMacOSCompatibility = 1206; + +const int gestaltMacOSCompatibilityBoxAttr = 1650618232; + +const int gestaltMacOSCompatibilityBoxHasSerial = 1; + +const int gestaltMacOSCompatibilityBoxPresent = 0; + +const int gestaltMacOSCompatibilityBoxless = 2; + +const int gestaltMacOSXQD = 768; + +const int gestaltMacOSXQDText = 512; + +const int gestaltMacPlus = 4; + +const int gestaltMacPlusKbd = 3; + +const int gestaltMacQuadra605 = 94; + +const int gestaltMacQuadra610 = 53; + +const int gestaltMacQuadra630 = 98; + +const int gestaltMacQuadra650 = 36; + +const int gestaltMacQuadra660AV = 60; + +const int gestaltMacQuadra700 = 22; + +const int gestaltMacQuadra800 = 35; + +const int gestaltMacQuadra840AV = 78; + +const int gestaltMacQuadra900 = 20; + +const int gestaltMacQuadra950 = 26; + +const int gestaltMacSE = 5; + +const int gestaltMacSE030 = 9; + +const int gestaltMacTV = 88; + +const int gestaltMacXL = 2; + +const int gestaltMachineIcon = 1835623278; + +const int gestaltMachineType = 1835098984; + +const int gestaltMediaBay = 1835165032; + +const int gestaltMemoryMapAttr = 1835884912; + +const int gestaltMemoryMapSparse = 0; + +const int gestaltMenuMgrAquaLayoutBit = 1; + +const int gestaltMenuMgrAquaLayoutMask = 2; + +const int gestaltMenuMgrAttr = 1835363957; + +const int gestaltMenuMgrCGImageMenuTitleBit = 6; + +const int gestaltMenuMgrCGImageMenuTitleMask = 64; + +const int gestaltMenuMgrMoreThanFiveMenusDeepBit = 5; + +const int gestaltMenuMgrMoreThanFiveMenusDeepMask = 32; + +const int gestaltMenuMgrMultipleItemsWithCommandIDBit = 2; + +const int gestaltMenuMgrMultipleItemsWithCommandIDMask = 4; + +const int gestaltMenuMgrPresent = 1; + +const int gestaltMenuMgrPresentBit = 0; + +const int gestaltMenuMgrPresentMask = 1; + +const int gestaltMenuMgrRetainsIconRefBit = 3; + +const int gestaltMenuMgrRetainsIconRefMask = 8; + +const int gestaltMenuMgrSendsMenuBoundsToDefProcBit = 4; + +const int gestaltMenuMgrSendsMenuBoundsToDefProcMask = 16; + +const int gestaltMessageMgrVersion = 1835365235; + +const int gestaltMiscAttr = 1835627363; + +const int gestaltMixedModeAttr = 1835628644; + +const int gestaltMixedModeCFM68K = 1; + +const int gestaltMixedModeCFM68KHasState = 3; + +const int gestaltMixedModeCFM68KHasTrap = 2; + +const int gestaltMixedModePowerPC = 0; + +const int gestaltMixedModeVersion = 1835628644; + +const int gestaltMultiChannels = 11; + +const int gestaltMultipleUsersState = 1835426930; + +const int gestaltMustUseFCBAccessors = 13; + +const int gestaltNameRegistryVersion = 1852990823; + +const int gestaltNativeCPUfamily = 1668314470; + +const int gestaltNativeCPUtype = 1668314484; + +const int gestaltNativeProcessMgrBit = 19; + +const int gestaltNativeTimeMgr = 4; + +const int gestaltNativeType1FontSupport = 5; + +const int gestaltNewHandleReturnsZeroedMemoryBit = 2; + +const int gestaltNewPtrReturnsZeroedMemoryBit = 3; + +const int gestaltNoFPU = 0; + +const int gestaltNoMMU = 0; + +const int gestaltNotificationMgrAttr = 1852663666; + +const int gestaltNotificationPresent = 0; + +const int gestaltNuBusConnectors = 1936487523; + +const int gestaltNuBusPresent = 1; + +const int gestaltNuBusSlotCount = 1853186675; + +const int gestaltOCESFServerAvailable = 4; + +const int gestaltOCETB = 258; + +const int gestaltOCETBAvailable = 2; + +const int gestaltOCETBNativeGlueAvailable = 16; + +const int gestaltOCETBPresent = 1; + +const int gestaltOCEToolboxAttr = 1868785013; + +const int gestaltOCEToolboxVersion = 1868785012; + +const int gestaltOFA2available = 3; + +const int gestaltOSAttr = 1869815840; + +const int gestaltOSLCompliantFinder = 3; + +const int gestaltOSLInSystem = 2; + +const int gestaltOSTable = 1869837428; + +const int gestaltOSXFBCCurrentVersion = 256; + +const int gestaltOpenFirmwareInfo = 1869637239; + +const int gestaltOpenTpt = 1869898094; + +const int gestaltOpenTptARAPPresent = 6; + +const int gestaltOpenTptAppleTalkLoadedBit = 3; + +const int gestaltOpenTptAppleTalkLoadedMask = 8; + +const int gestaltOpenTptAppleTalkPresentBit = 2; + +const int gestaltOpenTptAppleTalkPresentMask = 4; + +const int gestaltOpenTptIPXSPXLoadedBit = 7; + +const int gestaltOpenTptIPXSPXLoadedMask = 128; + +const int gestaltOpenTptIPXSPXPresentBit = 6; + +const int gestaltOpenTptIPXSPXPresentMask = 64; + +const int gestaltOpenTptLoadedBit = 1; + +const int gestaltOpenTptLoadedMask = 2; + +const int gestaltOpenTptNetworkSetup = 1869898598; + +const int gestaltOpenTptNetworkSetupLegacyExport = 1; + +const int gestaltOpenTptNetworkSetupLegacyImport = 0; + +const int gestaltOpenTptNetworkSetupSupportsMultihoming = 2; + +const int gestaltOpenTptNetworkSetupVersion = 1869898614; + +const int gestaltOpenTptPPPPresent = 5; + +const int gestaltOpenTptPresentBit = 0; + +const int gestaltOpenTptPresentMask = 1; + +const int gestaltOpenTptRemoteAccess = 1869902433; + +const int gestaltOpenTptRemoteAccessClientOnly = 2; + +const int gestaltOpenTptRemoteAccessLoaded = 1; + +const int gestaltOpenTptRemoteAccessMPServer = 4; + +const int gestaltOpenTptRemoteAccessPServer = 3; + +const int gestaltOpenTptRemoteAccessPresent = 0; + +const int gestaltOpenTptRemoteAccessVersion = 1869902454; + +const int gestaltOpenTptTCPLoadedBit = 5; + +const int gestaltOpenTptTCPLoadedMask = 32; + +const int gestaltOpenTptTCPPresentBit = 4; + +const int gestaltOpenTptTCPPresentMask = 16; + +const int gestaltOpenTptVersions = 1869903474; + +const int gestaltOriginalATSUVersion = 65536; + +const int gestaltOriginalQD = 0; + +const int gestaltOriginalQDText = 0; + +const int gestaltOutlineFonts = 0; + +const int gestaltPCCard = 1885561700; + +const int gestaltPCCardFamilyPresent = 1; + +const int gestaltPCCardHasPowerControl = 2; + +const int gestaltPCCardSupportsCardBus = 3; + +const int gestaltPCXAttr = 1885567079; + +const int gestaltPCXHas8and16BitFAT = 0; + +const int gestaltPCXHasProDOS = 1; + +const int gestaltPCXNewUI = 2; + +const int gestaltPCXUseICMapping = 3; + +const int gestaltPMgrCPUIdle = 1; + +const int gestaltPMgrDispatchExists = 4; + +const int gestaltPMgrExists = 0; + +const int gestaltPMgrSCC = 2; + +const int gestaltPMgrSound = 3; + +const int gestaltPMgrSupportsAVPowerStateAtSleepWake = 5; + +const int gestaltPPCDragLibPresent = 2; + +const int gestaltPPCQuickTimeLibPresent = 0; + +const int gestaltPPCSupportsIncoming = 1; + +const int gestaltPPCSupportsIncomingAppleTalk = 16; + +const int gestaltPPCSupportsIncomingTCP_IP = 32; + +const int gestaltPPCSupportsOutGoing = 2; + +const int gestaltPPCSupportsOutgoingAppleTalk = 256; + +const int gestaltPPCSupportsOutgoingTCP_IP = 512; + +const int gestaltPPCSupportsRealTime = 4096; + +const int gestaltPPCSupportsTCP_IP = 4; + +const int gestaltPPCToolboxAttr = 1886413600; + +const int gestaltPPCToolboxPresent = 0; + +const int gestaltPS2Keyboard = 27; + +const int gestaltParityAttr = 1886549113; + +const int gestaltParityEnabled = 1; + +const int gestaltPartialRsrcs = 0; + +const int gestaltPerforma250 = 49; + +const int gestaltPerforma450 = 27; + +const int gestaltPerforma46x = 62; + +const int gestaltPerforma47x = 89; + +const int gestaltPerforma5300 = 41; + +const int gestaltPerforma550 = 80; + +const int gestaltPerforma580 = 99; + +const int gestaltPerforma600 = 45; + +const int gestaltPerforma6300 = 42; + +const int gestaltPerforma6360 = 58; + +const int gestaltPerforma6400 = 58; + +const int gestaltPhysicalRAMSize = 1918987552; + +const int gestaltPhysicalRAMSizeInMegabytes = 1918987629; + +const int gestaltPlayAndRecord = 6; + +const int gestaltPopupAttr = 1886351393; + +const int gestaltPopupPresent = 0; + +const int gestaltPortADisabled = 5; + +const int gestaltPortBDisabled = 6; + +const int gestaltPortable = 10; + +const int gestaltPortable2001ANSIKbd = 202; + +const int gestaltPortable2001ISOKbd = 203; + +const int gestaltPortable2001JISKbd = 207; + +const int gestaltPortableSlotPresent = 4; + +const int gestaltPortableUSBANSIKbd = 37; + +const int gestaltPortableUSBISOKbd = 38; + +const int gestaltPortableUSBJISKbd = 39; + +const int gestaltPowerBook100 = 24; + +const int gestaltPowerBook140 = 25; + +const int gestaltPowerBook1400 = 310; + +const int gestaltPowerBook145 = 54; + +const int gestaltPowerBook150 = 115; + +const int gestaltPowerBook160 = 34; + +const int gestaltPowerBook165 = 84; + +const int gestaltPowerBook165c = 50; + +const int gestaltPowerBook170 = 21; + +const int gestaltPowerBook180 = 33; + +const int gestaltPowerBook180c = 71; + +const int gestaltPowerBook190 = 85; + +const int gestaltPowerBook2400 = 307; + +const int gestaltPowerBook3400 = 306; + +const int gestaltPowerBook500PPCUpgrade = 126; + +const int gestaltPowerBook520 = 72; + +const int gestaltPowerBook520c = 72; + +const int gestaltPowerBook5300 = 128; + +const int gestaltPowerBook540 = 72; + +const int gestaltPowerBook540c = 72; + +const int gestaltPowerBookDuo210 = 29; + +const int gestaltPowerBookDuo230 = 32; + +const int gestaltPowerBookDuo2300 = 124; + +const int gestaltPowerBookDuo250 = 38; + +const int gestaltPowerBookDuo270c = 77; + +const int gestaltPowerBookDuo280 = 102; + +const int gestaltPowerBookDuo280c = 103; + +const int gestaltPowerBookG3 = 313; + +const int gestaltPowerBookG3Series = 312; + +const int gestaltPowerBookG3Series2 = 314; + +const int gestaltPowerMac4400 = 515; + +const int gestaltPowerMac4400_160 = 514; + +const int gestaltPowerMac5200 = 41; + +const int gestaltPowerMac5260 = 41; + +const int gestaltPowerMac5400 = 74; + +const int gestaltPowerMac5500 = 512; + +const int gestaltPowerMac6100_60 = 75; + +const int gestaltPowerMac6100_66 = 100; + +const int gestaltPowerMac6200 = 42; + +const int gestaltPowerMac6400 = 58; + +const int gestaltPowerMac6500 = 513; + +const int gestaltPowerMac7100_66 = 112; + +const int gestaltPowerMac7100_80 = 47; + +const int gestaltPowerMac7200 = 108; + +const int gestaltPowerMac7300 = 109; + +const int gestaltPowerMac7500 = 68; + +const int gestaltPowerMac7600 = 68; + +const int gestaltPowerMac8100_100 = 55; + +const int gestaltPowerMac8100_110 = 40; + +const int gestaltPowerMac8100_120 = 12; + +const int gestaltPowerMac8100_80 = 65; + +const int gestaltPowerMac8500 = 69; + +const int gestaltPowerMac8600 = 69; + +const int gestaltPowerMac9500 = 67; + +const int gestaltPowerMac9600 = 67; + +const int gestaltPowerMacCentris610 = 119; + +const int gestaltPowerMacCentris650 = 120; + +const int gestaltPowerMacG3 = 510; + +const int gestaltPowerMacLC475 = 104; + +const int gestaltPowerMacLC575 = 105; + +const int gestaltPowerMacLC630 = 106; + +const int gestaltPowerMacNewWorld = 406; + +const int gestaltPowerMacPerforma47x = 104; + +const int gestaltPowerMacPerforma57x = 105; + +const int gestaltPowerMacPerforma63x = 106; + +const int gestaltPowerMacQuadra610 = 121; + +const int gestaltPowerMacQuadra630 = 106; + +const int gestaltPowerMacQuadra650 = 122; + +const int gestaltPowerMacQuadra700 = 116; + +const int gestaltPowerMacQuadra800 = 123; + +const int gestaltPowerMacQuadra900 = 117; + +const int gestaltPowerMacQuadra950 = 118; + +const int gestaltPowerMgrAttr = 1886353266; + +const int gestaltPowerMgrVers = 1886876278; + +const int gestaltPowerPC = 2; + +const int gestaltPowerPCASArchitecture = 8; + +const int gestaltPowerPCAware = 0; + +const int gestaltPowerPCHas64BitSupport = 6; + +const int gestaltPowerPCHasDCBAInstruction = 3; + +const int gestaltPowerPCHasDCBTStreams = 7; + +const int gestaltPowerPCHasDataStreams = 5; + +const int gestaltPowerPCHasGraphicsInstructions = 0; + +const int gestaltPowerPCHasSTFIWXInstruction = 1; + +const int gestaltPowerPCHasSquareRootInstructions = 2; + +const int gestaltPowerPCHasVectorInstructions = 4; + +const int gestaltPowerPCIgnoresDCBST = 9; + +const int gestaltPowerPCProcessorFeatures = 1886413670; + +const int gestaltProF16ANSIKbd = 31; + +const int gestaltProF16ISOKbd = 32; + +const int gestaltProF16JISKbd = 33; + +const int gestaltProcClkSpeed = 1885564011; + +const int gestaltProcClkSpeedMHz = 1835232363; + +const int gestaltProcessorCacheLineSize = 1668508026; + +const int gestaltProcessorType = 1886547811; + +const int gestaltPrtblADBKbd = 6; + +const int gestaltPrtblISOKbd = 7; + +const int gestaltPwrBk99JISKbd = 201; + +const int gestaltPwrBkEKDomKbd = 195; + +const int gestaltPwrBkEKISOKbd = 196; + +const int gestaltPwrBkEKJISKbd = 197; + +const int gestaltPwrBkExtADBKbd = 24; + +const int gestaltPwrBkExtISOKbd = 20; + +const int gestaltPwrBkExtJISKbd = 21; + +const int gestaltPwrBkSubDomKbd = 28; + +const int gestaltPwrBkSubISOKbd = 29; + +const int gestaltPwrBkSubJISKbd = 30; + +const int gestaltPwrBookADBKbd = 12; + +const int gestaltPwrBookISOADBKbd = 13; + +const int gestaltQD3D = 1902392164; + +const int gestaltQD3DPresent = 0; + +const int gestaltQD3DVersion = 1899197984; + +const int gestaltQD3DViewer = 1899198051; + +const int gestaltQD3DViewerPresent = 0; + +const int gestaltQDHasLongRowBytes = 5; + +const int gestaltQDTextFeatures = 1902408806; + +const int gestaltQDTextVersion = 1902408824; + +const int gestaltQTVRCubicPanosPresent = 3; + +const int gestaltQTVRCylinderPanosPresent = 2; + +const int gestaltQTVRMgrAttr = 1903457906; + +const int gestaltQTVRMgrPresent = 0; + +const int gestaltQTVRMgrVers = 1903457910; + +const int gestaltQTVRObjMoviesPresent = 1; + +const int gestaltQuadra605 = 94; + +const int gestaltQuadra610 = 53; + +const int gestaltQuadra630 = 98; + +const int gestaltQuadra650 = 36; + +const int gestaltQuadra660AV = 60; + +const int gestaltQuadra700 = 22; + +const int gestaltQuadra800 = 35; + +const int gestaltQuadra840AV = 78; + +const int gestaltQuadra900 = 20; + +const int gestaltQuadra950 = 26; + +const int gestaltQuickTime = 1903454573; + +const int gestaltQuickTimeConferencing = 1836346475; + +const int gestaltQuickTimeConferencingInfo = 1903453033; + +const int gestaltQuickTimeFeatures = 1903456883; + +const int gestaltQuickTimeStreamingFeatures = 1903457126; + +const int gestaltQuickTimeStreamingVersion = 1903457140; + +const int gestaltQuickTimeThreadSafeFeaturesAttr = 1903457384; + +const int gestaltQuickTimeThreadSafeGraphicsExport = 5; + +const int gestaltQuickTimeThreadSafeGraphicsImport = 4; + +const int gestaltQuickTimeThreadSafeICM = 0; + +const int gestaltQuickTimeThreadSafeMovieExport = 3; + +const int gestaltQuickTimeThreadSafeMovieImport = 2; + +const int gestaltQuickTimeThreadSafeMoviePlayback = 6; + +const int gestaltQuickTimeThreadSafeMovieToolbox = 1; + +const int gestaltQuickTimeVersion = 1903454573; + +const int gestaltQuickdrawFeatures = 1902408311; + +const int gestaltQuickdrawVersion = 1902387232; + +const int gestaltRBVAddr = 1919055392; + +const int gestaltRMFakeAppleMenuItemsRolledIn = 1; + +const int gestaltRMForceSysHeapRolledIn = 0; + +const int gestaltRMSupportsFSCalls = 4; + +const int gestaltRMTypeIndexOrderingReverse = 8; + +const int gestaltROMSize = 1919905056; + +const int gestaltROMVersion = 1919905142; + +const int gestaltRealTempMemory = 5; + +const int gestaltRealtimeMgrAttr = 1920232818; + +const int gestaltRealtimeMgrPresent = 0; + +const int gestaltResourceMgrAttr = 1920168547; + +const int gestaltResourceMgrBugFixesAttrs = 1919771239; + +const int gestaltRevisedTimeMgr = 2; + +const int gestaltSCCReadAddr = 1935893362; + +const int gestaltSCCWriteAddr = 1935893367; + +const int gestaltSCSI = 1935897449; + +const int gestaltSCSIPollSIH = 3; + +const int gestaltSCSISlotBoot = 2; + +const int gestaltSDPFindVersion = 1684434532; + +const int gestaltSDPPromptVersion = 1886548086; + +const int gestaltSDPStandardDirectoryVersion = 1935963762; + +const int gestaltSE30SlotPresent = 3; + +const int gestaltSESlotPresent = 2; + +const int gestaltSFServer = 256; + +const int gestaltSMPMailerVersion = 1835101298; + +const int gestaltSMPSPSendLetterVersion = 1936749420; + +const int gestaltSafeOFAttr = 1935763045; + +const int gestaltSanityCheckResourceFiles = 2; + +const int gestaltSbitFontSupport = 1; + +const int gestaltScrapMgrAttr = 1935897185; + +const int gestaltScrapMgrTranslationAware = 0; + +const int gestaltScreenCaptureDir = 1885954866; + +const int gestaltScreenCaptureMain = 1885954865; + +const int gestaltScriptCount = 1935897123; + +const int gestaltScriptMgrVersion = 1935897193; + +const int gestaltScriptingSupport = 1; + +const int gestaltScrollingThrottle = 0; + +const int gestaltSerialArbitrationExists = 0; + +const int gestaltSerialAttr = 1936028192; + +const int gestaltSetDragImageUpdates = 5; + +const int gestaltSheetsAreWindowModalBit = 7; + +const int gestaltSheetsAreWindowModalMask = 128; + +const int gestaltShutdownAttributes = 1936225652; + +const int gestaltShutdownHassdOnBootVolUnmount = 0; + +const int gestaltSlotAttr = 1936486260; + +const int gestaltSlotMgrExists = 0; + +const int gestaltSndPlayDoubleBuffer = 10; + +const int gestaltSoftwareVendorApple = 1097887852; + +const int gestaltSoftwareVendorCode = 1936875876; + +const int gestaltSoftwareVendorLicensee = 1281584755; + +const int gestaltSoundAttr = 1936614432; + +const int gestaltSoundIOMgrPresent = 3; + +const int gestaltSpecificMatchSupport = 1; + +const int gestaltSpeechAttr = 1953788771; + +const int gestaltSpeechHasPPCGlue = 1; + +const int gestaltSpeechMgrPresent = 0; + +const int gestaltSpeechRecognitionAttr = 1936880737; + +const int gestaltSpeechRecognitionVersion = 1936880738; + +const int gestaltSplitOSAttr = 1936748403; + +const int gestaltSplitOSAware = 1; + +const int gestaltSplitOSBootDriveIsNetworkVolume = 0; + +const int gestaltSplitOSEnablerVolumeIsDifferentFromBootVolume = 2; + +const int gestaltSplitOSMachineNameSetToNetworkNameTemp = 3; + +const int gestaltSplitOSMachineNameStartupDiskIsNonPersistent = 5; + +const int gestaltSquareMenuBar = 2; + +const int gestaltStandardFile58 = 0; + +const int gestaltStandardFileAttr = 1937007718; + +const int gestaltStandardFileHasColorIcons = 2; + +const int gestaltStandardFileHasDynamicVolumeAllocation = 4; + +const int gestaltStandardFileTranslationAware = 1; + +const int gestaltStandardFileUseGenericIcons = 3; + +const int gestaltStandardTimeMgr = 1; + +const int gestaltStdADBKbd = 5; + +const int gestaltStdISOADBKbd = 8; + +const int gestaltStdNBPAttr = 1852601712; + +const int gestaltStdNBPPresent = 0; + +const int gestaltStdNBPSupportsAutoPosition = 1; + +const int gestaltStereoCapability = 0; + +const int gestaltStereoInput = 8; + +const int gestaltStereoMixing = 1; + +const int gestaltSupportsApplicationURL = 4; + +const int gestaltSupportsFSpResourceFileAlreadyOpenBit = 3; + +const int gestaltSupportsMirroring = 4; + +const int gestaltSysArchitecture = 1937339233; + +const int gestaltSysDebuggerSupport = 8; + +const int gestaltSysZoneGrowable = 0; + +const int gestaltSystemUpdateVersion = 1937339253; + +@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') +const int gestaltSystemVersion = 1937339254; + +@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') +const int gestaltSystemVersionBugFix = 1937339187; + +@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') +const int gestaltSystemVersionMajor = 1937339185; + +@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') +const int gestaltSystemVersionMinor = 1937339186; + +const int gestaltTE1 = 1; + +const int gestaltTE2 = 2; + +const int gestaltTE3 = 3; + +const int gestaltTE4 = 4; + +const int gestaltTE5 = 5; + +const int gestaltTE6 = 6; + +const int gestaltTEAttr = 1952801140; + +const int gestaltTEHasGetHiliteRgn = 0; + +const int gestaltTEHasWhiteBackground = 3; + +const int gestaltTESupportsInlineInput = 1; + +const int gestaltTESupportsTextObjects = 2; + +const int gestaltTSMDisplayMgrAwareBit = 0; + +const int gestaltTSMTE = 0; + +const int gestaltTSMTE1 = 256; + +const int gestaltTSMTE15 = 336; + +const int gestaltTSMTE152 = 338; + +const int gestaltTSMTEAttr = 1953322053; + +const int gestaltTSMTEPresent = 0; + +const int gestaltTSMTEVersion = 1953322070; + +const int gestaltTSMdoesTSMTEBit = 1; + +const int gestaltTSMgr15 = 336; + +const int gestaltTSMgr20 = 512; + +const int gestaltTSMgr22 = 544; + +const int gestaltTSMgr23 = 560; + +const int gestaltTSMgrAttr = 1953721697; + +const int gestaltTSMgrVersion = 1953721718; + +const int gestaltTVAttr = 1953898528; + +const int gestaltTeleMgrAttr = 1952803941; + +const int gestaltTeleMgrAutoAnswer = 3; + +const int gestaltTeleMgrIndHandset = 4; + +const int gestaltTeleMgrNewTELNewSupport = 6; + +const int gestaltTeleMgrPowerPCSupport = 1; + +const int gestaltTeleMgrPresent = 0; + +const int gestaltTeleMgrSilenceDetect = 5; + +const int gestaltTeleMgrSoundStreams = 2; + +const int gestaltTelephoneSpeechRecognition = 2; + +const int gestaltTempMemSupport = 4; + +const int gestaltTempMemTracked = 6; + +const int gestaltTermMgrAttr = 1952805485; + +const int gestaltTermMgrErrorString = 2; + +const int gestaltTermMgrPresent = 0; + +const int gestaltTextEditVersion = 1952784416; + +const int gestaltThirdPartyANSIKbd = 40; + +const int gestaltThirdPartyISOKbd = 41; + +const int gestaltThirdPartyJISKbd = 42; + +const int gestaltThreadMgrAttr = 1952998515; + +const int gestaltThreadMgrPresent = 0; + +const int gestaltThreadsLibraryPresent = 2; + +const int gestaltTimeMgrVersion = 1953326962; + +const int gestaltToolboxTable = 1952609396; + +const int gestaltTranslationAttr = 2020368756; + +const int gestaltTranslationGetPathAPIAvail = 3; + +const int gestaltTranslationMgrExists = 0; + +const int gestaltTranslationMgrHintOrder = 1; + +const int gestaltTranslationPPCAvail = 2; + +const int gestaltUDFSupport = 1802855526; + +const int gestaltUSBAndyANSIKbd = 204; + +const int gestaltUSBAndyISOKbd = 205; + +const int gestaltUSBAndyJISKbd = 206; + +const int gestaltUSBAttr = 1970496032; + +const int gestaltUSBCosmoANSIKbd = 198; + +const int gestaltUSBCosmoISOKbd = 199; + +const int gestaltUSBCosmoJISKbd = 200; + +const int gestaltUSBHasIsoch = 1; + +const int gestaltUSBPresent = 0; + +const int gestaltUSBPrinterSharingAttr = 2053204768; + +const int gestaltUSBPrinterSharingAttrBooted = 1073741824; + +const int gestaltUSBPrinterSharingAttrMask = -65536; + +const int gestaltUSBPrinterSharingAttrRunning = -2147483648; + +const int gestaltUSBPrinterSharingVersion = 2053204768; + +const int gestaltUSBPrinterSharingVersionMask = 65535; + +const int gestaltUSBProF16ANSIKbd = 34; + +const int gestaltUSBProF16ISOKbd = 35; + +const int gestaltUSBProF16JISKbd = 36; + +const int gestaltUSBVersion = 1970496118; + +const int gestaltUndefSelectorErr = -5551; + +const int gestaltUnknownErr = -5550; + +const int gestaltUnknownThirdPartyKbd = 3; + +const int gestaltUserVisibleMachineName = 1835950445; + +const int gestaltVIA1Addr = 1986617649; + +const int gestaltVIA2Addr = 1986617650; + +const int gestaltVMAttr = 1986863136; + +const int gestaltVMBackingStoreFileRefNum = 1986880115; + +const int gestaltVMFilemappingOn = 3; + +const int gestaltVMHasLockMemoryForOutput = 1; + +const int gestaltVMHasPagingControl = 4; + +const int gestaltVMInfoNoneType = 3; + +const int gestaltVMInfoSimpleType = 2; + +const int gestaltVMInfoSizeStorageType = 0; + +const int gestaltVMInfoSizeType = 1; + +const int gestaltVMInfoType = 1986881902; + +const int gestaltVMPresent = 0; + +const int gestaltVMZerosPagesBit = 0; + +const int gestaltValueImplementedVers = 5; + +const int gestaltVersion = 1986359923; + +const int gestaltWSIICanPrintWithoutPrGeneralBit = 0; + +const int gestaltWSIISupport = 0; + +const int gestaltWindowLiveResizeBit = 4; + +const int gestaltWindowLiveResizeMask = 16; + +const int gestaltWindowMgrAttr = 2003398244; + +const int gestaltWindowMgrPresent = 1; + +const int gestaltWindowMgrPresentBit = 0; + +const int gestaltWindowMgrPresentMask = 1; + +const int gestaltWindowMinimizeToDockBit = 5; + +const int gestaltWindowMinimizeToDockMask = 32; + +const int gestaltWorldScriptIIAttr = 2004050292; + +const int gestaltWorldScriptIIVersion = 1685026146; + +const int gestaltX86AdditionalFeatures = 2016949857; + +const int gestaltX86Features = 2016949862; + +const int gestaltX86HasAPIC = 9; + +const int gestaltX86HasCID = 10; + +const int gestaltX86HasCLFSH = 19; + +const int gestaltX86HasCMOV = 15; + +const int gestaltX86HasCX16 = 13; + +const int gestaltX86HasCX8 = 8; + +const int gestaltX86HasDE = 2; + +const int gestaltX86HasDS = 21; + +const int gestaltX86HasDSCPL = 4; + +const int gestaltX86HasEST = 7; + +const int gestaltX86HasFPU = 0; + +const int gestaltX86HasFXSR = 24; + +const int gestaltX86HasHTT = 28; + +const int gestaltX86HasMCA = 14; + +const int gestaltX86HasMCE = 7; + +const int gestaltX86HasMMX = 23; + +const int gestaltX86HasMONITOR = 3; + +const int gestaltX86HasMSR = 5; + +const int gestaltX86HasMTRR = 12; + +const int gestaltX86HasPAE = 6; + +const int gestaltX86HasPAT = 16; + +const int gestaltX86HasPGE = 13; + +const int gestaltX86HasPSE = 3; + +const int gestaltX86HasPSE36 = 17; + +const int gestaltX86HasPSN = 18; + +const int gestaltX86HasSEP = 11; + +const int gestaltX86HasSMX = 6; + +const int gestaltX86HasSS = 27; + +const int gestaltX86HasSSE = 25; + +const int gestaltX86HasSSE2 = 26; + +const int gestaltX86HasSSE3 = 0; + +const int gestaltX86HasSupplementalSSE3 = 9; + +const int gestaltX86HasTM = 29; + +const int gestaltX86HasTM2 = 8; + +const int gestaltX86HasTSC = 4; + +const int gestaltX86HasVME = 1; + +const int gestaltX86HasVMX = 5; + +const int gestaltX86HasxTPR = 14; + +const int gestaltX86ResACPI = 22; + +const int gestaltX86Serviced20 = 20; + +const int gfpErr = -52; + +typedef gid_t = __darwin_gid_t; + +@ffi.Packed(4) +final class gpu_energy_data extends ffi.Struct { + @ffi.Uint64() + external int task_gpu_utilisation; + + @ffi.Uint64() + external int task_gpu_stat_reserved0; + + @ffi.Uint64() + external int task_gpu_stat_reserved1; + + @ffi.Uint64() + external int task_gpu_stat_reserved2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int task_gpu_utilisation, + required int task_gpu_stat_reserved0, + required int task_gpu_stat_reserved1, + required int task_gpu_stat_reserved2, + }) => $allocator() + ..ref.task_gpu_utilisation = task_gpu_utilisation + ..ref.task_gpu_stat_reserved0 = task_gpu_stat_reserved0 + ..ref.task_gpu_stat_reserved1 = task_gpu_stat_reserved1 + ..ref.task_gpu_stat_reserved2 = task_gpu_stat_reserved2; +} + +typedef gpu_energy_data_t = ffi.Pointer; + +const int grabTimeComplete = -9401; + +@Deprecated('Deprecated') +const int graveUprE = 233; + +@Deprecated('Deprecated') +const int graveUprI = 237; + +@Deprecated('Deprecated') +const int graveUprO = 241; + +@Deprecated('Deprecated') +const int graveUprU = 244; + +@ffi.Packed(4) +final class group_req extends ffi.Struct { + @ffi.Uint32() + external int gr_interface; + + external sockaddr_storage gr_group; +} + +@ffi.Packed(4) +final class group_source_req extends ffi.Struct { + @ffi.Uint32() + external int gsr_interface; + + external sockaddr_storage gsr_group; + + external sockaddr_storage gsr_source; +} + +const int guestNotAllowedErr = -932; + +final class guid_t extends ffi.Union { + @ffi.Array.multi([16]) + external ffi.Array g_guid; + + @ffi.Array.multi([4]) + external ffi.Array g_guid_asint; +} + +const int hMenuFindErr = -127; + +@Deprecated('Deprecated') +const int hachek = 255; + +const int handlerNotFoundErr = -1856; + +const int hardwareConfigErr = -604; + +final class hash_info_bucket extends ffi.Struct { + @natural_t() + external int hib_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int hib_count, + }) => $allocator()..ref.hib_count = hib_count; +} + +typedef hash_info_bucket_array_t = ffi.Pointer; +typedef hash_info_bucket_t = hash_info_bucket; + +const int hitDev = 1; + +const int hmBalloonAborted = -853; + +const int hmCloseViewActive = -863; + +const int hmHelpDisabled = -850; + +const int hmHelpManagerNotInited = -855; + +const int hmNoBalloonUp = -862; + +const int hmOperationUnsupported = -861; + +const int hmSameAsLastBalloon = -854; + +const int hmSkippedBalloon = -857; + +const int hmUnknownHelpType = -859; + +const int hmWrongVersion = -858; + +@ffi.Packed(4) +final class host_basic_info extends ffi.Struct { + @integer_t() + external int max_cpus; + + @integer_t() + external int avail_cpus; + + @natural_t() + external int memory_size; + + @cpu_type_t() + external int cpu_type; + + @cpu_subtype_t() + external int cpu_subtype; + + @cpu_threadtype_t() + external int cpu_threadtype; + + @integer_t() + external int physical_cpu; + + @integer_t() + external int physical_cpu_max; + + @integer_t() + external int logical_cpu; + + @integer_t() + external int logical_cpu_max; + + @ffi.Uint64() + external int max_mem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_cpus, + required int avail_cpus, + required int memory_size, + required int cpu_type, + required int cpu_subtype, + required int cpu_threadtype, + required int physical_cpu, + required int physical_cpu_max, + required int logical_cpu, + required int logical_cpu_max, + required int max_mem, + }) => $allocator() + ..ref.max_cpus = max_cpus + ..ref.avail_cpus = avail_cpus + ..ref.memory_size = memory_size + ..ref.cpu_type = cpu_type + ..ref.cpu_subtype = cpu_subtype + ..ref.cpu_threadtype = cpu_threadtype + ..ref.physical_cpu = physical_cpu + ..ref.physical_cpu_max = physical_cpu_max + ..ref.logical_cpu = logical_cpu + ..ref.logical_cpu_max = logical_cpu_max + ..ref.max_mem = max_mem; +} + +typedef host_basic_info_data_t = host_basic_info; +typedef host_basic_info_t = ffi.Pointer; + +final class host_can_has_debugger_info extends ffi.Struct { + @boolean_t() + external int can_has_debugger; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int can_has_debugger, + }) => + $allocator() + ..ref.can_has_debugger = can_has_debugger; +} + +typedef host_can_has_debugger_info_data_t = host_can_has_debugger_info; +typedef host_can_has_debugger_info_t = ffi.Pointer; + +final class host_cpu_load_info extends ffi.Struct { + @ffi.Array.multi([4]) + external ffi.Array cpu_ticks; +} + +typedef host_cpu_load_info_data_t = host_cpu_load_info; +typedef host_cpu_load_info_t = ffi.Pointer; +typedef host_flavor_t = integer_t; +typedef host_info64_t = ffi.Pointer; +typedef host_info_t = ffi.Pointer; + +final class host_load_info extends ffi.Struct { + @ffi.Array.multi([3]) + external ffi.Array avenrun; + + @ffi.Array.multi([3]) + external ffi.Array mach_factor; +} + +typedef host_load_info_data_t = host_load_info; +typedef host_load_info_t = ffi.Pointer; +typedef host_name_port_t = host_t; +typedef host_name_t = host_t; + +final class host_preferred_user_arch extends ffi.Struct { + @cpu_type_t() + external int cpu_type; + + @cpu_subtype_t() + external int cpu_subtype; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cpu_type, + required int cpu_subtype, + }) => $allocator() + ..ref.cpu_type = cpu_type + ..ref.cpu_subtype = cpu_subtype; +} + +typedef host_preferred_user_arch_data_t = host_preferred_user_arch; +typedef host_preferred_user_arch_t = ffi.Pointer; + +final class host_priority_info extends ffi.Struct { + @integer_t() + external int kernel_priority; + + @integer_t() + external int system_priority; + + @integer_t() + external int server_priority; + + @integer_t() + external int user_priority; + + @integer_t() + external int depress_priority; + + @integer_t() + external int idle_priority; + + @integer_t() + external int minimum_priority; + + @integer_t() + external int maximum_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int kernel_priority, + required int system_priority, + required int server_priority, + required int user_priority, + required int depress_priority, + required int idle_priority, + required int minimum_priority, + required int maximum_priority, + }) => $allocator() + ..ref.kernel_priority = kernel_priority + ..ref.system_priority = system_priority + ..ref.server_priority = server_priority + ..ref.user_priority = user_priority + ..ref.depress_priority = depress_priority + ..ref.idle_priority = idle_priority + ..ref.minimum_priority = minimum_priority + ..ref.maximum_priority = maximum_priority; +} + +typedef host_priority_info_data_t = host_priority_info; +typedef host_priority_info_t = ffi.Pointer; +typedef host_priv_t = mach_port_t; +typedef host_purgable_info_data_t = vm_purgeable_info; +typedef host_purgable_info_t = ffi.Pointer; + +final class host_sched_info extends ffi.Struct { + @integer_t() + external int min_timeout; + + @integer_t() + external int min_quantum; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int min_timeout, + required int min_quantum, + }) => $allocator() + ..ref.min_timeout = min_timeout + ..ref.min_quantum = min_quantum; +} + +typedef host_sched_info_data_t = host_sched_info; +typedef host_sched_info_t = ffi.Pointer; +typedef host_security_t = mach_port_t; +typedef host_t = mach_port_t; + +final class hostent extends ffi.Struct { + external ffi.Pointer h_name; + + external ffi.Pointer> h_aliases; + + @ffi.Int() + external int h_addrtype; + + @ffi.Int() + external int h_length; + + external ffi.Pointer> h_addr_list; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer h_name, + required ffi.Pointer> h_aliases, + required int h_addrtype, + required int h_length, + required ffi.Pointer> h_addr_list, + }) => $allocator() + ..ref.h_name = h_name + ..ref.h_aliases = h_aliases + ..ref.h_addrtype = h_addrtype + ..ref.h_length = h_length + ..ref.h_addr_list = h_addr_list; +} + +const int hourField = 4; + +const int hourMask = 16; + +const int hrHTMLRenderingLibNotInstalledErr = -5360; + +const int hrLeadingZ = 128; + +const int hrMiscellaneousExceptionErr = -5361; + +const int hrURLNotHandledErr = -5363; + +const int hrUnableToResizeHandleErr = -5362; + +typedef http_addr_t = _http_addr_u; + +final class http_addrlist_s extends ffi.Struct { + external ffi.Pointer next; + + external http_addr_t addr; +} + +typedef http_addrlist_t = http_addrlist_s; + +enum http_auth_e { + HTTP_AUTH_NONE(0), + HTTP_AUTH_BASIC(1), + HTTP_AUTH_MD5(2), + HTTP_AUTH_MD5_SESS(3), + HTTP_AUTH_MD5_INT(4), + HTTP_AUTH_MD5_SESS_INT(5), + HTTP_AUTH_NEGOTIATE(6); + + final int value; + const http_auth_e(this.value); + + static http_auth_e fromValue(int value) => switch (value) { + 0 => HTTP_AUTH_NONE, + 1 => HTTP_AUTH_BASIC, + 2 => HTTP_AUTH_MD5, + 3 => HTTP_AUTH_MD5_SESS, + 4 => HTTP_AUTH_MD5_INT, + 5 => HTTP_AUTH_MD5_SESS_INT, + 6 => HTTP_AUTH_NEGOTIATE, + _ => throw ArgumentError('Unknown value for http_auth_e: $value'), + }; +} + +final class http_credential_s extends ffi.Struct { + external ffi.Pointer data; + + @ffi.Size() + external int datalen; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer data, + required int datalen, + }) => $allocator() + ..ref.data = data + ..ref.datalen = datalen; +} + +typedef http_credential_t = http_credential_s; + +enum http_encoding_e { + HTTP_ENCODING_LENGTH(0), + HTTP_ENCODING_CHUNKED(1), + HTTP_ENCODING_FIELDS(2); + + final int value; + const http_encoding_e(this.value); + + static http_encoding_e fromValue(int value) => switch (value) { + 0 => HTTP_ENCODING_LENGTH, + 1 => HTTP_ENCODING_CHUNKED, + 2 => HTTP_ENCODING_FIELDS, + _ => throw ArgumentError('Unknown value for http_encoding_e: $value'), + }; +} + +enum http_encryption_e { + HTTP_ENCRYPTION_IF_REQUESTED(0), + HTTP_ENCRYPTION_NEVER(1), + HTTP_ENCRYPTION_REQUIRED(2), + HTTP_ENCRYPTION_ALWAYS(3); + + final int value; + const http_encryption_e(this.value); + + static http_encryption_e fromValue(int value) => switch (value) { + 0 => HTTP_ENCRYPTION_IF_REQUESTED, + 1 => HTTP_ENCRYPTION_NEVER, + 2 => HTTP_ENCRYPTION_REQUIRED, + 3 => HTTP_ENCRYPTION_ALWAYS, + _ => throw ArgumentError('Unknown value for http_encryption_e: $value'), + }; +} + +enum http_field_e { + HTTP_FIELD_UNKNOWN(-1), + HTTP_FIELD_ACCEPT_LANGUAGE(0), + HTTP_FIELD_ACCEPT_RANGES(1), + HTTP_FIELD_AUTHORIZATION(2), + HTTP_FIELD_CONNECTION(3), + HTTP_FIELD_CONTENT_ENCODING(4), + HTTP_FIELD_CONTENT_LANGUAGE(5), + HTTP_FIELD_CONTENT_LENGTH(6), + HTTP_FIELD_CONTENT_LOCATION(7), + HTTP_FIELD_CONTENT_MD5(8), + HTTP_FIELD_CONTENT_RANGE(9), + HTTP_FIELD_CONTENT_TYPE(10), + HTTP_FIELD_CONTENT_VERSION(11), + HTTP_FIELD_DATE(12), + HTTP_FIELD_HOST(13), + HTTP_FIELD_IF_MODIFIED_SINCE(14), + HTTP_FIELD_IF_UNMODIFIED_SINCE(15), + HTTP_FIELD_KEEP_ALIVE(16), + HTTP_FIELD_LAST_MODIFIED(17), + HTTP_FIELD_LINK(18), + HTTP_FIELD_LOCATION(19), + HTTP_FIELD_RANGE(20), + HTTP_FIELD_REFERER(21), + HTTP_FIELD_RETRY_AFTER(22), + HTTP_FIELD_TRANSFER_ENCODING(23), + HTTP_FIELD_UPGRADE(24), + HTTP_FIELD_USER_AGENT(25), + HTTP_FIELD_WWW_AUTHENTICATE(26), + HTTP_FIELD_ACCEPT_ENCODING(27), + HTTP_FIELD_ALLOW(28), + HTTP_FIELD_SERVER(29), + HTTP_FIELD_AUTHENTICATION_INFO(30), + HTTP_FIELD_MAX(31); + + final int value; + const http_field_e(this.value); + + static http_field_e fromValue(int value) => switch (value) { + -1 => HTTP_FIELD_UNKNOWN, + 0 => HTTP_FIELD_ACCEPT_LANGUAGE, + 1 => HTTP_FIELD_ACCEPT_RANGES, + 2 => HTTP_FIELD_AUTHORIZATION, + 3 => HTTP_FIELD_CONNECTION, + 4 => HTTP_FIELD_CONTENT_ENCODING, + 5 => HTTP_FIELD_CONTENT_LANGUAGE, + 6 => HTTP_FIELD_CONTENT_LENGTH, + 7 => HTTP_FIELD_CONTENT_LOCATION, + 8 => HTTP_FIELD_CONTENT_MD5, + 9 => HTTP_FIELD_CONTENT_RANGE, + 10 => HTTP_FIELD_CONTENT_TYPE, + 11 => HTTP_FIELD_CONTENT_VERSION, + 12 => HTTP_FIELD_DATE, + 13 => HTTP_FIELD_HOST, + 14 => HTTP_FIELD_IF_MODIFIED_SINCE, + 15 => HTTP_FIELD_IF_UNMODIFIED_SINCE, + 16 => HTTP_FIELD_KEEP_ALIVE, + 17 => HTTP_FIELD_LAST_MODIFIED, + 18 => HTTP_FIELD_LINK, + 19 => HTTP_FIELD_LOCATION, + 20 => HTTP_FIELD_RANGE, + 21 => HTTP_FIELD_REFERER, + 22 => HTTP_FIELD_RETRY_AFTER, + 23 => HTTP_FIELD_TRANSFER_ENCODING, + 24 => HTTP_FIELD_UPGRADE, + 25 => HTTP_FIELD_USER_AGENT, + 26 => HTTP_FIELD_WWW_AUTHENTICATE, + 27 => HTTP_FIELD_ACCEPT_ENCODING, + 28 => HTTP_FIELD_ALLOW, + 29 => HTTP_FIELD_SERVER, + 30 => HTTP_FIELD_AUTHENTICATION_INFO, + 31 => HTTP_FIELD_MAX, + _ => throw ArgumentError('Unknown value for http_field_e: $value'), + }; +} + +enum http_keepalive_e { + HTTP_KEEPALIVE_OFF(0), + HTTP_KEEPALIVE_ON(1); + + final int value; + const http_keepalive_e(this.value); + + static http_keepalive_e fromValue(int value) => switch (value) { + 0 => HTTP_KEEPALIVE_OFF, + 1 => HTTP_KEEPALIVE_ON, + _ => throw ArgumentError('Unknown value for http_keepalive_e: $value'), + }; +} + +enum http_state_e { + HTTP_STATE_ERROR(-1), + HTTP_STATE_WAITING(0), + HTTP_STATE_OPTIONS(1), + HTTP_STATE_GET(2), + HTTP_STATE_GET_SEND(3), + HTTP_STATE_HEAD(4), + HTTP_STATE_POST(5), + HTTP_STATE_POST_RECV(6), + HTTP_STATE_POST_SEND(7), + HTTP_STATE_PUT(8), + HTTP_STATE_PUT_RECV(9), + HTTP_STATE_DELETE(10), + HTTP_STATE_TRACE(11), + HTTP_STATE_CONNECT(12), + HTTP_STATE_STATUS(13), + HTTP_STATE_UNKNOWN_METHOD(14), + HTTP_STATE_UNKNOWN_VERSION(15); + + final int value; + const http_state_e(this.value); + + static http_state_e fromValue(int value) => switch (value) { + -1 => HTTP_STATE_ERROR, + 0 => HTTP_STATE_WAITING, + 1 => HTTP_STATE_OPTIONS, + 2 => HTTP_STATE_GET, + 3 => HTTP_STATE_GET_SEND, + 4 => HTTP_STATE_HEAD, + 5 => HTTP_STATE_POST, + 6 => HTTP_STATE_POST_RECV, + 7 => HTTP_STATE_POST_SEND, + 8 => HTTP_STATE_PUT, + 9 => HTTP_STATE_PUT_RECV, + 10 => HTTP_STATE_DELETE, + 11 => HTTP_STATE_TRACE, + 12 => HTTP_STATE_CONNECT, + 13 => HTTP_STATE_STATUS, + 14 => HTTP_STATE_UNKNOWN_METHOD, + 15 => HTTP_STATE_UNKNOWN_VERSION, + _ => throw ArgumentError('Unknown value for http_state_e: $value'), + }; +} + +enum http_status_e { + HTTP_STATUS_ERROR(-1), + HTTP_STATUS_NONE(0), + HTTP_STATUS_CONTINUE(100), + HTTP_STATUS_SWITCHING_PROTOCOLS(101), + HTTP_STATUS_OK(200), + HTTP_STATUS_CREATED(201), + HTTP_STATUS_ACCEPTED(202), + HTTP_STATUS_NOT_AUTHORITATIVE(203), + HTTP_STATUS_NO_CONTENT(204), + HTTP_STATUS_RESET_CONTENT(205), + HTTP_STATUS_PARTIAL_CONTENT(206), + HTTP_STATUS_MULTIPLE_CHOICES(300), + HTTP_STATUS_MOVED_PERMANENTLY(301), + HTTP_STATUS_FOUND(302), + HTTP_STATUS_SEE_OTHER(303), + HTTP_STATUS_NOT_MODIFIED(304), + HTTP_STATUS_USE_PROXY(305), + HTTP_STATUS_TEMPORARY_REDIRECT(307), + HTTP_STATUS_BAD_REQUEST(400), + HTTP_STATUS_UNAUTHORIZED(401), + HTTP_STATUS_PAYMENT_REQUIRED(402), + HTTP_STATUS_FORBIDDEN(403), + HTTP_STATUS_NOT_FOUND(404), + HTTP_STATUS_METHOD_NOT_ALLOWED(405), + HTTP_STATUS_NOT_ACCEPTABLE(406), + HTTP_STATUS_PROXY_AUTHENTICATION(407), + HTTP_STATUS_REQUEST_TIMEOUT(408), + HTTP_STATUS_CONFLICT(409), + HTTP_STATUS_GONE(410), + HTTP_STATUS_LENGTH_REQUIRED(411), + HTTP_STATUS_PRECONDITION(412), + HTTP_STATUS_REQUEST_TOO_LARGE(413), + HTTP_STATUS_URI_TOO_LONG(414), + HTTP_STATUS_UNSUPPORTED_MEDIATYPE(415), + HTTP_STATUS_REQUESTED_RANGE(416), + HTTP_STATUS_EXPECTATION_FAILED(417), + HTTP_STATUS_UPGRADE_REQUIRED(426), + HTTP_STATUS_SERVER_ERROR(500), + HTTP_STATUS_NOT_IMPLEMENTED(501), + HTTP_STATUS_BAD_GATEWAY(502), + HTTP_STATUS_SERVICE_UNAVAILABLE(503), + HTTP_STATUS_GATEWAY_TIMEOUT(504), + HTTP_STATUS_NOT_SUPPORTED(505), + HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED(1000), + HTTP_STATUS_CUPS_PKI_ERROR(1001), + HTTP_STATUS_CUPS_WEBIF_DISABLED(1002); + + final int value; + const http_status_e(this.value); + + static http_status_e fromValue(int value) => switch (value) { + -1 => HTTP_STATUS_ERROR, + 0 => HTTP_STATUS_NONE, + 100 => HTTP_STATUS_CONTINUE, + 101 => HTTP_STATUS_SWITCHING_PROTOCOLS, + 200 => HTTP_STATUS_OK, + 201 => HTTP_STATUS_CREATED, + 202 => HTTP_STATUS_ACCEPTED, + 203 => HTTP_STATUS_NOT_AUTHORITATIVE, + 204 => HTTP_STATUS_NO_CONTENT, + 205 => HTTP_STATUS_RESET_CONTENT, + 206 => HTTP_STATUS_PARTIAL_CONTENT, + 300 => HTTP_STATUS_MULTIPLE_CHOICES, + 301 => HTTP_STATUS_MOVED_PERMANENTLY, + 302 => HTTP_STATUS_FOUND, + 303 => HTTP_STATUS_SEE_OTHER, + 304 => HTTP_STATUS_NOT_MODIFIED, + 305 => HTTP_STATUS_USE_PROXY, + 307 => HTTP_STATUS_TEMPORARY_REDIRECT, + 400 => HTTP_STATUS_BAD_REQUEST, + 401 => HTTP_STATUS_UNAUTHORIZED, + 402 => HTTP_STATUS_PAYMENT_REQUIRED, + 403 => HTTP_STATUS_FORBIDDEN, + 404 => HTTP_STATUS_NOT_FOUND, + 405 => HTTP_STATUS_METHOD_NOT_ALLOWED, + 406 => HTTP_STATUS_NOT_ACCEPTABLE, + 407 => HTTP_STATUS_PROXY_AUTHENTICATION, + 408 => HTTP_STATUS_REQUEST_TIMEOUT, + 409 => HTTP_STATUS_CONFLICT, + 410 => HTTP_STATUS_GONE, + 411 => HTTP_STATUS_LENGTH_REQUIRED, + 412 => HTTP_STATUS_PRECONDITION, + 413 => HTTP_STATUS_REQUEST_TOO_LARGE, + 414 => HTTP_STATUS_URI_TOO_LONG, + 415 => HTTP_STATUS_UNSUPPORTED_MEDIATYPE, + 416 => HTTP_STATUS_REQUESTED_RANGE, + 417 => HTTP_STATUS_EXPECTATION_FAILED, + 426 => HTTP_STATUS_UPGRADE_REQUIRED, + 500 => HTTP_STATUS_SERVER_ERROR, + 501 => HTTP_STATUS_NOT_IMPLEMENTED, + 502 => HTTP_STATUS_BAD_GATEWAY, + 503 => HTTP_STATUS_SERVICE_UNAVAILABLE, + 504 => HTTP_STATUS_GATEWAY_TIMEOUT, + 505 => HTTP_STATUS_NOT_SUPPORTED, + 1000 => HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED, + 1001 => HTTP_STATUS_CUPS_PKI_ERROR, + 1002 => HTTP_STATUS_CUPS_WEBIF_DISABLED, + _ => throw ArgumentError('Unknown value for http_status_e: $value'), + }; +} + +typedef http_t = _http_s; +typedef http_timeout_cb_t = + ffi.Pointer>; +typedef http_timeout_cb_tFunction = + ffi.Int Function(ffi.Pointer http, ffi.Pointer user_data); +typedef Darthttp_timeout_cb_tFunction = + int Function(ffi.Pointer http, ffi.Pointer user_data); + +enum http_trust_e { + HTTP_TRUST_OK(0), + HTTP_TRUST_INVALID(1), + HTTP_TRUST_CHANGED(2), + HTTP_TRUST_EXPIRED(3), + HTTP_TRUST_RENEWED(4), + HTTP_TRUST_UNKNOWN(5); + + final int value; + const http_trust_e(this.value); + + static http_trust_e fromValue(int value) => switch (value) { + 0 => HTTP_TRUST_OK, + 1 => HTTP_TRUST_INVALID, + 2 => HTTP_TRUST_CHANGED, + 3 => HTTP_TRUST_EXPIRED, + 4 => HTTP_TRUST_RENEWED, + 5 => HTTP_TRUST_UNKNOWN, + _ => throw ArgumentError('Unknown value for http_trust_e: $value'), + }; +} + +enum http_uri_coding_e { + HTTP_URI_CODING_NONE(0), + HTTP_URI_CODING_USERNAME(1), + HTTP_URI_CODING_HOSTNAME(2), + HTTP_URI_CODING_RESOURCE(4), + HTTP_URI_CODING_MOST(7), + HTTP_URI_CODING_QUERY(8), + HTTP_URI_CODING_ALL(15), + HTTP_URI_CODING_RFC6874(16); + + final int value; + const http_uri_coding_e(this.value); + + static http_uri_coding_e fromValue(int value) => switch (value) { + 0 => HTTP_URI_CODING_NONE, + 1 => HTTP_URI_CODING_USERNAME, + 2 => HTTP_URI_CODING_HOSTNAME, + 4 => HTTP_URI_CODING_RESOURCE, + 7 => HTTP_URI_CODING_MOST, + 8 => HTTP_URI_CODING_QUERY, + 15 => HTTP_URI_CODING_ALL, + 16 => HTTP_URI_CODING_RFC6874, + _ => throw ArgumentError('Unknown value for http_uri_coding_e: $value'), + }; +} + +enum http_uri_status_e { + HTTP_URI_STATUS_OVERFLOW(-8), + HTTP_URI_STATUS_BAD_ARGUMENTS(-7), + HTTP_URI_STATUS_BAD_RESOURCE(-6), + HTTP_URI_STATUS_BAD_PORT(-5), + HTTP_URI_STATUS_BAD_HOSTNAME(-4), + HTTP_URI_STATUS_BAD_USERNAME(-3), + HTTP_URI_STATUS_BAD_SCHEME(-2), + HTTP_URI_STATUS_BAD_URI(-1), + HTTP_URI_STATUS_OK(0), + HTTP_URI_STATUS_MISSING_SCHEME(1), + HTTP_URI_STATUS_UNKNOWN_SCHEME(2), + HTTP_URI_STATUS_MISSING_RESOURCE(3); + + final int value; + const http_uri_status_e(this.value); + + static http_uri_status_e fromValue(int value) => switch (value) { + -8 => HTTP_URI_STATUS_OVERFLOW, + -7 => HTTP_URI_STATUS_BAD_ARGUMENTS, + -6 => HTTP_URI_STATUS_BAD_RESOURCE, + -5 => HTTP_URI_STATUS_BAD_PORT, + -4 => HTTP_URI_STATUS_BAD_HOSTNAME, + -3 => HTTP_URI_STATUS_BAD_USERNAME, + -2 => HTTP_URI_STATUS_BAD_SCHEME, + -1 => HTTP_URI_STATUS_BAD_URI, + 0 => HTTP_URI_STATUS_OK, + 1 => HTTP_URI_STATUS_MISSING_SCHEME, + 2 => HTTP_URI_STATUS_UNKNOWN_SCHEME, + 3 => HTTP_URI_STATUS_MISSING_RESOURCE, + _ => throw ArgumentError('Unknown value for http_uri_status_e: $value'), + }; +} + +enum http_version_e { + HTTP_VERSION_0_9(9), + HTTP_VERSION_1_0(100), + HTTP_VERSION_1_1(101); + + final int value; + const http_version_e(this.value); + + static http_version_e fromValue(int value) => switch (value) { + 9 => HTTP_VERSION_0_9, + 100 => HTTP_VERSION_1_0, + 101 => HTTP_VERSION_1_1, + _ => throw ArgumentError('Unknown value for http_version_e: $value'), + }; +} + +const int hwParamErr = -502; + +const int iIOAbort = -27; + +const int iIOAbortErr = -27; + +const int iMemFullErr = -108; + +const int icConfigInappropriateErr = -675; + +const int icConfigNotFoundErr = -674; + +const int icInternalErr = -669; + +const int icNoMoreWritersErr = -671; + +const int icNoPerm = 0; + +const int icNoURLErr = -673; + +const int icNothingToOverrideErr = -672; + +const int icPermErr = -667; + +const int icPrefDataErr = -668; + +const int icPrefNotFoundErr = -666; + +const int icProfileNotFoundErr = -676; + +const int icReadOnlyPerm = 1; + +const int icReadWritePerm = 2; + +const int icTooManyProfilesErr = -677; + +const int icTruncatedErr = -670; + +typedef id_t = __darwin_id_t; + +enum idtype_t { + P_ALL(0), + P_PID(1), + P_PGID(2); + + final int value; + const idtype_t(this.value); + + static idtype_t fromValue(int value) => switch (value) { + 0 => P_ALL, + 1 => P_PID, + 2 => P_PGID, + _ => throw ArgumentError('Unknown value for idtype_t: $value'), + }; +} + +const int illegalChannelOSErr = -2076; + +const int illegalControllerOSErr = -2080; + +const int illegalInstrumentOSErr = -2079; + +const int illegalKnobOSErr = -2077; + +const int illegalKnobValueOSErr = -2078; + +const int illegalNoteChannelOSErr = -2084; + +const int illegalPartOSErr = -2075; + +const int illegalScrapFlavorFlagsErr = -4997; + +const int illegalScrapFlavorSizeErr = -4999; + +const int illegalScrapFlavorTypeErr = -4998; + +const int illegalVoiceAllocationOSErr = -2074; + +final class imaxdiv_t extends ffi.Struct { + @intmax_t() + external int quot; + + @intmax_t() + external int rem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int quot, + required int rem, + }) => $allocator() + ..ref.quot = quot + ..ref.rem = rem; +} + +final class in6_addr extends ffi.Struct { + external UnnamedUnion$5 __u6_addr; +} + +typedef in6_addr_t = in6_addr; + +final class in6_pktinfo extends ffi.Struct { + external in6_addr ipi6_addr; + + @ffi.UnsignedInt() + external int ipi6_ifindex; +} + +final class in_addr extends ffi.Struct { + @in_addr_t() + external int s_addr; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int s_addr, + }) => $allocator()..ref.s_addr = s_addr; +} + +typedef in_addr_t = __uint32_t; + +final class in_pktinfo extends ffi.Struct { + @ffi.UnsignedInt() + external int ipi_ifindex; + + external in_addr ipi_spec_dst; + + external in_addr ipi_addr; +} + +typedef in_port_t = __uint16_t; + +const int incompatibleVoice = -245; + +const int initDev = 0; + +const int initIWMErr = -77; + +typedef ino64_t = __darwin_ino64_t; +typedef ino_t = __darwin_ino_t; + +const int inputOutOfBounds = -190; + +typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = objc.ObjCObject; + +const int insufficientStackErr = -149; + +@Deprecated('Deprecated') +const int intArabic = 1; + +@Deprecated('Deprecated') +const int intEuropean = 4; + +@Deprecated('Deprecated') +const int intJapanese = 3; + +@Deprecated('Deprecated') +const int intOutputMask = 32768; + +@Deprecated('Deprecated') +const int intRoman = 2; + +@Deprecated('Deprecated') +const int intWestern = 0; + +typedef int_fast16_t = ffi.Int16; +typedef Dartint_fast16_t = int; +typedef int_fast32_t = ffi.Int32; +typedef Dartint_fast32_t = int; +typedef int_fast64_t = ffi.Int64; +typedef Dartint_fast64_t = int; +typedef int_fast8_t = ffi.Int8; +typedef Dartint_fast8_t = int; +typedef int_least16_t = ffi.Int16; +typedef Dartint_least16_t = int; +typedef int_least32_t = ffi.Int32; +typedef Dartint_least32_t = int; +typedef int_least64_t = ffi.Int64; +typedef Dartint_least64_t = int; +typedef int_least8_t = ffi.Int8; +typedef Dartint_least8_t = int; +typedef integer_t = ffi.Int; +typedef Dartinteger_t = int; + +const int internalComponentErr = -2070; + +const int internalQuickTimeError = -2034; + +const int internalScrapErr = -4988; + +const int interruptsMaskedErr = -624; + +@Deprecated('Deprecated') +const int intlCurrency = 219; + +typedef intmax_t = ffi.Long; +typedef Dartintmax_t = int; + +const int invalidAtomContainerErr = -2107; + +const int invalidAtomErr = -2106; + +const int invalidAtomTypeErr = -2108; + +const int invalidChunkCache = -2040; + +const int invalidChunkNum = -2038; + +const int invalidComponentID = -3000; + +const int invalidDataRef = -2012; + +const int invalidDataRefContainer = -2049; + +const int invalidDuration = -2014; + +const int invalidEditState = -2023; + +const int invalidFolderTypeErr = -4273; + +const int invalidHandler = -2013; + +const int invalidHotSpotIDErr = -30551; + +const int invalidIconRefErr = -2580; + +const int invalidImageIndexErr = -2068; + +const int invalidIndexErr = -20002; + +const int invalidMedia = -2008; + +const int invalidMovie = -2010; + +const int invalidNodeFormatErr = -30550; + +const int invalidNodeIDErr = -30544; + +const int invalidPickerType = -4000; + +const int invalidRect = -2036; + +const int invalidSampleDescIndex = -2039; + +const int invalidSampleDescription = -2041; + +const int invalidSampleNum = -2037; + +const int invalidSampleTable = -2011; + +const int invalidSpriteIDErr = -2069; + +const int invalidSpriteIndexErr = -2067; + +const int invalidSpritePropertyErr = -2065; + +const int invalidSpriteWorldPropertyErr = -2064; + +const int invalidTime = -2015; + +const int invalidTrack = -2009; + +const int invalidTranslationPathErr = -3025; + +const int invalidViewStateErr = -30545; + +const int ioDirFlg = 4; + +const int ioDirMask = 16; + +const int ioErr = -36; + +@Deprecated('Deprecated') +const int ioQType = 2; + +typedef io_buf_ptr_t = ffi.Pointer; +typedef io_connect_t = io_object_t; +typedef io_enumerator_t = io_object_t; +typedef io_ident_t = io_object_t; +typedef io_iterator_t = io_object_t; +typedef io_main_t = mach_port_t; +typedef io_object_t = mach_port_t; +typedef io_registry_entry_t = io_object_t; +typedef io_service_t = io_object_t; + +final class io_stat_entry extends ffi.Struct { + @ffi.Uint64() + external int count; + + @ffi.Uint64() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required int size, + }) => $allocator() + ..ref.count = count + ..ref.size = size; +} + +final class io_stat_info extends ffi.Struct { + external io_stat_entry disk_reads; + + @ffi.Array.multi([4]) + external ffi.Array io_priority; + + external io_stat_entry paging; + + external io_stat_entry metadata; + + external io_stat_entry total_io; +} + +typedef io_stat_info_t = ffi.Pointer; +typedef io_user_reference_t = ffi.Uint64; +typedef Dartio_user_reference_t = int; +typedef io_user_scalar_t = ffi.Uint64; +typedef Dartio_user_scalar_t = int; + +final class iovec extends ffi.Struct { + external ffi.Pointer iov_base; + + @ffi.Size() + external int iov_len; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer iov_base, + required int iov_len, + }) => $allocator() + ..ref.iov_base = iov_base + ..ref.iov_len = iov_len; +} + +final class ip extends ffi.Opaque {} + +final class ip6_mtuinfo extends ffi.Struct { + external sockaddr_in6 ip6m_addr; + + @ffi.Uint32() + external int ip6m_mtu; +} + +final class ip_mreq extends ffi.Struct { + external in_addr imr_multiaddr; + + external in_addr imr_interface; +} + +final class ip_mreq_source extends ffi.Struct { + external in_addr imr_multiaddr; + + external in_addr imr_sourceaddr; + + external in_addr imr_interface; +} + +final class ip_mreqn extends ffi.Struct { + external in_addr imr_multiaddr; + + external in_addr imr_address; + + @ffi.Int() + external int imr_ifindex; +} + +final class ip_opts extends ffi.Struct { + external in_addr ip_dst; + + @ffi.Array.multi([40]) + external ffi.Array ip_opts$1; +} + +final class ip_timestamp extends ffi.Opaque {} + +typedef ipc_eventlink_t = mach_port_t; + +final class ipc_info_name extends ffi.Struct { + @mach_port_name_t() + external int iin_name; + + @integer_t() + external int iin_collision; + + @mach_port_type_t() + external int iin_type; + + @mach_port_urefs_t() + external int iin_urefs; + + @natural_t() + external int iin_object; + + @natural_t() + external int iin_next; + + @natural_t() + external int iin_hash; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iin_name, + required int iin_collision, + required int iin_type, + required int iin_urefs, + required int iin_object, + required int iin_next, + required int iin_hash, + }) => $allocator() + ..ref.iin_name = iin_name + ..ref.iin_collision = iin_collision + ..ref.iin_type = iin_type + ..ref.iin_urefs = iin_urefs + ..ref.iin_object = iin_object + ..ref.iin_next = iin_next + ..ref.iin_hash = iin_hash; +} + +typedef ipc_info_name_array_t = ffi.Pointer; +typedef ipc_info_name_t = ipc_info_name; + +enum ipc_info_object_type_t { + IPC_OTYPE_NONE(0), + IPC_OTYPE_THREAD_CONTROL(1), + IPC_OTYPE_TASK_CONTROL(2), + IPC_OTYPE_HOST(3), + IPC_OTYPE_HOST_PRIV(4), + IPC_OTYPE_PROCESSOR(5), + IPC_OTYPE_PROCESSOR_SET(6), + IPC_OTYPE_PROCESSOR_SET_NAME(7), + IPC_OTYPE_TIMER(8), + IPC_OTYPE_PORT_SUBST_ONCE(9), + IPC_OTYPE_MIG(10), + IPC_OTYPE_MEMORY_OBJECT(11), + IPC_OTYPE_XMM_PAGER(12), + IPC_OTYPE_XMM_KERNEL(13), + IPC_OTYPE_XMM_REPLY(14), + IPC_OTYPE_UND_REPLY(15), + IPC_OTYPE_HOST_NOTIFY(16), + IPC_OTYPE_HOST_SECURITY(17), + IPC_OTYPE_LEDGER(18), + IPC_OTYPE_MAIN_DEVICE(19), + IPC_OTYPE_TASK_NAME(20), + IPC_OTYPE_SUBSYSTEM(21), + IPC_OTYPE_IO_DONE_QUEUE(22), + IPC_OTYPE_SEMAPHORE(23), + IPC_OTYPE_LOCK_SET(24), + IPC_OTYPE_CLOCK(25), + IPC_OTYPE_CLOCK_CTRL(26), + IPC_OTYPE_IOKIT_IDENT(27), + IPC_OTYPE_NAMED_ENTRY(28), + IPC_OTYPE_IOKIT_CONNECT(29), + IPC_OTYPE_IOKIT_OBJECT(30), + IPC_OTYPE_UPL(31), + IPC_OTYPE_MEM_OBJ_CONTROL(32), + IPC_OTYPE_AU_SESSIONPORT(33), + IPC_OTYPE_FILEPORT(34), + IPC_OTYPE_LABELH(35), + IPC_OTYPE_TASK_RESUME(36), + IPC_OTYPE_VOUCHER(37), + IPC_OTYPE_VOUCHER_ATTR_CONTROL(38), + IPC_OTYPE_WORK_INTERVAL(39), + IPC_OTYPE_UX_HANDLER(40), + IPC_OTYPE_UEXT_OBJECT(41), + IPC_OTYPE_ARCADE_REG(42), + IPC_OTYPE_EVENTLINK(43), + IPC_OTYPE_TASK_INSPECT(44), + IPC_OTYPE_TASK_READ(45), + IPC_OTYPE_THREAD_INSPECT(46), + IPC_OTYPE_THREAD_READ(47), + IPC_OTYPE_SUID_CRED(48), + IPC_OTYPE_HYPERVISOR(49), + IPC_OTYPE_TASK_ID_TOKEN(50), + IPC_OTYPE_TASK_FATAL(51), + IPC_OTYPE_KCDATA(52), + IPC_OTYPE_EXCLAVES_RESOURCE(53), + IPC_OTYPE_UNKNOWN(-1); + + final int value; + const ipc_info_object_type_t(this.value); + + static ipc_info_object_type_t fromValue(int value) => switch (value) { + 0 => IPC_OTYPE_NONE, + 1 => IPC_OTYPE_THREAD_CONTROL, + 2 => IPC_OTYPE_TASK_CONTROL, + 3 => IPC_OTYPE_HOST, + 4 => IPC_OTYPE_HOST_PRIV, + 5 => IPC_OTYPE_PROCESSOR, + 6 => IPC_OTYPE_PROCESSOR_SET, + 7 => IPC_OTYPE_PROCESSOR_SET_NAME, + 8 => IPC_OTYPE_TIMER, + 9 => IPC_OTYPE_PORT_SUBST_ONCE, + 10 => IPC_OTYPE_MIG, + 11 => IPC_OTYPE_MEMORY_OBJECT, + 12 => IPC_OTYPE_XMM_PAGER, + 13 => IPC_OTYPE_XMM_KERNEL, + 14 => IPC_OTYPE_XMM_REPLY, + 15 => IPC_OTYPE_UND_REPLY, + 16 => IPC_OTYPE_HOST_NOTIFY, + 17 => IPC_OTYPE_HOST_SECURITY, + 18 => IPC_OTYPE_LEDGER, + 19 => IPC_OTYPE_MAIN_DEVICE, + 20 => IPC_OTYPE_TASK_NAME, + 21 => IPC_OTYPE_SUBSYSTEM, + 22 => IPC_OTYPE_IO_DONE_QUEUE, + 23 => IPC_OTYPE_SEMAPHORE, + 24 => IPC_OTYPE_LOCK_SET, + 25 => IPC_OTYPE_CLOCK, + 26 => IPC_OTYPE_CLOCK_CTRL, + 27 => IPC_OTYPE_IOKIT_IDENT, + 28 => IPC_OTYPE_NAMED_ENTRY, + 29 => IPC_OTYPE_IOKIT_CONNECT, + 30 => IPC_OTYPE_IOKIT_OBJECT, + 31 => IPC_OTYPE_UPL, + 32 => IPC_OTYPE_MEM_OBJ_CONTROL, + 33 => IPC_OTYPE_AU_SESSIONPORT, + 34 => IPC_OTYPE_FILEPORT, + 35 => IPC_OTYPE_LABELH, + 36 => IPC_OTYPE_TASK_RESUME, + 37 => IPC_OTYPE_VOUCHER, + 38 => IPC_OTYPE_VOUCHER_ATTR_CONTROL, + 39 => IPC_OTYPE_WORK_INTERVAL, + 40 => IPC_OTYPE_UX_HANDLER, + 41 => IPC_OTYPE_UEXT_OBJECT, + 42 => IPC_OTYPE_ARCADE_REG, + 43 => IPC_OTYPE_EVENTLINK, + 44 => IPC_OTYPE_TASK_INSPECT, + 45 => IPC_OTYPE_TASK_READ, + 46 => IPC_OTYPE_THREAD_INSPECT, + 47 => IPC_OTYPE_THREAD_READ, + 48 => IPC_OTYPE_SUID_CRED, + 49 => IPC_OTYPE_HYPERVISOR, + 50 => IPC_OTYPE_TASK_ID_TOKEN, + 51 => IPC_OTYPE_TASK_FATAL, + 52 => IPC_OTYPE_KCDATA, + 53 => IPC_OTYPE_EXCLAVES_RESOURCE, + -1 => IPC_OTYPE_UNKNOWN, + _ => throw ArgumentError( + 'Unknown value for ipc_info_object_type_t: $value', + ), + }; +} + +final class ipc_info_port extends ffi.Struct { + @natural_t() + external int iip_port_object; + + @natural_t() + external int iip_receiver_object; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iip_port_object, + required int iip_receiver_object, + }) => $allocator() + ..ref.iip_port_object = iip_port_object + ..ref.iip_receiver_object = iip_receiver_object; +} + +typedef ipc_info_port_t = ipc_info_port; + +final class ipc_info_space extends ffi.Struct { + @natural_t() + external int iis_genno_mask; + + @natural_t() + external int iis_table_size; + + @natural_t() + external int iis_table_next; + + @natural_t() + external int iis_tree_size; + + @natural_t() + external int iis_tree_small; + + @natural_t() + external int iis_tree_hash; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iis_genno_mask, + required int iis_table_size, + required int iis_table_next, + required int iis_tree_size, + required int iis_tree_small, + required int iis_tree_hash, + }) => $allocator() + ..ref.iis_genno_mask = iis_genno_mask + ..ref.iis_table_size = iis_table_size + ..ref.iis_table_next = iis_table_next + ..ref.iis_tree_size = iis_tree_size + ..ref.iis_tree_small = iis_tree_small + ..ref.iis_tree_hash = iis_tree_hash; +} + +final class ipc_info_space_basic extends ffi.Struct { + @natural_t() + external int iisb_genno_mask; + + @natural_t() + external int iisb_table_size; + + @natural_t() + external int iisb_table_next; + + @natural_t() + external int iisb_table_inuse; + + @ffi.Array.multi([2]) + external ffi.Array iisb_reserved; +} + +typedef ipc_info_space_basic_t = ipc_info_space_basic; +typedef ipc_info_space_t = ipc_info_space; + +final class ipc_info_tree_name extends ffi.Struct { + external ipc_info_name_t iitn_name; + + @mach_port_name_t() + external int iitn_lchild; + + @mach_port_name_t() + external int iitn_rchild; +} + +typedef ipc_info_tree_name_array_t = ffi.Pointer; +typedef ipc_info_tree_name_t = ipc_info_tree_name; +typedef ipc_space_inspect_t = mach_port_t; +typedef ipc_space_port_t = ipc_space_t; +typedef ipc_space_read_t = mach_port_t; +typedef ipc_space_t = mach_port_t; +typedef ipc_voucher_attr_control_t = mach_port_t; +typedef ipc_voucher_attr_manager_t = mach_port_t; +typedef ipc_voucher_t = mach_voucher_t; +typedef ipp_attribute_t = _ipp_attribute_s; +typedef ipp_copycb_t = ffi.Pointer>; +typedef ipp_copycb_tFunction = + ffi.Int Function( + ffi.Pointer context, + ffi.Pointer dst, + ffi.Pointer attr, + ); +typedef Dartipp_copycb_tFunction = + int Function( + ffi.Pointer context, + ffi.Pointer dst, + ffi.Pointer attr, + ); + +enum ipp_dstate_e { + IPP_DSTATE_PENDING(3), + IPP_DSTATE_PROCESSING(5), + IPP_DSTATE_CANCELED(7), + IPP_DSTATE_ABORTED(8), + IPP_DSTATE_COMPLETED(9); + + final int value; + const ipp_dstate_e(this.value); + + static ipp_dstate_e fromValue(int value) => switch (value) { + 3 => IPP_DSTATE_PENDING, + 5 => IPP_DSTATE_PROCESSING, + 7 => IPP_DSTATE_CANCELED, + 8 => IPP_DSTATE_ABORTED, + 9 => IPP_DSTATE_COMPLETED, + _ => throw ArgumentError('Unknown value for ipp_dstate_e: $value'), + }; +} + +enum ipp_finishings_e { + IPP_FINISHINGS_NONE(3), + IPP_FINISHINGS_STAPLE(4), + IPP_FINISHINGS_PUNCH(5), + IPP_FINISHINGS_COVER(6), + IPP_FINISHINGS_BIND(7), + IPP_FINISHINGS_SADDLE_STITCH(8), + IPP_FINISHINGS_EDGE_STITCH(9), + IPP_FINISHINGS_FOLD(10), + IPP_FINISHINGS_TRIM(11), + IPP_FINISHINGS_BALE(12), + IPP_FINISHINGS_BOOKLET_MAKER(13), + IPP_FINISHINGS_JOG_OFFSET(14), + IPP_FINISHINGS_COAT(15), + IPP_FINISHINGS_LAMINATE(16), + IPP_FINISHINGS_STAPLE_TOP_LEFT(20), + IPP_FINISHINGS_STAPLE_BOTTOM_LEFT(21), + IPP_FINISHINGS_STAPLE_TOP_RIGHT(22), + IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT(23), + IPP_FINISHINGS_EDGE_STITCH_LEFT(24), + IPP_FINISHINGS_EDGE_STITCH_TOP(25), + IPP_FINISHINGS_EDGE_STITCH_RIGHT(26), + IPP_FINISHINGS_EDGE_STITCH_BOTTOM(27), + IPP_FINISHINGS_STAPLE_DUAL_LEFT(28), + IPP_FINISHINGS_STAPLE_DUAL_TOP(29), + IPP_FINISHINGS_STAPLE_DUAL_RIGHT(30), + IPP_FINISHINGS_STAPLE_DUAL_BOTTOM(31), + IPP_FINISHINGS_STAPLE_TRIPLE_LEFT(32), + IPP_FINISHINGS_STAPLE_TRIPLE_TOP(33), + IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT(34), + IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM(35), + IPP_FINISHINGS_BIND_LEFT(50), + IPP_FINISHINGS_BIND_TOP(51), + IPP_FINISHINGS_BIND_RIGHT(52), + IPP_FINISHINGS_BIND_BOTTOM(53), + IPP_FINISHINGS_TRIM_AFTER_PAGES(60), + IPP_FINISHINGS_TRIM_AFTER_DOCUMENTS(61), + IPP_FINISHINGS_TRIM_AFTER_COPIES(62), + IPP_FINISHINGS_TRIM_AFTER_JOB(63), + IPP_FINISHINGS_PUNCH_TOP_LEFT(70), + IPP_FINISHINGS_PUNCH_BOTTOM_LEFT(71), + IPP_FINISHINGS_PUNCH_TOP_RIGHT(72), + IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT(73), + IPP_FINISHINGS_PUNCH_DUAL_LEFT(74), + IPP_FINISHINGS_PUNCH_DUAL_TOP(75), + IPP_FINISHINGS_PUNCH_DUAL_RIGHT(76), + IPP_FINISHINGS_PUNCH_DUAL_BOTTOM(77), + IPP_FINISHINGS_PUNCH_TRIPLE_LEFT(78), + IPP_FINISHINGS_PUNCH_TRIPLE_TOP(79), + IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT(80), + IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM(81), + IPP_FINISHINGS_PUNCH_QUAD_LEFT(82), + IPP_FINISHINGS_PUNCH_QUAD_TOP(83), + IPP_FINISHINGS_PUNCH_QUAD_RIGHT(84), + IPP_FINISHINGS_PUNCH_QUAD_BOTTOM(85), + IPP_FINISHINGS_PUNCH_MULTIPLE_LEFT(86), + IPP_FINISHINGS_PUNCH_MULTIPLE_TOP(87), + IPP_FINISHINGS_PUNCH_MULTIPLE_RIGHT(88), + IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM(89), + IPP_FINISHINGS_FOLD_ACCORDION(90), + IPP_FINISHINGS_FOLD_DOUBLE_GATE(91), + IPP_FINISHINGS_FOLD_GATE(92), + IPP_FINISHINGS_FOLD_HALF(93), + IPP_FINISHINGS_FOLD_HALF_Z(94), + IPP_FINISHINGS_FOLD_LEFT_GATE(95), + IPP_FINISHINGS_FOLD_LETTER(96), + IPP_FINISHINGS_FOLD_PARALLEL(97), + IPP_FINISHINGS_FOLD_POSTER(98), + IPP_FINISHINGS_FOLD_RIGHT_GATE(99), + IPP_FINISHINGS_FOLD_Z(100), + IPP_FINISHINGS_FOLD_ENGINEERING_Z(101), + IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT(1073741894), + IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_LEFT(1073741895), + IPP_FINISHINGS_CUPS_PUNCH_TOP_RIGHT(1073741896), + IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_RIGHT(1073741897), + IPP_FINISHINGS_CUPS_PUNCH_DUAL_LEFT(1073741898), + IPP_FINISHINGS_CUPS_PUNCH_DUAL_TOP(1073741899), + IPP_FINISHINGS_CUPS_PUNCH_DUAL_RIGHT(1073741900), + IPP_FINISHINGS_CUPS_PUNCH_DUAL_BOTTOM(1073741901), + IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_LEFT(1073741902), + IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_TOP(1073741903), + IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_RIGHT(1073741904), + IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_BOTTOM(1073741905), + IPP_FINISHINGS_CUPS_PUNCH_QUAD_LEFT(1073741906), + IPP_FINISHINGS_CUPS_PUNCH_QUAD_TOP(1073741907), + IPP_FINISHINGS_CUPS_PUNCH_QUAD_RIGHT(1073741908), + IPP_FINISHINGS_CUPS_PUNCH_QUAD_BOTTOM(1073741909), + IPP_FINISHINGS_CUPS_FOLD_ACCORDION(1073741914), + IPP_FINISHINGS_CUPS_FOLD_DOUBLE_GATE(1073741915), + IPP_FINISHINGS_CUPS_FOLD_GATE(1073741916), + IPP_FINISHINGS_CUPS_FOLD_HALF(1073741917), + IPP_FINISHINGS_CUPS_FOLD_HALF_Z(1073741918), + IPP_FINISHINGS_CUPS_FOLD_LEFT_GATE(1073741919), + IPP_FINISHINGS_CUPS_FOLD_LETTER(1073741920), + IPP_FINISHINGS_CUPS_FOLD_PARALLEL(1073741921), + IPP_FINISHINGS_CUPS_FOLD_POSTER(1073741922), + IPP_FINISHINGS_CUPS_FOLD_RIGHT_GATE(1073741923), + IPP_FINISHINGS_CUPS_FOLD_Z(1073741924); + + final int value; + const ipp_finishings_e(this.value); + + static ipp_finishings_e fromValue(int value) => switch (value) { + 3 => IPP_FINISHINGS_NONE, + 4 => IPP_FINISHINGS_STAPLE, + 5 => IPP_FINISHINGS_PUNCH, + 6 => IPP_FINISHINGS_COVER, + 7 => IPP_FINISHINGS_BIND, + 8 => IPP_FINISHINGS_SADDLE_STITCH, + 9 => IPP_FINISHINGS_EDGE_STITCH, + 10 => IPP_FINISHINGS_FOLD, + 11 => IPP_FINISHINGS_TRIM, + 12 => IPP_FINISHINGS_BALE, + 13 => IPP_FINISHINGS_BOOKLET_MAKER, + 14 => IPP_FINISHINGS_JOG_OFFSET, + 15 => IPP_FINISHINGS_COAT, + 16 => IPP_FINISHINGS_LAMINATE, + 20 => IPP_FINISHINGS_STAPLE_TOP_LEFT, + 21 => IPP_FINISHINGS_STAPLE_BOTTOM_LEFT, + 22 => IPP_FINISHINGS_STAPLE_TOP_RIGHT, + 23 => IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT, + 24 => IPP_FINISHINGS_EDGE_STITCH_LEFT, + 25 => IPP_FINISHINGS_EDGE_STITCH_TOP, + 26 => IPP_FINISHINGS_EDGE_STITCH_RIGHT, + 27 => IPP_FINISHINGS_EDGE_STITCH_BOTTOM, + 28 => IPP_FINISHINGS_STAPLE_DUAL_LEFT, + 29 => IPP_FINISHINGS_STAPLE_DUAL_TOP, + 30 => IPP_FINISHINGS_STAPLE_DUAL_RIGHT, + 31 => IPP_FINISHINGS_STAPLE_DUAL_BOTTOM, + 32 => IPP_FINISHINGS_STAPLE_TRIPLE_LEFT, + 33 => IPP_FINISHINGS_STAPLE_TRIPLE_TOP, + 34 => IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT, + 35 => IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM, + 50 => IPP_FINISHINGS_BIND_LEFT, + 51 => IPP_FINISHINGS_BIND_TOP, + 52 => IPP_FINISHINGS_BIND_RIGHT, + 53 => IPP_FINISHINGS_BIND_BOTTOM, + 60 => IPP_FINISHINGS_TRIM_AFTER_PAGES, + 61 => IPP_FINISHINGS_TRIM_AFTER_DOCUMENTS, + 62 => IPP_FINISHINGS_TRIM_AFTER_COPIES, + 63 => IPP_FINISHINGS_TRIM_AFTER_JOB, + 70 => IPP_FINISHINGS_PUNCH_TOP_LEFT, + 71 => IPP_FINISHINGS_PUNCH_BOTTOM_LEFT, + 72 => IPP_FINISHINGS_PUNCH_TOP_RIGHT, + 73 => IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT, + 74 => IPP_FINISHINGS_PUNCH_DUAL_LEFT, + 75 => IPP_FINISHINGS_PUNCH_DUAL_TOP, + 76 => IPP_FINISHINGS_PUNCH_DUAL_RIGHT, + 77 => IPP_FINISHINGS_PUNCH_DUAL_BOTTOM, + 78 => IPP_FINISHINGS_PUNCH_TRIPLE_LEFT, + 79 => IPP_FINISHINGS_PUNCH_TRIPLE_TOP, + 80 => IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT, + 81 => IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM, + 82 => IPP_FINISHINGS_PUNCH_QUAD_LEFT, + 83 => IPP_FINISHINGS_PUNCH_QUAD_TOP, + 84 => IPP_FINISHINGS_PUNCH_QUAD_RIGHT, + 85 => IPP_FINISHINGS_PUNCH_QUAD_BOTTOM, + 86 => IPP_FINISHINGS_PUNCH_MULTIPLE_LEFT, + 87 => IPP_FINISHINGS_PUNCH_MULTIPLE_TOP, + 88 => IPP_FINISHINGS_PUNCH_MULTIPLE_RIGHT, + 89 => IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM, + 90 => IPP_FINISHINGS_FOLD_ACCORDION, + 91 => IPP_FINISHINGS_FOLD_DOUBLE_GATE, + 92 => IPP_FINISHINGS_FOLD_GATE, + 93 => IPP_FINISHINGS_FOLD_HALF, + 94 => IPP_FINISHINGS_FOLD_HALF_Z, + 95 => IPP_FINISHINGS_FOLD_LEFT_GATE, + 96 => IPP_FINISHINGS_FOLD_LETTER, + 97 => IPP_FINISHINGS_FOLD_PARALLEL, + 98 => IPP_FINISHINGS_FOLD_POSTER, + 99 => IPP_FINISHINGS_FOLD_RIGHT_GATE, + 100 => IPP_FINISHINGS_FOLD_Z, + 101 => IPP_FINISHINGS_FOLD_ENGINEERING_Z, + 1073741894 => IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT, + 1073741895 => IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_LEFT, + 1073741896 => IPP_FINISHINGS_CUPS_PUNCH_TOP_RIGHT, + 1073741897 => IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_RIGHT, + 1073741898 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_LEFT, + 1073741899 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_TOP, + 1073741900 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_RIGHT, + 1073741901 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_BOTTOM, + 1073741902 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_LEFT, + 1073741903 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_TOP, + 1073741904 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_RIGHT, + 1073741905 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_BOTTOM, + 1073741906 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_LEFT, + 1073741907 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_TOP, + 1073741908 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_RIGHT, + 1073741909 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_BOTTOM, + 1073741914 => IPP_FINISHINGS_CUPS_FOLD_ACCORDION, + 1073741915 => IPP_FINISHINGS_CUPS_FOLD_DOUBLE_GATE, + 1073741916 => IPP_FINISHINGS_CUPS_FOLD_GATE, + 1073741917 => IPP_FINISHINGS_CUPS_FOLD_HALF, + 1073741918 => IPP_FINISHINGS_CUPS_FOLD_HALF_Z, + 1073741919 => IPP_FINISHINGS_CUPS_FOLD_LEFT_GATE, + 1073741920 => IPP_FINISHINGS_CUPS_FOLD_LETTER, + 1073741921 => IPP_FINISHINGS_CUPS_FOLD_PARALLEL, + 1073741922 => IPP_FINISHINGS_CUPS_FOLD_POSTER, + 1073741923 => IPP_FINISHINGS_CUPS_FOLD_RIGHT_GATE, + 1073741924 => IPP_FINISHINGS_CUPS_FOLD_Z, + _ => throw ArgumentError('Unknown value for ipp_finishings_e: $value'), + }; +} + +typedef ipp_iocb_t = ffi.Pointer>; +typedef ipp_iocb_tFunction = + ssize_t Function( + ffi.Pointer context, + ffi.Pointer buffer, + ffi.Size bytes, + ); +typedef Dartipp_iocb_tFunction = + Dart__darwin_ssize_t Function( + ffi.Pointer context, + ffi.Pointer buffer, + int bytes, + ); + +enum ipp_jcollate_e { + IPP_JCOLLATE_UNCOLLATED_SHEETS(3), + IPP_JCOLLATE_COLLATED_DOCUMENTS(4), + IPP_JCOLLATE_UNCOLLATED_DOCUMENTS(5); + + final int value; + const ipp_jcollate_e(this.value); + + static ipp_jcollate_e fromValue(int value) => switch (value) { + 3 => IPP_JCOLLATE_UNCOLLATED_SHEETS, + 4 => IPP_JCOLLATE_COLLATED_DOCUMENTS, + 5 => IPP_JCOLLATE_UNCOLLATED_DOCUMENTS, + _ => throw ArgumentError('Unknown value for ipp_jcollate_e: $value'), + }; +} + +enum ipp_jstate_e { + IPP_JSTATE_PENDING(3), + IPP_JSTATE_HELD(4), + IPP_JSTATE_PROCESSING(5), + IPP_JSTATE_STOPPED(6), + IPP_JSTATE_CANCELED(7), + IPP_JSTATE_ABORTED(8), + IPP_JSTATE_COMPLETED(9); + + final int value; + const ipp_jstate_e(this.value); + + static ipp_jstate_e fromValue(int value) => switch (value) { + 3 => IPP_JSTATE_PENDING, + 4 => IPP_JSTATE_HELD, + 5 => IPP_JSTATE_PROCESSING, + 6 => IPP_JSTATE_STOPPED, + 7 => IPP_JSTATE_CANCELED, + 8 => IPP_JSTATE_ABORTED, + 9 => IPP_JSTATE_COMPLETED, + _ => throw ArgumentError('Unknown value for ipp_jstate_e: $value'), + }; +} + +enum ipp_op_e { + IPP_OP_CUPS_INVALID(-1), + IPP_OP_CUPS_NONE(0), + IPP_OP_PRINT_JOB(2), + IPP_OP_PRINT_URI(3), + IPP_OP_VALIDATE_JOB(4), + IPP_OP_CREATE_JOB(5), + IPP_OP_SEND_DOCUMENT(6), + IPP_OP_SEND_URI(7), + IPP_OP_CANCEL_JOB(8), + IPP_OP_GET_JOB_ATTRIBUTES(9), + IPP_OP_GET_JOBS(10), + IPP_OP_GET_PRINTER_ATTRIBUTES(11), + IPP_OP_HOLD_JOB(12), + IPP_OP_RELEASE_JOB(13), + IPP_OP_RESTART_JOB(14), + IPP_OP_PAUSE_PRINTER(16), + IPP_OP_RESUME_PRINTER(17), + IPP_OP_PURGE_JOBS(18), + IPP_OP_SET_PRINTER_ATTRIBUTES(19), + IPP_OP_SET_JOB_ATTRIBUTES(20), + IPP_OP_GET_PRINTER_SUPPORTED_VALUES(21), + IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS(22), + IPP_OP_CREATE_JOB_SUBSCRIPTIONS(23), + IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES(24), + IPP_OP_GET_SUBSCRIPTIONS(25), + IPP_OP_RENEW_SUBSCRIPTION(26), + IPP_OP_CANCEL_SUBSCRIPTION(27), + IPP_OP_GET_NOTIFICATIONS(28), + IPP_OP_SEND_NOTIFICATIONS(29), + IPP_OP_GET_RESOURCE_ATTRIBUTES(30), + IPP_OP_GET_RESOURCE_DATA(31), + IPP_OP_GET_RESOURCES(32), + IPP_OP_GET_PRINT_SUPPORT_FILES(33), + IPP_OP_ENABLE_PRINTER(34), + IPP_OP_DISABLE_PRINTER(35), + IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB(36), + IPP_OP_HOLD_NEW_JOBS(37), + IPP_OP_RELEASE_HELD_NEW_JOBS(38), + IPP_OP_DEACTIVATE_PRINTER(39), + IPP_OP_ACTIVATE_PRINTER(40), + IPP_OP_RESTART_PRINTER(41), + IPP_OP_SHUTDOWN_PRINTER(42), + IPP_OP_STARTUP_PRINTER(43), + IPP_OP_REPROCESS_JOB(44), + IPP_OP_CANCEL_CURRENT_JOB(45), + IPP_OP_SUSPEND_CURRENT_JOB(46), + IPP_OP_RESUME_JOB(47), + IPP_OP_PROMOTE_JOB(48), + IPP_OP_SCHEDULE_JOB_AFTER(49), + IPP_OP_CANCEL_DOCUMENT(51), + IPP_OP_GET_DOCUMENT_ATTRIBUTES(52), + IPP_OP_GET_DOCUMENTS(53), + IPP_OP_DELETE_DOCUMENT(54), + IPP_OP_SET_DOCUMENT_ATTRIBUTES(55), + IPP_OP_CANCEL_JOBS(56), + IPP_OP_CANCEL_MY_JOBS(57), + IPP_OP_RESUBMIT_JOB(58), + IPP_OP_CLOSE_JOB(59), + IPP_OP_IDENTIFY_PRINTER(60), + IPP_OP_VALIDATE_DOCUMENT(61), + IPP_OP_ADD_DOCUMENT_IMAGES(62), + IPP_OP_ACKNOWLEDGE_DOCUMENT(63), + IPP_OP_ACKNOWLEDGE_IDENTIFY_PRINTER(64), + IPP_OP_ACKNOWLEDGE_JOB(65), + IPP_OP_FETCH_DOCUMENT(66), + IPP_OP_FETCH_JOB(67), + IPP_OP_GET_OUTPUT_DEVICE_ATTRIBUTES(68), + IPP_OP_UPDATE_ACTIVE_JOBS(69), + IPP_OP_DEREGISTER_OUTPUT_DEVICE(70), + IPP_OP_UPDATE_DOCUMENT_STATUS(71), + IPP_OP_UPDATE_JOB_STATUS(72), + IPP_OP_UPDATE_OUTPUT_DEVICE_ATTRIBUTES(73), + IPP_OP_GET_NEXT_DOCUMENT_DATA(74), + IPP_OP_ALLOCATE_PRINTER_RESOURCES(75), + IPP_OP_CREATE_PRINTER(76), + IPP_OP_DEALLOCATE_PRINTER_RESOURCES(77), + IPP_OP_DELETE_PRINTER(78), + IPP_OP_GET_PRINTERS(79), + IPP_OP_SHUTDOWN_ONE_PRINTER(80), + IPP_OP_STARTUP_ONE_PRINTER(81), + IPP_OP_CANCEL_RESOURCE(82), + IPP_OP_CREATE_RESOURCE(83), + IPP_OP_INSTALL_RESOURCE(84), + IPP_OP_SEND_RESOURCE_DATA(85), + IPP_OP_SET_RESOURCE_ATTRIBUTES(86), + IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS(87), + IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS(88), + IPP_OP_DISABLE_ALL_PRINTERS(89), + IPP_OP_ENABLE_ALL_PRINTERS(90), + IPP_OP_GET_SYSTEM_ATTRIBUTES(91), + IPP_OP_GET_SYSTEM_SUPPORTED_VALUES(92), + IPP_OP_PAUSE_ALL_PRINTERS(93), + IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB(94), + IPP_OP_REGISTER_OUTPUT_DEVICE(95), + IPP_OP_RESTART_SYSTEM(96), + IPP_OP_RESUME_ALL_PRINTERS(97), + IPP_OP_SET_SYSTEM_ATTRIBUTES(98), + IPP_OP_SHUTDOWN_ALL_PRINTERS(99), + IPP_OP_STARTUP_ALL_PRINTERS(100), + IPP_OP_PRIVATE(16384), + IPP_OP_CUPS_GET_DEFAULT(16385), + IPP_OP_CUPS_GET_PRINTERS(16386), + IPP_OP_CUPS_ADD_MODIFY_PRINTER(16387), + IPP_OP_CUPS_DELETE_PRINTER(16388), + IPP_OP_CUPS_GET_CLASSES(16389), + IPP_OP_CUPS_ADD_MODIFY_CLASS(16390), + IPP_OP_CUPS_DELETE_CLASS(16391), + IPP_OP_CUPS_ACCEPT_JOBS(16392), + IPP_OP_CUPS_REJECT_JOBS(16393), + IPP_OP_CUPS_SET_DEFAULT(16394), + IPP_OP_CUPS_GET_DEVICES(16395), + IPP_OP_CUPS_GET_PPDS(16396), + IPP_OP_CUPS_MOVE_JOB(16397), + IPP_OP_CUPS_AUTHENTICATE_JOB(16398), + IPP_OP_CUPS_GET_PPD(16399), + IPP_OP_CUPS_GET_DOCUMENT(16423), + IPP_OP_CUPS_CREATE_LOCAL_PRINTER(16424); + + final int value; + const ipp_op_e(this.value); + + static ipp_op_e fromValue(int value) => switch (value) { + -1 => IPP_OP_CUPS_INVALID, + 0 => IPP_OP_CUPS_NONE, + 2 => IPP_OP_PRINT_JOB, + 3 => IPP_OP_PRINT_URI, + 4 => IPP_OP_VALIDATE_JOB, + 5 => IPP_OP_CREATE_JOB, + 6 => IPP_OP_SEND_DOCUMENT, + 7 => IPP_OP_SEND_URI, + 8 => IPP_OP_CANCEL_JOB, + 9 => IPP_OP_GET_JOB_ATTRIBUTES, + 10 => IPP_OP_GET_JOBS, + 11 => IPP_OP_GET_PRINTER_ATTRIBUTES, + 12 => IPP_OP_HOLD_JOB, + 13 => IPP_OP_RELEASE_JOB, + 14 => IPP_OP_RESTART_JOB, + 16 => IPP_OP_PAUSE_PRINTER, + 17 => IPP_OP_RESUME_PRINTER, + 18 => IPP_OP_PURGE_JOBS, + 19 => IPP_OP_SET_PRINTER_ATTRIBUTES, + 20 => IPP_OP_SET_JOB_ATTRIBUTES, + 21 => IPP_OP_GET_PRINTER_SUPPORTED_VALUES, + 22 => IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS, + 23 => IPP_OP_CREATE_JOB_SUBSCRIPTIONS, + 24 => IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES, + 25 => IPP_OP_GET_SUBSCRIPTIONS, + 26 => IPP_OP_RENEW_SUBSCRIPTION, + 27 => IPP_OP_CANCEL_SUBSCRIPTION, + 28 => IPP_OP_GET_NOTIFICATIONS, + 29 => IPP_OP_SEND_NOTIFICATIONS, + 30 => IPP_OP_GET_RESOURCE_ATTRIBUTES, + 31 => IPP_OP_GET_RESOURCE_DATA, + 32 => IPP_OP_GET_RESOURCES, + 33 => IPP_OP_GET_PRINT_SUPPORT_FILES, + 34 => IPP_OP_ENABLE_PRINTER, + 35 => IPP_OP_DISABLE_PRINTER, + 36 => IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB, + 37 => IPP_OP_HOLD_NEW_JOBS, + 38 => IPP_OP_RELEASE_HELD_NEW_JOBS, + 39 => IPP_OP_DEACTIVATE_PRINTER, + 40 => IPP_OP_ACTIVATE_PRINTER, + 41 => IPP_OP_RESTART_PRINTER, + 42 => IPP_OP_SHUTDOWN_PRINTER, + 43 => IPP_OP_STARTUP_PRINTER, + 44 => IPP_OP_REPROCESS_JOB, + 45 => IPP_OP_CANCEL_CURRENT_JOB, + 46 => IPP_OP_SUSPEND_CURRENT_JOB, + 47 => IPP_OP_RESUME_JOB, + 48 => IPP_OP_PROMOTE_JOB, + 49 => IPP_OP_SCHEDULE_JOB_AFTER, + 51 => IPP_OP_CANCEL_DOCUMENT, + 52 => IPP_OP_GET_DOCUMENT_ATTRIBUTES, + 53 => IPP_OP_GET_DOCUMENTS, + 54 => IPP_OP_DELETE_DOCUMENT, + 55 => IPP_OP_SET_DOCUMENT_ATTRIBUTES, + 56 => IPP_OP_CANCEL_JOBS, + 57 => IPP_OP_CANCEL_MY_JOBS, + 58 => IPP_OP_RESUBMIT_JOB, + 59 => IPP_OP_CLOSE_JOB, + 60 => IPP_OP_IDENTIFY_PRINTER, + 61 => IPP_OP_VALIDATE_DOCUMENT, + 62 => IPP_OP_ADD_DOCUMENT_IMAGES, + 63 => IPP_OP_ACKNOWLEDGE_DOCUMENT, + 64 => IPP_OP_ACKNOWLEDGE_IDENTIFY_PRINTER, + 65 => IPP_OP_ACKNOWLEDGE_JOB, + 66 => IPP_OP_FETCH_DOCUMENT, + 67 => IPP_OP_FETCH_JOB, + 68 => IPP_OP_GET_OUTPUT_DEVICE_ATTRIBUTES, + 69 => IPP_OP_UPDATE_ACTIVE_JOBS, + 70 => IPP_OP_DEREGISTER_OUTPUT_DEVICE, + 71 => IPP_OP_UPDATE_DOCUMENT_STATUS, + 72 => IPP_OP_UPDATE_JOB_STATUS, + 73 => IPP_OP_UPDATE_OUTPUT_DEVICE_ATTRIBUTES, + 74 => IPP_OP_GET_NEXT_DOCUMENT_DATA, + 75 => IPP_OP_ALLOCATE_PRINTER_RESOURCES, + 76 => IPP_OP_CREATE_PRINTER, + 77 => IPP_OP_DEALLOCATE_PRINTER_RESOURCES, + 78 => IPP_OP_DELETE_PRINTER, + 79 => IPP_OP_GET_PRINTERS, + 80 => IPP_OP_SHUTDOWN_ONE_PRINTER, + 81 => IPP_OP_STARTUP_ONE_PRINTER, + 82 => IPP_OP_CANCEL_RESOURCE, + 83 => IPP_OP_CREATE_RESOURCE, + 84 => IPP_OP_INSTALL_RESOURCE, + 85 => IPP_OP_SEND_RESOURCE_DATA, + 86 => IPP_OP_SET_RESOURCE_ATTRIBUTES, + 87 => IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS, + 88 => IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS, + 89 => IPP_OP_DISABLE_ALL_PRINTERS, + 90 => IPP_OP_ENABLE_ALL_PRINTERS, + 91 => IPP_OP_GET_SYSTEM_ATTRIBUTES, + 92 => IPP_OP_GET_SYSTEM_SUPPORTED_VALUES, + 93 => IPP_OP_PAUSE_ALL_PRINTERS, + 94 => IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB, + 95 => IPP_OP_REGISTER_OUTPUT_DEVICE, + 96 => IPP_OP_RESTART_SYSTEM, + 97 => IPP_OP_RESUME_ALL_PRINTERS, + 98 => IPP_OP_SET_SYSTEM_ATTRIBUTES, + 99 => IPP_OP_SHUTDOWN_ALL_PRINTERS, + 100 => IPP_OP_STARTUP_ALL_PRINTERS, + 16384 => IPP_OP_PRIVATE, + 16385 => IPP_OP_CUPS_GET_DEFAULT, + 16386 => IPP_OP_CUPS_GET_PRINTERS, + 16387 => IPP_OP_CUPS_ADD_MODIFY_PRINTER, + 16388 => IPP_OP_CUPS_DELETE_PRINTER, + 16389 => IPP_OP_CUPS_GET_CLASSES, + 16390 => IPP_OP_CUPS_ADD_MODIFY_CLASS, + 16391 => IPP_OP_CUPS_DELETE_CLASS, + 16392 => IPP_OP_CUPS_ACCEPT_JOBS, + 16393 => IPP_OP_CUPS_REJECT_JOBS, + 16394 => IPP_OP_CUPS_SET_DEFAULT, + 16395 => IPP_OP_CUPS_GET_DEVICES, + 16396 => IPP_OP_CUPS_GET_PPDS, + 16397 => IPP_OP_CUPS_MOVE_JOB, + 16398 => IPP_OP_CUPS_AUTHENTICATE_JOB, + 16399 => IPP_OP_CUPS_GET_PPD, + 16423 => IPP_OP_CUPS_GET_DOCUMENT, + 16424 => IPP_OP_CUPS_CREATE_LOCAL_PRINTER, + _ => throw ArgumentError('Unknown value for ipp_op_e: $value'), + }; +} + +enum ipp_orient_e { + IPP_ORIENT_PORTRAIT(3), + IPP_ORIENT_LANDSCAPE(4), + IPP_ORIENT_REVERSE_LANDSCAPE(5), + IPP_ORIENT_REVERSE_PORTRAIT(6), + IPP_ORIENT_NONE(7); + + final int value; + const ipp_orient_e(this.value); + + static ipp_orient_e fromValue(int value) => switch (value) { + 3 => IPP_ORIENT_PORTRAIT, + 4 => IPP_ORIENT_LANDSCAPE, + 5 => IPP_ORIENT_REVERSE_LANDSCAPE, + 6 => IPP_ORIENT_REVERSE_PORTRAIT, + 7 => IPP_ORIENT_NONE, + _ => throw ArgumentError('Unknown value for ipp_orient_e: $value'), + }; +} + +enum ipp_pstate_e { + IPP_PSTATE_IDLE(3), + IPP_PSTATE_PROCESSING(4), + IPP_PSTATE_STOPPED(5); + + final int value; + const ipp_pstate_e(this.value); + + static ipp_pstate_e fromValue(int value) => switch (value) { + 3 => IPP_PSTATE_IDLE, + 4 => IPP_PSTATE_PROCESSING, + 5 => IPP_PSTATE_STOPPED, + _ => throw ArgumentError('Unknown value for ipp_pstate_e: $value'), + }; +} + +enum ipp_quality_e { + IPP_QUALITY_DRAFT(3), + IPP_QUALITY_NORMAL(4), + IPP_QUALITY_HIGH(5); + + final int value; + const ipp_quality_e(this.value); + + static ipp_quality_e fromValue(int value) => switch (value) { + 3 => IPP_QUALITY_DRAFT, + 4 => IPP_QUALITY_NORMAL, + 5 => IPP_QUALITY_HIGH, + _ => throw ArgumentError('Unknown value for ipp_quality_e: $value'), + }; +} + +enum ipp_res_e { + IPP_RES_PER_INCH(3), + IPP_RES_PER_CM(4); + + final int value; + const ipp_res_e(this.value); + + static ipp_res_e fromValue(int value) => switch (value) { + 3 => IPP_RES_PER_INCH, + 4 => IPP_RES_PER_CM, + _ => throw ArgumentError('Unknown value for ipp_res_e: $value'), + }; +} + +enum ipp_rstate_e { + IPP_RSTATE_PENDING(3), + IPP_RSTATE_AVAILABLE(4), + IPP_RSTATE_INSTALLED(5), + IPP_RSTATE_CANCELED(6), + IPP_RSTATE_ABORTED(7); + + final int value; + const ipp_rstate_e(this.value); + + static ipp_rstate_e fromValue(int value) => switch (value) { + 3 => IPP_RSTATE_PENDING, + 4 => IPP_RSTATE_AVAILABLE, + 5 => IPP_RSTATE_INSTALLED, + 6 => IPP_RSTATE_CANCELED, + 7 => IPP_RSTATE_ABORTED, + _ => throw ArgumentError('Unknown value for ipp_rstate_e: $value'), + }; +} + +enum ipp_sstate_e { + IPP_SSTATE_IDLE(3), + IPP_SSTATE_PROCESSING(4), + IPP_SSTATE_STOPPED(5); + + final int value; + const ipp_sstate_e(this.value); + + static ipp_sstate_e fromValue(int value) => switch (value) { + 3 => IPP_SSTATE_IDLE, + 4 => IPP_SSTATE_PROCESSING, + 5 => IPP_SSTATE_STOPPED, + _ => throw ArgumentError('Unknown value for ipp_sstate_e: $value'), + }; +} + +enum ipp_state_e { + IPP_STATE_ERROR(-1), + IPP_STATE_IDLE(0), + IPP_STATE_HEADER(1), + IPP_STATE_ATTRIBUTE(2), + IPP_STATE_DATA(3); + + final int value; + const ipp_state_e(this.value); + + static ipp_state_e fromValue(int value) => switch (value) { + -1 => IPP_STATE_ERROR, + 0 => IPP_STATE_IDLE, + 1 => IPP_STATE_HEADER, + 2 => IPP_STATE_ATTRIBUTE, + 3 => IPP_STATE_DATA, + _ => throw ArgumentError('Unknown value for ipp_state_e: $value'), + }; +} + +enum ipp_status_e { + IPP_STATUS_CUPS_INVALID(-1), + IPP_STATUS_OK(0), + IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED(1), + IPP_STATUS_OK_CONFLICTING(2), + IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS(3), + IPP_STATUS_OK_IGNORED_NOTIFICATIONS(4), + IPP_STATUS_OK_TOO_MANY_EVENTS(5), + IPP_STATUS_OK_BUT_CANCEL_SUBSCRIPTION(6), + IPP_STATUS_OK_EVENTS_COMPLETE(7), + IPP_STATUS_REDIRECTION_OTHER_SITE(512), + IPP_STATUS_CUPS_SEE_OTHER(640), + IPP_STATUS_ERROR_BAD_REQUEST(1024), + IPP_STATUS_ERROR_FORBIDDEN(1025), + IPP_STATUS_ERROR_NOT_AUTHENTICATED(1026), + IPP_STATUS_ERROR_NOT_AUTHORIZED(1027), + IPP_STATUS_ERROR_NOT_POSSIBLE(1028), + IPP_STATUS_ERROR_TIMEOUT(1029), + IPP_STATUS_ERROR_NOT_FOUND(1030), + IPP_STATUS_ERROR_GONE(1031), + IPP_STATUS_ERROR_REQUEST_ENTITY(1032), + IPP_STATUS_ERROR_REQUEST_VALUE(1033), + IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED(1034), + IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES(1035), + IPP_STATUS_ERROR_URI_SCHEME(1036), + IPP_STATUS_ERROR_CHARSET(1037), + IPP_STATUS_ERROR_CONFLICTING(1038), + IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED(1039), + IPP_STATUS_ERROR_COMPRESSION_ERROR(1040), + IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR(1041), + IPP_STATUS_ERROR_DOCUMENT_ACCESS(1042), + IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE(1043), + IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS(1044), + IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS(1045), + IPP_STATUS_ERROR_IGNORED_ALL_NOTIFICATIONS(1046), + IPP_STATUS_ERROR_PRINT_SUPPORT_FILE_NOT_FOUND(1047), + IPP_STATUS_ERROR_DOCUMENT_PASSWORD(1048), + IPP_STATUS_ERROR_DOCUMENT_PERMISSION(1049), + IPP_STATUS_ERROR_DOCUMENT_SECURITY(1050), + IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE(1051), + IPP_STATUS_ERROR_ACCOUNT_INFO_NEEDED(1052), + IPP_STATUS_ERROR_ACCOUNT_CLOSED(1053), + IPP_STATUS_ERROR_ACCOUNT_LIMIT_REACHED(1054), + IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED(1055), + IPP_STATUS_ERROR_NOT_FETCHABLE(1056), + IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED(1180), + IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED(1181), + IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED(1182), + IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED(1183), + IPP_STATUS_ERROR_INTERNAL(1280), + IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED(1281), + IPP_STATUS_ERROR_SERVICE_UNAVAILABLE(1282), + IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED(1283), + IPP_STATUS_ERROR_DEVICE(1284), + IPP_STATUS_ERROR_TEMPORARY(1285), + IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS(1286), + IPP_STATUS_ERROR_BUSY(1287), + IPP_STATUS_ERROR_JOB_CANCELED(1288), + IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED(1289), + IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED(1290), + IPP_STATUS_ERROR_TOO_MANY_JOBS(1291), + IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS(1292), + IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED(4096), + IPP_STATUS_ERROR_CUPS_PKI(4097), + IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED(4098); + + final int value; + const ipp_status_e(this.value); + + static ipp_status_e fromValue(int value) => switch (value) { + -1 => IPP_STATUS_CUPS_INVALID, + 0 => IPP_STATUS_OK, + 1 => IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED, + 2 => IPP_STATUS_OK_CONFLICTING, + 3 => IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS, + 4 => IPP_STATUS_OK_IGNORED_NOTIFICATIONS, + 5 => IPP_STATUS_OK_TOO_MANY_EVENTS, + 6 => IPP_STATUS_OK_BUT_CANCEL_SUBSCRIPTION, + 7 => IPP_STATUS_OK_EVENTS_COMPLETE, + 512 => IPP_STATUS_REDIRECTION_OTHER_SITE, + 640 => IPP_STATUS_CUPS_SEE_OTHER, + 1024 => IPP_STATUS_ERROR_BAD_REQUEST, + 1025 => IPP_STATUS_ERROR_FORBIDDEN, + 1026 => IPP_STATUS_ERROR_NOT_AUTHENTICATED, + 1027 => IPP_STATUS_ERROR_NOT_AUTHORIZED, + 1028 => IPP_STATUS_ERROR_NOT_POSSIBLE, + 1029 => IPP_STATUS_ERROR_TIMEOUT, + 1030 => IPP_STATUS_ERROR_NOT_FOUND, + 1031 => IPP_STATUS_ERROR_GONE, + 1032 => IPP_STATUS_ERROR_REQUEST_ENTITY, + 1033 => IPP_STATUS_ERROR_REQUEST_VALUE, + 1034 => IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED, + 1035 => IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, + 1036 => IPP_STATUS_ERROR_URI_SCHEME, + 1037 => IPP_STATUS_ERROR_CHARSET, + 1038 => IPP_STATUS_ERROR_CONFLICTING, + 1039 => IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED, + 1040 => IPP_STATUS_ERROR_COMPRESSION_ERROR, + 1041 => IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR, + 1042 => IPP_STATUS_ERROR_DOCUMENT_ACCESS, + 1043 => IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE, + 1044 => IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS, + 1045 => IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS, + 1046 => IPP_STATUS_ERROR_IGNORED_ALL_NOTIFICATIONS, + 1047 => IPP_STATUS_ERROR_PRINT_SUPPORT_FILE_NOT_FOUND, + 1048 => IPP_STATUS_ERROR_DOCUMENT_PASSWORD, + 1049 => IPP_STATUS_ERROR_DOCUMENT_PERMISSION, + 1050 => IPP_STATUS_ERROR_DOCUMENT_SECURITY, + 1051 => IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE, + 1052 => IPP_STATUS_ERROR_ACCOUNT_INFO_NEEDED, + 1053 => IPP_STATUS_ERROR_ACCOUNT_CLOSED, + 1054 => IPP_STATUS_ERROR_ACCOUNT_LIMIT_REACHED, + 1055 => IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED, + 1056 => IPP_STATUS_ERROR_NOT_FETCHABLE, + 1180 => IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED, + 1181 => IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED, + 1182 => IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED, + 1183 => IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED, + 1280 => IPP_STATUS_ERROR_INTERNAL, + 1281 => IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED, + 1282 => IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, + 1283 => IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED, + 1284 => IPP_STATUS_ERROR_DEVICE, + 1285 => IPP_STATUS_ERROR_TEMPORARY, + 1286 => IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS, + 1287 => IPP_STATUS_ERROR_BUSY, + 1288 => IPP_STATUS_ERROR_JOB_CANCELED, + 1289 => IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED, + 1290 => IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED, + 1291 => IPP_STATUS_ERROR_TOO_MANY_JOBS, + 1292 => IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS, + 4096 => IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED, + 4097 => IPP_STATUS_ERROR_CUPS_PKI, + 4098 => IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED, + _ => throw ArgumentError('Unknown value for ipp_status_e: $value'), + }; +} + +typedef ipp_t = _ipp_s; + +enum ipp_tag_e { + IPP_TAG_CUPS_INVALID(-1), + IPP_TAG_ZERO(0), + IPP_TAG_OPERATION(1), + IPP_TAG_JOB(2), + IPP_TAG_END(3), + IPP_TAG_PRINTER(4), + IPP_TAG_UNSUPPORTED_GROUP(5), + IPP_TAG_SUBSCRIPTION(6), + IPP_TAG_EVENT_NOTIFICATION(7), + IPP_TAG_RESOURCE(8), + IPP_TAG_DOCUMENT(9), + IPP_TAG_SYSTEM(10), + IPP_TAG_UNSUPPORTED_VALUE(16), + IPP_TAG_DEFAULT(17), + IPP_TAG_UNKNOWN(18), + IPP_TAG_NOVALUE(19), + IPP_TAG_NOTSETTABLE(21), + IPP_TAG_DELETEATTR(22), + IPP_TAG_ADMINDEFINE(23), + IPP_TAG_INTEGER(33), + IPP_TAG_BOOLEAN(34), + IPP_TAG_ENUM(35), + IPP_TAG_STRING(48), + IPP_TAG_DATE(49), + IPP_TAG_RESOLUTION(50), + IPP_TAG_RANGE(51), + IPP_TAG_BEGIN_COLLECTION(52), + IPP_TAG_TEXTLANG(53), + IPP_TAG_NAMELANG(54), + IPP_TAG_END_COLLECTION(55), + IPP_TAG_TEXT(65), + IPP_TAG_NAME(66), + IPP_TAG_RESERVED_STRING(67), + IPP_TAG_KEYWORD(68), + IPP_TAG_URI(69), + IPP_TAG_URISCHEME(70), + IPP_TAG_CHARSET(71), + IPP_TAG_LANGUAGE(72), + IPP_TAG_MIMETYPE(73), + IPP_TAG_MEMBERNAME(74), + IPP_TAG_EXTENSION(127), + IPP_TAG_CUPS_MASK(2147483647), + IPP_TAG_CUPS_CONST(-2147483648); + + final int value; + const ipp_tag_e(this.value); + + static ipp_tag_e fromValue(int value) => switch (value) { + -1 => IPP_TAG_CUPS_INVALID, + 0 => IPP_TAG_ZERO, + 1 => IPP_TAG_OPERATION, + 2 => IPP_TAG_JOB, + 3 => IPP_TAG_END, + 4 => IPP_TAG_PRINTER, + 5 => IPP_TAG_UNSUPPORTED_GROUP, + 6 => IPP_TAG_SUBSCRIPTION, + 7 => IPP_TAG_EVENT_NOTIFICATION, + 8 => IPP_TAG_RESOURCE, + 9 => IPP_TAG_DOCUMENT, + 10 => IPP_TAG_SYSTEM, + 16 => IPP_TAG_UNSUPPORTED_VALUE, + 17 => IPP_TAG_DEFAULT, + 18 => IPP_TAG_UNKNOWN, + 19 => IPP_TAG_NOVALUE, + 21 => IPP_TAG_NOTSETTABLE, + 22 => IPP_TAG_DELETEATTR, + 23 => IPP_TAG_ADMINDEFINE, + 33 => IPP_TAG_INTEGER, + 34 => IPP_TAG_BOOLEAN, + 35 => IPP_TAG_ENUM, + 48 => IPP_TAG_STRING, + 49 => IPP_TAG_DATE, + 50 => IPP_TAG_RESOLUTION, + 51 => IPP_TAG_RANGE, + 52 => IPP_TAG_BEGIN_COLLECTION, + 53 => IPP_TAG_TEXTLANG, + 54 => IPP_TAG_NAMELANG, + 55 => IPP_TAG_END_COLLECTION, + 65 => IPP_TAG_TEXT, + 66 => IPP_TAG_NAME, + 67 => IPP_TAG_RESERVED_STRING, + 68 => IPP_TAG_KEYWORD, + 69 => IPP_TAG_URI, + 70 => IPP_TAG_URISCHEME, + 71 => IPP_TAG_CHARSET, + 72 => IPP_TAG_LANGUAGE, + 73 => IPP_TAG_MIMETYPE, + 74 => IPP_TAG_MEMBERNAME, + 127 => IPP_TAG_EXTENSION, + 2147483647 => IPP_TAG_CUPS_MASK, + -2147483648 => IPP_TAG_CUPS_CONST, + _ => throw ArgumentError('Unknown value for ipp_tag_e: $value'), + }; +} + +typedef ipp_uchar_t = ffi.UnsignedChar; +typedef Dartipp_uchar_t = int; + +final class ipv6_mreq extends ffi.Struct { + external in6_addr ipv6mr_multiaddr; + + @ffi.UnsignedInt() + external int ipv6mr_interface; +} + +const int italic = 2; + +final class itimerval extends ffi.Struct { + external timeval it_interval; + + external timeval it_value; +} + +const int itlcDisableKeyScriptSync = 3; + +const int itlcDisableKeyScriptSyncMask = 8; + +const int itlcDualCaret = 6; + +const int itlcShowIcon = 7; + +const int itlcSysDirection = 15; + +const int iuCurrentCurLang = -4; + +const int iuCurrentDefLang = -5; + +@Deprecated('Deprecated') +const int iuCurrentScript = -2; + +@Deprecated('Deprecated') +const int iuNumberPartsTable = 2; + +const int iuScriptCurLang = -6; + +const int iuScriptDefLang = -7; + +const int iuSystemCurLang = -2; + +const int iuSystemDefLang = -3; + +@Deprecated('Deprecated') +const int iuSystemScript = -1; + +@Deprecated('Deprecated') +const int iuUnTokenTable = 3; + +@Deprecated('Deprecated') +const int iuWhiteSpaceList = 4; + +@Deprecated('Deprecated') +const int iuWordSelectTable = 0; + +@Deprecated('Deprecated') +const int iuWordWrapTable = 1; + +const int k16BE555PixelFormat = 16; + +const int k16BE565PixelFormat = 1110783541; + +const int k16BitCardErr = -9084; + +const int k16LE5551PixelFormat = 892679473; + +const int k16LE555PixelFormat = 1278555445; + +const int k16LE565PixelFormat = 1278555701; + +const int k1IndexedGrayPixelFormat = 33; + +const int k1MonochromePixelFormat = 1; + +const int k24BGRPixelFormat = 842285639; + +const int k24RGBPixelFormat = 24; + +const int k2IndexedGrayPixelFormat = 34; + +const int k2IndexedPixelFormat = 2; + +const int k2vuyPixelFormat = 846624121; + +const int k32ABGRPixelFormat = 1094862674; + +const int k32ARGBPixelFormat = 32; + +const int k32BGRAPixelFormat = 1111970369; + +@Deprecated('Deprecated') +const int k32BitHeap = 1; + +const int k32RGBAPixelFormat = 1380401729; + +const int k4IndexedGrayPixelFormat = 36; + +const int k4IndexedPixelFormat = 4; + +@Deprecated('Deprecated') +const int k68kInterruptLevelMask = 7; + +const int k8IndexedGrayPixelFormat = 40; + +const int k8IndexedPixelFormat = 8; + +const int kAEAND = 1095648288; + +const int kAEAbout = 1633841013; + +const int kAEActivate = 1633907830; + +const int kAEAfter = 1634104421; + +const int kAEAliasSelection = 1935764585; + +const int kAEAll = 1634495520; + +const int kAEAllCaps = 1634493296; + +const int kAEAlwaysInteract = 48; + +const int kAEAnswer = 1634628466; + +const int kAEAny = 1634629920; + +const int kAEApplicationActivationExpected = 1633775716; + +const int kAEApplicationClass = 1634758764; + +const int kAEApplicationDied = 1868720500; + +const int kAEArrowAtEnd = 1634887022; + +const int kAEArrowAtStart = 1634890612; + +const int kAEArrowBothEnds = 1634886255; + +const int kAEAsk = 1634954016; + +const int kAEAutoDown = 1635087471; + +const int kAEBefore = 1650812527; + +const int kAEBeginTransaction = 1650812777; + +const int kAEBeginning = 1650945639; + +const int kAEBeginsWith = 1650947956; + +const int kAEBold = 1651469412; + +const int kAECanInteract = 32; + +const int kAECanSwitchLayer = 64; + +const int kAECaseSensEquals = 1668506993; + +const int kAECentered = 1667591796; + +const int kAEChangeView = 1986618743; + +const int kAEClone = 1668050798; + +const int kAEClose = 1668050803; + +const int kAECommandClass = 1668116068; + +const int kAECondensed = 1668247140; + +const int kAEContains = 1668247156; + +const int kAECopy = 1668247673; + +const int kAECoreSuite = 1668248165; + +const int kAECountElements = 1668183141; + +const int kAECreateElement = 1668441452; + +const int kAECreatePublisher = 1668314466; + +const int kAECut = 1668641824; + +const int kAEDataArray = 0; + +const int kAEDeactivate = 1684104052; + +const int kAEDebugPOSTHeader = 1; + +const int kAEDebugReplyHeader = 2; + +const int kAEDebugXMLDebugAll = -1; + +const int kAEDebugXMLRequest = 4; + +const int kAEDebugXMLResponse = 8; + +const int kAEDefaultTimeout = -1; + +const int kAEDelete = 1684368495; + +const int kAEDescArray = 3; + +const int kAEDescListFactorNone = 0; + +const int kAEDescListFactorType = 4; + +const int kAEDescListFactorTypeAndSize = 8; + +const int kAEDirectCall = 1; + +const int kAEDiskEvent = 1684632427; + +const int kAEDoNotAutomaticallyAddAnnotationsToEvent = 65536; + +const int kAEDoNotPromptForUserConsent = 131072; + +const int kAEDoObjectsExist = 1685022072; + +const int kAEDoScript = 1685025635; + +const int kAEDontExecute = 8192; + +const int kAEDontReconnect = 128; + +const int kAEDontRecord = 4096; + +const int kAEDown = 1685026670; + +const int kAEDrag = 1685217639; + +const int kAEDuplicateSelection = 1935963504; + +const int kAEEditGraphic = 1701079412; + +const int kAEEmptyTrash = 1701671028; + +const int kAEEnd = 1701733408; + +const int kAEEndTransaction = 1701733492; + +const int kAEEndsWith = 1701733491; + +const int kAEEquals = 1025515552; + +const int kAEExpanded = 1885698160; + +const int kAEFast = 1717662580; + +const int kAEFetchURL = 1179996748; + +const int kAEFinderEvents = 1179534418; + +const int kAEFirst = 1718186611; + +const int kAEFormulaProtect = 1718645359; + +const int kAEFullyJustified = 1718971500; + +const int kAEGetClassInfo = 1903125098; + +const int kAEGetData = 1734702180; + +const int kAEGetDataSize = 1685285242; + +const int kAEGetEventInfo = 1735681385; + +const int kAEGetInfoSelection = 1936289382; + +const int kAEGetPrivilegeSelection = 1936749174; + +const int kAEGetSuiteInfo = 1735684969; + +const int kAEGetURL = 1196773964; + +const int kAEGreaterThan = 1042292768; + +const int kAEGreaterThanEquals = 1044193312; + +const int kAEGrow = 1735552887; + +const int kAEHTTPProxyHostAttr = 2020111464; + +const int kAEHTTPProxyPortAttr = 2020111472; + +const int kAEHandleArray = 2; + +const int kAEHandleSimpleRanges = 32; + +const int kAEHiQuality = 1751740789; + +const int kAEHidden = 1751737454; + +const int kAEHighLevel = 1751738216; + +const int kAEHighPriority = 1; + +const int kAEIDoMarking = 4; + +const int kAEIDoMinimum = 0; + +const int kAEIDoWhose = 1; + +const int kAEISAction = 1264673652; + +const int kAEISActionPath = 1264676980; + +const int kAEISClientAddress = 1633969266; + +const int kAEISClientIP = 1264806256; + +const int kAEISContentType = 1668577648; + +const int kAEISFromUser = 1718775157; + +const int kAEISFullRequest = 1265005169; + +const int kAEISGetURL = 1735750252; + +const int kAEISHTTPSearchArgs = 1801875314; + +const int kAEISMethod = 1835365480; + +const int kAEISPassword = 1885434739; + +const int kAEISPostArgs = 1886352244; + +const int kAEISReferrer = 1919247986; + +const int kAEISScriptName = 1935896173; + +const int kAEISServerName = 1937141357; + +const int kAEISServerPort = 1937141876; + +const int kAEISUserAgent = 1097297524; + +const int kAEISUserName = 1970496882; + +const int kAEISWebStarSuite = 1465341885; + +const int kAEImageGraphic = 1768777586; + +const int kAEInfo = 11; + +const int kAEInternetSuite = 1735750252; + +const int kAEIsUniform = 1769174382; + +const int kAEItalic = 1769234796; + +const int kAEKeyClass = 1801812323; + +const int kAEKeyDescArray = 4; + +const int kAEKeyDown = 1801746286; + +const int kAELast = 1818325876; + +const int kAELeftJustified = 1818584692; + +const int kAELessThan = 1008738336; + +const int kAELessThanEquals = 1010638880; + +const int kAELocalProcess = 3; + +const int kAELogOut = 1819240303; + +const int kAELowercase = 1819244387; + +const int kAEMain = 0; + +const int kAEMakeObjectsVisible = 1836476787; + +const int kAEMenuClass = 1835363957; + +const int kAEMenuSelect = 1835559284; + +const int kAEMiddle = 1835623524; + +const int kAEMiscStandards = 1835627363; + +const int kAEModifiable = 1836016742; + +const int kAEMouseClass = 1836021107; + +const int kAEMouseDown = 1835300718; + +const int kAEMouseDownInBack = 1835295339; + +const int kAEMove = 1836021349; + +const int kAEMoved = 1836021349; + +const int kAENOT = 1313821728; + +const int kAENavigationKey = 1851881061; + +const int kAENeverInteract = 16; + +const int kAENext = 1852143732; + +const int kAENo = 1852776480; + +const int kAENoArrow = 1634889327; + +const int kAENoReply = 1; + +const int kAENonmodifiable = 1852665700; + +const int kAENormalPriority = 0; + +const int kAENotifyRecording = 1919247218; + +const int kAENotifyStartRecording = 1919247153; + +const int kAENotifyStopRecording = 1919247152; + +const int kAENullEvent = 1853189228; + +const int kAEOR = 1330782240; + +const int kAEOSAXSizeResource = 1869834618; + +const int kAEOpen = 1868853091; + +const int kAEOpenApplication = 1868656752; + +const int kAEOpenContents = 1868787566; + +const int kAEOpenDocuments = 1868853091; + +const int kAEOpenSelection = 1936683109; + +const int kAEOutline = 1869968492; + +const int kAEPackedArray = 1; + +const int kAEPageSetup = 1885827957; + +const int kAEPassSubDescs = 8; + +const int kAEPaste = 1885434740; + +const int kAEPlain = 1886151022; + +const int kAEPrevious = 1886545270; + +const int kAEPrint = 1885630307; + +const int kAEPrintDocuments = 1885630307; + +const int kAEPrintSelection = 1936749161; + +const int kAEPrintWindow = 1886873966; + +const int kAEProcessNonReplyEvents = 32768; + +const int kAEPromise = 1886547821; + +const int kAEPutAwaySelection = 1936749940; + +const int kAEQDAdMax = 1633971576; + +const int kAEQDAdMin = 1633971566; + +const int kAEQDAddOver = 1633969263; + +const int kAEQDAddPin = 1633969264; + +const int kAEQDBic = 1651073824; + +const int kAEQDBlend = 1651273316; + +const int kAEQDCopy = 1668315424; + +const int kAEQDNotBic = 1851943267; + +const int kAEQDNotCopy = 1852010617; + +const int kAEQDNotOr = 1853124466; + +const int kAEQDNotXor = 1853386610; + +const int kAEQDOr = 1869750304; + +const int kAEQDSubOver = 1937072751; + +const int kAEQDSubPin = 1937072752; + +const int kAEQDSupplementalSuite = 1902408560; + +const int kAEQDXor = 2020569632; + +const int kAEQueueReply = 2; + +const int kAEQuickdrawSuite = 1902408311; + +const int kAEQuitAll = 1903520097; + +const int kAEQuitApplication = 1903520116; + +const int kAEQuitPreserveState = 1937006964; + +const int kAEQuitReason = 2003335487; + +const int kAERPCClass = 1919968032; + +const int kAERawKey = 1919640953; + +const int kAEReallyLogOut = 1919706991; + +const int kAERedo = 1919247471; + +const int kAERegular = 1919248236; + +const int kAERemoteProcess = 4; + +const int kAEReopenApplication = 1918988400; + +const int kAEReplace = 1919970403; + +const int kAERequiredSuite = 1919250788; + +const int kAEResized = 1920166266; + +const int kAEResolveNestedLists = 16; + +const int kAERestart = 1919251316; + +const int kAEResume = 1920167269; + +const int kAERevealSelection = 1936876918; + +const int kAERevert = 1920365172; + +const int kAERightJustified = 1919379572; + +const int kAESOAPScheme = 1397702992; + +const int kAESameProcess = 2; + +const int kAESave = 1935767141; + +const int kAEScrapEvent = 1935897200; + +const int kAEScriptingSizeResource = 1935897466; + +const int kAESelect = 1936483188; + +const int kAESetData = 1936028772; + +const int kAESetPosition = 1886352238; + +const int kAEShadow = 1936220516; + +const int kAESharedScriptHandler = 2004050800; + +const int kAESharing = 13; + +const int kAEShowClipboard = 1936221036; + +const int kAEShowPreferences = 1886545254; + +const int kAEShowRestartDialog = 1920103284; + +const int kAEShowShutdownDialog = 1920164974; + +const int kAEShutDown = 1936225652; + +const int kAESleep = 1936483696; + +const int kAESmallCaps = 1936548720; + +const int kAESocks4Protocol = 4; + +const int kAESocks5Protocol = 5; + +const int kAESocksHostAttr = 2020829299; + +const int kAESocksPasswordAttr = 2020829303; + +const int kAESocksPortAttr = 2020829296; + +const int kAESocksProxyAttr = 2020831083; + +const int kAESocksUserAttr = 2020829301; + +const int kAESpecialClassProperties = 1665147681; + +const int kAEStartRecording = 1919247201; + +const int kAEStopRecording = 1919247203; + +const int kAEStoppedMoving = 1937010544; + +const int kAEStrikethrough = 1937011307; + +const int kAESubscript = 1935831907; + +const int kAESuperscript = 1936749411; + +const int kAESuspend = 1937077104; + +const int kAETableSuite = 1952607347; + +const int kAETerminologyExtension = 1634038885; + +const int kAETextSuite = 1413830740; + +const int kAETransactionTerminated = 1953788525; + +const int kAEUTApostrophe = 3; + +const int kAEUTChangesState = 12; + +const int kAEUTDirectParamIsReference = 9; + +const int kAEUTEnumListIsExclusive = 10; + +const int kAEUTEnumerated = 13; + +const int kAEUTEnumsAreTypes = 11; + +const int kAEUTFeminine = 2; + +const int kAEUTHasReturningParam = 31; + +const int kAEUTMasculine = 1; + +const int kAEUTNotDirectParamIsTarget = 8; + +const int kAEUTOptional = 15; + +const int kAEUTParamIsReference = 9; + +const int kAEUTParamIsTarget = 8; + +const int kAEUTPlural = 0; + +const int kAEUTPropertyIsReference = 9; + +const int kAEUTReadWrite = 12; + +const int kAEUTReplyIsReference = 9; + +const int kAEUTTightBindingFunction = 12; + +const int kAEUTlistOfItems = 14; + +const int kAEUnderline = 1970168940; + +const int kAEUndo = 1970168943; + +const int kAEUnknownSource = 0; + +const int kAEUp = 1970282528; + +const int kAEUpdate = 1970300020; + +const int kAEUseHTTPProxyAttr = 2020962418; + +const int kAEUseRelativeIterators = 64; + +const int kAEUseSocksAttr = 2020828019; + +const int kAEUserTerminology = 1634039156; + +const int kAEVirtualKey = 1801812323; + +const int kAEWaitReply = 3; + +const int kAEWakeUpEvent = 2002873189; + +const int kAEWantReceipt = 512; + +const int kAEWholeWordEquals = 2004313457; + +const int kAEWindowClass = 2003398244; + +const int kAEXMLRPCScheme = 1380991794; + +const int kAEYes = 2036691744; + +const int kAEZoom = 2054123373; + +const int kAEZoomIn = 7; + +const int kAEZoomOut = 8; + +const int kAFPExtendedFlagsAlternateAddressMask = 1; + +const int kAFPServerIcon = 1634103411; + +const int kAFPTagLengthDDP = 6; + +const int kAFPTagLengthIP = 6; + +const int kAFPTagLengthIPPort = 8; + +const int kAFPTagTypeDDP = 3; + +const int kAFPTagTypeDNS = 4; + +const int kAFPTagTypeIP = 1; + +const int kAFPTagTypeIPPort = 2; + +const int kALMDeferSwitchErr = -30043; + +const int kALMDuplicateModuleErr = -30045; + +const int kALMGroupNotFoundErr = -30048; + +const int kALMInstallationErr = -30044; + +const int kALMInternalErr = -30049; + +const int kALMLocationNotFoundErr = -30048; + +@Deprecated('Deprecated') +const int kALMLocationsFolderType = 1717660780; + +const int kALMModuleCommunicationErr = -30046; + +@Deprecated('Deprecated') +const int kALMModulesFolderType = 2002873451; + +const int kALMNoSuchModuleErr = -30047; + +@Deprecated('Deprecated') +const int kALMPreferencesFolderType = 1953655152; + +const int kALMRebootFlagsLevelErr = -30042; + +const int kANKRCurrentVersion = 0; + +@Deprecated('Deprecated') +const int kARMMountVol = 1; + +@Deprecated('Deprecated') +const int kARMMultVols = 8; + +@Deprecated('Deprecated') +const int kARMNoUI = 2; + +@Deprecated('Deprecated') +const int kARMSearch = 256; + +@Deprecated('Deprecated') +const int kARMSearchMore = 512; + +@Deprecated('Deprecated') +const int kARMSearchRelFirst = 1024; + +@Deprecated('Deprecated') +const int kARMTryFileIDFirst = 2048; + +const int kATSBoldQDStretch = 98304; + +const int kATSCubicCurveType = 1; + +const int kATSDeletedGlyphcode = 65535; + +const int kATSFlatDataUstlCurrentVersion = 2; + +const int kATSFlatDataUstlVersion0 = 0; + +const int kATSFlatDataUstlVersion1 = 1; + +const int kATSFlatDataUstlVersion2 = 2; + +const int kATSFlattenedFontSpecifierRawNameData = 1851878756; + +const int kATSFontAutoActivationAsk = 4; + +const int kATSFontAutoActivationDefault = 0; + +const int kATSFontAutoActivationDisabled = 1; + +const int kATSFontAutoActivationEnabled = 2; + +const int kATSFontContainerRefUnspecified = 0; + +const int kATSFontContextGlobal = 1; + +const int kATSFontContextLocal = 2; + +const int kATSFontContextUnspecified = 0; + +const int kATSFontFamilyRefUnspecified = 0; + +const int kATSFontFilterCurrentVersion = 0; + +const int kATSFontFormatUnspecified = 0; + +const int kATSFontRefUnspecified = 0; + +const int kATSGenerationUnspecified = 0; + +const int kATSGlyphInfoAppleReserved = 536608744; + +const int kATSGlyphInfoByteSizeMask = 7; + +const int kATSGlyphInfoHasImposedWidth = 16; + +const int kATSGlyphInfoIsAttachment = -2147483648; + +const int kATSGlyphInfoIsLTHanger = 1073741824; + +const int kATSGlyphInfoIsRBHanger = 536870912; + +const int kATSGlyphInfoIsWhiteSpace = 262144; + +const int kATSGlyphInfoTerminatorGlyph = 524288; + +const int kATSInvalidFontAccess = -982; + +const int kATSInvalidFontContainerAccess = -985; + +const int kATSInvalidFontFamilyAccess = -981; + +const int kATSInvalidFontTableAccess = -984; + +const int kATSInvalidGlyphAccess = -986; + +const int kATSItalicQDSkew = 16384; + +const int kATSIterationCompleted = -980; + +const int kATSIterationScopeModified = -983; + +const int kATSLineAppleReserved = -52428800; + +const int kATSLineApplyAntiAliasing = 2048; + +const int kATSLineBreakToNearestCharacter = 33554432; + +const int kATSLineDisableAllBaselineAdjustments = 524288; + +const int kATSLineDisableAllGlyphMorphing = 131072; + +const int kATSLineDisableAllJustification = 65536; + +const int kATSLineDisableAllKerningAdjustments = 262144; + +const int kATSLineDisableAllLayoutOperations = 2031616; + +const int kATSLineDisableAllTrackingAdjustments = 1048576; + +const int kATSLineDisableAutoAdjustDisplayPos = 16384; + +const int kATSLineDisableNegativeJustification = 8192; + +const int kATSLineFillOutToWidth = 256; + +const int kATSLineFractDisable = 64; + +const int kATSLineHasNoHangers = 2; + +const int kATSLineHasNoOpticalAlignment = 4; + +const int kATSLineIgnoreFontLeading = 1024; + +const int kATSLineImposeNoAngleForEnds = 128; + +const int kATSLineIsDisplayOnly = 1; + +const int kATSLineKeepSpacesOutOfMargin = 8; + +const int kATSLineLastNoJustification = 32; + +const int kATSLineNoAntiAliasing = 4096; + +const int kATSLineNoLayoutOptions = 0; + +const int kATSLineNoSpecialJustification = 16; + +const int kATSLineTabAdjustEnabled = 512; + +const int kATSLineUseDeviceMetrics = 16777216; + +const int kATSLineUseQDRendering = 32768; + +const int kATSNoTracking = -2147483648; + +const int kATSOptionFlagsActivateDisabled = 32; + +const int kATSOptionFlagsComposeFontPostScriptName = 1; + +const int kATSOptionFlagsDefault = 0; + +const int kATSOptionFlagsDefaultScope = 0; + +const int kATSOptionFlagsDoNotNotify = 128; + +const int kATSOptionFlagsIncludeDisabledMask = 128; + +const int kATSOptionFlagsIterateByPrecedenceMask = 32; + +const int kATSOptionFlagsIterationScopeMask = 28672; + +const int kATSOptionFlagsProcessSubdirectories = 64; + +const int kATSOptionFlagsRecordPersistently = 262144; + +const int kATSOptionFlagsRestrictedScope = 8192; + +const int kATSOptionFlagsUnRestrictedScope = 4096; + +const int kATSOptionFlagsUseDataFork = 768; + +const int kATSOptionFlagsUseDataForkAsResourceFork = 256; + +const int kATSOptionFlagsUseResourceFork = 512; + +const int kATSOtherCurveType = 3; + +const int kATSQuadCurveType = 2; + +const int kATSRadiansFactor = 1144; + +const int kATSStyleAppleReserved = -8; + +const int kATSStyleApplyAntiAliasing = 2; + +const int kATSStyleApplyHints = 0; + +const int kATSStyleNoAntiAliasing = 4; + +const int kATSStyleNoHinting = 1; + +const int kATSStyleNoOptions = 0; + +const int kATSUAfterWithStreamShiftTag = 268; + +const int kATSUAscentTag = 284; + +const int kATSUBackgroundCallback = 1; + +const int kATSUBackgroundColor = 0; + +const int kATSUBadStreamErr = -8902; + +const int kATSUBaselineClassTag = 274; + +const int kATSUBeforeWithStreamShiftTag = 267; + +const int kATSUBusyObjectErr = -8809; + +const int kATSUByCharacter = 0; + +const int kATSUByCharacterCluster = 3; + +const int kATSUByCluster = 1; + +const int kATSUByTypographicCluster = 1; + +const int kATSUByWord = 2; + +const int kATSUCGContextTag = 32767; + +const int kATSUCenterTab = 1; + +const int kATSUClearAll = -1; + +const int kATSUColorTag = 263; + +const int kATSUCoordinateOverflowErr = -8807; + +const int kATSUCrossStreamShiftTag = 269; + +const int kATSUDataStreamUnicodeStyledText = 1970500716; + +const int kATSUDecimalTab = 3; + +const int kATSUDecompositionFactorTag = 273; + +const int kATSUDefaultFontFallbacks = 0; + +const int kATSUDescentTag = 285; + +const int kATSUDirectDataAdvanceDeltaFixedArray = 0; + +const int kATSUDirectDataBaselineDeltaFixedArray = 1; + +const int kATSUDirectDataDeviceDeltaSInt16Array = 2; + +const int kATSUDirectDataLayoutRecordATSLayoutRecordCurrent = 100; + +const int kATSUDirectDataLayoutRecordATSLayoutRecordVersion1 = 100; + +const int kATSUDirectDataStyleIndexUInt16Array = 3; + +const int kATSUDirectDataStyleSettingATSUStyleSettingRefArray = 4; + +const int kATSUFlattenOptionNoOptionsMask = 0; + +const int kATSUFontMatrixTag = 289; + +const int kATSUFontTag = 261; + +const int kATSUFontsMatched = -8793; + +const int kATSUFontsNotMatched = -8794; + +const int kATSUForceHangingTag = 280; + +const int kATSUFromFollowingLayout = -3; + +const int kATSUFromPreviousLayout = -2; + +const int kATSUFromTextBeginning = -1; + +const int kATSUGlyphSelectorTag = 287; + +const int kATSUHangingInhibitFactorTag = 271; + +const int kATSUImposeWidthTag = 266; + +const int kATSUInvalidAttributeSizeErr = -8798; + +const int kATSUInvalidAttributeTagErr = -8799; + +const int kATSUInvalidAttributeValueErr = -8797; + +const int kATSUInvalidCacheErr = -8800; + +const int kATSUInvalidCallInsideCallbackErr = -8904; + +const int kATSUInvalidFontErr = -8796; + +const int kATSUInvalidFontFallbacksErr = -8900; + +const int kATSUInvalidFontID = 0; + +const int kATSUInvalidStyleErr = -8791; + +const int kATSUInvalidTextLayoutErr = -8790; + +const int kATSUInvalidTextRangeErr = -8792; + +const int kATSUKerningInhibitFactorTag = 272; + +const int kATSULangRegionTag = 264; + +const int kATSULanguageTag = 264; + +const int kATSULastErr = -8959; + +const int kATSULastResortOnlyFallback = 1; + +const int kATSULayoutOperationAppleReserved = -64; + +const int kATSULayoutOperationBaselineAdjustment = 8; + +const int kATSULayoutOperationCallbackStatusContinue = 1; + +const int kATSULayoutOperationCallbackStatusHandled = 0; + +const int kATSULayoutOperationJustification = 1; + +const int kATSULayoutOperationKerningAdjustment = 4; + +const int kATSULayoutOperationMorph = 2; + +const int kATSULayoutOperationNone = 0; + +const int kATSULayoutOperationOverrideTag = 15; + +const int kATSULayoutOperationPostLayoutAdjustment = 32; + +const int kATSULayoutOperationTrackingAdjustment = 16; + +const int kATSULeadingTag = 286; + +const int kATSULeftTab = 0; + +const int kATSULeftToRightBaseDirection = 0; + +const int kATSULineAscentTag = 8; + +const int kATSULineBaselineValuesTag = 6; + +const int kATSULineBreakInWord = -8808; + +const int kATSULineDecimalTabCharacterTag = 14; + +const int kATSULineDescentTag = 9; + +const int kATSULineDirectionTag = 3; + +const int kATSULineFlushFactorTag = 5; + +const int kATSULineFontFallbacksTag = 13; + +const int kATSULineHighlightCGColorTag = 17; + +const int kATSULineJustificationFactorTag = 4; + +const int kATSULineLangRegionTag = 10; + +const int kATSULineLanguageTag = 10; + +const int kATSULineLayoutOptionsTag = 7; + +const int kATSULineRotationTag = 2; + +const int kATSULineTextLocatorTag = 11; + +const int kATSULineTruncationTag = 12; + +const int kATSULineWidthTag = 1; + +const int kATSULowLevelErr = -8804; + +const int kATSUMaxATSUITagValue = 65535; + +const int kATSUMaxLineTag = 18; + +const int kATSUMaxStyleTag = 299; + +const int kATSUNoCaretAngleTag = 277; + +const int kATSUNoCorrespondingFontErr = -8795; + +const int kATSUNoFontCmapAvailableErr = -8805; + +const int kATSUNoFontNameErr = -8905; + +const int kATSUNoFontScalerAvailableErr = -8806; + +const int kATSUNoLigatureSplitTag = 276; + +const int kATSUNoOpticalAlignmentTag = 279; + +const int kATSUNoSelector = 65535; + +const int kATSUNoSpecialJustificationTag = 281; + +const int kATSUNoStyleRunsAssignedErr = -8802; + +const int kATSUNotSetErr = -8801; + +const int kATSUNumberTabTypes = 4; + +const int kATSUOutputBufferTooSmallErr = -8903; + +const int kATSUPriorityJustOverrideTag = 275; + +const int kATSUQDBoldfaceTag = 256; + +const int kATSUQDCondensedTag = 259; + +const int kATSUQDExtendedTag = 260; + +const int kATSUQDItalicTag = 257; + +const int kATSUQDUnderlineTag = 258; + +const int kATSUQuickDrawTextErr = -8803; + +const int kATSURGBAlphaColorTag = 288; + +const int kATSURightTab = 2; + +const int kATSURightToLeftBaseDirection = 1; + +const int kATSUSequentialFallbacksExclusive = 3; + +const int kATSUSequentialFallbacksPreferred = 2; + +const int kATSUSizeTag = 262; + +const int kATSUStronglyHorizontal = 0; + +const int kATSUStronglyVertical = 1; + +const int kATSUStyleContainedBy = 3; + +const int kATSUStyleContains = 1; + +const int kATSUStyleDoubleLineCount = 2; + +const int kATSUStyleDropShadowBlurOptionTag = 296; + +const int kATSUStyleDropShadowColorOptionTag = 298; + +const int kATSUStyleDropShadowOffsetOptionTag = 297; + +const int kATSUStyleDropShadowTag = 295; + +const int kATSUStyleEquals = 2; + +const int kATSUStyleRenderingOptionsTag = 283; + +const int kATSUStyleSingleLineCount = 1; + +const int kATSUStyleStrikeThroughColorOptionTag = 294; + +const int kATSUStyleStrikeThroughCountOptionTag = 293; + +const int kATSUStyleStrikeThroughTag = 292; + +const int kATSUStyleTextLocatorTag = 282; + +const int kATSUStyleUnderlineColorOptionTag = 291; + +const int kATSUStyleUnderlineCountOptionTag = 290; + +const int kATSUStyleUnequal = 0; + +const int kATSUSuppressCrossKerningTag = 278; + +const int kATSUToTextEnd = -1; + +const int kATSUTrackingTag = 270; + +const int kATSUTruncFeatNoSquishing = 8; + +const int kATSUTruncateEnd = 2; + +const int kATSUTruncateMiddle = 3; + +const int kATSUTruncateNone = 0; + +const int kATSUTruncateSpecificationMask = 7; + +const int kATSUTruncateStart = 1; + +const int kATSUUnFlattenOptionNoOptionsMask = 0; + +const int kATSUUnsupportedStreamFormatErr = -8901; + +const int kATSUUseGrafPortPenLoc = -1; + +const int kATSUUseLineControlWidth = 2147483647; + +const int kATSUVerticalCharacterTag = 265; + +const int kATSUseCaretOrigins = 0; + +const int kATSUseDeviceOrigins = 1; + +const int kATSUseFractionalOrigins = 2; + +const int kATSUseGlyphAdvance = 2147483647; + +const int kATSUseLineHeight = 2147483647; + +const int kATSUseOriginFlags = 3; + +const int kAXValueAXErrorType = 5; + +const int kAXValueCFRangeType = 4; + +const int kAXValueCGPointType = 1; + +const int kAXValueCGRectType = 3; + +const int kAXValueCGSizeType = 2; + +const int kAXValueIllegalType = 0; + +const int kAbbrevSquaredLigaturesOffSelector = 15; + +const int kAbbrevSquaredLigaturesOnSelector = 14; + +@Deprecated('Deprecated') +const int kAccessException = 3; + +const int kAccountKCItemAttr = 1633903476; + +const int kAddKCEvent = 3; + +const int kAddKCEventMask = 8; + +const int kAddressKCItemAttr = 1633969266; + +const int kAlertCautionBadgeIcon = 1667392615; + +const int kAlertCautionIcon = 1667331444; + +const int kAlertNoteIcon = 1852798053; + +const int kAlertStopIcon = 1937010544; + +const int kAliasBadgeIcon = 1633838183; + +const int kAlignAbsoluteCenter = 5; + +const int kAlignBottom = 3; + +const int kAlignBottomLeft = 11; + +const int kAlignBottomRight = 15; + +const int kAlignCenterBottom = 7; + +const int kAlignCenterLeft = 9; + +const int kAlignCenterRight = 13; + +const int kAlignCenterTop = 6; + +const int kAlignHorizontalCenter = 4; + +const int kAlignLeft = 8; + +const int kAlignNone = 0; + +const int kAlignRight = 12; + +const int kAlignTop = 2; + +const int kAlignTopLeft = 10; + +const int kAlignTopRight = 14; + +const int kAlignVerticalCenter = 1; + +const int kAllCapsSelector = 1; + +const int kAllLowerCaseSelector = 2; + +const int kAllPPDDomains = 1; + +const int kAllTypeFeaturesOffSelector = 1; + +const int kAllTypeFeaturesOnSelector = 0; + +const int kAllTypographicFeaturesType = 0; + +const int kAlreadySavedStateErr = -9105; + +const int kAltHalfWidthTextSelector = 6; + +const int kAltProportionalTextSelector = 5; + +const int kAlternateHorizKanaOffSelector = 1; + +const int kAlternateHorizKanaOnSelector = 0; + +const int kAlternateKanaType = 34; + +const int kAlternateVertKanaOffSelector = 3; + +const int kAlternateVertKanaOnSelector = 2; + +const int kAlwaysSendSubject = 8192; + +const int kAndConnections = 268435453; + +const int kAnnotationType = 24; + +const int kAnyAuthType = 0; + +@Deprecated('Deprecated') +const int kAnyComponentFlagsMask = 0; + +@Deprecated('Deprecated') +const int kAnyComponentManufacturer = 0; + +@Deprecated('Deprecated') +const int kAnyComponentSubType = 0; + +@Deprecated('Deprecated') +const int kAnyComponentType = 0; + +const int kAnyPort = 0; + +const int kAnyProtocol = 0; + +const int kAnyTransactionID = 0; + +const int kAppPackageAliasType = 1717661793; + +const int kAppearanceFolderIcon = 1634758770; + +@Deprecated('Deprecated') +const int kAppearanceFolderType = 1634758770; + +const int kAppleExtrasFolderIcon = 1634040004; + +@Deprecated('Deprecated') +const int kAppleExtrasFolderType = 1634040004; + +const int kAppleLogoIcon = 1667330156; + +const int kAppleLosslessFormatFlag_16BitSourceData = 1; + +const int kAppleLosslessFormatFlag_20BitSourceData = 2; + +const int kAppleLosslessFormatFlag_24BitSourceData = 3; + +const int kAppleLosslessFormatFlag_32BitSourceData = 4; + +@Deprecated('Deprecated') +const int kAppleManufacturer = 1634758764; + +const int kAppleMenuFolderAliasType = 1717657965; + +const int kAppleMenuFolderIcon = 1634561653; + +const int kAppleMenuFolderIconResource = -3982; + +@Deprecated('Deprecated') +const int kAppleMenuFolderType = 1634561653; + +const int kAppleMenuIcon = 1935765612; + +const int kAppleScriptBadgeIcon = 1935897200; + +@Deprecated('Deprecated') +const int kAppleShareAuthenticationFolderType = 1635087464; + +const int kAppleSharePasswordKCItemClass = 1634953328; + +@Deprecated('Deprecated') +const int kAppleShareSupportFolderType = 1936220530; + +const int kAppleTalkIcon = 1635019883; + +const int kAppleTalkZoneIcon = 1635023470; + +@Deprecated('Deprecated') +const int kAppleshareAutomountServerAliasesFolderType = 1936881348; + +const int kApplicationAliasType = 1633972848; + +const int kApplicationCPAliasType = 1633903728; + +const int kApplicationDAAliasType = 1633969264; + +const int kApplicationSupportFolderIcon = 1634956656; + +@Deprecated('Deprecated') +const int kApplicationSupportFolderType = 1634956656; + +@Deprecated('Deprecated') +const int kApplicationThreadID = 2; + +const int kApplicationsFolderIcon = 1634758771; + +@Deprecated('Deprecated') +const int kApplicationsFolderType = 1634758771; + +const int kAssistantsFolderIcon = 1634956484; + +@Deprecated('Deprecated') +const int kAssistantsFolderType = 1634956484; + +const int kAsteriskToMultiplyOffSelector = 3; + +const int kAsteriskToMultiplyOnSelector = 2; + +const int kAsyncEjectComplete = 6; + +const int kAsyncEjectInProgress = 5; + +const int kAsyncMountComplete = 2; + +const int kAsyncMountInProgress = 1; + +const int kAsyncUnmountComplete = 4; + +const int kAsyncUnmountInProgress = 3; + +const int kAttemptDupCardEntryErr = -9106; + +@Deprecated('Deprecated') +const int kAudioAlertSoundsFolderType = 1634497140; + +const int kAudioChannelLabel_Ambisonic_W = 200; + +const int kAudioChannelLabel_Ambisonic_X = 201; + +const int kAudioChannelLabel_Ambisonic_Y = 202; + +const int kAudioChannelLabel_Ambisonic_Z = 203; + +const int kAudioChannelLabel_BeginReserved = -268435456; + +const int kAudioChannelLabel_BinauralLeft = 208; + +const int kAudioChannelLabel_BinauralRight = 209; + +const int kAudioChannelLabel_Center = 3; + +const int kAudioChannelLabel_CenterBottom = 59; + +const int kAudioChannelLabel_CenterSurround = 9; + +const int kAudioChannelLabel_CenterSurroundDirect = 44; + +const int kAudioChannelLabel_CenterTopFront = 14; + +const int kAudioChannelLabel_CenterTopMiddle = 12; + +const int kAudioChannelLabel_CenterTopRear = 53; + +const int kAudioChannelLabel_ClickTrack = 304; + +const int kAudioChannelLabel_DialogCentricMix = 43; + +const int kAudioChannelLabel_Discrete = 400; + +const int kAudioChannelLabel_Discrete_0 = 65536; + +const int kAudioChannelLabel_Discrete_1 = 65537; + +const int kAudioChannelLabel_Discrete_10 = 65546; + +const int kAudioChannelLabel_Discrete_11 = 65547; + +const int kAudioChannelLabel_Discrete_12 = 65548; + +const int kAudioChannelLabel_Discrete_13 = 65549; + +const int kAudioChannelLabel_Discrete_14 = 65550; + +const int kAudioChannelLabel_Discrete_15 = 65551; + +const int kAudioChannelLabel_Discrete_2 = 65538; + +const int kAudioChannelLabel_Discrete_3 = 65539; + +const int kAudioChannelLabel_Discrete_4 = 65540; + +const int kAudioChannelLabel_Discrete_5 = 65541; + +const int kAudioChannelLabel_Discrete_6 = 65542; + +const int kAudioChannelLabel_Discrete_65535 = 131071; + +const int kAudioChannelLabel_Discrete_7 = 65543; + +const int kAudioChannelLabel_Discrete_8 = 65544; + +const int kAudioChannelLabel_Discrete_9 = 65545; + +const int kAudioChannelLabel_EndReserved = -2; + +const int kAudioChannelLabel_ForeignLanguage = 305; + +const int kAudioChannelLabel_HOA_ACN = 500; + +const int kAudioChannelLabel_HOA_ACN_0 = 131072; + +const int kAudioChannelLabel_HOA_ACN_1 = 131073; + +const int kAudioChannelLabel_HOA_ACN_10 = 131082; + +const int kAudioChannelLabel_HOA_ACN_11 = 131083; + +const int kAudioChannelLabel_HOA_ACN_12 = 131084; + +const int kAudioChannelLabel_HOA_ACN_13 = 131085; + +const int kAudioChannelLabel_HOA_ACN_14 = 131086; + +const int kAudioChannelLabel_HOA_ACN_15 = 131087; + +const int kAudioChannelLabel_HOA_ACN_2 = 131074; + +const int kAudioChannelLabel_HOA_ACN_3 = 131075; + +const int kAudioChannelLabel_HOA_ACN_4 = 131076; + +const int kAudioChannelLabel_HOA_ACN_5 = 131077; + +const int kAudioChannelLabel_HOA_ACN_6 = 131078; + +const int kAudioChannelLabel_HOA_ACN_65024 = 196096; + +const int kAudioChannelLabel_HOA_ACN_7 = 131079; + +const int kAudioChannelLabel_HOA_ACN_8 = 131080; + +const int kAudioChannelLabel_HOA_ACN_9 = 131081; + +const int kAudioChannelLabel_HOA_N3D = 196608; + +const int kAudioChannelLabel_HOA_SN3D = 131072; + +const int kAudioChannelLabel_Haptic = 45; + +const int kAudioChannelLabel_HeadphonesLeft = 301; + +const int kAudioChannelLabel_HeadphonesRight = 302; + +const int kAudioChannelLabel_HearingImpaired = 40; + +const int kAudioChannelLabel_LFE2 = 37; + +const int kAudioChannelLabel_LFE3 = 62; + +const int kAudioChannelLabel_LFEScreen = 4; + +const int kAudioChannelLabel_Left = 1; + +const int kAudioChannelLabel_LeftBackSurround = 63; + +const int kAudioChannelLabel_LeftBottom = 57; + +const int kAudioChannelLabel_LeftCenter = 7; + +const int kAudioChannelLabel_LeftEdgeOfScreen = 65; + +const int kAudioChannelLabel_LeftSideSurround = 55; + +const int kAudioChannelLabel_LeftSurround = 5; + +const int kAudioChannelLabel_LeftSurroundDirect = 10; + +const int kAudioChannelLabel_LeftTopFront = 13; + +const int kAudioChannelLabel_LeftTopMiddle = 49; + +const int kAudioChannelLabel_LeftTopRear = 52; + +const int kAudioChannelLabel_LeftTopSurround = 60; + +const int kAudioChannelLabel_LeftTotal = 38; + +const int kAudioChannelLabel_LeftWide = 35; + +const int kAudioChannelLabel_MS_Mid = 204; + +const int kAudioChannelLabel_MS_Side = 205; + +const int kAudioChannelLabel_Mono = 42; + +const int kAudioChannelLabel_Narration = 41; + +const int kAudioChannelLabel_Object = 262144; + +const int kAudioChannelLabel_RearSurroundLeft = 33; + +const int kAudioChannelLabel_RearSurroundRight = 34; + +const int kAudioChannelLabel_Right = 2; + +const int kAudioChannelLabel_RightBackSurround = 64; + +const int kAudioChannelLabel_RightBottom = 58; + +const int kAudioChannelLabel_RightCenter = 8; + +const int kAudioChannelLabel_RightEdgeOfScreen = 66; + +const int kAudioChannelLabel_RightSideSurround = 56; + +const int kAudioChannelLabel_RightSurround = 6; + +const int kAudioChannelLabel_RightSurroundDirect = 11; + +const int kAudioChannelLabel_RightTopFront = 15; + +const int kAudioChannelLabel_RightTopMiddle = 51; + +const int kAudioChannelLabel_RightTopRear = 54; + +const int kAudioChannelLabel_RightTopSurround = 61; + +const int kAudioChannelLabel_RightTotal = 39; + +const int kAudioChannelLabel_RightWide = 36; + +const int kAudioChannelLabel_TopBackCenter = 17; + +const int kAudioChannelLabel_TopBackLeft = 16; + +const int kAudioChannelLabel_TopBackRight = 18; + +const int kAudioChannelLabel_TopCenterSurround = 12; + +const int kAudioChannelLabel_Unknown = -1; + +const int kAudioChannelLabel_Unused = 0; + +const int kAudioChannelLabel_UseCoordinates = 100; + +const int kAudioChannelLabel_VerticalHeightCenter = 14; + +const int kAudioChannelLabel_VerticalHeightLeft = 13; + +const int kAudioChannelLabel_VerticalHeightRight = 15; + +const int kAudioChannelLabel_XY_X = 206; + +const int kAudioChannelLabel_XY_Y = 207; + +const int kAudioChannelLayoutTag_AAC_3_0 = 7471107; + +const int kAudioChannelLayoutTag_AAC_4_0 = 7602180; + +const int kAudioChannelLayoutTag_AAC_5_0 = 7864325; + +const int kAudioChannelLayoutTag_AAC_5_1 = 8126470; + +const int kAudioChannelLayoutTag_AAC_6_0 = 9240582; + +const int kAudioChannelLayoutTag_AAC_6_1 = 9306119; + +const int kAudioChannelLayoutTag_AAC_7_0 = 9371655; + +const int kAudioChannelLayoutTag_AAC_7_1 = 8323080; + +const int kAudioChannelLayoutTag_AAC_7_1_B = 11993096; + +const int kAudioChannelLayoutTag_AAC_7_1_C = 12058632; + +const int kAudioChannelLayoutTag_AAC_Octagonal = 9437192; + +const int kAudioChannelLayoutTag_AAC_Quadraphonic = 7077892; + +const int kAudioChannelLayoutTag_AC3_1_0_1 = 9764866; + +const int kAudioChannelLayoutTag_AC3_2_1_1 = 10027012; + +const int kAudioChannelLayoutTag_AC3_3_0 = 9830403; + +const int kAudioChannelLayoutTag_AC3_3_0_1 = 9961476; + +const int kAudioChannelLayoutTag_AC3_3_1 = 9895940; + +const int kAudioChannelLayoutTag_AC3_3_1_1 = 10092549; + +const int kAudioChannelLayoutTag_Ambisonic_B_Format = 7012356; + +const int kAudioChannelLayoutTag_Atmos_5_1_2 = 12713992; + +const int kAudioChannelLayoutTag_Atmos_5_1_4 = 12779530; + +const int kAudioChannelLayoutTag_Atmos_7_1_2 = 12845066; + +const int kAudioChannelLayoutTag_Atmos_7_1_4 = 12582924; + +const int kAudioChannelLayoutTag_Atmos_9_1_6 = 12648464; + +const int kAudioChannelLayoutTag_AudioUnit_4 = 7077892; + +const int kAudioChannelLayoutTag_AudioUnit_5 = 7143429; + +const int kAudioChannelLayoutTag_AudioUnit_5_0 = 7733253; + +const int kAudioChannelLayoutTag_AudioUnit_5_1 = 7929862; + +const int kAudioChannelLayoutTag_AudioUnit_6 = 7208966; + +const int kAudioChannelLayoutTag_AudioUnit_6_0 = 9109510; + +const int kAudioChannelLayoutTag_AudioUnit_6_1 = 8192007; + +const int kAudioChannelLayoutTag_AudioUnit_7_0 = 9175047; + +const int kAudioChannelLayoutTag_AudioUnit_7_0_Front = 9699335; + +const int kAudioChannelLayoutTag_AudioUnit_7_1 = 8388616; + +const int kAudioChannelLayoutTag_AudioUnit_7_1_Front = 8257544; + +const int kAudioChannelLayoutTag_AudioUnit_8 = 7274504; + +const int kAudioChannelLayoutTag_BeginReserved = -268435456; + +const int kAudioChannelLayoutTag_Binaural = 6946818; + +const int kAudioChannelLayoutTag_CICP_1 = 6553601; + +const int kAudioChannelLayoutTag_CICP_10 = 8650756; + +const int kAudioChannelLayoutTag_CICP_11 = 8192007; + +const int kAudioChannelLayoutTag_CICP_12 = 8388616; + +const int kAudioChannelLayoutTag_CICP_13 = 13369368; + +const int kAudioChannelLayoutTag_CICP_14 = 13434888; + +const int kAudioChannelLayoutTag_CICP_15 = 13500428; + +const int kAudioChannelLayoutTag_CICP_16 = 13565962; + +const int kAudioChannelLayoutTag_CICP_17 = 13631500; + +const int kAudioChannelLayoutTag_CICP_18 = 13697038; + +const int kAudioChannelLayoutTag_CICP_19 = 13762572; + +const int kAudioChannelLayoutTag_CICP_2 = 6619138; + +const int kAudioChannelLayoutTag_CICP_20 = 13828110; + +const int kAudioChannelLayoutTag_CICP_3 = 7405571; + +const int kAudioChannelLayoutTag_CICP_4 = 7536644; + +const int kAudioChannelLayoutTag_CICP_5 = 7667717; + +const int kAudioChannelLayoutTag_CICP_6 = 7929862; + +const int kAudioChannelLayoutTag_CICP_7 = 8323080; + +const int kAudioChannelLayoutTag_CICP_9 = 8585219; + +const int kAudioChannelLayoutTag_Cube = 7340040; + +const int kAudioChannelLayoutTag_DTS_3_1 = 11010052; + +const int kAudioChannelLayoutTag_DTS_4_1 = 11075589; + +const int kAudioChannelLayoutTag_DTS_6_0_A = 11141126; + +const int kAudioChannelLayoutTag_DTS_6_0_B = 11206662; + +const int kAudioChannelLayoutTag_DTS_6_0_C = 11272198; + +const int kAudioChannelLayoutTag_DTS_6_1_A = 11337735; + +const int kAudioChannelLayoutTag_DTS_6_1_B = 11403271; + +const int kAudioChannelLayoutTag_DTS_6_1_C = 11468807; + +const int kAudioChannelLayoutTag_DTS_6_1_D = 11927559; + +const int kAudioChannelLayoutTag_DTS_7_0 = 11534343; + +const int kAudioChannelLayoutTag_DTS_7_1 = 11599880; + +const int kAudioChannelLayoutTag_DTS_8_0_A = 11665416; + +const int kAudioChannelLayoutTag_DTS_8_0_B = 11730952; + +const int kAudioChannelLayoutTag_DTS_8_1_A = 11796489; + +const int kAudioChannelLayoutTag_DTS_8_1_B = 11862025; + +const int kAudioChannelLayoutTag_DVD_0 = 6553601; + +const int kAudioChannelLayoutTag_DVD_1 = 6619138; + +const int kAudioChannelLayoutTag_DVD_10 = 8912900; + +const int kAudioChannelLayoutTag_DVD_11 = 8978437; + +const int kAudioChannelLayoutTag_DVD_12 = 7929862; + +const int kAudioChannelLayoutTag_DVD_13 = 7536644; + +const int kAudioChannelLayoutTag_DVD_14 = 7667717; + +const int kAudioChannelLayoutTag_DVD_15 = 8912900; + +const int kAudioChannelLayoutTag_DVD_16 = 8978437; + +const int kAudioChannelLayoutTag_DVD_17 = 7929862; + +const int kAudioChannelLayoutTag_DVD_18 = 9043973; + +const int kAudioChannelLayoutTag_DVD_19 = 7733253; + +const int kAudioChannelLayoutTag_DVD_2 = 8585219; + +const int kAudioChannelLayoutTag_DVD_20 = 7995398; + +const int kAudioChannelLayoutTag_DVD_3 = 8650756; + +const int kAudioChannelLayoutTag_DVD_4 = 8716291; + +const int kAudioChannelLayoutTag_DVD_5 = 8781828; + +const int kAudioChannelLayoutTag_DVD_6 = 8847365; + +const int kAudioChannelLayoutTag_DVD_7 = 7405571; + +const int kAudioChannelLayoutTag_DVD_8 = 7536644; + +const int kAudioChannelLayoutTag_DVD_9 = 7667717; + +const int kAudioChannelLayoutTag_DiscreteInOrder = 9633792; + +const int kAudioChannelLayoutTag_EAC3_6_1_A = 10289159; + +const int kAudioChannelLayoutTag_EAC3_6_1_B = 10354695; + +const int kAudioChannelLayoutTag_EAC3_6_1_C = 10420231; + +const int kAudioChannelLayoutTag_EAC3_7_1_A = 10485768; + +const int kAudioChannelLayoutTag_EAC3_7_1_B = 10551304; + +const int kAudioChannelLayoutTag_EAC3_7_1_C = 10616840; + +const int kAudioChannelLayoutTag_EAC3_7_1_D = 10682376; + +const int kAudioChannelLayoutTag_EAC3_7_1_E = 10747912; + +const int kAudioChannelLayoutTag_EAC3_7_1_F = 10813448; + +const int kAudioChannelLayoutTag_EAC3_7_1_G = 10878984; + +const int kAudioChannelLayoutTag_EAC3_7_1_H = 10944520; + +const int kAudioChannelLayoutTag_EAC_6_0_A = 10158086; + +const int kAudioChannelLayoutTag_EAC_7_0_A = 10223623; + +const int kAudioChannelLayoutTag_Emagic_Default_7_1 = 8454152; + +const int kAudioChannelLayoutTag_EndReserved = -65537; + +const int kAudioChannelLayoutTag_HOA_ACN_N3D = 12517376; + +const int kAudioChannelLayoutTag_HOA_ACN_SN3D = 12451840; + +const int kAudioChannelLayoutTag_Hexagonal = 7208966; + +const int kAudioChannelLayoutTag_ITU_1_0 = 6553601; + +const int kAudioChannelLayoutTag_ITU_2_0 = 6619138; + +const int kAudioChannelLayoutTag_ITU_2_1 = 8585219; + +const int kAudioChannelLayoutTag_ITU_2_2 = 8650756; + +const int kAudioChannelLayoutTag_ITU_3_0 = 7405571; + +const int kAudioChannelLayoutTag_ITU_3_1 = 7536644; + +const int kAudioChannelLayoutTag_ITU_3_2 = 7667717; + +const int kAudioChannelLayoutTag_ITU_3_2_1 = 7929862; + +const int kAudioChannelLayoutTag_ITU_3_4_1 = 8388616; + +const int kAudioChannelLayoutTag_Logic_4_0_A = 7536644; + +const int kAudioChannelLayoutTag_Logic_4_0_B = 7602180; + +const int kAudioChannelLayoutTag_Logic_4_0_C = 12910596; + +const int kAudioChannelLayoutTag_Logic_5_0_A = 7667717; + +const int kAudioChannelLayoutTag_Logic_5_0_B = 7733253; + +const int kAudioChannelLayoutTag_Logic_5_0_C = 7798789; + +const int kAudioChannelLayoutTag_Logic_5_0_D = 7864325; + +const int kAudioChannelLayoutTag_Logic_5_1_A = 7929862; + +const int kAudioChannelLayoutTag_Logic_5_1_B = 7995398; + +const int kAudioChannelLayoutTag_Logic_5_1_C = 8060934; + +const int kAudioChannelLayoutTag_Logic_5_1_D = 8126470; + +const int kAudioChannelLayoutTag_Logic_6_0_A = 9240582; + +const int kAudioChannelLayoutTag_Logic_6_0_B = 12976134; + +const int kAudioChannelLayoutTag_Logic_6_0_C = 9109510; + +const int kAudioChannelLayoutTag_Logic_6_1_A = 9306119; + +const int kAudioChannelLayoutTag_Logic_6_1_B = 13041671; + +const int kAudioChannelLayoutTag_Logic_6_1_C = 8192007; + +const int kAudioChannelLayoutTag_Logic_6_1_D = 13107207; + +const int kAudioChannelLayoutTag_Logic_7_1_A = 8388616; + +const int kAudioChannelLayoutTag_Logic_7_1_B = 13172744; + +const int kAudioChannelLayoutTag_Logic_7_1_C = 8388616; + +const int kAudioChannelLayoutTag_Logic_7_1_SDDS_A = 8257544; + +const int kAudioChannelLayoutTag_Logic_7_1_SDDS_B = 8323080; + +const int kAudioChannelLayoutTag_Logic_7_1_SDDS_C = 8454152; + +const int kAudioChannelLayoutTag_Logic_Atmos_5_1_2 = 12713992; + +const int kAudioChannelLayoutTag_Logic_Atmos_5_1_4 = 12779530; + +const int kAudioChannelLayoutTag_Logic_Atmos_7_1_2 = 12845066; + +const int kAudioChannelLayoutTag_Logic_Atmos_7_1_4_A = 12582924; + +const int kAudioChannelLayoutTag_Logic_Atmos_7_1_4_B = 13238284; + +const int kAudioChannelLayoutTag_Logic_Atmos_7_1_6 = 13303822; + +const int kAudioChannelLayoutTag_Logic_Mono = 6553601; + +const int kAudioChannelLayoutTag_Logic_Quadraphonic = 7077892; + +const int kAudioChannelLayoutTag_Logic_Stereo = 6619138; + +const int kAudioChannelLayoutTag_MPEG_1_0 = 6553601; + +const int kAudioChannelLayoutTag_MPEG_2_0 = 6619138; + +const int kAudioChannelLayoutTag_MPEG_3_0_A = 7405571; + +const int kAudioChannelLayoutTag_MPEG_3_0_B = 7471107; + +const int kAudioChannelLayoutTag_MPEG_4_0_A = 7536644; + +const int kAudioChannelLayoutTag_MPEG_4_0_B = 7602180; + +const int kAudioChannelLayoutTag_MPEG_5_0_A = 7667717; + +const int kAudioChannelLayoutTag_MPEG_5_0_B = 7733253; + +const int kAudioChannelLayoutTag_MPEG_5_0_C = 7798789; + +const int kAudioChannelLayoutTag_MPEG_5_0_D = 7864325; + +const int kAudioChannelLayoutTag_MPEG_5_0_E = 14155781; + +const int kAudioChannelLayoutTag_MPEG_5_1_A = 7929862; + +const int kAudioChannelLayoutTag_MPEG_5_1_B = 7995398; + +const int kAudioChannelLayoutTag_MPEG_5_1_C = 8060934; + +const int kAudioChannelLayoutTag_MPEG_5_1_D = 8126470; + +const int kAudioChannelLayoutTag_MPEG_5_1_E = 14221318; + +const int kAudioChannelLayoutTag_MPEG_6_1_A = 8192007; + +const int kAudioChannelLayoutTag_MPEG_6_1_B = 14286855; + +const int kAudioChannelLayoutTag_MPEG_7_1_A = 8257544; + +const int kAudioChannelLayoutTag_MPEG_7_1_B = 8323080; + +const int kAudioChannelLayoutTag_MPEG_7_1_C = 8388616; + +const int kAudioChannelLayoutTag_MPEG_7_1_D = 14352392; + +const int kAudioChannelLayoutTag_MatrixStereo = 6750210; + +const int kAudioChannelLayoutTag_MidSide = 6815746; + +const int kAudioChannelLayoutTag_Mono = 6553601; + +const int kAudioChannelLayoutTag_Octagonal = 7274504; + +const int kAudioChannelLayoutTag_Ogg_3_0 = 9830403; + +const int kAudioChannelLayoutTag_Ogg_4_0 = 12124164; + +const int kAudioChannelLayoutTag_Ogg_5_0 = 13893637; + +const int kAudioChannelLayoutTag_Ogg_5_1 = 13959174; + +const int kAudioChannelLayoutTag_Ogg_6_1 = 14024711; + +const int kAudioChannelLayoutTag_Ogg_7_1 = 14090248; + +const int kAudioChannelLayoutTag_Pentagonal = 7143429; + +const int kAudioChannelLayoutTag_Quadraphonic = 7077892; + +const int kAudioChannelLayoutTag_SMPTE_DTV = 8519688; + +const int kAudioChannelLayoutTag_Stereo = 6619138; + +const int kAudioChannelLayoutTag_StereoHeadphones = 6684674; + +const int kAudioChannelLayoutTag_TMH_10_2_full = 9568277; + +const int kAudioChannelLayoutTag_TMH_10_2_std = 9502736; + +const int kAudioChannelLayoutTag_Unknown = -65536; + +const int kAudioChannelLayoutTag_UseChannelBitmap = 65536; + +const int kAudioChannelLayoutTag_UseChannelDescriptions = 0; + +const int kAudioChannelLayoutTag_WAVE_2_1 = 8716291; + +const int kAudioChannelLayoutTag_WAVE_3_0 = 7405571; + +const int kAudioChannelLayoutTag_WAVE_4_0_A = 8650756; + +const int kAudioChannelLayoutTag_WAVE_4_0_B = 12124164; + +const int kAudioChannelLayoutTag_WAVE_5_0_A = 7667717; + +const int kAudioChannelLayoutTag_WAVE_5_0_B = 12189701; + +const int kAudioChannelLayoutTag_WAVE_5_1_A = 7929862; + +const int kAudioChannelLayoutTag_WAVE_5_1_B = 12255238; + +const int kAudioChannelLayoutTag_WAVE_6_1 = 12320775; + +const int kAudioChannelLayoutTag_WAVE_7_1 = 12386312; + +const int kAudioChannelLayoutTag_XY = 6881282; + +@Deprecated('Deprecated') +const int kAudioComponentsFolderType = 1633906032; + +@Deprecated('Deprecated') +const int kAudioDigidesignFolderType = 1633970535; + +const int kAudioFormat60958AC3 = 1667326771; + +const int kAudioFormatAC3 = 1633889587; + +const int kAudioFormatAES3 = 1634038579; + +const int kAudioFormatALaw = 1634492791; + +const int kAudioFormatAMR = 1935764850; + +const int kAudioFormatAMR_WB = 1935767394; + +const int kAudioFormatAPAC = 1634754915; + +const int kAudioFormatAppleIMA4 = 1768775988; + +const int kAudioFormatAppleLossless = 1634492771; + +const int kAudioFormatAudible = 1096107074; + +const int kAudioFormatDVIIntelIMA = 1836253201; + +const int kAudioFormatEnhancedAC3 = 1700998451; + +const int kAudioFormatFLAC = 1718378851; + +const int kAudioFormatFlagIsAlignedHigh = 16; + +const int kAudioFormatFlagIsBigEndian = 2; + +const int kAudioFormatFlagIsFloat = 1; + +const int kAudioFormatFlagIsNonInterleaved = 32; + +const int kAudioFormatFlagIsNonMixable = 64; + +const int kAudioFormatFlagIsPacked = 8; + +const int kAudioFormatFlagIsSignedInteger = 4; + +const int kAudioFormatFlagsAreAllClear = -2147483648; + +@Deprecated('The concept of canonical formats is deprecated') +const int kAudioFormatFlagsAudioUnitCanonical = 41; + +@Deprecated('The concept of canonical formats is deprecated') +const int kAudioFormatFlagsCanonical = 9; + +const int kAudioFormatFlagsNativeEndian = 0; + +const int kAudioFormatFlagsNativeFloatPacked = 9; + +const int kAudioFormatLinearPCM = 1819304813; + +const int kAudioFormatMACE3 = 1296122675; + +const int kAudioFormatMACE6 = 1296122678; + +const int kAudioFormatMIDIStream = 1835623529; + +const int kAudioFormatMPEG4AAC = 1633772320; + +const int kAudioFormatMPEG4AAC_ELD = 1633772389; + +const int kAudioFormatMPEG4AAC_ELD_SBR = 1633772390; + +const int kAudioFormatMPEG4AAC_ELD_V2 = 1633772391; + +const int kAudioFormatMPEG4AAC_HE = 1633772392; + +const int kAudioFormatMPEG4AAC_HE_V2 = 1633772400; + +const int kAudioFormatMPEG4AAC_LD = 1633772396; + +const int kAudioFormatMPEG4AAC_Spatial = 1633772403; + +const int kAudioFormatMPEG4CELP = 1667591280; + +const int kAudioFormatMPEG4HVXC = 1752594531; + +const int kAudioFormatMPEG4TwinVQ = 1953986161; + +const int kAudioFormatMPEGD_USAC = 1970495843; + +const int kAudioFormatMPEGLayer1 = 778924081; + +const int kAudioFormatMPEGLayer2 = 778924082; + +const int kAudioFormatMPEGLayer3 = 778924083; + +const int kAudioFormatMicrosoftGSM = 1836253233; + +const int kAudioFormatOpus = 1869641075; + +const int kAudioFormatParameterValueStream = 1634760307; + +const int kAudioFormatQDesign = 1363430723; + +const int kAudioFormatQDesign2 = 1363430706; + +const int kAudioFormatQUALCOMM = 1365470320; + +const int kAudioFormatTimeCode = 1953066341; + +const int kAudioFormatULaw = 1970037111; + +const int kAudioFormatiLBC = 1768710755; + +@Deprecated('Deprecated') +const int kAudioPlugInsFolderType = 1634757735; + +@Deprecated('Deprecated') +const int kAudioPresetsFolderType = 1634759540; + +@Deprecated('Deprecated') +const int kAudioSoundBanksFolderType = 1650552427; + +@Deprecated('Deprecated') +const int kAudioSoundsFolderType = 1634954852; + +const double kAudioStreamAnyRate = 0.0; + +@Deprecated('Deprecated') +const int kAudioSupportFolderType = 1633970543; + +const int kAudioUnitProperty_SpeechChannel = 3331; + +const int kAudioUnitProperty_Voice = 3330; + +const int kAudioUnitSubType_SpeechSynthesis = 1953788784; + +@Deprecated('Deprecated') +const int kAudioVSTFolderType = 1635152756; + +const int kAudio_BadFilePathError = 561017960; + +const int kAudio_FileNotFoundError = -43; + +const int kAudio_FilePermissionError = -54; + +const int kAudio_MemFullError = -108; + +const int kAudio_NoError = 0; + +const int kAudio_ParamError = -50; + +const int kAudio_TooManyFilesOpenError = -42; + +const int kAudio_UnimplementedError = -4; + +const int kAuthTypeKCItemAttr = 1635023216; + +const int kAuthorizationFlagCanNotPreAuthorize = 1; + +const int kAutoGenerateReturnID = -1; + +@Deprecated('Deprecated') +const int kAutomatorWorkflowsFolderType = 1718382455; + +@Deprecated('Deprecated') +const int kAutosaveInformationFolderType = 1634951542; + +@Deprecated('Deprecated') +const int kBLibTag2 = 1112303970; + +const int kBSLNControlPointFormatNoMap = 2; + +const int kBSLNControlPointFormatWithMap = 3; + +const int kBSLNCurrentVersion = 65536; + +const int kBSLNDistanceFormatNoMap = 0; + +const int kBSLNDistanceFormatWithMap = 1; + +const int kBSLNHangingBaseline = 3; + +const int kBSLNIdeographicCenterBaseline = 1; + +const int kBSLNIdeographicHighBaseline = 5; + +const int kBSLNIdeographicLowBaseline = 2; + +const int kBSLNLastBaseline = 31; + +const int kBSLNMathBaseline = 4; + +const int kBSLNNoBaseline = 255; + +const int kBSLNNoBaselineOverride = 255; + +const int kBSLNNumBaselineClasses = 32; + +const int kBSLNRomanBaseline = 0; + +const int kBSLNTag = 1651731566; + +const int kBTBadCloseMask = 1; + +const int kBTBigKeysMask = 2; + +const int kBTHeaderNode = 1; + +const int kBTIndexNode = 0; + +const int kBTLeafNode = -1; + +const int kBTMapNode = 2; + +const int kBTVariableIndexKeysMask = 4; + +const int kBackwardArrowIcon = 1650553455; + +const int kBadAdapterErr = -9050; + +const int kBadArgLengthErr = -9063; + +const int kBadArgsErr = -9064; + +const int kBadAttributeErr = -9051; + +const int kBadBaseErr = -9052; + +const int kBadCISErr = -9066; + +const int kBadCustomIFIDErr = -9093; + +const int kBadDeviceErr = -9083; + +const int kBadEDCErr = -9053; + +const int kBadHandleErr = -9065; + +const int kBadIRQErr = -9054; + +const int kBadLinkErr = -9082; + +const int kBadOffsetErr = -9055; + +const int kBadPageErr = -9056; + +const int kBadSizeErr = -9057; + +const int kBadSocketErr = -9058; + +const int kBadSpeedErr = -9067; + +const int kBadTupleDataErr = -9092; + +const int kBadTypeErr = -9059; + +const int kBadVccErr = -9060; + +const int kBadVppErr = -9061; + +const int kBadWindowErr = -9062; + +const int kBig5_BasicVariant = 0; + +const int kBig5_DOSVariant = 3; + +const int kBig5_ETenVariant = 2; + +const int kBig5_StandardVariant = 1; + +@Deprecated('Deprecated') +const int kBlessedBusErrorBait = 1760651505; + +const int kBlessedFolder = 1651274598; + +@Deprecated('Deprecated') +const int kBootTimeStartupItemsFolderType = 1701671034; + +const int kBoxAnnotationSelector = 1; + +const int kBridgeSoftwareRunningCantSleep = -13038; + +const int kBurningIcon = 1651864174; + +const int kBusyErr = -9074; + +const int kByCommentView = 6; + +const int kByDateView = 3; + +const int kByIconView = 1; + +const int kByKindView = 5; + +const int kByLabelView = 7; + +const int kByNameView = 2; + +const int kBySizeView = 4; + +const int kBySmallIcon = 0; + +const int kByVersionView = 8; + +@Deprecated('Deprecated') +const int kCCRegisterCBit = 16; + +@Deprecated('Deprecated') +const int kCCRegisterNBit = 19; + +@Deprecated('Deprecated') +const int kCCRegisterVBit = 17; + +@Deprecated('Deprecated') +const int kCCRegisterXBit = 20; + +@Deprecated('Deprecated') +const int kCCRegisterZBit = 18; + +const int kCFBundleExecutableArchitectureARM64 = 16777228; + +const int kCFBundleExecutableArchitectureI386 = 7; + +const int kCFBundleExecutableArchitecturePPC = 18; + +const int kCFBundleExecutableArchitecturePPC64 = 16777234; + +const int kCFBundleExecutableArchitectureX86_64 = 16777223; + +const int kCFCalendarComponentsWrap = 1; + +const int kCFFileDescriptorReadCallBack = 1; + +const int kCFFileDescriptorWriteCallBack = 2; + +@Deprecated('Deprecated') +const int kCFM68kRTA = 16; + +const int kCFMessagePortBecameInvalidError = -5; + +const int kCFMessagePortIsInvalid = -3; + +const int kCFMessagePortReceiveTimeout = -2; + +const int kCFMessagePortSendTimeout = -1; + +const int kCFMessagePortSuccess = 0; + +const int kCFMessagePortTransportError = -4; + +const int kCFNotFound = -1; + +const int kCFNotificationDeliverImmediately = 1; + +const int kCFNotificationPostToAllSessions = 2; + +const int kCFPropertyListReadCorruptError = 3840; + +const int kCFPropertyListReadStreamError = 3842; + +const int kCFPropertyListReadUnknownVersionError = 3841; + +const int kCFPropertyListWriteStreamError = 3851; + +const int kCFSocketAutomaticallyReenableAcceptCallBack = 2; + +const int kCFSocketAutomaticallyReenableDataCallBack = 3; + +const int kCFSocketAutomaticallyReenableReadCallBack = 1; + +const int kCFSocketAutomaticallyReenableWriteCallBack = 8; + +const int kCFSocketCloseOnInvalidate = 128; + +const int kCFSocketLeaveErrors = 64; + +const int kCFStreamErrorSOCKS4IdConflict = 93; + +const int kCFStreamErrorSOCKS4IdentdFailed = 92; + +const int kCFStreamErrorSOCKS4RequestFailed = 91; + +const int kCFStreamErrorSOCKS4SubDomainResponse = 2; + +const int kCFStreamErrorSOCKS5BadResponseAddr = 1; + +const int kCFStreamErrorSOCKS5BadState = 2; + +const int kCFStreamErrorSOCKS5SubDomainMethod = 4; + +const int kCFStreamErrorSOCKS5SubDomainResponse = 5; + +const int kCFStreamErrorSOCKS5SubDomainUserPass = 3; + +const int kCFStreamErrorSOCKSSubDomainNone = 0; + +const int kCFStreamErrorSOCKSSubDomainVersionCode = 1; + +const int kCFStreamErrorSOCKSUnknownClientVersion = 3; + +const int kCFStringTokenizerAttributeLanguage = 131072; + +const int kCFStringTokenizerAttributeLatinTranscription = 65536; + +const int kCFStringTokenizerUnitLineBreak = 3; + +const int kCFStringTokenizerUnitParagraph = 2; + +const int kCFStringTokenizerUnitSentence = 1; + +const int kCFStringTokenizerUnitWord = 0; + +const int kCFStringTokenizerUnitWordBoundary = 4; + +const int kCFUserNotificationAlternateResponse = 1; + +const int kCFUserNotificationCancelResponse = 3; + +const int kCFUserNotificationCautionAlertLevel = 2; + +const int kCFUserNotificationDefaultResponse = 0; + +const int kCFUserNotificationNoDefaultButtonFlag = 32; + +const int kCFUserNotificationNoteAlertLevel = 1; + +const int kCFUserNotificationOtherResponse = 2; + +const int kCFUserNotificationPlainAlertLevel = 3; + +const int kCFUserNotificationStopAlertLevel = 0; + +const int kCFUserNotificationUseRadioButtonsFlag = 64; + +const int kCFXMLNodeCurrentVersion = 1; + +const int kCGBitmapByteOrder16Host = 4096; + +const int kCGBitmapByteOrder32Host = 8192; + +const int kCGFontIndexInvalid = 65535; + +const int kCGFontIndexMax = 65534; + +const int kCGGlyphMax = 65534; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRadeon8500ID = 136704; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRadeon9700ID = 137216; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRadeonID = 135680; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRadeonX1000ID = 137472; + +const int kCGLRendererATIRadeonX2000ID = 137728; + +const int kCGLRendererATIRadeonX3000ID = 137984; + +const int kCGLRendererATIRadeonX4000ID = 138240; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRage128ID = 135168; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRageProID = 136192; + +const int kCGLRendererAppleSWID = 132608; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererGeForce2MXID = 139264; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererGeForce3ID = 139776; + +const int kCGLRendererGeForce8xxxID = 140800; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererGeForceFXID = 140288; + +const int kCGLRendererGeForceID = 141056; + +const int kCGLRendererGenericFloatID = 132096; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererGenericID = 131584; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererIntel900ID = 147456; + +const int kCGLRendererIntelHD4000ID = 148480; + +const int kCGLRendererIntelHD5000ID = 148736; + +const int kCGLRendererIntelHDID = 148224; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererIntelX3100ID = 147968; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererMesa3DFXID = 262144; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererVTBladeXP2ID = 143360; + +const int kCJKItalicRomanOffSelector = 3; + +const int kCJKItalicRomanOnSelector = 2; + +const int kCJKItalicRomanSelector = 1; + +const int kCJKRomanSpacingType = 103; + +const int kCJKSymbolAltFiveSelector = 5; + +const int kCJKSymbolAltFourSelector = 4; + +const int kCJKSymbolAltOneSelector = 1; + +const int kCJKSymbolAltThreeSelector = 3; + +const int kCJKSymbolAltTwoSelector = 2; + +const int kCJKSymbolAlternativesType = 29; + +const int kCJKVerticalRomanCenteredSelector = 0; + +const int kCJKVerticalRomanHBaselineSelector = 1; + +const int kCJKVerticalRomanPlacementType = 31; + +const int kCMAudioCodecType_AAC_AudibleProtected = 1633771875; + +const int kCMAudioCodecType_AAC_LCProtected = 1885430115; + +const int kCMAudioFormatDescriptionMask_All = 15; + +const int kCMAudioFormatDescriptionMask_ChannelLayout = 4; + +const int kCMAudioFormatDescriptionMask_Extensions = 8; + +const int kCMAudioFormatDescriptionMask_MagicCookie = 2; + +const int kCMAudioFormatDescriptionMask_StreamBasicDescription = 1; + +const int kCMClosedCaptionFormatType_ATSC = 1635017571; + +const int kCMClosedCaptionFormatType_CEA608 = 1664495672; + +const int kCMClosedCaptionFormatType_CEA708 = 1664561208; + +const int kCMFormatDescriptionError_AllocationFailed = -12711; + +const int kCMFormatDescriptionError_InvalidParameter = -12710; + +const int kCMFormatDescriptionError_ValueNotAvailable = -12718; + +const int kCMMPEG2VideoProfile_HDV_1080i50 = 1751414323; + +const int kCMMPEG2VideoProfile_HDV_1080i60 = 1751414322; + +const int kCMMPEG2VideoProfile_HDV_1080p24 = 1751414326; + +const int kCMMPEG2VideoProfile_HDV_1080p25 = 1751414327; + +const int kCMMPEG2VideoProfile_HDV_1080p30 = 1751414328; + +const int kCMMPEG2VideoProfile_HDV_720p24 = 1751414324; + +const int kCMMPEG2VideoProfile_HDV_720p25 = 1751414325; + +const int kCMMPEG2VideoProfile_HDV_720p30 = 1751414321; + +const int kCMMPEG2VideoProfile_HDV_720p50 = 1751414369; + +const int kCMMPEG2VideoProfile_HDV_720p60 = 1751414329; + +const int kCMMPEG2VideoProfile_XDCAM_EX_1080i50_VBR35 = 2019849827; + +const int kCMMPEG2VideoProfile_XDCAM_EX_1080i60_VBR35 = 2019849826; + +const int kCMMPEG2VideoProfile_XDCAM_EX_1080p24_VBR35 = 2019849828; + +const int kCMMPEG2VideoProfile_XDCAM_EX_1080p25_VBR35 = 2019849829; + +const int kCMMPEG2VideoProfile_XDCAM_EX_1080p30_VBR35 = 2019849830; + +const int kCMMPEG2VideoProfile_XDCAM_EX_720p24_VBR35 = 2019849780; + +const int kCMMPEG2VideoProfile_XDCAM_EX_720p25_VBR35 = 2019849781; + +const int kCMMPEG2VideoProfile_XDCAM_EX_720p30_VBR35 = 2019849777; + +const int kCMMPEG2VideoProfile_XDCAM_EX_720p50_VBR35 = 2019849825; + +const int kCMMPEG2VideoProfile_XDCAM_EX_720p60_VBR35 = 2019849785; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_1080i50_CBR50 = 2019833187; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_1080i60_CBR50 = 2019833186; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p24_CBR50 = 2019833188; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p25_CBR50 = 2019833189; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p30_CBR50 = 2019833190; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_540p = 2019846194; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_720p24_CBR50 = 2019833140; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_720p25_CBR50 = 2019833141; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_720p30_CBR50 = 2019833137; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_720p50_CBR50 = 2019833185; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_720p60_CBR50 = 2019833145; + +const int kCMMPEG2VideoProfile_XDCAM_HD_1080i50_VBR35 = 2019849779; + +const int kCMMPEG2VideoProfile_XDCAM_HD_1080i60_VBR35 = 2019849778; + +const int kCMMPEG2VideoProfile_XDCAM_HD_1080p24_VBR35 = 2019849782; + +const int kCMMPEG2VideoProfile_XDCAM_HD_1080p25_VBR35 = 2019849783; + +const int kCMMPEG2VideoProfile_XDCAM_HD_1080p30_VBR35 = 2019849784; + +const int kCMMPEG2VideoProfile_XDCAM_HD_540p = 2019846244; + +const int kCMMPEG2VideoProfile_XF = 2019981873; + +const int kCMMediaType_Audio = 1936684398; + +const int kCMMediaType_AuxiliaryPicture = 1635088502; + +const int kCMMediaType_ClosedCaption = 1668047728; + +const int kCMMediaType_Metadata = 1835365473; + +const int kCMMediaType_Muxed = 1836415096; + +const int kCMMediaType_Subtitle = 1935832172; + +const int kCMMediaType_TaggedBufferGroup = 1952606066; + +const int kCMMediaType_Text = 1952807028; + +const int kCMMediaType_TimeCode = 1953325924; + +const int kCMMediaType_Video = 1986618469; + +const int kCMMetadataFormatType_Boxed = 1835360888; + +const int kCMMetadataFormatType_EMSG = 1701671783; + +const int kCMMetadataFormatType_ICY = 1768126752; + +const int kCMMetadataFormatType_ID3 = 1768174368; + +const int kCMMuxedStreamType_DV = 1685463072; + +const int kCMMuxedStreamType_EmbeddedDeviceScreenRecording = 1769173536; + +const int kCMMuxedStreamType_MPEG1System = 1836069235; + +const int kCMMuxedStreamType_MPEG2Program = 1836069488; + +const int kCMMuxedStreamType_MPEG2Transport = 1836069492; + +const int kCMPersistentTrackID_Invalid = 0; + +const int kCMPixelFormat_16BE555 = 16; + +const int kCMPixelFormat_16BE565 = 1110783541; + +const int kCMPixelFormat_16LE555 = 1278555445; + +const int kCMPixelFormat_16LE5551 = 892679473; + +const int kCMPixelFormat_16LE565 = 1278555701; + +const int kCMPixelFormat_24RGB = 24; + +const int kCMPixelFormat_32ARGB = 32; + +const int kCMPixelFormat_32BGRA = 1111970369; + +const int kCMPixelFormat_422YpCbCr10 = 1983000880; + +const int kCMPixelFormat_422YpCbCr16 = 1983000886; + +const int kCMPixelFormat_422YpCbCr8 = 846624121; + +const int kCMPixelFormat_422YpCbCr8_yuvs = 2037741171; + +const int kCMPixelFormat_4444YpCbCrA8 = 1983131704; + +const int kCMPixelFormat_444YpCbCr10 = 1983131952; + +const int kCMPixelFormat_444YpCbCr8 = 1983066168; + +const int kCMPixelFormat_8IndexedGray_WhiteIsZero = 40; + +const int kCMSubtitleFormatType_3GText = 1954034535; + +const int kCMSubtitleFormatType_WebVTT = 2004251764; + +const int kCMTaggedBufferGroupFormatType_TaggedBufferGroup = 1952606066; + +const int kCMTextDisplayFlag_allSubtitlesForced = -2147483648; + +const int kCMTextDisplayFlag_continuousKaraoke = 2048; + +const int kCMTextDisplayFlag_fillTextRegion = 262144; + +const int kCMTextDisplayFlag_forcedSubtitlesPresent = 1073741824; + +const int kCMTextDisplayFlag_obeySubtitleFormatting = 536870912; + +const int kCMTextDisplayFlag_scrollDirectionMask = 384; + +const int kCMTextDisplayFlag_scrollDirection_bottomToTop = 0; + +const int kCMTextDisplayFlag_scrollDirection_leftToRight = 384; + +const int kCMTextDisplayFlag_scrollDirection_rightToLeft = 128; + +const int kCMTextDisplayFlag_scrollDirection_topToBottom = 256; + +const int kCMTextDisplayFlag_scrollIn = 32; + +const int kCMTextDisplayFlag_scrollOut = 64; + +const int kCMTextDisplayFlag_writeTextVertically = 131072; + +const int kCMTextFormatType_3GText = 1954034535; + +const int kCMTextFormatType_QTText = 1952807028; + +const int kCMTextJustification_bottom_right = -1; + +const int kCMTextJustification_centered = 1; + +const int kCMTextJustification_left_top = 0; + +const int kCMTimeCodeFlag_24HourMax = 2; + +const int kCMTimeCodeFlag_DropFrame = 1; + +const int kCMTimeCodeFlag_NegTimesOK = 4; + +const int kCMTimeCodeFormatType_Counter32 = 1668166450; + +const int kCMTimeCodeFormatType_Counter64 = 1668167220; + +const int kCMTimeCodeFormatType_TimeCode32 = 1953325924; + +const int kCMTimeCodeFormatType_TimeCode64 = 1952658996; + +const int kCMVideoCodecType_422YpCbCr8 = 846624121; + +const int kCMVideoCodecType_AV1 = 1635135537; + +const int kCMVideoCodecType_Animation = 1919706400; + +const int kCMVideoCodecType_AppleProRes422 = 1634755438; + +const int kCMVideoCodecType_AppleProRes422HQ = 1634755432; + +const int kCMVideoCodecType_AppleProRes422LT = 1634755443; + +const int kCMVideoCodecType_AppleProRes422Proxy = 1634755439; + +const int kCMVideoCodecType_AppleProRes4444 = 1634743400; + +const int kCMVideoCodecType_AppleProRes4444XQ = 1634743416; + +const int kCMVideoCodecType_AppleProResRAW = 1634759278; + +const int kCMVideoCodecType_AppleProResRAWHQ = 1634759272; + +const int kCMVideoCodecType_Cinepak = 1668704612; + +const int kCMVideoCodecType_DVCNTSC = 1685480224; + +const int kCMVideoCodecType_DVCPAL = 1685480304; + +const int kCMVideoCodecType_DVCPROHD1080i50 = 1685481525; + +const int kCMVideoCodecType_DVCPROHD1080i60 = 1685481526; + +const int kCMVideoCodecType_DVCPROHD1080p25 = 1685481522; + +const int kCMVideoCodecType_DVCPROHD1080p30 = 1685481523; + +const int kCMVideoCodecType_DVCPROHD720p50 = 1685481585; + +const int kCMVideoCodecType_DVCPROHD720p60 = 1685481584; + +const int kCMVideoCodecType_DVCPro50NTSC = 1685468526; + +const int kCMVideoCodecType_DVCPro50PAL = 1685468528; + +const int kCMVideoCodecType_DVCProPAL = 1685483632; + +const int kCMVideoCodecType_DepthHEVC = 1684369512; + +const int kCMVideoCodecType_DisparityHEVC = 1684632424; + +const int kCMVideoCodecType_DolbyVisionHEVC = 1685481521; + +const int kCMVideoCodecType_H263 = 1748121139; + +const int kCMVideoCodecType_H264 = 1635148593; + +const int kCMVideoCodecType_HEVC = 1752589105; + +const int kCMVideoCodecType_HEVCWithAlpha = 1836415073; + +const int kCMVideoCodecType_JPEG = 1785750887; + +const int kCMVideoCodecType_JPEG_OpenDML = 1684890161; + +const int kCMVideoCodecType_JPEG_XL = 1786276963; + +const int kCMVideoCodecType_MPEG1Video = 1836069238; + +const int kCMVideoCodecType_MPEG2Video = 1836069494; + +const int kCMVideoCodecType_MPEG4Video = 1836070006; + +const int kCMVideoCodecType_SorensonVideo = 1398165809; + +const int kCMVideoCodecType_SorensonVideo3 = 1398165811; + +const int kCMVideoCodecType_VP9 = 1987063865; + +@Deprecated('Deprecated') +const int kCSAcceptAllComponentsMode = 0; + +@Deprecated('Deprecated') +const int kCSAcceptThreadSafeComponentsOnlyMode = 1; + +const int kCSDiskSpaceRecoveryOptionNoUI = 1; + +const int kCSIdentityAuthorityNotAccessibleErr = -2; + +const int kCSIdentityClassGroup = 2; + +const int kCSIdentityClassUser = 1; + +const int kCSIdentityCommitCompleted = 1; + +const int kCSIdentityDeletedErr = -4; + +const int kCSIdentityDuplicateFullNameErr = -6; + +const int kCSIdentityDuplicatePosixNameErr = -8; + +const int kCSIdentityFlagHidden = 1; + +const int kCSIdentityFlagNone = 0; + +const int kCSIdentityInvalidFullNameErr = -5; + +const int kCSIdentityInvalidPosixNameErr = -7; + +const int kCSIdentityPermissionErr = -3; + +const int kCSIdentityQueryEventErrorOccurred = 5; + +const int kCSIdentityQueryEventResultsAdded = 2; + +const int kCSIdentityQueryEventResultsChanged = 3; + +const int kCSIdentityQueryEventResultsRemoved = 4; + +const int kCSIdentityQueryEventSearchPhaseFinished = 1; + +const int kCSIdentityQueryGenerateUpdateEvents = 1; + +const int kCSIdentityQueryIncludeHiddenIdentities = 2; + +const int kCSIdentityQueryStringBeginsWith = 2; + +const int kCSIdentityQueryStringEquals = 1; + +const int kCSIdentityUnknownAuthorityErr = -1; + +@Deprecated('Deprecated') +const int kCStackBased = 1; + +const int kCTFontClassMaskShift = 28; + +const int kCTFontPriorityComputer = 30000; + +const int kCTFontPriorityDynamic = 50000; + +const int kCTFontPriorityNetwork = 20000; + +const int kCTFontPriorityProcess = 60000; + +const int kCTFontPrioritySystem = 10000; + +const int kCTFontPriorityUser = 40000; + +const int kCTFontTableAcnt = 1633906292; + +const int kCTFontTableAnkr = 1634626418; + +const int kCTFontTableAvar = 1635148146; + +const int kCTFontTableBASE = 1111577413; + +const int kCTFontTableBdat = 1650745716; + +const int kCTFontTableBhed = 1651008868; + +const int kCTFontTableBloc = 1651273571; + +const int kCTFontTableBsln = 1651731566; + +const int kCTFontTableCBDT = 1128416340; + +const int kCTFontTableCBLC = 1128418371; + +const int kCTFontTableCFF = 1128678944; + +const int kCTFontTableCFF2 = 1128678962; + +const int kCTFontTableCOLR = 1129270354; + +const int kCTFontTableCPAL = 1129333068; + +const int kCTFontTableCidg = 1667851367; + +const int kCTFontTableCmap = 1668112752; + +const int kCTFontTableCvar = 1668702578; + +const int kCTFontTableCvt = 1668707360; + +const int kCTFontTableDSIG = 1146308935; + +const int kCTFontTableEBDT = 1161970772; + +const int kCTFontTableEBLC = 1161972803; + +const int kCTFontTableEBSC = 1161974595; + +const int kCTFontTableFdsc = 1717859171; + +const int kCTFontTableFeat = 1717920116; + +const int kCTFontTableFmtx = 1718449272; + +const int kCTFontTableFond = 1718578788; + +const int kCTFontTableFpgm = 1718642541; + +const int kCTFontTableFvar = 1719034226; + +const int kCTFontTableGDEF = 1195656518; + +const int kCTFontTableGPOS = 1196445523; + +const int kCTFontTableGSUB = 1196643650; + +const int kCTFontTableGasp = 1734439792; + +const int kCTFontTableGlyf = 1735162214; + +const int kCTFontTableGvar = 1735811442; + +const int kCTFontTableHVAR = 1213612370; + +const int kCTFontTableHdmx = 1751412088; + +const int kCTFontTableHead = 1751474532; + +const int kCTFontTableHhea = 1751672161; + +const int kCTFontTableHmtx = 1752003704; + +const int kCTFontTableHsty = 1752396921; + +const int kCTFontTableJSTF = 1246975046; + +const int kCTFontTableJust = 1786082164; + +const int kCTFontTableKern = 1801810542; + +const int kCTFontTableKerx = 1801810552; + +const int kCTFontTableLTSH = 1280594760; + +const int kCTFontTableLcar = 1818452338; + +const int kCTFontTableLoca = 1819239265; + +const int kCTFontTableLtag = 1819566439; + +const int kCTFontTableMATH = 1296127048; + +const int kCTFontTableMERG = 1296388679; + +const int kCTFontTableMVAR = 1297498450; + +const int kCTFontTableMaxp = 1835104368; + +const int kCTFontTableMeta = 1835365473; + +const int kCTFontTableMort = 1836020340; + +const int kCTFontTableMorx = 1836020344; + +const int kCTFontTableName = 1851878757; + +const int kCTFontTableOS2 = 1330851634; + +const int kCTFontTableOpbd = 1869636196; + +const int kCTFontTablePCLT = 1346587732; + +const int kCTFontTablePost = 1886352244; + +const int kCTFontTablePrep = 1886545264; + +const int kCTFontTableProp = 1886547824; + +const int kCTFontTableSTAT = 1398030676; + +const int kCTFontTableSVG = 1398163232; + +const int kCTFontTableSbit = 1935829364; + +const int kCTFontTableSbix = 1935829368; + +const int kCTFontTableTrak = 1953653099; + +const int kCTFontTableVDMX = 1447316824; + +const int kCTFontTableVORG = 1448038983; + +const int kCTFontTableVVAR = 1448493394; + +const int kCTFontTableVhea = 1986553185; + +const int kCTFontTableVmtx = 1986884728; + +const int kCTFontTableXref = 2020762982; + +const int kCTFontTableZapf = 1516335206; + +const int kCTRunDelegateCurrentVersion = 1; + +const int kCTRunDelegateVersion1 = 1; + +const int kCTWritingDirectionEmbedding = 0; + +const int kCTWritingDirectionOverride = 2; + +const int kCUPSPPDDomain = 6; + +const int kCVPixelFormatType_128RGBAFloat = 1380410945; + +const int kCVPixelFormatType_14Bayer_BGGR = 1650943796; + +const int kCVPixelFormatType_14Bayer_GBRG = 1734505012; + +const int kCVPixelFormatType_14Bayer_GRBG = 1735549492; + +const int kCVPixelFormatType_14Bayer_RGGB = 1919379252; + +const int kCVPixelFormatType_16BE555 = 16; + +const int kCVPixelFormatType_16BE565 = 1110783541; + +const int kCVPixelFormatType_16Gray = 1647392359; + +const int kCVPixelFormatType_16LE555 = 1278555445; + +const int kCVPixelFormatType_16LE5551 = 892679473; + +const int kCVPixelFormatType_16LE565 = 1278555701; + +const int kCVPixelFormatType_16VersatileBayer = 1651519798; + +const int kCVPixelFormatType_1IndexedGray_WhiteIsZero = 33; + +const int kCVPixelFormatType_1Monochrome = 1; + +const int kCVPixelFormatType_24BGR = 842285639; + +const int kCVPixelFormatType_24RGB = 24; + +const int kCVPixelFormatType_2Indexed = 2; + +const int kCVPixelFormatType_2IndexedGray_WhiteIsZero = 34; + +const int kCVPixelFormatType_30RGB = 1378955371; + +const int kCVPixelFormatType_30RGBLEPackedWideGamut = 1999843442; + +const int kCVPixelFormatType_30RGBLE_8A_BiPlanar = 1647534392; + +const int kCVPixelFormatType_30RGB_r210 = 1915892016; + +const int kCVPixelFormatType_32ABGR = 1094862674; + +const int kCVPixelFormatType_32ARGB = 32; + +const int kCVPixelFormatType_32AlphaGray = 1647522401; + +const int kCVPixelFormatType_32BGRA = 1111970369; + +const int kCVPixelFormatType_32RGBA = 1380401729; + +const int kCVPixelFormatType_40ARGBLEWideGamut = 1999908961; + +const int kCVPixelFormatType_40ARGBLEWideGamutPremultiplied = 1999908973; + +const int kCVPixelFormatType_420YpCbCr10BiPlanarFullRange = 2019963440; + +const int kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = 2016686640; + +const int kCVPixelFormatType_420YpCbCr8BiPlanarFullRange = 875704422; + +const int kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = 875704438; + +const int kCVPixelFormatType_420YpCbCr8Planar = 2033463856; + +const int kCVPixelFormatType_420YpCbCr8PlanarFullRange = 1714696752; + +const int kCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar = 1982882104; + +const int kCVPixelFormatType_422YpCbCr10 = 1983000880; + +const int kCVPixelFormatType_422YpCbCr10BiPlanarFullRange = 2019963442; + +const int kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange = 2016686642; + +const int kCVPixelFormatType_422YpCbCr16 = 1983000886; + +const int kCVPixelFormatType_422YpCbCr16BiPlanarVideoRange = 1937125938; + +const int kCVPixelFormatType_422YpCbCr8 = 846624121; + +const int kCVPixelFormatType_422YpCbCr8BiPlanarFullRange = 875704934; + +const int kCVPixelFormatType_422YpCbCr8BiPlanarVideoRange = 875704950; + +const int kCVPixelFormatType_422YpCbCr8FullRange = 2037741158; + +const int kCVPixelFormatType_422YpCbCr8_yuvs = 2037741171; + +const int kCVPixelFormatType_422YpCbCr_4A_8BiPlanar = 1630697081; + +const int kCVPixelFormatType_4444AYpCbCr16 = 2033463606; + +const int kCVPixelFormatType_4444AYpCbCr8 = 2033463352; + +const int kCVPixelFormatType_4444AYpCbCrFloat = 1916036716; + +const int kCVPixelFormatType_4444YpCbCrA8 = 1983131704; + +const int kCVPixelFormatType_4444YpCbCrA8R = 1916022840; + +const int kCVPixelFormatType_444YpCbCr10 = 1983131952; + +const int kCVPixelFormatType_444YpCbCr10BiPlanarFullRange = 2019963956; + +const int kCVPixelFormatType_444YpCbCr10BiPlanarVideoRange = 2016687156; + +const int kCVPixelFormatType_444YpCbCr16BiPlanarVideoRange = 1937126452; + +const int kCVPixelFormatType_444YpCbCr16VideoRange_16A_TriPlanar = 1932812659; + +const int kCVPixelFormatType_444YpCbCr8 = 1983066168; + +const int kCVPixelFormatType_444YpCbCr8BiPlanarFullRange = 875836518; + +const int kCVPixelFormatType_444YpCbCr8BiPlanarVideoRange = 875836534; + +const int kCVPixelFormatType_48RGB = 1647589490; + +const int kCVPixelFormatType_4Indexed = 4; + +const int kCVPixelFormatType_4IndexedGray_WhiteIsZero = 36; + +const int kCVPixelFormatType_64ARGB = 1647719521; + +const int kCVPixelFormatType_64RGBAHalf = 1380411457; + +const int kCVPixelFormatType_64RGBALE = 1815491698; + +const int kCVPixelFormatType_64RGBA_DownscaledProResRAW = 1651521076; + +const int kCVPixelFormatType_8Indexed = 8; + +const int kCVPixelFormatType_8IndexedGray_WhiteIsZero = 40; + +const int kCVPixelFormatType_96VersatileBayerPacked12 = 1651798066; + +const int kCVPixelFormatType_ARGB2101010LEPacked = 1815162994; + +const int kCVPixelFormatType_DepthFloat16 = 1751410032; + +const int kCVPixelFormatType_DepthFloat32 = 1717855600; + +const int kCVPixelFormatType_DisparityFloat16 = 1751411059; + +const int kCVPixelFormatType_DisparityFloat32 = 1717856627; + +const int kCVPixelFormatType_Lossless_30RGBLEPackedWideGamut = 645346162; + +const int kCVPixelFormatType_Lossless_30RGBLE_8A_BiPlanar = 643969848; + +const int kCVPixelFormatType_Lossless_32BGRA = 641877825; + +const int kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarFullRange = + 645424688; + +const int kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarVideoRange = + 645428784; + +const int kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange = 641230384; + +const int kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange = 641234480; + +const int kCVPixelFormatType_Lossless_422YpCbCr10PackedBiPlanarVideoRange = + 645428786; + +const int kCVPixelFormatType_Lossless_64RGBAHalf = 642934849; + +const int kCVPixelFormatType_Lossy_32BGRA = 759318337; + +const int kCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange = + 762869296; + +const int kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarFullRange = 758670896; + +const int kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarVideoRange = 758674992; + +const int kCVPixelFormatType_Lossy_422YpCbCr10PackedBiPlanarVideoRange = + 762869298; + +const int kCVPixelFormatType_OneComponent10 = 1278226736; + +const int kCVPixelFormatType_OneComponent12 = 1278226738; + +const int kCVPixelFormatType_OneComponent16 = 1278226742; + +const int kCVPixelFormatType_OneComponent16Half = 1278226536; + +const int kCVPixelFormatType_OneComponent32Float = 1278226534; + +const int kCVPixelFormatType_OneComponent8 = 1278226488; + +const int kCVPixelFormatType_TwoComponent16 = 843264310; + +const int kCVPixelFormatType_TwoComponent16Half = 843264104; + +const int kCVPixelFormatType_TwoComponent32Float = 843264102; + +const int kCVPixelFormatType_TwoComponent8 = 843264056; + +const int kCVReturnAllocationFailed = -6662; + +const int kCVReturnDisplayLinkAlreadyRunning = -6671; + +const int kCVReturnDisplayLinkCallbacksNotSet = -6673; + +const int kCVReturnDisplayLinkNotRunning = -6672; + +const int kCVReturnError = -6660; + +const int kCVReturnFirst = -6660; + +const int kCVReturnInvalidArgument = -6661; + +const int kCVReturnInvalidDisplay = -6670; + +const int kCVReturnInvalidPixelBufferAttributes = -6682; + +const int kCVReturnInvalidPixelFormat = -6680; + +const int kCVReturnInvalidPoolAttributes = -6691; + +const int kCVReturnInvalidSize = -6681; + +const int kCVReturnLast = -6699; + +const int kCVReturnPixelBufferNotMetalCompatible = -6684; + +const int kCVReturnPixelBufferNotOpenGLCompatible = -6683; + +const int kCVReturnPoolAllocationFailed = -6690; + +const int kCVReturnRetry = -6692; + +const int kCVReturnSuccess = 0; + +const int kCVReturnUnsupported = -6663; + +const int kCVReturnWouldExceedAllocationThreshold = -6689; + +const int kCVVersatileBayer_BayerPattern_BGGR = 3; + +const int kCVVersatileBayer_BayerPattern_GBRG = 2; + +const int kCVVersatileBayer_BayerPattern_GRBG = 1; + +const int kCVVersatileBayer_BayerPattern_RGGB = 0; + +@Deprecated('Deprecated') +const int kCachedDataFolderType = 1667326824; + +@Deprecated('Deprecated') +const int kCallingConventionMask = 15; + +@Deprecated('Deprecated') +const int kCallingConventionPhase = 0; + +@Deprecated('Deprecated') +const int kCallingConventionWidth = 4; + +const int kCanonicalCompositionOffSelector = 1; + +const int kCanonicalCompositionOnSelector = 0; + +const int kCantConfigureCardErr = -9087; + +const int kCantReportProcessorTemperatureErr = -13013; + +@Deprecated('Deprecated') +const int kCarbonLibraryFolderType = 1667330658; + +const int kCardBusCardErr = -9085; + +const int kCardPowerOffErr = -9107; + +const int kCaseSensitiveLayoutOffSelector = 1; + +const int kCaseSensitiveLayoutOnSelector = 0; + +const int kCaseSensitiveLayoutType = 33; + +const int kCaseSensitiveSpacingOffSelector = 3; + +const int kCaseSensitiveSpacingOnSelector = 2; + +const int kCertSearchAny = 0; + +const int kCertSearchDecryptAllowed = 64; + +const int kCertSearchDecryptDisallowed = 128; + +const int kCertSearchDecryptIgnored = 0; + +const int kCertSearchDecryptMask = 192; + +const int kCertSearchEncryptAllowed = 16; + +const int kCertSearchEncryptDisallowed = 32; + +const int kCertSearchEncryptIgnored = 0; + +const int kCertSearchEncryptMask = 48; + +const int kCertSearchPrivKeyRequired = 4096; + +const int kCertSearchShift = 0; + +const int kCertSearchSigningAllowed = 1; + +const int kCertSearchSigningDisallowed = 2; + +const int kCertSearchSigningIgnored = 0; + +const int kCertSearchSigningMask = 3; + +const int kCertSearchUnwrapAllowed = 1024; + +const int kCertSearchUnwrapDisallowed = 2048; + +const int kCertSearchUnwrapIgnored = 0; + +const int kCertSearchUnwrapMask = 3072; + +const int kCertSearchVerifyAllowed = 4; + +const int kCertSearchVerifyDisallowed = 8; + +const int kCertSearchVerifyIgnored = 0; + +const int kCertSearchVerifyMask = 12; + +const int kCertSearchWrapAllowed = 256; + +const int kCertSearchWrapDisallowed = 512; + +const int kCertSearchWrapIgnored = 0; + +const int kCertSearchWrapMask = 768; + +const int kCertUsageAllAdd = 2147483392; + +const int kCertUsageDecryptAdd = 16384; + +const int kCertUsageDecryptAskAndAdd = 32768; + +const int kCertUsageEncryptAdd = 4096; + +const int kCertUsageEncryptAskAndAdd = 8192; + +const int kCertUsageKeyExchAdd = 65536; + +const int kCertUsageKeyExchAskAndAdd = 131072; + +const int kCertUsageRootAdd = 262144; + +const int kCertUsageRootAskAndAdd = 524288; + +const int kCertUsageSSLAdd = 1048576; + +const int kCertUsageSSLAskAndAdd = 2097152; + +const int kCertUsageShift = 8; + +const int kCertUsageSigningAdd = 256; + +const int kCertUsageSigningAskAndAdd = 512; + +const int kCertUsageVerifyAdd = 1024; + +const int kCertUsageVerifyAskAndAdd = 2048; + +const int kCertificateKCItemClass = 1667592820; + +const int kCharacterAlternativesType = 17; + +const int kCharacterShapeType = 20; + +@Deprecated('Deprecated') +const int kChewableItemsFolderType = 1718382196; + +const int kCircleAnnotationSelector = 3; + +const int kClassKCItemAttr = 1668047219; + +@Deprecated('Deprecated') +const int kClassicDesktopFolderType = 1935962987; + +@Deprecated('Deprecated') +const int kClassicDomain = -32762; + +@Deprecated('Deprecated') +const int kClassicPreferencesFolderType = 1668313702; + +const int kClientRequestDenied = -9102; + +const int kClipboardIcon = 1129072976; + +const int kClippingCreator = 1685217639; + +const int kClippingPictureType = 1668051056; + +const int kClippingPictureTypeIcon = 1668051056; + +const int kClippingSoundType = 1668051059; + +const int kClippingSoundTypeIcon = 1668051059; + +const int kClippingTextType = 1668051060; + +const int kClippingTextTypeIcon = 1668051060; + +const int kClippingUnknownType = 1668051061; + +const int kClippingUnknownTypeIcon = 1668051061; + +const int kCollateAttributesNotFoundErr = -29500; + +const int kCollateBufferTooSmall = -29506; + +const int kCollateInvalidChar = -29505; + +const int kCollateInvalidCollationRef = -29507; + +const int kCollateInvalidOptions = -29501; + +const int kCollateMissingUnicodeTableErr = -29502; + +const int kCollatePatternNotFoundErr = -29504; + +const int kCollateUnicodeConvertFailedErr = -29503; + +@Deprecated('Deprecated') +const int kCollectionAllAttributes = -1; + +@Deprecated('Deprecated') +const int kCollectionDefaultAttributes = 1073741824; + +@Deprecated('Deprecated') +const int kCollectionDontWantAttributes = 0; + +@Deprecated('Deprecated') +const int kCollectionDontWantData = 0; + +@Deprecated('Deprecated') +const int kCollectionDontWantId = 0; + +@Deprecated('Deprecated') +const int kCollectionDontWantIndex = 0; + +@Deprecated('Deprecated') +const int kCollectionDontWantSize = 0; + +@Deprecated('Deprecated') +const int kCollectionDontWantTag = 0; + +@Deprecated('Deprecated') +const int kCollectionLockBit = 31; + +@Deprecated('Deprecated') +const int kCollectionLockMask = -2147483648; + +@Deprecated('Deprecated') +const int kCollectionNoAttributes = 0; + +@Deprecated('Deprecated') +const int kCollectionPersistenceBit = 30; + +@Deprecated('Deprecated') +const int kCollectionPersistenceMask = 1073741824; + +@Deprecated('Deprecated') +const int kCollectionReserved0Bit = 16; + +@Deprecated('Deprecated') +const int kCollectionReserved0Mask = 65536; + +@Deprecated('Deprecated') +const int kCollectionReserved10Bit = 26; + +@Deprecated('Deprecated') +const int kCollectionReserved10Mask = 67108864; + +@Deprecated('Deprecated') +const int kCollectionReserved11Bit = 27; + +@Deprecated('Deprecated') +const int kCollectionReserved11Mask = 134217728; + +@Deprecated('Deprecated') +const int kCollectionReserved12Bit = 28; + +@Deprecated('Deprecated') +const int kCollectionReserved12Mask = 268435456; + +@Deprecated('Deprecated') +const int kCollectionReserved13Bit = 29; + +@Deprecated('Deprecated') +const int kCollectionReserved13Mask = 536870912; + +@Deprecated('Deprecated') +const int kCollectionReserved1Bit = 17; + +@Deprecated('Deprecated') +const int kCollectionReserved1Mask = 131072; + +@Deprecated('Deprecated') +const int kCollectionReserved2Bit = 18; + +@Deprecated('Deprecated') +const int kCollectionReserved2Mask = 262144; + +@Deprecated('Deprecated') +const int kCollectionReserved3Bit = 19; + +@Deprecated('Deprecated') +const int kCollectionReserved3Mask = 524288; + +@Deprecated('Deprecated') +const int kCollectionReserved4Bit = 20; + +@Deprecated('Deprecated') +const int kCollectionReserved4Mask = 1048576; + +@Deprecated('Deprecated') +const int kCollectionReserved5Bit = 21; + +@Deprecated('Deprecated') +const int kCollectionReserved5Mask = 2097152; + +@Deprecated('Deprecated') +const int kCollectionReserved6Bit = 22; + +@Deprecated('Deprecated') +const int kCollectionReserved6Mask = 4194304; + +@Deprecated('Deprecated') +const int kCollectionReserved7Bit = 23; + +@Deprecated('Deprecated') +const int kCollectionReserved7Mask = 8388608; + +@Deprecated('Deprecated') +const int kCollectionReserved8Bit = 24; + +@Deprecated('Deprecated') +const int kCollectionReserved8Mask = 16777216; + +@Deprecated('Deprecated') +const int kCollectionReserved9Bit = 25; + +@Deprecated('Deprecated') +const int kCollectionReserved9Mask = 33554432; + +@Deprecated('Deprecated') +const int kCollectionUser0Bit = 0; + +@Deprecated('Deprecated') +const int kCollectionUser0Mask = 1; + +@Deprecated('Deprecated') +const int kCollectionUser10Bit = 10; + +@Deprecated('Deprecated') +const int kCollectionUser10Mask = 1024; + +@Deprecated('Deprecated') +const int kCollectionUser11Bit = 11; + +@Deprecated('Deprecated') +const int kCollectionUser11Mask = 2048; + +@Deprecated('Deprecated') +const int kCollectionUser12Bit = 12; + +@Deprecated('Deprecated') +const int kCollectionUser12Mask = 4096; + +@Deprecated('Deprecated') +const int kCollectionUser13Bit = 13; + +@Deprecated('Deprecated') +const int kCollectionUser13Mask = 8192; + +@Deprecated('Deprecated') +const int kCollectionUser14Bit = 14; + +@Deprecated('Deprecated') +const int kCollectionUser14Mask = 16384; + +@Deprecated('Deprecated') +const int kCollectionUser15Bit = 15; + +@Deprecated('Deprecated') +const int kCollectionUser15Mask = 32768; + +@Deprecated('Deprecated') +const int kCollectionUser1Bit = 1; + +@Deprecated('Deprecated') +const int kCollectionUser1Mask = 2; + +@Deprecated('Deprecated') +const int kCollectionUser2Bit = 2; + +@Deprecated('Deprecated') +const int kCollectionUser2Mask = 4; + +@Deprecated('Deprecated') +const int kCollectionUser3Bit = 3; + +@Deprecated('Deprecated') +const int kCollectionUser3Mask = 8; + +@Deprecated('Deprecated') +const int kCollectionUser4Bit = 4; + +@Deprecated('Deprecated') +const int kCollectionUser4Mask = 16; + +@Deprecated('Deprecated') +const int kCollectionUser5Bit = 5; + +@Deprecated('Deprecated') +const int kCollectionUser5Mask = 32; + +@Deprecated('Deprecated') +const int kCollectionUser6Bit = 6; + +@Deprecated('Deprecated') +const int kCollectionUser6Mask = 64; + +@Deprecated('Deprecated') +const int kCollectionUser7Bit = 7; + +@Deprecated('Deprecated') +const int kCollectionUser7Mask = 128; + +@Deprecated('Deprecated') +const int kCollectionUser8Bit = 8; + +@Deprecated('Deprecated') +const int kCollectionUser8Mask = 256; + +@Deprecated('Deprecated') +const int kCollectionUser9Bit = 9; + +@Deprecated('Deprecated') +const int kCollectionUser9Mask = 512; + +@Deprecated('Deprecated') +const int kCollectionUserAttributes = 65535; + +const int kColor = 14; + +@Deprecated('Deprecated') +const int kColorPickersFolderType = 1668311922; + +const int kColorSyncAlphaInfoMask = 31; + +const int kColorSyncByteOrder16Big = 12288; + +const int kColorSyncByteOrder16Little = 4096; + +const int kColorSyncByteOrder32Big = 16384; + +const int kColorSyncByteOrder32Little = 8192; + +const int kColorSyncByteOrderDefault = 0; + +const int kColorSyncByteOrderMask = 28672; + +@Deprecated('Deprecated') +const int kColorSyncCMMFolderType = 1667460461; + +const int kColorSyncFolderIcon = 1886547814; + +@Deprecated('Deprecated') +const int kColorSyncFolderType = 1937337955; + +@Deprecated('Deprecated') +const int kColorSyncProfilesFolderType = 1886547814; + +@Deprecated('Deprecated') +const int kColorSyncScriptingFolderType = 1668506482; + +const int kCommentKCItemAttr = 1768123764; + +const int kCommonLigaturesOffSelector = 3; + +const int kCommonLigaturesOnSelector = 2; + +const int kCommonNameKCItemAttr = 1668161568; + +const int kCompatibilityCompositionOffSelector = 3; + +const int kCompatibilityCompositionOnSelector = 2; + +@Deprecated('Deprecated') +const int kComponentAliasResourceType = 1952999265; + +@Deprecated('Deprecated') +const int kComponentCanDoSelect = -3; + +@Deprecated('Deprecated') +const int kComponentCloseSelect = -2; + +@Deprecated('Deprecated') +const int kComponentDebugOption = 0; + +@Deprecated('Deprecated') +const int kComponentExecuteWiredActionSelect = -9; + +@Deprecated('Deprecated') +const int kComponentGetMPWorkFunctionSelect = -8; + +@Deprecated('Deprecated') +const int kComponentGetPublicResourceSelect = -10; + +@Deprecated('Deprecated') +const int kComponentOpenSelect = -1; + +@Deprecated('Deprecated') +const int kComponentRegisterSelect = -5; + +@Deprecated('Deprecated') +const int kComponentResourceType = 1953001063; + +@Deprecated('Deprecated') +const int kComponentTargetSelect = -6; + +@Deprecated('Deprecated') +const int kComponentUnregisterSelect = -7; + +@Deprecated('Deprecated') +const int kComponentVersionSelect = -4; + +@Deprecated('Deprecated') +const int kComponentsFolderType = 1668116580; + +@Deprecated('Deprecated') +const int kCompositionsFolderType = 1668116595; + +const int kComputerIcon = 1919905652; + +const int kConfigurationLockedErr = -9076; + +const int kConnSuite = 1835098979; + +const int kConnectToIcon = 1668178804; + +const int kConnectionAudioStreaming = 1635083379; + +const int kConnectionBlueGammaScale = 1650946915; + +const int kConnectionChanged = 1667788391; + +const int kConnectionCheckEnable = 1667591777; + +const int kConnectionColorDepthsSupported = 543322211; + +const int kConnectionColorMode = 1668904310; + +const int kConnectionColorModesSupported = 1668246642; + +const int kConnectionControllerColorDepth = 6582372; + +const int kConnectionControllerDepthsSupported = 6779492; + +const int kConnectionControllerDitherControl = 6775907; + +const int kConnectionDisplayFlags = 1684434023; + +const int kConnectionDisplayParameterCount = 1885564532; + +const int kConnectionDisplayParameters = 1885434477; + +const int kConnectionEnable = 1701732706; + +const int kConnectionEnableAudio = 1635083296; + +const int kConnectionFlags = 1718380403; + +const int kConnectionFlushParameters = 1718383987; + +const int kConnectionGammaScale = 1735615264; + +const int kConnectionGreenGammaScale = 1734832995; + +const int kConnectionHandleDisplayPortEvent = 1685088626; + +const int kConnectionIgnore = 6907762; + +const int kConnectionOverscan = 1869833070; + +const int kConnectionPanelTimingDisable = 1886284916; + +const int kConnectionPostWake = 1886871915; + +const int kConnectionPower = 1886353266; + +const int kConnectionProbe = 1886547810; + +const int kConnectionRedGammaScale = 1919382371; + +const int kConnectionStartOfFrameTime = 1936680564; + +const int kConnectionSupportsAppleSense = 1634954867; + +const int kConnectionSupportsHLDDCSense = 1751409763; + +const int kConnectionSupportsLLDDCSense = 1818518627; + +const int kConnectionSyncEnable = 1937337955; + +const int kConnectionSyncFlags = 1937335142; + +const int kConnectionVBLMultiplier = 1986161773; + +const int kConnectionVideoBest = 1986163572; + +const int kContainerAliasType = 1685221232; + +const int kContainerCDROMAliasType = 1667523698; + +const int kContainerFloppyAliasType = 1718382713; + +const int kContainerFolderAliasType = 1717858928; + +const int kContainerHardDiskAliasType = 1751413611; + +const int kContainerServerAliasType = 1936881266; + +const int kContainerTrashAliasType = 1953657704; + +const int kContextualAlternatesOffSelector = 1; + +const int kContextualAlternatesOnSelector = 0; + +const int kContextualAlternatesType = 36; + +const int kContextualLigaturesOffSelector = 19; + +const int kContextualLigaturesOnSelector = 18; + +const int kContextualMenuItemsFolderIcon = 1668116085; + +@Deprecated('Deprecated') +const int kContextualMenuItemsFolderType = 1668116085; + +const int kContextualSwashAlternatesOffSelector = 5; + +const int kContextualSwashAlternatesOnSelector = 4; + +const int kControlPanelDisabledFolderIcon = 1668575812; + +@Deprecated('Deprecated') +const int kControlPanelDisabledFolderType = 1668575812; + +const int kControlPanelFolderAliasType = 1717658484; + +const int kControlPanelFolderIcon = 1668575852; + +const int kControlPanelFolderIconResource = -3976; + +@Deprecated('Deprecated') +const int kControlPanelFolderType = 1668575852; + +const int kControlStripModulesFolderIcon = 1935963844; + +@Deprecated('Deprecated') +const int kControlStripModulesFolderType = 1935959414; + +@Deprecated('Deprecated') +const int kCooperativeThread = 1; + +const int kCoreEndianAppleEventManagerDomain = 1634039412; + +const int kCoreEndianResourceManagerDomain = 1920168547; + +const int kCoreEventClass = 1634039412; + +@Deprecated('Deprecated') +const int kCoreServicesFolderType = 1668510326; + +@Deprecated('Deprecated') +const int kCreateFolder = 1; + +@Deprecated('Deprecated') +const int kCreateFolderAtBoot = 2; + +@Deprecated('Deprecated') +const int kCreateFolderAtBootBit = 1; + +@Deprecated('Deprecated') +const int kCreateIfNeeded = 4; + +const int kCreationDateKCItemAttr = 1667522932; + +const int kCreatorKCItemAttr = 1668445298; + +@Deprecated('Deprecated') +const int kCurrentMixedModeStateRecord = 1; + +const int kCurrentProcess = 2; + +@Deprecated('Deprecated') +const int kCurrentThreadID = 1; + +const int kCurrentUserFolderLocation = 1668641638; + +@Deprecated('Deprecated') +const int kCurrentUserFolderType = 1668641650; + +@Deprecated('Deprecated') +const int kCurrentUserRemoteFolderLocation = 1920299878; + +@Deprecated('Deprecated') +const int kCurrentUserRemoteFolderType = 1920299890; + +const int kCursiveConnectionType = 2; + +const int kCursiveSelector = 2; + +const int kCustomBadgeResourceID = -16455; + +const int kCustomBadgeResourceType = 1650549863; + +const int kCustomBadgeResourceVersion = 0; + +const int kCustomIconKCItemAttr = 1668641641; + +const int kCustomIconResource = -16455; + +@Deprecated('Deprecated') +const int kD0DispatchedCStackBased = 9; + +@Deprecated('Deprecated') +const int kD0DispatchedPascalStackBased = 8; + +@Deprecated('Deprecated') +const int kD1DispatchedPascalStackBased = 12; + +const int kDMCantBlock = -6224; + +const int kDMDisplayAlreadyInstalledErr = -6230; + +const int kDMDisplayNotFoundErr = -6229; + +const int kDMDriverNotDisplayMgrAwareErr = -6228; + +const int kDMFoundErr = -6232; + +const int kDMGenErr = -6220; + +const int kDMMainDisplayCannotMoveErr = -6231; + +const int kDMMirroringBlocked = -6223; + +const int kDMMirroringNotOn = -6225; + +const int kDMMirroringOnAlready = -6221; + +const int kDMNoDeviceTableclothErr = -6231; + +const int kDMNotFoundErr = -6229; + +const int kDMSWNotInitializedErr = -6227; + +const int kDMWrongNumberOfDisplays = -6222; + +const int kDOSJapanesePalmVariant = 1; + +const int kDOSJapaneseStandardVariant = 0; + +const int kDSpConfirmSwitchWarning = -30448; + +const int kDSpContextAlreadyReservedErr = -30444; + +const int kDSpContextNotFoundErr = -30446; + +const int kDSpContextNotReservedErr = -30445; + +const int kDSpFrameRateNotReadyErr = -30447; + +const int kDSpInternalErr = -30449; + +const int kDSpInvalidAttributesErr = -30443; + +const int kDSpInvalidContextErr = -30442; + +const int kDSpNotInitializedErr = -30440; + +const int kDSpStereoContextErr = -30450; + +const int kDSpSystemSWTooOldErr = -30441; + +const int kDTPAbortJobErr = 128; + +const int kDTPHoldJobErr = -4200; + +const int kDTPStopQueueErr = -4201; + +const int kDTPThirdPartySupported = 4; + +const int kDTPTryAgainErr = -4202; + +const int kDataAccessKCEvent = 10; + +const int kDataAccessKCEventMask = 1024; + +@Deprecated('Deprecated') +const int kDataAlignmentException = 17; + +@Deprecated('Deprecated') +const int kDataBreakpointException = 11; + +const int kDecomposeDiacriticsSelector = 2; + +const int kDecorativeBordersSelector = 4; + +const int kDecryptKCItemAttr = 1684366194; + +const int kDefaultCJKRomanSelector = 2; + +const int kDefaultCMMSignature = 1634758764; + +const int kDefaultChangedKCEvent = 9; + +const int kDefaultChangedKCEventMask = 512; + +const int kDefaultLowerCaseSelector = 0; + +const int kDefaultUpperCaseSelector = 0; + +const int kDeleteAliasIcon = 1684106345; + +const int kDeleteKCEvent = 4; + +const int kDeleteKCEventMask = 16; + +const int kDescriptionKCItemAttr = 1684370275; + +const int kDesignComplexityType = 18; + +const int kDesignLevel1Selector = 0; + +const int kDesignLevel2Selector = 1; + +const int kDesignLevel3Selector = 2; + +const int kDesignLevel4Selector = 3; + +const int kDesignLevel5Selector = 4; + +@Deprecated('Deprecated') +const int kDesktopFolderType = 1684370283; + +const int kDesktopIcon = 1684370283; + +const int kDesktopIconResource = -3992; + +@Deprecated('Deprecated') +const int kDesktopPicturesFolderType = 1685352644; + +const int kDesktopPrinterAliasType = 1685352545; + +@Deprecated('Deprecated') +const int kDeveloperApplicationsFolderType = 1684107376; + +@Deprecated('Deprecated') +const int kDeveloperDocsFolderType = 1684303715; + +@Deprecated('Deprecated') +const int kDeveloperFolderType = 1684371046; + +@Deprecated('Deprecated') +const int kDeveloperHelpFolderType = 1684371048; + +const int kDeviceInitiatedWake = 18; + +const int kDeviceToPCS = 1; + +const int kDiacriticsType = 9; + +const int kDiagonalFractionsSelector = 2; + +const int kDiamondAnnotationSelector = 8; + +const int kDictionariesFolderType = 1684628340; + +const int kDingbatsSelector = 1; + +const int kDiphthongLigaturesOffSelector = 11; + +const int kDiphthongLigaturesOnSelector = 10; + +@Deprecated('Deprecated') +const int kDirectoryServicesFolderType = 1685287542; + +@Deprecated('Deprecated') +const int kDirectoryServicesPlugInsFolderType = 1685089383; + +@Deprecated('Deprecated') +const int kDispatchedParameterPhase = 8; + +@Deprecated('Deprecated') +const int kDispatchedSelectorSizePhase = 6; + +@Deprecated('Deprecated') +const int kDispatchedSelectorSizeWidth = 2; + +@Deprecated('Deprecated') +const int kDisplayExtensionsFolderType = 1685287020; + +const int kDisplayModeAcceleratorBackedFlag = 4194304; + +const int kDisplayModeAlwaysShowFlag = 8; + +const int kDisplayModeBuiltInFlag = 1024; + +const int kDisplayModeDefaultFlag = 4; + +const int kDisplayModeInterlacedFlag = 64; + +const int kDisplayModeNativeFlag = 33554432; + +const int kDisplayModeNeverShowFlag = 128; + +const int kDisplayModeNotGraphicsQualityFlag = 4096; + +const int kDisplayModeNotPresetFlag = 512; + +const int kDisplayModeNotResizeFlag = 16; + +const int kDisplayModeRequiresPanFlag = 32; + +const int kDisplayModeSafeFlag = 2; + +const int kDisplayModeSafetyFlags = 7; + +const int kDisplayModeSimulscanFlag = 256; + +const int kDisplayModeStretchedFlag = 2048; + +const int kDisplayModeTelevisionFlag = 1048576; + +const int kDisplayModeValidFlag = 1; + +const int kDisplayModeValidForAirPlayFlag = 16777216; + +const int kDisplayModeValidForHiResFlag = 8388608; + +const int kDisplayModeValidForMirroringFlag = 2097152; + +const int kDisplayModeValidateAgainstDisplay = 8192; + +const int kDisplayProductIDGeneric = 1815; + +const int kDisplaySubPixelConfigurationDelta = 1; + +const int kDisplaySubPixelConfigurationQuad = 4; + +const int kDisplaySubPixelConfigurationStripe = 2; + +const int kDisplaySubPixelConfigurationStripeOffset = 3; + +const int kDisplaySubPixelConfigurationUndefined = 0; + +const int kDisplaySubPixelLayoutBGR = 2; + +const int kDisplaySubPixelLayoutQuadGBL = 3; + +const int kDisplaySubPixelLayoutQuadGBR = 4; + +const int kDisplaySubPixelLayoutRGB = 1; + +const int kDisplaySubPixelLayoutUndefined = 0; + +const int kDisplaySubPixelShapeElliptical = 5; + +const int kDisplaySubPixelShapeOval = 4; + +const int kDisplaySubPixelShapeRectangular = 3; + +const int kDisplaySubPixelShapeRound = 1; + +const int kDisplaySubPixelShapeSquare = 2; + +const int kDisplaySubPixelShapeUndefined = 0; + +const int kDisplayTextSelector = 1; + +const int kDisplayVendorIDUnknown = 1970170734; + +const int kDoFolderActionEvent = 1718578273; + +@Deprecated('Deprecated') +const int kDocumentationFolderType = 1768842863; + +const int kDocumentsFolderIcon = 1685021555; + +@Deprecated('Deprecated') +const int kDocumentsFolderType = 1685021555; + +@Deprecated('Deprecated') +const int kDomainLibraryFolderType = 1684826466; + +@Deprecated('Deprecated') +const int kDomainTopLevelFolderType = 1685352304; + +@Deprecated('Deprecated') +const int kDontCreateFolder = 0; + +const int kDontFindAppBySignature = 16384; + +@Deprecated('Deprecated') +const int kDontPassSelector = 8; + +@Deprecated('Deprecated') +const int kDownloadsFolderType = 1685026670; + +const int kDozeDemand = 7; + +const int kDozeRequest = 9; + +const int kDozeToFullWakeUp = 20; + +const int kDozeWakeUp = 8; + +@Deprecated('Deprecated') +const int kDropBoxFolderType = 1685221232; + +const int kDropFolderAliasType = 1717658738; + +const int kDropFolderIcon = 1684172664; + +const int kDropFolderIconResource = -3979; + +const int kDropIconVariant = 1685221232; + +@Deprecated('Deprecated') +const int kDurationForever = 2147483647; + +@Deprecated('Deprecated') +const int kDurationImmediate = 0; + +@Deprecated('Deprecated') +const int kDurationMicrosecond = -1; + +@Deprecated('Deprecated') +const int kDurationMillisecond = 1; + +const int kEACCESErr = -3212; + +const int kEADDRINUSEErr = -3247; + +const int kEADDRNOTAVAILErr = -3248; + +const int kEAGAINErr = -3210; + +const int kEALREADYErr = -3236; + +const int kEBADFErr = -3208; + +const int kEBADMSGErr = -3272; + +const int kEBUSYErr = -3215; + +const int kECANCELErr = -3273; + +const int kECONNABORTEDErr = -3252; + +const int kECONNREFUSEDErr = -3260; + +const int kECONNRESETErr = -3253; + +const int kEDEADLKErr = -3234; + +const int kEDESTADDRREQErr = -3238; + +const int kEEXISTErr = -3216; + +const int kEFAULTErr = -3213; + +const int kEHOSTDOWNErr = -3263; + +const int kEHOSTUNREACHErr = -3264; + +const int kEINPROGRESSErr = -3276; + +const int kEINTRErr = -3203; + +const int kEINVALErr = -3221; + +const int kEIOErr = -3204; + +const int kEISCONNErr = -3255; + +const int kEMSGSIZEErr = -3239; + +const int kEMailKCItemAttr = 1835100524; + +const int kENETDOWNErr = -3249; + +const int kENETRESETErr = -3251; + +const int kENETUNREACHErr = -3250; + +const int kENOBUFSErr = -3254; + +const int kENODATAErr = -3275; + +const int kENODEVErr = -3218; + +const int kENOENTErr = -3201; + +const int kENOMEMErr = -3211; + +const int kENOMSGErr = -3278; + +const int kENOPROTOOPTErr = -3241; + +const int kENORSRCErr = -3202; + +const int kENOSRErr = -3271; + +const int kENOSTRErr = -3274; + +const int kENOTCONNErr = -3256; + +const int kENOTSOCKErr = -3237; + +const int kENOTTYErr = -3224; + +const int kENXIOErr = -3205; + +const int kEOPNOTSUPPErr = -3244; + +const int kEPERMErr = -3200; + +const int kEPIPEErr = -3231; + +const int kEPROTOErr = -3269; + +const int kEPROTONOSUPPORTErr = -3242; + +const int kEPROTOTYPEErr = -3240; + +const int kERANGEErr = -3233; + +const int kESHUTDOWNErr = -3257; + +const int kESOCKTNOSUPPORTErr = -3243; + +const int kESRCHErr = -3277; + +const int kETIMEDOUTErr = -3259; + +const int kETIMEErr = -3270; + +const int kETOOMANYREFSErr = -3258; + +const int kEUC_CN_BasicVariant = 0; + +const int kEUC_CN_DOSVariant = 1; + +const int kEUC_KR_BasicVariant = 0; + +const int kEUC_KR_DOSVariant = 1; + +const int kEWOULDBLOCKErr = -3234; + +@Deprecated('Deprecated') +const int kEditorsFolderType = 1868850532; + +const int kEjectMediaIcon = 1701471587; + +const int kEncryptKCItemAttr = 1701733234; + +const int kEncryptPassword = 3; + +const int kEndDateKCItemAttr = 1701077364; + +const int kEndOfSentence = 2; + +const int kEndOfWord = 1; + +const int kEngravedTextSelector = 2; + +const int kEnterIdle = 24; + +const int kEnterRun = 11; + +const int kEnterStandby = 10; + +const int kEveryKCEventMask = 65535; + +@Deprecated('Deprecated') +const int kExactMatchThread = 16; + +@Deprecated('Deprecated') +const int kExcludedMemoryException = 5; + +const int kExitIdle = 26; + +const int kExpertCharactersSelector = 10; + +const int kExponentsOffSelector = 9; + +const int kExponentsOnSelector = 8; + +const int kExportedFolderAliasType = 1717658996; + +const int kExtendedFlagHasCustomBadge = 256; + +const int kExtendedFlagHasRoutingInfo = 4; + +const int kExtendedFlagObjectIsBusy = 128; + +const int kExtendedFlagsAreInvalid = 32768; + +@Deprecated('Deprecated') +const int kExtensionDisabledFolderType = 1702392900; + +const int kExtensionFolderAliasType = 1717659000; + +@Deprecated('Deprecated') +const int kExtensionFolderType = 1702392942; + +const int kExtensionsDisabledFolderIcon = 1702392900; + +const int kExtensionsFolderIcon = 1702392942; + +const int kExtensionsFolderIconResource = -3973; + +const int kFAAttachCommand = 1635018337; + +const int kFAEditCommand = 1701078625; + +const int kFAFileParam = 1717657964; + +const int kFAIndexParam = 1768842360; + +const int kFARemoveCommand = 1919772257; + +const int kFAServerApp = 1936945782; + +const int kFASuiteCode = 1717658479; + +const int kFBCaccessCanceled = -30521; + +const int kFBCaccessorStoreFailed = -30515; + +const int kFBCaddDocFailed = -30516; + +const int kFBCallocFailed = -30502; + +const int kFBCanalysisNotAvailable = -30527; + +const int kFBCbadIndexFile = -30505; + +const int kFBCbadIndexFileVersion = -30528; + +const int kFBCbadParam = -30503; + +const int kFBCbadSearchSession = -30531; + +const int kFBCcommitFailed = -30509; + +const int kFBCcompactionFailed = -30506; + +const int kFBCdeletionFailed = -30510; + +const int kFBCfileNotIndexed = -30504; + +const int kFBCflushFailed = -30517; + +const int kFBCillegalSessionChange = -30526; + +const int kFBCindexCreationFailed = -30514; + +const int kFBCindexDiskIOFailed = -30530; + +const int kFBCindexFileDestroyed = -30522; + +const int kFBCindexNotAvailable = -30523; + +const int kFBCindexNotFound = -30518; + +const int kFBCindexingCanceled = -30520; + +const int kFBCindexingFailed = -30508; + +const int kFBCmergingFailed = -30513; + +const int kFBCmoveFailed = -30511; + +const int kFBCnoIndexesFound = -30501; + +const int kFBCnoSearchSession = -30519; + +const int kFBCnoSuchHit = -30532; + +const int kFBCsearchFailed = -30524; + +const int kFBCsomeFilesNotIndexed = -30525; + +const int kFBCsummarizationCanceled = -30529; + +const int kFBCtokenizationFailed = -30512; + +const int kFBCvTwinExceptionErr = -30500; + +const int kFBCvalidationFailed = -30507; + +const int kFMCurrentFilterFormat = 0; + +const int kFMFontCallbackFilterSelector = 5; + +const int kFMFontContainerAccessErr = -985; + +const int kFMFontContainerFilterSelector = 2; + +const int kFMFontDirectoryFilterSelector = 6; + +const int kFMFontFamilyCallbackFilterSelector = 4; + +const int kFMFontFileRefFilterSelector = 10; + +const int kFMFontTableAccessErr = -984; + +const int kFMFontTechnologyFilterSelector = 1; + +const int kFMGenerationFilterSelector = 3; + +const int kFMInvalidFontErr = -982; + +const int kFMInvalidFontFamilyErr = -981; + +const int kFMIterationCompleted = -980; + +const int kFMIterationScopeModifiedErr = -983; + +const int kFMPostScriptFontTechnology = 1954115633; + +const int kFMTrueTypeFontTechnology = 1953658213; + +const int kFNDirectoryModifiedMessage = 1; + +const int kFNNoImplicitAllSubscription = 1; + +const int kFNNotifyInBackground = 2; + +const int kFNSBadFlattenedSizeErr = -29587; + +const int kFNSBadProfileVersionErr = -29583; + +const int kFNSBadReferenceVersionErr = -29581; + +const int kFNSDuplicateReferenceErr = -29584; + +const int kFNSInsufficientDataErr = -29586; + +const int kFNSInvalidProfileErr = -29582; + +const int kFNSInvalidReferenceErr = -29580; + +const int kFNSMismatchErr = -29585; + +const int kFNSNameNotFoundErr = -29589; + +@Deprecated('Deprecated') +const int kFPUNotNeeded = 8; + +@Deprecated('Deprecated') +const int kFSAliasInfoFSInfo = 32; + +@Deprecated('Deprecated') +const int kFSAliasInfoFinderInfo = 4; + +@Deprecated('Deprecated') +const int kFSAliasInfoIDs = 16; + +@Deprecated('Deprecated') +const int kFSAliasInfoIsDirectory = 8; + +@Deprecated('Deprecated') +const int kFSAliasInfoNone = 0; + +@Deprecated('Deprecated') +const int kFSAliasInfoTargetCreateDate = 2; + +@Deprecated('Deprecated') +const int kFSAliasInfoVolumeCreateDate = 1; + +@Deprecated('Deprecated') +const int kFSAliasInfoVolumeFlags = 64; + +const int kFSAllocAllOrNothingMask = 1; + +const int kFSAllocContiguousMask = 2; + +const int kFSAllocDefaultFlags = 0; + +const int kFSAllocNoRoundUpMask = 4; + +const int kFSAllocReservedMask = 65528; + +const int kFSAllowConcurrentAsyncIOBit = 3; + +const int kFSAllowConcurrentAsyncIOMask = 8; + +const int kFSCatInfoAccessDate = 256; + +const int kFSCatInfoAllDates = 992; + +const int kFSCatInfoAttrMod = 128; + +const int kFSCatInfoBackupDate = 512; + +const int kFSCatInfoContentMod = 64; + +const int kFSCatInfoCreateDate = 32; + +const int kFSCatInfoDataSizes = 16384; + +const int kFSCatInfoFSFileSecurityRef = 4194304; + +const int kFSCatInfoFinderInfo = 2048; + +const int kFSCatInfoFinderXInfo = 4096; + +const int kFSCatInfoGettableInfo = 262143; + +const int kFSCatInfoNodeFlags = 2; + +const int kFSCatInfoNodeID = 16; + +const int kFSCatInfoNone = 0; + +const int kFSCatInfoParentDirID = 8; + +const int kFSCatInfoPermissions = 1024; + +const int kFSCatInfoReserved = -262144; + +const int kFSCatInfoRsrcSizes = 32768; + +const int kFSCatInfoSetOwnership = 1048576; + +const int kFSCatInfoSettableInfo = 8163; + +const int kFSCatInfoSharingFlags = 65536; + +const int kFSCatInfoTextEncoding = 1; + +const int kFSCatInfoUserAccess = 524288; + +const int kFSCatInfoUserPrivs = 131072; + +const int kFSCatInfoValence = 8192; + +const int kFSCatInfoVolume = 4; + +const int kFSEjectVolumeForceEject = 1; + +const int kFSEventStreamCreateDeviceState = 512; + +const int kFSEventStreamCreateFlagFileEvents = 16; + +const int kFSEventStreamCreateFlagFullHistory = 128; + +const int kFSEventStreamCreateFlagIgnoreSelf = 8; + +const int kFSEventStreamCreateFlagMarkSelf = 32; + +const int kFSEventStreamCreateFlagNoDefer = 2; + +const int kFSEventStreamCreateFlagNone = 0; + +const int kFSEventStreamCreateFlagUseCFTypes = 1; + +const int kFSEventStreamCreateFlagUseExtendedData = 64; + +const int kFSEventStreamCreateFlagWatchRoot = 4; + +const int kFSEventStreamCreateWithDocID = 256; + +const int kFSEventStreamEventFlagEventIdsWrapped = 8; + +const int kFSEventStreamEventFlagHistoryDone = 16; + +const int kFSEventStreamEventFlagItemChangeOwner = 16384; + +const int kFSEventStreamEventFlagItemCloned = 4194304; + +const int kFSEventStreamEventFlagItemCreated = 256; + +const int kFSEventStreamEventFlagItemFinderInfoMod = 8192; + +const int kFSEventStreamEventFlagItemInodeMetaMod = 1024; + +const int kFSEventStreamEventFlagItemIsDir = 131072; + +const int kFSEventStreamEventFlagItemIsFile = 65536; + +const int kFSEventStreamEventFlagItemIsHardlink = 1048576; + +const int kFSEventStreamEventFlagItemIsLastHardlink = 2097152; + +const int kFSEventStreamEventFlagItemIsSymlink = 262144; + +const int kFSEventStreamEventFlagItemModified = 4096; + +const int kFSEventStreamEventFlagItemRemoved = 512; + +const int kFSEventStreamEventFlagItemRenamed = 2048; + +const int kFSEventStreamEventFlagItemXattrMod = 32768; + +const int kFSEventStreamEventFlagKernelDropped = 4; + +const int kFSEventStreamEventFlagMount = 64; + +const int kFSEventStreamEventFlagMustScanSubDirs = 1; + +const int kFSEventStreamEventFlagNone = 0; + +const int kFSEventStreamEventFlagOwnEvent = 524288; + +const int kFSEventStreamEventFlagRootChanged = 32; + +const int kFSEventStreamEventFlagUnmount = 128; + +const int kFSEventStreamEventFlagUserDropped = 2; + +const int kFSEventStreamEventIdSinceNow = -1; + +const int kFSFileOperationDefaultOptions = 0; + +const int kFSFileOperationDoNotMoveAcrossVolumes = 4; + +const int kFSFileOperationOverwrite = 1; + +const int kFSFileOperationSkipPreflight = 8; + +const int kFSFileOperationSkipSourcePermissionErrors = 2; + +const int kFSForceReadBit = 6; + +const int kFSForceReadMask = 64; + +const int kFSInvalidVolumeRefNum = 0; + +const int kFSIterateDelete = 2; + +const int kFSIterateFlat = 0; + +const int kFSIterateReserved = -4; + +const int kFSIterateSubtree = 1; + +const int kFSKMountVersion = 1179863841; + +const int kFSMountServerMarkDoNotDisplay = 1; + +const int kFSMountServerMountOnMountDir = 4; + +const int kFSMountServerMountWithoutNotification = 2; + +const int kFSMountServerSuppressConnectionUI = 64; + +const int kFSNewLineBit = 7; + +const int kFSNewLineCharMask = 65280; + +const int kFSNewLineMask = 128; + +const int kFSNoCacheBit = 5; + +const int kFSNoCacheMask = 32; + +const int kFSNodeCopyProtectBit = 6; + +const int kFSNodeCopyProtectMask = 64; + +const int kFSNodeDataOpenBit = 3; + +const int kFSNodeDataOpenMask = 8; + +const int kFSNodeForkOpenBit = 7; + +const int kFSNodeForkOpenMask = 128; + +const int kFSNodeHardLinkBit = 8; + +const int kFSNodeHardLinkMask = 256; + +const int kFSNodeInSharedBit = 2; + +const int kFSNodeInSharedMask = 4; + +const int kFSNodeIsDirectoryBit = 4; + +const int kFSNodeIsDirectoryMask = 16; + +const int kFSNodeIsMountedBit = 3; + +const int kFSNodeIsMountedMask = 8; + +const int kFSNodeIsSharePointBit = 5; + +const int kFSNodeIsSharePointMask = 32; + +const int kFSNodeLockedBit = 0; + +const int kFSNodeLockedMask = 1; + +const int kFSNodeResOpenBit = 2; + +const int kFSNodeResOpenMask = 4; + +const int kFSOperationStageComplete = 3; + +const int kFSOperationStagePreflighting = 1; + +const int kFSOperationStageRunning = 2; + +const int kFSOperationStageUndefined = 0; + +const int kFSPathMakeRefDefaultOptions = 0; + +const int kFSPathMakeRefDoNotFollowLeafSymlink = 1; + +const int kFSPleaseCacheBit = 4; + +const int kFSPleaseCacheMask = 16; + +const int kFSRdVerifyBit = 6; + +const int kFSRdVerifyMask = 64; + +const int kFSReplaceObjectDefaultOptions = 0; + +const int kFSReplaceObjectDoNotCheckObjectWriteAccess = 16; + +const int kFSReplaceObjectPreservePermissionInfo = 8; + +const int kFSReplaceObjectReplaceMetadata = 1; + +const int kFSReplaceObjectReplacePermissionInfo = 4; + +const int kFSReplaceObjectSaveOriginalAsABackup = 2; + +const int kFSUnmountVolumeForceUnmount = 1; + +const int kFSVolFlagDefaultVolumeBit = 5; + +const int kFSVolFlagDefaultVolumeMask = 32; + +const int kFSVolFlagFilesOpenBit = 6; + +const int kFSVolFlagFilesOpenMask = 64; + +const int kFSVolFlagHardwareLockedBit = 7; + +const int kFSVolFlagHardwareLockedMask = 128; + +const int kFSVolFlagJournalingActiveBit = 14; + +const int kFSVolFlagJournalingActiveMask = 16384; + +const int kFSVolFlagSoftwareLockedBit = 15; + +const int kFSVolFlagSoftwareLockedMask = 32768; + +const int kFSVolInfoBackupDate = 4; + +const int kFSVolInfoBlocks = 128; + +const int kFSVolInfoCheckedDate = 8; + +const int kFSVolInfoCreateDate = 1; + +const int kFSVolInfoDataClump = 1024; + +const int kFSVolInfoDirCount = 32; + +const int kFSVolInfoDriveInfo = 32768; + +const int kFSVolInfoFSInfo = 16384; + +const int kFSVolInfoFileCount = 16; + +const int kFSVolInfoFinderInfo = 4096; + +const int kFSVolInfoFlags = 8192; + +const int kFSVolInfoGettableInfo = 65535; + +const int kFSVolInfoModDate = 2; + +const int kFSVolInfoNextAlloc = 256; + +const int kFSVolInfoNextID = 2048; + +const int kFSVolInfoNone = 0; + +const int kFSVolInfoRsrcClump = 512; + +const int kFSVolInfoSettableInfo = 12292; + +const int kFSVolInfoSizes = 64; + +const int kFTPServerIcon = 1718906995; + +const int kFavoriteItemsIcon = 1717663346; + +const int kFavoritesFolderIcon = 1717663347; + +@Deprecated('Deprecated') +const int kFavoritesFolderType = 1717663347; + +const int kFemale = 2; + +@Deprecated('Deprecated') +const int kFetchReference = 2; + +@Deprecated('Deprecated') +const int kFileSystemSupportFolderType = 1718843763; + +@Deprecated('Deprecated') +const int kFindByContentFolderType = 1717724006; + +@Deprecated('Deprecated') +const int kFindByContentIndexesFolderType = 1717724024; + +@Deprecated('Deprecated') +const int kFindByContentPluginsFolderType = 1717724016; + +@Deprecated('Deprecated') +const int kFindSupportFolderType = 1718510707; + +const int kFinderIcon = 1179534418; + +const int kFirstFailKCStopOn = 3; + +const int kFirstIOKitNotificationType = 100; + +const int kFirstMagicBusyFiletype = 1652193568; + +const int kFirstPassKCStopOn = 2; + +const int kFleuronsSelector = 3; + +@Deprecated('Deprecated') +const int kFloatingPointException = 13; + +const int kFloppyIconResource = -3998; + +const int kFolderActionCode = 1633907822; + +@Deprecated('Deprecated') +const int kFolderActionsFolderType = 1717662566; + +const int kFolderClosedEvent = 1717791855; + +@Deprecated('Deprecated') +const int kFolderCreatedAdminPrivs = 16; + +@Deprecated('Deprecated') +const int kFolderCreatedAdminPrivsBit = 4; + +@Deprecated('Deprecated') +const int kFolderCreatedInvisible = 4; + +@Deprecated('Deprecated') +const int kFolderCreatedInvisibleBit = 2; + +@Deprecated('Deprecated') +const int kFolderCreatedNameLocked = 8; + +@Deprecated('Deprecated') +const int kFolderCreatedNameLockedBit = 3; + +@Deprecated('Deprecated') +const int kFolderInLocalOrRemoteUserFolder = 160; + +@Deprecated('Deprecated') +const int kFolderInRemoteUserFolderIfAvailable = 128; + +@Deprecated('Deprecated') +const int kFolderInRemoteUserFolderIfAvailableBit = 7; + +@Deprecated('Deprecated') +const int kFolderInUserFolder = 32; + +@Deprecated('Deprecated') +const int kFolderInUserFolderBit = 5; + +const int kFolderItemsAddedEvent = 1718052212; + +const int kFolderItemsRemovedEvent = 1718382451; + +@Deprecated('Deprecated') +const int kFolderManagerFolderInMacOS9FolderIfMacOSXIsInstalledBit = 10; + +@Deprecated('Deprecated') +const int kFolderManagerFolderInMacOS9FolderIfMacOSXIsInstalledMask = 1024; + +@Deprecated('Deprecated') +const int kFolderManagerLastDomain = -32760; + +@Deprecated('Deprecated') +const int kFolderManagerNewlyCreatedFolderIsLocalizedBit = 12; + +@Deprecated('Deprecated') +const int +kFolderManagerNewlyCreatedFolderShouldHaveDotLocalizedCreatedWithinMask = 4096; + +@Deprecated('Deprecated') +const int kFolderManagerNotCreatedOnRemoteVolumesBit = 11; + +@Deprecated('Deprecated') +const int kFolderManagerNotCreatedOnRemoteVolumesMask = 2048; + +@Deprecated('Deprecated') +const int kFolderMustStayOnSameVolume = 512; + +@Deprecated('Deprecated') +const int kFolderMustStayOnSameVolumeBit = 9; + +@Deprecated('Deprecated') +const int kFolderNeverMatchedInIdentifyFolder = 256; + +@Deprecated('Deprecated') +const int kFolderNeverMatchedInIdentifyFolderBit = 8; + +const int kFolderOpenedEvent = 1718579310; + +@Deprecated('Deprecated') +const int kFolderTrackedByAlias = 64; + +@Deprecated('Deprecated') +const int kFolderTrackedByAliasBit = 6; + +const int kFolderWindowMovedEvent = 1718839674; + +const int kFontAlbanianLanguage = 36; + +const int kFontAmharicLanguage = 85; + +const int kFontAmharicScript = 28; + +const int kFontArabicLanguage = 12; + +const int kFontArabicScript = 4; + +const int kFontArmenianLanguage = 51; + +const int kFontArmenianScript = 24; + +const int kFontAssameseLanguage = 68; + +const int kFontAymaraLanguage = 134; + +const int kFontAzerbaijanArLanguage = 50; + +const int kFontAzerbaijaniLanguage = 49; + +const int kFontBasqueLanguage = 129; + +const int kFontBengaliLanguage = 67; + +const int kFontBengaliScript = 13; + +const int kFontBulgarianLanguage = 44; + +const int kFontBurmeseLanguage = 77; + +const int kFontBurmeseScript = 19; + +const int kFontByelorussianLanguage = 46; + +const int kFontCatalanLanguage = 130; + +const int kFontChewaLanguage = 92; + +const int kFontChineseScript = 2; + +@Deprecated('Deprecated') +const int kFontCollectionsFolderType = 1718510444; + +const int kFontCopyrightName = 0; + +const int kFontCroatianLanguage = 18; + +const int kFontCustom16BitScript = 2; + +const int kFontCustom816BitScript = 1; + +const int kFontCustom8BitScript = 0; + +const int kFontCustomPlatform = 4; + +const int kFontCyrillicScript = 7; + +const int kFontCzechLanguage = 38; + +const int kFontDanishLanguage = 7; + +const int kFontDescriptionName = 10; + +const int kFontDesignerName = 9; + +const int kFontDesignerURLName = 12; + +const int kFontDevanagariScript = 9; + +const int kFontDutchLanguage = 4; + +const int kFontDzongkhaLanguage = 137; + +const int kFontEastEuropeanRomanScript = 29; + +const int kFontEnglishLanguage = 0; + +const int kFontEsperantoLanguage = 94; + +const int kFontEstonianLanguage = 27; + +const int kFontEthiopicScript = 28; + +const int kFontExtendedArabicScript = 31; + +const int kFontFaeroeseLanguage = 30; + +const int kFontFamilyName = 1; + +const int kFontFarsiLanguage = 31; + +const int kFontFinnishLanguage = 13; + +const int kFontFlemishLanguage = 34; + +const int kFontFrenchLanguage = 1; + +const int kFontFullName = 4; + +const int kFontGallaLanguage = 87; + +const int kFontGeezScript = 28; + +const int kFontGeorgianLanguage = 52; + +const int kFontGeorgianScript = 23; + +const int kFontGermanLanguage = 2; + +const int kFontGreekLanguage = 14; + +const int kFontGreekScript = 6; + +const int kFontGuaraniLanguage = 133; + +const int kFontGujaratiLanguage = 69; + +const int kFontGujaratiScript = 11; + +const int kFontGurmukhiScript = 10; + +const int kFontHebrewLanguage = 10; + +const int kFontHebrewScript = 5; + +const int kFontHindiLanguage = 21; + +const int kFontHungarianLanguage = 26; + +const int kFontISO10646_1993Semantics = 2; + +const int kFontIcelandicLanguage = 15; + +const int kFontIndonesianLanguage = 81; + +const int kFontIrishLanguage = 35; + +const int kFontItalianLanguage = 3; + +const int kFontJapaneseLanguage = 11; + +const int kFontJapaneseScript = 1; + +const int kFontJavaneseRomLanguage = 138; + +const int kFontKannadaLanguage = 73; + +const int kFontKannadaScript = 16; + +const int kFontKashmiriLanguage = 61; + +const int kFontKazakhLanguage = 48; + +const int kFontKhmerLanguage = 78; + +const int kFontKhmerScript = 20; + +const int kFontKirghizLanguage = 54; + +const int kFontKoreanLanguage = 23; + +const int kFontKoreanScript = 3; + +const int kFontKurdishLanguage = 60; + +const int kFontLaoLanguage = 79; + +const int kFontLaotianScript = 22; + +const int kFontLappishLanguage = 29; + +const int kFontLastReservedName = 255; + +const int kFontLatinLanguage = 131; + +const int kFontLatvianLanguage = 28; + +const int kFontLettishLanguage = 28; + +const int kFontLicenseDescriptionName = 13; + +const int kFontLicenseInfoURLName = 14; + +const int kFontLithuanianLanguage = 24; + +const int kFontMacCompatibleFullName = 18; + +const int kFontMacedonianLanguage = 43; + +const int kFontMacintoshPlatform = 1; + +const int kFontMalagasyLanguage = 93; + +const int kFontMalayArabicLanguage = 84; + +const int kFontMalayRomanLanguage = 83; + +const int kFontMalayalamLanguage = 72; + +const int kFontMalayalamScript = 17; + +const int kFontMalteseLanguage = 16; + +const int kFontManufacturerName = 8; + +const int kFontMarathiLanguage = 66; + +const int kFontMicrosoftPlatform = 3; + +const int kFontMicrosoftStandardScript = 1; + +const int kFontMicrosoftSymbolScript = 0; + +const int kFontMicrosoftUCS4Script = 10; + +const int kFontMoldavianLanguage = 53; + +const int kFontMongolianCyrLanguage = 58; + +const int kFontMongolianLanguage = 57; + +const int kFontMongolianScript = 27; + +const int kFontNepaliLanguage = 64; + +const int kFontNoLanguage = -1; + +const int kFontNoLanguageCode = -1; + +const int kFontNoName = -1; + +const int kFontNoNameCode = -1; + +const int kFontNoPlatform = -1; + +const int kFontNoPlatformCode = -1; + +const int kFontNoScript = -1; + +const int kFontNoScriptCode = -1; + +const int kFontNorwegianLanguage = 9; + +const int kFontOriyaLanguage = 71; + +const int kFontOriyaScript = 12; + +const int kFontOromoLanguage = 87; + +const int kFontPashtoLanguage = 59; + +const int kFontPersianLanguage = 31; + +const int kFontPolishLanguage = 25; + +const int kFontPortugueseLanguage = 8; + +const int kFontPostScriptCIDName = 20; + +const int kFontPostscriptName = 6; + +const int kFontPreferredFamilyName = 16; + +const int kFontPreferredSubfamilyName = 17; + +const int kFontPunjabiLanguage = 70; + +const int kFontQuechuaLanguage = 132; + +const int kFontRSymbolScript = 8; + +const int kFontReservedPlatform = 2; + +const int kFontRomanScript = 0; + +const int kFontRomanianLanguage = 37; + +const int kFontRuandaLanguage = 90; + +const int kFontRundiLanguage = 91; + +const int kFontRussian = 7; + +const int kFontRussianLanguage = 32; + +const int kFontSaamiskLanguage = 29; + +const int kFontSampleTextName = 19; + +const int kFontSanskritLanguage = 65; + +const int kFontSerbianLanguage = 42; + +const int kFontSimpChineseLanguage = 33; + +const int kFontSimpleChineseScript = 25; + +const int kFontSindhiLanguage = 62; + +const int kFontSindhiScript = 31; + +const int kFontSinhaleseLanguage = 76; + +const int kFontSinhaleseScript = 18; + +const int kFontSlavicScript = 29; + +const int kFontSlovakLanguage = 39; + +const int kFontSlovenianLanguage = 40; + +const int kFontSomaliLanguage = 88; + +const int kFontSpanishLanguage = 6; + +const int kFontStyleName = 2; + +const int kFontSuitcaseIcon = 1179011404; + +const int kFontSundaneseRomLanguage = 139; + +const int kFontSwahiliLanguage = 89; + +const int kFontSwedishLanguage = 5; + +const int kFontTagalogLanguage = 82; + +const int kFontTajikiLanguage = 55; + +const int kFontTamilLanguage = 74; + +const int kFontTamilScript = 14; + +const int kFontTatarLanguage = 135; + +const int kFontTeluguLanguage = 75; + +const int kFontTeluguScript = 15; + +const int kFontThaiLanguage = 22; + +const int kFontThaiScript = 21; + +const int kFontTibetanLanguage = 63; + +const int kFontTibetanScript = 26; + +const int kFontTigrinyaLanguage = 86; + +const int kFontTradChineseLanguage = 19; + +const int kFontTrademarkName = 7; + +const int kFontTraditionalChineseScript = 2; + +const int kFontTurkishLanguage = 17; + +const int kFontTurkmenLanguage = 56; + +const int kFontUighurLanguage = 136; + +const int kFontUkrainianLanguage = 45; + +const int kFontUnicodeDefaultSemantics = 0; + +const int kFontUnicodePlatform = 0; + +const int kFontUnicodeV1_1Semantics = 1; + +const int kFontUnicodeV2_0BMPOnlySemantics = 3; + +const int kFontUnicodeV2_0FullCoverageSemantics = 4; + +const int kFontUnicodeV4_0VariationSequenceSemantics = 5; + +const int kFontUnicode_FullRepertoire = 6; + +const int kFontUninterpretedScript = 32; + +const int kFontUniqueName = 3; + +const int kFontUrduLanguage = 20; + +const int kFontUzbekLanguage = 47; + +const int kFontVendorURLName = 11; + +const int kFontVersionName = 5; + +const int kFontVietnameseLanguage = 80; + +const int kFontVietnameseScript = 30; + +const int kFontWelshLanguage = 128; + +const int kFontYiddishLanguage = 41; + +const int kFontsFolderIcon = 1718578804; + +const int kFontsFolderIconResource = -3968; + +@Deprecated('Deprecated') +const int kFontsFolderType = 1718578804; + +const int kForkInfoFlagsFileLockedBit = 5; + +const int kForkInfoFlagsFileLockedMask = 32; + +const int kForkInfoFlagsLargeFileBit = 3; + +const int kForkInfoFlagsLargeFileMask = 8; + +const int kForkInfoFlagsModifiedBit = 7; + +const int kForkInfoFlagsModifiedMask = 128; + +const int kForkInfoFlagsOwnClumpBit = 6; + +const int kForkInfoFlagsOwnClumpMask = 64; + +const int kForkInfoFlagsResourceBit = 1; + +const int kForkInfoFlagsResourceMask = 2; + +const int kForkInfoFlagsSharedWriteBit = 4; + +const int kForkInfoFlagsSharedWriteMask = 16; + +const int kForkInfoFlagsWriteBit = 0; + +const int kForkInfoFlagsWriteLockedBit = 2; + +const int kForkInfoFlagsWriteLockedMask = 4; + +const int kForkInfoFlagsWriteMask = 1; + +const int kFormInterrobangOffSelector = 7; + +const int kFormInterrobangOnSelector = 6; + +const int kForwardArrowIcon = 1717662319; + +@Deprecated('Deprecated') +const int kFourByteCode = 3; + +const int kFractionsType = 11; + +@Deprecated('Deprecated') +const int kFragmentIsPrepared = 0; + +@Deprecated('Deprecated') +const int kFragmentNeedsPreparing = 2; + +const int kFramebufferDisableAltivecAccess = 524288; + +const int kFramebufferSupportsCopybackCache = 65536; + +const int kFramebufferSupportsGammaCorrection = 262144; + +const int kFramebufferSupportsWritethruCache = 131072; + +@Deprecated('Deprecated') +const int kFrameworksFolderType = 1718772077; + +const int kFullTrashIcon = 1718907496; + +const int kFullTrashIconResource = -3984; + +const int kFullWidthCJKRomanSelector = 3; + +const int kFullWidthIdeographsSelector = 0; + +const int kFullWidthKanaSelector = 0; + +@Deprecated('Deprecated') +const int kGenEditorsFolderType = -999988119; + +const int kGeneralFailureErr = -9070; + +const int kGenericApplicationIcon = 1095782476; + +const int kGenericApplicationIconResource = -3996; + +const int kGenericCDROMIcon = 1667523698; + +const int kGenericCDROMIconResource = -3987; + +const int kGenericComponentIcon = 1953001063; + +const int kGenericControlPanelIcon = 1095782467; + +const int kGenericControlStripModuleIcon = 1935959414; + +const int kGenericDeskAccessoryIcon = 1095782468; + +const int kGenericDeskAccessoryIconResource = -3991; + +const int kGenericDocumentIcon = 1685021557; + +const int kGenericDocumentIconResource = -4000; + +const int kGenericEditionFileIcon = 1701082214; + +const int kGenericEditionFileIconResource = -3989; + +const int kGenericExtensionIcon = 1229867348; + +const int kGenericExtensionIconResource = -16415; + +const int kGenericFileServerIcon = 1936881266; + +const int kGenericFileServerIconResource = -3972; + +const int kGenericFloppyIcon = 1718382713; + +const int kGenericFolderIcon = 1718379634; + +const int kGenericFolderIconResource = -3999; + +const int kGenericFontIcon = 1717987692; + +const int kGenericFontScalerIcon = 1935895666; + +const int kGenericHardDiskIcon = 1751413611; + +const int kGenericHardDiskIconResource = -3995; + +const int kGenericIDiskIcon = 1768190827; + +const int kGenericKCItemAttr = 1734700641; + +const int kGenericMoverObjectIcon = 1836021362; + +const int kGenericMoverObjectIconResource = -3969; + +const int kGenericNetworkIcon = 1735288180; + +const int kGenericPCCardIcon = 1885564259; + +const int kGenericPasswordKCItemClass = 1734700656; + +const int kGenericPreferencesIcon = 1886545254; + +const int kGenericPreferencesIconResource = -3971; + +const int kGenericQueryDocumentIcon = 1902473849; + +const int kGenericQueryDocumentIconResource = -16506; + +const int kGenericRAMDiskIcon = 1918987620; + +const int kGenericRAMDiskIconResource = -3988; + +const int kGenericRemovableMediaIcon = 1919774582; + +const int kGenericSharedLibaryIcon = 1936223330; + +const int kGenericStationeryIcon = 1935961955; + +const int kGenericStationeryIconResource = -3985; + +const int kGenericSuitcaseIcon = 1937074548; + +const int kGenericSuitcaseIconResource = -3970; + +const int kGenericURLIcon = 1735750252; + +const int kGenericWORMIcon = 2003792493; + +const int kGenericWindowIcon = 1735879022; + +@Deprecated('Deprecated') +const int kGetDebugOption = 1; + +const int kGetPowerInfo = 21; + +const int kGetPowerLevel = 16; + +const int kGetSelectedText = 1735686260; + +const int kGetWakeOnNetInfo = 22; + +const int kGlyphCollectionAdobeCNS1 = 1; + +const int kGlyphCollectionAdobeGB1 = 2; + +const int kGlyphCollectionAdobeJapan1 = 3; + +const int kGlyphCollectionAdobeJapan2 = 4; + +const int kGlyphCollectionAdobeKorea1 = 5; + +const int kGlyphCollectionGID = 0; + +const int kGlyphCollectionUnspecified = 255; + +const int kGridIcon = 1735551332; + +const int kGroupID2Name = 2; + +const int kGroupIcon = 1735554416; + +const int kGroupName2ID = 4; + +const int kGuestUserIcon = 1735750514; + +const int kHFSAllocationFileID = 6; + +const int kHFSAttributeDataFileID = 13; + +const int kHFSAttributesFileID = 8; + +const int kHFSAutoCandidateBit = 11; + +const int kHFSAutoCandidateMask = 2048; + +const int kHFSBadBlockFileID = 5; + +const int kHFSBinaryCompare = 188; + +const int kHFSBogusExtentFileID = 15; + +const int kHFSBootVolumeInconsistentBit = 11; + +const int kHFSBootVolumeInconsistentMask = 2048; + +const int kHFSCaseFolding = 207; + +const int kHFSCatExpandedTimesBit = 12; + +const int kHFSCatExpandedTimesMask = 4096; + +const int kHFSCatalogFileID = 4; + +const int kHFSCatalogKeyMaximumLength = 37; + +const int kHFSCatalogKeyMinimumLength = 6; + +const int kHFSCatalogNodeIDsReusedBit = 12; + +const int kHFSCatalogNodeIDsReusedMask = 4096; + +const int kHFSContentProtectionBit = 30; + +const int kHFSContentProtectionMask = 1073741824; + +const int kHFSDoNotFastDevPinBit = 9; + +const int kHFSDoNotFastDevPinMask = 512; + +const int kHFSExpandedTimesBit = 29; + +const int kHFSExpandedTimesMask = 536870912; + +const int kHFSExtentDensity = 3; + +const int kHFSExtentKeyMaximumLength = 7; + +const int kHFSExtentsFileID = 3; + +const int kHFSFastDevCandidateBit = 10; + +const int kHFSFastDevCandidateMask = 1024; + +const int kHFSFastDevPinnedBit = 8; + +const int kHFSFastDevPinnedMask = 256; + +const int kHFSFileLockedBit = 0; + +const int kHFSFileLockedMask = 1; + +const int kHFSFileRecord = 512; + +const int kHFSFileThreadRecord = 1024; + +const int kHFSFirstUserCatalogNodeID = 16; + +const int kHFSFolderRecord = 256; + +const int kHFSFolderThreadRecord = 768; + +const int kHFSHasAttributesBit = 2; + +const int kHFSHasAttributesMask = 4; + +const int kHFSHasChildLinkBit = 6; + +const int kHFSHasChildLinkMask = 64; + +const int kHFSHasDateAddedBit = 7; + +const int kHFSHasDateAddedMask = 128; + +const int kHFSHasFolderCountBit = 4; + +const int kHFSHasFolderCountMask = 16; + +const int kHFSHasLinkChainBit = 5; + +const int kHFSHasLinkChainMask = 32; + +const int kHFSHasSecurityBit = 3; + +const int kHFSHasSecurityMask = 8; + +const int kHFSJMountVersion = 1212568394; + +const int kHFSMDBAttributesMask = 33664; + +const int kHFSMaxAttrNameLen = 127; + +const int kHFSMaxFileNameChars = 31; + +const int kHFSMaxVolumeNameChars = 27; + +const int kHFSPlusAttrExtents = 48; + +const int kHFSPlusAttrForkData = 32; + +const int kHFSPlusAttrInlineData = 16; + +const int kHFSPlusAttrMinNodeSize = 4096; + +const int kHFSPlusCatalogKeyMaximumLength = 516; + +const int kHFSPlusCatalogKeyMinimumLength = 6; + +const int kHFSPlusCatalogMinNodeSize = 4096; + +const int kHFSPlusCreator = 1751544619; + +const int kHFSPlusExtentDensity = 8; + +const int kHFSPlusExtentKeyMaximumLength = 10; + +const int kHFSPlusExtentMinNodeSize = 512; + +const int kHFSPlusFileRecord = 2; + +const int kHFSPlusFileThreadRecord = 4; + +const int kHFSPlusFolderRecord = 1; + +const int kHFSPlusFolderThreadRecord = 3; + +const int kHFSPlusMaxFileNameChars = 255; + +const int kHFSPlusMountVersion = 825241136; + +const int kHFSPlusSigWord = 18475; + +const int kHFSPlusVersion = 4; + +const int kHFSRepairCatalogFileID = 14; + +const int kHFSRootFolderID = 2; + +const int kHFSRootParentID = 1; + +const int kHFSSigWord = 16964; + +const int kHFSStartupFileID = 7; + +const int kHFSThreadExistsBit = 1; + +const int kHFSThreadExistsMask = 2; + +const int kHFSUnusedNodeFixBit = 31; + +const int kHFSUnusedNodeFixMask = -2147483648; + +const int kHFSUnusedNodesFixDate = -974183296; + +const int kHFSUnusedNodesFixExpandedDate = 1237939200; + +const int kHFSVolumeHardwareLockBit = 7; + +const int kHFSVolumeHardwareLockMask = 128; + +const int kHFSVolumeInconsistentBit = 14; + +const int kHFSVolumeInconsistentMask = 16384; + +const int kHFSVolumeJournaledBit = 13; + +const int kHFSVolumeJournaledMask = 8192; + +const int kHFSVolumeNoCacheRequiredBit = 10; + +const int kHFSVolumeNoCacheRequiredMask = 1024; + +const int kHFSVolumeSoftwareLockBit = 15; + +const int kHFSVolumeSoftwareLockMask = 32768; + +const int kHFSVolumeSparedBlocksBit = 9; + +const int kHFSVolumeSparedBlocksMask = 512; + +const int kHFSVolumeUnmountedBit = 8; + +const int kHFSVolumeUnmountedMask = 256; + +const int kHFSXSigWord = 18520; + +const int kHFSXVersion = 5; + +const int kHIDBadLogPhysValuesErr = -13942; + +const int kHIDBadLogicalMaximumErr = -13933; + +const int kHIDBadLogicalMinimumErr = -13934; + +const int kHIDBadParameterErr = -13938; + +const int kHIDBaseError = -13950; + +const int kHIDBufferTooSmallErr = -13948; + +const int kHIDDeviceNotReady = -13910; + +const int kHIDEndOfDescriptorErr = -13936; + +const int kHIDIncompatibleReportErr = -13943; + +const int kHIDInvalidPreparsedDataErr = -13944; + +const int kHIDInvalidRangePageErr = -13923; + +const int kHIDInvalidReportLengthErr = -13940; + +const int kHIDInvalidReportTypeErr = -13941; + +const int kHIDInvertedLogicalRangeErr = -13932; + +const int kHIDInvertedPhysicalRangeErr = -13931; + +const int kHIDInvertedUsageRangeErr = -13929; + +const int kHIDNotEnoughMemoryErr = -13937; + +const int kHIDNotValueArrayErr = -13945; + +const int kHIDNullPointerErr = -13939; + +const int kHIDNullStateErr = -13949; + +const int kHIDReportCountZeroErr = -13925; + +const int kHIDReportIDZeroErr = -13924; + +const int kHIDReportSizeZeroErr = -13926; + +const int kHIDSuccess = 0; + +const int kHIDUnmatchedDesignatorRangeErr = -13927; + +const int kHIDUnmatchedStringRangeErr = -13928; + +const int kHIDUnmatchedUsageRangeErr = -13930; + +const int kHIDUsageNotFoundErr = -13946; + +const int kHIDUsagePageZeroErr = -13935; + +const int kHIDValueOutOfRangeErr = -13947; + +const int kHIDVersionIncompatibleErr = -13909; + +const int kHIShapeEnumerateInit = 1; + +const int kHIShapeEnumerateRect = 2; + +const int kHIShapeEnumerateTerminate = 3; + +const int kHIShapeParseFromBottom = 1; + +const int kHIShapeParseFromBottomRight = 3; + +const int kHIShapeParseFromLeft = 0; + +const int kHIShapeParseFromRight = 2; + +const int kHIShapeParseFromTop = 0; + +const int kHIShapeParseFromTopLeft = 0; + +const int kHTTPServerIcon = 1752461427; + +const int kHalfWidthCJKRomanSelector = 0; + +const int kHalfWidthIdeographsSelector = 2; + +const int kHalfWidthTextSelector = 2; + +@Deprecated('Deprecated') +const int kHandleIsResourceBit = 5; + +@Deprecated('Deprecated') +const int kHandleIsResourceMask = 32; + +@Deprecated('Deprecated') +const int kHandleLockedBit = 7; + +@Deprecated('Deprecated') +const int kHandleLockedMask = 128; + +@Deprecated('Deprecated') +const int kHandlePurgeableBit = 6; + +@Deprecated('Deprecated') +const int kHandlePurgeableMask = 64; + +const int kHanjaToHangulAltOneSelector = 7; + +const int kHanjaToHangulAltThreeSelector = 9; + +const int kHanjaToHangulAltTwoSelector = 8; + +const int kHanjaToHangulSelector = 1; + +const int kHardLinkFileType = 1751936619; + +const int kHardwareCursorDescriptorMajorVersion = 1; + +const int kHardwareCursorDescriptorMinorVersion = 0; + +const int kHardwareCursorInfoMajorVersion = 1; + +const int kHardwareCursorInfoMinorVersion = 0; + +const int kHasBeenInited = 256; + +const int kHasBundle = 8192; + +const int kHasCustomIcon = 1024; + +const int kHasNoINITs = 128; + +const int kHebrewFigureSpaceVariant = 1; + +const int kHebrewStandardVariant = 0; + +const int kHelpFolderIcon = -999789456; + +@Deprecated('Deprecated') +const int kHelpFolderType = -999789456; + +const int kHelpIcon = 1751477360; + +const int kHelpIconResource = -20271; + +const int kHideDiacriticsSelector = 1; + +const int kHiraganaToKatakanaSelector = 2; + +const int kHistoricalLigaturesOffSelector = 21; + +const int kHistoricalLigaturesOnSelector = 20; + +const int kHojoCharactersSelector = 12; + +const int kHorizontalConstraint = 2; + +const int kHuge1BitMask = 1768122403; + +const int kHuge32BitData = 1768436530; + +const int kHuge4BitData = 1768122420; + +const int kHuge8BitData = 1768122424; + +const int kHuge8BitMask = 1748528491; + +const int kHyphenToEnDashOffSelector = 3; + +const int kHyphenToEnDashOnSelector = 2; + +const int kHyphenToMinusOffSelector = 1; + +const int kHyphenToMinusOnSelector = 0; + +const int kHyphensToEmDashOffSelector = 1; + +const int kHyphensToEmDashOnSelector = 0; + +const int kICAttrLockedBit = 0; + +const int kICAttrLockedMask = 1; + +const int kICAttrNoChange = -1; + +const int kICAttrVolatileBit = 1; + +const int kICAttrVolatileMask = 2; + +const int kICComponentInterfaceVersion = 262144; + +const int kICComponentInterfaceVersion0 = 0; + +const int kICComponentInterfaceVersion1 = 65536; + +const int kICComponentInterfaceVersion2 = 131072; + +const int kICComponentInterfaceVersion3 = 196608; + +const int kICComponentInterfaceVersion4 = 262144; + +const int kICComponentVersion = 0; + +const int kICCreator = 1229144432; + +const int kICEditPreferenceEvent = 1229144432; + +const int kICEditPreferenceEventClass = 1229144432; + +const int kICFileSpecHeaderSize = 106; + +const int kICFileType = 1229144432; + +const int kICMapBinaryBit = 0; + +const int kICMapBinaryMask = 1; + +const int kICMapDataForkBit = 2; + +const int kICMapDataForkMask = 4; + +const int kICMapFixedLength = 22; + +const int kICMapNotIncomingBit = 4; + +const int kICMapNotIncomingMask = 16; + +const int kICMapNotOutgoingBit = 5; + +const int kICMapNotOutgoingMask = 32; + +const int kICMapPostBit = 3; + +const int kICMapPostMask = 8; + +const int kICMapResourceForkBit = 1; + +const int kICMapResourceForkMask = 2; + +const int kICNilProfileID = 0; + +const int kICNoUserInteractionBit = 0; + +const int kICNoUserInteractionMask = 1; + +const int kICNumVersion = 1; + +const int kICServicesTCPBit = 0; + +const int kICServicesTCPMask = 1; + +const int kICServicesUDPBit = 1; + +const int kICServicesUDPMask = 2; + +const int kIOAnalogSetupExpected = 2; + +const int kIOAnalogSignalLevel_0700_0000 = 3; + +const int kIOAnalogSignalLevel_0700_0300 = 0; + +const int kIOAnalogSignalLevel_0714_0286 = 1; + +const int kIOAnalogSignalLevel_1000_0400 = 2; + +const int kIOAsyncCalloutCount = 3; + +const int kIOAsyncCalloutFuncIndex = 1; + +const int kIOAsyncCalloutRefconIndex = 2; + +const int kIOAsyncCompletionNotificationType = 150; + +const int kIOAsyncReservedCount = 1; + +const int kIOAsyncReservedIndex = 0; + +const int kIOBitsPerColorComponent10 = 4; + +const int kIOBitsPerColorComponent12 = 8; + +const int kIOBitsPerColorComponent16 = 16; + +const int kIOBitsPerColorComponent6 = 1; + +const int kIOBitsPerColorComponent8 = 2; + +const int kIOBitsPerColorComponentNotSupported = 0; + +const int kIOBuiltinPanelPowerAttribute = 1886284912; + +const int kIOCLUTPixels = 0; + +const int kIOCSyncDisable = 4; + +const int kIOCapturedAttribute = 1667330148; + +const int kIOClamshellStateAttribute = 1668047213; + +const int kIOColorimetryAdobeRGB = 8; + +const int kIOColorimetryBT2020 = 256; + +const int kIOColorimetryBT2100 = 512; + +const int kIOColorimetryBT601 = 64; + +const int kIOColorimetryBT709 = 128; + +const int kIOColorimetryDCIP3 = 4; + +const int kIOColorimetryNativeRGB = 1; + +const int kIOColorimetryNotSupported = 0; + +const int kIOColorimetryWGRGB = 32; + +const int kIOColorimetrysRGB = 2; + +const int kIOColorimetryxvYCC = 16; + +const int kIOConnectMethodVarOutputSize = -3; + +const int kIOConnectionBuiltIn = 2048; + +const int kIOConnectionStereoSync = 32768; + +const int kIOCopybackCache = 3; + +const int kIOCopybackInnerCache = 5; + +const int kIOCursorControlAttribute = 1668445027; + +const int kIODPEventAutomatedTestRequest = 257; + +const int kIODPEventContentProtection = 258; + +const int kIODPEventForceRetrain = 3; + +const int kIODPEventIdle = 2; + +const int kIODPEventMCCS = 259; + +const int kIODPEventRemoteControlCommandPending = 256; + +const int kIODPEventSinkSpecific = 260; + +const int kIODPEventStart = 1; + +const int kIODSCBlockPredEnable = 32; + +const int kIODefaultCache = 0; + +const int kIODefaultMemoryType = 0; + +const int kIODeferCLUTSetAttribute = 1986227316; + +const int kIODetailedTimingValid = -2147483648; + +const int kIODigitalSignal = 1; + +const int kIODisplayAssertionConnectType = 61074; + +const int kIODisplayColorMode = 1668904310; + +const int kIODisplayDitherAll = 255; + +const int kIODisplayDitherDefault = 128; + +const int kIODisplayDitherDisable = 0; + +const int kIODisplayDitherFrameRateControl = 4; + +const int kIODisplayDitherRGBShift = 0; + +const int kIODisplayDitherSpatial = 1; + +const int kIODisplayDitherTemporal = 2; + +const int kIODisplayDitherYCbCr422Shift = 16; + +const int kIODisplayDitherYCbCr444Shift = 8; + +const int kIODisplayModeIDBootProgrammable = -5; + +const int kIODisplayModeIDReservedBase = -2147483648; + +const int kIODisplayNeedsCEAUnderscan = 1; + +const int kIODisplayPowerStateMinUsable = 1; + +const int kIODisplayPowerStateOff = 0; + +const int kIODisplayPowerStateOn = 2; + +const int kIODisplayRGBColorComponentBits10 = 4; + +const int kIODisplayRGBColorComponentBits12 = 8; + +const int kIODisplayRGBColorComponentBits14 = 16; + +const int kIODisplayRGBColorComponentBits16 = 32; + +const int kIODisplayRGBColorComponentBits6 = 1; + +const int kIODisplayRGBColorComponentBits8 = 2; + +const int kIODisplayRGBColorComponentBitsUnknown = 0; + +const int kIODisplayYCbCr422ColorComponentBits10 = 262144; + +const int kIODisplayYCbCr422ColorComponentBits12 = 524288; + +const int kIODisplayYCbCr422ColorComponentBits14 = 1048576; + +const int kIODisplayYCbCr422ColorComponentBits16 = 2097152; + +const int kIODisplayYCbCr422ColorComponentBits6 = 65536; + +const int kIODisplayYCbCr422ColorComponentBits8 = 131072; + +const int kIODisplayYCbCr422ColorComponentBitsUnknown = 0; + +const int kIODisplayYCbCr444ColorComponentBits10 = 1024; + +const int kIODisplayYCbCr444ColorComponentBits12 = 2048; + +const int kIODisplayYCbCr444ColorComponentBits14 = 4096; + +const int kIODisplayYCbCr444ColorComponentBits16 = 8192; + +const int kIODisplayYCbCr444ColorComponentBits6 = 256; + +const int kIODisplayYCbCr444ColorComponentBits8 = 512; + +const int kIODisplayYCbCr444ColorComponentBitsUnknown = 0; + +const int kIODriverPowerAttribute = 1685090167; + +const int kIODynamicRangeDolbyNormalMode = 4; + +const int kIODynamicRangeDolbyTunnelMode = 8; + +const int kIODynamicRangeHDR10 = 2; + +const int kIODynamicRangeNotSupported = 0; + +const int kIODynamicRangeSDR = 1; + +const int kIODynamicRangeTraditionalGammaHDR = 16; + +const int kIODynamicRangeTraditionalGammaSDR = 32; + +const int kIOFBAVSignalTypeDP = 16; + +const int kIOFBAVSignalTypeDVI = 2; + +const int kIOFBAVSignalTypeHDMI = 8; + +const int kIOFBAVSignalTypeUnknown = 0; + +const int kIOFBAVSignalTypeVGA = 1; + +const int kIOFBBitRateHBR = 10; + +const int kIOFBBitRateHBR2 = 20; + +const int kIOFBBitRateRBR = 6; + +const int kIOFBBlueGammaScaleAttribute = 1735617634; + +const int kIOFBChangedInterruptType = 1667788391; + +const int kIOFBConnectInterruptType = 1684236576; + +const int kIOFBDisplayPortInterruptType = 1685088626; + +const int kIOFBDisplayPortLinkChangeInterruptType = 1685089387; + +const int kIOFBDisplayPortTrainingAttribute = 1685091425; + +const int kIOFBDisplayState = 1685288052; + +const int kIOFBDisplayState_AlreadyActive = 1; + +const int kIOFBDisplayState_Mask = 7; + +const int kIOFBDisplayState_PipelineBlack = 4; + +const int kIOFBDisplayState_RestoredProfile = 2; + +const int kIOFBFrameInterruptType = 1718772077; + +const int kIOFBGreenGammaScaleAttribute = 1735617639; + +const int kIOFBHBLInterruptType = 1751280672; + +const int kIOFBHDCPLimit_AllowAll = 0; + +const int kIOFBHDCPLimit_NoHDCP1x = 1; + +const int kIOFBHDCPLimit_NoHDCP20Type0 = 2; + +const int kIOFBHDCPLimit_NoHDCP20Type1 = 4; + +const int kIOFBHDRMetaDataAttribute = 1751413357; + +const int kIOFBLimitHDCPAttribute = 1751409520; + +const int kIOFBLimitHDCPStateAttribute = 1934115907; + +const int kIOFBLinkDownspreadMax = 1; + +const int kIOFBLinkDownspreadNone = 0; + +const int kIOFBLinkPreEmphasisLevel0 = 0; + +const int kIOFBLinkPreEmphasisLevel1 = 1; + +const int kIOFBLinkPreEmphasisLevel2 = 2; + +const int kIOFBLinkPreEmphasisLevel3 = 3; + +const int kIOFBLinkScramblerAlternate = 1; + +const int kIOFBLinkScramblerNormal = 0; + +const int kIOFBLinkVoltageLevel0 = 0; + +const int kIOFBLinkVoltageLevel1 = 1; + +const int kIOFBLinkVoltageLevel2 = 2; + +const int kIOFBLinkVoltageLevel3 = 3; + +const int kIOFBMCCSInterruptType = 1835230067; + +const int kIOFBNS_Dim = 3; + +const int kIOFBNS_DisplayStateMask = 3840; + +const int kIOFBNS_DisplayStateShift = 8; + +const int kIOFBNS_Doze = 2; + +const int kIOFBNS_GenerationMask = 2147418112; + +const int kIOFBNS_GenerationShift = 16; + +const int kIOFBNS_MessageMask = 15; + +const int kIOFBNS_Rendezvous = -2023406815; + +const int kIOFBNS_Sleep = 0; + +const int kIOFBNS_UnDim = 4; + +const int kIOFBNS_Wake = 1; + +const int kIOFBOfflineInterruptType = 1919249782; + +const int kIOFBOnlineInterruptType = 1633969184; + +const int kIOFBRedGammaScaleAttribute = 1735617650; + +const int kIOFBServerConnectType = 0; + +const int kIOFBSharedConnectType = 1; + +const int kIOFBStop = 1937010544; + +const int kIOFBSystemAperture = 0; + +const int kIOFBUserRequestProbe = 1; + +const int kIOFBVBLInterruptType = 1986161696; + +const int kIOFBVariableRefreshRate = 1987211839; + +const int kIOFBWakeInterruptType = 1987535211; + +const int kIOFixedCLUTPixels = 1; + +const int kIOGDiagnoseConnectType = 38744; + +const int kIOGDiagnoseGTraceType = 11452; + +const int kIOHSyncDisable = 1; + +const int kIOHardwareCursorAttribute = 1668445042; + +const int kIOHibernatePreviewActive = 1; + +const int kIOHibernatePreviewUpdates = 2; + +const int kIOInhibitCache = 1; + +const int kIOInterestCalloutCount = 4; + +const int kIOInterestCalloutFuncIndex = 1; + +const int kIOInterestCalloutRefconIndex = 2; + +const int kIOInterestCalloutServiceIndex = 3; + +const int kIOInterlacedCEATiming = 4; + +const int kIOKitNoticationMsgSizeMask = 3; + +const int kIOKitNoticationTypeMask = 4095; + +const int kIOKitNoticationTypeSizeAdjShift = 30; + +const int kIOMapAnywhere = 1; + +const int kIOMapCacheMask = 3840; + +const int kIOMapCacheShift = 8; + +const int kIOMapCopybackCache = 768; + +const int kIOMapCopybackInnerCache = 1280; + +const int kIOMapDefaultCache = 0; + +const int kIOMapGuardedLarge = -2147483648; + +const int kIOMapGuardedMask = -1073741824; + +const int kIOMapGuardedSmall = 1073741824; + +const int kIOMapInhibitCache = 256; + +const int kIOMapOverwrite = 536870912; + +const int kIOMapPostedCombinedReordered = 2304; + +const int kIOMapPostedReordered = 2048; + +const int kIOMapPostedWrite = 1536; + +const int kIOMapPrefault = 268435456; + +const int kIOMapReadOnly = 4096; + +const int kIOMapRealTimeCache = 1792; + +const int kIOMapReference = 33554432; + +const int kIOMapStatic = 16777216; + +const int kIOMapUnique = 67108864; + +const int kIOMapUserOptionsMask = 4095; + +const int kIOMapWriteCombineCache = 1024; + +const int kIOMapWriteThruCache = 512; + +const int kIOMatchingCalloutCount = 3; + +const int kIOMatchingCalloutFuncIndex = 1; + +const int kIOMatchingCalloutRefconIndex = 2; + +const int kIOMaxBusStall10usec = 10000; + +const int kIOMaxBusStall20usec = 20000; + +const int kIOMaxBusStall25usec = 25000; + +const int kIOMaxBusStall30usec = 30000; + +const int kIOMaxBusStall40usec = 40000; + +const int kIOMaxBusStall5usec = 5000; + +const int kIOMaxBusStallNone = 0; + +const int kIOMaxPixelBits = 64; + +const int kIOMirrorAttribute = 1835627122; + +const int kIOMirrorDefault = 1; + +const int kIOMirrorDefaultAttribute = 1836213350; + +const int kIOMirrorForced = 2; + +const int kIOMirrorHWClipped = 1073741824; + +const int kIOMirrorIsMirrored = 536870912; + +const int kIOMirrorIsPrimary = -2147483648; + +const int kIOMonoDirectPixels = 3; + +const int kIOMonoInverseDirectPixels = 4; + +const int kIOMultiAlignedTiming = 64; + +const int kIONTSCTiming = 8; + +const int kIONoSeparateSyncControl = 64; + +const int kIOPALTiming = 16; + +const int kIOPixelEncodingNotSupported = 0; + +const int kIOPixelEncodingRGB444 = 1; + +const int kIOPixelEncodingYCbCr420 = 8; + +const int kIOPixelEncodingYCbCr422 = 4; + +const int kIOPixelEncodingYCbCr444 = 2; + +const int kIOPostedCombinedReordered = 9; + +const int kIOPostedReordered = 8; + +const int kIOPostedWrite = 6; + +const int kIOPowerAttribute = 1886353266; + +const int kIOPowerStateAttribute = 1886876275; + +const int kIORGBDirectPixels = 2; + +const int kIORGBSignedDirectPixels = 5; + +const int kIORGBSignedFloatingPointPixels = 6; + +const int kIORangeBitsPerColorComponent10 = 4; + +const int kIORangeBitsPerColorComponent12 = 8; + +const int kIORangeBitsPerColorComponent16 = 16; + +const int kIORangeBitsPerColorComponent6 = 1; + +const int kIORangeBitsPerColorComponent8 = 2; + +const int kIORangeBitsPerColorComponentNotSupported = 0; + +const int kIORangeColorimetryAdobeRGB = 8; + +const int kIORangeColorimetryBT2020 = 256; + +const int kIORangeColorimetryBT2100 = 512; + +const int kIORangeColorimetryBT601 = 64; + +const int kIORangeColorimetryBT709 = 128; + +const int kIORangeColorimetryDCIP3 = 4; + +const int kIORangeColorimetryNativeRGB = 1; + +const int kIORangeColorimetryNotSupported = 0; + +const int kIORangeColorimetryWGRGB = 32; + +const int kIORangeColorimetrysRGB = 2; + +const int kIORangeColorimetryxvYCC = 16; + +const int kIORangeDynamicRangeDolbyNormalMode = 4; + +const int kIORangeDynamicRangeDolbyTunnelMode = 8; + +const int kIORangeDynamicRangeHDR10 = 2; + +const int kIORangeDynamicRangeNotSupported = 0; + +const int kIORangeDynamicRangeSDR = 1; + +const int kIORangeDynamicRangeTraditionalGammaHDR = 16; + +const int kIORangeDynamicRangeTraditionalGammaSDR = 32; + +const int kIORangePixelEncodingNotSupported = 0; + +const int kIORangePixelEncodingRGB444 = 1; + +const int kIORangePixelEncodingYCbCr420 = 8; + +const int kIORangePixelEncodingYCbCr422 = 4; + +const int kIORangePixelEncodingYCbCr444 = 2; + +const int kIORangeSupportsCompositeSync = 4; + +const int kIORangeSupportsInterlacedCEATiming = 4; + +const int kIORangeSupportsInterlacedCEATimingWithConfirm = 8; + +const int kIORangeSupportsMultiAlignedTiming = 64; + +const int kIORangeSupportsSeparateSyncs = 1; + +const int kIORangeSupportsSignal_0700_0000 = 8; + +const int kIORangeSupportsSignal_0700_0300 = 1; + +const int kIORangeSupportsSignal_0714_0286 = 2; + +const int kIORangeSupportsSignal_1000_0400 = 4; + +const int kIORangeSupportsSyncOnGreen = 2; + +const int kIORangeSupportsVRR = 16; + +const int kIORangeSupportsVSyncSerration = 8; + +const int kIORealTimeCache = 7; + +const int kIORegistryIterateParents = 2; + +const int kIORegistryIterateRecursively = 1; + +const int kIOScaleCanBorderInsetOnly = 64; + +const int kIOScaleCanDownSamplePixels = 4; + +const int kIOScaleCanRotate = 32; + +const int kIOScaleCanScaleInterlaced = 8; + +const int kIOScaleCanSupportInset = 16; + +const int kIOScaleCanUpSamplePixels = 2; + +const int kIOScaleInvertX = 32; + +const int kIOScaleInvertY = 64; + +const int kIOScaleRotate0 = 0; + +const int kIOScaleRotate180 = 96; + +const int kIOScaleRotate270 = 80; + +const int kIOScaleRotate90 = 48; + +const int kIOScaleRotateFlags = 240; + +const int kIOScaleStretchOnly = 1; + +const int kIOScaleStretchToFit = 1; + +const int kIOScaleSwapAxes = 16; + +const int kIOScalingInfoValid = 1073741824; + +const int kIOServiceInteractionAllowed = 1; + +const int kIOServiceMatchedNotificationType = 101; + +const int kIOServiceMessageNotificationType = 160; + +const int kIOServicePublishNotificationType = 100; + +const int kIOServiceTerminatedNotificationType = 102; + +const int kIOSurfaceCopybackCache = 3; + +const int kIOSurfaceCopybackInnerCache = 5; + +const int kIOSurfaceDefaultCache = 0; + +const int kIOSurfaceInhibitCache = 1; + +const int kIOSurfaceMapCacheShift = 8; + +const int kIOSurfaceMapCopybackCache = 768; + +const int kIOSurfaceMapCopybackInnerCache = 1280; + +const int kIOSurfaceMapDefaultCache = 0; + +const int kIOSurfaceMapInhibitCache = 256; + +const int kIOSurfaceMapWriteCombineCache = 1024; + +const int kIOSurfaceMapWriteThruCache = 512; + +const int kIOSurfaceWriteCombineCache = 4; + +const int kIOSurfaceWriteThruCache = 2; + +const int kIOSyncOnBlue = 8; + +const int kIOSyncOnGreen = 16; + +const int kIOSyncOnRed = 32; + +const int kIOSyncPositivePolarity = 1; + +const int kIOSystemPowerAttribute = 1936750450; + +const int kIOSystemStateSleepDescriptionHibernateStateHibernating = 1; + +const int kIOSystemStateSleepDescriptionHibernateStateInactive = 0; + +const int kIOSystemStateSleepDescriptionHibernateStateWakingFromHibernate = 2; + +const int kIOTimingIDAppleNTSC_FF = 232; + +const int kIOTimingIDAppleNTSC_FFconv = 236; + +const int kIOTimingIDAppleNTSC_ST = 230; + +const int kIOTimingIDAppleNTSC_STconv = 234; + +const int kIOTimingIDApplePAL_FF = 240; + +const int kIOTimingIDApplePAL_FFconv = 244; + +const int kIOTimingIDApplePAL_ST = 238; + +const int kIOTimingIDApplePAL_STconv = 242; + +const int kIOTimingIDApple_0x0_0hz_Offline = 550; + +const int kIOTimingIDApple_1024x768_75hz = 210; + +const int kIOTimingIDApple_1152x870_75hz = 220; + +const int kIOTimingIDApple_512x384_60hz = 130; + +const int kIOTimingIDApple_560x384_60hz = 135; + +const int kIOTimingIDApple_640x400_67hz = 145; + +const int kIOTimingIDApple_640x480_67hz = 140; + +const int kIOTimingIDApple_640x818_75hz = 165; + +const int kIOTimingIDApple_640x870_75hz = 160; + +const int kIOTimingIDApple_832x624_75hz = 170; + +const int kIOTimingIDApple_FixedRateLCD = 42; + +const int kIOTimingIDFilmRate_48hz = 410; + +const int kIOTimingIDGTF_640x480_120hz = 159; + +const int kIOTimingIDInvalid = 0; + +const int kIOTimingIDSMPTE240M_60hz = 400; + +const int kIOTimingIDSony_1600x1024_76hz = 500; + +const int kIOTimingIDSony_1920x1080_60hz = 510; + +const int kIOTimingIDSony_1920x1080_72hz = 520; + +const int kIOTimingIDSony_1920x1200_76hz = 540; + +const int kIOTimingIDVESA_1024x768_60hz = 190; + +const int kIOTimingIDVESA_1024x768_70hz = 200; + +const int kIOTimingIDVESA_1024x768_75hz = 204; + +const int kIOTimingIDVESA_1024x768_85hz = 208; + +const int kIOTimingIDVESA_1152x864_75hz = 215; + +const int kIOTimingIDVESA_1280x1024_60hz = 260; + +const int kIOTimingIDVESA_1280x1024_75hz = 262; + +const int kIOTimingIDVESA_1280x1024_85hz = 268; + +const int kIOTimingIDVESA_1280x960_60hz = 252; + +const int kIOTimingIDVESA_1280x960_75hz = 250; + +const int kIOTimingIDVESA_1280x960_85hz = 254; + +const int kIOTimingIDVESA_1360x768_60hz = 590; + +const int kIOTimingIDVESA_1600x1200_60hz = 280; + +const int kIOTimingIDVESA_1600x1200_65hz = 282; + +const int kIOTimingIDVESA_1600x1200_70hz = 284; + +const int kIOTimingIDVESA_1600x1200_75hz = 286; + +const int kIOTimingIDVESA_1600x1200_80hz = 288; + +const int kIOTimingIDVESA_1600x1200_85hz = 289; + +const int kIOTimingIDVESA_1792x1344_60hz = 296; + +const int kIOTimingIDVESA_1792x1344_75hz = 298; + +const int kIOTimingIDVESA_1856x1392_60hz = 300; + +const int kIOTimingIDVESA_1856x1392_75hz = 302; + +const int kIOTimingIDVESA_1920x1440_60hz = 304; + +const int kIOTimingIDVESA_1920x1440_75hz = 306; + +const int kIOTimingIDVESA_640x480_60hz = 150; + +const int kIOTimingIDVESA_640x480_72hz = 152; + +const int kIOTimingIDVESA_640x480_75hz = 154; + +const int kIOTimingIDVESA_640x480_85hz = 158; + +const int kIOTimingIDVESA_800x600_56hz = 180; + +const int kIOTimingIDVESA_800x600_60hz = 182; + +const int kIOTimingIDVESA_800x600_72hz = 184; + +const int kIOTimingIDVESA_800x600_75hz = 186; + +const int kIOTimingIDVESA_800x600_85hz = 188; + +const int kIOTimingIDVESA_848x480_60hz = 570; + +const int kIOTimingRangeV1 = 0; + +const int kIOTimingRangeV2 = 2; + +const int kIOTriStateSyncs = 128; + +const int kIOVRAMSaveAttribute = 1987212150; + +const int kIOVSyncDisable = 2; + +const int kIOWSAA_Accelerated = 1; + +const int kIOWSAA_DeferEnd = 512; + +const int kIOWSAA_DeferStart = 256; + +const int kIOWSAA_DriverOpen = 5; + +const int kIOWSAA_From_Accelerated = 2; + +const int kIOWSAA_Hibernate = 4; + +const int kIOWSAA_NonConsoleDevice = 1024; + +const int kIOWSAA_Reserved = -268435456; + +const int kIOWSAA_Sleep = 4; + +const int kIOWSAA_StateMask = 15; + +const int kIOWSAA_To_Accelerated = 3; + +const int kIOWSAA_Transactional = 16; + +const int kIOWSAA_Unaccelerated = 0; + +const int kIOWindowServerActiveAttribute = 2004054646; + +const int kIOWriteCombineCache = 4; + +const int kIOWriteThruCache = 2; + +const int kIPFileServerIcon = 1769173622; + +const int kISOLatin1MusicCDVariant = 1; + +const int kISOLatin1StandardVariant = 0; + +const int kISOLatinArabicExplicitOrderVariant = 2; + +const int kISOLatinArabicImplicitOrderVariant = 0; + +const int kISOLatinArabicVisualOrderVariant = 1; + +const int kISOLatinHebrewExplicitOrderVariant = 2; + +const int kISOLatinHebrewImplicitOrderVariant = 0; + +const int kISOLatinHebrewVisualOrderVariant = 1; + +@Deprecated('Deprecated') +const int kISSDownloadsFolderType = 1769173860; + +const int kISpBufferToSmallErr = -30422; + +const int kISpDeviceActiveErr = -30428; + +const int kISpDeviceInactiveErr = -30426; + +const int kISpElementInListErr = -30423; + +const int kISpElementNotInListErr = -30424; + +const int kISpInternalErr = -30420; + +const int kISpListBusyErr = -30429; + +const int kISpSystemActiveErr = -30427; + +const int kISpSystemInactiveErr = -30425; + +const int kISpSystemListErr = -30421; + +const int kIconFamilyType = 1768124019; + +const int kIconServices1024PixelDataARGB = 1768108336; + +const int kIconServices128PixelDataARGB = 1768108087; + +const int kIconServices16PixelDataARGB = 1768108084; + +const int kIconServices256PixelDataARGB = 1768108088; + +const int kIconServices32PixelDataARGB = 1768108085; + +const int kIconServices48PixelDataARGB = 1768108086; + +const int kIconServices512PixelDataARGB = 1768108089; + +const int kIconServicesCatalogInfoMask = 531550; + +const int kIconServicesNoBadgeFlag = 1; + +const int kIconServicesNormalUsageFlag = 0; + +const int kIconServicesUpdateIfNeededFlag = 2; + +const int kIdeographicAltFiveSelector = 5; + +const int kIdeographicAltFourSelector = 4; + +const int kIdeographicAltOneSelector = 1; + +const int kIdeographicAltThreeSelector = 3; + +const int kIdeographicAltTwoSelector = 2; + +const int kIdeographicAlternativesType = 30; + +const int kIdeographicSpacingType = 26; + +const int kIdleKCEvent = 0; + +const int kIdleKCEventMask = 1; + +const int kIllegalClockValueErr = -8852; + +@Deprecated('Deprecated') +const int kIllegalInstructionException = 1; + +const int kIlluminatedCapsSelector = 3; + +const int kImmediate = 0; + +@Deprecated('Deprecated') +const int kInDeferredTaskMask = 32; + +@Deprecated('Deprecated') +const int kInNestedInterruptMask = 128; + +@Deprecated('Deprecated') +const int kInSecondaryIntHandlerMask = 64; + +const int kInUseErr = -9077; + +@Deprecated('Deprecated') +const int kInVBLTaskMask = 16; + +@Deprecated('Deprecated') +const int kIndexFilesFolderType = 1768842360; + +const int kInequalityLigaturesOffSelector = 7; + +const int kInequalityLigaturesOnSelector = 6; + +const int kInferiorsSelector = 2; + +const int kInitialCapsAndSmallCapsSelector = 5; + +const int kInitialCapsSelector = 4; + +@Deprecated('Deprecated') +const int kInputManagersFolderType = 1768845428; + +@Deprecated('Deprecated') +const int kInputMethodsFolderType = 1768845414; + +@Deprecated('Deprecated') +const int kInstallerLogsFolderType = 1768712038; + +@Deprecated('Deprecated') +const int kInstallerReceiptsFolderType = 1919119476; + +@Deprecated('Deprecated') +const int kInstructionBreakpointException = 10; + +@Deprecated('Deprecated') +const int kIntegerException = 12; + +const int kInternationResourcesIcon = 1768319340; + +const int kInternationalResourcesIcon = 1768319340; + +const int kInternationalSymbolsSelector = 5; + +const int kInternetEventClass = 1196773964; + +const int kInternetFolderIcon = 1768846532; + +@Deprecated('Deprecated') +const int kInternetFolderType = 1768846532; + +const int kInternetLocationAFP = 1768710502; + +const int kInternetLocationAppleShareIcon = 1768710502; + +const int kInternetLocationAppleTalk = 1768710516; + +const int kInternetLocationAppleTalkZoneIcon = 1768710516; + +const int kInternetLocationCreator = 1685217639; + +const int kInternetLocationFTP = 1768711796; + +const int kInternetLocationFTPIcon = 1768711796; + +const int kInternetLocationFile = 1768711785; + +const int kInternetLocationFileIcon = 1768711785; + +const int kInternetLocationGeneric = 1768712037; + +const int kInternetLocationGenericIcon = 1768712037; + +const int kInternetLocationHTTP = 1768712308; + +const int kInternetLocationHTTPIcon = 1768712308; + +const int kInternetLocationMail = 1768713569; + +const int kInternetLocationMailIcon = 1768713569; + +const int kInternetLocationNNTP = 1768713847; + +const int kInternetLocationNSL = 1768713843; + +const int kInternetLocationNSLNeighborhoodIcon = 1768713843; + +const int kInternetLocationNewsIcon = 1768713847; + +const int kInternetPasswordKCItemClass = 1768842612; + +const int kInternetPlugInFolderIcon = -999398028; + +@Deprecated('Deprecated') +const int kInternetPlugInFolderType = -999398028; + +const int kInternetSearchSitesFolderIcon = 1769173862; + +@Deprecated('Deprecated') +const int kInternetSearchSitesFolderType = 1769173862; + +@Deprecated('Deprecated') +const int kInternetSitesFolderType = 1936290917; + +const int kInvalidCSClientErr = -9091; + +const int kInvalidDeviceNumber = -9089; + +const int kInvalidFont = 0; + +const int kInvalidFontFamily = -1; + +const int kInvalidGeneration = 0; + +const int kInvalidRegEntryErr = -9081; + +const int kInvertHighlighting = 0; + +const int kInvertedBoxAnnotationSelector = 9; + +const int kInvertedCircleAnnotationSelector = 4; + +const int kInvertedRoundedBoxAnnotationSelector = 10; + +const int kInvertingEncodedPixel = 4; + +const int kInvertingEncoding = 1; + +const int kInvertingEncodingShift = 2; + +const int kInvisibleKCItemAttr = 1768846953; + +const int kIsAlias = 32768; + +const int kIsInvisible = 16384; + +const int kIsOnDesk = 1; + +const int kIsShared = 64; + +const int kIsStationery = 2048; + +const int kIssuerKCItemAttr = 1769173877; + +const int kIssuerURLKCItemAttr = 1769304684; + +const int kItalicCJKRomanType = 32; + +const int kItemList = 1718383476; + +const int kJIJournalInFSMask = 1; + +const int kJIJournalNeedInitMask = 4; + +const int kJIJournalOnOtherDeviceMask = 2; + +const int kJIS1978CharactersSelector = 2; + +const int kJIS1983CharactersSelector = 3; + +const int kJIS1990CharactersSelector = 4; + +const int kJIS2004CharactersSelector = 11; + +const int kJUSTCurrentVersion = 65536; + +const int kJUSTKashidaPriority = 0; + +const int kJUSTLetterPriority = 2; + +const int kJUSTNullPriority = 3; + +const int kJUSTOverrideLimits = 16384; + +const int kJUSTOverridePriority = 32768; + +const int kJUSTOverrideUnlimited = 8192; + +const int kJUSTPriorityCount = 4; + +const int kJUSTPriorityMask = 3; + +const int kJUSTSpacePriority = 1; + +const int kJUSTStandardFormat = 0; + +const int kJUSTTag = 1786082164; + +const int kJUSTUnlimited = 4096; + +const int kJUSTnoGlyphcode = 65535; + +const int kJUSTpcConditionalAddAction = 2; + +const int kJUSTpcDecompositionAction = 0; + +const int kJUSTpcDuctilityAction = 4; + +const int kJUSTpcGlyphRepeatAddAction = 5; + +const int kJUSTpcGlyphStretchAction = 3; + +const int kJUSTpcUnconditionalAddAction = 1; + +const int kJapaneseBasicVariant = 2; + +const int kJapanesePostScriptPrintVariant = 4; + +const int kJapanesePostScriptScrnVariant = 3; + +const int kJapaneseStandardVariant = 0; + +const int kJapaneseStdNoVerticalsVariant = 1; + +const int kJapaneseVertAtKuPlusTenVariant = 5; + +const int kKCAuthTypeDPA = 1685086561; + +const int kKCAuthTypeDefault = 1684434036; + +const int kKCAuthTypeHTTPDigest = 1752462436; + +const int kKCAuthTypeMSN = 1836281441; + +const int kKCAuthTypeNTLM = 1853123693; + +const int kKCAuthTypeRPA = 1919967585; + +const int kKCProtocolTypeAFP = 1634103328; + +const int kKCProtocolTypeAppleTalk = 1635019883; + +const int kKCProtocolTypeFTP = 1718906912; + +const int kKCProtocolTypeFTPAccount = 1718906977; + +const int kKCProtocolTypeHTTP = 1752462448; + +const int kKCProtocolTypeIMAP = 1768776048; + +const int kKCProtocolTypeIRC = 1769104160; + +const int kKCProtocolTypeLDAP = 1818517872; + +const int kKCProtocolTypeNNTP = 1852732528; + +const int kKCProtocolTypePOP3 = 1886351411; + +const int kKCProtocolTypeSMTP = 1936553072; + +const int kKCProtocolTypeSOCKS = 1936685088; + +const int kKCProtocolTypeTelnet = 1952803950; + +const int kKERNCrossStream = 16384; + +const int kKERNCrossStreamResetNote = 2; + +const int kKERNCurrentVersion = 65536; + +const int kKERNFormatMask = 255; + +const int kKERNIndexArray = 3; + +const int kKERNLineEndKerning = 2; + +const int kKERNLineStart = 1; + +const int kKERNNoCrossKerning = 4; + +const int kKERNNoStakeNote = 1; + +const int kKERNNotApplied = 1; + +const int kKERNNotesRequested = 8; + +const int kKERNOrderedList = 0; + +const int kKERNResetCrossStream = 32768; + +const int kKERNSimpleArray = 2; + +const int kKERNStateTable = 1; + +const int kKERNTag = 1801810542; + +const int kKERNUnusedBits = 7936; + +const int kKERNVariation = 8192; + +const int kKERNVertical = 32768; + +const int kKERXActionOffsetMask = 16777215; + +const int kKERXActionTypeAnchorPoints = 1073741824; + +const int kKERXActionTypeControlPoints = 0; + +const int kKERXActionTypeCoordinates = -2147483648; + +const int kKERXActionTypeMask = -1073741824; + +const int kKERXControlPoint = 4; + +const int kKERXCrossStream = 1073741824; + +const int kKERXCrossStreamResetNote = 2; + +const int kKERXCurrentVersion = 131072; + +const int kKERXDescending = 268435456; + +const int kKERXFormatMask = 255; + +const int kKERXIndexArray = 6; + +const int kKERXLineEndKerning = 2; + +const int kKERXLineStart = 1; + +const int kKERXNoCrossKerning = 4; + +const int kKERXNoStakeNote = 1; + +const int kKERXNotApplied = 1; + +const int kKERXNotesRequested = 8; + +const int kKERXOrderedList = 0; + +const int kKERXResetCrossStream = 32768; + +const int kKERXSimpleArray = 2; + +const int kKERXStateTable = 1; + +const int kKERXTag = 1801810552; + +const int kKERXUnusedBits = 268435200; + +const int kKERXUnusedFlags = 1056964608; + +const int kKERXValuesAreLong = 1; + +const int kKERXVariation = 536870912; + +const int kKERXVertical = -2147483648; + +const int kKanaSpacingType = 25; + +const int kKanaToRomanizationSelector = 4; + +const int kKatakanaToHiraganaSelector = 3; + +const int kKeepArrangedIcon = 1634889319; + +@Deprecated('Deprecated') +const int kKernelExtensionsFolderType = 1801812084; + +const int kKeyboardLayoutIcon = 1801873772; + +@Deprecated('Deprecated') +const int kKeyboardLayoutsFolderType = 1802264953; + +@Deprecated('Deprecated') +const int kKeychainFolderType = 1801676910; + +const int kKeychainListChangedKCEvent = 11; + +const int kLCARCtlPointFormat = 1; + +const int kLCARCurrentVersion = 65536; + +const int kLCARLinearFormat = 0; + +const int kLCARTag = 1818452338; + +const int kLSAppDoesNotClaimTypeErr = -10820; + +const int kLSAppDoesNotSupportSchemeWarning = -10821; + +const int kLSAppInTrashErr = -10660; + +const int kLSApplicationNotFoundErr = -10814; + +const int kLSAttributeNotFoundErr = -10662; + +const int kLSAttributeNotSettableErr = -10663; + +const int kLSCannotSetInfoErr = -10823; + +const int kLSDataErr = -10817; + +const int kLSDataTooOldErr = -10816; + +const int kLSDataUnavailableErr = -10813; + +const int kLSExecutableIncorrectFormat = -10661; + +const int kLSGarbageCollectionUnsupportedErr = -10666; + +const int kLSIncompatibleApplicationVersionErr = -10664; + +const int kLSIncompatibleSystemVersionErr = -10825; + +@Deprecated('This option does nothing.') +const int kLSLaunchHasUntrustedContents = 4194304; + +@Deprecated('The Classic environment is no longer supported.') +const int kLSLaunchInClassic = 262144; + +const int kLSLaunchInProgressErr = -10818; + +@Deprecated('This option does nothing.') +const int kLSLaunchInhibitBGOnly = 128; + +@Deprecated('This option does nothing.') +const int kLSLaunchNoParams = 2048; + +@Deprecated('The Classic environment is no longer supported.') +const int kLSLaunchStartClassic = 131072; + +const int kLSMalformedLocErr = -10400; + +const int kLSMultipleSessionsNotSupportedErr = -10829; + +const int kLSNo32BitEnvironmentErr = -10386; + +const int kLSNoClassicEnvironmentErr = -10828; + +const int kLSNoExecutableErr = -10827; + +const int kLSNoLaunchPermissionErr = -10826; + +const int kLSNoRegistrationInfoErr = -10824; + +const int kLSNoRosettaEnvironmentErr = -10665; + +const int kLSNotAnApplicationErr = -10811; + +const int kLSNotInitializedErr = -10812; + +const int kLSNotRegisteredErr = -10819; + +const int kLSServerCommunicationErr = -10822; + +const int kLSSharedFileListDoNotMountVolumes = 2; + +const int kLSSharedFileListNoUserInteraction = 1; + +const int kLSUnknownCreator = 0; + +const int kLSUnknownErr = -10810; + +const int kLSUnknownType = 0; + +const int kLSUnknownTypeErr = -10815; + +const int kLTAGCurrentVersion = 1; + +const int kLabelKCItemAttr = 1818321516; + +const int kLanguageTagType = 39; + +const int kLarge1BitMask = 1229147683; + +const int kLarge32BitData = 1768698674; + +const int kLarge4BitData = 1768123444; + +const int kLarge4BitIconSize = 512; + +const int kLarge8BitData = 1768123448; + +const int kLarge8BitIconSize = 1024; + +const int kLarge8BitMask = 1815637355; + +const int kLargeIconSize = 256; + +@Deprecated('Deprecated') +const int kLastDomainConstant = -32760; + +const int kLastFeatureType = -1; + +const int kLastIOKitNotificationType = 199; + +const int kLastMagicBusyFiletype = 1652193599; + +const int kLaunchToGetTerminology = 32768; + +@Deprecated('Deprecated') +const int kLauncherItemsFolderType = 1818326382; + +const int kLetterCaseType = 3; + +@Deprecated('Deprecated') +const int kLibraryAssistantsFolderType = 1634956396; + +const int kLigaturesType = 1; + +const int kLineFinalSwashesOffSelector = 7; + +const int kLineFinalSwashesOnSelector = 6; + +const int kLineInitialSwashesOffSelector = 5; + +const int kLineInitialSwashesOnSelector = 4; + +const int kLinearPCMFormatFlagIsAlignedHigh = 16; + +const int kLinearPCMFormatFlagIsBigEndian = 2; + +const int kLinearPCMFormatFlagIsFloat = 1; + +const int kLinearPCMFormatFlagIsNonInterleaved = 32; + +const int kLinearPCMFormatFlagIsNonMixable = 64; + +const int kLinearPCMFormatFlagIsPacked = 8; + +const int kLinearPCMFormatFlagIsSignedInteger = 4; + +const int kLinearPCMFormatFlagsAreAllClear = -2147483648; + +const int kLinearPCMFormatFlagsSampleFractionMask = 8064; + +const int kLinearPCMFormatFlagsSampleFractionShift = 7; + +const int kLinguisticRearrangementOffSelector = 1; + +const int kLinguisticRearrangementOnSelector = 0; + +const int kLinguisticRearrangementType = 5; + +@Deprecated('Deprecated') +const int kLocalDomain = -32765; + +const int kLocalPPDDomain = 3; + +const int kLocaleAllPartsMask = 63; + +const int kLocaleAndVariantNameMask = 3; + +const int kLocaleLanguageMask = 1; + +const int kLocaleLanguageVariantMask = 2; + +const int kLocaleNameMask = 1; + +const int kLocaleOperationVariantNameMask = 2; + +const int kLocaleRegionMask = 16; + +const int kLocaleRegionVariantMask = 32; + +const int kLocaleScriptMask = 4; + +const int kLocaleScriptVariantMask = 8; + +const int kLocalesBufferTooSmallErr = -30001; + +const int kLocalesDefaultDisplayStatus = -30029; + +const int kLocalesFolderIcon = -999526557; + +@Deprecated('Deprecated') +const int kLocalesFolderType = -999526557; + +const int kLocalesTableFormatErr = -30002; + +const int kLockKCEvent = 1; + +const int kLockKCEventMask = 2; + +const int kLockedBadgeIcon = 1818387559; + +const int kLockedIcon = 1819239275; + +const int kLogosOffSelector = 7; + +const int kLogosOnSelector = 6; + +const int kLogsFolderType = 1819240307; + +const int kLowerCaseNumbersSelector = 0; + +const int kLowerCasePetiteCapsSelector = 2; + +const int kLowerCaseSmallCapsSelector = 1; + +const int kLowerCaseType = 37; + +@Deprecated('Deprecated') +const int kM68kISA = 0; + +@Deprecated('Deprecated') +const int kMIDIDriversFolderType = 1835623529; + +const int kMORTContextualType = 1; + +const int kMORTCoverDescending = 16384; + +const int kMORTCoverIgnoreVertical = 8192; + +const int kMORTCoverTypeMask = 15; + +const int kMORTCoverVertical = 32768; + +const int kMORTCurrInsertBefore = 2048; + +const int kMORTCurrInsertCountMask = 992; + +const int kMORTCurrInsertCountShift = 5; + +const int kMORTCurrInsertKashidaLike = 8192; + +const int kMORTCurrJustTableCountMask = 127; + +const int kMORTCurrJustTableCountShift = 0; + +const int kMORTCurrentVersion = 65536; + +const int kMORTDoInsertionsBefore = 128; + +const int kMORTInsertionType = 5; + +const int kMORTInsertionsCountMask = 63; + +const int kMORTIsSplitVowelPiece = 64; + +const int kMORTLigFormOffsetMask = 1073741823; + +const int kMORTLigFormOffsetShift = 2; + +const int kMORTLigLastAction = -2147483648; + +const int kMORTLigStoreLigature = 1073741824; + +const int kMORTLigatureType = 2; + +const int kMORTMarkInsertBefore = 1024; + +const int kMORTMarkInsertCountMask = 31; + +const int kMORTMarkInsertCountShift = 0; + +const int kMORTMarkInsertKashidaLike = 4096; + +const int kMORTMarkJustTableCountMask = 16256; + +const int kMORTMarkJustTableCountShift = 7; + +const int kMORTRearrangementType = 0; + +const int kMORTSwashType = 4; + +const int kMORTTag = 1836020340; + +const int kMORTraCDx = 6; + +const int kMORTraCDxA = 8; + +const int kMORTraCDxAB = 12; + +const int kMORTraCDxBA = 13; + +const int kMORTraDCx = 7; + +const int kMORTraDCxA = 9; + +const int kMORTraDCxAB = 14; + +const int kMORTraDCxBA = 15; + +const int kMORTraDx = 2; + +const int kMORTraDxA = 3; + +const int kMORTraDxAB = 10; + +const int kMORTraDxBA = 11; + +const int kMORTraNoAction = 0; + +const int kMORTraxA = 1; + +const int kMORTraxAB = 4; + +const int kMORTraxBA = 5; + +const int kMORXCoverDescending = 1073741824; + +const int kMORXCoverIgnoreVertical = 536870912; + +const int kMORXCoverLogicalOrder = 268435456; + +const int kMORXCoverTypeMask = 255; + +const int kMORXCoverVertical = -2147483648; + +const int kMORXCurrentVersion = 131072; + +const int kMORXTag = 1836020344; + +@Deprecated('Deprecated') +const int kMPAddressSpaceInfoVersion = 524289; + +@Deprecated('Deprecated') +const int kMPAllocate1024ByteAligned = 10; + +@Deprecated('Deprecated') +const int kMPAllocate16ByteAligned = 4; + +@Deprecated('Deprecated') +const int kMPAllocate32ByteAligned = 5; + +@Deprecated('Deprecated') +const int kMPAllocate4096ByteAligned = 12; + +@Deprecated('Deprecated') +const int kMPAllocate8ByteAligned = 3; + +@Deprecated('Deprecated') +const int kMPAllocateAltiVecAligned = 4; + +@Deprecated('Deprecated') +const int kMPAllocateClearMask = 1; + +@Deprecated('Deprecated') +const int kMPAllocateDefaultAligned = 0; + +@Deprecated('Deprecated') +const int kMPAllocateGloballyMask = 2; + +@Deprecated('Deprecated') +const int kMPAllocateInterlockAligned = 255; + +@Deprecated('Deprecated') +const int kMPAllocateMaxAlignment = 16; + +@Deprecated('Deprecated') +const int kMPAllocateNoCreateMask = 32; + +@Deprecated('Deprecated') +const int kMPAllocateNoGrowthMask = 16; + +@Deprecated('Deprecated') +const int kMPAllocateResidentMask = 4; + +@Deprecated('Deprecated') +const int kMPAllocateVMPageAligned = 254; + +@Deprecated('Deprecated') +const int kMPAllocateVMXAligned = 4; + +@Deprecated('Deprecated') +const int kMPAnyRemoteContext = 0; + +@Deprecated('Deprecated') +const int kMPAsyncInterruptRemoteContext = 3; + +const int kMPBlueBlockingErr = -29293; + +@Deprecated('Deprecated') +const int kMPCreateTaskNotDebuggableMask = 4; + +@Deprecated('Deprecated') +const int kMPCreateTaskSuspendedMask = 1; + +@Deprecated('Deprecated') +const int kMPCreateTaskTakesAllExceptionsMask = 2; + +@Deprecated('Deprecated') +const int kMPCreateTaskValidOptionsMask = 7; + +@Deprecated('Deprecated') +const int kMPCriticalRegionInfoVersion = 393217; + +const int kMPDeletedErr = -29295; + +@Deprecated('Deprecated') +const int kMPEventInfoVersion = 589825; + +@Deprecated('Deprecated') +const int kMPHighLevelDebugger = 536870912; + +const int kMPInsufficientResourcesErr = -29298; + +@Deprecated('Deprecated') +const int kMPInterruptRemoteContext = 2; + +const int kMPInvalidIDErr = -29299; + +const int kMPIterationEndErr = -29275; + +@Deprecated('Deprecated') +const int kMPLowLevelDebugger = 0; + +@Deprecated('Deprecated') +const int kMPMaxAllocSize = 1073741824; + +@Deprecated('Deprecated') +const int kMPMidLevelDebugger = 268435456; + +const int kMPNanokernelNeedsMemoryErr = -29294; + +@Deprecated('Deprecated') +const int kMPNoID = 0; + +@Deprecated('Deprecated') +const int kMPNotificationInfoVersion = 786433; + +@Deprecated('Deprecated') +const int kMPOwningProcessRemoteContext = 1; + +@Deprecated('Deprecated') +const int kMPPreserveTimerIDMask = 1; + +const int kMPPrivilegedErr = -29276; + +const int kMPProcessCreatedErr = -29288; + +const int kMPProcessTerminatedErr = -29289; + +@Deprecated('Deprecated') +const int kMPQueueInfoVersion = 262145; + +@Deprecated('Deprecated') +const int kMPSemaphoreInfoVersion = 327681; + +const int kMPTaskAbortedErr = -29297; + +@Deprecated('Deprecated') +const int kMPTaskBlocked = 0; + +const int kMPTaskBlockedErr = -29291; + +const int kMPTaskCreatedErr = -29290; + +@Deprecated('Deprecated') +const int kMPTaskInfoVersion = 3; + +@Deprecated('Deprecated') +const int kMPTaskPropagate = 0; + +@Deprecated('Deprecated') +const int kMPTaskPropagateMask = 1; + +@Deprecated('Deprecated') +const int kMPTaskReady = 1; + +@Deprecated('Deprecated') +const int kMPTaskResumeBranch = 2; + +@Deprecated('Deprecated') +const int kMPTaskResumeBranchMask = 4; + +@Deprecated('Deprecated') +const int kMPTaskResumeMask = 0; + +@Deprecated('Deprecated') +const int kMPTaskResumeStep = 1; + +@Deprecated('Deprecated') +const int kMPTaskResumeStepMask = 2; + +@Deprecated('Deprecated') +const int kMPTaskRunning = 2; + +@Deprecated('Deprecated') +const int kMPTaskState32BitMemoryException = 4; + +@Deprecated('Deprecated') +const int kMPTaskStateFPU = 1; + +@Deprecated('Deprecated') +const int kMPTaskStateMachine = 3; + +@Deprecated('Deprecated') +const int kMPTaskStateRegisters = 0; + +@Deprecated('Deprecated') +const int kMPTaskStateTaskInfo = 5; + +@Deprecated('Deprecated') +const int kMPTaskStateVectors = 2; + +const int kMPTaskStoppedErr = -29292; + +@Deprecated('Deprecated') +const int kMPTimeIsDeltaMask = 2; + +@Deprecated('Deprecated') +const int kMPTimeIsDurationMask = 4; + +const int kMPTimeoutErr = -29296; + +const int kMacArabicAlBayanVariant = 3; + +const int kMacArabicStandardVariant = 0; + +const int kMacArabicThuluthVariant = 2; + +const int kMacArabicTrueTypeVariant = 1; + +const int kMacCroatianCurrencySignVariant = 1; + +const int kMacCroatianDefaultVariant = 0; + +const int kMacCroatianEuroSignVariant = 2; + +const int kMacCyrillicCurrSignStdVariant = 1; + +const int kMacCyrillicCurrSignUkrVariant = 2; + +const int kMacCyrillicDefaultVariant = 0; + +const int kMacCyrillicEuroSignVariant = 3; + +const int kMacFarsiStandardVariant = 0; + +const int kMacFarsiTrueTypeVariant = 1; + +const int kMacGreekDefaultVariant = 0; + +const int kMacGreekEuroSignVariant = 2; + +const int kMacGreekNoEuroSignVariant = 1; + +const int kMacHebrewFigureSpaceVariant = 1; + +const int kMacHebrewStandardVariant = 0; + +const int kMacIcelandicStandardVariant = 0; + +const int kMacIcelandicStdCurrSignVariant = 2; + +const int kMacIcelandicStdDefaultVariant = 0; + +const int kMacIcelandicStdEuroSignVariant = 4; + +const int kMacIcelandicTTCurrSignVariant = 3; + +const int kMacIcelandicTTDefaultVariant = 1; + +const int kMacIcelandicTTEuroSignVariant = 5; + +const int kMacIcelandicTrueTypeVariant = 1; + +const int kMacJapaneseBasicVariant = 2; + +const int kMacJapanesePostScriptPrintVariant = 4; + +const int kMacJapanesePostScriptScrnVariant = 3; + +const int kMacJapaneseStandardVariant = 0; + +const int kMacJapaneseStdNoVerticalsVariant = 1; + +const int kMacJapaneseVertAtKuPlusTenVariant = 5; + +@Deprecated('Deprecated') +const int kMacMemoryMaximumMemoryManagerBlockSize = 2147483632; + +const int kMacOSReadMeFolderIcon = 1836020420; + +@Deprecated('Deprecated') +const int kMacOSReadMesFolderType = 1836020420; + +const int kMacRomanCurrencySignVariant = 1; + +const int kMacRomanDefaultVariant = 0; + +const int kMacRomanEuroSignVariant = 2; + +const int kMacRomanLatin1CroatianVariant = 8; + +const int kMacRomanLatin1DefaultVariant = 0; + +const int kMacRomanLatin1IcelandicVariant = 11; + +const int kMacRomanLatin1RomanianVariant = 14; + +const int kMacRomanLatin1StandardVariant = 2; + +const int kMacRomanLatin1TurkishVariant = 6; + +const int kMacRomanStandardVariant = 0; + +const int kMacRomanianCurrencySignVariant = 1; + +const int kMacRomanianDefaultVariant = 0; + +const int kMacRomanianEuroSignVariant = 2; + +const int kMacVT100CurrencySignVariant = 1; + +const int kMacVT100DefaultVariant = 0; + +const int kMacVT100EuroSignVariant = 2; + +const int kMachineNameStrID = -16395; + +const int kMagicBusyCreationDate = 1329266096; + +@Deprecated('Deprecated') +const int kMagicTemporaryItemsFolderType = 1836346736; + +const int kMale = 1; + +@Deprecated('Deprecated') +const int kManagedItemsFolderType = 1835101799; + +const int kMathSymbolsSelector = 6; + +const int kMathematicalExtrasType = 15; + +const int kMathematicalGreekOffSelector = 11; + +const int kMathematicalGreekOnSelector = 10; + +const int kMaxAsyncArgs = 16; + +const int kMaximumBlocksIn4GB = 8388607; + +const int kMicrosecondScale = 1000; + +const int kMillisecondScale = 1000000; + +const int kMini1BitMask = 1768123683; + +const int kMini4BitData = 1768123700; + +const int kMini8BitData = 1768123704; + +const int kModDateKCItemAttr = 1835295092; + +const int kModemOutOfMemory = -14000; + +const int kModemPreferencesMissing = -14001; + +const int kModemScriptMissing = -14002; + +@Deprecated('Deprecated') +const int kModemScriptsFolderType = -999461020; + +const int kMonospacedNumbersSelector = 0; + +const int kMonospacedTextSelector = 1; + +const int kMountedBadgeIcon = 1835164775; + +const int kMountedFolderAliasType = 1717661038; + +const int kMountedFolderIcon = 1835955300; + +const int kMountedFolderIconResource = -3977; + +@Deprecated('Deprecated') +const int kMovieDocumentsFolderType = 1835298659; + +@Deprecated('Deprecated') +const int kMultiprocessingFolderType = 1836087398; + +@Deprecated('Deprecated') +const int kMusicDocumentsFolderType = -1251709085; + +const int kNLCCharactersSelector = 13; + +const int kNSL68kContextNotSupported = -4170; + +const int kNSLBadClientInfoPtr = -4185; + +const int kNSLBadDataTypeErr = -4193; + +const int kNSLBadNetConnection = -4192; + +const int kNSLBadProtocolTypeErr = -4183; + +const int kNSLBadReferenceErr = -4195; + +const int kNSLBadServiceTypeErr = -4194; + +const int kNSLBadURLSyntax = -4172; + +const int kNSLBufferTooSmallForData = -4187; + +const int kNSLCannotContinueLookup = -4186; + +const int kNSLErrNullPtrError = -4176; + +const int kNSLInitializationFailed = -4200; + +const int kNSLInsufficientOTVer = -4197; + +const int kNSLInsufficientSysVer = -4198; + +const int kNSLInvalidPluginSpec = -4190; + +const int kNSLNoCarbonLib = -4173; + +const int kNSLNoContextAvailable = -4188; + +const int kNSLNoElementsInList = -4196; + +const int kNSLNoPluginsForSearch = -4179; + +const int kNSLNoPluginsFound = -4181; + +const int kNSLNoSupportForService = -4191; + +const int kNSLNotImplementedYet = -4175; + +const int kNSLNotInitialized = -4199; + +const int kNSLNullListPtr = -4184; + +const int kNSLNullNeighborhoodPtr = -4178; + +const int kNSLPluginLoadFailed = -4182; + +const int kNSLRequestBufferAlreadyInList = -4189; + +const int kNSLSchedulerError = -4171; + +const int kNSLSearchAlreadyInProgress = -4180; + +const int kNSLSomePluginsFailedToLoad = -4177; + +const int kNSLUILibraryNotAvailable = -4174; + +const int kNSpAddPlayerFailedErr = -30389; + +const int kNSpAddressInUseErr = -30380; + +const int kNSpAlreadyAdvertisingErr = -30374; + +const int kNSpAlreadyInitializedErr = -30361; + +const int kNSpCantBlockErr = -30398; + +const int kNSpConnectFailedErr = -30395; + +const int kNSpCreateGroupFailedErr = -30388; + +const int kNSpFeatureNotImplementedErr = -30381; + +const int kNSpFreeQExhaustedErr = -30378; + +const int kNSpGameTerminatedErr = -30394; + +const int kNSpHostFailedErr = -30365; + +const int kNSpInitializationFailedErr = -30360; + +const int kNSpInvalidAddressErr = -30377; + +const int kNSpInvalidDefinitionErr = -30390; + +const int kNSpInvalidGameRefErr = -30367; + +const int kNSpInvalidGroupIDErr = -30384; + +const int kNSpInvalidParameterErr = -30369; + +const int kNSpInvalidPlayerIDErr = -30383; + +const int kNSpInvalidProtocolListErr = -30392; + +const int kNSpInvalidProtocolRefErr = -30391; + +const int kNSpJoinFailedErr = -30399; + +const int kNSpMemAllocationErr = -30373; + +const int kNSpMessageTooBigErr = -30397; + +const int kNSpNameRequiredErr = -30382; + +const int kNSpNoGroupsErr = -30386; + +const int kNSpNoHostVolunteersErr = -30387; + +const int kNSpNoPlayersErr = -30385; + +const int kNSpNotAdvertisingErr = -30376; + +const int kNSpOTNotPresentErr = -30370; + +const int kNSpOTVersionTooOldErr = -30371; + +const int kNSpPipeFullErr = -30364; + +const int kNSpProtocolNotAvailableErr = -30366; + +const int kNSpRemovePlayerFailedErr = -30379; + +const int kNSpSendFailedErr = -30396; + +const int kNSpTimeoutErr = -30393; + +const int kNSpTopologyNotSupportedErr = -30362; + +const int kNameLocked = 4096; + +const int kNanosecondScale = 1; + +const int kNavCustomControlMessageFailedErr = -5697; + +const int kNavInvalidCustomControlMessageErr = -5698; + +const int kNavInvalidSystemConfigErr = -5696; + +const int kNavMissingKindStringErr = -5699; + +const int kNavWrongDialogClassErr = -5695; + +const int kNavWrongDialogStateErr = -5694; + +const int kNegativeKCItemAttr = 1852139361; + +@Deprecated('Deprecated') +const int kNetworkDomain = -32764; + +const int kNetworkPPDDomain = 4; + +const int kNeuter = 0; + +@Deprecated('Deprecated') +const int kNewDebugHeap = 4; + +const int kNewSizeParameter = 1718514554; + +@Deprecated('Deprecated') +const int kNewStyleHeap = 2; + +@Deprecated('Deprecated') +const int kNewSuspend = 1; + +const int kNextBody = 1; + +const int kNilOptions = 0; + +const int kNoAlternatesSelector = 0; + +const int kNoAnnotationSelector = 0; + +@Deprecated('Deprecated') +const int kNoByteCode = 0; + +const int kNoCJKItalicRomanSelector = 0; + +const int kNoCJKSymbolAlternativesSelector = 0; + +const int kNoCardBusCISErr = -9109; + +const int kNoCardEnablersFoundErr = -9099; + +const int kNoCardErr = -9071; + +const int kNoCardSevicesSocketsErr = -9080; + +const int kNoClientTableErr = -9097; + +const int kNoCompatibleNameErr = -9101; + +const int kNoConstraint = 0; + +const int kNoEnablerForCardErr = -9100; + +const int kNoEndingProsody = 1; + +const int kNoFilesIcon = 1852205420; + +const int kNoFolderIcon = 1852206180; + +const int kNoFractionsSelector = 0; + +const int kNoIOWindowRequestedErr = -9094; + +const int kNoIdeographicAlternativesSelector = 0; + +const int kNoMoreInterruptSlotsErr = -9096; + +const int kNoMoreItemsErr = -9078; + +const int kNoMoreTimerClientsErr = -9095; + +const int kNoOrnamentsSelector = 0; + +const int kNoProcess = 0; + +const int kNoRubyKanaSelector = 0; + +const int kNoSpeechInterrupt = 2; + +const int kNoStyleOptionsSelector = 0; + +const int kNoStylisticAlternatesSelector = 0; + +const int kNoSuchPowerSource = -13020; + +@Deprecated('Deprecated') +const int kNoThreadID = 0; + +const int kNoTimeOut = -2; + +const int kNoTransform = 0; + +const int kNoTransliterationSelector = 0; + +const int kNoUserAuthentication = 1; + +const int kNoWriteIcon = 1853321844; + +const int kNonFinalSwashesOffSelector = 9; + +const int kNonFinalSwashesOnSelector = 8; + +const int kNoneKCStopOn = 1; + +const int kNormalPositionSelector = 0; + +@Deprecated('Deprecated') +const int kNotPaged = 2; + +const int kNotReadyErr = -9103; + +const int kNotZVCapableErr = -9108; + +const int kNumberCaseType = 21; + +const int kNumberSpacingType = 6; + +const int kOPBDControlPointFormat = 1; + +const int kOPBDCurrentVersion = 65536; + +const int kOPBDDistanceFormat = 0; + +const int kOPBDTag = 1869636196; + +const int kOSAsyncCompleteMessageID = 57; + +const int kOSAsyncRef64Count = 8; + +const int kOSAsyncRef64Size = 64; + +const int kOSAsyncRefCount = 8; + +const int kOSAsyncRefSize = 32; + +const int kOSIZCodeInSharedLibraries = 11; + +const int kOSIZDontOpenResourceFile = 15; + +const int kOSIZOpenWithReadPermission = 13; + +const int kOSIZdontAcceptRemoteEvents = 14; + +const int kOSNotificationMessageID = 53; + +const int kOTAccessErr = -3152; + +const int kOTAddressBusyErr = -3172; + +const int kOTBadAddressErr = -3150; + +const int kOTBadConfigurationErr = -3282; + +const int kOTBadDataErr = -3159; + +const int kOTBadFlagErr = -3165; + +const int kOTBadNameErr = -3170; + +const int kOTBadOptionErr = -3151; + +const int kOTBadQLenErr = -3171; + +const int kOTBadReferenceErr = -3153; + +const int kOTBadSequenceErr = -3156; + +const int kOTBadSyncErr = -3179; + +const int kOTBufferOverflowErr = -3160; + +const int kOTCanceledErr = -3180; + +const int kOTClientNotInittedErr = -3279; + +const int kOTConfigurationChangedErr = -3283; + +const int kOTDuplicateFoundErr = -3216; + +const int kOTFlowErr = -3161; + +const int kOTIndOutErr = -3173; + +const int kOTLookErr = -3158; + +const int kOTNoAddressErr = -3154; + +const int kOTNoDataErr = -3162; + +const int kOTNoDisconnectErr = -3163; + +const int kOTNoError = 0; + +const int kOTNoReleaseErr = -3166; + +const int kOTNoStructureTypeErr = -3169; + +const int kOTNoUDErrErr = -3164; + +const int kOTNotFoundErr = -3201; + +const int kOTNotSupportedErr = -3167; + +const int kOTOutOfMemoryErr = -3211; + +const int kOTOutStateErr = -3155; + +const int kOTPortHasDiedErr = -3280; + +const int kOTPortLostConnection = -3285; + +const int kOTPortWasEjectedErr = -3281; + +const int kOTProtocolErr = -3178; + +const int kOTProviderMismatchErr = -3174; + +const int kOTQFullErr = -3177; + +const int kOTResAddressErr = -3176; + +const int kOTResQLenErr = -3175; + +const int kOTStateChangeErr = -3168; + +const int kOTSysErrorErr = -3157; + +const int kOTUserRequestedErr = -3284; + +const int kOffset2Pos = 1936994928; + +@Deprecated('Deprecated') +const int kOld68kRTA = 0; + +@Deprecated('Deprecated') +const int kOnAppropriateDisk = -32767; + +@Deprecated('Deprecated') +const int kOnSystemDisk = -32768; + +@Deprecated('Deprecated') +const int kOneByteCode = 1; + +@Deprecated('Deprecated') +const int kOpaqueAddressSpaceID = 8; + +@Deprecated('Deprecated') +const int kOpaqueAnyID = 0; + +@Deprecated('Deprecated') +const int kOpaqueAreaID = 11; + +@Deprecated('Deprecated') +const int kOpaqueCoherenceID = 10; + +@Deprecated('Deprecated') +const int kOpaqueConsoleID = 13; + +@Deprecated('Deprecated') +const int kOpaqueCpuID = 7; + +@Deprecated('Deprecated') +const int kOpaqueCriticalRegionID = 6; + +@Deprecated('Deprecated') +const int kOpaqueEventID = 9; + +@Deprecated('Deprecated') +const int kOpaqueNotificationID = 12; + +@Deprecated('Deprecated') +const int kOpaqueProcessID = 1; + +@Deprecated('Deprecated') +const int kOpaqueQueueID = 4; + +@Deprecated('Deprecated') +const int kOpaqueSemaphoreID = 5; + +@Deprecated('Deprecated') +const int kOpaqueTaskID = 2; + +@Deprecated('Deprecated') +const int kOpaqueTimerID = 3; + +@Deprecated('Deprecated') +const int kOpenDocEditorsFolderType = -999332762; + +@Deprecated('Deprecated') +const int kOpenDocFolderType = 1868853092; + +@Deprecated('Deprecated') +const int kOpenDocLibrariesFolderType = 1868852322; + +@Deprecated('Deprecated') +const int kOpenDocShellPlugInsFolderType = 1868854128; + +const int kOpenDropIconVariant = 1868853872; + +const int kOpenFolderIcon = 1868983396; + +const int kOpenFolderIconResource = -3997; + +const int kOpenIconVariant = 1869636974; + +const int kOrConnections = 268435454; + +const int kOrdinalsSelector = 3; + +const int kOrnamentSetsType = 16; + +const int kOutOfResourceErr = -9079; + +const int kOverlappingCharactersType = 13; + +const int kOwnedFolderIcon = 1870098020; + +const int kOwnedFolderIconResource = -3980; + +const int kOwnerID2Name = 1; + +const int kOwnerIcon = 1937077106; + +const int kOwnerName2ID = 3; + +const int kPCSToDevice = 2; + +const int kPCSToPCS = 3; + +@Deprecated('Deprecated') +const int kPEFAbsoluteExport = -2; + +@Deprecated('Deprecated') +const int kPEFCodeSection = 0; + +@Deprecated('Deprecated') +const int kPEFCodeSymbol = 0; + +@Deprecated('Deprecated') +const int kPEFConstantSection = 3; + +@Deprecated('Deprecated') +const int kPEFDataSymbol = 1; + +@Deprecated('Deprecated') +const int kPEFDebugSection = 5; + +@Deprecated('Deprecated') +const int kPEFExceptionSection = 7; + +@Deprecated('Deprecated') +const int kPEFExecDataSection = 6; + +@Deprecated('Deprecated') +const int kPEFExpSymClassShift = 24; + +@Deprecated('Deprecated') +const int kPEFExpSymMaxNameOffset = 16777215; + +@Deprecated('Deprecated') +const int kPEFExpSymNameOffsetMask = 16777215; + +@Deprecated('Deprecated') +const int kPEFFirstSectionHeaderOffset = 40; + +@Deprecated('Deprecated') +const int kPEFGlobalShare = 4; + +@Deprecated('Deprecated') +const int kPEFGlueSymbol = 4; + +@Deprecated('Deprecated') +const int kPEFHashLengthShift = 16; + +@Deprecated('Deprecated') +const int kPEFHashMaxLength = 65535; + +@Deprecated('Deprecated') +const int kPEFHashSlotFirstKeyMask = 262143; + +@Deprecated('Deprecated') +const int kPEFHashSlotMaxKeyIndex = 262143; + +@Deprecated('Deprecated') +const int kPEFHashSlotMaxSymbolCount = 16383; + +@Deprecated('Deprecated') +const int kPEFHashSlotSymCountShift = 18; + +@Deprecated('Deprecated') +const int kPEFHashValueMask = 65535; + +@Deprecated('Deprecated') +const int kPEFImpSymClassShift = 24; + +@Deprecated('Deprecated') +const int kPEFImpSymMaxNameOffset = 16777215; + +@Deprecated('Deprecated') +const int kPEFImpSymNameOffsetMask = 16777215; + +@Deprecated('Deprecated') +const int kPEFInitLibBeforeMask = 128; + +@Deprecated('Deprecated') +const int kPEFLoaderSection = 4; + +@Deprecated('Deprecated') +const int kPEFPackedDataSection = 2; + +@Deprecated('Deprecated') +const int kPEFPkDataBlock = 1; + +@Deprecated('Deprecated') +const int kPEFPkDataCount5Mask = 31; + +@Deprecated('Deprecated') +const int kPEFPkDataMaxCount5 = 31; + +@Deprecated('Deprecated') +const int kPEFPkDataOpcodeShift = 5; + +@Deprecated('Deprecated') +const int kPEFPkDataRepeat = 2; + +@Deprecated('Deprecated') +const int kPEFPkDataRepeatBlock = 3; + +@Deprecated('Deprecated') +const int kPEFPkDataRepeatZero = 4; + +@Deprecated('Deprecated') +const int kPEFPkDataVCountEndMask = 128; + +@Deprecated('Deprecated') +const int kPEFPkDataVCountMask = 127; + +@Deprecated('Deprecated') +const int kPEFPkDataVCountShift = 7; + +@Deprecated('Deprecated') +const int kPEFPkDataZero = 0; + +@Deprecated('Deprecated') +const int kPEFProcessShare = 1; + +@Deprecated('Deprecated') +const int kPEFProtectedShare = 5; + +@Deprecated('Deprecated') +const int kPEFReexportedImport = -3; + +@Deprecated('Deprecated') +const int kPEFRelocBasicOpcodeRange = 128; + +@Deprecated('Deprecated') +const int kPEFRelocBySectC = 32; + +@Deprecated('Deprecated') +const int kPEFRelocBySectD = 33; + +@Deprecated('Deprecated') +const int kPEFRelocBySectDWithSkip = 0; + +@Deprecated('Deprecated') +const int kPEFRelocImportRun = 37; + +@Deprecated('Deprecated') +const int kPEFRelocIncrPosition = 64; + +@Deprecated('Deprecated') +const int kPEFRelocIncrPositionMaxOffset = 4096; + +@Deprecated('Deprecated') +const int kPEFRelocLgByImport = 82; + +@Deprecated('Deprecated') +const int kPEFRelocLgByImportMaxIndex = 67108863; + +@Deprecated('Deprecated') +const int kPEFRelocLgBySectionSubopcode = 0; + +@Deprecated('Deprecated') +const int kPEFRelocLgRepeat = 88; + +@Deprecated('Deprecated') +const int kPEFRelocLgRepeatMaxChunkCount = 16; + +@Deprecated('Deprecated') +const int kPEFRelocLgRepeatMaxRepeatCount = 4194303; + +@Deprecated('Deprecated') +const int kPEFRelocLgSetOrBySection = 90; + +@Deprecated('Deprecated') +const int kPEFRelocLgSetOrBySectionMaxIndex = 4194303; + +@Deprecated('Deprecated') +const int kPEFRelocLgSetSectCSubopcode = 1; + +@Deprecated('Deprecated') +const int kPEFRelocLgSetSectDSubopcode = 2; + +@Deprecated('Deprecated') +const int kPEFRelocRunMaxRunLength = 512; + +@Deprecated('Deprecated') +const int kPEFRelocSetPosMaxOffset = 67108863; + +@Deprecated('Deprecated') +const int kPEFRelocSetPosition = 80; + +@Deprecated('Deprecated') +const int kPEFRelocSmByImport = 48; + +@Deprecated('Deprecated') +const int kPEFRelocSmBySection = 51; + +@Deprecated('Deprecated') +const int kPEFRelocSmIndexMaxIndex = 511; + +@Deprecated('Deprecated') +const int kPEFRelocSmRepeat = 72; + +@Deprecated('Deprecated') +const int kPEFRelocSmRepeatMaxChunkCount = 16; + +@Deprecated('Deprecated') +const int kPEFRelocSmRepeatMaxRepeatCount = 256; + +@Deprecated('Deprecated') +const int kPEFRelocSmSetSectC = 49; + +@Deprecated('Deprecated') +const int kPEFRelocSmSetSectD = 50; + +@Deprecated('Deprecated') +const int kPEFRelocTVector12 = 34; + +@Deprecated('Deprecated') +const int kPEFRelocTVector8 = 35; + +@Deprecated('Deprecated') +const int kPEFRelocUndefinedOpcode = 255; + +@Deprecated('Deprecated') +const int kPEFRelocVTable8 = 36; + +@Deprecated('Deprecated') +const int kPEFRelocWithSkipMaxRelocCount = 63; + +@Deprecated('Deprecated') +const int kPEFRelocWithSkipMaxSkipCount = 255; + +@Deprecated('Deprecated') +const int kPEFTOCSymbol = 3; + +@Deprecated('Deprecated') +const int kPEFTVectorSymbol = 2; + +@Deprecated('Deprecated') +const int kPEFTag1 = 1248819489; + +@Deprecated('Deprecated') +const int kPEFTag2 = 1885693542; + +@Deprecated('Deprecated') +const int kPEFTracebackSection = 8; + +@Deprecated('Deprecated') +const int kPEFUndefinedSymbol = 15; + +@Deprecated('Deprecated') +const int kPEFUnpackedDataSection = 1; + +@Deprecated('Deprecated') +const int kPEFVersion = 1; + +@Deprecated('Deprecated') +const int kPEFWeakImportLibMask = 64; + +@Deprecated('Deprecated') +const int kPEFWeakImportSymMask = 128; + +const int kPMAllocationFailure = -108; + +const int kPMBorderDoubleHairline = 2; + +const int kPMBorderDoubleThickline = 4; + +const int kPMBorderSingleHairline = 1; + +const int kPMBorderSingleThickline = 3; + +const int kPMCMYKColorSpaceModel = 3; + +const int kPMCVMSymbolNotFound = -9662; + +const int kPMCancel = 128; + +const int kPMCloseFailed = -9785; + +const int kPMCoverPageAfter = 3; + +const int kPMCoverPageBefore = 2; + +const int kPMCoverPageNone = 1; + +const int kPMCreateMessageFailed = -9620; + +const int kPMDeleteSubTicketFailed = -9585; + +const int kPMDestinationFax = 3; + +const int kPMDestinationFile = 2; + +const int kPMDestinationInvalid = 0; + +const int kPMDestinationPreview = 4; + +const int kPMDestinationPrinter = 1; + +const int kPMDestinationProcessPDF = 5; + +const int kPMDevNColorSpaceModel = 4; + +const int kPMDocumentNotFound = -9644; + +const int kPMDontSwitchPDEError = -9531; + +const int kPMDuplexNoTumble = 2; + +const int kPMDuplexNone = 1; + +const int kPMDuplexTumble = 3; + +const int kPMEditRequestFailed = -9544; + +const int kPMFeatureNotInstalled = -9533; + +const int kPMFileOrDirOperationFailed = -9634; + +const int kPMFontNameTooLong = -9704; + +const int kPMFontNotFound = -9703; + +const int kPMGeneralCGError = -9705; + +const int kPMGeneralError = -30870; + +const int kPMGrayColorSpaceModel = 1; + +const int kPMHideInlineItems = 0; + +const int kPMIOAttrNotAvailable = -9787; + +const int kPMIOMSymbolNotFound = -9661; + +const int kPMInternalError = -30870; + +const int kPMInvalidAllocator = -30890; + +const int kPMInvalidCVMContext = -9665; + +const int kPMInvalidCalibrationTarget = -30898; + +const int kPMInvalidConnection = -30887; + +const int kPMInvalidFileType = -30895; + +const int kPMInvalidIOMContext = -9664; + +const int kPMInvalidIndex = -30882; + +const int kPMInvalidItem = -30892; + +const int kPMInvalidJobID = -9666; + +const int kPMInvalidJobTemplate = -30885; + +const int kPMInvalidKey = -30888; + +const int kPMInvalidLookupSpec = -9542; + +const int kPMInvalidObject = -30896; + +const int kPMInvalidPBMRef = -9540; + +const int kPMInvalidPDEContext = -9530; + +const int kPMInvalidPMContext = -9663; + +const int kPMInvalidPageFormat = -30876; + +const int kPMInvalidPaper = -30897; + +const int kPMInvalidParameter = -50; + +const int kPMInvalidPreset = -30899; + +const int kPMInvalidPrintSession = -30879; + +const int kPMInvalidPrintSettings = -30875; + +const int kPMInvalidPrinter = -30880; + +const int kPMInvalidPrinterAddress = -9780; + +const int kPMInvalidPrinterInfo = -30886; + +const int kPMInvalidReply = -30894; + +const int kPMInvalidState = -9706; + +const int kPMInvalidSubTicket = -9584; + +const int kPMInvalidTicket = -30891; + +const int kPMInvalidType = -30893; + +const int kPMInvalidValue = -30889; + +const int kPMItemIsLocked = -9586; + +const int kPMJobBusy = -9642; + +const int kPMJobCanceled = -9643; + +const int kPMJobGetTicketBadFormatError = -9672; + +const int kPMJobGetTicketReadError = -9673; + +const int kPMJobManagerAborted = -9671; + +const int kPMJobNotFound = -9641; + +const int kPMJobStreamEndError = -9670; + +const int kPMJobStreamOpenFailed = -9668; + +const int kPMJobStreamReadFailed = -9669; + +const int kPMKeyNotFound = -9589; + +const int kPMKeyNotUnique = -9590; + +const int kPMKeyOrValueNotFound = -9623; + +const int kPMLandscape = 2; + +const int kPMLastErrorCodeToMakeMaintenanceOfThisListEasier = -9799; + +const int kPMLayoutBottomTopLeftRight = 7; + +const int kPMLayoutBottomTopRightLeft = 8; + +const int kPMLayoutLeftRightBottomTop = 2; + +const int kPMLayoutLeftRightTopBottom = 1; + +const int kPMLayoutRightLeftBottomTop = 4; + +const int kPMLayoutRightLeftTopBottom = 3; + +const int kPMLayoutTopBottomLeftRight = 5; + +const int kPMLayoutTopBottomRightLeft = 6; + +const int kPMMessagingError = -9624; + +const int kPMNoDefaultItem = -9500; + +const int kPMNoDefaultPrinter = -30872; + +const int kPMNoDefaultSettings = -9501; + +const int kPMNoError = 0; + +const int kPMNoPrinterJobID = -9667; + +const int kPMNoSelectedPrinters = -9541; + +const int kPMNoSuchEntry = -30874; + +const int kPMNotImplemented = -30873; + +const int kPMObjectInUse = -30881; + +const int kPMOpenFailed = -9781; + +const int kPMOutOfScope = -30871; + +const int kPMPMSymbolNotFound = -9660; + +const int kPMPaperTypeCoated = 2; + +const int kPMPaperTypeGlossy = 4; + +const int kPMPaperTypePlain = 1; + +const int kPMPaperTypePremium = 3; + +const int kPMPaperTypeTShirt = 6; + +const int kPMPaperTypeTransparency = 5; + +const int kPMPaperTypeUnknown = 0; + +const int kPMPermissionError = -9636; + +const int kPMPluginNotFound = -9701; + +const int kPMPluginRegisterationFailed = -9702; + +const int kPMPortrait = 1; + +const int kPMPrBrowserNoUI = -9545; + +const int kPMPrintAllPages = -1; + +const int kPMPrinterIdle = 3; + +const int kPMPrinterProcessing = 4; + +const int kPMPrinterStopped = 5; + +const int kPMQualityBest = 13; + +const int kPMQualityDraft = 4; + +const int kPMQualityHighest = 15; + +const int kPMQualityInkSaver = 1; + +const int kPMQualityLowest = 0; + +const int kPMQualityNormal = 8; + +const int kPMQualityPhoto = 11; + +const int kPMQueueAlreadyExists = -9639; + +const int kPMQueueJobFailed = -9640; + +const int kPMQueueNotFound = -9638; + +const int kPMRGBColorSpaceModel = 2; + +const int kPMReadFailed = -9782; + +const int kPMReadGotZeroData = -9788; + +const int kPMReverseLandscape = 4; + +const int kPMReversePortrait = 3; + +const int kPMScalingCenterOnImgArea = 6; + +const int kPMScalingCenterOnPaper = 5; + +const int kPMScalingPinBottomLeft = 3; + +const int kPMScalingPinBottomRight = 4; + +const int kPMScalingPinTopLeft = 1; + +const int kPMScalingPinTopRight = 2; + +const int kPMServerAlreadyRunning = -9631; + +const int kPMServerAttributeRestricted = -9633; + +const int kPMServerCommunicationFailed = -9621; + +const int kPMServerNotFound = -9630; + +const int kPMServerSuspended = -9632; + +const int kPMShowDefaultInlineItems = 32768; + +const int kPMShowInlineCopies = 1; + +const int kPMShowInlineOrientation = 8; + +const int kPMShowInlinePageRange = 2; + +const int kPMShowInlinePageRangeWithSelection = 64; + +const int kPMShowInlinePaperSize = 4; + +const int kPMShowInlineScale = 128; + +const int kPMShowPageAttributesPDE = 256; + +const int kPMSimplexTumble = 4; + +const int kPMStatusFailed = -9784; + +const int kPMStringConversionFailure = -30883; + +const int kPMSubTicketNotFound = -9583; + +const int kPMSyncRequestFailed = -9543; + +const int kPMTemplateIsLocked = -9588; + +const int kPMTicketIsLocked = -9587; + +const int kPMTicketTypeNotFound = -9580; + +const int kPMUnableToFindProcess = -9532; + +const int kPMUnexpectedImagingError = -9707; + +const int kPMUnknownColorSpaceModel = 0; + +const int kPMUnknownDataType = -9591; + +const int kPMUnknownMessage = -9637; + +const int kPMUnlocked = 0; + +const int kPMUnsupportedConnection = -9786; + +const int kPMUpdateTicketFailed = -9581; + +const int kPMUserOrGroupNotFound = -9635; + +const int kPMValidateTicketFailed = -9582; + +const int kPMValueOutOfRange = -30877; + +const int kPMWriteFailed = -9783; + +const int kPMXMLParseError = -30884; + +const int kPOSIXErrorBase = 100000; + +const int kPOSIXErrorE2BIG = 100007; + +const int kPOSIXErrorEACCES = 100013; + +const int kPOSIXErrorEADDRINUSE = 100048; + +const int kPOSIXErrorEADDRNOTAVAIL = 100049; + +const int kPOSIXErrorEAFNOSUPPORT = 100047; + +const int kPOSIXErrorEAGAIN = 100035; + +const int kPOSIXErrorEALREADY = 100037; + +const int kPOSIXErrorEAUTH = 100080; + +const int kPOSIXErrorEBADARCH = 100086; + +const int kPOSIXErrorEBADEXEC = 100085; + +const int kPOSIXErrorEBADF = 100009; + +const int kPOSIXErrorEBADMACHO = 100088; + +const int kPOSIXErrorEBADMSG = 100094; + +const int kPOSIXErrorEBADRPC = 100072; + +const int kPOSIXErrorEBUSY = 100016; + +const int kPOSIXErrorECANCELED = 100089; + +const int kPOSIXErrorECHILD = 100010; + +const int kPOSIXErrorECONNABORTED = 100053; + +const int kPOSIXErrorECONNREFUSED = 100061; + +const int kPOSIXErrorECONNRESET = 100054; + +const int kPOSIXErrorEDEADLK = 100011; + +const int kPOSIXErrorEDESTADDRREQ = 100039; + +const int kPOSIXErrorEDEVERR = 100083; + +const int kPOSIXErrorEDOM = 100033; + +const int kPOSIXErrorEDQUOT = 100069; + +const int kPOSIXErrorEEXIST = 100017; + +const int kPOSIXErrorEFAULT = 100014; + +const int kPOSIXErrorEFBIG = 100027; + +const int kPOSIXErrorEFTYPE = 100079; + +const int kPOSIXErrorEHOSTDOWN = 100064; + +const int kPOSIXErrorEHOSTUNREACH = 100065; + +const int kPOSIXErrorEIDRM = 100090; + +const int kPOSIXErrorEILSEQ = 100092; + +const int kPOSIXErrorEINPROGRESS = 100036; + +const int kPOSIXErrorEINTR = 100004; + +const int kPOSIXErrorEINVAL = 100022; + +const int kPOSIXErrorEIO = 100005; + +const int kPOSIXErrorEISCONN = 100056; + +const int kPOSIXErrorEISDIR = 100021; + +const int kPOSIXErrorELOOP = 100062; + +const int kPOSIXErrorEMFILE = 100024; + +const int kPOSIXErrorEMLINK = 100031; + +const int kPOSIXErrorEMSGSIZE = 100040; + +const int kPOSIXErrorEMULTIHOP = 100095; + +const int kPOSIXErrorENAMETOOLONG = 100063; + +const int kPOSIXErrorENEEDAUTH = 100081; + +const int kPOSIXErrorENETDOWN = 100050; + +const int kPOSIXErrorENETRESET = 100052; + +const int kPOSIXErrorENETUNREACH = 100051; + +const int kPOSIXErrorENFILE = 100023; + +const int kPOSIXErrorENOATTR = 100093; + +const int kPOSIXErrorENOBUFS = 100055; + +const int kPOSIXErrorENODATA = 100096; + +const int kPOSIXErrorENODEV = 100019; + +const int kPOSIXErrorENOENT = 100002; + +const int kPOSIXErrorENOEXEC = 100008; + +const int kPOSIXErrorENOLCK = 100077; + +const int kPOSIXErrorENOLINK = 100097; + +const int kPOSIXErrorENOMEM = 100012; + +const int kPOSIXErrorENOMSG = 100091; + +const int kPOSIXErrorENOPROTOOPT = 100042; + +const int kPOSIXErrorENOSPC = 100028; + +const int kPOSIXErrorENOSR = 100098; + +const int kPOSIXErrorENOSTR = 100099; + +const int kPOSIXErrorENOSYS = 100078; + +const int kPOSIXErrorENOTBLK = 100015; + +const int kPOSIXErrorENOTCONN = 100057; + +const int kPOSIXErrorENOTDIR = 100020; + +const int kPOSIXErrorENOTEMPTY = 100066; + +const int kPOSIXErrorENOTSOCK = 100038; + +const int kPOSIXErrorENOTSUP = 100045; + +const int kPOSIXErrorENOTTY = 100025; + +const int kPOSIXErrorENXIO = 100006; + +const int kPOSIXErrorEOPNOTSUPP = 100102; + +const int kPOSIXErrorEOVERFLOW = 100084; + +const int kPOSIXErrorEPERM = 100001; + +const int kPOSIXErrorEPFNOSUPPORT = 100046; + +const int kPOSIXErrorEPIPE = 100032; + +const int kPOSIXErrorEPROCLIM = 100067; + +const int kPOSIXErrorEPROCUNAVAIL = 100076; + +const int kPOSIXErrorEPROGMISMATCH = 100075; + +const int kPOSIXErrorEPROGUNAVAIL = 100074; + +const int kPOSIXErrorEPROTO = 100100; + +const int kPOSIXErrorEPROTONOSUPPORT = 100043; + +const int kPOSIXErrorEPROTOTYPE = 100041; + +const int kPOSIXErrorEPWROFF = 100082; + +const int kPOSIXErrorERANGE = 100034; + +const int kPOSIXErrorEREMOTE = 100071; + +const int kPOSIXErrorEROFS = 100030; + +const int kPOSIXErrorERPCMISMATCH = 100073; + +const int kPOSIXErrorESHLIBVERS = 100087; + +const int kPOSIXErrorESHUTDOWN = 100058; + +const int kPOSIXErrorESOCKTNOSUPPORT = 100044; + +const int kPOSIXErrorESPIPE = 100029; + +const int kPOSIXErrorESRCH = 100003; + +const int kPOSIXErrorESTALE = 100070; + +const int kPOSIXErrorETIME = 100101; + +const int kPOSIXErrorETIMEDOUT = 100060; + +const int kPOSIXErrorETOOMANYREFS = 100059; + +const int kPOSIXErrorETXTBSY = 100026; + +const int kPOSIXErrorEUSERS = 100068; + +const int kPOSIXErrorEXDEV = 100018; + +const int kPROPALDirectionClass = 2; + +const int kPROPANDirectionClass = 6; + +const int kPROPBNDirectionClass = 19; + +const int kPROPCSDirectionClass = 7; + +const int kPROPCanHangLTMask = 16384; + +const int kPROPCanHangRBMask = 8192; + +const int kPROPCurrentVersion = 196608; + +const int kPROPDirectionMask = 31; + +const int kPROPENDirectionClass = 3; + +const int kPROPESDirectionClass = 4; + +const int kPROPETDirectionClass = 5; + +const int kPROPIsFloaterMask = 32768; + +const int kPROPLDirectionClass = 0; + +const int kPROPLREDirectionClass = 13; + +const int kPROPLRODirectionClass = 14; + +const int kPROPNSMDirectionClass = 18; + +const int kPROPNumDirectionClasses = 20; + +const int kPROPONDirectionClass = 11; + +const int kPROPPDFDirectionClass = 17; + +const int kPROPPSDirectionClass = 8; + +const int kPROPPairOffsetMask = 3840; + +const int kPROPPairOffsetShift = 8; + +const int kPROPPairOffsetSign = 7; + +const int kPROPRDirectionClass = 1; + +const int kPROPRLEDirectionClass = 15; + +const int kPROPRLODirectionClass = 16; + +const int kPROPRightConnectMask = 128; + +const int kPROPSDirectionClass = 9; + +const int kPROPSENDirectionClass = 12; + +const int kPROPTag = 1886547824; + +const int kPROPUseRLPairMask = 4096; + +const int kPROPWSDirectionClass = 10; + +const int kPROPZeroReserved = 96; + +const int kPackageAliasType = 1718643553; + +@Deprecated('Deprecated') +const int kPageInMemory = 0; + +@Deprecated('Deprecated') +const int kPageOnDisk = 1; + +const int kParenthesisAnnotationSelector = 5; + +const int kPartiallyConnectedSelector = 1; + +@Deprecated('Deprecated') +const int kPascalStackBased = 0; + +const int kPassCallToChainErr = -9086; + +@Deprecated('Deprecated') +const int kPassSelector = 0; + +const int kPassword = 2; + +const int kPasswordChangedKCEvent = 6; + +const int kPasswordChangedKCEventMask = 64; + +const int kPathKCItemAttr = 1885434984; + +const int kPeriodAnnotationSelector = 6; + +const int kPeriodsToEllipsisOffSelector = 11; + +const int kPeriodsToEllipsisOnSelector = 10; + +const int kPiCharactersSelector = 2; + +@Deprecated('Deprecated') +const int kPictureDocumentsFolderType = 1885630307; + +const int kPlotIconRefNoImage = 2; + +const int kPlotIconRefNoMask = 4; + +const int kPlotIconRefNormalFlags = 0; + +const int kPolicyKCStopOn = 0; + +const int kPortKCItemAttr = 1886351988; + +const int kPos2Offset = 1882354548; + +const int kPostCardEventErr = -9088; + +const int kPowerHandlerExistsForDeviceErr = -13006; + +const int kPowerHandlerNotFoundForDeviceErr = -13007; + +const int kPowerHandlerNotFoundForProcErr = -13008; + +const int kPowerMgtMessageNotHandled = -13009; + +const int kPowerMgtRequestDenied = -13010; + +@Deprecated('Deprecated') +const int kPowerPCISA = 1; + +@Deprecated('Deprecated') +const int kPowerPCRTA = 0; + +@Deprecated('Deprecated') +const int kPreMacOS91AppleExtrasFolderType = -1939507004; + +@Deprecated('Deprecated') +const int kPreMacOS91ApplicationsFolderType = -1938788237; + +@Deprecated('Deprecated') +const int kPreMacOS91AssistantsFolderType = -1938590524; + +@Deprecated('Deprecated') +const int kPreMacOS91AutomountedServersFolderType = -1485670716; + +@Deprecated('Deprecated') +const int kPreMacOS91InstallerLogsFolderType = -1804834970; + +@Deprecated('Deprecated') +const int kPreMacOS91InternetFolderType = -1804700476; + +@Deprecated('Deprecated') +const int kPreMacOS91MacOSReadMesFolderType = -1250987324; + +@Deprecated('Deprecated') +const int kPreMacOS91StationeryFolderType = -1083935884; + +@Deprecated('Deprecated') +const int kPreMacOS91UtilitiesFolderType = -1619760700; + +@Deprecated('Deprecated') +const int kPreemptiveThread = 2; + +const int kPreferencePanesFolderType = 1886413166; + +const int kPreferencesFolderAliasType = 1717661798; + +const int kPreferencesFolderIcon = 1886545604; + +const int kPreferencesFolderIconResource = -3974; + +@Deprecated('Deprecated') +const int kPreferencesFolderType = 1886545254; + +const int kPreflightThenPause = 4; + +const int kPreventOverlapOffSelector = 1; + +const int kPreventOverlapOnSelector = 0; + +const int kPreviousBody = 2; + +const int kPrintMonitorDocsFolderAliasType = 1717661806; + +@Deprecated('Deprecated') +const int kPrintMonitorDocsFolderType = 1886547572; + +const int kPrintMonitorFolderIcon = 1886547572; + +const int kPrintMonitorFolderIconResource = -3975; + +const int kPrinterDescriptionFolderIcon = 1886413926; + +@Deprecated('Deprecated') +const int kPrinterDescriptionFolderType = 1886413926; + +const int kPrinterDriverFolderIcon = -999263644; + +@Deprecated('Deprecated') +const int kPrinterDriverFolderType = -999263644; + +@Deprecated('Deprecated') +const int kPrintersFolderType = 1768779890; + +@Deprecated('Deprecated') +const int kPrintingPlugInsFolderType = 1886415975; + +const int kPrivateFolderIcon = 1886549606; + +const int kPrivateFolderIconResource = -3994; + +@Deprecated('Deprecated') +const int kPrivateFrameworksFolderType = 1885762157; + +@Deprecated('Deprecated') +const int kPrivilegeViolationException = 8; + +@Deprecated('Deprecated') +const int kProcDescriptorIsAbsolute = 0; + +@Deprecated('Deprecated') +const int kProcDescriptorIsIndex = 32; + +@Deprecated('Deprecated') +const int kProcDescriptorIsProcPtr = 0; + +@Deprecated('Deprecated') +const int kProcDescriptorIsRelative = 1; + +const int kProcessDictionaryIncludeAllInformationMask = -1; + +const int kProcessTransformToBackgroundApplication = 2; + +const int kProcessTransformToForegroundApplication = 1; + +const int kProcessTransformToUIElementApplication = 4; + +const int kProcessorTempRoutineRequiresMPLib2 = -13014; + +const int kProportionalCJKRomanSelector = 1; + +const int kProportionalIdeographsSelector = 1; + +const int kProportionalKanaSelector = 1; + +const int kProportionalNumbersSelector = 1; + +const int kProportionalTextSelector = 0; + +const int kProtectedApplicationFolderIcon = 1885433968; + +const int kProtectedSystemFolderIcon = 1886615923; + +const int kProtocolKCItemAttr = 1886675820; + +const int kPublicFolderIcon = 1886741094; + +@Deprecated('Deprecated') +const int kPublicFolderType = 1886741090; + +const int kPublicKeyHashKCItemAttr = 1752198009; + +const int kQDCorruptPICTDataErr = -3954; + +const int kQDCursorAlreadyRegistered = -3952; + +const int kQDCursorNotRegistered = -3953; + +const int kQDNoColorHWCursorSupport = -3951; + +const int kQDNoPalette = -3950; + +const int kQTSSUnknownErr = -6150; + +const int kQuarterWidthNumbersSelector = 3; + +const int kQuarterWidthTextSelector = 4; + +const int kQuestionMarkIcon = 1903519091; + +@Deprecated('Deprecated') +const int kQuickLookFolderType = 1902928747; + +@Deprecated('Deprecated') +const int kQuickTimeComponentsFolderType = 2003004784; + +@Deprecated('Deprecated') +const int kQuickTimeExtensionsFolderType = 1903453560; + +const int kQuitAtNormalTimeMask = 2; + +const int kQuitBeforeFBAsQuitMask = 4; + +const int kQuitBeforeNormalTimeMask = 1; + +const int kQuitBeforeShellQuitsMask = 8; + +const int kQuitBeforeTerminatorAppQuitsMask = 16; + +const int kQuitNeverMask = 32; + +const int kQuitNotQuitDuringInstallMask = 256; + +const int kQuitNotQuitDuringLogoutMask = 512; + +const int kQuitOptionsMask = 127; + +const int kRAATalkInactive = -7134; + +const int kRACallBackFailed = -7138; + +const int kRAConfigurationDBInitErr = -7127; + +const int kRAConnectionCanceled = -7109; + +const int kRADuplicateIPAddr = -7137; + +const int kRAExtAuthenticationFailed = -7135; + +const int kRAIncompatiblePrefs = -7107; + +const int kRAInitOpenTransportFailed = -7122; + +const int kRAInstallationDamaged = -7113; + +const int kRAInternalError = -7112; + +const int kRAInvalidParameter = -7100; + +const int kRAInvalidPassword = -7111; + +const int kRAInvalidPort = -7101; + +const int kRAInvalidPortState = -7116; + +const int kRAInvalidSerialProtocol = -7117; + +const int kRAMissingResources = -7106; + +const int kRANCPRejectedbyPeer = -7136; + +const int kRANotConnected = -7108; + +const int kRANotEnabled = -7139; + +const int kRANotPrimaryInterface = -7126; + +const int kRANotSupported = -7105; + +const int kRAOutOfMemory = -7104; + +const int kRAPPPAuthenticationFailed = -7129; + +const int kRAPPPNegotiationFailed = -7130; + +const int kRAPPPPeerDisconnected = -7132; + +const int kRAPPPProtocolRejected = -7128; + +const int kRAPPPUserDisconnected = -7131; + +const int kRAPeerNotResponding = -7133; + +const int kRAPortBusy = -7114; + +const int kRAPortSetupFailed = -7103; + +const int kRARemoteAccessNotReady = -7123; + +const int kRAStartupFailed = -7102; + +const int kRATCPIPInactive = -7124; + +const int kRATCPIPNotConfigured = -7125; + +const int kRAUnknownPortState = -7115; + +const int kRAUnknownUser = -7110; + +const int kRAUserInteractionRequired = -7121; + +const int kRAUserLoginDisabled = -7118; + +const int kRAUserPwdChangeRequired = -7119; + +const int kRAUserPwdEntryRequired = -7120; + +const int kRareLigaturesOffSelector = 5; + +const int kRareLigaturesOnSelector = 4; + +const int kRdPermKCStatus = 2; + +const int kReadExtensionTermsMask = 32768; + +const int kReadFailureErr = -9068; + +@Deprecated('Deprecated') +const int kReadOnlyMemoryException = 6; + +@Deprecated('Deprecated') +const int kReadReference = 1; + +@Deprecated('Deprecated') +const int kReadyThreadState = 0; + +const int kRebusPicturesOffSelector = 9; + +const int kRebusPicturesOnSelector = 8; + +const int kRecentApplicationsFolderIcon = 1918988400; + +@Deprecated('Deprecated') +const int kRecentApplicationsFolderType = 1918988400; + +const int kRecentDocumentsFolderIcon = 1919184739; + +@Deprecated('Deprecated') +const int kRecentDocumentsFolderType = 1919184739; + +const int kRecentItemsIcon = 1919118964; + +const int kRecentServersFolderIcon = 1920168566; + +@Deprecated('Deprecated') +const int kRecentServersFolderType = 1920169586; + +const int kRedirectedRelativeFolder = 1920099692; + +const int kRedrawHighlighting = 1; + +@Deprecated('Deprecated') +const int kRegisterA0 = 4; + +@Deprecated('Deprecated') +const int kRegisterA1 = 5; + +@Deprecated('Deprecated') +const int kRegisterA2 = 6; + +@Deprecated('Deprecated') +const int kRegisterA3 = 7; + +@Deprecated('Deprecated') +const int kRegisterA4 = 12; + +@Deprecated('Deprecated') +const int kRegisterA5 = 13; + +@Deprecated('Deprecated') +const int kRegisterA6 = 14; + +@Deprecated('Deprecated') +const int kRegisterBased = 2; + +@Deprecated('Deprecated') +const int kRegisterD0 = 0; + +@Deprecated('Deprecated') +const int kRegisterD1 = 1; + +@Deprecated('Deprecated') +const int kRegisterD2 = 2; + +@Deprecated('Deprecated') +const int kRegisterD3 = 3; + +@Deprecated('Deprecated') +const int kRegisterD4 = 8; + +@Deprecated('Deprecated') +const int kRegisterD5 = 9; + +@Deprecated('Deprecated') +const int kRegisterD6 = 10; + +@Deprecated('Deprecated') +const int kRegisterD7 = 11; + +@Deprecated('Deprecated') +const int kRegisterParameterMask = 2147481600; + +@Deprecated('Deprecated') +const int kRegisterParameterPhase = 11; + +@Deprecated('Deprecated') +const int kRegisterParameterSizePhase = 0; + +@Deprecated('Deprecated') +const int kRegisterParameterSizeWidth = 2; + +@Deprecated('Deprecated') +const int kRegisterParameterWhichPhase = 2; + +@Deprecated('Deprecated') +const int kRegisterParameterWhichWidth = 3; + +@Deprecated('Deprecated') +const int kRegisterParameterWidth = 5; + +@Deprecated('Deprecated') +const int kRegisterResultLocationPhase = 6; + +@Deprecated('Deprecated') +const int kRegisterResultLocationWidth = 5; + +const int kRelativeFolder = 1919249510; + +const int kRequiredLigaturesOffSelector = 1; + +const int kRequiredLigaturesOnSelector = 0; + +@Deprecated('Deprecated') +const int kResFileNotOpened = -1; + +@Deprecated('Deprecated') +const int kResolveAliasFileNoUI = 1; + +@Deprecated('Deprecated') +const int kResolveAliasTryFileIDFirst = 2; + +@Deprecated('Deprecated') +const int kResultSizeMask = 48; + +@Deprecated('Deprecated') +const int kResultSizePhase = 4; + +@Deprecated('Deprecated') +const int kResultSizeWidth = 2; + +const int kReturnNextGroup = 2; + +const int kReturnNextUG = 3; + +const int kReturnNextUser = 1; + +const int kRightContainerArrowIcon = 1919115634; + +const int kRolloverIconVariant = 1870030194; + +const int kRomanNumeralAnnotationSelector = 7; + +const int kRomanizationToHiraganaSelector = 5; + +const int kRomanizationToKatakanaSelector = 6; + +const int kRootFolder = 1919906918; + +const int kRoundedBoxAnnotationSelector = 2; + +@Deprecated('Deprecated') +const int kRoutineDescriptorVersion = 7; + +@Deprecated('Deprecated') +const int kRoutineIsDispatchedDefaultRoutine = 16; + +@Deprecated('Deprecated') +const int kRoutineIsNotDispatchedDefaultRoutine = 0; + +const int kRoutingResourceID = 0; + +const int kRoutingResourceType = 1919907188; + +@Deprecated('Deprecated') +const int kRsrcChainAboveAllMaps = 4; + +@Deprecated('Deprecated') +const int kRsrcChainAboveApplicationMap = 2; + +@Deprecated('Deprecated') +const int kRsrcChainBelowApplicationMap = 1; + +@Deprecated('Deprecated') +const int kRsrcChainBelowSystemMap = 0; + +const int kRubyKanaOffSelector = 3; + +const int kRubyKanaOnSelector = 2; + +const int kRubyKanaSelector = 1; + +const int kRubyKanaType = 28; + +@Deprecated('Deprecated') +const int kRunningThreadState = 2; + +const int kSFNTLookupSegmentArray = 4; + +const int kSFNTLookupSegmentSingle = 2; + +const int kSFNTLookupSimpleArray = 0; + +const int kSFNTLookupSingleTable = 6; + +const int kSFNTLookupTrimmedArray = 8; + +const int kSFNTLookupVector = 10; + +const int kSKSearchOptionDefault = 0; + +const int kSKSearchOptionFindSimilar = 4; + +const int kSKSearchOptionNoRelevanceScores = 1; + +const int kSKSearchOptionSpaceMeansOR = 2; + +const int kSOAP1999Schema = 1936931129; + +const int kSOAP2001Schema = 1936928817; + +const int kSOCKS5NoAcceptableMethod = 255; + +const int kSSpCantInstallErr = -30342; + +const int kSSpInternalErr = -30340; + +const int kSSpParallelUpVectorErr = -30343; + +const int kSSpScaleToZeroErr = -30344; + +const int kSSpVersionErr = -30341; + +const int kSTClassDeletedGlyph = 2; + +const int kSTClassEndOfLine = 3; + +const int kSTClassEndOfText = 0; + +const int kSTClassOutOfBounds = 1; + +const int kSTKCrossStreamReset = 8192; + +const int kSTLigActionMask = 16383; + +const int kSTMarkEnd = 8192; + +const int kSTNoAdvance = 16384; + +const int kSTRearrVerbMask = 15; + +const int kSTSetMark = 32768; + +const int kSTXHasLigAction = 8192; + +const int kScientificInferiorsSelector = 4; + +const int kScreenSaversFolderType = 1935897198; + +const int kScriptCodeKCItemAttr = 1935897200; + +const int kScriptingAdditionsFolderIcon = -999070862; + +@Deprecated('Deprecated') +const int kScriptingAdditionsFolderType = -999070862; + +const int kScriptsFolderIcon = 1935897284; + +@Deprecated('Deprecated') +const int kScriptsFolderType = 1935897284; + +const int kSecCSAllowNetworkAccess = 65536; + +const int kSecCSBasicValidateOnly = 6; + +const int kSecCSCalculateCMSDigest = 64; + +const int kSecCSCheckAllArchitectures = 1; + +const int kSecCSCheckGatekeeperArchitectures = 65; + +const int kSecCSCheckNestedCode = 8; + +const int kSecCSContentInformation = 16; + +const int kSecCSDedicatedHost = 1; + +const int kSecCSDoNotValidateExecutable = 2; + +const int kSecCSDoNotValidateResources = 4; + +const int kSecCSDynamicInformation = 8; + +const int kSecCSFastExecutableValidation = 131072; + +const int kSecCSFullReport = 32; + +const int kSecCSGenerateGuestHash = 2; + +const int kSecCSInternalInformation = 1; + +const int kSecCSRequirementInformation = 4; + +const int kSecCSRestrictSidebandData = 512; + +const int kSecCSRestrictSymlinks = 128; + +const int kSecCSRestrictToAppLike = 256; + +const int kSecCSSigningInformation = 2; + +const int kSecCSSingleThreaded = 4096; + +const int kSecCSSkipResourceDirectory = 32; + +const int kSecCSStrictValidate = 16; + +const int kSecCSUseAllArchitectures = 1; + +const int kSecCSUseSoftwareSigningCert = 1024; + +const int kSecCSValidatePEH = 2048; + +const int kSecCertEncodingItemAttr = 1667591779; + +const int kSecCertTypeItemAttr = 1668577648; + +const int kSecHonorRoot = 256; + +const int kSecIssuerItemAttr = 1769173877; + +@Deprecated('No longer supported') +const int kSecKeyAlias = 2; + +@Deprecated('No longer supported') +const int kSecKeyAlwaysSensitive = 15; + +@Deprecated('No longer supported') +const int kSecKeyApplicationTag = 7; + +@Deprecated('No longer supported') +const int kSecKeyDecrypt = 19; + +@Deprecated('No longer supported') +const int kSecKeyDerive = 20; + +@Deprecated('No longer supported') +const int kSecKeyEffectiveKeySize = 11; + +@Deprecated('No longer supported') +const int kSecKeyEncrypt = 18; + +@Deprecated('No longer supported') +const int kSecKeyEndDate = 13; + +@Deprecated('No longer supported') +const int kSecKeyExtractable = 16; + +@Deprecated('No longer supported') +const int kSecKeyKeyClass = 0; + +@Deprecated('No longer supported') +const int kSecKeyKeyCreator = 8; + +@Deprecated('No longer supported') +const int kSecKeyKeySizeInBits = 10; + +@Deprecated('No longer supported') +const int kSecKeyKeyType = 9; + +@Deprecated('No longer supported') +const int kSecKeyLabel = 6; + +@Deprecated('No longer supported') +const int kSecKeyModifiable = 5; + +@Deprecated('No longer supported') +const int kSecKeyNeverExtractable = 17; + +@Deprecated('No longer supported') +const int kSecKeyPermanent = 3; + +@Deprecated('No longer supported') +const int kSecKeyPrintName = 1; + +@Deprecated('No longer supported') +const int kSecKeyPrivate = 4; + +@Deprecated('No longer supported') +const int kSecKeySensitive = 14; + +@Deprecated('No longer supported') +const int kSecKeySign = 21; + +@Deprecated('No longer supported') +const int kSecKeySignRecover = 23; + +@Deprecated('No longer supported') +const int kSecKeyStartDate = 12; + +@Deprecated('No longer supported') +const int kSecKeyUnwrap = 26; + +@Deprecated('No longer supported') +const int kSecKeyVerify = 22; + +@Deprecated('No longer supported') +const int kSecKeyVerifyRecover = 24; + +@Deprecated('No longer supported') +const int kSecKeyWrap = 25; + +const int kSecMatchBits = 3; + +const int kSecNoGuest = 0; + +const int kSecOptionReserved = 255; + +const int kSecPublicKeyHashItemAttr = 1752198009; + +const int kSecReadPermStatus = 2; + +const int kSecRevocationCRLMethod = 2; + +const int kSecRevocationNetworkAccessDisabled = 16; + +const int kSecRevocationOCSPMethod = 1; + +const int kSecRevocationPreferCRL = 4; + +const int kSecRevocationRequirePositiveResponse = 8; + +const int kSecRevocationUseAnyAvailableMethod = 3; + +const int kSecSerialNumberItemAttr = 1936614002; + +const int kSecSubjectItemAttr = 1937072746; + +const int kSecSubjectKeyIdentifierItemAttr = 1936419172; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorAbortInProgress = 19; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorAborted = 20; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorAttributeNotFound = 1; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidAlgorithm = 6; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidConnection = 15; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidInput = 10; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidInputDictionary = 5; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidLength = 7; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidOperation = 2; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidType = 8; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorMissingParameter = 14; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorMoreThanOneOutput = 4; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorNameAlreadyRegistered = 11; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorNotInitializedCorrectly = 3; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorUnsupportedAttribute = 12; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformInvalidArgument = 21; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformInvalidOverride = 17; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformOperationNotSupportedOnGroup = 13; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformTransformIsExecuting = 16; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformTransformIsNotRegistered = 18; + +const int kSecUnlockStateStatus = 1; + +const int kSecUseOnlyGID = 2; + +const int kSecUseOnlyUID = 1; + +const int kSecWritePermStatus = 4; + +const int kSecondScale = 1000000000; + +const int kSecurityDomainKCItemAttr = 1935961454; + +const int kSelectorAll1BitData = 16843009; + +const int kSelectorAll32BitData = 134219784; + +const int kSelectorAll4BitData = 33686018; + +const int kSelectorAll8BitData = 67372036; + +const int kSelectorAllAvailableData = -1; + +const int kSelectorAllHugeData = -16777216; + +const int kSelectorAllLargeData = 255; + +const int kSelectorAllMiniData = 16711680; + +const int kSelectorAllSmallData = 65280; + +const int kSelectorHuge1Bit = 16777216; + +const int kSelectorHuge32Bit = 134217728; + +const int kSelectorHuge4Bit = 33554432; + +const int kSelectorHuge8Bit = 67108864; + +const int kSelectorHuge8BitMask = 268435456; + +const int kSelectorLarge1Bit = 1; + +const int kSelectorLarge32Bit = 8; + +const int kSelectorLarge4Bit = 2; + +const int kSelectorLarge8Bit = 4; + +const int kSelectorLarge8BitMask = 16; + +const int kSelectorMini1Bit = 65536; + +const int kSelectorMini4Bit = 131072; + +const int kSelectorMini8Bit = 262144; + +const int kSelectorSmall1Bit = 256; + +const int kSelectorSmall32Bit = 2048; + +const int kSelectorSmall4Bit = 512; + +const int kSelectorSmall8Bit = 1024; + +const int kSelectorSmall8BitMask = 4096; + +@Deprecated('Deprecated') +const int kSelectorsAreIndexable = 1; + +@Deprecated('Deprecated') +const int kSelectorsAreNotIndexable = 0; + +const int kSerialNumberKCItemAttr = 1936614002; + +const int kServerKCItemAttr = 1936881266; + +const int kServiceKCItemAttr = 1937138533; + +@Deprecated('Deprecated') +const int kServicesFolderType = 1937138547; + +const int kSetCLUTByValue = 1; + +const int kSetCLUTImmediately = 2; + +const int kSetCLUTWithLuminance = 4; + +@Deprecated('Deprecated') +const int kSetDebugOption = 2; + +const int kSetFrontProcessCausedByUser = 2; + +const int kSetFrontProcessFrontWindowOnly = 1; + +const int kSetPowerLevel = 17; + +const int kSharedBadgeIcon = 1935828071; + +const int kSharedFolderAliasType = 1717662568; + +const int kSharedFolderIcon = 1936221804; + +const int kSharedFolderIconResource = -3978; + +const int kSharedLibrariesFolderIcon = -999528094; + +@Deprecated('Deprecated') +const int kSharedLibrariesFolderType = -999528094; + +@Deprecated('Deprecated') +const int kSharedUserDataFolderType = 1935958388; + +const int kSharingPrivsNotApplicableIcon = 1936223841; + +const int kSharingPrivsReadOnlyIcon = 1936224879; + +const int kSharingPrivsReadWriteIcon = 1936224887; + +const int kSharingPrivsUnknownIcon = 1936225643; + +const int kSharingPrivsWritableIcon = 2003986804; + +const int kShiftJIS_BasicVariant = 0; + +const int kShiftJIS_DOSVariant = 1; + +const int kShiftJIS_MusicCDVariant = 2; + +const int kShortcutIcon = 1936224884; + +const int kShowDiacriticsSelector = 0; + +const int kShowHideInputWindow = 1936222583; + +@Deprecated('Deprecated') +const int kShutdownFolderType = 1936221286; + +const int kShutdownItemsDisabledFolderIcon = 1936221252; + +@Deprecated('Deprecated') +const int kShutdownItemsDisabledFolderType = 1936221252; + +const int kShutdownItemsFolderIcon = 1936221286; + +const int kSignKCItemAttr = 1936287598; + +const int kSignatureKCItemAttr = 1936943463; + +const int kSimplifiedCharactersSelector = 1; + +const int kSlashToDivideOffSelector = 5; + +const int kSlashToDivideOnSelector = 4; + +const int kSlashedZeroOffSelector = 5; + +const int kSlashedZeroOnSelector = 4; + +const int kSleepDemand = 2; + +const int kSleepDeny = 5; + +const int kSleepNow = 6; + +const int kSleepRequest = 1; + +const int kSleepRevoke = 4; + +const int kSleepUnlock = 4; + +const int kSleepWakeUp = 3; + +const int kSmall1BitMask = 1768125219; + +const int kSmall32BitData = 1769157426; + +const int kSmall4BitData = 1768125236; + +const int kSmall4BitIconSize = 128; + +const int kSmall8BitData = 1768125240; + +const int kSmall8BitIconSize = 256; + +const int kSmall8BitMask = 1933077867; + +const int kSmallCapsSelector = 3; + +const int kSmallIconSize = 64; + +const int kSmartQuotesOffSelector = 9; + +const int kSmartQuotesOnSelector = 8; + +const int kSmartSwashType = 8; + +const int kSortAscendingIcon = 1634954852; + +const int kSortDescendingIcon = 1685286500; + +const int kSoundFileIcon = 1936091500; + +@Deprecated('Deprecated') +const int kSoundSetsFolderType = 1936614515; + +const int kSpeakableItemsFolder = 1936747369; + +@Deprecated('Deprecated') +const int kSpeakableItemsFolderType = 1936747369; + +@Deprecated('Deprecated') +const int kSpecialCase = 15; + +@Deprecated('Deprecated') +const int kSpecialCaseCaretHook = 0; + +@Deprecated('Deprecated') +const int kSpecialCaseDrawHook = 4; + +@Deprecated('Deprecated') +const int kSpecialCaseEOLHook = 1; + +@Deprecated('Deprecated') +const int kSpecialCaseGNEFilterProc = 11; + +@Deprecated('Deprecated') +const int kSpecialCaseHighHook = 0; + +@Deprecated('Deprecated') +const int kSpecialCaseHitTestHook = 5; + +@Deprecated('Deprecated') +const int kSpecialCaseMBarHook = 12; + +@Deprecated('Deprecated') +const int kSpecialCaseNWidthHook = 3; + +@Deprecated('Deprecated') +const int kSpecialCaseProtocolHandler = 7; + +@Deprecated('Deprecated') +const int kSpecialCaseSelectorMask = 1008; + +@Deprecated('Deprecated') +const int kSpecialCaseSelectorPhase = 4; + +@Deprecated('Deprecated') +const int kSpecialCaseSelectorWidth = 6; + +@Deprecated('Deprecated') +const int kSpecialCaseSocketListener = 8; + +@Deprecated('Deprecated') +const int kSpecialCaseTEDoText = 10; + +@Deprecated('Deprecated') +const int kSpecialCaseTEFindWord = 6; + +@Deprecated('Deprecated') +const int kSpecialCaseTERecalc = 9; + +@Deprecated('Deprecated') +const int kSpecialCaseTextWidthHook = 2; + +@Deprecated('Deprecated') +const int kSpecialCaseWidthHook = 2; + +const int kSpecialFolder = 1936745318; + +@Deprecated('Deprecated') +const int kSpeechFolderType = 1936745320; + +const int kSpeechGenerateTune = 1; + +const int kSpeechRelativeDuration = 4; + +const int kSpeechRelativePitch = 2; + +const int kSpeechShowSyllables = 8; + +@Deprecated('Deprecated') +const int kSpotlightImportersFolderType = 1936289136; + +@Deprecated('Deprecated') +const int kSpotlightMetadataCacheFolderType = 1935893352; + +@Deprecated('Deprecated') +const int kSpotlightSavedSearchesFolderType = 1936748404; + +const int kSquaredLigaturesOffSelector = 13; + +const int kSquaredLigaturesOnSelector = 12; + +@Deprecated('Deprecated') +const int kStackDispatchedPascalStackBased = 14; + +@Deprecated('Deprecated') +const int kStackOverflowException = 14; + +@Deprecated('Deprecated') +const int kStackParameterMask = -64; + +@Deprecated('Deprecated') +const int kStackParameterPhase = 6; + +@Deprecated('Deprecated') +const int kStackParameterWidth = 2; + +const int kStartDateKCItemAttr = 1935958388; + +const int kStartupFolderAliasType = 1717662580; + +const int kStartupFolderIconResource = -3981; + +@Deprecated('Deprecated') +const int kStartupFolderType = 1937011316; + +const int kStartupItemsDisabledFolderIcon = 1937011268; + +@Deprecated('Deprecated') +const int kStartupItemsDisabledFolderType = 1937011268; + +const int kStartupItemsFolderIcon = 1937011316; + +@Deprecated('Deprecated') +const int kStationeryFolderType = 1868854132; + +const int kStillIdle = 25; + +@Deprecated('Deprecated') +const int kStoppedThreadState = 1; + +const int kStyleOptionsType = 19; + +const int kStylisticAltEightOffSelector = 17; + +const int kStylisticAltEightOnSelector = 16; + +const int kStylisticAltEighteenOffSelector = 37; + +const int kStylisticAltEighteenOnSelector = 36; + +const int kStylisticAltElevenOffSelector = 23; + +const int kStylisticAltElevenOnSelector = 22; + +const int kStylisticAltFifteenOffSelector = 31; + +const int kStylisticAltFifteenOnSelector = 30; + +const int kStylisticAltFiveOffSelector = 11; + +const int kStylisticAltFiveOnSelector = 10; + +const int kStylisticAltFourOffSelector = 9; + +const int kStylisticAltFourOnSelector = 8; + +const int kStylisticAltFourteenOffSelector = 29; + +const int kStylisticAltFourteenOnSelector = 28; + +const int kStylisticAltNineOffSelector = 19; + +const int kStylisticAltNineOnSelector = 18; + +const int kStylisticAltNineteenOffSelector = 39; + +const int kStylisticAltNineteenOnSelector = 38; + +const int kStylisticAltOneOffSelector = 3; + +const int kStylisticAltOneOnSelector = 2; + +const int kStylisticAltSevenOffSelector = 15; + +const int kStylisticAltSevenOnSelector = 14; + +const int kStylisticAltSeventeenOffSelector = 35; + +const int kStylisticAltSeventeenOnSelector = 34; + +const int kStylisticAltSixOffSelector = 13; + +const int kStylisticAltSixOnSelector = 12; + +const int kStylisticAltSixteenOffSelector = 33; + +const int kStylisticAltSixteenOnSelector = 32; + +const int kStylisticAltTenOffSelector = 21; + +const int kStylisticAltTenOnSelector = 20; + +const int kStylisticAltThirteenOffSelector = 27; + +const int kStylisticAltThirteenOnSelector = 26; + +const int kStylisticAltThreeOffSelector = 7; + +const int kStylisticAltThreeOnSelector = 6; + +const int kStylisticAltTwelveOffSelector = 25; + +const int kStylisticAltTwelveOnSelector = 24; + +const int kStylisticAltTwentyOffSelector = 41; + +const int kStylisticAltTwentyOnSelector = 40; + +const int kStylisticAltTwoOffSelector = 5; + +const int kStylisticAltTwoOnSelector = 4; + +const int kStylisticAlternativesType = 35; + +const int kSubjectKCItemAttr = 1937072746; + +const int kSubstituteVerticalFormsOffSelector = 1; + +const int kSubstituteVerticalFormsOnSelector = 0; + +const int kSuperiorsSelector = 1; + +const int kSuspendDemand = 13; + +const int kSuspendRequest = 12; + +const int kSuspendRevoke = 14; + +const int kSuspendWakeToDoze = 23; + +const int kSuspendWakeUp = 15; + +const int kSwashAlternatesOffSelector = 3; + +const int kSwashAlternatesOnSelector = 2; + +const int kSymLinkCreator = 1919443312; + +const int kSymLinkFileType = 1936485995; + +const int kSymbolLigaturesOffSelector = 17; + +const int kSymbolLigaturesOnSelector = 16; + +const int kSysSWTooOld = -6226; + +@Deprecated('Deprecated') +const int kSystemControlPanelFolderType = 1935897708; + +@Deprecated('Deprecated') +const int kSystemDesktopFolderType = 1935962987; + +@Deprecated('Deprecated') +const int kSystemDomain = -32766; + +const int kSystemEventKCEventMask = 256; + +const int kSystemExtensionDisabledFolderIcon = 1835098948; + +@Deprecated('Deprecated') +const int kSystemExtensionDisabledFolderType = 1835098948; + +const int kSystemFolderAliasType = 1717662585; + +const int kSystemFolderIcon = 1835098995; + +const int kSystemFolderIconResource = -3983; + +@Deprecated('Deprecated') +const int kSystemFolderType = 1835098995; + +const int kSystemIconsCreator = 1835098995; + +const int kSystemKCEvent = 8; + +const int kSystemPPDDomain = 2; + +@Deprecated('Deprecated') +const int kSystemPreferencesFolderType = 1936749158; + +const int kSystemProcess = 1; + +@Deprecated('Deprecated') +const int kSystemResFile = 0; + +@Deprecated('Deprecated') +const int kSystemSoundsFolderType = 1936944740; + +const int kSystemSuitcaseIcon = 2054388083; + +@Deprecated('Deprecated') +const int kSystemTrashFolderType = 1937011315; + +const int kTECAddFallbackInterruptBit = 7; + +const int kTECAddFallbackInterruptMask = 128; + +const int kTECAddForceASCIIChangesBit = 4; + +const int kTECAddForceASCIIChangesMask = 16; + +const int kTECAddTextRunHeuristicsBit = 6; + +const int kTECAddTextRunHeuristicsMask = 64; + +const int kTECArrayFullErr = -8751; + +const int kTECAvailableEncodingsResType = 1668703598; + +const int kTECAvailableSniffersResType = 1668707174; + +const int kTECBadTextRunErr = -8752; + +const int kTECBufferBelowMinimumSizeErr = -8750; + +const int kTECChinesePluginSignature = 1887070319; + +const int kTECConversionInfoResType = 1668704614; + +const int kTECCorruptConverterErr = -8748; + +const int kTECDirectionErr = -8756; + +const int kTECDisableFallbacksBit = 16; + +const int kTECDisableFallbacksMask = 65536; + +const int kTECDisableLooseMappingsBit = 17; + +const int kTECDisableLooseMappingsMask = 131072; + +const int kTECFallbackTextLengthFixBit = 1; + +const int kTECFallbackTextLengthFixMask = 2; + +const int kTECGlobalsUnavailableErr = -8770; + +const int kTECIncompleteElementErr = -8755; + +const int kTECInfoCurrentFormat = 2; + +const int kTECInternetNameDefaultUsageMask = 0; + +const int kTECInternetNameStrictUsageMask = 1; + +const int kTECInternetNameTolerantUsageMask = 2; + +const int kTECInternetNamesResType = 1668705645; + +const int kTECItemUnavailableErr = -8771; + +const int kTECJapanesePluginSignature = 1886023790; + +const int kTECKeepInfoFixBit = 0; + +const int kTECKeepInfoFixMask = 1; + +const int kTECKoreanPluginSignature = 1886089074; + +const int kTECMailEncodingsResType = 1668705644; + +const int kTECMissingTableErr = -8745; + +const int kTECNeedFlushStatus = -8784; + +const int kTECNoConversionPathErr = -8749; + +const int kTECOutputBufferFullStatus = -8785; + +const int kTECPartialCharErr = -8753; + +const int kTECPluginCreator = 1701733238; + +const int kTECPluginDispatchTableCurrentVersion = 65538; + +const int kTECPluginDispatchTableVersion1 = 65536; + +const int kTECPluginDispatchTableVersion1_1 = 65537; + +const int kTECPluginDispatchTableVersion1_2 = 65538; + +const int kTECPluginManyToOne = 1836347247; + +const int kTECPluginOneToMany = 1869901677; + +const int kTECPluginOneToOne = 1869901679; + +const int kTECPluginSniffObj = 1936615782; + +const int kTECPluginType = 1701015655; + +const int kTECPreferredEncodingFixBit = 5; + +const int kTECPreferredEncodingFixMask = 32; + +const int kTECResourceID = 128; + +const int kTECSignature = 1701733238; + +const int kTECSubTextEncodingsResType = 1668707170; + +const int kTECTableChecksumErr = -8746; + +const int kTECTableFormatErr = -8747; + +const int kTECTextRunBitClearFixBit = 2; + +const int kTECTextRunBitClearFixMask = 4; + +const int kTECTextToUnicodeScanFixBit = 3; + +const int kTECTextToUnicodeScanFixMask = 8; + +const int kTECUnicodePluginSignature = 1886744169; + +const int kTECUnmappableElementErr = -8754; + +const int kTECUsedFallbacksStatus = -8783; + +const int kTECWebEncodingsResType = 1668708194; + +const int kTEC_MIBEnumDontCare = -1; + +@Deprecated('Deprecated') +const int kTMTaskActive = 32768; + +const int kTRAKCurrentVersion = 65536; + +const int kTRAKTag = 1953653099; + +const int kTRAKUniformFormat = 0; + +const int kTSMHiliteBlockFillText = 6; + +const int kTSMHiliteCaretPosition = 1; + +const int kTSMHiliteConvertedText = 4; + +const int kTSMHiliteNoHilite = 9; + +const int kTSMHiliteOutlineText = 7; + +const int kTSMHiliteRawText = 2; + +const int kTSMHiliteSelectedConvertedText = 5; + +const int kTSMHiliteSelectedRawText = 3; + +const int kTSMHiliteSelectedText = 8; + +const int kTSMInsideOfActiveInputArea = 3; + +const int kTSMInsideOfBody = 2; + +const int kTSMOutsideOfBody = 1; + +const int kTXNATSUIIsNotInstalledErr = -22016; + +const int kTXNAlreadyInitializedErr = -22012; + +const int kTXNAttributeTagInvalidForRunErr = -22009; + +const int kTXNBadDefaultFileTypeWarning = -22005; + +const int kTXNCannotAddFrameErr = -22001; + +const int kTXNCannotSetAutoIndentErr = -22006; + +const int kTXNCannotTurnTSMOffWhenUsingUnicodeErr = -22013; + +const int kTXNCopyNotAllowedInEchoModeErr = -22014; + +const int kTXNDataTypeNotAllowedErr = -22015; + +const int kTXNEndIterationErr = -22000; + +const int kTXNIllegalToCrossDataBoundariesErr = -22003; + +const int kTXNInvalidFrameIDErr = -22002; + +const int kTXNInvalidRunIndex = -22011; + +const int kTXNNoMatchErr = -22008; + +const int kTXNOutsideOfFrameErr = -22018; + +const int kTXNOutsideOfLineErr = -22017; + +const int kTXNRunIndexOutofBoundsErr = -22007; + +const int kTXNSomeOrAllTagsInvalidForRunErr = -22010; + +const int kTXNUserCanceledOperationErr = -22004; + +const int kTallCapsSelector = 5; + +@Deprecated('Deprecated') +const int kTaskCreationException = 16; + +@Deprecated('Deprecated') +const int kTaskTerminationException = 15; + +@Deprecated('Deprecated') +const int kTemporaryFolderType = 1952804208; + +@Deprecated('Deprecated') +const int kTemporaryItemsInCacheDataFolderType = 1987341680; + +@Deprecated('Deprecated') +const int kTemporaryItemsInUserDomainFolderType = 1952804209; + +const int kTextCenter = 1; + +const int kTextEncodingANSEL = 1537; + +const int kTextEncodingBaseName = 1; + +const int kTextEncodingBig5 = 2563; + +const int kTextEncodingBig5_E = 2569; + +const int kTextEncodingBig5_HKSCS_1999 = 2566; + +const int kTextEncodingCNS_11643_92_P1 = 1617; + +const int kTextEncodingCNS_11643_92_P2 = 1618; + +const int kTextEncodingCNS_11643_92_P3 = 1619; + +const int kTextEncodingDOSArabic = 1049; + +const int kTextEncodingDOSBalticRim = 1030; + +const int kTextEncodingDOSCanadianFrench = 1048; + +const int kTextEncodingDOSChineseSimplif = 1057; + +const int kTextEncodingDOSChineseTrad = 1059; + +const int kTextEncodingDOSCyrillic = 1043; + +const int kTextEncodingDOSGreek = 1029; + +const int kTextEncodingDOSGreek1 = 1041; + +const int kTextEncodingDOSGreek2 = 1052; + +const int kTextEncodingDOSHebrew = 1047; + +const int kTextEncodingDOSIcelandic = 1046; + +const int kTextEncodingDOSJapanese = 1056; + +const int kTextEncodingDOSKorean = 1058; + +const int kTextEncodingDOSLatin1 = 1040; + +const int kTextEncodingDOSLatin2 = 1042; + +const int kTextEncodingDOSLatinUS = 1024; + +const int kTextEncodingDOSNordic = 1050; + +const int kTextEncodingDOSPortuguese = 1045; + +const int kTextEncodingDOSRussian = 1051; + +const int kTextEncodingDOSThai = 1053; + +const int kTextEncodingDOSTurkish = 1044; + +const int kTextEncodingDefaultFormat = 0; + +const int kTextEncodingDefaultVariant = 0; + +const int kTextEncodingEBCDIC_CP037 = 3074; + +const int kTextEncodingEBCDIC_LatinCore = 3073; + +const int kTextEncodingEBCDIC_US = 3073; + +const int kTextEncodingEUC_CN = 2352; + +const int kTextEncodingEUC_JP = 2336; + +const int kTextEncodingEUC_KR = 2368; + +const int kTextEncodingEUC_TW = 2353; + +const int kTextEncodingFormatName = 3; + +const int kTextEncodingFullName = 0; + +const int kTextEncodingGBK_95 = 1585; + +const int kTextEncodingGB_18030_2000 = 1586; + +const int kTextEncodingGB_18030_2005 = 1586; + +const int kTextEncodingGB_2312_80 = 1584; + +const int kTextEncodingHZ_GB_2312 = 2565; + +const int kTextEncodingISO10646_1993 = 257; + +const int kTextEncodingISOLatin1 = 513; + +const int kTextEncodingISOLatin10 = 528; + +const int kTextEncodingISOLatin2 = 514; + +const int kTextEncodingISOLatin3 = 515; + +const int kTextEncodingISOLatin4 = 516; + +const int kTextEncodingISOLatin5 = 521; + +const int kTextEncodingISOLatin6 = 522; + +const int kTextEncodingISOLatin7 = 525; + +const int kTextEncodingISOLatin8 = 526; + +const int kTextEncodingISOLatin9 = 527; + +const int kTextEncodingISOLatinArabic = 518; + +const int kTextEncodingISOLatinCyrillic = 517; + +const int kTextEncodingISOLatinGreek = 519; + +const int kTextEncodingISOLatinHebrew = 520; + +const int kTextEncodingISO_2022_CN = 2096; + +const int kTextEncodingISO_2022_CN_EXT = 2097; + +const int kTextEncodingISO_2022_JP = 2080; + +const int kTextEncodingISO_2022_JP_1 = 2082; + +const int kTextEncodingISO_2022_JP_2 = 2081; + +const int kTextEncodingISO_2022_JP_3 = 2083; + +const int kTextEncodingISO_2022_KR = 2112; + +const int kTextEncodingJIS_C6226_78 = 1572; + +const int kTextEncodingJIS_X0201_76 = 1568; + +const int kTextEncodingJIS_X0208_83 = 1569; + +const int kTextEncodingJIS_X0208_90 = 1570; + +const int kTextEncodingJIS_X0212_90 = 1571; + +const int kTextEncodingJIS_X0213_MenKuTen = 1577; + +const int kTextEncodingKOI8_R = 2562; + +const int kTextEncodingKOI8_U = 2568; + +const int kTextEncodingKSC_5601_87 = 1600; + +const int kTextEncodingKSC_5601_92_Johab = 1601; + +const int kTextEncodingMacArabic = 4; + +const int kTextEncodingMacArmenian = 24; + +const int kTextEncodingMacBengali = 13; + +const int kTextEncodingMacBurmese = 19; + +const int kTextEncodingMacCeltic = 39; + +const int kTextEncodingMacCentralEurRoman = 29; + +const int kTextEncodingMacChineseSimp = 25; + +const int kTextEncodingMacChineseTrad = 2; + +const int kTextEncodingMacCroatian = 36; + +const int kTextEncodingMacCyrillic = 7; + +const int kTextEncodingMacDevanagari = 9; + +const int kTextEncodingMacDingbats = 34; + +const int kTextEncodingMacEastEurRoman = 29; + +const int kTextEncodingMacEthiopic = 28; + +const int kTextEncodingMacExtArabic = 31; + +const int kTextEncodingMacFarsi = 140; + +const int kTextEncodingMacGaelic = 40; + +const int kTextEncodingMacGeez = 28; + +const int kTextEncodingMacGeorgian = 23; + +const int kTextEncodingMacGreek = 6; + +const int kTextEncodingMacGujarati = 11; + +const int kTextEncodingMacGurmukhi = 10; + +const int kTextEncodingMacHFS = 255; + +const int kTextEncodingMacHebrew = 5; + +const int kTextEncodingMacIcelandic = 37; + +const int kTextEncodingMacInuit = 236; + +const int kTextEncodingMacJapanese = 1; + +const int kTextEncodingMacKannada = 16; + +const int kTextEncodingMacKeyboardGlyphs = 41; + +const int kTextEncodingMacKhmer = 20; + +const int kTextEncodingMacKorean = 3; + +const int kTextEncodingMacLaotian = 22; + +const int kTextEncodingMacMalayalam = 17; + +const int kTextEncodingMacMongolian = 27; + +const int kTextEncodingMacOriya = 12; + +const int kTextEncodingMacRSymbol = 8; + +const int kTextEncodingMacRoman = 0; + +const int kTextEncodingMacRomanLatin1 = 2564; + +const int kTextEncodingMacRomanian = 38; + +const int kTextEncodingMacSimpChinese = 25; + +const int kTextEncodingMacSinhalese = 18; + +const int kTextEncodingMacSymbol = 33; + +const int kTextEncodingMacTamil = 14; + +const int kTextEncodingMacTelugu = 15; + +const int kTextEncodingMacThai = 21; + +const int kTextEncodingMacTibetan = 26; + +const int kTextEncodingMacTradChinese = 2; + +const int kTextEncodingMacTurkish = 35; + +const int kTextEncodingMacUkrainian = 152; + +const int kTextEncodingMacUnicode = 126; + +const int kTextEncodingMacUninterp = 32; + +const int kTextEncodingMacVT100 = 252; + +const int kTextEncodingMacVietnamese = 30; + +const int kTextEncodingMultiRun = 4095; + +const int kTextEncodingNextStepJapanese = 2818; + +const int kTextEncodingNextStepLatin = 2817; + +const int kTextEncodingShiftJIS = 2561; + +const int kTextEncodingShiftJIS_X0213 = 1576; + +const int kTextEncodingShiftJIS_X0213_00 = 1576; + +const int kTextEncodingUS_ASCII = 1536; + +const int kTextEncodingUnicodeDefault = 256; + +const int kTextEncodingUnicodeV10_0 = 276; + +const int kTextEncodingUnicodeV11_0 = 277; + +const int kTextEncodingUnicodeV12_1 = 278; + +const int kTextEncodingUnicodeV13_0 = 279; + +const int kTextEncodingUnicodeV14_0 = 280; + +const int kTextEncodingUnicodeV15_0 = 281; + +const int kTextEncodingUnicodeV15_1 = 282; + +const int kTextEncodingUnicodeV1_1 = 257; + +const int kTextEncodingUnicodeV2_0 = 259; + +const int kTextEncodingUnicodeV2_1 = 259; + +const int kTextEncodingUnicodeV3_0 = 260; + +const int kTextEncodingUnicodeV3_1 = 261; + +const int kTextEncodingUnicodeV3_2 = 262; + +const int kTextEncodingUnicodeV4_0 = 264; + +const int kTextEncodingUnicodeV5_0 = 266; + +const int kTextEncodingUnicodeV5_1 = 267; + +const int kTextEncodingUnicodeV6_0 = 269; + +const int kTextEncodingUnicodeV6_1 = 270; + +const int kTextEncodingUnicodeV6_3 = 272; + +const int kTextEncodingUnicodeV7_0 = 273; + +const int kTextEncodingUnicodeV8_0 = 274; + +const int kTextEncodingUnicodeV9_0 = 275; + +const int kTextEncodingUnknown = 65535; + +const int kTextEncodingVISCII = 2567; + +const int kTextEncodingVariantName = 2; + +const int kTextEncodingWindowsANSI = 1280; + +const int kTextEncodingWindowsArabic = 1286; + +const int kTextEncodingWindowsBalticRim = 1287; + +const int kTextEncodingWindowsCyrillic = 1282; + +const int kTextEncodingWindowsGreek = 1283; + +const int kTextEncodingWindowsHebrew = 1285; + +const int kTextEncodingWindowsKoreanJohab = 1296; + +const int kTextEncodingWindowsLatin1 = 1280; + +const int kTextEncodingWindowsLatin2 = 1281; + +const int kTextEncodingWindowsLatin5 = 1284; + +const int kTextEncodingWindowsVietnamese = 1288; + +const int kTextEncodingsFolderIcon = -999004808; + +@Deprecated('Deprecated') +const int kTextEncodingsFolderType = -999004808; + +const int kTextFlushDefault = 0; + +const int kTextFlushLeft = -2; + +const int kTextFlushRight = -1; + +const int kTextLanguageDontCare = -128; + +const int kTextMalformedInputErr = -8739; + +const int kTextRegionDontCare = -128; + +const int kTextScriptDontCare = -128; + +const int kTextServiceClass = 1953724003; + +const int kTextSpacingType = 22; + +const int kTextToSpeechSynthType = 1953788771; + +const int kTextToSpeechVoiceBundleType = 1953789538; + +const int kTextToSpeechVoiceFileType = 1953789542; + +const int kTextToSpeechVoiceType = 1953789540; + +const int kTextUndefinedElementErr = -8740; + +const int kTextUnsupportedEncodingErr = -8738; + +@Deprecated('Deprecated') +const int kThemesFolderType = 1953000805; + +@Deprecated('Deprecated') +const int kThinkCStackBased = 5; + +const int kThirdWidthNumbersSelector = 2; + +const int kThirdWidthTextSelector = 3; + +const int kThumbnail32BitData = 1769222962; + +const int kThumbnail8BitMask = 1949855083; + +const int kTickScale = 10000000; + +const int kTileIconVariant = 1953066085; + +const int kTitlingCapsSelector = 4; + +const int kTooManyIOWindowsErr = -9104; + +const int kToolbarAdvancedIcon = 1952604534; + +const int kToolbarApplicationsFolderIcon = 1950445683; + +const int kToolbarCustomizeIcon = 1952675187; + +const int kToolbarDeleteIcon = 1952736620; + +const int kToolbarDesktopFolderIcon = 1950643051; + +const int kToolbarDocumentsFolderIcon = 1950642019; + +const int kToolbarDownloadsFolderIcon = 1950644078; + +const int kToolbarFavoritesIcon = 1952866678; + +const int kToolbarHomeIcon = 1953001325; + +const int kToolbarInfoIcon = 1952606574; + +const int kToolbarLabelsIcon = 1952607330; + +const int kToolbarLibraryFolderIcon = 1951164770; + +const int kToolbarMovieFolderIcon = 1951231862; + +const int kToolbarMusicFolderIcon = 1951233395; + +const int kToolbarPicturesFolderIcon = 1951426915; + +const int kToolbarPublicFolderIcon = 1951429986; + +const int kToolbarSitesFolderIcon = 1951626355; + +const int kToolbarUtilitiesFolderIcon = 1951757420; + +@Deprecated('Deprecated') +const int kTraceException = 9; + +const int kTraditionalAltFiveSelector = 9; + +const int kTraditionalAltFourSelector = 8; + +const int kTraditionalAltOneSelector = 5; + +const int kTraditionalAltThreeSelector = 7; + +const int kTraditionalAltTwoSelector = 6; + +const int kTraditionalCharactersSelector = 0; + +const int kTraditionalNamesCharactersSelector = 14; + +const int kTranscodingCompositionOffSelector = 5; + +const int kTranscodingCompositionOnSelector = 4; + +const int kTransformDisabled = 1; + +const int kTransformLabel1 = 256; + +const int kTransformLabel2 = 512; + +const int kTransformLabel3 = 768; + +const int kTransformLabel4 = 1024; + +const int kTransformLabel5 = 1280; + +const int kTransformLabel6 = 1536; + +const int kTransformLabel7 = 1792; + +const int kTransformNone = 0; + +const int kTransformOffline = 2; + +const int kTransformOpen = 3; + +const int kTransformSelected = 16384; + +const int kTransformSelectedDisabled = 16385; + +const int kTransformSelectedOffline = 16386; + +const int kTransformSelectedOpen = 16387; + +const int kTranslationDataTranslation = 1; + +const int kTranslationFileTranslation = 2; + +const int kTransliterationType = 23; + +const int kTransparentEncodedPixel = 1; + +const int kTransparentEncoding = 0; + +const int kTransparentEncodingShift = 0; + +@Deprecated('Deprecated') +const int kTrapException = 2; + +@Deprecated('Deprecated') +const int kTrashFolderType = 1953657704; + +const int kTrashIcon = 1953657704; + +const int kTrashIconResource = -3993; + +const int kTrueTypeFlatFontIcon = 1936092788; + +const int kTrueTypeFontIcon = 1952868716; + +const int kTrueTypeMultiFlatFontIcon = 1953784678; + +@Deprecated('Deprecated') +const int kTwoByteCode = 2; + +const int kTwoWayEncryptPassword = 6; + +const int kTypeKCItemAttr = 1954115685; + +const int kTypographicExtrasType = 14; + +const int kUAZoomFocusTypeInsertionPoint = 1; + +const int kUAZoomFocusTypeOther = 0; + +const int kUCBidiCatArabicNumber = 6; + +const int kUCBidiCatBlockSeparator = 8; + +const int kUCBidiCatBoundaryNeutral = 19; + +const int kUCBidiCatCommonNumberSeparator = 7; + +const int kUCBidiCatEuroNumber = 3; + +const int kUCBidiCatEuroNumberSeparator = 4; + +const int kUCBidiCatEuroNumberTerminator = 5; + +const int kUCBidiCatFirstStrongIsolate = 22; + +const int kUCBidiCatLeftRight = 1; + +const int kUCBidiCatLeftRightEmbedding = 13; + +const int kUCBidiCatLeftRightIsolate = 20; + +const int kUCBidiCatLeftRightOverride = 15; + +const int kUCBidiCatNonSpacingMark = 18; + +const int kUCBidiCatNotApplicable = 0; + +const int kUCBidiCatOtherNeutral = 11; + +const int kUCBidiCatPopDirectionalFormat = 17; + +const int kUCBidiCatPopDirectionalIsolate = 23; + +const int kUCBidiCatRightLeft = 2; + +const int kUCBidiCatRightLeftArabic = 12; + +const int kUCBidiCatRightLeftEmbedding = 14; + +const int kUCBidiCatRightLeftIsolate = 21; + +const int kUCBidiCatRightLeftOverride = 16; + +const int kUCBidiCatSegmentSeparator = 9; + +const int kUCBidiCatWhitespace = 10; + +const int kUCCharPropTypeBidiCategory = 3; + +const int kUCCharPropTypeCombiningClass = 2; + +const int kUCCharPropTypeDecimalDigitValue = 4; + +const int kUCCharPropTypeGenlCategory = 1; + +const int kUCCollateCaseInsensitiveMask = 8; + +const int kUCCollateComposeInsensitiveMask = 2; + +const int kUCCollateDiacritInsensitiveMask = 16; + +const int kUCCollateDigitsAsNumberMask = 131072; + +const int kUCCollateDigitsOverrideMask = 65536; + +const int kUCCollatePunctuationSignificantMask = 32768; + +const int kUCCollateStandardOptions = 6; + +const int kUCCollateTypeHFSExtended = 1; + +const int kUCCollateTypeMask = -16777216; + +const int kUCCollateTypeShiftBits = 24; + +const int kUCCollateTypeSourceMask = 255; + +const int kUCCollateWidthInsensitiveMask = 4; + +const int kUCGenlCatLetterLowercase = 15; + +const int kUCGenlCatLetterModifier = 17; + +const int kUCGenlCatLetterOther = 18; + +const int kUCGenlCatLetterTitlecase = 16; + +const int kUCGenlCatLetterUppercase = 14; + +const int kUCGenlCatMarkEnclosing = 7; + +const int kUCGenlCatMarkNonSpacing = 5; + +const int kUCGenlCatMarkSpacingCombining = 6; + +const int kUCGenlCatNumberDecimalDigit = 8; + +const int kUCGenlCatNumberLetter = 9; + +const int kUCGenlCatNumberOther = 10; + +const int kUCGenlCatOtherControl = 1; + +const int kUCGenlCatOtherFormat = 2; + +const int kUCGenlCatOtherNotAssigned = 0; + +const int kUCGenlCatOtherPrivateUse = 4; + +const int kUCGenlCatOtherSurrogate = 3; + +const int kUCGenlCatPunctClose = 23; + +const int kUCGenlCatPunctConnector = 20; + +const int kUCGenlCatPunctDash = 21; + +const int kUCGenlCatPunctFinalQuote = 25; + +const int kUCGenlCatPunctInitialQuote = 24; + +const int kUCGenlCatPunctOpen = 22; + +const int kUCGenlCatPunctOther = 26; + +const int kUCGenlCatSeparatorLine = 12; + +const int kUCGenlCatSeparatorParagraph = 13; + +const int kUCGenlCatSeparatorSpace = 11; + +const int kUCGenlCatSymbolCurrency = 29; + +const int kUCGenlCatSymbolMath = 28; + +const int kUCGenlCatSymbolModifier = 30; + +const int kUCGenlCatSymbolOther = 31; + +const int kUCHighSurrogateRangeEnd = 56319; + +const int kUCHighSurrogateRangeStart = 55296; + +const int kUCKeyActionAutoKey = 2; + +const int kUCKeyActionDisplay = 3; + +const int kUCKeyActionDown = 0; + +const int kUCKeyActionUp = 1; + +const int kUCKeyLayoutFeatureInfoFormat = 8193; + +const int kUCKeyLayoutHeaderFormat = 4098; + +const int kUCKeyModifiersToTableNumFormat = 12289; + +const int kUCKeyOutputGetIndexMask = 16383; + +const int kUCKeyOutputSequenceIndexMask = 32768; + +const int kUCKeyOutputStateIndexMask = 16384; + +const int kUCKeyOutputTestForIndexMask = 49152; + +const int kUCKeySequenceDataIndexFormat = 28673; + +const int kUCKeyStateEntryRangeFormat = 2; + +const int kUCKeyStateEntryTerminalFormat = 1; + +const int kUCKeyStateRecordsIndexFormat = 20481; + +const int kUCKeyStateTerminatorsFormat = 24577; + +const int kUCKeyToCharTableIndexFormat = 16385; + +const int kUCKeyTranslateNoDeadKeysBit = 0; + +const int kUCKeyTranslateNoDeadKeysMask = 1; + +const int kUCLowSurrogateRangeEnd = 57343; + +const int kUCLowSurrogateRangeStart = 56320; + +const int kUCOutputBufferTooSmall = -25340; + +const int kUCTSDirectionNext = 0; + +const int kUCTSDirectionPrevious = 1; + +const int kUCTSNoKeysAddedToObjectErr = -25342; + +const int kUCTSOptionsDataIsOrderedMask = 2; + +const int kUCTSOptionsNoneMask = 0; + +const int kUCTSOptionsReleaseStringMask = 1; + +const int kUCTSSearchListErr = -25343; + +const int kUCTextBreakCharMask = 1; + +const int kUCTextBreakClusterMask = 4; + +const int kUCTextBreakGoBackwardsMask = 2; + +const int kUCTextBreakIterateMask = 4; + +const int kUCTextBreakLeadingEdgeMask = 1; + +const int kUCTextBreakLineMask = 64; + +const int kUCTextBreakLocatorMissingType = -25341; + +const int kUCTextBreakParagraphMask = 256; + +const int kUCTextBreakWordMask = 16; + +const int kUCTokenNotFound = -25346; + +const int kUCTokenizerIterationFinished = -25344; + +const int kUCTokenizerUnknownLang = -25345; + +const int kUCTypeSelectMaxListSize = -1; + +const int kURL68kNotSupportedError = -30788; + +const int kURLAccessNotAvailableError = -30787; + +const int kURLAuthenticationError = -30776; + +const int kURLDestinationExistsError = -30772; + +const int kURLExtensionFailureError = -30785; + +const int kURLFileEmptyError = -30783; + +const int kURLInvalidCallError = -30781; + +const int kURLInvalidConfigurationError = -30786; + +const int kURLInvalidURLError = -30773; + +const int kURLInvalidURLReferenceError = -30770; + +const int kURLProgressAlreadyDisplayedError = -30771; + +const int kURLPropertyBufferTooSmallError = -30779; + +const int kURLPropertyNotYetKnownError = -30777; + +const int kURLServerBusyError = -30775; + +const int kURLUnknownPropertyError = -30778; + +const int kURLUnsettablePropertyError = -30780; + +const int kURLUnsupportedSchemeError = -30774; + +const int kUSBAbortedError = -6982; + +const int kUSBAlreadyOpenErr = -6991; + +const int kUSBBadDispatchTable = -6950; + +const int kUSBBitstufErr = -6914; + +const int kUSBBufOvrRunErr = -6904; + +const int kUSBBufUnderRunErr = -6903; + +const int kUSBCRCErr = -6915; + +const int kUSBCompletionError = -6984; + +const int kUSBDataToggleErr = -6913; + +const int kUSBDeviceBusy = -6977; + +const int kUSBDeviceDisconnected = -6972; + +const int kUSBDeviceErr = -6989; + +const int kUSBDeviceNotSuspended = -6973; + +const int kUSBDevicePowerProblem = -6976; + +const int kUSBDeviceSuspended = -6974; + +const int kUSBEndpointStallErr = -6912; + +const int kUSBFlagsError = -6983; + +const int kUSBIncorrectTypeErr = -6995; + +const int kUSBInternalErr = -6999; + +const int kUSBInternalReserved1 = -6960; + +const int kUSBInternalReserved10 = -6951; + +const int kUSBInternalReserved2 = -6959; + +const int kUSBInternalReserved3 = -6958; + +const int kUSBInternalReserved4 = -6957; + +const int kUSBInternalReserved5 = -6956; + +const int kUSBInternalReserved6 = -6955; + +const int kUSBInternalReserved7 = -6954; + +const int kUSBInternalReserved8 = -6953; + +const int kUSBInternalReserved9 = -6952; + +const int kUSBInvalidBuffer = -6975; + +const int kUSBLinkErr = -6916; + +const int kUSBNoBandwidthError = -6981; + +const int kUSBNoDelay = 0; + +const int kUSBNoDeviceErr = -6990; + +const int kUSBNoErr = 0; + +const int kUSBNoTran = 0; + +const int kUSBNotFound = -6987; + +const int kUSBNotHandled = -6987; + +const int kUSBNotRespondingErr = -6911; + +const int kUSBNotSent1Err = -6902; + +const int kUSBNotSent2Err = -6901; + +const int kUSBOutOfMemoryErr = -6988; + +const int kUSBOverRunErr = -6908; + +const int kUSBPBLengthError = -6985; + +const int kUSBPBVersionError = -6986; + +const int kUSBPIDCheckErr = -6910; + +const int kUSBPending = 1; + +const int kUSBPipeIdleError = -6980; + +const int kUSBPipeStalledError = -6979; + +const int kUSBPortDisabled = -6969; + +const int kUSBQueueAborted = -6970; + +const int kUSBQueueFull = -6948; + +const int kUSBRes1Err = -6906; + +const int kUSBRes2Err = -6905; + +const int kUSBRqErr = -6994; + +const int kUSBTimedOut = -6971; + +const int kUSBTooManyPipesErr = -6996; + +const int kUSBTooManyTransactionsErr = -6992; + +const int kUSBUnderRunErr = -6907; + +const int kUSBUnknownDeviceErr = -6998; + +const int kUSBUnknownInterfaceErr = -6978; + +const int kUSBUnknownNotification = -6949; + +const int kUSBUnknownPipeErr = -6997; + +const int kUSBUnknownRequestErr = -6993; + +const int kUSBWrongPIDErr = -6909; + +@Deprecated('Deprecated') +const int kUTCDefaultOptions = 0; + +const int kUTCOverflowErr = -8851; + +const int kUTCUnderflowErr = -8850; + +const int kUYVY422PixelFormat = 1431918169; + +const int kUnconnectedSelector = 0; + +const int kUnicode16BitFormat = 0; + +const int kUnicode32BitFormat = 3; + +const int kUnicodeByteOrderMark = 65279; + +const int kUnicodeCanonicalCompVariant = 3; + +const int kUnicodeCanonicalDecompVariant = 2; + +const int kUnicodeCollationClass = 1969450860; + +const int kUnicodeDecompositionType = 27; + +const int kUnicodeDefaultDirection = 0; + +const int kUnicodeDefaultDirectionMask = 0; + +const int kUnicodeDirectionalityBits = 2; + +const int kUnicodeDirectionalityMask = 12; + +const int kUnicodeFallbackCustomFirst = 3; + +const int kUnicodeFallbackCustomOnly = 1; + +const int kUnicodeFallbackDefaultFirst = 2; + +const int kUnicodeFallbackDefaultOnly = 0; + +const int kUnicodeFallbackInterruptSafeMask = 4; + +const int kUnicodeFallbackSequencingBits = 0; + +const int kUnicodeFallbackSequencingMask = 3; + +const int kUnicodeForceASCIIRangeBit = 9; + +const int kUnicodeForceASCIIRangeMask = 512; + +const int kUnicodeHFSPlusCompVariant = 9; + +const int kUnicodeHFSPlusDecompVariant = 8; + +const int kUnicodeKeepInfoBit = 1; + +const int kUnicodeKeepInfoMask = 2; + +const int kUnicodeKeepSameEncodingBit = 8; + +const int kUnicodeKeepSameEncodingMask = 256; + +const int kUnicodeLeftToRight = 1; + +const int kUnicodeLeftToRightMask = 4; + +const int kUnicodeLooseMappingsBit = 5; + +const int kUnicodeLooseMappingsMask = 32; + +const int kUnicodeMapLineFeedToReturnBit = 12; + +const int kUnicodeMapLineFeedToReturnMask = 4096; + +const int kUnicodeMatchOtherBaseBit = 3; + +const int kUnicodeMatchOtherBaseMask = 8; + +const int kUnicodeMatchOtherFormatBit = 5; + +const int kUnicodeMatchOtherFormatMask = 32; + +const int kUnicodeMatchOtherVariantBit = 4; + +const int kUnicodeMatchOtherVariantMask = 16; + +const int kUnicodeMatchUnicodeBaseBit = 0; + +const int kUnicodeMatchUnicodeBaseMask = 1; + +const int kUnicodeMatchUnicodeFormatBit = 2; + +const int kUnicodeMatchUnicodeFormatMask = 4; + +const int kUnicodeMatchUnicodeVariantBit = 1; + +const int kUnicodeMatchUnicodeVariantMask = 2; + +const int kUnicodeMaxDecomposedVariant = 2; + +const int kUnicodeNoCompatibilityVariant = 1; + +const int kUnicodeNoComposedVariant = 3; + +const int kUnicodeNoCorporateVariant = 4; + +const int kUnicodeNoHalfwidthCharsBit = 10; + +const int kUnicodeNoHalfwidthCharsMask = 1024; + +const int kUnicodeNoSubset = 0; + +const int kUnicodeNormalizationFormC = 3; + +const int kUnicodeNormalizationFormD = 5; + +const int kUnicodeNotAChar = 65535; + +const int kUnicodeNotFromInputMethod = 1970170221; + +const int kUnicodeObjectReplacement = 65532; + +const int kUnicodeReplacementChar = 65533; + +const int kUnicodeRightToLeft = 2; + +const int kUnicodeRightToLeftMask = 8; + +const int kUnicodeSCSUFormat = 8; + +const int kUnicodeStringUnterminatedBit = 6; + +const int kUnicodeStringUnterminatedMask = 64; + +const int kUnicodeSwappedByteOrderMark = 65534; + +const int kUnicodeTextBreakClass = 1969386091; + +const int kUnicodeTextRunBit = 7; + +const int kUnicodeTextRunHeuristicsBit = 11; + +const int kUnicodeTextRunHeuristicsMask = 2048; + +const int kUnicodeTextRunMask = 128; + +const int kUnicodeUTF16BEFormat = 4; + +const int kUnicodeUTF16Format = 0; + +const int kUnicodeUTF16LEFormat = 5; + +const int kUnicodeUTF32BEFormat = 6; + +const int kUnicodeUTF32Format = 3; + +const int kUnicodeUTF32LEFormat = 7; + +const int kUnicodeUTF7Format = 1; + +const int kUnicodeUTF8Format = 2; + +const int kUnicodeUseExternalEncodingFormBit = 13; + +const int kUnicodeUseExternalEncodingFormMask = 8192; + +const int kUnicodeUseFallbacksBit = 0; + +const int kUnicodeUseFallbacksMask = 1; + +const int kUnicodeUseHFSPlusMapping = 4; + +const int kUnicodeUseLatestMapping = -1; + +const int kUnicodeVerticalFormBit = 4; + +const int kUnicodeVerticalFormMask = 16; + +@Deprecated('Deprecated') +const int kUnknownException = 0; + +const int kUnknownFSObjectIcon = 1970169459; + +const int kUnknownType = 1061109567; + +const int kUnlockKCEvent = 2; + +const int kUnlockKCEventMask = 4; + +const int kUnlockStateKCStatus = 1; + +const int kUnlockedIcon = 1970037611; + +@Deprecated('Deprecated') +const int kUnmappedMemoryException = 4; + +@Deprecated('Deprecated') +const int kUnresolvablePageFaultException = 7; + +const int kUnsupportedCardErr = -9098; + +const int kUnsupportedFunctionErr = -9072; + +const int kUnsupportedModeErr = -9073; + +const int kUnsupportedVsErr = -9090; + +const int kUnwrapKCItemAttr = 1970173810; + +const int kUpdateActiveInputArea = 1970300020; + +const int kUpdateKCEvent = 5; + +const int kUpdateKCEventMask = 32; + +const int kUpperAndLowerCaseSelector = 0; + +const int kUpperCaseNumbersSelector = 1; + +const int kUpperCasePetiteCapsSelector = 2; + +const int kUpperCaseSmallCapsSelector = 1; + +const int kUpperCaseType = 38; + +const int kUseAtoB = 1; + +const int kUseBtoA = 2; + +const int kUseBtoB = 3; + +@Deprecated('Deprecated') +const int kUseCurrentISA = 0; + +@Deprecated('Deprecated') +const int kUseNativeISA = 4; + +@Deprecated('Deprecated') +const int kUsePremadeThread = 2; + +const int kUseProfileIntent = -1; + +const int kUseWidePositioning = 256; + +@Deprecated('Deprecated') +const int kUserDomain = -32763; + +const int kUserFolderIcon = 1969646692; + +const int kUserIDiskIcon = 1969517419; + +const int kUserIcon = 1970496882; + +const int kUserPPDDomain = 5; + +@Deprecated('Deprecated') +const int kUserSpecificTmpFolderType = 1970564464; + +const int kUsersFolderIcon = 1970500292; + +@Deprecated('Deprecated') +const int kUsersFolderType = 1970500211; + +const int kUtilitiesFolderIcon = 1970563524; + +@Deprecated('Deprecated') +const int kUtilitiesFolderType = 1970563524; + +const int kVCBFlagsHFSPlusAPIsBit = 4; + +const int kVCBFlagsHFSPlusAPIsMask = 16; + +const int kVCBFlagsHardwareGoneBit = 5; + +const int kVCBFlagsHardwareGoneMask = 32; + +const int kVCBFlagsIdleFlushBit = 3; + +const int kVCBFlagsIdleFlushMask = 8; + +const int kVCBFlagsVolumeDirtyBit = 15; + +const int kVCBFlagsVolumeDirtyMask = 32768; + +@Deprecated('Deprecated') +const int kVLibTag2 = 1447848290; + +@Deprecated('Deprecated') +const int kVariableLengthArray = 1; + +const int kVerifyKCItemAttr = 1986359913; + +const int kVerticalConstraint = 1; + +const int kVerticalFractionsSelector = 1; + +const int kVerticalPositionType = 10; + +const int kVerticalSubstitutionType = 4; + +const int kVoicesFolderIcon = 1719037795; + +@Deprecated('Deprecated') +const int kVoicesFolderType = 1719037795; + +const int kVolumeKCItemAttr = 1986817381; + +@Deprecated('Deprecated') +const int kVolumeRootFolderType = 1919905652; + +@Deprecated('Deprecated') +const int kVolumeSettingsFolderType = 1987274340; + +const int kWakeToDoze = 19; + +@Deprecated('Deprecated') +const int kWhereToEmptyTrashFolderType = 1701671028; + +const int kWidePosOffsetBit = 8; + +const int kWidgetsFolderType = 2003068788; + +const int kWindowsLatin1PalmVariant = 1; + +const int kWindowsLatin1StandardVariant = 0; + +const int kWordFinalSwashesOffSelector = 3; + +const int kWordFinalSwashesOnSelector = 2; + +const int kWordInitialSwashesOffSelector = 1; + +const int kWordInitialSwashesOnSelector = 0; + +const int kWorkgroupFolderIcon = 2003201124; + +const int kWrPermKCStatus = 4; + +const int kWrapKCItemAttr = 2003984752; + +const int kWriteFailureErr = -9069; + +const int kWriteProtectedErr = -9075; + +@Deprecated('Deprecated') +const int kWriteReference = 0; + +@Deprecated('Deprecated') +const int kX86ISA = 2; + +@Deprecated('Deprecated') +const int kX86RTA = 32; + +@Deprecated('Deprecated') +const int kXLibTag1 = -263364253; + +@Deprecated('Deprecated') +const int kXLibVersion = 1; + +const int kYUV211PixelFormat = 1496461617; + +const int kYUV411PixelFormat = 1496592689; + +const int kYUVSPixelFormat = 2037741171; + +const int kYUVUPixelFormat = 2037741173; + +const int kYVU9PixelFormat = 1498830137; + +const int kYVYU422PixelFormat = 1498831189; + +const int kadministratorUser = 1; + +final class kauth_ace extends ffi.Struct { + external guid_t ace_applicable; + + @u_int32_t() + external int ace_flags; + + @kauth_ace_rights_t() + external int ace_rights; +} + +typedef kauth_ace_rights_t = u_int32_t; +typedef kauth_ace_t = ffi.Pointer; + +final class kauth_acl extends ffi.Struct { + @u_int32_t() + external int acl_entrycount; + + @u_int32_t() + external int acl_flags; + + @ffi.Array.multi([1]) + external ffi.Array acl_ace; +} + +typedef kauth_acl_t = ffi.Pointer; + +final class kauth_cache_sizes extends ffi.Struct { + @u_int32_t() + external int kcs_group_size; + + @u_int32_t() + external int kcs_id_size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int kcs_group_size, + required int kcs_id_size, + }) => $allocator() + ..ref.kcs_group_size = kcs_group_size + ..ref.kcs_id_size = kcs_id_size; +} + +final class kauth_filesec extends ffi.Struct { + @u_int32_t() + external int fsec_magic; + + external guid_t fsec_owner; + + external guid_t fsec_group; + + external kauth_acl fsec_acl; +} + +typedef kauth_filesec_t = ffi.Pointer; + +final class kauth_identity_extlookup extends ffi.Struct { + @u_int32_t() + external int el_seqno; + + @u_int32_t() + external int el_result; + + @u_int32_t() + external int el_flags; + + @__darwin_pid_t() + external int el_info_pid; + + @u_int64_t() + external int el_extend; + + @u_int32_t() + external int el_info_reserved_1; + + @uid_t() + external int el_uid; + + external guid_t el_uguid; + + @u_int32_t() + external int el_uguid_valid; + + external ntsid_t el_usid; + + @u_int32_t() + external int el_usid_valid; + + @gid_t() + external int el_gid; + + external guid_t el_gguid; + + @u_int32_t() + external int el_gguid_valid; + + external ntsid_t el_gsid; + + @u_int32_t() + external int el_gsid_valid; + + @u_int32_t() + external int el_member_valid; + + @u_int32_t() + external int el_sup_grp_cnt; + + @ffi.Array.multi([16]) + external ffi.Array el_sup_groups; +} + +typedef kcdata_object_t = mach_port_t; +typedef kern_return_t = ffi.Int; +typedef Dartkern_return_t = int; + +const int kernelAlreadyFreeErr = -2421; + +const int kernelAsyncReceiveLimitErr = -2414; + +const int kernelAsyncSendLimitErr = -2413; + +const int kernelAttributeErr = -2412; + +const int kernelCanceledErr = -2402; + +const int kernelDeletePermissionErr = -2410; + +const int kernelExceptionErr = -2418; + +const int kernelExecutePermissionErr = -2409; + +const int kernelExecutionLevelErr = -2411; + +const int kernelIDErr = -2419; + +const int kernelInUseErr = -2416; + +const int kernelIncompleteErr = -2401; + +const int kernelObjectExistsErr = -2406; + +const int kernelOptionsErr = -2403; + +const int kernelPrivilegeErr = -2404; + +const int kernelReadPermissionErr = -2408; + +const int kernelReturnValueErr = -2422; + +const int kernelTerminatedErr = -2417; + +const int kernelTimeoutErr = -2415; + +const int kernelUnrecoverableErr = -2499; + +const int kernelUnsupportedErr = -2405; + +const int kernelWritePermissionErr = -2407; + +final class kernel_resource_sizes extends ffi.Struct { + @natural_t() + external int task; + + @natural_t() + external int thread; + + @natural_t() + external int port; + + @natural_t() + external int memory_region; + + @natural_t() + external int memory_object; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int task, + required int thread, + required int port, + required int memory_region, + required int memory_object, + }) => $allocator() + ..ref.task = task + ..ref.thread = thread + ..ref.port = port + ..ref.memory_region = memory_region + ..ref.memory_object = memory_object; +} + +typedef kernel_resource_sizes_data_t = kernel_resource_sizes; +typedef kernel_resource_sizes_t = ffi.Pointer; + +const int keyAEAdjustMarksProc = 1633970797; + +const int keyAEAngle = 1801547367; + +const int keyAEArcAngle = 1885434467; + +const int keyAEAttaching = 1098146664; + +const int keyAEBaseAddr = 1650549860; + +const int keyAEBestType = 1885500276; + +const int keyAEBgndColor = 1801610092; + +const int keyAEBgndPattern = 1801613428; + +const int keyAEBounds = 1885498980; + +const int keyAEBufferSize = 1651861094; + +const int keyAECellList = 1801677940; + +const int keyAEClassID = 1668041028; + +const int keyAEClauseOffsets = 1668047221; + +const int keyAEColor = 1668246642; + +const int keyAEColorTable = 1668052066; + +const int keyAECompOperator = 1919249519; + +const int keyAECompareProc = 1668116594; + +const int keyAEContainer = 1718775661; + +const int keyAECountProc = 1668247156; + +const int keyAECurrentPoint = 1668312947; + +const int keyAECurveHeight = 1801676900; + +const int keyAECurveWidth = 1801680740; + +const int keyAEDashStyle = 1885631348; + +const int keyAEData = 1684108385; + +const int keyAEDefaultType = 1684366964; + +const int keyAEDefinitionRect = 1885631092; + +const int keyAEDescType = 1685288048; + +const int keyAEDesiredClass = 2002873972; + +const int keyAEDestination = 1684370292; + +const int keyAEDoAntiAlias = 1634628705; + +const int keyAEDoDithered = 1734633844; + +const int keyAEDoRotate = 1801745012; + +const int keyAEDoScale = 1802724193; + +const int keyAEDoTranslate = 1802793569; + +const int keyAEDragging = 1651470188; + +const int keyAEEditionFileLoc = 1701605219; + +const int keyAEElements = 1701604723; + +const int keyAEEndPoint = 1885695588; + +const int keyAEEventClass = 1702257516; + +const int keyAEEventID = 1702261865; + +const int keyAEFile = 1801873772; + +const int keyAEFileType = 1718383728; + +const int keyAEFillColor = 1718379372; + +const int keyAEFillPattern = 1718382708; + +const int keyAEFixLength = 1718188140; + +const int keyAEFlipHorizontal = 1801873519; + +const int keyAEFlipVertical = 1801877108; + +const int keyAEFont = 1718578804; + +const int keyAEFormula = 1885761394; + +const int keyAEGetErrDescProc = 1768842339; + +const int keyAEGraphicObjects = 1735352947; + +const int keyAEHiliteRange = 1752329831; + +const int keyAEID = 1229201440; + +const int keyAEImageQuality = 1735488865; + +const int keyAEIndex = 1802069112; + +const int keyAEInsertHere = 1768846184; + +const int keyAEKeyData = 1936026724; + +const int keyAEKeyForm = 1718579821; + +const int keyAEKeyForms = 1801812326; + +const int keyAEKeyword = 1803122532; + +const int keyAELaunchedAsLogInItem = 1818716532; + +const int keyAELaunchedAsServiceItem = 1937140084; + +const int keyAELeftSide = 1802265958; + +const int keyAELevel = 1818588780; + +const int keyAELineArrow = 1634890351; + +const int keyAELogicalOperator = 1819240291; + +const int keyAELogicalTerms = 1952805485; + +const int keyAEMarkProc = 1835102827; + +const int keyAEMarkTokenProc = 1835755876; + +const int keyAEMoveView = 1836480119; + +const int keyAEName = 1886282093; + +const int keyAENewElementLoc = 1886283116; + +const int keyAENextBody = 1853383268; + +const int keyAEObject = 1802461802; + +const int keyAEObject1 = 1868720689; + +const int keyAEObject2 = 1868720690; + +const int keyAEObjectClass = 1802462060; + +const int keyAEOffStyles = 1868985204; + +const int keyAEOffset = 1868985204; + +const int keyAEOnStyles = 1869509492; + +const int keyAEPMTable = 1802530164; + +const int keyAEPOSTHeaderData = 1885889892; + +const int keyAEParamFlags = 1886217831; + +const int keyAEParameters = 1886547315; + +const int keyAEPenColor = 1886413676; + +const int keyAEPenPattern = 1886416993; + +const int keyAEPenWidth = 1886418788; + +const int keyAEPinRange = 1886286439; + +const int keyAEPixMapMinus = 1802530157; + +const int keyAEPixelDepth = 1885630580; + +const int keyAEPoint = 1735421811; + +const int keyAEPointList = 1886678132; + +const int keyAEPointSize = 1886679930; + +const int keyAEPosition = 1802530675; + +const int keyAEPropData = 1886545012; + +const int keyAEPropFlags = 1886545511; + +const int keyAEPropID = 1886547824; + +const int keyAEProperties = 1903194735; + +const int keyAEProperty = 1802531440; + +const int keyAEProtection = 1886417519; + +const int keyAERangeStart = 1937006962; + +const int keyAERangeStop = 1937010544; + +const int keyAERecorderCount = 1919247218; + +const int keyAERegionClass = 1919381091; + +const int keyAERenderAs = 1802659182; + +const int keyAEReplyHeaderData = 1919444324; + +const int keyAERequestedType = 1920235888; + +const int keyAERestoreAppState = 1920169071; + +const int keyAEResult = 757935405; + +const int keyAEResultInfo = 1920166254; + +const int keyAERotPoint = 1802663024; + +const int keyAERotation = 1886547828; + +const int keyAERowList = 1802660979; + +const int keyAESaveOptions = 1935767151; + +const int keyAEScale = 1886610284; + +const int keyAEScriptTag = 1886610292; + +const int keyAESearchText = 1937012852; + +const int keyAEServerInstance = 1936881257; + +const int keyAEShowWhere = 1936224119; + +const int keyAEStartAngle = 1885433447; + +const int keyAEStartPoint = 1886614640; + +const int keyAEStyles = 1802728569; + +const int keyAESuiteID = 1937074548; + +const int keyAETSMDocumentRefcon = 1919247971; + +const int keyAETSMEventRecord = 1952806516; + +const int keyAETSMEventRef = 1952806514; + +const int keyAETSMGlyphInfoArray = 1952934241; + +const int keyAETSMScriptTag = 1935895655; + +const int keyAETSMTextFMFont = 1802795117; + +const int keyAETSMTextFont = 1802795110; + +const int keyAETSMTextPointSize = 1802793075; + +const int keyAETest = 1802793844; + +const int keyAEText = 1802795124; + +const int keyAETextColor = 1886681187; + +const int keyAETextFont = 1886681190; + +const int keyAETextLineAscent = 1802789235; + +const int keyAETextLineHeight = 1802792040; + +const int keyAETextPointSize = 1886679155; + +const int keyAETextServiceEncoding = 1953719662; + +const int keyAETextServiceMacEncoding = 1953326446; + +const int keyAETextStyles = 1954050932; + +const int keyAETheData = 1801740660; + +const int keyAETheText = 1953002616; + +const int keyAETransferMode = 1886418029; + +const int keyAETranslation = 1886679667; + +const int keyAETryAsStructGraf = 1953460071; + +const int keyAEUniformStyles = 1970500716; + +const int keyAEUpdateOn = 1886744676; + +const int keyAEUpdateRange = 1969516135; + +const int keyAEUserTerm = 1970565741; + +const int keyAEVersion = 1986359923; + +const int keyAEWhoseRangeStart = 2004055154; + +const int keyAEWhoseRangeStop = 2004055152; + +const int keyAEWindow = 2003723383; + +const int keyAEWritingCode = 2003985252; + +const int keyAEXMLReplyData = 2020762992; + +const int keyAEXMLRequestData = 2020762993; + +const int keyAcceptTimeoutAttr = 1633907821; + +const int keyActualSenderAuditToken = 1633902964; + +const int keyAdditionalHTTPHeaders = 1634231652; + +const int keyAddressAttr = 1633969266; + +const int keyAppleEventAttributesAttr = 1635021938; + +const int keyCloseAllWindows = 1667331872; + +const int keyDirectObject = 757935405; + +const int keyDisableAuthenticationAttr = 1635087464; + +const int keyDisposeTokenProc = 2020896619; + +const int keyDriveNumber = 1685222947; + +const int keyErrorCode = 1701999139; + +const int keyErrorNumber = 1701999214; + +const int keyErrorString = 1701999219; + +const int keyEventClassAttr = 1702257516; + +const int keyEventIDAttr = 1702259044; + +const int keyEventSourceAttr = 1702064739; + +const int keyEvtDev = 7; + +const int keyHighLevelClass = 1751346291; + +const int keyHighLevelID = 1751737376; + +const int keyICEditPreferenceDestination = 1684370292; + +const int keyInteractLevelAttr = 1768846437; + +const int keyKey = 1801812256; + +const int keyKeyCode = 1668244581; + +const int keyKeyboard = 1801812322; + +const int keyLocalWhere = 1819764850; + +const int keyMenuID = 1835623456; + +const int keyMenuItem = 1835627629; + +const int keyMiscellaneous = 1718448995; + +const int keyMissedKeywordAttr = 1835627379; + +const int keyModifiers = 1836016755; + +const int keyNewBounds = 1851944548; + +const int keyOptionalKeywordAttr = 1869640811; + +const int keyOriginalAddressAttr = 1718775661; + +const int keyOriginalBounds = 1868721764; + +const int keyPreDispatch = 1885888867; + +const int keyProcessSerialNumber = 1886613024; + +const int keyRPCMethodName = 1835365480; + +const int keyRPCMethodParam = 1885434477; + +const int keyRPCMethodParamOrder = 795832932; + +const int keyReplyPortAttr = 1919250544; + +const int keyReplyRequestedAttr = 1919250545; + +const int keyReturnIDAttr = 1920231780; + +const int keySOAPAction = 1935762292; + +const int keySOAPMethodNameSpace = 1836281955; + +const int keySOAPMethodNameSpaceURI = 1836281973; + +const int keySOAPSMDNamespace = 1936944755; + +const int keySOAPSMDNamespaceURI = 1936944757; + +const int keySOAPSMDType = 1936946288; + +const int keySOAPSchemaVersion = 1936941928; + +const int keySOAPStructureMetaData = 796093796; + +const int keySelectProc = 1936026728; + +const int keySelection = 1718838636; + +const int keySenderApplescriptEntitlementsAttr = 1701737580; + +const int keySenderApplicationIdentifierEntitlementAttr = 1634297185; + +const int keySenderApplicationSandboxed = 1936946018; + +const int keySenderAuditTokenAttr = 1953459054; + +const int keySenderEGIDAttr = 1936157028; + +const int keySenderEUIDAttr = 1936025956; + +const int keySenderGIDAttr = 1734960243; + +const int keySenderPIDAttr = 1936746852; + +const int keySenderUIDAttr = 1969841267; + +const int keyTimeoutAttr = 1953066351; + +const int keyTransactionIDAttr = 1953653102; + +const int keyUserNameAttr = 1970168173; + +const int keyUserPasswordAttr = 1885434739; + +const int keyWhen = 2003330414; + +const int keyWhere = 2003330418; + +const int keyWindow = 1802989156; + +const int keyXMLDebuggingAttr = 2019844711; + +typedef key_t = __int32_t; + +const int kfullPrivileges = 458759; + +@Deprecated('Deprecated') +const int kiMovieFolderType = 1768779638; + +@Deprecated('Deprecated') +const int kiMoviePlugInsFolderType = 1768779881; + +@Deprecated('Deprecated') +const int kiMovieSoundEffectsFolderType = 1768780645; + +const int kioACAccessBlankAccessBit = 28; + +const int kioACAccessBlankAccessMask = 268435456; + +const int kioACAccessEveryoneReadBit = 17; + +const int kioACAccessEveryoneReadMask = 131072; + +const int kioACAccessEveryoneSearchBit = 16; + +const int kioACAccessEveryoneSearchMask = 65536; + +const int kioACAccessEveryoneWriteBit = 18; + +const int kioACAccessEveryoneWriteMask = 262144; + +const int kioACAccessGroupReadBit = 9; + +const int kioACAccessGroupReadMask = 512; + +const int kioACAccessGroupSearchBit = 8; + +const int kioACAccessGroupSearchMask = 256; + +const int kioACAccessGroupWriteBit = 10; + +const int kioACAccessGroupWriteMask = 1024; + +const int kioACAccessOwnerBit = 31; + +const int kioACAccessOwnerMask = -2147483648; + +const int kioACAccessOwnerReadBit = 1; + +const int kioACAccessOwnerReadMask = 2; + +const int kioACAccessOwnerSearchBit = 0; + +const int kioACAccessOwnerSearchMask = 1; + +const int kioACAccessOwnerWriteBit = 2; + +const int kioACAccessOwnerWriteMask = 4; + +const int kioACAccessUserReadBit = 25; + +const int kioACAccessUserReadMask = 33554432; + +const int kioACAccessUserSearchBit = 24; + +const int kioACAccessUserSearchMask = 16777216; + +const int kioACAccessUserWriteBit = 26; + +const int kioACAccessUserWriteMask = 67108864; + +const int kioACUserNoMakeChangesBit = 2; + +const int kioACUserNoMakeChangesMask = 4; + +const int kioACUserNoSeeFilesBit = 1; + +const int kioACUserNoSeeFilesMask = 2; + +const int kioACUserNoSeeFolderBit = 0; + +const int kioACUserNoSeeFolderMask = 1; + +const int kioACUserNotOwnerBit = 7; + +const int kioACUserNotOwnerMask = 128; + +const int kioFCBFileLockedBit = 13; + +const int kioFCBFileLockedMask = 8192; + +const int kioFCBLargeFileBit = 11; + +const int kioFCBLargeFileMask = 2048; + +const int kioFCBModifiedBit = 15; + +const int kioFCBModifiedMask = 32768; + +const int kioFCBOwnClumpBit = 14; + +const int kioFCBOwnClumpMask = 16384; + +const int kioFCBResourceBit = 9; + +const int kioFCBResourceMask = 512; + +const int kioFCBSharedWriteBit = 12; + +const int kioFCBSharedWriteMask = 4096; + +const int kioFCBWriteBit = 8; + +const int kioFCBWriteLockedBit = 10; + +const int kioFCBWriteLockedMask = 1024; + +const int kioFCBWriteMask = 256; + +const int kioFlAttribCopyProtBit = 6; + +const int kioFlAttribCopyProtMask = 64; + +const int kioFlAttribDataOpenBit = 3; + +const int kioFlAttribDataOpenMask = 8; + +const int kioFlAttribDirBit = 4; + +const int kioFlAttribDirMask = 16; + +const int kioFlAttribFileOpenBit = 7; + +const int kioFlAttribFileOpenMask = 128; + +const int kioFlAttribInSharedBit = 2; + +const int kioFlAttribInSharedMask = 4; + +const int kioFlAttribLockedBit = 0; + +const int kioFlAttribLockedMask = 1; + +const int kioFlAttribMountedBit = 3; + +const int kioFlAttribMountedMask = 8; + +const int kioFlAttribResOpenBit = 2; + +const int kioFlAttribResOpenMask = 4; + +const int kioFlAttribSharePointBit = 5; + +const int kioFlAttribSharePointMask = 32; + +const int kioVAtrbDefaultVolumeBit = 5; + +const int kioVAtrbDefaultVolumeMask = 32; + +const int kioVAtrbFilesOpenBit = 6; + +const int kioVAtrbFilesOpenMask = 64; + +const int kioVAtrbHardwareLockedBit = 7; + +const int kioVAtrbHardwareLockedMask = 128; + +const int kioVAtrbSoftwareLockedBit = 15; + +const int kioVAtrbSoftwareLockedMask = 32768; + +typedef kmod_args_t = ffi.Pointer; +typedef kmod_control_flavor_t = ffi.Int; +typedef Dartkmod_control_flavor_t = int; + +@ffi.Packed(4) +final class kmod_info extends ffi.Struct { + external ffi.Pointer next; + + @ffi.Int32() + external int info_version; + + @ffi.Uint32() + external int id; + + @ffi.Array.multi([64]) + external ffi.Array name; + + @ffi.Array.multi([64]) + external ffi.Array version; + + @ffi.Int32() + external int reference_count; + + external ffi.Pointer reference_list; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_size_t() + external int hdr_size; + + external ffi.Pointer start; + + external ffi.Pointer stop; +} + +final class kmod_info_32_v1 extends ffi.Struct { + @ffi.Uint32() + external int next_addr; + + @ffi.Int32() + external int info_version; + + @ffi.Uint32() + external int id; + + @ffi.Array.multi([64]) + external ffi.Array name; + + @ffi.Array.multi([64]) + external ffi.Array version; + + @ffi.Int32() + external int reference_count; + + @ffi.Uint32() + external int reference_list_addr; + + @ffi.Uint32() + external int address; + + @ffi.Uint32() + external int size; + + @ffi.Uint32() + external int hdr_size; + + @ffi.Uint32() + external int start_addr; + + @ffi.Uint32() + external int stop_addr; +} + +typedef kmod_info_32_v1_t = kmod_info_32_v1; + +@ffi.Packed(4) +final class kmod_info_64_v1 extends ffi.Struct { + @ffi.Uint64() + external int next_addr; + + @ffi.Int32() + external int info_version; + + @ffi.Uint32() + external int id; + + @ffi.Array.multi([64]) + external ffi.Array name; + + @ffi.Array.multi([64]) + external ffi.Array version; + + @ffi.Int32() + external int reference_count; + + @ffi.Uint64() + external int reference_list_addr; + + @ffi.Uint64() + external int address; + + @ffi.Uint64() + external int size; + + @ffi.Uint64() + external int hdr_size; + + @ffi.Uint64() + external int start_addr; + + @ffi.Uint64() + external int stop_addr; +} + +typedef kmod_info_64_v1_t = kmod_info_64_v1; +typedef kmod_info_array_t = ffi.Pointer; +typedef kmod_info_t = kmod_info; + +@ffi.Packed(4) +final class kmod_reference extends ffi.Struct { + external ffi.Pointer next; + + external ffi.Pointer info; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer next, + required ffi.Pointer info, + }) => $allocator() + ..ref.next = next + ..ref.info = info; +} + +typedef kmod_reference_t = kmod_reference; +typedef kmod_start_func_t = + ffi.NativeFunction< + kern_return_t Function( + ffi.Pointer ki, + ffi.Pointer data, + ) + >; +typedef kmod_stop_func_t = + ffi.NativeFunction< + kern_return_t Function( + ffi.Pointer ki, + ffi.Pointer data, + ) + >; +typedef kmod_t = ffi.Int; +typedef Dartkmod_t = int; + +const int knoGroup = 0; + +const int knoUser = 0; + +const int kownerPrivileges = 7; + +final class kr_policy_list_item extends ffi.Opaque {} + +const int laDictionaryNotOpenedErr = -6992; + +const int laDictionaryTooManyErr = -6994; + +const int laDictionaryUnknownErr = -6993; + +const int laEngineNotFoundErr = -7000; + +const int laEnvironmentBusyErr = -6985; + +const int laEnvironmentExistErr = -6987; + +const int laEnvironmentNotFoundErr = -6986; + +const int laFailAnalysisErr = -6990; + +const int laInvalidPathErr = -6988; + +const int laNoMoreMorphemeErr = -6989; + +const int laPropertyErr = -6999; + +const int laPropertyIsReadOnlyErr = -6997; + +const int laPropertyNotFoundErr = -6998; + +const int laPropertyUnknownErr = -6996; + +const int laPropertyValueErr = -6995; + +const int laTextOverFlowErr = -6991; + +const int laTooSmallBufferErr = -6984; + +typedef labelstr_t = ffi.Pointer; +@Deprecated('Deprecated') +const int langAfricaans = 141; + +@Deprecated('Deprecated') +const int langAfrikaans = 141; + +@Deprecated('Deprecated') +const int langAlbanian = 36; + +@Deprecated('Deprecated') +const int langAmharic = 85; + +@Deprecated('Deprecated') +const int langArabic = 12; + +@Deprecated('Deprecated') +const int langArmenian = 51; + +@Deprecated('Deprecated') +const int langAssamese = 68; + +@Deprecated('Deprecated') +const int langAymara = 134; + +@Deprecated('Deprecated') +const int langAzerbaijanAr = 50; + +@Deprecated('Deprecated') +const int langAzerbaijanRoman = 150; + +@Deprecated('Deprecated') +const int langAzerbaijani = 49; + +@Deprecated('Deprecated') +const int langBasque = 129; + +@Deprecated('Deprecated') +const int langBelorussian = 46; + +@Deprecated('Deprecated') +const int langBengali = 67; + +@Deprecated('Deprecated') +const int langBreton = 142; + +@Deprecated('Deprecated') +const int langBulgarian = 44; + +@Deprecated('Deprecated') +const int langBurmese = 77; + +@Deprecated('Deprecated') +const int langByelorussian = 46; + +@Deprecated('Deprecated') +const int langCatalan = 130; + +@Deprecated('Deprecated') +const int langChewa = 92; + +@Deprecated('Deprecated') +const int langChinese = 19; + +@Deprecated('Deprecated') +const int langCroatian = 18; + +@Deprecated('Deprecated') +const int langCzech = 38; + +@Deprecated('Deprecated') +const int langDanish = 7; + +@Deprecated('Deprecated') +const int langDutch = 4; + +@Deprecated('Deprecated') +const int langDzongkha = 137; + +@Deprecated('Deprecated') +const int langEnglish = 0; + +@Deprecated('Deprecated') +const int langEsperanto = 94; + +@Deprecated('Deprecated') +const int langEstonian = 27; + +@Deprecated('Deprecated') +const int langFaeroese = 30; + +@Deprecated('Deprecated') +const int langFaroese = 30; + +@Deprecated('Deprecated') +const int langFarsi = 31; + +@Deprecated('Deprecated') +const int langFinnish = 13; + +@Deprecated('Deprecated') +const int langFlemish = 34; + +@Deprecated('Deprecated') +const int langFrench = 1; + +@Deprecated('Deprecated') +const int langGalician = 140; + +@Deprecated('Deprecated') +const int langGalla = 87; + +@Deprecated('Deprecated') +const int langGeorgian = 52; + +@Deprecated('Deprecated') +const int langGerman = 2; + +@Deprecated('Deprecated') +const int langGreek = 14; + +@Deprecated('Deprecated') +const int langGreekAncient = 148; + +@Deprecated('Deprecated') +const int langGreekPoly = 148; + +@Deprecated('Deprecated') +const int langGreenlandic = 149; + +@Deprecated('Deprecated') +const int langGuarani = 133; + +@Deprecated('Deprecated') +const int langGujarati = 69; + +@Deprecated('Deprecated') +const int langHebrew = 10; + +@Deprecated('Deprecated') +const int langHindi = 21; + +@Deprecated('Deprecated') +const int langHungarian = 26; + +@Deprecated('Deprecated') +const int langIcelandic = 15; + +@Deprecated('Deprecated') +const int langIndonesian = 81; + +@Deprecated('Deprecated') +const int langInuktitut = 143; + +@Deprecated('Deprecated') +const int langIrish = 35; + +@Deprecated('Deprecated') +const int langIrishGaelic = 35; + +@Deprecated('Deprecated') +const int langIrishGaelicScript = 146; + +@Deprecated('Deprecated') +const int langItalian = 3; + +@Deprecated('Deprecated') +const int langJapanese = 11; + +@Deprecated('Deprecated') +const int langJavaneseRom = 138; + +@Deprecated('Deprecated') +const int langKannada = 73; + +@Deprecated('Deprecated') +const int langKashmiri = 61; + +@Deprecated('Deprecated') +const int langKazakh = 48; + +@Deprecated('Deprecated') +const int langKhmer = 78; + +@Deprecated('Deprecated') +const int langKinyarwanda = 90; + +@Deprecated('Deprecated') +const int langKirghiz = 54; + +@Deprecated('Deprecated') +const int langKorean = 23; + +@Deprecated('Deprecated') +const int langKurdish = 60; + +@Deprecated('Deprecated') +const int langLao = 79; + +@Deprecated('Deprecated') +const int langLappish = 29; + +@Deprecated('Deprecated') +const int langLapponian = 29; + +@Deprecated('Deprecated') +const int langLatin = 131; + +@Deprecated('Deprecated') +const int langLatvian = 28; + +@Deprecated('Deprecated') +const int langLettish = 28; + +@Deprecated('Deprecated') +const int langLithuanian = 24; + +@Deprecated('Deprecated') +const int langMacedonian = 43; + +@Deprecated('Deprecated') +const int langMalagasy = 93; + +@Deprecated('Deprecated') +const int langMalayArabic = 84; + +@Deprecated('Deprecated') +const int langMalayRoman = 83; + +@Deprecated('Deprecated') +const int langMalayalam = 72; + +@Deprecated('Deprecated') +const int langMalta = 16; + +@Deprecated('Deprecated') +const int langMaltese = 16; + +@Deprecated('Deprecated') +const int langManxGaelic = 145; + +@Deprecated('Deprecated') +const int langMarathi = 66; + +@Deprecated('Deprecated') +const int langMoldavian = 53; + +@Deprecated('Deprecated') +const int langMongolian = 57; + +@Deprecated('Deprecated') +const int langMongolianCyr = 58; + +@Deprecated('Deprecated') +const int langNepali = 64; + +@Deprecated('Deprecated') +const int langNorwegian = 9; + +@Deprecated('Deprecated') +const int langNyanja = 92; + +@Deprecated('Deprecated') +const int langNynorsk = 151; + +@Deprecated('Deprecated') +const int langOriya = 71; + +@Deprecated('Deprecated') +const int langOromo = 87; + +@Deprecated('Deprecated') +const int langPashto = 59; + +@Deprecated('Deprecated') +const int langPersian = 31; + +@Deprecated('Deprecated') +const int langPolish = 25; + +@Deprecated('Deprecated') +const int langPortugese = 8; + +@Deprecated('Deprecated') +const int langPortuguese = 8; + +@Deprecated('Deprecated') +const int langPunjabi = 70; + +@Deprecated('Deprecated') +const int langQuechua = 132; + +@Deprecated('Deprecated') +const int langRomanian = 37; + +@Deprecated('Deprecated') +const int langRuanda = 90; + +@Deprecated('Deprecated') +const int langRundi = 91; + +@Deprecated('Deprecated') +const int langRussian = 32; + +@Deprecated('Deprecated') +const int langSaamisk = 29; + +@Deprecated('Deprecated') +const int langSami = 29; + +@Deprecated('Deprecated') +const int langSanskrit = 65; + +@Deprecated('Deprecated') +const int langScottishGaelic = 144; + +@Deprecated('Deprecated') +const int langSerbian = 42; + +@Deprecated('Deprecated') +const int langSimpChinese = 33; + +@Deprecated('Deprecated') +const int langSindhi = 62; + +@Deprecated('Deprecated') +const int langSinhalese = 76; + +@Deprecated('Deprecated') +const int langSlovak = 39; + +@Deprecated('Deprecated') +const int langSlovenian = 40; + +@Deprecated('Deprecated') +const int langSomali = 88; + +@Deprecated('Deprecated') +const int langSpanish = 6; + +@Deprecated('Deprecated') +const int langSundaneseRom = 139; + +@Deprecated('Deprecated') +const int langSwahili = 89; + +@Deprecated('Deprecated') +const int langSwedish = 5; + +@Deprecated('Deprecated') +const int langTagalog = 82; + +@Deprecated('Deprecated') +const int langTajiki = 55; + +@Deprecated('Deprecated') +const int langTamil = 74; + +@Deprecated('Deprecated') +const int langTatar = 135; + +@Deprecated('Deprecated') +const int langTelugu = 75; + +@Deprecated('Deprecated') +const int langThai = 22; + +@Deprecated('Deprecated') +const int langTibetan = 63; + +@Deprecated('Deprecated') +const int langTigrinya = 86; + +@Deprecated('Deprecated') +const int langTongan = 147; + +@Deprecated('Deprecated') +const int langTradChinese = 19; + +@Deprecated('Deprecated') +const int langTurkish = 17; + +@Deprecated('Deprecated') +const int langTurkmen = 56; + +@Deprecated('Deprecated') +const int langUighur = 136; + +@Deprecated('Deprecated') +const int langUkrainian = 45; + +@Deprecated('Deprecated') +const int langUnspecified = 32767; + +@Deprecated('Deprecated') +const int langUrdu = 20; + +@Deprecated('Deprecated') +const int langUzbek = 47; + +@Deprecated('Deprecated') +const int langVietnamese = 80; + +@Deprecated('Deprecated') +const int langWelsh = 128; + +@Deprecated('Deprecated') +const int langYiddish = 41; + +@Deprecated('Deprecated') +const int langYugoslavian = 18; + +const int lapProtErr = -94; + +const int large1BitMask = 1229147683; + +const int large4BitData = 1768123444; + +const int large8BitData = 1768123448; + +const int lastDskErr = -64; + +const int launchAllow24Bit = 256; + +const int launchContinue = 16384; + +const int launchDontSwitch = 512; + +const int launchInhibitDaemon = 128; + +const int launchNoFileFlags = 2048; + +const int launchUseMinimum = 1024; + +typedef launch_data_dict_iterator_t = + ffi.Pointer>; +typedef launch_data_dict_iterator_tFunction = + ffi.Void Function( + launch_data_t lval, + ffi.Pointer key, + ffi.Pointer ctx, + ); +typedef Dartlaunch_data_dict_iterator_tFunction = + void Function( + launch_data_t lval, + ffi.Pointer key, + ffi.Pointer ctx, + ); +typedef launch_data_t = ffi.Pointer<_launch_data>; + +enum launch_data_type_t { + LAUNCH_DATA_DICTIONARY(1), + LAUNCH_DATA_ARRAY(2), + LAUNCH_DATA_FD(3), + LAUNCH_DATA_INTEGER(4), + LAUNCH_DATA_REAL(5), + LAUNCH_DATA_BOOL(6), + LAUNCH_DATA_STRING(7), + LAUNCH_DATA_OPAQUE(8), + LAUNCH_DATA_ERRNO(9), + LAUNCH_DATA_MACHPORT(10); + + final int value; + const launch_data_type_t(this.value); + + static launch_data_type_t fromValue(int value) => switch (value) { + 1 => LAUNCH_DATA_DICTIONARY, + 2 => LAUNCH_DATA_ARRAY, + 3 => LAUNCH_DATA_FD, + 4 => LAUNCH_DATA_INTEGER, + 5 => LAUNCH_DATA_REAL, + 6 => LAUNCH_DATA_BOOL, + 7 => LAUNCH_DATA_STRING, + 8 => LAUNCH_DATA_OPAQUE, + 9 => LAUNCH_DATA_ERRNO, + 10 => LAUNCH_DATA_MACHPORT, + _ => throw ArgumentError('Unknown value for launch_data_type_t: $value'), + }; +} + +final class lconv extends ffi.Struct { + external ffi.Pointer decimal_point; + + external ffi.Pointer thousands_sep; + + external ffi.Pointer grouping; + + external ffi.Pointer int_curr_symbol; + + external ffi.Pointer currency_symbol; + + external ffi.Pointer mon_decimal_point; + + external ffi.Pointer mon_thousands_sep; + + external ffi.Pointer mon_grouping; + + external ffi.Pointer positive_sign; + + external ffi.Pointer negative_sign; + + @ffi.Char() + external int int_frac_digits; + + @ffi.Char() + external int frac_digits; + + @ffi.Char() + external int p_cs_precedes; + + @ffi.Char() + external int p_sep_by_space; + + @ffi.Char() + external int n_cs_precedes; + + @ffi.Char() + external int n_sep_by_space; + + @ffi.Char() + external int p_sign_posn; + + @ffi.Char() + external int n_sign_posn; + + @ffi.Char() + external int int_p_cs_precedes; + + @ffi.Char() + external int int_n_cs_precedes; + + @ffi.Char() + external int int_p_sep_by_space; + + @ffi.Char() + external int int_n_sep_by_space; + + @ffi.Char() + external int int_p_sign_posn; + + @ffi.Char() + external int int_n_sign_posn; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer decimal_point, + required ffi.Pointer thousands_sep, + required ffi.Pointer grouping, + required ffi.Pointer int_curr_symbol, + required ffi.Pointer currency_symbol, + required ffi.Pointer mon_decimal_point, + required ffi.Pointer mon_thousands_sep, + required ffi.Pointer mon_grouping, + required ffi.Pointer positive_sign, + required ffi.Pointer negative_sign, + required int int_frac_digits, + required int frac_digits, + required int p_cs_precedes, + required int p_sep_by_space, + required int n_cs_precedes, + required int n_sep_by_space, + required int p_sign_posn, + required int n_sign_posn, + required int int_p_cs_precedes, + required int int_n_cs_precedes, + required int int_p_sep_by_space, + required int int_n_sep_by_space, + required int int_p_sign_posn, + required int int_n_sign_posn, + }) => $allocator() + ..ref.decimal_point = decimal_point + ..ref.thousands_sep = thousands_sep + ..ref.grouping = grouping + ..ref.int_curr_symbol = int_curr_symbol + ..ref.currency_symbol = currency_symbol + ..ref.mon_decimal_point = mon_decimal_point + ..ref.mon_thousands_sep = mon_thousands_sep + ..ref.mon_grouping = mon_grouping + ..ref.positive_sign = positive_sign + ..ref.negative_sign = negative_sign + ..ref.int_frac_digits = int_frac_digits + ..ref.frac_digits = frac_digits + ..ref.p_cs_precedes = p_cs_precedes + ..ref.p_sep_by_space = p_sep_by_space + ..ref.n_cs_precedes = n_cs_precedes + ..ref.n_sep_by_space = n_sep_by_space + ..ref.p_sign_posn = p_sign_posn + ..ref.n_sign_posn = n_sign_posn + ..ref.int_p_cs_precedes = int_p_cs_precedes + ..ref.int_n_cs_precedes = int_n_cs_precedes + ..ref.int_p_sep_by_space = int_p_sep_by_space + ..ref.int_n_sep_by_space = int_n_sep_by_space + ..ref.int_p_sign_posn = int_p_sign_posn + ..ref.int_n_sign_posn = int_n_sign_posn; +} + +final class ldiv_t extends ffi.Struct { + @ffi.Long() + external int quot; + + @ffi.Long() + external int rem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int quot, + required int rem, + }) => $allocator() + ..ref.quot = quot + ..ref.rem = rem; +} + +typedef ledger_amount_t = ffi.Int64; +typedef Dartledger_amount_t = int; +typedef ledger_array_t = ffi.Pointer; +typedef ledger_item_t = natural_t; +typedef ledger_port_array_t = ledger_array_t; +typedef ledger_port_t = ledger_t; +typedef ledger_t = mach_port_t; + +const int leftOverChars = 2; + +@Deprecated('Deprecated') +const int leftSingGuillemet = 220; + +const int limitReachedErr = -30549; + +final class linger extends ffi.Struct { + @ffi.Int() + external int l_onoff; + + @ffi.Int() + external int l_linger; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int l_onoff, + required int l_linger, + }) => $allocator() + ..ref.l_onoff = l_onoff + ..ref.l_linger = l_linger; +} + +final class lldiv_t extends ffi.Struct { + @ffi.LongLong() + external int quot; + + @ffi.LongLong() + external int rem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int quot, + required int rem, + }) => $allocator() + ..ref.quot = quot + ..ref.rem = rem; +} + +const int localOnlyErr = -905; + +typedef locale_t = ffi.Pointer<_xlocale>; + +const int lockPortBitsBadPortErr = -8984; + +const int lockPortBitsBadSurfaceErr = -8980; + +const int lockPortBitsSurfaceLostErr = -8985; + +const int lockPortBitsWindowClippedErr = -8983; + +const int lockPortBitsWindowMovedErr = -8981; + +const int lockPortBitsWindowResizedErr = -8982; + +const int lockPortBitsWrongGDeviceErr = -8991; + +typedef lock_set_port_t = lock_set_t; +typedef lock_set_t = mach_port_t; + +final class lockgroup_info extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array lockgroup_name; + + @ffi.Uint64() + external int lockgroup_attr; + + @ffi.Uint64() + external int lock_spin_cnt; + + @ffi.Uint64() + external int lock_spin_util_cnt; + + @ffi.Uint64() + external int lock_spin_held_cnt; + + @ffi.Uint64() + external int lock_spin_miss_cnt; + + @ffi.Uint64() + external int lock_spin_held_max; + + @ffi.Uint64() + external int lock_spin_held_cum; + + @ffi.Uint64() + external int lock_mtx_cnt; + + @ffi.Uint64() + external int lock_mtx_util_cnt; + + @ffi.Uint64() + external int lock_mtx_held_cnt; + + @ffi.Uint64() + external int lock_mtx_miss_cnt; + + @ffi.Uint64() + external int lock_mtx_wait_cnt; + + @ffi.Uint64() + external int lock_mtx_held_max; + + @ffi.Uint64() + external int lock_mtx_held_cum; + + @ffi.Uint64() + external int lock_mtx_wait_max; + + @ffi.Uint64() + external int lock_mtx_wait_cum; + + @ffi.Uint64() + external int lock_rw_cnt; + + @ffi.Uint64() + external int lock_rw_util_cnt; + + @ffi.Uint64() + external int lock_rw_held_cnt; + + @ffi.Uint64() + external int lock_rw_miss_cnt; + + @ffi.Uint64() + external int lock_rw_wait_cnt; + + @ffi.Uint64() + external int lock_rw_held_max; + + @ffi.Uint64() + external int lock_rw_held_cum; + + @ffi.Uint64() + external int lock_rw_wait_max; + + @ffi.Uint64() + external int lock_rw_wait_cum; +} + +typedef lockgroup_info_array_t = ffi.Pointer; +typedef lockgroup_info_t = lockgroup_info; + +@ffi.Packed(4) +final class log2phys extends ffi.Struct { + @ffi.UnsignedInt() + external int l2p_flags; + + @off_t() + external int l2p_contigbytes; + + @off_t() + external int l2p_devoffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int l2p_flags, + required int l2p_contigbytes, + required int l2p_devoffset, + }) => $allocator() + ..ref.l2p_flags = l2p_flags + ..ref.l2p_contigbytes = l2p_contigbytes + ..ref.l2p_devoffset = l2p_devoffset; +} + +const int longDate = 1; + +const int longDateFound = 1; + +const int longDay = 0; + +const int longMonth = 2; + +const int longWeek = 1; + +const int longYear = 3; + +const int mBarNFnd = -126; + +const int mFulErr = -41; + +const int macDev = 8; + +final class mach_core_details extends ffi.Struct { + @ffi.Uint64() + external int gzip_offset; + + @ffi.Uint64() + external int gzip_length; + + @ffi.Array.multi([16]) + external ffi.Array core_name; +} + +final class mach_core_details_v2 extends ffi.Struct { + @ffi.Uint64() + external int flags; + + @ffi.Uint64() + external int offset; + + @ffi.Uint64() + external int length; + + @ffi.Array.multi([16]) + external ffi.Array core_name; +} + +final class mach_core_fileheader extends ffi.Struct { + @ffi.Uint64() + external int signature; + + @ffi.Uint64() + external int log_offset; + + @ffi.Uint64() + external int log_length; + + @ffi.Uint64() + external int num_files; + + @ffi.Array.multi([16]) + external ffi.Array files; +} + +final class mach_core_fileheader_base extends ffi.Struct { + @ffi.Uint64() + external int signature; + + @ffi.Uint32() + external int version; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int signature, + required int version, + }) => $allocator() + ..ref.signature = signature + ..ref.version = version; +} + +final class mach_core_fileheader_v2 extends ffi.Opaque {} + +final class mach_dead_name_notification_t extends ffi.Struct { + external mach_msg_header_t not_header; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int not_port; + + external mach_msg_format_0_trailer_t trailer; +} + +typedef mach_error_fn_t = + ffi.Pointer>; +typedef mach_error_fn_tFunction = mach_error_t Function(); +typedef Dartmach_error_fn_tFunction = Dartkern_return_t Function(); +typedef mach_error_t = kern_return_t; +typedef mach_eventlink_t = mach_port_t; +typedef mach_exception_code_t = mach_exception_data_type_t; +typedef mach_exception_data_t = ffi.Pointer; +typedef mach_exception_data_type_t = ffi.Int64; +typedef Dartmach_exception_data_type_t = int; +typedef mach_exception_subcode_t = mach_exception_data_type_t; + +final class mach_memory_info$1 extends ffi.Struct { + @ffi.Uint64() + external int flags; + + @ffi.Uint64() + external int site; + + @ffi.Uint64() + external int size; + + @ffi.Uint64() + external int free$1; + + @ffi.Uint64() + external int largest; + + @ffi.Uint64() + external int collectable_bytes; + + @ffi.Uint64() + external int mapped; + + @ffi.Uint64() + external int peak; + + @ffi.Uint16() + external int tag; + + @ffi.Uint16() + external int zone; + + @ffi.Array.multi([2]) + external ffi.Array _resvA; + + @ffi.Array.multi([3]) + external ffi.Array _resv; + + @ffi.Array.multi([80]) + external ffi.Array name; +} + +typedef mach_memory_info_array_t = ffi.Pointer; +typedef mach_memory_info_t = mach_memory_info$1; + +final class mach_msg_audit_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + @mach_port_seqno_t() + external int msgh_seqno; + + external security_token_t msgh_sender; + + external audit_token_t msgh_audit; +} + +final class mach_msg_base_t extends ffi.Struct { + external mach_msg_header_t header; + + external mach_msg_body_t body; +} + +typedef mach_msg_bits_t = ffi.UnsignedInt; +typedef Dartmach_msg_bits_t = int; + +final class mach_msg_body_t extends ffi.Struct { + @mach_msg_size_t() + external int msgh_descriptor_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_descriptor_count, + }) => + $allocator() + ..ref.msgh_descriptor_count = msgh_descriptor_count; +} + +@ffi.Packed(4) +final class mach_msg_context_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + @mach_port_seqno_t() + external int msgh_seqno; + + external security_token_t msgh_sender; + + external audit_token_t msgh_audit; + + @mach_port_context_t() + external int msgh_context; +} + +typedef mach_msg_copy_options_t = ffi.UnsignedInt; +typedef Dartmach_msg_copy_options_t = int; + +final class mach_msg_descriptor_t extends ffi.Opaque {} + +typedef mach_msg_descriptor_type_t = ffi.UnsignedInt; +typedef Dartmach_msg_descriptor_type_t = int; + +final class mach_msg_empty_rcv_t extends ffi.Struct { + external mach_msg_header_t header; + + external mach_msg_trailer_t trailer; +} + +final class mach_msg_empty_send_t extends ffi.Struct { + external mach_msg_header_t header; +} + +final class mach_msg_empty_t extends ffi.Union { + external mach_msg_empty_send_t send$1; + + external mach_msg_empty_rcv_t rcv; +} + +typedef mach_msg_filter_id = ffi.Int; +typedef Dartmach_msg_filter_id = int; +typedef mach_msg_format_0_trailer_t = mach_msg_security_trailer_t; +typedef mach_msg_guard_flags_t = ffi.UnsignedInt; +typedef Dartmach_msg_guard_flags_t = int; + +final class mach_msg_guarded_port_descriptor32_t extends ffi.Opaque {} + +final class mach_msg_guarded_port_descriptor64_t extends ffi.Opaque {} + +final class mach_msg_guarded_port_descriptor_t extends ffi.Opaque {} + +final class mach_msg_header_t extends ffi.Struct { + @mach_msg_bits_t() + external int msgh_bits; + + @mach_msg_size_t() + external int msgh_size; + + @mach_port_t() + external int msgh_remote_port; + + @mach_port_t() + external int msgh_local_port; + + @mach_port_name_t() + external int msgh_voucher_port; + + @mach_msg_id_t() + external int msgh_id; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_bits, + required int msgh_size, + required int msgh_remote_port, + required int msgh_local_port, + required int msgh_voucher_port, + required int msgh_id, + }) => $allocator() + ..ref.msgh_bits = msgh_bits + ..ref.msgh_size = msgh_size + ..ref.msgh_remote_port = msgh_remote_port + ..ref.msgh_local_port = msgh_local_port + ..ref.msgh_voucher_port = msgh_voucher_port + ..ref.msgh_id = msgh_id; +} + +typedef mach_msg_id_t = integer_t; + +@ffi.Packed(4) +final class mach_msg_mac_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + @mach_port_seqno_t() + external int msgh_seqno; + + external security_token_t msgh_sender; + + external audit_token_t msgh_audit; + + @mach_port_context_t() + external int msgh_context; + + @mach_msg_filter_id() + external int msgh_ad; + + external msg_labels_t msgh_labels; +} + +typedef mach_msg_max_trailer_t = mach_msg_mac_trailer_t; + +final class mach_msg_ool_descriptor32_t extends ffi.Opaque {} + +final class mach_msg_ool_descriptor64_t extends ffi.Opaque {} + +final class mach_msg_ool_descriptor_t extends ffi.Opaque {} + +final class mach_msg_ool_ports_descriptor32_t extends ffi.Opaque {} + +final class mach_msg_ool_ports_descriptor64_t extends ffi.Opaque {} + +final class mach_msg_ool_ports_descriptor_t extends ffi.Opaque {} + +typedef mach_msg_option_t = integer_t; +typedef mach_msg_options_t = integer_t; + +final class mach_msg_port_descriptor_t extends ffi.Opaque {} + +typedef mach_msg_priority_t = ffi.UnsignedInt; +typedef Dartmach_msg_priority_t = int; +typedef mach_msg_return_t = kern_return_t; + +final class mach_msg_security_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + @mach_port_seqno_t() + external int msgh_seqno; + + external security_token_t msgh_sender; +} + +final class mach_msg_seqno_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + @mach_port_seqno_t() + external int msgh_seqno; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_trailer_type, + required int msgh_trailer_size, + required int msgh_seqno, + }) => $allocator() + ..ref.msgh_trailer_type = msgh_trailer_type + ..ref.msgh_trailer_size = msgh_trailer_size + ..ref.msgh_seqno = msgh_seqno; +} + +typedef mach_msg_size_t = natural_t; +typedef mach_msg_timeout_t = natural_t; +typedef mach_msg_trailer_info_t = ffi.Pointer; +typedef mach_msg_trailer_size_t = ffi.UnsignedInt; +typedef Dartmach_msg_trailer_size_t = int; + +final class mach_msg_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_trailer_type, + required int msgh_trailer_size, + }) => $allocator() + ..ref.msgh_trailer_type = msgh_trailer_type + ..ref.msgh_trailer_size = msgh_trailer_size; +} + +typedef mach_msg_trailer_type_t = ffi.UnsignedInt; +typedef Dartmach_msg_trailer_type_t = int; + +final class mach_msg_type_descriptor_t extends ffi.Opaque {} + +typedef mach_msg_type_name_t = ffi.UnsignedInt; +typedef Dartmach_msg_type_name_t = int; +typedef mach_msg_type_number_t = natural_t; +typedef mach_msg_type_size_t = natural_t; + +final class mach_no_senders_notification_t extends ffi.Struct { + external mach_msg_header_t not_header; + + external NDR_record_t NDR; + + @mach_msg_type_number_t() + external int not_count; + + external mach_msg_format_0_trailer_t trailer; +} + +typedef mach_port_array_t = ffi.Pointer; +typedef mach_port_context_t = vm_offset_t; + +final class mach_port_deleted_notification_t extends ffi.Struct { + external mach_msg_header_t not_header; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int not_port; + + external mach_msg_format_0_trailer_t trailer; +} + +typedef mach_port_delta_t = integer_t; + +final class mach_port_destroyed_notification_t extends ffi.Opaque {} + +typedef mach_port_flavor_t = ffi.Int; +typedef Dartmach_port_flavor_t = int; + +enum mach_port_guard_exception_codes { + kGUARD_EXC_NONE(0), + kGUARD_EXC_DESTROY(1), + kGUARD_EXC_MOD_REFS(2), + kGUARD_EXC_INVALID_OPTIONS(3), + kGUARD_EXC_SET_CONTEXT(4), + kGUARD_EXC_THREAD_SET_STATE(5), + kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE(6), + kGUARD_EXC_SERVICE_PORT_VIOLATION_FATAL(7), + kGUARD_EXC_UNGUARDED(8), + kGUARD_EXC_KOBJECT_REPLY_PORT_SEMANTICS(9), + kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS(10), + kGUARD_EXC_INCORRECT_GUARD(16), + kGUARD_EXC_IMMOVABLE(32), + kGUARD_EXC_STRICT_REPLY(64), + kGUARD_EXC_INVALID_NOTIFICATION_REQ(65), + kGUARD_EXC_INVALID_MPO_ENTITLEMENT(66), + kGUARD_EXC_DESCRIPTOR_VIOLATION(67), + kGUARD_EXC_MSG_FILTERED(128), + kGUARD_EXC_INVALID_RIGHT(256), + kGUARD_EXC_INVALID_NAME(512), + kGUARD_EXC_INVALID_VALUE(1024), + kGUARD_EXC_INVALID_ARGUMENT(2048), + kGUARD_EXC_RIGHT_EXISTS(4096), + kGUARD_EXC_KERN_NO_SPACE(8192), + kGUARD_EXC_KERN_FAILURE(16384), + kGUARD_EXC_KERN_RESOURCE(32768), + kGUARD_EXC_SEND_INVALID_REPLY(65536), + kGUARD_EXC_SEND_INVALID_VOUCHER(131072), + kGUARD_EXC_SEND_INVALID_RIGHT(262144), + kGUARD_EXC_RCV_INVALID_NAME(524288), + kGUARD_EXC_RCV_GUARDED_DESC(1048576), + kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL(1048577), + kGUARD_EXC_PROVISIONAL_REPLY_PORT(1048578), + kGUARD_EXC_OOL_PORT_ARRAY_CREATION(1048579), + kGUARD_EXC_MOVE_PROVISIONAL_REPLY_PORT(1048580), + kGUARD_EXC_REPLY_PORT_SINGLE_SO_RIGHT(1048581), + kGUARD_EXC_MOD_REFS_NON_FATAL(2097152), + kGUARD_EXC_IMMOVABLE_NON_FATAL(4194304); + + final int value; + const mach_port_guard_exception_codes(this.value); + + static mach_port_guard_exception_codes fromValue(int value) => + switch (value) { + 0 => kGUARD_EXC_NONE, + 1 => kGUARD_EXC_DESTROY, + 2 => kGUARD_EXC_MOD_REFS, + 3 => kGUARD_EXC_INVALID_OPTIONS, + 4 => kGUARD_EXC_SET_CONTEXT, + 5 => kGUARD_EXC_THREAD_SET_STATE, + 6 => kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE, + 7 => kGUARD_EXC_SERVICE_PORT_VIOLATION_FATAL, + 8 => kGUARD_EXC_UNGUARDED, + 9 => kGUARD_EXC_KOBJECT_REPLY_PORT_SEMANTICS, + 10 => kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS, + 16 => kGUARD_EXC_INCORRECT_GUARD, + 32 => kGUARD_EXC_IMMOVABLE, + 64 => kGUARD_EXC_STRICT_REPLY, + 65 => kGUARD_EXC_INVALID_NOTIFICATION_REQ, + 66 => kGUARD_EXC_INVALID_MPO_ENTITLEMENT, + 67 => kGUARD_EXC_DESCRIPTOR_VIOLATION, + 128 => kGUARD_EXC_MSG_FILTERED, + 256 => kGUARD_EXC_INVALID_RIGHT, + 512 => kGUARD_EXC_INVALID_NAME, + 1024 => kGUARD_EXC_INVALID_VALUE, + 2048 => kGUARD_EXC_INVALID_ARGUMENT, + 4096 => kGUARD_EXC_RIGHT_EXISTS, + 8192 => kGUARD_EXC_KERN_NO_SPACE, + 16384 => kGUARD_EXC_KERN_FAILURE, + 32768 => kGUARD_EXC_KERN_RESOURCE, + 65536 => kGUARD_EXC_SEND_INVALID_REPLY, + 131072 => kGUARD_EXC_SEND_INVALID_VOUCHER, + 262144 => kGUARD_EXC_SEND_INVALID_RIGHT, + 524288 => kGUARD_EXC_RCV_INVALID_NAME, + 1048576 => kGUARD_EXC_RCV_GUARDED_DESC, + 1048577 => kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL, + 1048578 => kGUARD_EXC_PROVISIONAL_REPLY_PORT, + 1048579 => kGUARD_EXC_OOL_PORT_ARRAY_CREATION, + 1048580 => kGUARD_EXC_MOVE_PROVISIONAL_REPLY_PORT, + 1048581 => kGUARD_EXC_REPLY_PORT_SINGLE_SO_RIGHT, + 2097152 => kGUARD_EXC_MOD_REFS_NON_FATAL, + 4194304 => kGUARD_EXC_IMMOVABLE_NON_FATAL, + _ => throw ArgumentError( + 'Unknown value for mach_port_guard_exception_codes: $value', + ), + }; +} + +final class mach_port_guard_info extends ffi.Struct { + @ffi.Uint64() + external int mpgi_guard; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mpgi_guard, + }) => $allocator()..ref.mpgi_guard = mpgi_guard; +} + +typedef mach_port_guard_info_t = mach_port_guard_info; + +final class mach_port_info_ext extends ffi.Struct { + external mach_port_status_t mpie_status; + + @mach_port_msgcount_t() + external int mpie_boost_cnt; + + @ffi.Array.multi([6]) + external ffi.Array reserved; +} + +typedef mach_port_info_ext_t = mach_port_info_ext; +typedef mach_port_info_t = ffi.Pointer; + +final class mach_port_limits extends ffi.Struct { + @mach_port_msgcount_t() + external int mpl_qlimit; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mpl_qlimit, + }) => $allocator()..ref.mpl_qlimit = mpl_qlimit; +} + +typedef mach_port_limits_t = mach_port_limits; +typedef mach_port_mscount_t = natural_t; +typedef mach_port_msgcount_t = natural_t; +typedef mach_port_name_array_t = ffi.Pointer; +typedef mach_port_name_t = natural_t; + +final class mach_port_options extends ffi.Struct { + @ffi.Uint32() + external int flags; + + external mach_port_limits_t mpl; + + external UnnamedUnion$4 unnamed; +} + +typedef mach_port_options_ptr_t = ffi.Pointer; +typedef mach_port_options_t = mach_port_options; + +final class mach_port_qos extends ffi.Opaque {} + +typedef mach_port_qos_t = mach_port_qos; +typedef mach_port_right_t = natural_t; +typedef mach_port_rights_t = natural_t; +typedef mach_port_seqno_t = natural_t; +typedef mach_port_srights_t = ffi.UnsignedInt; +typedef Dartmach_port_srights_t = int; + +final class mach_port_status extends ffi.Struct { + @mach_port_rights_t() + external int mps_pset; + + @mach_port_seqno_t() + external int mps_seqno; + + @mach_port_mscount_t() + external int mps_mscount; + + @mach_port_msgcount_t() + external int mps_qlimit; + + @mach_port_msgcount_t() + external int mps_msgcount; + + @mach_port_rights_t() + external int mps_sorights; + + @boolean_t() + external int mps_srights; + + @boolean_t() + external int mps_pdrequest; + + @boolean_t() + external int mps_nsrequest; + + @natural_t() + external int mps_flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mps_pset, + required int mps_seqno, + required int mps_mscount, + required int mps_qlimit, + required int mps_msgcount, + required int mps_sorights, + required int mps_srights, + required int mps_pdrequest, + required int mps_nsrequest, + required int mps_flags, + }) => $allocator() + ..ref.mps_pset = mps_pset + ..ref.mps_seqno = mps_seqno + ..ref.mps_mscount = mps_mscount + ..ref.mps_qlimit = mps_qlimit + ..ref.mps_msgcount = mps_msgcount + ..ref.mps_sorights = mps_sorights + ..ref.mps_srights = mps_srights + ..ref.mps_pdrequest = mps_pdrequest + ..ref.mps_nsrequest = mps_nsrequest + ..ref.mps_flags = mps_flags; +} + +typedef mach_port_status_t = mach_port_status; +typedef mach_port_t = __darwin_mach_port_t; +typedef mach_port_type_array_t = ffi.Pointer; +typedef mach_port_type_t = natural_t; +typedef mach_port_urefs_t = natural_t; + +final class mach_send_once_notification_t extends ffi.Struct { + external mach_msg_header_t not_header; + + external mach_msg_format_0_trailer_t trailer; +} + +final class mach_send_possible_notification_t extends ffi.Struct { + external mach_msg_header_t not_header; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int not_port; + + external mach_msg_format_0_trailer_t trailer; +} + +final class mach_service_port_info extends ffi.Struct { + @ffi.Array.multi([255]) + external ffi.Array mspi_string_name; + + @ffi.Uint8() + external int mspi_domain_type; +} + +typedef mach_service_port_info_data_t = mach_service_port_info; +typedef mach_service_port_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class mach_task_basic_info extends ffi.Struct { + @mach_vm_size_t() + external int virtual_size; + + @mach_vm_size_t() + external int resident_size; + + @mach_vm_size_t() + external int resident_size_max; + + external time_value_t user_time; + + external time_value_t system_time; + + @policy_t() + external int policy; + + @integer_t() + external int suspend_count; +} + +typedef mach_task_basic_info_data_t = mach_task_basic_info; +typedef mach_task_basic_info_t = ffi.Pointer; +typedef mach_task_flavor_t = ffi.UnsignedInt; +typedef Dartmach_task_flavor_t = int; +typedef mach_thread_flavor_t = ffi.UnsignedInt; +typedef Dartmach_thread_flavor_t = int; + +final class mach_timespec extends ffi.Struct { + @ffi.UnsignedInt() + external int tv_sec; + + @clock_res_t() + external int tv_nsec; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tv_sec, + required int tv_nsec, + }) => $allocator() + ..ref.tv_sec = tv_sec + ..ref.tv_nsec = tv_nsec; +} + +typedef mach_timespec_t = mach_timespec; +typedef mach_vm_address_t = ffi.Uint64; +typedef Dartmach_vm_address_t = int; + +@ffi.Packed(4) +final class mach_vm_info_region extends ffi.Struct { + @mach_vm_offset_t() + external int vir_start; + + @mach_vm_offset_t() + external int vir_end; + + @mach_vm_offset_t() + external int vir_object; + + @memory_object_offset_t() + external int vir_offset; + + @boolean_t() + external int vir_needs_copy; + + @vm_prot_t() + external int vir_protection; + + @vm_prot_t() + external int vir_max_protection; + + @vm_inherit_t() + external int vir_inheritance; + + @natural_t() + external int vir_wired_count; + + @natural_t() + external int vir_user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int vir_start, + required int vir_end, + required int vir_object, + required int vir_offset, + required int vir_needs_copy, + required int vir_protection, + required int vir_max_protection, + required int vir_inheritance, + required int vir_wired_count, + required int vir_user_wired_count, + }) => $allocator() + ..ref.vir_start = vir_start + ..ref.vir_end = vir_end + ..ref.vir_object = vir_object + ..ref.vir_offset = vir_offset + ..ref.vir_needs_copy = vir_needs_copy + ..ref.vir_protection = vir_protection + ..ref.vir_max_protection = vir_max_protection + ..ref.vir_inheritance = vir_inheritance + ..ref.vir_wired_count = vir_wired_count + ..ref.vir_user_wired_count = vir_user_wired_count; +} + +typedef mach_vm_info_region_t = mach_vm_info_region; +typedef mach_vm_offset_list_t = ffi.Pointer; +typedef mach_vm_offset_t = ffi.Uint64; +typedef Dartmach_vm_offset_t = int; + +final class mach_vm_range extends ffi.Struct { + @mach_vm_offset_t() + external int min_address; + + @mach_vm_offset_t() + external int max_address; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int min_address, + required int max_address, + }) => $allocator() + ..ref.min_address = min_address + ..ref.max_address = max_address; +} + +sealed class mach_vm_range_flags_t { + static const MACH_VM_RANGE_NONE = 0; +} + +enum mach_vm_range_flavor_t { + MACH_VM_RANGE_FLAVOR_INVALID(0), + MACH_VM_RANGE_FLAVOR_V1(1); + + final int value; + const mach_vm_range_flavor_t(this.value); + + static mach_vm_range_flavor_t fromValue(int value) => switch (value) { + 0 => MACH_VM_RANGE_FLAVOR_INVALID, + 1 => MACH_VM_RANGE_FLAVOR_V1, + _ => throw ArgumentError( + 'Unknown value for mach_vm_range_flavor_t: $value', + ), + }; +} + +typedef mach_vm_range_recipe_t = mach_vm_range_recipe_v1_t; + +final class mach_vm_range_recipe_v1_t extends ffi.Opaque {} + +typedef mach_vm_range_recipes_raw_t = ffi.Pointer; +typedef mach_vm_range_t = ffi.Pointer; + +enum mach_vm_range_tag_t { + MACH_VM_RANGE_DEFAULT(0), + MACH_VM_RANGE_DATA(1), + MACH_VM_RANGE_FIXED(2); + + final int value; + const mach_vm_range_tag_t(this.value); + + static mach_vm_range_tag_t fromValue(int value) => switch (value) { + 0 => MACH_VM_RANGE_DEFAULT, + 1 => MACH_VM_RANGE_DATA, + 2 => MACH_VM_RANGE_FIXED, + _ => throw ArgumentError('Unknown value for mach_vm_range_tag_t: $value'), + }; +} + +@ffi.Packed(4) +final class mach_vm_read_entry extends ffi.Struct { + @mach_vm_address_t() + external int address; + + @mach_vm_size_t() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int address, + required int size, + }) => $allocator() + ..ref.address = address + ..ref.size = size; +} + +typedef mach_vm_size_t = ffi.Uint64; +typedef Dartmach_vm_size_t = int; +typedef mach_voucher_attr_command_t = ffi.Uint32; +typedef Dartmach_voucher_attr_command_t = int; +typedef mach_voucher_attr_content_size_t = ffi.Uint32; +typedef Dartmach_voucher_attr_content_size_t = int; +typedef mach_voucher_attr_content_t = ffi.Pointer; +typedef mach_voucher_attr_control_flags_t = ffi.Uint32; +typedef Dartmach_voucher_attr_control_flags_t = int; +typedef mach_voucher_attr_control_t = mach_port_t; +typedef mach_voucher_attr_importance_refs = ffi.Uint32; +typedef Dartmach_voucher_attr_importance_refs = int; +typedef mach_voucher_attr_key_array_t = ffi.Pointer; +typedef mach_voucher_attr_key_t = ffi.Uint32; +typedef Dartmach_voucher_attr_key_t = int; +typedef mach_voucher_attr_manager_t = mach_port_t; +typedef mach_voucher_attr_raw_recipe_array_size_t = mach_msg_type_number_t; +typedef mach_voucher_attr_raw_recipe_array_t = mach_voucher_attr_raw_recipe_t; +typedef mach_voucher_attr_raw_recipe_size_t = mach_msg_type_number_t; +typedef mach_voucher_attr_raw_recipe_t = ffi.Pointer; +typedef mach_voucher_attr_recipe_command_array_t = + ffi.Pointer; +typedef mach_voucher_attr_recipe_command_t = ffi.Uint32; +typedef Dartmach_voucher_attr_recipe_command_t = int; + +final class mach_voucher_attr_recipe_data extends ffi.Opaque {} + +typedef mach_voucher_attr_recipe_data_t = mach_voucher_attr_recipe_data; +typedef mach_voucher_attr_recipe_size_t = mach_msg_type_number_t; +typedef mach_voucher_attr_recipe_t = + ffi.Pointer; +typedef mach_voucher_attr_value_flags_t = ffi.Uint32; +typedef Dartmach_voucher_attr_value_flags_t = int; +typedef mach_voucher_attr_value_handle_array_size_t = mach_msg_type_number_t; +typedef mach_voucher_attr_value_handle_array_t = + ffi.Pointer; +typedef mach_voucher_attr_value_handle_t = ffi.Uint64; +typedef Dartmach_voucher_attr_value_handle_t = int; +typedef mach_voucher_attr_value_reference_t = ffi.Uint32; +typedef Dartmach_voucher_attr_value_reference_t = int; +typedef mach_voucher_name_array_t = ffi.Pointer; +typedef mach_voucher_name_t = mach_port_name_t; +typedef mach_voucher_selector_t = ffi.Uint32; +typedef Dartmach_voucher_selector_t = int; +typedef mach_voucher_t = mach_port_t; +typedef mach_zone_info_array_t = ffi.Pointer; + +final class mach_zone_info_data extends ffi.Struct { + @ffi.Uint64() + external int mzi_count; + + @ffi.Uint64() + external int mzi_cur_size; + + @ffi.Uint64() + external int mzi_max_size; + + @ffi.Uint64() + external int mzi_elem_size; + + @ffi.Uint64() + external int mzi_alloc_size; + + @ffi.Uint64() + external int mzi_sum_size; + + @ffi.Uint64() + external int mzi_exhaustible; + + @ffi.Uint64() + external int mzi_collectable; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mzi_count, + required int mzi_cur_size, + required int mzi_max_size, + required int mzi_elem_size, + required int mzi_alloc_size, + required int mzi_sum_size, + required int mzi_exhaustible, + required int mzi_collectable, + }) => $allocator() + ..ref.mzi_count = mzi_count + ..ref.mzi_cur_size = mzi_cur_size + ..ref.mzi_max_size = mzi_max_size + ..ref.mzi_elem_size = mzi_elem_size + ..ref.mzi_alloc_size = mzi_alloc_size + ..ref.mzi_sum_size = mzi_sum_size + ..ref.mzi_exhaustible = mzi_exhaustible + ..ref.mzi_collectable = mzi_collectable; +} + +typedef mach_zone_info_t = mach_zone_info_data; + +final class mach_zone_name extends ffi.Struct { + @ffi.Array.multi([80]) + external ffi.Array mzn_name; +} + +typedef mach_zone_name_array_t = ffi.Pointer; +typedef mach_zone_name_t = mach_zone_name; +@Deprecated('Deprecated') +const int macron = 248; + +typedef malloc_type_id_t = ffi.UnsignedLongLong; +typedef Dartmalloc_type_id_t = int; +typedef malloc_zone_t = _malloc_zone_t; +@Deprecated('Deprecated') +const int mapChanged = 32; + +@Deprecated('Deprecated') +const int mapChangedBit = 5; + +@Deprecated('Deprecated') +const int mapCompact = 64; + +@Deprecated('Deprecated') +const int mapCompactBit = 6; + +const int mapReadErr = -199; + +@Deprecated('Deprecated') +const int mapReadOnly = 128; + +@Deprecated('Deprecated') +const int mapReadOnlyBit = 7; + +const int matrixErr = -2203; + +@Deprecated('Deprecated') +const int maxCountry = 108; + +const int maxDateField = 10; + +const int maxSizeToGrowTooSmall = -2027; + +typedef mcontext_t = ffi.Pointer<__darwin_mcontext64>; + +@Deprecated('Deprecated') +final class mds_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_HANDLE MdsHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ffi.Pointer OpenParameters, + ffi.Pointer hMds, + ) + > + > + DbOpen; + + external ffi.Pointer< + ffi.NativeFunction + > + DbClose; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_HANDLE MdsHandle, + ffi.Pointer NameList, + ) + > + > + GetDbNames; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer> DbName, + ) + > + > + GetDbNameFromHandle; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(MDS_HANDLE MdsHandle, CSSM_NAME_LIST_PTR NameList) + > + > + FreeNameList; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RecordType, + ffi.Pointer Attributes, + ffi.Pointer Data, + ffi.Pointer UniqueId, + ) + > + > + DataInsert; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer UniqueRecordIdentifier, + ) + > + > + DataDelete; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RecordType, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, + ffi.Pointer AttributesToBeModified, + ffi.Pointer DataToBeModified, + CSSM_DB_MODIFY_MODE ModifyMode, + ) + > + > + DataModify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer Query, + CSSM_HANDLE_PTR ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetFirst; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_HANDLE ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetNext; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(MDS_DB_HANDLE MdsDbHandle, CSSM_HANDLE ResultsHandle) + > + > + DataAbortQuery; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer UniqueRecord, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ) + > + > + DataGetFromUniqueRecordId; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, + ) + > + > + FreeUniqueRecord; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RelationID, + ffi.Pointer RelationName, + uint32 NumberOfAttributes, + ffi.Pointer pAttributeInfo, + uint32 NumberOfIndexes, + ffi.Pointer pIndexInfo, + ) + > + > + CreateRelation; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RelationID, + ) + > + > + DestroyRelation; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_HANDLE MdsHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ffi.Pointer OpenParameters, + ffi.Pointer hMds, + ) + > + > + DbOpen, + required ffi.Pointer< + ffi.NativeFunction + > + DbClose, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_HANDLE MdsHandle, + ffi.Pointer NameList, + ) + > + > + GetDbNames, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer> DbName, + ) + > + > + GetDbNameFromHandle, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(MDS_HANDLE MdsHandle, CSSM_NAME_LIST_PTR NameList) + > + > + FreeNameList, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RecordType, + ffi.Pointer Attributes, + ffi.Pointer Data, + ffi.Pointer UniqueId, + ) + > + > + DataInsert, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer UniqueRecordIdentifier, + ) + > + > + DataDelete, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RecordType, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, + ffi.Pointer AttributesToBeModified, + ffi.Pointer DataToBeModified, + CSSM_DB_MODIFY_MODE ModifyMode, + ) + > + > + DataModify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer Query, + CSSM_HANDLE_PTR ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetFirst, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_HANDLE ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetNext, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_HANDLE ResultsHandle, + ) + > + > + DataAbortQuery, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer UniqueRecord, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ) + > + > + DataGetFromUniqueRecordId, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, + ) + > + > + FreeUniqueRecord, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RelationID, + ffi.Pointer RelationName, + uint32 NumberOfAttributes, + ffi.Pointer pAttributeInfo, + uint32 NumberOfIndexes, + ffi.Pointer pIndexInfo, + ) + > + > + CreateRelation, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RelationID, + ) + > + > + DestroyRelation, + }) => $allocator() + ..ref.DbOpen = DbOpen + ..ref.DbClose = DbClose + ..ref.GetDbNames = GetDbNames + ..ref.GetDbNameFromHandle = GetDbNameFromHandle + ..ref.FreeNameList = FreeNameList + ..ref.DataInsert = DataInsert + ..ref.DataDelete = DataDelete + ..ref.DataModify = DataModify + ..ref.DataGetFirst = DataGetFirst + ..ref.DataGetNext = DataGetNext + ..ref.DataAbortQuery = DataAbortQuery + ..ref.DataGetFromUniqueRecordId = DataGetFromUniqueRecordId + ..ref.FreeUniqueRecord = FreeUniqueRecord + ..ref.CreateRelation = CreateRelation + ..ref.DestroyRelation = DestroyRelation; +} + +const int mdy = 0; + +const int mediaTypesDontMatch = -2018; + +const int memAZErr = -113; + +const int memAdrErr = -110; + +const int memBCErr = -115; + +const int memFragErr = -601; + +const int memFullErr = -108; + +const int memLockedErr = -117; + +const int memPCErr = -114; + +const int memPurErr = -112; + +const int memROZErr = -99; + +const int memROZError = -99; + +const int memROZWarn = -99; + +const int memSCErr = -116; + +const int memWZErr = -111; + +typedef mem_entry_name_port_t = mach_port_t; +typedef memory_object_array_t = ffi.Pointer; + +final class memory_object_attr_info extends ffi.Struct { + @memory_object_copy_strategy_t() + external int copy_strategy; + + @memory_object_cluster_size_t() + external int cluster_size; + + @boolean_t() + external int may_cache_object; + + @boolean_t() + external int temporary; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int copy_strategy, + required int cluster_size, + required int may_cache_object, + required int temporary, + }) => $allocator() + ..ref.copy_strategy = copy_strategy + ..ref.cluster_size = cluster_size + ..ref.may_cache_object = may_cache_object + ..ref.temporary = temporary; +} + +typedef memory_object_attr_info_data_t = memory_object_attr_info; +typedef memory_object_attr_info_t = ffi.Pointer; + +final class memory_object_behave_info extends ffi.Struct { + @memory_object_copy_strategy_t() + external int copy_strategy; + + @boolean_t() + external int temporary; + + @boolean_t() + external int invalidate; + + @boolean_t() + external int silent_overwrite; + + @boolean_t() + external int advisory_pageout; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int copy_strategy, + required int temporary, + required int invalidate, + required int silent_overwrite, + required int advisory_pageout, + }) => $allocator() + ..ref.copy_strategy = copy_strategy + ..ref.temporary = temporary + ..ref.invalidate = invalidate + ..ref.silent_overwrite = silent_overwrite + ..ref.advisory_pageout = advisory_pageout; +} + +typedef memory_object_behave_info_data_t = memory_object_behave_info; +typedef memory_object_behave_info_t = ffi.Pointer; +typedef memory_object_cluster_size_t = natural_t; +typedef memory_object_control_t = mach_port_t; +typedef memory_object_copy_strategy_t = ffi.Int; +typedef Dartmemory_object_copy_strategy_t = int; +typedef memory_object_default_t = mach_port_t; +typedef memory_object_fault_info_t = ffi.Pointer; +typedef memory_object_flavor_t = ffi.Int; +typedef Dartmemory_object_flavor_t = int; +typedef memory_object_info_t = ffi.Pointer; +typedef memory_object_name_t = mach_port_t; +typedef memory_object_offset_t = ffi.UnsignedLongLong; +typedef Dartmemory_object_offset_t = int; + +final class memory_object_perf_info extends ffi.Struct { + @memory_object_cluster_size_t() + external int cluster_size; + + @boolean_t() + external int may_cache; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cluster_size, + required int may_cache, + }) => $allocator() + ..ref.cluster_size = cluster_size + ..ref.may_cache = may_cache; +} + +typedef memory_object_perf_info_data_t = memory_object_perf_info; +typedef memory_object_perf_info_t = ffi.Pointer; +typedef memory_object_return_t = ffi.Int; +typedef Dartmemory_object_return_t = int; +typedef memory_object_size_t = ffi.UnsignedLongLong; +typedef Dartmemory_object_size_t = int; +typedef memory_object_t = mach_port_t; + +const int menuInvalidErr = -5623; + +const int menuItemNotFoundErr = -5622; + +const int menuNotFoundErr = -5620; + +const int menuPrgErr = 84; + +const int menuPropertyInvalid = -5603; + +const int menuPropertyInvalidErr = -5603; + +const int menuPropertyNotFoundErr = -5604; + +const int menuUsesSystemDefErr = -5621; + +const int midiDupIDErr = -260; + +const int midiInvalidCmdErr = -261; + +const int midiManagerAbsentOSErr = -2081; + +const int midiNameLenErr = -259; + +const int midiNoClientErr = -250; + +const int midiNoConErr = -257; + +const int midiNoPortErr = -251; + +const int midiTooManyConsErr = -253; + +const int midiTooManyPortsErr = -252; + +const int midiVConnectErr = -254; + +const int midiVConnectMade = -255; + +const int midiVConnectRmvd = -256; + +const int midiWriteErr = -258; + +typedef mig_impl_routine_t = + ffi.Pointer>; +typedef mig_impl_routine_tFunction = kern_return_t Function(); +typedef Dartmig_impl_routine_tFunction = Dartkern_return_t Function(); + +final class mig_reply_error_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +typedef mig_routine_arg_descriptor_t = ffi.Pointer; +typedef mig_routine_descriptor = routine_descriptor; +typedef mig_routine_descriptor_t = ffi.Pointer; +typedef mig_routine_t = mig_stub_routine_t; +typedef mig_server_routine_t = + ffi.Pointer>; +typedef mig_server_routine_tFunction = + mig_routine_t Function(ffi.Pointer InHeadP); +typedef mig_stub_routine_t = + ffi.Pointer>; +typedef mig_stub_routine_tFunction = + ffi.Void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ); +typedef Dartmig_stub_routine_tFunction = + void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ); + +final class mig_subsystem extends ffi.Struct { + external mig_server_routine_t server; + + @mach_msg_id_t() + external int start; + + @mach_msg_id_t() + external int end; + + @mach_msg_size_t() + external int maxsize; + + @vm_address_t() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array routine; +} + +typedef mig_subsystem_t = ffi.Pointer; + +final class mig_symtab extends ffi.Struct { + external ffi.Pointer ms_routine_name; + + @ffi.Int() + external int ms_routine_number; + + external ffi.Pointer> ms_routine; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer ms_routine_name, + required int ms_routine_number, + required ffi.Pointer> ms_routine, + }) => $allocator() + ..ref.ms_routine_name = ms_routine_name + ..ref.ms_routine_number = ms_routine_number + ..ref.ms_routine = ms_routine; +} + +typedef mig_symtab_t = mig_symtab; +@Deprecated('Deprecated') +const int minCountry = 0; + +const int minLeadingZ = 64; + +const int mini1BitMask = 1768123683; + +const int mini4BitData = 1768123700; + +const int mini8BitData = 1768123704; + +const int minuteField = 5; + +const int minuteMask = 32; + +const int missingRequiredParameterErr = -2063; + +const int mmInternalError = -2526; + +const int mntLdingZ = 64; + +const int mode32BitCompatible = 128; + +const int modeCanBackground = 4096; + +const int modeControlPanel = 524288; + +const int modeDeskAccessory = 131072; + +const int modeDisplayManagerAware = 4; + +const int modeDoesActivateOnFGSwitch = 2048; + +const int modeGetAppDiedMsg = 256; + +const int modeGetFrontClicks = 512; + +const int modeHighLevelEventAware = 64; + +const int modeLaunchDontSwitch = 262144; + +const int modeLiteral = 1280594508; + +const int modeLocalAndRemoteHLEvents = 32; + +const int modeMultiLaunch = 65536; + +const int modeNeedSuspendResume = 16384; + +const int modeNormal = 1313821261; + +const int modeOnlyBackground = 1024; + +const int modePhonemes = 1346916174; + +const int modeReserved = 16777216; + +const int modeStationeryAware = 16; + +const int modeText = 1413830740; + +const int modeTune = 1414876741; + +const int modeUseTextEditServices = 8; + +typedef mode_t = __darwin_mode_t; + +const int monthField = 2; + +const int monthMask = 4; + +const int mountedFolderIconResource = -3977; + +const int movieTextNotFoundErr = -2062; + +const int movieToolboxUninitialized = -2020; + +@Deprecated('Deprecated') +const int mpWorkFlagCopyWorkBlock = 4; + +@Deprecated('Deprecated') +const int mpWorkFlagDoCompletion = 2; + +@Deprecated('Deprecated') +const int mpWorkFlagDoWork = 1; + +@Deprecated('Deprecated') +const int mpWorkFlagDontBlock = 8; + +@Deprecated('Deprecated') +const int mpWorkFlagGetIsRunning = 64; + +@Deprecated('Deprecated') +const int mpWorkFlagGetProcessorCount = 16; + +sealed class mpo_flags_t { + static const MPO_PORT = 0; + static const MPO_SERVICE_PORT = 1024; + static const MPO_CONNECTION_PORT = 2048; + static const MPO_REPLY_PORT = 4096; + static const MPO_PROVISIONAL_REPLY_PORT = 16384; + static const MPO_EXCEPTION_PORT = 32768; + static const MPO_CONNECTION_PORT_WITH_PORT_ARRAY = 65536; +} + +final class msg_labels_t extends ffi.Struct { + @mach_port_name_t() + external int sender; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sender, + }) => $allocator()..ref.sender = sender; +} + +final class msghdr extends ffi.Struct { + external ffi.Pointer msg_name; + + @socklen_t() + external int msg_namelen; + + external ffi.Pointer msg_iov; + + @ffi.Int() + external int msg_iovlen; + + external ffi.Pointer msg_control; + + @socklen_t() + external int msg_controllen; + + @ffi.Int() + external int msg_flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer msg_name, + required int msg_namelen, + required ffi.Pointer msg_iov, + required int msg_iovlen, + required ffi.Pointer msg_control, + required int msg_controllen, + required int msg_flags, + }) => $allocator() + ..ref.msg_name = msg_name + ..ref.msg_namelen = msg_namelen + ..ref.msg_iov = msg_iov + ..ref.msg_iovlen = msg_iovlen + ..ref.msg_control = msg_control + ..ref.msg_controllen = msg_controllen + ..ref.msg_flags = msg_flags; +} + +const int multiplePublisherWrn = -460; + +const int myd = 3; + +typedef n_long = __uint32_t; +typedef n_short = __uint16_t; +typedef n_time = __uint32_t; + +const int nameFontTableTag = 1851878757; + +const int nameTypeErr = -902; + +typedef natural_t = __darwin_natural_t; + +const int nbpBuffOvr = -1024; + +const int nbpConfDiff = -1026; + +const int nbpDuplicate = -1027; + +const int nbpNISErr = -1029; + +const int nbpNoConfirm = -1025; + +const int nbpNotFound = -1028; + +const int needClearScrapErr = -100; + +const int negZcbFreeErr = 33; + +final class netent extends ffi.Struct { + external ffi.Pointer n_name; + + external ffi.Pointer> n_aliases; + + @ffi.Int() + external int n_addrtype; + + @ffi.Uint32() + external int n_net; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer n_name, + required ffi.Pointer> n_aliases, + required int n_addrtype, + required int n_net, + }) => $allocator() + ..ref.n_name = n_name + ..ref.n_aliases = n_aliases + ..ref.n_addrtype = n_addrtype + ..ref.n_net = n_net; +} + +const int networkErr = -925; + +const int newLineBit = 7; + +const int newLineCharMask = 65280; + +const int newLineMask = 128; + +const int nilHandleErr = -109; + +const int nilScrapFlavorDataErr = -4994; + +typedef nlink_t = __uint16_t; + +const int nmTypErr = -299; + +@Deprecated('Deprecated') +const int nmType = 8; + +const int noAdrMkErr = -67; + +const int noBridgeErr = -93; + +const int noCacheBit = 5; + +const int noCacheMask = 32; + +const int noCalls = 1; + +const int noCodecErr = -8961; + +const int noDMAErr = -2208; + +const int noDataArea = -1104; + +const int noDataHandler = -2007; + +const int noDefaultDataRef = -2051; + +const int noDefaultUserErr = -922; + +const int noDeviceForChannel = -9400; + +const int noDriveErr = -64; + +const int noDtaMkErr = -71; + +const int noErr = 0; + +const int noExportProcAvailableErr = -2089; + +const int noGlobalsErr = -904; + +const int noHardware = -200; + +const int noHardwareErr = -200; + +const int noHelpForItem = -4009; + +const int noIconDataAvailableErr = -2582; + +const int noInformErr = -926; + +const int noMMUErr = -626; + +const int noMPPErr = -3102; + +const int noMacDskErr = -57; + +const int noMachineNameErr = -913; + +const int noMaskFoundErr = -1000; + +const int noMediaHandler = -2006; + +const int noMemForPictPlaybackErr = -145; + +const int noMemoryNodeFailedInitialize = -30552; + +const int noMoreFolderDescErr = -4272; + +const int noMoreKeyColorsErr = -2205; + +const int noMoreRealTime = -212; + +const int noMovieFound = -2048; + +const int noNybErr = -66; + +const int noOutstandingHLE = -608; + +const int noPasteboardPromiseKeeperErr = -25136; + +const int noPathMappingErr = -2112; + +const int noPortErr = -903; + +const int noPrefAppErr = -3032; + +const int noRecordOfApp = -2020; + +const int noRelErr = -1101; + +const int noRequest = 2; + +const int noResponseErr = -915; + +const int noScrapErr = -100; + +const int noScrapPromiseKeeperErr = -4993; + +const int noSecuritySession = 0; + +const int noSendResp = -1103; + +const int noSessionErr = -908; + +const int noSoundTrackInMovieErr = -2055; + +const int noSourceTreeFoundErr = -2060; + +const int noSuchIconErr = -2581; + +const int noSuitableDisplaysErr = -1859; + +const int noSynthFound = -240; + +const int noThumbnailFoundErr = -8994; + +const int noToolboxNameErr = -914; + +const int noTranslationPathErr = -3030; + +const int noTypeErr = -102; + +const int noUserInteractionAllowed = -610; + +const int noUserNameErr = -911; + +const int noUserRecErr = -928; + +const int noUserRefErr = -924; + +const int noVideoTrackInMovieErr = -2054; + +const int nonDragOriginatorErr = -1862; + +const int nonGlyphID = 65535; + +const int nonMatchingEditState = -2024; + +const int normal = 0; + +const int notAFileErr = -1302; + +const int notAQTVRMovieErr = -30540; + +const int notARemountErr = -1308; + +const int notAllowedToSaveMovieErr = -2126; + +const int notAppropriateForClassic = -877; + +const int notBTree = -410; + +const int notEnoughBufferSpace = -207; + +const int notEnoughDataErr = -2149; + +const int notEnoughDiskSpaceToGrab = -9404; + +const int notEnoughHardware = -201; + +const int notEnoughHardwareErr = -201; + +const int notEnoughMemoryErr = -620; + +const int notEnoughMemoryToGrab = -9403; + +const int notExactMatrixErr = -2204; + +const int notExactSizeErr = -2206; + +const int notHeldErr = -621; + +const int notImplementedMusicOSErr = -2071; + +const int notInitErr = -900; + +const int notLeafAtomErr = -2102; + +const int notLockedErr = -623; + +const int notLoggedInErr = -923; + +const int notOpenErr = -28; + +const int notPasteboardOwnerErr = -25135; + +const int notRegisteredSectionErr = -452; + +const int notThePublisherWrn = -463; + +const int noteChannelNotAllocatedOSErr = -2085; + +typedef notify_port_t = mach_port_t; + +const int nrCallNotSupported = -2557; + +const int nrDataTruncatedErr = -2543; + +const int nrExitedIteratorScope = -2555; + +const int nrInvalidEntryIterationOp = -2552; + +const int nrInvalidNodeErr = -2538; + +const int nrIterationDone = -2554; + +const int nrLockedErr = -2536; + +const int nrNameErr = -2541; + +const int nrNotCreatedErr = -2540; + +const int nrNotEnoughMemoryErr = -2537; + +const int nrNotFoundErr = -2539; + +const int nrNotModifiedErr = -2547; + +const int nrNotSlotDeviceErr = -2542; + +const int nrOverrunErr = -2548; + +const int nrPathBufferTooSmall = -2551; + +const int nrPathNotFound = -2550; + +const int nrPowerErr = -2544; + +const int nrPowerSwitchAbortErr = -2545; + +const int nrPropertyAlreadyExists = -2553; + +const int nrResultCodeBase = -2549; + +const int nrTransactionAborted = -2556; + +const int nrTypeMismatchErr = -2546; + +const int nsDrvErr = -56; + +const int nsStackErr = -149; + +const int nsvErr = -35; + +@ffi.Packed(1) +final class ntsid_t extends ffi.Struct { + @u_int8_t() + external int sid_kind; + + @u_int8_t() + external int sid_authcount; + + @ffi.Array.multi([6]) + external ffi.Array sid_authority; + + @ffi.Array.multi([16]) + external ffi.Array sid_authorities; +} + +const int nulDev = 3; + +const int numberFormattingBadCurrencyPositionErr = -5211; + +const int numberFormattingBadFormatErr = -5207; + +const int numberFormattingBadNumberFormattingObjectErr = -5202; + +const int numberFormattingBadOptionsErr = -5208; + +const int numberFormattingBadTokenErr = -5209; + +const int numberFormattingDelimiterMissingErr = -5205; + +const int numberFormattingEmptyFormatErr = -5206; + +const int numberFormattingLiteralMissingErr = -5204; + +const int numberFormattingNotADigitErr = -5212; + +const int numberFormattingNotANumberErr = -5200; + +const int numberFormattingOverflowInDestinationErr = -5201; + +const int numberFormattingSpuriousCharErr = -5203; + +const int numberFormattingUnOrderedCurrencyRangeErr = -5210; + +const int numberFormattingUnOrdredCurrencyRangeErr = -5210; + +const int numberFortmattingNotADigitErr = -5212; + +final class objc_class extends ffi.Opaque {} + +final class objc_object extends ffi.Struct { + external ffi.Pointer isaAsInt; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer isa, + }) => $allocator()..ref.isaAsInt = isa; +} + +typedef objc_objectptr_t = ffi.Pointer; + +final class objc_selector extends ffi.Opaque {} + +typedef objc_zone_t = ffi.Pointer<_malloc_zone_t>; + +const int offLinErr = -65; + +typedef off_t = __darwin_off_t; +@Deprecated('Deprecated') +const int ogonek = 254; + +const int opWrErr = -49; + +final class opaqueCMFormatDescription extends ffi.Opaque {} + +const int openErr = -23; + +const int openFolderIconResource = -3997; + +const int os2FontTableTag = 1330851634; + +typedef os_block_t = ffi.Pointer; +typedef Dartos_block_t = objc.ObjCBlock; + +enum os_clockid_t { + OS_CLOCK_MACH_ABSOLUTE_TIME(32); + + final int value; + const os_clockid_t(this.value); + + static os_clockid_t fromValue(int value) => switch (value) { + 32 => OS_CLOCK_MACH_ABSOLUTE_TIME, + _ => throw ArgumentError('Unknown value for os_clockid_t: $value'), + }; +} + +typedef os_function_t = ffi.Pointer>; +typedef os_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartos_function_tFunction = void Function(ffi.Pointer); + +final class os_workgroup_attr_opaque_s extends ffi.Struct { + @ffi.Uint32() + external int sig; + + @ffi.Array.multi([60]) + external ffi.Array opaque; +} + +typedef os_workgroup_attr_s = os_workgroup_attr_opaque_s; +typedef os_workgroup_attr_t = ffi.Pointer; +typedef os_workgroup_index = ffi.Uint32; +typedef Dartos_workgroup_index = int; + +final class os_workgroup_interval_data_opaque_s extends ffi.Struct { + @ffi.Uint32() + external int sig; + + @ffi.Array.multi([56]) + external ffi.Array opaque; +} + +typedef os_workgroup_interval_data_s = os_workgroup_interval_data_opaque_s; +typedef os_workgroup_interval_data_t = + ffi.Pointer; +typedef os_workgroup_interval_t = ffi.Pointer; +typedef Dartos_workgroup_interval_t = OS_os_workgroup; + +final class os_workgroup_join_token_opaque_s extends ffi.Struct { + @ffi.Uint32() + external int sig; + + @ffi.Array.multi([36]) + external ffi.Array opaque; +} + +typedef os_workgroup_join_token_s = os_workgroup_join_token_opaque_s; +typedef os_workgroup_join_token_t = + ffi.Pointer; + +final class os_workgroup_max_parallel_threads_attr_s extends ffi.Opaque {} + +typedef os_workgroup_mpt_attr_s = os_workgroup_max_parallel_threads_attr_s; +typedef os_workgroup_mpt_attr_t = + ffi.Pointer; +typedef os_workgroup_parallel_t = ffi.Pointer; +typedef Dartos_workgroup_parallel_t = OS_os_workgroup; +typedef os_workgroup_t = ffi.Pointer; +typedef Dartos_workgroup_t = OS_os_workgroup; +typedef os_workgroup_working_arena_destructor_t = + ffi.Pointer< + ffi.NativeFunction + >; +typedef os_workgroup_working_arena_destructor_tFunction = + ffi.Void Function(ffi.Pointer); +typedef Dartos_workgroup_working_arena_destructor_tFunction = + void Function(ffi.Pointer); + +const int outline = 8; + +@Deprecated('Deprecated') +const int overDot = 250; + +const int ownedFolderIconResource = -3980; + +const int pATMachine = 1885434989; + +const int pATType = 1885434996; + +const int pATZone = 1885435002; + +const int pArcAngle = 1885434467; + +const int pBackgroundColor = 1885496172; + +const int pBackgroundPattern = 1885499508; + +const int pBestType = 1885500276; + +const int pBounds = 1885498980; + +const int pClass = 1885564019; + +const int pClipboard = 1885564009; + +const int pColor = 1668246642; + +const int pColorTable = 1668052066; + +const int pConduit = 1885564782; + +const int pContents = 1885564532; + +const int pCornerCurveHeight = 1885562980; + +const int pCornerCurveWidth = 1885566820; + +const int pDNS = 1885630067; + +const int pDNSForm = 1883524691; + +const int pDashStyle = 1885631348; + +const int pDefaultType = 1684366964; + +const int pDefinitionRect = 1885631092; + +const int pDeviceAddress = 1885632097; + +const int pDeviceType = 1885632116; + +const int pDottedDecimal = 1885958244; + +const int pEnabled = 1701732972; + +const int pEndPoint = 1885695588; + +const int pFTPKind = 1802071652; + +const int pFillColor = 1718379372; + +const int pFillPattern = 1718382708; + +const int pFont = 1718578804; + +const int pFormula = 1885761394; + +const int pGraphicObjects = 1735352947; + +const int pHasCloseBox = 1751346274; + +const int pHasTitleBar = 1886677364; + +const int pHost = 1213158228; + +const int pID = 1229201440; + +const int pIndex = 1885955192; + +const int pInsertionLoc = 1885957747; + +const int pIsFloating = 1769170540; + +const int pIsFrontProcess = 1885959014; + +const int pIsModal = 1886220132; + +const int pIsModified = 1768779620; + +const int pIsResizable = 1886548858; + +const int pIsStationeryPad = 1886613604; + +const int pIsZoomable = 1769175661; + +const int pIsZoomed = 1887073645; + +const int pItemNumber = 1769237870; + +const int pJustification = 1886024564; + +const int pKeyKind = 1802202724; + +const int pKeystrokeKey = 1800237927; + +const int pLineArrow = 1634890351; + +const int pMenuID = 1835952484; + +const int pModifiers = 1800236900; + +const int pName = 1886282093; + +const int pNetwork = 1886283124; + +const int pNewElementLoc = 1886283116; + +const int pNode = 1886285668; + +const int pPath = 1179930723; + +const int pPenColor = 1886413676; + +const int pPenPattern = 1886416993; + +const int pPenWidth = 1886418788; + +const int pPixelDepth = 1885630580; + +const int pPointList = 1886678132; + +const int pPointSize = 1886679930; + +const int pPort = 1886416754; + +const int pProtection = 1886417519; + +const int pProtocol = 1886417524; + +const int pRotation = 1886547828; + +const int pSCSIBus = 1886610274; + +const int pSCSILUN = 1886612597; + +const int pScale = 1886610284; + +const int pScheme = 1886745443; + +const int pScript = 1935896692; + +const int pScriptTag = 1886610292; + +const int pSelected = 1936026723; + +const int pSelection = 1936026725; + +const int pSocket = 1886613347; + +const int pStartAngle = 1885433447; + +const int pStartPoint = 1886614640; + +const int pTextColor = 1886681187; + +const int pTextEncoding = 1886681189; + +const int pTextFont = 1886681190; + +const int pTextItemDelimiters = 1954047084; + +const int pTextPointSize = 1886679155; + +const int pTextStyles = 1954050932; + +const int pTransferMode = 1886418029; + +const int pTranslation = 1886679667; + +const int pURL = 1884639820; + +const int pUniformStyles = 1970500716; + +const int pUpdateOn = 1886744676; + +const int pUserName = 1380021614; + +const int pUserPassword = 1380020343; + +const int pUserSelection = 1886745452; + +const int pVersion = 1986359923; + +const int pVisible = 1886808435; + +typedef page_address_array_t = ffi.Pointer; + +const int paramErr = -50; + +const int pasteDev = 12; + +const int pathNotVerifiedErr = -2113; + +const int pathTooLongErr = -2110; + +@Deprecated('Deprecated') +const int perThousand = 228; + +const int permErr = -54; + +const int pickerCantLive = -4006; + +const int pickerResourceError = -4002; + +const int pictInfoIDErr = -11001; + +const int pictInfoVerbErr = -11002; + +const int pictInfoVersionErr = -11000; + +const int pictureDataErr = -11005; + +typedef pid_t = __darwin_pid_t; + +const int pixMapTooDeepErr = -148; + +@Deprecated('Deprecated') +const int platform68k = 1; + +@Deprecated('Deprecated') +const int platformAIXppc = 1300; + +@Deprecated('Deprecated') +const int platformArm64NativeEntryPoint = 9; + +@Deprecated('Deprecated') +const int platformIA32NativeEntryPoint = 6; + +@Deprecated('Deprecated') +const int platformIRIXmips = 1000; + +@Deprecated('Deprecated') +const int platformInterpreted = 3; + +@Deprecated('Deprecated') +const int platformLinuxintel = 1201; + +@Deprecated('Deprecated') +const int platformLinuxppc = 1200; + +@Deprecated('Deprecated') +const int platformMacOSx86 = 1500; + +@Deprecated('Deprecated') +const int platformNeXT68k = 1403; + +@Deprecated('Deprecated') +const int platformNeXTIntel = 1400; + +@Deprecated('Deprecated') +const int platformNeXTppc = 1401; + +@Deprecated('Deprecated') +const int platformNeXTsparc = 1402; + +@Deprecated('Deprecated') +const int platformPowerPC = 2; + +@Deprecated('Deprecated') +const int platformPowerPC64NativeEntryPoint = 7; + +@Deprecated('Deprecated') +const int platformPowerPCNativeEntryPoint = 5; + +@Deprecated('Deprecated') +const int platformSunOSintel = 1101; + +@Deprecated('Deprecated') +const int platformSunOSsparc = 1100; + +@Deprecated('Deprecated') +const int platformWin32 = 4; + +@Deprecated('Deprecated') +const int platformX86_64NativeEntryPoint = 8; + +const int pleaseCacheBit = 4; + +const int pleaseCacheMask = 16; + +const int pmBusyErr = -13000; + +const int pmField = 10; + +const int pmMask = 1024; + +const int pmRecvEndErr = -13005; + +const int pmRecvStartErr = -13004; + +const int pmReplyTOErr = -13001; + +const int pmSendEndErr = -13003; + +const int pmSendStartErr = -13002; + +typedef pointer_t = vm_offset_t; +typedef policy_base_data_t = policy_bases; +typedef policy_base_t = ffi.Pointer; + +final class policy_bases extends ffi.Struct { + external policy_timeshare_base_data_t ts; + + external policy_rr_base_data_t rr; + + external policy_fifo_base_data_t fifo; +} + +final class policy_fifo_base extends ffi.Struct { + @integer_t() + external int base_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int base_priority, + }) => $allocator()..ref.base_priority = base_priority; +} + +typedef policy_fifo_base_data_t = policy_fifo_base; +typedef policy_fifo_base_t = ffi.Pointer; + +final class policy_fifo_info extends ffi.Struct { + @integer_t() + external int max_priority; + + @integer_t() + external int base_priority; + + @boolean_t() + external int depressed; + + @integer_t() + external int depress_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + required int base_priority, + required int depressed, + required int depress_priority, + }) => $allocator() + ..ref.max_priority = max_priority + ..ref.base_priority = base_priority + ..ref.depressed = depressed + ..ref.depress_priority = depress_priority; +} + +typedef policy_fifo_info_data_t = policy_fifo_info; +typedef policy_fifo_info_t = ffi.Pointer; + +final class policy_fifo_limit extends ffi.Struct { + @integer_t() + external int max_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + }) => $allocator()..ref.max_priority = max_priority; +} + +typedef policy_fifo_limit_data_t = policy_fifo_limit; +typedef policy_fifo_limit_t = ffi.Pointer; +typedef policy_info_data_t = policy_infos; +typedef policy_info_t = ffi.Pointer; + +final class policy_infos extends ffi.Struct { + external policy_timeshare_info_data_t ts; + + external policy_rr_info_data_t rr; + + external policy_fifo_info_data_t fifo; +} + +typedef policy_limit_data_t = policy_limits; +typedef policy_limit_t = ffi.Pointer; + +final class policy_limits extends ffi.Struct { + external policy_timeshare_limit_data_t ts; + + external policy_rr_limit_data_t rr; + + external policy_fifo_limit_data_t fifo; +} + +final class policy_rr_base extends ffi.Struct { + @integer_t() + external int base_priority; + + @integer_t() + external int quantum; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int base_priority, + required int quantum, + }) => $allocator() + ..ref.base_priority = base_priority + ..ref.quantum = quantum; +} + +typedef policy_rr_base_data_t = policy_rr_base; +typedef policy_rr_base_t = ffi.Pointer; + +final class policy_rr_info extends ffi.Struct { + @integer_t() + external int max_priority; + + @integer_t() + external int base_priority; + + @integer_t() + external int quantum; + + @boolean_t() + external int depressed; + + @integer_t() + external int depress_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + required int base_priority, + required int quantum, + required int depressed, + required int depress_priority, + }) => $allocator() + ..ref.max_priority = max_priority + ..ref.base_priority = base_priority + ..ref.quantum = quantum + ..ref.depressed = depressed + ..ref.depress_priority = depress_priority; +} + +typedef policy_rr_info_data_t = policy_rr_info; +typedef policy_rr_info_t = ffi.Pointer; + +final class policy_rr_limit extends ffi.Struct { + @integer_t() + external int max_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + }) => $allocator()..ref.max_priority = max_priority; +} + +typedef policy_rr_limit_data_t = policy_rr_limit; +typedef policy_rr_limit_t = ffi.Pointer; +typedef policy_t = ffi.Int; +typedef Dartpolicy_t = int; + +final class policy_timeshare_base extends ffi.Struct { + @integer_t() + external int base_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int base_priority, + }) => $allocator()..ref.base_priority = base_priority; +} + +typedef policy_timeshare_base_data_t = policy_timeshare_base; +typedef policy_timeshare_base_t = ffi.Pointer; + +final class policy_timeshare_info extends ffi.Struct { + @integer_t() + external int max_priority; + + @integer_t() + external int base_priority; + + @integer_t() + external int cur_priority; + + @boolean_t() + external int depressed; + + @integer_t() + external int depress_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + required int base_priority, + required int cur_priority, + required int depressed, + required int depress_priority, + }) => $allocator() + ..ref.max_priority = max_priority + ..ref.base_priority = base_priority + ..ref.cur_priority = cur_priority + ..ref.depressed = depressed + ..ref.depress_priority = depress_priority; +} + +typedef policy_timeshare_info_data_t = policy_timeshare_info; +typedef policy_timeshare_info_t = ffi.Pointer; + +final class policy_timeshare_limit extends ffi.Struct { + @integer_t() + external int max_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + }) => $allocator()..ref.max_priority = max_priority; +} + +typedef policy_timeshare_limit_data_t = policy_timeshare_limit; +typedef policy_timeshare_limit_t = ffi.Pointer; + +const int portClosedErr = -916; + +const int portInUse = -97; + +const int portNameExistsErr = -910; + +const int portNotCf = -98; + +const int portNotPwr = -96; + +const int posErr = -40; + +final class ppd_attr_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array name; + + @ffi.Array.multi([41]) + external ffi.Array spec; + + @ffi.Array.multi([81]) + external ffi.Array text; + + external ffi.Pointer value; +} + +typedef ppd_attr_t = ppd_attr_s; + +final class ppd_choice_s extends ffi.Struct { + @ffi.Char() + external int marked; + + @ffi.Array.multi([41]) + external ffi.Array choice; + + @ffi.Array.multi([81]) + external ffi.Array text; + + external ffi.Pointer code; + + external ffi.Pointer option; +} + +typedef ppd_choice_t = ppd_choice_s; + +enum ppd_conform_e { + PPD_CONFORM_RELAXED(0), + PPD_CONFORM_STRICT(1); + + final int value; + const ppd_conform_e(this.value); + + static ppd_conform_e fromValue(int value) => switch (value) { + 0 => PPD_CONFORM_RELAXED, + 1 => PPD_CONFORM_STRICT, + _ => throw ArgumentError('Unknown value for ppd_conform_e: $value'), + }; +} + +final class ppd_const_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array option1; + + @ffi.Array.multi([41]) + external ffi.Array choice1; + + @ffi.Array.multi([41]) + external ffi.Array option2; + + @ffi.Array.multi([41]) + external ffi.Array choice2; +} + +typedef ppd_const_t = ppd_const_s; + +final class ppd_coption_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array keyword; + + external ffi.Pointer option; + + @ffi.Int() + external int marked; + + external ffi.Pointer params; +} + +typedef ppd_coption_t = ppd_coption_s; + +final class ppd_cparam_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array name; + + @ffi.Array.multi([81]) + external ffi.Array text; + + @ffi.Int() + external int order; + + @ffi.Int() + external int typeAsInt; + + ppd_cptype_e get type => ppd_cptype_e.fromValue(typeAsInt); + set type(ppd_cptype_e value) => typeAsInt = value.value; + + external ppd_cplimit_t minimum; + + external ppd_cplimit_t maximum; + + external ppd_cpvalue_t current; +} + +typedef ppd_cparam_t = ppd_cparam_s; +typedef ppd_cplimit_t = ppd_cplimit_u; + +final class ppd_cplimit_u extends ffi.Union { + @ffi.Float() + external double custom_curve; + + @ffi.Int() + external int custom_int; + + @ffi.Float() + external double custom_invcurve; + + @ffi.Int() + external int custom_passcode; + + @ffi.Int() + external int custom_password; + + @ffi.Float() + external double custom_points; + + @ffi.Float() + external double custom_real; + + @ffi.Int() + external int custom_string; +} + +enum ppd_cptype_e { + PPD_CUSTOM_UNKNOWN(-1), + PPD_CUSTOM_CURVE(0), + PPD_CUSTOM_INT(1), + PPD_CUSTOM_INVCURVE(2), + PPD_CUSTOM_PASSCODE(3), + PPD_CUSTOM_PASSWORD(4), + PPD_CUSTOM_POINTS(5), + PPD_CUSTOM_REAL(6), + PPD_CUSTOM_STRING(7); + + final int value; + const ppd_cptype_e(this.value); + + static ppd_cptype_e fromValue(int value) => switch (value) { + -1 => PPD_CUSTOM_UNKNOWN, + 0 => PPD_CUSTOM_CURVE, + 1 => PPD_CUSTOM_INT, + 2 => PPD_CUSTOM_INVCURVE, + 3 => PPD_CUSTOM_PASSCODE, + 4 => PPD_CUSTOM_PASSWORD, + 5 => PPD_CUSTOM_POINTS, + 6 => PPD_CUSTOM_REAL, + 7 => PPD_CUSTOM_STRING, + _ => throw ArgumentError('Unknown value for ppd_cptype_e: $value'), + }; +} + +typedef ppd_cpvalue_t = ppd_cpvalue_u; + +final class ppd_cpvalue_u extends ffi.Union { + @ffi.Float() + external double custom_curve; + + @ffi.Int() + external int custom_int; + + @ffi.Float() + external double custom_invcurve; + + external ffi.Pointer custom_passcode; + + external ffi.Pointer custom_password; + + @ffi.Float() + external double custom_points; + + @ffi.Float() + external double custom_real; + + external ffi.Pointer custom_string; +} + +enum ppd_cs_e { + PPD_CS_CMYK(-4), + PPD_CS_CMY(-3), + PPD_CS_GRAY(1), + PPD_CS_RGB(3), + PPD_CS_RGBK(4), + PPD_CS_N(5); + + final int value; + const ppd_cs_e(this.value); + + static ppd_cs_e fromValue(int value) => switch (value) { + -4 => PPD_CS_CMYK, + -3 => PPD_CS_CMY, + 1 => PPD_CS_GRAY, + 3 => PPD_CS_RGB, + 4 => PPD_CS_RGBK, + 5 => PPD_CS_N, + _ => throw ArgumentError('Unknown value for ppd_cs_e: $value'), + }; +} + +final class ppd_emul_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array name; + + external ffi.Pointer start; + + external ffi.Pointer stop; +} + +typedef ppd_emul_t = ppd_emul_s; + +final class ppd_file_s extends ffi.Struct { + @ffi.Int() + external int language_level; + + @ffi.Int() + external int color_device; + + @ffi.Int() + external int variable_sizes; + + @ffi.Int() + external int accurate_screens; + + @ffi.Int() + external int contone_only; + + @ffi.Int() + external int landscape; + + @ffi.Int() + external int model_number; + + @ffi.Int() + external int manual_copies; + + @ffi.Int() + external int throughput; + + @ffi.Int() + external int colorspaceAsInt; + + ppd_cs_e get colorspace => ppd_cs_e.fromValue(colorspaceAsInt); + set colorspace(ppd_cs_e value) => colorspaceAsInt = value.value; + + external ffi.Pointer patches; + + @ffi.Int() + external int num_emulations; + + external ffi.Pointer emulations; + + external ffi.Pointer jcl_begin; + + external ffi.Pointer jcl_ps; + + external ffi.Pointer jcl_end; + + external ffi.Pointer lang_encoding; + + external ffi.Pointer lang_version; + + external ffi.Pointer modelname; + + external ffi.Pointer ttrasterizer; + + external ffi.Pointer manufacturer; + + external ffi.Pointer product; + + external ffi.Pointer nickname; + + external ffi.Pointer shortnickname; + + @ffi.Int() + external int num_groups; + + external ffi.Pointer groups; + + @ffi.Int() + external int num_sizes; + + external ffi.Pointer sizes; + + @ffi.Array.multi([2]) + external ffi.Array custom_min; + + @ffi.Array.multi([2]) + external ffi.Array custom_max; + + @ffi.Array.multi([4]) + external ffi.Array custom_margins; + + @ffi.Int() + external int num_consts; + + external ffi.Pointer consts; + + @ffi.Int() + external int num_fonts; + + external ffi.Pointer> fonts; + + @ffi.Int() + external int num_profiles; + + external ffi.Pointer profiles; + + @ffi.Int() + external int num_filters; + + external ffi.Pointer> filters; + + @ffi.Int() + external int flip_duplex; + + external ffi.Pointer protocols; + + external ffi.Pointer pcfilename; + + @ffi.Int() + external int num_attrs; + + @ffi.Int() + external int cur_attr; + + external ffi.Pointer> attrs; + + external ffi.Pointer sorted_attrs; + + external ffi.Pointer options; + + external ffi.Pointer coptions; + + external ffi.Pointer marked; + + external ffi.Pointer cups_uiconstraints; + + external ffi.Pointer<_ppd_cache_t> cache; +} + +typedef ppd_file_t = ppd_file_s; + +final class ppd_group_s extends ffi.Struct { + @ffi.Array.multi([40]) + external ffi.Array text; + + @ffi.Array.multi([41]) + external ffi.Array name; + + @ffi.Int() + external int num_options; + + external ffi.Pointer options; + + @ffi.Int() + external int num_subgroups; + + external ffi.Pointer subgroups; +} + +typedef ppd_group_t = ppd_group_s; + +final class ppd_option_s extends ffi.Struct { + @ffi.Char() + external int conflicted; + + @ffi.Array.multi([41]) + external ffi.Array keyword; + + @ffi.Array.multi([41]) + external ffi.Array defchoice; + + @ffi.Array.multi([81]) + external ffi.Array text; + + @ffi.UnsignedInt() + external int uiAsInt; + + ppd_ui_e get ui => ppd_ui_e.fromValue(uiAsInt); + set ui(ppd_ui_e value) => uiAsInt = value.value; + + @ffi.UnsignedInt() + external int sectionAsInt; + + ppd_section_e get section => ppd_section_e.fromValue(sectionAsInt); + set section(ppd_section_e value) => sectionAsInt = value.value; + + @ffi.Float() + external double order; + + @ffi.Int() + external int num_choices; + + external ffi.Pointer choices; +} + +typedef ppd_option_t = ppd_option_s; + +final class ppd_profile_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array resolution; + + @ffi.Array.multi([41]) + external ffi.Array media_type; + + @ffi.Float() + external double density; + + @ffi.Float() + external double gamma; + + @ffi.Array.multi([3, 3]) + external ffi.Array> matrix; +} + +typedef ppd_profile_t = ppd_profile_s; + +enum ppd_section_e { + PPD_ORDER_ANY(0), + PPD_ORDER_DOCUMENT(1), + PPD_ORDER_EXIT(2), + PPD_ORDER_JCL(3), + PPD_ORDER_PAGE(4), + PPD_ORDER_PROLOG(5); + + final int value; + const ppd_section_e(this.value); + + static ppd_section_e fromValue(int value) => switch (value) { + 0 => PPD_ORDER_ANY, + 1 => PPD_ORDER_DOCUMENT, + 2 => PPD_ORDER_EXIT, + 3 => PPD_ORDER_JCL, + 4 => PPD_ORDER_PAGE, + 5 => PPD_ORDER_PROLOG, + _ => throw ArgumentError('Unknown value for ppd_section_e: $value'), + }; +} + +final class ppd_size_s extends ffi.Struct { + @ffi.Int() + external int marked; + + @ffi.Array.multi([41]) + external ffi.Array name; + + @ffi.Float() + external double width; + + @ffi.Float() + external double length; + + @ffi.Float() + external double left; + + @ffi.Float() + external double bottom; + + @ffi.Float() + external double right; + + @ffi.Float() + external double top; +} + +typedef ppd_size_t = ppd_size_s; + +enum ppd_status_e { + PPD_OK(0), + PPD_FILE_OPEN_ERROR(1), + PPD_NULL_FILE(2), + PPD_ALLOC_ERROR(3), + PPD_MISSING_PPDADOBE4(4), + PPD_MISSING_VALUE(5), + PPD_INTERNAL_ERROR(6), + PPD_BAD_OPEN_GROUP(7), + PPD_NESTED_OPEN_GROUP(8), + PPD_BAD_OPEN_UI(9), + PPD_NESTED_OPEN_UI(10), + PPD_BAD_ORDER_DEPENDENCY(11), + PPD_BAD_UI_CONSTRAINTS(12), + PPD_MISSING_ASTERISK(13), + PPD_LINE_TOO_LONG(14), + PPD_ILLEGAL_CHARACTER(15), + PPD_ILLEGAL_MAIN_KEYWORD(16), + PPD_ILLEGAL_OPTION_KEYWORD(17), + PPD_ILLEGAL_TRANSLATION(18), + PPD_ILLEGAL_WHITESPACE(19), + PPD_BAD_CUSTOM_PARAM(20), + PPD_MISSING_OPTION_KEYWORD(21), + PPD_BAD_VALUE(22), + PPD_MISSING_CLOSE_GROUP(23), + PPD_BAD_CLOSE_UI(24), + PPD_MISSING_CLOSE_UI(25), + PPD_MAX_STATUS(26); + + final int value; + const ppd_status_e(this.value); + + static ppd_status_e fromValue(int value) => switch (value) { + 0 => PPD_OK, + 1 => PPD_FILE_OPEN_ERROR, + 2 => PPD_NULL_FILE, + 3 => PPD_ALLOC_ERROR, + 4 => PPD_MISSING_PPDADOBE4, + 5 => PPD_MISSING_VALUE, + 6 => PPD_INTERNAL_ERROR, + 7 => PPD_BAD_OPEN_GROUP, + 8 => PPD_NESTED_OPEN_GROUP, + 9 => PPD_BAD_OPEN_UI, + 10 => PPD_NESTED_OPEN_UI, + 11 => PPD_BAD_ORDER_DEPENDENCY, + 12 => PPD_BAD_UI_CONSTRAINTS, + 13 => PPD_MISSING_ASTERISK, + 14 => PPD_LINE_TOO_LONG, + 15 => PPD_ILLEGAL_CHARACTER, + 16 => PPD_ILLEGAL_MAIN_KEYWORD, + 17 => PPD_ILLEGAL_OPTION_KEYWORD, + 18 => PPD_ILLEGAL_TRANSLATION, + 19 => PPD_ILLEGAL_WHITESPACE, + 20 => PPD_BAD_CUSTOM_PARAM, + 21 => PPD_MISSING_OPTION_KEYWORD, + 22 => PPD_BAD_VALUE, + 23 => PPD_MISSING_CLOSE_GROUP, + 24 => PPD_BAD_CLOSE_UI, + 25 => PPD_MISSING_CLOSE_UI, + 26 => PPD_MAX_STATUS, + _ => throw ArgumentError('Unknown value for ppd_status_e: $value'), + }; +} + +enum ppd_ui_e { + PPD_UI_BOOLEAN(0), + PPD_UI_PICKONE(1), + PPD_UI_PICKMANY(2); + + final int value; + const ppd_ui_e(this.value); + + static ppd_ui_e fromValue(int value) => switch (value) { + 0 => PPD_UI_BOOLEAN, + 1 => PPD_UI_PICKONE, + 2 => PPD_UI_PICKMANY, + _ => throw ArgumentError('Unknown value for ppd_ui_e: $value'), + }; +} + +typedef ppnum_t = ffi.Uint32; +typedef Dartppnum_t = int; + +const int prInitErr = -88; + +const int prWrErr = -87; + +const int preferencesFolderIconResource = -3974; + +const int printMonitorFolderIconResource = -3975; + +const int printerStatusOpCodeNotSupportedErr = -25280; + +const int privateFolderIconResource = -3994; + +const int procNotFound = -600; + +final class proc_rlimit_control_wakeupmon extends ffi.Struct { + @ffi.Uint32() + external int wm_flags; + + @ffi.Int32() + external int wm_rate; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int wm_flags, + required int wm_rate, + }) => $allocator() + ..ref.wm_flags = wm_flags + ..ref.wm_rate = wm_rate; +} + +const int processStateIncorrectErr = -4991; + +typedef processor_array_t = ffi.Pointer; + +final class processor_basic_info extends ffi.Struct { + @cpu_type_t() + external int cpu_type; + + @cpu_subtype_t() + external int cpu_subtype; + + @boolean_t() + external int running; + + @ffi.Int() + external int slot_num; + + external UnnamedUnion$16 unnamed; +} + +typedef processor_basic_info_data_t = processor_basic_info; +typedef processor_basic_info_t = ffi.Pointer; + +final class processor_cpu_load_info extends ffi.Struct { + @ffi.Array.multi([4]) + external ffi.Array cpu_ticks; +} + +typedef processor_cpu_load_info_data_t = processor_cpu_load_info; +typedef processor_cpu_load_info_t = ffi.Pointer; + +final class processor_cpu_stat extends ffi.Struct { + @ffi.Uint32() + external int irq_ex_cnt; + + @ffi.Uint32() + external int ipi_cnt; + + @ffi.Uint32() + external int timer_cnt; + + @ffi.Uint32() + external int undef_ex_cnt; + + @ffi.Uint32() + external int unaligned_cnt; + + @ffi.Uint32() + external int vfp_cnt; + + @ffi.Uint32() + external int vfp_shortv_cnt; + + @ffi.Uint32() + external int data_ex_cnt; + + @ffi.Uint32() + external int instr_ex_cnt; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int irq_ex_cnt, + required int ipi_cnt, + required int timer_cnt, + required int undef_ex_cnt, + required int unaligned_cnt, + required int vfp_cnt, + required int vfp_shortv_cnt, + required int data_ex_cnt, + required int instr_ex_cnt, + }) => $allocator() + ..ref.irq_ex_cnt = irq_ex_cnt + ..ref.ipi_cnt = ipi_cnt + ..ref.timer_cnt = timer_cnt + ..ref.undef_ex_cnt = undef_ex_cnt + ..ref.unaligned_cnt = unaligned_cnt + ..ref.vfp_cnt = vfp_cnt + ..ref.vfp_shortv_cnt = vfp_shortv_cnt + ..ref.data_ex_cnt = data_ex_cnt + ..ref.instr_ex_cnt = instr_ex_cnt; +} + +@ffi.Packed(4) +final class processor_cpu_stat64 extends ffi.Struct { + @ffi.Uint64() + external int irq_ex_cnt; + + @ffi.Uint64() + external int ipi_cnt; + + @ffi.Uint64() + external int timer_cnt; + + @ffi.Uint64() + external int undef_ex_cnt; + + @ffi.Uint64() + external int unaligned_cnt; + + @ffi.Uint64() + external int vfp_cnt; + + @ffi.Uint64() + external int vfp_shortv_cnt; + + @ffi.Uint64() + external int data_ex_cnt; + + @ffi.Uint64() + external int instr_ex_cnt; + + @ffi.Uint64() + external int pmi_cnt; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int irq_ex_cnt, + required int ipi_cnt, + required int timer_cnt, + required int undef_ex_cnt, + required int unaligned_cnt, + required int vfp_cnt, + required int vfp_shortv_cnt, + required int data_ex_cnt, + required int instr_ex_cnt, + required int pmi_cnt, + }) => $allocator() + ..ref.irq_ex_cnt = irq_ex_cnt + ..ref.ipi_cnt = ipi_cnt + ..ref.timer_cnt = timer_cnt + ..ref.undef_ex_cnt = undef_ex_cnt + ..ref.unaligned_cnt = unaligned_cnt + ..ref.vfp_cnt = vfp_cnt + ..ref.vfp_shortv_cnt = vfp_shortv_cnt + ..ref.data_ex_cnt = data_ex_cnt + ..ref.instr_ex_cnt = instr_ex_cnt + ..ref.pmi_cnt = pmi_cnt; +} + +typedef processor_cpu_stat64_data_t = processor_cpu_stat64; +typedef processor_cpu_stat64_t = ffi.Pointer; +typedef processor_cpu_stat_data_t = processor_cpu_stat; +typedef processor_cpu_stat_t = ffi.Pointer; +typedef processor_flavor_t = ffi.Int; +typedef Dartprocessor_flavor_t = int; +typedef processor_info_array_t = ffi.Pointer; +typedef processor_info_t = ffi.Pointer; +typedef processor_port_array_t = processor_array_t; +typedef processor_port_t = processor_t; +typedef processor_set_array_t = ffi.Pointer; + +final class processor_set_basic_info extends ffi.Struct { + @ffi.Int() + external int processor_count; + + @ffi.Int() + external int default_policy; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int processor_count, + required int default_policy, + }) => $allocator() + ..ref.processor_count = processor_count + ..ref.default_policy = default_policy; +} + +typedef processor_set_basic_info_data_t = processor_set_basic_info; +typedef processor_set_basic_info_t = ffi.Pointer; +typedef processor_set_control_port_t = processor_set_t; +typedef processor_set_control_t = mach_port_t; +typedef processor_set_flavor_t = ffi.Int; +typedef Dartprocessor_set_flavor_t = int; +typedef processor_set_info_t = ffi.Pointer; + +final class processor_set_load_info extends ffi.Struct { + @ffi.Int() + external int task_count; + + @ffi.Int() + external int thread_count; + + @integer_t() + external int load_average; + + @integer_t() + external int mach_factor; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int task_count, + required int thread_count, + required int load_average, + required int mach_factor, + }) => $allocator() + ..ref.task_count = task_count + ..ref.thread_count = thread_count + ..ref.load_average = load_average + ..ref.mach_factor = mach_factor; +} + +typedef processor_set_load_info_data_t = processor_set_load_info; +typedef processor_set_load_info_t = ffi.Pointer; +typedef processor_set_name_array_t = ffi.Pointer; +typedef processor_set_name_port_array_t = processor_set_array_t; +typedef processor_set_name_port_t = processor_set_t; +typedef processor_set_name_t = processor_set_t; +typedef processor_set_port_t = processor_set_t; +typedef processor_set_t = mach_port_t; +typedef processor_t = mach_port_t; + +const int progressProcAborted = -2019; + +const int propertyNotSupportedByNodeErr = -30547; + +const int protocolErr = -603; + +final class protoent extends ffi.Struct { + external ffi.Pointer p_name; + + external ffi.Pointer> p_aliases; + + @ffi.Int() + external int p_proto; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer p_name, + required ffi.Pointer> p_aliases, + required int p_proto, + }) => $allocator() + ..ref.p_name = p_name + ..ref.p_aliases = p_aliases + ..ref.p_proto = p_proto; +} + +typedef pthread_attr_t = __darwin_pthread_attr_t; +typedef pthread_cond_t = __darwin_pthread_cond_t; +typedef pthread_condattr_t = __darwin_pthread_condattr_t; +typedef pthread_key_t = __darwin_pthread_key_t; +typedef pthread_mutex_t = __darwin_pthread_mutex_t; +typedef pthread_mutexattr_t = __darwin_pthread_mutexattr_t; +typedef pthread_once_t = __darwin_pthread_once_t; +typedef pthread_rwlock_t = __darwin_pthread_rwlock_t; +typedef pthread_rwlockattr_t = __darwin_pthread_rwlockattr_t; +typedef pthread_t = __darwin_pthread_t; +typedef ptrauth_extra_data_t = ffi.UnsignedLong; +typedef Dartptrauth_extra_data_t = int; +typedef ptrauth_generic_signature_t = ffi.UnsignedLong; +typedef Dartptrauth_generic_signature_t = int; + +enum ptrauth_key { + ptrauth_key_none(-1), + ptrauth_key_asia(0), + ptrauth_key_asib(1), + ptrauth_key_asda(2), + ptrauth_key_asdb(3); + + static const ptrauth_key_process_independent_code = ptrauth_key_asia; + static const ptrauth_key_process_dependent_code = ptrauth_key_asib; + static const ptrauth_key_process_independent_data = ptrauth_key_asda; + static const ptrauth_key_process_dependent_data = ptrauth_key_asdb; + static const ptrauth_key_return_address = ptrauth_key_asib; + static const ptrauth_key_function_pointer = ptrauth_key_asia; + static const ptrauth_key_frame_pointer = ptrauth_key_asdb; + static const ptrauth_key_block_function = ptrauth_key_asia; + static const ptrauth_key_cxx_vtable_pointer = ptrauth_key_asda; + static const ptrauth_key_method_list_pointer = ptrauth_key_asda; + static const ptrauth_key_objc_isa_pointer = ptrauth_key_asda; + static const ptrauth_key_objc_super_pointer = ptrauth_key_asda; + static const ptrauth_key_block_descriptor_pointer = ptrauth_key_asda; + static const ptrauth_key_objc_sel_pointer = ptrauth_key_asdb; + static const ptrauth_key_objc_class_ro_pointer = ptrauth_key_asda; + + final int value; + const ptrauth_key(this.value); + + static ptrauth_key fromValue(int value) => switch (value) { + -1 => ptrauth_key_none, + 0 => ptrauth_key_asia, + 1 => ptrauth_key_asib, + 2 => ptrauth_key_asda, + 3 => ptrauth_key_asdb, + _ => throw ArgumentError('Unknown value for ptrauth_key: $value'), + }; + + @override + String toString() { + if (this == ptrauth_key_asia) + return "ptrauth_key.ptrauth_key_asia, ptrauth_key.ptrauth_key_process_independent_code, ptrauth_key.ptrauth_key_function_pointer, ptrauth_key.ptrauth_key_block_function"; + if (this == ptrauth_key_asib) + return "ptrauth_key.ptrauth_key_asib, ptrauth_key.ptrauth_key_process_dependent_code, ptrauth_key.ptrauth_key_return_address"; + if (this == ptrauth_key_asda) + return "ptrauth_key.ptrauth_key_asda, ptrauth_key.ptrauth_key_process_independent_data, ptrauth_key.ptrauth_key_cxx_vtable_pointer, ptrauth_key.ptrauth_key_method_list_pointer, ptrauth_key.ptrauth_key_objc_isa_pointer, ptrauth_key.ptrauth_key_objc_super_pointer, ptrauth_key.ptrauth_key_block_descriptor_pointer, ptrauth_key.ptrauth_key_objc_class_ro_pointer"; + if (this == ptrauth_key_asdb) + return "ptrauth_key.ptrauth_key_asdb, ptrauth_key.ptrauth_key_process_dependent_data, ptrauth_key.ptrauth_key_frame_pointer, ptrauth_key.ptrauth_key_objc_sel_pointer"; + return super.toString(); + } +} + +typedef ptrdiff_t = ffi.Long; +typedef Dartptrdiff_t = int; + +final class pwg_map_s extends ffi.Struct { + external ffi.Pointer pwg; + + external ffi.Pointer ppd; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pwg, + required ffi.Pointer ppd, + }) => $allocator() + ..ref.pwg = pwg + ..ref.ppd = ppd; +} + +typedef pwg_map_t = pwg_map_s; + +final class pwg_media_s extends ffi.Struct { + external ffi.Pointer pwg; + + external ffi.Pointer legacy; + + external ffi.Pointer ppd; + + @ffi.Int() + external int width; + + @ffi.Int() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pwg, + required ffi.Pointer legacy, + required ffi.Pointer ppd, + required int width, + required int length, + }) => $allocator() + ..ref.pwg = pwg + ..ref.legacy = legacy + ..ref.ppd = ppd + ..ref.width = width + ..ref.length = length; +} + +typedef pwg_media_t = pwg_media_s; + +final class pwg_size_s extends ffi.Struct { + external pwg_map_t map; + + @ffi.Int() + external int width; + + @ffi.Int() + external int length; + + @ffi.Int() + external int left; + + @ffi.Int() + external int bottom; + + @ffi.Int() + external int right; + + @ffi.Int() + external int top; +} + +typedef pwg_size_t = pwg_size_s; + +const int qErr = -1; + +typedef qaddr_t = ffi.Pointer; + +const int qfcbNotCreatedErr = -2119; + +const int qfcbNotFoundErr = -2118; + +enum qos_class_t { + QOS_CLASS_USER_INTERACTIVE(33), + QOS_CLASS_USER_INITIATED(25), + QOS_CLASS_DEFAULT(21), + QOS_CLASS_UTILITY(17), + QOS_CLASS_BACKGROUND(9), + QOS_CLASS_UNSPECIFIED(0); + + final int value; + const qos_class_t(this.value); + + static qos_class_t fromValue(int value) => switch (value) { + 33 => QOS_CLASS_USER_INTERACTIVE, + 25 => QOS_CLASS_USER_INITIATED, + 21 => QOS_CLASS_DEFAULT, + 17 => QOS_CLASS_UTILITY, + 9 => QOS_CLASS_BACKGROUND, + 0 => QOS_CLASS_UNSPECIFIED, + _ => throw ArgumentError('Unknown value for qos_class_t: $value'), + }; +} + +const int qtActionNotHandledErr = -2157; + +const int qtNetworkAlreadyAllocatedErr = -2127; + +const int qtParamErr = -2202; + +const int qtXMLApplicationErr = -2159; + +const int qtXMLParseErr = -2158; + +const int qtmlDllEntryNotFoundErr = -2094; + +const int qtmlDllLoadErr = -2093; + +const int qtmlUninitialized = -2095; + +const int qtsAddressBusyErr = -5421; + +const int qtsBadDataErr = -5402; + +const int qtsBadSelectorErr = -5400; + +const int qtsBadStateErr = -5401; + +const int qtsConnectionFailedErr = -5420; + +const int qtsTimeoutErr = -5408; + +const int qtsTooMuchDataErr = -5406; + +const int qtsUnknownValueErr = -5407; + +const int qtsUnsupportedDataTypeErr = -5403; + +const int qtsUnsupportedFeatureErr = -5405; + +const int qtsUnsupportedRateErr = -5404; + +const int qtvrLibraryLoadErr = -30554; + +const int qtvrUninitialized = -30555; + +typedef quad_t = ffi.Int64; +typedef Dartquad_t = int; + +const int queueFull = -203; + +@Deprecated('Deprecated') +const int rAliasType = 1634494835; + +final class radvisory extends ffi.Struct { + @off_t() + external int ra_offset; + + @ffi.Int() + external int ra_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ra_offset, + required int ra_count, + }) => $allocator() + ..ref.ra_offset = ra_offset + ..ref.ra_count = ra_count; +} + +const int rcDBAsyncNotSupp = -809; + +const int rcDBBadAsyncPB = -810; + +const int rcDBBadDDEV = -808; + +const int rcDBBadSessID = -806; + +const int rcDBBadSessNum = -807; + +const int rcDBBadType = -803; + +const int rcDBBreak = -804; + +const int rcDBError = -802; + +const int rcDBExec = -805; + +const int rcDBNoHandler = -811; + +const int rcDBNull = -800; + +const int rcDBPackNotInited = -813; + +const int rcDBValue = -801; + +const int rcDBWrongVersion = -812; + +const int rcvrErr = -89; + +const int rdVerify = 64; + +const int rdVerifyBit = 6; + +const int rdVerifyMask = 64; + +const int readErr = -19; + +const int readQErr = -3105; + +@Deprecated('Deprecated') +const int readReference = 1; + +const int recNotFnd = -3108; + +const int recordDataTooBigErr = -20001; + +typedef reg64_t = ffi.Uint32; +typedef Dartreg64_t = int; +@Deprecated('Deprecated') +const int registerComponentAfterExisting = 4; + +@Deprecated('Deprecated') +const int registerComponentAliasesOnly = 8; + +@Deprecated('Deprecated') +const int registerComponentGlobal = 1; + +@Deprecated('Deprecated') +const int registerComponentNoDuplicates = 2; + +typedef registerSelectorType = ffi.UnsignedShort; +typedef DartregisterSelectorType = int; +typedef register_t = ffi.Int64; +typedef Dartregister_t = int; +typedef relop = ffi.Short; +typedef Dartrelop = int; + +const int reqAborted = -1105; + +const int reqFailed = -1096; + +const int requiredFlagsDontMatch = -4001; + +const int res1Field = 11; + +const int res2Field = 12; + +const int res3Field = 13; + +const int resAttrErr = -198; + +@Deprecated('Deprecated') +const int resChanged = 2; + +@Deprecated('Deprecated') +const int resChangedBit = 1; + +const int resFNotFound = -193; + +@Deprecated('Deprecated') +const int resLocked = 16; + +@Deprecated('Deprecated') +const int resLockedBit = 4; + +const int resNotFound = -192; + +@Deprecated('Deprecated') +const int resPreload = 4; + +@Deprecated('Deprecated') +const int resPreloadBit = 2; + +const int resProblem = -204; + +@Deprecated('Deprecated') +const int resProtected = 8; + +@Deprecated('Deprecated') +const int resProtectedBit = 3; + +@Deprecated('Deprecated') +const int resPurgeable = 32; + +@Deprecated('Deprecated') +const int resPurgeableBit = 5; + +@Deprecated('Deprecated') +const int resSysHeap = 64; + +@Deprecated('Deprecated') +const int resSysHeapBit = 6; + +@Deprecated('Deprecated') +const int resSysRefBit = 7; + +const int resourceInMemory = -188; + +const int retryComponentRegistrationErr = -3005; + +const int rfNumErr = -51; + +const int rgnOverflowErr = -147; + +const int rgnTooBigErr = -500; + +const int rgnTooBigError = -147; + +@Deprecated('Deprecated') +const int rightSingGuillemet = 221; + +@Deprecated('Deprecated') +const int ringMark = 251; + +typedef rlim_t = __uint64_t; + +final class rlimit extends ffi.Struct { + @rlim_t() + external int rlim_cur; + + @rlim_t() + external int rlim_max; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int rlim_cur, + required int rlim_max, + }) => $allocator() + ..ref.rlim_cur = rlim_cur + ..ref.rlim_max = rlim_max; +} + +const int rmvRefFailed = -197; + +const int rmvResFailed = -196; + +@Deprecated('Deprecated') +const int romanAppFond = 3; + +@Deprecated('Deprecated') +const int romanFlags = 7; + +@Deprecated('Deprecated') +const int romanSysFond = 16383; + +typedef routine_arg_descriptor = mach_msg_type_descriptor_t; +typedef routine_arg_descriptor_t = ffi.Pointer; +typedef routine_arg_offset = ffi.UnsignedInt; +typedef Dartroutine_arg_offset = int; +typedef routine_arg_size = ffi.UnsignedInt; +typedef Dartroutine_arg_size = int; +typedef routine_arg_type = ffi.UnsignedInt; +typedef Dartroutine_arg_type = int; + +final class routine_descriptor extends ffi.Struct { + external mig_impl_routine_t impl_routine; + + external mig_stub_routine_t stub_routine; + + @ffi.UnsignedInt() + external int argc; + + @ffi.UnsignedInt() + external int descr_count; + + external routine_arg_descriptor_t arg_descr; + + @ffi.UnsignedInt() + external int max_reply_msg; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required mig_impl_routine_t impl_routine, + required mig_stub_routine_t stub_routine, + required int argc, + required int descr_count, + required routine_arg_descriptor_t arg_descr, + required int max_reply_msg, + }) => $allocator() + ..ref.impl_routine = impl_routine + ..ref.stub_routine = stub_routine + ..ref.argc = argc + ..ref.descr_count = descr_count + ..ref.arg_descr = arg_descr + ..ref.max_reply_msg = max_reply_msg; +} + +typedef routine_descriptor_t = ffi.Pointer; + +const int routingNotFoundErr = -4275; + +final class rpc_routine_arg_descriptor extends ffi.Struct { + @routine_arg_type() + external int type; + + @routine_arg_size() + external int size; + + @routine_arg_size() + external int count; + + @routine_arg_offset() + external int offset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int type, + required int size, + required int count, + required int offset, + }) => $allocator() + ..ref.type = type + ..ref.size = size + ..ref.count = count + ..ref.offset = offset; +} + +typedef rpc_routine_arg_descriptor_t = ffi.Pointer; + +final class rpc_routine_descriptor extends ffi.Struct { + external mig_impl_routine_t impl_routine; + + external mig_stub_routine_t stub_routine; + + @ffi.UnsignedInt() + external int argc; + + @ffi.UnsignedInt() + external int descr_count; + + external rpc_routine_arg_descriptor_t arg_descr; + + @ffi.UnsignedInt() + external int max_reply_msg; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required mig_impl_routine_t impl_routine, + required mig_stub_routine_t stub_routine, + required int argc, + required int descr_count, + required rpc_routine_arg_descriptor_t arg_descr, + required int max_reply_msg, + }) => $allocator() + ..ref.impl_routine = impl_routine + ..ref.stub_routine = stub_routine + ..ref.argc = argc + ..ref.descr_count = descr_count + ..ref.arg_descr = arg_descr + ..ref.max_reply_msg = max_reply_msg; +} + +typedef rpc_routine_descriptor_t = ffi.Pointer; + +final class rpc_signature extends ffi.Struct { + external rpc_routine_descriptor rd; + + @ffi.Array.multi([1]) + external ffi.Array rad; +} + +final class rpc_subsystem extends ffi.Struct { + external ffi.Pointer reserved; + + @mach_msg_id_t() + external int start; + + @mach_msg_id_t() + external int end; + + @ffi.UnsignedInt() + external int maxsize; + + @vm_address_t() + external int base_addr; + + @ffi.Array.multi([1]) + external ffi.Array routine; + + @ffi.Array.multi([1]) + external ffi.Array arg_descriptor; +} + +typedef rpc_subsystem_t = ffi.Pointer; + +final class rpcent extends ffi.Struct { + external ffi.Pointer r_name; + + external ffi.Pointer> r_aliases; + + @ffi.Int() + external int r_number; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer r_name, + required ffi.Pointer> r_aliases, + required int r_number, + }) => $allocator() + ..ref.r_name = r_name + ..ref.r_aliases = r_aliases + ..ref.r_number = r_number; +} + +typedef rsize_t = __darwin_size_t; +typedef rune_t = __darwin_rune_t; + +final class rusage extends ffi.Struct { + external timeval ru_utime; + + external timeval ru_stime; + + @ffi.Long() + external int ru_maxrss; + + @ffi.Long() + external int ru_ixrss; + + @ffi.Long() + external int ru_idrss; + + @ffi.Long() + external int ru_isrss; + + @ffi.Long() + external int ru_minflt; + + @ffi.Long() + external int ru_majflt; + + @ffi.Long() + external int ru_nswap; + + @ffi.Long() + external int ru_inblock; + + @ffi.Long() + external int ru_oublock; + + @ffi.Long() + external int ru_msgsnd; + + @ffi.Long() + external int ru_msgrcv; + + @ffi.Long() + external int ru_nsignals; + + @ffi.Long() + external int ru_nvcsw; + + @ffi.Long() + external int ru_nivcsw; +} + +typedef rusage_info_current = rusage_info_v6; +typedef rusage_info_t = ffi.Pointer; + +final class rusage_info_v0 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; +} + +final class rusage_info_v1 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; +} + +final class rusage_info_v2 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; +} + +final class rusage_info_v3 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; + + @ffi.Uint64() + external int ri_cpu_time_qos_default; + + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; + + @ffi.Uint64() + external int ri_cpu_time_qos_background; + + @ffi.Uint64() + external int ri_cpu_time_qos_utility; + + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; + + @ffi.Uint64() + external int ri_billed_system_time; + + @ffi.Uint64() + external int ri_serviced_system_time; +} + +final class rusage_info_v4 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; + + @ffi.Uint64() + external int ri_cpu_time_qos_default; + + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; + + @ffi.Uint64() + external int ri_cpu_time_qos_background; + + @ffi.Uint64() + external int ri_cpu_time_qos_utility; + + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; + + @ffi.Uint64() + external int ri_billed_system_time; + + @ffi.Uint64() + external int ri_serviced_system_time; + + @ffi.Uint64() + external int ri_logical_writes; + + @ffi.Uint64() + external int ri_lifetime_max_phys_footprint; + + @ffi.Uint64() + external int ri_instructions; + + @ffi.Uint64() + external int ri_cycles; + + @ffi.Uint64() + external int ri_billed_energy; + + @ffi.Uint64() + external int ri_serviced_energy; + + @ffi.Uint64() + external int ri_interval_max_phys_footprint; + + @ffi.Uint64() + external int ri_runnable_time; +} + +final class rusage_info_v5 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; + + @ffi.Uint64() + external int ri_cpu_time_qos_default; + + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; + + @ffi.Uint64() + external int ri_cpu_time_qos_background; + + @ffi.Uint64() + external int ri_cpu_time_qos_utility; + + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; + + @ffi.Uint64() + external int ri_billed_system_time; + + @ffi.Uint64() + external int ri_serviced_system_time; + + @ffi.Uint64() + external int ri_logical_writes; + + @ffi.Uint64() + external int ri_lifetime_max_phys_footprint; + + @ffi.Uint64() + external int ri_instructions; + + @ffi.Uint64() + external int ri_cycles; + + @ffi.Uint64() + external int ri_billed_energy; + + @ffi.Uint64() + external int ri_serviced_energy; + + @ffi.Uint64() + external int ri_interval_max_phys_footprint; + + @ffi.Uint64() + external int ri_runnable_time; + + @ffi.Uint64() + external int ri_flags; +} + +final class rusage_info_v6 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; + + @ffi.Uint64() + external int ri_cpu_time_qos_default; + + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; + + @ffi.Uint64() + external int ri_cpu_time_qos_background; + + @ffi.Uint64() + external int ri_cpu_time_qos_utility; + + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; + + @ffi.Uint64() + external int ri_billed_system_time; + + @ffi.Uint64() + external int ri_serviced_system_time; + + @ffi.Uint64() + external int ri_logical_writes; + + @ffi.Uint64() + external int ri_lifetime_max_phys_footprint; + + @ffi.Uint64() + external int ri_instructions; + + @ffi.Uint64() + external int ri_cycles; + + @ffi.Uint64() + external int ri_billed_energy; + + @ffi.Uint64() + external int ri_serviced_energy; + + @ffi.Uint64() + external int ri_interval_max_phys_footprint; + + @ffi.Uint64() + external int ri_runnable_time; + + @ffi.Uint64() + external int ri_flags; + + @ffi.Uint64() + external int ri_user_ptime; + + @ffi.Uint64() + external int ri_system_ptime; + + @ffi.Uint64() + external int ri_pinstructions; + + @ffi.Uint64() + external int ri_pcycles; + + @ffi.Uint64() + external int ri_energy_nj; + + @ffi.Uint64() + external int ri_penergy_nj; + + @ffi.Uint64() + external int ri_secure_time_in_system; + + @ffi.Uint64() + external int ri_secure_ptime_in_system; + + @ffi.Uint64() + external int ri_neural_footprint; + + @ffi.Uint64() + external int ri_lifetime_max_neural_footprint; + + @ffi.Uint64() + external int ri_interval_max_neural_footprint; + + @ffi.Array.multi([9]) + external ffi.Array ri_reserved; +} + +@Deprecated('Deprecated') +const int sIQType = 6; + +final class sa_endpoints extends ffi.Struct { + @ffi.UnsignedInt() + external int sae_srcif; + + external ffi.Pointer sae_srcaddr; + + @socklen_t() + external int sae_srcaddrlen; + + external ffi.Pointer sae_dstaddr; + + @socklen_t() + external int sae_dstaddrlen; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sae_srcif, + required ffi.Pointer sae_srcaddr, + required int sae_srcaddrlen, + required ffi.Pointer sae_dstaddr, + required int sae_dstaddrlen, + }) => $allocator() + ..ref.sae_srcif = sae_srcif + ..ref.sae_srcaddr = sae_srcaddr + ..ref.sae_srcaddrlen = sae_srcaddrlen + ..ref.sae_dstaddr = sae_dstaddr + ..ref.sae_dstaddrlen = sae_dstaddrlen; +} + +typedef sa_endpoints_t = sa_endpoints; +typedef sa_family_t = __uint8_t; +typedef sae_associd_t = __uint32_t; +typedef sae_connid_t = __uint32_t; + +const int sameFileErr = -1306; + +const int samplesAlreadyInMediaErr = -2059; + +const int scTypeNotFoundErr = -8971; + +const int scrapFlavorFlagsMismatchErr = -4995; + +const int scrapFlavorNotFoundErr = -102; + +const int scrapFlavorSizeMismatchErr = -4996; + +const int scrapPromiseNotKeptErr = -4992; + +const int scriptCurLang = -6; + +const int scriptDefLang = -7; + +const int sdmInitErr = 11; + +const int sdmJTInitErr = 10; + +const int sdmPRAMInitErr = 13; + +const int sdmPriInitErr = 14; + +const int sdmSRTInitErr = 12; + +const int seNoDB = -8; + +final class searchstate extends ffi.Opaque {} + +const int secLeadingZ = 32; + +typedef sec_certificate_t = ffi.Pointer; +typedef Dartsec_certificate_t = objc.NSObject; +typedef sec_identity_t = ffi.Pointer; +typedef Dartsec_identity_t = objc.NSObject; +typedef sec_object_t = ffi.Pointer; +typedef Dartsec_object_t = objc.NSObject; +typedef sec_protocol_challenge_complete_t = ffi.Pointer; +typedef Dartsec_protocol_challenge_complete_t = + objc.ObjCBlock; +typedef sec_protocol_challenge_t = ffi.Pointer; +typedef Dartsec_protocol_challenge_t = + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >; +typedef sec_protocol_key_update_complete_t = ffi.Pointer; +typedef Dartsec_protocol_key_update_complete_t = + objc.ObjCBlock; +typedef sec_protocol_key_update_t = ffi.Pointer; +typedef Dartsec_protocol_key_update_t = + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >; +typedef sec_protocol_metadata_t = ffi.Pointer; +typedef Dartsec_protocol_metadata_t = objc.NSObject; +typedef sec_protocol_options_t = ffi.Pointer; +typedef Dartsec_protocol_options_t = objc.NSObject; +typedef sec_protocol_pre_shared_key_selection_complete_t = + ffi.Pointer; +typedef Dartsec_protocol_pre_shared_key_selection_complete_t = + objc.ObjCBlock; +typedef sec_protocol_pre_shared_key_selection_t = + ffi.Pointer; +typedef Dartsec_protocol_pre_shared_key_selection_t = + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >; +typedef sec_protocol_verify_complete_t = ffi.Pointer; +typedef Dartsec_protocol_verify_complete_t = + objc.ObjCBlock; +typedef sec_protocol_verify_t = ffi.Pointer; +typedef Dartsec_protocol_verify_t = + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >; +typedef sec_trust_t = ffi.Pointer; +typedef Dartsec_trust_t = objc.NSObject; + +const int secondField = 6; + +const int secondMask = 64; + +const int sectNFErr = -81; + +final class security_token_t extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array val; +} + +const int seekErr = -80; + +typedef segsz_t = ffi.Int32; +typedef Dartsegsz_t = int; + +const int selectorNotSupportedByNodeErr = -30543; + +typedef semaphore_port_t = semaphore_t; +typedef semaphore_t = mach_port_t; + +const int sepNotConsistent = 64; + +const int sepNotIntlSep = 4; + +const int seqGrabInfoNotAvailable = -9407; + +final class servent extends ffi.Struct { + external ffi.Pointer s_name; + + external ffi.Pointer> s_aliases; + + @ffi.Int() + external int s_port; + + external ffi.Pointer s_proto; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer s_name, + required ffi.Pointer> s_aliases, + required int s_port, + required ffi.Pointer s_proto, + }) => $allocator() + ..ref.s_name = s_name + ..ref.s_aliases = s_aliases + ..ref.s_port = s_port + ..ref.s_proto = s_proto; +} + +const int sessClosedErr = -917; + +const int sessTableErr = -907; + +const int settingNotSupportedByNodeErr = -30548; + +final class sf_hdtr extends ffi.Struct { + external ffi.Pointer headers; + + @ffi.Int() + external int hdr_cnt; + + external ffi.Pointer trailers; + + @ffi.Int() + external int trl_cnt; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer headers, + required int hdr_cnt, + required ffi.Pointer trailers, + required int trl_cnt, + }) => $allocator() + ..ref.headers = headers + ..ref.hdr_cnt = hdr_cnt + ..ref.trailers = trailers + ..ref.trl_cnt = trl_cnt; +} + +@ffi.Packed(2) +final class sfntCMapEncoding extends ffi.Struct { + @UInt16() + external int platformID; + + @UInt16() + external int scriptID; + + @UInt32() + external int offset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int platformID, + required int scriptID, + required int offset, + }) => $allocator() + ..ref.platformID = platformID + ..ref.scriptID = scriptID + ..ref.offset = offset; +} + +@ffi.Packed(2) +final class sfntCMapExtendedSubHeader extends ffi.Struct { + @UInt16() + external int format; + + @UInt16() + external int reserved; + + @UInt32() + external int length; + + @UInt32() + external int language; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int format, + required int reserved, + required int length, + required int language, + }) => $allocator() + ..ref.format = format + ..ref.reserved = reserved + ..ref.length = length + ..ref.language = language; +} + +final class sfntCMapHeader extends ffi.Struct { + @UInt16() + external int version; + + @UInt16() + external int numTables; + + @ffi.Array.multi([1]) + external ffi.Array encoding; +} + +final class sfntCMapSubHeader extends ffi.Struct { + @UInt16() + external int format; + + @UInt16() + external int length; + + @UInt16() + external int languageID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int format, + required int length, + required int languageID, + }) => $allocator() + ..ref.format = format + ..ref.length = length + ..ref.languageID = languageID; +} + +@ffi.Packed(2) +final class sfntDescriptorHeader extends ffi.Struct { + @Fixed() + external int version; + + @SInt32() + external int descriptorCount; + + @ffi.Array.multi([1]) + external ffi.Array descriptor; +} + +@ffi.Packed(2) +final class sfntDirectory extends ffi.Struct { + @FourCharCode() + external int format; + + @UInt16() + external int numOffsets; + + @UInt16() + external int searchRange; + + @UInt16() + external int entrySelector; + + @UInt16() + external int rangeShift; + + @ffi.Array.multi([1]) + external ffi.Array table; +} + +@ffi.Packed(2) +final class sfntDirectoryEntry extends ffi.Struct { + @FourCharCode() + external int tableTag; + + @UInt32() + external int checkSum; + + @UInt32() + external int offset; + + @UInt32() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tableTag, + required int checkSum, + required int offset, + required int length, + }) => $allocator() + ..ref.tableTag = tableTag + ..ref.checkSum = checkSum + ..ref.offset = offset + ..ref.length = length; +} + +@ffi.Packed(2) +final class sfntFeatureHeader extends ffi.Struct { + @SInt32() + external int version; + + @UInt16() + external int featureNameCount; + + @UInt16() + external int featureSetCount; + + @SInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array names; + + @ffi.Array.multi([1]) + external ffi.Array settings; + + @ffi.Array.multi([1]) + external ffi.Array runs; +} + +@ffi.Packed(2) +final class sfntFeatureName extends ffi.Struct { + @UInt16() + external int featureType; + + @UInt16() + external int settingCount; + + @SInt32() + external int offsetToSettings; + + @UInt16() + external int featureFlags; + + @SInt16() + external int nameID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int featureType, + required int settingCount, + required int offsetToSettings, + required int featureFlags, + required int nameID, + }) => $allocator() + ..ref.featureType = featureType + ..ref.settingCount = settingCount + ..ref.offsetToSettings = offsetToSettings + ..ref.featureFlags = featureFlags + ..ref.nameID = nameID; +} + +@ffi.Packed(2) +final class sfntFontDescriptor extends ffi.Struct { + @FourCharCode() + external int name; + + @Fixed() + external int value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int name, + required int value, + }) => $allocator() + ..ref.name = name + ..ref.value = value; +} + +final class sfntFontFeatureSetting extends ffi.Struct { + @UInt16() + external int setting; + + @SInt16() + external int nameID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int setting, + required int nameID, + }) => $allocator() + ..ref.setting = setting + ..ref.nameID = nameID; +} + +final class sfntFontRunFeature extends ffi.Struct { + @UInt16() + external int featureType; + + @UInt16() + external int setting; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int featureType, + required int setting, + }) => $allocator() + ..ref.featureType = featureType + ..ref.setting = setting; +} + +@ffi.Packed(2) +final class sfntInstance extends ffi.Struct { + @SInt16() + external int nameID; + + @SInt16() + external int flags; + + @ffi.Array.multi([1]) + external ffi.Array coord; +} + +final class sfntNameHeader extends ffi.Struct { + @UInt16() + external int format; + + @UInt16() + external int count; + + @UInt16() + external int stringOffset; + + @ffi.Array.multi([1]) + external ffi.Array rec; +} + +final class sfntNameRecord extends ffi.Struct { + @UInt16() + external int platformID; + + @UInt16() + external int scriptID; + + @UInt16() + external int languageID; + + @UInt16() + external int nameID; + + @UInt16() + external int length; + + @UInt16() + external int offset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int platformID, + required int scriptID, + required int languageID, + required int nameID, + required int length, + required int offset, + }) => $allocator() + ..ref.platformID = platformID + ..ref.scriptID = scriptID + ..ref.languageID = languageID + ..ref.nameID = nameID + ..ref.length = length + ..ref.offset = offset; +} + +@ffi.Packed(2) +final class sfntVariationAxis extends ffi.Struct { + @FourCharCode() + external int axisTag; + + @Fixed() + external int minValue; + + @Fixed() + external int defaultValue; + + @Fixed() + external int maxValue; + + @SInt16() + external int flags; + + @SInt16() + external int nameID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int axisTag, + required int minValue, + required int defaultValue, + required int maxValue, + required int flags, + required int nameID, + }) => $allocator() + ..ref.axisTag = axisTag + ..ref.minValue = minValue + ..ref.defaultValue = defaultValue + ..ref.maxValue = maxValue + ..ref.flags = flags + ..ref.nameID = nameID; +} + +@ffi.Packed(2) +final class sfntVariationHeader extends ffi.Struct { + @Fixed() + external int version; + + @UInt16() + external int offsetToData; + + @UInt16() + external int countSizePairs; + + @UInt16() + external int axisCount; + + @UInt16() + external int axisSize; + + @UInt16() + external int instanceCount; + + @UInt16() + external int instanceSize; + + @ffi.Array.multi([1]) + external ffi.Array axis; + + @ffi.Array.multi([1]) + external ffi.Array instance; +} + +const int shadow = 16; + +const int sharedFolderIconResource = -3978; + +const int shortDate = 0; + +const int shutDownAlert = 42; + +const int siBadDeviceName = -228; + +const int siBadRefNum = -229; + +const int siBadSoundInDevice = -221; + +const int siDeviceBusyErr = -227; + +const int siHardDriveTooSlow = -224; + +const int siInitSDTblErr = 1; + +const int siInitSPTblErr = 3; + +const int siInitVBLQsErr = 2; + +const int siInputDeviceErr = -230; + +const int siInvalidCompression = -223; + +const int siInvalidSampleRate = -225; + +const int siInvalidSampleSize = -226; + +const int siNoBufferSpecified = -222; + +const int siNoSoundInHardware = -220; + +const int siUnknownInfoType = -231; + +const int siUnknownQuality = -232; + +const int siVBRCompressionNotSupported = -213; + +typedef sig_atomic_t = ffi.Int; +typedef Dartsig_atomic_t = int; +typedef sig_t = ffi.Pointer>; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); + +final class sigaction$1 extends ffi.Struct { + external __sigaction_u __sigaction_u$1; + + @sigset_t() + external int sa_mask; + + @ffi.Int() + external int sa_flags; +} + +final class sigevent extends ffi.Struct { + @ffi.Int() + external int sigev_notify; + + @ffi.Int() + external int sigev_signo; + + external sigval sigev_value; + + external ffi.Pointer> + sigev_notify_function; + + external ffi.Pointer sigev_notify_attributes; +} + +typedef siginfo_t = __siginfo; +typedef sigset_t = __darwin_sigset_t; + +final class sigstack extends ffi.Struct { + external ffi.Pointer ss_sp; + + @ffi.Int() + external int ss_onstack; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer ss_sp, + required int ss_onstack, + }) => $allocator() + ..ref.ss_sp = ss_sp + ..ref.ss_onstack = ss_onstack; +} + +final class sigval extends ffi.Union { + @ffi.Int() + external int sival_int; + + external ffi.Pointer sival_ptr; +} + +final class sigvec$1 extends ffi.Struct { + external ffi.Pointer> + sv_handler; + + @ffi.Int() + external int sv_mask; + + @ffi.Int() + external int sv_flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer> + sv_handler, + required int sv_mask, + required int sv_flags, + }) => $allocator() + ..ref.sv_handler = sv_handler + ..ref.sv_mask = sv_mask + ..ref.sv_flags = sv_flags; +} + +typedef sint16 = ffi.Int16; +typedef Dartsint16 = int; +typedef sint32 = ffi.Int32; +typedef Dartsint32 = int; +typedef sint64 = ffi.Int64; +typedef Dartsint64 = int; +typedef sint8 = ffi.Int8; +typedef Dartsint8 = int; + +const int sizeof_sfntCMapEncoding = 8; + +const int sizeof_sfntCMapExtendedSubHeader = 12; + +const int sizeof_sfntCMapHeader = 4; + +const int sizeof_sfntCMapSubHeader = 6; + +const int sizeof_sfntDescriptorHeader = 8; + +const int sizeof_sfntDirectory = 12; + +const int sizeof_sfntInstance = 4; + +const int sizeof_sfntNameHeader = 6; + +const int sizeof_sfntNameRecord = 12; + +const int sizeof_sfntVariationAxis = 20; + +const int sizeof_sfntVariationHeader = 16; + +const int sktClosedErr = -3109; + +const int sleepQType = 16; + +typedef sleep_type_t = ffi.Int; +typedef Dartsleep_type_t = int; + +const int slotNumErr = -360; + +const int slpQType = 16; + +@Deprecated('Deprecated') +const int smAllScripts = -3; + +@Deprecated('Deprecated') +const int smAmharic = 28; + +@Deprecated('Deprecated') +const int smArabic = 4; + +@Deprecated('Deprecated') +const int smArmenian = 24; + +const int smBLFieldBad = -309; + +const int smBadBoardId = -319; + +const int smBadRefId = -330; + +@Deprecated('Deprecated') +const int smBadScript = -2; + +@Deprecated('Deprecated') +const int smBadVerb = -1; + +const int smBadsList = -331; + +const int smBadsPtrErr = -346; + +@Deprecated('Deprecated') +const int smBengali = 13; + +const int smBlkMoveErr = -340; + +@Deprecated('Deprecated') +const int smBurmese = 19; + +const int smBusErrTO = -320; + +const int smByteLanesErr = -347; + +const int smCPUErr = -334; + +const int smCRCFail = -301; + +@Deprecated('Deprecated') +const int smCentralEuroRoman = 29; + +@Deprecated('Deprecated') +const int smChar1byte = 0; + +@Deprecated('Deprecated') +const int smChar2byte = 32768; + +@Deprecated('Deprecated') +const int smCharAscii = 1; + +@Deprecated('Deprecated') +const int smCharBidirect = 8; + +@Deprecated('Deprecated') +const int smCharBopomofo = 14; + +@Deprecated('Deprecated') +const int smCharContextualLR = 9; + +@Deprecated('Deprecated') +const int smCharEuro = 7; + +@Deprecated('Deprecated') +const int smCharExtAscii = 7; + +@Deprecated('Deprecated') +const int smCharFISGana = 3; + +@Deprecated('Deprecated') +const int smCharFISGreek = 5; + +@Deprecated('Deprecated') +const int smCharFISIdeo = 4; + +@Deprecated('Deprecated') +const int smCharFISKana = 2; + +@Deprecated('Deprecated') +const int smCharFISRussian = 6; + +@Deprecated('Deprecated') +const int smCharGanaKana = 15; + +@Deprecated('Deprecated') +const int smCharHangul = 12; + +@Deprecated('Deprecated') +const int smCharHiragana = 3; + +@Deprecated('Deprecated') +const int smCharHorizontal = 0; + +@Deprecated('Deprecated') +const int smCharIdeographic = 4; + +@Deprecated('Deprecated') +const int smCharJamo = 13; + +@Deprecated('Deprecated') +const int smCharKatakana = 2; + +@Deprecated('Deprecated') +const int smCharLeft = 0; + +@Deprecated('Deprecated') +const int smCharLower = 0; + +@Deprecated('Deprecated') +const int smCharNonContextualLR = 10; + +@Deprecated('Deprecated') +const int smCharPunct = 0; + +@Deprecated('Deprecated') +const int smCharRight = 8192; + +@Deprecated('Deprecated') +const int smCharTwoByteGreek = 5; + +@Deprecated('Deprecated') +const int smCharTwoByteRussian = 6; + +@Deprecated('Deprecated') +const int smCharUpper = 16384; + +@Deprecated('Deprecated') +const int smCharVertical = 4096; + +@Deprecated('Deprecated') +const int smChinese = 2; + +const int smCkStatusErr = -341; + +const int smCodeRevErr = -333; + +@Deprecated('Deprecated') +const int smCurrentScript = -2; + +@Deprecated('Deprecated') +const int smCyrillic = 7; + +@Deprecated('Deprecated') +const int smDevanagari = 9; + +const int smDisDrvrNamErr = -343; + +const int smDisabledSlot = -305; + +const int smDisposePErr = -312; + +@Deprecated('Deprecated') +const int smEastEurRoman = 29; + +const int smEmptySlot = -300; + +@Deprecated('Deprecated') +const int smEthiopic = 28; + +@Deprecated('Deprecated') +const int smExtArabic = 31; + +const int smFHBlkDispErr = -311; + +const int smFHBlockRdErr = -310; + +@Deprecated('Deprecated') +const int smFISClassLvl1 = 0; + +@Deprecated('Deprecated') +const int smFISClassLvl2 = 256; + +@Deprecated('Deprecated') +const int smFISClassUser = 512; + +@Deprecated('Deprecated') +const int smFirstByte = -1; + +@Deprecated('Deprecated') +const int smFondEnd = 49152; + +@Deprecated('Deprecated') +const int smFondStart = 16384; + +const int smFormatErr = -302; + +@Deprecated('Deprecated') +const int smGeez = 28; + +@Deprecated('Deprecated') +const int smGeorgian = 23; + +const int smGetDrvrNamErr = -342; + +const int smGetPRErr = -314; + +@Deprecated('Deprecated') +const int smGreek = 6; + +@Deprecated('Deprecated') +const int smGujarati = 11; + +@Deprecated('Deprecated') +const int smGurmukhi = 10; + +@Deprecated('Deprecated') +const int smHebrew = 5; + +@Deprecated('Deprecated') +const int smIdeographicLevel1 = 0; + +@Deprecated('Deprecated') +const int smIdeographicLevel2 = 256; + +@Deprecated('Deprecated') +const int smIdeographicUser = 512; + +const int smInitStatVErr = -316; + +const int smInitTblVErr = -317; + +@Deprecated('Deprecated') +const int smJamoBogJaeum = 256; + +@Deprecated('Deprecated') +const int smJamoBogMoeum = 768; + +@Deprecated('Deprecated') +const int smJamoJaeum = 0; + +@Deprecated('Deprecated') +const int smJamoMoeum = 512; + +@Deprecated('Deprecated') +const int smJapanese = 1; + +@Deprecated('Deprecated') +const int smKCHRCache = 38; + +@Deprecated('Deprecated') +const int smKanaHardOK = 512; + +@Deprecated('Deprecated') +const int smKanaSmall = 256; + +@Deprecated('Deprecated') +const int smKanaSoftOK = 768; + +@Deprecated('Deprecated') +const int smKannada = 16; + +@Deprecated('Deprecated') +const int smKeyDisableKybdSwitch = -12; + +@Deprecated('Deprecated') +const int smKeyDisableKybds = -6; + +@Deprecated('Deprecated') +const int smKeyEnableKybds = -7; + +@Deprecated('Deprecated') +const int smKeyForceKeyScriptBit = 7; + +@Deprecated('Deprecated') +const int smKeyForceKeyScriptMask = 128; + +@Deprecated('Deprecated') +const int smKeyNextInputMethod = -10; + +@Deprecated('Deprecated') +const int smKeyNextKybd = -4; + +@Deprecated('Deprecated') +const int smKeyNextScript = -1; + +@Deprecated('Deprecated') +const int smKeyRoman = -17; + +@Deprecated('Deprecated') +const int smKeyScript = 22; + +@Deprecated('Deprecated') +const int smKeySetDirLeftRight = -15; + +@Deprecated('Deprecated') +const int smKeySetDirRightLeft = -16; + +@Deprecated('Deprecated') +const int smKeySwapInputMethod = -11; + +@Deprecated('Deprecated') +const int smKeySwapKybd = -5; + +@Deprecated('Deprecated') +const int smKeySwapScript = -3; + +@Deprecated('Deprecated') +const int smKeySysScript = -2; + +@Deprecated('Deprecated') +const int smKeyToggleDirection = -9; + +@Deprecated('Deprecated') +const int smKeyToggleInline = -8; + +@Deprecated('Deprecated') +const int smKhmer = 20; + +@Deprecated('Deprecated') +const int smKlingon = 32; + +@Deprecated('Deprecated') +const int smKorean = 3; + +@Deprecated('Deprecated') +const int smLao = 22; + +@Deprecated('Deprecated') +const int smLaotian = 22; + +@Deprecated('Deprecated') +const int smLastByte = 1; + +@Deprecated('Deprecated') +const int smMalayalam = 17; + +@Deprecated('Deprecated') +const int smMaskAll = -1; + +@Deprecated('Deprecated') +const int smMaskAscii = 1; + +@Deprecated('Deprecated') +const int smMaskAscii1 = 4; + +@Deprecated('Deprecated') +const int smMaskAscii2 = 8; + +@Deprecated('Deprecated') +const int smMaskBopomofo2 = 1024; + +@Deprecated('Deprecated') +const int smMaskGana2 = 128; + +@Deprecated('Deprecated') +const int smMaskHangul2 = 256; + +@Deprecated('Deprecated') +const int smMaskJamo2 = 512; + +@Deprecated('Deprecated') +const int smMaskKana1 = 16; + +@Deprecated('Deprecated') +const int smMaskKana2 = 32; + +@Deprecated('Deprecated') +const int smMaskNative = 2; + +@Deprecated('Deprecated') +const int smMiddleByte = 2; + +@Deprecated('Deprecated') +const int smMongolian = 27; + +const int smNewPErr = -339; + +const int smNilsBlockErr = -336; + +const int smNoBoardId = -315; + +const int smNoBoardSRsrc = -313; + +const int smNoDir = -304; + +const int smNoGoodOpens = -349; + +const int smNoJmpTbl = -318; + +const int smNoMoresRsrcs = -344; + +const int smNosInfoArray = -306; + +@Deprecated('Deprecated') +const int smNotInstalled = 0; + +@Deprecated('Deprecated') +const int smNumberPartsTable = 2; + +const int smOffsetErr = -348; + +@Deprecated('Deprecated') +const int smOriya = 12; + +const int smPRAMInitErr = -292; + +const int smPriInitErr = -293; + +@Deprecated('Deprecated') +const int smPunctBlank = 768; + +@Deprecated('Deprecated') +const int smPunctGraphic = 1280; + +@Deprecated('Deprecated') +const int smPunctNormal = 0; + +@Deprecated('Deprecated') +const int smPunctNumber = 256; + +@Deprecated('Deprecated') +const int smPunctRepeat = 1024; + +@Deprecated('Deprecated') +const int smPunctSymbol = 512; + +@Deprecated('Deprecated') +const int smRSymbol = 8; + +const int smRecNotFnd = -351; + +@Deprecated('Deprecated') +const int smRegionCode = 40; + +const int smReservedErr = -332; + +const int smReservedSlot = -318; + +const int smResrvErr = -307; + +const int smRevisionErr = -303; + +@Deprecated('Deprecated') +const int smRoman = 0; + +@Deprecated('Deprecated') +const int smRussian = 7; + +const int smSDMInitErr = -290; + +const int smSRTInitErr = -291; + +const int smSRTOvrFlErr = -350; + +const int smSelOOBErr = -338; + +@Deprecated('Deprecated') +const int smSimpChinese = 25; + +@Deprecated('Deprecated') +const int smSindhi = 31; + +@Deprecated('Deprecated') +const int smSingleByte = 0; + +@Deprecated('Deprecated') +const int smSinhalese = 18; + +@Deprecated('Deprecated') +const int smSlavic = 29; + +const int smSlotOOBErr = -337; + +@Deprecated('Deprecated') +const int smSysScript = 18; + +@Deprecated('Deprecated') +const int smSystemScript = -1; + +@Deprecated('Deprecated') +const int smTamil = 14; + +@Deprecated('Deprecated') +const int smTelugu = 15; + +@Deprecated('Deprecated') +const int smThai = 21; + +@Deprecated('Deprecated') +const int smTibetan = 26; + +@Deprecated('Deprecated') +const int smTradChinese = 2; + +@Deprecated('Deprecated') +const int smTransAscii = 0; + +@Deprecated('Deprecated') +const int smTransAscii1 = 2; + +@Deprecated('Deprecated') +const int smTransAscii2 = 3; + +@Deprecated('Deprecated') +const int smTransBopomofo2 = 10; + +@Deprecated('Deprecated') +const int smTransCase = 254; + +@Deprecated('Deprecated') +const int smTransGana2 = 7; + +@Deprecated('Deprecated') +const int smTransHangul2 = 8; + +@Deprecated('Deprecated') +const int smTransHangulFormat = 2; + +@Deprecated('Deprecated') +const int smTransJamo2 = 9; + +@Deprecated('Deprecated') +const int smTransKana1 = 4; + +@Deprecated('Deprecated') +const int smTransKana2 = 5; + +@Deprecated('Deprecated') +const int smTransLower = 16384; + +@Deprecated('Deprecated') +const int smTransNative = 1; + +@Deprecated('Deprecated') +const int smTransPreDoubleByting = 1; + +@Deprecated('Deprecated') +const int smTransPreLowerCasing = 2; + +@Deprecated('Deprecated') +const int smTransRuleBaseFormat = 1; + +@Deprecated('Deprecated') +const int smTransSystem = 255; + +@Deprecated('Deprecated') +const int smTransUpper = 32768; + +const int smUnExBusErr = -308; + +@Deprecated('Deprecated') +const int smUnTokenTable = 3; + +const int smUnicodeScript = 126; + +@Deprecated('Deprecated') +const int smUninterp = 32; + +@Deprecated('Deprecated') +const int smUprHalfCharSet = 128; + +@Deprecated('Deprecated') +const int smVietnamese = 30; + +@Deprecated('Deprecated') +const int smWhiteSpaceList = 4; + +@Deprecated('Deprecated') +const int smWordSelectTable = 0; + +@Deprecated('Deprecated') +const int smWordWrapTable = 1; + +const int small1BitMask = 1768125219; + +const int small4BitData = 1768125236; + +const int small8BitData = 1768125240; + +const int smallDateBit = 31; + +@Deprecated('Deprecated') +const int smcClassMask = 3840; + +@Deprecated('Deprecated') +const int smcDoubleMask = 32768; + +@Deprecated('Deprecated') +const int smcOrientationMask = 4096; + +@Deprecated('Deprecated') +const int smcReserved = 240; + +@Deprecated('Deprecated') +const int smcRightMask = 8192; + +@Deprecated('Deprecated') +const int smcTypeMask = 15; + +@Deprecated('Deprecated') +const int smcUpperMask = 16384; + +@Deprecated('Deprecated') +const int smfDisableKeyScriptSync = 27; + +@Deprecated('Deprecated') +const int smfDisableKeyScriptSyncMask = 134217728; + +@Deprecated('Deprecated') +const int smfDualCaret = 30; + +@Deprecated('Deprecated') +const int smfNameTagEnab = 29; + +@Deprecated('Deprecated') +const int smfShowIcon = 31; + +@Deprecated('Deprecated') +const int smfUseAssocFontInfo = 28; + +const int smsGetDrvrErr = -345; + +const int smsPointerNil = -335; + +@Deprecated('Deprecated') +const int smsfAutoInit = 6; + +@Deprecated('Deprecated') +const int smsfB0Digits = 5; + +@Deprecated('Deprecated') +const int smsfContext = 3; + +@Deprecated('Deprecated') +const int smsfForms = 13; + +@Deprecated('Deprecated') +const int smsfIntellCP = 0; + +@Deprecated('Deprecated') +const int smsfLigatures = 14; + +@Deprecated('Deprecated') +const int smsfNatCase = 2; + +@Deprecated('Deprecated') +const int smsfNoForceFont = 4; + +@Deprecated('Deprecated') +const int smsfReverse = 15; + +@Deprecated('Deprecated') +const int smsfSingByte = 1; + +@Deprecated('Deprecated') +const int smsfSynchUnstyledTE = 8; + +@Deprecated('Deprecated') +const int smsfUnivExt = 7; + +const int soCharacterMode = 1667785074; + +const int soCommandDelimiter = 1684826477; + +const int soCurrentA5 = 1836663093; + +const int soCurrentVoice = 1668706168; + +const int soErrorCallBack = 1701995362; + +const int soErrors = 1701999215; + +const int soInputMode = 1768845428; + +const int soNumberMode = 1852662386; + +const int soOutputToAudioDevice = 1869635940; + +const int soOutputToExtAudioFile = 1869635960; + +const int soOutputToFileWithCFURL = 1869635942; + +const int soPhonemeCallBack = 1885889378; + +const int soPhonemeOptions = 1886351476; + +const int soPhonemeSymbols = 1885893497; + +const int soPitchBase = 1885495667; + +const int soPitchMod = 1886220132; + +const int soRate = 1918989413; + +const int soRecentSync = 1937337955; + +const int soRefCon = 1919247971; + +const int soReset = 1920165236; + +const int soSoundOutput = 1936614511; + +const int soSpeechDoneCallBack = 1935958882; + +const int soStatus = 1937006964; + +const int soSyncCallBack = 1937335138; + +const int soSynthExtension = 2020896356; + +const int soSynthType = 1986359923; + +const int soTextDoneCallBack = 1952736098; + +const int soVoiceDescription = 1768842863; + +const int soVoiceFile = 1718773094; + +const int soVolume = 1987013741; + +const int soWordCallBack = 2003067746; + +final class so_np_extensions extends ffi.Struct { + @u_int32_t() + external int npx_flags; + + @u_int32_t() + external int npx_mask; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int npx_flags, + required int npx_mask, + }) => $allocator() + ..ref.npx_flags = npx_flags + ..ref.npx_mask = npx_mask; +} + +final class sockaddr extends ffi.Struct { + @__uint8_t() + external int sa_len; + + @sa_family_t() + external int sa_family; + + @ffi.Array.multi([14]) + external ffi.Array sa_data; +} + +final class sockaddr_in extends ffi.Struct { + @__uint8_t() + external int sin_len; + + @sa_family_t() + external int sin_family; + + @in_port_t() + external int sin_port; + + external in_addr sin_addr; + + @ffi.Array.multi([8]) + external ffi.Array sin_zero; +} + +final class sockaddr_in6 extends ffi.Struct { + @__uint8_t() + external int sin6_len; + + @sa_family_t() + external int sin6_family; + + @in_port_t() + external int sin6_port; + + @__uint32_t() + external int sin6_flowinfo; + + external in6_addr sin6_addr; + + @__uint32_t() + external int sin6_scope_id; +} + +final class sockaddr_storage extends ffi.Struct { + @__uint8_t() + external int ss_len; + + @sa_family_t() + external int ss_family; + + @ffi.Array.multi([6]) + external ffi.Array __ss_pad1; + + @__int64_t() + external int __ss_align; + + @ffi.Array.multi([112]) + external ffi.Array __ss_pad2; +} + +final class sockaddr_un extends ffi.Struct { + @ffi.UnsignedChar() + external int sun_len; + + @sa_family_t() + external int sun_family; + + @ffi.Array.multi([104]) + external ffi.Array sun_path; +} + +typedef socklen_t = __darwin_socklen_t; + +final class sockproto extends ffi.Struct { + @__uint16_t() + external int sp_family; + + @__uint16_t() + external int sp_protocol; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sp_family, + required int sp_protocol, + }) => $allocator() + ..ref.sp_family = sp_family + ..ref.sp_protocol = sp_protocol; +} + +@Deprecated('Deprecated') +const int sortsAfter = 1; + +@Deprecated('Deprecated') +const int sortsBefore = -1; + +@Deprecated('Deprecated') +const int sortsEqual = 0; + +const int soundSupportNotAvailableErr = -2056; + +const int sourceNotFoundErr = -2061; + +const int spdAdjErr = -79; + +const int srcCopy = 0; + +typedef ssize_t = __darwin_ssize_t; +typedef stack_t = __darwin_sigaltstack; + +const int staleEditState = -2025; + +const int startupFolderIconResource = -3981; + +const int statusErr = -18; + +const int strUserBreak = -491; + +const int streamingNodeNotReadyErr = -30553; + +@Deprecated('Deprecated') +const int stringOverflow = 2; + +const int supDay = 1; + +const int supMonth = 4; + +const int supWeek = 2; + +const int supYear = 8; + +typedef suseconds_t = __darwin_suseconds_t; + +const int svAll1BitData = 16843009; + +const int svAll4BitData = 33686018; + +const int svAll8BitData = 67372036; + +const int svAllAvailableData = -1; + +const int svAllLargeData = 255; + +const int svAllMiniData = 16711680; + +const int svAllSmallData = 65280; + +const int svDisabled = -32640; + +const int svLarge1Bit = 1; + +const int svLarge4Bit = 2; + +const int svLarge8Bit = 4; + +const int svMini1Bit = 65536; + +const int svMini4Bit = 131072; + +const int svMini8Bit = 262144; + +const int svSmall1Bit = 256; + +const int svSmall4Bit = 512; + +const int svSmall8Bit = 1024; + +const int svTempDisable = -32768; + +typedef swblk_t = ffi.Int32; +typedef Dartswblk_t = int; +typedef sync_policy_t = ffi.Int; +typedef Dartsync_policy_t = int; + +const int synthNotReady = -242; + +const int synthOpenFailed = -241; + +const int synthesizerNotRespondingOSErr = -2082; + +const int synthesizerOSErr = -2083; + +typedef syscall_arg_t = u_int64_t; + +const int systemCurLang = -2; + +const int systemDefLang = -3; + +const int systemFolderIconResource = -3983; + +@ffi.Packed(4) +final class task_absolutetime_info extends ffi.Struct { + @ffi.Uint64() + external int total_user; + + @ffi.Uint64() + external int total_system; + + @ffi.Uint64() + external int threads_user; + + @ffi.Uint64() + external int threads_system; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int total_user, + required int total_system, + required int threads_user, + required int threads_system, + }) => $allocator() + ..ref.total_user = total_user + ..ref.total_system = total_system + ..ref.threads_user = threads_user + ..ref.threads_system = threads_system; +} + +typedef task_absolutetime_info_data_t = task_absolutetime_info; +typedef task_absolutetime_info_t = ffi.Pointer; + +final class task_affinity_tag_info extends ffi.Struct { + @integer_t() + external int set_count; + + @integer_t() + external int min; + + @integer_t() + external int max; + + @integer_t() + external int task_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int set_count, + required int min, + required int max, + required int task_count, + }) => $allocator() + ..ref.set_count = set_count + ..ref.min = min + ..ref.max = max + ..ref.task_count = task_count; +} + +typedef task_affinity_tag_info_data_t = task_affinity_tag_info; +typedef task_affinity_tag_info_t = ffi.Pointer; +typedef task_array_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_basic_info extends ffi.Struct { + @integer_t() + external int suspend_count; + + @vm_size_t() + external int virtual_size; + + @vm_size_t() + external int resident_size; + + external time_value_t user_time; + + external time_value_t system_time; + + @policy_t() + external int policy; +} + +final class task_basic_info_32 extends ffi.Struct { + @integer_t() + external int suspend_count; + + @natural_t() + external int virtual_size; + + @natural_t() + external int resident_size; + + external time_value_t user_time; + + external time_value_t system_time; + + @policy_t() + external int policy; +} + +typedef task_basic_info_32_data_t = task_basic_info_32; +typedef task_basic_info_32_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_basic_info_64 extends ffi.Struct { + @integer_t() + external int suspend_count; + + @mach_vm_size_t() + external int virtual_size; + + @mach_vm_size_t() + external int resident_size; + + external time_value_t user_time; + + external time_value_t system_time; + + @policy_t() + external int policy; +} + +@ffi.Packed(4) +final class task_basic_info_64_2 extends ffi.Struct { + @integer_t() + external int suspend_count; + + @mach_vm_size_t() + external int virtual_size; + + @mach_vm_size_t() + external int resident_size; + + external time_value_t user_time; + + external time_value_t system_time; + + @policy_t() + external int policy; +} + +typedef task_basic_info_64_2_data_t = task_basic_info_64_2; +typedef task_basic_info_64_2_t = ffi.Pointer; +typedef task_basic_info_64_data_t = task_basic_info_64; +typedef task_basic_info_64_t = ffi.Pointer; +typedef task_basic_info_data_t = task_basic_info; +typedef task_basic_info_t = ffi.Pointer; + +final class task_category_policy extends ffi.Struct { + @ffi.Int() + external int roleAsInt; + + task_role get role => task_role.fromValue(roleAsInt); + set role(task_role value) => roleAsInt = value.value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required task_role role, + }) => $allocator()..ref.role = role; +} + +typedef task_category_policy_data_t = task_category_policy; +typedef task_category_policy_t = ffi.Pointer; +typedef task_corpse_forking_behavior_t = ffi.Uint32; +typedef Darttask_corpse_forking_behavior_t = int; + +@ffi.Packed(4) +final class task_dyld_info extends ffi.Struct { + @mach_vm_address_t() + external int all_image_info_addr; + + @mach_vm_size_t() + external int all_image_info_size; + + @integer_t() + external int all_image_info_format; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int all_image_info_addr, + required int all_image_info_size, + required int all_image_info_format, + }) => $allocator() + ..ref.all_image_info_addr = all_image_info_addr + ..ref.all_image_info_size = all_image_info_size + ..ref.all_image_info_format = all_image_info_format; +} + +typedef task_dyld_info_data_t = task_dyld_info; +typedef task_dyld_info_t = ffi.Pointer; + +final class task_events_info extends ffi.Struct { + @integer_t() + external int faults; + + @integer_t() + external int pageins; + + @integer_t() + external int cow_faults; + + @integer_t() + external int messages_sent; + + @integer_t() + external int messages_received; + + @integer_t() + external int syscalls_mach; + + @integer_t() + external int syscalls_unix; + + @integer_t() + external int csw; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int faults, + required int pageins, + required int cow_faults, + required int messages_sent, + required int messages_received, + required int syscalls_mach, + required int syscalls_unix, + required int csw, + }) => $allocator() + ..ref.faults = faults + ..ref.pageins = pageins + ..ref.cow_faults = cow_faults + ..ref.messages_sent = messages_sent + ..ref.messages_received = messages_received + ..ref.syscalls_mach = syscalls_mach + ..ref.syscalls_unix = syscalls_unix + ..ref.csw = csw; +} + +typedef task_events_info_data_t = task_events_info; +typedef task_events_info_t = ffi.Pointer; +typedef task_exc_guard_behavior_t = ffi.Uint32; +typedef Darttask_exc_guard_behavior_t = int; + +@ffi.Packed(4) +final class task_extmod_info extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array task_uuid; + + external vm_extmod_statistics_data_t extmod_statistics; +} + +typedef task_extmod_info_data_t = task_extmod_info; +typedef task_extmod_info_t = ffi.Pointer; + +final class task_flags_info extends ffi.Struct { + @ffi.Uint32() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + }) => $allocator()..ref.flags = flags; +} + +typedef task_flags_info_data_t = task_flags_info; +typedef task_flags_info_t = ffi.Pointer; +typedef task_flavor_t = natural_t; +typedef task_id_token_t = mach_port_t; +typedef task_info_t = ffi.Pointer; + +final class task_inspect_basic_counts extends ffi.Struct { + @ffi.Uint64() + external int instructions; + + @ffi.Uint64() + external int cycles; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int instructions, + required int cycles, + }) => $allocator() + ..ref.instructions = instructions + ..ref.cycles = cycles; +} + +typedef task_inspect_basic_counts_data_t = task_inspect_basic_counts; +typedef task_inspect_basic_counts_t = ffi.Pointer; + +enum task_inspect_flavor { + TASK_INSPECT_BASIC_COUNTS(1); + + final int value; + const task_inspect_flavor(this.value); + + static task_inspect_flavor fromValue(int value) => switch (value) { + 1 => TASK_INSPECT_BASIC_COUNTS, + _ => throw ArgumentError('Unknown value for task_inspect_flavor: $value'), + }; +} + +typedef task_inspect_flavor_t = natural_t; +typedef task_inspect_info_t = ffi.Pointer; +typedef task_inspect_t = mach_port_t; + +final class task_ipc_space_policy_info extends ffi.Struct { + @ffi.Uint32() + external int space_policy; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int space_policy, + }) => + $allocator()..ref.space_policy = space_policy; +} + +typedef task_ipc_space_policy_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_kernelmemory_info extends ffi.Struct { + @ffi.Uint64() + external int total_palloc; + + @ffi.Uint64() + external int total_pfree; + + @ffi.Uint64() + external int total_salloc; + + @ffi.Uint64() + external int total_sfree; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int total_palloc, + required int total_pfree, + required int total_salloc, + required int total_sfree, + }) => $allocator() + ..ref.total_palloc = total_palloc + ..ref.total_pfree = total_pfree + ..ref.total_salloc = total_salloc + ..ref.total_sfree = total_sfree; +} + +typedef task_kernelmemory_info_data_t = task_kernelmemory_info; +typedef task_kernelmemory_info_t = ffi.Pointer; + +enum task_latency_qos { + LATENCY_QOS_TIER_UNSPECIFIED(0), + LATENCY_QOS_TIER_0(16711681), + LATENCY_QOS_TIER_1(16711682), + LATENCY_QOS_TIER_2(16711683), + LATENCY_QOS_TIER_3(16711684), + LATENCY_QOS_TIER_4(16711685), + LATENCY_QOS_TIER_5(16711686); + + final int value; + const task_latency_qos(this.value); + + static task_latency_qos fromValue(int value) => switch (value) { + 0 => LATENCY_QOS_TIER_UNSPECIFIED, + 16711681 => LATENCY_QOS_TIER_0, + 16711682 => LATENCY_QOS_TIER_1, + 16711683 => LATENCY_QOS_TIER_2, + 16711684 => LATENCY_QOS_TIER_3, + 16711685 => LATENCY_QOS_TIER_4, + 16711686 => LATENCY_QOS_TIER_5, + _ => throw ArgumentError('Unknown value for task_latency_qos: $value'), + }; +} + +typedef task_latency_qos_t = integer_t; +typedef task_name_t = mach_port_t; +typedef task_policy_flavor_t = natural_t; +typedef task_policy_get_t = mach_port_t; +typedef task_policy_set_t = mach_port_t; +typedef task_policy_t = ffi.Pointer; +typedef task_port_array_t = task_array_t; +typedef task_port_t = task_t; + +@ffi.Packed(4) +final class task_power_info extends ffi.Struct { + @ffi.Uint64() + external int total_user; + + @ffi.Uint64() + external int total_system; + + @ffi.Uint64() + external int task_interrupt_wakeups; + + @ffi.Uint64() + external int task_platform_idle_wakeups; + + @ffi.Uint64() + external int task_timer_wakeups_bin_1; + + @ffi.Uint64() + external int task_timer_wakeups_bin_2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int total_user, + required int total_system, + required int task_interrupt_wakeups, + required int task_platform_idle_wakeups, + required int task_timer_wakeups_bin_1, + required int task_timer_wakeups_bin_2, + }) => $allocator() + ..ref.total_user = total_user + ..ref.total_system = total_system + ..ref.task_interrupt_wakeups = task_interrupt_wakeups + ..ref.task_platform_idle_wakeups = task_platform_idle_wakeups + ..ref.task_timer_wakeups_bin_1 = task_timer_wakeups_bin_1 + ..ref.task_timer_wakeups_bin_2 = task_timer_wakeups_bin_2; +} + +typedef task_power_info_data_t = task_power_info; +typedef task_power_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_power_info_v2 extends ffi.Struct { + external task_power_info_data_t cpu_energy; + + external gpu_energy_data gpu_energy; + + @ffi.Uint64() + external int task_energy; + + @ffi.Uint64() + external int task_ptime; + + @ffi.Uint64() + external int task_pset_switches; +} + +typedef task_power_info_v2_data_t = task_power_info_v2; +typedef task_power_info_v2_t = ffi.Pointer; +typedef task_purgable_info_t = vm_purgeable_info; + +final class task_qos_policy extends ffi.Struct { + @task_latency_qos_t() + external int task_latency_qos_tier; + + @task_throughput_qos_t() + external int task_throughput_qos_tier; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int task_latency_qos_tier, + required int task_throughput_qos_tier, + }) => $allocator() + ..ref.task_latency_qos_tier = task_latency_qos_tier + ..ref.task_throughput_qos_tier = task_throughput_qos_tier; +} + +typedef task_qos_policy_t = ffi.Pointer; +typedef task_read_t = mach_port_t; + +enum task_role { + TASK_RENICED(-1), + TASK_UNSPECIFIED(0), + TASK_FOREGROUND_APPLICATION(1), + TASK_BACKGROUND_APPLICATION(2), + TASK_CONTROL_APPLICATION(3), + TASK_GRAPHICS_SERVER(4), + TASK_THROTTLE_APPLICATION(5), + TASK_NONUI_APPLICATION(6), + TASK_DEFAULT_APPLICATION(7), + TASK_DARWINBG_APPLICATION(8), + TASK_USER_INIT_APPLICATION(9); + + final int value; + const task_role(this.value); + + static task_role fromValue(int value) => switch (value) { + -1 => TASK_RENICED, + 0 => TASK_UNSPECIFIED, + 1 => TASK_FOREGROUND_APPLICATION, + 2 => TASK_BACKGROUND_APPLICATION, + 3 => TASK_CONTROL_APPLICATION, + 4 => TASK_GRAPHICS_SERVER, + 5 => TASK_THROTTLE_APPLICATION, + 6 => TASK_NONUI_APPLICATION, + 7 => TASK_DEFAULT_APPLICATION, + 8 => TASK_DARWINBG_APPLICATION, + 9 => TASK_USER_INIT_APPLICATION, + _ => throw ArgumentError('Unknown value for task_role: $value'), + }; +} + +final class task_security_config_info extends ffi.Struct { + @ffi.Uint32() + external int config; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int config, + }) => $allocator()..ref.config = config; +} + +typedef task_security_config_info_t = ffi.Pointer; +typedef task_special_port_t = ffi.Int; +typedef Darttask_special_port_t = int; +typedef task_suspension_token_t = mach_port_t; +typedef task_t = mach_port_t; + +final class task_thread_times_info extends ffi.Struct { + external time_value_t user_time; + + external time_value_t system_time; +} + +typedef task_thread_times_info_data_t = task_thread_times_info; +typedef task_thread_times_info_t = ffi.Pointer; + +enum task_throughput_qos { + THROUGHPUT_QOS_TIER_UNSPECIFIED(0), + THROUGHPUT_QOS_TIER_0(16646145), + THROUGHPUT_QOS_TIER_1(16646146), + THROUGHPUT_QOS_TIER_2(16646147), + THROUGHPUT_QOS_TIER_3(16646148), + THROUGHPUT_QOS_TIER_4(16646149), + THROUGHPUT_QOS_TIER_5(16646150); + + final int value; + const task_throughput_qos(this.value); + + static task_throughput_qos fromValue(int value) => switch (value) { + 0 => THROUGHPUT_QOS_TIER_UNSPECIFIED, + 16646145 => THROUGHPUT_QOS_TIER_0, + 16646146 => THROUGHPUT_QOS_TIER_1, + 16646147 => THROUGHPUT_QOS_TIER_2, + 16646148 => THROUGHPUT_QOS_TIER_3, + 16646149 => THROUGHPUT_QOS_TIER_4, + 16646150 => THROUGHPUT_QOS_TIER_5, + _ => throw ArgumentError('Unknown value for task_throughput_qos: $value'), + }; +} + +typedef task_throughput_qos_t = integer_t; + +@ffi.Packed(4) +final class task_trace_memory_info extends ffi.Struct { + @ffi.Uint64() + external int user_memory_address; + + @ffi.Uint64() + external int buffer_size; + + @ffi.Uint64() + external int mailbox_array_size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int user_memory_address, + required int buffer_size, + required int mailbox_array_size, + }) => $allocator() + ..ref.user_memory_address = user_memory_address + ..ref.buffer_size = buffer_size + ..ref.mailbox_array_size = mailbox_array_size; +} + +typedef task_trace_memory_info_data_t = task_trace_memory_info; +typedef task_trace_memory_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_vm_info extends ffi.Struct { + @mach_vm_size_t() + external int virtual_size; + + @integer_t() + external int region_count; + + @integer_t() + external int page_size; + + @mach_vm_size_t() + external int resident_size; + + @mach_vm_size_t() + external int resident_size_peak; + + @mach_vm_size_t() + external int device; + + @mach_vm_size_t() + external int device_peak; + + @mach_vm_size_t() + external int internal; + + @mach_vm_size_t() + external int internal_peak; + + @mach_vm_size_t() + external int external; + + @mach_vm_size_t() + external int external_peak; + + @mach_vm_size_t() + external int reusable; + + @mach_vm_size_t() + external int reusable_peak; + + @mach_vm_size_t() + external int purgeable_volatile_pmap; + + @mach_vm_size_t() + external int purgeable_volatile_resident; + + @mach_vm_size_t() + external int purgeable_volatile_virtual; + + @mach_vm_size_t() + external int compressed; + + @mach_vm_size_t() + external int compressed_peak; + + @mach_vm_size_t() + external int compressed_lifetime; + + @mach_vm_size_t() + external int phys_footprint; + + @mach_vm_address_t() + external int min_address; + + @mach_vm_address_t() + external int max_address; + + @ffi.Int64() + external int ledger_phys_footprint_peak; + + @ffi.Int64() + external int ledger_purgeable_nonvolatile; + + @ffi.Int64() + external int ledger_purgeable_novolatile_compressed; + + @ffi.Int64() + external int ledger_purgeable_volatile; + + @ffi.Int64() + external int ledger_purgeable_volatile_compressed; + + @ffi.Int64() + external int ledger_tag_network_nonvolatile; + + @ffi.Int64() + external int ledger_tag_network_nonvolatile_compressed; + + @ffi.Int64() + external int ledger_tag_network_volatile; + + @ffi.Int64() + external int ledger_tag_network_volatile_compressed; + + @ffi.Int64() + external int ledger_tag_media_footprint; + + @ffi.Int64() + external int ledger_tag_media_footprint_compressed; + + @ffi.Int64() + external int ledger_tag_media_nofootprint; + + @ffi.Int64() + external int ledger_tag_media_nofootprint_compressed; + + @ffi.Int64() + external int ledger_tag_graphics_footprint; + + @ffi.Int64() + external int ledger_tag_graphics_footprint_compressed; + + @ffi.Int64() + external int ledger_tag_graphics_nofootprint; + + @ffi.Int64() + external int ledger_tag_graphics_nofootprint_compressed; + + @ffi.Int64() + external int ledger_tag_neural_footprint; + + @ffi.Int64() + external int ledger_tag_neural_footprint_compressed; + + @ffi.Int64() + external int ledger_tag_neural_nofootprint; + + @ffi.Int64() + external int ledger_tag_neural_nofootprint_compressed; + + @ffi.Uint64() + external int limit_bytes_remaining; + + @integer_t() + external int decompressions; + + @ffi.Int64() + external int ledger_swapins; + + @ffi.Int64() + external int ledger_tag_neural_nofootprint_total; + + @ffi.Int64() + external int ledger_tag_neural_nofootprint_peak; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int virtual_size, + required int region_count, + required int page_size, + required int resident_size, + required int resident_size_peak, + required int device, + required int device_peak, + required int internal, + required int internal_peak, + required int external, + required int external_peak, + required int reusable, + required int reusable_peak, + required int purgeable_volatile_pmap, + required int purgeable_volatile_resident, + required int purgeable_volatile_virtual, + required int compressed, + required int compressed_peak, + required int compressed_lifetime, + required int phys_footprint, + required int min_address, + required int max_address, + required int ledger_phys_footprint_peak, + required int ledger_purgeable_nonvolatile, + required int ledger_purgeable_novolatile_compressed, + required int ledger_purgeable_volatile, + required int ledger_purgeable_volatile_compressed, + required int ledger_tag_network_nonvolatile, + required int ledger_tag_network_nonvolatile_compressed, + required int ledger_tag_network_volatile, + required int ledger_tag_network_volatile_compressed, + required int ledger_tag_media_footprint, + required int ledger_tag_media_footprint_compressed, + required int ledger_tag_media_nofootprint, + required int ledger_tag_media_nofootprint_compressed, + required int ledger_tag_graphics_footprint, + required int ledger_tag_graphics_footprint_compressed, + required int ledger_tag_graphics_nofootprint, + required int ledger_tag_graphics_nofootprint_compressed, + required int ledger_tag_neural_footprint, + required int ledger_tag_neural_footprint_compressed, + required int ledger_tag_neural_nofootprint, + required int ledger_tag_neural_nofootprint_compressed, + required int limit_bytes_remaining, + required int decompressions, + required int ledger_swapins, + required int ledger_tag_neural_nofootprint_total, + required int ledger_tag_neural_nofootprint_peak, + }) => $allocator() + ..ref.virtual_size = virtual_size + ..ref.region_count = region_count + ..ref.page_size = page_size + ..ref.resident_size = resident_size + ..ref.resident_size_peak = resident_size_peak + ..ref.device = device + ..ref.device_peak = device_peak + ..ref.internal = internal + ..ref.internal_peak = internal_peak + ..ref.external = external + ..ref.external_peak = external_peak + ..ref.reusable = reusable + ..ref.reusable_peak = reusable_peak + ..ref.purgeable_volatile_pmap = purgeable_volatile_pmap + ..ref.purgeable_volatile_resident = purgeable_volatile_resident + ..ref.purgeable_volatile_virtual = purgeable_volatile_virtual + ..ref.compressed = compressed + ..ref.compressed_peak = compressed_peak + ..ref.compressed_lifetime = compressed_lifetime + ..ref.phys_footprint = phys_footprint + ..ref.min_address = min_address + ..ref.max_address = max_address + ..ref.ledger_phys_footprint_peak = ledger_phys_footprint_peak + ..ref.ledger_purgeable_nonvolatile = ledger_purgeable_nonvolatile + ..ref.ledger_purgeable_novolatile_compressed = + ledger_purgeable_novolatile_compressed + ..ref.ledger_purgeable_volatile = ledger_purgeable_volatile + ..ref.ledger_purgeable_volatile_compressed = + ledger_purgeable_volatile_compressed + ..ref.ledger_tag_network_nonvolatile = ledger_tag_network_nonvolatile + ..ref.ledger_tag_network_nonvolatile_compressed = + ledger_tag_network_nonvolatile_compressed + ..ref.ledger_tag_network_volatile = ledger_tag_network_volatile + ..ref.ledger_tag_network_volatile_compressed = + ledger_tag_network_volatile_compressed + ..ref.ledger_tag_media_footprint = ledger_tag_media_footprint + ..ref.ledger_tag_media_footprint_compressed = + ledger_tag_media_footprint_compressed + ..ref.ledger_tag_media_nofootprint = ledger_tag_media_nofootprint + ..ref.ledger_tag_media_nofootprint_compressed = + ledger_tag_media_nofootprint_compressed + ..ref.ledger_tag_graphics_footprint = ledger_tag_graphics_footprint + ..ref.ledger_tag_graphics_footprint_compressed = + ledger_tag_graphics_footprint_compressed + ..ref.ledger_tag_graphics_nofootprint = ledger_tag_graphics_nofootprint + ..ref.ledger_tag_graphics_nofootprint_compressed = + ledger_tag_graphics_nofootprint_compressed + ..ref.ledger_tag_neural_footprint = ledger_tag_neural_footprint + ..ref.ledger_tag_neural_footprint_compressed = + ledger_tag_neural_footprint_compressed + ..ref.ledger_tag_neural_nofootprint = ledger_tag_neural_nofootprint + ..ref.ledger_tag_neural_nofootprint_compressed = + ledger_tag_neural_nofootprint_compressed + ..ref.limit_bytes_remaining = limit_bytes_remaining + ..ref.decompressions = decompressions + ..ref.ledger_swapins = ledger_swapins + ..ref.ledger_tag_neural_nofootprint_total = + ledger_tag_neural_nofootprint_total + ..ref.ledger_tag_neural_nofootprint_peak = + ledger_tag_neural_nofootprint_peak; +} + +typedef task_vm_info_data_t = task_vm_info; +typedef task_vm_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_wait_state_info extends ffi.Struct { + @ffi.Uint64() + external int total_wait_state_time; + + @ffi.Uint64() + external int total_wait_sfi_state_time; + + @ffi.Array.multi([4]) + external ffi.Array _reserved; +} + +typedef task_wait_state_info_data_t = task_wait_state_info; +typedef task_wait_state_info_t = ffi.Pointer; +typedef task_zone_info_array_t = ffi.Pointer; + +final class task_zone_info_data extends ffi.Struct { + @ffi.Uint64() + external int tzi_count; + + @ffi.Uint64() + external int tzi_cur_size; + + @ffi.Uint64() + external int tzi_max_size; + + @ffi.Uint64() + external int tzi_elem_size; + + @ffi.Uint64() + external int tzi_alloc_size; + + @ffi.Uint64() + external int tzi_sum_size; + + @ffi.Uint64() + external int tzi_exhaustible; + + @ffi.Uint64() + external int tzi_collectable; + + @ffi.Uint64() + external int tzi_caller_acct; + + @ffi.Uint64() + external int tzi_task_alloc; + + @ffi.Uint64() + external int tzi_task_free; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tzi_count, + required int tzi_cur_size, + required int tzi_max_size, + required int tzi_elem_size, + required int tzi_alloc_size, + required int tzi_sum_size, + required int tzi_exhaustible, + required int tzi_collectable, + required int tzi_caller_acct, + required int tzi_task_alloc, + required int tzi_task_free, + }) => $allocator() + ..ref.tzi_count = tzi_count + ..ref.tzi_cur_size = tzi_cur_size + ..ref.tzi_max_size = tzi_max_size + ..ref.tzi_elem_size = tzi_elem_size + ..ref.tzi_alloc_size = tzi_alloc_size + ..ref.tzi_sum_size = tzi_sum_size + ..ref.tzi_exhaustible = tzi_exhaustible + ..ref.tzi_collectable = tzi_collectable + ..ref.tzi_caller_acct = tzi_caller_acct + ..ref.tzi_task_alloc = tzi_task_alloc + ..ref.tzi_task_free = tzi_task_free; +} + +typedef task_zone_info_t = task_zone_info_data; +typedef tcp_cc = __uint32_t; + +final class tcp_connection_info extends ffi.Opaque {} + +typedef tcp_seq = __uint32_t; + +final class tcphdr extends ffi.Opaque {} + +const int teScrapSizeErr = -501; + +const int telAPattNotSupp = -10016; + +const int telAlreadyOpen = -10070; + +const int telAutoAnsNotOn = -10112; + +const int telBadAPattErr = -10015; + +const int telBadBearerType = -10058; + +const int telBadCAErr = -10003; + +const int telBadCodeResource = -10108; + +const int telBadDNDType = -10023; + +const int telBadDNErr = -10002; + +const int telBadDNType = -10050; + +const int telBadDisplayMode = -10062; + +const int telBadFeatureID = -10053; + +const int telBadFunction = -10091; + +const int telBadFwdType = -10054; + +const int telBadHTypeErr = -10010; + +const int telBadHandErr = -10004; + +const int telBadIndex = -10017; + +const int telBadIntExt = -10021; + +const int telBadIntercomID = -10052; + +const int telBadLevelErr = -10012; + +const int telBadPageID = -10051; + +const int telBadParkID = -10056; + +const int telBadPickupGroupID = -10055; + +const int telBadProcErr = -10005; + +const int telBadProcID = -10110; + +const int telBadRate = -10059; + +const int telBadSWErr = -10114; + +const int telBadSampleRate = -10115; + +const int telBadSelect = -10057; + +const int telBadStateErr = -10019; + +const int telBadTermErr = -10001; + +const int telBadVTypeErr = -10013; + +const int telCANotAcceptable = -10080; + +const int telCANotDeflectable = -10082; + +const int telCANotRejectable = -10081; + +const int telCAUnavail = -10006; + +const int telCBErr = -10046; + +const int telConfErr = -10042; + +const int telConfLimitErr = -10040; + +const int telConfLimitExceeded = -10047; + +const int telConfNoLimit = -10041; + +const int telConfRej = -10043; + +const int telDNDTypeNotSupp = -10024; + +const int telDNTypeNotSupp = -10060; + +const int telDetAlreadyOn = -10113; + +const int telDeviceNotFound = -10109; + +const int telDisplayModeNotSupp = -10063; + +const int telFeatActive = -10032; + +const int telFeatNotAvail = -10031; + +const int telFeatNotSub = -10030; + +const int telFeatNotSupp = -10033; + +const int telFwdTypeNotSupp = -10061; + +const int telGenericError = -1; + +const int telHTypeNotSupp = -10011; + +const int telIndexNotSupp = -10018; + +const int telInitFailed = -10107; + +const int telIntExtNotSupp = -10022; + +const int telNoCallbackRef = -10064; + +const int telNoCommFolder = -10106; + +const int telNoErr = 0; + +const int telNoMemErr = -10007; + +const int telNoOpenErr = -10008; + +const int telNoSuchTool = -10102; + +const int telNoTools = 8; + +const int telNotEnoughdspBW = -10116; + +const int telPBErr = -10090; + +const int telStateNotSupp = -10020; + +const int telStillNeeded = -10071; + +const int telTermNotOpen = -10072; + +const int telTransferErr = -10044; + +const int telTransferRej = -10045; + +const int telUnknownErr = -10103; + +const int telVTypeNotSupp = -10014; + +const int telValidateFailed = -10111; + +const int textParserBadParamErr = -5220; + +const int textParserBadParserObjectErr = -5223; + +const int textParserBadTextEncodingErr = -5227; + +const int textParserBadTextLanguageErr = -5226; + +const int textParserBadTokenValueErr = -5222; + +const int textParserNoMoreTextErr = -5225; + +const int textParserNoMoreTokensErr = -5229; + +const int textParserNoSuchTokenFoundErr = -5228; + +const int textParserObjectNotFoundErr = -5221; + +const int textParserParamErr = -5224; + +const int themeBadCursorIndexErr = -30565; + +const int themeBadTextColorErr = -30563; + +const int themeHasNoAccentsErr = -30564; + +const int themeInvalidBrushErr = -30560; + +const int themeMonitorDepthNotSupportedErr = -30567; + +const int themeNoAppropriateBrushErr = -30568; + +const int themeProcessNotRegisteredErr = -30562; + +const int themeProcessRegisteredErr = -30561; + +const int themeScriptFontNotFoundErr = -30566; + +const int threadBadAppContextErr = -616; + +const int threadNotFoundErr = -618; + +const int threadProtocolErr = -619; + +const int threadTooManyReqsErr = -617; + +typedef thread_act_array_t = ffi.Pointer; +typedef thread_act_port_array_t = thread_act_array_t; +typedef thread_act_port_t = thread_act_t; +typedef thread_act_t = mach_port_t; + +final class thread_affinity_policy extends ffi.Struct { + @integer_t() + external int affinity_tag; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int affinity_tag, + }) => $allocator()..ref.affinity_tag = affinity_tag; +} + +typedef thread_affinity_policy_data_t = thread_affinity_policy; +typedef thread_affinity_policy_t = ffi.Pointer; +typedef thread_array_t = ffi.Pointer; + +final class thread_background_policy extends ffi.Struct { + @integer_t() + external int priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int priority, + }) => $allocator()..ref.priority = priority; +} + +typedef thread_background_policy_data_t = thread_background_policy; +typedef thread_background_policy_t = ffi.Pointer; + +final class thread_basic_info extends ffi.Struct { + external time_value_t user_time; + + external time_value_t system_time; + + @integer_t() + external int cpu_usage; + + @policy_t() + external int policy; + + @integer_t() + external int run_state; + + @integer_t() + external int flags; + + @integer_t() + external int suspend_count; + + @integer_t() + external int sleep_time; +} + +typedef thread_basic_info_data_t = thread_basic_info; +typedef thread_basic_info_t = ffi.Pointer; + +final class thread_extended_info extends ffi.Struct { + @ffi.Uint64() + external int pth_user_time; + + @ffi.Uint64() + external int pth_system_time; + + @ffi.Int32() + external int pth_cpu_usage; + + @ffi.Int32() + external int pth_policy; + + @ffi.Int32() + external int pth_run_state; + + @ffi.Int32() + external int pth_flags; + + @ffi.Int32() + external int pth_sleep_time; + + @ffi.Int32() + external int pth_curpri; + + @ffi.Int32() + external int pth_priority; + + @ffi.Int32() + external int pth_maxpriority; + + @ffi.Array.multi([64]) + external ffi.Array pth_name; +} + +typedef thread_extended_info_data_t = thread_extended_info; +typedef thread_extended_info_t = ffi.Pointer; + +final class thread_extended_policy extends ffi.Struct { + @boolean_t() + external int timeshare; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int timeshare, + }) => $allocator()..ref.timeshare = timeshare; +} + +typedef thread_extended_policy_data_t = thread_extended_policy; +typedef thread_extended_policy_t = ffi.Pointer; +typedef thread_flavor_t = natural_t; + +final class thread_identifier_info extends ffi.Struct { + @ffi.Uint64() + external int thread_id; + + @ffi.Uint64() + external int thread_handle; + + @ffi.Uint64() + external int dispatch_qaddr; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int thread_id, + required int thread_handle, + required int dispatch_qaddr, + }) => $allocator() + ..ref.thread_id = thread_id + ..ref.thread_handle = thread_handle + ..ref.dispatch_qaddr = dispatch_qaddr; +} + +typedef thread_identifier_info_data_t = thread_identifier_info; +typedef thread_identifier_info_t = ffi.Pointer; +typedef thread_info_t = ffi.Pointer; +typedef thread_inspect_t = mach_port_t; + +final class thread_latency_qos_policy extends ffi.Struct { + @thread_latency_qos_t() + external int thread_latency_qos_tier; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int thread_latency_qos_tier, + }) => + $allocator() + ..ref.thread_latency_qos_tier = thread_latency_qos_tier; +} + +typedef thread_latency_qos_policy_data_t = thread_latency_qos_policy; +typedef thread_latency_qos_policy_t = ffi.Pointer; +typedef thread_latency_qos_t = integer_t; +typedef thread_policy_flavor_t = natural_t; +typedef thread_policy_t = ffi.Pointer; +typedef thread_port_array_t = thread_array_t; +typedef thread_port_t = thread_t; + +final class thread_precedence_policy extends ffi.Struct { + @integer_t() + external int importance; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int importance, + }) => $allocator()..ref.importance = importance; +} + +typedef thread_precedence_policy_data_t = thread_precedence_policy; +typedef thread_precedence_policy_t = ffi.Pointer; +typedef thread_read_t = mach_port_t; + +final class thread_standard_policy extends ffi.Struct { + @natural_t() + external int no_data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int no_data, + }) => $allocator()..ref.no_data = no_data; +} + +typedef thread_standard_policy_data_t = thread_standard_policy; +typedef thread_standard_policy_t = ffi.Pointer; +typedef thread_state_flavor_array_t = ffi.Pointer; +typedef thread_state_flavor_t = ffi.Int; +typedef Dartthread_state_flavor_t = int; +typedef thread_state_t = ffi.Pointer; +typedef thread_t = mach_port_t; + +final class thread_throughput_qos_policy extends ffi.Struct { + @thread_throughput_qos_t() + external int thread_throughput_qos_tier; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int thread_throughput_qos_tier, + }) => + $allocator() + ..ref.thread_throughput_qos_tier = thread_throughput_qos_tier; +} + +typedef thread_throughput_qos_policy_data_t = thread_throughput_qos_policy; +typedef thread_throughput_qos_policy_t = + ffi.Pointer; +typedef thread_throughput_qos_t = integer_t; + +final class thread_time_constraint_policy extends ffi.Struct { + @ffi.Uint32() + external int period; + + @ffi.Uint32() + external int computation; + + @ffi.Uint32() + external int constraint; + + @boolean_t() + external int preemptible; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int period, + required int computation, + required int constraint, + required int preemptible, + }) => $allocator() + ..ref.period = period + ..ref.computation = computation + ..ref.constraint = constraint + ..ref.preemptible = preemptible; +} + +typedef thread_time_constraint_policy_data_t = thread_time_constraint_policy; +typedef thread_time_constraint_policy_t = + ffi.Pointer; +@Deprecated('Deprecated') +const int tilde = 247; + +const int timeCycle12 = 255; + +const int timeCycle24 = 0; + +const int timeCycleZero = 1; + +const int timeNotInMedia = -2032; + +const int timeNotInTrack = -2031; + +const int timeNotInViewErr = -30546; + +typedef time_t = __darwin_time_t; + +final class time_value extends ffi.Struct { + @integer_t() + external int seconds; + + @integer_t() + external int microseconds; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int seconds, + required int microseconds, + }) => $allocator() + ..ref.seconds = seconds + ..ref.microseconds = microseconds; +} + +typedef time_value_t = time_value; + +final class timespec extends ffi.Struct { + @__darwin_time_t() + external int tv_sec; + + @ffi.Long() + external int tv_nsec; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tv_sec, + required int tv_nsec, + }) => $allocator() + ..ref.tv_sec = tv_sec + ..ref.tv_nsec = tv_nsec; +} + +final class timeval extends ffi.Struct { + @__darwin_time_t() + external int tv_sec; + + @__darwin_suseconds_t() + external int tv_usec; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tv_sec, + required int tv_usec, + }) => $allocator() + ..ref.tv_sec = tv_sec + ..ref.tv_usec = tv_usec; +} + +final class timeval64 extends ffi.Struct { + @__int64_t() + external int tv_sec; + + @__int64_t() + external int tv_usec; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tv_sec, + required int tv_usec, + }) => $allocator() + ..ref.tv_sec = tv_sec + ..ref.tv_usec = tv_usec; +} + +final class timezone extends ffi.Struct { + @ffi.Int() + external int tz_minuteswest; + + @ffi.Int() + external int tz_dsttime; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tz_minuteswest, + required int tz_dsttime, + }) => $allocator() + ..ref.tz_minuteswest = tz_minuteswest + ..ref.tz_dsttime = tz_dsttime; +} + +const int tk0BadErr = -76; + +enum tls_ciphersuite_group_t { + tls_ciphersuite_group_default(0), + tls_ciphersuite_group_compatibility(1), + tls_ciphersuite_group_legacy(2), + tls_ciphersuite_group_ats(3), + tls_ciphersuite_group_ats_compatibility(4); + + final int value; + const tls_ciphersuite_group_t(this.value); + + static tls_ciphersuite_group_t fromValue(int value) => switch (value) { + 0 => tls_ciphersuite_group_default, + 1 => tls_ciphersuite_group_compatibility, + 2 => tls_ciphersuite_group_legacy, + 3 => tls_ciphersuite_group_ats, + 4 => tls_ciphersuite_group_ats_compatibility, + _ => throw ArgumentError( + 'Unknown value for tls_ciphersuite_group_t: $value', + ), + }; +} + +enum tls_ciphersuite_t { + tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA(10), + tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA(47), + tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA(53), + tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256(156), + tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384(157), + tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256(60), + tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256(61), + tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA(-16376), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA(-16375), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA(-16374), + tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA(-16366), + tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA(-16365), + tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA(-16364), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256(-16349), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384(-16348), + tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256(-16345), + tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384(-16344), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256(-16341), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384(-16340), + tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256(-16337), + tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384(-16336), + tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256(-13144), + tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256(-13143), + tls_ciphersuite_AES_128_GCM_SHA256(4865), + tls_ciphersuite_AES_256_GCM_SHA384(4866), + tls_ciphersuite_CHACHA20_POLY1305_SHA256(4867); + + final int value; + const tls_ciphersuite_t(this.value); + + static tls_ciphersuite_t fromValue(int value) => switch (value) { + 10 => tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA, + 47 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA, + 53 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA, + 156 => tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256, + 157 => tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384, + 60 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256, + 61 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256, + -16376 => tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, + -16375 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, + -16374 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, + -16366 => tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, + -16365 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA, + -16364 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA, + -16349 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, + -16348 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, + -16345 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256, + -16344 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384, + -16341 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, + -16340 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, + -16337 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256, + -16336 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384, + -13144 => tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, + -13143 => tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, + 4865 => tls_ciphersuite_AES_128_GCM_SHA256, + 4866 => tls_ciphersuite_AES_256_GCM_SHA384, + 4867 => tls_ciphersuite_CHACHA20_POLY1305_SHA256, + _ => throw ArgumentError('Unknown value for tls_ciphersuite_t: $value'), + }; +} + +enum tls_protocol_version_t { + tls_protocol_version_TLSv10(769), + tls_protocol_version_TLSv11(770), + tls_protocol_version_TLSv12(771), + tls_protocol_version_TLSv13(772), + tls_protocol_version_DTLSv10(-257), + tls_protocol_version_DTLSv12(-259); + + final int value; + const tls_protocol_version_t(this.value); + + static tls_protocol_version_t fromValue(int value) => switch (value) { + 769 => tls_protocol_version_TLSv10, + 770 => tls_protocol_version_TLSv11, + 771 => tls_protocol_version_TLSv12, + 772 => tls_protocol_version_TLSv13, + -257 => tls_protocol_version_DTLSv10, + -259 => tls_protocol_version_DTLSv12, + _ => throw ArgumentError( + 'Unknown value for tls_protocol_version_t: $value', + ), + }; +} + +final class tm extends ffi.Struct { + @ffi.Int() + external int tm_sec; + + @ffi.Int() + external int tm_min; + + @ffi.Int() + external int tm_hour; + + @ffi.Int() + external int tm_mday; + + @ffi.Int() + external int tm_mon; + + @ffi.Int() + external int tm_year; + + @ffi.Int() + external int tm_wday; + + @ffi.Int() + external int tm_yday; + + @ffi.Int() + external int tm_isdst; + + @ffi.Long() + external int tm_gmtoff; + + external ffi.Pointer tm_zone; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tm_sec, + required int tm_min, + required int tm_hour, + required int tm_mday, + required int tm_mon, + required int tm_year, + required int tm_wday, + required int tm_yday, + required int tm_isdst, + required int tm_gmtoff, + required ffi.Pointer tm_zone, + }) => $allocator() + ..ref.tm_sec = tm_sec + ..ref.tm_min = tm_min + ..ref.tm_hour = tm_hour + ..ref.tm_mday = tm_mday + ..ref.tm_mon = tm_mon + ..ref.tm_year = tm_year + ..ref.tm_wday = tm_wday + ..ref.tm_yday = tm_yday + ..ref.tm_isdst = tm_isdst + ..ref.tm_gmtoff = tm_gmtoff + ..ref.tm_zone = tm_zone; +} + +const int tmfoErr = -42; + +const int tmwdoErr = -121; + +const int togChar12HourBit = 30; + +const int togCharZCycleBit = 29; + +const int togDelta12HourBit = 28; + +const int toggleBadChar = 4; + +const int toggleBadDelta = 3; + +const int toggleBadField = 2; + +const int toggleBadNum = 6; + +const int toggleErr3 = 7; + +const int toggleErr4 = 8; + +const int toggleErr5 = 9; + +const int toggleOK = 1; + +const int toggleOutOfRange = 7; + +const int toggleUndefined = 0; + +const int toggleUnknown = 5; + +const int tokDecPoint = 14; + +const int tokEMinus = 16; + +const int tokEPlus = 15; + +const int tokEscape = 13; + +const int tokLeadPlacer = 3; + +const int tokLeader = 4; + +const int tokLeftQuote = 1; + +const int tokMaxSymbols = 31; + +const int tokMinusSign = 9; + +const int tokNonLeader = 5; + +const int tokPercent = 7; + +const int tokPlusSign = 8; + +const int tokReserved = 11; + +const int tokRightQuote = 2; + +const int tokSeparator = 12; + +const int tokThousands = 10; + +const int tokZeroLead = 6; + +@Deprecated('Deprecated') +const int token1Quote = 52; + +@Deprecated('Deprecated') +const int token2Equal = 38; + +@Deprecated('Deprecated') +const int token2Quote = 51; + +@Deprecated('Deprecated') +const int tokenAlpha = 4; + +@Deprecated('Deprecated') +const int tokenAltNum = 11; + +@Deprecated('Deprecated') +const int tokenAltReal = 13; + +@Deprecated('Deprecated') +const int tokenAmpersand = 57; + +@Deprecated('Deprecated') +const int tokenAsterisk = 26; + +@Deprecated('Deprecated') +const int tokenAtSign = 58; + +@Deprecated('Deprecated') +const int tokenBackSlash = 30; + +@Deprecated('Deprecated') +const int tokenBar = 59; + +@Deprecated('Deprecated') +const int tokenCapPi = 66; + +@Deprecated('Deprecated') +const int tokenCarat = 55; + +@Deprecated('Deprecated') +const int tokenCaret = 55; + +@Deprecated('Deprecated') +const int tokenCenterDot = 78; + +@Deprecated('Deprecated') +const int tokenColon = 68; + +@Deprecated('Deprecated') +const int tokenColonEqual = 39; + +@Deprecated('Deprecated') +const int tokenComma = 45; + +@Deprecated('Deprecated') +const int tokenDivide = 27; + +@Deprecated('Deprecated') +const int tokenDollar = 70; + +@Deprecated('Deprecated') +const int tokenEllipsis = 77; + +@Deprecated('Deprecated') +const int tokenEmpty = -1; + +@Deprecated('Deprecated') +const int tokenEqual = 33; + +const int tokenErr = 33024; + +@Deprecated('Deprecated') +const int tokenEscape = 10; + +@Deprecated('Deprecated') +const int tokenExclam = 43; + +@Deprecated('Deprecated') +const int tokenExclamEqual = 42; + +@Deprecated('Deprecated') +const int tokenFraction = 72; + +@Deprecated('Deprecated') +const int tokenGreat = 32; + +@Deprecated('Deprecated') +const int tokenGreatEqual1 = 37; + +@Deprecated('Deprecated') +const int tokenGreatEqual2 = 36; + +@Deprecated('Deprecated') +const int tokenHash = 69; + +@Deprecated('Deprecated') +const int tokenInfinity = 67; + +@Deprecated('Deprecated') +const int tokenIntegral = 64; + +@Deprecated('Deprecated') +const int tokenIntl = 4; + +@Deprecated('Deprecated') +const int tokenIntlCurrency = 73; + +@Deprecated('Deprecated') +const int tokenLeft1Quote = 49; + +@Deprecated('Deprecated') +const int tokenLeft2Quote = 47; + +@Deprecated('Deprecated') +const int tokenLeftBracket = 18; + +@Deprecated('Deprecated') +const int tokenLeftComment = 7; + +@Deprecated('Deprecated') +const int tokenLeftCurly = 20; + +@Deprecated('Deprecated') +const int tokenLeftEnclose = 22; + +@Deprecated('Deprecated') +const int tokenLeftLit = 2; + +@Deprecated('Deprecated') +const int tokenLeftParen = 16; + +@Deprecated('Deprecated') +const int tokenLeftSingGuillemet = 74; + +@Deprecated('Deprecated') +const int tokenLess = 31; + +@Deprecated('Deprecated') +const int tokenLessEqual1 = 35; + +@Deprecated('Deprecated') +const int tokenLessEqual2 = 34; + +@Deprecated('Deprecated') +const int tokenLessGreat = 41; + +@Deprecated('Deprecated') +const int tokenLiteral = 9; + +@Deprecated('Deprecated') +const int tokenMicro = 65; + +@Deprecated('Deprecated') +const int tokenMinus = 25; + +@Deprecated('Deprecated') +const int tokenNewLine = 6; + +@Deprecated('Deprecated') +const int tokenNil = 127; + +@Deprecated('Deprecated') +const int tokenNoBreakSpace = 71; + +@Deprecated('Deprecated') +const int tokenNotEqual = 40; + +@Deprecated('Deprecated') +const int tokenNumeric = 5; + +@Deprecated('Deprecated') +const int tokenOK = 0; + +@Deprecated('Deprecated') +const int tokenOverflow = 1; + +@Deprecated('Deprecated') +const int tokenPerThousand = 76; + +@Deprecated('Deprecated') +const int tokenPercent = 54; + +@Deprecated('Deprecated') +const int tokenPeriod = 46; + +@Deprecated('Deprecated') +const int tokenPi = 61; + +@Deprecated('Deprecated') +const int tokenPlus = 24; + +@Deprecated('Deprecated') +const int tokenPlusMinus = 28; + +@Deprecated('Deprecated') +const int tokenQuestion = 60; + +@Deprecated('Deprecated') +const int tokenRealNum = 12; + +@Deprecated('Deprecated') +const int tokenReserve1 = 14; + +@Deprecated('Deprecated') +const int tokenReserve2 = 15; + +@Deprecated('Deprecated') +const int tokenRight1Quote = 50; + +@Deprecated('Deprecated') +const int tokenRight2Quote = 48; + +@Deprecated('Deprecated') +const int tokenRightBracket = 19; + +@Deprecated('Deprecated') +const int tokenRightComment = 8; + +@Deprecated('Deprecated') +const int tokenRightCurly = 21; + +@Deprecated('Deprecated') +const int tokenRightEnclose = 23; + +@Deprecated('Deprecated') +const int tokenRightLit = 3; + +@Deprecated('Deprecated') +const int tokenRightParen = 17; + +@Deprecated('Deprecated') +const int tokenRightSingGuillemet = 75; + +@Deprecated('Deprecated') +const int tokenRoot = 62; + +@Deprecated('Deprecated') +const int tokenSemicolon = 53; + +@Deprecated('Deprecated') +const int tokenSigma = 63; + +@Deprecated('Deprecated') +const int tokenSlash = 29; + +@Deprecated('Deprecated') +const int tokenTilda = 44; + +@Deprecated('Deprecated') +const int tokenTilde = 44; + +@Deprecated('Deprecated') +const int tokenUnderline = 56; + +@Deprecated('Deprecated') +const int tokenUnknown = 0; + +@Deprecated('Deprecated') +const int tokenWhite = 1; + +typedef token_t = au_token; + +const int tooManyReqs = -1097; + +const int tooManySeps = 32; + +const int tooManySkts = -1098; + +const int trackIDNotFound = -2029; + +const int trackNotInMovie = -2030; + +const int trashIconResource = -3993; + +const int true$ = 1; + +@Deprecated('Deprecated') +const int true32b = 1; + +const int tsmAlreadyRegisteredErr = -2503; + +const int tsmCantChangeForcedClassStateErr = -2530; + +const int tsmCantOpenComponentErr = -2509; + +const int tsmComponentAlreadyOpenErr = -2515; + +const int tsmComponentNoErr = 0; + +const int tsmComponentPropertyNotFoundErr = -2532; + +const int tsmComponentPropertyUnsupportedErr = -2531; + +const int tsmDefaultIsNotInputMethodErr = -2524; + +const int tsmDocNotActiveErr = -2507; + +const int tsmDocPropertyBufferTooSmallErr = -2529; + +const int tsmDocPropertyNotFoundErr = -2528; + +const int tsmDocumentOpenErr = -2511; + +const int tsmInputMethodIsOldErr = -2516; + +const int tsmInputMethodNotFoundErr = -2501; + +const int tsmInputModeChangeFailedErr = -2533; + +const int tsmInvalidContext = -2520; + +const int tsmInvalidDocIDErr = -2505; + +const int tsmNeverRegisteredErr = -2504; + +const int tsmNoHandler = -2521; + +const int tsmNoMoreTokens = -2522; + +const int tsmNoOpenTSErr = -2508; + +const int tsmNoStem = -2523; + +const int tsmNotAnAppErr = -2502; + +const int tsmScriptHasNoIMErr = -2517; + +const int tsmTSHasNoMenuErr = -2513; + +const int tsmTSMDocBusyErr = -2506; + +const int tsmTSNotOpenErr = -2514; + +const int tsmTextServiceNotFoundErr = -2510; + +const int tsmUnknownErr = -2519; + +const int tsmUnsupScriptLanguageErr = -2500; + +const int tsmUnsupportedTypeErr = -2518; + +const int tsmUseInputWindowErr = -2512; + +const int ttDisabled = 1; + +const int ttLabel1 = 256; + +const int ttLabel2 = 512; + +const int ttLabel3 = 768; + +const int ttLabel4 = 1024; + +const int ttLabel5 = 1280; + +const int ttLabel6 = 1536; + +const int ttLabel7 = 1792; + +const int ttNone = 0; + +const int ttOffline = 2; + +const int ttOpen = 3; + +const int ttSelected = 16384; + +const int ttSelectedDisabled = 16385; + +const int ttSelectedOffline = 16386; + +const int ttSelectedOpen = 16387; + +const int tuneParseOSErr = -2087; + +const int tunePlayerFullOSErr = -2086; + +const int twoSideErr = -78; + +const int type128BitFloatingPoint = 1818518124; + +const int typeAEList = 1818850164; + +const int typeAERecord = 1919247215; + +const int typeAEText = 1951684692; + +const int typeAbsoluteOrdinal = 1633842031; + +const int typeAlias = 1634494835; + +const int typeAppParameters = 1634758753; + +const int typeApplSignature = 1936287598; + +const int typeAppleEvent = 1634039412; + +const int typeApplicationBundleID = 1651863140; + +const int typeApplicationURL = 1634759276; + +const int typeArc = 1667330659; + +const int typeAuditToken = 1953459054; + +const int typeBest = 1650815860; + +const int typeBookmarkData = 1651339883; + +const int typeBoolean = 1651470188; + +const int typeCFAbsoluteTime = 1667654004; + +const int typeCFArrayRef = 1667654002; + +const int typeCFAttributedStringRef = 1667654003; + +const int typeCFBooleanRef = 1667658854; + +const int typeCFDictionaryRef = 1667654755; + +const int typeCFMutableArrayRef = 1667657057; + +const int typeCFMutableAttributedStringRef = 1667653985; + +const int typeCFMutableDictionaryRef = 1667657060; + +const int typeCFMutableStringRef = 1667657075; + +const int typeCFNumberRef = 1667657314; + +const int typeCFStringRef = 1667658612; + +const int typeCFTypeRef = 1667658873; + +const int typeCString = 1668510834; + +const int typeCell = 1667458412; + +const int typeCentimeters = 1668117618; + +const int typeChar = 1413830740; + +const int typeClassInfo = 1734569065; + +const int typeColorTable = 1668051572; + +const int typeColumn = 1667460972; + +const int typeCompDescriptor = 1668116580; + +const int typeComponentInstance = 1668116585; + +const int typeCubicCentimeter = 1667460468; + +const int typeCubicFeet = 1667655028; + +const int typeCubicInches = 1668639086; + +const int typeCubicMeters = 1668113780; + +const int typeCubicYards = 1668903524; + +const int typeCurrentContainer = 1667460724; + +const int typeDashStyle = 1952735603; + +const int typeData = 1952740449; + +const int typeDecimalStruct = 1684366189; + +const int typeDegreesC = 1684367203; + +const int typeDegreesF = 1684367206; + +const int typeDegreesK = 1684367211; + +const int typeDrawingArea = 1667527287; + +const int typeEPS = 1162892064; + +const int typeElemInfo = 1701603694; + +const int typeEncodedString = 1701733235; + +const int typeEnumerated = 1701737837; + +const int typeEnumeration = 1701737837; + +const int typeEventInfo = 1702259054; + +const int typeEventRecord = 1702261347; + +const int typeEventRef = 1702261350; + +const int typeFSRef = 1718841958; + +const int typeFalse = 1717660787; + +const int typeFeet = 1717921140; + +const int typeFileURL = 1718973036; + +const int typeFinderWindow = 1719101806; + +const int typeFixed = 1718188132; + +const int typeFixedPoint = 1718644340; + +const int typeFixedRectangle = 1718772596; + +const int typeGIF = 1195984486; + +const int typeGallons = 1734437998; + +const int typeGlyphInfoArray = 1735158113; + +const int typeGrams = 1735549293; + +const int typeGraphicLine = 1735158126; + +const int typeGraphicText = 1667724408; + +const int typeGroupedGraphic = 1668311395; + +const int typeHIMenu = 1836016234; + +const int typeHIWindow = 2003788394; + +const int typeIEEE32BitFloatingPoint = 1936289383; + +const int typeIEEE64BitFloatingPoint = 1685026146; + +const int typeISO8601DateTime = 1769172852; + +const int typeInches = 1768842088; + +const int typeIndexDescriptor = 1768842341; + +const int typeInsertionLoc = 1768846188; + +const int typeIntlText = 1769240692; + +const int typeIntlWritingCode = 1768846444; + +const int typeJPEG = 1246774599; + +const int typeKernelProcessID = 1802529124; + +const int typeKeyword = 1801812343; + +const int typeKilograms = 1801941613; + +const int typeKilometers = 1802335346; + +const int typeLiters = 1818850418; + +const int typeLogicalDescriptor = 1819240297; + +const int typeLongDateTime = 1818522656; + +const int typeLongFixed = 1818654820; + +const int typeLongFixedPoint = 1818652788; + +const int typeLongFixedRectangle = 1818653283; + +const int typeLongPoint = 1819307636; + +const int typeLongRectangle = 1819435892; + +const int typeLowLevelEventRecord = 1702261874; + +const int typeMachPort = 1886351988; + +const int typeMachineLoc = 1833725795; + +const int typeMeters = 1835365490; + +const int typeMiles = 1835625573; + +const int typeNull = 1853189228; + +const int typeOSLTokenList = 1869837420; + +const int typeObjectBeingExamined = 1702391150; + +const int typeObjectSpecifier = 1868720672; + +const int typeOffsetArray = 1868980601; + +const int typeOunces = 1870295840; + +const int typeOval = 1668249196; + +const int typePString = 1886614642; + +const int typeParamInfo = 1886218606; + +const int typePict = 1346978644; + +const int typePixMapMinus = 1953525101; + +const int typePixelMap = 1668311416; + +const int typePolygon = 1668310894; + +const int typePounds = 1818391328; + +const int typeProcessSerialNumber = 1886613024; + +const int typePropInfo = 1885957734; + +const int typeProperty = 1886547824; + +const int typePtr = 1886679584; + +const int typeQDPoint = 1363439732; + +const int typeQDRectangle = 1902408308; + +const int typeQDRegion = 1366452078; + +const int typeQuarts = 1903326323; + +const int typeRGB16 = 1953640758; + +const int typeRGB96 = 1953642806; + +const int typeRGBColor = 1666336578; + +const int typeRangeDescriptor = 1918987879; + +const int typeRectangle = 1668441443; + +const int typeRelativeDescriptor = 1919249440; + +const int typeReplyPortAttr = 1919250544; + +const int typeRotation = 1953656692; + +const int typeRoundedRectangle = 1668444771; + +const int typeRow = 1668444023; + +const int typeSInt16 = 1936224114; + +const int typeSInt32 = 1819242087; + +const int typeSInt64 = 1668246896; + +const int typeScrapStyles = 1937013100; + +const int typeScript = 1935896692; + +const int typeSectionH = 1936024436; + +const int typeSquareFeet = 1936811636; + +const int typeSquareKilometers = 1936812909; + +const int typeSquareMeters = 1936814701; + +const int typeSquareMiles = 1936813417; + +const int typeSquareYards = 1936816484; + +const int typeStyledText = 1398036564; + +const int typeStyledUnicodeText = 1937077368; + +const int typeSuiteInfo = 1937074542; + +const int typeTIFF = 1414088262; + +const int typeTable = 1668571756; + +const int typeText = 1413830740; + +const int typeTextRange = 1954050670; + +const int typeTextRangeArray = 1953653113; + +const int typeTextStyles = 1953723513; + +const int typeToken = 1953459045; + +const int typeTrue = 1953658213; + +const int typeType = 1954115685; + +const int typeUInt16 = 1970497650; + +const int typeUInt32 = 1835100014; + +const int typeUInt64 = 1969450861; + +const int typeUTF16ExternalRepresentation = 1970549046; + +const int typeUTF8Text = 1970562616; + +const int typeUnicodeText = 1970567284; + +const int typeVersion = 1986359923; + +const int typeWhoseDescriptor = 2003332979; + +const int typeWhoseRange = 2003988071; + +const int typeWildCard = 707406378; + +const int typeYards = 2036429412; + +typedef u_char = ffi.UnsignedChar; +typedef Dartu_char = int; +typedef u_int = ffi.UnsignedInt; +typedef Dartu_int = int; +typedef u_int16_t = ffi.UnsignedShort; +typedef Dartu_int16_t = int; +typedef u_int32_t = ffi.UnsignedInt; +typedef Dartu_int32_t = int; +typedef u_int64_t = ffi.UnsignedLongLong; +typedef Dartu_int64_t = int; +typedef u_int8_t = ffi.UnsignedChar; +typedef Dartu_int8_t = int; +typedef u_long = ffi.UnsignedLong; +typedef Dartu_long = int; +typedef u_quad_t = u_int64_t; +typedef u_short = ffi.UnsignedShort; +typedef Dartu_short = int; +typedef ucontext_t = __darwin_ucontext; +typedef uext_object_t = io_object_t; +typedef uid_t = __darwin_uid_t; +typedef uint = ffi.UnsignedInt; +typedef Dartuint = int; +typedef uint16 = ffi.Uint16; +typedef Dartuint16 = int; +typedef uint32 = ffi.Uint32; +typedef Dartuint32 = int; +typedef uint64 = ffi.Uint64; +typedef Dartuint64 = int; +typedef uint8 = ffi.Uint8; +typedef Dartuint8 = int; +typedef uint_fast16_t = ffi.Uint16; +typedef Dartuint_fast16_t = int; +typedef uint_fast32_t = ffi.Uint32; +typedef Dartuint_fast32_t = int; +typedef uint_fast64_t = ffi.Uint64; +typedef Dartuint_fast64_t = int; +typedef uint_fast8_t = ffi.Uint8; +typedef Dartuint_fast8_t = int; +typedef uint_least16_t = ffi.Uint16; +typedef Dartuint_least16_t = int; +typedef uint_least32_t = ffi.Uint32; +typedef Dartuint_least32_t = int; +typedef uint_least64_t = ffi.Uint64; +typedef Dartuint_least64_t = int; +typedef uint_least8_t = ffi.Uint8; +typedef Dartuint_least8_t = int; +typedef uintmax_t = ffi.UnsignedLong; +typedef Dartuintmax_t = int; + +const int underline = 4; + +const int undoDev = 9; + +typedef unichar = ffi.UnsignedShort; +typedef Dartunichar = int; + +const int unicodeBufErr = -8764; + +const int unicodeCharErr = -8763; + +const int unicodeChecksumErr = -8769; + +const int unicodeContextualErr = -8758; + +const int unicodeDirectionErr = -8759; + +const int unicodeElementErr = -8762; + +const int unicodeFallbacksErr = -8766; + +const int unicodeNoTableErr = -8768; + +const int unicodeNotFoundErr = -8761; + +const int unicodePartConvertErr = -8765; + +const int unicodeTableFormatErr = -8760; + +const int unicodeTextEncodingDataErr = -8757; + +const int unicodeVariantErr = -8767; + +const int unimpErr = -4; + +const int unitEmptyErr = -22; + +const int unitTblFullErr = -29; + +const int unknownFormatErr = -2114; + +const int unknownInsertModeErr = -20000; + +const int unresolvedComponentDLLErr = -3004; + +const int unsupportedAuxiliaryImportData = -2057; + +const int unsupportedForPlatformErr = -1858; + +const int unsupportedOSErr = -2096; + +const int unsupportedProcessorErr = -2097; + +const int updPixMemErr = -125; + +const int updateDev = 4; + +typedef upl_t = mach_port_t; +@Deprecated('Deprecated') +const int uppCallComponentCanDoProcInfo = 752; + +@Deprecated('Deprecated') +const int uppCallComponentCloseProcInfo = 1008; + +@Deprecated('Deprecated') +const int uppCallComponentGetMPWorkFunctionProcInfo = 4080; + +@Deprecated('Deprecated') +const int uppCallComponentGetPublicResourceProcInfo = 15344; + +@Deprecated('Deprecated') +const int uppCallComponentOpenProcInfo = 1008; + +@Deprecated('Deprecated') +const int uppCallComponentRegisterProcInfo = 240; + +@Deprecated('Deprecated') +const int uppCallComponentTargetProcInfo = 1008; + +@Deprecated('Deprecated') +const int uppCallComponentUnregisterProcInfo = 240; + +@Deprecated('Deprecated') +const int uppCallComponentVersionProcInfo = 240; + +@Deprecated('Deprecated') +const int uppComponentFunctionImplementedProcInfo = 752; + +@Deprecated('Deprecated') +const int uppComponentSetTargetProcInfo = 1008; + +@Deprecated('Deprecated') +const int uppGetComponentVersionProcInfo = 240; + +const int urlDataHFTPBadNameListErr = -2144; + +const int urlDataHFTPBadPasswordErr = -2136; + +const int urlDataHFTPBadUserErr = -2135; + +const int urlDataHFTPDataConnectionErr = -2138; + +const int urlDataHFTPFilenameErr = -2142; + +const int urlDataHFTPNeedPasswordErr = -2145; + +const int urlDataHFTPNoDirectoryErr = -2139; + +const int urlDataHFTPNoNetDriverErr = -2143; + +const int urlDataHFTPNoPasswordErr = -2146; + +const int urlDataHFTPPermissionsErr = -2141; + +const int urlDataHFTPProtocolErr = -2133; + +const int urlDataHFTPQuotaErr = -2140; + +const int urlDataHFTPServerDisconnectedErr = -2147; + +const int urlDataHFTPServerErr = -2137; + +const int urlDataHFTPShutdownErr = -2134; + +const int urlDataHFTPURLErr = -2148; + +const int urlDataHHTTPNoNetDriverErr = -2130; + +const int urlDataHHTTPProtocolErr = -2129; + +const int urlDataHHTTPRedirectErr = -2132; + +const int urlDataHHTTPURLErr = -2131; + +@Deprecated('Deprecated') +const int useATalk = 1; + +@Deprecated('Deprecated') +const int useAsync = 2; + +@Deprecated('Deprecated') +const int useExtClk = 3; + +@Deprecated('Deprecated') +const int useFree = 0; + +@Deprecated('Deprecated') +const int useMIDI = 4; + +typedef useconds_t = __darwin_useconds_t; + +const int userBreak = -490; + +const int userCanceledErr = -128; + +const int userDataItemNotFound = -2026; + +const int userRejectErr = -912; + +typedef user_addr_t = u_int64_t; +typedef user_long_t = ffi.Int64; +typedef Dartuser_long_t = int; +typedef user_off_t = ffi.Int64; +typedef Dartuser_off_t = int; +typedef user_size_t = u_int64_t; +typedef user_ssize_t = ffi.Int64; +typedef Dartuser_ssize_t = int; +typedef user_subsystem_t = ffi.Pointer; +typedef user_time_t = ffi.Int64; +typedef Dartuser_time_t = int; +typedef user_ulong_t = u_int64_t; +typedef ushort = ffi.UnsignedShort; +typedef Dartushort = int; + +const int vLckdErr = -46; + +const int vTypErr = -2; + +@Deprecated('Deprecated') +const int vType = 1; + +typedef va_list = __builtin_va_list; + +const int validDateFields = -1; + +const int validInstancesExist = -3001; + +const int variationFontTableTag = 1719034226; + +@Deprecated('Deprecated') +const int verAfrikaans = 102; + +@Deprecated('Deprecated') +const int verAlternateGr = 64; + +@Deprecated('Deprecated') +const int verArabia = 16; + +@Deprecated('Deprecated') +const int verArabic = 16; + +@Deprecated('Deprecated') +const int verArmenia = 84; + +@Deprecated('Deprecated') +const int verArmenian = 84; + +@Deprecated('Deprecated') +const int verAustralia = 15; + +@Deprecated('Deprecated') +const int verAustria = 92; + +@Deprecated('Deprecated') +const int verAustriaGerman = 92; + +@Deprecated('Deprecated') +const int verBelarus = 61; + +@Deprecated('Deprecated') +const int verBelgiumLux = 6; + +@Deprecated('Deprecated') +const int verBelgiumLuxPoint = 27; + +@Deprecated('Deprecated') +const int verBengali = 60; + +@Deprecated('Deprecated') +const int verBhutan = 83; + +@Deprecated('Deprecated') +const int verBrazil = 71; + +@Deprecated('Deprecated') +const int verBreton = 77; + +@Deprecated('Deprecated') +const int verBritain = 2; + +@Deprecated('Deprecated') +const int verBrittany = 77; + +@Deprecated('Deprecated') +const int verBulgaria = 72; + +@Deprecated('Deprecated') +const int verByeloRussian = 61; + +@Deprecated('Deprecated') +const int verCanadaComma = 28; + +@Deprecated('Deprecated') +const int verCanadaPoint = 29; + +@Deprecated('Deprecated') +const int verCatalonia = 73; + +@Deprecated('Deprecated') +const int verChina = 52; + +@Deprecated('Deprecated') +const int verCroatia = 68; + +@Deprecated('Deprecated') +const int verCyprus = 23; + +@Deprecated('Deprecated') +const int verCzech = 56; + +@Deprecated('Deprecated') +const int verDenmark = 9; + +@Deprecated('Deprecated') +const int verEastAsiaGeneric = 58; + +@Deprecated('Deprecated') +const int verEngCanada = 82; + +const int verErr = -84; + +@Deprecated('Deprecated') +const int verEsperanto = 103; + +@Deprecated('Deprecated') +const int verEstonia = 44; + +@Deprecated('Deprecated') +const int verFaeroeIsl = 47; + +@Deprecated('Deprecated') +const int verFarEastGeneric = 58; + +@Deprecated('Deprecated') +const int verFaroeIsl = 47; + +@Deprecated('Deprecated') +const int verFinland = 17; + +@Deprecated('Deprecated') +const int verFlemish = 6; + +@Deprecated('Deprecated') +const int verFlemishPoint = 27; + +@Deprecated('Deprecated') +const int verFrBelgium = 98; + +@Deprecated('Deprecated') +const int verFrBelgiumLux = 6; + +@Deprecated('Deprecated') +const int verFrCanada = 11; + +@Deprecated('Deprecated') +const int verFrSwiss = 18; + +@Deprecated('Deprecated') +const int verFrance = 1; + +@Deprecated('Deprecated') +const int verFrenchUniversal = 91; + +@Deprecated('Deprecated') +const int verGenericFE = 58; + +@Deprecated('Deprecated') +const int verGeorgia = 85; + +@Deprecated('Deprecated') +const int verGeorgian = 85; + +@Deprecated('Deprecated') +const int verGermanReformed = 70; + +@Deprecated('Deprecated') +const int verGermany = 3; + +@Deprecated('Deprecated') +const int verGrSwiss = 19; + +@Deprecated('Deprecated') +const int verGreece = 20; + +@Deprecated('Deprecated') +const int verGreeceAlt = 64; + +@Deprecated('Deprecated') +const int verGreecePoly = 40; + +@Deprecated('Deprecated') +const int verGreekAncient = 40; + +@Deprecated('Deprecated') +const int verGreenland = 107; + +@Deprecated('Deprecated') +const int verGujarati = 94; + +@Deprecated('Deprecated') +const int verHungary = 43; + +@Deprecated('Deprecated') +const int verIceland = 21; + +@Deprecated('Deprecated') +const int verIndia = 33; + +@Deprecated('Deprecated') +const int verIndiaHindi = 33; + +@Deprecated('Deprecated') +const int verIndiaUrdu = 96; + +@Deprecated('Deprecated') +const int verInternational = 37; + +@Deprecated('Deprecated') +const int verIran = 48; + +@Deprecated('Deprecated') +const int verIreland = 50; + +@Deprecated('Deprecated') +const int verIrelandEnglish = 108; + +@Deprecated('Deprecated') +const int verIrishGaelicScript = 81; + +@Deprecated('Deprecated') +const int verIsrael = 13; + +@Deprecated('Deprecated') +const int verItalianSwiss = 36; + +@Deprecated('Deprecated') +const int verItaly = 4; + +@Deprecated('Deprecated') +const int verJapan = 14; + +@Deprecated('Deprecated') +const int verKorea = 51; + +@Deprecated('Deprecated') +const int verLapland = 46; + +@Deprecated('Deprecated') +const int verLatvia = 45; + +@Deprecated('Deprecated') +const int verLithuania = 41; + +@Deprecated('Deprecated') +const int verMacedonia = 67; + +@Deprecated('Deprecated') +const int verMacedonian = 67; + +@Deprecated('Deprecated') +const int verMagyar = 59; + +@Deprecated('Deprecated') +const int verMalta = 22; + +@Deprecated('Deprecated') +const int verManxGaelic = 76; + +@Deprecated('Deprecated') +const int verMarathi = 104; + +@Deprecated('Deprecated') +const int verMultilingual = 74; + +@Deprecated('Deprecated') +const int verNepal = 106; + +@Deprecated('Deprecated') +const int verNetherlands = 5; + +@Deprecated('Deprecated') +const int verNetherlandsComma = 26; + +@Deprecated('Deprecated') +const int verNorway = 12; + +@Deprecated('Deprecated') +const int verNunavut = 78; + +@Deprecated('Deprecated') +const int verNynorsk = 101; + +@Deprecated('Deprecated') +const int verPakistan = 34; + +@Deprecated('Deprecated') +const int verPakistanUrdu = 34; + +@Deprecated('Deprecated') +const int verPoland = 42; + +@Deprecated('Deprecated') +const int verPortugal = 10; + +@Deprecated('Deprecated') +const int verPunjabi = 95; + +@Deprecated('Deprecated') +const int verRomania = 39; + +@Deprecated('Deprecated') +const int verRumania = 39; + +@Deprecated('Deprecated') +const int verRussia = 49; + +@Deprecated('Deprecated') +const int verSami = 46; + +@Deprecated('Deprecated') +const int verScottishGaelic = 75; + +@Deprecated('Deprecated') +const int verScriptGeneric = 55; + +@Deprecated('Deprecated') +const int verSerbia = 65; + +@Deprecated('Deprecated') +const int verSerbian = 65; + +@Deprecated('Deprecated') +const int verSingapore = 100; + +@Deprecated('Deprecated') +const int verSlovak = 57; + +@Deprecated('Deprecated') +const int verSlovenia = 66; + +@Deprecated('Deprecated') +const int verSlovenian = 66; + +@Deprecated('Deprecated') +const int verSpLatinAmerica = 86; + +@Deprecated('Deprecated') +const int verSpain = 8; + +@Deprecated('Deprecated') +const int verSweden = 7; + +@Deprecated('Deprecated') +const int verTaiwan = 53; + +@Deprecated('Deprecated') +const int verThailand = 54; + +@Deprecated('Deprecated') +const int verTibet = 105; + +@Deprecated('Deprecated') +const int verTibetan = 105; + +@Deprecated('Deprecated') +const int verTonga = 88; + +@Deprecated('Deprecated') +const int verTurkey = 24; + +@Deprecated('Deprecated') +const int verTurkishModified = 35; + +@Deprecated('Deprecated') +const int verUS = 0; + +@Deprecated('Deprecated') +const int verUkraine = 62; + +@Deprecated('Deprecated') +const int verUkrania = 62; + +const int verUnspecified = 32767; + +@Deprecated('Deprecated') +const int verUzbek = 99; + +@Deprecated('Deprecated') +const int verVietnam = 97; + +@Deprecated('Deprecated') +const int verWales = 79; + +@Deprecated('Deprecated') +const int verWelsh = 79; + +@Deprecated('Deprecated') +const int verYugoCroatian = 25; + +@Deprecated('Deprecated') +const int verYugoslavia = 25; + +@Deprecated('Deprecated') +const int vervariantDenmark = 32; + +@Deprecated('Deprecated') +const int vervariantNorway = 31; + +@Deprecated('Deprecated') +const int vervariantPortugal = 30; + +const int videoOutputInUseErr = -2090; + +enum virtual_memory_guard_exception_code_t { + kGUARD_EXC_DEALLOC_GAP(1), + kGUARD_EXC_RECLAIM_COPYIO_FAILURE(2), + kGUARD_EXC_RECLAIM_INDEX_FAILURE(4), + kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE(8), + kGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE(9), + kGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE(10), + kGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE(11), + kGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION(12), + kGUARD_EXC_SEC_ACCESS_FAULT(98), + kGUARD_EXC_SEC_ASYNC_ACCESS_FAULT(99), + kGUARD_EXC_SEC_COPY_DENIED(100), + kGUARD_EXC_SEC_SHARING_DENIED(101); + + final int value; + const virtual_memory_guard_exception_code_t(this.value); + + static virtual_memory_guard_exception_code_t fromValue(int value) => + switch (value) { + 1 => kGUARD_EXC_DEALLOC_GAP, + 2 => kGUARD_EXC_RECLAIM_COPYIO_FAILURE, + 4 => kGUARD_EXC_RECLAIM_INDEX_FAILURE, + 8 => kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE, + 9 => kGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE, + 10 => kGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE, + 11 => kGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE, + 12 => kGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION, + 98 => kGUARD_EXC_SEC_ACCESS_FAULT, + 99 => kGUARD_EXC_SEC_ASYNC_ACCESS_FAULT, + 100 => kGUARD_EXC_SEC_COPY_DENIED, + 101 => kGUARD_EXC_SEC_SHARING_DENIED, + _ => throw ArgumentError( + 'Unknown value for virtual_memory_guard_exception_code_t: $value', + ), + }; +} + +typedef vm32_address_t = ffi.Uint32; +typedef Dartvm32_address_t = int; +typedef vm32_object_id_t = ffi.Uint32; +typedef Dartvm32_object_id_t = int; +typedef vm32_offset_t = ffi.Uint32; +typedef Dartvm32_offset_t = int; +typedef vm32_size_t = ffi.Uint32; +typedef Dartvm32_size_t = int; + +const int vmAddressNotInFileViewErr = -647; + +const int vmBadDriver = -632; + +const int vmBusyBackingFileErr = -642; + +const int vmFileViewAccessErr = -645; + +const int vmInvalidBackingFileIDErr = -640; + +const int vmInvalidFileViewIDErr = -644; + +const int vmInvalidOwningProcessErr = -648; + +const int vmKernelMMUInitErr = -629; + +const int vmMappingPrivilegesErr = -641; + +const int vmMemLckdErr = -631; + +const int vmMorePhysicalThanVirtualErr = -628; + +const int vmNoMoreBackingFilesErr = -643; + +const int vmNoMoreFileViewsErr = -646; + +const int vmNoVectorErr = -633; + +const int vmOffErr = -630; + +typedef vm_address_t = vm_offset_t; +typedef vm_behavior_t = ffi.Int; +typedef Dartvm_behavior_t = int; + +final class vm_extmod_statistics extends ffi.Struct { + @ffi.Int64() + external int task_for_pid_count; + + @ffi.Int64() + external int task_for_pid_caller_count; + + @ffi.Int64() + external int thread_creation_count; + + @ffi.Int64() + external int thread_creation_caller_count; + + @ffi.Int64() + external int thread_set_state_count; + + @ffi.Int64() + external int thread_set_state_caller_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int task_for_pid_count, + required int task_for_pid_caller_count, + required int thread_creation_count, + required int thread_creation_caller_count, + required int thread_set_state_count, + required int thread_set_state_caller_count, + }) => $allocator() + ..ref.task_for_pid_count = task_for_pid_count + ..ref.task_for_pid_caller_count = task_for_pid_caller_count + ..ref.thread_creation_count = thread_creation_count + ..ref.thread_creation_caller_count = thread_creation_caller_count + ..ref.thread_set_state_count = thread_set_state_count + ..ref.thread_set_state_caller_count = thread_set_state_caller_count; +} + +typedef vm_extmod_statistics_data_t = vm_extmod_statistics; +typedef vm_extmod_statistics_t = ffi.Pointer; + +@ffi.Packed(4) +final class vm_info_object extends ffi.Struct { + @natural_t() + external int vio_object; + + @natural_t() + external int vio_size; + + @ffi.UnsignedInt() + external int vio_ref_count; + + @ffi.UnsignedInt() + external int vio_resident_page_count; + + @ffi.UnsignedInt() + external int vio_absent_count; + + @natural_t() + external int vio_copy; + + @natural_t() + external int vio_shadow; + + @natural_t() + external int vio_shadow_offset; + + @natural_t() + external int vio_paging_offset; + + @memory_object_copy_strategy_t() + external int vio_copy_strategy; + + @vm_offset_t() + external int vio_last_alloc; + + @ffi.UnsignedInt() + external int vio_paging_in_progress; + + @boolean_t() + external int vio_pager_created; + + @boolean_t() + external int vio_pager_initialized; + + @boolean_t() + external int vio_pager_ready; + + @boolean_t() + external int vio_can_persist; + + @boolean_t() + external int vio_internal; + + @boolean_t() + external int vio_temporary; + + @boolean_t() + external int vio_alive; + + @boolean_t() + external int vio_purgable; + + @boolean_t() + external int vio_purgable_volatile; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int vio_object, + required int vio_size, + required int vio_ref_count, + required int vio_resident_page_count, + required int vio_absent_count, + required int vio_copy, + required int vio_shadow, + required int vio_shadow_offset, + required int vio_paging_offset, + required int vio_copy_strategy, + required int vio_last_alloc, + required int vio_paging_in_progress, + required int vio_pager_created, + required int vio_pager_initialized, + required int vio_pager_ready, + required int vio_can_persist, + required int vio_internal, + required int vio_temporary, + required int vio_alive, + required int vio_purgable, + required int vio_purgable_volatile, + }) => $allocator() + ..ref.vio_object = vio_object + ..ref.vio_size = vio_size + ..ref.vio_ref_count = vio_ref_count + ..ref.vio_resident_page_count = vio_resident_page_count + ..ref.vio_absent_count = vio_absent_count + ..ref.vio_copy = vio_copy + ..ref.vio_shadow = vio_shadow + ..ref.vio_shadow_offset = vio_shadow_offset + ..ref.vio_paging_offset = vio_paging_offset + ..ref.vio_copy_strategy = vio_copy_strategy + ..ref.vio_last_alloc = vio_last_alloc + ..ref.vio_paging_in_progress = vio_paging_in_progress + ..ref.vio_pager_created = vio_pager_created + ..ref.vio_pager_initialized = vio_pager_initialized + ..ref.vio_pager_ready = vio_pager_ready + ..ref.vio_can_persist = vio_can_persist + ..ref.vio_internal = vio_internal + ..ref.vio_temporary = vio_temporary + ..ref.vio_alive = vio_alive + ..ref.vio_purgable = vio_purgable + ..ref.vio_purgable_volatile = vio_purgable_volatile; +} + +typedef vm_info_object_array_t = ffi.Pointer; +typedef vm_info_object_t = vm_info_object; + +final class vm_info_region extends ffi.Struct { + @natural_t() + external int vir_start; + + @natural_t() + external int vir_end; + + @natural_t() + external int vir_object; + + @natural_t() + external int vir_offset; + + @boolean_t() + external int vir_needs_copy; + + @vm_prot_t() + external int vir_protection; + + @vm_prot_t() + external int vir_max_protection; + + @vm_inherit_t() + external int vir_inheritance; + + @natural_t() + external int vir_wired_count; + + @natural_t() + external int vir_user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int vir_start, + required int vir_end, + required int vir_object, + required int vir_offset, + required int vir_needs_copy, + required int vir_protection, + required int vir_max_protection, + required int vir_inheritance, + required int vir_wired_count, + required int vir_user_wired_count, + }) => $allocator() + ..ref.vir_start = vir_start + ..ref.vir_end = vir_end + ..ref.vir_object = vir_object + ..ref.vir_offset = vir_offset + ..ref.vir_needs_copy = vir_needs_copy + ..ref.vir_protection = vir_protection + ..ref.vir_max_protection = vir_max_protection + ..ref.vir_inheritance = vir_inheritance + ..ref.vir_wired_count = vir_wired_count + ..ref.vir_user_wired_count = vir_user_wired_count; +} + +@ffi.Packed(4) +final class vm_info_region_64 extends ffi.Struct { + @natural_t() + external int vir_start; + + @natural_t() + external int vir_end; + + @natural_t() + external int vir_object; + + @memory_object_offset_t() + external int vir_offset; + + @boolean_t() + external int vir_needs_copy; + + @vm_prot_t() + external int vir_protection; + + @vm_prot_t() + external int vir_max_protection; + + @vm_inherit_t() + external int vir_inheritance; + + @natural_t() + external int vir_wired_count; + + @natural_t() + external int vir_user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int vir_start, + required int vir_end, + required int vir_object, + required int vir_offset, + required int vir_needs_copy, + required int vir_protection, + required int vir_max_protection, + required int vir_inheritance, + required int vir_wired_count, + required int vir_user_wired_count, + }) => $allocator() + ..ref.vir_start = vir_start + ..ref.vir_end = vir_end + ..ref.vir_object = vir_object + ..ref.vir_offset = vir_offset + ..ref.vir_needs_copy = vir_needs_copy + ..ref.vir_protection = vir_protection + ..ref.vir_max_protection = vir_max_protection + ..ref.vir_inheritance = vir_inheritance + ..ref.vir_wired_count = vir_wired_count + ..ref.vir_user_wired_count = vir_user_wired_count; +} + +typedef vm_info_region_64_t = vm_info_region_64; +typedef vm_info_region_t = vm_info_region; +typedef vm_inherit_t = ffi.UnsignedInt; +typedef Dartvm_inherit_t = int; +typedef vm_machine_attribute_t = ffi.UnsignedInt; +typedef Dartvm_machine_attribute_t = int; +typedef vm_machine_attribute_val_t = ffi.Int; +typedef Dartvm_machine_attribute_val_t = int; +typedef vm_map_address_t = ffi.Uint64; +typedef Dartvm_map_address_t = int; +typedef vm_map_inspect_t = mach_port_t; +typedef vm_map_offset_t = ffi.Uint64; +typedef Dartvm_map_offset_t = int; +typedef vm_map_read_t = mach_port_t; +typedef vm_map_size_t = ffi.Uint64; +typedef Dartvm_map_size_t = int; +typedef vm_map_t = mach_port_t; +typedef vm_named_entry_t = mach_port_t; +typedef vm_object_id_t = ffi.UnsignedLongLong; +typedef Dartvm_object_id_t = int; +typedef vm_object_offset_t = ffi.Uint64; +typedef Dartvm_object_offset_t = int; +typedef vm_object_size_t = ffi.Uint64; +typedef Dartvm_object_size_t = int; +typedef vm_offset_t = ffi.UintPtr; +typedef Dartvm_offset_t = int; + +final class vm_page_info_basic extends ffi.Struct { + @ffi.Int() + external int disposition; + + @ffi.Int() + external int ref_count; + + @vm_object_id_t() + external int object_id; + + @memory_object_offset_t() + external int offset; + + @ffi.Int() + external int depth; + + @ffi.Int() + external int __pad; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int disposition, + required int ref_count, + required int object_id, + required int offset, + required int depth, + required int $pad, + }) => $allocator() + ..ref.disposition = disposition + ..ref.ref_count = ref_count + ..ref.object_id = object_id + ..ref.offset = offset + ..ref.depth = depth + ..ref.__pad = $pad; +} + +typedef vm_page_info_basic_data_t = vm_page_info_basic; +typedef vm_page_info_basic_t = ffi.Pointer; +typedef vm_page_info_flavor_t = ffi.Int; +typedef Dartvm_page_info_flavor_t = int; +typedef vm_page_info_t = ffi.Pointer; +typedef vm_prot_t = ffi.Int; +typedef Dartvm_prot_t = int; +typedef vm_purgable_t = ffi.Int; +typedef Dartvm_purgable_t = int; + +final class vm_purgeable_info extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array fifo_data; + + external vm_purgeable_stat_t obsolete_data; + + @ffi.Array.multi([8]) + external ffi.Array lifo_data; +} + +typedef vm_purgeable_info_t = ffi.Pointer; + +final class vm_purgeable_stat extends ffi.Struct { + @ffi.Uint64() + external int count; + + @ffi.Uint64() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required int size, + }) => $allocator() + ..ref.count = count + ..ref.size = size; +} + +typedef vm_purgeable_stat_t = vm_purgeable_stat; + +@ffi.Packed(4) +final class vm_read_entry extends ffi.Struct { + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int address, + required int size, + }) => $allocator() + ..ref.address = address + ..ref.size = size; +} + +final class vm_region_basic_info extends ffi.Struct { + @vm_prot_t() + external int protection; + + @vm_prot_t() + external int max_protection; + + @vm_inherit_t() + external int inheritance; + + @boolean_t() + external int shared; + + @boolean_t() + external int reserved; + + @ffi.Uint32() + external int offset; + + @vm_behavior_t() + external int behavior; + + @ffi.UnsignedShort() + external int user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int max_protection, + required int inheritance, + required int shared, + required int reserved, + required int offset, + required int behavior, + required int user_wired_count, + }) => $allocator() + ..ref.protection = protection + ..ref.max_protection = max_protection + ..ref.inheritance = inheritance + ..ref.shared = shared + ..ref.reserved = reserved + ..ref.offset = offset + ..ref.behavior = behavior + ..ref.user_wired_count = user_wired_count; +} + +@ffi.Packed(4) +final class vm_region_basic_info_64 extends ffi.Struct { + @vm_prot_t() + external int protection; + + @vm_prot_t() + external int max_protection; + + @vm_inherit_t() + external int inheritance; + + @boolean_t() + external int shared; + + @boolean_t() + external int reserved; + + @memory_object_offset_t() + external int offset; + + @vm_behavior_t() + external int behavior; + + @ffi.UnsignedShort() + external int user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int max_protection, + required int inheritance, + required int shared, + required int reserved, + required int offset, + required int behavior, + required int user_wired_count, + }) => $allocator() + ..ref.protection = protection + ..ref.max_protection = max_protection + ..ref.inheritance = inheritance + ..ref.shared = shared + ..ref.reserved = reserved + ..ref.offset = offset + ..ref.behavior = behavior + ..ref.user_wired_count = user_wired_count; +} + +typedef vm_region_basic_info_64_t = ffi.Pointer; +typedef vm_region_basic_info_data_64_t = vm_region_basic_info_64; +typedef vm_region_basic_info_data_t = vm_region_basic_info; +typedef vm_region_basic_info_t = ffi.Pointer; + +final class vm_region_extended_info extends ffi.Struct { + @vm_prot_t() + external int protection; + + @ffi.UnsignedInt() + external int user_tag; + + @ffi.UnsignedInt() + external int pages_resident; + + @ffi.UnsignedInt() + external int pages_shared_now_private; + + @ffi.UnsignedInt() + external int pages_swapped_out; + + @ffi.UnsignedInt() + external int pages_dirtied; + + @ffi.UnsignedInt() + external int ref_count; + + @ffi.UnsignedShort() + external int shadow_depth; + + @ffi.UnsignedChar() + external int external_pager; + + @ffi.UnsignedChar() + external int share_mode; + + @ffi.UnsignedInt() + external int pages_reusable; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int user_tag, + required int pages_resident, + required int pages_shared_now_private, + required int pages_swapped_out, + required int pages_dirtied, + required int ref_count, + required int shadow_depth, + required int external_pager, + required int share_mode, + required int pages_reusable, + }) => $allocator() + ..ref.protection = protection + ..ref.user_tag = user_tag + ..ref.pages_resident = pages_resident + ..ref.pages_shared_now_private = pages_shared_now_private + ..ref.pages_swapped_out = pages_swapped_out + ..ref.pages_dirtied = pages_dirtied + ..ref.ref_count = ref_count + ..ref.shadow_depth = shadow_depth + ..ref.external_pager = external_pager + ..ref.share_mode = share_mode + ..ref.pages_reusable = pages_reusable; +} + +typedef vm_region_extended_info_data_t = vm_region_extended_info; +typedef vm_region_extended_info_t = ffi.Pointer; +typedef vm_region_flavor_t = ffi.Int; +typedef Dartvm_region_flavor_t = int; +typedef vm_region_info_64_t = ffi.Pointer; +typedef vm_region_info_t = ffi.Pointer; +typedef vm_region_recurse_info_64_t = ffi.Pointer; +typedef vm_region_recurse_info_t = ffi.Pointer; + +final class vm_region_submap_info extends ffi.Struct { + @vm_prot_t() + external int protection; + + @vm_prot_t() + external int max_protection; + + @vm_inherit_t() + external int inheritance; + + @ffi.Uint32() + external int offset; + + @ffi.UnsignedInt() + external int user_tag; + + @ffi.UnsignedInt() + external int pages_resident; + + @ffi.UnsignedInt() + external int pages_shared_now_private; + + @ffi.UnsignedInt() + external int pages_swapped_out; + + @ffi.UnsignedInt() + external int pages_dirtied; + + @ffi.UnsignedInt() + external int ref_count; + + @ffi.UnsignedShort() + external int shadow_depth; + + @ffi.UnsignedChar() + external int external_pager; + + @ffi.UnsignedChar() + external int share_mode; + + @boolean_t() + external int is_submap; + + @vm_behavior_t() + external int behavior; + + @vm32_object_id_t() + external int object_id; + + @ffi.UnsignedShort() + external int user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int max_protection, + required int inheritance, + required int offset, + required int user_tag, + required int pages_resident, + required int pages_shared_now_private, + required int pages_swapped_out, + required int pages_dirtied, + required int ref_count, + required int shadow_depth, + required int external_pager, + required int share_mode, + required int is_submap, + required int behavior, + required int object_id, + required int user_wired_count, + }) => $allocator() + ..ref.protection = protection + ..ref.max_protection = max_protection + ..ref.inheritance = inheritance + ..ref.offset = offset + ..ref.user_tag = user_tag + ..ref.pages_resident = pages_resident + ..ref.pages_shared_now_private = pages_shared_now_private + ..ref.pages_swapped_out = pages_swapped_out + ..ref.pages_dirtied = pages_dirtied + ..ref.ref_count = ref_count + ..ref.shadow_depth = shadow_depth + ..ref.external_pager = external_pager + ..ref.share_mode = share_mode + ..ref.is_submap = is_submap + ..ref.behavior = behavior + ..ref.object_id = object_id + ..ref.user_wired_count = user_wired_count; +} + +@ffi.Packed(4) +final class vm_region_submap_info_64 extends ffi.Struct { + @vm_prot_t() + external int protection; + + @vm_prot_t() + external int max_protection; + + @vm_inherit_t() + external int inheritance; + + @memory_object_offset_t() + external int offset; + + @ffi.UnsignedInt() + external int user_tag; + + @ffi.UnsignedInt() + external int pages_resident; + + @ffi.UnsignedInt() + external int pages_shared_now_private; + + @ffi.UnsignedInt() + external int pages_swapped_out; + + @ffi.UnsignedInt() + external int pages_dirtied; + + @ffi.UnsignedInt() + external int ref_count; + + @ffi.UnsignedShort() + external int shadow_depth; + + @ffi.UnsignedChar() + external int external_pager; + + @ffi.UnsignedChar() + external int share_mode; + + @boolean_t() + external int is_submap; + + @vm_behavior_t() + external int behavior; + + @vm32_object_id_t() + external int object_id; + + @ffi.UnsignedShort() + external int user_wired_count; + + @ffi.UnsignedShort() + external int flags; + + @ffi.UnsignedInt() + external int pages_reusable; + + @vm_object_id_t() + external int object_id_full; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int max_protection, + required int inheritance, + required int offset, + required int user_tag, + required int pages_resident, + required int pages_shared_now_private, + required int pages_swapped_out, + required int pages_dirtied, + required int ref_count, + required int shadow_depth, + required int external_pager, + required int share_mode, + required int is_submap, + required int behavior, + required int object_id, + required int user_wired_count, + required int flags, + required int pages_reusable, + required int object_id_full, + }) => $allocator() + ..ref.protection = protection + ..ref.max_protection = max_protection + ..ref.inheritance = inheritance + ..ref.offset = offset + ..ref.user_tag = user_tag + ..ref.pages_resident = pages_resident + ..ref.pages_shared_now_private = pages_shared_now_private + ..ref.pages_swapped_out = pages_swapped_out + ..ref.pages_dirtied = pages_dirtied + ..ref.ref_count = ref_count + ..ref.shadow_depth = shadow_depth + ..ref.external_pager = external_pager + ..ref.share_mode = share_mode + ..ref.is_submap = is_submap + ..ref.behavior = behavior + ..ref.object_id = object_id + ..ref.user_wired_count = user_wired_count + ..ref.flags = flags + ..ref.pages_reusable = pages_reusable + ..ref.object_id_full = object_id_full; +} + +typedef vm_region_submap_info_64_t = ffi.Pointer; +typedef vm_region_submap_info_data_64_t = vm_region_submap_info_64; +typedef vm_region_submap_info_data_t = vm_region_submap_info; +typedef vm_region_submap_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class vm_region_submap_short_info_64 extends ffi.Struct { + @vm_prot_t() + external int protection; + + @vm_prot_t() + external int max_protection; + + @vm_inherit_t() + external int inheritance; + + @memory_object_offset_t() + external int offset; + + @ffi.UnsignedInt() + external int user_tag; + + @ffi.UnsignedInt() + external int ref_count; + + @ffi.UnsignedShort() + external int shadow_depth; + + @ffi.UnsignedChar() + external int external_pager; + + @ffi.UnsignedChar() + external int share_mode; + + @boolean_t() + external int is_submap; + + @vm_behavior_t() + external int behavior; + + @vm32_object_id_t() + external int object_id; + + @ffi.UnsignedShort() + external int user_wired_count; + + @ffi.UnsignedShort() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int max_protection, + required int inheritance, + required int offset, + required int user_tag, + required int ref_count, + required int shadow_depth, + required int external_pager, + required int share_mode, + required int is_submap, + required int behavior, + required int object_id, + required int user_wired_count, + required int flags, + }) => $allocator() + ..ref.protection = protection + ..ref.max_protection = max_protection + ..ref.inheritance = inheritance + ..ref.offset = offset + ..ref.user_tag = user_tag + ..ref.ref_count = ref_count + ..ref.shadow_depth = shadow_depth + ..ref.external_pager = external_pager + ..ref.share_mode = share_mode + ..ref.is_submap = is_submap + ..ref.behavior = behavior + ..ref.object_id = object_id + ..ref.user_wired_count = user_wired_count + ..ref.flags = flags; +} + +typedef vm_region_submap_short_info_64_t = + ffi.Pointer; +typedef vm_region_submap_short_info_data_64_t = vm_region_submap_short_info_64; + +final class vm_region_top_info extends ffi.Struct { + @ffi.UnsignedInt() + external int obj_id; + + @ffi.UnsignedInt() + external int ref_count; + + @ffi.UnsignedInt() + external int private_pages_resident; + + @ffi.UnsignedInt() + external int shared_pages_resident; + + @ffi.UnsignedChar() + external int share_mode; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int obj_id, + required int ref_count, + required int private_pages_resident, + required int shared_pages_resident, + required int share_mode, + }) => $allocator() + ..ref.obj_id = obj_id + ..ref.ref_count = ref_count + ..ref.private_pages_resident = private_pages_resident + ..ref.shared_pages_resident = shared_pages_resident + ..ref.share_mode = share_mode; +} + +typedef vm_region_top_info_data_t = vm_region_top_info; +typedef vm_region_top_info_t = ffi.Pointer; +typedef vm_size_t = ffi.UintPtr; +typedef Dartvm_size_t = int; + +final class vm_statistics extends ffi.Struct { + @natural_t() + external int free_count; + + @natural_t() + external int active_count; + + @natural_t() + external int inactive_count; + + @natural_t() + external int wire_count; + + @natural_t() + external int zero_fill_count; + + @natural_t() + external int reactivations; + + @natural_t() + external int pageins; + + @natural_t() + external int pageouts; + + @natural_t() + external int faults; + + @natural_t() + external int cow_faults; + + @natural_t() + external int lookups; + + @natural_t() + external int hits; + + @natural_t() + external int purgeable_count; + + @natural_t() + external int purges; + + @natural_t() + external int speculative_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int free_count, + required int active_count, + required int inactive_count, + required int wire_count, + required int zero_fill_count, + required int reactivations, + required int pageins, + required int pageouts, + required int faults, + required int cow_faults, + required int lookups, + required int hits, + required int purgeable_count, + required int purges, + required int speculative_count, + }) => $allocator() + ..ref.free_count = free_count + ..ref.active_count = active_count + ..ref.inactive_count = inactive_count + ..ref.wire_count = wire_count + ..ref.zero_fill_count = zero_fill_count + ..ref.reactivations = reactivations + ..ref.pageins = pageins + ..ref.pageouts = pageouts + ..ref.faults = faults + ..ref.cow_faults = cow_faults + ..ref.lookups = lookups + ..ref.hits = hits + ..ref.purgeable_count = purgeable_count + ..ref.purges = purges + ..ref.speculative_count = speculative_count; +} + +final class vm_statistics64 extends ffi.Struct { + @natural_t() + external int free_count; + + @natural_t() + external int active_count; + + @natural_t() + external int inactive_count; + + @natural_t() + external int wire_count; + + @ffi.Uint64() + external int zero_fill_count; + + @ffi.Uint64() + external int reactivations; + + @ffi.Uint64() + external int pageins; + + @ffi.Uint64() + external int pageouts; + + @ffi.Uint64() + external int faults; + + @ffi.Uint64() + external int cow_faults; + + @ffi.Uint64() + external int lookups; + + @ffi.Uint64() + external int hits; + + @ffi.Uint64() + external int purges; + + @natural_t() + external int purgeable_count; + + @natural_t() + external int speculative_count; + + @ffi.Uint64() + external int decompressions; + + @ffi.Uint64() + external int compressions; + + @ffi.Uint64() + external int swapins; + + @ffi.Uint64() + external int swapouts; + + @natural_t() + external int compressor_page_count; + + @natural_t() + external int throttled_count; + + @natural_t() + external int external_page_count; + + @natural_t() + external int internal_page_count; + + @ffi.Uint64() + external int total_uncompressed_pages_in_compressor; + + @ffi.Uint64() + external int swapped_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int free_count, + required int active_count, + required int inactive_count, + required int wire_count, + required int zero_fill_count, + required int reactivations, + required int pageins, + required int pageouts, + required int faults, + required int cow_faults, + required int lookups, + required int hits, + required int purges, + required int purgeable_count, + required int speculative_count, + required int decompressions, + required int compressions, + required int swapins, + required int swapouts, + required int compressor_page_count, + required int throttled_count, + required int external_page_count, + required int internal_page_count, + required int total_uncompressed_pages_in_compressor, + required int swapped_count, + }) => $allocator() + ..ref.free_count = free_count + ..ref.active_count = active_count + ..ref.inactive_count = inactive_count + ..ref.wire_count = wire_count + ..ref.zero_fill_count = zero_fill_count + ..ref.reactivations = reactivations + ..ref.pageins = pageins + ..ref.pageouts = pageouts + ..ref.faults = faults + ..ref.cow_faults = cow_faults + ..ref.lookups = lookups + ..ref.hits = hits + ..ref.purges = purges + ..ref.purgeable_count = purgeable_count + ..ref.speculative_count = speculative_count + ..ref.decompressions = decompressions + ..ref.compressions = compressions + ..ref.swapins = swapins + ..ref.swapouts = swapouts + ..ref.compressor_page_count = compressor_page_count + ..ref.throttled_count = throttled_count + ..ref.external_page_count = external_page_count + ..ref.internal_page_count = internal_page_count + ..ref.total_uncompressed_pages_in_compressor = + total_uncompressed_pages_in_compressor + ..ref.swapped_count = swapped_count; +} + +typedef vm_statistics64_data_t = vm_statistics64; +typedef vm_statistics64_t = ffi.Pointer; +typedef vm_statistics_data_t = vm_statistics; +typedef vm_statistics_t = ffi.Pointer; +typedef vm_sync_t = ffi.UnsignedInt; +typedef Dartvm_sync_t = int; +typedef vm_task_entry_t = mach_port_t; + +const int voiceNotFound = -244; + +typedef voidPtr = ffi.Pointer; + +const int volGoneErr = -124; + +const int volMountChangedBit = 14; + +const int volMountChangedMask = 16384; + +const int volMountExtendedFlagsBit = 7; + +const int volMountExtendedFlagsMask = 128; + +const int volMountFSReservedMask = 255; + +const int volMountInteractBit = 15; + +const int volMountInteractMask = 32768; + +const int volMountNoLoginMsgFlagBit = 0; + +const int volMountNoLoginMsgFlagMask = 1; + +const int volMountSysReservedMask = 65280; + +const int volOffLinErr = -53; + +const int volOnLinErr = -55; + +const int volVMBusyErr = -1311; + +final class voucher_mach_msg_state_s extends ffi.Opaque {} + +typedef voucher_mach_msg_state_t = ffi.Pointer; + +const int wPrErr = -44; + +const int wackBadFileErr = -2115; + +const int wackBadMetaDataErr = -2117; + +const int wackForkNotFoundErr = -2116; + +final class wait$1 extends ffi.Opaque {} + +const int weekOfYearField = 9; + +const int weekOfYearMask = 512; + +const int wfFileNotFound = -2021; + +@ffi.Packed(2) +final class wide extends ffi.Struct { + @UInt32() + external int lo; + + @SInt32() + external int hi; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lo, + required int hi, + }) => $allocator() + ..ref.lo = lo + ..ref.hi = hi; +} + +const int windowAppModalStateAlreadyExistsErr = -5617; + +const int windowAttributeImmutableErr = -5612; + +const int windowAttributesConflictErr = -5613; + +const int windowGroupInvalidErr = -5616; + +const int windowManagerInternalErr = -5614; + +const int windowNoAppModalStateErr = -5618; + +const int windowWrongStateErr = -5615; + +typedef wint_t = __darwin_wint_t; + +const int wrPermErr = -61; + +const int wrUnderrun = -74; + +const int wrgVolTypErr = -123; + +const int writErr = -20; + +@Deprecated('Deprecated') +const int writeReference = 0; + +const int writingPastEnd = -189; + +const int wrongApplicationPlatform = -875; + +@Deprecated('Deprecated') +final class x509_validity extends ffi.Struct { + external CSSM_X509_TIME notBefore; + + external CSSM_X509_TIME notAfter; +} + +typedef xpc_activity_handler_t = ffi.Pointer; +typedef Dartxpc_activity_handler_t = + objc.ObjCBlock; +typedef xpc_activity_state_t = ffi.Long; +typedef Dartxpc_activity_state_t = int; +typedef xpc_activity_t = xpc_object_t; +typedef xpc_array_applier_t = ffi.Pointer; +typedef Dartxpc_array_applier_t = + objc.ObjCBlock; +typedef xpc_connection_handler_t = + ffi.Pointer>; +typedef xpc_connection_handler_tFunction = + ffi.Void Function(xpc_connection_t connection); +typedef Dartxpc_connection_handler_tFunction = + void Function(Dartxpc_object_t connection); +typedef xpc_connection_t = xpc_object_t; +typedef xpc_dictionary_applier_t = ffi.Pointer; +typedef Dartxpc_dictionary_applier_t = + objc.ObjCBlock, objc.NSObject)>; +typedef xpc_endpoint_t = xpc_object_t; +typedef xpc_finalizer_t = + ffi.Pointer>; +typedef xpc_finalizer_tFunction = + ffi.Void Function(ffi.Pointer value); +typedef Dartxpc_finalizer_tFunction = + void Function(ffi.Pointer value); +typedef xpc_handler_t = ffi.Pointer; +typedef Dartxpc_handler_t = objc.ObjCBlock; + +sealed class xpc_listener_create_flags_t { + static const XPC_LISTENER_CREATE_NONE = 0; + static const XPC_LISTENER_CREATE_INACTIVE = 1; + static const XPC_LISTENER_CREATE_FORCE_MACH = 2; + static const XPC_LISTENER_CREATE_FORCE_XPCSERVICE = 4; +} + +typedef xpc_listener_incoming_session_handler_t = + ffi.Pointer; +typedef Dartxpc_listener_incoming_session_handler_t = + objc.ObjCBlock; +typedef xpc_listener_t = ffi.Pointer; +typedef Dartxpc_listener_t = objc.NSObject; +typedef xpc_object_t = ffi.Pointer; +typedef Dartxpc_object_t = objc.NSObject; +typedef xpc_peer_requirement_t = ffi.Pointer; +typedef Dartxpc_peer_requirement_t = objc.NSObject; +typedef xpc_rich_error_t = xpc_object_t; +typedef xpc_session_cancel_handler_t = ffi.Pointer; +typedef Dartxpc_session_cancel_handler_t = + objc.ObjCBlock; + +sealed class xpc_session_create_flags_t { + static const XPC_SESSION_CREATE_NONE = 0; + static const XPC_SESSION_CREATE_INACTIVE = 1; + static const XPC_SESSION_CREATE_MACH_PRIVILEGED = 2; +} + +typedef xpc_session_incoming_message_handler_t = + ffi.Pointer; +typedef Dartxpc_session_incoming_message_handler_t = + objc.ObjCBlock; +typedef xpc_session_reply_handler_t = ffi.Pointer; +typedef Dartxpc_session_reply_handler_t = + objc.ObjCBlock; +typedef xpc_session_t = ffi.Pointer; +typedef Dartxpc_session_t = objc.NSObject; +typedef xpc_type_t = ffi.Pointer<_xpc_type_s>; + +const int ydm = 5; + +const int yearField = 1; + +const int yearMask = 2; + +const int ymd = 2; + +const int zeroCycle = 1; + +final class zone_btrecord extends ffi.Struct { + @ffi.Uint32() + external int ref_count; + + @ffi.Uint32() + external int operation_type; + + @ffi.Array.multi([15]) + external ffi.Array bt; +} + +typedef zone_btrecord_array_t = ffi.Pointer; +typedef zone_btrecord_t = zone_btrecord; + +final class zone_info extends ffi.Struct { + @integer_t() + external int zi_count; + + @vm_size_t() + external int zi_cur_size; + + @vm_size_t() + external int zi_max_size; + + @vm_size_t() + external int zi_elem_size; + + @vm_size_t() + external int zi_alloc_size; + + @integer_t() + external int zi_pageable; + + @integer_t() + external int zi_sleepable; + + @integer_t() + external int zi_exhaustible; + + @integer_t() + external int zi_collectable; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int zi_count, + required int zi_cur_size, + required int zi_max_size, + required int zi_elem_size, + required int zi_alloc_size, + required int zi_pageable, + required int zi_sleepable, + required int zi_exhaustible, + required int zi_collectable, + }) => $allocator() + ..ref.zi_count = zi_count + ..ref.zi_cur_size = zi_cur_size + ..ref.zi_max_size = zi_max_size + ..ref.zi_elem_size = zi_elem_size + ..ref.zi_alloc_size = zi_alloc_size + ..ref.zi_pageable = zi_pageable + ..ref.zi_sleepable = zi_sleepable + ..ref.zi_exhaustible = zi_exhaustible + ..ref.zi_collectable = zi_collectable; +} + +typedef zone_info_array_t = ffi.Pointer; +typedef zone_info_t = zone_info; + +final class zone_name extends ffi.Struct { + @ffi.Array.multi([80]) + external ffi.Array zn_name; +} + +typedef zone_name_array_t = ffi.Pointer; +typedef zone_name_t = zone_name; diff --git a/pkgs/ffigen/lib/src/code_generator/scope.dart b/pkgs/ffigen/lib/src/code_generator/scope.dart index fceeda512d..282875ed64 100644 --- a/pkgs/ffigen/lib/src/code_generator/scope.dart +++ b/pkgs/ffigen/lib/src/code_generator/scope.dart @@ -75,7 +75,7 @@ class Scope { void _fillNames(Set parentUsedNames) { assert(!_filled); - final namer = Namer(parentUsedNames.union(_preUsedNames)); + final namer = Namer(parentUsedNames, Set.of(_preUsedNames)); _namer = namer; for (final symbol in _symbols) { if (symbol._name == null) { @@ -93,8 +93,13 @@ class Scope { ); } } + final currentUsedNames = namer._used.isEmpty + ? parentUsedNames + : (parentUsedNames.isEmpty + ? namer._used + : parentUsedNames.union(namer._used)); for (final ns in _children) { - ns._fillNames(namer._used); + ns._fillNames(currentUsedNames); } } @@ -128,9 +133,10 @@ class Scope { /// This class is used internally by [Scope] to name [Symbol]s, and 99% of the /// time you should use those instead of this. class Namer { + final Set? _parentUsed; final Set _used; - Namer(this._used); + Namer([this._parentUsed, Set? preUsed]) : _used = preUsed ?? {}; String add(String name, SymbolKind kind) { if (name.isEmpty) name = 'unnamed'; @@ -145,7 +151,8 @@ class Namer { return newName; } - bool isUsed(String name) => _used.contains(name); + bool isUsed(String name) => + _used.contains(name) || (_parentUsed?.contains(name) ?? false); void markUsed(String name) => _used.add(name); /// Returns a version of [name] that can safely be used in C code. Not diff --git a/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart b/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart index 05fb57bb0c..c9843cc9e3 100644 --- a/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart +++ b/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart @@ -112,6 +112,11 @@ class FixOverriddenMethodsVisitation extends Visitation { for (final method in node.methods) { if (method.isClassMethod) continue; final (root, rootMethod) = _findRootWithMethod(node, method); + if (rootMethod.kind == ObjCMethodKind.propertySetter && + method.kind == ObjCMethodKind.method) { + method.kind = ObjCMethodKind.propertySetter; + continue; + } // If method and rootMethod are the same kind, then there's nothing to do. if ((method.kind == ObjCMethodKind.propertyGetter) == (rootMethod.kind == ObjCMethodKind.propertyGetter)) { @@ -147,17 +152,22 @@ class FixOverriddenMethodsVisitation extends Visitation { void _convertAllSubtreeMethodsToProperties( ObjCInterface node, - ObjCMethod rootMethod, - ) { + ObjCMethod rootMethod, [ + Set? visited, + ]) { + visited ??= {}; + if (!visited.add(node)) return; final method = node.getSimilarMethod(rootMethod); - if (method != null && method.kind == ObjCMethodKind.method) { + if (method != null && + !method.isClassMethod && + method.kind == ObjCMethodKind.method) { method.kind = ObjCMethodKind.propertyGetter; - context.logger.info( + context.logger.fine( 'Converted ${node.originalName}.${method.originalName} to a getter', ); } for (final t in node.subtypes) { - _convertAllSubtreeMethodsToProperties(t, rootMethod); + _convertAllSubtreeMethodsToProperties(t, rootMethod, visited); } } } diff --git a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart index d0918e3f18..843aec7385 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart @@ -186,6 +186,10 @@ void main() { '-shared', '-framework', 'Foundation', + '-framework', + 'AppKit', + '-framework', + 'WebKit', '-o', '/dev/null', ]), diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index 6d48048e5d..b9e3548ece 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -10,36 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _l3cf7j_wrapBlockingBlock_pfv6jd( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _l3cf7j_wrapListenerBlock_pfv6jd( - int port, - ffi.Pointer context, -); /// CatImplementsProto extension CatImplementsProto on Thing { @@ -48,11 +18,6 @@ extension CatImplementsProto on Thing { final _$$ref = object$.ref; return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_protoMethod); } - - /// staticProtoMethod - static int staticProtoMethod() { - return _objc_msgSend_1gcq84o(_class_Thing, _sel_staticProtoMethod); - } } /// WARNING: CatTestProtocol is a stub. To generate bindings for this class, include @@ -120,14 +85,6 @@ extension type ChildOfNSString._(objc.ObjCObject object$) return ChildOfNSString.fromPointer($ret, retain: false, release: true); } - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_ChildOfNSString, - _sel_supportsSecureCoding, - ); - } - /// Returns a new instance of ChildOfNSString constructed with the default `new` method. ChildOfNSString() : this.as(new$().object$); } @@ -205,14 +162,6 @@ extension type ChildOfThing._(objc.ObjCObject object$) return ChildOfThing.fromPointer($ret, retain: false, release: true); } - /// anonymousCategoryStaticMethod - static int anonymousCategoryStaticMethod() { - return _objc_msgSend_1gcq84o( - _class_ChildOfThing, - _sel_anonymousCategoryStaticMethod, - ); - } - /// new static ChildOfThing new$() { final $ret = _objc_msgSend_151sglz(_class_ChildOfThing, _sel_new); @@ -238,13 +187,6 @@ extension ChildOfThing$Methods on ChildOfThing { ); return ChildOfThing.fromPointer($ret, retain: false, release: true); } - - /// instancetypeMethod - ChildOfThing instancetypeMethod() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_instancetypeMethod); - return ChildOfThing.fromPointer($ret, retain: true, release: true); - } } /// InstanceTypeCategory @@ -289,171 +231,7 @@ extension Mul on Thing { } /// NSItemProvider -extension NSItemProvider on objc.NSURL { - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier( - objc.NSString typeIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_16fy0up( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref$1.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - objc.NSProgress? loadDataWithTypeIdentifier( - objc.NSString typeIdentifier, { - required objc.ObjCBlock - forItemProviderCompletionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - final _$$ref$2 = forItemProviderCompletionHandler.ref; - objc.checkOsVersionInternal( - 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSProgress.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - objc.NSArray get writableTypeIdentifiersForItemProvider { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'writableTypeIdentifiersForItemProvider', - ); - } - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier$1( - objc.NSString typeIdentifier, - ) { - final _$$ref = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_16fy0up( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSURL? objectWithItemProviderData( - objc.NSData data, { - required objc.NSString typeIdentifier, - }) { - final _$$ref = data.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _class_NSURL, - _sel_objectWithItemProviderData_typeIdentifier_error_, - _$$ref.pointer, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// readableTypeIdentifiersForItemProvider - static objc.NSArray getReadableTypeIdentifiersForItemProvider() { - objc.checkOsVersionInternal( - 'NSURL.readableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSURL, - _sel_readableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { - objc.checkOsVersionInternal( - 'NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSURL, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} +extension NSItemProvider on objc.NSURL {} /// NSPromisedItems extension NSPromisedItems on objc.NSURL { @@ -884,213 +662,6 @@ extension NSURLPathUtilities on objc.NSURL { } } -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSData_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSData.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_l3cf7j_wrapListenerBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x5cg0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_l3cf7j_wrapBlockingBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x5cg0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension - on objc.ObjCBlock { - void call(objc.NSData? arg0, objc.NSError? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - /// StaticAndInstanceMethodsWithSameNameCategory extension StaticAndInstanceMethodsWithSameNameCategory on Thing { /// sameNameMethod @@ -1157,14 +728,6 @@ extension type Thing._(objc.ObjCObject object$) return Thing.fromPointer($ret, retain: false, release: true); } - /// anonymousCategoryStaticMethod - static int anonymousCategoryStaticMethod() { - return _objc_msgSend_1gcq84o( - _class_Thing, - _sel_anonymousCategoryStaticMethod, - ); - } - /// new static Thing new$() { final $ret = _objc_msgSend_151sglz(_class_Thing, _sel_new); @@ -1182,12 +745,6 @@ extension Thing$Methods on Thing { return _objc_msgSend_1q0lyci(_$$ref.pointer, _sel_add_Y_, x, Y); } - /// anonymousCategoryMethod - int anonymousCategoryMethod() { - final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_anonymousCategoryMethod); - } - /// init Thing init() { final _$$ref = object$.ref; @@ -1202,57 +759,6 @@ extension Thing$Methods on Thing { ); return Thing.fromPointer($ret, retain: false, release: true); } - - /// instancetypeMethod - Thing instancetypeMethod() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_instancetypeMethod); - return Thing.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. - _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. - _BlockArgs_x5cg0.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_x5cg0, - ); -} - -extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { - objc.NSData? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } } @ffi.Native>( @@ -1299,16 +805,6 @@ final _class_Thing = objc.getClass( _class_Thing_raw, ).cast(), ); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__l3cf7j_BlockArgs_pfv6jd', -) -external ffi.Pointer _class__BlockArgs_x5cg0_raw; -final _class__BlockArgs_x5cg0 = objc.getClass( - "_l3cf7j_BlockArgs_pfv6jd", - () => ffi.Native.addressOf>( - _class__BlockArgs_x5cg0_raw, - ).cast(), -); final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1324,23 +820,6 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_16fy0up = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); final _objc_msgSend_17amj0z = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1485,27 +964,6 @@ final _objc_msgSend_1lsax7n = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); final _objc_msgSend_1q0lyci = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1578,40 +1036,6 @@ final _objc_msgSend_6p7ndb = objc.msgSendPointer bool, ) >(); -final _objc_msgSend_91o635 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_r0bo0s = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); late final _sel_URLByAppendingPathComponent_ = objc.registerName( "URLByAppendingPathComponent:", ); @@ -1639,14 +1063,6 @@ late final _sel_URLHandleUsingCache_ = objc.registerName( late final _sel_add_Y_ = objc.registerName("add:Y:"); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); -late final _sel_anonymousCategoryMethod = objc.registerName( - "anonymousCategoryMethod", -); -late final _sel_anonymousCategoryStaticMethod = objc.registerName( - "anonymousCategoryStaticMethod", -); -late final _sel_arg0 = objc.registerName("arg0"); -late final _sel_arg1 = objc.registerName("arg1"); late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( "checkPromisedItemIsReachableAndReturnError:", ); @@ -1664,15 +1080,7 @@ late final _sel_init = objc.registerName("init"); late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); late final _sel_instancetypeMethod = objc.registerName("instancetypeMethod"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = - objc.registerName( - "itemProviderVisibilityForRepresentationWithTypeIdentifier:", - ); late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); -late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = - objc.registerName( - "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", - ); late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( "loadResourceDataNotifyingClient:usingCache:", ); @@ -1680,8 +1088,6 @@ late final _sel_method = objc.registerName("method"); late final _sel_mul_Y_ = objc.registerName("mul:Y:"); late final _sel_new = objc.registerName("new"); late final _sel_nsStringExtension = objc.registerName("nsStringExtension"); -late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc - .registerName("objectWithItemProviderData:typeIdentifier:error:"); late final _sel_pathComponents = objc.registerName("pathComponents"); late final _sel_pathExtension = objc.registerName("pathExtension"); late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( @@ -1689,9 +1095,6 @@ late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( ); late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); late final _sel_protoMethod = objc.registerName("protoMethod"); -late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( - "readableTypeIdentifiersForItemProvider", -); late final _sel_resourceDataUsingCache_ = objc.registerName( "resourceDataUsingCache:", ); @@ -1700,14 +1103,7 @@ late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); late final _sel_setResourceData_ = objc.registerName("setResourceData:"); late final _sel_someProperty = objc.registerName("someProperty"); late final _sel_staticMethod = objc.registerName("staticMethod"); -late final _sel_staticProtoMethod = objc.registerName("staticProtoMethod"); late final _sel_sub_Y_ = objc.registerName("sub:Y:"); -late final _sel_supportsSecureCoding = objc.registerName( - "supportsSecureCoding", -); -late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( - "writableTypeIdentifiersForItemProvider", -); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m deleted file mode 100644 index f0761e700f..0000000000 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m +++ /dev/null @@ -1,111 +0,0 @@ -#include -#import -#import -#import "category_test.h" -#import "category_test.h" - -#if !__has_feature(objc_arc) -#error "This file must be compiled with ARC enabled" -#endif - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wundeclared-selector" - -typedef struct { - int64_t version; - void* (*newWaiter)(void); - void (*awaitWaiter)(void*); - void* (*currentIsolate)(void); - void (*enterIsolate)(void*); - void (*exitIsolate)(void); - int64_t (*getMainPortId)(void); - bool (*getCurrentThreadOwnsIsolate)(int64_t); - void (*invokeListenerPortBlock)(int64_t port, void*); - void (*invokeBlockingPortBlock)(int64_t port, void*, void*); -} DOBJC_Context; - -id objc_retainBlock(id); - -#define BLOCKING_BLOCK_IMPL(ctx, TYPE, SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ - assert(ctx->version >= 1); \ - void* targetIsolate = ctx->currentIsolate(); \ - int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ - __block __weak TYPE weakSelfBlock = nil; \ - TYPE strongSelfBlock = [SIG { \ - void* currentIsolate = ctx->currentIsolate(); \ - bool mayEnterIsolate = \ - currentIsolate == NULL && \ - ctx->getCurrentThreadOwnsIsolate != NULL && \ - ctx->getCurrentThreadOwnsIsolate(targetPort); \ - if (currentIsolate == targetIsolate || mayEnterIsolate) { \ - if (mayEnterIsolate) { \ - ctx->enterIsolate(targetIsolate); \ - } \ - INVOKE_DIRECT; \ - if (mayEnterIsolate) { \ - ctx->exitIsolate(); \ - } \ - } else { \ - void* waiter = ctx->newWaiter(); \ - TYPE selfRetain = [weakSelfBlock copy]; \ - INVOKE_LISTENER; \ - ctx->awaitWaiter(waiter); \ - (void)selfRetain; \ - } \ - } copy]; \ - weakSelfBlock = strongSelfBlock; \ - return strongSelfBlock; - - -__attribute__((visibility("default"))) -@interface _l3cf7j_BlockArgs_pfv6jd : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property (strong) id arg1; -@end -@implementation _l3cf7j_BlockArgs_pfv6jd -@end - -typedef void (^_ListenerTrampoline)(id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _l3cf7j_wrapListenerBlock_pfv6jd( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline weakSelfBlock = nil; - _ListenerTrampoline strongSelfBlock = [^void(id arg0, id arg1) { - @autoreleasepool { - _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline)(void * waiter, id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _l3cf7j_wrapBlockingBlock_pfv6jd(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(id arg0, id arg1), { - @autoreleasepool { - _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} -#undef BLOCKING_BLOCK_IMPL - -#pragma clang diagnostic pop diff --git a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart index d3464955d5..6980653a43 100644 --- a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart @@ -44,6 +44,35 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) _class_MethodFilteringTestInterface, ); + /// alloc + static MethodFilteringTestInterface alloc() { + final $ret = _objc_msgSend_151sglz( + _class_MethodFilteringTestInterface, + _sel_alloc, + ); + return MethodFilteringTestInterface.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static MethodFilteringTestInterface allocWithZone( + ffi.Pointer zone, + ) { + final $ret = _objc_msgSend_1cwp428( + _class_MethodFilteringTestInterface, + _sel_allocWithZone_, + zone, + ); + return MethodFilteringTestInterface.fromPointer( + $ret, + retain: false, + release: true, + ); + } + /// includedStaticMethod static MethodFilteringTestInterface includedStaticMethod() { final $ret = _objc_msgSend_151sglz( @@ -56,6 +85,22 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) release: true, ); } + + /// new + static MethodFilteringTestInterface new$() { + final $ret = _objc_msgSend_151sglz( + _class_MethodFilteringTestInterface, + _sel_new, + ); + return MethodFilteringTestInterface.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// Returns a new instance of MethodFilteringTestInterface constructed with the default `new` method. + MethodFilteringTestInterface() : this.as(new$().object$); } extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { @@ -84,6 +129,25 @@ extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_includedProperty); return objc.NSObject.fromPointer($ret, retain: true, release: true); } + + /// init + MethodFilteringTestInterface init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'MethodFilteringTestInterface.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return MethodFilteringTestInterface.fromPointer( + $ret, + retain: false, + release: true, + ); + } } /// MethodFilteringTestProtocol @@ -362,6 +426,23 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_3hao97 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -407,6 +488,8 @@ final _protocol_MethodFilteringTestProtocol = objc.getProtocol( "MethodFilteringTestProtocol", _protocol_MethodFilteringTestProtocol_raw, ); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); late final _sel_includedInstanceMethod_with_ = objc.registerName( "includedInstanceMethod:with:", @@ -418,6 +501,8 @@ late final _sel_includedProtocolMethod = objc.registerName( late final _sel_includedStaticMethod = objc.registerName( "includedStaticMethod", ); +late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart index d38bd0fd15..0eafdc227f 100644 --- a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart @@ -2315,48 +2315,6 @@ extension type ObjCProtocolImpl._(objc.ObjCObject object$) return ObjCProtocolImpl.fromPointer($ret, retain: false, release: true); } - /// optionalClassMethod - static int optionalClassMethod() { - if (!objc.respondsToSelector( - _class_ObjCProtocolImpl, - _sel_optionalClassMethod, - )) { - throw objc.UnimplementedOptionalMethodException( - 'ObjCProtocolImpl', - 'optionalClassMethod', - ); - } - return _objc_msgSend_1gcq84o( - _class_ObjCProtocolImpl, - _sel_optionalClassMethod, - ); - } - - /// requiredClassMethod - static int requiredClassMethod() { - return _objc_msgSend_1gcq84o( - _class_ObjCProtocolImpl, - _sel_requiredClassMethod, - ); - } - - /// unimplementedOtionalClassMethod - static int unimplementedOtionalClassMethod() { - if (!objc.respondsToSelector( - _class_ObjCProtocolImpl, - _sel_unimplementedOtionalClassMethod, - )) { - throw objc.UnimplementedOptionalMethodException( - 'ObjCProtocolImpl', - 'unimplementedOtionalClassMethod', - ); - } - return _objc_msgSend_1gcq84o( - _class_ObjCProtocolImpl, - _sel_unimplementedOtionalClassMethod, - ); - } - /// Returns a new instance of ObjCProtocolImpl constructed with the default `new` method. ObjCProtocolImpl() : this.as(new$().object$); } @@ -2570,48 +2528,6 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) ); } - /// optionalClassMethod - static int optionalClassMethod() { - if (!objc.respondsToSelector( - _class_ObjCProtocolImplMissingMethod, - _sel_optionalClassMethod, - )) { - throw objc.UnimplementedOptionalMethodException( - 'ObjCProtocolImplMissingMethod', - 'optionalClassMethod', - ); - } - return _objc_msgSend_1gcq84o( - _class_ObjCProtocolImplMissingMethod, - _sel_optionalClassMethod, - ); - } - - /// requiredClassMethod - static int requiredClassMethod() { - return _objc_msgSend_1gcq84o( - _class_ObjCProtocolImplMissingMethod, - _sel_requiredClassMethod, - ); - } - - /// unimplementedOtionalClassMethod - static int unimplementedOtionalClassMethod() { - if (!objc.respondsToSelector( - _class_ObjCProtocolImplMissingMethod, - _sel_unimplementedOtionalClassMethod, - )) { - throw objc.UnimplementedOptionalMethodException( - 'ObjCProtocolImplMissingMethod', - 'unimplementedOtionalClassMethod', - ); - } - return _objc_msgSend_1gcq84o( - _class_ObjCProtocolImplMissingMethod, - _sel_unimplementedOtionalClassMethod, - ); - } - /// Returns a new instance of ObjCProtocolImplMissingMethod constructed with the default `new` method. ObjCProtocolImplMissingMethod() : this.as(new$().object$); } @@ -3679,16 +3595,11 @@ late final _sel_intPtrMethod_ = objc.registerName("intPtrMethod:"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); late final _sel_objectMethod_ = objc.registerName("objectMethod:"); -late final _sel_optionalClassMethod = objc.registerName("optionalClassMethod"); late final _sel_optionalMethod_ = objc.registerName("optionalMethod:"); late final _sel_otherMethod_b_c_d_ = objc.registerName("otherMethod:b:c:d:"); -late final _sel_requiredClassMethod = objc.registerName("requiredClassMethod"); late final _sel_returnsInstanceType = objc.registerName("returnsInstanceType"); late final _sel_returnsMyProtocol = objc.registerName("returnsMyProtocol"); late final _sel_someMethod = objc.registerName("someMethod"); -late final _sel_unimplementedOtionalClassMethod = objc.registerName( - "unimplementedOtionalClassMethod", -); late final _sel_voidMethod_ = objc.registerName("voidMethod:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart index 1b66ae4d68..c9c0a6d438 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart @@ -547,11 +547,6 @@ extension type NSTextList._(objc.ObjCObject object$) return NSTextList.fromPointer($ret, retain: false, release: true); } - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSTextList, _sel_supportsSecureCoding); - } - /// Returns a new instance of NSTextList constructed with the default `new` method. NSTextList() : this.as(new$().object$); } @@ -1580,9 +1575,6 @@ late final _sel_showsSelectionIndicator = objc.registerName( "showsSelectionIndicator", ); late final _sel_startingItemNumber = objc.registerName("startingItemNumber"); -late final _sel_supportsSecureCoding = objc.registerName( - "supportsSecureCoding", -); late final _sel_viewForRow_forComponent_ = objc.registerName( "viewForRow:forComponent:", ); diff --git a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart index eb4465ca4e..aa48855d53 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart @@ -11,7 +11,7 @@ import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); @ffi.Native< - NSInteger Function(ffi.Pointer, ffi.Pointer) + ffi.Long Function(ffi.Pointer, ffi.Pointer) >() external int _pyqkbm_protocolTrampoline_fai2e9( ffi.Pointer target, @@ -72,7 +72,7 @@ extension type MySwiftClass._(objc.ObjCObject object$) extension MySwiftClass$Methods on MySwiftClass { /// getValue - DartNSInteger getValue() { + int getValue() { final _$$ref = object$.ref; return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_getValue); } @@ -93,7 +93,7 @@ extension MySwiftClass$Methods on MySwiftClass { } /// setValueWithX: - void setValueWithX(DartNSInteger x) { + void setValueWithX(int x) { final _$$ref = object$.ref; _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setValueWithX_, x); } @@ -124,7 +124,7 @@ extension type MySwiftProtocol._(objc.ObjCProtocol object$) extension MySwiftProtocol$Methods on MySwiftProtocol { /// getValue - DartNSInteger getValue() { + int getValue() { final _$$ref = object$.ref; return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_getValue); } @@ -141,7 +141,7 @@ interface class MySwiftProtocol$Builder { /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. static MySwiftProtocol implement({ - required DartNSInteger Function() getValue, + required int Function() getValue, bool $keepIsolateAlive = true, }) { final builder = objc.ObjCProtocolBuilder(debugName: 'MySwiftProtocol'); @@ -158,7 +158,7 @@ interface class MySwiftProtocol$Builder { /// Note: You cannot call this method after you have called `builder.build`. static void addToBuilder( objc.ObjCProtocolBuilder builder, { - required DartNSInteger Function() getValue, + required int Function() getValue, bool $keepIsolateAlive = true, }) { MySwiftProtocol$Builder.getValue.implement(builder, getValue); @@ -166,12 +166,12 @@ interface class MySwiftProtocol$Builder { } /// getValue - static final getValue = objc.ObjCProtocolMethod( + static final getValue = objc.ObjCProtocolMethod( _protocol_MySwiftProtocol, _sel_getValue, ffi.Native.addressOf< ffi.NativeFunction< - NSInteger Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, ) @@ -184,15 +184,12 @@ interface class MySwiftProtocol$Builder { isRequired: true, isInstanceMethod: true, ), - (DartNSInteger Function() func) => ObjCBlock_NSInteger_ffiVoid.fromFunction( + (int Function() func) => ObjCBlock_NSInteger_ffiVoid.fromFunction( (ffi.Pointer _) => func(), ), ); } -typedef NSInteger = ffi.Long; -typedef DartNSInteger = int; - /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_NSInteger_ffiVoid { /// Returns a block that wraps the given raw block pointer. @@ -214,7 +211,7 @@ abstract final class ObjCBlock_NSInteger_ffiVoid { static objc.ObjCBlock)> fromFunctionPointer( ffi.Pointer< - ffi.NativeFunction arg0)> + ffi.NativeFunction arg0)> > ptr, ) => objc.ObjCBlock)>( @@ -232,7 +229,7 @@ abstract final class ObjCBlock_NSInteger_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - DartNSInteger Function(ffi.Pointer) fn, { + int Function(ffi.Pointer) fn, { bool keepIsolateAlive = true, }) => objc.ObjCBlock)>( objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { @@ -246,13 +243,11 @@ abstract final class ObjCBlock_NSInteger_ffiVoid { ffi.Pointer block, ffi.Pointer arg0, ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() + .cast arg0)>>() .asFunction)>()(arg0); static ffi.Pointer _fnPtrCallable = ffi.Pointer.fromFunction< - NSInteger Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, ) @@ -266,7 +261,7 @@ abstract final class ObjCBlock_NSInteger_ffiVoid { ); static ffi.Pointer _closureCallable = ffi.Pointer.fromFunction< - NSInteger Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, ) @@ -277,11 +272,11 @@ abstract final class ObjCBlock_NSInteger_ffiVoid { /// Call operator for `objc.ObjCBlock)>`. extension ObjCBlock_NSInteger_ffiVoid$CallExtension on objc.ObjCBlock)> { - DartNSInteger call(ffi.Pointer arg0) { + int call(ffi.Pointer arg0) { return ref.pointer.ref.invoke .cast< ffi.NativeFunction< - NSInteger Function( + ffi.Long Function( ffi.Pointer block, ffi.Pointer arg0, ) From 8ae873ad3823edf8740692a36dfa92f7de9a7979 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Tue, 11 Aug 2026 11:54:39 +1000 Subject: [PATCH 07/54] fixes --- pkgs/ffigen/example/add/lib/add.g.dart | 2 +- .../c_json/cjson_generated_bindings.dart | 2 +- .../ffinative/lib/generated_bindings.dart | 2 +- .../libclang-example/generated_bindings.dart | 2 +- .../objective_c/avf_audio_bindings.dart | 11317 ++++++++-------- .../objective_c/avf_audio_bindings.dart.m | 4102 ++++++ .../example/objective_c/generate_code.dart | 1 + .../example/objective_c/play_audio.dart | 2 +- .../lib/generated/a_shared_b_gen.dart | 2 +- .../example/simple/generated_bindings.dart | 2 +- .../example/swift/swift_api_bindings.dart | 60 +- .../objc_built_in_functions.dart | 23 +- .../lib/src/code_generator/objc_methods.dart | 15 + .../ffigen/lib/src/code_generator/writer.dart | 1 + .../clang_bindings/clang_bindings.dart | 2 +- pkgs/ffigen/lib/src/header_parser/parser.dart | 6 +- .../src/visitor/fill_method_dependencies.dart | 6 +- .../_expected_boolean_dartbool_bindings.dart | 2 +- .../_expected_constant_bindings.dart | 2 +- .../_expected_enumclass_bindings.dart | 2 +- ...xpected_enumclass_duplicates_bindings.dart | 2 +- ...ed_enumclass_func_and_struct_bindings.dart | 2 +- ..._expected_enumclass_integers_bindings.dart | 2 +- .../_expected_function_bindings.dart | 2 +- ..._expected_function_ffiNative_bindings.dart | 2 +- .../_expected_function_n_struct_bindings.dart | 2 +- .../_expected_global_bindings.dart | 2 +- .../_expected_global_native_bindings.dart | 2 +- ...internal_conflict_resolution_bindings.dart | 2 +- .../_expected_native_symbol_bindings.dart | 2 +- .../_expected_packed_structs_bindings.dart | 2 +- ...ed_struct_allocate_collision_bindings.dart | 2 +- .../_expected_struct_bindings.dart | 2 +- .../_expected_typealias_bindings.dart | 2 +- .../_expected_unions_bindings.dart | 2 +- ...expected_decl_decl_collision_bindings.dart | 2 +- ...ecl_symbol_address_collision_bindings.dart | 2 +- ...ted_decl_type_name_collision_bindings.dart | 2 +- ...d_reserved_keyword_collision_bindings.dart | 2 +- .../objective_c_example_test.dart | 2 +- .../_expected_comment_markup_bindings.dart | 2 +- .../_expected_dart_handle_bindings.dart | 2 +- .../_expected_enum_int_mimic_bindings.dart | 2 +- .../_expected_forward_decl_bindings.dart | 2 +- .../_expected_functions_bindings.dart | 2 +- .../_expected_imported_types_bindings.dart | 2 +- ...expected_native_func_typedef_bindings.dart | 2 +- ...expected_opaque_dependencies_bindings.dart | 2 +- .../_expected_packed_structs_bindings.dart | 2 +- .../_expected_record_use_bindings.dart | 2 +- .../_expected_regress_384_bindings.dart | 2 +- .../_expected_sort_bindings.dart | 2 +- ..._expected_struct_fptr_fields_bindings.dart | 2 +- .../_expected_typedef_bindings.dart | 2 +- .../_expected_unions_bindings.dart | 2 +- .../_expected_varargs_bindings.dart | 2 +- .../_expected_cjson_bindings.dart | 2 +- .../_expected_libclang_bindings.dart | 2 +- .../_expected_sqlite_bindings.dart | 2 +- .../cpp_class_test_bindings.dart | 2 +- .../memory_edge_cases_bindings.dart | 2 +- .../native_objc_test/arc_test_bindings.dart | 125 +- .../bad_method_test_bindings.dart | 78 +- .../bad_override_test_bindings.dart | 173 +- .../block_annotation_test_bindings.dart | 438 +- .../block_annotation_test_bindings.m | 54 +- .../block_inherit_test_bindings.dart | 121 +- .../native_objc_test/block_test_bindings.dart | 698 +- .../native_objc_test/block_test_bindings.m | 112 +- .../native_objc_test/cast_test_bindings.dart | 44 +- .../category_test_bindings.dart | 784 +- .../native_objc_test/category_test_bindings.m | 111 + .../native_objc_test/enum_test_bindings.dart | 62 +- .../error_method_test_bindings.dart | 73 +- .../failed_to_load_test_bindings.dart | 49 +- .../forward_decl_test_bindings.dart | 46 +- .../global_native_test_bindings.dart | 2 +- .../global_test_bindings.dart | 2 +- .../inherited_instancetype_test_bindings.dart | 76 +- .../is_instance_test_bindings.dart | 42 +- .../isolate_test_bindings.dart | 66 +- .../native_objc_test/isolate_test_bindings.m | 14 +- .../native_objc_test/log_test_bindings.dart | 62 +- .../method_filtering_test_bindings.dart | 72 +- .../method_filtering_test_bindings.m | 2 +- .../method_test_bindings.dart | 188 +- .../native_objc_test_bindings.dart | 136 +- .../test/native_objc_test/ns_range_test.dart | 1 + .../nullable_inheritance_test_bindings.dart | 76 +- .../nullable_test_bindings.dart | 76 +- .../property_test_bindings.dart | 140 +- .../protocol_test_bindings.dart | 459 +- .../native_objc_test/protocol_test_bindings.m | 58 +- .../ref_count_test_bindings.dart | 142 +- .../rename_test_bindings.dart | 82 +- .../runtime_version_test_bindings.dart | 58 +- .../sdk_variable_test_bindings.dart | 282 +- .../static_func_native_test_bindings.dart | 52 +- .../static_func_test_bindings.dart | 52 +- .../string_test_bindings.dart | 26 +- .../swift_class_test_bindings.dart | 113 +- .../swift_class_test_bindings.m | 2 +- .../typedef_test_bindings.dart | 62 +- .../_expected_native_test_bindings.dart | 2 +- .../test/unit_tests/record_use_test.dart | 2 +- 105 files changed, 13195 insertions(+), 7755 deletions(-) create mode 100644 pkgs/ffigen/example/objective_c/avf_audio_bindings.dart.m create mode 100644 pkgs/ffigen/test/native_objc_test/category_test_bindings.m diff --git a/pkgs/ffigen/example/add/lib/add.g.dart b/pkgs/ffigen/example/add/lib/add.g.dart index 524e4b22c7..99aec23eaa 100644 --- a/pkgs/ffigen/example/add/lib/add.g.dart +++ b/pkgs/ffigen/example/add/lib/add.g.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; @ffi.Native() diff --git a/pkgs/ffigen/example/c_json/cjson_generated_bindings.dart b/pkgs/ffigen/example/c_json/cjson_generated_bindings.dart index a8e93d8d82..8104810389 100644 --- a/pkgs/ffigen/example/c_json/cjson_generated_bindings.dart +++ b/pkgs/ffigen/example/c_json/cjson_generated_bindings.dart @@ -21,7 +21,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Holds bindings to cJSON. diff --git a/pkgs/ffigen/example/ffinative/lib/generated_bindings.dart b/pkgs/ffigen/example/ffinative/lib/generated_bindings.dart index 04ba758de0..e98d864be2 100644 --- a/pkgs/ffigen/example/ffinative/lib/generated_bindings.dart +++ b/pkgs/ffigen/example/ffinative/lib/generated_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffinative_example/generated_bindings.dart') library; diff --git a/pkgs/ffigen/example/libclang-example/generated_bindings.dart b/pkgs/ffigen/example/libclang-example/generated_bindings.dart index 207c7c3e0d..df8c5de2b6 100644 --- a/pkgs/ffigen/example/libclang-example/generated_bindings.dart +++ b/pkgs/ffigen/example/libclang-example/generated_bindings.dart @@ -6,7 +6,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'custom_import.dart' as custom_import; import 'dart:ffi' as ffi; diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index 4a69253574..01ee81b6e6 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; @@ -60616,40 +60616,56 @@ external int YieldToAnyThread(); external int YieldToThread(int suggestedThread); @ffi.Native< - ffi.Void Function( + PMPrintSettings Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_1037nh9( +external PMPrintSettings _1uu024u_protocolTrampoline_11ylsyp( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, ); @ffi.Native< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_10lndml( +external bool _1uu024u_protocolTrampoline_123exxr( ffi.Pointer target, ffi.Pointer arg0, - bool arg1, + ffi.Pointer arg1, ); @ffi.Native< - ffi.Pointer Function( + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>() +external bool _1uu024u_protocolTrampoline_12g52hw( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, ) >() -external ffi.Pointer _1uu024u_protocolTrampoline_10vn635( +external void _1uu024u_protocolTrampoline_132zq0k( ffi.Pointer target, ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, ); @ffi.Native< @@ -60662,7 +60678,7 @@ external ffi.Pointer _1uu024u_protocolTrampoline_10vn635( NSInteger, ) >() -external void _1uu024u_protocolTrampoline_15e9dqx( +external void _1uu024u_protocolTrampoline_14pv86t( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, @@ -60671,72 +60687,82 @@ external void _1uu024u_protocolTrampoline_15e9dqx( int arg4, ); +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void _1uu024u_protocolTrampoline_15is1z3( + ffi.Pointer target, + ffi.Pointer arg0, +); + @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_18v1jvf( +external void _1uu024u_protocolTrampoline_166nalk( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, ); @ffi.Native< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSRange, - ffi.Pointer, ffi.Pointer, + ffi.LongLong, ) >() -external ffi.Pointer _1uu024u_protocolTrampoline_19u921t( +external void _1uu024u_protocolTrampoline_1axgza4( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, + ffi.Pointer arg2, + int arg3, ); @ffi.Native< - PMPrintSession Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, ) >() -external PMPrintSession _1uu024u_protocolTrampoline_1ch2rph( +external void _1uu024u_protocolTrampoline_1b0c39y( ffi.Pointer target, ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, ); @ffi.Native< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - NSTextCheckingTypes, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Int64, + ffi.Int64, ) >() -external ffi.Pointer _1uu024u_protocolTrampoline_1chy5b9( +external void _1uu024u_protocolTrampoline_1cgt9gb( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, int arg3, int arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, ); @ffi.Native< @@ -60744,31 +60770,33 @@ external ffi.Pointer _1uu024u_protocolTrampoline_1chy5b9( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Bool, ) >() -external void _1uu024u_protocolTrampoline_1cn988u( +external void _1uu024u_protocolTrampoline_1e0wztw( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, + bool arg2, ); @ffi.Native< - PMPrintSettings Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, ) >() -external PMPrintSettings _1uu024u_protocolTrampoline_1cwrrqo( +external void _1uu024u_protocolTrampoline_1fswoub( ffi.Pointer target, ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, ); @ffi.Native< @@ -60781,7 +60809,7 @@ external PMPrintSettings _1uu024u_protocolTrampoline_1cwrrqo( ffi.Pointer, ) >() -external bool _1uu024u_protocolTrampoline_1em3l8z( +external bool _1uu024u_protocolTrampoline_1gdoaig( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, @@ -60791,166 +60819,139 @@ external bool _1uu024u_protocolTrampoline_1em3l8z( ); @ffi.Native< - NSRange Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, + ffi.Pointer>, ) >() -external NSRange _1uu024u_protocolTrampoline_1j6oadz( +external bool _1uu024u_protocolTrampoline_1gpo89w( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - bool arg5, + ffi.Pointer> arg1, ); @ffi.Native< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, ) >() -external void _1uu024u_protocolTrampoline_1j7coyk( +external ffi.Pointer _1uu024u_protocolTrampoline_1jnam6p( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, ); @ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) + NSUInteger Function(ffi.Pointer, ffi.Pointer) >() -external void _1uu024u_protocolTrampoline_1l4hxwm( +external int _1uu024u_protocolTrampoline_1jqs8ts( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, ); @ffi.Native< - ffi.Void Function( + PMPrintSession Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_1lx650f( +external PMPrintSession _1uu024u_protocolTrampoline_1k8r9t5( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, ); @ffi.Native< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + NSUInteger, ) >() -external ffi.Pointer _1uu024u_protocolTrampoline_1mbt9g9( +external void _1uu024u_protocolTrampoline_1kovpyp( ffi.Pointer target, ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, ); @ffi.Native< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, + NSUInteger, ) >() -external ffi.Pointer _1uu024u_protocolTrampoline_1p0fswn( +external void _1uu024u_protocolTrampoline_1mrpyvj( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, + int arg3, ); @ffi.Native< - CGImageRef Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - objc.CGSize, - CGFloat, - ffi.Pointer, - ffi.Pointer, + NSUInteger, ) >() -external CGImageRef _1uu024u_protocolTrampoline_1p89e63( - ffi.Pointer target, - ffi.Pointer arg0, - objc.CGSize arg1, - double arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - PMPageFormat Function(ffi.Pointer, ffi.Pointer) ->() -external PMPageFormat _1uu024u_protocolTrampoline_1pm5t72( +external void _1uu024u_protocolTrampoline_1nr9pmw( ffi.Pointer target, ffi.Pointer arg0, + int arg1, ); @ffi.Native< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, + ffi.Pointer, + NSUInteger, + NSTextCheckingTypes, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_1qf1qkl( +external ffi.Pointer _1uu024u_protocolTrampoline_1r9jyb8( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, + ffi.Pointer arg2, int arg3, int arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, ); @ffi.Native< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + NSUInteger, ffi.Pointer, ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_1tz5yf( +external ffi.Pointer _1uu024u_protocolTrampoline_1rz9w3t( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, + ffi.Pointer arg1, + int arg2, ffi.Pointer arg3, + ffi.Pointer arg4, ); @ffi.Native< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -60958,7 +60959,7 @@ external void _1uu024u_protocolTrampoline_1tz5yf( ffi.Pointer, ) >() -external ffi.Pointer _1uu024u_protocolTrampoline_1yw2rcr( +external bool _1uu024u_protocolTrampoline_1w5mp29( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, @@ -60967,18 +60968,16 @@ external ffi.Pointer _1uu024u_protocolTrampoline_1yw2rcr( ); @ffi.Native< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >() -external bool _1uu024u_protocolTrampoline_2n06mv( +external void _1uu024u_protocolTrampoline_1y86ja3( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, + ffi.Pointer arg1, ); @ffi.Native< @@ -60987,55 +60986,49 @@ external bool _1uu024u_protocolTrampoline_2n06mv( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.LongLong, + ffi.Pointer, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_34xzuf( +external void _1uu024u_protocolTrampoline_1yjs6wb( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, - int arg3, + ffi.Pointer arg3, + ffi.Pointer arg4, ); @ffi.Native< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Bool, ) >() -external bool _1uu024u_protocolTrampoline_3su7tt( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - NSUInteger Function(ffi.Pointer, ffi.Pointer) ->() -external int _1uu024u_protocolTrampoline_5cb1bj( +external void _1uu024u_protocolTrampoline_24riuf( ffi.Pointer target, ffi.Pointer arg0, + bool arg1, ); @ffi.Native< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, ffi.Pointer, ffi.Pointer, + ffi.Int64, + ffi.Pointer, ) >() -external ffi.Pointer _1uu024u_protocolTrampoline_738w24( +external void _1uu024u_protocolTrampoline_36nsue( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, ); @ffi.Native< @@ -61043,16 +61036,14 @@ external ffi.Pointer _1uu024u_protocolTrampoline_738w24( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Bool, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_8acz2h( +external void _1uu024u_protocolTrampoline_4m73qm( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, + ffi.Pointer arg2, ); @ffi.Native< @@ -61063,32 +61054,36 @@ external void _1uu024u_protocolTrampoline_8acz2h( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_8jfq1p( +external void _1uu024u_protocolTrampoline_5rmak2( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4, + ffi.Pointer arg5, ); @ffi.Native< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.LongLong, - ffi.LongLong, + NSRange, + ffi.Pointer, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_9crvvv( +external ffi.Pointer _1uu024u_protocolTrampoline_6qnldf( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, - int arg3, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, ); @ffi.Native< @@ -61097,23 +61092,17 @@ external void _1uu024u_protocolTrampoline_9crvvv( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + NSInteger, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_bklti2( +external void _1uu024u_protocolTrampoline_8odg2g( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) ->() -external bool _1uu024u_protocolTrampoline_e3qsqz( - ffi.Pointer target, - ffi.Pointer arg0, + int arg3, + ffi.Pointer arg4, ); @ffi.Native< @@ -61121,14 +61110,20 @@ external bool _1uu024u_protocolTrampoline_e3qsqz( ffi.Pointer, ffi.Pointer, ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_fjrv01( +external void _1uu024u_protocolTrampoline_9dub82( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, ); @ffi.Native< @@ -61137,46 +61132,40 @@ external void _1uu024u_protocolTrampoline_fjrv01( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, + ffi.Bool, ) >() -external void _1uu024u_protocolTrampoline_h68abb( +external void _1uu024u_protocolTrampoline_9km3ll( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, + bool arg3, ); @ffi.Native< - PMPrinter Function(ffi.Pointer, ffi.Pointer) + PMPageFormat Function(ffi.Pointer, ffi.Pointer) >() -external PMPrinter _1uu024u_protocolTrampoline_h8xvuu( +external PMPageFormat _1uu024u_protocolTrampoline_abnjt9( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_jk1ljc( +external ffi.Pointer _1uu024u_protocolTrampoline_an4r6w( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2, ); @ffi.Native< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -61184,7 +61173,7 @@ external void _1uu024u_protocolTrampoline_jk1ljc( ffi.Pointer, ) >() -external bool _1uu024u_protocolTrampoline_jk8du5( +external ffi.Pointer _1uu024u_protocolTrampoline_ekc08i( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, @@ -61196,13 +61185,15 @@ external bool _1uu024u_protocolTrampoline_jk8du5( ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, ) >() -external bool _1uu024u_protocolTrampoline_jp3gca( +external bool _1uu024u_protocolTrampoline_g6y2su( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer> arg1, + ffi.Pointer arg1, + ffi.Pointer arg2, ); @ffi.Native< @@ -61211,94 +61202,79 @@ external bool _1uu024u_protocolTrampoline_jp3gca( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int64, - ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_jyim80( +external void _1uu024u_protocolTrampoline_hll3td( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, ); @ffi.Native< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_l2g8ke( +external ffi.Pointer _1uu024u_protocolTrampoline_hyxwut( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + PMPrinter Function(ffi.Pointer, ffi.Pointer) +>() +external PMPrinter _1uu024u_protocolTrampoline_ik4urx( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_ly2579( +external void _1uu024u_protocolTrampoline_le6lv4( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, + ffi.Pointer arg1, ); @ffi.Native< - ffi.Void Function( + NSRange Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer>, ) >() -external void _1uu024u_protocolTrampoline_m09tr7( +external NSRange _1uu024u_protocolTrampoline_lggt7i( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void _1uu024u_protocolTrampoline_ovsamd( - ffi.Pointer target, - ffi.Pointer arg0, + ffi.Pointer> arg4, ); @ffi.Native< - ffi.Short Function(ffi.Pointer, ffi.Pointer) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) >() -external int _1uu024u_protocolTrampoline_p984hf( +external ffi.Pointer _1uu024u_protocolTrampoline_mrzooz( ffi.Pointer target, ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, ); @ffi.Native< @@ -61308,38 +61284,33 @@ external int _1uu024u_protocolTrampoline_p984hf( ffi.Pointer, ) >() -external ffi.Pointer _1uu024u_protocolTrampoline_wpy7aa( +external ffi.Pointer _1uu024u_protocolTrampoline_ndzfqt( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); @ffi.Native< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_wy9lus( +external ffi.Pointer _1uu024u_protocolTrampoline_osi9m3( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - int arg2, + ffi.Pointer arg2, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) + ffi.Short Function(ffi.Pointer, ffi.Pointer) >() -external ffi.Pointer _1uu024u_protocolTrampoline_xr62hr( +external int _1uu024u_protocolTrampoline_rhnfn9( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, ); @ffi.Native< @@ -61349,16 +61320,18 @@ external ffi.Pointer _1uu024u_protocolTrampoline_xr62hr( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>, + ffi.Pointer, + ffi.Bool, ) >() -external NSRange _1uu024u_protocolTrampoline_xsqx6i( +external NSRange _1uu024u_protocolTrampoline_uebh3t( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, - ffi.Pointer> arg4, + ffi.Pointer arg4, + bool arg5, ); @ffi.Native< @@ -61371,7 +61344,7 @@ external NSRange _1uu024u_protocolTrampoline_xsqx6i( ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_xx612k( +external void _1uu024u_protocolTrampoline_vh5xcw( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, @@ -61381,31 +61354,33 @@ external void _1uu024u_protocolTrampoline_xx612k( ); @ffi.Native< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >() -external ffi.Pointer _1uu024u_protocolTrampoline_zi5eed( +external void _1uu024u_protocolTrampoline_w57eou( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2, ); @ffi.Native< ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_zuf90e( +external void _1uu024u_protocolTrampoline_xfiv91( ffi.Pointer target, ffi.Pointer arg0, - int arg1, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, ); @ffi.Native< @@ -61413,14 +61388,39 @@ external void _1uu024u_protocolTrampoline_zuf90e( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >() -external void _1uu024u_protocolTrampoline_zzthnb( +external void _1uu024u_protocolTrampoline_ye2vt3( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - bool arg2, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + CGFloat, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGImageRef _1uu024u_protocolTrampoline_yl33bh( + ffi.Pointer target, + ffi.Pointer arg0, + objc.CGSize arg1, + double arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, ); @ffi.Native< @@ -61434,7 +61434,7 @@ external void _1uu024u_protocolTrampoline_zzthnb( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1037nh9( +external ffi.Pointer _1uu024u_wrapBlockingBlock_12exqd( int port, ffi.Pointer context, ffi.Pointer< @@ -61454,7 +61454,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1037nh9( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_10lndml( +external ffi.Pointer _1uu024u_wrapBlockingBlock_130ym7a( int port, ffi.Pointer context, ffi.Pointer< @@ -61474,7 +61474,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_10lndml( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_10ssdng( +external ffi.Pointer _1uu024u_wrapBlockingBlock_132zq0k( int port, ffi.Pointer context, ffi.Pointer< @@ -61494,7 +61494,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_10ssdng( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_115kkcp( +external ffi.Pointer _1uu024u_wrapBlockingBlock_13ecogf( int port, ffi.Pointer context, ffi.Pointer< @@ -61514,7 +61514,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_115kkcp( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_11t2oft( +external ffi.Pointer _1uu024u_wrapBlockingBlock_13ytbkt( int port, ffi.Pointer context, ffi.Pointer< @@ -61534,7 +61534,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_11t2oft( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_132rcs6( +external ffi.Pointer _1uu024u_wrapBlockingBlock_14pv86t( int port, ffi.Pointer context, ffi.Pointer< @@ -61554,7 +61554,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_132rcs6( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_15e9dqx( +external ffi.Pointer _1uu024u_wrapBlockingBlock_15is1z3( int port, ffi.Pointer context, ffi.Pointer< @@ -61574,7 +61574,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_15e9dqx( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_15f11yh( +external ffi.Pointer _1uu024u_wrapBlockingBlock_166nalk( int port, ffi.Pointer context, ffi.Pointer< @@ -61594,7 +61594,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_15f11yh( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_15ghdzk( +external ffi.Pointer _1uu024u_wrapBlockingBlock_17efpu7( int port, ffi.Pointer context, ffi.Pointer< @@ -61614,7 +61614,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_15ghdzk( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_16sve1d( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1agrddk( int port, ffi.Pointer context, ffi.Pointer< @@ -61634,7 +61634,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_16sve1d( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_18kzm6a( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1axgza4( int port, ffi.Pointer context, ffi.Pointer< @@ -61654,7 +61654,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_18kzm6a( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_18qun1e( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1b0c39y( int port, ffi.Pointer context, ffi.Pointer< @@ -61674,7 +61674,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_18qun1e( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_18v1jvf( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1cgt9gb( int port, ffi.Pointer context, ffi.Pointer< @@ -61694,7 +61694,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_18v1jvf( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1a22wz( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1d1siln( int port, ffi.Pointer context, ffi.Pointer< @@ -61714,7 +61714,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1a22wz( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1b3bb6a( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1e0wztw( int port, ffi.Pointer context, ffi.Pointer< @@ -61734,7 +61734,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1b3bb6a( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1cn988u( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1fswoub( int port, ffi.Pointer context, ffi.Pointer< @@ -61754,7 +61754,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1cn988u( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1ctgxtl( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1gdgpbj( int port, ffi.Pointer context, ffi.Pointer< @@ -61774,7 +61774,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1ctgxtl( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1dqvvol( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1gt4vek( int port, ffi.Pointer context, ffi.Pointer< @@ -61794,7 +61794,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1dqvvol( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1j7coyk( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1jl1qga( int port, ffi.Pointer context, ffi.Pointer< @@ -61814,7 +61814,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1j7coyk( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1kwz7d1( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1k6sg8i( int port, ffi.Pointer context, ffi.Pointer< @@ -61834,7 +61834,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1kwz7d1( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1l4hxwm( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1kovpyp( int port, ffi.Pointer context, ffi.Pointer< @@ -61854,7 +61854,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1l4hxwm( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1lx650f( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1krhbbh( int port, ffi.Pointer context, ffi.Pointer< @@ -61874,7 +61874,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1lx650f( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1otpo83( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1lkkdea( int port, ffi.Pointer context, ffi.Pointer< @@ -61894,7 +61894,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1otpo83( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1pl9qdv( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1mrpyvj( int port, ffi.Pointer context, ffi.Pointer< @@ -61914,7 +61914,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1pl9qdv( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1qf1qkl( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1nn5emo( int port, ffi.Pointer context, ffi.Pointer< @@ -61934,7 +61934,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1qf1qkl( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1rz4y3( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1nr9pmw( int port, ffi.Pointer context, ffi.Pointer< @@ -61954,7 +61954,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1rz4y3( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1s56lr9( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1po7bn3( int port, ffi.Pointer context, ffi.Pointer< @@ -61974,7 +61974,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1s56lr9( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1tz5yf( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1s4gila( int port, ffi.Pointer context, ffi.Pointer< @@ -61994,7 +61994,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1tz5yf( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1yrznn1( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1u5s7gl( int port, ffi.Pointer context, ffi.Pointer< @@ -62014,7 +62014,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_1yrznn1( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_34xzuf( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1ua0j4l( int port, ffi.Pointer context, ffi.Pointer< @@ -62034,7 +62034,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_34xzuf( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_6enxqz( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1v2rdu1( int port, ffi.Pointer context, ffi.Pointer< @@ -62054,7 +62054,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_6enxqz( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_6jvo9y( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1xaf9kl( int port, ffi.Pointer context, ffi.Pointer< @@ -62074,7 +62074,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_6jvo9y( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_8acz2h( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1y86ja3( int port, ffi.Pointer context, ffi.Pointer< @@ -62094,7 +62094,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_8acz2h( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_8jfq1p( +external ffi.Pointer _1uu024u_wrapBlockingBlock_1yjs6wb( int port, ffi.Pointer context, ffi.Pointer< @@ -62114,7 +62114,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_8jfq1p( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_9crvvv( +external ffi.Pointer _1uu024u_wrapBlockingBlock_24riuf( int port, ffi.Pointer context, ffi.Pointer< @@ -62134,7 +62134,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_9crvvv( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_9fms3g( +external ffi.Pointer _1uu024u_wrapBlockingBlock_29zf79( int port, ffi.Pointer context, ffi.Pointer< @@ -62154,7 +62154,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_9fms3g( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_9o8504( +external ffi.Pointer _1uu024u_wrapBlockingBlock_2ik0db( int port, ffi.Pointer context, ffi.Pointer< @@ -62174,7 +62174,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_9o8504( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_b3tf6o( +external ffi.Pointer _1uu024u_wrapBlockingBlock_36nsue( int port, ffi.Pointer context, ffi.Pointer< @@ -62194,7 +62194,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_b3tf6o( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_bklti2( +external ffi.Pointer _1uu024u_wrapBlockingBlock_4m73qm( int port, ffi.Pointer context, ffi.Pointer< @@ -62214,7 +62214,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_bklti2( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_du1izn( +external ffi.Pointer _1uu024u_wrapBlockingBlock_5rmak2( int port, ffi.Pointer context, ffi.Pointer< @@ -62234,7 +62234,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_du1izn( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_f167m6( +external ffi.Pointer _1uu024u_wrapBlockingBlock_6ngya9( int port, ffi.Pointer context, ffi.Pointer< @@ -62254,7 +62254,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_f167m6( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_fjrv01( +external ffi.Pointer _1uu024u_wrapBlockingBlock_6s6vc3( int port, ffi.Pointer context, ffi.Pointer< @@ -62274,7 +62274,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_fjrv01( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_gwxhxt( +external ffi.Pointer _1uu024u_wrapBlockingBlock_8odg2g( int port, ffi.Pointer context, ffi.Pointer< @@ -62294,7 +62294,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_gwxhxt( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_h68abb( +external ffi.Pointer _1uu024u_wrapBlockingBlock_90wr7u( int port, ffi.Pointer context, ffi.Pointer< @@ -62314,7 +62314,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_h68abb( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_hk7n97( +external ffi.Pointer _1uu024u_wrapBlockingBlock_9dub82( int port, ffi.Pointer context, ffi.Pointer< @@ -62334,7 +62334,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_hk7n97( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_jk1ljc( +external ffi.Pointer _1uu024u_wrapBlockingBlock_9km3ll( int port, ffi.Pointer context, ffi.Pointer< @@ -62354,7 +62354,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_jk1ljc( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_jyim80( +external ffi.Pointer _1uu024u_wrapBlockingBlock_9kuhjb( int port, ffi.Pointer context, ffi.Pointer< @@ -62374,7 +62374,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_jyim80( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_k73ff5( +external ffi.Pointer _1uu024u_wrapBlockingBlock_bls7f3( int port, ffi.Pointer context, ffi.Pointer< @@ -62394,7 +62394,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_k73ff5( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_l2g8ke( +external ffi.Pointer _1uu024u_wrapBlockingBlock_d96no7( int port, ffi.Pointer context, ffi.Pointer< @@ -62414,7 +62414,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_l2g8ke( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_l3f29g( +external ffi.Pointer _1uu024u_wrapBlockingBlock_ec9pb6( int port, ffi.Pointer context, ffi.Pointer< @@ -62434,7 +62434,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_l3f29g( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_lmc3p5( +external ffi.Pointer _1uu024u_wrapBlockingBlock_gz0078( int port, ffi.Pointer context, ffi.Pointer< @@ -62454,7 +62454,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_lmc3p5( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_ly2579( +external ffi.Pointer _1uu024u_wrapBlockingBlock_h9i570( int port, ffi.Pointer context, ffi.Pointer< @@ -62474,7 +62474,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_ly2579( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_m09tr7( +external ffi.Pointer _1uu024u_wrapBlockingBlock_hf68d1( int port, ffi.Pointer context, ffi.Pointer< @@ -62494,7 +62494,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_m09tr7( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_n8yd09( +external ffi.Pointer _1uu024u_wrapBlockingBlock_hll3td( int port, ffi.Pointer context, ffi.Pointer< @@ -62514,7 +62514,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_n8yd09( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_o762yo( +external ffi.Pointer _1uu024u_wrapBlockingBlock_igu5g9( int port, ffi.Pointer context, ffi.Pointer< @@ -62534,7 +62534,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_o762yo( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_og5b6y( +external ffi.Pointer _1uu024u_wrapBlockingBlock_kjz7zp( int port, ffi.Pointer context, ffi.Pointer< @@ -62554,7 +62554,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_og5b6y( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_ovsamd( +external ffi.Pointer _1uu024u_wrapBlockingBlock_kuxxg7( int port, ffi.Pointer context, ffi.Pointer< @@ -62574,7 +62574,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_ovsamd( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_pfv6jd( +external ffi.Pointer _1uu024u_wrapBlockingBlock_l4qveu( int port, ffi.Pointer context, ffi.Pointer< @@ -62594,7 +62594,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_pfv6jd( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_r8gdi7( +external ffi.Pointer _1uu024u_wrapBlockingBlock_le6lv4( int port, ffi.Pointer context, ffi.Pointer< @@ -62614,7 +62614,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_r8gdi7( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_rdj45r( +external ffi.Pointer _1uu024u_wrapBlockingBlock_omynm( int port, ffi.Pointer context, ffi.Pointer< @@ -62634,7 +62634,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_rdj45r( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_tg5tbv( +external ffi.Pointer _1uu024u_wrapBlockingBlock_q64d1( int port, ffi.Pointer context, ffi.Pointer< @@ -62654,7 +62654,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_tg5tbv( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_wy9lus( +external ffi.Pointer _1uu024u_wrapBlockingBlock_vh5xcw( int port, ffi.Pointer context, ffi.Pointer< @@ -62674,7 +62674,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_wy9lus( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_xtuoz7( +external ffi.Pointer _1uu024u_wrapBlockingBlock_w57eou( int port, ffi.Pointer context, ffi.Pointer< @@ -62694,7 +62694,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_xtuoz7( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_xx612k( +external ffi.Pointer _1uu024u_wrapBlockingBlock_wv523k( int port, ffi.Pointer context, ffi.Pointer< @@ -62714,7 +62714,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_xx612k( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_zuf90e( +external ffi.Pointer _1uu024u_wrapBlockingBlock_xfiv91( int port, ffi.Pointer context, ffi.Pointer< @@ -62734,7 +62734,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_zuf90e( >, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_zzthnb( +external ffi.Pointer _1uu024u_wrapBlockingBlock_ye2vt3( int port, ffi.Pointer context, ffi.Pointer< @@ -62749,7 +62749,7 @@ external ffi.Pointer _1uu024u_wrapBlockingBlock_zzthnb( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1037nh9( +external ffi.Pointer _1uu024u_wrapListenerBlock_12exqd( int port, ffi.Pointer context, ); @@ -62760,7 +62760,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1037nh9( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_10lndml( +external ffi.Pointer _1uu024u_wrapListenerBlock_130ym7a( int port, ffi.Pointer context, ); @@ -62771,7 +62771,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_10lndml( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_10ssdng( +external ffi.Pointer _1uu024u_wrapListenerBlock_132zq0k( int port, ffi.Pointer context, ); @@ -62782,7 +62782,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_10ssdng( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_115kkcp( +external ffi.Pointer _1uu024u_wrapListenerBlock_13ecogf( int port, ffi.Pointer context, ); @@ -62793,7 +62793,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_115kkcp( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_11t2oft( +external ffi.Pointer _1uu024u_wrapListenerBlock_13ytbkt( int port, ffi.Pointer context, ); @@ -62804,7 +62804,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_11t2oft( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_132rcs6( +external ffi.Pointer _1uu024u_wrapListenerBlock_14pv86t( int port, ffi.Pointer context, ); @@ -62815,7 +62815,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_132rcs6( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_15e9dqx( +external ffi.Pointer _1uu024u_wrapListenerBlock_15is1z3( int port, ffi.Pointer context, ); @@ -62826,7 +62826,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_15e9dqx( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_15f11yh( +external ffi.Pointer _1uu024u_wrapListenerBlock_166nalk( int port, ffi.Pointer context, ); @@ -62837,7 +62837,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_15f11yh( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_15ghdzk( +external ffi.Pointer _1uu024u_wrapListenerBlock_17efpu7( int port, ffi.Pointer context, ); @@ -62848,7 +62848,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_15ghdzk( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_16sve1d( +external ffi.Pointer _1uu024u_wrapListenerBlock_1agrddk( int port, ffi.Pointer context, ); @@ -62859,7 +62859,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_16sve1d( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_18kzm6a( +external ffi.Pointer _1uu024u_wrapListenerBlock_1axgza4( int port, ffi.Pointer context, ); @@ -62870,7 +62870,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_18kzm6a( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_18qun1e( +external ffi.Pointer _1uu024u_wrapListenerBlock_1b0c39y( int port, ffi.Pointer context, ); @@ -62881,7 +62881,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_18qun1e( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_18v1jvf( +external ffi.Pointer _1uu024u_wrapListenerBlock_1cgt9gb( int port, ffi.Pointer context, ); @@ -62892,7 +62892,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_18v1jvf( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1a22wz( +external ffi.Pointer _1uu024u_wrapListenerBlock_1d1siln( int port, ffi.Pointer context, ); @@ -62903,7 +62903,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1a22wz( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1b3bb6a( +external ffi.Pointer _1uu024u_wrapListenerBlock_1e0wztw( int port, ffi.Pointer context, ); @@ -62914,7 +62914,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1b3bb6a( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1cn988u( +external ffi.Pointer _1uu024u_wrapListenerBlock_1fswoub( int port, ffi.Pointer context, ); @@ -62925,7 +62925,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1cn988u( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1ctgxtl( +external ffi.Pointer _1uu024u_wrapListenerBlock_1gdgpbj( int port, ffi.Pointer context, ); @@ -62936,7 +62936,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1ctgxtl( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1dqvvol( +external ffi.Pointer _1uu024u_wrapListenerBlock_1gt4vek( int port, ffi.Pointer context, ); @@ -62947,7 +62947,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1dqvvol( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1j7coyk( +external ffi.Pointer _1uu024u_wrapListenerBlock_1jl1qga( int port, ffi.Pointer context, ); @@ -62958,7 +62958,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1j7coyk( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1kwz7d1( +external ffi.Pointer _1uu024u_wrapListenerBlock_1k6sg8i( int port, ffi.Pointer context, ); @@ -62969,7 +62969,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1kwz7d1( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1l4hxwm( +external ffi.Pointer _1uu024u_wrapListenerBlock_1kovpyp( int port, ffi.Pointer context, ); @@ -62980,7 +62980,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1l4hxwm( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1lx650f( +external ffi.Pointer _1uu024u_wrapListenerBlock_1krhbbh( int port, ffi.Pointer context, ); @@ -62991,7 +62991,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1lx650f( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1otpo83( +external ffi.Pointer _1uu024u_wrapListenerBlock_1lkkdea( int port, ffi.Pointer context, ); @@ -63002,7 +63002,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1otpo83( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1pl9qdv( +external ffi.Pointer _1uu024u_wrapListenerBlock_1mrpyvj( int port, ffi.Pointer context, ); @@ -63013,7 +63013,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1pl9qdv( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1qf1qkl( +external ffi.Pointer _1uu024u_wrapListenerBlock_1nn5emo( int port, ffi.Pointer context, ); @@ -63024,7 +63024,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1qf1qkl( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1rz4y3( +external ffi.Pointer _1uu024u_wrapListenerBlock_1nr9pmw( int port, ffi.Pointer context, ); @@ -63035,7 +63035,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1rz4y3( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1s56lr9( +external ffi.Pointer _1uu024u_wrapListenerBlock_1po7bn3( int port, ffi.Pointer context, ); @@ -63046,7 +63046,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1s56lr9( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1tz5yf( +external ffi.Pointer _1uu024u_wrapListenerBlock_1s4gila( int port, ffi.Pointer context, ); @@ -63057,7 +63057,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1tz5yf( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1yrznn1( +external ffi.Pointer _1uu024u_wrapListenerBlock_1u5s7gl( int port, ffi.Pointer context, ); @@ -63068,7 +63068,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_1yrznn1( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_34xzuf( +external ffi.Pointer _1uu024u_wrapListenerBlock_1ua0j4l( int port, ffi.Pointer context, ); @@ -63079,7 +63079,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_34xzuf( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_6enxqz( +external ffi.Pointer _1uu024u_wrapListenerBlock_1v2rdu1( int port, ffi.Pointer context, ); @@ -63090,7 +63090,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_6enxqz( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_6jvo9y( +external ffi.Pointer _1uu024u_wrapListenerBlock_1xaf9kl( int port, ffi.Pointer context, ); @@ -63101,7 +63101,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_6jvo9y( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_8acz2h( +external ffi.Pointer _1uu024u_wrapListenerBlock_1y86ja3( int port, ffi.Pointer context, ); @@ -63112,7 +63112,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_8acz2h( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_8jfq1p( +external ffi.Pointer _1uu024u_wrapListenerBlock_1yjs6wb( int port, ffi.Pointer context, ); @@ -63123,7 +63123,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_8jfq1p( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_9crvvv( +external ffi.Pointer _1uu024u_wrapListenerBlock_24riuf( int port, ffi.Pointer context, ); @@ -63134,7 +63134,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_9crvvv( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_9fms3g( +external ffi.Pointer _1uu024u_wrapListenerBlock_29zf79( int port, ffi.Pointer context, ); @@ -63145,7 +63145,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_9fms3g( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_9o8504( +external ffi.Pointer _1uu024u_wrapListenerBlock_2ik0db( int port, ffi.Pointer context, ); @@ -63156,7 +63156,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_9o8504( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_b3tf6o( +external ffi.Pointer _1uu024u_wrapListenerBlock_36nsue( int port, ffi.Pointer context, ); @@ -63167,7 +63167,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_b3tf6o( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_bklti2( +external ffi.Pointer _1uu024u_wrapListenerBlock_4m73qm( int port, ffi.Pointer context, ); @@ -63178,7 +63178,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_bklti2( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_du1izn( +external ffi.Pointer _1uu024u_wrapListenerBlock_5rmak2( int port, ffi.Pointer context, ); @@ -63189,7 +63189,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_du1izn( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_f167m6( +external ffi.Pointer _1uu024u_wrapListenerBlock_6ngya9( int port, ffi.Pointer context, ); @@ -63200,7 +63200,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_f167m6( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_fjrv01( +external ffi.Pointer _1uu024u_wrapListenerBlock_6s6vc3( int port, ffi.Pointer context, ); @@ -63211,7 +63211,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_fjrv01( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_gwxhxt( +external ffi.Pointer _1uu024u_wrapListenerBlock_8odg2g( int port, ffi.Pointer context, ); @@ -63222,7 +63222,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_gwxhxt( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_h68abb( +external ffi.Pointer _1uu024u_wrapListenerBlock_90wr7u( int port, ffi.Pointer context, ); @@ -63233,7 +63233,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_h68abb( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_hk7n97( +external ffi.Pointer _1uu024u_wrapListenerBlock_9dub82( int port, ffi.Pointer context, ); @@ -63244,7 +63244,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_hk7n97( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_jk1ljc( +external ffi.Pointer _1uu024u_wrapListenerBlock_9km3ll( int port, ffi.Pointer context, ); @@ -63255,7 +63255,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_jk1ljc( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_jyim80( +external ffi.Pointer _1uu024u_wrapListenerBlock_9kuhjb( int port, ffi.Pointer context, ); @@ -63266,7 +63266,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_jyim80( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_k73ff5( +external ffi.Pointer _1uu024u_wrapListenerBlock_bls7f3( int port, ffi.Pointer context, ); @@ -63277,7 +63277,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_k73ff5( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_l2g8ke( +external ffi.Pointer _1uu024u_wrapListenerBlock_d96no7( int port, ffi.Pointer context, ); @@ -63288,7 +63288,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_l2g8ke( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_l3f29g( +external ffi.Pointer _1uu024u_wrapListenerBlock_ec9pb6( int port, ffi.Pointer context, ); @@ -63299,7 +63299,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_l3f29g( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_lmc3p5( +external ffi.Pointer _1uu024u_wrapListenerBlock_gz0078( int port, ffi.Pointer context, ); @@ -63310,7 +63310,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_lmc3p5( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_ly2579( +external ffi.Pointer _1uu024u_wrapListenerBlock_h9i570( int port, ffi.Pointer context, ); @@ -63321,7 +63321,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_ly2579( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_m09tr7( +external ffi.Pointer _1uu024u_wrapListenerBlock_hf68d1( int port, ffi.Pointer context, ); @@ -63332,7 +63332,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_m09tr7( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_n8yd09( +external ffi.Pointer _1uu024u_wrapListenerBlock_hll3td( int port, ffi.Pointer context, ); @@ -63343,7 +63343,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_n8yd09( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_o762yo( +external ffi.Pointer _1uu024u_wrapListenerBlock_igu5g9( int port, ffi.Pointer context, ); @@ -63354,7 +63354,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_o762yo( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_og5b6y( +external ffi.Pointer _1uu024u_wrapListenerBlock_kjz7zp( int port, ffi.Pointer context, ); @@ -63365,7 +63365,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_og5b6y( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_ovsamd( +external ffi.Pointer _1uu024u_wrapListenerBlock_kuxxg7( int port, ffi.Pointer context, ); @@ -63376,7 +63376,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_ovsamd( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_pfv6jd( +external ffi.Pointer _1uu024u_wrapListenerBlock_l4qveu( int port, ffi.Pointer context, ); @@ -63387,7 +63387,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_pfv6jd( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_r8gdi7( +external ffi.Pointer _1uu024u_wrapListenerBlock_le6lv4( int port, ffi.Pointer context, ); @@ -63398,7 +63398,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_r8gdi7( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_rdj45r( +external ffi.Pointer _1uu024u_wrapListenerBlock_omynm( int port, ffi.Pointer context, ); @@ -63409,7 +63409,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_rdj45r( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_tg5tbv( +external ffi.Pointer _1uu024u_wrapListenerBlock_q64d1( int port, ffi.Pointer context, ); @@ -63420,7 +63420,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_tg5tbv( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_wy9lus( +external ffi.Pointer _1uu024u_wrapListenerBlock_vh5xcw( int port, ffi.Pointer context, ); @@ -63431,7 +63431,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_wy9lus( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_xtuoz7( +external ffi.Pointer _1uu024u_wrapListenerBlock_w57eou( int port, ffi.Pointer context, ); @@ -63442,7 +63442,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_xtuoz7( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_xx612k( +external ffi.Pointer _1uu024u_wrapListenerBlock_wv523k( int port, ffi.Pointer context, ); @@ -63453,7 +63453,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_xx612k( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_zuf90e( +external ffi.Pointer _1uu024u_wrapListenerBlock_xfiv91( int port, ffi.Pointer context, ); @@ -63464,7 +63464,7 @@ external ffi.Pointer _1uu024u_wrapListenerBlock_zuf90e( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_zzthnb( +external ffi.Pointer _1uu024u_wrapListenerBlock_ye2vt3( int port, ffi.Pointer context, ); @@ -95587,7 +95587,7 @@ extension type AVAudioPlayer._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [AVAudioPlayer]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_AVAudioPlayer, @@ -95595,13 +95595,13 @@ extension type AVAudioPlayer._(objc.ObjCObject object$) /// alloc static AVAudioPlayer alloc() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_AVAudioPlayer, _sel_alloc); return AVAudioPlayer.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static AVAudioPlayer allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_AVAudioPlayer, _sel_allocWithZone_, zone, @@ -95611,7 +95611,7 @@ extension type AVAudioPlayer._(objc.ObjCObject object$) /// new static AVAudioPlayer new$() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_AVAudioPlayer, _sel_new); return AVAudioPlayer.fromPointer($ret, retain: false, release: true); } @@ -95629,12 +95629,12 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_65s5ywFpret( + ? _objc_msgSend_16dno01Fpret( _$$ref.pointer, _sel_averagePowerForChannel_, channelNumber, ) - : _objc_msgSend_65s5yw( + : _objc_msgSend_16dno01( _$$ref.pointer, _sel_averagePowerForChannel_, channelNumber, @@ -95649,7 +95649,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (7, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_channelAssignments); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_channelAssignments); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -95663,7 +95663,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (true, null), macOS: (false, (10, 13, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_currentDevice); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -95678,8 +95678,8 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_currentTime) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_currentTime); } /// data @@ -95690,7 +95690,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_data); return $ret.address == 0 ? null : objc.NSData.fromPointer($ret, retain: true, release: true); @@ -95704,7 +95704,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_delegate); return $ret.address == 0 ? null : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); @@ -95719,8 +95719,8 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_deviceCurrentTime) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_deviceCurrentTime); } /// duration @@ -95732,8 +95732,8 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_duration) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_duration); } /// enableRate @@ -95744,7 +95744,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (5, 0, 0)), macOS: (false, (10, 8, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_enableRate); } /// format @@ -95755,7 +95755,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_format); return AVAudioFormat.fromPointer($ret, retain: true, release: true); } @@ -95767,7 +95767,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -95785,7 +95785,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1lhpu4m( + final $ret = _objc_msgSend_1a2vk5h( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_error_, _$$ref$1.pointer, @@ -95815,7 +95815,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1pnyuds( + final $ret = _objc_msgSend_1rz4muk( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_fileTypeHint_error_, _$$ref$1.pointer, @@ -95842,7 +95842,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1lhpu4m( + final $ret = _objc_msgSend_1a2vk5h( _$$ref.retainAndReturnPointer(), _sel_initWithData_error_, _$$ref$1.pointer, @@ -95872,7 +95872,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1pnyuds( + final $ret = _objc_msgSend_1rz4muk( _$$ref.retainAndReturnPointer(), _sel_initWithData_fileTypeHint_error_, _$$ref$1.pointer, @@ -95896,7 +95896,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (true, null), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_intendedSpatialExperience, ); @@ -95915,7 +95915,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isMeteringEnabled); } /// isPlaying @@ -95926,7 +95926,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isPlaying); } /// numberOfChannels @@ -95937,7 +95937,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfChannels); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_numberOfChannels); } /// numberOfLoops @@ -95948,7 +95948,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_numberOfLoops); } /// pan @@ -95960,8 +95960,8 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); + ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_pan) + : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_pan); } /// pause @@ -95972,7 +95972,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_pause); } /// peakPowerForChannel: @@ -95984,12 +95984,12 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_65s5ywFpret( + ? _objc_msgSend_16dno01Fpret( _$$ref.pointer, _sel_peakPowerForChannel_, channelNumber, ) - : _objc_msgSend_65s5yw( + : _objc_msgSend_16dno01( _$$ref.pointer, _sel_peakPowerForChannel_, channelNumber, @@ -96004,7 +96004,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_play); } /// playAtTime: @@ -96015,7 +96015,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time$1); + return _objc_msgSend_6r70rc(_$$ref.pointer, _sel_playAtTime_, time$1); } /// prepareToPlay @@ -96026,7 +96026,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_prepareToPlay); } /// rate @@ -96038,8 +96038,8 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { macOS: (false, (10, 8, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); + ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_rate) + : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_rate); } /// setChannelAssignments: @@ -96051,7 +96051,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (7, 0, 0)), macOS: (true, null), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setChannelAssignments_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -96067,7 +96067,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (true, null), macOS: (false, (10, 13, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setCurrentDevice_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -96082,7 +96082,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); + _objc_msgSend_q6vpml(_$$ref.pointer, _sel_setCurrentTime_, value); } /// setDelegate: @@ -96094,7 +96094,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setDelegate_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -96109,7 +96109,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (5, 0, 0)), macOS: (false, (10, 8, 0)), ); - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); + _objc_msgSend_1s4gila(_$$ref.pointer, _sel_setEnableRate_, value); } /// setIntendedSpatialExperience: @@ -96121,7 +96121,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (true, null), macOS: (true, null), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setIntendedSpatialExperience_, _$$ref$1.pointer, @@ -96136,7 +96136,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setMeteringEnabled_, value); + _objc_msgSend_1s4gila(_$$ref.pointer, _sel_setMeteringEnabled_, value); } /// setNumberOfLoops: @@ -96147,7 +96147,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); + _objc_msgSend_1whyqxt(_$$ref.pointer, _sel_setNumberOfLoops_, value); } /// setPan: @@ -96158,7 +96158,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); + _objc_msgSend_1gv17gn(_$$ref.pointer, _sel_setPan_, value); } /// setRate: @@ -96169,7 +96169,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (5, 0, 0)), macOS: (false, (10, 8, 0)), ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); + _objc_msgSend_1gv17gn(_$$ref.pointer, _sel_setRate_, value); } /// setVolume: @@ -96180,7 +96180,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); + _objc_msgSend_1gv17gn(_$$ref.pointer, _sel_setVolume_, value); } /// setVolume:fadeDuration: @@ -96191,7 +96191,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - _objc_msgSend_1p4uk9e( + _objc_msgSend_1clfj3o( _$$ref.pointer, _sel_setVolume_fadeDuration_, volume, @@ -96207,7 +96207,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_settings); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_settings); return objc.NSDictionary.fromPointer($ret, retain: true, release: true); } @@ -96219,7 +96219,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_stop); } /// updateMeters @@ -96230,7 +96230,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_updateMeters); } /// url @@ -96241,7 +96241,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { iOS: (false, (2, 2, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_url); return $ret.address == 0 ? null : objc.NSURL.fromPointer($ret, retain: true, release: true); @@ -96256,8 +96256,8 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); + ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_volume) + : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_volume); } } @@ -96276,7 +96276,7 @@ extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [AVAudioPlayerDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_AVAudioPlayerDelegate, @@ -96302,7 +96302,7 @@ extension AVAudioPlayerDelegate$Methods on AVAudioPlayerDelegate { 'audioPlayerDecodeErrorDidOccur:error:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_audioPlayerDecodeErrorDidOccur_error_, _$$ref$1.pointer, @@ -96326,7 +96326,7 @@ extension AVAudioPlayerDelegate$Methods on AVAudioPlayerDelegate { 'audioPlayerDidFinishPlaying:successfully:', ); } - _objc_msgSend_6p7ndb( + _objc_msgSend_3lg6qb( _$$ref.pointer, _sel_audioPlayerDidFinishPlaying_successfully_, _$$ref$1.pointer, @@ -96504,7 +96504,7 @@ interface class AVAudioPlayerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_AVAudioPlayerDelegate, @@ -96552,7 +96552,7 @@ interface class AVAudioPlayerDelegate$Builder { ffi.Bool, ) > - >(_1uu024u_protocolTrampoline_zzthnb) + >(_1uu024u_protocolTrampoline_1e0wztw) .cast(), objc.getProtocolMethodSignature( _protocol_AVAudioPlayerDelegate, @@ -96696,7 +96696,7 @@ extension type AVAudioSessionDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [AVAudioSessionDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_AVAudioSessionDelegate, @@ -96720,7 +96720,7 @@ extension AVAudioSessionDelegate$Methods on AVAudioSessionDelegate { 'beginInterruption', ); } - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_beginInterruption); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_beginInterruption); } /// endInterruption @@ -96738,7 +96738,7 @@ extension AVAudioSessionDelegate$Methods on AVAudioSessionDelegate { 'endInterruption', ); } - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endInterruption); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_endInterruption); } /// endInterruptionWithFlags: @@ -96757,11 +96757,7 @@ extension AVAudioSessionDelegate$Methods on AVAudioSessionDelegate { 'endInterruptionWithFlags:', ); } - _objc_msgSend_1i9r4xy( - _$$ref.pointer, - _sel_endInterruptionWithFlags_, - flags, - ); + _objc_msgSend_rfcpxf(_$$ref.pointer, _sel_endInterruptionWithFlags_, flags); } /// inputIsAvailableChanged: @@ -96782,7 +96778,7 @@ extension AVAudioSessionDelegate$Methods on AVAudioSessionDelegate { 'inputIsAvailableChanged:', ); } - _objc_msgSend_1s56lr9( + _objc_msgSend_1s4gila( _$$ref.pointer, _sel_inputIsAvailableChanged_, isInputAvailable, @@ -97007,7 +97003,7 @@ interface class AVAudioSessionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_ovsamd) + >(_1uu024u_protocolTrampoline_15is1z3) .cast(), objc.getProtocolMethodSignature( _protocol_AVAudioSessionDelegate, @@ -97038,7 +97034,7 @@ interface class AVAudioSessionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_ovsamd) + >(_1uu024u_protocolTrampoline_15is1z3) .cast(), objc.getProtocolMethodSignature( _protocol_AVAudioSessionDelegate, @@ -97070,7 +97066,7 @@ interface class AVAudioSessionDelegate$Builder { NSUInteger, ) > - >(_1uu024u_protocolTrampoline_zuf90e) + >(_1uu024u_protocolTrampoline_1nr9pmw) .cast(), objc.getProtocolMethodSignature( _protocol_AVAudioSessionDelegate, @@ -97105,7 +97101,7 @@ interface class AVAudioSessionDelegate$Builder { ffi.Bool, ) > - >(_1uu024u_protocolTrampoline_10lndml) + >(_1uu024u_protocolTrampoline_24riuf) .cast(), objc.getProtocolMethodSignature( _protocol_AVAudioSessionDelegate, @@ -97137,7 +97133,7 @@ extension AVAudioSessionDeprecated on AVAudioSession { iOS: (false, (3, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_1hz7y9r( + return _objc_msgSend_18szuw0( _$$ref.pointer, _sel_currentHardwareInputNumberOfChannels, ); @@ -97152,7 +97148,7 @@ extension AVAudioSessionDeprecated on AVAudioSession { iOS: (false, (3, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_1hz7y9r( + return _objc_msgSend_18szuw0( _$$ref.pointer, _sel_currentHardwareOutputNumberOfChannels, ); @@ -97168,11 +97164,11 @@ extension AVAudioSessionDeprecated on AVAudioSession { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( + ? _objc_msgSend_9pr6kkFpret( _$$ref.pointer, _sel_currentHardwareSampleRate, ) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentHardwareSampleRate); + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_currentHardwareSampleRate); } /// delegate @@ -97184,7 +97180,7 @@ extension AVAudioSessionDeprecated on AVAudioSession { iOS: (false, (4, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_delegate); return $ret.address == 0 ? null : AVAudioSessionDelegate.fromPointer($ret, retain: true, release: true); @@ -97199,7 +97195,7 @@ extension AVAudioSessionDeprecated on AVAudioSession { iOS: (false, (3, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_inputIsAvailable); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_inputIsAvailable); } /// preferredHardwareSampleRate @@ -97212,11 +97208,11 @@ extension AVAudioSessionDeprecated on AVAudioSession { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( + ? _objc_msgSend_9pr6kkFpret( _$$ref.pointer, _sel_preferredHardwareSampleRate, ) - : _objc_msgSend_1ukqyt8( + : _objc_msgSend_9pr6kk( _$$ref.pointer, _sel_preferredHardwareSampleRate, ); @@ -97233,7 +97229,7 @@ extension AVAudioSessionDeprecated on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_tpnpd0( + final $ret = _objc_msgSend_4lxjho( _$$ref.pointer, _sel_setActive_withFlags_error_, active, @@ -97257,7 +97253,7 @@ extension AVAudioSessionDeprecated on AVAudioSession { iOS: (false, (4, 0, 0)), macOS: (true, null), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setDelegate_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -97275,7 +97271,7 @@ extension AVAudioSessionDeprecated on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_xhvge5( + final $ret = _objc_msgSend_1m4vyuw( _$$ref.pointer, _sel_setPreferredHardwareSampleRate_error_, sampleRate, @@ -97345,8 +97341,8 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_IOBufferDuration) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_IOBufferDuration); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_IOBufferDuration) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_IOBufferDuration); } /// inputDataSource @@ -97357,7 +97353,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (6, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_inputDataSource); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_inputDataSource); return $ret.address == 0 ? null : AVAudioSessionDataSourceDescription.fromPointer( @@ -97375,7 +97371,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (6, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_inputDataSources); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_inputDataSources); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -97390,8 +97386,8 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_inputGain) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_inputGain); + ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_inputGain) + : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_inputGain); } /// inputLatency @@ -97403,8 +97399,8 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_inputLatency) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_inputLatency); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_inputLatency) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_inputLatency); } /// inputNumberOfChannels @@ -97415,7 +97411,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (6, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_inputNumberOfChannels); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_inputNumberOfChannels); } /// inputOrientation @@ -97426,7 +97422,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (14, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_1n4ndiq(_$$ref.pointer, _sel_inputOrientation); + final $ret = _objc_msgSend_1uc3xpx(_$$ref.pointer, _sel_inputOrientation); return AVAudioStereoOrientation.fromValue($ret); } @@ -97438,7 +97434,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (6, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isInputAvailable); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isInputAvailable); } /// isInputGainSettable @@ -97449,7 +97445,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (6, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isInputGainSettable); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isInputGainSettable); } /// maximumInputNumberOfChannels @@ -97460,7 +97456,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (7, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_1hz7y9r( + return _objc_msgSend_18szuw0( _$$ref.pointer, _sel_maximumInputNumberOfChannels, ); @@ -97474,7 +97470,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (7, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_1hz7y9r( + return _objc_msgSend_18szuw0( _$$ref.pointer, _sel_maximumOutputNumberOfChannels, ); @@ -97488,7 +97484,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (6, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_outputDataSource); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_outputDataSource); return $ret.address == 0 ? null : AVAudioSessionDataSourceDescription.fromPointer( @@ -97506,7 +97502,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (6, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_outputDataSources); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_outputDataSources); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -97521,8 +97517,8 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_outputLatency) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_outputLatency); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_outputLatency) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_outputLatency); } /// outputNumberOfChannels @@ -97533,7 +97529,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (6, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_outputNumberOfChannels); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_outputNumberOfChannels); } /// preferredIOBufferDuration @@ -97545,11 +97541,11 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( + ? _objc_msgSend_9pr6kkFpret( _$$ref.pointer, _sel_preferredIOBufferDuration, ) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_preferredIOBufferDuration); + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_preferredIOBufferDuration); } /// preferredInputNumberOfChannels @@ -97560,7 +97556,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (7, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_1hz7y9r( + return _objc_msgSend_18szuw0( _$$ref.pointer, _sel_preferredInputNumberOfChannels, ); @@ -97574,7 +97570,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (14, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_1n4ndiq( + final $ret = _objc_msgSend_1uc3xpx( _$$ref.pointer, _sel_preferredInputOrientation, ); @@ -97589,7 +97585,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (7, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_1hz7y9r( + return _objc_msgSend_18szuw0( _$$ref.pointer, _sel_preferredOutputNumberOfChannels, ); @@ -97604,8 +97600,8 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_preferredSampleRate) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_preferredSampleRate); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_preferredSampleRate) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_preferredSampleRate); } /// sampleRate @@ -97617,8 +97613,8 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_sampleRate) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_sampleRate); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_sampleRate) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_sampleRate); } /// setInputDataSource:error: @@ -97632,7 +97628,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_l9p60w( + final $ret = _objc_msgSend_7agf1a( _$$ref.pointer, _sel_setInputDataSource_error_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -97655,7 +97651,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1c1ssyi( + final $ret = _objc_msgSend_6n81l6( _$$ref.pointer, _sel_setInputGain_error_, gain, @@ -97679,7 +97675,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_l9p60w( + final $ret = _objc_msgSend_7agf1a( _$$ref.pointer, _sel_setOutputDataSource_error_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -97702,7 +97698,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_xhvge5( + final $ret = _objc_msgSend_1m4vyuw( _$$ref.pointer, _sel_setPreferredIOBufferDuration_error_, duration, @@ -97725,7 +97721,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_165e55c( + final $ret = _objc_msgSend_e67j2c( _$$ref.pointer, _sel_setPreferredInputNumberOfChannels_error_, count, @@ -97748,7 +97744,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1db3yj( + final $ret = _objc_msgSend_ijjgcn( _$$ref.pointer, _sel_setPreferredInputOrientation_error_, orientation.value, @@ -97771,7 +97767,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_165e55c( + final $ret = _objc_msgSend_e67j2c( _$$ref.pointer, _sel_setPreferredOutputNumberOfChannels_error_, count, @@ -97794,7 +97790,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_xhvge5( + final $ret = _objc_msgSend_1m4vyuw( _$$ref.pointer, _sel_setPreferredSampleRate_error_, sampleRate, @@ -97815,7 +97811,7 @@ extension AVAudioSessionHardwareConfiguration on AVAudioSession { iOS: (false, (17, 2, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_supportedOutputChannelLayouts, ); @@ -98356,7 +98352,7 @@ extension Activation on AVAudioSession { iOS: (true, null), macOS: (true, null), ); - _objc_msgSend_ivnkdn( + _objc_msgSend_1oi13co( _$$ref.pointer, _sel_activateWithOptions_completionHandler_, options, @@ -98374,7 +98370,7 @@ extension Activation on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_164wts2( + final $ret = _objc_msgSend_1d50bq7( _$$ref.pointer, _sel_setActive_error_, active, @@ -98397,7 +98393,7 @@ extension Activation on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1nqw6vl( + final $ret = _objc_msgSend_rjymh3( _$$ref.pointer, _sel_setActive_withOptions_error_, active, @@ -99179,7 +99175,7 @@ extension BluetoothMicrophoneExtension on AVAudioSessionPortDescription { iOS: (false, (26, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_bluetoothMicrophoneExtension, ); @@ -111786,7 +111782,7 @@ extension type CTAdaptiveImageProviding._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [CTAdaptiveImageProviding]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_CTAdaptiveImageProviding, @@ -111803,7 +111799,7 @@ extension CTAdaptiveImageProviding$Methods on CTAdaptiveImageProviding { required ffi.Pointer imageSize, }) { final _$$ref = object$.ref; - return _objc_msgSend_wep107( + return _objc_msgSend_16t7zr0( _$$ref.pointer, _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, proposedSize, @@ -111896,7 +111892,7 @@ interface class CTAdaptiveImageProviding$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1p89e63) + >(_1uu024u_protocolTrampoline_yl33bh) .cast(), objc.getProtocolMethodSignature( _protocol_CTAdaptiveImageProviding, @@ -119779,18 +119775,18 @@ final class LongDateCvt extends ffi.Union { @SInt64() external int c; - external UnnamedStruct$22 hl; + external UnnamedStruct$20 hl; } typedef LongDateField = SInt8; final class LongDateRec extends ffi.Union { - external UnnamedStruct$15 ld; + external UnnamedStruct$22 ld; @ffi.Array.multi([14]) external ffi.Array list; - external UnnamedStruct$16 od; + external UnnamedStruct$10 od; } typedef LongDateTime = SInt64; @@ -120837,7 +120833,7 @@ extension MicrophoneInjection on AVAudioSession { iOS: (false, (18, 2, 0)), macOS: (true, null), ); - return _objc_msgSend_91o635( + return _objc_msgSend_13h8okt( _$$ref.pointer, _sel_isMicrophoneInjectionAvailable, ); @@ -120851,7 +120847,7 @@ extension MicrophoneInjection on AVAudioSession { iOS: (false, (18, 2, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_6pykvq( + final $ret = _objc_msgSend_1moai7z( _$$ref.pointer, _sel_preferredMicrophoneInjectionMode, ); @@ -120870,7 +120866,7 @@ extension MicrophoneInjection on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_2naryv( + final $ret = _objc_msgSend_13l47a1( _$$ref.pointer, _sel_setPreferredMicrophoneInjectionMode_error_, inValue.value, @@ -121491,7 +121487,7 @@ extension NSArchiverCallback on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForArchiver); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_classForArchiver); return $ret.address == 0 ? null : objc.ObjCObject($ret, retain: true, release: true); @@ -121507,7 +121503,7 @@ extension NSArchiverCallback on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_replacementObjectForArchiver_, _$$ref$1.pointer, @@ -121528,7 +121524,7 @@ extension NSArrayCreation on objc.NSArray { objc.NSArray initWithArray(objc.NSArray array) { final _$$ref = object$.ref; final _$$ref$1 = array.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithArray_, _$$ref$1.pointer, @@ -121540,7 +121536,7 @@ extension NSArrayCreation on objc.NSArray { objc.NSArray initWithArray$1(objc.NSArray array, {required bool copyItems}) { final _$$ref = object$.ref; final _$$ref$1 = array.ref; - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _$$ref.retainAndReturnPointer(), _sel_initWithArray_copyItems_, _$$ref$1.pointer, @@ -121560,7 +121556,7 @@ extension NSArrayCreation on objc.NSArray { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1lhpu4m( + final $ret = _objc_msgSend_1a2vk5h( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_error_, _$$ref$1.pointer, @@ -121579,7 +121575,7 @@ extension NSArrayCreation on objc.NSArray { objc.NSArray initWithObjects$1(objc.ObjCObject firstObj) { final _$$ref = object$.ref; final _$$ref$1 = firstObj.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithObjects_, _$$ref$1.pointer, @@ -121589,14 +121585,14 @@ extension NSArrayCreation on objc.NSArray { /// array static objc.NSArray array() { - final $ret = _objc_msgSend_151sglz(_class_NSArray, _sel_array); + final $ret = _objc_msgSend_zldla2(_class_NSArray, _sel_array); return objc.NSArray.fromPointer($ret, retain: true, release: true); } /// arrayWithArray: static objc.NSArray arrayWithArray(objc.NSArray array) { final _$$ref = array.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSArray, _sel_arrayWithArray_, _$$ref.pointer, @@ -121614,7 +121610,7 @@ extension NSArrayCreation on objc.NSArray { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1lhpu4m( + final $ret = _objc_msgSend_1a2vk5h( _class_NSArray, _sel_arrayWithContentsOfURL_error_, _$$ref.pointer, @@ -121632,7 +121628,7 @@ extension NSArrayCreation on objc.NSArray { /// arrayWithObject: static objc.NSArray arrayWithObject(objc.ObjCObject anObject) { final _$$ref = anObject.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSArray, _sel_arrayWithObject_, _$$ref.pointer, @@ -121643,7 +121639,7 @@ extension NSArrayCreation on objc.NSArray { /// arrayWithObjects: static objc.NSArray arrayWithObjects(objc.ObjCObject firstObj) { final _$$ref = firstObj.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSArray, _sel_arrayWithObjects_, _$$ref.pointer, @@ -121656,7 +121652,7 @@ extension NSArrayCreation on objc.NSArray { ffi.Pointer> objects, { required DartNSUInteger count, }) { - final $ret = _objc_msgSend_zmbtbd( + final $ret = _objc_msgSend_1u4qka1( _class_NSArray, _sel_arrayWithObjects_count_, objects, @@ -121679,7 +121675,7 @@ extension NSArrayDiffing on objc.NSArray { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_arrayByApplyingDifference_, _$$ref$1.pointer, @@ -121698,7 +121694,7 @@ extension NSArrayDiffing on objc.NSArray { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_differenceFromArray_, _$$ref$1.pointer, @@ -121722,7 +121718,7 @@ extension NSArrayDiffing on objc.NSArray { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - final $ret = _objc_msgSend_1wtpmu7( + final $ret = _objc_msgSend_shgy3l( _$$ref.pointer, _sel_differenceFromArray_withOptions_, _$$ref$1.pointer, @@ -121755,7 +121751,7 @@ extension NSArrayDiffing on objc.NSArray { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - final $ret = _objc_msgSend_1415lvo( + final $ret = _objc_msgSend_unrmat( _$$ref.pointer, _sel_differenceFromArray_withOptions_usingEquivalenceTest_, _$$ref$1.pointer, @@ -121776,7 +121772,7 @@ extension NSArrayPathExtensions on objc.NSArray { objc.NSArray pathsMatchingExtensions(objc.NSArray filterTypes) { final _$$ref = object$.ref; final _$$ref$1 = filterTypes.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_pathsMatchingExtensions_, _$$ref$1.pointer, @@ -121804,7 +121800,7 @@ extension NSAttributedStringCreateFromMarkdown on objc.NSAttributedString { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1k0ezzm( + final $ret = _objc_msgSend_jgkhez( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_, _$$ref$1.pointer, @@ -121842,7 +121838,7 @@ extension NSAttributedStringCreateFromMarkdown on objc.NSAttributedString { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1k0ezzm( + final $ret = _objc_msgSend_jgkhez( _$$ref.retainAndReturnPointer(), _sel_initWithMarkdown_options_baseURL_error_, _$$ref$1.pointer, @@ -121880,7 +121876,7 @@ extension NSAttributedStringCreateFromMarkdown on objc.NSAttributedString { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1k0ezzm( + final $ret = _objc_msgSend_jgkhez( _$$ref.retainAndReturnPointer(), _sel_initWithMarkdownString_options_baseURL_error_, _$$ref$1.pointer, @@ -121918,7 +121914,7 @@ extension NSAttributedStringFormatting on objc.NSAttributedString { iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0)), ); - final $ret = _objc_msgSend_187k8ck( + final $ret = _objc_msgSend_yeon2y( _$$ref.retainAndReturnPointer(), _sel_initWithFormat_options_locale_, _$$ref$1.pointer, @@ -121948,7 +121944,7 @@ extension NSAttributedStringFormatting on objc.NSAttributedString { iOS: (false, (17, 0, 0)), macOS: (false, (14, 0, 0)), ); - final $ret = _objc_msgSend_3fn4ca( + final $ret = _objc_msgSend_1dgggdh( _$$ref.retainAndReturnPointer(), _sel_initWithFormat_options_locale_context_, _$$ref$1.pointer, @@ -121973,7 +121969,7 @@ extension NSAttributedStringFormatting on objc.NSAttributedString { iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSAttributedString, _sel_localizedAttributedStringWithFormat_, _$$ref.pointer, @@ -121997,7 +121993,7 @@ extension NSAttributedStringFormatting on objc.NSAttributedString { iOS: (false, (17, 0, 0)), macOS: (false, (14, 0, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _class_NSAttributedString, _sel_localizedAttributedStringWithFormat_context_, _$$ref.pointer, @@ -122021,7 +122017,7 @@ extension NSAttributedStringFormatting on objc.NSAttributedString { iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0)), ); - final $ret = _objc_msgSend_s058d2( + final $ret = _objc_msgSend_1f7ncs3( _class_NSAttributedString, _sel_localizedAttributedStringWithFormat_options_, _$$ref.pointer, @@ -122047,7 +122043,7 @@ extension NSAttributedStringFormatting on objc.NSAttributedString { iOS: (false, (17, 0, 0)), macOS: (false, (14, 0, 0)), ); - final $ret = _objc_msgSend_187k8ck( + final $ret = _objc_msgSend_yeon2y( _class_NSAttributedString, _sel_localizedAttributedStringWithFormat_options_context_, _$$ref.pointer, @@ -122111,7 +122107,7 @@ extension NSBundleExtensionMethods on objc.NSString { iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0)), ); - final $ret = _objc_msgSend_qugqlf( + final $ret = _objc_msgSend_x76ogv( _$$ref.pointer, _sel_variantFittingPresentationWidth_, width, @@ -122138,12 +122134,12 @@ extension NSBundleResourceRequestAdditions on objc.NSBundle { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_mabicuFpret( + ? _objc_msgSend_zlrk5fFpret( _$$ref.pointer, _sel_preservationPriorityForTag_, _$$ref$1.pointer, ) - : _objc_msgSend_mabicu( + : _objc_msgSend_zlrk5f( _$$ref.pointer, _sel_preservationPriorityForTag_, _$$ref$1.pointer, @@ -122159,7 +122155,7 @@ extension NSBundleResourceRequestAdditions on objc.NSBundle { iOS: (false, (9, 0, 0)), macOS: (true, null), ); - _objc_msgSend_130mcug( + _objc_msgSend_1wruglo( _$$ref.pointer, _sel_setPreservationPriority_forTags_, priority, @@ -122246,7 +122242,7 @@ extension type NSCacheDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSCacheDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSCacheDelegate, @@ -122266,7 +122262,7 @@ extension NSCacheDelegate$Methods on NSCacheDelegate { 'cache:willEvictObject:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_cache_willEvictObject_, _$$ref$1.pointer, @@ -122408,7 +122404,7 @@ interface class NSCacheDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSCacheDelegate, @@ -122533,7 +122529,7 @@ extension NSCalendarDateExtras on objc.NSDate { iOS: (false, (2, 0, 0)), macOS: (false, (10, 4, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_dateWithCalendarFormat_timeZone_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -122558,7 +122554,7 @@ extension NSCalendarDateExtras on objc.NSDate { iOS: (false, (2, 0, 0)), macOS: (false, (10, 4, 0)), ); - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _$$ref.pointer, _sel_descriptionWithCalendarFormat_timeZone_locale_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -122580,7 +122576,7 @@ extension NSCalendarDateExtras on objc.NSDate { iOS: (false, (2, 0, 0)), macOS: (false, (10, 4, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithString_, _$$ref$1.pointer, @@ -122601,7 +122597,7 @@ extension NSCalendarDateExtras on objc.NSDate { iOS: (false, (2, 0, 0)), macOS: (false, (10, 4, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSDate, _sel_dateWithNaturalLanguageString_, _$$ref.pointer, @@ -122626,7 +122622,7 @@ extension NSCalendarDateExtras on objc.NSDate { iOS: (false, (2, 0, 0)), macOS: (false, (10, 4, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _class_NSDate, _sel_dateWithNaturalLanguageString_locale_, _$$ref.pointer, @@ -122646,7 +122642,7 @@ extension NSCalendarDateExtras on objc.NSDate { iOS: (false, (2, 0, 0)), macOS: (false, (10, 4, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSDate, _sel_dateWithString_, _$$ref.pointer, @@ -122736,7 +122732,7 @@ extension NSClassDescriptionPrimitives on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_attributeKeys); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_attributeKeys); return objc.NSArray.fromPointer($ret, retain: true, release: true); } @@ -122748,7 +122744,7 @@ extension NSClassDescriptionPrimitives on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classDescription); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_classDescription); return NSClassDescription.fromPointer($ret, retain: true, release: true); } @@ -122761,7 +122757,7 @@ extension NSClassDescriptionPrimitives on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_inverseForRelationshipKey_, _$$ref$1.pointer, @@ -122779,7 +122775,7 @@ extension NSClassDescriptionPrimitives on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_toManyRelationshipKeys, ); @@ -122794,7 +122790,7 @@ extension NSClassDescriptionPrimitives on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_toOneRelationshipKeys, ); @@ -122812,7 +122808,7 @@ extension NSClientCertificate on NSURLCredential { iOS: (false, (3, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_certificates); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_certificates); return objc.NSArray.fromPointer($ret, retain: true, release: true); } @@ -122824,7 +122820,7 @@ extension NSClientCertificate on NSURLCredential { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - return _objc_msgSend_nkb3zz(_$$ref.pointer, _sel_identity); + return _objc_msgSend_z7s0qs(_$$ref.pointer, _sel_identity); } /// credentialWithIdentity:certificates:persistence: @@ -122839,7 +122835,7 @@ extension NSClientCertificate on NSURLCredential { iOS: (false, (3, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_jfo4g1( + final $ret = _objc_msgSend_10340ek( _class_NSURLCredential, _sel_credentialWithIdentity_certificates_persistence_, identity, @@ -122860,7 +122856,7 @@ extension NSClientCertificateSpace on NSURLProtectionSpace { iOS: (false, (3, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_distinguishedNames); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_distinguishedNames); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -122900,7 +122896,7 @@ extension NSCoderMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_awakeAfterUsingCoder_, _$$ref$1.pointer, @@ -122918,7 +122914,7 @@ extension NSCoderMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForCoder); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_classForCoder); return objc.ObjCObject($ret, retain: true, release: true); } @@ -122931,7 +122927,7 @@ extension NSCoderMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_replacementObjectForCoder_, _$$ref$1.pointer, @@ -122948,7 +122944,7 @@ extension NSCoderMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_4sp4xj(_class_NSObject, _sel_setVersion_, aVersion); + _objc_msgSend_1whyqxt(_class_NSObject, _sel_setVersion_, aVersion); } /// version @@ -122958,7 +122954,7 @@ extension NSCoderMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1hz7y9r(_class_NSObject, _sel_version); + return _objc_msgSend_18szuw0(_class_NSObject, _sel_version); } } @@ -122988,7 +122984,7 @@ extension NSComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_doesContain_, _$$ref$1.pointer, @@ -123004,7 +123000,7 @@ extension NSComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_isCaseInsensitiveLike_, _$$ref$1.pointer, @@ -123020,7 +123016,7 @@ extension NSComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_isEqualTo_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -123036,7 +123032,7 @@ extension NSComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_isGreaterThan_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -123052,7 +123048,7 @@ extension NSComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_isGreaterThanOrEqualTo_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -123068,7 +123064,7 @@ extension NSComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_isLessThan_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -123084,7 +123080,7 @@ extension NSComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_isLessThanOrEqualTo_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -123100,11 +123096,7 @@ extension NSComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isLike_, - _$$ref$1.pointer, - ); + return _objc_msgSend_xbndyy(_$$ref.pointer, _sel_isLike_, _$$ref$1.pointer); } /// isNotEqualTo: @@ -123116,7 +123108,7 @@ extension NSComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_isNotEqualTo_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -123218,7 +123210,7 @@ extension type NSConnectionDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSConnectionDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSConnectionDelegate, @@ -123250,7 +123242,7 @@ extension NSConnectionDelegate$Methods on NSConnectionDelegate { 'authenticateComponents:withData:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_authenticateComponents_withData_, _$$ref$1.pointer, @@ -123277,7 +123269,7 @@ extension NSConnectionDelegate$Methods on NSConnectionDelegate { 'authenticationDataForComponents:', ); } - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_authenticationDataForComponents_, _$$ref$1.pointer, @@ -123308,7 +123300,7 @@ extension NSConnectionDelegate$Methods on NSConnectionDelegate { 'connection:handleRequest:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_connection_handleRequest_, _$$ref$1.pointer, @@ -123339,7 +123331,7 @@ extension NSConnectionDelegate$Methods on NSConnectionDelegate { 'connection:shouldMakeNewConnection:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_connection_shouldMakeNewConnection_, _$$ref$1.pointer, @@ -123366,7 +123358,7 @@ extension NSConnectionDelegate$Methods on NSConnectionDelegate { 'createConversationForConnection:', ); } - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_createConversationForConnection_, _$$ref$1.pointer, @@ -123394,7 +123386,7 @@ extension NSConnectionDelegate$Methods on NSConnectionDelegate { 'makeNewConnection:sender:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_makeNewConnection_sender_, _$$ref$1.pointer, @@ -123512,7 +123504,7 @@ interface class NSConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSConnectionDelegate, @@ -123540,7 +123532,7 @@ interface class NSConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xr62hr) + >(_1uu024u_protocolTrampoline_an4r6w) .cast(), objc.getProtocolMethodSignature( _protocol_NSConnectionDelegate, @@ -123570,7 +123562,7 @@ interface class NSConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSConnectionDelegate, @@ -123602,7 +123594,7 @@ interface class NSConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSConnectionDelegate, @@ -123630,7 +123622,7 @@ interface class NSConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xr62hr) + >(_1uu024u_protocolTrampoline_an4r6w) .cast(), objc.getProtocolMethodSignature( _protocol_NSConnectionDelegate, @@ -123658,7 +123650,7 @@ interface class NSConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSConnectionDelegate, @@ -123692,7 +123684,7 @@ extension NSCopyLinkMoveHandler on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_fileManager_shouldProceedAfterError_, _$$ref$1.pointer, @@ -123714,7 +123706,7 @@ extension NSCopyLinkMoveHandler on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_fileManager_willProcessPath_, _$$ref$1.pointer, @@ -123736,7 +123728,7 @@ extension NSCustomPronouns on NSMorphology$1 { iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_customPronounForLanguage_, _$$ref$1.pointer, @@ -123766,7 +123758,7 @@ extension NSCustomPronouns on NSMorphology$1 { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_6z4k82( + final $ret = _objc_msgSend_ikrf9p( _$$ref.pointer, _sel_setCustomPronoun_forLanguage_error_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -123791,7 +123783,7 @@ extension NSDataBase64Encoding on objc.NSData { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_ylninc( + final $ret = _objc_msgSend_ihaxwy( _$$ref.pointer, _sel_base64EncodedDataWithOptions_, options, @@ -123807,7 +123799,7 @@ extension NSDataBase64Encoding on objc.NSData { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_ylninc( + final $ret = _objc_msgSend_ihaxwy( _$$ref.pointer, _sel_base64EncodedStringWithOptions_, options, @@ -123827,7 +123819,7 @@ extension NSDataBase64Encoding on objc.NSData { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_7kpg7m( + final $ret = _objc_msgSend_xm0jkv( _$$ref.retainAndReturnPointer(), _sel_initWithBase64EncodedData_options_, _$$ref$1.pointer, @@ -123850,7 +123842,7 @@ extension NSDataBase64Encoding on objc.NSData { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_7kpg7m( + final $ret = _objc_msgSend_xm0jkv( _$$ref.retainAndReturnPointer(), _sel_initWithBase64EncodedString_options_, _$$ref$1.pointer, @@ -123876,7 +123868,7 @@ extension NSDataCompression on objc.NSData { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1vnlaqg( + final $ret = _objc_msgSend_1qltt4c( _$$ref.pointer, _sel_compressedDataUsingAlgorithm_error_, algorithm.value, @@ -123903,7 +123895,7 @@ extension NSDataCompression on objc.NSData { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1vnlaqg( + final $ret = _objc_msgSend_1qltt4c( _$$ref.pointer, _sel_decompressedDataUsingAlgorithm_error_, algorithm.value, @@ -123965,7 +123957,7 @@ extension NSDateCreation on objc.NSDate { }) { final _$$ref = object$.ref; final _$$ref$1 = sinceDate.ref; - final $ret = _objc_msgSend_1ozwf6k( + final $ret = _objc_msgSend_uo2bdm( _$$ref.retainAndReturnPointer(), _sel_initWithTimeInterval_sinceDate_, secsToBeAdded, @@ -123977,7 +123969,7 @@ extension NSDateCreation on objc.NSDate { /// initWithTimeIntervalSince1970: objc.NSDate initWithTimeIntervalSince1970(DartNSTimeInterval secs) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_oa8mke( + final $ret = _objc_msgSend_1qido3( _$$ref.retainAndReturnPointer(), _sel_initWithTimeIntervalSince1970_, secs, @@ -123988,7 +123980,7 @@ extension NSDateCreation on objc.NSDate { /// initWithTimeIntervalSinceNow: objc.NSDate initWithTimeIntervalSinceNow(DartNSTimeInterval secs) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_oa8mke( + final $ret = _objc_msgSend_1qido3( _$$ref.retainAndReturnPointer(), _sel_initWithTimeIntervalSinceNow_, secs, @@ -123998,7 +123990,7 @@ extension NSDateCreation on objc.NSDate { /// date static objc.NSDate date() { - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_date); + final $ret = _objc_msgSend_zldla2(_class_NSDate, _sel_date); return objc.NSDate.fromPointer($ret, retain: true, release: true); } @@ -124008,7 +124000,7 @@ extension NSDateCreation on objc.NSDate { required objc.NSDate sinceDate, }) { final _$$ref = sinceDate.ref; - final $ret = _objc_msgSend_1ozwf6k( + final $ret = _objc_msgSend_uo2bdm( _class_NSDate, _sel_dateWithTimeInterval_sinceDate_, secsToBeAdded, @@ -124019,7 +124011,7 @@ extension NSDateCreation on objc.NSDate { /// dateWithTimeIntervalSince1970: static objc.NSDate dateWithTimeIntervalSince1970(DartNSTimeInterval secs) { - final $ret = _objc_msgSend_oa8mke( + final $ret = _objc_msgSend_1qido3( _class_NSDate, _sel_dateWithTimeIntervalSince1970_, secs, @@ -124029,7 +124021,7 @@ extension NSDateCreation on objc.NSDate { /// dateWithTimeIntervalSinceNow: static objc.NSDate dateWithTimeIntervalSinceNow(DartNSTimeInterval secs) { - final $ret = _objc_msgSend_oa8mke( + final $ret = _objc_msgSend_1qido3( _class_NSDate, _sel_dateWithTimeIntervalSinceNow_, secs, @@ -124041,7 +124033,7 @@ extension NSDateCreation on objc.NSDate { static objc.NSDate dateWithTimeIntervalSinceReferenceDate( DartNSTimeInterval ti, ) { - final $ret = _objc_msgSend_oa8mke( + final $ret = _objc_msgSend_1qido3( _class_NSDate, _sel_dateWithTimeIntervalSinceReferenceDate_, ti, @@ -124051,13 +124043,13 @@ extension NSDateCreation on objc.NSDate { /// distantFuture static objc.NSDate getDistantFuture() { - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantFuture); + final $ret = _objc_msgSend_zldla2(_class_NSDate, _sel_distantFuture); return objc.NSDate.fromPointer($ret, retain: true, release: true); } /// distantPast static objc.NSDate getDistantPast() { - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantPast); + final $ret = _objc_msgSend_zldla2(_class_NSDate, _sel_distantPast); return objc.NSDate.fromPointer($ret, retain: true, release: true); } @@ -124068,7 +124060,7 @@ extension NSDateCreation on objc.NSDate { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_now); + final $ret = _objc_msgSend_zldla2(_class_NSDate, _sel_now); return objc.NSDate.fromPointer($ret, retain: true, release: true); } } @@ -124118,7 +124110,7 @@ extension NSDateFormatterCompatibility on NSDateFormatter { 'NSDateFormatter.allowsNaturalLanguage', macOS: (false, (10, 4, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_allowsNaturalLanguage); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_allowsNaturalLanguage); } /// initWithDateFormat:allowNaturalLanguage: @@ -124135,7 +124127,7 @@ extension NSDateFormatterCompatibility on NSDateFormatter { 'NSDateFormatter.initWithDateFormat:allowNaturalLanguage:', macOS: (false, (10, 4, 0)), ); - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _$$ref.retainAndReturnPointer(), _sel_initWithDateFormat_allowNaturalLanguage_, _$$ref$1.pointer, @@ -124221,7 +124213,7 @@ extension type NSDecimalNumberBehaviors._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSDecimalNumberBehaviors]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSDecimalNumberBehaviors, @@ -124240,7 +124232,7 @@ extension NSDecimalNumberBehaviors$Methods on NSDecimalNumberBehaviors { final _$$ref = object$.ref; final _$$ref$1 = leftOperand.ref; final _$$ref$2 = rightOperand?.ref; - final $ret = _objc_msgSend_1qldcx0( + final $ret = _objc_msgSend_1l7fxsy( _$$ref.pointer, _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, operation, @@ -124256,14 +124248,14 @@ extension NSDecimalNumberBehaviors$Methods on NSDecimalNumberBehaviors { /// roundingMode NSRoundingMode roundingMode() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_15dzt85(_$$ref.pointer, _sel_roundingMode); + final $ret = _objc_msgSend_1r5jzqh(_$$ref.pointer, _sel_roundingMode); return NSRoundingMode.fromValue($ret); } /// scale int scale() { final _$$ref = object$.ref; - return _objc_msgSend_1jwityx(_$$ref.pointer, _sel_scale); + return _objc_msgSend_1690f3y(_$$ref.pointer, _sel_scale); } } @@ -124363,7 +124355,7 @@ interface class NSDecimalNumberBehaviors$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_738w24) + >(_1uu024u_protocolTrampoline_1rz9w3t) .cast(), objc.getProtocolMethodSignature( _protocol_NSDecimalNumberBehaviors, @@ -124403,7 +124395,7 @@ interface class NSDecimalNumberBehaviors$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_5cb1bj) + >(_1uu024u_protocolTrampoline_1jqs8ts) .cast(), objc.getProtocolMethodSignature( _protocol_NSDecimalNumberBehaviors, @@ -124428,7 +124420,7 @@ interface class NSDecimalNumberBehaviors$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_p984hf) + >(_1uu024u_protocolTrampoline_rhnfn9) .cast(), objc.getProtocolMethodSignature( _protocol_NSDecimalNumberBehaviors, @@ -124471,7 +124463,7 @@ extension NSDecimalNumberScanning on NSScanner { /// scanDecimal: bool scanDecimal(ffi.Pointer dcm) { final _$$ref = object$.ref; - return _objc_msgSend_ijkvzl(_$$ref.pointer, _sel_scanDecimal_, dcm); + return _objc_msgSend_49k26d(_$$ref.pointer, _sel_scanDecimal_, dcm); } } @@ -124492,7 +124484,7 @@ extension NSDelayedPerforming on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_7ql5kn( + _objc_msgSend_1s1jtb4( _$$ref.pointer, _sel_performSelector_withObject_afterDelay_, aSelector, @@ -124516,7 +124508,7 @@ extension NSDelayedPerforming on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_t8ajot( + _objc_msgSend_1urtg4j( _$$ref.pointer, _sel_performSelector_withObject_afterDelay_inModes_, aSelector, @@ -124534,7 +124526,7 @@ extension NSDelayedPerforming on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _class_NSObject, _sel_cancelPreviousPerformRequestsWithTarget_, _$$ref.pointer, @@ -124554,7 +124546,7 @@ extension NSDelayedPerforming on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1ygbbzi( + _objc_msgSend_1exgpw8( _class_NSObject, _sel_cancelPreviousPerformRequestsWithTarget_selector_object_, _$$ref.pointer, @@ -124578,7 +124570,7 @@ extension NSDeprecated on objc.NSDictionary { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_hefmm1( + _objc_msgSend_1tf1mi0( _$$ref.pointer, _sel_getObjects_andKeys_, objects, @@ -124596,7 +124588,7 @@ extension NSDeprecated on objc.NSDictionary { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfFile_, _$$ref$1.pointer, @@ -124616,7 +124608,7 @@ extension NSDeprecated on objc.NSDictionary { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_, _$$ref$1.pointer, @@ -124636,7 +124628,7 @@ extension NSDeprecated on objc.NSDictionary { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1iyq28l( + return _objc_msgSend_lbnlyo( _$$ref.pointer, _sel_writeToFile_atomically_, _$$ref$1.pointer, @@ -124654,7 +124646,7 @@ extension NSDeprecated on objc.NSDictionary { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1iyq28l( + return _objc_msgSend_lbnlyo( _$$ref.pointer, _sel_writeToURL_atomically_, _$$ref$1.pointer, @@ -124671,7 +124663,7 @@ extension NSDeprecated on objc.NSDictionary { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSDictionary, _sel_dictionaryWithContentsOfFile_, _$$ref.pointer, @@ -124690,7 +124682,7 @@ extension NSDeprecated on objc.NSDictionary { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSDictionary, _sel_dictionaryWithContentsOfURL_, _$$ref.pointer, @@ -124712,7 +124704,7 @@ extension NSDeprecated$1 on objc.NSArray { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1dau4w(_$$ref.pointer, _sel_getObjects_, objects); + _objc_msgSend_c7ivs8(_$$ref.pointer, _sel_getObjects_, objects); } /// initWithContentsOfFile: @@ -124725,7 +124717,7 @@ extension NSDeprecated$1 on objc.NSArray { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfFile_, _$$ref$1.pointer, @@ -124745,7 +124737,7 @@ extension NSDeprecated$1 on objc.NSArray { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_, _$$ref$1.pointer, @@ -124765,7 +124757,7 @@ extension NSDeprecated$1 on objc.NSArray { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1iyq28l( + return _objc_msgSend_lbnlyo( _$$ref.pointer, _sel_writeToFile_atomically_, _$$ref$1.pointer, @@ -124783,7 +124775,7 @@ extension NSDeprecated$1 on objc.NSArray { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1iyq28l( + return _objc_msgSend_lbnlyo( _$$ref.pointer, _sel_writeToURL_atomically_, _$$ref$1.pointer, @@ -124800,7 +124792,7 @@ extension NSDeprecated$1 on objc.NSArray { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSArray, _sel_arrayWithContentsOfFile_, _$$ref.pointer, @@ -124819,7 +124811,7 @@ extension NSDeprecated$1 on objc.NSArray { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSArray, _sel_arrayWithContentsOfURL_, _$$ref.pointer, @@ -124841,7 +124833,7 @@ extension NSDeprecated$10 on NSIndexPath { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_h1puss(_$$ref.pointer, _sel_getIndexes_, indexes); + _objc_msgSend_nk89d9(_$$ref.pointer, _sel_getIndexes_, indexes); } } @@ -124856,7 +124848,7 @@ extension NSDeprecated$2 on objc.NSValue { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_ovsamd(_$$ref.pointer, _sel_getValue_, value); + _objc_msgSend_15is1z3(_$$ref.pointer, _sel_getValue_, value); } } @@ -124871,7 +124863,7 @@ extension NSDeprecated$3 on objc.NSData { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_base64Encoding); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_base64Encoding); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -124886,7 +124878,7 @@ extension NSDeprecated$3 on objc.NSData { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_ovsamd(_$$ref.pointer, _sel_getBytes_, buffer); + _objc_msgSend_15is1z3(_$$ref.pointer, _sel_getBytes_, buffer); } /// initWithBase64Encoding: @@ -124899,7 +124891,7 @@ extension NSDeprecated$3 on objc.NSData { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithBase64Encoding_, _$$ref$1.pointer, @@ -124921,7 +124913,7 @@ extension NSDeprecated$3 on objc.NSData { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfMappedFile_, _$$ref$1.pointer, @@ -124942,7 +124934,7 @@ extension NSDeprecated$3 on objc.NSData { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSData, _sel_dataWithContentsOfMappedFile_, _$$ref.pointer, @@ -124967,7 +124959,7 @@ extension NSDeprecated$4 on objc.NSCoder { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1flkydz( + _objc_msgSend_168l3u4( _$$ref.pointer, _sel_decodeValueOfObjCType_at_, type, @@ -124977,129 +124969,7 @@ extension NSDeprecated$4 on objc.NSCoder { } /// NSDeprecated -extension NSDeprecated$5 on NSTask { - /// currentDirectoryPath - @Deprecated('Deprecated') - objc.NSString get currentDirectoryPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTask.currentDirectoryPath', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_currentDirectoryPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// launch - @Deprecated('Deprecated') - void launch() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTask.launch', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_launch); - } - - /// launchPath - @Deprecated('Deprecated') - objc.NSString? get launchPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTask.launchPath', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_launchPath); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// setCurrentDirectoryPath: - @Deprecated('Deprecated') - set currentDirectoryPath(objc.NSString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - objc.checkOsVersionInternal( - 'NSTask.setCurrentDirectoryPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setCurrentDirectoryPath_, - _$$ref$1.pointer, - ); - } - - /// setLaunchPath: - @Deprecated('Deprecated') - set launchPath(objc.NSString? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSTask.setLaunchPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setLaunchPath_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// launchedTaskWithLaunchPath:arguments: - @Deprecated('Deprecated') - static NSTask launchedTaskWithLaunchPath( - objc.NSString path, { - required objc.NSArray arguments, - }) { - final _$$ref = path.ref; - final _$$ref$1 = arguments.ref; - objc.checkOsVersionInternal( - 'NSTask.launchedTaskWithLaunchPath:arguments:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _class_NSTask, - _sel_launchedTaskWithLaunchPath_arguments_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return NSTask.fromPointer($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$6 on NSScriptClassDescription$1 { - /// isReadOnlyKey: - @Deprecated('Deprecated') - bool isReadOnlyKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSScriptClassDescription.isReadOnlyKey:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isReadOnlyKey_, - _$$ref$1.pointer, - ); - } -} - -/// NSDeprecated -extension NSDeprecated$7 on NSFileWrapper { +extension NSDeprecated$5 on NSFileWrapper { /// addFileWithPath: @Deprecated( 'Instantiate a new NSFileWrapper with -initWithURL:options:error:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.', @@ -125112,7 +124982,7 @@ extension NSDeprecated$7 on NSFileWrapper { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_addFileWithPath_, _$$ref$1.pointer, @@ -125136,7 +125006,7 @@ extension NSDeprecated$7 on NSFileWrapper { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_addSymbolicLinkWithDestination_preferredFilename_, _$$ref$1.pointer, @@ -125157,7 +125027,7 @@ extension NSDeprecated$7 on NSFileWrapper { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initSymbolicLinkWithDestination_, _$$ref$1.pointer, @@ -125175,7 +125045,7 @@ extension NSDeprecated$7 on NSFileWrapper { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithPath_, _$$ref$1.pointer, @@ -125195,7 +125065,7 @@ extension NSDeprecated$7 on NSFileWrapper { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_needsToBeUpdatedFromPath_, _$$ref$1.pointer, @@ -125211,7 +125081,7 @@ extension NSDeprecated$7 on NSFileWrapper { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_symbolicLinkDestination, ); @@ -125228,7 +125098,7 @@ extension NSDeprecated$7 on NSFileWrapper { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_updateFromPath_, _$$ref$1.pointer, @@ -125249,7 +125119,7 @@ extension NSDeprecated$7 on NSFileWrapper { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_126fd3h( + return _objc_msgSend_2pmueu( _$$ref.pointer, _sel_writeToFile_atomically_updateFilenames_, _$$ref$1.pointer, @@ -125260,7 +125130,27 @@ extension NSDeprecated$7 on NSFileWrapper { } /// NSDeprecated -extension NSDeprecated$8 on NSOperationQueue { +extension NSDeprecated$6 on NSScriptClassDescription$1 { + /// isReadOnlyKey: + @Deprecated('Deprecated') + bool isReadOnlyKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSScriptClassDescription.isReadOnlyKey:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_xbndyy( + _$$ref.pointer, + _sel_isReadOnlyKey_, + _$$ref$1.pointer, + ); + } +} + +/// NSDeprecated +extension NSDeprecated$7 on NSOperationQueue { /// operationCount @Deprecated('Deprecated') DartNSUInteger get operationCount { @@ -125270,7 +125160,7 @@ extension NSDeprecated$8 on NSOperationQueue { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_operationCount); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_operationCount); } /// operations @@ -125284,11 +125174,113 @@ extension NSDeprecated$8 on NSOperationQueue { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_operations); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_operations); return objc.NSArray.fromPointer($ret, retain: true, release: true); } } +/// NSDeprecated +extension NSDeprecated$8 on NSTask { + /// currentDirectoryPath + @Deprecated('Deprecated') + objc.NSString get currentDirectoryPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTask.currentDirectoryPath', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_zldla2( + _$$ref.pointer, + _sel_currentDirectoryPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// launch + @Deprecated('Deprecated') + void launch() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTask.launch', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_launch); + } + + /// launchPath + @Deprecated('Deprecated') + objc.NSString? get launchPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTask.launchPath', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_launchPath); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// setCurrentDirectoryPath: + @Deprecated('Deprecated') + set currentDirectoryPath(objc.NSString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + objc.checkOsVersionInternal( + 'NSTask.setCurrentDirectoryPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1d1siln( + _$$ref.pointer, + _sel_setCurrentDirectoryPath_, + _$$ref$1.pointer, + ); + } + + /// setLaunchPath: + @Deprecated('Deprecated') + set launchPath(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSTask.setLaunchPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1d1siln( + _$$ref.pointer, + _sel_setLaunchPath_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// launchedTaskWithLaunchPath:arguments: + @Deprecated('Deprecated') + static NSTask launchedTaskWithLaunchPath( + objc.NSString path, { + required objc.NSArray arguments, + }) { + final _$$ref = path.ref; + final _$$ref$1 = arguments.ref; + objc.checkOsVersionInternal( + 'NSTask.launchedTaskWithLaunchPath:arguments:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1oxgj58( + _class_NSTask, + _sel_launchedTaskWithLaunchPath_arguments_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return NSTask.fromPointer($ret, retain: true, release: true); + } +} + /// NSDeprecated extension NSDeprecated$9 on NSXMLElement { /// setAttributesAsDictionary: @@ -125301,7 +125293,7 @@ extension NSDeprecated$9 on NSXMLElement { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setAttributesAsDictionary_, _$$ref$1.pointer, @@ -125321,7 +125313,7 @@ extension NSDeprecatedKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_handleQueryWithUnboundKey_, _$$ref$1.pointer, @@ -125345,7 +125337,7 @@ extension NSDeprecatedKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_handleTakeValue_forUnboundKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -125363,7 +125355,7 @@ extension NSDeprecatedKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_storedValueForKey_, _$$ref$1.pointer, @@ -125387,7 +125379,7 @@ extension NSDeprecatedKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_takeStoredValue_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -125406,7 +125398,7 @@ extension NSDeprecatedKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_takeValue_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -125428,7 +125420,7 @@ extension NSDeprecatedKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_takeValue_forKeyPath_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -125446,7 +125438,7 @@ extension NSDeprecatedKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_takeValuesFromDictionary_, _$$ref$1.pointer, @@ -125463,7 +125455,7 @@ extension NSDeprecatedKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_unableToSetNilForKey_, _$$ref$1.pointer, @@ -125480,7 +125472,7 @@ extension NSDeprecatedKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_valuesForKeys_, _$$ref$1.pointer, @@ -125496,7 +125488,7 @@ extension NSDeprecatedKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_91o635(_class_NSObject, _sel_useStoredAccessor); + return _objc_msgSend_13h8okt(_class_NSObject, _sel_useStoredAccessor); } } @@ -125515,7 +125507,7 @@ extension NSDeprecatedKeyValueObservingCustomization on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _class_NSObject, _sel_setKeys_triggerChangeNotificationsForDependentKey_, _$$ref.pointer, @@ -125540,7 +125532,7 @@ extension NSDictionaryCreation on objc.NSDictionary { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1lhpu4m( + final $ret = _objc_msgSend_1a2vk5h( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_error_, _$$ref$1.pointer, @@ -125559,7 +125551,7 @@ extension NSDictionaryCreation on objc.NSDictionary { objc.NSDictionary initWithDictionary(objc.NSDictionary otherDictionary) { final _$$ref = object$.ref; final _$$ref$1 = otherDictionary.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithDictionary_, _$$ref$1.pointer, @@ -125574,7 +125566,7 @@ extension NSDictionaryCreation on objc.NSDictionary { }) { final _$$ref = object$.ref; final _$$ref$1 = otherDictionary.ref; - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _$$ref.retainAndReturnPointer(), _sel_initWithDictionary_copyItems_, _$$ref$1.pointer, @@ -125591,7 +125583,7 @@ extension NSDictionaryCreation on objc.NSDictionary { final _$$ref = object$.ref; final _$$ref$1 = objects.ref; final _$$ref$2 = forKeys.ref; - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.retainAndReturnPointer(), _sel_initWithObjects_forKeys_, _$$ref$1.pointer, @@ -125604,7 +125596,7 @@ extension NSDictionaryCreation on objc.NSDictionary { objc.NSDictionary initWithObjectsAndKeys(objc.ObjCObject firstObject) { final _$$ref = object$.ref; final _$$ref$1 = firstObject.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithObjectsAndKeys_, _$$ref$1.pointer, @@ -125614,7 +125606,7 @@ extension NSDictionaryCreation on objc.NSDictionary { /// dictionary static objc.NSDictionary dictionary() { - final $ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_dictionary); + final $ret = _objc_msgSend_zldla2(_class_NSDictionary, _sel_dictionary); return objc.NSDictionary.fromPointer($ret, retain: true, release: true); } @@ -125628,7 +125620,7 @@ extension NSDictionaryCreation on objc.NSDictionary { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1lhpu4m( + final $ret = _objc_msgSend_1a2vk5h( _class_NSDictionary, _sel_dictionaryWithContentsOfURL_error_, _$$ref.pointer, @@ -125646,7 +125638,7 @@ extension NSDictionaryCreation on objc.NSDictionary { /// dictionaryWithDictionary: static objc.NSDictionary dictionaryWithDictionary(objc.NSDictionary dict) { final _$$ref = dict.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSDictionary, _sel_dictionaryWithDictionary_, _$$ref.pointer, @@ -125661,7 +125653,7 @@ extension NSDictionaryCreation on objc.NSDictionary { }) { final _$$ref = object.ref; final _$$ref$1 = forKey.ref; - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _class_NSDictionary, _sel_dictionaryWithObject_forKey_, _$$ref.pointer, @@ -125677,7 +125669,7 @@ extension NSDictionaryCreation on objc.NSDictionary { }) { final _$$ref = objects.ref; final _$$ref$1 = forKeys.ref; - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _class_NSDictionary, _sel_dictionaryWithObjects_forKeys_, _$$ref.pointer, @@ -125692,7 +125684,7 @@ extension NSDictionaryCreation on objc.NSDictionary { required ffi.Pointer> forKeys, required DartNSUInteger count, }) { - final $ret = _objc_msgSend_1dydpdi( + final $ret = _objc_msgSend_3qs0ul( _class_NSDictionary, _sel_dictionaryWithObjects_forKeys_count_, objects, @@ -125707,7 +125699,7 @@ extension NSDictionaryCreation on objc.NSDictionary { objc.ObjCObject firstObject, ) { final _$$ref = firstObject.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSDictionary, _sel_dictionaryWithObjectsAndKeys_, _$$ref.pointer, @@ -125739,7 +125731,7 @@ extension type NSDiscardableContent._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSDiscardableContent]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSDiscardableContent, @@ -125751,25 +125743,25 @@ extension NSDiscardableContent$Methods on NSDiscardableContent { /// beginContentAccess bool beginContentAccess() { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_beginContentAccess); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_beginContentAccess); } /// discardContentIfPossible void discardContentIfPossible() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_discardContentIfPossible); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_discardContentIfPossible); } /// endContentAccess void endContentAccess() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endContentAccess); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_endContentAccess); } /// isContentDiscarded bool isContentDiscarded() { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isContentDiscarded); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isContentDiscarded); } } @@ -125991,7 +125983,7 @@ interface class NSDiscardableContent$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_e3qsqz) + >(_1uu024u_protocolTrampoline_12g52hw) .cast(), objc.getProtocolMethodSignature( _protocol_NSDiscardableContent, @@ -126016,7 +126008,7 @@ interface class NSDiscardableContent$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_ovsamd) + >(_1uu024u_protocolTrampoline_15is1z3) .cast(), objc.getProtocolMethodSignature( _protocol_NSDiscardableContent, @@ -126047,7 +126039,7 @@ interface class NSDiscardableContent$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_ovsamd) + >(_1uu024u_protocolTrampoline_15is1z3) .cast(), objc.getProtocolMethodSignature( _protocol_NSDiscardableContent, @@ -126077,7 +126069,7 @@ interface class NSDiscardableContent$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_e3qsqz) + >(_1uu024u_protocolTrampoline_12g52hw) .cast(), objc.getProtocolMethodSignature( _protocol_NSDiscardableContent, @@ -126101,7 +126093,7 @@ extension NSDiscardableContentProxy on objc.NSObject { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_autoContentAccessingProxy, ); @@ -126158,7 +126150,7 @@ extension NSDistributedObjects on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForPortCoder); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_classForPortCoder); return objc.ObjCObject($ret, retain: true, release: true); } @@ -126172,7 +126164,7 @@ extension NSDistributedObjects on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_replacementObjectForPortCoder_, _$$ref$1.pointer, @@ -126218,7 +126210,7 @@ extension NSErrorRecoveryAttempting on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_z7gxsm( + return _objc_msgSend_2ufx71( _$$ref.pointer, _sel_attemptRecoveryFromError_optionIndex_, _$$ref$1.pointer, @@ -126242,7 +126234,7 @@ extension NSErrorRecoveryAttempting on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_10txwc9( + _objc_msgSend_i7dl0m( _$$ref.pointer, _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_, _$$ref$1.pointer, @@ -126290,7 +126282,7 @@ extension NSExceptionRaisingConveniences on NSException { }) { final _$$ref = name.ref; final _$$ref$1 = format.ref; - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _class_NSException, _sel_raise_format_, _$$ref.pointer, @@ -126364,7 +126356,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_7km9vu( + final $ret = _objc_msgSend_8qnx0d( _$$ref.pointer, _sel_attribute_atIndex_effectiveRange_, _$$ref$1.pointer, @@ -126390,7 +126382,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1k1akuq( + final $ret = _objc_msgSend_16v6ugk( _$$ref.pointer, _sel_attribute_atIndex_longestEffectiveRange_inRange_, _$$ref$1.pointer, @@ -126411,7 +126403,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1k1o1s7( + final $ret = _objc_msgSend_1cd70t7( _$$ref.pointer, _sel_attributedSubstringFromRange_, range, @@ -126435,7 +126427,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1pp2gs8( + final $ret = _objc_msgSend_cjvl3d( _$$ref.pointer, _sel_attributesAtIndex_longestEffectiveRange_inRange_, location, @@ -126467,7 +126459,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - _objc_msgSend_ipgwfh( + _objc_msgSend_1rtwvy8( _$$ref.pointer, _sel_enumerateAttribute_inRange_options_usingBlock_, _$$ref$1.pointer, @@ -126493,7 +126485,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - _objc_msgSend_1kok4b( + _objc_msgSend_14sf485( _$$ref.pointer, _sel_enumerateAttributesInRange_options_usingBlock_, enumerationRange, @@ -126513,7 +126505,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithAttributedString_, _$$ref$1.pointer, @@ -126534,7 +126526,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithString_, _$$ref$1.pointer, @@ -126559,7 +126551,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.retainAndReturnPointer(), _sel_initWithString_attributes_, _$$ref$1.pointer, @@ -126581,7 +126573,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_isEqualToAttributedString_, _$$ref$1.pointer, @@ -126596,7 +126588,7 @@ extension NSExtendedAttributedString on objc.NSAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_length); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_length); } } @@ -126610,7 +126602,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allowedClasses); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allowedClasses); return $ret.address == 0 ? null : objc.NSSet.fromPointer($ret, retain: true, release: true); @@ -126619,14 +126611,14 @@ extension NSExtendedCoder on objc.NSCoder { /// allowsKeyedCoding bool get allowsKeyedCoding { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_allowsKeyedCoding); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_allowsKeyedCoding); } /// containsValueForKey: bool containsValueForKey(objc.NSString key) { final _$$ref = object$.ref; final _$$ref$1 = key.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_containsValueForKey_, _$$ref$1.pointer, @@ -126640,7 +126632,7 @@ extension NSExtendedCoder on objc.NSCoder { required ffi.Pointer at, }) { final _$$ref = object$.ref; - _objc_msgSend_1lwwnes( + _objc_msgSend_1f7hox7( _$$ref.pointer, _sel_decodeArrayOfObjCType_count_at_, itemType, @@ -126662,7 +126654,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (14, 0, 0)), macOS: (false, (11, 0, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_decodeArrayOfObjectsOfClass_forKey_, _$$ref$1.pointer, @@ -126686,7 +126678,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (14, 0, 0)), macOS: (false, (11, 0, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_decodeArrayOfObjectsOfClasses_forKey_, _$$ref$1.pointer, @@ -126701,7 +126693,7 @@ extension NSExtendedCoder on objc.NSCoder { bool decodeBoolForKey(objc.NSString key) { final _$$ref = object$.ref; final _$$ref$1 = key.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_decodeBoolForKey_, _$$ref$1.pointer, @@ -126720,7 +126712,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (18, 4, 0)), macOS: (false, (15, 4, 0)), ); - return _objc_msgSend_nk32k5( + return _objc_msgSend_1l10mai( _$$ref.pointer, _sel_decodeBytesForKey_minimumLength_, _$$ref$1.pointer, @@ -126735,7 +126727,7 @@ extension NSExtendedCoder on objc.NSCoder { }) { final _$$ref = object$.ref; final _$$ref$1 = key.ref; - return _objc_msgSend_1pvm3yv( + return _objc_msgSend_1fyph4u( _$$ref.pointer, _sel_decodeBytesForKey_returnedLength_, _$$ref$1.pointer, @@ -126751,7 +126743,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (18, 4, 0)), macOS: (false, (15, 4, 0)), ); - return _objc_msgSend_16bn854( + return _objc_msgSend_5hhk6v( _$$ref.pointer, _sel_decodeBytesWithMinimumLength_, length, @@ -126763,7 +126755,7 @@ extension NSExtendedCoder on objc.NSCoder { ffi.Pointer lengthp, ) { final _$$ref = object$.ref; - return _objc_msgSend_2p9qiq( + return _objc_msgSend_s69mzd( _$$ref.pointer, _sel_decodeBytesWithReturnedLength_, lengthp, @@ -126785,7 +126777,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (14, 0, 0)), macOS: (false, (11, 0, 0)), ); - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _$$ref.pointer, _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_, _$$ref$1.pointer, @@ -126812,7 +126804,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (14, 0, 0)), macOS: (false, (11, 0, 0)), ); - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _$$ref.pointer, _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_, _$$ref$1.pointer, @@ -126829,12 +126821,12 @@ extension NSExtendedCoder on objc.NSCoder { final _$$ref = object$.ref; final _$$ref$1 = key.ref; return objc.useMsgSendVariants - ? _objc_msgSend_mabicuFpret( + ? _objc_msgSend_zlrk5fFpret( _$$ref.pointer, _sel_decodeDoubleForKey_, _$$ref$1.pointer, ) - : _objc_msgSend_mabicu( + : _objc_msgSend_zlrk5f( _$$ref.pointer, _sel_decodeDoubleForKey_, _$$ref$1.pointer, @@ -126846,12 +126838,12 @@ extension NSExtendedCoder on objc.NSCoder { final _$$ref = object$.ref; final _$$ref$1 = key.ref; return objc.useMsgSendVariants - ? _objc_msgSend_g4ia9xFpret( + ? _objc_msgSend_1q2tbpdFpret( _$$ref.pointer, _sel_decodeFloatForKey_, _$$ref$1.pointer, ) - : _objc_msgSend_g4ia9x( + : _objc_msgSend_1q2tbpd( _$$ref.pointer, _sel_decodeFloatForKey_, _$$ref$1.pointer, @@ -126862,7 +126854,7 @@ extension NSExtendedCoder on objc.NSCoder { int decodeInt32ForKey(objc.NSString key) { final _$$ref = object$.ref; final _$$ref$1 = key.ref; - return _objc_msgSend_fd28sq( + return _objc_msgSend_ml5svd( _$$ref.pointer, _sel_decodeInt32ForKey_, _$$ref$1.pointer, @@ -126873,7 +126865,7 @@ extension NSExtendedCoder on objc.NSCoder { int decodeInt64ForKey(objc.NSString key) { final _$$ref = object$.ref; final _$$ref$1 = key.ref; - return _objc_msgSend_1oj5o8z( + return _objc_msgSend_ko9mpb( _$$ref.pointer, _sel_decodeInt64ForKey_, _$$ref$1.pointer, @@ -126884,7 +126876,7 @@ extension NSExtendedCoder on objc.NSCoder { int decodeIntForKey(objc.NSString key) { final _$$ref = object$.ref; final _$$ref$1 = key.ref; - return _objc_msgSend_hws22w( + return _objc_msgSend_1vr6auf( _$$ref.pointer, _sel_decodeIntForKey_, _$$ref$1.pointer, @@ -126900,7 +126892,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_1r6ymhb( + return _objc_msgSend_smucfr( _$$ref.pointer, _sel_decodeIntegerForKey_, _$$ref$1.pointer, @@ -126910,7 +126902,7 @@ extension NSExtendedCoder on objc.NSCoder { /// decodeObject objc.ObjCObject? decodeObject() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodeObject); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_decodeObject); return $ret.address == 0 ? null : objc.ObjCObject($ret, retain: true, release: true); @@ -126920,7 +126912,7 @@ extension NSExtendedCoder on objc.NSCoder { objc.ObjCObject? decodeObjectForKey(objc.NSString key) { final _$$ref = object$.ref; final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_decodeObjectForKey_, _$$ref$1.pointer, @@ -126943,7 +126935,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_decodeObjectOfClass_forKey_, _$$ref$1.pointer, @@ -126967,7 +126959,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_decodeObjectOfClasses_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -126981,7 +126973,7 @@ extension NSExtendedCoder on objc.NSCoder { /// decodePropertyList objc.ObjCObject? decodePropertyList() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodePropertyList); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_decodePropertyList); return $ret.address == 0 ? null : objc.ObjCObject($ret, retain: true, release: true); @@ -126996,7 +126988,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_decodePropertyListForKey_, _$$ref$1.pointer, @@ -127016,7 +127008,7 @@ extension NSExtendedCoder on objc.NSCoder { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1w05pgk( + final $ret = _objc_msgSend_1l4zcuu( _$$ref.pointer, _sel_decodeTopLevelObjectAndReturnError_, $err, @@ -127041,7 +127033,7 @@ extension NSExtendedCoder on objc.NSCoder { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1lhpu4m( + final $ret = _objc_msgSend_1a2vk5h( _$$ref.pointer, _sel_decodeTopLevelObjectForKey_error_, _$$ref$1.pointer, @@ -127071,7 +127063,7 @@ extension NSExtendedCoder on objc.NSCoder { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1pnyuds( + final $ret = _objc_msgSend_1rz4muk( _$$ref.pointer, _sel_decodeTopLevelObjectOfClass_forKey_error_, _$$ref$1.pointer, @@ -127102,7 +127094,7 @@ extension NSExtendedCoder on objc.NSCoder { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1pnyuds( + final $ret = _objc_msgSend_1rz4muk( _$$ref.pointer, _sel_decodeTopLevelObjectOfClasses_forKey_error_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -127121,7 +127113,7 @@ extension NSExtendedCoder on objc.NSCoder { /// decodeValuesOfObjCTypes: void decodeValuesOfObjCTypes(ffi.Pointer types) { final _$$ref = object$.ref; - _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_decodeValuesOfObjCTypes_, types); + _objc_msgSend_n42fjv(_$$ref.pointer, _sel_decodeValuesOfObjCTypes_, types); } /// decodingFailurePolicy @@ -127132,7 +127124,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0)), ); - final $ret = _objc_msgSend_dgx62p( + final $ret = _objc_msgSend_1dubril( _$$ref.pointer, _sel_decodingFailurePolicy, ); @@ -127146,7 +127138,7 @@ extension NSExtendedCoder on objc.NSCoder { required ffi.Pointer at, }) { final _$$ref = object$.ref; - _objc_msgSend_1lwwnes( + _objc_msgSend_1f7hox7( _$$ref.pointer, _sel_encodeArrayOfObjCType_count_at_, type, @@ -127159,7 +127151,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeBool(bool value, {required objc.NSString forKey}) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; - _objc_msgSend_hk7n97( + _objc_msgSend_6ngya9( _$$ref.pointer, _sel_encodeBool_forKey_, value, @@ -127171,7 +127163,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeBycopyObject(objc.ObjCObject? anObject) { final _$$ref = object$.ref; final _$$ref$1 = anObject?.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_encodeBycopyObject_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -127182,7 +127174,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeByrefObject(objc.ObjCObject? anObject) { final _$$ref = object$.ref; final _$$ref$1 = anObject?.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_encodeByrefObject_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -127195,7 +127187,7 @@ extension NSExtendedCoder on objc.NSCoder { required DartNSUInteger length, }) { final _$$ref = object$.ref; - _objc_msgSend_zuf90e( + _objc_msgSend_1nr9pmw( _$$ref.pointer, _sel_encodeBytes_length_, byteaddr, @@ -127211,7 +127203,7 @@ extension NSExtendedCoder on objc.NSCoder { }) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; - _objc_msgSend_18flwjr( + _objc_msgSend_f2eek9( _$$ref.pointer, _sel_encodeBytes_length_forKey_, bytes, @@ -127224,7 +127216,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeConditionalObject(objc.ObjCObject? object) { final _$$ref = object$.ref; final _$$ref$1 = object?.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_encodeConditionalObject_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -127239,7 +127231,7 @@ extension NSExtendedCoder on objc.NSCoder { final _$$ref = object$.ref; final _$$ref$1 = object?.ref; final _$$ref$2 = forKey.ref; - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_encodeConditionalObject_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -127251,7 +127243,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeDouble(double value, {required objc.NSString forKey}) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; - _objc_msgSend_130mcug( + _objc_msgSend_1wruglo( _$$ref.pointer, _sel_encodeDouble_forKey_, value, @@ -127263,7 +127255,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeFloat(double value, {required objc.NSString forKey}) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; - _objc_msgSend_quo6mj( + _objc_msgSend_yvcp9i( _$$ref.pointer, _sel_encodeFloat_forKey_, value, @@ -127275,7 +127267,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeInt32(int value, {required objc.NSString forKey}) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; - _objc_msgSend_lof6g0( + _objc_msgSend_j25zxm( _$$ref.pointer, _sel_encodeInt32_forKey_, value, @@ -127287,7 +127279,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeInt64(int value, {required objc.NSString forKey}) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; - _objc_msgSend_mpxix1( + _objc_msgSend_xu1jv4( _$$ref.pointer, _sel_encodeInt64_forKey_, value, @@ -127299,7 +127291,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeInt(int value, {required objc.NSString forKey}) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; - _objc_msgSend_d8c3m2( + _objc_msgSend_1fzl250( _$$ref.pointer, _sel_encodeInt_forKey_, value, @@ -127316,7 +127308,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1kva9v1( + _objc_msgSend_2cgbeg( _$$ref.pointer, _sel_encodeInteger_forKey_, value, @@ -127328,7 +127320,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeObject(objc.ObjCObject? object) { final _$$ref = object$.ref; final _$$ref$1 = object?.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_encodeObject_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -127343,7 +127335,7 @@ extension NSExtendedCoder on objc.NSCoder { final _$$ref = object$.ref; final _$$ref$1 = object?.ref; final _$$ref$2 = forKey.ref; - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_encodeObject_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -127355,7 +127347,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodePropertyList(objc.ObjCObject aPropertyList) { final _$$ref = object$.ref; final _$$ref$1 = aPropertyList.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_encodePropertyList_, _$$ref$1.pointer, @@ -127366,7 +127358,7 @@ extension NSExtendedCoder on objc.NSCoder { void encodeRootObject(objc.ObjCObject rootObject) { final _$$ref = object$.ref; final _$$ref$1 = rootObject.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_encodeRootObject_, _$$ref$1.pointer, @@ -127376,7 +127368,7 @@ extension NSExtendedCoder on objc.NSCoder { /// encodeValuesOfObjCTypes: void encodeValuesOfObjCTypes(ffi.Pointer types) { final _$$ref = object$.ref; - _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_encodeValuesOfObjCTypes_, types); + _objc_msgSend_n42fjv(_$$ref.pointer, _sel_encodeValuesOfObjCTypes_, types); } /// error @@ -127387,7 +127379,7 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_error); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_error); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -127402,13 +127394,17 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0)), ); - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_failWithError_, _$$ref$1.pointer); + _objc_msgSend_1d1siln( + _$$ref.pointer, + _sel_failWithError_, + _$$ref$1.pointer, + ); } /// objectZone ffi.Pointer objectZone() { final _$$ref = object$.ref; - return _objc_msgSend_sz90oi(_$$ref.pointer, _sel_objectZone); + return _objc_msgSend_10m13xy(_$$ref.pointer, _sel_objectZone); } /// requiresSecureCoding @@ -127419,19 +127415,19 @@ extension NSExtendedCoder on objc.NSCoder { iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_requiresSecureCoding); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_requiresSecureCoding); } /// setObjectZone: void setObjectZone(ffi.Pointer zone) { final _$$ref = object$.ref; - _objc_msgSend_1lonves(_$$ref.pointer, _sel_setObjectZone_, zone); + _objc_msgSend_4aeiwn(_$$ref.pointer, _sel_setObjectZone_, zone); } /// systemVersion int get systemVersion { final _$$ref = object$.ref; - return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_systemVersion); + return _objc_msgSend_pxpqpv(_$$ref.pointer, _sel_systemVersion); } } @@ -127445,7 +127441,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_alternateQuotationBeginDelimiter, ); @@ -127460,7 +127456,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_alternateQuotationEndDelimiter, ); @@ -127475,7 +127471,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_calendarIdentifier); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_calendarIdentifier); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -127487,10 +127483,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_collationIdentifier, - ); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_collationIdentifier); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -127504,7 +127497,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_collatorIdentifier); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_collatorIdentifier); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -127517,7 +127510,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_countryCode); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_countryCode); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -127531,7 +127524,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currencyCode); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_currencyCode); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -127545,7 +127538,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currencySymbol); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_currencySymbol); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -127557,7 +127550,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decimalSeparator); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_decimalSeparator); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -127569,7 +127562,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_exemplarCharacterSet, ); @@ -127584,7 +127577,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_groupingSeparator); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_groupingSeparator); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -127596,7 +127589,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_languageCode); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_languageCode); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -127608,14 +127601,14 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (17, 0, 0)), macOS: (false, (14, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_languageIdentifier); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_languageIdentifier); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// localeIdentifier objc.NSString get localeIdentifier { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_localeIdentifier); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_localeIdentifier); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -127630,7 +127623,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_localizedStringForCalendarIdentifier_, _$$ref$1.pointer, @@ -127651,7 +127644,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_localizedStringForCollationIdentifier_, _$$ref$1.pointer, @@ -127672,7 +127665,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_localizedStringForCollatorIdentifier_, _$$ref$1.pointer, @@ -127691,7 +127684,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_localizedStringForCountryCode_, _$$ref$1.pointer, @@ -127710,7 +127703,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_localizedStringForCurrencyCode_, _$$ref$1.pointer, @@ -127729,7 +127722,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_localizedStringForLanguageCode_, _$$ref$1.pointer, @@ -127750,7 +127743,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_localizedStringForLocaleIdentifier_, _$$ref$1.pointer, @@ -127767,7 +127760,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_localizedStringForScriptCode_, _$$ref$1.pointer, @@ -127786,7 +127779,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_localizedStringForVariantCode_, _$$ref$1.pointer, @@ -127804,7 +127797,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_quotationBeginDelimiter, ); @@ -127819,7 +127812,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_quotationEndDelimiter, ); @@ -127834,7 +127827,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (17, 0, 0)), macOS: (false, (14, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_regionCode); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_regionCode); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -127848,7 +127841,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_scriptCode); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_scriptCode); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -127862,7 +127855,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_usesMetricSystem); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_usesMetricSystem); } /// variantCode @@ -127873,7 +127866,7 @@ extension NSExtendedLocale on objc.NSLocale { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_variantCode); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_variantCode); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -127896,7 +127889,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_6h5ewf( + _objc_msgSend_10mh3mj( _$$ref.pointer, _sel_addAttribute_value_range_, _$$ref$1.pointer, @@ -127914,7 +127907,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1oteutl( + _objc_msgSend_nolpru( _$$ref.pointer, _sel_addAttributes_range_, _$$ref$1.pointer, @@ -127931,7 +127924,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_appendAttributedString_, _$$ref$1.pointer, @@ -127946,7 +127939,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_beginEditing); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_beginEditing); } /// deleteCharactersInRange: @@ -127957,7 +127950,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_deleteCharactersInRange_, range); + _objc_msgSend_1ax18rd(_$$ref.pointer, _sel_deleteCharactersInRange_, range); } /// endEditing @@ -127968,7 +127961,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endEditing); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_endEditing); } /// insertAttributedString:atIndex: @@ -127983,7 +127976,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_djsa9o( + _objc_msgSend_ralblg( _$$ref.pointer, _sel_insertAttributedString_atIndex_, _$$ref$1.pointer, @@ -127999,7 +127992,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_mutableString); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_mutableString); return objc.NSMutableString.fromPointer($ret, retain: true, release: true); } @@ -128015,7 +128008,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1oteutl( + _objc_msgSend_nolpru( _$$ref.pointer, _sel_removeAttribute_range_, _$$ref$1.pointer, @@ -128035,7 +128028,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1tv4uax( + _objc_msgSend_1ft2ink( _$$ref.pointer, _sel_replaceCharactersInRange_withAttributedString_, range, @@ -128052,7 +128045,7 @@ extension NSExtendedMutableAttributedString on NSMutableAttributedString { iOS: (false, (3, 2, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setAttributedString_, _$$ref$1.pointer, @@ -128065,7 +128058,7 @@ extension NSExtendedScanner on NSScanner { /// isAtEnd bool get isAtEnd { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isAtEnd); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isAtEnd); } /// scanCharactersFromSet:intoString: @@ -128075,7 +128068,7 @@ extension NSExtendedScanner on NSScanner { }) { final _$$ref = object$.ref; final _$$ref$1 = set.ref; - return _objc_msgSend_l9p60w( + return _objc_msgSend_7agf1a( _$$ref.pointer, _sel_scanCharactersFromSet_intoString_, _$$ref$1.pointer, @@ -128086,13 +128079,13 @@ extension NSExtendedScanner on NSScanner { /// scanDouble: bool scanDouble(ffi.Pointer result) { final _$$ref = object$.ref; - return _objc_msgSend_lzroim(_$$ref.pointer, _sel_scanDouble_, result); + return _objc_msgSend_nu1ilo(_$$ref.pointer, _sel_scanDouble_, result); } /// scanFloat: bool scanFloat(ffi.Pointer result) { final _$$ref = object$.ref; - return _objc_msgSend_1kz7g09(_$$ref.pointer, _sel_scanFloat_, result); + return _objc_msgSend_1lkmam2(_$$ref.pointer, _sel_scanFloat_, result); } /// scanHexDouble: @@ -128103,7 +128096,7 @@ extension NSExtendedScanner on NSScanner { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_lzroim(_$$ref.pointer, _sel_scanHexDouble_, result); + return _objc_msgSend_nu1ilo(_$$ref.pointer, _sel_scanHexDouble_, result); } /// scanHexFloat: @@ -128114,13 +128107,13 @@ extension NSExtendedScanner on NSScanner { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_1kz7g09(_$$ref.pointer, _sel_scanHexFloat_, result); + return _objc_msgSend_1lkmam2(_$$ref.pointer, _sel_scanHexFloat_, result); } /// scanHexInt: bool scanHexInt(ffi.Pointer result) { final _$$ref = object$.ref; - return _objc_msgSend_11a6od8(_$$ref.pointer, _sel_scanHexInt_, result); + return _objc_msgSend_5xlvnr(_$$ref.pointer, _sel_scanHexInt_, result); } /// scanHexLongLong: @@ -128131,13 +128124,13 @@ extension NSExtendedScanner on NSScanner { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_1513vdc(_$$ref.pointer, _sel_scanHexLongLong_, result); + return _objc_msgSend_mvpew8(_$$ref.pointer, _sel_scanHexLongLong_, result); } /// scanInt: bool scanInt(ffi.Pointer result) { final _$$ref = object$.ref; - return _objc_msgSend_h10lj0(_$$ref.pointer, _sel_scanInt_, result); + return _objc_msgSend_1844k4(_$$ref.pointer, _sel_scanInt_, result); } /// scanInteger: @@ -128148,13 +128141,13 @@ extension NSExtendedScanner on NSScanner { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_5bd8xr(_$$ref.pointer, _sel_scanInteger_, result); + return _objc_msgSend_1ijt5u4(_$$ref.pointer, _sel_scanInteger_, result); } /// scanLongLong: bool scanLongLong(ffi.Pointer result) { final _$$ref = object$.ref; - return _objc_msgSend_1ea59hv(_$$ref.pointer, _sel_scanLongLong_, result); + return _objc_msgSend_19tgqei(_$$ref.pointer, _sel_scanLongLong_, result); } /// scanString:intoString: @@ -128164,7 +128157,7 @@ extension NSExtendedScanner on NSScanner { }) { final _$$ref = object$.ref; final _$$ref$1 = string.ref; - return _objc_msgSend_l9p60w( + return _objc_msgSend_7agf1a( _$$ref.pointer, _sel_scanString_intoString_, _$$ref$1.pointer, @@ -128180,7 +128173,7 @@ extension NSExtendedScanner on NSScanner { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - return _objc_msgSend_1513vdc( + return _objc_msgSend_mvpew8( _$$ref.pointer, _sel_scanUnsignedLongLong_, result, @@ -128194,7 +128187,7 @@ extension NSExtendedScanner on NSScanner { }) { final _$$ref = object$.ref; final _$$ref$1 = set.ref; - return _objc_msgSend_l9p60w( + return _objc_msgSend_7agf1a( _$$ref.pointer, _sel_scanUpToCharactersFromSet_intoString_, _$$ref$1.pointer, @@ -128209,7 +128202,7 @@ extension NSExtendedScanner on NSScanner { }) { final _$$ref = object$.ref; final _$$ref$1 = string.ref; - return _objc_msgSend_l9p60w( + return _objc_msgSend_7agf1a( _$$ref.pointer, _sel_scanUpToString_intoString_, _$$ref$1.pointer, @@ -128220,7 +128213,7 @@ extension NSExtendedScanner on NSScanner { /// localizedScannerWithString: static objc.ObjCObject localizedScannerWithString(objc.NSString string) { final _$$ref = string.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSScanner, _sel_localizedScannerWithString_, _$$ref.pointer, @@ -128234,14 +128227,14 @@ extension NSExtendedStringPropertyListParsing on objc.NSString { /// propertyList objc.ObjCObject propertyList() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_propertyList); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_propertyList); return objc.ObjCObject($ret, retain: true, release: true); } /// propertyListFromStringsFileFormat objc.NSDictionary? propertyListFromStringsFileFormat() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_propertyListFromStringsFileFormat, ); @@ -128256,7 +128249,7 @@ extension NSExtendedTimeZone on NSTimeZone { /// abbreviation objc.NSString? get abbreviation { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_abbreviation); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_abbreviation); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -128271,31 +128264,31 @@ extension NSExtendedTimeZone on NSTimeZone { macOS: (false, (10, 5, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( + ? _objc_msgSend_9pr6kkFpret( _$$ref.pointer, _sel_daylightSavingTimeOffset, ) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_daylightSavingTimeOffset); + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_daylightSavingTimeOffset); } /// description objc.NSString get description$1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_description); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// isDaylightSavingTime bool get isDaylightSavingTime { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isDaylightSavingTime); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isDaylightSavingTime); } /// isEqualToTimeZone: bool isEqualToTimeZone(NSTimeZone aTimeZone) { final _$$ref = object$.ref; final _$$ref$1 = aTimeZone.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_isEqualToTimeZone_, _$$ref$1.pointer, @@ -128314,7 +128307,7 @@ extension NSExtendedTimeZone on NSTimeZone { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_1xmmt6t( + final $ret = _objc_msgSend_17y2ndj( _$$ref.pointer, _sel_localizedName_locale_, style.value, @@ -128333,7 +128326,7 @@ extension NSExtendedTimeZone on NSTimeZone { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_nextDaylightSavingTimeTransition, ); @@ -128345,7 +128338,7 @@ extension NSExtendedTimeZone on NSTimeZone { /// secondsFromGMT DartNSInteger get secondsFromGMT { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_secondsFromGMT); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_secondsFromGMT); } /// abbreviationDictionary @@ -128355,7 +128348,7 @@ extension NSExtendedTimeZone on NSTimeZone { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSTimeZone, _sel_abbreviationDictionary, ); @@ -128364,13 +128357,13 @@ extension NSExtendedTimeZone on NSTimeZone { /// defaultTimeZone static NSTimeZone getDefaultTimeZone() { - final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_defaultTimeZone); + final $ret = _objc_msgSend_zldla2(_class_NSTimeZone, _sel_defaultTimeZone); return NSTimeZone.fromPointer($ret, retain: true, release: true); } /// knownTimeZoneNames static objc.NSArray getKnownTimeZoneNames() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSTimeZone, _sel_knownTimeZoneNames, ); @@ -128379,13 +128372,13 @@ extension NSExtendedTimeZone on NSTimeZone { /// localTimeZone static NSTimeZone getLocalTimeZone() { - final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_localTimeZone); + final $ret = _objc_msgSend_zldla2(_class_NSTimeZone, _sel_localTimeZone); return NSTimeZone.fromPointer($ret, retain: true, release: true); } /// resetSystemTimeZone static void resetSystemTimeZone() { - _objc_msgSend_1pl9qdv(_class_NSTimeZone, _sel_resetSystemTimeZone); + _objc_msgSend_h9i570(_class_NSTimeZone, _sel_resetSystemTimeZone); } /// setAbbreviationDictionary: @@ -128396,7 +128389,7 @@ extension NSExtendedTimeZone on NSTimeZone { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _class_NSTimeZone, _sel_setAbbreviationDictionary_, _$$ref.pointer, @@ -128406,7 +128399,7 @@ extension NSExtendedTimeZone on NSTimeZone { /// setDefaultTimeZone: static void setDefaultTimeZone(NSTimeZone value) { final _$$ref = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _class_NSTimeZone, _sel_setDefaultTimeZone_, _$$ref.pointer, @@ -128415,7 +128408,7 @@ extension NSExtendedTimeZone on NSTimeZone { /// systemTimeZone static NSTimeZone getSystemTimeZone() { - final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_systemTimeZone); + final $ret = _objc_msgSend_zldla2(_class_NSTimeZone, _sel_systemTimeZone); return NSTimeZone.fromPointer($ret, retain: true, release: true); } @@ -128426,7 +128419,7 @@ extension NSExtendedTimeZone on NSTimeZone { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSTimeZone, _sel_timeZoneDataVersion, ); @@ -128478,7 +128471,7 @@ extension type NSExtensionRequestHandling._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSExtensionRequestHandling]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSExtensionRequestHandling, @@ -128491,7 +128484,7 @@ extension NSExtensionRequestHandling$Methods on NSExtensionRequestHandling { void beginRequestWithExtensionContext(NSExtensionContext context) { final _$$ref = object$.ref; final _$$ref$1 = context.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_beginRequestWithExtensionContext_, _$$ref$1.pointer, @@ -128629,7 +128622,7 @@ interface class NSExtensionRequestHandling$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSExtensionRequestHandling, @@ -128664,7 +128657,7 @@ extension NSFileAttributes on objc.NSDictionary { /// fileCreationDate objc.NSDate? fileCreationDate() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileCreationDate); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_fileCreationDate); return $ret.address == 0 ? null : objc.NSDate.fromPointer($ret, retain: true, release: true); @@ -128673,13 +128666,13 @@ extension NSFileAttributes on objc.NSDictionary { /// fileExtensionHidden bool fileExtensionHidden() { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileExtensionHidden); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_fileExtensionHidden); } /// fileGroupOwnerAccountID objc.NSNumber? fileGroupOwnerAccountID() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_fileGroupOwnerAccountID, ); @@ -128691,7 +128684,7 @@ extension NSFileAttributes on objc.NSDictionary { /// fileGroupOwnerAccountName objc.NSString? fileGroupOwnerAccountName() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_fileGroupOwnerAccountName, ); @@ -128703,31 +128696,31 @@ extension NSFileAttributes on objc.NSDictionary { /// fileHFSCreatorCode DartUInt32 fileHFSCreatorCode() { final _$$ref = object$.ref; - return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_fileHFSCreatorCode); + return _objc_msgSend_pxpqpv(_$$ref.pointer, _sel_fileHFSCreatorCode); } /// fileHFSTypeCode DartUInt32 fileHFSTypeCode() { final _$$ref = object$.ref; - return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_fileHFSTypeCode); + return _objc_msgSend_pxpqpv(_$$ref.pointer, _sel_fileHFSTypeCode); } /// fileIsAppendOnly bool fileIsAppendOnly() { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileIsAppendOnly); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_fileIsAppendOnly); } /// fileIsImmutable bool fileIsImmutable() { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileIsImmutable); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_fileIsImmutable); } /// fileModificationDate objc.NSDate? fileModificationDate() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_fileModificationDate, ); @@ -128739,7 +128732,7 @@ extension NSFileAttributes on objc.NSDictionary { /// fileOwnerAccountID objc.NSNumber? fileOwnerAccountID() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileOwnerAccountID); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_fileOwnerAccountID); return $ret.address == 0 ? null : objc.NSNumber.fromPointer($ret, retain: true, release: true); @@ -128748,7 +128741,7 @@ extension NSFileAttributes on objc.NSDictionary { /// fileOwnerAccountName objc.NSString? fileOwnerAccountName() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_fileOwnerAccountName, ); @@ -128760,31 +128753,31 @@ extension NSFileAttributes on objc.NSDictionary { /// filePosixPermissions DartNSUInteger filePosixPermissions() { final _$$ref = object$.ref; - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_filePosixPermissions); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_filePosixPermissions); } /// fileSize int fileSize() { final _$$ref = object$.ref; - return _objc_msgSend_1p4gbjy(_$$ref.pointer, _sel_fileSize); + return _objc_msgSend_10fx4x0(_$$ref.pointer, _sel_fileSize); } /// fileSystemFileNumber DartNSUInteger fileSystemFileNumber() { final _$$ref = object$.ref; - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_fileSystemFileNumber); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_fileSystemFileNumber); } /// fileSystemNumber DartNSInteger fileSystemNumber() { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_fileSystemNumber); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_fileSystemNumber); } /// fileType objc.NSString? fileType() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileType); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_fileType); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -128832,7 +128825,7 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { /// acceptConnectionInBackgroundAndNotify void acceptConnectionInBackgroundAndNotify() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv( + _objc_msgSend_h9i570( _$$ref.pointer, _sel_acceptConnectionInBackgroundAndNotify, ); @@ -128842,7 +128835,7 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { void acceptConnectionInBackgroundAndNotifyForModes(objc.NSArray? modes) { final _$$ref = object$.ref; final _$$ref$1 = modes?.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_acceptConnectionInBackgroundAndNotifyForModes_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -128852,14 +128845,14 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { /// readInBackgroundAndNotify void readInBackgroundAndNotify() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_readInBackgroundAndNotify); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_readInBackgroundAndNotify); } /// readInBackgroundAndNotifyForModes: void readInBackgroundAndNotifyForModes(objc.NSArray? modes) { final _$$ref = object$.ref; final _$$ref$1 = modes?.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_readInBackgroundAndNotifyForModes_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -128869,7 +128862,7 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { /// readToEndOfFileInBackgroundAndNotify void readToEndOfFileInBackgroundAndNotify() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv( + _objc_msgSend_h9i570( _$$ref.pointer, _sel_readToEndOfFileInBackgroundAndNotify, ); @@ -128879,7 +128872,7 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { void readToEndOfFileInBackgroundAndNotifyForModes(objc.NSArray? modes) { final _$$ref = object$.ref; final _$$ref$1 = modes?.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_readToEndOfFileInBackgroundAndNotifyForModes_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -128894,7 +128887,7 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_readabilityHandler); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_readabilityHandler); return $ret.address == 0 ? null : ObjCBlock_ffiVoid_NSFileHandle.fromPointer( @@ -128915,7 +128908,7 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _$$ref.pointer, _sel_setReadabilityHandler_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -128933,7 +128926,7 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _$$ref.pointer, _sel_setWriteabilityHandler_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -128943,17 +128936,14 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { /// waitForDataInBackgroundAndNotify void waitForDataInBackgroundAndNotify() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv( - _$$ref.pointer, - _sel_waitForDataInBackgroundAndNotify, - ); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_waitForDataInBackgroundAndNotify); } /// waitForDataInBackgroundAndNotifyForModes: void waitForDataInBackgroundAndNotifyForModes(objc.NSArray? modes) { final _$$ref = object$.ref; final _$$ref$1 = modes?.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_waitForDataInBackgroundAndNotifyForModes_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -128968,7 +128958,10 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_writeabilityHandler); + final $ret = _objc_msgSend_13wc3w1( + _$$ref.pointer, + _sel_writeabilityHandler, + ); return $ret.address == 0 ? null : ObjCBlock_ffiVoid_NSFileHandle.fromPointer( @@ -128983,7 +128976,7 @@ extension NSFileHandleAsynchronousAccess on NSFileHandle { extension NSFileHandleCreation on NSFileHandle { /// fileHandleWithNullDevice static NSFileHandle getFileHandleWithNullDevice() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSFileHandle, _sel_fileHandleWithNullDevice, ); @@ -128992,7 +128985,7 @@ extension NSFileHandleCreation on NSFileHandle { /// fileHandleWithStandardError static NSFileHandle getFileHandleWithStandardError() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSFileHandle, _sel_fileHandleWithStandardError, ); @@ -129001,7 +128994,7 @@ extension NSFileHandleCreation on NSFileHandle { /// fileHandleWithStandardInput static NSFileHandle getFileHandleWithStandardInput() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSFileHandle, _sel_fileHandleWithStandardInput, ); @@ -129010,7 +129003,7 @@ extension NSFileHandleCreation on NSFileHandle { /// fileHandleWithStandardOutput static NSFileHandle getFileHandleWithStandardOutput() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSFileHandle, _sel_fileHandleWithStandardOutput, ); @@ -129023,7 +129016,7 @@ extension NSFileHandlePlatformSpecific on NSFileHandle { /// fileDescriptor int get fileDescriptor { final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_fileDescriptor); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_fileDescriptor); } } @@ -129061,7 +129054,7 @@ extension type NSFileManagerDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSFileManagerDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSFileManagerDelegate, @@ -129089,7 +129082,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldCopyItemAtPath:toPath:', ); } - return _objc_msgSend_gtxojt( + return _objc_msgSend_po1ic4( _$$ref.pointer, _sel_fileManager_shouldCopyItemAtPath_toPath_, _$$ref$1.pointer, @@ -129122,7 +129115,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldCopyItemAtURL:toURL:', ); } - return _objc_msgSend_gtxojt( + return _objc_msgSend_po1ic4( _$$ref.pointer, _sel_fileManager_shouldCopyItemAtURL_toURL_, _$$ref$1.pointer, @@ -129150,7 +129143,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldLinkItemAtPath:toPath:', ); } - return _objc_msgSend_gtxojt( + return _objc_msgSend_po1ic4( _$$ref.pointer, _sel_fileManager_shouldLinkItemAtPath_toPath_, _$$ref$1.pointer, @@ -129183,7 +129176,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldLinkItemAtURL:toURL:', ); } - return _objc_msgSend_gtxojt( + return _objc_msgSend_po1ic4( _$$ref.pointer, _sel_fileManager_shouldLinkItemAtURL_toURL_, _$$ref$1.pointer, @@ -129211,7 +129204,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldMoveItemAtPath:toPath:', ); } - return _objc_msgSend_gtxojt( + return _objc_msgSend_po1ic4( _$$ref.pointer, _sel_fileManager_shouldMoveItemAtPath_toPath_, _$$ref$1.pointer, @@ -129244,7 +129237,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldMoveItemAtURL:toURL:', ); } - return _objc_msgSend_gtxojt( + return _objc_msgSend_po1ic4( _$$ref.pointer, _sel_fileManager_shouldMoveItemAtURL_toURL_, _$$ref$1.pointer, @@ -129274,7 +129267,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:', ); } - return _objc_msgSend_h42mdr( + return _objc_msgSend_1atifgf( _$$ref.pointer, _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, _$$ref$1.pointer, @@ -129310,7 +129303,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:', ); } - return _objc_msgSend_h42mdr( + return _objc_msgSend_1atifgf( _$$ref.pointer, _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, _$$ref$1.pointer, @@ -129341,7 +129334,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:', ); } - return _objc_msgSend_h42mdr( + return _objc_msgSend_1atifgf( _$$ref.pointer, _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, _$$ref$1.pointer, @@ -129377,7 +129370,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:', ); } - return _objc_msgSend_h42mdr( + return _objc_msgSend_1atifgf( _$$ref.pointer, _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, _$$ref$1.pointer, @@ -129408,7 +129401,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldProceedAfterError:movingItemAtPath:toPath:', ); } - return _objc_msgSend_h42mdr( + return _objc_msgSend_1atifgf( _$$ref.pointer, _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, _$$ref$1.pointer, @@ -129444,7 +129437,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldProceedAfterError:movingItemAtURL:toURL:', ); } - return _objc_msgSend_h42mdr( + return _objc_msgSend_1atifgf( _$$ref.pointer, _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, _$$ref$1.pointer, @@ -129473,7 +129466,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldProceedAfterError:removingItemAtPath:', ); } - return _objc_msgSend_gtxojt( + return _objc_msgSend_po1ic4( _$$ref.pointer, _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, _$$ref$1.pointer, @@ -129506,7 +129499,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldProceedAfterError:removingItemAtURL:', ); } - return _objc_msgSend_gtxojt( + return _objc_msgSend_po1ic4( _$$ref.pointer, _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, _$$ref$1.pointer, @@ -129532,7 +129525,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldRemoveItemAtPath:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_fileManager_shouldRemoveItemAtPath_, _$$ref$1.pointer, @@ -129562,7 +129555,7 @@ extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { 'fileManager:shouldRemoveItemAtURL:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_fileManager_shouldRemoveItemAtURL_, _$$ref$1.pointer, @@ -129821,7 +129814,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jk8du5) + >(_1uu024u_protocolTrampoline_1w5mp29) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -129857,7 +129850,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jk8du5) + >(_1uu024u_protocolTrampoline_1w5mp29) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -129893,7 +129886,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jk8du5) + >(_1uu024u_protocolTrampoline_1w5mp29) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -129929,7 +129922,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jk8du5) + >(_1uu024u_protocolTrampoline_1w5mp29) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -129965,7 +129958,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jk8du5) + >(_1uu024u_protocolTrampoline_1w5mp29) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130001,7 +129994,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jk8du5) + >(_1uu024u_protocolTrampoline_1w5mp29) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130038,7 +130031,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1em3l8z) + >(_1uu024u_protocolTrampoline_1gdoaig) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130084,7 +130077,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1em3l8z) + >(_1uu024u_protocolTrampoline_1gdoaig) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130125,7 +130118,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1em3l8z) + >(_1uu024u_protocolTrampoline_1gdoaig) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130171,7 +130164,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1em3l8z) + >(_1uu024u_protocolTrampoline_1gdoaig) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130212,7 +130205,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1em3l8z) + >(_1uu024u_protocolTrampoline_1gdoaig) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130258,7 +130251,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1em3l8z) + >(_1uu024u_protocolTrampoline_1gdoaig) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130298,7 +130291,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jk8du5) + >(_1uu024u_protocolTrampoline_1w5mp29) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130334,7 +130327,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jk8du5) + >(_1uu024u_protocolTrampoline_1w5mp29) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130367,7 +130360,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130399,7 +130392,7 @@ interface class NSFileManagerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSFileManagerDelegate, @@ -130488,7 +130481,7 @@ extension type NSFilePresenter._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSFilePresenter]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSFilePresenter, @@ -130512,7 +130505,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'accommodatePresentedItemDeletionWithCompletionHandler:', ); } - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _$$ref.pointer, _sel_accommodatePresentedItemDeletionWithCompletionHandler_, _$$ref$1.pointer, @@ -130539,7 +130532,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'accommodatePresentedItemEvictionWithCompletionHandler:', ); } - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _$$ref.pointer, _sel_accommodatePresentedItemEvictionWithCompletionHandler_, _$$ref$1.pointer, @@ -130563,7 +130556,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'accommodatePresentedSubitemDeletionAtURL:completionHandler:', ); } - _objc_msgSend_o762yo( + _objc_msgSend_9kuhjb( _$$ref.pointer, _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, _$$ref$1.pointer, @@ -130588,7 +130581,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'observedPresentedItemUbiquityAttributes', ); } - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_observedPresentedItemUbiquityAttributes, ); @@ -130604,7 +130597,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedItemDidChange', ); } - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_presentedItemDidChange); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_presentedItemDidChange); } /// presentedItemDidChangeUbiquityAttributes: @@ -130625,7 +130618,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedItemDidChangeUbiquityAttributes:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_presentedItemDidChangeUbiquityAttributes_, _$$ref$1.pointer, @@ -130645,7 +130638,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedItemDidGainVersion:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_presentedItemDidGainVersion_, _$$ref$1.pointer, @@ -130665,7 +130658,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedItemDidLoseVersion:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_presentedItemDidLoseVersion_, _$$ref$1.pointer, @@ -130685,7 +130678,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedItemDidMoveToURL:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_presentedItemDidMoveToURL_, _$$ref$1.pointer, @@ -130705,7 +130698,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedItemDidResolveConflictVersion:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_presentedItemDidResolveConflictVersion_, _$$ref$1.pointer, @@ -130715,7 +130708,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { /// presentedItemOperationQueue NSOperationQueue get presentedItemOperationQueue { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_presentedItemOperationQueue, ); @@ -130725,7 +130718,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { /// presentedItemURL objc.NSURL? get presentedItemURL { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_presentedItemURL); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_presentedItemURL); return $ret.address == 0 ? null : objc.NSURL.fromPointer($ret, retain: true, release: true); @@ -130748,7 +130741,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedSubitemAtURL:didGainVersion:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_presentedSubitemAtURL_didGainVersion_, _$$ref$1.pointer, @@ -130773,7 +130766,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedSubitemAtURL:didLoseVersion:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_presentedSubitemAtURL_didLoseVersion_, _$$ref$1.pointer, @@ -130798,7 +130791,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedSubitemAtURL:didMoveToURL:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_presentedSubitemAtURL_didMoveToURL_, _$$ref$1.pointer, @@ -130823,7 +130816,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedSubitemAtURL:didResolveConflictVersion:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_presentedSubitemAtURL_didResolveConflictVersion_, _$$ref$1.pointer, @@ -130844,7 +130837,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedSubitemDidAppearAtURL:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_presentedSubitemDidAppearAtURL_, _$$ref$1.pointer, @@ -130864,7 +130857,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'presentedSubitemDidChangeAtURL:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_presentedSubitemDidChangeAtURL_, _$$ref$1.pointer, @@ -130888,7 +130881,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'primaryPresentedItemURL', ); } - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_primaryPresentedItemURL, ); @@ -130913,7 +130906,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'relinquishPresentedItemToReader:', ); } - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _$$ref.pointer, _sel_relinquishPresentedItemToReader_, _$$ref$1.pointer, @@ -130936,7 +130929,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'relinquishPresentedItemToWriter:', ); } - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _$$ref.pointer, _sel_relinquishPresentedItemToWriter_, _$$ref$1.pointer, @@ -130958,7 +130951,7 @@ extension NSFilePresenter$Methods on NSFilePresenter { 'savePresentedItemChangesWithCompletionHandler:', ); } - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _$$ref.pointer, _sel_savePresentedItemChangesWithCompletionHandler_, _$$ref$1.pointer, @@ -131798,7 +131791,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1l4hxwm) + >(_1uu024u_protocolTrampoline_1y86ja3) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -131847,7 +131840,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1l4hxwm) + >(_1uu024u_protocolTrampoline_1y86ja3) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -131900,7 +131893,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jk1ljc) + >(_1uu024u_protocolTrampoline_4m73qm) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -131961,7 +131954,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -131986,7 +131979,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_ovsamd) + >(_1uu024u_protocolTrampoline_15is1z3) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132018,7 +132011,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132053,7 +132046,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132088,7 +132081,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132123,7 +132116,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132158,7 +132151,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132192,7 +132185,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132218,7 +132211,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132247,7 +132240,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132288,7 +132281,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132327,7 +132320,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132368,7 +132361,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132406,7 +132399,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132441,7 +132434,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132475,7 +132468,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132507,7 +132500,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1l4hxwm) + >(_1uu024u_protocolTrampoline_1y86ja3) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132584,7 +132577,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1l4hxwm) + >(_1uu024u_protocolTrampoline_1y86ja3) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132657,7 +132650,7 @@ interface class NSFilePresenter$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1l4hxwm) + >(_1uu024u_protocolTrampoline_1y86ja3) .cast(), objc.getProtocolMethodSignature( _protocol_NSFilePresenter, @@ -132877,7 +132870,7 @@ extension NSGenericFastEnumeration on objc.NSDictionary { required DartNSUInteger count, }) { final _$$ref = object$.ref; - return _objc_msgSend_1b5ysjl( + return _objc_msgSend_47idvh( _$$ref.pointer, _sel_countByEnumeratingWithState_objects_count_, state, @@ -132894,8 +132887,8 @@ extension NSGeometryCoding on objc.NSCoder { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1uwdhlkStret($ptr, _$$ref.pointer, _sel_decodePoint) - : $ptr.ref = _objc_msgSend_1uwdhlk(_$$ref.pointer, _sel_decodePoint); + ? _objc_msgSend_gvefwyStret($ptr, _$$ref.pointer, _sel_decodePoint) + : $ptr.ref = _objc_msgSend_gvefwy(_$$ref.pointer, _sel_decodePoint); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -132908,8 +132901,8 @@ extension NSGeometryCoding on objc.NSCoder { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_bu1hbwStret($ptr, _$$ref.pointer, _sel_decodeRect) - : $ptr.ref = _objc_msgSend_bu1hbw(_$$ref.pointer, _sel_decodeRect); + ? _objc_msgSend_10g3temStret($ptr, _$$ref.pointer, _sel_decodeRect) + : $ptr.ref = _objc_msgSend_10g3tem(_$$ref.pointer, _sel_decodeRect); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -132922,8 +132915,8 @@ extension NSGeometryCoding on objc.NSCoder { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_decodeSize) - : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_decodeSize); + ? _objc_msgSend_wke702Stret($ptr, _$$ref.pointer, _sel_decodeSize) + : $ptr.ref = _objc_msgSend_wke702(_$$ref.pointer, _sel_decodeSize); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -132934,19 +132927,19 @@ extension NSGeometryCoding on objc.NSCoder { /// encodePoint: void encodePoint(NSPoint point) { final _$$ref = object$.ref; - _objc_msgSend_iy8iz6(_$$ref.pointer, _sel_encodePoint_, point); + _objc_msgSend_lbm6kd(_$$ref.pointer, _sel_encodePoint_, point); } /// encodeRect: void encodeRect(NSRect rect) { final _$$ref = object$.ref; - _objc_msgSend_1okkq16(_$$ref.pointer, _sel_encodeRect_, rect); + _objc_msgSend_12zlwvh(_$$ref.pointer, _sel_encodeRect_, rect); } /// encodeSize: void encodeSize(NSSize size) { final _$$ref = object$.ref; - _objc_msgSend_13lgpwz(_$$ref.pointer, _sel_encodeSize_, size); + _objc_msgSend_28e8o1(_$$ref.pointer, _sel_encodeSize_, size); } } @@ -132958,13 +132951,13 @@ extension NSGeometryKeyedCoding on objc.NSCoder { final _$$ref$1 = key.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1mpyy6yStret( + ? _objc_msgSend_m9iphxStret( $ptr, _$$ref.pointer, _sel_decodePointForKey_, _$$ref$1.pointer, ) - : $ptr.ref = _objc_msgSend_1mpyy6y( + : $ptr.ref = _objc_msgSend_m9iphx( _$$ref.pointer, _sel_decodePointForKey_, _$$ref$1.pointer, @@ -132982,13 +132975,13 @@ extension NSGeometryKeyedCoding on objc.NSCoder { final _$$ref$1 = key.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_qrtfceStret( + ? _objc_msgSend_1jrvou1Stret( $ptr, _$$ref.pointer, _sel_decodeRectForKey_, _$$ref$1.pointer, ) - : $ptr.ref = _objc_msgSend_qrtfce( + : $ptr.ref = _objc_msgSend_1jrvou1( _$$ref.pointer, _sel_decodeRectForKey_, _$$ref$1.pointer, @@ -133006,13 +132999,13 @@ extension NSGeometryKeyedCoding on objc.NSCoder { final _$$ref$1 = key.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_18r320vStret( + ? _objc_msgSend_nlwmd1Stret( $ptr, _$$ref.pointer, _sel_decodeSizeForKey_, _$$ref$1.pointer, ) - : $ptr.ref = _objc_msgSend_18r320v( + : $ptr.ref = _objc_msgSend_nlwmd1( _$$ref.pointer, _sel_decodeSizeForKey_, _$$ref$1.pointer, @@ -133028,7 +133021,7 @@ extension NSGeometryKeyedCoding on objc.NSCoder { void encodePoint(NSPoint point, {required objc.NSString forKey}) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; - _objc_msgSend_bkebbk( + _objc_msgSend_spoczw( _$$ref.pointer, _sel_encodePoint_forKey_, point, @@ -133040,7 +133033,7 @@ extension NSGeometryKeyedCoding on objc.NSCoder { void encodeRect(NSRect rect, {required objc.NSString forKey}) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; - _objc_msgSend_f227js( + _objc_msgSend_1whvugs( _$$ref.pointer, _sel_encodeRect_forKey_, rect, @@ -133052,7 +133045,7 @@ extension NSGeometryKeyedCoding on objc.NSCoder { void encodeSize(NSSize size, {required objc.NSString forKey}) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; - _objc_msgSend_11tcc61( + _objc_msgSend_1hnhjy0( _$$ref.pointer, _sel_encodeSize_forKey_, size, @@ -133325,7 +133318,7 @@ extension NSHTTPURLRequest on NSURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBody); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPBody); return $ret.address == 0 ? null : objc.NSData.fromPointer($ret, retain: true, release: true); @@ -133339,7 +133332,7 @@ extension NSHTTPURLRequest on NSURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBodyStream); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPBodyStream); return $ret.address == 0 ? null : objc.NSInputStream.fromPointer($ret, retain: true, release: true); @@ -133353,7 +133346,7 @@ extension NSHTTPURLRequest on NSURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPMethod); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPMethod); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -133367,7 +133360,7 @@ extension NSHTTPURLRequest on NSURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldHandleCookies); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_HTTPShouldHandleCookies); } /// HTTPShouldUsePipelining @@ -133381,7 +133374,7 @@ extension NSHTTPURLRequest on NSURLRequest { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldUsePipelining); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_HTTPShouldUsePipelining); } /// allHTTPHeaderFields @@ -133392,10 +133385,7 @@ extension NSHTTPURLRequest on NSURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_allHTTPHeaderFields, - ); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allHTTPHeaderFields); return $ret.address == 0 ? null : objc.NSDictionary.fromPointer($ret, retain: true, release: true); @@ -133410,7 +133400,7 @@ extension NSHTTPURLRequest on NSURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_valueForHTTPHeaderField_, _$$ref$1.pointer, @@ -133704,7 +133694,7 @@ extension NSInflectionAvailability on NSInflectionRule { iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _class_NSInflectionRule, _sel_canInflectLanguage_, _$$ref.pointer, @@ -133718,7 +133708,7 @@ extension NSInflectionAvailability on NSInflectionRule { iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0)), ); - return _objc_msgSend_91o635( + return _objc_msgSend_13h8okt( _class_NSInflectionRule, _sel_canInflectPreferredLocalization, ); @@ -133775,7 +133765,7 @@ extension NSInputStreamExtensions on objc.NSInputStream { objc.NSInputStream? initWithFileAtPath(objc.NSString path) { final _$$ref = object$.ref; final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithFileAtPath_, _$$ref$1.pointer, @@ -133788,7 +133778,7 @@ extension NSInputStreamExtensions on objc.NSInputStream { /// inputStreamWithData: static objc.NSInputStream? inputStreamWithData(objc.NSData data) { final _$$ref = data.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSInputStream, _sel_inputStreamWithData_, _$$ref.pointer, @@ -133801,7 +133791,7 @@ extension NSInputStreamExtensions on objc.NSInputStream { /// inputStreamWithFileAtPath: static objc.NSInputStream? inputStreamWithFileAtPath(objc.NSString path) { final _$$ref = path.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSInputStream, _sel_inputStreamWithFileAtPath_, _$$ref.pointer, @@ -133819,7 +133809,7 @@ extension NSInputStreamExtensions on objc.NSInputStream { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSInputStream, _sel_inputStreamWithURL_, _$$ref.pointer, @@ -133867,7 +133857,7 @@ extension NSInternetPassword on NSURLCredential { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasPassword); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_hasPassword); } /// password @@ -133878,7 +133868,7 @@ extension NSInternetPassword on NSURLCredential { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_password); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_password); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -133892,7 +133882,7 @@ extension NSInternetPassword on NSURLCredential { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_user); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_user); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -133911,7 +133901,7 @@ extension NSInternetPassword on NSURLCredential { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_17ns785( + final $ret = _objc_msgSend_1xzjeoi( _class_NSURLCredential, _sel_credentialWithUser_password_persistence_, _$$ref.pointer, @@ -133947,7 +133937,7 @@ extension NSItemProvider on objc.NSURL { 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', ); } - final $ret = _objc_msgSend_16fy0up( + final $ret = _objc_msgSend_1xx6l96( _$$ref.pointer, _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, _$$ref$1.pointer, @@ -133969,7 +133959,7 @@ extension NSItemProvider on objc.NSURL { iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0)), ); - final $ret = _objc_msgSend_r0bo0s( + final $ret = _objc_msgSend_8ut1ht( _$$ref.pointer, _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, _$$ref$1.pointer, @@ -133997,12 +133987,98 @@ extension NSItemProvider on objc.NSURL { 'writableTypeIdentifiersForItemProvider', ); } - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_writableTypeIdentifiersForItemProvider, ); return objc.NSArray.fromPointer($ret, retain: true, release: true); } + + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + static objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( + objc.NSString typeIdentifier, + ) { + final _$$ref = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_1xx6l96( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static objc.NSURL? objectWithItemProviderData( + objc.NSData data, { + required objc.NSString typeIdentifier, + }) { + final _$$ref = data.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1rz4muk( + _class_NSURL, + _sel_objectWithItemProviderData_typeIdentifier_error_, + _$$ref.pointer, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// readableTypeIdentifiersForItemProvider + static objc.NSArray getReadableTypeIdentifiersForItemProvider() { + objc.checkOsVersionInternal( + 'NSURL.readableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_zldla2( + _class_NSURL, + _sel_readableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_zldla2( + _class_NSURL, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } } /// NSItemProvider @@ -134028,7 +134104,7 @@ extension NSItemProvider$1 on objc.NSString { 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', ); } - final $ret = _objc_msgSend_16fy0up( + final $ret = _objc_msgSend_1xx6l96( _$$ref.pointer, _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, _$$ref$1.pointer, @@ -134050,7 +134126,7 @@ extension NSItemProvider$1 on objc.NSString { iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0)), ); - final $ret = _objc_msgSend_r0bo0s( + final $ret = _objc_msgSend_8ut1ht( _$$ref.pointer, _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, _$$ref$1.pointer, @@ -134078,12 +134154,98 @@ extension NSItemProvider$1 on objc.NSString { 'writableTypeIdentifiersForItemProvider', ); } - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_writableTypeIdentifiersForItemProvider, ); return objc.NSArray.fromPointer($ret, retain: true, release: true); } + + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + static objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( + objc.NSString typeIdentifier, + ) { + final _$$ref = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _class_NSString, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSString', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_1xx6l96( + _class_NSString, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static objc.NSString? objectWithItemProviderData( + objc.NSData data, { + required objc.NSString typeIdentifier, + }) { + final _$$ref = data.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSString.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1rz4muk( + _class_NSString, + _sel_objectWithItemProviderData_typeIdentifier_error_, + _$$ref.pointer, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// readableTypeIdentifiersForItemProvider + static objc.NSArray getReadableTypeIdentifiersForItemProvider() { + objc.checkOsVersionInternal( + 'NSString.readableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_zldla2( + _class_NSString, + _sel_readableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { + objc.checkOsVersionInternal( + 'NSString.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_zldla2( + _class_NSString, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } } typedef NSItemProviderCompletionHandler = ffi.Pointer; @@ -134154,7 +134316,7 @@ extension NSKeyValueCoding on objc.NSArray { final _$$ref = object$.ref; final _$$ref$1 = value?.ref; final _$$ref$2 = forKey.ref; - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_setValue_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -134166,7 +134328,7 @@ extension NSKeyValueCoding on objc.NSArray { objc.ObjCObject valueForKey(objc.NSString key) { final _$$ref = object$.ref; final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_valueForKey_, _$$ref$1.pointer, @@ -134181,7 +134343,7 @@ extension NSKeyValueCoding$1 on objc.NSDictionary { objc.ObjCObject? valueForKey(objc.NSString key) { final _$$ref = object$.ref; final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_valueForKey_, _$$ref$1.pointer, @@ -134199,7 +134361,7 @@ extension NSKeyValueCoding$2 on objc.NSSet { final _$$ref = object$.ref; final _$$ref$1 = value?.ref; final _$$ref$2 = forKey.ref; - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_setValue_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -134211,7 +134373,7 @@ extension NSKeyValueCoding$2 on objc.NSSet { objc.ObjCObject valueForKey(objc.NSString key) { final _$$ref = object$.ref; final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_valueForKey_, _$$ref$1.pointer, @@ -134231,7 +134393,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_dictionaryWithValuesForKeys_, _$$ref$1.pointer, @@ -134248,7 +134410,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_mutableArrayValueForKey_, _$$ref$1.pointer, @@ -134265,7 +134427,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_mutableArrayValueForKeyPath_, _$$ref$1.pointer, @@ -134282,7 +134444,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_mutableOrderedSetValueForKey_, _$$ref$1.pointer, @@ -134305,7 +134467,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_mutableOrderedSetValueForKeyPath_, _$$ref$1.pointer, @@ -134326,7 +134488,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_mutableSetValueForKey_, _$$ref$1.pointer, @@ -134343,7 +134505,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_mutableSetValueForKeyPath_, _$$ref$1.pointer, @@ -134360,7 +134522,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setNilValueForKey_, _$$ref$1.pointer, @@ -134377,7 +134539,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_setValue_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -134395,7 +134557,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_setValue_forKeyPath_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -134416,7 +134578,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_setValue_forUndefinedKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -134433,7 +134595,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setValuesForKeysWithDictionary_, _$$ref$1.pointer, @@ -134454,7 +134616,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1j9bhml( + final $ret = _objc_msgSend_1fh46zu( _$$ref.pointer, _sel_validateValue_forKey_error_, ioValue, @@ -134482,7 +134644,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1j9bhml( + final $ret = _objc_msgSend_1fh46zu( _$$ref.pointer, _sel_validateValue_forKeyPath_error_, ioValue, @@ -134505,7 +134667,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_valueForKey_, _$$ref$1.pointer, @@ -134524,7 +134686,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_valueForKeyPath_, _$$ref$1.pointer, @@ -134543,7 +134705,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_valueForUndefinedKey_, _$$ref$1.pointer, @@ -134560,7 +134722,7 @@ extension NSKeyValueCoding$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_91o635( + return _objc_msgSend_13h8okt( _class_NSObject, _sel_accessInstanceVariablesDirectly, ); @@ -134579,7 +134741,7 @@ extension NSKeyValueCoding$4 on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_setValue_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -134596,7 +134758,7 @@ extension NSKeyValueCoding$4 on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_valueForKey_, _$$ref$1.pointer, @@ -134612,7 +134774,7 @@ extension NSKeyValueCoding$5 on objc.NSMutableDictionary { final _$$ref = object$.ref; final _$$ref$1 = value?.ref; final _$$ref$2 = forKey.ref; - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_setValue_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -134637,7 +134799,7 @@ extension NSKeyValueObserverNotification on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1diehjo( + _objc_msgSend_17kc8kc( _$$ref.pointer, _sel_didChange_valuesAtIndexes_forKey_, changeKind.value, @@ -134655,7 +134817,7 @@ extension NSKeyValueObserverNotification on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_didChangeValueForKey_, _$$ref$1.pointer, @@ -134676,7 +134838,7 @@ extension NSKeyValueObserverNotification on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_7w1jp7( + _objc_msgSend_1lg1b3i( _$$ref.pointer, _sel_didChangeValueForKey_withSetMutation_usingObjects_, _$$ref$1.pointer, @@ -134699,7 +134861,7 @@ extension NSKeyValueObserverNotification on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1diehjo( + _objc_msgSend_17kc8kc( _$$ref.pointer, _sel_willChange_valuesAtIndexes_forKey_, changeKind.value, @@ -134717,7 +134879,7 @@ extension NSKeyValueObserverNotification on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_willChangeValueForKey_, _$$ref$1.pointer, @@ -134738,7 +134900,7 @@ extension NSKeyValueObserverNotification on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_7w1jp7( + _objc_msgSend_1lg1b3i( _$$ref.pointer, _sel_willChangeValueForKey_withSetMutation_usingObjects_, _$$ref$1.pointer, @@ -134760,7 +134922,7 @@ extension NSKeyValueObserverRegistration on objc.NSArray { final _$$ref = object$.ref; final _$$ref$1 = observer.ref; final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_akk2cd( + _objc_msgSend_1jpqrtr( _$$ref.pointer, _sel_addObserver_forKeyPath_options_context_, _$$ref$1.pointer, @@ -134782,7 +134944,7 @@ extension NSKeyValueObserverRegistration on objc.NSArray { final _$$ref$1 = observer.ref; final _$$ref$2 = toObjectsAtIndexes.ref; final _$$ref$3 = forKeyPath.ref; - _objc_msgSend_1vfgg7v( + _objc_msgSend_nombv2( _$$ref.pointer, _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_, _$$ref$1.pointer, @@ -134801,7 +134963,7 @@ extension NSKeyValueObserverRegistration on objc.NSArray { final _$$ref = object$.ref; final _$$ref$1 = observer.ref; final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_removeObserver_forKeyPath_, _$$ref$1.pointer, @@ -134823,7 +134985,7 @@ extension NSKeyValueObserverRegistration on objc.NSArray { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1jed5jl( + _objc_msgSend_1u0udch( _$$ref.pointer, _sel_removeObserver_forKeyPath_context_, _$$ref$1.pointer, @@ -134842,7 +135004,7 @@ extension NSKeyValueObserverRegistration on objc.NSArray { final _$$ref$1 = observer.ref; final _$$ref$2 = fromObjectsAtIndexes.ref; final _$$ref$3 = forKeyPath.ref; - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_, _$$ref$1.pointer, @@ -134867,7 +135029,7 @@ extension NSKeyValueObserverRegistration on objc.NSArray { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1pl4k3n( + _objc_msgSend_1hvjsy6( _$$ref.pointer, _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_, _$$ref$1.pointer, @@ -134890,7 +135052,7 @@ extension NSKeyValueObserverRegistration$1 on objc.NSSet { final _$$ref = object$.ref; final _$$ref$1 = observer.ref; final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_akk2cd( + _objc_msgSend_1jpqrtr( _$$ref.pointer, _sel_addObserver_forKeyPath_options_context_, _$$ref$1.pointer, @@ -134908,7 +135070,7 @@ extension NSKeyValueObserverRegistration$1 on objc.NSSet { final _$$ref = object$.ref; final _$$ref$1 = observer.ref; final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_removeObserver_forKeyPath_, _$$ref$1.pointer, @@ -134930,7 +135092,7 @@ extension NSKeyValueObserverRegistration$1 on objc.NSSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1jed5jl( + _objc_msgSend_1u0udch( _$$ref.pointer, _sel_removeObserver_forKeyPath_context_, _$$ref$1.pointer, @@ -134957,7 +135119,7 @@ extension NSKeyValueObserverRegistration$2 on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_akk2cd( + _objc_msgSend_1jpqrtr( _$$ref.pointer, _sel_addObserver_forKeyPath_options_context_, _$$ref$1.pointer, @@ -134980,7 +135142,7 @@ extension NSKeyValueObserverRegistration$2 on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_removeObserver_forKeyPath_, _$$ref$1.pointer, @@ -135002,7 +135164,7 @@ extension NSKeyValueObserverRegistration$2 on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1jed5jl( + _objc_msgSend_1u0udch( _$$ref.pointer, _sel_removeObserver_forKeyPath_context_, _$$ref$1.pointer, @@ -135029,7 +135191,7 @@ extension NSKeyValueObserverRegistration$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_akk2cd( + _objc_msgSend_1jpqrtr( _$$ref.pointer, _sel_addObserver_forKeyPath_options_context_, _$$ref$1.pointer, @@ -135052,7 +135214,7 @@ extension NSKeyValueObserverRegistration$3 on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_removeObserver_forKeyPath_, _$$ref$1.pointer, @@ -135074,7 +135236,7 @@ extension NSKeyValueObserverRegistration$3 on objc.NSObject { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1jed5jl( + _objc_msgSend_1u0udch( _$$ref.pointer, _sel_removeObserver_forKeyPath_context_, _$$ref$1.pointer, @@ -135102,7 +135264,7 @@ extension NSKeyValueObserving on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1pl4k3n( + _objc_msgSend_1hvjsy6( _$$ref.pointer, _sel_observeValueForKeyPath_ofObject_change_context_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -135123,7 +135285,7 @@ extension NSKeyValueObservingCustomization on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_observationInfo); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_observationInfo); } /// setObservationInfo: @@ -135134,7 +135296,7 @@ extension NSKeyValueObservingCustomization on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_ovsamd(_$$ref.pointer, _sel_setObservationInfo_, value); + _objc_msgSend_15is1z3(_$$ref.pointer, _sel_setObservationInfo_, value); } /// automaticallyNotifiesObserversForKey: @@ -135145,7 +135307,7 @@ extension NSKeyValueObservingCustomization on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _class_NSObject, _sel_automaticallyNotifiesObserversForKey_, _$$ref.pointer, @@ -135160,7 +135322,7 @@ extension NSKeyValueObservingCustomization on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSObject, _sel_keyPathsForValuesAffectingValueForKey_, _$$ref.pointer, @@ -135183,7 +135345,7 @@ extension NSKeyValueSharedObserverRegistration on objc.NSObject { iOS: (false, (18, 0, 0)), macOS: (false, (15, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setSharedObservers_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -135232,7 +135394,7 @@ extension NSKeyValueSorting on objc.NSMutableOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_sortUsingDescriptors_, _$$ref$1.pointer, @@ -135251,7 +135413,7 @@ extension NSKeyValueSorting$1 on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_sortedArrayUsingDescriptors_, _$$ref$1.pointer, @@ -135294,7 +135456,7 @@ extension type NSKeyedArchiverDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSKeyedArchiverDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSKeyedArchiverDelegate, @@ -135317,7 +135479,7 @@ extension NSKeyedArchiverDelegate$Methods on NSKeyedArchiverDelegate { 'archiver:didEncodeObject:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_archiver_didEncodeObject_, _$$ref$1.pointer, @@ -135342,7 +135504,7 @@ extension NSKeyedArchiverDelegate$Methods on NSKeyedArchiverDelegate { 'archiver:willEncodeObject:', ); } - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_archiver_willEncodeObject_, _$$ref$1.pointer, @@ -135372,7 +135534,7 @@ extension NSKeyedArchiverDelegate$Methods on NSKeyedArchiverDelegate { 'archiver:willReplaceObject:withObject:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_archiver_willReplaceObject_withObject_, _$$ref$1.pointer, @@ -135391,7 +135553,7 @@ extension NSKeyedArchiverDelegate$Methods on NSKeyedArchiverDelegate { 'archiverDidFinish:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_archiverDidFinish_, _$$ref$1.pointer, @@ -135408,7 +135570,7 @@ extension NSKeyedArchiverDelegate$Methods on NSKeyedArchiverDelegate { 'archiverWillFinish:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_archiverWillFinish_, _$$ref$1.pointer, @@ -135667,7 +135829,7 @@ interface class NSKeyedArchiverDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSKeyedArchiverDelegate, @@ -135717,7 +135879,7 @@ interface class NSKeyedArchiverDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_zi5eed) + >(_1uu024u_protocolTrampoline_osi9m3) .cast(), objc.getProtocolMethodSignature( _protocol_NSKeyedArchiverDelegate, @@ -135752,7 +135914,7 @@ interface class NSKeyedArchiverDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSKeyedArchiverDelegate, @@ -135811,7 +135973,7 @@ interface class NSKeyedArchiverDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSKeyedArchiverDelegate, @@ -135846,7 +136008,7 @@ interface class NSKeyedArchiverDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSKeyedArchiverDelegate, @@ -135879,7 +136041,7 @@ extension NSKeyedArchiverObjectSubstitution on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_classForKeyedArchiver, ); @@ -135897,7 +136059,7 @@ extension NSKeyedArchiverObjectSubstitution on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_replacementObjectForKeyedArchiver_, _$$ref$1.pointer, @@ -135914,7 +136076,7 @@ extension NSKeyedArchiverObjectSubstitution on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSObject, _sel_classFallbacksForKeyedArchiver, ); @@ -135954,7 +136116,7 @@ extension type NSKeyedUnarchiverDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSKeyedUnarchiverDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSKeyedUnarchiverDelegate, @@ -135982,7 +136144,7 @@ extension NSKeyedUnarchiverDelegate$Methods on NSKeyedUnarchiverDelegate { 'unarchiver:cannotDecodeObjectOfClassName:originalClasses:', ); } - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _$$ref.pointer, _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, _$$ref$1.pointer, @@ -136011,7 +136173,7 @@ extension NSKeyedUnarchiverDelegate$Methods on NSKeyedUnarchiverDelegate { 'unarchiver:didDecodeObject:', ); } - final $ret = _objc_msgSend_wfjd8v( + final $ret = _objc_msgSend_d7eo5a( _$$ref.pointer, _sel_unarchiver_didDecodeObject_, _$$ref$1.pointer, @@ -136041,7 +136203,7 @@ extension NSKeyedUnarchiverDelegate$Methods on NSKeyedUnarchiverDelegate { 'unarchiver:willReplaceObject:withObject:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_unarchiver_willReplaceObject_withObject_, _$$ref$1.pointer, @@ -136060,7 +136222,7 @@ extension NSKeyedUnarchiverDelegate$Methods on NSKeyedUnarchiverDelegate { 'unarchiverDidFinish:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_unarchiverDidFinish_, _$$ref$1.pointer, @@ -136077,7 +136239,7 @@ extension NSKeyedUnarchiverDelegate$Methods on NSKeyedUnarchiverDelegate { 'unarchiverWillFinish:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_unarchiverWillFinish_, _$$ref$1.pointer, @@ -136367,7 +136529,7 @@ interface class NSKeyedUnarchiverDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1yw2rcr) + >(_1uu024u_protocolTrampoline_ekc08i) .cast(), objc.getProtocolMethodSignature( _protocol_NSKeyedUnarchiverDelegate, @@ -136409,7 +136571,7 @@ interface class NSKeyedUnarchiverDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1p0fswn) + >(_1uu024u_protocolTrampoline_mrzooz) .cast(), objc.getProtocolMethodSignature( _protocol_NSKeyedUnarchiverDelegate, @@ -136444,7 +136606,7 @@ interface class NSKeyedUnarchiverDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSKeyedUnarchiverDelegate, @@ -136503,7 +136665,7 @@ interface class NSKeyedUnarchiverDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSKeyedUnarchiverDelegate, @@ -136538,7 +136700,7 @@ interface class NSKeyedUnarchiverDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSKeyedUnarchiverDelegate, @@ -136570,7 +136732,7 @@ extension NSKeyedUnarchiverObjectSubstitution on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSObject, _sel_classForKeyedUnarchiver, ); @@ -136634,7 +136796,7 @@ extension NSLinguisticAnalysis on objc.NSString { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_vij4rw( + _objc_msgSend_1i2s9oh( _$$ref.pointer, _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_, range, @@ -136664,7 +136826,7 @@ extension NSLinguisticAnalysis on objc.NSString { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1l09uru( + final $ret = _objc_msgSend_113h1yz( _$$ref.pointer, _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_, range, @@ -136711,7 +136873,7 @@ extension NSLocaleCreation on objc.NSLocale { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSLocale, _sel_autoupdatingCurrentLocale, ); @@ -136720,7 +136882,7 @@ extension NSLocaleCreation on objc.NSLocale { /// currentLocale static objc.NSLocale getCurrentLocale() { - final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_currentLocale); + final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_currentLocale); return objc.NSLocale.fromPointer($ret, retain: true, release: true); } @@ -136732,7 +136894,7 @@ extension NSLocaleCreation on objc.NSLocale { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSLocale, _sel_localeWithLocaleIdentifier_, _$$ref.pointer, @@ -136742,7 +136904,7 @@ extension NSLocaleCreation on objc.NSLocale { /// systemLocale static objc.NSLocale getSystemLocale() { - final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_systemLocale); + final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_systemLocale); return objc.NSLocale.fromPointer($ret, retain: true, release: true); } } @@ -136751,25 +136913,25 @@ extension NSLocaleCreation on objc.NSLocale { extension NSLocaleGeneralInfo on objc.NSLocale { /// ISOCountryCodes static objc.NSArray getISOCountryCodes() { - final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOCountryCodes); + final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_ISOCountryCodes); return objc.NSArray.fromPointer($ret, retain: true, release: true); } /// ISOCurrencyCodes static objc.NSArray getISOCurrencyCodes() { - final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOCurrencyCodes); + final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_ISOCurrencyCodes); return objc.NSArray.fromPointer($ret, retain: true, release: true); } /// ISOLanguageCodes static objc.NSArray getISOLanguageCodes() { - final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOLanguageCodes); + final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_ISOLanguageCodes); return objc.NSArray.fromPointer($ret, retain: true, release: true); } /// availableLocaleIdentifiers static objc.NSArray getAvailableLocaleIdentifiers() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSLocale, _sel_availableLocaleIdentifiers, ); @@ -136781,7 +136943,7 @@ extension NSLocaleGeneralInfo on objc.NSLocale { objc.NSString string, ) { final _$$ref = string.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSLocale, _sel_canonicalLanguageIdentifierFromString_, _$$ref.pointer, @@ -136794,7 +136956,7 @@ extension NSLocaleGeneralInfo on objc.NSLocale { objc.NSString string, ) { final _$$ref = string.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSLocale, _sel_canonicalLocaleIdentifierFromString_, _$$ref.pointer, @@ -136812,7 +136974,7 @@ extension NSLocaleGeneralInfo on objc.NSLocale { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1kn7frf( + final $ret = _objc_msgSend_k06xr2( _class_NSLocale, _sel_characterDirectionForLanguage_, _$$ref.pointer, @@ -136827,7 +136989,7 @@ extension NSLocaleGeneralInfo on objc.NSLocale { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSLocale, _sel_commonISOCurrencyCodes, ); @@ -136839,7 +137001,7 @@ extension NSLocaleGeneralInfo on objc.NSLocale { objc.NSString string, ) { final _$$ref = string.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSLocale, _sel_componentsFromLocaleIdentifier_, _$$ref.pointer, @@ -136857,7 +137019,7 @@ extension NSLocaleGeneralInfo on objc.NSLocale { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1kn7frf( + final $ret = _objc_msgSend_k06xr2( _class_NSLocale, _sel_lineDirectionForLanguage_, _$$ref.pointer, @@ -136868,7 +137030,7 @@ extension NSLocaleGeneralInfo on objc.NSLocale { /// localeIdentifierFromComponents: static objc.NSString localeIdentifierFromComponents(objc.NSDictionary dict) { final _$$ref = dict.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSLocale, _sel_localeIdentifierFromComponents_, _$$ref.pointer, @@ -136883,7 +137045,7 @@ extension NSLocaleGeneralInfo on objc.NSLocale { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_lx7wnn( + final $ret = _objc_msgSend_mbgotb( _class_NSLocale, _sel_localeIdentifierFromWindowsLocaleCode_, lcid, @@ -136900,10 +137062,7 @@ extension NSLocaleGeneralInfo on objc.NSLocale { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz( - _class_NSLocale, - _sel_preferredLanguages, - ); + final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_preferredLanguages); return objc.NSArray.fromPointer($ret, retain: true, release: true); } @@ -136917,7 +137076,7 @@ extension NSLocaleGeneralInfo on objc.NSLocale { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - return _objc_msgSend_1nwix4r( + return _objc_msgSend_17d2dof( _class_NSLocale, _sel_windowsLocaleCodeFromLocaleIdentifier_, _$$ref.pointer, @@ -136943,7 +137102,7 @@ extension type NSLocking._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSLocking]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSLocking, @@ -136955,13 +137114,13 @@ extension NSLocking$Methods on NSLocking { /// lock void lock() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_lock); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_lock); } /// unlock void unlock() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_unlock); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_unlock); } } @@ -137081,7 +137240,7 @@ interface class NSLocking$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_ovsamd) + >(_1uu024u_protocolTrampoline_15is1z3) .cast(), objc.getProtocolMethodSignature( _protocol_NSLocking, @@ -137111,7 +137270,7 @@ interface class NSLocking$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_ovsamd) + >(_1uu024u_protocolTrampoline_15is1z3) .cast(), objc.getProtocolMethodSignature( _protocol_NSLocking, @@ -137151,7 +137310,7 @@ extension type NSMachPortDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSMachPortDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSMachPortDelegate, @@ -137169,7 +137328,7 @@ extension NSMachPortDelegate$Methods on NSMachPortDelegate { 'handleMachMessage:', ); } - _objc_msgSend_ovsamd(_$$ref.pointer, _sel_handleMachMessage_, msg); + _objc_msgSend_15is1z3(_$$ref.pointer, _sel_handleMachMessage_, msg); } /// handlePortMessage: @@ -137182,7 +137341,7 @@ extension NSMachPortDelegate$Methods on NSMachPortDelegate { 'handlePortMessage:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_handlePortMessage_, _$$ref$1.pointer, @@ -137350,7 +137509,7 @@ interface class NSMachPortDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1037nh9) + >(_1uu024u_protocolTrampoline_le6lv4) .cast(), objc.getProtocolMethodSignature( _protocol_NSMachPortDelegate, @@ -137388,7 +137547,7 @@ interface class NSMachPortDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSMachPortDelegate, @@ -137693,7 +137852,7 @@ extension NSMatching on NSRegularExpression { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_105ehca( + _objc_msgSend_h4ogsm( _$$ref.pointer, _sel_enumerateMatchesInString_options_range_usingBlock_, _$$ref$1.pointer, @@ -137716,7 +137875,7 @@ extension NSMatching on NSRegularExpression { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_pccgql( + final $ret = _objc_msgSend_1mp8i54( _$$ref.pointer, _sel_firstMatchInString_options_range_, _$$ref$1.pointer, @@ -137741,7 +137900,7 @@ extension NSMatching on NSRegularExpression { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_pccgql( + final $ret = _objc_msgSend_1mp8i54( _$$ref.pointer, _sel_matchesInString_options_range_, _$$ref$1.pointer, @@ -137764,7 +137923,7 @@ extension NSMatching on NSRegularExpression { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_1rbikrg( + return _objc_msgSend_1g4mhmy( _$$ref.pointer, _sel_numberOfMatchesInString_options_range_, _$$ref$1.pointer, @@ -137788,7 +137947,7 @@ extension NSMatching on NSRegularExpression { ); final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_yl37m5Stret( + ? _objc_msgSend_rcrzo0Stret( $ptr, _$$ref.pointer, _sel_rangeOfFirstMatchInString_options_range_, @@ -137796,7 +137955,7 @@ extension NSMatching on NSRegularExpression { options, range, ) - : $ptr.ref = _objc_msgSend_yl37m5( + : $ptr.ref = _objc_msgSend_rcrzo0( _$$ref.pointer, _sel_rangeOfFirstMatchInString_options_range_, _$$ref$1.pointer, @@ -137906,7 +138065,7 @@ extension type NSMetadataQueryDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSMetadataQueryDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSMetadataQueryDelegate, @@ -137932,7 +138091,7 @@ extension NSMetadataQueryDelegate$Methods on NSMetadataQueryDelegate { 'metadataQuery:replacementObjectForResultObject:', ); } - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_metadataQuery_replacementObjectForResultObject_, _$$ref$1.pointer, @@ -137960,7 +138119,7 @@ extension NSMetadataQueryDelegate$Methods on NSMetadataQueryDelegate { 'metadataQuery:replacementValueForAttribute:value:', ); } - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _$$ref.pointer, _sel_metadataQuery_replacementValueForAttribute_value_, _$$ref$1.pointer, @@ -138040,7 +138199,7 @@ interface class NSMetadataQueryDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_zi5eed) + >(_1uu024u_protocolTrampoline_osi9m3) .cast(), objc.getProtocolMethodSignature( _protocol_NSMetadataQueryDelegate, @@ -138079,7 +138238,7 @@ interface class NSMetadataQueryDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1yw2rcr) + >(_1uu024u_protocolTrampoline_ekc08i) .cast(), objc.getProtocolMethodSignature( _protocol_NSMetadataQueryDelegate, @@ -138116,7 +138275,7 @@ extension NSMorphology on objc.NSAttributedString { iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_attributedStringByInflectingString, ); @@ -138205,7 +138364,7 @@ extension NSMorphologyUserSettings on NSMorphology$1 { iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isUnspecified); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isUnspecified); } /// userMorphology @@ -138215,10 +138374,7 @@ extension NSMorphologyUserSettings on NSMorphology$1 { iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( - _class_NSMorphology, - _sel_userMorphology, - ); + final $ret = _objc_msgSend_zldla2(_class_NSMorphology, _sel_userMorphology); return NSMorphology$1.fromPointer($ret, retain: true, release: true); } } @@ -138229,7 +138385,7 @@ extension NSMutableArrayCreation on objc.NSMutableArray { objc.NSMutableArray? initWithContentsOfFile(objc.NSString path) { final _$$ref = object$.ref; final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfFile_, _$$ref$1.pointer, @@ -138243,7 +138399,7 @@ extension NSMutableArrayCreation on objc.NSMutableArray { objc.NSMutableArray? initWithContentsOfURL(objc.NSURL url) { final _$$ref = object$.ref; final _$$ref$1 = url.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_, _$$ref$1.pointer, @@ -138255,7 +138411,7 @@ extension NSMutableArrayCreation on objc.NSMutableArray { /// arrayWithCapacity: static objc.NSMutableArray arrayWithCapacity(DartNSUInteger numItems) { - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _class_NSMutableArray, _sel_arrayWithCapacity_, numItems, @@ -138266,7 +138422,7 @@ extension NSMutableArrayCreation on objc.NSMutableArray { /// arrayWithContentsOfFile: static objc.NSMutableArray? arrayWithContentsOfFile(objc.NSString path) { final _$$ref = path.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSMutableArray, _sel_arrayWithContentsOfFile_, _$$ref.pointer, @@ -138279,7 +138435,7 @@ extension NSMutableArrayCreation on objc.NSMutableArray { /// arrayWithContentsOfURL: static objc.NSMutableArray? arrayWithContentsOfURL(objc.NSURL url) { final _$$ref = url.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSMutableArray, _sel_arrayWithContentsOfURL_, _$$ref.pointer, @@ -138301,7 +138457,7 @@ extension NSMutableArrayDiffing on objc.NSMutableArray { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_applyDifference_, _$$ref$1.pointer, @@ -138349,7 +138505,7 @@ extension NSMutableAttributedStringFormatting on NSMutableAttributedString { iOS: (false, (15, 0, 0)), macOS: (false, (12, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_appendLocalizedFormat_, _$$ref$1.pointer, @@ -138369,7 +138525,7 @@ extension NSMutableDataCompression on objc.NSMutableData { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_15v716q( + final $ret = _objc_msgSend_15t3nhv( _$$ref.pointer, _sel_compressUsingAlgorithm_error_, algorithm.value, @@ -138392,7 +138548,7 @@ extension NSMutableDataCompression on objc.NSMutableData { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_15v716q( + final $ret = _objc_msgSend_15t3nhv( _$$ref.pointer, _sel_decompressUsingAlgorithm_error_, algorithm.value, @@ -138411,7 +138567,7 @@ extension NSMutableDataCreation on objc.NSMutableData { /// initWithCapacity: objc.NSMutableData? initWithCapacity(DartNSUInteger capacity) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _$$ref.retainAndReturnPointer(), _sel_initWithCapacity_, capacity, @@ -138424,7 +138580,7 @@ extension NSMutableDataCreation on objc.NSMutableData { /// initWithLength: objc.NSMutableData? initWithLength(DartNSUInteger length) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _$$ref.retainAndReturnPointer(), _sel_initWithLength_, length, @@ -138436,7 +138592,7 @@ extension NSMutableDataCreation on objc.NSMutableData { /// dataWithCapacity: static objc.NSMutableData? dataWithCapacity(DartNSUInteger aNumItems) { - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _class_NSMutableData, _sel_dataWithCapacity_, aNumItems, @@ -138448,7 +138604,7 @@ extension NSMutableDataCreation on objc.NSMutableData { /// dataWithLength: static objc.NSMutableData? dataWithLength(DartNSUInteger length) { - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _class_NSMutableData, _sel_dataWithLength_, length, @@ -138465,7 +138621,7 @@ extension NSMutableDictionaryCreation on objc.NSMutableDictionary { objc.NSMutableDictionary? initWithContentsOfFile(objc.NSString path) { final _$$ref = object$.ref; final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfFile_, _$$ref$1.pointer, @@ -138483,7 +138639,7 @@ extension NSMutableDictionaryCreation on objc.NSMutableDictionary { objc.NSMutableDictionary? initWithContentsOfURL(objc.NSURL url) { final _$$ref = object$.ref; final _$$ref$1 = url.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_, _$$ref$1.pointer, @@ -138501,7 +138657,7 @@ extension NSMutableDictionaryCreation on objc.NSMutableDictionary { static objc.NSMutableDictionary dictionaryWithCapacity( DartNSUInteger numItems, ) { - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _class_NSMutableDictionary, _sel_dictionaryWithCapacity_, numItems, @@ -138518,7 +138674,7 @@ extension NSMutableDictionaryCreation on objc.NSMutableDictionary { objc.NSString path, ) { final _$$ref = path.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSMutableDictionary, _sel_dictionaryWithContentsOfFile_, _$$ref.pointer, @@ -138535,7 +138691,7 @@ extension NSMutableDictionaryCreation on objc.NSMutableDictionary { /// dictionaryWithContentsOfURL: static objc.NSMutableDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { final _$$ref = url.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSMutableDictionary, _sel_dictionaryWithContentsOfURL_, _$$ref.pointer, @@ -138560,7 +138716,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBody); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPBody); return $ret.address == 0 ? null : objc.NSData.fromPointer($ret, retain: true, release: true); @@ -138574,7 +138730,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBodyStream); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPBodyStream); return $ret.address == 0 ? null : objc.NSInputStream.fromPointer($ret, retain: true, release: true); @@ -138588,7 +138744,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPMethod); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPMethod); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -138600,7 +138756,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldHandleCookies); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_HTTPShouldHandleCookies); } /// HTTPShouldUsePipelining @@ -138614,7 +138770,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldUsePipelining); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_HTTPShouldUsePipelining); } /// addValue:forHTTPHeaderField: @@ -138630,7 +138786,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_addValue_forHTTPHeaderField_, _$$ref$1.pointer, @@ -138646,10 +138802,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_allHTTPHeaderFields, - ); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allHTTPHeaderFields); return $ret.address == 0 ? null : objc.NSDictionary.fromPointer($ret, retain: true, release: true); @@ -138664,7 +138817,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setAllHTTPHeaderFields_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -138680,7 +138833,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setHTTPBody_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -138696,7 +138849,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setHTTPBodyStream_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -138712,7 +138865,11 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setHTTPMethod_, _$$ref$1.pointer); + _objc_msgSend_1d1siln( + _$$ref.pointer, + _sel_setHTTPMethod_, + _$$ref$1.pointer, + ); } /// setHTTPShouldHandleCookies: @@ -138723,7 +138880,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_1s56lr9( + _objc_msgSend_1s4gila( _$$ref.pointer, _sel_setHTTPShouldHandleCookies_, value, @@ -138741,7 +138898,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1s56lr9( + _objc_msgSend_1s4gila( _$$ref.pointer, _sel_setHTTPShouldUsePipelining_, value, @@ -138761,7 +138918,7 @@ extension NSMutableHTTPURLRequest on NSMutableURLRequest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_setValue_forHTTPHeaderField_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -138781,7 +138938,7 @@ extension NSMutableOrderedSetCreation on objc.NSMutableOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _class_NSMutableOrderedSet, _sel_orderedSetWithCapacity_, numItems, @@ -138805,7 +138962,7 @@ extension NSMutableOrderedSetDiffing on objc.NSMutableOrderedSet { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_applyDifference_, _$$ref$1.pointer, @@ -138817,7 +138974,7 @@ extension NSMutableOrderedSetDiffing on objc.NSMutableOrderedSet { extension NSMutableSetCreation on objc.NSMutableSet { /// setWithCapacity: static objc.NSMutableSet setWithCapacity(DartNSUInteger numItems) { - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _class_NSMutableSet, _sel_setWithCapacity_, numItems, @@ -138832,14 +138989,14 @@ extension NSMutableStringExtensionMethods on objc.NSMutableString { void appendFormat(objc.NSString format) { final _$$ref = object$.ref; final _$$ref$1 = format.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_appendFormat_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_appendFormat_, _$$ref$1.pointer); } /// appendString: void appendString(objc.NSString aString) { final _$$ref = object$.ref; final _$$ref$1 = aString.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_appendString_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_appendString_, _$$ref$1.pointer); } /// applyTransform:reverse:range:updatedRange: @@ -138856,7 +139013,7 @@ extension NSMutableStringExtensionMethods on objc.NSMutableString { iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0)), ); - return _objc_msgSend_zy00wz( + return _objc_msgSend_1ux8kak( _$$ref.pointer, _sel_applyTransform_reverse_range_updatedRange_, _$$ref$1.pointer, @@ -138869,13 +139026,13 @@ extension NSMutableStringExtensionMethods on objc.NSMutableString { /// deleteCharactersInRange: void deleteCharactersInRange(NSRange range) { final _$$ref = object$.ref; - _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_deleteCharactersInRange_, range); + _objc_msgSend_1ax18rd(_$$ref.pointer, _sel_deleteCharactersInRange_, range); } /// initWithCapacity: objc.NSMutableString initWithCapacity(DartNSUInteger capacity) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _$$ref.retainAndReturnPointer(), _sel_initWithCapacity_, capacity, @@ -138887,7 +139044,7 @@ extension NSMutableStringExtensionMethods on objc.NSMutableString { void insertString(objc.NSString aString, {required DartNSUInteger atIndex}) { final _$$ref = object$.ref; final _$$ref$1 = aString.ref; - _objc_msgSend_djsa9o( + _objc_msgSend_ralblg( _$$ref.pointer, _sel_insertString_atIndex_, _$$ref$1.pointer, @@ -138905,7 +139062,7 @@ extension NSMutableStringExtensionMethods on objc.NSMutableString { final _$$ref = object$.ref; final _$$ref$1 = target.ref; final _$$ref$2 = withString.ref; - return _objc_msgSend_1upeo1d( + return _objc_msgSend_12av0mx( _$$ref.pointer, _sel_replaceOccurrencesOfString_withString_options_range_, _$$ref$1.pointer, @@ -138919,12 +139076,12 @@ extension NSMutableStringExtensionMethods on objc.NSMutableString { void setString(objc.NSString aString) { final _$$ref = object$.ref; final _$$ref$1 = aString.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setString_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setString_, _$$ref$1.pointer); } /// stringWithCapacity: static objc.NSMutableString stringWithCapacity(DartNSUInteger capacity) { - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _class_NSMutableString, _sel_stringWithCapacity_, capacity, @@ -139039,7 +139196,7 @@ extension type NSNetServiceBrowserDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSNetServiceBrowserDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSNetServiceBrowserDelegate, @@ -139071,7 +139228,7 @@ extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { 'netServiceBrowser:didFindDomain:moreComing:', ); } - _objc_msgSend_1lhy15d( + _objc_msgSend_kqg9a0( _$$ref.pointer, _sel_netServiceBrowser_didFindDomain_moreComing_, _$$ref$1.pointer, @@ -139103,7 +139260,7 @@ extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { 'netServiceBrowser:didFindService:moreComing:', ); } - _objc_msgSend_1lhy15d( + _objc_msgSend_kqg9a0( _$$ref.pointer, _sel_netServiceBrowser_didFindService_moreComing_, _$$ref$1.pointer, @@ -139134,7 +139291,7 @@ extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { 'netServiceBrowser:didNotSearch:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_netServiceBrowser_didNotSearch_, _$$ref$1.pointer, @@ -139165,7 +139322,7 @@ extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { 'netServiceBrowser:didRemoveDomain:moreComing:', ); } - _objc_msgSend_1lhy15d( + _objc_msgSend_kqg9a0( _$$ref.pointer, _sel_netServiceBrowser_didRemoveDomain_moreComing_, _$$ref$1.pointer, @@ -139197,7 +139354,7 @@ extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { 'netServiceBrowser:didRemoveService:moreComing:', ); } - _objc_msgSend_1lhy15d( + _objc_msgSend_kqg9a0( _$$ref.pointer, _sel_netServiceBrowser_didRemoveService_moreComing_, _$$ref$1.pointer, @@ -139224,7 +139381,7 @@ extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { 'netServiceBrowserDidStopSearch:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_netServiceBrowserDidStopSearch_, _$$ref$1.pointer, @@ -139249,7 +139406,7 @@ extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { 'netServiceBrowserWillSearch:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_netServiceBrowserWillSearch_, _$$ref$1.pointer, @@ -139599,7 +139756,7 @@ interface class NSNetServiceBrowserDelegate$Builder { ffi.Bool, ) > - >(_1uu024u_protocolTrampoline_8acz2h) + >(_1uu024u_protocolTrampoline_9km3ll) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceBrowserDelegate, @@ -139653,7 +139810,7 @@ interface class NSNetServiceBrowserDelegate$Builder { ffi.Bool, ) > - >(_1uu024u_protocolTrampoline_8acz2h) + >(_1uu024u_protocolTrampoline_9km3ll) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceBrowserDelegate, @@ -139706,7 +139863,7 @@ interface class NSNetServiceBrowserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceBrowserDelegate, @@ -139757,7 +139914,7 @@ interface class NSNetServiceBrowserDelegate$Builder { ffi.Bool, ) > - >(_1uu024u_protocolTrampoline_8acz2h) + >(_1uu024u_protocolTrampoline_9km3ll) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceBrowserDelegate, @@ -139811,7 +139968,7 @@ interface class NSNetServiceBrowserDelegate$Builder { ffi.Bool, ) > - >(_1uu024u_protocolTrampoline_8acz2h) + >(_1uu024u_protocolTrampoline_9km3ll) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceBrowserDelegate, @@ -139861,7 +140018,7 @@ interface class NSNetServiceBrowserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceBrowserDelegate, @@ -139896,7 +140053,7 @@ interface class NSNetServiceBrowserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceBrowserDelegate, @@ -139934,7 +140091,7 @@ extension type NSNetServiceDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSNetServiceDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSNetServiceDelegate, @@ -139967,7 +140124,7 @@ extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { 'netService:didAcceptConnectionWithInputStream:outputStream:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_netService_didAcceptConnectionWithInputStream_outputStream_, _$$ref$1.pointer, @@ -139998,7 +140155,7 @@ extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { 'netService:didNotPublish:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_netService_didNotPublish_, _$$ref$1.pointer, @@ -140028,7 +140185,7 @@ extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { 'netService:didNotResolve:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_netService_didNotResolve_, _$$ref$1.pointer, @@ -140058,7 +140215,7 @@ extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { 'netService:didUpdateTXTRecordData:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_netService_didUpdateTXTRecordData_, _$$ref$1.pointer, @@ -140081,7 +140238,7 @@ extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { 'netServiceDidPublish:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_netServiceDidPublish_, _$$ref$1.pointer, @@ -140106,7 +140263,7 @@ extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { 'netServiceDidResolveAddress:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_netServiceDidResolveAddress_, _$$ref$1.pointer, @@ -140128,7 +140285,7 @@ extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { 'netServiceDidStop:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_netServiceDidStop_, _$$ref$1.pointer, @@ -140150,7 +140307,7 @@ extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { 'netServiceWillPublish:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_netServiceWillPublish_, _$$ref$1.pointer, @@ -140172,7 +140329,7 @@ extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { 'netServiceWillResolve:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_netServiceWillResolve_, _$$ref$1.pointer, @@ -140562,7 +140719,7 @@ interface class NSNetServiceDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceDelegate, @@ -140624,7 +140781,7 @@ interface class NSNetServiceDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceDelegate, @@ -140674,7 +140831,7 @@ interface class NSNetServiceDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceDelegate, @@ -140724,7 +140881,7 @@ interface class NSNetServiceDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceDelegate, @@ -140762,7 +140919,7 @@ interface class NSNetServiceDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceDelegate, @@ -140797,7 +140954,7 @@ interface class NSNetServiceDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceDelegate, @@ -140832,7 +140989,7 @@ interface class NSNetServiceDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceDelegate, @@ -140867,7 +141024,7 @@ interface class NSNetServiceDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceDelegate, @@ -140902,7 +141059,7 @@ interface class NSNetServiceDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSNetServiceDelegate, @@ -140979,7 +141136,7 @@ extension NSNotificationCreation on objc.NSNotification { /// init objc.NSNotification init$1() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -140993,7 +141150,7 @@ extension NSNotificationCreation on objc.NSNotification { }) { final _$$ref = aName.ref; final _$$ref$1 = object?.ref; - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _class_NSNotification, _sel_notificationWithName_object_, _$$ref.pointer, @@ -141011,7 +141168,7 @@ extension NSNotificationCreation on objc.NSNotification { final _$$ref = aName.ref; final _$$ref$1 = object?.ref; final _$$ref$2 = userInfo?.ref; - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _class_NSNotification, _sel_notificationWithName_object_userInfo_, _$$ref.pointer, @@ -141090,7 +141247,7 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { /// attributedStringForNil objc.NSAttributedString get attributedStringForNil { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_attributedStringForNil, ); @@ -141104,7 +141261,7 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { /// attributedStringForNotANumber objc.NSAttributedString get attributedStringForNotANumber { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_attributedStringForNotANumber, ); @@ -141118,7 +141275,7 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { /// attributedStringForZero objc.NSAttributedString get attributedStringForZero { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_attributedStringForZero, ); @@ -141132,26 +141289,26 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { /// format objc.NSString get format { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_format); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// hasThousandSeparators bool get hasThousandSeparators { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasThousandSeparators); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_hasThousandSeparators); } /// localizesFormat bool get localizesFormat { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_localizesFormat); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_localizesFormat); } /// roundingBehavior NSDecimalNumberHandler get roundingBehavior { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_roundingBehavior); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_roundingBehavior); return NSDecimalNumberHandler.fromPointer( $ret, retain: true, @@ -141163,7 +141320,7 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { set attributedStringForNil(objc.NSAttributedString value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setAttributedStringForNil_, _$$ref$1.pointer, @@ -141174,7 +141331,7 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { set attributedStringForNotANumber(objc.NSAttributedString value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setAttributedStringForNotANumber_, _$$ref$1.pointer, @@ -141185,7 +141342,7 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { set attributedStringForZero(objc.NSAttributedString value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setAttributedStringForZero_, _$$ref$1.pointer, @@ -141196,13 +141353,13 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { set format(objc.NSString value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setFormat_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setFormat_, _$$ref$1.pointer); } /// setHasThousandSeparators: set hasThousandSeparators(bool value) { final _$$ref = object$.ref; - _objc_msgSend_1s56lr9( + _objc_msgSend_1s4gila( _$$ref.pointer, _sel_setHasThousandSeparators_, value, @@ -141212,14 +141369,14 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { /// setLocalizesFormat: set localizesFormat(bool value) { final _$$ref = object$.ref; - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setLocalizesFormat_, value); + _objc_msgSend_1s4gila(_$$ref.pointer, _sel_setLocalizesFormat_, value); } /// setRoundingBehavior: set roundingBehavior(NSDecimalNumberHandler value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setRoundingBehavior_, _$$ref$1.pointer, @@ -141230,7 +141387,7 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { set thousandSeparator(objc.NSString value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setThousandSeparator_, _$$ref$1.pointer, @@ -141240,7 +141397,7 @@ extension NSNumberFormatterCompatibility on NSNumberFormatter { /// thousandSeparator objc.NSString get thousandSeparator { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_thousandSeparator); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_thousandSeparator); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -141417,7 +141574,7 @@ extension NSOrderedPerform on objc.NSRunLoop { final _$$ref = object$.ref; final _$$ref$1 = target.ref; final _$$ref$2 = argument?.ref; - _objc_msgSend_lzbvjm( + _objc_msgSend_1xnczpu( _$$ref.pointer, _sel_cancelPerformSelector_target_argument_, aSelector, @@ -141430,7 +141587,7 @@ extension NSOrderedPerform on objc.NSRunLoop { void cancelPerformSelectorsWithTarget(objc.ObjCObject target) { final _$$ref = object$.ref; final _$$ref$1 = target.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_cancelPerformSelectorsWithTarget_, _$$ref$1.pointer, @@ -141449,7 +141606,7 @@ extension NSOrderedPerform on objc.NSRunLoop { final _$$ref$1 = target.ref; final _$$ref$2 = argument?.ref; final _$$ref$3 = modes.ref; - _objc_msgSend_11hj8md( + _objc_msgSend_jt5cno( _$$ref.pointer, _sel_performSelector_target_argument_order_modes_, aSelector, @@ -141472,7 +141629,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithArray_, _$$ref$1.pointer, @@ -141492,7 +141649,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _$$ref.retainAndReturnPointer(), _sel_initWithArray_copyItems_, _$$ref$1.pointer, @@ -141514,7 +141671,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_w9bq5x( + final $ret = _objc_msgSend_19akr8a( _$$ref.retainAndReturnPointer(), _sel_initWithArray_range_copyItems_, _$$ref$1.pointer, @@ -141533,7 +141690,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithObject_, _$$ref$1.pointer, @@ -141550,7 +141707,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithObjects_, _$$ref$1.pointer, @@ -141567,7 +141724,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithOrderedSet_, _$$ref$1.pointer, @@ -141587,7 +141744,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _$$ref.retainAndReturnPointer(), _sel_initWithOrderedSet_copyItems_, _$$ref$1.pointer, @@ -141609,7 +141766,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_w9bq5x( + final $ret = _objc_msgSend_19akr8a( _$$ref.retainAndReturnPointer(), _sel_initWithOrderedSet_range_copyItems_, _$$ref$1.pointer, @@ -141628,7 +141785,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithSet_, _$$ref$1.pointer, @@ -141645,7 +141802,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _$$ref.retainAndReturnPointer(), _sel_initWithSet_copyItems_, _$$ref$1.pointer, @@ -141661,7 +141818,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); + final $ret = _objc_msgSend_zldla2(_class_NSOrderedSet, _sel_orderedSet); return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); } @@ -141673,7 +141830,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSOrderedSet, _sel_orderedSetWithArray_, _$$ref.pointer, @@ -141693,7 +141850,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_w9bq5x( + final $ret = _objc_msgSend_19akr8a( _class_NSOrderedSet, _sel_orderedSetWithArray_range_copyItems_, _$$ref.pointer, @@ -141711,7 +141868,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSOrderedSet, _sel_orderedSetWithObject_, _$$ref.pointer, @@ -141727,7 +141884,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSOrderedSet, _sel_orderedSetWithObjects_, _$$ref.pointer, @@ -141745,7 +141902,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_zmbtbd( + final $ret = _objc_msgSend_1u4qka1( _class_NSOrderedSet, _sel_orderedSetWithObjects_count_, objects, @@ -141762,7 +141919,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSOrderedSet, _sel_orderedSetWithOrderedSet_, _$$ref.pointer, @@ -141782,7 +141939,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_w9bq5x( + final $ret = _objc_msgSend_19akr8a( _class_NSOrderedSet, _sel_orderedSetWithOrderedSet_range_copyItems_, _$$ref.pointer, @@ -141800,7 +141957,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSOrderedSet, _sel_orderedSetWithSet_, _$$ref.pointer, @@ -141819,7 +141976,7 @@ extension NSOrderedSetCreation on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _class_NSOrderedSet, _sel_orderedSetWithSet_copyItems_, _$$ref.pointer, @@ -141842,7 +141999,7 @@ extension NSOrderedSetDiffing on objc.NSOrderedSet { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_differenceFromOrderedSet_, _$$ref$1.pointer, @@ -141866,7 +142023,7 @@ extension NSOrderedSetDiffing on objc.NSOrderedSet { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - final $ret = _objc_msgSend_1wtpmu7( + final $ret = _objc_msgSend_shgy3l( _$$ref.pointer, _sel_differenceFromOrderedSet_withOptions_, _$$ref$1.pointer, @@ -141899,7 +142056,7 @@ extension NSOrderedSetDiffing on objc.NSOrderedSet { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - final $ret = _objc_msgSend_1415lvo( + final $ret = _objc_msgSend_unrmat( _$$ref.pointer, _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_, _$$ref$1.pointer, @@ -141924,7 +142081,7 @@ extension NSOrderedSetDiffing on objc.NSOrderedSet { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_orderedSetByApplyingDifference_, _$$ref$1.pointer, @@ -141981,7 +142138,7 @@ extension NSOrthographyExtended on NSOrthography { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allLanguages); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allLanguages); return objc.NSArray.fromPointer($ret, retain: true, release: true); } @@ -141993,7 +142150,7 @@ extension NSOrthographyExtended on NSOrthography { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allScripts); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allScripts); return objc.NSArray.fromPointer($ret, retain: true, release: true); } @@ -142005,7 +142162,7 @@ extension NSOrthographyExtended on NSOrthography { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_dominantLanguage); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_dominantLanguage); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -142018,7 +142175,7 @@ extension NSOrthographyExtended on NSOrthography { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_dominantLanguageForScript_, _$$ref$1.pointer, @@ -142037,7 +142194,7 @@ extension NSOrthographyExtended on NSOrthography { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_languagesForScript_, _$$ref$1.pointer, @@ -142057,7 +142214,7 @@ extension NSOutputStreamExtensions on objc.NSOutputStream { }) { final _$$ref = object$.ref; final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _$$ref.retainAndReturnPointer(), _sel_initToFileAtPath_append_, _$$ref$1.pointer, @@ -142073,7 +142230,7 @@ extension NSOutputStreamExtensions on objc.NSOutputStream { ffi.Pointer buffer, { required DartNSUInteger capacity, }) { - final $ret = _objc_msgSend_158ju31( + final $ret = _objc_msgSend_1gqjits( _class_NSOutputStream, _sel_outputStreamToBuffer_capacity_, buffer, @@ -142088,7 +142245,7 @@ extension NSOutputStreamExtensions on objc.NSOutputStream { required bool append, }) { final _$$ref = path.ref; - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _class_NSOutputStream, _sel_outputStreamToFileAtPath_append_, _$$ref.pointer, @@ -142099,7 +142256,7 @@ extension NSOutputStreamExtensions on objc.NSOutputStream { /// outputStreamToMemory static objc.NSOutputStream outputStreamToMemory() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSOutputStream, _sel_outputStreamToMemory, ); @@ -142117,7 +142274,7 @@ extension NSOutputStreamExtensions on objc.NSOutputStream { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _class_NSOutputStream, _sel_outputStreamWithURL_append_, _$$ref.pointer, @@ -142204,7 +142361,7 @@ extension NSPointerArrayConveniences on NSPointerArray { iOS: (false, (6, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allObjects); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allObjects); return objc.NSArray.fromPointer($ret, retain: true, release: true); } @@ -142216,7 +142373,7 @@ extension NSPointerArrayConveniences on NSPointerArray { iOS: (true, null), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSPointerArray, _sel_pointerArrayWithStrongObjects, ); @@ -142231,7 +142388,7 @@ extension NSPointerArrayConveniences on NSPointerArray { iOS: (true, null), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSPointerArray, _sel_pointerArrayWithWeakObjects, ); @@ -142245,7 +142402,7 @@ extension NSPointerArrayConveniences on NSPointerArray { iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSPointerArray, _sel_strongObjectsPointerArray, ); @@ -142259,7 +142416,7 @@ extension NSPointerArrayConveniences on NSPointerArray { iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSPointerArray, _sel_weakObjectsPointerArray, ); @@ -142408,7 +142565,7 @@ extension NSPredicateSupport on objc.NSArray { objc.NSArray filteredArrayUsingPredicate(NSPredicate predicate) { final _$$ref = object$.ref; final _$$ref$1 = predicate.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_filteredArrayUsingPredicate_, _$$ref$1.pointer, @@ -142428,7 +142585,7 @@ extension NSPredicateSupport$1 on objc.NSSet { iOS: (false, (3, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_filteredSetUsingPredicate_, _$$ref$1.pointer, @@ -142443,7 +142600,7 @@ extension NSPredicateSupport$2 on objc.NSMutableArray { void filterUsingPredicate(NSPredicate predicate) { final _$$ref = object$.ref; final _$$ref$1 = predicate.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_filterUsingPredicate_, _$$ref$1.pointer, @@ -142462,7 +142619,7 @@ extension NSPredicateSupport$3 on objc.NSMutableOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_filterUsingPredicate_, _$$ref$1.pointer, @@ -142481,7 +142638,7 @@ extension NSPredicateSupport$4 on objc.NSOrderedSet { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_filteredOrderedSetUsingPredicate_, _$$ref$1.pointer, @@ -142501,7 +142658,7 @@ extension NSPredicateSupport$5 on objc.NSMutableSet { iOS: (false, (3, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_filterUsingPredicate_, _$$ref$1.pointer, @@ -142579,7 +142736,7 @@ extension NSPreviewSupport on objc.NSItemProvider { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_o762yo( + _objc_msgSend_9kuhjb( _$$ref.pointer, _sel_loadPreviewImageWithOptions_completionHandler_, _$$ref$1.pointer, @@ -142595,7 +142752,10 @@ extension NSPreviewSupport on objc.NSItemProvider { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_previewImageHandler); + final $ret = _objc_msgSend_13wc3w1( + _$$ref.pointer, + _sel_previewImageHandler, + ); return $ret.address == 0 ? null : ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary.fromPointer( @@ -142614,7 +142774,7 @@ extension NSPreviewSupport on objc.NSItemProvider { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _$$ref.pointer, _sel_setPreviewImageHandler_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -142653,7 +142813,7 @@ extension NSProcessInfoActivity on NSProcessInfo { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_u2drt1( + final $ret = _objc_msgSend_17734bn( _$$ref.pointer, _sel_beginActivityWithOptions_reason_, options, @@ -142671,7 +142831,7 @@ extension NSProcessInfoActivity on NSProcessInfo { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_endActivity_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_endActivity_, _$$ref$1.pointer); } /// performActivityWithOptions:reason:usingBlock: @@ -142688,7 +142848,7 @@ extension NSProcessInfoActivity on NSProcessInfo { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - _objc_msgSend_1jz97e( + _objc_msgSend_1l105vx( _$$ref.pointer, _sel_performActivityWithOptions_reason_usingBlock_, options, @@ -142710,7 +142870,7 @@ extension NSProcessInfoActivity on NSProcessInfo { iOS: (false, (8, 2, 0)), macOS: (true, null), ); - _objc_msgSend_o762yo( + _objc_msgSend_9kuhjb( _$$ref.pointer, _sel_performExpiringActivityWithReason_usingBlock_, _$$ref$1.pointer, @@ -142729,7 +142889,7 @@ extension NSProcessInfoPlatform on NSProcessInfo { iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMacCatalystApp); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isMacCatalystApp); } /// isiOSAppOnMac @@ -142740,7 +142900,7 @@ extension NSProcessInfoPlatform on NSProcessInfo { iOS: (false, (14, 0, 0)), macOS: (false, (11, 0, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isiOSAppOnMac); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isiOSAppOnMac); } } @@ -142754,7 +142914,7 @@ extension NSProcessInfoPowerState on NSProcessInfo { iOS: (false, (9, 0, 0)), macOS: (false, (12, 0, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isLowPowerModeEnabled); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isLowPowerModeEnabled); } } @@ -142788,7 +142948,7 @@ extension NSProcessInfoThermalState$1 on NSProcessInfo { iOS: (false, (11, 0, 0)), macOS: (false, (10, 10, 3)), ); - final $ret = _objc_msgSend_1fnsr6j(_$$ref.pointer, _sel_thermalState); + final $ret = _objc_msgSend_1lvlpux(_$$ref.pointer, _sel_thermalState); return NSProcessInfoThermalState.fromValue($ret); } } @@ -142818,7 +142978,7 @@ extension type NSProgressReporting._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSProgressReporting]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSProgressReporting, @@ -142830,7 +142990,7 @@ extension NSProgressReporting$Methods on NSProgressReporting { /// progress objc.NSProgress get progress { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_progress); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_progress); return objc.NSProgress.fromPointer($ret, retain: true, release: true); } } @@ -142881,7 +143041,7 @@ interface class NSProgressReporting$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_NSProgressReporting, @@ -142913,7 +143073,7 @@ extension NSPromisedItems on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1dom33q( + final $ret = _objc_msgSend_1tjz0jr( _$$ref.pointer, _sel_checkPromisedItemIsReachableAndReturnError_, $err, @@ -142939,7 +143099,7 @@ extension NSPromisedItems on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1j9bhml( + final $ret = _objc_msgSend_1fh46zu( _$$ref.pointer, _sel_getPromisedItemResourceValue_forKey_error_, value, @@ -142964,7 +143124,7 @@ extension NSPromisedItems on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1lhpu4m( + final $ret = _objc_msgSend_1a2vk5h( _$$ref.pointer, _sel_promisedItemResourceValuesForKeys_error_, _$$ref$1.pointer, @@ -143201,7 +143361,7 @@ extension NSReplacement on NSRegularExpression { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_kgvd6q( + return _objc_msgSend_1vgbqmt( _$$ref.pointer, _sel_replaceMatchesInString_options_range_withTemplate_, _$$ref$1.pointer, @@ -143227,7 +143387,7 @@ extension NSReplacement on NSRegularExpression { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_l9ppnx( + final $ret = _objc_msgSend_1sptcho( _$$ref.pointer, _sel_replacementStringForResult_inString_offset_template_, _$$ref$1.pointer, @@ -143253,7 +143413,7 @@ extension NSReplacement on NSRegularExpression { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1lk7ow3( + final $ret = _objc_msgSend_11r004b( _$$ref.pointer, _sel_stringByReplacingMatchesInString_options_range_withTemplate_, _$$ref$1.pointer, @@ -143272,7 +143432,7 @@ extension NSReplacement on NSRegularExpression { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSRegularExpression, _sel_escapedTemplateForString_, _$$ref.pointer, @@ -143312,7 +143472,7 @@ extension NSRunLoopConveniences on objc.NSRunLoop { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_configureAsServer); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_configureAsServer); } /// performBlock: @@ -143324,7 +143484,7 @@ extension NSRunLoopConveniences on objc.NSRunLoop { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - _objc_msgSend_f167m6(_$$ref.pointer, _sel_performBlock_, _$$ref$1.pointer); + _objc_msgSend_wv523k(_$$ref.pointer, _sel_performBlock_, _$$ref$1.pointer); } /// performInModes:block: @@ -143340,7 +143500,7 @@ extension NSRunLoopConveniences on objc.NSRunLoop { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - _objc_msgSend_o762yo( + _objc_msgSend_9kuhjb( _$$ref.pointer, _sel_performInModes_block_, _$$ref$1.pointer, @@ -143351,7 +143511,7 @@ extension NSRunLoopConveniences on objc.NSRunLoop { /// run void run() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_run); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_run); } /// runMode:beforeDate: @@ -143359,7 +143519,7 @@ extension NSRunLoopConveniences on objc.NSRunLoop { final _$$ref = object$.ref; final _$$ref$1 = mode.ref; final _$$ref$2 = beforeDate.ref; - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_runMode_beforeDate_, _$$ref$1.pointer, @@ -143371,7 +143531,7 @@ extension NSRunLoopConveniences on objc.NSRunLoop { void runUntilDate(objc.NSDate limitDate) { final _$$ref = object$.ref; final _$$ref$1 = limitDate.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_runUntilDate_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_runUntilDate_, _$$ref$1.pointer); } } @@ -143423,7 +143583,7 @@ extension NSScriptClassDescription on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_classCode); + return _objc_msgSend_pxpqpv(_$$ref.pointer, _sel_classCode); } /// className @@ -143434,7 +143594,7 @@ extension NSScriptClassDescription on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_className); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_className); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -143471,7 +143631,7 @@ extension NSScriptKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_coerceValue_forKey_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -143496,7 +143656,7 @@ extension NSScriptKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_10nfbmq( + _objc_msgSend_15jmnhb( _$$ref.pointer, _sel_insertValue_atIndex_inPropertyWithKey_, _$$ref$1.pointer, @@ -143518,7 +143678,7 @@ extension NSScriptKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_insertValue_inPropertyWithKey_, _$$ref$1.pointer, @@ -143538,7 +143698,7 @@ extension NSScriptKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1gypgok( + _objc_msgSend_s0nvsa( _$$ref.pointer, _sel_removeValueAtIndex_fromPropertyWithKey_, index$1, @@ -143560,7 +143720,7 @@ extension NSScriptKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_rutu22( + _objc_msgSend_137o7cl( _$$ref.pointer, _sel_replaceValueAtIndex_inPropertyWithKey_withValue_, index$1, @@ -143581,7 +143741,7 @@ extension NSScriptKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_vbc8p4( + final $ret = _objc_msgSend_1n14wj8( _$$ref.pointer, _sel_valueAtIndex_inPropertyWithKey_, index$1, @@ -143605,7 +143765,7 @@ extension NSScriptKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_valueWithName_inPropertyWithKey_, _$$ref$1.pointer, @@ -143629,7 +143789,7 @@ extension NSScriptKeyValueCoding on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_valueWithUniqueID_inPropertyWithKey_, _$$ref$1.pointer, @@ -143671,7 +143831,7 @@ extension NSScriptObjectSpecifiers on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_indicesOfObjectsByEvaluatingObjectSpecifier_, _$$ref$1.pointer, @@ -143689,7 +143849,7 @@ extension NSScriptObjectSpecifiers on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_objectSpecifier); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_objectSpecifier); return $ret.address == 0 ? null : NSScriptObjectSpecifier.fromPointer( @@ -143717,7 +143877,7 @@ extension NSScripting on objc.NSObject { iOS: (true, null), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _$$ref.pointer, _sel_copyScriptingValue_forKey_withProperties_, _$$ref$1.pointer, @@ -143746,7 +143906,7 @@ extension NSScripting on objc.NSObject { iOS: (true, null), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_s92gih( + final $ret = _objc_msgSend_1nxh0dy( _$$ref.pointer, _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_, _$$ref$1.pointer, @@ -143767,10 +143927,7 @@ extension NSScripting on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_scriptingProperties, - ); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_scriptingProperties); return $ret.address == 0 ? null : objc.NSDictionary.fromPointer($ret, retain: true, release: true); @@ -143787,7 +143944,7 @@ extension NSScripting on objc.NSObject { iOS: (true, null), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_scriptingValueForSpecifier_, _$$ref$1.pointer, @@ -143806,7 +143963,7 @@ extension NSScripting on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setScriptingProperties_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -143825,7 +143982,7 @@ extension NSScriptingComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_scriptingBeginsWith_, _$$ref$1.pointer, @@ -143841,7 +143998,7 @@ extension NSScriptingComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_scriptingContains_, _$$ref$1.pointer, @@ -143857,7 +144014,7 @@ extension NSScriptingComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_scriptingEndsWith_, _$$ref$1.pointer, @@ -143873,7 +144030,7 @@ extension NSScriptingComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_scriptingIsEqualTo_, _$$ref$1.pointer, @@ -143889,7 +144046,7 @@ extension NSScriptingComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_scriptingIsGreaterThan_, _$$ref$1.pointer, @@ -143905,7 +144062,7 @@ extension NSScriptingComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_scriptingIsGreaterThanOrEqualTo_, _$$ref$1.pointer, @@ -143921,7 +144078,7 @@ extension NSScriptingComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_scriptingIsLessThan_, _$$ref$1.pointer, @@ -143937,7 +144094,7 @@ extension NSScriptingComparisonMethods on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_scriptingIsLessThanOrEqualTo_, _$$ref$1.pointer, @@ -144026,7 +144183,7 @@ extension NSServerTrust on NSURLCredential { iOS: (false, (3, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1s3ecd1( + final $ret = _objc_msgSend_162ofpt( _class_NSURLCredential, _sel_credentialForTrust_, trust, @@ -144045,7 +144202,7 @@ extension NSServerTrustValidationSpace on NSURLProtectionSpace { iOS: (false, (3, 0, 0)), macOS: (false, (10, 6, 0)), ); - return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_serverTrust); + return _objc_msgSend_dcpapu(_$$ref.pointer, _sel_serverTrust); } } @@ -144055,7 +144212,7 @@ extension NSSetCreation on objc.NSSet { objc.NSSet initWithArray(objc.NSArray array) { final _$$ref = object$.ref; final _$$ref$1 = array.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithArray_, _$$ref$1.pointer, @@ -144067,7 +144224,7 @@ extension NSSetCreation on objc.NSSet { objc.NSSet initWithObjects$1(objc.ObjCObject firstObj) { final _$$ref = object$.ref; final _$$ref$1 = firstObj.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithObjects_, _$$ref$1.pointer, @@ -144079,7 +144236,7 @@ extension NSSetCreation on objc.NSSet { objc.NSSet initWithSet(objc.NSSet set) { final _$$ref = object$.ref; final _$$ref$1 = set.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithSet_, _$$ref$1.pointer, @@ -144091,7 +144248,7 @@ extension NSSetCreation on objc.NSSet { objc.NSSet initWithSet$1(objc.NSSet set, {required bool copyItems}) { final _$$ref = object$.ref; final _$$ref$1 = set.ref; - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _$$ref.retainAndReturnPointer(), _sel_initWithSet_copyItems_, _$$ref$1.pointer, @@ -144102,14 +144259,14 @@ extension NSSetCreation on objc.NSSet { /// set static objc.NSSet set() { - final $ret = _objc_msgSend_151sglz(_class_NSSet, _sel_set); + final $ret = _objc_msgSend_zldla2(_class_NSSet, _sel_set); return objc.NSSet.fromPointer($ret, retain: true, release: true); } /// setWithArray: static objc.NSSet setWithArray(objc.NSArray array) { final _$$ref = array.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSSet, _sel_setWithArray_, _$$ref.pointer, @@ -144120,7 +144277,7 @@ extension NSSetCreation on objc.NSSet { /// setWithObject: static objc.NSSet setWithObject(objc.ObjCObject object) { final _$$ref = object.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSSet, _sel_setWithObject_, _$$ref.pointer, @@ -144131,7 +144288,7 @@ extension NSSetCreation on objc.NSSet { /// setWithObjects: static objc.NSSet setWithObjects(objc.ObjCObject firstObj) { final _$$ref = firstObj.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSSet, _sel_setWithObjects_, _$$ref.pointer, @@ -144144,7 +144301,7 @@ extension NSSetCreation on objc.NSSet { ffi.Pointer> objects, { required DartNSUInteger count, }) { - final $ret = _objc_msgSend_zmbtbd( + final $ret = _objc_msgSend_1u4qka1( _class_NSSet, _sel_setWithObjects_count_, objects, @@ -144156,7 +144313,7 @@ extension NSSetCreation on objc.NSSet { /// setWithSet: static objc.NSSet setWithSet(objc.NSSet set) { final _$$ref = set.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSSet, _sel_setWithSet_, _$$ref.pointer, @@ -144175,7 +144332,7 @@ extension NSSharedKeySetDictionary on objc.NSDictionary { iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSDictionary, _sel_sharedKeySetForKeys_, _$$ref.pointer, @@ -144196,7 +144353,7 @@ extension NSSharedKeySetDictionary$1 on objc.NSMutableDictionary { iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSMutableDictionary, _sel_dictionaryWithSharedKeySet_, _$$ref.pointer, @@ -144233,7 +144390,7 @@ extension NSSocketStreamCreationExtensions on objc.NSStream { iOS: (true, null), macOS: (false, (10, 3, 0)), ); - _objc_msgSend_1jknn71( + _objc_msgSend_17kjafg( _class_NSStream, _sel_getStreamsToHost_port_inputStream_outputStream_, _$$ref.pointer, @@ -144257,7 +144414,7 @@ extension NSSocketStreamCreationExtensions on objc.NSStream { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_1jknn71( + _objc_msgSend_17kjafg( _class_NSStream, _sel_getStreamsToHostWithName_port_inputStream_outputStream_, _$$ref.pointer, @@ -144277,7 +144434,7 @@ extension NSSortDescriptorSorting on objc.NSArray { objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { final _$$ref = object$.ref; final _$$ref$1 = sortDescriptors.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_sortedArrayUsingDescriptors_, _$$ref$1.pointer, @@ -144297,7 +144454,7 @@ extension NSSortDescriptorSorting$1 on objc.NSSet { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_sortedArrayUsingDescriptors_, _$$ref$1.pointer, @@ -144312,7 +144469,7 @@ extension NSSortDescriptorSorting$2 on objc.NSMutableArray { void sortUsingDescriptors(objc.NSArray sortDescriptors) { final _$$ref = object$.ref; final _$$ref$1 = sortDescriptors.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_sortUsingDescriptors_, _$$ref$1.pointer, @@ -144352,7 +144509,7 @@ extension type NSSpellServerDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSSpellServerDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSSpellServerDelegate, @@ -144388,7 +144545,7 @@ extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { } final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1r9lliaStret( + ? _objc_msgSend_1df3gurStret( $ptr, _$$ref.pointer, _sel_spellServer_checkGrammarInString_language_details_, @@ -144397,7 +144554,7 @@ extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { _$$ref$3?.pointer ?? ffi.nullptr, details, ) - : $ptr.ref = _objc_msgSend_1r9llia( + : $ptr.ref = _objc_msgSend_1df3gur( _$$ref.pointer, _sel_spellServer_checkGrammarInString_language_details_, _$$ref$1.pointer, @@ -144441,7 +144598,7 @@ extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { 'spellServer:checkString:offset:types:options:orthography:wordCount:', ); } - final $ret = _objc_msgSend_z7lrh9( + final $ret = _objc_msgSend_17azp2d( _$$ref.pointer, _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, _$$ref$1.pointer, @@ -144476,7 +144633,7 @@ extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { 'spellServer:didForgetWord:inLanguage:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_spellServer_didForgetWord_inLanguage_, _$$ref$1.pointer, @@ -144504,7 +144661,7 @@ extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { 'spellServer:didLearnWord:inLanguage:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_spellServer_didLearnWord_inLanguage_, _$$ref$1.pointer, @@ -144536,7 +144693,7 @@ extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { } final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1orxdfjStret( + ? _objc_msgSend_1ci2ia6Stret( $ptr, _$$ref.pointer, _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, @@ -144546,7 +144703,7 @@ extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { wordCount, countOnly, ) - : $ptr.ref = _objc_msgSend_1orxdfj( + : $ptr.ref = _objc_msgSend_1ci2ia6( _$$ref.pointer, _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, _$$ref$1.pointer, @@ -144589,7 +144746,7 @@ extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { 'spellServer:recordResponse:toCorrection:forWord:language:', ); } - _objc_msgSend_y1woti( + _objc_msgSend_1dsj9wx( _$$ref.pointer, _sel_spellServer_recordResponse_toCorrection_forWord_language_, _$$ref$1.pointer, @@ -144620,7 +144777,7 @@ extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { 'spellServer:suggestCompletionsForPartialWordRange:inString:language:', ); } - final $ret = _objc_msgSend_13fklwp( + final $ret = _objc_msgSend_fr9ada( _$$ref.pointer, _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, _$$ref$1.pointer, @@ -144652,7 +144809,7 @@ extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { 'spellServer:suggestGuessesForWord:inLanguage:', ); } - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _$$ref.pointer, _sel_spellServer_suggestGuessesForWord_inLanguage_, _$$ref$1.pointer, @@ -145255,7 +145412,7 @@ interface class NSSpellServerDelegate$Builder { ffi.Pointer>, ) > - >(_1uu024u_protocolTrampoline_xsqx6i) + >(_1uu024u_protocolTrampoline_lggt7i) .cast(), objc.getProtocolMethodSignature( _protocol_NSSpellServerDelegate, @@ -145312,7 +145469,7 @@ interface class NSSpellServerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1chy5b9) + >(_1uu024u_protocolTrampoline_1r9jyb8) .cast(), objc.getProtocolMethodSignature( _protocol_NSSpellServerDelegate, @@ -145363,7 +145520,7 @@ interface class NSSpellServerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSSpellServerDelegate, @@ -145417,7 +145574,7 @@ interface class NSSpellServerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSSpellServerDelegate, @@ -145479,7 +145636,7 @@ interface class NSSpellServerDelegate$Builder { ffi.Bool, ) > - >(_1uu024u_protocolTrampoline_1j6oadz) + >(_1uu024u_protocolTrampoline_uebh3t) .cast(), objc.getProtocolMethodSignature( _protocol_NSSpellServerDelegate, @@ -145534,7 +145691,7 @@ interface class NSSpellServerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1cn988u) + >(_1uu024u_protocolTrampoline_9dub82) .cast(), objc.getProtocolMethodSignature( _protocol_NSSpellServerDelegate, @@ -145627,7 +145784,7 @@ interface class NSSpellServerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_19u921t) + >(_1uu024u_protocolTrampoline_6qnldf) .cast(), objc.getProtocolMethodSignature( _protocol_NSSpellServerDelegate, @@ -145672,7 +145829,7 @@ interface class NSSpellServerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1yw2rcr) + >(_1uu024u_protocolTrampoline_ekc08i) .cast(), objc.getProtocolMethodSignature( _protocol_NSSpellServerDelegate, @@ -145708,7 +145865,7 @@ extension NSStreamBoundPairCreationExtensions on objc.NSStream { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_1i17va2( + _objc_msgSend_16fdf3f( _class_NSStream, _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_, bufferSize, @@ -145740,7 +145897,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_cString); + return _objc_msgSend_59rf64(_$$ref.pointer, _sel_cString); } /// cStringLength @@ -145752,7 +145909,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_cStringLength); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_cStringLength); } /// getCString: @@ -145764,7 +145921,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_getCString_, bytes); + _objc_msgSend_n42fjv(_$$ref.pointer, _sel_getCString_, bytes); } /// getCString:maxLength: @@ -145779,7 +145936,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1h3mito( + _objc_msgSend_wcvpes( _$$ref.pointer, _sel_getCString_maxLength_, bytes, @@ -145801,7 +145958,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_3gpdva( + _objc_msgSend_ocdydk( _$$ref.pointer, _sel_getCString_maxLength_range_remainingRange_, bytes, @@ -145814,7 +145971,7 @@ extension NSStringDeprecated on objc.NSString { /// getCharacters: void getCharacters(ffi.Pointer buffer) { final _$$ref = object$.ref; - _objc_msgSend_g3kdhc(_$$ref.pointer, _sel_getCharacters_, buffer); + _objc_msgSend_176lrd(_$$ref.pointer, _sel_getCharacters_, buffer); } /// initWithCString: @@ -145826,7 +145983,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_56zxyn( + final $ret = _objc_msgSend_xjlvtx( _$$ref.retainAndReturnPointer(), _sel_initWithCString_, bytes, @@ -145848,7 +146005,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_erqryg( + final $ret = _objc_msgSend_by5tf2( _$$ref.retainAndReturnPointer(), _sel_initWithCString_length_, bytes, @@ -145872,7 +146029,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1ojrli4( + final $ret = _objc_msgSend_1ngjh10( _$$ref.retainAndReturnPointer(), _sel_initWithCStringNoCopy_length_freeWhenDone_, bytes, @@ -145894,7 +146051,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfFile_, _$$ref$1.pointer, @@ -145914,7 +146071,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithContentsOfURL_, _$$ref$1.pointer, @@ -145933,7 +146090,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_lossyCString); + return _objc_msgSend_59rf64(_$$ref.pointer, _sel_lossyCString); } /// writeToFile:atomically: @@ -145946,7 +146103,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1iyq28l( + return _objc_msgSend_lbnlyo( _$$ref.pointer, _sel_writeToFile_atomically_, _$$ref$1.pointer, @@ -145964,7 +146121,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1iyq28l( + return _objc_msgSend_lbnlyo( _$$ref.pointer, _sel_writeToURL_atomically_, _$$ref$1.pointer, @@ -145980,7 +146137,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_56zxyn( + final $ret = _objc_msgSend_xjlvtx( _class_NSString, _sel_stringWithCString_, bytes, @@ -146001,7 +146158,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_erqryg( + final $ret = _objc_msgSend_by5tf2( _class_NSString, _sel_stringWithCString_length_, bytes, @@ -146021,7 +146178,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSString, _sel_stringWithContentsOfFile_, _$$ref.pointer, @@ -146040,7 +146197,7 @@ extension NSStringDeprecated on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSString, _sel_stringWithContentsOfURL_, _$$ref.pointer, @@ -146069,7 +146226,7 @@ extension NSStringEncodingDetection on objc.NSString { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - return _objc_msgSend_1q2ox4r( + return _objc_msgSend_16szl7k( _class_NSString, _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_, _$$ref.pointer, @@ -146094,7 +146251,7 @@ extension NSStringPathExtensions on objc.NSString { }) { final _$$ref = object$.ref; final _$$ref$1 = filterTypes?.ref; - return _objc_msgSend_8mvqcu( + return _objc_msgSend_1c6ogwh( _$$ref.pointer, _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_, outputName, @@ -146107,7 +146264,7 @@ extension NSStringPathExtensions on objc.NSString { /// fileSystemRepresentation ffi.Pointer get fileSystemRepresentation { final _$$ref = object$.ref; - return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_fileSystemRepresentation); + return _objc_msgSend_59rf64(_$$ref.pointer, _sel_fileSystemRepresentation); } /// getFileSystemRepresentation:maxLength: @@ -146116,7 +146273,7 @@ extension NSStringPathExtensions on objc.NSString { required DartNSUInteger maxLength, }) { final _$$ref = object$.ref; - return _objc_msgSend_8cymbm( + return _objc_msgSend_upjxor( _$$ref.pointer, _sel_getFileSystemRepresentation_maxLength_, cname, @@ -146127,34 +146284,34 @@ extension NSStringPathExtensions on objc.NSString { /// isAbsolutePath bool get isAbsolutePath { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isAbsolutePath); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isAbsolutePath); } /// lastPathComponent objc.NSString get lastPathComponent { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_lastPathComponent); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// pathComponents objc.NSArray get pathComponents { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathComponents); return objc.NSArray.fromPointer($ret, retain: true, release: true); } /// pathExtension objc.NSString get pathExtension { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathExtension); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// stringByAbbreviatingWithTildeInPath objc.NSString get stringByAbbreviatingWithTildeInPath { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_stringByAbbreviatingWithTildeInPath, ); @@ -146165,7 +146322,7 @@ extension NSStringPathExtensions on objc.NSString { objc.NSString stringByAppendingPathComponent(objc.NSString str) { final _$$ref = object$.ref; final _$$ref$1 = str.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_stringByAppendingPathComponent_, _$$ref$1.pointer, @@ -146177,7 +146334,7 @@ extension NSStringPathExtensions on objc.NSString { objc.NSString? stringByAppendingPathExtension(objc.NSString str) { final _$$ref = object$.ref; final _$$ref$1 = str.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_stringByAppendingPathExtension_, _$$ref$1.pointer, @@ -146190,7 +146347,7 @@ extension NSStringPathExtensions on objc.NSString { /// stringByDeletingLastPathComponent objc.NSString get stringByDeletingLastPathComponent { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_stringByDeletingLastPathComponent, ); @@ -146200,7 +146357,7 @@ extension NSStringPathExtensions on objc.NSString { /// stringByDeletingPathExtension objc.NSString get stringByDeletingPathExtension { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_stringByDeletingPathExtension, ); @@ -146210,7 +146367,7 @@ extension NSStringPathExtensions on objc.NSString { /// stringByExpandingTildeInPath objc.NSString get stringByExpandingTildeInPath { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_stringByExpandingTildeInPath, ); @@ -146220,7 +146377,7 @@ extension NSStringPathExtensions on objc.NSString { /// stringByResolvingSymlinksInPath objc.NSString get stringByResolvingSymlinksInPath { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_stringByResolvingSymlinksInPath, ); @@ -146230,7 +146387,7 @@ extension NSStringPathExtensions on objc.NSString { /// stringByStandardizingPath objc.NSString get stringByStandardizingPath { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_stringByStandardizingPath, ); @@ -146241,7 +146398,7 @@ extension NSStringPathExtensions on objc.NSString { objc.NSArray stringsByAppendingPaths(objc.NSArray paths) { final _$$ref = object$.ref; final _$$ref$1 = paths.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_stringsByAppendingPaths_, _$$ref$1.pointer, @@ -146252,7 +146409,7 @@ extension NSStringPathExtensions on objc.NSString { /// pathWithComponents: static objc.NSString pathWithComponents(objc.NSArray components) { final _$$ref = components.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSString, _sel_pathWithComponents_, _$$ref.pointer, @@ -146310,7 +146467,7 @@ extension NSTaskConveniences on NSTask { /// waitUntilExit void waitUntilExit() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_waitUntilExit); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_waitUntilExit); } /// launchedTaskWithExecutableURL:arguments:error:terminationHandler: @@ -146328,7 +146485,7 @@ extension NSTaskConveniences on NSTask { iOS: (true, null), macOS: (false, (10, 13, 0)), ); - final $ret = _objc_msgSend_1f2nccz( + final $ret = _objc_msgSend_1inb5dw( _class_NSTask, _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_, _$$ref.pointer, @@ -146441,7 +146598,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_addressCheckingResultWithRange_components_, range, @@ -146461,7 +146618,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_correctionCheckingResultWithRange_replacementString_, range, @@ -146483,7 +146640,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_1llrn9f( + final $ret = _objc_msgSend_1isvq4t( _class_NSTextCheckingResult, _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_, range, @@ -146504,7 +146661,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_dashCheckingResultWithRange_replacementString_, range, @@ -146524,7 +146681,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_dateCheckingResultWithRange_date_, range, @@ -146547,7 +146704,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_u8u7og( + final $ret = _objc_msgSend_1v91fr2( _class_NSTextCheckingResult, _sel_dateCheckingResultWithRange_date_timeZone_duration_, range, @@ -146569,7 +146726,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_grammarCheckingResultWithRange_details_, range, @@ -146589,7 +146746,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_linkCheckingResultWithRange_URL_, range, @@ -146609,7 +146766,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_orthographyCheckingResultWithRange_orthography_, range, @@ -146629,7 +146786,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_phoneNumberCheckingResultWithRange_phoneNumber_, range, @@ -146649,7 +146806,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_quoteCheckingResultWithRange_replacementString_, range, @@ -146670,7 +146827,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_1fs7dv0( + final $ret = _objc_msgSend_4g65tx( _class_NSTextCheckingResult, _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_, ranges, @@ -146691,7 +146848,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_replacementCheckingResultWithRange_replacementString_, range, @@ -146707,7 +146864,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1k1o1s7( + final $ret = _objc_msgSend_1cd70t7( _class_NSTextCheckingResult, _sel_spellCheckingResultWithRange_, range, @@ -146726,7 +146883,7 @@ extension NSTextCheckingResultCreation on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_bstjp9( + final $ret = _objc_msgSend_1emblnm( _class_NSTextCheckingResult, _sel_transitInformationCheckingResultWithRange_components_, range, @@ -146746,7 +146903,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_URL); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_URL); return $ret.address == 0 ? null : objc.NSURL.fromPointer($ret, retain: true, release: true); @@ -146760,7 +146917,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_addressComponents); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_addressComponents); return $ret.address == 0 ? null : objc.NSDictionary.fromPointer($ret, retain: true, release: true); @@ -146774,7 +146931,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_alternativeStrings); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_alternativeStrings); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -146788,7 +146945,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_components); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_components); return $ret.address == 0 ? null : objc.NSDictionary.fromPointer($ret, retain: true, release: true); @@ -146802,7 +146959,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_date); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_date); return $ret.address == 0 ? null : objc.NSDate.fromPointer($ret, retain: true, release: true); @@ -146817,8 +146974,8 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { macOS: (false, (10, 6, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_duration) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_duration); } /// grammarDetails @@ -146829,7 +146986,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_grammarDetails); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_grammarDetails); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -146843,7 +147000,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfRanges); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_numberOfRanges); } /// orthography @@ -146854,7 +147011,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_orthography); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_orthography); return $ret.address == 0 ? null : NSOrthography.fromPointer($ret, retain: true, release: true); @@ -146868,7 +147025,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_phoneNumber); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_phoneNumber); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -146884,13 +147041,13 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { ); final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_d3i1uyStret( + ? _objc_msgSend_1hwzsr1Stret( $ptr, _$$ref.pointer, _sel_rangeAtIndex_, idx, ) - : $ptr.ref = _objc_msgSend_d3i1uy( + : $ptr.ref = _objc_msgSend_1hwzsr1( _$$ref.pointer, _sel_rangeAtIndex_, idx, @@ -146913,13 +147070,13 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { ); final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret( + ? _objc_msgSend_r1rnpStret( $ptr, _$$ref.pointer, _sel_rangeWithName_, _$$ref$1.pointer, ) - : $ptr.ref = _objc_msgSend_182fzon( + : $ptr.ref = _objc_msgSend_r1rnp( _$$ref.pointer, _sel_rangeWithName_, _$$ref$1.pointer, @@ -146939,7 +147096,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_regularExpression); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_regularExpression); return $ret.address == 0 ? null : NSRegularExpression.fromPointer($ret, retain: true, release: true); @@ -146953,7 +147110,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_replacementString); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_replacementString); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -146967,7 +147124,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_qugqlf( + final $ret = _objc_msgSend_x76ogv( _$$ref.pointer, _sel_resultByAdjustingRangesWithOffset_, offset, @@ -146983,7 +147140,7 @@ extension NSTextCheckingResultOptional on NSTextCheckingResult { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_timeZone); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_timeZone); return $ret.address == 0 ? null : NSTimeZone.fromPointer($ret, retain: true, release: true); @@ -147043,7 +147200,7 @@ extension NSThreadPerformAdditions on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1whyima( + _objc_msgSend_1no426w( _$$ref.pointer, _sel_performSelector_onThread_withObject_waitUntilDone_, aSelector, @@ -147070,7 +147227,7 @@ extension NSThreadPerformAdditions on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1cc1buo( + _objc_msgSend_1n88jx7( _$$ref.pointer, _sel_performSelector_onThread_withObject_waitUntilDone_modes_, aSelector, @@ -147093,7 +147250,7 @@ extension NSThreadPerformAdditions on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1qv0eq4( + _objc_msgSend_1aglthn( _$$ref.pointer, _sel_performSelectorInBackground_withObject_, aSelector, @@ -147114,7 +147271,7 @@ extension NSThreadPerformAdditions on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_tsocn4( + _objc_msgSend_x20rg3( _$$ref.pointer, _sel_performSelectorOnMainThread_withObject_waitUntilDone_, aSelector, @@ -147138,7 +147295,7 @@ extension NSThreadPerformAdditions on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1fdou4m( + _objc_msgSend_1tn8wgq( _$$ref.pointer, _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_, aSelector, @@ -147209,7 +147366,7 @@ extension NSTypedstreamCompatibility on objc.NSCoder { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodeNXObject); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_decodeNXObject); return $ret.address == 0 ? null : objc.ObjCObject($ret, retain: true, release: true); @@ -147225,7 +147382,7 @@ extension NSTypedstreamCompatibility on objc.NSCoder { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_encodeNXObject_, _$$ref$1.pointer, @@ -147281,7 +147438,7 @@ extension type NSURLAuthenticationChallengeSender._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLAuthenticationChallengeSender]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLAuthenticationChallengeSender, @@ -147300,7 +147457,7 @@ extension NSURLAuthenticationChallengeSender$Methods iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_cancelAuthenticationChallenge_, _$$ref$1.pointer, @@ -147318,7 +147475,7 @@ extension NSURLAuthenticationChallengeSender$Methods iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_continueWithoutCredentialForAuthenticationChallenge_, _$$ref$1.pointer, @@ -147345,7 +147502,7 @@ extension NSURLAuthenticationChallengeSender$Methods 'performDefaultHandlingForAuthenticationChallenge:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_performDefaultHandlingForAuthenticationChallenge_, _$$ref$1.pointer, @@ -147372,7 +147529,7 @@ extension NSURLAuthenticationChallengeSender$Methods 'rejectProtectionSpaceAndContinueWithChallenge:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_rejectProtectionSpaceAndContinueWithChallenge_, _$$ref$1.pointer, @@ -147392,7 +147549,7 @@ extension NSURLAuthenticationChallengeSender$Methods iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_useCredential_forAuthenticationChallenge_, _$$ref$1.pointer, @@ -147708,7 +147865,7 @@ interface class NSURLAuthenticationChallengeSender$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLAuthenticationChallengeSender, @@ -147748,7 +147905,7 @@ interface class NSURLAuthenticationChallengeSender$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLAuthenticationChallengeSender, @@ -147788,7 +147945,7 @@ interface class NSURLAuthenticationChallengeSender$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLAuthenticationChallengeSender, @@ -147828,7 +147985,7 @@ interface class NSURLAuthenticationChallengeSender$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLAuthenticationChallengeSender, @@ -147869,7 +148026,7 @@ interface class NSURLAuthenticationChallengeSender$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLAuthenticationChallengeSender, @@ -147969,7 +148126,7 @@ extension NSURLClient on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URL_resourceDataDidBecomeAvailable_, _$$ref$1.pointer, @@ -147991,7 +148148,7 @@ extension NSURLClient on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URL_resourceDidFailLoadingWithReason_, _$$ref$1.pointer, @@ -148009,7 +148166,7 @@ extension NSURLClient on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLResourceDidCancelLoading_, _$$ref$1.pointer, @@ -148026,7 +148183,7 @@ extension NSURLClient on objc.NSObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLResourceDidFinishLoading_, _$$ref$1.pointer, @@ -148078,7 +148235,7 @@ extension type NSURLConnectionDataDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLConnectionDataDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLConnectionDataDelegate, @@ -148112,7 +148269,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:canAuthenticateAgainstProtectionSpace:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_connection_canAuthenticateAgainstProtectionSpace_, _$$ref$1.pointer, @@ -148145,7 +148302,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:didCancelAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didCancelAuthenticationChallenge_, _$$ref$1.pointer, @@ -148175,7 +148332,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:didFailWithError:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didFailWithError_, _$$ref$1.pointer, @@ -148208,7 +148365,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:didReceiveAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didReceiveAuthenticationChallenge_, _$$ref$1.pointer, @@ -148238,7 +148395,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:didReceiveData:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didReceiveData_, _$$ref$1.pointer, @@ -148268,7 +148425,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:didReceiveResponse:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didReceiveResponse_, _$$ref$1.pointer, @@ -148299,7 +148456,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:', ); } - _objc_msgSend_ifge4x( + _objc_msgSend_n75nqq( _$$ref.pointer, _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, _$$ref$1.pointer, @@ -148331,7 +148488,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:needNewBodyStream:', ); } - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_connection_needNewBodyStream_, _$$ref$1.pointer, @@ -148364,7 +148521,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:willCacheResponse:', ); } - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_connection_willCacheResponse_, _$$ref$1.pointer, @@ -148399,7 +148556,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:willSendRequest:redirectResponse:', ); } - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _$$ref.pointer, _sel_connection_willSendRequest_redirectResponse_, _$$ref$1.pointer, @@ -148434,7 +148591,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connection:willSendRequestForAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_willSendRequestForAuthenticationChallenge_, _$$ref$1.pointer, @@ -148460,7 +148617,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connectionDidFinishLoading:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_connectionDidFinishLoading_, _$$ref$1.pointer, @@ -148485,7 +148642,7 @@ extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { 'connectionShouldUseCredentialStorage:', ); } - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_connectionShouldUseCredentialStorage_, _$$ref$1.pointer, @@ -149022,7 +149179,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149056,7 +149213,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149106,7 +149263,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149156,7 +149313,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149206,7 +149363,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149256,7 +149413,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149313,7 +149470,7 @@ interface class NSURLConnectionDataDelegate$Builder { NSInteger, ) > - >(_1uu024u_protocolTrampoline_15e9dqx) + >(_1uu024u_protocolTrampoline_14pv86t) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149393,7 +149550,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_zi5eed) + >(_1uu024u_protocolTrampoline_osi9m3) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149427,7 +149584,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_zi5eed) + >(_1uu024u_protocolTrampoline_osi9m3) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149465,7 +149622,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1yw2rcr) + >(_1uu024u_protocolTrampoline_ekc08i) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149503,7 +149660,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149550,7 +149707,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149585,7 +149742,7 @@ interface class NSURLConnectionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_3su7tt) + >(_1uu024u_protocolTrampoline_123exxr) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDataDelegate, @@ -149615,7 +149772,7 @@ extension type NSURLConnectionDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLConnectionDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLConnectionDelegate, @@ -149649,7 +149806,7 @@ extension NSURLConnectionDelegate$Methods on NSURLConnectionDelegate { 'connection:canAuthenticateAgainstProtectionSpace:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_connection_canAuthenticateAgainstProtectionSpace_, _$$ref$1.pointer, @@ -149682,7 +149839,7 @@ extension NSURLConnectionDelegate$Methods on NSURLConnectionDelegate { 'connection:didCancelAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didCancelAuthenticationChallenge_, _$$ref$1.pointer, @@ -149712,7 +149869,7 @@ extension NSURLConnectionDelegate$Methods on NSURLConnectionDelegate { 'connection:didFailWithError:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didFailWithError_, _$$ref$1.pointer, @@ -149745,7 +149902,7 @@ extension NSURLConnectionDelegate$Methods on NSURLConnectionDelegate { 'connection:didReceiveAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didReceiveAuthenticationChallenge_, _$$ref$1.pointer, @@ -149776,7 +149933,7 @@ extension NSURLConnectionDelegate$Methods on NSURLConnectionDelegate { 'connection:willSendRequestForAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_willSendRequestForAuthenticationChallenge_, _$$ref$1.pointer, @@ -149802,7 +149959,7 @@ extension NSURLConnectionDelegate$Methods on NSURLConnectionDelegate { 'connectionShouldUseCredentialStorage:', ); } - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_connectionShouldUseCredentialStorage_, _$$ref$1.pointer, @@ -150115,7 +150272,7 @@ interface class NSURLConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDelegate, @@ -150149,7 +150306,7 @@ interface class NSURLConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDelegate, @@ -150199,7 +150356,7 @@ interface class NSURLConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDelegate, @@ -150249,7 +150406,7 @@ interface class NSURLConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDelegate, @@ -150299,7 +150456,7 @@ interface class NSURLConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDelegate, @@ -150346,7 +150503,7 @@ interface class NSURLConnectionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_3su7tt) + >(_1uu024u_protocolTrampoline_123exxr) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDelegate, @@ -150376,7 +150533,7 @@ extension type NSURLConnectionDownloadDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLConnectionDownloadDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLConnectionDownloadDelegate, @@ -150411,7 +150568,7 @@ extension NSURLConnectionDownloadDelegate$Methods 'connection:canAuthenticateAgainstProtectionSpace:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_connection_canAuthenticateAgainstProtectionSpace_, _$$ref$1.pointer, @@ -150444,7 +150601,7 @@ extension NSURLConnectionDownloadDelegate$Methods 'connection:didCancelAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didCancelAuthenticationChallenge_, _$$ref$1.pointer, @@ -150474,7 +150631,7 @@ extension NSURLConnectionDownloadDelegate$Methods 'connection:didFailWithError:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didFailWithError_, _$$ref$1.pointer, @@ -150507,7 +150664,7 @@ extension NSURLConnectionDownloadDelegate$Methods 'connection:didReceiveAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_didReceiveAuthenticationChallenge_, _$$ref$1.pointer, @@ -150538,7 +150695,7 @@ extension NSURLConnectionDownloadDelegate$Methods 'connection:didWriteData:totalBytesWritten:expectedTotalBytes:', ); } - _objc_msgSend_3ow0v1( + _objc_msgSend_1k1r7vy( _$$ref.pointer, _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, _$$ref$1.pointer, @@ -150571,7 +150728,7 @@ extension NSURLConnectionDownloadDelegate$Methods 'connection:willSendRequestForAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connection_willSendRequestForAuthenticationChallenge_, _$$ref$1.pointer, @@ -150592,7 +150749,7 @@ extension NSURLConnectionDownloadDelegate$Methods iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_connectionDidFinishDownloading_destinationURL_, _$$ref$1.pointer, @@ -150622,7 +150779,7 @@ extension NSURLConnectionDownloadDelegate$Methods 'connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:', ); } - _objc_msgSend_6cylk3( + _objc_msgSend_18h34ir( _$$ref.pointer, _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, _$$ref$1.pointer, @@ -150649,7 +150806,7 @@ extension NSURLConnectionDownloadDelegate$Methods 'connectionShouldUseCredentialStorage:', ); } - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_connectionShouldUseCredentialStorage_, _$$ref$1.pointer, @@ -151109,7 +151266,7 @@ interface class NSURLConnectionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDownloadDelegate, @@ -151143,7 +151300,7 @@ interface class NSURLConnectionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDownloadDelegate, @@ -151193,7 +151350,7 @@ interface class NSURLConnectionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDownloadDelegate, @@ -151243,7 +151400,7 @@ interface class NSURLConnectionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDownloadDelegate, @@ -151295,7 +151452,7 @@ interface class NSURLConnectionDownloadDelegate$Builder { ffi.LongLong, ) > - >(_1uu024u_protocolTrampoline_1qf1qkl) + >(_1uu024u_protocolTrampoline_1fswoub) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDownloadDelegate, @@ -151351,7 +151508,7 @@ interface class NSURLConnectionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDownloadDelegate, @@ -151401,7 +151558,7 @@ interface class NSURLConnectionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDownloadDelegate, @@ -151452,7 +151609,7 @@ interface class NSURLConnectionDownloadDelegate$Builder { ffi.LongLong, ) > - >(_1uu024u_protocolTrampoline_9crvvv) + >(_1uu024u_protocolTrampoline_1b0c39y) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDownloadDelegate, @@ -151502,7 +151659,7 @@ interface class NSURLConnectionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_3su7tt) + >(_1uu024u_protocolTrampoline_123exxr) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLConnectionDownloadDelegate, @@ -151539,7 +151696,7 @@ extension NSURLConnectionQueuedLoading on NSURLConnection { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _class_NSURLConnection, _sel_sendAsynchronousRequest_queue_completionHandler_, _$$ref.pointer, @@ -151567,7 +151724,7 @@ extension NSURLConnectionSynchronousLoading on NSURLConnection { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_b99g2z( + final $ret = _objc_msgSend_1vaqdcd( _class_NSURLConnection, _sel_sendSynchronousRequest_returningResponse_error_, _$$ref.pointer, @@ -151710,7 +151867,7 @@ extension type NSURLDownloadDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLDownloadDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLDownloadDelegate, @@ -151741,7 +151898,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:canAuthenticateAgainstProtectionSpace:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_download_canAuthenticateAgainstProtectionSpace_, _$$ref$1.pointer, @@ -151771,7 +151928,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:decideDestinationWithSuggestedFilename:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_download_decideDestinationWithSuggestedFilename_, _$$ref$1.pointer, @@ -151801,7 +151958,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:didCancelAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_download_didCancelAuthenticationChallenge_, _$$ref$1.pointer, @@ -151831,7 +151988,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:didCreateDestination:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_download_didCreateDestination_, _$$ref$1.pointer, @@ -151861,7 +152018,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:didFailWithError:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_download_didFailWithError_, _$$ref$1.pointer, @@ -151891,7 +152048,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:didReceiveAuthenticationChallenge:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_download_didReceiveAuthenticationChallenge_, _$$ref$1.pointer, @@ -151920,7 +152077,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:didReceiveDataOfLength:', ); } - _objc_msgSend_djsa9o( + _objc_msgSend_ralblg( _$$ref.pointer, _sel_download_didReceiveDataOfLength_, _$$ref$1.pointer, @@ -151950,7 +152107,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:didReceiveResponse:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_download_didReceiveResponse_, _$$ref$1.pointer, @@ -151980,7 +152137,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:shouldDecodeSourceDataOfMIMEType:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_download_shouldDecodeSourceDataOfMIMEType_, _$$ref$1.pointer, @@ -152011,7 +152168,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:willResumeWithResponse:fromByte:', ); } - _objc_msgSend_wp1dbz( + _objc_msgSend_1x8puhr( _$$ref.pointer, _sel_download_willResumeWithResponse_fromByte_, _$$ref$1.pointer, @@ -152044,7 +152201,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'download:willSendRequest:redirectResponse:', ); } - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _$$ref.pointer, _sel_download_willSendRequest_redirectResponse_, _$$ref$1.pointer, @@ -152071,7 +152228,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'downloadDidBegin:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_downloadDidBegin_, _$$ref$1.pointer, @@ -152093,7 +152250,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'downloadDidFinish:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_downloadDidFinish_, _$$ref$1.pointer, @@ -152118,7 +152275,7 @@ extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { 'downloadShouldUseCredentialStorage:', ); } - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_downloadShouldUseCredentialStorage_, _$$ref$1.pointer, @@ -152647,7 +152804,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -152681,7 +152838,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -152731,7 +152888,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -152781,7 +152938,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -152831,7 +152988,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -152881,7 +153038,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -152931,7 +153088,7 @@ interface class NSURLDownloadDelegate$Builder { NSUInteger, ) > - >(_1uu024u_protocolTrampoline_wy9lus) + >(_1uu024u_protocolTrampoline_1kovpyp) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -152981,7 +153138,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -153029,7 +153186,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -153064,7 +153221,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.LongLong, ) > - >(_1uu024u_protocolTrampoline_34xzuf) + >(_1uu024u_protocolTrampoline_1axgza4) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -153118,7 +153275,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1yw2rcr) + >(_1uu024u_protocolTrampoline_ekc08i) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -153153,7 +153310,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -153188,7 +153345,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -153223,7 +153380,7 @@ interface class NSURLDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_3su7tt) + >(_1uu024u_protocolTrampoline_123exxr) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLDownloadDelegate, @@ -153382,7 +153539,7 @@ extension type NSURLHandleClient._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLHandleClient]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLHandleClient, @@ -153405,7 +153562,7 @@ extension NSURLHandleClient$Methods on NSURLHandleClient { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLHandle_resourceDataDidBecomeAvailable_, _$$ref$1.pointer, @@ -153427,7 +153584,7 @@ extension NSURLHandleClient$Methods on NSURLHandleClient { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLHandle_resourceDidFailLoadingWithReason_, _$$ref$1.pointer, @@ -153445,7 +153602,7 @@ extension NSURLHandleClient$Methods on NSURLHandleClient { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLHandleResourceDidBeginLoading_, _$$ref$1.pointer, @@ -153462,7 +153619,7 @@ extension NSURLHandleClient$Methods on NSURLHandleClient { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLHandleResourceDidCancelLoading_, _$$ref$1.pointer, @@ -153479,7 +153636,7 @@ extension NSURLHandleClient$Methods on NSURLHandleClient { iOS: (true, null), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLHandleResourceDidFinishLoading_, _$$ref$1.pointer, @@ -153776,7 +153933,7 @@ interface class NSURLHandleClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLHandleClient, @@ -153826,7 +153983,7 @@ interface class NSURLHandleClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLHandleClient, @@ -153873,7 +154030,7 @@ interface class NSURLHandleClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLHandleClient, @@ -153908,7 +154065,7 @@ interface class NSURLHandleClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLHandleClient, @@ -153943,7 +154100,7 @@ interface class NSURLHandleClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLHandleClient, @@ -153977,7 +154134,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1t6aok9( + final $ret = _objc_msgSend_1zbf08( _$$ref.pointer, _sel_URLHandleUsingCache_, shouldUseCache, @@ -154000,7 +154157,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_6p7ndb( + _objc_msgSend_3lg6qb( _$$ref.pointer, _sel_loadResourceDataNotifyingClient_usingCache_, _$$ref$1.pointer, @@ -154018,7 +154175,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_propertyForKey_, _$$ref$1.pointer, @@ -154037,7 +154194,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1t6aok9( + final $ret = _objc_msgSend_1zbf08( _$$ref.pointer, _sel_resourceDataUsingCache_, shouldUseCache, @@ -154058,7 +154215,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_setProperty_forKey_, _$$ref$1.pointer, @@ -154076,7 +154233,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_setResourceData_, _$$ref$1.pointer, @@ -154095,7 +154252,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_URLByAppendingPathComponent_, _$$ref$1.pointer, @@ -154117,7 +154274,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _$$ref.pointer, _sel_URLByAppendingPathComponent_isDirectory_, _$$ref$1.pointer, @@ -154137,7 +154294,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_URLByAppendingPathExtension_, _$$ref$1.pointer, @@ -154155,7 +154312,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_URLByDeletingLastPathComponent, ); @@ -154172,7 +154329,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_URLByDeletingPathExtension, ); @@ -154189,7 +154346,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_URLByResolvingSymlinksInPath, ); @@ -154206,7 +154363,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_URLByStandardizingPath, ); @@ -154225,7 +154382,7 @@ extension NSURLPathUtilities on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1dom33q( + final $ret = _objc_msgSend_1tjz0jr( _$$ref.pointer, _sel_checkResourceIsReachableAndReturnError_, $err, @@ -154245,7 +154402,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_lastPathComponent); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -154259,7 +154416,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathComponents); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -154273,7 +154430,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathExtension); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -154287,7 +154444,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSURL, _sel_fileURLWithPathComponents_, _$$ref.pointer, @@ -154375,7 +154532,7 @@ extension type NSURLProtocolClient._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLProtocolClient]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLProtocolClient, @@ -154397,7 +154554,7 @@ extension NSURLProtocolClient$Methods on NSURLProtocolClient { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLProtocol_cachedResponseIsValid_, _$$ref$1.pointer, @@ -154418,7 +154575,7 @@ extension NSURLProtocolClient$Methods on NSURLProtocolClient { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLProtocol_didCancelAuthenticationChallenge_, _$$ref$1.pointer, @@ -154439,7 +154596,7 @@ extension NSURLProtocolClient$Methods on NSURLProtocolClient { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLProtocol_didFailWithError_, _$$ref$1.pointer, @@ -154460,7 +154617,7 @@ extension NSURLProtocolClient$Methods on NSURLProtocolClient { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLProtocol_didLoadData_, _$$ref$1.pointer, @@ -154481,7 +154638,7 @@ extension NSURLProtocolClient$Methods on NSURLProtocolClient { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLProtocol_didReceiveAuthenticationChallenge_, _$$ref$1.pointer, @@ -154503,7 +154660,7 @@ extension NSURLProtocolClient$Methods on NSURLProtocolClient { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_1mik4ys( + _objc_msgSend_1gmrb5m( _$$ref.pointer, _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, _$$ref$1.pointer, @@ -154527,7 +154684,7 @@ extension NSURLProtocolClient$Methods on NSURLProtocolClient { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, _$$ref$1.pointer, @@ -154545,7 +154702,7 @@ extension NSURLProtocolClient$Methods on NSURLProtocolClient { iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLProtocolDidFinishLoading_, _$$ref$1.pointer, @@ -154992,7 +155149,7 @@ interface class NSURLProtocolClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLProtocolClient, @@ -155042,7 +155199,7 @@ interface class NSURLProtocolClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLProtocolClient, @@ -155092,7 +155249,7 @@ interface class NSURLProtocolClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLProtocolClient, @@ -155142,7 +155299,7 @@ interface class NSURLProtocolClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLProtocolClient, @@ -155183,7 +155340,7 @@ interface class NSURLProtocolClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLProtocolClient, @@ -155234,7 +155391,7 @@ interface class NSURLProtocolClient$Builder { NSUInteger, ) > - >(_1uu024u_protocolTrampoline_1j7coyk) + >(_1uu024u_protocolTrampoline_1mrpyvj) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLProtocolClient, @@ -155297,7 +155454,7 @@ interface class NSURLProtocolClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLProtocolClient, @@ -155347,7 +155504,7 @@ interface class NSURLProtocolClient$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLProtocolClient, @@ -155583,7 +155740,7 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_r0bo0s( + final $ret = _objc_msgSend_8ut1ht( _$$ref.pointer, _sel_dataTaskWithRequest_completionHandler_, _$$ref$1.pointer, @@ -155608,7 +155765,7 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_r0bo0s( + final $ret = _objc_msgSend_8ut1ht( _$$ref.pointer, _sel_dataTaskWithURL_completionHandler_, _$$ref$1.pointer, @@ -155633,7 +155790,7 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_r0bo0s( + final $ret = _objc_msgSend_8ut1ht( _$$ref.pointer, _sel_downloadTaskWithRequest_completionHandler_, _$$ref$1.pointer, @@ -155662,7 +155819,7 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_r0bo0s( + final $ret = _objc_msgSend_8ut1ht( _$$ref.pointer, _sel_downloadTaskWithResumeData_completionHandler_, _$$ref$1.pointer, @@ -155691,7 +155848,7 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_r0bo0s( + final $ret = _objc_msgSend_8ut1ht( _$$ref.pointer, _sel_downloadTaskWithURL_completionHandler_, _$$ref$1.pointer, @@ -155722,7 +155879,7 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_2wiv66( + final $ret = _objc_msgSend_ftq404( _$$ref.pointer, _sel_uploadTaskWithRequest_fromData_completionHandler_, _$$ref$1.pointer, @@ -155754,7 +155911,7 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_2wiv66( + final $ret = _objc_msgSend_ftq404( _$$ref.pointer, _sel_uploadTaskWithRequest_fromFile_completionHandler_, _$$ref$1.pointer, @@ -155784,7 +155941,7 @@ extension NSURLSessionAsynchronousConvenience on NSURLSession { iOS: (false, (17, 0, 0)), macOS: (false, (14, 0, 0)), ); - final $ret = _objc_msgSend_r0bo0s( + final $ret = _objc_msgSend_8ut1ht( _$$ref.pointer, _sel_uploadTaskWithResumeData_completionHandler_, _$$ref$1.pointer, @@ -155863,7 +156020,7 @@ extension type NSURLSessionDataDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLSessionDataDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLSessionDataDelegate, @@ -155896,7 +156053,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:dataTask:didBecomeDownloadTask:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_dataTask_didBecomeDownloadTask_, _$$ref$1.pointer, @@ -155929,7 +156086,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:dataTask:didBecomeStreamTask:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_dataTask_didBecomeStreamTask_, _$$ref$1.pointer, @@ -155962,7 +156119,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:dataTask:didReceiveData:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_dataTask_didReceiveData_, _$$ref$1.pointer, @@ -155997,7 +156154,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:dataTask:didReceiveResponse:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, _$$ref$1.pointer, @@ -156034,7 +156191,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:dataTask:willCacheResponse:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_dataTask_willCacheResponse_completionHandler_, _$$ref$1.pointer, @@ -156066,7 +156223,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:didBecomeInvalidWithError:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didBecomeInvalidWithError_, _$$ref$1.pointer, @@ -156096,7 +156253,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:didCreateTask:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didCreateTask_, _$$ref$1.pointer, @@ -156129,7 +156286,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -156162,7 +156319,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:task:didCompleteWithError:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didCompleteWithError_, _$$ref$1.pointer, @@ -156195,7 +156352,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:task:didFinishCollectingMetrics:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didFinishCollectingMetrics_, _$$ref$1.pointer, @@ -156231,7 +156388,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:task:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_task_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -156265,7 +156422,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:task:didReceiveInformationalResponse:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didReceiveInformationalResponse_, _$$ref$1.pointer, @@ -156299,7 +156456,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', ); } - _objc_msgSend_1modw1b( + _objc_msgSend_1e5znsh( _$$ref.pointer, _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, _$$ref$1.pointer, @@ -156335,7 +156492,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:task:needNewBodyStream:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_task_needNewBodyStream_, _$$ref$1.pointer, @@ -156370,7 +156527,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', ); } - _objc_msgSend_9cddqw( + _objc_msgSend_1df5a5f( _$$ref.pointer, _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, _$$ref$1.pointer, @@ -156407,7 +156564,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:task:willBeginDelayedRequest:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, _$$ref$1.pointer, @@ -156445,7 +156602,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', ); } - _objc_msgSend_e1wgee( + _objc_msgSend_ng7j0k( _$$ref.pointer, _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, _$$ref$1.pointer, @@ -156478,7 +156635,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSession:taskIsWaitingForConnectivity:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_taskIsWaitingForConnectivity_, _$$ref$1.pointer, @@ -156504,7 +156661,7 @@ extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { 'URLSessionDidFinishEventsForBackgroundURLSession:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLSessionDidFinishEventsForBackgroundURLSession_, _$$ref$1.pointer, @@ -157650,7 +157807,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -157729,7 +157886,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -157804,7 +157961,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -157864,7 +158021,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -157951,7 +158108,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158031,7 +158188,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158081,7 +158238,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158136,7 +158293,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158214,7 +158371,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158268,7 +158425,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158337,7 +158494,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158421,7 +158578,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158483,7 +158640,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Int64, ) > - >(_1uu024u_protocolTrampoline_h68abb) + >(_1uu024u_protocolTrampoline_132zq0k) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158547,7 +158704,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158628,7 +158785,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jyim80) + >(_1uu024u_protocolTrampoline_36nsue) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158715,7 +158872,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158807,7 +158964,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_l2g8ke) + >(_1uu024u_protocolTrampoline_ye2vt3) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158893,7 +159050,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -158940,7 +159097,7 @@ interface class NSURLSessionDataDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDataDelegate, @@ -159026,7 +159183,7 @@ extension type NSURLSessionDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLSessionDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLSessionDelegate, @@ -159057,7 +159214,7 @@ extension NSURLSessionDelegate$Methods on NSURLSessionDelegate { 'URLSession:didBecomeInvalidWithError:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didBecomeInvalidWithError_, _$$ref$1.pointer, @@ -159090,7 +159247,7 @@ extension NSURLSessionDelegate$Methods on NSURLSessionDelegate { 'URLSession:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -159117,7 +159274,7 @@ extension NSURLSessionDelegate$Methods on NSURLSessionDelegate { 'URLSessionDidFinishEventsForBackgroundURLSession:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLSessionDidFinishEventsForBackgroundURLSession_, _$$ref$1.pointer, @@ -159378,7 +159535,7 @@ interface class NSURLSessionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDelegate, @@ -159433,7 +159590,7 @@ interface class NSURLSessionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDelegate, @@ -159507,7 +159664,7 @@ interface class NSURLSessionDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDelegate, @@ -159543,7 +159700,7 @@ extension NSURLSessionDeprecated on NSURLSessionConfiguration { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSURLSessionConfiguration, _sel_backgroundSessionConfiguration_, _$$ref.pointer, @@ -159571,7 +159728,7 @@ extension type NSURLSessionDownloadDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLSessionDownloadDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLSessionDownloadDelegate, @@ -159602,7 +159759,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:didBecomeInvalidWithError:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didBecomeInvalidWithError_, _$$ref$1.pointer, @@ -159632,7 +159789,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:didCreateTask:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didCreateTask_, _$$ref$1.pointer, @@ -159665,7 +159822,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -159689,7 +159846,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_downloadTask_didFinishDownloadingToURL_, _$$ref$1.pointer, @@ -159722,7 +159879,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:', ); } - _objc_msgSend_fm5719( + _objc_msgSend_avag80( _$$ref.pointer, _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, _$$ref$1.pointer, @@ -159757,7 +159914,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:', ); } - _objc_msgSend_1modw1b( + _objc_msgSend_1e5znsh( _$$ref.pointer, _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, _$$ref$1.pointer, @@ -159792,7 +159949,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:task:didCompleteWithError:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didCompleteWithError_, _$$ref$1.pointer, @@ -159825,7 +159982,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:task:didFinishCollectingMetrics:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didFinishCollectingMetrics_, _$$ref$1.pointer, @@ -159861,7 +160018,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:task:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_task_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -159895,7 +160052,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:task:didReceiveInformationalResponse:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didReceiveInformationalResponse_, _$$ref$1.pointer, @@ -159929,7 +160086,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', ); } - _objc_msgSend_1modw1b( + _objc_msgSend_1e5znsh( _$$ref.pointer, _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, _$$ref$1.pointer, @@ -159965,7 +160122,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:task:needNewBodyStream:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_task_needNewBodyStream_, _$$ref$1.pointer, @@ -160000,7 +160157,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', ); } - _objc_msgSend_9cddqw( + _objc_msgSend_1df5a5f( _$$ref.pointer, _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, _$$ref$1.pointer, @@ -160037,7 +160194,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:task:willBeginDelayedRequest:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, _$$ref$1.pointer, @@ -160075,7 +160232,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', ); } - _objc_msgSend_e1wgee( + _objc_msgSend_ng7j0k( _$$ref.pointer, _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, _$$ref$1.pointer, @@ -160108,7 +160265,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSession:taskIsWaitingForConnectivity:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_taskIsWaitingForConnectivity_, _$$ref$1.pointer, @@ -160134,7 +160291,7 @@ extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { 'URLSessionDidFinishEventsForBackgroundURLSession:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLSessionDidFinishEventsForBackgroundURLSession_, _$$ref$1.pointer, @@ -161131,7 +161288,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161181,7 +161338,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161236,7 +161393,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161314,7 +161471,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161378,7 +161535,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Int64, ) > - >(_1uu024u_protocolTrampoline_ly2579) + >(_1uu024u_protocolTrampoline_1cgt9gb) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161443,7 +161600,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Int64, ) > - >(_1uu024u_protocolTrampoline_h68abb) + >(_1uu024u_protocolTrampoline_132zq0k) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161512,7 +161669,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161566,7 +161723,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161635,7 +161792,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161719,7 +161876,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161781,7 +161938,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Int64, ) > - >(_1uu024u_protocolTrampoline_h68abb) + >(_1uu024u_protocolTrampoline_132zq0k) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161845,7 +162002,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -161926,7 +162083,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jyim80) + >(_1uu024u_protocolTrampoline_36nsue) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -162013,7 +162170,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -162105,7 +162262,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_l2g8ke) + >(_1uu024u_protocolTrampoline_ye2vt3) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -162191,7 +162348,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -162238,7 +162395,7 @@ interface class NSURLSessionDownloadDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionDownloadDelegate, @@ -162347,7 +162504,7 @@ extension type NSURLSessionStreamDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLSessionStreamDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLSessionStreamDelegate, @@ -162378,7 +162535,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:betterRouteDiscoveredForStreamTask:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_betterRouteDiscoveredForStreamTask_, _$$ref$1.pointer, @@ -162408,7 +162565,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:didBecomeInvalidWithError:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didBecomeInvalidWithError_, _$$ref$1.pointer, @@ -162438,7 +162595,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:didCreateTask:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didCreateTask_, _$$ref$1.pointer, @@ -162471,7 +162628,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -162502,7 +162659,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:readClosedForStreamTask:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_readClosedForStreamTask_, _$$ref$1.pointer, @@ -162536,7 +162693,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:streamTask:didBecomeInputStream:outputStream:', ); } - _objc_msgSend_mlcr8l( + _objc_msgSend_25u0to( _$$ref.pointer, _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, _$$ref$1.pointer, @@ -162570,7 +162727,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:task:didCompleteWithError:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didCompleteWithError_, _$$ref$1.pointer, @@ -162603,7 +162760,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:task:didFinishCollectingMetrics:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didFinishCollectingMetrics_, _$$ref$1.pointer, @@ -162639,7 +162796,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:task:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_task_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -162673,7 +162830,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:task:didReceiveInformationalResponse:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didReceiveInformationalResponse_, _$$ref$1.pointer, @@ -162707,7 +162864,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', ); } - _objc_msgSend_1modw1b( + _objc_msgSend_1e5znsh( _$$ref.pointer, _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, _$$ref$1.pointer, @@ -162743,7 +162900,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:task:needNewBodyStream:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_task_needNewBodyStream_, _$$ref$1.pointer, @@ -162778,7 +162935,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', ); } - _objc_msgSend_9cddqw( + _objc_msgSend_1df5a5f( _$$ref.pointer, _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, _$$ref$1.pointer, @@ -162815,7 +162972,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:task:willBeginDelayedRequest:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, _$$ref$1.pointer, @@ -162853,7 +163010,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', ); } - _objc_msgSend_e1wgee( + _objc_msgSend_ng7j0k( _$$ref.pointer, _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, _$$ref$1.pointer, @@ -162886,7 +163043,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:taskIsWaitingForConnectivity:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_taskIsWaitingForConnectivity_, _$$ref$1.pointer, @@ -162916,7 +163073,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSession:writeClosedForStreamTask:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_writeClosedForStreamTask_, _$$ref$1.pointer, @@ -162942,7 +163099,7 @@ extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { 'URLSessionDidFinishEventsForBackgroundURLSession:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLSessionDidFinishEventsForBackgroundURLSession_, _$$ref$1.pointer, @@ -164011,7 +164168,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164061,7 +164218,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164111,7 +164268,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164166,7 +164323,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164243,7 +164400,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164300,7 +164457,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_8jfq1p) + >(_1uu024u_protocolTrampoline_1yjs6wb) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164381,7 +164538,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164435,7 +164592,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164504,7 +164661,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164588,7 +164745,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164650,7 +164807,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Int64, ) > - >(_1uu024u_protocolTrampoline_h68abb) + >(_1uu024u_protocolTrampoline_132zq0k) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164714,7 +164871,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164795,7 +164952,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jyim80) + >(_1uu024u_protocolTrampoline_36nsue) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164882,7 +165039,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -164974,7 +165131,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_l2g8ke) + >(_1uu024u_protocolTrampoline_ye2vt3) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -165060,7 +165217,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -165110,7 +165267,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -165157,7 +165314,7 @@ interface class NSURLSessionStreamDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionStreamDelegate, @@ -165243,7 +165400,111 @@ extension type NSURLSessionTask._(objc.ObjCObject object$) } /// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions on NSURLProtocol { +extension NSURLSessionTaskAdditions on NSURLCache { + /// getCachedResponseForDataTask:completionHandler: + void getCachedResponseForDataTask( + NSURLSessionDataTask dataTask, { + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = dataTask.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLCache.getCachedResponseForDataTask:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_9kuhjb( + _$$ref.pointer, + _sel_getCachedResponseForDataTask_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeCachedResponseForDataTask: + void removeCachedResponseForDataTask(NSURLSessionDataTask dataTask) { + final _$$ref = object$.ref; + final _$$ref$1 = dataTask.ref; + objc.checkOsVersionInternal( + 'NSURLCache.removeCachedResponseForDataTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_1d1siln( + _$$ref.pointer, + _sel_removeCachedResponseForDataTask_, + _$$ref$1.pointer, + ); + } + + /// storeCachedResponse:forDataTask: + void storeCachedResponse( + NSCachedURLResponse cachedResponse, { + required NSURLSessionDataTask forDataTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = cachedResponse.ref; + final _$$ref$2 = forDataTask.ref; + objc.checkOsVersionInternal( + 'NSURLCache.storeCachedResponse:forDataTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_1k6sg8i( + _$$ref.pointer, + _sel_storeCachedResponse_forDataTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSURLSessionTaskAdditions +extension NSURLSessionTaskAdditions$1 on NSHTTPCookieStorage { + /// getCookiesForTask:completionHandler: + void getCookiesForTask( + NSURLSessionTask task, { + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = task.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage.getCookiesForTask:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_9kuhjb( + _$$ref.pointer, + _sel_getCookiesForTask_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// storeCookies:forTask: + void storeCookies(objc.NSArray cookies, {required NSURLSessionTask forTask}) { + final _$$ref = object$.ref; + final _$$ref$1 = cookies.ref; + final _$$ref$2 = forTask.ref; + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage.storeCookies:forTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_1k6sg8i( + _$$ref.pointer, + _sel_storeCookies_forTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSURLSessionTaskAdditions +extension NSURLSessionTaskAdditions$2 on NSURLProtocol { /// task NSURLSessionTask? get task { final _$$ref = object$.ref; @@ -165252,7 +165513,7 @@ extension NSURLSessionTaskAdditions on NSURLProtocol { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_task); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_task); return $ret.address == 0 ? null : NSURLSessionTask.fromPointer($ret, retain: true, release: true); @@ -165266,7 +165527,7 @@ extension NSURLSessionTaskAdditions on NSURLProtocol { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _class_NSURLProtocol, _sel_canInitWithTask_, _$$ref.pointer, @@ -165275,7 +165536,7 @@ extension NSURLSessionTaskAdditions on NSURLProtocol { } /// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions$1 on NSURLCredentialStorage { +extension NSURLSessionTaskAdditions$3 on NSURLCredentialStorage { /// getCredentialsForProtectionSpace:task:completionHandler: void getCredentialsForProtectionSpace( NSURLProtectionSpace protectionSpace, { @@ -165292,7 +165553,7 @@ extension NSURLSessionTaskAdditions$1 on NSURLCredentialStorage { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_getCredentialsForProtectionSpace_task_completionHandler_, _$$ref$1.pointer, @@ -165317,7 +165578,7 @@ extension NSURLSessionTaskAdditions$1 on NSURLCredentialStorage { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_, _$$ref$1.pointer, @@ -165343,7 +165604,7 @@ extension NSURLSessionTaskAdditions$1 on NSURLCredentialStorage { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_mlcr8l( + _objc_msgSend_25u0to( _$$ref.pointer, _sel_removeCredential_forProtectionSpace_options_task_, _$$ref$1.pointer, @@ -165368,7 +165629,7 @@ extension NSURLSessionTaskAdditions$1 on NSURLCredentialStorage { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_setCredential_forProtectionSpace_task_, _$$ref$1.pointer, @@ -165392,7 +165653,7 @@ extension NSURLSessionTaskAdditions$1 on NSURLCredentialStorage { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_setDefaultCredential_forProtectionSpace_task_, _$$ref$1.pointer, @@ -165402,110 +165663,6 @@ extension NSURLSessionTaskAdditions$1 on NSURLCredentialStorage { } } -/// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions$2 on NSURLCache { - /// getCachedResponseForDataTask:completionHandler: - void getCachedResponseForDataTask( - NSURLSessionDataTask dataTask, { - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = dataTask.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLCache.getCachedResponseForDataTask:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_o762yo( - _$$ref.pointer, - _sel_getCachedResponseForDataTask_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeCachedResponseForDataTask: - void removeCachedResponseForDataTask(NSURLSessionDataTask dataTask) { - final _$$ref = object$.ref; - final _$$ref$1 = dataTask.ref; - objc.checkOsVersionInternal( - 'NSURLCache.removeCachedResponseForDataTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_removeCachedResponseForDataTask_, - _$$ref$1.pointer, - ); - } - - /// storeCachedResponse:forDataTask: - void storeCachedResponse( - NSCachedURLResponse cachedResponse, { - required NSURLSessionDataTask forDataTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = cachedResponse.ref; - final _$$ref$2 = forDataTask.ref; - objc.checkOsVersionInternal( - 'NSURLCache.storeCachedResponse:forDataTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_storeCachedResponse_forDataTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions$3 on NSHTTPCookieStorage { - /// getCookiesForTask:completionHandler: - void getCookiesForTask( - NSURLSessionTask task, { - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = task.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSHTTPCookieStorage.getCookiesForTask:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_o762yo( - _$$ref.pointer, - _sel_getCookiesForTask_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// storeCookies:forTask: - void storeCookies(objc.NSArray cookies, {required NSURLSessionTask forTask}) { - final _$$ref = object$.ref; - final _$$ref$1 = cookies.ref; - final _$$ref$2 = forTask.ref; - objc.checkOsVersionInternal( - 'NSHTTPCookieStorage.storeCookies:forTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_storeCookies_forTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - /// NSURLSessionTaskDelegate extension type NSURLSessionTaskDelegate._(objc.ObjCProtocol object$) implements objc.ObjCProtocol, NSURLSessionDelegate { @@ -165521,7 +165678,7 @@ extension type NSURLSessionTaskDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLSessionTaskDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLSessionTaskDelegate, @@ -165552,7 +165709,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:didBecomeInvalidWithError:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didBecomeInvalidWithError_, _$$ref$1.pointer, @@ -165582,7 +165739,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:didCreateTask:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didCreateTask_, _$$ref$1.pointer, @@ -165615,7 +165772,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -165648,7 +165805,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:task:didCompleteWithError:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didCompleteWithError_, _$$ref$1.pointer, @@ -165681,7 +165838,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:task:didFinishCollectingMetrics:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didFinishCollectingMetrics_, _$$ref$1.pointer, @@ -165717,7 +165874,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:task:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_task_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -165751,7 +165908,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:task:didReceiveInformationalResponse:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didReceiveInformationalResponse_, _$$ref$1.pointer, @@ -165785,7 +165942,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', ); } - _objc_msgSend_1modw1b( + _objc_msgSend_1e5znsh( _$$ref.pointer, _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, _$$ref$1.pointer, @@ -165821,7 +165978,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:task:needNewBodyStream:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_task_needNewBodyStream_, _$$ref$1.pointer, @@ -165856,7 +166013,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', ); } - _objc_msgSend_9cddqw( + _objc_msgSend_1df5a5f( _$$ref.pointer, _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, _$$ref$1.pointer, @@ -165893,7 +166050,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:task:willBeginDelayedRequest:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, _$$ref$1.pointer, @@ -165931,7 +166088,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', ); } - _objc_msgSend_e1wgee( + _objc_msgSend_ng7j0k( _$$ref.pointer, _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, _$$ref$1.pointer, @@ -165964,7 +166121,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSession:taskIsWaitingForConnectivity:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_taskIsWaitingForConnectivity_, _$$ref$1.pointer, @@ -165990,7 +166147,7 @@ extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { 'URLSessionDidFinishEventsForBackgroundURLSession:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLSessionDidFinishEventsForBackgroundURLSession_, _$$ref$1.pointer, @@ -166861,7 +167018,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -166911,7 +167068,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -166966,7 +167123,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167044,7 +167201,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167098,7 +167255,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167167,7 +167324,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167251,7 +167408,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167313,7 +167470,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Int64, ) > - >(_1uu024u_protocolTrampoline_h68abb) + >(_1uu024u_protocolTrampoline_132zq0k) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167377,7 +167534,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167458,7 +167615,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jyim80) + >(_1uu024u_protocolTrampoline_36nsue) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167545,7 +167702,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167637,7 +167794,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_l2g8ke) + >(_1uu024u_protocolTrampoline_ye2vt3) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167723,7 +167880,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167770,7 +167927,7 @@ interface class NSURLSessionTaskDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionTaskDelegate, @@ -167967,7 +168124,7 @@ extension type NSURLSessionWebSocketDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSURLSessionWebSocketDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSURLSessionWebSocketDelegate, @@ -167999,7 +168156,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:didBecomeInvalidWithError:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didBecomeInvalidWithError_, _$$ref$1.pointer, @@ -168029,7 +168186,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:didCreateTask:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_didCreateTask_, _$$ref$1.pointer, @@ -168062,7 +168219,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -168095,7 +168252,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:task:didCompleteWithError:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didCompleteWithError_, _$$ref$1.pointer, @@ -168128,7 +168285,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:task:didFinishCollectingMetrics:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didFinishCollectingMetrics_, _$$ref$1.pointer, @@ -168164,7 +168321,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:task:didReceiveChallenge:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_task_didReceiveChallenge_completionHandler_, _$$ref$1.pointer, @@ -168198,7 +168355,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:task:didReceiveInformationalResponse:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_task_didReceiveInformationalResponse_, _$$ref$1.pointer, @@ -168232,7 +168389,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', ); } - _objc_msgSend_1modw1b( + _objc_msgSend_1e5znsh( _$$ref.pointer, _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, _$$ref$1.pointer, @@ -168268,7 +168425,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:task:needNewBodyStream:', ); } - _objc_msgSend_18qun1e( + _objc_msgSend_omynm( _$$ref.pointer, _sel_URLSession_task_needNewBodyStream_, _$$ref$1.pointer, @@ -168303,7 +168460,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', ); } - _objc_msgSend_9cddqw( + _objc_msgSend_1df5a5f( _$$ref.pointer, _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, _$$ref$1.pointer, @@ -168340,7 +168497,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:task:willBeginDelayedRequest:completionHandler:', ); } - _objc_msgSend_m7tls4( + _objc_msgSend_1t5al8x( _$$ref.pointer, _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, _$$ref$1.pointer, @@ -168378,7 +168535,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', ); } - _objc_msgSend_e1wgee( + _objc_msgSend_ng7j0k( _$$ref.pointer, _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, _$$ref$1.pointer, @@ -168411,7 +168568,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:taskIsWaitingForConnectivity:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_URLSession_taskIsWaitingForConnectivity_, _$$ref$1.pointer, @@ -168444,7 +168601,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:webSocketTask:didCloseWithCode:reason:', ); } - _objc_msgSend_d9bpjb( + _objc_msgSend_xkivwz( _$$ref.pointer, _sel_URLSession_webSocketTask_didCloseWithCode_reason_, _$$ref$1.pointer, @@ -168478,7 +168635,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSession:webSocketTask:didOpenWithProtocol:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_URLSession_webSocketTask_didOpenWithProtocol_, _$$ref$1.pointer, @@ -168505,7 +168662,7 @@ extension NSURLSessionWebSocketDelegate$Methods 'URLSessionDidFinishEventsForBackgroundURLSession:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_URLSessionDidFinishEventsForBackgroundURLSession_, _$$ref$1.pointer, @@ -169490,7 +169647,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -169540,7 +169697,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -169595,7 +169752,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -169673,7 +169830,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -169727,7 +169884,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -169796,7 +169953,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -169880,7 +170037,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -169942,7 +170099,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Int64, ) > - >(_1uu024u_protocolTrampoline_h68abb) + >(_1uu024u_protocolTrampoline_132zq0k) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -170006,7 +170163,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_bklti2) + >(_1uu024u_protocolTrampoline_xfiv91) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -170087,7 +170244,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_jyim80) + >(_1uu024u_protocolTrampoline_36nsue) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -170174,7 +170331,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xx612k) + >(_1uu024u_protocolTrampoline_vh5xcw) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -170266,7 +170423,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_l2g8ke) + >(_1uu024u_protocolTrampoline_ye2vt3) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -170352,7 +170509,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -170409,7 +170566,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1lx650f) + >(_1uu024u_protocolTrampoline_8odg2g) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -170490,7 +170647,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -170549,7 +170706,7 @@ interface class NSURLSessionWebSocketDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSURLSessionWebSocketDelegate, @@ -170640,7 +170797,7 @@ extension NSURLUtilities on objc.NSString { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_stringByAddingPercentEncodingWithAllowedCharacters_, _$$ref$1.pointer, @@ -170661,7 +170818,7 @@ extension NSURLUtilities on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _$$ref.pointer, _sel_stringByAddingPercentEscapesUsingEncoding_, enc, @@ -170679,7 +170836,7 @@ extension NSURLUtilities on objc.NSString { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_stringByRemovingPercentEncoding, ); @@ -170701,7 +170858,7 @@ extension NSURLUtilities on objc.NSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_14hpxwa( + final $ret = _objc_msgSend_o5e71h( _$$ref.pointer, _sel_stringByReplacingPercentEscapesUsingEncoding_, enc, @@ -170721,7 +170878,7 @@ extension NSURLUtilities$1 on objc.NSCharacterSet { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSCharacterSet, _sel_URLFragmentAllowedCharacterSet, ); @@ -170735,7 +170892,7 @@ extension NSURLUtilities$1 on objc.NSCharacterSet { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSCharacterSet, _sel_URLHostAllowedCharacterSet, ); @@ -170749,7 +170906,7 @@ extension NSURLUtilities$1 on objc.NSCharacterSet { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSCharacterSet, _sel_URLPasswordAllowedCharacterSet, ); @@ -170763,7 +170920,7 @@ extension NSURLUtilities$1 on objc.NSCharacterSet { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSCharacterSet, _sel_URLPathAllowedCharacterSet, ); @@ -170777,7 +170934,7 @@ extension NSURLUtilities$1 on objc.NSCharacterSet { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSCharacterSet, _sel_URLQueryAllowedCharacterSet, ); @@ -170791,7 +170948,7 @@ extension NSURLUtilities$1 on objc.NSCharacterSet { iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSCharacterSet, _sel_URLUserAllowedCharacterSet, ); @@ -170895,7 +171052,7 @@ extension type NSUserActivityDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSUserActivityDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSUserActivityDelegate, @@ -170928,7 +171085,7 @@ extension NSUserActivityDelegate$Methods on NSUserActivityDelegate { 'userActivity:didReceiveInputStream:outputStream:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_userActivity_didReceiveInputStream_outputStream_, _$$ref$1.pointer, @@ -170955,7 +171112,7 @@ extension NSUserActivityDelegate$Methods on NSUserActivityDelegate { 'userActivityWasContinued:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_userActivityWasContinued_, _$$ref$1.pointer, @@ -170977,7 +171134,7 @@ extension NSUserActivityDelegate$Methods on NSUserActivityDelegate { 'userActivityWillSave:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_userActivityWillSave_, _$$ref$1.pointer, @@ -171189,7 +171346,7 @@ interface class NSUserActivityDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSUserActivityDelegate, @@ -171248,7 +171405,7 @@ interface class NSUserActivityDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSUserActivityDelegate, @@ -171283,7 +171440,7 @@ interface class NSUserActivityDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSUserActivityDelegate, @@ -171341,7 +171498,7 @@ extension NSUserInformation on NSProcessInfo { iOS: (true, null), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fullUserName); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_fullUserName); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -171353,7 +171510,7 @@ extension NSUserInformation on NSProcessInfo { iOS: (true, null), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_userName); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_userName); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -171368,7 +171525,7 @@ extension NSUserInformation$1 on NSFileManager { iOS: (true, null), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_homeDirectoryForCurrentUser, ); @@ -171384,7 +171541,7 @@ extension NSUserInformation$1 on NSFileManager { iOS: (true, null), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_homeDirectoryForUser_, _$$ref$1.pointer, @@ -171402,7 +171559,7 @@ extension NSUserInformation$1 on NSFileManager { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_temporaryDirectory); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_temporaryDirectory); return objc.NSURL.fromPointer($ret, retain: true, release: true); } } @@ -171512,7 +171669,7 @@ extension type NSUserNotificationCenterDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSUserNotificationCenterDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSUserNotificationCenterDelegate, @@ -171547,7 +171704,7 @@ extension NSUserNotificationCenterDelegate$Methods 'userNotificationCenter:didActivateNotification:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_userNotificationCenter_didActivateNotification_, _$$ref$1.pointer, @@ -171580,7 +171737,7 @@ extension NSUserNotificationCenterDelegate$Methods 'userNotificationCenter:didDeliverNotification:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_userNotificationCenter_didDeliverNotification_, _$$ref$1.pointer, @@ -171613,7 +171770,7 @@ extension NSUserNotificationCenterDelegate$Methods 'userNotificationCenter:shouldPresentNotification:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_userNotificationCenter_shouldPresentNotification_, _$$ref$1.pointer, @@ -171846,7 +172003,7 @@ interface class NSUserNotificationCenterDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSUserNotificationCenterDelegate, @@ -171896,7 +172053,7 @@ interface class NSUserNotificationCenterDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSUserNotificationCenterDelegate, @@ -171946,7 +172103,7 @@ interface class NSUserNotificationCenterDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSUserNotificationCenterDelegate, @@ -171983,7 +172140,7 @@ extension NSValueCreation on objc.NSValue { ffi.Pointer value, { required ffi.Pointer withObjCType, }) { - final $ret = _objc_msgSend_e9mncn( + final $ret = _objc_msgSend_120wspy( _class_NSValue, _sel_value_withObjCType_, value, @@ -171997,7 +172154,7 @@ extension NSValueCreation on objc.NSValue { ffi.Pointer value, { required ffi.Pointer objCType, }) { - final $ret = _objc_msgSend_e9mncn( + final $ret = _objc_msgSend_120wspy( _class_NSValue, _sel_valueWithBytes_objCType_, value, @@ -172013,7 +172170,7 @@ extension NSValueExtensionMethods on objc.NSValue { bool isEqualToValue(objc.NSValue value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_isEqualToValue_, _$$ref$1.pointer, @@ -172023,7 +172180,7 @@ extension NSValueExtensionMethods on objc.NSValue { /// nonretainedObjectValue objc.ObjCObject? get nonretainedObjectValue { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_nonretainedObjectValue, ); @@ -172035,13 +172192,13 @@ extension NSValueExtensionMethods on objc.NSValue { /// pointerValue ffi.Pointer get pointerValue { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_pointerValue); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_pointerValue); } /// valueWithNonretainedObject: static objc.NSValue valueWithNonretainedObject(objc.ObjCObject? anObject) { final _$$ref = anObject?.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSValue, _sel_valueWithNonretainedObject_, _$$ref?.pointer ?? ffi.nullptr, @@ -172051,7 +172208,7 @@ extension NSValueExtensionMethods on objc.NSValue { /// valueWithPointer: static objc.NSValue valueWithPointer(ffi.Pointer pointer) { - final $ret = _objc_msgSend_1mbt9g9( + final $ret = _objc_msgSend_1jnam6p( _class_NSValue, _sel_valueWithPointer_, pointer, @@ -172072,8 +172229,8 @@ extension NSValueGeometryExtensions on objc.NSValue { ); final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_sl0cgwStret($ptr, _$$ref.pointer, _sel_edgeInsetsValue) - : $ptr.ref = _objc_msgSend_sl0cgw(_$$ref.pointer, _sel_edgeInsetsValue); + ? _objc_msgSend_hwrhqStret($ptr, _$$ref.pointer, _sel_edgeInsetsValue) + : $ptr.ref = _objc_msgSend_hwrhq(_$$ref.pointer, _sel_edgeInsetsValue); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -172086,8 +172243,8 @@ extension NSValueGeometryExtensions on objc.NSValue { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1uwdhlkStret($ptr, _$$ref.pointer, _sel_pointValue) - : $ptr.ref = _objc_msgSend_1uwdhlk(_$$ref.pointer, _sel_pointValue); + ? _objc_msgSend_gvefwyStret($ptr, _$$ref.pointer, _sel_pointValue) + : $ptr.ref = _objc_msgSend_gvefwy(_$$ref.pointer, _sel_pointValue); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -172100,8 +172257,8 @@ extension NSValueGeometryExtensions on objc.NSValue { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_bu1hbwStret($ptr, _$$ref.pointer, _sel_rectValue) - : $ptr.ref = _objc_msgSend_bu1hbw(_$$ref.pointer, _sel_rectValue); + ? _objc_msgSend_10g3temStret($ptr, _$$ref.pointer, _sel_rectValue) + : $ptr.ref = _objc_msgSend_10g3tem(_$$ref.pointer, _sel_rectValue); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -172114,8 +172271,8 @@ extension NSValueGeometryExtensions on objc.NSValue { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_sizeValue) - : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_sizeValue); + ? _objc_msgSend_wke702Stret($ptr, _$$ref.pointer, _sel_sizeValue) + : $ptr.ref = _objc_msgSend_wke702(_$$ref.pointer, _sel_sizeValue); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -172130,7 +172287,7 @@ extension NSValueGeometryExtensions on objc.NSValue { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - final $ret = _objc_msgSend_sax6zm( + final $ret = _objc_msgSend_6g603z( _class_NSValue, _sel_valueWithEdgeInsets_, insets, @@ -172140,7 +172297,7 @@ extension NSValueGeometryExtensions on objc.NSValue { /// valueWithPoint: static objc.NSValue valueWithPoint(NSPoint point) { - final $ret = _objc_msgSend_wgkxx2( + final $ret = _objc_msgSend_1l314qv( _class_NSValue, _sel_valueWithPoint_, point, @@ -172150,7 +172307,7 @@ extension NSValueGeometryExtensions on objc.NSValue { /// valueWithRect: static objc.NSValue valueWithRect(NSRect rect) { - final $ret = _objc_msgSend_15yz4e6( + final $ret = _objc_msgSend_1py860n( _class_NSValue, _sel_valueWithRect_, rect, @@ -172160,7 +172317,7 @@ extension NSValueGeometryExtensions on objc.NSValue { /// valueWithSize: static objc.NSValue valueWithSize(NSSize size) { - final $ret = _objc_msgSend_1c2zpn3( + final $ret = _objc_msgSend_1n87wib( _class_NSValue, _sel_valueWithSize_, size, @@ -172176,8 +172333,8 @@ extension NSValueRangeExtensions on objc.NSValue { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_rangeValue) - : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_rangeValue); + ? _objc_msgSend_1wp571eStret($ptr, _$$ref.pointer, _sel_rangeValue) + : $ptr.ref = _objc_msgSend_1wp571e(_$$ref.pointer, _sel_rangeValue); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -172187,7 +172344,7 @@ extension NSValueRangeExtensions on objc.NSValue { /// valueWithRange: static objc.NSValue valueWithRange(NSRange range) { - final $ret = _objc_msgSend_1k1o1s7( + final $ret = _objc_msgSend_1cd70t7( _class_NSValue, _sel_valueWithRange_, range, @@ -172464,7 +172621,7 @@ extension type NSXMLParserDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSXMLParserDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSXMLParserDelegate, @@ -172494,7 +172651,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:didEndElement:namespaceURI:qualifiedName:', ); } - _objc_msgSend_mlcr8l( + _objc_msgSend_25u0to( _$$ref.pointer, _sel_parser_didEndElement_namespaceURI_qualifiedName_, _$$ref$1.pointer, @@ -172521,7 +172678,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:didEndMappingPrefix:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_parser_didEndMappingPrefix_, _$$ref$1.pointer, @@ -172552,7 +172709,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:didStartElement:namespaceURI:qualifiedName:attributes:', ); } - _objc_msgSend_1wqutdn( + _objc_msgSend_kqrjmf( _$$ref.pointer, _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, _$$ref$1.pointer, @@ -172582,7 +172739,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:didStartMappingPrefix:toURI:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_parser_didStartMappingPrefix_toURI_, _$$ref$1.pointer, @@ -172614,7 +172771,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:', ); } - _objc_msgSend_1wqutdn( + _objc_msgSend_kqrjmf( _$$ref.pointer, _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, _$$ref$1.pointer, @@ -172636,7 +172793,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundCDATA:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_parser_foundCDATA_, _$$ref$1.pointer, @@ -172658,7 +172815,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundCharacters:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_parser_foundCharacters_, _$$ref$1.pointer, @@ -172677,7 +172834,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundComment:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_parser_foundComment_, _$$ref$1.pointer, @@ -172704,7 +172861,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundElementDeclarationWithName:model:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_parser_foundElementDeclarationWithName_model_, _$$ref$1.pointer, @@ -172734,7 +172891,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundExternalEntityDeclarationWithName:publicID:systemID:', ); } - _objc_msgSend_mlcr8l( + _objc_msgSend_25u0to( _$$ref.pointer, _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, _$$ref$1.pointer, @@ -172761,7 +172918,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundIgnorableWhitespace:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_parser_foundIgnorableWhitespace_, _$$ref$1.pointer, @@ -172788,7 +172945,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundInternalEntityDeclarationWithName:value:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_parser_foundInternalEntityDeclarationWithName_value_, _$$ref$1.pointer, @@ -172818,7 +172975,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundNotationDeclarationWithName:publicID:systemID:', ); } - _objc_msgSend_mlcr8l( + _objc_msgSend_25u0to( _$$ref.pointer, _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, _$$ref$1.pointer, @@ -172847,7 +173004,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundProcessingInstructionWithTarget:data:', ); } - _objc_msgSend_r8gdi7( + _objc_msgSend_13ytbkt( _$$ref.pointer, _sel_parser_foundProcessingInstructionWithTarget_data_, _$$ref$1.pointer, @@ -172879,7 +173036,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:', ); } - _objc_msgSend_1wqutdn( + _objc_msgSend_kqrjmf( _$$ref.pointer, _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, _$$ref$1.pointer, @@ -172907,7 +173064,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:parseErrorOccurred:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_parser_parseErrorOccurred_, _$$ref$1.pointer, @@ -172934,7 +173091,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:resolveExternalEntityName:systemID:', ); } - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _$$ref.pointer, _sel_parser_resolveExternalEntityName_systemID_, _$$ref$1.pointer, @@ -172963,7 +173120,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parser:validationErrorOccurred:', ); } - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_parser_validationErrorOccurred_, _$$ref$1.pointer, @@ -172981,7 +173138,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parserDidEndDocument:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_parserDidEndDocument_, _$$ref$1.pointer, @@ -173001,7 +173158,7 @@ extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { 'parserDidStartDocument:', ); } - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_parserDidStartDocument_, _$$ref$1.pointer, @@ -173935,7 +174092,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_8jfq1p) + >(_1uu024u_protocolTrampoline_1yjs6wb) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174015,7 +174172,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174065,7 +174222,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_m09tr7) + >(_1uu024u_protocolTrampoline_5rmak2) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174152,7 +174309,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174214,7 +174371,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_m09tr7) + >(_1uu024u_protocolTrampoline_5rmak2) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174300,7 +174457,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174341,7 +174498,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174382,7 +174539,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174424,7 +174581,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174484,7 +174641,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_8jfq1p) + >(_1uu024u_protocolTrampoline_1yjs6wb) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174564,7 +174721,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174606,7 +174763,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174666,7 +174823,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_8jfq1p) + >(_1uu024u_protocolTrampoline_1yjs6wb) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174747,7 +174904,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1tz5yf) + >(_1uu024u_protocolTrampoline_166nalk) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174809,7 +174966,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_m09tr7) + >(_1uu024u_protocolTrampoline_5rmak2) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174895,7 +175052,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174937,7 +175094,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1yw2rcr) + >(_1uu024u_protocolTrampoline_ekc08i) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -174975,7 +175132,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -175013,7 +175170,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -175048,7 +175205,7 @@ interface class NSXMLParserDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_18v1jvf) + >(_1uu024u_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_NSXMLParserDelegate, @@ -175293,19 +175450,19 @@ extension NSXMLParserLocatorAdditions on NSXMLParser { /// columnNumber DartNSInteger get columnNumber { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_columnNumber); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_columnNumber); } /// lineNumber DartNSInteger get lineNumber { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_lineNumber); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_lineNumber); } /// publicID objc.NSString? get publicID { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_publicID); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_publicID); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -175314,7 +175471,7 @@ extension NSXMLParserLocatorAdditions on NSXMLParser { /// systemID objc.NSString? get systemID { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_systemID); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_systemID); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -175410,7 +175567,7 @@ extension type NSXPCListenerDelegate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSXPCListenerDelegate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSXPCListenerDelegate, @@ -175436,7 +175593,7 @@ extension NSXPCListenerDelegate$Methods on NSXPCListenerDelegate { 'listener:shouldAcceptNewConnection:', ); } - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_listener_shouldAcceptNewConnection_, _$$ref$1.pointer, @@ -175504,7 +175661,7 @@ interface class NSXPCListenerDelegate$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_NSXPCListenerDelegate, @@ -175538,7 +175695,7 @@ extension type NSXPCProxyCreating._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [NSXPCProxyCreating]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSXPCProxyCreating, @@ -175550,7 +175707,7 @@ extension NSXPCProxyCreating$Methods on NSXPCProxyCreating { /// remoteObjectProxy objc.ObjCObject remoteObjectProxy() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_remoteObjectProxy); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_remoteObjectProxy); return objc.ObjCObject($ret, retain: true, release: true); } @@ -175560,7 +175717,7 @@ extension NSXPCProxyCreating$Methods on NSXPCProxyCreating { ) { final _$$ref = object$.ref; final _$$ref$1 = handler.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _$$ref.pointer, _sel_remoteObjectProxyWithErrorHandler_, _$$ref$1.pointer, @@ -175588,7 +175745,7 @@ extension NSXPCProxyCreating$Methods on NSXPCProxyCreating { 'synchronousRemoteObjectProxyWithErrorHandler:', ); } - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _$$ref.pointer, _sel_synchronousRemoteObjectProxyWithErrorHandler_, _$$ref$1.pointer, @@ -175674,7 +175831,7 @@ interface class NSXPCProxyCreating$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_NSXPCProxyCreating, @@ -175705,7 +175862,7 @@ interface class NSXPCProxyCreating$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_wpy7aa) + >(_1uu024u_protocolTrampoline_ndzfqt) .cast(), objc.getProtocolMethodSignature( _protocol_NSXPCProxyCreating, @@ -175743,7 +175900,7 @@ interface class NSXPCProxyCreating$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_wpy7aa) + >(_1uu024u_protocolTrampoline_ndzfqt) .cast(), objc.getProtocolMethodSignature( _protocol_NSXPCProxyCreating, @@ -175778,23 +175935,23 @@ typedef DartNXCoord = double; typedef NXEvent = _NXEvent; final class NXEventData extends ffi.Union { - external UnnamedStruct$21 mouse; + external UnnamedStruct$11 mouse; external UnnamedStruct$13 mouseMove; - external UnnamedStruct$12 key; + external UnnamedStruct$14 key; - external UnnamedStruct$18 tracking; + external UnnamedStruct$16 tracking; - external UnnamedStruct$9 scrollWheel; + external UnnamedStruct$21 scrollWheel; - external UnnamedStruct$9 zoom; + external UnnamedStruct$21 zoom; - external UnnamedStruct$10 compound$1; + external UnnamedStruct$17 compound$1; - external UnnamedStruct$17 tablet; + external UnnamedStruct$19 tablet; - external UnnamedStruct$19 proximity; + external UnnamedStruct$12 proximity; } typedef NXEventExt = _NXEventExt; @@ -176135,7 +176292,7 @@ extension type OS_dispatch_data._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_data]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_data, @@ -176191,7 +176348,7 @@ extension type OS_dispatch_group._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_group]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_group, @@ -176247,7 +176404,7 @@ extension type OS_dispatch_io._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_io]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_io, @@ -176303,7 +176460,7 @@ extension type OS_dispatch_object._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_object]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_object, @@ -176359,7 +176516,7 @@ extension type OS_dispatch_queue._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_queue]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_queue, @@ -176415,7 +176572,7 @@ extension type OS_dispatch_queue_attr._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_queue_attr]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_queue_attr, @@ -176473,7 +176630,7 @@ extension type OS_dispatch_queue_concurrent._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_queue_concurrent]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_queue_concurrent, @@ -176534,7 +176691,7 @@ extension type OS_dispatch_queue_global._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_queue_global]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_queue_global, @@ -176592,7 +176749,7 @@ extension type OS_dispatch_queue_main._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_queue_main]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_queue_main, @@ -176650,7 +176807,7 @@ extension type OS_dispatch_queue_serial._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_queue_serial]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_queue_serial, @@ -176708,7 +176865,7 @@ extension type OS_dispatch_queue_serial_executor._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_queue_serial_executor]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_queue_serial_executor, @@ -176770,7 +176927,7 @@ extension type OS_dispatch_semaphore._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_semaphore]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_semaphore, @@ -176828,7 +176985,7 @@ extension type OS_dispatch_source._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_source]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_source, @@ -176884,7 +177041,7 @@ extension type OS_dispatch_workloop._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_dispatch_workloop]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_dispatch_workloop, @@ -176974,7 +177131,7 @@ extension type OS_os_workgroup_interval._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_os_workgroup_interval]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_os_workgroup_interval, @@ -177032,7 +177189,7 @@ extension type OS_os_workgroup_parallel._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_os_workgroup_parallel]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_os_workgroup_parallel, @@ -177090,7 +177247,7 @@ extension type OS_sec_certificate._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_sec_certificate]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_sec_certificate, @@ -177146,7 +177303,7 @@ extension type OS_sec_identity._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_sec_identity]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_sec_identity, @@ -177202,7 +177359,7 @@ extension type OS_sec_object._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_sec_object]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_sec_object, @@ -177256,7 +177413,7 @@ extension type OS_sec_protocol_metadata._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_sec_protocol_metadata]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_sec_protocol_metadata, @@ -177314,7 +177471,7 @@ extension type OS_sec_protocol_options._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_sec_protocol_options]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_sec_protocol_options, @@ -177372,7 +177529,7 @@ extension type OS_sec_trust._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_sec_trust]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_sec_trust, @@ -177426,7 +177583,7 @@ extension type OS_xpc_listener._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_xpc_listener]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_xpc_listener, @@ -177482,7 +177639,7 @@ extension type OS_xpc_object._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_xpc_object]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_xpc_object, @@ -177536,7 +177693,7 @@ extension type OS_xpc_peer_requirement._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_xpc_peer_requirement]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_xpc_peer_requirement, @@ -177594,7 +177751,7 @@ extension type OS_xpc_session._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [OS_xpc_session]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_OS_xpc_session, @@ -190035,7 +190192,7 @@ abstract final class ObjCBlock_ffiVoid { }) { return objc.ObjCBlock( objc.newBlockPort( - _1uu024u_wrapListenerBlock_1pl9qdv, + _1uu024u_wrapListenerBlock_h9i570, (ffi.Pointer rawArgs) => fn(), keepIsolateAlive, ), @@ -190060,7 +190217,7 @@ abstract final class ObjCBlock_ffiVoid { }) { return objc.ObjCBlock( objc.newBlockingBlockPort( - _1uu024u_wrapBlockingBlock_1pl9qdv, + _1uu024u_wrapBlockingBlock_h9i570, (ffi.Pointer rawArgs) => fn(), keepIsolateAlive, ), @@ -190222,7 +190379,7 @@ abstract final class ObjCBlock_ffiVoid_Boolean_UInt64_CFErrorRef { ffi.Pointer<__CFError>, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_115kkcp, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_29zf79, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_zgaes8.fromPointer( @@ -190266,7 +190423,7 @@ abstract final class ObjCBlock_ffiVoid_Boolean_UInt64_CFErrorRef { ffi.Pointer<__CFError>, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_115kkcp, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_29zf79, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_zgaes8.fromPointer( @@ -190413,7 +190570,7 @@ abstract final class ObjCBlock_ffiVoid_CFArrayRef { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9fms3g, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_17efpu7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_vgtcpl.fromPointer( @@ -190444,7 +190601,7 @@ abstract final class ObjCBlock_ffiVoid_CFArrayRef { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9fms3g, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_17efpu7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_vgtcpl.fromPointer( @@ -190584,7 +190741,7 @@ abstract final class ObjCBlock_ffiVoid_CFArrayRef_CFErrorRef { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_15ghdzk, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1nn5emo, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_17mefw7.fromPointer( @@ -190620,7 +190777,7 @@ abstract final class ObjCBlock_ffiVoid_CFArrayRef_CFErrorRef { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15ghdzk, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1nn5emo, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_17mefw7.fromPointer( @@ -190755,7 +190912,7 @@ abstract final class ObjCBlock_ffiVoid_CFErrorRef { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1kwz7d1, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1v2rdu1, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_13g89k6.fromPointer( @@ -190786,7 +190943,7 @@ abstract final class ObjCBlock_ffiVoid_CFErrorRef { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1kwz7d1, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1v2rdu1, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_13g89k6.fromPointer( @@ -190975,7 +191132,7 @@ abstract final class ObjCBlock_ffiVoid_CFErrorRef_CGContentInfo_CGBitmapParamete ffi.Pointer, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1yrznn1, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_6s6vc3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1hs0ws6.fromPointer( @@ -191024,7 +191181,7 @@ abstract final class ObjCBlock_ffiVoid_CFErrorRef_CGContentInfo_CGBitmapParamete ffi.Pointer, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1yrznn1, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6s6vc3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1hs0ws6.fromPointer( @@ -191218,7 +191375,7 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_tg5tbv, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_igu5g9, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_14lm7fk.fromPointer( @@ -191254,7 +191411,7 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_tg5tbv, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_igu5g9, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_14lm7fk.fromPointer( @@ -191400,7 +191557,7 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopTimerRef { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1dqvvol, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_kuxxg7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_n2dxuu.fromPointer( @@ -191432,7 +191589,7 @@ abstract final class ObjCBlock_ffiVoid_CFRunLoopTimerRef { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1dqvvol, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_kuxxg7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_n2dxuu.fromPointer( @@ -191613,7 +191770,7 @@ abstract final class ObjCBlock_ffiVoid_CFTypeRef_CFErrorRef_Boolean { ffi.UnsignedChar, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_b3tf6o, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_d96no7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1sucxsg.fromPointer( @@ -191657,7 +191814,7 @@ abstract final class ObjCBlock_ffiVoid_CFTypeRef_CFErrorRef_Boolean { ffi.UnsignedChar, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_b3tf6o, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_d96no7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1sucxsg.fromPointer( @@ -191902,7 +192059,7 @@ abstract final class ObjCBlock_ffiVoid_CGDisplayStreamFrameStatus_Uint64_IOSurfa ffi.Pointer, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_du1izn, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1xaf9kl, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1lr5l4t.fromPointer( @@ -191954,7 +192111,7 @@ abstract final class ObjCBlock_ffiVoid_CGDisplayStreamFrameStatus_Uint64_IOSurfa ffi.Pointer, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_du1izn, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1xaf9kl, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1lr5l4t.fromPointer( @@ -192133,7 +192290,7 @@ abstract final class ObjCBlock_ffiVoid_CGPathElement { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1ctgxtl, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_12exqd, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_dmvhfp.fromPointer( @@ -192164,7 +192321,7 @@ abstract final class ObjCBlock_ffiVoid_CGPathElement { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1ctgxtl, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_12exqd, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_dmvhfp.fromPointer( @@ -192366,7 +192523,7 @@ abstract final class ObjCBlock_ffiVoid_CGRenderingBufferProviderRef_CGContentInf ffi.Pointer, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_rdj45r, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_2ik0db, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_v1zq3a.fromPointer( @@ -192415,7 +192572,7 @@ abstract final class ObjCBlock_ffiVoid_CGRenderingBufferProviderRef_CGContentInf ffi.Pointer, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_rdj45r, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_2ik0db, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_v1zq3a.fromPointer( @@ -192621,7 +192778,7 @@ abstract final class ObjCBlock_ffiVoid_NSAppleEventDescriptor_NSError { return objc.ObjCBlock< ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1gmgda9.fromPointer( @@ -192657,7 +192814,7 @@ abstract final class ObjCBlock_ffiVoid_NSAppleEventDescriptor_NSError { return objc.ObjCBlock< ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1gmgda9.fromPointer( @@ -192824,7 +192981,7 @@ abstract final class ObjCBlock_ffiVoid_NSArray { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1p7ak3v.fromPointer( @@ -192855,7 +193012,7 @@ abstract final class ObjCBlock_ffiVoid_NSArray { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1p7ak3v.fromPointer( @@ -192986,7 +193143,7 @@ abstract final class ObjCBlock_ffiVoid_NSBackgroundActivityResult { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_10ssdng, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_l4qveu, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_ldsont.fromPointer( @@ -193017,7 +193174,7 @@ abstract final class ObjCBlock_ffiVoid_NSBackgroundActivityResult { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_10ssdng, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_l4qveu, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_ldsont.fromPointer( @@ -193149,7 +193306,7 @@ abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_wtbfzi.fromPointer( @@ -193180,7 +193337,7 @@ abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_wtbfzi.fromPointer( @@ -193333,7 +193490,7 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSError { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_x5cg0.fromPointer( @@ -193365,7 +193522,7 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSError { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_x5cg0.fromPointer( @@ -193560,7 +193717,7 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError { return objc.ObjCBlock< ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_13ytbkt, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1mv87bk.fromPointer( @@ -193596,7 +193753,7 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError { return objc.ObjCBlock< ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_13ytbkt, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1mv87bk.fromPointer( @@ -193775,7 +193932,7 @@ abstract final class ObjCBlock_ffiVoid_NSDictionary { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_6tydoo.fromPointer( @@ -193806,7 +193963,7 @@ abstract final class ObjCBlock_ffiVoid_NSDictionary { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_6tydoo.fromPointer( @@ -193985,7 +194142,7 @@ abstract final class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool { return objc.ObjCBlock< ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1a22wz, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1agrddk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_v8in3.fromPointer( @@ -194021,7 +194178,7 @@ abstract final class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool { return objc.ObjCBlock< ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1a22wz, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1agrddk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_v8in3.fromPointer( @@ -194196,7 +194353,7 @@ abstract final class ObjCBlock_ffiVoid_NSError { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_117e0ww.fromPointer( @@ -194227,7 +194384,7 @@ abstract final class ObjCBlock_ffiVoid_NSError { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_117e0ww.fromPointer( @@ -194365,7 +194522,7 @@ abstract final class ObjCBlock_ffiVoid_NSError$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_b9s2kt.fromPointer( @@ -194396,7 +194553,7 @@ abstract final class ObjCBlock_ffiVoid_NSError$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_b9s2kt.fromPointer( @@ -194534,7 +194691,7 @@ abstract final class ObjCBlock_ffiVoid_NSFileHandle { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_v5xz31.fromPointer( @@ -194565,7 +194722,7 @@ abstract final class ObjCBlock_ffiVoid_NSFileHandle { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_v5xz31.fromPointer( @@ -194708,7 +194865,7 @@ abstract final class ObjCBlock_ffiVoid_NSInputStream { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ura76.fromPointer( @@ -194739,7 +194896,7 @@ abstract final class ObjCBlock_ffiVoid_NSInputStream { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ura76.fromPointer( @@ -194968,7 +195125,7 @@ abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCO objc.NSDictionary, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1b3bb6a, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_90wr7u, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_6yk1dr.fromPointer( @@ -195021,7 +195178,7 @@ abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCO objc.NSDictionary, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1b3bb6a, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_90wr7u, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_6yk1dr.fromPointer( @@ -195194,7 +195351,7 @@ abstract final class ObjCBlock_ffiVoid_NSObject { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1q305zu.fromPointer( @@ -195225,7 +195382,7 @@ abstract final class ObjCBlock_ffiVoid_NSObject { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1q305zu.fromPointer( @@ -195352,7 +195509,7 @@ abstract final class ObjCBlock_ffiVoid_NSObject$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1n468bj.fromPointer( @@ -195383,7 +195540,7 @@ abstract final class ObjCBlock_ffiVoid_NSObject$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1n468bj.fromPointer( @@ -195580,7 +195737,7 @@ abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { ffi.Pointer, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_lmc3p5, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1ua0j4l, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1pvrxoh.fromPointer( @@ -195626,7 +195783,7 @@ abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { ffi.Pointer, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_lmc3p5, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1ua0j4l, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1pvrxoh.fromPointer( @@ -195812,7 +195969,7 @@ abstract final class ObjCBlock_ffiVoid_NSTask { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_347s5u.fromPointer( @@ -195843,7 +196000,7 @@ abstract final class ObjCBlock_ffiVoid_NSTask { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_347s5u.fromPointer( @@ -196034,7 +196191,7 @@ abstract final class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool ffi.Pointer, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_6jvo9y, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1gdgpbj, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1uc4fg7.fromPointer( @@ -196075,7 +196232,7 @@ abstract final class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool ffi.Pointer, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6jvo9y, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1gdgpbj, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1uc4fg7.fromPointer( @@ -196255,7 +196412,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLCredential { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_13o2rom.fromPointer( @@ -196286,7 +196443,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLCredential { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_13o2rom.fromPointer( @@ -196428,7 +196585,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLRequest { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1n6ph2.fromPointer( @@ -196459,7 +196616,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLRequest { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1n6ph2.fromPointer( @@ -196632,7 +196789,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError { return objc.ObjCBlock< ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_13ytbkt, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1oftdow.fromPointer( @@ -196668,7 +196825,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError { return objc.ObjCBlock< ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_13ytbkt, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1oftdow.fromPointer( @@ -196852,7 +197009,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSUR bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_n8yd09, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_kjz7zp, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_u65oe8.fromPointer( @@ -196884,7 +197041,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSUR bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_n8yd09, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_kjz7zp, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_u65oe8.fromPointer( @@ -197044,7 +197201,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSU bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1otpo83, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hf68d1, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_171cldw.fromPointer( @@ -197075,7 +197232,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSU bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1otpo83, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hf68d1, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_171cldw.fromPointer( @@ -197219,7 +197376,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_16sve1d, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1jl1qga, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1y7f3jy.fromPointer( @@ -197250,7 +197407,7 @@ abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_16sve1d, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1jl1qga, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1y7f3jy.fromPointer( @@ -197408,7 +197565,7 @@ abstract final class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError { return objc.ObjCBlock< ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_13ytbkt, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_3gru2r.fromPointer( @@ -197444,7 +197601,7 @@ abstract final class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError { return objc.ObjCBlock< ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_13ytbkt, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_3gru2r.fromPointer( @@ -197638,7 +197795,7 @@ abstract final class ObjCBlock_ffiVoid_OSStatus_AuthorizationRights { return objc.ObjCBlock< ffi.Void Function(ffi.Int, ffi.Pointer) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_l3f29g, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_bls7f3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1v0sc8.fromPointer( @@ -197674,7 +197831,7 @@ abstract final class ObjCBlock_ffiVoid_OSStatus_AuthorizationRights { return objc.ObjCBlock< ffi.Void Function(ffi.Int, ffi.Pointer) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_l3f29g, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_bls7f3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1v0sc8.fromPointer( @@ -197880,7 +198037,7 @@ abstract final class ObjCBlock_ffiVoid_SecKeyRef_SecKeyRef_CFErrorRef { ffi.Pointer<__CFError>, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1rz4y3, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1po7bn3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_5zyi3o.fromPointer( @@ -197924,7 +198081,7 @@ abstract final class ObjCBlock_ffiVoid_SecKeyRef_SecKeyRef_CFErrorRef { ffi.Pointer<__CFError>, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1rz4y3, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1po7bn3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_5zyi3o.fromPointer( @@ -198087,7 +198244,7 @@ abstract final class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_gwxhxt, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_13ecogf, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_12rv5aa.fromPointer( @@ -198121,7 +198278,7 @@ abstract final class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_gwxhxt, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_13ecogf, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_12rv5aa.fromPointer( @@ -198296,7 +198453,7 @@ abstract final class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef { ffi.Pointer<__CFError>, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_k73ff5, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_gz0078, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_j3xbuw.fromPointer( @@ -198336,7 +198493,7 @@ abstract final class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef { ffi.Pointer<__CFError>, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_k73ff5, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_gz0078, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_j3xbuw.fromPointer( @@ -198494,7 +198651,7 @@ abstract final class ObjCBlock_ffiVoid_Uint16 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_15f11yh, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_q64d1, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_tbof01.fromPointer( @@ -198525,7 +198682,7 @@ abstract final class ObjCBlock_ffiVoid_Uint16 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15f11yh, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_q64d1, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_tbof01.fromPointer( @@ -198641,7 +198798,7 @@ abstract final class ObjCBlock_ffiVoid_bool { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1s56lr9, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1s4gila, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_k4je64.fromPointer( @@ -198672,7 +198829,7 @@ abstract final class ObjCBlock_ffiVoid_bool { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1s56lr9, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1s4gila, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_k4je64.fromPointer( @@ -198803,7 +198960,7 @@ abstract final class ObjCBlock_ffiVoid_bool_NSError { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hk7n97, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_6ngya9, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_syyzqk.fromPointer( @@ -198834,7 +198991,7 @@ abstract final class ObjCBlock_ffiVoid_bool_NSError { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hk7n97, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6ngya9, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_syyzqk.fromPointer( @@ -198997,7 +199154,7 @@ abstract final class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_og5b6y, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_130ym7a, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_uul9n9.fromPointer( @@ -199029,7 +199186,7 @@ abstract final class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_og5b6y, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_130ym7a, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_uul9n9.fromPointer( @@ -199196,7 +199353,7 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_lmnq5k.fromPointer( @@ -199228,7 +199385,7 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_lmnq5k.fromPointer( @@ -199377,7 +199534,7 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18kzm6a, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1gt4vek, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_k4eb20.fromPointer( @@ -199408,7 +199565,7 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18kzm6a, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1gt4vek, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_k4eb20.fromPointer( @@ -199552,7 +199709,7 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18kzm6a, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1gt4vek, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_11uyayp.fromPointer( @@ -199583,7 +199740,7 @@ abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18kzm6a, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1gt4vek, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_11uyayp.fromPointer( @@ -199751,7 +199908,7 @@ abstract final class ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool { return objc.ObjCBlock< ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_132rcs6, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1lkkdea, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1xkpqmj.fromPointer( @@ -199787,7 +199944,7 @@ abstract final class ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool { return objc.ObjCBlock< ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_132rcs6, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1lkkdea, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1xkpqmj.fromPointer( @@ -199960,7 +200117,7 @@ abstract final class ObjCBlock_ffiVoid_ffiInt { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9o8504, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1u5s7gl, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1s2j81k.fromPointer( @@ -199991,7 +200148,7 @@ abstract final class ObjCBlock_ffiVoid_ffiInt { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9o8504, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1u5s7gl, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1s2j81k.fromPointer( @@ -200107,7 +200264,7 @@ abstract final class ObjCBlock_ffiVoid_ffiSize { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_6enxqz, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_ec9pb6, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_kqbpyy.fromPointer( @@ -200138,7 +200295,7 @@ abstract final class ObjCBlock_ffiVoid_ffiSize { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6enxqz, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ec9pb6, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_kqbpyy.fromPointer( @@ -200286,7 +200443,7 @@ abstract final class ObjCBlock_ffiVoid_ffiSize_CGImageRef_bool { return objc.ObjCBlock< ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_11t2oft, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1krhbbh, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1x2wp90.fromPointer( @@ -200322,7 +200479,7 @@ abstract final class ObjCBlock_ffiVoid_ffiSize_CGImageRef_bool { return objc.ObjCBlock< ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_11t2oft, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1krhbbh, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1x2wp90.fromPointer( @@ -200577,7 +200734,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_ovsamd, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_15is1z3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_awd5mj.fromPointer( @@ -200608,7 +200765,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ovsamd, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15is1z3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_awd5mj.fromPointer( @@ -200748,7 +200905,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid$2 { return objc.ObjCBlock< ffi.Void Function(objc.ObjCBlock?) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_f167m6, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_wv523k, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_12cm2y5.fromPointer( @@ -200782,7 +200939,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid$2 { return objc.ObjCBlock< ffi.Void Function(objc.ObjCBlock?) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_f167m6, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_wv523k, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_12cm2y5.fromPointer( @@ -200951,7 +201108,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_3prg4b.fromPointer( @@ -200987,7 +201144,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_3prg4b.fromPointer( @@ -201193,7 +201350,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_zzthnb, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1e0wztw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1giidhf.fromPointer( @@ -201229,7 +201386,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_zzthnb, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1e0wztw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1giidhf.fromPointer( @@ -201457,7 +201614,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl { ffi.Pointer, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1sy9q99.fromPointer( @@ -201501,7 +201658,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl { ffi.Pointer, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1sy9q99.fromPointer( @@ -201699,7 +201856,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSExtensionContext) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_truc42.fromPointer( @@ -201735,7 +201892,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSExtensionContext) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_truc42.fromPointer( @@ -201903,7 +202060,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSFileVersion { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSFileVersion) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1y4tc38.fromPointer( @@ -201937,7 +202094,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSFileVersion { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSFileVersion) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1y4tc38.fromPointer( @@ -202113,7 +202270,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSKeyedArchiver) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ciefi0.fromPointer( @@ -202149,7 +202306,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSKeyedArchiver) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ciefi0.fromPointer( @@ -202369,7 +202526,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImp ffi.Pointer?, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1oetg5g.fromPointer( @@ -202414,7 +202571,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImp ffi.Pointer?, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1oetg5g.fromPointer( @@ -202683,7 +202840,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImp ffi.Pointer?, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_170i760.fromPointer( @@ -202735,7 +202892,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImp ffi.Pointer?, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_170i760.fromPointer( @@ -202955,7 +203112,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1pfw36l.fromPointer( @@ -202991,7 +203148,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1pfw36l.fromPointer( @@ -203230,7 +203387,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectI ffi.Pointer, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1o2efq5.fromPointer( @@ -203282,7 +203439,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectI ffi.Pointer, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1o2efq5.fromPointer( @@ -203489,7 +203646,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSNetService) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_u4a6zc.fromPointer( @@ -203523,7 +203680,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSNetService) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_u4a6zc.fromPointer( @@ -203701,7 +203858,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_19rrqmo.fromPointer( @@ -203737,7 +203894,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_19rrqmo.fromPointer( @@ -203955,7 +204112,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary objc.NSDictionary, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_adcfsd.fromPointer( @@ -204000,7 +204157,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary objc.NSDictionary, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_adcfsd.fromPointer( @@ -204260,7 +204417,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_ ffi.Bool, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_8acz2h, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9km3ll, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_x7mqjz.fromPointer( @@ -204312,7 +204469,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_ ffi.Bool, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8acz2h, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9km3ll, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_x7mqjz.fromPointer( @@ -204583,7 +204740,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool ffi.Bool, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_8acz2h, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9km3ll, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1nn0na.fromPointer( @@ -204635,7 +204792,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool ffi.Bool, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8acz2h, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9km3ll, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1nn0na.fromPointer( @@ -204851,7 +205008,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1pj0but.fromPointer( @@ -204887,7 +205044,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1pj0but.fromPointer( @@ -205096,7 +205253,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_16t4ozp.fromPointer( @@ -205132,7 +205289,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_16t4ozp.fromPointer( @@ -205392,7 +205549,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutp objc.NSOutputStream, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_tikg8p.fromPointer( @@ -205444,7 +205601,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutp objc.NSOutputStream, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_tikg8p.fromPointer( @@ -205664,7 +205821,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSPortMessage { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSPortMessage) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1e1kc88.fromPointer( @@ -205700,7 +205857,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSPortMessage { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSPortMessage) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1e1kc88.fromPointer( @@ -205866,7 +206023,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSet { bool keepIsolateAlive = true, }) { return objc.ObjCBlock, objc.NSSet)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_k2hpmy.fromPointer( @@ -205898,7 +206055,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSet { bool keepIsolateAlive = true, }) { return objc.ObjCBlock, objc.NSSet)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_k2hpmy.fromPointer( @@ -206134,7 +206291,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString { objc.NSString, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1usrzbh.fromPointer( @@ -206186,7 +206343,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString { objc.NSString, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1usrzbh.fromPointer( @@ -206490,7 +206647,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString objc.NSString, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1cn988u, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9dub82, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_gcznpv.fromPointer( @@ -206548,7 +206705,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString objc.NSString, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1cn988u, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9dub82, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_gcznpv.fromPointer( @@ -206796,7 +206953,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_NSString { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ptzs7z.fromPointer( @@ -206832,7 +206989,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_NSString { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ptzs7z.fromPointer( @@ -207024,7 +207181,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_zuf90e, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1nr9pmw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ltqoqj.fromPointer( @@ -207060,7 +207217,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_zuf90e, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1nr9pmw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ltqoqj.fromPointer( @@ -207217,7 +207374,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL { bool keepIsolateAlive = true, }) { return objc.ObjCBlock, objc.NSURL)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_461rr9.fromPointer( @@ -207249,7 +207406,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL { bool keepIsolateAlive = true, }) { return objc.ObjCBlock, objc.NSURL)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_461rr9.fromPointer( @@ -207431,7 +207588,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1z0whcc.fromPointer( @@ -207467,7 +207624,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1z0whcc.fromPointer( @@ -207646,7 +207803,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLConnection) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_15jt9u5.fromPointer( @@ -207682,7 +207839,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLConnection) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_15jt9u5.fromPointer( @@ -207866,7 +208023,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_15vjajw.fromPointer( @@ -207902,7 +208059,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_15vjajw.fromPointer( @@ -208103,7 +208260,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_vpa8ji.fromPointer( @@ -208139,7 +208296,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_vpa8ji.fromPointer( @@ -208412,7 +208569,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteg ffi.Long, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_15e9dqx, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_14pv86t, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_133h48c.fromPointer( @@ -208467,7 +208624,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteg ffi.Long, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15e9dqx, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_14pv86t, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_133h48c.fromPointer( @@ -208693,7 +208850,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1odc9lb.fromPointer( @@ -208729,7 +208886,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1odc9lb.fromPointer( @@ -208972,7 +209129,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticati NSURLAuthenticationChallenge, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_aec946.fromPointer( @@ -209021,7 +209178,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticati NSURLAuthenticationChallenge, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_aec946.fromPointer( @@ -209226,7 +209383,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1i7oea2.fromPointer( @@ -209262,7 +209419,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1i7oea2.fromPointer( @@ -209510,7 +209667,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLo ffi.LongLong, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9crvvv, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1b0c39y, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_5wf51x.fromPointer( @@ -209556,7 +209713,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLo ffi.LongLong, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9crvvv, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1b0c39y, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_5wf51x.fromPointer( @@ -209825,7 +209982,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLo ffi.LongLong, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1qf1qkl, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1fswoub, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_3jhjrc.fromPointer( @@ -209873,7 +210030,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLo ffi.LongLong, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1qf1qkl, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1fswoub, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_3jhjrc.fromPointer( @@ -210145,7 +210302,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticati NSURLAuthenticationChallenge, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1o8dtl.fromPointer( @@ -210194,7 +210351,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticati NSURLAuthenticationChallenge, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1o8dtl.fromPointer( @@ -210383,7 +210540,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLDownload) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_13sb76x.fromPointer( @@ -210417,7 +210574,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLDownload) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_13sb76x.fromPointer( @@ -210598,7 +210755,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_14dahaa.fromPointer( @@ -210634,7 +210791,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_14dahaa.fromPointer( @@ -210831,7 +210988,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_18kc0nv.fromPointer( @@ -210867,7 +211024,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_18kc0nv.fromPointer( @@ -211080,7 +211237,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_wy9lus, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1kovpyp, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_19pyqcd.fromPointer( @@ -211116,7 +211273,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_wy9lus, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1kovpyp, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_19pyqcd.fromPointer( @@ -211366,7 +211523,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthentication NSURLAuthenticationChallenge, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1hwelu.fromPointer( @@ -211415,7 +211572,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthentication NSURLAuthenticationChallenge, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1hwelu.fromPointer( @@ -211620,7 +211777,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1hj9xku.fromPointer( @@ -211656,7 +211813,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1hj9xku.fromPointer( @@ -211902,7 +212059,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLo ffi.LongLong, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_34xzuf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1axgza4, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_12tf05r.fromPointer( @@ -211949,7 +212106,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLo ffi.LongLong, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_34xzuf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1axgza4, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_12tf05r.fromPointer( @@ -212162,7 +212319,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSURLHandle) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_xj71gr.fromPointer( @@ -212198,7 +212355,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSURLHandle) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_xj71gr.fromPointer( @@ -212382,7 +212539,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_136y7ma.fromPointer( @@ -212418,7 +212575,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_136y7ma.fromPointer( @@ -212635,7 +212792,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_teaic5.fromPointer( @@ -212671,7 +212828,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_teaic5.fromPointer( @@ -212860,7 +213017,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLProtocol) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1jcra61.fromPointer( @@ -212894,7 +213051,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLProtocol) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1jcra61.fromPointer( @@ -213093,7 +213250,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse NSCachedURLResponse, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_s52y0g.fromPointer( @@ -213134,7 +213291,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse NSCachedURLResponse, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_s52y0g.fromPointer( @@ -213339,7 +213496,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1p1ax08.fromPointer( @@ -213375,7 +213532,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1p1ax08.fromPointer( @@ -213572,7 +213729,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_rojepe.fromPointer( @@ -213608,7 +213765,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_rojepe.fromPointer( @@ -213851,7 +214008,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthentication NSURLAuthenticationChallenge, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ek5uoy.fromPointer( @@ -213900,7 +214057,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthentication NSURLAuthenticationChallenge, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ek5uoy.fromPointer( @@ -214160,7 +214317,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLR NSURLResponse, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_12ykekb.fromPointer( @@ -214212,7 +214369,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLR NSURLResponse, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_12ykekb.fromPointer( @@ -214490,7 +214647,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURL NSUInteger, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1j7coyk, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1mrpyvj, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_abn34x.fromPointer( @@ -214542,7 +214699,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURL NSUInteger, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1j7coyk, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1mrpyvj, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_abn34x.fromPointer( @@ -214742,7 +214899,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLSession) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_7xicdf.fromPointer( @@ -214776,7 +214933,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLSession) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_7xicdf.fromPointer( @@ -214959,7 +215116,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1f64crj.fromPointer( @@ -214995,7 +215152,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1f64crj.fromPointer( @@ -215260,7 +215417,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationC objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_bklti2, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xfiv91, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_de64m.fromPointer( @@ -215312,7 +215469,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationC objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_bklti2, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xfiv91, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_de64m.fromPointer( @@ -215607,7 +215764,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_vh5xcw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_15cdu5z.fromPointer( @@ -215662,7 +215819,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_vh5xcw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_15cdu5z.fromPointer( @@ -215953,7 +216110,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask objc.NSData, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_16ix251.fromPointer( @@ -216005,7 +216162,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask objc.NSData, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_16ix251.fromPointer( @@ -216300,7 +216457,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_vh5xcw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1xfn2k3.fromPointer( @@ -216355,7 +216512,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_vh5xcw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1xfn2k3.fromPointer( @@ -216650,7 +216807,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask NSURLSessionDownloadTask, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_140cpyj.fromPointer( @@ -216702,7 +216859,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask NSURLSessionDownloadTask, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_140cpyj.fromPointer( @@ -216984,7 +217141,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask NSURLSessionStreamTask, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_43hp0b.fromPointer( @@ -217036,7 +217193,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask NSURLSessionStreamTask, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_43hp0b.fromPointer( @@ -217331,7 +217488,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload ffi.Int64, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_ly2579, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1cgt9gb, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1l7b9ji.fromPointer( @@ -217386,7 +217543,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload ffi.Int64, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ly2579, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1cgt9gb, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1l7b9ji.fromPointer( @@ -217698,7 +217855,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload ffi.Int64, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_h68abb, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_132zq0k, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1pfucun.fromPointer( @@ -217756,7 +217913,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload ffi.Int64, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_h68abb, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_132zq0k, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1pfucun.fromPointer( @@ -218061,7 +218218,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload objc.NSURL, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_pm23bg.fromPointer( @@ -218113,7 +218270,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownload objc.NSURL, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_pm23bg.fromPointer( @@ -218374,7 +218531,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTa NSURLSessionStreamTask, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_qss5hc.fromPointer( @@ -218419,7 +218576,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTa NSURLSessionStreamTask, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_qss5hc.fromPointer( @@ -218696,7 +218853,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTa objc.NSOutputStream, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_8jfq1p, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1yjs6wb, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_nhk5a9.fromPointer( @@ -218751,7 +218908,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTa objc.NSOutputStream, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8jfq1p, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1yjs6wb, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_nhk5a9.fromPointer( @@ -218987,7 +219144,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_k1nazc.fromPointer( @@ -219023,7 +219180,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_k1nazc.fromPointer( @@ -219309,7 +219466,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int ffi.Int64, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_h68abb, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_132zq0k, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_xh08sz.fromPointer( @@ -219367,7 +219524,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int ffi.Int64, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_h68abb, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_132zq0k, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_xh08sz.fromPointer( @@ -219685,7 +219842,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_jyim80, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_36nsue, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_99x6vt.fromPointer( @@ -219740,7 +219897,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_jyim80, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_36nsue, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_99x6vt.fromPointer( @@ -220032,7 +220189,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSE objc.NSError?, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_qjjttc.fromPointer( @@ -220084,7 +220241,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSE objc.NSError?, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_qjjttc.fromPointer( @@ -220362,7 +220519,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH NSHTTPURLResponse, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1n5meg5.fromPointer( @@ -220414,7 +220571,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH NSHTTPURLResponse, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1n5meg5.fromPointer( @@ -220722,7 +220879,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_l2g8ke, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_ye2vt3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ayzt6i.fromPointer( @@ -220780,7 +220937,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSH objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_l2g8ke, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ye2vt3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1ayzt6i.fromPointer( @@ -221105,7 +221262,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_vh5xcw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_31cygh.fromPointer( @@ -221160,7 +221317,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_vh5xcw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_31cygh.fromPointer( @@ -221468,7 +221625,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_vh5xcw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_jqba1.fromPointer( @@ -221523,7 +221680,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_vh5xcw, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_jqba1.fromPointer( @@ -221818,7 +221975,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU NSURLSessionTaskMetrics, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_i7wriu.fromPointer( @@ -221870,7 +222027,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSU NSURLSessionTaskMetrics, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_i7wriu.fromPointer( @@ -222152,7 +222309,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffi objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_bklti2, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xfiv91, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_112ozxo.fromPointer( @@ -222204,7 +222361,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffi objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_bklti2, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xfiv91, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_112ozxo.fromPointer( @@ -222488,7 +222645,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke objc.NSString?, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_xcrg5s.fromPointer( @@ -222540,7 +222697,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke objc.NSString?, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_xcrg5s.fromPointer( @@ -222837,7 +222994,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke objc.NSData?, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1lx650f, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_8odg2g, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_17jmtfx.fromPointer( @@ -222892,7 +223049,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocke objc.NSData?, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1lx650f, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8odg2g, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_17jmtfx.fromPointer( @@ -223127,7 +223284,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1siniii.fromPointer( @@ -223163,7 +223320,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1siniii.fromPointer( @@ -223360,7 +223517,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_jzitwn.fromPointer( @@ -223396,7 +223553,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_jzitwn.fromPointer( @@ -223639,7 +223796,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError { objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_jk1ljc, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_4m73qm, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_pfi7f3.fromPointer( @@ -223688,7 +223845,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError { objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_jk1ljc, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_4m73qm, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_pfi7f3.fromPointer( @@ -223887,7 +224044,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSUserActivity) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_197qivc.fromPointer( @@ -223923,7 +224080,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSUserActivity) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_197qivc.fromPointer( @@ -224162,7 +224319,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOu objc.NSOutputStream, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1j32c3t.fromPointer( @@ -224214,7 +224371,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOu objc.NSOutputStream, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1j32c3t.fromPointer( @@ -224483,7 +224640,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNo NSUserNotification, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_blvx9k.fromPointer( @@ -224532,7 +224689,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNo NSUserNotification, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_blvx9k.fromPointer( @@ -224721,7 +224878,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSXMLParser) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1fj0jrw.fromPointer( @@ -224755,7 +224912,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSXMLParser) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1fj0jrw.fromPointer( @@ -224936,7 +225093,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_vaglpl.fromPointer( @@ -224972,7 +225129,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_vaglpl.fromPointer( @@ -225169,7 +225326,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_17xklgp.fromPointer( @@ -225205,7 +225362,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_17xklgp.fromPointer( @@ -225402,7 +225559,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1r6tt56.fromPointer( @@ -225438,7 +225595,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1r6tt56.fromPointer( @@ -225690,7 +225847,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString { objc.NSString, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_121fmzs.fromPointer( @@ -225742,7 +225899,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString { objc.NSString, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_121fmzs.fromPointer( @@ -226022,7 +226179,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1 { objc.NSString?, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_nemba7.fromPointer( @@ -226074,7 +226231,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1 { objc.NSString?, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_nemba7.fromPointer( @@ -226369,7 +226526,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSS objc.NSString?, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_8jfq1p, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1yjs6wb, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_hacm4k.fromPointer( @@ -226424,7 +226581,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSS objc.NSString?, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8jfq1p, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1yjs6wb, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_hacm4k.fromPointer( @@ -226745,7 +226902,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSS objc.NSDictionary, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_5rmak2, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1kowxjl.fromPointer( @@ -226803,7 +226960,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSS objc.NSDictionary, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_5rmak2, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1kowxjl.fromPointer( @@ -227137,7 +227294,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSS objc.NSString?, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_5rmak2, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_vx7t4i.fromPointer( @@ -227195,7 +227352,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSS objc.NSString?, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_5rmak2, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_vx7t4i.fromPointer( @@ -227531,7 +227688,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSS objc.NSString?, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_5rmak2, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_t3r59d.fromPointer( @@ -227589,7 +227746,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSS objc.NSString?, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_5rmak2, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_t3r59d.fromPointer( @@ -227814,7 +227971,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_bool { bool keepIsolateAlive = true, }) { return objc.ObjCBlock, ffi.Bool)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_10lndml, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_24riuf, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_wpl2gn.fromPointer( @@ -227846,7 +228003,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_bool { bool keepIsolateAlive = true, }) { return objc.ObjCBlock, ffi.Bool)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_10lndml, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_24riuf, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_wpl2gn.fromPointer( @@ -228012,7 +228169,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoid { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, ffi.Pointer) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1037nh9, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_le6lv4, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_hj6v1u.fromPointer( @@ -228048,7 +228205,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoid { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, ffi.Pointer) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1037nh9, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_le6lv4, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_hj6v1u.fromPointer( @@ -228264,7 +228421,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError { objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1l4hxwm, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1y86ja3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1s0z6xl.fromPointer( @@ -228310,7 +228467,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError { objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1l4hxwm, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1y86ja3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1s0z6xl.fromPointer( @@ -228539,7 +228696,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid { objc.ObjCBlock?)>, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1l4hxwm, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1y86ja3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_eu2222.fromPointer( @@ -228585,7 +228742,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid { objc.ObjCBlock?)>, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1l4hxwm, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1y86ja3, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_eu2222.fromPointer( @@ -228781,7 +228938,7 @@ abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer?, objc.NSError) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_krrtfh.fromPointer( @@ -228817,7 +228974,7 @@ abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer?, objc.NSError) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_krrtfh.fromPointer( @@ -229006,7 +229163,7 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer?, objc.NSError?) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1tklz9g.fromPointer( @@ -229042,7 +229199,7 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSError { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer?, objc.NSError?) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1tklz9g.fromPointer( @@ -229268,7 +229425,7 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool { ffi.Pointer, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1a22wz, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1agrddk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_q6fcam.fromPointer( @@ -229312,7 +229469,7 @@ abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool { ffi.Pointer, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1a22wz, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1agrddk, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_q6fcam.fromPointer( @@ -229560,7 +229717,7 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secpro objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18qun1e, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_omynm, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1nq9pr6.fromPointer( @@ -229609,7 +229766,7 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secpro objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18qun1e, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_omynm, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1nq9pr6.fromPointer( @@ -229853,7 +230010,7 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallenge objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_o762yo, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9kuhjb, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_hj4uui.fromPointer( @@ -229899,7 +230056,7 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallenge objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_o762yo, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9kuhjb, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_hj4uui.fromPointer( @@ -230098,7 +230255,7 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdate return objc.ObjCBlock< ffi.Void Function(objc.NSObject, objc.ObjCBlock) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_o762yo, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9kuhjb, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_di5ft6.fromPointer( @@ -230138,7 +230295,7 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdate return objc.ObjCBlock< ffi.Void Function(objc.NSObject, objc.ObjCBlock) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_o762yo, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9kuhjb, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_di5ft6.fromPointer( @@ -230375,7 +230532,7 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotoco objc.ObjCBlock, ) >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18qun1e, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_omynm, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1e3xl1p.fromPointer( @@ -230424,7 +230581,7 @@ abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotoco objc.ObjCBlock, ) >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18qun1e, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_omynm, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1e3xl1p.fromPointer( @@ -230613,7 +230770,7 @@ abstract final class ObjCBlock_ffiVoid_xpcobjectt_xpcricherrort { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1uox71a.fromPointer( @@ -230645,7 +230802,7 @@ abstract final class ObjCBlock_ffiVoid_xpcobjectt_xpcricherrort { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1uox71a.fromPointer( @@ -232708,7 +232865,7 @@ extension Observation on AVAudioSession { iOS: (false, (6, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOtherAudioPlaying); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isOtherAudioPlaying); } /// outputVolume @@ -232720,8 +232877,8 @@ extension Observation on AVAudioSession { macOS: (true, null), ); return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_outputVolume) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_outputVolume); + ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_outputVolume) + : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_outputVolume); } /// promptStyle @@ -232732,7 +232889,7 @@ extension Observation on AVAudioSession { iOS: (false, (13, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_fooyu3(_$$ref.pointer, _sel_promptStyle); + final $ret = _objc_msgSend_mkoxa1(_$$ref.pointer, _sel_promptStyle); return AVAudioSessionPromptStyle.fromValue($ret); } @@ -232744,7 +232901,7 @@ extension Observation on AVAudioSession { iOS: (false, (8, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_91o635( + return _objc_msgSend_13h8okt( _$$ref.pointer, _sel_secondaryAudioShouldBeSilencedHint, ); @@ -232977,7 +233134,7 @@ extension type PDEPanel._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [PDEPanel]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_PDEPanel, @@ -232998,7 +233155,7 @@ extension PDEPanel$Methods on PDEPanel { 'PDEPanel.PPDOptionKeyValueDidChange:ppdChoice:', iOS: (true, null), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_PPDOptionKeyValueDidChange_ppdChoice_, _$$ref$1.pointer, @@ -233010,7 +233167,7 @@ extension PDEPanel$Methods on PDEPanel { objc.NSString panelKind() { final _$$ref = object$.ref; objc.checkOsVersionInternal('PDEPanel.panelKind', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelKind); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_panelKind); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -233018,7 +233175,7 @@ extension PDEPanel$Methods on PDEPanel { objc.NSString panelName() { final _$$ref = object$.ref; objc.checkOsVersionInternal('PDEPanel.panelName', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelName); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_panelName); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -233026,7 +233183,7 @@ extension PDEPanel$Methods on PDEPanel { NSView? panelView() { final _$$ref = object$.ref; objc.checkOsVersionInternal('PDEPanel.panelView', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelView); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_panelView); return $ret.address == 0 ? null : NSView.fromPointer($ret, retain: true, release: true); @@ -233045,7 +233202,7 @@ extension PDEPanel$Methods on PDEPanel { 'printWindowWillClose:', ); } - _objc_msgSend_1s56lr9( + _objc_msgSend_1s4gila( _$$ref.pointer, _sel_printWindowWillClose_, userCanceled, @@ -233061,7 +233218,7 @@ extension PDEPanel$Methods on PDEPanel { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1dom33q( + final $ret = _objc_msgSend_1tjz0jr( _$$ref.pointer, _sel_restoreValuesAndReturnError_, $err, @@ -233082,7 +233239,7 @@ extension PDEPanel$Methods on PDEPanel { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1dom33q( + final $ret = _objc_msgSend_1tjz0jr( _$$ref.pointer, _sel_saveValuesAndReturnError_, $err, @@ -233098,7 +233255,7 @@ extension PDEPanel$Methods on PDEPanel { bool shouldHide() { final _$$ref = object$.ref; objc.checkOsVersionInternal('PDEPanel.shouldHide', iOS: (true, null)); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldHide); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_shouldHide); } /// shouldPrint @@ -233111,7 +233268,7 @@ extension PDEPanel$Methods on PDEPanel { 'shouldPrint', ); } - return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldPrint); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_shouldPrint); } /// shouldShowHelp @@ -233124,14 +233281,14 @@ extension PDEPanel$Methods on PDEPanel { 'shouldShowHelp', ); } - return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldShowHelp); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_shouldShowHelp); } /// summaryInfo objc.NSDictionary? summaryInfo() { final _$$ref = object$.ref; objc.checkOsVersionInternal('PDEPanel.summaryInfo', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_summaryInfo); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_summaryInfo); return $ret.address == 0 ? null : objc.NSDictionary.fromPointer($ret, retain: true, release: true); @@ -233150,7 +233307,7 @@ extension PDEPanel$Methods on PDEPanel { 'supportedPPDOptionKeys', ); } - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_supportedPPDOptionKeys, ); @@ -233163,7 +233320,7 @@ extension PDEPanel$Methods on PDEPanel { void willShow() { final _$$ref = object$.ref; objc.checkOsVersionInternal('PDEPanel.willShow', iOS: (true, null)); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_willShow); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_willShow); } } @@ -233528,7 +233685,7 @@ interface class PDEPanel$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_fjrv01) + >(_1uu024u_protocolTrampoline_hll3td) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233573,7 +233730,7 @@ interface class PDEPanel$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233597,7 +233754,7 @@ interface class PDEPanel$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233621,7 +233778,7 @@ interface class PDEPanel$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233647,7 +233804,7 @@ interface class PDEPanel$Builder { ffi.Bool, ) > - >(_1uu024u_protocolTrampoline_10lndml) + >(_1uu024u_protocolTrampoline_24riuf) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233682,7 +233839,7 @@ interface class PDEPanel$Builder { ffi.Pointer>, ) > - >(_1uu024u_protocolTrampoline_jp3gca) + >(_1uu024u_protocolTrampoline_1gpo89w) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233714,7 +233871,7 @@ interface class PDEPanel$Builder { ffi.Pointer>, ) > - >(_1uu024u_protocolTrampoline_jp3gca) + >(_1uu024u_protocolTrampoline_1gpo89w) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233742,7 +233899,7 @@ interface class PDEPanel$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_e3qsqz) + >(_1uu024u_protocolTrampoline_12g52hw) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233766,7 +233923,7 @@ interface class PDEPanel$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_e3qsqz) + >(_1uu024u_protocolTrampoline_12g52hw) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233790,7 +233947,7 @@ interface class PDEPanel$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_e3qsqz) + >(_1uu024u_protocolTrampoline_12g52hw) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233815,7 +233972,7 @@ interface class PDEPanel$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233841,7 +233998,7 @@ interface class PDEPanel$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1mbt9g9) + >(_1uu024u_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233866,7 +234023,7 @@ interface class PDEPanel$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_ovsamd) + >(_1uu024u_protocolTrampoline_15is1z3) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPanel, @@ -233901,7 +234058,7 @@ extension type PDEPlugIn._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [PDEPlugIn]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_PDEPlugIn, @@ -233922,7 +234079,7 @@ extension PDEPlugIn$Methods on PDEPlugIn { 'PDEPlugIn.PDEPanelsForType:withHostInfo:', iOS: (true, null), ); - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _$$ref.pointer, _sel_PDEPanelsForType_withHostInfo_, _$$ref$1.pointer, @@ -233938,7 +234095,7 @@ extension PDEPlugIn$Methods on PDEPlugIn { final _$$ref = object$.ref; final _$$ref$1 = theBundle.ref; objc.checkOsVersionInternal('PDEPlugIn.initWithBundle:', iOS: (true, null)); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithBundle_, _$$ref$1.pointer, @@ -234010,7 +234167,7 @@ interface class PDEPlugIn$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_zi5eed) + >(_1uu024u_protocolTrampoline_osi9m3) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPlugIn, @@ -234043,7 +234200,7 @@ interface class PDEPlugIn$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_xr62hr) + >(_1uu024u_protocolTrampoline_an4r6w) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPlugIn, @@ -234073,7 +234230,7 @@ extension type PDEPlugInCallbackProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [PDEPlugInCallbackProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_PDEPlugInCallbackProtocol, @@ -234089,7 +234246,7 @@ extension PDEPlugInCallbackProtocol$Methods on PDEPlugInCallbackProtocol { 'PDEPlugInCallbackProtocol.PMPrinter', iOS: (true, null), ); - return _objc_msgSend_bm6pu2(_$$ref.pointer, _sel_PMPrinter); + return _objc_msgSend_1bslk2e(_$$ref.pointer, _sel_PMPrinter); } /// pageFormat @@ -234099,7 +234256,7 @@ extension PDEPlugInCallbackProtocol$Methods on PDEPlugInCallbackProtocol { 'PDEPlugInCallbackProtocol.pageFormat', iOS: (true, null), ); - return _objc_msgSend_1dcy00i(_$$ref.pointer, _sel_pageFormat); + return _objc_msgSend_1z0zg2e(_$$ref.pointer, _sel_pageFormat); } /// ppdFile @@ -234109,7 +234266,7 @@ extension PDEPlugInCallbackProtocol$Methods on PDEPlugInCallbackProtocol { 'PDEPlugInCallbackProtocol.ppdFile', iOS: (true, null), ); - return _objc_msgSend_wbgokv(_$$ref.pointer, _sel_ppdFile); + return _objc_msgSend_inbg7y(_$$ref.pointer, _sel_ppdFile); } /// printSession @@ -234119,7 +234276,7 @@ extension PDEPlugInCallbackProtocol$Methods on PDEPlugInCallbackProtocol { 'PDEPlugInCallbackProtocol.printSession', iOS: (true, null), ); - return _objc_msgSend_esp80j(_$$ref.pointer, _sel_printSession); + return _objc_msgSend_wi8f6a(_$$ref.pointer, _sel_printSession); } /// printSettings @@ -234129,7 +234286,7 @@ extension PDEPlugInCallbackProtocol$Methods on PDEPlugInCallbackProtocol { 'PDEPlugInCallbackProtocol.printSettings', iOS: (true, null), ); - return _objc_msgSend_1tqkjbg(_$$ref.pointer, _sel_printSettings); + return _objc_msgSend_13y52fe(_$$ref.pointer, _sel_printSettings); } /// willChangePPDOptionKeyValue:ppdChoice: @@ -234144,7 +234301,7 @@ extension PDEPlugInCallbackProtocol$Methods on PDEPlugInCallbackProtocol { 'PDEPlugInCallbackProtocol.willChangePPDOptionKeyValue:ppdChoice:', iOS: (true, null), ); - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_willChangePPDOptionKeyValue_ppdChoice_, _$$ref$1.pointer, @@ -234243,7 +234400,7 @@ interface class PDEPlugInCallbackProtocol$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_h8xvuu) + >(_1uu024u_protocolTrampoline_ik4urx) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPlugInCallbackProtocol, @@ -234267,7 +234424,7 @@ interface class PDEPlugInCallbackProtocol$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1pm5t72) + >(_1uu024u_protocolTrampoline_abnjt9) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPlugInCallbackProtocol, @@ -234293,7 +234450,7 @@ interface class PDEPlugInCallbackProtocol$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_10vn635) + >(_1uu024u_protocolTrampoline_hyxwut) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPlugInCallbackProtocol, @@ -234319,7 +234476,7 @@ interface class PDEPlugInCallbackProtocol$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1ch2rph) + >(_1uu024u_protocolTrampoline_1k8r9t5) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPlugInCallbackProtocol, @@ -234345,7 +234502,7 @@ interface class PDEPlugInCallbackProtocol$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_1cwrrqo) + >(_1uu024u_protocolTrampoline_11ylsyp) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPlugInCallbackProtocol, @@ -234373,7 +234530,7 @@ interface class PDEPlugInCallbackProtocol$Builder { ffi.Pointer, ) > - >(_1uu024u_protocolTrampoline_2n06mv) + >(_1uu024u_protocolTrampoline_g6y2su) .cast(), objc.getProtocolMethodSignature( _protocol_PDEPlugInCallbackProtocol, @@ -235751,7 +235908,7 @@ extension RoutingConfiguration on AVAudioSession { iOS: (false, (7, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_availableInputs); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_availableInputs); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -235765,7 +235922,7 @@ extension RoutingConfiguration on AVAudioSession { iOS: (false, (6, 0, 0)), macOS: (true, null), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentRoute); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_currentRoute); return AVAudioSessionRouteDescription.fromPointer( $ret, retain: true, @@ -235781,7 +235938,7 @@ extension RoutingConfiguration on AVAudioSession { iOS: (false, (17, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_91o635( + return _objc_msgSend_13h8okt( _$$ref.pointer, _sel_prefersInterruptionOnRouteDisconnect, ); @@ -235797,7 +235954,7 @@ extension RoutingConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_vqual9( + final $ret = _objc_msgSend_on2yfn( _$$ref.pointer, _sel_setAggregatedIOPreference_error_, inIOType.value, @@ -235820,7 +235977,7 @@ extension RoutingConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_164wts2( + final $ret = _objc_msgSend_1d50bq7( _$$ref.pointer, _sel_setPrefersInterruptionOnRouteDisconnect_error_, inValue, @@ -235843,7 +236000,7 @@ extension RoutingConfiguration on AVAudioSession { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_164wts2( + final $ret = _objc_msgSend_1d50bq7( _$$ref.pointer, _sel_setSupportsMultichannelContent_error_, inValue, @@ -235864,7 +236021,7 @@ extension RoutingConfiguration on AVAudioSession { iOS: (false, (15, 0, 0)), macOS: (true, null), ); - return _objc_msgSend_91o635( + return _objc_msgSend_13h8okt( _$$ref.pointer, _sel_supportsMultichannelContent, ); @@ -239958,67 +240115,82 @@ final class UnnamedStruct$1 extends ffi.Struct { } final class UnnamedStruct$10 extends ffi.Struct { - @SInt16() - external int reserved; - - @SInt16() - external int subType; + @ffi.Short() + external int eraAlt; - external UnnamedUnion$12 misc; + external DateTimeRec oldDate; } final class UnnamedStruct$11 extends ffi.Struct { - @SInt16() - external int x; + @UInt8() + external int subx; + + @UInt8() + external int suby; @SInt16() - external int y; + external int eventNum; - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; + @SInt32() + external int click; + + @UInt8() + external int pressure; + + @UInt8() + external int buttonNumber; + + @UInt8() + external int subType; + + @UInt8() + external int reserved2; + + @SInt32() + external int reserved3; + + external UnnamedUnion$12 tablet; } final class UnnamedStruct$12 extends ffi.Struct { @UInt16() - external int origCharSet; + external int vendorID; - @SInt16() - external int repeat; + @UInt16() + external int tabletID; @UInt16() - external int charSet; + external int pointerID; @UInt16() - external int charCode; + external int deviceID; @UInt16() - external int keyCode; + external int systemTabletID; @UInt16() - external int origCharCode; + external int vendorPointerType; - @SInt32() - external int reserved1; + @UInt32() + external int pointerSerialNumber; + + @UInt64() + external int uniqueID; @UInt32() - external int keyboardType; + external int capabilityMask; - @SInt32() - external int reserved2; + @UInt8() + external int pointerType; - @SInt32() - external int reserved3; + @UInt8() + external int enterProximity; - @SInt32() - external int reserved4; + @SInt16() + external int reserved1; @ffi.Array.multi([4]) - external ffi.Array reserved5; + external ffi.Array reserved2; } final class UnnamedStruct$13 extends ffi.Struct { @@ -240047,145 +240219,60 @@ final class UnnamedStruct$13 extends ffi.Struct { } final class UnnamedStruct$14 extends ffi.Struct { - @SInt16() - external int x; + @UInt16() + external int origCharSet; @SInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -final class UnnamedStruct$15 extends ffi.Struct { - @ffi.Short() - external int era; - - @ffi.Short() - external int year; - - @ffi.Short() - external int month; - - @ffi.Short() - external int day; - - @ffi.Short() - external int hour; - - @ffi.Short() - external int minute; - - @ffi.Short() - external int second; + external int repeat; - @ffi.Short() - external int dayOfWeek; + @UInt16() + external int charSet; - @ffi.Short() - external int dayOfYear; + @UInt16() + external int charCode; - @ffi.Short() - external int weekOfYear; + @UInt16() + external int keyCode; - @ffi.Short() - external int pm; + @UInt16() + external int origCharCode; - @ffi.Short() - external int res1; + @SInt32() + external int reserved1; - @ffi.Short() - external int res2; + @UInt32() + external int keyboardType; - @ffi.Short() - external int res3; + @SInt32() + external int reserved2; - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int era, - required int year, - required int month, - required int day, - required int hour, - required int minute, - required int second, - required int dayOfWeek, - required int dayOfYear, - required int weekOfYear, - required int pm, - required int res1, - required int res2, - required int res3, - }) => $allocator() - ..ref.era = era - ..ref.year = year - ..ref.month = month - ..ref.day = day - ..ref.hour = hour - ..ref.minute = minute - ..ref.second = second - ..ref.dayOfWeek = dayOfWeek - ..ref.dayOfYear = dayOfYear - ..ref.weekOfYear = weekOfYear - ..ref.pm = pm - ..ref.res1 = res1 - ..ref.res2 = res2 - ..ref.res3 = res3; -} + @SInt32() + external int reserved3; -final class UnnamedStruct$16 extends ffi.Struct { - @ffi.Short() - external int eraAlt; + @SInt32() + external int reserved4; - external DateTimeRec oldDate; + @ffi.Array.multi([4]) + external ffi.Array reserved5; } -final class UnnamedStruct$17 extends ffi.Struct { +final class UnnamedStruct$15 extends ffi.Struct { @SInt32() external int x; @SInt32() external int y; - @SInt32() - external int z; - - @UInt16() - external int buttons; - - @UInt16() - external int pressure; - - external UnnamedStruct$11 tilt; - - @UInt16() - external int rotation; - - @SInt16() - external int tangentialPressure; - - @UInt16() - external int deviceID; - - @SInt16() - external int vendor1; - - @SInt16() - external int vendor2; - - @SInt16() - external int vendor3; - - @ffi.Array.multi([4]) - external ffi.Array reserved; + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; } -final class UnnamedStruct$18 extends ffi.Struct { +final class UnnamedStruct$16 extends ffi.Struct { @SInt16() external int reserved; @@ -240217,45 +240304,70 @@ final class UnnamedStruct$18 extends ffi.Struct { external ffi.Array reserved6; } +final class UnnamedStruct$17 extends ffi.Struct { + @SInt16() + external int reserved; + + @SInt16() + external int subType; + + external UnnamedUnion$14 misc; +} + +final class UnnamedStruct$18 extends ffi.Struct { + @SInt16() + external int x; + + @SInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + final class UnnamedStruct$19 extends ffi.Struct { - @UInt16() - external int vendorID; + @SInt32() + external int x; - @UInt16() - external int tabletID; + @SInt32() + external int y; - @UInt16() - external int pointerID; + @SInt32() + external int z; @UInt16() - external int deviceID; + external int buttons; @UInt16() - external int systemTabletID; + external int pressure; - @UInt16() - external int vendorPointerType; + external UnnamedStruct$18 tilt; - @UInt32() - external int pointerSerialNumber; + @UInt16() + external int rotation; - @UInt64() - external int uniqueID; + @SInt16() + external int tangentialPressure; - @UInt32() - external int capabilityMask; + @UInt16() + external int deviceID; - @UInt8() - external int pointerType; + @SInt16() + external int vendor1; - @UInt8() - external int enterProximity; + @SInt16() + external int vendor2; @SInt16() - external int reserved1; + external int vendor3; @ffi.Array.multi([4]) - external ffi.Array reserved2; + external ffi.Array reserved; } final class UnnamedStruct$2 extends ffi.Struct { @@ -240277,68 +240389,132 @@ final class UnnamedStruct$2 extends ffi.Struct { ..ref.opaque3 = opaque3; } +@ffi.Packed(2) final class UnnamedStruct$20 extends ffi.Struct { - @SInt32() - external int x; + @UInt32() + external int lLow; - @SInt32() - external int y; + @UInt32() + external int lHigh; static ffi.Pointer $allocate( ffi.Allocator $allocator, { - required int x, - required int y, + required int lLow, + required int lHigh, }) => $allocator() - ..ref.x = x - ..ref.y = y; + ..ref.lLow = lLow + ..ref.lHigh = lHigh; } final class UnnamedStruct$21 extends ffi.Struct { - @UInt8() - external int subx; + @SInt16() + external int deltaAxis1; - @UInt8() - external int suby; + @SInt16() + external int deltaAxis2; @SInt16() - external int eventNum; + external int deltaAxis3; + + @SInt16() + external int reserved1; @SInt32() - external int click; + external int fixedDeltaAxis1; - @UInt8() - external int pressure; + @SInt32() + external int fixedDeltaAxis2; - @UInt8() - external int buttonNumber; + @SInt32() + external int fixedDeltaAxis3; - @UInt8() - external int subType; + @SInt32() + external int pointDeltaAxis1; - @UInt8() - external int reserved2; + @SInt32() + external int pointDeltaAxis2; @SInt32() - external int reserved3; + external int pointDeltaAxis3; - external UnnamedUnion$14 tablet; + @ffi.Array.multi([4]) + external ffi.Array reserved8; } -@ffi.Packed(2) final class UnnamedStruct$22 extends ffi.Struct { - @UInt32() - external int lLow; + @ffi.Short() + external int era; - @UInt32() - external int lHigh; + @ffi.Short() + external int year; + + @ffi.Short() + external int month; + + @ffi.Short() + external int day; + + @ffi.Short() + external int hour; + + @ffi.Short() + external int minute; + + @ffi.Short() + external int second; + + @ffi.Short() + external int dayOfWeek; + + @ffi.Short() + external int dayOfYear; + + @ffi.Short() + external int weekOfYear; + + @ffi.Short() + external int pm; + + @ffi.Short() + external int res1; + + @ffi.Short() + external int res2; + + @ffi.Short() + external int res3; static ffi.Pointer $allocate( ffi.Allocator $allocator, { - required int lLow, - required int lHigh, + required int era, + required int year, + required int month, + required int day, + required int hour, + required int minute, + required int second, + required int dayOfWeek, + required int dayOfYear, + required int weekOfYear, + required int pm, + required int res1, + required int res2, + required int res3, }) => $allocator() - ..ref.lLow = lLow - ..ref.lHigh = lHigh; + ..ref.era = era + ..ref.year = year + ..ref.month = month + ..ref.day = day + ..ref.hour = hour + ..ref.minute = minute + ..ref.second = second + ..ref.dayOfWeek = dayOfWeek + ..ref.dayOfYear = dayOfYear + ..ref.weekOfYear = weekOfYear + ..ref.pm = pm + ..ref.res1 = res1 + ..ref.res2 = res2 + ..ref.res3 = res3; } final class UnnamedStruct$3 extends ffi.Struct { @@ -240436,37 +240612,18 @@ final class UnnamedStruct$8 extends ffi.Struct { final class UnnamedStruct$9 extends ffi.Struct { @SInt16() - external int deltaAxis1; - - @SInt16() - external int deltaAxis2; - - @SInt16() - external int deltaAxis3; + external int x; @SInt16() - external int reserved1; - - @SInt32() - external int fixedDeltaAxis1; - - @SInt32() - external int fixedDeltaAxis2; - - @SInt32() - external int fixedDeltaAxis3; - - @SInt32() - external int pointDeltaAxis1; - - @SInt32() - external int pointDeltaAxis2; - - @SInt32() - external int pointDeltaAxis3; + external int y; - @ffi.Array.multi([4]) - external ffi.Array reserved8; + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; } final class UnnamedUnion extends ffi.Union { @@ -240499,17 +240656,9 @@ final class UnnamedUnion$11 extends ffi.Union { } final class UnnamedUnion$12 extends ffi.Union { - @ffi.Array.multi([11]) - external ffi.Array F; - - @ffi.Array.multi([11]) - external ffi.Array L; - - @ffi.Array.multi([22]) - external ffi.Array S; + external NXTabletPointData point; - @ffi.Array.multi([44]) - external ffi.Array C; + external NXTabletProximityData proximity; } final class UnnamedUnion$13 extends ffi.Union { @@ -240519,9 +240668,17 @@ final class UnnamedUnion$13 extends ffi.Union { } final class UnnamedUnion$14 extends ffi.Union { - external NXTabletPointData point; + @ffi.Array.multi([11]) + external ffi.Array F; - external NXTabletProximityData proximity; + @ffi.Array.multi([11]) + external ffi.Array L; + + @ffi.Array.multi([22]) + external ffi.Array S; + + @ffi.Array.multi([44]) + external ffi.Array C; } final class UnnamedUnion$15 extends ffi.Union { @@ -241151,7 +241308,7 @@ extension type _BlockArgs_112ozxo._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_112ozxo]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_112ozxo, @@ -241161,24 +241318,24 @@ extension type _BlockArgs_112ozxo._(objc.ObjCObject object$) extension _BlockArgs_112ozxo$Methods on _BlockArgs_112ozxo { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionTask.fromPointer($ret, retain: true, release: true); } objc.ObjCBlock get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg3); return ObjCBlock_ffiVoid_NSInputStream.fromPointer( $ret, retain: true, @@ -241206,7 +241363,7 @@ extension type _BlockArgs_117e0ww._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_117e0ww]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_117e0ww, @@ -241216,7 +241373,7 @@ extension type _BlockArgs_117e0ww._(objc.ObjCObject object$) extension _BlockArgs_117e0ww$Methods on _BlockArgs_117e0ww { objc.NSError? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -241242,7 +241399,7 @@ extension type _BlockArgs_11uyayp._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_11uyayp]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_11uyayp, @@ -241252,7 +241409,7 @@ extension type _BlockArgs_11uyayp._(objc.ObjCObject object$) extension _BlockArgs_11uyayp$Methods on _BlockArgs_11uyayp { Dartdispatch_data_t? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -241260,7 +241417,7 @@ extension _BlockArgs_11uyayp$Methods on _BlockArgs_11uyayp { int get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_arg1); } } @@ -241283,7 +241440,7 @@ extension type _BlockArgs_121fmzs._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_121fmzs]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_121fmzs, @@ -241293,24 +241450,24 @@ extension type _BlockArgs_121fmzs._(objc.ObjCObject object$) extension _BlockArgs_121fmzs$Methods on _BlockArgs_121fmzs { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSXMLParser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSXMLParser.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -241334,7 +241491,7 @@ extension type _BlockArgs_12cm2y5._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_12cm2y5]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_12cm2y5, @@ -241344,7 +241501,7 @@ extension type _BlockArgs_12cm2y5._(objc.ObjCObject object$) extension _BlockArgs_12cm2y5$Methods on _BlockArgs_12cm2y5 { objc.ObjCBlock? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); @@ -241370,7 +241527,7 @@ extension type _BlockArgs_12rv5aa._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_12rv5aa]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_12rv5aa, @@ -241380,12 +241537,12 @@ extension type _BlockArgs_12rv5aa._(objc.ObjCObject object$) extension _BlockArgs_12rv5aa$Methods on _BlockArgs_12rv5aa { SecTrustRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_dcpapu(_$$ref.pointer, _sel_arg0); } SecTrustResultType get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1hbj4cd(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_140fk5d(_$$ref.pointer, _sel_arg1); return SecTrustResultType.fromValue($ret); } } @@ -241409,7 +241566,7 @@ extension type _BlockArgs_12tf05r._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_12tf05r]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_12tf05r, @@ -241419,24 +241576,24 @@ extension type _BlockArgs_12tf05r._(objc.ObjCObject object$) extension _BlockArgs_12tf05r$Methods on _BlockArgs_12tf05r { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLDownload get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLDownload.fromPointer($ret, retain: true, release: true); } NSURLResponse get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLResponse.fromPointer($ret, retain: true, release: true); } int get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg3); } } @@ -241459,7 +241616,7 @@ extension type _BlockArgs_12ykekb._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_12ykekb]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_12ykekb, @@ -241469,24 +241626,24 @@ extension type _BlockArgs_12ykekb._(objc.ObjCObject object$) extension _BlockArgs_12ykekb$Methods on _BlockArgs_12ykekb { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLProtocol get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLProtocol.fromPointer($ret, retain: true, release: true); } NSURLRequest get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLRequest.fromPointer($ret, retain: true, release: true); } NSURLResponse get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return NSURLResponse.fromPointer($ret, retain: true, release: true); } } @@ -241510,7 +241667,7 @@ extension type _BlockArgs_133h48c._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_133h48c]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_133h48c, @@ -241520,28 +241677,28 @@ extension type _BlockArgs_133h48c._(objc.ObjCObject object$) extension _BlockArgs_133h48c$Methods on _BlockArgs_133h48c { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLConnection get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLConnection.fromPointer($ret, retain: true, release: true); } DartNSInteger get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_arg2); } DartNSInteger get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_arg3); } DartNSInteger get arg4 { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg4); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_arg4); } } @@ -241564,7 +241721,7 @@ extension type _BlockArgs_136y7ma._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_136y7ma]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_136y7ma, @@ -241574,18 +241731,18 @@ extension type _BlockArgs_136y7ma._(objc.ObjCObject object$) extension _BlockArgs_136y7ma$Methods on _BlockArgs_136y7ma { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSURLHandle get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); } objc.NSData get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSData.fromPointer($ret, retain: true, release: true); } } @@ -241609,7 +241766,7 @@ extension type _BlockArgs_13g89k6._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_13g89k6]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_13g89k6, @@ -241619,7 +241776,7 @@ extension type _BlockArgs_13g89k6._(objc.ObjCObject object$) extension _BlockArgs_13g89k6$Methods on _BlockArgs_13g89k6 { CFErrorRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg0); } } @@ -241642,7 +241799,7 @@ extension type _BlockArgs_13o2rom._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_13o2rom]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_13o2rom, @@ -241652,7 +241809,7 @@ extension type _BlockArgs_13o2rom._(objc.ObjCObject object$) extension _BlockArgs_13o2rom$Methods on _BlockArgs_13o2rom { NSURLCredential? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : NSURLCredential.fromPointer($ret, retain: true, release: true); @@ -241678,7 +241835,7 @@ extension type _BlockArgs_13sb76x._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_13sb76x]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_13sb76x, @@ -241688,12 +241845,12 @@ extension type _BlockArgs_13sb76x._(objc.ObjCObject object$) extension _BlockArgs_13sb76x$Methods on _BlockArgs_13sb76x { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLDownload get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLDownload.fromPointer($ret, retain: true, release: true); } } @@ -241717,7 +241874,7 @@ extension type _BlockArgs_140cpyj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_140cpyj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_140cpyj, @@ -241727,24 +241884,24 @@ extension type _BlockArgs_140cpyj._(objc.ObjCObject object$) extension _BlockArgs_140cpyj$Methods on _BlockArgs_140cpyj { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionDataTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); } NSURLSessionDownloadTask get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return NSURLSessionDownloadTask.fromPointer( $ret, retain: true, @@ -241772,7 +241929,7 @@ extension type _BlockArgs_14dahaa._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_14dahaa]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_14dahaa, @@ -241782,18 +241939,18 @@ extension type _BlockArgs_14dahaa._(objc.ObjCObject object$) extension _BlockArgs_14dahaa$Methods on _BlockArgs_14dahaa { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLDownload get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLDownload.fromPointer($ret, retain: true, release: true); } objc.NSError get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSError.fromPointer($ret, retain: true, release: true); } } @@ -241817,7 +241974,7 @@ extension type _BlockArgs_14lm7fk._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_14lm7fk]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_14lm7fk, @@ -241827,12 +241984,12 @@ extension type _BlockArgs_14lm7fk._(objc.ObjCObject object$) extension _BlockArgs_14lm7fk$Methods on _BlockArgs_14lm7fk { CFRunLoopObserverRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1bonwe(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_18h7706(_$$ref.pointer, _sel_arg0); } DartCFOptionFlags get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_vkpxx6(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_vplevf(_$$ref.pointer, _sel_arg1); } } @@ -241855,7 +242012,7 @@ extension type _BlockArgs_15cdu5z._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_15cdu5z]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_15cdu5z, @@ -241865,30 +242022,30 @@ extension type _BlockArgs_15cdu5z._(objc.ObjCObject object$) extension _BlockArgs_15cdu5z$Methods on _BlockArgs_15cdu5z { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionDataTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); } NSCachedURLResponse get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return NSCachedURLResponse.fromPointer($ret, retain: true, release: true); } objc.ObjCBlock get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg4); return ObjCBlock_ffiVoid_NSCachedURLResponse.fromPointer( $ret, retain: true, @@ -241916,7 +242073,7 @@ extension type _BlockArgs_15jt9u5._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_15jt9u5]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_15jt9u5, @@ -241926,12 +242083,12 @@ extension type _BlockArgs_15jt9u5._(objc.ObjCObject object$) extension _BlockArgs_15jt9u5$Methods on _BlockArgs_15jt9u5 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLConnection get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLConnection.fromPointer($ret, retain: true, release: true); } } @@ -241955,7 +242112,7 @@ extension type _BlockArgs_15vjajw._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_15vjajw]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_15vjajw, @@ -241965,18 +242122,18 @@ extension type _BlockArgs_15vjajw._(objc.ObjCObject object$) extension _BlockArgs_15vjajw$Methods on _BlockArgs_15vjajw { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLConnection get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLConnection.fromPointer($ret, retain: true, release: true); } objc.NSData get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSData.fromPointer($ret, retain: true, release: true); } } @@ -242000,7 +242157,7 @@ extension type _BlockArgs_16ix251._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_16ix251]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_16ix251, @@ -242010,24 +242167,24 @@ extension type _BlockArgs_16ix251._(objc.ObjCObject object$) extension _BlockArgs_16ix251$Methods on _BlockArgs_16ix251 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionDataTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); } objc.NSData get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return objc.NSData.fromPointer($ret, retain: true, release: true); } } @@ -242051,7 +242208,7 @@ extension type _BlockArgs_16t4ozp._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_16t4ozp]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_16t4ozp, @@ -242061,18 +242218,18 @@ extension type _BlockArgs_16t4ozp._(objc.ObjCObject object$) extension _BlockArgs_16t4ozp$Methods on _BlockArgs_16t4ozp { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSNetService get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSNetService.fromPointer($ret, retain: true, release: true); } objc.NSDictionary get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSDictionary.fromPointer($ret, retain: true, release: true); } } @@ -242096,7 +242253,7 @@ extension type _BlockArgs_170i760._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_170i760]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_170i760, @@ -242106,18 +242263,18 @@ extension type _BlockArgs_170i760._(objc.ObjCObject object$) extension _BlockArgs_170i760$Methods on _BlockArgs_170i760 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSKeyedArchiver get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); } objc.ObjCObject? get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return $ret.address == 0 ? null : objc.ObjCObject($ret, retain: true, release: true); @@ -242125,7 +242282,7 @@ extension _BlockArgs_170i760$Methods on _BlockArgs_170i760 { objc.ObjCObject? get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return $ret.address == 0 ? null : objc.ObjCObject($ret, retain: true, release: true); @@ -242151,7 +242308,7 @@ extension type _BlockArgs_171cldw._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_171cldw]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_171cldw, @@ -242161,13 +242318,13 @@ extension type _BlockArgs_171cldw._(objc.ObjCObject object$) extension _BlockArgs_171cldw$Methods on _BlockArgs_171cldw { NSURLSessionDelayedRequestDisposition get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_tyifel(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_vofvy9(_$$ref.pointer, _sel_arg0); return NSURLSessionDelayedRequestDisposition.fromValue($ret); } NSURLRequest? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : NSURLRequest.fromPointer($ret, retain: true, release: true); @@ -242193,7 +242350,7 @@ extension type _BlockArgs_17jmtfx._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_17jmtfx]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_17jmtfx, @@ -242203,18 +242360,18 @@ extension type _BlockArgs_17jmtfx._(objc.ObjCObject object$) extension _BlockArgs_17jmtfx$Methods on _BlockArgs_17jmtfx { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionWebSocketTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionWebSocketTask.fromPointer( $ret, retain: true, @@ -242224,13 +242381,13 @@ extension _BlockArgs_17jmtfx$Methods on _BlockArgs_17jmtfx { NSURLSessionWebSocketCloseCode get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1rhk8uh(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_1tjd59x(_$$ref.pointer, _sel_arg3); return NSURLSessionWebSocketCloseCode.fromValue($ret); } objc.NSData? get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); return $ret.address == 0 ? null : objc.NSData.fromPointer($ret, retain: true, release: true); @@ -242256,7 +242413,7 @@ extension type _BlockArgs_17mefw7._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_17mefw7]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_17mefw7, @@ -242266,12 +242423,12 @@ extension type _BlockArgs_17mefw7._(objc.ObjCObject object$) extension _BlockArgs_17mefw7$Methods on _BlockArgs_17mefw7 { CFArrayRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_odvxky(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1vyt62e(_$$ref.pointer, _sel_arg0); } CFErrorRef get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg1); } } @@ -242294,7 +242451,7 @@ extension type _BlockArgs_17xklgp._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_17xklgp]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_17xklgp, @@ -242304,18 +242461,18 @@ extension type _BlockArgs_17xklgp._(objc.ObjCObject object$) extension _BlockArgs_17xklgp$Methods on _BlockArgs_17xklgp { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSXMLParser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSXMLParser.fromPointer($ret, retain: true, release: true); } objc.NSError get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSError.fromPointer($ret, retain: true, release: true); } } @@ -242339,7 +242496,7 @@ extension type _BlockArgs_18kc0nv._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_18kc0nv]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_18kc0nv, @@ -242349,18 +242506,18 @@ extension type _BlockArgs_18kc0nv._(objc.ObjCObject object$) extension _BlockArgs_18kc0nv$Methods on _BlockArgs_18kc0nv { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLDownload get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLDownload.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -242384,7 +242541,7 @@ extension type _BlockArgs_197qivc._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_197qivc]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_197qivc, @@ -242394,12 +242551,12 @@ extension type _BlockArgs_197qivc._(objc.ObjCObject object$) extension _BlockArgs_197qivc$Methods on _BlockArgs_197qivc { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSUserActivity get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSUserActivity.fromPointer($ret, retain: true, release: true); } } @@ -242423,7 +242580,7 @@ extension type _BlockArgs_19pyqcd._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_19pyqcd]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_19pyqcd, @@ -242433,18 +242590,18 @@ extension type _BlockArgs_19pyqcd._(objc.ObjCObject object$) extension _BlockArgs_19pyqcd$Methods on _BlockArgs_19pyqcd { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLDownload get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLDownload.fromPointer($ret, retain: true, release: true); } DartNSUInteger get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_arg2); } } @@ -242467,7 +242624,7 @@ extension type _BlockArgs_19rrqmo._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_19rrqmo]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_19rrqmo, @@ -242477,12 +242634,12 @@ extension type _BlockArgs_19rrqmo._(objc.ObjCObject object$) extension _BlockArgs_19rrqmo$Methods on _BlockArgs_19rrqmo { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSNetServiceBrowser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); } } @@ -242506,7 +242663,7 @@ extension type _BlockArgs_1ayzt6i._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1ayzt6i]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1ayzt6i, @@ -242516,36 +242673,36 @@ extension type _BlockArgs_1ayzt6i._(objc.ObjCObject object$) extension _BlockArgs_1ayzt6i$Methods on _BlockArgs_1ayzt6i { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionTask.fromPointer($ret, retain: true, release: true); } NSHTTPURLResponse get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return NSHTTPURLResponse.fromPointer($ret, retain: true, release: true); } NSURLRequest get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); return NSURLRequest.fromPointer($ret, retain: true, release: true); } objc.ObjCBlock get arg5 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg5); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg5); return ObjCBlock_ffiVoid_NSURLRequest.fromPointer( $ret, retain: true, @@ -242573,7 +242730,7 @@ extension type _BlockArgs_1ciefi0._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1ciefi0]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1ciefi0, @@ -242583,12 +242740,12 @@ extension type _BlockArgs_1ciefi0._(objc.ObjCObject object$) extension _BlockArgs_1ciefi0$Methods on _BlockArgs_1ciefi0 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSKeyedArchiver get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); } } @@ -242612,7 +242769,7 @@ extension type _BlockArgs_1e1kc88._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1e1kc88]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1e1kc88, @@ -242622,12 +242779,12 @@ extension type _BlockArgs_1e1kc88._(objc.ObjCObject object$) extension _BlockArgs_1e1kc88$Methods on _BlockArgs_1e1kc88 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSPortMessage get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSPortMessage.fromPointer($ret, retain: true, release: true); } } @@ -242651,7 +242808,7 @@ extension type _BlockArgs_1e3xl1p._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1e3xl1p]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1e3xl1p, @@ -242661,19 +242818,19 @@ extension type _BlockArgs_1e3xl1p._(objc.ObjCObject object$) extension _BlockArgs_1e3xl1p$Methods on _BlockArgs_1e3xl1p { Dartsec_protocol_metadata_t get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return objc.NSObject.fromPointer($ret, retain: true, release: true); } Dartsec_trust_t get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSObject.fromPointer($ret, retain: true, release: true); } Dartsec_protocol_verify_complete_t get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg2); return ObjCBlock_ffiVoid_bool.fromPointer( $ret, retain: true, @@ -242701,7 +242858,7 @@ extension type _BlockArgs_1ek5uoy._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1ek5uoy]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1ek5uoy, @@ -242711,18 +242868,18 @@ extension type _BlockArgs_1ek5uoy._(objc.ObjCObject object$) extension _BlockArgs_1ek5uoy$Methods on _BlockArgs_1ek5uoy { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLProtocol get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLProtocol.fromPointer($ret, retain: true, release: true); } NSURLAuthenticationChallenge get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLAuthenticationChallenge.fromPointer( $ret, retain: true, @@ -242750,7 +242907,7 @@ extension type _BlockArgs_1f64crj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1f64crj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1f64crj, @@ -242760,18 +242917,18 @@ extension type _BlockArgs_1f64crj._(objc.ObjCObject object$) extension _BlockArgs_1f64crj$Methods on _BlockArgs_1f64crj { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } objc.NSError? get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -242797,7 +242954,7 @@ extension type _BlockArgs_1fj0jrw._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1fj0jrw]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1fj0jrw, @@ -242807,12 +242964,12 @@ extension type _BlockArgs_1fj0jrw._(objc.ObjCObject object$) extension _BlockArgs_1fj0jrw$Methods on _BlockArgs_1fj0jrw { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSXMLParser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSXMLParser.fromPointer($ret, retain: true, release: true); } } @@ -242836,7 +242993,7 @@ extension type _BlockArgs_1giidhf._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1giidhf]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1giidhf, @@ -242846,18 +243003,18 @@ extension type _BlockArgs_1giidhf._(objc.ObjCObject object$) extension _BlockArgs_1giidhf$Methods on _BlockArgs_1giidhf { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } AVAudioPlayer get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return AVAudioPlayer.fromPointer($ret, retain: true, release: true); } bool get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg2); } } @@ -242880,7 +243037,7 @@ extension type _BlockArgs_1gmgda9._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1gmgda9]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1gmgda9, @@ -242890,7 +243047,7 @@ extension type _BlockArgs_1gmgda9._(objc.ObjCObject object$) extension _BlockArgs_1gmgda9$Methods on _BlockArgs_1gmgda9 { NSAppleEventDescriptor? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : NSAppleEventDescriptor.fromPointer($ret, retain: true, release: true); @@ -242898,7 +243055,7 @@ extension _BlockArgs_1gmgda9$Methods on _BlockArgs_1gmgda9 { objc.NSError? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -242924,7 +243081,7 @@ extension type _BlockArgs_1hj9xku._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1hj9xku]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1hj9xku, @@ -242934,18 +243091,18 @@ extension type _BlockArgs_1hj9xku._(objc.ObjCObject object$) extension _BlockArgs_1hj9xku$Methods on _BlockArgs_1hj9xku { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLDownload get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLDownload.fromPointer($ret, retain: true, release: true); } NSURLResponse get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLResponse.fromPointer($ret, retain: true, release: true); } } @@ -242969,7 +243126,7 @@ extension type _BlockArgs_1hs0ws6._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1hs0ws6]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1hs0ws6, @@ -242979,17 +243136,17 @@ extension type _BlockArgs_1hs0ws6._(objc.ObjCObject object$) extension _BlockArgs_1hs0ws6$Methods on _BlockArgs_1hs0ws6 { CFErrorRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg0); } ffi.Pointer get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_1vkunzi(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_1at51ut(_$$ref.pointer, _sel_arg1); } ffi.Pointer get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1wgub22(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_19ms50r(_$$ref.pointer, _sel_arg2); } } @@ -243012,7 +243169,7 @@ extension type _BlockArgs_1hwelu._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1hwelu]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1hwelu, @@ -243022,18 +243179,18 @@ extension type _BlockArgs_1hwelu._(objc.ObjCObject object$) extension _BlockArgs_1hwelu$Methods on _BlockArgs_1hwelu { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLDownload get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLDownload.fromPointer($ret, retain: true, release: true); } NSURLAuthenticationChallenge get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLAuthenticationChallenge.fromPointer( $ret, retain: true, @@ -243061,7 +243218,7 @@ extension type _BlockArgs_1i7oea2._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1i7oea2]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1i7oea2, @@ -243071,18 +243228,18 @@ extension type _BlockArgs_1i7oea2._(objc.ObjCObject object$) extension _BlockArgs_1i7oea2$Methods on _BlockArgs_1i7oea2 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLConnection get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLConnection.fromPointer($ret, retain: true, release: true); } NSURLResponse get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLResponse.fromPointer($ret, retain: true, release: true); } } @@ -243106,7 +243263,7 @@ extension type _BlockArgs_1j32c3t._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1j32c3t]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1j32c3t, @@ -243116,24 +243273,24 @@ extension type _BlockArgs_1j32c3t._(objc.ObjCObject object$) extension _BlockArgs_1j32c3t$Methods on _BlockArgs_1j32c3t { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSUserActivity get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSUserActivity.fromPointer($ret, retain: true, release: true); } objc.NSInputStream get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSInputStream.fromPointer($ret, retain: true, release: true); } objc.NSOutputStream get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); } } @@ -243157,7 +243314,7 @@ extension type _BlockArgs_1jcra61._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1jcra61]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1jcra61, @@ -243167,12 +243324,12 @@ extension type _BlockArgs_1jcra61._(objc.ObjCObject object$) extension _BlockArgs_1jcra61$Methods on _BlockArgs_1jcra61 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLProtocol get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLProtocol.fromPointer($ret, retain: true, release: true); } } @@ -243196,7 +243353,7 @@ extension type _BlockArgs_1kowxjl._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1kowxjl]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1kowxjl, @@ -243206,24 +243363,24 @@ extension type _BlockArgs_1kowxjl._(objc.ObjCObject object$) extension _BlockArgs_1kowxjl$Methods on _BlockArgs_1kowxjl { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSXMLParser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSXMLParser.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString? get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -243231,7 +243388,7 @@ extension _BlockArgs_1kowxjl$Methods on _BlockArgs_1kowxjl { objc.NSString? get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -243239,7 +243396,7 @@ extension _BlockArgs_1kowxjl$Methods on _BlockArgs_1kowxjl { objc.NSDictionary get arg5 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg5); return objc.NSDictionary.fromPointer($ret, retain: true, release: true); } } @@ -243263,7 +243420,7 @@ extension type _BlockArgs_1l7b9ji._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1l7b9ji]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1l7b9ji, @@ -243273,18 +243430,18 @@ extension type _BlockArgs_1l7b9ji._(objc.ObjCObject object$) extension _BlockArgs_1l7b9ji$Methods on _BlockArgs_1l7b9ji { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionDownloadTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionDownloadTask.fromPointer( $ret, retain: true, @@ -243294,12 +243451,12 @@ extension _BlockArgs_1l7b9ji$Methods on _BlockArgs_1l7b9ji { int get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg3); } int get arg4 { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg4); } } @@ -243322,7 +243479,7 @@ extension type _BlockArgs_1lr5l4t._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1lr5l4t]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1lr5l4t, @@ -243332,23 +243489,23 @@ extension type _BlockArgs_1lr5l4t._(objc.ObjCObject object$) extension _BlockArgs_1lr5l4t$Methods on _BlockArgs_1lr5l4t { CGDisplayStreamFrameStatus get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_jbzgy2(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_1ro3sl5(_$$ref.pointer, _sel_arg0); return CGDisplayStreamFrameStatus.fromValue($ret); } int get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_9qbz9w(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_1if3gfg(_$$ref.pointer, _sel_arg1); } IOSurfaceRef get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_11nrymb(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_1fxwmio(_$$ref.pointer, _sel_arg2); } CGDisplayStreamUpdateRef get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_16a25o7(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_6gqu6c(_$$ref.pointer, _sel_arg3); } } @@ -243371,7 +243528,7 @@ extension type _BlockArgs_1ltqoqj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1ltqoqj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1ltqoqj, @@ -243381,12 +243538,12 @@ extension type _BlockArgs_1ltqoqj._(objc.ObjCObject object$) extension _BlockArgs_1ltqoqj$Methods on _BlockArgs_1ltqoqj { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } DartNSUInteger get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_arg1); } } @@ -243409,7 +243566,7 @@ extension type _BlockArgs_1mv87bk._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1mv87bk]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1mv87bk, @@ -243419,7 +243576,7 @@ extension type _BlockArgs_1mv87bk._(objc.ObjCObject object$) extension _BlockArgs_1mv87bk$Methods on _BlockArgs_1mv87bk { objc.NSData? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSData.fromPointer($ret, retain: true, release: true); @@ -243427,7 +243584,7 @@ extension _BlockArgs_1mv87bk$Methods on _BlockArgs_1mv87bk { NSURLResponse? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : NSURLResponse.fromPointer($ret, retain: true, release: true); @@ -243435,7 +243592,7 @@ extension _BlockArgs_1mv87bk$Methods on _BlockArgs_1mv87bk { objc.NSError? get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -243461,7 +243618,7 @@ extension type _BlockArgs_1n468bj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1n468bj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1n468bj, @@ -243471,7 +243628,7 @@ extension type _BlockArgs_1n468bj._(objc.ObjCObject object$) extension _BlockArgs_1n468bj$Methods on _BlockArgs_1n468bj { Dartdispatch_data_t? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -243497,7 +243654,7 @@ extension type _BlockArgs_1n5meg5._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1n5meg5]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1n5meg5, @@ -243507,24 +243664,24 @@ extension type _BlockArgs_1n5meg5._(objc.ObjCObject object$) extension _BlockArgs_1n5meg5$Methods on _BlockArgs_1n5meg5 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionTask.fromPointer($ret, retain: true, release: true); } NSHTTPURLResponse get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return NSHTTPURLResponse.fromPointer($ret, retain: true, release: true); } } @@ -243548,7 +243705,7 @@ extension type _BlockArgs_1n6ph2._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1n6ph2]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1n6ph2, @@ -243558,7 +243715,7 @@ extension type _BlockArgs_1n6ph2._(objc.ObjCObject object$) extension _BlockArgs_1n6ph2$Methods on _BlockArgs_1n6ph2 { NSURLRequest? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : NSURLRequest.fromPointer($ret, retain: true, release: true); @@ -243584,7 +243741,7 @@ extension type _BlockArgs_1nn0na._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1nn0na]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1nn0na, @@ -243594,24 +243751,24 @@ extension type _BlockArgs_1nn0na._(objc.ObjCObject object$) extension _BlockArgs_1nn0na$Methods on _BlockArgs_1nn0na { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSNetServiceBrowser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } bool get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg3); } } @@ -243634,7 +243791,7 @@ extension type _BlockArgs_1nq9pr6._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1nq9pr6]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1nq9pr6, @@ -243644,13 +243801,13 @@ extension type _BlockArgs_1nq9pr6._(objc.ObjCObject object$) extension _BlockArgs_1nq9pr6$Methods on _BlockArgs_1nq9pr6 { Dartsec_protocol_metadata_t get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return objc.NSObject.fromPointer($ret, retain: true, release: true); } Dartdispatch_data_t? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -243658,7 +243815,7 @@ extension _BlockArgs_1nq9pr6$Methods on _BlockArgs_1nq9pr6 { Dartsec_protocol_pre_shared_key_selection_complete_t get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg2); return ObjCBlock_ffiVoid_NSObject$1.fromPointer( $ret, retain: true, @@ -243686,7 +243843,7 @@ extension type _BlockArgs_1o2efq5._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1o2efq5]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1o2efq5, @@ -243696,24 +243853,24 @@ extension type _BlockArgs_1o2efq5._(objc.ObjCObject object$) extension _BlockArgs_1o2efq5$Methods on _BlockArgs_1o2efq5 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSKeyedUnarchiver get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSKeyedUnarchiver.fromPointer($ret, retain: true, release: true); } objc.ObjCObject get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.ObjCObject($ret, retain: true, release: true); } objc.ObjCObject get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return objc.ObjCObject($ret, retain: true, release: true); } } @@ -243737,7 +243894,7 @@ extension type _BlockArgs_1o8dtl._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1o8dtl]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1o8dtl, @@ -243747,18 +243904,18 @@ extension type _BlockArgs_1o8dtl._(objc.ObjCObject object$) extension _BlockArgs_1o8dtl$Methods on _BlockArgs_1o8dtl { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLCredential get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLCredential.fromPointer($ret, retain: true, release: true); } NSURLAuthenticationChallenge get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLAuthenticationChallenge.fromPointer( $ret, retain: true, @@ -243786,7 +243943,7 @@ extension type _BlockArgs_1odc9lb._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1odc9lb]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1odc9lb, @@ -243796,18 +243953,18 @@ extension type _BlockArgs_1odc9lb._(objc.ObjCObject object$) extension _BlockArgs_1odc9lb$Methods on _BlockArgs_1odc9lb { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLConnection get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLConnection.fromPointer($ret, retain: true, release: true); } objc.NSURL get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSURL.fromPointer($ret, retain: true, release: true); } } @@ -243831,7 +243988,7 @@ extension type _BlockArgs_1oetg5g._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1oetg5g]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1oetg5g, @@ -243841,18 +243998,18 @@ extension type _BlockArgs_1oetg5g._(objc.ObjCObject object$) extension _BlockArgs_1oetg5g$Methods on _BlockArgs_1oetg5g { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSKeyedArchiver get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); } objc.ObjCObject? get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return $ret.address == 0 ? null : objc.ObjCObject($ret, retain: true, release: true); @@ -243878,7 +244035,7 @@ extension type _BlockArgs_1oftdow._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1oftdow]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1oftdow, @@ -243888,7 +244045,7 @@ extension type _BlockArgs_1oftdow._(objc.ObjCObject object$) extension _BlockArgs_1oftdow$Methods on _BlockArgs_1oftdow { NSURLResponse? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : NSURLResponse.fromPointer($ret, retain: true, release: true); @@ -243896,7 +244053,7 @@ extension _BlockArgs_1oftdow$Methods on _BlockArgs_1oftdow { objc.NSData? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : objc.NSData.fromPointer($ret, retain: true, release: true); @@ -243904,7 +244061,7 @@ extension _BlockArgs_1oftdow$Methods on _BlockArgs_1oftdow { objc.NSError? get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -243930,7 +244087,7 @@ extension type _BlockArgs_1p1ax08._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1p1ax08]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1p1ax08, @@ -243940,18 +244097,18 @@ extension type _BlockArgs_1p1ax08._(objc.ObjCObject object$) extension _BlockArgs_1p1ax08$Methods on _BlockArgs_1p1ax08 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLProtocol get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLProtocol.fromPointer($ret, retain: true, release: true); } objc.NSData get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSData.fromPointer($ret, retain: true, release: true); } } @@ -243975,7 +244132,7 @@ extension type _BlockArgs_1p7ak3v._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1p7ak3v]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1p7ak3v, @@ -243985,7 +244142,7 @@ extension type _BlockArgs_1p7ak3v._(objc.ObjCObject object$) extension _BlockArgs_1p7ak3v$Methods on _BlockArgs_1p7ak3v { objc.NSArray? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -244011,7 +244168,7 @@ extension type _BlockArgs_1pfucun._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1pfucun]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1pfucun, @@ -244021,18 +244178,18 @@ extension type _BlockArgs_1pfucun._(objc.ObjCObject object$) extension _BlockArgs_1pfucun$Methods on _BlockArgs_1pfucun { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionDownloadTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionDownloadTask.fromPointer( $ret, retain: true, @@ -244042,17 +244199,17 @@ extension _BlockArgs_1pfucun$Methods on _BlockArgs_1pfucun { int get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg3); } int get arg4 { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg4); } int get arg5 { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg5); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg5); } } @@ -244075,7 +244232,7 @@ extension type _BlockArgs_1pfw36l._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1pfw36l]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1pfw36l, @@ -244085,12 +244242,12 @@ extension type _BlockArgs_1pfw36l._(objc.ObjCObject object$) extension _BlockArgs_1pfw36l$Methods on _BlockArgs_1pfw36l { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSKeyedUnarchiver get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSKeyedUnarchiver.fromPointer($ret, retain: true, release: true); } } @@ -244114,7 +244271,7 @@ extension type _BlockArgs_1pj0but._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1pj0but]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1pj0but, @@ -244124,18 +244281,18 @@ extension type _BlockArgs_1pj0but._(objc.ObjCObject object$) extension _BlockArgs_1pj0but$Methods on _BlockArgs_1pj0but { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSNetService get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSNetService.fromPointer($ret, retain: true, release: true); } objc.NSData get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSData.fromPointer($ret, retain: true, release: true); } } @@ -244159,7 +244316,7 @@ extension type _BlockArgs_1ptzs7z._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1ptzs7z]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1ptzs7z, @@ -244169,18 +244326,18 @@ extension type _BlockArgs_1ptzs7z._(objc.ObjCObject object$) extension _BlockArgs_1ptzs7z$Methods on _BlockArgs_1ptzs7z { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSString get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -244204,7 +244361,7 @@ extension type _BlockArgs_1pvrxoh._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1pvrxoh]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1pvrxoh, @@ -244214,7 +244371,7 @@ extension type _BlockArgs_1pvrxoh._(objc.ObjCObject object$) extension _BlockArgs_1pvrxoh$Methods on _BlockArgs_1pvrxoh { objc.NSString? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -244224,8 +244381,8 @@ extension _BlockArgs_1pvrxoh$Methods on _BlockArgs_1pvrxoh { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); + ? _objc_msgSend_1wp571eStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1wp571e(_$$ref.pointer, _sel_arg1); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -244237,8 +244394,8 @@ extension _BlockArgs_1pvrxoh$Methods on _BlockArgs_1pvrxoh { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg2) - : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg2); + ? _objc_msgSend_1wp571eStret($ptr, _$$ref.pointer, _sel_arg2) + : $ptr.ref = _objc_msgSend_1wp571e(_$$ref.pointer, _sel_arg2); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -244248,7 +244405,7 @@ extension _BlockArgs_1pvrxoh$Methods on _BlockArgs_1pvrxoh { ffi.Pointer get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg3); } } @@ -244271,7 +244428,7 @@ extension type _BlockArgs_1q305zu._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1q305zu]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1q305zu, @@ -244281,7 +244438,7 @@ extension type _BlockArgs_1q305zu._(objc.ObjCObject object$) extension _BlockArgs_1q305zu$Methods on _BlockArgs_1q305zu { Dartsec_certificate_t get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return objc.NSObject.fromPointer($ret, retain: true, release: true); } } @@ -244305,7 +244462,7 @@ extension type _BlockArgs_1r6tt56._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1r6tt56]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1r6tt56, @@ -244315,18 +244472,18 @@ extension type _BlockArgs_1r6tt56._(objc.ObjCObject object$) extension _BlockArgs_1r6tt56$Methods on _BlockArgs_1r6tt56 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSXMLParser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSXMLParser.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -244350,7 +244507,7 @@ extension type _BlockArgs_1s0z6xl._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1s0z6xl]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1s0z6xl, @@ -244360,12 +244517,12 @@ extension type _BlockArgs_1s0z6xl._(objc.ObjCObject object$) extension _BlockArgs_1s0z6xl$Methods on _BlockArgs_1s0z6xl { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.ObjCBlock get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg1); return ObjCBlock_ffiVoid_NSError.fromPointer( $ret, retain: true, @@ -244393,7 +244550,7 @@ extension type _BlockArgs_1s2j81k._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1s2j81k]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1s2j81k, @@ -244403,7 +244560,7 @@ extension type _BlockArgs_1s2j81k._(objc.ObjCObject object$) extension _BlockArgs_1s2j81k$Methods on _BlockArgs_1s2j81k { int get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_arg0); } } @@ -244426,7 +244583,7 @@ extension type _BlockArgs_1siniii._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1siniii]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1siniii, @@ -244436,18 +244593,18 @@ extension type _BlockArgs_1siniii._(objc.ObjCObject object$) extension _BlockArgs_1siniii$Methods on _BlockArgs_1siniii { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSURL get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSURL.fromPointer($ret, retain: true, release: true); } NSFileVersion get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSFileVersion.fromPointer($ret, retain: true, release: true); } } @@ -244471,7 +244628,7 @@ extension type _BlockArgs_1sucxsg._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1sucxsg]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1sucxsg, @@ -244481,17 +244638,17 @@ extension type _BlockArgs_1sucxsg._(objc.ObjCObject object$) extension _BlockArgs_1sucxsg$Methods on _BlockArgs_1sucxsg { CFTypeRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } CFErrorRef get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg1); } DartBoolean get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1ko4qka(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_14cxkac(_$$ref.pointer, _sel_arg2); } } @@ -244514,7 +244671,7 @@ extension type _BlockArgs_1sy9q99._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1sy9q99]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1sy9q99, @@ -244524,18 +244681,18 @@ extension type _BlockArgs_1sy9q99._(objc.ObjCObject object$) extension _BlockArgs_1sy9q99$Methods on _BlockArgs_1sy9q99 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSCache get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSCache.fromPointer($ret, retain: true, release: true); } objc.ObjCObject get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.ObjCObject($ret, retain: true, release: true); } } @@ -244559,7 +244716,7 @@ extension type _BlockArgs_1tklz9g._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1tklz9g]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1tklz9g, @@ -244569,7 +244726,7 @@ extension type _BlockArgs_1tklz9g._(objc.ObjCObject object$) extension _BlockArgs_1tklz9g$Methods on _BlockArgs_1tklz9g { objc.ObjCObject? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.ObjCObject($ret, retain: true, release: true); @@ -244577,7 +244734,7 @@ extension _BlockArgs_1tklz9g$Methods on _BlockArgs_1tklz9g { objc.NSError? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -244603,7 +244760,7 @@ extension type _BlockArgs_1uc4fg7._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1uc4fg7]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1uc4fg7, @@ -244613,7 +244770,7 @@ extension type _BlockArgs_1uc4fg7._(objc.ObjCObject object$) extension _BlockArgs_1uc4fg7$Methods on _BlockArgs_1uc4fg7 { NSTextCheckingResult? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : NSTextCheckingResult.fromPointer($ret, retain: true, release: true); @@ -244621,12 +244778,12 @@ extension _BlockArgs_1uc4fg7$Methods on _BlockArgs_1uc4fg7 { DartNSUInteger get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_1d2nxes(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_zk1qxr(_$$ref.pointer, _sel_arg1); } ffi.Pointer get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg2); } } @@ -244649,7 +244806,7 @@ extension type _BlockArgs_1uox71a._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1uox71a]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1uox71a, @@ -244659,7 +244816,7 @@ extension type _BlockArgs_1uox71a._(objc.ObjCObject object$) extension _BlockArgs_1uox71a$Methods on _BlockArgs_1uox71a { Dartxpc_object_t? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -244667,7 +244824,7 @@ extension _BlockArgs_1uox71a$Methods on _BlockArgs_1uox71a { Dartxpc_object_t? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -244693,7 +244850,7 @@ extension type _BlockArgs_1ura76._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1ura76]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1ura76, @@ -244703,7 +244860,7 @@ extension type _BlockArgs_1ura76._(objc.ObjCObject object$) extension _BlockArgs_1ura76$Methods on _BlockArgs_1ura76 { objc.NSInputStream? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSInputStream.fromPointer($ret, retain: true, release: true); @@ -244729,7 +244886,7 @@ extension type _BlockArgs_1usrzbh._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1usrzbh]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1usrzbh, @@ -244739,24 +244896,24 @@ extension type _BlockArgs_1usrzbh._(objc.ObjCObject object$) extension _BlockArgs_1usrzbh$Methods on _BlockArgs_1usrzbh { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSSpellServer get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSSpellServer.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -244780,7 +244937,7 @@ extension type _BlockArgs_1v0sc8._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1v0sc8]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1v0sc8, @@ -244790,12 +244947,12 @@ extension type _BlockArgs_1v0sc8._(objc.ObjCObject object$) extension _BlockArgs_1v0sc8$Methods on _BlockArgs_1v0sc8 { DartSInt32 get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_arg0); } ffi.Pointer get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_1dpg4ct(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_nzd96v(_$$ref.pointer, _sel_arg1); } } @@ -244818,7 +244975,7 @@ extension type _BlockArgs_1x2wp90._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1x2wp90]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1x2wp90, @@ -244828,17 +244985,17 @@ extension type _BlockArgs_1x2wp90._(objc.ObjCObject object$) extension _BlockArgs_1x2wp90$Methods on _BlockArgs_1x2wp90 { int get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_h0gkbf(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_b7zpih(_$$ref.pointer, _sel_arg0); } CGImageRef get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_y1izi1(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_16ixh5c(_$$ref.pointer, _sel_arg1); } ffi.Pointer get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg2); } } @@ -244861,7 +245018,7 @@ extension type _BlockArgs_1xfn2k3._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1xfn2k3]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1xfn2k3, @@ -244871,30 +245028,30 @@ extension type _BlockArgs_1xfn2k3._(objc.ObjCObject object$) extension _BlockArgs_1xfn2k3$Methods on _BlockArgs_1xfn2k3 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionDataTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); } NSURLResponse get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return NSURLResponse.fromPointer($ret, retain: true, release: true); } objc.ObjCBlock get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg4); return ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.fromPointer( $ret, retain: true, @@ -244922,7 +245079,7 @@ extension type _BlockArgs_1xkpqmj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1xkpqmj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1xkpqmj, @@ -244933,23 +245090,23 @@ extension _BlockArgs_1xkpqmj$Methods on _BlockArgs_1xkpqmj { double get arg0 { final _$$ref = object$.ref; return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_arg0) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_arg0); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_arg0) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_arg0); } DartCFIndex get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_arg1); } bool get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg2); } ffi.Pointer get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg3); } } @@ -244972,7 +245129,7 @@ extension type _BlockArgs_1y4tc38._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1y4tc38]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1y4tc38, @@ -244982,12 +245139,12 @@ extension type _BlockArgs_1y4tc38._(objc.ObjCObject object$) extension _BlockArgs_1y4tc38$Methods on _BlockArgs_1y4tc38 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSFileVersion get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSFileVersion.fromPointer($ret, retain: true, release: true); } } @@ -245011,7 +245168,7 @@ extension type _BlockArgs_1y7f3jy._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1y7f3jy]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1y7f3jy, @@ -245021,7 +245178,7 @@ extension type _BlockArgs_1y7f3jy._(objc.ObjCObject object$) extension _BlockArgs_1y7f3jy$Methods on _BlockArgs_1y7f3jy { NSURLSessionResponseDisposition get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_129c579(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_1c30s85(_$$ref.pointer, _sel_arg0); return NSURLSessionResponseDisposition.fromValue($ret); } } @@ -245045,7 +245202,7 @@ extension type _BlockArgs_1z0whcc._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1z0whcc]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1z0whcc, @@ -245055,12 +245212,12 @@ extension type _BlockArgs_1z0whcc._(objc.ObjCObject object$) extension _BlockArgs_1z0whcc$Methods on _BlockArgs_1z0whcc { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLAuthenticationChallenge get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLAuthenticationChallenge.fromPointer( $ret, retain: true, @@ -245088,7 +245245,7 @@ extension type _BlockArgs_31cygh._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_31cygh]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_31cygh, @@ -245098,24 +245255,24 @@ extension type _BlockArgs_31cygh._(objc.ObjCObject object$) extension _BlockArgs_31cygh$Methods on _BlockArgs_31cygh { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionTask.fromPointer($ret, retain: true, release: true); } NSURLAuthenticationChallenge get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return NSURLAuthenticationChallenge.fromPointer( $ret, retain: true, @@ -245125,7 +245282,7 @@ extension _BlockArgs_31cygh$Methods on _BlockArgs_31cygh { objc.ObjCBlock get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg4); return ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( $ret, retain: true, @@ -245153,7 +245310,7 @@ extension type _BlockArgs_347s5u._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_347s5u]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_347s5u, @@ -245163,7 +245320,7 @@ extension type _BlockArgs_347s5u._(objc.ObjCObject object$) extension _BlockArgs_347s5u$Methods on _BlockArgs_347s5u { NSTask get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return NSTask.fromPointer($ret, retain: true, release: true); } } @@ -245187,7 +245344,7 @@ extension type _BlockArgs_3gru2r._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_3gru2r]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_3gru2r, @@ -245197,7 +245354,7 @@ extension type _BlockArgs_3gru2r._(objc.ObjCObject object$) extension _BlockArgs_3gru2r$Methods on _BlockArgs_3gru2r { objc.NSURL? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSURL.fromPointer($ret, retain: true, release: true); @@ -245205,7 +245362,7 @@ extension _BlockArgs_3gru2r$Methods on _BlockArgs_3gru2r { NSURLResponse? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : NSURLResponse.fromPointer($ret, retain: true, release: true); @@ -245213,7 +245370,7 @@ extension _BlockArgs_3gru2r$Methods on _BlockArgs_3gru2r { objc.NSError? get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -245239,7 +245396,7 @@ extension type _BlockArgs_3jhjrc._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_3jhjrc]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_3jhjrc, @@ -245249,28 +245406,28 @@ extension type _BlockArgs_3jhjrc._(objc.ObjCObject object$) extension _BlockArgs_3jhjrc$Methods on _BlockArgs_3jhjrc { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLConnection get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLConnection.fromPointer($ret, retain: true, release: true); } int get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg2); } int get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg3); } int get arg4 { final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg4); + return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg4); } } @@ -245293,7 +245450,7 @@ extension type _BlockArgs_3prg4b._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_3prg4b]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_3prg4b, @@ -245303,18 +245460,18 @@ extension type _BlockArgs_3prg4b._(objc.ObjCObject object$) extension _BlockArgs_3prg4b$Methods on _BlockArgs_3prg4b { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } AVAudioPlayer get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return AVAudioPlayer.fromPointer($ret, retain: true, release: true); } objc.NSError? get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -245340,7 +245497,7 @@ extension type _BlockArgs_43hp0b._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_43hp0b]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_43hp0b, @@ -245350,24 +245507,24 @@ extension type _BlockArgs_43hp0b._(objc.ObjCObject object$) extension _BlockArgs_43hp0b$Methods on _BlockArgs_43hp0b { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionDataTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); } NSURLSessionStreamTask get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return NSURLSessionStreamTask.fromPointer( $ret, retain: true, @@ -245395,7 +245552,7 @@ extension type _BlockArgs_461rr9._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_461rr9]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_461rr9, @@ -245405,12 +245562,12 @@ extension type _BlockArgs_461rr9._(objc.ObjCObject object$) extension _BlockArgs_461rr9$Methods on _BlockArgs_461rr9 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSURL get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSURL.fromPointer($ret, retain: true, release: true); } } @@ -245434,7 +245591,7 @@ extension type _BlockArgs_5wf51x._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_5wf51x]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_5wf51x, @@ -245444,23 +245601,23 @@ extension type _BlockArgs_5wf51x._(objc.ObjCObject object$) extension _BlockArgs_5wf51x$Methods on _BlockArgs_5wf51x { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLConnection get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLConnection.fromPointer($ret, retain: true, release: true); } int get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg2); } int get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg3); } } @@ -245483,7 +245640,7 @@ extension type _BlockArgs_5zyi3o._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_5zyi3o]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_5zyi3o, @@ -245493,17 +245650,17 @@ extension type _BlockArgs_5zyi3o._(objc.ObjCObject object$) extension _BlockArgs_5zyi3o$Methods on _BlockArgs_5zyi3o { SecKeyRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_oziolg(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_133oo4m(_$$ref.pointer, _sel_arg0); } SecKeyRef get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_oziolg(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_133oo4m(_$$ref.pointer, _sel_arg1); } CFErrorRef get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg2); } } @@ -245526,7 +245683,7 @@ extension type _BlockArgs_6tydoo._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_6tydoo]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_6tydoo, @@ -245536,7 +245693,7 @@ extension type _BlockArgs_6tydoo._(objc.ObjCObject object$) extension _BlockArgs_6tydoo$Methods on _BlockArgs_6tydoo { objc.NSDictionary? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSDictionary.fromPointer($ret, retain: true, release: true); @@ -245562,7 +245719,7 @@ extension type _BlockArgs_6yk1dr._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_6yk1dr]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_6yk1dr, @@ -245572,7 +245729,7 @@ extension type _BlockArgs_6yk1dr._(objc.ObjCObject object$) extension _BlockArgs_6yk1dr$Methods on _BlockArgs_6yk1dr { DartNSItemProviderCompletionHandler get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg0); return ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( $ret, retain: true, @@ -245582,13 +245739,13 @@ extension _BlockArgs_6yk1dr$Methods on _BlockArgs_6yk1dr { objc.ObjCObject get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.ObjCObject($ret, retain: true, release: true); } objc.NSDictionary get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSDictionary.fromPointer($ret, retain: true, release: true); } } @@ -245612,7 +245769,7 @@ extension type _BlockArgs_7xicdf._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_7xicdf]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_7xicdf, @@ -245622,12 +245779,12 @@ extension type _BlockArgs_7xicdf._(objc.ObjCObject object$) extension _BlockArgs_7xicdf$Methods on _BlockArgs_7xicdf { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } } @@ -245651,7 +245808,7 @@ extension type _BlockArgs_99x6vt._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_99x6vt]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_99x6vt, @@ -245661,29 +245818,29 @@ extension type _BlockArgs_99x6vt._(objc.ObjCObject object$) extension _BlockArgs_99x6vt$Methods on _BlockArgs_99x6vt { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionTask.fromPointer($ret, retain: true, release: true); } int get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg3); } objc.ObjCBlock get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg4); return ObjCBlock_ffiVoid_NSInputStream.fromPointer( $ret, retain: true, @@ -245711,7 +245868,7 @@ extension type _BlockArgs_abn34x._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_abn34x]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_abn34x, @@ -245721,24 +245878,24 @@ extension type _BlockArgs_abn34x._(objc.ObjCObject object$) extension _BlockArgs_abn34x$Methods on _BlockArgs_abn34x { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLProtocol get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLProtocol.fromPointer($ret, retain: true, release: true); } NSURLResponse get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLResponse.fromPointer($ret, retain: true, release: true); } NSURLCacheStoragePolicy get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_4qsw9q(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_y1vupz(_$$ref.pointer, _sel_arg3); return NSURLCacheStoragePolicy.fromValue($ret); } } @@ -245762,7 +245919,7 @@ extension type _BlockArgs_adcfsd._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_adcfsd]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_adcfsd, @@ -245772,18 +245929,18 @@ extension type _BlockArgs_adcfsd._(objc.ObjCObject object$) extension _BlockArgs_adcfsd$Methods on _BlockArgs_adcfsd { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSNetServiceBrowser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); } objc.NSDictionary get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSDictionary.fromPointer($ret, retain: true, release: true); } } @@ -245807,7 +245964,7 @@ extension type _BlockArgs_aec946._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_aec946]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_aec946, @@ -245817,18 +245974,18 @@ extension type _BlockArgs_aec946._(objc.ObjCObject object$) extension _BlockArgs_aec946$Methods on _BlockArgs_aec946 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLConnection get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLConnection.fromPointer($ret, retain: true, release: true); } NSURLAuthenticationChallenge get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLAuthenticationChallenge.fromPointer( $ret, retain: true, @@ -245856,7 +246013,7 @@ extension type _BlockArgs_awd5mj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_awd5mj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_awd5mj, @@ -245866,7 +246023,7 @@ extension type _BlockArgs_awd5mj._(objc.ObjCObject object$) extension _BlockArgs_awd5mj$Methods on _BlockArgs_awd5mj { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } } @@ -245889,7 +246046,7 @@ extension type _BlockArgs_b9s2kt._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_b9s2kt]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_b9s2kt, @@ -245899,7 +246056,7 @@ extension type _BlockArgs_b9s2kt._(objc.ObjCObject object$) extension _BlockArgs_b9s2kt$Methods on _BlockArgs_b9s2kt { objc.NSError get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return objc.NSError.fromPointer($ret, retain: true, release: true); } } @@ -245923,7 +246080,7 @@ extension type _BlockArgs_blvx9k._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_blvx9k]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_blvx9k, @@ -245933,12 +246090,12 @@ extension type _BlockArgs_blvx9k._(objc.ObjCObject object$) extension _BlockArgs_blvx9k$Methods on _BlockArgs_blvx9k { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSUserNotificationCenter get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSUserNotificationCenter.fromPointer( $ret, retain: true, @@ -245948,7 +246105,7 @@ extension _BlockArgs_blvx9k$Methods on _BlockArgs_blvx9k { NSUserNotification get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSUserNotification.fromPointer($ret, retain: true, release: true); } } @@ -245972,7 +246129,7 @@ extension type _BlockArgs_de64m._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_de64m]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_de64m, @@ -245982,18 +246139,18 @@ extension type _BlockArgs_de64m._(objc.ObjCObject object$) extension _BlockArgs_de64m$Methods on _BlockArgs_de64m { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLAuthenticationChallenge get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLAuthenticationChallenge.fromPointer( $ret, retain: true, @@ -246003,7 +246160,7 @@ extension _BlockArgs_de64m$Methods on _BlockArgs_de64m { objc.ObjCBlock get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg3); return ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( $ret, retain: true, @@ -246031,7 +246188,7 @@ extension type _BlockArgs_di5ft6._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_di5ft6]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_di5ft6, @@ -246041,13 +246198,13 @@ extension type _BlockArgs_di5ft6._(objc.ObjCObject object$) extension _BlockArgs_di5ft6$Methods on _BlockArgs_di5ft6 { Dartsec_protocol_metadata_t get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return objc.NSObject.fromPointer($ret, retain: true, release: true); } Dartsec_protocol_key_update_complete_t get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg1); return ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); } } @@ -246071,7 +246228,7 @@ extension type _BlockArgs_dmvhfp._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_dmvhfp]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_dmvhfp, @@ -246081,7 +246238,7 @@ extension type _BlockArgs_dmvhfp._(objc.ObjCObject object$) extension _BlockArgs_dmvhfp$Methods on _BlockArgs_dmvhfp { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_syi8bx(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_twa2vs(_$$ref.pointer, _sel_arg0); } } @@ -246104,7 +246261,7 @@ extension type _BlockArgs_eu2222._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_eu2222]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_eu2222, @@ -246114,13 +246271,13 @@ extension type _BlockArgs_eu2222._(objc.ObjCObject object$) extension _BlockArgs_eu2222$Methods on _BlockArgs_eu2222 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.ObjCBlock?)> get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg1); return ObjCBlock_ffiVoid_ffiVoid$2.fromPointer( $ret, retain: true, @@ -246148,7 +246305,7 @@ extension type _BlockArgs_gcznpv._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_gcznpv]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_gcznpv, @@ -246158,35 +246315,35 @@ extension type _BlockArgs_gcznpv._(objc.ObjCObject object$) extension _BlockArgs_gcznpv$Methods on _BlockArgs_gcznpv { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSSpellServer get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSSpellServer.fromPointer($ret, retain: true, release: true); } DartNSUInteger get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_arg2); } objc.NSString get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString get arg5 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg5); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -246210,7 +246367,7 @@ extension type _BlockArgs_hacm4k._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_hacm4k]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_hacm4k, @@ -246220,24 +246377,24 @@ extension type _BlockArgs_hacm4k._(objc.ObjCObject object$) extension _BlockArgs_hacm4k$Methods on _BlockArgs_hacm4k { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSXMLParser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSXMLParser.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString? get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -246245,7 +246402,7 @@ extension _BlockArgs_hacm4k$Methods on _BlockArgs_hacm4k { objc.NSString? get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -246271,7 +246428,7 @@ extension type _BlockArgs_hj4uui._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_hj4uui]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_hj4uui, @@ -246281,13 +246438,13 @@ extension type _BlockArgs_hj4uui._(objc.ObjCObject object$) extension _BlockArgs_hj4uui$Methods on _BlockArgs_hj4uui { Dartsec_protocol_metadata_t get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return objc.NSObject.fromPointer($ret, retain: true, release: true); } Dartsec_protocol_challenge_complete_t get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg1); return ObjCBlock_ffiVoid_NSObject$1.fromPointer( $ret, retain: true, @@ -246315,7 +246472,7 @@ extension type _BlockArgs_hj6v1u._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_hj6v1u]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_hj6v1u, @@ -246325,12 +246482,12 @@ extension type _BlockArgs_hj6v1u._(objc.ObjCObject object$) extension _BlockArgs_hj6v1u$Methods on _BlockArgs_hj6v1u { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } ffi.Pointer get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg1); } } @@ -246353,7 +246510,7 @@ extension type _BlockArgs_i7wriu._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_i7wriu]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_i7wriu, @@ -246363,24 +246520,24 @@ extension type _BlockArgs_i7wriu._(objc.ObjCObject object$) extension _BlockArgs_i7wriu$Methods on _BlockArgs_i7wriu { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionTask.fromPointer($ret, retain: true, release: true); } NSURLSessionTaskMetrics get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return NSURLSessionTaskMetrics.fromPointer( $ret, retain: true, @@ -246408,7 +246565,7 @@ extension type _BlockArgs_ii17hk._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_ii17hk]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_ii17hk, @@ -246436,7 +246593,7 @@ extension type _BlockArgs_j3xbuw._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_j3xbuw]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_j3xbuw, @@ -246446,17 +246603,17 @@ extension type _BlockArgs_j3xbuw._(objc.ObjCObject object$) extension _BlockArgs_j3xbuw$Methods on _BlockArgs_j3xbuw { SecTrustRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_dcpapu(_$$ref.pointer, _sel_arg0); } bool get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg1); } CFErrorRef get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg2); } } @@ -246479,7 +246636,7 @@ extension type _BlockArgs_jqba1._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_jqba1]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_jqba1, @@ -246489,30 +246646,30 @@ extension type _BlockArgs_jqba1._(objc.ObjCObject object$) extension _BlockArgs_jqba1$Methods on _BlockArgs_jqba1 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionTask.fromPointer($ret, retain: true, release: true); } NSURLRequest get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return NSURLRequest.fromPointer($ret, retain: true, release: true); } objc.ObjCBlock get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg4); return ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.fromPointer( $ret, retain: true, @@ -246540,7 +246697,7 @@ extension type _BlockArgs_jzitwn._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_jzitwn]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_jzitwn, @@ -246550,18 +246707,18 @@ extension type _BlockArgs_jzitwn._(objc.ObjCObject object$) extension _BlockArgs_jzitwn$Methods on _BlockArgs_jzitwn { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSURL get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSURL.fromPointer($ret, retain: true, release: true); } objc.NSURL get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSURL.fromPointer($ret, retain: true, release: true); } } @@ -246585,7 +246742,7 @@ extension type _BlockArgs_k1nazc._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_k1nazc]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_k1nazc, @@ -246595,18 +246752,18 @@ extension type _BlockArgs_k1nazc._(objc.ObjCObject object$) extension _BlockArgs_k1nazc$Methods on _BlockArgs_k1nazc { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionTask.fromPointer($ret, retain: true, release: true); } } @@ -246630,7 +246787,7 @@ extension type _BlockArgs_k2hpmy._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_k2hpmy]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_k2hpmy, @@ -246640,12 +246797,12 @@ extension type _BlockArgs_k2hpmy._(objc.ObjCObject object$) extension _BlockArgs_k2hpmy$Methods on _BlockArgs_k2hpmy { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSSet get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSSet.fromPointer($ret, retain: true, release: true); } } @@ -246669,7 +246826,7 @@ extension type _BlockArgs_k4eb20._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_k4eb20]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_k4eb20, @@ -246679,13 +246836,13 @@ extension type _BlockArgs_k4eb20._(objc.ObjCObject object$) extension _BlockArgs_k4eb20$Methods on _BlockArgs_k4eb20 { Dartdispatch_data_t get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return objc.NSObject.fromPointer($ret, retain: true, release: true); } int get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_arg1); } } @@ -246708,7 +246865,7 @@ extension type _BlockArgs_k4je64._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_k4je64]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_k4je64, @@ -246718,7 +246875,7 @@ extension type _BlockArgs_k4je64._(objc.ObjCObject object$) extension _BlockArgs_k4je64$Methods on _BlockArgs_k4je64 { bool get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg0); } } @@ -246741,7 +246898,7 @@ extension type _BlockArgs_kqbpyy._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_kqbpyy]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_kqbpyy, @@ -246751,7 +246908,7 @@ extension type _BlockArgs_kqbpyy._(objc.ObjCObject object$) extension _BlockArgs_kqbpyy$Methods on _BlockArgs_kqbpyy { int get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_h0gkbf(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_b7zpih(_$$ref.pointer, _sel_arg0); } } @@ -246774,7 +246931,7 @@ extension type _BlockArgs_krrtfh._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_krrtfh]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_krrtfh, @@ -246784,7 +246941,7 @@ extension type _BlockArgs_krrtfh._(objc.ObjCObject object$) extension _BlockArgs_krrtfh$Methods on _BlockArgs_krrtfh { objc.NSSecureCoding? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSSecureCoding.fromPointer($ret, retain: true, release: true); @@ -246792,7 +246949,7 @@ extension _BlockArgs_krrtfh$Methods on _BlockArgs_krrtfh { objc.NSError get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSError.fromPointer($ret, retain: true, release: true); } } @@ -246816,7 +246973,7 @@ extension type _BlockArgs_ldsont._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_ldsont]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_ldsont, @@ -246826,7 +246983,7 @@ extension type _BlockArgs_ldsont._(objc.ObjCObject object$) extension _BlockArgs_ldsont$Methods on _BlockArgs_ldsont { NSBackgroundActivityResult get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_hjhgti(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_15sni0d(_$$ref.pointer, _sel_arg0); return NSBackgroundActivityResult.fromValue($ret); } } @@ -246850,7 +247007,7 @@ extension type _BlockArgs_lmnq5k._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_lmnq5k]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_lmnq5k, @@ -246860,13 +247017,13 @@ extension type _BlockArgs_lmnq5k._(objc.ObjCObject object$) extension _BlockArgs_lmnq5k$Methods on _BlockArgs_lmnq5k { Dartdispatch_data_t get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return objc.NSObject.fromPointer($ret, retain: true, release: true); } Dartdispatch_data_t get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSObject.fromPointer($ret, retain: true, release: true); } } @@ -246890,7 +247047,7 @@ extension type _BlockArgs_n2dxuu._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_n2dxuu]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_n2dxuu, @@ -246900,7 +247057,7 @@ extension type _BlockArgs_n2dxuu._(objc.ObjCObject object$) extension _BlockArgs_n2dxuu$Methods on _BlockArgs_n2dxuu { CFRunLoopTimerRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1yyiln9(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1qvlfli(_$$ref.pointer, _sel_arg0); } } @@ -246923,7 +247080,7 @@ extension type _BlockArgs_nemba7._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_nemba7]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_nemba7, @@ -246933,24 +247090,24 @@ extension type _BlockArgs_nemba7._(objc.ObjCObject object$) extension _BlockArgs_nemba7$Methods on _BlockArgs_nemba7 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSXMLParser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSXMLParser.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString? get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -246976,7 +247133,7 @@ extension type _BlockArgs_nhk5a9._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_nhk5a9]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_nhk5a9, @@ -246986,18 +247143,18 @@ extension type _BlockArgs_nhk5a9._(objc.ObjCObject object$) extension _BlockArgs_nhk5a9$Methods on _BlockArgs_nhk5a9 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionStreamTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionStreamTask.fromPointer( $ret, retain: true, @@ -247007,13 +247164,13 @@ extension _BlockArgs_nhk5a9$Methods on _BlockArgs_nhk5a9 { objc.NSInputStream get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return objc.NSInputStream.fromPointer($ret, retain: true, release: true); } objc.NSOutputStream get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); } } @@ -247037,7 +247194,7 @@ extension type _BlockArgs_pfi7f3._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_pfi7f3]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_pfi7f3, @@ -247047,18 +247204,18 @@ extension type _BlockArgs_pfi7f3._(objc.ObjCObject object$) extension _BlockArgs_pfi7f3$Methods on _BlockArgs_pfi7f3 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSURL get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSURL.fromPointer($ret, retain: true, release: true); } objc.ObjCBlock get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg2); return ObjCBlock_ffiVoid_NSError.fromPointer( $ret, retain: true, @@ -247086,7 +247243,7 @@ extension type _BlockArgs_pm23bg._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_pm23bg]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_pm23bg, @@ -247096,18 +247253,18 @@ extension type _BlockArgs_pm23bg._(objc.ObjCObject object$) extension _BlockArgs_pm23bg$Methods on _BlockArgs_pm23bg { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionDownloadTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionDownloadTask.fromPointer( $ret, retain: true, @@ -247117,7 +247274,7 @@ extension _BlockArgs_pm23bg$Methods on _BlockArgs_pm23bg { objc.NSURL get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return objc.NSURL.fromPointer($ret, retain: true, release: true); } } @@ -247141,7 +247298,7 @@ extension type _BlockArgs_q6fcam._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_q6fcam]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_q6fcam, @@ -247151,7 +247308,7 @@ extension type _BlockArgs_q6fcam._(objc.ObjCObject object$) extension _BlockArgs_q6fcam$Methods on _BlockArgs_q6fcam { objc.ObjCObject? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.ObjCObject($ret, retain: true, release: true); @@ -247161,8 +247318,8 @@ extension _BlockArgs_q6fcam$Methods on _BlockArgs_q6fcam { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); + ? _objc_msgSend_1wp571eStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1wp571e(_$$ref.pointer, _sel_arg1); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -247172,7 +247329,7 @@ extension _BlockArgs_q6fcam$Methods on _BlockArgs_q6fcam { ffi.Pointer get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg2); } } @@ -247195,7 +247352,7 @@ extension type _BlockArgs_qjjttc._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_qjjttc]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_qjjttc, @@ -247205,24 +247362,24 @@ extension type _BlockArgs_qjjttc._(objc.ObjCObject object$) extension _BlockArgs_qjjttc$Methods on _BlockArgs_qjjttc { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionTask.fromPointer($ret, retain: true, release: true); } objc.NSError? get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -247248,7 +247405,7 @@ extension type _BlockArgs_qss5hc._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_qss5hc]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_qss5hc, @@ -247258,18 +247415,18 @@ extension type _BlockArgs_qss5hc._(objc.ObjCObject object$) extension _BlockArgs_qss5hc$Methods on _BlockArgs_qss5hc { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionStreamTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionStreamTask.fromPointer( $ret, retain: true, @@ -247297,7 +247454,7 @@ extension type _BlockArgs_rojepe._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_rojepe]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_rojepe, @@ -247307,18 +247464,18 @@ extension type _BlockArgs_rojepe._(objc.ObjCObject object$) extension _BlockArgs_rojepe$Methods on _BlockArgs_rojepe { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLProtocol get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLProtocol.fromPointer($ret, retain: true, release: true); } objc.NSError get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSError.fromPointer($ret, retain: true, release: true); } } @@ -247342,7 +247499,7 @@ extension type _BlockArgs_s52y0g._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_s52y0g]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_s52y0g, @@ -247352,18 +247509,18 @@ extension type _BlockArgs_s52y0g._(objc.ObjCObject object$) extension _BlockArgs_s52y0g$Methods on _BlockArgs_s52y0g { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLProtocol get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLProtocol.fromPointer($ret, retain: true, release: true); } NSCachedURLResponse get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSCachedURLResponse.fromPointer($ret, retain: true, release: true); } } @@ -247387,7 +247544,7 @@ extension type _BlockArgs_syyzqk._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_syyzqk]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_syyzqk, @@ -247397,12 +247554,12 @@ extension type _BlockArgs_syyzqk._(objc.ObjCObject object$) extension _BlockArgs_syyzqk$Methods on _BlockArgs_syyzqk { bool get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg0); } objc.NSError? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -247428,7 +247585,7 @@ extension type _BlockArgs_t3r59d._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_t3r59d]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_t3r59d, @@ -247438,24 +247595,24 @@ extension type _BlockArgs_t3r59d._(objc.ObjCObject object$) extension _BlockArgs_t3r59d$Methods on _BlockArgs_t3r59d { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSXMLParser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSXMLParser.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString? get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -247463,7 +247620,7 @@ extension _BlockArgs_t3r59d$Methods on _BlockArgs_t3r59d { objc.NSString? get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -247471,7 +247628,7 @@ extension _BlockArgs_t3r59d$Methods on _BlockArgs_t3r59d { objc.NSString? get arg5 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg5); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -247497,7 +247654,7 @@ extension type _BlockArgs_tbof01._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_tbof01]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_tbof01, @@ -247507,7 +247664,7 @@ extension type _BlockArgs_tbof01._(objc.ObjCObject object$) extension _BlockArgs_tbof01$Methods on _BlockArgs_tbof01 { int get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_rmqcvp(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1fspiy4(_$$ref.pointer, _sel_arg0); } } @@ -247530,7 +247687,7 @@ extension type _BlockArgs_teaic5._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_teaic5]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_teaic5, @@ -247540,18 +247697,18 @@ extension type _BlockArgs_teaic5._(objc.ObjCObject object$) extension _BlockArgs_teaic5$Methods on _BlockArgs_teaic5 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSURLHandle get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -247575,7 +247732,7 @@ extension type _BlockArgs_tikg8p._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_tikg8p]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_tikg8p, @@ -247585,24 +247742,24 @@ extension type _BlockArgs_tikg8p._(objc.ObjCObject object$) extension _BlockArgs_tikg8p$Methods on _BlockArgs_tikg8p { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSNetService get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSNetService.fromPointer($ret, retain: true, release: true); } objc.NSInputStream get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSInputStream.fromPointer($ret, retain: true, release: true); } objc.NSOutputStream get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); } } @@ -247626,7 +247783,7 @@ extension type _BlockArgs_truc42._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_truc42]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_truc42, @@ -247636,12 +247793,12 @@ extension type _BlockArgs_truc42._(objc.ObjCObject object$) extension _BlockArgs_truc42$Methods on _BlockArgs_truc42 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSExtensionContext get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSExtensionContext.fromPointer($ret, retain: true, release: true); } } @@ -247665,7 +247822,7 @@ extension type _BlockArgs_u4a6zc._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_u4a6zc]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_u4a6zc, @@ -247675,12 +247832,12 @@ extension type _BlockArgs_u4a6zc._(objc.ObjCObject object$) extension _BlockArgs_u4a6zc$Methods on _BlockArgs_u4a6zc { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSNetService get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSNetService.fromPointer($ret, retain: true, release: true); } } @@ -247704,7 +247861,7 @@ extension type _BlockArgs_u65oe8._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_u65oe8]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_u65oe8, @@ -247714,13 +247871,13 @@ extension type _BlockArgs_u65oe8._(objc.ObjCObject object$) extension _BlockArgs_u65oe8$Methods on _BlockArgs_u65oe8 { NSURLSessionAuthChallengeDisposition get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1vfc2dz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_19co5ux(_$$ref.pointer, _sel_arg0); return NSURLSessionAuthChallengeDisposition.fromValue($ret); } NSURLCredential? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : NSURLCredential.fromPointer($ret, retain: true, release: true); @@ -247746,7 +247903,7 @@ extension type _BlockArgs_uul9n9._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_uul9n9]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_uul9n9, @@ -247756,12 +247913,12 @@ extension type _BlockArgs_uul9n9._(objc.ObjCObject object$) extension _BlockArgs_uul9n9$Methods on _BlockArgs_uul9n9 { bool get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg0); } Dartdispatch_data_t? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -247769,7 +247926,7 @@ extension _BlockArgs_uul9n9$Methods on _BlockArgs_uul9n9 { int get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_arg2); } } @@ -247792,7 +247949,7 @@ extension type _BlockArgs_v1zq3a._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_v1zq3a]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_v1zq3a, @@ -247802,17 +247959,17 @@ extension type _BlockArgs_v1zq3a._(objc.ObjCObject object$) extension _BlockArgs_v1zq3a$Methods on _BlockArgs_v1zq3a { CGRenderingBufferProviderRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1p2ukjz(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_xnca0g(_$$ref.pointer, _sel_arg0); } ffi.Pointer get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_1vkunzi(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_1at51ut(_$$ref.pointer, _sel_arg1); } ffi.Pointer get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1wgub22(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_19ms50r(_$$ref.pointer, _sel_arg2); } } @@ -247835,7 +247992,7 @@ extension type _BlockArgs_v5xz31._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_v5xz31]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_v5xz31, @@ -247845,7 +248002,7 @@ extension type _BlockArgs_v5xz31._(objc.ObjCObject object$) extension _BlockArgs_v5xz31$Methods on _BlockArgs_v5xz31 { NSFileHandle get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return NSFileHandle.fromPointer($ret, retain: true, release: true); } } @@ -247869,7 +248026,7 @@ extension type _BlockArgs_v8in3._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_v8in3]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_v8in3, @@ -247879,7 +248036,7 @@ extension type _BlockArgs_v8in3._(objc.ObjCObject object$) extension _BlockArgs_v8in3$Methods on _BlockArgs_v8in3 { objc.NSDictionary get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return objc.NSDictionary.fromPointer($ret, retain: true, release: true); } @@ -247887,8 +248044,8 @@ extension _BlockArgs_v8in3$Methods on _BlockArgs_v8in3 { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); + ? _objc_msgSend_1wp571eStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1wp571e(_$$ref.pointer, _sel_arg1); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -247898,7 +248055,7 @@ extension _BlockArgs_v8in3$Methods on _BlockArgs_v8in3 { ffi.Pointer get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg2); } } @@ -247921,7 +248078,7 @@ extension type _BlockArgs_vaglpl._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_vaglpl]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_vaglpl, @@ -247931,18 +248088,18 @@ extension type _BlockArgs_vaglpl._(objc.ObjCObject object$) extension _BlockArgs_vaglpl$Methods on _BlockArgs_vaglpl { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSXMLParser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSXMLParser.fromPointer($ret, retain: true, release: true); } objc.NSData get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSData.fromPointer($ret, retain: true, release: true); } } @@ -247966,7 +248123,7 @@ extension type _BlockArgs_vgtcpl._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_vgtcpl]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_vgtcpl, @@ -247976,7 +248133,7 @@ extension type _BlockArgs_vgtcpl._(objc.ObjCObject object$) extension _BlockArgs_vgtcpl$Methods on _BlockArgs_vgtcpl { CFArrayRef get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_odvxky(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1vyt62e(_$$ref.pointer, _sel_arg0); } } @@ -247999,7 +248156,7 @@ extension type _BlockArgs_vpa8ji._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_vpa8ji]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_vpa8ji, @@ -248009,18 +248166,18 @@ extension type _BlockArgs_vpa8ji._(objc.ObjCObject object$) extension _BlockArgs_vpa8ji$Methods on _BlockArgs_vpa8ji { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLConnection get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLConnection.fromPointer($ret, retain: true, release: true); } objc.NSError get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSError.fromPointer($ret, retain: true, release: true); } } @@ -248044,7 +248201,7 @@ extension type _BlockArgs_vx7t4i._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_vx7t4i]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_vx7t4i, @@ -248054,30 +248211,30 @@ extension type _BlockArgs_vx7t4i._(objc.ObjCObject object$) extension _BlockArgs_vx7t4i$Methods on _BlockArgs_vx7t4i { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSXMLParser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSXMLParser.fromPointer($ret, retain: true, release: true); } objc.NSString get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return objc.NSString.fromPointer($ret, retain: true, release: true); } objc.NSString? get arg4 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -248085,7 +248242,7 @@ extension _BlockArgs_vx7t4i$Methods on _BlockArgs_vx7t4i { objc.NSString? get arg5 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg5); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -248111,7 +248268,7 @@ extension type _BlockArgs_wpl2gn._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_wpl2gn]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_wpl2gn, @@ -248121,12 +248278,12 @@ extension type _BlockArgs_wpl2gn._(objc.ObjCObject object$) extension _BlockArgs_wpl2gn$Methods on _BlockArgs_wpl2gn { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } bool get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg1); } } @@ -248149,7 +248306,7 @@ extension type _BlockArgs_wtbfzi._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_wtbfzi]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_wtbfzi, @@ -248159,7 +248316,7 @@ extension type _BlockArgs_wtbfzi._(objc.ObjCObject object$) extension _BlockArgs_wtbfzi$Methods on _BlockArgs_wtbfzi { NSCachedURLResponse? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : NSCachedURLResponse.fromPointer($ret, retain: true, release: true); @@ -248185,7 +248342,7 @@ extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_x5cg0, @@ -248195,7 +248352,7 @@ extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { objc.NSData? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSData.fromPointer($ret, retain: true, release: true); @@ -248203,7 +248360,7 @@ extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { objc.NSError? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -248229,7 +248386,7 @@ extension type _BlockArgs_x7mqjz._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_x7mqjz]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_x7mqjz, @@ -248239,24 +248396,24 @@ extension type _BlockArgs_x7mqjz._(objc.ObjCObject object$) extension _BlockArgs_x7mqjz$Methods on _BlockArgs_x7mqjz { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSNetServiceBrowser get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); } NSNetService get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSNetService.fromPointer($ret, retain: true, release: true); } bool get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg3); } } @@ -248279,7 +248436,7 @@ extension type _BlockArgs_xcrg5s._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_xcrg5s]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_xcrg5s, @@ -248289,18 +248446,18 @@ extension type _BlockArgs_xcrg5s._(objc.ObjCObject object$) extension _BlockArgs_xcrg5s$Methods on _BlockArgs_xcrg5s { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionWebSocketTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionWebSocketTask.fromPointer( $ret, retain: true, @@ -248310,7 +248467,7 @@ extension _BlockArgs_xcrg5s$Methods on _BlockArgs_xcrg5s { objc.NSString? get arg3 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -248336,7 +248493,7 @@ extension type _BlockArgs_xh08sz._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_xh08sz]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_xh08sz, @@ -248346,34 +248503,34 @@ extension type _BlockArgs_xh08sz._(objc.ObjCObject object$) extension _BlockArgs_xh08sz$Methods on _BlockArgs_xh08sz { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } NSURLSession get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return NSURLSession.fromPointer($ret, retain: true, release: true); } NSURLSessionTask get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return NSURLSessionTask.fromPointer($ret, retain: true, release: true); } int get arg3 { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg3); } int get arg4 { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg4); } int get arg5 { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg5); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg5); } } @@ -248396,7 +248553,7 @@ extension type _BlockArgs_xj71gr._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_xj71gr]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_xj71gr, @@ -248406,12 +248563,12 @@ extension type _BlockArgs_xj71gr._(objc.ObjCObject object$) extension _BlockArgs_xj71gr$Methods on _BlockArgs_xj71gr { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSURLHandle get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); } } @@ -248435,7 +248592,7 @@ extension type _BlockArgs_zgaes8._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_zgaes8]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_zgaes8, @@ -248445,17 +248602,17 @@ extension type _BlockArgs_zgaes8._(objc.ObjCObject object$) extension _BlockArgs_zgaes8$Methods on _BlockArgs_zgaes8 { DartBoolean get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1ko4qka(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_14cxkac(_$$ref.pointer, _sel_arg0); } DartUInt64 get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_1p4gbjy(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_10fx4x0(_$$ref.pointer, _sel_arg1); } CFErrorRef get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg2); } } @@ -248860,7 +249017,7 @@ final class _NXEvent extends ffi.Struct { @SInt32() external int type; - external UnnamedStruct$20 location; + external UnnamedStruct$15 location; @UInt64() external int time$1; @@ -248925,7 +249082,7 @@ final class _NXTabletPointData extends ffi.Struct { @UInt16() external int pressure; - external UnnamedStruct$14 tilt; + external UnnamedStruct$9 tilt; @UInt16() external int rotation; @@ -254165,6 +254322,27 @@ final _class_AVAudioPlayer = objc.getClass( _class_AVAudioPlayer_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_AVAudioSession', +) +external ffi.Pointer _class_AVAudioSession_raw; +final _class_AVAudioSession = objc.getClass( + "AVAudioSession", + () => ffi.Native.addressOf>( + _class_AVAudioSession_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_AVAudioSessionPortDescription', +) +external ffi.Pointer +_class_AVAudioSessionPortDescription_raw; +final _class_AVAudioSessionPortDescription = objc.getClass( + "AVAudioSessionPortDescription", + () => ffi.Native.addressOf>( + _class_AVAudioSessionPortDescription_raw, + ).cast(), +); @ffi.Native>(symbol: 'OBJC_CLASS_\$_NSArray') external ffi.Pointer _class_NSArray_raw; final _class_NSArray = objc.getClass( @@ -254225,6 +254403,16 @@ final _class_NSDate = objc.getClass( _class_NSDate_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSDateFormatter', +) +external ffi.Pointer _class_NSDateFormatter_raw; +final _class_NSDateFormatter = objc.getClass( + "NSDateFormatter", + () => ffi.Native.addressOf>( + _class_NSDateFormatter_raw, + ).cast(), +); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NSDictionary', ) @@ -254235,6 +254423,76 @@ final _class_NSDictionary = objc.getClass( _class_NSDictionary_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSException', +) +external ffi.Pointer _class_NSException_raw; +final _class_NSException = objc.getClass( + "NSException", + () => ffi.Native.addressOf>( + _class_NSException_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSFileHandle', +) +external ffi.Pointer _class_NSFileHandle_raw; +final _class_NSFileHandle = objc.getClass( + "NSFileHandle", + () => ffi.Native.addressOf>( + _class_NSFileHandle_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSFileManager', +) +external ffi.Pointer _class_NSFileManager_raw; +final _class_NSFileManager = objc.getClass( + "NSFileManager", + () => ffi.Native.addressOf>( + _class_NSFileManager_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSFileWrapper', +) +external ffi.Pointer _class_NSFileWrapper_raw; +final _class_NSFileWrapper = objc.getClass( + "NSFileWrapper", + () => ffi.Native.addressOf>( + _class_NSFileWrapper_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSHTTPCookieStorage', +) +external ffi.Pointer _class_NSHTTPCookieStorage_raw; +final _class_NSHTTPCookieStorage = objc.getClass( + "NSHTTPCookieStorage", + () => ffi.Native.addressOf>( + _class_NSHTTPCookieStorage_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSIndexPath', +) +external ffi.Pointer _class_NSIndexPath_raw; +final _class_NSIndexPath = objc.getClass( + "NSIndexPath", + () => ffi.Native.addressOf>( + _class_NSIndexPath_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSInflectionRule', +) +external ffi.Pointer _class_NSInflectionRule_raw; +final _class_NSInflectionRule = objc.getClass( + "NSInflectionRule", + () => ffi.Native.addressOf>( + _class_NSInflectionRule_raw, + ).cast(), +); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NSInputStream', ) @@ -254263,6 +254521,16 @@ final _class_NSLocale = objc.getClass( _class_NSLocale_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMorphology', +) +external ffi.Pointer _class_NSMorphology_raw; +final _class_NSMorphology = objc.getClass( + "NSMorphology", + () => ffi.Native.addressOf>( + _class_NSMorphology_raw, + ).cast(), +); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NSMutableArray', ) @@ -254273,6 +254541,16 @@ final _class_NSMutableArray = objc.getClass( _class_NSMutableArray_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableAttributedString', +) +external ffi.Pointer _class_NSMutableAttributedString_raw; +final _class_NSMutableAttributedString = objc.getClass( + "NSMutableAttributedString", + () => ffi.Native.addressOf>( + _class_NSMutableAttributedString_raw, + ).cast(), +); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NSMutableData', ) @@ -254323,6 +254601,16 @@ final _class_NSMutableString = objc.getClass( _class_NSMutableString_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableURLRequest', +) +external ffi.Pointer _class_NSMutableURLRequest_raw; +final _class_NSMutableURLRequest = objc.getClass( + "NSMutableURLRequest", + () => ffi.Native.addressOf>( + _class_NSMutableURLRequest_raw, + ).cast(), +); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NSNotification', ) @@ -254341,6 +254629,16 @@ final _class_NSNumber = objc.getClass( _class_NSNumber_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSNumberFormatter', +) +external ffi.Pointer _class_NSNumberFormatter_raw; +final _class_NSNumberFormatter = objc.getClass( + "NSNumberFormatter", + () => ffi.Native.addressOf>( + _class_NSNumberFormatter_raw, + ).cast(), +); @ffi.Native>(symbol: 'OBJC_CLASS_\$_NSObject') external ffi.Pointer _class_NSObject_raw; final _class_NSObject = objc.getClass( @@ -254349,6 +254647,16 @@ final _class_NSObject = objc.getClass( _class_NSObject_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSOperationQueue', +) +external ffi.Pointer _class_NSOperationQueue_raw; +final _class_NSOperationQueue = objc.getClass( + "NSOperationQueue", + () => ffi.Native.addressOf>( + _class_NSOperationQueue_raw, + ).cast(), +); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NSOrderedSet', ) @@ -254359,6 +254667,16 @@ final _class_NSOrderedSet = objc.getClass( _class_NSOrderedSet_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSOrthography', +) +external ffi.Pointer _class_NSOrthography_raw; +final _class_NSOrthography = objc.getClass( + "NSOrthography", + () => ffi.Native.addressOf>( + _class_NSOrthography_raw, + ).cast(), +); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NSOutputStream', ) @@ -254369,6 +254687,46 @@ final _class_NSOutputStream = objc.getClass( _class_NSOutputStream_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSPointerArray', +) +external ffi.Pointer _class_NSPointerArray_raw; +final _class_NSPointerArray = objc.getClass( + "NSPointerArray", + () => ffi.Native.addressOf>( + _class_NSPointerArray_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSProcessInfo', +) +external ffi.Pointer _class_NSProcessInfo_raw; +final _class_NSProcessInfo = objc.getClass( + "NSProcessInfo", + () => ffi.Native.addressOf>( + _class_NSProcessInfo_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSProtocolChecker', +) +external ffi.Pointer _class_NSProtocolChecker_raw; +final _class_NSProtocolChecker = objc.getClass( + "NSProtocolChecker", + () => ffi.Native.addressOf>( + _class_NSProtocolChecker_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSRegularExpression', +) +external ffi.Pointer _class_NSRegularExpression_raw; +final _class_NSRegularExpression = objc.getClass( + "NSRegularExpression", + () => ffi.Native.addressOf>( + _class_NSRegularExpression_raw, + ).cast(), +); @ffi.Native>(symbol: 'OBJC_CLASS_\$_NSRunLoop') external ffi.Pointer _class_NSRunLoop_raw; final _class_NSRunLoop = objc.getClass( @@ -254377,6 +254735,24 @@ final _class_NSRunLoop = objc.getClass( _class_NSRunLoop_raw, ).cast(), ); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSScanner') +external ffi.Pointer _class_NSScanner_raw; +final _class_NSScanner = objc.getClass( + "NSScanner", + () => ffi.Native.addressOf>( + _class_NSScanner_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSScriptClassDescription', +) +external ffi.Pointer _class_NSScriptClassDescription_raw; +final _class_NSScriptClassDescription = objc.getClass( + "NSScriptClassDescription", + () => ffi.Native.addressOf>( + _class_NSScriptClassDescription_raw, + ).cast(), +); @ffi.Native>(symbol: 'OBJC_CLASS_\$_NSSet') external ffi.Pointer _class_NSSet_raw; final _class_NSSet = objc.getClass( @@ -254401,6 +254777,34 @@ final _class_NSString = objc.getClass( _class_NSString_raw, ).cast(), ); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSTask') +external ffi.Pointer _class_NSTask_raw; +final _class_NSTask = objc.getClass( + "NSTask", + () => ffi.Native.addressOf>( + _class_NSTask_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSTextCheckingResult', +) +external ffi.Pointer _class_NSTextCheckingResult_raw; +final _class_NSTextCheckingResult = objc.getClass( + "NSTextCheckingResult", + () => ffi.Native.addressOf>( + _class_NSTextCheckingResult_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSTimeZone', +) +external ffi.Pointer _class_NSTimeZone_raw; +final _class_NSTimeZone = objc.getClass( + "NSTimeZone", + () => ffi.Native.addressOf>( + _class_NSTimeZone_raw, + ).cast(), +); @ffi.Native>(symbol: 'OBJC_CLASS_\$_NSURL') external ffi.Pointer _class_NSURL_raw; final _class_NSURL = objc.getClass( @@ -254409,6 +254813,96 @@ final _class_NSURL = objc.getClass( _class_NSURL_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLCache', +) +external ffi.Pointer _class_NSURLCache_raw; +final _class_NSURLCache = objc.getClass( + "NSURLCache", + () => ffi.Native.addressOf>( + _class_NSURLCache_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLConnection', +) +external ffi.Pointer _class_NSURLConnection_raw; +final _class_NSURLConnection = objc.getClass( + "NSURLConnection", + () => ffi.Native.addressOf>( + _class_NSURLConnection_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLCredential', +) +external ffi.Pointer _class_NSURLCredential_raw; +final _class_NSURLCredential = objc.getClass( + "NSURLCredential", + () => ffi.Native.addressOf>( + _class_NSURLCredential_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLCredentialStorage', +) +external ffi.Pointer _class_NSURLCredentialStorage_raw; +final _class_NSURLCredentialStorage = objc.getClass( + "NSURLCredentialStorage", + () => ffi.Native.addressOf>( + _class_NSURLCredentialStorage_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLProtectionSpace', +) +external ffi.Pointer _class_NSURLProtectionSpace_raw; +final _class_NSURLProtectionSpace = objc.getClass( + "NSURLProtectionSpace", + () => ffi.Native.addressOf>( + _class_NSURLProtectionSpace_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLProtocol', +) +external ffi.Pointer _class_NSURLProtocol_raw; +final _class_NSURLProtocol = objc.getClass( + "NSURLProtocol", + () => ffi.Native.addressOf>( + _class_NSURLProtocol_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLRequest', +) +external ffi.Pointer _class_NSURLRequest_raw; +final _class_NSURLRequest = objc.getClass( + "NSURLRequest", + () => ffi.Native.addressOf>( + _class_NSURLRequest_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLSession', +) +external ffi.Pointer _class_NSURLSession_raw; +final _class_NSURLSession = objc.getClass( + "NSURLSession", + () => ffi.Native.addressOf>( + _class_NSURLSession_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLSessionConfiguration', +) +external ffi.Pointer _class_NSURLSessionConfiguration_raw; +final _class_NSURLSessionConfiguration = objc.getClass( + "NSURLSessionConfiguration", + () => ffi.Native.addressOf>( + _class_NSURLSessionConfiguration_raw, + ).cast(), +); @ffi.Native>(symbol: 'OBJC_CLASS_\$_NSValue') external ffi.Pointer _class_NSValue_raw; final _class_NSValue = objc.getClass( @@ -254418,1601 +254912,1621 @@ final _class_NSValue = objc.getClass( ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_bklti2', + symbol: 'OBJC_CLASS_\$_NSXMLElement', +) +external ffi.Pointer _class_NSXMLElement_raw; +final _class_NSXMLElement = objc.getClass( + "NSXMLElement", + () => ffi.Native.addressOf>( + _class_NSXMLElement_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSXMLParser', +) +external ffi.Pointer _class_NSXMLParser_raw; +final _class_NSXMLParser = objc.getClass( + "NSXMLParser", + () => ffi.Native.addressOf>( + _class_NSXMLParser_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xfiv91', ) external ffi.Pointer _class__BlockArgs_112ozxo_raw; final _class__BlockArgs_112ozxo = objc.getClass( - "_1uu024u_BlockArgs_bklti2", + "_1uu024u_BlockArgs_xfiv91", () => ffi.Native.addressOf>( _class__BlockArgs_112ozxo_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_117e0ww_raw; final _class__BlockArgs_117e0ww = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_117e0ww_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18kzm6a', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1gt4vek', ) external ffi.Pointer _class__BlockArgs_11uyayp_raw; final _class__BlockArgs_11uyayp = objc.getClass( - "_1uu024u_BlockArgs_18kzm6a", + "_1uu024u_BlockArgs_1gt4vek", () => ffi.Native.addressOf>( _class__BlockArgs_11uyayp_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_121fmzs_raw; final _class__BlockArgs_121fmzs = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_121fmzs_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_f167m6', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_wv523k', ) external ffi.Pointer _class__BlockArgs_12cm2y5_raw; final _class__BlockArgs_12cm2y5 = objc.getClass( - "_1uu024u_BlockArgs_f167m6", + "_1uu024u_BlockArgs_wv523k", () => ffi.Native.addressOf>( _class__BlockArgs_12cm2y5_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_gwxhxt', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_13ecogf', ) external ffi.Pointer _class__BlockArgs_12rv5aa_raw; final _class__BlockArgs_12rv5aa = objc.getClass( - "_1uu024u_BlockArgs_gwxhxt", + "_1uu024u_BlockArgs_13ecogf", () => ffi.Native.addressOf>( _class__BlockArgs_12rv5aa_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_34xzuf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1axgza4', ) external ffi.Pointer _class__BlockArgs_12tf05r_raw; final _class__BlockArgs_12tf05r = objc.getClass( - "_1uu024u_BlockArgs_34xzuf", + "_1uu024u_BlockArgs_1axgza4", () => ffi.Native.addressOf>( _class__BlockArgs_12tf05r_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_12ykekb_raw; final _class__BlockArgs_12ykekb = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_12ykekb_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15e9dqx', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_14pv86t', ) external ffi.Pointer _class__BlockArgs_133h48c_raw; final _class__BlockArgs_133h48c = objc.getClass( - "_1uu024u_BlockArgs_15e9dqx", + "_1uu024u_BlockArgs_14pv86t", () => ffi.Native.addressOf>( _class__BlockArgs_133h48c_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_136y7ma_raw; final _class__BlockArgs_136y7ma = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_136y7ma_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1kwz7d1', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1v2rdu1', ) external ffi.Pointer _class__BlockArgs_13g89k6_raw; final _class__BlockArgs_13g89k6 = objc.getClass( - "_1uu024u_BlockArgs_1kwz7d1", + "_1uu024u_BlockArgs_1v2rdu1", () => ffi.Native.addressOf>( _class__BlockArgs_13g89k6_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_13o2rom_raw; final _class__BlockArgs_13o2rom = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_13o2rom_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_13sb76x_raw; final _class__BlockArgs_13sb76x = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_13sb76x_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_140cpyj_raw; final _class__BlockArgs_140cpyj = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_140cpyj_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_14dahaa_raw; final _class__BlockArgs_14dahaa = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_14dahaa_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_tg5tbv', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_igu5g9', ) external ffi.Pointer _class__BlockArgs_14lm7fk_raw; final _class__BlockArgs_14lm7fk = objc.getClass( - "_1uu024u_BlockArgs_tg5tbv", + "_1uu024u_BlockArgs_igu5g9", () => ffi.Native.addressOf>( _class__BlockArgs_14lm7fk_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_vh5xcw', ) external ffi.Pointer _class__BlockArgs_15cdu5z_raw; final _class__BlockArgs_15cdu5z = objc.getClass( - "_1uu024u_BlockArgs_xx612k", + "_1uu024u_BlockArgs_vh5xcw", () => ffi.Native.addressOf>( _class__BlockArgs_15cdu5z_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_15jt9u5_raw; final _class__BlockArgs_15jt9u5 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_15jt9u5_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_15vjajw_raw; final _class__BlockArgs_15vjajw = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_15vjajw_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_16ix251_raw; final _class__BlockArgs_16ix251 = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_16ix251_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_16t4ozp_raw; final _class__BlockArgs_16t4ozp = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_16t4ozp_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_170i760_raw; final _class__BlockArgs_170i760 = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_170i760_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1otpo83', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hf68d1', ) external ffi.Pointer _class__BlockArgs_171cldw_raw; final _class__BlockArgs_171cldw = objc.getClass( - "_1uu024u_BlockArgs_1otpo83", + "_1uu024u_BlockArgs_hf68d1", () => ffi.Native.addressOf>( _class__BlockArgs_171cldw_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1lx650f', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8odg2g', ) external ffi.Pointer _class__BlockArgs_17jmtfx_raw; final _class__BlockArgs_17jmtfx = objc.getClass( - "_1uu024u_BlockArgs_1lx650f", + "_1uu024u_BlockArgs_8odg2g", () => ffi.Native.addressOf>( _class__BlockArgs_17jmtfx_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15ghdzk', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1nn5emo', ) external ffi.Pointer _class__BlockArgs_17mefw7_raw; final _class__BlockArgs_17mefw7 = objc.getClass( - "_1uu024u_BlockArgs_15ghdzk", + "_1uu024u_BlockArgs_1nn5emo", () => ffi.Native.addressOf>( _class__BlockArgs_17mefw7_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_17xklgp_raw; final _class__BlockArgs_17xklgp = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_17xklgp_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_18kc0nv_raw; final _class__BlockArgs_18kc0nv = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_18kc0nv_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_197qivc_raw; final _class__BlockArgs_197qivc = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_197qivc_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_wy9lus', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1kovpyp', ) external ffi.Pointer _class__BlockArgs_19pyqcd_raw; final _class__BlockArgs_19pyqcd = objc.getClass( - "_1uu024u_BlockArgs_wy9lus", + "_1uu024u_BlockArgs_1kovpyp", () => ffi.Native.addressOf>( _class__BlockArgs_19pyqcd_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_19rrqmo_raw; final _class__BlockArgs_19rrqmo = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_19rrqmo_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_l2g8ke', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ye2vt3', ) external ffi.Pointer _class__BlockArgs_1ayzt6i_raw; final _class__BlockArgs_1ayzt6i = objc.getClass( - "_1uu024u_BlockArgs_l2g8ke", + "_1uu024u_BlockArgs_ye2vt3", () => ffi.Native.addressOf>( _class__BlockArgs_1ayzt6i_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_1ciefi0_raw; final _class__BlockArgs_1ciefi0 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_1ciefi0_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_1e1kc88_raw; final _class__BlockArgs_1e1kc88 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_1e1kc88_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18qun1e', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_omynm', ) external ffi.Pointer _class__BlockArgs_1e3xl1p_raw; final _class__BlockArgs_1e3xl1p = objc.getClass( - "_1uu024u_BlockArgs_18qun1e", + "_1uu024u_BlockArgs_omynm", () => ffi.Native.addressOf>( _class__BlockArgs_1e3xl1p_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1ek5uoy_raw; final _class__BlockArgs_1ek5uoy = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1ek5uoy_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1f64crj_raw; final _class__BlockArgs_1f64crj = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1f64crj_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_1fj0jrw_raw; final _class__BlockArgs_1fj0jrw = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_1fj0jrw_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_zzthnb', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1e0wztw', ) external ffi.Pointer _class__BlockArgs_1giidhf_raw; final _class__BlockArgs_1giidhf = objc.getClass( - "_1uu024u_BlockArgs_zzthnb", + "_1uu024u_BlockArgs_1e0wztw", () => ffi.Native.addressOf>( _class__BlockArgs_1giidhf_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', ) external ffi.Pointer _class__BlockArgs_1gmgda9_raw; final _class__BlockArgs_1gmgda9 = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", + "_1uu024u_BlockArgs_1k6sg8i", () => ffi.Native.addressOf>( _class__BlockArgs_1gmgda9_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1hj9xku_raw; final _class__BlockArgs_1hj9xku = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1hj9xku_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1yrznn1', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6s6vc3', ) external ffi.Pointer _class__BlockArgs_1hs0ws6_raw; final _class__BlockArgs_1hs0ws6 = objc.getClass( - "_1uu024u_BlockArgs_1yrznn1", + "_1uu024u_BlockArgs_6s6vc3", () => ffi.Native.addressOf>( _class__BlockArgs_1hs0ws6_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1hwelu_raw; final _class__BlockArgs_1hwelu = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1hwelu_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1i7oea2_raw; final _class__BlockArgs_1i7oea2 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1i7oea2_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_1j32c3t_raw; final _class__BlockArgs_1j32c3t = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_1j32c3t_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_1jcra61_raw; final _class__BlockArgs_1jcra61 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_1jcra61_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_5rmak2', ) external ffi.Pointer _class__BlockArgs_1kowxjl_raw; final _class__BlockArgs_1kowxjl = objc.getClass( - "_1uu024u_BlockArgs_m09tr7", + "_1uu024u_BlockArgs_5rmak2", () => ffi.Native.addressOf>( _class__BlockArgs_1kowxjl_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ly2579', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1cgt9gb', ) external ffi.Pointer _class__BlockArgs_1l7b9ji_raw; final _class__BlockArgs_1l7b9ji = objc.getClass( - "_1uu024u_BlockArgs_ly2579", + "_1uu024u_BlockArgs_1cgt9gb", () => ffi.Native.addressOf>( _class__BlockArgs_1l7b9ji_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_du1izn', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1xaf9kl', ) external ffi.Pointer _class__BlockArgs_1lr5l4t_raw; final _class__BlockArgs_1lr5l4t = objc.getClass( - "_1uu024u_BlockArgs_du1izn", + "_1uu024u_BlockArgs_1xaf9kl", () => ffi.Native.addressOf>( _class__BlockArgs_1lr5l4t_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_zuf90e', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1nr9pmw', ) external ffi.Pointer _class__BlockArgs_1ltqoqj_raw; final _class__BlockArgs_1ltqoqj = objc.getClass( - "_1uu024u_BlockArgs_zuf90e", + "_1uu024u_BlockArgs_1nr9pmw", () => ffi.Native.addressOf>( _class__BlockArgs_1ltqoqj_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_13ytbkt', ) external ffi.Pointer _class__BlockArgs_1mv87bk_raw; final _class__BlockArgs_1mv87bk = objc.getClass( - "_1uu024u_BlockArgs_r8gdi7", + "_1uu024u_BlockArgs_13ytbkt", () => ffi.Native.addressOf>( _class__BlockArgs_1mv87bk_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_1n468bj_raw; final _class__BlockArgs_1n468bj = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_1n468bj_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_1n5meg5_raw; final _class__BlockArgs_1n5meg5 = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_1n5meg5_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_1n6ph2_raw; final _class__BlockArgs_1n6ph2 = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_1n6ph2_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8acz2h', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9km3ll', ) external ffi.Pointer _class__BlockArgs_1nn0na_raw; final _class__BlockArgs_1nn0na = objc.getClass( - "_1uu024u_BlockArgs_8acz2h", + "_1uu024u_BlockArgs_9km3ll", () => ffi.Native.addressOf>( _class__BlockArgs_1nn0na_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18qun1e', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_omynm', ) external ffi.Pointer _class__BlockArgs_1nq9pr6_raw; final _class__BlockArgs_1nq9pr6 = objc.getClass( - "_1uu024u_BlockArgs_18qun1e", + "_1uu024u_BlockArgs_omynm", () => ffi.Native.addressOf>( _class__BlockArgs_1nq9pr6_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_1o2efq5_raw; final _class__BlockArgs_1o2efq5 = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_1o2efq5_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1o8dtl_raw; final _class__BlockArgs_1o8dtl = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1o8dtl_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1odc9lb_raw; final _class__BlockArgs_1odc9lb = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1odc9lb_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1oetg5g_raw; final _class__BlockArgs_1oetg5g = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1oetg5g_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_13ytbkt', ) external ffi.Pointer _class__BlockArgs_1oftdow_raw; final _class__BlockArgs_1oftdow = objc.getClass( - "_1uu024u_BlockArgs_r8gdi7", + "_1uu024u_BlockArgs_13ytbkt", () => ffi.Native.addressOf>( _class__BlockArgs_1oftdow_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1p1ax08_raw; final _class__BlockArgs_1p1ax08 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1p1ax08_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_1p7ak3v_raw; final _class__BlockArgs_1p7ak3v = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_1p7ak3v_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_h68abb', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_132zq0k', ) external ffi.Pointer _class__BlockArgs_1pfucun_raw; final _class__BlockArgs_1pfucun = objc.getClass( - "_1uu024u_BlockArgs_h68abb", + "_1uu024u_BlockArgs_132zq0k", () => ffi.Native.addressOf>( _class__BlockArgs_1pfucun_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_1pfw36l_raw; final _class__BlockArgs_1pfw36l = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_1pfw36l_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1pj0but_raw; final _class__BlockArgs_1pj0but = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1pj0but_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1ptzs7z_raw; final _class__BlockArgs_1ptzs7z = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1ptzs7z_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_lmc3p5', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1ua0j4l', ) external ffi.Pointer _class__BlockArgs_1pvrxoh_raw; final _class__BlockArgs_1pvrxoh = objc.getClass( - "_1uu024u_BlockArgs_lmc3p5", + "_1uu024u_BlockArgs_1ua0j4l", () => ffi.Native.addressOf>( _class__BlockArgs_1pvrxoh_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_1q305zu_raw; final _class__BlockArgs_1q305zu = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_1q305zu_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1r6tt56_raw; final _class__BlockArgs_1r6tt56 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1r6tt56_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1l4hxwm', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1y86ja3', ) external ffi.Pointer _class__BlockArgs_1s0z6xl_raw; final _class__BlockArgs_1s0z6xl = objc.getClass( - "_1uu024u_BlockArgs_1l4hxwm", + "_1uu024u_BlockArgs_1y86ja3", () => ffi.Native.addressOf>( _class__BlockArgs_1s0z6xl_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9o8504', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1u5s7gl', ) external ffi.Pointer _class__BlockArgs_1s2j81k_raw; final _class__BlockArgs_1s2j81k = objc.getClass( - "_1uu024u_BlockArgs_9o8504", + "_1uu024u_BlockArgs_1u5s7gl", () => ffi.Native.addressOf>( _class__BlockArgs_1s2j81k_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1siniii_raw; final _class__BlockArgs_1siniii = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1siniii_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_b3tf6o', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_d96no7', ) external ffi.Pointer _class__BlockArgs_1sucxsg_raw; final _class__BlockArgs_1sucxsg = objc.getClass( - "_1uu024u_BlockArgs_b3tf6o", + "_1uu024u_BlockArgs_d96no7", () => ffi.Native.addressOf>( _class__BlockArgs_1sucxsg_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_1sy9q99_raw; final _class__BlockArgs_1sy9q99 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_1sy9q99_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', ) external ffi.Pointer _class__BlockArgs_1tklz9g_raw; final _class__BlockArgs_1tklz9g = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", + "_1uu024u_BlockArgs_1k6sg8i", () => ffi.Native.addressOf>( _class__BlockArgs_1tklz9g_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6jvo9y', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1gdgpbj', ) external ffi.Pointer _class__BlockArgs_1uc4fg7_raw; final _class__BlockArgs_1uc4fg7 = objc.getClass( - "_1uu024u_BlockArgs_6jvo9y", + "_1uu024u_BlockArgs_1gdgpbj", () => ffi.Native.addressOf>( _class__BlockArgs_1uc4fg7_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', ) external ffi.Pointer _class__BlockArgs_1uox71a_raw; final _class__BlockArgs_1uox71a = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", + "_1uu024u_BlockArgs_1k6sg8i", () => ffi.Native.addressOf>( _class__BlockArgs_1uox71a_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_1ura76_raw; final _class__BlockArgs_1ura76 = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_1ura76_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_1usrzbh_raw; final _class__BlockArgs_1usrzbh = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_1usrzbh_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_l3f29g', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_bls7f3', ) external ffi.Pointer _class__BlockArgs_1v0sc8_raw; final _class__BlockArgs_1v0sc8 = objc.getClass( - "_1uu024u_BlockArgs_l3f29g", + "_1uu024u_BlockArgs_bls7f3", () => ffi.Native.addressOf>( _class__BlockArgs_1v0sc8_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_11t2oft', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1krhbbh', ) external ffi.Pointer _class__BlockArgs_1x2wp90_raw; final _class__BlockArgs_1x2wp90 = objc.getClass( - "_1uu024u_BlockArgs_11t2oft", + "_1uu024u_BlockArgs_1krhbbh", () => ffi.Native.addressOf>( _class__BlockArgs_1x2wp90_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_vh5xcw', ) external ffi.Pointer _class__BlockArgs_1xfn2k3_raw; final _class__BlockArgs_1xfn2k3 = objc.getClass( - "_1uu024u_BlockArgs_xx612k", + "_1uu024u_BlockArgs_vh5xcw", () => ffi.Native.addressOf>( _class__BlockArgs_1xfn2k3_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_132rcs6', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1lkkdea', ) external ffi.Pointer _class__BlockArgs_1xkpqmj_raw; final _class__BlockArgs_1xkpqmj = objc.getClass( - "_1uu024u_BlockArgs_132rcs6", + "_1uu024u_BlockArgs_1lkkdea", () => ffi.Native.addressOf>( _class__BlockArgs_1xkpqmj_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_1y4tc38_raw; final _class__BlockArgs_1y4tc38 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_1y4tc38_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_16sve1d', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1jl1qga', ) external ffi.Pointer _class__BlockArgs_1y7f3jy_raw; final _class__BlockArgs_1y7f3jy = objc.getClass( - "_1uu024u_BlockArgs_16sve1d", + "_1uu024u_BlockArgs_1jl1qga", () => ffi.Native.addressOf>( _class__BlockArgs_1y7f3jy_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_1z0whcc_raw; final _class__BlockArgs_1z0whcc = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_1z0whcc_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_vh5xcw', ) external ffi.Pointer _class__BlockArgs_31cygh_raw; final _class__BlockArgs_31cygh = objc.getClass( - "_1uu024u_BlockArgs_xx612k", + "_1uu024u_BlockArgs_vh5xcw", () => ffi.Native.addressOf>( _class__BlockArgs_31cygh_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_347s5u_raw; final _class__BlockArgs_347s5u = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_347s5u_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_13ytbkt', ) external ffi.Pointer _class__BlockArgs_3gru2r_raw; final _class__BlockArgs_3gru2r = objc.getClass( - "_1uu024u_BlockArgs_r8gdi7", + "_1uu024u_BlockArgs_13ytbkt", () => ffi.Native.addressOf>( _class__BlockArgs_3gru2r_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1qf1qkl', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1fswoub', ) external ffi.Pointer _class__BlockArgs_3jhjrc_raw; final _class__BlockArgs_3jhjrc = objc.getClass( - "_1uu024u_BlockArgs_1qf1qkl", + "_1uu024u_BlockArgs_1fswoub", () => ffi.Native.addressOf>( _class__BlockArgs_3jhjrc_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_3prg4b_raw; final _class__BlockArgs_3prg4b = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_3prg4b_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_43hp0b_raw; final _class__BlockArgs_43hp0b = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_43hp0b_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_461rr9_raw; final _class__BlockArgs_461rr9 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_461rr9_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9crvvv', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1b0c39y', ) external ffi.Pointer _class__BlockArgs_5wf51x_raw; final _class__BlockArgs_5wf51x = objc.getClass( - "_1uu024u_BlockArgs_9crvvv", + "_1uu024u_BlockArgs_1b0c39y", () => ffi.Native.addressOf>( _class__BlockArgs_5wf51x_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1rz4y3', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1po7bn3', ) external ffi.Pointer _class__BlockArgs_5zyi3o_raw; final _class__BlockArgs_5zyi3o = objc.getClass( - "_1uu024u_BlockArgs_1rz4y3", + "_1uu024u_BlockArgs_1po7bn3", () => ffi.Native.addressOf>( _class__BlockArgs_5zyi3o_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_6tydoo_raw; final _class__BlockArgs_6tydoo = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_6tydoo_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1b3bb6a', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_90wr7u', ) external ffi.Pointer _class__BlockArgs_6yk1dr_raw; final _class__BlockArgs_6yk1dr = objc.getClass( - "_1uu024u_BlockArgs_1b3bb6a", + "_1uu024u_BlockArgs_90wr7u", () => ffi.Native.addressOf>( _class__BlockArgs_6yk1dr_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_7xicdf_raw; final _class__BlockArgs_7xicdf = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_7xicdf_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_jyim80', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_36nsue', ) external ffi.Pointer _class__BlockArgs_99x6vt_raw; final _class__BlockArgs_99x6vt = objc.getClass( - "_1uu024u_BlockArgs_jyim80", + "_1uu024u_BlockArgs_36nsue", () => ffi.Native.addressOf>( _class__BlockArgs_99x6vt_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1j7coyk', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1mrpyvj', ) external ffi.Pointer _class__BlockArgs_abn34x_raw; final _class__BlockArgs_abn34x = objc.getClass( - "_1uu024u_BlockArgs_1j7coyk", + "_1uu024u_BlockArgs_1mrpyvj", () => ffi.Native.addressOf>( _class__BlockArgs_abn34x_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_adcfsd_raw; final _class__BlockArgs_adcfsd = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_adcfsd_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_aec946_raw; final _class__BlockArgs_aec946 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_aec946_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ovsamd', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15is1z3', ) external ffi.Pointer _class__BlockArgs_awd5mj_raw; final _class__BlockArgs_awd5mj = objc.getClass( - "_1uu024u_BlockArgs_ovsamd", + "_1uu024u_BlockArgs_15is1z3", () => ffi.Native.addressOf>( _class__BlockArgs_awd5mj_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_b9s2kt_raw; final _class__BlockArgs_b9s2kt = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_b9s2kt_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_blvx9k_raw; final _class__BlockArgs_blvx9k = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_blvx9k_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_bklti2', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xfiv91', ) external ffi.Pointer _class__BlockArgs_de64m_raw; final _class__BlockArgs_de64m = objc.getClass( - "_1uu024u_BlockArgs_bklti2", + "_1uu024u_BlockArgs_xfiv91", () => ffi.Native.addressOf>( _class__BlockArgs_de64m_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_o762yo', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9kuhjb', ) external ffi.Pointer _class__BlockArgs_di5ft6_raw; final _class__BlockArgs_di5ft6 = objc.getClass( - "_1uu024u_BlockArgs_o762yo", + "_1uu024u_BlockArgs_9kuhjb", () => ffi.Native.addressOf>( _class__BlockArgs_di5ft6_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1ctgxtl', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_12exqd', ) external ffi.Pointer _class__BlockArgs_dmvhfp_raw; final _class__BlockArgs_dmvhfp = objc.getClass( - "_1uu024u_BlockArgs_1ctgxtl", + "_1uu024u_BlockArgs_12exqd", () => ffi.Native.addressOf>( _class__BlockArgs_dmvhfp_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1l4hxwm', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1y86ja3', ) external ffi.Pointer _class__BlockArgs_eu2222_raw; final _class__BlockArgs_eu2222 = objc.getClass( - "_1uu024u_BlockArgs_1l4hxwm", + "_1uu024u_BlockArgs_1y86ja3", () => ffi.Native.addressOf>( _class__BlockArgs_eu2222_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1cn988u', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9dub82', ) external ffi.Pointer _class__BlockArgs_gcznpv_raw; final _class__BlockArgs_gcznpv = objc.getClass( - "_1uu024u_BlockArgs_1cn988u", + "_1uu024u_BlockArgs_9dub82", () => ffi.Native.addressOf>( _class__BlockArgs_gcznpv_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8jfq1p', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1yjs6wb', ) external ffi.Pointer _class__BlockArgs_hacm4k_raw; final _class__BlockArgs_hacm4k = objc.getClass( - "_1uu024u_BlockArgs_8jfq1p", + "_1uu024u_BlockArgs_1yjs6wb", () => ffi.Native.addressOf>( _class__BlockArgs_hacm4k_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_o762yo', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9kuhjb', ) external ffi.Pointer _class__BlockArgs_hj4uui_raw; final _class__BlockArgs_hj4uui = objc.getClass( - "_1uu024u_BlockArgs_o762yo", + "_1uu024u_BlockArgs_9kuhjb", () => ffi.Native.addressOf>( _class__BlockArgs_hj4uui_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1037nh9', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_le6lv4', ) external ffi.Pointer _class__BlockArgs_hj6v1u_raw; final _class__BlockArgs_hj6v1u = objc.getClass( - "_1uu024u_BlockArgs_1037nh9", + "_1uu024u_BlockArgs_le6lv4", () => ffi.Native.addressOf>( _class__BlockArgs_hj6v1u_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_i7wriu_raw; final _class__BlockArgs_i7wriu = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_i7wriu_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1pl9qdv', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_h9i570', ) external ffi.Pointer _class__BlockArgs_ii17hk_raw; final _class__BlockArgs_ii17hk = objc.getClass( - "_1uu024u_BlockArgs_1pl9qdv", + "_1uu024u_BlockArgs_h9i570", () => ffi.Native.addressOf>( _class__BlockArgs_ii17hk_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_k73ff5', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_gz0078', ) external ffi.Pointer _class__BlockArgs_j3xbuw_raw; final _class__BlockArgs_j3xbuw = objc.getClass( - "_1uu024u_BlockArgs_k73ff5", + "_1uu024u_BlockArgs_gz0078", () => ffi.Native.addressOf>( _class__BlockArgs_j3xbuw_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_vh5xcw', ) external ffi.Pointer _class__BlockArgs_jqba1_raw; final _class__BlockArgs_jqba1 = objc.getClass( - "_1uu024u_BlockArgs_xx612k", + "_1uu024u_BlockArgs_vh5xcw", () => ffi.Native.addressOf>( _class__BlockArgs_jqba1_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_jzitwn_raw; final _class__BlockArgs_jzitwn = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_jzitwn_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_k1nazc_raw; final _class__BlockArgs_k1nazc = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_k1nazc_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_k2hpmy_raw; final _class__BlockArgs_k2hpmy = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_k2hpmy_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18kzm6a', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1gt4vek', ) external ffi.Pointer _class__BlockArgs_k4eb20_raw; final _class__BlockArgs_k4eb20 = objc.getClass( - "_1uu024u_BlockArgs_18kzm6a", + "_1uu024u_BlockArgs_1gt4vek", () => ffi.Native.addressOf>( _class__BlockArgs_k4eb20_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1s56lr9', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1s4gila', ) external ffi.Pointer _class__BlockArgs_k4je64_raw; final _class__BlockArgs_k4je64 = objc.getClass( - "_1uu024u_BlockArgs_1s56lr9", + "_1uu024u_BlockArgs_1s4gila", () => ffi.Native.addressOf>( _class__BlockArgs_k4je64_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6enxqz', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ec9pb6', ) external ffi.Pointer _class__BlockArgs_kqbpyy_raw; final _class__BlockArgs_kqbpyy = objc.getClass( - "_1uu024u_BlockArgs_6enxqz", + "_1uu024u_BlockArgs_ec9pb6", () => ffi.Native.addressOf>( _class__BlockArgs_kqbpyy_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', ) external ffi.Pointer _class__BlockArgs_krrtfh_raw; final _class__BlockArgs_krrtfh = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", + "_1uu024u_BlockArgs_1k6sg8i", () => ffi.Native.addressOf>( _class__BlockArgs_krrtfh_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_10ssdng', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_l4qveu', ) external ffi.Pointer _class__BlockArgs_ldsont_raw; final _class__BlockArgs_ldsont = objc.getClass( - "_1uu024u_BlockArgs_10ssdng", + "_1uu024u_BlockArgs_l4qveu", () => ffi.Native.addressOf>( _class__BlockArgs_ldsont_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', ) external ffi.Pointer _class__BlockArgs_lmnq5k_raw; final _class__BlockArgs_lmnq5k = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", + "_1uu024u_BlockArgs_1k6sg8i", () => ffi.Native.addressOf>( _class__BlockArgs_lmnq5k_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1dqvvol', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_kuxxg7', ) external ffi.Pointer _class__BlockArgs_n2dxuu_raw; final _class__BlockArgs_n2dxuu = objc.getClass( - "_1uu024u_BlockArgs_1dqvvol", + "_1uu024u_BlockArgs_kuxxg7", () => ffi.Native.addressOf>( _class__BlockArgs_n2dxuu_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_nemba7_raw; final _class__BlockArgs_nemba7 = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_nemba7_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8jfq1p', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1yjs6wb', ) external ffi.Pointer _class__BlockArgs_nhk5a9_raw; final _class__BlockArgs_nhk5a9 = objc.getClass( - "_1uu024u_BlockArgs_8jfq1p", + "_1uu024u_BlockArgs_1yjs6wb", () => ffi.Native.addressOf>( _class__BlockArgs_nhk5a9_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_jk1ljc', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_4m73qm', ) external ffi.Pointer _class__BlockArgs_pfi7f3_raw; final _class__BlockArgs_pfi7f3 = objc.getClass( - "_1uu024u_BlockArgs_jk1ljc", + "_1uu024u_BlockArgs_4m73qm", () => ffi.Native.addressOf>( _class__BlockArgs_pfi7f3_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_pm23bg_raw; final _class__BlockArgs_pm23bg = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_pm23bg_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1a22wz', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1agrddk', ) external ffi.Pointer _class__BlockArgs_q6fcam_raw; final _class__BlockArgs_q6fcam = objc.getClass( - "_1uu024u_BlockArgs_1a22wz", + "_1uu024u_BlockArgs_1agrddk", () => ffi.Native.addressOf>( _class__BlockArgs_q6fcam_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_qjjttc_raw; final _class__BlockArgs_qjjttc = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_qjjttc_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_qss5hc_raw; final _class__BlockArgs_qss5hc = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_qss5hc_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_rojepe_raw; final _class__BlockArgs_rojepe = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_rojepe_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_s52y0g_raw; final _class__BlockArgs_s52y0g = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_s52y0g_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hk7n97', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6ngya9', ) external ffi.Pointer _class__BlockArgs_syyzqk_raw; final _class__BlockArgs_syyzqk = objc.getClass( - "_1uu024u_BlockArgs_hk7n97", + "_1uu024u_BlockArgs_6ngya9", () => ffi.Native.addressOf>( _class__BlockArgs_syyzqk_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_5rmak2', ) external ffi.Pointer _class__BlockArgs_t3r59d_raw; final _class__BlockArgs_t3r59d = objc.getClass( - "_1uu024u_BlockArgs_m09tr7", + "_1uu024u_BlockArgs_5rmak2", () => ffi.Native.addressOf>( _class__BlockArgs_t3r59d_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15f11yh', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_q64d1', ) external ffi.Pointer _class__BlockArgs_tbof01_raw; final _class__BlockArgs_tbof01 = objc.getClass( - "_1uu024u_BlockArgs_15f11yh", + "_1uu024u_BlockArgs_q64d1", () => ffi.Native.addressOf>( _class__BlockArgs_tbof01_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_teaic5_raw; final _class__BlockArgs_teaic5 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_teaic5_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_tikg8p_raw; final _class__BlockArgs_tikg8p = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_tikg8p_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_truc42_raw; final _class__BlockArgs_truc42 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_truc42_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_u4a6zc_raw; final _class__BlockArgs_u4a6zc = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_u4a6zc_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_n8yd09', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_kjz7zp', ) external ffi.Pointer _class__BlockArgs_u65oe8_raw; final _class__BlockArgs_u65oe8 = objc.getClass( - "_1uu024u_BlockArgs_n8yd09", + "_1uu024u_BlockArgs_kjz7zp", () => ffi.Native.addressOf>( _class__BlockArgs_u65oe8_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_og5b6y', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_130ym7a', ) external ffi.Pointer _class__BlockArgs_uul9n9_raw; final _class__BlockArgs_uul9n9 = objc.getClass( - "_1uu024u_BlockArgs_og5b6y", + "_1uu024u_BlockArgs_130ym7a", () => ffi.Native.addressOf>( _class__BlockArgs_uul9n9_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_rdj45r', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_2ik0db', ) external ffi.Pointer _class__BlockArgs_v1zq3a_raw; final _class__BlockArgs_v1zq3a = objc.getClass( - "_1uu024u_BlockArgs_rdj45r", + "_1uu024u_BlockArgs_2ik0db", () => ffi.Native.addressOf>( _class__BlockArgs_v1zq3a_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_v5xz31_raw; final _class__BlockArgs_v5xz31 = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_v5xz31_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1a22wz', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1agrddk', ) external ffi.Pointer _class__BlockArgs_v8in3_raw; final _class__BlockArgs_v8in3 = objc.getClass( - "_1uu024u_BlockArgs_1a22wz", + "_1uu024u_BlockArgs_1agrddk", () => ffi.Native.addressOf>( _class__BlockArgs_v8in3_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_vaglpl_raw; final _class__BlockArgs_vaglpl = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_vaglpl_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9fms3g', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_17efpu7', ) external ffi.Pointer _class__BlockArgs_vgtcpl_raw; final _class__BlockArgs_vgtcpl = objc.getClass( - "_1uu024u_BlockArgs_9fms3g", + "_1uu024u_BlockArgs_17efpu7", () => ffi.Native.addressOf>( _class__BlockArgs_vgtcpl_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', ) external ffi.Pointer _class__BlockArgs_vpa8ji_raw; final _class__BlockArgs_vpa8ji = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", + "_1uu024u_BlockArgs_hll3td", () => ffi.Native.addressOf>( _class__BlockArgs_vpa8ji_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_5rmak2', ) external ffi.Pointer _class__BlockArgs_vx7t4i_raw; final _class__BlockArgs_vx7t4i = objc.getClass( - "_1uu024u_BlockArgs_m09tr7", + "_1uu024u_BlockArgs_5rmak2", () => ffi.Native.addressOf>( _class__BlockArgs_vx7t4i_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_10lndml', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_24riuf', ) external ffi.Pointer _class__BlockArgs_wpl2gn_raw; final _class__BlockArgs_wpl2gn = objc.getClass( - "_1uu024u_BlockArgs_10lndml", + "_1uu024u_BlockArgs_24riuf", () => ffi.Native.addressOf>( _class__BlockArgs_wpl2gn_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_wtbfzi_raw; final _class__BlockArgs_wtbfzi = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", + "_1uu024u_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_wtbfzi_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', ) external ffi.Pointer _class__BlockArgs_x5cg0_raw; final _class__BlockArgs_x5cg0 = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", + "_1uu024u_BlockArgs_1k6sg8i", () => ffi.Native.addressOf>( _class__BlockArgs_x5cg0_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8acz2h', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9km3ll', ) external ffi.Pointer _class__BlockArgs_x7mqjz_raw; final _class__BlockArgs_x7mqjz = objc.getClass( - "_1uu024u_BlockArgs_8acz2h", + "_1uu024u_BlockArgs_9km3ll", () => ffi.Native.addressOf>( _class__BlockArgs_x7mqjz_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', ) external ffi.Pointer _class__BlockArgs_xcrg5s_raw; final _class__BlockArgs_xcrg5s = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", + "_1uu024u_BlockArgs_166nalk", () => ffi.Native.addressOf>( _class__BlockArgs_xcrg5s_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_h68abb', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_132zq0k', ) external ffi.Pointer _class__BlockArgs_xh08sz_raw; final _class__BlockArgs_xh08sz = objc.getClass( - "_1uu024u_BlockArgs_h68abb", + "_1uu024u_BlockArgs_132zq0k", () => ffi.Native.addressOf>( _class__BlockArgs_xh08sz_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_xj71gr_raw; final _class__BlockArgs_xj71gr = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", + "_1uu024u_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_xj71gr_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_115kkcp', + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_29zf79', ) external ffi.Pointer _class__BlockArgs_zgaes8_raw; final _class__BlockArgs_zgaes8 = objc.getClass( - "_1uu024u_BlockArgs_115kkcp", + "_1uu024u_BlockArgs_29zf79", () => ffi.Native.addressOf>( _class__BlockArgs_zgaes8_raw, ).cast(), @@ -256051,103 +256565,98 @@ final class _launch_data extends ffi.Opaque {} final class _malloc_zone_t extends ffi.Opaque {} -final _objc_msgSend_105ehca = objc.msgSendPointer +final _objc_msgSend_10340ek = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer<__SecIdentity>, ffi.Pointer, NSUInteger, - objc.NSRange, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer<__SecIdentity>, ffi.Pointer, int, - objc.NSRange, - ffi.Pointer, ) >(); -final _objc_msgSend_10nfbmq = objc.msgSendPointer +final _objc_msgSend_10fx4x0 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.UnsignedLongLong Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, ) >(); -final _objc_msgSend_10txwc9 = objc.msgSendPointer +final _objc_msgSend_10g3tem = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + objc.CGRect Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, + ) + > + >() + .asFunction< + objc.CGRect Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_10g3temStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_11a6od8 = objc.msgSendPointer +final _objc_msgSend_10m13xy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_11hj8md = objc.msgSendPointer +final _objc_msgSend_10mh3mj = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, + objc.NSRange, ) > >() @@ -256155,36 +256664,45 @@ final _objc_msgSend_11hj8md = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer, + objc.NSRange, ) >(); -final _objc_msgSend_11nrymb = objc.msgSendPointer +final _objc_msgSend_113h1yz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer<__IOSurface> Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + objc.NSRange, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer<__IOSurface> Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + objc.NSRange, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_11spmsz = objc.msgSendPointer +final _objc_msgSend_11r004b = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + NSUInteger, + objc.NSRange, ffi.Pointer, ) > @@ -256194,263 +256712,296 @@ final _objc_msgSend_11spmsz = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, + objc.NSRange, ffi.Pointer, ) >(); -final _objc_msgSend_11tcc61 = objc.msgSendPointer +final _objc_msgSend_120wspy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGSize, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGSize, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_126fd3h = objc.msgSendPointer +final _objc_msgSend_12av0mx = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.Bool, + ffi.Pointer, + NSUInteger, + objc.NSRange, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - bool, - bool, + ffi.Pointer, + int, + objc.NSRange, ) >(); -final _objc_msgSend_129c579 = objc.msgSendPointer +final _objc_msgSend_12zlwvh = objc.msgSendPointer .cast< ffi.NativeFunction< - NSInteger Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + objc.CGRect, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, + objc.CGRect, ) >(); -final _objc_msgSend_130mcug = objc.msgSendPointer +final _objc_msgSend_133oo4m = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer<__SecKey> Function( ffi.Pointer, ffi.Pointer, - ffi.Double, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer<__SecKey> Function( ffi.Pointer, ffi.Pointer, - double, - ffi.Pointer, ) >(); -final _objc_msgSend_13fklwp = objc.msgSendPointer +final _objc_msgSend_137o7cl = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - objc.NSRange, + ffi.UnsignedLong, ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - objc.NSRange, + int, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_13lgpwz = objc.msgSendPointer +final _objc_msgSend_13h8okt = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - objc.CGSize, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - objc.CGSize, ) >(); -final _objc_msgSend_13yqbb6 = objc.msgSendPointer +final _objc_msgSend_13l47a1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + NSInteger, + ffi.Pointer>, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + int, + ffi.Pointer>, ) >(); -final _objc_msgSend_1415lvo = objc.msgSendPointer +final _objc_msgSend_13wc3w1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ) + >(); +final _objc_msgSend_13y52fe = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( ffi.Pointer, - int, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_14hpxwa = objc.msgSendPointer +final _objc_msgSend_13ytbkt = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1513vdc = objc.msgSendPointer +final _objc_msgSend_140fk5d = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Uint32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_14cxkac = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.UnsignedChar Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_158ju31 = objc.msgSendPointer +final _objc_msgSend_14sf485 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, + objc.NSRange, + NSUInteger, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + objc.NSRange, int, + ffi.Pointer, ) >(); -final _objc_msgSend_15dzt85 = objc.msgSendPointer +final _objc_msgSend_15is1z3 = objc.msgSendPointer .cast< ffi.NativeFunction< - NSUInteger Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_15qeuct = objc.msgSendPointer +final _objc_msgSend_15jmnhb = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, ffi.Pointer, ) >(); -final _objc_msgSend_15v716q = objc.msgSendPointer +final _objc_msgSend_15sni0d = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_15t3nhv = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -256469,13 +257020,13 @@ final _objc_msgSend_15v716q = objc.msgSendPointer ffi.Pointer>, ) >(); -final _objc_msgSend_15yz4e6 = objc.msgSendPointer +final _objc_msgSend_162ofpt = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGRect, + ffi.Pointer<__SecTrust>, ) > >() @@ -256483,86 +257034,123 @@ final _objc_msgSend_15yz4e6 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGRect, + ffi.Pointer<__SecTrust>, ) >(); -final _objc_msgSend_164wts2 = objc.msgSendPointer +final _objc_msgSend_168l3u4 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - bool, - ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_165e55c = objc.msgSendPointer +final _objc_msgSend_1690f3y = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Short Function( ffi.Pointer, ffi.Pointer, - ffi.Long, - ffi.Pointer>, ) > >() .asFunction< - bool Function( + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_16dno01 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( ffi.Pointer, ffi.Pointer, int, - ffi.Pointer>, ) >(); -final _objc_msgSend_16a25o7 = objc.msgSendPointer +final _objc_msgSend_16dno01Fpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - ffi.Pointer Function( + double Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_16bn854 = objc.msgSendPointer +final _objc_msgSend_16fdf3f = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, + ffi.Pointer>, + ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, int, + ffi.Pointer>, + ffi.Pointer>, ) >(); -final _objc_msgSend_16fy0up = objc.msgSendPointer +final _objc_msgSend_16ixh5c = objc.msgSendPointer .cast< ffi.NativeFunction< - NSInteger Function( + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_16szl7k = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, ) > >() @@ -256571,36 +257159,44 @@ final _objc_msgSend_16fy0up = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, ) >(); -final _objc_msgSend_17amj0z = objc.msgSendPointer +final _objc_msgSend_16t7zr0 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Bool, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - bool, + objc.CGSize, + double, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_17ns785 = objc.msgSendPointer +final _objc_msgSend_16v6ugk = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, + ffi.Pointer, + objc.NSRange, ) > >() @@ -256609,55 +257205,60 @@ final _objc_msgSend_17ns785 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, + ffi.Pointer, + objc.NSRange, ) >(); -final _objc_msgSend_182fzon = objc.msgSendPointer +final _objc_msgSend_176lrd = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.NSRange Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - objc.NSRange Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_182fzonStret = objc.msgSendStretPointer +final _objc_msgSend_17734bn = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Uint64, ffi.Pointer, ) > >() .asFunction< - void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + int, ffi.Pointer, ) >(); -final _objc_msgSend_187k8ck = objc.msgSendPointer +final _objc_msgSend_17azp2d = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, ffi.Pointer, + ffi.UnsignedLong, + ffi.Uint64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() @@ -256666,35 +257267,39 @@ final _objc_msgSend_187k8ck = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, int, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_18chyc = objc.msgSendPointer +final _objc_msgSend_17d2dof = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Uint32 Function( ffi.Pointer, ffi.Pointer, - ffi.Double, + ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - double, + ffi.Pointer, ) >(); -final _objc_msgSend_18flwjr = objc.msgSendPointer +final _objc_msgSend_17kc8kc = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, + NSUInteger, + ffi.Pointer, ffi.Pointer, ) > @@ -256703,20 +257308,21 @@ final _objc_msgSend_18flwjr = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_18qun1e = objc.msgSendPointer +final _objc_msgSend_17kjafg = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ffi.Pointer>, ) > >() @@ -256725,72 +257331,125 @@ final _objc_msgSend_18qun1e = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, ) >(); -final _objc_msgSend_18r320v = objc.msgSendPointer +final _objc_msgSend_17y2ndj = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.CGSize Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + NSInteger, ffi.Pointer, ) > >() .asFunction< - objc.CGSize Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + int, ffi.Pointer, ) >(); -final _objc_msgSend_18r320vStret = objc.msgSendStretPointer +final _objc_msgSend_1844k4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18h34ir = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.LongLong, + ffi.LongLong, ) > >() .asFunction< void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, + int, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_18h7706 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer<__CFRunLoopObserver> Function( ffi.Pointer, ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__CFRunLoopObserver> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18szuw0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, + ) + >(); +final _objc_msgSend_19akr8a = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + bool, ) >(); -final _objc_msgSend_1b5ysjl = objc.msgSendPointer +final _objc_msgSend_19co5ux = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, ) > >() @@ -256798,34 +257457,30 @@ final _objc_msgSend_1b5ysjl = objc.msgSendPointer int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, ) >(); -final _objc_msgSend_1bonwe = objc.msgSendPointer +final _objc_msgSend_19ms50r = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer<__CFRunLoopObserver> Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer<__CFRunLoopObserver> Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1c1ssyi = objc.msgSendPointer +final _objc_msgSend_19tgqei = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Float, - ffi.Pointer>, + ffi.Pointer, ) > >() @@ -256833,17 +257488,32 @@ final _objc_msgSend_1c1ssyi = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, - double, - ffi.Pointer>, + ffi.Pointer, + ) + >(); +final _objc_msgSend_19tixc3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1c2zpn3 = objc.msgSendPointer +final _objc_msgSend_1a2vk5h = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGSize, + ffi.Pointer, + ffi.Pointer>, ) > >() @@ -256851,10 +257521,11 @@ final _objc_msgSend_1c2zpn3 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGSize, + ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_1cc1buo = objc.msgSendPointer +final _objc_msgSend_1aglthn = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -256862,9 +257533,6 @@ final _objc_msgSend_1cc1buo = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, ) > >() @@ -256874,50 +257542,53 @@ final _objc_msgSend_1cc1buo = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1at51ut = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1d2nxes = objc.msgSendPointer +final _objc_msgSend_1atifgf = objc.msgSendPointer .cast< ffi.NativeFunction< - NSUInteger Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1dau4w = objc.msgSendPointer +final _objc_msgSend_1ax18rd = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, + objc.NSRange, ) > >() @@ -256925,139 +257596,154 @@ final _objc_msgSend_1dau4w = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, + objc.NSRange, ) >(); -final _objc_msgSend_1db3yj = objc.msgSendPointer +final _objc_msgSend_1bslk2e = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSInteger, - ffi.Pointer>, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer>, ) >(); -final _objc_msgSend_1dcy00i = objc.msgSendPointer +final _objc_msgSend_1bw3upc = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1diehjo = objc.msgSendPointer +final _objc_msgSend_1c30s85 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1dom33q = objc.msgSendPointer +final _objc_msgSend_1c6ogwh = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, + ffi.Bool, + ffi.Pointer>, + ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, + bool, + ffi.Pointer>, + ffi.Pointer, ) >(); -final _objc_msgSend_1dpg4ct = objc.msgSendPointer +final _objc_msgSend_1cd70t7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + objc.NSRange, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + objc.NSRange, ) >(); -final _objc_msgSend_1dydpdi = objc.msgSendPointer +final _objc_msgSend_1ci2ia6 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, ) > >() .asFunction< - ffi.Pointer Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, ) >(); -final _objc_msgSend_1e3ic39 = objc.msgSendPointer +final _objc_msgSend_1ci2ia6Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Pointer<__CFError> Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, ) > >() .asFunction< - ffi.Pointer<__CFError> Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, ) >(); -final _objc_msgSend_1e3pm0z = objc.msgSendPointer +final _objc_msgSend_1clfj3o = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, + ffi.Float, + ffi.Double, ) > >() @@ -257065,114 +257751,126 @@ final _objc_msgSend_1e3pm0z = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, + double, + double, ) >(); -final _objc_msgSend_1ea59hv = objc.msgSendPointer +final _objc_msgSend_1d1siln = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1f2nccz = objc.msgSendPointer +final _objc_msgSend_1d50bq7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Bool, ffi.Pointer>, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + bool, ffi.Pointer>, - ffi.Pointer, ) >(); -final _objc_msgSend_1fdou4m = objc.msgSendPointer +final _objc_msgSend_1df3gur = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, - ffi.Bool, ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ) > >() .asFunction< - void Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, - bool, ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_1flkydz = objc.msgSendPointer +final _objc_msgSend_1df3gurStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ) > >() .asFunction< void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_1fnsr6j = objc.msgSendPointer +final _objc_msgSend_1df5a5f = objc.msgSendPointer .cast< ffi.NativeFunction< - NSInteger Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_1fs7dv0 = objc.msgSendPointer +final _objc_msgSend_1dgggdh = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, + NSUInteger, + ffi.Pointer, ffi.Pointer, ) > @@ -257181,53 +257879,63 @@ final _objc_msgSend_1fs7dv0 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, int, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1fuqfwb = objc.msgSendPointer +final _objc_msgSend_1dsj9wx = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1gypgok = objc.msgSendPointer +final _objc_msgSend_1dubril = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer, ) >(); -final _objc_msgSend_1h3mito = objc.msgSendPointer +final _objc_msgSend_1e5znsh = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, ) > >() @@ -257235,49 +257943,62 @@ final _objc_msgSend_1h3mito = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, int, ) >(); -final _objc_msgSend_1hbj4cd = objc.msgSendPointer +final _objc_msgSend_1emblnm = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Uint32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + objc.NSRange, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + objc.NSRange, + ffi.Pointer, ) >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer +final _objc_msgSend_1exgpw8 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( + ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1i17va2 = objc.msgSendPointer +final _objc_msgSend_1f7hox7 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong, - ffi.Pointer>, - ffi.Pointer>, + ffi.Pointer, ) > >() @@ -257285,48 +258006,48 @@ final _objc_msgSend_1i17va2 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, - ffi.Pointer>, - ffi.Pointer>, + ffi.Pointer, ) >(); -final _objc_msgSend_1i9r4xy = objc.msgSendPointer +final _objc_msgSend_1f7ncs3 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, + NSUInteger, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ) >(); -final _objc_msgSend_1iyq28l = objc.msgSendPointer +final _objc_msgSend_1ffzwv1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - bool, ) >(); -final _objc_msgSend_1j9bhml = objc.msgSendPointer +final _objc_msgSend_1fh46zu = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -257347,37 +258068,29 @@ final _objc_msgSend_1j9bhml = objc.msgSendPointer ffi.Pointer>, ) >(); -final _objc_msgSend_1jed5jl = objc.msgSendPointer +final _objc_msgSend_1fspiy4 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Uint16 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1jknn71 = objc.msgSendPointer +final _objc_msgSend_1ft2ink = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, + objc.NSRange, ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ffi.Pointer>, ) > >() @@ -257385,77 +258098,72 @@ final _objc_msgSend_1jknn71 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, + objc.NSRange, ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, ) >(); -final _objc_msgSend_1jwityx = objc.msgSendPointer +final _objc_msgSend_1fxwmio = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Short Function( + ffi.Pointer<__IOSurface> Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer<__IOSurface> Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1jz97e = objc.msgSendPointer +final _objc_msgSend_1fyph4u = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Uint64, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1k0ezzm = objc.msgSendPointer +final _objc_msgSend_1fzl250 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Int, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + int, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, ) >(); -final _objc_msgSend_1k101e3 = objc.msgSendPointer +final _objc_msgSend_1g4mhmy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.LongLong Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, ) > >() @@ -257463,38 +258171,40 @@ final _objc_msgSend_1k101e3 = objc.msgSendPointer int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, ) >(); -final _objc_msgSend_1k1akuq = objc.msgSendPointer +final _objc_msgSend_1gmrb5m = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - objc.NSRange, + ffi.Pointer, + NSUInteger, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, - ffi.Pointer, - objc.NSRange, ) >(); -final _objc_msgSend_1k1o1s7 = objc.msgSendPointer +final _objc_msgSend_1gqjits = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, + ffi.Pointer, + ffi.UnsignedLong, ) > >() @@ -257502,50 +258212,52 @@ final _objc_msgSend_1k1o1s7 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, + ffi.Pointer, + int, ) >(); -final _objc_msgSend_1kn7frf = objc.msgSendPointer +final _objc_msgSend_1gv17gn = objc.msgSendPointer .cast< ffi.NativeFunction< - NSUInteger Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Float, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + double, ) >(); -final _objc_msgSend_1ko4qka = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedChar Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1kok4b = objc.msgSendPointer +final _objc_msgSend_1hnhjy0 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, - NSUInteger, - ffi.Pointer, + objc.CGSize, + ffi.Pointer, ) > >() @@ -257553,19 +258265,20 @@ final _objc_msgSend_1kok4b = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, - int, - ffi.Pointer, + objc.CGSize, + ffi.Pointer, ) >(); -final _objc_msgSend_1kva9v1 = objc.msgSendPointer +final _objc_msgSend_1hvjsy6 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Long, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() @@ -257573,102 +258286,115 @@ final _objc_msgSend_1kva9v1 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - int, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1kz7g09 = objc.msgSendPointer +final _objc_msgSend_1hwzsr1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - bool Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1l09uru = objc.msgSendPointer +final _objc_msgSend_1hwzsr1Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1i2s9oh = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( ffi.Pointer, ffi.Pointer, objc.NSRange, ffi.Pointer, NSUInteger, ffi.Pointer, - ffi.Pointer>, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, objc.NSRange, ffi.Pointer, int, ffi.Pointer, - ffi.Pointer>, + ffi.Pointer, ) >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer +final _objc_msgSend_1if3gfg = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Uint64 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, ) >(); -final _objc_msgSend_1lhy15d = objc.msgSendPointer +final _objc_msgSend_1ijt5u4 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, + ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, + ffi.Pointer, ) >(); -final _objc_msgSend_1lk7ow3 = objc.msgSendPointer +final _objc_msgSend_1inb5dw = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - objc.NSRange, ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, ) > >() @@ -257677,12 +258403,12 @@ final _objc_msgSend_1lk7ow3 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - objc.NSRange, ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, ) >(); -final _objc_msgSend_1llrn9f = objc.msgSendPointer +final _objc_msgSend_1isvq4t = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -257703,89 +258429,92 @@ final _objc_msgSend_1llrn9f = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1lonves = objc.msgSendPointer +final _objc_msgSend_1jnam6p = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1lsax7n = objc.msgSendPointer +final _objc_msgSend_1jpqrtr = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, + NSUInteger, + ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_1lwwnes = objc.msgSendPointer +final _objc_msgSend_1jrvou1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + objc.CGRect Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + objc.CGRect Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1mbt9g9 = objc.msgSendPointer +final _objc_msgSend_1jrvou1Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1mik4ys = objc.msgSendPointer +final _objc_msgSend_1k1r7vy = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, ) > >() @@ -257794,11 +258523,12 @@ final _objc_msgSend_1mik4ys = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, + int, int, ) >(); -final _objc_msgSend_1modw1b = objc.msgSendPointer +final _objc_msgSend_1k6sg8i = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -257806,9 +258536,6 @@ final _objc_msgSend_1modw1b = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, ) > >() @@ -257818,249 +258545,239 @@ final _objc_msgSend_1modw1b = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - int, - int, ) >(); -final _objc_msgSend_1mpyy6y = objc.msgSendPointer +final _objc_msgSend_1l105vx = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.CGPoint Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Uint64, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - objc.CGPoint Function( + void Function( ffi.Pointer, ffi.Pointer, + int, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1mpyy6yStret = objc.msgSendStretPointer +final _objc_msgSend_1l10mai = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_1n4ndiq = objc.msgSendPointer +final _objc_msgSend_1l314qv = objc.msgSendPointer .cast< ffi.NativeFunction< - NSInteger Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + objc.CGPoint, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + objc.CGPoint, ) >(); -final _objc_msgSend_1nqw6vl = objc.msgSendPointer +final _objc_msgSend_1l4zcuu = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, - NSUInteger, ffi.Pointer>, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - bool, - int, ffi.Pointer>, ) >(); -final _objc_msgSend_1nwix4r = objc.msgSendPointer +final _objc_msgSend_1l7fxsy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Uint32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1oj5o8z = objc.msgSendPointer +final _objc_msgSend_1lg1b3i = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int64 Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + NSUInteger, + ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_1ojrli4 = objc.msgSendPointer +final _objc_msgSend_1lkmam2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - bool, + ffi.Pointer, ) >(); -final _objc_msgSend_1okkq16 = objc.msgSendPointer +final _objc_msgSend_1ludlma = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGRect, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGRect, + ffi.Pointer, ) >(); -final _objc_msgSend_1ommad9 = objc.msgSendPointer +final _objc_msgSend_1lvlpux = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer<__SecTrust> Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer<__SecTrust> Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1orxdfj = objc.msgSendPointer +final _objc_msgSend_1m4vyuw = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.NSRange Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, + ffi.Double, + ffi.Pointer>, ) > >() .asFunction< - objc.NSRange Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, + double, + ffi.Pointer>, ) >(); -final _objc_msgSend_1orxdfjStret = objc.msgSendStretPointer +final _objc_msgSend_1mevadz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Bool, ) > >() .asFunction< - void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - bool, ) >(); -final _objc_msgSend_1oteutl = objc.msgSendPointer +final _objc_msgSend_1moai7z = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - objc.NSRange, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - objc.NSRange, ) >(); -final _objc_msgSend_1ozwf6k = objc.msgSendPointer +final _objc_msgSend_1mp8i54 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Pointer, + NSUInteger, + objc.NSRange, ) > >() @@ -258068,69 +258785,58 @@ final _objc_msgSend_1ozwf6k = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - double, ffi.Pointer, + int, + objc.NSRange, ) >(); -final _objc_msgSend_1p2ukjz = objc.msgSendPointer +final _objc_msgSend_1n14wj8 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1p4gbjy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLongLong Function( + ffi.UnsignedLong, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_1p4uk9e = objc.msgSendPointer +final _objc_msgSend_1n87wib = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Float, - ffi.Double, + objc.CGSize, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - double, - double, + objc.CGSize, ) >(); -final _objc_msgSend_1pl4k3n = objc.msgSendPointer +final _objc_msgSend_1n88jx7 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Bool, ffi.Pointer, - ffi.Pointer, ) > >() @@ -258138,119 +258844,124 @@ final _objc_msgSend_1pl4k3n = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, + bool, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer +final _objc_msgSend_1ngjh10 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, + bool, ) >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer +final _objc_msgSend_1no426w = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>, + ffi.Bool, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>, + bool, ) >(); -final _objc_msgSend_1pp2gs8 = objc.msgSendPointer +final _objc_msgSend_1nr9pmw = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong, - ffi.Pointer, - objc.NSRange, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, - ffi.Pointer, - objc.NSRange, ) >(); -final _objc_msgSend_1pvm3yv = objc.msgSendPointer +final _objc_msgSend_1nxh0dy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1q2ox4r = objc.msgSendPointer +final _objc_msgSend_1oi13co = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, + NSUInteger, + ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_1qldcx0 = objc.msgSendPointer +final _objc_msgSend_1oxgj58 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, ffi.Pointer, ffi.Pointer, ) @@ -258260,35 +258971,31 @@ final _objc_msgSend_1qldcx0 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1qv0eq4 = objc.msgSendPointer +final _objc_msgSend_1py860n = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + objc.CGRect, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + objc.CGRect, ) >(); -final _objc_msgSend_1r6ymhb = objc.msgSendPointer +final _objc_msgSend_1q2tbpd = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -258296,102 +259003,84 @@ final _objc_msgSend_1r6ymhb = objc.msgSendPointer > >() .asFunction< - int Function( + double Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1r7ue5f = objc.msgSendPointer +final _objc_msgSend_1q2tbpdFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1r9llia = objc.msgSendPointer +final _objc_msgSend_1qido3 = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.NSRange Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, + ffi.Double, ) > >() .asFunction< - objc.NSRange Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, + double, ) >(); -final _objc_msgSend_1r9lliaStret = objc.msgSendStretPointer +final _objc_msgSend_1qltt4c = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + NSInteger, ffi.Pointer>, ) > >() .asFunction< - void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + int, ffi.Pointer>, ) >(); -final _objc_msgSend_1rbikrg = objc.msgSendPointer +final _objc_msgSend_1qvlfli = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Pointer<__CFRunLoopTimer> Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, ) > >() .asFunction< - int Function( + ffi.Pointer<__CFRunLoopTimer> Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, ) >(); -final _objc_msgSend_1rhk8uh = objc.msgSendPointer +final _objc_msgSend_1r5jzqh = objc.msgSendPointer .cast< ffi.NativeFunction< - NSInteger Function( + NSUInteger Function( ffi.Pointer, ffi.Pointer, ) @@ -258403,30 +259092,31 @@ final _objc_msgSend_1rhk8uh = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1s3ecd1 = objc.msgSendPointer +final _objc_msgSend_1ro3sl5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecTrust>, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecTrust>, ) >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer +final _objc_msgSend_1rtwvy8 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, + ffi.Pointer, + objc.NSRange, + NSUInteger, + ffi.Pointer, ) > >() @@ -258434,45 +259124,58 @@ final _objc_msgSend_1s56lr9 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - bool, + ffi.Pointer, + objc.NSRange, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_1sbro63 = objc.msgSendPointer +final _objc_msgSend_1rz4muk = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_1sotr3r = objc.msgSendPointer +final _objc_msgSend_1s1jtb4 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, + ffi.Double, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, + double, ) >(); -final _objc_msgSend_1t6aok9 = objc.msgSendPointer +final _objc_msgSend_1s4gila = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Bool, @@ -258480,35 +259183,45 @@ final _objc_msgSend_1t6aok9 = objc.msgSendPointer > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, bool, ) >(); -final _objc_msgSend_1tqkjbg = objc.msgSendPointer +final _objc_msgSend_1sptcho = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_1tv4uax = objc.msgSendPointer +final _objc_msgSend_1t5al8x = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() @@ -258516,275 +259229,294 @@ final _objc_msgSend_1tv4uax = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, ffi.Pointer, - ) - >(); -final _objc_msgSend_1u11dbb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.NSRange Function( ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1u11dbbStret = objc.msgSendStretPointer +final _objc_msgSend_1tf1mi0 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, ) > >() .asFunction< void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, ) >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer +final _objc_msgSend_1tjd59x = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - double Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer +final _objc_msgSend_1tjz0jr = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ) > >() .asFunction< - double Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_1upeo1d = objc.msgSendPointer +final _objc_msgSend_1tn8wgq = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, + ffi.Bool, ffi.Pointer, - NSUInteger, - objc.NSRange, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, + bool, ffi.Pointer, - int, - objc.NSRange, ) >(); -final _objc_msgSend_1uwdhlk = objc.msgSendPointer +final _objc_msgSend_1u0udch = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.CGPoint Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - objc.CGPoint Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1uwdhlkStret = objc.msgSendStretPointer +final _objc_msgSend_1u4qka1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, ) > >() .asFunction< - void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, + int, ) >(); -final _objc_msgSend_1vdfken = objc.msgSendPointer +final _objc_msgSend_1uc3xpx = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.CGSize Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - objc.CGSize Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1vdfkenStret = objc.msgSendStretPointer +final _objc_msgSend_1urtg4j = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, ) > >() .asFunction< void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, ) >(); -final _objc_msgSend_1vfc2dz = objc.msgSendPointer +final _objc_msgSend_1ux8kak = objc.msgSendPointer .cast< ffi.NativeFunction< - NSInteger Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Bool, + objc.NSRange, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + bool, + objc.NSRange, + ffi.Pointer, ) >(); -final _objc_msgSend_1vfgg7v = objc.msgSendPointer +final _objc_msgSend_1v91fr2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + objc.NSRange, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, + ffi.Double, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + objc.NSRange, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, + double, ) >(); -final _objc_msgSend_1vkunzi = objc.msgSendPointer +final _objc_msgSend_1vaqdcd = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, ) >(); -final _objc_msgSend_1vnlaqg = objc.msgSendPointer +final _objc_msgSend_1vgbqmt = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, - NSInteger, - ffi.Pointer>, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, - ffi.Pointer>, + objc.NSRange, + ffi.Pointer, ) >(); -final _objc_msgSend_1w05pgk = objc.msgSendPointer +final _objc_msgSend_1vr6auf = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, + ffi.Pointer, ) >(); -final _objc_msgSend_1wgub22 = objc.msgSendPointer +final _objc_msgSend_1vyt62e = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer<__CFArray> Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer<__CFArray> Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1whyima = objc.msgSendPointer +final _objc_msgSend_1whvugs = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + objc.CGRect, ffi.Pointer, - ffi.Bool, ) > >() @@ -258792,23 +259524,17 @@ final _objc_msgSend_1whyima = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + objc.CGRect, ffi.Pointer, - bool, ) >(); -final _objc_msgSend_1wqutdn = objc.msgSendPointer +final _objc_msgSend_1whyqxt = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Long, ) > >() @@ -258816,59 +259542,48 @@ final _objc_msgSend_1wqutdn = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1wtpmu7 = objc.msgSendPointer +final _objc_msgSend_1wp571e = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, ) > >() .asFunction< - ffi.Pointer Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, ) >(); -final _objc_msgSend_1xmmt6t = objc.msgSendPointer +final _objc_msgSend_1wp571eStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSInteger, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer, ) >(); -final _objc_msgSend_1ygbbzi = objc.msgSendPointer +final _objc_msgSend_1wruglo = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Double, ffi.Pointer, ) > @@ -258877,101 +259592,112 @@ final _objc_msgSend_1ygbbzi = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + double, ffi.Pointer, ) >(); -final _objc_msgSend_1yyiln9 = objc.msgSendPointer +final _objc_msgSend_1x8puhr = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer<__CFRunLoopTimer> Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, ) > >() .asFunction< - ffi.Pointer<__CFRunLoopTimer> Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, ) >(); -final _objc_msgSend_2cgrxl = objc.msgSendPointer +final _objc_msgSend_1xnczpu = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer +final _objc_msgSend_1xx6l96 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_2naryv = objc.msgSendPointer +final _objc_msgSend_1xzjeoi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - NSInteger, - ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + NSUInteger, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, int, - ffi.Pointer>, ) >(); -final _objc_msgSend_2p9qiq = objc.msgSendPointer +final _objc_msgSend_1z0zg2e = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_2wiv66 = objc.msgSendPointer +final _objc_msgSend_1zbf08 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Bool, ) > >() @@ -258979,44 +259705,39 @@ final _objc_msgSend_2wiv66 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + bool, ) >(); -final _objc_msgSend_3fn4ca = objc.msgSendPointer +final _objc_msgSend_25u0to = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_3gpdva = objc.msgSendPointer +final _objc_msgSend_28e8o1 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - objc.NSRange, - ffi.Pointer, + objc.CGSize, ) > >() @@ -259024,22 +259745,17 @@ final _objc_msgSend_3gpdva = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer, + objc.CGSize, ) >(); -final _objc_msgSend_3ow0v1 = objc.msgSendPointer +final _objc_msgSend_2cgbeg = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Long, ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, ) > >() @@ -259047,49 +259763,58 @@ final _objc_msgSend_3ow0v1 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - int, int, + ffi.Pointer, ) >(); -final _objc_msgSend_3pyzne = objc.msgSendPointer +final _objc_msgSend_2pmueu = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedInt Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Bool, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + bool, + bool, ) >(); -final _objc_msgSend_4qsw9q = objc.msgSendPointer +final _objc_msgSend_2ufx71 = objc.msgSendPointer .cast< ffi.NativeFunction< - NSUInteger Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, ) >(); -final _objc_msgSend_4sp4xj = objc.msgSendPointer +final _objc_msgSend_3lg6qb = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + ffi.Pointer, + ffi.Bool, ) > >() @@ -259097,16 +259822,34 @@ final _objc_msgSend_4sp4xj = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, + bool, ) >(); -final _objc_msgSend_56zxyn = objc.msgSendPointer +final _objc_msgSend_3mxu14 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3qs0ul = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, ) > >() @@ -259114,16 +259857,18 @@ final _objc_msgSend_56zxyn = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int, ) >(); -final _objc_msgSend_5bd8xr = objc.msgSendPointer +final _objc_msgSend_441sd9 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -259131,52 +259876,54 @@ final _objc_msgSend_5bd8xr = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_65s5yw = objc.msgSendPointer +final _objc_msgSend_47idvh = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ffi.UnsignedLong, ) > >() .asFunction< - double Function( + int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, int, ) >(); -final _objc_msgSend_65s5ywFpret = objc.msgSendFpretPointer +final _objc_msgSend_49k26d = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, ) > >() .asFunction< - double Function( + bool Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_6cylk3 = objc.msgSendPointer +final _objc_msgSend_4aeiwn = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, + ffi.Pointer, ) > >() @@ -259184,90 +259931,90 @@ final _objc_msgSend_6cylk3 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_6ex6p5 = objc.msgSendPointer +final _objc_msgSend_4g65tx = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_6h5ewf = objc.msgSendPointer +final _objc_msgSend_4lxjho = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, + ffi.Bool, + ffi.Long, + ffi.Pointer>, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, + bool, + int, + ffi.Pointer>, ) >(); -final _objc_msgSend_6p7ndb = objc.msgSendPointer +final _objc_msgSend_59rf64 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Bool, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - bool, ) >(); -final _objc_msgSend_6pykvq = objc.msgSendPointer +final _objc_msgSend_5hhk6v = objc.msgSendPointer .cast< ffi.NativeFunction< - NSInteger Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_6z4k82 = objc.msgSendPointer +final _objc_msgSend_5xlvnr = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, + ffi.Pointer, ) > >() @@ -259275,20 +260022,16 @@ final _objc_msgSend_6z4k82 = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, + ffi.Pointer, ) >(); -final _objc_msgSend_7km9vu = objc.msgSendPointer +final _objc_msgSend_6g603z = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, + objc.NSEdgeInsets, ) > >() @@ -259296,59 +260039,50 @@ final _objc_msgSend_7km9vu = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, + objc.NSEdgeInsets, ) >(); -final _objc_msgSend_7kpg7m = objc.msgSendPointer +final _objc_msgSend_6gqu6c = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, ) >(); -final _objc_msgSend_7ql5kn = objc.msgSendPointer +final _objc_msgSend_6n81l6 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, + ffi.Float, + ffi.Pointer>, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, double, + ffi.Pointer>, ) >(); -final _objc_msgSend_7w1jp7 = objc.msgSendPointer +final _objc_msgSend_6ngya9 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, + ffi.Bool, ffi.Pointer, ) > @@ -259357,19 +260091,17 @@ final _objc_msgSend_7w1jp7 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, + bool, ffi.Pointer, ) >(); -final _objc_msgSend_8cymbm = objc.msgSendPointer +final _objc_msgSend_6r70rc = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, + ffi.Double, ) > >() @@ -259377,138 +260109,127 @@ final _objc_msgSend_8cymbm = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, + double, ) >(); -final _objc_msgSend_8mvqcu = objc.msgSendPointer +final _objc_msgSend_7agf1a = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Bool, - ffi.Pointer>, ffi.Pointer, + ffi.Pointer>, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - bool, - ffi.Pointer>, ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_91o635 = objc.msgSendPointer +final _objc_msgSend_8qnx0d = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_9cddqw = objc.msgSendPointer +final _objc_msgSend_8ut1ht = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Int64, ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, ffi.Pointer, ) >(); -final _objc_msgSend_9qbz9w = objc.msgSendPointer +final _objc_msgSend_9kuhjb = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Uint64 Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_akk2cd = objc.msgSendPointer +final _objc_msgSend_9pr6kk = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, ) >(); -final _objc_msgSend_b99g2z = objc.msgSendPointer +final _objc_msgSend_9pr6kkFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, ) >(); -final _objc_msgSend_bkebbk = objc.msgSendPointer +final _objc_msgSend_avag80 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - objc.CGPoint, ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, ) > >() @@ -259516,199 +260237,195 @@ final _objc_msgSend_bkebbk = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - objc.CGPoint, ffi.Pointer, + ffi.Pointer, + int, + int, ) >(); -final _objc_msgSend_bm6pu2 = objc.msgSendPointer +final _objc_msgSend_b7zpih = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Size Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_bstjp9 = objc.msgSendPointer +final _objc_msgSend_bltg3p = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, + ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, + ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_bu1hbw = objc.msgSendPointer +final _objc_msgSend_by5tf2 = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.CGRect Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - objc.CGRect Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, ) >(); -final _objc_msgSend_bu1hbwStret = objc.msgSendStretPointer +final _objc_msgSend_c7ivs8 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ) > >() .asFunction< void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_d3i1uy = objc.msgSendPointer +final _objc_msgSend_cjvl3d = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.NSRange Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, + ffi.Pointer, + objc.NSRange, ) > >() .asFunction< - objc.NSRange Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, + objc.NSRange, ) >(); -final _objc_msgSend_d3i1uyStret = objc.msgSendStretPointer +final _objc_msgSend_d7eo5a = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_d8c3m2 = objc.msgSendPointer +final _objc_msgSend_dcpapu = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer<__SecTrust> Function( ffi.Pointer, ffi.Pointer, - ffi.Int, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer<__SecTrust> Function( ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer, ) >(); -final _objc_msgSend_d9bpjb = objc.msgSendPointer +final _objc_msgSend_dute2g = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Int64 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, ) >(); -final _objc_msgSend_dgx62p = objc.msgSendPointer +final _objc_msgSend_e67j2c = objc.msgSendPointer .cast< ffi.NativeFunction< - NSInteger Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Long, + ffi.Pointer>, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + int, + ffi.Pointer>, ) >(); -final _objc_msgSend_djsa9o = objc.msgSendPointer +final _objc_msgSend_eloak0 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, ) >(); -final _objc_msgSend_e1wgee = objc.msgSendPointer +final _objc_msgSend_f2eek9 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() @@ -259716,38 +260433,43 @@ final _objc_msgSend_e1wgee = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_e3qsqz = objc.msgSendPointer +final _objc_msgSend_fr9ada = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_e9mncn = objc.msgSendPointer +final _objc_msgSend_ftq404 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() @@ -259755,50 +260477,52 @@ final _objc_msgSend_e9mncn = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_erqryg = objc.msgSendPointer +final _objc_msgSend_gvefwy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + objc.CGPoint Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, ) > >() .asFunction< - ffi.Pointer Function( + objc.CGPoint Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, ) >(); -final _objc_msgSend_esp80j = objc.msgSendPointer +final _objc_msgSend_gvefwyStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_f167m6 = objc.msgSendPointer +final _objc_msgSend_h4ogsm = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, ffi.Pointer, ) > @@ -259807,17 +260531,18 @@ final _objc_msgSend_f167m6 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, ffi.Pointer, ) >(); -final _objc_msgSend_f227js = objc.msgSendPointer +final _objc_msgSend_h9i570 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - objc.CGRect, - ffi.Pointer, ) > >() @@ -259825,117 +260550,117 @@ final _objc_msgSend_f227js = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - objc.CGRect, - ffi.Pointer, ) >(); -final _objc_msgSend_fd28sq = objc.msgSendPointer +final _objc_msgSend_hwrhq = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + objc.NSEdgeInsets Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - int Function( + objc.NSEdgeInsets Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_fm5719 = objc.msgSendPointer +final _objc_msgSend_hwrhqStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, ) > >() .asFunction< void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, ) >(); -final _objc_msgSend_fooyu3 = objc.msgSendPointer +final _objc_msgSend_i7dl0m = objc.msgSendPointer .cast< ffi.NativeFunction< - NSUInteger Function( + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_g3kdhc = objc.msgSendPointer +final _objc_msgSend_i7x6oo = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer<__CFError> Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer<__CFError> Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_g4ia9x = objc.msgSendPointer +final _objc_msgSend_ihaxwy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + NSUInteger, ) > >() .asFunction< - double Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_g4ia9xFpret = objc.msgSendFpretPointer +final _objc_msgSend_ijjgcn = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + NSInteger, + ffi.Pointer>, ) > >() .asFunction< - double Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, + ffi.Pointer>, ) >(); -final _objc_msgSend_gtxojt = objc.msgSendPointer +final _objc_msgSend_ikrf9p = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -259943,7 +260668,7 @@ final _objc_msgSend_gtxojt = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer>, ) > >() @@ -259953,48 +260678,32 @@ final _objc_msgSend_gtxojt = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_h0gkbf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Size Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_h10lj0 = objc.msgSendPointer +final _objc_msgSend_inbg7y = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_h1puss = objc.msgSendPointer +final _objc_msgSend_j25zxm = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, + ffi.Pointer, ) > >() @@ -260002,40 +260711,44 @@ final _objc_msgSend_h1puss = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_h42mdr = objc.msgSendPointer +final _objc_msgSend_jgkhez = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer>, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_hefmm1 = objc.msgSendPointer +final _objc_msgSend_jt5cno = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, ) > >() @@ -260043,16 +260756,20 @@ final _objc_msgSend_hefmm1 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_hjhgti = objc.msgSendPointer +final _objc_msgSend_k06xr2 = objc.msgSendPointer .cast< ffi.NativeFunction< - NSInteger Function( + NSUInteger Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -260060,48 +260777,43 @@ final _objc_msgSend_hjhgti = objc.msgSendPointer int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_hk7n97 = objc.msgSendPointer +final _objc_msgSend_kh8q6e = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.Pointer, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - bool, - ffi.Pointer, ) >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer +final _objc_msgSend_kh8q6eFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, - ffi.Double, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - double, ) >(); -final _objc_msgSend_hws22w = objc.msgSendPointer +final _objc_msgSend_ko9mpb = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int Function( + ffi.Int64 Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -260115,16 +260827,15 @@ final _objc_msgSend_hws22w = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_ifge4x = objc.msgSendPointer +final _objc_msgSend_kqg9a0 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Long, + ffi.Pointer, + ffi.Bool, ) > >() @@ -260133,38 +260844,21 @@ final _objc_msgSend_ifge4x = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - int, - int, - ) - >(); -final _objc_msgSend_ijkvzl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + bool, ) >(); -final _objc_msgSend_ipgwfh = objc.msgSendPointer +final _objc_msgSend_kqrjmf = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - objc.NSRange, - NSUInteger, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() @@ -260173,31 +260867,13 @@ final _objc_msgSend_ipgwfh = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - objc.NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ivnkdn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_iy8iz6 = objc.msgSendPointer +final _objc_msgSend_lbm6kd = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -260214,152 +260890,134 @@ final _objc_msgSend_iy8iz6 = objc.msgSendPointer objc.CGPoint, ) >(); -final _objc_msgSend_jbzgy2 = objc.msgSendPointer +final _objc_msgSend_lbnlyo = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Bool, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + bool, ) >(); -final _objc_msgSend_jfo4g1 = objc.msgSendPointer +final _objc_msgSend_m9iphx = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + objc.CGPoint Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecIdentity>, ffi.Pointer, - NSUInteger, ) > >() .asFunction< - ffi.Pointer Function( + objc.CGPoint Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecIdentity>, ffi.Pointer, - int, ) >(); -final _objc_msgSend_kgvd6q = objc.msgSendPointer +final _objc_msgSend_m9iphxStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - objc.NSRange, - ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer, ) >(); -final _objc_msgSend_l9p60w = objc.msgSendPointer +final _objc_msgSend_mbgotb = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, + ffi.Uint32, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, + int, ) >(); -final _objc_msgSend_l9ppnx = objc.msgSendPointer +final _objc_msgSend_mkoxa1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + NSUInteger Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, ) >(); -final _objc_msgSend_lof6g0 = objc.msgSendPointer +final _objc_msgSend_ml5svd = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - int, ffi.Pointer, ) >(); -final _objc_msgSend_lx7wnn = objc.msgSendPointer +final _objc_msgSend_mvpew8 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Uint32, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_lzbvjm = objc.msgSendPointer +final _objc_msgSend_n42fjv = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -260367,29 +261025,33 @@ final _objc_msgSend_lzbvjm = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_lzroim = objc.msgSendPointer +final _objc_msgSend_n75nqq = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Long, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + int, + int, + int, ) >(); -final _objc_msgSend_m7tls4 = objc.msgSendPointer +final _objc_msgSend_ng7j0k = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -260398,6 +261060,7 @@ final _objc_msgSend_m7tls4 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, ) > @@ -260409,30 +261072,31 @@ final _objc_msgSend_m7tls4 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_mabicu = objc.msgSendPointer +final _objc_msgSend_nk89d9 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer +final _objc_msgSend_nlwmd1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -260440,43 +261104,39 @@ final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer > >() .asFunction< - double Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_mlcr8l = objc.msgSendPointer +final _objc_msgSend_nlwmd1Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_mpxix1 = objc.msgSendPointer +final _objc_msgSend_nolpru = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Int64, ffi.Pointer, + objc.NSRange, ) > >() @@ -260484,87 +261144,89 @@ final _objc_msgSend_mpxix1 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - int, ffi.Pointer, + objc.NSRange, ) >(); -final _objc_msgSend_nk32k5 = objc.msgSendPointer +final _objc_msgSend_nombv2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, int, + ffi.Pointer, ) >(); -final _objc_msgSend_nkb3zz = objc.msgSendPointer +final _objc_msgSend_nu1ilo = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer<__SecIdentity> Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer<__SecIdentity> Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_nnxkei = objc.msgSendPointer +final _objc_msgSend_nv3gmm = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.LongLong Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_o762yo = objc.msgSendPointer +final _objc_msgSend_nzd96v = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_oa8mke = objc.msgSendPointer +final _objc_msgSend_o5e71h = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Double, + ffi.UnsignedLong, ) > >() @@ -260572,31 +261234,41 @@ final _objc_msgSend_oa8mke = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - double, + int, ) >(); -final _objc_msgSend_odvxky = objc.msgSendPointer +final _objc_msgSend_ocdydk = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer<__CFArray> Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + objc.NSRange, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer<__CFArray> Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ffi.Pointer, ) >(); -final _objc_msgSend_ovsamd = objc.msgSendPointer +final _objc_msgSend_omynm = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() @@ -260604,83 +261276,87 @@ final _objc_msgSend_ovsamd = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_oziolg = objc.msgSendPointer +final _objc_msgSend_on2yfn = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer<__SecKey> Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + NSUInteger, + ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer<__SecKey> Function( + bool Function( ffi.Pointer, ffi.Pointer, + int, + ffi.Pointer>, ) >(); -final _objc_msgSend_pccgql = objc.msgSendPointer +final _objc_msgSend_po1ic4 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, - objc.NSRange, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - objc.NSRange, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_pfv6jd = objc.msgSendPointer +final _objc_msgSend_pxpqpv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.UnsignedInt Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_pysgoz = objc.msgSendPointer +final _objc_msgSend_q6vpml = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int64 Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Double, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, + double, ) >(); -final _objc_msgSend_qrtfce = objc.msgSendPointer +final _objc_msgSend_r1rnp = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.CGRect Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -260688,17 +261364,17 @@ final _objc_msgSend_qrtfce = objc.msgSendPointer > >() .asFunction< - objc.CGRect Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_qrtfceStret = objc.msgSendStretPointer +final _objc_msgSend_r1rnpStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -260707,76 +261383,82 @@ final _objc_msgSend_qrtfceStret = objc.msgSendStretPointer >() .asFunction< void Function( - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_qugqlf = objc.msgSendPointer +final _objc_msgSend_ralblg = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ) >(); -final _objc_msgSend_quo6mj = objc.msgSendPointer +final _objc_msgSend_rcrzo0 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, - ffi.Float, ffi.Pointer, + NSUInteger, + objc.NSRange, ) > >() .asFunction< - void Function( + objc.NSRange Function( ffi.Pointer, ffi.Pointer, - double, ffi.Pointer, + int, + objc.NSRange, ) >(); -final _objc_msgSend_r0bo0s = objc.msgSendPointer +final _objc_msgSend_rcrzo0Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + NSUInteger, + objc.NSRange, ) > >() .asFunction< - ffi.Pointer Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, + objc.NSRange, ) >(); -final _objc_msgSend_r8gdi7 = objc.msgSendPointer +final _objc_msgSend_rfcpxf = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.UnsignedLong, ) > >() @@ -260784,27 +261466,31 @@ final _objc_msgSend_r8gdi7 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_rmqcvp = objc.msgSendPointer +final _objc_msgSend_rjymh3 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Uint16 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Bool, + NSUInteger, + ffi.Pointer>, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + bool, + int, + ffi.Pointer>, ) >(); -final _objc_msgSend_rutu22 = objc.msgSendPointer +final _objc_msgSend_s0nvsa = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -260812,7 +261498,6 @@ final _objc_msgSend_rutu22 = objc.msgSendPointer ffi.Pointer, ffi.UnsignedLong, ffi.Pointer, - ffi.Pointer, ) > >() @@ -260822,10 +261507,26 @@ final _objc_msgSend_rutu22 = objc.msgSendPointer ffi.Pointer, int, ffi.Pointer, + ) + >(); +final _objc_msgSend_s69mzd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_s058d2 = objc.msgSendPointer +final _objc_msgSend_shgy3l = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -260844,140 +261545,124 @@ final _objc_msgSend_s058d2 = objc.msgSendPointer int, ) >(); -final _objc_msgSend_s92gih = objc.msgSendPointer +final _objc_msgSend_smucfr = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_sax6zm = objc.msgSendPointer +final _objc_msgSend_spoczw = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - objc.NSEdgeInsets, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSEdgeInsets, - ) - >(); -final _objc_msgSend_sl0cgw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSEdgeInsets Function( + objc.CGPoint, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - objc.NSEdgeInsets Function( + void Function( ffi.Pointer, ffi.Pointer, + objc.CGPoint, + ffi.Pointer, ) >(); -final _objc_msgSend_sl0cgwStret = objc.msgSendStretPointer +final _objc_msgSend_twa2vs = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_syi8bx = objc.msgSendPointer +final _objc_msgSend_umhdr9 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Bool, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + bool, ) >(); -final _objc_msgSend_sz90oi = objc.msgSendPointer +final _objc_msgSend_unrmat = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_t8ajot = objc.msgSendPointer +final _objc_msgSend_uo2bdm = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ffi.Double, ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, double, ffi.Pointer, ) >(); -final _objc_msgSend_tpnpd0 = objc.msgSendPointer +final _objc_msgSend_upjxor = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.Long, - ffi.Pointer>, + ffi.Pointer, + ffi.UnsignedLong, ) > >() @@ -260985,36 +261670,29 @@ final _objc_msgSend_tpnpd0 = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, - bool, + ffi.Pointer, int, - ffi.Pointer>, ) >(); -final _objc_msgSend_tsocn4 = objc.msgSendPointer +final _objc_msgSend_vofvy9 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, ) >(); -final _objc_msgSend_tyifel = objc.msgSendPointer +final _objc_msgSend_vplevf = objc.msgSendPointer .cast< ffi.NativeFunction< - NSInteger Function( + CFOptionFlags Function( ffi.Pointer, ffi.Pointer, ) @@ -261026,109 +261704,78 @@ final _objc_msgSend_tyifel = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_u2drt1 = objc.msgSendPointer +final _objc_msgSend_wcvpes = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Uint64, - ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, - ffi.Pointer, ) >(); -final _objc_msgSend_u8u7og = objc.msgSendPointer +final _objc_msgSend_wi8f6a = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ffi.Double, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - double, ) >(); -final _objc_msgSend_uwvaik = objc.msgSendPointer +final _objc_msgSend_wke702 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_v5hmet = objc.msgSendPointer +final _objc_msgSend_wke702Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Float, ) > >() .asFunction< void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_vbc8p4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, ) >(); -final _objc_msgSend_vij4rw = objc.msgSendPointer +final _objc_msgSend_wv523k = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, - ffi.Pointer, - NSUInteger, - ffi.Pointer, ffi.Pointer, ) > @@ -261137,132 +261784,71 @@ final _objc_msgSend_vij4rw = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - objc.NSRange, - ffi.Pointer, - int, - ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_vkpxx6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - CFOptionFlags Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_vqual9 = objc.msgSendPointer +final _objc_msgSend_x20rg3 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSUInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_w9bq5x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, - objc.NSRange, ffi.Bool, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, - objc.NSRange, bool, ) >(); -final _objc_msgSend_wbgokv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_wep107 = objc.msgSendPointer +final _objc_msgSend_x76ogv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, + ffi.Long, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGSize, - double, - ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_wfjd8v = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_wgkxx2 = objc.msgSendPointer +final _objc_msgSend_xjlvtx = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGPoint, + ffi.Pointer, ) > >() @@ -261270,10 +261856,10 @@ final _objc_msgSend_wgkxx2 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - objc.CGPoint, + ffi.Pointer, ) >(); -final _objc_msgSend_wp1dbz = objc.msgSendPointer +final _objc_msgSend_xkivwz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -261281,7 +261867,8 @@ final _objc_msgSend_wp1dbz = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.LongLong, + NSInteger, + ffi.Pointer, ) > >() @@ -261292,84 +261879,50 @@ final _objc_msgSend_wp1dbz = objc.msgSendPointer ffi.Pointer, ffi.Pointer, int, - ) - >(); -final _objc_msgSend_xhvge5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer>, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_xm0jkv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + NSUInteger, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_xw2lbc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_y1izi1 = objc.msgSendPointer +final _objc_msgSend_xnca0g = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_y1woti = objc.msgSendPointer +final _objc_msgSend_xu1jv4 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, + ffi.Int64, ffi.Pointer, ) > @@ -261378,130 +261931,101 @@ final _objc_msgSend_y1woti = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_yl37m5 = objc.msgSendPointer +final _objc_msgSend_y1vupz = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.NSRange Function( + NSUInteger Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, ) > >() .asFunction< - objc.NSRange Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, ) >(); -final _objc_msgSend_yl37m5Stret = objc.msgSendStretPointer +final _objc_msgSend_yeon2y = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, NSUInteger, - objc.NSRange, + ffi.Pointer, ) > >() .asFunction< - void Function( - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - objc.NSRange, + ffi.Pointer, ) >(); -final _objc_msgSend_ylninc = objc.msgSendPointer +final _objc_msgSend_yvcp9i = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.Float, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - int, + double, + ffi.Pointer, ) >(); -final _objc_msgSend_z7gxsm = objc.msgSendPointer +final _objc_msgSend_z7s0qs = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer<__SecIdentity> Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, ) > >() .asFunction< - bool Function( + ffi.Pointer<__SecIdentity> Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, ) >(); -final _objc_msgSend_z7lrh9 = objc.msgSendPointer +final _objc_msgSend_zk1qxr = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + NSUInteger Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Uint64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_zmbtbd = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, ) > >() @@ -261509,50 +262033,40 @@ final _objc_msgSend_zmbtbd = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - int, ) >(); -final _objc_msgSend_zuf90e = objc.msgSendPointer +final _objc_msgSend_zlrk5f = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_zy00wz = objc.msgSendPointer +final _objc_msgSend_zlrk5fFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, - objc.NSRange, - ffi.Pointer, ) > >() .asFunction< - bool Function( + double Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - bool, - objc.NSRange, - ffi.Pointer, ) >(); @@ -263671,6 +264185,8 @@ late final _sel_numberOfMatchesInString_options_range_ = objc.registerName( ); late final _sel_numberOfRanges = objc.registerName("numberOfRanges"); late final _sel_objectSpecifier = objc.registerName("objectSpecifier"); +late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc + .registerName("objectWithItemProviderData:typeIdentifier:error:"); late final _sel_objectZone = objc.registerName("objectZone"); late final _sel_observationInfo = objc.registerName("observationInfo"); late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc @@ -263967,6 +264483,9 @@ late final _sel_readToEndOfFileInBackgroundAndNotify = objc.registerName( late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_ = objc .registerName("readToEndOfFileInBackgroundAndNotifyForModes:"); late final _sel_readabilityHandler = objc.registerName("readabilityHandler"); +late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( + "readableTypeIdentifiersForItemProvider", +); late final _sel_rectValue = objc.registerName("rectValue"); late final _sel_regionCode = objc.registerName("regionCode"); late final _sel_regularExpression = objc.registerName("regularExpression"); diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart.m b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart.m new file mode 100644 index 0000000000..21c93bc6c1 --- /dev/null +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart.m @@ -0,0 +1,4102 @@ +#include +#import +#import +#import + +#if !__has_feature(objc_arc) +#error "This file must be compiled with ARC enabled" +#endif + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundeclared-selector" + +typedef struct { + int64_t version; + void* (*newWaiter)(void); + void (*awaitWaiter)(void*); + void* (*currentIsolate)(void); + void (*enterIsolate)(void*); + void (*exitIsolate)(void); + int64_t (*getMainPortId)(void); + bool (*getCurrentThreadOwnsIsolate)(int64_t); + void (*invokeListenerPortBlock)(int64_t port, void*); + void (*invokeBlockingPortBlock)(int64_t port, void*, void*); +} DOBJC_Context; + +id objc_retainBlock(id); + +#define BLOCKING_BLOCK_IMPL(ctx, TYPE, SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ + assert(ctx->version >= 1); \ + void* targetIsolate = ctx->currentIsolate(); \ + int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ + __block __weak TYPE weakSelfBlock = nil; \ + TYPE strongSelfBlock = [SIG { \ + void* currentIsolate = ctx->currentIsolate(); \ + bool mayEnterIsolate = \ + currentIsolate == NULL && \ + ctx->getCurrentThreadOwnsIsolate != NULL && \ + ctx->getCurrentThreadOwnsIsolate(targetPort); \ + if (currentIsolate == targetIsolate || mayEnterIsolate) { \ + if (mayEnterIsolate) { \ + ctx->enterIsolate(targetIsolate); \ + } \ + INVOKE_DIRECT; \ + if (mayEnterIsolate) { \ + ctx->exitIsolate(); \ + } \ + } else { \ + void* waiter = ctx->newWaiter(); \ + TYPE selfRetain = [weakSelfBlock copy]; \ + INVOKE_LISTENER; \ + ctx->awaitWaiter(waiter); \ + (void)selfRetain; \ + } \ + } copy]; \ + weakSelfBlock = strongSelfBlock; \ + return strongSelfBlock; + + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_AVAudioPlayerDelegate(void) { return @protocol(AVAudioPlayerDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_AVAudioSessionDelegate(void) { return @protocol(AVAudioSessionDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_CTAdaptiveImageProviding(void) { return @protocol(CTAdaptiveImageProviding); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSCacheDelegate(void) { return @protocol(NSCacheDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSConnectionDelegate(void) { return @protocol(NSConnectionDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSDecimalNumberBehaviors(void) { return @protocol(NSDecimalNumberBehaviors); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSDiscardableContent(void) { return @protocol(NSDiscardableContent); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSExtensionRequestHandling(void) { return @protocol(NSExtensionRequestHandling); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSFileManagerDelegate(void) { return @protocol(NSFileManagerDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSFilePresenter(void) { return @protocol(NSFilePresenter); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSKeyedArchiverDelegate(void) { return @protocol(NSKeyedArchiverDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSKeyedUnarchiverDelegate(void) { return @protocol(NSKeyedUnarchiverDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSLocking(void) { return @protocol(NSLocking); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSMachPortDelegate(void) { return @protocol(NSMachPortDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSMetadataQueryDelegate(void) { return @protocol(NSMetadataQueryDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSNetServiceBrowserDelegate(void) { return @protocol(NSNetServiceBrowserDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSNetServiceDelegate(void) { return @protocol(NSNetServiceDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSProgressReporting(void) { return @protocol(NSProgressReporting); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSSpellServerDelegate(void) { return @protocol(NSSpellServerDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLAuthenticationChallengeSender(void) { return @protocol(NSURLAuthenticationChallengeSender); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLConnectionDataDelegate(void) { return @protocol(NSURLConnectionDataDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLConnectionDelegate(void) { return @protocol(NSURLConnectionDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLConnectionDownloadDelegate(void) { return @protocol(NSURLConnectionDownloadDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLDownloadDelegate(void) { return @protocol(NSURLDownloadDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLHandleClient(void) { return @protocol(NSURLHandleClient); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLProtocolClient(void) { return @protocol(NSURLProtocolClient); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLSessionDataDelegate(void) { return @protocol(NSURLSessionDataDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLSessionDelegate(void) { return @protocol(NSURLSessionDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLSessionDownloadDelegate(void) { return @protocol(NSURLSessionDownloadDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLSessionStreamDelegate(void) { return @protocol(NSURLSessionStreamDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLSessionTaskDelegate(void) { return @protocol(NSURLSessionTaskDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSURLSessionWebSocketDelegate(void) { return @protocol(NSURLSessionWebSocketDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSUserActivityDelegate(void) { return @protocol(NSUserActivityDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSUserNotificationCenterDelegate(void) { return @protocol(NSUserNotificationCenterDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSXMLParserDelegate(void) { return @protocol(NSXMLParserDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSXPCListenerDelegate(void) { return @protocol(NSXPCListenerDelegate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_NSXPCProxyCreating(void) { return @protocol(NSXPCProxyCreating); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_data(void) { return @protocol(OS_dispatch_data); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_group(void) { return @protocol(OS_dispatch_group); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_io(void) { return @protocol(OS_dispatch_io); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_object(void) { return @protocol(OS_dispatch_object); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_queue(void) { return @protocol(OS_dispatch_queue); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_queue_attr(void) { return @protocol(OS_dispatch_queue_attr); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_queue_concurrent(void) { return @protocol(OS_dispatch_queue_concurrent); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_queue_global(void) { return @protocol(OS_dispatch_queue_global); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_queue_main(void) { return @protocol(OS_dispatch_queue_main); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_queue_serial(void) { return @protocol(OS_dispatch_queue_serial); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_queue_serial_executor(void) { return @protocol(OS_dispatch_queue_serial_executor); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_semaphore(void) { return @protocol(OS_dispatch_semaphore); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_source(void) { return @protocol(OS_dispatch_source); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_dispatch_workloop(void) { return @protocol(OS_dispatch_workloop); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_os_workgroup_interval(void) { return @protocol(OS_os_workgroup_interval); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_os_workgroup_parallel(void) { return @protocol(OS_os_workgroup_parallel); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_sec_certificate(void) { return @protocol(OS_sec_certificate); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_sec_identity(void) { return @protocol(OS_sec_identity); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_sec_object(void) { return @protocol(OS_sec_object); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_sec_protocol_metadata(void) { return @protocol(OS_sec_protocol_metadata); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_sec_protocol_options(void) { return @protocol(OS_sec_protocol_options); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_sec_trust(void) { return @protocol(OS_sec_trust); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_xpc_listener(void) { return @protocol(OS_xpc_listener); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_xpc_object(void) { return @protocol(OS_xpc_object); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_xpc_peer_requirement(void) { return @protocol(OS_xpc_peer_requirement); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_OS_xpc_session(void) { return @protocol(OS_xpc_session); } + +typedef struct CGImage * (^_ProtocolTrampoline)(void * sel, struct CGSize arg1, double arg2, struct CGPoint * arg3, struct CGSize * arg4); +__attribute__((visibility("default"))) __attribute__((used)) +struct CGImage * _1uu024u_protocolTrampoline_1p89e63(id target, void * sel, struct CGSize arg1, double arg2, struct CGPoint * arg3, struct CGSize * arg4) { + return ((_ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +typedef id (^_ProtocolTrampoline_1)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +id _1uu024u_protocolTrampoline_1mbt9g9(id target, void * sel) { + return ((_ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef id (^_ProtocolTrampoline_2)(void * sel, id arg1, struct _NSRange arg2, id arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +id _1uu024u_protocolTrampoline_19u921t(id target, void * sel, id arg1, struct _NSRange arg2, id arg3, id arg4) { + return ((_ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +typedef id (^_ProtocolTrampoline_3)(void * sel, id arg1, id arg2, id arg3); +__attribute__((visibility("default"))) __attribute__((used)) +id _1uu024u_protocolTrampoline_1yw2rcr(id target, void * sel, id arg1, id arg2, id arg3) { + return ((_ProtocolTrampoline_3)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +typedef id (^_ProtocolTrampoline_4)(void * sel, id arg1, id arg2, unsigned long arg3, uint64_t arg4, id arg5, id arg6, long * arg7); +__attribute__((visibility("default"))) __attribute__((used)) +id _1uu024u_protocolTrampoline_1chy5b9(id target, void * sel, id arg1, id arg2, unsigned long arg3, uint64_t arg4, id arg5, id arg6, long * arg7) { + return ((_ProtocolTrampoline_4)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5, arg6, arg7); +} + +typedef id (^_ProtocolTrampoline_5)(void * sel, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +id _1uu024u_protocolTrampoline_zi5eed(id target, void * sel, id arg1, id arg2) { + return ((_ProtocolTrampoline_5)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +typedef id (^_ProtocolTrampoline_6)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +id _1uu024u_protocolTrampoline_xr62hr(id target, void * sel, id arg1) { + return ((_ProtocolTrampoline_6)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef id (^_ProtocolTrampoline_7)(void * sel, struct objc_selector * arg1, NSCalculationError arg2, id arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +id _1uu024u_protocolTrampoline_738w24(id target, void * sel, struct objc_selector * arg1, NSCalculationError arg2, id arg3, id arg4) { + return ((_ProtocolTrampoline_7)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +typedef struct _NSRange (^_ProtocolTrampoline_8)(void * sel, id arg1, id arg2, id arg3, id * arg4); +__attribute__((visibility("default"))) __attribute__((used)) +struct _NSRange _1uu024u_protocolTrampoline_xsqx6i(id target, void * sel, id arg1, id arg2, id arg3, id * arg4) { + return ((_ProtocolTrampoline_8)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +typedef struct _NSRange (^_ProtocolTrampoline_9)(void * sel, id arg1, id arg2, id arg3, long * arg4, BOOL arg5); +__attribute__((visibility("default"))) __attribute__((used)) +struct _NSRange _1uu024u_protocolTrampoline_1j6oadz(id target, void * sel, id arg1, id arg2, id arg3, long * arg4, BOOL arg5) { + return ((_ProtocolTrampoline_9)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5); +} + +typedef NSRoundingMode (^_ProtocolTrampoline_10)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +NSRoundingMode _1uu024u_protocolTrampoline_5cb1bj(id target, void * sel) { + return ((_ProtocolTrampoline_10)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef struct OpaquePMPageFormat * (^_ProtocolTrampoline_11)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +struct OpaquePMPageFormat * _1uu024u_protocolTrampoline_1pm5t72(id target, void * sel) { + return ((_ProtocolTrampoline_11)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef struct OpaquePMPrintSession * (^_ProtocolTrampoline_12)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +struct OpaquePMPrintSession * _1uu024u_protocolTrampoline_1ch2rph(id target, void * sel) { + return ((_ProtocolTrampoline_12)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef struct OpaquePMPrintSettings * (^_ProtocolTrampoline_13)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +struct OpaquePMPrintSettings * _1uu024u_protocolTrampoline_1cwrrqo(id target, void * sel) { + return ((_ProtocolTrampoline_13)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef struct OpaquePMPrinter * (^_ProtocolTrampoline_14)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +struct OpaquePMPrinter * _1uu024u_protocolTrampoline_h8xvuu(id target, void * sel) { + return ((_ProtocolTrampoline_14)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef BOOL (^_ProtocolTrampoline_15)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _1uu024u_protocolTrampoline_e3qsqz(id target, void * sel) { + return ((_ProtocolTrampoline_15)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef BOOL (^_ProtocolTrampoline_16)(void * sel, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _1uu024u_protocolTrampoline_2n06mv(id target, void * sel, id arg1, id arg2) { + return ((_ProtocolTrampoline_16)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +typedef BOOL (^_ProtocolTrampoline_17)(void * sel, id * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _1uu024u_protocolTrampoline_jp3gca(id target, void * sel, id * arg1) { + return ((_ProtocolTrampoline_17)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef BOOL (^_ProtocolTrampoline_18)(void * sel, id arg1, id arg2, id arg3); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _1uu024u_protocolTrampoline_jk8du5(id target, void * sel, id arg1, id arg2, id arg3) { + return ((_ProtocolTrampoline_18)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +typedef BOOL (^_ProtocolTrampoline_19)(void * sel, id arg1, id arg2, id arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _1uu024u_protocolTrampoline_1em3l8z(id target, void * sel, id arg1, id arg2, id arg3, id arg4) { + return ((_ProtocolTrampoline_19)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +typedef BOOL (^_ProtocolTrampoline_20)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _1uu024u_protocolTrampoline_3su7tt(id target, void * sel, id arg1) { + return ((_ProtocolTrampoline_20)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef short (^_ProtocolTrampoline_21)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +short _1uu024u_protocolTrampoline_p984hf(id target, void * sel) { + return ((_ProtocolTrampoline_21)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1pl9qdv : NSObject +@property (copy) id block; + +@end +@implementation _1uu024u_BlockArgs_1pl9qdv +@end + +typedef void (^_ListenerTrampoline)(void); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline _1uu024u_wrapListenerBlock_1pl9qdv( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline weakSelfBlock = nil; + _ListenerTrampoline strongSelfBlock = [^void() { + @autoreleasepool { + _1uu024u_BlockArgs_1pl9qdv* args = [[_1uu024u_BlockArgs_1pl9qdv alloc] init]; + args.block = weakSelfBlock; + + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline)(void * waiter); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline _1uu024u_wrapBlockingBlock_1pl9qdv(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(), { + @autoreleasepool { + _1uu024u_BlockArgs_1pl9qdv* args = [[_1uu024u_BlockArgs_1pl9qdv alloc] init]; + args.block = weakSelfBlock; + + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1pl9qdv* args = [[_1uu024u_BlockArgs_1pl9qdv alloc] init]; + args.block = weakSelfBlock; + + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_115kkcp : NSObject +@property (copy) id block; +@property unsigned char arg0; +@property unsigned long long arg1; +@property struct __CFError * arg2; +@end +@implementation _1uu024u_BlockArgs_115kkcp +@end + +typedef void (^_ListenerTrampoline_1)(unsigned char arg0, unsigned long long arg1, struct __CFError * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_1 _1uu024u_wrapListenerBlock_115kkcp( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_1 weakSelfBlock = nil; + _ListenerTrampoline_1 strongSelfBlock = [^void(unsigned char arg0, unsigned long long arg1, struct __CFError * arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_115kkcp* args = [[_1uu024u_BlockArgs_115kkcp alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_1)(void * waiter, unsigned char arg0, unsigned long long arg1, struct __CFError * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_1 _1uu024u_wrapBlockingBlock_115kkcp(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_1, ^void(unsigned char arg0, unsigned long long arg1, struct __CFError * arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_115kkcp* args = [[_1uu024u_BlockArgs_115kkcp alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_115kkcp* args = [[_1uu024u_BlockArgs_115kkcp alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_9fms3g : NSObject +@property (copy) id block; +@property struct __CFArray * arg0; +@end +@implementation _1uu024u_BlockArgs_9fms3g +@end + +typedef void (^_ListenerTrampoline_2)(struct __CFArray * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_2 _1uu024u_wrapListenerBlock_9fms3g( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_2 weakSelfBlock = nil; + _ListenerTrampoline_2 strongSelfBlock = [^void(struct __CFArray * arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_9fms3g* args = [[_1uu024u_BlockArgs_9fms3g alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_2)(void * waiter, struct __CFArray * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_2 _1uu024u_wrapBlockingBlock_9fms3g(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_2, ^void(struct __CFArray * arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_9fms3g* args = [[_1uu024u_BlockArgs_9fms3g alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_9fms3g* args = [[_1uu024u_BlockArgs_9fms3g alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_15ghdzk : NSObject +@property (copy) id block; +@property struct __CFArray * arg0; +@property struct __CFError * arg1; +@end +@implementation _1uu024u_BlockArgs_15ghdzk +@end + +typedef void (^_ListenerTrampoline_3)(struct __CFArray * arg0, struct __CFError * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_3 _1uu024u_wrapListenerBlock_15ghdzk( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_3 weakSelfBlock = nil; + _ListenerTrampoline_3 strongSelfBlock = [^void(struct __CFArray * arg0, struct __CFError * arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_15ghdzk* args = [[_1uu024u_BlockArgs_15ghdzk alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_3)(void * waiter, struct __CFArray * arg0, struct __CFError * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_3 _1uu024u_wrapBlockingBlock_15ghdzk(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_3, ^void(struct __CFArray * arg0, struct __CFError * arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_15ghdzk* args = [[_1uu024u_BlockArgs_15ghdzk alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_15ghdzk* args = [[_1uu024u_BlockArgs_15ghdzk alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1kwz7d1 : NSObject +@property (copy) id block; +@property struct __CFError * arg0; +@end +@implementation _1uu024u_BlockArgs_1kwz7d1 +@end + +typedef void (^_ListenerTrampoline_4)(struct __CFError * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_4 _1uu024u_wrapListenerBlock_1kwz7d1( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_4 weakSelfBlock = nil; + _ListenerTrampoline_4 strongSelfBlock = [^void(struct __CFError * arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_1kwz7d1* args = [[_1uu024u_BlockArgs_1kwz7d1 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_4)(void * waiter, struct __CFError * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_4 _1uu024u_wrapBlockingBlock_1kwz7d1(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_4, ^void(struct __CFError * arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_1kwz7d1* args = [[_1uu024u_BlockArgs_1kwz7d1 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1kwz7d1* args = [[_1uu024u_BlockArgs_1kwz7d1 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1yrznn1 : NSObject +@property (copy) id block; +@property struct __CFError * arg0; +@property CGContentInfo * arg1; +@property CGBitmapParameters * arg2; +@end +@implementation _1uu024u_BlockArgs_1yrznn1 +@end + +typedef void (^_ListenerTrampoline_5)(struct __CFError * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_5 _1uu024u_wrapListenerBlock_1yrznn1( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_5 weakSelfBlock = nil; + _ListenerTrampoline_5 strongSelfBlock = [^void(struct __CFError * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_1yrznn1* args = [[_1uu024u_BlockArgs_1yrznn1 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_5)(void * waiter, struct __CFError * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_5 _1uu024u_wrapBlockingBlock_1yrznn1(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_5, ^void(struct __CFError * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_1yrznn1* args = [[_1uu024u_BlockArgs_1yrznn1 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1yrznn1* args = [[_1uu024u_BlockArgs_1yrznn1 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_tg5tbv : NSObject +@property (copy) id block; +@property struct __CFRunLoopObserver * arg0; +@property CFRunLoopActivity arg1; +@end +@implementation _1uu024u_BlockArgs_tg5tbv +@end + +typedef void (^_ListenerTrampoline_6)(struct __CFRunLoopObserver * arg0, CFRunLoopActivity arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_6 _1uu024u_wrapListenerBlock_tg5tbv( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_6 weakSelfBlock = nil; + _ListenerTrampoline_6 strongSelfBlock = [^void(struct __CFRunLoopObserver * arg0, CFRunLoopActivity arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_tg5tbv* args = [[_1uu024u_BlockArgs_tg5tbv alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_6)(void * waiter, struct __CFRunLoopObserver * arg0, CFRunLoopActivity arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_6 _1uu024u_wrapBlockingBlock_tg5tbv(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_6, ^void(struct __CFRunLoopObserver * arg0, CFRunLoopActivity arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_tg5tbv* args = [[_1uu024u_BlockArgs_tg5tbv alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_tg5tbv* args = [[_1uu024u_BlockArgs_tg5tbv alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1dqvvol : NSObject +@property (copy) id block; +@property struct __CFRunLoopTimer * arg0; +@end +@implementation _1uu024u_BlockArgs_1dqvvol +@end + +typedef void (^_ListenerTrampoline_7)(struct __CFRunLoopTimer * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_7 _1uu024u_wrapListenerBlock_1dqvvol( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_7 weakSelfBlock = nil; + _ListenerTrampoline_7 strongSelfBlock = [^void(struct __CFRunLoopTimer * arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_1dqvvol* args = [[_1uu024u_BlockArgs_1dqvvol alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_7)(void * waiter, struct __CFRunLoopTimer * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_7 _1uu024u_wrapBlockingBlock_1dqvvol(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_7, ^void(struct __CFRunLoopTimer * arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_1dqvvol* args = [[_1uu024u_BlockArgs_1dqvvol alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1dqvvol* args = [[_1uu024u_BlockArgs_1dqvvol alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_b3tf6o : NSObject +@property (copy) id block; +@property void * arg0; +@property struct __CFError * arg1; +@property unsigned char arg2; +@end +@implementation _1uu024u_BlockArgs_b3tf6o +@end + +typedef void (^_ListenerTrampoline_8)(void * arg0, struct __CFError * arg1, unsigned char arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_8 _1uu024u_wrapListenerBlock_b3tf6o( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_8 weakSelfBlock = nil; + _ListenerTrampoline_8 strongSelfBlock = [^void(void * arg0, struct __CFError * arg1, unsigned char arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_b3tf6o* args = [[_1uu024u_BlockArgs_b3tf6o alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_8)(void * waiter, void * arg0, struct __CFError * arg1, unsigned char arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_8 _1uu024u_wrapBlockingBlock_b3tf6o(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_8, ^void(void * arg0, struct __CFError * arg1, unsigned char arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_b3tf6o* args = [[_1uu024u_BlockArgs_b3tf6o alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_b3tf6o* args = [[_1uu024u_BlockArgs_b3tf6o alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_du1izn : NSObject +@property (copy) id block; +@property CGDisplayStreamFrameStatus arg0; +@property uint64_t arg1; +@property struct __IOSurface * arg2; +@property struct CGDisplayStreamUpdate * arg3; +@end +@implementation _1uu024u_BlockArgs_du1izn +@end + +typedef void (^_ListenerTrampoline_9)(CGDisplayStreamFrameStatus arg0, uint64_t arg1, struct __IOSurface * arg2, struct CGDisplayStreamUpdate * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_9 _1uu024u_wrapListenerBlock_du1izn( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_9 weakSelfBlock = nil; + _ListenerTrampoline_9 strongSelfBlock = [^void(CGDisplayStreamFrameStatus arg0, uint64_t arg1, struct __IOSurface * arg2, struct CGDisplayStreamUpdate * arg3) { + @autoreleasepool { + _1uu024u_BlockArgs_du1izn* args = [[_1uu024u_BlockArgs_du1izn alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_9)(void * waiter, CGDisplayStreamFrameStatus arg0, uint64_t arg1, struct __IOSurface * arg2, struct CGDisplayStreamUpdate * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_9 _1uu024u_wrapBlockingBlock_du1izn(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_9, ^void(CGDisplayStreamFrameStatus arg0, uint64_t arg1, struct __IOSurface * arg2, struct CGDisplayStreamUpdate * arg3), { + @autoreleasepool { + _1uu024u_BlockArgs_du1izn* args = [[_1uu024u_BlockArgs_du1izn alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_du1izn* args = [[_1uu024u_BlockArgs_du1izn alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1ctgxtl : NSObject +@property (copy) id block; +@property struct CGPathElement * arg0; +@end +@implementation _1uu024u_BlockArgs_1ctgxtl +@end + +typedef void (^_ListenerTrampoline_10)(struct CGPathElement * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_10 _1uu024u_wrapListenerBlock_1ctgxtl( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_10 weakSelfBlock = nil; + _ListenerTrampoline_10 strongSelfBlock = [^void(struct CGPathElement * arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_1ctgxtl* args = [[_1uu024u_BlockArgs_1ctgxtl alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_10)(void * waiter, struct CGPathElement * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_10 _1uu024u_wrapBlockingBlock_1ctgxtl(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_10, ^void(struct CGPathElement * arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_1ctgxtl* args = [[_1uu024u_BlockArgs_1ctgxtl alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1ctgxtl* args = [[_1uu024u_BlockArgs_1ctgxtl alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_rdj45r : NSObject +@property (copy) id block; +@property struct CGRenderingBufferProvider * arg0; +@property CGContentInfo * arg1; +@property CGBitmapParameters * arg2; +@end +@implementation _1uu024u_BlockArgs_rdj45r +@end + +typedef void (^_ListenerTrampoline_11)(struct CGRenderingBufferProvider * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_11 _1uu024u_wrapListenerBlock_rdj45r( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_11 weakSelfBlock = nil; + _ListenerTrampoline_11 strongSelfBlock = [^void(struct CGRenderingBufferProvider * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_rdj45r* args = [[_1uu024u_BlockArgs_rdj45r alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_11)(void * waiter, struct CGRenderingBufferProvider * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_11 _1uu024u_wrapBlockingBlock_rdj45r(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_11, ^void(struct CGRenderingBufferProvider * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_rdj45r* args = [[_1uu024u_BlockArgs_rdj45r alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_rdj45r* args = [[_1uu024u_BlockArgs_rdj45r alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_pfv6jd : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property (strong) id arg1; +@end +@implementation _1uu024u_BlockArgs_pfv6jd +@end + +typedef void (^_ListenerTrampoline_12)(id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_12 _1uu024u_wrapListenerBlock_pfv6jd( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_12 weakSelfBlock = nil; + _ListenerTrampoline_12 strongSelfBlock = [^void(id arg0, id arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_pfv6jd* args = [[_1uu024u_BlockArgs_pfv6jd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_12)(void * waiter, id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_12 _1uu024u_wrapBlockingBlock_pfv6jd(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_12, ^void(id arg0, id arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_pfv6jd* args = [[_1uu024u_BlockArgs_pfv6jd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_pfv6jd* args = [[_1uu024u_BlockArgs_pfv6jd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_xtuoz7 : NSObject +@property (copy) id block; +@property (strong) id arg0; +@end +@implementation _1uu024u_BlockArgs_xtuoz7 +@end + +typedef void (^_ListenerTrampoline_13)(id arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_13 _1uu024u_wrapListenerBlock_xtuoz7( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_13 weakSelfBlock = nil; + _ListenerTrampoline_13 strongSelfBlock = [^void(id arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_xtuoz7* args = [[_1uu024u_BlockArgs_xtuoz7 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_13)(void * waiter, id arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_13 _1uu024u_wrapBlockingBlock_xtuoz7(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_13, ^void(id arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_xtuoz7* args = [[_1uu024u_BlockArgs_xtuoz7 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_xtuoz7* args = [[_1uu024u_BlockArgs_xtuoz7 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_10ssdng : NSObject +@property (copy) id block; +@property NSBackgroundActivityResult arg0; +@end +@implementation _1uu024u_BlockArgs_10ssdng +@end + +typedef void (^_ListenerTrampoline_14)(NSBackgroundActivityResult arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_14 _1uu024u_wrapListenerBlock_10ssdng( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_14 weakSelfBlock = nil; + _ListenerTrampoline_14 strongSelfBlock = [^void(NSBackgroundActivityResult arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_10ssdng* args = [[_1uu024u_BlockArgs_10ssdng alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_14)(void * waiter, NSBackgroundActivityResult arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_14 _1uu024u_wrapBlockingBlock_10ssdng(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_14, ^void(NSBackgroundActivityResult arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_10ssdng* args = [[_1uu024u_BlockArgs_10ssdng alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_10ssdng* args = [[_1uu024u_BlockArgs_10ssdng alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_r8gdi7 : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@end +@implementation _1uu024u_BlockArgs_r8gdi7 +@end + +typedef void (^_ListenerTrampoline_15)(id arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_15 _1uu024u_wrapListenerBlock_r8gdi7( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_15 weakSelfBlock = nil; + _ListenerTrampoline_15 strongSelfBlock = [^void(id arg0, id arg1, id arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_r8gdi7* args = [[_1uu024u_BlockArgs_r8gdi7 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_15)(void * waiter, id arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_15 _1uu024u_wrapBlockingBlock_r8gdi7(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_15, ^void(id arg0, id arg1, id arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_r8gdi7* args = [[_1uu024u_BlockArgs_r8gdi7 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_r8gdi7* args = [[_1uu024u_BlockArgs_r8gdi7 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1a22wz : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property struct _NSRange arg1; +@property BOOL * arg2; +@end +@implementation _1uu024u_BlockArgs_1a22wz +@end + +typedef void (^_ListenerTrampoline_16)(id arg0, struct _NSRange arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_16 _1uu024u_wrapListenerBlock_1a22wz( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_16 weakSelfBlock = nil; + _ListenerTrampoline_16 strongSelfBlock = [^void(id arg0, struct _NSRange arg1, BOOL * arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_1a22wz* args = [[_1uu024u_BlockArgs_1a22wz alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_16)(void * waiter, id arg0, struct _NSRange arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_16 _1uu024u_wrapBlockingBlock_1a22wz(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_16, ^void(id arg0, struct _NSRange arg1, BOOL * arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_1a22wz* args = [[_1uu024u_BlockArgs_1a22wz alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1a22wz* args = [[_1uu024u_BlockArgs_1a22wz alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1b3bb6a : NSObject +@property (copy) id block; +@property (copy) id arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@end +@implementation _1uu024u_BlockArgs_1b3bb6a +@end + +typedef void (^_ListenerTrampoline_17)(id arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_17 _1uu024u_wrapListenerBlock_1b3bb6a( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_17 weakSelfBlock = nil; + _ListenerTrampoline_17 strongSelfBlock = [^void(id arg0, id arg1, id arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_1b3bb6a* args = [[_1uu024u_BlockArgs_1b3bb6a alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_17)(void * waiter, id arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_17 _1uu024u_wrapBlockingBlock_1b3bb6a(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_17, ^void(id arg0, id arg1, id arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_1b3bb6a* args = [[_1uu024u_BlockArgs_1b3bb6a alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1b3bb6a* args = [[_1uu024u_BlockArgs_1b3bb6a alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_lmc3p5 : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property struct _NSRange arg1; +@property struct _NSRange arg2; +@property BOOL * arg3; +@end +@implementation _1uu024u_BlockArgs_lmc3p5 +@end + +typedef void (^_ListenerTrampoline_18)(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_18 _1uu024u_wrapListenerBlock_lmc3p5( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_18 weakSelfBlock = nil; + _ListenerTrampoline_18 strongSelfBlock = [^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3) { + @autoreleasepool { + _1uu024u_BlockArgs_lmc3p5* args = [[_1uu024u_BlockArgs_lmc3p5 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_18)(void * waiter, id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_18 _1uu024u_wrapBlockingBlock_lmc3p5(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_18, ^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3), { + @autoreleasepool { + _1uu024u_BlockArgs_lmc3p5* args = [[_1uu024u_BlockArgs_lmc3p5 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_lmc3p5* args = [[_1uu024u_BlockArgs_lmc3p5 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_6jvo9y : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property NSMatchingFlags arg1; +@property BOOL * arg2; +@end +@implementation _1uu024u_BlockArgs_6jvo9y +@end + +typedef void (^_ListenerTrampoline_19)(id arg0, NSMatchingFlags arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_19 _1uu024u_wrapListenerBlock_6jvo9y( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_19 weakSelfBlock = nil; + _ListenerTrampoline_19 strongSelfBlock = [^void(id arg0, NSMatchingFlags arg1, BOOL * arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_6jvo9y* args = [[_1uu024u_BlockArgs_6jvo9y alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_19)(void * waiter, id arg0, NSMatchingFlags arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_19 _1uu024u_wrapBlockingBlock_6jvo9y(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_19, ^void(id arg0, NSMatchingFlags arg1, BOOL * arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_6jvo9y* args = [[_1uu024u_BlockArgs_6jvo9y alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_6jvo9y* args = [[_1uu024u_BlockArgs_6jvo9y alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_n8yd09 : NSObject +@property (copy) id block; +@property NSURLSessionAuthChallengeDisposition arg0; +@property (strong) id arg1; +@end +@implementation _1uu024u_BlockArgs_n8yd09 +@end + +typedef void (^_ListenerTrampoline_20)(NSURLSessionAuthChallengeDisposition arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_20 _1uu024u_wrapListenerBlock_n8yd09( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_20 weakSelfBlock = nil; + _ListenerTrampoline_20 strongSelfBlock = [^void(NSURLSessionAuthChallengeDisposition arg0, id arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_n8yd09* args = [[_1uu024u_BlockArgs_n8yd09 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_20)(void * waiter, NSURLSessionAuthChallengeDisposition arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_20 _1uu024u_wrapBlockingBlock_n8yd09(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_20, ^void(NSURLSessionAuthChallengeDisposition arg0, id arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_n8yd09* args = [[_1uu024u_BlockArgs_n8yd09 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_n8yd09* args = [[_1uu024u_BlockArgs_n8yd09 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1otpo83 : NSObject +@property (copy) id block; +@property NSURLSessionDelayedRequestDisposition arg0; +@property (strong) id arg1; +@end +@implementation _1uu024u_BlockArgs_1otpo83 +@end + +typedef void (^_ListenerTrampoline_21)(NSURLSessionDelayedRequestDisposition arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_21 _1uu024u_wrapListenerBlock_1otpo83( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_21 weakSelfBlock = nil; + _ListenerTrampoline_21 strongSelfBlock = [^void(NSURLSessionDelayedRequestDisposition arg0, id arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_1otpo83* args = [[_1uu024u_BlockArgs_1otpo83 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_21)(void * waiter, NSURLSessionDelayedRequestDisposition arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_21 _1uu024u_wrapBlockingBlock_1otpo83(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_21, ^void(NSURLSessionDelayedRequestDisposition arg0, id arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_1otpo83* args = [[_1uu024u_BlockArgs_1otpo83 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1otpo83* args = [[_1uu024u_BlockArgs_1otpo83 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_16sve1d : NSObject +@property (copy) id block; +@property NSURLSessionResponseDisposition arg0; +@end +@implementation _1uu024u_BlockArgs_16sve1d +@end + +typedef void (^_ListenerTrampoline_22)(NSURLSessionResponseDisposition arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_22 _1uu024u_wrapListenerBlock_16sve1d( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_22 weakSelfBlock = nil; + _ListenerTrampoline_22 strongSelfBlock = [^void(NSURLSessionResponseDisposition arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_16sve1d* args = [[_1uu024u_BlockArgs_16sve1d alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_22)(void * waiter, NSURLSessionResponseDisposition arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_22 _1uu024u_wrapBlockingBlock_16sve1d(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_22, ^void(NSURLSessionResponseDisposition arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_16sve1d* args = [[_1uu024u_BlockArgs_16sve1d alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_16sve1d* args = [[_1uu024u_BlockArgs_16sve1d alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_l3f29g : NSObject +@property (copy) id block; +@property int arg0; +@property AuthorizationItemSet * arg1; +@end +@implementation _1uu024u_BlockArgs_l3f29g +@end + +typedef void (^_ListenerTrampoline_23)(int arg0, AuthorizationItemSet * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_23 _1uu024u_wrapListenerBlock_l3f29g( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_23 weakSelfBlock = nil; + _ListenerTrampoline_23 strongSelfBlock = [^void(int arg0, AuthorizationItemSet * arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_l3f29g* args = [[_1uu024u_BlockArgs_l3f29g alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_23)(void * waiter, int arg0, AuthorizationItemSet * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_23 _1uu024u_wrapBlockingBlock_l3f29g(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_23, ^void(int arg0, AuthorizationItemSet * arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_l3f29g* args = [[_1uu024u_BlockArgs_l3f29g alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_l3f29g* args = [[_1uu024u_BlockArgs_l3f29g alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1rz4y3 : NSObject +@property (copy) id block; +@property struct __SecKey * arg0; +@property struct __SecKey * arg1; +@property struct __CFError * arg2; +@end +@implementation _1uu024u_BlockArgs_1rz4y3 +@end + +typedef void (^_ListenerTrampoline_24)(struct __SecKey * arg0, struct __SecKey * arg1, struct __CFError * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_24 _1uu024u_wrapListenerBlock_1rz4y3( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_24 weakSelfBlock = nil; + _ListenerTrampoline_24 strongSelfBlock = [^void(struct __SecKey * arg0, struct __SecKey * arg1, struct __CFError * arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_1rz4y3* args = [[_1uu024u_BlockArgs_1rz4y3 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_24)(void * waiter, struct __SecKey * arg0, struct __SecKey * arg1, struct __CFError * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_24 _1uu024u_wrapBlockingBlock_1rz4y3(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_24, ^void(struct __SecKey * arg0, struct __SecKey * arg1, struct __CFError * arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_1rz4y3* args = [[_1uu024u_BlockArgs_1rz4y3 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1rz4y3* args = [[_1uu024u_BlockArgs_1rz4y3 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_gwxhxt : NSObject +@property (copy) id block; +@property struct __SecTrust * arg0; +@property SecTrustResultType arg1; +@end +@implementation _1uu024u_BlockArgs_gwxhxt +@end + +typedef void (^_ListenerTrampoline_25)(struct __SecTrust * arg0, SecTrustResultType arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_25 _1uu024u_wrapListenerBlock_gwxhxt( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_25 weakSelfBlock = nil; + _ListenerTrampoline_25 strongSelfBlock = [^void(struct __SecTrust * arg0, SecTrustResultType arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_gwxhxt* args = [[_1uu024u_BlockArgs_gwxhxt alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_25)(void * waiter, struct __SecTrust * arg0, SecTrustResultType arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_25 _1uu024u_wrapBlockingBlock_gwxhxt(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_25, ^void(struct __SecTrust * arg0, SecTrustResultType arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_gwxhxt* args = [[_1uu024u_BlockArgs_gwxhxt alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_gwxhxt* args = [[_1uu024u_BlockArgs_gwxhxt alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_k73ff5 : NSObject +@property (copy) id block; +@property struct __SecTrust * arg0; +@property BOOL arg1; +@property struct __CFError * arg2; +@end +@implementation _1uu024u_BlockArgs_k73ff5 +@end + +typedef void (^_ListenerTrampoline_26)(struct __SecTrust * arg0, BOOL arg1, struct __CFError * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_26 _1uu024u_wrapListenerBlock_k73ff5( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_26 weakSelfBlock = nil; + _ListenerTrampoline_26 strongSelfBlock = [^void(struct __SecTrust * arg0, BOOL arg1, struct __CFError * arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_k73ff5* args = [[_1uu024u_BlockArgs_k73ff5 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_26)(void * waiter, struct __SecTrust * arg0, BOOL arg1, struct __CFError * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_26 _1uu024u_wrapBlockingBlock_k73ff5(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_26, ^void(struct __SecTrust * arg0, BOOL arg1, struct __CFError * arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_k73ff5* args = [[_1uu024u_BlockArgs_k73ff5 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_k73ff5* args = [[_1uu024u_BlockArgs_k73ff5 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_15f11yh : NSObject +@property (copy) id block; +@property uint16_t arg0; +@end +@implementation _1uu024u_BlockArgs_15f11yh +@end + +typedef void (^_ListenerTrampoline_27)(uint16_t arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_27 _1uu024u_wrapListenerBlock_15f11yh( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_27 weakSelfBlock = nil; + _ListenerTrampoline_27 strongSelfBlock = [^void(uint16_t arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_15f11yh* args = [[_1uu024u_BlockArgs_15f11yh alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_27)(void * waiter, uint16_t arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_27 _1uu024u_wrapBlockingBlock_15f11yh(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_27, ^void(uint16_t arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_15f11yh* args = [[_1uu024u_BlockArgs_15f11yh alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_15f11yh* args = [[_1uu024u_BlockArgs_15f11yh alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1s56lr9 : NSObject +@property (copy) id block; +@property BOOL arg0; +@end +@implementation _1uu024u_BlockArgs_1s56lr9 +@end + +typedef void (^_ListenerTrampoline_28)(BOOL arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_28 _1uu024u_wrapListenerBlock_1s56lr9( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_28 weakSelfBlock = nil; + _ListenerTrampoline_28 strongSelfBlock = [^void(BOOL arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_1s56lr9* args = [[_1uu024u_BlockArgs_1s56lr9 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_28)(void * waiter, BOOL arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_28 _1uu024u_wrapBlockingBlock_1s56lr9(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_28, ^void(BOOL arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_1s56lr9* args = [[_1uu024u_BlockArgs_1s56lr9 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1s56lr9* args = [[_1uu024u_BlockArgs_1s56lr9 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_hk7n97 : NSObject +@property (copy) id block; +@property BOOL arg0; +@property (strong) id arg1; +@end +@implementation _1uu024u_BlockArgs_hk7n97 +@end + +typedef void (^_ListenerTrampoline_29)(BOOL arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_29 _1uu024u_wrapListenerBlock_hk7n97( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_29 weakSelfBlock = nil; + _ListenerTrampoline_29 strongSelfBlock = [^void(BOOL arg0, id arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_hk7n97* args = [[_1uu024u_BlockArgs_hk7n97 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_29)(void * waiter, BOOL arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_29 _1uu024u_wrapBlockingBlock_hk7n97(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_29, ^void(BOOL arg0, id arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_hk7n97* args = [[_1uu024u_BlockArgs_hk7n97 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_hk7n97* args = [[_1uu024u_BlockArgs_hk7n97 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_og5b6y : NSObject +@property (copy) id block; +@property BOOL arg0; +@property (strong) id arg1; +@property int arg2; +@end +@implementation _1uu024u_BlockArgs_og5b6y +@end + +typedef void (^_ListenerTrampoline_30)(BOOL arg0, id arg1, int arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_30 _1uu024u_wrapListenerBlock_og5b6y( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_30 weakSelfBlock = nil; + _ListenerTrampoline_30 strongSelfBlock = [^void(BOOL arg0, id arg1, int arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_og5b6y* args = [[_1uu024u_BlockArgs_og5b6y alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_30)(void * waiter, BOOL arg0, id arg1, int arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_30 _1uu024u_wrapBlockingBlock_og5b6y(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_30, ^void(BOOL arg0, id arg1, int arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_og5b6y* args = [[_1uu024u_BlockArgs_og5b6y alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_og5b6y* args = [[_1uu024u_BlockArgs_og5b6y alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_18kzm6a : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property int arg1; +@end +@implementation _1uu024u_BlockArgs_18kzm6a +@end + +typedef void (^_ListenerTrampoline_31)(id arg0, int arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_31 _1uu024u_wrapListenerBlock_18kzm6a( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_31 weakSelfBlock = nil; + _ListenerTrampoline_31 strongSelfBlock = [^void(id arg0, int arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_18kzm6a* args = [[_1uu024u_BlockArgs_18kzm6a alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_31)(void * waiter, id arg0, int arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_31 _1uu024u_wrapBlockingBlock_18kzm6a(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_31, ^void(id arg0, int arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_18kzm6a* args = [[_1uu024u_BlockArgs_18kzm6a alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_18kzm6a* args = [[_1uu024u_BlockArgs_18kzm6a alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_132rcs6 : NSObject +@property (copy) id block; +@property double arg0; +@property long arg1; +@property BOOL arg2; +@property BOOL * arg3; +@end +@implementation _1uu024u_BlockArgs_132rcs6 +@end + +typedef void (^_ListenerTrampoline_32)(double arg0, long arg1, BOOL arg2, BOOL * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_32 _1uu024u_wrapListenerBlock_132rcs6( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_32 weakSelfBlock = nil; + _ListenerTrampoline_32 strongSelfBlock = [^void(double arg0, long arg1, BOOL arg2, BOOL * arg3) { + @autoreleasepool { + _1uu024u_BlockArgs_132rcs6* args = [[_1uu024u_BlockArgs_132rcs6 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_32)(void * waiter, double arg0, long arg1, BOOL arg2, BOOL * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_32 _1uu024u_wrapBlockingBlock_132rcs6(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_32, ^void(double arg0, long arg1, BOOL arg2, BOOL * arg3), { + @autoreleasepool { + _1uu024u_BlockArgs_132rcs6* args = [[_1uu024u_BlockArgs_132rcs6 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_132rcs6* args = [[_1uu024u_BlockArgs_132rcs6 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_9o8504 : NSObject +@property (copy) id block; +@property int arg0; +@end +@implementation _1uu024u_BlockArgs_9o8504 +@end + +typedef void (^_ListenerTrampoline_33)(int arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_33 _1uu024u_wrapListenerBlock_9o8504( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_33 weakSelfBlock = nil; + _ListenerTrampoline_33 strongSelfBlock = [^void(int arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_9o8504* args = [[_1uu024u_BlockArgs_9o8504 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_33)(void * waiter, int arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_33 _1uu024u_wrapBlockingBlock_9o8504(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_33, ^void(int arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_9o8504* args = [[_1uu024u_BlockArgs_9o8504 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_9o8504* args = [[_1uu024u_BlockArgs_9o8504 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_6enxqz : NSObject +@property (copy) id block; +@property size_t arg0; +@end +@implementation _1uu024u_BlockArgs_6enxqz +@end + +typedef void (^_ListenerTrampoline_34)(size_t arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_34 _1uu024u_wrapListenerBlock_6enxqz( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_34 weakSelfBlock = nil; + _ListenerTrampoline_34 strongSelfBlock = [^void(size_t arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_6enxqz* args = [[_1uu024u_BlockArgs_6enxqz alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_34)(void * waiter, size_t arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_34 _1uu024u_wrapBlockingBlock_6enxqz(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_34, ^void(size_t arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_6enxqz* args = [[_1uu024u_BlockArgs_6enxqz alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_6enxqz* args = [[_1uu024u_BlockArgs_6enxqz alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_11t2oft : NSObject +@property (copy) id block; +@property size_t arg0; +@property struct CGImage * arg1; +@property BOOL * arg2; +@end +@implementation _1uu024u_BlockArgs_11t2oft +@end + +typedef void (^_ListenerTrampoline_35)(size_t arg0, struct CGImage * arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_35 _1uu024u_wrapListenerBlock_11t2oft( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_35 weakSelfBlock = nil; + _ListenerTrampoline_35 strongSelfBlock = [^void(size_t arg0, struct CGImage * arg1, BOOL * arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_11t2oft* args = [[_1uu024u_BlockArgs_11t2oft alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_35)(void * waiter, size_t arg0, struct CGImage * arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_35 _1uu024u_wrapBlockingBlock_11t2oft(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_35, ^void(size_t arg0, struct CGImage * arg1, BOOL * arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_11t2oft* args = [[_1uu024u_BlockArgs_11t2oft alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_11t2oft* args = [[_1uu024u_BlockArgs_11t2oft alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_ovsamd : NSObject +@property (copy) id block; +@property void * arg0; +@end +@implementation _1uu024u_BlockArgs_ovsamd +@end + +typedef void (^_ListenerTrampoline_36)(void * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_36 _1uu024u_wrapListenerBlock_ovsamd( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_36 weakSelfBlock = nil; + _ListenerTrampoline_36 strongSelfBlock = [^void(void * arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_ovsamd* args = [[_1uu024u_BlockArgs_ovsamd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_36)(void * waiter, void * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_36 _1uu024u_wrapBlockingBlock_ovsamd(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_36, ^void(void * arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_ovsamd* args = [[_1uu024u_BlockArgs_ovsamd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_ovsamd* args = [[_1uu024u_BlockArgs_ovsamd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_22)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_ovsamd(id target, void * sel) { + return ((_ProtocolTrampoline_22)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_f167m6 : NSObject +@property (copy) id block; +@property (strong) id arg0; +@end +@implementation _1uu024u_BlockArgs_f167m6 +@end + +typedef void (^_ListenerTrampoline_37)(id arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_37 _1uu024u_wrapListenerBlock_f167m6( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_37 weakSelfBlock = nil; + _ListenerTrampoline_37 strongSelfBlock = [^void(id arg0) { + @autoreleasepool { + _1uu024u_BlockArgs_f167m6* args = [[_1uu024u_BlockArgs_f167m6 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_37)(void * waiter, id arg0); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_37 _1uu024u_wrapBlockingBlock_f167m6(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_37, ^void(id arg0), { + @autoreleasepool { + _1uu024u_BlockArgs_f167m6* args = [[_1uu024u_BlockArgs_f167m6 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_f167m6* args = [[_1uu024u_BlockArgs_f167m6 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_fjrv01 : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@end +@implementation _1uu024u_BlockArgs_fjrv01 +@end + +typedef void (^_ListenerTrampoline_38)(void * arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_38 _1uu024u_wrapListenerBlock_fjrv01( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_38 weakSelfBlock = nil; + _ListenerTrampoline_38 strongSelfBlock = [^void(void * arg0, id arg1, id arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_fjrv01* args = [[_1uu024u_BlockArgs_fjrv01 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_38)(void * waiter, void * arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_38 _1uu024u_wrapBlockingBlock_fjrv01(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_38, ^void(void * arg0, id arg1, id arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_fjrv01* args = [[_1uu024u_BlockArgs_fjrv01 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_fjrv01* args = [[_1uu024u_BlockArgs_fjrv01 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_23)(void * sel, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_fjrv01(id target, void * sel, id arg1, id arg2) { + return ((_ProtocolTrampoline_23)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_zzthnb : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property BOOL arg2; +@end +@implementation _1uu024u_BlockArgs_zzthnb +@end + +typedef void (^_ListenerTrampoline_39)(void * arg0, id arg1, BOOL arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_39 _1uu024u_wrapListenerBlock_zzthnb( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_39 weakSelfBlock = nil; + _ListenerTrampoline_39 strongSelfBlock = [^void(void * arg0, id arg1, BOOL arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_zzthnb* args = [[_1uu024u_BlockArgs_zzthnb alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_39)(void * waiter, void * arg0, id arg1, BOOL arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_39 _1uu024u_wrapBlockingBlock_zzthnb(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_39, ^void(void * arg0, id arg1, BOOL arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_zzthnb* args = [[_1uu024u_BlockArgs_zzthnb alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_zzthnb* args = [[_1uu024u_BlockArgs_zzthnb alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_24)(void * sel, id arg1, BOOL arg2); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_zzthnb(id target, void * sel, id arg1, BOOL arg2) { + return ((_ProtocolTrampoline_24)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_18v1jvf : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@end +@implementation _1uu024u_BlockArgs_18v1jvf +@end + +typedef void (^_ListenerTrampoline_40)(void * arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_40 _1uu024u_wrapListenerBlock_18v1jvf( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_40 weakSelfBlock = nil; + _ListenerTrampoline_40 strongSelfBlock = [^void(void * arg0, id arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_18v1jvf* args = [[_1uu024u_BlockArgs_18v1jvf alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_40)(void * waiter, void * arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_40 _1uu024u_wrapBlockingBlock_18v1jvf(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_40, ^void(void * arg0, id arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_18v1jvf* args = [[_1uu024u_BlockArgs_18v1jvf alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_18v1jvf* args = [[_1uu024u_BlockArgs_18v1jvf alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_25)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_18v1jvf(id target, void * sel, id arg1) { + return ((_ProtocolTrampoline_25)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1tz5yf : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property (strong) id arg3; +@end +@implementation _1uu024u_BlockArgs_1tz5yf +@end + +typedef void (^_ListenerTrampoline_41)(void * arg0, id arg1, id arg2, id arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_41 _1uu024u_wrapListenerBlock_1tz5yf( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_41 weakSelfBlock = nil; + _ListenerTrampoline_41 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3) { + @autoreleasepool { + _1uu024u_BlockArgs_1tz5yf* args = [[_1uu024u_BlockArgs_1tz5yf alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_41)(void * waiter, void * arg0, id arg1, id arg2, id arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_41 _1uu024u_wrapBlockingBlock_1tz5yf(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_41, ^void(void * arg0, id arg1, id arg2, id arg3), { + @autoreleasepool { + _1uu024u_BlockArgs_1tz5yf* args = [[_1uu024u_BlockArgs_1tz5yf alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1tz5yf* args = [[_1uu024u_BlockArgs_1tz5yf alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_26)(void * sel, id arg1, id arg2, id arg3); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_1tz5yf(id target, void * sel, id arg1, id arg2, id arg3) { + return ((_ProtocolTrampoline_26)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_8acz2h : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property BOOL arg3; +@end +@implementation _1uu024u_BlockArgs_8acz2h +@end + +typedef void (^_ListenerTrampoline_42)(void * arg0, id arg1, id arg2, BOOL arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_42 _1uu024u_wrapListenerBlock_8acz2h( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_42 weakSelfBlock = nil; + _ListenerTrampoline_42 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, BOOL arg3) { + @autoreleasepool { + _1uu024u_BlockArgs_8acz2h* args = [[_1uu024u_BlockArgs_8acz2h alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_42)(void * waiter, void * arg0, id arg1, id arg2, BOOL arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_42 _1uu024u_wrapBlockingBlock_8acz2h(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_42, ^void(void * arg0, id arg1, id arg2, BOOL arg3), { + @autoreleasepool { + _1uu024u_BlockArgs_8acz2h* args = [[_1uu024u_BlockArgs_8acz2h alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_8acz2h* args = [[_1uu024u_BlockArgs_8acz2h alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_27)(void * sel, id arg1, id arg2, BOOL arg3); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_8acz2h(id target, void * sel, id arg1, id arg2, BOOL arg3) { + return ((_ProtocolTrampoline_27)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1cn988u : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property unsigned long arg2; +@property (strong) id arg3; +@property (strong) id arg4; +@property (strong) id arg5; +@end +@implementation _1uu024u_BlockArgs_1cn988u +@end + +typedef void (^_ListenerTrampoline_43)(void * arg0, id arg1, unsigned long arg2, id arg3, id arg4, id arg5); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_43 _1uu024u_wrapListenerBlock_1cn988u( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_43 weakSelfBlock = nil; + _ListenerTrampoline_43 strongSelfBlock = [^void(void * arg0, id arg1, unsigned long arg2, id arg3, id arg4, id arg5) { + @autoreleasepool { + _1uu024u_BlockArgs_1cn988u* args = [[_1uu024u_BlockArgs_1cn988u alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_43)(void * waiter, void * arg0, id arg1, unsigned long arg2, id arg3, id arg4, id arg5); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_43 _1uu024u_wrapBlockingBlock_1cn988u(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_43, ^void(void * arg0, id arg1, unsigned long arg2, id arg3, id arg4, id arg5), { + @autoreleasepool { + _1uu024u_BlockArgs_1cn988u* args = [[_1uu024u_BlockArgs_1cn988u alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1cn988u* args = [[_1uu024u_BlockArgs_1cn988u alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_28)(void * sel, id arg1, unsigned long arg2, id arg3, id arg4, id arg5); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_1cn988u(id target, void * sel, id arg1, unsigned long arg2, id arg3, id arg4, id arg5) { + return ((_ProtocolTrampoline_28)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_zuf90e : NSObject +@property (copy) id block; +@property void * arg0; +@property unsigned long arg1; +@end +@implementation _1uu024u_BlockArgs_zuf90e +@end + +typedef void (^_ListenerTrampoline_44)(void * arg0, unsigned long arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_44 _1uu024u_wrapListenerBlock_zuf90e( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_44 weakSelfBlock = nil; + _ListenerTrampoline_44 strongSelfBlock = [^void(void * arg0, unsigned long arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_zuf90e* args = [[_1uu024u_BlockArgs_zuf90e alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_44)(void * waiter, void * arg0, unsigned long arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_44 _1uu024u_wrapBlockingBlock_zuf90e(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_44, ^void(void * arg0, unsigned long arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_zuf90e* args = [[_1uu024u_BlockArgs_zuf90e alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_zuf90e* args = [[_1uu024u_BlockArgs_zuf90e alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_29)(void * sel, unsigned long arg1); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_zuf90e(id target, void * sel, unsigned long arg1) { + return ((_ProtocolTrampoline_29)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_15e9dqx : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property long arg2; +@property long arg3; +@property long arg4; +@end +@implementation _1uu024u_BlockArgs_15e9dqx +@end + +typedef void (^_ListenerTrampoline_45)(void * arg0, id arg1, long arg2, long arg3, long arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_45 _1uu024u_wrapListenerBlock_15e9dqx( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_45 weakSelfBlock = nil; + _ListenerTrampoline_45 strongSelfBlock = [^void(void * arg0, id arg1, long arg2, long arg3, long arg4) { + @autoreleasepool { + _1uu024u_BlockArgs_15e9dqx* args = [[_1uu024u_BlockArgs_15e9dqx alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_45)(void * waiter, void * arg0, id arg1, long arg2, long arg3, long arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_45 _1uu024u_wrapBlockingBlock_15e9dqx(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_45, ^void(void * arg0, id arg1, long arg2, long arg3, long arg4), { + @autoreleasepool { + _1uu024u_BlockArgs_15e9dqx* args = [[_1uu024u_BlockArgs_15e9dqx alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_15e9dqx* args = [[_1uu024u_BlockArgs_15e9dqx alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_30)(void * sel, id arg1, long arg2, long arg3, long arg4); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_15e9dqx(id target, void * sel, id arg1, long arg2, long arg3, long arg4) { + return ((_ProtocolTrampoline_30)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_9crvvv : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property long long arg2; +@property long long arg3; +@end +@implementation _1uu024u_BlockArgs_9crvvv +@end + +typedef void (^_ListenerTrampoline_46)(void * arg0, id arg1, long long arg2, long long arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_46 _1uu024u_wrapListenerBlock_9crvvv( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_46 weakSelfBlock = nil; + _ListenerTrampoline_46 strongSelfBlock = [^void(void * arg0, id arg1, long long arg2, long long arg3) { + @autoreleasepool { + _1uu024u_BlockArgs_9crvvv* args = [[_1uu024u_BlockArgs_9crvvv alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_46)(void * waiter, void * arg0, id arg1, long long arg2, long long arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_46 _1uu024u_wrapBlockingBlock_9crvvv(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_46, ^void(void * arg0, id arg1, long long arg2, long long arg3), { + @autoreleasepool { + _1uu024u_BlockArgs_9crvvv* args = [[_1uu024u_BlockArgs_9crvvv alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_9crvvv* args = [[_1uu024u_BlockArgs_9crvvv alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_31)(void * sel, id arg1, long long arg2, long long arg3); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_9crvvv(id target, void * sel, id arg1, long long arg2, long long arg3) { + return ((_ProtocolTrampoline_31)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1qf1qkl : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property long long arg2; +@property long long arg3; +@property long long arg4; +@end +@implementation _1uu024u_BlockArgs_1qf1qkl +@end + +typedef void (^_ListenerTrampoline_47)(void * arg0, id arg1, long long arg2, long long arg3, long long arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_47 _1uu024u_wrapListenerBlock_1qf1qkl( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_47 weakSelfBlock = nil; + _ListenerTrampoline_47 strongSelfBlock = [^void(void * arg0, id arg1, long long arg2, long long arg3, long long arg4) { + @autoreleasepool { + _1uu024u_BlockArgs_1qf1qkl* args = [[_1uu024u_BlockArgs_1qf1qkl alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_47)(void * waiter, void * arg0, id arg1, long long arg2, long long arg3, long long arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_47 _1uu024u_wrapBlockingBlock_1qf1qkl(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_47, ^void(void * arg0, id arg1, long long arg2, long long arg3, long long arg4), { + @autoreleasepool { + _1uu024u_BlockArgs_1qf1qkl* args = [[_1uu024u_BlockArgs_1qf1qkl alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1qf1qkl* args = [[_1uu024u_BlockArgs_1qf1qkl alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_32)(void * sel, id arg1, long long arg2, long long arg3, long long arg4); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_1qf1qkl(id target, void * sel, id arg1, long long arg2, long long arg3, long long arg4) { + return ((_ProtocolTrampoline_32)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_wy9lus : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property unsigned long arg2; +@end +@implementation _1uu024u_BlockArgs_wy9lus +@end + +typedef void (^_ListenerTrampoline_48)(void * arg0, id arg1, unsigned long arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_48 _1uu024u_wrapListenerBlock_wy9lus( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_48 weakSelfBlock = nil; + _ListenerTrampoline_48 strongSelfBlock = [^void(void * arg0, id arg1, unsigned long arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_wy9lus* args = [[_1uu024u_BlockArgs_wy9lus alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_48)(void * waiter, void * arg0, id arg1, unsigned long arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_48 _1uu024u_wrapBlockingBlock_wy9lus(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_48, ^void(void * arg0, id arg1, unsigned long arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_wy9lus* args = [[_1uu024u_BlockArgs_wy9lus alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_wy9lus* args = [[_1uu024u_BlockArgs_wy9lus alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_33)(void * sel, id arg1, unsigned long arg2); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_wy9lus(id target, void * sel, id arg1, unsigned long arg2) { + return ((_ProtocolTrampoline_33)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_34xzuf : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property long long arg3; +@end +@implementation _1uu024u_BlockArgs_34xzuf +@end + +typedef void (^_ListenerTrampoline_49)(void * arg0, id arg1, id arg2, long long arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_49 _1uu024u_wrapListenerBlock_34xzuf( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_49 weakSelfBlock = nil; + _ListenerTrampoline_49 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, long long arg3) { + @autoreleasepool { + _1uu024u_BlockArgs_34xzuf* args = [[_1uu024u_BlockArgs_34xzuf alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_49)(void * waiter, void * arg0, id arg1, id arg2, long long arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_49 _1uu024u_wrapBlockingBlock_34xzuf(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_49, ^void(void * arg0, id arg1, id arg2, long long arg3), { + @autoreleasepool { + _1uu024u_BlockArgs_34xzuf* args = [[_1uu024u_BlockArgs_34xzuf alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_34xzuf* args = [[_1uu024u_BlockArgs_34xzuf alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_34)(void * sel, id arg1, id arg2, long long arg3); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_34xzuf(id target, void * sel, id arg1, id arg2, long long arg3) { + return ((_ProtocolTrampoline_34)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1j7coyk : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property NSURLCacheStoragePolicy arg3; +@end +@implementation _1uu024u_BlockArgs_1j7coyk +@end + +typedef void (^_ListenerTrampoline_50)(void * arg0, id arg1, id arg2, NSURLCacheStoragePolicy arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_50 _1uu024u_wrapListenerBlock_1j7coyk( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_50 weakSelfBlock = nil; + _ListenerTrampoline_50 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, NSURLCacheStoragePolicy arg3) { + @autoreleasepool { + _1uu024u_BlockArgs_1j7coyk* args = [[_1uu024u_BlockArgs_1j7coyk alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_50)(void * waiter, void * arg0, id arg1, id arg2, NSURLCacheStoragePolicy arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_50 _1uu024u_wrapBlockingBlock_1j7coyk(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_50, ^void(void * arg0, id arg1, id arg2, NSURLCacheStoragePolicy arg3), { + @autoreleasepool { + _1uu024u_BlockArgs_1j7coyk* args = [[_1uu024u_BlockArgs_1j7coyk alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1j7coyk* args = [[_1uu024u_BlockArgs_1j7coyk alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_35)(void * sel, id arg1, id arg2, NSURLCacheStoragePolicy arg3); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_1j7coyk(id target, void * sel, id arg1, id arg2, NSURLCacheStoragePolicy arg3) { + return ((_ProtocolTrampoline_35)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_bklti2 : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property (copy) id arg3; +@end +@implementation _1uu024u_BlockArgs_bklti2 +@end + +typedef void (^_ListenerTrampoline_51)(void * arg0, id arg1, id arg2, id arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_51 _1uu024u_wrapListenerBlock_bklti2( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_51 weakSelfBlock = nil; + _ListenerTrampoline_51 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3) { + @autoreleasepool { + _1uu024u_BlockArgs_bklti2* args = [[_1uu024u_BlockArgs_bklti2 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_51)(void * waiter, void * arg0, id arg1, id arg2, id arg3); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_51 _1uu024u_wrapBlockingBlock_bklti2(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_51, ^void(void * arg0, id arg1, id arg2, id arg3), { + @autoreleasepool { + _1uu024u_BlockArgs_bklti2* args = [[_1uu024u_BlockArgs_bklti2 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_bklti2* args = [[_1uu024u_BlockArgs_bklti2 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_36)(void * sel, id arg1, id arg2, id arg3); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_bklti2(id target, void * sel, id arg1, id arg2, id arg3) { + return ((_ProtocolTrampoline_36)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_xx612k : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property (strong) id arg3; +@property (copy) id arg4; +@end +@implementation _1uu024u_BlockArgs_xx612k +@end + +typedef void (^_ListenerTrampoline_52)(void * arg0, id arg1, id arg2, id arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_52 _1uu024u_wrapListenerBlock_xx612k( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_52 weakSelfBlock = nil; + _ListenerTrampoline_52 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3, id arg4) { + @autoreleasepool { + _1uu024u_BlockArgs_xx612k* args = [[_1uu024u_BlockArgs_xx612k alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_52)(void * waiter, void * arg0, id arg1, id arg2, id arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_52 _1uu024u_wrapBlockingBlock_xx612k(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_52, ^void(void * arg0, id arg1, id arg2, id arg3, id arg4), { + @autoreleasepool { + _1uu024u_BlockArgs_xx612k* args = [[_1uu024u_BlockArgs_xx612k alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_xx612k* args = [[_1uu024u_BlockArgs_xx612k alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_37)(void * sel, id arg1, id arg2, id arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_xx612k(id target, void * sel, id arg1, id arg2, id arg3, id arg4) { + return ((_ProtocolTrampoline_37)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_ly2579 : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property int64_t arg3; +@property int64_t arg4; +@end +@implementation _1uu024u_BlockArgs_ly2579 +@end + +typedef void (^_ListenerTrampoline_53)(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_53 _1uu024u_wrapListenerBlock_ly2579( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_53 weakSelfBlock = nil; + _ListenerTrampoline_53 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4) { + @autoreleasepool { + _1uu024u_BlockArgs_ly2579* args = [[_1uu024u_BlockArgs_ly2579 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_53)(void * waiter, void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_53 _1uu024u_wrapBlockingBlock_ly2579(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_53, ^void(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4), { + @autoreleasepool { + _1uu024u_BlockArgs_ly2579* args = [[_1uu024u_BlockArgs_ly2579 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_ly2579* args = [[_1uu024u_BlockArgs_ly2579 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_38)(void * sel, id arg1, id arg2, int64_t arg3, int64_t arg4); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_ly2579(id target, void * sel, id arg1, id arg2, int64_t arg3, int64_t arg4) { + return ((_ProtocolTrampoline_38)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_h68abb : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property int64_t arg3; +@property int64_t arg4; +@property int64_t arg5; +@end +@implementation _1uu024u_BlockArgs_h68abb +@end + +typedef void (^_ListenerTrampoline_54)(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_54 _1uu024u_wrapListenerBlock_h68abb( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_54 weakSelfBlock = nil; + _ListenerTrampoline_54 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5) { + @autoreleasepool { + _1uu024u_BlockArgs_h68abb* args = [[_1uu024u_BlockArgs_h68abb alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_54)(void * waiter, void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_54 _1uu024u_wrapBlockingBlock_h68abb(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_54, ^void(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5), { + @autoreleasepool { + _1uu024u_BlockArgs_h68abb* args = [[_1uu024u_BlockArgs_h68abb alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_h68abb* args = [[_1uu024u_BlockArgs_h68abb alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_39)(void * sel, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_h68abb(id target, void * sel, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5) { + return ((_ProtocolTrampoline_39)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_8jfq1p : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property (strong) id arg3; +@property (strong) id arg4; +@end +@implementation _1uu024u_BlockArgs_8jfq1p +@end + +typedef void (^_ListenerTrampoline_55)(void * arg0, id arg1, id arg2, id arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_55 _1uu024u_wrapListenerBlock_8jfq1p( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_55 weakSelfBlock = nil; + _ListenerTrampoline_55 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3, id arg4) { + @autoreleasepool { + _1uu024u_BlockArgs_8jfq1p* args = [[_1uu024u_BlockArgs_8jfq1p alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_55)(void * waiter, void * arg0, id arg1, id arg2, id arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_55 _1uu024u_wrapBlockingBlock_8jfq1p(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_55, ^void(void * arg0, id arg1, id arg2, id arg3, id arg4), { + @autoreleasepool { + _1uu024u_BlockArgs_8jfq1p* args = [[_1uu024u_BlockArgs_8jfq1p alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_8jfq1p* args = [[_1uu024u_BlockArgs_8jfq1p alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_40)(void * sel, id arg1, id arg2, id arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_8jfq1p(id target, void * sel, id arg1, id arg2, id arg3, id arg4) { + return ((_ProtocolTrampoline_40)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_jyim80 : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property int64_t arg3; +@property (copy) id arg4; +@end +@implementation _1uu024u_BlockArgs_jyim80 +@end + +typedef void (^_ListenerTrampoline_56)(void * arg0, id arg1, id arg2, int64_t arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_56 _1uu024u_wrapListenerBlock_jyim80( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_56 weakSelfBlock = nil; + _ListenerTrampoline_56 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, int64_t arg3, id arg4) { + @autoreleasepool { + _1uu024u_BlockArgs_jyim80* args = [[_1uu024u_BlockArgs_jyim80 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_56)(void * waiter, void * arg0, id arg1, id arg2, int64_t arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_56 _1uu024u_wrapBlockingBlock_jyim80(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_56, ^void(void * arg0, id arg1, id arg2, int64_t arg3, id arg4), { + @autoreleasepool { + _1uu024u_BlockArgs_jyim80* args = [[_1uu024u_BlockArgs_jyim80 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_jyim80* args = [[_1uu024u_BlockArgs_jyim80 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_41)(void * sel, id arg1, id arg2, int64_t arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_jyim80(id target, void * sel, id arg1, id arg2, int64_t arg3, id arg4) { + return ((_ProtocolTrampoline_41)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_l2g8ke : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property (strong) id arg3; +@property (strong) id arg4; +@property (copy) id arg5; +@end +@implementation _1uu024u_BlockArgs_l2g8ke +@end + +typedef void (^_ListenerTrampoline_57)(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_57 _1uu024u_wrapListenerBlock_l2g8ke( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_57 weakSelfBlock = nil; + _ListenerTrampoline_57 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5) { + @autoreleasepool { + _1uu024u_BlockArgs_l2g8ke* args = [[_1uu024u_BlockArgs_l2g8ke alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_57)(void * waiter, void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_57 _1uu024u_wrapBlockingBlock_l2g8ke(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_57, ^void(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5), { + @autoreleasepool { + _1uu024u_BlockArgs_l2g8ke* args = [[_1uu024u_BlockArgs_l2g8ke alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_l2g8ke* args = [[_1uu024u_BlockArgs_l2g8ke alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_42)(void * sel, id arg1, id arg2, id arg3, id arg4, id arg5); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_l2g8ke(id target, void * sel, id arg1, id arg2, id arg3, id arg4, id arg5) { + return ((_ProtocolTrampoline_42)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1lx650f : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property NSURLSessionWebSocketCloseCode arg3; +@property (strong) id arg4; +@end +@implementation _1uu024u_BlockArgs_1lx650f +@end + +typedef void (^_ListenerTrampoline_58)(void * arg0, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_58 _1uu024u_wrapListenerBlock_1lx650f( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_58 weakSelfBlock = nil; + _ListenerTrampoline_58 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4) { + @autoreleasepool { + _1uu024u_BlockArgs_1lx650f* args = [[_1uu024u_BlockArgs_1lx650f alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_58)(void * waiter, void * arg0, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_58 _1uu024u_wrapBlockingBlock_1lx650f(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_58, ^void(void * arg0, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4), { + @autoreleasepool { + _1uu024u_BlockArgs_1lx650f* args = [[_1uu024u_BlockArgs_1lx650f alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1lx650f* args = [[_1uu024u_BlockArgs_1lx650f alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_43)(void * sel, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_1lx650f(id target, void * sel, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4) { + return ((_ProtocolTrampoline_43)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_jk1ljc : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (copy) id arg2; +@end +@implementation _1uu024u_BlockArgs_jk1ljc +@end + +typedef void (^_ListenerTrampoline_59)(void * arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_59 _1uu024u_wrapListenerBlock_jk1ljc( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_59 weakSelfBlock = nil; + _ListenerTrampoline_59 strongSelfBlock = [^void(void * arg0, id arg1, id arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_jk1ljc* args = [[_1uu024u_BlockArgs_jk1ljc alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_59)(void * waiter, void * arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_59 _1uu024u_wrapBlockingBlock_jk1ljc(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_59, ^void(void * arg0, id arg1, id arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_jk1ljc* args = [[_1uu024u_BlockArgs_jk1ljc alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_jk1ljc* args = [[_1uu024u_BlockArgs_jk1ljc alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_44)(void * sel, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_jk1ljc(id target, void * sel, id arg1, id arg2) { + return ((_ProtocolTrampoline_44)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_m09tr7 : NSObject +@property (copy) id block; +@property void * arg0; +@property (strong) id arg1; +@property (strong) id arg2; +@property (strong) id arg3; +@property (strong) id arg4; +@property (strong) id arg5; +@end +@implementation _1uu024u_BlockArgs_m09tr7 +@end + +typedef void (^_ListenerTrampoline_60)(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_60 _1uu024u_wrapListenerBlock_m09tr7( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_60 weakSelfBlock = nil; + _ListenerTrampoline_60 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5) { + @autoreleasepool { + _1uu024u_BlockArgs_m09tr7* args = [[_1uu024u_BlockArgs_m09tr7 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_60)(void * waiter, void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_60 _1uu024u_wrapBlockingBlock_m09tr7(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_60, ^void(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5), { + @autoreleasepool { + _1uu024u_BlockArgs_m09tr7* args = [[_1uu024u_BlockArgs_m09tr7 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_m09tr7* args = [[_1uu024u_BlockArgs_m09tr7 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + args.arg3 = arg3; + args.arg4 = arg4; + args.arg5 = arg5; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_45)(void * sel, id arg1, id arg2, id arg3, id arg4, id arg5); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_m09tr7(id target, void * sel, id arg1, id arg2, id arg3, id arg4, id arg5) { + return ((_ProtocolTrampoline_45)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_10lndml : NSObject +@property (copy) id block; +@property void * arg0; +@property BOOL arg1; +@end +@implementation _1uu024u_BlockArgs_10lndml +@end + +typedef void (^_ListenerTrampoline_61)(void * arg0, BOOL arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_61 _1uu024u_wrapListenerBlock_10lndml( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_61 weakSelfBlock = nil; + _ListenerTrampoline_61 strongSelfBlock = [^void(void * arg0, BOOL arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_10lndml* args = [[_1uu024u_BlockArgs_10lndml alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_61)(void * waiter, void * arg0, BOOL arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_61 _1uu024u_wrapBlockingBlock_10lndml(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_61, ^void(void * arg0, BOOL arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_10lndml* args = [[_1uu024u_BlockArgs_10lndml alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_10lndml* args = [[_1uu024u_BlockArgs_10lndml alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_46)(void * sel, BOOL arg1); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_10lndml(id target, void * sel, BOOL arg1) { + return ((_ProtocolTrampoline_46)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1037nh9 : NSObject +@property (copy) id block; +@property void * arg0; +@property void * arg1; +@end +@implementation _1uu024u_BlockArgs_1037nh9 +@end + +typedef void (^_ListenerTrampoline_62)(void * arg0, void * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_62 _1uu024u_wrapListenerBlock_1037nh9( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_62 weakSelfBlock = nil; + _ListenerTrampoline_62 strongSelfBlock = [^void(void * arg0, void * arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_1037nh9* args = [[_1uu024u_BlockArgs_1037nh9 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_62)(void * waiter, void * arg0, void * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_62 _1uu024u_wrapBlockingBlock_1037nh9(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_62, ^void(void * arg0, void * arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_1037nh9* args = [[_1uu024u_BlockArgs_1037nh9 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1037nh9* args = [[_1uu024u_BlockArgs_1037nh9 alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_47)(void * sel, void * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_1037nh9(id target, void * sel, void * arg1) { + return ((_ProtocolTrampoline_47)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_1l4hxwm : NSObject +@property (copy) id block; +@property void * arg0; +@property (copy) id arg1; +@end +@implementation _1uu024u_BlockArgs_1l4hxwm +@end + +typedef void (^_ListenerTrampoline_63)(void * arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_63 _1uu024u_wrapListenerBlock_1l4hxwm( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_63 weakSelfBlock = nil; + _ListenerTrampoline_63 strongSelfBlock = [^void(void * arg0, id arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_1l4hxwm* args = [[_1uu024u_BlockArgs_1l4hxwm alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_63)(void * waiter, void * arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_63 _1uu024u_wrapBlockingBlock_1l4hxwm(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_63, ^void(void * arg0, id arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_1l4hxwm* args = [[_1uu024u_BlockArgs_1l4hxwm alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_1l4hxwm* args = [[_1uu024u_BlockArgs_1l4hxwm alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef void (^_ProtocolTrampoline_48)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +void _1uu024u_protocolTrampoline_1l4hxwm(id target, void * sel, id arg1) { + return ((_ProtocolTrampoline_48)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_18qun1e : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property (strong) id arg1; +@property (copy) id arg2; +@end +@implementation _1uu024u_BlockArgs_18qun1e +@end + +typedef void (^_ListenerTrampoline_64)(id arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_64 _1uu024u_wrapListenerBlock_18qun1e( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_64 weakSelfBlock = nil; + _ListenerTrampoline_64 strongSelfBlock = [^void(id arg0, id arg1, id arg2) { + @autoreleasepool { + _1uu024u_BlockArgs_18qun1e* args = [[_1uu024u_BlockArgs_18qun1e alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_64)(void * waiter, id arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_64 _1uu024u_wrapBlockingBlock_18qun1e(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_64, ^void(id arg0, id arg1, id arg2), { + @autoreleasepool { + _1uu024u_BlockArgs_18qun1e* args = [[_1uu024u_BlockArgs_18qun1e alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_18qun1e* args = [[_1uu024u_BlockArgs_18qun1e alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + args.arg2 = arg2; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +__attribute__((visibility("default"))) +@interface _1uu024u_BlockArgs_o762yo : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property (copy) id arg1; +@end +@implementation _1uu024u_BlockArgs_o762yo +@end + +typedef void (^_ListenerTrampoline_65)(id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_65 _1uu024u_wrapListenerBlock_o762yo( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline_65 weakSelfBlock = nil; + _ListenerTrampoline_65 strongSelfBlock = [^void(id arg0, id arg1) { + @autoreleasepool { + _1uu024u_BlockArgs_o762yo* args = [[_1uu024u_BlockArgs_o762yo alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline_65)(void * waiter, id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline_65 _1uu024u_wrapBlockingBlock_o762yo(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_65, ^void(id arg0, id arg1), { + @autoreleasepool { + _1uu024u_BlockArgs_o762yo* args = [[_1uu024u_BlockArgs_o762yo alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _1uu024u_BlockArgs_o762yo* args = [[_1uu024u_BlockArgs_o762yo alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} + +typedef id (^_ProtocolTrampoline_49)(void * sel, id arg1, id arg2 __attribute__((ns_consumed))); +__attribute__((visibility("default"))) __attribute__((used)) +id _1uu024u_protocolTrampoline_1p0fswn(id target, void * sel, id arg1, id arg2 __attribute__((ns_consumed))) { + return ((_ProtocolTrampoline_49)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +typedef id (^_ProtocolTrampoline_50)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +id _1uu024u_protocolTrampoline_wpy7aa(id target, void * sel, id arg1) { + return ((_ProtocolTrampoline_50)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef struct ppd_file_s * (^_ProtocolTrampoline_51)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +struct ppd_file_s * _1uu024u_protocolTrampoline_10vn635(id target, void * sel) { + return ((_ProtocolTrampoline_51)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_PDEPanel(void) { return @protocol(PDEPanel); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_PDEPlugIn(void) { return @protocol(PDEPlugIn); } + +__attribute__((visibility("default"))) __attribute__((used)) +Protocol* _1uu024u_PDEPlugInCallbackProtocol(void) { return @protocol(PDEPlugInCallbackProtocol); } +#undef BLOCKING_BLOCK_IMPL + +#pragma clang diagnostic pop diff --git a/pkgs/ffigen/example/objective_c/generate_code.dart b/pkgs/ffigen/example/objective_c/generate_code.dart index 1e8e865896..d49591b263 100644 --- a/pkgs/ffigen/example/objective_c/generate_code.dart +++ b/pkgs/ffigen/example/objective_c/generate_code.dart @@ -22,6 +22,7 @@ final config = FfiGenerator( // To tell FFIgen to generate Objective-C bindings, rather than C bindings, // set the objectiveC field to a non-null value. objectiveC: const ObjectiveC(), + enums: const Enums(silenceWarning: true), visitors: [ Visitor( visitObjCInterface: (node) { diff --git a/pkgs/ffigen/example/objective_c/play_audio.dart b/pkgs/ffigen/example/objective_c/play_audio.dart index 82686d5bd8..825ae15774 100644 --- a/pkgs/ffigen/example/objective_c/play_audio.dart +++ b/pkgs/ffigen/example/objective_c/play_audio.dart @@ -6,7 +6,7 @@ import 'dart:ffi'; import 'package:objective_c/objective_c.dart'; -import 'avf_audio_bindings.dart'; +import 'avf_audio_bindings.dart' hide Duration; const _dylibPath = '/System/Library/Frameworks/AVFAudio.framework/Versions/Current/AVFAudio'; diff --git a/pkgs/ffigen/example/shared_bindings/lib/generated/a_shared_b_gen.dart b/pkgs/ffigen/example/shared_bindings/lib/generated/a_shared_b_gen.dart index 52838f927b..44fa8e0c74 100644 --- a/pkgs/ffigen/example/shared_bindings/lib/generated/a_shared_b_gen.dart +++ b/pkgs/ffigen/example/shared_bindings/lib/generated/a_shared_b_gen.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:shared_bindings/generated/base_gen.dart' as imp$1; diff --git a/pkgs/ffigen/example/simple/generated_bindings.dart b/pkgs/ffigen/example/simple/generated_bindings.dart index 3b59e3e210..f959b85bc8 100644 --- a/pkgs/ffigen/example/simple/generated_bindings.dart +++ b/pkgs/ffigen/example/simple/generated_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Bindings to `headers/example.h`. diff --git a/pkgs/ffigen/example/swift/swift_api_bindings.dart b/pkgs/ffigen/example/swift/swift_api_bindings.dart index 71cab810fc..62d93c1757 100644 --- a/pkgs/ffigen/example/swift/swift_api_bindings.dart +++ b/pkgs/ffigen/example/swift/swift_api_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; @@ -32,7 +32,7 @@ extension type SwiftClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [SwiftClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_SwiftClass, @@ -40,13 +40,13 @@ extension type SwiftClass._(objc.ObjCObject object$) /// alloc static SwiftClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_SwiftClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_SwiftClass, _sel_alloc); return SwiftClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static SwiftClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_SwiftClass, _sel_allocWithZone_, zone, @@ -56,7 +56,7 @@ extension type SwiftClass._(objc.ObjCObject object$) /// new static SwiftClass new$() { - final $ret = _objc_msgSend_151sglz(_class_SwiftClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_SwiftClass, _sel_new); return SwiftClass.fromPointer($ret, retain: false, release: true); } @@ -73,7 +73,7 @@ extension SwiftClass$Methods on SwiftClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -83,20 +83,20 @@ extension SwiftClass$Methods on SwiftClass { /// sayHello objc.NSString sayHello() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_sayHello); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_sayHello); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// setSomeField: set someField(int value) { final _$$ref = object$.ref; - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setSomeField_, value); + _objc_msgSend_1whyqxt(_$$ref.pointer, _sel_setSomeField_, value); } /// someField int get someField { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_someField); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_someField); } } @@ -110,85 +110,85 @@ final _class_SwiftClass = objc.getClass( _class_SwiftClass_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_18szuw0 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1whyqxt = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Long, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_4sp4xj = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Long, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart index 0717574dca..955d3cdc05 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart @@ -102,18 +102,19 @@ class ObjCBuiltInFunctions { (String, String) _methodSigId(Type returnType, List params) { final paramIds = []; for (final p in params) { - // The trampoline ID is based on the getNativeType of the param. Objects - // and blocks both have `id` as their native type, but need separate - // trampolines since they have different retain functions. So add the - // retain function (if any) to all the param IDs. - paramIds.add( - p.getNativeType(context, varName: p.type.generateRetain('') ?? ''), - ); + // The trampoline ID is based on getNativeType and toString of param. + // Objects and blocks both have `id` as native type, but need + // separate trampolines since they have different retain functions. + // So add retain function (if any) and type toString to param IDs. + final sigType = _methodSigType(p.type); + final retain = p.type.generateRetain('') ?? ''; + final nativeType = p.getNativeType(context, varName: retain); + paramIds.add('$nativeType:$sigType'); } - final rt = returnType.getNativeType( - context, - varName: returnType.generateRetain('') ?? '', - ); + final sigRt = _methodSigType(returnType); + final retainRt = returnType.generateRetain('') ?? ''; + final nativeTypeRt = returnType.getNativeType(context, varName: retainRt); + final rt = '$nativeTypeRt:$sigRt'; final id = '$rt,${paramIds.join(',')}'; return (id, fnvHash32(id).toRadixString(36)); } diff --git a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart index 962406beac..d43394773d 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart @@ -13,6 +13,7 @@ import 'local_variables.dart'; import 'native_type.dart'; import 'objc_block.dart'; import 'objc_built_in_functions.dart'; +import 'objc_category.dart'; import 'objc_interface.dart'; import 'objc_nullable.dart'; import 'pointer.dart'; @@ -216,6 +217,20 @@ class ObjCMethod extends AstNode with HasLocalScope { @override void visitChildren(Visitor visitor, {bool omitMethodName = false}) { super.visitChildren(visitor); + if (isClassMethod && parent != null) { + final interface = parent is ObjCInterface + ? (parent as ObjCInterface) + : parent is ObjCCategory + ? (parent as ObjCCategory).parent + : null; + if (interface != null) { + interface.fillClassObject(); + final clsObj = interface.classObject; + if (clsObj != null) { + visitor.visit(clsObj); + } + } + } if (!omitMethodName) { visitor.visit(symbol); visitor.visit(protocolMethodName); diff --git a/pkgs/ffigen/lib/src/code_generator/writer.dart b/pkgs/ffigen/lib/src/code_generator/writer.dart index b9c8f1e199..d9b1f12553 100644 --- a/pkgs/ffigen/lib/src/code_generator/writer.dart +++ b/pkgs/ffigen/lib/src/code_generator/writer.dart @@ -83,6 +83,7 @@ class Writer { // unused imports. if (!_hasLintIgnore('unused_import')) 'unused_import', if (!_hasLintIgnore('unused_element')) 'unused_element', + if (!_hasLintIgnore('unused_field')) 'unused_field', if (!_hasLintIgnore('deprecated_member_use_from_same_package')) 'deprecated_member_use_from_same_package', ]; diff --git a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart index 6eb46d648c..7184f8ed32 100644 --- a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart +++ b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart @@ -6,7 +6,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Holds bindings to LibClang. diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index 6759f2905c..88a2fed80d 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -176,6 +176,9 @@ List transformBindings(List rawBindings, Context context) { visitor.visitAll(rawNodes); } + visit(context, CopyMethodsFromSuperTypesVisitation(), rawBindings); + visit(context, FixOverriddenMethodsVisitation(context), rawBindings); + final applyConfigFiltersVisitation = ApplyConfigFiltersVisitation(context); visit(context, applyConfigFiltersVisitation, rawBindings); final directlyIncluded = applyConfigFiltersVisitation.directlyIncluded; @@ -190,9 +193,6 @@ List transformBindings(List rawBindings, Context context) { ).transitives; final allBindings = included.union(transitives); - visit(context, CopyMethodsFromSuperTypesVisitation(), allBindings); - visit(context, FixOverriddenMethodsVisitation(context), allBindings); - final byValueCompounds = visit( context, FindByValueCompoundsVisitation(), diff --git a/pkgs/ffigen/lib/src/visitor/fill_method_dependencies.dart b/pkgs/ffigen/lib/src/visitor/fill_method_dependencies.dart index a7c9068f6c..89672baddd 100644 --- a/pkgs/ffigen/lib/src/visitor/fill_method_dependencies.dart +++ b/pkgs/ffigen/lib/src/visitor/fill_method_dependencies.dart @@ -105,11 +105,7 @@ class _MethodDepAdderVisitation extends Visitation { finalBindings.add(node); @override - void visitNoLookUpBinding(NoLookUpBinding node) { - if (node.isIncluded) { - finalBindings.add(node); - } - } + void visitNoLookUpBinding(NoLookUpBinding node) => finalBindings.add(node); @override void visitObjCBlock(ObjCBlock node) { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart index 1e22944bbd..52248ec020 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart index 2beabe40a0..3f6f8f6dab 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package const int test1 = 20; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart index a6b7fead8b..69ef1fa45b 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// test line 1 diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart index f7148ceb93..3289ee4203 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// test line 1 diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart index a88b66d737..82231ff3a4 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart index 589a16332f..0aa3e3ddf3 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart index 6798a818dc..480e7b3406 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart index 946e20e3b1..7c2108492b 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('test') library; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart index 6fdfb1521d..ac6a813716 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart index 2b52949bcd..8a8499f019 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart index 595dab2f07..333b13b32f 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('test') library; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart index 2620a9d703..5ccc10a287 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart @@ -7,7 +7,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class init_dylib$1 { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart index 6083b31c74..27a73d8da4 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('test') library; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart index 5beed3d63e..9eca91b1a2 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; final class NoPacking extends ffi.Struct { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart index 64e5565654..6af7d689c4 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; final class CollisionStruct extends ffi.Struct { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart index d1318f9dab..91579ad559 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Just a test struct diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart index 077f94c7a5..add35e9783 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart index 9b9f2c0720..8cfbfca721 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; final class EmptyUnion extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart index ea8b18bd04..76645693fc 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi$2; class Bindings { diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart index b18a004065..ba6e384add 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart @@ -3,7 +3,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings$1 { diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_type_name_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_type_name_collision_bindings.dart index 56615e2804..ed9a45adcb 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_type_name_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_type_name_collision_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; final class A extends ffi.Struct { diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart index 3d07ddf33e..f3aa1b9475 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class NativeLibrary { diff --git a/pkgs/ffigen/test/example_tests/objective_c_example_test.dart b/pkgs/ffigen/test/example_tests/objective_c_example_test.dart index e67256a731..4db32e5566 100644 --- a/pkgs/ffigen/test/example_tests/objective_c_example_test.dart +++ b/pkgs/ffigen/test/example_tests/objective_c_example_test.dart @@ -33,7 +33,7 @@ void main() { actual, contains('AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) {'), ); - expect(actual, contains('double get duration {')); + expect(actual, contains('get duration {')); expect(actual, contains('bool play() {')); return true; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_comment_markup_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_comment_markup_bindings.dart index 2c7282ac43..1d02c1dee3 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_comment_markup_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_comment_markup_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Comment Markup Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart index f7947f5dff..0053eb5ddf 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Dart_Handle Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_enum_int_mimic_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_enum_int_mimic_bindings.dart index 9053713bc0..c5cf4f52fb 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_enum_int_mimic_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_enum_int_mimic_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; const int ANONYMOUS1 = 0; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_forward_decl_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_forward_decl_bindings.dart index fe2a76eeea..62446719c9 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_forward_decl_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_forward_decl_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Forward Declaration Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_functions_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_functions_bindings.dart index 8c57d76aa3..486a2c1cac 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_functions_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_functions_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Functions Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_imported_types_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_imported_types_bindings.dart index ed06a175d3..86aa402bde 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_imported_types_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_imported_types_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Imported types test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart index 52c3240100..cbf1a1979f 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Native Func Typedef Test. diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_opaque_dependencies_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_opaque_dependencies_bindings.dart index cba416d5f9..365dfaefd1 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_opaque_dependencies_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_opaque_dependencies_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Opaque Dependencies Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_packed_structs_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_packed_structs_bindings.dart index 930d5f6c3c..3fa6b2c2dc 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_packed_structs_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_packed_structs_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; final class NormalStruct1 extends ffi.Struct { diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart index 23f64da8b3..afe204d59c 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:meta/meta.dart' as meta; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_regress_384_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_regress_384_bindings.dart index 7b48d94533..16489ff3ce 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_regress_384_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_regress_384_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// https://github.com/dart-lang/ffigen/issues/384 diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart index 8843436dc8..6794cb4d66 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; typedef aaaa = ffff; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart index 550cfc43c9..6fe0cf0a6c 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; typedef ArithmeticOperation = diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart index 7d2414c949..edc474d868 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart @@ -3,7 +3,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Typedef Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_unions_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_unions_bindings.dart index aa073c20d0..0ce7d31ce1 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_unions_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_unions_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Unions Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_varargs_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_varargs_bindings.dart index 18854d0c80..ddeadb5005 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_varargs_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_varargs_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// VarArgs Test diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart index b2e87d134f..6380d3c8f2 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Bindings to Cjson. diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart index 35c30efc15..65287ad0e5 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Bindings to LibClang. diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart index d00b72bbf3..b71bee0a77 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Bindings to SQLite. diff --git a/pkgs/ffigen/test/native_cpp_test/cpp_class_test_bindings.dart b/pkgs/ffigen/test/native_cpp_test/cpp_class_test_bindings.dart index 4f80f0da4b..34aed95100 100644 --- a/pkgs/ffigen/test/native_cpp_test/cpp_class_test_bindings.dart +++ b/pkgs/ffigen/test/native_cpp_test/cpp_class_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/cpp_test') library; diff --git a/pkgs/ffigen/test/native_cpp_test/memory_edge_cases_bindings.dart b/pkgs/ffigen/test/native_cpp_test/memory_edge_cases_bindings.dart index 9d1d03434f..494bd9a203 100644 --- a/pkgs/ffigen/test/native_cpp_test/memory_edge_cases_bindings.dart +++ b/pkgs/ffigen/test/native_cpp_test/memory_edge_cases_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/cpp_test') library; diff --git a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart index 12fd500fb5..c61acbc12e 100644 --- a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -36,7 +36,7 @@ extension type ArcDtorTestObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ArcDtorTestObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ArcDtorTestObject, @@ -44,13 +44,13 @@ extension type ArcDtorTestObject._(objc.ObjCObject object$) /// alloc static ArcDtorTestObject alloc() { - final $ret = _objc_msgSend_151sglz(_class_ArcDtorTestObject, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_ArcDtorTestObject, _sel_alloc); return ArcDtorTestObject.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ArcDtorTestObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ArcDtorTestObject, _sel_allocWithZone_, zone, @@ -60,7 +60,7 @@ extension type ArcDtorTestObject._(objc.ObjCObject object$) /// new static ArcDtorTestObject new$() { - final $ret = _objc_msgSend_151sglz(_class_ArcDtorTestObject, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_ArcDtorTestObject, _sel_new); return ArcDtorTestObject.fromPointer($ret, retain: false, release: true); } @@ -77,7 +77,7 @@ extension ArcDtorTestObject$Methods on ArcDtorTestObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -90,7 +90,7 @@ extension ArcDtorTestObject$Methods on ArcDtorTestObject { required ffi.Pointer onMainThread, }) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_b5hsh3( + final $ret = _objc_msgSend_1c8eosi( _$$ref.retainAndReturnPointer(), _sel_initWithCounters_onMainThread_, _dtorCounter, @@ -120,7 +120,7 @@ extension type ArcTestObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ArcTestObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ArcTestObject, @@ -128,22 +128,19 @@ extension type ArcTestObject._(objc.ObjCObject object$) /// alloc static ArcTestObject alloc() { - final $ret = _objc_msgSend_151sglz(_class_ArcTestObject, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_ArcTestObject, _sel_alloc); return ArcTestObject.fromPointer($ret, retain: false, release: true); } /// allocTheThing static ArcTestObject allocTheThing() { - final $ret = _objc_msgSend_151sglz( - _class_ArcTestObject, - _sel_allocTheThing, - ); + final $ret = _objc_msgSend_zldla2(_class_ArcTestObject, _sel_allocTheThing); return ArcTestObject.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ArcTestObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ArcTestObject, _sel_allocWithZone_, zone, @@ -154,7 +151,7 @@ extension type ArcTestObject._(objc.ObjCObject object$) /// consumeArg: static void consumeArg(ArcTestObject arg) { final _$$ref = arg.ref; - _objc_msgSend_4js6t( + _objc_msgSend_1f0326b( _class_ArcTestObject, _sel_consumeArg_, _$$ref.retainAndReturnPointer(), @@ -163,7 +160,7 @@ extension type ArcTestObject._(objc.ObjCObject object$) /// makeAndAutorelease: static ArcTestObject makeAndAutorelease(ffi.Pointer _counter) { - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _class_ArcTestObject, _sel_makeAndAutorelease_, _counter, @@ -173,13 +170,13 @@ extension type ArcTestObject._(objc.ObjCObject object$) /// new static ArcTestObject new$() { - final $ret = _objc_msgSend_151sglz(_class_ArcTestObject, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_ArcTestObject, _sel_new); return ArcTestObject.fromPointer($ret, retain: false, release: true); } /// newWithCounter: static ArcTestObject newWithCounter(ffi.Pointer _counter) { - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _class_ArcTestObject, _sel_newWithCounter_, _counter, @@ -195,35 +192,35 @@ extension ArcTestObject$Methods on ArcTestObject { /// assignedProperty ArcTestObject get assignedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_assignedProperty); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_assignedProperty); return ArcTestObject.fromPointer($ret, retain: true, release: true); } /// copiedProperty ArcTestObject get copiedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copiedProperty); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copiedProperty); return ArcTestObject.fromPointer($ret, retain: true, release: true); } /// copyMe ArcTestObject copyMe() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMe); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMe); return ArcTestObject.fromPointer($ret, retain: false, release: true); } /// copyMeAutorelease ArcTestObject copyMeAutorelease() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMeAutorelease); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMeAutorelease); return ArcTestObject.fromPointer($ret, retain: true, release: true); } /// copyMeConsumeSelf ArcTestObject copyMeConsumeSelf() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_copyMeConsumeSelf, ); @@ -233,14 +230,14 @@ extension ArcTestObject$Methods on ArcTestObject { /// copyMeNoRetain ArcTestObject copyMeNoRetain() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMeNoRetain); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMeNoRetain); return ArcTestObject.fromPointer($ret, retain: true, release: true); } /// copyWithZone: objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _$$ref.pointer, _sel_copyWithZone_, zone, @@ -251,7 +248,7 @@ extension ArcTestObject$Methods on ArcTestObject { /// dealloc void dealloc() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_dealloc); } /// init @@ -262,7 +259,7 @@ extension ArcTestObject$Methods on ArcTestObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -272,7 +269,7 @@ extension ArcTestObject$Methods on ArcTestObject { /// initWithCounter: ArcTestObject initWithCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _$$ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter, @@ -283,21 +280,21 @@ extension ArcTestObject$Methods on ArcTestObject { /// mutableCopyMe ArcTestObject mutableCopyMe() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_mutableCopyMe); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_mutableCopyMe); return ArcTestObject.fromPointer($ret, retain: false, release: true); } /// retainedProperty ArcTestObject get retainedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_retainedProperty); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_retainedProperty); return ArcTestObject.fromPointer($ret, retain: true, release: true); } /// returnsRetained ArcTestObject returnsRetained() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_returnsRetained); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsRetained); return ArcTestObject.fromPointer($ret, retain: false, release: true); } @@ -305,7 +302,7 @@ extension ArcTestObject$Methods on ArcTestObject { set assignedProperty(ArcTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setAssignedProperty_, _$$ref$1.pointer, @@ -316,7 +313,7 @@ extension ArcTestObject$Methods on ArcTestObject { set copiedProperty(ArcTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setCopiedProperty_, _$$ref$1.pointer, @@ -326,14 +323,14 @@ extension ArcTestObject$Methods on ArcTestObject { /// setCounter: void setCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - _objc_msgSend_yhkuco(_$$ref.pointer, _sel_setCounter_, _counter); + _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_setCounter_, _counter); } /// setRetainedProperty: set retainedProperty(ArcTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setRetainedProperty_, _$$ref$1.pointer, @@ -361,13 +358,14 @@ final _class_ArcTestObject = objc.getClass( _class_ArcTestObject_raw, ).cast(), ); -final _objc_msgSend_129vhbw = objc.msgSendPointer +final _objc_msgSend_1c8eosi = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -376,27 +374,30 @@ final _objc_msgSend_129vhbw = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1d1siln = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1f0326b = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -404,13 +405,13 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -427,28 +428,30 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer +final _objc_msgSend_1uw8y6v = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_4js6t = objc.msgSendPointer +final _objc_msgSend_1vg1ydp = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -456,32 +459,28 @@ final _objc_msgSend_4js6t = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_b5hsh3 = objc.msgSendPointer +final _objc_msgSend_h9i570 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -489,27 +488,25 @@ final _objc_msgSend_xtuoz7 = objc.msgSendPointer > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_yhkuco = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart index 3ae3ec75a3..e0ea4e3b6c 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type BadMethodTestObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadMethodTestObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BadMethodTestObject, @@ -39,13 +39,13 @@ extension type BadMethodTestObject._(objc.ObjCObject object$) /// alloc static BadMethodTestObject alloc() { - final $ret = _objc_msgSend_151sglz(_class_BadMethodTestObject, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_BadMethodTestObject, _sel_alloc); return BadMethodTestObject.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadMethodTestObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BadMethodTestObject, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type BadMethodTestObject._(objc.ObjCObject object$) /// new static BadMethodTestObject new$() { - final $ret = _objc_msgSend_151sglz(_class_BadMethodTestObject, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BadMethodTestObject, _sel_new); return BadMethodTestObject.fromPointer($ret, retain: false, release: true); } @@ -67,19 +67,19 @@ extension BadMethodTestObject$Methods on BadMethodTestObject { /// bitFieldPointerParam: int bitFieldPointerParam(ffi.Pointer x) { final _$$ref = object$.ref; - return _objc_msgSend_zol7v(_$$ref.pointer, _sel_bitFieldPointerParam_, x); + return _objc_msgSend_17avkev(_$$ref.pointer, _sel_bitFieldPointerParam_, x); } /// bitFieldPointerReturn ffi.Pointer bitFieldPointerReturn() { final _$$ref = object$.ref; - return _objc_msgSend_hic16b(_$$ref.pointer, _sel_bitFieldPointerReturn); + return _objc_msgSend_12gs4be(_$$ref.pointer, _sel_bitFieldPointerReturn); } /// incompletePointerParam: int incompletePointerParam(ffi.Pointer x) { final _$$ref = object$.ref; - return _objc_msgSend_1onbdcj( + return _objc_msgSend_rhxydn( _$$ref.pointer, _sel_incompletePointerParam_, x, @@ -89,7 +89,7 @@ extension BadMethodTestObject$Methods on BadMethodTestObject { /// incompletePointerReturn ffi.Pointer incompletePointerReturn() { final _$$ref = object$.ref; - return _objc_msgSend_17u7wb(_$$ref.pointer, _sel_incompletePointerReturn); + return _objc_msgSend_s9rz26(_$$ref.pointer, _sel_incompletePointerReturn); } /// init @@ -100,7 +100,7 @@ extension BadMethodTestObject$Methods on BadMethodTestObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -122,117 +122,117 @@ final _class_BadMethodTestObject = objc.getClass( _class_BadMethodTestObject_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_12gs4be = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_17u7wb = objc.msgSendPointer +final _objc_msgSend_17avkev = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int64 Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_rhxydn = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int64 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1onbdcj = objc.msgSendPointer +final _objc_msgSend_s9rz26 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int64 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_hic16b = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zol7v = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int64 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart index ba2f1ffb2b..8f074b7ef7 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type BadOverrideAunt._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideAunt]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideAunt, @@ -39,13 +39,13 @@ extension type BadOverrideAunt._(objc.ObjCObject object$) /// alloc static BadOverrideAunt alloc() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideAunt, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideAunt, _sel_alloc); return BadOverrideAunt.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadOverrideAunt allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BadOverrideAunt, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type BadOverrideAunt._(objc.ObjCObject object$) /// new static BadOverrideAunt new$() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideAunt, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideAunt, _sel_new); return BadOverrideAunt.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension BadOverrideAunt$Methods on BadOverrideAunt { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -100,7 +100,7 @@ extension type BadOverrideChild._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideChild]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideChild, @@ -108,13 +108,13 @@ extension type BadOverrideChild._(objc.ObjCObject object$) /// alloc static BadOverrideChild alloc() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideChild, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideChild, _sel_alloc); return BadOverrideChild.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadOverrideChild allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BadOverrideChild, _sel_allocWithZone_, zone, @@ -124,7 +124,7 @@ extension type BadOverrideChild._(objc.ObjCObject object$) /// new static BadOverrideChild new$() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideChild, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideChild, _sel_new); return BadOverrideChild.fromPointer($ret, retain: false, release: true); } @@ -136,10 +136,7 @@ extension BadOverrideChild$Methods on BadOverrideChild { /// contravariantReturn Polygon contravariantReturn() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_contravariantReturn, - ); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_contravariantReturn); return Polygon.fromPointer($ret, retain: true, release: true); } @@ -147,7 +144,7 @@ extension BadOverrideChild$Methods on BadOverrideChild { objc.NSString covariantArg(Rectangle rect) { final _$$ref = object$.ref; final _$$ref$1 = rect.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_covariantArg_, _$$ref$1.pointer, @@ -163,7 +160,7 @@ extension BadOverrideChild$Methods on BadOverrideChild { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -173,7 +170,7 @@ extension BadOverrideChild$Methods on BadOverrideChild { /// methodVsGetter int get methodVsGetter { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_methodVsGetter); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_methodVsGetter); } } @@ -197,7 +194,7 @@ extension type BadOverrideGrandchild._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideGrandchild]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideGrandchild, @@ -205,10 +202,7 @@ extension type BadOverrideGrandchild._(objc.ObjCObject object$) /// alloc static BadOverrideGrandchild alloc() { - final $ret = _objc_msgSend_151sglz( - _class_BadOverrideGrandchild, - _sel_alloc, - ); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideGrandchild, _sel_alloc); return BadOverrideGrandchild.fromPointer( $ret, retain: false, @@ -218,7 +212,7 @@ extension type BadOverrideGrandchild._(objc.ObjCObject object$) /// allocWithZone: static BadOverrideGrandchild allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BadOverrideGrandchild, _sel_allocWithZone_, zone, @@ -232,7 +226,7 @@ extension type BadOverrideGrandchild._(objc.ObjCObject object$) /// new static BadOverrideGrandchild new$() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideGrandchild, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideGrandchild, _sel_new); return BadOverrideGrandchild.fromPointer( $ret, retain: false, @@ -253,7 +247,7 @@ extension BadOverrideGrandchild$Methods on BadOverrideGrandchild { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -267,7 +261,7 @@ extension BadOverrideGrandchild$Methods on BadOverrideGrandchild { /// methodVsGetter int get methodVsGetter { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_methodVsGetter); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_methodVsGetter); } } @@ -291,7 +285,7 @@ extension type BadOverrideGrandparent._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideGrandparent]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideGrandparent, @@ -299,7 +293,7 @@ extension type BadOverrideGrandparent._(objc.ObjCObject object$) /// alloc static BadOverrideGrandparent alloc() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_BadOverrideGrandparent, _sel_alloc, ); @@ -312,7 +306,7 @@ extension type BadOverrideGrandparent._(objc.ObjCObject object$) /// allocWithZone: static BadOverrideGrandparent allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BadOverrideGrandparent, _sel_allocWithZone_, zone, @@ -326,7 +320,7 @@ extension type BadOverrideGrandparent._(objc.ObjCObject object$) /// new static BadOverrideGrandparent new$() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideGrandparent, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideGrandparent, _sel_new); return BadOverrideGrandparent.fromPointer( $ret, retain: false, @@ -347,7 +341,7 @@ extension BadOverrideGrandparent$Methods on BadOverrideGrandparent { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -379,7 +373,7 @@ extension type BadOverrideParent._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideParent]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideParent, @@ -387,13 +381,13 @@ extension type BadOverrideParent._(objc.ObjCObject object$) /// alloc static BadOverrideParent alloc() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideParent, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideParent, _sel_alloc); return BadOverrideParent.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadOverrideParent allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BadOverrideParent, _sel_allocWithZone_, zone, @@ -403,7 +397,7 @@ extension type BadOverrideParent._(objc.ObjCObject object$) /// new static BadOverrideParent new$() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideParent, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideParent, _sel_new); return BadOverrideParent.fromPointer($ret, retain: false, release: true); } @@ -415,10 +409,7 @@ extension BadOverrideParent$Methods on BadOverrideParent { /// contravariantReturn Polygon contravariantReturn() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_contravariantReturn, - ); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_contravariantReturn); return Polygon.fromPointer($ret, retain: true, release: true); } @@ -426,7 +417,7 @@ extension BadOverrideParent$Methods on BadOverrideParent { objc.NSString covariantArg(Polygon poly) { final _$$ref = object$.ref; final _$$ref$1 = poly.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_covariantArg_, _$$ref$1.pointer, @@ -442,7 +433,7 @@ extension BadOverrideParent$Methods on BadOverrideParent { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -452,7 +443,7 @@ extension BadOverrideParent$Methods on BadOverrideParent { /// methodVsGetter int get methodVsGetter { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_methodVsGetter); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_methodVsGetter); } } @@ -476,7 +467,7 @@ extension type BadOverrideSibbling._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideSibbling]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideSibbling, @@ -484,13 +475,13 @@ extension type BadOverrideSibbling._(objc.ObjCObject object$) /// alloc static BadOverrideSibbling alloc() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideSibbling, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideSibbling, _sel_alloc); return BadOverrideSibbling.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadOverrideSibbling allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BadOverrideSibbling, _sel_allocWithZone_, zone, @@ -500,7 +491,7 @@ extension type BadOverrideSibbling._(objc.ObjCObject object$) /// new static BadOverrideSibbling new$() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideSibbling, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideSibbling, _sel_new); return BadOverrideSibbling.fromPointer($ret, retain: false, release: true); } @@ -517,7 +508,7 @@ extension BadOverrideSibbling$Methods on BadOverrideSibbling { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -527,7 +518,7 @@ extension BadOverrideSibbling$Methods on BadOverrideSibbling { /// methodVsGetter int get methodVsGetter { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_methodVsGetter); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_methodVsGetter); } } @@ -551,7 +542,7 @@ extension type BadOverrideUncle._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideUncle]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideUncle, @@ -559,13 +550,13 @@ extension type BadOverrideUncle._(objc.ObjCObject object$) /// alloc static BadOverrideUncle alloc() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideUncle, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideUncle, _sel_alloc); return BadOverrideUncle.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadOverrideUncle allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BadOverrideUncle, _sel_allocWithZone_, zone, @@ -575,7 +566,7 @@ extension type BadOverrideUncle._(objc.ObjCObject object$) /// new static BadOverrideUncle new$() { - final $ret = _objc_msgSend_151sglz(_class_BadOverrideUncle, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BadOverrideUncle, _sel_new); return BadOverrideUncle.fromPointer($ret, retain: false, release: true); } @@ -592,7 +583,7 @@ extension BadOverrideUncle$Methods on BadOverrideUncle { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -602,7 +593,7 @@ extension BadOverrideUncle$Methods on BadOverrideUncle { /// methodVsGetter int methodVsGetter() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_methodVsGetter); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_methodVsGetter); } } @@ -626,7 +617,7 @@ extension type Polygon._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Polygon]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_Polygon, @@ -634,13 +625,13 @@ extension type Polygon._(objc.ObjCObject object$) /// alloc static Polygon alloc() { - final $ret = _objc_msgSend_151sglz(_class_Polygon, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Polygon, _sel_alloc); return Polygon.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Polygon allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_Polygon, _sel_allocWithZone_, zone, @@ -650,7 +641,7 @@ extension type Polygon._(objc.ObjCObject object$) /// new static Polygon new$() { - final $ret = _objc_msgSend_151sglz(_class_Polygon, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Polygon, _sel_new); return Polygon.fromPointer($ret, retain: false, release: true); } @@ -667,7 +658,7 @@ extension Polygon$Methods on Polygon { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -677,7 +668,7 @@ extension Polygon$Methods on Polygon { /// name objc.NSString name() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -702,7 +693,7 @@ extension type Rectangle._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Rectangle]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_Rectangle, @@ -710,13 +701,13 @@ extension type Rectangle._(objc.ObjCObject object$) /// alloc static Rectangle alloc() { - final $ret = _objc_msgSend_151sglz(_class_Rectangle, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Rectangle, _sel_alloc); return Rectangle.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Rectangle allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_Rectangle, _sel_allocWithZone_, zone, @@ -726,7 +717,7 @@ extension type Rectangle._(objc.ObjCObject object$) /// new static Rectangle new$() { - final $ret = _objc_msgSend_151sglz(_class_Rectangle, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Rectangle, _sel_new); return Rectangle.fromPointer($ret, retain: false, release: true); } @@ -743,7 +734,7 @@ extension Rectangle$Methods on Rectangle { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -753,7 +744,7 @@ extension Rectangle$Methods on Rectangle { /// name objc.NSString name() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -778,7 +769,7 @@ extension type Square._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Square]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_Square, @@ -786,13 +777,13 @@ extension type Square._(objc.ObjCObject object$) /// alloc static Square alloc() { - final $ret = _objc_msgSend_151sglz(_class_Square, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Square, _sel_alloc); return Square.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Square allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_Square, _sel_allocWithZone_, zone, @@ -802,7 +793,7 @@ extension type Square._(objc.ObjCObject object$) /// new static Square new$() { - final $ret = _objc_msgSend_151sglz(_class_Square, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Square, _sel_new); return Square.fromPointer($ret, retain: false, release: true); } @@ -819,7 +810,7 @@ extension Square$Methods on Square { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -829,7 +820,7 @@ extension Square$Methods on Square { /// name objc.NSString name() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -854,7 +845,7 @@ extension type Triangle._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Triangle]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_Triangle, @@ -862,13 +853,13 @@ extension type Triangle._(objc.ObjCObject object$) /// alloc static Triangle alloc() { - final $ret = _objc_msgSend_151sglz(_class_Triangle, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Triangle, _sel_alloc); return Triangle.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Triangle allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_Triangle, _sel_allocWithZone_, zone, @@ -878,7 +869,7 @@ extension type Triangle._(objc.ObjCObject object$) /// new static Triangle new$() { - final $ret = _objc_msgSend_151sglz(_class_Triangle, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Triangle, _sel_new); return Triangle.fromPointer($ret, retain: false, release: true); } @@ -895,7 +886,7 @@ extension Triangle$Methods on Triangle { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -905,7 +896,7 @@ extension Triangle$Methods on Triangle { /// name objc.NSString name() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -1012,25 +1003,25 @@ final _class_Triangle = objc.getClass( _class_Triangle_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1ffzwv1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -1038,13 +1029,13 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -1061,28 +1052,29 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1sotr3r = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -1090,7 +1082,6 @@ final _objc_msgSend_1sotr3r = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart index 1854786c48..9ccff6b776 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -17,34 +17,29 @@ const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); ffi.Pointer, ) >() -external void _z0xonr_protocolTrampoline_18v1jvf( +external void _z0xonr_protocolTrampoline_10bdlnc( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) + EmptyBlock Function(ffi.Pointer, ffi.Pointer) >() -external ffi.Pointer _z0xonr_protocolTrampoline_1mbt9g9( +external EmptyBlock _z0xonr_protocolTrampoline_1ii2gzc( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >() -external void _z0xonr_protocolTrampoline_6yc3kd( +external ffi.Pointer _z0xonr_protocolTrampoline_1jnam6p( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, ); @ffi.Native< @@ -54,31 +49,36 @@ external void _z0xonr_protocolTrampoline_6yc3kd( ffi.Pointer, ) >() -external ffi.Pointer _z0xonr_protocolTrampoline_cww6wh( +external ffi.Pointer _z0xonr_protocolTrampoline_an4r6w( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); @ffi.Native< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >() -external ffi.Pointer _z0xonr_protocolTrampoline_xr62hr( +external void _z0xonr_protocolTrampoline_w57eou( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); @ffi.Native< - EmptyBlock Function(ffi.Pointer, ffi.Pointer) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) >() -external EmptyBlock _z0xonr_protocolTrampoline_zb0vvk( +external ffi.Pointer _z0xonr_protocolTrampoline_y6co5m( ffi.Pointer target, ffi.Pointer arg0, + ffi.Pointer arg1, ); @ffi.Native< @@ -92,7 +92,7 @@ external EmptyBlock _z0xonr_protocolTrampoline_zb0vvk( >, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapBlockingBlock_18v1jvf( +external ffi.Pointer _z0xonr_wrapBlockingBlock_10bdlnc( int port, ffi.Pointer context, ffi.Pointer< @@ -112,7 +112,7 @@ external ffi.Pointer _z0xonr_wrapBlockingBlock_18v1jvf( >, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapBlockingBlock_1pl9qdv( +external ffi.Pointer _z0xonr_wrapBlockingBlock_h9i570( int port, ffi.Pointer context, ffi.Pointer< @@ -132,7 +132,7 @@ external ffi.Pointer _z0xonr_wrapBlockingBlock_1pl9qdv( >, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapBlockingBlock_6yc3kd( +external ffi.Pointer _z0xonr_wrapBlockingBlock_w57eou( int port, ffi.Pointer context, ffi.Pointer< @@ -147,7 +147,7 @@ external ffi.Pointer _z0xonr_wrapBlockingBlock_6yc3kd( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapListenerBlock_18v1jvf( +external ffi.Pointer _z0xonr_wrapListenerBlock_10bdlnc( int port, ffi.Pointer context, ); @@ -158,7 +158,7 @@ external ffi.Pointer _z0xonr_wrapListenerBlock_18v1jvf( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapListenerBlock_1pl9qdv( +external ffi.Pointer _z0xonr_wrapListenerBlock_h9i570( int port, ffi.Pointer context, ); @@ -169,7 +169,7 @@ external ffi.Pointer _z0xonr_wrapListenerBlock_1pl9qdv( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapListenerBlock_6yc3kd( +external ffi.Pointer _z0xonr_wrapListenerBlock_w57eou( int port, ffi.Pointer context, ); @@ -200,7 +200,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BlockAnnotationTest]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BlockAnnotationTest, @@ -208,13 +208,13 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// alloc static BlockAnnotationTest alloc() { - final $ret = _objc_msgSend_151sglz(_class_BlockAnnotationTest, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_BlockAnnotationTest, _sel_alloc); return BlockAnnotationTest.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BlockAnnotationTest allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BlockAnnotationTest, _sel_allocWithZone_, zone, @@ -230,7 +230,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_w08mvv( + final $ret = _objc_msgSend_wr1klv( _class_BlockAnnotationTest, _sel_invokeBlockProducer_, _$$ref.pointer, @@ -243,7 +243,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock, EmptyObject)> block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockAnnotationTest, _sel_invokeConsumedObjectListenerAsync_, _$$ref.pointer, @@ -256,7 +256,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock, EmptyObject)> block, ) { final _$$ref = block.ref; - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_BlockAnnotationTest, _sel_invokeConsumedObjectListenerSync_, _$$ref.pointer, @@ -269,7 +269,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockAnnotationTest, _sel_invokeConsumedObjectReceiver_, _$$ref.pointer, @@ -282,7 +282,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock, EmptyObject)> block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockAnnotationTest, _sel_invokeObjectListenerAsync_, _$$ref.pointer, @@ -295,7 +295,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock, EmptyObject)> block, ) { final _$$ref = block.ref; - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_BlockAnnotationTest, _sel_invokeObjectListenerSync_, _$$ref.pointer, @@ -307,7 +307,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock)> block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockAnnotationTest, _sel_invokeObjectProducer_, _$$ref.pointer, @@ -321,7 +321,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockAnnotationTest, _sel_invokeObjectReceiver_, _$$ref.pointer, @@ -337,7 +337,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_w08mvv( + final $ret = _objc_msgSend_wr1klv( _class_BlockAnnotationTest, _sel_invokeRetainedBlockProducer_, _$$ref.pointer, @@ -350,7 +350,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock)> block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockAnnotationTest, _sel_invokeRetainedObjectProducer_, _$$ref.pointer, @@ -360,7 +360,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// new static BlockAnnotationTest new$() { - final $ret = _objc_msgSend_151sglz(_class_BlockAnnotationTest, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BlockAnnotationTest, _sel_new); return BlockAnnotationTest.fromPointer($ret, retain: false, release: true); } @@ -369,7 +369,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock Function(ffi.Pointer) > newBlockProducer() { - final $ret = _objc_msgSend_uwvaik( + final $ret = _objc_msgSend_13wc3w1( _class_BlockAnnotationTest, _sel_newBlockProducer, ); @@ -385,7 +385,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) EmptyObject Function(ffi.Pointer, EmptyObject) > newConsumedObjectReceiver() { - final $ret = _objc_msgSend_uwvaik( + final $ret = _objc_msgSend_13wc3w1( _class_BlockAnnotationTest, _sel_newConsumedObjectReceiver, ); @@ -399,7 +399,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// newObjectProducer static objc.ObjCBlock)> newObjectProducer() { - final $ret = _objc_msgSend_uwvaik( + final $ret = _objc_msgSend_13wc3w1( _class_BlockAnnotationTest, _sel_newObjectProducer, ); @@ -415,7 +415,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) EmptyObject Function(ffi.Pointer, EmptyObject) > newObjectReceiver() { - final $ret = _objc_msgSend_uwvaik( + final $ret = _objc_msgSend_13wc3w1( _class_BlockAnnotationTest, _sel_newObjectReceiver, ); @@ -431,7 +431,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock Function(ffi.Pointer) > newRetainedBlockProducer() { - final $ret = _objc_msgSend_uwvaik( + final $ret = _objc_msgSend_13wc3w1( _class_BlockAnnotationTest, _sel_newRetainedBlockProducer, ); @@ -445,7 +445,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// newRetainedObjectProducer static objc.ObjCBlock)> newRetainedObjectProducer() { - final $ret = _objc_msgSend_uwvaik( + final $ret = _objc_msgSend_13wc3w1( _class_BlockAnnotationTest, _sel_newRetainedObjectProducer, ); @@ -469,7 +469,7 @@ extension BlockAnnotationTest$Methods on BlockAnnotationTest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -492,7 +492,7 @@ extension type BlockAnnotationTestProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [BlockAnnotationTestProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_BlockAnnotationTestProtocol, @@ -505,7 +505,7 @@ extension BlockAnnotationTestProtocol$Methods on BlockAnnotationTestProtocol { void listenConsumedObject(EmptyObject obj) { final _$$ref = object$.ref; final _$$ref$1 = obj.ref; - _objc_msgSend_4js6t( + _objc_msgSend_1f0326b( _$$ref.pointer, _sel_listenConsumedObject_, _$$ref$1.retainAndReturnPointer(), @@ -516,27 +516,27 @@ extension BlockAnnotationTestProtocol$Methods on BlockAnnotationTestProtocol { void listenObject(EmptyObject obj) { final _$$ref = object$.ref; final _$$ref$1 = obj.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_listenObject_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_listenObject_, _$$ref$1.pointer); } /// produceBlock DartEmptyBlock produceBlock() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_produceBlock); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_produceBlock); return ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); } /// produceObject EmptyObject produceObject() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_produceObject); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_produceObject); return EmptyObject.fromPointer($ret, retain: true, release: true); } /// produceRetainedBlock DartEmptyBlock produceRetainedBlock() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik( + final $ret = _objc_msgSend_13wc3w1( _$$ref.pointer, _sel_produceRetainedBlock, ); @@ -546,7 +546,7 @@ extension BlockAnnotationTestProtocol$Methods on BlockAnnotationTestProtocol { /// produceRetainedObject EmptyObject produceRetainedObject() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_produceRetainedObject, ); @@ -557,7 +557,7 @@ extension BlockAnnotationTestProtocol$Methods on BlockAnnotationTestProtocol { EmptyObject receiveConsumedObject(EmptyObject obj) { final _$$ref = object$.ref; final _$$ref$1 = obj.ref; - final $ret = _objc_msgSend_1ploomx( + final $ret = _objc_msgSend_1icwge5( _$$ref.pointer, _sel_receiveConsumedObject_, _$$ref$1.retainAndReturnPointer(), @@ -569,7 +569,7 @@ extension BlockAnnotationTestProtocol$Methods on BlockAnnotationTestProtocol { EmptyObject receiveObject(EmptyObject obj) { final _$$ref = object$.ref; final _$$ref$1 = obj.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_receiveObject_, _$$ref$1.pointer, @@ -916,7 +916,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_6yc3kd) + >(_z0xonr_protocolTrampoline_10bdlnc) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -951,7 +951,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_18v1jvf) + >(_z0xonr_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -985,7 +985,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_zb0vvk) + >(_z0xonr_protocolTrampoline_1ii2gzc) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1010,7 +1010,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_1mbt9g9) + >(_z0xonr_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1035,7 +1035,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_zb0vvk) + >(_z0xonr_protocolTrampoline_1ii2gzc) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1061,7 +1061,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_1mbt9g9) + >(_z0xonr_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1088,7 +1088,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_cww6wh) + >(_z0xonr_protocolTrampoline_y6co5m) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1115,7 +1115,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_xr62hr) + >(_z0xonr_protocolTrampoline_an4r6w) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1153,7 +1153,7 @@ extension type EmptyObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [EmptyObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_EmptyObject, @@ -1161,13 +1161,13 @@ extension type EmptyObject._(objc.ObjCObject object$) /// alloc static EmptyObject alloc() { - final $ret = _objc_msgSend_151sglz(_class_EmptyObject, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_EmptyObject, _sel_alloc); return EmptyObject.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static EmptyObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_EmptyObject, _sel_allocWithZone_, zone, @@ -1177,7 +1177,7 @@ extension type EmptyObject._(objc.ObjCObject object$) /// new static EmptyObject new$() { - final $ret = _objc_msgSend_151sglz(_class_EmptyObject, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_EmptyObject, _sel_new); return EmptyObject.fromPointer($ret, retain: false, release: true); } @@ -1194,7 +1194,7 @@ extension EmptyObject$Methods on EmptyObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -1222,7 +1222,7 @@ extension type NSThread._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NSThread]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_NSThread, @@ -1230,13 +1230,13 @@ extension type NSThread._(objc.ObjCObject object$) /// alloc static NSThread alloc() { - final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_alloc); return NSThread.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NSThread allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_NSThread, _sel_allocWithZone_, zone, @@ -1251,7 +1251,7 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSThread, _sel_callStackReturnAddresses, ); @@ -1265,13 +1265,13 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_callStackSymbols); + final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_callStackSymbols); return objc.NSArray.fromPointer($ret, retain: true, release: true); } /// currentThread static NSThread getCurrentThread() { - final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_currentThread); + final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_currentThread); return NSThread.fromPointer($ret, retain: true, release: true); } @@ -1283,7 +1283,7 @@ extension type NSThread._(objc.ObjCObject object$) }) { final _$$ref = toTarget.ref; final _$$ref$1 = withObject?.ref; - _objc_msgSend_lzbvjm( + _objc_msgSend_1xnczpu( _class_NSThread, _sel_detachNewThreadSelector_toTarget_withObject_, selector, @@ -1302,7 +1302,7 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_NSThread, _sel_detachNewThreadWithBlock_, _$$ref.pointer, @@ -1311,7 +1311,7 @@ extension type NSThread._(objc.ObjCObject object$) /// exit static void exit() { - _objc_msgSend_1pl9qdv(_class_NSThread, _sel_exit); + _objc_msgSend_h9i570(_class_NSThread, _sel_exit); } /// isMainThread @@ -1321,12 +1321,12 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_91o635(_class_NSThread, _sel_isMainThread); + return _objc_msgSend_13h8okt(_class_NSThread, _sel_isMainThread); } /// isMultiThreaded static bool isMultiThreaded() { - return _objc_msgSend_91o635(_class_NSThread, _sel_isMultiThreaded); + return _objc_msgSend_13h8okt(_class_NSThread, _sel_isMultiThreaded); } /// mainThread @@ -1336,37 +1336,41 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_mainThread); + final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_mainThread); return NSThread.fromPointer($ret, retain: true, release: true); } /// new static NSThread new$() { - final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_new); return NSThread.fromPointer($ret, retain: false, release: true); } /// setThreadPriority: static bool setThreadPriority(double p) { - return _objc_msgSend_18chyc(_class_NSThread, _sel_setThreadPriority_, p); + return _objc_msgSend_6r70rc(_class_NSThread, _sel_setThreadPriority_, p); } /// sleepForTimeInterval: static void sleepForTimeInterval(double ti) { - _objc_msgSend_hwm8nu(_class_NSThread, _sel_sleepForTimeInterval_, ti); + _objc_msgSend_q6vpml(_class_NSThread, _sel_sleepForTimeInterval_, ti); } /// sleepUntilDate: static void sleepUntilDate(objc.NSDate date) { final _$$ref = date.ref; - _objc_msgSend_xtuoz7(_class_NSThread, _sel_sleepUntilDate_, _$$ref.pointer); + _objc_msgSend_1d1siln( + _class_NSThread, + _sel_sleepUntilDate_, + _$$ref.pointer, + ); } /// threadPriority static double threadPriority$1() { return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_class_NSThread, _sel_threadPriority) - : _objc_msgSend_1ukqyt8(_class_NSThread, _sel_threadPriority); + ? _objc_msgSend_9pr6kkFpret(_class_NSThread, _sel_threadPriority) + : _objc_msgSend_9pr6kk(_class_NSThread, _sel_threadPriority); } /// Returns a new instance of NSThread constructed with the default `new` method. @@ -1382,7 +1386,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_cancel); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_cancel); } /// init @@ -1393,7 +1397,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -1409,7 +1413,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _$$ref.retainAndReturnPointer(), _sel_initWithBlock_, _$$ref$1.pointer, @@ -1431,7 +1435,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_1eldwyi( + final $ret = _objc_msgSend_4xjs7i( _$$ref.retainAndReturnPointer(), _sel_initWithTarget_selector_object_, _$$ref$1.pointer, @@ -1449,7 +1453,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isCancelled); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isCancelled); } /// isExecuting @@ -1460,7 +1464,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isExecuting); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isExecuting); } /// isFinished @@ -1471,7 +1475,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isFinished); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isFinished); } /// isMainThread @@ -1482,7 +1486,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMainThread); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isMainThread); } /// main @@ -1493,7 +1497,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_main); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_main); } /// name @@ -1504,7 +1508,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -1518,7 +1522,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - final $ret = _objc_msgSend_oi8iq9(_$$ref.pointer, _sel_qualityOfService); + final $ret = _objc_msgSend_1r6doy1(_$$ref.pointer, _sel_qualityOfService); return objc.NSQualityOfService.fromValue($ret); } @@ -1531,7 +1535,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setName_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -1546,7 +1550,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_n2da1l( + _objc_msgSend_bxtbje( _$$ref.pointer, _sel_setQualityOfService_, value.value, @@ -1561,7 +1565,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_setStackSize_, value); + _objc_msgSend_rfcpxf(_$$ref.pointer, _sel_setStackSize_, value); } /// setThreadPriority: @@ -1572,7 +1576,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setThreadPriority_, value); + _objc_msgSend_q6vpml(_$$ref.pointer, _sel_setThreadPriority_, value); } /// stackSize @@ -1583,7 +1587,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_stackSize); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_stackSize); } /// start @@ -1594,13 +1598,13 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_start); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_start); } /// threadDictionary objc.NSMutableDictionary get threadDictionary { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_threadDictionary); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_threadDictionary); return objc.NSMutableDictionary.fromPointer( $ret, retain: true, @@ -1617,8 +1621,8 @@ extension NSThread$Methods on NSThread { macOS: (false, (10, 6, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_threadPriority) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_threadPriority); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_threadPriority) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_threadPriority); } } @@ -2503,7 +2507,7 @@ abstract final class ObjCBlock_ffiVoid { }) { return objc.ObjCBlock( objc.newBlockPort( - _z0xonr_wrapListenerBlock_1pl9qdv, + _z0xonr_wrapListenerBlock_h9i570, (ffi.Pointer rawArgs) => fn(), keepIsolateAlive, ), @@ -2528,7 +2532,7 @@ abstract final class ObjCBlock_ffiVoid { }) { return objc.ObjCBlock( objc.newBlockingBlockPort( - _z0xonr_wrapBlockingBlock_1pl9qdv, + _z0xonr_wrapBlockingBlock_h9i570, (ffi.Pointer rawArgs) => fn(), keepIsolateAlive, ), @@ -2650,7 +2654,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_EmptyObject { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, EmptyObject) >( - objc.newBlockPort(_z0xonr_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_z0xonr_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1wgsnfr.fromPointer( @@ -2684,7 +2688,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_EmptyObject { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, EmptyObject) >( - objc.newBlockingBlockPort(_z0xonr_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_z0xonr_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1wgsnfr.fromPointer( @@ -2862,7 +2866,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_EmptyObject$1 { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.Consumed) >( - objc.newBlockPort(_z0xonr_wrapListenerBlock_6yc3kd, ( + objc.newBlockPort(_z0xonr_wrapListenerBlock_10bdlnc, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_o9cz58.fromPointer( @@ -2898,7 +2902,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_EmptyObject$1 { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.Consumed) >( - objc.newBlockingBlockPort(_z0xonr_wrapBlockingBlock_6yc3kd, ( + objc.newBlockingBlockPort(_z0xonr_wrapBlockingBlock_10bdlnc, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_o9cz58.fromPointer( @@ -3007,7 +3011,7 @@ extension type _BlockArgs_1wgsnfr._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1wgsnfr]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1wgsnfr, @@ -3017,12 +3021,12 @@ extension type _BlockArgs_1wgsnfr._(objc.ObjCObject object$) extension _BlockArgs_1wgsnfr$Methods on _BlockArgs_1wgsnfr { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } EmptyObject get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return EmptyObject.fromPointer($ret, retain: true, release: true); } } @@ -3046,7 +3050,7 @@ extension type _BlockArgs_ii17hk._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_ii17hk]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_ii17hk, @@ -3074,7 +3078,7 @@ extension type _BlockArgs_o9cz58._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_o9cz58]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_o9cz58, @@ -3084,12 +3088,12 @@ extension type _BlockArgs_o9cz58._(objc.ObjCObject object$) extension _BlockArgs_o9cz58$Methods on _BlockArgs_o9cz58 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } EmptyObject get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return EmptyObject.fromPointer($ret, retain: true, release: true); } } @@ -3123,71 +3127,69 @@ final _class_NSThread = objc.getClass( ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_1wgsnfr_raw; final _class__BlockArgs_1wgsnfr = objc.getClass( - "_z0xonr_BlockArgs_18v1jvf", + "_z0xonr_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_1wgsnfr_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_1pl9qdv', + symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_h9i570', ) external ffi.Pointer _class__BlockArgs_ii17hk_raw; final _class__BlockArgs_ii17hk = objc.getClass( - "_z0xonr_BlockArgs_1pl9qdv", + "_z0xonr_BlockArgs_h9i570", () => ffi.Native.addressOf>( _class__BlockArgs_ii17hk_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_6yc3kd', + symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_10bdlnc', ) external ffi.Pointer _class__BlockArgs_o9cz58_raw; final _class__BlockArgs_o9cz58 = objc.getClass( - "_z0xonr_BlockArgs_6yc3kd", + "_z0xonr_BlockArgs_10bdlnc", () => ffi.Native.addressOf>( _class__BlockArgs_o9cz58_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_13h8okt = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_18chyc = objc.msgSendPointer +final _objc_msgSend_13wc3w1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Double, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - double, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1d1siln = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -3195,38 +3197,36 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1f0326b = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1eldwyi = objc.msgSendPointer +final _objc_msgSend_1ffzwv1 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() @@ -3235,49 +3235,49 @@ final _objc_msgSend_1eldwyi = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1i9r4xy = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer +final _objc_msgSend_1icwge5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1ploomx = objc.msgSendPointer +final _objc_msgSend_1ludlma = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -3285,94 +3285,105 @@ final _objc_msgSend_1ploomx = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1sotr3r = objc.msgSendPointer +final _objc_msgSend_1r6doy1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer +final _objc_msgSend_1xnczpu = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer +final _objc_msgSend_3mxu14 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - double Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_4js6t = objc.msgSendPointer +final _objc_msgSend_441sd9 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_6ex6p5 = objc.msgSendPointer +final _objc_msgSend_4xjs7i = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_91o635 = objc.msgSendPointer +final _objc_msgSend_6r70rc = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Double, ) > >() @@ -3380,49 +3391,46 @@ final _objc_msgSend_91o635 = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, + double, ) >(); -final _objc_msgSend_e3qsqz = objc.msgSendPointer +final _objc_msgSend_9pr6kk = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_f167m6 = objc.msgSendPointer +final _objc_msgSend_9pr6kkFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer +final _objc_msgSend_bxtbje = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Double, + ffi.Long, ) > >() @@ -3430,37 +3438,30 @@ final _objc_msgSend_hwm8nu = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - double, + int, ) >(); -final _objc_msgSend_lzbvjm = objc.msgSendPointer +final _objc_msgSend_eloak0 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_n2da1l = objc.msgSendPointer +final _objc_msgSend_h9i570 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Long, ) > >() @@ -3468,47 +3469,49 @@ final _objc_msgSend_n2da1l = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_nnxkei = objc.msgSendPointer +final _objc_msgSend_q6vpml = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Double, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + double, ) >(); -final _objc_msgSend_oi8iq9 = objc.msgSendPointer +final _objc_msgSend_rfcpxf = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_uwvaik = objc.msgSendPointer +final _objc_msgSend_wr1klv = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -3516,12 +3519,13 @@ final _objc_msgSend_uwvaik = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_w08mvv = objc.msgSendPointer +final _objc_msgSend_wv523k = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -3529,16 +3533,16 @@ final _objc_msgSend_w08mvv = objc.msgSendPointer > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -3546,23 +3550,23 @@ final _objc_msgSend_xtuoz7 = objc.msgSendPointer > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_xw2lbc = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.m b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.m index 7fff0cad3f..3835d53ab6 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.m @@ -61,44 +61,44 @@ typedef id (^_ProtocolTrampoline)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -id _z0xonr_protocolTrampoline_zb0vvk(id target, void * sel) { +id _z0xonr_protocolTrampoline_1ii2gzc(id target, void * sel) { return ((_ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } typedef id (^_ProtocolTrampoline_1)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -id _z0xonr_protocolTrampoline_1mbt9g9(id target, void * sel) { +id _z0xonr_protocolTrampoline_1jnam6p(id target, void * sel) { return ((_ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } typedef id (^_ProtocolTrampoline_2)(void * sel, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -id _z0xonr_protocolTrampoline_xr62hr(id target, void * sel, id arg1) { +id _z0xonr_protocolTrampoline_an4r6w(id target, void * sel, id arg1) { return ((_ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } typedef id (^_ProtocolTrampoline_3)(void * sel, id arg1 __attribute__((ns_consumed))); __attribute__((visibility("default"))) __attribute__((used)) -id _z0xonr_protocolTrampoline_cww6wh(id target, void * sel, id arg1 __attribute__((ns_consumed))) { +id _z0xonr_protocolTrampoline_y6co5m(id target, void * sel, id arg1 __attribute__((ns_consumed))) { return ((_ProtocolTrampoline_3)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } __attribute__((visibility("default"))) -@interface _z0xonr_BlockArgs_1pl9qdv : NSObject +@interface _z0xonr_BlockArgs_h9i570 : NSObject @property (copy) id block; @end -@implementation _z0xonr_BlockArgs_1pl9qdv +@implementation _z0xonr_BlockArgs_h9i570 @end typedef void (^_ListenerTrampoline)(void); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _z0xonr_wrapListenerBlock_1pl9qdv( +_ListenerTrampoline _z0xonr_wrapListenerBlock_h9i570( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline weakSelfBlock = nil; _ListenerTrampoline strongSelfBlock = [^void() { @autoreleasepool { - _z0xonr_BlockArgs_1pl9qdv* args = [[_z0xonr_BlockArgs_1pl9qdv alloc] init]; + _z0xonr_BlockArgs_h9i570* args = [[_z0xonr_BlockArgs_h9i570 alloc] init]; args.block = weakSelfBlock; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -110,18 +110,18 @@ _ListenerTrampoline _z0xonr_wrapListenerBlock_1pl9qdv( typedef void (^_BlockingTrampoline)(void * waiter); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _z0xonr_wrapBlockingBlock_1pl9qdv(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline _z0xonr_wrapBlockingBlock_h9i570(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(), { @autoreleasepool { - _z0xonr_BlockArgs_1pl9qdv* args = [[_z0xonr_BlockArgs_1pl9qdv alloc] init]; + _z0xonr_BlockArgs_h9i570* args = [[_z0xonr_BlockArgs_h9i570 alloc] init]; args.block = weakSelfBlock; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _z0xonr_BlockArgs_1pl9qdv* args = [[_z0xonr_BlockArgs_1pl9qdv alloc] init]; + _z0xonr_BlockArgs_h9i570* args = [[_z0xonr_BlockArgs_h9i570 alloc] init]; args.block = weakSelfBlock; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -130,22 +130,22 @@ _ListenerTrampoline _z0xonr_wrapBlockingBlock_1pl9qdv(int64_t port, DOBJC_Contex } __attribute__((visibility("default"))) -@interface _z0xonr_BlockArgs_18v1jvf : NSObject +@interface _z0xonr_BlockArgs_w57eou : NSObject @property (copy) id block; @property void * arg0; @property (strong) id arg1; @end -@implementation _z0xonr_BlockArgs_18v1jvf +@implementation _z0xonr_BlockArgs_w57eou @end typedef void (^_ListenerTrampoline_1)(void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _z0xonr_wrapListenerBlock_18v1jvf( +_ListenerTrampoline_1 _z0xonr_wrapListenerBlock_w57eou( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_1 weakSelfBlock = nil; _ListenerTrampoline_1 strongSelfBlock = [^void(void * arg0, id arg1) { @autoreleasepool { - _z0xonr_BlockArgs_18v1jvf* args = [[_z0xonr_BlockArgs_18v1jvf alloc] init]; + _z0xonr_BlockArgs_w57eou* args = [[_z0xonr_BlockArgs_w57eou alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -158,11 +158,11 @@ _ListenerTrampoline_1 _z0xonr_wrapListenerBlock_18v1jvf( typedef void (^_BlockingTrampoline_1)(void * waiter, void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _z0xonr_wrapBlockingBlock_18v1jvf(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_1 _z0xonr_wrapBlockingBlock_w57eou(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_1, ^void(void * arg0, id arg1), { @autoreleasepool { - _z0xonr_BlockArgs_18v1jvf* args = [[_z0xonr_BlockArgs_18v1jvf alloc] init]; + _z0xonr_BlockArgs_w57eou* args = [[_z0xonr_BlockArgs_w57eou alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -170,7 +170,7 @@ _ListenerTrampoline_1 _z0xonr_wrapBlockingBlock_18v1jvf(int64_t port, DOBJC_Cont } }, { @autoreleasepool { - _z0xonr_BlockArgs_18v1jvf* args = [[_z0xonr_BlockArgs_18v1jvf alloc] init]; + _z0xonr_BlockArgs_w57eou* args = [[_z0xonr_BlockArgs_w57eou alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -181,27 +181,27 @@ _ListenerTrampoline_1 _z0xonr_wrapBlockingBlock_18v1jvf(int64_t port, DOBJC_Cont typedef void (^_ProtocolTrampoline_4)(void * sel, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -void _z0xonr_protocolTrampoline_18v1jvf(id target, void * sel, id arg1) { +void _z0xonr_protocolTrampoline_w57eou(id target, void * sel, id arg1) { return ((_ProtocolTrampoline_4)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } __attribute__((visibility("default"))) -@interface _z0xonr_BlockArgs_6yc3kd : NSObject +@interface _z0xonr_BlockArgs_10bdlnc : NSObject @property (copy) id block; @property void * arg0; @property (strong) id arg1; @end -@implementation _z0xonr_BlockArgs_6yc3kd +@implementation _z0xonr_BlockArgs_10bdlnc @end typedef void (^_ListenerTrampoline_2)(void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _z0xonr_wrapListenerBlock_6yc3kd( +_ListenerTrampoline_2 _z0xonr_wrapListenerBlock_10bdlnc( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_2 weakSelfBlock = nil; _ListenerTrampoline_2 strongSelfBlock = [^void(void * arg0, id arg1) { @autoreleasepool { - _z0xonr_BlockArgs_6yc3kd* args = [[_z0xonr_BlockArgs_6yc3kd alloc] init]; + _z0xonr_BlockArgs_10bdlnc* args = [[_z0xonr_BlockArgs_10bdlnc alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -214,11 +214,11 @@ _ListenerTrampoline_2 _z0xonr_wrapListenerBlock_6yc3kd( typedef void (^_BlockingTrampoline_2)(void * waiter, void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _z0xonr_wrapBlockingBlock_6yc3kd(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_2 _z0xonr_wrapBlockingBlock_10bdlnc(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_2, ^void(void * arg0, id arg1), { @autoreleasepool { - _z0xonr_BlockArgs_6yc3kd* args = [[_z0xonr_BlockArgs_6yc3kd alloc] init]; + _z0xonr_BlockArgs_10bdlnc* args = [[_z0xonr_BlockArgs_10bdlnc alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -226,7 +226,7 @@ _ListenerTrampoline_2 _z0xonr_wrapBlockingBlock_6yc3kd(int64_t port, DOBJC_Conte } }, { @autoreleasepool { - _z0xonr_BlockArgs_6yc3kd* args = [[_z0xonr_BlockArgs_6yc3kd alloc] init]; + _z0xonr_BlockArgs_10bdlnc* args = [[_z0xonr_BlockArgs_10bdlnc alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -237,7 +237,7 @@ _ListenerTrampoline_2 _z0xonr_wrapBlockingBlock_6yc3kd(int64_t port, DOBJC_Conte typedef void (^_ProtocolTrampoline_5)(void * sel, id arg1 __attribute__((ns_consumed))); __attribute__((visibility("default"))) __attribute__((used)) -void _z0xonr_protocolTrampoline_6yc3kd(id target, void * sel, id arg1 __attribute__((ns_consumed))) { +void _z0xonr_protocolTrampoline_10bdlnc(id target, void * sel, id arg1 __attribute__((ns_consumed))) { return ((_ProtocolTrampoline_5)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } #undef BLOCKING_BLOCK_IMPL diff --git a/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart index 3dc34fbed9..9f125ce0f6 100644 --- a/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -35,7 +35,7 @@ extension type BlockInheritTestBase._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BlockInheritTestBase]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BlockInheritTestBase, @@ -43,13 +43,13 @@ extension type BlockInheritTestBase._(objc.ObjCObject object$) /// alloc static BlockInheritTestBase alloc() { - final $ret = _objc_msgSend_151sglz(_class_BlockInheritTestBase, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_BlockInheritTestBase, _sel_alloc); return BlockInheritTestBase.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BlockInheritTestBase allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BlockInheritTestBase, _sel_allocWithZone_, zone, @@ -59,7 +59,7 @@ extension type BlockInheritTestBase._(objc.ObjCObject object$) /// new static BlockInheritTestBase new$() { - final $ret = _objc_msgSend_151sglz(_class_BlockInheritTestBase, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BlockInheritTestBase, _sel_new); return BlockInheritTestBase.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { bool acceptAnimal(Platypus platypus) { final _$$ref = object$.ref; final _$$ref$1 = platypus.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_acceptAnimal_, _$$ref$1.pointer, @@ -82,7 +82,7 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { /// getAccepter DartAcceptPlatypus getAccepter() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_getAccepter); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_getAccepter); return ObjCBlock_bool_Platypus.fromPointer( $ret, retain: true, @@ -93,14 +93,14 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { /// getAnimal Mammal getAnimal() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_getAnimal); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_getAnimal); return Mammal.fromPointer($ret, retain: true, release: true); } /// getReturner DartReturnMammal getReturner() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_getReturner); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_getReturner); return ObjCBlock_Mammal.fromPointer($ret, retain: true, release: true); } @@ -112,7 +112,7 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -123,7 +123,7 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { bool invokeAccepter(DartAcceptMammal accepter) { final _$$ref = object$.ref; final _$$ref$1 = accepter.ref; - return _objc_msgSend_z0nr1o( + return _objc_msgSend_xgm4u7( _$$ref.pointer, _sel_invokeAccepter_, _$$ref$1.pointer, @@ -134,7 +134,7 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { Mammal invokeReturner(DartReturnPlatypus returner) { final _$$ref = object$.ref; final _$$ref$1 = returner.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _$$ref.pointer, _sel_invokeReturner_, _$$ref$1.pointer, @@ -163,7 +163,7 @@ extension type BlockInheritTestChild._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BlockInheritTestChild]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BlockInheritTestChild, @@ -171,10 +171,7 @@ extension type BlockInheritTestChild._(objc.ObjCObject object$) /// alloc static BlockInheritTestChild alloc() { - final $ret = _objc_msgSend_151sglz( - _class_BlockInheritTestChild, - _sel_alloc, - ); + final $ret = _objc_msgSend_zldla2(_class_BlockInheritTestChild, _sel_alloc); return BlockInheritTestChild.fromPointer( $ret, retain: false, @@ -184,7 +181,7 @@ extension type BlockInheritTestChild._(objc.ObjCObject object$) /// allocWithZone: static BlockInheritTestChild allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BlockInheritTestChild, _sel_allocWithZone_, zone, @@ -198,7 +195,7 @@ extension type BlockInheritTestChild._(objc.ObjCObject object$) /// new static BlockInheritTestChild new$() { - final $ret = _objc_msgSend_151sglz(_class_BlockInheritTestChild, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BlockInheritTestChild, _sel_new); return BlockInheritTestChild.fromPointer( $ret, retain: false, @@ -215,7 +212,7 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { bool acceptAnimal(Mammal mammal) { final _$$ref = object$.ref; final _$$ref$1 = mammal.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_acceptAnimal_, _$$ref$1.pointer, @@ -225,21 +222,21 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { /// getAccepter DartAcceptMammal getAccepter() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_getAccepter); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_getAccepter); return ObjCBlock_bool_Mammal.fromPointer($ret, retain: true, release: true); } /// getAnimal Platypus getAnimal() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_getAnimal); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_getAnimal); return Platypus.fromPointer($ret, retain: true, release: true); } /// getReturner DartReturnPlatypus getReturner() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_getReturner); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_getReturner); return ObjCBlock_Platypus.fromPointer($ret, retain: true, release: true); } @@ -251,7 +248,7 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -266,7 +263,7 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { bool invokeAccepter(DartAcceptPlatypus accepter) { final _$$ref = object$.ref; final _$$ref$1 = accepter.ref; - return _objc_msgSend_z0nr1o( + return _objc_msgSend_xgm4u7( _$$ref.pointer, _sel_invokeAccepter_, _$$ref$1.pointer, @@ -277,7 +274,7 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { Mammal invokeReturner(DartReturnMammal returner) { final _$$ref = object$.ref; final _$$ref$1 = returner.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _$$ref.pointer, _sel_invokeReturner_, _$$ref$1.pointer, @@ -306,7 +303,7 @@ extension type Mammal._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Mammal]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_Mammal, @@ -314,13 +311,13 @@ extension type Mammal._(objc.ObjCObject object$) /// alloc static Mammal alloc() { - final $ret = _objc_msgSend_151sglz(_class_Mammal, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Mammal, _sel_alloc); return Mammal.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Mammal allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_Mammal, _sel_allocWithZone_, zone, @@ -330,7 +327,7 @@ extension type Mammal._(objc.ObjCObject object$) /// new static Mammal new$() { - final $ret = _objc_msgSend_151sglz(_class_Mammal, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Mammal, _sel_new); return Mammal.fromPointer($ret, retain: false, release: true); } @@ -347,7 +344,7 @@ extension Mammal$Methods on Mammal { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -357,7 +354,7 @@ extension Mammal$Methods on Mammal { /// laysEggs bool laysEggs() { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_laysEggs); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_laysEggs); } } @@ -792,7 +789,7 @@ extension type Platypus._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Platypus]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_Platypus, @@ -800,13 +797,13 @@ extension type Platypus._(objc.ObjCObject object$) /// alloc static Platypus alloc() { - final $ret = _objc_msgSend_151sglz(_class_Platypus, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Platypus, _sel_alloc); return Platypus.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Platypus allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_Platypus, _sel_allocWithZone_, zone, @@ -816,7 +813,7 @@ extension type Platypus._(objc.ObjCObject object$) /// new static Platypus new$() { - final $ret = _objc_msgSend_151sglz(_class_Platypus, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Platypus, _sel_new); return Platypus.fromPointer($ret, retain: false, release: true); } @@ -833,7 +830,7 @@ extension Platypus$Methods on Platypus { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -881,39 +878,37 @@ final _class_Platypus = objc.getClass( _class_Platypus_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_13h8okt = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_13wc3w1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -930,68 +925,70 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_91o635 = objc.msgSendPointer +final _objc_msgSend_1ludlma = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_nnxkei = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_uwvaik = objc.msgSendPointer +final _objc_msgSend_xgm4u7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_z0nr1o = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_acceptAnimal_ = objc.registerName("acceptAnimal:"); diff --git a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart index 14de93cbb6..354f7734f1 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -21,7 +21,7 @@ const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_1bqef4y( +external ffi.Pointer _18tji2r_wrapBlockingBlock_1d1siln( int port, ffi.Pointer context, ffi.Pointer< @@ -41,7 +41,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_1bqef4y( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_1d9e4oe( +external ffi.Pointer _18tji2r_wrapBlockingBlock_1f6q4sj( int port, ffi.Pointer context, ffi.Pointer< @@ -61,7 +61,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_1d9e4oe( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_1pl9qdv( +external ffi.Pointer _18tji2r_wrapBlockingBlock_1vg1ydp( int port, ffi.Pointer context, ffi.Pointer< @@ -81,7 +81,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_1pl9qdv( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_f167m6( +external ffi.Pointer _18tji2r_wrapBlockingBlock_1y99z5g( int port, ffi.Pointer context, ffi.Pointer< @@ -101,7 +101,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_f167m6( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_li50va( +external ffi.Pointer _18tji2r_wrapBlockingBlock_h9i570( int port, ffi.Pointer context, ffi.Pointer< @@ -121,7 +121,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_li50va( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_ru30ue( +external ffi.Pointer _18tji2r_wrapBlockingBlock_j5cnrc( int port, ffi.Pointer context, ffi.Pointer< @@ -141,7 +141,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_ru30ue( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_xtuoz7( +external ffi.Pointer _18tji2r_wrapBlockingBlock_mx4mc( int port, ffi.Pointer context, ffi.Pointer< @@ -161,7 +161,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_xtuoz7( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_yhkuco( +external ffi.Pointer _18tji2r_wrapBlockingBlock_wv523k( int port, ffi.Pointer context, ffi.Pointer< @@ -176,7 +176,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_yhkuco( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_1bqef4y( +external ffi.Pointer _18tji2r_wrapListenerBlock_1d1siln( int port, ffi.Pointer context, ); @@ -187,7 +187,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_1bqef4y( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_1d9e4oe( +external ffi.Pointer _18tji2r_wrapListenerBlock_1f6q4sj( int port, ffi.Pointer context, ); @@ -198,7 +198,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_1d9e4oe( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_1pl9qdv( +external ffi.Pointer _18tji2r_wrapListenerBlock_1vg1ydp( int port, ffi.Pointer context, ); @@ -209,7 +209,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_1pl9qdv( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_f167m6( +external ffi.Pointer _18tji2r_wrapListenerBlock_1y99z5g( int port, ffi.Pointer context, ); @@ -220,7 +220,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_f167m6( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_li50va( +external ffi.Pointer _18tji2r_wrapListenerBlock_h9i570( int port, ffi.Pointer context, ); @@ -231,7 +231,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_li50va( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_ru30ue( +external ffi.Pointer _18tji2r_wrapListenerBlock_j5cnrc( int port, ffi.Pointer context, ); @@ -242,7 +242,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_ru30ue( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_xtuoz7( +external ffi.Pointer _18tji2r_wrapListenerBlock_mx4mc( int port, ffi.Pointer context, ); @@ -253,7 +253,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_xtuoz7( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_yhkuco( +external ffi.Pointer _18tji2r_wrapListenerBlock_wv523k( int port, ffi.Pointer context, ); @@ -292,7 +292,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BlockTester]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BlockTester, @@ -300,13 +300,13 @@ extension type BlockTester._(objc.ObjCObject object$) /// alloc static BlockTester alloc() { - final $ret = _objc_msgSend_151sglz(_class_BlockTester, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_BlockTester, _sel_alloc); return BlockTester.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BlockTester allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BlockTester, _sel_allocWithZone_, zone, @@ -321,7 +321,7 @@ extension type BlockTester._(objc.ObjCObject object$) }) { final _$$ref = blockingBlock.ref; final _$$ref$1 = resultBlock.ref; - _objc_msgSend_18yul99( + _objc_msgSend_5gexqg( _class_BlockTester, _sel_blockingBlockTest_resultBlock_, _$$ref.pointer, @@ -333,12 +333,12 @@ extension type BlockTester._(objc.ObjCObject object$) static double callDoubleBlock(DartDoubleBlock block) { final _$$ref = block.ref; return objc.useMsgSendVariants - ? _objc_msgSend_8mj2fvFpret( + ? _objc_msgSend_1lhgxwoFpret( _class_BlockTester, _sel_callDoubleBlock_, _$$ref.pointer, ) - : _objc_msgSend_8mj2fv( + : _objc_msgSend_1lhgxwo( _class_BlockTester, _sel_callDoubleBlock_, _$$ref.pointer, @@ -349,12 +349,12 @@ extension type BlockTester._(objc.ObjCObject object$) static double callFloatBlock(DartFloatBlock block) { final _$$ref = block.ref; return objc.useMsgSendVariants - ? _objc_msgSend_o8bnmsFpret( + ? _objc_msgSend_y6ubniFpret( _class_BlockTester, _sel_callFloatBlock_, _$$ref.pointer, ) - : _objc_msgSend_o8bnms( + : _objc_msgSend_y6ubni( _class_BlockTester, _sel_callFloatBlock_, _$$ref.pointer, @@ -364,7 +364,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callListener: static void callListener(DartListenerBlock block) { final _$$ref = block.ref; - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_BlockTester, _sel_callListener_, _$$ref.pointer, @@ -377,7 +377,7 @@ extension type BlockTester._(objc.ObjCObject object$) required int x, }) { final _$$ref = block.ref; - _objc_msgSend_po4t03( + _objc_msgSend_fv0mm3( _class_BlockTester, _sel_callNSStringListener_x_, _$$ref.pointer, @@ -388,7 +388,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callNoTrampolineListener: static void callNoTrampolineListener(DartNoTrampolineListenerBlock block) { final _$$ref = block.ref; - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_BlockTester, _sel_callNoTrampolineListener_, _$$ref.pointer, @@ -398,7 +398,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callNullableListener: static void callNullableListener(DartNullableListenerBlock block) { final _$$ref = block.ref; - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_BlockTester, _sel_callNullableListener_, _$$ref.pointer, @@ -408,7 +408,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callNullableObjectBlock: static DummyObject? callNullableObjectBlock(DartNullableObjectBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockTester, _sel_callNullableObjectBlock_, _$$ref.pointer, @@ -423,7 +423,7 @@ extension type BlockTester._(objc.ObjCObject object$) objc.ObjCBlock block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockTester, _sel_callNullableStringBlock_, _$$ref.pointer, @@ -436,7 +436,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callObjectBlock: static DummyObject callObjectBlock(DartObjectBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockTester, _sel_callObjectBlock_, _$$ref.pointer, @@ -447,7 +447,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callObjectListener: static void callObjectListener(DartObjectListenerBlock block) { final _$$ref = block.ref; - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_BlockTester, _sel_callObjectListener_, _$$ref.pointer, @@ -457,7 +457,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callOnNewThread: static NSThread callOnNewThread(DartVoidBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockTester, _sel_callOnNewThread_, _$$ref.pointer, @@ -468,7 +468,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callOnSameThread: static void callOnSameThread(DartVoidBlock block) { final _$$ref = block.ref; - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_BlockTester, _sel_callOnSameThread_, _$$ref.pointer, @@ -478,7 +478,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callOnSameThreadOutsideIsolate: static void callOnSameThreadOutsideIsolate(DartVoidBlock block) { final _$$ref = block.ref; - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_BlockTester, _sel_callOnSameThreadOutsideIsolate_, _$$ref.pointer, @@ -488,7 +488,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callSelectorBlock: static void callSelectorBlock(DartSelectorBlock block) { final _$$ref = block.ref; - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_BlockTester, _sel_callSelectorBlock_, _$$ref.pointer, @@ -498,7 +498,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callStructListener: static void callStructListener(DartStructListenerBlock block) { final _$$ref = block.ref; - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_BlockTester, _sel_callStructListener_, _$$ref.pointer, @@ -510,13 +510,13 @@ extension type BlockTester._(objc.ObjCObject object$) final _$$ref = block.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1gew1vmStret( + ? _objc_msgSend_1tq0yezStret( $ptr, _class_BlockTester, _sel_callVec4Block_, _$$ref.pointer, ) - : $ptr.ref = _objc_msgSend_1gew1vm( + : $ptr.ref = _objc_msgSend_1tq0yez( _class_BlockTester, _sel_callVec4Block_, _$$ref.pointer, @@ -531,7 +531,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callWithBlockOnNewThread: static NSThread callWithBlockOnNewThread(DartListenerBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockTester, _sel_callWithBlockOnNewThread_, _$$ref.pointer, @@ -541,14 +541,14 @@ extension type BlockTester._(objc.ObjCObject object$) /// new static BlockTester new$() { - final $ret = _objc_msgSend_151sglz(_class_BlockTester, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BlockTester, _sel_new); return BlockTester.fromPointer($ret, retain: false, release: true); } /// newBlock:withMult: static DartIntBlock newBlock(DartBlockBlock block, {required int withMult}) { final _$$ref = block.ref; - final $ret = _objc_msgSend_jevgay( + final $ret = _objc_msgSend_haihhw( _class_BlockTester, _sel_newBlock_withMult_, _$$ref.pointer, @@ -563,7 +563,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// newBlockBlock: static DartBlockBlock newBlockBlock(int mult) { - final $ret = _objc_msgSend_w43bzz( + final $ret = _objc_msgSend_1hl8uo( _class_BlockTester, _sel_newBlockBlock_, mult, @@ -578,7 +578,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// newFromBlock: static BlockTester newFromBlock(DartIntBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockTester, _sel_newFromBlock_, _$$ref.pointer, @@ -589,7 +589,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// newFromListener: static BlockTester newFromListener(DartObjectListenerBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _class_BlockTester, _sel_newFromListener_, _$$ref.pointer, @@ -599,7 +599,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// newFromMultiplier: static BlockTester newFromMultiplier(int mult) { - final $ret = _objc_msgSend_aclumu( + final $ret = _objc_msgSend_18zkbft( _class_BlockTester, _sel_newFromMultiplier_, mult, @@ -609,7 +609,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// setup: static void setup(ffi.Pointer apiData) { - _objc_msgSend_ovsamd(_class_BlockTester, _sel_setup_, apiData); + _objc_msgSend_15is1z3(_class_BlockTester, _sel_setup_, apiData); } /// Returns a new instance of BlockTester constructed with the default `new` method. @@ -620,13 +620,13 @@ extension BlockTester$Methods on BlockTester { /// call: int call(int x) { final _$$ref = object$.ref; - return _objc_msgSend_zo3bvx(_$$ref.pointer, _sel_call_, x); + return _objc_msgSend_1jyzkwd(_$$ref.pointer, _sel_call_, x); } /// getBlock DartIntBlock getBlock() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_getBlock); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_getBlock); return ObjCBlock_Int32_Int32.fromPointer( $ret, retain: false, @@ -642,7 +642,7 @@ extension BlockTester$Methods on BlockTester { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -653,7 +653,7 @@ extension BlockTester$Methods on BlockTester { void invokeAndReleaseListener(objc.ObjCObject? _$) { final _$$ref = object$.ref; final _$$ref$1 = _$?.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_invokeAndReleaseListener_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -663,7 +663,7 @@ extension BlockTester$Methods on BlockTester { /// invokeAndReleaseListenerOnNewThread void invokeAndReleaseListenerOnNewThread() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv( + _objc_msgSend_h9i570( _$$ref.pointer, _sel_invokeAndReleaseListenerOnNewThread, ); @@ -672,7 +672,7 @@ extension BlockTester$Methods on BlockTester { /// pokeBlock void pokeBlock() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pokeBlock); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_pokeBlock); } } @@ -699,7 +699,7 @@ extension type DummyObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [DummyObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_DummyObject, @@ -707,13 +707,13 @@ extension type DummyObject._(objc.ObjCObject object$) /// alloc static DummyObject alloc() { - final $ret = _objc_msgSend_151sglz(_class_DummyObject, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_DummyObject, _sel_alloc); return DummyObject.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static DummyObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_DummyObject, _sel_allocWithZone_, zone, @@ -723,13 +723,13 @@ extension type DummyObject._(objc.ObjCObject object$) /// new static DummyObject new$() { - final $ret = _objc_msgSend_151sglz(_class_DummyObject, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_DummyObject, _sel_new); return DummyObject.fromPointer($ret, retain: false, release: true); } /// newWithCounter: static DummyObject newWithCounter(ffi.Pointer _counter) { - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _class_DummyObject, _sel_newWithCounter_, _counter, @@ -745,7 +745,7 @@ extension DummyObject$Methods on DummyObject { /// dealloc void dealloc() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_dealloc); } /// init @@ -756,7 +756,7 @@ extension DummyObject$Methods on DummyObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -766,7 +766,7 @@ extension DummyObject$Methods on DummyObject { /// initWithCounter: DummyObject initWithCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _$$ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter, @@ -777,7 +777,7 @@ extension DummyObject$Methods on DummyObject { /// setCounter: void setCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - _objc_msgSend_yhkuco(_$$ref.pointer, _sel_setCounter_, _counter); + _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_setCounter_, _counter); } } @@ -814,7 +814,7 @@ extension type NSThread._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NSThread]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_NSThread, @@ -822,13 +822,13 @@ extension type NSThread._(objc.ObjCObject object$) /// alloc static NSThread alloc() { - final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_alloc); return NSThread.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NSThread allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_NSThread, _sel_allocWithZone_, zone, @@ -843,7 +843,7 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_NSThread, _sel_callStackReturnAddresses, ); @@ -857,13 +857,13 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_callStackSymbols); + final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_callStackSymbols); return objc.NSArray.fromPointer($ret, retain: true, release: true); } /// currentThread static NSThread getCurrentThread() { - final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_currentThread); + final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_currentThread); return NSThread.fromPointer($ret, retain: true, release: true); } @@ -875,7 +875,7 @@ extension type NSThread._(objc.ObjCObject object$) }) { final _$$ref = toTarget.ref; final _$$ref$1 = withObject?.ref; - _objc_msgSend_lzbvjm( + _objc_msgSend_1xnczpu( _class_NSThread, _sel_detachNewThreadSelector_toTarget_withObject_, selector, @@ -894,7 +894,7 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - _objc_msgSend_f167m6( + _objc_msgSend_wv523k( _class_NSThread, _sel_detachNewThreadWithBlock_, _$$ref.pointer, @@ -903,7 +903,7 @@ extension type NSThread._(objc.ObjCObject object$) /// exit static void exit() { - _objc_msgSend_1pl9qdv(_class_NSThread, _sel_exit); + _objc_msgSend_h9i570(_class_NSThread, _sel_exit); } /// isMainThread @@ -913,12 +913,12 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_91o635(_class_NSThread, _sel_isMainThread); + return _objc_msgSend_13h8okt(_class_NSThread, _sel_isMainThread); } /// isMultiThreaded static bool isMultiThreaded() { - return _objc_msgSend_91o635(_class_NSThread, _sel_isMultiThreaded); + return _objc_msgSend_13h8okt(_class_NSThread, _sel_isMultiThreaded); } /// mainThread @@ -928,37 +928,41 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_mainThread); + final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_mainThread); return NSThread.fromPointer($ret, retain: true, release: true); } /// new static NSThread new$() { - final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_new); return NSThread.fromPointer($ret, retain: false, release: true); } /// setThreadPriority: static bool setThreadPriority(double p) { - return _objc_msgSend_18chyc(_class_NSThread, _sel_setThreadPriority_, p); + return _objc_msgSend_6r70rc(_class_NSThread, _sel_setThreadPriority_, p); } /// sleepForTimeInterval: static void sleepForTimeInterval(double ti) { - _objc_msgSend_hwm8nu(_class_NSThread, _sel_sleepForTimeInterval_, ti); + _objc_msgSend_q6vpml(_class_NSThread, _sel_sleepForTimeInterval_, ti); } /// sleepUntilDate: static void sleepUntilDate(objc.NSDate date) { final _$$ref = date.ref; - _objc_msgSend_xtuoz7(_class_NSThread, _sel_sleepUntilDate_, _$$ref.pointer); + _objc_msgSend_1d1siln( + _class_NSThread, + _sel_sleepUntilDate_, + _$$ref.pointer, + ); } /// threadPriority static double threadPriority$1() { return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_class_NSThread, _sel_threadPriority) - : _objc_msgSend_1ukqyt8(_class_NSThread, _sel_threadPriority); + ? _objc_msgSend_9pr6kkFpret(_class_NSThread, _sel_threadPriority) + : _objc_msgSend_9pr6kk(_class_NSThread, _sel_threadPriority); } /// Returns a new instance of NSThread constructed with the default `new` method. @@ -974,7 +978,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_cancel); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_cancel); } /// init @@ -985,7 +989,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -1001,7 +1005,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_nnxkei( + final $ret = _objc_msgSend_1ludlma( _$$ref.retainAndReturnPointer(), _sel_initWithBlock_, _$$ref$1.pointer, @@ -1023,7 +1027,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_1eldwyi( + final $ret = _objc_msgSend_4xjs7i( _$$ref.retainAndReturnPointer(), _sel_initWithTarget_selector_object_, _$$ref$1.pointer, @@ -1041,7 +1045,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isCancelled); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isCancelled); } /// isExecuting @@ -1052,7 +1056,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isExecuting); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isExecuting); } /// isFinished @@ -1063,7 +1067,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isFinished); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isFinished); } /// isMainThread @@ -1074,7 +1078,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMainThread); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isMainThread); } /// main @@ -1085,7 +1089,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_main); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_main); } /// name @@ -1096,7 +1100,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -1110,7 +1114,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - final $ret = _objc_msgSend_oi8iq9(_$$ref.pointer, _sel_qualityOfService); + final $ret = _objc_msgSend_1r6doy1(_$$ref.pointer, _sel_qualityOfService); return objc.NSQualityOfService.fromValue($ret); } @@ -1123,7 +1127,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setName_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -1138,7 +1142,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_n2da1l( + _objc_msgSend_bxtbje( _$$ref.pointer, _sel_setQualityOfService_, value.value, @@ -1153,7 +1157,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_setStackSize_, value); + _objc_msgSend_rfcpxf(_$$ref.pointer, _sel_setStackSize_, value); } /// setThreadPriority: @@ -1164,7 +1168,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setThreadPriority_, value); + _objc_msgSend_q6vpml(_$$ref.pointer, _sel_setThreadPriority_, value); } /// stackSize @@ -1175,7 +1179,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_stackSize); + return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_stackSize); } /// start @@ -1186,13 +1190,13 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_start); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_start); } /// threadDictionary objc.NSMutableDictionary get threadDictionary { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_threadDictionary); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_threadDictionary); return objc.NSMutableDictionary.fromPointer( $ret, retain: true, @@ -1209,8 +1213,8 @@ extension NSThread$Methods on NSThread { macOS: (false, (10, 6, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_threadPriority) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_threadPriority); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_threadPriority) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_threadPriority); } } @@ -2177,7 +2181,7 @@ abstract final class ObjCBlock_ffiVoid { }) { return objc.ObjCBlock( objc.newBlockPort( - _18tji2r_wrapListenerBlock_1pl9qdv, + _18tji2r_wrapListenerBlock_h9i570, (ffi.Pointer rawArgs) => fn(), keepIsolateAlive, ), @@ -2202,7 +2206,7 @@ abstract final class ObjCBlock_ffiVoid { }) { return objc.ObjCBlock( objc.newBlockingBlockPort( - _18tji2r_wrapBlockingBlock_1pl9qdv, + _18tji2r_wrapBlockingBlock_h9i570, (ffi.Pointer rawArgs) => fn(), keepIsolateAlive, ), @@ -2311,7 +2315,7 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_18tji2r_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1hqv45x.fromPointer( @@ -2342,7 +2346,7 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1hqv45x.fromPointer( @@ -2484,7 +2488,7 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_18tji2r_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_te4g5k.fromPointer( @@ -2515,7 +2519,7 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_te4g5k.fromPointer( @@ -2646,7 +2650,7 @@ abstract final class ObjCBlock_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_18tji2r_wrapListenerBlock_1bqef4y, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_1f6q4sj, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1liq3c0.fromPointer( @@ -2677,7 +2681,7 @@ abstract final class ObjCBlock_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1bqef4y, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1f6q4sj, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1liq3c0.fromPointer( @@ -2797,7 +2801,7 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockPort(_18tji2r_wrapListenerBlock_yhkuco, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_1vg1ydp, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_nge4yi.fromPointer( @@ -2828,7 +2832,7 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_yhkuco, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1vg1ydp, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_nge4yi.fromPointer( @@ -2979,7 +2983,7 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { return objc.ObjCBlock< ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) >( - objc.newBlockPort(_18tji2r_wrapListenerBlock_li50va, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_1y99z5g, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_bht217.fromPointer( @@ -3015,7 +3019,7 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { return objc.ObjCBlock< ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) >( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_li50va, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1y99z5g, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_bht217.fromPointer( @@ -3191,7 +3195,7 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { return objc.ObjCBlock< ffi.Void Function(objc.ObjCBlock) >( - objc.newBlockPort(_18tji2r_wrapListenerBlock_f167m6, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_wv523k, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_lgqwom.fromPointer( @@ -3224,7 +3228,7 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { return objc.ObjCBlock< ffi.Void Function(objc.ObjCBlock) >( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_f167m6, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_wv523k, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_lgqwom.fromPointer( @@ -3351,7 +3355,7 @@ abstract final class ObjCBlock_ffiVoid_NSString { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_18tji2r_wrapListenerBlock_xtuoz7, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1vzvc26.fromPointer( @@ -3382,7 +3386,7 @@ abstract final class ObjCBlock_ffiVoid_NSString { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_xtuoz7, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1d1siln, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1vzvc26.fromPointer( @@ -3533,7 +3537,7 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_18tji2r_wrapListenerBlock_ru30ue, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_mx4mc, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_7ojdju.fromPointer( @@ -3564,7 +3568,7 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_ru30ue, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_mx4mc, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_7ojdju.fromPointer( @@ -3726,7 +3730,7 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockPort(_18tji2r_wrapListenerBlock_1d9e4oe, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_j5cnrc, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1b0erz1.fromPointer( @@ -3758,7 +3762,7 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1d9e4oe, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_j5cnrc, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1b0erz1.fromPointer( @@ -3908,7 +3912,7 @@ extension type _BlockArgs_1b0erz1._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1b0erz1]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1b0erz1, @@ -3918,7 +3922,7 @@ extension type _BlockArgs_1b0erz1._(objc.ObjCObject object$) extension _BlockArgs_1b0erz1$Methods on _BlockArgs_1b0erz1 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1ovaulg(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1fen6hj(_$$ref.pointer, _sel_arg0); } } @@ -3941,7 +3945,7 @@ extension type _BlockArgs_1hqv45x._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1hqv45x]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1hqv45x, @@ -3951,7 +3955,7 @@ extension type _BlockArgs_1hqv45x._(objc.ObjCObject object$) extension _BlockArgs_1hqv45x$Methods on _BlockArgs_1hqv45x { DummyObject get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return DummyObject.fromPointer($ret, retain: true, release: true); } } @@ -3975,7 +3979,7 @@ extension type _BlockArgs_1liq3c0._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1liq3c0]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1liq3c0, @@ -3985,7 +3989,7 @@ extension type _BlockArgs_1liq3c0._(objc.ObjCObject object$) extension _BlockArgs_1liq3c0$Methods on _BlockArgs_1liq3c0 { int get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_arg0); } } @@ -4008,7 +4012,7 @@ extension type _BlockArgs_1vzvc26._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1vzvc26]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1vzvc26, @@ -4018,7 +4022,7 @@ extension type _BlockArgs_1vzvc26._(objc.ObjCObject object$) extension _BlockArgs_1vzvc26$Methods on _BlockArgs_1vzvc26 { objc.NSString get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -4042,7 +4046,7 @@ extension type _BlockArgs_7ojdju._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_7ojdju]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_7ojdju, @@ -4054,8 +4058,8 @@ extension _BlockArgs_7ojdju$Methods on _BlockArgs_7ojdju { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1oymdqcStret($ptr, _$$ref.pointer, _sel_arg0) - : $ptr.ref = _objc_msgSend_1oymdqc(_$$ref.pointer, _sel_arg0); + ? _objc_msgSend_ksgj6Stret($ptr, _$$ref.pointer, _sel_arg0) + : $ptr.ref = _objc_msgSend_ksgj6(_$$ref.pointer, _sel_arg0); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -4067,8 +4071,8 @@ extension _BlockArgs_7ojdju$Methods on _BlockArgs_7ojdju { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_o6r21bStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_o6r21b(_$$ref.pointer, _sel_arg1); + ? _objc_msgSend_1ns26h5Stret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1ns26h5(_$$ref.pointer, _sel_arg1); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -4078,7 +4082,7 @@ extension _BlockArgs_7ojdju$Methods on _BlockArgs_7ojdju { objc.NSObject get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); return objc.NSObject.fromPointer($ret, retain: true, release: true); } } @@ -4102,7 +4106,7 @@ extension type _BlockArgs_bht217._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_bht217]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_bht217, @@ -4112,15 +4116,15 @@ extension type _BlockArgs_bht217._(objc.ObjCObject object$) extension _BlockArgs_bht217$Methods on _BlockArgs_bht217 { int get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_arg0); } Vec4 get arg1 { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_o6r21bStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_o6r21b(_$$ref.pointer, _sel_arg1); + ? _objc_msgSend_1ns26h5Stret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1ns26h5(_$$ref.pointer, _sel_arg1); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -4130,7 +4134,7 @@ extension _BlockArgs_bht217$Methods on _BlockArgs_bht217 { ffi.Pointer get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_59rf64(_$$ref.pointer, _sel_arg2); } } @@ -4153,7 +4157,7 @@ extension type _BlockArgs_ii17hk._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_ii17hk]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_ii17hk, @@ -4181,7 +4185,7 @@ extension type _BlockArgs_lgqwom._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_lgqwom]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_lgqwom, @@ -4191,7 +4195,7 @@ extension type _BlockArgs_lgqwom._(objc.ObjCObject object$) extension _BlockArgs_lgqwom$Methods on _BlockArgs_lgqwom { DartIntBlock get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg0); return ObjCBlock_Int32_Int32.fromPointer($ret, retain: true, release: true); } } @@ -4215,7 +4219,7 @@ extension type _BlockArgs_nge4yi._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_nge4yi]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_nge4yi, @@ -4225,7 +4229,7 @@ extension type _BlockArgs_nge4yi._(objc.ObjCObject object$) extension _BlockArgs_nge4yi$Methods on _BlockArgs_nge4yi { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_obqqme(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_8s7612(_$$ref.pointer, _sel_arg0); } } @@ -4248,7 +4252,7 @@ extension type _BlockArgs_te4g5k._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_te4g5k]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_te4g5k, @@ -4258,7 +4262,7 @@ extension type _BlockArgs_te4g5k._(objc.ObjCObject object$) extension _BlockArgs_te4g5k$Methods on _BlockArgs_te4g5k { DummyObject? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : DummyObject.fromPointer($ret, retain: true, release: true); @@ -4294,177 +4298,173 @@ final _class_NSThread = objc.getClass( ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1d9e4oe', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_j5cnrc', ) external ffi.Pointer _class__BlockArgs_1b0erz1_raw; final _class__BlockArgs_1b0erz1 = objc.getClass( - "_18tji2r_BlockArgs_1d9e4oe", + "_18tji2r_BlockArgs_j5cnrc", () => ffi.Native.addressOf>( _class__BlockArgs_1b0erz1_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_1hqv45x_raw; final _class__BlockArgs_1hqv45x = objc.getClass( - "_18tji2r_BlockArgs_xtuoz7", + "_18tji2r_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_1hqv45x_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1bqef4y', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1f6q4sj', ) external ffi.Pointer _class__BlockArgs_1liq3c0_raw; final _class__BlockArgs_1liq3c0 = objc.getClass( - "_18tji2r_BlockArgs_1bqef4y", + "_18tji2r_BlockArgs_1f6q4sj", () => ffi.Native.addressOf>( _class__BlockArgs_1liq3c0_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_1vzvc26_raw; final _class__BlockArgs_1vzvc26 = objc.getClass( - "_18tji2r_BlockArgs_xtuoz7", + "_18tji2r_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_1vzvc26_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_ru30ue', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_mx4mc', ) external ffi.Pointer _class__BlockArgs_7ojdju_raw; final _class__BlockArgs_7ojdju = objc.getClass( - "_18tji2r_BlockArgs_ru30ue", + "_18tji2r_BlockArgs_mx4mc", () => ffi.Native.addressOf>( _class__BlockArgs_7ojdju_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_li50va', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1y99z5g', ) external ffi.Pointer _class__BlockArgs_bht217_raw; final _class__BlockArgs_bht217 = objc.getClass( - "_18tji2r_BlockArgs_li50va", + "_18tji2r_BlockArgs_1y99z5g", () => ffi.Native.addressOf>( _class__BlockArgs_bht217_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1pl9qdv', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_h9i570', ) external ffi.Pointer _class__BlockArgs_ii17hk_raw; final _class__BlockArgs_ii17hk = objc.getClass( - "_18tji2r_BlockArgs_1pl9qdv", + "_18tji2r_BlockArgs_h9i570", () => ffi.Native.addressOf>( _class__BlockArgs_ii17hk_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_f167m6', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_wv523k', ) external ffi.Pointer _class__BlockArgs_lgqwom_raw; final _class__BlockArgs_lgqwom = objc.getClass( - "_18tji2r_BlockArgs_f167m6", + "_18tji2r_BlockArgs_wv523k", () => ffi.Native.addressOf>( _class__BlockArgs_lgqwom_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_yhkuco', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1vg1ydp', ) external ffi.Pointer _class__BlockArgs_nge4yi_raw; final _class__BlockArgs_nge4yi = objc.getClass( - "_18tji2r_BlockArgs_yhkuco", + "_18tji2r_BlockArgs_1vg1ydp", () => ffi.Native.addressOf>( _class__BlockArgs_nge4yi_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_xtuoz7', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1d1siln', ) external ffi.Pointer _class__BlockArgs_te4g5k_raw; final _class__BlockArgs_te4g5k = objc.getClass( - "_18tji2r_BlockArgs_xtuoz7", + "_18tji2r_BlockArgs_1d1siln", () => ffi.Native.addressOf>( _class__BlockArgs_te4g5k_raw, ).cast(), ); -final _objc_msgSend_129vhbw = objc.msgSendPointer +final _objc_msgSend_13h8okt = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_13wc3w1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_18chyc = objc.msgSendPointer +final _objc_msgSend_15is1z3 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Double, + ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - double, + ffi.Pointer, ) >(); -final _objc_msgSend_18yul99 = objc.msgSendPointer +final _objc_msgSend_18zkbft = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1d1siln = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -4472,102 +4472,97 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1eldwyi = objc.msgSendPointer +final _objc_msgSend_1fen6hj = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1fuqfwb = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_1hl8uo = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Int, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_1gew1vm = objc.msgSendPointer +final _objc_msgSend_1jyzkwd = objc.msgSendPointer .cast< ffi.NativeFunction< - Vec4 Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - Vec4 Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1gew1vmStret = objc.msgSendStretPointer +final _objc_msgSend_1lhgxwo = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Double Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -4575,65 +4570,66 @@ final _objc_msgSend_1gew1vmStret = objc.msgSendStretPointer > >() .asFunction< - void Function( - ffi.Pointer, + double Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1i9r4xy = objc.msgSendPointer +final _objc_msgSend_1lhgxwoFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1ovaulg = objc.msgSendPointer +final _objc_msgSend_1ludlma = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1oymdqc = objc.msgSendPointer +final _objc_msgSend_1ns26h5 = objc.msgSendPointer .cast< ffi.NativeFunction< - Vec2 Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - Vec2 Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1oymdqcStret = objc.msgSendStretPointer +final _objc_msgSend_1ns26h5Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) @@ -4641,351 +4637,358 @@ final _objc_msgSend_1oymdqcStret = objc.msgSendStretPointer >() .asFunction< void Function( - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer +final _objc_msgSend_1r6doy1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer +final _objc_msgSend_1tq0yez = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer +final _objc_msgSend_1tq0yezStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_8mj2fv = objc.msgSendPointer +final _objc_msgSend_1uw8y6v = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_8mj2fvFpret = objc.msgSendFpretPointer +final _objc_msgSend_1vg1ydp = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_91o635 = objc.msgSendPointer +final _objc_msgSend_1xnczpu = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_aclumu = objc.msgSendPointer +final _objc_msgSend_3mxu14 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_f167m6 = objc.msgSendPointer +final _objc_msgSend_4xjs7i = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer +final _objc_msgSend_59rf64 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Double, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - double, ) >(); -final _objc_msgSend_jevgay = objc.msgSendPointer +final _objc_msgSend_5gexqg = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_lzbvjm = objc.msgSendPointer +final _objc_msgSend_6r70rc = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Double, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + double, ) >(); -final _objc_msgSend_n2da1l = objc.msgSendPointer +final _objc_msgSend_8s7612 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Long, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_nnxkei = objc.msgSendPointer +final _objc_msgSend_9pr6kk = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_o6r21b = objc.msgSendPointer +final _objc_msgSend_9pr6kkFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - Vec4 Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - Vec4 Function( + double Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_o6r21bStret = objc.msgSendStretPointer +final _objc_msgSend_bxtbje = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() .asFunction< void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_o8bnms = objc.msgSendPointer +final _objc_msgSend_fv0mm3 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - double Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_o8bnmsFpret = objc.msgSendFpretPointer +final _objc_msgSend_h9i570 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - double Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_obqqme = objc.msgSendPointer +final _objc_msgSend_haihhw = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Int, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, ) >(); -final _objc_msgSend_oi8iq9 = objc.msgSendPointer +final _objc_msgSend_ksgj6 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + Vec2 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + Vec2 Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_ovsamd = objc.msgSendPointer +final _objc_msgSend_ksgj6Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_po4t03 = objc.msgSendPointer +final _objc_msgSend_q6vpml = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Int32, + ffi.Double, ) > >() @@ -4993,46 +4996,47 @@ final _objc_msgSend_po4t03 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, + double, ) >(); -final _objc_msgSend_uwvaik = objc.msgSendPointer +final _objc_msgSend_rfcpxf = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_w43bzz = objc.msgSendPointer +final _objc_msgSend_wv523k = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Int, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -5040,59 +5044,59 @@ final _objc_msgSend_xtuoz7 = objc.msgSendPointer > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_xw2lbc = objc.msgSendPointer +final _objc_msgSend_y6ubni = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + double Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_yhkuco = objc.msgSendPointer +final _objc_msgSend_y6ubniFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zo3bvx = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/block_test_bindings.m b/pkgs/ffigen/test/native_objc_test/block_test_bindings.m index 9dbe1c50b1..df6586ec58 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/block_test_bindings.m @@ -57,21 +57,21 @@ __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_1pl9qdv : NSObject +@interface _18tji2r_BlockArgs_h9i570 : NSObject @property (copy) id block; @end -@implementation _18tji2r_BlockArgs_1pl9qdv +@implementation _18tji2r_BlockArgs_h9i570 @end typedef void (^_ListenerTrampoline)(void); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _18tji2r_wrapListenerBlock_1pl9qdv( +_ListenerTrampoline _18tji2r_wrapListenerBlock_h9i570( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline weakSelfBlock = nil; _ListenerTrampoline strongSelfBlock = [^void() { @autoreleasepool { - _18tji2r_BlockArgs_1pl9qdv* args = [[_18tji2r_BlockArgs_1pl9qdv alloc] init]; + _18tji2r_BlockArgs_h9i570* args = [[_18tji2r_BlockArgs_h9i570 alloc] init]; args.block = weakSelfBlock; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -83,18 +83,18 @@ _ListenerTrampoline _18tji2r_wrapListenerBlock_1pl9qdv( typedef void (^_BlockingTrampoline)(void * waiter); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _18tji2r_wrapBlockingBlock_1pl9qdv(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline _18tji2r_wrapBlockingBlock_h9i570(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(), { @autoreleasepool { - _18tji2r_BlockArgs_1pl9qdv* args = [[_18tji2r_BlockArgs_1pl9qdv alloc] init]; + _18tji2r_BlockArgs_h9i570* args = [[_18tji2r_BlockArgs_h9i570 alloc] init]; args.block = weakSelfBlock; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_1pl9qdv* args = [[_18tji2r_BlockArgs_1pl9qdv alloc] init]; + _18tji2r_BlockArgs_h9i570* args = [[_18tji2r_BlockArgs_h9i570 alloc] init]; args.block = weakSelfBlock; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -103,21 +103,21 @@ _ListenerTrampoline _18tji2r_wrapBlockingBlock_1pl9qdv(int64_t port, DOBJC_Conte } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_xtuoz7 : NSObject +@interface _18tji2r_BlockArgs_1d1siln : NSObject @property (copy) id block; @property (strong) id arg0; @end -@implementation _18tji2r_BlockArgs_xtuoz7 +@implementation _18tji2r_BlockArgs_1d1siln @end typedef void (^_ListenerTrampoline_1)(id arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _18tji2r_wrapListenerBlock_xtuoz7( +_ListenerTrampoline_1 _18tji2r_wrapListenerBlock_1d1siln( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_1 weakSelfBlock = nil; _ListenerTrampoline_1 strongSelfBlock = [^void(id arg0) { @autoreleasepool { - _18tji2r_BlockArgs_xtuoz7* args = [[_18tji2r_BlockArgs_xtuoz7 alloc] init]; + _18tji2r_BlockArgs_1d1siln* args = [[_18tji2r_BlockArgs_1d1siln alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -129,18 +129,18 @@ _ListenerTrampoline_1 _18tji2r_wrapListenerBlock_xtuoz7( typedef void (^_BlockingTrampoline_1)(void * waiter, id arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _18tji2r_wrapBlockingBlock_xtuoz7(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_1 _18tji2r_wrapBlockingBlock_1d1siln(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_1, ^void(id arg0), { @autoreleasepool { - _18tji2r_BlockArgs_xtuoz7* args = [[_18tji2r_BlockArgs_xtuoz7 alloc] init]; + _18tji2r_BlockArgs_1d1siln* args = [[_18tji2r_BlockArgs_1d1siln alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_xtuoz7* args = [[_18tji2r_BlockArgs_xtuoz7 alloc] init]; + _18tji2r_BlockArgs_1d1siln* args = [[_18tji2r_BlockArgs_1d1siln alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -149,21 +149,21 @@ _ListenerTrampoline_1 _18tji2r_wrapBlockingBlock_xtuoz7(int64_t port, DOBJC_Cont } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_1bqef4y : NSObject +@interface _18tji2r_BlockArgs_1f6q4sj : NSObject @property (copy) id block; @property int32_t arg0; @end -@implementation _18tji2r_BlockArgs_1bqef4y +@implementation _18tji2r_BlockArgs_1f6q4sj @end typedef void (^_ListenerTrampoline_2)(int32_t arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _18tji2r_wrapListenerBlock_1bqef4y( +_ListenerTrampoline_2 _18tji2r_wrapListenerBlock_1f6q4sj( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_2 weakSelfBlock = nil; _ListenerTrampoline_2 strongSelfBlock = [^void(int32_t arg0) { @autoreleasepool { - _18tji2r_BlockArgs_1bqef4y* args = [[_18tji2r_BlockArgs_1bqef4y alloc] init]; + _18tji2r_BlockArgs_1f6q4sj* args = [[_18tji2r_BlockArgs_1f6q4sj alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -175,18 +175,18 @@ _ListenerTrampoline_2 _18tji2r_wrapListenerBlock_1bqef4y( typedef void (^_BlockingTrampoline_2)(void * waiter, int32_t arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _18tji2r_wrapBlockingBlock_1bqef4y(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_2 _18tji2r_wrapBlockingBlock_1f6q4sj(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_2, ^void(int32_t arg0), { @autoreleasepool { - _18tji2r_BlockArgs_1bqef4y* args = [[_18tji2r_BlockArgs_1bqef4y alloc] init]; + _18tji2r_BlockArgs_1f6q4sj* args = [[_18tji2r_BlockArgs_1f6q4sj alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_1bqef4y* args = [[_18tji2r_BlockArgs_1bqef4y alloc] init]; + _18tji2r_BlockArgs_1f6q4sj* args = [[_18tji2r_BlockArgs_1f6q4sj alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -195,21 +195,21 @@ _ListenerTrampoline_2 _18tji2r_wrapBlockingBlock_1bqef4y(int64_t port, DOBJC_Con } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_yhkuco : NSObject +@interface _18tji2r_BlockArgs_1vg1ydp : NSObject @property (copy) id block; @property int32_t * arg0; @end -@implementation _18tji2r_BlockArgs_yhkuco +@implementation _18tji2r_BlockArgs_1vg1ydp @end typedef void (^_ListenerTrampoline_3)(int32_t * arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_3 _18tji2r_wrapListenerBlock_yhkuco( +_ListenerTrampoline_3 _18tji2r_wrapListenerBlock_1vg1ydp( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_3 weakSelfBlock = nil; _ListenerTrampoline_3 strongSelfBlock = [^void(int32_t * arg0) { @autoreleasepool { - _18tji2r_BlockArgs_yhkuco* args = [[_18tji2r_BlockArgs_yhkuco alloc] init]; + _18tji2r_BlockArgs_1vg1ydp* args = [[_18tji2r_BlockArgs_1vg1ydp alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -221,18 +221,18 @@ _ListenerTrampoline_3 _18tji2r_wrapListenerBlock_yhkuco( typedef void (^_BlockingTrampoline_3)(void * waiter, int32_t * arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_3 _18tji2r_wrapBlockingBlock_yhkuco(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_3 _18tji2r_wrapBlockingBlock_1vg1ydp(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_3, ^void(int32_t * arg0), { @autoreleasepool { - _18tji2r_BlockArgs_yhkuco* args = [[_18tji2r_BlockArgs_yhkuco alloc] init]; + _18tji2r_BlockArgs_1vg1ydp* args = [[_18tji2r_BlockArgs_1vg1ydp alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_yhkuco* args = [[_18tji2r_BlockArgs_yhkuco alloc] init]; + _18tji2r_BlockArgs_1vg1ydp* args = [[_18tji2r_BlockArgs_1vg1ydp alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -241,23 +241,23 @@ _ListenerTrampoline_3 _18tji2r_wrapBlockingBlock_yhkuco(int64_t port, DOBJC_Cont } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_li50va : NSObject +@interface _18tji2r_BlockArgs_1y99z5g : NSObject @property (copy) id block; @property int32_t arg0; @property Vec4 arg1; @property char * arg2; @end -@implementation _18tji2r_BlockArgs_li50va +@implementation _18tji2r_BlockArgs_1y99z5g @end typedef void (^_ListenerTrampoline_4)(int32_t arg0, Vec4 arg1, char * arg2); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_4 _18tji2r_wrapListenerBlock_li50va( +_ListenerTrampoline_4 _18tji2r_wrapListenerBlock_1y99z5g( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_4 weakSelfBlock = nil; _ListenerTrampoline_4 strongSelfBlock = [^void(int32_t arg0, Vec4 arg1, char * arg2) { @autoreleasepool { - _18tji2r_BlockArgs_li50va* args = [[_18tji2r_BlockArgs_li50va alloc] init]; + _18tji2r_BlockArgs_1y99z5g* args = [[_18tji2r_BlockArgs_1y99z5g alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -271,11 +271,11 @@ _ListenerTrampoline_4 _18tji2r_wrapListenerBlock_li50va( typedef void (^_BlockingTrampoline_4)(void * waiter, int32_t arg0, Vec4 arg1, char * arg2); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_4 _18tji2r_wrapBlockingBlock_li50va(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_4 _18tji2r_wrapBlockingBlock_1y99z5g(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_4, ^void(int32_t arg0, Vec4 arg1, char * arg2), { @autoreleasepool { - _18tji2r_BlockArgs_li50va* args = [[_18tji2r_BlockArgs_li50va alloc] init]; + _18tji2r_BlockArgs_1y99z5g* args = [[_18tji2r_BlockArgs_1y99z5g alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -284,7 +284,7 @@ _ListenerTrampoline_4 _18tji2r_wrapBlockingBlock_li50va(int64_t port, DOBJC_Cont } }, { @autoreleasepool { - _18tji2r_BlockArgs_li50va* args = [[_18tji2r_BlockArgs_li50va alloc] init]; + _18tji2r_BlockArgs_1y99z5g* args = [[_18tji2r_BlockArgs_1y99z5g alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -295,21 +295,21 @@ _ListenerTrampoline_4 _18tji2r_wrapBlockingBlock_li50va(int64_t port, DOBJC_Cont } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_f167m6 : NSObject +@interface _18tji2r_BlockArgs_wv523k : NSObject @property (copy) id block; @property (copy) id arg0; @end -@implementation _18tji2r_BlockArgs_f167m6 +@implementation _18tji2r_BlockArgs_wv523k @end typedef void (^_ListenerTrampoline_5)(id arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_5 _18tji2r_wrapListenerBlock_f167m6( +_ListenerTrampoline_5 _18tji2r_wrapListenerBlock_wv523k( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_5 weakSelfBlock = nil; _ListenerTrampoline_5 strongSelfBlock = [^void(id arg0) { @autoreleasepool { - _18tji2r_BlockArgs_f167m6* args = [[_18tji2r_BlockArgs_f167m6 alloc] init]; + _18tji2r_BlockArgs_wv523k* args = [[_18tji2r_BlockArgs_wv523k alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -321,18 +321,18 @@ _ListenerTrampoline_5 _18tji2r_wrapListenerBlock_f167m6( typedef void (^_BlockingTrampoline_5)(void * waiter, id arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_5 _18tji2r_wrapBlockingBlock_f167m6(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_5 _18tji2r_wrapBlockingBlock_wv523k(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_5, ^void(id arg0), { @autoreleasepool { - _18tji2r_BlockArgs_f167m6* args = [[_18tji2r_BlockArgs_f167m6 alloc] init]; + _18tji2r_BlockArgs_wv523k* args = [[_18tji2r_BlockArgs_wv523k alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_f167m6* args = [[_18tji2r_BlockArgs_f167m6 alloc] init]; + _18tji2r_BlockArgs_wv523k* args = [[_18tji2r_BlockArgs_wv523k alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -341,23 +341,23 @@ _ListenerTrampoline_5 _18tji2r_wrapBlockingBlock_f167m6(int64_t port, DOBJC_Cont } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_ru30ue : NSObject +@interface _18tji2r_BlockArgs_mx4mc : NSObject @property (copy) id block; @property struct Vec2 arg0; @property Vec4 arg1; @property (strong) id arg2; @end -@implementation _18tji2r_BlockArgs_ru30ue +@implementation _18tji2r_BlockArgs_mx4mc @end typedef void (^_ListenerTrampoline_6)(struct Vec2 arg0, Vec4 arg1, id arg2); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_6 _18tji2r_wrapListenerBlock_ru30ue( +_ListenerTrampoline_6 _18tji2r_wrapListenerBlock_mx4mc( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_6 weakSelfBlock = nil; _ListenerTrampoline_6 strongSelfBlock = [^void(struct Vec2 arg0, Vec4 arg1, id arg2) { @autoreleasepool { - _18tji2r_BlockArgs_ru30ue* args = [[_18tji2r_BlockArgs_ru30ue alloc] init]; + _18tji2r_BlockArgs_mx4mc* args = [[_18tji2r_BlockArgs_mx4mc alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -371,11 +371,11 @@ _ListenerTrampoline_6 _18tji2r_wrapListenerBlock_ru30ue( typedef void (^_BlockingTrampoline_6)(void * waiter, struct Vec2 arg0, Vec4 arg1, id arg2); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_6 _18tji2r_wrapBlockingBlock_ru30ue(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_6 _18tji2r_wrapBlockingBlock_mx4mc(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_6, ^void(struct Vec2 arg0, Vec4 arg1, id arg2), { @autoreleasepool { - _18tji2r_BlockArgs_ru30ue* args = [[_18tji2r_BlockArgs_ru30ue alloc] init]; + _18tji2r_BlockArgs_mx4mc* args = [[_18tji2r_BlockArgs_mx4mc alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -384,7 +384,7 @@ _ListenerTrampoline_6 _18tji2r_wrapBlockingBlock_ru30ue(int64_t port, DOBJC_Cont } }, { @autoreleasepool { - _18tji2r_BlockArgs_ru30ue* args = [[_18tji2r_BlockArgs_ru30ue alloc] init]; + _18tji2r_BlockArgs_mx4mc* args = [[_18tji2r_BlockArgs_mx4mc alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -395,21 +395,21 @@ _ListenerTrampoline_6 _18tji2r_wrapBlockingBlock_ru30ue(int64_t port, DOBJC_Cont } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_1d9e4oe : NSObject +@interface _18tji2r_BlockArgs_j5cnrc : NSObject @property (copy) id block; @property struct objc_selector * arg0; @end -@implementation _18tji2r_BlockArgs_1d9e4oe +@implementation _18tji2r_BlockArgs_j5cnrc @end typedef void (^_ListenerTrampoline_7)(struct objc_selector * arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_7 _18tji2r_wrapListenerBlock_1d9e4oe( +_ListenerTrampoline_7 _18tji2r_wrapListenerBlock_j5cnrc( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_7 weakSelfBlock = nil; _ListenerTrampoline_7 strongSelfBlock = [^void(struct objc_selector * arg0) { @autoreleasepool { - _18tji2r_BlockArgs_1d9e4oe* args = [[_18tji2r_BlockArgs_1d9e4oe alloc] init]; + _18tji2r_BlockArgs_j5cnrc* args = [[_18tji2r_BlockArgs_j5cnrc alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -421,18 +421,18 @@ _ListenerTrampoline_7 _18tji2r_wrapListenerBlock_1d9e4oe( typedef void (^_BlockingTrampoline_7)(void * waiter, struct objc_selector * arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_7 _18tji2r_wrapBlockingBlock_1d9e4oe(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_7 _18tji2r_wrapBlockingBlock_j5cnrc(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_7, ^void(struct objc_selector * arg0), { @autoreleasepool { - _18tji2r_BlockArgs_1d9e4oe* args = [[_18tji2r_BlockArgs_1d9e4oe alloc] init]; + _18tji2r_BlockArgs_j5cnrc* args = [[_18tji2r_BlockArgs_j5cnrc alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_1d9e4oe* args = [[_18tji2r_BlockArgs_1d9e4oe alloc] init]; + _18tji2r_BlockArgs_j5cnrc* args = [[_18tji2r_BlockArgs_j5cnrc alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); diff --git a/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart index 463cd4713c..dbfa295207 100644 --- a/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type Castaway._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Castaway]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_Castaway, @@ -39,13 +39,13 @@ extension type Castaway._(objc.ObjCObject object$) /// alloc static Castaway alloc() { - final $ret = _objc_msgSend_151sglz(_class_Castaway, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Castaway, _sel_alloc); return Castaway.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Castaway allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_Castaway, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type Castaway._(objc.ObjCObject object$) /// new static Castaway new$() { - final $ret = _objc_msgSend_151sglz(_class_Castaway, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Castaway, _sel_new); return Castaway.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension Castaway$Methods on Castaway { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -82,13 +82,13 @@ extension Castaway$Methods on Castaway { /// meAsInt int meAsInt() { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_meAsInt); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_meAsInt); } /// meAsNSObject objc.NSObject meAsNSObject() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_meAsNSObject); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_meAsNSObject); return objc.NSObject.fromPointer($ret, retain: true, release: true); } } @@ -101,12 +101,13 @@ final _class_Castaway = objc.getClass( _class_Castaway_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -114,53 +115,52 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_dute2g = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Int64 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_pysgoz = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int64 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index b9e3548ece..87999ee004 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -10,13 +10,48 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _l3cf7j_wrapBlockingBlock_1k6sg8i( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _l3cf7j_wrapListenerBlock_1k6sg8i( + int port, + ffi.Pointer context, +); /// CatImplementsProto extension CatImplementsProto on Thing { /// protoMethod int protoMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_protoMethod); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_protoMethod); + } + + /// staticProtoMethod + static int staticProtoMethod() { + return _objc_msgSend_1etqkvi(_class_Thing, _sel_staticProtoMethod); } } @@ -57,7 +92,7 @@ extension type ChildOfNSString._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ChildOfNSString]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ChildOfNSString, @@ -65,13 +100,13 @@ extension type ChildOfNSString._(objc.ObjCObject object$) /// alloc static ChildOfNSString alloc() { - final $ret = _objc_msgSend_151sglz(_class_ChildOfNSString, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_ChildOfNSString, _sel_alloc); return ChildOfNSString.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ChildOfNSString allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ChildOfNSString, _sel_allocWithZone_, zone, @@ -81,10 +116,18 @@ extension type ChildOfNSString._(objc.ObjCObject object$) /// new static ChildOfNSString new$() { - final $ret = _objc_msgSend_151sglz(_class_ChildOfNSString, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_ChildOfNSString, _sel_new); return ChildOfNSString.fromPointer($ret, retain: false, release: true); } + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_13h8okt( + _class_ChildOfNSString, + _sel_supportsSecureCoding, + ); + } + /// Returns a new instance of ChildOfNSString constructed with the default `new` method. ChildOfNSString() : this.as(new$().object$); } @@ -98,7 +141,7 @@ extension ChildOfNSString$Methods on ChildOfNSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -109,7 +152,7 @@ extension ChildOfNSString$Methods on ChildOfNSString { ChildOfNSString? initWithCoder(objc.NSCoder coder) { final _$$ref = object$.ref; final _$$ref$1 = coder.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithCoder_, _$$ref$1.pointer, @@ -140,7 +183,7 @@ extension type ChildOfThing._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ChildOfThing]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ChildOfThing, @@ -148,13 +191,13 @@ extension type ChildOfThing._(objc.ObjCObject object$) /// alloc static ChildOfThing alloc() { - final $ret = _objc_msgSend_151sglz(_class_ChildOfThing, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_ChildOfThing, _sel_alloc); return ChildOfThing.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ChildOfThing allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ChildOfThing, _sel_allocWithZone_, zone, @@ -162,9 +205,17 @@ extension type ChildOfThing._(objc.ObjCObject object$) return ChildOfThing.fromPointer($ret, retain: false, release: true); } + /// anonymousCategoryStaticMethod + static int anonymousCategoryStaticMethod() { + return _objc_msgSend_1etqkvi( + _class_ChildOfThing, + _sel_anonymousCategoryStaticMethod, + ); + } + /// new static ChildOfThing new$() { - final $ret = _objc_msgSend_151sglz(_class_ChildOfThing, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_ChildOfThing, _sel_new); return ChildOfThing.fromPointer($ret, retain: false, release: true); } @@ -181,12 +232,19 @@ extension ChildOfThing$Methods on ChildOfThing { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); return ChildOfThing.fromPointer($ret, retain: false, release: true); } + + /// instancetypeMethod + ChildOfThing instancetypeMethod() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_instancetypeMethod); + return ChildOfThing.fromPointer($ret, retain: true, release: true); + } } /// InstanceTypeCategory @@ -197,20 +255,20 @@ extension InterfaceOnBuiltInType on objc.NSString { /// instancetypeMethod objc.NSString instancetypeMethod() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_instancetypeMethod); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_instancetypeMethod); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// method objc.NSString method() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_method); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_method); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// staticMethod static objc.NSString staticMethod() { - final $ret = _objc_msgSend_151sglz(_class_NSString, _sel_staticMethod); + final $ret = _objc_msgSend_zldla2(_class_NSString, _sel_staticMethod); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -220,18 +278,182 @@ extension Mul on Thing { /// mul:Y: int mul(int x, {required int Y}) { final _$$ref = object$.ref; - return _objc_msgSend_1q0lyci(_$$ref.pointer, _sel_mul_Y_, x, Y); + return _objc_msgSend_as7aj8(_$$ref.pointer, _sel_mul_Y_, x, Y); } /// someProperty int get someProperty { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_someProperty); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_someProperty); } } /// NSItemProvider -extension NSItemProvider on objc.NSURL {} +extension NSItemProvider on objc.NSURL { + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier( + objc.NSString typeIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_1xx6l96( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref$1.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: + objc.NSProgress? loadDataWithTypeIdentifier( + objc.NSString typeIdentifier, { + required objc.ObjCBlock + forItemProviderCompletionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + final _$$ref$2 = forItemProviderCompletionHandler.ref; + objc.checkOsVersionInternal( + 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_8ut1ht( + _$$ref.pointer, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSProgress.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + objc.NSArray get writableTypeIdentifiersForItemProvider { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'writableTypeIdentifiersForItemProvider', + ); + } + final $ret = _objc_msgSend_zldla2( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + static objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( + objc.NSString typeIdentifier, + ) { + final _$$ref = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_1xx6l96( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static objc.NSURL? objectWithItemProviderData( + objc.NSData data, { + required objc.NSString typeIdentifier, + }) { + final _$$ref = data.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1rz4muk( + _class_NSURL, + _sel_objectWithItemProviderData_typeIdentifier_error_, + _$$ref.pointer, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// readableTypeIdentifiersForItemProvider + static objc.NSArray getReadableTypeIdentifiersForItemProvider() { + objc.checkOsVersionInternal( + 'NSURL.readableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_zldla2( + _class_NSURL, + _sel_readableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_zldla2( + _class_NSURL, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} /// NSPromisedItems extension NSPromisedItems on objc.NSURL { @@ -245,7 +467,7 @@ extension NSPromisedItems on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1dom33q( + final $ret = _objc_msgSend_1tjz0jr( _$$ref.pointer, _sel_checkPromisedItemIsReachableAndReturnError_, $err, @@ -271,7 +493,7 @@ extension NSPromisedItems on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1j9bhml( + final $ret = _objc_msgSend_1fh46zu( _$$ref.pointer, _sel_getPromisedItemResourceValue_forKey_error_, value, @@ -296,7 +518,7 @@ extension NSPromisedItems on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1lhpu4m( + final $ret = _objc_msgSend_1a2vk5h( _$$ref.pointer, _sel_promisedItemResourceValuesForKeys_error_, _$$ref$1.pointer, @@ -317,7 +539,7 @@ extension NSString on Thing { /// nsStringExtension int nsStringExtension() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_nsStringExtension); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_nsStringExtension); } } @@ -326,7 +548,7 @@ extension NSURLCategory on objc.NSURL { /// extensionMethod int extensionMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_extensionMethod); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_extensionMethod); } } @@ -341,7 +563,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1t6aok9( + final $ret = _objc_msgSend_1zbf08( _$$ref.pointer, _sel_URLHandleUsingCache_, shouldUseCache, @@ -364,7 +586,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_6p7ndb( + _objc_msgSend_3lg6qb( _$$ref.pointer, _sel_loadResourceDataNotifyingClient_usingCache_, _$$ref$1.pointer, @@ -382,7 +604,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_propertyForKey_, _$$ref$1.pointer, @@ -401,7 +623,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1t6aok9( + final $ret = _objc_msgSend_1zbf08( _$$ref.pointer, _sel_resourceDataUsingCache_, shouldUseCache, @@ -422,7 +644,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1lsax7n( + return _objc_msgSend_bltg3p( _$$ref.pointer, _sel_setProperty_forKey_, _$$ref$1.pointer, @@ -440,7 +662,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_setResourceData_, _$$ref$1.pointer, @@ -459,7 +681,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_URLByAppendingPathComponent_, _$$ref$1.pointer, @@ -481,7 +703,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_17amj0z( + final $ret = _objc_msgSend_umhdr9( _$$ref.pointer, _sel_URLByAppendingPathComponent_isDirectory_, _$$ref$1.pointer, @@ -501,7 +723,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_URLByAppendingPathExtension_, _$$ref$1.pointer, @@ -519,7 +741,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_URLByDeletingLastPathComponent, ); @@ -536,7 +758,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_URLByDeletingPathExtension, ); @@ -553,7 +775,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_URLByResolvingSymlinksInPath, ); @@ -570,7 +792,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_URLByStandardizingPath, ); @@ -589,7 +811,7 @@ extension NSURLPathUtilities on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1dom33q( + final $ret = _objc_msgSend_1tjz0jr( _$$ref.pointer, _sel_checkResourceIsReachableAndReturnError_, $err, @@ -609,7 +831,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_lastPathComponent); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -623,7 +845,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathComponents); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -637,7 +859,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathExtension); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -651,7 +873,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _class_NSURL, _sel_fileURLWithPathComponents_, _$$ref.pointer, @@ -662,17 +884,224 @@ extension NSURLPathUtilities on objc.NSURL { } } +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSData_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSData.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_l3cf7j_wrapListenerBlock_1k6sg8i, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x5cg0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_l3cf7j_wrapBlockingBlock_1k6sg8i, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x5cg0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension + on objc.ObjCBlock { + void call(objc.NSData? arg0, objc.NSError? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + /// StaticAndInstanceMethodsWithSameNameCategory extension StaticAndInstanceMethodsWithSameNameCategory on Thing { /// sameNameMethod int sameNameMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_sameNameMethod); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_sameNameMethod); } /// sameNameMethod static int sameNameMethod$1() { - return _objc_msgSend_1gcq84o(_class_Thing, _sel_sameNameMethod); + return _objc_msgSend_1etqkvi(_class_Thing, _sel_sameNameMethod); } } @@ -681,12 +1110,12 @@ extension Sub on Thing { /// sub:Y: int sub(int x, {required int Y}) { final _$$ref = object$.ref; - return _objc_msgSend_1q0lyci(_$$ref.pointer, _sel_sub_Y_, x, Y); + return _objc_msgSend_as7aj8(_$$ref.pointer, _sel_sub_Y_, x, Y); } /// staticMethod static int staticMethod() { - return _objc_msgSend_1gcq84o(_class_Thing, _sel_staticMethod); + return _objc_msgSend_1etqkvi(_class_Thing, _sel_staticMethod); } } @@ -710,7 +1139,7 @@ extension type Thing._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Thing]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_Thing, @@ -718,19 +1147,27 @@ extension type Thing._(objc.ObjCObject object$) /// alloc static Thing alloc() { - final $ret = _objc_msgSend_151sglz(_class_Thing, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Thing, _sel_alloc); return Thing.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Thing allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428(_class_Thing, _sel_allocWithZone_, zone); + final $ret = _objc_msgSend_1h5ffc5(_class_Thing, _sel_allocWithZone_, zone); return Thing.fromPointer($ret, retain: false, release: true); } + /// anonymousCategoryStaticMethod + static int anonymousCategoryStaticMethod() { + return _objc_msgSend_1etqkvi( + _class_Thing, + _sel_anonymousCategoryStaticMethod, + ); + } + /// new static Thing new$() { - final $ret = _objc_msgSend_151sglz(_class_Thing, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Thing, _sel_new); return Thing.fromPointer($ret, retain: false, release: true); } @@ -742,7 +1179,13 @@ extension Thing$Methods on Thing { /// add:Y: int add(int x, {required int Y}) { final _$$ref = object$.ref; - return _objc_msgSend_1q0lyci(_$$ref.pointer, _sel_add_Y_, x, Y); + return _objc_msgSend_as7aj8(_$$ref.pointer, _sel_add_Y_, x, Y); + } + + /// anonymousCategoryMethod + int anonymousCategoryMethod() { + final _$$ref = object$.ref; + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_anonymousCategoryMethod); } /// init @@ -753,12 +1196,63 @@ extension Thing$Methods on Thing { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); return Thing.fromPointer($ret, retain: false, release: true); } + + /// instancetypeMethod + Thing instancetypeMethod() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_instancetypeMethod); + return Thing.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. + _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. + _BlockArgs_x5cg0.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_xbndyy( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_x5cg0, + ); +} + +extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { + objc.NSData? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } } @ffi.Native>( @@ -805,12 +1299,39 @@ final _class_Thing = objc.getClass( _class_Thing_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__l3cf7j_BlockArgs_1k6sg8i', +) +external ffi.Pointer _class__BlockArgs_x5cg0_raw; +final _class__BlockArgs_x5cg0 = objc.getClass( + "_l3cf7j_BlockArgs_1k6sg8i", + () => ffi.Native.addressOf>( + _class__BlockArgs_x5cg0_raw, + ).cast(), +); +final _objc_msgSend_13h8okt = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1a2vk5h = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ) > >() @@ -818,16 +1339,32 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1etqkvi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_17amj0z = objc.msgSendPointer +final _objc_msgSend_1ffzwv1 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, ) > >() @@ -836,16 +1373,17 @@ final _objc_msgSend_17amj0z = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - bool, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1fh46zu = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ffi.Pointer, + ffi.Pointer>, ) > >() @@ -853,10 +1391,12 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -873,67 +1413,68 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1dom33q = objc.msgSendPointer +final _objc_msgSend_1rz4muk = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer>, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer>, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_1tjz0jr = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_1j9bhml = objc.msgSendPointer +final _objc_msgSend_1xx6l96 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, ffi.Pointer, - ffi.Pointer>, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, ffi.Pointer, - ffi.Pointer>, ) >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer +final _objc_msgSend_1zbf08 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, + ffi.Bool, ) > >() @@ -941,30 +1482,48 @@ final _objc_msgSend_1lhpu4m = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, + bool, ) >(); -final _objc_msgSend_1lsax7n = objc.msgSendPointer +final _objc_msgSend_3lg6qb = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Bool, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_8ut1ht = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1q0lyci = objc.msgSendPointer +final _objc_msgSend_as7aj8 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Int32 Function( @@ -983,29 +1542,32 @@ final _objc_msgSend_1q0lyci = objc.msgSendPointer int, ) >(); -final _objc_msgSend_1sotr3r = objc.msgSendPointer +final _objc_msgSend_bltg3p = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1t6aok9 = objc.msgSendPointer +final _objc_msgSend_umhdr9 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool, ) > @@ -1014,26 +1576,40 @@ final _objc_msgSend_1t6aok9 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool, ) >(); -final _objc_msgSend_6p7ndb = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - bool, + ) + >(); +final _objc_msgSend_zldla2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_URLByAppendingPathComponent_ = objc.registerName( @@ -1063,6 +1639,14 @@ late final _sel_URLHandleUsingCache_ = objc.registerName( late final _sel_add_Y_ = objc.registerName("add:Y:"); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +late final _sel_anonymousCategoryMethod = objc.registerName( + "anonymousCategoryMethod", +); +late final _sel_anonymousCategoryStaticMethod = objc.registerName( + "anonymousCategoryStaticMethod", +); +late final _sel_arg0 = objc.registerName("arg0"); +late final _sel_arg1 = objc.registerName("arg1"); late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( "checkPromisedItemIsReachableAndReturnError:", ); @@ -1080,7 +1664,15 @@ late final _sel_init = objc.registerName("init"); late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); late final _sel_instancetypeMethod = objc.registerName("instancetypeMethod"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = + objc.registerName( + "itemProviderVisibilityForRepresentationWithTypeIdentifier:", + ); late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); +late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = + objc.registerName( + "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", + ); late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( "loadResourceDataNotifyingClient:usingCache:", ); @@ -1088,6 +1680,8 @@ late final _sel_method = objc.registerName("method"); late final _sel_mul_Y_ = objc.registerName("mul:Y:"); late final _sel_new = objc.registerName("new"); late final _sel_nsStringExtension = objc.registerName("nsStringExtension"); +late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc + .registerName("objectWithItemProviderData:typeIdentifier:error:"); late final _sel_pathComponents = objc.registerName("pathComponents"); late final _sel_pathExtension = objc.registerName("pathExtension"); late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( @@ -1095,6 +1689,9 @@ late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( ); late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); late final _sel_protoMethod = objc.registerName("protoMethod"); +late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( + "readableTypeIdentifiersForItemProvider", +); late final _sel_resourceDataUsingCache_ = objc.registerName( "resourceDataUsingCache:", ); @@ -1103,7 +1700,14 @@ late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); late final _sel_setResourceData_ = objc.registerName("setResourceData:"); late final _sel_someProperty = objc.registerName("someProperty"); late final _sel_staticMethod = objc.registerName("staticMethod"); +late final _sel_staticProtoMethod = objc.registerName("staticProtoMethod"); late final _sel_sub_Y_ = objc.registerName("sub:Y:"); +late final _sel_supportsSecureCoding = objc.registerName( + "supportsSecureCoding", +); +late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( + "writableTypeIdentifiersForItemProvider", +); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m new file mode 100644 index 0000000000..fa815b6385 --- /dev/null +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m @@ -0,0 +1,111 @@ +#include +#import +#import +#import "category_test.h" +#import "category_test.h" + +#if !__has_feature(objc_arc) +#error "This file must be compiled with ARC enabled" +#endif + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundeclared-selector" + +typedef struct { + int64_t version; + void* (*newWaiter)(void); + void (*awaitWaiter)(void*); + void* (*currentIsolate)(void); + void (*enterIsolate)(void*); + void (*exitIsolate)(void); + int64_t (*getMainPortId)(void); + bool (*getCurrentThreadOwnsIsolate)(int64_t); + void (*invokeListenerPortBlock)(int64_t port, void*); + void (*invokeBlockingPortBlock)(int64_t port, void*, void*); +} DOBJC_Context; + +id objc_retainBlock(id); + +#define BLOCKING_BLOCK_IMPL(ctx, TYPE, SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ + assert(ctx->version >= 1); \ + void* targetIsolate = ctx->currentIsolate(); \ + int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ + __block __weak TYPE weakSelfBlock = nil; \ + TYPE strongSelfBlock = [SIG { \ + void* currentIsolate = ctx->currentIsolate(); \ + bool mayEnterIsolate = \ + currentIsolate == NULL && \ + ctx->getCurrentThreadOwnsIsolate != NULL && \ + ctx->getCurrentThreadOwnsIsolate(targetPort); \ + if (currentIsolate == targetIsolate || mayEnterIsolate) { \ + if (mayEnterIsolate) { \ + ctx->enterIsolate(targetIsolate); \ + } \ + INVOKE_DIRECT; \ + if (mayEnterIsolate) { \ + ctx->exitIsolate(); \ + } \ + } else { \ + void* waiter = ctx->newWaiter(); \ + TYPE selfRetain = [weakSelfBlock copy]; \ + INVOKE_LISTENER; \ + ctx->awaitWaiter(waiter); \ + (void)selfRetain; \ + } \ + } copy]; \ + weakSelfBlock = strongSelfBlock; \ + return strongSelfBlock; + + +__attribute__((visibility("default"))) +@interface _l3cf7j_BlockArgs_1k6sg8i : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property (strong) id arg1; +@end +@implementation _l3cf7j_BlockArgs_1k6sg8i +@end + +typedef void (^_ListenerTrampoline)(id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline _l3cf7j_wrapListenerBlock_1k6sg8i( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline weakSelfBlock = nil; + _ListenerTrampoline strongSelfBlock = [^void(id arg0, id arg1) { + @autoreleasepool { + _l3cf7j_BlockArgs_1k6sg8i* args = [[_l3cf7j_BlockArgs_1k6sg8i alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline)(void * waiter, id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline _l3cf7j_wrapBlockingBlock_1k6sg8i(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(id arg0, id arg1), { + @autoreleasepool { + _l3cf7j_BlockArgs_1k6sg8i* args = [[_l3cf7j_BlockArgs_1k6sg8i alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _l3cf7j_BlockArgs_1k6sg8i* args = [[_l3cf7j_BlockArgs_1k6sg8i alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} +#undef BLOCKING_BLOCK_IMPL + +#pragma clang diagnostic pop diff --git a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart index 624ad51faa..90f8e78f63 100644 --- a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -38,7 +38,7 @@ extension type EnumTestInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [EnumTestInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_EnumTestInterface, @@ -46,13 +46,13 @@ extension type EnumTestInterface._(objc.ObjCObject object$) /// alloc static EnumTestInterface alloc() { - final $ret = _objc_msgSend_151sglz(_class_EnumTestInterface, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_EnumTestInterface, _sel_alloc); return EnumTestInterface.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static EnumTestInterface allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_EnumTestInterface, _sel_allocWithZone_, zone, @@ -62,13 +62,13 @@ extension type EnumTestInterface._(objc.ObjCObject object$) /// new static EnumTestInterface new$() { - final $ret = _objc_msgSend_151sglz(_class_EnumTestInterface, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_EnumTestInterface, _sel_new); return EnumTestInterface.fromPointer($ret, retain: false, release: true); } /// useImportedNSEnum: static int useImportedNSEnum(objc.NSQualityOfService x) { - return _objc_msgSend_1y89lso( + return _objc_msgSend_18lj9lc( _class_EnumTestInterface, _sel_useImportedNSEnum_, x.value, @@ -77,7 +77,7 @@ extension type EnumTestInterface._(objc.ObjCObject object$) /// useImportedNSOptions: static int useImportedNSOptions(int x) { - return _objc_msgSend_1cxnp8y( + return _objc_msgSend_1v2v0pc( _class_EnumTestInterface, _sel_useImportedNSOptions_, x, @@ -97,7 +97,7 @@ extension EnumTestInterface$Methods on EnumTestInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -137,87 +137,87 @@ final _class_EnumTestInterface = objc.getClass( _class_EnumTestInterface_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_18lj9lc = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1v2v0pc = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1cxnp8y = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1y89lso = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Long, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart index 342e32e50b..32d011d200 100644 --- a/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type ErrorMethodTestObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ErrorMethodTestObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ErrorMethodTestObject, @@ -39,10 +39,7 @@ extension type ErrorMethodTestObject._(objc.ObjCObject object$) /// alloc static ErrorMethodTestObject alloc() { - final $ret = _objc_msgSend_151sglz( - _class_ErrorMethodTestObject, - _sel_alloc, - ); + final $ret = _objc_msgSend_zldla2(_class_ErrorMethodTestObject, _sel_alloc); return ErrorMethodTestObject.fromPointer( $ret, retain: false, @@ -52,7 +49,7 @@ extension type ErrorMethodTestObject._(objc.ObjCObject object$) /// allocWithZone: static ErrorMethodTestObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ErrorMethodTestObject, _sel_allocWithZone_, zone, @@ -66,7 +63,7 @@ extension type ErrorMethodTestObject._(objc.ObjCObject object$) /// new static ErrorMethodTestObject new$() { - final $ret = _objc_msgSend_151sglz(_class_ErrorMethodTestObject, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_ErrorMethodTestObject, _sel_new); return ErrorMethodTestObject.fromPointer( $ret, retain: false, @@ -84,7 +81,7 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { final _$$ref = object$.ref; final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_164wts2( + final $ret = _objc_msgSend_1d50bq7( _$$ref.pointer, _sel_errorMethodReturningBool_error_, isOk, @@ -102,7 +99,7 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { final _$$ref = object$.ref; final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_28eabw( + final $ret = _objc_msgSend_1utlnmg( _$$ref.pointer, _sel_errorMethodReturningNullable_error_, isOk, @@ -125,7 +122,7 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -141,7 +138,7 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { final _$$ref = object$.ref; final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_164wts2( + final $ret = _objc_msgSend_1d50bq7( _$$ref.pointer, _sel_nullableErrorMethod_error_, isOk, @@ -159,7 +156,7 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { final _$$ref = object$.ref; final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_164wts2( + final $ret = _objc_msgSend_1d50bq7( _$$ref.pointer, _sel_outErrorMethod_outError_, isOk, @@ -183,82 +180,84 @@ final _class_ErrorMethodTestObject = objc.getClass( _class_ErrorMethodTestObject_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1d50bq7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Bool, + ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, + bool, + ffi.Pointer>, ) >(); -final _objc_msgSend_164wts2 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.Pointer>, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - bool, - ffi.Pointer>, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1utlnmg = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Bool, + ffi.Pointer>, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + bool, + ffi.Pointer>, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_28eabw = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.Pointer>, ) > >() @@ -266,8 +265,6 @@ final _objc_msgSend_28eabw = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - bool, - ffi.Pointer>, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart index 8bd3c48f48..503046b45e 100644 --- a/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type ClassThatWillFailToLoad._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ClassThatWillFailToLoad]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ClassThatWillFailToLoad, @@ -39,7 +39,7 @@ extension type ClassThatWillFailToLoad._(objc.ObjCObject object$) /// alloc static ClassThatWillFailToLoad alloc() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_ClassThatWillFailToLoad, _sel_alloc, ); @@ -52,7 +52,7 @@ extension type ClassThatWillFailToLoad._(objc.ObjCObject object$) /// allocWithZone: static ClassThatWillFailToLoad allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ClassThatWillFailToLoad, _sel_allocWithZone_, zone, @@ -66,10 +66,7 @@ extension type ClassThatWillFailToLoad._(objc.ObjCObject object$) /// new static ClassThatWillFailToLoad new$() { - final $ret = _objc_msgSend_151sglz( - _class_ClassThatWillFailToLoad, - _sel_new, - ); + final $ret = _objc_msgSend_zldla2(_class_ClassThatWillFailToLoad, _sel_new); return ClassThatWillFailToLoad.fromPointer( $ret, retain: false, @@ -85,7 +82,7 @@ extension ClassThatWillFailToLoad$Methods on ClassThatWillFailToLoad { /// get123 int get123() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_get123); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_get123); } /// init @@ -96,7 +93,7 @@ extension ClassThatWillFailToLoad$Methods on ClassThatWillFailToLoad { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -118,66 +115,66 @@ final _class_ClassThatWillFailToLoad = objc.getClass( _class_ClassThatWillFailToLoad_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart index 855bf1a850..e2606147be 100644 --- a/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type ForwardDeclaredClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ForwardDeclaredClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ForwardDeclaredClass, @@ -39,13 +39,13 @@ extension type ForwardDeclaredClass._(objc.ObjCObject object$) /// alloc static ForwardDeclaredClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_ForwardDeclaredClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_ForwardDeclaredClass, _sel_alloc); return ForwardDeclaredClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ForwardDeclaredClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ForwardDeclaredClass, _sel_allocWithZone_, zone, @@ -55,12 +55,12 @@ extension type ForwardDeclaredClass._(objc.ObjCObject object$) /// get123 static int get123() { - return _objc_msgSend_1gcq84o(_class_ForwardDeclaredClass, _sel_get123); + return _objc_msgSend_1etqkvi(_class_ForwardDeclaredClass, _sel_get123); } /// new static ForwardDeclaredClass new$() { - final $ret = _objc_msgSend_151sglz(_class_ForwardDeclaredClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_ForwardDeclaredClass, _sel_new); return ForwardDeclaredClass.fromPointer($ret, retain: false, release: true); } @@ -77,7 +77,7 @@ extension ForwardDeclaredClass$Methods on ForwardDeclaredClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -95,66 +95,66 @@ final _class_ForwardDeclaredClass = objc.getClass( _class_ForwardDeclaredClass_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart index 579aa3cfee..4a397a7be6 100644 --- a/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; diff --git a/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart index 750eb425ce..794bba55be 100644 --- a/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; diff --git a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart index 2afa773d54..41bb99241b 100644 --- a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type BaseClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BaseClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_BaseClass, @@ -39,13 +39,13 @@ extension type BaseClass._(objc.ObjCObject object$) /// alloc static BaseClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_BaseClass, _sel_alloc); return BaseClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BaseClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_BaseClass, _sel_allocWithZone_, zone, @@ -55,13 +55,13 @@ extension type BaseClass._(objc.ObjCObject object$) /// create static BaseClass create() { - final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_create); + final $ret = _objc_msgSend_zldla2(_class_BaseClass, _sel_create); return BaseClass.fromPointer($ret, retain: true, release: true); } /// new static BaseClass new$() { - final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_BaseClass, _sel_new); return BaseClass.fromPointer($ret, retain: false, release: true); } @@ -73,7 +73,7 @@ extension BaseClass$Methods on BaseClass { /// getSelf BaseClass getSelf() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_getSelf); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_getSelf); return BaseClass.fromPointer($ret, retain: true, release: true); } @@ -85,7 +85,7 @@ extension BaseClass$Methods on BaseClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -113,7 +113,7 @@ extension type ChildClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ChildClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ChildClass, @@ -121,13 +121,13 @@ extension type ChildClass._(objc.ObjCObject object$) /// alloc static ChildClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_ChildClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_ChildClass, _sel_alloc); return ChildClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ChildClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ChildClass, _sel_allocWithZone_, zone, @@ -137,13 +137,13 @@ extension type ChildClass._(objc.ObjCObject object$) /// create static ChildClass create() { - final $ret = _objc_msgSend_151sglz(_class_ChildClass, _sel_create); + final $ret = _objc_msgSend_zldla2(_class_ChildClass, _sel_create); return ChildClass.fromPointer($ret, retain: true, release: true); } /// new static ChildClass new$() { - final $ret = _objc_msgSend_151sglz(_class_ChildClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_ChildClass, _sel_new); return ChildClass.fromPointer($ret, retain: false, release: true); } @@ -155,13 +155,13 @@ extension ChildClass$Methods on ChildClass { /// field int get field { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_field); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_field); } /// getSelf ChildClass getSelf() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_getSelf); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_getSelf); return ChildClass.fromPointer($ret, retain: true, release: true); } @@ -173,7 +173,7 @@ extension ChildClass$Methods on ChildClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -183,7 +183,7 @@ extension ChildClass$Methods on ChildClass { /// setField: set field(int value) { final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setField_, value); + _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setField_, value); } } @@ -205,83 +205,83 @@ final _class_ChildClass = objc.getClass( _class_ChildClass_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1f6q4sj = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart index 486f0fa35c..a1ee05957f 100644 --- a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type IsInstanceBaseClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [IsInstanceBaseClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_IsInstanceBaseClass, @@ -39,13 +39,13 @@ extension type IsInstanceBaseClass._(objc.ObjCObject object$) /// alloc static IsInstanceBaseClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_IsInstanceBaseClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_IsInstanceBaseClass, _sel_alloc); return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static IsInstanceBaseClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_IsInstanceBaseClass, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type IsInstanceBaseClass._(objc.ObjCObject object$) /// new static IsInstanceBaseClass new$() { - final $ret = _objc_msgSend_151sglz(_class_IsInstanceBaseClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_IsInstanceBaseClass, _sel_new); return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension IsInstanceBaseClass$Methods on IsInstanceBaseClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -100,7 +100,7 @@ extension type IsInstanceChildClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [IsInstanceChildClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_IsInstanceChildClass, @@ -108,13 +108,13 @@ extension type IsInstanceChildClass._(objc.ObjCObject object$) /// alloc static IsInstanceChildClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_IsInstanceChildClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_IsInstanceChildClass, _sel_alloc); return IsInstanceChildClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static IsInstanceChildClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_IsInstanceChildClass, _sel_allocWithZone_, zone, @@ -124,7 +124,7 @@ extension type IsInstanceChildClass._(objc.ObjCObject object$) /// new static IsInstanceChildClass new$() { - final $ret = _objc_msgSend_151sglz(_class_IsInstanceChildClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_IsInstanceChildClass, _sel_new); return IsInstanceChildClass.fromPointer($ret, retain: false, release: true); } @@ -141,7 +141,7 @@ extension IsInstanceChildClass$Methods on IsInstanceChildClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -169,7 +169,7 @@ extension type IsInstanceUnrelatedClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [IsInstanceUnrelatedClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_IsInstanceUnrelatedClass, @@ -177,7 +177,7 @@ extension type IsInstanceUnrelatedClass._(objc.ObjCObject object$) /// alloc static IsInstanceUnrelatedClass alloc() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_IsInstanceUnrelatedClass, _sel_alloc, ); @@ -190,7 +190,7 @@ extension type IsInstanceUnrelatedClass._(objc.ObjCObject object$) /// allocWithZone: static IsInstanceUnrelatedClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_IsInstanceUnrelatedClass, _sel_allocWithZone_, zone, @@ -204,7 +204,7 @@ extension type IsInstanceUnrelatedClass._(objc.ObjCObject object$) /// new static IsInstanceUnrelatedClass new$() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_IsInstanceUnrelatedClass, _sel_new, ); @@ -228,7 +228,7 @@ extension IsInstanceUnrelatedClass$Methods on IsInstanceUnrelatedClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -270,12 +270,13 @@ final _class_IsInstanceUnrelatedClass = objc.getClass( _class_IsInstanceUnrelatedClass_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -283,9 +284,10 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -302,13 +304,12 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -316,7 +317,6 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart index fb2451e90b..9c2f73fdd7 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -21,7 +21,7 @@ const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); >, ) >(isLeaf: true) -external ffi.Pointer _rdx59v_wrapBlockingBlock_1bqef4y( +external ffi.Pointer _rdx59v_wrapBlockingBlock_1f6q4sj( int port, ffi.Pointer context, ffi.Pointer< @@ -36,7 +36,7 @@ external ffi.Pointer _rdx59v_wrapBlockingBlock_1bqef4y( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _rdx59v_wrapListenerBlock_1bqef4y( +external ffi.Pointer _rdx59v_wrapListenerBlock_1f6q4sj( int port, ffi.Pointer context, ); @@ -99,7 +99,7 @@ abstract final class ObjCBlock_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_rdx59v_wrapListenerBlock_1bqef4y, ( + objc.newBlockPort(_rdx59v_wrapListenerBlock_1f6q4sj, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1liq3c0.fromPointer( @@ -130,7 +130,7 @@ abstract final class ObjCBlock_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_rdx59v_wrapBlockingBlock_1bqef4y, ( + objc.newBlockingBlockPort(_rdx59v_wrapBlockingBlock_1f6q4sj, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1liq3c0.fromPointer( @@ -208,7 +208,7 @@ extension type Sendable._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Sendable]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_Sendable, @@ -216,13 +216,13 @@ extension type Sendable._(objc.ObjCObject object$) /// alloc static Sendable alloc() { - final $ret = _objc_msgSend_151sglz(_class_Sendable, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Sendable, _sel_alloc); return Sendable.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Sendable allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_Sendable, _sel_allocWithZone_, zone, @@ -233,7 +233,7 @@ extension type Sendable._(objc.ObjCObject object$) /// dummyMethodToForceGenerationOfListener static objc.ObjCBlock dummyMethodToForceGenerationOfListener() { - final $ret = _objc_msgSend_uwvaik( + final $ret = _objc_msgSend_13wc3w1( _class_Sendable, _sel_dummyMethodToForceGenerationOfListener, ); @@ -246,7 +246,7 @@ extension type Sendable._(objc.ObjCObject object$) /// new static Sendable new$() { - final $ret = _objc_msgSend_151sglz(_class_Sendable, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Sendable, _sel_new); return Sendable.fromPointer($ret, retain: false, release: true); } @@ -263,7 +263,7 @@ extension Sendable$Methods on Sendable { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -273,13 +273,13 @@ extension Sendable$Methods on Sendable { /// setValue: set value(int value) { final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setValue_, value); + _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setValue_, value); } /// value int get value { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_value); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_value); } } @@ -302,7 +302,7 @@ extension type _BlockArgs_1liq3c0._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1liq3c0]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1liq3c0, @@ -312,7 +312,7 @@ extension type _BlockArgs_1liq3c0._(objc.ObjCObject object$) extension _BlockArgs_1liq3c0$Methods on _BlockArgs_1liq3c0 { int get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_arg0); } } @@ -325,48 +325,46 @@ final _class_Sendable = objc.getClass( ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__rdx59v_BlockArgs_1bqef4y', + symbol: 'OBJC_CLASS_\$__rdx59v_BlockArgs_1f6q4sj', ) external ffi.Pointer _class__BlockArgs_1liq3c0_raw; final _class__BlockArgs_1liq3c0 = objc.getClass( - "_rdx59v_BlockArgs_1bqef4y", + "_rdx59v_BlockArgs_1f6q4sj", () => ffi.Native.addressOf>( _class__BlockArgs_1liq3c0_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_13wc3w1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer +final _objc_msgSend_1f6q4sj = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -383,7 +381,7 @@ final _objc_msgSend_1bqef4y = objc.msgSendPointer int, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -400,32 +398,34 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_uwvaik = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.m b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.m index a88e58c524..d467dddf1c 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.m @@ -57,21 +57,21 @@ __attribute__((visibility("default"))) -@interface _rdx59v_BlockArgs_1bqef4y : NSObject +@interface _rdx59v_BlockArgs_1f6q4sj : NSObject @property (copy) id block; @property int32_t arg0; @end -@implementation _rdx59v_BlockArgs_1bqef4y +@implementation _rdx59v_BlockArgs_1f6q4sj @end typedef void (^_ListenerTrampoline)(int32_t arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _rdx59v_wrapListenerBlock_1bqef4y( +_ListenerTrampoline _rdx59v_wrapListenerBlock_1f6q4sj( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline weakSelfBlock = nil; _ListenerTrampoline strongSelfBlock = [^void(int32_t arg0) { @autoreleasepool { - _rdx59v_BlockArgs_1bqef4y* args = [[_rdx59v_BlockArgs_1bqef4y alloc] init]; + _rdx59v_BlockArgs_1f6q4sj* args = [[_rdx59v_BlockArgs_1f6q4sj alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -83,18 +83,18 @@ _ListenerTrampoline _rdx59v_wrapListenerBlock_1bqef4y( typedef void (^_BlockingTrampoline)(void * waiter, int32_t arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _rdx59v_wrapBlockingBlock_1bqef4y(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline _rdx59v_wrapBlockingBlock_1f6q4sj(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(int32_t arg0), { @autoreleasepool { - _rdx59v_BlockArgs_1bqef4y* args = [[_rdx59v_BlockArgs_1bqef4y alloc] init]; + _rdx59v_BlockArgs_1f6q4sj* args = [[_rdx59v_BlockArgs_1f6q4sj alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _rdx59v_BlockArgs_1bqef4y* args = [[_rdx59v_BlockArgs_1bqef4y alloc] init]; + _rdx59v_BlockArgs_1f6q4sj* args = [[_rdx59v_BlockArgs_1f6q4sj alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); diff --git a/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart index cb06d2dcb3..86ff7cf0fa 100644 --- a/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type LogSpamBaseClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [LogSpamBaseClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_LogSpamBaseClass, @@ -39,13 +39,13 @@ extension type LogSpamBaseClass._(objc.ObjCObject object$) /// alloc static LogSpamBaseClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_LogSpamBaseClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_LogSpamBaseClass, _sel_alloc); return LogSpamBaseClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static LogSpamBaseClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_LogSpamBaseClass, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type LogSpamBaseClass._(objc.ObjCObject object$) /// instancetypeMethod static LogSpamBaseClass instancetypeMethod() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_LogSpamBaseClass, _sel_instancetypeMethod, ); @@ -64,12 +64,12 @@ extension type LogSpamBaseClass._(objc.ObjCObject object$) /// matchingMethod static int matchingMethod() { - return _objc_msgSend_1gcq84o(_class_LogSpamBaseClass, _sel_matchingMethod); + return _objc_msgSend_1etqkvi(_class_LogSpamBaseClass, _sel_matchingMethod); } /// new static LogSpamBaseClass new$() { - final $ret = _objc_msgSend_151sglz(_class_LogSpamBaseClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_LogSpamBaseClass, _sel_new); return LogSpamBaseClass.fromPointer($ret, retain: false, release: true); } @@ -86,7 +86,7 @@ extension LogSpamBaseClass$Methods on LogSpamBaseClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -114,7 +114,7 @@ extension type LogSpamChildClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [LogSpamChildClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_LogSpamChildClass, @@ -122,13 +122,13 @@ extension type LogSpamChildClass._(objc.ObjCObject object$) /// alloc static LogSpamChildClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_LogSpamChildClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_LogSpamChildClass, _sel_alloc); return LogSpamChildClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static LogSpamChildClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_LogSpamChildClass, _sel_allocWithZone_, zone, @@ -138,7 +138,7 @@ extension type LogSpamChildClass._(objc.ObjCObject object$) /// instancetypeMethod static LogSpamChildClass instancetypeMethod() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_LogSpamChildClass, _sel_instancetypeMethod, ); @@ -147,12 +147,12 @@ extension type LogSpamChildClass._(objc.ObjCObject object$) /// matchingMethod static int matchingMethod() { - return _objc_msgSend_1gcq84o(_class_LogSpamChildClass, _sel_matchingMethod); + return _objc_msgSend_1etqkvi(_class_LogSpamChildClass, _sel_matchingMethod); } /// new static LogSpamChildClass new$() { - final $ret = _objc_msgSend_151sglz(_class_LogSpamChildClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_LogSpamChildClass, _sel_new); return LogSpamChildClass.fromPointer($ret, retain: false, release: true); } @@ -169,7 +169,7 @@ extension LogSpamChildClass$Methods on LogSpamChildClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -197,66 +197,66 @@ final _class_LogSpamChildClass = objc.getClass( _class_LogSpamChildClass_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart index 6980653a43..b223787fa2 100644 --- a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -13,7 +13,7 @@ const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); @ffi.Native< instancetype Function(ffi.Pointer, ffi.Pointer) >() -external instancetype _n85dd5_protocolTrampoline_1mbt9g9( +external instancetype _n85dd5_protocolTrampoline_1jnam6p( ffi.Pointer target, ffi.Pointer arg0, ); @@ -38,7 +38,7 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [MethodFilteringTestInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_MethodFilteringTestInterface, @@ -46,7 +46,7 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) /// alloc static MethodFilteringTestInterface alloc() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_MethodFilteringTestInterface, _sel_alloc, ); @@ -61,7 +61,7 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) static MethodFilteringTestInterface allocWithZone( ffi.Pointer zone, ) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_MethodFilteringTestInterface, _sel_allocWithZone_, zone, @@ -75,7 +75,7 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) /// includedStaticMethod static MethodFilteringTestInterface includedStaticMethod() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_MethodFilteringTestInterface, _sel_includedStaticMethod, ); @@ -88,7 +88,7 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) /// new static MethodFilteringTestInterface new$() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_MethodFilteringTestInterface, _sel_new, ); @@ -110,7 +110,7 @@ extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { required int with$, }) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_3hao97( + final $ret = _objc_msgSend_1drrbn4( _$$ref.pointer, _sel_includedInstanceMethod_with_, arg, @@ -126,7 +126,7 @@ extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { /// includedProperty objc.NSObject get includedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_includedProperty); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_includedProperty); return objc.NSObject.fromPointer($ret, retain: true, release: true); } @@ -138,7 +138,7 @@ extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -165,7 +165,7 @@ extension type MethodFilteringTestProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [MethodFilteringTestProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_MethodFilteringTestProtocol, @@ -177,7 +177,7 @@ extension MethodFilteringTestProtocol$Methods on MethodFilteringTestProtocol { /// includedProtocolMethod MethodFilteringTestProtocol includedProtocolMethod() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_includedProtocolMethod, ); @@ -244,7 +244,7 @@ interface class MethodFilteringTestProtocol$Builder { ffi.Pointer, ) > - >(_n85dd5_protocolTrampoline_1mbt9g9) + >(_n85dd5_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_MethodFilteringTestProtocol, @@ -394,12 +394,14 @@ final _class_MethodFilteringTestInterface = objc.getClass( _class_MethodFilteringTestInterface_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1drrbn4 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, + ffi.Int32, ) > >() @@ -407,76 +409,74 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + int, + int, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_441sd9 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_3hao97 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - int, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_e3qsqz = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); @ffi.Native Function()>( diff --git a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.m b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.m index 986c3246cf..3ad2984bc1 100644 --- a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.m @@ -61,7 +61,7 @@ typedef id (^_ProtocolTrampoline)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -id _n85dd5_protocolTrampoline_1mbt9g9(id target, void * sel) { +id _n85dd5_protocolTrampoline_1jnam6p(id target, void * sel) { return ((_ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } #undef BLOCKING_BLOCK_IMPL diff --git a/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart index 8071e21574..af35e493f0 100644 --- a/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type MethodInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [MethodInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_MethodInterface, @@ -39,13 +39,13 @@ extension type MethodInterface._(objc.ObjCObject object$) /// alloc static MethodInterface alloc() { - final $ret = _objc_msgSend_151sglz(_class_MethodInterface, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_MethodInterface, _sel_alloc); return MethodInterface.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static MethodInterface allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_MethodInterface, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type MethodInterface._(objc.ObjCObject object$) /// instStaticSameName static int instStaticSameName$1() { - return _objc_msgSend_1gcq84o( + return _objc_msgSend_1etqkvi( _class_MethodInterface, _sel_instStaticSameName, ); @@ -63,28 +63,34 @@ extension type MethodInterface._(objc.ObjCObject object$) /// new static MethodInterface new$() { - final $ret = _objc_msgSend_151sglz(_class_MethodInterface, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_MethodInterface, _sel_new); return MethodInterface.fromPointer($ret, retain: false, release: true); } /// sub static int sub() { - return _objc_msgSend_1gcq84o(_class_MethodInterface, _sel_sub); + return _objc_msgSend_1etqkvi(_class_MethodInterface, _sel_sub); } /// sub: static int sub$1(int x) { - return _objc_msgSend_zo3bvx(_class_MethodInterface, _sel_sub_, x); + return _objc_msgSend_1jyzkwd(_class_MethodInterface, _sel_sub_, x); } /// sub:Y: static int sub$2(int x, {required int Y}) { - return _objc_msgSend_1q0lyci(_class_MethodInterface, _sel_sub_Y_, x, Y); + return _objc_msgSend_as7aj8(_class_MethodInterface, _sel_sub_Y_, x, Y); } /// sub:Y:Z: static int sub$3(int x, {required int Y, required int Z}) { - return _objc_msgSend_b9kbqv(_class_MethodInterface, _sel_sub_Y_Z_, x, Y, Z); + return _objc_msgSend_1vzbexb( + _class_MethodInterface, + _sel_sub_Y_Z_, + x, + Y, + Z, + ); } /// Returns a new instance of MethodInterface constructed with the default `new` method. @@ -97,8 +103,8 @@ extension MethodInterface$Methods on MethodInterface { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_o6r21bStret($ptr, _$$ref.pointer, _sel_Vec4) - : $ptr.ref = _objc_msgSend_o6r21b(_$$ref.pointer, _sel_Vec4); + ? _objc_msgSend_1ns26h5Stret($ptr, _$$ref.pointer, _sel_Vec4) + : $ptr.ref = _objc_msgSend_1ns26h5(_$$ref.pointer, _sel_Vec4); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -109,41 +115,41 @@ extension MethodInterface$Methods on MethodInterface { /// add int add() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_add); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_add); } /// add: int add$1(int x) { final _$$ref = object$.ref; - return _objc_msgSend_zo3bvx(_$$ref.pointer, _sel_add_, x); + return _objc_msgSend_1jyzkwd(_$$ref.pointer, _sel_add_, x); } /// add:Y: int add$2(int x, {required int Y}) { final _$$ref = object$.ref; - return _objc_msgSend_1q0lyci(_$$ref.pointer, _sel_add_Y_, x, Y); + return _objc_msgSend_as7aj8(_$$ref.pointer, _sel_add_Y_, x, Y); } /// add:Y:Z: int add$3(int x, {required int Y, required int Z}) { final _$$ref = object$.ref; - return _objc_msgSend_b9kbqv(_$$ref.pointer, _sel_add_Y_Z_, x, Y, Z); + return _objc_msgSend_1vzbexb(_$$ref.pointer, _sel_add_Y_Z_, x, Y, Z); } /// addDoubles:Y: double addDoubles(double x, {required double Y}) { final _$$ref = object$.ref; return objc.useMsgSendVariants - ? _objc_msgSend_srsdcwFpret(_$$ref.pointer, _sel_addDoubles_Y_, x, Y) - : _objc_msgSend_srsdcw(_$$ref.pointer, _sel_addDoubles_Y_, x, Y); + ? _objc_msgSend_v4f59iFpret(_$$ref.pointer, _sel_addDoubles_Y_, x, Y) + : _objc_msgSend_v4f59i(_$$ref.pointer, _sel_addDoubles_Y_, x, Y); } /// addFloats:Y: double addFloats(double x, {required double Y}) { final _$$ref = object$.ref; return objc.useMsgSendVariants - ? _objc_msgSend_sk7f6fFpret(_$$ref.pointer, _sel_addFloats_Y_, x, Y) - : _objc_msgSend_sk7f6f(_$$ref.pointer, _sel_addFloats_Y_, x, Y); + ? _objc_msgSend_1738480Fpret(_$$ref.pointer, _sel_addFloats_Y_, x, Y) + : _objc_msgSend_1738480(_$$ref.pointer, _sel_addFloats_Y_, x, Y); } /// init @@ -154,7 +160,7 @@ extension MethodInterface$Methods on MethodInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -164,7 +170,7 @@ extension MethodInterface$Methods on MethodInterface { /// instStaticSameName int instStaticSameName() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_instStaticSameName); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_instStaticSameName); } /// twiddleVec4Components: @@ -172,13 +178,13 @@ extension MethodInterface$Methods on MethodInterface { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_ivr5s7Stret( + ? _objc_msgSend_1ut2dfStret( $ptr, _$$ref.pointer, _sel_twiddleVec4Components_, v, ) - : $ptr.ref = _objc_msgSend_ivr5s7( + : $ptr.ref = _objc_msgSend_1ut2df( _$$ref.pointer, _sel_twiddleVec4Components_, v, @@ -227,56 +233,45 @@ final _class_MethodInterface = objc.getClass( _class_MethodInterface_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1738480 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Float, + ffi.Float, ) > >() .asFunction< - bool Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + double, + double, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1738480Fpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Float, + ffi.Float, ) > >() .asFunction< - ffi.Pointer Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + double, + double, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Int32 Function( @@ -291,34 +286,30 @@ final _objc_msgSend_1gcq84o = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1q0lyci = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_b9kbqv = objc.msgSendPointer +final _objc_msgSend_1jyzkwd = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ffi.Int32, - ffi.Int32, - ffi.Int32, ) > >() @@ -327,17 +318,14 @@ final _objc_msgSend_b9kbqv = objc.msgSendPointer ffi.Pointer, ffi.Pointer, int, - int, - int, ) >(); -final _objc_msgSend_ivr5s7 = objc.msgSendPointer +final _objc_msgSend_1ns26h5 = objc.msgSendPointer .cast< ffi.NativeFunction< Vec4 Function( ffi.Pointer, ffi.Pointer, - Vec4, ) > >() @@ -345,17 +333,15 @@ final _objc_msgSend_ivr5s7 = objc.msgSendPointer Vec4 Function( ffi.Pointer, ffi.Pointer, - Vec4, ) >(); -final _objc_msgSend_ivr5s7Stret = objc.msgSendStretPointer +final _objc_msgSend_1ns26h5Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - Vec4, ) > >() @@ -364,15 +350,15 @@ final _objc_msgSend_ivr5s7Stret = objc.msgSendStretPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - Vec4, ) >(); -final _objc_msgSend_o6r21b = objc.msgSendPointer +final _objc_msgSend_1ut2df = objc.msgSendPointer .cast< ffi.NativeFunction< Vec4 Function( ffi.Pointer, ffi.Pointer, + Vec4, ) > >() @@ -380,15 +366,17 @@ final _objc_msgSend_o6r21b = objc.msgSendPointer Vec4 Function( ffi.Pointer, ffi.Pointer, + Vec4, ) >(); -final _objc_msgSend_o6r21bStret = objc.msgSendStretPointer +final _objc_msgSend_1ut2dfStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + Vec4, ) > >() @@ -397,47 +385,50 @@ final _objc_msgSend_o6r21bStret = objc.msgSendStretPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + Vec4, ) >(); -final _objc_msgSend_sk7f6f = objc.msgSendPointer +final _objc_msgSend_1vzbexb = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Float, - ffi.Float, + ffi.Int32, + ffi.Int32, + ffi.Int32, ) > >() .asFunction< - double Function( + int Function( ffi.Pointer, ffi.Pointer, - double, - double, + int, + int, + int, ) >(); -final _objc_msgSend_sk7f6fFpret = objc.msgSendFpretPointer +final _objc_msgSend_as7aj8 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Float, - ffi.Float, + ffi.Int32, + ffi.Int32, ) > >() .asFunction< - double Function( + int Function( ffi.Pointer, ffi.Pointer, - double, - double, + int, + int, ) >(); -final _objc_msgSend_srsdcw = objc.msgSendPointer +final _objc_msgSend_v4f59i = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Double Function( @@ -456,7 +447,7 @@ final _objc_msgSend_srsdcw = objc.msgSendPointer double, ) >(); -final _objc_msgSend_srsdcwFpret = objc.msgSendFpretPointer +final _objc_msgSend_v4f59iFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< ffi.Double Function( @@ -475,21 +466,36 @@ final _objc_msgSend_srsdcwFpret = objc.msgSendFpretPointer double, ) >(); -final _objc_msgSend_zo3bvx = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_zldla2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, ) >(); late final _sel_Vec4 = objc.registerName("Vec4"); diff --git a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart index 9ddfe020c2..3743aedecd 100644 --- a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,29 +31,29 @@ extension type Foo._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Foo]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5(obj.ref.pointer, _sel_isKindOfClass_, _class_Foo); + : _objc_msgSend_xbndyy(obj.ref.pointer, _sel_isKindOfClass_, _class_Foo); /// alloc static Foo alloc() { - final $ret = _objc_msgSend_151sglz(_class_Foo, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Foo, _sel_alloc); return Foo.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Foo allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428(_class_Foo, _sel_allocWithZone_, zone); + final $ret = _objc_msgSend_1h5ffc5(_class_Foo, _sel_allocWithZone_, zone); return Foo.fromPointer($ret, retain: false, release: true); } /// makeFoo: static Foo makeFoo(double x) { - final $ret = _objc_msgSend_oa8mke(_class_Foo, _sel_makeFoo_, x); + final $ret = _objc_msgSend_1qido3(_class_Foo, _sel_makeFoo_, x); return Foo.fromPointer($ret, retain: true, release: true); } /// new static Foo new$() { - final $ret = _objc_msgSend_151sglz(_class_Foo, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Foo, _sel_new); return Foo.fromPointer($ret, retain: false, release: true); } @@ -65,20 +65,20 @@ extension Foo$Methods on Foo { /// boolVal bool get boolVal { final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_boolVal); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_boolVal); } /// classVal objc.ObjCObject get classVal { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classVal); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_classVal); return objc.ObjCObject($ret, retain: true, release: true); } /// idVal objc.ObjCObject get idVal { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_idVal); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_idVal); return objc.ObjCObject($ret, retain: true, release: true); } @@ -90,7 +90,7 @@ extension Foo$Methods on Foo { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -100,14 +100,14 @@ extension Foo$Methods on Foo { /// intVal int get intVal { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_intVal); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_intVal); } /// multiply:withOtherFoo: int multiply(bool useIntVals, {required Foo withOtherFoo}) { final _$$ref = object$.ref; final _$$ref$1 = withOtherFoo.ref; - return _objc_msgSend_1t47e0u( + return _objc_msgSend_13w5pef( _$$ref.pointer, _sel_multiply_withOtherFoo_, useIntVals, @@ -118,59 +118,59 @@ extension Foo$Methods on Foo { /// objVal objc.NSObject get objVal { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_objVal); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_objVal); return objc.NSObject.fromPointer($ret, retain: true, release: true); } /// selVal ffi.Pointer get selVal { final _$$ref = object$.ref; - return _objc_msgSend_1ovaulg(_$$ref.pointer, _sel_selVal); + return _objc_msgSend_1fen6hj(_$$ref.pointer, _sel_selVal); } /// setBoolVal: set boolVal(bool value) { final _$$ref = object$.ref; - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setBoolVal_, value); + _objc_msgSend_1s4gila(_$$ref.pointer, _sel_setBoolVal_, value); } /// setClassVal: set classVal(objc.ObjCObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setClassVal_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setClassVal_, _$$ref$1.pointer); } /// setDoubleVal: void setDoubleVal(double x) { final _$$ref = object$.ref; - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setDoubleVal_, x); + _objc_msgSend_q6vpml(_$$ref.pointer, _sel_setDoubleVal_, x); } /// setIdVal: set idVal(objc.ObjCObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setIdVal_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setIdVal_, _$$ref$1.pointer); } /// setIntVal: set intVal(int value) { final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setIntVal_, value); + _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setIntVal_, value); } /// setObjVal: set objVal(objc.NSObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setObjVal_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setObjVal_, _$$ref$1.pointer); } /// setSelVal: set selVal(ffi.Pointer value) { final _$$ref = object$.ref; - _objc_msgSend_1d9e4oe(_$$ref.pointer, _sel_setSelVal_, value); + _objc_msgSend_j5cnrc(_$$ref.pointer, _sel_setSelVal_, value); } } @@ -182,45 +182,47 @@ final _class_Foo = objc.getClass( _class_Foo_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_13h8okt = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_13w5pef = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, + ffi.Bool, ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, + bool, ffi.Pointer, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer +final _objc_msgSend_1d1siln = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, ) > >() @@ -228,33 +230,31 @@ final _objc_msgSend_1bqef4y = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1d9e4oe = objc.msgSendPointer +final _objc_msgSend_1f6q4sj = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, ) > >() @@ -262,91 +262,93 @@ final _objc_msgSend_1d9e4oe = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_1fen6hj = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1ovaulg = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer +final _objc_msgSend_1qido3 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, + ffi.Double, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - bool, + double, ) >(); -final _objc_msgSend_1t47e0u = objc.msgSendPointer +final _objc_msgSend_1s4gila = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Bool, - ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, bool, - ffi.Pointer, ) >(); -final _objc_msgSend_91o635 = objc.msgSendPointer +final _objc_msgSend_j5cnrc = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer +final _objc_msgSend_q6vpml = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -363,38 +365,36 @@ final _objc_msgSend_hwm8nu = objc.msgSendPointer double, ) >(); -final _objc_msgSend_oa8mke = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Double, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - double, + ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/ns_range_test.dart b/pkgs/ffigen/test/native_objc_test/ns_range_test.dart index 8297cc79ea..8a062fe87f 100644 --- a/pkgs/ffigen/test/native_objc_test/ns_range_test.dart +++ b/pkgs/ffigen/test/native_objc_test/ns_range_test.dart @@ -47,6 +47,7 @@ void main() { ], ), objectiveC: const ObjectiveC(), + enums: const Enums(silenceWarning: true), visitors: [ Visitor( visitObjCInterface: (node) { diff --git a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart index f808138798..e6024cb01d 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type NullableBase._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NullableBase]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_NullableBase, @@ -39,13 +39,13 @@ extension type NullableBase._(objc.ObjCObject object$) /// alloc static NullableBase alloc() { - final $ret = _objc_msgSend_151sglz(_class_NullableBase, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_NullableBase, _sel_alloc); return NullableBase.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NullableBase allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_NullableBase, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type NullableBase._(objc.ObjCObject object$) /// new static NullableBase new$() { - final $ret = _objc_msgSend_151sglz(_class_NullableBase, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_NullableBase, _sel_new); return NullableBase.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension NullableBase$Methods on NullableBase { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -83,7 +83,7 @@ extension NullableBase$Methods on NullableBase { bool nonNullArg(objc.NSObject x) { final _$$ref = object$.ref; final _$$ref$1 = x.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_nonNullArg_, _$$ref$1.pointer, @@ -93,7 +93,7 @@ extension NullableBase$Methods on NullableBase { /// nonNullReturn objc.NSObject? nonNullReturn() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_nonNullReturn); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_nonNullReturn); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -103,7 +103,7 @@ extension NullableBase$Methods on NullableBase { bool nullableArg(objc.NSObject? x) { final _$$ref = object$.ref; final _$$ref$1 = x?.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_nullableArg_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -113,7 +113,7 @@ extension NullableBase$Methods on NullableBase { /// nullableReturn: objc.NSObject? nullableReturn(bool r) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1t6aok9(_$$ref.pointer, _sel_nullableReturn_, r); + final $ret = _objc_msgSend_1zbf08(_$$ref.pointer, _sel_nullableReturn_, r); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -140,7 +140,7 @@ extension type NullableChild._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NullableChild]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_NullableChild, @@ -148,13 +148,13 @@ extension type NullableChild._(objc.ObjCObject object$) /// alloc static NullableChild alloc() { - final $ret = _objc_msgSend_151sglz(_class_NullableChild, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_NullableChild, _sel_alloc); return NullableChild.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NullableChild allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_NullableChild, _sel_allocWithZone_, zone, @@ -164,7 +164,7 @@ extension type NullableChild._(objc.ObjCObject object$) /// new static NullableChild new$() { - final $ret = _objc_msgSend_151sglz(_class_NullableChild, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_NullableChild, _sel_new); return NullableChild.fromPointer($ret, retain: false, release: true); } @@ -181,7 +181,7 @@ extension NullableChild$Methods on NullableChild { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -192,7 +192,7 @@ extension NullableChild$Methods on NullableChild { bool nonNullArg(objc.NSObject? x) { final _$$ref = object$.ref; final _$$ref$1 = x?.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_nonNullArg_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -202,7 +202,7 @@ extension NullableChild$Methods on NullableChild { /// nonNullReturn objc.NSObject? nonNullReturn() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_nonNullReturn); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_nonNullReturn); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -212,7 +212,7 @@ extension NullableChild$Methods on NullableChild { bool nullableArg(objc.NSObject x) { final _$$ref = object$.ref; final _$$ref$1 = x.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _$$ref.pointer, _sel_nullableArg_, _$$ref$1.pointer, @@ -222,7 +222,7 @@ extension NullableChild$Methods on NullableChild { /// nullableReturn: objc.NSObject nullableReturn(bool r) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1t6aok9(_$$ref.pointer, _sel_nullableReturn_, r); + final $ret = _objc_msgSend_1zbf08(_$$ref.pointer, _sel_nullableReturn_, r); return objc.NSObject.fromPointer($ret, retain: true, release: true); } } @@ -247,7 +247,7 @@ extension type NullableIntermediate._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NullableIntermediate]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_NullableIntermediate, @@ -255,13 +255,13 @@ extension type NullableIntermediate._(objc.ObjCObject object$) /// alloc static NullableIntermediate alloc() { - final $ret = _objc_msgSend_151sglz(_class_NullableIntermediate, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_NullableIntermediate, _sel_alloc); return NullableIntermediate.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NullableIntermediate allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_NullableIntermediate, _sel_allocWithZone_, zone, @@ -271,7 +271,7 @@ extension type NullableIntermediate._(objc.ObjCObject object$) /// new static NullableIntermediate new$() { - final $ret = _objc_msgSend_151sglz(_class_NullableIntermediate, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_NullableIntermediate, _sel_new); return NullableIntermediate.fromPointer($ret, retain: false, release: true); } @@ -288,7 +288,7 @@ extension NullableIntermediate$Methods on NullableIntermediate { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -326,12 +326,13 @@ final _class_NullableIntermediate = objc.getClass( _class_NullableIntermediate_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -339,49 +340,49 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1zbf08 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Bool, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + bool, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1t6aok9 = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, ) > >() @@ -389,7 +390,6 @@ final _objc_msgSend_1t6aok9 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - bool, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart index ba8f6f1664..ce6face847 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type NullableInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NullableInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_NullableInterface, @@ -39,13 +39,13 @@ extension type NullableInterface._(objc.ObjCObject object$) /// alloc static NullableInterface alloc() { - final $ret = _objc_msgSend_151sglz(_class_NullableInterface, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_NullableInterface, _sel_alloc); return NullableInterface.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NullableInterface allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_NullableInterface, _sel_allocWithZone_, zone, @@ -56,7 +56,7 @@ extension type NullableInterface._(objc.ObjCObject object$) /// isNullWithExplicitNonNullableNSObjectPtrArg: static bool isNullWithExplicitNonNullableNSObjectPtrArg(objc.NSObject x) { final _$$ref = x.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _class_NullableInterface, _sel_isNullWithExplicitNonNullableNSObjectPtrArg_, _$$ref.pointer, @@ -66,7 +66,7 @@ extension type NullableInterface._(objc.ObjCObject object$) /// isNullWithNotNullableNSObjectPtrArg: static bool isNullWithNotNullableNSObjectPtrArg(objc.NSObject x) { final _$$ref = x.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _class_NullableInterface, _sel_isNullWithNotNullableNSObjectPtrArg_, _$$ref.pointer, @@ -76,7 +76,7 @@ extension type NullableInterface._(objc.ObjCObject object$) /// isNullWithNullableNSObjectArg: static bool isNullWithNullableNSObjectArg(objc.NSObject? x) { final _$$ref = x?.ref; - return _objc_msgSend_19nvye5( + return _objc_msgSend_xbndyy( _class_NullableInterface, _sel_isNullWithNullableNSObjectArg_, _$$ref?.pointer ?? ffi.nullptr, @@ -92,7 +92,7 @@ extension type NullableInterface._(objc.ObjCObject object$) final _$$ref = x?.ref; final _$$ref$1 = y?.ref; final _$$ref$2 = z?.ref; - final $ret = _objc_msgSend_11spmsz( + final $ret = _objc_msgSend_1mevadz( _class_NullableInterface, _sel_multipleNullableArgs_y_z_, _$$ref?.pointer ?? ffi.nullptr, @@ -106,13 +106,13 @@ extension type NullableInterface._(objc.ObjCObject object$) /// new static NullableInterface new$() { - final $ret = _objc_msgSend_151sglz(_class_NullableInterface, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_NullableInterface, _sel_new); return NullableInterface.fromPointer($ret, retain: false, release: true); } /// returnNil: static objc.NSObject? returnNil(bool r) { - final $ret = _objc_msgSend_1t6aok9( + final $ret = _objc_msgSend_1zbf08( _class_NullableInterface, _sel_returnNil_, r, @@ -124,7 +124,7 @@ extension type NullableInterface._(objc.ObjCObject object$) /// returnNullableAlias: static objc.NSString? returnNullableAlias(bool r) { - final $ret = _objc_msgSend_1t6aok9( + final $ret = _objc_msgSend_1zbf08( _class_NullableInterface, _sel_returnNullableAlias_, r, @@ -147,7 +147,7 @@ extension NullableInterface$Methods on NullableInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -157,7 +157,7 @@ extension NullableInterface$Methods on NullableInterface { /// nullableObjectProperty objc.NSObject? get nullableObjectProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_nullableObjectProperty, ); @@ -170,7 +170,7 @@ extension NullableInterface$Methods on NullableInterface { set nullableObjectProperty(objc.NSObject? value) { final _$$ref = object$.ref; final _$$ref$1 = value?.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setNullableObjectProperty_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -188,33 +188,30 @@ final _class_NullableInterface = objc.getClass( _class_NullableInterface_raw, ).cast(), ); -final _objc_msgSend_11spmsz = objc.msgSendPointer +final _objc_msgSend_1d1siln = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -222,32 +219,37 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1mevadz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1zbf08 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Bool, ) > >() @@ -255,41 +257,39 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + bool, ) >(); -final _objc_msgSend_1t6aok9 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - bool, + ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart index c153f673a9..8c742e2dd1 100644 --- a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [PropertyInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_PropertyInterface, @@ -39,13 +39,13 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// alloc static PropertyInterface alloc() { - final $ret = _objc_msgSend_151sglz(_class_PropertyInterface, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_PropertyInterface, _sel_alloc); return PropertyInterface.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static PropertyInterface allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_PropertyInterface, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// classReadOnlyProperty static int getClassReadOnlyProperty() { - return _objc_msgSend_1gcq84o( + return _objc_msgSend_1etqkvi( _class_PropertyInterface, _sel_classReadOnlyProperty, ); @@ -63,7 +63,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// classReadWriteProperty static int getClassReadWriteProperty() { - return _objc_msgSend_1gcq84o( + return _objc_msgSend_1etqkvi( _class_PropertyInterface, _sel_classReadWriteProperty, ); @@ -71,7 +71,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// instStaticSameName static int getInstStaticSameName$1() { - return _objc_msgSend_1gcq84o( + return _objc_msgSend_1etqkvi( _class_PropertyInterface, _sel_instStaticSameName, ); @@ -79,13 +79,13 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// new static PropertyInterface new$() { - final $ret = _objc_msgSend_151sglz(_class_PropertyInterface, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_PropertyInterface, _sel_new); return PropertyInterface.fromPointer($ret, retain: false, release: true); } /// regressGH1268 static objc.NSArray getRegressGH1268() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_PropertyInterface, _sel_regressGH1268, ); @@ -94,7 +94,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// regressGH436 static UndefinedTemplate getRegressGH436() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_PropertyInterface, _sel_regressGH436, ); @@ -103,7 +103,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// setClassReadWriteProperty: static void setClassReadWriteProperty(int value) { - _objc_msgSend_1bqef4y( + _objc_msgSend_1f6q4sj( _class_PropertyInterface, _sel_setClassReadWriteProperty_, value, @@ -119,16 +119,16 @@ extension PropertyInterface$Methods on PropertyInterface { double get doubleProperty { final _$$ref = object$.ref; return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_doubleProperty) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_doubleProperty); + ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_doubleProperty) + : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_doubleProperty); } /// floatProperty double get floatProperty { final _$$ref = object$.ref; return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_floatProperty) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_floatProperty); + ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_floatProperty) + : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_floatProperty); } /// init @@ -139,7 +139,7 @@ extension PropertyInterface$Methods on PropertyInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -149,43 +149,43 @@ extension PropertyInterface$Methods on PropertyInterface { /// instStaticSameName int get instStaticSameName { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_instStaticSameName); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_instStaticSameName); } /// readOnlyProperty int get readOnlyProperty { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_readOnlyProperty); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_readOnlyProperty); } /// readWriteProperty int get readWriteProperty { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_readWriteProperty); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_readWriteProperty); } /// setDoubleProperty: set doubleProperty(double value) { final _$$ref = object$.ref; - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setDoubleProperty_, value); + _objc_msgSend_q6vpml(_$$ref.pointer, _sel_setDoubleProperty_, value); } /// setFloatProperty: set floatProperty(double value) { final _$$ref = object$.ref; - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setFloatProperty_, value); + _objc_msgSend_1gv17gn(_$$ref.pointer, _sel_setFloatProperty_, value); } /// setReadWriteProperty: set readWriteProperty(int value) { final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setReadWriteProperty_, value); + _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setReadWriteProperty_, value); } /// setStructProperty: set structProperty(Vec4 value) { final _$$ref = object$.ref; - _objc_msgSend_188ryij(_$$ref.pointer, _sel_setStructProperty_, value); + _objc_msgSend_19l0oqy(_$$ref.pointer, _sel_setStructProperty_, value); } /// structProperty @@ -193,8 +193,8 @@ extension PropertyInterface$Methods on PropertyInterface { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_o6r21bStret($ptr, _$$ref.pointer, _sel_structProperty) - : $ptr.ref = _objc_msgSend_o6r21b(_$$ref.pointer, _sel_structProperty); + ? _objc_msgSend_1ns26h5Stret($ptr, _$$ref.pointer, _sel_structProperty) + : $ptr.ref = _objc_msgSend_1ns26h5(_$$ref.pointer, _sel_structProperty); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -256,62 +256,62 @@ final _class_PropertyInterface = objc.getClass( _class_PropertyInterface_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_19l0oqy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + Vec4, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + Vec4, ) >(); -final _objc_msgSend_188ryij = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - Vec4, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - Vec4, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1f6q4sj = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer +final _objc_msgSend_1gv17gn = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Float, ) > >() @@ -319,10 +319,10 @@ final _objc_msgSend_1bqef4y = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - int, + double, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -339,37 +339,39 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_1ns26h5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer +final _objc_msgSend_1ns26h5Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - double Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer +final _objc_msgSend_9pr6kk = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Double Function( @@ -384,10 +386,10 @@ final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer ffi.Pointer, ) >(); -final _objc_msgSend_2cgrxl = objc.msgSendPointer +final _objc_msgSend_9pr6kkFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, ) @@ -399,7 +401,7 @@ final _objc_msgSend_2cgrxl = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer +final _objc_msgSend_kh8q6e = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Float Function( @@ -414,70 +416,68 @@ final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer ffi.Pointer, ) >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer +final _objc_msgSend_kh8q6eFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, - ffi.Double, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - double, ) >(); -final _objc_msgSend_o6r21b = objc.msgSendPointer +final _objc_msgSend_q6vpml = objc.msgSendPointer .cast< ffi.NativeFunction< - Vec4 Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Double, ) > >() .asFunction< - Vec4 Function( + void Function( ffi.Pointer, ffi.Pointer, + double, ) >(); -final _objc_msgSend_o6r21bStret = objc.msgSendStretPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( - ffi.Pointer, + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_v5hmet = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Float, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - double, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart index 0eafdc227f..bde5fa7fdc 100644 --- a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -11,30 +11,45 @@ import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); @ffi.Native< - ffi.Void Function( + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + SomeStruct, + ) +>() +external int _13hhotk_protocolTrampoline_1b21v9l( + ffi.Pointer target, + ffi.Pointer arg0, + SomeStruct arg1, +); + +@ffi.Native< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Double, ) >() -external void _13hhotk_protocolTrampoline_18v1jvf( +external ffi.Pointer _13hhotk_protocolTrampoline_1ig8rct( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, + double arg2, ); @ffi.Native< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer) + instancetype Function(ffi.Pointer, ffi.Pointer) >() -external int _13hhotk_protocolTrampoline_1d4mjzg( +external instancetype _13hhotk_protocolTrampoline_1jnam6p( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - instancetype Function(ffi.Pointer, ffi.Pointer) + ffi.Int32 Function(ffi.Pointer, ffi.Pointer) >() -external instancetype _13hhotk_protocolTrampoline_1mbt9g9( +external int _13hhotk_protocolTrampoline_b3xgmd( ffi.Pointer target, ffi.Pointer arg0, ); @@ -46,7 +61,7 @@ external instancetype _13hhotk_protocolTrampoline_1mbt9g9( ffi.Int32, ) >() -external void _13hhotk_protocolTrampoline_1pbq496( +external void _13hhotk_protocolTrampoline_strl0q( ffi.Pointer target, ffi.Pointer arg0, int arg1, @@ -56,28 +71,32 @@ external void _13hhotk_protocolTrampoline_1pbq496( ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - SomeStruct, + ffi.Int32, + ffi.Int32, + ffi.Int32, + ffi.Int32, ) >() -external int _13hhotk_protocolTrampoline_1pfwxcz( +external int _13hhotk_protocolTrampoline_vbq37t( ffi.Pointer target, ffi.Pointer arg0, - SomeStruct arg1, + int arg1, + int arg2, + int arg3, + int arg4, ); @ffi.Native< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Double, ) >() -external ffi.Pointer _13hhotk_protocolTrampoline_1s2pox8( +external void _13hhotk_protocolTrampoline_w57eou( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - double arg2, ); @ffi.Native< @@ -87,31 +106,12 @@ external ffi.Pointer _13hhotk_protocolTrampoline_1s2pox8( ffi.Pointer, ) >() -external void _13hhotk_protocolTrampoline_8r9qkg( +external void _13hhotk_protocolTrampoline_zzd4sa( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); -@ffi.Native< - ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Int32, - ffi.Int32, - ) ->() -external int _13hhotk_protocolTrampoline_ct0ie0( - ffi.Pointer target, - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, - int arg4, -); - @ffi.Native< ffi.Pointer Function( ffi.Int64, @@ -123,7 +123,7 @@ external int _13hhotk_protocolTrampoline_ct0ie0( >, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapBlockingBlock_18v1jvf( +external ffi.Pointer _13hhotk_wrapBlockingBlock_strl0q( int port, ffi.Pointer context, ffi.Pointer< @@ -143,7 +143,7 @@ external ffi.Pointer _13hhotk_wrapBlockingBlock_18v1jvf( >, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapBlockingBlock_1pbq496( +external ffi.Pointer _13hhotk_wrapBlockingBlock_w57eou( int port, ffi.Pointer context, ffi.Pointer< @@ -163,7 +163,7 @@ external ffi.Pointer _13hhotk_wrapBlockingBlock_1pbq496( >, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapBlockingBlock_8r9qkg( +external ffi.Pointer _13hhotk_wrapBlockingBlock_zzd4sa( int port, ffi.Pointer context, ffi.Pointer< @@ -178,7 +178,7 @@ external ffi.Pointer _13hhotk_wrapBlockingBlock_8r9qkg( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapListenerBlock_18v1jvf( +external ffi.Pointer _13hhotk_wrapListenerBlock_strl0q( int port, ffi.Pointer context, ); @@ -189,7 +189,7 @@ external ffi.Pointer _13hhotk_wrapListenerBlock_18v1jvf( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapListenerBlock_1pbq496( +external ffi.Pointer _13hhotk_wrapListenerBlock_w57eou( int port, ffi.Pointer context, ); @@ -200,7 +200,7 @@ external ffi.Pointer _13hhotk_wrapListenerBlock_1pbq496( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapListenerBlock_8r9qkg( +external ffi.Pointer _13hhotk_wrapListenerBlock_zzd4sa( int port, ffi.Pointer context, ); @@ -241,7 +241,7 @@ extension type EmptyProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [EmptyProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_EmptyProtocol, @@ -312,7 +312,7 @@ extension type MyProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [MyProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_MyProtocol, @@ -330,14 +330,14 @@ extension MyProtocol$Methods on MyProtocol { 'disabledMethod', ); } - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_disabledMethod); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_disabledMethod); } /// instanceMethod:withDouble: objc.NSString instanceMethod(objc.NSString s, {required double withDouble}) { final _$$ref = object$.ref; final _$$ref$1 = s.ref; - final $ret = _objc_msgSend_6plvbo( + final $ret = _objc_msgSend_1embdam( _$$ref.pointer, _sel_instanceMethod_withDouble_, _$$ref$1.pointer, @@ -355,7 +355,7 @@ extension MyProtocol$Methods on MyProtocol { 'intPtrMethod:', ); } - _objc_msgSend_yhkuco(_$$ref.pointer, _sel_intPtrMethod_, ptr); + _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_intPtrMethod_, ptr); } /// objectMethod: @@ -368,7 +368,7 @@ extension MyProtocol$Methods on MyProtocol { 'objectMethod:', ); } - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); } /// optionalMethod: @@ -380,7 +380,7 @@ extension MyProtocol$Methods on MyProtocol { 'optionalMethod:', ); } - return _objc_msgSend_lacj97(_$$ref.pointer, _sel_optionalMethod_, s); + return _objc_msgSend_eu58sw(_$$ref.pointer, _sel_optionalMethod_, s); } /// voidMethod: @@ -392,7 +392,7 @@ extension MyProtocol$Methods on MyProtocol { 'voidMethod:', ); } - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_voidMethod_, x); + _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_voidMethod_, x); } } @@ -608,7 +608,7 @@ interface class MyProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_1d4mjzg) + >(_13hhotk_protocolTrampoline_b3xgmd) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -635,7 +635,7 @@ interface class MyProtocol$Builder { ffi.Double, ) > - >(_13hhotk_protocolTrampoline_1s2pox8) + >(_13hhotk_protocolTrampoline_1ig8rct) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -663,7 +663,7 @@ interface class MyProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_8r9qkg) + >(_13hhotk_protocolTrampoline_zzd4sa) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -701,7 +701,7 @@ interface class MyProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_18v1jvf) + >(_13hhotk_protocolTrampoline_w57eou) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -736,7 +736,7 @@ interface class MyProtocol$Builder { SomeStruct, ) > - >(_13hhotk_protocolTrampoline_1pfwxcz) + >(_13hhotk_protocolTrampoline_1b21v9l) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -763,7 +763,7 @@ interface class MyProtocol$Builder { ffi.Int32, ) > - >(_13hhotk_protocolTrampoline_1pbq496) + >(_13hhotk_protocolTrampoline_strl0q) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -1466,7 +1466,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock, ffi.Int32)>( - objc.newBlockPort(_13hhotk_wrapListenerBlock_1pbq496, ( + objc.newBlockPort(_13hhotk_wrapListenerBlock_strl0q, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1jgz5dp.fromPointer( @@ -1498,7 +1498,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock, ffi.Int32)>( - objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_1pbq496, ( + objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_strl0q, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1jgz5dp.fromPointer( @@ -1664,7 +1664,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_Int32$1 { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, ffi.Pointer) >( - objc.newBlockPort(_13hhotk_wrapListenerBlock_8r9qkg, ( + objc.newBlockPort(_13hhotk_wrapListenerBlock_zzd4sa, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_76xh3h.fromPointer( @@ -1700,7 +1700,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_Int32$1 { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, ffi.Pointer) >( - objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_8r9qkg, ( + objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_zzd4sa, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_76xh3h.fromPointer( @@ -1867,7 +1867,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSObject { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSObject) >( - objc.newBlockPort(_13hhotk_wrapListenerBlock_18v1jvf, ( + objc.newBlockPort(_13hhotk_wrapListenerBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_g8o2nj.fromPointer( @@ -1901,7 +1901,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSObject { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSObject) >( - objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_18v1jvf, ( + objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_w57eou, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_g8o2nj.fromPointer( @@ -2287,7 +2287,7 @@ extension type ObjCProtocolImpl._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ObjCProtocolImpl]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ObjCProtocolImpl, @@ -2295,13 +2295,13 @@ extension type ObjCProtocolImpl._(objc.ObjCObject object$) /// alloc static ObjCProtocolImpl alloc() { - final $ret = _objc_msgSend_151sglz(_class_ObjCProtocolImpl, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_ObjCProtocolImpl, _sel_alloc); return ObjCProtocolImpl.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ObjCProtocolImpl allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ObjCProtocolImpl, _sel_allocWithZone_, zone, @@ -2311,10 +2311,52 @@ extension type ObjCProtocolImpl._(objc.ObjCObject object$) /// new static ObjCProtocolImpl new$() { - final $ret = _objc_msgSend_151sglz(_class_ObjCProtocolImpl, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_ObjCProtocolImpl, _sel_new); return ObjCProtocolImpl.fromPointer($ret, retain: false, release: true); } + /// optionalClassMethod + static int optionalClassMethod() { + if (!objc.respondsToSelector( + _class_ObjCProtocolImpl, + _sel_optionalClassMethod, + )) { + throw objc.UnimplementedOptionalMethodException( + 'ObjCProtocolImpl', + 'optionalClassMethod', + ); + } + return _objc_msgSend_1etqkvi( + _class_ObjCProtocolImpl, + _sel_optionalClassMethod, + ); + } + + /// requiredClassMethod + static int requiredClassMethod() { + return _objc_msgSend_1etqkvi( + _class_ObjCProtocolImpl, + _sel_requiredClassMethod, + ); + } + + /// unimplementedOtionalClassMethod + static int unimplementedOtionalClassMethod() { + if (!objc.respondsToSelector( + _class_ObjCProtocolImpl, + _sel_unimplementedOtionalClassMethod, + )) { + throw objc.UnimplementedOptionalMethodException( + 'ObjCProtocolImpl', + 'unimplementedOtionalClassMethod', + ); + } + return _objc_msgSend_1etqkvi( + _class_ObjCProtocolImpl, + _sel_unimplementedOtionalClassMethod, + ); + } + /// Returns a new instance of ObjCProtocolImpl constructed with the default `new` method. ObjCProtocolImpl() : this.as(new$().object$); } @@ -2329,13 +2371,13 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'disabledMethod', ); } - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_disabledMethod); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_disabledMethod); } /// fooMethod int fooMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_fooMethod); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_fooMethod); } /// init @@ -2346,7 +2388,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -2357,7 +2399,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { objc.NSString instanceMethod(objc.NSString s, {required double withDouble}) { final _$$ref = object$.ref; final _$$ref$1 = s.ref; - final $ret = _objc_msgSend_6plvbo( + final $ret = _objc_msgSend_1embdam( _$$ref.pointer, _sel_instanceMethod_withDouble_, _$$ref$1.pointer, @@ -2375,7 +2417,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'intPtrMethod:', ); } - _objc_msgSend_yhkuco(_$$ref.pointer, _sel_intPtrMethod_, ptr); + _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_intPtrMethod_, ptr); } /// objectMethod: @@ -2388,7 +2430,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'objectMethod:', ); } - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); } /// optionalMethod: @@ -2400,13 +2442,13 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'optionalMethod:', ); } - return _objc_msgSend_lacj97(_$$ref.pointer, _sel_optionalMethod_, s); + return _objc_msgSend_eu58sw(_$$ref.pointer, _sel_optionalMethod_, s); } /// otherMethod:b:c:d: int otherMethod(int a, {required int b, required int c, required int d}) { final _$$ref = object$.ref; - return _objc_msgSend_hv8ra8( + return _objc_msgSend_15m3eka( _$$ref.pointer, _sel_otherMethod_b_c_d_, a, @@ -2425,10 +2467,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'returnsInstanceType', ); } - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_returnsInstanceType, - ); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsInstanceType); return $ret.address == 0 ? null : ObjCProtocolImpl.fromPointer($ret, retain: true, release: true); @@ -2443,7 +2482,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'returnsMyProtocol', ); } - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_returnsMyProtocol); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsMyProtocol); return MyProtocol.fromPointer($ret, retain: true, release: true); } @@ -2456,7 +2495,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'voidMethod:', ); } - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_voidMethod_, x); + _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_voidMethod_, x); } } @@ -2480,7 +2519,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ObjCProtocolImplMissingMethod]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ObjCProtocolImplMissingMethod, @@ -2488,7 +2527,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) /// alloc static ObjCProtocolImplMissingMethod alloc() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_ObjCProtocolImplMissingMethod, _sel_alloc, ); @@ -2503,7 +2542,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) static ObjCProtocolImplMissingMethod allocWithZone( ffi.Pointer zone, ) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ObjCProtocolImplMissingMethod, _sel_allocWithZone_, zone, @@ -2517,7 +2556,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) /// new static ObjCProtocolImplMissingMethod new$() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_ObjCProtocolImplMissingMethod, _sel_new, ); @@ -2528,6 +2567,48 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) ); } + /// optionalClassMethod + static int optionalClassMethod() { + if (!objc.respondsToSelector( + _class_ObjCProtocolImplMissingMethod, + _sel_optionalClassMethod, + )) { + throw objc.UnimplementedOptionalMethodException( + 'ObjCProtocolImplMissingMethod', + 'optionalClassMethod', + ); + } + return _objc_msgSend_1etqkvi( + _class_ObjCProtocolImplMissingMethod, + _sel_optionalClassMethod, + ); + } + + /// requiredClassMethod + static int requiredClassMethod() { + return _objc_msgSend_1etqkvi( + _class_ObjCProtocolImplMissingMethod, + _sel_requiredClassMethod, + ); + } + + /// unimplementedOtionalClassMethod + static int unimplementedOtionalClassMethod() { + if (!objc.respondsToSelector( + _class_ObjCProtocolImplMissingMethod, + _sel_unimplementedOtionalClassMethod, + )) { + throw objc.UnimplementedOptionalMethodException( + 'ObjCProtocolImplMissingMethod', + 'unimplementedOtionalClassMethod', + ); + } + return _objc_msgSend_1etqkvi( + _class_ObjCProtocolImplMissingMethod, + _sel_unimplementedOtionalClassMethod, + ); + } + /// Returns a new instance of ObjCProtocolImplMissingMethod constructed with the default `new` method. ObjCProtocolImplMissingMethod() : this.as(new$().object$); } @@ -2543,7 +2624,7 @@ extension ObjCProtocolImplMissingMethod$Methods 'disabledMethod', ); } - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_disabledMethod); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_disabledMethod); } /// init @@ -2554,7 +2635,7 @@ extension ObjCProtocolImplMissingMethod$Methods iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -2569,7 +2650,7 @@ extension ObjCProtocolImplMissingMethod$Methods objc.NSString instanceMethod(objc.NSString s, {required double withDouble}) { final _$$ref = object$.ref; final _$$ref$1 = s.ref; - final $ret = _objc_msgSend_6plvbo( + final $ret = _objc_msgSend_1embdam( _$$ref.pointer, _sel_instanceMethod_withDouble_, _$$ref$1.pointer, @@ -2587,7 +2668,7 @@ extension ObjCProtocolImplMissingMethod$Methods 'intPtrMethod:', ); } - _objc_msgSend_yhkuco(_$$ref.pointer, _sel_intPtrMethod_, ptr); + _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_intPtrMethod_, ptr); } /// objectMethod: @@ -2600,7 +2681,7 @@ extension ObjCProtocolImplMissingMethod$Methods 'objectMethod:', ); } - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); } /// optionalMethod: @@ -2612,7 +2693,7 @@ extension ObjCProtocolImplMissingMethod$Methods 'optionalMethod:', ); } - return _objc_msgSend_lacj97(_$$ref.pointer, _sel_optionalMethod_, s); + return _objc_msgSend_eu58sw(_$$ref.pointer, _sel_optionalMethod_, s); } /// voidMethod: @@ -2624,7 +2705,7 @@ extension ObjCProtocolImplMissingMethod$Methods 'voidMethod:', ); } - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_voidMethod_, x); + _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_voidMethod_, x); } } @@ -2648,7 +2729,7 @@ extension type ProtocolConsumer._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ProtocolConsumer]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_ProtocolConsumer, @@ -2656,13 +2737,13 @@ extension type ProtocolConsumer._(objc.ObjCObject object$) /// alloc static ProtocolConsumer alloc() { - final $ret = _objc_msgSend_151sglz(_class_ProtocolConsumer, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_ProtocolConsumer, _sel_alloc); return ProtocolConsumer.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ProtocolConsumer allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_ProtocolConsumer, _sel_allocWithZone_, zone, @@ -2672,7 +2753,7 @@ extension type ProtocolConsumer._(objc.ObjCObject object$) /// new static ProtocolConsumer new$() { - final $ret = _objc_msgSend_151sglz(_class_ProtocolConsumer, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_ProtocolConsumer, _sel_new); return ProtocolConsumer.fromPointer($ret, retain: false, release: true); } @@ -2685,7 +2766,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { void callBlockingMethodOnRandomThread(MyProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_callBlockingMethodOnRandomThread_, _$$ref$1.pointer, @@ -2696,7 +2777,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { objc.NSString callInstanceMethod(SuperProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.pointer, _sel_callInstanceMethod_, _$$ref$1.pointer, @@ -2708,7 +2789,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { void callMethodOnRandomThread(MyProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_callMethodOnRandomThread_, _$$ref$1.pointer, @@ -2719,7 +2800,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { int callOptionalMethod(MyProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - return _objc_msgSend_fd28sq( + return _objc_msgSend_ml5svd( _$$ref.pointer, _sel_callOptionalMethod_, _$$ref$1.pointer, @@ -2730,7 +2811,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { int callOtherMethod(SecondaryProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - return _objc_msgSend_fd28sq( + return _objc_msgSend_ml5svd( _$$ref.pointer, _sel_callOtherMethod_, _$$ref$1.pointer, @@ -2741,7 +2822,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { int callTwoMethods(MyProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - return _objc_msgSend_fd28sq( + return _objc_msgSend_ml5svd( _$$ref.pointer, _sel_callTwoMethods_, _$$ref$1.pointer, @@ -2756,7 +2837,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -2779,7 +2860,7 @@ extension type SecondaryProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [SecondaryProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_SecondaryProtocol, @@ -2791,7 +2872,7 @@ extension SecondaryProtocol$Methods on SecondaryProtocol { /// otherMethod:b:c:d: int otherMethod(int a, {required int b, required int c, required int d}) { final _$$ref = object$.ref; - return _objc_msgSend_hv8ra8( + return _objc_msgSend_15m3eka( _$$ref.pointer, _sel_otherMethod_b_c_d_, a, @@ -2810,10 +2891,7 @@ extension SecondaryProtocol$Methods on SecondaryProtocol { 'returnsInstanceType', ); } - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_returnsInstanceType, - ); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsInstanceType); return $ret.address == 0 ? null : SecondaryProtocol.fromPointer($ret, retain: true, release: true); @@ -2828,7 +2906,7 @@ extension SecondaryProtocol$Methods on SecondaryProtocol { 'returnsMyProtocol', ); } - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_returnsMyProtocol); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsMyProtocol); return MyProtocol.fromPointer($ret, retain: true, release: true); } } @@ -2910,7 +2988,7 @@ interface class SecondaryProtocol$Builder { ffi.Int32, ) > - >(_13hhotk_protocolTrampoline_ct0ie0) + >(_13hhotk_protocolTrampoline_vbq37t) .cast(), objc.getProtocolMethodSignature( _protocol_SecondaryProtocol, @@ -2942,7 +3020,7 @@ interface class SecondaryProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_1mbt9g9) + >(_13hhotk_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_SecondaryProtocol, @@ -2968,7 +3046,7 @@ interface class SecondaryProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_1mbt9g9) + >(_13hhotk_protocolTrampoline_1jnam6p) .cast(), objc.getProtocolMethodSignature( _protocol_SecondaryProtocol, @@ -3031,7 +3109,7 @@ extension type UnusedProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [UnusedProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_UnusedProtocol, @@ -3043,7 +3121,7 @@ extension UnusedProtocol$Methods on UnusedProtocol { /// someMethod int someMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_someMethod); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_someMethod); } } @@ -3093,7 +3171,7 @@ interface class UnusedProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_1d4mjzg) + >(_13hhotk_protocolTrampoline_b3xgmd) .cast(), objc.getProtocolMethodSignature( _protocol_UnusedProtocol, @@ -3126,7 +3204,7 @@ extension type _BlockArgs_1jgz5dp._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1jgz5dp]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1jgz5dp, @@ -3136,12 +3214,12 @@ extension type _BlockArgs_1jgz5dp._(objc.ObjCObject object$) extension _BlockArgs_1jgz5dp$Methods on _BlockArgs_1jgz5dp { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } int get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_arg1); } } @@ -3164,7 +3242,7 @@ extension type _BlockArgs_76xh3h._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_76xh3h]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_76xh3h, @@ -3174,12 +3252,12 @@ extension type _BlockArgs_76xh3h._(objc.ObjCObject object$) extension _BlockArgs_76xh3h$Methods on _BlockArgs_76xh3h { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } ffi.Pointer get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_obqqme(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_8s7612(_$$ref.pointer, _sel_arg1); } } @@ -3202,7 +3280,7 @@ extension type _BlockArgs_g8o2nj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_g8o2nj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_g8o2nj, @@ -3212,12 +3290,12 @@ extension type _BlockArgs_g8o2nj._(objc.ObjCObject object$) extension _BlockArgs_g8o2nj$Methods on _BlockArgs_g8o2nj { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); } objc.NSObject get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); return objc.NSObject.fromPointer($ret, retain: true, release: true); } } @@ -3254,54 +3332,62 @@ final _class_ProtocolConsumer = objc.getClass( ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_1pbq496', + symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_strl0q', ) external ffi.Pointer _class__BlockArgs_1jgz5dp_raw; final _class__BlockArgs_1jgz5dp = objc.getClass( - "_13hhotk_BlockArgs_1pbq496", + "_13hhotk_BlockArgs_strl0q", () => ffi.Native.addressOf>( _class__BlockArgs_1jgz5dp_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_8r9qkg', + symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_zzd4sa', ) external ffi.Pointer _class__BlockArgs_76xh3h_raw; final _class__BlockArgs_76xh3h = objc.getClass( - "_13hhotk_BlockArgs_8r9qkg", + "_13hhotk_BlockArgs_zzd4sa", () => ffi.Native.addressOf>( _class__BlockArgs_76xh3h_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_18v1jvf', + symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_w57eou', ) external ffi.Pointer _class__BlockArgs_g8o2nj_raw; final _class__BlockArgs_g8o2nj = objc.getClass( - "_13hhotk_BlockArgs_18v1jvf", + "_13hhotk_BlockArgs_w57eou", () => ffi.Native.addressOf>( _class__BlockArgs_g8o2nj_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_15m3eka = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Int32, + ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + int, + int, + int, + int, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1d1siln = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -3309,62 +3395,64 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer +final _objc_msgSend_1embdam = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, + ffi.Double, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, + double, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_1f6q4sj = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_1sotr3r = objc.msgSendPointer +final _objc_msgSend_1ffzwv1 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -3381,41 +3469,41 @@ final _objc_msgSend_1sotr3r = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_6ex6p5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_6plvbo = objc.msgSendPointer +final _objc_msgSend_1vg1ydp = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Double, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - double, + ffi.Pointer, ) >(); -final _objc_msgSend_e3qsqz = objc.msgSendPointer +final _objc_msgSend_441sd9 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -3432,47 +3520,37 @@ final _objc_msgSend_e3qsqz = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_fd28sq = objc.msgSendPointer +final _objc_msgSend_8s7612 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_hv8ra8 = objc.msgSendPointer +final _objc_msgSend_eloak0 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Int32, - ffi.Int32, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, - int, - int, - int, ) >(); -final _objc_msgSend_lacj97 = objc.msgSendPointer +final _objc_msgSend_eu58sw = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Int32 Function( @@ -3489,25 +3567,27 @@ final _objc_msgSend_lacj97 = objc.msgSendPointer SomeStruct, ) >(); -final _objc_msgSend_obqqme = objc.msgSendPointer +final _objc_msgSend_ml5svd = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -3515,27 +3595,25 @@ final _objc_msgSend_xtuoz7 = objc.msgSendPointer > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_yhkuco = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); @ffi.Native Function()>( @@ -3595,11 +3673,16 @@ late final _sel_intPtrMethod_ = objc.registerName("intPtrMethod:"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); late final _sel_objectMethod_ = objc.registerName("objectMethod:"); +late final _sel_optionalClassMethod = objc.registerName("optionalClassMethod"); late final _sel_optionalMethod_ = objc.registerName("optionalMethod:"); late final _sel_otherMethod_b_c_d_ = objc.registerName("otherMethod:b:c:d:"); +late final _sel_requiredClassMethod = objc.registerName("requiredClassMethod"); late final _sel_returnsInstanceType = objc.registerName("returnsInstanceType"); late final _sel_returnsMyProtocol = objc.registerName("returnsMyProtocol"); late final _sel_someMethod = objc.registerName("someMethod"); +late final _sel_unimplementedOtionalClassMethod = objc.registerName( + "unimplementedOtionalClassMethod", +); late final _sel_voidMethod_ = objc.registerName("voidMethod:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.m b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.m index 21ddff9ebb..ae225207e4 100644 --- a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.m @@ -64,45 +64,45 @@ typedef int32_t (^_ProtocolTrampoline)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -int32_t _13hhotk_protocolTrampoline_1d4mjzg(id target, void * sel) { +int32_t _13hhotk_protocolTrampoline_b3xgmd(id target, void * sel) { return ((_ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } typedef int32_t (^_ProtocolTrampoline_1)(void * sel, int32_t arg1, int32_t arg2, int32_t arg3, int32_t arg4); __attribute__((visibility("default"))) __attribute__((used)) -int32_t _13hhotk_protocolTrampoline_ct0ie0(id target, void * sel, int32_t arg1, int32_t arg2, int32_t arg3, int32_t arg4) { +int32_t _13hhotk_protocolTrampoline_vbq37t(id target, void * sel, int32_t arg1, int32_t arg2, int32_t arg3, int32_t arg4) { return ((_ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); } typedef int32_t (^_ProtocolTrampoline_2)(void * sel, SomeStruct arg1); __attribute__((visibility("default"))) __attribute__((used)) -int32_t _13hhotk_protocolTrampoline_1pfwxcz(id target, void * sel, SomeStruct arg1) { +int32_t _13hhotk_protocolTrampoline_1b21v9l(id target, void * sel, SomeStruct arg1) { return ((_ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } typedef id (^_ProtocolTrampoline_3)(void * sel, id arg1, double arg2); __attribute__((visibility("default"))) __attribute__((used)) -id _13hhotk_protocolTrampoline_1s2pox8(id target, void * sel, id arg1, double arg2) { +id _13hhotk_protocolTrampoline_1ig8rct(id target, void * sel, id arg1, double arg2) { return ((_ProtocolTrampoline_3)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); } __attribute__((visibility("default"))) -@interface _13hhotk_BlockArgs_1pbq496 : NSObject +@interface _13hhotk_BlockArgs_strl0q : NSObject @property (copy) id block; @property void * arg0; @property int32_t arg1; @end -@implementation _13hhotk_BlockArgs_1pbq496 +@implementation _13hhotk_BlockArgs_strl0q @end typedef void (^_ListenerTrampoline)(void * arg0, int32_t arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _13hhotk_wrapListenerBlock_1pbq496( +_ListenerTrampoline _13hhotk_wrapListenerBlock_strl0q( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline weakSelfBlock = nil; _ListenerTrampoline strongSelfBlock = [^void(void * arg0, int32_t arg1) { @autoreleasepool { - _13hhotk_BlockArgs_1pbq496* args = [[_13hhotk_BlockArgs_1pbq496 alloc] init]; + _13hhotk_BlockArgs_strl0q* args = [[_13hhotk_BlockArgs_strl0q alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -115,11 +115,11 @@ _ListenerTrampoline _13hhotk_wrapListenerBlock_1pbq496( typedef void (^_BlockingTrampoline)(void * waiter, void * arg0, int32_t arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _13hhotk_wrapBlockingBlock_1pbq496(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline _13hhotk_wrapBlockingBlock_strl0q(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(void * arg0, int32_t arg1), { @autoreleasepool { - _13hhotk_BlockArgs_1pbq496* args = [[_13hhotk_BlockArgs_1pbq496 alloc] init]; + _13hhotk_BlockArgs_strl0q* args = [[_13hhotk_BlockArgs_strl0q alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -127,7 +127,7 @@ _ListenerTrampoline _13hhotk_wrapBlockingBlock_1pbq496(int64_t port, DOBJC_Conte } }, { @autoreleasepool { - _13hhotk_BlockArgs_1pbq496* args = [[_13hhotk_BlockArgs_1pbq496 alloc] init]; + _13hhotk_BlockArgs_strl0q* args = [[_13hhotk_BlockArgs_strl0q alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -138,27 +138,27 @@ _ListenerTrampoline _13hhotk_wrapBlockingBlock_1pbq496(int64_t port, DOBJC_Conte typedef void (^_ProtocolTrampoline_4)(void * sel, int32_t arg1); __attribute__((visibility("default"))) __attribute__((used)) -void _13hhotk_protocolTrampoline_1pbq496(id target, void * sel, int32_t arg1) { +void _13hhotk_protocolTrampoline_strl0q(id target, void * sel, int32_t arg1) { return ((_ProtocolTrampoline_4)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } __attribute__((visibility("default"))) -@interface _13hhotk_BlockArgs_8r9qkg : NSObject +@interface _13hhotk_BlockArgs_zzd4sa : NSObject @property (copy) id block; @property void * arg0; @property int32_t * arg1; @end -@implementation _13hhotk_BlockArgs_8r9qkg +@implementation _13hhotk_BlockArgs_zzd4sa @end typedef void (^_ListenerTrampoline_1)(void * arg0, int32_t * arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _13hhotk_wrapListenerBlock_8r9qkg( +_ListenerTrampoline_1 _13hhotk_wrapListenerBlock_zzd4sa( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_1 weakSelfBlock = nil; _ListenerTrampoline_1 strongSelfBlock = [^void(void * arg0, int32_t * arg1) { @autoreleasepool { - _13hhotk_BlockArgs_8r9qkg* args = [[_13hhotk_BlockArgs_8r9qkg alloc] init]; + _13hhotk_BlockArgs_zzd4sa* args = [[_13hhotk_BlockArgs_zzd4sa alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -171,11 +171,11 @@ _ListenerTrampoline_1 _13hhotk_wrapListenerBlock_8r9qkg( typedef void (^_BlockingTrampoline_1)(void * waiter, void * arg0, int32_t * arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _13hhotk_wrapBlockingBlock_8r9qkg(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_1 _13hhotk_wrapBlockingBlock_zzd4sa(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_1, ^void(void * arg0, int32_t * arg1), { @autoreleasepool { - _13hhotk_BlockArgs_8r9qkg* args = [[_13hhotk_BlockArgs_8r9qkg alloc] init]; + _13hhotk_BlockArgs_zzd4sa* args = [[_13hhotk_BlockArgs_zzd4sa alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -183,7 +183,7 @@ _ListenerTrampoline_1 _13hhotk_wrapBlockingBlock_8r9qkg(int64_t port, DOBJC_Cont } }, { @autoreleasepool { - _13hhotk_BlockArgs_8r9qkg* args = [[_13hhotk_BlockArgs_8r9qkg alloc] init]; + _13hhotk_BlockArgs_zzd4sa* args = [[_13hhotk_BlockArgs_zzd4sa alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -194,27 +194,27 @@ _ListenerTrampoline_1 _13hhotk_wrapBlockingBlock_8r9qkg(int64_t port, DOBJC_Cont typedef void (^_ProtocolTrampoline_5)(void * sel, int32_t * arg1); __attribute__((visibility("default"))) __attribute__((used)) -void _13hhotk_protocolTrampoline_8r9qkg(id target, void * sel, int32_t * arg1) { +void _13hhotk_protocolTrampoline_zzd4sa(id target, void * sel, int32_t * arg1) { return ((_ProtocolTrampoline_5)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } __attribute__((visibility("default"))) -@interface _13hhotk_BlockArgs_18v1jvf : NSObject +@interface _13hhotk_BlockArgs_w57eou : NSObject @property (copy) id block; @property void * arg0; @property (strong) id arg1; @end -@implementation _13hhotk_BlockArgs_18v1jvf +@implementation _13hhotk_BlockArgs_w57eou @end typedef void (^_ListenerTrampoline_2)(void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _13hhotk_wrapListenerBlock_18v1jvf( +_ListenerTrampoline_2 _13hhotk_wrapListenerBlock_w57eou( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_2 weakSelfBlock = nil; _ListenerTrampoline_2 strongSelfBlock = [^void(void * arg0, id arg1) { @autoreleasepool { - _13hhotk_BlockArgs_18v1jvf* args = [[_13hhotk_BlockArgs_18v1jvf alloc] init]; + _13hhotk_BlockArgs_w57eou* args = [[_13hhotk_BlockArgs_w57eou alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -227,11 +227,11 @@ _ListenerTrampoline_2 _13hhotk_wrapListenerBlock_18v1jvf( typedef void (^_BlockingTrampoline_2)(void * waiter, void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _13hhotk_wrapBlockingBlock_18v1jvf(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_2 _13hhotk_wrapBlockingBlock_w57eou(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_2, ^void(void * arg0, id arg1), { @autoreleasepool { - _13hhotk_BlockArgs_18v1jvf* args = [[_13hhotk_BlockArgs_18v1jvf alloc] init]; + _13hhotk_BlockArgs_w57eou* args = [[_13hhotk_BlockArgs_w57eou alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -239,7 +239,7 @@ _ListenerTrampoline_2 _13hhotk_wrapBlockingBlock_18v1jvf(int64_t port, DOBJC_Con } }, { @autoreleasepool { - _13hhotk_BlockArgs_18v1jvf* args = [[_13hhotk_BlockArgs_18v1jvf alloc] init]; + _13hhotk_BlockArgs_w57eou* args = [[_13hhotk_BlockArgs_w57eou alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -250,13 +250,13 @@ _ListenerTrampoline_2 _13hhotk_wrapBlockingBlock_18v1jvf(int64_t port, DOBJC_Con typedef void (^_ProtocolTrampoline_6)(void * sel, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -void _13hhotk_protocolTrampoline_18v1jvf(id target, void * sel, id arg1) { +void _13hhotk_protocolTrampoline_w57eou(id target, void * sel, id arg1) { return ((_ProtocolTrampoline_6)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } typedef id (^_ProtocolTrampoline_7)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -id _13hhotk_protocolTrampoline_1mbt9g9(id target, void * sel) { +id _13hhotk_protocolTrampoline_1jnam6p(id target, void * sel) { return ((_ProtocolTrampoline_7)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } diff --git a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart index 79e372972b..60bee8c44a 100644 --- a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -36,7 +36,7 @@ extension type RefCountTestObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [RefCountTestObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_RefCountTestObject, @@ -44,13 +44,13 @@ extension type RefCountTestObject._(objc.ObjCObject object$) /// alloc static RefCountTestObject alloc() { - final $ret = _objc_msgSend_151sglz(_class_RefCountTestObject, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_RefCountTestObject, _sel_alloc); return RefCountTestObject.fromPointer($ret, retain: false, release: true); } /// allocTheThing static RefCountTestObject allocTheThing() { - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _class_RefCountTestObject, _sel_allocTheThing, ); @@ -59,7 +59,7 @@ extension type RefCountTestObject._(objc.ObjCObject object$) /// allocWithZone: static RefCountTestObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_RefCountTestObject, _sel_allocWithZone_, zone, @@ -70,7 +70,7 @@ extension type RefCountTestObject._(objc.ObjCObject object$) /// consumeArg: static void consumeArg(RefCountTestObject arg) { final _$$ref = arg.ref; - _objc_msgSend_4js6t( + _objc_msgSend_1f0326b( _class_RefCountTestObject, _sel_consumeArg_, _$$ref.retainAndReturnPointer(), @@ -81,7 +81,7 @@ extension type RefCountTestObject._(objc.ObjCObject object$) static RefCountTestObject makeAndAutorelease( ffi.Pointer _counter, ) { - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _class_RefCountTestObject, _sel_makeAndAutorelease_, _counter, @@ -91,13 +91,13 @@ extension type RefCountTestObject._(objc.ObjCObject object$) /// new static RefCountTestObject new$() { - final $ret = _objc_msgSend_151sglz(_class_RefCountTestObject, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_RefCountTestObject, _sel_new); return RefCountTestObject.fromPointer($ret, retain: false, release: true); } /// newWithCounter: static RefCountTestObject newWithCounter(ffi.Pointer _counter) { - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _class_RefCountTestObject, _sel_newWithCounter_, _counter, @@ -113,35 +113,35 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// assignedProperty RefCountTestObject get assignedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_assignedProperty); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_assignedProperty); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } /// copiedProperty RefCountTestObject get copiedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copiedProperty); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copiedProperty); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } /// copyMe RefCountTestObject copyMe() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMe); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMe); return RefCountTestObject.fromPointer($ret, retain: false, release: true); } /// copyMeAutorelease RefCountTestObject copyMeAutorelease() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMeAutorelease); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMeAutorelease); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } /// copyMeConsumeSelf RefCountTestObject copyMeConsumeSelf() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_copyMeConsumeSelf, ); @@ -151,14 +151,14 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// copyMeNoRetain RefCountTestObject copyMeNoRetain() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMeNoRetain); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMeNoRetain); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } /// copyWithZone: objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _$$ref.pointer, _sel_copyWithZone_, zone, @@ -169,7 +169,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// dealloc void dealloc() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_dealloc); } /// init @@ -180,7 +180,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -190,7 +190,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// initWithCounter: RefCountTestObject initWithCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _$$ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter, @@ -201,21 +201,21 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// mutableCopyMe RefCountTestObject mutableCopyMe() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_mutableCopyMe); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_mutableCopyMe); return RefCountTestObject.fromPointer($ret, retain: false, release: true); } /// retainedProperty RefCountTestObject get retainedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_retainedProperty); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_retainedProperty); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } /// returnsRetained RefCountTestObject returnsRetained() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_returnsRetained); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsRetained); return RefCountTestObject.fromPointer($ret, retain: false, release: true); } @@ -223,7 +223,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { set assignedProperty(RefCountTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setAssignedProperty_, _$$ref$1.pointer, @@ -234,7 +234,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { set copiedProperty(RefCountTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setCopiedProperty_, _$$ref$1.pointer, @@ -244,14 +244,14 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// setCounter: void setCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - _objc_msgSend_yhkuco(_$$ref.pointer, _sel_setCounter_, _counter); + _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_setCounter_, _counter); } /// setRetainedProperty: set retainedProperty(RefCountTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setRetainedProperty_, _$$ref$1.pointer, @@ -261,7 +261,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// unownedReference RefCountTestObject unownedReference() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_unownedReference); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_unownedReference); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } } @@ -286,7 +286,7 @@ extension type RefCounted._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [RefCounted]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_RefCounted, @@ -294,13 +294,13 @@ extension type RefCounted._(objc.ObjCObject object$) /// alloc static RefCounted alloc() { - final $ret = _objc_msgSend_151sglz(_class_RefCounted, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_RefCounted, _sel_alloc); return RefCounted.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static RefCounted allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_RefCounted, _sel_allocWithZone_, zone, @@ -310,7 +310,7 @@ extension type RefCounted._(objc.ObjCObject object$) /// new static RefCounted new$() { - final $ret = _objc_msgSend_151sglz(_class_RefCounted, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_RefCounted, _sel_new); return RefCounted.fromPointer($ret, retain: false, release: true); } @@ -327,7 +327,7 @@ extension RefCounted$Methods on RefCounted { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -337,13 +337,13 @@ extension RefCounted$Methods on RefCounted { /// meAsInt int meAsInt() { final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_meAsInt); + return _objc_msgSend_dute2g(_$$ref.pointer, _sel_meAsInt); } /// refCount int get refCount { final _$$ref = object$.ref; - return _objc_msgSend_9qbz9w(_$$ref.pointer, _sel_refCount); + return _objc_msgSend_1if3gfg(_$$ref.pointer, _sel_refCount); } } @@ -367,94 +367,96 @@ final _class_RefCounted = objc.getClass( _class_RefCounted_raw, ).cast(), ); -final _objc_msgSend_129vhbw = objc.msgSendPointer +final _objc_msgSend_1d1siln = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1f0326b = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1if3gfg = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Uint64 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer +final _objc_msgSend_1uw8y6v = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_4js6t = objc.msgSendPointer +final _objc_msgSend_1vg1ydp = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -462,13 +464,13 @@ final _objc_msgSend_4js6t = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_9qbz9w = objc.msgSendPointer +final _objc_msgSend_dute2g = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Uint64 Function( + ffi.Int64 Function( ffi.Pointer, ffi.Pointer, ) @@ -480,25 +482,25 @@ final _objc_msgSend_9qbz9w = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_pysgoz = objc.msgSendPointer +final _objc_msgSend_h9i570 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int64 Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -506,27 +508,25 @@ final _objc_msgSend_xtuoz7 = objc.msgSendPointer > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_yhkuco = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart index ea453eea06..a571ab370e 100644 --- a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -33,7 +33,7 @@ extension type Renamed._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Renamed]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_Renamed, @@ -41,13 +41,13 @@ extension type Renamed._(objc.ObjCObject object$) /// alloc static Renamed alloc() { - final $ret = _objc_msgSend_151sglz(_class_Renamed, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_Renamed, _sel_alloc); return Renamed.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Renamed allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_Renamed, _sel_allocWithZone_, zone, @@ -57,7 +57,7 @@ extension type Renamed._(objc.ObjCObject object$) /// new static Renamed new$() { - final $ret = _objc_msgSend_151sglz(_class_Renamed, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_Renamed, _sel_new); return Renamed.fromPointer($ret, retain: false, release: true); } @@ -69,7 +69,7 @@ extension Renamed$Methods on Renamed { /// CollidingStructName int CollidingStructName$1() { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_CollidingStructName); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_CollidingStructName); } /// init @@ -80,7 +80,7 @@ extension Renamed$Methods on Renamed { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -90,13 +90,13 @@ extension Renamed$Methods on Renamed { /// property int get property { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_property); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_property); } /// renamedMethod:otherArg: int fooBarBaz(int x, {required int otherArg}) { final _$$ref = object$.ref; - return _objc_msgSend_1q0lyci( + return _objc_msgSend_as7aj8( _$$ref.pointer, _sel_renamedMethod_otherArg_, x, @@ -107,25 +107,25 @@ extension Renamed$Methods on Renamed { /// renamedProperty int get reProp { final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_renamedProperty); + return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_renamedProperty); } /// setProperty: set property(int value) { final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setProperty_, value); + _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setProperty_, value); } /// setRenamedProperty: set reProp(int value) { final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setRenamedProperty_, value); + _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setRenamedProperty_, value); } /// toString objc.NSString toString$1() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_toString); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_toString); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -138,104 +138,104 @@ final _class_Renamed = objc.getClass( _class_Renamed_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1etqkvi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1f6q4sj = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_as7aj8 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, + ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, + int, ) >(); -final _objc_msgSend_1gcq84o = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1q0lyci = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, - int, ) >(); late final _sel_CollidingStructName = objc.registerName("CollidingStructName"); diff --git a/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart index 8dfee2df47..26a7187ca2 100644 --- a/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart @@ -3,7 +3,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -24,7 +24,7 @@ extension FutureAPICategoryMethods on objc.NSObject { iOS: (false, (1000, 0, 0)), macOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catFutureMethodBoth); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catFutureMethodBoth); } /// catFutureMethodIos @@ -35,7 +35,7 @@ extension FutureAPICategoryMethods on objc.NSObject { 'NSObject.catFutureMethodIos', iOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catFutureMethodIos); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catFutureMethodIos); } /// catFutureMethodMac @@ -46,7 +46,7 @@ extension FutureAPICategoryMethods on objc.NSObject { 'NSObject.catFutureMethodMac', macOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catFutureMethodMac); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catFutureMethodMac); } /// catUnavailableBoth @@ -57,7 +57,7 @@ extension FutureAPICategoryMethods on objc.NSObject { iOS: (true, null), macOS: (true, null), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catUnavailableBoth); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catUnavailableBoth); } /// catUnavailableIos @@ -67,7 +67,7 @@ extension FutureAPICategoryMethods on objc.NSObject { 'NSObject.catUnavailableIos', iOS: (true, null), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catUnavailableIos); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catUnavailableIos); } /// catUnavailableMac @@ -77,7 +77,7 @@ extension FutureAPICategoryMethods on objc.NSObject { 'NSObject.catUnavailableMac', macOS: (true, null), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catUnavailableMac); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catUnavailableMac); } } @@ -112,7 +112,7 @@ extension type FutureAPIInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [FutureAPIInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_FutureAPIInterface, @@ -120,13 +120,13 @@ extension type FutureAPIInterface._(objc.ObjCObject object$) /// alloc static FutureAPIInterface alloc() { - final $ret = _objc_msgSend_151sglz(_class_FutureAPIInterface, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_FutureAPIInterface, _sel_alloc); return FutureAPIInterface.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static FutureAPIInterface allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_FutureAPIInterface, _sel_allocWithZone_, zone, @@ -136,7 +136,7 @@ extension type FutureAPIInterface._(objc.ObjCObject object$) /// new static FutureAPIInterface new$() { - final $ret = _objc_msgSend_151sglz(_class_FutureAPIInterface, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_FutureAPIInterface, _sel_new); return FutureAPIInterface.fromPointer($ret, retain: false, release: true); } @@ -153,7 +153,7 @@ extension FutureAPIInterface$Methods on FutureAPIInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -181,7 +181,7 @@ extension type FutureAPIMethods._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [FutureAPIMethods]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_FutureAPIMethods, @@ -189,13 +189,13 @@ extension type FutureAPIMethods._(objc.ObjCObject object$) /// alloc static FutureAPIMethods alloc() { - final $ret = _objc_msgSend_151sglz(_class_FutureAPIMethods, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_FutureAPIMethods, _sel_alloc); return FutureAPIMethods.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static FutureAPIMethods allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_FutureAPIMethods, _sel_allocWithZone_, zone, @@ -205,7 +205,7 @@ extension type FutureAPIMethods._(objc.ObjCObject object$) /// new static FutureAPIMethods new$() { - final $ret = _objc_msgSend_151sglz(_class_FutureAPIMethods, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_FutureAPIMethods, _sel_new); return FutureAPIMethods.fromPointer($ret, retain: false, release: true); } @@ -223,7 +223,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { iOS: (false, (1000, 0, 0)), macOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_futureMethodBoth); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_futureMethodBoth); } /// futureMethodIos @@ -234,7 +234,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { 'FutureAPIMethods.futureMethodIos', iOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_futureMethodIos); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_futureMethodIos); } /// futureMethodMac @@ -245,7 +245,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { 'FutureAPIMethods.futureMethodMac', macOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_futureMethodMac); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_futureMethodMac); } /// init @@ -256,7 +256,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -271,7 +271,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { iOS: (true, null), macOS: (true, null), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_unavailableBoth); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_unavailableBoth); } /// unavailableIos @@ -281,7 +281,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { 'FutureAPIMethods.unavailableIos', iOS: (true, null), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_unavailableIos); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_unavailableIos); } /// unavailableMac @@ -291,7 +291,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { 'FutureAPIMethods.unavailableMac', macOS: (true, null), ); - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_unavailableMac); + return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_unavailableMac); } } @@ -323,7 +323,7 @@ final _class_NSObject = objc.getClass( _class_NSObject_raw, ).cast(), ); -final _objc_msgSend_13yqbb6 = objc.msgSendPointer +final _objc_msgSend_1bw3upc = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Int Function( @@ -338,12 +338,13 @@ final _objc_msgSend_13yqbb6 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -351,9 +352,10 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -370,13 +372,12 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -384,7 +385,6 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart index c9c0a6d438..5a6a5757fe 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -184,7 +184,7 @@ extension type NSColorPicker._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NSColorPicker]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_NSColorPicker, @@ -192,13 +192,13 @@ extension type NSColorPicker._(objc.ObjCObject object$) /// alloc static NSColorPicker alloc() { - final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_NSColorPicker, _sel_alloc); return NSColorPicker.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NSColorPicker allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_NSColorPicker, _sel_allocWithZone_, zone, @@ -208,7 +208,7 @@ extension type NSColorPicker._(objc.ObjCObject object$) /// new static NSColorPicker new$() { - final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_NSColorPicker, _sel_new); return NSColorPicker.fromPointer($ret, retain: false, release: true); } @@ -225,7 +225,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.alphaControlAddedOrRemoved:', iOS: (true, null), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_alphaControlAddedOrRemoved_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -240,7 +240,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.attachColorList:', iOS: (true, null), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_attachColorList_, _$$ref$1.pointer, @@ -254,7 +254,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.buttonToolTip', iOS: (true, null), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_buttonToolTip); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_buttonToolTip); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -262,7 +262,7 @@ extension NSColorPicker$Methods on NSColorPicker { NSColorPanel get colorPanel { final _$$ref = object$.ref; objc.checkOsVersionInternal('NSColorPicker.colorPanel', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_colorPanel); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_colorPanel); return NSColorPanel.fromPointer($ret, retain: true, release: true); } @@ -274,7 +274,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.detachColorList:', iOS: (true, null), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_detachColorList_, _$$ref$1.pointer, @@ -289,7 +289,7 @@ extension NSColorPicker$Methods on NSColorPicker { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -307,7 +307,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.initWithPickerMask:colorPanel:', iOS: (true, null), ); - final $ret = _objc_msgSend_vbc8p4( + final $ret = _objc_msgSend_1n14wj8( _$$ref.retainAndReturnPointer(), _sel_initWithPickerMask_colorPanel_, mask, @@ -330,7 +330,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.insertNewButtonImage:in:', iOS: (true, null), ); - _objc_msgSend_pfv6jd( + _objc_msgSend_1k6sg8i( _$$ref.pointer, _sel_insertNewButtonImage_in_, _$$ref$1.pointer, @@ -347,8 +347,8 @@ extension NSColorPicker$Methods on NSColorPicker { ); final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_minContentSize) - : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_minContentSize); + ? _objc_msgSend_wke702Stret($ptr, _$$ref.pointer, _sel_minContentSize) + : $ptr.ref = _objc_msgSend_wke702(_$$ref.pointer, _sel_minContentSize); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -363,7 +363,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.provideNewButtonImage', iOS: (true, null), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.pointer, _sel_provideNewButtonImage, ); @@ -374,7 +374,7 @@ extension NSColorPicker$Methods on NSColorPicker { void setMode(NSColorPanelMode mode) { final _$$ref = object$.ref; objc.checkOsVersionInternal('NSColorPicker.setMode:', iOS: (true, null)); - _objc_msgSend_190ea64(_$$ref.pointer, _sel_setMode_, mode.value); + _objc_msgSend_1oo645y(_$$ref.pointer, _sel_setMode_, mode.value); } /// viewSizeChanged: @@ -385,7 +385,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.viewSizeChanged:', iOS: (true, null), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_viewSizeChanged_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -519,7 +519,7 @@ extension type NSTextList._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NSTextList]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_NSTextList, @@ -527,13 +527,13 @@ extension type NSTextList._(objc.ObjCObject object$) /// alloc static NSTextList alloc() { - final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_NSTextList, _sel_alloc); return NSTextList.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NSTextList allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_NSTextList, _sel_allocWithZone_, zone, @@ -543,10 +543,15 @@ extension type NSTextList._(objc.ObjCObject object$) /// new static NSTextList new$() { - final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_NSTextList, _sel_new); return NSTextList.fromPointer($ret, retain: false, release: true); } + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_13h8okt(_class_NSTextList, _sel_supportsSecureCoding); + } + /// Returns a new instance of NSTextList constructed with the default `new` method. NSTextList() : this.as(new$().object$); } @@ -556,7 +561,7 @@ extension NSTextList$Methods on NSTextList { void encodeWithCoder(objc.NSCoder coder) { final _$$ref = object$.ref; final _$$ref$1 = coder.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_encodeWithCoder_, _$$ref$1.pointer, @@ -571,7 +576,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -582,7 +587,7 @@ extension NSTextList$Methods on NSTextList { NSTextList? initWithCoder(objc.NSCoder coder) { final _$$ref = object$.ref; final _$$ref$1 = coder.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithCoder_, _$$ref$1.pointer, @@ -604,7 +609,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1k4kd9s( + final $ret = _objc_msgSend_1js796u( _$$ref.retainAndReturnPointer(), _sel_initWithMarkerFormat_options_, _$$ref$1.pointer, @@ -626,7 +631,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (16, 0, 0)), macOS: (false, (13, 0, 0)), ); - final $ret = _objc_msgSend_1bh1vl9( + final $ret = _objc_msgSend_7rct32( _$$ref.retainAndReturnPointer(), _sel_initWithMarkerFormat_options_startingItemNumber_, _$$ref$1.pointer, @@ -644,7 +649,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (16, 0, 0)), macOS: (false, (13, 0, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOrdered); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isOrdered); } /// listOptions @@ -655,7 +660,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_exovb9(_$$ref.pointer, _sel_listOptions); + return _objc_msgSend_1d5lbv5(_$$ref.pointer, _sel_listOptions); } /// markerForItemNumber: @@ -666,7 +671,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_qugqlf( + final $ret = _objc_msgSend_x76ogv( _$$ref.pointer, _sel_markerForItemNumber_, itemNumber, @@ -682,7 +687,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_markerFormat); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_markerFormat); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -694,7 +699,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setStartingItemNumber_, value); + _objc_msgSend_1whyqxt(_$$ref.pointer, _sel_setStartingItemNumber_, value); } /// startingItemNumber @@ -705,7 +710,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_startingItemNumber); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_startingItemNumber); } } @@ -799,7 +804,7 @@ extension type UIPickerView._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [UIPickerView]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_UIPickerView, @@ -814,7 +819,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.dataSource', iOS: (false, (2, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_dataSource); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_dataSource); return $ret.address == 0 ? null : UIPickerViewDataSource.fromPointer($ret, retain: true, release: true); @@ -827,7 +832,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.delegate', iOS: (false, (2, 0, 0)), ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_delegate); return $ret.address == 0 ? null : UIPickerViewDelegate.fromPointer($ret, retain: true, release: true); @@ -837,7 +842,7 @@ extension UIPickerView$Methods on UIPickerView { void encodeWithCoder(objc.NSCoder coder) { final _$$ref = object$.ref; final _$$ref$1 = coder.ref; - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_encodeWithCoder_, _$$ref$1.pointer, @@ -848,7 +853,7 @@ extension UIPickerView$Methods on UIPickerView { UIPickerView? initWithCoder(objc.NSCoder coder) { final _$$ref = object$.ref; final _$$ref$1 = coder.ref; - final $ret = _objc_msgSend_1sotr3r( + final $ret = _objc_msgSend_1ffzwv1( _$$ref.retainAndReturnPointer(), _sel_initWithCoder_, _$$ref$1.pointer, @@ -865,7 +870,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.numberOfComponents', iOS: (false, (2, 0, 0)), ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfComponents); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_numberOfComponents); } /// numberOfRowsInComponent: @@ -875,7 +880,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.numberOfRowsInComponent:', iOS: (false, (2, 0, 0)), ); - return _objc_msgSend_12hwf9n( + return _objc_msgSend_fukx59( _$$ref.pointer, _sel_numberOfRowsInComponent_, component, @@ -889,7 +894,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.reloadAllComponents', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_reloadAllComponents); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_reloadAllComponents); } /// reloadComponent: @@ -899,7 +904,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.reloadComponent:', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_reloadComponent_, component); + _objc_msgSend_1whyqxt(_$$ref.pointer, _sel_reloadComponent_, component); } /// rowSizeForComponent: @@ -911,13 +916,13 @@ extension UIPickerView$Methods on UIPickerView { ); final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_17w0i2jStret( + ? _objc_msgSend_s28ih3Stret( $ptr, _$$ref.pointer, _sel_rowSizeForComponent_, component, ) - : $ptr.ref = _objc_msgSend_17w0i2j( + : $ptr.ref = _objc_msgSend_s28ih3( _$$ref.pointer, _sel_rowSizeForComponent_, component, @@ -936,7 +941,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.selectRow:inComponent:animated:', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_cy4jud( + _objc_msgSend_wd02ck( _$$ref.pointer, _sel_selectRow_inComponent_animated_, row, @@ -952,7 +957,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.selectedRowInComponent:', iOS: (false, (2, 0, 0)), ); - return _objc_msgSend_12hwf9n( + return _objc_msgSend_fukx59( _$$ref.pointer, _sel_selectedRowInComponent_, component, @@ -967,7 +972,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.setDataSource:', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setDataSource_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -982,7 +987,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.setDelegate:', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_xtuoz7( + _objc_msgSend_1d1siln( _$$ref.pointer, _sel_setDelegate_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -997,7 +1002,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.setShowsSelectionIndicator:', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_1s56lr9( + _objc_msgSend_1s4gila( _$$ref.pointer, _sel_setShowsSelectionIndicator_, value, @@ -1012,7 +1017,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.showsSelectionIndicator', iOS: (false, (2, 0, 0)), ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_showsSelectionIndicator); + return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_showsSelectionIndicator); } /// viewForRow:forComponent: @@ -1022,7 +1027,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.viewForRow:forComponent:', iOS: (false, (2, 0, 0)), ); - final $ret = _objc_msgSend_1nzyvs1( + final $ret = _objc_msgSend_1krq8qw( _$$ref.pointer, _sel_viewForRow_forComponent_, row, @@ -1096,109 +1101,103 @@ final _class_UIPickerView = objc.getClass( _class_UIPickerView_raw, ).cast(), ); -final _objc_msgSend_12hwf9n = objc.msgSendPointer +final _objc_msgSend_13h8okt = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Long, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_18szuw0 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_17w0i2j = objc.msgSendPointer +final _objc_msgSend_1d1siln = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.CGSize Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + ffi.Pointer, ) > >() .asFunction< - objc.CGSize Function( + void Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_17w0i2jStret = objc.msgSendStretPointer +final _objc_msgSend_1d5lbv5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, - ffi.Long, ) > >() .asFunction< - void Function( - ffi.Pointer, + int Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_190ea64 = objc.msgSendPointer +final _objc_msgSend_1ffzwv1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1bh1vl9 = objc.msgSendPointer +final _objc_msgSend_1js796u = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -1206,7 +1205,6 @@ final _objc_msgSend_1bh1vl9 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, - ffi.Long, ) > >() @@ -1216,49 +1214,54 @@ final _objc_msgSend_1bh1vl9 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, int, - int, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1k6sg8i = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer +final _objc_msgSend_1krq8qw = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Long, + ffi.Long, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + int, + int, ) >(); -final _objc_msgSend_1k4kd9s = objc.msgSendPointer +final _objc_msgSend_1n14wj8 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong, + ffi.Pointer, ) > >() @@ -1266,35 +1269,34 @@ final _objc_msgSend_1k4kd9s = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, + ffi.Pointer, ) >(); -final _objc_msgSend_1nzyvs1 = objc.msgSendPointer +final _objc_msgSend_1oo645y = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Long, - ffi.Long, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, int, - int, ) >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer +final _objc_msgSend_1s4gila = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Bool, ) > >() @@ -1302,15 +1304,16 @@ final _objc_msgSend_1pl9qdv = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, + bool, ) >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer +final _objc_msgSend_1whyqxt = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, + ffi.Long, ) > >() @@ -1318,16 +1321,18 @@ final _objc_msgSend_1s56lr9 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - bool, + int, ) >(); -final _objc_msgSend_1sotr3r = objc.msgSendPointer +final _objc_msgSend_7rct32 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, + ffi.Long, ) > >() @@ -1336,28 +1341,31 @@ final _objc_msgSend_1sotr3r = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, + int, ) >(); -final _objc_msgSend_1vdfken = objc.msgSendPointer +final _objc_msgSend_fukx59 = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.CGSize Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() .asFunction< - objc.CGSize Function( + int Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_1vdfkenStret = objc.msgSendStretPointer +final _objc_msgSend_h9i570 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, ) @@ -1365,15 +1373,14 @@ final _objc_msgSend_1vdfkenStret = objc.msgSendStretPointer >() .asFunction< void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_4sp4xj = objc.msgSendPointer +final _objc_msgSend_s28ih3 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, ffi.Long, @@ -1381,28 +1388,32 @@ final _objc_msgSend_4sp4xj = objc.msgSendPointer > >() .asFunction< - void Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, int, ) >(); -final _objc_msgSend_91o635 = objc.msgSendPointer +final _objc_msgSend_s28ih3Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() .asFunction< - bool Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_cy4jud = objc.msgSendPointer +final _objc_msgSend_wd02ck = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -1423,41 +1434,39 @@ final _objc_msgSend_cy4jud = objc.msgSendPointer bool, ) >(); -final _objc_msgSend_exovb9 = objc.msgSendPointer +final _objc_msgSend_wke702 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_pfv6jd = objc.msgSendPointer +final _objc_msgSend_wke702Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_qugqlf = objc.msgSendPointer +final _objc_msgSend_x76ogv = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -1474,40 +1483,36 @@ final _objc_msgSend_qugqlf = objc.msgSendPointer int, ) >(); -final _objc_msgSend_vbc8p4 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - int, ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); @@ -1575,6 +1580,9 @@ late final _sel_showsSelectionIndicator = objc.registerName( "showsSelectionIndicator", ); late final _sel_startingItemNumber = objc.registerName("startingItemNumber"); +late final _sel_supportsSecureCoding = objc.registerName( + "supportsSecureCoding", +); late final _sel_viewForRow_forComponent_ = objc.registerName( "viewForRow:forComponent:", ); diff --git a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart index 41ff128938..bd27900f30 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -223,7 +223,7 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [StaticFuncTestObj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_StaticFuncTestObj, @@ -231,13 +231,13 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// alloc static StaticFuncTestObj alloc() { - final $ret = _objc_msgSend_151sglz(_class_StaticFuncTestObj, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_StaticFuncTestObj, _sel_alloc); return StaticFuncTestObj.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static StaticFuncTestObj allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_StaticFuncTestObj, _sel_allocWithZone_, zone, @@ -247,13 +247,13 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// new static StaticFuncTestObj new$() { - final $ret = _objc_msgSend_151sglz(_class_StaticFuncTestObj, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_StaticFuncTestObj, _sel_new); return StaticFuncTestObj.fromPointer($ret, retain: false, release: true); } /// newWithCounter: static StaticFuncTestObj newWithCounter(ffi.Pointer _counter) { - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _class_StaticFuncTestObj, _sel_newWithCounter_, _counter, @@ -269,7 +269,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { /// dealloc void dealloc() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_dealloc); } /// init @@ -280,7 +280,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -290,7 +290,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { /// initWithCounter: StaticFuncTestObj initWithCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _$$ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter, @@ -309,13 +309,13 @@ final _class_StaticFuncTestObj = objc.getClass( _class_StaticFuncTestObj_raw, ).cast(), ); -final _objc_msgSend_129vhbw = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -323,15 +323,16 @@ final _objc_msgSend_129vhbw = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1uw8y6v = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -339,53 +340,52 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_h9i570 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart index a4ea0b3383..9ab2889b7f 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; @@ -304,7 +304,7 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [StaticFuncTestObj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_StaticFuncTestObj, @@ -312,13 +312,13 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// alloc static StaticFuncTestObj alloc() { - final $ret = _objc_msgSend_151sglz(_class_StaticFuncTestObj, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_StaticFuncTestObj, _sel_alloc); return StaticFuncTestObj.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static StaticFuncTestObj allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_StaticFuncTestObj, _sel_allocWithZone_, zone, @@ -328,13 +328,13 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// new static StaticFuncTestObj new$() { - final $ret = _objc_msgSend_151sglz(_class_StaticFuncTestObj, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_StaticFuncTestObj, _sel_new); return StaticFuncTestObj.fromPointer($ret, retain: false, release: true); } /// newWithCounter: static StaticFuncTestObj newWithCounter(ffi.Pointer _counter) { - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _class_StaticFuncTestObj, _sel_newWithCounter_, _counter, @@ -350,7 +350,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { /// dealloc void dealloc() { final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); + _objc_msgSend_h9i570(_$$ref.pointer, _sel_dealloc); } /// init @@ -361,7 +361,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -371,7 +371,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { /// initWithCounter: StaticFuncTestObj initWithCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_129vhbw( + final $ret = _objc_msgSend_1uw8y6v( _$$ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter, @@ -390,13 +390,13 @@ final _class_StaticFuncTestObj = objc.getClass( _class_StaticFuncTestObj_raw, ).cast(), ); -final _objc_msgSend_129vhbw = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -404,15 +404,16 @@ final _objc_msgSend_129vhbw = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1uw8y6v = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -420,53 +421,52 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_h9i570 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart index 94a21fdc76..f27886f85f 100644 --- a/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type StringUtil._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [StringUtil]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_StringUtil, @@ -39,13 +39,13 @@ extension type StringUtil._(objc.ObjCObject object$) /// alloc static StringUtil alloc() { - final $ret = _objc_msgSend_151sglz(_class_StringUtil, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_StringUtil, _sel_alloc); return StringUtil.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static StringUtil allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_StringUtil, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type StringUtil._(objc.ObjCObject object$) /// new static StringUtil new$() { - final $ret = _objc_msgSend_151sglz(_class_StringUtil, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_StringUtil, _sel_new); return StringUtil.fromPointer($ret, retain: false, release: true); } @@ -66,7 +66,7 @@ extension type StringUtil._(objc.ObjCObject object$) }) { final _$$ref = a.ref; final _$$ref$1 = with$.ref; - final $ret = _objc_msgSend_15qeuct( + final $ret = _objc_msgSend_1oxgj58( _class_StringUtil, _sel_strConcat_with_, _$$ref.pointer, @@ -88,7 +88,7 @@ extension StringUtil$Methods on StringUtil { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -106,12 +106,13 @@ final _class_StringUtil = objc.getClass( _class_StringUtil_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -119,9 +120,10 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_15qeuct = objc.msgSendPointer +final _objc_msgSend_1oxgj58 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -140,7 +142,7 @@ final _objc_msgSend_15qeuct = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -157,13 +159,12 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -171,7 +172,6 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart index aa48855d53..c8bd6dfeb0 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/swift_class_test') library; @@ -11,9 +11,9 @@ import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); @ffi.Native< - ffi.Long Function(ffi.Pointer, ffi.Pointer) + NSInteger Function(ffi.Pointer, ffi.Pointer) >() -external int _pyqkbm_protocolTrampoline_fai2e9( +external int _pyqkbm_protocolTrampoline_1er77tf( ffi.Pointer target, ffi.Pointer arg0, ); @@ -38,7 +38,7 @@ extension type MySwiftClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [MySwiftClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_MySwiftClass, @@ -46,13 +46,13 @@ extension type MySwiftClass._(objc.ObjCObject object$) /// alloc static MySwiftClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_MySwiftClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_MySwiftClass, _sel_alloc); return MySwiftClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static MySwiftClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_MySwiftClass, _sel_allocWithZone_, zone, @@ -62,7 +62,7 @@ extension type MySwiftClass._(objc.ObjCObject object$) /// new static MySwiftClass new$() { - final $ret = _objc_msgSend_151sglz(_class_MySwiftClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_MySwiftClass, _sel_new); return MySwiftClass.fromPointer($ret, retain: false, release: true); } @@ -72,9 +72,9 @@ extension type MySwiftClass._(objc.ObjCObject object$) extension MySwiftClass$Methods on MySwiftClass { /// getValue - int getValue() { + DartNSInteger getValue() { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_getValue); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_getValue); } /// init @@ -85,7 +85,7 @@ extension MySwiftClass$Methods on MySwiftClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -93,9 +93,9 @@ extension MySwiftClass$Methods on MySwiftClass { } /// setValueWithX: - void setValueWithX(int x) { + void setValueWithX(DartNSInteger x) { final _$$ref = object$.ref; - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setValueWithX_, x); + _objc_msgSend_1whyqxt(_$$ref.pointer, _sel_setValueWithX_, x); } } @@ -114,7 +114,7 @@ extension type MySwiftProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [MySwiftProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( + return _objc_msgSend_441sd9( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_MySwiftProtocol, @@ -124,9 +124,9 @@ extension type MySwiftProtocol._(objc.ObjCProtocol object$) extension MySwiftProtocol$Methods on MySwiftProtocol { /// getValue - int getValue() { + DartNSInteger getValue() { final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_getValue); + return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_getValue); } } @@ -141,7 +141,7 @@ interface class MySwiftProtocol$Builder { /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. static MySwiftProtocol implement({ - required int Function() getValue, + required DartNSInteger Function() getValue, bool $keepIsolateAlive = true, }) { final builder = objc.ObjCProtocolBuilder(debugName: 'MySwiftProtocol'); @@ -158,7 +158,7 @@ interface class MySwiftProtocol$Builder { /// Note: You cannot call this method after you have called `builder.build`. static void addToBuilder( objc.ObjCProtocolBuilder builder, { - required int Function() getValue, + required DartNSInteger Function() getValue, bool $keepIsolateAlive = true, }) { MySwiftProtocol$Builder.getValue.implement(builder, getValue); @@ -166,17 +166,17 @@ interface class MySwiftProtocol$Builder { } /// getValue - static final getValue = objc.ObjCProtocolMethod( + static final getValue = objc.ObjCProtocolMethod( _protocol_MySwiftProtocol, _sel_getValue, ffi.Native.addressOf< ffi.NativeFunction< - ffi.Long Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, ) > - >(_pyqkbm_protocolTrampoline_fai2e9) + >(_pyqkbm_protocolTrampoline_1er77tf) .cast(), objc.getProtocolMethodSignature( _protocol_MySwiftProtocol, @@ -184,12 +184,15 @@ interface class MySwiftProtocol$Builder { isRequired: true, isInstanceMethod: true, ), - (int Function() func) => ObjCBlock_NSInteger_ffiVoid.fromFunction( + (DartNSInteger Function() func) => ObjCBlock_NSInteger_ffiVoid.fromFunction( (ffi.Pointer _) => func(), ), ); } +typedef NSInteger = ffi.Long; +typedef DartNSInteger = int; + /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_NSInteger_ffiVoid { /// Returns a block that wraps the given raw block pointer. @@ -211,7 +214,7 @@ abstract final class ObjCBlock_NSInteger_ffiVoid { static objc.ObjCBlock)> fromFunctionPointer( ffi.Pointer< - ffi.NativeFunction arg0)> + ffi.NativeFunction arg0)> > ptr, ) => objc.ObjCBlock)>( @@ -229,7 +232,7 @@ abstract final class ObjCBlock_NSInteger_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - int Function(ffi.Pointer) fn, { + DartNSInteger Function(ffi.Pointer) fn, { bool keepIsolateAlive = true, }) => objc.ObjCBlock)>( objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { @@ -243,11 +246,13 @@ abstract final class ObjCBlock_NSInteger_ffiVoid { ffi.Pointer block, ffi.Pointer arg0, ) => block.ref.target - .cast arg0)>>() + .cast< + ffi.NativeFunction arg0)> + >() .asFunction)>()(arg0); static ffi.Pointer _fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Long Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, ) @@ -261,7 +266,7 @@ abstract final class ObjCBlock_NSInteger_ffiVoid { ); static ffi.Pointer _closureCallable = ffi.Pointer.fromFunction< - ffi.Long Function( + NSInteger Function( ffi.Pointer, ffi.Pointer, ) @@ -272,11 +277,11 @@ abstract final class ObjCBlock_NSInteger_ffiVoid { /// Call operator for `objc.ObjCBlock)>`. extension ObjCBlock_NSInteger_ffiVoid$CallExtension on objc.ObjCBlock)> { - int call(ffi.Pointer arg0) { + DartNSInteger call(ffi.Pointer arg0) { return ref.pointer.ref.invoke .cast< ffi.NativeFunction< - ffi.Long Function( + NSInteger Function( ffi.Pointer block, ffi.Pointer arg0, ) @@ -298,102 +303,102 @@ final _class_MySwiftClass = objc.getClass( _class_MySwiftClass_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_18szuw0 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_1whyqxt = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Long, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer +final _objc_msgSend_441sd9 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_4sp4xj = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_e3qsqz = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); @ffi.Native Function()>( diff --git a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.m b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.m index 67bfe7c833..634e092dde 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.m @@ -61,7 +61,7 @@ typedef long (^_ProtocolTrampoline)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -long _pyqkbm_protocolTrampoline_fai2e9(id target, void * sel) { +long _pyqkbm_protocolTrampoline_1er77tf(id target, void * sel) { return ((_ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } #undef BLOCKING_BLOCK_IMPL diff --git a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart index 7b04acef7b..1755fc2252 100644 --- a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type AnotherClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [AnotherClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_AnotherClass, @@ -39,13 +39,13 @@ extension type AnotherClass._(objc.ObjCObject object$) /// alloc static AnotherClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_AnotherClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_AnotherClass, _sel_alloc); return AnotherClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static AnotherClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_AnotherClass, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type AnotherClass._(objc.ObjCObject object$) /// new static AnotherClass new$() { - final $ret = _objc_msgSend_151sglz(_class_AnotherClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_AnotherClass, _sel_new); return AnotherClass.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension AnotherClass$Methods on AnotherClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -82,7 +82,7 @@ extension AnotherClass$Methods on AnotherClass { /// property DartSomeClassPtr get property { final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_property); + final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_property); return SomeClass.fromPointer($ret, retain: true, release: true); } @@ -90,7 +90,7 @@ extension AnotherClass$Methods on AnotherClass { set property(DartSomeClassPtr value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setProperty_, _$$ref$1.pointer); + _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setProperty_, _$$ref$1.pointer); } } @@ -114,7 +114,7 @@ extension type SomeClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [SomeClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_19nvye5( + : _objc_msgSend_xbndyy( obj.ref.pointer, _sel_isKindOfClass_, _class_SomeClass, @@ -122,13 +122,13 @@ extension type SomeClass._(objc.ObjCObject object$) /// alloc static SomeClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_SomeClass, _sel_alloc); + final $ret = _objc_msgSend_zldla2(_class_SomeClass, _sel_alloc); return SomeClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static SomeClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( + final $ret = _objc_msgSend_1h5ffc5( _class_SomeClass, _sel_allocWithZone_, zone, @@ -138,7 +138,7 @@ extension type SomeClass._(objc.ObjCObject object$) /// new static SomeClass new$() { - final $ret = _objc_msgSend_151sglz(_class_SomeClass, _sel_new); + final $ret = _objc_msgSend_zldla2(_class_SomeClass, _sel_new); return SomeClass.fromPointer($ret, retain: false, release: true); } @@ -155,7 +155,7 @@ extension SomeClass$Methods on SomeClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_151sglz( + final $ret = _objc_msgSend_zldla2( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -183,70 +183,70 @@ final _class_SomeClass = objc.getClass( _class_SomeClass_raw, ).cast(), ); -final _objc_msgSend_151sglz = objc.msgSendPointer +final _objc_msgSend_1d1siln = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_1h5ffc5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_xbndyy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_zldla2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_test/_expected_native_test_bindings.dart b/pkgs/ffigen/test/native_test/_expected_native_test_bindings.dart index 96d5b18820..c85b802eb3 100644 --- a/pkgs/ffigen/test/native_test/_expected_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_test/_expected_native_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/native_test') library; diff --git a/pkgs/ffigen/test/unit_tests/record_use_test.dart b/pkgs/ffigen/test/unit_tests/record_use_test.dart index 07e09f94af..8444ccbde6 100644 --- a/pkgs/ffigen/test/unit_tests/record_use_test.dart +++ b/pkgs/ffigen/test/unit_tests/record_use_test.dart @@ -31,7 +31,7 @@ void main() { output, contains( 'ignore_for_file: type=lint, unused_import, unused_element, ' - 'deprecated_member_use_from_same_package', + 'unused_field, deprecated_member_use_from_same_package', ), ); From afd1c2f8da45150bb31c8467912c515a7ea26ac5 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Tue, 11 Aug 2026 12:35:17 +1000 Subject: [PATCH 08/54] bindings --- pkgs/ffigen/example/add/lib/add.g.dart | 2 +- .../c_json/cjson_generated_bindings.dart | 2 +- .../ffinative/lib/generated_bindings.dart | 2 +- .../libclang-example/generated_bindings.dart | 2 +- .../objective_c/avf_audio_bindings.dart | 308841 +-------------- .../objective_c/avf_audio_bindings.dart.m | 4102 - .../example/objective_c/generate_code.dart | 12 +- .../example/objective_c/play_audio.dart | 2 +- .../lib/generated/a_shared_b_gen.dart | 2 +- .../example/simple/generated_bindings.dart | 2 +- .../example/swift/swift_api_bindings.dart | 60 +- pkgs/ffigen/lib/src/code_generator/func.dart | 10 +- .../objc_built_in_functions.dart | 19 +- .../lib/src/code_generator/typealias.dart | 16 +- .../ffigen/lib/src/code_generator/writer.dart | 1 - .../clang_bindings/clang_bindings.dart | 2 +- pkgs/ffigen/lib/src/header_parser/parser.dart | 3 +- .../lib/src/visitor/apply_config_filters.dart | 33 +- pkgs/ffigen/lib/src/visitor/find_symbols.dart | 15 +- .../ffigen/lib/src/visitor/list_bindings.dart | 15 +- .../_expected_boolean_dartbool_bindings.dart | 2 +- .../_expected_constant_bindings.dart | 2 +- .../_expected_enumclass_bindings.dart | 2 +- ...xpected_enumclass_duplicates_bindings.dart | 2 +- ...ed_enumclass_func_and_struct_bindings.dart | 2 +- ..._expected_enumclass_integers_bindings.dart | 2 +- .../_expected_function_bindings.dart | 2 +- ..._expected_function_ffiNative_bindings.dart | 2 +- .../_expected_function_n_struct_bindings.dart | 2 +- .../_expected_global_bindings.dart | 2 +- .../_expected_global_native_bindings.dart | 2 +- ...internal_conflict_resolution_bindings.dart | 2 +- .../_expected_native_symbol_bindings.dart | 2 +- .../_expected_packed_structs_bindings.dart | 2 +- ...ed_struct_allocate_collision_bindings.dart | 2 +- .../_expected_struct_bindings.dart | 2 +- .../_expected_typealias_bindings.dart | 2 +- .../_expected_unions_bindings.dart | 2 +- ...expected_decl_decl_collision_bindings.dart | 2 +- ...ecl_symbol_address_collision_bindings.dart | 2 +- ...ted_decl_type_name_collision_bindings.dart | 2 +- ...d_reserved_keyword_collision_bindings.dart | 2 +- .../objective_c_example_test.dart | 2 +- .../_expected_comment_markup_bindings.dart | 2 +- .../_expected_dart_handle_bindings.dart | 2 +- .../_expected_enum_int_mimic_bindings.dart | 2 +- .../_expected_forward_decl_bindings.dart | 2 +- .../_expected_functions_bindings.dart | 2 +- .../_expected_imported_types_bindings.dart | 2 +- ...expected_native_func_typedef_bindings.dart | 2 +- ...expected_opaque_dependencies_bindings.dart | 2 +- .../_expected_packed_structs_bindings.dart | 2 +- .../_expected_record_use_bindings.dart | 2 +- .../_expected_regress_384_bindings.dart | 2 +- .../_expected_sort_bindings.dart | 2 +- ..._expected_struct_fptr_fields_bindings.dart | 2 +- .../_expected_typedef_bindings.dart | 2 +- .../_expected_unions_bindings.dart | 2 +- .../_expected_varargs_bindings.dart | 2 +- .../_expected_cjson_bindings.dart | 2 +- .../_expected_libclang_bindings.dart | 2 +- .../_expected_sqlite_bindings.dart | 2 +- .../large_objc_test.dart | 2 + .../large_integration_tests/large_test.dart | 1 + .../cpp_class_test_bindings.dart | 2 +- .../memory_edge_cases_bindings.dart | 2 +- .../native_objc_test/arc_test_bindings.dart | 125 +- .../bad_method_test_bindings.dart | 78 +- .../bad_override_test_bindings.dart | 173 +- .../block_annotation_test_bindings.dart | 438 +- .../block_annotation_test_bindings.m | 54 +- .../block_inherit_test_bindings.dart | 121 +- .../native_objc_test/block_test_bindings.dart | 698 +- .../native_objc_test/block_test_bindings.m | 112 +- .../native_objc_test/cast_test_bindings.dart | 44 +- .../category_test_bindings.dart | 282 +- .../native_objc_test/category_test_bindings.m | 14 +- .../native_objc_test/deprecated_test.dart | 4 + .../native_objc_test/enum_test_bindings.dart | 62 +- .../error_method_test_bindings.dart | 73 +- .../failed_to_load_test_bindings.dart | 49 +- .../forward_decl_test_bindings.dart | 46 +- .../global_native_test_bindings.dart | 2 +- .../global_test_bindings.dart | 2 +- .../inherited_instancetype_test_bindings.dart | 76 +- .../is_instance_test_bindings.dart | 42 +- .../isolate_test_bindings.dart | 66 +- .../native_objc_test/isolate_test_bindings.m | 14 +- .../native_objc_test/log_test_bindings.dart | 62 +- .../method_filtering_test_bindings.dart | 135 +- .../method_filtering_test_bindings.m | 2 +- .../method_test_bindings.dart | 188 +- .../native_objc_test_bindings.dart | 136 +- .../test/native_objc_test/ns_range_test.dart | 12 +- .../nullable_inheritance_test_bindings.dart | 76 +- .../nullable_test_bindings.dart | 76 +- .../property_test_bindings.dart | 140 +- .../protocol_test_bindings.dart | 382 +- .../native_objc_test/protocol_test_bindings.m | 58 +- .../ref_count_test_bindings.dart | 142 +- .../rename_test_bindings.dart | 82 +- .../runtime_version_test_bindings.dart | 58 +- .../sdk_variable_test_bindings.dart | 276 +- .../static_func_native_test_bindings.dart | 52 +- .../static_func_test_bindings.dart | 52 +- .../string_test_bindings.dart | 26 +- .../swift_class_test_bindings.dart | 76 +- .../swift_class_test_bindings.m | 2 +- .../swift_unavailable_test.dart | 11 + .../typedef_test_bindings.dart | 62 +- .../_expected_native_test_bindings.dart | 2 +- .../test/unit_tests/record_use_test.dart | 2 +- 112 files changed, 3554 insertions(+), 314365 deletions(-) delete mode 100644 pkgs/ffigen/example/objective_c/avf_audio_bindings.dart.m diff --git a/pkgs/ffigen/example/add/lib/add.g.dart b/pkgs/ffigen/example/add/lib/add.g.dart index 99aec23eaa..524e4b22c7 100644 --- a/pkgs/ffigen/example/add/lib/add.g.dart +++ b/pkgs/ffigen/example/add/lib/add.g.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; @ffi.Native() diff --git a/pkgs/ffigen/example/c_json/cjson_generated_bindings.dart b/pkgs/ffigen/example/c_json/cjson_generated_bindings.dart index 8104810389..a8e93d8d82 100644 --- a/pkgs/ffigen/example/c_json/cjson_generated_bindings.dart +++ b/pkgs/ffigen/example/c_json/cjson_generated_bindings.dart @@ -21,7 +21,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Holds bindings to cJSON. diff --git a/pkgs/ffigen/example/ffinative/lib/generated_bindings.dart b/pkgs/ffigen/example/ffinative/lib/generated_bindings.dart index e98d864be2..04ba758de0 100644 --- a/pkgs/ffigen/example/ffinative/lib/generated_bindings.dart +++ b/pkgs/ffigen/example/ffinative/lib/generated_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffinative_example/generated_bindings.dart') library; diff --git a/pkgs/ffigen/example/libclang-example/generated_bindings.dart b/pkgs/ffigen/example/libclang-example/generated_bindings.dart index df8c5de2b6..207c7c3e0d 100644 --- a/pkgs/ffigen/example/libclang-example/generated_bindings.dart +++ b/pkgs/ffigen/example/libclang-example/generated_bindings.dart @@ -6,7 +6,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'custom_import.dart' as custom_import; import 'dart:ffi' as ffi; diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index 01ee81b6e6..a5c0bfe631 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -5,307896 +5,1219 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -@ffi.Native< - OSStatus Function( - AEEventClass, - AEEventID, - DescType, - ffi.Pointer, - Size, - SInt16, - SInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEBuildAppleEvent( - int theClass, - int theID, - int addressType, - ffi.Pointer addressData, - int addressLength, - int returnID, - int transactionID, - ffi.Pointer result, - ffi.Pointer error, - ffi.Pointer paramsFmt, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEBuildDesc( - ffi.Pointer dst, - ffi.Pointer error, - ffi.Pointer src, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEBuildParameters( - ffi.Pointer event, - ffi.Pointer error, - ffi.Pointer format, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - DescType, - DescType, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AECallObjectAccessor( - int desiredClass, - ffi.Pointer containerToken, - int containerClass, - int keyForm, - ffi.Pointer keyData, - ffi.Pointer token, -); - -@ffi.Native)>() -external int AECheckIsRecord(ffi.Pointer theDesc); - -@ffi.Native< - OSErr Function(ffi.Pointer, DescType, ffi.Pointer) ->() -external int AECoerceDesc( - ffi.Pointer theAEDesc, - int toType, - ffi.Pointer result, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - Size, - DescType, - ffi.Pointer, - ) ->() -external int AECoercePtr( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - int toType, - ffi.Pointer result, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AECompareDesc( - ffi.Pointer desc1, - ffi.Pointer desc2, - ffi.Pointer resultP, -); - -@ffi.Native, ffi.Pointer)>() -external int AECountItems( - ffi.Pointer theAEDescList, - ffi.Pointer theCount, -); - -@ffi.Native< - OSErr Function( - AEEventClass, - AEEventID, - ffi.Pointer, - AEReturnID, - AETransactionID, - ffi.Pointer, - ) ->() -external int AECreateAppleEvent( - int theAEEventClass, - int theAEEventID, - ffi.Pointer target, - int returnID, - int transactionID, - ffi.Pointer result, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - Size, - ffi.Pointer, - ) ->() -external int AECreateDesc( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - ffi.Pointer result, -); - -@ffi.Native< - OSStatus Function( - OSType, - ffi.Pointer, - Size, - AEDisposeExternalUPP, - SRefCon, - ffi.Pointer, - ) ->() -external int AECreateDescFromExternalPtr( - int descriptorType, - ffi.Pointer dataPtr, - int dataLength, - AEDisposeExternalUPP disposeCallback, - SRefCon disposeRefcon, - ffi.Pointer theDesc, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, Size, Boolean, ffi.Pointer) ->() -external int AECreateList( - ffi.Pointer factoringPtr, - int factoredSize, - int isRecord, - ffi.Pointer resultList, -); - -@ffi.Native() -external AERemoteProcessResolverRef AECreateRemoteProcessResolver( - CFAllocatorRef allocator, - CFURLRef url, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEDecodeMessage( - ffi.Pointer header, - ffi.Pointer event, - ffi.Pointer reply, -); - -@ffi.Native, ffi.Long)>() -external int AEDeleteItem(ffi.Pointer theAEDescList, int index$1); - -@ffi.Native, AEKeyword)>() -external int AEDeleteParam( - ffi.Pointer theAppleEvent, - int theAEKeyword, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - AEEventClass, - AEEventID, - Boolean, - ) ->() -external int AEDeterminePermissionToAutomateTarget( - ffi.Pointer target, - int theAEEventClass, - int theAEEventID, - int askUserIfNeeded, -); - -@ffi.Native)>() -external int AEDisposeDesc(ffi.Pointer theAEDesc); - -@ffi.Native() -external void AEDisposeRemoteProcessResolver(AERemoteProcessResolverRef ref); - -@ffi.Native)>() -external int AEDisposeToken(ffi.Pointer theToken); - -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer) ->() -external int AEDuplicateDesc( - ffi.Pointer theAEDesc, - ffi.Pointer result, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, Ptr, Size, ffi.Pointer) ->() -external int AEFlattenDesc( - ffi.Pointer theAEDesc, - Ptr buffer, - int bufferSize, - ffi.Pointer actualSize, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEArrayType, - AEArrayDataPointer, - Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEGetArray( - ffi.Pointer theAEDescList, - int arrayType, - AEArrayDataPointer arrayPtr, - int maximumSize, - ffi.Pointer itemType, - ffi.Pointer itemSize, - ffi.Pointer itemCount, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - ) ->() -external int AEGetAttributeDesc( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int desiredType, - ffi.Pointer result, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - ffi.Pointer, - Size, - ffi.Pointer, - ) ->() -external int AEGetAttributePtr( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int desiredType, - ffi.Pointer typeCode, - ffi.Pointer dataPtr, - int maximumSize, - ffi.Pointer actualSize, -); - -@ffi.Native< - OSErr Function( - DescType, - DescType, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - Boolean, - ) ->() -external int AEGetCoercionHandler( - int fromType, - int toType, - ffi.Pointer handler, - ffi.Pointer handlerRefcon, - ffi.Pointer fromTypeIsDesc, - int isSysHandler, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer, Size) ->() -external int AEGetDescData( - ffi.Pointer theAEDesc, - ffi.Pointer dataPtr, - int maximumSize, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer, Size, Size) ->() -external int AEGetDescDataRange( - ffi.Pointer dataDesc, - ffi.Pointer buffer, - int offset, - int length, -); - -@ffi.Native)>() -external int AEGetDescDataSize(ffi.Pointer theAEDesc); - -@ffi.Native< - OSErr Function( - AEEventClass, - AEEventID, - ffi.Pointer, - ffi.Pointer, - Boolean, - ) ->() -external int AEGetEventHandler( - int theAEEventClass, - int theAEEventID, - ffi.Pointer handler, - ffi.Pointer handlerRefcon, - int isSysHandler, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Long, - DescType, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEGetNthDesc( - ffi.Pointer theAEDescList, - int index$1, - int desiredType, - ffi.Pointer theAEKeyword, - ffi.Pointer result, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Long, - DescType, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - Size, - ffi.Pointer, - ) ->() -external int AEGetNthPtr( - ffi.Pointer theAEDescList, - int index$1, - int desiredType, - ffi.Pointer theAEKeyword, - ffi.Pointer typeCode, - ffi.Pointer dataPtr, - int maximumSize, - ffi.Pointer actualSize, -); - -@ffi.Native< - OSErr Function( - DescType, - DescType, - ffi.Pointer, - ffi.Pointer, - Boolean, - ) ->() -external int AEGetObjectAccessor( - int desiredClass, - int containerType, - ffi.Pointer accessor, - ffi.Pointer accessorRefcon, - int isSysHandler, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - ) ->() -external int AEGetParamDesc( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int desiredType, - ffi.Pointer result, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - ffi.Pointer, - Size, - ffi.Pointer, - ) ->() -external int AEGetParamPtr( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int desiredType, - ffi.Pointer actualType, - ffi.Pointer dataPtr, - int maximumSize, - ffi.Pointer actualSize, -); - -@ffi.Native() -external int AEGetRegisteredMachPort(); - -@ffi.Native< - OSErr Function(AEKeyword, ffi.Pointer, Boolean) ->() -external int AEGetSpecialHandler( - int functionClass, - ffi.Pointer handler, - int isSysHandler, -); - -@ffi.Native)>() -external void AEInitializeDesc(ffi.Pointer desc); - -@ffi.Native< - OSErr Function( - DescType, - DescType, - AECoercionHandlerUPP, - SRefCon, - Boolean, - Boolean, - ) ->() -external int AEInstallCoercionHandler( - int fromType, - int toType, - AECoercionHandlerUPP handler, - SRefCon handlerRefcon, - int fromTypeIsDesc, - int isSysHandler, -); - -@ffi.Native< - OSErr Function(AEEventClass, AEEventID, AEEventHandlerUPP, SRefCon, Boolean) ->() -external int AEInstallEventHandler( - int theAEEventClass, - int theAEEventID, - AEEventHandlerUPP handler, - SRefCon handlerRefcon, - int isSysHandler, -); - -@ffi.Native< - OSErr Function(DescType, DescType, OSLAccessorUPP, SRefCon, Boolean) ->() -external int AEInstallObjectAccessor( - int desiredClass, - int containerType, - OSLAccessorUPP theAccessor, - SRefCon accessorRefcon, - int isSysHandler, -); - -@ffi.Native() -external int AEInstallSpecialHandler( - int functionClass, - AEEventHandlerUPP handler, - int isSysHandler, -); - -@ffi.Native)>() -external int AEManagerInfo(int keyWord, ffi.Pointer result); - -@ffi.Native() -external int AEObjectInit(); - -@ffi.Native, ffi.Pointer)>() -external int AEPrintDescToHandle( - ffi.Pointer desc, - ffi.Pointer result, -); - -@ffi.Native)>() -external int AEProcessMessage(ffi.Pointer header); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEArrayType, - ffi.Pointer, - DescType, - Size, - ffi.Long, - ) ->() -external int AEPutArray( - ffi.Pointer theAEDescList, - int arrayType, - ffi.Pointer arrayPtr, - int itemType, - int itemSize, - int itemCount, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, AEKeyword, ffi.Pointer) ->() -external int AEPutAttributeDesc( - ffi.Pointer theAppleEvent, - int theAEKeyword, - ffi.Pointer theAEDesc, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - Size, - ) ->() -external int AEPutAttributePtr( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int typeCode, - ffi.Pointer dataPtr, - int dataSize, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Long, ffi.Pointer) ->() -external int AEPutDesc( - ffi.Pointer theAEDescList, - int index$1, - ffi.Pointer theAEDesc, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, AEKeyword, ffi.Pointer) ->() -external int AEPutParamDesc( - ffi.Pointer theAppleEvent, - int theAEKeyword, - ffi.Pointer theAEDesc, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - Size, - ) ->() -external int AEPutParamPtr( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int typeCode, - ffi.Pointer dataPtr, - int dataSize, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Long, - DescType, - ffi.Pointer, - Size, - ) ->() -external int AEPutPtr( - ffi.Pointer theAEDescList, - int index$1, - int typeCode, - ffi.Pointer dataPtr, - int dataSize, -); - -@ffi.Native< - CFArrayRef Function(AERemoteProcessResolverRef, ffi.Pointer) ->() -external CFArrayRef AERemoteProcessResolverGetProcesses( - AERemoteProcessResolverRef ref, - ffi.Pointer outError, -); - -@ffi.Native< - ffi.Void Function( - AERemoteProcessResolverRef, - CFRunLoopRef, - CFStringRef, - AERemoteProcessResolverCallback, - ffi.Pointer, - ) ->() -external void AERemoteProcessResolverScheduleWithRunLoop( - AERemoteProcessResolverRef ref, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, - AERemoteProcessResolverCallback callback, - ffi.Pointer ctx, -); - -@ffi.Native() -external int AERemoveCoercionHandler( - int fromType, - int toType, - AECoercionHandlerUPP handler, - int isSysHandler, -); - -@ffi.Native< - OSErr Function(AEEventClass, AEEventID, AEEventHandlerUPP, Boolean) ->() -external int AERemoveEventHandler( - int theAEEventClass, - int theAEEventID, - AEEventHandlerUPP handler, - int isSysHandler, -); - -@ffi.Native() -external int AERemoveObjectAccessor( - int desiredClass, - int containerType, - OSLAccessorUPP theAccessor, - int isSysHandler, -); - -@ffi.Native() -external int AERemoveSpecialHandler( - int functionClass, - AEEventHandlerUPP handler, - int isSysHandler, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - Size, - ffi.Pointer, - ) ->() -external int AEReplaceDescData( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - ffi.Pointer theAEDesc, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Short, ffi.Pointer) ->() -external int AEResolve( - ffi.Pointer objectSpecifier, - int callbackFlags, - ffi.Pointer theToken, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - AESendMode, - ffi.Long, - ) ->() -external int AESendMessage( - ffi.Pointer event, - ffi.Pointer reply, - int sendMode, - int timeOutInTicks, -); - -@ffi.Native< - OSErr Function( - OSLCompareUPP, - OSLCountUPP, - OSLDisposeTokenUPP, - OSLGetMarkTokenUPP, - OSLMarkUPP, - OSLAdjustMarksUPP, - OSLGetErrDescUPP, - ) ->() -external int AESetObjectCallbacks( - OSLCompareUPP myCompareProc, - OSLCountUPP myCountProc, - OSLDisposeTokenUPP myDisposeTokenProc, - OSLGetMarkTokenUPP myGetMarkTokenProc, - OSLMarkUPP myMarkProc, - OSLAdjustMarksUPP myAdjustMarksProc, - OSLGetErrDescUPP myGetErrDescProcPtr, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AESizeOfAttribute( - ffi.Pointer theAppleEvent, - int theAEKeyword, - ffi.Pointer typeCode, - ffi.Pointer dataSize, -); - -@ffi.Native)>() -external int AESizeOfFlattenedDesc(ffi.Pointer theAEDesc); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AESizeOfNthItem( - ffi.Pointer theAEDescList, - int index$1, - ffi.Pointer typeCode, - ffi.Pointer dataSize, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AESizeOfParam( - ffi.Pointer theAppleEvent, - int theAEKeyword, - ffi.Pointer typeCode, - ffi.Pointer dataSize, -); - -@ffi.Native)>() -external int AEStreamClose(AEStreamRef ref, ffi.Pointer desc); - -@ffi.Native() -external int AEStreamCloseDesc(AEStreamRef ref); - -@ffi.Native() -external int AEStreamCloseList(AEStreamRef ref); - -@ffi.Native() -external int AEStreamCloseRecord(AEStreamRef ref); - -@ffi.Native< - AEStreamRef Function( - AEEventClass, - AEEventID, - DescType, - ffi.Pointer, - Size, - SInt16, - SInt32, - ) ->() -external AEStreamRef AEStreamCreateEvent( - int clazz, - int id, - int targetType, - ffi.Pointer targetData, - int targetLength, - int returnID, - int transactionID, -); - -@ffi.Native() -external AEStreamRef AEStreamOpen(); - -@ffi.Native() -external int AEStreamOpenDesc(AEStreamRef ref, int newType); - -@ffi.Native)>() -external AEStreamRef AEStreamOpenEvent(ffi.Pointer event); - -@ffi.Native() -external int AEStreamOpenKeyDesc(AEStreamRef ref, int key, int newType); - -@ffi.Native() -external int AEStreamOpenList(AEStreamRef ref); - -@ffi.Native() -external int AEStreamOpenRecord(AEStreamRef ref, int newType); - -@ffi.Native() -external int AEStreamOptionalParam(AEStreamRef ref, int key); - -@ffi.Native() -external int AEStreamSetRecordType(AEStreamRef ref, int newType); - -@ffi.Native)>() -external int AEStreamWriteAEDesc( - AEStreamRef ref, - ffi.Pointer desc, -); - -@ffi.Native, Size)>() -external int AEStreamWriteData( - AEStreamRef ref, - ffi.Pointer data, - int length, -); - -@ffi.Native< - OSStatus Function(AEStreamRef, DescType, ffi.Pointer, Size) ->() -external int AEStreamWriteDesc( - AEStreamRef ref, - int newType, - ffi.Pointer data, - int length, -); - -@ffi.Native() -external int AEStreamWriteKey(AEStreamRef ref, int key); - -@ffi.Native< - OSStatus Function( - AEStreamRef, - AEKeyword, - DescType, - ffi.Pointer, - Size, - ) ->() -external int AEStreamWriteKeyDesc( - AEStreamRef ref, - int key, - int newType, - ffi.Pointer data, - int length, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int AEUnflattenDesc( - ffi.Pointer buffer, - ffi.Pointer result, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Size, ffi.Pointer) ->() -external int AEUnflattenDescFromBytes( - ffi.Pointer buffer, - int bufferLen, - ffi.Pointer result, -); - -@ffi.Native>( - symbol: 'AVAudioBitRateStrategy_Constant', -) -external final ffi.Pointer -_AVAudioBitRateStrategy_Constant; - -objc.NSString get AVAudioBitRateStrategy_Constant => objc.NSString.fromPointer( - _AVAudioBitRateStrategy_Constant, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVAudioBitRateStrategy_LongTermAverage', -) -external final ffi.Pointer -_AVAudioBitRateStrategy_LongTermAverage; - -objc.NSString get AVAudioBitRateStrategy_LongTermAverage => - objc.NSString.fromPointer( - _AVAudioBitRateStrategy_LongTermAverage, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVAudioBitRateStrategy_Variable', -) -external final ffi.Pointer -_AVAudioBitRateStrategy_Variable; - -objc.NSString get AVAudioBitRateStrategy_Variable => objc.NSString.fromPointer( - _AVAudioBitRateStrategy_Variable, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVAudioBitRateStrategy_VariableConstrained', -) -external final ffi.Pointer -_AVAudioBitRateStrategy_VariableConstrained; - -objc.NSString get AVAudioBitRateStrategy_VariableConstrained => - objc.NSString.fromPointer( - _AVAudioBitRateStrategy_VariableConstrained, - retain: true, - release: true, - ); - -@ffi.Native>(symbol: 'AVAudioFileTypeKey') -external final ffi.Pointer _AVAudioFileTypeKey; - -objc.NSString get AVAudioFileTypeKey => - objc.NSString.fromPointer(_AVAudioFileTypeKey, retain: true, release: true); -@ffi.Native( - symbol: 'AVAudioSessionAvailableInputsChangeNotification', -) -external final NSNotificationName -_AVAudioSessionAvailableInputsChangeNotification; - -DartNSNotificationName get AVAudioSessionAvailableInputsChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionAvailableInputsChangeNotification, - retain: true, - release: true, +/// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include +/// AVAudioFormat in your config's objc-interfaces list. +/// +/// AVAudioFormat +extension type AVAudioFormat._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [AVAudioFormat] that points to the same underlying object as [other]. + AVAudioFormat.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioFormat', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), ); + } -@ffi.Native(symbol: 'AVAudioSessionCategoryAmbient') -external final AVAudioSessionCategory _AVAudioSessionCategoryAmbient; - -DartAVAudioSessionCategory get AVAudioSessionCategoryAmbient => - objc.NSString.fromPointer( - _AVAudioSessionCategoryAmbient, - retain: true, - release: true, + /// Constructs a [AVAudioFormat] that wraps the given raw object pointer. + AVAudioFormat.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioFormat', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), ); + } +} -@ffi.Native( - symbol: 'AVAudioSessionCategoryAudioProcessing', -) -external final AVAudioSessionCategory _AVAudioSessionCategoryAudioProcessing; - -DartAVAudioSessionCategory get AVAudioSessionCategoryAudioProcessing => - objc.NSString.fromPointer( - _AVAudioSessionCategoryAudioProcessing, - retain: true, - release: true, +/// AVAudioPlayer +extension type AVAudioPlayer._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioPlayer] that points to the same underlying object as [other]. + AVAudioPlayer.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioPlayer', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + assert(isA(object$)); + } -@ffi.Native(symbol: 'AVAudioSessionCategoryMultiRoute') -external final AVAudioSessionCategory _AVAudioSessionCategoryMultiRoute; - -DartAVAudioSessionCategory get AVAudioSessionCategoryMultiRoute => - objc.NSString.fromPointer( - _AVAudioSessionCategoryMultiRoute, - retain: true, - release: true, + /// Constructs a [AVAudioPlayer] that wraps the given raw object pointer. + AVAudioPlayer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioPlayer', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + assert(isA(object$)); + } -@ffi.Native( - symbol: 'AVAudioSessionCategoryPlayAndRecord', -) -external final AVAudioSessionCategory _AVAudioSessionCategoryPlayAndRecord; - -DartAVAudioSessionCategory get AVAudioSessionCategoryPlayAndRecord => - objc.NSString.fromPointer( - _AVAudioSessionCategoryPlayAndRecord, - retain: true, - release: true, - ); + /// Returns whether [obj] is an instance of [AVAudioPlayer]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_AVAudioPlayer, + ); -@ffi.Native(symbol: 'AVAudioSessionCategoryPlayback') -external final AVAudioSessionCategory _AVAudioSessionCategoryPlayback; + /// alloc + static AVAudioPlayer alloc() { + final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_alloc); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } -DartAVAudioSessionCategory get AVAudioSessionCategoryPlayback => - objc.NSString.fromPointer( - _AVAudioSessionCategoryPlayback, - retain: true, - release: true, + /// allocWithZone: + static AVAudioPlayer allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_AVAudioPlayer, + _sel_allocWithZone_, + zone, ); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } -@ffi.Native(symbol: 'AVAudioSessionCategoryRecord') -external final AVAudioSessionCategory _AVAudioSessionCategoryRecord; - -DartAVAudioSessionCategory get AVAudioSessionCategoryRecord => - objc.NSString.fromPointer( - _AVAudioSessionCategoryRecord, - retain: true, - release: true, - ); + /// new + static AVAudioPlayer new$() { + final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_new); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } -@ffi.Native(symbol: 'AVAudioSessionCategorySoloAmbient') -external final AVAudioSessionCategory _AVAudioSessionCategorySoloAmbient; + /// Returns a new instance of AVAudioPlayer constructed with the default `new` method. + AVAudioPlayer() : this.as(new$().object$); +} -DartAVAudioSessionCategory get AVAudioSessionCategorySoloAmbient => - objc.NSString.fromPointer( - _AVAudioSessionCategorySoloAmbient, - retain: true, - release: true, +extension AVAudioPlayer$Methods on AVAudioPlayer { + /// averagePowerForChannel: + double averagePowerForChannel(int channelNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.averagePowerForChannel:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_65s5ywFpret( + _$$ref.pointer, + _sel_averagePowerForChannel_, + channelNumber, + ) + : _objc_msgSend_65s5yw( + _$$ref.pointer, + _sel_averagePowerForChannel_, + channelNumber, + ); + } -@ffi.Native( - symbol: 'AVAudioSessionInterruptionNotification', -) -external final NSNotificationName _AVAudioSessionInterruptionNotification; - -DartNSNotificationName get AVAudioSessionInterruptionNotification => - objc.NSString.fromPointer( - _AVAudioSessionInterruptionNotification, - retain: true, - release: true, + /// channelAssignments + objc.NSArray? get channelAssignments { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.channelAssignments', + iOS: (false, (7, 0, 0)), + macOS: (true, null), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_channelAssignments); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } -@ffi.Native>( - symbol: 'AVAudioSessionInterruptionOptionKey', -) -external final ffi.Pointer -_AVAudioSessionInterruptionOptionKey; - -objc.NSString get AVAudioSessionInterruptionOptionKey => - objc.NSString.fromPointer( - _AVAudioSessionInterruptionOptionKey, - retain: true, - release: true, + /// currentDevice + objc.NSString? get currentDevice { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.currentDevice', + iOS: (true, null), + macOS: (false, (10, 13, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } -@ffi.Native>( - symbol: 'AVAudioSessionInterruptionReasonKey', -) -external final ffi.Pointer -_AVAudioSessionInterruptionReasonKey; - -objc.NSString get AVAudioSessionInterruptionReasonKey => - objc.NSString.fromPointer( - _AVAudioSessionInterruptionReasonKey, - retain: true, - release: true, + /// currentTime + double get currentTime { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.currentTime', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); + } -@ffi.Native>( - symbol: 'AVAudioSessionInterruptionTypeKey', -) -external final ffi.Pointer -_AVAudioSessionInterruptionTypeKey; - -objc.NSString get AVAudioSessionInterruptionTypeKey => - objc.NSString.fromPointer( - _AVAudioSessionInterruptionTypeKey, - retain: true, - release: true, + /// data + objc.NSData? get data { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.data', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } -@ffi.Native>( - symbol: 'AVAudioSessionInterruptionWasSuspendedKey', -) -external final ffi.Pointer -_AVAudioSessionInterruptionWasSuspendedKey; - -objc.NSString get AVAudioSessionInterruptionWasSuspendedKey => - objc.NSString.fromPointer( - _AVAudioSessionInterruptionWasSuspendedKey, - retain: true, - release: true, + /// delegate + AVAudioPlayerDelegate? get delegate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.delegate', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); + return $ret.address == 0 + ? null + : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); + } -@ffi.Native(symbol: 'AVAudioSessionLocationLower') -external AVAudioSessionLocation _AVAudioSessionLocationLower; - -DartAVAudioSessionLocation get AVAudioSessionLocationLower => - objc.NSString.fromPointer( - _AVAudioSessionLocationLower, - retain: true, - release: true, + /// deviceCurrentTime + double get deviceCurrentTime { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.deviceCurrentTime', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); + } -set AVAudioSessionLocationLower(DartAVAudioSessionLocation value) { - objc.NSString.fromPointer( - _AVAudioSessionLocationLower, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionLocationLower = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionLocationUpper') -external AVAudioSessionLocation _AVAudioSessionLocationUpper; - -DartAVAudioSessionLocation get AVAudioSessionLocationUpper => - objc.NSString.fromPointer( - _AVAudioSessionLocationUpper, - retain: true, - release: true, + /// duration + double get duration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.duration', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); + } -set AVAudioSessionLocationUpper(DartAVAudioSessionLocation value) { - objc.NSString.fromPointer( - _AVAudioSessionLocationUpper, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionLocationUpper = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionMediaServicesWereLostNotification', -) -external final NSNotificationName -_AVAudioSessionMediaServicesWereLostNotification; - -DartNSNotificationName get AVAudioSessionMediaServicesWereLostNotification => - objc.NSString.fromPointer( - _AVAudioSessionMediaServicesWereLostNotification, - retain: true, - release: true, + /// enableRate + bool get enableRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.enableRate', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); + } -@ffi.Native( - symbol: 'AVAudioSessionMediaServicesWereResetNotification', -) -external final NSNotificationName -_AVAudioSessionMediaServicesWereResetNotification; - -DartNSNotificationName get AVAudioSessionMediaServicesWereResetNotification => - objc.NSString.fromPointer( - _AVAudioSessionMediaServicesWereResetNotification, - retain: true, - release: true, + /// format + AVAudioFormat get format { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.format', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); + return AVAudioFormat.fromPointer($ret, retain: true, release: true); + } -@ffi.Native( - symbol: 'AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification', -) -external final NSNotificationName -_AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification; - -DartNSNotificationName -get AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification, - retain: true, - release: true, + /// init + AVAudioPlayer init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), ); - -@ffi.Native>( - symbol: 'AVAudioSessionMicrophoneInjectionIsAvailableKey', -) -external final ffi.Pointer -_AVAudioSessionMicrophoneInjectionIsAvailableKey; - -objc.NSString get AVAudioSessionMicrophoneInjectionIsAvailableKey => - objc.NSString.fromPointer( - _AVAudioSessionMicrophoneInjectionIsAvailableKey, - retain: true, - release: true, + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, ); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } -@ffi.Native(symbol: 'AVAudioSessionModeDefault') -external final AVAudioSessionMode _AVAudioSessionModeDefault; - -DartAVAudioSessionMode get AVAudioSessionModeDefault => - objc.NSString.fromPointer( - _AVAudioSessionModeDefault, - retain: true, - release: true, + /// initWithContentsOfURL:error: + AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithContentsOfURL:error:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } -@ffi.Native(symbol: 'AVAudioSessionModeGameChat') -external final AVAudioSessionMode _AVAudioSessionModeGameChat; - -DartAVAudioSessionMode get AVAudioSessionModeGameChat => - objc.NSString.fromPointer( - _AVAudioSessionModeGameChat, - retain: true, - release: true, + /// initWithContentsOfURL:fileTypeHint:error: + AVAudioPlayer? initWithContentsOfURL$1( + objc.NSURL url, { + objc.NSString? fileTypeHint, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = fileTypeHint?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithContentsOfURL:fileTypeHint:error:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_fileTypeHint_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } -@ffi.Native(symbol: 'AVAudioSessionModeMeasurement') -external final AVAudioSessionMode _AVAudioSessionModeMeasurement; - -DartAVAudioSessionMode get AVAudioSessionModeMeasurement => - objc.NSString.fromPointer( - _AVAudioSessionModeMeasurement, - retain: true, - release: true, + /// initWithData:error: + AVAudioPlayer? initWithData(objc.NSData data) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithData:error:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithData_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } -@ffi.Native(symbol: 'AVAudioSessionModeMoviePlayback') -external final AVAudioSessionMode _AVAudioSessionModeMoviePlayback; - -DartAVAudioSessionMode get AVAudioSessionModeMoviePlayback => - objc.NSString.fromPointer( - _AVAudioSessionModeMoviePlayback, - retain: true, - release: true, - ); - -@ffi.Native(symbol: 'AVAudioSessionModeShortFormVideo') -external final AVAudioSessionMode _AVAudioSessionModeShortFormVideo; - -DartAVAudioSessionMode get AVAudioSessionModeShortFormVideo => - objc.NSString.fromPointer( - _AVAudioSessionModeShortFormVideo, - retain: true, - release: true, + /// initWithData:fileTypeHint:error: + AVAudioPlayer? initWithData$1( + objc.NSData data, { + objc.NSString? fileTypeHint, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + final _$$ref$2 = fileTypeHint?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithData:fileTypeHint:error:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.retainAndReturnPointer(), + _sel_initWithData_fileTypeHint_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } -@ffi.Native(symbol: 'AVAudioSessionModeSpokenAudio') -external final AVAudioSessionMode _AVAudioSessionModeSpokenAudio; - -DartAVAudioSessionMode get AVAudioSessionModeSpokenAudio => - objc.NSString.fromPointer( - _AVAudioSessionModeSpokenAudio, - retain: true, - release: true, + /// intendedSpatialExperience + CASpatialAudioExperience get intendedSpatialExperience { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.intendedSpatialExperience', + iOS: (true, null), + macOS: (true, null), ); - -@ffi.Native(symbol: 'AVAudioSessionModeVideoChat') -external final AVAudioSessionMode _AVAudioSessionModeVideoChat; - -DartAVAudioSessionMode get AVAudioSessionModeVideoChat => - objc.NSString.fromPointer( - _AVAudioSessionModeVideoChat, - retain: true, - release: true, + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_intendedSpatialExperience, ); - -@ffi.Native(symbol: 'AVAudioSessionModeVideoRecording') -external final AVAudioSessionMode _AVAudioSessionModeVideoRecording; - -DartAVAudioSessionMode get AVAudioSessionModeVideoRecording => - objc.NSString.fromPointer( - _AVAudioSessionModeVideoRecording, + return CASpatialAudioExperience.fromPointer( + $ret, retain: true, release: true, ); + } -@ffi.Native(symbol: 'AVAudioSessionModeVoiceChat') -external final AVAudioSessionMode _AVAudioSessionModeVoiceChat; - -DartAVAudioSessionMode get AVAudioSessionModeVoiceChat => - objc.NSString.fromPointer( - _AVAudioSessionModeVoiceChat, - retain: true, - release: true, + /// isMeteringEnabled + bool get isMeteringEnabled { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.isMeteringEnabled', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); + } -@ffi.Native(symbol: 'AVAudioSessionModeVoicePrompt') -external final AVAudioSessionMode _AVAudioSessionModeVoicePrompt; - -DartAVAudioSessionMode get AVAudioSessionModeVoicePrompt => - objc.NSString.fromPointer( - _AVAudioSessionModeVoicePrompt, - retain: true, - release: true, + /// isPlaying + bool get isPlaying { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.isPlaying', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); + } -@ffi.Native>( - symbol: 'AVAudioSessionMuteStateKey', -) -external final ffi.Pointer _AVAudioSessionMuteStateKey; - -objc.NSString get AVAudioSessionMuteStateKey => objc.NSString.fromPointer( - _AVAudioSessionMuteStateKey, - retain: true, - release: true, -); - -@ffi.Native(symbol: 'AVAudioSessionOrientationBack') -external AVAudioSessionOrientation _AVAudioSessionOrientationBack; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationBack => - objc.NSString.fromPointer( - _AVAudioSessionOrientationBack, - retain: true, - release: true, + /// numberOfChannels + int get numberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.numberOfChannels', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfChannels); + } -set AVAudioSessionOrientationBack(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationBack, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationBack = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionOrientationBottom', -) -external AVAudioSessionOrientation _AVAudioSessionOrientationBottom; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationBottom => - objc.NSString.fromPointer( - _AVAudioSessionOrientationBottom, - retain: true, - release: true, + /// numberOfLoops + int get numberOfLoops { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.numberOfLoops', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); + } -set AVAudioSessionOrientationBottom(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationBottom, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationBottom = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionOrientationFront') -external AVAudioSessionOrientation _AVAudioSessionOrientationFront; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationFront => - objc.NSString.fromPointer( - _AVAudioSessionOrientationFront, - retain: true, - release: true, + /// pan + double get pan { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.pan', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); + } -set AVAudioSessionOrientationFront(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationFront, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationFront = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionOrientationLeft') -external AVAudioSessionOrientation _AVAudioSessionOrientationLeft; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationLeft => - objc.NSString.fromPointer( - _AVAudioSessionOrientationLeft, - retain: true, - release: true, + /// pause + void pause() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.pause', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); + } -set AVAudioSessionOrientationLeft(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationLeft, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationLeft = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionOrientationRight') -external AVAudioSessionOrientation _AVAudioSessionOrientationRight; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationRight => - objc.NSString.fromPointer( - _AVAudioSessionOrientationRight, - retain: true, - release: true, + /// peakPowerForChannel: + double peakPowerForChannel(int channelNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.peakPowerForChannel:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_65s5ywFpret( + _$$ref.pointer, + _sel_peakPowerForChannel_, + channelNumber, + ) + : _objc_msgSend_65s5yw( + _$$ref.pointer, + _sel_peakPowerForChannel_, + channelNumber, + ); + } -set AVAudioSessionOrientationRight(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationRight, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationRight = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionOrientationTop') -external AVAudioSessionOrientation _AVAudioSessionOrientationTop; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationTop => - objc.NSString.fromPointer( - _AVAudioSessionOrientationTop, - retain: true, - release: true, + /// play + bool play() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.play', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); + } -set AVAudioSessionOrientationTop(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationTop, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationTop = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionOutputMuteStateChangeNotification', -) -external final NSNotificationName -_AVAudioSessionOutputMuteStateChangeNotification; - -DartNSNotificationName get AVAudioSessionOutputMuteStateChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionOutputMuteStateChangeNotification, - retain: true, - release: true, + /// playAtTime: + bool playAtTime(double time) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.playAtTime:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time); + } -@ffi.Native( - symbol: 'AVAudioSessionPolarPatternCardioid', -) -external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternCardioid; - -DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternCardioid => - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternCardioid, - retain: true, - release: true, + /// prepareToPlay + bool prepareToPlay() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.prepareToPlay', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); + } -set AVAudioSessionPolarPatternCardioid(DartAVAudioSessionPolarPattern value) { - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternCardioid, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionPolarPatternCardioid = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionPolarPatternOmnidirectional', -) -external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternOmnidirectional; - -DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternOmnidirectional => - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternOmnidirectional, - retain: true, - release: true, + /// rate + double get rate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.rate', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); + } -set AVAudioSessionPolarPatternOmnidirectional( - DartAVAudioSessionPolarPattern value, -) { - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternOmnidirectional, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionPolarPatternOmnidirectional = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionPolarPatternStereo', -) -external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternStereo; - -DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternStereo => - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternStereo, - retain: true, - release: true, + /// setChannelAssignments: + set channelAssignments(objc.NSArray? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setChannelAssignments:', + iOS: (false, (7, 0, 0)), + macOS: (true, null), ); - -set AVAudioSessionPolarPatternStereo(DartAVAudioSessionPolarPattern value) { - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternStereo, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionPolarPatternStereo = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionPolarPatternSubcardioid', -) -external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternSubcardioid; - -DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternSubcardioid => - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternSubcardioid, - retain: true, - release: true, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setChannelAssignments_, + _$$ref$1?.pointer ?? ffi.nullptr, ); + } -set AVAudioSessionPolarPatternSubcardioid( - DartAVAudioSessionPolarPattern value, -) { - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternSubcardioid, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionPolarPatternSubcardioid = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionPortAVB') -external final AVAudioSessionPort _AVAudioSessionPortAVB; - -DartAVAudioSessionPort get AVAudioSessionPortAVB => objc.NSString.fromPointer( - _AVAudioSessionPortAVB, - retain: true, - release: true, -); - -@ffi.Native(symbol: 'AVAudioSessionPortAirPlay') -external final AVAudioSessionPort _AVAudioSessionPortAirPlay; - -DartAVAudioSessionPort get AVAudioSessionPortAirPlay => - objc.NSString.fromPointer( - _AVAudioSessionPortAirPlay, - retain: true, - release: true, + /// setCurrentDevice: + set currentDevice(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setCurrentDevice:', + iOS: (true, null), + macOS: (false, (10, 13, 0)), ); - -@ffi.Native(symbol: 'AVAudioSessionPortBluetoothA2DP') -external final AVAudioSessionPort _AVAudioSessionPortBluetoothA2DP; - -DartAVAudioSessionPort get AVAudioSessionPortBluetoothA2DP => - objc.NSString.fromPointer( - _AVAudioSessionPortBluetoothA2DP, - retain: true, - release: true, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setCurrentDevice_, + _$$ref$1?.pointer ?? ffi.nullptr, ); + } -@ffi.Native(symbol: 'AVAudioSessionPortBluetoothHFP') -external final AVAudioSessionPort _AVAudioSessionPortBluetoothHFP; - -DartAVAudioSessionPort get AVAudioSessionPortBluetoothHFP => - objc.NSString.fromPointer( - _AVAudioSessionPortBluetoothHFP, - retain: true, - release: true, + /// setCurrentTime: + set currentTime(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setCurrentTime:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortBluetoothLE') -external final AVAudioSessionPort _AVAudioSessionPortBluetoothLE; - -DartAVAudioSessionPort get AVAudioSessionPortBluetoothLE => - objc.NSString.fromPointer( - _AVAudioSessionPortBluetoothLE, - retain: true, - release: true, + /// setDelegate: + set delegate(AVAudioPlayerDelegate? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setDelegate:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); - -@ffi.Native(symbol: 'AVAudioSessionPortBuiltInMic') -external final AVAudioSessionPort _AVAudioSessionPortBuiltInMic; - -DartAVAudioSessionPort get AVAudioSessionPortBuiltInMic => - objc.NSString.fromPointer( - _AVAudioSessionPortBuiltInMic, - retain: true, - release: true, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setDelegate_, + _$$ref$1?.pointer ?? ffi.nullptr, ); + } -@ffi.Native(symbol: 'AVAudioSessionPortBuiltInReceiver') -external final AVAudioSessionPort _AVAudioSessionPortBuiltInReceiver; - -DartAVAudioSessionPort get AVAudioSessionPortBuiltInReceiver => - objc.NSString.fromPointer( - _AVAudioSessionPortBuiltInReceiver, - retain: true, - release: true, + /// setEnableRate: + set enableRate(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setEnableRate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortBuiltInSpeaker') -external final AVAudioSessionPort _AVAudioSessionPortBuiltInSpeaker; - -DartAVAudioSessionPort get AVAudioSessionPortBuiltInSpeaker => - objc.NSString.fromPointer( - _AVAudioSessionPortBuiltInSpeaker, - retain: true, - release: true, + /// setIntendedSpatialExperience: + set intendedSpatialExperience(CASpatialAudioExperience value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setIntendedSpatialExperience:', + iOS: (true, null), + macOS: (true, null), ); - -@ffi.Native(symbol: 'AVAudioSessionPortCarAudio') -external final AVAudioSessionPort _AVAudioSessionPortCarAudio; - -DartAVAudioSessionPort get AVAudioSessionPortCarAudio => - objc.NSString.fromPointer( - _AVAudioSessionPortCarAudio, - retain: true, - release: true, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setIntendedSpatialExperience_, + _$$ref$1.pointer, ); + } -@ffi.Native( - symbol: 'AVAudioSessionPortContinuityMicrophone', -) -external final AVAudioSessionPort _AVAudioSessionPortContinuityMicrophone; - -DartAVAudioSessionPort get AVAudioSessionPortContinuityMicrophone => - objc.NSString.fromPointer( - _AVAudioSessionPortContinuityMicrophone, - retain: true, - release: true, + /// setMeteringEnabled: + set isMeteringEnabled(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setMeteringEnabled:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setMeteringEnabled_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortDisplayPort') -external final AVAudioSessionPort _AVAudioSessionPortDisplayPort; - -DartAVAudioSessionPort get AVAudioSessionPortDisplayPort => - objc.NSString.fromPointer( - _AVAudioSessionPortDisplayPort, - retain: true, - release: true, + /// setNumberOfLoops: + set numberOfLoops(int value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setNumberOfLoops:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortFireWire') -external final AVAudioSessionPort _AVAudioSessionPortFireWire; - -DartAVAudioSessionPort get AVAudioSessionPortFireWire => - objc.NSString.fromPointer( - _AVAudioSessionPortFireWire, - retain: true, - release: true, + /// setPan: + set pan(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setPan:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortHDMI') -external final AVAudioSessionPort _AVAudioSessionPortHDMI; - -DartAVAudioSessionPort get AVAudioSessionPortHDMI => objc.NSString.fromPointer( - _AVAudioSessionPortHDMI, - retain: true, - release: true, -); - -@ffi.Native(symbol: 'AVAudioSessionPortHeadphones') -external final AVAudioSessionPort _AVAudioSessionPortHeadphones; - -DartAVAudioSessionPort get AVAudioSessionPortHeadphones => - objc.NSString.fromPointer( - _AVAudioSessionPortHeadphones, - retain: true, - release: true, + /// setRate: + set rate(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setRate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortHeadsetMic') -external final AVAudioSessionPort _AVAudioSessionPortHeadsetMic; - -DartAVAudioSessionPort get AVAudioSessionPortHeadsetMic => - objc.NSString.fromPointer( - _AVAudioSessionPortHeadsetMic, - retain: true, - release: true, + /// setVolume: + set volume(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setVolume:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortLineIn') -external final AVAudioSessionPort _AVAudioSessionPortLineIn; - -DartAVAudioSessionPort get AVAudioSessionPortLineIn => - objc.NSString.fromPointer( - _AVAudioSessionPortLineIn, - retain: true, - release: true, + /// setVolume:fadeDuration: + void setVolume(double volume, {required double fadeDuration}) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setVolume:fadeDuration:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), ); - -@ffi.Native(symbol: 'AVAudioSessionPortLineOut') -external final AVAudioSessionPort _AVAudioSessionPortLineOut; - -DartAVAudioSessionPort get AVAudioSessionPortLineOut => - objc.NSString.fromPointer( - _AVAudioSessionPortLineOut, - retain: true, - release: true, + _objc_msgSend_1p4uk9e( + _$$ref.pointer, + _sel_setVolume_fadeDuration_, + volume, + fadeDuration, ); + } -@ffi.Native(symbol: 'AVAudioSessionPortPCI') -external final AVAudioSessionPort _AVAudioSessionPortPCI; - -DartAVAudioSessionPort get AVAudioSessionPortPCI => objc.NSString.fromPointer( - _AVAudioSessionPortPCI, - retain: true, - release: true, -); - -@ffi.Native(symbol: 'AVAudioSessionPortThunderbolt') -external final AVAudioSessionPort _AVAudioSessionPortThunderbolt; - -DartAVAudioSessionPort get AVAudioSessionPortThunderbolt => - objc.NSString.fromPointer( - _AVAudioSessionPortThunderbolt, - retain: true, - release: true, + /// settings + objc.NSDictionary get settings { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.settings', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_settings); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } -@ffi.Native(symbol: 'AVAudioSessionPortUSBAudio') -external final AVAudioSessionPort _AVAudioSessionPortUSBAudio; - -DartAVAudioSessionPort get AVAudioSessionPortUSBAudio => - objc.NSString.fromPointer( - _AVAudioSessionPortUSBAudio, - retain: true, - release: true, + /// stop + void stop() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.stop', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); + } -@ffi.Native(symbol: 'AVAudioSessionPortVirtual') -external final AVAudioSessionPort _AVAudioSessionPortVirtual; - -DartAVAudioSessionPort get AVAudioSessionPortVirtual => - objc.NSString.fromPointer( - _AVAudioSessionPortVirtual, - retain: true, - release: true, + /// updateMeters + void updateMeters() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.updateMeters', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); + } -@ffi.Native( - symbol: 'AVAudioSessionRenderingCapabilitiesChangeNotification', -) -external final NSNotificationName -_AVAudioSessionRenderingCapabilitiesChangeNotification; - -DartNSNotificationName -get AVAudioSessionRenderingCapabilitiesChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionRenderingCapabilitiesChangeNotification, - retain: true, - release: true, + /// url + objc.NSURL? get url { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.url', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } -@ffi.Native( - symbol: 'AVAudioSessionRenderingModeChangeNotification', -) -external final NSNotificationName -_AVAudioSessionRenderingModeChangeNotification; - -DartNSNotificationName get AVAudioSessionRenderingModeChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionRenderingModeChangeNotification, - retain: true, - release: true, + /// volume + double get volume { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.volume', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); + } +} -@ffi.Native>( - symbol: 'AVAudioSessionRenderingModeNewRenderingModeKey', -) -external final ffi.Pointer -_AVAudioSessionRenderingModeNewRenderingModeKey; +/// WARNING: AVAudioPlayerDelegate is a stub. To generate bindings for this class, include +/// AVAudioPlayerDelegate in your config's objc-protocols list. +/// +/// AVAudioPlayerDelegate +extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [AVAudioPlayerDelegate] that points to the same underlying object as [other]. + AVAudioPlayerDelegate.as(objc.ObjCObject other) : object$ = other; -objc.NSString get AVAudioSessionRenderingModeNewRenderingModeKey => - objc.NSString.fromPointer( - _AVAudioSessionRenderingModeNewRenderingModeKey, - retain: true, - release: true, - ); + /// Constructs a [AVAudioPlayerDelegate] that wraps the given raw object pointer. + AVAudioPlayerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} -@ffi.Native(symbol: 'AVAudioSessionRouteChangeNotification') -external final NSNotificationName _AVAudioSessionRouteChangeNotification; +/// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include +/// CASpatialAudioExperience in your config's objc-interfaces list. +/// +/// CASpatialAudioExperience +extension type CASpatialAudioExperience._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [CASpatialAudioExperience] that points to the same underlying object as [other]. + CASpatialAudioExperience.as(objc.ObjCObject other) : object$ = other {} -DartNSNotificationName get AVAudioSessionRouteChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionRouteChangeNotification, - retain: true, - release: true, - ); + /// Constructs a [CASpatialAudioExperience] that wraps the given raw object pointer. + CASpatialAudioExperience.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} @ffi.Native>( - symbol: 'AVAudioSessionRouteChangePreviousRouteKey', + symbol: 'OBJC_CLASS_\$_AVAudioPlayer', ) -external final ffi.Pointer -_AVAudioSessionRouteChangePreviousRouteKey; - -objc.NSString get AVAudioSessionRouteChangePreviousRouteKey => - objc.NSString.fromPointer( - _AVAudioSessionRouteChangePreviousRouteKey, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVAudioSessionRouteChangeReasonKey', -) -external final ffi.Pointer -_AVAudioSessionRouteChangeReasonKey; - -objc.NSString get AVAudioSessionRouteChangeReasonKey => - objc.NSString.fromPointer( - _AVAudioSessionRouteChangeReasonKey, - retain: true, - release: true, - ); - -@ffi.Native( - symbol: 'AVAudioSessionSilenceSecondaryAudioHintNotification', -) -external final NSNotificationName -_AVAudioSessionSilenceSecondaryAudioHintNotification; - -DartNSNotificationName -get AVAudioSessionSilenceSecondaryAudioHintNotification => - objc.NSString.fromPointer( - _AVAudioSessionSilenceSecondaryAudioHintNotification, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVAudioSessionSilenceSecondaryAudioHintTypeKey', -) -external final ffi.Pointer -_AVAudioSessionSilenceSecondaryAudioHintTypeKey; - -objc.NSString get AVAudioSessionSilenceSecondaryAudioHintTypeKey => - objc.NSString.fromPointer( - _AVAudioSessionSilenceSecondaryAudioHintTypeKey, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVAudioSessionSpatialAudioEnabledKey', -) -external final ffi.Pointer -_AVAudioSessionSpatialAudioEnabledKey; - -objc.NSString get AVAudioSessionSpatialAudioEnabledKey => - objc.NSString.fromPointer( - _AVAudioSessionSpatialAudioEnabledKey, - retain: true, - release: true, - ); - -@ffi.Native( - symbol: 'AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification', -) -external final NSNotificationName -_AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification; - -DartNSNotificationName -get AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification => - objc.NSString.fromPointer( - _AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification, - retain: true, - release: true, - ); - -@ffi.Native( - symbol: 'AVAudioSessionUserIntentToUnmuteOutputNotification', -) -external final NSNotificationName -_AVAudioSessionUserIntentToUnmuteOutputNotification; - -DartNSNotificationName get AVAudioSessionUserIntentToUnmuteOutputNotification => - objc.NSString.fromPointer( - _AVAudioSessionUserIntentToUnmuteOutputNotification, - retain: true, - release: true, - ); - -@ffi.Native>(symbol: 'AVChannelLayoutKey') -external final ffi.Pointer _AVChannelLayoutKey; - -objc.NSString get AVChannelLayoutKey => - objc.NSString.fromPointer(_AVChannelLayoutKey, retain: true, release: true); - -@ffi.Native>( - symbol: 'AVEncoderASPFrequencyKey', -) -external final ffi.Pointer _AVEncoderASPFrequencyKey; - -objc.NSString get AVEncoderASPFrequencyKey => objc.NSString.fromPointer( - _AVEncoderASPFrequencyKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVEncoderAudioQualityForVBRKey', -) -external final ffi.Pointer _AVEncoderAudioQualityForVBRKey; - -objc.NSString get AVEncoderAudioQualityForVBRKey => objc.NSString.fromPointer( - _AVEncoderAudioQualityForVBRKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVEncoderAudioQualityKey', -) -external final ffi.Pointer _AVEncoderAudioQualityKey; - -objc.NSString get AVEncoderAudioQualityKey => objc.NSString.fromPointer( - _AVEncoderAudioQualityKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVEncoderBitDepthHintKey', -) -external final ffi.Pointer _AVEncoderBitDepthHintKey; - -objc.NSString get AVEncoderBitDepthHintKey => objc.NSString.fromPointer( - _AVEncoderBitDepthHintKey, - retain: true, - release: true, +external ffi.Pointer _class_AVAudioPlayer_raw; +final _class_AVAudioPlayer = objc.getClass( + "AVAudioPlayer", + () => ffi.Native.addressOf>( + _class_AVAudioPlayer_raw, + ).cast(), ); - -@ffi.Native>(symbol: 'AVEncoderBitRateKey') -external final ffi.Pointer _AVEncoderBitRateKey; - -objc.NSString get AVEncoderBitRateKey => objc.NSString.fromPointer( - _AVEncoderBitRateKey, - retain: true, - release: true, +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18chyc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1hz7y9r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1p4uk9e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + double, + ) + >(); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1s56lr9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_4sp4xj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_65s5yw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_65s5ywFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_91o635 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hwm8nu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_v5hmet = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_xw2lbc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +late final _sel_averagePowerForChannel_ = objc.registerName( + "averagePowerForChannel:", ); - -@ffi.Native>( - symbol: 'AVEncoderBitRatePerChannelKey', -) -external final ffi.Pointer _AVEncoderBitRatePerChannelKey; - -objc.NSString get AVEncoderBitRatePerChannelKey => objc.NSString.fromPointer( - _AVEncoderBitRatePerChannelKey, - retain: true, - release: true, +late final _sel_channelAssignments = objc.registerName("channelAssignments"); +late final _sel_currentDevice = objc.registerName("currentDevice"); +late final _sel_currentTime = objc.registerName("currentTime"); +late final _sel_data = objc.registerName("data"); +late final _sel_delegate = objc.registerName("delegate"); +late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); +late final _sel_duration = objc.registerName("duration"); +late final _sel_enableRate = objc.registerName("enableRate"); +late final _sel_format = objc.registerName("format"); +late final _sel_init = objc.registerName("init"); +late final _sel_initWithContentsOfURL_error_ = objc.registerName( + "initWithContentsOfURL:error:", ); - -@ffi.Native>( - symbol: 'AVEncoderBitRateStrategyKey', -) -external final ffi.Pointer _AVEncoderBitRateStrategyKey; - -objc.NSString get AVEncoderBitRateStrategyKey => objc.NSString.fromPointer( - _AVEncoderBitRateStrategyKey, - retain: true, - release: true, +late final _sel_initWithContentsOfURL_fileTypeHint_error_ = objc.registerName( + "initWithContentsOfURL:fileTypeHint:error:", ); - -@ffi.Native>( - symbol: 'AVEncoderContentSourceKey', -) -external final ffi.Pointer _AVEncoderContentSourceKey; - -objc.NSString get AVEncoderContentSourceKey => objc.NSString.fromPointer( - _AVEncoderContentSourceKey, - retain: true, - release: true, +late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); +late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( + "initWithData:fileTypeHint:error:", ); - -@ffi.Native>( - symbol: 'AVEncoderDynamicRangeControlConfigurationKey', -) -external final ffi.Pointer -_AVEncoderDynamicRangeControlConfigurationKey; - -objc.NSString get AVEncoderDynamicRangeControlConfigurationKey => - objc.NSString.fromPointer( - _AVEncoderDynamicRangeControlConfigurationKey, - retain: true, - release: true, - ); - -@ffi.Native>(symbol: 'AVFormatIDKey') -external final ffi.Pointer _AVFormatIDKey; - -objc.NSString get AVFormatIDKey => - objc.NSString.fromPointer(_AVFormatIDKey, retain: true, release: true); - -@ffi.Native>(symbol: 'AVLinearPCMBitDepthKey') -external final ffi.Pointer _AVLinearPCMBitDepthKey; - -objc.NSString get AVLinearPCMBitDepthKey => objc.NSString.fromPointer( - _AVLinearPCMBitDepthKey, - retain: true, - release: true, +late final _sel_intendedSpatialExperience = objc.registerName( + "intendedSpatialExperience", ); - -@ffi.Native>( - symbol: 'AVLinearPCMIsBigEndianKey', -) -external final ffi.Pointer _AVLinearPCMIsBigEndianKey; - -objc.NSString get AVLinearPCMIsBigEndianKey => objc.NSString.fromPointer( - _AVLinearPCMIsBigEndianKey, - retain: true, - release: true, +late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); +late final _sel_isPlaying = objc.registerName("isPlaying"); +late final _sel_new = objc.registerName("new"); +late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); +late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); +late final _sel_pan = objc.registerName("pan"); +late final _sel_pause = objc.registerName("pause"); +late final _sel_peakPowerForChannel_ = objc.registerName( + "peakPowerForChannel:", ); - -@ffi.Native>(symbol: 'AVLinearPCMIsFloatKey') -external final ffi.Pointer _AVLinearPCMIsFloatKey; - -objc.NSString get AVLinearPCMIsFloatKey => objc.NSString.fromPointer( - _AVLinearPCMIsFloatKey, - retain: true, - release: true, +late final _sel_play = objc.registerName("play"); +late final _sel_playAtTime_ = objc.registerName("playAtTime:"); +late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); +late final _sel_rate = objc.registerName("rate"); +late final _sel_setChannelAssignments_ = objc.registerName( + "setChannelAssignments:", ); - -@ffi.Native>( - symbol: 'AVLinearPCMIsNonInterleaved', -) -external final ffi.Pointer _AVLinearPCMIsNonInterleaved; - -objc.NSString get AVLinearPCMIsNonInterleaved => objc.NSString.fromPointer( - _AVLinearPCMIsNonInterleaved, - retain: true, - release: true, +late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); +late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); +late final _sel_setDelegate_ = objc.registerName("setDelegate:"); +late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); +late final _sel_setIntendedSpatialExperience_ = objc.registerName( + "setIntendedSpatialExperience:", ); - -@ffi.Native>(symbol: 'AVNumberOfChannelsKey') -external final ffi.Pointer _AVNumberOfChannelsKey; - -objc.NSString get AVNumberOfChannelsKey => objc.NSString.fromPointer( - _AVNumberOfChannelsKey, - retain: true, - release: true, +late final _sel_setMeteringEnabled_ = objc.registerName("setMeteringEnabled:"); +late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); +late final _sel_setPan_ = objc.registerName("setPan:"); +late final _sel_setRate_ = objc.registerName("setRate:"); +late final _sel_setVolume_ = objc.registerName("setVolume:"); +late final _sel_setVolume_fadeDuration_ = objc.registerName( + "setVolume:fadeDuration:", ); - -@ffi.Native>( - symbol: 'AVSampleRateConverterAlgorithmKey', -) -external final ffi.Pointer -_AVSampleRateConverterAlgorithmKey; - -objc.NSString get AVSampleRateConverterAlgorithmKey => - objc.NSString.fromPointer( - _AVSampleRateConverterAlgorithmKey, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVSampleRateConverterAlgorithm_Mastering', -) -external final ffi.Pointer -_AVSampleRateConverterAlgorithm_Mastering; - -objc.NSString get AVSampleRateConverterAlgorithm_Mastering => - objc.NSString.fromPointer( - _AVSampleRateConverterAlgorithm_Mastering, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVSampleRateConverterAlgorithm_MinimumPhase', -) -external final ffi.Pointer -_AVSampleRateConverterAlgorithm_MinimumPhase; - -objc.NSString get AVSampleRateConverterAlgorithm_MinimumPhase => - objc.NSString.fromPointer( - _AVSampleRateConverterAlgorithm_MinimumPhase, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVSampleRateConverterAlgorithm_Normal', -) -external final ffi.Pointer -_AVSampleRateConverterAlgorithm_Normal; - -objc.NSString get AVSampleRateConverterAlgorithm_Normal => - objc.NSString.fromPointer( - _AVSampleRateConverterAlgorithm_Normal, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVSampleRateConverterAudioQualityKey', -) -external final ffi.Pointer -_AVSampleRateConverterAudioQualityKey; - -objc.NSString get AVSampleRateConverterAudioQualityKey => - objc.NSString.fromPointer( - _AVSampleRateConverterAudioQualityKey, - retain: true, - release: true, - ); - -@ffi.Native>(symbol: 'AVSampleRateKey') -external final ffi.Pointer _AVSampleRateKey; - -objc.NSString get AVSampleRateKey => - objc.NSString.fromPointer(_AVSampleRateKey, retain: true, release: true); - -@Deprecated('Deprecated') -@ffi.Native() -external int AXAPIEnabled(); - -@ffi.Native() -external int AXIsProcessTrusted(); - -@ffi.Native() -external int AXIsProcessTrustedWithOptions(CFDictionaryRef options); - -@Deprecated('Deprecated') -@ffi.Native(symbol: 'AXMakeProcessTrusted') -external int _AXMakeProcessTrusted(CFStringRef executablePath); - -AXError AXMakeProcessTrusted(CFStringRef executablePath) { - return AXError.fromValue(_AXMakeProcessTrusted(executablePath)); -} - -@ffi.Native< - SInt32 Function( - AXObserverRef, - AXUIElementRef, - CFStringRef, - ffi.Pointer, - ) ->(symbol: 'AXObserverAddNotification') -external int _AXObserverAddNotification( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, - ffi.Pointer refcon, -); - -AXError AXObserverAddNotification( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, - ffi.Pointer refcon, -) { - return AXError.fromValue( - _AXObserverAddNotification(observer, element, notification, refcon), - ); -} - -@ffi.Native< - SInt32 Function(pid_t, AXObserverCallback, ffi.Pointer) ->(symbol: 'AXObserverCreate') -external int _AXObserverCreate( - int application, - AXObserverCallback callback, - ffi.Pointer outObserver, -); - -AXError AXObserverCreate( - Dart__int32_t application, - AXObserverCallback callback, - ffi.Pointer outObserver, -) { - return AXError.fromValue( - _AXObserverCreate(application, callback, outObserver), - ); -} - -@ffi.Native< - SInt32 Function(pid_t, AXObserverCallbackWithInfo, ffi.Pointer) ->(symbol: 'AXObserverCreateWithInfoCallback') -external int _AXObserverCreateWithInfoCallback( - int application, - AXObserverCallbackWithInfo callback, - ffi.Pointer outObserver, -); - -AXError AXObserverCreateWithInfoCallback( - Dart__int32_t application, - AXObserverCallbackWithInfo callback, - ffi.Pointer outObserver, -) { - return AXError.fromValue( - _AXObserverCreateWithInfoCallback(application, callback, outObserver), - ); -} - -@ffi.Native() -external CFRunLoopSourceRef AXObserverGetRunLoopSource(AXObserverRef observer); - -@ffi.Native() -external int AXObserverGetTypeID(); - -@ffi.Native( - symbol: 'AXObserverRemoveNotification', -) -external int _AXObserverRemoveNotification( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, -); - -AXError AXObserverRemoveNotification( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, -) { - return AXError.fromValue( - _AXObserverRemoveNotification(observer, element, notification), - ); -} - -@ffi.Native< - AXTextMarkerRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) ->() -external AXTextMarkerRef AXTextMarkerCreate( - CFAllocatorRef allocator, - ffi.Pointer bytes, - int length, -); - -@ffi.Native Function(AXTextMarkerRef)>() -external ffi.Pointer AXTextMarkerGetBytePtr( - AXTextMarkerRef theTextMarker, -); - -@ffi.Native() -external int AXTextMarkerGetLength(AXTextMarkerRef marker); - -@ffi.Native() -external int AXTextMarkerGetTypeID(); - -@ffi.Native() -external AXTextMarkerRef AXTextMarkerRangeCopyEndMarker( - AXTextMarkerRangeRef textMarkerRange, -); - -@ffi.Native() -external AXTextMarkerRef AXTextMarkerRangeCopyStartMarker( - AXTextMarkerRangeRef textMarkerRange, -); - -@ffi.Native< - AXTextMarkerRangeRef Function( - CFAllocatorRef, - AXTextMarkerRef, - AXTextMarkerRef, - ) ->() -external AXTextMarkerRangeRef AXTextMarkerRangeCreate( - CFAllocatorRef allocator, - AXTextMarkerRef startMarker, - AXTextMarkerRef endMarker, -); - -@ffi.Native< - AXTextMarkerRangeRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - ffi.Pointer, - CFIndex, - ) ->() -external AXTextMarkerRangeRef AXTextMarkerRangeCreateWithBytes( - CFAllocatorRef allocator, - ffi.Pointer startMarkerBytes, - int startMarkerLength, - ffi.Pointer endMarkerBytes, - int endMarkerLength, -); - -@ffi.Native() -external int AXTextMarkerRangeGetTypeID(); - -@ffi.Native< - SInt32 Function(AXUIElementRef, CFStringRef, ffi.Pointer) ->(symbol: 'AXUIElementCopyActionDescription') -external int _AXUIElementCopyActionDescription( - AXUIElementRef element, - CFStringRef action, - ffi.Pointer description, -); - -AXError AXUIElementCopyActionDescription( - AXUIElementRef element, - CFStringRef action, - ffi.Pointer description, -) { - return AXError.fromValue( - _AXUIElementCopyActionDescription(element, action, description), - ); -} - -@ffi.Native)>( - symbol: 'AXUIElementCopyActionNames', -) -external int _AXUIElementCopyActionNames( - AXUIElementRef element, - ffi.Pointer names, -); - -AXError AXUIElementCopyActionNames( - AXUIElementRef element, - ffi.Pointer names, -) { - return AXError.fromValue(_AXUIElementCopyActionNames(element, names)); -} - -@ffi.Native)>( - symbol: 'AXUIElementCopyAttributeNames', -) -external int _AXUIElementCopyAttributeNames( - AXUIElementRef element, - ffi.Pointer names, -); - -AXError AXUIElementCopyAttributeNames( - AXUIElementRef element, - ffi.Pointer names, -) { - return AXError.fromValue(_AXUIElementCopyAttributeNames(element, names)); -} - -@ffi.Native< - SInt32 Function(AXUIElementRef, CFStringRef, ffi.Pointer) ->(symbol: 'AXUIElementCopyAttributeValue') -external int _AXUIElementCopyAttributeValue( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer value, -); - -AXError AXUIElementCopyAttributeValue( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer value, -) { - return AXError.fromValue( - _AXUIElementCopyAttributeValue(element, attribute, value), - ); -} - -@ffi.Native< - SInt32 Function( - AXUIElementRef, - CFStringRef, - CFIndex, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'AXUIElementCopyAttributeValues') -external int _AXUIElementCopyAttributeValues( - AXUIElementRef element, - CFStringRef attribute, - int index$1, - int maxValues, - ffi.Pointer values, -); - -AXError AXUIElementCopyAttributeValues( - AXUIElementRef element, - CFStringRef attribute, - DartCFIndex index$1, - DartCFIndex maxValues, - ffi.Pointer values, -) { - return AXError.fromValue( - _AXUIElementCopyAttributeValues( - element, - attribute, - index$1, - maxValues, - values, - ), - ); -} - -@ffi.Native< - SInt32 Function( - AXUIElementRef, - ffi.Float, - ffi.Float, - ffi.Pointer, - ) ->(symbol: 'AXUIElementCopyElementAtPosition') -external int _AXUIElementCopyElementAtPosition( - AXUIElementRef application, - double x, - double y, - ffi.Pointer element, -); - -AXError AXUIElementCopyElementAtPosition( - AXUIElementRef application, - double x, - double y, - ffi.Pointer element, -) { - return AXError.fromValue( - _AXUIElementCopyElementAtPosition(application, x, y, element), - ); -} - -@ffi.Native< - SInt32 Function(AXUIElementRef, CFArrayRef, UInt32, ffi.Pointer) ->(symbol: 'AXUIElementCopyMultipleAttributeValues') -external int _AXUIElementCopyMultipleAttributeValues( - AXUIElementRef element, - CFArrayRef attributes, - int options, - ffi.Pointer values, -); - -AXError AXUIElementCopyMultipleAttributeValues( - AXUIElementRef element, - CFArrayRef attributes, - DartUInt32 options, - ffi.Pointer values, -) { - return AXError.fromValue( - _AXUIElementCopyMultipleAttributeValues( - element, - attributes, - options, - values, - ), - ); -} - -@ffi.Native)>( - symbol: 'AXUIElementCopyParameterizedAttributeNames', -) -external int _AXUIElementCopyParameterizedAttributeNames( - AXUIElementRef element, - ffi.Pointer names, -); - -AXError AXUIElementCopyParameterizedAttributeNames( - AXUIElementRef element, - ffi.Pointer names, -) { - return AXError.fromValue( - _AXUIElementCopyParameterizedAttributeNames(element, names), - ); -} - -@ffi.Native< - SInt32 Function( - AXUIElementRef, - CFStringRef, - CFTypeRef, - ffi.Pointer, - ) ->(symbol: 'AXUIElementCopyParameterizedAttributeValue') -external int _AXUIElementCopyParameterizedAttributeValue( - AXUIElementRef element, - CFStringRef parameterizedAttribute, - CFTypeRef parameter, - ffi.Pointer result, -); - -AXError AXUIElementCopyParameterizedAttributeValue( - AXUIElementRef element, - CFStringRef parameterizedAttribute, - CFTypeRef parameter, - ffi.Pointer result, -) { - return AXError.fromValue( - _AXUIElementCopyParameterizedAttributeValue( - element, - parameterizedAttribute, - parameter, - result, - ), - ); -} - -@ffi.Native() -external AXUIElementRef AXUIElementCreateApplication(int pid); - -@ffi.Native() -external AXUIElementRef AXUIElementCreateSystemWide(); - -@ffi.Native)>( - symbol: 'AXUIElementGetAttributeValueCount', -) -external int _AXUIElementGetAttributeValueCount( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer count, -); - -AXError AXUIElementGetAttributeValueCount( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer count, -) { - return AXError.fromValue( - _AXUIElementGetAttributeValueCount(element, attribute, count), - ); -} - -@ffi.Native)>( - symbol: 'AXUIElementGetPid', -) -external int _AXUIElementGetPid(AXUIElementRef element, ffi.Pointer pid); - -AXError AXUIElementGetPid(AXUIElementRef element, ffi.Pointer pid) { - return AXError.fromValue(_AXUIElementGetPid(element, pid)); -} - -@ffi.Native() -external int AXUIElementGetTypeID(); - -@ffi.Native)>( - symbol: 'AXUIElementIsAttributeSettable', -) -external int _AXUIElementIsAttributeSettable( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer settable, -); - -AXError AXUIElementIsAttributeSettable( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer settable, -) { - return AXError.fromValue( - _AXUIElementIsAttributeSettable(element, attribute, settable), - ); -} - -@ffi.Native( - symbol: 'AXUIElementPerformAction', -) -external int _AXUIElementPerformAction( - AXUIElementRef element, - CFStringRef action, -); - -AXError AXUIElementPerformAction(AXUIElementRef element, CFStringRef action) { - return AXError.fromValue(_AXUIElementPerformAction(element, action)); -} - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'AXUIElementPostKeyboardEvent', -) -external int _AXUIElementPostKeyboardEvent( - AXUIElementRef application, - int keyChar, - int virtualKey, - int keyDown, -); - -AXError AXUIElementPostKeyboardEvent( - AXUIElementRef application, - DartCGCharCode keyChar, - DartCGKeyCode virtualKey, - DartBoolean keyDown, -) { - return AXError.fromValue( - _AXUIElementPostKeyboardEvent(application, keyChar, virtualKey, keyDown), - ); -} - -@ffi.Native( - symbol: 'AXUIElementSetAttributeValue', -) -external int _AXUIElementSetAttributeValue( - AXUIElementRef element, - CFStringRef attribute, - CFTypeRef value, -); - -AXError AXUIElementSetAttributeValue( - AXUIElementRef element, - CFStringRef attribute, - CFTypeRef value, -) { - return AXError.fromValue( - _AXUIElementSetAttributeValue(element, attribute, value), - ); -} - -@ffi.Native( - symbol: 'AXUIElementSetMessagingTimeout', -) -external int _AXUIElementSetMessagingTimeout( - AXUIElementRef element, - double timeoutInSeconds, -); - -AXError AXUIElementSetMessagingTimeout( - AXUIElementRef element, - double timeoutInSeconds, -) { - return AXError.fromValue( - _AXUIElementSetMessagingTimeout(element, timeoutInSeconds), - ); -} - -@ffi.Native)>( - symbol: 'AXValueCreate', -) -external AXValueRef _AXValueCreate(int theType, ffi.Pointer valuePtr); - -AXValueRef AXValueCreate(AXValueType theType, ffi.Pointer valuePtr) { - return _AXValueCreate(theType.value, valuePtr); -} - -@ffi.Native(symbol: 'AXValueGetType') -external int _AXValueGetType(AXValueRef value); - -AXValueType AXValueGetType(AXValueRef value) { - return AXValueType.fromValue(_AXValueGetType(value)); -} - -@ffi.Native() -external int AXValueGetTypeID(); - -@ffi.Native)>( - symbol: 'AXValueGetValue', -) -external int _AXValueGetValue( - AXValueRef value, - int theType, - ffi.Pointer valuePtr, -); - -DartBoolean AXValueGetValue( - AXValueRef value, - AXValueType theType, - ffi.Pointer valuePtr, -) { - return _AXValueGetValue(value, theType.value, valuePtr); -} - -@Deprecated('Deprecated') -@ffi.Native() -external int AbsoluteDeltaToDuration( - AbsoluteTime leftAbsoluteTime, - AbsoluteTime rightAbsoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Nanoseconds AbsoluteDeltaToNanoseconds( - AbsoluteTime leftAbsoluteTime, - AbsoluteTime rightAbsoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int AbsoluteToDuration(AbsoluteTime absoluteTime); - -@Deprecated('Deprecated') -@ffi.Native() -external Nanoseconds AbsoluteToNanoseconds(AbsoluteTime absoluteTime); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int AcquireIconRef(IconRef theIconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime AddAbsoluteToAbsolute( - AbsoluteTime absoluteTime1, - AbsoluteTime absoluteTime2, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int AddAtomic(int amount, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int AddAtomic16(int amount, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int AddAtomic8(int amount, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionTag, - SInt32, - SInt32, - ffi.Pointer, - ) ->() -external int AddCollectionItem( - Collection c, - int tag, - int id, - int itemSize, - ffi.Pointer itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int AddCollectionItemHdl( - Collection aCollection, - int tag, - int id, - Handle itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime AddDurationToAbsolute( - int duration, - AbsoluteTime absoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FolderType, - FolderDescFlags, - FolderClass, - FolderLocation, - OSType, - OSType, - ConstStrFileNameParam, - Boolean, - ) ->() -external int AddFolderDescriptor( - int foldType, - int flags, - int foldClass, - int foldLocation, - int badgeSignature, - int badgeType, - ConstStrFileNameParam name, - int replaceFlag, -); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime AddNanosecondsToAbsolute( - Nanoseconds nanoseconds, - AbsoluteTime absoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void AddResource( - Handle theData, - int theType, - int theID, - ConstStr255Param name, -); - -@ffi.Native< - OSStatus Function( - AuthorizationRef, - AuthorizationString, - ffi.Pointer>, - ) ->() -external int AuthorizationCopyInfo( - AuthorizationRef authorization, - AuthorizationString tag, - ffi.Pointer> info, -); - -@Deprecated('Deprecated') -@ffi.Native, UInt32)>() -external int AuthorizationCopyPrivilegedReference( - ffi.Pointer authorization, - int flags, -); - -@ffi.Native< - OSStatus Function( - AuthorizationRef, - ffi.Pointer, - ffi.Pointer, - UInt32, - ffi.Pointer>, - ) ->() -external int AuthorizationCopyRights( - AuthorizationRef authorization, - ffi.Pointer rights, - ffi.Pointer environment, - int flags, - ffi.Pointer> authorizedRights, -); - -@ffi.Native< - ffi.Void Function( - AuthorizationRef, - ffi.Pointer, - ffi.Pointer, - UInt32, - AuthorizationAsyncCallback, - ) ->(symbol: 'AuthorizationCopyRightsAsync') -external void _AuthorizationCopyRightsAsync( - AuthorizationRef authorization, - ffi.Pointer rights, - ffi.Pointer environment, - int flags, - AuthorizationAsyncCallback callbackBlock, -); - -void AuthorizationCopyRightsAsync( - AuthorizationRef authorization, - ffi.Pointer rights, - ffi.Pointer environment, - DartUInt32 flags, - DartAuthorizationAsyncCallback callbackBlock, -) { - final _$$ref = callbackBlock.ref; - return _AuthorizationCopyRightsAsync( - authorization, - rights, - environment, - flags, - _$$ref.pointer, - ); -} - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - UInt32, - ffi.Pointer, - ) ->() -external int AuthorizationCreate( - ffi.Pointer rights, - ffi.Pointer environment, - int flags, - ffi.Pointer authorization, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AuthorizationCreateFromExternalForm( - ffi.Pointer extForm, - ffi.Pointer authorization, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - AuthorizationRef, - ffi.Pointer, - UInt32, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int AuthorizationExecuteWithPrivileges( - AuthorizationRef authorization, - ffi.Pointer pathToTool, - int options, - ffi.Pointer> arguments, - ffi.Pointer> communicationsPipe, -); - -@ffi.Native() -external int AuthorizationFree(AuthorizationRef authorization, int flags); - -@ffi.Native)>() -external int AuthorizationFreeItemSet(ffi.Pointer set); - -@ffi.Native< - OSStatus Function(AuthorizationRef, ffi.Pointer) ->() -external int AuthorizationMakeExternalForm( - AuthorizationRef authorization, - ffi.Pointer extForm, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int AuthorizationRightGet( - ffi.Pointer rightName, - ffi.Pointer rightDefinition, -); - -@ffi.Native)>() -external int AuthorizationRightRemove( - AuthorizationRef authRef, - ffi.Pointer rightName, -); - -@ffi.Native< - OSStatus Function( - AuthorizationRef, - ffi.Pointer, - CFTypeRef, - CFStringRef, - CFBundleRef, - CFStringRef, - ) ->() -external int AuthorizationRightSet( - AuthorizationRef authRef, - ffi.Pointer rightName, - CFTypeRef rightDefinition, - CFStringRef descriptionKey, - CFBundleRef bundle, - CFStringRef localeTableName, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int BatteryCount(); - -@Deprecated('Deprecated') -@ffi.Native() -external int BitAnd(int value1, int value2); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitAndAtomic(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitAndAtomic16(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitAndAtomic8(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Long)>() -external void BitClr(ffi.Pointer bytePtr, int bitNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int BitNot(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external int BitOr(int value1, int value2); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitOrAtomic(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitOrAtomic16(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitOrAtomic8(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Long)>() -external void BitSet(ffi.Pointer bytePtr, int bitNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int BitShift(int value, int count); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Long)>() -external int BitTst(ffi.Pointer bytePtr, int bitNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int BitXor(int value1, int value2); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitXorAtomic(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitXorAtomic16(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitXorAtomic8(int mask, ffi.Pointer address); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native< - CFAbsoluteTime Function(CFAbsoluteTime, CFTimeZoneRef, CFGregorianUnits) ->() -external double CFAbsoluteTimeAddGregorianUnits( - double at, - CFTimeZoneRef tz, - CFGregorianUnits units, -); - -@ffi.Native() -external double CFAbsoluteTimeGetCurrent(); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external int CFAbsoluteTimeGetDayOfWeek(double at, CFTimeZoneRef tz); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external int CFAbsoluteTimeGetDayOfYear(double at, CFTimeZoneRef tz); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native< - CFGregorianUnits Function( - CFAbsoluteTime, - CFAbsoluteTime, - CFTimeZoneRef, - CFOptionFlags, - ) ->() -external CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits( - double at1, - double at2, - CFTimeZoneRef tz, - int unitFlags, -); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external CFGregorianDate CFAbsoluteTimeGetGregorianDate( - double at, - CFTimeZoneRef tz, -); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external int CFAbsoluteTimeGetWeekOfYear(double at, CFTimeZoneRef tz); - -@ffi.Native< - ffi.Pointer Function(CFAllocatorRef, CFIndex, CFOptionFlags) ->() -external ffi.Pointer CFAllocatorAllocate( - CFAllocatorRef allocator, - int size, - int hint, -); - -@ffi.Native< - ffi.Pointer Function(CFAllocatorRef, CFIndex, CFOptionFlags) ->() -external ffi.Pointer CFAllocatorAllocateBytes( - CFAllocatorRef allocator, - int size, - int hint, -); - -@ffi.Native< - ffi.Pointer Function( - CFAllocatorRef, - CFIndex, - CFAllocatorTypeID, - CFOptionFlags, - ) ->() -external ffi.Pointer CFAllocatorAllocateTyped( - CFAllocatorRef allocator, - int size, - int descriptor, - int hint, -); - -@ffi.Native< - CFAllocatorRef Function(CFAllocatorRef, ffi.Pointer) ->() -external CFAllocatorRef CFAllocatorCreate( - CFAllocatorRef allocator, - ffi.Pointer context, -); - -@ffi.Native< - CFAllocatorRef Function(CFAllocatorRef, ffi.Pointer<_malloc_zone_t>) ->() -external CFAllocatorRef CFAllocatorCreateWithZone( - CFAllocatorRef allocator, - ffi.Pointer<_malloc_zone_t> zone, -); - -@ffi.Native)>() -external void CFAllocatorDeallocate( - CFAllocatorRef allocator, - ffi.Pointer ptr, -); - -@ffi.Native< - ffi.Void Function(CFAllocatorRef, ffi.Pointer) ->() -external void CFAllocatorGetContext( - CFAllocatorRef allocator, - ffi.Pointer context, -); - -@ffi.Native() -external CFAllocatorRef CFAllocatorGetDefault(); - -@ffi.Native() -external int CFAllocatorGetPreferredSizeForSize( - CFAllocatorRef allocator, - int size, - int hint, -); - -@ffi.Native() -external int CFAllocatorGetTypeID(); - -@ffi.Native< - ffi.Pointer Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFOptionFlags, - ) ->() -external ffi.Pointer CFAllocatorReallocate( - CFAllocatorRef allocator, - ffi.Pointer ptr, - int newsize, - int hint, -); - -@ffi.Native< - ffi.Pointer Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFOptionFlags, - ) ->() -external ffi.Pointer CFAllocatorReallocateBytes( - CFAllocatorRef allocator, - ffi.Pointer ptr, - int newsize, - int hint, -); - -@ffi.Native< - ffi.Pointer Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFAllocatorTypeID, - CFOptionFlags, - ) ->() -external ffi.Pointer CFAllocatorReallocateTyped( - CFAllocatorRef allocator, - ffi.Pointer ptr, - int newsize, - int descriptor, - int hint, -); - -@ffi.Native() -external void CFAllocatorSetDefault(CFAllocatorRef allocator); - -@ffi.Native() -external void CFArrayAppendArray( - CFMutableArrayRef theArray, - CFArrayRef otherArray, - CFRange otherRange, -); - -@ffi.Native)>() -external void CFArrayAppendValue( - CFMutableArrayRef theArray, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFArrayRef, - CFRange, - CFArrayApplierFunction, - ffi.Pointer, - ) ->() -external void CFArrayApplyFunction( - CFArrayRef theArray, - CFRange range, - CFArrayApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native< - CFIndex Function( - CFArrayRef, - CFRange, - ffi.Pointer, - CFComparatorFunction, - ffi.Pointer, - ) ->() -external int CFArrayBSearchValues( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, - CFComparatorFunction comparator, - ffi.Pointer context, -); - -@ffi.Native)>() -external int CFArrayContainsValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, -); - -@ffi.Native< - CFArrayRef Function( - CFAllocatorRef, - ffi.Pointer>, - CFIndex, - ffi.Pointer, - ) ->() -external CFArrayRef CFArrayCreate( - CFAllocatorRef allocator, - ffi.Pointer> values, - int numValues, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFArrayRef CFArrayCreateCopy( - CFAllocatorRef allocator, - CFArrayRef theArray, -); - -@ffi.Native< - CFMutableArrayRef Function( - CFAllocatorRef, - CFIndex, - ffi.Pointer, - ) ->() -external CFMutableArrayRef CFArrayCreateMutable( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFMutableArrayRef CFArrayCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFArrayRef theArray, -); - -@ffi.Native() -external void CFArrayExchangeValuesAtIndices( - CFMutableArrayRef theArray, - int idx1, - int idx2, -); - -@ffi.Native() -external int CFArrayGetCount(CFArrayRef theArray); - -@ffi.Native)>() -external int CFArrayGetCountOfValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, -); - -@ffi.Native)>() -external int CFArrayGetFirstIndexOfValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, -); - -@ffi.Native)>() -external int CFArrayGetLastIndexOfValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, -); - -@ffi.Native() -external int CFArrayGetTypeID(); - -@ffi.Native Function(CFArrayRef, CFIndex)>() -external ffi.Pointer CFArrayGetValueAtIndex( - CFArrayRef theArray, - int idx, -); - -@ffi.Native< - ffi.Void Function(CFArrayRef, CFRange, ffi.Pointer>) ->() -external void CFArrayGetValues( - CFArrayRef theArray, - CFRange range, - ffi.Pointer> values, -); - -@ffi.Native< - ffi.Void Function(CFMutableArrayRef, CFIndex, ffi.Pointer) ->() -external void CFArrayInsertValueAtIndex( - CFMutableArrayRef theArray, - int idx, - ffi.Pointer value, -); - -@ffi.Native() -external void CFArrayRemoveAllValues(CFMutableArrayRef theArray); - -@ffi.Native() -external void CFArrayRemoveValueAtIndex(CFMutableArrayRef theArray, int idx); - -@ffi.Native< - ffi.Void Function( - CFMutableArrayRef, - CFRange, - ffi.Pointer>, - CFIndex, - ) ->() -external void CFArrayReplaceValues( - CFMutableArrayRef theArray, - CFRange range, - ffi.Pointer> newValues, - int newCount, -); - -@ffi.Native< - ffi.Void Function(CFMutableArrayRef, CFIndex, ffi.Pointer) ->() -external void CFArraySetValueAtIndex( - CFMutableArrayRef theArray, - int idx, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFMutableArrayRef, - CFRange, - CFComparatorFunction, - ffi.Pointer, - ) ->() -external void CFArraySortValues( - CFMutableArrayRef theArray, - CFRange range, - CFComparatorFunction comparator, - ffi.Pointer context, -); - -@ffi.Native() -external void CFAttributedStringBeginEditing(CFMutableAttributedStringRef aStr); - -@ffi.Native< - CFAttributedStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) ->() -external CFAttributedStringRef CFAttributedStringCreate( - CFAllocatorRef alloc, - CFStringRef str, - CFDictionaryRef attributes, -); - -@ffi.Native< - CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef) ->() -external CFAttributedStringRef CFAttributedStringCreateCopy( - CFAllocatorRef alloc, - CFAttributedStringRef aStr, -); - -@ffi.Native() -external CFMutableAttributedStringRef CFAttributedStringCreateMutable( - CFAllocatorRef alloc, - int maxLength, -); - -@ffi.Native< - CFMutableAttributedStringRef Function( - CFAllocatorRef, - CFIndex, - CFAttributedStringRef, - ) ->() -external CFMutableAttributedStringRef CFAttributedStringCreateMutableCopy( - CFAllocatorRef alloc, - int maxLength, - CFAttributedStringRef aStr, -); - -@ffi.Native< - CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef, CFRange) ->() -external CFAttributedStringRef CFAttributedStringCreateWithSubstring( - CFAllocatorRef alloc, - CFAttributedStringRef aStr, - CFRange range, -); - -@ffi.Native() -external void CFAttributedStringEndEditing(CFMutableAttributedStringRef aStr); - -@ffi.Native< - CFTypeRef Function( - CFAttributedStringRef, - CFIndex, - CFStringRef, - ffi.Pointer, - ) ->() -external CFTypeRef CFAttributedStringGetAttribute( - CFAttributedStringRef aStr, - int loc, - CFStringRef attrName, - ffi.Pointer effectiveRange, -); - -@ffi.Native< - CFTypeRef Function( - CFAttributedStringRef, - CFIndex, - CFStringRef, - CFRange, - ffi.Pointer, - ) ->() -external CFTypeRef CFAttributedStringGetAttributeAndLongestEffectiveRange( - CFAttributedStringRef aStr, - int loc, - CFStringRef attrName, - CFRange inRange, - ffi.Pointer longestEffectiveRange, -); - -@ffi.Native< - CFDictionaryRef Function(CFAttributedStringRef, CFIndex, ffi.Pointer) ->() -external CFDictionaryRef CFAttributedStringGetAttributes( - CFAttributedStringRef aStr, - int loc, - ffi.Pointer effectiveRange, -); - -@ffi.Native< - CFDictionaryRef Function( - CFAttributedStringRef, - CFIndex, - CFRange, - ffi.Pointer, - ) ->() -external CFDictionaryRef -CFAttributedStringGetAttributesAndLongestEffectiveRange( - CFAttributedStringRef aStr, - int loc, - CFRange inRange, - ffi.Pointer longestEffectiveRange, -); - -@ffi.Native< - ffi.Bool Function( - CFAttributedStringRef, - CFRange, - ffi.Int8, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CFAttributedStringGetBidiLevelsAndResolvedDirections( - CFAttributedStringRef attributedString, - CFRange range, - int baseDirection, - ffi.Pointer bidiLevels, - ffi.Pointer baseDirections, -); - -@ffi.Native() -external int CFAttributedStringGetLength(CFAttributedStringRef aStr); - -@ffi.Native() -external CFMutableStringRef CFAttributedStringGetMutableString( - CFMutableAttributedStringRef aStr, -); - -@ffi.Native< - ffi.Bool Function( - CFAttributedStringRef, - CFRange, - ffi.Int8, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CFAttributedStringGetStatisticalWritingDirections( - CFAttributedStringRef attributedString, - CFRange range, - int baseDirection, - ffi.Pointer bidiLevels, - ffi.Pointer baseDirections, -); - -@ffi.Native() -external CFStringRef CFAttributedStringGetString(CFAttributedStringRef aStr); - -@ffi.Native() -external int CFAttributedStringGetTypeID(); - -@ffi.Native< - ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) ->() -external void CFAttributedStringRemoveAttribute( - CFMutableAttributedStringRef aStr, - CFRange range, - CFStringRef attrName, -); - -@ffi.Native< - ffi.Void Function( - CFMutableAttributedStringRef, - CFRange, - CFAttributedStringRef, - ) ->() -external void CFAttributedStringReplaceAttributedString( - CFMutableAttributedStringRef aStr, - CFRange range, - CFAttributedStringRef replacement, -); - -@ffi.Native< - ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) ->() -external void CFAttributedStringReplaceString( - CFMutableAttributedStringRef aStr, - CFRange range, - CFStringRef replacement, -); - -@ffi.Native< - ffi.Void Function( - CFMutableAttributedStringRef, - CFRange, - CFStringRef, - CFTypeRef, - ) ->() -external void CFAttributedStringSetAttribute( - CFMutableAttributedStringRef aStr, - CFRange range, - CFStringRef attrName, - CFTypeRef value, -); - -@ffi.Native< - ffi.Void Function( - CFMutableAttributedStringRef, - CFRange, - CFDictionaryRef, - Boolean, - ) ->() -external void CFAttributedStringSetAttributes( - CFMutableAttributedStringRef aStr, - CFRange range, - CFDictionaryRef replacement, - int clearOtherAttributes, -); - -@ffi.Native() -external CFTypeRef CFAutorelease(CFTypeRef arg); - -@ffi.Native)>() -external void CFBagAddValue( - CFMutableBagRef theBag, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function(CFBagRef, CFBagApplierFunction, ffi.Pointer) ->() -external void CFBagApplyFunction( - CFBagRef theBag, - CFBagApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native)>() -external int CFBagContainsValue(CFBagRef theBag, ffi.Pointer value); - -@ffi.Native< - CFBagRef Function( - CFAllocatorRef, - ffi.Pointer>, - CFIndex, - ffi.Pointer, - ) ->() -external CFBagRef CFBagCreate( - CFAllocatorRef allocator, - ffi.Pointer> values, - int numValues, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFBagRef CFBagCreateCopy(CFAllocatorRef allocator, CFBagRef theBag); - -@ffi.Native< - CFMutableBagRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) ->() -external CFMutableBagRef CFBagCreateMutable( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFMutableBagRef CFBagCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFBagRef theBag, -); - -@ffi.Native() -external int CFBagGetCount(CFBagRef theBag); - -@ffi.Native)>() -external int CFBagGetCountOfValue(CFBagRef theBag, ffi.Pointer value); - -@ffi.Native() -external int CFBagGetTypeID(); - -@ffi.Native Function(CFBagRef, ffi.Pointer)>() -external ffi.Pointer CFBagGetValue( - CFBagRef theBag, - ffi.Pointer value, -); - -@ffi.Native< - Boolean Function( - CFBagRef, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CFBagGetValueIfPresent( - CFBagRef theBag, - ffi.Pointer candidate, - ffi.Pointer> value, -); - -@ffi.Native>)>() -external void CFBagGetValues( - CFBagRef theBag, - ffi.Pointer> values, -); - -@ffi.Native() -external void CFBagRemoveAllValues(CFMutableBagRef theBag); - -@ffi.Native)>() -external void CFBagRemoveValue( - CFMutableBagRef theBag, - ffi.Pointer value, -); - -@ffi.Native)>() -external void CFBagReplaceValue( - CFMutableBagRef theBag, - ffi.Pointer value, -); - -@ffi.Native)>() -external void CFBagSetValue( - CFMutableBagRef theBag, - ffi.Pointer value, -); - -@ffi.Native)>() -external void CFBinaryHeapAddValue( - CFBinaryHeapRef heap, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFBinaryHeapRef, - CFBinaryHeapApplierFunction, - ffi.Pointer, - ) ->() -external void CFBinaryHeapApplyFunction( - CFBinaryHeapRef heap, - CFBinaryHeapApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native)>() -external int CFBinaryHeapContainsValue( - CFBinaryHeapRef heap, - ffi.Pointer value, -); - -@ffi.Native< - CFBinaryHeapRef Function( - CFAllocatorRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFBinaryHeapRef CFBinaryHeapCreate( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer callBacks, - ffi.Pointer compareContext, -); - -@ffi.Native< - CFBinaryHeapRef Function(CFAllocatorRef, CFIndex, CFBinaryHeapRef) ->() -external CFBinaryHeapRef CFBinaryHeapCreateCopy( - CFAllocatorRef allocator, - int capacity, - CFBinaryHeapRef heap, -); - -@ffi.Native() -external int CFBinaryHeapGetCount(CFBinaryHeapRef heap); - -@ffi.Native)>() -external int CFBinaryHeapGetCountOfValue( - CFBinaryHeapRef heap, - ffi.Pointer value, -); - -@ffi.Native Function(CFBinaryHeapRef)>() -external ffi.Pointer CFBinaryHeapGetMinimum(CFBinaryHeapRef heap); - -@ffi.Native< - Boolean Function(CFBinaryHeapRef, ffi.Pointer>) ->() -external int CFBinaryHeapGetMinimumIfPresent( - CFBinaryHeapRef heap, - ffi.Pointer> value, -); - -@ffi.Native() -external int CFBinaryHeapGetTypeID(); - -@ffi.Native< - ffi.Void Function(CFBinaryHeapRef, ffi.Pointer>) ->() -external void CFBinaryHeapGetValues( - CFBinaryHeapRef heap, - ffi.Pointer> values, -); - -@ffi.Native() -external void CFBinaryHeapRemoveAllValues(CFBinaryHeapRef heap); - -@ffi.Native() -external void CFBinaryHeapRemoveMinimumValue(CFBinaryHeapRef heap); - -@ffi.Native() -external int CFBitVectorContainsBit( - CFBitVectorRef bv, - CFRange range, - int value, -); - -@ffi.Native< - CFBitVectorRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) ->() -external CFBitVectorRef CFBitVectorCreate( - CFAllocatorRef allocator, - ffi.Pointer bytes, - int numBits, -); - -@ffi.Native() -external CFBitVectorRef CFBitVectorCreateCopy( - CFAllocatorRef allocator, - CFBitVectorRef bv, -); - -@ffi.Native() -external CFMutableBitVectorRef CFBitVectorCreateMutable( - CFAllocatorRef allocator, - int capacity, -); - -@ffi.Native< - CFMutableBitVectorRef Function(CFAllocatorRef, CFIndex, CFBitVectorRef) ->() -external CFMutableBitVectorRef CFBitVectorCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFBitVectorRef bv, -); - -@ffi.Native() -external void CFBitVectorFlipBitAtIndex(CFMutableBitVectorRef bv, int idx); - -@ffi.Native() -external void CFBitVectorFlipBits(CFMutableBitVectorRef bv, CFRange range); - -@ffi.Native() -external int CFBitVectorGetBitAtIndex(CFBitVectorRef bv, int idx); - -@ffi.Native)>() -external void CFBitVectorGetBits( - CFBitVectorRef bv, - CFRange range, - ffi.Pointer bytes, -); - -@ffi.Native() -external int CFBitVectorGetCount(CFBitVectorRef bv); - -@ffi.Native() -external int CFBitVectorGetCountOfBit( - CFBitVectorRef bv, - CFRange range, - int value, -); - -@ffi.Native() -external int CFBitVectorGetFirstIndexOfBit( - CFBitVectorRef bv, - CFRange range, - int value, -); - -@ffi.Native() -external int CFBitVectorGetLastIndexOfBit( - CFBitVectorRef bv, - CFRange range, - int value, -); - -@ffi.Native() -external int CFBitVectorGetTypeID(); - -@ffi.Native() -external void CFBitVectorSetAllBits(CFMutableBitVectorRef bv, int value); - -@ffi.Native() -external void CFBitVectorSetBitAtIndex( - CFMutableBitVectorRef bv, - int idx, - int value, -); - -@ffi.Native() -external void CFBitVectorSetBits( - CFMutableBitVectorRef bv, - CFRange range, - int value, -); - -@ffi.Native() -external void CFBitVectorSetCount(CFMutableBitVectorRef bv, int count); - -@ffi.Native() -external int CFBooleanGetTypeID(); - -@ffi.Native() -external int CFBooleanGetValue(CFBooleanRef boolean); - -@Deprecated( - 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', -) -@ffi.Native() -external void CFBundleCloseBundleResourceMap(CFBundleRef bundle, int refNum); - -@ffi.Native() -external CFURLRef CFBundleCopyAuxiliaryExecutableURL( - CFBundleRef bundle, - CFStringRef executableName, -); - -@ffi.Native() -external CFURLRef CFBundleCopyBuiltInPlugInsURL(CFBundleRef bundle); - -@ffi.Native() -external CFArrayRef CFBundleCopyBundleLocalizations(CFBundleRef bundle); - -@ffi.Native() -external CFURLRef CFBundleCopyBundleURL(CFBundleRef bundle); - -@ffi.Native() -external CFArrayRef CFBundleCopyExecutableArchitectures(CFBundleRef bundle); - -@ffi.Native() -external CFArrayRef CFBundleCopyExecutableArchitecturesForURL(CFURLRef url); - -@ffi.Native() -external CFURLRef CFBundleCopyExecutableURL(CFBundleRef bundle); - -@ffi.Native() -external CFDictionaryRef CFBundleCopyInfoDictionaryForURL(CFURLRef url); - -@ffi.Native() -external CFDictionaryRef CFBundleCopyInfoDictionaryInDirectory( - CFURLRef bundleURL, -); - -@ffi.Native() -external CFArrayRef CFBundleCopyLocalizationsForPreferences( - CFArrayRef locArray, - CFArrayRef prefArray, -); - -@ffi.Native() -external CFArrayRef CFBundleCopyLocalizationsForURL(CFURLRef url); - -@ffi.Native< - CFStringRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFStringRef CFBundleCopyLocalizedString( - CFBundleRef bundle, - CFStringRef key, - CFStringRef value, - CFStringRef tableName, -); - -@ffi.Native< - CFStringRef Function( - CFBundleRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFArrayRef, - ) ->() -external CFStringRef CFBundleCopyLocalizedStringForLocalizations( - CFBundleRef bundle, - CFStringRef key, - CFStringRef value, - CFStringRef tableName, - CFArrayRef localizations, -); - -@ffi.Native() -external CFArrayRef CFBundleCopyPreferredLocalizationsFromArray( - CFArrayRef locArray, -); - -@ffi.Native() -external CFURLRef CFBundleCopyPrivateFrameworksURL(CFBundleRef bundle); - -@ffi.Native< - CFURLRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFURLRef CFBundleCopyResourceURL( - CFBundleRef bundle, - CFStringRef resourceName, - CFStringRef resourceType, - CFStringRef subDirName, -); - -@ffi.Native< - CFURLRef Function( - CFBundleRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringRef, - ) ->() -external CFURLRef CFBundleCopyResourceURLForLocalization( - CFBundleRef bundle, - CFStringRef resourceName, - CFStringRef resourceType, - CFStringRef subDirName, - CFStringRef localizationName, -); - -@ffi.Native< - CFURLRef Function(CFURLRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFURLRef CFBundleCopyResourceURLInDirectory( - CFURLRef bundleURL, - CFStringRef resourceName, - CFStringRef resourceType, - CFStringRef subDirName, -); - -@ffi.Native() -external CFArrayRef CFBundleCopyResourceURLsOfType( - CFBundleRef bundle, - CFStringRef resourceType, - CFStringRef subDirName, -); - -@ffi.Native< - CFArrayRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFArrayRef CFBundleCopyResourceURLsOfTypeForLocalization( - CFBundleRef bundle, - CFStringRef resourceType, - CFStringRef subDirName, - CFStringRef localizationName, -); - -@ffi.Native() -external CFArrayRef CFBundleCopyResourceURLsOfTypeInDirectory( - CFURLRef bundleURL, - CFStringRef resourceType, - CFStringRef subDirName, -); - -@ffi.Native() -external CFURLRef CFBundleCopyResourcesDirectoryURL(CFBundleRef bundle); - -@ffi.Native() -external CFURLRef CFBundleCopySharedFrameworksURL(CFBundleRef bundle); - -@ffi.Native() -external CFURLRef CFBundleCopySharedSupportURL(CFBundleRef bundle); - -@ffi.Native() -external CFURLRef CFBundleCopySupportFilesDirectoryURL(CFBundleRef bundle); - -@ffi.Native() -external CFBundleRef CFBundleCreate( - CFAllocatorRef allocator, - CFURLRef bundleURL, -); - -@ffi.Native() -external CFArrayRef CFBundleCreateBundlesFromDirectory( - CFAllocatorRef allocator, - CFURLRef directoryURL, - CFStringRef bundleType, -); - -@ffi.Native() -external CFArrayRef CFBundleGetAllBundles(); - -@ffi.Native() -external CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID); - -@ffi.Native Function(CFBundleRef, CFStringRef)>() -external ffi.Pointer CFBundleGetDataPointerForName( - CFBundleRef bundle, - CFStringRef symbolName, -); - -@ffi.Native< - ffi.Void Function(CFBundleRef, CFArrayRef, ffi.Pointer>) ->() -external void CFBundleGetDataPointersForNames( - CFBundleRef bundle, - CFArrayRef symbolNames, - ffi.Pointer> stbl, -); - -@ffi.Native() -external CFStringRef CFBundleGetDevelopmentRegion(CFBundleRef bundle); - -@ffi.Native Function(CFBundleRef, CFStringRef)>() -external ffi.Pointer CFBundleGetFunctionPointerForName( - CFBundleRef bundle, - CFStringRef functionName, -); - -@ffi.Native< - ffi.Void Function(CFBundleRef, CFArrayRef, ffi.Pointer>) ->() -external void CFBundleGetFunctionPointersForNames( - CFBundleRef bundle, - CFArrayRef functionNames, - ffi.Pointer> ftbl, -); - -@ffi.Native() -external CFStringRef CFBundleGetIdentifier(CFBundleRef bundle); - -@ffi.Native() -external CFDictionaryRef CFBundleGetInfoDictionary(CFBundleRef bundle); - -@ffi.Native() -external CFDictionaryRef CFBundleGetLocalInfoDictionary(CFBundleRef bundle); - -@ffi.Native() -external CFBundleRef CFBundleGetMainBundle(); - -@ffi.Native< - ffi.Void Function(CFBundleRef, ffi.Pointer, ffi.Pointer) ->() -external void CFBundleGetPackageInfo( - CFBundleRef bundle, - ffi.Pointer packageType, - ffi.Pointer packageCreator, -); - -@ffi.Native< - Boolean Function(CFURLRef, ffi.Pointer, ffi.Pointer) ->() -external int CFBundleGetPackageInfoInDirectory( - CFURLRef url, - ffi.Pointer packageType, - ffi.Pointer packageCreator, -); - -@ffi.Native() -external CFPlugInRef CFBundleGetPlugIn(CFBundleRef bundle); - -@ffi.Native() -external int CFBundleGetTypeID(); - -@ffi.Native() -external CFTypeRef CFBundleGetValueForInfoDictionaryKey( - CFBundleRef bundle, - CFStringRef key, -); - -@ffi.Native() -external int CFBundleGetVersionNumber(CFBundleRef bundle); - -@ffi.Native() -external int CFBundleIsArchitectureLoadable(int arch); - -@ffi.Native() -external int CFBundleIsExecutableLoadable(CFBundleRef bundle); - -@ffi.Native() -external int CFBundleIsExecutableLoadableForURL(CFURLRef url); - -@ffi.Native() -external int CFBundleIsExecutableLoaded(CFBundleRef bundle); - -@ffi.Native() -external int CFBundleLoadExecutable(CFBundleRef bundle); - -@ffi.Native)>() -external int CFBundleLoadExecutableAndReturnError( - CFBundleRef bundle, - ffi.Pointer error, -); - -@Deprecated( - 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', -) -@ffi.Native< - SInt32 Function( - CFBundleRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CFBundleOpenBundleResourceFiles( - CFBundleRef bundle, - ffi.Pointer refNum, - ffi.Pointer localizedRefNum, -); - -@Deprecated( - 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', -) -@ffi.Native() -external int CFBundleOpenBundleResourceMap(CFBundleRef bundle); - -@ffi.Native)>() -external int CFBundlePreflightExecutable( - CFBundleRef bundle, - ffi.Pointer error, -); - -@ffi.Native() -external void CFBundleUnloadExecutable(CFBundleRef bundle); - -@ffi.Native< - Boolean Function( - CFCalendarRef, - ffi.Pointer, - CFOptionFlags, - ffi.Pointer, - ) ->() -external int CFCalendarAddComponents( - CFCalendarRef calendar, - ffi.Pointer at, - int options, - ffi.Pointer componentDesc, -); - -@ffi.Native< - Boolean Function( - CFCalendarRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CFCalendarComposeAbsoluteTime( - CFCalendarRef calendar, - ffi.Pointer at, - ffi.Pointer componentDesc, -); - -@ffi.Native() -external CFCalendarRef CFCalendarCopyCurrent(); - -@ffi.Native() -external CFLocaleRef CFCalendarCopyLocale(CFCalendarRef calendar); - -@ffi.Native() -external CFTimeZoneRef CFCalendarCopyTimeZone(CFCalendarRef calendar); - -@ffi.Native() -external CFCalendarRef CFCalendarCreateWithIdentifier( - CFAllocatorRef allocator, - CFCalendarIdentifier identifier, -); - -@ffi.Native< - Boolean Function(CFCalendarRef, CFAbsoluteTime, ffi.Pointer) ->() -external int CFCalendarDecomposeAbsoluteTime( - CFCalendarRef calendar, - double at, - ffi.Pointer componentDesc, -); - -@ffi.Native< - Boolean Function( - CFCalendarRef, - CFAbsoluteTime, - CFAbsoluteTime, - CFOptionFlags, - ffi.Pointer, - ) ->() -external int CFCalendarGetComponentDifference( - CFCalendarRef calendar, - double startingAT, - double resultAT, - int options, - ffi.Pointer componentDesc, -); - -@ffi.Native() -external int CFCalendarGetFirstWeekday(CFCalendarRef calendar); - -@ffi.Native() -external CFCalendarIdentifier CFCalendarGetIdentifier(CFCalendarRef calendar); - -@ffi.Native() -external CFRange CFCalendarGetMaximumRangeOfUnit( - CFCalendarRef calendar, - int unit, -); - -@ffi.Native() -external int CFCalendarGetMinimumDaysInFirstWeek(CFCalendarRef calendar); - -@ffi.Native() -external CFRange CFCalendarGetMinimumRangeOfUnit( - CFCalendarRef calendar, - int unit, -); - -@ffi.Native< - CFIndex Function(CFCalendarRef, CFOptionFlags, CFOptionFlags, CFAbsoluteTime) ->() -external int CFCalendarGetOrdinalityOfUnit( - CFCalendarRef calendar, - int smallerUnit, - int biggerUnit, - double at, -); - -@ffi.Native< - CFRange Function(CFCalendarRef, CFOptionFlags, CFOptionFlags, CFAbsoluteTime) ->() -external CFRange CFCalendarGetRangeOfUnit( - CFCalendarRef calendar, - int smallerUnit, - int biggerUnit, - double at, -); - -@ffi.Native< - Boolean Function( - CFCalendarRef, - CFOptionFlags, - CFAbsoluteTime, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CFCalendarGetTimeRangeOfUnit( - CFCalendarRef calendar, - int unit, - double at, - ffi.Pointer startp, - ffi.Pointer tip, -); - -@ffi.Native() -external int CFCalendarGetTypeID(); - -@ffi.Native() -external void CFCalendarSetFirstWeekday(CFCalendarRef calendar, int wkdy); - -@ffi.Native() -external void CFCalendarSetLocale(CFCalendarRef calendar, CFLocaleRef locale); - -@ffi.Native() -external void CFCalendarSetMinimumDaysInFirstWeek( - CFCalendarRef calendar, - int mwd, -); - -@ffi.Native() -external void CFCalendarSetTimeZone(CFCalendarRef calendar, CFTimeZoneRef tz); - -@ffi.Native() -external void CFCharacterSetAddCharactersInRange( - CFMutableCharacterSetRef theSet, - CFRange theRange, -); - -@ffi.Native() -external void CFCharacterSetAddCharactersInString( - CFMutableCharacterSetRef theSet, - CFStringRef theString, -); - -@ffi.Native() -external CFDataRef CFCharacterSetCreateBitmapRepresentation( - CFAllocatorRef alloc, - CFCharacterSetRef theSet, -); - -@ffi.Native() -external CFCharacterSetRef CFCharacterSetCreateCopy( - CFAllocatorRef alloc, - CFCharacterSetRef theSet, -); - -@ffi.Native() -external CFCharacterSetRef CFCharacterSetCreateInvertedSet( - CFAllocatorRef alloc, - CFCharacterSetRef theSet, -); - -@ffi.Native() -external CFMutableCharacterSetRef CFCharacterSetCreateMutable( - CFAllocatorRef alloc, -); - -@ffi.Native< - CFMutableCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef) ->() -external CFMutableCharacterSetRef CFCharacterSetCreateMutableCopy( - CFAllocatorRef alloc, - CFCharacterSetRef theSet, -); - -@ffi.Native() -external CFCharacterSetRef CFCharacterSetCreateWithBitmapRepresentation( - CFAllocatorRef alloc, - CFDataRef theData, -); - -@ffi.Native() -external CFCharacterSetRef CFCharacterSetCreateWithCharactersInRange( - CFAllocatorRef alloc, - CFRange theRange, -); - -@ffi.Native() -external CFCharacterSetRef CFCharacterSetCreateWithCharactersInString( - CFAllocatorRef alloc, - CFStringRef theString, -); - -@ffi.Native( - symbol: 'CFCharacterSetGetPredefined', -) -external CFCharacterSetRef _CFCharacterSetGetPredefined(int theSetIdentifier); - -CFCharacterSetRef CFCharacterSetGetPredefined( - CFCharacterSetPredefinedSet theSetIdentifier, -) { - return _CFCharacterSetGetPredefined(theSetIdentifier.value); -} - -@ffi.Native() -external int CFCharacterSetGetTypeID(); - -@ffi.Native() -external int CFCharacterSetHasMemberInPlane( - CFCharacterSetRef theSet, - int thePlane, -); - -@ffi.Native() -external void CFCharacterSetIntersect( - CFMutableCharacterSetRef theSet, - CFCharacterSetRef theOtherSet, -); - -@ffi.Native() -external void CFCharacterSetInvert(CFMutableCharacterSetRef theSet); - -@ffi.Native() -external int CFCharacterSetIsCharacterMember( - CFCharacterSetRef theSet, - int theChar, -); - -@ffi.Native() -external int CFCharacterSetIsLongCharacterMember( - CFCharacterSetRef theSet, - int theChar, -); - -@ffi.Native() -external int CFCharacterSetIsSupersetOfSet( - CFCharacterSetRef theSet, - CFCharacterSetRef theOtherset, -); - -@ffi.Native() -external void CFCharacterSetRemoveCharactersInRange( - CFMutableCharacterSetRef theSet, - CFRange theRange, -); - -@ffi.Native() -external void CFCharacterSetRemoveCharactersInString( - CFMutableCharacterSetRef theSet, - CFStringRef theString, -); - -@ffi.Native() -external void CFCharacterSetUnion( - CFMutableCharacterSetRef theSet, - CFCharacterSetRef theOtherSet, -); - -@ffi.Native() -external CFStringRef CFCopyDescription(CFTypeRef cf); - -@ffi.Native() -external CFURLRef CFCopyHomeDirectoryURL(); - -@ffi.Native() -external CFStringRef CFCopyTypeIDDescription(int type_id); - -@ffi.Native, CFIndex)>() -external void CFDataAppendBytes( - CFMutableDataRef theData, - ffi.Pointer bytes, - int length, -); - -@ffi.Native, CFIndex)>() -external CFDataRef CFDataCreate( - CFAllocatorRef allocator, - ffi.Pointer bytes, - int length, -); - -@ffi.Native() -external CFDataRef CFDataCreateCopy( - CFAllocatorRef allocator, - CFDataRef theData, -); - -@ffi.Native() -external CFMutableDataRef CFDataCreateMutable( - CFAllocatorRef allocator, - int capacity, -); - -@ffi.Native() -external CFMutableDataRef CFDataCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFDataRef theData, -); - -@ffi.Native< - CFDataRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFAllocatorRef, - ) ->() -external CFDataRef CFDataCreateWithBytesNoCopy( - CFAllocatorRef allocator, - ffi.Pointer bytes, - int length, - CFAllocatorRef bytesDeallocator, -); - -@ffi.Native() -external void CFDataDeleteBytes(CFMutableDataRef theData, CFRange range); - -@ffi.Native() -external CFRange CFDataFind( - CFDataRef theData, - CFDataRef dataToFind, - CFRange searchRange, - int compareOptions, -); - -@ffi.Native Function(CFDataRef)>() -external ffi.Pointer CFDataGetBytePtr(CFDataRef theData); - -@ffi.Native)>() -external void CFDataGetBytes( - CFDataRef theData, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native() -external int CFDataGetLength(CFDataRef theData); - -@ffi.Native Function(CFMutableDataRef)>() -external ffi.Pointer CFDataGetMutableBytePtr(CFMutableDataRef theData); - -@ffi.Native() -external int CFDataGetTypeID(); - -@ffi.Native() -external void CFDataIncreaseLength(CFMutableDataRef theData, int extraLength); - -@ffi.Native< - ffi.Void Function(CFMutableDataRef, CFRange, ffi.Pointer, CFIndex) ->() -external void CFDataReplaceBytes( - CFMutableDataRef theData, - CFRange range, - ffi.Pointer newBytes, - int newLength, -); - -@ffi.Native() -external void CFDataSetLength(CFMutableDataRef theData, int length); - -@ffi.Native)>( - symbol: 'CFDateCompare', -) -external int _CFDateCompare( - CFDateRef theDate, - CFDateRef otherDate, - ffi.Pointer context, -); - -CFComparisonResult CFDateCompare( - CFDateRef theDate, - CFDateRef otherDate, - ffi.Pointer context, -) { - return CFComparisonResult.fromValue( - _CFDateCompare(theDate, otherDate, context), - ); -} - -@ffi.Native() -external CFDateRef CFDateCreate(CFAllocatorRef allocator, double at); - -@ffi.Native() -external CFTypeRef CFDateFormatterCopyProperty( - CFDateFormatterRef formatter, - CFDateFormatterKey key, -); - -@ffi.Native< - CFDateFormatterRef Function(CFAllocatorRef, CFLocaleRef, CFIndex, CFIndex) ->(symbol: 'CFDateFormatterCreate') -external CFDateFormatterRef _CFDateFormatterCreate( - CFAllocatorRef allocator, - CFLocaleRef locale, - int dateStyle, - int timeStyle, -); - -CFDateFormatterRef CFDateFormatterCreate( - CFAllocatorRef allocator, - CFLocaleRef locale, - CFDateFormatterStyle dateStyle, - CFDateFormatterStyle timeStyle, -) { - return _CFDateFormatterCreate( - allocator, - locale, - dateStyle.value, - timeStyle.value, - ); -} - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFOptionFlags, CFLocaleRef) ->() -external CFStringRef CFDateFormatterCreateDateFormatFromTemplate( - CFAllocatorRef allocator, - CFStringRef tmplate, - int options, - CFLocaleRef locale, -); - -@ffi.Native< - CFDateRef Function( - CFAllocatorRef, - CFDateFormatterRef, - CFStringRef, - ffi.Pointer, - ) ->() -external CFDateRef CFDateFormatterCreateDateFromString( - CFAllocatorRef allocator, - CFDateFormatterRef formatter, - CFStringRef string, - ffi.Pointer rangep, -); - -@ffi.Native() -external CFDateFormatterRef CFDateFormatterCreateISO8601Formatter( - CFAllocatorRef allocator, - int formatOptions, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, CFAbsoluteTime) ->() -external CFStringRef CFDateFormatterCreateStringWithAbsoluteTime( - CFAllocatorRef allocator, - CFDateFormatterRef formatter, - double at, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, CFDateRef) ->() -external CFStringRef CFDateFormatterCreateStringWithDate( - CFAllocatorRef allocator, - CFDateFormatterRef formatter, - CFDateRef date, -); - -@ffi.Native< - Boolean Function( - CFDateFormatterRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CFDateFormatterGetAbsoluteTimeFromString( - CFDateFormatterRef formatter, - CFStringRef string, - ffi.Pointer rangep, - ffi.Pointer atp, -); - -@ffi.Native( - symbol: 'CFDateFormatterGetDateStyle', -) -external int _CFDateFormatterGetDateStyle(CFDateFormatterRef formatter); - -CFDateFormatterStyle CFDateFormatterGetDateStyle(CFDateFormatterRef formatter) { - return CFDateFormatterStyle.fromValue( - _CFDateFormatterGetDateStyle(formatter), - ); -} - -@ffi.Native() -external CFStringRef CFDateFormatterGetFormat(CFDateFormatterRef formatter); - -@ffi.Native() -external CFLocaleRef CFDateFormatterGetLocale(CFDateFormatterRef formatter); - -@ffi.Native( - symbol: 'CFDateFormatterGetTimeStyle', -) -external int _CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter); - -CFDateFormatterStyle CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter) { - return CFDateFormatterStyle.fromValue( - _CFDateFormatterGetTimeStyle(formatter), - ); -} - -@ffi.Native() -external int CFDateFormatterGetTypeID(); - -@ffi.Native() -external void CFDateFormatterSetFormat( - CFDateFormatterRef formatter, - CFStringRef formatString, -); - -@ffi.Native() -external void CFDateFormatterSetProperty( - CFDateFormatterRef formatter, - CFStringRef key, - CFTypeRef value, -); - -@ffi.Native() -external double CFDateGetAbsoluteTime(CFDateRef theDate); - -@ffi.Native() -external double CFDateGetTimeIntervalSinceDate( - CFDateRef theDate, - CFDateRef otherDate, -); - -@ffi.Native() -external int CFDateGetTypeID(); - -@ffi.Native< - ffi.Void Function( - CFMutableDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFDictionaryAddValue( - CFMutableDictionaryRef theDict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFDictionaryRef, - CFDictionaryApplierFunction, - ffi.Pointer, - ) ->() -external void CFDictionaryApplyFunction( - CFDictionaryRef theDict, - CFDictionaryApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native)>() -external int CFDictionaryContainsKey( - CFDictionaryRef theDict, - ffi.Pointer key, -); - -@ffi.Native)>() -external int CFDictionaryContainsValue( - CFDictionaryRef theDict, - ffi.Pointer value, -); - -@ffi.Native< - CFDictionaryRef Function( - CFAllocatorRef, - ffi.Pointer>, - ffi.Pointer>, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFDictionaryRef CFDictionaryCreate( - CFAllocatorRef allocator, - ffi.Pointer> keys, - ffi.Pointer> values, - int numValues, - ffi.Pointer keyCallBacks, - ffi.Pointer valueCallBacks, -); - -@ffi.Native() -external CFDictionaryRef CFDictionaryCreateCopy( - CFAllocatorRef allocator, - CFDictionaryRef theDict, -); - -@ffi.Native< - CFMutableDictionaryRef Function( - CFAllocatorRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFMutableDictionaryRef CFDictionaryCreateMutable( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer keyCallBacks, - ffi.Pointer valueCallBacks, -); - -@ffi.Native< - CFMutableDictionaryRef Function(CFAllocatorRef, CFIndex, CFDictionaryRef) ->() -external CFMutableDictionaryRef CFDictionaryCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFDictionaryRef theDict, -); - -@ffi.Native() -external int CFDictionaryGetCount(CFDictionaryRef theDict); - -@ffi.Native)>() -external int CFDictionaryGetCountOfKey( - CFDictionaryRef theDict, - ffi.Pointer key, -); - -@ffi.Native)>() -external int CFDictionaryGetCountOfValue( - CFDictionaryRef theDict, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFDictionaryRef, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external void CFDictionaryGetKeysAndValues( - CFDictionaryRef theDict, - ffi.Pointer> keys, - ffi.Pointer> values, -); - -@ffi.Native() -external int CFDictionaryGetTypeID(); - -@ffi.Native< - ffi.Pointer Function(CFDictionaryRef, ffi.Pointer) ->() -external ffi.Pointer CFDictionaryGetValue( - CFDictionaryRef theDict, - ffi.Pointer key, -); - -@ffi.Native< - Boolean Function( - CFDictionaryRef, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CFDictionaryGetValueIfPresent( - CFDictionaryRef theDict, - ffi.Pointer key, - ffi.Pointer> value, -); - -@ffi.Native() -external void CFDictionaryRemoveAllValues(CFMutableDictionaryRef theDict); - -@ffi.Native)>() -external void CFDictionaryRemoveValue( - CFMutableDictionaryRef theDict, - ffi.Pointer key, -); - -@ffi.Native< - ffi.Void Function( - CFMutableDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFDictionaryReplaceValue( - CFMutableDictionaryRef theDict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFMutableDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFDictionarySetValue( - CFMutableDictionaryRef theDict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native() -external int CFEqual(CFTypeRef cf1, CFTypeRef cf2); - -@ffi.Native() -external CFStringRef CFErrorCopyDescription(CFErrorRef err); - -@ffi.Native() -external CFStringRef CFErrorCopyFailureReason(CFErrorRef err); - -@ffi.Native() -external CFStringRef CFErrorCopyRecoverySuggestion(CFErrorRef err); - -@ffi.Native() -external CFDictionaryRef CFErrorCopyUserInfo(CFErrorRef err); - -@ffi.Native< - CFErrorRef Function(CFAllocatorRef, CFErrorDomain, CFIndex, CFDictionaryRef) ->() -external CFErrorRef CFErrorCreate( - CFAllocatorRef allocator, - CFErrorDomain domain, - int code, - CFDictionaryRef userInfo, -); - -@ffi.Native< - CFErrorRef Function( - CFAllocatorRef, - CFErrorDomain, - CFIndex, - ffi.Pointer>, - ffi.Pointer>, - CFIndex, - ) ->() -external CFErrorRef CFErrorCreateWithUserInfoKeysAndValues( - CFAllocatorRef allocator, - CFErrorDomain domain, - int code, - ffi.Pointer> userInfoKeys, - ffi.Pointer> userInfoValues, - int numUserInfoValues, -); - -@ffi.Native() -external int CFErrorGetCode(CFErrorRef err); - -@ffi.Native() -external CFErrorDomain CFErrorGetDomain(CFErrorRef err); - -@ffi.Native() -external int CFErrorGetTypeID(); - -@Deprecated('Use NSURLSessionAPI for ftp requests') -@ffi.Native< - CFIndex Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - ffi.Pointer, - ) ->() -external int CFFTPCreateParsedResourceListing( - CFAllocatorRef alloc, - ffi.Pointer buffer, - int bufferLength, - ffi.Pointer parsed, -); - -@ffi.Native< - CFFileDescriptorRef Function( - CFAllocatorRef, - CFFileDescriptorNativeDescriptor, - Boolean, - CFFileDescriptorCallBack, - ffi.Pointer, - ) ->() -external CFFileDescriptorRef CFFileDescriptorCreate( - CFAllocatorRef allocator, - int fd, - int closeOnInvalidate, - CFFileDescriptorCallBack callout, - ffi.Pointer context, -); - -@ffi.Native< - CFRunLoopSourceRef Function(CFAllocatorRef, CFFileDescriptorRef, CFIndex) ->() -external CFRunLoopSourceRef CFFileDescriptorCreateRunLoopSource( - CFAllocatorRef allocator, - CFFileDescriptorRef f, - int order, -); - -@ffi.Native() -external void CFFileDescriptorDisableCallBacks( - CFFileDescriptorRef f, - int callBackTypes, -); - -@ffi.Native() -external void CFFileDescriptorEnableCallBacks( - CFFileDescriptorRef f, - int callBackTypes, -); - -@ffi.Native< - ffi.Void Function(CFFileDescriptorRef, ffi.Pointer) ->() -external void CFFileDescriptorGetContext( - CFFileDescriptorRef f, - ffi.Pointer context, -); - -@ffi.Native() -external int CFFileDescriptorGetNativeDescriptor(CFFileDescriptorRef f); - -@ffi.Native() -external int CFFileDescriptorGetTypeID(); - -@ffi.Native() -external void CFFileDescriptorInvalidate(CFFileDescriptorRef f); - -@ffi.Native() -external int CFFileDescriptorIsValid(CFFileDescriptorRef f); - -@ffi.Native() -external int CFFileSecurityClearProperties( - CFFileSecurityRef fileSec, - int clearPropertyMask, -); - -@ffi.Native)>() -external int CFFileSecurityCopyAccessControlList( - CFFileSecurityRef fileSec, - ffi.Pointer accessControlList, -); - -@ffi.Native)>() -external int CFFileSecurityCopyGroupUUID( - CFFileSecurityRef fileSec, - ffi.Pointer groupUUID, -); - -@ffi.Native)>() -external int CFFileSecurityCopyOwnerUUID( - CFFileSecurityRef fileSec, - ffi.Pointer ownerUUID, -); - -@ffi.Native() -external CFFileSecurityRef CFFileSecurityCreate(CFAllocatorRef allocator); - -@ffi.Native() -external CFFileSecurityRef CFFileSecurityCreateCopy( - CFAllocatorRef allocator, - CFFileSecurityRef fileSec, -); - -@ffi.Native)>() -external int CFFileSecurityGetGroup( - CFFileSecurityRef fileSec, - ffi.Pointer group, -); - -@ffi.Native)>() -external int CFFileSecurityGetMode( - CFFileSecurityRef fileSec, - ffi.Pointer mode, -); - -@ffi.Native)>() -external int CFFileSecurityGetOwner( - CFFileSecurityRef fileSec, - ffi.Pointer owner, -); - -@ffi.Native() -external int CFFileSecurityGetTypeID(); - -@ffi.Native() -external int CFFileSecuritySetAccessControlList( - CFFileSecurityRef fileSec, - acl_t accessControlList, -); - -@ffi.Native() -external int CFFileSecuritySetGroup(CFFileSecurityRef fileSec, int group); - -@ffi.Native() -external int CFFileSecuritySetGroupUUID( - CFFileSecurityRef fileSec, - CFUUIDRef groupUUID, -); - -@ffi.Native() -external int CFFileSecuritySetMode(CFFileSecurityRef fileSec, int mode); - -@ffi.Native() -external int CFFileSecuritySetOwner(CFFileSecurityRef fileSec, int owner); - -@ffi.Native() -external int CFFileSecuritySetOwnerUUID( - CFFileSecurityRef fileSec, - CFUUIDRef ownerUUID, -); - -@ffi.Native() -external CFAllocatorRef CFGetAllocator(CFTypeRef cf); - -@ffi.Native() -external int CFGetRetainCount(CFTypeRef cf); - -@ffi.Native() -external int CFGetTypeID(CFTypeRef cf); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external double CFGregorianDateGetAbsoluteTime( - CFGregorianDate gdate, - CFTimeZoneRef tz, -); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external int CFGregorianDateIsValid(CFGregorianDate gdate, int unitFlags); - -@ffi.Native() -external int CFHTTPAuthenticationAppliesToRequest( - CFHTTPAuthenticationRef auth, - CFHTTPMessageRef request, -); - -@ffi.Native() -external CFArrayRef CFHTTPAuthenticationCopyDomains( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native() -external CFStringRef CFHTTPAuthenticationCopyMethod( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native() -external CFStringRef CFHTTPAuthenticationCopyRealm( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native< - CFHTTPAuthenticationRef Function(CFAllocatorRef, CFHTTPMessageRef) ->() -external CFHTTPAuthenticationRef CFHTTPAuthenticationCreateFromResponse( - CFAllocatorRef alloc, - CFHTTPMessageRef response, -); - -@ffi.Native() -external int CFHTTPAuthenticationGetTypeID(); - -@ffi.Native< - Boolean Function(CFHTTPAuthenticationRef, ffi.Pointer) ->() -external int CFHTTPAuthenticationIsValid( - CFHTTPAuthenticationRef auth, - ffi.Pointer error, -); - -@ffi.Native() -external int CFHTTPAuthenticationRequiresAccountDomain( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native() -external int CFHTTPAuthenticationRequiresOrderedRequests( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native() -external int CFHTTPAuthenticationRequiresUserNameAndPassword( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native< - Boolean Function( - CFHTTPMessageRef, - CFHTTPMessageRef, - CFStringRef, - CFStringRef, - CFStringRef, - Boolean, - ) ->() -external int CFHTTPMessageAddAuthentication( - CFHTTPMessageRef request, - CFHTTPMessageRef authenticationFailureResponse, - CFStringRef username, - CFStringRef password, - CFStringRef authenticationScheme, - int forProxy, -); - -@ffi.Native, CFIndex)>() -external int CFHTTPMessageAppendBytes( - CFHTTPMessageRef message, - ffi.Pointer newBytes, - int numBytes, -); - -@ffi.Native< - Boolean Function( - CFHTTPMessageRef, - CFHTTPAuthenticationRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CFHTTPMessageApplyCredentialDictionary( - CFHTTPMessageRef request, - CFHTTPAuthenticationRef auth, - CFDictionaryRef dict, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function( - CFHTTPMessageRef, - CFHTTPAuthenticationRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external int CFHTTPMessageApplyCredentials( - CFHTTPMessageRef request, - CFHTTPAuthenticationRef auth, - CFStringRef username, - CFStringRef password, - ffi.Pointer error, -); - -@ffi.Native() -external CFDictionaryRef CFHTTPMessageCopyAllHeaderFields( - CFHTTPMessageRef message, -); - -@ffi.Native() -external CFDataRef CFHTTPMessageCopyBody(CFHTTPMessageRef message); - -@ffi.Native() -external CFStringRef CFHTTPMessageCopyHeaderFieldValue( - CFHTTPMessageRef message, - CFStringRef headerField, -); - -@ffi.Native() -external CFStringRef CFHTTPMessageCopyRequestMethod(CFHTTPMessageRef request); - -@ffi.Native() -external CFURLRef CFHTTPMessageCopyRequestURL(CFHTTPMessageRef request); - -@ffi.Native() -external CFStringRef CFHTTPMessageCopyResponseStatusLine( - CFHTTPMessageRef response, -); - -@ffi.Native() -external CFDataRef CFHTTPMessageCopySerializedMessage(CFHTTPMessageRef message); - -@ffi.Native() -external CFStringRef CFHTTPMessageCopyVersion(CFHTTPMessageRef message); - -@ffi.Native() -external CFHTTPMessageRef CFHTTPMessageCreateCopy( - CFAllocatorRef alloc, - CFHTTPMessageRef message, -); - -@ffi.Native() -external CFHTTPMessageRef CFHTTPMessageCreateEmpty( - CFAllocatorRef alloc, - int isRequest, -); - -@ffi.Native< - CFHTTPMessageRef Function(CFAllocatorRef, CFStringRef, CFURLRef, CFStringRef) ->() -external CFHTTPMessageRef CFHTTPMessageCreateRequest( - CFAllocatorRef alloc, - CFStringRef requestMethod, - CFURLRef url, - CFStringRef httpVersion, -); - -@ffi.Native< - CFHTTPMessageRef Function(CFAllocatorRef, CFIndex, CFStringRef, CFStringRef) ->() -external CFHTTPMessageRef CFHTTPMessageCreateResponse( - CFAllocatorRef alloc, - int statusCode, - CFStringRef statusDescription, - CFStringRef httpVersion, -); - -@ffi.Native() -external int CFHTTPMessageGetResponseStatusCode(CFHTTPMessageRef response); - -@ffi.Native() -external int CFHTTPMessageGetTypeID(); - -@ffi.Native() -external int CFHTTPMessageIsHeaderComplete(CFHTTPMessageRef message); - -@ffi.Native() -external int CFHTTPMessageIsRequest(CFHTTPMessageRef message); - -@ffi.Native() -external void CFHTTPMessageSetBody( - CFHTTPMessageRef message, - CFDataRef bodyData, -); - -@ffi.Native() -external void CFHTTPMessageSetHeaderFieldValue( - CFHTTPMessageRef message, - CFStringRef headerField, - CFStringRef value, -); - -@ffi.Native() -external int CFHash(CFTypeRef cf); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native( - symbol: 'CFHostCancelInfoResolution', -) -external void _CFHostCancelInfoResolution(CFHostRef theHost, int info); - -void CFHostCancelInfoResolution(CFHostRef theHost, CFHostInfoType info) { - return _CFHostCancelInfoResolution(theHost, info.value); -} - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external CFHostRef CFHostCreateCopy(CFAllocatorRef alloc, CFHostRef host); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external CFHostRef CFHostCreateWithAddress( - CFAllocatorRef allocator, - CFDataRef addr, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external CFHostRef CFHostCreateWithName( - CFAllocatorRef allocator, - CFStringRef hostname, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native)>() -external CFArrayRef CFHostGetAddressing( - CFHostRef theHost, - ffi.Pointer hasBeenResolved, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native)>() -external CFArrayRef CFHostGetNames( - CFHostRef theHost, - ffi.Pointer hasBeenResolved, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native)>() -external CFDataRef CFHostGetReachability( - CFHostRef theHost, - ffi.Pointer hasBeenResolved, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external int CFHostGetTypeID(); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external void CFHostScheduleWithRunLoop( - CFHostRef theHost, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native< - Boolean Function( - CFHostRef, - CFHostClientCallBack, - ffi.Pointer, - ) ->() -external int CFHostSetClient( - CFHostRef theHost, - CFHostClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native< - Boolean Function(CFHostRef, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'CFHostStartInfoResolution') -external int _CFHostStartInfoResolution( - CFHostRef theHost, - int info, - ffi.Pointer error, -); - -DartBoolean CFHostStartInfoResolution( - CFHostRef theHost, - CFHostInfoType info, - ffi.Pointer error, -) { - return _CFHostStartInfoResolution(theHost, info.value, error); -} - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external void CFHostUnscheduleFromRunLoop( - CFHostRef theHost, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native() -external CFArrayRef CFLocaleCopyAvailableLocaleIdentifiers(); - -@ffi.Native() -external CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(); - -@ffi.Native() -external CFLocaleRef CFLocaleCopyCurrent(); - -@ffi.Native() -external CFStringRef CFLocaleCopyDisplayNameForPropertyValue( - CFLocaleRef displayLocale, - CFLocaleKey key, - CFStringRef value, -); - -@ffi.Native() -external CFArrayRef CFLocaleCopyISOCountryCodes(); - -@ffi.Native() -external CFArrayRef CFLocaleCopyISOCurrencyCodes(); - -@ffi.Native() -external CFArrayRef CFLocaleCopyISOLanguageCodes(); - -@ffi.Native() -external CFArrayRef CFLocaleCopyPreferredLanguages(); - -@ffi.Native() -external CFLocaleRef CFLocaleCreate( - CFAllocatorRef allocator, - CFLocaleIdentifier localeIdentifier, -); - -@ffi.Native() -external CFLocaleIdentifier CFLocaleCreateCanonicalLanguageIdentifierFromString( - CFAllocatorRef allocator, - CFStringRef localeIdentifier, -); - -@ffi.Native() -external CFLocaleIdentifier -CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes( - CFAllocatorRef allocator, - int lcode, - int rcode, -); - -@ffi.Native() -external CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromString( - CFAllocatorRef allocator, - CFStringRef localeIdentifier, -); - -@ffi.Native() -external CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier( - CFAllocatorRef allocator, - CFLocaleIdentifier localeID, -); - -@ffi.Native() -external CFLocaleRef CFLocaleCreateCopy( - CFAllocatorRef allocator, - CFLocaleRef locale, -); - -@ffi.Native() -external CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromComponents( - CFAllocatorRef allocator, - CFDictionaryRef dictionary, -); - -@ffi.Native() -external CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode( - CFAllocatorRef allocator, - int lcid, -); - -@ffi.Native() -external CFLocaleIdentifier CFLocaleGetIdentifier(CFLocaleRef locale); - -@ffi.Native( - symbol: 'CFLocaleGetLanguageCharacterDirection', -) -external int _CFLocaleGetLanguageCharacterDirection(CFStringRef isoLangCode); - -CFLocaleLanguageDirection CFLocaleGetLanguageCharacterDirection( - CFStringRef isoLangCode, -) { - return CFLocaleLanguageDirection.fromValue( - _CFLocaleGetLanguageCharacterDirection(isoLangCode), - ); -} - -@ffi.Native( - symbol: 'CFLocaleGetLanguageLineDirection', -) -external int _CFLocaleGetLanguageLineDirection(CFStringRef isoLangCode); - -CFLocaleLanguageDirection CFLocaleGetLanguageLineDirection( - CFStringRef isoLangCode, -) { - return CFLocaleLanguageDirection.fromValue( - _CFLocaleGetLanguageLineDirection(isoLangCode), - ); -} - -@ffi.Native() -external CFLocaleRef CFLocaleGetSystem(); - -@ffi.Native() -external int CFLocaleGetTypeID(); - -@ffi.Native() -external CFTypeRef CFLocaleGetValue(CFLocaleRef locale, CFLocaleKey key); - -@ffi.Native() -external int CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier( - CFLocaleIdentifier localeIdentifier, -); - -@ffi.Native< - CFMachPortRef Function( - CFAllocatorRef, - CFMachPortCallBack, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFMachPortRef CFMachPortCreate( - CFAllocatorRef allocator, - CFMachPortCallBack callout, - ffi.Pointer context, - ffi.Pointer shouldFreeInfo, -); - -@ffi.Native< - CFRunLoopSourceRef Function(CFAllocatorRef, CFMachPortRef, CFIndex) ->() -external CFRunLoopSourceRef CFMachPortCreateRunLoopSource( - CFAllocatorRef allocator, - CFMachPortRef port, - int order, -); - -@ffi.Native< - CFMachPortRef Function( - CFAllocatorRef, - mach_port_t, - CFMachPortCallBack, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFMachPortRef CFMachPortCreateWithPort( - CFAllocatorRef allocator, - int portNum, - CFMachPortCallBack callout, - ffi.Pointer context, - ffi.Pointer shouldFreeInfo, -); - -@ffi.Native)>() -external void CFMachPortGetContext( - CFMachPortRef port, - ffi.Pointer context, -); - -@ffi.Native() -external CFMachPortInvalidationCallBack CFMachPortGetInvalidationCallBack( - CFMachPortRef port, -); - -@ffi.Native() -external int CFMachPortGetPort(CFMachPortRef port); - -@ffi.Native() -external int CFMachPortGetTypeID(); - -@ffi.Native() -external void CFMachPortInvalidate(CFMachPortRef port); - -@ffi.Native() -external int CFMachPortIsValid(CFMachPortRef port); - -@ffi.Native() -external void CFMachPortSetInvalidationCallBack( - CFMachPortRef port, - CFMachPortInvalidationCallBack callout, -); - -@ffi.Native() -external CFTypeRef CFMakeCollectable(CFTypeRef cf); - -@ffi.Native< - CFMessagePortRef Function( - CFAllocatorRef, - CFStringRef, - CFMessagePortCallBack, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFMessagePortRef CFMessagePortCreateLocal( - CFAllocatorRef allocator, - CFStringRef name, - CFMessagePortCallBack callout, - ffi.Pointer context, - ffi.Pointer shouldFreeInfo, -); - -@ffi.Native() -external CFMessagePortRef CFMessagePortCreateRemote( - CFAllocatorRef allocator, - CFStringRef name, -); - -@ffi.Native< - CFRunLoopSourceRef Function(CFAllocatorRef, CFMessagePortRef, CFIndex) ->() -external CFRunLoopSourceRef CFMessagePortCreateRunLoopSource( - CFAllocatorRef allocator, - CFMessagePortRef local, - int order, -); - -@ffi.Native< - ffi.Void Function(CFMessagePortRef, ffi.Pointer) ->() -external void CFMessagePortGetContext( - CFMessagePortRef ms, - ffi.Pointer context, -); - -@ffi.Native() -external CFMessagePortInvalidationCallBack CFMessagePortGetInvalidationCallBack( - CFMessagePortRef ms, -); - -@ffi.Native() -external CFStringRef CFMessagePortGetName(CFMessagePortRef ms); - -@ffi.Native() -external int CFMessagePortGetTypeID(); - -@ffi.Native() -external void CFMessagePortInvalidate(CFMessagePortRef ms); - -@ffi.Native() -external int CFMessagePortIsRemote(CFMessagePortRef ms); - -@ffi.Native() -external int CFMessagePortIsValid(CFMessagePortRef ms); - -@ffi.Native< - SInt32 Function( - CFMessagePortRef, - SInt32, - CFDataRef, - CFTimeInterval, - CFTimeInterval, - CFStringRef, - ffi.Pointer, - ) ->() -external int CFMessagePortSendRequest( - CFMessagePortRef remote, - int msgid, - CFDataRef data, - double sendTimeout, - double rcvTimeout, - CFStringRef replyMode, - ffi.Pointer returnData, -); - -@ffi.Native( - symbol: 'CFMessagePortSetDispatchQueue', -) -external void _CFMessagePortSetDispatchQueue( - CFMessagePortRef ms, - dispatch_queue_t queue, -); - -void CFMessagePortSetDispatchQueue( - CFMessagePortRef ms, - Dartdispatch_queue_t queue, -) { - final _$$ref = queue.ref; - return _CFMessagePortSetDispatchQueue(ms, _$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function(CFMessagePortRef, CFMessagePortInvalidationCallBack) ->() -external void CFMessagePortSetInvalidationCallBack( - CFMessagePortRef ms, - CFMessagePortInvalidationCallBack callout, -); - -@ffi.Native() -external int CFMessagePortSetName(CFMessagePortRef ms, CFStringRef newName); - -@Deprecated('Deprecated') -@ffi.Native< - CFNetDiagnosticStatus Function(CFNetDiagnosticRef, ffi.Pointer) ->() -external int CFNetDiagnosticCopyNetworkStatusPassively( - CFNetDiagnosticRef details, - ffi.Pointer description, -); - -@Deprecated('Deprecated') -@ffi.Native< - CFNetDiagnosticRef Function(CFAllocatorRef, CFReadStreamRef, CFWriteStreamRef) ->() -external CFNetDiagnosticRef CFNetDiagnosticCreateWithStreams( - CFAllocatorRef alloc, - CFReadStreamRef readStream, - CFWriteStreamRef writeStream, -); - -@Deprecated('Deprecated') -@ffi.Native() -external CFNetDiagnosticRef CFNetDiagnosticCreateWithURL( - CFAllocatorRef alloc, - CFURLRef url, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CFNetDiagnosticDiagnoseProblemInteractively( - CFNetDiagnosticRef details, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void CFNetDiagnosticSetName( - CFNetDiagnosticRef details, - CFStringRef name, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - CFNetServiceBrowserRef Function( - CFAllocatorRef, - CFNetServiceBrowserClientCallBack, - ffi.Pointer, - ) ->() -external CFNetServiceBrowserRef CFNetServiceBrowserCreate( - CFAllocatorRef alloc, - CFNetServiceBrowserClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external int CFNetServiceBrowserGetTypeID(); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external void CFNetServiceBrowserInvalidate(CFNetServiceBrowserRef browser); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceBrowserRef, CFRunLoopRef, CFStringRef) ->() -external void CFNetServiceBrowserScheduleWithRunLoop( - CFNetServiceBrowserRef browser, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function(CFNetServiceBrowserRef, Boolean, ffi.Pointer) ->() -external int CFNetServiceBrowserSearchForDomains( - CFNetServiceBrowserRef browser, - int registrationDomains, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function( - CFNetServiceBrowserRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external int CFNetServiceBrowserSearchForServices( - CFNetServiceBrowserRef browser, - CFStringRef domain, - CFStringRef serviceType, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceBrowserRef, ffi.Pointer) ->() -external void CFNetServiceBrowserStopSearch( - CFNetServiceBrowserRef browser, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceBrowserRef, CFRunLoopRef, CFStringRef) ->() -external void CFNetServiceBrowserUnscheduleFromRunLoop( - CFNetServiceBrowserRef browser, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external void CFNetServiceCancel(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - CFNetServiceRef Function( - CFAllocatorRef, - CFStringRef, - CFStringRef, - CFStringRef, - SInt32, - ) ->() -external CFNetServiceRef CFNetServiceCreate( - CFAllocatorRef alloc, - CFStringRef domain, - CFStringRef serviceType, - CFStringRef name, - int port, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFNetServiceRef CFNetServiceCreateCopy( - CFAllocatorRef alloc, - CFNetServiceRef service, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFDictionaryRef CFNetServiceCreateDictionaryWithTXTData( - CFAllocatorRef alloc, - CFDataRef txtRecord, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFDataRef CFNetServiceCreateTXTDataWithDictionary( - CFAllocatorRef alloc, - CFDictionaryRef keyValuePairs, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFArrayRef CFNetServiceGetAddressing(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFStringRef CFNetServiceGetDomain(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFStringRef CFNetServiceGetName(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external int CFNetServiceGetPortNumber(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFDataRef CFNetServiceGetTXTData(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFStringRef CFNetServiceGetTargetHost(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFStringRef CFNetServiceGetType(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external int CFNetServiceGetTypeID(); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - CFNetServiceMonitorRef Function( - CFAllocatorRef, - CFNetServiceRef, - CFNetServiceMonitorClientCallBack, - ffi.Pointer, - ) ->() -external CFNetServiceMonitorRef CFNetServiceMonitorCreate( - CFAllocatorRef alloc, - CFNetServiceRef theService, - CFNetServiceMonitorClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external int CFNetServiceMonitorGetTypeID(); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external void CFNetServiceMonitorInvalidate(CFNetServiceMonitorRef monitor); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceMonitorRef, CFRunLoopRef, CFStringRef) ->() -external void CFNetServiceMonitorScheduleWithRunLoop( - CFNetServiceMonitorRef monitor, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function( - CFNetServiceMonitorRef, - ffi.UnsignedInt, - ffi.Pointer, - ) ->(symbol: 'CFNetServiceMonitorStart') -external int _CFNetServiceMonitorStart( - CFNetServiceMonitorRef monitor, - int recordType, - ffi.Pointer error, -); - -DartBoolean CFNetServiceMonitorStart( - CFNetServiceMonitorRef monitor, - CFNetServiceMonitorType recordType, - ffi.Pointer error, -) { - return _CFNetServiceMonitorStart(monitor, recordType.value, error); -} - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceMonitorRef, ffi.Pointer) ->() -external void CFNetServiceMonitorStop( - CFNetServiceMonitorRef monitor, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceMonitorRef, CFRunLoopRef, CFStringRef) ->() -external void CFNetServiceMonitorUnscheduleFromRunLoop( - CFNetServiceMonitorRef monitor, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CFNetServiceRegister( - CFNetServiceRef theService, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function(CFNetServiceRef, CFOptionFlags, ffi.Pointer) ->() -external int CFNetServiceRegisterWithOptions( - CFNetServiceRef theService, - int options, - ffi.Pointer error, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CFNetServiceResolve( - CFNetServiceRef theService, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function(CFNetServiceRef, CFTimeInterval, ffi.Pointer) ->() -external int CFNetServiceResolveWithTimeout( - CFNetServiceRef theService, - double timeout, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external void CFNetServiceScheduleWithRunLoop( - CFNetServiceRef theService, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function( - CFNetServiceRef, - CFNetServiceClientCallBack, - ffi.Pointer, - ) ->() -external int CFNetServiceSetClient( - CFNetServiceRef theService, - CFNetServiceClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external int CFNetServiceSetTXTData( - CFNetServiceRef theService, - CFDataRef txtRecord, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external void CFNetServiceUnscheduleFromRunLoop( - CFNetServiceRef theService, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native< - CFArrayRef Function(CFStringRef, CFURLRef, ffi.Pointer) ->() -external CFArrayRef CFNetworkCopyProxiesForAutoConfigurationScript( - CFStringRef proxyAutoConfigurationScript, - CFURLRef targetURL, - ffi.Pointer error, -); - -@ffi.Native() -external CFArrayRef CFNetworkCopyProxiesForURL( - CFURLRef url, - CFDictionaryRef proxySettings, -); - -@ffi.Native() -external CFDictionaryRef CFNetworkCopySystemProxySettings(); - -@ffi.Native< - CFRunLoopSourceRef Function( - CFStringRef, - CFURLRef, - CFProxyAutoConfigurationResultCallback, - ffi.Pointer, - ) ->() -external CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationScript( - CFStringRef proxyAutoConfigurationScript, - CFURLRef targetURL, - CFProxyAutoConfigurationResultCallback cb, - ffi.Pointer clientContext, -); - -@ffi.Native< - CFRunLoopSourceRef Function( - CFURLRef, - CFURLRef, - CFProxyAutoConfigurationResultCallback, - ffi.Pointer, - ) ->() -external CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationURL( - CFURLRef proxyAutoConfigURL, - CFURLRef targetURL, - CFProxyAutoConfigurationResultCallback cb, - ffi.Pointer clientContext, -); - -@ffi.Native< - ffi.Void Function( - CFNotificationCenterRef, - ffi.Pointer, - CFNotificationCallback, - CFStringRef, - ffi.Pointer, - CFIndex, - ) ->(symbol: 'CFNotificationCenterAddObserver') -external void _CFNotificationCenterAddObserver( - CFNotificationCenterRef center, - ffi.Pointer observer, - CFNotificationCallback callBack, - CFStringRef name, - ffi.Pointer object, - int suspensionBehavior, -); - -void CFNotificationCenterAddObserver( - CFNotificationCenterRef center, - ffi.Pointer observer, - CFNotificationCallback callBack, - CFStringRef name, - ffi.Pointer object, - CFNotificationSuspensionBehavior suspensionBehavior, -) { - return _CFNotificationCenterAddObserver( - center, - observer, - callBack, - name, - object, - suspensionBehavior.value, - ); -} - -@ffi.Native() -external CFNotificationCenterRef CFNotificationCenterGetDarwinNotifyCenter(); - -@ffi.Native() -external CFNotificationCenterRef CFNotificationCenterGetDistributedCenter(); - -@ffi.Native() -external CFNotificationCenterRef CFNotificationCenterGetLocalCenter(); - -@ffi.Native() -external int CFNotificationCenterGetTypeID(); - -@ffi.Native< - ffi.Void Function( - CFNotificationCenterRef, - CFNotificationName, - ffi.Pointer, - CFDictionaryRef, - Boolean, - ) ->() -external void CFNotificationCenterPostNotification( - CFNotificationCenterRef center, - CFNotificationName name, - ffi.Pointer object, - CFDictionaryRef userInfo, - int deliverImmediately, -); - -@ffi.Native< - ffi.Void Function( - CFNotificationCenterRef, - CFNotificationName, - ffi.Pointer, - CFDictionaryRef, - CFOptionFlags, - ) ->() -external void CFNotificationCenterPostNotificationWithOptions( - CFNotificationCenterRef center, - CFNotificationName name, - ffi.Pointer object, - CFDictionaryRef userInfo, - int options, -); - -@ffi.Native)>() -external void CFNotificationCenterRemoveEveryObserver( - CFNotificationCenterRef center, - ffi.Pointer observer, -); - -@ffi.Native< - ffi.Void Function( - CFNotificationCenterRef, - ffi.Pointer, - CFNotificationName, - ffi.Pointer, - ) ->() -external void CFNotificationCenterRemoveObserver( - CFNotificationCenterRef center, - ffi.Pointer observer, - CFNotificationName name, - ffi.Pointer object, -); - -@ffi.Native() -external int CFNullGetTypeID(); - -@ffi.Native)>( - symbol: 'CFNumberCompare', -) -external int _CFNumberCompare( - CFNumberRef number, - CFNumberRef otherNumber, - ffi.Pointer context, -); - -CFComparisonResult CFNumberCompare( - CFNumberRef number, - CFNumberRef otherNumber, - ffi.Pointer context, -) { - return CFComparisonResult.fromValue( - _CFNumberCompare(number, otherNumber, context), - ); -} - -@ffi.Native< - CFNumberRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) ->(symbol: 'CFNumberCreate') -external CFNumberRef _CFNumberCreate( - CFAllocatorRef allocator, - int theType, - ffi.Pointer valuePtr, -); - -CFNumberRef CFNumberCreate( - CFAllocatorRef allocator, - CFNumberType theType, - ffi.Pointer valuePtr, -) { - return _CFNumberCreate(allocator, theType.value, valuePtr); -} - -@ffi.Native() -external CFTypeRef CFNumberFormatterCopyProperty( - CFNumberFormatterRef formatter, - CFNumberFormatterKey key, -); - -@ffi.Native< - CFNumberFormatterRef Function(CFAllocatorRef, CFLocaleRef, CFIndex) ->(symbol: 'CFNumberFormatterCreate') -external CFNumberFormatterRef _CFNumberFormatterCreate( - CFAllocatorRef allocator, - CFLocaleRef locale, - int style, -); - -CFNumberFormatterRef CFNumberFormatterCreate( - CFAllocatorRef allocator, - CFLocaleRef locale, - CFNumberFormatterStyle style, -) { - return _CFNumberFormatterCreate(allocator, locale, style.value); -} - -@ffi.Native< - CFNumberRef Function( - CFAllocatorRef, - CFNumberFormatterRef, - CFStringRef, - ffi.Pointer, - CFOptionFlags, - ) ->() -external CFNumberRef CFNumberFormatterCreateNumberFromString( - CFAllocatorRef allocator, - CFNumberFormatterRef formatter, - CFStringRef string, - ffi.Pointer rangep, - int options, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFNumberFormatterRef, CFNumberRef) ->() -external CFStringRef CFNumberFormatterCreateStringWithNumber( - CFAllocatorRef allocator, - CFNumberFormatterRef formatter, - CFNumberRef number, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - CFNumberFormatterRef, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'CFNumberFormatterCreateStringWithValue') -external CFStringRef _CFNumberFormatterCreateStringWithValue( - CFAllocatorRef allocator, - CFNumberFormatterRef formatter, - int numberType, - ffi.Pointer valuePtr, -); - -CFStringRef CFNumberFormatterCreateStringWithValue( - CFAllocatorRef allocator, - CFNumberFormatterRef formatter, - CFNumberType numberType, - ffi.Pointer valuePtr, -) { - return _CFNumberFormatterCreateStringWithValue( - allocator, - formatter, - numberType.value, - valuePtr, - ); -} - -@ffi.Native< - Boolean Function(CFStringRef, ffi.Pointer, ffi.Pointer) ->() -external int CFNumberFormatterGetDecimalInfoForCurrencyCode( - CFStringRef currencyCode, - ffi.Pointer defaultFractionDigits, - ffi.Pointer roundingIncrement, -); - -@ffi.Native() -external CFStringRef CFNumberFormatterGetFormat(CFNumberFormatterRef formatter); - -@ffi.Native() -external CFLocaleRef CFNumberFormatterGetLocale(CFNumberFormatterRef formatter); - -@ffi.Native( - symbol: 'CFNumberFormatterGetStyle', -) -external int _CFNumberFormatterGetStyle(CFNumberFormatterRef formatter); - -CFNumberFormatterStyle CFNumberFormatterGetStyle( - CFNumberFormatterRef formatter, -) { - return CFNumberFormatterStyle.fromValue( - _CFNumberFormatterGetStyle(formatter), - ); -} - -@ffi.Native() -external int CFNumberFormatterGetTypeID(); - -@ffi.Native< - Boolean Function( - CFNumberFormatterRef, - CFStringRef, - ffi.Pointer, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'CFNumberFormatterGetValueFromString') -external int _CFNumberFormatterGetValueFromString( - CFNumberFormatterRef formatter, - CFStringRef string, - ffi.Pointer rangep, - int numberType, - ffi.Pointer valuePtr, -); - -DartBoolean CFNumberFormatterGetValueFromString( - CFNumberFormatterRef formatter, - CFStringRef string, - ffi.Pointer rangep, - CFNumberType numberType, - ffi.Pointer valuePtr, -) { - return _CFNumberFormatterGetValueFromString( - formatter, - string, - rangep, - numberType.value, - valuePtr, - ); -} - -@ffi.Native() -external void CFNumberFormatterSetFormat( - CFNumberFormatterRef formatter, - CFStringRef formatString, -); - -@ffi.Native< - ffi.Void Function(CFNumberFormatterRef, CFNumberFormatterKey, CFTypeRef) ->() -external void CFNumberFormatterSetProperty( - CFNumberFormatterRef formatter, - CFNumberFormatterKey key, - CFTypeRef value, -); - -@ffi.Native() -external int CFNumberGetByteSize(CFNumberRef number); - -@ffi.Native(symbol: 'CFNumberGetType') -external int _CFNumberGetType(CFNumberRef number); - -CFNumberType CFNumberGetType(CFNumberRef number) { - return CFNumberType.fromValue(_CFNumberGetType(number)); -} - -@ffi.Native() -external int CFNumberGetTypeID(); - -@ffi.Native)>( - symbol: 'CFNumberGetValue', -) -external int _CFNumberGetValue( - CFNumberRef number, - int theType, - ffi.Pointer valuePtr, -); - -DartBoolean CFNumberGetValue( - CFNumberRef number, - CFNumberType theType, - ffi.Pointer valuePtr, -) { - return _CFNumberGetValue(number, theType.value, valuePtr); -} - -@ffi.Native() -external int CFNumberIsFloatType(CFNumberRef number); - -@ffi.Native() -external void CFPlugInAddInstanceForFactory(CFUUIDRef factoryID); - -@ffi.Native() -external CFPlugInRef CFPlugInCreate( - CFAllocatorRef allocator, - CFURLRef plugInURL, -); - -@ffi.Native() -external CFArrayRef CFPlugInFindFactoriesForPlugInType(CFUUIDRef typeUUID); - -@ffi.Native() -external CFArrayRef CFPlugInFindFactoriesForPlugInTypeInPlugIn( - CFUUIDRef typeUUID, - CFPlugInRef plugIn, -); - -@ffi.Native() -external CFBundleRef CFPlugInGetBundle(CFPlugInRef plugIn); - -@ffi.Native() -external int CFPlugInGetTypeID(); - -@ffi.Native< - ffi.Pointer Function(CFAllocatorRef, CFUUIDRef, CFUUIDRef) ->() -external ffi.Pointer CFPlugInInstanceCreate( - CFAllocatorRef allocator, - CFUUIDRef factoryUUID, - CFUUIDRef typeUUID, -); - -@ffi.Native< - CFPlugInInstanceRef Function( - CFAllocatorRef, - CFIndex, - CFPlugInInstanceDeallocateInstanceDataFunction, - CFStringRef, - CFPlugInInstanceGetInterfaceFunction, - ) ->() -external CFPlugInInstanceRef CFPlugInInstanceCreateWithInstanceDataSize( - CFAllocatorRef allocator, - int instanceDataSize, - CFPlugInInstanceDeallocateInstanceDataFunction deallocateInstanceFunction, - CFStringRef factoryName, - CFPlugInInstanceGetInterfaceFunction getInterfaceFunction, -); - -@ffi.Native() -external CFStringRef CFPlugInInstanceGetFactoryName( - CFPlugInInstanceRef instance, -); - -@ffi.Native Function(CFPlugInInstanceRef)>() -external ffi.Pointer CFPlugInInstanceGetInstanceData( - CFPlugInInstanceRef instance, -); - -@ffi.Native< - Boolean Function( - CFPlugInInstanceRef, - CFStringRef, - ffi.Pointer>, - ) ->() -external int CFPlugInInstanceGetInterfaceFunctionTable( - CFPlugInInstanceRef instance, - CFStringRef interfaceName, - ffi.Pointer> ftbl, -); - -@ffi.Native() -external int CFPlugInInstanceGetTypeID(); - -@ffi.Native() -external int CFPlugInIsLoadOnDemand(CFPlugInRef plugIn); - -@ffi.Native() -external int CFPlugInRegisterFactoryFunction( - CFUUIDRef factoryUUID, - CFPlugInFactoryFunction func, -); - -@ffi.Native() -external int CFPlugInRegisterFactoryFunctionByName( - CFUUIDRef factoryUUID, - CFPlugInRef plugIn, - CFStringRef functionName, -); - -@ffi.Native() -external int CFPlugInRegisterPlugInType( - CFUUIDRef factoryUUID, - CFUUIDRef typeUUID, -); - -@ffi.Native() -external void CFPlugInRemoveInstanceForFactory(CFUUIDRef factoryID); - -@ffi.Native() -external void CFPlugInSetLoadOnDemand(CFPlugInRef plugIn, int flag); - -@ffi.Native() -external int CFPlugInUnregisterFactory(CFUUIDRef factoryUUID); - -@ffi.Native() -external int CFPlugInUnregisterPlugInType( - CFUUIDRef factoryUUID, - CFUUIDRef typeUUID, -); - -@ffi.Native() -external void CFPreferencesAddSuitePreferencesToApp( - CFStringRef applicationID, - CFStringRef suiteID, -); - -@ffi.Native() -external int CFPreferencesAppSynchronize(CFStringRef applicationID); - -@ffi.Native() -external int CFPreferencesAppValueIsForced( - CFStringRef key, - CFStringRef applicationID, -); - -@ffi.Native() -external CFPropertyListRef CFPreferencesCopyAppValue( - CFStringRef key, - CFStringRef applicationID, -); - -@Deprecated('Unsupported API') -@ffi.Native() -external CFArrayRef CFPreferencesCopyApplicationList( - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native() -external CFArrayRef CFPreferencesCopyKeyList( - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native< - CFDictionaryRef Function(CFArrayRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFDictionaryRef CFPreferencesCopyMultiple( - CFArrayRef keysToFetch, - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native< - CFPropertyListRef Function(CFStringRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFPropertyListRef CFPreferencesCopyValue( - CFStringRef key, - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native)>() -external int CFPreferencesGetAppBooleanValue( - CFStringRef key, - CFStringRef applicationID, - ffi.Pointer keyExistsAndHasValidFormat, -); - -@ffi.Native)>() -external int CFPreferencesGetAppIntegerValue( - CFStringRef key, - CFStringRef applicationID, - ffi.Pointer keyExistsAndHasValidFormat, -); - -@ffi.Native() -external void CFPreferencesRemoveSuitePreferencesFromApp( - CFStringRef applicationID, - CFStringRef suiteID, -); - -@ffi.Native() -external void CFPreferencesSetAppValue( - CFStringRef key, - CFPropertyListRef value, - CFStringRef applicationID, -); - -@ffi.Native< - ffi.Void Function( - CFDictionaryRef, - CFArrayRef, - CFStringRef, - CFStringRef, - CFStringRef, - ) ->() -external void CFPreferencesSetMultiple( - CFDictionaryRef keysToSet, - CFArrayRef keysToRemove, - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native< - ffi.Void Function( - CFStringRef, - CFPropertyListRef, - CFStringRef, - CFStringRef, - CFStringRef, - ) ->() -external void CFPreferencesSetValue( - CFStringRef key, - CFPropertyListRef value, - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native() -external int CFPreferencesSynchronize( - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native< - CFDataRef Function( - CFAllocatorRef, - CFPropertyListRef, - CFIndex, - CFOptionFlags, - ffi.Pointer, - ) ->(symbol: 'CFPropertyListCreateData') -external CFDataRef _CFPropertyListCreateData( - CFAllocatorRef allocator, - CFPropertyListRef propertyList, - int format, - int options, - ffi.Pointer error, -); - -CFDataRef CFPropertyListCreateData( - CFAllocatorRef allocator, - CFPropertyListRef propertyList, - CFPropertyListFormat format, - DartCFOptionFlags options, - ffi.Pointer error, -) { - return _CFPropertyListCreateData( - allocator, - propertyList, - format.value, - options, - error, - ); -} - -@ffi.Native< - CFPropertyListRef Function(CFAllocatorRef, CFPropertyListRef, CFOptionFlags) ->() -external CFPropertyListRef CFPropertyListCreateDeepCopy( - CFAllocatorRef allocator, - CFPropertyListRef propertyList, - int mutabilityOption, -); - -@Deprecated('Use CFPropertyListCreateWithStream instead.') -@ffi.Native< - CFPropertyListRef Function( - CFAllocatorRef, - CFReadStreamRef, - CFIndex, - CFOptionFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFPropertyListRef CFPropertyListCreateFromStream( - CFAllocatorRef allocator, - CFReadStreamRef stream, - int streamLength, - int mutabilityOption, - ffi.Pointer format, - ffi.Pointer errorString, -); - -@Deprecated('Use CFPropertyListCreateWithData instead.') -@ffi.Native< - CFPropertyListRef Function( - CFAllocatorRef, - CFDataRef, - CFOptionFlags, - ffi.Pointer, - ) ->() -external CFPropertyListRef CFPropertyListCreateFromXMLData( - CFAllocatorRef allocator, - CFDataRef xmlData, - int mutabilityOption, - ffi.Pointer errorString, -); - -@ffi.Native< - CFPropertyListRef Function( - CFAllocatorRef, - CFDataRef, - CFOptionFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFPropertyListRef CFPropertyListCreateWithData( - CFAllocatorRef allocator, - CFDataRef data, - int options, - ffi.Pointer format, - ffi.Pointer error, -); - -@ffi.Native< - CFPropertyListRef Function( - CFAllocatorRef, - CFReadStreamRef, - CFIndex, - CFOptionFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFPropertyListRef CFPropertyListCreateWithStream( - CFAllocatorRef allocator, - CFReadStreamRef stream, - int streamLength, - int options, - ffi.Pointer format, - ffi.Pointer error, -); - -@Deprecated('Use CFPropertyListCreateData instead.') -@ffi.Native() -external CFDataRef CFPropertyListCreateXMLData( - CFAllocatorRef allocator, - CFPropertyListRef propertyList, -); - -@ffi.Native( - symbol: 'CFPropertyListIsValid', -) -external int _CFPropertyListIsValid(CFPropertyListRef plist, int format); - -DartBoolean CFPropertyListIsValid( - CFPropertyListRef plist, - CFPropertyListFormat format, -) { - return _CFPropertyListIsValid(plist, format.value); -} - -@ffi.Native< - CFIndex Function( - CFPropertyListRef, - CFWriteStreamRef, - CFIndex, - CFOptionFlags, - ffi.Pointer, - ) ->(symbol: 'CFPropertyListWrite') -external int _CFPropertyListWrite( - CFPropertyListRef propertyList, - CFWriteStreamRef stream, - int format, - int options, - ffi.Pointer error, -); - -DartCFIndex CFPropertyListWrite( - CFPropertyListRef propertyList, - CFWriteStreamRef stream, - CFPropertyListFormat format, - DartCFOptionFlags options, - ffi.Pointer error, -) { - return _CFPropertyListWrite( - propertyList, - stream, - format.value, - options, - error, - ); -} - -@Deprecated('Use CFPropertyListWrite instead.') -@ffi.Native< - CFIndex Function( - CFPropertyListRef, - CFWriteStreamRef, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'CFPropertyListWriteToStream') -external int _CFPropertyListWriteToStream( - CFPropertyListRef propertyList, - CFWriteStreamRef stream, - int format, - ffi.Pointer errorString, -); - -DartCFIndex CFPropertyListWriteToStream( - CFPropertyListRef propertyList, - CFWriteStreamRef stream, - CFPropertyListFormat format, - ffi.Pointer errorString, -) { - return _CFPropertyListWriteToStream( - propertyList, - stream, - format.value, - errorString, - ); -} - -@ffi.Native() -external void CFReadStreamClose(CFReadStreamRef stream); - -@ffi.Native( - symbol: 'CFReadStreamCopyDispatchQueue', -) -external dispatch_queue_t _CFReadStreamCopyDispatchQueue( - CFReadStreamRef stream, -); - -Dartdispatch_queue_t CFReadStreamCopyDispatchQueue(CFReadStreamRef stream) { - return objc.NSObject.fromPointer( - _CFReadStreamCopyDispatchQueue(stream), - retain: true, - release: true, - ); -} - -@ffi.Native() -external CFErrorRef CFReadStreamCopyError(CFReadStreamRef stream); - -@ffi.Native() -external CFTypeRef CFReadStreamCopyProperty( - CFReadStreamRef stream, - CFStreamPropertyKey propertyName, -); - -@Deprecated('Use NSURLSession API for http requests') -@ffi.Native() -external CFReadStreamRef CFReadStreamCreateForHTTPRequest( - CFAllocatorRef alloc, - CFHTTPMessageRef request, -); - -@Deprecated('Use NSURLSession API for http requests') -@ffi.Native< - CFReadStreamRef Function(CFAllocatorRef, CFHTTPMessageRef, CFReadStreamRef) ->() -external CFReadStreamRef CFReadStreamCreateForStreamedHTTPRequest( - CFAllocatorRef alloc, - CFHTTPMessageRef requestHeaders, - CFReadStreamRef requestBody, -); - -@ffi.Native< - CFReadStreamRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFAllocatorRef, - ) ->() -external CFReadStreamRef CFReadStreamCreateWithBytesNoCopy( - CFAllocatorRef alloc, - ffi.Pointer bytes, - int length, - CFAllocatorRef bytesDeallocator, -); - -@Deprecated('Use NSURLSessionAPI for ftp requests') -@ffi.Native() -external CFReadStreamRef CFReadStreamCreateWithFTPURL( - CFAllocatorRef alloc, - CFURLRef ftpURL, -); - -@ffi.Native() -external CFReadStreamRef CFReadStreamCreateWithFile( - CFAllocatorRef alloc, - CFURLRef fileURL, -); - -@ffi.Native< - ffi.Pointer Function(CFReadStreamRef, CFIndex, ffi.Pointer) ->() -external ffi.Pointer CFReadStreamGetBuffer( - CFReadStreamRef stream, - int maxBytesToRead, - ffi.Pointer numBytesRead, -); - -@ffi.Native() -external CFStreamError CFReadStreamGetError(CFReadStreamRef stream); - -@ffi.Native(symbol: 'CFReadStreamGetStatus') -external int _CFReadStreamGetStatus(CFReadStreamRef stream); - -CFStreamStatus CFReadStreamGetStatus(CFReadStreamRef stream) { - return CFStreamStatus.fromValue(_CFReadStreamGetStatus(stream)); -} - -@ffi.Native() -external int CFReadStreamGetTypeID(); - -@ffi.Native() -external int CFReadStreamHasBytesAvailable(CFReadStreamRef stream); - -@ffi.Native() -external int CFReadStreamOpen(CFReadStreamRef stream); - -@ffi.Native, CFIndex)>() -external int CFReadStreamRead( - CFReadStreamRef stream, - ffi.Pointer buffer, - int bufferLength, -); - -@ffi.Native() -external void CFReadStreamScheduleWithRunLoop( - CFReadStreamRef stream, - CFRunLoopRef runLoop, - CFRunLoopMode runLoopMode, -); - -@ffi.Native< - Boolean Function( - CFReadStreamRef, - CFOptionFlags, - CFReadStreamClientCallBack, - ffi.Pointer, - ) ->() -external int CFReadStreamSetClient( - CFReadStreamRef stream, - int streamEvents, - CFReadStreamClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@ffi.Native( - symbol: 'CFReadStreamSetDispatchQueue', -) -external void _CFReadStreamSetDispatchQueue( - CFReadStreamRef stream, - dispatch_queue_t q, -); - -void CFReadStreamSetDispatchQueue( - CFReadStreamRef stream, - Dartdispatch_queue_t q, -) { - final _$$ref = q.ref; - return _CFReadStreamSetDispatchQueue(stream, _$$ref.pointer); -} - -@ffi.Native() -external int CFReadStreamSetProperty( - CFReadStreamRef stream, - CFStreamPropertyKey propertyName, - CFTypeRef propertyValue, -); - -@ffi.Native() -external void CFReadStreamUnscheduleFromRunLoop( - CFReadStreamRef stream, - CFRunLoopRef runLoop, - CFRunLoopMode runLoopMode, -); - -@ffi.Native() -external void CFRelease(CFTypeRef cf); - -@ffi.Native() -external CFTypeRef CFRetain(CFTypeRef cf); - -@ffi.Native() -external void CFRunLoopAddCommonMode(CFRunLoopRef rl, CFRunLoopMode mode); - -@ffi.Native< - ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) ->() -external void CFRunLoopAddObserver( - CFRunLoopRef rl, - CFRunLoopObserverRef observer, - CFRunLoopMode mode, -); - -@ffi.Native< - ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) ->() -external void CFRunLoopAddSource( - CFRunLoopRef rl, - CFRunLoopSourceRef source, - CFRunLoopMode mode, -); - -@ffi.Native() -external void CFRunLoopAddTimer( - CFRunLoopRef rl, - CFRunLoopTimerRef timer, - CFRunLoopMode mode, -); - -@ffi.Native< - Boolean Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) ->() -external int CFRunLoopContainsObserver( - CFRunLoopRef rl, - CFRunLoopObserverRef observer, - CFRunLoopMode mode, -); - -@ffi.Native() -external int CFRunLoopContainsSource( - CFRunLoopRef rl, - CFRunLoopSourceRef source, - CFRunLoopMode mode, -); - -@ffi.Native() -external int CFRunLoopContainsTimer( - CFRunLoopRef rl, - CFRunLoopTimerRef timer, - CFRunLoopMode mode, -); - -@ffi.Native() -external CFArrayRef CFRunLoopCopyAllModes(CFRunLoopRef rl); - -@ffi.Native() -external CFRunLoopMode CFRunLoopCopyCurrentMode(CFRunLoopRef rl); - -@ffi.Native() -external CFRunLoopRef CFRunLoopGetCurrent(); - -@ffi.Native() -external CFRunLoopRef CFRunLoopGetMain(); - -@ffi.Native() -external double CFRunLoopGetNextTimerFireDate( - CFRunLoopRef rl, - CFRunLoopMode mode, -); - -@ffi.Native() -external int CFRunLoopGetTypeID(); - -@ffi.Native() -external int CFRunLoopIsWaiting(CFRunLoopRef rl); - -@ffi.Native< - CFRunLoopObserverRef Function( - CFAllocatorRef, - CFOptionFlags, - Boolean, - CFIndex, - CFRunLoopObserverCallBack, - ffi.Pointer, - ) ->() -external CFRunLoopObserverRef CFRunLoopObserverCreate( - CFAllocatorRef allocator, - int activities, - int repeats, - int order, - CFRunLoopObserverCallBack callout, - ffi.Pointer context, -); - -@ffi.Native< - CFRunLoopObserverRef Function( - CFAllocatorRef, - CFOptionFlags, - Boolean, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'CFRunLoopObserverCreateWithHandler') -external CFRunLoopObserverRef _CFRunLoopObserverCreateWithHandler( - CFAllocatorRef allocator, - int activities, - int repeats, - int order, - ffi.Pointer block, -); - -CFRunLoopObserverRef CFRunLoopObserverCreateWithHandler( - CFAllocatorRef allocator, - DartCFOptionFlags activities, - DartBoolean repeats, - DartCFIndex order, - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - block, -) { - final _$$ref = block.ref; - return _CFRunLoopObserverCreateWithHandler( - allocator, - activities, - repeats, - order, - _$$ref.pointer, - ); -} - -@ffi.Native() -external int CFRunLoopObserverDoesRepeat(CFRunLoopObserverRef observer); - -@ffi.Native() -external int CFRunLoopObserverGetActivities(CFRunLoopObserverRef observer); - -@ffi.Native< - ffi.Void Function(CFRunLoopObserverRef, ffi.Pointer) ->() -external void CFRunLoopObserverGetContext( - CFRunLoopObserverRef observer, - ffi.Pointer context, -); - -@ffi.Native() -external int CFRunLoopObserverGetOrder(CFRunLoopObserverRef observer); - -@ffi.Native() -external int CFRunLoopObserverGetTypeID(); - -@ffi.Native() -external void CFRunLoopObserverInvalidate(CFRunLoopObserverRef observer); - -@ffi.Native() -external int CFRunLoopObserverIsValid(CFRunLoopObserverRef observer); - -@ffi.Native< - ffi.Void Function(CFRunLoopRef, CFTypeRef, ffi.Pointer) ->(symbol: 'CFRunLoopPerformBlock') -external void _CFRunLoopPerformBlock( - CFRunLoopRef rl, - CFTypeRef mode, - ffi.Pointer block, -); - -void CFRunLoopPerformBlock( - CFRunLoopRef rl, - CFTypeRef mode, - objc.ObjCBlock block, -) { - final _$$ref = block.ref; - return _CFRunLoopPerformBlock(rl, mode, _$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) ->() -external void CFRunLoopRemoveObserver( - CFRunLoopRef rl, - CFRunLoopObserverRef observer, - CFRunLoopMode mode, -); - -@ffi.Native< - ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) ->() -external void CFRunLoopRemoveSource( - CFRunLoopRef rl, - CFRunLoopSourceRef source, - CFRunLoopMode mode, -); - -@ffi.Native() -external void CFRunLoopRemoveTimer( - CFRunLoopRef rl, - CFRunLoopTimerRef timer, - CFRunLoopMode mode, -); - -@ffi.Native() -external void CFRunLoopRun(); - -@ffi.Native( - symbol: 'CFRunLoopRunInMode', -) -external int _CFRunLoopRunInMode( - CFRunLoopMode mode, - double seconds, - int returnAfterSourceHandled, -); - -CFRunLoopRunResult CFRunLoopRunInMode( - CFRunLoopMode mode, - DartCFTimeInterval seconds, - DartBoolean returnAfterSourceHandled, -) { - return CFRunLoopRunResult.fromValue( - _CFRunLoopRunInMode(mode, seconds, returnAfterSourceHandled), - ); -} - -@ffi.Native< - CFRunLoopSourceRef Function( - CFAllocatorRef, - CFIndex, - ffi.Pointer, - ) ->() -external CFRunLoopSourceRef CFRunLoopSourceCreate( - CFAllocatorRef allocator, - int order, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Void Function(CFRunLoopSourceRef, ffi.Pointer) ->() -external void CFRunLoopSourceGetContext( - CFRunLoopSourceRef source, - ffi.Pointer context, -); - -@ffi.Native() -external int CFRunLoopSourceGetOrder(CFRunLoopSourceRef source); - -@ffi.Native() -external int CFRunLoopSourceGetTypeID(); - -@ffi.Native() -external void CFRunLoopSourceInvalidate(CFRunLoopSourceRef source); - -@ffi.Native() -external int CFRunLoopSourceIsValid(CFRunLoopSourceRef source); - -@ffi.Native() -external void CFRunLoopSourceSignal(CFRunLoopSourceRef source); - -@ffi.Native() -external void CFRunLoopStop(CFRunLoopRef rl); - -@ffi.Native< - CFRunLoopTimerRef Function( - CFAllocatorRef, - CFAbsoluteTime, - CFTimeInterval, - CFOptionFlags, - CFIndex, - CFRunLoopTimerCallBack, - ffi.Pointer, - ) ->() -external CFRunLoopTimerRef CFRunLoopTimerCreate( - CFAllocatorRef allocator, - double fireDate, - double interval, - int flags, - int order, - CFRunLoopTimerCallBack callout, - ffi.Pointer context, -); - -@ffi.Native< - CFRunLoopTimerRef Function( - CFAllocatorRef, - CFAbsoluteTime, - CFTimeInterval, - CFOptionFlags, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'CFRunLoopTimerCreateWithHandler') -external CFRunLoopTimerRef _CFRunLoopTimerCreateWithHandler( - CFAllocatorRef allocator, - double fireDate, - double interval, - int flags, - int order, - ffi.Pointer block, -); - -CFRunLoopTimerRef CFRunLoopTimerCreateWithHandler( - CFAllocatorRef allocator, - DartCFTimeInterval fireDate, - DartCFTimeInterval interval, - DartCFOptionFlags flags, - DartCFIndex order, - objc.ObjCBlock)> block, -) { - final _$$ref = block.ref; - return _CFRunLoopTimerCreateWithHandler( - allocator, - fireDate, - interval, - flags, - order, - _$$ref.pointer, - ); -} - -@ffi.Native() -external int CFRunLoopTimerDoesRepeat(CFRunLoopTimerRef timer); - -@ffi.Native< - ffi.Void Function(CFRunLoopTimerRef, ffi.Pointer) ->() -external void CFRunLoopTimerGetContext( - CFRunLoopTimerRef timer, - ffi.Pointer context, -); - -@ffi.Native() -external double CFRunLoopTimerGetInterval(CFRunLoopTimerRef timer); - -@ffi.Native() -external double CFRunLoopTimerGetNextFireDate(CFRunLoopTimerRef timer); - -@ffi.Native() -external int CFRunLoopTimerGetOrder(CFRunLoopTimerRef timer); - -@ffi.Native() -external double CFRunLoopTimerGetTolerance(CFRunLoopTimerRef timer); - -@ffi.Native() -external int CFRunLoopTimerGetTypeID(); - -@ffi.Native() -external void CFRunLoopTimerInvalidate(CFRunLoopTimerRef timer); - -@ffi.Native() -external int CFRunLoopTimerIsValid(CFRunLoopTimerRef timer); - -@ffi.Native() -external void CFRunLoopTimerSetNextFireDate( - CFRunLoopTimerRef timer, - double fireDate, -); - -@ffi.Native() -external void CFRunLoopTimerSetTolerance( - CFRunLoopTimerRef timer, - double tolerance, -); - -@ffi.Native() -external void CFRunLoopWakeUp(CFRunLoopRef rl); - -@ffi.Native)>() -external void CFSetAddValue( - CFMutableSetRef theSet, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function(CFSetRef, CFSetApplierFunction, ffi.Pointer) ->() -external void CFSetApplyFunction( - CFSetRef theSet, - CFSetApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native)>() -external int CFSetContainsValue(CFSetRef theSet, ffi.Pointer value); - -@ffi.Native< - CFSetRef Function( - CFAllocatorRef, - ffi.Pointer>, - CFIndex, - ffi.Pointer, - ) ->() -external CFSetRef CFSetCreate( - CFAllocatorRef allocator, - ffi.Pointer> values, - int numValues, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFSetRef CFSetCreateCopy(CFAllocatorRef allocator, CFSetRef theSet); - -@ffi.Native< - CFMutableSetRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) ->() -external CFMutableSetRef CFSetCreateMutable( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFMutableSetRef CFSetCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFSetRef theSet, -); - -@ffi.Native() -external int CFSetGetCount(CFSetRef theSet); - -@ffi.Native)>() -external int CFSetGetCountOfValue(CFSetRef theSet, ffi.Pointer value); - -@ffi.Native() -external int CFSetGetTypeID(); - -@ffi.Native Function(CFSetRef, ffi.Pointer)>() -external ffi.Pointer CFSetGetValue( - CFSetRef theSet, - ffi.Pointer value, -); - -@ffi.Native< - Boolean Function( - CFSetRef, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CFSetGetValueIfPresent( - CFSetRef theSet, - ffi.Pointer candidate, - ffi.Pointer> value, -); - -@ffi.Native>)>() -external void CFSetGetValues( - CFSetRef theSet, - ffi.Pointer> values, -); - -@ffi.Native() -external void CFSetRemoveAllValues(CFMutableSetRef theSet); - -@ffi.Native)>() -external void CFSetRemoveValue( - CFMutableSetRef theSet, - ffi.Pointer value, -); - -@ffi.Native)>() -external void CFSetReplaceValue( - CFMutableSetRef theSet, - ffi.Pointer value, -); - -@ffi.Native)>() -external void CFSetSetValue( - CFMutableSetRef theSet, - ffi.Pointer value, -); - -@ffi.Native() -external void CFShow(CFTypeRef obj); - -@ffi.Native() -external void CFShowStr(CFStringRef str); - -@ffi.Native( - symbol: 'CFSocketConnectToAddress', -) -external int _CFSocketConnectToAddress( - CFSocketRef s, - CFDataRef address, - double timeout, -); - -CFSocketError CFSocketConnectToAddress( - CFSocketRef s, - CFDataRef address, - DartCFTimeInterval timeout, -) { - return CFSocketError.fromValue( - _CFSocketConnectToAddress(s, address, timeout), - ); -} - -@ffi.Native() -external CFDataRef CFSocketCopyAddress(CFSocketRef s); - -@ffi.Native() -external CFDataRef CFSocketCopyPeerAddress(CFSocketRef s); - -@ffi.Native< - CFIndex Function( - ffi.Pointer, - CFTimeInterval, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CFSocketCopyRegisteredSocketSignature') -external int _CFSocketCopyRegisteredSocketSignature( - ffi.Pointer nameServerSignature, - double timeout, - CFStringRef name, - ffi.Pointer signature, - ffi.Pointer nameServerAddress, -); - -CFSocketError CFSocketCopyRegisteredSocketSignature( - ffi.Pointer nameServerSignature, - DartCFTimeInterval timeout, - CFStringRef name, - ffi.Pointer signature, - ffi.Pointer nameServerAddress, -) { - return CFSocketError.fromValue( - _CFSocketCopyRegisteredSocketSignature( - nameServerSignature, - timeout, - name, - signature, - nameServerAddress, - ), - ); -} - -@ffi.Native< - CFIndex Function( - ffi.Pointer, - CFTimeInterval, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CFSocketCopyRegisteredValue') -external int _CFSocketCopyRegisteredValue( - ffi.Pointer nameServerSignature, - double timeout, - CFStringRef name, - ffi.Pointer value, - ffi.Pointer nameServerAddress, -); - -CFSocketError CFSocketCopyRegisteredValue( - ffi.Pointer nameServerSignature, - DartCFTimeInterval timeout, - CFStringRef name, - ffi.Pointer value, - ffi.Pointer nameServerAddress, -) { - return CFSocketError.fromValue( - _CFSocketCopyRegisteredValue( - nameServerSignature, - timeout, - name, - value, - nameServerAddress, - ), - ); -} - -@ffi.Native< - CFSocketRef Function( - CFAllocatorRef, - SInt32, - SInt32, - SInt32, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer, - ) ->() -external CFSocketRef CFSocketCreate( - CFAllocatorRef allocator, - int protocolFamily, - int socketType, - int protocol, - int callBackTypes, - CFSocketCallBack callout, - ffi.Pointer context, -); - -@ffi.Native< - CFSocketRef Function( - CFAllocatorRef, - ffi.Pointer, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer, - CFTimeInterval, - ) ->() -external CFSocketRef CFSocketCreateConnectedToSocketSignature( - CFAllocatorRef allocator, - ffi.Pointer signature, - int callBackTypes, - CFSocketCallBack callout, - ffi.Pointer context, - double timeout, -); - -@ffi.Native() -external CFRunLoopSourceRef CFSocketCreateRunLoopSource( - CFAllocatorRef allocator, - CFSocketRef s, - int order, -); - -@ffi.Native< - CFSocketRef Function( - CFAllocatorRef, - CFSocketNativeHandle, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer, - ) ->() -external CFSocketRef CFSocketCreateWithNative( - CFAllocatorRef allocator, - int sock, - int callBackTypes, - CFSocketCallBack callout, - ffi.Pointer context, -); - -@ffi.Native< - CFSocketRef Function( - CFAllocatorRef, - ffi.Pointer, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer, - ) ->() -external CFSocketRef CFSocketCreateWithSocketSignature( - CFAllocatorRef allocator, - ffi.Pointer signature, - int callBackTypes, - CFSocketCallBack callout, - ffi.Pointer context, -); - -@ffi.Native() -external void CFSocketDisableCallBacks(CFSocketRef s, int callBackTypes); - -@ffi.Native() -external void CFSocketEnableCallBacks(CFSocketRef s, int callBackTypes); - -@ffi.Native)>() -external void CFSocketGetContext( - CFSocketRef s, - ffi.Pointer context, -); - -@ffi.Native() -external int CFSocketGetDefaultNameRegistryPortNumber(); - -@ffi.Native() -external int CFSocketGetNative(CFSocketRef s); - -@ffi.Native() -external int CFSocketGetSocketFlags(CFSocketRef s); - -@ffi.Native() -external int CFSocketGetTypeID(); - -@ffi.Native() -external void CFSocketInvalidate(CFSocketRef s); - -@ffi.Native() -external int CFSocketIsValid(CFSocketRef s); - -@ffi.Native< - CFIndex Function( - ffi.Pointer, - CFTimeInterval, - CFStringRef, - ffi.Pointer, - ) ->(symbol: 'CFSocketRegisterSocketSignature') -external int _CFSocketRegisterSocketSignature( - ffi.Pointer nameServerSignature, - double timeout, - CFStringRef name, - ffi.Pointer signature, -); - -CFSocketError CFSocketRegisterSocketSignature( - ffi.Pointer nameServerSignature, - DartCFTimeInterval timeout, - CFStringRef name, - ffi.Pointer signature, -) { - return CFSocketError.fromValue( - _CFSocketRegisterSocketSignature( - nameServerSignature, - timeout, - name, - signature, - ), - ); -} - -@ffi.Native< - CFIndex Function( - ffi.Pointer, - CFTimeInterval, - CFStringRef, - CFPropertyListRef, - ) ->(symbol: 'CFSocketRegisterValue') -external int _CFSocketRegisterValue( - ffi.Pointer nameServerSignature, - double timeout, - CFStringRef name, - CFPropertyListRef value, -); - -CFSocketError CFSocketRegisterValue( - ffi.Pointer nameServerSignature, - DartCFTimeInterval timeout, - CFStringRef name, - CFPropertyListRef value, -) { - return CFSocketError.fromValue( - _CFSocketRegisterValue(nameServerSignature, timeout, name, value), - ); -} - -@ffi.Native< - CFIndex Function(CFSocketRef, CFDataRef, CFDataRef, CFTimeInterval) ->(symbol: 'CFSocketSendData') -external int _CFSocketSendData( - CFSocketRef s, - CFDataRef address, - CFDataRef data, - double timeout, -); - -CFSocketError CFSocketSendData( - CFSocketRef s, - CFDataRef address, - CFDataRef data, - DartCFTimeInterval timeout, -) { - return CFSocketError.fromValue(_CFSocketSendData(s, address, data, timeout)); -} - -@ffi.Native( - symbol: 'CFSocketSetAddress', -) -external int _CFSocketSetAddress(CFSocketRef s, CFDataRef address); - -CFSocketError CFSocketSetAddress(CFSocketRef s, CFDataRef address) { - return CFSocketError.fromValue(_CFSocketSetAddress(s, address)); -} - -@ffi.Native() -external void CFSocketSetDefaultNameRegistryPortNumber(int port); - -@ffi.Native() -external void CFSocketSetSocketFlags(CFSocketRef s, int flags); - -@ffi.Native< - CFIndex Function(ffi.Pointer, CFTimeInterval, CFStringRef) ->(symbol: 'CFSocketUnregister') -external int _CFSocketUnregister( - ffi.Pointer nameServerSignature, - double timeout, - CFStringRef name, -); - -CFSocketError CFSocketUnregister( - ffi.Pointer nameServerSignature, - DartCFTimeInterval timeout, - CFStringRef name, -) { - return CFSocketError.fromValue( - _CFSocketUnregister(nameServerSignature, timeout, name), - ); -} - -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->() -external void CFStreamCreateBoundPair( - CFAllocatorRef alloc, - ffi.Pointer readStream, - ffi.Pointer writeStream, - int transferBufferSize, -); - -@Deprecated('Use nw_connection_t in Network framework instead') -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStreamCreatePairWithPeerSocketSignature( - CFAllocatorRef alloc, - ffi.Pointer signature, - ffi.Pointer readStream, - ffi.Pointer writeStream, -); - -@Deprecated('Use nw_connection_t in Network framework instead') -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - CFSocketNativeHandle, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStreamCreatePairWithSocket( - CFAllocatorRef alloc, - int sock, - ffi.Pointer readStream, - ffi.Pointer writeStream, -); - -@Deprecated('Use Network framework instead') -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - CFHostRef, - SInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStreamCreatePairWithSocketToCFHost( - CFAllocatorRef alloc, - CFHostRef host, - int port, - ffi.Pointer readStream, - ffi.Pointer writeStream, -); - -@Deprecated('Use nw_connection_t in Network framework instead') -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - CFStringRef, - UInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStreamCreatePairWithSocketToHost( - CFAllocatorRef alloc, - CFStringRef host, - int port, - ffi.Pointer readStream, - ffi.Pointer writeStream, -); - -@Deprecated('Use Network framework instead') -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - CFNetServiceRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStreamCreatePairWithSocketToNetService( - CFAllocatorRef alloc, - CFNetServiceRef service, - ffi.Pointer readStream, - ffi.Pointer writeStream, -); - -@ffi.Native() -external void CFStringAppend( - CFMutableStringRef theString, - CFStringRef appendedString, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFStringEncoding) ->() -external void CFStringAppendCString( - CFMutableStringRef theString, - ffi.Pointer cStr, - int encoding, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFIndex) ->() -external void CFStringAppendCharacters( - CFMutableStringRef theString, - ffi.Pointer chars, - int numChars, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef) ->() -external void CFStringAppendFormat( - CFMutableStringRef theString, - CFDictionaryRef formatOptions, - CFStringRef format, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef, va_list) ->() -external void CFStringAppendFormatAndArguments( - CFMutableStringRef theString, - CFDictionaryRef formatOptions, - CFStringRef format, - va_list arguments, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, ConstStr255Param, CFStringEncoding) ->() -external void CFStringAppendPascalString( - CFMutableStringRef theString, - ConstStr255Param pStr, - int encoding, -); - -@ffi.Native() -external void CFStringCapitalize( - CFMutableStringRef theString, - CFLocaleRef locale, -); - -@ffi.Native( - symbol: 'CFStringCompare', -) -external int _CFStringCompare( - CFStringRef theString1, - CFStringRef theString2, - int compareOptions, -); - -CFComparisonResult CFStringCompare( - CFStringRef theString1, - CFStringRef theString2, - DartCFOptionFlags compareOptions, -) { - return CFComparisonResult.fromValue( - _CFStringCompare(theString1, theString2, compareOptions), - ); -} - -@ffi.Native( - symbol: 'CFStringCompareWithOptions', -) -external int _CFStringCompareWithOptions( - CFStringRef theString1, - CFStringRef theString2, - CFRange rangeToCompare, - int compareOptions, -); - -CFComparisonResult CFStringCompareWithOptions( - CFStringRef theString1, - CFStringRef theString2, - CFRange rangeToCompare, - DartCFOptionFlags compareOptions, -) { - return CFComparisonResult.fromValue( - _CFStringCompareWithOptions( - theString1, - theString2, - rangeToCompare, - compareOptions, - ), - ); -} - -@ffi.Native< - CFIndex Function( - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - CFLocaleRef, - ) ->(symbol: 'CFStringCompareWithOptionsAndLocale') -external int _CFStringCompareWithOptionsAndLocale( - CFStringRef theString1, - CFStringRef theString2, - CFRange rangeToCompare, - int compareOptions, - CFLocaleRef locale, -); - -CFComparisonResult CFStringCompareWithOptionsAndLocale( - CFStringRef theString1, - CFStringRef theString2, - CFRange rangeToCompare, - DartCFOptionFlags compareOptions, - CFLocaleRef locale, -) { - return CFComparisonResult.fromValue( - _CFStringCompareWithOptionsAndLocale( - theString1, - theString2, - rangeToCompare, - compareOptions, - locale, - ), - ); -} - -@ffi.Native() -external CFStringRef CFStringConvertEncodingToIANACharSetName(int encoding); - -@ffi.Native() -external int CFStringConvertEncodingToNSStringEncoding(int encoding); - -@ffi.Native() -external int CFStringConvertEncodingToWindowsCodepage(int encoding); - -@ffi.Native() -external int CFStringConvertIANACharSetNameToEncoding(CFStringRef theString); - -@ffi.Native() -external int CFStringConvertNSStringEncodingToEncoding(int encoding); - -@ffi.Native() -external int CFStringConvertWindowsCodepageToEncoding(int codepage); - -@ffi.Native() -external CFArrayRef CFStringCreateArrayBySeparatingStrings( - CFAllocatorRef alloc, - CFStringRef theString, - CFStringRef separatorString, -); - -@ffi.Native< - CFArrayRef Function( - CFAllocatorRef, - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - ) ->() -external CFArrayRef CFStringCreateArrayWithFindResults( - CFAllocatorRef alloc, - CFStringRef theString, - CFStringRef stringToFind, - CFRange rangeToSearch, - int compareOptions, -); - -@ffi.Native() -external CFStringRef CFStringCreateByCombiningStrings( - CFAllocatorRef alloc, - CFArrayRef theArray, - CFStringRef separatorString, -); - -@ffi.Native() -external CFStringRef CFStringCreateCopy( - CFAllocatorRef alloc, - CFStringRef theString, -); - -@ffi.Native< - CFDataRef Function(CFAllocatorRef, CFStringRef, CFStringEncoding, UInt8) ->() -external CFDataRef CFStringCreateExternalRepresentation( - CFAllocatorRef alloc, - CFStringRef theString, - int encoding, - int lossByte, -); - -@ffi.Native() -external CFStringRef CFStringCreateFromExternalRepresentation( - CFAllocatorRef alloc, - CFDataRef data, - int encoding, -); - -@ffi.Native() -external CFMutableStringRef CFStringCreateMutable( - CFAllocatorRef alloc, - int maxLength, -); - -@ffi.Native() -external CFMutableStringRef CFStringCreateMutableCopy( - CFAllocatorRef alloc, - int maxLength, - CFStringRef theString, -); - -@ffi.Native< - CFMutableStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFIndex, - CFAllocatorRef, - ) ->() -external CFMutableStringRef CFStringCreateMutableWithExternalCharactersNoCopy( - CFAllocatorRef alloc, - ffi.Pointer chars, - int numChars, - int capacity, - CFAllocatorRef externalCharactersAllocator, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - CFDictionaryRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external CFStringRef CFStringCreateStringWithValidatedFormat( - CFAllocatorRef alloc, - CFDictionaryRef formatOptions, - CFStringRef validFormatSpecifiers, - CFStringRef format, - ffi.Pointer errorPtr, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - CFDictionaryRef, - CFStringRef, - CFStringRef, - va_list, - ffi.Pointer, - ) ->() -external CFStringRef CFStringCreateStringWithValidatedFormatAndArguments( - CFAllocatorRef alloc, - CFDictionaryRef formatOptions, - CFStringRef validFormatSpecifiers, - CFStringRef format, - va_list arguments, - ffi.Pointer errorPtr, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - Boolean, - ) ->() -external CFStringRef CFStringCreateWithBytes( - CFAllocatorRef alloc, - ffi.Pointer bytes, - int numBytes, - int encoding, - int isExternalRepresentation, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - Boolean, - CFAllocatorRef, - ) ->() -external CFStringRef CFStringCreateWithBytesNoCopy( - CFAllocatorRef alloc, - ffi.Pointer bytes, - int numBytes, - int encoding, - int isExternalRepresentation, - CFAllocatorRef contentsDeallocator, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFStringEncoding) ->() -external CFStringRef CFStringCreateWithCString( - CFAllocatorRef alloc, - ffi.Pointer cStr, - int encoding, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFStringEncoding, - CFAllocatorRef, - ) ->() -external CFStringRef CFStringCreateWithCStringNoCopy( - CFAllocatorRef alloc, - ffi.Pointer cStr, - int encoding, - CFAllocatorRef contentsDeallocator, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) ->() -external CFStringRef CFStringCreateWithCharacters( - CFAllocatorRef alloc, - ffi.Pointer chars, - int numChars, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFAllocatorRef, - ) ->() -external CFStringRef CFStringCreateWithCharactersNoCopy( - CFAllocatorRef alloc, - ffi.Pointer chars, - int numChars, - CFAllocatorRef contentsDeallocator, -); - -@ffi.Native)>() -external CFStringRef CFStringCreateWithFileSystemRepresentation( - CFAllocatorRef alloc, - ffi.Pointer buffer, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef) ->() -external CFStringRef CFStringCreateWithFormat( - CFAllocatorRef alloc, - CFDictionaryRef formatOptions, - CFStringRef format, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef, va_list) ->() -external CFStringRef CFStringCreateWithFormatAndArguments( - CFAllocatorRef alloc, - CFDictionaryRef formatOptions, - CFStringRef format, - va_list arguments, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, ConstStr255Param, CFStringEncoding) ->() -external CFStringRef CFStringCreateWithPascalString( - CFAllocatorRef alloc, - ConstStr255Param pStr, - int encoding, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - ConstStr255Param, - CFStringEncoding, - CFAllocatorRef, - ) ->() -external CFStringRef CFStringCreateWithPascalStringNoCopy( - CFAllocatorRef alloc, - ConstStr255Param pStr, - int encoding, - CFAllocatorRef contentsDeallocator, -); - -@ffi.Native() -external CFStringRef CFStringCreateWithSubstring( - CFAllocatorRef alloc, - CFStringRef str, - CFRange range, -); - -@ffi.Native() -external void CFStringDelete(CFMutableStringRef theString, CFRange range); - -@ffi.Native() -external CFRange CFStringFind( - CFStringRef theString, - CFStringRef stringToFind, - int compareOptions, -); - -@ffi.Native< - CFIndex Function( - CFMutableStringRef, - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - ) ->() -external int CFStringFindAndReplace( - CFMutableStringRef theString, - CFStringRef stringToFind, - CFStringRef replacementString, - CFRange rangeToSearch, - int compareOptions, -); - -@ffi.Native< - Boolean Function( - CFStringRef, - CFCharacterSetRef, - CFRange, - CFOptionFlags, - ffi.Pointer, - ) ->() -external int CFStringFindCharacterFromSet( - CFStringRef theString, - CFCharacterSetRef theSet, - CFRange rangeToSearch, - int searchOptions, - ffi.Pointer result, -); - -@ffi.Native< - Boolean Function( - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - ffi.Pointer, - ) ->() -external int CFStringFindWithOptions( - CFStringRef theString, - CFStringRef stringToFind, - CFRange rangeToSearch, - int searchOptions, - ffi.Pointer result, -); - -@ffi.Native< - Boolean Function( - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - CFLocaleRef, - ffi.Pointer, - ) ->() -external int CFStringFindWithOptionsAndLocale( - CFStringRef theString, - CFStringRef stringToFind, - CFRange rangeToSearch, - int searchOptions, - CFLocaleRef locale, - ffi.Pointer result, -); - -@ffi.Native() -external void CFStringFold( - CFMutableStringRef theString, - int theFlags, - CFLocaleRef theLocale, -); - -@ffi.Native< - CFIndex Function( - CFStringRef, - CFRange, - CFStringEncoding, - UInt8, - Boolean, - ffi.Pointer, - CFIndex, - ffi.Pointer, - ) ->() -external int CFStringGetBytes( - CFStringRef theString, - CFRange range, - int encoding, - int lossByte, - int isExternalRepresentation, - ffi.Pointer buffer, - int maxBufLen, - ffi.Pointer usedBufLen, -); - -@ffi.Native< - Boolean Function( - CFStringRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - ) ->() -external int CFStringGetCString( - CFStringRef theString, - ffi.Pointer buffer, - int bufferSize, - int encoding, -); - -@ffi.Native Function(CFStringRef, CFStringEncoding)>() -external ffi.Pointer CFStringGetCStringPtr( - CFStringRef theString, - int encoding, -); - -@ffi.Native() -external int CFStringGetCharacterAtIndex(CFStringRef theString, int idx); - -@ffi.Native)>() -external void CFStringGetCharacters( - CFStringRef theString, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native Function(CFStringRef)>() -external ffi.Pointer CFStringGetCharactersPtr(CFStringRef theString); - -@ffi.Native() -external double CFStringGetDoubleValue(CFStringRef str); - -@ffi.Native() -external int CFStringGetFastestEncoding(CFStringRef theString); - -@ffi.Native, CFIndex)>() -external int CFStringGetFileSystemRepresentation( - CFStringRef string, - ffi.Pointer buffer, - int maxBufLen, -); - -@ffi.Native< - CFIndex Function( - CFStringRef, - CFIndex, - CFRange, - CFOptionFlags, - CFLocaleRef, - ffi.Pointer, - ) ->() -external int CFStringGetHyphenationLocationBeforeIndex( - CFStringRef string, - int location, - CFRange limitRange, - int options, - CFLocaleRef locale, - ffi.Pointer character, -); - -@ffi.Native() -external int CFStringGetIntValue(CFStringRef str); - -@ffi.Native() -external int CFStringGetLength(CFStringRef theString); - -@ffi.Native< - ffi.Void Function( - CFStringRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStringGetLineBounds( - CFStringRef theString, - CFRange range, - ffi.Pointer lineBeginIndex, - ffi.Pointer lineEndIndex, - ffi.Pointer contentsEndIndex, -); - -@ffi.Native Function()>() -external ffi.Pointer CFStringGetListOfAvailableEncodings(); - -@ffi.Native() -external int CFStringGetMaximumSizeForEncoding(int length, int encoding); - -@ffi.Native() -external int CFStringGetMaximumSizeOfFileSystemRepresentation( - CFStringRef string, -); - -@ffi.Native() -external int CFStringGetMostCompatibleMacStringEncoding(int encoding); - -@ffi.Native() -external CFStringRef CFStringGetNameOfEncoding(int encoding); - -@ffi.Native< - ffi.Void Function( - CFStringRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStringGetParagraphBounds( - CFStringRef string, - CFRange range, - ffi.Pointer parBeginIndex, - ffi.Pointer parEndIndex, - ffi.Pointer contentsEndIndex, -); - -@ffi.Native< - Boolean Function(CFStringRef, StringPtr, CFIndex, CFStringEncoding) ->() -external int CFStringGetPascalString( - CFStringRef theString, - StringPtr buffer, - int bufferSize, - int encoding, -); - -@ffi.Native() -external ConstStringPtr CFStringGetPascalStringPtr( - CFStringRef theString, - int encoding, -); - -@ffi.Native() -external CFRange CFStringGetRangeOfComposedCharactersAtIndex( - CFStringRef theString, - int theIndex, -); - -@ffi.Native() -external int CFStringGetSmallestEncoding(CFStringRef theString); - -@ffi.Native() -external int CFStringGetSystemEncoding(); - -@ffi.Native() -external int CFStringGetTypeID(); - -@ffi.Native() -external int CFStringHasPrefix(CFStringRef theString, CFStringRef prefix); - -@ffi.Native() -external int CFStringHasSuffix(CFStringRef theString, CFStringRef suffix); - -@ffi.Native() -external void CFStringInsert( - CFMutableStringRef str, - int idx, - CFStringRef insertedStr, -); - -@ffi.Native() -external int CFStringIsEncodingAvailable(int encoding); - -@ffi.Native() -external int CFStringIsHyphenationAvailableForLocale(CFLocaleRef locale); - -@ffi.Native() -external void CFStringLowercase( - CFMutableStringRef theString, - CFLocaleRef locale, -); - -@ffi.Native( - symbol: 'CFStringNormalize', -) -external void _CFStringNormalize(CFMutableStringRef theString, int theForm); - -void CFStringNormalize( - CFMutableStringRef theString, - CFStringNormalizationForm theForm, -) { - return _CFStringNormalize(theString, theForm.value); -} - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, CFStringRef, CFIndex, CFIndex) ->() -external void CFStringPad( - CFMutableStringRef theString, - CFStringRef padString, - int length, - int indexIntoPad, -); - -@ffi.Native() -external void CFStringReplace( - CFMutableStringRef theString, - CFRange range, - CFStringRef replacement, -); - -@ffi.Native() -external void CFStringReplaceAll( - CFMutableStringRef theString, - CFStringRef replacement, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFIndex, CFIndex) ->() -external void CFStringSetExternalCharactersNoCopy( - CFMutableStringRef theString, - ffi.Pointer chars, - int length, - int capacity, -); - -@ffi.Native() -external int CFStringTokenizerAdvanceToNextToken( - CFStringTokenizerRef tokenizer, -); - -@ffi.Native() -external CFStringRef CFStringTokenizerCopyBestStringLanguage( - CFStringRef string, - CFRange range, -); - -@ffi.Native() -external CFTypeRef CFStringTokenizerCopyCurrentTokenAttribute( - CFStringTokenizerRef tokenizer, - int attribute, -); - -@ffi.Native< - CFStringTokenizerRef Function( - CFAllocatorRef, - CFStringRef, - CFRange, - CFOptionFlags, - CFLocaleRef, - ) ->() -external CFStringTokenizerRef CFStringTokenizerCreate( - CFAllocatorRef alloc, - CFStringRef string, - CFRange range, - int options, - CFLocaleRef locale, -); - -@ffi.Native< - CFIndex Function( - CFStringTokenizerRef, - ffi.Pointer, - CFIndex, - CFMutableArrayRef, - ) ->() -external int CFStringTokenizerGetCurrentSubTokens( - CFStringTokenizerRef tokenizer, - ffi.Pointer ranges, - int maxRangeLength, - CFMutableArrayRef derivedSubTokens, -); - -@ffi.Native() -external CFRange CFStringTokenizerGetCurrentTokenRange( - CFStringTokenizerRef tokenizer, -); - -@ffi.Native() -external int CFStringTokenizerGetTypeID(); - -@ffi.Native() -external int CFStringTokenizerGoToTokenAtIndex( - CFStringTokenizerRef tokenizer, - int index$1, -); - -@ffi.Native() -external void CFStringTokenizerSetString( - CFStringTokenizerRef tokenizer, - CFStringRef string, - CFRange range, -); - -@ffi.Native< - Boolean Function( - CFMutableStringRef, - ffi.Pointer, - CFStringRef, - Boolean, - ) ->() -external int CFStringTransform( - CFMutableStringRef string, - ffi.Pointer range, - CFStringRef transform, - int reverse, -); - -@ffi.Native() -external void CFStringTrim( - CFMutableStringRef theString, - CFStringRef trimString, -); - -@ffi.Native() -external void CFStringTrimWhitespace(CFMutableStringRef theString); - -@ffi.Native() -external void CFStringUppercase( - CFMutableStringRef theString, - CFLocaleRef locale, -); - -@ffi.Native() -external CFStringRef CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz, double at); - -@ffi.Native() -external CFDictionaryRef CFTimeZoneCopyAbbreviationDictionary(); - -@ffi.Native() -external CFTimeZoneRef CFTimeZoneCopyDefault(); - -@ffi.Native() -external CFArrayRef CFTimeZoneCopyKnownNames(); - -@ffi.Native( - symbol: 'CFTimeZoneCopyLocalizedName', -) -external CFStringRef _CFTimeZoneCopyLocalizedName( - CFTimeZoneRef tz, - int style, - CFLocaleRef locale, -); - -CFStringRef CFTimeZoneCopyLocalizedName( - CFTimeZoneRef tz, - CFTimeZoneNameStyle style, - CFLocaleRef locale, -) { - return _CFTimeZoneCopyLocalizedName(tz, style.value, locale); -} - -@ffi.Native() -external CFTimeZoneRef CFTimeZoneCopySystem(); - -@ffi.Native() -external CFTimeZoneRef CFTimeZoneCreate( - CFAllocatorRef allocator, - CFStringRef name, - CFDataRef data, -); - -@ffi.Native() -external CFTimeZoneRef CFTimeZoneCreateWithName( - CFAllocatorRef allocator, - CFStringRef name, - int tryAbbrev, -); - -@ffi.Native() -external CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT( - CFAllocatorRef allocator, - double ti, -); - -@ffi.Native() -external CFDataRef CFTimeZoneGetData(CFTimeZoneRef tz); - -@ffi.Native() -external double CFTimeZoneGetDaylightSavingTimeOffset( - CFTimeZoneRef tz, - double at, -); - -@ffi.Native() -external CFStringRef CFTimeZoneGetName(CFTimeZoneRef tz); - -@ffi.Native() -external double CFTimeZoneGetNextDaylightSavingTimeTransition( - CFTimeZoneRef tz, - double at, -); - -@ffi.Native() -external double CFTimeZoneGetSecondsFromGMT(CFTimeZoneRef tz, double at); - -@ffi.Native() -external int CFTimeZoneGetTypeID(); - -@ffi.Native() -external int CFTimeZoneIsDaylightSavingTime(CFTimeZoneRef tz, double at); - -@ffi.Native() -external void CFTimeZoneResetSystem(); - -@ffi.Native() -external void CFTimeZoneSetAbbreviationDictionary(CFDictionaryRef dict); - -@ffi.Native() -external void CFTimeZoneSetDefault(CFTimeZoneRef tz); - -@ffi.Native() -external void CFTreeAppendChild(CFTreeRef tree, CFTreeRef newChild); - -@ffi.Native< - ffi.Void Function(CFTreeRef, CFTreeApplierFunction, ffi.Pointer) ->() -external void CFTreeApplyFunctionToChildren( - CFTreeRef tree, - CFTreeApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native)>() -external CFTreeRef CFTreeCreate( - CFAllocatorRef allocator, - ffi.Pointer context, -); - -@ffi.Native() -external CFTreeRef CFTreeFindRoot(CFTreeRef tree); - -@ffi.Native() -external CFTreeRef CFTreeGetChildAtIndex(CFTreeRef tree, int idx); - -@ffi.Native() -external int CFTreeGetChildCount(CFTreeRef tree); - -@ffi.Native)>() -external void CFTreeGetChildren( - CFTreeRef tree, - ffi.Pointer children, -); - -@ffi.Native)>() -external void CFTreeGetContext( - CFTreeRef tree, - ffi.Pointer context, -); - -@ffi.Native() -external CFTreeRef CFTreeGetFirstChild(CFTreeRef tree); - -@ffi.Native() -external CFTreeRef CFTreeGetNextSibling(CFTreeRef tree); - -@ffi.Native() -external CFTreeRef CFTreeGetParent(CFTreeRef tree); - -@ffi.Native() -external int CFTreeGetTypeID(); - -@ffi.Native() -external void CFTreeInsertSibling(CFTreeRef tree, CFTreeRef newSibling); - -@ffi.Native() -external void CFTreePrependChild(CFTreeRef tree, CFTreeRef newChild); - -@ffi.Native() -external void CFTreeRemove(CFTreeRef tree); - -@ffi.Native() -external void CFTreeRemoveAllChildren(CFTreeRef tree); - -@ffi.Native)>() -external void CFTreeSetContext( - CFTreeRef tree, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Void Function(CFTreeRef, CFComparatorFunction, ffi.Pointer) ->() -external void CFTreeSortChildren( - CFTreeRef tree, - CFComparatorFunction comparator, - ffi.Pointer context, -); - -@ffi.Native() -external int CFURLCanBeDecomposed(CFURLRef anURL); - -@ffi.Native() -external void CFURLClearResourcePropertyCache(CFURLRef url); - -@ffi.Native() -external void CFURLClearResourcePropertyCacheForKey( - CFURLRef url, - CFStringRef key, -); - -@ffi.Native() -external CFURLRef CFURLCopyAbsoluteURL(CFURLRef relativeURL); - -@ffi.Native( - symbol: 'CFURLCopyFileSystemPath', -) -external CFStringRef _CFURLCopyFileSystemPath(CFURLRef anURL, int pathStyle); - -CFStringRef CFURLCopyFileSystemPath(CFURLRef anURL, CFURLPathStyle pathStyle) { - return _CFURLCopyFileSystemPath(anURL, pathStyle.value); -} - -@ffi.Native() -external CFStringRef CFURLCopyFragment( - CFURLRef anURL, - CFStringRef charactersToLeaveEscaped, -); - -@ffi.Native() -external CFStringRef CFURLCopyHostName(CFURLRef anURL); - -@ffi.Native() -external CFStringRef CFURLCopyLastPathComponent(CFURLRef url); - -@ffi.Native() -external CFStringRef CFURLCopyNetLocation(CFURLRef anURL); - -@Deprecated( - 'The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them.', -) -@ffi.Native() -external CFStringRef CFURLCopyParameterString( - CFURLRef anURL, - CFStringRef charactersToLeaveEscaped, -); - -@ffi.Native() -external CFStringRef CFURLCopyPassword(CFURLRef anURL); - -@ffi.Native() -external CFStringRef CFURLCopyPath(CFURLRef anURL); - -@ffi.Native() -external CFStringRef CFURLCopyPathExtension(CFURLRef url); - -@ffi.Native() -external CFStringRef CFURLCopyQueryString( - CFURLRef anURL, - CFStringRef charactersToLeaveEscaped, -); - -@ffi.Native< - CFDictionaryRef Function(CFURLRef, CFArrayRef, ffi.Pointer) ->() -external CFDictionaryRef CFURLCopyResourcePropertiesForKeys( - CFURLRef url, - CFArrayRef keys, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function( - CFURLRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CFURLCopyResourcePropertyForKey( - CFURLRef url, - CFStringRef key, - ffi.Pointer propertyValueTypeRefPtr, - ffi.Pointer error, -); - -@ffi.Native() -external CFStringRef CFURLCopyResourceSpecifier(CFURLRef anURL); - -@ffi.Native() -external CFStringRef CFURLCopyScheme(CFURLRef anURL); - -@ffi.Native)>() -external CFStringRef CFURLCopyStrictPath( - CFURLRef anURL, - ffi.Pointer isAbsolute, -); - -@ffi.Native() -external CFStringRef CFURLCopyUserName(CFURLRef anURL); - -@ffi.Native< - CFURLRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - CFURLRef, - Boolean, - ) ->() -external CFURLRef CFURLCreateAbsoluteURLWithBytes( - CFAllocatorRef alloc, - ffi.Pointer relativeURLBytes, - int length, - int encoding, - CFURLRef baseURL, - int useCompatibilityMode, -); - -@ffi.Native< - CFDataRef Function( - CFAllocatorRef, - CFURLRef, - CFOptionFlags, - CFArrayRef, - CFURLRef, - ffi.Pointer, - ) ->() -external CFDataRef CFURLCreateBookmarkData( - CFAllocatorRef allocator, - CFURLRef url, - int options, - CFArrayRef resourcePropertiesToInclude, - CFURLRef relativeToURL, - ffi.Pointer error, -); - -@Deprecated( - 'The Carbon Alias Manager is deprecated. This function should only be used to convert Carbon AliasRecords to bookmark data.', -) -@ffi.Native() -external CFDataRef CFURLCreateBookmarkDataFromAliasRecord( - CFAllocatorRef allocatorRef, - CFDataRef aliasRecordDataRef, -); - -@ffi.Native< - CFDataRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) ->() -external CFDataRef CFURLCreateBookmarkDataFromFile( - CFAllocatorRef allocator, - CFURLRef fileURL, - ffi.Pointer errorRef, -); - -@ffi.Native< - CFURLRef Function( - CFAllocatorRef, - CFDataRef, - CFOptionFlags, - CFURLRef, - CFArrayRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFURLRef CFURLCreateByResolvingBookmarkData( - CFAllocatorRef allocator, - CFDataRef bookmark, - int options, - CFURLRef relativeToURL, - CFArrayRef resourcePropertiesToInclude, - ffi.Pointer isStale, - ffi.Pointer error, -); - -@ffi.Native() -external CFURLRef CFURLCreateCopyAppendingPathComponent( - CFAllocatorRef allocator, - CFURLRef url, - CFStringRef pathComponent, - int isDirectory, -); - -@ffi.Native() -external CFURLRef CFURLCreateCopyAppendingPathExtension( - CFAllocatorRef allocator, - CFURLRef url, - CFStringRef extension, -); - -@ffi.Native() -external CFURLRef CFURLCreateCopyDeletingLastPathComponent( - CFAllocatorRef allocator, - CFURLRef url, -); - -@ffi.Native() -external CFURLRef CFURLCreateCopyDeletingPathExtension( - CFAllocatorRef allocator, - CFURLRef url, -); - -@ffi.Native< - CFDataRef Function(CFAllocatorRef, CFURLRef, CFStringEncoding, Boolean) ->() -external CFDataRef CFURLCreateData( - CFAllocatorRef allocator, - CFURLRef url, - int encoding, - int escapeWhitespace, -); - -@Deprecated( - 'For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys.', -) -@ffi.Native< - Boolean Function( - CFAllocatorRef, - CFURLRef, - ffi.Pointer, - ffi.Pointer, - CFArrayRef, - ffi.Pointer, - ) ->() -external int CFURLCreateDataAndPropertiesFromResource( - CFAllocatorRef alloc, - CFURLRef url, - ffi.Pointer resourceData, - ffi.Pointer properties, - CFArrayRef desiredProperties, - ffi.Pointer errorCode, -); - -@ffi.Native< - CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) ->() -external CFURLRef CFURLCreateFilePathURL( - CFAllocatorRef allocator, - CFURLRef url, - ffi.Pointer error, -); - -@ffi.Native< - CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) ->() -external CFURLRef CFURLCreateFileReferenceURL( - CFAllocatorRef allocator, - CFURLRef url, - ffi.Pointer error, -); - -@Deprecated('Not supported') -@ffi.Native)>() -external CFURLRef CFURLCreateFromFSRef( - CFAllocatorRef allocator, - ffi.Pointer fsRef, -); - -@ffi.Native< - CFURLRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, Boolean) ->() -external CFURLRef CFURLCreateFromFileSystemRepresentation( - CFAllocatorRef allocator, - ffi.Pointer buffer, - int bufLen, - int isDirectory, -); - -@ffi.Native< - CFURLRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - Boolean, - CFURLRef, - ) ->() -external CFURLRef CFURLCreateFromFileSystemRepresentationRelativeToBase( - CFAllocatorRef allocator, - ffi.Pointer buffer, - int bufLen, - int isDirectory, - CFURLRef baseURL, -); - -@Deprecated( - 'For file resource properties, use CFURLCopyResourcePropertyForKey.', -) -@ffi.Native< - CFTypeRef Function(CFAllocatorRef, CFURLRef, CFStringRef, ffi.Pointer) ->() -external CFTypeRef CFURLCreatePropertyFromResource( - CFAllocatorRef alloc, - CFURLRef url, - CFStringRef property, - ffi.Pointer errorCode, -); - -@ffi.Native() -external CFDictionaryRef CFURLCreateResourcePropertiesForKeysFromBookmarkData( - CFAllocatorRef allocator, - CFArrayRef resourcePropertiesToReturn, - CFDataRef bookmark, -); - -@ffi.Native() -external CFTypeRef CFURLCreateResourcePropertyForKeyFromBookmarkData( - CFAllocatorRef allocator, - CFStringRef resourcePropertyKey, - CFDataRef bookmark, -); - -@Deprecated( - 'Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid).', -) -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringEncoding, - ) ->() -external CFStringRef CFURLCreateStringByAddingPercentEscapes( - CFAllocatorRef allocator, - CFStringRef originalString, - CFStringRef charactersToLeaveUnescaped, - CFStringRef legalURLCharactersToBeEscaped, - int encoding, -); - -@ffi.Native() -external CFStringRef CFURLCreateStringByReplacingPercentEscapes( - CFAllocatorRef allocator, - CFStringRef originalString, - CFStringRef charactersToLeaveEscaped, -); - -@Deprecated( - 'Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding.', -) -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - CFStringRef, - CFStringRef, - CFStringEncoding, - ) ->() -external CFStringRef CFURLCreateStringByReplacingPercentEscapesUsingEncoding( - CFAllocatorRef allocator, - CFStringRef origString, - CFStringRef charsToLeaveEscaped, - int encoding, -); - -@ffi.Native< - CFURLRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - CFURLRef, - ) ->() -external CFURLRef CFURLCreateWithBytes( - CFAllocatorRef allocator, - ffi.Pointer URLBytes, - int length, - int encoding, - CFURLRef baseURL, -); - -@ffi.Native( - symbol: 'CFURLCreateWithFileSystemPath', -) -external CFURLRef _CFURLCreateWithFileSystemPath( - CFAllocatorRef allocator, - CFStringRef filePath, - int pathStyle, - int isDirectory, -); - -CFURLRef CFURLCreateWithFileSystemPath( - CFAllocatorRef allocator, - CFStringRef filePath, - CFURLPathStyle pathStyle, - DartBoolean isDirectory, -) { - return _CFURLCreateWithFileSystemPath( - allocator, - filePath, - pathStyle.value, - isDirectory, - ); -} - -@ffi.Native< - CFURLRef Function(CFAllocatorRef, CFStringRef, CFIndex, Boolean, CFURLRef) ->(symbol: 'CFURLCreateWithFileSystemPathRelativeToBase') -external CFURLRef _CFURLCreateWithFileSystemPathRelativeToBase( - CFAllocatorRef allocator, - CFStringRef filePath, - int pathStyle, - int isDirectory, - CFURLRef baseURL, -); - -CFURLRef CFURLCreateWithFileSystemPathRelativeToBase( - CFAllocatorRef allocator, - CFStringRef filePath, - CFURLPathStyle pathStyle, - DartBoolean isDirectory, - CFURLRef baseURL, -) { - return _CFURLCreateWithFileSystemPathRelativeToBase( - allocator, - filePath, - pathStyle.value, - isDirectory, - baseURL, - ); -} - -@ffi.Native() -external CFURLRef CFURLCreateWithString( - CFAllocatorRef allocator, - CFStringRef URLString, - CFURLRef baseURL, -); - -@Deprecated('Use CFURLGetFileSystemRepresentation and removefile(3) instead.') -@ffi.Native)>() -external int CFURLDestroyResource(CFURLRef url, ffi.Pointer errorCode); - -@ffi.Native< - CFURLEnumeratorRef Function( - CFAllocatorRef, - CFURLRef, - CFOptionFlags, - CFArrayRef, - ) ->() -external CFURLEnumeratorRef CFURLEnumeratorCreateForDirectoryURL( - CFAllocatorRef alloc, - CFURLRef directoryURL, - int option, - CFArrayRef propertyKeys, -); - -@ffi.Native< - CFURLEnumeratorRef Function(CFAllocatorRef, CFOptionFlags, CFArrayRef) ->() -external CFURLEnumeratorRef CFURLEnumeratorCreateForMountedVolumes( - CFAllocatorRef alloc, - int option, - CFArrayRef propertyKeys, -); - -@ffi.Native() -external int CFURLEnumeratorGetDescendentLevel(CFURLEnumeratorRef enumerator); - -@ffi.Native< - CFIndex Function( - CFURLEnumeratorRef, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CFURLEnumeratorGetNextURL') -external int _CFURLEnumeratorGetNextURL( - CFURLEnumeratorRef enumerator, - ffi.Pointer url, - ffi.Pointer error, -); - -CFURLEnumeratorResult CFURLEnumeratorGetNextURL( - CFURLEnumeratorRef enumerator, - ffi.Pointer url, - ffi.Pointer error, -) { - return CFURLEnumeratorResult.fromValue( - _CFURLEnumeratorGetNextURL(enumerator, url, error), - ); -} - -@Deprecated('Use File System Events API instead') -@ffi.Native() -external int CFURLEnumeratorGetSourceDidChange(CFURLEnumeratorRef enumerator); - -@ffi.Native() -external int CFURLEnumeratorGetTypeID(); - -@ffi.Native() -external void CFURLEnumeratorSkipDescendents(CFURLEnumeratorRef enumerator); - -@ffi.Native() -external CFURLRef CFURLGetBaseURL(CFURLRef anURL); - -@ffi.Native)>( - symbol: 'CFURLGetByteRangeForComponent', -) -external CFRange _CFURLGetByteRangeForComponent( - CFURLRef url, - int component, - ffi.Pointer rangeIncludingSeparators, -); - -CFRange CFURLGetByteRangeForComponent( - CFURLRef url, - CFURLComponentType component, - ffi.Pointer rangeIncludingSeparators, -) { - return _CFURLGetByteRangeForComponent( - url, - component.value, - rangeIncludingSeparators, - ); -} - -@ffi.Native, CFIndex)>() -external int CFURLGetBytes( - CFURLRef url, - ffi.Pointer buffer, - int bufferLength, -); - -@Deprecated('Not supported') -@ffi.Native)>() -external int CFURLGetFSRef(CFURLRef url, ffi.Pointer fsRef); - -@ffi.Native, CFIndex)>() -external int CFURLGetFileSystemRepresentation( - CFURLRef url, - int resolveAgainstBase, - ffi.Pointer buffer, - int maxBufLen, -); - -@ffi.Native() -external int CFURLGetPortNumber(CFURLRef anURL); - -@ffi.Native() -external CFStringRef CFURLGetString(CFURLRef anURL); - -@ffi.Native() -external int CFURLGetTypeID(); - -@ffi.Native() -external int CFURLHasDirectoryPath(CFURLRef anURL); - -@ffi.Native() -external int CFURLIsFileReferenceURL(CFURLRef url); - -@ffi.Native)>() -external int CFURLResourceIsReachable( - CFURLRef url, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function(CFURLRef, CFDictionaryRef, ffi.Pointer) ->() -external int CFURLSetResourcePropertiesForKeys( - CFURLRef url, - CFDictionaryRef keyedPropertyValues, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function(CFURLRef, CFStringRef, CFTypeRef, ffi.Pointer) ->() -external int CFURLSetResourcePropertyForKey( - CFURLRef url, - CFStringRef key, - CFTypeRef propertyValue, - ffi.Pointer error, -); - -@ffi.Native() -external void CFURLSetTemporaryResourcePropertyForKey( - CFURLRef url, - CFStringRef key, - CFTypeRef propertyValue, -); - -@ffi.Native() -external int CFURLStartAccessingSecurityScopedResource(CFURLRef url); - -@ffi.Native() -external void CFURLStopAccessingSecurityScopedResource(CFURLRef url); - -@ffi.Native< - Boolean Function( - CFDataRef, - CFURLRef, - CFURLBookmarkFileCreationOptions, - ffi.Pointer, - ) ->() -external int CFURLWriteBookmarkDataToFile( - CFDataRef bookmarkRef, - CFURLRef fileURL, - int options, - ffi.Pointer errorRef, -); - -@Deprecated( - 'For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys.', -) -@ffi.Native< - Boolean Function(CFURLRef, CFDataRef, CFDictionaryRef, ffi.Pointer) ->() -external int CFURLWriteDataAndPropertiesToResource( - CFURLRef url, - CFDataRef dataToWrite, - CFDictionaryRef propertiesToWrite, - ffi.Pointer errorCode, -); - -@ffi.Native() -external CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc); - -@ffi.Native() -external CFUUIDRef CFUUIDCreateFromString( - CFAllocatorRef alloc, - CFStringRef uuidStr, -); - -@ffi.Native() -external CFUUIDRef CFUUIDCreateFromUUIDBytes( - CFAllocatorRef alloc, - CFUUIDBytes bytes, -); - -@ffi.Native() -external CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid); - -@ffi.Native< - CFUUIDRef Function( - CFAllocatorRef, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - ) ->() -external CFUUIDRef CFUUIDCreateWithBytes( - CFAllocatorRef alloc, - int byte0, - int byte1, - int byte2, - int byte3, - int byte4, - int byte5, - int byte6, - int byte7, - int byte8, - int byte9, - int byte10, - int byte11, - int byte12, - int byte13, - int byte14, - int byte15, -); - -@ffi.Native< - CFUUIDRef Function( - CFAllocatorRef, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - ) ->() -external CFUUIDRef CFUUIDGetConstantUUIDWithBytes( - CFAllocatorRef alloc, - int byte0, - int byte1, - int byte2, - int byte3, - int byte4, - int byte5, - int byte6, - int byte7, - int byte8, - int byte9, - int byte10, - int byte11, - int byte12, - int byte13, - int byte14, - int byte15, -); - -@ffi.Native() -external int CFUUIDGetTypeID(); - -@ffi.Native() -external CFUUIDBytes CFUUIDGetUUIDBytes(CFUUIDRef uuid); - -@ffi.Native() -external int CFUserNotificationCancel(CFUserNotificationRef userNotification); - -@ffi.Native< - CFUserNotificationRef Function( - CFAllocatorRef, - CFTimeInterval, - CFOptionFlags, - ffi.Pointer, - CFDictionaryRef, - ) ->() -external CFUserNotificationRef CFUserNotificationCreate( - CFAllocatorRef allocator, - double timeout, - int flags, - ffi.Pointer error, - CFDictionaryRef dictionary, -); - -@ffi.Native< - CFRunLoopSourceRef Function( - CFAllocatorRef, - CFUserNotificationRef, - CFUserNotificationCallBack, - CFIndex, - ) ->() -external CFRunLoopSourceRef CFUserNotificationCreateRunLoopSource( - CFAllocatorRef allocator, - CFUserNotificationRef userNotification, - CFUserNotificationCallBack callout, - int order, -); - -@ffi.Native< - SInt32 Function( - CFTimeInterval, - CFOptionFlags, - CFURLRef, - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external int CFUserNotificationDisplayAlert( - double timeout, - int flags, - CFURLRef iconURL, - CFURLRef soundURL, - CFURLRef localizationURL, - CFStringRef alertHeader, - CFStringRef alertMessage, - CFStringRef defaultButtonTitle, - CFStringRef alternateButtonTitle, - CFStringRef otherButtonTitle, - ffi.Pointer responseFlags, -); - -@ffi.Native< - SInt32 Function( - CFTimeInterval, - CFOptionFlags, - CFURLRef, - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - CFStringRef, - ) ->() -external int CFUserNotificationDisplayNotice( - double timeout, - int flags, - CFURLRef iconURL, - CFURLRef soundURL, - CFURLRef localizationURL, - CFStringRef alertHeader, - CFStringRef alertMessage, - CFStringRef defaultButtonTitle, -); - -@ffi.Native() -external CFDictionaryRef CFUserNotificationGetResponseDictionary( - CFUserNotificationRef userNotification, -); - -@ffi.Native() -external CFStringRef CFUserNotificationGetResponseValue( - CFUserNotificationRef userNotification, - CFStringRef key, - int idx, -); - -@ffi.Native() -external int CFUserNotificationGetTypeID(); - -@ffi.Native< - SInt32 Function( - CFUserNotificationRef, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int CFUserNotificationReceiveResponse( - CFUserNotificationRef userNotification, - double timeout, - ffi.Pointer responseFlags, -); - -@ffi.Native< - SInt32 Function( - CFUserNotificationRef, - CFTimeInterval, - CFOptionFlags, - CFDictionaryRef, - ) ->() -external int CFUserNotificationUpdate( - CFUserNotificationRef userNotification, - double timeout, - int flags, - CFDictionaryRef dictionary, -); - -@ffi.Native() -external int CFWriteStreamCanAcceptBytes(CFWriteStreamRef stream); - -@ffi.Native() -external void CFWriteStreamClose(CFWriteStreamRef stream); - -@ffi.Native( - symbol: 'CFWriteStreamCopyDispatchQueue', -) -external dispatch_queue_t _CFWriteStreamCopyDispatchQueue( - CFWriteStreamRef stream, -); - -Dartdispatch_queue_t CFWriteStreamCopyDispatchQueue(CFWriteStreamRef stream) { - return objc.NSObject.fromPointer( - _CFWriteStreamCopyDispatchQueue(stream), - retain: true, - release: true, - ); -} - -@ffi.Native() -external CFErrorRef CFWriteStreamCopyError(CFWriteStreamRef stream); - -@ffi.Native() -external CFTypeRef CFWriteStreamCopyProperty( - CFWriteStreamRef stream, - CFStreamPropertyKey propertyName, -); - -@ffi.Native() -external CFWriteStreamRef CFWriteStreamCreateWithAllocatedBuffers( - CFAllocatorRef alloc, - CFAllocatorRef bufferAllocator, -); - -@ffi.Native< - CFWriteStreamRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) ->() -external CFWriteStreamRef CFWriteStreamCreateWithBuffer( - CFAllocatorRef alloc, - ffi.Pointer buffer, - int bufferCapacity, -); - -@Deprecated('Use NSURLSessionAPI for ftp requests') -@ffi.Native() -external CFWriteStreamRef CFWriteStreamCreateWithFTPURL( - CFAllocatorRef alloc, - CFURLRef ftpURL, -); - -@ffi.Native() -external CFWriteStreamRef CFWriteStreamCreateWithFile( - CFAllocatorRef alloc, - CFURLRef fileURL, -); - -@ffi.Native() -external CFStreamError CFWriteStreamGetError(CFWriteStreamRef stream); - -@ffi.Native( - symbol: 'CFWriteStreamGetStatus', -) -external int _CFWriteStreamGetStatus(CFWriteStreamRef stream); - -CFStreamStatus CFWriteStreamGetStatus(CFWriteStreamRef stream) { - return CFStreamStatus.fromValue(_CFWriteStreamGetStatus(stream)); -} - -@ffi.Native() -external int CFWriteStreamGetTypeID(); - -@ffi.Native() -external int CFWriteStreamOpen(CFWriteStreamRef stream); - -@ffi.Native() -external void CFWriteStreamScheduleWithRunLoop( - CFWriteStreamRef stream, - CFRunLoopRef runLoop, - CFRunLoopMode runLoopMode, -); - -@ffi.Native< - Boolean Function( - CFWriteStreamRef, - CFOptionFlags, - CFWriteStreamClientCallBack, - ffi.Pointer, - ) ->() -external int CFWriteStreamSetClient( - CFWriteStreamRef stream, - int streamEvents, - CFWriteStreamClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@ffi.Native( - symbol: 'CFWriteStreamSetDispatchQueue', -) -external void _CFWriteStreamSetDispatchQueue( - CFWriteStreamRef stream, - dispatch_queue_t q, -); - -void CFWriteStreamSetDispatchQueue( - CFWriteStreamRef stream, - Dartdispatch_queue_t q, -) { - final _$$ref = q.ref; - return _CFWriteStreamSetDispatchQueue(stream, _$$ref.pointer); -} - -@ffi.Native< - Boolean Function(CFWriteStreamRef, CFStreamPropertyKey, CFTypeRef) ->() -external int CFWriteStreamSetProperty( - CFWriteStreamRef stream, - CFStreamPropertyKey propertyName, - CFTypeRef propertyValue, -); - -@ffi.Native() -external void CFWriteStreamUnscheduleFromRunLoop( - CFWriteStreamRef stream, - CFRunLoopRef runLoop, - CFRunLoopMode runLoopMode, -); - -@ffi.Native, CFIndex)>() -external int CFWriteStreamWrite( - CFWriteStreamRef stream, - ffi.Pointer buffer, - int bufferLength, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) ->() -external CFStringRef CFXMLCreateStringByEscapingEntities( - CFAllocatorRef allocator, - CFStringRef string, - CFDictionaryRef entitiesDictionary, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) ->() -external CFStringRef CFXMLCreateStringByUnescapingEntities( - CFAllocatorRef allocator, - CFStringRef string, - CFDictionaryRef entitiesDictionary, -); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLNodeRef Function( - CFAllocatorRef, - CFIndex, - CFStringRef, - ffi.Pointer, - CFIndex, - ) ->(symbol: 'CFXMLNodeCreate') -external CFXMLNodeRef _CFXMLNodeCreate( - CFAllocatorRef alloc, - int xmlType, - CFStringRef dataString, - ffi.Pointer additionalInfoPtr, - int version, -); - -CFXMLNodeRef CFXMLNodeCreate( - CFAllocatorRef alloc, - CFXMLNodeTypeCode xmlType, - CFStringRef dataString, - ffi.Pointer additionalInfoPtr, - DartCFIndex version, -) { - return _CFXMLNodeCreate( - alloc, - xmlType.value, - dataString, - additionalInfoPtr, - version, - ); -} - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFXMLNodeRef CFXMLNodeCreateCopy( - CFAllocatorRef alloc, - CFXMLNodeRef origNode, -); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native Function(CFXMLNodeRef)>() -external ffi.Pointer CFXMLNodeGetInfoPtr(CFXMLNodeRef node); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFStringRef CFXMLNodeGetString(CFXMLNodeRef node); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native(symbol: 'CFXMLNodeGetTypeCode') -external int _CFXMLNodeGetTypeCode(CFXMLNodeRef node); - -CFXMLNodeTypeCode CFXMLNodeGetTypeCode(CFXMLNodeRef node) { - return CFXMLNodeTypeCode.fromValue(_CFXMLNodeGetTypeCode(node)); -} - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLNodeGetTypeID(); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLNodeGetVersion(CFXMLNodeRef node); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external void CFXMLParserAbort( - CFXMLParserRef parser, - int errorCode, - CFStringRef errorDescription, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFStringRef CFXMLParserCopyErrorDescription(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLParserRef Function( - CFAllocatorRef, - CFDataRef, - CFURLRef, - CFOptionFlags, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFXMLParserRef CFXMLParserCreate( - CFAllocatorRef allocator, - CFDataRef xmlData, - CFURLRef dataSource, - int parseOptions, - int versionOfNodes, - ffi.Pointer callBacks, - ffi.Pointer context, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLParserRef Function( - CFAllocatorRef, - CFURLRef, - CFOptionFlags, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFXMLParserRef CFXMLParserCreateWithDataFromURL( - CFAllocatorRef allocator, - CFURLRef dataSource, - int parseOptions, - int versionOfNodes, - ffi.Pointer callBacks, - ffi.Pointer context, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - ffi.Void Function(CFXMLParserRef, ffi.Pointer) ->() -external void CFXMLParserGetCallBacks( - CFXMLParserRef parser, - ffi.Pointer callBacks, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - ffi.Void Function(CFXMLParserRef, ffi.Pointer) ->() -external void CFXMLParserGetContext( - CFXMLParserRef parser, - ffi.Pointer context, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native Function(CFXMLParserRef)>() -external ffi.Pointer CFXMLParserGetDocument(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLParserGetLineNumber(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLParserGetLocation(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFURLRef CFXMLParserGetSourceURL(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLParserGetStatusCode(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLParserGetTypeID(); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLParserParse(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLTreeRef Function( - CFAllocatorRef, - CFDataRef, - CFURLRef, - CFOptionFlags, - CFIndex, - ) ->() -external CFXMLTreeRef CFXMLTreeCreateFromData( - CFAllocatorRef allocator, - CFDataRef xmlData, - CFURLRef dataSource, - int parseOptions, - int versionOfNodes, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLTreeRef Function( - CFAllocatorRef, - CFDataRef, - CFURLRef, - CFOptionFlags, - CFIndex, - ffi.Pointer, - ) ->() -external CFXMLTreeRef CFXMLTreeCreateFromDataWithError( - CFAllocatorRef allocator, - CFDataRef xmlData, - CFURLRef dataSource, - int parseOptions, - int versionOfNodes, - ffi.Pointer errorDict, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLTreeRef Function(CFAllocatorRef, CFURLRef, CFOptionFlags, CFIndex) ->() -external CFXMLTreeRef CFXMLTreeCreateWithDataFromURL( - CFAllocatorRef allocator, - CFURLRef dataSource, - int parseOptions, - int versionOfNodes, -); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFXMLTreeRef CFXMLTreeCreateWithNode( - CFAllocatorRef allocator, - CFXMLNodeRef node, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFDataRef CFXMLTreeCreateXMLData( - CFAllocatorRef allocator, - CFXMLTreeRef xmlTree, -); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFXMLNodeRef CFXMLTreeGetNode(CFXMLTreeRef xmlTree); - -@ffi.Native< - ffi.Int32 Function( - CGDisplayReservationInterval, - ffi.Pointer, - ) ->(symbol: 'CGAcquireDisplayFadeReservation') -external int _CGAcquireDisplayFadeReservation( - double seconds, - ffi.Pointer token, -); - -CGError CGAcquireDisplayFadeReservation( - DartCGDisplayReservationInterval seconds, - ffi.Pointer token, -) { - return CGError.fromValue(_CGAcquireDisplayFadeReservation(seconds, token)); -} - -@ffi.Native() -external CGAffineTransform CGAffineTransformConcat( - CGAffineTransform t1, - CGAffineTransform t2, -); - -@ffi.Native() -external CGAffineTransformComponents CGAffineTransformDecompose( - CGAffineTransform transform, -); - -@ffi.Native() -external bool CGAffineTransformEqualToTransform( - CGAffineTransform t1, - CGAffineTransform t2, -); - -@ffi.Native() -external final CGAffineTransform CGAffineTransformIdentity; - -@ffi.Native() -external CGAffineTransform CGAffineTransformInvert(CGAffineTransform t); - -@ffi.Native() -external bool CGAffineTransformIsIdentity(CGAffineTransform t); - -@ffi.Native< - CGAffineTransform Function( - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external CGAffineTransform CGAffineTransformMake( - double a, - double b, - double c, - double d, - double tx, - double ty, -); - -@ffi.Native() -external CGAffineTransform CGAffineTransformMakeRotation(double angle); - -@ffi.Native() -external CGAffineTransform CGAffineTransformMakeScale(double sx, double sy); - -@ffi.Native() -external CGAffineTransform CGAffineTransformMakeTranslation( - double tx, - double ty, -); - -@ffi.Native() -external CGAffineTransform CGAffineTransformMakeWithComponents( - CGAffineTransformComponents components, -); - -@ffi.Native() -external CGAffineTransform CGAffineTransformRotate( - CGAffineTransform t, - double angle, -); - -@ffi.Native() -external CGAffineTransform CGAffineTransformScale( - CGAffineTransform t, - double sx, - double sy, -); - -@ffi.Native() -external CGAffineTransform CGAffineTransformTranslate( - CGAffineTransform t, - double tx, - double ty, -); - -@ffi.Native< - OSStatus Function(CFURLRef, CFDictionaryRef, CGImageSourceAnimationBlock) ->(symbol: 'CGAnimateImageAtURLWithBlock') -external int _CGAnimateImageAtURLWithBlock( - CFURLRef url, - CFDictionaryRef options, - CGImageSourceAnimationBlock block, -); - -DartSInt32 CGAnimateImageAtURLWithBlock( - CFURLRef url, - CFDictionaryRef options, - DartCGImageSourceAnimationBlock block, -) { - final _$$ref = block.ref; - return _CGAnimateImageAtURLWithBlock(url, options, _$$ref.pointer); -} - -@ffi.Native< - OSStatus Function(CFDataRef, CFDictionaryRef, CGImageSourceAnimationBlock) ->(symbol: 'CGAnimateImageDataWithBlock') -external int _CGAnimateImageDataWithBlock( - CFDataRef data, - CFDictionaryRef options, - CGImageSourceAnimationBlock block, -); - -DartSInt32 CGAnimateImageDataWithBlock( - CFDataRef data, - CFDictionaryRef options, - DartCGImageSourceAnimationBlock block, -) { - final _$$ref = block.ref; - return _CGAnimateImageDataWithBlock(data, options, _$$ref.pointer); -} - -@ffi.Native( - symbol: 'CGAssociateMouseAndMouseCursorPosition', -) -external int _CGAssociateMouseAndMouseCursorPosition(int connected); - -CGError CGAssociateMouseAndMouseCursorPosition(Dartboolean_t connected) { - return CGError.fromValue(_CGAssociateMouseAndMouseCursorPosition(connected)); -} - -@ffi.Native)>( - symbol: 'CGBeginDisplayConfiguration', -) -external int _CGBeginDisplayConfiguration( - ffi.Pointer config, -); - -CGError CGBeginDisplayConfiguration(ffi.Pointer config) { - return CGError.fromValue(_CGBeginDisplayConfiguration(config)); -} - -@ffi.Native< - CGContextRef Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - CGColorSpaceRef, - ffi.Uint32, - ) ->() -external CGContextRef CGBitmapContextCreate( - ffi.Pointer data, - int width, - int height, - int bitsPerComponent, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, -); - -@ffi.Native< - CGContextRef Function( - ffi.Size, - ffi.Size, - CFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGBitmapContextCreateAdaptive') -external CGContextRef _CGBitmapContextCreateAdaptive( - int width, - int height, - CFDictionaryRef auxiliaryInfo, - ffi.Pointer onResolve, - ffi.Pointer onAllocate, - ffi.Pointer onFree, - ffi.Pointer onError, -); - -CGContextRef CGBitmapContextCreateAdaptive( - int width, - int height, - CFDictionaryRef auxiliaryInfo, - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >? - onResolve, - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >? - onAllocate, - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >? - onFree, - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >? - onError, -) { - final _$$ref = onResolve?.ref; - final _$$ref$1 = onAllocate?.ref; - final _$$ref$2 = onFree?.ref; - final _$$ref$3 = onError?.ref; - return _CGBitmapContextCreateAdaptive( - width, - height, - auxiliaryInfo, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native() -external CGImageRef CGBitmapContextCreateImage(CGContextRef context); - -@ffi.Native< - CGContextRef Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - CGColorSpaceRef, - ffi.Uint32, - CGBitmapContextReleaseDataCallback, - ffi.Pointer, - ) ->() -external CGContextRef CGBitmapContextCreateWithData( - ffi.Pointer data, - int width, - int height, - int bitsPerComponent, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, - CGBitmapContextReleaseDataCallback releaseCallback, - ffi.Pointer releaseInfo, -); - -@ffi.Native( - symbol: 'CGBitmapContextGetAlphaInfo', -) -external int _CGBitmapContextGetAlphaInfo(CGContextRef context); - -CGImageAlphaInfo CGBitmapContextGetAlphaInfo(CGContextRef context) { - return CGImageAlphaInfo.fromValue(_CGBitmapContextGetAlphaInfo(context)); -} - -@ffi.Native() -external int CGBitmapContextGetBitmapInfo(CGContextRef context); - -@ffi.Native() -external int CGBitmapContextGetBitsPerComponent(CGContextRef context); - -@ffi.Native() -external int CGBitmapContextGetBitsPerPixel(CGContextRef context); - -@ffi.Native() -external int CGBitmapContextGetBytesPerRow(CGContextRef context); - -@ffi.Native() -external CGColorSpaceRef CGBitmapContextGetColorSpace(CGContextRef context); - -@ffi.Native Function(CGContextRef)>() -external ffi.Pointer CGBitmapContextGetData(CGContextRef context); - -@ffi.Native() -external int CGBitmapContextGetHeight(CGContextRef context); - -@ffi.Native() -external int CGBitmapContextGetWidth(CGContextRef context); - -@ffi.Native( - symbol: 'CGCancelDisplayConfiguration', -) -external int _CGCancelDisplayConfiguration(CGDisplayConfigRef config); - -CGError CGCancelDisplayConfiguration(CGDisplayConfigRef config) { - return CGError.fromValue(_CGCancelDisplayConfiguration(config)); -} - -@ffi.Native(symbol: 'CGCaptureAllDisplays') -external int _CGCaptureAllDisplays(); - -CGError CGCaptureAllDisplays() { - return CGError.fromValue(_CGCaptureAllDisplays()); -} - -@ffi.Native( - symbol: 'CGCaptureAllDisplaysWithOptions', -) -external int _CGCaptureAllDisplaysWithOptions(int options); - -CGError CGCaptureAllDisplaysWithOptions(int options) { - return CGError.fromValue(_CGCaptureAllDisplaysWithOptions(options)); -} - -@ffi.Native< - ffi.Bool Function( - CGColorConversionInfoRef, - ffi.Size, - ffi.Size, - ffi.Pointer, - CGColorBufferFormat, - ffi.Pointer, - CGColorBufferFormat, - CFDictionaryRef, - ) ->() -external bool CGColorConversionInfoConvertData( - CGColorConversionInfoRef info, - int width, - int height, - ffi.Pointer dst_data, - CGColorBufferFormat dst_format, - ffi.Pointer src_data, - CGColorBufferFormat src_format, - CFDictionaryRef options, -); - -@ffi.Native< - CGColorConversionInfoRef Function(CGColorSpaceRef, CGColorSpaceRef) ->() -external CGColorConversionInfoRef CGColorConversionInfoCreate( - CGColorSpaceRef src, - CGColorSpaceRef dst, -); - -@ffi.Native< - CGColorConversionInfoRef Function( - CGColorSpaceRef, - ffi.Float, - CGColorSpaceRef, - ffi.Float, - ffi.Uint32, - CFDictionaryRef, - ffi.Pointer, - ) ->(symbol: 'CGColorConversionInfoCreateForToneMapping') -external CGColorConversionInfoRef _CGColorConversionInfoCreateForToneMapping( - CGColorSpaceRef from, - double source_headroom, - CGColorSpaceRef to, - double target_headroom, - int method, - CFDictionaryRef options, - ffi.Pointer error, -); - -CGColorConversionInfoRef CGColorConversionInfoCreateForToneMapping( - CGColorSpaceRef from, - double source_headroom, - CGColorSpaceRef to, - double target_headroom, - CGToneMapping method, - CFDictionaryRef options, - ffi.Pointer error, -) { - return _CGColorConversionInfoCreateForToneMapping( - from, - source_headroom, - to, - target_headroom, - method.value, - options, - error, - ); -} - -@ffi.Native< - CGColorConversionInfoRef Function( - CFDictionaryRef, - CGColorSpaceRef, - ffi.Uint32, - ffi.Int32, - ) ->(symbol: 'CGColorConversionInfoCreateFromList') -external CGColorConversionInfoRef _CGColorConversionInfoCreateFromList( - CFDictionaryRef options, - CGColorSpaceRef arg1, - int arg2, - int arg3, -); - -CGColorConversionInfoRef CGColorConversionInfoCreateFromList( - CFDictionaryRef options, - CGColorSpaceRef arg1, - CGColorConversionInfoTransformType arg2, - CGColorRenderingIntent arg3, -) { - return _CGColorConversionInfoCreateFromList( - options, - arg1, - arg2.value, - arg3.value, - ); -} - -@ffi.Native< - CGColorConversionInfoRef Function( - CFDictionaryRef, - CGColorSpaceRef, - ffi.Uint32, - ffi.Int32, - va_list, - ) ->(symbol: 'CGColorConversionInfoCreateFromListWithArguments') -external CGColorConversionInfoRef -_CGColorConversionInfoCreateFromListWithArguments( - CFDictionaryRef options, - CGColorSpaceRef arg1, - int arg2, - int arg3, - va_list arg4, -); - -CGColorConversionInfoRef CGColorConversionInfoCreateFromListWithArguments( - CFDictionaryRef options, - CGColorSpaceRef arg1, - CGColorConversionInfoTransformType arg2, - CGColorRenderingIntent arg3, - va_list arg4, -) { - return _CGColorConversionInfoCreateFromListWithArguments( - options, - arg1, - arg2.value, - arg3.value, - arg4, - ); -} - -@ffi.Native< - CGColorConversionInfoRef Function( - CGColorSpaceRef, - CGColorSpaceRef, - CFDictionaryRef, - ) ->() -external CGColorConversionInfoRef CGColorConversionInfoCreateWithOptions( - CGColorSpaceRef src, - CGColorSpaceRef dst, - CFDictionaryRef options, -); - -@ffi.Native() -external int CGColorConversionInfoGetTypeID(); - -@ffi.Native)>() -external CGColorRef CGColorCreate( - CGColorSpaceRef space, - ffi.Pointer components, -); - -@ffi.Native() -external CGColorRef CGColorCreateCopy(CGColorRef color); - -@ffi.Native< - CGColorRef Function(CGColorSpaceRef, ffi.Int32, CGColorRef, CFDictionaryRef) ->(symbol: 'CGColorCreateCopyByMatchingToColorSpace') -external CGColorRef _CGColorCreateCopyByMatchingToColorSpace( - CGColorSpaceRef arg0, - int intent, - CGColorRef color, - CFDictionaryRef options, -); - -CGColorRef CGColorCreateCopyByMatchingToColorSpace( - CGColorSpaceRef arg0, - CGColorRenderingIntent intent, - CGColorRef color, - CFDictionaryRef options, -) { - return _CGColorCreateCopyByMatchingToColorSpace( - arg0, - intent.value, - color, - options, - ); -} - -@ffi.Native() -external CGColorRef CGColorCreateCopyWithAlpha(CGColorRef color, double alpha); - -@ffi.Native() -external CGColorRef CGColorCreateGenericCMYK( - double cyan, - double magenta, - double yellow, - double black, - double alpha, -); - -@ffi.Native() -external CGColorRef CGColorCreateGenericGray(double gray, double alpha); - -@ffi.Native() -external CGColorRef CGColorCreateGenericGrayGamma2_2(double gray, double alpha); - -@ffi.Native() -external CGColorRef CGColorCreateGenericRGB( - double red, - double green, - double blue, - double alpha, -); - -@ffi.Native() -external CGColorRef CGColorCreateSRGB( - double red, - double green, - double blue, - double alpha, -); - -@ffi.Native< - CGColorRef Function( - ffi.Float, - CGColorSpaceRef, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external CGColorRef CGColorCreateWithContentHeadroom( - double headroom, - CGColorSpaceRef space, - double red, - double green, - double blue, - double alpha, -); - -@ffi.Native< - CGColorRef Function(CGColorSpaceRef, CGPatternRef, ffi.Pointer) ->() -external CGColorRef CGColorCreateWithPattern( - CGColorSpaceRef space, - CGPatternRef pattern, - ffi.Pointer components, -); - -@ffi.Native() -external bool CGColorEqualToColor(CGColorRef color1, CGColorRef color2); - -@ffi.Native() -external double CGColorGetAlpha(CGColorRef color); - -@ffi.Native() -external CGColorSpaceRef CGColorGetColorSpace(CGColorRef color); - -@ffi.Native Function(CGColorRef)>() -external ffi.Pointer CGColorGetComponents(CGColorRef color); - -@ffi.Native() -external CGColorRef CGColorGetConstantColor(CFStringRef colorName); - -@ffi.Native() -external double CGColorGetContentHeadroom(CGColorRef color); - -@ffi.Native() -external int CGColorGetNumberOfComponents(CGColorRef color); - -@ffi.Native() -external CGPatternRef CGColorGetPattern(CGColorRef color); - -@ffi.Native() -external int CGColorGetTypeID(); - -@ffi.Native() -external void CGColorRelease(CGColorRef color); - -@ffi.Native() -external CGColorRef CGColorRetain(CGColorRef color); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCopyBaseColorSpace(CGColorSpaceRef space); - -@ffi.Native() -external CFDataRef CGColorSpaceCopyICCData(CGColorSpaceRef space); - -@Deprecated('No longer supported') -@ffi.Native() -external CFDataRef CGColorSpaceCopyICCProfile(CGColorSpaceRef space); - -@ffi.Native() -external CFStringRef CGColorSpaceCopyName(CGColorSpaceRef space); - -@ffi.Native() -external CFPropertyListRef CGColorSpaceCopyPropertyList(CGColorSpaceRef space); - -@ffi.Native< - CGColorSpaceRef Function(ffi.Pointer, ffi.Pointer, CGFloat) ->() -external CGColorSpaceRef CGColorSpaceCreateCalibratedGray( - ffi.Pointer whitePoint, - ffi.Pointer blackPoint, - double gamma, -); - -@ffi.Native< - CGColorSpaceRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGColorSpaceRef CGColorSpaceCreateCalibratedRGB( - ffi.Pointer whitePoint, - ffi.Pointer blackPoint, - ffi.Pointer gamma, - ffi.Pointer matrix, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateCopyWithStandardRange( - CGColorSpaceRef s, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateDeviceCMYK(); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateDeviceGray(); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateDeviceRGB(); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateExtended(CGColorSpaceRef space); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateExtendedLinearized( - CGColorSpaceRef space, -); - -@ffi.Native< - CGColorSpaceRef Function( - ffi.Size, - ffi.Pointer, - CGDataProviderRef, - CGColorSpaceRef, - ) ->() -external CGColorSpaceRef CGColorSpaceCreateICCBased( - int nComponents, - ffi.Pointer range, - CGDataProviderRef profile, - CGColorSpaceRef alternate, -); - -@ffi.Native< - CGColorSpaceRef Function( - CGColorSpaceRef, - ffi.Size, - ffi.Pointer, - ) ->() -external CGColorSpaceRef CGColorSpaceCreateIndexed( - CGColorSpaceRef baseSpace, - int lastIndex, - ffi.Pointer colorTable, -); - -@ffi.Native< - CGColorSpaceRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGColorSpaceRef CGColorSpaceCreateLab( - ffi.Pointer whitePoint, - ffi.Pointer blackPoint, - ffi.Pointer range, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateLinearized(CGColorSpaceRef space); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreatePattern(CGColorSpaceRef baseSpace); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateWithColorSyncProfile( - ColorSyncProfileRef arg0, - CFDictionaryRef options, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateWithICCData(CFTypeRef data); - -@Deprecated('No longer supported') -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateWithICCProfile(CFDataRef data); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateWithName(CFStringRef name); - -@Deprecated('No longer supported') -@ffi.Native)>() -external CGColorSpaceRef CGColorSpaceCreateWithPlatformColorSpace( - ffi.Pointer ref, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateWithPropertyList( - CFPropertyListRef plist, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceGetBaseColorSpace(CGColorSpaceRef space); - -@ffi.Native)>() -external void CGColorSpaceGetColorTable( - CGColorSpaceRef space, - ffi.Pointer table, -); - -@ffi.Native() -external int CGColorSpaceGetColorTableCount(CGColorSpaceRef space); - -@ffi.Native(symbol: 'CGColorSpaceGetModel') -external int _CGColorSpaceGetModel(CGColorSpaceRef space); - -CGColorSpaceModel CGColorSpaceGetModel(CGColorSpaceRef space) { - return CGColorSpaceModel.fromValue(_CGColorSpaceGetModel(space)); -} - -@ffi.Native() -external CFStringRef CGColorSpaceGetName(CGColorSpaceRef space); - -@ffi.Native() -external int CGColorSpaceGetNumberOfComponents(CGColorSpaceRef space); - -@ffi.Native() -external int CGColorSpaceGetTypeID(); - -@ffi.Native() -external bool CGColorSpaceIsHDR(CGColorSpaceRef arg0); - -@ffi.Native() -external bool CGColorSpaceIsHLGBased(CGColorSpaceRef s); - -@ffi.Native() -external bool CGColorSpaceIsPQBased(CGColorSpaceRef s); - -@ffi.Native() -external bool CGColorSpaceIsWideGamutRGB(CGColorSpaceRef arg0); - -@ffi.Native() -external void CGColorSpaceRelease(CGColorSpaceRef space); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceRetain(CGColorSpaceRef space); - -@ffi.Native() -external bool CGColorSpaceSupportsOutput(CGColorSpaceRef space); - -@ffi.Native() -external bool CGColorSpaceUsesExtendedRange(CGColorSpaceRef space); - -@ffi.Native() -external bool CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef arg0); - -@ffi.Native( - symbol: 'CGCompleteDisplayConfiguration', -) -external int _CGCompleteDisplayConfiguration( - CGDisplayConfigRef config, - int option, -); - -CGError CGCompleteDisplayConfiguration(CGDisplayConfigRef config, int option) { - return CGError.fromValue(_CGCompleteDisplayConfiguration(config, option)); -} - -@ffi.Native< - ffi.Int32 Function( - CGDisplayConfigRef, - CGDisplayFadeInterval, - CGDisplayFadeInterval, - ffi.Float, - ffi.Float, - ffi.Float, - ) ->(symbol: 'CGConfigureDisplayFadeEffect') -external int _CGConfigureDisplayFadeEffect( - CGDisplayConfigRef config, - double fadeOutSeconds, - double fadeInSeconds, - double fadeRed, - double fadeGreen, - double fadeBlue, -); - -CGError CGConfigureDisplayFadeEffect( - CGDisplayConfigRef config, - DartCGDisplayFadeInterval fadeOutSeconds, - DartCGDisplayFadeInterval fadeInSeconds, - double fadeRed, - double fadeGreen, - double fadeBlue, -) { - return CGError.fromValue( - _CGConfigureDisplayFadeEffect( - config, - fadeOutSeconds, - fadeInSeconds, - fadeRed, - fadeGreen, - fadeBlue, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function(CGDisplayConfigRef, CGDirectDisplayID, CGDirectDisplayID) ->(symbol: 'CGConfigureDisplayMirrorOfDisplay') -external int _CGConfigureDisplayMirrorOfDisplay( - CGDisplayConfigRef config, - int display, - int master, -); - -CGError CGConfigureDisplayMirrorOfDisplay( - CGDisplayConfigRef config, - DartCGDirectDisplayID display, - DartCGDirectDisplayID master, -) { - return CGError.fromValue( - _CGConfigureDisplayMirrorOfDisplay(config, display, master), - ); -} - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Int32 Function(CGDisplayConfigRef, CGDirectDisplayID, CFDictionaryRef) ->(symbol: 'CGConfigureDisplayMode') -external int _CGConfigureDisplayMode( - CGDisplayConfigRef config, - int display, - CFDictionaryRef mode, -); - -CGError CGConfigureDisplayMode( - CGDisplayConfigRef config, - DartCGDirectDisplayID display, - CFDictionaryRef mode, -) { - return CGError.fromValue(_CGConfigureDisplayMode(config, display, mode)); -} - -@ffi.Native< - ffi.Int32 Function( - CGDisplayConfigRef, - CGDirectDisplayID, - ffi.Int32, - ffi.Int32, - ) ->(symbol: 'CGConfigureDisplayOrigin') -external int _CGConfigureDisplayOrigin( - CGDisplayConfigRef config, - int display, - int x, - int y, -); - -CGError CGConfigureDisplayOrigin( - CGDisplayConfigRef config, - DartCGDirectDisplayID display, - int x, - int y, -) { - return CGError.fromValue(_CGConfigureDisplayOrigin(config, display, x, y)); -} - -@ffi.Native< - ffi.Int32 Function( - CGDisplayConfigRef, - CGDirectDisplayID, - boolean_t, - boolean_t, - ) ->(symbol: 'CGConfigureDisplayStereoOperation') -external int _CGConfigureDisplayStereoOperation( - CGDisplayConfigRef config, - int display, - int stereo, - int forceBlueLine, -); - -CGError CGConfigureDisplayStereoOperation( - CGDisplayConfigRef config, - DartCGDirectDisplayID display, - Dartboolean_t stereo, - Dartboolean_t forceBlueLine, -) { - return CGError.fromValue( - _CGConfigureDisplayStereoOperation(config, display, stereo, forceBlueLine), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGDisplayConfigRef, - CGDirectDisplayID, - CGDisplayModeRef, - CFDictionaryRef, - ) ->(symbol: 'CGConfigureDisplayWithDisplayMode') -external int _CGConfigureDisplayWithDisplayMode( - CGDisplayConfigRef config, - int display, - CGDisplayModeRef mode, - CFDictionaryRef options, -); - -CGError CGConfigureDisplayWithDisplayMode( - CGDisplayConfigRef config, - DartCGDirectDisplayID display, - CGDisplayModeRef mode, - CFDictionaryRef options, -) { - return CGError.fromValue( - _CGConfigureDisplayWithDisplayMode(config, display, mode, options), - ); -} - -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ffi.Int, - ) ->() -external void CGContextAddArc( - CGContextRef c, - double x, - double y, - double radius, - double startAngle, - double endAngle, - int clockwise, -); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextAddArcToPoint( - CGContextRef c, - double x1, - double y1$1, - double x2, - double y2, - double radius, -); - -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external void CGContextAddCurveToPoint( - CGContextRef c, - double cp1x, - double cp1y, - double cp2x, - double cp2y, - double x, - double y, -); - -@ffi.Native() -external void CGContextAddEllipseInRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native() -external void CGContextAddLineToPoint(CGContextRef c, double x, double y); - -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) ->() -external void CGContextAddLines( - CGContextRef c, - ffi.Pointer points, - int count, -); - -@ffi.Native() -external void CGContextAddPath(CGContextRef c, CGPathRef path); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextAddQuadCurveToPoint( - CGContextRef c, - double cpx, - double cpy, - double x, - double y, -); - -@ffi.Native() -external void CGContextAddRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) ->() -external void CGContextAddRects( - CGContextRef c, - ffi.Pointer rects, - int count, -); - -@ffi.Native)>() -external void CGContextBeginPage( - CGContextRef c, - ffi.Pointer mediaBox, -); - -@ffi.Native() -external void CGContextBeginPath(CGContextRef c); - -@ffi.Native() -external void CGContextBeginTransparencyLayer( - CGContextRef c, - CFDictionaryRef auxiliaryInfo, -); - -@ffi.Native() -external void CGContextBeginTransparencyLayerWithRect( - CGContextRef c, - objc.CGRect rect, - CFDictionaryRef auxInfo, -); - -@ffi.Native() -external void CGContextClearRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native() -external void CGContextClip(CGContextRef c); - -@ffi.Native() -external void CGContextClipToMask( - CGContextRef c, - objc.CGRect rect, - CGImageRef mask, -); - -@ffi.Native() -external void CGContextClipToRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) ->() -external void CGContextClipToRects( - CGContextRef c, - ffi.Pointer rects, - int count, -); - -@ffi.Native() -external void CGContextClosePath(CGContextRef c); - -@ffi.Native() -external void CGContextConcatCTM(CGContextRef c, CGAffineTransform transform); - -@ffi.Native() -external objc.CGPoint CGContextConvertPointToDeviceSpace( - CGContextRef c, - objc.CGPoint point, -); - -@ffi.Native() -external objc.CGPoint CGContextConvertPointToUserSpace( - CGContextRef c, - objc.CGPoint point, -); - -@ffi.Native() -external objc.CGRect CGContextConvertRectToDeviceSpace( - CGContextRef c, - objc.CGRect rect, -); - -@ffi.Native() -external objc.CGRect CGContextConvertRectToUserSpace( - CGContextRef c, - objc.CGRect rect, -); - -@ffi.Native() -external objc.CGSize CGContextConvertSizeToDeviceSpace( - CGContextRef c, - objc.CGSize size, -); - -@ffi.Native() -external objc.CGSize CGContextConvertSizeToUserSpace( - CGContextRef c, - objc.CGSize size, -); - -@ffi.Native() -external CGPathRef CGContextCopyPath(CGContextRef c); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGGradientRef, objc.CGPoint, CGFloat) ->() -external void CGContextDrawConicGradient( - CGContextRef c, - CGGradientRef gradient, - objc.CGPoint center, - double angle, -); - -@ffi.Native() -external void CGContextDrawImage( - CGContextRef c, - objc.CGRect rect, - CGImageRef image, -); - -@ffi.Native< - ffi.Bool Function( - CGContextRef, - objc.CGRect, - CGImageRef, - ffi.Uint32, - CFDictionaryRef, - ) ->(symbol: 'CGContextDrawImageApplyingToneMapping') -external bool _CGContextDrawImageApplyingToneMapping( - CGContextRef c, - objc.CGRect r, - CGImageRef image, - int method, - CFDictionaryRef options, -); - -bool CGContextDrawImageApplyingToneMapping( - CGContextRef c, - objc.CGRect r, - CGImageRef image, - CGToneMapping method, - CFDictionaryRef options, -) { - return _CGContextDrawImageApplyingToneMapping( - c, - r, - image, - method.value, - options, - ); -} - -@ffi.Native() -external void CGContextDrawLayerAtPoint( - CGContextRef context, - objc.CGPoint point, - CGLayerRef layer, -); - -@ffi.Native() -external void CGContextDrawLayerInRect( - CGContextRef context, - objc.CGRect rect, - CGLayerRef layer, -); - -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGGradientRef, - objc.CGPoint, - objc.CGPoint, - ffi.Uint32, - ) ->() -external void CGContextDrawLinearGradient( - CGContextRef c, - CGGradientRef gradient, - objc.CGPoint startPoint, - objc.CGPoint endPoint, - int options, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(CGContextRef, objc.CGRect, CGPDFDocumentRef, ffi.Int) ->() -external void CGContextDrawPDFDocument( - CGContextRef c, - objc.CGRect rect, - CGPDFDocumentRef document, - int page, -); - -@ffi.Native() -external void CGContextDrawPDFPage(CGContextRef c, CGPDFPageRef page); - -@ffi.Native( - symbol: 'CGContextDrawPath', -) -external void _CGContextDrawPath(CGContextRef c, int mode); - -void CGContextDrawPath(CGContextRef c, CGPathDrawingMode mode) { - return _CGContextDrawPath(c, mode.value); -} - -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGGradientRef, - objc.CGPoint, - CGFloat, - objc.CGPoint, - CGFloat, - ffi.Uint32, - ) ->() -external void CGContextDrawRadialGradient( - CGContextRef c, - CGGradientRef gradient, - objc.CGPoint startCenter, - double startRadius, - objc.CGPoint endCenter, - double endRadius, - int options, -); - -@ffi.Native() -external void CGContextDrawShading(CGContextRef c, CGShadingRef shading); - -@ffi.Native() -external void CGContextDrawTiledImage( - CGContextRef c, - objc.CGRect rect, - CGImageRef image, -); - -@ffi.Native() -external void CGContextEOClip(CGContextRef c); - -@ffi.Native() -external void CGContextEOFillPath(CGContextRef c); - -@ffi.Native() -external void CGContextEndPage(CGContextRef c); - -@ffi.Native() -external void CGContextEndTransparencyLayer(CGContextRef c); - -@ffi.Native() -external void CGContextFillEllipseInRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native() -external void CGContextFillPath(CGContextRef c); - -@ffi.Native() -external void CGContextFillRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) ->() -external void CGContextFillRects( - CGContextRef c, - ffi.Pointer rects, - int count, -); - -@ffi.Native() -external void CGContextFlush(CGContextRef c); - -@ffi.Native() -external CGAffineTransform CGContextGetCTM(CGContextRef c); - -@ffi.Native() -external objc.CGRect CGContextGetClipBoundingBox(CGContextRef c); - -@ffi.Native() -external CGContentToneMappingInfo CGContextGetContentToneMappingInfo( - CGContextRef c, -); - -@ffi.Native() -external double CGContextGetEDRTargetHeadroom(CGContextRef c); - -@ffi.Native( - symbol: 'CGContextGetInterpolationQuality', -) -external int _CGContextGetInterpolationQuality(CGContextRef c); - -CGInterpolationQuality CGContextGetInterpolationQuality(CGContextRef c) { - return CGInterpolationQuality.fromValue(_CGContextGetInterpolationQuality(c)); -} - -@ffi.Native() -external objc.CGRect CGContextGetPathBoundingBox(CGContextRef c); - -@ffi.Native() -external objc.CGPoint CGContextGetPathCurrentPoint(CGContextRef c); - -@ffi.Native() -external CGAffineTransform CGContextGetTextMatrix(CGContextRef c); - -@ffi.Native() -external objc.CGPoint CGContextGetTextPosition(CGContextRef c); - -@ffi.Native() -external int CGContextGetTypeID(); - -@ffi.Native() -external CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform( - CGContextRef c, -); - -@ffi.Native() -external bool CGContextIsPathEmpty(CGContextRef c); - -@ffi.Native() -external void CGContextMoveToPoint(CGContextRef c, double x, double y); - -@ffi.Native( - symbol: 'CGContextPathContainsPoint', -) -external bool _CGContextPathContainsPoint( - CGContextRef c, - objc.CGPoint point, - int mode, -); - -bool CGContextPathContainsPoint( - CGContextRef c, - objc.CGPoint point, - CGPathDrawingMode mode, -) { - return _CGContextPathContainsPoint(c, point, mode.value); -} - -@ffi.Native() -external void CGContextRelease(CGContextRef c); - -@ffi.Native() -external void CGContextReplacePathWithStrokedPath(CGContextRef c); - -@ffi.Native() -external void CGContextResetClip(CGContextRef c); - -@ffi.Native() -external void CGContextRestoreGState(CGContextRef c); - -@ffi.Native() -external CGContextRef CGContextRetain(CGContextRef c); - -@ffi.Native() -external void CGContextRotateCTM(CGContextRef c, double angle); - -@ffi.Native() -external void CGContextSaveGState(CGContextRef c); - -@ffi.Native() -external void CGContextScaleCTM(CGContextRef c, double sx, double sy); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, CGFloat, ffi.Int32) ->(symbol: 'CGContextSelectFont') -external void _CGContextSelectFont( - CGContextRef c, - ffi.Pointer name, - double size, - int textEncoding, -); - -void CGContextSelectFont( - CGContextRef c, - ffi.Pointer name, - DartCGFloat size, - CGTextEncoding textEncoding, -) { - return _CGContextSelectFont(c, name, size, textEncoding.value); -} - -@ffi.Native() -external void CGContextSetAllowsAntialiasing( - CGContextRef c, - bool allowsAntialiasing, -); - -@ffi.Native() -external void CGContextSetAllowsFontSmoothing( - CGContextRef c, - bool allowsFontSmoothing, -); - -@ffi.Native() -external void CGContextSetAllowsFontSubpixelPositioning( - CGContextRef c, - bool allowsFontSubpixelPositioning, -); - -@ffi.Native() -external void CGContextSetAllowsFontSubpixelQuantization( - CGContextRef c, - bool allowsFontSubpixelQuantization, -); - -@ffi.Native() -external void CGContextSetAlpha(CGContextRef c, double alpha); - -@ffi.Native( - symbol: 'CGContextSetBlendMode', -) -external void _CGContextSetBlendMode(CGContextRef c, int mode); - -void CGContextSetBlendMode(CGContextRef c, CGBlendMode mode) { - return _CGContextSetBlendMode(c, mode.value); -} - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextSetCMYKFillColor( - CGContextRef c, - double cyan, - double magenta, - double yellow, - double black, - double alpha, -); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextSetCMYKStrokeColor( - CGContextRef c, - double cyan, - double magenta, - double yellow, - double black, - double alpha, -); - -@ffi.Native() -external void CGContextSetCharacterSpacing(CGContextRef c, double spacing); - -@ffi.Native() -external void CGContextSetContentToneMappingInfo( - CGContextRef c, - CGContentToneMappingInfo info, -); - -@ffi.Native() -external bool CGContextSetEDRTargetHeadroom(CGContextRef c, double headroom); - -@ffi.Native)>() -external void CGContextSetFillColor( - CGContextRef c, - ffi.Pointer components, -); - -@ffi.Native() -external void CGContextSetFillColorSpace(CGContextRef c, CGColorSpaceRef space); - -@ffi.Native() -external void CGContextSetFillColorWithColor(CGContextRef c, CGColorRef color); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGPatternRef, ffi.Pointer) ->() -external void CGContextSetFillPattern( - CGContextRef c, - CGPatternRef pattern, - ffi.Pointer components, -); - -@ffi.Native() -external void CGContextSetFlatness(CGContextRef c, double flatness); - -@ffi.Native() -external void CGContextSetFont(CGContextRef c, CGFontRef font); - -@ffi.Native() -external void CGContextSetFontSize(CGContextRef c, double size); - -@ffi.Native() -external void CGContextSetGrayFillColor( - CGContextRef c, - double gray, - double alpha, -); - -@ffi.Native() -external void CGContextSetGrayStrokeColor( - CGContextRef c, - double gray, - double alpha, -); - -@ffi.Native( - symbol: 'CGContextSetInterpolationQuality', -) -external void _CGContextSetInterpolationQuality(CGContextRef c, int quality); - -void CGContextSetInterpolationQuality( - CGContextRef c, - CGInterpolationQuality quality, -) { - return _CGContextSetInterpolationQuality(c, quality.value); -} - -@ffi.Native( - symbol: 'CGContextSetLineCap', -) -external void _CGContextSetLineCap(CGContextRef c, int cap); - -void CGContextSetLineCap(CGContextRef c, CGLineCap cap) { - return _CGContextSetLineCap(c, cap.value); -} - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, ffi.Pointer, ffi.Size) ->() -external void CGContextSetLineDash( - CGContextRef c, - double phase, - ffi.Pointer lengths, - int count, -); - -@ffi.Native( - symbol: 'CGContextSetLineJoin', -) -external void _CGContextSetLineJoin(CGContextRef c, int join); - -void CGContextSetLineJoin(CGContextRef c, CGLineJoin join) { - return _CGContextSetLineJoin(c, join.value); -} - -@ffi.Native() -external void CGContextSetLineWidth(CGContextRef c, double width); - -@ffi.Native() -external void CGContextSetMiterLimit(CGContextRef c, double limit); - -@ffi.Native() -external void CGContextSetPatternPhase(CGContextRef c, objc.CGSize phase); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextSetRGBFillColor( - CGContextRef c, - double red, - double green, - double blue, - double alpha, -); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextSetRGBStrokeColor( - CGContextRef c, - double red, - double green, - double blue, - double alpha, -); - -@ffi.Native( - symbol: 'CGContextSetRenderingIntent', -) -external void _CGContextSetRenderingIntent(CGContextRef c, int intent); - -void CGContextSetRenderingIntent( - CGContextRef c, - CGColorRenderingIntent intent, -) { - return _CGContextSetRenderingIntent(c, intent.value); -} - -@ffi.Native() -external void CGContextSetShadow( - CGContextRef c, - objc.CGSize offset, - double blur, -); - -@ffi.Native() -external void CGContextSetShadowWithColor( - CGContextRef c, - objc.CGSize offset, - double blur, - CGColorRef color, -); - -@ffi.Native() -external void CGContextSetShouldAntialias(CGContextRef c, bool shouldAntialias); - -@ffi.Native() -external void CGContextSetShouldSmoothFonts( - CGContextRef c, - bool shouldSmoothFonts, -); - -@ffi.Native() -external void CGContextSetShouldSubpixelPositionFonts( - CGContextRef c, - bool shouldSubpixelPositionFonts, -); - -@ffi.Native() -external void CGContextSetShouldSubpixelQuantizeFonts( - CGContextRef c, - bool shouldSubpixelQuantizeFonts, -); - -@ffi.Native)>() -external void CGContextSetStrokeColor( - CGContextRef c, - ffi.Pointer components, -); - -@ffi.Native() -external void CGContextSetStrokeColorSpace( - CGContextRef c, - CGColorSpaceRef space, -); - -@ffi.Native() -external void CGContextSetStrokeColorWithColor( - CGContextRef c, - CGColorRef color, -); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGPatternRef, ffi.Pointer) ->() -external void CGContextSetStrokePattern( - CGContextRef c, - CGPatternRef pattern, - ffi.Pointer components, -); - -@ffi.Native( - symbol: 'CGContextSetTextDrawingMode', -) -external void _CGContextSetTextDrawingMode(CGContextRef c, int mode); - -void CGContextSetTextDrawingMode(CGContextRef c, CGTextDrawingMode mode) { - return _CGContextSetTextDrawingMode(c, mode.value); -} - -@ffi.Native() -external void CGContextSetTextMatrix(CGContextRef c, CGAffineTransform t); - -@ffi.Native() -external void CGContextSetTextPosition(CGContextRef c, double x, double y); - -@Deprecated('No longer supported') -@ffi.Native, ffi.Size)>() -external void CGContextShowGlyphs( - CGContextRef c, - ffi.Pointer g, - int count, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGFloat, - CGFloat, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGContextShowGlyphsAtPoint( - CGContextRef c, - double x, - double y, - ffi.Pointer glyphs, - int count, -); - -@ffi.Native< - ffi.Void Function( - CGContextRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGContextShowGlyphsAtPositions( - CGContextRef c, - ffi.Pointer glyphs, - ffi.Pointer Lpositions, - int count, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - CGContextRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGContextShowGlyphsWithAdvances( - CGContextRef c, - ffi.Pointer glyphs, - ffi.Pointer advances, - int count, -); - -@Deprecated('No longer supported') -@ffi.Native, ffi.Size)>() -external void CGContextShowText( - CGContextRef c, - ffi.Pointer string, - int length, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGFloat, - CGFloat, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGContextShowTextAtPoint( - CGContextRef c, - double x, - double y, - ffi.Pointer string, - int length, -); - -@ffi.Native() -external void CGContextStrokeEllipseInRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) ->() -external void CGContextStrokeLineSegments( - CGContextRef c, - ffi.Pointer points, - int count, -); - -@ffi.Native() -external void CGContextStrokePath(CGContextRef c); - -@ffi.Native() -external void CGContextStrokeRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native() -external void CGContextStrokeRectWithWidth( - CGContextRef c, - objc.CGRect rect, - double width, -); - -@ffi.Native() -external void CGContextSynchronize(CGContextRef c); - -@ffi.Native() -external void CGContextSynchronizeAttributes(CGContextRef c); - -@ffi.Native() -external void CGContextTranslateCTM(CGContextRef c, double tx, double ty); - -@ffi.Native< - ffi.Bool Function( - ffi.Size, - ffi.Size, - ffi.Pointer, - CGColorDataFormat, - ffi.Pointer, - CGColorDataFormat, - CFDictionaryRef, - ) ->() -external bool CGConvertColorDataWithFormat( - int width, - int height, - ffi.Pointer dst_data, - CGColorDataFormat dst_format, - ffi.Pointer src_data, - CGColorDataFormat src_format, - CFDictionaryRef options, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int CGCursorIsDrawnInFramebuffer(); - -@Deprecated('No longer supported') -@ffi.Native() -external int CGCursorIsVisible(); - -@ffi.Native< - CGDataConsumerRef Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGDataConsumerRef CGDataConsumerCreate( - ffi.Pointer info, - ffi.Pointer cbks, -); - -@ffi.Native() -external CGDataConsumerRef CGDataConsumerCreateWithCFData( - CFMutableDataRef data, -); - -@ffi.Native() -external CGDataConsumerRef CGDataConsumerCreateWithURL(CFURLRef url); - -@ffi.Native() -external int CGDataConsumerGetTypeID(); - -@ffi.Native() -external void CGDataConsumerRelease(CGDataConsumerRef consumer); - -@ffi.Native() -external CGDataConsumerRef CGDataConsumerRetain(CGDataConsumerRef consumer); - -@ffi.Native() -external CFDataRef CGDataProviderCopyData(CGDataProviderRef provider); - -@ffi.Native< - CGDataProviderRef Function( - ffi.Pointer, - off_t, - ffi.Pointer, - ) ->() -external CGDataProviderRef CGDataProviderCreateDirect( - ffi.Pointer info, - int size, - ffi.Pointer callbacks, -); - -@ffi.Native< - CGDataProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGDataProviderRef CGDataProviderCreateSequential( - ffi.Pointer info, - ffi.Pointer callbacks, -); - -@ffi.Native() -external CGDataProviderRef CGDataProviderCreateWithCFData(CFDataRef data); - -@ffi.Native< - CGDataProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - CGDataProviderReleaseDataCallback, - ) ->() -external CGDataProviderRef CGDataProviderCreateWithData( - ffi.Pointer info, - ffi.Pointer data, - int size, - CGDataProviderReleaseDataCallback releaseData, -); - -@ffi.Native)>() -external CGDataProviderRef CGDataProviderCreateWithFilename( - ffi.Pointer filename, -); - -@ffi.Native() -external CGDataProviderRef CGDataProviderCreateWithURL(CFURLRef url); - -@ffi.Native Function(CGDataProviderRef)>() -external ffi.Pointer CGDataProviderGetInfo( - CGDataProviderRef provider, -); - -@ffi.Native() -external int CGDataProviderGetTypeID(); - -@ffi.Native() -external void CGDataProviderRelease(CGDataProviderRef provider); - -@ffi.Native() -external CGDataProviderRef CGDataProviderRetain(CGDataProviderRef provider); - -@ffi.Native Function(CGDirectDisplayID)>( - symbol: 'CGDirectDisplayCopyCurrentMetalDevice', -) -external ffi.Pointer -_CGDirectDisplayCopyCurrentMetalDevice(int display); - -MTLDevice? CGDirectDisplayCopyCurrentMetalDevice( - DartCGDirectDisplayID display, -) { - return _CGDirectDisplayCopyCurrentMetalDevice(display).address == 0 - ? null - : MTLDevice.fromPointer( - _CGDirectDisplayCopyCurrentMetalDevice(display), - retain: false, - release: true, - ); -} - -@Deprecated('No longer supported') -@ffi.Native() -external CFArrayRef CGDisplayAvailableModes(int dsp); - -@Deprecated('No longer supported') -@ffi.Native< - CFDictionaryRef Function( - CGDirectDisplayID, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->() -external CFDictionaryRef CGDisplayBestModeForParameters( - int display, - int bitsPerPixel, - int width, - int height, - ffi.Pointer exactMatch, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDictionaryRef Function( - CGDirectDisplayID, - ffi.Size, - ffi.Size, - ffi.Size, - CGRefreshRate, - ffi.Pointer, - ) ->() -external CFDictionaryRef CGDisplayBestModeForParametersAndRefreshRate( - int display, - int bitsPerPixel, - int width, - int height, - double refreshRate, - ffi.Pointer exactMatch, -); - -@ffi.Native() -external objc.CGRect CGDisplayBounds(int display); - -@ffi.Native(symbol: 'CGDisplayCapture') -external int _CGDisplayCapture(int display); - -CGError CGDisplayCapture(DartCGDirectDisplayID display) { - return CGError.fromValue(_CGDisplayCapture(display)); -} - -@ffi.Native( - symbol: 'CGDisplayCaptureWithOptions', -) -external int _CGDisplayCaptureWithOptions(int display, int options); - -CGError CGDisplayCaptureWithOptions( - DartCGDirectDisplayID display, - int options, -) { - return CGError.fromValue(_CGDisplayCaptureWithOptions(display, options)); -} - -@ffi.Native() -external CFArrayRef CGDisplayCopyAllDisplayModes( - int display, - CFDictionaryRef options, -); - -@ffi.Native() -external CGColorSpaceRef CGDisplayCopyColorSpace(int display); - -@ffi.Native() -external CGDisplayModeRef CGDisplayCopyDisplayMode(int display); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external CGImageRef CGDisplayCreateImage(int displayID); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external CGImageRef CGDisplayCreateImageForRect(int display, objc.CGRect rect); - -@ffi.Native() -external CFUUIDRef CGDisplayCreateUUIDFromDisplayID(int displayID); - -@Deprecated('No longer supported') -@ffi.Native() -external CFDictionaryRef CGDisplayCurrentMode(int display); - -@ffi.Native< - ffi.Int32 Function( - CGDisplayFadeReservationToken, - CGDisplayFadeInterval, - CGDisplayBlendFraction, - CGDisplayBlendFraction, - ffi.Float, - ffi.Float, - ffi.Float, - boolean_t, - ) ->(symbol: 'CGDisplayFade') -external int _CGDisplayFade( - int token, - double duration, - double startBlend, - double endBlend, - double redBlend, - double greenBlend, - double blueBlend, - int synchronous, -); - -CGError CGDisplayFade( - DartCGDisplayFadeReservationToken token, - DartCGDisplayFadeInterval duration, - DartCGDisplayBlendFraction startBlend, - DartCGDisplayBlendFraction endBlend, - double redBlend, - double greenBlend, - double blueBlend, - Dartboolean_t synchronous, -) { - return CGError.fromValue( - _CGDisplayFade( - token, - duration, - startBlend, - endBlend, - redBlend, - greenBlend, - blueBlend, - synchronous, - ), - ); -} - -@Deprecated('No longer supported') -@ffi.Native() -external int CGDisplayFadeOperationInProgress(); - -@ffi.Native() -external int CGDisplayGammaTableCapacity(int display); - -@ffi.Native() -external int CGDisplayGetDisplayIDFromUUID(CFUUIDRef uuid); - -@ffi.Native() -external CGContextRef CGDisplayGetDrawingContext(int display); - -@ffi.Native( - symbol: 'CGDisplayHideCursor', -) -external int _CGDisplayHideCursor(int display); - -CGError CGDisplayHideCursor(DartCGDirectDisplayID display) { - return CGError.fromValue(_CGDisplayHideCursor(display)); -} - -@ffi.Native() -external int CGDisplayIDToOpenGLDisplayMask(int display); - -@Deprecated('No longer supported') -@ffi.Native() -external int CGDisplayIOServicePort(int display); - -@ffi.Native() -external int CGDisplayIsActive(int display); - -@ffi.Native() -external int CGDisplayIsAlwaysInMirrorSet(int display); - -@ffi.Native() -external int CGDisplayIsAsleep(int display); - -@ffi.Native() -external int CGDisplayIsBuiltin(int display); - -@Deprecated('No longer supported') -@ffi.Native() -external int CGDisplayIsCaptured(int display); - -@ffi.Native() -external int CGDisplayIsInHWMirrorSet(int display); - -@ffi.Native() -external int CGDisplayIsInMirrorSet(int display); - -@ffi.Native() -external int CGDisplayIsMain(int display); - -@ffi.Native() -external int CGDisplayIsOnline(int display); - -@ffi.Native() -external int CGDisplayIsStereo(int display); - -@ffi.Native() -external int CGDisplayMirrorsDisplay(int display); - -@Deprecated('No longer supported') -@ffi.Native() -external CFStringRef CGDisplayModeCopyPixelEncoding(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetHeight(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetIODisplayModeID(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetIOFlags(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetPixelHeight(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetPixelWidth(CGDisplayModeRef mode); - -@ffi.Native() -external double CGDisplayModeGetRefreshRate(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetTypeID(); - -@ffi.Native() -external int CGDisplayModeGetWidth(CGDisplayModeRef mode); - -@ffi.Native() -external bool CGDisplayModeIsUsableForDesktopGUI(CGDisplayModeRef mode); - -@ffi.Native() -external void CGDisplayModeRelease(CGDisplayModeRef mode); - -@ffi.Native() -external CGDisplayModeRef CGDisplayModeRetain(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModelNumber(int display); - -@ffi.Native( - symbol: 'CGDisplayMoveCursorToPoint', -) -external int _CGDisplayMoveCursorToPoint(int display, objc.CGPoint point); - -CGError CGDisplayMoveCursorToPoint( - DartCGDirectDisplayID display, - objc.CGPoint point, -) { - return CGError.fromValue(_CGDisplayMoveCursorToPoint(display, point)); -} - -@ffi.Native() -external int CGDisplayPixelsHigh(int display); - -@ffi.Native() -external int CGDisplayPixelsWide(int display); - -@ffi.Native() -external int CGDisplayPrimaryDisplay(int display); - -@ffi.Native< - ffi.Int32 Function(CGDisplayReconfigurationCallBack, ffi.Pointer) ->(symbol: 'CGDisplayRegisterReconfigurationCallback') -external int _CGDisplayRegisterReconfigurationCallback( - CGDisplayReconfigurationCallBack callback, - ffi.Pointer userInfo, -); - -CGError CGDisplayRegisterReconfigurationCallback( - CGDisplayReconfigurationCallBack callback, - ffi.Pointer userInfo, -) { - return CGError.fromValue( - _CGDisplayRegisterReconfigurationCallback(callback, userInfo), - ); -} - -@ffi.Native(symbol: 'CGDisplayRelease') -external int _CGDisplayRelease(int display); - -CGError CGDisplayRelease(DartCGDirectDisplayID display) { - return CGError.fromValue(_CGDisplayRelease(display)); -} - -@ffi.Native< - ffi.Int32 Function(CGDisplayReconfigurationCallBack, ffi.Pointer) ->(symbol: 'CGDisplayRemoveReconfigurationCallback') -external int _CGDisplayRemoveReconfigurationCallback( - CGDisplayReconfigurationCallBack callback, - ffi.Pointer userInfo, -); - -CGError CGDisplayRemoveReconfigurationCallback( - CGDisplayReconfigurationCallBack callback, - ffi.Pointer userInfo, -) { - return CGError.fromValue( - _CGDisplayRemoveReconfigurationCallback(callback, userInfo), - ); -} - -@ffi.Native() -external void CGDisplayRestoreColorSyncSettings(); - -@ffi.Native() -external double CGDisplayRotation(int display); - -@ffi.Native() -external objc.CGSize CGDisplayScreenSize(int display); - -@ffi.Native() -external int CGDisplaySerialNumber(int display); - -@ffi.Native< - ffi.Int32 Function(CGDirectDisplayID, CGDisplayModeRef, CFDictionaryRef) ->(symbol: 'CGDisplaySetDisplayMode') -external int _CGDisplaySetDisplayMode( - int display, - CGDisplayModeRef mode, - CFDictionaryRef options, -); - -CGError CGDisplaySetDisplayMode( - DartCGDirectDisplayID display, - CGDisplayModeRef mode, - CFDictionaryRef options, -) { - return CGError.fromValue(_CGDisplaySetDisplayMode(display, mode, options)); -} - -@ffi.Native< - ffi.Int32 Function(CGDirectDisplayID, boolean_t, boolean_t, ffi.Uint32) ->(symbol: 'CGDisplaySetStereoOperation') -external int _CGDisplaySetStereoOperation( - int display, - int stereo, - int forceBlueLine, - int option, -); - -CGError CGDisplaySetStereoOperation( - DartCGDirectDisplayID display, - Dartboolean_t stereo, - Dartboolean_t forceBlueLine, - int option, -) { - return CGError.fromValue( - _CGDisplaySetStereoOperation(display, stereo, forceBlueLine, option), - ); -} - -@ffi.Native( - symbol: 'CGDisplayShowCursor', -) -external int _CGDisplayShowCursor(int display); - -CGError CGDisplayShowCursor(DartCGDirectDisplayID display) { - return CGError.fromValue(_CGDisplayShowCursor(display)); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - CGDisplayStreamRef Function( - CGDirectDisplayID, - ffi.Size, - ffi.Size, - ffi.Int32, - CFDictionaryRef, - CGDisplayStreamFrameAvailableHandler, - ) ->(symbol: 'CGDisplayStreamCreate') -external CGDisplayStreamRef _CGDisplayStreamCreate( - int display, - int outputWidth, - int outputHeight, - int pixelFormat, - CFDictionaryRef properties, - CGDisplayStreamFrameAvailableHandler handler, -); - -CGDisplayStreamRef CGDisplayStreamCreate( - DartCGDirectDisplayID display, - int outputWidth, - int outputHeight, - int pixelFormat, - CFDictionaryRef properties, - DartCGDisplayStreamFrameAvailableHandler? handler, -) { - final _$$ref = handler?.ref; - return _CGDisplayStreamCreate( - display, - outputWidth, - outputHeight, - pixelFormat, - properties, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - CGDisplayStreamRef Function( - CGDirectDisplayID, - ffi.Size, - ffi.Size, - ffi.Int32, - CFDictionaryRef, - dispatch_queue_t, - CGDisplayStreamFrameAvailableHandler, - ) ->(symbol: 'CGDisplayStreamCreateWithDispatchQueue') -external CGDisplayStreamRef _CGDisplayStreamCreateWithDispatchQueue( - int display, - int outputWidth, - int outputHeight, - int pixelFormat, - CFDictionaryRef properties, - dispatch_queue_t queue, - CGDisplayStreamFrameAvailableHandler handler, -); - -CGDisplayStreamRef CGDisplayStreamCreateWithDispatchQueue( - DartCGDirectDisplayID display, - int outputWidth, - int outputHeight, - int pixelFormat, - CFDictionaryRef properties, - Dartdispatch_queue_t queue, - DartCGDisplayStreamFrameAvailableHandler? handler, -) { - final _$$ref = queue.ref; - final _$$ref$1 = handler?.ref; - return _CGDisplayStreamCreateWithDispatchQueue( - display, - outputWidth, - outputHeight, - pixelFormat, - properties, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external CFRunLoopSourceRef CGDisplayStreamGetRunLoopSource( - CGDisplayStreamRef displayStream, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external int CGDisplayStreamGetTypeID(); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native( - symbol: 'CGDisplayStreamStart', -) -external int _CGDisplayStreamStart(CGDisplayStreamRef displayStream); - -CGError CGDisplayStreamStart(CGDisplayStreamRef displayStream) { - return CGError.fromValue(_CGDisplayStreamStart(displayStream)); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native( - symbol: 'CGDisplayStreamStop', -) -external int _CGDisplayStreamStop(CGDisplayStreamRef displayStream); - -CGError CGDisplayStreamStop(CGDisplayStreamRef displayStream) { - return CGError.fromValue(_CGDisplayStreamStop(displayStream)); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - CGDisplayStreamUpdateRef Function( - CGDisplayStreamUpdateRef, - CGDisplayStreamUpdateRef, - ) ->() -external CGDisplayStreamUpdateRef CGDisplayStreamUpdateCreateMergedUpdate( - CGDisplayStreamUpdateRef firstUpdate, - CGDisplayStreamUpdateRef secondUpdate, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external int CGDisplayStreamUpdateGetDropCount( - CGDisplayStreamUpdateRef updateRef, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - ffi.Void Function( - CGDisplayStreamUpdateRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CGDisplayStreamUpdateGetMovedRectsDelta( - CGDisplayStreamUpdateRef updateRef, - ffi.Pointer dx, - ffi.Pointer dy, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - ffi.Pointer Function( - CGDisplayStreamUpdateRef, - ffi.Int32, - ffi.Pointer, - ) ->(symbol: 'CGDisplayStreamUpdateGetRects') -external ffi.Pointer _CGDisplayStreamUpdateGetRects( - CGDisplayStreamUpdateRef updateRef, - int rectType, - ffi.Pointer rectCount, -); - -ffi.Pointer CGDisplayStreamUpdateGetRects( - CGDisplayStreamUpdateRef updateRef, - CGDisplayStreamUpdateRectType rectType, - ffi.Pointer rectCount, -) { - return _CGDisplayStreamUpdateGetRects(updateRef, rectType.value, rectCount); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external int CGDisplayStreamUpdateGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGDisplaySwitchToMode', -) -external int _CGDisplaySwitchToMode(int display, CFDictionaryRef mode); - -CGError CGDisplaySwitchToMode( - DartCGDirectDisplayID display, - CFDictionaryRef mode, -) { - return CGError.fromValue(_CGDisplaySwitchToMode(display, mode)); -} - -@ffi.Native() -external int CGDisplayUnitNumber(int display); - -@ffi.Native() -external int CGDisplayUsesOpenGLAcceleration(int display); - -@ffi.Native() -external int CGDisplayVendorNumber(int display); - -@ffi.Native() -external CFDictionaryRef CGEXRToneMappingGammaGetDefaultOptions(); - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGEnableEventStateCombining', -) -external int _CGEnableEventStateCombining(int combineState); - -CGError CGEnableEventStateCombining(Dartboolean_t combineState) { - return CGError.fromValue(_CGEnableEventStateCombining(combineState)); -} - -@ffi.Native() -external void CGErrorSetCallback(CGErrorCallback callback); - -@ffi.Native() -external CGEventRef CGEventCreate(CGEventSourceRef source); - -@ffi.Native() -external CGEventRef CGEventCreateCopy(CGEventRef event); - -@ffi.Native() -external CFDataRef CGEventCreateData( - CFAllocatorRef allocator, - CGEventRef event, -); - -@ffi.Native() -external CGEventRef CGEventCreateFromData( - CFAllocatorRef allocator, - CFDataRef data, -); - -@ffi.Native() -external CGEventRef CGEventCreateKeyboardEvent( - CGEventSourceRef source, - int virtualKey, - bool keyDown, -); - -@ffi.Native< - CGEventRef Function(CGEventSourceRef, ffi.Uint32, objc.CGPoint, ffi.Uint32) ->(symbol: 'CGEventCreateMouseEvent') -external CGEventRef _CGEventCreateMouseEvent( - CGEventSourceRef source, - int mouseType, - objc.CGPoint mouseCursorPosition, - int mouseButton, -); - -CGEventRef CGEventCreateMouseEvent( - CGEventSourceRef source, - CGEventType mouseType, - objc.CGPoint mouseCursorPosition, - CGMouseButton mouseButton, -) { - return _CGEventCreateMouseEvent( - source, - mouseType.value, - mouseCursorPosition, - mouseButton.value, - ); -} - -@ffi.Native< - CGEventRef Function(CGEventSourceRef, ffi.Uint32, ffi.Uint32, ffi.Int32) ->(symbol: 'CGEventCreateScrollWheelEvent') -external CGEventRef _CGEventCreateScrollWheelEvent( - CGEventSourceRef source, - int units, - int wheelCount, - int wheel1, -); - -CGEventRef CGEventCreateScrollWheelEvent( - CGEventSourceRef source, - CGScrollEventUnit units, - int wheelCount, - int wheel1, -) { - return _CGEventCreateScrollWheelEvent( - source, - units.value, - wheelCount, - wheel1, - ); -} - -@ffi.Native< - CGEventRef Function( - CGEventSourceRef, - ffi.Uint32, - ffi.Uint32, - ffi.Int32, - ffi.Int32, - ffi.Int32, - ) ->(symbol: 'CGEventCreateScrollWheelEvent2') -external CGEventRef _CGEventCreateScrollWheelEvent2( - CGEventSourceRef source, - int units, - int wheelCount, - int wheel1, - int wheel2, - int wheel3, -); - -CGEventRef CGEventCreateScrollWheelEvent2( - CGEventSourceRef source, - CGScrollEventUnit units, - int wheelCount, - int wheel1, - int wheel2, - int wheel3, -) { - return _CGEventCreateScrollWheelEvent2( - source, - units.value, - wheelCount, - wheel1, - wheel2, - wheel3, - ); -} - -@ffi.Native() -external CGEventSourceRef CGEventCreateSourceFromEvent(CGEventRef event); - -@ffi.Native( - symbol: 'CGEventGetDoubleValueField', -) -external double _CGEventGetDoubleValueField(CGEventRef event, int field); - -double CGEventGetDoubleValueField(CGEventRef event, CGEventField field) { - return _CGEventGetDoubleValueField(event, field.value); -} - -@ffi.Native() -external int CGEventGetFlags(CGEventRef event); - -@ffi.Native( - symbol: 'CGEventGetIntegerValueField', -) -external int _CGEventGetIntegerValueField(CGEventRef event, int field); - -int CGEventGetIntegerValueField(CGEventRef event, CGEventField field) { - return _CGEventGetIntegerValueField(event, field.value); -} - -@ffi.Native() -external objc.CGPoint CGEventGetLocation(CGEventRef event); - -@ffi.Native() -external int CGEventGetTimestamp(CGEventRef event); - -@ffi.Native(symbol: 'CGEventGetType') -external int _CGEventGetType(CGEventRef event); - -CGEventType CGEventGetType(CGEventRef event) { - return CGEventType.fromValue(_CGEventGetType(event)); -} - -@ffi.Native() -external int CGEventGetTypeID(); - -@ffi.Native() -external objc.CGPoint CGEventGetUnflippedLocation(CGEventRef event); - -@ffi.Native< - ffi.Void Function( - CGEventRef, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CGEventKeyboardGetUnicodeString( - CGEventRef event, - int maxStringLength, - ffi.Pointer actualStringLength, - ffi.Pointer unicodeString, -); - -@ffi.Native)>() -external void CGEventKeyboardSetUnicodeString( - CGEventRef event, - int stringLength, - ffi.Pointer unicodeString, -); - -@ffi.Native(symbol: 'CGEventPost') -external void _CGEventPost(int tap, CGEventRef event); - -void CGEventPost(CGEventTapLocation tap, CGEventRef event) { - return _CGEventPost(tap.value, event); -} - -@ffi.Native, CGEventRef)>() -external void CGEventPostToPSN( - ffi.Pointer processSerialNumber, - CGEventRef event, -); - -@ffi.Native() -external void CGEventPostToPid(int pid, CGEventRef event); - -@ffi.Native( - symbol: 'CGEventSetDoubleValueField', -) -external void _CGEventSetDoubleValueField( - CGEventRef event, - int field, - double value, -); - -void CGEventSetDoubleValueField( - CGEventRef event, - CGEventField field, - double value, -) { - return _CGEventSetDoubleValueField(event, field.value, value); -} - -@ffi.Native() -external void CGEventSetFlags(CGEventRef event, int flags); - -@ffi.Native( - symbol: 'CGEventSetIntegerValueField', -) -external void _CGEventSetIntegerValueField( - CGEventRef event, - int field, - int value, -); - -void CGEventSetIntegerValueField( - CGEventRef event, - CGEventField field, - int value, -) { - return _CGEventSetIntegerValueField(event, field.value, value); -} - -@ffi.Native() -external void CGEventSetLocation(CGEventRef event, objc.CGPoint location); - -@ffi.Native() -external void CGEventSetSource(CGEventRef event, CGEventSourceRef source); - -@ffi.Native() -external void CGEventSetTimestamp(CGEventRef event, int timestamp); - -@ffi.Native(symbol: 'CGEventSetType') -external void _CGEventSetType(CGEventRef event, int type); - -void CGEventSetType(CGEventRef event, CGEventType type) { - return _CGEventSetType(event, type.value); -} - -@ffi.Native( - symbol: 'CGEventSourceButtonState', -) -external bool _CGEventSourceButtonState(int stateID, int button); - -bool CGEventSourceButtonState( - CGEventSourceStateID stateID, - CGMouseButton button, -) { - return _CGEventSourceButtonState(stateID.value, button.value); -} - -@ffi.Native( - symbol: 'CGEventSourceCounterForEventType', -) -external int _CGEventSourceCounterForEventType(int stateID, int eventType); - -int CGEventSourceCounterForEventType( - CGEventSourceStateID stateID, - CGEventType eventType, -) { - return _CGEventSourceCounterForEventType(stateID.value, eventType.value); -} - -@ffi.Native(symbol: 'CGEventSourceCreate') -external CGEventSourceRef _CGEventSourceCreate(int stateID); - -CGEventSourceRef CGEventSourceCreate(CGEventSourceStateID stateID) { - return _CGEventSourceCreate(stateID.value); -} - -@ffi.Native(symbol: 'CGEventSourceFlagsState') -external int _CGEventSourceFlagsState(int stateID); - -int CGEventSourceFlagsState(CGEventSourceStateID stateID) { - return _CGEventSourceFlagsState(stateID.value); -} - -@ffi.Native() -external int CGEventSourceGetKeyboardType(CGEventSourceRef source); - -@ffi.Native( - symbol: 'CGEventSourceGetLocalEventsFilterDuringSuppressionState', -) -external int _CGEventSourceGetLocalEventsFilterDuringSuppressionState( - CGEventSourceRef source, - int state, -); - -int CGEventSourceGetLocalEventsFilterDuringSuppressionState( - CGEventSourceRef source, - CGEventSuppressionState state, -) { - return _CGEventSourceGetLocalEventsFilterDuringSuppressionState( - source, - state.value, - ); -} - -@ffi.Native() -external double CGEventSourceGetLocalEventsSuppressionInterval( - CGEventSourceRef source, -); - -@ffi.Native() -external double CGEventSourceGetPixelsPerLine(CGEventSourceRef source); - -@ffi.Native( - symbol: 'CGEventSourceGetSourceStateID', -) -external int _CGEventSourceGetSourceStateID(CGEventSourceRef source); - -CGEventSourceStateID CGEventSourceGetSourceStateID(CGEventSourceRef source) { - return CGEventSourceStateID.fromValue(_CGEventSourceGetSourceStateID(source)); -} - -@ffi.Native() -external int CGEventSourceGetTypeID(); - -@ffi.Native() -external int CGEventSourceGetUserData(CGEventSourceRef source); - -@ffi.Native( - symbol: 'CGEventSourceKeyState', -) -external bool _CGEventSourceKeyState(int stateID, int key); - -bool CGEventSourceKeyState(CGEventSourceStateID stateID, DartCGKeyCode key) { - return _CGEventSourceKeyState(stateID.value, key); -} - -@ffi.Native( - symbol: 'CGEventSourceSecondsSinceLastEventType', -) -external double _CGEventSourceSecondsSinceLastEventType( - int stateID, - int eventType, -); - -DartCFTimeInterval CGEventSourceSecondsSinceLastEventType( - CGEventSourceStateID stateID, - CGEventType eventType, -) { - return _CGEventSourceSecondsSinceLastEventType( - stateID.value, - eventType.value, - ); -} - -@ffi.Native() -external void CGEventSourceSetKeyboardType( - CGEventSourceRef source, - int keyboardType, -); - -@ffi.Native( - symbol: 'CGEventSourceSetLocalEventsFilterDuringSuppressionState', -) -external void _CGEventSourceSetLocalEventsFilterDuringSuppressionState( - CGEventSourceRef source, - int filter, - int state, -); - -void CGEventSourceSetLocalEventsFilterDuringSuppressionState( - CGEventSourceRef source, - int filter, - CGEventSuppressionState state, -) { - return _CGEventSourceSetLocalEventsFilterDuringSuppressionState( - source, - filter, - state.value, - ); -} - -@ffi.Native() -external void CGEventSourceSetLocalEventsSuppressionInterval( - CGEventSourceRef source, - double seconds, -); - -@ffi.Native() -external void CGEventSourceSetPixelsPerLine( - CGEventSourceRef source, - double pixelsPerLine, -); - -@ffi.Native() -external void CGEventSourceSetUserData(CGEventSourceRef source, int userData); - -@ffi.Native< - CFMachPortRef Function( - ffi.Uint32, - ffi.Uint32, - ffi.Uint32, - CGEventMask, - CGEventTapCallBack, - ffi.Pointer, - ) ->(symbol: 'CGEventTapCreate') -external CFMachPortRef _CGEventTapCreate( - int tap, - int place, - int options, - int eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -); - -CFMachPortRef CGEventTapCreate( - CGEventTapLocation tap, - CGEventTapPlacement place, - CGEventTapOptions options, - DartCGEventMask eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -) { - return _CGEventTapCreate( - tap.value, - place.value, - options.value, - eventsOfInterest, - callback, - userInfo, - ); -} - -@ffi.Native< - CFMachPortRef Function( - ffi.Pointer, - ffi.Uint32, - ffi.Uint32, - CGEventMask, - CGEventTapCallBack, - ffi.Pointer, - ) ->(symbol: 'CGEventTapCreateForPSN') -external CFMachPortRef _CGEventTapCreateForPSN( - ffi.Pointer processSerialNumber, - int place, - int options, - int eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -); - -CFMachPortRef CGEventTapCreateForPSN( - ffi.Pointer processSerialNumber, - CGEventTapPlacement place, - CGEventTapOptions options, - DartCGEventMask eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -) { - return _CGEventTapCreateForPSN( - processSerialNumber, - place.value, - options.value, - eventsOfInterest, - callback, - userInfo, - ); -} - -@ffi.Native< - CFMachPortRef Function( - pid_t, - ffi.Uint32, - ffi.Uint32, - CGEventMask, - CGEventTapCallBack, - ffi.Pointer, - ) ->(symbol: 'CGEventTapCreateForPid') -external CFMachPortRef _CGEventTapCreateForPid( - int pid, - int place, - int options, - int eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -); - -CFMachPortRef CGEventTapCreateForPid( - Dart__int32_t pid, - CGEventTapPlacement place, - CGEventTapOptions options, - DartCGEventMask eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -) { - return _CGEventTapCreateForPid( - pid, - place.value, - options.value, - eventsOfInterest, - callback, - userInfo, - ); -} - -@ffi.Native() -external void CGEventTapEnable(CFMachPortRef tap, bool enable); - -@ffi.Native() -external bool CGEventTapIsEnabled(CFMachPortRef tap); - -@ffi.Native() -external void CGEventTapPostEvent(CGEventTapProxy proxy, CGEventRef event); - -@ffi.Native( - symbol: 'CGFontCanCreatePostScriptSubset', -) -external bool _CGFontCanCreatePostScriptSubset(CGFontRef font, int format); - -bool CGFontCanCreatePostScriptSubset( - CGFontRef font, - CGFontPostScriptFormat format, -) { - return _CGFontCanCreatePostScriptSubset(font, format.value); -} - -@ffi.Native() -external CFStringRef CGFontCopyFullName(CGFontRef font); - -@ffi.Native() -external CFStringRef CGFontCopyGlyphNameForGlyph(CGFontRef font, int glyph); - -@ffi.Native() -external CFStringRef CGFontCopyPostScriptName(CGFontRef font); - -@ffi.Native() -external CFDataRef CGFontCopyTableForTag(CGFontRef font, int tag); - -@ffi.Native() -external CFArrayRef CGFontCopyTableTags(CGFontRef font); - -@ffi.Native() -external CFArrayRef CGFontCopyVariationAxes(CGFontRef font); - -@ffi.Native() -external CFDictionaryRef CGFontCopyVariations(CGFontRef font); - -@ffi.Native() -external CGFontRef CGFontCreateCopyWithVariations( - CGFontRef font, - CFDictionaryRef variations, -); - -@ffi.Native)>() -external CFDataRef CGFontCreatePostScriptEncoding( - CGFontRef font, - ffi.Pointer encoding, -); - -@ffi.Native< - CFDataRef Function( - CGFontRef, - CFStringRef, - ffi.Int32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'CGFontCreatePostScriptSubset') -external CFDataRef _CGFontCreatePostScriptSubset( - CGFontRef font, - CFStringRef subsetName, - int format, - ffi.Pointer glyphs, - int count, - ffi.Pointer encoding, -); - -CFDataRef CGFontCreatePostScriptSubset( - CGFontRef font, - CFStringRef subsetName, - CGFontPostScriptFormat format, - ffi.Pointer glyphs, - int count, - ffi.Pointer encoding, -) { - return _CGFontCreatePostScriptSubset( - font, - subsetName, - format.value, - glyphs, - count, - encoding, - ); -} - -@ffi.Native() -external CGFontRef CGFontCreateWithDataProvider(CGDataProviderRef provider); - -@ffi.Native() -external CGFontRef CGFontCreateWithFontName(CFStringRef name); - -@Deprecated('No longer supported') -@ffi.Native)>() -external CGFontRef CGFontCreateWithPlatformFont( - ffi.Pointer platformFontReference, -); - -@ffi.Native() -external int CGFontGetAscent(CGFontRef font); - -@ffi.Native() -external int CGFontGetCapHeight(CGFontRef font); - -@ffi.Native() -external int CGFontGetDescent(CGFontRef font); - -@ffi.Native() -external objc.CGRect CGFontGetFontBBox(CGFontRef font); - -@ffi.Native< - ffi.Bool Function( - CGFontRef, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external bool CGFontGetGlyphAdvances( - CGFontRef font, - ffi.Pointer glyphs, - int count, - ffi.Pointer advances, -); - -@ffi.Native< - ffi.Bool Function( - CGFontRef, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external bool CGFontGetGlyphBBoxes( - CGFontRef font, - ffi.Pointer glyphs, - int count, - ffi.Pointer bboxes, -); - -@ffi.Native() -external int CGFontGetGlyphWithGlyphName(CGFontRef font, CFStringRef name); - -@ffi.Native() -external double CGFontGetItalicAngle(CGFontRef font); - -@ffi.Native() -external int CGFontGetLeading(CGFontRef font); - -@ffi.Native() -external int CGFontGetNumberOfGlyphs(CGFontRef font); - -@ffi.Native() -external double CGFontGetStemV(CGFontRef font); - -@ffi.Native() -external int CGFontGetTypeID(); - -@ffi.Native() -external int CGFontGetUnitsPerEm(CGFontRef font); - -@ffi.Native() -external int CGFontGetXHeight(CGFontRef font); - -@ffi.Native() -external void CGFontRelease(CGFontRef font); - -@ffi.Native() -external CGFontRef CGFontRetain(CGFontRef font); - -@ffi.Native< - CGFunctionRef Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGFunctionRef CGFunctionCreate( - ffi.Pointer info, - int domainDimension, - ffi.Pointer domain, - int rangeDimension, - ffi.Pointer range, - ffi.Pointer callbacks, -); - -@ffi.Native() -external int CGFunctionGetTypeID(); - -@ffi.Native() -external void CGFunctionRelease(CGFunctionRef function); - -@ffi.Native() -external CGFunctionRef CGFunctionRetain(CGFunctionRef function); - -@ffi.Native< - ffi.Int32 Function( - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetActiveDisplayList') -external int _CGGetActiveDisplayList( - int maxDisplays, - ffi.Pointer activeDisplays, - ffi.Pointer displayCount, -); - -CGError CGGetActiveDisplayList( - int maxDisplays, - ffi.Pointer activeDisplays, - ffi.Pointer displayCount, -) { - return CGError.fromValue( - _CGGetActiveDisplayList(maxDisplays, activeDisplays, displayCount), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGDirectDisplayID, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetDisplayTransferByFormula') -external int _CGGetDisplayTransferByFormula( - int display, - ffi.Pointer redMin, - ffi.Pointer redMax, - ffi.Pointer redGamma, - ffi.Pointer greenMin, - ffi.Pointer greenMax, - ffi.Pointer greenGamma, - ffi.Pointer blueMin, - ffi.Pointer blueMax, - ffi.Pointer blueGamma, -); - -CGError CGGetDisplayTransferByFormula( - DartCGDirectDisplayID display, - ffi.Pointer redMin, - ffi.Pointer redMax, - ffi.Pointer redGamma, - ffi.Pointer greenMin, - ffi.Pointer greenMax, - ffi.Pointer greenGamma, - ffi.Pointer blueMin, - ffi.Pointer blueMax, - ffi.Pointer blueGamma, -) { - return CGError.fromValue( - _CGGetDisplayTransferByFormula( - display, - redMin, - redMax, - redGamma, - greenMin, - greenMax, - greenGamma, - blueMin, - blueMax, - blueGamma, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGDirectDisplayID, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetDisplayTransferByTable') -external int _CGGetDisplayTransferByTable( - int display, - int capacity, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, - ffi.Pointer sampleCount, -); - -CGError CGGetDisplayTransferByTable( - DartCGDirectDisplayID display, - int capacity, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, - ffi.Pointer sampleCount, -) { - return CGError.fromValue( - _CGGetDisplayTransferByTable( - display, - capacity, - redTable, - greenTable, - blueTable, - sampleCount, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGOpenGLDisplayMask, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetDisplaysWithOpenGLDisplayMask') -external int _CGGetDisplaysWithOpenGLDisplayMask( - int mask, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -); - -CGError CGGetDisplaysWithOpenGLDisplayMask( - DartCGOpenGLDisplayMask mask, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -) { - return CGError.fromValue( - _CGGetDisplaysWithOpenGLDisplayMask( - mask, - maxDisplays, - displays, - matchingDisplayCount, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function( - objc.CGPoint, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetDisplaysWithPoint') -external int _CGGetDisplaysWithPoint( - objc.CGPoint point, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -); - -CGError CGGetDisplaysWithPoint( - objc.CGPoint point, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -) { - return CGError.fromValue( - _CGGetDisplaysWithPoint(point, maxDisplays, displays, matchingDisplayCount), - ); -} - -@ffi.Native< - ffi.Int32 Function( - objc.CGRect, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetDisplaysWithRect') -external int _CGGetDisplaysWithRect( - objc.CGRect rect, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -); - -CGError CGGetDisplaysWithRect( - objc.CGRect rect, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -) { - return CGError.fromValue( - _CGGetDisplaysWithRect(rect, maxDisplays, displays, matchingDisplayCount), - ); -} - -@ffi.Native< - ffi.Int32 Function( - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetEventTapList') -external int _CGGetEventTapList( - int maxNumberOfTaps, - ffi.Pointer tapList, - ffi.Pointer eventTapCount, -); - -CGError CGGetEventTapList( - int maxNumberOfTaps, - ffi.Pointer tapList, - ffi.Pointer eventTapCount, -) { - return CGError.fromValue( - _CGGetEventTapList(maxNumberOfTaps, tapList, eventTapCount), - ); -} - -@ffi.Native, ffi.Pointer)>() -external void CGGetLastMouseDelta( - ffi.Pointer deltaX, - ffi.Pointer deltaY, -); - -@ffi.Native< - ffi.Int32 Function( - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetOnlineDisplayList') -external int _CGGetOnlineDisplayList( - int maxDisplays, - ffi.Pointer onlineDisplays, - ffi.Pointer displayCount, -); - -CGError CGGetOnlineDisplayList( - int maxDisplays, - ffi.Pointer onlineDisplays, - ffi.Pointer displayCount, -) { - return CGError.fromValue( - _CGGetOnlineDisplayList(maxDisplays, onlineDisplays, displayCount), - ); -} - -@ffi.Native< - CGGradientRef Function( - CGColorSpaceRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external CGGradientRef CGGradientCreateWithColorComponents( - CGColorSpaceRef space, - ffi.Pointer components, - ffi.Pointer locations, - int count, -); - -@ffi.Native< - CGGradientRef Function(CGColorSpaceRef, CFArrayRef, ffi.Pointer) ->() -external CGGradientRef CGGradientCreateWithColors( - CGColorSpaceRef space, - CFArrayRef colors, - ffi.Pointer locations, -); - -@ffi.Native< - CGGradientRef Function( - ffi.Float, - CGColorSpaceRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external CGGradientRef CGGradientCreateWithContentHeadroom( - double headroom, - CGColorSpaceRef space, - ffi.Pointer components, - ffi.Pointer locations, - int count, -); - -@ffi.Native() -external double CGGradientGetContentHeadroom(CGGradientRef gradient); - -@ffi.Native() -external int CGGradientGetTypeID(); - -@ffi.Native() -external void CGGradientRelease(CGGradientRef gradient); - -@ffi.Native() -external CGGradientRef CGGradientRetain(CGGradientRef gradient); - -@ffi.Native() -external double CGImageCalculateContentAverageLightLevel(CGImageRef image); - -@ffi.Native() -external double CGImageCalculateContentHeadroom(CGImageRef image); - -@ffi.Native() -external bool CGImageContainsImageSpecificToneMappingMetadata(CGImageRef image); - -@ffi.Native< - CGImageRef Function( - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - CGColorSpaceRef, - ffi.Uint32, - CGDataProviderRef, - ffi.Pointer, - ffi.Bool, - ffi.Int32, - ) ->(symbol: 'CGImageCreate') -external CGImageRef _CGImageCreate( - int width, - int height, - int bitsPerComponent, - int bitsPerPixel, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, - CGDataProviderRef provider, - ffi.Pointer decode, - bool shouldInterpolate, - int intent, -); - -CGImageRef CGImageCreate( - int width, - int height, - int bitsPerComponent, - int bitsPerPixel, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, - CGDataProviderRef provider, - ffi.Pointer decode, - bool shouldInterpolate, - CGColorRenderingIntent intent, -) { - return _CGImageCreate( - width, - height, - bitsPerComponent, - bitsPerPixel, - bytesPerRow, - space, - bitmapInfo, - provider, - decode, - shouldInterpolate, - intent.value, - ); -} - -@ffi.Native() -external CGImageRef CGImageCreateCopy(CGImageRef image); - -@ffi.Native() -external CGImageRef CGImageCreateCopyWithCalculatedHDRStats(CGImageRef image); - -@ffi.Native() -external CGImageRef CGImageCreateCopyWithColorSpace( - CGImageRef image, - CGColorSpaceRef space, -); - -@ffi.Native() -external CGImageRef CGImageCreateCopyWithContentAverageLightLevel( - CGImageRef image, - double avll, -); - -@ffi.Native() -external CGImageRef CGImageCreateCopyWithContentHeadroom( - double headroom, - CGImageRef image, -); - -@ffi.Native< - CGImageRef Function( - ffi.Float, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - CGColorSpaceRef, - ffi.Uint32, - CGDataProviderRef, - ffi.Pointer, - ffi.Bool, - ffi.Int32, - ) ->(symbol: 'CGImageCreateWithContentHeadroom') -external CGImageRef _CGImageCreateWithContentHeadroom( - double headroom, - int width, - int height, - int bitsPerComponent, - int bitsPerPixel, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, - CGDataProviderRef provider, - ffi.Pointer decode, - bool shouldInterpolate, - int intent, -); - -CGImageRef CGImageCreateWithContentHeadroom( - double headroom, - int width, - int height, - int bitsPerComponent, - int bitsPerPixel, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, - CGDataProviderRef provider, - ffi.Pointer decode, - bool shouldInterpolate, - CGColorRenderingIntent intent, -) { - return _CGImageCreateWithContentHeadroom( - headroom, - width, - height, - bitsPerComponent, - bitsPerPixel, - bytesPerRow, - space, - bitmapInfo, - provider, - decode, - shouldInterpolate, - intent.value, - ); -} - -@ffi.Native() -external CGImageRef CGImageCreateWithImageInRect( - CGImageRef image, - objc.CGRect rect, -); - -@ffi.Native< - CGImageRef Function( - CGDataProviderRef, - ffi.Pointer, - ffi.Bool, - ffi.Int32, - ) ->(symbol: 'CGImageCreateWithJPEGDataProvider') -external CGImageRef _CGImageCreateWithJPEGDataProvider( - CGDataProviderRef source, - ffi.Pointer decode, - bool shouldInterpolate, - int intent, -); - -CGImageRef CGImageCreateWithJPEGDataProvider( - CGDataProviderRef source, - ffi.Pointer decode, - bool shouldInterpolate, - CGColorRenderingIntent intent, -) { - return _CGImageCreateWithJPEGDataProvider( - source, - decode, - shouldInterpolate, - intent.value, - ); -} - -@ffi.Native() -external CGImageRef CGImageCreateWithMask(CGImageRef image, CGImageRef mask); - -@ffi.Native)>() -external CGImageRef CGImageCreateWithMaskingColors( - CGImageRef image, - ffi.Pointer components, -); - -@ffi.Native< - CGImageRef Function( - CGDataProviderRef, - ffi.Pointer, - ffi.Bool, - ffi.Int32, - ) ->(symbol: 'CGImageCreateWithPNGDataProvider') -external CGImageRef _CGImageCreateWithPNGDataProvider( - CGDataProviderRef source, - ffi.Pointer decode, - bool shouldInterpolate, - int intent, -); - -CGImageRef CGImageCreateWithPNGDataProvider( - CGDataProviderRef source, - ffi.Pointer decode, - bool shouldInterpolate, - CGColorRenderingIntent intent, -) { - return _CGImageCreateWithPNGDataProvider( - source, - decode, - shouldInterpolate, - intent.value, - ); -} - -@ffi.Native< - ffi.Void Function(CGImageDestinationRef, CFStringRef, CFDictionaryRef) ->() -external void CGImageDestinationAddAuxiliaryDataInfo( - CGImageDestinationRef idst, - CFStringRef auxiliaryImageDataType, - CFDictionaryRef auxiliaryDataInfoDictionary, -); - -@ffi.Native< - ffi.Void Function(CGImageDestinationRef, CGImageRef, CFDictionaryRef) ->() -external void CGImageDestinationAddImage( - CGImageDestinationRef idst, - CGImageRef image, - CFDictionaryRef properties, -); - -@ffi.Native< - ffi.Void Function( - CGImageDestinationRef, - CGImageRef, - CGImageMetadataRef, - CFDictionaryRef, - ) ->() -external void CGImageDestinationAddImageAndMetadata( - CGImageDestinationRef idst, - CGImageRef image, - CGImageMetadataRef metadata, - CFDictionaryRef options, -); - -@ffi.Native< - ffi.Void Function( - CGImageDestinationRef, - CGImageSourceRef, - ffi.Size, - CFDictionaryRef, - ) ->() -external void CGImageDestinationAddImageFromSource( - CGImageDestinationRef idst, - CGImageSourceRef isrc, - int index$1, - CFDictionaryRef properties, -); - -@ffi.Native< - ffi.Bool Function( - CGImageDestinationRef, - CGImageSourceRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external bool CGImageDestinationCopyImageSource( - CGImageDestinationRef idst, - CGImageSourceRef isrc, - CFDictionaryRef options, - ffi.Pointer err, -); - -@ffi.Native() -external CFArrayRef CGImageDestinationCopyTypeIdentifiers(); - -@ffi.Native< - CGImageDestinationRef Function( - CFMutableDataRef, - CFStringRef, - ffi.Size, - CFDictionaryRef, - ) ->() -external CGImageDestinationRef CGImageDestinationCreateWithData( - CFMutableDataRef data, - CFStringRef type, - int count, - CFDictionaryRef options, -); - -@ffi.Native< - CGImageDestinationRef Function( - CGDataConsumerRef, - CFStringRef, - ffi.Size, - CFDictionaryRef, - ) ->() -external CGImageDestinationRef CGImageDestinationCreateWithDataConsumer( - CGDataConsumerRef consumer, - CFStringRef type, - int count, - CFDictionaryRef options, -); - -@ffi.Native< - CGImageDestinationRef Function( - CFURLRef, - CFStringRef, - ffi.Size, - CFDictionaryRef, - ) ->() -external CGImageDestinationRef CGImageDestinationCreateWithURL( - CFURLRef url, - CFStringRef type, - int count, - CFDictionaryRef options, -); - -@ffi.Native() -external bool CGImageDestinationFinalize(CGImageDestinationRef idst); - -@ffi.Native() -external int CGImageDestinationGetTypeID(); - -@ffi.Native() -external void CGImageDestinationSetProperties( - CGImageDestinationRef idst, - CFDictionaryRef properties, -); - -@ffi.Native(symbol: 'CGImageGetAlphaInfo') -external int _CGImageGetAlphaInfo(CGImageRef image); - -CGImageAlphaInfo CGImageGetAlphaInfo(CGImageRef image) { - return CGImageAlphaInfo.fromValue(_CGImageGetAlphaInfo(image)); -} - -@ffi.Native() -external int CGImageGetBitmapInfo(CGImageRef image); - -@ffi.Native() -external int CGImageGetBitsPerComponent(CGImageRef image); - -@ffi.Native() -external int CGImageGetBitsPerPixel(CGImageRef image); - -@ffi.Native(symbol: 'CGImageGetByteOrderInfo') -external int _CGImageGetByteOrderInfo(CGImageRef image); - -CGImageByteOrderInfo CGImageGetByteOrderInfo(CGImageRef image) { - return CGImageByteOrderInfo.fromValue(_CGImageGetByteOrderInfo(image)); -} - -@ffi.Native() -external int CGImageGetBytesPerRow(CGImageRef image); - -@ffi.Native() -external CGColorSpaceRef CGImageGetColorSpace(CGImageRef image); - -@ffi.Native() -external double CGImageGetContentAverageLightLevel(CGImageRef image); - -@ffi.Native() -external double CGImageGetContentHeadroom(CGImageRef image); - -@ffi.Native() -external CGDataProviderRef CGImageGetDataProvider(CGImageRef image); - -@ffi.Native Function(CGImageRef)>() -external ffi.Pointer CGImageGetDecode(CGImageRef image); - -@ffi.Native() -external int CGImageGetHeight(CGImageRef image); - -@ffi.Native( - symbol: 'CGImageGetPixelFormatInfo', -) -external int _CGImageGetPixelFormatInfo(CGImageRef image); - -CGImagePixelFormatInfo CGImageGetPixelFormatInfo(CGImageRef image) { - return CGImagePixelFormatInfo.fromValue(_CGImageGetPixelFormatInfo(image)); -} - -@ffi.Native(symbol: 'CGImageGetRenderingIntent') -external int _CGImageGetRenderingIntent(CGImageRef image); - -CGColorRenderingIntent CGImageGetRenderingIntent(CGImageRef image) { - return CGColorRenderingIntent.fromValue(_CGImageGetRenderingIntent(image)); -} - -@ffi.Native() -external bool CGImageGetShouldInterpolate(CGImageRef image); - -@ffi.Native() -external int CGImageGetTypeID(); - -@ffi.Native() -external CFStringRef CGImageGetUTType(CGImageRef image); - -@ffi.Native() -external int CGImageGetWidth(CGImageRef image); - -@ffi.Native() -external bool CGImageIsMask(CGImageRef image); - -@ffi.Native< - CGImageRef Function( - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - CGDataProviderRef, - ffi.Pointer, - ffi.Bool, - ) ->() -external CGImageRef CGImageMaskCreate( - int width, - int height, - int bitsPerComponent, - int bitsPerPixel, - int bytesPerRow, - CGDataProviderRef provider, - ffi.Pointer decode, - bool shouldInterpolate, -); - -@ffi.Native< - CFStringRef Function(CGImageMetadataRef, CGImageMetadataTagRef, CFStringRef) ->() -external CFStringRef CGImageMetadataCopyStringValueWithPath( - CGImageMetadataRef metadata, - CGImageMetadataTagRef parent, - CFStringRef path, -); - -@ffi.Native< - CGImageMetadataTagRef Function(CGImageMetadataRef, CFStringRef, CFStringRef) ->() -external CGImageMetadataTagRef CGImageMetadataCopyTagMatchingImageProperty( - CGImageMetadataRef metadata, - CFStringRef dictionaryName, - CFStringRef propertyName, -); - -@ffi.Native< - CGImageMetadataTagRef Function( - CGImageMetadataRef, - CGImageMetadataTagRef, - CFStringRef, - ) ->() -external CGImageMetadataTagRef CGImageMetadataCopyTagWithPath( - CGImageMetadataRef metadata, - CGImageMetadataTagRef parent, - CFStringRef path, -); - -@ffi.Native() -external CFArrayRef CGImageMetadataCopyTags(CGImageMetadataRef metadata); - -@ffi.Native() -external CGImageMetadataRef CGImageMetadataCreateFromXMPData(CFDataRef data); - -@ffi.Native() -external CGMutableImageMetadataRef CGImageMetadataCreateMutable(); - -@ffi.Native() -external CGMutableImageMetadataRef CGImageMetadataCreateMutableCopy( - CGImageMetadataRef metadata, -); - -@ffi.Native() -external CFDataRef CGImageMetadataCreateXMPData( - CGImageMetadataRef metadata, - CFDictionaryRef options, -); - -@ffi.Native< - ffi.Void Function( - CGImageMetadataRef, - CFStringRef, - CFDictionaryRef, - CGImageMetadataTagBlock, - ) ->(symbol: 'CGImageMetadataEnumerateTagsUsingBlock') -external void _CGImageMetadataEnumerateTagsUsingBlock( - CGImageMetadataRef metadata, - CFStringRef rootPath, - CFDictionaryRef options, - CGImageMetadataTagBlock block, -); - -void CGImageMetadataEnumerateTagsUsingBlock( - CGImageMetadataRef metadata, - CFStringRef rootPath, - CFDictionaryRef options, - DartCGImageMetadataTagBlock block, -) { - final _$$ref = block.ref; - return _CGImageMetadataEnumerateTagsUsingBlock( - metadata, - rootPath, - options, - _$$ref.pointer, - ); -} - -@ffi.Native() -external int CGImageMetadataGetTypeID(); - -@ffi.Native< - ffi.Bool Function( - CGMutableImageMetadataRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external bool CGImageMetadataRegisterNamespaceForPrefix( - CGMutableImageMetadataRef metadata, - CFStringRef xmlns, - CFStringRef prefix, - ffi.Pointer err, -); - -@ffi.Native< - ffi.Bool Function( - CGMutableImageMetadataRef, - CGImageMetadataTagRef, - CFStringRef, - ) ->() -external bool CGImageMetadataRemoveTagWithPath( - CGMutableImageMetadataRef metadata, - CGImageMetadataTagRef parent, - CFStringRef path, -); - -@ffi.Native< - ffi.Bool Function( - CGMutableImageMetadataRef, - CGImageMetadataTagRef, - CFStringRef, - CGImageMetadataTagRef, - ) ->() -external bool CGImageMetadataSetTagWithPath( - CGMutableImageMetadataRef metadata, - CGImageMetadataTagRef parent, - CFStringRef path, - CGImageMetadataTagRef tag, -); - -@ffi.Native< - ffi.Bool Function( - CGMutableImageMetadataRef, - CFStringRef, - CFStringRef, - CFTypeRef, - ) ->() -external bool CGImageMetadataSetValueMatchingImageProperty( - CGMutableImageMetadataRef metadata, - CFStringRef dictionaryName, - CFStringRef propertyName, - CFTypeRef value, -); - -@ffi.Native< - ffi.Bool Function( - CGMutableImageMetadataRef, - CGImageMetadataTagRef, - CFStringRef, - CFTypeRef, - ) ->() -external bool CGImageMetadataSetValueWithPath( - CGMutableImageMetadataRef metadata, - CGImageMetadataTagRef parent, - CFStringRef path, - CFTypeRef value, -); - -@ffi.Native() -external CFStringRef CGImageMetadataTagCopyName(CGImageMetadataTagRef tag); - -@ffi.Native() -external CFStringRef CGImageMetadataTagCopyNamespace(CGImageMetadataTagRef tag); - -@ffi.Native() -external CFStringRef CGImageMetadataTagCopyPrefix(CGImageMetadataTagRef tag); - -@ffi.Native() -external CFArrayRef CGImageMetadataTagCopyQualifiers(CGImageMetadataTagRef tag); - -@ffi.Native() -external CFTypeRef CGImageMetadataTagCopyValue(CGImageMetadataTagRef tag); - -@ffi.Native< - CGImageMetadataTagRef Function( - CFStringRef, - CFStringRef, - CFStringRef, - ffi.Int32, - CFTypeRef, - ) ->(symbol: 'CGImageMetadataTagCreate') -external CGImageMetadataTagRef _CGImageMetadataTagCreate( - CFStringRef xmlns, - CFStringRef prefix, - CFStringRef name, - int type, - CFTypeRef value, -); - -CGImageMetadataTagRef CGImageMetadataTagCreate( - CFStringRef xmlns, - CFStringRef prefix, - CFStringRef name, - CGImageMetadataType type, - CFTypeRef value, -) { - return _CGImageMetadataTagCreate(xmlns, prefix, name, type.value, value); -} - -@ffi.Native( - symbol: 'CGImageMetadataTagGetType', -) -external int _CGImageMetadataTagGetType(CGImageMetadataTagRef tag); - -CGImageMetadataType CGImageMetadataTagGetType(CGImageMetadataTagRef tag) { - return CGImageMetadataType.fromValue(_CGImageMetadataTagGetType(tag)); -} - -@ffi.Native() -external int CGImageMetadataTagGetTypeID(); - -@ffi.Native() -external void CGImageRelease(CGImageRef image); - -@ffi.Native() -external CGImageRef CGImageRetain(CGImageRef image); - -@ffi.Native() -external bool CGImageShouldToneMap(CGImageRef image); - -@ffi.Native() -external CFDictionaryRef CGImageSourceCopyAuxiliaryDataInfoAtIndex( - CGImageSourceRef isrc, - int index$1, - CFStringRef auxiliaryImageDataType, -); - -@ffi.Native< - CGImageMetadataRef Function(CGImageSourceRef, ffi.Size, CFDictionaryRef) ->() -external CGImageMetadataRef CGImageSourceCopyMetadataAtIndex( - CGImageSourceRef isrc, - int index$1, - CFDictionaryRef options, -); - -@ffi.Native() -external CFDictionaryRef CGImageSourceCopyProperties( - CGImageSourceRef isrc, - CFDictionaryRef options, -); - -@ffi.Native< - CFDictionaryRef Function(CGImageSourceRef, ffi.Size, CFDictionaryRef) ->() -external CFDictionaryRef CGImageSourceCopyPropertiesAtIndex( - CGImageSourceRef isrc, - int index$1, - CFDictionaryRef options, -); - -@ffi.Native() -external CFArrayRef CGImageSourceCopyTypeIdentifiers(); - -@ffi.Native() -external CGImageRef CGImageSourceCreateImageAtIndex( - CGImageSourceRef isrc, - int index$1, - CFDictionaryRef options, -); - -@ffi.Native() -external CGImageSourceRef CGImageSourceCreateIncremental( - CFDictionaryRef options, -); - -@ffi.Native() -external CGImageRef CGImageSourceCreateThumbnailAtIndex( - CGImageSourceRef isrc, - int index$1, - CFDictionaryRef options, -); - -@ffi.Native() -external CGImageSourceRef CGImageSourceCreateWithData( - CFDataRef data, - CFDictionaryRef options, -); - -@ffi.Native() -external CGImageSourceRef CGImageSourceCreateWithDataProvider( - CGDataProviderRef provider, - CFDictionaryRef options, -); - -@ffi.Native() -external CGImageSourceRef CGImageSourceCreateWithURL( - CFURLRef url, - CFDictionaryRef options, -); - -@ffi.Native() -external int CGImageSourceGetCount(CGImageSourceRef isrc); - -@ffi.Native() -external int CGImageSourceGetPrimaryImageIndex(CGImageSourceRef isrc); - -@ffi.Native( - symbol: 'CGImageSourceGetStatus', -) -external int _CGImageSourceGetStatus(CGImageSourceRef isrc); - -CGImageSourceStatus CGImageSourceGetStatus(CGImageSourceRef isrc) { - return CGImageSourceStatus.fromValue(_CGImageSourceGetStatus(isrc)); -} - -@ffi.Native( - symbol: 'CGImageSourceGetStatusAtIndex', -) -external int _CGImageSourceGetStatusAtIndex(CGImageSourceRef isrc, int index$1); - -CGImageSourceStatus CGImageSourceGetStatusAtIndex( - CGImageSourceRef isrc, - int index$1, -) { - return CGImageSourceStatus.fromValue( - _CGImageSourceGetStatusAtIndex(isrc, index$1), - ); -} - -@ffi.Native() -external CFStringRef CGImageSourceGetType(CGImageSourceRef isrc); - -@ffi.Native() -external int CGImageSourceGetTypeID(); - -@ffi.Native() -external void CGImageSourceRemoveCacheAtIndex( - CGImageSourceRef isrc, - int index$1, -); - -@ffi.Native() -external int CGImageSourceSetAllowableTypes(CFArrayRef allowableTypes); - -@ffi.Native() -external void CGImageSourceUpdateData( - CGImageSourceRef isrc, - CFDataRef data, - bool final$, -); - -@ffi.Native() -external void CGImageSourceUpdateDataProvider( - CGImageSourceRef isrc, - CGDataProviderRef provider, - bool final$, -); - -@Deprecated('No longer supported') -@ffi.Native(symbol: 'CGInhibitLocalEvents') -external int _CGInhibitLocalEvents(int inhibit); - -CGError CGInhibitLocalEvents(Dartboolean_t inhibit) { - return CGError.fromValue(_CGInhibitLocalEvents(inhibit)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGLChoosePixelFormat') -external int _CGLChoosePixelFormat( - ffi.Pointer attribs, - ffi.Pointer pix, - ffi.Pointer npix, -); - -_CGLError CGLChoosePixelFormat( - ffi.Pointer attribs, - ffi.Pointer pix, - ffi.Pointer npix, -) { - return _CGLError.fromValue(_CGLChoosePixelFormat(attribs, pix, npix)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native(symbol: 'CGLClearDrawable') -external int _CGLClearDrawable(CGLContextObj ctx); - -_CGLError CGLClearDrawable(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLClearDrawable(ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLCopyContext', -) -external int _CGLCopyContext(CGLContextObj src, CGLContextObj dst, int mask); - -_CGLError CGLCopyContext( - CGLContextObj src, - CGLContextObj dst, - DartGLbitfield mask, -) { - return _CGLError.fromValue(_CGLCopyContext(src, dst, mask)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLPixelFormatObj, - CGLContextObj, - ffi.Pointer, - ) ->(symbol: 'CGLCreateContext') -external int _CGLCreateContext( - CGLPixelFormatObj pix, - CGLContextObj share, - ffi.Pointer ctx, -); - -_CGLError CGLCreateContext( - CGLPixelFormatObj pix, - CGLContextObj share, - ffi.Pointer ctx, -) { - return _CGLError.fromValue(_CGLCreateContext(pix, share, ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - GLsizei, - GLsizei, - GLenum, - GLenum, - GLint, - ffi.Pointer, - ) ->(symbol: 'CGLCreatePBuffer') -external int _CGLCreatePBuffer( - int width, - int height, - int target, - int internalFormat, - int max_level, - ffi.Pointer pbuffer, -); - -_CGLError CGLCreatePBuffer( - DartGLsizei width, - DartGLsizei height, - DartGLenum target, - DartGLenum internalFormat, - DartGLint max_level, - ffi.Pointer pbuffer, -) { - return _CGLError.fromValue( - _CGLCreatePBuffer( - width, - height, - target, - internalFormat, - max_level, - pbuffer, - ), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLPBufferObj, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGLDescribePBuffer') -external int _CGLDescribePBuffer( - CGLPBufferObj obj, - ffi.Pointer width, - ffi.Pointer height, - ffi.Pointer target, - ffi.Pointer internalFormat, - ffi.Pointer mipmap, -); - -_CGLError CGLDescribePBuffer( - CGLPBufferObj obj, - ffi.Pointer width, - ffi.Pointer height, - ffi.Pointer target, - ffi.Pointer internalFormat, - ffi.Pointer mipmap, -) { - return _CGLError.fromValue( - _CGLDescribePBuffer(obj, width, height, target, internalFormat, mipmap), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLPixelFormatObj, - GLint, - ffi.UnsignedInt, - ffi.Pointer, - ) ->(symbol: 'CGLDescribePixelFormat') -external int _CGLDescribePixelFormat( - CGLPixelFormatObj pix, - int pix_num, - int attrib, - ffi.Pointer value, -); - -_CGLError CGLDescribePixelFormat( - CGLPixelFormatObj pix, - DartGLint pix_num, - _CGLPixelFormatAttribute attrib, - ffi.Pointer value, -) { - return _CGLError.fromValue( - _CGLDescribePixelFormat(pix, pix_num, attrib.value, value), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLRendererInfoObj, - GLint, - ffi.UnsignedInt, - ffi.Pointer, - ) ->(symbol: 'CGLDescribeRenderer') -external int _CGLDescribeRenderer( - CGLRendererInfoObj rend, - int rend_num, - int prop, - ffi.Pointer value, -); - -_CGLError CGLDescribeRenderer( - CGLRendererInfoObj rend, - DartGLint rend_num, - _CGLRendererProperty prop, - ffi.Pointer value, -) { - return _CGLError.fromValue( - _CGLDescribeRenderer(rend, rend_num, prop.value, value), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLDestroyContext', -) -external int _CGLDestroyContext(CGLContextObj ctx); - -_CGLError CGLDestroyContext(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLDestroyContext(ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLDestroyPBuffer', -) -external int _CGLDestroyPBuffer(CGLPBufferObj pbuffer); - -_CGLError CGLDestroyPBuffer(CGLPBufferObj pbuffer) { - return _CGLError.fromValue(_CGLDestroyPBuffer(pbuffer)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLDestroyPixelFormat', -) -external int _CGLDestroyPixelFormat(CGLPixelFormatObj pix); - -_CGLError CGLDestroyPixelFormat(CGLPixelFormatObj pix) { - return _CGLError.fromValue(_CGLDestroyPixelFormat(pix)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLDestroyRendererInfo', -) -external int _CGLDestroyRendererInfo(CGLRendererInfoObj rend); - -_CGLError CGLDestroyRendererInfo(CGLRendererInfoObj rend) { - return _CGLError.fromValue(_CGLDestroyRendererInfo(rend)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLDisable', -) -external int _CGLDisable(CGLContextObj ctx, int pname); - -_CGLError CGLDisable(CGLContextObj ctx, _CGLContextEnable pname) { - return _CGLError.fromValue(_CGLDisable(ctx, pname.value)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLEnable', -) -external int _CGLEnable(CGLContextObj ctx, int pname); - -_CGLError CGLEnable(CGLContextObj ctx, _CGLContextEnable pname) { - return _CGLError.fromValue(_CGLEnable(ctx, pname.value)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native Function(ffi.UnsignedInt)>( - symbol: 'CGLErrorString', -) -external ffi.Pointer _CGLErrorString(int error); - -ffi.Pointer CGLErrorString(_CGLError error) { - return _CGLErrorString(error.value); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native(symbol: 'CGLFlushDrawable') -external int _CGLFlushDrawable(CGLContextObj ctx); - -_CGLError CGLFlushDrawable(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLFlushDrawable(ctx)); -} - -@ffi.Native() -external int CGLGetContextRetainCount(CGLContextObj ctx); - -@ffi.Native() -external CGLContextObj CGLGetCurrentContext(); - -@ffi.Native() -external cl_device_id CGLGetDeviceFromGLRenderer(int rendererID); - -@ffi.Native)>( - symbol: 'CGLGetGlobalOption', -) -external int _CGLGetGlobalOption(int pname, ffi.Pointer params); - -_CGLError CGLGetGlobalOption( - _CGLGlobalOption pname, - ffi.Pointer params, -) { - return _CGLError.fromValue(_CGLGetGlobalOption(pname.value, params)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLContextObj, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->(symbol: 'CGLGetOffScreen') -external int _CGLGetOffScreen( - CGLContextObj ctx, - ffi.Pointer width, - ffi.Pointer height, - ffi.Pointer rowbytes, - ffi.Pointer> baseaddr, -); - -_CGLError CGLGetOffScreen( - CGLContextObj ctx, - ffi.Pointer width, - ffi.Pointer height, - ffi.Pointer rowbytes, - ffi.Pointer> baseaddr, -) { - return _CGLError.fromValue( - _CGLGetOffScreen(ctx, width, height, rowbytes, baseaddr), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native)>( - symbol: 'CGLGetOption', -) -external int _CGLGetOption(int pname, ffi.Pointer param); - -_CGLError CGLGetOption(_CGLGlobalOption pname, ffi.Pointer param) { - return _CGLError.fromValue(_CGLGetOption(pname.value, param)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLContextObj, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGLGetPBuffer') -external int _CGLGetPBuffer( - CGLContextObj ctx, - ffi.Pointer pbuffer, - ffi.Pointer face, - ffi.Pointer level, - ffi.Pointer screen, -); - -_CGLError CGLGetPBuffer( - CGLContextObj ctx, - ffi.Pointer pbuffer, - ffi.Pointer face, - ffi.Pointer level, - ffi.Pointer screen, -) { - return _CGLError.fromValue(_CGLGetPBuffer(ctx, pbuffer, face, level, screen)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CGLGetPBufferRetainCount(CGLPBufferObj pbuffer); - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'CGLGetParameter') -external int _CGLGetParameter( - CGLContextObj ctx, - int pname, - ffi.Pointer params, -); - -_CGLError CGLGetParameter( - CGLContextObj ctx, - _CGLContextParameter pname, - ffi.Pointer params, -) { - return _CGLError.fromValue(_CGLGetParameter(ctx, pname.value, params)); -} - -@ffi.Native() -external CGLPixelFormatObj CGLGetPixelFormat(CGLContextObj ctx); - -@ffi.Native() -external int CGLGetPixelFormatRetainCount(CGLPixelFormatObj pix); - -@ffi.Native() -external CGLShareGroupObj CGLGetShareGroup(CGLContextObj ctx); - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native, ffi.Pointer)>() -external void CGLGetVersion( - ffi.Pointer majorvers, - ffi.Pointer minorvers, -); - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native)>( - symbol: 'CGLGetVirtualScreen', -) -external int _CGLGetVirtualScreen(CGLContextObj ctx, ffi.Pointer screen); - -_CGLError CGLGetVirtualScreen(CGLContextObj ctx, ffi.Pointer screen) { - return _CGLError.fromValue(_CGLGetVirtualScreen(ctx, screen)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'CGLIsEnabled') -external int _CGLIsEnabled( - CGLContextObj ctx, - int pname, - ffi.Pointer enable, -); - -_CGLError CGLIsEnabled( - CGLContextObj ctx, - _CGLContextEnable pname, - ffi.Pointer enable, -) { - return _CGLError.fromValue(_CGLIsEnabled(ctx, pname.value, enable)); -} - -@ffi.Native(symbol: 'CGLLockContext') -external int _CGLLockContext(CGLContextObj ctx); - -_CGLError CGLLockContext(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLLockContext(ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - GLuint, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGLQueryRendererInfo') -external int _CGLQueryRendererInfo( - int display_mask, - ffi.Pointer rend, - ffi.Pointer nrend, -); - -_CGLError CGLQueryRendererInfo( - DartGLuint display_mask, - ffi.Pointer rend, - ffi.Pointer nrend, -) { - return _CGLError.fromValue(_CGLQueryRendererInfo(display_mask, rend, nrend)); -} - -@ffi.Native() -external void CGLReleaseContext(CGLContextObj ctx); - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CGLReleasePBuffer(CGLPBufferObj pbuffer); - -@ffi.Native() -external void CGLReleasePixelFormat(CGLPixelFormatObj pix); - -@ffi.Native() -external CGLContextObj CGLRetainContext(CGLContextObj ctx); - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CGLPBufferObj CGLRetainPBuffer(CGLPBufferObj pbuffer); - -@ffi.Native() -external CGLPixelFormatObj CGLRetainPixelFormat(CGLPixelFormatObj pix); - -@ffi.Native( - symbol: 'CGLSetCurrentContext', -) -external int _CGLSetCurrentContext(CGLContextObj ctx); - -_CGLError CGLSetCurrentContext(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLSetCurrentContext(ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native(symbol: 'CGLSetFullScreen') -external int _CGLSetFullScreen(CGLContextObj ctx); - -_CGLError CGLSetFullScreen(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLSetFullScreen(ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLSetFullScreenOnDisplay', -) -external int _CGLSetFullScreenOnDisplay(CGLContextObj ctx, int display_mask); - -_CGLError CGLSetFullScreenOnDisplay( - CGLContextObj ctx, - DartGLuint display_mask, -) { - return _CGLError.fromValue(_CGLSetFullScreenOnDisplay(ctx, display_mask)); -} - -@ffi.Native)>( - symbol: 'CGLSetGlobalOption', -) -external int _CGLSetGlobalOption(int pname, ffi.Pointer params); - -_CGLError CGLSetGlobalOption( - _CGLGlobalOption pname, - ffi.Pointer params, -) { - return _CGLError.fromValue(_CGLSetGlobalOption(pname.value, params)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLContextObj, - GLsizei, - GLsizei, - GLint, - ffi.Pointer, - ) ->(symbol: 'CGLSetOffScreen') -external int _CGLSetOffScreen( - CGLContextObj ctx, - int width, - int height, - int rowbytes, - ffi.Pointer baseaddr, -); - -_CGLError CGLSetOffScreen( - CGLContextObj ctx, - DartGLsizei width, - DartGLsizei height, - DartGLint rowbytes, - ffi.Pointer baseaddr, -) { - return _CGLError.fromValue( - _CGLSetOffScreen(ctx, width, height, rowbytes, baseaddr), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLSetOption', -) -external int _CGLSetOption(int pname, int param); - -_CGLError CGLSetOption(_CGLGlobalOption pname, DartGLint param) { - return _CGLError.fromValue(_CGLSetOption(pname.value, param)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function(CGLContextObj, CGLPBufferObj, GLenum, GLint, GLint) ->(symbol: 'CGLSetPBuffer') -external int _CGLSetPBuffer( - CGLContextObj ctx, - CGLPBufferObj pbuffer, - int face, - int level, - int screen, -); - -_CGLError CGLSetPBuffer( - CGLContextObj ctx, - CGLPBufferObj pbuffer, - DartGLenum face, - DartGLint level, - DartGLint screen, -) { - return _CGLError.fromValue(_CGLSetPBuffer(ctx, pbuffer, face, level, screen)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'CGLSetParameter') -external int _CGLSetParameter( - CGLContextObj ctx, - int pname, - ffi.Pointer params, -); - -_CGLError CGLSetParameter( - CGLContextObj ctx, - _CGLContextParameter pname, - ffi.Pointer params, -) { - return _CGLError.fromValue(_CGLSetParameter(ctx, pname.value, params)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLSetVirtualScreen', -) -external int _CGLSetVirtualScreen(CGLContextObj ctx, int screen); - -_CGLError CGLSetVirtualScreen(CGLContextObj ctx, DartGLint screen) { - return _CGLError.fromValue(_CGLSetVirtualScreen(ctx, screen)); -} - -@ffi.Native< - ffi.UnsignedInt Function( - CGLContextObj, - GLenum, - GLenum, - GLsizei, - GLsizei, - GLenum, - GLenum, - IOSurfaceRef, - GLuint, - ) ->(symbol: 'CGLTexImageIOSurface2D') -external int _CGLTexImageIOSurface2D( - CGLContextObj ctx, - int target, - int internal_format, - int width, - int height, - int format, - int type, - IOSurfaceRef ioSurface, - int plane, -); - -_CGLError CGLTexImageIOSurface2D( - CGLContextObj ctx, - DartGLenum target, - DartGLenum internal_format, - DartGLsizei width, - DartGLsizei height, - DartGLenum format, - DartGLenum type, - IOSurfaceRef ioSurface, - DartGLuint plane, -) { - return _CGLError.fromValue( - _CGLTexImageIOSurface2D( - ctx, - target, - internal_format, - width, - height, - format, - type, - ioSurface, - plane, - ), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLTexImagePBuffer', -) -external int _CGLTexImagePBuffer( - CGLContextObj ctx, - CGLPBufferObj pbuffer, - int source, -); - -_CGLError CGLTexImagePBuffer( - CGLContextObj ctx, - CGLPBufferObj pbuffer, - DartGLenum source, -) { - return _CGLError.fromValue(_CGLTexImagePBuffer(ctx, pbuffer, source)); -} - -@ffi.Native(symbol: 'CGLUnlockContext') -external int _CGLUnlockContext(CGLContextObj ctx); - -_CGLError CGLUnlockContext(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLUnlockContext(ctx)); -} - -@ffi.Native(symbol: 'CGLUpdateContext') -external int _CGLUpdateContext(CGLContextObj ctx); - -_CGLError CGLUpdateContext(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLUpdateContext(ctx)); -} - -@ffi.Native() -external CGLayerRef CGLayerCreateWithContext( - CGContextRef context, - objc.CGSize size, - CFDictionaryRef auxiliaryInfo, -); - -@ffi.Native() -external CGContextRef CGLayerGetContext(CGLayerRef layer); - -@ffi.Native() -external objc.CGSize CGLayerGetSize(CGLayerRef layer); - -@ffi.Native() -external int CGLayerGetTypeID(); - -@ffi.Native() -external void CGLayerRelease(CGLayerRef layer); - -@ffi.Native() -external CGLayerRef CGLayerRetain(CGLayerRef layer); - -@ffi.Native() -external int CGMainDisplayID(); - -@ffi.Native() -external int CGOpenGLDisplayMaskToDisplayID(int mask); - -@ffi.Native< - ffi.Void Function( - CGPDFArrayRef, - CGPDFArrayApplierBlock, - ffi.Pointer, - ) ->(symbol: 'CGPDFArrayApplyBlock') -external void _CGPDFArrayApplyBlock( - CGPDFArrayRef array, - CGPDFArrayApplierBlock block, - ffi.Pointer info, -); - -void CGPDFArrayApplyBlock( - CGPDFArrayRef array, - DartCGPDFArrayApplierBlock? block, - ffi.Pointer info, -) { - final _$$ref = block?.ref; - return _CGPDFArrayApplyBlock(array, _$$ref?.pointer ?? ffi.nullptr, info); -} - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetArray( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetBoolean( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native() -external int CGPDFArrayGetCount(CGPDFArrayRef array); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetDictionary( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetInteger( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer>) ->() -external bool CGPDFArrayGetName( - CGPDFArrayRef array, - int index$1, - ffi.Pointer> value, -); - -@ffi.Native() -external bool CGPDFArrayGetNull(CGPDFArrayRef array, int index$1); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetNumber( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetObject( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetStream( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetString( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native() -external CGPDFContentStreamRef CGPDFContentStreamCreateWithPage( - CGPDFPageRef page, -); - -@ffi.Native< - CGPDFContentStreamRef Function( - CGPDFStreamRef, - CGPDFDictionaryRef, - CGPDFContentStreamRef, - ) ->() -external CGPDFContentStreamRef CGPDFContentStreamCreateWithStream( - CGPDFStreamRef stream, - CGPDFDictionaryRef streamResources, - CGPDFContentStreamRef parent, -); - -@ffi.Native< - CGPDFObjectRef Function( - CGPDFContentStreamRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGPDFObjectRef CGPDFContentStreamGetResource( - CGPDFContentStreamRef cs, - ffi.Pointer category, - ffi.Pointer name, -); - -@ffi.Native() -external CFArrayRef CGPDFContentStreamGetStreams(CGPDFContentStreamRef cs); - -@ffi.Native() -external void CGPDFContentStreamRelease(CGPDFContentStreamRef cs); - -@ffi.Native() -external CGPDFContentStreamRef CGPDFContentStreamRetain( - CGPDFContentStreamRef cs, -); - -@ffi.Native() -external void CGPDFContextAddDestinationAtPoint( - CGContextRef context, - CFStringRef name, - objc.CGPoint point, -); - -@ffi.Native() -external void CGPDFContextAddDocumentMetadata( - CGContextRef context, - CFDataRef metadata, -); - -@ffi.Native() -external void CGPDFContextBeginPage( - CGContextRef context, - CFDictionaryRef pageInfo, -); - -@ffi.Native( - symbol: 'CGPDFContextBeginTag', -) -external void _CGPDFContextBeginTag( - CGContextRef context, - int tagType, - CFDictionaryRef tagProperties, -); - -void CGPDFContextBeginTag( - CGContextRef context, - CGPDFTagType tagType, - CFDictionaryRef tagProperties, -) { - return _CGPDFContextBeginTag(context, tagType.value, tagProperties); -} - -@ffi.Native() -external void CGPDFContextClose(CGContextRef context); - -@ffi.Native< - CGContextRef Function( - CGDataConsumerRef, - ffi.Pointer, - CFDictionaryRef, - ) ->() -external CGContextRef CGPDFContextCreate( - CGDataConsumerRef consumer, - ffi.Pointer mediaBox, - CFDictionaryRef auxiliaryInfo, -); - -@ffi.Native< - CGContextRef Function(CFURLRef, ffi.Pointer, CFDictionaryRef) ->() -external CGContextRef CGPDFContextCreateWithURL( - CFURLRef url, - ffi.Pointer mediaBox, - CFDictionaryRef auxiliaryInfo, -); - -@ffi.Native() -external void CGPDFContextEndPage(CGContextRef context); - -@ffi.Native() -external void CGPDFContextEndTag(CGContextRef context); - -@ffi.Native() -external void CGPDFContextSetDestinationForRect( - CGContextRef context, - CFStringRef name, - objc.CGRect rect, -); - -@ffi.Native() -external void CGPDFContextSetIDTree( - CGContextRef context, - CGPDFDictionaryRef IDTreeDictionary, -); - -@ffi.Native() -external void CGPDFContextSetOutline( - CGContextRef context, - CFDictionaryRef outline$1, -); - -@ffi.Native() -external void CGPDFContextSetPageTagStructureTree( - CGContextRef context, - CFDictionaryRef pageTagStructureTreeDictionary, -); - -@ffi.Native() -external void CGPDFContextSetParentTree( - CGContextRef context, - CGPDFDictionaryRef parentTreeDictionary, -); - -@ffi.Native() -external void CGPDFContextSetURLForRect( - CGContextRef context, - CFURLRef url, - objc.CGRect rect, -); - -@ffi.Native< - ffi.Void Function( - CGPDFDictionaryRef, - CGPDFDictionaryApplierBlock, - ffi.Pointer, - ) ->(symbol: 'CGPDFDictionaryApplyBlock') -external void _CGPDFDictionaryApplyBlock( - CGPDFDictionaryRef dict, - CGPDFDictionaryApplierBlock block, - ffi.Pointer info, -); - -void CGPDFDictionaryApplyBlock( - CGPDFDictionaryRef dict, - DartCGPDFDictionaryApplierBlock? block, - ffi.Pointer info, -) { - final _$$ref = block?.ref; - return _CGPDFDictionaryApplyBlock(dict, _$$ref?.pointer ?? ffi.nullptr, info); -} - -@ffi.Native< - ffi.Void Function( - CGPDFDictionaryRef, - CGPDFDictionaryApplierFunction, - ffi.Pointer, - ) ->() -external void CGPDFDictionaryApplyFunction( - CGPDFDictionaryRef dict, - CGPDFDictionaryApplierFunction function, - ffi.Pointer info, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetArray( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetBoolean( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native() -external int CGPDFDictionaryGetCount(CGPDFDictionaryRef dict); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetDictionary( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetInteger( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external bool CGPDFDictionaryGetName( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer> value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetNumber( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetObject( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetStream( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetString( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native() -external bool CGPDFDocumentAllowsCopying(CGPDFDocumentRef document); - -@ffi.Native() -external bool CGPDFDocumentAllowsPrinting(CGPDFDocumentRef document); - -@ffi.Native() -external CGPDFDocumentRef CGPDFDocumentCreateWithProvider( - CGDataProviderRef provider, -); - -@ffi.Native() -external CGPDFDocumentRef CGPDFDocumentCreateWithURL(CFURLRef url); - -@ffi.Native() -external int CGPDFDocumentGetAccessPermissions(CGPDFDocumentRef document); - -@Deprecated('No longer supported') -@ffi.Native() -external objc.CGRect CGPDFDocumentGetArtBox( - CGPDFDocumentRef document, - int page, -); - -@Deprecated('No longer supported') -@ffi.Native() -external objc.CGRect CGPDFDocumentGetBleedBox( - CGPDFDocumentRef document, - int page, -); - -@ffi.Native() -external CGPDFDictionaryRef CGPDFDocumentGetCatalog(CGPDFDocumentRef document); - -@Deprecated('No longer supported') -@ffi.Native() -external objc.CGRect CGPDFDocumentGetCropBox( - CGPDFDocumentRef document, - int page, -); - -@ffi.Native() -external CGPDFArrayRef CGPDFDocumentGetID(CGPDFDocumentRef document); - -@ffi.Native() -external CGPDFDictionaryRef CGPDFDocumentGetInfo(CGPDFDocumentRef document); - -@Deprecated('No longer supported') -@ffi.Native() -external objc.CGRect CGPDFDocumentGetMediaBox( - CGPDFDocumentRef document, - int page, -); - -@ffi.Native() -external int CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document); - -@ffi.Native() -external CFDictionaryRef CGPDFDocumentGetOutline(CGPDFDocumentRef document); - -@ffi.Native() -external CGPDFPageRef CGPDFDocumentGetPage( - CGPDFDocumentRef document, - int pageNumber, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int CGPDFDocumentGetRotationAngle(CGPDFDocumentRef document, int page); - -@Deprecated('No longer supported') -@ffi.Native() -external objc.CGRect CGPDFDocumentGetTrimBox( - CGPDFDocumentRef document, - int page, -); - -@ffi.Native() -external int CGPDFDocumentGetTypeID(); - -@ffi.Native< - ffi.Void Function( - CGPDFDocumentRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CGPDFDocumentGetVersion( - CGPDFDocumentRef document, - ffi.Pointer majorVersion, - ffi.Pointer minorVersion, -); - -@ffi.Native() -external bool CGPDFDocumentIsEncrypted(CGPDFDocumentRef document); - -@ffi.Native() -external bool CGPDFDocumentIsUnlocked(CGPDFDocumentRef document); - -@ffi.Native() -external void CGPDFDocumentRelease(CGPDFDocumentRef document); - -@ffi.Native() -external CGPDFDocumentRef CGPDFDocumentRetain(CGPDFDocumentRef document); - -@ffi.Native)>() -external bool CGPDFDocumentUnlockWithPassword( - CGPDFDocumentRef document, - ffi.Pointer password, -); - -@ffi.Native(symbol: 'CGPDFObjectGetType') -external int _CGPDFObjectGetType(CGPDFObjectRef object); - -CGPDFObjectType CGPDFObjectGetType(CGPDFObjectRef object) { - return CGPDFObjectType.fromValue(_CGPDFObjectGetType(object)); -} - -@ffi.Native< - ffi.Bool Function(CGPDFObjectRef, ffi.Int32, ffi.Pointer) ->(symbol: 'CGPDFObjectGetValue') -external bool _CGPDFObjectGetValue( - CGPDFObjectRef object, - int type, - ffi.Pointer value, -); - -bool CGPDFObjectGetValue( - CGPDFObjectRef object, - CGPDFObjectType type, - ffi.Pointer value, -) { - return _CGPDFObjectGetValue(object, type.value, value); -} - -@ffi.Native() -external CGPDFOperatorTableRef CGPDFOperatorTableCreate(); - -@ffi.Native() -external void CGPDFOperatorTableRelease(CGPDFOperatorTableRef table); - -@ffi.Native() -external CGPDFOperatorTableRef CGPDFOperatorTableRetain( - CGPDFOperatorTableRef table, -); - -@ffi.Native< - ffi.Void Function( - CGPDFOperatorTableRef, - ffi.Pointer, - CGPDFOperatorCallback, - ) ->() -external void CGPDFOperatorTableSetCallback( - CGPDFOperatorTableRef table, - ffi.Pointer name, - CGPDFOperatorCallback callback, -); - -@ffi.Native( - symbol: 'CGPDFPageGetBoxRect', -) -external objc.CGRect _CGPDFPageGetBoxRect(CGPDFPageRef page, int box); - -objc.CGRect CGPDFPageGetBoxRect(CGPDFPageRef page, CGPDFBox box) { - return _CGPDFPageGetBoxRect(page, box.value); -} - -@ffi.Native() -external CGPDFDictionaryRef CGPDFPageGetDictionary(CGPDFPageRef page); - -@ffi.Native() -external CGPDFDocumentRef CGPDFPageGetDocument(CGPDFPageRef page); - -@ffi.Native< - CGAffineTransform Function( - CGPDFPageRef, - ffi.Int32, - objc.CGRect, - ffi.Int, - ffi.Bool, - ) ->(symbol: 'CGPDFPageGetDrawingTransform') -external CGAffineTransform _CGPDFPageGetDrawingTransform( - CGPDFPageRef page, - int box, - objc.CGRect rect, - int rotate, - bool preserveAspectRatio, -); - -CGAffineTransform CGPDFPageGetDrawingTransform( - CGPDFPageRef page, - CGPDFBox box, - objc.CGRect rect, - int rotate, - bool preserveAspectRatio, -) { - return _CGPDFPageGetDrawingTransform( - page, - box.value, - rect, - rotate, - preserveAspectRatio, - ); -} - -@ffi.Native() -external int CGPDFPageGetPageNumber(CGPDFPageRef page); - -@ffi.Native() -external int CGPDFPageGetRotationAngle(CGPDFPageRef page); - -@ffi.Native() -external int CGPDFPageGetTypeID(); - -@ffi.Native() -external void CGPDFPageRelease(CGPDFPageRef page); - -@ffi.Native() -external CGPDFPageRef CGPDFPageRetain(CGPDFPageRef page); - -@ffi.Native< - CGPDFScannerRef Function( - CGPDFContentStreamRef, - CGPDFOperatorTableRef, - ffi.Pointer, - ) ->() -external CGPDFScannerRef CGPDFScannerCreate( - CGPDFContentStreamRef cs, - CGPDFOperatorTableRef table, - ffi.Pointer info, -); - -@ffi.Native() -external CGPDFContentStreamRef CGPDFScannerGetContentStream( - CGPDFScannerRef scanner, -); - -@ffi.Native)>() -external bool CGPDFScannerPopArray( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopBoolean( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFScannerRef, ffi.Pointer) ->() -external bool CGPDFScannerPopDictionary( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopInteger( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFScannerRef, ffi.Pointer>) ->() -external bool CGPDFScannerPopName( - CGPDFScannerRef scanner, - ffi.Pointer> value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopNumber( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopObject( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopStream( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopString( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native() -external void CGPDFScannerRelease(CGPDFScannerRef scanner); - -@ffi.Native() -external CGPDFScannerRef CGPDFScannerRetain(CGPDFScannerRef scanner); - -@ffi.Native() -external bool CGPDFScannerScan(CGPDFScannerRef scanner); - -@ffi.Native() -external void CGPDFScannerStop(CGPDFScannerRef s); - -@ffi.Native)>() -external CFDataRef CGPDFStreamCopyData( - CGPDFStreamRef stream, - ffi.Pointer format, -); - -@ffi.Native() -external CGPDFDictionaryRef CGPDFStreamGetDictionary(CGPDFStreamRef stream); - -@ffi.Native() -external CFDateRef CGPDFStringCopyDate(CGPDFStringRef string); - -@ffi.Native() -external CFStringRef CGPDFStringCopyTextString(CGPDFStringRef string); - -@ffi.Native Function(CGPDFStringRef)>() -external ffi.Pointer CGPDFStringGetBytePtr( - CGPDFStringRef string, -); - -@ffi.Native() -external int CGPDFStringGetLength(CGPDFStringRef string); - -@ffi.Native Function(ffi.Int32)>( - symbol: 'CGPDFTagTypeGetName', -) -external ffi.Pointer _CGPDFTagTypeGetName(int tagType); - -ffi.Pointer CGPDFTagTypeGetName(CGPDFTagType tagType) { - return _CGPDFTagTypeGetName(tagType.value); -} - -@ffi.Native() -external bool CGPSConverterAbort(CGPSConverterRef converter); - -@ffi.Native< - ffi.Bool Function( - CGPSConverterRef, - CGDataProviderRef, - CGDataConsumerRef, - CFDictionaryRef, - ) ->() -external bool CGPSConverterConvert( - CGPSConverterRef converter, - CGDataProviderRef provider, - CGDataConsumerRef consumer, - CFDictionaryRef options, -); - -@ffi.Native< - CGPSConverterRef Function( - ffi.Pointer, - ffi.Pointer, - CFDictionaryRef, - ) ->() -external CGPSConverterRef CGPSConverterCreate( - ffi.Pointer info, - ffi.Pointer callbacks, - CFDictionaryRef options, -); - -@ffi.Native() -external int CGPSConverterGetTypeID(); - -@ffi.Native() -external bool CGPSConverterIsConverting(CGPSConverterRef converter); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ffi.Bool, - ) ->() -external void CGPathAddArc( - CGMutablePathRef path, - ffi.Pointer m, - double x, - double y, - double radius, - double startAngle, - double endAngle, - bool clockwise, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddArcToPoint( - CGMutablePathRef path, - ffi.Pointer m, - double x1, - double y1$1, - double x2, - double y2, - double radius, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddCurveToPoint( - CGMutablePathRef path, - ffi.Pointer m, - double cp1x, - double cp1y, - double cp2x, - double cp2y, - double x, - double y, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - objc.CGRect, - ) ->() -external void CGPathAddEllipseInRect( - CGMutablePathRef path, - ffi.Pointer m, - objc.CGRect rect, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddLineToPoint( - CGMutablePathRef path, - ffi.Pointer m, - double x, - double y, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGPathAddLines( - CGMutablePathRef path, - ffi.Pointer m, - ffi.Pointer points, - int count, -); - -@ffi.Native< - ffi.Void Function(CGMutablePathRef, ffi.Pointer, CGPathRef) ->() -external void CGPathAddPath( - CGMutablePathRef path1, - ffi.Pointer m, - CGPathRef path2, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddQuadCurveToPoint( - CGMutablePathRef path, - ffi.Pointer m, - double cpx, - double cpy, - double x, - double y, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - objc.CGRect, - ) ->() -external void CGPathAddRect( - CGMutablePathRef path, - ffi.Pointer m, - objc.CGRect rect, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGPathAddRects( - CGMutablePathRef path, - ffi.Pointer m, - ffi.Pointer rects, - int count, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddRelativeArc( - CGMutablePathRef path, - ffi.Pointer matrix, - double x, - double y, - double radius, - double startAngle, - double delta, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - objc.CGRect, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddRoundedRect( - CGMutablePathRef path, - ffi.Pointer transform, - objc.CGRect rect, - double cornerWidth, - double cornerHeight, -); - -@ffi.Native< - ffi.Void Function(CGPathRef, ffi.Pointer, CGPathApplierFunction) ->() -external void CGPathApply( - CGPathRef path, - ffi.Pointer info, - CGPathApplierFunction function, -); - -@ffi.Native( - symbol: 'CGPathApplyWithBlock', -) -external void _CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock block); - -void CGPathApplyWithBlock(CGPathRef path, DartCGPathApplyBlock block) { - final _$$ref = block.ref; - return _CGPathApplyWithBlock(path, _$$ref.pointer); -} - -@ffi.Native() -external void CGPathCloseSubpath(CGMutablePathRef path); - -@ffi.Native< - ffi.Bool Function( - CGPathRef, - ffi.Pointer, - objc.CGPoint, - ffi.Bool, - ) ->() -external bool CGPathContainsPoint( - CGPathRef path, - ffi.Pointer m, - objc.CGPoint point, - bool eoFill, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopy(CGPathRef path); - -@ffi.Native< - CGPathRef Function( - CGPathRef, - ffi.Pointer, - CGFloat, - ffi.Pointer, - ffi.Size, - ) ->() -external CGPathRef CGPathCreateCopyByDashingPath( - CGPathRef path, - ffi.Pointer transform, - double phase, - ffi.Pointer lengths, - int count, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyByFlattening( - CGPathRef path, - double flatteningThreshold, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyByIntersectingPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyByNormalizing( - CGPathRef path, - bool evenOddFillRule, -); - -@ffi.Native< - CGPathRef Function( - CGPathRef, - ffi.Pointer, - CGFloat, - ffi.Int32, - ffi.Int32, - CGFloat, - ) ->(symbol: 'CGPathCreateCopyByStrokingPath') -external CGPathRef _CGPathCreateCopyByStrokingPath( - CGPathRef path, - ffi.Pointer transform, - double lineWidth, - int lineCap, - int lineJoin, - double miterLimit, -); - -CGPathRef CGPathCreateCopyByStrokingPath( - CGPathRef path, - ffi.Pointer transform, - DartCGFloat lineWidth, - CGLineCap lineCap, - CGLineJoin lineJoin, - DartCGFloat miterLimit, -) { - return _CGPathCreateCopyByStrokingPath( - path, - transform, - lineWidth, - lineCap.value, - lineJoin.value, - miterLimit, - ); -} - -@ffi.Native() -external CGPathRef CGPathCreateCopyBySubtractingPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyBySymmetricDifferenceOfPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native)>() -external CGPathRef CGPathCreateCopyByTransformingPath( - CGPathRef path, - ffi.Pointer transform, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyByUnioningPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyOfLineByIntersectingPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyOfLineBySubtractingPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native() -external CGMutablePathRef CGPathCreateMutable(); - -@ffi.Native() -external CGMutablePathRef CGPathCreateMutableCopy(CGPathRef path); - -@ffi.Native< - CGMutablePathRef Function(CGPathRef, ffi.Pointer) ->() -external CGMutablePathRef CGPathCreateMutableCopyByTransformingPath( - CGPathRef path, - ffi.Pointer transform, -); - -@ffi.Native() -external CFArrayRef CGPathCreateSeparateComponents( - CGPathRef path, - bool evenOddFillRule, -); - -@ffi.Native)>() -external CGPathRef CGPathCreateWithEllipseInRect( - objc.CGRect rect, - ffi.Pointer transform, -); - -@ffi.Native)>() -external CGPathRef CGPathCreateWithRect( - objc.CGRect rect, - ffi.Pointer transform, -); - -@ffi.Native< - CGPathRef Function( - objc.CGRect, - CGFloat, - CGFloat, - ffi.Pointer, - ) ->() -external CGPathRef CGPathCreateWithRoundedRect( - objc.CGRect rect, - double cornerWidth, - double cornerHeight, - ffi.Pointer transform, -); - -@ffi.Native() -external bool CGPathEqualToPath(CGPathRef path1, CGPathRef path2); - -@ffi.Native() -external objc.CGRect CGPathGetBoundingBox(CGPathRef path); - -@ffi.Native() -external objc.CGPoint CGPathGetCurrentPoint(CGPathRef path); - -@ffi.Native() -external objc.CGRect CGPathGetPathBoundingBox(CGPathRef path); - -@ffi.Native() -external int CGPathGetTypeID(); - -@ffi.Native() -external bool CGPathIntersectsPath( - CGPathRef path1, - CGPathRef path2, - bool evenOddFillRule, -); - -@ffi.Native() -external bool CGPathIsEmpty(CGPathRef path); - -@ffi.Native)>() -external bool CGPathIsRect(CGPathRef path, ffi.Pointer rect); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - ) ->() -external void CGPathMoveToPoint( - CGMutablePathRef path, - ffi.Pointer m, - double x, - double y, -); - -@ffi.Native() -external void CGPathRelease(CGPathRef path); - -@ffi.Native() -external CGPathRef CGPathRetain(CGPathRef path); - -@ffi.Native< - CGPatternRef Function( - ffi.Pointer, - objc.CGRect, - CGAffineTransform, - CGFloat, - CGFloat, - ffi.Int32, - ffi.Bool, - ffi.Pointer, - ) ->(symbol: 'CGPatternCreate') -external CGPatternRef _CGPatternCreate( - ffi.Pointer info, - objc.CGRect bounds, - CGAffineTransform matrix, - double xStep, - double yStep, - int tiling, - bool isColored, - ffi.Pointer callbacks, -); - -CGPatternRef CGPatternCreate( - ffi.Pointer info, - objc.CGRect bounds, - CGAffineTransform matrix, - DartCGFloat xStep, - DartCGFloat yStep, - CGPatternTiling tiling, - bool isColored, - ffi.Pointer callbacks, -) { - return _CGPatternCreate( - info, - bounds, - matrix, - xStep, - yStep, - tiling.value, - isColored, - callbacks, - ); -} - -@ffi.Native() -external int CGPatternGetTypeID(); - -@ffi.Native() -external void CGPatternRelease(CGPatternRef pattern); - -@ffi.Native() -external CGPatternRef CGPatternRetain(CGPatternRef pattern); - -@ffi.Native() -external objc.CGPoint CGPointApplyAffineTransform( - objc.CGPoint point, - CGAffineTransform t, -); - -@ffi.Native() -external CFDictionaryRef CGPointCreateDictionaryRepresentation( - objc.CGPoint point, -); - -@ffi.Native() -external bool CGPointEqualToPoint(objc.CGPoint point1, objc.CGPoint point2); - -@ffi.Native)>() -external bool CGPointMakeWithDictionaryRepresentation( - CFDictionaryRef dict, - ffi.Pointer point, -); - -@ffi.Native() -external final objc.CGPoint CGPointZero; - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGPostKeyboardEvent', -) -external int _CGPostKeyboardEvent(int keyChar, int virtualKey, int keyDown); - -CGError CGPostKeyboardEvent( - DartCGCharCode keyChar, - DartCGKeyCode virtualKey, - Dartboolean_t keyDown, -) { - return CGError.fromValue(_CGPostKeyboardEvent(keyChar, virtualKey, keyDown)); -} - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Int32 Function(objc.CGPoint, boolean_t, CGButtonCount, boolean_t) ->(symbol: 'CGPostMouseEvent') -external int _CGPostMouseEvent( - objc.CGPoint mouseCursorPosition, - int updateMouseCursorPosition, - int buttonCount, - int mouseButtonDown, -); - -CGError CGPostMouseEvent( - objc.CGPoint mouseCursorPosition, - Dartboolean_t updateMouseCursorPosition, - DartCGButtonCount buttonCount, - Dartboolean_t mouseButtonDown, -) { - return CGError.fromValue( - _CGPostMouseEvent( - mouseCursorPosition, - updateMouseCursorPosition, - buttonCount, - mouseButtonDown, - ), - ); -} - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGPostScrollWheelEvent', -) -external int _CGPostScrollWheelEvent(int wheelCount, int wheel1); - -CGError CGPostScrollWheelEvent(DartCGWheelCount wheelCount, int wheel1) { - return CGError.fromValue(_CGPostScrollWheelEvent(wheelCount, wheel1)); -} - -@ffi.Native() -external bool CGPreflightListenEventAccess(); - -@ffi.Native() -external bool CGPreflightPostEventAccess(); - -@ffi.Native() -external bool CGPreflightScreenCaptureAccess(); - -@ffi.Native() -external objc.CGRect CGRectApplyAffineTransform( - objc.CGRect rect, - CGAffineTransform t, -); - -@ffi.Native() -external bool CGRectContainsPoint(objc.CGRect rect, objc.CGPoint point); - -@ffi.Native() -external bool CGRectContainsRect(objc.CGRect rect1, objc.CGRect rect2); - -@ffi.Native() -external CFDictionaryRef CGRectCreateDictionaryRepresentation(objc.CGRect arg0); - -@ffi.Native< - ffi.Void Function( - objc.CGRect, - ffi.Pointer, - ffi.Pointer, - CGFloat, - ffi.Uint32, - ) ->(symbol: 'CGRectDivide') -external void _CGRectDivide( - objc.CGRect rect, - ffi.Pointer slice, - ffi.Pointer remainder$1, - double amount, - int edge, -); - -void CGRectDivide( - objc.CGRect rect, - ffi.Pointer slice, - ffi.Pointer remainder$1, - DartCGFloat amount, - CGRectEdge edge, -) { - return _CGRectDivide(rect, slice, remainder$1, amount, edge.value); -} - -@ffi.Native() -external bool CGRectEqualToRect(objc.CGRect rect1, objc.CGRect rect2); - -@ffi.Native() -external double CGRectGetHeight(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMaxX(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMaxY(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMidX(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMidY(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMinX(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMinY(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetWidth(objc.CGRect rect); - -@ffi.Native() -external final objc.CGRect CGRectInfinite; - -@ffi.Native() -external objc.CGRect CGRectInset(objc.CGRect rect, double dx, double dy); - -@ffi.Native() -external objc.CGRect CGRectIntegral(objc.CGRect rect); - -@ffi.Native() -external objc.CGRect CGRectIntersection(objc.CGRect r1, objc.CGRect r2); - -@ffi.Native() -external bool CGRectIntersectsRect(objc.CGRect rect1, objc.CGRect rect2); - -@ffi.Native() -external bool CGRectIsEmpty(objc.CGRect rect); - -@ffi.Native() -external bool CGRectIsInfinite(objc.CGRect rect); - -@ffi.Native() -external bool CGRectIsNull(objc.CGRect rect); - -@ffi.Native)>() -external bool CGRectMakeWithDictionaryRepresentation( - CFDictionaryRef dict, - ffi.Pointer rect, -); - -@ffi.Native() -external final objc.CGRect CGRectNull; - -@ffi.Native() -external objc.CGRect CGRectOffset(objc.CGRect rect, double dx, double dy); - -@ffi.Native() -external objc.CGRect CGRectStandardize(objc.CGRect rect); - -@ffi.Native() -external objc.CGRect CGRectUnion(objc.CGRect r1, objc.CGRect r2); - -@ffi.Native() -external final objc.CGRect CGRectZero; - -@Deprecated('No longer supported') -@ffi.Native)>( - symbol: 'CGRegisterScreenRefreshCallback', -) -external int _CGRegisterScreenRefreshCallback( - CGScreenRefreshCallback callback, - ffi.Pointer userInfo, -); - -CGError CGRegisterScreenRefreshCallback( - CGScreenRefreshCallback callback, - ffi.Pointer userInfo, -) { - return CGError.fromValue( - _CGRegisterScreenRefreshCallback(callback, userInfo), - ); -} - -@ffi.Native(symbol: 'CGReleaseAllDisplays') -external int _CGReleaseAllDisplays(); - -CGError CGReleaseAllDisplays() { - return CGError.fromValue(_CGReleaseAllDisplays()); -} - -@ffi.Native( - symbol: 'CGReleaseDisplayFadeReservation', -) -external int _CGReleaseDisplayFadeReservation(int token); - -CGError CGReleaseDisplayFadeReservation( - DartCGDisplayFadeReservationToken token, -) { - return CGError.fromValue(_CGReleaseDisplayFadeReservation(token)); -} - -@Deprecated('No longer supported') -@ffi.Native)>() -external void CGReleaseScreenRefreshRects(ffi.Pointer rects); - -@ffi.Native Function(CGRenderingBufferProviderRef)>() -external ffi.Pointer CGRenderingBufferLockBytePtr( - CGRenderingBufferProviderRef provider, -); - -@ffi.Native< - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGRenderingBufferProviderCreate') -external CGRenderingBufferProviderRef _CGRenderingBufferProviderCreate( - ffi.Pointer info, - int size, - ffi.Pointer lockPointer, - ffi.Pointer unlockPointer, - ffi.Pointer releaseInfo, -); - -CGRenderingBufferProviderRef CGRenderingBufferProviderCreate( - ffi.Pointer info, - int size, - objc.ObjCBlock Function(ffi.Pointer)> - lockPointer, - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >? - unlockPointer, - objc.ObjCBlock)>? releaseInfo, -) { - final _$$ref = lockPointer.ref; - final _$$ref$1 = unlockPointer?.ref; - final _$$ref$2 = releaseInfo?.ref; - return _CGRenderingBufferProviderCreate( - info, - size, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native() -external CGRenderingBufferProviderRef CGRenderingBufferProviderCreateWithCFData( - CFMutableDataRef data, -); - -@ffi.Native() -external int CGRenderingBufferProviderGetSize( - CGRenderingBufferProviderRef provider, -); - -@ffi.Native() -external int CGRenderingBufferProviderGetTypeID(); - -@ffi.Native() -external void CGRenderingBufferUnlockBytePtr( - CGRenderingBufferProviderRef provider, -); - -@ffi.Native() -external bool CGRequestListenEventAccess(); - -@ffi.Native() -external bool CGRequestPostEventAccess(); - -@ffi.Native() -external bool CGRequestScreenCaptureAccess(); - -@ffi.Native() -external void CGRestorePermanentDisplayConfiguration(); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Int32 Function(CGScreenUpdateMoveCallback, ffi.Pointer) ->(symbol: 'CGScreenRegisterMoveCallback') -external int _CGScreenRegisterMoveCallback( - CGScreenUpdateMoveCallback callback, - ffi.Pointer userInfo, -); - -CGError CGScreenRegisterMoveCallback( - CGScreenUpdateMoveCallback callback, - ffi.Pointer userInfo, -) { - return CGError.fromValue(_CGScreenRegisterMoveCallback(callback, userInfo)); -} - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(CGScreenUpdateMoveCallback, ffi.Pointer) ->() -external void CGScreenUnregisterMoveCallback( - CGScreenUpdateMoveCallback callback, - ffi.Pointer userInfo, -); - -@ffi.Native() -external CFDictionaryRef CGSessionCopyCurrentDictionary(); - -@ffi.Native< - ffi.Int32 Function( - CGDirectDisplayID, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGSetDisplayTransferByByteTable') -external int _CGSetDisplayTransferByByteTable( - int display, - int tableSize, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, -); - -CGError CGSetDisplayTransferByByteTable( - DartCGDirectDisplayID display, - int tableSize, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, -) { - return CGError.fromValue( - _CGSetDisplayTransferByByteTable( - display, - tableSize, - redTable, - greenTable, - blueTable, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGDirectDisplayID, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - ) ->(symbol: 'CGSetDisplayTransferByFormula') -external int _CGSetDisplayTransferByFormula( - int display, - double redMin, - double redMax, - double redGamma, - double greenMin, - double greenMax, - double greenGamma, - double blueMin, - double blueMax, - double blueGamma, -); - -CGError CGSetDisplayTransferByFormula( - DartCGDirectDisplayID display, - DartCGGammaValue redMin, - DartCGGammaValue redMax, - DartCGGammaValue redGamma, - DartCGGammaValue greenMin, - DartCGGammaValue greenMax, - DartCGGammaValue greenGamma, - DartCGGammaValue blueMin, - DartCGGammaValue blueMax, - DartCGGammaValue blueGamma, -) { - return CGError.fromValue( - _CGSetDisplayTransferByFormula( - display, - redMin, - redMax, - redGamma, - greenMin, - greenMax, - greenGamma, - blueMin, - blueMax, - blueGamma, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGDirectDisplayID, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGSetDisplayTransferByTable') -external int _CGSetDisplayTransferByTable( - int display, - int tableSize, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, -); - -CGError CGSetDisplayTransferByTable( - DartCGDirectDisplayID display, - int tableSize, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, -) { - return CGError.fromValue( - _CGSetDisplayTransferByTable( - display, - tableSize, - redTable, - greenTable, - blueTable, - ), - ); -} - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGSetLocalEventsFilterDuringSuppressionState', -) -external int _CGSetLocalEventsFilterDuringSuppressionState( - int filter, - int state, -); - -CGError CGSetLocalEventsFilterDuringSuppressionState( - int filter, - CGEventSuppressionState state, -) { - return CGError.fromValue( - _CGSetLocalEventsFilterDuringSuppressionState(filter, state.value), - ); -} - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGSetLocalEventsSuppressionInterval', -) -external int _CGSetLocalEventsSuppressionInterval(double seconds); - -CGError CGSetLocalEventsSuppressionInterval(DartCFTimeInterval seconds) { - return CGError.fromValue(_CGSetLocalEventsSuppressionInterval(seconds)); -} - -@ffi.Native< - CGShadingRef Function( - CGColorSpaceRef, - objc.CGPoint, - objc.CGPoint, - CGFunctionRef, - ffi.Bool, - ffi.Bool, - ) ->() -external CGShadingRef CGShadingCreateAxial( - CGColorSpaceRef space, - objc.CGPoint start, - objc.CGPoint end, - CGFunctionRef function, - bool extendStart, - bool extendEnd, -); - -@ffi.Native< - CGShadingRef Function( - ffi.Float, - CGColorSpaceRef, - objc.CGPoint, - objc.CGPoint, - CGFunctionRef, - ffi.Bool, - ffi.Bool, - ) ->() -external CGShadingRef CGShadingCreateAxialWithContentHeadroom( - double headroom, - CGColorSpaceRef space, - objc.CGPoint start, - objc.CGPoint end, - CGFunctionRef function, - bool extendStart, - bool extendEnd, -); - -@ffi.Native< - CGShadingRef Function( - CGColorSpaceRef, - objc.CGPoint, - CGFloat, - objc.CGPoint, - CGFloat, - CGFunctionRef, - ffi.Bool, - ffi.Bool, - ) ->() -external CGShadingRef CGShadingCreateRadial( - CGColorSpaceRef space, - objc.CGPoint start, - double startRadius, - objc.CGPoint end, - double endRadius, - CGFunctionRef function, - bool extendStart, - bool extendEnd, -); - -@ffi.Native< - CGShadingRef Function( - ffi.Float, - CGColorSpaceRef, - objc.CGPoint, - CGFloat, - objc.CGPoint, - CGFloat, - CGFunctionRef, - ffi.Bool, - ffi.Bool, - ) ->() -external CGShadingRef CGShadingCreateRadialWithContentHeadroom( - double headroom, - CGColorSpaceRef space, - objc.CGPoint start, - double startRadius, - objc.CGPoint end, - double endRadius, - CGFunctionRef function, - bool extendStart, - bool extendEnd, -); - -@ffi.Native() -external double CGShadingGetContentHeadroom(CGShadingRef shading); - -@ffi.Native() -external int CGShadingGetTypeID(); - -@ffi.Native() -external void CGShadingRelease(CGShadingRef shading); - -@ffi.Native() -external CGShadingRef CGShadingRetain(CGShadingRef shading); - -@ffi.Native() -external int CGShieldingWindowID(int display); - -@ffi.Native() -external int CGShieldingWindowLevel(); - -@ffi.Native() -external objc.CGSize CGSizeApplyAffineTransform( - objc.CGSize size, - CGAffineTransform t, -); - -@ffi.Native() -external CFDictionaryRef CGSizeCreateDictionaryRepresentation(objc.CGSize size); - -@ffi.Native() -external bool CGSizeEqualToSize(objc.CGSize size1, objc.CGSize size2); - -@ffi.Native)>() -external bool CGSizeMakeWithDictionaryRepresentation( - CFDictionaryRef dict, - ffi.Pointer size, -); - -@ffi.Native() -external final objc.CGSize CGSizeZero; - -@Deprecated('No longer supported') -@ffi.Native)>() -external void CGUnregisterScreenRefreshCallback( - CGScreenRefreshCallback callback, - ffi.Pointer userInfo, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Int32 Function( - ffi.Pointer>, - ffi.Pointer, - ) ->(symbol: 'CGWaitForScreenRefreshRects') -external int _CGWaitForScreenRefreshRects( - ffi.Pointer> rects, - ffi.Pointer count, -); - -CGError CGWaitForScreenRefreshRects( - ffi.Pointer> rects, - ffi.Pointer count, -) { - return CGError.fromValue(_CGWaitForScreenRefreshRects(rects, count)); -} - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Int32 Function( - ffi.Uint32, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGWaitForScreenUpdateRects') -external int _CGWaitForScreenUpdateRects( - int requestedOperations, - ffi.Pointer currentOperation, - ffi.Pointer> rects, - ffi.Pointer rectCount, - ffi.Pointer delta, -); - -CGError CGWaitForScreenUpdateRects( - int requestedOperations, - ffi.Pointer currentOperation, - ffi.Pointer> rects, - ffi.Pointer rectCount, - ffi.Pointer delta, -) { - return CGError.fromValue( - _CGWaitForScreenUpdateRects( - requestedOperations, - currentOperation, - rects, - rectCount, - delta, - ), - ); -} - -@ffi.Native( - symbol: 'CGWarpMouseCursorPosition', -) -external int _CGWarpMouseCursorPosition(objc.CGPoint newCursorPosition); - -CGError CGWarpMouseCursorPosition(objc.CGPoint newCursorPosition) { - return CGError.fromValue(_CGWarpMouseCursorPosition(newCursorPosition)); -} - -@ffi.Native(symbol: 'CGWindowLevelForKey') -external int _CGWindowLevelForKey(int key); - -DartCGWindowLevel CGWindowLevelForKey(CGWindowLevelKey key) { - return _CGWindowLevelForKey(key.value); -} - -@ffi.Native() -external CFArrayRef CGWindowListCopyWindowInfo( - int option, - int relativeToWindow, -); - -@ffi.Native() -external CFArrayRef CGWindowListCreate(int option, int relativeToWindow); - -@ffi.Native() -external CFArrayRef CGWindowListCreateDescriptionFromArray( - CFArrayRef windowArray, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - CGImageRef Function(objc.CGRect, ffi.Uint32, CGWindowID, ffi.Uint32) ->() -external CGImageRef CGWindowListCreateImage( - objc.CGRect screenBounds, - int listOption, - int windowID, - int imageOption, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external CGImageRef CGWindowListCreateImageFromArray( - objc.CGRect screenBounds, - CFArrayRef windowArray, - int imageOption, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFMachPortRef CGWindowServerCFMachPort(); - -@ffi.Native() -external CFMachPortRef CGWindowServerCreateServerPort(); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMAudioFormatDescriptionCreate( - CFAllocatorRef allocator, - ffi.Pointer asbd, - int layoutSize, - ffi.Pointer layout, - int magicCookieSize, - ffi.Pointer magicCookie, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CFArrayRef, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int CMAudioFormatDescriptionCreateSummary( - CFAllocatorRef allocator, - CFArrayRef formatDescriptionArray, - int flags, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - Boolean Function( - CMAudioFormatDescriptionRef, - CMAudioFormatDescriptionRef, - CMAudioFormatDescriptionMask, - ffi.Pointer, - ) ->() -external int CMAudioFormatDescriptionEqual( - CMAudioFormatDescriptionRef formatDescription, - CMAudioFormatDescriptionRef otherFormatDescription, - int equalityMask, - ffi.Pointer equalityMaskOut, -); - -@ffi.Native< - ffi.Pointer Function( - CMAudioFormatDescriptionRef, - ffi.Pointer, - ) ->() -external ffi.Pointer -CMAudioFormatDescriptionGetChannelLayout( - CMAudioFormatDescriptionRef desc, - ffi.Pointer sizeOut, -); - -@ffi.Native< - ffi.Pointer Function( - CMAudioFormatDescriptionRef, - ffi.Pointer, - ) ->() -external ffi.Pointer CMAudioFormatDescriptionGetFormatList( - CMAudioFormatDescriptionRef desc, - ffi.Pointer sizeOut, -); - -@ffi.Native< - ffi.Pointer Function( - CMAudioFormatDescriptionRef, - ffi.Pointer, - ) ->() -external ffi.Pointer CMAudioFormatDescriptionGetMagicCookie( - CMAudioFormatDescriptionRef desc, - ffi.Pointer sizeOut, -); - -@ffi.Native< - ffi.Pointer Function(CMAudioFormatDescriptionRef) ->() -external ffi.Pointer -CMAudioFormatDescriptionGetMostCompatibleFormat( - CMAudioFormatDescriptionRef desc, -); - -@ffi.Native< - ffi.Pointer Function(CMAudioFormatDescriptionRef) ->() -external ffi.Pointer -CMAudioFormatDescriptionGetRichestDecodableFormat( - CMAudioFormatDescriptionRef desc, -); - -@ffi.Native< - ffi.Pointer Function(CMAudioFormatDescriptionRef) ->() -external ffi.Pointer -CMAudioFormatDescriptionGetStreamBasicDescription( - CMAudioFormatDescriptionRef desc, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMediaType, - FourCharCode, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMFormatDescriptionCreate( - CFAllocatorRef allocator, - int mediaType, - int mediaSubType, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native() -external int CMFormatDescriptionEqual( - CMFormatDescriptionRef formatDescription, - CMFormatDescriptionRef otherFormatDescription, -); - -@ffi.Native< - Boolean Function( - CMFormatDescriptionRef, - CMFormatDescriptionRef, - CFTypeRef, - CFTypeRef, - ) ->() -external int CMFormatDescriptionEqualIgnoringExtensionKeys( - CMFormatDescriptionRef formatDescription, - CMFormatDescriptionRef otherFormatDescription, - CFTypeRef formatDescriptionExtensionKeysToIgnore, - CFTypeRef sampleDescriptionExtensionAtomKeysToIgnore, -); - -@ffi.Native() -external CFPropertyListRef CMFormatDescriptionGetExtension( - CMFormatDescriptionRef desc, - CFStringRef extensionKey, -); - -@ffi.Native() -external CFDictionaryRef CMFormatDescriptionGetExtensions( - CMFormatDescriptionRef desc, -); - -@ffi.Native() -external int CMFormatDescriptionGetMediaSubType(CMFormatDescriptionRef desc); - -@ffi.Native() -external int CMFormatDescriptionGetMediaType(CMFormatDescriptionRef desc); - -@ffi.Native() -external int CMFormatDescriptionGetTypeID(); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMetadataFormatDescriptionRef, - CMMetadataFormatDescriptionRef, - ffi.Pointer, - ) ->() -external int -CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions( - CFAllocatorRef allocator, - CMMetadataFormatDescriptionRef sourceDescription, - CMMetadataFormatDescriptionRef otherSourceDescription, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMetadataFormatType, - CFArrayRef, - ffi.Pointer, - ) ->() -external int CMMetadataFormatDescriptionCreateWithKeys( - CFAllocatorRef allocator, - int metadataType, - CFArrayRef keys, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMetadataFormatDescriptionRef, - CFArrayRef, - ffi.Pointer, - ) ->() -external int -CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications( - CFAllocatorRef allocator, - CMMetadataFormatDescriptionRef sourceDescription, - CFArrayRef metadataSpecifications, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMetadataFormatType, - CFArrayRef, - ffi.Pointer, - ) ->() -external int CMMetadataFormatDescriptionCreateWithMetadataSpecifications( - CFAllocatorRef allocator, - int metadataType, - CFArrayRef metadataSpecifications, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native() -external CFArrayRef CMMetadataFormatDescriptionGetIdentifiers( - CMMetadataFormatDescriptionRef desc, -); - -@ffi.Native() -external CFDictionaryRef CMMetadataFormatDescriptionGetKeyWithLocalID( - CMMetadataFormatDescriptionRef desc, - int localKeyID, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMuxedStreamType, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMMuxedFormatDescriptionCreate( - CFAllocatorRef allocator, - int muxType, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native)>() -external int CMSDecoderCopyAllCerts( - CMSDecoderRef cmsDecoder, - ffi.Pointer certsOut, -); - -@ffi.Native)>() -external int CMSDecoderCopyContent( - CMSDecoderRef cmsDecoder, - ffi.Pointer contentOut, -); - -@ffi.Native)>() -external int CMSDecoderCopyDetachedContent( - CMSDecoderRef cmsDecoder, - ffi.Pointer detachedContentOut, -); - -@ffi.Native)>() -external int CMSDecoderCopyEncapsulatedContentType( - CMSDecoderRef cmsDecoder, - ffi.Pointer eContentTypeOut, -); - -@ffi.Native< - OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSDecoderCopySignerCert( - CMSDecoderRef cmsDecoder, - int signerIndex, - ffi.Pointer signerCertOut, -); - -@ffi.Native< - OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSDecoderCopySignerEmailAddress( - CMSDecoderRef cmsDecoder, - int signerIndex, - ffi.Pointer signerEmailAddressOut, -); - -@ffi.Native< - OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSDecoderCopySignerSigningTime( - CMSDecoderRef cmsDecoder, - int signerIndex, - ffi.Pointer signingTime, -); - -@ffi.Native< - OSStatus Function( - CMSDecoderRef, - ffi.Size, - CFTypeRef, - Boolean, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CMSDecoderCopySignerStatus( - CMSDecoderRef cmsDecoder, - int signerIndex, - CFTypeRef policyOrArray, - int evaluateSecTrust, - ffi.Pointer signerStatusOut, - ffi.Pointer secTrustOut, - ffi.Pointer certVerifyResultCodeOut, -); - -@ffi.Native< - OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSDecoderCopySignerTimestamp( - CMSDecoderRef cmsDecoder, - int signerIndex, - ffi.Pointer timestamp, -); - -@ffi.Native< - OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSDecoderCopySignerTimestampCertificates( - CMSDecoderRef cmsDecoder, - int signerIndex, - ffi.Pointer certificateRefs, -); - -@ffi.Native< - OSStatus Function( - CMSDecoderRef, - CFTypeRef, - ffi.Size, - ffi.Pointer, - ) ->() -external int CMSDecoderCopySignerTimestampWithPolicy( - CMSDecoderRef cmsDecoder, - CFTypeRef timeStampPolicy, - int signerIndex, - ffi.Pointer timestamp, -); - -@ffi.Native)>() -external int CMSDecoderCreate(ffi.Pointer cmsDecoderOut); - -@ffi.Native() -external int CMSDecoderFinalizeMessage(CMSDecoderRef cmsDecoder); - -@ffi.Native)>() -external int CMSDecoderGetNumSigners( - CMSDecoderRef cmsDecoder, - ffi.Pointer numSignersOut, -); - -@ffi.Native() -external int CMSDecoderGetTypeID(); - -@ffi.Native)>() -external int CMSDecoderIsContentEncrypted( - CMSDecoderRef cmsDecoder, - ffi.Pointer isEncryptedOut, -); - -@ffi.Native() -external int CMSDecoderSetDetachedContent( - CMSDecoderRef cmsDecoder, - CFDataRef detachedContent, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CMSDecoderSetSearchKeychain( - CMSDecoderRef cmsDecoder, - CFTypeRef keychainOrArray, -); - -@ffi.Native, ffi.Size)>() -external int CMSDecoderUpdateMessage( - CMSDecoderRef cmsDecoder, - ffi.Pointer msgBytes, - int msgBytesLen, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFTypeRef, - CFTypeRef, - ffi.Pointer, - Boolean, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external int CMSEncode( - CFTypeRef signers, - CFTypeRef recipients, - ffi.Pointer eContentType, - int detachedContent, - int signedAttributes, - ffi.Pointer content, - int contentLen, - ffi.Pointer encodedContentOut, -); - -@ffi.Native< - OSStatus Function( - CFTypeRef, - CFTypeRef, - CFTypeRef, - Boolean, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external int CMSEncodeContent( - CFTypeRef signers, - CFTypeRef recipients, - CFTypeRef eContentTypeOID, - int detachedContent, - int signedAttributes, - ffi.Pointer content, - int contentLen, - ffi.Pointer encodedContentOut, -); - -@ffi.Native() -external int CMSEncoderAddRecipients( - CMSEncoderRef cmsEncoder, - CFTypeRef recipientOrArray, -); - -@ffi.Native() -external int CMSEncoderAddSignedAttributes( - CMSEncoderRef cmsEncoder, - int signedAttributes, -); - -@ffi.Native() -external int CMSEncoderAddSigners( - CMSEncoderRef cmsEncoder, - CFTypeRef signerOrArray, -); - -@ffi.Native() -external int CMSEncoderAddSupportingCerts( - CMSEncoderRef cmsEncoder, - CFTypeRef certOrArray, -); - -@ffi.Native)>() -external int CMSEncoderCopyEncapsulatedContentType( - CMSEncoderRef cmsEncoder, - ffi.Pointer eContentTypeOut, -); - -@ffi.Native)>() -external int CMSEncoderCopyEncodedContent( - CMSEncoderRef cmsEncoder, - ffi.Pointer encodedContentOut, -); - -@ffi.Native)>() -external int CMSEncoderCopyRecipients( - CMSEncoderRef cmsEncoder, - ffi.Pointer recipientsOut, -); - -@ffi.Native< - OSStatus Function(CMSEncoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSEncoderCopySignerTimestamp( - CMSEncoderRef cmsEncoder, - int signerIndex, - ffi.Pointer timestamp, -); - -@ffi.Native< - OSStatus Function( - CMSEncoderRef, - CFTypeRef, - ffi.Size, - ffi.Pointer, - ) ->() -external int CMSEncoderCopySignerTimestampWithPolicy( - CMSEncoderRef cmsEncoder, - CFTypeRef timeStampPolicy, - int signerIndex, - ffi.Pointer timestamp, -); - -@ffi.Native)>() -external int CMSEncoderCopySigners( - CMSEncoderRef cmsEncoder, - ffi.Pointer signersOut, -); - -@ffi.Native)>() -external int CMSEncoderCopySupportingCerts( - CMSEncoderRef cmsEncoder, - ffi.Pointer certsOut, -); - -@ffi.Native)>() -external int CMSEncoderCreate(ffi.Pointer cmsEncoderOut); - -@ffi.Native)>() -external int CMSEncoderGetCertificateChainMode( - CMSEncoderRef cmsEncoder, - ffi.Pointer chainModeOut, -); - -@ffi.Native)>() -external int CMSEncoderGetHasDetachedContent( - CMSEncoderRef cmsEncoder, - ffi.Pointer detachedContentOut, -); - -@ffi.Native() -external int CMSEncoderGetTypeID(); - -@ffi.Native( - symbol: 'CMSEncoderSetCertificateChainMode', -) -external int _CMSEncoderSetCertificateChainMode( - CMSEncoderRef cmsEncoder, - int chainMode, -); - -DartSInt32 CMSEncoderSetCertificateChainMode( - CMSEncoderRef cmsEncoder, - CMSCertificateChainMode chainMode, -) { - return _CMSEncoderSetCertificateChainMode(cmsEncoder, chainMode.value); -} - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CMSEncoderSetEncapsulatedContentType( - CMSEncoderRef cmsEncoder, - ffi.Pointer eContentType, -); - -@ffi.Native() -external int CMSEncoderSetEncapsulatedContentTypeOID( - CMSEncoderRef cmsEncoder, - CFTypeRef eContentTypeOID, -); - -@ffi.Native() -external int CMSEncoderSetHasDetachedContent( - CMSEncoderRef cmsEncoder, - int detachedContent, -); - -@ffi.Native() -external int CMSEncoderSetSignerAlgorithm( - CMSEncoderRef cmsEncoder, - CFStringRef digestAlgorithm, -); - -@ffi.Native, ffi.Size)>() -external int CMSEncoderUpdateContent( - CMSEncoderRef cmsEncoder, - ffi.Pointer content, - int contentLen, -); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CMTextFormatDescriptionGetDefaultStyle( - CMFormatDescriptionRef desc, - ffi.Pointer localFontIDOut, - ffi.Pointer boldOut, - ffi.Pointer italicOut, - ffi.Pointer underlineOut, - ffi.Pointer fontSizeOut, - ffi.Pointer colorComponentsOut, -); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - Boolean, - CGFloat, - ffi.Pointer, - ) ->() -external int CMTextFormatDescriptionGetDefaultTextBox( - CMFormatDescriptionRef desc, - int originIsAtTopLeft, - double heightOfTextTrack, - ffi.Pointer defaultTextBoxOut, -); - -@ffi.Native< - OSStatus Function(CMFormatDescriptionRef, ffi.Pointer) ->() -external int CMTextFormatDescriptionGetDisplayFlags( - CMFormatDescriptionRef desc, - ffi.Pointer displayFlagsOut, -); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - ffi.Uint16, - ffi.Pointer, - ) ->() -external int CMTextFormatDescriptionGetFontName( - CMFormatDescriptionRef desc, - int localFontID, - ffi.Pointer fontNameOut, -); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CMTextFormatDescriptionGetJustification( - CMFormatDescriptionRef desc, - ffi.Pointer horizontaJustificationlOut, - ffi.Pointer verticalJustificationOut, -); - -@ffi.Native() -external CMTime CMTimeAbsoluteValue(CMTime time$1); - -@ffi.Native() -external CMTime CMTimeAdd(CMTime lhs, CMTime rhs); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMTimeCodeFormatType, - CMTime, - ffi.Uint32, - ffi.Uint32, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMTimeCodeFormatDescriptionCreate( - CFAllocatorRef allocator, - int timeCodeFormatType, - CMTime frameDuration, - int frameQuanta, - int flags, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native() -external CMTime CMTimeCodeFormatDescriptionGetFrameDuration( - CMTimeCodeFormatDescriptionRef timeCodeFormatDescription, -); - -@ffi.Native() -external int CMTimeCodeFormatDescriptionGetFrameQuanta( - CMTimeCodeFormatDescriptionRef timeCodeFormatDescription, -); - -@ffi.Native() -external int CMTimeCodeFormatDescriptionGetTimeCodeFlags( - CMTimeCodeFormatDescriptionRef desc, -); - -@ffi.Native() -external int CMTimeCompare(CMTime time1, CMTime time2); - -@ffi.Native( - symbol: 'CMTimeConvertScale', -) -external CMTime _CMTimeConvertScale( - CMTime time$1, - int newTimescale, - int method, -); - -CMTime CMTimeConvertScale( - CMTime time$1, - int newTimescale, - CMTimeRoundingMethod method, -) { - return _CMTimeConvertScale(time$1, newTimescale, method.value); -} - -@ffi.Native() -external CFDictionaryRef CMTimeCopyAsDictionary( - CMTime time$1, - CFAllocatorRef allocator, -); - -@ffi.Native() -external CFStringRef CMTimeCopyDescription( - CFAllocatorRef allocator, - CMTime time$1, -); - -@ffi.Native() -external double CMTimeGetSeconds(CMTime time$1); - -@ffi.Native() -external CMTime CMTimeMake(int value, int timescale); - -@ffi.Native() -external CMTime CMTimeMakeFromDictionary( - CFDictionaryRef dictionaryRepresentation, -); - -@ffi.Native() -external CMTime CMTimeMakeWithEpoch(int value, int timescale, int epoch); - -@ffi.Native() -external CMTime CMTimeMakeWithSeconds(double seconds, int preferredTimescale); - -@ffi.Native() -external CMTime CMTimeMaximum(CMTime time1, CMTime time2); - -@ffi.Native() -external CMTime CMTimeMinimum(CMTime time1, CMTime time2); - -@ffi.Native() -external CMTime CMTimeMultiply(CMTime time$1, int multiplier); - -@ffi.Native() -external CMTime CMTimeMultiplyByFloat64(CMTime time$1, double multiplier); - -@ffi.Native() -external CMTime CMTimeMultiplyByRatio( - CMTime time$1, - int multiplier, - int divisor, -); - -@ffi.Native() -external void CMTimeShow(CMTime time$1); - -@ffi.Native() -external CMTime CMTimeSubtract(CMTime lhs, CMTime rhs); - -@ffi.Native< - OSStatus Function(CMVideoFormatDescriptionRef, ffi.Pointer) ->() -external int CMVideoFormatDescriptionCopyTagCollectionArray( - CMVideoFormatDescriptionRef formatDescription, - ffi.Pointer tagCollectionsOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMVideoCodecType, - ffi.Int32, - ffi.Int32, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionCreate( - CFAllocatorRef allocator, - int codecType, - int width, - int height, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CVImageBufferRef, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionCreateForImageBuffer( - CFAllocatorRef allocator, - CVImageBufferRef imageBuffer, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionCreateFromH264ParameterSets( - CFAllocatorRef allocator, - int parameterSetCount, - ffi.Pointer> parameterSetPointers, - ffi.Pointer parameterSetSizes, - int NALUnitHeaderLength, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionCreateFromHEVCParameterSets( - CFAllocatorRef allocator, - int parameterSetCount, - ffi.Pointer> parameterSetPointers, - ffi.Pointer parameterSetSizes, - int NALUnitHeaderLength, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native() -external objc.CGRect CMVideoFormatDescriptionGetCleanAperture( - CMVideoFormatDescriptionRef videoDesc, - int originIsAtTopLeft, -); - -@ffi.Native() -external CMVideoDimensions CMVideoFormatDescriptionGetDimensions( - CMVideoFormatDescriptionRef videoDesc, -); - -@ffi.Native() -external CFArrayRef -CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers(); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionGetH264ParameterSetAtIndex( - CMFormatDescriptionRef videoDesc, - int parameterSetIndex, - ffi.Pointer> parameterSetPointerOut, - ffi.Pointer parameterSetSizeOut, - ffi.Pointer parameterSetCountOut, - ffi.Pointer NALUnitHeaderLengthOut, -); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionGetHEVCParameterSetAtIndex( - CMFormatDescriptionRef videoDesc, - int parameterSetIndex, - ffi.Pointer> parameterSetPointerOut, - ffi.Pointer parameterSetSizeOut, - ffi.Pointer parameterSetCountOut, - ffi.Pointer NALUnitHeaderLengthOut, -); - -@ffi.Native< - objc.CGSize Function(CMVideoFormatDescriptionRef, Boolean, Boolean) ->() -external objc.CGSize CMVideoFormatDescriptionGetPresentationDimensions( - CMVideoFormatDescriptionRef videoDesc, - int usePixelAspectRatio, - int useCleanAperture, -); - -@ffi.Native() -external int CMVideoFormatDescriptionMatchesImageBuffer( - CMVideoFormatDescriptionRef desc, - CVImageBufferRef imageBuffer, -); - -@ffi.Native)>() -external int CSBackupIsItemExcluded( - CFURLRef item, - ffi.Pointer excludeByPath, -); - -@ffi.Native() -external int CSBackupSetItemExcluded( - CFURLRef item, - int exclude, - int excludeByPath, -); - -@Deprecated('Deprecated') -@ffi.Native() -external CFStringRef CSCopyMachineName(); - -@Deprecated('Deprecated') -@ffi.Native() -external CFStringRef CSCopyUserName(int useShortName); - -@ffi.Native() -external void CSDiskSpaceCancelRecovery(CFUUIDRef operationUUID); - -@ffi.Native() -external int CSDiskSpaceGetRecoveryEstimate(CFURLRef volumeURL); - -@ffi.Native< - ffi.Void Function( - CFURLRef, - UInt64, - CSDiskSpaceRecoveryOptions, - ffi.Pointer, - dispatch_queue_t, - CSDiskSpaceRecoveryCallback, - ) ->(symbol: 'CSDiskSpaceStartRecovery') -external void _CSDiskSpaceStartRecovery( - CFURLRef volumeURL, - int bytesNeeded, - int options, - ffi.Pointer outOperationUUID, - dispatch_queue_t callbackQueue, - CSDiskSpaceRecoveryCallback callback, -); - -void CSDiskSpaceStartRecovery( - CFURLRef volumeURL, - DartUInt64 bytesNeeded, - DartCSDiskSpaceRecoveryOptions options, - ffi.Pointer outOperationUUID, - Dartdispatch_queue_t callbackQueue, - DartCSDiskSpaceRecoveryCallback callback, -) { - final _$$ref = callbackQueue.ref; - final _$$ref$1 = callback.ref; - return _CSDiskSpaceStartRecovery( - volumeURL, - bytesNeeded, - options, - outOperationUUID, - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@Deprecated('Deprecated') -@ffi.Native() -external int CSGetComponentsThreadMode(); - -@ffi.Native() -external CSIdentityAuthorityRef CSGetDefaultIdentityAuthority(); - -@ffi.Native() -external CSIdentityAuthorityRef CSGetLocalIdentityAuthority(); - -@ffi.Native() -external CSIdentityAuthorityRef CSGetManagedIdentityAuthority(); - -@ffi.Native() -external void CSIdentityAddAlias(CSIdentityRef identity, CFStringRef alias); - -@ffi.Native() -external void CSIdentityAddMember(CSIdentityRef group, CSIdentityRef member); - -@ffi.Native() -external int CSIdentityAuthenticateUsingPassword( - CSIdentityRef user, - CFStringRef password, -); - -@ffi.Native() -external CFStringRef CSIdentityAuthorityCopyLocalizedName( - CSIdentityAuthorityRef authority, -); - -@ffi.Native() -external int CSIdentityAuthorityGetTypeID(); - -@ffi.Native< - Boolean Function(CSIdentityRef, AuthorizationRef, ffi.Pointer) ->() -external int CSIdentityCommit( - CSIdentityRef identity, - AuthorizationRef authorization, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function( - CSIdentityRef, - ffi.Pointer, - CFRunLoopRef, - CFStringRef, - AuthorizationRef, - ) ->() -external int CSIdentityCommitAsynchronously( - CSIdentityRef identity, - ffi.Pointer clientContext, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, - AuthorizationRef authorization, -); - -@ffi.Native< - CSIdentityRef Function( - CFAllocatorRef, - CSIdentityClass, - CFStringRef, - CFStringRef, - CSIdentityFlags, - CSIdentityAuthorityRef, - ) ->() -external CSIdentityRef CSIdentityCreate( - CFAllocatorRef allocator, - int identityClass, - CFStringRef fullName, - CFStringRef posixName, - int flags, - CSIdentityAuthorityRef authority, -); - -@ffi.Native() -external CSIdentityRef CSIdentityCreateCopy( - CFAllocatorRef allocator, - CSIdentityRef identity, -); - -@ffi.Native() -external CSIdentityQueryRef CSIdentityCreateGroupMembershipQuery( - CFAllocatorRef allocator, - CSIdentityRef group, -); - -@ffi.Native() -external CFDataRef CSIdentityCreatePersistentReference( - CFAllocatorRef allocator, - CSIdentityRef identity, -); - -@ffi.Native() -external void CSIdentityDelete(CSIdentityRef identity); - -@ffi.Native() -external CFArrayRef CSIdentityGetAliases(CSIdentityRef identity); - -@ffi.Native() -external CSIdentityAuthorityRef CSIdentityGetAuthority(CSIdentityRef identity); - -@ffi.Native() -external SecCertificateRef CSIdentityGetCertificate(CSIdentityRef user); - -@ffi.Native() -external int CSIdentityGetClass(CSIdentityRef identity); - -@ffi.Native() -external CFStringRef CSIdentityGetEmailAddress(CSIdentityRef identity); - -@ffi.Native() -external CFStringRef CSIdentityGetFullName(CSIdentityRef identity); - -@ffi.Native() -external CFDataRef CSIdentityGetImageData(CSIdentityRef identity); - -@ffi.Native() -external CFStringRef CSIdentityGetImageDataType(CSIdentityRef identity); - -@ffi.Native() -external CFURLRef CSIdentityGetImageURL(CSIdentityRef identity); - -@ffi.Native() -external int CSIdentityGetPosixID(CSIdentityRef identity); - -@ffi.Native() -external CFStringRef CSIdentityGetPosixName(CSIdentityRef identity); - -@ffi.Native() -external int CSIdentityGetTypeID(); - -@ffi.Native() -external CFUUIDRef CSIdentityGetUUID(CSIdentityRef identity); - -@ffi.Native() -external int CSIdentityIsCommitting(CSIdentityRef identity); - -@ffi.Native() -external int CSIdentityIsEnabled(CSIdentityRef user); - -@ffi.Native() -external int CSIdentityIsHidden(CSIdentityRef identity); - -@ffi.Native() -external int CSIdentityIsMemberOfGroup( - CSIdentityRef identity, - CSIdentityRef group, -); - -@ffi.Native() -external CFArrayRef CSIdentityQueryCopyResults(CSIdentityQueryRef query); - -@ffi.Native< - CSIdentityQueryRef Function( - CFAllocatorRef, - CSIdentityClass, - CSIdentityAuthorityRef, - ) ->() -external CSIdentityQueryRef CSIdentityQueryCreate( - CFAllocatorRef allocator, - int identityClass, - CSIdentityAuthorityRef authority, -); - -@ffi.Native() -external CSIdentityQueryRef CSIdentityQueryCreateForCurrentUser( - CFAllocatorRef allocator, -); - -@ffi.Native< - CSIdentityQueryRef Function( - CFAllocatorRef, - CFStringRef, - CSIdentityQueryStringComparisonMethod, - CSIdentityClass, - CSIdentityAuthorityRef, - ) ->() -external CSIdentityQueryRef CSIdentityQueryCreateForName( - CFAllocatorRef allocator, - CFStringRef name, - int comparisonMethod, - int identityClass, - CSIdentityAuthorityRef authority, -); - -@ffi.Native() -external CSIdentityQueryRef CSIdentityQueryCreateForPersistentReference( - CFAllocatorRef allocator, - CFDataRef referenceData, -); - -@ffi.Native< - CSIdentityQueryRef Function( - CFAllocatorRef, - id_t, - CSIdentityClass, - CSIdentityAuthorityRef, - ) ->() -external CSIdentityQueryRef CSIdentityQueryCreateForPosixID( - CFAllocatorRef allocator, - int posixID, - int identityClass, - CSIdentityAuthorityRef authority, -); - -@ffi.Native< - CSIdentityQueryRef Function(CFAllocatorRef, CFUUIDRef, CSIdentityAuthorityRef) ->() -external CSIdentityQueryRef CSIdentityQueryCreateForUUID( - CFAllocatorRef allocator, - CFUUIDRef uuid, - CSIdentityAuthorityRef authority, -); - -@ffi.Native< - Boolean Function( - CSIdentityQueryRef, - CSIdentityQueryFlags, - ffi.Pointer, - ) ->() -external int CSIdentityQueryExecute( - CSIdentityQueryRef query, - int flags, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function( - CSIdentityQueryRef, - CSIdentityQueryFlags, - ffi.Pointer, - CFRunLoopRef, - CFStringRef, - ) ->() -external int CSIdentityQueryExecuteAsynchronously( - CSIdentityQueryRef query, - int flags, - ffi.Pointer clientContext, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native() -external int CSIdentityQueryGetTypeID(); - -@ffi.Native() -external void CSIdentityQueryStop(CSIdentityQueryRef query); - -@ffi.Native() -external void CSIdentityRemoveAlias(CSIdentityRef identity, CFStringRef alias); - -@ffi.Native() -external void CSIdentityRemoveClient(CSIdentityRef identity); - -@ffi.Native() -external void CSIdentityRemoveMember(CSIdentityRef group, CSIdentityRef member); - -@ffi.Native() -external void CSIdentitySetCertificate( - CSIdentityRef user, - SecCertificateRef certificate, -); - -@ffi.Native() -external void CSIdentitySetEmailAddress( - CSIdentityRef identity, - CFStringRef emailAddress, -); - -@ffi.Native() -external void CSIdentitySetFullName( - CSIdentityRef identity, - CFStringRef fullName, -); - -@ffi.Native() -external void CSIdentitySetImageData( - CSIdentityRef identity, - CFDataRef imageData, - CFStringRef imageDataType, -); - -@ffi.Native() -external void CSIdentitySetImageURL(CSIdentityRef identity, CFURLRef url); - -@ffi.Native() -external void CSIdentitySetIsEnabled(CSIdentityRef user, int isEnabled); - -@ffi.Native() -external void CSIdentitySetPassword(CSIdentityRef user, CFStringRef password); - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ADC_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AD_CA_ISSUERS; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AD_CA_REPOSITORY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AD_OCSP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AD_TIME_STAMPING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_EPHEM; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_EPHEM_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID1_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID2_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID_ONEFLOW; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_ONE_FLOW; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_ONE_FLOW_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_PUB_NUMBER; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_STATIC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_STATIC_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_MQV1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_MQV1_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_MQV2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_MQV2_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLEID_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLEID_SHARING_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_ASC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_ECDSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_CODE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_CODE_SIGNING_DEV; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_ICHAT_ENCRYPTION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_ICHAT_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_PASSBOOK_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_QA_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_RESOURCE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_SYSTEM_IDENTITY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_AAI_INTERMEDIATE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ADC_APPLE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ADC_DEV_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLEID_INTERMEDIATE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLEID_SHARING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_CODE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_DEVELOPER_AUTHENTICATION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ESCROW_SERVICE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_INTERMEDIATE_MARKER; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ITMS_INTERMEDIATE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_MACAPPSTORE_RECEIPT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_PASSBOOK_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_PROVISIONING_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_SERVER_AUTHENTICATION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_SYSINT2_INTERMEDIATE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_WWDR_INTERMEDIATE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_FEE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_FEED; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_FEEDEXP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_FEE_MD5; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_FEE_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_ISIGN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_APPLEID_SHARING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_CODE_SIGN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_CODE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_CSR_GEN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_EAP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_ESCROW_SERVICE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_ICHAT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_IP_SEC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_LOCAL_CERT_GEN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_MACAPPSTORE_RECEIPT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_MOBILE_STORE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PACKAGE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PASSBOOK_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PCS_ESCROW_SERVICE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PKINIT_CLIENT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PKINIT_SERVER; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PROVISIONING_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_QA_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_RESOURCE_SIGN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION_CRL; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION_OCSP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_SMIME; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_SSL; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_SW_UPDATE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_TEST_MOBILE_STORE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_TIMESTAMPING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_X509_BASIC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AliasedEntryName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AuthorityInfoAccess; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AuthorityKeyIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AuthorityRevocationList; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_BasicConstraints; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_BiometricInfo; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_BusinessCategory; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CACertificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CSSMKeyStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CertIssuer; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Certicom; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CerticomEllCurve; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CertificatePolicies; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CertificateRevocationList; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ChallengePassword; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ClientAuth; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveFacsimileTelephoneNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveInternationalISDNNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveOrganizationName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveOrganizationalUnitName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectivePhysicalDeliveryOfficeName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectivePostOfficeBox; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectivePostalAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectivePostalCode; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveStateProvinceName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveStreetAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveTelephoneNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveTelexNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveTelexTerminalIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CommonName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ContentType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CounterSignature; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CountryName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CrlDistributionPoints; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CrlNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CrlReason; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CrossCertificatePair; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DES_CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DH; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DNQualifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EMAIL_ENCRYPT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EMAIL_SIGN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EXTENSION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_IDENTITY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_FETCH; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_LIST; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_REMOVE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_STORE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_EMAIL_ENCRYPT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_EMAIL_SIGN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_IDENTITY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_SHARED_SERVICES; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_ASYNC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_HOSTNAME; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_IS_PENDING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_PASSWORD; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_RENEW; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_USERNAME; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DSA_CMS; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DSA_JDK; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DeltaCrlIndicator; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Description; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DestinationIndicator; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DistinguishedName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DomainComponent; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSHA224; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSHA256; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSHA384; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSHA512; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSpecified; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_EKU_IPSec; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_COMPLIANCE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_LIMIT_VALUE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_RETENTION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_SSCD; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_EmailAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_EmailProtection; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_EnhancedSearchGuide; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ExtendedCertificateAttributes; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ExtendedKeyUsage; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ExtendedKeyUsageAny; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ExtendedUseCodeSigning; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_FacsimileTelephoneNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_GenerationQualifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_GivenName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_HoldInstructionCode; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_HouseIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_InhibitAnyPolicy; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Initials; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_InternationalISDNNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_InvalidityDate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_IssuerAltName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_IssuingDistributionPoint; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_IssuingDistributionPoints; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_AUTH_DATA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_DH_KEY_DATA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_KP_CLIENT_AUTH; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_KP_KDC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_RKEY_DATA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KeyUsage; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KnowledgeInformation; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_LocalityName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MACAPPSTORE_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MACAPPSTORE_RECEIPT_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD2WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD4; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD4WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD5; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD5WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MOBILE_STORE_SIGNING_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Member; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MessageDigest; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MicrosoftSGC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Name; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_NameConstraints; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_NetscapeCertSequence; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_NetscapeCertType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_NetscapeSGC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OAEP_ID_PSPECIFIED; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OAEP_MGF1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OCSPSigning; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OID_QCS_SYNTAX_V1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OID_QCS_SYNTAX_V2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ObjectClass; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OrganizationName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OrganizationalUnitName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Owner; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PDA_COUNTRY_CITIZEN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PDA_COUNTRY_RESIDENCE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PDA_DATE_OF_BIRTH; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PDA_GENDER; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PDA_PLACE_OF_BIRTH; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_certBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_crlBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_keyBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd128BitRC2CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd128BitRC4; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd2Key3DESCBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd3Key3DESCBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd40BitRC4; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbewithSHAAnd40BitRC2CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_safeContentsBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_secretBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_shroudedKeyBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS3; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_DES_EDE3_CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_DIGEST_ALG; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_ENCRYPT_ALG; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_HMAC_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_PBES2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_PBKDF2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_PBMAC1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_RC2_CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_RC5_CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD2AndDES; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD2AndRC2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD5AndDES; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD5AndRC2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithSHA1AndDES; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithSHA1AndRC2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_Data; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_DataWithAttributes; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_DigestedData; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_EncryptedData; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_EncryptedPrivateKeyInfo; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_EnvelopedData; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_SignedAndEnvelopedData; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_SignedData; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_CertTypes; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_CrlTypes; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_FriendlyName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_Id_Ct_TSTInfo; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_LocalKeyId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_SdsiCertificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_TimeStampToken; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_X509Certificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_X509Crl; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_ARCHIVE_CUTOFF; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_BASIC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_CRL; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_NOCHECK; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_NONCE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_RESPONSE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_SERVICE_LOCATOR; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PhysicalDeliveryOfficeName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PolicyConstraints; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PolicyMappings; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PostOfficeBox; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PostalAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PostalCode; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PreferredDeliveryMethod; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PresentationAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PrivateKeyUsagePeriod; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ProtocolInformation; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_QC_Statements; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_QT_CPS; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_QT_UNOTICE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_RSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_RSAWithOAEP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_RegisteredAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_RoleOccupant; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1WithDSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1WithDSA_CMS; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1WithDSA_JDK; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1WithRSA_OIW; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA224; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA224WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA256; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA256WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA384; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA384WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA512; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA512WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SearchGuide; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SeeAlso; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SerialNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ServerAuth; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SigningTime; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_StateProvinceName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_StreetAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectAltName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectDirectoryAttributes; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectEmailAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectInfoAccess; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectKeyIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectPicture; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectSignatureBitmap; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SupportedApplicationContext; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Surname; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_TEST_MOBILE_STORE_SIGNING_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_TelephoneNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_TelexNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_TelexTerminalIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_TimeStamping; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Title; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UniqueIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UniqueMember; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UnstructuredAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UnstructuredName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UseExemptions; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UserCertificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UserID; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UserPassword; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLIssuerNameCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLIssuerNameLDAP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLIssuerStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLNextUpdate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLNumberOfRevokedCertEntries; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedCertificatesCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedCertificatesStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryRevocationDate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntrySerialNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLThisUpdate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CertificateIssuerUniqueId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CertificateSubjectUniqueId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1IssuerName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1IssuerNameCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1IssuerNameLDAP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1IssuerNameStd; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SerialNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1Signature; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithm; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithmParameters; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithmTBS; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SignatureCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SignatureStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectNameCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectNameLDAP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectNameStd; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKey; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyAlgorithm; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyAlgorithmParameters; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1ValidityNotAfter; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1ValidityNotBefore; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1Version; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLAllExtensionsCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLAllExtensionsStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLExtensionCritical; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLExtensionId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLExtensionType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLNumberOfExtensions; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryAllExtensionsCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryAllExtensionsStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionCritical; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionValue; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryNumberOfExtensions; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntrySingleExtensionCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntrySingleExtensionStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLSignedCrlCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLSignedCrlStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLSingleExtensionCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLSingleExtensionStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLTbsCertListCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLTbsCertListStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLVersion; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3Certificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionCritical; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionValue; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionsCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionsStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateNumberOfExtensions; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3SignedCertificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3SignedCertificateCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_C_TwoCurve; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_EllCurve; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_FieldType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_PrimeCurve; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_PubKeyType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_SigType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X_121Address; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ecPublicKey; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp112r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp112r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp128r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp128r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp160k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp160r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp160r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp192k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp192r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp224k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp224r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp256k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp256r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp384r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp521r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect113r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect113r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect131r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect131r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect163k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect163r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect163r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect193r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect193r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect233k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect233r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect239k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect283k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect283r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect409k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect409r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect571k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect571r1; - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_AC_HANDLE, - ffi.Pointer, - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TUPLEGROUP_PTR, - ) ->() -external int CSSM_AC_AuthCompute( - int ACHandle, - ffi.Pointer BaseAuthorizations, - ffi.Pointer Credentials, - int NumberOfRequestors, - ffi.Pointer Requestors, - ffi.Pointer RequestedAuthorizationPeriod, - ffi.Pointer RequestedAuthorization, - CSSM_TUPLEGROUP_PTR AuthorizationResult, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_AC_HANDLE, - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CSSM_AC_PassThrough( - int ACHandle, - int TPHandle, - int CLHandle, - int CCHandle, - ffi.Pointer DBList, - int PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_CL_CertAbortCache(int CLHandle, int CertHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_CL_CertAbortQuery(int CLHandle, int ResultsHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - CSSM_HANDLE_PTR, - ) ->() -external int CSSM_CL_CertCache( - int CLHandle, - ffi.Pointer Cert, - CSSM_HANDLE_PTR CertHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CertCreateTemplate( - int CLHandle, - int NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertDescribeFormat( - int CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGetAllFields( - int CLHandle, - ffi.Pointer Cert, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGetAllTemplateFields( - int CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_HANDLE, - ffi.Pointer, - CSSM_HANDLE_PTR, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGetFirstCachedFieldValue( - int CLHandle, - int CertHandle, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_HANDLE_PTR, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGetFirstFieldValue( - int CLHandle, - ffi.Pointer Cert, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGetKeyInfo( - int CLHandle, - ffi.Pointer Cert, - ffi.Pointer Key, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CertGetNextCachedFieldValue( - int CLHandle, - int ResultsHandle, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CertGetNextFieldValue( - int CLHandle, - int ResultsHandle, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGroupFromVerifiedBundle( - int CLHandle, - int CCHandle, - ffi.Pointer CertBundle, - ffi.Pointer SignerCert, - ffi.Pointer CertGroup, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CertGroupToSignedBundle( - int CLHandle, - int CCHandle, - ffi.Pointer CertGroupToBundle, - ffi.Pointer BundleInfo, - CSSM_DATA_PTR SignedBundle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CertSign( - int CLHandle, - int CCHandle, - ffi.Pointer CertTemplate, - ffi.Pointer SignScope, - int ScopeSize, - CSSM_DATA_PTR SignedCert, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - uint32, - ) ->() -external int CSSM_CL_CertVerify( - int CLHandle, - int CCHandle, - ffi.Pointer CertToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - int ScopeSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_CC_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CertVerifyWithKey( - int CLHandle, - int CCHandle, - ffi.Pointer CertToBeVerified, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_CL_CrlAbortCache(int CLHandle, int CrlHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_CL_CrlAbortQuery(int CLHandle, int ResultsHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CrlAddCert( - int CLHandle, - int CCHandle, - ffi.Pointer Cert, - int NumberOfFields, - ffi.Pointer CrlEntryFields, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - CSSM_HANDLE_PTR, - ) ->() -external int CSSM_CL_CrlCache( - int CLHandle, - ffi.Pointer Crl, - CSSM_HANDLE_PTR CrlHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CrlCreateTemplate( - int CLHandle, - int NumberOfFields, - ffi.Pointer CrlTemplate, - CSSM_DATA_PTR NewCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CrlDescribeFormat( - int CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CrlGetAllCachedRecordFields( - int CLHandle, - int CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer NumberOfFields, - ffi.Pointer CrlFields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CrlGetAllFields( - int CLHandle, - ffi.Pointer Crl, - ffi.Pointer NumberOfCrlFields, - ffi.Pointer CrlFields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_HANDLE_PTR, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CrlGetFirstCachedFieldValue( - int CLHandle, - int CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_HANDLE_PTR, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CrlGetFirstFieldValue( - int CLHandle, - ffi.Pointer Crl, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CrlGetNextCachedFieldValue( - int CLHandle, - int ResultsHandle, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CrlGetNextFieldValue( - int CLHandle, - int ResultsHandle, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CrlRemoveCert( - int CLHandle, - ffi.Pointer Cert, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CrlSetFields( - int CLHandle, - int NumberOfFields, - ffi.Pointer CrlTemplate, - ffi.Pointer OldCrl, - CSSM_DATA_PTR ModifiedCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CrlSign( - int CLHandle, - int CCHandle, - ffi.Pointer UnsignedCrl, - ffi.Pointer SignScope, - int ScopeSize, - CSSM_DATA_PTR SignedCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - uint32, - ) ->() -external int CSSM_CL_CrlVerify( - int CLHandle, - int CCHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - int ScopeSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_CC_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CrlVerifyWithKey( - int CLHandle, - int CCHandle, - ffi.Pointer CrlToBeVerified, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, ffi.Pointer, CSSM_DATA_PTR) ->() -external int CSSM_CL_FreeFieldValue( - int CLHandle, - ffi.Pointer CertOrCrlOid, - CSSM_DATA_PTR Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, uint32, ffi.Pointer) ->() -external int CSSM_CL_FreeFields( - int CLHandle, - int NumberOfFields, - ffi.Pointer Fields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - CSSM_HANDLE, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_IsCertInCachedCrl( - int CLHandle, - ffi.Pointer Cert, - int CrlHandle, - ffi.Pointer CertFound, - CSSM_DATA_PTR CrlRecordIndex, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_IsCertInCrl( - int CLHandle, - ffi.Pointer Cert, - ffi.Pointer Crl, - ffi.Pointer CertFound, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - uint32, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CSSM_CL_PassThrough( - int CLHandle, - int CCHandle, - int PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_ChangeLoginAcl( - int CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_ChangeLoginOwner( - int CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - ffi.Pointer, - CSSM_PADDING, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateAsymmetricContext( - int CSPHandle, - int AlgorithmID, - ffi.Pointer AccessCred, - ffi.Pointer Key, - int Padding, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - CSSM_KEY_TYPE, - uint32, - ffi.Pointer, - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateDeriveKeyContext( - int CSPHandle, - int AlgorithmID, - int DeriveKeyType, - int DeriveKeyLengthInBits, - ffi.Pointer AccessCred, - ffi.Pointer BaseKey, - int IterationCount, - ffi.Pointer Salt, - ffi.Pointer Seed, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateDigestContext( - int CSPHandle, - int AlgorithmID, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateKeyGenContext( - int CSPHandle, - int AlgorithmID, - int KeySizeInBits, - ffi.Pointer Seed, - ffi.Pointer Salt, - ffi.Pointer StartDate, - ffi.Pointer EndDate, - ffi.Pointer Params, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateMacContext( - int CSPHandle, - int AlgorithmID, - ffi.Pointer Key, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreatePassThroughContext( - int CSPHandle, - ffi.Pointer Key, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - CSSM_SIZE, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateRandomGenContext( - int CSPHandle, - int AlgorithmID, - ffi.Pointer Seed, - int Length, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateSignatureContext( - int CSPHandle, - int AlgorithmID, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - CSSM_ENCRYPT_MODE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_PADDING, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateSymmetricContext( - int CSPHandle, - int AlgorithmID, - int Mode, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer InitVector, - int Padding, - ffi.Pointer Reserved, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_GetLoginAcl( - int CSPHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CSP_HANDLE, CSSM_ACL_OWNER_PROTOTYPE_PTR) ->() -external int CSSM_CSP_GetLoginOwner( - int CSPHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ) ->() -external int CSSM_CSP_GetOperationalStatistics( - int CSPHandle, - ffi.Pointer Statistics, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_Login( - int CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer LoginName, - ffi.Pointer Reserved, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_CSP_Logout(int CSPHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CSP_HANDLE, ffi.Pointer, CSSM_KEY_PTR) ->() -external int CSSM_CSP_ObtainPrivateKeyFromPublicKey( - int CSPHandle, - ffi.Pointer PublicKey, - CSSM_KEY_PTR PrivateKey, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CSSM_CSP_PassThrough( - int CCHandle, - int PassThroughId, - ffi.Pointer InData, - ffi.Pointer> OutData, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_ChangeKeyAcl( - int CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ffi.Pointer Key, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_ChangeKeyOwner( - int CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer NewOwner, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - CSSM_DB_ACCESS_TYPE, - ffi.Pointer, - ) ->() -external int CSSM_DL_Authenticate( - CSSM_DL_DB_HANDLE DLDBHandle, - int AccessRequest, - ffi.Pointer AccessCred, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_ChangeDbAcl( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_ChangeDbOwner( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - CSSM_DB_RECORDTYPE, - ffi.Pointer, - uint32, - ffi.Pointer, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_DL_CreateRelation( - CSSM_DL_DB_HANDLE DLDBHandle, - int RelationID, - ffi.Pointer RelationName, - int NumberOfAttributes, - ffi.Pointer pAttributeInfo, - int NumberOfIndexes, - ffi.Pointer pIndexInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DL_DataAbortQuery( - CSSM_DL_DB_HANDLE DLDBHandle, - int ResultsHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_DL_DB_HANDLE, ffi.Pointer) ->() -external int CSSM_DL_DataDelete( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecordIdentifier, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - ffi.Pointer, - CSSM_HANDLE_PTR, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, - CSSM_DATA_PTR, - ffi.Pointer, - ) ->() -external int CSSM_DL_DataGetFirst( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer Query, - CSSM_HANDLE_PTR ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - ffi.Pointer, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, - CSSM_DATA_PTR, - ) ->() -external int CSSM_DL_DataGetFromUniqueRecordId( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecord, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - CSSM_HANDLE, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, - CSSM_DATA_PTR, - ffi.Pointer, - ) ->() -external int CSSM_DL_DataGetNext( - CSSM_DL_DB_HANDLE DLDBHandle, - int ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - CSSM_DB_RECORDTYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_DataInsert( - CSSM_DL_DB_HANDLE DLDBHandle, - int RecordType, - ffi.Pointer Attributes, - ffi.Pointer Data, - ffi.Pointer UniqueId, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - CSSM_DB_RECORDTYPE, - CSSM_DB_UNIQUE_RECORD_PTR, - ffi.Pointer, - ffi.Pointer, - CSSM_DB_MODIFY_MODE, - ) ->() -external int CSSM_DL_DataModify( - CSSM_DL_DB_HANDLE DLDBHandle, - int RecordType, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, - ffi.Pointer AttributesToBeModified, - ffi.Pointer DataToBeModified, - int ModifyMode, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DL_DbClose(CSSM_DL_DB_HANDLE DLDBHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_DB_ACCESS_TYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_DbCreate( - int DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer DBInfo, - int AccessRequest, - ffi.Pointer CredAndAclEntry, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_DbDelete( - int DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer AccessCred, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_DB_ACCESS_TYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_DbOpen( - int DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - int AccessRequest, - ffi.Pointer AccessCred, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DL_DestroyRelation( - CSSM_DL_DB_HANDLE DLDBHandle, - int RelationID, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DL_FreeNameList(int DLHandle, CSSM_NAME_LIST_PTR NameList); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_DL_DB_HANDLE, CSSM_DB_UNIQUE_RECORD_PTR) ->() -external int CSSM_DL_FreeUniqueRecord( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_GetDbAcl( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_DL_DB_HANDLE, ffi.Pointer>) ->() -external int CSSM_DL_GetDbNameFromHandle( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> DbName, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_DL_HANDLE, ffi.Pointer) ->() -external int CSSM_DL_GetDbNames( - int DLHandle, - ffi.Pointer NameList, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_DL_DB_HANDLE, CSSM_ACL_OWNER_PROTOTYPE_PTR) ->() -external int CSSM_DL_GetDbOwner( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - uint32, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CSSM_DL_PassThrough( - CSSM_DL_DB_HANDLE DLDBHandle, - int PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_DecryptData( - int CCHandle, - ffi.Pointer CipherBufs, - int CipherBufCount, - CSSM_DATA_PTR ClearBufs, - int ClearBufCount, - ffi.Pointer bytesDecrypted, - CSSM_DATA_PTR RemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DecryptDataFinal(int CCHandle, CSSM_DATA_PTR RemData); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DecryptDataInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DecryptDataInitP(int CCHandle, int Privilege); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_DecryptDataP( - int CCHandle, - ffi.Pointer CipherBufs, - int CipherBufCount, - CSSM_DATA_PTR ClearBufs, - int ClearBufCount, - ffi.Pointer bytesDecrypted, - CSSM_DATA_PTR RemData, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_DecryptDataUpdate( - int CCHandle, - ffi.Pointer CipherBufs, - int CipherBufCount, - CSSM_DATA_PTR ClearBufs, - int ClearBufCount, - ffi.Pointer bytesDecrypted, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DeleteContext(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_DeleteContextAttributes( - int CCHandle, - int NumberOfAttributes, - ffi.Pointer ContextAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - CSSM_DATA_PTR, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - ) ->() -external int CSSM_DeriveKey( - int CCHandle, - CSSM_DATA_PTR Param, - int KeyUsage, - int KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR DerivedKey, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - ) ->() -external int CSSM_DigestData( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, - CSSM_DATA_PTR Digest, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_DigestDataClone( - int CCHandle, - ffi.Pointer ClonednewCCHandle, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DigestDataFinal(int CCHandle, CSSM_DATA_PTR Digest); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DigestDataInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) ->() -external int CSSM_DigestDataUpdate( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_EncryptData( - int CCHandle, - ffi.Pointer ClearBufs, - int ClearBufCount, - CSSM_DATA_PTR CipherBufs, - int CipherBufCount, - ffi.Pointer bytesEncrypted, - CSSM_DATA_PTR RemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_EncryptDataFinal(int CCHandle, CSSM_DATA_PTR RemData); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_EncryptDataInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_EncryptDataInitP(int CCHandle, int Privilege); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_EncryptDataP( - int CCHandle, - ffi.Pointer ClearBufs, - int ClearBufCount, - CSSM_DATA_PTR CipherBufs, - int CipherBufCount, - ffi.Pointer bytesEncrypted, - CSSM_DATA_PTR RemData, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_EncryptDataUpdate( - int CCHandle, - ffi.Pointer ClearBufs, - int ClearBufCount, - CSSM_DATA_PTR CipherBufs, - int CipherBufCount, - ffi.Pointer bytesEncrypted, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_FreeContext(CSSM_CONTEXT_PTR Context); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - CSSM_KEY_PTR, - CSSM_BOOL, - ) ->() -external int CSSM_FreeKey( - int CSPHandle, - ffi.Pointer AccessCred, - CSSM_KEY_PTR KeyPtr, - int Delete, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GenerateAlgorithmParams( - int CCHandle, - int ParamBits, - CSSM_DATA_PTR Param, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - ) ->() -external int CSSM_GenerateKey( - int CCHandle, - int KeyUsage, - int KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR Key, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_GenerateKeyP( - int CCHandle, - int KeyUsage, - int KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR Key, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - uint32, - ffi.Pointer, - CSSM_KEY_PTR, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - ) ->() -external int CSSM_GenerateKeyPair( - int CCHandle, - int PublicKeyUsage, - int PublicKeyAttr, - ffi.Pointer PublicKeyLabel, - CSSM_KEY_PTR PublicKey, - int PrivateKeyUsage, - int PrivateKeyAttr, - ffi.Pointer PrivateKeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR PrivateKey, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - uint32, - ffi.Pointer, - CSSM_KEY_PTR, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_GenerateKeyPairP( - int CCHandle, - int PublicKeyUsage, - int PublicKeyAttr, - ffi.Pointer PublicKeyLabel, - CSSM_KEY_PTR PublicKey, - int PrivateKeyUsage, - int PrivateKeyAttr, - ffi.Pointer PrivateKeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR PrivateKey, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - ) ->() -external int CSSM_GenerateMac( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, - CSSM_DATA_PTR Mac, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GenerateMacFinal(int CCHandle, CSSM_DATA_PTR Mac); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GenerateMacInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) ->() -external int CSSM_GenerateMacUpdate( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GenerateRandom(int CCHandle, CSSM_DATA_PTR RandomNumber); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_MODULE_HANDLE, CSSM_API_MEMORY_FUNCS_PTR) ->() -external int CSSM_GetAPIMemoryFunctions( - int AddInHandle, - CSSM_API_MEMORY_FUNCS_PTR AppMemoryFuncs, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer) ->() -external int CSSM_GetContext( - int CCHandle, - ffi.Pointer Context, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_GetContextAttribute( - ffi.Pointer Context, - int AttributeType, - ffi.Pointer ContextAttribute, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_GetKeyAcl( - int CSPHandle, - ffi.Pointer Key, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - CSSM_ACL_OWNER_PROTOTYPE_PTR, - ) ->() -external int CSSM_GetKeyOwner( - int CSPHandle, - ffi.Pointer Key, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GetModuleGUIDFromHandle( - int ModuleHandle, - CSSM_GUID_PTR ModuleGUID, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_GetPrivilege(ffi.Pointer Privilege); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GetSubserviceUIDFromHandle( - int ModuleHandle, - CSSM_SUBSERVICE_UID_PTR SubserviceUID, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - ) ->() -external int CSSM_GetTimeValue( - int CSPHandle, - int TimeAlgorithm, - ffi.Pointer TimeData, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - CSSM_PRIVILEGE_SCOPE, - ffi.Pointer, - CSSM_KEY_HIERARCHY, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_Init( - ffi.Pointer Version, - int Scope, - ffi.Pointer CallerGuid, - int KeyHierarchy, - ffi.Pointer PvcPolicy, - ffi.Pointer Reserved, -); - -@Deprecated('Deprecated') -@ffi.Native, CSSM_KEY_HIERARCHY)>() -external int CSSM_Introduce(ffi.Pointer ModuleID, int KeyHierarchy); - -@Deprecated('Deprecated') -@ffi.Native, CSSM_GUID_PTR)>() -external int CSSM_ListAttachedModuleManagers( - ffi.Pointer NumberOfModuleManagers, - CSSM_GUID_PTR ModuleManagerGuids, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - uint32, - CSSM_SERVICE_TYPE, - CSSM_ATTACH_FLAGS, - CSSM_KEY_HIERARCHY, - ffi.Pointer, - uint32, - ffi.Pointer, - CSSM_MODULE_HANDLE_PTR, - ) ->() -external int CSSM_ModuleAttach( - ffi.Pointer ModuleGuid, - ffi.Pointer Version, - ffi.Pointer MemoryFuncs, - int SubserviceID, - int SubServiceType, - int AttachFlags, - int KeyHierarchy, - ffi.Pointer FunctionTable, - int NumFunctionTable, - ffi.Pointer Reserved, - CSSM_MODULE_HANDLE_PTR NewModuleHandle, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_ModuleDetach(int ModuleHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - CSSM_KEY_HIERARCHY, - CSSM_API_ModuleEventHandler, - ffi.Pointer, - ) ->() -external int CSSM_ModuleLoad( - ffi.Pointer ModuleGuid, - int KeyHierarchy, - CSSM_API_ModuleEventHandler AppNotifyCallback, - ffi.Pointer AppNotifyCallbackCtx, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - CSSM_API_ModuleEventHandler, - ffi.Pointer, - ) ->() -external int CSSM_ModuleUnload( - ffi.Pointer ModuleGuid, - CSSM_API_ModuleEventHandler AppNotifyCallback, - ffi.Pointer AppNotifyCallbackCtx, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - CSSM_KEY_SIZE_PTR, - ) ->() -external int CSSM_QueryKeySizeInBits( - int CSPHandle, - int CCHandle, - ffi.Pointer Key, - CSSM_KEY_SIZE_PTR KeySize, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - CSSM_BOOL, - uint32, - CSSM_QUERY_SIZE_DATA_PTR, - ) ->() -external int CSSM_QuerySize( - int CCHandle, - int Encrypt, - int QuerySizeCount, - CSSM_QUERY_SIZE_DATA_PTR DataBlockSizes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_RetrieveCounter(int CSPHandle, CSSM_DATA_PTR Counter); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_RetrieveUniqueId(int CSPHandle, CSSM_DATA_PTR UniqueID$1); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_SetContext(int CCHandle, ffi.Pointer Context); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_SetPrivilege(int Privilege); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_ALGORITHMS, - CSSM_DATA_PTR, - ) ->() -external int CSSM_SignData( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, - int DigestAlgorithm, - CSSM_DATA_PTR Signature, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_SignDataFinal(int CCHandle, CSSM_DATA_PTR Signature); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_SignDataInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) ->() -external int CSSM_SignDataUpdate( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - ) ->() -external int CSSM_TP_ApplyCrlToDb( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer CrlToBeApplied, - ffi.Pointer SignerCertGroup, - ffi.Pointer ApplyCrlVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CertCreateTemplate( - int TPHandle, - int CLHandle, - int NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_CertGetAllTemplateFields( - int TPHandle, - int CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_CertGroupConstruct( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer DBList, - ffi.Pointer ConstructParams, - ffi.Pointer CertGroupFrag, - ffi.Pointer CertGroup, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_CertGroupPrune( - int TPHandle, - int CLHandle, - ffi.Pointer DBList, - ffi.Pointer OrderedCertGroup, - ffi.Pointer PrunedCertGroup, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_CertGroupToTupleGroup( - int TPHandle, - int CLHandle, - ffi.Pointer CertGroup, - ffi.Pointer TupleGroup, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - ) ->() -external int CSSM_TP_CertGroupVerify( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer CertGroupToBeVerified, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_TP_CertReclaimAbort(int TPHandle, int KeyCacheHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - uint32, - CSSM_LONG_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ) ->() -external int CSSM_TP_CertReclaimKey( - int TPHandle, - ffi.Pointer CertGroup, - int CertIndex, - int KeyCacheHandle, - int CSPHandle, - ffi.Pointer CredAndAclEntry, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CertRemoveFromCrlTemplate( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRemoved, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - CSSM_DATA_PTR NewCrlTemplate, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - CSSM_TP_CERTCHANGE_REASON, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CertRevoke( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRevoked, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - int Reason, - CSSM_DATA_PTR NewCrlTemplate, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CertSign( - int TPHandle, - int CLHandle, - int CCHandle, - ffi.Pointer CertTemplateToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCert, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_ConfirmCredResult( - int TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer Responses, - ffi.Pointer PreferredAuthority, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CrlCreateTemplate( - int TPHandle, - int CLHandle, - int NumberOfFields, - ffi.Pointer CrlFields, - CSSM_DATA_PTR NewCrlTemplate, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CrlSign( - int TPHandle, - int CLHandle, - int CCHandle, - ffi.Pointer CrlToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - ) ->() -external int CSSM_TP_CrlVerify( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCertGroup, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - CSSM_TP_FORM_TYPE, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_FormRequest( - int TPHandle, - ffi.Pointer PreferredAuthority, - int FormType, - CSSM_DATA_PTR BlankForm, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_TP_FORM_TYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_ACCESS_CREDENTIALS_PTR, - ) ->() -external int CSSM_TP_FormSubmit( - int TPHandle, - int FormType, - ffi.Pointer Form, - ffi.Pointer ClearanceAuthority, - ffi.Pointer RepresentedAuthority, - CSSM_ACCESS_CREDENTIALS_PTR Credentials, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CSSM_TP_PassThrough( - int TPHandle, - int CLHandle, - int CCHandle, - ffi.Pointer DBList, - int PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_ReceiveConfirmation( - int TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer Responses, - ffi.Pointer ElapsedTime, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_RetrieveCredResult( - int TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer EstimatedTime, - ffi.Pointer ConfirmationRequired, - ffi.Pointer RetrieveOutput, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - CSSM_TP_AUTHORITY_REQUEST_TYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_SubmitCredRequest( - int TPHandle, - ffi.Pointer PreferredAuthority, - int RequestType, - ffi.Pointer RequestInput, - ffi.Pointer CallerAuthContext, - ffi.Pointer EstimatedTime, - CSSM_DATA_PTR ReferenceIdentifier, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_TupleGroupToCertGroup( - int TPHandle, - int CLHandle, - ffi.Pointer TupleGroup, - ffi.Pointer CertTemplates, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_Terminate(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_Unintroduce(ffi.Pointer ModuleID); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - CSSM_DATA_PTR, - ) ->() -external int CSSM_UnwrapKey( - int CCHandle, - ffi.Pointer PublicKey, - ffi.Pointer WrappedKey, - int KeyUsage, - int KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR UnwrappedKey, - CSSM_DATA_PTR DescriptiveData, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - CSSM_DATA_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_UnwrapKeyP( - int CCHandle, - ffi.Pointer PublicKey, - ffi.Pointer WrappedKey, - int KeyUsage, - int KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR UnwrappedKey, - CSSM_DATA_PTR DescriptiveData, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_UpdateContextAttributes( - int CCHandle, - int NumberOfAttributes, - ffi.Pointer ContextAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_ALGORITHMS, - ffi.Pointer, - ) ->() -external int CSSM_VerifyData( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, - int DigestAlgorithm, - ffi.Pointer Signature, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_VerifyDataFinal( - int CCHandle, - ffi.Pointer Signature, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_VerifyDataInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) ->() -external int CSSM_VerifyDataUpdate( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_VerifyDevice( - int CSPHandle, - ffi.Pointer DeviceCert, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_VerifyMac( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, - ffi.Pointer Mac, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_VerifyMacFinal(int CCHandle, ffi.Pointer Mac); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_VerifyMacInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) ->() -external int CSSM_VerifyMacUpdate( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_WRAP_KEY_PTR, - ) ->() -external int CSSM_WrapKey( - int CCHandle, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer DescriptiveData, - CSSM_WRAP_KEY_PTR WrappedKey, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_WRAP_KEY_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_WrapKeyP( - int CCHandle, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer DescriptiveData, - CSSM_WRAP_KEY_PTR WrappedKey, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void CSSetComponentsThreadMode(int mode); - -@ffi.Native() -external CFArrayRef CTFontCollectionCopyExclusionDescriptors( - CTFontCollectionRef collection, -); - -@ffi.Native() -external CFArrayRef CTFontCollectionCopyFontAttribute( - CTFontCollectionRef collection, - CFStringRef attributeName, - int options, -); - -@ffi.Native() -external CFArrayRef CTFontCollectionCopyFontAttributes( - CTFontCollectionRef collection, - CFSetRef attributeNames, - int options, -); - -@ffi.Native() -external CFArrayRef CTFontCollectionCopyQueryDescriptors( - CTFontCollectionRef collection, -); - -@ffi.Native< - CTFontCollectionRef Function(CTFontCollectionRef, CFArrayRef, CFDictionaryRef) ->() -external CTFontCollectionRef CTFontCollectionCreateCopyWithFontDescriptors( - CTFontCollectionRef original, - CFArrayRef queryDescriptors, - CFDictionaryRef options, -); - -@ffi.Native() -external CTFontCollectionRef CTFontCollectionCreateFromAvailableFonts( - CFDictionaryRef options, -); - -@ffi.Native() -external CFArrayRef CTFontCollectionCreateMatchingFontDescriptors( - CTFontCollectionRef collection, -); - -@ffi.Native< - CFArrayRef Function(CTFontCollectionRef, CFStringRef, CFDictionaryRef) ->() -external CFArrayRef CTFontCollectionCreateMatchingFontDescriptorsForFamily( - CTFontCollectionRef collection, - CFStringRef familyName, - CFDictionaryRef options, -); - -@ffi.Native< - CFArrayRef Function( - CTFontCollectionRef, - CTFontCollectionSortDescriptorsCallback, - ffi.Pointer, - ) ->() -external CFArrayRef -CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback( - CTFontCollectionRef collection, - CTFontCollectionSortDescriptorsCallback sortCallback, - ffi.Pointer refCon, -); - -@ffi.Native() -external CFArrayRef CTFontCollectionCreateMatchingFontDescriptorsWithOptions( - CTFontCollectionRef collection, - CFDictionaryRef options, -); - -@ffi.Native() -external CTMutableFontCollectionRef CTFontCollectionCreateMutableCopy( - CTFontCollectionRef original, -); - -@ffi.Native() -external CTFontCollectionRef CTFontCollectionCreateWithFontDescriptors( - CFArrayRef queryDescriptors, - CFDictionaryRef options, -); - -@ffi.Native() -external int CTFontCollectionGetTypeID(); - -@ffi.Native() -external void CTFontCollectionSetExclusionDescriptors( - CTMutableFontCollectionRef collection, - CFArrayRef descriptors, -); - -@ffi.Native() -external void CTFontCollectionSetQueryDescriptors( - CTMutableFontCollectionRef collection, - CFArrayRef descriptors, -); - -@ffi.Native() -external CFTypeRef CTFontCopyAttribute(CTFontRef font, CFStringRef attribute); - -@ffi.Native() -external CFArrayRef CTFontCopyAvailableTables(CTFontRef font, int options); - -@ffi.Native() -external CFCharacterSetRef CTFontCopyCharacterSet(CTFontRef font); - -@ffi.Native() -external CFArrayRef CTFontCopyDefaultCascadeListForLanguages( - CTFontRef font, - CFArrayRef languagePrefList, -); - -@ffi.Native() -external CFStringRef CTFontCopyDisplayName(CTFontRef font); - -@ffi.Native() -external CFStringRef CTFontCopyFamilyName(CTFontRef font); - -@ffi.Native() -external CFArrayRef CTFontCopyFeatureSettings(CTFontRef font); - -@ffi.Native() -external CFArrayRef CTFontCopyFeatures(CTFontRef font); - -@ffi.Native() -external CTFontDescriptorRef CTFontCopyFontDescriptor(CTFontRef font); - -@ffi.Native() -external CFStringRef CTFontCopyFullName(CTFontRef font); - -@ffi.Native)>() -external CGFontRef CTFontCopyGraphicsFont( - CTFontRef font, - ffi.Pointer attributes, -); - -@ffi.Native< - CFStringRef Function(CTFontRef, CFStringRef, ffi.Pointer) ->() -external CFStringRef CTFontCopyLocalizedName( - CTFontRef font, - CFStringRef nameKey, - ffi.Pointer actualLanguage, -); - -@ffi.Native() -external CFStringRef CTFontCopyName(CTFontRef font, CFStringRef nameKey); - -@ffi.Native() -external CFStringRef CTFontCopyNameForGlyph(CTFontRef font, int glyph); - -@ffi.Native() -external CFStringRef CTFontCopyPostScriptName(CTFontRef font); - -@ffi.Native() -external CFArrayRef CTFontCopySupportedLanguages(CTFontRef font); - -@ffi.Native() -external CFDataRef CTFontCopyTable(CTFontRef font, int table, int options); - -@ffi.Native() -external CFDictionaryRef CTFontCopyTraits(CTFontRef font); - -@ffi.Native() -external CFDictionaryRef CTFontCopyVariation(CTFontRef font); - -@ffi.Native() -external CFArrayRef CTFontCopyVariationAxes(CTFontRef font); - -@ffi.Native< - CTFontRef Function( - CTFontRef, - CGFloat, - ffi.Pointer, - CTFontDescriptorRef, - ) ->() -external CTFontRef CTFontCreateCopyWithAttributes( - CTFontRef font, - double size, - ffi.Pointer matrix, - CTFontDescriptorRef attributes, -); - -@ffi.Native< - CTFontRef Function( - CTFontRef, - CGFloat, - ffi.Pointer, - CFStringRef, - ) ->() -external CTFontRef CTFontCreateCopyWithFamily( - CTFontRef font, - double size, - ffi.Pointer matrix, - CFStringRef family, -); - -@ffi.Native< - CTFontRef Function( - CTFontRef, - CGFloat, - ffi.Pointer, - ffi.Uint32, - ffi.Uint32, - ) ->() -external CTFontRef CTFontCreateCopyWithSymbolicTraits( - CTFontRef font, - double size, - ffi.Pointer matrix, - int symTraitValue, - int symTraitMask, -); - -@ffi.Native() -external CTFontRef CTFontCreateForString( - CTFontRef currentFont, - CFStringRef string, - CFRange range, -); - -@ffi.Native() -external CTFontRef CTFontCreateForStringWithLanguage( - CTFontRef currentFont, - CFStringRef string, - CFRange range, - CFStringRef language, -); - -@ffi.Native< - CGPathRef Function(CTFontRef, CGGlyph, ffi.Pointer) ->() -external CGPathRef CTFontCreatePathForGlyph( - CTFontRef font, - int glyph, - ffi.Pointer matrix, -); - -@ffi.Native( - symbol: 'CTFontCreateUIFontForLanguage', -) -external CTFontRef _CTFontCreateUIFontForLanguage( - int uiType, - double size, - CFStringRef language, -); - -CTFontRef CTFontCreateUIFontForLanguage( - CTFontUIFontType uiType, - DartCGFloat size, - CFStringRef language, -) { - return _CTFontCreateUIFontForLanguage(uiType.value, size, language); -} - -@ffi.Native< - CTFontRef Function( - CTFontDescriptorRef, - CGFloat, - ffi.Pointer, - ) ->() -external CTFontRef CTFontCreateWithFontDescriptor( - CTFontDescriptorRef descriptor, - double size, - ffi.Pointer matrix, -); - -@ffi.Native< - CTFontRef Function( - CTFontDescriptorRef, - CGFloat, - ffi.Pointer, - CFOptionFlags, - ) ->() -external CTFontRef CTFontCreateWithFontDescriptorAndOptions( - CTFontDescriptorRef descriptor, - double size, - ffi.Pointer matrix, - int options, -); - -@ffi.Native< - CTFontRef Function( - CGFontRef, - CGFloat, - ffi.Pointer, - CTFontDescriptorRef, - ) ->() -external CTFontRef CTFontCreateWithGraphicsFont( - CGFontRef graphicsFont, - double size, - ffi.Pointer matrix, - CTFontDescriptorRef attributes, -); - -@ffi.Native< - CTFontRef Function(CFStringRef, CGFloat, ffi.Pointer) ->() -external CTFontRef CTFontCreateWithName( - CFStringRef name, - double size, - ffi.Pointer matrix, -); - -@ffi.Native< - CTFontRef Function( - CFStringRef, - CGFloat, - ffi.Pointer, - CFOptionFlags, - ) ->() -external CTFontRef CTFontCreateWithNameAndOptions( - CFStringRef name, - double size, - ffi.Pointer matrix, - int options, -); - -@Deprecated('ATS is deprecated') -@ffi.Native< - CTFontRef Function( - ATSFontRef, - CGFloat, - ffi.Pointer, - CTFontDescriptorRef, - ) ->() -external CTFontRef CTFontCreateWithPlatformFont( - int platformFont, - double size, - ffi.Pointer matrix, - CTFontDescriptorRef attributes, -); - -@Deprecated('Quickdraw font references are deprecated') -@ffi.Native< - CTFontRef Function(ConstStr255Param, ffi.Int16, ffi.Uint8, CGFloat) ->() -external CTFontRef CTFontCreateWithQuickdrawInstance( - ConstStr255Param name, - int identifier, - int style, - double size, -); - -@ffi.Native() -external CFTypeRef CTFontDescriptorCopyAttribute( - CTFontDescriptorRef descriptor, - CFStringRef attribute, -); - -@ffi.Native() -external CFDictionaryRef CTFontDescriptorCopyAttributes( - CTFontDescriptorRef descriptor, -); - -@ffi.Native< - CFTypeRef Function(CTFontDescriptorRef, CFStringRef, ffi.Pointer) ->() -external CFTypeRef CTFontDescriptorCopyLocalizedAttribute( - CTFontDescriptorRef descriptor, - CFStringRef attribute, - ffi.Pointer language, -); - -@ffi.Native< - CTFontDescriptorRef Function(CTFontDescriptorRef, CFDictionaryRef) ->() -external CTFontDescriptorRef CTFontDescriptorCreateCopyWithAttributes( - CTFontDescriptorRef original, - CFDictionaryRef attributes, -); - -@ffi.Native() -external CTFontDescriptorRef CTFontDescriptorCreateCopyWithFamily( - CTFontDescriptorRef original, - CFStringRef family, -); - -@ffi.Native< - CTFontDescriptorRef Function(CTFontDescriptorRef, CFNumberRef, CFNumberRef) ->() -external CTFontDescriptorRef CTFontDescriptorCreateCopyWithFeature( - CTFontDescriptorRef original, - CFNumberRef featureTypeIdentifier, - CFNumberRef featureSelectorIdentifier, -); - -@ffi.Native< - CTFontDescriptorRef Function(CTFontDescriptorRef, ffi.Uint32, ffi.Uint32) ->() -external CTFontDescriptorRef CTFontDescriptorCreateCopyWithSymbolicTraits( - CTFontDescriptorRef original, - int symTraitValue, - int symTraitMask, -); - -@ffi.Native< - CTFontDescriptorRef Function(CTFontDescriptorRef, CFNumberRef, CGFloat) ->() -external CTFontDescriptorRef CTFontDescriptorCreateCopyWithVariation( - CTFontDescriptorRef original, - CFNumberRef variationIdentifier, - double variationValue, -); - -@ffi.Native() -external CTFontDescriptorRef CTFontDescriptorCreateMatchingFontDescriptor( - CTFontDescriptorRef descriptor, - CFSetRef mandatoryAttributes, -); - -@ffi.Native() -external CFArrayRef CTFontDescriptorCreateMatchingFontDescriptors( - CTFontDescriptorRef descriptor, - CFSetRef mandatoryAttributes, -); - -@ffi.Native() -external CTFontDescriptorRef CTFontDescriptorCreateWithAttributes( - CFDictionaryRef attributes, -); - -@ffi.Native() -external CTFontDescriptorRef CTFontDescriptorCreateWithNameAndSize( - CFStringRef name, - double size, -); - -@ffi.Native() -external int CTFontDescriptorGetTypeID(); - -@ffi.Native< - ffi.Bool Function(CFArrayRef, CFSetRef, CTFontDescriptorProgressHandler) ->(symbol: 'CTFontDescriptorMatchFontDescriptorsWithProgressHandler') -external bool _CTFontDescriptorMatchFontDescriptorsWithProgressHandler( - CFArrayRef descriptors, - CFSetRef mandatoryAttributes, - CTFontDescriptorProgressHandler progressBlock, -); - -bool CTFontDescriptorMatchFontDescriptorsWithProgressHandler( - CFArrayRef descriptors, - CFSetRef mandatoryAttributes, - DartCTFontDescriptorProgressHandler progressBlock, -) { - final _$$ref = progressBlock.ref; - return _CTFontDescriptorMatchFontDescriptorsWithProgressHandler( - descriptors, - mandatoryAttributes, - _$$ref.pointer, - ); -} - -@ffi.Native< - ffi.Void Function( - CTFontRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - CGContextRef, - ) ->() -external void CTFontDrawGlyphs( - CTFontRef font, - ffi.Pointer glyphs, - ffi.Pointer positions, - int count, - CGContextRef context, -); - -@ffi.Native< - ffi.Void Function( - CTFontRef, - ffi.Pointer, - objc.CGPoint, - CGContextRef, - ) ->(symbol: 'CTFontDrawImageFromAdaptiveImageProviderAtPoint') -external void _CTFontDrawImageFromAdaptiveImageProviderAtPoint( - CTFontRef font, - ffi.Pointer provider, - objc.CGPoint point, - CGContextRef context, -); - -void CTFontDrawImageFromAdaptiveImageProviderAtPoint( - CTFontRef font, - CTAdaptiveImageProviding provider, - objc.CGPoint point, - CGContextRef context, -) { - final _$$ref = provider.ref; - return _CTFontDrawImageFromAdaptiveImageProviderAtPoint( - font, - _$$ref.pointer, - point, - context, - ); -} - -@ffi.Native< - ffi.Double Function( - CTFontRef, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->(symbol: 'CTFontGetAdvancesForGlyphs') -external double _CTFontGetAdvancesForGlyphs( - CTFontRef font, - int orientation, - ffi.Pointer glyphs, - ffi.Pointer advances, - int count, -); - -double CTFontGetAdvancesForGlyphs( - CTFontRef font, - CTFontOrientation orientation, - ffi.Pointer glyphs, - ffi.Pointer advances, - DartCFIndex count, -) { - return _CTFontGetAdvancesForGlyphs( - font, - orientation.value, - glyphs, - advances, - count, - ); -} - -@ffi.Native() -external double CTFontGetAscent(CTFontRef font); - -@ffi.Native() -external objc.CGRect CTFontGetBoundingBox(CTFontRef font); - -@ffi.Native< - objc.CGRect Function( - CTFontRef, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->(symbol: 'CTFontGetBoundingRectsForGlyphs') -external objc.CGRect _CTFontGetBoundingRectsForGlyphs( - CTFontRef font, - int orientation, - ffi.Pointer glyphs, - ffi.Pointer boundingRects, - int count, -); - -objc.CGRect CTFontGetBoundingRectsForGlyphs( - CTFontRef font, - CTFontOrientation orientation, - ffi.Pointer glyphs, - ffi.Pointer boundingRects, - DartCFIndex count, -) { - return _CTFontGetBoundingRectsForGlyphs( - font, - orientation.value, - glyphs, - boundingRects, - count, - ); -} - -@ffi.Native() -external double CTFontGetCapHeight(CTFontRef font); - -@ffi.Native() -external double CTFontGetDescent(CTFontRef font); - -@ffi.Native() -external int CTFontGetGlyphCount(CTFontRef font); - -@ffi.Native() -external int CTFontGetGlyphWithName(CTFontRef font, CFStringRef glyphName); - -@ffi.Native< - ffi.Bool Function( - CTFontRef, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->() -external bool CTFontGetGlyphsForCharacters( - CTFontRef font, - ffi.Pointer characters, - ffi.Pointer glyphs, - int count, -); - -@ffi.Native() -external double CTFontGetLeading(CTFontRef font); - -@ffi.Native< - CFIndex Function(CTFontRef, CGGlyph, ffi.Pointer, CFIndex) ->() -external int CTFontGetLigatureCaretPositions( - CTFontRef font, - int glyph, - ffi.Pointer positions, - int maxPositions, -); - -@ffi.Native() -external CGAffineTransform CTFontGetMatrix(CTFontRef font); - -@ffi.Native< - objc.CGRect Function( - CTFontRef, - ffi.Pointer, - ffi.Pointer, - CFIndex, - CFOptionFlags, - ) ->() -external objc.CGRect CTFontGetOpticalBoundsForGlyphs( - CTFontRef font, - ffi.Pointer glyphs, - ffi.Pointer boundingRects, - int count, - int options, -); - -@Deprecated('ATS is deprecated') -@ffi.Native)>() -external int CTFontGetPlatformFont( - CTFontRef font, - ffi.Pointer attributes, -); - -@ffi.Native() -external double CTFontGetSize(CTFontRef font); - -@ffi.Native() -external double CTFontGetSlantAngle(CTFontRef font); - -@ffi.Native() -external int CTFontGetStringEncoding(CTFontRef font); - -@ffi.Native() -external int CTFontGetSymbolicTraits(CTFontRef font); - -@ffi.Native() -external int CTFontGetTypeID(); - -@ffi.Native)>( - symbol: 'CTFontGetTypographicBoundsForAdaptiveImageProvider', -) -external objc.CGRect _CTFontGetTypographicBoundsForAdaptiveImageProvider( - CTFontRef font, - ffi.Pointer provider, -); - -objc.CGRect CTFontGetTypographicBoundsForAdaptiveImageProvider( - CTFontRef font, - CTAdaptiveImageProviding? provider, -) { - final _$$ref = provider?.ref; - return _CTFontGetTypographicBoundsForAdaptiveImageProvider( - font, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native() -external double CTFontGetUnderlinePosition(CTFontRef font); - -@ffi.Native() -external double CTFontGetUnderlineThickness(CTFontRef font); - -@ffi.Native() -external int CTFontGetUnitsPerEm(CTFontRef font); - -@ffi.Native< - ffi.Void Function( - CTFontRef, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->() -external void CTFontGetVerticalTranslationsForGlyphs( - CTFontRef font, - ffi.Pointer glyphs, - ffi.Pointer translations, - int count, -); - -@ffi.Native() -external double CTFontGetXHeight(CTFontRef font); - -@ffi.Native() -external bool CTFontHasTable(CTFontRef font, int tag); - -@ffi.Native< - CFIndex Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CTFontManagerCompareFontFamilyNames') -external int _CTFontManagerCompareFontFamilyNames( - ffi.Pointer family1, - ffi.Pointer family2, - ffi.Pointer context, -); - -CFComparisonResult CTFontManagerCompareFontFamilyNames( - ffi.Pointer family1, - ffi.Pointer family2, - ffi.Pointer context, -) { - return CFComparisonResult.fromValue( - _CTFontManagerCompareFontFamilyNames(family1, family2, context), - ); -} - -@ffi.Native() -external CFArrayRef CTFontManagerCopyAvailableFontFamilyNames(); - -@ffi.Native() -external CFArrayRef CTFontManagerCopyAvailableFontURLs(); - -@ffi.Native() -external CFArrayRef CTFontManagerCopyAvailablePostScriptNames(); - -@ffi.Native( - symbol: 'CTFontManagerCopyRegisteredFontDescriptors', -) -external CFArrayRef _CTFontManagerCopyRegisteredFontDescriptors( - int scope, - bool enabled, -); - -CFArrayRef CTFontManagerCopyRegisteredFontDescriptors( - CTFontManagerScope scope, - bool enabled, -) { - return _CTFontManagerCopyRegisteredFontDescriptors(scope.value, enabled); -} - -@ffi.Native() -external CTFontDescriptorRef CTFontManagerCreateFontDescriptorFromData( - CFDataRef data, -); - -@ffi.Native() -external CFArrayRef CTFontManagerCreateFontDescriptorsFromData(CFDataRef data); - -@ffi.Native() -external CFArrayRef CTFontManagerCreateFontDescriptorsFromURL(CFURLRef fileURL); - -@Deprecated('This functionality will be removed in a future release') -@ffi.Native< - CFRunLoopSourceRef Function(CFIndex, ffi.Pointer) ->(symbol: 'CTFontManagerCreateFontRequestRunLoopSource') -external CFRunLoopSourceRef _CTFontManagerCreateFontRequestRunLoopSource( - int sourceOrder, - ffi.Pointer createMatchesCallback, -); - -CFRunLoopSourceRef CTFontManagerCreateFontRequestRunLoopSource( - DartCFIndex sourceOrder, - objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - > - createMatchesCallback, -) { - final _$$ref = createMatchesCallback.ref; - return _CTFontManagerCreateFontRequestRunLoopSource( - sourceOrder, - _$$ref.pointer, - ); -} - -@ffi.Native() -external void CTFontManagerEnableFontDescriptors( - CFArrayRef descriptors, - bool enable, -); - -@ffi.Native( - symbol: 'CTFontManagerGetAutoActivationSetting', -) -external int _CTFontManagerGetAutoActivationSetting( - CFStringRef bundleIdentifier, -); - -CTFontManagerAutoActivationSetting CTFontManagerGetAutoActivationSetting( - CFStringRef bundleIdentifier, -) { - return CTFontManagerAutoActivationSetting.fromValue( - _CTFontManagerGetAutoActivationSetting(bundleIdentifier), - ); -} - -@ffi.Native( - symbol: 'CTFontManagerGetScopeForURL', -) -external int _CTFontManagerGetScopeForURL(CFURLRef fontURL); - -CTFontManagerScope CTFontManagerGetScopeForURL(CFURLRef fontURL) { - return CTFontManagerScope.fromValue(_CTFontManagerGetScopeForURL(fontURL)); -} - -@ffi.Native() -external bool CTFontManagerIsSupportedFont(CFURLRef fontURL); - -@ffi.Native< - ffi.Void Function( - CFArrayRef, - ffi.Uint32, - ffi.Bool, - ffi.Pointer, - ) ->(symbol: 'CTFontManagerRegisterFontDescriptors') -external void _CTFontManagerRegisterFontDescriptors( - CFArrayRef fontDescriptors, - int scope, - bool enabled, - ffi.Pointer registrationHandler, -); - -void CTFontManagerRegisterFontDescriptors( - CFArrayRef fontDescriptors, - CTFontManagerScope scope, - bool enabled, - objc.ObjCBlock, ffi.Bool)>? - registrationHandler, -) { - final _$$ref = registrationHandler?.ref; - return _CTFontManagerRegisterFontDescriptors( - fontDescriptors, - scope.value, - enabled, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native< - ffi.Void Function( - CFArrayRef, - ffi.Uint32, - ffi.Bool, - ffi.Pointer, - ) ->(symbol: 'CTFontManagerRegisterFontURLs') -external void _CTFontManagerRegisterFontURLs( - CFArrayRef fontURLs, - int scope, - bool enabled, - ffi.Pointer registrationHandler, -); - -void CTFontManagerRegisterFontURLs( - CFArrayRef fontURLs, - CTFontManagerScope scope, - bool enabled, - objc.ObjCBlock, ffi.Bool)>? - registrationHandler, -) { - final _$$ref = registrationHandler?.ref; - return _CTFontManagerRegisterFontURLs( - fontURLs, - scope.value, - enabled, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native)>( - symbol: 'CTFontManagerRegisterFontsForURL', -) -external bool _CTFontManagerRegisterFontsForURL( - CFURLRef fontURL, - int scope, - ffi.Pointer error, -); - -bool CTFontManagerRegisterFontsForURL( - CFURLRef fontURL, - CTFontManagerScope scope, - ffi.Pointer error, -) { - return _CTFontManagerRegisterFontsForURL(fontURL, scope.value, error); -} - -@Deprecated('Deprecated') -@ffi.Native)>( - symbol: 'CTFontManagerRegisterFontsForURLs', -) -external bool _CTFontManagerRegisterFontsForURLs( - CFArrayRef fontURLs, - int scope, - ffi.Pointer errors, -); - -bool CTFontManagerRegisterFontsForURLs( - CFArrayRef fontURLs, - CTFontManagerScope scope, - ffi.Pointer errors, -) { - return _CTFontManagerRegisterFontsForURLs(fontURLs, scope.value, errors); -} - -@ffi.Native< - ffi.Void Function( - CFArrayRef, - CFBundleRef, - ffi.Uint32, - ffi.Bool, - ffi.Pointer, - ) ->(symbol: 'CTFontManagerRegisterFontsWithAssetNames') -external void _CTFontManagerRegisterFontsWithAssetNames( - CFArrayRef fontAssetNames, - CFBundleRef bundle, - int scope, - bool enabled, - ffi.Pointer registrationHandler, -); - -void CTFontManagerRegisterFontsWithAssetNames( - CFArrayRef fontAssetNames, - CFBundleRef bundle, - CTFontManagerScope scope, - bool enabled, - objc.ObjCBlock, ffi.Bool)>? - registrationHandler, -) { - final _$$ref = registrationHandler?.ref; - return _CTFontManagerRegisterFontsWithAssetNames( - fontAssetNames, - bundle, - scope.value, - enabled, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@Deprecated( - 'Use CTFontManagerCreateFontDescriptorsFromData or CTFontManagerRegisterFontsForURL', -) -@ffi.Native)>() -external bool CTFontManagerRegisterGraphicsFont( - CGFontRef font, - ffi.Pointer error, -); - -@ffi.Native)>( - symbol: 'CTFontManagerRequestFonts', -) -external void _CTFontManagerRequestFonts( - CFArrayRef fontDescriptors, - ffi.Pointer completionHandler, -); - -void CTFontManagerRequestFonts( - CFArrayRef fontDescriptors, - objc.ObjCBlock)> completionHandler, -) { - final _$$ref = completionHandler.ref; - return _CTFontManagerRequestFonts(fontDescriptors, _$$ref.pointer); -} - -@ffi.Native( - symbol: 'CTFontManagerSetAutoActivationSetting', -) -external void _CTFontManagerSetAutoActivationSetting( - CFStringRef bundleIdentifier, - int setting, -); - -void CTFontManagerSetAutoActivationSetting( - CFStringRef bundleIdentifier, - CTFontManagerAutoActivationSetting setting, -) { - return _CTFontManagerSetAutoActivationSetting( - bundleIdentifier, - setting.value, - ); -} - -@ffi.Native< - ffi.Void Function(CFArrayRef, ffi.Uint32, ffi.Pointer) ->(symbol: 'CTFontManagerUnregisterFontDescriptors') -external void _CTFontManagerUnregisterFontDescriptors( - CFArrayRef fontDescriptors, - int scope, - ffi.Pointer registrationHandler, -); - -void CTFontManagerUnregisterFontDescriptors( - CFArrayRef fontDescriptors, - CTFontManagerScope scope, - objc.ObjCBlock, ffi.Bool)>? - registrationHandler, -) { - final _$$ref = registrationHandler?.ref; - return _CTFontManagerUnregisterFontDescriptors( - fontDescriptors, - scope.value, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native< - ffi.Void Function(CFArrayRef, ffi.Uint32, ffi.Pointer) ->(symbol: 'CTFontManagerUnregisterFontURLs') -external void _CTFontManagerUnregisterFontURLs( - CFArrayRef fontURLs, - int scope, - ffi.Pointer registrationHandler, -); - -void CTFontManagerUnregisterFontURLs( - CFArrayRef fontURLs, - CTFontManagerScope scope, - objc.ObjCBlock, ffi.Bool)>? - registrationHandler, -) { - final _$$ref = registrationHandler?.ref; - return _CTFontManagerUnregisterFontURLs( - fontURLs, - scope.value, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native)>( - symbol: 'CTFontManagerUnregisterFontsForURL', -) -external bool _CTFontManagerUnregisterFontsForURL( - CFURLRef fontURL, - int scope, - ffi.Pointer error, -); - -bool CTFontManagerUnregisterFontsForURL( - CFURLRef fontURL, - CTFontManagerScope scope, - ffi.Pointer error, -) { - return _CTFontManagerUnregisterFontsForURL(fontURL, scope.value, error); -} - -@Deprecated('Deprecated') -@ffi.Native)>( - symbol: 'CTFontManagerUnregisterFontsForURLs', -) -external bool _CTFontManagerUnregisterFontsForURLs( - CFArrayRef fontURLs, - int scope, - ffi.Pointer errors, -); - -bool CTFontManagerUnregisterFontsForURLs( - CFArrayRef fontURLs, - CTFontManagerScope scope, - ffi.Pointer errors, -) { - return _CTFontManagerUnregisterFontsForURLs(fontURLs, scope.value, errors); -} - -@Deprecated('Use the API corresponding to the one used to register the font') -@ffi.Native)>() -external bool CTFontManagerUnregisterGraphicsFont( - CGFontRef font, - ffi.Pointer error, -); - -@ffi.Native() -external void CTFrameDraw(CTFrameRef frame, CGContextRef context); - -@ffi.Native() -external CFDictionaryRef CTFrameGetFrameAttributes(CTFrameRef frame); - -@ffi.Native)>() -external void CTFrameGetLineOrigins( - CTFrameRef frame, - CFRange range, - ffi.Pointer origins, -); - -@ffi.Native() -external CFArrayRef CTFrameGetLines(CTFrameRef frame); - -@ffi.Native() -external CGPathRef CTFrameGetPath(CTFrameRef frame); - -@ffi.Native() -external CFRange CTFrameGetStringRange(CTFrameRef frame); - -@ffi.Native() -external int CTFrameGetTypeID(); - -@ffi.Native() -external CFRange CTFrameGetVisibleStringRange(CTFrameRef frame); - -@ffi.Native< - CTFrameRef Function(CTFramesetterRef, CFRange, CGPathRef, CFDictionaryRef) ->() -external CTFrameRef CTFramesetterCreateFrame( - CTFramesetterRef framesetter, - CFRange stringRange, - CGPathRef path, - CFDictionaryRef frameAttributes, -); - -@ffi.Native() -external CTFramesetterRef CTFramesetterCreateWithAttributedString( - CFAttributedStringRef attrString, -); - -@ffi.Native() -external CTFramesetterRef CTFramesetterCreateWithTypesetter( - CTTypesetterRef typesetter, -); - -@ffi.Native() -external int CTFramesetterGetTypeID(); - -@ffi.Native() -external CTTypesetterRef CTFramesetterGetTypesetter( - CTFramesetterRef framesetter, -); - -@ffi.Native< - objc.CGSize Function( - CTFramesetterRef, - CFRange, - CFDictionaryRef, - objc.CGSize, - ffi.Pointer, - ) ->() -external objc.CGSize CTFramesetterSuggestFrameSizeWithConstraints( - CTFramesetterRef framesetter, - CFRange stringRange, - CFDictionaryRef frameAttributes, - objc.CGSize constraints, - ffi.Pointer fitRange, -); - -@Deprecated('Use -[NSProcessInfo operatingSystemVersion]') -@ffi.Native() -external int CTGetCoreTextVersion(); - -@ffi.Native( - symbol: 'CTGlyphInfoCreateWithCharacterIdentifier', -) -external CTGlyphInfoRef _CTGlyphInfoCreateWithCharacterIdentifier( - int cid, - int collection, - CFStringRef baseString, -); - -CTGlyphInfoRef CTGlyphInfoCreateWithCharacterIdentifier( - DartCGFontIndex cid, - CTCharacterCollection collection, - CFStringRef baseString, -) { - return _CTGlyphInfoCreateWithCharacterIdentifier( - cid, - collection.value, - baseString, - ); -} - -@ffi.Native() -external CTGlyphInfoRef CTGlyphInfoCreateWithGlyph( - int glyph, - CTFontRef font, - CFStringRef baseString, -); - -@ffi.Native() -external CTGlyphInfoRef CTGlyphInfoCreateWithGlyphName( - CFStringRef glyphName, - CTFontRef font, - CFStringRef baseString, -); - -@ffi.Native( - symbol: 'CTGlyphInfoGetCharacterCollection', -) -external int _CTGlyphInfoGetCharacterCollection(CTGlyphInfoRef glyphInfo); - -CTCharacterCollection CTGlyphInfoGetCharacterCollection( - CTGlyphInfoRef glyphInfo, -) { - return CTCharacterCollection.fromValue( - _CTGlyphInfoGetCharacterCollection(glyphInfo), - ); -} - -@ffi.Native() -external int CTGlyphInfoGetCharacterIdentifier(CTGlyphInfoRef glyphInfo); - -@ffi.Native() -external int CTGlyphInfoGetGlyph(CTGlyphInfoRef glyphInfo); - -@ffi.Native() -external CFStringRef CTGlyphInfoGetGlyphName(CTGlyphInfoRef glyphInfo); - -@ffi.Native() -external int CTGlyphInfoGetTypeID(); - -@ffi.Native() -external CTLineRef CTLineCreateJustifiedLine( - CTLineRef line, - double justificationFactor, - double justificationWidth, -); - -@ffi.Native( - symbol: 'CTLineCreateTruncatedLine', -) -external CTLineRef _CTLineCreateTruncatedLine( - CTLineRef line, - double width, - int truncationType, - CTLineRef truncationToken, -); - -CTLineRef CTLineCreateTruncatedLine( - CTLineRef line, - double width, - CTLineTruncationType truncationType, - CTLineRef truncationToken, -) { - return _CTLineCreateTruncatedLine( - line, - width, - truncationType.value, - truncationToken, - ); -} - -@ffi.Native() -external CTLineRef CTLineCreateWithAttributedString( - CFAttributedStringRef attrString, -); - -@ffi.Native() -external void CTLineDraw(CTLineRef line, CGContextRef context); - -@ffi.Native)>( - symbol: 'CTLineEnumerateCaretOffsets', -) -external void _CTLineEnumerateCaretOffsets( - CTLineRef line, - ffi.Pointer block, -); - -void CTLineEnumerateCaretOffsets( - CTLineRef line, - objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - block, -) { - final _$$ref = block.ref; - return _CTLineEnumerateCaretOffsets(line, _$$ref.pointer); -} - -@ffi.Native() -external objc.CGRect CTLineGetBoundsWithOptions(CTLineRef line, int options); - -@ffi.Native() -external int CTLineGetGlyphCount(CTLineRef line); - -@ffi.Native() -external CFArrayRef CTLineGetGlyphRuns(CTLineRef line); - -@ffi.Native() -external objc.CGRect CTLineGetImageBounds(CTLineRef line, CGContextRef context); - -@ffi.Native)>() -external double CTLineGetOffsetForStringIndex( - CTLineRef line, - int charIndex, - ffi.Pointer secondaryOffset, -); - -@ffi.Native() -external double CTLineGetPenOffsetForFlush( - CTLineRef line, - double flushFactor, - double flushWidth, -); - -@ffi.Native() -external int CTLineGetStringIndexForPosition( - CTLineRef line, - objc.CGPoint position, -); - -@ffi.Native() -external CFRange CTLineGetStringRange(CTLineRef line); - -@ffi.Native() -external double CTLineGetTrailingWhitespaceWidth(CTLineRef line); - -@ffi.Native() -external int CTLineGetTypeID(); - -@ffi.Native< - ffi.Double Function( - CTLineRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external double CTLineGetTypographicBounds( - CTLineRef line, - ffi.Pointer ascent, - ffi.Pointer descent, - ffi.Pointer leading, -); - -@ffi.Native< - CTParagraphStyleRef Function(ffi.Pointer, ffi.Size) ->() -external CTParagraphStyleRef CTParagraphStyleCreate( - ffi.Pointer settings, - int settingCount, -); - -@ffi.Native() -external CTParagraphStyleRef CTParagraphStyleCreateCopy( - CTParagraphStyleRef paragraphStyle, -); - -@ffi.Native() -external int CTParagraphStyleGetTypeID(); - -@ffi.Native< - ffi.Bool Function( - CTParagraphStyleRef, - ffi.Uint32, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'CTParagraphStyleGetValueForSpecifier') -external bool _CTParagraphStyleGetValueForSpecifier( - CTParagraphStyleRef paragraphStyle, - int spec, - int valueBufferSize, - ffi.Pointer valueBuffer, -); - -bool CTParagraphStyleGetValueForSpecifier( - CTParagraphStyleRef paragraphStyle, - CTParagraphStyleSpecifier spec, - int valueBufferSize, - ffi.Pointer valueBuffer, -) { - return _CTParagraphStyleGetValueForSpecifier( - paragraphStyle, - spec.value, - valueBufferSize, - valueBuffer, - ); -} - -@ffi.Native< - CTRubyAnnotationRef Function( - ffi.Uint8, - ffi.Uint8, - CGFloat, - ffi.Pointer, - ) ->(symbol: 'CTRubyAnnotationCreate') -external CTRubyAnnotationRef _CTRubyAnnotationCreate( - int alignment, - int overhang, - double sizeFactor, - ffi.Pointer text, -); - -CTRubyAnnotationRef CTRubyAnnotationCreate( - CTRubyAlignment alignment, - CTRubyOverhang overhang, - DartCGFloat sizeFactor, - ffi.Pointer text, -) { - return _CTRubyAnnotationCreate( - alignment.value, - overhang.value, - sizeFactor, - text, - ); -} - -@ffi.Native() -external CTRubyAnnotationRef CTRubyAnnotationCreateCopy( - CTRubyAnnotationRef rubyAnnotation, -); - -@ffi.Native< - CTRubyAnnotationRef Function( - ffi.Uint8, - ffi.Uint8, - ffi.Uint8, - CFStringRef, - CFDictionaryRef, - ) ->(symbol: 'CTRubyAnnotationCreateWithAttributes') -external CTRubyAnnotationRef _CTRubyAnnotationCreateWithAttributes( - int alignment, - int overhang, - int position, - CFStringRef string, - CFDictionaryRef attributes, -); - -CTRubyAnnotationRef CTRubyAnnotationCreateWithAttributes( - CTRubyAlignment alignment, - CTRubyOverhang overhang, - CTRubyPosition position, - CFStringRef string, - CFDictionaryRef attributes, -) { - return _CTRubyAnnotationCreateWithAttributes( - alignment.value, - overhang.value, - position.value, - string, - attributes, - ); -} - -@ffi.Native( - symbol: 'CTRubyAnnotationGetAlignment', -) -external int _CTRubyAnnotationGetAlignment(CTRubyAnnotationRef rubyAnnotation); - -CTRubyAlignment CTRubyAnnotationGetAlignment( - CTRubyAnnotationRef rubyAnnotation, -) { - return CTRubyAlignment.fromValue( - _CTRubyAnnotationGetAlignment(rubyAnnotation), - ); -} - -@ffi.Native( - symbol: 'CTRubyAnnotationGetOverhang', -) -external int _CTRubyAnnotationGetOverhang(CTRubyAnnotationRef rubyAnnotation); - -CTRubyOverhang CTRubyAnnotationGetOverhang(CTRubyAnnotationRef rubyAnnotation) { - return CTRubyOverhang.fromValue(_CTRubyAnnotationGetOverhang(rubyAnnotation)); -} - -@ffi.Native() -external double CTRubyAnnotationGetSizeFactor( - CTRubyAnnotationRef rubyAnnotation, -); - -@ffi.Native( - symbol: 'CTRubyAnnotationGetTextForPosition', -) -external CFStringRef _CTRubyAnnotationGetTextForPosition( - CTRubyAnnotationRef rubyAnnotation, - int position, -); - -CFStringRef CTRubyAnnotationGetTextForPosition( - CTRubyAnnotationRef rubyAnnotation, - CTRubyPosition position, -) { - return _CTRubyAnnotationGetTextForPosition(rubyAnnotation, position.value); -} - -@ffi.Native() -external int CTRubyAnnotationGetTypeID(); - -@ffi.Native< - CTRunDelegateRef Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external CTRunDelegateRef CTRunDelegateCreate( - ffi.Pointer callbacks, - ffi.Pointer refCon, -); - -@ffi.Native Function(CTRunDelegateRef)>() -external ffi.Pointer CTRunDelegateGetRefCon( - CTRunDelegateRef runDelegate, -); - -@ffi.Native() -external int CTRunDelegateGetTypeID(); - -@ffi.Native() -external void CTRunDraw(CTRunRef run, CGContextRef context, CFRange range); - -@ffi.Native)>() -external void CTRunGetAdvances( - CTRunRef run, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native Function(CTRunRef)>() -external ffi.Pointer CTRunGetAdvancesPtr(CTRunRef run); - -@ffi.Native() -external CFDictionaryRef CTRunGetAttributes(CTRunRef run); - -@ffi.Native< - ffi.Void Function( - CTRunRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CTRunGetBaseAdvancesAndOrigins( - CTRunRef runRef, - CFRange range, - ffi.Pointer advancesBuffer, - ffi.Pointer originsBuffer, -); - -@ffi.Native() -external int CTRunGetGlyphCount(CTRunRef run); - -@ffi.Native)>() -external void CTRunGetGlyphs( - CTRunRef run, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native Function(CTRunRef)>() -external ffi.Pointer CTRunGetGlyphsPtr(CTRunRef run); - -@ffi.Native() -external objc.CGRect CTRunGetImageBounds( - CTRunRef run, - CGContextRef context, - CFRange range, -); - -@ffi.Native)>() -external void CTRunGetPositions( - CTRunRef run, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native Function(CTRunRef)>() -external ffi.Pointer CTRunGetPositionsPtr(CTRunRef run); - -@ffi.Native() -external int CTRunGetStatus(CTRunRef run); - -@ffi.Native)>() -external void CTRunGetStringIndices( - CTRunRef run, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native Function(CTRunRef)>() -external ffi.Pointer CTRunGetStringIndicesPtr(CTRunRef run); - -@ffi.Native() -external CFRange CTRunGetStringRange(CTRunRef run); - -@ffi.Native() -external CGAffineTransform CTRunGetTextMatrix(CTRunRef run); - -@ffi.Native() -external int CTRunGetTypeID(); - -@ffi.Native< - ffi.Double Function( - CTRunRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external double CTRunGetTypographicBounds( - CTRunRef run, - CFRange range, - ffi.Pointer ascent, - ffi.Pointer descent, - ffi.Pointer leading, -); - -@ffi.Native( - symbol: 'CTTextTabCreate', -) -external CTTextTabRef _CTTextTabCreate( - int alignment, - double location, - CFDictionaryRef options, -); - -CTTextTabRef CTTextTabCreate( - CTTextAlignment alignment, - double location, - CFDictionaryRef options, -) { - return _CTTextTabCreate(alignment.value, location, options); -} - -@ffi.Native(symbol: 'CTTextTabGetAlignment') -external int _CTTextTabGetAlignment(CTTextTabRef tab); - -CTTextAlignment CTTextTabGetAlignment(CTTextTabRef tab) { - return CTTextAlignment.fromValue(_CTTextTabGetAlignment(tab)); -} - -@ffi.Native() -external double CTTextTabGetLocation(CTTextTabRef tab); - -@ffi.Native() -external CFDictionaryRef CTTextTabGetOptions(CTTextTabRef tab); - -@ffi.Native() -external int CTTextTabGetTypeID(); - -@ffi.Native() -external CTLineRef CTTypesetterCreateLine( - CTTypesetterRef typesetter, - CFRange stringRange, -); - -@ffi.Native() -external CTLineRef CTTypesetterCreateLineWithOffset( - CTTypesetterRef typesetter, - CFRange stringRange, - double offset, -); - -@ffi.Native() -external CTTypesetterRef CTTypesetterCreateWithAttributedString( - CFAttributedStringRef string, -); - -@ffi.Native() -external CTTypesetterRef CTTypesetterCreateWithAttributedStringAndOptions( - CFAttributedStringRef string, - CFDictionaryRef options, -); - -@ffi.Native() -external int CTTypesetterGetTypeID(); - -@ffi.Native() -external int CTTypesetterSuggestClusterBreak( - CTTypesetterRef typesetter, - int startIndex, - double width, -); - -@ffi.Native< - CFIndex Function(CTTypesetterRef, CFIndex, ffi.Double, ffi.Double) ->() -external int CTTypesetterSuggestClusterBreakWithOffset( - CTTypesetterRef typesetter, - int startIndex, - double width, - double offset, -); - -@ffi.Native() -external int CTTypesetterSuggestLineBreak( - CTTypesetterRef typesetter, - int startIndex, - double width, -); - -@ffi.Native< - CFIndex Function(CTTypesetterRef, CFIndex, ffi.Double, ffi.Double) ->() -external int CTTypesetterSuggestLineBreakWithOffset( - CTTypesetterRef typesetter, - int startIndex, - double width, - double offset, -); - -@ffi.Native< - CFTypeRef Function(CVBufferRef, CFStringRef, ffi.Pointer) ->() -external CFTypeRef CVBufferCopyAttachment( - CVBufferRef buffer, - CFStringRef key, - ffi.Pointer attachmentMode, -); - -@ffi.Native( - symbol: 'CVBufferCopyAttachments', -) -external CFDictionaryRef _CVBufferCopyAttachments( - CVBufferRef buffer, - int attachmentMode, -); - -CFDictionaryRef CVBufferCopyAttachments( - CVBufferRef buffer, - CVAttachmentMode attachmentMode, -) { - return _CVBufferCopyAttachments(buffer, attachmentMode.value); -} - -@Deprecated('Deprecated') -@ffi.Native< - CFTypeRef Function(CVBufferRef, CFStringRef, ffi.Pointer) ->() -external CFTypeRef CVBufferGetAttachment( - CVBufferRef buffer, - CFStringRef key, - ffi.Pointer attachmentMode, -); - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'CVBufferGetAttachments', -) -external CFDictionaryRef _CVBufferGetAttachments( - CVBufferRef buffer, - int attachmentMode, -); - -CFDictionaryRef CVBufferGetAttachments( - CVBufferRef buffer, - CVAttachmentMode attachmentMode, -) { - return _CVBufferGetAttachments(buffer, attachmentMode.value); -} - -@ffi.Native() -external int CVBufferHasAttachment(CVBufferRef buffer, CFStringRef key); - -@ffi.Native() -external void CVBufferPropagateAttachments( - CVBufferRef sourceBuffer, - CVBufferRef destinationBuffer, -); - -@ffi.Native() -external void CVBufferRelease(CVBufferRef buffer); - -@ffi.Native() -external void CVBufferRemoveAllAttachments(CVBufferRef buffer); - -@ffi.Native() -external void CVBufferRemoveAttachment(CVBufferRef buffer, CFStringRef key); - -@ffi.Native() -external CVBufferRef CVBufferRetain(CVBufferRef buffer); - -@ffi.Native( - symbol: 'CVBufferSetAttachment', -) -external void _CVBufferSetAttachment( - CVBufferRef buffer, - CFStringRef key, - CFTypeRef value, - int attachmentMode, -); - -void CVBufferSetAttachment( - CVBufferRef buffer, - CFStringRef key, - CFTypeRef value, - CVAttachmentMode attachmentMode, -) { - return _CVBufferSetAttachment(buffer, key, value, attachmentMode.value); -} - -@ffi.Native( - symbol: 'CVBufferSetAttachments', -) -external void _CVBufferSetAttachments( - CVBufferRef buffer, - CFDictionaryRef theAttachments, - int attachmentMode, -); - -void CVBufferSetAttachments( - CVBufferRef buffer, - CFDictionaryRef theAttachments, - CVAttachmentMode attachmentMode, -) { - return _CVBufferSetAttachments(buffer, theAttachments, attachmentMode.value); -} - -@ffi.Native() -external int CVColorPrimariesGetIntegerCodePointForString( - CFStringRef colorPrimariesString, -); - -@ffi.Native() -external CFStringRef CVColorPrimariesGetStringForIntegerCodePoint( - int colorPrimariesCodePoint, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native)>() -external int CVDisplayLinkCreateWithActiveCGDisplays( - ffi.Pointer displayLinkOut, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function(CGDirectDisplayID, ffi.Pointer) ->() -external int CVDisplayLinkCreateWithCGDisplay( - int displayID, - ffi.Pointer displayLinkOut, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function( - ffi.Pointer, - CFIndex, - ffi.Pointer, - ) ->() -external int CVDisplayLinkCreateWithCGDisplays( - ffi.Pointer displayArray, - int count, - ffi.Pointer displayLinkOut, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function(CGOpenGLDisplayMask, ffi.Pointer) ->() -external int CVDisplayLinkCreateWithOpenGLDisplayMask( - int mask, - ffi.Pointer displayLinkOut, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external double CVDisplayLinkGetActualOutputVideoRefreshPeriod( - CVDisplayLinkRef displayLink, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkGetCurrentCGDisplay(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native)>() -external int CVDisplayLinkGetCurrentTime( - CVDisplayLinkRef displayLink, - ffi.Pointer outTime, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external CVTime CVDisplayLinkGetNominalOutputVideoRefreshPeriod( - CVDisplayLinkRef displayLink, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external CVTime CVDisplayLinkGetOutputVideoLatency( - CVDisplayLinkRef displayLink, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkGetTypeID(); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkIsRunning(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external void CVDisplayLinkRelease(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external CVDisplayLinkRef CVDisplayLinkRetain(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkSetCurrentCGDisplay( - CVDisplayLinkRef displayLink, - int displayID, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function(CVDisplayLinkRef, CGLContextObj, CGLPixelFormatObj) ->() -external int CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext( - CVDisplayLinkRef displayLink, - CGLContextObj cglContext, - CGLPixelFormatObj cglPixelFormat, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function( - CVDisplayLinkRef, - CVDisplayLinkOutputCallback, - ffi.Pointer, - ) ->() -external int CVDisplayLinkSetOutputCallback( - CVDisplayLinkRef displayLink, - CVDisplayLinkOutputCallback callback, - ffi.Pointer userInfo, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native( - symbol: 'CVDisplayLinkSetOutputHandler', -) -external int _CVDisplayLinkSetOutputHandler( - CVDisplayLinkRef displayLink, - CVDisplayLinkOutputHandler handler, -); - -DartCVReturn CVDisplayLinkSetOutputHandler( - CVDisplayLinkRef displayLink, - DartCVDisplayLinkOutputHandler handler, -) { - final _$$ref = handler.ref; - return _CVDisplayLinkSetOutputHandler(displayLink, _$$ref.pointer); -} - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkStart(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkStop(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function( - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CVDisplayLinkTranslateTime( - CVDisplayLinkRef displayLink, - ffi.Pointer inTime, - ffi.Pointer outTime, -); - -@ffi.Native() -external int CVGetCurrentHostTime(); - -@ffi.Native() -external double CVGetHostClockFrequency(); - -@ffi.Native() -external int CVGetHostClockMinimumTimeDelta(); - -@ffi.Native() -external CGColorSpaceRef CVImageBufferCreateColorSpaceFromAttachments( - CFDictionaryRef attachments, -); - -@ffi.Native() -external objc.CGRect CVImageBufferGetCleanRect(CVImageBufferRef imageBuffer); - -@ffi.Native() -external CGColorSpaceRef CVImageBufferGetColorSpace( - CVImageBufferRef imageBuffer, -); - -@ffi.Native() -external objc.CGSize CVImageBufferGetDisplaySize(CVImageBufferRef imageBuffer); - -@ffi.Native() -external objc.CGSize CVImageBufferGetEncodedSize(CVImageBufferRef imageBuffer); - -@ffi.Native() -external int CVImageBufferIsFlipped(CVImageBufferRef imageBuffer); - -@ffi.Native() -external int CVIsCompressedPixelFormatAvailable(int pixelFormatType); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CVMetalBufferCacheCreate') -external int _CVMetalBufferCacheCreate( - CFAllocatorRef allocator, - CFDictionaryRef cacheAttributes, - ffi.Pointer metalDevice, - ffi.Pointer cacheOut, -); - -DartCVReturn CVMetalBufferCacheCreate( - CFAllocatorRef allocator, - CFDictionaryRef cacheAttributes, - MTLDevice metalDevice, - ffi.Pointer cacheOut, -) { - final _$$ref = metalDevice.ref; - return _CVMetalBufferCacheCreate( - allocator, - cacheAttributes, - _$$ref.pointer, - cacheOut, - ); -} - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVMetalBufferCacheRef, - CVImageBufferRef, - ffi.Pointer, - ) ->() -external int CVMetalBufferCacheCreateBufferFromImage( - CFAllocatorRef allocator, - CVMetalBufferCacheRef bufferCache, - CVImageBufferRef imageBuffer, - ffi.Pointer bufferOut, -); - -@ffi.Native() -external void CVMetalBufferCacheFlush( - CVMetalBufferCacheRef bufferCache, - int options, -); - -@ffi.Native() -external int CVMetalBufferCacheGetTypeID(); - -@ffi.Native Function(CVMetalBufferRef)>( - symbol: 'CVMetalBufferGetBuffer', -) -external ffi.Pointer _CVMetalBufferGetBuffer( - CVMetalBufferRef buffer, -); - -MTLBuffer? CVMetalBufferGetBuffer(CVMetalBufferRef buffer) { - return _CVMetalBufferGetBuffer(buffer).address == 0 - ? null - : MTLBuffer.fromPointer( - _CVMetalBufferGetBuffer(buffer), - retain: true, - release: true, - ); -} - -@ffi.Native() -external int CVMetalBufferGetTypeID(); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CFDictionaryRef, - ffi.Pointer, - CFDictionaryRef, - ffi.Pointer, - ) ->(symbol: 'CVMetalTextureCacheCreate') -external int _CVMetalTextureCacheCreate( - CFAllocatorRef allocator, - CFDictionaryRef cacheAttributes, - ffi.Pointer metalDevice, - CFDictionaryRef textureAttributes, - ffi.Pointer cacheOut, -); - -DartCVReturn CVMetalTextureCacheCreate( - CFAllocatorRef allocator, - CFDictionaryRef cacheAttributes, - MTLDevice metalDevice, - CFDictionaryRef textureAttributes, - ffi.Pointer cacheOut, -) { - final _$$ref = metalDevice.ref; - return _CVMetalTextureCacheCreate( - allocator, - cacheAttributes, - _$$ref.pointer, - textureAttributes, - cacheOut, - ); -} - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVMetalTextureCacheRef, - CVImageBufferRef, - CFDictionaryRef, - NSUInteger, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'CVMetalTextureCacheCreateTextureFromImage') -external int _CVMetalTextureCacheCreateTextureFromImage( - CFAllocatorRef allocator, - CVMetalTextureCacheRef textureCache, - CVImageBufferRef sourceImage, - CFDictionaryRef textureAttributes, - int pixelFormat, - int width, - int height, - int planeIndex, - ffi.Pointer textureOut, -); - -DartCVReturn CVMetalTextureCacheCreateTextureFromImage( - CFAllocatorRef allocator, - CVMetalTextureCacheRef textureCache, - CVImageBufferRef sourceImage, - CFDictionaryRef textureAttributes, - MTLPixelFormat pixelFormat, - int width, - int height, - int planeIndex, - ffi.Pointer textureOut, -) { - return _CVMetalTextureCacheCreateTextureFromImage( - allocator, - textureCache, - sourceImage, - textureAttributes, - pixelFormat.value, - width, - height, - planeIndex, - textureOut, - ); -} - -@ffi.Native() -external void CVMetalTextureCacheFlush( - CVMetalTextureCacheRef textureCache, - int options, -); - -@ffi.Native() -external int CVMetalTextureCacheGetTypeID(); - -@ffi.Native< - ffi.Void Function( - CVMetalTextureRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CVMetalTextureGetCleanTexCoords( - CVMetalTextureRef image, - ffi.Pointer lowerLeft, - ffi.Pointer lowerRight, - ffi.Pointer upperRight, - ffi.Pointer upperLeft, -); - -@ffi.Native Function(CVMetalTextureRef)>( - symbol: 'CVMetalTextureGetTexture', -) -external ffi.Pointer _CVMetalTextureGetTexture( - CVMetalTextureRef image, -); - -MTLTexture? CVMetalTextureGetTexture(CVMetalTextureRef image) { - return _CVMetalTextureGetTexture(image).address == 0 - ? null - : MTLTexture.fromPointer( - _CVMetalTextureGetTexture(image), - retain: true, - release: true, - ); -} - -@ffi.Native() -external int CVMetalTextureGetTypeID(); - -@ffi.Native() -external int CVMetalTextureIsFlipped(CVMetalTextureRef image); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function(CVOpenGLBufferRef, CGLContextObj, GLenum, GLint, GLint) ->() -external int CVOpenGLBufferAttach( - CVOpenGLBufferRef openGLBuffer, - CGLContextObj cglContext, - int face, - int level, - int screen, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - ffi.Size, - ffi.Size, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVOpenGLBufferCreate( - CFAllocatorRef allocator, - int width, - int height, - CFDictionaryRef attributes, - ffi.Pointer bufferOut, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CFDictionaryRef CVOpenGLBufferGetAttributes( - CVOpenGLBufferRef openGLBuffer, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLBufferGetTypeID(); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CFDictionaryRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVOpenGLBufferPoolCreate( - CFAllocatorRef allocator, - CFDictionaryRef poolAttributes, - CFDictionaryRef openGLBufferAttributes, - ffi.Pointer poolOut, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVOpenGLBufferPoolRef, - ffi.Pointer, - ) ->() -external int CVOpenGLBufferPoolCreateOpenGLBuffer( - CFAllocatorRef allocator, - CVOpenGLBufferPoolRef openGLBufferPool, - ffi.Pointer openGLBufferOut, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CFDictionaryRef CVOpenGLBufferPoolGetAttributes( - CVOpenGLBufferPoolRef pool, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CFDictionaryRef CVOpenGLBufferPoolGetOpenGLBufferAttributes( - CVOpenGLBufferPoolRef pool, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLBufferPoolGetTypeID(); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CVOpenGLBufferPoolRelease(CVOpenGLBufferPoolRef openGLBufferPool); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CVOpenGLBufferPoolRef CVOpenGLBufferPoolRetain( - CVOpenGLBufferPoolRef openGLBufferPool, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CVOpenGLBufferRelease(CVOpenGLBufferRef buffer); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CVOpenGLBufferRef CVOpenGLBufferRetain(CVOpenGLBufferRef buffer); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CFDictionaryRef, - CGLContextObj, - CGLPixelFormatObj, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVOpenGLTextureCacheCreate( - CFAllocatorRef allocator, - CFDictionaryRef cacheAttributes, - CGLContextObj cglContext, - CGLPixelFormatObj cglPixelFormat, - CFDictionaryRef textureAttributes, - ffi.Pointer cacheOut, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVOpenGLTextureCacheRef, - CVImageBufferRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVOpenGLTextureCacheCreateTextureFromImage( - CFAllocatorRef allocator, - CVOpenGLTextureCacheRef textureCache, - CVImageBufferRef sourceImage, - CFDictionaryRef attributes, - ffi.Pointer textureOut, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CVOpenGLTextureCacheFlush( - CVOpenGLTextureCacheRef textureCache, - int options, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLTextureCacheGetTypeID(); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CVOpenGLTextureCacheRelease(CVOpenGLTextureCacheRef textureCache); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CVOpenGLTextureCacheRef CVOpenGLTextureCacheRetain( - CVOpenGLTextureCacheRef textureCache, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.Void Function( - CVOpenGLTextureRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CVOpenGLTextureGetCleanTexCoords( - CVOpenGLTextureRef image, - ffi.Pointer lowerLeft, - ffi.Pointer lowerRight, - ffi.Pointer upperRight, - ffi.Pointer upperLeft, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLTextureGetName(CVOpenGLTextureRef image); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLTextureGetTarget(CVOpenGLTextureRef image); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLTextureGetTypeID(); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLTextureIsFlipped(CVOpenGLTextureRef image); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CVOpenGLTextureRelease(CVOpenGLTextureRef texture); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CVOpenGLTextureRef CVOpenGLTextureRetain(CVOpenGLTextureRef texture); - -@ffi.Native() -external CFDictionaryRef CVPixelBufferCopyCreationAttributes( - CVPixelBufferRef pixelBuffer, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - ffi.Size, - ffi.Size, - OSType, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferCreate( - CFAllocatorRef allocator, - int width, - int height, - int pixelFormatType, - CFDictionaryRef pixelBufferAttributes, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native< - CVReturn Function(CFAllocatorRef, CFArrayRef, ffi.Pointer) ->() -external int CVPixelBufferCreateResolvedAttributesDictionary( - CFAllocatorRef allocator, - CFArrayRef attributes, - ffi.Pointer resolvedDictionaryOut, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - ffi.Size, - ffi.Size, - OSType, - ffi.Pointer, - ffi.Size, - CVPixelBufferReleaseBytesCallback, - ffi.Pointer, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferCreateWithBytes( - CFAllocatorRef allocator, - int width, - int height, - int pixelFormatType, - ffi.Pointer baseAddress, - int bytesPerRow, - CVPixelBufferReleaseBytesCallback releaseCallback, - ffi.Pointer releaseRefCon, - CFDictionaryRef pixelBufferAttributes, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - IOSurfaceRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferCreateWithIOSurface( - CFAllocatorRef allocator, - IOSurfaceRef surface, - CFDictionaryRef pixelBufferAttributes, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - ffi.Size, - ffi.Size, - OSType, - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CVPixelBufferReleasePlanarBytesCallback, - ffi.Pointer, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferCreateWithPlanarBytes( - CFAllocatorRef allocator, - int width, - int height, - int pixelFormatType, - ffi.Pointer dataPtr, - int dataSize, - int numberOfPlanes, - ffi.Pointer> planeBaseAddress, - ffi.Pointer planeWidth, - ffi.Pointer planeHeight, - ffi.Pointer planeBytesPerRow, - CVPixelBufferReleasePlanarBytesCallback releaseCallback, - ffi.Pointer releaseRefCon, - CFDictionaryRef pixelBufferAttributes, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native() -external int CVPixelBufferFillExtendedPixels(CVPixelBufferRef pixelBuffer); - -@ffi.Native Function(CVPixelBufferRef)>() -external ffi.Pointer CVPixelBufferGetBaseAddress( - CVPixelBufferRef pixelBuffer, -); - -@ffi.Native Function(CVPixelBufferRef, ffi.Size)>() -external ffi.Pointer CVPixelBufferGetBaseAddressOfPlane( - CVPixelBufferRef pixelBuffer, - int planeIndex, -); - -@ffi.Native() -external int CVPixelBufferGetBytesPerRow(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetBytesPerRowOfPlane( - CVPixelBufferRef pixelBuffer, - int planeIndex, -); - -@ffi.Native() -external int CVPixelBufferGetDataSize(CVPixelBufferRef pixelBuffer); - -@ffi.Native< - ffi.Void Function( - CVPixelBufferRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CVPixelBufferGetExtendedPixels( - CVPixelBufferRef pixelBuffer, - ffi.Pointer extraColumnsOnLeft, - ffi.Pointer extraColumnsOnRight, - ffi.Pointer extraRowsOnTop, - ffi.Pointer extraRowsOnBottom, -); - -@ffi.Native() -external int CVPixelBufferGetHeight(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetHeightOfPlane( - CVPixelBufferRef pixelBuffer, - int planeIndex, -); - -@ffi.Native() -external IOSurfaceRef CVPixelBufferGetIOSurface(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetPixelFormatType(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetPlaneCount(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetTypeID(); - -@ffi.Native() -external int CVPixelBufferGetWidth(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetWidthOfPlane( - CVPixelBufferRef pixelBuffer, - int planeIndex, -); - -@ffi.Native() -external int CVPixelBufferIsCompatibleWithAttributes( - CVPixelBufferRef pixelBuffer, - CFDictionaryRef attributes, -); - -@ffi.Native() -external int CVPixelBufferIsPlanar(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferLockBaseAddress( - CVPixelBufferRef pixelBuffer, - int lockFlags, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CFDictionaryRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferPoolCreate( - CFAllocatorRef allocator, - CFDictionaryRef poolAttributes, - CFDictionaryRef pixelBufferAttributes, - ffi.Pointer poolOut, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVPixelBufferPoolRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferPoolCreatePixelBuffer( - CFAllocatorRef allocator, - CVPixelBufferPoolRef pixelBufferPool, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVPixelBufferPoolRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferPoolCreatePixelBufferWithAuxAttributes( - CFAllocatorRef allocator, - CVPixelBufferPoolRef pixelBufferPool, - CFDictionaryRef auxAttributes, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native() -external void CVPixelBufferPoolFlush(CVPixelBufferPoolRef pool, int options); - -@ffi.Native() -external CFDictionaryRef CVPixelBufferPoolGetAttributes( - CVPixelBufferPoolRef pool, -); - -@ffi.Native() -external CFDictionaryRef CVPixelBufferPoolGetPixelBufferAttributes( - CVPixelBufferPoolRef pool, -); - -@ffi.Native() -external int CVPixelBufferPoolGetTypeID(); - -@ffi.Native() -external void CVPixelBufferPoolRelease(CVPixelBufferPoolRef pixelBufferPool); - -@ffi.Native() -external CVPixelBufferPoolRef CVPixelBufferPoolRetain( - CVPixelBufferPoolRef pixelBufferPool, -); - -@ffi.Native() -external void CVPixelBufferRelease(CVPixelBufferRef texture); - -@ffi.Native() -external CVPixelBufferRef CVPixelBufferRetain(CVPixelBufferRef texture); - -@ffi.Native() -external int CVPixelBufferUnlockBaseAddress( - CVPixelBufferRef pixelBuffer, - int unlockFlags, -); - -@ffi.Native() -external CFArrayRef CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes( - CFAllocatorRef allocator, -); - -@ffi.Native() -external CFDictionaryRef CVPixelFormatDescriptionCreateWithPixelFormatType( - CFAllocatorRef allocator, - int pixelFormat, -); - -@ffi.Native() -external void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType( - CFDictionaryRef description, - int pixelFormat, -); - -@ffi.Native() -external CFStringRef CVPixelFormatTypeCopyFourCharCodeString(int pixelFormat); - -@ffi.Native() -external int CVTransferFunctionGetIntegerCodePointForString( - CFStringRef transferFunctionString, -); - -@ffi.Native() -external CFStringRef CVTransferFunctionGetStringForIntegerCodePoint( - int transferFunctionCodePoint, -); - -@ffi.Native() -external int CVYCbCrMatrixGetIntegerCodePointForString( - CFStringRef yCbCrMatrixString, -); - -@ffi.Native() -external CFStringRef CVYCbCrMatrixGetStringForIntegerCodePoint( - int yCbCrMatrixCodePoint, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentCanDo(ComponentInstance ci, int ftnNumber); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentClose(ComponentInstance ci, ComponentInstance self); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CallComponentDispatch(ffi.Pointer cp); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - ffi.Pointer, - ComponentFunctionUPP, - ) ->() -external int CallComponentFunction( - ffi.Pointer params, - ComponentFunctionUPP func, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - Handle, - ffi.Pointer, - ComponentFunctionUPP, - ) ->() -external int CallComponentFunctionWithStorage( - Handle storage, - ffi.Pointer params, - ComponentFunctionUPP func, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - Handle, - ffi.Pointer, - ProcPtr, - ProcInfoType, - ) ->() -external int CallComponentFunctionWithStorageProcInfo( - Handle storage, - ffi.Pointer params, - ProcPtr func, - int funcProcInfo, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - ComponentInstance, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CallComponentGetMPWorkFunction( - ComponentInstance ci, - ffi.Pointer workFunction, - ffi.Pointer> refCon, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - ComponentInstance, - OSType, - SInt16, - ffi.Pointer, - ) ->() -external int CallComponentGetPublicResource( - ComponentInstance ci, - int resourceType, - int resourceID, - ffi.Pointer resource, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentOpen(ComponentInstance ci, ComponentInstance self); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentRegister(ComponentInstance ci); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentTarget( - ComponentInstance ci, - ComponentInstance target, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentUnregister(ComponentInstance ci); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentVersion(ComponentInstance ci); - -@Deprecated('Deprecated') -@ffi.Native() -external Component CaptureComponent( - Component capturedComponent, - Component capturingComponent, -); - -@ffi.Native() -external int ChangeTextToUnicodeInfo( - TextToUnicodeInfo ioTextToUnicodeInfo, - ConstUnicodeMappingPtr iUnicodeMapping, -); - -@ffi.Native() -external int ChangeUnicodeToTextInfo( - UnicodeToTextInfo ioUnicodeToTextInfo, - ConstUnicodeMappingPtr iUnicodeMapping, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void ChangedResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external Collection CloneCollection(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external int CloseComponent(ComponentInstance aComponentInstance); - -@Deprecated('Deprecated') -@ffi.Native() -external int CloseComponentResFile(int refnum); - -@Deprecated('Deprecated') -@ffi.Native() -external void CloseResFile(int refNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int CollectionTagExists(Collection c, int tag); - -@ffi.Native() -external int ColorSyncAPIVersion(); - -@ffi.Native() -external CFStringRef ColorSyncCMMCopyCMMIdentifier(ColorSyncCMMRef arg0); - -@ffi.Native() -external CFStringRef ColorSyncCMMCopyLocalizedName(ColorSyncCMMRef arg0); - -@ffi.Native() -external ColorSyncCMMRef ColorSyncCMMCreate(CFBundleRef cmmBundle); - -@ffi.Native() -external CFBundleRef ColorSyncCMMGetBundle(ColorSyncCMMRef arg0); - -@ffi.Native() -external int ColorSyncCMMGetTypeID(); - -@ffi.Native() -external CFTypeRef ColorSyncCreateCodeFragment( - CFArrayRef profileSequence, - CFDictionaryRef options, -); - -@ffi.Native() -external CFDictionaryRef ColorSyncDeviceCopyDeviceInfo( - CFStringRef deviceClass, - CFUUIDRef devID, -); - -@ffi.Native() -external bool ColorSyncDeviceSetCustomProfiles( - CFStringRef deviceClass, - CFUUIDRef deviceID, - CFDictionaryRef profileInfo, -); - -@ffi.Native< - ffi.Void Function( - ColorSyncDeviceProfileIterateCallback, - ffi.Pointer, - ) ->() -external void ColorSyncIterateDeviceProfiles( - ColorSyncDeviceProfileIterateCallback callBack, - ffi.Pointer userInfo, -); - -@ffi.Native< - ffi.Void Function(ColorSyncCMMIterateCallback, ffi.Pointer) ->() -external void ColorSyncIterateInstalledCMMs( - ColorSyncCMMIterateCallback callBack, - ffi.Pointer userInfo, -); - -@ffi.Native< - ffi.Void Function( - ColorSyncProfileIterateCallback, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void ColorSyncIterateInstalledProfiles( - ColorSyncProfileIterateCallback callBack, - ffi.Pointer seed, - ffi.Pointer userInfo, - ffi.Pointer error, -); - -@ffi.Native< - ffi.Void Function( - ColorSyncProfileIterateCallback, - ffi.Pointer, - ffi.Pointer, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external void ColorSyncIterateInstalledProfilesWithOptions( - ColorSyncProfileIterateCallback callBack, - ffi.Pointer seed, - ffi.Pointer userInfo, - CFDictionaryRef options, - ffi.Pointer error, -); - -@ffi.Native() -external bool ColorSyncProfileContainsTag( - ColorSyncProfileRef prof, - CFStringRef signature, -); - -@ffi.Native)>() -external CFDataRef ColorSyncProfileCopyData( - ColorSyncProfileRef prof, - ffi.Pointer error, -); - -@ffi.Native() -external CFStringRef ColorSyncProfileCopyDescriptionString( - ColorSyncProfileRef prof, -); - -@ffi.Native() -external CFDataRef ColorSyncProfileCopyHeader(ColorSyncProfileRef prof); - -@ffi.Native() -external CFDataRef ColorSyncProfileCopyTag( - ColorSyncProfileRef prof, - CFStringRef signature, -); - -@ffi.Native() -external CFArrayRef ColorSyncProfileCopyTagSignatures(ColorSyncProfileRef prof); - -@ffi.Native)>() -external ColorSyncProfileRef ColorSyncProfileCreate( - CFDataRef data, - ffi.Pointer error, -); - -@ffi.Native() -external ColorSyncProfileRef ColorSyncProfileCreateDeviceProfile( - CFStringRef deviceClass, - CFUUIDRef deviceID, - CFTypeRef profileID, -); - -@ffi.Native)>() -external CFDataRef ColorSyncProfileCreateDisplayTransferTablesFromVCGT( - ColorSyncProfileRef profile, - ffi.Pointer nSamplesPerChannel, -); - -@ffi.Native() -external ColorSyncProfileRef ColorSyncProfileCreateLink( - CFArrayRef profileInfo, - CFDictionaryRef options, -); - -@ffi.Native() -external ColorSyncMutableProfileRef ColorSyncProfileCreateMutable(); - -@ffi.Native() -external ColorSyncMutableProfileRef ColorSyncProfileCreateMutableCopy( - ColorSyncProfileRef prof, -); - -@ffi.Native() -external ColorSyncProfileRef ColorSyncProfileCreateWithDisplayID(int displayID); - -@ffi.Native() -external ColorSyncProfileRef ColorSyncProfileCreateWithName(CFStringRef name); - -@ffi.Native)>() -external ColorSyncProfileRef ColorSyncProfileCreateWithURL( - CFURLRef url, - ffi.Pointer error, -); - -@ffi.Native)>() -external double ColorSyncProfileEstimateGamma( - ColorSyncProfileRef prof, - ffi.Pointer error, -); - -@ffi.Native)>() -external double ColorSyncProfileEstimateGammaWithDisplayID( - int displayID, - ffi.Pointer error, -); - -@ffi.Native< - ffi.Bool Function( - ColorSyncProfileRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool ColorSyncProfileGetDisplayTransferFormulaFromVCGT( - ColorSyncProfileRef profile, - ffi.Pointer redMin, - ffi.Pointer redMax, - ffi.Pointer redGamma, - ffi.Pointer greenMin, - ffi.Pointer greenMax, - ffi.Pointer greenGamma, - ffi.Pointer blueMin, - ffi.Pointer blueMax, - ffi.Pointer blueGamma, -); - -@ffi.Native() -external ColorSyncMD5 ColorSyncProfileGetMD5(ColorSyncProfileRef prof); - -@ffi.Native() -external int ColorSyncProfileGetTypeID(); - -@ffi.Native)>() -external CFURLRef ColorSyncProfileGetURL( - ColorSyncProfileRef prof, - ffi.Pointer error, -); - -@ffi.Native< - ffi.Bool Function( - ColorSyncProfileRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external bool ColorSyncProfileInstall( - ColorSyncProfileRef profile, - CFStringRef domain, - CFStringRef subpath, - ffi.Pointer error, -); - -@ffi.Native() -external bool ColorSyncProfileIsHLGBased(ColorSyncProfileRef arg0); - -@ffi.Native() -external bool ColorSyncProfileIsMatrixBased(ColorSyncProfileRef arg0); - -@ffi.Native() -external bool ColorSyncProfileIsPQBased(ColorSyncProfileRef arg0); - -@ffi.Native() -external bool ColorSyncProfileIsWideGamut(ColorSyncProfileRef arg0); - -@ffi.Native() -external void ColorSyncProfileRemoveTag( - ColorSyncMutableProfileRef prof, - CFStringRef signature, -); - -@ffi.Native() -external void ColorSyncProfileSetHeader( - ColorSyncMutableProfileRef prof, - CFDataRef header, -); - -@ffi.Native< - ffi.Void Function(ColorSyncMutableProfileRef, CFStringRef, CFDataRef) ->() -external void ColorSyncProfileSetTag( - ColorSyncMutableProfileRef prof, - CFStringRef signature, - CFDataRef data, -); - -@ffi.Native)>() -external bool ColorSyncProfileUninstall( - ColorSyncProfileRef profile, - ffi.Pointer error, -); - -@ffi.Native< - ffi.Bool Function( - ColorSyncProfileRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool ColorSyncProfileVerify( - ColorSyncProfileRef prof, - ffi.Pointer errors, - ffi.Pointer warnings, -); - -@ffi.Native() -external bool ColorSyncRegisterDevice( - CFStringRef deviceClass, - CFUUIDRef deviceID, - CFDictionaryRef deviceInfo, -); - -@ffi.Native< - ffi.Bool Function( - ColorSyncTransformRef, - ffi.Size, - ffi.Size, - ffi.Pointer, - ffi.UnsignedInt, - ColorSyncDataLayout, - ffi.Size, - ffi.Pointer, - ffi.UnsignedInt, - ColorSyncDataLayout, - ffi.Size, - CFDictionaryRef, - ) ->(symbol: 'ColorSyncTransformConvert') -external bool _ColorSyncTransformConvert( - ColorSyncTransformRef transform, - int width, - int height, - ffi.Pointer dst, - int dstDepth, - int dstLayout, - int dstBytesPerRow, - ffi.Pointer src, - int srcDepth, - int srcLayout, - int srcBytesPerRow, - CFDictionaryRef options, -); - -bool ColorSyncTransformConvert( - ColorSyncTransformRef transform, - int width, - int height, - ffi.Pointer dst, - ColorSyncDataDepth dstDepth, - DartColorSyncDataLayout dstLayout, - int dstBytesPerRow, - ffi.Pointer src, - ColorSyncDataDepth srcDepth, - DartColorSyncDataLayout srcLayout, - int srcBytesPerRow, - CFDictionaryRef options, -) { - return _ColorSyncTransformConvert( - transform, - width, - height, - dst, - dstDepth.value, - dstLayout, - dstBytesPerRow, - src, - srcDepth.value, - srcLayout, - srcBytesPerRow, - options, - ); -} - -@ffi.Native< - CFTypeRef Function(ColorSyncTransformRef, CFTypeRef, CFDictionaryRef) ->() -external CFTypeRef ColorSyncTransformCopyProperty( - ColorSyncTransformRef transform, - CFTypeRef key, - CFDictionaryRef options, -); - -@ffi.Native() -external ColorSyncTransformRef ColorSyncTransformCreate( - CFArrayRef profileSequence, - CFDictionaryRef options, -); - -@ffi.Native() -external CFArrayRef ColorSyncTransformGetProfileSequence( - ColorSyncTransformRef transform, -); - -@ffi.Native() -external int ColorSyncTransformGetTypeID(); - -@ffi.Native() -external void ColorSyncTransformSetProperty( - ColorSyncTransformRef transform, - CFTypeRef key, - CFTypeRef property, -); - -@ffi.Native() -external bool ColorSyncUnregisterDevice( - CFStringRef deviceClass, - CFUUIDRef deviceID, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CompareAndSwap( - int oldValue, - int newValue, - ffi.Pointer address, -); - -@Deprecated('Use NSImage or Core Graphics to composite images.') -@ffi.Native)>() -external int CompositeIconRef( - IconRef backgroundIconRef, - IconRef foregroundIconRef, - ffi.Pointer compositeIconRef, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int ContinueSpeech(SpeechChannel chan); - -@ffi.Native< - OSStatus Function( - TextToUnicodeInfo, - ConstStr255Param, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ConvertFromPStringToUnicode( - TextToUnicodeInfo iTextToUnicodeInfo, - ConstStr255Param iPascalStr, - int iOutputBufLen, - ffi.Pointer oUnicodeLen, - ffi.Pointer oUnicodeStr, -); - -@ffi.Native< - OSStatus Function( - TextToUnicodeInfo, - ByteCount, - ConstLogicalAddress, - OptionBits, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ConvertFromTextToUnicode( - TextToUnicodeInfo iTextToUnicodeInfo, - int iSourceLen, - ConstLogicalAddress iSourceStr, - int iControlFlags, - int iOffsetCount, - ffi.Pointer iOffsetArray, - ffi.Pointer oOffsetCount, - ffi.Pointer oOffsetArray, - int iOutputBufLen, - ffi.Pointer oSourceRead, - ffi.Pointer oUnicodeLen, - ffi.Pointer oUnicodeStr, -); - -@ffi.Native< - OSStatus Function( - UnicodeToTextInfo, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ConvertFromUnicodeToPString( - UnicodeToTextInfo iUnicodeToTextInfo, - int iUnicodeLen, - ffi.Pointer iUnicodeStr, - ffi.Pointer oPascalStr, -); - -@ffi.Native< - OSStatus Function( - UnicodeToTextRunInfo, - ByteCount, - ffi.Pointer, - OptionBits, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ByteCount, - ffi.Pointer, - ffi.Pointer, - LogicalAddress, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ConvertFromUnicodeToScriptCodeRun( - UnicodeToTextRunInfo iUnicodeToTextInfo, - int iUnicodeLen, - ffi.Pointer iUnicodeStr, - int iControlFlags, - int iOffsetCount, - ffi.Pointer iOffsetArray, - ffi.Pointer oOffsetCount, - ffi.Pointer oOffsetArray, - int iOutputBufLen, - ffi.Pointer oInputRead, - ffi.Pointer oOutputLen, - LogicalAddress oOutputStr, - int iScriptRunBufLen, - ffi.Pointer oScriptRunOutLen, - ffi.Pointer oScriptCodeRuns, -); - -@ffi.Native< - OSStatus Function( - UnicodeToTextInfo, - ByteCount, - ffi.Pointer, - OptionBits, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ByteCount, - ffi.Pointer, - ffi.Pointer, - LogicalAddress, - ) ->() -external int ConvertFromUnicodeToText( - UnicodeToTextInfo iUnicodeToTextInfo, - int iUnicodeLen, - ffi.Pointer iUnicodeStr, - int iControlFlags, - int iOffsetCount, - ffi.Pointer iOffsetArray, - ffi.Pointer oOffsetCount, - ffi.Pointer oOffsetArray, - int iOutputBufLen, - ffi.Pointer oInputRead, - ffi.Pointer oOutputLen, - LogicalAddress oOutputStr, -); - -@ffi.Native< - OSStatus Function( - UnicodeToTextRunInfo, - ByteCount, - ffi.Pointer, - OptionBits, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ByteCount, - ffi.Pointer, - ffi.Pointer, - LogicalAddress, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ConvertFromUnicodeToTextRun( - UnicodeToTextRunInfo iUnicodeToTextInfo, - int iUnicodeLen, - ffi.Pointer iUnicodeStr, - int iControlFlags, - int iOffsetCount, - ffi.Pointer iOffsetArray, - ffi.Pointer oOffsetCount, - ffi.Pointer oOffsetArray, - int iOutputBufLen, - ffi.Pointer oInputRead, - ffi.Pointer oOutputLen, - LogicalAddress oOutputStr, - int iEncodingRunBufLen, - ffi.Pointer oEncodingRunOutLen, - ffi.Pointer oEncodingRuns, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Collection CopyCollection( - Collection srcCollection, - Collection dstCollection, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(SpeechChannel, CFStringRef, ffi.Pointer) ->() -external int CopyPhonemesFromText( - SpeechChannel chan, - CFStringRef text, - ffi.Pointer phonemes, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int CopyProcessName( - ffi.Pointer psn, - ffi.Pointer name, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(SpeechChannel, CFStringRef, ffi.Pointer) ->() -external int CopySpeechProperty( - SpeechChannel chan, - CFStringRef property, - ffi.Pointer object, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - OSType, - OSType, - SInt16, - ffi.Pointer, - ByteCount, - Boolean, - ) ->() -external int CoreEndianFlipData( - int dataDomain, - int dataType, - int id, - ffi.Pointer data, - int dataLen, - int currentlyNative, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - OSType, - OSType, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CoreEndianGetFlipper( - int dataDomain, - int dataType, - ffi.Pointer proc, - ffi.Pointer> refcon, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(OSType, OSType, CoreEndianFlipProc, ffi.Pointer) ->() -external int CoreEndianInstallFlipper( - int dataDomain, - int dataType, - CoreEndianFlipProc proc, - ffi.Pointer refcon, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int Count1Resources(int theType); - -@Deprecated('Deprecated') -@ffi.Native() -external int Count1Types(); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountCollectionItems(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountCollectionOwners(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountCollectionTags(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountComponentInstances(Component aComponent); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CountComponents(ffi.Pointer looking); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountResources(int theType); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountTaggedCollectionItems(Collection c, int tag); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountTypes(); - -@ffi.Native< - OSStatus Function(OptionBits, ConstUnicodeMappingPtr, ffi.Pointer) ->() -external int CountUnicodeMappings( - int iFilter, - ConstUnicodeMappingPtr iFindMapping, - ffi.Pointer oActualCount, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int CountVoices(ffi.Pointer numVoices); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - ffi.Pointer, - Boolean, - ffi.Pointer, - ) ->() -external int CreateCompDescriptor( - int comparisonOperator, - ffi.Pointer operand1, - ffi.Pointer operand2, - int disposeInputs, - ffi.Pointer theDescriptor, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - DescType, - Boolean, - ffi.Pointer, - ) ->() -external int CreateLogicalDescriptor( - ffi.Pointer theLogicalTerms, - int theLogicOperator, - int disposeInputs, - ffi.Pointer theDescriptor, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - DescType, - ffi.Pointer, - Boolean, - ffi.Pointer, - ) ->() -external int CreateObjSpecifier( - int desiredClass, - ffi.Pointer theContainer, - int keyForm, - ffi.Pointer keyData, - int disposeInputs, - ffi.Pointer objSpecifier, -); - -@ffi.Native)>() -external int CreateOffsetDescriptor( - int theOffset, - ffi.Pointer theDescriptor, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - Boolean, - ffi.Pointer, - ) ->() -external int CreateRangeDescriptor( - ffi.Pointer rangeStart, - ffi.Pointer rangeStop, - int disposeInputs, - ffi.Pointer theDescriptor, -); - -@ffi.Native< - TextEncoding Function( - TextEncodingBase, - TextEncodingVariant, - TextEncodingFormat, - ) ->() -external int CreateTextEncoding( - int encodingBase, - int encodingVariant, - int encodingFormat, -); - -@ffi.Native< - OSStatus Function(ConstUnicodeMappingPtr, ffi.Pointer) ->() -external int CreateTextToUnicodeInfo( - ConstUnicodeMappingPtr iUnicodeMapping, - ffi.Pointer oTextToUnicodeInfo, -); - -@ffi.Native)>() -external int CreateTextToUnicodeInfoByEncoding( - int iEncoding, - ffi.Pointer oTextToUnicodeInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CreateThreadPool(int threadStyle, int numToCreate, int stackSize); - -@ffi.Native< - OSStatus Function(ConstUnicodeMappingPtr, ffi.Pointer) ->() -external int CreateUnicodeToTextInfo( - ConstUnicodeMappingPtr iUnicodeMapping, - ffi.Pointer oUnicodeToTextInfo, -); - -@ffi.Native)>() -external int CreateUnicodeToTextInfoByEncoding( - int iEncoding, - ffi.Pointer oUnicodeToTextInfo, -); - -@ffi.Native< - OSStatus Function( - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CreateUnicodeToTextRunInfo( - int iNumberOfMappings, - ffi.Pointer iUnicodeMappings, - ffi.Pointer oUnicodeToTextInfo, -); - -@ffi.Native< - OSStatus Function( - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CreateUnicodeToTextRunInfoByEncoding( - int iNumberOfEncodings, - ffi.Pointer iEncodings, - ffi.Pointer oUnicodeToTextInfo, -); - -@ffi.Native< - OSStatus Function( - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CreateUnicodeToTextRunInfoByScriptCode( - int iNumberOfScriptCodes, - ffi.Pointer iScripts, - ffi.Pointer oUnicodeToTextInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CurResFile(); - -@Deprecated('No longer supported') -@ffi.Native() -external int CurrentProcessorSpeed(); - -@ffi.Native() -external DAApprovalSessionRef DAApprovalSessionCreate(CFAllocatorRef allocator); - -@ffi.Native() -external int DAApprovalSessionGetTypeID(); - -@ffi.Native< - ffi.Void Function(DAApprovalSessionRef, CFRunLoopRef, CFStringRef) ->() -external void DAApprovalSessionScheduleWithRunLoop( - DAApprovalSessionRef session, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native< - ffi.Void Function(DAApprovalSessionRef, CFRunLoopRef, CFStringRef) ->() -external void DAApprovalSessionUnscheduleFromRunLoop( - DAApprovalSessionRef session, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native() -external CFDictionaryRef DADiskCopyDescription(DADiskRef disk); - -@ffi.Native() -external int DADiskCopyIOMedia(DADiskRef disk); - -@ffi.Native() -external DADiskRef DADiskCopyWholeDisk(DADiskRef disk); - -@ffi.Native< - DADiskRef Function(CFAllocatorRef, DASessionRef, ffi.Pointer) ->() -external DADiskRef DADiskCreateFromBSDName( - CFAllocatorRef allocator, - DASessionRef session, - ffi.Pointer name, -); - -@ffi.Native() -external DADiskRef DADiskCreateFromIOMedia( - CFAllocatorRef allocator, - DASessionRef session, - int media, -); - -@ffi.Native() -external DADiskRef DADiskCreateFromVolumePath( - CFAllocatorRef allocator, - DASessionRef session, - CFURLRef path, -); - -@ffi.Native Function(DADiskRef)>() -external ffi.Pointer DADiskGetBSDName(DADiskRef disk); - -@ffi.Native() -external int DADiskGetTypeID(); - -@ffi.Native() -external DASessionRef DASessionCreate(CFAllocatorRef allocator); - -@ffi.Native() -external int DASessionGetTypeID(); - -@ffi.Native() -external void DASessionScheduleWithRunLoop( - DASessionRef session, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native( - symbol: 'DASessionSetDispatchQueue', -) -external void _DASessionSetDispatchQueue( - DASessionRef session, - dispatch_queue_t queue, -); - -void DASessionSetDispatchQueue( - DASessionRef session, - Dartdispatch_queue_t? queue, -) { - final _$$ref = queue?.ref; - return _DASessionSetDispatchQueue(session, _$$ref?.pointer ?? ffi.nullptr); -} - -@ffi.Native() -external void DASessionUnscheduleFromRunLoop( - DASessionRef session, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native() -external CFStringRef DCSCopyTextDefinition( - DCSDictionaryRef dictionary, - CFStringRef textString, - CFRange range, -); - -@ffi.Native() -external CFRange DCSGetTermRangeInString( - DCSDictionaryRef dictionary, - CFStringRef textString, - int offset, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ) ->() -external void DebugAssert( - int componentSignature, - int options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - int lineNumber, - ffi.Pointer value, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DebugStr(ConstStr255Param debuggerMsg); - -@Deprecated('Deprecated') -@ffi.Native() -external void Debugger(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int DecrementAtomic(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int DecrementAtomic16(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int DecrementAtomic8(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) ->() -external void Delay(int numTicks, ffi.Pointer finalTicks); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function(ffi.Pointer, ComponentInstance) ->() -external int DelegateComponentCall( - ffi.Pointer originalParams, - ComponentInstance ci, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int DeleteGestaltValue(int selector); - -@Deprecated('Deprecated') -@ffi.Native() -external int Dequeue(QElemPtr qElement, QHdrPtr qHeader); - -@Deprecated('Deprecated') -@ffi.Native() -external void DetachResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external int DetachResourceFile(int refNum); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSVolumeRefNum, - OSType, - ffi.Pointer, - Boolean, - ffi.Pointer, - ) ->() -external int DetermineIfPathIsEnclosedByFolder( - int domainOrVRefNum, - int folderType, - ffi.Pointer utf8Path, - int pathIsRealPath, - ffi.Pointer outResult, -); - -@ffi.Native() -external void DisposeAECoerceDescUPP(AECoerceDescUPP userUPP); - -@ffi.Native() -external void DisposeAECoercePtrUPP(AECoercePtrUPP userUPP); - -@ffi.Native() -external void DisposeAEDisposeExternalUPP(AEDisposeExternalUPP userUPP); - -@ffi.Native() -external void DisposeAEEventHandlerUPP(AEEventHandlerUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeCollection(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeCollectionExceptionUPP(CollectionExceptionUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeCollectionFlattenUPP(CollectionFlattenUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeComponentFunctionUPP(ComponentFunctionUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeComponentMPWorkFunctionUPP( - ComponentMPWorkFunctionUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeComponentRoutineUPP(ComponentRoutineUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDebugAssertOutputHandlerUPP( - DebugAssertOutputHandlerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int DisposeDebugComponent(int componentSignature); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDebugComponentCallbackUPP( - DebugComponentCallbackUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDebuggerDisposeThreadUPP(DebuggerDisposeThreadUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDebuggerNewThreadUPP(DebuggerNewThreadUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDebuggerThreadSchedulerUPP( - DebuggerThreadSchedulerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDeferredTaskUPP(DeferredTaskUPP userUPP); - -@Deprecated('No longer supported') -@ffi.Native() -external void DisposeExceptionHandlerUPP(ExceptionHandlerUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeFNSubscriptionUPP(FNSubscriptionUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeFSVolumeEjectUPP(FSVolumeEjectUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeFSVolumeMountUPP(FSVolumeMountUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeFSVolumeUnmountUPP(FSVolumeUnmountUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeFolderManagerNotificationUPP( - FolderManagerNotificationUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeGetMissingComponentResourceUPP( - GetMissingComponentResourceUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeHandle(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeIOCompletionUPP(IOCompletionUPP userUPP); - -@ffi.Native() -external void DisposeIconActionUPP(IconActionUPP userUPP); - -@ffi.Native() -external void DisposeIconGetterUPP(IconGetterUPP userUPP); - -@ffi.Native() -external void DisposeIndexToUCStringUPP(IndexToUCStringUPP userUPP); - -@Deprecated('No longer supported') -@ffi.Native() -external void DisposeKCCallbackUPP(KCCallbackUPP userUPP); - -@ffi.Native() -external void DisposeOSLAccessorUPP(OSLAccessorUPP userUPP); - -@ffi.Native() -external void DisposeOSLAdjustMarksUPP(OSLAdjustMarksUPP userUPP); - -@ffi.Native() -external void DisposeOSLCompareUPP(OSLCompareUPP userUPP); - -@ffi.Native() -external void DisposeOSLCountUPP(OSLCountUPP userUPP); - -@ffi.Native() -external void DisposeOSLDisposeTokenUPP(OSLDisposeTokenUPP userUPP); - -@ffi.Native() -external void DisposeOSLGetErrDescUPP(OSLGetErrDescUPP userUPP); - -@ffi.Native() -external void DisposeOSLGetMarkTokenUPP(OSLGetMarkTokenUPP userUPP); - -@ffi.Native() -external void DisposeOSLMarkUPP(OSLMarkUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposePtr(Ptr p); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeResErrUPP(ResErrUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeSelectorFunctionUPP(SelectorFunctionUPP userUPP); - -@Deprecated('No longer supported') -@ffi.Native() -external void DisposeSleepQUPP(SleepQUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int DisposeSpeechChannel(SpeechChannel chan); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechDoneUPP(SpeechDoneUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechErrorUPP(SpeechErrorUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechPhonemeUPP(SpeechPhonemeUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechSyncUPP(SpeechSyncUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechTextDoneUPP(SpeechTextDoneUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechWordUPP(SpeechWordUPP userUPP); - -@ffi.Native)>() -external int DisposeTextToUnicodeInfo( - ffi.Pointer ioTextToUnicodeInfo, -); - -@Deprecated('Deprecated') -@ffi.Native, Boolean)>() -external int DisposeThread( - int threadToDump, - ffi.Pointer threadResult, - int recycleThread, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeThreadEntryUPP(ThreadEntryUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeThreadSchedulerUPP(ThreadSchedulerUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeThreadSwitchUPP(ThreadSwitchUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeThreadTerminationUPP(ThreadTerminationUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeTimerUPP(TimerUPP userUPP); - -@ffi.Native() -external void DisposeUnicodeToTextFallbackUPP(UnicodeToTextFallbackUPP userUPP); - -@ffi.Native)>() -external int DisposeUnicodeToTextInfo( - ffi.Pointer ioUnicodeToTextInfo, -); - -@ffi.Native)>() -external int DisposeUnicodeToTextRunInfo( - ffi.Pointer ioUnicodeToTextRunInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime DurationToAbsolute(int duration); - -@Deprecated('Deprecated') -@ffi.Native() -external Nanoseconds DurationToNanoseconds(int theDuration); - -@Deprecated('Deprecated') -@ffi.Native() -external void EmptyCollection(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external void EmptyHandle(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external void Enqueue(QElemPtr qElement, QHdrPtr qHeader); - -@Deprecated('Deprecated') -@ffi.Native() -external void ExitToShell(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FNGetDirectoryForSubscription( - FNSubscriptionRef subscription, - ffi.Pointer ref, -); - -@Deprecated('Deprecated') -@ffi.Native, FNMessage, OptionBits)>() -external int FNNotify(ffi.Pointer ref, int message, int flags); - -@Deprecated('Deprecated') -@ffi.Native() -external int FNNotifyAll(int message, int flags); - -@Deprecated('Deprecated') -@ffi.Native, FNMessage, OptionBits)>() -external int FNNotifyByPath(ffi.Pointer path, int message, int flags); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - FNSubscriptionUPP, - ffi.Pointer, - OptionBits, - ffi.Pointer, - ) ->() -external int FNSubscribe( - ffi.Pointer directoryRef, - FNSubscriptionUPP callback, - ffi.Pointer refcon, - int flags, - ffi.Pointer subscription, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - FNSubscriptionUPP, - ffi.Pointer, - OptionBits, - ffi.Pointer, - ) ->() -external int FNSubscribeByPath( - ffi.Pointer directoryPath, - FNSubscriptionUPP callback, - ffi.Pointer refcon, - int flags, - ffi.Pointer subscription, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FNUnsubscribe(FNSubscriptionRef subscription); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIORefNum, - FSAllocationFlags, - UInt16, - SInt64, - UInt64, - ffi.Pointer, - ) ->() -external int FSAllocateFork( - int forkRefNum, - int flags, - int positionMode, - int positionOffset, - int requestCount, - ffi.Pointer actualCount, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSCancelVolumeOperation(FSVolumeOperation volumeOp); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIterator, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ffi.Pointer, - ) ->() -external int FSCatalogSearch( - FSIterator iterator, - ffi.Pointer searchCriteria, - int maximumObjects, - ffi.Pointer actualObjects, - ffi.Pointer containerChanged, - int whichInfo, - ffi.Pointer catalogInfos, - ffi.Pointer refs, - FSSpecPtr specs, - ffi.Pointer names, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSCloseFork(int forkRefNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSCloseIterator(FSIterator iterator); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Pointer)>() -external int FSCompareFSRefs(ffi.Pointer ref1, ffi.Pointer ref2); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - AliasHandle, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSCopyAliasInfo( - AliasHandle inAlias, - ffi.Pointer targetName, - ffi.Pointer volumeName, - ffi.Pointer pathString, - ffi.Pointer whichInfo, - ffi.Pointer info, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSCopyDADiskForVolume(int vRefNum, ffi.Pointer disk); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSCopyDiskIDForVolume( - int vRefNum, - ffi.Pointer diskID, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - ffi.Pointer, - CFStringRef, - OptionBits, - FSFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSCopyObjectAsync( - FSFileOperationRef fileOp, - ffi.Pointer source, - ffi.Pointer destDir, - CFStringRef destName, - int flags, - FSFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - ffi.Pointer, - OptionBits, - ) ->() -external int FSCopyObjectSync( - ffi.Pointer source, - ffi.Pointer destDir, - CFStringRef destName, - ffi.Pointer target, - int options, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSCopyURLForVolume(int vRefNum, ffi.Pointer url); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ffi.Pointer, - ) ->() -external int FSCreateDirectoryUnicode( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int whichInfo, - ffi.Pointer catalogInfo, - ffi.Pointer newRef, - FSSpecPtr newSpec, - ffi.Pointer newDirID, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - SInt8, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSCreateFileAndOpenForkUnicode( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int whichInfo, - ffi.Pointer catalogInfo, - int forkNameLength, - ffi.Pointer forkName, - int permissions, - ffi.Pointer forkRefNum, - ffi.Pointer newRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ) ->() -external int FSCreateFileUnicode( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int whichInfo, - ffi.Pointer catalogInfo, - ffi.Pointer newRef, - FSSpecPtr newSpec, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer) ->() -external int FSCreateFork( - ffi.Pointer ref, - int forkNameLength, - ffi.Pointer forkName, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ) ->() -external void FSCreateResFile( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int whichInfo, - ffi.Pointer catalogInfo, - ffi.Pointer newRef, - FSSpecPtr newSpec, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ) ->() -external int FSCreateResourceFile( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int whichInfo, - ffi.Pointer catalogInfo, - int forkNameLength, - ffi.Pointer forkName, - ffi.Pointer newRef, - FSSpecPtr newSpec, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer, UInt32) ->() -external int FSCreateResourceFork( - ffi.Pointer ref, - int forkNameLength, - ffi.Pointer forkName, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external CFStringRef FSCreateStringFromHFSUniStr( - CFAllocatorRef alloc, - ffi.Pointer uniStr, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSCreateVolumeOperation(ffi.Pointer volumeOp); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer) ->() -external int FSDeleteFork( - ffi.Pointer ref, - int forkNameLength, - ffi.Pointer forkName, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSDeleteObject(ffi.Pointer ref); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSVolumeRefNum, - OSType, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSDetermineIfRefIsEnclosedByFolder( - int domainOrVRefNum, - int folderType, - ffi.Pointer inRef, - ffi.Pointer outResult, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSDisposeVolumeOperation(FSVolumeOperation volumeOp); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeRefNum, - OptionBits, - FSVolumeOperation, - ffi.Pointer, - FSVolumeEjectUPP, - CFRunLoopRef, - CFStringRef, - ) ->() -external int FSEjectVolumeAsync( - int vRefNum, - int flags, - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - FSVolumeEjectUPP callback, - CFRunLoopRef runloop, - CFStringRef runloopMode, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSEjectVolumeSync( - int vRefNum, - int flags, - ffi.Pointer dissenter, -); - -@ffi.Native() -external CFStringRef FSEventStreamCopyDescription( - ConstFSEventStreamRef streamRef, -); - -@ffi.Native() -external CFArrayRef FSEventStreamCopyPathsBeingWatched( - ConstFSEventStreamRef streamRef, -); - -@ffi.Native< - FSEventStreamRef Function( - CFAllocatorRef, - FSEventStreamCallback, - ffi.Pointer, - CFArrayRef, - FSEventStreamEventId, - CFTimeInterval, - FSEventStreamCreateFlags, - ) ->() -external FSEventStreamRef FSEventStreamCreate( - CFAllocatorRef allocator, - FSEventStreamCallback callback, - ffi.Pointer context, - CFArrayRef pathsToWatch, - int sinceWhen, - double latency, - int flags, -); - -@ffi.Native< - FSEventStreamRef Function( - CFAllocatorRef, - FSEventStreamCallback, - ffi.Pointer, - dev_t, - CFArrayRef, - FSEventStreamEventId, - CFTimeInterval, - FSEventStreamCreateFlags, - ) ->() -external FSEventStreamRef FSEventStreamCreateRelativeToDevice( - CFAllocatorRef allocator, - FSEventStreamCallback callback, - ffi.Pointer context, - int deviceToWatch, - CFArrayRef pathsToWatchRelativeToDevice, - int sinceWhen, - double latency, - int flags, -); - -@ffi.Native() -external int FSEventStreamFlushAsync(FSEventStreamRef streamRef); - -@ffi.Native() -external void FSEventStreamFlushSync(FSEventStreamRef streamRef); - -@ffi.Native() -external int FSEventStreamGetDeviceBeingWatched( - ConstFSEventStreamRef streamRef, -); - -@ffi.Native() -external int FSEventStreamGetLatestEventId(ConstFSEventStreamRef streamRef); - -@ffi.Native() -external void FSEventStreamInvalidate(FSEventStreamRef streamRef); - -@ffi.Native() -external void FSEventStreamRelease(FSEventStreamRef streamRef); - -@ffi.Native() -external void FSEventStreamRetain(FSEventStreamRef streamRef); - -@Deprecated('Use FSEventStreamSetDispatchQueue instead.') -@ffi.Native() -external void FSEventStreamScheduleWithRunLoop( - FSEventStreamRef streamRef, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native( - symbol: 'FSEventStreamSetDispatchQueue', -) -external void _FSEventStreamSetDispatchQueue( - FSEventStreamRef streamRef, - dispatch_queue_t q, -); - -void FSEventStreamSetDispatchQueue( - FSEventStreamRef streamRef, - Dartdispatch_queue_t? q, -) { - final _$$ref = q?.ref; - return _FSEventStreamSetDispatchQueue( - streamRef, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native() -external int FSEventStreamSetExclusionPaths( - FSEventStreamRef streamRef, - CFArrayRef pathsToExclude, -); - -@ffi.Native() -external void FSEventStreamShow(ConstFSEventStreamRef streamRef); - -@ffi.Native() -external int FSEventStreamStart(FSEventStreamRef streamRef); - -@ffi.Native() -external void FSEventStreamStop(FSEventStreamRef streamRef); - -@Deprecated('Use FSEventStreamSetDispatchQueue instead.') -@ffi.Native() -external void FSEventStreamUnscheduleFromRunLoop( - FSEventStreamRef streamRef, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native() -external CFUUIDRef FSEventsCopyUUIDForDevice(int dev); - -@ffi.Native() -external int FSEventsGetCurrentEventId(); - -@ffi.Native() -external int FSEventsGetLastEventIdForDeviceBeforeTime(int dev, double time$1); - -@ffi.Native() -external int FSEventsPurgeEventsForDeviceUpToEventId(int dev, int eventId); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Pointer)>() -external int FSExchangeObjects( - ffi.Pointer ref, - ffi.Pointer destRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileOperationCancel(FSFileOperationRef fileOp); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int FSFileOperationCopyStatus( - FSFileOperationRef fileOp, - ffi.Pointer currentItem, - ffi.Pointer stage, - ffi.Pointer error, - ffi.Pointer statusDictionary, - ffi.Pointer> info, -); - -@Deprecated('Deprecated') -@ffi.Native() -external FSFileOperationRef FSFileOperationCreate(CFAllocatorRef alloc); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileOperationGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileOperationScheduleWithRunLoop( - FSFileOperationRef fileOp, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileOperationUnscheduleFromRunLoop( - FSFileOperationRef fileOp, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityCopyAccessControlList( - FSFileSecurityRef fileSec, - ffi.Pointer accessControlList, -); - -@Deprecated('Deprecated') -@ffi.Native() -external FSFileSecurityRef FSFileSecurityCreate(CFAllocatorRef alloc); - -@Deprecated('Deprecated') -@ffi.Native< - FSFileSecurityRef Function(CFAllocatorRef, ffi.Pointer) ->() -external FSFileSecurityRef FSFileSecurityCreateWithFSPermissionInfo( - CFAllocatorRef alloc, - ffi.Pointer permissions, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityGetGroup( - FSFileSecurityRef fileSec, - ffi.Pointer group, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityGetGroupUUID( - FSFileSecurityRef fileSec, - ffi.Pointer group, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityGetMode( - FSFileSecurityRef fileSec, - ffi.Pointer mode, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityGetOwner( - FSFileSecurityRef fileSec, - ffi.Pointer owner, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityGetOwnerUUID( - FSFileSecurityRef fileSec, - ffi.Pointer owner, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileSecurityGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native() -external FSFileSecurityRef FSFileSecurityRefCreateCopy( - CFAllocatorRef alloc, - FSFileSecurityRef fileSec, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileSecuritySetAccessControlList( - FSFileSecurityRef fileSec, - acl_t accessControlList, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileSecuritySetGroup(FSFileSecurityRef fileSec, int group); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecuritySetGroupUUID( - FSFileSecurityRef fileSec, - ffi.Pointer group, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileSecuritySetMode(FSFileSecurityRef fileSec, int mode); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileSecuritySetOwner(FSFileSecurityRef fileSec, int owner); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecuritySetOwnerUUID( - FSFileSecurityRef fileSec, - ffi.Pointer owner, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(FSVolumeRefNum, OSType, Boolean, ffi.Pointer) ->() -external int FSFindFolder( - int vRefNum, - int folderType, - int createFolder, - ffi.Pointer foundRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFlushFork(int forkRefNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFlushVolume(int vRefNum); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - AliasHandle, - Boolean, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSFollowFinderAlias( - ffi.Pointer fromFile, - AliasHandle alias, - int logon, - ffi.Pointer target, - ffi.Pointer wasChanged, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeOperation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int FSGetAsyncEjectStatus( - FSVolumeOperation volumeOp, - ffi.Pointer status, - ffi.Pointer volumeOpStatus, - ffi.Pointer volumeRefNum, - ffi.Pointer dissenter, - ffi.Pointer> clientData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeOperation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int FSGetAsyncMountStatus( - FSVolumeOperation volumeOp, - ffi.Pointer status, - ffi.Pointer volumeOpStatus, - ffi.Pointer mountedVolumeRefNum, - ffi.Pointer> clientData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeOperation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int FSGetAsyncUnmountStatus( - FSVolumeOperation volumeOp, - ffi.Pointer status, - ffi.Pointer volumeOpStatus, - ffi.Pointer volumeRefNum, - ffi.Pointer dissenter, - ffi.Pointer> clientData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ffi.Pointer, - ) ->() -external int FSGetCatalogInfo( - ffi.Pointer ref, - int whichInfo, - ffi.Pointer catalogInfo, - ffi.Pointer outName, - FSSpecPtr fsSpec, - ffi.Pointer parentRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIterator, - ItemCount, - ffi.Pointer, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ffi.Pointer, - ) ->() -external int FSGetCatalogInfoBulk( - FSIterator iterator, - int maximumObjects, - ffi.Pointer actualObjects, - ffi.Pointer containerChanged, - int whichInfo, - ffi.Pointer catalogInfos, - ffi.Pointer refs, - FSSpecPtr specs, - ffi.Pointer names, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetDataForkName(ffi.Pointer dataForkName); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIORefNum, - FSVolumeRefNum, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSGetForkCBInfo( - int desiredRefNum, - int volume, - ffi.Pointer iterator, - ffi.Pointer actualRefNum, - ffi.Pointer forkInfo, - ffi.Pointer ref, - ffi.Pointer outForkName, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetForkPosition(int forkRefNum, ffi.Pointer position); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetForkSize(int forkRefNum, ffi.Pointer forkSize); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetHFSUniStrFromString( - CFStringRef theString, - ffi.Pointer uniStr, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetResourceForkName(ffi.Pointer resourceForkName); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer, OptionBits) ->() -external int FSGetTemporaryDirectoryForReplaceObject( - ffi.Pointer originalObject, - ffi.Pointer temporaryDirectory, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetVolumeForDADisk( - DADiskRef disk, - ffi.Pointer vRefNum, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetVolumeForDiskID( - CFStringRef diskID, - ffi.Pointer vRefNum, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSVolumeRefNum, - ItemCount, - ffi.Pointer, - FSVolumeInfoBitmap, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSGetVolumeInfo( - int volume, - int volumeIndex, - ffi.Pointer actualVolume, - int whichInfo, - ffi.Pointer info, - ffi.Pointer volumeName, - ffi.Pointer rootDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(FSVolumeRefNum, BytePtr, ByteCount, ffi.Pointer) ->() -external int FSGetVolumeMountInfo( - int volume, - BytePtr buffer, - int bufferSize, - ffi.Pointer actualSize, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetVolumeMountInfoSize(int volume, ffi.Pointer size); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeRefNum, - ffi.Pointer, - ByteCount, - ) ->() -external int FSGetVolumeParms( - int volume, - ffi.Pointer buffer, - int bufferSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Pointer) ->() -external int FSIsAliasFile( - ffi.Pointer fileRef, - ffi.Pointer aliasFileFlag, - ffi.Pointer folderFlag, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSIsFSRefValid(ffi.Pointer ref); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSIterateForks( - ffi.Pointer ref, - ffi.Pointer forkIterator, - ffi.Pointer forkName, - ffi.Pointer forkSize, - ffi.Pointer forkPhysicalSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(FSIORefNum, UInt16, SInt64, UInt64, ffi.Pointer) ->() -external int FSLockRange( - int forkRefNum, - int positionMode, - int positionOffset, - int requestCount, - ffi.Pointer rangeStart, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - TextEncoding, - ffi.Pointer, - ) ->() -external int FSMakeFSRefUnicode( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int textEncodingHint, - ffi.Pointer newRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.UnsignedLong, - AliasHandle, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - FSAliasFilterProcPtr, - ffi.Pointer, - ) ->() -external int FSMatchAliasBulk( - ffi.Pointer fromFile, - int rulesMask, - AliasHandle inAlias, - ffi.Pointer aliasCount, - ffi.Pointer aliasList, - ffi.Pointer needsUpdate, - FSAliasFilterProcPtr aliasFilter, - ffi.Pointer yourDataPtr, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFStringRef, - CFURLRef, - FSVolumeOperation, - ffi.Pointer, - OptionBits, - FSVolumeMountUPP, - CFRunLoopRef, - CFStringRef, - ) ->() -external int FSMountLocalVolumeAsync( - CFStringRef diskID, - CFURLRef mountDir, - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - int flags, - FSVolumeMountUPP callback, - CFRunLoopRef runloop, - CFStringRef runloopMode, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFStringRef, - CFURLRef, - ffi.Pointer, - OptionBits, - ) ->() -external int FSMountLocalVolumeSync( - CFStringRef diskID, - CFURLRef mountDir, - ffi.Pointer mountedVolumeRefNum, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - FSVolumeOperation, - ffi.Pointer, - OptionBits, - FSVolumeMountUPP, - CFRunLoopRef, - CFStringRef, - ) ->() -external int FSMountServerVolumeAsync( - CFURLRef url, - CFURLRef mountDir, - CFStringRef user, - CFStringRef password, - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - int flags, - FSVolumeMountUPP callback, - CFRunLoopRef runloop, - CFStringRef runloopMode, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - OptionBits, - ) ->() -external int FSMountServerVolumeSync( - CFURLRef url, - CFURLRef mountDir, - CFStringRef user, - CFStringRef password, - ffi.Pointer mountedVolumeRefNum, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Pointer) ->() -external int FSMoveObject( - ffi.Pointer ref, - ffi.Pointer destDirectory, - ffi.Pointer newRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - ffi.Pointer, - CFStringRef, - OptionBits, - FSFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSMoveObjectAsync( - FSFileOperationRef fileOp, - ffi.Pointer source, - ffi.Pointer destDir, - CFStringRef destName, - int flags, - FSFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - ffi.Pointer, - OptionBits, - ) ->() -external int FSMoveObjectSync( - ffi.Pointer source, - ffi.Pointer destDir, - CFStringRef destName, - ffi.Pointer target, - int options, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - OptionBits, - FSFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSMoveObjectToTrashAsync( - FSFileOperationRef fileOp, - ffi.Pointer source, - int flags, - FSFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer, OptionBits) ->() -external int FSMoveObjectToTrashSync( - ffi.Pointer source, - ffi.Pointer target, - int options, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSNewAlias( - ffi.Pointer fromFile, - ffi.Pointer target, - ffi.Pointer inAlias, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSNewAliasFromPath( - ffi.Pointer fromFilePath, - ffi.Pointer targetPath, - int flags, - ffi.Pointer inAlias, - ffi.Pointer isDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Pointer)>() -external int FSNewAliasMinimal( - ffi.Pointer target, - ffi.Pointer inAlias, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSNewAliasMinimalUnicode( - ffi.Pointer targetParentRef, - int targetNameLength, - ffi.Pointer targetName, - ffi.Pointer inAlias, - ffi.Pointer isDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSNewAliasUnicode( - ffi.Pointer fromFile, - ffi.Pointer targetParentRef, - int targetNameLength, - ffi.Pointer targetName, - ffi.Pointer inAlias, - ffi.Pointer isDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - SInt8, - ffi.Pointer, - ) ->() -external int FSOpenFork( - ffi.Pointer ref, - int forkNameLength, - ffi.Pointer forkName, - int permissions, - ffi.Pointer forkRefNum, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, FSIteratorFlags, ffi.Pointer) ->() -external int FSOpenIterator( - ffi.Pointer container, - int iteratorFlags, - ffi.Pointer iterator, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, SignedByte, ffi.Pointer) ->() -external int FSOpenOrphanResFile( - ffi.Pointer ref, - int permission, - ffi.Pointer refNum, -); - -@Deprecated('Deprecated') -@ffi.Native, SInt8)>() -external int FSOpenResFile(ffi.Pointer ref, int permission); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - SInt8, - ffi.Pointer, - ) ->() -external int FSOpenResourceFile( - ffi.Pointer ref, - int forkNameLength, - ffi.Pointer forkName, - int permissions, - ffi.Pointer refNum, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - ffi.Pointer, - CFStringRef, - OptionBits, - FSPathFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSPathCopyObjectAsync( - FSFileOperationRef fileOp, - ffi.Pointer sourcePath, - ffi.Pointer destDirPath, - CFStringRef destName, - int flags, - FSPathFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - ffi.Pointer>, - OptionBits, - ) ->() -external int FSPathCopyObjectSync( - ffi.Pointer sourcePath, - ffi.Pointer destDirPath, - CFStringRef destName, - ffi.Pointer> targetPath, - int options, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int FSPathFileOperationCopyStatus( - FSFileOperationRef fileOp, - ffi.Pointer> currentItem, - ffi.Pointer stage, - ffi.Pointer error, - ffi.Pointer statusDictionary, - ffi.Pointer> info, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - UInt32, - OptionBits, - ) ->() -external int FSPathGetTemporaryDirectoryForReplaceObject( - ffi.Pointer originalObjectPath, - ffi.Pointer temporaryDirectoryPath, - int maxPathSize, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSPathMakeRef( - ffi.Pointer path, - ffi.Pointer ref, - ffi.Pointer isDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSPathMakeRefWithOptions( - ffi.Pointer path, - int options, - ffi.Pointer ref, - ffi.Pointer isDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - ffi.Pointer, - CFStringRef, - OptionBits, - FSPathFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSPathMoveObjectAsync( - FSFileOperationRef fileOp, - ffi.Pointer sourcePath, - ffi.Pointer destDirPath, - CFStringRef destName, - int flags, - FSPathFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - ffi.Pointer>, - OptionBits, - ) ->() -external int FSPathMoveObjectSync( - ffi.Pointer sourcePath, - ffi.Pointer destDirPath, - CFStringRef destName, - ffi.Pointer> targetPath, - int options, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - OptionBits, - FSPathFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSPathMoveObjectToTrashAsync( - FSFileOperationRef fileOp, - ffi.Pointer sourcePath, - int flags, - FSPathFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer>, - OptionBits, - ) ->() -external int FSPathMoveObjectToTrashSync( - ffi.Pointer sourcePath, - ffi.Pointer> targetPath, - int options, -); - -@Deprecated( - 'Use NSFileManager\'s -replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: instead. WARNING: FSPathReplaceObject does not work correctly in sandboxed apps.', -) -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - CFStringRef, - ffi.Pointer, - OptionBits, - ) ->() -external int FSPathReplaceObject( - ffi.Pointer originalObjectPath, - ffi.Pointer replacementObjectPath, - CFStringRef newName, - CFStringRef temporaryName, - ffi.Pointer temporaryDirectoryPath, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIORefNum, - UInt16, - SInt64, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSReadFork( - int forkRefNum, - int positionMode, - int positionOffset, - int requestCount, - ffi.Pointer buffer, - ffi.Pointer actualCount, -); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Pointer, UInt32)>() -external int FSRefMakePath( - ffi.Pointer ref, - ffi.Pointer path, - int pathBufferSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - TextEncoding, - ffi.Pointer, - ) ->() -external int FSRenameUnicode( - ffi.Pointer ref, - int nameLength, - ffi.Pointer name, - int textEncodingHint, - ffi.Pointer newRef, -); - -@Deprecated( - 'Use NSFileManager\'s -replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: instead. WARNING: FSReplaceObject does not work correctly in sandboxed apps.', -) -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - CFStringRef, - ffi.Pointer, - OptionBits, - ffi.Pointer, - ) ->() -external int FSReplaceObject( - ffi.Pointer originalObject, - ffi.Pointer replacementObject, - CFStringRef newName, - CFStringRef temporaryName, - ffi.Pointer temporaryDirectory, - int flags, - ffi.Pointer resultObject, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - AliasHandle, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSResolveAlias( - ffi.Pointer fromFile, - AliasHandle alias, - ffi.Pointer target, - ffi.Pointer wasChanged, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - Boolean, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSResolveAliasFile( - ffi.Pointer theRef, - int resolveAliasChains, - ffi.Pointer targetIsFolder, - ffi.Pointer wasAliased, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - Boolean, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) ->() -external int FSResolveAliasFileWithMountFlags( - ffi.Pointer theRef, - int resolveAliasChains, - ffi.Pointer targetIsFolder, - ffi.Pointer wasAliased, - int mountFlags, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - AliasHandle, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) ->() -external int FSResolveAliasWithMountFlags( - ffi.Pointer fromFile, - AliasHandle inAlias, - ffi.Pointer target, - ffi.Pointer wasChanged, - int mountFlags, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSResolveNodeID(int volume, int nodeID, FSRefPtr newRef); - -@Deprecated('Deprecated') -@ffi.Native< - Boolean Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSResourceFileAlreadyOpen( - ffi.Pointer resourceFileRef, - ffi.Pointer inChain, - ffi.Pointer refNum, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ) ->() -external int FSSetCatalogInfo( - ffi.Pointer ref, - int whichInfo, - ffi.Pointer catalogInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSSetForkPosition( - int forkRefNum, - int positionMode, - int positionOffset, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSSetForkSize( - int forkRefNum, - int positionMode, - int positionOffset, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(FSVolumeRefNum, FSVolumeInfoBitmap, ffi.Pointer) ->() -external int FSSetVolumeInfo( - int volume, - int whichInfo, - ffi.Pointer info, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSUnlinkObject(ffi.Pointer ref); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(FSIORefNum, UInt16, SInt64, UInt64, ffi.Pointer) ->() -external int FSUnlockRange( - int forkRefNum, - int positionMode, - int positionOffset, - int requestCount, - ffi.Pointer rangeStart, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeRefNum, - OptionBits, - FSVolumeOperation, - ffi.Pointer, - FSVolumeUnmountUPP, - CFRunLoopRef, - CFStringRef, - ) ->() -external int FSUnmountVolumeAsync( - int vRefNum, - int flags, - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - FSVolumeUnmountUPP callback, - CFRunLoopRef runloop, - CFStringRef runloopMode, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSUnmountVolumeSync( - int vRefNum, - int flags, - ffi.Pointer dissenter, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - AliasHandle, - ffi.Pointer, - ) ->() -external int FSUpdateAlias( - ffi.Pointer fromFile, - ffi.Pointer target, - AliasHandle alias, - ffi.Pointer wasChanged, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSVolumeMount( - BytePtr buffer, - ffi.Pointer mountedVolume, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIORefNum, - UInt16, - SInt64, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSWriteFork( - int forkRefNum, - int positionMode, - int positionOffset, - int requestCount, - ffi.Pointer buffer, - ffi.Pointer actualCount, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSVolumeRefNum, - OSType, - Boolean, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FindFolder( - int vRefNum, - int folderType, - int createFolder, - ffi.Pointer foundVRefNum, - ffi.Pointer foundDirID, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external Component FindNextComponent( - Component aComponent, - ffi.Pointer looking, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int Fix2Frac(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external int Fix2Long(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external double Fix2X(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external int FixATan2(int x, int y); - -@Deprecated('Deprecated') -@ffi.Native() -external int FixDiv(int x, int y); - -@Deprecated('Deprecated') -@ffi.Native() -external int FixMul(int a, int b); - -@Deprecated('Deprecated') -@ffi.Native() -external int FixRatio(int numer, int denom); - -@Deprecated('Deprecated') -@ffi.Native() -external int FixRound(int x); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(Collection, CollectionFlattenUPP, ffi.Pointer) ->() -external int FlattenCollection( - Collection c, - CollectionFlattenUPP flattenProc, - ffi.Pointer refCon, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FlattenCollectionToHdl(Collection aCollection, Handle flattened); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionFlattenUPP, - ffi.Pointer, - SInt32, - SInt32, - ) ->() -external int FlattenPartialCollection( - Collection c, - CollectionFlattenUPP flattenProc, - ffi.Pointer refCon, - int whichAttributes, - int matchingAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int Frac2Fix(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external double Frac2X(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external int FracCos(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external int FracDiv(int x, int y); - -@Deprecated('Deprecated') -@ffi.Native() -external int FracMul(int x, int y); - -@Deprecated('Deprecated') -@ffi.Native() -external int FracSin(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external int FracSqrt(int x); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int Gestalt(int selector, ffi.Pointer response); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle Get1IndResource(int theType, int itemIndex); - -@Deprecated('Deprecated') -@ffi.Native, ResourceIndex)>() -external void Get1IndType(ffi.Pointer theType, int itemIndex); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle Get1NamedResource(int theType, ConstStr255Param name); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle Get1Resource(int theType, int theID); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetAliasSize(AliasHandle alias); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetAliasSizeFromPtr(ffi.Pointer alias); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetAliasUserType(AliasHandle alias); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetAliasUserTypeFromPtr(ffi.Pointer alias); - -@Deprecated('No longer supported') -@ffi.Native() -external int GetCPUSpeed(); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetCollectionDefaultAttributes(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external CollectionExceptionUPP GetCollectionExceptionProc(Collection c); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionTag, - SInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetCollectionItem( - Collection c, - int tag, - int id, - ffi.Pointer itemSize, - ffi.Pointer itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetCollectionItemHdl( - Collection aCollection, - int tag, - int id, - Handle itemData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionTag, - SInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetCollectionItemInfo( - Collection c, - int tag, - int id, - ffi.Pointer itemIndex, - ffi.Pointer itemSize, - ffi.Pointer attributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetCollectionRetainCount(Collection c); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(Component, ffi.Pointer, SInt16, SInt16) ->() -external int GetComponentIndString( - Component aComponent, - ffi.Pointer theString, - int strListID, - int index$1, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Component, - ffi.Pointer, - Handle, - Handle, - Handle, - ) ->() -external int GetComponentInfo( - Component aComponent, - ffi.Pointer cd, - Handle componentName, - Handle componentInfo, - Handle componentIcon, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetComponentInstanceError(ComponentInstance aComponentInstance); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle GetComponentInstanceStorage( - ComponentInstance aComponentInstance, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetComponentListModSeed(); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(Component, ffi.Pointer, SInt16, SInt16) ->() -external int GetComponentPublicIndString( - Component aComponent, - ffi.Pointer theString, - int strListID, - int index$1, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetComponentPublicResource( - Component aComponent, - int resourceType, - int resourceID, - ffi.Pointer theResource, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - OSType, - SInt16, - SInt32, - ffi.Pointer, - GetMissingComponentResourceUPP, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetComponentPublicResourceList( - int resourceType, - int resourceID, - int flags, - ffi.Pointer cd, - GetMissingComponentResourceUPP missingProc, - ffi.Pointer refCon, - ffi.Pointer atomContainerPtr, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetComponentRefcon(Component aComponent); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetComponentResource( - Component aComponent, - int resType, - int resID, - ffi.Pointer theResource, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetComponentTypeModSeed(int componentType); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetCurrentProcess(ffi.Pointer pPSN); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetCurrentThread(ffi.Pointer currentThreadID); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native)>() -external int GetCustomIconsEnabled( - int vRefNum, - ffi.Pointer customIconsEnabled, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(UInt32, ffi.Pointer, ffi.Pointer) ->() -external int GetDebugComponentInfo( - int itemIndex, - ffi.Pointer componentSignature, - ffi.Pointer componentName, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - UInt32, - OSType, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetDebugOptionInfo( - int itemIndex, - int componentSignature, - ffi.Pointer optionSelectorNum, - ffi.Pointer optionName, - ffi.Pointer optionSetting, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetDefaultThreadStackSize( - int threadStyle, - ffi.Pointer stackSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeRefNum, - OSType, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetFolderNameUnicode( - int vRefNum, - int foldType, - ffi.Pointer foundVRefNum, - ffi.Pointer name, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(UInt32, ffi.Pointer, ffi.Pointer) ->() -external int GetFolderTypes( - int requestedTypeCount, - ffi.Pointer totalTypeCount, - ffi.Pointer theTypes, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetFrontProcess(ffi.Pointer pPSN); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetHandleSize(Handle h); - -@ffi.Native() -external int GetIconFamilyData( - IconFamilyHandle iconFamily, - int iconType, - Handle h, -); - -@Deprecated('Use -[NSWorkspace iconForFile:] instead.') -@ffi.Native)>() -external int GetIconRef( - int vRefNum, - int creator, - int iconType, - ffi.Pointer theIconRef, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native)>() -external int GetIconRefFromComponent( - Component inComponent, - ffi.Pointer outIconRef, -); - -@Deprecated('Use -[NSWorkspace iconForFile:] instead.') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - IconServicesUsageFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetIconRefFromFileInfo( - ffi.Pointer inRef, - int inFileNameLength, - ffi.Pointer inFileName, - int inWhichInfo, - ffi.Pointer inCatalogInfo, - int inUsageFlags, - ffi.Pointer outIconRef, - ffi.Pointer outLabel, -); - -@Deprecated('Use -[NSWorkspace iconForFile:] instead.') -@ffi.Native< - OSErr Function(SInt16, SInt32, SInt32, SInt8, SInt8, ffi.Pointer) ->() -external int GetIconRefFromFolder( - int vRefNum, - int parentFolderID, - int folderID, - int attributes, - int accessPrivileges, - ffi.Pointer theIconRef, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native< - OSStatus Function(ffi.Pointer, Size, ffi.Pointer) ->() -external int GetIconRefFromIconFamilyPtr( - ffi.Pointer inIconFamilyPtr, - int inSize, - ffi.Pointer outIconRef, -); - -@Deprecated('Use -[NSWorkspace iconForFileType:] instead.') -@ffi.Native< - OSErr Function( - OSType, - OSType, - CFStringRef, - CFStringRef, - IconServicesUsageFlags, - ffi.Pointer, - ) ->() -external int GetIconRefFromTypeInfo( - int inCreator, - int inType, - CFStringRef inExtension, - CFStringRef inMIMEType, - int inUsageFlags, - ffi.Pointer outIconRef, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native)>() -external int GetIconRefOwners(IconRef theIconRef, ffi.Pointer owners); - -@ffi.Native)>() -external IconRef GetIconRefVariant( - IconRef inIconRef, - int inVariant, - ffi.Pointer outTransform, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle GetIndResource(int theType, int itemIndex); - -@Deprecated('Deprecated') -@ffi.Native, ResourceIndex)>() -external void GetIndType(ffi.Pointer theType, int itemIndex); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int GetIndVoice(int index$1, ffi.Pointer voice); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(Collection, SInt32, ffi.Pointer, ffi.Pointer) ->() -external int GetIndexedCollectionItem( - Collection c, - int itemIndex, - ffi.Pointer itemSize, - ffi.Pointer itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetIndexedCollectionItemHdl( - Collection aCollection, - int itemIndex, - Handle itemData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - SInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetIndexedCollectionItemInfo( - Collection c, - int itemIndex, - ffi.Pointer tag, - ffi.Pointer id, - ffi.Pointer itemSize, - ffi.Pointer attributes, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetIndexedCollectionTag( - Collection c, - int tagIndex, - ffi.Pointer tag, -); - -@ffi.Native Function(OSStatus)>() -external ffi.Pointer GetMacOSStatusCommentString(int err); - -@ffi.Native Function(OSStatus)>() -external ffi.Pointer GetMacOSStatusErrorString(int err); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetMaxResourceSize(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle GetNamedResource(int theType, ConstStr255Param name); - -@Deprecated('Deprecated') -@ffi.Native() -external Collection GetNewCollection(int collectionID); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle GetNextFOND(Handle fondHandle); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetNextProcess(ffi.Pointer pPSN); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetNextResourceFile( - int curRefNum, - ffi.Pointer nextRefNum, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int GetProcessBundleLocation( - ffi.Pointer psn, - ffi.Pointer location, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetProcessForPID(int pid, ffi.Pointer psn); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer) ->() -external int GetProcessInformation( - ffi.Pointer PSN, - ffi.Pointer info, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int GetProcessPID( - ffi.Pointer psn, - ffi.Pointer pid, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetPtrSize(Ptr p); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetResAttrs(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetResFileAttrs(int refNum); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - Handle, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void GetResInfo( - Handle theResource, - ffi.Pointer theID, - ffi.Pointer theType, - ffi.Pointer name, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle GetResource(int theType, int theID); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetResourceSizeOnDisk(Handle theResource); - -@ffi.Native< - OSStatus Function( - TextEncoding, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetScriptInfoFromTextEncoding( - int iEncoding, - ffi.Pointer oTextScriptID, - ffi.Pointer oTextLanguageID, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetScriptManagerVariable(int selector); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int GetSpeechInfo( - SpeechChannel chan, - int selector, - ffi.Pointer speechInfo, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int GetSpeechPitch(SpeechChannel chan, ffi.Pointer pitch); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int GetSpeechRate(SpeechChannel chan, ffi.Pointer rate); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionTag, - SInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetTaggedCollectionItem( - Collection c, - int tag, - int whichItem, - ffi.Pointer itemSize, - ffi.Pointer itemData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionTag, - SInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetTaggedCollectionItemInfo( - Collection c, - int tag, - int whichItem, - ffi.Pointer id, - ffi.Pointer itemIndex, - ffi.Pointer itemSize, - ffi.Pointer attributes, -); - -@ffi.Native() -external int GetTextEncodingBase(int encoding); - -@ffi.Native() -external int GetTextEncodingFormat(int encoding); - -@ffi.Native< - OSStatus Function(ScriptCode, LangCode, RegionCode, ffi.Pointer) ->() -external int GetTextEncodingFromScriptInfo( - int iTextScriptID, - int iTextLanguageID, - int iTextRegionID, - ffi.Pointer oEncoding, -); - -@ffi.Native< - OSStatus Function( - TextEncoding, - TextEncodingNameSelector, - RegionCode, - TextEncoding, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - TextPtr, - ) ->() -external int GetTextEncodingName( - int iEncoding, - int iNamePartSelector, - int iPreferredRegion, - int iPreferredEncoding, - int iOutputBufLen, - ffi.Pointer oNameLength, - ffi.Pointer oActualRegion, - ffi.Pointer oActualEncoding, - TextPtr oEncodingName, -); - -@ffi.Native() -external int GetTextEncodingVariant(int encoding); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetThreadCurrentTaskRef(ffi.Pointer threadTRef); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetThreadState( - int threadToGet, - ffi.Pointer threadState, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetThreadStateGivenTaskRef( - ThreadTaskRef threadTRef, - int threadToGet, - ffi.Pointer threadState, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetTopResourceFile(ffi.Pointer refNum); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) ->() -external int GetVoiceDescription( - ffi.Pointer voice, - ffi.Pointer info, - int infoLength, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(ffi.Pointer, OSType, ffi.Pointer) ->() -external int GetVoiceInfo( - ffi.Pointer voice, - int selector, - ffi.Pointer voiceInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void HClrRBit(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external int HGetState(Handle h); - -@ffi.Native)>() -external int HIShapeContainsPoint( - HIShapeRef inShape, - ffi.Pointer inPoint, -); - -@ffi.Native() -external HIShapeRef HIShapeCreateCopy(HIShapeRef inShape); - -@ffi.Native() -external HIShapeRef HIShapeCreateDifference( - HIShapeRef inShape1, - HIShapeRef inShape2, -); - -@ffi.Native() -external HIShapeRef HIShapeCreateEmpty(); - -@ffi.Native() -external HIShapeRef HIShapeCreateIntersection( - HIShapeRef inShape1, - HIShapeRef inShape2, -); - -@ffi.Native() -external HIMutableShapeRef HIShapeCreateMutable(); - -@ffi.Native() -external HIMutableShapeRef HIShapeCreateMutableCopy(HIShapeRef inOrig); - -@ffi.Native)>() -external HIMutableShapeRef HIShapeCreateMutableWithRect( - ffi.Pointer inRect, -); - -@ffi.Native() -external HIShapeRef HIShapeCreateUnion( - HIShapeRef inShape1, - HIShapeRef inShape2, -); - -@ffi.Native() -external HIShapeRef HIShapeCreateWithQDRgn(RgnHandle inRgn); - -@ffi.Native)>() -external HIShapeRef HIShapeCreateWithRect(ffi.Pointer inRect); - -@ffi.Native() -external HIShapeRef HIShapeCreateXor(HIShapeRef inShape1, HIShapeRef inShape2); - -@ffi.Native() -external int HIShapeDifference( - HIShapeRef inShape1, - HIShapeRef inShape2, - HIMutableShapeRef outResult, -); - -@ffi.Native< - OSStatus Function( - HIShapeRef, - OptionBits, - HIShapeEnumerateProcPtr, - ffi.Pointer, - ) ->() -external int HIShapeEnumerate( - HIShapeRef inShape, - int inOptions, - HIShapeEnumerateProcPtr inProc, - ffi.Pointer inRefcon, -); - -@ffi.Native() -external int HIShapeGetAsQDRgn(HIShapeRef inShape, RgnHandle outRgn); - -@ffi.Native< - ffi.Pointer Function(HIShapeRef, ffi.Pointer) ->() -external ffi.Pointer HIShapeGetBounds( - HIShapeRef inShape, - ffi.Pointer outRect, -); - -@ffi.Native() -external int HIShapeGetTypeID(); - -@ffi.Native() -external int HIShapeInset(HIMutableShapeRef inShape, double inDX, double inDY); - -@ffi.Native() -external int HIShapeIntersect( - HIShapeRef inShape1, - HIShapeRef inShape2, - HIMutableShapeRef outResult, -); - -@ffi.Native)>() -external int HIShapeIntersectsRect( - HIShapeRef inShape, - ffi.Pointer inRect, -); - -@ffi.Native() -external int HIShapeIsEmpty(HIShapeRef inShape); - -@ffi.Native() -external int HIShapeIsRectangular(HIShapeRef inShape); - -@ffi.Native() -external int HIShapeOffset(HIMutableShapeRef inShape, double inDX, double inDY); - -@ffi.Native() -external int HIShapeReplacePathInCGContext( - HIShapeRef inShape, - CGContextRef inContext, -); - -@ffi.Native() -external int HIShapeSetEmpty(HIMutableShapeRef inShape); - -@ffi.Native() -external int HIShapeSetWithShape( - HIMutableShapeRef inDestShape, - HIShapeRef inSrcShape, -); - -@ffi.Native() -external int HIShapeUnion( - HIShapeRef inShape1, - HIShapeRef inShape2, - HIMutableShapeRef outResult, -); - -@ffi.Native)>() -external int HIShapeUnionWithRect( - HIMutableShapeRef inShape, - ffi.Pointer inRect, -); - -@ffi.Native() -external int HIShapeXor( - HIShapeRef inShape1, - HIShapeRef inShape2, - HIMutableShapeRef outResult, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void HLock(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external void HLockHi(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external void HSetRBit(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external void HSetState(Handle h, int flags); - -@Deprecated('Deprecated') -@ffi.Native() -external void HUnlock(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external int HandAndHand(Handle hand1, Handle hand2); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int HandToHand(ffi.Pointer theHndl); - -@Deprecated('Deprecated') -@ffi.Native() -external int HomeResFile(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICAddMapEntry( - ICInstance inst, - Handle entries, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, ICProfileID, ffi.Pointer) ->() -external int ICAddProfile( - ICInstance inst, - int prototypeID, - ffi.Pointer newID, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICBegin(ICInstance inst, int perm); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICCountMapEntries( - ICInstance inst, - Handle entries, - ffi.Pointer count, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICCountPref(ICInstance inst, ffi.Pointer count); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICCountProfiles(ICInstance inst, ffi.Pointer count); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, OSType, Handle, ffi.Pointer) ->() -external int ICCreateGURLEvent( - ICInstance inst, - int helperCreator, - Handle urlH, - ffi.Pointer theEvent, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICDeleteMapEntry(ICInstance inst, Handle entries, int pos); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICDeletePref(ICInstance inst, ConstStr255Param key); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICDeleteProfile(ICInstance inst, int thisID); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICEditPreferences(ICInstance inst, ConstStr255Param key); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICEnd(ICInstance inst); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, ConstStr255Param, ffi.Pointer, Handle) ->() -external int ICFindPrefHandle( - ICInstance inst, - ConstStr255Param key, - ffi.Pointer attr, - Handle prefh, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, Boolean, ffi.Pointer) ->() -external int ICGetConfigName( - ICInstance inst, - int longname, - ffi.Pointer name, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICGetCurrentProfile( - ICInstance inst, - ffi.Pointer currentID, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICGetDefaultPref( - ICInstance inst, - ConstStr255Param key, - Handle prefH, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - Handle, - ffi.Long, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ICGetIndMapEntry( - ICInstance inst, - Handle entries, - int index$1, - ffi.Pointer pos, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, ffi.Long, ffi.Pointer) ->() -external int ICGetIndPref( - ICInstance inst, - int index$1, - ffi.Pointer key, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICGetIndProfile( - ICInstance inst, - int index$1, - ffi.Pointer thisID, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, Handle, ffi.Long, ffi.Pointer) ->() -external int ICGetMapEntry( - ICInstance inst, - Handle entries, - int pos, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICGetPerm(ICInstance inst, ffi.Pointer perm); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - ConstStr255Param, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ICGetPref( - ICInstance inst, - ConstStr255Param key, - ffi.Pointer attr, - ffi.Pointer buf, - ffi.Pointer size, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - ConstStr255Param, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ICGetPrefHandle( - ICInstance inst, - ConstStr255Param key, - ffi.Pointer attr, - ffi.Pointer prefh, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, ICProfileID, ffi.Pointer) ->() -external int ICGetProfileName( - ICInstance inst, - int thisID, - ffi.Pointer name, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICGetSeed(ICInstance inst, ffi.Pointer seed); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICGetVersion( - ICInstance inst, - int whichVersion, - ffi.Pointer version, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - ConstStr255Param, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ICLaunchURL( - ICInstance inst, - ConstStr255Param hint, - ffi.Pointer data, - int len, - ffi.Pointer selStart, - ffi.Pointer selEnd, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - Handle, - ConstStr255Param, - ffi.Pointer, - ) ->() -external int ICMapEntriesFilename( - ICInstance inst, - Handle entries, - ConstStr255Param filename, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - Handle, - OSType, - OSType, - ConstStr255Param, - ffi.Pointer, - ) ->() -external int ICMapEntriesTypeCreator( - ICInstance inst, - Handle entries, - int fType, - int fCreator, - ConstStr255Param filename, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, ConstStr255Param, ffi.Pointer) ->() -external int ICMapFilename( - ICInstance inst, - ConstStr255Param filename, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - OSType, - OSType, - ConstStr255Param, - ffi.Pointer, - ) ->() -external int ICMapTypeCreator( - ICInstance inst, - int fType, - int fCreator, - ConstStr255Param filename, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - ConstStr255Param, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Pointer, - Handle, - ) ->() -external int ICParseURL( - ICInstance inst, - ConstStr255Param hint, - ffi.Pointer data, - int len, - ffi.Pointer selStart, - ffi.Pointer selEnd, - Handle url, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICSendGURLEvent(ICInstance inst, ffi.Pointer theEvent); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICSetCurrentProfile(ICInstance inst, int newID); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, Handle, ffi.Long, ffi.Pointer) ->() -external int ICSetMapEntry( - ICInstance inst, - Handle entries, - int pos, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - ConstStr255Param, - ICAttr, - ffi.Pointer, - ffi.Long, - ) ->() -external int ICSetPref( - ICInstance inst, - ConstStr255Param key, - int attr, - ffi.Pointer buf, - int size, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICSetPrefHandle( - ICInstance inst, - ConstStr255Param key, - int attr, - Handle prefh, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICSetProfileName( - ICInstance inst, - int thisID, - ConstStr255Param name, -); - -@Deprecated('Deprecated') -@ffi.Native, OSType)>() -external int ICStart(ffi.Pointer inst, int signature); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICStop(ICInstance inst); - -@ffi.Native< - CFMutableDictionaryRef Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ) ->() -external CFMutableDictionaryRef IOBSDNameMatching( - int mainPort, - int options, - ffi.Pointer bsdName, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int IOCatalogueGetData( - int mainPort, - int flag, - ffi.Pointer> buffer, - ffi.Pointer size, -); - -@ffi.Native)>() -external int IOCatalogueModuleLoaded(int mainPort, ffi.Pointer name); - -@ffi.Native() -external int IOCatalogueReset(int mainPort, int flag); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ffi.Uint32, - ) ->() -external int IOCatalogueSendData( - int mainPort, - int flag, - ffi.Pointer buffer, - int size, -); - -@ffi.Native< - kern_return_t Function(mach_port_t, ffi.Uint32, ffi.Pointer) ->() -external int IOCatalogueTerminate( - int mainPort, - int flag, - ffi.Pointer description, -); - -@ffi.Native() -external int IOConnectAddClient(int connect$1, int client); - -@ffi.Native() -external int IOConnectAddRef(int connect$1); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - mach_port_t, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallAsyncMethod( - int connection, - int selector, - int wake_port, - ffi.Pointer reference, - int referenceCnt, - ffi.Pointer input, - int inputCnt, - ffi.Pointer inputStruct, - int inputStructCnt, - ffi.Pointer output, - ffi.Pointer outputCnt, - ffi.Pointer outputStruct, - ffi.Pointer outputStructCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - mach_port_t, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallAsyncScalarMethod( - int connection, - int selector, - int wake_port, - ffi.Pointer reference, - int referenceCnt, - ffi.Pointer input, - int inputCnt, - ffi.Pointer output, - ffi.Pointer outputCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - mach_port_t, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallAsyncStructMethod( - int connection, - int selector, - int wake_port, - ffi.Pointer reference, - int referenceCnt, - ffi.Pointer inputStruct, - int inputStructCnt, - ffi.Pointer outputStruct, - ffi.Pointer outputStructCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallMethod( - int connection, - int selector, - ffi.Pointer input, - int inputCnt, - ffi.Pointer inputStruct, - int inputStructCnt, - ffi.Pointer output, - ffi.Pointer outputCnt, - ffi.Pointer outputStruct, - ffi.Pointer outputStructCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallScalarMethod( - int connection, - int selector, - ffi.Pointer input, - int inputCnt, - ffi.Pointer output, - ffi.Pointer outputCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallStructMethod( - int connection, - int selector, - ffi.Pointer inputStruct, - int inputStructCnt, - ffi.Pointer outputStruct, - ffi.Pointer outputStructCnt, -); - -@ffi.Native)>() -external int IOConnectGetService( - int connect$1, - ffi.Pointer service, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - task_port_t, - ffi.Pointer, - ffi.Pointer, - IOOptionBits, - ) ->() -external int IOConnectMapMemory( - int connect$1, - int memoryType, - int intoTask, - ffi.Pointer atAddress, - ffi.Pointer ofSize, - int options, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - task_port_t, - ffi.Pointer, - ffi.Pointer, - IOOptionBits, - ) ->() -external int IOConnectMapMemory64( - int connect$1, - int memoryType, - int intoTask, - ffi.Pointer atAddress, - ffi.Pointer ofSize, - int options, -); - -@ffi.Native() -external int IOConnectRelease(int connect$1); - -@ffi.Native() -external int IOConnectSetCFProperties(int connect$1, CFTypeRef properties); - -@ffi.Native() -external int IOConnectSetCFProperty( - int connect$1, - CFStringRef propertyName, - CFTypeRef property, -); - -@ffi.Native< - kern_return_t Function(io_connect_t, ffi.Uint32, mach_port_t, ffi.UintPtr) ->() -external int IOConnectSetNotificationPort( - int connect$1, - int type, - int port, - int reference, -); - -@ffi.Native() -external int IOConnectTrap0(int connect$1, int index$1); - -@ffi.Native() -external int IOConnectTrap1(int connect$1, int index$1, int p1); - -@ffi.Native< - kern_return_t Function(io_connect_t, ffi.Uint32, ffi.UintPtr, ffi.UintPtr) ->() -external int IOConnectTrap2(int connect$1, int index$1, int p1, int p2); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ) ->() -external int IOConnectTrap3(int connect$1, int index$1, int p1, int p2, int p3); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ) ->() -external int IOConnectTrap4( - int connect$1, - int index$1, - int p1, - int p2, - int p3, - int p4, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ) ->() -external int IOConnectTrap5( - int connect$1, - int index$1, - int p1, - int p2, - int p3, - int p4, - int p5, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ) ->() -external int IOConnectTrap6( - int connect$1, - int index$1, - int p1, - int p2, - int p3, - int p4, - int p5, - int p6, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - task_port_t, - mach_vm_address_t, - ) ->() -external int IOConnectUnmapMemory( - int connect$1, - int memoryType, - int fromTask, - int atAddress, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - task_port_t, - mach_vm_address_t, - ) ->() -external int IOConnectUnmapMemory64( - int connect$1, - int memoryType, - int fromTask, - int atAddress, -); - -@ffi.Native)>() -external int IOCreateReceivePort( - int msgType, - ffi.Pointer recvPort, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void IODispatchCalloutFromMessage( - ffi.Pointer unused, - ffi.Pointer msg, - ffi.Pointer reference, -); - -@ffi.Native() -external int IOIteratorIsValid(int iterator); - -@ffi.Native() -external int IOIteratorNext(int iterator); - -@ffi.Native() -external void IOIteratorReset(int iterator); - -@ffi.Native)>() -external int IOKitGetBusyState(int mainPort, ffi.Pointer busyState); - -@ffi.Native)>() -external int IOKitWaitQuiet( - int mainPort, - ffi.Pointer waitTime, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - IOOptionBits, - ) ->() -external int IOKitWaitQuietWithOptions( - int mainPort, - ffi.Pointer waitTime, - int options, -); - -@ffi.Native)>() -external int IOMainPort(int bootstrapPort, ffi.Pointer mainPort); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IOMasterPort(int bootstrapPort, ffi.Pointer mainPort); - -@ffi.Native() -external IONotificationPortRef IONotificationPortCreate(int mainPort); - -@ffi.Native() -external void IONotificationPortDestroy(IONotificationPortRef notify); - -@ffi.Native() -external int IONotificationPortGetMachPort(IONotificationPortRef notify); - -@ffi.Native() -external CFRunLoopSourceRef IONotificationPortGetRunLoopSource( - IONotificationPortRef notify, -); - -@ffi.Native( - symbol: 'IONotificationPortSetDispatchQueue', -) -external void _IONotificationPortSetDispatchQueue( - IONotificationPortRef notify, - dispatch_queue_t queue, -); - -void IONotificationPortSetDispatchQueue( - IONotificationPortRef notify, - Dartdispatch_queue_t queue, -) { - final _$$ref = queue.ref; - return _IONotificationPortSetDispatchQueue(notify, _$$ref.pointer); -} - -@ffi.Native() -external int IONotificationPortSetImportanceReceiver( - IONotificationPortRef notify, -); - -@ffi.Native)>() -external int IOObjectConformsTo(int object, ffi.Pointer className); - -@ffi.Native() -external CFStringRef IOObjectCopyBundleIdentifierForClass( - CFStringRef classname, -); - -@ffi.Native() -external CFStringRef IOObjectCopyClass(int object); - -@ffi.Native() -external CFStringRef IOObjectCopySuperclassForClass(CFStringRef classname); - -@ffi.Native)>() -external int IOObjectGetClass(int object, ffi.Pointer className); - -@ffi.Native() -external int IOObjectGetKernelRetainCount(int object); - -@ffi.Native() -external int IOObjectGetRetainCount(int object); - -@ffi.Native() -external int IOObjectGetUserRetainCount(int object); - -@ffi.Native() -external int IOObjectIsEqualTo(int object, int anObject); - -@ffi.Native() -external int IOObjectRelease(int object); - -@ffi.Native() -external int IOObjectRetain(int object); - -@Deprecated('Deprecated') -@ffi.Native< - CFMutableDictionaryRef Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ) ->() -external CFMutableDictionaryRef IOOpenFirmwarePathMatching( - int mainPort, - int options, - ffi.Pointer path, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - IOOptionBits, - ffi.Pointer, - ) ->() -external int IORegistryCreateIterator( - int mainPort, - ffi.Pointer plane, - int options, - ffi.Pointer iterator, -); - -@ffi.Native() -external int IORegistryEntryCopyFromPath(int mainPort, CFStringRef path); - -@ffi.Native)>() -external CFStringRef IORegistryEntryCopyPath( - int entry, - ffi.Pointer plane, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - CFAllocatorRef, - IOOptionBits, - ) ->() -external int IORegistryEntryCreateCFProperties( - int entry, - ffi.Pointer properties, - CFAllocatorRef allocator, - int options, -); - -@ffi.Native< - CFTypeRef Function( - io_registry_entry_t, - CFStringRef, - CFAllocatorRef, - IOOptionBits, - ) ->() -external CFTypeRef IORegistryEntryCreateCFProperty( - int entry, - CFStringRef key, - CFAllocatorRef allocator, - int options, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - IOOptionBits, - ffi.Pointer, - ) ->() -external int IORegistryEntryCreateIterator( - int entry, - ffi.Pointer plane, - int options, - ffi.Pointer iterator, -); - -@ffi.Native)>() -external int IORegistryEntryFromPath(int mainPort, ffi.Pointer path); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetChildEntry( - int entry, - ffi.Pointer plane, - ffi.Pointer child, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetChildIterator( - int entry, - ffi.Pointer plane, - ffi.Pointer iterator, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetLocationInPlane( - int entry, - ffi.Pointer plane, - ffi.Pointer location, -); - -@ffi.Native< - kern_return_t Function(io_registry_entry_t, ffi.Pointer) ->() -external int IORegistryEntryGetName(int entry, ffi.Pointer name); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetNameInPlane( - int entry, - ffi.Pointer plane, - ffi.Pointer name, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetParentEntry( - int entry, - ffi.Pointer plane, - ffi.Pointer parent, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetParentIterator( - int entry, - ffi.Pointer plane, - ffi.Pointer iterator, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetPath( - int entry, - ffi.Pointer plane, - ffi.Pointer path, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetProperty( - int entry, - ffi.Pointer propertyName, - ffi.Pointer buffer, - ffi.Pointer size, -); - -@ffi.Native< - kern_return_t Function(io_registry_entry_t, ffi.Pointer) ->() -external int IORegistryEntryGetRegistryEntryID( - int entry, - ffi.Pointer entryID, -); - -@ffi.Native() -external CFMutableDictionaryRef IORegistryEntryIDMatching(int entryID); - -@ffi.Native)>() -external int IORegistryEntryInPlane(int entry, ffi.Pointer plane); - -@ffi.Native< - CFTypeRef Function( - io_registry_entry_t, - ffi.Pointer, - CFStringRef, - CFAllocatorRef, - IOOptionBits, - ) ->() -external CFTypeRef IORegistryEntrySearchCFProperty( - int entry, - ffi.Pointer plane, - CFStringRef key, - CFAllocatorRef allocator, - int options, -); - -@ffi.Native() -external int IORegistryEntrySetCFProperties(int entry, CFTypeRef properties); - -@ffi.Native< - kern_return_t Function(io_registry_entry_t, CFStringRef, CFTypeRef) ->() -external int IORegistryEntrySetCFProperty( - int entry, - CFStringRef propertyName, - CFTypeRef property, -); - -@ffi.Native() -external int IORegistryGetRootEntry(int mainPort); - -@ffi.Native() -external int IORegistryIteratorEnterEntry(int iterator); - -@ffi.Native() -external int IORegistryIteratorExitEntry(int iterator); - -@ffi.Native< - kern_return_t Function( - IONotificationPortRef, - io_service_t, - ffi.Pointer, - IOServiceInterestCallback, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOServiceAddInterestNotification( - IONotificationPortRef notifyPort, - int service, - ffi.Pointer interestType, - IOServiceInterestCallback callback, - ffi.Pointer refCon, - ffi.Pointer notification, -); - -@ffi.Native< - kern_return_t Function( - IONotificationPortRef, - ffi.Pointer, - CFDictionaryRef, - IOServiceMatchingCallback, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOServiceAddMatchingNotification( - IONotificationPortRef notifyPort, - ffi.Pointer notificationType, - CFDictionaryRef matching, - IOServiceMatchingCallback callback, - ffi.Pointer refCon, - ffi.Pointer notification, -); - -@Deprecated('Deprecated') -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - CFDictionaryRef, - mach_port_t, - ffi.UintPtr, - ffi.Pointer, - ) ->() -external int IOServiceAddNotification( - int mainPort, - ffi.Pointer notificationType, - CFDictionaryRef matching, - int wakePort, - int reference, - ffi.Pointer notification, -); - -@ffi.Native() -external int IOServiceAuthorize(int service, int options); - -@ffi.Native() -external int IOServiceClose(int connect$1); - -@ffi.Native)>() -external int IOServiceGetBusyState( - int service, - ffi.Pointer busyState, -); - -@ffi.Native() -external int IOServiceGetMatchingService( - int mainPort, - CFDictionaryRef matching, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int IOServiceGetMatchingServices( - int mainPort, - CFDictionaryRef matching, - ffi.Pointer existing, -); - -@ffi.Native< - kern_return_t Function(io_service_t, CFDictionaryRef, ffi.Pointer) ->() -external int IOServiceMatchPropertyTable( - int service, - CFDictionaryRef matching, - ffi.Pointer matches, -); - -@ffi.Native)>() -external CFMutableDictionaryRef IOServiceMatching(ffi.Pointer name); - -@ffi.Native)>() -external CFMutableDictionaryRef IOServiceNameMatching( - ffi.Pointer name, -); - -@Deprecated('Deprecated') -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOServiceOFPathToBSDName( - int mainPort, - ffi.Pointer openFirmwarePath, - ffi.Pointer bsdName, -); - -@ffi.Native< - kern_return_t Function( - io_service_t, - task_port_t, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int IOServiceOpen( - int service, - int owningTask, - int type, - ffi.Pointer connect$1, -); - -@ffi.Native() -external int IOServiceOpenAsFileDescriptor(int service, int oflag); - -@ffi.Native() -external int IOServiceRequestProbe(int service, int options); - -@ffi.Native< - kern_return_t Function(io_service_t, ffi.Pointer) ->() -external int IOServiceWaitQuiet( - int service, - ffi.Pointer waitTime, -); - -@ffi.Native() -external int IOSurfaceAlignProperty(CFStringRef property, int value); - -@ffi.Native() -external int IOSurfaceAllowsPixelSizeCasting(IOSurfaceRef buffer); - -@ffi.Native() -external CFDictionaryRef IOSurfaceCopyAllValues(IOSurfaceRef buffer); - -@ffi.Native() -external CFTypeRef IOSurfaceCopyValue(IOSurfaceRef buffer, CFStringRef key); - -@ffi.Native() -external IOSurfaceRef IOSurfaceCreate(CFDictionaryRef properties); - -@ffi.Native() -external int IOSurfaceCreateMachPort(IOSurfaceRef buffer); - -@ffi.Native( - symbol: 'IOSurfaceCreateXPCObject', -) -external xpc_object_t _IOSurfaceCreateXPCObject(IOSurfaceRef aSurface); - -Dartxpc_object_t IOSurfaceCreateXPCObject(IOSurfaceRef aSurface) { - return objc.NSObject.fromPointer( - _IOSurfaceCreateXPCObject(aSurface), - retain: false, - release: true, - ); -} - -@ffi.Native() -external void IOSurfaceDecrementUseCount(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetAllocSize(IOSurfaceRef buffer); - -@ffi.Native Function(IOSurfaceRef)>() -external ffi.Pointer IOSurfaceGetBaseAddress(IOSurfaceRef buffer); - -@ffi.Native Function(IOSurfaceRef, ffi.Size)>() -external ffi.Pointer IOSurfaceGetBaseAddressOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetBitDepthOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -); - -@ffi.Native() -external int IOSurfaceGetBitOffsetOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -); - -@ffi.Native() -external int IOSurfaceGetBytesPerElement(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetBytesPerElementOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetBytesPerRow(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetBytesPerRowOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetElementHeight(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetElementHeightOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetElementWidth(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetElementWidthOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetHeight(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetHeightOfPlane(IOSurfaceRef buffer, int planeIndex); - -@ffi.Native() -external int IOSurfaceGetID(IOSurfaceRef buffer); - -@ffi.Native( - symbol: 'IOSurfaceGetNameOfComponentOfPlane', -) -external int _IOSurfaceGetNameOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -); - -IOSurfaceComponentName IOSurfaceGetNameOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -) { - return IOSurfaceComponentName.fromValue( - _IOSurfaceGetNameOfComponentOfPlane(buffer, planeIndex, componentIndex), - ); -} - -@ffi.Native() -external int IOSurfaceGetNumberOfComponentsOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetPixelFormat(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetPlaneCount(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetPropertyAlignment(CFStringRef property); - -@ffi.Native() -external int IOSurfaceGetPropertyMaximum(CFStringRef property); - -@ffi.Native( - symbol: 'IOSurfaceGetRangeOfComponentOfPlane', -) -external int _IOSurfaceGetRangeOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -); - -IOSurfaceComponentRange IOSurfaceGetRangeOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -) { - return IOSurfaceComponentRange.fromValue( - _IOSurfaceGetRangeOfComponentOfPlane(buffer, planeIndex, componentIndex), - ); -} - -@ffi.Native() -external int IOSurfaceGetSeed(IOSurfaceRef buffer); - -@ffi.Native(symbol: 'IOSurfaceGetSubsampling') -external int _IOSurfaceGetSubsampling(IOSurfaceRef buffer); - -IOSurfaceSubsampling IOSurfaceGetSubsampling(IOSurfaceRef buffer) { - return IOSurfaceSubsampling.fromValue(_IOSurfaceGetSubsampling(buffer)); -} - -@ffi.Native() -external int IOSurfaceGetTypeID(); - -@ffi.Native( - symbol: 'IOSurfaceGetTypeOfComponentOfPlane', -) -external int _IOSurfaceGetTypeOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -); - -IOSurfaceComponentType IOSurfaceGetTypeOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -) { - return IOSurfaceComponentType.fromValue( - _IOSurfaceGetTypeOfComponentOfPlane(buffer, planeIndex, componentIndex), - ); -} - -@ffi.Native() -external int IOSurfaceGetUseCount(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetWidth(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetWidthOfPlane(IOSurfaceRef buffer, int planeIndex); - -@ffi.Native() -external void IOSurfaceIncrementUseCount(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceIsInUse(IOSurfaceRef buffer); - -@ffi.Native< - kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) ->() -external int IOSurfaceLock( - IOSurfaceRef buffer, - int options, - ffi.Pointer seed, -); - -@ffi.Native() -external IOSurfaceRef IOSurfaceLookup(int csid); - -@ffi.Native() -external IOSurfaceRef IOSurfaceLookupFromMachPort(int port); - -@ffi.Native( - symbol: 'IOSurfaceLookupFromXPCObject', -) -external IOSurfaceRef _IOSurfaceLookupFromXPCObject(xpc_object_t xobj); - -IOSurfaceRef IOSurfaceLookupFromXPCObject(Dartxpc_object_t xobj) { - final _$$ref = xobj.ref; - return _IOSurfaceLookupFromXPCObject(_$$ref.pointer); -} - -@ffi.Native() -external void IOSurfaceRemoveAllValues(IOSurfaceRef buffer); - -@ffi.Native() -external void IOSurfaceRemoveValue(IOSurfaceRef buffer, CFStringRef key); - -@ffi.Native< - kern_return_t Function(IOSurfaceRef, task_id_token_t, ffi.Int, ffi.Uint32) ->() -external int IOSurfaceSetOwnershipIdentity( - IOSurfaceRef buffer, - int task_id_token, - int newLedgerTag, - int newLedgerOptions, -); - -@ffi.Native< - kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) ->() -external int IOSurfaceSetPurgeable( - IOSurfaceRef buffer, - int newState, - ffi.Pointer oldState, -); - -@ffi.Native() -external void IOSurfaceSetValue( - IOSurfaceRef buffer, - CFStringRef key, - CFTypeRef value, -); - -@ffi.Native() -external void IOSurfaceSetValues( - IOSurfaceRef buffer, - CFDictionaryRef keysAndValues, -); - -@ffi.Native< - kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) ->() -external int IOSurfaceUnlock( - IOSurfaceRef buffer, - int options, - ffi.Pointer seed, -); - -@ffi.Native< - Boolean Function( - ffi.Pointer, - ffi.Pointer, - IconAlignmentType, - IconServicesUsageFlags, - IconRef, - ) ->() -external int IconRefContainsCGPoint( - ffi.Pointer testPt, - ffi.Pointer iconRect, - int align, - int iconServicesUsageFlags, - IconRef theIconRef, -); - -@ffi.Native< - Boolean Function( - ffi.Pointer, - ffi.Pointer, - IconAlignmentType, - IconServicesUsageFlags, - IconRef, - ) ->() -external int IconRefIntersectsCGRect( - ffi.Pointer testRect, - ffi.Pointer iconRect, - int align, - int iconServicesUsageFlags, - IconRef theIconRef, -); - -@ffi.Native< - HIShapeRef Function( - ffi.Pointer, - IconAlignmentType, - IconServicesUsageFlags, - IconRef, - ) ->() -external HIShapeRef IconRefToHIShape( - ffi.Pointer iconRect, - int align, - int iconServicesUsageFlags, - IconRef theIconRef, -); - -@ffi.Native< - OSErr Function(IconRef, IconSelectorValue, ffi.Pointer) ->() -external int IconRefToIconFamily( - IconRef theIconRef, - int whichIcons, - ffi.Pointer iconFamily, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IdentifyFolder( - int vRefNum, - int dirID, - ffi.Pointer foldType, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IncrementAtomic(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IncrementAtomic16(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IncrementAtomic8(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native() -external void InsTime(QElemPtr tmTaskPtr); - -@Deprecated('Deprecated') -@ffi.Native() -external void InsXTime(QElemPtr tmTaskPtr); - -@Deprecated('Deprecated') -@ffi.Native() -external int InsertResourceFile(int refNum, int where); - -@Deprecated('Deprecated') -@ffi.Native() -external void InstallDebugAssertOutputHandler( - DebugAssertOutputHandlerUPP handler, -); - -@Deprecated('No longer support') -@ffi.Native() -external ExceptionHandlerTPP InstallExceptionHandler( - ExceptionHandlerTPP theHandler, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int InstallTimeTask(QElemPtr tmTaskPtr); - -@Deprecated('Deprecated') -@ffi.Native() -external int InstallXTimeTask(QElemPtr tmTaskPtr); - -@Deprecated('Deprecated') -@ffi.Native() -external int InvalidateFolderDescriptorCache(int vRefNum, int dirID); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - DescType, - SRefCon, - ffi.Pointer, - AECoerceDescUPP, - ) ->() -external int InvokeAECoerceDescUPP( - ffi.Pointer fromDesc, - int toType, - SRefCon handlerRefcon, - ffi.Pointer toDesc, - AECoerceDescUPP userUPP, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - Size, - DescType, - SRefCon, - ffi.Pointer, - AECoercePtrUPP, - ) ->() -external int InvokeAECoercePtrUPP( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - int toType, - SRefCon handlerRefcon, - ffi.Pointer result, - AECoercePtrUPP userUPP, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, Size, SRefCon, AEDisposeExternalUPP) ->() -external void InvokeAEDisposeExternalUPP( - ffi.Pointer dataPtr, - int dataLength, - SRefCon refcon, - AEDisposeExternalUPP userUPP, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - SRefCon, - AEEventHandlerUPP, - ) ->() -external int InvokeAEEventHandlerUPP( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - SRefCon handlerRefcon, - AEEventHandlerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int InvokeCollectionExceptionUPP( - Collection c, - int status, - CollectionExceptionUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - SInt32, - ffi.Pointer, - ffi.Pointer, - CollectionFlattenUPP, - ) ->() -external int InvokeCollectionFlattenUPP( - int size, - ffi.Pointer data, - ffi.Pointer refCon, - CollectionFlattenUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - ffi.Pointer, - ComponentMPWorkFunctionHeaderRecordPtr, - ComponentMPWorkFunctionUPP, - ) ->() -external int InvokeComponentMPWorkFunctionUPP( - ffi.Pointer globalRefCon, - ComponentMPWorkFunctionHeaderRecordPtr header, - ComponentMPWorkFunctionUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - ffi.Pointer, - Handle, - ComponentRoutineUPP, - ) ->() -external int InvokeComponentRoutineUPP( - ffi.Pointer cp, - Handle componentStorage, - ComponentRoutineUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ConstStr255Param, - DebugAssertOutputHandlerUPP, - ) ->() -external void InvokeDebugAssertOutputHandlerUPP( - int componentSignature, - int options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - int lineNumber, - ffi.Pointer value, - ConstStr255Param outputMsg, - DebugAssertOutputHandlerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - SInt32, - UInt32, - ffi.Pointer, - DebugComponentCallbackUPP, - ) ->() -external void InvokeDebugComponentCallbackUPP( - int optionSelectorNum, - int command, - ffi.Pointer optionSetting, - DebugComponentCallbackUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeDebuggerDisposeThreadUPP( - int threadDeleted, - DebuggerDisposeThreadUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeDebuggerNewThreadUPP( - int threadCreated, - DebuggerNewThreadUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ThreadID Function(SchedulerInfoRecPtr, DebuggerThreadSchedulerUPP) ->() -external int InvokeDebuggerThreadSchedulerUPP( - SchedulerInfoRecPtr schedulerInfo, - DebuggerThreadSchedulerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeDeferredTaskUPP(int dtParam, DeferredTaskUPP userUPP); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function(ffi.Pointer, ExceptionHandlerUPP) ->() -external int InvokeExceptionHandlerUPP( - ffi.Pointer theException, - ExceptionHandlerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - FNMessage, - OptionBits, - ffi.Pointer, - FNSubscriptionRef, - FNSubscriptionUPP, - ) ->() -external void InvokeFNSubscriptionUPP( - int message, - int flags, - ffi.Pointer refcon, - FNSubscriptionRef subscription, - FNSubscriptionUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - FSVolumeOperation, - ffi.Pointer, - OSStatus, - FSVolumeRefNum, - pid_t, - FSVolumeEjectUPP, - ) ->() -external void InvokeFSVolumeEjectUPP( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - FSVolumeEjectUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - FSVolumeOperation, - ffi.Pointer, - OSStatus, - FSVolumeRefNum, - FSVolumeMountUPP, - ) ->() -external void InvokeFSVolumeMountUPP( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - int err, - int mountedVolumeRefNum, - FSVolumeMountUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - FSVolumeOperation, - ffi.Pointer, - OSStatus, - FSVolumeRefNum, - pid_t, - FSVolumeUnmountUPP, - ) ->() -external void InvokeFSVolumeUnmountUPP( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - FSVolumeUnmountUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - OSType, - ffi.Pointer, - ffi.Pointer, - FolderManagerNotificationUPP, - ) ->() -external int InvokeFolderManagerNotificationUPP( - int message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - FolderManagerNotificationUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Component, - OSType, - SInt16, - ffi.Pointer, - ffi.Pointer, - GetMissingComponentResourceUPP, - ) ->() -external int InvokeGetMissingComponentResourceUPP( - Component c, - int resType, - int resID, - ffi.Pointer refCon, - ffi.Pointer resource, - GetMissingComponentResourceUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeIOCompletionUPP( - ParmBlkPtr paramBlock, - IOCompletionUPP userUPP, -); - -@ffi.Native< - OSErr Function( - ResType, - ffi.Pointer, - ffi.Pointer, - IconActionUPP, - ) ->() -external int InvokeIconActionUPP( - int theType, - ffi.Pointer theIcon, - ffi.Pointer yourDataPtr, - IconActionUPP userUPP, -); - -@ffi.Native, IconGetterUPP)>() -external Handle InvokeIconGetterUPP( - int theType, - ffi.Pointer yourDataPtr, - IconGetterUPP userUPP, -); - -@ffi.Native< - Boolean Function( - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - IndexToUCStringUPP, - ) ->() -external int InvokeIndexToUCStringUPP( - int index$1, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer outString, - ffi.Pointer tsOptions, - IndexToUCStringUPP userUPP, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - KCEvent, - ffi.Pointer, - ffi.Pointer, - KCCallbackUPP, - ) ->() -external int InvokeKCCallbackUPP( - int keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - KCCallbackUPP userUPP, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - DescType, - DescType, - ffi.Pointer, - ffi.Pointer, - SRefCon, - OSLAccessorUPP, - ) ->() -external int InvokeOSLAccessorUPP( - int desiredClass, - ffi.Pointer container, - int containerClass, - int form, - ffi.Pointer selectionData, - ffi.Pointer value, - SRefCon accessorRefcon, - OSLAccessorUPP userUPP, -); - -@ffi.Native< - OSErr Function( - ffi.Long, - ffi.Long, - ffi.Pointer, - OSLAdjustMarksUPP, - ) ->() -external int InvokeOSLAdjustMarksUPP( - int newStart, - int newStop, - ffi.Pointer markToken, - OSLAdjustMarksUPP userUPP, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - OSLCompareUPP, - ) ->() -external int InvokeOSLCompareUPP( - int oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - OSLCompareUPP userUPP, -); - -@ffi.Native< - OSErr Function( - DescType, - DescType, - ffi.Pointer, - ffi.Pointer, - OSLCountUPP, - ) ->() -external int InvokeOSLCountUPP( - int desiredType, - int containerClass, - ffi.Pointer container, - ffi.Pointer result, - OSLCountUPP userUPP, -); - -@ffi.Native, OSLDisposeTokenUPP)>() -external int InvokeOSLDisposeTokenUPP( - ffi.Pointer unneededToken, - OSLDisposeTokenUPP userUPP, -); - -@ffi.Native< - OSErr Function(ffi.Pointer>, OSLGetErrDescUPP) ->() -external int InvokeOSLGetErrDescUPP( - ffi.Pointer> appDescPtr, - OSLGetErrDescUPP userUPP, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - DescType, - ffi.Pointer, - OSLGetMarkTokenUPP, - ) ->() -external int InvokeOSLGetMarkTokenUPP( - ffi.Pointer dContainerToken, - int containerClass, - ffi.Pointer result, - OSLGetMarkTokenUPP userUPP, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - OSLMarkUPP, - ) ->() -external int InvokeOSLMarkUPP( - ffi.Pointer dToken, - ffi.Pointer markToken, - int index$1, - OSLMarkUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeResErrUPP(int thErr, ResErrUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native, SelectorFunctionUPP)>() -external int InvokeSelectorFunctionUPP( - int selector, - ffi.Pointer response, - SelectorFunctionUPP userUPP, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int InvokeSleepQUPP( - int message, - SleepQRecPtr qRecPtr, - SleepQUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void InvokeSpeechDoneUPP( - SpeechChannel chan, - SRefCon refCon, - SpeechDoneUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - ffi.Void Function(SpeechChannel, SRefCon, OSErr, ffi.Long, SpeechErrorUPP) ->() -external void InvokeSpeechErrorUPP( - SpeechChannel chan, - SRefCon refCon, - int theError, - int bytePos, - SpeechErrorUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - ffi.Void Function(SpeechChannel, SRefCon, SInt16, SpeechPhonemeUPP) ->() -external void InvokeSpeechPhonemeUPP( - SpeechChannel chan, - SRefCon refCon, - int phonemeOpcode, - SpeechPhonemeUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void InvokeSpeechSyncUPP( - SpeechChannel chan, - SRefCon refCon, - int syncMessage, - SpeechSyncUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - ffi.Void Function( - SpeechChannel, - SRefCon, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - SpeechTextDoneUPP, - ) ->() -external void InvokeSpeechTextDoneUPP( - SpeechChannel chan, - SRefCon refCon, - ffi.Pointer> nextBuf, - ffi.Pointer byteLen, - ffi.Pointer controlFlags, - SpeechTextDoneUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - ffi.Void Function( - SpeechChannel, - SRefCon, - ffi.UnsignedLong, - UInt16, - SpeechWordUPP, - ) ->() -external void InvokeSpeechWordUPP( - SpeechChannel chan, - SRefCon refCon, - int wordPos, - int wordLen, - SpeechWordUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native, ThreadEntryUPP)>() -external voidPtr InvokeThreadEntryUPP( - ffi.Pointer threadParam, - ThreadEntryUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int InvokeThreadSchedulerUPP( - SchedulerInfoRecPtr schedulerInfo, - ThreadSchedulerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(ThreadID, ffi.Pointer, ThreadSwitchUPP) ->() -external void InvokeThreadSwitchUPP( - int threadBeingSwitched, - ffi.Pointer switchProcParam, - ThreadSwitchUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(ThreadID, ffi.Pointer, ThreadTerminationUPP) ->() -external void InvokeThreadTerminationUPP( - int threadTerminated, - ffi.Pointer terminationProcParam, - ThreadTerminationUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeTimerUPP(TMTaskPtr tmTaskPtr, TimerUPP userUPP); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ByteCount, - ffi.Pointer, - TextPtr, - ByteCount, - ffi.Pointer, - LogicalAddress, - ConstUnicodeMappingPtr, - UnicodeToTextFallbackUPP, - ) ->() -external int InvokeUnicodeToTextFallbackUPP( - ffi.Pointer iSrcUniStr, - int iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - TextPtr oDestStr, - int iDestStrLen, - ffi.Pointer oDestConvLen, - LogicalAddress iInfoPtr, - ConstUnicodeMappingPtr iUnicodeMappingPtr, - UnicodeToTextFallbackUPP userUPP, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int IsDataAvailableInIconRef(int inIconKind, IconRef inIconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external int IsHandleValid(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external int IsHeapValid(); - -@Deprecated('Use NSImage or Core Graphics to composite images.') -@ffi.Native< - OSErr Function(IconRef, ffi.Pointer, ffi.Pointer) ->() -external int IsIconRefComposite( - IconRef compositeIconRef, - ffi.Pointer backgroundIconRef, - ffi.Pointer foregroundIconRef, -); - -@ffi.Native() -external int IsIconRefMaskEmpty(IconRef iconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external int IsMetric(); - -@Deprecated('Deprecated') -@ffi.Native() -external int IsPointerValid(Ptr p); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IsProcessVisible(ffi.Pointer psn); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int IsValidIconRef(IconRef theIconRef); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function(KCCallbackUPP, KCEventMask, ffi.Pointer) ->() -external int KCAddCallback( - KCCallbackUPP callbackProc, - int eventMask, - ffi.Pointer userContext, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCCopyItem( - KCItemRef item, - KCRef destKeychain, - ffi.Pointer copy, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCCountKeychains(); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCDeleteItem(KCItemRef item); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer>, - ConstStringPtr, - ConstStringPtr, - ConstStringPtr, - ConstStringPtr, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCFindAppleSharePassword( - ffi.Pointer> serverSignature, - ConstStringPtr serverAddress, - ConstStringPtr serverName, - ConstStringPtr volumeName, - ConstStringPtr accountName, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - KCRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCFindFirstItem( - KCRef keychain, - ffi.Pointer attrList, - ffi.Pointer search, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ConstStringPtr, - ConstStringPtr, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCFindGenericPassword( - ConstStringPtr serviceName, - ConstStringPtr accountName, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ConstStringPtr, - ConstStringPtr, - ConstStringPtr, - UInt16, - OSType, - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCFindInternetPassword( - ConstStringPtr serverName, - ConstStringPtr securityDomain, - ConstStringPtr accountName, - int port, - int protocol, - int authType, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ConstStringPtr, - ConstStringPtr, - ConstStringPtr, - ConstStringPtr, - UInt16, - OSType, - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCFindInternetPasswordWithPath( - ConstStringPtr serverName, - ConstStringPtr securityDomain, - ConstStringPtr accountName, - ConstStringPtr path, - int port, - int protocol, - int authType, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCFindNextItem(KCSearchRef search, ffi.Pointer item); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function(KCItemRef, ffi.Pointer, ffi.Pointer) ->() -external int KCGetAttribute( - KCItemRef item, - ffi.Pointer attr, - ffi.Pointer actualLength, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - KCItemRef, - UInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCGetData( - KCItemRef item, - int maxLength, - ffi.Pointer data, - ffi.Pointer actualLength, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCGetDefaultKeychain(ffi.Pointer keychain); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCGetIndKeychain(int index$1, ffi.Pointer keychain); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCGetKeychain(KCItemRef item, ffi.Pointer keychain); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCGetKeychainManagerVersion(ffi.Pointer returnVers); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCGetKeychainName(KCRef keychain, StringPtr keychainName); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCGetStatus(KCRef keychain, ffi.Pointer keychainStatus); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCIsInteractionAllowed(); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCLock(KCRef keychain); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCMakeAliasFromKCRef( - KCRef keychain, - ffi.Pointer keychainAlias, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCMakeKCRefFromAlias( - AliasHandle keychainAlias, - ffi.Pointer keychain, -); - -@Deprecated('No longer supported') -@ffi.Native, ffi.Pointer)>() -external int KCMakeKCRefFromFSRef( - ffi.Pointer keychainFSRef, - ffi.Pointer keychain, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - KCItemClass, - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCNewItem( - int itemClass, - int itemCreator, - int length, - ffi.Pointer data, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCReleaseItem(ffi.Pointer item); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCReleaseKeychain(ffi.Pointer keychain); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCReleaseSearch(ffi.Pointer search); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCRemoveCallback(KCCallbackUPP callbackProc); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCSetAttribute(KCItemRef item, ffi.Pointer attr); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCSetData(KCItemRef item, int length, ffi.Pointer data); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCSetDefaultKeychain(KCRef keychain); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCSetInteractionAllowed(int state); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCUpdateItem(KCItemRef item); - -@ffi.Native() -external final audit_token_t KERNEL_AUDIT_TOKEN; - -@ffi.Native() -external final security_token_t KERNEL_SECURITY_TOKEN; - -@Deprecated('Deprecated') -@ffi.Native)>() -external int KillProcess(ffi.Pointer inProcess); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetApFontID(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetBootDrive(); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr LMGetIntlSpec(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetMemErr(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetResErr(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetResLoad(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetSysFontSize(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetSysMap(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetTmpResLoad(); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetApFontID(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetBootDrive(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetIntlSpec(Ptr value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetMemErr(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetResErr(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetResLoad(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetSysFontFam(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetSysFontSize(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetSysMap(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetTmpResLoad(int value); - -@Deprecated('Use LSCanURLAcceptURL instead.') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - OptionBits, - OptionBits, - ffi.Pointer, - ) ->() -external int LSCanRefAcceptItem( - ffi.Pointer inItemFSRef, - ffi.Pointer inTargetRef, - int inRoleMask, - int inFlags, - ffi.Pointer outAcceptsItem, -); - -@ffi.Native< - OSStatus Function( - CFURLRef, - CFURLRef, - OptionBits, - OptionBits, - ffi.Pointer, - ) ->() -external int LSCanURLAcceptURL( - CFURLRef inItemURL, - CFURLRef inTargetURL, - int inRoleMask, - int inFlags, - ffi.Pointer outAcceptsItem, -); - -@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenURL:] instead.') -@ffi.Native() -external CFArrayRef LSCopyAllHandlersForURLScheme(CFStringRef inURLScheme); - -@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenContentType:] instead.') -@ffi.Native() -external CFArrayRef LSCopyAllRoleHandlersForContentType( - CFStringRef inContentType, - int inRole, -); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') -@ffi.Native)>() -external int LSCopyApplicationForMIMEType( - CFStringRef inMIMEType, - int inRoleMask, - ffi.Pointer outAppURL, -); - -@Deprecated( - 'Use -[NSWorkspace URLsForApplicationsWithBundleIdentifier:] instead.', -) -@ffi.Native)>() -external CFArrayRef LSCopyApplicationURLsForBundleIdentifier( - CFStringRef inBundleIdentifier, - ffi.Pointer outError, -); - -@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenURL:] instead.') -@ffi.Native() -external CFArrayRef LSCopyApplicationURLsForURL(CFURLRef inURL, int inRoleMask); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') -@ffi.Native< - CFURLRef Function(CFStringRef, OptionBits, ffi.Pointer) ->() -external CFURLRef LSCopyDefaultApplicationURLForContentType( - CFStringRef inContentType, - int inRoleMask, - ffi.Pointer outError, -); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenURL:] instead.') -@ffi.Native)>() -external CFURLRef LSCopyDefaultApplicationURLForURL( - CFURLRef inURL, - int inRoleMask, - ffi.Pointer outError, -); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenURL:] instead.') -@ffi.Native() -external CFStringRef LSCopyDefaultHandlerForURLScheme(CFStringRef inURLScheme); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') -@ffi.Native() -external CFStringRef LSCopyDefaultRoleHandlerForContentType( - CFStringRef inContentType, - int inRole, -); - -@Deprecated( - 'Use the URL resource property kCFURLLocalizedNameKey or NSURLLocalizedNameKey instead.', -) -@ffi.Native, ffi.Pointer)>() -external int LSCopyDisplayNameForRef( - ffi.Pointer inRef, - ffi.Pointer outDisplayName, -); - -@Deprecated( - 'Use the URL resource property kCFURLLocalizedNameKey or NSURLLocalizedNameKey instead.', -) -@ffi.Native)>() -external int LSCopyDisplayNameForURL( - CFURLRef inURL, - ffi.Pointer outDisplayName, -); - -@Deprecated( - 'Use CFURLCopyResourcePropertyForKey or -[NSURL getResourceValue:forKey:error:] instead.', -) -@ffi.Native< - OSStatus Function( - ffi.Pointer, - OptionBits, - CFStringRef, - ffi.Pointer, - ) ->() -external int LSCopyItemAttribute( - ffi.Pointer inItem, - int inRoles, - CFStringRef inAttributeName, - ffi.Pointer outValue, -); - -@Deprecated( - 'Use CFURLCopyResourcePropertiesForKeys or -[NSURL resourceValuesForKeys:error:] instead.', -) -@ffi.Native< - OSStatus Function( - ffi.Pointer, - OptionBits, - CFArrayRef, - ffi.Pointer, - ) ->() -external int LSCopyItemAttributes( - ffi.Pointer inItem, - int inRoles, - CFArrayRef inAttributeNames, - ffi.Pointer outValues, -); - -@Deprecated('Use URL resource properties instead.') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - OptionBits, - ffi.Pointer, - ) ->() -external int LSCopyItemInfoForRef( - ffi.Pointer inItemRef, - int inWhichInfo, - ffi.Pointer outItemInfo, -); - -@Deprecated('Use URL resource properties instead.') -@ffi.Native< - OSStatus Function(CFURLRef, OptionBits, ffi.Pointer) ->() -external int LSCopyItemInfoForURL( - CFURLRef inURL, - int inWhichInfo, - ffi.Pointer outItemInfo, -); - -@Deprecated('Use UTTypeCopyDescription instead.') -@ffi.Native)>() -external int LSCopyKindStringForMIMEType( - CFStringRef inMIMEType, - ffi.Pointer outKindString, -); - -@Deprecated( - 'Use the URL resource property kCFURLLocalizedTypeDescriptionKey or NSURLLocalizedTypeDescriptionKey instead.', -) -@ffi.Native, ffi.Pointer)>() -external int LSCopyKindStringForRef( - ffi.Pointer inFSRef, - ffi.Pointer outKindString, -); - -@Deprecated('Use UTTypeCopyDescription instead.') -@ffi.Native< - OSStatus Function(OSType, OSType, CFStringRef, ffi.Pointer) ->() -external int LSCopyKindStringForTypeInfo( - int inType, - int inCreator, - CFStringRef inExtension, - ffi.Pointer outKindString, -); - -@Deprecated( - 'Use the URL resource property kCFURLLocalizedTypeDescriptionKey or NSURLLocalizedTypeDescriptionKey instead.', -) -@ffi.Native)>() -external int LSCopyKindStringForURL( - CFURLRef inURL, - ffi.Pointer outKindString, -); - -@Deprecated('Use LSCopyApplicationURLsForBundleIdentifier instead.') -@ffi.Native< - OSStatus Function( - OSType, - CFStringRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSFindApplicationForInfo( - int inCreator, - CFStringRef inBundleID, - CFStringRef inName, - ffi.Pointer outAppRef, - ffi.Pointer outAppURL, -); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') -@ffi.Native< - OSStatus Function( - OSType, - OSType, - CFStringRef, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSGetApplicationForInfo( - int inType, - int inCreator, - CFStringRef inExtension, - int inRoleMask, - ffi.Pointer outAppRef, - ffi.Pointer outAppURL, -); - -@Deprecated('Use LSCopyDefaultApplicationURLForURL instead.') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSGetApplicationForItem( - ffi.Pointer inItemRef, - int inRoleMask, - ffi.Pointer outAppRef, - ffi.Pointer outAppURL, -); - -@Deprecated('Use LSCopyDefaultApplicationURLForURL instead.') -@ffi.Native< - OSStatus Function( - CFURLRef, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSGetApplicationForURL( - CFURLRef inURL, - int inRoleMask, - ffi.Pointer outAppRef, - ffi.Pointer outAppURL, -); - -@Deprecated( - 'Use CFURLCopyPathExtension(), -[NSURL pathExtension], or -[NSString pathExtension] instead.', -) -@ffi.Native< - OSStatus Function( - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSGetExtensionInfo( - int inNameLen, - ffi.Pointer inNameBuffer, - ffi.Pointer outExtStartIndex, -); - -@Deprecated('Creator codes are deprecated on OS X.') -@ffi.Native() -external int LSGetHandlerOptionsForContentType(CFStringRef inContentType); - -@Deprecated( - 'Use -[NSWorkspace launchApplicationAtURL:options:configuration:error:] instead.', -) -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSOpenApplication( - ffi.Pointer appParams, - ffi.Pointer outPSN, -); - -@ffi.Native)>() -external int LSOpenCFURLRef( - CFURLRef inURL, - ffi.Pointer outLaunchedURL, -); - -@Deprecated('Use LSOpenCFURLRef or -[NSWorkspace openURL:] instead.') -@ffi.Native, ffi.Pointer)>() -external int LSOpenFSRef( - ffi.Pointer inRef, - ffi.Pointer outLaunchedRef, -); - -@Deprecated('Use LSOpenFromURLSpec or NSWorkspace instead.') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int LSOpenFromRefSpec( - ffi.Pointer inLaunchSpec, - ffi.Pointer outLaunchedRef, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int LSOpenFromURLSpec( - ffi.Pointer inLaunchSpec, - ffi.Pointer outLaunchedURL, -); - -@Deprecated('Use NSWorkspace instead.') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - CFIndex, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->() -external int LSOpenItemsWithRole( - ffi.Pointer inItems, - int inItemCount, - int inRole, - ffi.Pointer inAEParam, - ffi.Pointer inAppParams, - ffi.Pointer outPSNs, - int inMaxPSNCount, -); - -@Deprecated('Use NSWorkspace instead.') -@ffi.Native< - OSStatus Function( - CFArrayRef, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->() -external int LSOpenURLsWithRole( - CFArrayRef inURLs, - int inRole, - ffi.Pointer inAEParam, - ffi.Pointer inAppParams, - ffi.Pointer outPSNs, - int inMaxPSNCount, -); - -@Deprecated('Use LSRegisterURL instead.') -@ffi.Native, Boolean)>() -external int LSRegisterFSRef(ffi.Pointer inRef, int inUpdate); - -@ffi.Native() -external int LSRegisterURL(CFURLRef inURL, int inUpdate); - -@Deprecated( - 'Use -[NSWorkspace setDefaultApplicationAtURL:toOpenURLsWithScheme:completionHandler:] instead.', -) -@ffi.Native() -external int LSSetDefaultHandlerForURLScheme( - CFStringRef inURLScheme, - CFStringRef inHandlerBundleID, -); - -@Deprecated( - 'Use -[NSWorkspace setDefaultApplicationAtURL:toOpenContentType:completionHandler:] instead.', -) -@ffi.Native() -external int LSSetDefaultRoleHandlerForContentType( - CFStringRef inContentType, - int inRole, - CFStringRef inHandlerBundleID, -); - -@Deprecated( - 'Use the URL resource property kCFURLHasHiddenExtensionKey or NSURLHasHiddenExtensionKey instead.', -) -@ffi.Native, Boolean)>() -external int LSSetExtensionHiddenForRef(ffi.Pointer inRef, int inHide); - -@Deprecated( - 'Use the URL resource property kCFURLHasHiddenExtensionKey or NSURLHasHiddenExtensionKey instead.', -) -@ffi.Native() -external int LSSetExtensionHiddenForURL(CFURLRef inURL, int inHide); - -@Deprecated('Creator codes are deprecated on OS X.') -@ffi.Native() -external int LSSetHandlerOptionsForContentType( - CFStringRef inContentType, - int inOptions, -); - -@Deprecated( - 'Use CFURLSetResourcePropertyForKey or -[NSURL setResourceValue:forKey:error:] instead.', -) -@ffi.Native< - OSStatus Function(ffi.Pointer, OptionBits, CFStringRef, CFTypeRef) ->() -external int LSSetItemAttribute( - ffi.Pointer inItem, - int inRoles, - CFStringRef inAttributeName, - CFTypeRef inValue, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - LSSharedFileListRef, - CFRunLoopRef, - CFStringRef, - LSSharedFileListChangedProcPtr, - ffi.Pointer, - ) ->() -external void LSSharedFileListAddObserver( - LSSharedFileListRef inList, - CFRunLoopRef inRunloop, - CFStringRef inRunloopMode, - LSSharedFileListChangedProcPtr callback, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFTypeRef LSSharedFileListCopyProperty( - LSSharedFileListRef inList, - CFStringRef inPropertyName, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external CFArrayRef LSSharedFileListCopySnapshot( - LSSharedFileListRef inList, - ffi.Pointer outSnapshotSeed, -); - -@Deprecated('No longer supported') -@ffi.Native< - LSSharedFileListRef Function(CFAllocatorRef, CFStringRef, CFTypeRef) ->() -external LSSharedFileListRef LSSharedFileListCreate( - CFAllocatorRef inAllocator, - CFStringRef inListType, - CFTypeRef listOptions, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListGetSeedValue(LSSharedFileListRef inList); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native< - LSSharedFileListItemRef Function( - LSSharedFileListRef, - LSSharedFileListItemRef, - CFStringRef, - IconRef, - ffi.Pointer, - CFDictionaryRef, - CFArrayRef, - ) ->() -external LSSharedFileListItemRef LSSharedFileListInsertItemFSRef( - LSSharedFileListRef inList, - LSSharedFileListItemRef insertAfterThisItem, - CFStringRef inDisplayName, - IconRef inIconRef, - ffi.Pointer inFSRef, - CFDictionaryRef inPropertiesToSet, - CFArrayRef inPropertiesToClear, -); - -@Deprecated('No longer supported') -@ffi.Native< - LSSharedFileListItemRef Function( - LSSharedFileListRef, - LSSharedFileListItemRef, - CFStringRef, - IconRef, - CFURLRef, - CFDictionaryRef, - CFArrayRef, - ) ->() -external LSSharedFileListItemRef LSSharedFileListInsertItemURL( - LSSharedFileListRef inList, - LSSharedFileListItemRef insertAfterThisItem, - CFStringRef inDisplayName, - IconRef inIconRef, - CFURLRef inURL, - CFDictionaryRef inPropertiesToSet, - CFArrayRef inPropertiesToClear, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFStringRef LSSharedFileListItemCopyDisplayName( - LSSharedFileListItemRef inItem, -); - -@Deprecated('No longer supported') -@ffi.Native() -external IconRef LSSharedFileListItemCopyIconRef( - LSSharedFileListItemRef inItem, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFTypeRef LSSharedFileListItemCopyProperty( - LSSharedFileListItemRef inItem, - CFStringRef inPropertyName, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFURLRef Function( - LSSharedFileListItemRef, - LSSharedFileListResolutionFlags, - ffi.Pointer, - ) ->() -external CFURLRef LSSharedFileListItemCopyResolvedURL( - LSSharedFileListItemRef inItem, - int inFlags, - ffi.Pointer outError, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListItemGetID(LSSharedFileListItemRef inItem); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListItemGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - LSSharedFileListRef, - LSSharedFileListItemRef, - LSSharedFileListItemRef, - ) ->() -external int LSSharedFileListItemMove( - LSSharedFileListRef inList, - LSSharedFileListItemRef inItem, - LSSharedFileListItemRef inMoveAfterItem, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListItemRemove( - LSSharedFileListRef inList, - LSSharedFileListItemRef inItem, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LSSharedFileListItemRef, - LSSharedFileListResolutionFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSSharedFileListItemResolve( - LSSharedFileListItemRef inItem, - int inFlags, - ffi.Pointer outURL, - ffi.Pointer outRef, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function(LSSharedFileListItemRef, CFStringRef, CFTypeRef) ->() -external int LSSharedFileListItemSetProperty( - LSSharedFileListItemRef inItem, - CFStringRef inPropertyName, - CFTypeRef inPropertyData, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListRemoveAllItems(LSSharedFileListRef inList); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - LSSharedFileListRef, - CFRunLoopRef, - CFStringRef, - LSSharedFileListChangedProcPtr, - ffi.Pointer, - ) ->() -external void LSSharedFileListRemoveObserver( - LSSharedFileListRef inList, - CFRunLoopRef inRunloop, - CFStringRef inRunloopMode, - LSSharedFileListChangedProcPtr callback, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListSetAuthorization( - LSSharedFileListRef inList, - AuthorizationRef inAuthorization, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListSetProperty( - LSSharedFileListRef inList, - CFStringRef inPropertyName, - CFTypeRef inPropertyData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int LaunchApplication(LaunchPBPtr LaunchParams); - -@Deprecated('Deprecated') -@ffi.Native() -external void LoadResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - LocaleNameMask, - ffi.Pointer, - ) ->() -external int LocaleCountNames( - LocaleRef locale, - int opVariant, - int nameMask, - ffi.Pointer nameCount, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - LocaleNameMask, - ItemCount, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleGetIndName( - LocaleRef locale, - int opVariant, - int nameMask, - int nameIndex, - int maxNameLen, - ffi.Pointer actualNameLen, - ffi.Pointer displayName, - ffi.Pointer displayLocale, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - LocaleNameMask, - LocaleRef, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleGetName( - LocaleRef locale, - int opVariant, - int nameMask, - LocaleRef displayLocale, - int maxNameLen, - ffi.Pointer actualNameLen, - ffi.Pointer displayName, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int LocaleOperationCountLocales( - int opClass, - ffi.Pointer localeCount, -); - -@ffi.Native)>() -external int LocaleOperationCountNames( - int opClass, - ffi.Pointer nameCount, -); - -@ffi.Native< - OSStatus Function( - LocaleOperationClass, - ItemCount, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleOperationGetIndName( - int opClass, - int nameIndex, - int maxNameLen, - ffi.Pointer actualNameLen, - ffi.Pointer displayName, - ffi.Pointer displayLocale, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LocaleOperationClass, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleOperationGetLocales( - int opClass, - int maxLocaleCount, - ffi.Pointer actualLocaleCount, - ffi.Pointer localeVariantList, -); - -@ffi.Native< - OSStatus Function( - LocaleOperationClass, - LocaleRef, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleOperationGetName( - int opClass, - LocaleRef displayLocale, - int maxNameLen, - ffi.Pointer actualNameLen, - ffi.Pointer displayName, -); - -@ffi.Native)>() -external int LocaleRefFromLangOrRegionCode( - int lang, - int region, - ffi.Pointer locale, -); - -@ffi.Native, ffi.Pointer)>() -external int LocaleRefFromLocaleString( - ffi.Pointer localeString, - ffi.Pointer locale, -); - -@ffi.Native< - OSStatus Function(LocaleRef, LocalePartMask, ByteCount, ffi.Pointer) ->() -external int LocaleRefGetPartString( - LocaleRef locale, - int partMask, - int maxStringLen, - ffi.Pointer partString, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleStringToLangAndRegionCodes( - ffi.Pointer localeString, - ffi.Pointer lang, - ffi.Pointer region, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int Long2Fix(int x); - -@ffi.Native() -external CFArrayRef MDCopyLabelKinds(); - -@ffi.Native() -external MDLabelRef MDCopyLabelWithUUID(CFUUIDRef labelUUID); - -@ffi.Native() -external CFArrayRef MDCopyLabelsMatchingExpression( - CFStringRef simpleQueryString, -); - -@ffi.Native() -external CFArrayRef MDCopyLabelsWithKind(CFStringRef kind); - -@ffi.Native() -external CFTypeRef MDItemCopyAttribute(MDItemRef item, CFStringRef name); - -@ffi.Native() -external CFDictionaryRef MDItemCopyAttributeList(MDItemRef item); - -@ffi.Native() -external CFArrayRef MDItemCopyAttributeNames(MDItemRef item); - -@ffi.Native() -external CFDictionaryRef MDItemCopyAttributes(MDItemRef item, CFArrayRef names); - -@ffi.Native() -external CFArrayRef MDItemCopyLabels(MDItemRef item); - -@ffi.Native() -external MDItemRef MDItemCreate(CFAllocatorRef allocator, CFStringRef path); - -@ffi.Native() -external MDItemRef MDItemCreateWithURL(CFAllocatorRef allocator, CFURLRef url); - -@ffi.Native)>( - symbol: 'MDItemGetCacheFileDescriptors', -) -external void _MDItemGetCacheFileDescriptors( - CFArrayRef items, - ffi.Pointer completionHandler, -); - -void MDItemGetCacheFileDescriptors( - CFArrayRef items, - objc.ObjCBlock)> completionHandler, -) { - final _$$ref = completionHandler.ref; - return _MDItemGetCacheFileDescriptors(items, _$$ref.pointer); -} - -@ffi.Native() -external int MDItemGetTypeID(); - -@ffi.Native() -external int MDItemRemoveLabel(MDItemRef item, MDLabelRef label); - -@ffi.Native() -external int MDItemSetLabel(MDItemRef item, MDLabelRef label); - -@ffi.Native() -external CFArrayRef MDItemsCopyAttributes(CFArrayRef items, CFArrayRef names); - -@ffi.Native() -external CFArrayRef MDItemsCreateWithURLs( - CFAllocatorRef allocator, - CFArrayRef urls, -); - -@ffi.Native() -external CFTypeRef MDLabelCopyAttribute(MDLabelRef label, CFStringRef name); - -@ffi.Native() -external CFStringRef MDLabelCopyAttributeName(MDLabelRef label); - -@ffi.Native< - MDLabelRef Function(CFAllocatorRef, CFStringRef, CFStringRef, ffi.UnsignedInt) ->(symbol: 'MDLabelCreate') -external MDLabelRef _MDLabelCreate( - CFAllocatorRef allocator, - CFStringRef displayName, - CFStringRef kind, - int domain, -); - -MDLabelRef MDLabelCreate( - CFAllocatorRef allocator, - CFStringRef displayName, - CFStringRef kind, - MDLabelDomain domain, -) { - return _MDLabelCreate(allocator, displayName, kind, domain.value); -} - -@ffi.Native() -external int MDLabelDelete(MDLabelRef label); - -@ffi.Native() -external int MDLabelGetTypeID(); - -@ffi.Native() -external int MDLabelSetAttributes(MDLabelRef label, CFDictionaryRef attrs); - -@ffi.Native() -external CFStringRef MDQueryCopyQueryString(MDQueryRef query); - -@ffi.Native() -external CFArrayRef MDQueryCopySortingAttributes(MDQueryRef query); - -@ffi.Native() -external CFArrayRef MDQueryCopyValueListAttributes(MDQueryRef query); - -@ffi.Native() -external CFArrayRef MDQueryCopyValuesOfAttribute( - MDQueryRef query, - CFStringRef name, -); - -@ffi.Native< - MDQueryRef Function(CFAllocatorRef, CFStringRef, CFArrayRef, CFArrayRef) ->() -external MDQueryRef MDQueryCreate( - CFAllocatorRef allocator, - CFStringRef queryString, - CFArrayRef valueListAttrs, - CFArrayRef sortingAttrs, -); - -@ffi.Native< - MDQueryRef Function( - CFAllocatorRef, - CFStringRef, - CFArrayRef, - CFArrayRef, - CFArrayRef, - ) ->() -external MDQueryRef MDQueryCreateForItems( - CFAllocatorRef allocator, - CFStringRef queryString, - CFArrayRef valueListAttrs, - CFArrayRef sortingAttrs, - CFArrayRef items, -); - -@ffi.Native< - MDQueryRef Function( - CFAllocatorRef, - MDQueryRef, - CFStringRef, - CFArrayRef, - CFArrayRef, - ) ->() -external MDQueryRef MDQueryCreateSubset( - CFAllocatorRef allocator, - MDQueryRef query, - CFStringRef queryString, - CFArrayRef valueListAttrs, - CFArrayRef sortingAttrs, -); - -@ffi.Native() -external void MDQueryDisableUpdates(MDQueryRef query); - -@ffi.Native() -external void MDQueryEnableUpdates(MDQueryRef query); - -@ffi.Native() -external int MDQueryExecute(MDQueryRef query, int optionFlags); - -@ffi.Native Function(MDQueryRef, CFStringRef, CFIndex)>() -external ffi.Pointer MDQueryGetAttributeValueOfResultAtIndex( - MDQueryRef query, - CFStringRef name, - int idx, -); - -@ffi.Native() -external MDQueryBatchingParams MDQueryGetBatchingParameters(MDQueryRef query); - -@ffi.Native() -external int MDQueryGetCountOfResultsWithAttributeValue( - MDQueryRef query, - CFStringRef name, - CFTypeRef value, -); - -@ffi.Native)>() -external int MDQueryGetIndexOfResult( - MDQueryRef query, - ffi.Pointer result, -); - -@ffi.Native Function(MDQueryRef, CFIndex)>() -external ffi.Pointer MDQueryGetResultAtIndex( - MDQueryRef query, - int idx, -); - -@ffi.Native() -external int MDQueryGetResultCount(MDQueryRef query); - -@ffi.Native() -external int MDQueryGetSortOptionFlagsForAttribute( - MDQueryRef query, - CFStringRef fieldName, -); - -@ffi.Native() -external int MDQueryGetTypeID(); - -@ffi.Native() -external int MDQueryIsGatheringComplete(MDQueryRef query); - -@ffi.Native() -external void MDQuerySetBatchingParameters( - MDQueryRef query, - MDQueryBatchingParams params, -); - -@ffi.Native< - ffi.Void Function( - MDQueryRef, - MDQueryCreateResultFunction, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void MDQuerySetCreateResultFunction( - MDQueryRef query, - MDQueryCreateResultFunction func, - ffi.Pointer context, - ffi.Pointer cb, -); - -@ffi.Native< - ffi.Void Function( - MDQueryRef, - MDQueryCreateValueFunction, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void MDQuerySetCreateValueFunction( - MDQueryRef query, - MDQueryCreateValueFunction func, - ffi.Pointer context, - ffi.Pointer cb, -); - -@ffi.Native( - symbol: 'MDQuerySetDispatchQueue', -) -external void _MDQuerySetDispatchQueue( - MDQueryRef query, - dispatch_queue_t queue, -); - -void MDQuerySetDispatchQueue(MDQueryRef query, Dartdispatch_queue_t queue) { - final _$$ref = queue.ref; - return _MDQuerySetDispatchQueue(query, _$$ref.pointer); -} - -@ffi.Native() -external void MDQuerySetMaxCount(MDQueryRef query, int size); - -@ffi.Native() -external void MDQuerySetSearchScope( - MDQueryRef query, - CFArrayRef scopeDirectories, - int scopeOptions, -); - -@ffi.Native< - ffi.Void Function( - MDQueryRef, - MDQuerySortComparatorFunction, - ffi.Pointer, - ) ->() -external void MDQuerySetSortComparator( - MDQueryRef query, - MDQuerySortComparatorFunction comparator, - ffi.Pointer context, -); - -@ffi.Native)>( - symbol: 'MDQuerySetSortComparatorBlock', -) -external void _MDQuerySetSortComparatorBlock( - MDQueryRef query, - ffi.Pointer comparator, -); - -void MDQuerySetSortComparatorBlock( - MDQueryRef query, - objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - > - comparator, -) { - final _$$ref = comparator.ref; - return _MDQuerySetSortComparatorBlock(query, _$$ref.pointer); -} - -@ffi.Native() -external int MDQuerySetSortOptionFlagsForAttribute( - MDQueryRef query, - CFStringRef fieldName, - int flags, -); - -@ffi.Native() -external int MDQuerySetSortOrder(MDQueryRef query, CFArrayRef sortingAttrs); - -@ffi.Native() -external void MDQueryStop(MDQueryRef query); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - ffi.Pointer, - MDS_FUNCS_PTR, - ffi.Pointer, - ) ->() -external int MDS_Initialize( - ffi.Pointer pCallerGuid, - ffi.Pointer pMemoryFunctions, - MDS_FUNCS_PTR pDlFunctions, - ffi.Pointer hMds, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int MDS_Install(int MdsHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int MDS_Terminate(int MdsHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int MDS_Uninstall(int MdsHandle); - -@ffi.Native() -external CFArrayRef MDSchemaCopyAllAttributes(); - -@ffi.Native() -external CFDictionaryRef MDSchemaCopyAttributesForContentType( - CFStringRef contentTypeUTI, -); - -@ffi.Native() -external CFStringRef MDSchemaCopyDisplayDescriptionForAttribute( - CFStringRef name, -); - -@ffi.Native() -external CFStringRef MDSchemaCopyDisplayNameForAttribute(CFStringRef name); - -@ffi.Native() -external CFDictionaryRef MDSchemaCopyMetaAttributesForAttribute( - CFStringRef name, -); - -@Deprecated('Use malloc()') -@ffi.Native() -external LogicalAddress MPAllocate(int size); - -@Deprecated('Use aligned_alloc()') -@ffi.Native() -external LogicalAddress MPAllocateAligned(int size, int alignment, int options); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPAllocateTaskStorageIndex( - ffi.Pointer taskIndex, -); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function(MPTimerID, ffi.Pointer, OptionBits) ->() -external int MPArmTimer( - MPTimerID timerID, - ffi.Pointer expirationTime, - int options, -); - -@Deprecated('Use bzero()') -@ffi.Native() -external void MPBlockClear(LogicalAddress address, int size); - -@Deprecated('Use memcpy()') -@ffi.Native() -external void MPBlockCopy( - LogicalAddress source, - LogicalAddress destination, - int size, -); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCancelTimer( - MPTimerID timerID, - ffi.Pointer timeRemaining, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPCauseNotification(MPNotificationID notificationID); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCreateCriticalRegion( - ffi.Pointer criticalRegion, -); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCreateEvent(ffi.Pointer event); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCreateNotification(ffi.Pointer notificationID); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCreateQueue(ffi.Pointer queue); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - MPSemaphoreCount, - MPSemaphoreCount, - ffi.Pointer, - ) ->() -external int MPCreateSemaphore( - int maximumValue, - int initialValue, - ffi.Pointer semaphore, -); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - TaskProc, - ffi.Pointer, - ByteCount, - MPQueueID, - ffi.Pointer, - ffi.Pointer, - MPTaskOptions, - ffi.Pointer, - ) ->() -external int MPCreateTask( - TaskProc entryPoint, - ffi.Pointer parameter, - int stackSize, - MPQueueID notifyQueue, - ffi.Pointer terminationParameter1, - ffi.Pointer terminationParameter2, - int options, - ffi.Pointer task, -); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCreateTimer(ffi.Pointer timerID); - -@Deprecated('Use libDispatch') -@ffi.Native() -external MPTaskID MPCurrentTaskID(); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeallocateTaskStorageIndex(int taskIndex); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPDelayUntil(ffi.Pointer expirationTime); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteCriticalRegion(MPCriticalRegionID criticalRegion); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteEvent(MPEventID event); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteNotification(MPNotificationID notificationID); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteQueue(MPQueueID queue); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteSemaphore(MPSemaphoreID semaphore); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteTimer(MPTimerID timerID); - -@Deprecated('No longer supported.') -@ffi.Native() -external int MPDisposeTaskException(MPTaskID task, int action); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPEnterCriticalRegion( - MPCriticalRegionID criticalRegion, - int timeout, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external void MPExit(int status); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPExitCriticalRegion(MPCriticalRegionID criticalRegion); - -@Deprecated('No longer supported.') -@ffi.Native< - OSStatus Function(MPTaskID, MPTaskStateKind, ffi.Pointer) ->() -external int MPExtractTaskState( - MPTaskID task, - int kind, - ffi.Pointer info, -); - -@Deprecated('Use free()') -@ffi.Native() -external void MPFree(LogicalAddress object); - -@Deprecated('Use malloc_size()') -@ffi.Native() -external int MPGetAllocatedBlockSize(LogicalAddress object); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int MPGetNextCpuID( - MPCoherenceID owningCoherenceID, - ffi.Pointer cpuID, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int MPGetNextTaskID( - MPProcessID owningProcessID, - ffi.Pointer taskID, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external TaskStorageValue MPGetTaskStorageValue(int taskIndex); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - MPNotificationID, - MPOpaqueID, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int MPModifyNotification( - MPNotificationID notificationID, - MPOpaqueID anID, - ffi.Pointer notifyParam1, - ffi.Pointer notifyParam2, - ffi.Pointer notifyParam3, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - MPNotificationID, - MPOpaqueIDClass, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int MPModifyNotificationParameters( - MPNotificationID notificationID, - int kind, - ffi.Pointer notifyParam1, - ffi.Pointer notifyParam2, - ffi.Pointer notifyParam3, -); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - MPQueueID, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int MPNotifyQueue( - MPQueueID queue, - ffi.Pointer param1, - ffi.Pointer param2, - ffi.Pointer param3, -); - -@Deprecated('Use sysctl(hw.ncpu)') -@ffi.Native() -external int MPProcessors(); - -@Deprecated('Use sysctl(hw.activecpu)') -@ffi.Native() -external int MPProcessorsScheduled(); - -@Deprecated('No longer supported.') -@ffi.Native() -external int MPRegisterDebugger(MPQueueID queue, int level); - -@Deprecated('Use libDispatch') -@ffi.Native< - ffi.Pointer Function( - MPRemoteProcedure, - ffi.Pointer, - MPRemoteContext, - ) ->() -external ffi.Pointer MPRemoteCall( - MPRemoteProcedure remoteProc, - ffi.Pointer parameter, - int context, -); - -@Deprecated('No longer supported.') -@ffi.Native< - ffi.Pointer Function( - MPRemoteProcedure, - ffi.Pointer, - MPRemoteContext, - ) ->() -external ffi.Pointer MPRemoteCallCFM( - MPRemoteProcedure remoteProc, - ffi.Pointer parameter, - int context, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSetEvent(MPEventID event, int flags); - -@Deprecated('No longer supported.') -@ffi.Native() -external int MPSetExceptionHandler(MPTaskID task, MPQueueID exceptionQ); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSetQueueReserve(MPQueueID queue, int count); - -@Deprecated('No longer supported.') -@ffi.Native< - OSStatus Function(MPTaskID, MPTaskStateKind, ffi.Pointer) ->() -external int MPSetTaskState( - MPTaskID task, - int kind, - ffi.Pointer info, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSetTaskStorageValue(int taskIndex, TaskStorageValue value); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSetTaskType(MPTaskID task, int taskType); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSetTaskWeight(MPTaskID task, int weight); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - MPTimerID, - MPOpaqueID, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int MPSetTimerNotify( - MPTimerID timerID, - MPOpaqueID anID, - ffi.Pointer notifyParam1, - ffi.Pointer notifyParam2, - ffi.Pointer notifyParam3, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSignalSemaphore(MPSemaphoreID semaphore); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPTaskIsPreemptive(MPTaskID taskID); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPTerminateTask(MPTaskID task, int terminationStatus); - -@Deprecated('No longer supported.') -@ffi.Native() -external int MPThrowException(MPTaskID task, int kind); - -@Deprecated('No longer supported.') -@ffi.Native() -external int MPUnregisterDebugger(MPQueueID queue); - -@Deprecated('Use libDispatch') -@ffi.Native, Duration)>() -external int MPWaitForEvent( - MPEventID event, - ffi.Pointer flags, - int timeout, -); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - MPQueueID, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>, - Duration, - ) ->() -external int MPWaitOnQueue( - MPQueueID queue, - ffi.Pointer> param1, - ffi.Pointer> param2, - ffi.Pointer> param3, - int timeout, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPWaitOnSemaphore(MPSemaphoreID semaphore, int timeout); - -@Deprecated('Use libDispatch') -@ffi.Native() -external void MPYield(); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int MakeVoiceSpec(int creator, int id, ffi.Pointer voice); - -@Deprecated('No longer supported') -@ffi.Native() -external int MaximumProcessorSpeed(); - -@Deprecated('Deprecated') -@ffi.Native() -external int MemError(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void Microseconds(ffi.Pointer microTickCount); - -@Deprecated('No longer supported') -@ffi.Native() -external int MinimumProcessorSpeed(); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Long Function( - Handle, - ffi.Long, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Long, - ) ->() -external int Munger( - Handle h, - int offset, - ffi.Pointer ptr1, - int len1, - ffi.Pointer ptr2, - int len2, -); - -@ffi.Native() -external NDR_record_t NDR_record; - -@ffi.Native>(symbol: 'NSAMPMDesignation') -external ffi.Pointer _NSAMPMDesignation; - -objc.NSString get NSAMPMDesignation => - objc.NSString.fromPointer(_NSAMPMDesignation, retain: true, release: true); - -set NSAMPMDesignation(objc.NSString value) { - objc.NSString.fromPointer( - _NSAMPMDesignation, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAMPMDesignation = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSAllHashTableObjects') -external ffi.Pointer _NSAllHashTableObjects( - ffi.Pointer table, -); - -objc.NSArray NSAllHashTableObjects(NSHashTable table) { - final _$$ref = table.ref; - return objc.NSArray.fromPointer( - _NSAllHashTableObjects(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSAllMapTableKeys') -external ffi.Pointer _NSAllMapTableKeys( - ffi.Pointer table, -); - -objc.NSArray NSAllMapTableKeys(NSMapTable table) { - final _$$ref = table.ref; - return objc.NSArray.fromPointer( - _NSAllMapTableKeys(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSAllMapTableValues') -external ffi.Pointer _NSAllMapTableValues( - ffi.Pointer table, -); - -objc.NSArray NSAllMapTableValues(NSMapTable table) { - final _$$ref = table.ref; - return objc.NSArray.fromPointer( - _NSAllMapTableValues(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native Function(NSUInteger, NSUInteger)>() -external ffi.Pointer NSAllocateCollectable(int size, int options); - -@ffi.Native Function(NSUInteger)>() -external ffi.Pointer NSAllocateMemoryPages(int bytes); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) ->(symbol: 'NSAllocateObject') -external ffi.Pointer _NSAllocateObject( - ffi.Pointer aClass, - int extraBytes, - ffi.Pointer zone, -); - -objc.ObjCObject NSAllocateObject( - objc.ObjCObject aClass, - DartNSUInteger extraBytes, - ffi.Pointer zone, -) { - final _$$ref = aClass.ref; - return objc.ObjCObject( - _NSAllocateObject(_$$ref.pointer, extraBytes, zone), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'NSAlternateDescriptionAttributeName', -) -external NSAttributedStringKey _NSAlternateDescriptionAttributeName; - -DartNSAttributedStringKey get NSAlternateDescriptionAttributeName => - objc.NSString.fromPointer( - _NSAlternateDescriptionAttributeName, - retain: true, - release: true, - ); - -set NSAlternateDescriptionAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSAlternateDescriptionAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAlternateDescriptionAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSAppleEventManagerWillProcessFirstEventNotification', -) -external NSNotificationName -_NSAppleEventManagerWillProcessFirstEventNotification; - -DartNSNotificationName -get NSAppleEventManagerWillProcessFirstEventNotification => - objc.NSString.fromPointer( - _NSAppleEventManagerWillProcessFirstEventNotification, - retain: true, - release: true, - ); - -set NSAppleEventManagerWillProcessFirstEventNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSAppleEventManagerWillProcessFirstEventNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleEventManagerWillProcessFirstEventNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native() -external final double NSAppleEventTimeOutDefault; - -@ffi.Native() -external final double NSAppleEventTimeOutNone; - -@ffi.Native>( - symbol: 'NSAppleScriptErrorAppName', -) -external ffi.Pointer _NSAppleScriptErrorAppName; - -objc.NSString get NSAppleScriptErrorAppName => objc.NSString.fromPointer( - _NSAppleScriptErrorAppName, - retain: true, - release: true, -); - -set NSAppleScriptErrorAppName(objc.NSString value) { - objc.NSString.fromPointer( - _NSAppleScriptErrorAppName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleScriptErrorAppName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSAppleScriptErrorBriefMessage', -) -external ffi.Pointer _NSAppleScriptErrorBriefMessage; - -objc.NSString get NSAppleScriptErrorBriefMessage => objc.NSString.fromPointer( - _NSAppleScriptErrorBriefMessage, - retain: true, - release: true, -); - -set NSAppleScriptErrorBriefMessage(objc.NSString value) { - objc.NSString.fromPointer( - _NSAppleScriptErrorBriefMessage, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleScriptErrorBriefMessage = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSAppleScriptErrorMessage', -) -external ffi.Pointer _NSAppleScriptErrorMessage; - -objc.NSString get NSAppleScriptErrorMessage => objc.NSString.fromPointer( - _NSAppleScriptErrorMessage, - retain: true, - release: true, -); - -set NSAppleScriptErrorMessage(objc.NSString value) { - objc.NSString.fromPointer( - _NSAppleScriptErrorMessage, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleScriptErrorMessage = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSAppleScriptErrorNumber', -) -external ffi.Pointer _NSAppleScriptErrorNumber; - -objc.NSString get NSAppleScriptErrorNumber => objc.NSString.fromPointer( - _NSAppleScriptErrorNumber, - retain: true, - release: true, -); - -set NSAppleScriptErrorNumber(objc.NSString value) { - objc.NSString.fromPointer( - _NSAppleScriptErrorNumber, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleScriptErrorNumber = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSAppleScriptErrorRange') -external ffi.Pointer _NSAppleScriptErrorRange; - -objc.NSString get NSAppleScriptErrorRange => objc.NSString.fromPointer( - _NSAppleScriptErrorRange, - retain: true, - release: true, -); - -set NSAppleScriptErrorRange(objc.NSString value) { - objc.NSString.fromPointer( - _NSAppleScriptErrorRange, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleScriptErrorRange = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSArgumentDomain') -external ffi.Pointer _NSArgumentDomain; - -objc.NSString get NSArgumentDomain => - objc.NSString.fromPointer(_NSArgumentDomain, retain: true, release: true); - -set NSArgumentDomain(objc.NSString value) { - objc.NSString.fromPointer( - _NSArgumentDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSArgumentDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSAssertionHandlerKey') -external ffi.Pointer _NSAssertionHandlerKey; - -objc.NSString get NSAssertionHandlerKey => objc.NSString.fromPointer( - _NSAssertionHandlerKey, - retain: true, - release: true, -); - -set NSAssertionHandlerKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSAssertionHandlerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAssertionHandlerKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSAverageKeyValueOperator') -external NSKeyValueOperator _NSAverageKeyValueOperator; - -DartNSKeyValueOperator get NSAverageKeyValueOperator => - objc.NSString.fromPointer( - _NSAverageKeyValueOperator, - retain: true, - release: true, - ); - -set NSAverageKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSAverageKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAverageKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSBuddhistCalendar') -external ffi.Pointer _NSBuddhistCalendar; - -objc.NSString get NSBuddhistCalendar => - objc.NSString.fromPointer(_NSBuddhistCalendar, retain: true, release: true); - -set NSBuddhistCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSBuddhistCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSBuddhistCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSBundleDidLoadNotification') -external NSNotificationName _NSBundleDidLoadNotification; - -DartNSNotificationName get NSBundleDidLoadNotification => - objc.NSString.fromPointer( - _NSBundleDidLoadNotification, - retain: true, - release: true, - ); - -set NSBundleDidLoadNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSBundleDidLoadNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSBundleDidLoadNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final double NSBundleResourceRequestLoadingPriorityUrgent; - -@ffi.Native( - symbol: 'NSBundleResourceRequestLowDiskSpaceNotification', -) -external NSNotificationName _NSBundleResourceRequestLowDiskSpaceNotification; - -DartNSNotificationName get NSBundleResourceRequestLowDiskSpaceNotification => - objc.NSString.fromPointer( - _NSBundleResourceRequestLowDiskSpaceNotification, - retain: true, - release: true, - ); - -set NSBundleResourceRequestLowDiskSpaceNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSBundleResourceRequestLowDiskSpaceNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSBundleResourceRequestLowDiskSpaceNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarDayChangedNotification') -external NSNotificationName _NSCalendarDayChangedNotification; - -DartNSNotificationName get NSCalendarDayChangedNotification => - objc.NSString.fromPointer( - _NSCalendarDayChangedNotification, - retain: true, - release: true, - ); - -set NSCalendarDayChangedNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSCalendarDayChangedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarDayChangedNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierBangla') -external NSCalendarIdentifier _NSCalendarIdentifierBangla; - -DartNSCalendarIdentifier get NSCalendarIdentifierBangla => - objc.NSString.fromPointer( - _NSCalendarIdentifierBangla, - retain: true, - release: true, - ); - -set NSCalendarIdentifierBangla(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierBangla, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierBangla = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierBuddhist') -external NSCalendarIdentifier _NSCalendarIdentifierBuddhist; - -DartNSCalendarIdentifier get NSCalendarIdentifierBuddhist => - objc.NSString.fromPointer( - _NSCalendarIdentifierBuddhist, - retain: true, - release: true, - ); - -set NSCalendarIdentifierBuddhist(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierBuddhist, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierBuddhist = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierChinese') -external NSCalendarIdentifier _NSCalendarIdentifierChinese; - -DartNSCalendarIdentifier get NSCalendarIdentifierChinese => - objc.NSString.fromPointer( - _NSCalendarIdentifierChinese, - retain: true, - release: true, - ); - -set NSCalendarIdentifierChinese(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierChinese, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierChinese = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierCoptic') -external NSCalendarIdentifier _NSCalendarIdentifierCoptic; - -DartNSCalendarIdentifier get NSCalendarIdentifierCoptic => - objc.NSString.fromPointer( - _NSCalendarIdentifierCoptic, - retain: true, - release: true, - ); - -set NSCalendarIdentifierCoptic(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierCoptic, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierCoptic = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierDangi') -external NSCalendarIdentifier _NSCalendarIdentifierDangi; - -DartNSCalendarIdentifier get NSCalendarIdentifierDangi => - objc.NSString.fromPointer( - _NSCalendarIdentifierDangi, - retain: true, - release: true, - ); - -set NSCalendarIdentifierDangi(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierDangi, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierDangi = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSCalendarIdentifierEthiopicAmeteAlem', -) -external NSCalendarIdentifier _NSCalendarIdentifierEthiopicAmeteAlem; - -DartNSCalendarIdentifier get NSCalendarIdentifierEthiopicAmeteAlem => - objc.NSString.fromPointer( - _NSCalendarIdentifierEthiopicAmeteAlem, - retain: true, - release: true, - ); - -set NSCalendarIdentifierEthiopicAmeteAlem(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierEthiopicAmeteAlem, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierEthiopicAmeteAlem = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSCalendarIdentifierEthiopicAmeteMihret', -) -external NSCalendarIdentifier _NSCalendarIdentifierEthiopicAmeteMihret; - -DartNSCalendarIdentifier get NSCalendarIdentifierEthiopicAmeteMihret => - objc.NSString.fromPointer( - _NSCalendarIdentifierEthiopicAmeteMihret, - retain: true, - release: true, - ); - -set NSCalendarIdentifierEthiopicAmeteMihret(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierEthiopicAmeteMihret, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierEthiopicAmeteMihret = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierGregorian') -external NSCalendarIdentifier _NSCalendarIdentifierGregorian; - -DartNSCalendarIdentifier get NSCalendarIdentifierGregorian => - objc.NSString.fromPointer( - _NSCalendarIdentifierGregorian, - retain: true, - release: true, - ); - -set NSCalendarIdentifierGregorian(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierGregorian, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierGregorian = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierGujarati') -external NSCalendarIdentifier _NSCalendarIdentifierGujarati; - -DartNSCalendarIdentifier get NSCalendarIdentifierGujarati => - objc.NSString.fromPointer( - _NSCalendarIdentifierGujarati, - retain: true, - release: true, - ); - -set NSCalendarIdentifierGujarati(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierGujarati, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierGujarati = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierHebrew') -external NSCalendarIdentifier _NSCalendarIdentifierHebrew; - -DartNSCalendarIdentifier get NSCalendarIdentifierHebrew => - objc.NSString.fromPointer( - _NSCalendarIdentifierHebrew, - retain: true, - release: true, - ); - -set NSCalendarIdentifierHebrew(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierHebrew, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierHebrew = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierISO8601') -external NSCalendarIdentifier _NSCalendarIdentifierISO8601; - -DartNSCalendarIdentifier get NSCalendarIdentifierISO8601 => - objc.NSString.fromPointer( - _NSCalendarIdentifierISO8601, - retain: true, - release: true, - ); - -set NSCalendarIdentifierISO8601(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierISO8601, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierISO8601 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierIndian') -external NSCalendarIdentifier _NSCalendarIdentifierIndian; - -DartNSCalendarIdentifier get NSCalendarIdentifierIndian => - objc.NSString.fromPointer( - _NSCalendarIdentifierIndian, - retain: true, - release: true, - ); - -set NSCalendarIdentifierIndian(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierIndian, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierIndian = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierIslamic') -external NSCalendarIdentifier _NSCalendarIdentifierIslamic; - -DartNSCalendarIdentifier get NSCalendarIdentifierIslamic => - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamic, - retain: true, - release: true, - ); - -set NSCalendarIdentifierIslamic(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamic, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierIslamic = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierIslamicCivil') -external NSCalendarIdentifier _NSCalendarIdentifierIslamicCivil; - -DartNSCalendarIdentifier get NSCalendarIdentifierIslamicCivil => - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicCivil, - retain: true, - release: true, - ); - -set NSCalendarIdentifierIslamicCivil(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicCivil, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierIslamicCivil = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierIslamicTabular') -external NSCalendarIdentifier _NSCalendarIdentifierIslamicTabular; - -DartNSCalendarIdentifier get NSCalendarIdentifierIslamicTabular => - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicTabular, - retain: true, - release: true, - ); - -set NSCalendarIdentifierIslamicTabular(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicTabular, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierIslamicTabular = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSCalendarIdentifierIslamicUmmAlQura', -) -external NSCalendarIdentifier _NSCalendarIdentifierIslamicUmmAlQura; - -DartNSCalendarIdentifier get NSCalendarIdentifierIslamicUmmAlQura => - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicUmmAlQura, - retain: true, - release: true, - ); - -set NSCalendarIdentifierIslamicUmmAlQura(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicUmmAlQura, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierIslamicUmmAlQura = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierJapanese') -external NSCalendarIdentifier _NSCalendarIdentifierJapanese; - -DartNSCalendarIdentifier get NSCalendarIdentifierJapanese => - objc.NSString.fromPointer( - _NSCalendarIdentifierJapanese, - retain: true, - release: true, - ); - -set NSCalendarIdentifierJapanese(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierJapanese, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierJapanese = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierKannada') -external NSCalendarIdentifier _NSCalendarIdentifierKannada; - -DartNSCalendarIdentifier get NSCalendarIdentifierKannada => - objc.NSString.fromPointer( - _NSCalendarIdentifierKannada, - retain: true, - release: true, - ); - -set NSCalendarIdentifierKannada(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierKannada, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierKannada = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierMalayalam') -external NSCalendarIdentifier _NSCalendarIdentifierMalayalam; - -DartNSCalendarIdentifier get NSCalendarIdentifierMalayalam => - objc.NSString.fromPointer( - _NSCalendarIdentifierMalayalam, - retain: true, - release: true, - ); - -set NSCalendarIdentifierMalayalam(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierMalayalam, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierMalayalam = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierMarathi') -external NSCalendarIdentifier _NSCalendarIdentifierMarathi; - -DartNSCalendarIdentifier get NSCalendarIdentifierMarathi => - objc.NSString.fromPointer( - _NSCalendarIdentifierMarathi, - retain: true, - release: true, - ); - -set NSCalendarIdentifierMarathi(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierMarathi, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierMarathi = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierOdia') -external NSCalendarIdentifier _NSCalendarIdentifierOdia; - -DartNSCalendarIdentifier get NSCalendarIdentifierOdia => - objc.NSString.fromPointer( - _NSCalendarIdentifierOdia, - retain: true, - release: true, - ); - -set NSCalendarIdentifierOdia(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierOdia, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierOdia = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierPersian') -external NSCalendarIdentifier _NSCalendarIdentifierPersian; - -DartNSCalendarIdentifier get NSCalendarIdentifierPersian => - objc.NSString.fromPointer( - _NSCalendarIdentifierPersian, - retain: true, - release: true, - ); - -set NSCalendarIdentifierPersian(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierPersian, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierPersian = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierRepublicOfChina') -external NSCalendarIdentifier _NSCalendarIdentifierRepublicOfChina; - -DartNSCalendarIdentifier get NSCalendarIdentifierRepublicOfChina => - objc.NSString.fromPointer( - _NSCalendarIdentifierRepublicOfChina, - retain: true, - release: true, - ); - -set NSCalendarIdentifierRepublicOfChina(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierRepublicOfChina, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierRepublicOfChina = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierTamil') -external NSCalendarIdentifier _NSCalendarIdentifierTamil; - -DartNSCalendarIdentifier get NSCalendarIdentifierTamil => - objc.NSString.fromPointer( - _NSCalendarIdentifierTamil, - retain: true, - release: true, - ); - -set NSCalendarIdentifierTamil(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierTamil, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierTamil = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierTelugu') -external NSCalendarIdentifier _NSCalendarIdentifierTelugu; - -DartNSCalendarIdentifier get NSCalendarIdentifierTelugu => - objc.NSString.fromPointer( - _NSCalendarIdentifierTelugu, - retain: true, - release: true, - ); - -set NSCalendarIdentifierTelugu(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierTelugu, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierTelugu = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierVietnamese') -external NSCalendarIdentifier _NSCalendarIdentifierVietnamese; - -DartNSCalendarIdentifier get NSCalendarIdentifierVietnamese => - objc.NSString.fromPointer( - _NSCalendarIdentifierVietnamese, - retain: true, - release: true, - ); - -set NSCalendarIdentifierVietnamese(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierVietnamese, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierVietnamese = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierVikram') -external NSCalendarIdentifier _NSCalendarIdentifierVikram; - -DartNSCalendarIdentifier get NSCalendarIdentifierVikram => - objc.NSString.fromPointer( - _NSCalendarIdentifierVikram, - retain: true, - release: true, - ); - -set NSCalendarIdentifierVikram(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierVikram, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierVikram = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCharacterConversionException') -external NSExceptionName _NSCharacterConversionException; - -DartNSExceptionName get NSCharacterConversionException => - objc.NSString.fromPointer( - _NSCharacterConversionException, - retain: true, - release: true, - ); - -set NSCharacterConversionException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSCharacterConversionException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCharacterConversionException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSChineseCalendar') -external ffi.Pointer _NSChineseCalendar; - -objc.NSString get NSChineseCalendar => - objc.NSString.fromPointer(_NSChineseCalendar, retain: true, release: true); - -set NSChineseCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSChineseCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSChineseCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSClassDescriptionNeededForClassNotification', -) -external NSNotificationName _NSClassDescriptionNeededForClassNotification; - -DartNSNotificationName get NSClassDescriptionNeededForClassNotification => - objc.NSString.fromPointer( - _NSClassDescriptionNeededForClassNotification, - retain: true, - release: true, - ); - -set NSClassDescriptionNeededForClassNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSClassDescriptionNeededForClassNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSClassDescriptionNeededForClassNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSClassFromString') -external ffi.Pointer _NSClassFromString( - ffi.Pointer aClassName, -); - -objc.ObjCObject? NSClassFromString(objc.NSString aClassName) { - final _$$ref = aClassName.ref; - return _NSClassFromString(_$$ref.pointer).address == 0 - ? null - : objc.ObjCObject( - _NSClassFromString(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSCocoaErrorDomain') -external NSErrorDomain _NSCocoaErrorDomain; - -DartNSErrorDomain get NSCocoaErrorDomain => - objc.NSString.fromPointer(_NSCocoaErrorDomain, retain: true, release: true); - -set NSCocoaErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSCocoaErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCocoaErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSCompareHashTables') -external bool _NSCompareHashTables( - ffi.Pointer table1, - ffi.Pointer table2, -); - -bool NSCompareHashTables(NSHashTable table1, NSHashTable table2) { - final _$$ref = table1.ref; - final _$$ref$1 = table2.ref; - return _NSCompareHashTables(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSCompareMapTables') -external bool _NSCompareMapTables( - ffi.Pointer table1, - ffi.Pointer table2, -); - -bool NSCompareMapTables(NSMapTable table1, NSMapTable table2) { - final _$$ref = table1.ref; - final _$$ref$1 = table2.ref; - return _NSCompareMapTables(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native>( - symbol: 'NSConnectionDidDieNotification', -) -external ffi.Pointer _NSConnectionDidDieNotification; - -objc.NSString get NSConnectionDidDieNotification => objc.NSString.fromPointer( - _NSConnectionDidDieNotification, - retain: true, - release: true, -); - -set NSConnectionDidDieNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSConnectionDidDieNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSConnectionDidDieNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSConnectionDidInitializeNotification', -) -external ffi.Pointer -_NSConnectionDidInitializeNotification; - -objc.NSString get NSConnectionDidInitializeNotification => - objc.NSString.fromPointer( - _NSConnectionDidInitializeNotification, - retain: true, - release: true, - ); - -set NSConnectionDidInitializeNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSConnectionDidInitializeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSConnectionDidInitializeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSConnectionReplyMode') -external ffi.Pointer _NSConnectionReplyMode; - -objc.NSString get NSConnectionReplyMode => objc.NSString.fromPointer( - _NSConnectionReplyMode, - retain: true, - release: true, -); - -set NSConnectionReplyMode(objc.NSString value) { - objc.NSString.fromPointer( - _NSConnectionReplyMode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSConnectionReplyMode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external bool NSContainsRect(NSRect aRect, NSRect bRect); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSCopyHashTableWithZone') -external ffi.Pointer _NSCopyHashTableWithZone( - ffi.Pointer table, - ffi.Pointer zone, -); - -NSHashTable NSCopyHashTableWithZone( - NSHashTable table, - ffi.Pointer zone, -) { - final _$$ref = table.ref; - return NSHashTable.fromPointer( - _NSCopyHashTableWithZone(_$$ref.pointer, zone), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSCopyMapTableWithZone') -external ffi.Pointer _NSCopyMapTableWithZone( - ffi.Pointer table, - ffi.Pointer zone, -); - -NSMapTable NSCopyMapTableWithZone(NSMapTable table, ffi.Pointer zone) { - final _$$ref = table.ref; - return NSMapTable.fromPointer( - _NSCopyMapTableWithZone(_$$ref.pointer, zone), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, NSUInteger) ->() -external void NSCopyMemoryPages( - ffi.Pointer source, - ffi.Pointer dest, - int bytes, -); - -@Deprecated('Not supported') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) ->(symbol: 'NSCopyObject') -external ffi.Pointer _NSCopyObject( - ffi.Pointer object, - int extraBytes, - ffi.Pointer zone, -); - -objc.ObjCObject NSCopyObject( - objc.ObjCObject object, - DartNSUInteger extraBytes, - ffi.Pointer zone, -) { - final _$$ref = object.ref; - return objc.ObjCObject( - _NSCopyObject(_$$ref.pointer, extraBytes, zone), - retain: true, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'NSCountHashTable', -) -external int _NSCountHashTable(ffi.Pointer table); - -DartNSUInteger NSCountHashTable(NSHashTable table) { - final _$$ref = table.ref; - return _NSCountHashTable(_$$ref.pointer); -} - -@ffi.Native(symbol: 'NSCountKeyValueOperator') -external NSKeyValueOperator _NSCountKeyValueOperator; - -DartNSKeyValueOperator get NSCountKeyValueOperator => objc.NSString.fromPointer( - _NSCountKeyValueOperator, - retain: true, - release: true, -); - -set NSCountKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSCountKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCountKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSCountMapTable', -) -external int _NSCountMapTable(ffi.Pointer table); - -DartNSUInteger NSCountMapTable(NSMapTable table) { - final _$$ref = table.ref; - return _NSCountMapTable(_$$ref.pointer); -} - -@ffi.Native< - ffi.Pointer Function(NSHashTableCallBacks, NSUInteger) ->(symbol: 'NSCreateHashTable') -external ffi.Pointer _NSCreateHashTable( - NSHashTableCallBacks callBacks, - int capacity, -); - -NSHashTable NSCreateHashTable( - NSHashTableCallBacks callBacks, - DartNSUInteger capacity, -) { - return NSHashTable.fromPointer( - _NSCreateHashTable(callBacks, capacity), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - NSHashTableCallBacks, - NSUInteger, - ffi.Pointer, - ) ->(symbol: 'NSCreateHashTableWithZone') -external ffi.Pointer _NSCreateHashTableWithZone( - NSHashTableCallBacks callBacks, - int capacity, - ffi.Pointer zone, -); - -NSHashTable NSCreateHashTableWithZone( - NSHashTableCallBacks callBacks, - DartNSUInteger capacity, - ffi.Pointer zone, -) { - return NSHashTable.fromPointer( - _NSCreateHashTableWithZone(callBacks, capacity, zone), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - NSMapTableKeyCallBacks, - NSMapTableValueCallBacks, - NSUInteger, - ) ->(symbol: 'NSCreateMapTable') -external ffi.Pointer _NSCreateMapTable( - NSMapTableKeyCallBacks keyCallBacks, - NSMapTableValueCallBacks valueCallBacks, - int capacity, -); - -NSMapTable NSCreateMapTable( - NSMapTableKeyCallBacks keyCallBacks, - NSMapTableValueCallBacks valueCallBacks, - DartNSUInteger capacity, -) { - return NSMapTable.fromPointer( - _NSCreateMapTable(keyCallBacks, valueCallBacks, capacity), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - NSMapTableKeyCallBacks, - NSMapTableValueCallBacks, - NSUInteger, - ffi.Pointer, - ) ->(symbol: 'NSCreateMapTableWithZone') -external ffi.Pointer _NSCreateMapTableWithZone( - NSMapTableKeyCallBacks keyCallBacks, - NSMapTableValueCallBacks valueCallBacks, - int capacity, - ffi.Pointer zone, -); - -NSMapTable NSCreateMapTableWithZone( - NSMapTableKeyCallBacks keyCallBacks, - NSMapTableValueCallBacks valueCallBacks, - DartNSUInteger capacity, - ffi.Pointer zone, -) { - return NSMapTable.fromPointer( - _NSCreateMapTableWithZone(keyCallBacks, valueCallBacks, capacity, zone), - retain: false, - release: true, - ); -} - -@ffi.Native Function(NSUInteger, NSUInteger, ffi.Bool)>() -external ffi.Pointer NSCreateZone( - int startSize, - int granularity, - bool canFree, -); - -@ffi.Native>(symbol: 'NSCurrencySymbol') -external ffi.Pointer _NSCurrencySymbol; - -objc.NSString get NSCurrencySymbol => - objc.NSString.fromPointer(_NSCurrencySymbol, retain: true, release: true); - -set NSCurrencySymbol(objc.NSString value) { - objc.NSString.fromPointer( - _NSCurrencySymbol, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCurrencySymbol = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCurrentLocaleDidChangeNotification') -external NSNotificationName _NSCurrentLocaleDidChangeNotification; - -DartNSNotificationName get NSCurrentLocaleDidChangeNotification => - objc.NSString.fromPointer( - _NSCurrentLocaleDidChangeNotification, - retain: true, - release: true, - ); - -set NSCurrentLocaleDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSCurrentLocaleDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCurrentLocaleDidChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSDateFormatString') -external ffi.Pointer _NSDateFormatString; - -objc.NSString get NSDateFormatString => - objc.NSString.fromPointer(_NSDateFormatString, retain: true, release: true); - -set NSDateFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSDateFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDateFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSDateTimeOrdering') -external ffi.Pointer _NSDateTimeOrdering; - -objc.NSString get NSDateTimeOrdering => - objc.NSString.fromPointer(_NSDateTimeOrdering, retain: true, release: true); - -set NSDateTimeOrdering(objc.NSString value) { - objc.NSString.fromPointer( - _NSDateTimeOrdering, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDateTimeOrdering = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native, NSUInteger)>() -external void NSDeallocateMemoryPages(ffi.Pointer ptr, int bytes); - -@ffi.Native)>( - symbol: 'NSDeallocateObject', -) -external void _NSDeallocateObject(ffi.Pointer object); - -void NSDeallocateObject(objc.ObjCObject object) { - final _$$ref = object.ref; - return _NSDeallocateObject(_$$ref.pointer); -} - -@ffi.Native(symbol: 'NSDebugDescriptionErrorKey') -external NSErrorUserInfoKey _NSDebugDescriptionErrorKey; - -DartNSErrorUserInfoKey get NSDebugDescriptionErrorKey => - objc.NSString.fromPointer( - _NSDebugDescriptionErrorKey, - retain: true, - release: true, - ); - -set NSDebugDescriptionErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSDebugDescriptionErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDebugDescriptionErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->(symbol: 'NSDecimalAdd') -external int _NSDecimalAdd( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - int roundingMode, -); - -NSCalculationError NSDecimalAdd( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalAdd(result, leftOperand, rightOperand, roundingMode.value), - ); -} - -@ffi.Native)>() -external void NSDecimalCompact(ffi.Pointer number); - -@ffi.Native, ffi.Pointer)>( - symbol: 'NSDecimalCompare', -) -external int _NSDecimalCompare( - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, -); - -objc.NSComparisonResult NSDecimalCompare( - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, -) { - return objc.NSComparisonResult.fromValue( - _NSDecimalCompare(leftOperand, rightOperand), - ); -} - -@ffi.Native, ffi.Pointer)>() -external void NSDecimalCopy( - ffi.Pointer destination, - ffi.Pointer source, -); - -@ffi.Native>(symbol: 'NSDecimalDigits') -external ffi.Pointer _NSDecimalDigits; - -objc.NSString get NSDecimalDigits => - objc.NSString.fromPointer(_NSDecimalDigits, retain: true, release: true); - -set NSDecimalDigits(objc.NSString value) { - objc.NSString.fromPointer( - _NSDecimalDigits, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalDigits = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->(symbol: 'NSDecimalDivide') -external int _NSDecimalDivide( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - int roundingMode, -); - -NSCalculationError NSDecimalDivide( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalDivide(result, leftOperand, rightOperand, roundingMode.value), - ); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->(symbol: 'NSDecimalMultiply') -external int _NSDecimalMultiply( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - int roundingMode, -); - -NSCalculationError NSDecimalMultiply( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalMultiply(result, leftOperand, rightOperand, roundingMode.value), - ); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Short, - NSUInteger, - ) ->(symbol: 'NSDecimalMultiplyByPowerOf10') -external int _NSDecimalMultiplyByPowerOf10( - ffi.Pointer result, - ffi.Pointer number, - int power, - int roundingMode, -); - -NSCalculationError NSDecimalMultiplyByPowerOf10( - ffi.Pointer result, - ffi.Pointer number, - int power, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalMultiplyByPowerOf10(result, number, power, roundingMode.value), - ); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->(symbol: 'NSDecimalNormalize') -external int _NSDecimalNormalize( - ffi.Pointer number1, - ffi.Pointer number2, - int roundingMode, -); - -NSCalculationError NSDecimalNormalize( - ffi.Pointer number1, - ffi.Pointer number2, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalNormalize(number1, number2, roundingMode.value), - ); -} - -@ffi.Native(symbol: 'NSDecimalNumberDivideByZeroException') -external NSExceptionName _NSDecimalNumberDivideByZeroException; - -DartNSExceptionName get NSDecimalNumberDivideByZeroException => - objc.NSString.fromPointer( - _NSDecimalNumberDivideByZeroException, - retain: true, - release: true, - ); - -set NSDecimalNumberDivideByZeroException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSDecimalNumberDivideByZeroException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalNumberDivideByZeroException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDecimalNumberExactnessException') -external NSExceptionName _NSDecimalNumberExactnessException; - -DartNSExceptionName get NSDecimalNumberExactnessException => - objc.NSString.fromPointer( - _NSDecimalNumberExactnessException, - retain: true, - release: true, - ); - -set NSDecimalNumberExactnessException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSDecimalNumberExactnessException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalNumberExactnessException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDecimalNumberOverflowException') -external NSExceptionName _NSDecimalNumberOverflowException; - -DartNSExceptionName get NSDecimalNumberOverflowException => - objc.NSString.fromPointer( - _NSDecimalNumberOverflowException, - retain: true, - release: true, - ); - -set NSDecimalNumberOverflowException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSDecimalNumberOverflowException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalNumberOverflowException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDecimalNumberUnderflowException') -external NSExceptionName _NSDecimalNumberUnderflowException; - -DartNSExceptionName get NSDecimalNumberUnderflowException => - objc.NSString.fromPointer( - _NSDecimalNumberUnderflowException, - retain: true, - release: true, - ); - -set NSDecimalNumberUnderflowException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSDecimalNumberUnderflowException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalNumberUnderflowException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSUInteger, - ) ->(symbol: 'NSDecimalPower') -external int _NSDecimalPower( - ffi.Pointer result, - ffi.Pointer number, - int power, - int roundingMode, -); - -NSCalculationError NSDecimalPower( - ffi.Pointer result, - ffi.Pointer number, - DartNSUInteger power, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalPower(result, number, power, roundingMode.value), - ); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - NSUInteger, - ) ->(symbol: 'NSDecimalRound') -external void _NSDecimalRound( - ffi.Pointer result, - ffi.Pointer number, - int scale, - int roundingMode, -); - -void NSDecimalRound( - ffi.Pointer result, - ffi.Pointer number, - DartNSInteger scale, - NSRoundingMode roundingMode, -) { - return _NSDecimalRound(result, number, scale, roundingMode.value); -} - -@ffi.Native>(symbol: 'NSDecimalSeparator') -external ffi.Pointer _NSDecimalSeparator; - -objc.NSString get NSDecimalSeparator => - objc.NSString.fromPointer(_NSDecimalSeparator, retain: true, release: true); - -set NSDecimalSeparator(objc.NSString value) { - objc.NSString.fromPointer( - _NSDecimalSeparator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalSeparator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSDecimalString') -external ffi.Pointer _NSDecimalString( - ffi.Pointer dcm, - ffi.Pointer locale, -); - -objc.NSString NSDecimalString( - ffi.Pointer dcm, - objc.ObjCObject? locale, -) { - final _$$ref = locale?.ref; - return objc.NSString.fromPointer( - _NSDecimalString(dcm, _$$ref?.pointer ?? ffi.nullptr), - retain: true, - release: true, - ); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->(symbol: 'NSDecimalSubtract') -external int _NSDecimalSubtract( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - int roundingMode, -); - -NSCalculationError NSDecimalSubtract( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalSubtract(result, leftOperand, rightOperand, roundingMode.value), - ); -} - -@ffi.Native)>( - symbol: 'NSDecrementExtraRefCountWasZero', -) -external bool _NSDecrementExtraRefCountWasZero( - ffi.Pointer object, -); - -bool NSDecrementExtraRefCountWasZero(objc.ObjCObject object) { - final _$$ref = object.ref; - return _NSDecrementExtraRefCountWasZero(_$$ref.pointer); -} - -@ffi.Native Function()>() -external ffi.Pointer NSDefaultMallocZone(); - -@ffi.Native(symbol: 'NSDefaultRunLoopMode') -external NSRunLoopMode _NSDefaultRunLoopMode; - -DartNSRunLoopMode get NSDefaultRunLoopMode => objc.NSString.fromPointer( - _NSDefaultRunLoopMode, - retain: true, - release: true, -); - -set NSDefaultRunLoopMode(DartNSRunLoopMode value) { - objc.NSString.fromPointer( - _NSDefaultRunLoopMode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDefaultRunLoopMode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDestinationInvalidException') -external NSExceptionName _NSDestinationInvalidException; - -DartNSExceptionName get NSDestinationInvalidException => - objc.NSString.fromPointer( - _NSDestinationInvalidException, - retain: true, - release: true, - ); - -set NSDestinationInvalidException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSDestinationInvalidException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDestinationInvalidException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDidBecomeSingleThreadedNotification') -external NSNotificationName _NSDidBecomeSingleThreadedNotification; - -DartNSNotificationName get NSDidBecomeSingleThreadedNotification => - objc.NSString.fromPointer( - _NSDidBecomeSingleThreadedNotification, - retain: true, - release: true, - ); - -set NSDidBecomeSingleThreadedNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSDidBecomeSingleThreadedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDidBecomeSingleThreadedNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSDistinctUnionOfArraysKeyValueOperator', -) -external NSKeyValueOperator _NSDistinctUnionOfArraysKeyValueOperator; - -DartNSKeyValueOperator get NSDistinctUnionOfArraysKeyValueOperator => - objc.NSString.fromPointer( - _NSDistinctUnionOfArraysKeyValueOperator, - retain: true, - release: true, - ); - -set NSDistinctUnionOfArraysKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSDistinctUnionOfArraysKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDistinctUnionOfArraysKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSDistinctUnionOfObjectsKeyValueOperator', -) -external NSKeyValueOperator _NSDistinctUnionOfObjectsKeyValueOperator; - -DartNSKeyValueOperator get NSDistinctUnionOfObjectsKeyValueOperator => - objc.NSString.fromPointer( - _NSDistinctUnionOfObjectsKeyValueOperator, - retain: true, - release: true, - ); - -set NSDistinctUnionOfObjectsKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSDistinctUnionOfObjectsKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDistinctUnionOfObjectsKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDistinctUnionOfSetsKeyValueOperator') -external NSKeyValueOperator _NSDistinctUnionOfSetsKeyValueOperator; - -DartNSKeyValueOperator get NSDistinctUnionOfSetsKeyValueOperator => - objc.NSString.fromPointer( - _NSDistinctUnionOfSetsKeyValueOperator, - retain: true, - release: true, - ); - -set NSDistinctUnionOfSetsKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSDistinctUnionOfSetsKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDistinctUnionOfSetsKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Void Function( - NSRect, - ffi.Pointer, - ffi.Pointer, - CGFloat, - NSUInteger, - ) ->(symbol: 'NSDivideRect') -external void _NSDivideRect( - NSRect inRect, - ffi.Pointer slice, - ffi.Pointer rem, - double amount, - int edge, -); - -void NSDivideRect( - NSRect inRect, - ffi.Pointer slice, - ffi.Pointer rem, - DartCGFloat amount, - NSRectEdge edge, -) { - return _NSDivideRect(inRect, slice, rem, amount, edge.value); -} - -@ffi.Native>( - symbol: 'NSEarlierTimeDesignations', -) -external ffi.Pointer _NSEarlierTimeDesignations; - -objc.NSString get NSEarlierTimeDesignations => objc.NSString.fromPointer( - _NSEarlierTimeDesignations, - retain: true, - release: true, -); - -set NSEarlierTimeDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSEarlierTimeDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSEarlierTimeDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external bool NSEdgeInsetsEqual( - objc.NSEdgeInsets aInsets, - objc.NSEdgeInsets bInsets, -); - -@ffi.Native() -external final objc.NSEdgeInsets NSEdgeInsetsZero; - -@ffi.Native)>() -external void NSEndHashTableEnumeration( - ffi.Pointer enumerator, -); - -@ffi.Native)>() -external void NSEndMapTableEnumeration(ffi.Pointer enumerator); - -@ffi.Native)>( - symbol: 'NSEnumerateHashTable', -) -external NSHashEnumerator _NSEnumerateHashTable( - ffi.Pointer table, -); - -NSHashEnumerator NSEnumerateHashTable(NSHashTable table) { - final _$$ref = table.ref; - return _NSEnumerateHashTable(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'NSEnumerateMapTable', -) -external NSMapEnumerator _NSEnumerateMapTable( - ffi.Pointer table, -); - -NSMapEnumerator NSEnumerateMapTable(NSMapTable table) { - final _$$ref = table.ref; - return _NSEnumerateMapTable(_$$ref.pointer); -} - -@ffi.Native() -external bool NSEqualPoints(NSPoint aPoint, NSPoint bPoint); - -@ffi.Native() -external bool NSEqualRects(NSRect aRect, NSRect bRect); - -@ffi.Native() -external bool NSEqualSizes(NSSize aSize, NSSize bSize); - -@ffi.Native>( - symbol: 'NSErrorFailingURLStringKey', -) -external ffi.Pointer _NSErrorFailingURLStringKey; - -objc.NSString get NSErrorFailingURLStringKey => objc.NSString.fromPointer( - _NSErrorFailingURLStringKey, - retain: true, - release: true, -); - -set NSErrorFailingURLStringKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSErrorFailingURLStringKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSErrorFailingURLStringKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionHostDidBecomeActiveNotification', -) -external ffi.Pointer -_NSExtensionHostDidBecomeActiveNotification; - -objc.NSString get NSExtensionHostDidBecomeActiveNotification => - objc.NSString.fromPointer( - _NSExtensionHostDidBecomeActiveNotification, - retain: true, - release: true, - ); - -set NSExtensionHostDidBecomeActiveNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionHostDidBecomeActiveNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionHostDidBecomeActiveNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionHostDidEnterBackgroundNotification', -) -external ffi.Pointer -_NSExtensionHostDidEnterBackgroundNotification; - -objc.NSString get NSExtensionHostDidEnterBackgroundNotification => - objc.NSString.fromPointer( - _NSExtensionHostDidEnterBackgroundNotification, - retain: true, - release: true, - ); - -set NSExtensionHostDidEnterBackgroundNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionHostDidEnterBackgroundNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionHostDidEnterBackgroundNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionHostWillEnterForegroundNotification', -) -external ffi.Pointer -_NSExtensionHostWillEnterForegroundNotification; - -objc.NSString get NSExtensionHostWillEnterForegroundNotification => - objc.NSString.fromPointer( - _NSExtensionHostWillEnterForegroundNotification, - retain: true, - release: true, - ); - -set NSExtensionHostWillEnterForegroundNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionHostWillEnterForegroundNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionHostWillEnterForegroundNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionHostWillResignActiveNotification', -) -external ffi.Pointer -_NSExtensionHostWillResignActiveNotification; - -objc.NSString get NSExtensionHostWillResignActiveNotification => - objc.NSString.fromPointer( - _NSExtensionHostWillResignActiveNotification, - retain: true, - release: true, - ); - -set NSExtensionHostWillResignActiveNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionHostWillResignActiveNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionHostWillResignActiveNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionItemAttachmentsKey', -) -external ffi.Pointer _NSExtensionItemAttachmentsKey; - -objc.NSString get NSExtensionItemAttachmentsKey => objc.NSString.fromPointer( - _NSExtensionItemAttachmentsKey, - retain: true, - release: true, -); - -set NSExtensionItemAttachmentsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionItemAttachmentsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionItemAttachmentsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionItemAttributedContentTextKey', -) -external ffi.Pointer -_NSExtensionItemAttributedContentTextKey; - -objc.NSString get NSExtensionItemAttributedContentTextKey => - objc.NSString.fromPointer( - _NSExtensionItemAttributedContentTextKey, - retain: true, - release: true, - ); - -set NSExtensionItemAttributedContentTextKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionItemAttributedContentTextKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionItemAttributedContentTextKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionItemAttributedTitleKey', -) -external ffi.Pointer _NSExtensionItemAttributedTitleKey; - -objc.NSString get NSExtensionItemAttributedTitleKey => - objc.NSString.fromPointer( - _NSExtensionItemAttributedTitleKey, - retain: true, - release: true, - ); - -set NSExtensionItemAttributedTitleKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionItemAttributedTitleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionItemAttributedTitleKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionItemsAndErrorsKey', -) -external ffi.Pointer _NSExtensionItemsAndErrorsKey; - -objc.NSString get NSExtensionItemsAndErrorsKey => objc.NSString.fromPointer( - _NSExtensionItemsAndErrorsKey, - retain: true, - release: true, -); - -set NSExtensionItemsAndErrorsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionItemsAndErrorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionItemsAndErrorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionJavaScriptFinalizeArgumentKey', -) -external ffi.Pointer -_NSExtensionJavaScriptFinalizeArgumentKey; - -objc.NSString get NSExtensionJavaScriptFinalizeArgumentKey => - objc.NSString.fromPointer( - _NSExtensionJavaScriptFinalizeArgumentKey, - retain: true, - release: true, - ); - -set NSExtensionJavaScriptFinalizeArgumentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionJavaScriptFinalizeArgumentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionJavaScriptFinalizeArgumentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionJavaScriptPreprocessingResultsKey', -) -external ffi.Pointer -_NSExtensionJavaScriptPreprocessingResultsKey; - -objc.NSString get NSExtensionJavaScriptPreprocessingResultsKey => - objc.NSString.fromPointer( - _NSExtensionJavaScriptPreprocessingResultsKey, - retain: true, - release: true, - ); - -set NSExtensionJavaScriptPreprocessingResultsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionJavaScriptPreprocessingResultsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionJavaScriptPreprocessingResultsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSExtraRefCount', -) -external int _NSExtraRefCount(ffi.Pointer object); - -DartNSUInteger NSExtraRefCount(objc.ObjCObject object) { - final _$$ref = object.ref; - return _NSExtraRefCount(_$$ref.pointer); -} - -@ffi.Native>( - symbol: 'NSFTPPropertyActiveTransferModeKey', -) -external final ffi.Pointer -_NSFTPPropertyActiveTransferModeKey; - -objc.NSString get NSFTPPropertyActiveTransferModeKey => - objc.NSString.fromPointer( - _NSFTPPropertyActiveTransferModeKey, - retain: true, - release: true, - ); - -@ffi.Native>(symbol: 'NSFTPPropertyFTPProxy') -external final ffi.Pointer _NSFTPPropertyFTPProxy; - -objc.NSString get NSFTPPropertyFTPProxy => objc.NSString.fromPointer( - _NSFTPPropertyFTPProxy, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSFTPPropertyFileOffsetKey', -) -external final ffi.Pointer _NSFTPPropertyFileOffsetKey; - -objc.NSString get NSFTPPropertyFileOffsetKey => objc.NSString.fromPointer( - _NSFTPPropertyFileOffsetKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSFTPPropertyUserLoginKey', -) -external final ffi.Pointer _NSFTPPropertyUserLoginKey; - -objc.NSString get NSFTPPropertyUserLoginKey => objc.NSString.fromPointer( - _NSFTPPropertyUserLoginKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSFTPPropertyUserPasswordKey', -) -external final ffi.Pointer _NSFTPPropertyUserPasswordKey; - -objc.NSString get NSFTPPropertyUserPasswordKey => objc.NSString.fromPointer( - _NSFTPPropertyUserPasswordKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSFailedAuthenticationException', -) -external ffi.Pointer _NSFailedAuthenticationException; - -objc.NSString get NSFailedAuthenticationException => objc.NSString.fromPointer( - _NSFailedAuthenticationException, - retain: true, - release: true, -); - -set NSFailedAuthenticationException(objc.NSString value) { - objc.NSString.fromPointer( - _NSFailedAuthenticationException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFailedAuthenticationException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileAppendOnly') -external NSFileAttributeKey _NSFileAppendOnly; - -DartNSFileAttributeKey get NSFileAppendOnly => - objc.NSString.fromPointer(_NSFileAppendOnly, retain: true, release: true); - -set NSFileAppendOnly(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileAppendOnly, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileAppendOnly = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileBusy') -external NSFileAttributeKey _NSFileBusy; - -DartNSFileAttributeKey get NSFileBusy => - objc.NSString.fromPointer(_NSFileBusy, retain: true, release: true); - -set NSFileBusy(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileBusy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileBusy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileCreationDate') -external NSFileAttributeKey _NSFileCreationDate; - -DartNSFileAttributeKey get NSFileCreationDate => - objc.NSString.fromPointer(_NSFileCreationDate, retain: true, release: true); - -set NSFileCreationDate(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileCreationDate, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileCreationDate = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileDeviceIdentifier') -external NSFileAttributeKey _NSFileDeviceIdentifier; - -DartNSFileAttributeKey get NSFileDeviceIdentifier => objc.NSString.fromPointer( - _NSFileDeviceIdentifier, - retain: true, - release: true, -); - -set NSFileDeviceIdentifier(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileDeviceIdentifier, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileDeviceIdentifier = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileExtensionHidden') -external NSFileAttributeKey _NSFileExtensionHidden; - -DartNSFileAttributeKey get NSFileExtensionHidden => objc.NSString.fromPointer( - _NSFileExtensionHidden, - retain: true, - release: true, -); - -set NSFileExtensionHidden(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileExtensionHidden, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileExtensionHidden = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileGroupOwnerAccountID') -external NSFileAttributeKey _NSFileGroupOwnerAccountID; - -DartNSFileAttributeKey get NSFileGroupOwnerAccountID => - objc.NSString.fromPointer( - _NSFileGroupOwnerAccountID, - retain: true, - release: true, - ); - -set NSFileGroupOwnerAccountID(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileGroupOwnerAccountID, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileGroupOwnerAccountID = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileGroupOwnerAccountName') -external NSFileAttributeKey _NSFileGroupOwnerAccountName; - -DartNSFileAttributeKey get NSFileGroupOwnerAccountName => - objc.NSString.fromPointer( - _NSFileGroupOwnerAccountName, - retain: true, - release: true, - ); - -set NSFileGroupOwnerAccountName(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileGroupOwnerAccountName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileGroupOwnerAccountName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileHFSCreatorCode') -external NSFileAttributeKey _NSFileHFSCreatorCode; - -DartNSFileAttributeKey get NSFileHFSCreatorCode => objc.NSString.fromPointer( - _NSFileHFSCreatorCode, - retain: true, - release: true, -); - -set NSFileHFSCreatorCode(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileHFSCreatorCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHFSCreatorCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileHFSTypeCode') -external NSFileAttributeKey _NSFileHFSTypeCode; - -DartNSFileAttributeKey get NSFileHFSTypeCode => - objc.NSString.fromPointer(_NSFileHFSTypeCode, retain: true, release: true); - -set NSFileHFSTypeCode(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileHFSTypeCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHFSTypeCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSFileHandleConnectionAcceptedNotification', -) -external NSNotificationName _NSFileHandleConnectionAcceptedNotification; - -DartNSNotificationName get NSFileHandleConnectionAcceptedNotification => - objc.NSString.fromPointer( - _NSFileHandleConnectionAcceptedNotification, - retain: true, - release: true, - ); - -set NSFileHandleConnectionAcceptedNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSFileHandleConnectionAcceptedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleConnectionAcceptedNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileHandleDataAvailableNotification') -external NSNotificationName _NSFileHandleDataAvailableNotification; - -DartNSNotificationName get NSFileHandleDataAvailableNotification => - objc.NSString.fromPointer( - _NSFileHandleDataAvailableNotification, - retain: true, - release: true, - ); - -set NSFileHandleDataAvailableNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSFileHandleDataAvailableNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleDataAvailableNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSFileHandleNotificationDataItem', -) -external ffi.Pointer _NSFileHandleNotificationDataItem; - -objc.NSString get NSFileHandleNotificationDataItem => objc.NSString.fromPointer( - _NSFileHandleNotificationDataItem, - retain: true, - release: true, -); - -set NSFileHandleNotificationDataItem(objc.NSString value) { - objc.NSString.fromPointer( - _NSFileHandleNotificationDataItem, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleNotificationDataItem = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSFileHandleNotificationFileHandleItem', -) -external ffi.Pointer -_NSFileHandleNotificationFileHandleItem; - -objc.NSString get NSFileHandleNotificationFileHandleItem => - objc.NSString.fromPointer( - _NSFileHandleNotificationFileHandleItem, - retain: true, - release: true, - ); - -set NSFileHandleNotificationFileHandleItem(objc.NSString value) { - objc.NSString.fromPointer( - _NSFileHandleNotificationFileHandleItem, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleNotificationFileHandleItem = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSFileHandleNotificationMonitorModes', -) -external ffi.Pointer _NSFileHandleNotificationMonitorModes; - -objc.NSString get NSFileHandleNotificationMonitorModes => - objc.NSString.fromPointer( - _NSFileHandleNotificationMonitorModes, - retain: true, - release: true, - ); - -set NSFileHandleNotificationMonitorModes(objc.NSString value) { - objc.NSString.fromPointer( - _NSFileHandleNotificationMonitorModes, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleNotificationMonitorModes = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileHandleOperationException') -external NSExceptionName _NSFileHandleOperationException; - -DartNSExceptionName get NSFileHandleOperationException => - objc.NSString.fromPointer( - _NSFileHandleOperationException, - retain: true, - release: true, - ); - -set NSFileHandleOperationException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSFileHandleOperationException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleOperationException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSFileHandleReadCompletionNotification', -) -external NSNotificationName _NSFileHandleReadCompletionNotification; - -DartNSNotificationName get NSFileHandleReadCompletionNotification => - objc.NSString.fromPointer( - _NSFileHandleReadCompletionNotification, - retain: true, - release: true, - ); - -set NSFileHandleReadCompletionNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSFileHandleReadCompletionNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleReadCompletionNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSFileHandleReadToEndOfFileCompletionNotification', -) -external NSNotificationName _NSFileHandleReadToEndOfFileCompletionNotification; - -DartNSNotificationName get NSFileHandleReadToEndOfFileCompletionNotification => - objc.NSString.fromPointer( - _NSFileHandleReadToEndOfFileCompletionNotification, - retain: true, - release: true, - ); - -set NSFileHandleReadToEndOfFileCompletionNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSFileHandleReadToEndOfFileCompletionNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleReadToEndOfFileCompletionNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileImmutable') -external NSFileAttributeKey _NSFileImmutable; - -DartNSFileAttributeKey get NSFileImmutable => - objc.NSString.fromPointer(_NSFileImmutable, retain: true, release: true); - -set NSFileImmutable(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileImmutable, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileImmutable = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSFileManagerUnmountDissentingProcessIdentifierErrorKey', -) -external ffi.Pointer -_NSFileManagerUnmountDissentingProcessIdentifierErrorKey; - -objc.NSString get NSFileManagerUnmountDissentingProcessIdentifierErrorKey => - objc.NSString.fromPointer( - _NSFileManagerUnmountDissentingProcessIdentifierErrorKey, - retain: true, - release: true, - ); - -set NSFileManagerUnmountDissentingProcessIdentifierErrorKey( - objc.NSString value, -) { - objc.NSString.fromPointer( - _NSFileManagerUnmountDissentingProcessIdentifierErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileManagerUnmountDissentingProcessIdentifierErrorKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileModificationDate') -external NSFileAttributeKey _NSFileModificationDate; - -DartNSFileAttributeKey get NSFileModificationDate => objc.NSString.fromPointer( - _NSFileModificationDate, - retain: true, - release: true, -); - -set NSFileModificationDate(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileModificationDate, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileModificationDate = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileOwnerAccountID') -external NSFileAttributeKey _NSFileOwnerAccountID; - -DartNSFileAttributeKey get NSFileOwnerAccountID => objc.NSString.fromPointer( - _NSFileOwnerAccountID, - retain: true, - release: true, -); - -set NSFileOwnerAccountID(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileOwnerAccountID, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileOwnerAccountID = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileOwnerAccountName') -external NSFileAttributeKey _NSFileOwnerAccountName; - -DartNSFileAttributeKey get NSFileOwnerAccountName => objc.NSString.fromPointer( - _NSFileOwnerAccountName, - retain: true, - release: true, -); - -set NSFileOwnerAccountName(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileOwnerAccountName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileOwnerAccountName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFilePathErrorKey') -external NSErrorUserInfoKey _NSFilePathErrorKey; - -DartNSErrorUserInfoKey get NSFilePathErrorKey => - objc.NSString.fromPointer(_NSFilePathErrorKey, retain: true, release: true); - -set NSFilePathErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSFilePathErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFilePathErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFilePosixPermissions') -external NSFileAttributeKey _NSFilePosixPermissions; - -DartNSFileAttributeKey get NSFilePosixPermissions => objc.NSString.fromPointer( - _NSFilePosixPermissions, - retain: true, - release: true, -); - -set NSFilePosixPermissions(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFilePosixPermissions, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFilePosixPermissions = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileProtectionComplete') -external NSFileProtectionType _NSFileProtectionComplete; - -DartNSFileProtectionType get NSFileProtectionComplete => - objc.NSString.fromPointer( - _NSFileProtectionComplete, - retain: true, - release: true, - ); - -set NSFileProtectionComplete(DartNSFileProtectionType value) { - objc.NSString.fromPointer( - _NSFileProtectionComplete, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionComplete = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileProtectionCompleteUnlessOpen') -external NSFileProtectionType _NSFileProtectionCompleteUnlessOpen; - -DartNSFileProtectionType get NSFileProtectionCompleteUnlessOpen => - objc.NSString.fromPointer( - _NSFileProtectionCompleteUnlessOpen, - retain: true, - release: true, - ); - -set NSFileProtectionCompleteUnlessOpen(DartNSFileProtectionType value) { - objc.NSString.fromPointer( - _NSFileProtectionCompleteUnlessOpen, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionCompleteUnlessOpen = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSFileProtectionCompleteUntilFirstUserAuthentication', -) -external NSFileProtectionType -_NSFileProtectionCompleteUntilFirstUserAuthentication; - -DartNSFileProtectionType -get NSFileProtectionCompleteUntilFirstUserAuthentication => - objc.NSString.fromPointer( - _NSFileProtectionCompleteUntilFirstUserAuthentication, - retain: true, - release: true, - ); - -set NSFileProtectionCompleteUntilFirstUserAuthentication( - DartNSFileProtectionType value, -) { - objc.NSString.fromPointer( - _NSFileProtectionCompleteUntilFirstUserAuthentication, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionCompleteUntilFirstUserAuthentication = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSFileProtectionCompleteWhenUserInactive', -) -external NSFileProtectionType _NSFileProtectionCompleteWhenUserInactive; - -DartNSFileProtectionType get NSFileProtectionCompleteWhenUserInactive => - objc.NSString.fromPointer( - _NSFileProtectionCompleteWhenUserInactive, - retain: true, - release: true, - ); - -set NSFileProtectionCompleteWhenUserInactive(DartNSFileProtectionType value) { - objc.NSString.fromPointer( - _NSFileProtectionCompleteWhenUserInactive, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionCompleteWhenUserInactive = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileProtectionKey') -external NSFileAttributeKey _NSFileProtectionKey; - -DartNSFileAttributeKey get NSFileProtectionKey => objc.NSString.fromPointer( - _NSFileProtectionKey, - retain: true, - release: true, -); - -set NSFileProtectionKey(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileProtectionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileProtectionNone') -external NSFileProtectionType _NSFileProtectionNone; - -DartNSFileProtectionType get NSFileProtectionNone => objc.NSString.fromPointer( - _NSFileProtectionNone, - retain: true, - release: true, -); - -set NSFileProtectionNone(DartNSFileProtectionType value) { - objc.NSString.fromPointer( - _NSFileProtectionNone, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionNone = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileReferenceCount') -external NSFileAttributeKey _NSFileReferenceCount; - -DartNSFileAttributeKey get NSFileReferenceCount => objc.NSString.fromPointer( - _NSFileReferenceCount, - retain: true, - release: true, -); - -set NSFileReferenceCount(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileReferenceCount, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileReferenceCount = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSize') -external NSFileAttributeKey _NSFileSize; - -DartNSFileAttributeKey get NSFileSize => - objc.NSString.fromPointer(_NSFileSize, retain: true, release: true); - -set NSFileSize(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSize, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSize = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemFileNumber') -external NSFileAttributeKey _NSFileSystemFileNumber; - -DartNSFileAttributeKey get NSFileSystemFileNumber => objc.NSString.fromPointer( - _NSFileSystemFileNumber, - retain: true, - release: true, -); - -set NSFileSystemFileNumber(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemFileNumber, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemFileNumber = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemFreeNodes') -external NSFileAttributeKey _NSFileSystemFreeNodes; - -DartNSFileAttributeKey get NSFileSystemFreeNodes => objc.NSString.fromPointer( - _NSFileSystemFreeNodes, - retain: true, - release: true, -); - -set NSFileSystemFreeNodes(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemFreeNodes, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemFreeNodes = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemFreeSize') -external NSFileAttributeKey _NSFileSystemFreeSize; - -DartNSFileAttributeKey get NSFileSystemFreeSize => objc.NSString.fromPointer( - _NSFileSystemFreeSize, - retain: true, - release: true, -); - -set NSFileSystemFreeSize(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemFreeSize, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemFreeSize = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemNodes') -external NSFileAttributeKey _NSFileSystemNodes; - -DartNSFileAttributeKey get NSFileSystemNodes => - objc.NSString.fromPointer(_NSFileSystemNodes, retain: true, release: true); - -set NSFileSystemNodes(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemNodes, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemNodes = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemNumber') -external NSFileAttributeKey _NSFileSystemNumber; - -DartNSFileAttributeKey get NSFileSystemNumber => - objc.NSString.fromPointer(_NSFileSystemNumber, retain: true, release: true); - -set NSFileSystemNumber(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemNumber, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemNumber = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemSize') -external NSFileAttributeKey _NSFileSystemSize; - -DartNSFileAttributeKey get NSFileSystemSize => - objc.NSString.fromPointer(_NSFileSystemSize, retain: true, release: true); - -set NSFileSystemSize(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemSize, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemSize = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileType') -external NSFileAttributeKey _NSFileType; - -DartNSFileAttributeKey get NSFileType => - objc.NSString.fromPointer(_NSFileType, retain: true, release: true); - -set NSFileType(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileType, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileType = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeBlockSpecial') -external NSFileAttributeType _NSFileTypeBlockSpecial; - -DartNSFileAttributeType get NSFileTypeBlockSpecial => objc.NSString.fromPointer( - _NSFileTypeBlockSpecial, - retain: true, - release: true, -); - -set NSFileTypeBlockSpecial(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeBlockSpecial, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeBlockSpecial = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeCharacterSpecial') -external NSFileAttributeType _NSFileTypeCharacterSpecial; - -DartNSFileAttributeType get NSFileTypeCharacterSpecial => - objc.NSString.fromPointer( - _NSFileTypeCharacterSpecial, - retain: true, - release: true, - ); - -set NSFileTypeCharacterSpecial(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeCharacterSpecial, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeCharacterSpecial = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeDirectory') -external NSFileAttributeType _NSFileTypeDirectory; - -DartNSFileAttributeType get NSFileTypeDirectory => objc.NSString.fromPointer( - _NSFileTypeDirectory, - retain: true, - release: true, -); - -set NSFileTypeDirectory(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeDirectory, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeDirectory = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native Function(OSType)>( - symbol: 'NSFileTypeForHFSTypeCode', -) -external ffi.Pointer _NSFileTypeForHFSTypeCode( - int hfsFileTypeCode, -); - -objc.NSString NSFileTypeForHFSTypeCode(DartUInt32 hfsFileTypeCode) { - return objc.NSString.fromPointer( - _NSFileTypeForHFSTypeCode(hfsFileTypeCode), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSFileTypeRegular') -external NSFileAttributeType _NSFileTypeRegular; - -DartNSFileAttributeType get NSFileTypeRegular => - objc.NSString.fromPointer(_NSFileTypeRegular, retain: true, release: true); - -set NSFileTypeRegular(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeRegular, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeRegular = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeSocket') -external NSFileAttributeType _NSFileTypeSocket; - -DartNSFileAttributeType get NSFileTypeSocket => - objc.NSString.fromPointer(_NSFileTypeSocket, retain: true, release: true); - -set NSFileTypeSocket(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeSocket, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeSocket = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeSymbolicLink') -external NSFileAttributeType _NSFileTypeSymbolicLink; - -DartNSFileAttributeType get NSFileTypeSymbolicLink => objc.NSString.fromPointer( - _NSFileTypeSymbolicLink, - retain: true, - release: true, -); - -set NSFileTypeSymbolicLink(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeSymbolicLink, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeSymbolicLink = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeUnknown') -external NSFileAttributeType _NSFileTypeUnknown; - -DartNSFileAttributeType get NSFileTypeUnknown => - objc.NSString.fromPointer(_NSFileTypeUnknown, retain: true, release: true); - -set NSFileTypeUnknown(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeUnknown, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeUnknown = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external double NSFoundationVersionNumber; - -@ffi.Native)>( - symbol: 'NSFreeHashTable', -) -external void _NSFreeHashTable(ffi.Pointer table); - -void NSFreeHashTable(NSHashTable table) { - final _$$ref = table.ref; - return _NSFreeHashTable(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'NSFreeMapTable', -) -external void _NSFreeMapTable(ffi.Pointer table); - -void NSFreeMapTable(NSMapTable table) { - final _$$ref = table.ref; - return _NSFreeMapTable(_$$ref.retainAndReturnPointer()); -} - -@ffi.Native Function()>( - symbol: 'NSFullUserName', -) -external ffi.Pointer _NSFullUserName(); - -objc.NSString NSFullUserName() { - return objc.NSString.fromPointer( - _NSFullUserName(), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSGenericException') -external NSExceptionName _NSGenericException; - -DartNSExceptionName get NSGenericException => - objc.NSString.fromPointer(_NSGenericException, retain: true, release: true); - -set NSGenericException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSGenericException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGenericException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer NSGetSizeAndAlignment( - ffi.Pointer typePtr$1, - ffi.Pointer sizep, - ffi.Pointer alignp, -); - -@ffi.Native Function()>() -external ffi.Pointer -NSGetUncaughtExceptionHandler(); - -@ffi.Native>(symbol: 'NSGlobalDomain') -external ffi.Pointer _NSGlobalDomain; - -objc.NSString get NSGlobalDomain => - objc.NSString.fromPointer(_NSGlobalDomain, retain: true, release: true); - -set NSGlobalDomain(objc.NSString value) { - objc.NSString.fromPointer( - _NSGlobalDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGlobalDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSGrammarCorrections') -external ffi.Pointer _NSGrammarCorrections; - -objc.NSString get NSGrammarCorrections => objc.NSString.fromPointer( - _NSGrammarCorrections, - retain: true, - release: true, -); - -set NSGrammarCorrections(objc.NSString value) { - objc.NSString.fromPointer( - _NSGrammarCorrections, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGrammarCorrections = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSGrammarRange') -external ffi.Pointer _NSGrammarRange; - -objc.NSString get NSGrammarRange => - objc.NSString.fromPointer(_NSGrammarRange, retain: true, release: true); - -set NSGrammarRange(objc.NSString value) { - objc.NSString.fromPointer( - _NSGrammarRange, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGrammarRange = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSGrammarUserDescription', -) -external ffi.Pointer _NSGrammarUserDescription; - -objc.NSString get NSGrammarUserDescription => objc.NSString.fromPointer( - _NSGrammarUserDescription, - retain: true, - release: true, -); - -set NSGrammarUserDescription(objc.NSString value) { - objc.NSString.fromPointer( - _NSGrammarUserDescription, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGrammarUserDescription = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSGregorianCalendar') -external ffi.Pointer _NSGregorianCalendar; - -objc.NSString get NSGregorianCalendar => objc.NSString.fromPointer( - _NSGregorianCalendar, - retain: true, - release: true, -); - -set NSGregorianCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSGregorianCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGregorianCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSHFSTypeCodeFromFileType', -) -external int _NSHFSTypeCodeFromFileType( - ffi.Pointer fileTypeString, -); - -DartUInt32 NSHFSTypeCodeFromFileType(objc.NSString fileTypeString) { - final _$$ref = fileTypeString.ref; - return _NSHFSTypeCodeFromFileType(_$$ref.pointer); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSHFSTypeOfFile') -external ffi.Pointer _NSHFSTypeOfFile( - ffi.Pointer fullFilePath, -); - -objc.NSString NSHFSTypeOfFile(objc.NSString fullFilePath) { - final _$$ref = fullFilePath.ref; - return objc.NSString.fromPointer( - _NSHFSTypeOfFile(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSHTTPCookieComment') -external NSHTTPCookiePropertyKey _NSHTTPCookieComment; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieComment => - objc.NSString.fromPointer( - _NSHTTPCookieComment, - retain: true, - release: true, - ); - -set NSHTTPCookieComment(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieComment, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieComment = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieCommentURL') -external NSHTTPCookiePropertyKey _NSHTTPCookieCommentURL; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieCommentURL => - objc.NSString.fromPointer( - _NSHTTPCookieCommentURL, - retain: true, - release: true, - ); - -set NSHTTPCookieCommentURL(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieCommentURL, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieCommentURL = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieDiscard') -external NSHTTPCookiePropertyKey _NSHTTPCookieDiscard; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieDiscard => - objc.NSString.fromPointer( - _NSHTTPCookieDiscard, - retain: true, - release: true, - ); - -set NSHTTPCookieDiscard(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieDiscard, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieDiscard = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieDomain') -external NSHTTPCookiePropertyKey _NSHTTPCookieDomain; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieDomain => - objc.NSString.fromPointer(_NSHTTPCookieDomain, retain: true, release: true); - -set NSHTTPCookieDomain(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieExpires') -external NSHTTPCookiePropertyKey _NSHTTPCookieExpires; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieExpires => - objc.NSString.fromPointer( - _NSHTTPCookieExpires, - retain: true, - release: true, - ); - -set NSHTTPCookieExpires(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieExpires, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieExpires = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSHTTPCookieManagerAcceptPolicyChangedNotification', -) -external NSNotificationName _NSHTTPCookieManagerAcceptPolicyChangedNotification; - -DartNSNotificationName get NSHTTPCookieManagerAcceptPolicyChangedNotification => - objc.NSString.fromPointer( - _NSHTTPCookieManagerAcceptPolicyChangedNotification, - retain: true, - release: true, - ); - -set NSHTTPCookieManagerAcceptPolicyChangedNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSHTTPCookieManagerAcceptPolicyChangedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieManagerAcceptPolicyChangedNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSHTTPCookieManagerCookiesChangedNotification', -) -external NSNotificationName _NSHTTPCookieManagerCookiesChangedNotification; - -DartNSNotificationName get NSHTTPCookieManagerCookiesChangedNotification => - objc.NSString.fromPointer( - _NSHTTPCookieManagerCookiesChangedNotification, - retain: true, - release: true, - ); - -set NSHTTPCookieManagerCookiesChangedNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSHTTPCookieManagerCookiesChangedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieManagerCookiesChangedNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieMaximumAge') -external NSHTTPCookiePropertyKey _NSHTTPCookieMaximumAge; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieMaximumAge => - objc.NSString.fromPointer( - _NSHTTPCookieMaximumAge, - retain: true, - release: true, - ); - -set NSHTTPCookieMaximumAge(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieMaximumAge, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieMaximumAge = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieName') -external NSHTTPCookiePropertyKey _NSHTTPCookieName; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieName => - objc.NSString.fromPointer(_NSHTTPCookieName, retain: true, release: true); - -set NSHTTPCookieName(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieOriginURL') -external NSHTTPCookiePropertyKey _NSHTTPCookieOriginURL; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieOriginURL => - objc.NSString.fromPointer( - _NSHTTPCookieOriginURL, - retain: true, - release: true, - ); - -set NSHTTPCookieOriginURL(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieOriginURL, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieOriginURL = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookiePath') -external NSHTTPCookiePropertyKey _NSHTTPCookiePath; - -DartNSHTTPCookiePropertyKey get NSHTTPCookiePath => - objc.NSString.fromPointer(_NSHTTPCookiePath, retain: true, release: true); - -set NSHTTPCookiePath(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookiePath, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookiePath = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookiePort') -external NSHTTPCookiePropertyKey _NSHTTPCookiePort; - -DartNSHTTPCookiePropertyKey get NSHTTPCookiePort => - objc.NSString.fromPointer(_NSHTTPCookiePort, retain: true, release: true); - -set NSHTTPCookiePort(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookiePort, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookiePort = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieSameSiteLax') -external NSHTTPCookieStringPolicy _NSHTTPCookieSameSiteLax; - -DartNSHTTPCookieStringPolicy get NSHTTPCookieSameSiteLax => - objc.NSString.fromPointer( - _NSHTTPCookieSameSiteLax, - retain: true, - release: true, - ); - -set NSHTTPCookieSameSiteLax(DartNSHTTPCookieStringPolicy value) { - objc.NSString.fromPointer( - _NSHTTPCookieSameSiteLax, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieSameSiteLax = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieSameSitePolicy') -external NSHTTPCookiePropertyKey _NSHTTPCookieSameSitePolicy; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieSameSitePolicy => - objc.NSString.fromPointer( - _NSHTTPCookieSameSitePolicy, - retain: true, - release: true, - ); - -set NSHTTPCookieSameSitePolicy(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieSameSitePolicy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieSameSitePolicy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieSameSiteStrict') -external NSHTTPCookieStringPolicy _NSHTTPCookieSameSiteStrict; - -DartNSHTTPCookieStringPolicy get NSHTTPCookieSameSiteStrict => - objc.NSString.fromPointer( - _NSHTTPCookieSameSiteStrict, - retain: true, - release: true, - ); - -set NSHTTPCookieSameSiteStrict(DartNSHTTPCookieStringPolicy value) { - objc.NSString.fromPointer( - _NSHTTPCookieSameSiteStrict, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieSameSiteStrict = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieSecure') -external NSHTTPCookiePropertyKey _NSHTTPCookieSecure; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieSecure => - objc.NSString.fromPointer(_NSHTTPCookieSecure, retain: true, release: true); - -set NSHTTPCookieSecure(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieSecure, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieSecure = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieSetByJavaScript') -external NSHTTPCookiePropertyKey _NSHTTPCookieSetByJavaScript; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieSetByJavaScript => - objc.NSString.fromPointer( - _NSHTTPCookieSetByJavaScript, - retain: true, - release: true, - ); - -set NSHTTPCookieSetByJavaScript(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieSetByJavaScript, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieSetByJavaScript = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieValue') -external NSHTTPCookiePropertyKey _NSHTTPCookieValue; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieValue => - objc.NSString.fromPointer(_NSHTTPCookieValue, retain: true, release: true); - -set NSHTTPCookieValue(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieValue, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieValue = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieVersion') -external NSHTTPCookiePropertyKey _NSHTTPCookieVersion; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieVersion => - objc.NSString.fromPointer( - _NSHTTPCookieVersion, - retain: true, - release: true, - ); - -set NSHTTPCookieVersion(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieVersion, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieVersion = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSHTTPPropertyErrorPageDataKey', -) -external final ffi.Pointer _NSHTTPPropertyErrorPageDataKey; - -objc.NSString get NSHTTPPropertyErrorPageDataKey => objc.NSString.fromPointer( - _NSHTTPPropertyErrorPageDataKey, - retain: true, - release: true, -); - -@ffi.Native>(symbol: 'NSHTTPPropertyHTTPProxy') -external final ffi.Pointer _NSHTTPPropertyHTTPProxy; - -objc.NSString get NSHTTPPropertyHTTPProxy => objc.NSString.fromPointer( - _NSHTTPPropertyHTTPProxy, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSHTTPPropertyRedirectionHeadersKey', -) -external final ffi.Pointer -_NSHTTPPropertyRedirectionHeadersKey; - -objc.NSString get NSHTTPPropertyRedirectionHeadersKey => - objc.NSString.fromPointer( - _NSHTTPPropertyRedirectionHeadersKey, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'NSHTTPPropertyServerHTTPVersionKey', -) -external final ffi.Pointer -_NSHTTPPropertyServerHTTPVersionKey; - -objc.NSString get NSHTTPPropertyServerHTTPVersionKey => - objc.NSString.fromPointer( - _NSHTTPPropertyServerHTTPVersionKey, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'NSHTTPPropertyStatusCodeKey', -) -external final ffi.Pointer _NSHTTPPropertyStatusCodeKey; - -objc.NSString get NSHTTPPropertyStatusCodeKey => objc.NSString.fromPointer( - _NSHTTPPropertyStatusCodeKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSHTTPPropertyStatusReasonKey', -) -external final ffi.Pointer _NSHTTPPropertyStatusReasonKey; - -objc.NSString get NSHTTPPropertyStatusReasonKey => objc.NSString.fromPointer( - _NSHTTPPropertyStatusReasonKey, - retain: true, - release: true, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSHashGet') -external ffi.Pointer _NSHashGet( - ffi.Pointer table, - ffi.Pointer pointer, -); - -ffi.Pointer NSHashGet( - NSHashTable table, - ffi.Pointer pointer, -) { - final _$$ref = table.ref; - return _NSHashGet(_$$ref.pointer, pointer); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSHashInsert') -external void _NSHashInsert( - ffi.Pointer table, - ffi.Pointer pointer, -); - -void NSHashInsert(NSHashTable table, ffi.Pointer pointer) { - final _$$ref = table.ref; - return _NSHashInsert(_$$ref.pointer, pointer); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSHashInsertIfAbsent') -external ffi.Pointer _NSHashInsertIfAbsent( - ffi.Pointer table, - ffi.Pointer pointer, -); - -ffi.Pointer NSHashInsertIfAbsent( - NSHashTable table, - ffi.Pointer pointer, -) { - final _$$ref = table.ref; - return _NSHashInsertIfAbsent(_$$ref.pointer, pointer); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSHashInsertKnownAbsent') -external void _NSHashInsertKnownAbsent( - ffi.Pointer table, - ffi.Pointer pointer, -); - -void NSHashInsertKnownAbsent(NSHashTable table, ffi.Pointer pointer) { - final _$$ref = table.ref; - return _NSHashInsertKnownAbsent(_$$ref.pointer, pointer); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSHashRemove') -external void _NSHashRemove( - ffi.Pointer table, - ffi.Pointer pointer, -); - -void NSHashRemove(NSHashTable table, ffi.Pointer pointer) { - final _$$ref = table.ref; - return _NSHashRemove(_$$ref.pointer, pointer); -} - -@ffi.Native>(symbol: 'NSHebrewCalendar') -external ffi.Pointer _NSHebrewCalendar; - -objc.NSString get NSHebrewCalendar => - objc.NSString.fromPointer(_NSHebrewCalendar, retain: true, release: true); - -set NSHebrewCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSHebrewCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHebrewCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHelpAnchorErrorKey') -external NSErrorUserInfoKey _NSHelpAnchorErrorKey; - -DartNSErrorUserInfoKey get NSHelpAnchorErrorKey => objc.NSString.fromPointer( - _NSHelpAnchorErrorKey, - retain: true, - release: true, -); - -set NSHelpAnchorErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSHelpAnchorErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHelpAnchorErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native Function()>( - symbol: 'NSHomeDirectory', -) -external ffi.Pointer _NSHomeDirectory(); - -objc.NSString NSHomeDirectory() { - return objc.NSString.fromPointer( - _NSHomeDirectory(), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSHomeDirectoryForUser') -external ffi.Pointer _NSHomeDirectoryForUser( - ffi.Pointer userName, -); - -objc.NSString? NSHomeDirectoryForUser(objc.NSString? userName) { - final _$$ref = userName?.ref; - return _NSHomeDirectoryForUser(_$$ref?.pointer ?? ffi.nullptr).address == 0 - ? null - : objc.NSString.fromPointer( - _NSHomeDirectoryForUser(_$$ref?.pointer ?? ffi.nullptr), - retain: true, - release: true, - ); -} - -@ffi.Native>(symbol: 'NSHourNameDesignations') -external ffi.Pointer _NSHourNameDesignations; - -objc.NSString get NSHourNameDesignations => objc.NSString.fromPointer( - _NSHourNameDesignations, - retain: true, - release: true, -); - -set NSHourNameDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSHourNameDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHourNameDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSISO8601Calendar') -external ffi.Pointer _NSISO8601Calendar; - -objc.NSString get NSISO8601Calendar => - objc.NSString.fromPointer(_NSISO8601Calendar, retain: true, release: true); - -set NSISO8601Calendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSISO8601Calendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSISO8601Calendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSImageURLAttributeName') -external NSAttributedStringKey _NSImageURLAttributeName; - -DartNSAttributedStringKey get NSImageURLAttributeName => - objc.NSString.fromPointer( - _NSImageURLAttributeName, - retain: true, - release: true, - ); - -set NSImageURLAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSImageURLAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSImageURLAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInconsistentArchiveException') -external NSExceptionName _NSInconsistentArchiveException; - -DartNSExceptionName get NSInconsistentArchiveException => - objc.NSString.fromPointer( - _NSInconsistentArchiveException, - retain: true, - release: true, - ); - -set NSInconsistentArchiveException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInconsistentArchiveException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInconsistentArchiveException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSIncrementExtraRefCount', -) -external void _NSIncrementExtraRefCount( - ffi.Pointer object, -); - -void NSIncrementExtraRefCount(objc.ObjCObject object) { - final _$$ref = object.ref; - return _NSIncrementExtraRefCount(_$$ref.pointer); -} - -@ffi.Native>(symbol: 'NSIndianCalendar') -external ffi.Pointer _NSIndianCalendar; - -objc.NSString get NSIndianCalendar => - objc.NSString.fromPointer(_NSIndianCalendar, retain: true, release: true); - -set NSIndianCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSIndianCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSIndianCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInflectionAgreementArgumentAttributeName', -) -external NSAttributedStringKey _NSInflectionAgreementArgumentAttributeName; - -DartNSAttributedStringKey get NSInflectionAgreementArgumentAttributeName => - objc.NSString.fromPointer( - _NSInflectionAgreementArgumentAttributeName, - retain: true, - release: true, - ); - -set NSInflectionAgreementArgumentAttributeName( - DartNSAttributedStringKey value, -) { - objc.NSString.fromPointer( - _NSInflectionAgreementArgumentAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionAgreementArgumentAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInflectionAgreementConceptAttributeName', -) -external NSAttributedStringKey _NSInflectionAgreementConceptAttributeName; - -DartNSAttributedStringKey get NSInflectionAgreementConceptAttributeName => - objc.NSString.fromPointer( - _NSInflectionAgreementConceptAttributeName, - retain: true, - release: true, - ); - -set NSInflectionAgreementConceptAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSInflectionAgreementConceptAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionAgreementConceptAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInflectionAlternativeAttributeName', -) -external NSAttributedStringKey _NSInflectionAlternativeAttributeName; - -DartNSAttributedStringKey get NSInflectionAlternativeAttributeName => - objc.NSString.fromPointer( - _NSInflectionAlternativeAttributeName, - retain: true, - release: true, - ); - -set NSInflectionAlternativeAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSInflectionAlternativeAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionAlternativeAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInflectionConceptsKey', -) -external NSAttributedStringFormattingContextKey _NSInflectionConceptsKey; - -DartNSAttributedStringFormattingContextKey get NSInflectionConceptsKey => - objc.NSString.fromPointer( - _NSInflectionConceptsKey, - retain: true, - release: true, - ); - -set NSInflectionConceptsKey(DartNSAttributedStringFormattingContextKey value) { - objc.NSString.fromPointer( - _NSInflectionConceptsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionConceptsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInflectionReferentConceptAttributeName', -) -external NSAttributedStringKey _NSInflectionReferentConceptAttributeName; - -DartNSAttributedStringKey get NSInflectionReferentConceptAttributeName => - objc.NSString.fromPointer( - _NSInflectionReferentConceptAttributeName, - retain: true, - release: true, - ); - -set NSInflectionReferentConceptAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSInflectionReferentConceptAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionReferentConceptAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInflectionRuleAttributeName') -external NSAttributedStringKey _NSInflectionRuleAttributeName; - -DartNSAttributedStringKey get NSInflectionRuleAttributeName => - objc.NSString.fromPointer( - _NSInflectionRuleAttributeName, - retain: true, - release: true, - ); - -set NSInflectionRuleAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSInflectionRuleAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionRuleAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInlinePresentationIntentAttributeName', -) -external NSAttributedStringKey _NSInlinePresentationIntentAttributeName; - -DartNSAttributedStringKey get NSInlinePresentationIntentAttributeName => - objc.NSString.fromPointer( - _NSInlinePresentationIntentAttributeName, - retain: true, - release: true, - ); - -set NSInlinePresentationIntentAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSInlinePresentationIntentAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInlinePresentationIntentAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external NSRect NSInsetRect(NSRect aRect, double dX, double dY); - -@ffi.Native() -external final NSHashTableCallBacks NSIntHashCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSIntMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSIntMapValueCallBacks; - -@ffi.Native() -external final NSHashTableCallBacks NSIntegerHashCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSIntegerMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSIntegerMapValueCallBacks; - -@ffi.Native() -external NSRect NSIntegralRect(NSRect aRect); - -@ffi.Native() -external NSRect NSIntegralRectWithOptions(NSRect aRect, int opts); - -@ffi.Native(symbol: 'NSInternalInconsistencyException') -external NSExceptionName _NSInternalInconsistencyException; - -DartNSExceptionName get NSInternalInconsistencyException => - objc.NSString.fromPointer( - _NSInternalInconsistencyException, - retain: true, - release: true, - ); - -set NSInternalInconsistencyException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInternalInconsistencyException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInternalInconsistencyException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSInternationalCurrencyString', -) -external ffi.Pointer _NSInternationalCurrencyString; - -objc.NSString get NSInternationalCurrencyString => objc.NSString.fromPointer( - _NSInternationalCurrencyString, - retain: true, - release: true, -); - -set NSInternationalCurrencyString(objc.NSString value) { - objc.NSString.fromPointer( - _NSInternationalCurrencyString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInternationalCurrencyString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external NSRange NSIntersectionRange(NSRange range1, NSRange range2); - -@ffi.Native() -external NSRect NSIntersectionRect(NSRect aRect, NSRect bRect); - -@ffi.Native() -external bool NSIntersectsRect(NSRect aRect, NSRect bRect); - -@ffi.Native(symbol: 'NSInvalidArchiveOperationException') -external NSExceptionName _NSInvalidArchiveOperationException; - -DartNSExceptionName get NSInvalidArchiveOperationException => - objc.NSString.fromPointer( - _NSInvalidArchiveOperationException, - retain: true, - release: true, - ); - -set NSInvalidArchiveOperationException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvalidArchiveOperationException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvalidArchiveOperationException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvalidArgumentException') -external NSExceptionName _NSInvalidArgumentException; - -DartNSExceptionName get NSInvalidArgumentException => objc.NSString.fromPointer( - _NSInvalidArgumentException, - retain: true, - release: true, -); - -set NSInvalidArgumentException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvalidArgumentException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvalidArgumentException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvalidReceivePortException') -external NSExceptionName _NSInvalidReceivePortException; - -DartNSExceptionName get NSInvalidReceivePortException => - objc.NSString.fromPointer( - _NSInvalidReceivePortException, - retain: true, - release: true, - ); - -set NSInvalidReceivePortException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvalidReceivePortException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvalidReceivePortException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvalidSendPortException') -external NSExceptionName _NSInvalidSendPortException; - -DartNSExceptionName get NSInvalidSendPortException => objc.NSString.fromPointer( - _NSInvalidSendPortException, - retain: true, - release: true, -); - -set NSInvalidSendPortException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvalidSendPortException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvalidSendPortException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvalidUnarchiveOperationException') -external NSExceptionName _NSInvalidUnarchiveOperationException; - -DartNSExceptionName get NSInvalidUnarchiveOperationException => - objc.NSString.fromPointer( - _NSInvalidUnarchiveOperationException, - retain: true, - release: true, - ); - -set NSInvalidUnarchiveOperationException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvalidUnarchiveOperationException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvalidUnarchiveOperationException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvocationOperationCancelledException') -external NSExceptionName _NSInvocationOperationCancelledException; - -DartNSExceptionName get NSInvocationOperationCancelledException => - objc.NSString.fromPointer( - _NSInvocationOperationCancelledException, - retain: true, - release: true, - ); - -set NSInvocationOperationCancelledException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvocationOperationCancelledException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvocationOperationCancelledException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvocationOperationVoidResultException') -external NSExceptionName _NSInvocationOperationVoidResultException; - -DartNSExceptionName get NSInvocationOperationVoidResultException => - objc.NSString.fromPointer( - _NSInvocationOperationVoidResultException, - retain: true, - release: true, - ); - -set NSInvocationOperationVoidResultException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvocationOperationVoidResultException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvocationOperationVoidResultException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external bool NSIsEmptyRect(NSRect aRect); - -@ffi.Native(symbol: 'NSIsNilTransformerName') -external NSValueTransformerName _NSIsNilTransformerName; - -DartNSValueTransformerName get NSIsNilTransformerName => - objc.NSString.fromPointer( - _NSIsNilTransformerName, - retain: true, - release: true, - ); - -set NSIsNilTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSIsNilTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSIsNilTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSIsNotNilTransformerName') -external NSValueTransformerName _NSIsNotNilTransformerName; - -DartNSValueTransformerName get NSIsNotNilTransformerName => - objc.NSString.fromPointer( - _NSIsNotNilTransformerName, - retain: true, - release: true, - ); - -set NSIsNotNilTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSIsNotNilTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSIsNotNilTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSIslamicCalendar') -external ffi.Pointer _NSIslamicCalendar; - -objc.NSString get NSIslamicCalendar => - objc.NSString.fromPointer(_NSIslamicCalendar, retain: true, release: true); - -set NSIslamicCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSIslamicCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSIslamicCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSIslamicCivilCalendar') -external ffi.Pointer _NSIslamicCivilCalendar; - -objc.NSString get NSIslamicCivilCalendar => objc.NSString.fromPointer( - _NSIslamicCivilCalendar, - retain: true, - release: true, -); - -set NSIslamicCivilCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSIslamicCivilCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSIslamicCivilCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSItemProviderErrorDomain', -) -external ffi.Pointer _NSItemProviderErrorDomain; - -objc.NSString get NSItemProviderErrorDomain => objc.NSString.fromPointer( - _NSItemProviderErrorDomain, - retain: true, - release: true, -); - -set NSItemProviderErrorDomain(objc.NSString value) { - objc.NSString.fromPointer( - _NSItemProviderErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSItemProviderErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSItemProviderPreferredImageSizeKey', -) -external ffi.Pointer _NSItemProviderPreferredImageSizeKey; - -objc.NSString get NSItemProviderPreferredImageSizeKey => - objc.NSString.fromPointer( - _NSItemProviderPreferredImageSizeKey, - retain: true, - release: true, - ); - -set NSItemProviderPreferredImageSizeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSItemProviderPreferredImageSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSItemProviderPreferredImageSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSJapaneseCalendar') -external ffi.Pointer _NSJapaneseCalendar; - -objc.NSString get NSJapaneseCalendar => - objc.NSString.fromPointer(_NSJapaneseCalendar, retain: true, release: true); - -set NSJapaneseCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSJapaneseCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSJapaneseCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSKeyValueChangeIndexesKey') -external NSKeyValueChangeKey _NSKeyValueChangeIndexesKey; - -DartNSKeyValueChangeKey get NSKeyValueChangeIndexesKey => - objc.NSString.fromPointer( - _NSKeyValueChangeIndexesKey, - retain: true, - release: true, - ); - -set NSKeyValueChangeIndexesKey(DartNSKeyValueChangeKey value) { - objc.NSString.fromPointer( - _NSKeyValueChangeIndexesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyValueChangeIndexesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSKeyValueChangeKindKey') -external NSKeyValueChangeKey _NSKeyValueChangeKindKey; - -DartNSKeyValueChangeKey get NSKeyValueChangeKindKey => - objc.NSString.fromPointer( - _NSKeyValueChangeKindKey, - retain: true, - release: true, - ); - -set NSKeyValueChangeKindKey(DartNSKeyValueChangeKey value) { - objc.NSString.fromPointer( - _NSKeyValueChangeKindKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyValueChangeKindKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSKeyValueChangeNewKey') -external NSKeyValueChangeKey _NSKeyValueChangeNewKey; - -DartNSKeyValueChangeKey get NSKeyValueChangeNewKey => objc.NSString.fromPointer( - _NSKeyValueChangeNewKey, - retain: true, - release: true, -); - -set NSKeyValueChangeNewKey(DartNSKeyValueChangeKey value) { - objc.NSString.fromPointer( - _NSKeyValueChangeNewKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyValueChangeNewKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSKeyValueChangeNotificationIsPriorKey', -) -external NSKeyValueChangeKey _NSKeyValueChangeNotificationIsPriorKey; - -DartNSKeyValueChangeKey get NSKeyValueChangeNotificationIsPriorKey => - objc.NSString.fromPointer( - _NSKeyValueChangeNotificationIsPriorKey, - retain: true, - release: true, - ); - -set NSKeyValueChangeNotificationIsPriorKey(DartNSKeyValueChangeKey value) { - objc.NSString.fromPointer( - _NSKeyValueChangeNotificationIsPriorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyValueChangeNotificationIsPriorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSKeyValueChangeOldKey') -external NSKeyValueChangeKey _NSKeyValueChangeOldKey; - -DartNSKeyValueChangeKey get NSKeyValueChangeOldKey => objc.NSString.fromPointer( - _NSKeyValueChangeOldKey, - retain: true, - release: true, -); - -set NSKeyValueChangeOldKey(DartNSKeyValueChangeKey value) { - objc.NSString.fromPointer( - _NSKeyValueChangeOldKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyValueChangeOldKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSKeyedArchiveRootObjectKey', -) -external ffi.Pointer _NSKeyedArchiveRootObjectKey; - -objc.NSString get NSKeyedArchiveRootObjectKey => objc.NSString.fromPointer( - _NSKeyedArchiveRootObjectKey, - retain: true, - release: true, -); - -set NSKeyedArchiveRootObjectKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSKeyedArchiveRootObjectKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyedArchiveRootObjectKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSKeyedUnarchiveFromDataTransformerName', -) -external NSValueTransformerName _NSKeyedUnarchiveFromDataTransformerName; - -DartNSValueTransformerName get NSKeyedUnarchiveFromDataTransformerName => - objc.NSString.fromPointer( - _NSKeyedUnarchiveFromDataTransformerName, - retain: true, - release: true, - ); - -set NSKeyedUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSKeyedUnarchiveFromDataTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyedUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLanguageIdentifierAttributeName') -external NSAttributedStringKey _NSLanguageIdentifierAttributeName; - -DartNSAttributedStringKey get NSLanguageIdentifierAttributeName => - objc.NSString.fromPointer( - _NSLanguageIdentifierAttributeName, - retain: true, - release: true, - ); - -set NSLanguageIdentifierAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSLanguageIdentifierAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLanguageIdentifierAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSLaterTimeDesignations') -external ffi.Pointer _NSLaterTimeDesignations; - -objc.NSString get NSLaterTimeDesignations => objc.NSString.fromPointer( - _NSLaterTimeDesignations, - retain: true, - release: true, -); - -set NSLaterTimeDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSLaterTimeDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLaterTimeDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagAdjective') -external NSLinguisticTag _NSLinguisticTagAdjective; - -DartNSLinguisticTag get NSLinguisticTagAdjective => objc.NSString.fromPointer( - _NSLinguisticTagAdjective, - retain: true, - release: true, -); - -set NSLinguisticTagAdjective(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagAdjective, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagAdjective = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagAdverb') -external NSLinguisticTag _NSLinguisticTagAdverb; - -DartNSLinguisticTag get NSLinguisticTagAdverb => objc.NSString.fromPointer( - _NSLinguisticTagAdverb, - retain: true, - release: true, -); - -set NSLinguisticTagAdverb(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagAdverb, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagAdverb = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagClassifier') -external NSLinguisticTag _NSLinguisticTagClassifier; - -DartNSLinguisticTag get NSLinguisticTagClassifier => objc.NSString.fromPointer( - _NSLinguisticTagClassifier, - retain: true, - release: true, -); - -set NSLinguisticTagClassifier(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagClassifier, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagClassifier = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagCloseParenthesis') -external NSLinguisticTag _NSLinguisticTagCloseParenthesis; - -DartNSLinguisticTag get NSLinguisticTagCloseParenthesis => - objc.NSString.fromPointer( - _NSLinguisticTagCloseParenthesis, - retain: true, - release: true, - ); - -set NSLinguisticTagCloseParenthesis(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagCloseParenthesis, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagCloseParenthesis = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagCloseQuote') -external NSLinguisticTag _NSLinguisticTagCloseQuote; - -DartNSLinguisticTag get NSLinguisticTagCloseQuote => objc.NSString.fromPointer( - _NSLinguisticTagCloseQuote, - retain: true, - release: true, -); - -set NSLinguisticTagCloseQuote(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagCloseQuote, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagCloseQuote = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagConjunction') -external NSLinguisticTag _NSLinguisticTagConjunction; - -DartNSLinguisticTag get NSLinguisticTagConjunction => objc.NSString.fromPointer( - _NSLinguisticTagConjunction, - retain: true, - release: true, -); - -set NSLinguisticTagConjunction(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagConjunction, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagConjunction = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagDash') -external NSLinguisticTag _NSLinguisticTagDash; - -DartNSLinguisticTag get NSLinguisticTagDash => objc.NSString.fromPointer( - _NSLinguisticTagDash, - retain: true, - release: true, -); - -set NSLinguisticTagDash(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagDash, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagDash = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagDeterminer') -external NSLinguisticTag _NSLinguisticTagDeterminer; - -DartNSLinguisticTag get NSLinguisticTagDeterminer => objc.NSString.fromPointer( - _NSLinguisticTagDeterminer, - retain: true, - release: true, -); - -set NSLinguisticTagDeterminer(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagDeterminer, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagDeterminer = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagIdiom') -external NSLinguisticTag _NSLinguisticTagIdiom; - -DartNSLinguisticTag get NSLinguisticTagIdiom => objc.NSString.fromPointer( - _NSLinguisticTagIdiom, - retain: true, - release: true, -); - -set NSLinguisticTagIdiom(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagIdiom, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagIdiom = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagInterjection') -external NSLinguisticTag _NSLinguisticTagInterjection; - -DartNSLinguisticTag get NSLinguisticTagInterjection => - objc.NSString.fromPointer( - _NSLinguisticTagInterjection, - retain: true, - release: true, - ); - -set NSLinguisticTagInterjection(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagInterjection, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagInterjection = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagNoun') -external NSLinguisticTag _NSLinguisticTagNoun; - -DartNSLinguisticTag get NSLinguisticTagNoun => objc.NSString.fromPointer( - _NSLinguisticTagNoun, - retain: true, - release: true, -); - -set NSLinguisticTagNoun(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagNoun, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagNoun = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagNumber') -external NSLinguisticTag _NSLinguisticTagNumber; - -DartNSLinguisticTag get NSLinguisticTagNumber => objc.NSString.fromPointer( - _NSLinguisticTagNumber, - retain: true, - release: true, -); - -set NSLinguisticTagNumber(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagNumber, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagNumber = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOpenParenthesis') -external NSLinguisticTag _NSLinguisticTagOpenParenthesis; - -DartNSLinguisticTag get NSLinguisticTagOpenParenthesis => - objc.NSString.fromPointer( - _NSLinguisticTagOpenParenthesis, - retain: true, - release: true, - ); - -set NSLinguisticTagOpenParenthesis(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOpenParenthesis, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOpenParenthesis = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOpenQuote') -external NSLinguisticTag _NSLinguisticTagOpenQuote; - -DartNSLinguisticTag get NSLinguisticTagOpenQuote => objc.NSString.fromPointer( - _NSLinguisticTagOpenQuote, - retain: true, - release: true, -); - -set NSLinguisticTagOpenQuote(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOpenQuote, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOpenQuote = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOrganizationName') -external NSLinguisticTag _NSLinguisticTagOrganizationName; - -DartNSLinguisticTag get NSLinguisticTagOrganizationName => - objc.NSString.fromPointer( - _NSLinguisticTagOrganizationName, - retain: true, - release: true, - ); - -set NSLinguisticTagOrganizationName(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOrganizationName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOrganizationName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOther') -external NSLinguisticTag _NSLinguisticTagOther; - -DartNSLinguisticTag get NSLinguisticTagOther => objc.NSString.fromPointer( - _NSLinguisticTagOther, - retain: true, - release: true, -); - -set NSLinguisticTagOther(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOther, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOther = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOtherPunctuation') -external NSLinguisticTag _NSLinguisticTagOtherPunctuation; - -DartNSLinguisticTag get NSLinguisticTagOtherPunctuation => - objc.NSString.fromPointer( - _NSLinguisticTagOtherPunctuation, - retain: true, - release: true, - ); - -set NSLinguisticTagOtherPunctuation(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOtherPunctuation, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOtherPunctuation = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOtherWhitespace') -external NSLinguisticTag _NSLinguisticTagOtherWhitespace; - -DartNSLinguisticTag get NSLinguisticTagOtherWhitespace => - objc.NSString.fromPointer( - _NSLinguisticTagOtherWhitespace, - retain: true, - release: true, - ); - -set NSLinguisticTagOtherWhitespace(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOtherWhitespace, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOtherWhitespace = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOtherWord') -external NSLinguisticTag _NSLinguisticTagOtherWord; - -DartNSLinguisticTag get NSLinguisticTagOtherWord => objc.NSString.fromPointer( - _NSLinguisticTagOtherWord, - retain: true, - release: true, -); - -set NSLinguisticTagOtherWord(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOtherWord, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOtherWord = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagParagraphBreak') -external NSLinguisticTag _NSLinguisticTagParagraphBreak; - -DartNSLinguisticTag get NSLinguisticTagParagraphBreak => - objc.NSString.fromPointer( - _NSLinguisticTagParagraphBreak, - retain: true, - release: true, - ); - -set NSLinguisticTagParagraphBreak(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagParagraphBreak, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagParagraphBreak = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagParticle') -external NSLinguisticTag _NSLinguisticTagParticle; - -DartNSLinguisticTag get NSLinguisticTagParticle => objc.NSString.fromPointer( - _NSLinguisticTagParticle, - retain: true, - release: true, -); - -set NSLinguisticTagParticle(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagParticle, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagParticle = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagPersonalName') -external NSLinguisticTag _NSLinguisticTagPersonalName; - -DartNSLinguisticTag get NSLinguisticTagPersonalName => - objc.NSString.fromPointer( - _NSLinguisticTagPersonalName, - retain: true, - release: true, - ); - -set NSLinguisticTagPersonalName(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagPersonalName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagPersonalName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagPlaceName') -external NSLinguisticTag _NSLinguisticTagPlaceName; - -DartNSLinguisticTag get NSLinguisticTagPlaceName => objc.NSString.fromPointer( - _NSLinguisticTagPlaceName, - retain: true, - release: true, -); - -set NSLinguisticTagPlaceName(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagPlaceName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagPlaceName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagPreposition') -external NSLinguisticTag _NSLinguisticTagPreposition; - -DartNSLinguisticTag get NSLinguisticTagPreposition => objc.NSString.fromPointer( - _NSLinguisticTagPreposition, - retain: true, - release: true, -); - -set NSLinguisticTagPreposition(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagPreposition, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagPreposition = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagPronoun') -external NSLinguisticTag _NSLinguisticTagPronoun; - -DartNSLinguisticTag get NSLinguisticTagPronoun => objc.NSString.fromPointer( - _NSLinguisticTagPronoun, - retain: true, - release: true, -); - -set NSLinguisticTagPronoun(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagPronoun, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagPronoun = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagPunctuation') -external NSLinguisticTag _NSLinguisticTagPunctuation; - -DartNSLinguisticTag get NSLinguisticTagPunctuation => objc.NSString.fromPointer( - _NSLinguisticTagPunctuation, - retain: true, - release: true, -); - -set NSLinguisticTagPunctuation(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagPunctuation, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagPunctuation = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeLanguage') -external NSLinguisticTagScheme _NSLinguisticTagSchemeLanguage; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeLanguage => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLanguage, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeLanguage(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLanguage, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeLanguage = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeLemma') -external NSLinguisticTagScheme _NSLinguisticTagSchemeLemma; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeLemma => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLemma, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeLemma(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLemma, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeLemma = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeLexicalClass') -external NSLinguisticTagScheme _NSLinguisticTagSchemeLexicalClass; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeLexicalClass => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLexicalClass, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeLexicalClass(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLexicalClass, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeLexicalClass = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeNameType') -external NSLinguisticTagScheme _NSLinguisticTagSchemeNameType; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeNameType => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeNameType, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeNameType(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeNameType, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeNameType = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSLinguisticTagSchemeNameTypeOrLexicalClass', -) -external NSLinguisticTagScheme _NSLinguisticTagSchemeNameTypeOrLexicalClass; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeNameTypeOrLexicalClass => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeNameTypeOrLexicalClass, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeNameTypeOrLexicalClass( - DartNSLinguisticTagScheme value, -) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeNameTypeOrLexicalClass, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeNameTypeOrLexicalClass = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeScript') -external NSLinguisticTagScheme _NSLinguisticTagSchemeScript; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeScript => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeScript, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeScript(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeScript, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeScript = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeTokenType') -external NSLinguisticTagScheme _NSLinguisticTagSchemeTokenType; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeTokenType => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeTokenType, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeTokenType(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeTokenType, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeTokenType = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSentenceTerminator') -external NSLinguisticTag _NSLinguisticTagSentenceTerminator; - -DartNSLinguisticTag get NSLinguisticTagSentenceTerminator => - objc.NSString.fromPointer( - _NSLinguisticTagSentenceTerminator, - retain: true, - release: true, - ); - -set NSLinguisticTagSentenceTerminator(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagSentenceTerminator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSentenceTerminator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagVerb') -external NSLinguisticTag _NSLinguisticTagVerb; - -DartNSLinguisticTag get NSLinguisticTagVerb => objc.NSString.fromPointer( - _NSLinguisticTagVerb, - retain: true, - release: true, -); - -set NSLinguisticTagVerb(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagVerb, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagVerb = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagWhitespace') -external NSLinguisticTag _NSLinguisticTagWhitespace; - -DartNSLinguisticTag get NSLinguisticTagWhitespace => objc.NSString.fromPointer( - _NSLinguisticTagWhitespace, - retain: true, - release: true, -); - -set NSLinguisticTagWhitespace(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagWhitespace, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagWhitespace = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagWord') -external NSLinguisticTag _NSLinguisticTagWord; - -DartNSLinguisticTag get NSLinguisticTagWord => objc.NSString.fromPointer( - _NSLinguisticTagWord, - retain: true, - release: true, -); - -set NSLinguisticTagWord(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagWord, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagWord = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagWordJoiner') -external NSLinguisticTag _NSLinguisticTagWordJoiner; - -DartNSLinguisticTag get NSLinguisticTagWordJoiner => objc.NSString.fromPointer( - _NSLinguisticTagWordJoiner, - retain: true, - release: true, -); - -set NSLinguisticTagWordJoiner(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagWordJoiner, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagWordJoiner = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSListItemDelimiterAttributeName') -external NSAttributedStringKey _NSListItemDelimiterAttributeName; - -DartNSAttributedStringKey get NSListItemDelimiterAttributeName => - objc.NSString.fromPointer( - _NSListItemDelimiterAttributeName, - retain: true, - release: true, - ); - -set NSListItemDelimiterAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSListItemDelimiterAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSListItemDelimiterAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSLoadedClasses') -external ffi.Pointer _NSLoadedClasses; - -objc.NSString get NSLoadedClasses => - objc.NSString.fromPointer(_NSLoadedClasses, retain: true, release: true); - -set NSLoadedClasses(objc.NSString value) { - objc.NSString.fromPointer( - _NSLoadedClasses, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLoadedClasses = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSLocalNotificationCenterType', -) -external NSDistributedNotificationCenterType _NSLocalNotificationCenterType; - -DartNSDistributedNotificationCenterType get NSLocalNotificationCenterType => - objc.NSString.fromPointer( - _NSLocalNotificationCenterType, - retain: true, - release: true, - ); - -set NSLocalNotificationCenterType( - DartNSDistributedNotificationCenterType value, -) { - objc.NSString.fromPointer( - _NSLocalNotificationCenterType, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalNotificationCenterType = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleAlternateQuotationBeginDelimiterKey') -external NSLocaleKey _NSLocaleAlternateQuotationBeginDelimiterKey; - -DartNSLocaleKey get NSLocaleAlternateQuotationBeginDelimiterKey => - objc.NSString.fromPointer( - _NSLocaleAlternateQuotationBeginDelimiterKey, - retain: true, - release: true, - ); - -set NSLocaleAlternateQuotationBeginDelimiterKey(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleAlternateQuotationBeginDelimiterKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleAlternateQuotationBeginDelimiterKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleAlternateQuotationEndDelimiterKey') -external NSLocaleKey _NSLocaleAlternateQuotationEndDelimiterKey; - -DartNSLocaleKey get NSLocaleAlternateQuotationEndDelimiterKey => - objc.NSString.fromPointer( - _NSLocaleAlternateQuotationEndDelimiterKey, - retain: true, - release: true, - ); - -set NSLocaleAlternateQuotationEndDelimiterKey(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleAlternateQuotationEndDelimiterKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleAlternateQuotationEndDelimiterKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCalendar') -external NSLocaleKey _NSLocaleCalendar; - -DartNSLocaleKey get NSLocaleCalendar => - objc.NSString.fromPointer(_NSLocaleCalendar, retain: true, release: true); - -set NSLocaleCalendar(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCollationIdentifier') -external NSLocaleKey _NSLocaleCollationIdentifier; - -DartNSLocaleKey get NSLocaleCollationIdentifier => objc.NSString.fromPointer( - _NSLocaleCollationIdentifier, - retain: true, - release: true, -); - -set NSLocaleCollationIdentifier(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCollationIdentifier, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCollationIdentifier = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCollatorIdentifier') -external NSLocaleKey _NSLocaleCollatorIdentifier; - -DartNSLocaleKey get NSLocaleCollatorIdentifier => objc.NSString.fromPointer( - _NSLocaleCollatorIdentifier, - retain: true, - release: true, -); - -set NSLocaleCollatorIdentifier(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCollatorIdentifier, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCollatorIdentifier = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCountryCode') -external NSLocaleKey _NSLocaleCountryCode; - -DartNSLocaleKey get NSLocaleCountryCode => objc.NSString.fromPointer( - _NSLocaleCountryCode, - retain: true, - release: true, -); - -set NSLocaleCountryCode(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCountryCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCountryCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCurrencyCode') -external NSLocaleKey _NSLocaleCurrencyCode; - -DartNSLocaleKey get NSLocaleCurrencyCode => objc.NSString.fromPointer( - _NSLocaleCurrencyCode, - retain: true, - release: true, -); - -set NSLocaleCurrencyCode(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCurrencyCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCurrencyCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCurrencySymbol') -external NSLocaleKey _NSLocaleCurrencySymbol; - -DartNSLocaleKey get NSLocaleCurrencySymbol => objc.NSString.fromPointer( - _NSLocaleCurrencySymbol, - retain: true, - release: true, -); - -set NSLocaleCurrencySymbol(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCurrencySymbol, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCurrencySymbol = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleDecimalSeparator') -external NSLocaleKey _NSLocaleDecimalSeparator; - -DartNSLocaleKey get NSLocaleDecimalSeparator => objc.NSString.fromPointer( - _NSLocaleDecimalSeparator, - retain: true, - release: true, -); - -set NSLocaleDecimalSeparator(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleDecimalSeparator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleDecimalSeparator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleExemplarCharacterSet') -external NSLocaleKey _NSLocaleExemplarCharacterSet; - -DartNSLocaleKey get NSLocaleExemplarCharacterSet => objc.NSString.fromPointer( - _NSLocaleExemplarCharacterSet, - retain: true, - release: true, -); - -set NSLocaleExemplarCharacterSet(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleExemplarCharacterSet, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleExemplarCharacterSet = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleGroupingSeparator') -external NSLocaleKey _NSLocaleGroupingSeparator; - -DartNSLocaleKey get NSLocaleGroupingSeparator => objc.NSString.fromPointer( - _NSLocaleGroupingSeparator, - retain: true, - release: true, -); - -set NSLocaleGroupingSeparator(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleGroupingSeparator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleGroupingSeparator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleIdentifier') -external NSLocaleKey _NSLocaleIdentifier; - -DartNSLocaleKey get NSLocaleIdentifier => - objc.NSString.fromPointer(_NSLocaleIdentifier, retain: true, release: true); - -set NSLocaleIdentifier(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleIdentifier, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleIdentifier = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleLanguageCode') -external NSLocaleKey _NSLocaleLanguageCode; - -DartNSLocaleKey get NSLocaleLanguageCode => objc.NSString.fromPointer( - _NSLocaleLanguageCode, - retain: true, - release: true, -); - -set NSLocaleLanguageCode(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleLanguageCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleLanguageCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleMeasurementSystem') -external NSLocaleKey _NSLocaleMeasurementSystem; - -DartNSLocaleKey get NSLocaleMeasurementSystem => objc.NSString.fromPointer( - _NSLocaleMeasurementSystem, - retain: true, - release: true, -); - -set NSLocaleMeasurementSystem(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleMeasurementSystem, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleMeasurementSystem = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleQuotationBeginDelimiterKey') -external NSLocaleKey _NSLocaleQuotationBeginDelimiterKey; - -DartNSLocaleKey get NSLocaleQuotationBeginDelimiterKey => - objc.NSString.fromPointer( - _NSLocaleQuotationBeginDelimiterKey, - retain: true, - release: true, - ); - -set NSLocaleQuotationBeginDelimiterKey(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleQuotationBeginDelimiterKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleQuotationBeginDelimiterKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleQuotationEndDelimiterKey') -external NSLocaleKey _NSLocaleQuotationEndDelimiterKey; - -DartNSLocaleKey get NSLocaleQuotationEndDelimiterKey => - objc.NSString.fromPointer( - _NSLocaleQuotationEndDelimiterKey, - retain: true, - release: true, - ); - -set NSLocaleQuotationEndDelimiterKey(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleQuotationEndDelimiterKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleQuotationEndDelimiterKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleScriptCode') -external NSLocaleKey _NSLocaleScriptCode; - -DartNSLocaleKey get NSLocaleScriptCode => - objc.NSString.fromPointer(_NSLocaleScriptCode, retain: true, release: true); - -set NSLocaleScriptCode(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleScriptCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleScriptCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleUsesMetricSystem') -external NSLocaleKey _NSLocaleUsesMetricSystem; - -DartNSLocaleKey get NSLocaleUsesMetricSystem => objc.NSString.fromPointer( - _NSLocaleUsesMetricSystem, - retain: true, - release: true, -); - -set NSLocaleUsesMetricSystem(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleUsesMetricSystem, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleUsesMetricSystem = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleVariantCode') -external NSLocaleKey _NSLocaleVariantCode; - -DartNSLocaleKey get NSLocaleVariantCode => objc.NSString.fromPointer( - _NSLocaleVariantCode, - retain: true, - release: true, -); - -set NSLocaleVariantCode(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleVariantCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleVariantCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocalizedDescriptionKey') -external NSErrorUserInfoKey _NSLocalizedDescriptionKey; - -DartNSErrorUserInfoKey get NSLocalizedDescriptionKey => - objc.NSString.fromPointer( - _NSLocalizedDescriptionKey, - retain: true, - release: true, - ); - -set NSLocalizedDescriptionKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSLocalizedDescriptionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedDescriptionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocalizedFailureErrorKey') -external NSErrorUserInfoKey _NSLocalizedFailureErrorKey; - -DartNSErrorUserInfoKey get NSLocalizedFailureErrorKey => - objc.NSString.fromPointer( - _NSLocalizedFailureErrorKey, - retain: true, - release: true, - ); - -set NSLocalizedFailureErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSLocalizedFailureErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedFailureErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocalizedFailureReasonErrorKey') -external NSErrorUserInfoKey _NSLocalizedFailureReasonErrorKey; - -DartNSErrorUserInfoKey get NSLocalizedFailureReasonErrorKey => - objc.NSString.fromPointer( - _NSLocalizedFailureReasonErrorKey, - retain: true, - release: true, - ); - -set NSLocalizedFailureReasonErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSLocalizedFailureReasonErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedFailureReasonErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSLocalizedNumberFormatAttributeName', -) -external NSAttributedStringKey _NSLocalizedNumberFormatAttributeName; - -DartNSAttributedStringKey get NSLocalizedNumberFormatAttributeName => - objc.NSString.fromPointer( - _NSLocalizedNumberFormatAttributeName, - retain: true, - release: true, - ); - -set NSLocalizedNumberFormatAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSLocalizedNumberFormatAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedNumberFormatAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocalizedRecoveryOptionsErrorKey') -external NSErrorUserInfoKey _NSLocalizedRecoveryOptionsErrorKey; - -DartNSErrorUserInfoKey get NSLocalizedRecoveryOptionsErrorKey => - objc.NSString.fromPointer( - _NSLocalizedRecoveryOptionsErrorKey, - retain: true, - release: true, - ); - -set NSLocalizedRecoveryOptionsErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSLocalizedRecoveryOptionsErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedRecoveryOptionsErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocalizedRecoverySuggestionErrorKey') -external NSErrorUserInfoKey _NSLocalizedRecoverySuggestionErrorKey; - -DartNSErrorUserInfoKey get NSLocalizedRecoverySuggestionErrorKey => - objc.NSString.fromPointer( - _NSLocalizedRecoverySuggestionErrorKey, - retain: true, - release: true, - ); - -set NSLocalizedRecoverySuggestionErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSLocalizedRecoverySuggestionErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedRecoverySuggestionErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSLog', -) -external void _NSLog(ffi.Pointer format); - -void NSLog(objc.NSString format) { - final _$$ref = format.ref; - return _NSLog(_$$ref.pointer); -} - -@ffi.Native() -external int NSLogPageSize(); - -@ffi.Native, va_list)>( - symbol: 'NSLogv', -) -external void _NSLogv(ffi.Pointer format, va_list args); - -void NSLogv(objc.NSString format, va_list args) { - final _$$ref = format.ref; - return _NSLogv(_$$ref.pointer, args); -} - -@ffi.Native(symbol: 'NSMachErrorDomain') -external NSErrorDomain _NSMachErrorDomain; - -DartNSErrorDomain get NSMachErrorDomain => - objc.NSString.fromPointer(_NSMachErrorDomain, retain: true, release: true); - -set NSMachErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSMachErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMachErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSMallocException') -external NSExceptionName _NSMallocException; - -DartNSExceptionName get NSMallocException => - objc.NSString.fromPointer(_NSMallocException, retain: true, release: true); - -set NSMallocException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSMallocException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMallocException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSMapGet') -external ffi.Pointer _NSMapGet( - ffi.Pointer table, - ffi.Pointer key, -); - -ffi.Pointer NSMapGet(NSMapTable table, ffi.Pointer key) { - final _$$ref = table.ref; - return _NSMapGet(_$$ref.pointer, key); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSMapInsert') -external void _NSMapInsert( - ffi.Pointer table, - ffi.Pointer key, - ffi.Pointer value, -); - -void NSMapInsert( - NSMapTable table, - ffi.Pointer key, - ffi.Pointer value, -) { - final _$$ref = table.ref; - return _NSMapInsert(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSMapInsertIfAbsent') -external ffi.Pointer _NSMapInsertIfAbsent( - ffi.Pointer table, - ffi.Pointer key, - ffi.Pointer value, -); - -ffi.Pointer NSMapInsertIfAbsent( - NSMapTable table, - ffi.Pointer key, - ffi.Pointer value, -) { - final _$$ref = table.ref; - return _NSMapInsertIfAbsent(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSMapInsertKnownAbsent') -external void _NSMapInsertKnownAbsent( - ffi.Pointer table, - ffi.Pointer key, - ffi.Pointer value, -); - -void NSMapInsertKnownAbsent( - NSMapTable table, - ffi.Pointer key, - ffi.Pointer value, -) { - final _$$ref = table.ref; - return _NSMapInsertKnownAbsent(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) ->(symbol: 'NSMapMember') -external bool _NSMapMember( - ffi.Pointer table, - ffi.Pointer key, - ffi.Pointer> originalKey, - ffi.Pointer> value, -); - -bool NSMapMember( - NSMapTable table, - ffi.Pointer key, - ffi.Pointer> originalKey, - ffi.Pointer> value, -) { - final _$$ref = table.ref; - return _NSMapMember(_$$ref.pointer, key, originalKey, value); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSMapRemove') -external void _NSMapRemove( - ffi.Pointer table, - ffi.Pointer key, -); - -void NSMapRemove(NSMapTable table, ffi.Pointer key) { - final _$$ref = table.ref; - return _NSMapRemove(_$$ref.pointer, key); -} - -@ffi.Native( - symbol: 'NSMarkdownSourcePositionAttributeName', -) -external NSAttributedStringKey _NSMarkdownSourcePositionAttributeName; - -DartNSAttributedStringKey get NSMarkdownSourcePositionAttributeName => - objc.NSString.fromPointer( - _NSMarkdownSourcePositionAttributeName, - retain: true, - release: true, - ); - -set NSMarkdownSourcePositionAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSMarkdownSourcePositionAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMarkdownSourcePositionAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSMaximumKeyValueOperator') -external NSKeyValueOperator _NSMaximumKeyValueOperator; - -DartNSKeyValueOperator get NSMaximumKeyValueOperator => - objc.NSString.fromPointer( - _NSMaximumKeyValueOperator, - retain: true, - release: true, - ); - -set NSMaximumKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSMaximumKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMaximumKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAcquisitionMakeKey', -) -external ffi.Pointer _NSMetadataItemAcquisitionMakeKey; - -objc.NSString get NSMetadataItemAcquisitionMakeKey => objc.NSString.fromPointer( - _NSMetadataItemAcquisitionMakeKey, - retain: true, - release: true, -); - -set NSMetadataItemAcquisitionMakeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAcquisitionMakeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAcquisitionMakeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAcquisitionModelKey', -) -external ffi.Pointer _NSMetadataItemAcquisitionModelKey; - -objc.NSString get NSMetadataItemAcquisitionModelKey => - objc.NSString.fromPointer( - _NSMetadataItemAcquisitionModelKey, - retain: true, - release: true, - ); - -set NSMetadataItemAcquisitionModelKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAcquisitionModelKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAcquisitionModelKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemAlbumKey') -external ffi.Pointer _NSMetadataItemAlbumKey; - -objc.NSString get NSMetadataItemAlbumKey => objc.NSString.fromPointer( - _NSMetadataItemAlbumKey, - retain: true, - release: true, -); - -set NSMetadataItemAlbumKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAlbumKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAlbumKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAltitudeKey', -) -external ffi.Pointer _NSMetadataItemAltitudeKey; - -objc.NSString get NSMetadataItemAltitudeKey => objc.NSString.fromPointer( - _NSMetadataItemAltitudeKey, - retain: true, - release: true, -); - -set NSMetadataItemAltitudeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAltitudeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAltitudeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemApertureKey', -) -external ffi.Pointer _NSMetadataItemApertureKey; - -objc.NSString get NSMetadataItemApertureKey => objc.NSString.fromPointer( - _NSMetadataItemApertureKey, - retain: true, - release: true, -); - -set NSMetadataItemApertureKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemApertureKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemApertureKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAppleLoopDescriptorsKey', -) -external ffi.Pointer -_NSMetadataItemAppleLoopDescriptorsKey; - -objc.NSString get NSMetadataItemAppleLoopDescriptorsKey => - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopDescriptorsKey, - retain: true, - release: true, - ); - -set NSMetadataItemAppleLoopDescriptorsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopDescriptorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAppleLoopDescriptorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAppleLoopsKeyFilterTypeKey', -) -external ffi.Pointer -_NSMetadataItemAppleLoopsKeyFilterTypeKey; - -objc.NSString get NSMetadataItemAppleLoopsKeyFilterTypeKey => - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsKeyFilterTypeKey, - retain: true, - release: true, - ); - -set NSMetadataItemAppleLoopsKeyFilterTypeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsKeyFilterTypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAppleLoopsKeyFilterTypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAppleLoopsLoopModeKey', -) -external ffi.Pointer _NSMetadataItemAppleLoopsLoopModeKey; - -objc.NSString get NSMetadataItemAppleLoopsLoopModeKey => - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsLoopModeKey, - retain: true, - release: true, - ); - -set NSMetadataItemAppleLoopsLoopModeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsLoopModeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAppleLoopsLoopModeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAppleLoopsRootKeyKey', -) -external ffi.Pointer _NSMetadataItemAppleLoopsRootKeyKey; - -objc.NSString get NSMetadataItemAppleLoopsRootKeyKey => - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsRootKeyKey, - retain: true, - release: true, - ); - -set NSMetadataItemAppleLoopsRootKeyKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsRootKeyKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAppleLoopsRootKeyKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemApplicationCategoriesKey', -) -external ffi.Pointer -_NSMetadataItemApplicationCategoriesKey; - -objc.NSString get NSMetadataItemApplicationCategoriesKey => - objc.NSString.fromPointer( - _NSMetadataItemApplicationCategoriesKey, - retain: true, - release: true, - ); - -set NSMetadataItemApplicationCategoriesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemApplicationCategoriesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemApplicationCategoriesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAttributeChangeDateKey', -) -external ffi.Pointer _NSMetadataItemAttributeChangeDateKey; - -objc.NSString get NSMetadataItemAttributeChangeDateKey => - objc.NSString.fromPointer( - _NSMetadataItemAttributeChangeDateKey, - retain: true, - release: true, - ); - -set NSMetadataItemAttributeChangeDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAttributeChangeDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAttributeChangeDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudiencesKey', -) -external ffi.Pointer _NSMetadataItemAudiencesKey; - -objc.NSString get NSMetadataItemAudiencesKey => objc.NSString.fromPointer( - _NSMetadataItemAudiencesKey, - retain: true, - release: true, -); - -set NSMetadataItemAudiencesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudiencesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudiencesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudioBitRateKey', -) -external ffi.Pointer _NSMetadataItemAudioBitRateKey; - -objc.NSString get NSMetadataItemAudioBitRateKey => objc.NSString.fromPointer( - _NSMetadataItemAudioBitRateKey, - retain: true, - release: true, -); - -set NSMetadataItemAudioBitRateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudioBitRateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudioBitRateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudioChannelCountKey', -) -external ffi.Pointer _NSMetadataItemAudioChannelCountKey; - -objc.NSString get NSMetadataItemAudioChannelCountKey => - objc.NSString.fromPointer( - _NSMetadataItemAudioChannelCountKey, - retain: true, - release: true, - ); - -set NSMetadataItemAudioChannelCountKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudioChannelCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudioChannelCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudioEncodingApplicationKey', -) -external ffi.Pointer -_NSMetadataItemAudioEncodingApplicationKey; - -objc.NSString get NSMetadataItemAudioEncodingApplicationKey => - objc.NSString.fromPointer( - _NSMetadataItemAudioEncodingApplicationKey, - retain: true, - release: true, - ); - -set NSMetadataItemAudioEncodingApplicationKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudioEncodingApplicationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudioEncodingApplicationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudioSampleRateKey', -) -external ffi.Pointer _NSMetadataItemAudioSampleRateKey; - -objc.NSString get NSMetadataItemAudioSampleRateKey => objc.NSString.fromPointer( - _NSMetadataItemAudioSampleRateKey, - retain: true, - release: true, -); - -set NSMetadataItemAudioSampleRateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudioSampleRateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudioSampleRateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudioTrackNumberKey', -) -external ffi.Pointer _NSMetadataItemAudioTrackNumberKey; - -objc.NSString get NSMetadataItemAudioTrackNumberKey => - objc.NSString.fromPointer( - _NSMetadataItemAudioTrackNumberKey, - retain: true, - release: true, - ); - -set NSMetadataItemAudioTrackNumberKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudioTrackNumberKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudioTrackNumberKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAuthorAddressesKey', -) -external ffi.Pointer _NSMetadataItemAuthorAddressesKey; - -objc.NSString get NSMetadataItemAuthorAddressesKey => objc.NSString.fromPointer( - _NSMetadataItemAuthorAddressesKey, - retain: true, - release: true, -); - -set NSMetadataItemAuthorAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAuthorAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAuthorAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAuthorEmailAddressesKey', -) -external ffi.Pointer -_NSMetadataItemAuthorEmailAddressesKey; - -objc.NSString get NSMetadataItemAuthorEmailAddressesKey => - objc.NSString.fromPointer( - _NSMetadataItemAuthorEmailAddressesKey, - retain: true, - release: true, - ); - -set NSMetadataItemAuthorEmailAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAuthorEmailAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAuthorEmailAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAuthorsKey', -) -external ffi.Pointer _NSMetadataItemAuthorsKey; - -objc.NSString get NSMetadataItemAuthorsKey => objc.NSString.fromPointer( - _NSMetadataItemAuthorsKey, - retain: true, - release: true, -); - -set NSMetadataItemAuthorsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAuthorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAuthorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemBitsPerSampleKey', -) -external ffi.Pointer _NSMetadataItemBitsPerSampleKey; - -objc.NSString get NSMetadataItemBitsPerSampleKey => objc.NSString.fromPointer( - _NSMetadataItemBitsPerSampleKey, - retain: true, - release: true, -); - -set NSMetadataItemBitsPerSampleKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemBitsPerSampleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemBitsPerSampleKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCFBundleIdentifierKey', -) -external ffi.Pointer _NSMetadataItemCFBundleIdentifierKey; - -objc.NSString get NSMetadataItemCFBundleIdentifierKey => - objc.NSString.fromPointer( - _NSMetadataItemCFBundleIdentifierKey, - retain: true, - release: true, - ); - -set NSMetadataItemCFBundleIdentifierKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCFBundleIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCFBundleIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCameraOwnerKey', -) -external ffi.Pointer _NSMetadataItemCameraOwnerKey; - -objc.NSString get NSMetadataItemCameraOwnerKey => objc.NSString.fromPointer( - _NSMetadataItemCameraOwnerKey, - retain: true, - release: true, -); - -set NSMetadataItemCameraOwnerKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCameraOwnerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCameraOwnerKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemCityKey') -external ffi.Pointer _NSMetadataItemCityKey; - -objc.NSString get NSMetadataItemCityKey => objc.NSString.fromPointer( - _NSMetadataItemCityKey, - retain: true, - release: true, -); - -set NSMetadataItemCityKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemCodecsKey') -external ffi.Pointer _NSMetadataItemCodecsKey; - -objc.NSString get NSMetadataItemCodecsKey => objc.NSString.fromPointer( - _NSMetadataItemCodecsKey, - retain: true, - release: true, -); - -set NSMetadataItemCodecsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCodecsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCodecsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemColorSpaceKey', -) -external ffi.Pointer _NSMetadataItemColorSpaceKey; - -objc.NSString get NSMetadataItemColorSpaceKey => objc.NSString.fromPointer( - _NSMetadataItemColorSpaceKey, - retain: true, - release: true, -); - -set NSMetadataItemColorSpaceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemColorSpaceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemColorSpaceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCommentKey', -) -external ffi.Pointer _NSMetadataItemCommentKey; - -objc.NSString get NSMetadataItemCommentKey => objc.NSString.fromPointer( - _NSMetadataItemCommentKey, - retain: true, - release: true, -); - -set NSMetadataItemCommentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCommentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCommentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemComposerKey', -) -external ffi.Pointer _NSMetadataItemComposerKey; - -objc.NSString get NSMetadataItemComposerKey => objc.NSString.fromPointer( - _NSMetadataItemComposerKey, - retain: true, - release: true, -); - -set NSMetadataItemComposerKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemComposerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemComposerKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContactKeywordsKey', -) -external ffi.Pointer _NSMetadataItemContactKeywordsKey; - -objc.NSString get NSMetadataItemContactKeywordsKey => objc.NSString.fromPointer( - _NSMetadataItemContactKeywordsKey, - retain: true, - release: true, -); - -set NSMetadataItemContactKeywordsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContactKeywordsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContactKeywordsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContentCreationDateKey', -) -external ffi.Pointer _NSMetadataItemContentCreationDateKey; - -objc.NSString get NSMetadataItemContentCreationDateKey => - objc.NSString.fromPointer( - _NSMetadataItemContentCreationDateKey, - retain: true, - release: true, - ); - -set NSMetadataItemContentCreationDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContentCreationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContentCreationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContentModificationDateKey', -) -external ffi.Pointer -_NSMetadataItemContentModificationDateKey; - -objc.NSString get NSMetadataItemContentModificationDateKey => - objc.NSString.fromPointer( - _NSMetadataItemContentModificationDateKey, - retain: true, - release: true, - ); - -set NSMetadataItemContentModificationDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContentModificationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContentModificationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContentTypeKey', -) -external ffi.Pointer _NSMetadataItemContentTypeKey; - -objc.NSString get NSMetadataItemContentTypeKey => objc.NSString.fromPointer( - _NSMetadataItemContentTypeKey, - retain: true, - release: true, -); - -set NSMetadataItemContentTypeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContentTypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContentTypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContentTypeTreeKey', -) -external ffi.Pointer _NSMetadataItemContentTypeTreeKey; - -objc.NSString get NSMetadataItemContentTypeTreeKey => objc.NSString.fromPointer( - _NSMetadataItemContentTypeTreeKey, - retain: true, - release: true, -); - -set NSMetadataItemContentTypeTreeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContentTypeTreeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContentTypeTreeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContributorsKey', -) -external ffi.Pointer _NSMetadataItemContributorsKey; - -objc.NSString get NSMetadataItemContributorsKey => objc.NSString.fromPointer( - _NSMetadataItemContributorsKey, - retain: true, - release: true, -); - -set NSMetadataItemContributorsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContributorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContributorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCopyrightKey', -) -external ffi.Pointer _NSMetadataItemCopyrightKey; - -objc.NSString get NSMetadataItemCopyrightKey => objc.NSString.fromPointer( - _NSMetadataItemCopyrightKey, - retain: true, - release: true, -); - -set NSMetadataItemCopyrightKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCopyrightKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCopyrightKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCountryKey', -) -external ffi.Pointer _NSMetadataItemCountryKey; - -objc.NSString get NSMetadataItemCountryKey => objc.NSString.fromPointer( - _NSMetadataItemCountryKey, - retain: true, - release: true, -); - -set NSMetadataItemCountryKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCountryKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCountryKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCoverageKey', -) -external ffi.Pointer _NSMetadataItemCoverageKey; - -objc.NSString get NSMetadataItemCoverageKey => objc.NSString.fromPointer( - _NSMetadataItemCoverageKey, - retain: true, - release: true, -); - -set NSMetadataItemCoverageKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCoverageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCoverageKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCreatorKey', -) -external ffi.Pointer _NSMetadataItemCreatorKey; - -objc.NSString get NSMetadataItemCreatorKey => objc.NSString.fromPointer( - _NSMetadataItemCreatorKey, - retain: true, - release: true, -); - -set NSMetadataItemCreatorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCreatorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCreatorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDateAddedKey', -) -external ffi.Pointer _NSMetadataItemDateAddedKey; - -objc.NSString get NSMetadataItemDateAddedKey => objc.NSString.fromPointer( - _NSMetadataItemDateAddedKey, - retain: true, - release: true, -); - -set NSMetadataItemDateAddedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDateAddedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDateAddedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDeliveryTypeKey', -) -external ffi.Pointer _NSMetadataItemDeliveryTypeKey; - -objc.NSString get NSMetadataItemDeliveryTypeKey => objc.NSString.fromPointer( - _NSMetadataItemDeliveryTypeKey, - retain: true, - release: true, -); - -set NSMetadataItemDeliveryTypeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDeliveryTypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDeliveryTypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDescriptionKey', -) -external ffi.Pointer _NSMetadataItemDescriptionKey; - -objc.NSString get NSMetadataItemDescriptionKey => objc.NSString.fromPointer( - _NSMetadataItemDescriptionKey, - retain: true, - release: true, -); - -set NSMetadataItemDescriptionKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDescriptionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDescriptionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDirectorKey', -) -external ffi.Pointer _NSMetadataItemDirectorKey; - -objc.NSString get NSMetadataItemDirectorKey => objc.NSString.fromPointer( - _NSMetadataItemDirectorKey, - retain: true, - release: true, -); - -set NSMetadataItemDirectorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDirectorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDirectorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDisplayNameKey', -) -external ffi.Pointer _NSMetadataItemDisplayNameKey; - -objc.NSString get NSMetadataItemDisplayNameKey => objc.NSString.fromPointer( - _NSMetadataItemDisplayNameKey, - retain: true, - release: true, -); - -set NSMetadataItemDisplayNameKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDisplayNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDisplayNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDownloadedDateKey', -) -external ffi.Pointer _NSMetadataItemDownloadedDateKey; - -objc.NSString get NSMetadataItemDownloadedDateKey => objc.NSString.fromPointer( - _NSMetadataItemDownloadedDateKey, - retain: true, - release: true, -); - -set NSMetadataItemDownloadedDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDownloadedDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDownloadedDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDueDateKey', -) -external ffi.Pointer _NSMetadataItemDueDateKey; - -objc.NSString get NSMetadataItemDueDateKey => objc.NSString.fromPointer( - _NSMetadataItemDueDateKey, - retain: true, - release: true, -); - -set NSMetadataItemDueDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDueDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDueDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDurationSecondsKey', -) -external ffi.Pointer _NSMetadataItemDurationSecondsKey; - -objc.NSString get NSMetadataItemDurationSecondsKey => objc.NSString.fromPointer( - _NSMetadataItemDurationSecondsKey, - retain: true, - release: true, -); - -set NSMetadataItemDurationSecondsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDurationSecondsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDurationSecondsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemEXIFGPSVersionKey', -) -external ffi.Pointer _NSMetadataItemEXIFGPSVersionKey; - -objc.NSString get NSMetadataItemEXIFGPSVersionKey => objc.NSString.fromPointer( - _NSMetadataItemEXIFGPSVersionKey, - retain: true, - release: true, -); - -set NSMetadataItemEXIFGPSVersionKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemEXIFGPSVersionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemEXIFGPSVersionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemEXIFVersionKey', -) -external ffi.Pointer _NSMetadataItemEXIFVersionKey; - -objc.NSString get NSMetadataItemEXIFVersionKey => objc.NSString.fromPointer( - _NSMetadataItemEXIFVersionKey, - retain: true, - release: true, -); - -set NSMetadataItemEXIFVersionKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemEXIFVersionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemEXIFVersionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemEditorsKey', -) -external ffi.Pointer _NSMetadataItemEditorsKey; - -objc.NSString get NSMetadataItemEditorsKey => objc.NSString.fromPointer( - _NSMetadataItemEditorsKey, - retain: true, - release: true, -); - -set NSMetadataItemEditorsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemEditorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemEditorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemEmailAddressesKey', -) -external ffi.Pointer _NSMetadataItemEmailAddressesKey; - -objc.NSString get NSMetadataItemEmailAddressesKey => objc.NSString.fromPointer( - _NSMetadataItemEmailAddressesKey, - retain: true, - release: true, -); - -set NSMetadataItemEmailAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemEmailAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemEmailAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemEncodingApplicationsKey', -) -external ffi.Pointer -_NSMetadataItemEncodingApplicationsKey; - -objc.NSString get NSMetadataItemEncodingApplicationsKey => - objc.NSString.fromPointer( - _NSMetadataItemEncodingApplicationsKey, - retain: true, - release: true, - ); - -set NSMetadataItemEncodingApplicationsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemEncodingApplicationsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemEncodingApplicationsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExecutableArchitecturesKey', -) -external ffi.Pointer -_NSMetadataItemExecutableArchitecturesKey; - -objc.NSString get NSMetadataItemExecutableArchitecturesKey => - objc.NSString.fromPointer( - _NSMetadataItemExecutableArchitecturesKey, - retain: true, - release: true, - ); - -set NSMetadataItemExecutableArchitecturesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExecutableArchitecturesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExecutableArchitecturesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExecutablePlatformKey', -) -external ffi.Pointer _NSMetadataItemExecutablePlatformKey; - -objc.NSString get NSMetadataItemExecutablePlatformKey => - objc.NSString.fromPointer( - _NSMetadataItemExecutablePlatformKey, - retain: true, - release: true, - ); - -set NSMetadataItemExecutablePlatformKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExecutablePlatformKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExecutablePlatformKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExposureModeKey', -) -external ffi.Pointer _NSMetadataItemExposureModeKey; - -objc.NSString get NSMetadataItemExposureModeKey => objc.NSString.fromPointer( - _NSMetadataItemExposureModeKey, - retain: true, - release: true, -); - -set NSMetadataItemExposureModeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExposureModeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExposureModeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExposureProgramKey', -) -external ffi.Pointer _NSMetadataItemExposureProgramKey; - -objc.NSString get NSMetadataItemExposureProgramKey => objc.NSString.fromPointer( - _NSMetadataItemExposureProgramKey, - retain: true, - release: true, -); - -set NSMetadataItemExposureProgramKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExposureProgramKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExposureProgramKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExposureTimeSecondsKey', -) -external ffi.Pointer _NSMetadataItemExposureTimeSecondsKey; - -objc.NSString get NSMetadataItemExposureTimeSecondsKey => - objc.NSString.fromPointer( - _NSMetadataItemExposureTimeSecondsKey, - retain: true, - release: true, - ); - -set NSMetadataItemExposureTimeSecondsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExposureTimeSecondsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExposureTimeSecondsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExposureTimeStringKey', -) -external ffi.Pointer _NSMetadataItemExposureTimeStringKey; - -objc.NSString get NSMetadataItemExposureTimeStringKey => - objc.NSString.fromPointer( - _NSMetadataItemExposureTimeStringKey, - retain: true, - release: true, - ); - -set NSMetadataItemExposureTimeStringKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExposureTimeStringKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExposureTimeStringKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFNumberKey', -) -external ffi.Pointer _NSMetadataItemFNumberKey; - -objc.NSString get NSMetadataItemFNumberKey => objc.NSString.fromPointer( - _NSMetadataItemFNumberKey, - retain: true, - release: true, -); - -set NSMetadataItemFNumberKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFNumberKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFNumberKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFSContentChangeDateKey', -) -external ffi.Pointer _NSMetadataItemFSContentChangeDateKey; - -objc.NSString get NSMetadataItemFSContentChangeDateKey => - objc.NSString.fromPointer( - _NSMetadataItemFSContentChangeDateKey, - retain: true, - release: true, - ); - -set NSMetadataItemFSContentChangeDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFSContentChangeDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFSContentChangeDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFSCreationDateKey', -) -external ffi.Pointer _NSMetadataItemFSCreationDateKey; - -objc.NSString get NSMetadataItemFSCreationDateKey => objc.NSString.fromPointer( - _NSMetadataItemFSCreationDateKey, - retain: true, - release: true, -); - -set NSMetadataItemFSCreationDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFSCreationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFSCreationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemFSNameKey') -external ffi.Pointer _NSMetadataItemFSNameKey; - -objc.NSString get NSMetadataItemFSNameKey => objc.NSString.fromPointer( - _NSMetadataItemFSNameKey, - retain: true, - release: true, -); - -set NSMetadataItemFSNameKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFSNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFSNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemFSSizeKey') -external ffi.Pointer _NSMetadataItemFSSizeKey; - -objc.NSString get NSMetadataItemFSSizeKey => objc.NSString.fromPointer( - _NSMetadataItemFSSizeKey, - retain: true, - release: true, -); - -set NSMetadataItemFSSizeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFSSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFSSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFinderCommentKey', -) -external ffi.Pointer _NSMetadataItemFinderCommentKey; - -objc.NSString get NSMetadataItemFinderCommentKey => objc.NSString.fromPointer( - _NSMetadataItemFinderCommentKey, - retain: true, - release: true, -); - -set NSMetadataItemFinderCommentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFinderCommentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFinderCommentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFlashOnOffKey', -) -external ffi.Pointer _NSMetadataItemFlashOnOffKey; - -objc.NSString get NSMetadataItemFlashOnOffKey => objc.NSString.fromPointer( - _NSMetadataItemFlashOnOffKey, - retain: true, - release: true, -); - -set NSMetadataItemFlashOnOffKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFlashOnOffKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFlashOnOffKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFocalLength35mmKey', -) -external ffi.Pointer _NSMetadataItemFocalLength35mmKey; - -objc.NSString get NSMetadataItemFocalLength35mmKey => objc.NSString.fromPointer( - _NSMetadataItemFocalLength35mmKey, - retain: true, - release: true, -); - -set NSMetadataItemFocalLength35mmKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFocalLength35mmKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFocalLength35mmKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFocalLengthKey', -) -external ffi.Pointer _NSMetadataItemFocalLengthKey; - -objc.NSString get NSMetadataItemFocalLengthKey => objc.NSString.fromPointer( - _NSMetadataItemFocalLengthKey, - retain: true, - release: true, -); - -set NSMetadataItemFocalLengthKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFocalLengthKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFocalLengthKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemFontsKey') -external ffi.Pointer _NSMetadataItemFontsKey; - -objc.NSString get NSMetadataItemFontsKey => objc.NSString.fromPointer( - _NSMetadataItemFontsKey, - retain: true, - release: true, -); - -set NSMetadataItemFontsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFontsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFontsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSAreaInformationKey', -) -external ffi.Pointer _NSMetadataItemGPSAreaInformationKey; - -objc.NSString get NSMetadataItemGPSAreaInformationKey => - objc.NSString.fromPointer( - _NSMetadataItemGPSAreaInformationKey, - retain: true, - release: true, - ); - -set NSMetadataItemGPSAreaInformationKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSAreaInformationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSAreaInformationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemGPSDOPKey') -external ffi.Pointer _NSMetadataItemGPSDOPKey; - -objc.NSString get NSMetadataItemGPSDOPKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDOPKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDOPKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDOPKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDOPKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDateStampKey', -) -external ffi.Pointer _NSMetadataItemGPSDateStampKey; - -objc.NSString get NSMetadataItemGPSDateStampKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDateStampKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDateStampKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDateStampKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDateStampKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDestBearingKey', -) -external ffi.Pointer _NSMetadataItemGPSDestBearingKey; - -objc.NSString get NSMetadataItemGPSDestBearingKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDestBearingKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDestBearingKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDestBearingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDestBearingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDestDistanceKey', -) -external ffi.Pointer _NSMetadataItemGPSDestDistanceKey; - -objc.NSString get NSMetadataItemGPSDestDistanceKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDestDistanceKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDestDistanceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDestDistanceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDestDistanceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDestLatitudeKey', -) -external ffi.Pointer _NSMetadataItemGPSDestLatitudeKey; - -objc.NSString get NSMetadataItemGPSDestLatitudeKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDestLatitudeKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDestLatitudeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDestLatitudeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDestLatitudeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDestLongitudeKey', -) -external ffi.Pointer _NSMetadataItemGPSDestLongitudeKey; - -objc.NSString get NSMetadataItemGPSDestLongitudeKey => - objc.NSString.fromPointer( - _NSMetadataItemGPSDestLongitudeKey, - retain: true, - release: true, - ); - -set NSMetadataItemGPSDestLongitudeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDestLongitudeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDestLongitudeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDifferentalKey', -) -external ffi.Pointer _NSMetadataItemGPSDifferentalKey; - -objc.NSString get NSMetadataItemGPSDifferentalKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDifferentalKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDifferentalKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDifferentalKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDifferentalKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSMapDatumKey', -) -external ffi.Pointer _NSMetadataItemGPSMapDatumKey; - -objc.NSString get NSMetadataItemGPSMapDatumKey => objc.NSString.fromPointer( - _NSMetadataItemGPSMapDatumKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSMapDatumKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSMapDatumKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSMapDatumKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSMeasureModeKey', -) -external ffi.Pointer _NSMetadataItemGPSMeasureModeKey; - -objc.NSString get NSMetadataItemGPSMeasureModeKey => objc.NSString.fromPointer( - _NSMetadataItemGPSMeasureModeKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSMeasureModeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSMeasureModeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSMeasureModeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSProcessingMethodKey', -) -external ffi.Pointer _NSMetadataItemGPSProcessingMethodKey; - -objc.NSString get NSMetadataItemGPSProcessingMethodKey => - objc.NSString.fromPointer( - _NSMetadataItemGPSProcessingMethodKey, - retain: true, - release: true, - ); - -set NSMetadataItemGPSProcessingMethodKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSProcessingMethodKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSProcessingMethodKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSStatusKey', -) -external ffi.Pointer _NSMetadataItemGPSStatusKey; - -objc.NSString get NSMetadataItemGPSStatusKey => objc.NSString.fromPointer( - _NSMetadataItemGPSStatusKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSStatusKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSStatusKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSStatusKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSTrackKey', -) -external ffi.Pointer _NSMetadataItemGPSTrackKey; - -objc.NSString get NSMetadataItemGPSTrackKey => objc.NSString.fromPointer( - _NSMetadataItemGPSTrackKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSTrackKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSTrackKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSTrackKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemGenreKey') -external ffi.Pointer _NSMetadataItemGenreKey; - -objc.NSString get NSMetadataItemGenreKey => objc.NSString.fromPointer( - _NSMetadataItemGenreKey, - retain: true, - release: true, -); - -set NSMetadataItemGenreKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGenreKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGenreKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemHasAlphaChannelKey', -) -external ffi.Pointer _NSMetadataItemHasAlphaChannelKey; - -objc.NSString get NSMetadataItemHasAlphaChannelKey => objc.NSString.fromPointer( - _NSMetadataItemHasAlphaChannelKey, - retain: true, - release: true, -); - -set NSMetadataItemHasAlphaChannelKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemHasAlphaChannelKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemHasAlphaChannelKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemHeadlineKey', -) -external ffi.Pointer _NSMetadataItemHeadlineKey; - -objc.NSString get NSMetadataItemHeadlineKey => objc.NSString.fromPointer( - _NSMetadataItemHeadlineKey, - retain: true, - release: true, -); - -set NSMetadataItemHeadlineKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemHeadlineKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemHeadlineKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemISOSpeedKey', -) -external ffi.Pointer _NSMetadataItemISOSpeedKey; - -objc.NSString get NSMetadataItemISOSpeedKey => objc.NSString.fromPointer( - _NSMetadataItemISOSpeedKey, - retain: true, - release: true, -); - -set NSMetadataItemISOSpeedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemISOSpeedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemISOSpeedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemIdentifierKey', -) -external ffi.Pointer _NSMetadataItemIdentifierKey; - -objc.NSString get NSMetadataItemIdentifierKey => objc.NSString.fromPointer( - _NSMetadataItemIdentifierKey, - retain: true, - release: true, -); - -set NSMetadataItemIdentifierKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemImageDirectionKey', -) -external ffi.Pointer _NSMetadataItemImageDirectionKey; - -objc.NSString get NSMetadataItemImageDirectionKey => objc.NSString.fromPointer( - _NSMetadataItemImageDirectionKey, - retain: true, - release: true, -); - -set NSMetadataItemImageDirectionKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemImageDirectionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemImageDirectionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemInformationKey', -) -external ffi.Pointer _NSMetadataItemInformationKey; - -objc.NSString get NSMetadataItemInformationKey => objc.NSString.fromPointer( - _NSMetadataItemInformationKey, - retain: true, - release: true, -); - -set NSMetadataItemInformationKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemInformationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemInformationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemInstantMessageAddressesKey', -) -external ffi.Pointer -_NSMetadataItemInstantMessageAddressesKey; - -objc.NSString get NSMetadataItemInstantMessageAddressesKey => - objc.NSString.fromPointer( - _NSMetadataItemInstantMessageAddressesKey, - retain: true, - release: true, - ); - -set NSMetadataItemInstantMessageAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemInstantMessageAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemInstantMessageAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemInstructionsKey', -) -external ffi.Pointer _NSMetadataItemInstructionsKey; - -objc.NSString get NSMetadataItemInstructionsKey => objc.NSString.fromPointer( - _NSMetadataItemInstructionsKey, - retain: true, - release: true, -); - -set NSMetadataItemInstructionsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemInstructionsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemInstructionsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemIsApplicationManagedKey', -) -external ffi.Pointer -_NSMetadataItemIsApplicationManagedKey; - -objc.NSString get NSMetadataItemIsApplicationManagedKey => - objc.NSString.fromPointer( - _NSMetadataItemIsApplicationManagedKey, - retain: true, - release: true, - ); - -set NSMetadataItemIsApplicationManagedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemIsApplicationManagedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemIsApplicationManagedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemIsGeneralMIDISequenceKey', -) -external ffi.Pointer -_NSMetadataItemIsGeneralMIDISequenceKey; - -objc.NSString get NSMetadataItemIsGeneralMIDISequenceKey => - objc.NSString.fromPointer( - _NSMetadataItemIsGeneralMIDISequenceKey, - retain: true, - release: true, - ); - -set NSMetadataItemIsGeneralMIDISequenceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemIsGeneralMIDISequenceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemIsGeneralMIDISequenceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemIsLikelyJunkKey', -) -external ffi.Pointer _NSMetadataItemIsLikelyJunkKey; - -objc.NSString get NSMetadataItemIsLikelyJunkKey => objc.NSString.fromPointer( - _NSMetadataItemIsLikelyJunkKey, - retain: true, - release: true, -); - -set NSMetadataItemIsLikelyJunkKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemIsLikelyJunkKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemIsLikelyJunkKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemIsUbiquitousKey', -) -external ffi.Pointer _NSMetadataItemIsUbiquitousKey; - -objc.NSString get NSMetadataItemIsUbiquitousKey => objc.NSString.fromPointer( - _NSMetadataItemIsUbiquitousKey, - retain: true, - release: true, -); - -set NSMetadataItemIsUbiquitousKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemIsUbiquitousKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemIsUbiquitousKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemKeySignatureKey', -) -external ffi.Pointer _NSMetadataItemKeySignatureKey; - -objc.NSString get NSMetadataItemKeySignatureKey => objc.NSString.fromPointer( - _NSMetadataItemKeySignatureKey, - retain: true, - release: true, -); - -set NSMetadataItemKeySignatureKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemKeySignatureKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemKeySignatureKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemKeywordsKey', -) -external ffi.Pointer _NSMetadataItemKeywordsKey; - -objc.NSString get NSMetadataItemKeywordsKey => objc.NSString.fromPointer( - _NSMetadataItemKeywordsKey, - retain: true, - release: true, -); - -set NSMetadataItemKeywordsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemKeywordsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemKeywordsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemKindKey') -external ffi.Pointer _NSMetadataItemKindKey; - -objc.NSString get NSMetadataItemKindKey => objc.NSString.fromPointer( - _NSMetadataItemKindKey, - retain: true, - release: true, -); - -set NSMetadataItemKindKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemKindKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemKindKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLanguagesKey', -) -external ffi.Pointer _NSMetadataItemLanguagesKey; - -objc.NSString get NSMetadataItemLanguagesKey => objc.NSString.fromPointer( - _NSMetadataItemLanguagesKey, - retain: true, - release: true, -); - -set NSMetadataItemLanguagesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLanguagesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLanguagesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLastUsedDateKey', -) -external ffi.Pointer _NSMetadataItemLastUsedDateKey; - -objc.NSString get NSMetadataItemLastUsedDateKey => objc.NSString.fromPointer( - _NSMetadataItemLastUsedDateKey, - retain: true, - release: true, -); - -set NSMetadataItemLastUsedDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLastUsedDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLastUsedDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLatitudeKey', -) -external ffi.Pointer _NSMetadataItemLatitudeKey; - -objc.NSString get NSMetadataItemLatitudeKey => objc.NSString.fromPointer( - _NSMetadataItemLatitudeKey, - retain: true, - release: true, -); - -set NSMetadataItemLatitudeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLatitudeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLatitudeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLayerNamesKey', -) -external ffi.Pointer _NSMetadataItemLayerNamesKey; - -objc.NSString get NSMetadataItemLayerNamesKey => objc.NSString.fromPointer( - _NSMetadataItemLayerNamesKey, - retain: true, - release: true, -); - -set NSMetadataItemLayerNamesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLayerNamesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLayerNamesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLensModelKey', -) -external ffi.Pointer _NSMetadataItemLensModelKey; - -objc.NSString get NSMetadataItemLensModelKey => objc.NSString.fromPointer( - _NSMetadataItemLensModelKey, - retain: true, - release: true, -); - -set NSMetadataItemLensModelKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLensModelKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLensModelKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLongitudeKey', -) -external ffi.Pointer _NSMetadataItemLongitudeKey; - -objc.NSString get NSMetadataItemLongitudeKey => objc.NSString.fromPointer( - _NSMetadataItemLongitudeKey, - retain: true, - release: true, -); - -set NSMetadataItemLongitudeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLongitudeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLongitudeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLyricistKey', -) -external ffi.Pointer _NSMetadataItemLyricistKey; - -objc.NSString get NSMetadataItemLyricistKey => objc.NSString.fromPointer( - _NSMetadataItemLyricistKey, - retain: true, - release: true, -); - -set NSMetadataItemLyricistKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLyricistKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLyricistKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMaxApertureKey', -) -external ffi.Pointer _NSMetadataItemMaxApertureKey; - -objc.NSString get NSMetadataItemMaxApertureKey => objc.NSString.fromPointer( - _NSMetadataItemMaxApertureKey, - retain: true, - release: true, -); - -set NSMetadataItemMaxApertureKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMaxApertureKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMaxApertureKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMediaTypesKey', -) -external ffi.Pointer _NSMetadataItemMediaTypesKey; - -objc.NSString get NSMetadataItemMediaTypesKey => objc.NSString.fromPointer( - _NSMetadataItemMediaTypesKey, - retain: true, - release: true, -); - -set NSMetadataItemMediaTypesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMediaTypesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMediaTypesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMeteringModeKey', -) -external ffi.Pointer _NSMetadataItemMeteringModeKey; - -objc.NSString get NSMetadataItemMeteringModeKey => objc.NSString.fromPointer( - _NSMetadataItemMeteringModeKey, - retain: true, - release: true, -); - -set NSMetadataItemMeteringModeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMeteringModeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMeteringModeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMusicalGenreKey', -) -external ffi.Pointer _NSMetadataItemMusicalGenreKey; - -objc.NSString get NSMetadataItemMusicalGenreKey => objc.NSString.fromPointer( - _NSMetadataItemMusicalGenreKey, - retain: true, - release: true, -); - -set NSMetadataItemMusicalGenreKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMusicalGenreKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMusicalGenreKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMusicalInstrumentCategoryKey', -) -external ffi.Pointer -_NSMetadataItemMusicalInstrumentCategoryKey; - -objc.NSString get NSMetadataItemMusicalInstrumentCategoryKey => - objc.NSString.fromPointer( - _NSMetadataItemMusicalInstrumentCategoryKey, - retain: true, - release: true, - ); - -set NSMetadataItemMusicalInstrumentCategoryKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMusicalInstrumentCategoryKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMusicalInstrumentCategoryKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMusicalInstrumentNameKey', -) -external ffi.Pointer -_NSMetadataItemMusicalInstrumentNameKey; - -objc.NSString get NSMetadataItemMusicalInstrumentNameKey => - objc.NSString.fromPointer( - _NSMetadataItemMusicalInstrumentNameKey, - retain: true, - release: true, - ); - -set NSMetadataItemMusicalInstrumentNameKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMusicalInstrumentNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMusicalInstrumentNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemNamedLocationKey', -) -external ffi.Pointer _NSMetadataItemNamedLocationKey; - -objc.NSString get NSMetadataItemNamedLocationKey => objc.NSString.fromPointer( - _NSMetadataItemNamedLocationKey, - retain: true, - release: true, -); - -set NSMetadataItemNamedLocationKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemNamedLocationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemNamedLocationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemNumberOfPagesKey', -) -external ffi.Pointer _NSMetadataItemNumberOfPagesKey; - -objc.NSString get NSMetadataItemNumberOfPagesKey => objc.NSString.fromPointer( - _NSMetadataItemNumberOfPagesKey, - retain: true, - release: true, -); - -set NSMetadataItemNumberOfPagesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemNumberOfPagesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemNumberOfPagesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemOrganizationsKey', -) -external ffi.Pointer _NSMetadataItemOrganizationsKey; - -objc.NSString get NSMetadataItemOrganizationsKey => objc.NSString.fromPointer( - _NSMetadataItemOrganizationsKey, - retain: true, - release: true, -); - -set NSMetadataItemOrganizationsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemOrganizationsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemOrganizationsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemOrientationKey', -) -external ffi.Pointer _NSMetadataItemOrientationKey; - -objc.NSString get NSMetadataItemOrientationKey => objc.NSString.fromPointer( - _NSMetadataItemOrientationKey, - retain: true, - release: true, -); - -set NSMetadataItemOrientationKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemOrientationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemOrientationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemOriginalFormatKey', -) -external ffi.Pointer _NSMetadataItemOriginalFormatKey; - -objc.NSString get NSMetadataItemOriginalFormatKey => objc.NSString.fromPointer( - _NSMetadataItemOriginalFormatKey, - retain: true, - release: true, -); - -set NSMetadataItemOriginalFormatKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemOriginalFormatKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemOriginalFormatKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemOriginalSourceKey', -) -external ffi.Pointer _NSMetadataItemOriginalSourceKey; - -objc.NSString get NSMetadataItemOriginalSourceKey => objc.NSString.fromPointer( - _NSMetadataItemOriginalSourceKey, - retain: true, - release: true, -); - -set NSMetadataItemOriginalSourceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemOriginalSourceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemOriginalSourceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPageHeightKey', -) -external ffi.Pointer _NSMetadataItemPageHeightKey; - -objc.NSString get NSMetadataItemPageHeightKey => objc.NSString.fromPointer( - _NSMetadataItemPageHeightKey, - retain: true, - release: true, -); - -set NSMetadataItemPageHeightKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPageHeightKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPageHeightKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPageWidthKey', -) -external ffi.Pointer _NSMetadataItemPageWidthKey; - -objc.NSString get NSMetadataItemPageWidthKey => objc.NSString.fromPointer( - _NSMetadataItemPageWidthKey, - retain: true, - release: true, -); - -set NSMetadataItemPageWidthKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPageWidthKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPageWidthKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemParticipantsKey', -) -external ffi.Pointer _NSMetadataItemParticipantsKey; - -objc.NSString get NSMetadataItemParticipantsKey => objc.NSString.fromPointer( - _NSMetadataItemParticipantsKey, - retain: true, - release: true, -); - -set NSMetadataItemParticipantsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemParticipantsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemParticipantsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemPathKey') -external ffi.Pointer _NSMetadataItemPathKey; - -objc.NSString get NSMetadataItemPathKey => objc.NSString.fromPointer( - _NSMetadataItemPathKey, - retain: true, - release: true, -); - -set NSMetadataItemPathKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPathKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPathKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPerformersKey', -) -external ffi.Pointer _NSMetadataItemPerformersKey; - -objc.NSString get NSMetadataItemPerformersKey => objc.NSString.fromPointer( - _NSMetadataItemPerformersKey, - retain: true, - release: true, -); - -set NSMetadataItemPerformersKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPerformersKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPerformersKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPhoneNumbersKey', -) -external ffi.Pointer _NSMetadataItemPhoneNumbersKey; - -objc.NSString get NSMetadataItemPhoneNumbersKey => objc.NSString.fromPointer( - _NSMetadataItemPhoneNumbersKey, - retain: true, - release: true, -); - -set NSMetadataItemPhoneNumbersKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPhoneNumbersKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPhoneNumbersKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPixelCountKey', -) -external ffi.Pointer _NSMetadataItemPixelCountKey; - -objc.NSString get NSMetadataItemPixelCountKey => objc.NSString.fromPointer( - _NSMetadataItemPixelCountKey, - retain: true, - release: true, -); - -set NSMetadataItemPixelCountKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPixelCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPixelCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPixelHeightKey', -) -external ffi.Pointer _NSMetadataItemPixelHeightKey; - -objc.NSString get NSMetadataItemPixelHeightKey => objc.NSString.fromPointer( - _NSMetadataItemPixelHeightKey, - retain: true, - release: true, -); - -set NSMetadataItemPixelHeightKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPixelHeightKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPixelHeightKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPixelWidthKey', -) -external ffi.Pointer _NSMetadataItemPixelWidthKey; - -objc.NSString get NSMetadataItemPixelWidthKey => objc.NSString.fromPointer( - _NSMetadataItemPixelWidthKey, - retain: true, - release: true, -); - -set NSMetadataItemPixelWidthKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPixelWidthKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPixelWidthKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemProducerKey', -) -external ffi.Pointer _NSMetadataItemProducerKey; - -objc.NSString get NSMetadataItemProducerKey => objc.NSString.fromPointer( - _NSMetadataItemProducerKey, - retain: true, - release: true, -); - -set NSMetadataItemProducerKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemProducerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemProducerKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemProfileNameKey', -) -external ffi.Pointer _NSMetadataItemProfileNameKey; - -objc.NSString get NSMetadataItemProfileNameKey => objc.NSString.fromPointer( - _NSMetadataItemProfileNameKey, - retain: true, - release: true, -); - -set NSMetadataItemProfileNameKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemProfileNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemProfileNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemProjectsKey', -) -external ffi.Pointer _NSMetadataItemProjectsKey; - -objc.NSString get NSMetadataItemProjectsKey => objc.NSString.fromPointer( - _NSMetadataItemProjectsKey, - retain: true, - release: true, -); - -set NSMetadataItemProjectsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemProjectsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemProjectsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPublishersKey', -) -external ffi.Pointer _NSMetadataItemPublishersKey; - -objc.NSString get NSMetadataItemPublishersKey => objc.NSString.fromPointer( - _NSMetadataItemPublishersKey, - retain: true, - release: true, -); - -set NSMetadataItemPublishersKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPublishersKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPublishersKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRecipientAddressesKey', -) -external ffi.Pointer _NSMetadataItemRecipientAddressesKey; - -objc.NSString get NSMetadataItemRecipientAddressesKey => - objc.NSString.fromPointer( - _NSMetadataItemRecipientAddressesKey, - retain: true, - release: true, - ); - -set NSMetadataItemRecipientAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRecipientAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRecipientAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRecipientEmailAddressesKey', -) -external ffi.Pointer -_NSMetadataItemRecipientEmailAddressesKey; - -objc.NSString get NSMetadataItemRecipientEmailAddressesKey => - objc.NSString.fromPointer( - _NSMetadataItemRecipientEmailAddressesKey, - retain: true, - release: true, - ); - -set NSMetadataItemRecipientEmailAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRecipientEmailAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRecipientEmailAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRecipientsKey', -) -external ffi.Pointer _NSMetadataItemRecipientsKey; - -objc.NSString get NSMetadataItemRecipientsKey => objc.NSString.fromPointer( - _NSMetadataItemRecipientsKey, - retain: true, - release: true, -); - -set NSMetadataItemRecipientsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRecipientsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRecipientsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRecordingDateKey', -) -external ffi.Pointer _NSMetadataItemRecordingDateKey; - -objc.NSString get NSMetadataItemRecordingDateKey => objc.NSString.fromPointer( - _NSMetadataItemRecordingDateKey, - retain: true, - release: true, -); - -set NSMetadataItemRecordingDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRecordingDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRecordingDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRecordingYearKey', -) -external ffi.Pointer _NSMetadataItemRecordingYearKey; - -objc.NSString get NSMetadataItemRecordingYearKey => objc.NSString.fromPointer( - _NSMetadataItemRecordingYearKey, - retain: true, - release: true, -); - -set NSMetadataItemRecordingYearKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRecordingYearKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRecordingYearKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRedEyeOnOffKey', -) -external ffi.Pointer _NSMetadataItemRedEyeOnOffKey; - -objc.NSString get NSMetadataItemRedEyeOnOffKey => objc.NSString.fromPointer( - _NSMetadataItemRedEyeOnOffKey, - retain: true, - release: true, -); - -set NSMetadataItemRedEyeOnOffKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRedEyeOnOffKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRedEyeOnOffKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemResolutionHeightDPIKey', -) -external ffi.Pointer _NSMetadataItemResolutionHeightDPIKey; - -objc.NSString get NSMetadataItemResolutionHeightDPIKey => - objc.NSString.fromPointer( - _NSMetadataItemResolutionHeightDPIKey, - retain: true, - release: true, - ); - -set NSMetadataItemResolutionHeightDPIKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemResolutionHeightDPIKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemResolutionHeightDPIKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemResolutionWidthDPIKey', -) -external ffi.Pointer _NSMetadataItemResolutionWidthDPIKey; - -objc.NSString get NSMetadataItemResolutionWidthDPIKey => - objc.NSString.fromPointer( - _NSMetadataItemResolutionWidthDPIKey, - retain: true, - release: true, - ); - -set NSMetadataItemResolutionWidthDPIKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemResolutionWidthDPIKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemResolutionWidthDPIKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemRightsKey') -external ffi.Pointer _NSMetadataItemRightsKey; - -objc.NSString get NSMetadataItemRightsKey => objc.NSString.fromPointer( - _NSMetadataItemRightsKey, - retain: true, - release: true, -); - -set NSMetadataItemRightsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRightsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRightsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemSecurityMethodKey', -) -external ffi.Pointer _NSMetadataItemSecurityMethodKey; - -objc.NSString get NSMetadataItemSecurityMethodKey => objc.NSString.fromPointer( - _NSMetadataItemSecurityMethodKey, - retain: true, - release: true, -); - -set NSMetadataItemSecurityMethodKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemSecurityMethodKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemSecurityMethodKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemSpeedKey') -external ffi.Pointer _NSMetadataItemSpeedKey; - -objc.NSString get NSMetadataItemSpeedKey => objc.NSString.fromPointer( - _NSMetadataItemSpeedKey, - retain: true, - release: true, -); - -set NSMetadataItemSpeedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemSpeedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemSpeedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemStarRatingKey', -) -external ffi.Pointer _NSMetadataItemStarRatingKey; - -objc.NSString get NSMetadataItemStarRatingKey => objc.NSString.fromPointer( - _NSMetadataItemStarRatingKey, - retain: true, - release: true, -); - -set NSMetadataItemStarRatingKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemStarRatingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemStarRatingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemStateOrProvinceKey', -) -external ffi.Pointer _NSMetadataItemStateOrProvinceKey; - -objc.NSString get NSMetadataItemStateOrProvinceKey => objc.NSString.fromPointer( - _NSMetadataItemStateOrProvinceKey, - retain: true, - release: true, -); - -set NSMetadataItemStateOrProvinceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemStateOrProvinceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemStateOrProvinceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemStreamableKey', -) -external ffi.Pointer _NSMetadataItemStreamableKey; - -objc.NSString get NSMetadataItemStreamableKey => objc.NSString.fromPointer( - _NSMetadataItemStreamableKey, - retain: true, - release: true, -); - -set NSMetadataItemStreamableKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemStreamableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemStreamableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemSubjectKey', -) -external ffi.Pointer _NSMetadataItemSubjectKey; - -objc.NSString get NSMetadataItemSubjectKey => objc.NSString.fromPointer( - _NSMetadataItemSubjectKey, - retain: true, - release: true, -); - -set NSMetadataItemSubjectKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemSubjectKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemSubjectKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemTempoKey') -external ffi.Pointer _NSMetadataItemTempoKey; - -objc.NSString get NSMetadataItemTempoKey => objc.NSString.fromPointer( - _NSMetadataItemTempoKey, - retain: true, - release: true, -); - -set NSMetadataItemTempoKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTempoKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTempoKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemTextContentKey', -) -external ffi.Pointer _NSMetadataItemTextContentKey; - -objc.NSString get NSMetadataItemTextContentKey => objc.NSString.fromPointer( - _NSMetadataItemTextContentKey, - retain: true, - release: true, -); - -set NSMetadataItemTextContentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTextContentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTextContentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemThemeKey') -external ffi.Pointer _NSMetadataItemThemeKey; - -objc.NSString get NSMetadataItemThemeKey => objc.NSString.fromPointer( - _NSMetadataItemThemeKey, - retain: true, - release: true, -); - -set NSMetadataItemThemeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemThemeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemThemeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemTimeSignatureKey', -) -external ffi.Pointer _NSMetadataItemTimeSignatureKey; - -objc.NSString get NSMetadataItemTimeSignatureKey => objc.NSString.fromPointer( - _NSMetadataItemTimeSignatureKey, - retain: true, - release: true, -); - -set NSMetadataItemTimeSignatureKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTimeSignatureKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTimeSignatureKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemTimestampKey', -) -external ffi.Pointer _NSMetadataItemTimestampKey; - -objc.NSString get NSMetadataItemTimestampKey => objc.NSString.fromPointer( - _NSMetadataItemTimestampKey, - retain: true, - release: true, -); - -set NSMetadataItemTimestampKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTimestampKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTimestampKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemTitleKey') -external ffi.Pointer _NSMetadataItemTitleKey; - -objc.NSString get NSMetadataItemTitleKey => objc.NSString.fromPointer( - _NSMetadataItemTitleKey, - retain: true, - release: true, -); - -set NSMetadataItemTitleKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTitleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTitleKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemTotalBitRateKey', -) -external ffi.Pointer _NSMetadataItemTotalBitRateKey; - -objc.NSString get NSMetadataItemTotalBitRateKey => objc.NSString.fromPointer( - _NSMetadataItemTotalBitRateKey, - retain: true, - release: true, -); - -set NSMetadataItemTotalBitRateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTotalBitRateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTotalBitRateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemURLKey') -external ffi.Pointer _NSMetadataItemURLKey; - -objc.NSString get NSMetadataItemURLKey => objc.NSString.fromPointer( - _NSMetadataItemURLKey, - retain: true, - release: true, -); - -set NSMetadataItemURLKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemURLKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemURLKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemVersionKey', -) -external ffi.Pointer _NSMetadataItemVersionKey; - -objc.NSString get NSMetadataItemVersionKey => objc.NSString.fromPointer( - _NSMetadataItemVersionKey, - retain: true, - release: true, -); - -set NSMetadataItemVersionKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemVersionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemVersionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemVideoBitRateKey', -) -external ffi.Pointer _NSMetadataItemVideoBitRateKey; - -objc.NSString get NSMetadataItemVideoBitRateKey => objc.NSString.fromPointer( - _NSMetadataItemVideoBitRateKey, - retain: true, - release: true, -); - -set NSMetadataItemVideoBitRateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemVideoBitRateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemVideoBitRateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemWhereFromsKey', -) -external ffi.Pointer _NSMetadataItemWhereFromsKey; - -objc.NSString get NSMetadataItemWhereFromsKey => objc.NSString.fromPointer( - _NSMetadataItemWhereFromsKey, - retain: true, - release: true, -); - -set NSMetadataItemWhereFromsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemWhereFromsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemWhereFromsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemWhiteBalanceKey', -) -external ffi.Pointer _NSMetadataItemWhiteBalanceKey; - -objc.NSString get NSMetadataItemWhiteBalanceKey => objc.NSString.fromPointer( - _NSMetadataItemWhiteBalanceKey, - retain: true, - release: true, -); - -set NSMetadataItemWhiteBalanceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemWhiteBalanceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemWhiteBalanceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope', -) -external ffi.Pointer -_NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope; - -objc.NSString get NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope => - objc.NSString.fromPointer( - _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, - retain: true, - release: true, - ); - -set NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope( - objc.NSString value, -) { - objc.NSString.fromPointer( - _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSMetadataQueryDidFinishGatheringNotification', -) -external NSNotificationName _NSMetadataQueryDidFinishGatheringNotification; - -DartNSNotificationName get NSMetadataQueryDidFinishGatheringNotification => - objc.NSString.fromPointer( - _NSMetadataQueryDidFinishGatheringNotification, - retain: true, - release: true, - ); - -set NSMetadataQueryDidFinishGatheringNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSMetadataQueryDidFinishGatheringNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryDidFinishGatheringNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSMetadataQueryDidStartGatheringNotification', -) -external NSNotificationName _NSMetadataQueryDidStartGatheringNotification; - -DartNSNotificationName get NSMetadataQueryDidStartGatheringNotification => - objc.NSString.fromPointer( - _NSMetadataQueryDidStartGatheringNotification, - retain: true, - release: true, - ); - -set NSMetadataQueryDidStartGatheringNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSMetadataQueryDidStartGatheringNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryDidStartGatheringNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSMetadataQueryDidUpdateNotification') -external NSNotificationName _NSMetadataQueryDidUpdateNotification; - -DartNSNotificationName get NSMetadataQueryDidUpdateNotification => - objc.NSString.fromPointer( - _NSMetadataQueryDidUpdateNotification, - retain: true, - release: true, - ); - -set NSMetadataQueryDidUpdateNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSMetadataQueryDidUpdateNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryDidUpdateNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSMetadataQueryGatheringProgressNotification', -) -external NSNotificationName _NSMetadataQueryGatheringProgressNotification; - -DartNSNotificationName get NSMetadataQueryGatheringProgressNotification => - objc.NSString.fromPointer( - _NSMetadataQueryGatheringProgressNotification, - retain: true, - release: true, - ); - -set NSMetadataQueryGatheringProgressNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSMetadataQueryGatheringProgressNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryGatheringProgressNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryIndexedLocalComputerScope', -) -external ffi.Pointer -_NSMetadataQueryIndexedLocalComputerScope; - -objc.NSString get NSMetadataQueryIndexedLocalComputerScope => - objc.NSString.fromPointer( - _NSMetadataQueryIndexedLocalComputerScope, - retain: true, - release: true, - ); - -set NSMetadataQueryIndexedLocalComputerScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryIndexedLocalComputerScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryIndexedLocalComputerScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryIndexedNetworkScope', -) -external ffi.Pointer _NSMetadataQueryIndexedNetworkScope; - -objc.NSString get NSMetadataQueryIndexedNetworkScope => - objc.NSString.fromPointer( - _NSMetadataQueryIndexedNetworkScope, - retain: true, - release: true, - ); - -set NSMetadataQueryIndexedNetworkScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryIndexedNetworkScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryIndexedNetworkScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryLocalComputerScope', -) -external ffi.Pointer _NSMetadataQueryLocalComputerScope; - -objc.NSString get NSMetadataQueryLocalComputerScope => - objc.NSString.fromPointer( - _NSMetadataQueryLocalComputerScope, - retain: true, - release: true, - ); - -set NSMetadataQueryLocalComputerScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryLocalComputerScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryLocalComputerScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryNetworkScope', -) -external ffi.Pointer _NSMetadataQueryNetworkScope; - -objc.NSString get NSMetadataQueryNetworkScope => objc.NSString.fromPointer( - _NSMetadataQueryNetworkScope, - retain: true, - release: true, -); - -set NSMetadataQueryNetworkScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryNetworkScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryNetworkScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryResultContentRelevanceAttribute', -) -external ffi.Pointer -_NSMetadataQueryResultContentRelevanceAttribute; - -objc.NSString get NSMetadataQueryResultContentRelevanceAttribute => - objc.NSString.fromPointer( - _NSMetadataQueryResultContentRelevanceAttribute, - retain: true, - release: true, - ); - -set NSMetadataQueryResultContentRelevanceAttribute(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryResultContentRelevanceAttribute, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryResultContentRelevanceAttribute = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUbiquitousDataScope', -) -external ffi.Pointer _NSMetadataQueryUbiquitousDataScope; - -objc.NSString get NSMetadataQueryUbiquitousDataScope => - objc.NSString.fromPointer( - _NSMetadataQueryUbiquitousDataScope, - retain: true, - release: true, - ); - -set NSMetadataQueryUbiquitousDataScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUbiquitousDataScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUbiquitousDataScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUbiquitousDocumentsScope', -) -external ffi.Pointer -_NSMetadataQueryUbiquitousDocumentsScope; - -objc.NSString get NSMetadataQueryUbiquitousDocumentsScope => - objc.NSString.fromPointer( - _NSMetadataQueryUbiquitousDocumentsScope, - retain: true, - release: true, - ); - -set NSMetadataQueryUbiquitousDocumentsScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUbiquitousDocumentsScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUbiquitousDocumentsScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUpdateAddedItemsKey', -) -external ffi.Pointer _NSMetadataQueryUpdateAddedItemsKey; - -objc.NSString get NSMetadataQueryUpdateAddedItemsKey => - objc.NSString.fromPointer( - _NSMetadataQueryUpdateAddedItemsKey, - retain: true, - release: true, - ); - -set NSMetadataQueryUpdateAddedItemsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUpdateAddedItemsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUpdateAddedItemsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUpdateChangedItemsKey', -) -external ffi.Pointer _NSMetadataQueryUpdateChangedItemsKey; - -objc.NSString get NSMetadataQueryUpdateChangedItemsKey => - objc.NSString.fromPointer( - _NSMetadataQueryUpdateChangedItemsKey, - retain: true, - release: true, - ); - -set NSMetadataQueryUpdateChangedItemsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUpdateChangedItemsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUpdateChangedItemsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUpdateRemovedItemsKey', -) -external ffi.Pointer _NSMetadataQueryUpdateRemovedItemsKey; - -objc.NSString get NSMetadataQueryUpdateRemovedItemsKey => - objc.NSString.fromPointer( - _NSMetadataQueryUpdateRemovedItemsKey, - retain: true, - release: true, - ); - -set NSMetadataQueryUpdateRemovedItemsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUpdateRemovedItemsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUpdateRemovedItemsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUserHomeScope', -) -external ffi.Pointer _NSMetadataQueryUserHomeScope; - -objc.NSString get NSMetadataQueryUserHomeScope => objc.NSString.fromPointer( - _NSMetadataQueryUserHomeScope, - retain: true, - release: true, -); - -set NSMetadataQueryUserHomeScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUserHomeScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUserHomeScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemContainerDisplayNameKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemContainerDisplayNameKey; - -objc.NSString get NSMetadataUbiquitousItemContainerDisplayNameKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemContainerDisplayNameKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemContainerDisplayNameKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemContainerDisplayNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemContainerDisplayNameKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadRequestedKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadRequestedKey; - -objc.NSString get NSMetadataUbiquitousItemDownloadRequestedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadRequestedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadRequestedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadRequestedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadRequestedKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadingErrorKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadingErrorKey; - -objc.NSString get NSMetadataUbiquitousItemDownloadingErrorKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingErrorKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadingErrorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadingErrorKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadingStatusCurrent', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadingStatusCurrent; - -objc.NSString get NSMetadataUbiquitousItemDownloadingStatusCurrent => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusCurrent, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadingStatusCurrent(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusCurrent, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadingStatusCurrent = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadingStatusDownloaded', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadingStatusDownloaded; - -objc.NSString get NSMetadataUbiquitousItemDownloadingStatusDownloaded => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusDownloaded, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadingStatusDownloaded(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusDownloaded, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadingStatusDownloaded = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadingStatusKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadingStatusKey; - -objc.NSString get NSMetadataUbiquitousItemDownloadingStatusKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadingStatusKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadingStatusKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadingStatusNotDownloaded', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadingStatusNotDownloaded; - -objc.NSString get NSMetadataUbiquitousItemDownloadingStatusNotDownloaded => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadingStatusNotDownloaded( - objc.NSString value, -) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemHasUnresolvedConflictsKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemHasUnresolvedConflictsKey; - -objc.NSString get NSMetadataUbiquitousItemHasUnresolvedConflictsKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemHasUnresolvedConflictsKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemHasUnresolvedConflictsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemHasUnresolvedConflictsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemHasUnresolvedConflictsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsDownloadedKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemIsDownloadedKey; - -objc.NSString get NSMetadataUbiquitousItemIsDownloadedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsDownloadedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsDownloadedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsDownloadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsDownloadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsDownloadingKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemIsDownloadingKey; - -objc.NSString get NSMetadataUbiquitousItemIsDownloadingKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsDownloadingKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsDownloadingKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsDownloadingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsDownloadingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsExternalDocumentKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemIsExternalDocumentKey; - -objc.NSString get NSMetadataUbiquitousItemIsExternalDocumentKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsExternalDocumentKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsExternalDocumentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsExternalDocumentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsExternalDocumentKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsSharedKey', -) -external ffi.Pointer _NSMetadataUbiquitousItemIsSharedKey; - -objc.NSString get NSMetadataUbiquitousItemIsSharedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsSharedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsSharedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsSharedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsSharedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsUploadedKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemIsUploadedKey; - -objc.NSString get NSMetadataUbiquitousItemIsUploadedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsUploadedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsUploadedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsUploadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsUploadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsUploadingKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemIsUploadingKey; - -objc.NSString get NSMetadataUbiquitousItemIsUploadingKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsUploadingKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsUploadingKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsUploadingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsUploadingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemPercentDownloadedKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemPercentDownloadedKey; - -objc.NSString get NSMetadataUbiquitousItemPercentDownloadedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemPercentDownloadedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemPercentDownloadedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemPercentDownloadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemPercentDownloadedKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemPercentUploadedKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemPercentUploadedKey; - -objc.NSString get NSMetadataUbiquitousItemPercentUploadedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemPercentUploadedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemPercentUploadedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemPercentUploadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemPercentUploadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemURLInLocalContainerKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemURLInLocalContainerKey; - -objc.NSString get NSMetadataUbiquitousItemURLInLocalContainerKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemURLInLocalContainerKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemURLInLocalContainerKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemURLInLocalContainerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemURLInLocalContainerKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemUploadingErrorKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemUploadingErrorKey; - -objc.NSString get NSMetadataUbiquitousItemUploadingErrorKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemUploadingErrorKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemUploadingErrorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemUploadingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemUploadingErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey; - -objc.NSString get NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey( - objc.NSString value, -) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemCurrentUserRoleKey', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemCurrentUserRoleKey; - -objc.NSString get NSMetadataUbiquitousSharedItemCurrentUserRoleKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemCurrentUserRoleKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemCurrentUserRoleKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemCurrentUserRoleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemCurrentUserRoleKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey; - -objc.NSString -get NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey( - objc.NSString value, -) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemOwnerNameComponentsKey', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemOwnerNameComponentsKey; - -objc.NSString get NSMetadataUbiquitousSharedItemOwnerNameComponentsKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemOwnerNameComponentsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemPermissionsReadOnly', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemPermissionsReadOnly; - -objc.NSString get NSMetadataUbiquitousSharedItemPermissionsReadOnly => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemPermissionsReadOnly, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemPermissionsReadOnly(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemPermissionsReadOnly, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemPermissionsReadOnly = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemPermissionsReadWrite', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemPermissionsReadWrite; - -objc.NSString get NSMetadataUbiquitousSharedItemPermissionsReadWrite => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemPermissionsReadWrite, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemPermissionsReadWrite(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemPermissionsReadWrite, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemPermissionsReadWrite = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemRoleOwner', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemRoleOwner; - -objc.NSString get NSMetadataUbiquitousSharedItemRoleOwner => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemRoleOwner, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemRoleOwner(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemRoleOwner, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemRoleOwner = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemRoleParticipant', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemRoleParticipant; - -objc.NSString get NSMetadataUbiquitousSharedItemRoleParticipant => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemRoleParticipant, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemRoleParticipant(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemRoleParticipant, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemRoleParticipant = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSMinimumKeyValueOperator') -external NSKeyValueOperator _NSMinimumKeyValueOperator; - -DartNSKeyValueOperator get NSMinimumKeyValueOperator => - objc.NSString.fromPointer( - _NSMinimumKeyValueOperator, - retain: true, - release: true, - ); - -set NSMinimumKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSMinimumKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMinimumKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMonthNameArray') -external ffi.Pointer _NSMonthNameArray; - -objc.NSString get NSMonthNameArray => - objc.NSString.fromPointer(_NSMonthNameArray, retain: true, release: true); - -set NSMonthNameArray(objc.NSString value) { - objc.NSString.fromPointer( - _NSMonthNameArray, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMonthNameArray = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSMorphologyAttributeName') -external NSAttributedStringKey _NSMorphologyAttributeName; - -DartNSAttributedStringKey get NSMorphologyAttributeName => - objc.NSString.fromPointer( - _NSMorphologyAttributeName, - retain: true, - release: true, - ); - -set NSMorphologyAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSMorphologyAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMorphologyAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external bool NSMouseInRect(NSPoint aPoint, NSRect aRect, bool flipped); - -@ffi.Native(symbol: 'NSMultipleUnderlyingErrorsKey') -external NSErrorUserInfoKey _NSMultipleUnderlyingErrorsKey; - -DartNSErrorUserInfoKey get NSMultipleUnderlyingErrorsKey => - objc.NSString.fromPointer( - _NSMultipleUnderlyingErrorsKey, - retain: true, - release: true, - ); - -set NSMultipleUnderlyingErrorsKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSMultipleUnderlyingErrorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMultipleUnderlyingErrorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSNegateBooleanTransformerName') -external NSValueTransformerName _NSNegateBooleanTransformerName; - -DartNSValueTransformerName get NSNegateBooleanTransformerName => - objc.NSString.fromPointer( - _NSNegateBooleanTransformerName, - retain: true, - release: true, - ); - -set NSNegateBooleanTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSNegateBooleanTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNegateBooleanTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSNegativeCurrencyFormatString', -) -external ffi.Pointer _NSNegativeCurrencyFormatString; - -objc.NSString get NSNegativeCurrencyFormatString => objc.NSString.fromPointer( - _NSNegativeCurrencyFormatString, - retain: true, - release: true, -); - -set NSNegativeCurrencyFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSNegativeCurrencyFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNegativeCurrencyFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSNetServicesErrorCode') -external ffi.Pointer _NSNetServicesErrorCode; - -objc.NSString get NSNetServicesErrorCode => objc.NSString.fromPointer( - _NSNetServicesErrorCode, - retain: true, - release: true, -); - -set NSNetServicesErrorCode(objc.NSString value) { - objc.NSString.fromPointer( - _NSNetServicesErrorCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNetServicesErrorCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSNetServicesErrorDomain') -external NSErrorDomain _NSNetServicesErrorDomain; - -DartNSErrorDomain get NSNetServicesErrorDomain => objc.NSString.fromPointer( - _NSNetServicesErrorDomain, - retain: true, - release: true, -); - -set NSNetServicesErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSNetServicesErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNetServicesErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSNextDayDesignations') -external ffi.Pointer _NSNextDayDesignations; - -objc.NSString get NSNextDayDesignations => objc.NSString.fromPointer( - _NSNextDayDesignations, - retain: true, - release: true, -); - -set NSNextDayDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSNextDayDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNextDayDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer NSNextHashEnumeratorItem( - ffi.Pointer enumerator, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external bool NSNextMapEnumeratorPair( - ffi.Pointer enumerator, - ffi.Pointer> key, - ffi.Pointer> value, -); - -@ffi.Native>( - symbol: 'NSNextNextDayDesignations', -) -external ffi.Pointer _NSNextNextDayDesignations; - -objc.NSString get NSNextNextDayDesignations => objc.NSString.fromPointer( - _NSNextNextDayDesignations, - retain: true, - release: true, -); - -set NSNextNextDayDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSNextNextDayDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNextNextDayDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final NSHashTableCallBacks NSNonOwnedPointerHashCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSNonOwnedPointerMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSNonOwnedPointerMapValueCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks; - -@ffi.Native() -external final NSHashTableCallBacks NSNonRetainedObjectHashCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSNonRetainedObjectMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSNonRetainedObjectMapValueCallBacks; - -@ffi.Native(symbol: 'NSOSStatusErrorDomain') -external NSErrorDomain _NSOSStatusErrorDomain; - -DartNSErrorDomain get NSOSStatusErrorDomain => objc.NSString.fromPointer( - _NSOSStatusErrorDomain, - retain: true, - release: true, -); - -set NSOSStatusErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSOSStatusErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSOSStatusErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final NSHashTableCallBacks NSObjectHashCallBacks; - -@ffi.Native(symbol: 'NSObjectInaccessibleException') -external NSExceptionName _NSObjectInaccessibleException; - -DartNSExceptionName get NSObjectInaccessibleException => - objc.NSString.fromPointer( - _NSObjectInaccessibleException, - retain: true, - release: true, - ); - -set NSObjectInaccessibleException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSObjectInaccessibleException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSObjectInaccessibleException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final NSMapTableKeyCallBacks NSObjectMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSObjectMapValueCallBacks; - -@ffi.Native(symbol: 'NSObjectNotAvailableException') -external NSExceptionName _NSObjectNotAvailableException; - -DartNSExceptionName get NSObjectNotAvailableException => - objc.NSString.fromPointer( - _NSObjectNotAvailableException, - retain: true, - release: true, - ); - -set NSObjectNotAvailableException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSObjectNotAvailableException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSObjectNotAvailableException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external NSRect NSOffsetRect(NSRect aRect, double dX, double dY); - -@ffi.Native(symbol: 'NSOldStyleException') -external NSExceptionName _NSOldStyleException; - -DartNSExceptionName get NSOldStyleException => objc.NSString.fromPointer( - _NSOldStyleException, - retain: true, - release: true, -); - -set NSOldStyleException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSOldStyleException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSOldStyleException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native Function()>( - symbol: 'NSOpenStepRootDirectory', -) -external ffi.Pointer _NSOpenStepRootDirectory(); - -objc.NSString NSOpenStepRootDirectory() { - return objc.NSString.fromPointer( - _NSOpenStepRootDirectory(), - retain: true, - release: true, - ); -} - -@ffi.Native>( - symbol: 'NSOperationNotSupportedForKeyException', -) -external ffi.Pointer -_NSOperationNotSupportedForKeyException; - -objc.NSString get NSOperationNotSupportedForKeyException => - objc.NSString.fromPointer( - _NSOperationNotSupportedForKeyException, - retain: true, - release: true, - ); - -set NSOperationNotSupportedForKeyException(objc.NSString value) { - objc.NSString.fromPointer( - _NSOperationNotSupportedForKeyException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSOperationNotSupportedForKeyException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final NSHashTableCallBacks NSOwnedObjectIdentityHashCallBacks; - -@ffi.Native() -external final NSHashTableCallBacks NSOwnedPointerHashCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSOwnedPointerMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks; - -@ffi.Native(symbol: 'NSPOSIXErrorDomain') -external NSErrorDomain _NSPOSIXErrorDomain; - -DartNSErrorDomain get NSPOSIXErrorDomain => - objc.NSString.fromPointer(_NSPOSIXErrorDomain, retain: true, release: true); - -set NSPOSIXErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSPOSIXErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPOSIXErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external int NSPageSize(); - -@ffi.Native(symbol: 'NSParseErrorException') -external NSExceptionName _NSParseErrorException; - -DartNSExceptionName get NSParseErrorException => objc.NSString.fromPointer( - _NSParseErrorException, - retain: true, - release: true, -); - -set NSParseErrorException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSParseErrorException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSParseErrorException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSPersianCalendar') -external ffi.Pointer _NSPersianCalendar; - -objc.NSString get NSPersianCalendar => - objc.NSString.fromPointer(_NSPersianCalendar, retain: true, release: true); - -set NSPersianCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersianCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersianCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentDelimiter', -) -external ffi.Pointer _NSPersonNameComponentDelimiter; - -objc.NSString get NSPersonNameComponentDelimiter => objc.NSString.fromPointer( - _NSPersonNameComponentDelimiter, - retain: true, - release: true, -); - -set NSPersonNameComponentDelimiter(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentDelimiter, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentDelimiter = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentFamilyName', -) -external ffi.Pointer _NSPersonNameComponentFamilyName; - -objc.NSString get NSPersonNameComponentFamilyName => objc.NSString.fromPointer( - _NSPersonNameComponentFamilyName, - retain: true, - release: true, -); - -set NSPersonNameComponentFamilyName(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentFamilyName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentFamilyName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentGivenName', -) -external ffi.Pointer _NSPersonNameComponentGivenName; - -objc.NSString get NSPersonNameComponentGivenName => objc.NSString.fromPointer( - _NSPersonNameComponentGivenName, - retain: true, - release: true, -); - -set NSPersonNameComponentGivenName(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentGivenName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentGivenName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentKey', -) -external ffi.Pointer _NSPersonNameComponentKey; - -objc.NSString get NSPersonNameComponentKey => objc.NSString.fromPointer( - _NSPersonNameComponentKey, - retain: true, - release: true, -); - -set NSPersonNameComponentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentMiddleName', -) -external ffi.Pointer _NSPersonNameComponentMiddleName; - -objc.NSString get NSPersonNameComponentMiddleName => objc.NSString.fromPointer( - _NSPersonNameComponentMiddleName, - retain: true, - release: true, -); - -set NSPersonNameComponentMiddleName(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentMiddleName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentMiddleName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentNickname', -) -external ffi.Pointer _NSPersonNameComponentNickname; - -objc.NSString get NSPersonNameComponentNickname => objc.NSString.fromPointer( - _NSPersonNameComponentNickname, - retain: true, - release: true, -); - -set NSPersonNameComponentNickname(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentNickname, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentNickname = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentPrefix', -) -external ffi.Pointer _NSPersonNameComponentPrefix; - -objc.NSString get NSPersonNameComponentPrefix => objc.NSString.fromPointer( - _NSPersonNameComponentPrefix, - retain: true, - release: true, -); - -set NSPersonNameComponentPrefix(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentPrefix, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentPrefix = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentSuffix', -) -external ffi.Pointer _NSPersonNameComponentSuffix; - -objc.NSString get NSPersonNameComponentSuffix => objc.NSString.fromPointer( - _NSPersonNameComponentSuffix, - retain: true, - release: true, -); - -set NSPersonNameComponentSuffix(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentSuffix, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentSuffix = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSPointFromString', -) -external NSPoint _NSPointFromString(ffi.Pointer aString); - -NSPoint NSPointFromString(objc.NSString aString) { - final _$$ref = aString.ref; - return _NSPointFromString(_$$ref.pointer); -} - -@ffi.Native() -external bool NSPointInRect(NSPoint aPoint, NSRect aRect); - -@ffi.Native() -external final NSHashTableCallBacks NSPointerToStructHashCallBacks; - -@ffi.Native(symbol: 'NSPortDidBecomeInvalidNotification') -external NSNotificationName _NSPortDidBecomeInvalidNotification; - -DartNSNotificationName get NSPortDidBecomeInvalidNotification => - objc.NSString.fromPointer( - _NSPortDidBecomeInvalidNotification, - retain: true, - release: true, - ); - -set NSPortDidBecomeInvalidNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSPortDidBecomeInvalidNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPortDidBecomeInvalidNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSPortReceiveException') -external NSExceptionName _NSPortReceiveException; - -DartNSExceptionName get NSPortReceiveException => objc.NSString.fromPointer( - _NSPortReceiveException, - retain: true, - release: true, -); - -set NSPortReceiveException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSPortReceiveException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPortReceiveException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSPortSendException') -external NSExceptionName _NSPortSendException; - -DartNSExceptionName get NSPortSendException => objc.NSString.fromPointer( - _NSPortSendException, - retain: true, - release: true, -); - -set NSPortSendException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSPortSendException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPortSendException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSPortTimeoutException') -external NSExceptionName _NSPortTimeoutException; - -DartNSExceptionName get NSPortTimeoutException => objc.NSString.fromPointer( - _NSPortTimeoutException, - retain: true, - release: true, -); - -set NSPortTimeoutException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSPortTimeoutException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPortTimeoutException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPositiveCurrencyFormatString', -) -external ffi.Pointer _NSPositiveCurrencyFormatString; - -objc.NSString get NSPositiveCurrencyFormatString => objc.NSString.fromPointer( - _NSPositiveCurrencyFormatString, - retain: true, - release: true, -); - -set NSPositiveCurrencyFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSPositiveCurrencyFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPositiveCurrencyFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSPresentationIntentAttributeName') -external NSAttributedStringKey _NSPresentationIntentAttributeName; - -DartNSAttributedStringKey get NSPresentationIntentAttributeName => - objc.NSString.fromPointer( - _NSPresentationIntentAttributeName, - retain: true, - release: true, - ); - -set NSPresentationIntentAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSPresentationIntentAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPresentationIntentAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSPriorDayDesignations') -external ffi.Pointer _NSPriorDayDesignations; - -objc.NSString get NSPriorDayDesignations => objc.NSString.fromPointer( - _NSPriorDayDesignations, - retain: true, - release: true, -); - -set NSPriorDayDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSPriorDayDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPriorDayDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProcessInfoPowerStateDidChangeNotification', -) -external NSNotificationName _NSProcessInfoPowerStateDidChangeNotification; - -DartNSNotificationName get NSProcessInfoPowerStateDidChangeNotification => - objc.NSString.fromPointer( - _NSProcessInfoPowerStateDidChangeNotification, - retain: true, - release: true, - ); - -set NSProcessInfoPowerStateDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSProcessInfoPowerStateDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProcessInfoPowerStateDidChangeNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProcessInfoThermalStateDidChangeNotification', -) -external NSNotificationName _NSProcessInfoThermalStateDidChangeNotification; - -DartNSNotificationName get NSProcessInfoThermalStateDidChangeNotification => - objc.NSString.fromPointer( - _NSProcessInfoThermalStateDidChangeNotification, - retain: true, - release: true, - ); - -set NSProcessInfoThermalStateDidChangeNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSProcessInfoThermalStateDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProcessInfoThermalStateDidChangeNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressEstimatedTimeRemainingKey', -) -external NSProgressUserInfoKey _NSProgressEstimatedTimeRemainingKey; - -DartNSProgressUserInfoKey get NSProgressEstimatedTimeRemainingKey => - objc.NSString.fromPointer( - _NSProgressEstimatedTimeRemainingKey, - retain: true, - release: true, - ); - -set NSProgressEstimatedTimeRemainingKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressEstimatedTimeRemainingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressEstimatedTimeRemainingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileAnimationImageKey') -external NSProgressUserInfoKey _NSProgressFileAnimationImageKey; - -DartNSProgressUserInfoKey get NSProgressFileAnimationImageKey => - objc.NSString.fromPointer( - _NSProgressFileAnimationImageKey, - retain: true, - release: true, - ); - -set NSProgressFileAnimationImageKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileAnimationImageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileAnimationImageKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileAnimationImageOriginalRectKey', -) -external NSProgressUserInfoKey _NSProgressFileAnimationImageOriginalRectKey; - -DartNSProgressUserInfoKey get NSProgressFileAnimationImageOriginalRectKey => - objc.NSString.fromPointer( - _NSProgressFileAnimationImageOriginalRectKey, - retain: true, - release: true, - ); - -set NSProgressFileAnimationImageOriginalRectKey( - DartNSProgressUserInfoKey value, -) { - objc.NSString.fromPointer( - _NSProgressFileAnimationImageOriginalRectKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileAnimationImageOriginalRectKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileCompletedCountKey') -external NSProgressUserInfoKey _NSProgressFileCompletedCountKey; - -DartNSProgressUserInfoKey get NSProgressFileCompletedCountKey => - objc.NSString.fromPointer( - _NSProgressFileCompletedCountKey, - retain: true, - release: true, - ); - -set NSProgressFileCompletedCountKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileCompletedCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileCompletedCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileIconKey') -external NSProgressUserInfoKey _NSProgressFileIconKey; - -DartNSProgressUserInfoKey get NSProgressFileIconKey => - objc.NSString.fromPointer( - _NSProgressFileIconKey, - retain: true, - release: true, - ); - -set NSProgressFileIconKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileIconKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileIconKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindCopying', -) -external NSProgressFileOperationKind _NSProgressFileOperationKindCopying; - -DartNSProgressFileOperationKind get NSProgressFileOperationKindCopying => - objc.NSString.fromPointer( - _NSProgressFileOperationKindCopying, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindCopying(DartNSProgressFileOperationKind value) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindCopying, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindCopying = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindDecompressingAfterDownloading', -) -external NSProgressFileOperationKind -_NSProgressFileOperationKindDecompressingAfterDownloading; - -DartNSProgressFileOperationKind -get NSProgressFileOperationKindDecompressingAfterDownloading => - objc.NSString.fromPointer( - _NSProgressFileOperationKindDecompressingAfterDownloading, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindDecompressingAfterDownloading( - DartNSProgressFileOperationKind value, -) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindDecompressingAfterDownloading, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindDecompressingAfterDownloading = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindDownloading', -) -external NSProgressFileOperationKind _NSProgressFileOperationKindDownloading; - -DartNSProgressFileOperationKind get NSProgressFileOperationKindDownloading => - objc.NSString.fromPointer( - _NSProgressFileOperationKindDownloading, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindDownloading( - DartNSProgressFileOperationKind value, -) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindDownloading, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindDownloading = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindDuplicating', -) -external NSProgressFileOperationKind _NSProgressFileOperationKindDuplicating; - -DartNSProgressFileOperationKind get NSProgressFileOperationKindDuplicating => - objc.NSString.fromPointer( - _NSProgressFileOperationKindDuplicating, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindDuplicating( - DartNSProgressFileOperationKind value, -) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindDuplicating, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindDuplicating = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileOperationKindKey') -external NSProgressUserInfoKey _NSProgressFileOperationKindKey; - -DartNSProgressUserInfoKey get NSProgressFileOperationKindKey => - objc.NSString.fromPointer( - _NSProgressFileOperationKindKey, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindReceiving', -) -external NSProgressFileOperationKind _NSProgressFileOperationKindReceiving; - -DartNSProgressFileOperationKind get NSProgressFileOperationKindReceiving => - objc.NSString.fromPointer( - _NSProgressFileOperationKindReceiving, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindReceiving( - DartNSProgressFileOperationKind value, -) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindReceiving, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindReceiving = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindUploading', -) -external NSProgressFileOperationKind _NSProgressFileOperationKindUploading; - -DartNSProgressFileOperationKind get NSProgressFileOperationKindUploading => - objc.NSString.fromPointer( - _NSProgressFileOperationKindUploading, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindUploading( - DartNSProgressFileOperationKind value, -) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindUploading, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindUploading = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileTotalCountKey') -external NSProgressUserInfoKey _NSProgressFileTotalCountKey; - -DartNSProgressUserInfoKey get NSProgressFileTotalCountKey => - objc.NSString.fromPointer( - _NSProgressFileTotalCountKey, - retain: true, - release: true, - ); - -set NSProgressFileTotalCountKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileTotalCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileTotalCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileURLKey') -external NSProgressUserInfoKey _NSProgressFileURLKey; - -DartNSProgressUserInfoKey get NSProgressFileURLKey => objc.NSString.fromPointer( - _NSProgressFileURLKey, - retain: true, - release: true, -); - -set NSProgressFileURLKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileURLKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileURLKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressKindFile') -external NSProgressKind _NSProgressKindFile; - -DartNSProgressKind get NSProgressKindFile => - objc.NSString.fromPointer(_NSProgressKindFile, retain: true, release: true); - -set NSProgressKindFile(DartNSProgressKind value) { - objc.NSString.fromPointer( - _NSProgressKindFile, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressKindFile = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressThroughputKey') -external NSProgressUserInfoKey _NSProgressThroughputKey; - -DartNSProgressUserInfoKey get NSProgressThroughputKey => - objc.NSString.fromPointer( - _NSProgressThroughputKey, - retain: true, - release: true, - ); - -set NSProgressThroughputKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressThroughputKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressThroughputKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSProtocolFromString') -external ffi.Pointer _NSProtocolFromString( - ffi.Pointer namestr, -); - -objc.Protocol? NSProtocolFromString(objc.NSString namestr) { - final _$$ref = namestr.ref; - return _NSProtocolFromString(_$$ref.pointer).address == 0 - ? null - : objc.Protocol.fromPointer( - _NSProtocolFromString(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSRangeException') -external NSExceptionName _NSRangeException; - -DartNSExceptionName get NSRangeException => - objc.NSString.fromPointer(_NSRangeException, retain: true, release: true); - -set NSRangeException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSRangeException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSRangeException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSRangeFromString', -) -external NSRange _NSRangeFromString(ffi.Pointer aString); - -NSRange NSRangeFromString(objc.NSString aString) { - final _$$ref = aString.ref; - return _NSRangeFromString(_$$ref.pointer); -} - -@Deprecated('Use NSProcessInfo instead') -@ffi.Native() -external int NSRealMemoryAvailable(); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, NSUInteger, NSUInteger) ->() -external ffi.Pointer NSReallocateCollectable( - ffi.Pointer ptr, - int size, - int options, -); - -@ffi.Native(symbol: 'NSRecoveryAttempterErrorKey') -external NSErrorUserInfoKey _NSRecoveryAttempterErrorKey; - -DartNSErrorUserInfoKey get NSRecoveryAttempterErrorKey => - objc.NSString.fromPointer( - _NSRecoveryAttempterErrorKey, - retain: true, - release: true, - ); - -set NSRecoveryAttempterErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSRecoveryAttempterErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSRecoveryAttempterErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSRectFromString', -) -external NSRect _NSRectFromString(ffi.Pointer aString); - -NSRect NSRectFromString(objc.NSString aString) { - final _$$ref = aString.ref; - return _NSRectFromString(_$$ref.pointer); -} - -@ffi.Native)>() -external void NSRecycleZone(ffi.Pointer zone); - -@ffi.Native>(symbol: 'NSRegistrationDomain') -external ffi.Pointer _NSRegistrationDomain; - -objc.NSString get NSRegistrationDomain => objc.NSString.fromPointer( - _NSRegistrationDomain, - retain: true, - release: true, -); - -set NSRegistrationDomain(objc.NSString value) { - objc.NSString.fromPointer( - _NSRegistrationDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSRegistrationDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSReplacementIndexAttributeName') -external NSAttributedStringKey _NSReplacementIndexAttributeName; - -DartNSAttributedStringKey get NSReplacementIndexAttributeName => - objc.NSString.fromPointer( - _NSReplacementIndexAttributeName, - retain: true, - release: true, - ); - -set NSReplacementIndexAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSReplacementIndexAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSReplacementIndexAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSRepublicOfChinaCalendar', -) -external ffi.Pointer _NSRepublicOfChinaCalendar; - -objc.NSString get NSRepublicOfChinaCalendar => objc.NSString.fromPointer( - _NSRepublicOfChinaCalendar, - retain: true, - release: true, -); - -set NSRepublicOfChinaCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSRepublicOfChinaCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSRepublicOfChinaCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSResetHashTable', -) -external void _NSResetHashTable(ffi.Pointer table); - -void NSResetHashTable(NSHashTable table) { - final _$$ref = table.ref; - return _NSResetHashTable(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'NSResetMapTable', -) -external void _NSResetMapTable(ffi.Pointer table); - -void NSResetMapTable(NSMapTable table) { - final _$$ref = table.ref; - return _NSResetMapTable(_$$ref.pointer); -} - -@ffi.Native() -external int NSRoundDownToMultipleOfPageSize(int bytes); - -@ffi.Native() -external int NSRoundUpToMultipleOfPageSize(int bytes); - -@ffi.Native(symbol: 'NSRunLoopCommonModes') -external NSRunLoopMode _NSRunLoopCommonModes; - -DartNSRunLoopMode get NSRunLoopCommonModes => objc.NSString.fromPointer( - _NSRunLoopCommonModes, - retain: true, - release: true, -); - -set NSRunLoopCommonModes(DartNSRunLoopMode value) { - objc.NSString.fromPointer( - _NSRunLoopCommonModes, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSRunLoopCommonModes = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(NSUInteger, NSUInteger, ffi.Bool) ->(symbol: 'NSSearchPathForDirectoriesInDomains') -external ffi.Pointer _NSSearchPathForDirectoriesInDomains( - int directory, - int domainMask, - bool expandTilde, -); - -objc.NSArray NSSearchPathForDirectoriesInDomains( - NSSearchPathDirectory directory, - DartNSUInteger domainMask, - bool expandTilde, -) { - return objc.NSArray.fromPointer( - _NSSearchPathForDirectoriesInDomains( - directory.value, - domainMask, - expandTilde, - ), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'NSSecureUnarchiveFromDataTransformerName', -) -external NSValueTransformerName _NSSecureUnarchiveFromDataTransformerName; - -DartNSValueTransformerName get NSSecureUnarchiveFromDataTransformerName => - objc.NSString.fromPointer( - _NSSecureUnarchiveFromDataTransformerName, - retain: true, - release: true, - ); - -set NSSecureUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSSecureUnarchiveFromDataTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSSecureUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSSelectorFromString') -external ffi.Pointer _NSSelectorFromString( - ffi.Pointer aSelectorName, -); - -ffi.Pointer NSSelectorFromString( - objc.NSString aSelectorName, -) { - final _$$ref = aSelectorName.ref; - return _NSSelectorFromString(_$$ref.pointer); -} - -@ffi.Native)>() -external void NSSetUncaughtExceptionHandler( - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSSetZoneName') -external void _NSSetZoneName( - ffi.Pointer zone, - ffi.Pointer name, -); - -void NSSetZoneName(ffi.Pointer zone, objc.NSString name) { - final _$$ref = name.ref; - return _NSSetZoneName(zone, _$$ref.pointer); -} - -@ffi.Native>(symbol: 'NSShortDateFormatString') -external ffi.Pointer _NSShortDateFormatString; - -objc.NSString get NSShortDateFormatString => objc.NSString.fromPointer( - _NSShortDateFormatString, - retain: true, - release: true, -); - -set NSShortDateFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSShortDateFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSShortDateFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSShortMonthNameArray') -external ffi.Pointer _NSShortMonthNameArray; - -objc.NSString get NSShortMonthNameArray => objc.NSString.fromPointer( - _NSShortMonthNameArray, - retain: true, - release: true, -); - -set NSShortMonthNameArray(objc.NSString value) { - objc.NSString.fromPointer( - _NSShortMonthNameArray, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSShortMonthNameArray = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSShortTimeDateFormatString', -) -external ffi.Pointer _NSShortTimeDateFormatString; - -objc.NSString get NSShortTimeDateFormatString => objc.NSString.fromPointer( - _NSShortTimeDateFormatString, - retain: true, - release: true, -); - -set NSShortTimeDateFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSShortTimeDateFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSShortTimeDateFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSShortWeekDayNameArray') -external ffi.Pointer _NSShortWeekDayNameArray; - -objc.NSString get NSShortWeekDayNameArray => objc.NSString.fromPointer( - _NSShortWeekDayNameArray, - retain: true, - release: true, -); - -set NSShortWeekDayNameArray(objc.NSString value) { - objc.NSString.fromPointer( - _NSShortWeekDayNameArray, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSShortWeekDayNameArray = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSShouldRetainWithZone') -external bool _NSShouldRetainWithZone( - ffi.Pointer anObject, - ffi.Pointer requestedZone, -); - -bool NSShouldRetainWithZone( - objc.ObjCObject anObject, - ffi.Pointer requestedZone, -) { - final _$$ref = anObject.ref; - return _NSShouldRetainWithZone(_$$ref.pointer, requestedZone); -} - -@ffi.Native)>( - symbol: 'NSSizeFromString', -) -external NSSize _NSSizeFromString(ffi.Pointer aString); - -NSSize NSSizeFromString(objc.NSString aString) { - final _$$ref = aString.ref; - return _NSSizeFromString(_$$ref.pointer); -} - -@ffi.Native(symbol: 'NSStreamDataWrittenToMemoryStreamKey') -external NSStreamPropertyKey _NSStreamDataWrittenToMemoryStreamKey; - -DartNSStreamPropertyKey get NSStreamDataWrittenToMemoryStreamKey => - objc.NSString.fromPointer( - _NSStreamDataWrittenToMemoryStreamKey, - retain: true, - release: true, - ); - -set NSStreamDataWrittenToMemoryStreamKey(DartNSStreamPropertyKey value) { - objc.NSString.fromPointer( - _NSStreamDataWrittenToMemoryStreamKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamDataWrittenToMemoryStreamKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamFileCurrentOffsetKey') -external NSStreamPropertyKey _NSStreamFileCurrentOffsetKey; - -DartNSStreamPropertyKey get NSStreamFileCurrentOffsetKey => - objc.NSString.fromPointer( - _NSStreamFileCurrentOffsetKey, - retain: true, - release: true, - ); - -set NSStreamFileCurrentOffsetKey(DartNSStreamPropertyKey value) { - objc.NSString.fromPointer( - _NSStreamFileCurrentOffsetKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamFileCurrentOffsetKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamNetworkServiceType') -external NSStreamPropertyKey _NSStreamNetworkServiceType; - -DartNSStreamPropertyKey get NSStreamNetworkServiceType => - objc.NSString.fromPointer( - _NSStreamNetworkServiceType, - retain: true, - release: true, - ); - -set NSStreamNetworkServiceType(DartNSStreamPropertyKey value) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceType, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceType = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamNetworkServiceTypeBackground', -) -external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeBackground; - -DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeBackground => - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeBackground, - retain: true, - release: true, - ); - -set NSStreamNetworkServiceTypeBackground( - DartNSStreamNetworkServiceTypeValue value, -) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeBackground, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceTypeBackground = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamNetworkServiceTypeCallSignaling', -) -external NSStreamNetworkServiceTypeValue -_NSStreamNetworkServiceTypeCallSignaling; - -DartNSStreamNetworkServiceTypeValue -get NSStreamNetworkServiceTypeCallSignaling => objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeCallSignaling, - retain: true, - release: true, -); - -set NSStreamNetworkServiceTypeCallSignaling( - DartNSStreamNetworkServiceTypeValue value, -) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeCallSignaling, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceTypeCallSignaling = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamNetworkServiceTypeVideo', -) -external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVideo; - -DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVideo => - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVideo, - retain: true, - release: true, - ); - -set NSStreamNetworkServiceTypeVideo(DartNSStreamNetworkServiceTypeValue value) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVideo, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceTypeVideo = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamNetworkServiceTypeVoIP', -) -external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVoIP; - -DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVoIP => - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVoIP, - retain: true, - release: true, - ); - -set NSStreamNetworkServiceTypeVoIP(DartNSStreamNetworkServiceTypeValue value) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVoIP, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceTypeVoIP = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamNetworkServiceTypeVoice', -) -external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVoice; - -DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVoice => - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVoice, - retain: true, - release: true, - ); - -set NSStreamNetworkServiceTypeVoice(DartNSStreamNetworkServiceTypeValue value) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVoice, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceTypeVoice = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSOCKSErrorDomain') -external NSErrorDomain _NSStreamSOCKSErrorDomain; - -DartNSErrorDomain get NSStreamSOCKSErrorDomain => objc.NSString.fromPointer( - _NSStreamSOCKSErrorDomain, - retain: true, - release: true, -); - -set NSStreamSOCKSErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSStreamSOCKSErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSOCKSProxyConfigurationKey') -external NSStreamPropertyKey _NSStreamSOCKSProxyConfigurationKey; - -DartNSStreamPropertyKey get NSStreamSOCKSProxyConfigurationKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyConfigurationKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyConfigurationKey(DartNSStreamPropertyKey value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyConfigurationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyConfigurationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSOCKSProxyHostKey', -) -external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyHostKey; - -DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyHostKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyHostKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyHostKey(DartNSStreamSOCKSProxyConfiguration value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyHostKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyHostKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSOCKSProxyPasswordKey', -) -external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyPasswordKey; - -DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyPasswordKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyPasswordKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyPasswordKey(DartNSStreamSOCKSProxyConfiguration value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyPasswordKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyPasswordKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSOCKSProxyPortKey', -) -external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyPortKey; - -DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyPortKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyPortKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyPortKey(DartNSStreamSOCKSProxyConfiguration value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyPortKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyPortKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSOCKSProxyUserKey', -) -external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyUserKey; - -DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyUserKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyUserKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyUserKey(DartNSStreamSOCKSProxyConfiguration value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyUserKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyUserKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSOCKSProxyVersion4') -external NSStreamSOCKSProxyVersion _NSStreamSOCKSProxyVersion4; - -DartNSStreamSOCKSProxyVersion get NSStreamSOCKSProxyVersion4 => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersion4, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyVersion4(DartNSStreamSOCKSProxyVersion value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersion4, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyVersion4 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSOCKSProxyVersion5') -external NSStreamSOCKSProxyVersion _NSStreamSOCKSProxyVersion5; - -DartNSStreamSOCKSProxyVersion get NSStreamSOCKSProxyVersion5 => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersion5, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyVersion5(DartNSStreamSOCKSProxyVersion value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersion5, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyVersion5 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSOCKSProxyVersionKey', -) -external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyVersionKey; - -DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyVersionKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersionKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyVersionKey(DartNSStreamSOCKSProxyConfiguration value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyVersionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSocketSSLErrorDomain') -external NSErrorDomain _NSStreamSocketSSLErrorDomain; - -DartNSErrorDomain get NSStreamSocketSSLErrorDomain => objc.NSString.fromPointer( - _NSStreamSocketSSLErrorDomain, - retain: true, - release: true, -); - -set NSStreamSocketSSLErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSStreamSocketSSLErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSSLErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSocketSecurityLevelKey') -external NSStreamPropertyKey _NSStreamSocketSecurityLevelKey; - -DartNSStreamPropertyKey get NSStreamSocketSecurityLevelKey => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelKey, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelKey(DartNSStreamPropertyKey value) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSocketSecurityLevelNegotiatedSSL', -) -external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelNegotiatedSSL; - -DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelNegotiatedSSL => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelNegotiatedSSL, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelNegotiatedSSL( - DartNSStreamSocketSecurityLevel value, -) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelNegotiatedSSL, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelNegotiatedSSL = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSocketSecurityLevelNone', -) -external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelNone; - -DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelNone => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelNone, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelNone(DartNSStreamSocketSecurityLevel value) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelNone, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelNone = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSocketSecurityLevelSSLv2', -) -external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelSSLv2; - -DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelSSLv2 => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelSSLv2, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelSSLv2(DartNSStreamSocketSecurityLevel value) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelSSLv2, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelSSLv2 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSocketSecurityLevelSSLv3', -) -external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelSSLv3; - -DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelSSLv3 => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelSSLv3, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelSSLv3(DartNSStreamSocketSecurityLevel value) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelSSLv3, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelSSLv3 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSocketSecurityLevelTLSv1', -) -external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelTLSv1; - -DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelTLSv1 => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelTLSv1, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelTLSv1(DartNSStreamSocketSecurityLevel value) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelTLSv1, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelTLSv1 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionAllowLossyKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionAllowLossyKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionAllowLossyKey => objc.NSString.fromPointer( - _NSStringEncodingDetectionAllowLossyKey, - retain: true, - release: true, -); - -set NSStringEncodingDetectionAllowLossyKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionAllowLossyKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionAllowLossyKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionDisallowedEncodingsKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionDisallowedEncodingsKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionDisallowedEncodingsKey => - objc.NSString.fromPointer( - _NSStringEncodingDetectionDisallowedEncodingsKey, - retain: true, - release: true, - ); - -set NSStringEncodingDetectionDisallowedEncodingsKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionDisallowedEncodingsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionDisallowedEncodingsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionFromWindowsKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionFromWindowsKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionFromWindowsKey => objc.NSString.fromPointer( - _NSStringEncodingDetectionFromWindowsKey, - retain: true, - release: true, -); - -set NSStringEncodingDetectionFromWindowsKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionFromWindowsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionFromWindowsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionLikelyLanguageKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionLikelyLanguageKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionLikelyLanguageKey => objc.NSString.fromPointer( - _NSStringEncodingDetectionLikelyLanguageKey, - retain: true, - release: true, -); - -set NSStringEncodingDetectionLikelyLanguageKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionLikelyLanguageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionLikelyLanguageKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionLossySubstitutionKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionLossySubstitutionKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionLossySubstitutionKey => objc.NSString.fromPointer( - _NSStringEncodingDetectionLossySubstitutionKey, - retain: true, - release: true, -); - -set NSStringEncodingDetectionLossySubstitutionKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionLossySubstitutionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionLossySubstitutionKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionSuggestedEncodingsKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionSuggestedEncodingsKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionSuggestedEncodingsKey => objc.NSString.fromPointer( - _NSStringEncodingDetectionSuggestedEncodingsKey, - retain: true, - release: true, -); - -set NSStringEncodingDetectionSuggestedEncodingsKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionSuggestedEncodingsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionSuggestedEncodingsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionUseOnlySuggestedEncodingsKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionUseOnlySuggestedEncodingsKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionUseOnlySuggestedEncodingsKey => - objc.NSString.fromPointer( - _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey, - retain: true, - release: true, - ); - -set NSStringEncodingDetectionUseOnlySuggestedEncodingsKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringEncodingErrorKey') -external NSErrorUserInfoKey _NSStringEncodingErrorKey; - -DartNSErrorUserInfoKey get NSStringEncodingErrorKey => - objc.NSString.fromPointer( - _NSStringEncodingErrorKey, - retain: true, - release: true, - ); - -set NSStringEncodingErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSStringEncodingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSStringFromClass') -external ffi.Pointer _NSStringFromClass( - ffi.Pointer aClass, -); - -objc.NSString NSStringFromClass(objc.ObjCObject aClass) { - final _$$ref = aClass.ref; - return objc.NSString.fromPointer( - _NSStringFromClass(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSStringFromHashTable') -external ffi.Pointer _NSStringFromHashTable( - ffi.Pointer table, -); - -objc.NSString NSStringFromHashTable(NSHashTable table) { - final _$$ref = table.ref; - return objc.NSString.fromPointer( - _NSStringFromHashTable(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSStringFromMapTable') -external ffi.Pointer _NSStringFromMapTable( - ffi.Pointer table, -); - -objc.NSString NSStringFromMapTable(NSMapTable table) { - final _$$ref = table.ref; - return objc.NSString.fromPointer( - _NSStringFromMapTable(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native Function(NSPoint)>( - symbol: 'NSStringFromPoint', -) -external ffi.Pointer _NSStringFromPoint(NSPoint aPoint); - -objc.NSString NSStringFromPoint(NSPoint aPoint) { - return objc.NSString.fromPointer( - _NSStringFromPoint(aPoint), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSStringFromProtocol') -external ffi.Pointer _NSStringFromProtocol( - ffi.Pointer proto, -); - -objc.NSString NSStringFromProtocol(objc.Protocol proto) { - final _$$ref = proto.ref; - return objc.NSString.fromPointer( - _NSStringFromProtocol(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native Function(NSRange)>( - symbol: 'NSStringFromRange', -) -external ffi.Pointer _NSStringFromRange(NSRange range); - -objc.NSString NSStringFromRange(NSRange range) { - return objc.NSString.fromPointer( - _NSStringFromRange(range), - retain: true, - release: true, - ); -} - -@ffi.Native Function(NSRect)>( - symbol: 'NSStringFromRect', -) -external ffi.Pointer _NSStringFromRect(NSRect aRect); - -objc.NSString NSStringFromRect(NSRect aRect) { - return objc.NSString.fromPointer( - _NSStringFromRect(aRect), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSStringFromSelector') -external ffi.Pointer _NSStringFromSelector( - ffi.Pointer aSelector, -); - -objc.NSString NSStringFromSelector(ffi.Pointer aSelector) { - return objc.NSString.fromPointer( - _NSStringFromSelector(aSelector), - retain: true, - release: true, - ); -} - -@ffi.Native Function(NSSize)>( - symbol: 'NSStringFromSize', -) -external ffi.Pointer _NSStringFromSize(NSSize aSize); - -objc.NSString NSStringFromSize(NSSize aSize) { - return objc.NSString.fromPointer( - _NSStringFromSize(aSize), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSStringTransformFullwidthToHalfwidth') -external NSStringTransform _NSStringTransformFullwidthToHalfwidth; - -DartNSStringTransform get NSStringTransformFullwidthToHalfwidth => - objc.NSString.fromPointer( - _NSStringTransformFullwidthToHalfwidth, - retain: true, - release: true, - ); - -set NSStringTransformFullwidthToHalfwidth(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformFullwidthToHalfwidth, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformFullwidthToHalfwidth = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformHiraganaToKatakana') -external NSStringTransform _NSStringTransformHiraganaToKatakana; - -DartNSStringTransform get NSStringTransformHiraganaToKatakana => - objc.NSString.fromPointer( - _NSStringTransformHiraganaToKatakana, - retain: true, - release: true, - ); - -set NSStringTransformHiraganaToKatakana(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformHiraganaToKatakana, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformHiraganaToKatakana = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToArabic') -external NSStringTransform _NSStringTransformLatinToArabic; - -DartNSStringTransform get NSStringTransformLatinToArabic => - objc.NSString.fromPointer( - _NSStringTransformLatinToArabic, - retain: true, - release: true, - ); - -set NSStringTransformLatinToArabic(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToArabic, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToArabic = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToCyrillic') -external NSStringTransform _NSStringTransformLatinToCyrillic; - -DartNSStringTransform get NSStringTransformLatinToCyrillic => - objc.NSString.fromPointer( - _NSStringTransformLatinToCyrillic, - retain: true, - release: true, - ); - -set NSStringTransformLatinToCyrillic(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToCyrillic, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToCyrillic = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToGreek') -external NSStringTransform _NSStringTransformLatinToGreek; - -DartNSStringTransform get NSStringTransformLatinToGreek => - objc.NSString.fromPointer( - _NSStringTransformLatinToGreek, - retain: true, - release: true, - ); - -set NSStringTransformLatinToGreek(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToGreek, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToGreek = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToHangul') -external NSStringTransform _NSStringTransformLatinToHangul; - -DartNSStringTransform get NSStringTransformLatinToHangul => - objc.NSString.fromPointer( - _NSStringTransformLatinToHangul, - retain: true, - release: true, - ); - -set NSStringTransformLatinToHangul(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToHangul, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToHangul = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToHebrew') -external NSStringTransform _NSStringTransformLatinToHebrew; - -DartNSStringTransform get NSStringTransformLatinToHebrew => - objc.NSString.fromPointer( - _NSStringTransformLatinToHebrew, - retain: true, - release: true, - ); - -set NSStringTransformLatinToHebrew(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToHebrew, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToHebrew = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToHiragana') -external NSStringTransform _NSStringTransformLatinToHiragana; - -DartNSStringTransform get NSStringTransformLatinToHiragana => - objc.NSString.fromPointer( - _NSStringTransformLatinToHiragana, - retain: true, - release: true, - ); - -set NSStringTransformLatinToHiragana(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToHiragana, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToHiragana = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToKatakana') -external NSStringTransform _NSStringTransformLatinToKatakana; - -DartNSStringTransform get NSStringTransformLatinToKatakana => - objc.NSString.fromPointer( - _NSStringTransformLatinToKatakana, - retain: true, - release: true, - ); - -set NSStringTransformLatinToKatakana(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToKatakana, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToKatakana = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToThai') -external NSStringTransform _NSStringTransformLatinToThai; - -DartNSStringTransform get NSStringTransformLatinToThai => - objc.NSString.fromPointer( - _NSStringTransformLatinToThai, - retain: true, - release: true, - ); - -set NSStringTransformLatinToThai(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToThai, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToThai = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformMandarinToLatin') -external NSStringTransform _NSStringTransformMandarinToLatin; - -DartNSStringTransform get NSStringTransformMandarinToLatin => - objc.NSString.fromPointer( - _NSStringTransformMandarinToLatin, - retain: true, - release: true, - ); - -set NSStringTransformMandarinToLatin(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformMandarinToLatin, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformMandarinToLatin = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformStripCombiningMarks') -external NSStringTransform _NSStringTransformStripCombiningMarks; - -DartNSStringTransform get NSStringTransformStripCombiningMarks => - objc.NSString.fromPointer( - _NSStringTransformStripCombiningMarks, - retain: true, - release: true, - ); - -set NSStringTransformStripCombiningMarks(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformStripCombiningMarks, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformStripCombiningMarks = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformStripDiacritics') -external NSStringTransform _NSStringTransformStripDiacritics; - -DartNSStringTransform get NSStringTransformStripDiacritics => - objc.NSString.fromPointer( - _NSStringTransformStripDiacritics, - retain: true, - release: true, - ); - -set NSStringTransformStripDiacritics(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformStripDiacritics, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformStripDiacritics = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformToLatin') -external NSStringTransform _NSStringTransformToLatin; - -DartNSStringTransform get NSStringTransformToLatin => objc.NSString.fromPointer( - _NSStringTransformToLatin, - retain: true, - release: true, -); - -set NSStringTransformToLatin(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformToLatin, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformToLatin = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformToUnicodeName') -external NSStringTransform _NSStringTransformToUnicodeName; - -DartNSStringTransform get NSStringTransformToUnicodeName => - objc.NSString.fromPointer( - _NSStringTransformToUnicodeName, - retain: true, - release: true, - ); - -set NSStringTransformToUnicodeName(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformToUnicodeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformToUnicodeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformToXMLHex') -external NSStringTransform _NSStringTransformToXMLHex; - -DartNSStringTransform get NSStringTransformToXMLHex => - objc.NSString.fromPointer( - _NSStringTransformToXMLHex, - retain: true, - release: true, - ); - -set NSStringTransformToXMLHex(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformToXMLHex, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformToXMLHex = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSSumKeyValueOperator') -external NSKeyValueOperator _NSSumKeyValueOperator; - -DartNSKeyValueOperator get NSSumKeyValueOperator => objc.NSString.fromPointer( - _NSSumKeyValueOperator, - retain: true, - release: true, -); - -set NSSumKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSSumKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSSumKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSSystemClockDidChangeNotification') -external NSNotificationName _NSSystemClockDidChangeNotification; - -DartNSNotificationName get NSSystemClockDidChangeNotification => - objc.NSString.fromPointer( - _NSSystemClockDidChangeNotification, - retain: true, - release: true, - ); - -set NSSystemClockDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSSystemClockDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSSystemClockDidChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSSystemTimeZoneDidChangeNotification') -external NSNotificationName _NSSystemTimeZoneDidChangeNotification; - -DartNSNotificationName get NSSystemTimeZoneDidChangeNotification => - objc.NSString.fromPointer( - _NSSystemTimeZoneDidChangeNotification, - retain: true, - release: true, - ); - -set NSSystemTimeZoneDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSSystemTimeZoneDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSSystemTimeZoneDidChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTaskDidTerminateNotification') -external NSNotificationName _NSTaskDidTerminateNotification; - -DartNSNotificationName get NSTaskDidTerminateNotification => - objc.NSString.fromPointer( - _NSTaskDidTerminateNotification, - retain: true, - release: true, - ); - -set NSTaskDidTerminateNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSTaskDidTerminateNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTaskDidTerminateNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native Function()>( - symbol: 'NSTemporaryDirectory', -) -external ffi.Pointer _NSTemporaryDirectory(); - -objc.NSString NSTemporaryDirectory() { - return objc.NSString.fromPointer( - _NSTemporaryDirectory(), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSTextCheckingAirlineKey') -external NSTextCheckingKey _NSTextCheckingAirlineKey; - -DartNSTextCheckingKey get NSTextCheckingAirlineKey => objc.NSString.fromPointer( - _NSTextCheckingAirlineKey, - retain: true, - release: true, -); - -set NSTextCheckingAirlineKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingAirlineKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingAirlineKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingCityKey') -external NSTextCheckingKey _NSTextCheckingCityKey; - -DartNSTextCheckingKey get NSTextCheckingCityKey => objc.NSString.fromPointer( - _NSTextCheckingCityKey, - retain: true, - release: true, -); - -set NSTextCheckingCityKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingCityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingCityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingCountryKey') -external NSTextCheckingKey _NSTextCheckingCountryKey; - -DartNSTextCheckingKey get NSTextCheckingCountryKey => objc.NSString.fromPointer( - _NSTextCheckingCountryKey, - retain: true, - release: true, -); - -set NSTextCheckingCountryKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingCountryKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingCountryKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingFlightKey') -external NSTextCheckingKey _NSTextCheckingFlightKey; - -DartNSTextCheckingKey get NSTextCheckingFlightKey => objc.NSString.fromPointer( - _NSTextCheckingFlightKey, - retain: true, - release: true, -); - -set NSTextCheckingFlightKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingFlightKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingFlightKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingJobTitleKey') -external NSTextCheckingKey _NSTextCheckingJobTitleKey; - -DartNSTextCheckingKey get NSTextCheckingJobTitleKey => - objc.NSString.fromPointer( - _NSTextCheckingJobTitleKey, - retain: true, - release: true, - ); - -set NSTextCheckingJobTitleKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingJobTitleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingJobTitleKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingNameKey') -external NSTextCheckingKey _NSTextCheckingNameKey; - -DartNSTextCheckingKey get NSTextCheckingNameKey => objc.NSString.fromPointer( - _NSTextCheckingNameKey, - retain: true, - release: true, -); - -set NSTextCheckingNameKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingOrganizationKey') -external NSTextCheckingKey _NSTextCheckingOrganizationKey; - -DartNSTextCheckingKey get NSTextCheckingOrganizationKey => - objc.NSString.fromPointer( - _NSTextCheckingOrganizationKey, - retain: true, - release: true, - ); - -set NSTextCheckingOrganizationKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingOrganizationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingOrganizationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingPhoneKey') -external NSTextCheckingKey _NSTextCheckingPhoneKey; - -DartNSTextCheckingKey get NSTextCheckingPhoneKey => objc.NSString.fromPointer( - _NSTextCheckingPhoneKey, - retain: true, - release: true, -); - -set NSTextCheckingPhoneKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingPhoneKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingPhoneKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingStateKey') -external NSTextCheckingKey _NSTextCheckingStateKey; - -DartNSTextCheckingKey get NSTextCheckingStateKey => objc.NSString.fromPointer( - _NSTextCheckingStateKey, - retain: true, - release: true, -); - -set NSTextCheckingStateKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingStateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingStateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingStreetKey') -external NSTextCheckingKey _NSTextCheckingStreetKey; - -DartNSTextCheckingKey get NSTextCheckingStreetKey => objc.NSString.fromPointer( - _NSTextCheckingStreetKey, - retain: true, - release: true, -); - -set NSTextCheckingStreetKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingStreetKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingStreetKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingZIPKey') -external NSTextCheckingKey _NSTextCheckingZIPKey; - -DartNSTextCheckingKey get NSTextCheckingZIPKey => objc.NSString.fromPointer( - _NSTextCheckingZIPKey, - retain: true, - release: true, -); - -set NSTextCheckingZIPKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingZIPKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingZIPKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSThisDayDesignations') -external ffi.Pointer _NSThisDayDesignations; - -objc.NSString get NSThisDayDesignations => objc.NSString.fromPointer( - _NSThisDayDesignations, - retain: true, - release: true, -); - -set NSThisDayDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSThisDayDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSThisDayDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSThousandsSeparator') -external ffi.Pointer _NSThousandsSeparator; - -objc.NSString get NSThousandsSeparator => objc.NSString.fromPointer( - _NSThousandsSeparator, - retain: true, - release: true, -); - -set NSThousandsSeparator(objc.NSString value) { - objc.NSString.fromPointer( - _NSThousandsSeparator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSThousandsSeparator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSThreadWillExitNotification') -external NSNotificationName _NSThreadWillExitNotification; - -DartNSNotificationName get NSThreadWillExitNotification => - objc.NSString.fromPointer( - _NSThreadWillExitNotification, - retain: true, - release: true, - ); - -set NSThreadWillExitNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSThreadWillExitNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSThreadWillExitNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSThumbnail1024x1024SizeKey') -external NSURLThumbnailDictionaryItem _NSThumbnail1024x1024SizeKey; - -DartNSURLThumbnailDictionaryItem get NSThumbnail1024x1024SizeKey => - objc.NSString.fromPointer( - _NSThumbnail1024x1024SizeKey, - retain: true, - release: true, - ); - -set NSThumbnail1024x1024SizeKey(DartNSURLThumbnailDictionaryItem value) { - objc.NSString.fromPointer( - _NSThumbnail1024x1024SizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSThumbnail1024x1024SizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSTimeDateFormatString') -external ffi.Pointer _NSTimeDateFormatString; - -objc.NSString get NSTimeDateFormatString => objc.NSString.fromPointer( - _NSTimeDateFormatString, - retain: true, - release: true, -); - -set NSTimeDateFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSTimeDateFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTimeDateFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSTimeFormatString') -external ffi.Pointer _NSTimeFormatString; - -objc.NSString get NSTimeFormatString => - objc.NSString.fromPointer(_NSTimeFormatString, retain: true, release: true); - -set NSTimeFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSTimeFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTimeFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLAddedToDirectoryDateKey') -external NSURLResourceKey _NSURLAddedToDirectoryDateKey; - -DartNSURLResourceKey get NSURLAddedToDirectoryDateKey => - objc.NSString.fromPointer( - _NSURLAddedToDirectoryDateKey, - retain: true, - release: true, - ); - -set NSURLAddedToDirectoryDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLAddedToDirectoryDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAddedToDirectoryDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLApplicationIsScriptableKey') -external NSURLResourceKey _NSURLApplicationIsScriptableKey; - -DartNSURLResourceKey get NSURLApplicationIsScriptableKey => - objc.NSString.fromPointer( - _NSURLApplicationIsScriptableKey, - retain: true, - release: true, - ); - -set NSURLApplicationIsScriptableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLApplicationIsScriptableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLApplicationIsScriptableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLAttributeModificationDateKey') -external NSURLResourceKey _NSURLAttributeModificationDateKey; - -DartNSURLResourceKey get NSURLAttributeModificationDateKey => - objc.NSString.fromPointer( - _NSURLAttributeModificationDateKey, - retain: true, - release: true, - ); - -set NSURLAttributeModificationDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLAttributeModificationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAttributeModificationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodClientCertificate', -) -external ffi.Pointer -_NSURLAuthenticationMethodClientCertificate; - -objc.NSString get NSURLAuthenticationMethodClientCertificate => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodClientCertificate, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodClientCertificate(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodClientCertificate, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodClientCertificate = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodDefault', -) -external ffi.Pointer _NSURLAuthenticationMethodDefault; - -objc.NSString get NSURLAuthenticationMethodDefault => objc.NSString.fromPointer( - _NSURLAuthenticationMethodDefault, - retain: true, - release: true, -); - -set NSURLAuthenticationMethodDefault(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodDefault, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodDefault = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodHTMLForm', -) -external ffi.Pointer _NSURLAuthenticationMethodHTMLForm; - -objc.NSString get NSURLAuthenticationMethodHTMLForm => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTMLForm, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodHTMLForm(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTMLForm, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodHTMLForm = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodHTTPBasic', -) -external ffi.Pointer _NSURLAuthenticationMethodHTTPBasic; - -objc.NSString get NSURLAuthenticationMethodHTTPBasic => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTTPBasic, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodHTTPBasic(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTTPBasic, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodHTTPBasic = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodHTTPDigest', -) -external ffi.Pointer _NSURLAuthenticationMethodHTTPDigest; - -objc.NSString get NSURLAuthenticationMethodHTTPDigest => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTTPDigest, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodHTTPDigest(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTTPDigest, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodHTTPDigest = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodNTLM', -) -external ffi.Pointer _NSURLAuthenticationMethodNTLM; - -objc.NSString get NSURLAuthenticationMethodNTLM => objc.NSString.fromPointer( - _NSURLAuthenticationMethodNTLM, - retain: true, - release: true, -); - -set NSURLAuthenticationMethodNTLM(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodNTLM, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodNTLM = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodNegotiate', -) -external ffi.Pointer _NSURLAuthenticationMethodNegotiate; - -objc.NSString get NSURLAuthenticationMethodNegotiate => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodNegotiate, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodNegotiate(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodNegotiate, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodNegotiate = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodServerTrust', -) -external ffi.Pointer _NSURLAuthenticationMethodServerTrust; - -objc.NSString get NSURLAuthenticationMethodServerTrust => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodServerTrust, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodServerTrust(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodServerTrust, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodServerTrust = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLCanonicalPathKey') -external NSURLResourceKey _NSURLCanonicalPathKey; - -DartNSURLResourceKey get NSURLCanonicalPathKey => objc.NSString.fromPointer( - _NSURLCanonicalPathKey, - retain: true, - release: true, -); - -set NSURLCanonicalPathKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLCanonicalPathKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLCanonicalPathKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLContentAccessDateKey') -external NSURLResourceKey _NSURLContentAccessDateKey; - -DartNSURLResourceKey get NSURLContentAccessDateKey => objc.NSString.fromPointer( - _NSURLContentAccessDateKey, - retain: true, - release: true, -); - -set NSURLContentAccessDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLContentAccessDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLContentAccessDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLContentModificationDateKey') -external NSURLResourceKey _NSURLContentModificationDateKey; - -DartNSURLResourceKey get NSURLContentModificationDateKey => - objc.NSString.fromPointer( - _NSURLContentModificationDateKey, - retain: true, - release: true, - ); - -set NSURLContentModificationDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLContentModificationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLContentModificationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLContentTypeKey') -external NSURLResourceKey _NSURLContentTypeKey; - -DartNSURLResourceKey get NSURLContentTypeKey => objc.NSString.fromPointer( - _NSURLContentTypeKey, - retain: true, - release: true, -); - -set NSURLContentTypeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLContentTypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLContentTypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLCreationDateKey') -external NSURLResourceKey _NSURLCreationDateKey; - -DartNSURLResourceKey get NSURLCreationDateKey => objc.NSString.fromPointer( - _NSURLCreationDateKey, - retain: true, - release: true, -); - -set NSURLCreationDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLCreationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLCreationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLCredentialStorageChangedNotification', -) -external NSNotificationName _NSURLCredentialStorageChangedNotification; - -DartNSNotificationName get NSURLCredentialStorageChangedNotification => - objc.NSString.fromPointer( - _NSURLCredentialStorageChangedNotification, - retain: true, - release: true, - ); - -set NSURLCredentialStorageChangedNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSURLCredentialStorageChangedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLCredentialStorageChangedNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLCredentialStorageRemoveSynchronizableCredentials', -) -external ffi.Pointer -_NSURLCredentialStorageRemoveSynchronizableCredentials; - -objc.NSString get NSURLCredentialStorageRemoveSynchronizableCredentials => - objc.NSString.fromPointer( - _NSURLCredentialStorageRemoveSynchronizableCredentials, - retain: true, - release: true, - ); - -set NSURLCredentialStorageRemoveSynchronizableCredentials(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLCredentialStorageRemoveSynchronizableCredentials, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLCredentialStorageRemoveSynchronizableCredentials = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLCustomIconKey') -external NSURLResourceKey _NSURLCustomIconKey; - -DartNSURLResourceKey get NSURLCustomIconKey => - objc.NSString.fromPointer(_NSURLCustomIconKey, retain: true, release: true); - -set NSURLCustomIconKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLCustomIconKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLCustomIconKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLDirectoryEntryCountKey') -external NSURLResourceKey _NSURLDirectoryEntryCountKey; - -DartNSURLResourceKey get NSURLDirectoryEntryCountKey => - objc.NSString.fromPointer( - _NSURLDirectoryEntryCountKey, - retain: true, - release: true, - ); - -set NSURLDirectoryEntryCountKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLDirectoryEntryCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLDirectoryEntryCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLDocumentIdentifierKey') -external NSURLResourceKey _NSURLDocumentIdentifierKey; - -DartNSURLResourceKey get NSURLDocumentIdentifierKey => - objc.NSString.fromPointer( - _NSURLDocumentIdentifierKey, - retain: true, - release: true, - ); - -set NSURLDocumentIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLDocumentIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLDocumentIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLEffectiveIconKey') -external NSURLResourceKey _NSURLEffectiveIconKey; - -DartNSURLResourceKey get NSURLEffectiveIconKey => objc.NSString.fromPointer( - _NSURLEffectiveIconKey, - retain: true, - release: true, -); - -set NSURLEffectiveIconKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLEffectiveIconKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLEffectiveIconKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLErrorBackgroundTaskCancelledReasonKey', -) -external ffi.Pointer -_NSURLErrorBackgroundTaskCancelledReasonKey; - -objc.NSString get NSURLErrorBackgroundTaskCancelledReasonKey => - objc.NSString.fromPointer( - _NSURLErrorBackgroundTaskCancelledReasonKey, - retain: true, - release: true, - ); - -set NSURLErrorBackgroundTaskCancelledReasonKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLErrorBackgroundTaskCancelledReasonKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorBackgroundTaskCancelledReasonKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLErrorDomain') -external NSErrorDomain _NSURLErrorDomain; - -DartNSErrorDomain get NSURLErrorDomain => - objc.NSString.fromPointer(_NSURLErrorDomain, retain: true, release: true); - -set NSURLErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSURLErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLErrorFailingURLErrorKey', -) -external ffi.Pointer _NSURLErrorFailingURLErrorKey; - -objc.NSString get NSURLErrorFailingURLErrorKey => objc.NSString.fromPointer( - _NSURLErrorFailingURLErrorKey, - retain: true, - release: true, -); - -set NSURLErrorFailingURLErrorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLErrorFailingURLErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorFailingURLErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLErrorFailingURLPeerTrustErrorKey', -) -external ffi.Pointer -_NSURLErrorFailingURLPeerTrustErrorKey; - -objc.NSString get NSURLErrorFailingURLPeerTrustErrorKey => - objc.NSString.fromPointer( - _NSURLErrorFailingURLPeerTrustErrorKey, - retain: true, - release: true, - ); - -set NSURLErrorFailingURLPeerTrustErrorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLErrorFailingURLPeerTrustErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorFailingURLPeerTrustErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLErrorFailingURLStringErrorKey', -) -external ffi.Pointer _NSURLErrorFailingURLStringErrorKey; - -objc.NSString get NSURLErrorFailingURLStringErrorKey => - objc.NSString.fromPointer( - _NSURLErrorFailingURLStringErrorKey, - retain: true, - release: true, - ); - -set NSURLErrorFailingURLStringErrorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLErrorFailingURLStringErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorFailingURLStringErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLErrorKey') -external NSErrorUserInfoKey _NSURLErrorKey; - -DartNSErrorUserInfoKey get NSURLErrorKey => - objc.NSString.fromPointer(_NSURLErrorKey, retain: true, release: true); - -set NSURLErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSURLErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLErrorNetworkUnavailableReasonKey') -external NSErrorUserInfoKey _NSURLErrorNetworkUnavailableReasonKey; - -DartNSErrorUserInfoKey get NSURLErrorNetworkUnavailableReasonKey => - objc.NSString.fromPointer( - _NSURLErrorNetworkUnavailableReasonKey, - retain: true, - release: true, - ); - -set NSURLErrorNetworkUnavailableReasonKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSURLErrorNetworkUnavailableReasonKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorNetworkUnavailableReasonKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileAllocatedSizeKey') -external NSURLResourceKey _NSURLFileAllocatedSizeKey; - -DartNSURLResourceKey get NSURLFileAllocatedSizeKey => objc.NSString.fromPointer( - _NSURLFileAllocatedSizeKey, - retain: true, - release: true, -); - -set NSURLFileAllocatedSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileAllocatedSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileAllocatedSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileContentIdentifierKey') -external NSURLResourceKey _NSURLFileContentIdentifierKey; - -DartNSURLResourceKey get NSURLFileContentIdentifierKey => - objc.NSString.fromPointer( - _NSURLFileContentIdentifierKey, - retain: true, - release: true, - ); - -set NSURLFileContentIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileContentIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileContentIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileIdentifierKey') -external NSURLResourceKey _NSURLFileIdentifierKey; - -DartNSURLResourceKey get NSURLFileIdentifierKey => objc.NSString.fromPointer( - _NSURLFileIdentifierKey, - retain: true, - release: true, -); - -set NSURLFileIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileProtectionComplete') -external NSURLFileProtectionType _NSURLFileProtectionComplete; - -DartNSURLFileProtectionType get NSURLFileProtectionComplete => - objc.NSString.fromPointer( - _NSURLFileProtectionComplete, - retain: true, - release: true, - ); - -set NSURLFileProtectionComplete(DartNSURLFileProtectionType value) { - objc.NSString.fromPointer( - _NSURLFileProtectionComplete, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionComplete = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLFileProtectionCompleteUnlessOpen', -) -external NSURLFileProtectionType _NSURLFileProtectionCompleteUnlessOpen; - -DartNSURLFileProtectionType get NSURLFileProtectionCompleteUnlessOpen => - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteUnlessOpen, - retain: true, - release: true, - ); - -set NSURLFileProtectionCompleteUnlessOpen(DartNSURLFileProtectionType value) { - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteUnlessOpen, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionCompleteUnlessOpen = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLFileProtectionCompleteUntilFirstUserAuthentication', -) -external NSURLFileProtectionType -_NSURLFileProtectionCompleteUntilFirstUserAuthentication; - -DartNSURLFileProtectionType -get NSURLFileProtectionCompleteUntilFirstUserAuthentication => - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteUntilFirstUserAuthentication, - retain: true, - release: true, - ); - -set NSURLFileProtectionCompleteUntilFirstUserAuthentication( - DartNSURLFileProtectionType value, -) { - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteUntilFirstUserAuthentication, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionCompleteUntilFirstUserAuthentication = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLFileProtectionCompleteWhenUserInactive', -) -external NSURLFileProtectionType _NSURLFileProtectionCompleteWhenUserInactive; - -DartNSURLFileProtectionType get NSURLFileProtectionCompleteWhenUserInactive => - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteWhenUserInactive, - retain: true, - release: true, - ); - -set NSURLFileProtectionCompleteWhenUserInactive( - DartNSURLFileProtectionType value, -) { - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteWhenUserInactive, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionCompleteWhenUserInactive = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileProtectionKey') -external NSURLResourceKey _NSURLFileProtectionKey; - -DartNSURLResourceKey get NSURLFileProtectionKey => objc.NSString.fromPointer( - _NSURLFileProtectionKey, - retain: true, - release: true, -); - -set NSURLFileProtectionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileProtectionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileProtectionNone') -external NSURLFileProtectionType _NSURLFileProtectionNone; - -DartNSURLFileProtectionType get NSURLFileProtectionNone => - objc.NSString.fromPointer( - _NSURLFileProtectionNone, - retain: true, - release: true, - ); - -set NSURLFileProtectionNone(DartNSURLFileProtectionType value) { - objc.NSString.fromPointer( - _NSURLFileProtectionNone, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionNone = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceIdentifierKey') -external NSURLResourceKey _NSURLFileResourceIdentifierKey; - -DartNSURLResourceKey get NSURLFileResourceIdentifierKey => - objc.NSString.fromPointer( - _NSURLFileResourceIdentifierKey, - retain: true, - release: true, - ); - -set NSURLFileResourceIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileResourceIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeBlockSpecial') -external NSURLFileResourceType _NSURLFileResourceTypeBlockSpecial; - -DartNSURLFileResourceType get NSURLFileResourceTypeBlockSpecial => - objc.NSString.fromPointer( - _NSURLFileResourceTypeBlockSpecial, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeBlockSpecial(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeBlockSpecial, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeBlockSpecial = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLFileResourceTypeCharacterSpecial', -) -external NSURLFileResourceType _NSURLFileResourceTypeCharacterSpecial; - -DartNSURLFileResourceType get NSURLFileResourceTypeCharacterSpecial => - objc.NSString.fromPointer( - _NSURLFileResourceTypeCharacterSpecial, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeCharacterSpecial(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeCharacterSpecial, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeCharacterSpecial = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeDirectory') -external NSURLFileResourceType _NSURLFileResourceTypeDirectory; - -DartNSURLFileResourceType get NSURLFileResourceTypeDirectory => - objc.NSString.fromPointer( - _NSURLFileResourceTypeDirectory, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeDirectory(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeDirectory, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeDirectory = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeKey') -external NSURLResourceKey _NSURLFileResourceTypeKey; - -DartNSURLResourceKey get NSURLFileResourceTypeKey => objc.NSString.fromPointer( - _NSURLFileResourceTypeKey, - retain: true, - release: true, -); - -set NSURLFileResourceTypeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeNamedPipe') -external NSURLFileResourceType _NSURLFileResourceTypeNamedPipe; - -DartNSURLFileResourceType get NSURLFileResourceTypeNamedPipe => - objc.NSString.fromPointer( - _NSURLFileResourceTypeNamedPipe, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeNamedPipe(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeNamedPipe, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeNamedPipe = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeRegular') -external NSURLFileResourceType _NSURLFileResourceTypeRegular; - -DartNSURLFileResourceType get NSURLFileResourceTypeRegular => - objc.NSString.fromPointer( - _NSURLFileResourceTypeRegular, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeRegular(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeRegular, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeRegular = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeSocket') -external NSURLFileResourceType _NSURLFileResourceTypeSocket; - -DartNSURLFileResourceType get NSURLFileResourceTypeSocket => - objc.NSString.fromPointer( - _NSURLFileResourceTypeSocket, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeSocket(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeSocket, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeSocket = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeSymbolicLink') -external NSURLFileResourceType _NSURLFileResourceTypeSymbolicLink; - -DartNSURLFileResourceType get NSURLFileResourceTypeSymbolicLink => - objc.NSString.fromPointer( - _NSURLFileResourceTypeSymbolicLink, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeSymbolicLink(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeSymbolicLink, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeSymbolicLink = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeUnknown') -external NSURLFileResourceType _NSURLFileResourceTypeUnknown; - -DartNSURLFileResourceType get NSURLFileResourceTypeUnknown => - objc.NSString.fromPointer( - _NSURLFileResourceTypeUnknown, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeUnknown(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeUnknown, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeUnknown = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSURLFileScheme') -external ffi.Pointer _NSURLFileScheme; - -objc.NSString get NSURLFileScheme => - objc.NSString.fromPointer(_NSURLFileScheme, retain: true, release: true); - -set NSURLFileScheme(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLFileScheme, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileScheme = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileSecurityKey') -external NSURLResourceKey _NSURLFileSecurityKey; - -DartNSURLResourceKey get NSURLFileSecurityKey => objc.NSString.fromPointer( - _NSURLFileSecurityKey, - retain: true, - release: true, -); - -set NSURLFileSecurityKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileSecurityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileSecurityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileSizeKey') -external NSURLResourceKey _NSURLFileSizeKey; - -DartNSURLResourceKey get NSURLFileSizeKey => - objc.NSString.fromPointer(_NSURLFileSizeKey, retain: true, release: true); - -set NSURLFileSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLGenerationIdentifierKey') -external NSURLResourceKey _NSURLGenerationIdentifierKey; - -DartNSURLResourceKey get NSURLGenerationIdentifierKey => - objc.NSString.fromPointer( - _NSURLGenerationIdentifierKey, - retain: true, - release: true, - ); - -set NSURLGenerationIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLGenerationIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLGenerationIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLHasHiddenExtensionKey') -external NSURLResourceKey _NSURLHasHiddenExtensionKey; - -DartNSURLResourceKey get NSURLHasHiddenExtensionKey => - objc.NSString.fromPointer( - _NSURLHasHiddenExtensionKey, - retain: true, - release: true, - ); - -set NSURLHasHiddenExtensionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLHasHiddenExtensionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLHasHiddenExtensionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsAliasFileKey') -external NSURLResourceKey _NSURLIsAliasFileKey; - -DartNSURLResourceKey get NSURLIsAliasFileKey => objc.NSString.fromPointer( - _NSURLIsAliasFileKey, - retain: true, - release: true, -); - -set NSURLIsAliasFileKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsAliasFileKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsAliasFileKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsApplicationKey') -external NSURLResourceKey _NSURLIsApplicationKey; - -DartNSURLResourceKey get NSURLIsApplicationKey => objc.NSString.fromPointer( - _NSURLIsApplicationKey, - retain: true, - release: true, -); - -set NSURLIsApplicationKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsApplicationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsApplicationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsDirectoryKey') -external NSURLResourceKey _NSURLIsDirectoryKey; - -DartNSURLResourceKey get NSURLIsDirectoryKey => objc.NSString.fromPointer( - _NSURLIsDirectoryKey, - retain: true, - release: true, -); - -set NSURLIsDirectoryKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsDirectoryKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsDirectoryKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsExcludedFromBackupKey') -external NSURLResourceKey _NSURLIsExcludedFromBackupKey; - -DartNSURLResourceKey get NSURLIsExcludedFromBackupKey => - objc.NSString.fromPointer( - _NSURLIsExcludedFromBackupKey, - retain: true, - release: true, - ); - -set NSURLIsExcludedFromBackupKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsExcludedFromBackupKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsExcludedFromBackupKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsExecutableKey') -external NSURLResourceKey _NSURLIsExecutableKey; - -DartNSURLResourceKey get NSURLIsExecutableKey => objc.NSString.fromPointer( - _NSURLIsExecutableKey, - retain: true, - release: true, -); - -set NSURLIsExecutableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsExecutableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsExecutableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsHiddenKey') -external NSURLResourceKey _NSURLIsHiddenKey; - -DartNSURLResourceKey get NSURLIsHiddenKey => - objc.NSString.fromPointer(_NSURLIsHiddenKey, retain: true, release: true); - -set NSURLIsHiddenKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsHiddenKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsHiddenKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsMountTriggerKey') -external NSURLResourceKey _NSURLIsMountTriggerKey; - -DartNSURLResourceKey get NSURLIsMountTriggerKey => objc.NSString.fromPointer( - _NSURLIsMountTriggerKey, - retain: true, - release: true, -); - -set NSURLIsMountTriggerKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsMountTriggerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsMountTriggerKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsPackageKey') -external NSURLResourceKey _NSURLIsPackageKey; - -DartNSURLResourceKey get NSURLIsPackageKey => - objc.NSString.fromPointer(_NSURLIsPackageKey, retain: true, release: true); - -set NSURLIsPackageKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsPackageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsPackageKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsPurgeableKey') -external NSURLResourceKey _NSURLIsPurgeableKey; - -DartNSURLResourceKey get NSURLIsPurgeableKey => objc.NSString.fromPointer( - _NSURLIsPurgeableKey, - retain: true, - release: true, -); - -set NSURLIsPurgeableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsPurgeableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsPurgeableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsReadableKey') -external NSURLResourceKey _NSURLIsReadableKey; - -DartNSURLResourceKey get NSURLIsReadableKey => - objc.NSString.fromPointer(_NSURLIsReadableKey, retain: true, release: true); - -set NSURLIsReadableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsReadableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsReadableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsRegularFileKey') -external NSURLResourceKey _NSURLIsRegularFileKey; - -DartNSURLResourceKey get NSURLIsRegularFileKey => objc.NSString.fromPointer( - _NSURLIsRegularFileKey, - retain: true, - release: true, -); - -set NSURLIsRegularFileKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsRegularFileKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsRegularFileKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsSparseKey') -external NSURLResourceKey _NSURLIsSparseKey; - -DartNSURLResourceKey get NSURLIsSparseKey => - objc.NSString.fromPointer(_NSURLIsSparseKey, retain: true, release: true); - -set NSURLIsSparseKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsSparseKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsSparseKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsSymbolicLinkKey') -external NSURLResourceKey _NSURLIsSymbolicLinkKey; - -DartNSURLResourceKey get NSURLIsSymbolicLinkKey => objc.NSString.fromPointer( - _NSURLIsSymbolicLinkKey, - retain: true, - release: true, -); - -set NSURLIsSymbolicLinkKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsSymbolicLinkKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsSymbolicLinkKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsSystemImmutableKey') -external NSURLResourceKey _NSURLIsSystemImmutableKey; - -DartNSURLResourceKey get NSURLIsSystemImmutableKey => objc.NSString.fromPointer( - _NSURLIsSystemImmutableKey, - retain: true, - release: true, -); - -set NSURLIsSystemImmutableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsSystemImmutableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsSystemImmutableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsUbiquitousItemKey') -external NSURLResourceKey _NSURLIsUbiquitousItemKey; - -DartNSURLResourceKey get NSURLIsUbiquitousItemKey => objc.NSString.fromPointer( - _NSURLIsUbiquitousItemKey, - retain: true, - release: true, -); - -set NSURLIsUbiquitousItemKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsUbiquitousItemKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsUbiquitousItemKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsUserImmutableKey') -external NSURLResourceKey _NSURLIsUserImmutableKey; - -DartNSURLResourceKey get NSURLIsUserImmutableKey => objc.NSString.fromPointer( - _NSURLIsUserImmutableKey, - retain: true, - release: true, -); - -set NSURLIsUserImmutableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsUserImmutableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsUserImmutableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsVolumeKey') -external NSURLResourceKey _NSURLIsVolumeKey; - -DartNSURLResourceKey get NSURLIsVolumeKey => - objc.NSString.fromPointer(_NSURLIsVolumeKey, retain: true, release: true); - -set NSURLIsVolumeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsVolumeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsVolumeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsWritableKey') -external NSURLResourceKey _NSURLIsWritableKey; - -DartNSURLResourceKey get NSURLIsWritableKey => - objc.NSString.fromPointer(_NSURLIsWritableKey, retain: true, release: true); - -set NSURLIsWritableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsWritableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsWritableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLKeysOfUnsetValuesKey') -external NSURLResourceKey _NSURLKeysOfUnsetValuesKey; - -DartNSURLResourceKey get NSURLKeysOfUnsetValuesKey => objc.NSString.fromPointer( - _NSURLKeysOfUnsetValuesKey, - retain: true, - release: true, -); - -set NSURLKeysOfUnsetValuesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLKeysOfUnsetValuesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLKeysOfUnsetValuesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLabelColorKey') -external NSURLResourceKey _NSURLLabelColorKey; - -DartNSURLResourceKey get NSURLLabelColorKey => - objc.NSString.fromPointer(_NSURLLabelColorKey, retain: true, release: true); - -set NSURLLabelColorKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLabelColorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLabelColorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLabelNumberKey') -external NSURLResourceKey _NSURLLabelNumberKey; - -DartNSURLResourceKey get NSURLLabelNumberKey => objc.NSString.fromPointer( - _NSURLLabelNumberKey, - retain: true, - release: true, -); - -set NSURLLabelNumberKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLabelNumberKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLabelNumberKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLinkCountKey') -external NSURLResourceKey _NSURLLinkCountKey; - -DartNSURLResourceKey get NSURLLinkCountKey => - objc.NSString.fromPointer(_NSURLLinkCountKey, retain: true, release: true); - -set NSURLLinkCountKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLinkCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLinkCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLocalizedLabelKey') -external NSURLResourceKey _NSURLLocalizedLabelKey; - -DartNSURLResourceKey get NSURLLocalizedLabelKey => objc.NSString.fromPointer( - _NSURLLocalizedLabelKey, - retain: true, - release: true, -); - -set NSURLLocalizedLabelKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLocalizedLabelKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLocalizedLabelKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLocalizedNameKey') -external NSURLResourceKey _NSURLLocalizedNameKey; - -DartNSURLResourceKey get NSURLLocalizedNameKey => objc.NSString.fromPointer( - _NSURLLocalizedNameKey, - retain: true, - release: true, -); - -set NSURLLocalizedNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLocalizedNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLocalizedNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLocalizedTypeDescriptionKey') -external NSURLResourceKey _NSURLLocalizedTypeDescriptionKey; - -DartNSURLResourceKey get NSURLLocalizedTypeDescriptionKey => - objc.NSString.fromPointer( - _NSURLLocalizedTypeDescriptionKey, - retain: true, - release: true, - ); - -set NSURLLocalizedTypeDescriptionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLocalizedTypeDescriptionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLocalizedTypeDescriptionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLMayHaveExtendedAttributesKey') -external NSURLResourceKey _NSURLMayHaveExtendedAttributesKey; - -DartNSURLResourceKey get NSURLMayHaveExtendedAttributesKey => - objc.NSString.fromPointer( - _NSURLMayHaveExtendedAttributesKey, - retain: true, - release: true, - ); - -set NSURLMayHaveExtendedAttributesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLMayHaveExtendedAttributesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLMayHaveExtendedAttributesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLMayShareFileContentKey') -external NSURLResourceKey _NSURLMayShareFileContentKey; - -DartNSURLResourceKey get NSURLMayShareFileContentKey => - objc.NSString.fromPointer( - _NSURLMayShareFileContentKey, - retain: true, - release: true, - ); - -set NSURLMayShareFileContentKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLMayShareFileContentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLMayShareFileContentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLNameKey') -external NSURLResourceKey _NSURLNameKey; - -DartNSURLResourceKey get NSURLNameKey => - objc.NSString.fromPointer(_NSURLNameKey, retain: true, release: true); - -set NSURLNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLParentDirectoryURLKey') -external NSURLResourceKey _NSURLParentDirectoryURLKey; - -DartNSURLResourceKey get NSURLParentDirectoryURLKey => - objc.NSString.fromPointer( - _NSURLParentDirectoryURLKey, - retain: true, - release: true, - ); - -set NSURLParentDirectoryURLKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLParentDirectoryURLKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLParentDirectoryURLKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLPathKey') -external NSURLResourceKey _NSURLPathKey; - -DartNSURLResourceKey get NSURLPathKey => - objc.NSString.fromPointer(_NSURLPathKey, retain: true, release: true); - -set NSURLPathKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLPathKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLPathKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLPreferredIOBlockSizeKey') -external NSURLResourceKey _NSURLPreferredIOBlockSizeKey; - -DartNSURLResourceKey get NSURLPreferredIOBlockSizeKey => - objc.NSString.fromPointer( - _NSURLPreferredIOBlockSizeKey, - retain: true, - release: true, - ); - -set NSURLPreferredIOBlockSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLPreferredIOBlockSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLPreferredIOBlockSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSURLProtectionSpaceFTP') -external ffi.Pointer _NSURLProtectionSpaceFTP; - -objc.NSString get NSURLProtectionSpaceFTP => objc.NSString.fromPointer( - _NSURLProtectionSpaceFTP, - retain: true, - release: true, -); - -set NSURLProtectionSpaceFTP(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceFTP, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceFTP = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceFTPProxy', -) -external ffi.Pointer _NSURLProtectionSpaceFTPProxy; - -objc.NSString get NSURLProtectionSpaceFTPProxy => objc.NSString.fromPointer( - _NSURLProtectionSpaceFTPProxy, - retain: true, - release: true, -); - -set NSURLProtectionSpaceFTPProxy(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceFTPProxy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceFTPProxy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceHTTP', -) -external ffi.Pointer _NSURLProtectionSpaceHTTP; - -objc.NSString get NSURLProtectionSpaceHTTP => objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTP, - retain: true, - release: true, -); - -set NSURLProtectionSpaceHTTP(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTP, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceHTTP = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceHTTPProxy', -) -external ffi.Pointer _NSURLProtectionSpaceHTTPProxy; - -objc.NSString get NSURLProtectionSpaceHTTPProxy => objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPProxy, - retain: true, - release: true, -); - -set NSURLProtectionSpaceHTTPProxy(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPProxy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceHTTPProxy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceHTTPS', -) -external ffi.Pointer _NSURLProtectionSpaceHTTPS; - -objc.NSString get NSURLProtectionSpaceHTTPS => objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPS, - retain: true, - release: true, -); - -set NSURLProtectionSpaceHTTPS(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPS, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceHTTPS = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceHTTPSProxy', -) -external ffi.Pointer _NSURLProtectionSpaceHTTPSProxy; - -objc.NSString get NSURLProtectionSpaceHTTPSProxy => objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPSProxy, - retain: true, - release: true, -); - -set NSURLProtectionSpaceHTTPSProxy(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPSProxy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceHTTPSProxy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceSOCKSProxy', -) -external ffi.Pointer _NSURLProtectionSpaceSOCKSProxy; - -objc.NSString get NSURLProtectionSpaceSOCKSProxy => objc.NSString.fromPointer( - _NSURLProtectionSpaceSOCKSProxy, - retain: true, - release: true, -); - -set NSURLProtectionSpaceSOCKSProxy(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceSOCKSProxy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceSOCKSProxy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLQuarantinePropertiesKey') -external NSURLResourceKey _NSURLQuarantinePropertiesKey; - -DartNSURLResourceKey get NSURLQuarantinePropertiesKey => - objc.NSString.fromPointer( - _NSURLQuarantinePropertiesKey, - retain: true, - release: true, - ); - -set NSURLQuarantinePropertiesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLQuarantinePropertiesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLQuarantinePropertiesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLSessionDownloadTaskResumeData', -) -external ffi.Pointer _NSURLSessionDownloadTaskResumeData; - -objc.NSString get NSURLSessionDownloadTaskResumeData => - objc.NSString.fromPointer( - _NSURLSessionDownloadTaskResumeData, - retain: true, - release: true, - ); - -set NSURLSessionDownloadTaskResumeData(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLSessionDownloadTaskResumeData, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLSessionDownloadTaskResumeData = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final double NSURLSessionTaskPriorityDefault; - -@ffi.Native() -external final double NSURLSessionTaskPriorityHigh; - -@ffi.Native() -external final double NSURLSessionTaskPriorityLow; - -@ffi.Native() -external final int NSURLSessionTransferSizeUnknown; - -@ffi.Native>( - symbol: 'NSURLSessionUploadTaskResumeData', -) -external ffi.Pointer _NSURLSessionUploadTaskResumeData; - -objc.NSString get NSURLSessionUploadTaskResumeData => objc.NSString.fromPointer( - _NSURLSessionUploadTaskResumeData, - retain: true, - release: true, -); - -set NSURLSessionUploadTaskResumeData(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLSessionUploadTaskResumeData, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLSessionUploadTaskResumeData = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLTagNamesKey') -external NSURLResourceKey _NSURLTagNamesKey; - -DartNSURLResourceKey get NSURLTagNamesKey => - objc.NSString.fromPointer(_NSURLTagNamesKey, retain: true, release: true); - -set NSURLTagNamesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLTagNamesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLTagNamesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLThumbnailDictionaryKey') -external NSURLResourceKey _NSURLThumbnailDictionaryKey; - -DartNSURLResourceKey get NSURLThumbnailDictionaryKey => - objc.NSString.fromPointer( - _NSURLThumbnailDictionaryKey, - retain: true, - release: true, - ); - -set NSURLThumbnailDictionaryKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLThumbnailDictionaryKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLThumbnailDictionaryKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLThumbnailKey') -external NSURLResourceKey _NSURLThumbnailKey; - -DartNSURLResourceKey get NSURLThumbnailKey => - objc.NSString.fromPointer(_NSURLThumbnailKey, retain: true, release: true); - -set NSURLThumbnailKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLThumbnailKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLThumbnailKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLTotalFileAllocatedSizeKey') -external NSURLResourceKey _NSURLTotalFileAllocatedSizeKey; - -DartNSURLResourceKey get NSURLTotalFileAllocatedSizeKey => - objc.NSString.fromPointer( - _NSURLTotalFileAllocatedSizeKey, - retain: true, - release: true, - ); - -set NSURLTotalFileAllocatedSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLTotalFileAllocatedSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLTotalFileAllocatedSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLTotalFileSizeKey') -external NSURLResourceKey _NSURLTotalFileSizeKey; - -DartNSURLResourceKey get NSURLTotalFileSizeKey => objc.NSString.fromPointer( - _NSURLTotalFileSizeKey, - retain: true, - release: true, -); - -set NSURLTotalFileSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLTotalFileSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLTotalFileSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLTypeIdentifierKey') -external NSURLResourceKey _NSURLTypeIdentifierKey; - -DartNSURLResourceKey get NSURLTypeIdentifierKey => objc.NSString.fromPointer( - _NSURLTypeIdentifierKey, - retain: true, - release: true, -); - -set NSURLTypeIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLTypeIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLTypeIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemContainerDisplayNameKey', -) -external NSURLResourceKey _NSURLUbiquitousItemContainerDisplayNameKey; - -DartNSURLResourceKey get NSURLUbiquitousItemContainerDisplayNameKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemContainerDisplayNameKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemContainerDisplayNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemContainerDisplayNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemContainerDisplayNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadRequestedKey') -external NSURLResourceKey _NSURLUbiquitousItemDownloadRequestedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemDownloadRequestedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadRequestedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemDownloadRequestedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadRequestedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadRequestedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadingErrorKey') -external NSURLResourceKey _NSURLUbiquitousItemDownloadingErrorKey; - -DartNSURLResourceKey get NSURLUbiquitousItemDownloadingErrorKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingErrorKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemDownloadingErrorKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadingErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemDownloadingStatusCurrent', -) -external NSURLUbiquitousItemDownloadingStatus -_NSURLUbiquitousItemDownloadingStatusCurrent; - -DartNSURLUbiquitousItemDownloadingStatus -get NSURLUbiquitousItemDownloadingStatusCurrent => objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusCurrent, - retain: true, - release: true, -); - -set NSURLUbiquitousItemDownloadingStatusCurrent( - DartNSURLUbiquitousItemDownloadingStatus value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusCurrent, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadingStatusCurrent = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemDownloadingStatusDownloaded', -) -external NSURLUbiquitousItemDownloadingStatus -_NSURLUbiquitousItemDownloadingStatusDownloaded; - -DartNSURLUbiquitousItemDownloadingStatus -get NSURLUbiquitousItemDownloadingStatusDownloaded => objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusDownloaded, - retain: true, - release: true, -); - -set NSURLUbiquitousItemDownloadingStatusDownloaded( - DartNSURLUbiquitousItemDownloadingStatus value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusDownloaded, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadingStatusDownloaded = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadingStatusKey') -external NSURLResourceKey _NSURLUbiquitousItemDownloadingStatusKey; - -DartNSURLResourceKey get NSURLUbiquitousItemDownloadingStatusKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemDownloadingStatusKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadingStatusKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemDownloadingStatusNotDownloaded', -) -external NSURLUbiquitousItemDownloadingStatus -_NSURLUbiquitousItemDownloadingStatusNotDownloaded; - -DartNSURLUbiquitousItemDownloadingStatus -get NSURLUbiquitousItemDownloadingStatusNotDownloaded => - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusNotDownloaded, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemDownloadingStatusNotDownloaded( - DartNSURLUbiquitousItemDownloadingStatus value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusNotDownloaded, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadingStatusNotDownloaded = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemHasUnresolvedConflictsKey', -) -external NSURLResourceKey _NSURLUbiquitousItemHasUnresolvedConflictsKey; - -DartNSURLResourceKey get NSURLUbiquitousItemHasUnresolvedConflictsKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemHasUnresolvedConflictsKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemHasUnresolvedConflictsKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemHasUnresolvedConflictsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemHasUnresolvedConflictsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsDownloadedKey') -external NSURLResourceKey _NSURLUbiquitousItemIsDownloadedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsDownloadedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsDownloadedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsDownloadedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsDownloadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsDownloadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsDownloadingKey') -external NSURLResourceKey _NSURLUbiquitousItemIsDownloadingKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsDownloadingKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsDownloadingKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsDownloadingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsDownloadingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsDownloadingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemIsExcludedFromSyncKey', -) -external NSURLResourceKey _NSURLUbiquitousItemIsExcludedFromSyncKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsExcludedFromSyncKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsExcludedFromSyncKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsExcludedFromSyncKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsExcludedFromSyncKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsExcludedFromSyncKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsSharedKey') -external NSURLResourceKey _NSURLUbiquitousItemIsSharedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsSharedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsSharedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsSharedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsSharedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsSharedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsSyncPausedKey') -external NSURLResourceKey _NSURLUbiquitousItemIsSyncPausedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsSyncPausedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsSyncPausedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsSyncPausedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsSyncPausedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsSyncPausedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsUploadedKey') -external NSURLResourceKey _NSURLUbiquitousItemIsUploadedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsUploadedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsUploadedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsUploadedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsUploadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsUploadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsUploadingKey') -external NSURLResourceKey _NSURLUbiquitousItemIsUploadingKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsUploadingKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsUploadingKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsUploadingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsUploadingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsUploadingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemPercentDownloadedKey') -external NSURLResourceKey _NSURLUbiquitousItemPercentDownloadedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemPercentDownloadedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemPercentDownloadedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemPercentDownloadedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemPercentDownloadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemPercentDownloadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemPercentUploadedKey') -external NSURLResourceKey _NSURLUbiquitousItemPercentUploadedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemPercentUploadedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemPercentUploadedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemPercentUploadedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemPercentUploadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemPercentUploadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemSupportedSyncControlsKey', -) -external NSURLResourceKey _NSURLUbiquitousItemSupportedSyncControlsKey; - -DartNSURLResourceKey get NSURLUbiquitousItemSupportedSyncControlsKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemSupportedSyncControlsKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemSupportedSyncControlsKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemSupportedSyncControlsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemSupportedSyncControlsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemUploadingErrorKey') -external NSURLResourceKey _NSURLUbiquitousItemUploadingErrorKey; - -DartNSURLResourceKey get NSURLUbiquitousItemUploadingErrorKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemUploadingErrorKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemUploadingErrorKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemUploadingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemUploadingErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemCurrentUserPermissionsKey', -) -external NSURLResourceKey _NSURLUbiquitousSharedItemCurrentUserPermissionsKey; - -DartNSURLResourceKey get NSURLUbiquitousSharedItemCurrentUserPermissionsKey => - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemCurrentUserPermissionsKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousSharedItemCurrentUserPermissionsKey( - DartNSURLResourceKey value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemCurrentUserPermissionsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemCurrentUserPermissionsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemCurrentUserRoleKey', -) -external NSURLResourceKey _NSURLUbiquitousSharedItemCurrentUserRoleKey; - -DartNSURLResourceKey get NSURLUbiquitousSharedItemCurrentUserRoleKey => - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemCurrentUserRoleKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousSharedItemCurrentUserRoleKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemCurrentUserRoleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemCurrentUserRoleKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey', -) -external NSURLResourceKey -_NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey; - -DartNSURLResourceKey -get NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey => - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey( - DartNSURLResourceKey value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemOwnerNameComponentsKey', -) -external NSURLResourceKey _NSURLUbiquitousSharedItemOwnerNameComponentsKey; - -DartNSURLResourceKey get NSURLUbiquitousSharedItemOwnerNameComponentsKey => - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemOwnerNameComponentsKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousSharedItemOwnerNameComponentsKey( - DartNSURLResourceKey value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemOwnerNameComponentsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemOwnerNameComponentsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemPermissionsReadOnly', -) -external NSURLUbiquitousSharedItemPermissions -_NSURLUbiquitousSharedItemPermissionsReadOnly; - -DartNSURLUbiquitousSharedItemPermissions -get NSURLUbiquitousSharedItemPermissionsReadOnly => objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemPermissionsReadOnly, - retain: true, - release: true, -); - -set NSURLUbiquitousSharedItemPermissionsReadOnly( - DartNSURLUbiquitousSharedItemPermissions value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemPermissionsReadOnly, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemPermissionsReadOnly = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemPermissionsReadWrite', -) -external NSURLUbiquitousSharedItemPermissions -_NSURLUbiquitousSharedItemPermissionsReadWrite; - -DartNSURLUbiquitousSharedItemPermissions -get NSURLUbiquitousSharedItemPermissionsReadWrite => objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemPermissionsReadWrite, - retain: true, - release: true, -); - -set NSURLUbiquitousSharedItemPermissionsReadWrite( - DartNSURLUbiquitousSharedItemPermissions value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemPermissionsReadWrite, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemPermissionsReadWrite = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemRoleOwner', -) -external NSURLUbiquitousSharedItemRole _NSURLUbiquitousSharedItemRoleOwner; - -DartNSURLUbiquitousSharedItemRole get NSURLUbiquitousSharedItemRoleOwner => - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemRoleOwner, - retain: true, - release: true, - ); - -set NSURLUbiquitousSharedItemRoleOwner( - DartNSURLUbiquitousSharedItemRole value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemRoleOwner, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemRoleOwner = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemRoleParticipant', -) -external NSURLUbiquitousSharedItemRole -_NSURLUbiquitousSharedItemRoleParticipant; - -DartNSURLUbiquitousSharedItemRole -get NSURLUbiquitousSharedItemRoleParticipant => objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemRoleParticipant, - retain: true, - release: true, -); - -set NSURLUbiquitousSharedItemRoleParticipant( - DartNSURLUbiquitousSharedItemRole value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemRoleParticipant, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemRoleParticipant = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeAvailableCapacityForImportantUsageKey', -) -external NSURLResourceKey _NSURLVolumeAvailableCapacityForImportantUsageKey; - -DartNSURLResourceKey get NSURLVolumeAvailableCapacityForImportantUsageKey => - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityForImportantUsageKey, - retain: true, - release: true, - ); - -set NSURLVolumeAvailableCapacityForImportantUsageKey( - DartNSURLResourceKey value, -) { - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityForImportantUsageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeAvailableCapacityForImportantUsageKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeAvailableCapacityForOpportunisticUsageKey', -) -external NSURLResourceKey _NSURLVolumeAvailableCapacityForOpportunisticUsageKey; - -DartNSURLResourceKey get NSURLVolumeAvailableCapacityForOpportunisticUsageKey => - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityForOpportunisticUsageKey, - retain: true, - release: true, - ); - -set NSURLVolumeAvailableCapacityForOpportunisticUsageKey( - DartNSURLResourceKey value, -) { - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityForOpportunisticUsageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeAvailableCapacityForOpportunisticUsageKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeAvailableCapacityKey') -external NSURLResourceKey _NSURLVolumeAvailableCapacityKey; - -DartNSURLResourceKey get NSURLVolumeAvailableCapacityKey => - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityKey, - retain: true, - release: true, - ); - -set NSURLVolumeAvailableCapacityKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeAvailableCapacityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeCreationDateKey') -external NSURLResourceKey _NSURLVolumeCreationDateKey; - -DartNSURLResourceKey get NSURLVolumeCreationDateKey => - objc.NSString.fromPointer( - _NSURLVolumeCreationDateKey, - retain: true, - release: true, - ); - -set NSURLVolumeCreationDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeCreationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeCreationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIdentifierKey') -external NSURLResourceKey _NSURLVolumeIdentifierKey; - -DartNSURLResourceKey get NSURLVolumeIdentifierKey => objc.NSString.fromPointer( - _NSURLVolumeIdentifierKey, - retain: true, - release: true, -); - -set NSURLVolumeIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsAutomountedKey') -external NSURLResourceKey _NSURLVolumeIsAutomountedKey; - -DartNSURLResourceKey get NSURLVolumeIsAutomountedKey => - objc.NSString.fromPointer( - _NSURLVolumeIsAutomountedKey, - retain: true, - release: true, - ); - -set NSURLVolumeIsAutomountedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsAutomountedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsAutomountedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsBrowsableKey') -external NSURLResourceKey _NSURLVolumeIsBrowsableKey; - -DartNSURLResourceKey get NSURLVolumeIsBrowsableKey => objc.NSString.fromPointer( - _NSURLVolumeIsBrowsableKey, - retain: true, - release: true, -); - -set NSURLVolumeIsBrowsableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsBrowsableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsBrowsableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsEjectableKey') -external NSURLResourceKey _NSURLVolumeIsEjectableKey; - -DartNSURLResourceKey get NSURLVolumeIsEjectableKey => objc.NSString.fromPointer( - _NSURLVolumeIsEjectableKey, - retain: true, - release: true, -); - -set NSURLVolumeIsEjectableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsEjectableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsEjectableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsEncryptedKey') -external NSURLResourceKey _NSURLVolumeIsEncryptedKey; - -DartNSURLResourceKey get NSURLVolumeIsEncryptedKey => objc.NSString.fromPointer( - _NSURLVolumeIsEncryptedKey, - retain: true, - release: true, -); - -set NSURLVolumeIsEncryptedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsEncryptedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsEncryptedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsInternalKey') -external NSURLResourceKey _NSURLVolumeIsInternalKey; - -DartNSURLResourceKey get NSURLVolumeIsInternalKey => objc.NSString.fromPointer( - _NSURLVolumeIsInternalKey, - retain: true, - release: true, -); - -set NSURLVolumeIsInternalKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsInternalKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsInternalKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsJournalingKey') -external NSURLResourceKey _NSURLVolumeIsJournalingKey; - -DartNSURLResourceKey get NSURLVolumeIsJournalingKey => - objc.NSString.fromPointer( - _NSURLVolumeIsJournalingKey, - retain: true, - release: true, - ); - -set NSURLVolumeIsJournalingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsJournalingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsJournalingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsLocalKey') -external NSURLResourceKey _NSURLVolumeIsLocalKey; - -DartNSURLResourceKey get NSURLVolumeIsLocalKey => objc.NSString.fromPointer( - _NSURLVolumeIsLocalKey, - retain: true, - release: true, -); - -set NSURLVolumeIsLocalKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsLocalKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsLocalKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsReadOnlyKey') -external NSURLResourceKey _NSURLVolumeIsReadOnlyKey; - -DartNSURLResourceKey get NSURLVolumeIsReadOnlyKey => objc.NSString.fromPointer( - _NSURLVolumeIsReadOnlyKey, - retain: true, - release: true, -); - -set NSURLVolumeIsReadOnlyKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsReadOnlyKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsReadOnlyKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsRemovableKey') -external NSURLResourceKey _NSURLVolumeIsRemovableKey; - -DartNSURLResourceKey get NSURLVolumeIsRemovableKey => objc.NSString.fromPointer( - _NSURLVolumeIsRemovableKey, - retain: true, - release: true, -); - -set NSURLVolumeIsRemovableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsRemovableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsRemovableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsRootFileSystemKey') -external NSURLResourceKey _NSURLVolumeIsRootFileSystemKey; - -DartNSURLResourceKey get NSURLVolumeIsRootFileSystemKey => - objc.NSString.fromPointer( - _NSURLVolumeIsRootFileSystemKey, - retain: true, - release: true, - ); - -set NSURLVolumeIsRootFileSystemKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsRootFileSystemKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsRootFileSystemKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeLocalizedFormatDescriptionKey', -) -external NSURLResourceKey _NSURLVolumeLocalizedFormatDescriptionKey; - -DartNSURLResourceKey get NSURLVolumeLocalizedFormatDescriptionKey => - objc.NSString.fromPointer( - _NSURLVolumeLocalizedFormatDescriptionKey, - retain: true, - release: true, - ); - -set NSURLVolumeLocalizedFormatDescriptionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeLocalizedFormatDescriptionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeLocalizedFormatDescriptionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeLocalizedNameKey') -external NSURLResourceKey _NSURLVolumeLocalizedNameKey; - -DartNSURLResourceKey get NSURLVolumeLocalizedNameKey => - objc.NSString.fromPointer( - _NSURLVolumeLocalizedNameKey, - retain: true, - release: true, - ); - -set NSURLVolumeLocalizedNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeLocalizedNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeLocalizedNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeMaximumFileSizeKey') -external NSURLResourceKey _NSURLVolumeMaximumFileSizeKey; - -DartNSURLResourceKey get NSURLVolumeMaximumFileSizeKey => - objc.NSString.fromPointer( - _NSURLVolumeMaximumFileSizeKey, - retain: true, - release: true, - ); - -set NSURLVolumeMaximumFileSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeMaximumFileSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeMaximumFileSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeMountFromLocationKey') -external NSURLResourceKey _NSURLVolumeMountFromLocationKey; - -DartNSURLResourceKey get NSURLVolumeMountFromLocationKey => - objc.NSString.fromPointer( - _NSURLVolumeMountFromLocationKey, - retain: true, - release: true, - ); - -set NSURLVolumeMountFromLocationKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeMountFromLocationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeMountFromLocationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeNameKey') -external NSURLResourceKey _NSURLVolumeNameKey; - -DartNSURLResourceKey get NSURLVolumeNameKey => - objc.NSString.fromPointer(_NSURLVolumeNameKey, retain: true, release: true); - -set NSURLVolumeNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeResourceCountKey') -external NSURLResourceKey _NSURLVolumeResourceCountKey; - -DartNSURLResourceKey get NSURLVolumeResourceCountKey => - objc.NSString.fromPointer( - _NSURLVolumeResourceCountKey, - retain: true, - release: true, - ); - -set NSURLVolumeResourceCountKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeResourceCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeResourceCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSubtypeKey') -external NSURLResourceKey _NSURLVolumeSubtypeKey; - -DartNSURLResourceKey get NSURLVolumeSubtypeKey => objc.NSString.fromPointer( - _NSURLVolumeSubtypeKey, - retain: true, - release: true, -); - -set NSURLVolumeSubtypeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSubtypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSubtypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsAccessPermissionsKey') -external NSURLResourceKey _NSURLVolumeSupportsAccessPermissionsKey; - -DartNSURLResourceKey get NSURLVolumeSupportsAccessPermissionsKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsAccessPermissionsKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsAccessPermissionsKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsAccessPermissionsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsAccessPermissionsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeSupportsAdvisoryFileLockingKey', -) -external NSURLResourceKey _NSURLVolumeSupportsAdvisoryFileLockingKey; - -DartNSURLResourceKey get NSURLVolumeSupportsAdvisoryFileLockingKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsAdvisoryFileLockingKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsAdvisoryFileLockingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsAdvisoryFileLockingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsAdvisoryFileLockingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeSupportsCasePreservedNamesKey', -) -external NSURLResourceKey _NSURLVolumeSupportsCasePreservedNamesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsCasePreservedNamesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsCasePreservedNamesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsCasePreservedNamesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsCasePreservedNamesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsCasePreservedNamesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeSupportsCaseSensitiveNamesKey', -) -external NSURLResourceKey _NSURLVolumeSupportsCaseSensitiveNamesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsCaseSensitiveNamesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsCaseSensitiveNamesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsCaseSensitiveNamesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsCaseSensitiveNamesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsCaseSensitiveNamesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsCompressionKey') -external NSURLResourceKey _NSURLVolumeSupportsCompressionKey; - -DartNSURLResourceKey get NSURLVolumeSupportsCompressionKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsCompressionKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsCompressionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsCompressionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsCompressionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsExclusiveRenamingKey') -external NSURLResourceKey _NSURLVolumeSupportsExclusiveRenamingKey; - -DartNSURLResourceKey get NSURLVolumeSupportsExclusiveRenamingKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsExclusiveRenamingKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsExclusiveRenamingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsExclusiveRenamingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsExclusiveRenamingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsExtendedSecurityKey') -external NSURLResourceKey _NSURLVolumeSupportsExtendedSecurityKey; - -DartNSURLResourceKey get NSURLVolumeSupportsExtendedSecurityKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsExtendedSecurityKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsExtendedSecurityKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsExtendedSecurityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsExtendedSecurityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsFileCloningKey') -external NSURLResourceKey _NSURLVolumeSupportsFileCloningKey; - -DartNSURLResourceKey get NSURLVolumeSupportsFileCloningKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsFileCloningKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsFileCloningKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsFileCloningKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsFileCloningKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsFileProtectionKey') -external NSURLResourceKey _NSURLVolumeSupportsFileProtectionKey; - -DartNSURLResourceKey get NSURLVolumeSupportsFileProtectionKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsFileProtectionKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsFileProtectionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsFileProtectionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsFileProtectionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsHardLinksKey') -external NSURLResourceKey _NSURLVolumeSupportsHardLinksKey; - -DartNSURLResourceKey get NSURLVolumeSupportsHardLinksKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsHardLinksKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsHardLinksKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsHardLinksKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsHardLinksKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsImmutableFilesKey') -external NSURLResourceKey _NSURLVolumeSupportsImmutableFilesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsImmutableFilesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsImmutableFilesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsImmutableFilesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsImmutableFilesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsImmutableFilesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsJournalingKey') -external NSURLResourceKey _NSURLVolumeSupportsJournalingKey; - -DartNSURLResourceKey get NSURLVolumeSupportsJournalingKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsJournalingKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsJournalingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsJournalingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsJournalingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsPersistentIDsKey') -external NSURLResourceKey _NSURLVolumeSupportsPersistentIDsKey; - -DartNSURLResourceKey get NSURLVolumeSupportsPersistentIDsKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsPersistentIDsKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsPersistentIDsKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsPersistentIDsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsPersistentIDsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsRenamingKey') -external NSURLResourceKey _NSURLVolumeSupportsRenamingKey; - -DartNSURLResourceKey get NSURLVolumeSupportsRenamingKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsRenamingKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsRenamingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsRenamingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsRenamingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeSupportsRootDirectoryDatesKey', -) -external NSURLResourceKey _NSURLVolumeSupportsRootDirectoryDatesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsRootDirectoryDatesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsRootDirectoryDatesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsRootDirectoryDatesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsRootDirectoryDatesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsRootDirectoryDatesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsSparseFilesKey') -external NSURLResourceKey _NSURLVolumeSupportsSparseFilesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsSparseFilesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsSparseFilesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsSparseFilesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsSparseFilesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsSparseFilesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsSwapRenamingKey') -external NSURLResourceKey _NSURLVolumeSupportsSwapRenamingKey; - -DartNSURLResourceKey get NSURLVolumeSupportsSwapRenamingKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsSwapRenamingKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsSwapRenamingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsSwapRenamingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsSwapRenamingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsSymbolicLinksKey') -external NSURLResourceKey _NSURLVolumeSupportsSymbolicLinksKey; - -DartNSURLResourceKey get NSURLVolumeSupportsSymbolicLinksKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsSymbolicLinksKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsSymbolicLinksKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsSymbolicLinksKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsSymbolicLinksKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsVolumeSizesKey') -external NSURLResourceKey _NSURLVolumeSupportsVolumeSizesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsVolumeSizesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsVolumeSizesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsVolumeSizesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsVolumeSizesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsVolumeSizesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsZeroRunsKey') -external NSURLResourceKey _NSURLVolumeSupportsZeroRunsKey; - -DartNSURLResourceKey get NSURLVolumeSupportsZeroRunsKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsZeroRunsKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsZeroRunsKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsZeroRunsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsZeroRunsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeTotalCapacityKey') -external NSURLResourceKey _NSURLVolumeTotalCapacityKey; - -DartNSURLResourceKey get NSURLVolumeTotalCapacityKey => - objc.NSString.fromPointer( - _NSURLVolumeTotalCapacityKey, - retain: true, - release: true, - ); - -set NSURLVolumeTotalCapacityKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeTotalCapacityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeTotalCapacityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeTypeNameKey') -external NSURLResourceKey _NSURLVolumeTypeNameKey; - -DartNSURLResourceKey get NSURLVolumeTypeNameKey => objc.NSString.fromPointer( - _NSURLVolumeTypeNameKey, - retain: true, - release: true, -); - -set NSURLVolumeTypeNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeTypeNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeTypeNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeURLForRemountingKey') -external NSURLResourceKey _NSURLVolumeURLForRemountingKey; - -DartNSURLResourceKey get NSURLVolumeURLForRemountingKey => - objc.NSString.fromPointer( - _NSURLVolumeURLForRemountingKey, - retain: true, - release: true, - ); - -set NSURLVolumeURLForRemountingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeURLForRemountingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeURLForRemountingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeURLKey') -external NSURLResourceKey _NSURLVolumeURLKey; - -DartNSURLResourceKey get NSURLVolumeURLKey => - objc.NSString.fromPointer(_NSURLVolumeURLKey, retain: true, release: true); - -set NSURLVolumeURLKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeURLKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeURLKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeUUIDStringKey') -external NSURLResourceKey _NSURLVolumeUUIDStringKey; - -DartNSURLResourceKey get NSURLVolumeUUIDStringKey => objc.NSString.fromPointer( - _NSURLVolumeUUIDStringKey, - retain: true, - release: true, -); - -set NSURLVolumeUUIDStringKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeUUIDStringKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeUUIDStringKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSUbiquitousKeyValueStoreChangeReasonKey', -) -external ffi.Pointer -_NSUbiquitousKeyValueStoreChangeReasonKey; - -objc.NSString get NSUbiquitousKeyValueStoreChangeReasonKey => - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreChangeReasonKey, - retain: true, - release: true, - ); - -set NSUbiquitousKeyValueStoreChangeReasonKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreChangeReasonKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousKeyValueStoreChangeReasonKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSUbiquitousKeyValueStoreChangedKeysKey', -) -external ffi.Pointer -_NSUbiquitousKeyValueStoreChangedKeysKey; - -objc.NSString get NSUbiquitousKeyValueStoreChangedKeysKey => - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreChangedKeysKey, - retain: true, - release: true, - ); - -set NSUbiquitousKeyValueStoreChangedKeysKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreChangedKeysKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousKeyValueStoreChangedKeysKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUbiquitousKeyValueStoreDidChangeExternallyNotification', -) -external NSNotificationName -_NSUbiquitousKeyValueStoreDidChangeExternallyNotification; - -DartNSNotificationName -get NSUbiquitousKeyValueStoreDidChangeExternallyNotification => - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreDidChangeExternallyNotification, - retain: true, - release: true, - ); - -set NSUbiquitousKeyValueStoreDidChangeExternallyNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreDidChangeExternallyNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousKeyValueStoreDidChangeExternallyNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUbiquitousUserDefaultsCompletedInitialSyncNotification', -) -external NSNotificationName -_NSUbiquitousUserDefaultsCompletedInitialSyncNotification; - -DartNSNotificationName -get NSUbiquitousUserDefaultsCompletedInitialSyncNotification => - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsCompletedInitialSyncNotification, - retain: true, - release: true, - ); - -set NSUbiquitousUserDefaultsCompletedInitialSyncNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsCompletedInitialSyncNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousUserDefaultsCompletedInitialSyncNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUbiquitousUserDefaultsDidChangeAccountsNotification', -) -external NSNotificationName -_NSUbiquitousUserDefaultsDidChangeAccountsNotification; - -DartNSNotificationName -get NSUbiquitousUserDefaultsDidChangeAccountsNotification => - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsDidChangeAccountsNotification, - retain: true, - release: true, - ); - -set NSUbiquitousUserDefaultsDidChangeAccountsNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsDidChangeAccountsNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousUserDefaultsDidChangeAccountsNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUbiquitousUserDefaultsNoCloudAccountNotification', -) -external NSNotificationName _NSUbiquitousUserDefaultsNoCloudAccountNotification; - -DartNSNotificationName get NSUbiquitousUserDefaultsNoCloudAccountNotification => - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsNoCloudAccountNotification, - retain: true, - release: true, - ); - -set NSUbiquitousUserDefaultsNoCloudAccountNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsNoCloudAccountNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousUserDefaultsNoCloudAccountNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUbiquityIdentityDidChangeNotification', -) -external NSNotificationName _NSUbiquityIdentityDidChangeNotification; - -DartNSNotificationName get NSUbiquityIdentityDidChangeNotification => - objc.NSString.fromPointer( - _NSUbiquityIdentityDidChangeNotification, - retain: true, - release: true, - ); - -set NSUbiquityIdentityDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUbiquityIdentityDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquityIdentityDidChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUnarchiveFromDataTransformerName', -) -external NSValueTransformerName _NSUnarchiveFromDataTransformerName; - -DartNSValueTransformerName get NSUnarchiveFromDataTransformerName => - objc.NSString.fromPointer( - _NSUnarchiveFromDataTransformerName, - retain: true, - release: true, - ); - -set NSUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSUnarchiveFromDataTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUndefinedKeyException') -external NSExceptionName _NSUndefinedKeyException; - -DartNSExceptionName get NSUndefinedKeyException => objc.NSString.fromPointer( - _NSUndefinedKeyException, - retain: true, - release: true, -); - -set NSUndefinedKeyException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSUndefinedKeyException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndefinedKeyException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUnderlyingErrorKey') -external NSErrorUserInfoKey _NSUnderlyingErrorKey; - -DartNSErrorUserInfoKey get NSUnderlyingErrorKey => objc.NSString.fromPointer( - _NSUnderlyingErrorKey, - retain: true, - release: true, -); - -set NSUnderlyingErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSUnderlyingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUnderlyingErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUndoManagerCheckpointNotification') -external NSNotificationName _NSUndoManagerCheckpointNotification; - -DartNSNotificationName get NSUndoManagerCheckpointNotification => - objc.NSString.fromPointer( - _NSUndoManagerCheckpointNotification, - retain: true, - release: true, - ); - -set NSUndoManagerCheckpointNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerCheckpointNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerCheckpointNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerDidCloseUndoGroupNotification', -) -external NSNotificationName _NSUndoManagerDidCloseUndoGroupNotification; - -DartNSNotificationName get NSUndoManagerDidCloseUndoGroupNotification => - objc.NSString.fromPointer( - _NSUndoManagerDidCloseUndoGroupNotification, - retain: true, - release: true, - ); - -set NSUndoManagerDidCloseUndoGroupNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerDidCloseUndoGroupNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerDidCloseUndoGroupNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerDidOpenUndoGroupNotification', -) -external NSNotificationName _NSUndoManagerDidOpenUndoGroupNotification; - -DartNSNotificationName get NSUndoManagerDidOpenUndoGroupNotification => - objc.NSString.fromPointer( - _NSUndoManagerDidOpenUndoGroupNotification, - retain: true, - release: true, - ); - -set NSUndoManagerDidOpenUndoGroupNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerDidOpenUndoGroupNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerDidOpenUndoGroupNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerDidRedoChangeNotification', -) -external NSNotificationName _NSUndoManagerDidRedoChangeNotification; - -DartNSNotificationName get NSUndoManagerDidRedoChangeNotification => - objc.NSString.fromPointer( - _NSUndoManagerDidRedoChangeNotification, - retain: true, - release: true, - ); - -set NSUndoManagerDidRedoChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerDidRedoChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerDidRedoChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerDidUndoChangeNotification', -) -external NSNotificationName _NSUndoManagerDidUndoChangeNotification; - -DartNSNotificationName get NSUndoManagerDidUndoChangeNotification => - objc.NSString.fromPointer( - _NSUndoManagerDidUndoChangeNotification, - retain: true, - release: true, - ); - -set NSUndoManagerDidUndoChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerDidUndoChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerDidUndoChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSUndoManagerGroupIsDiscardableKey', -) -external ffi.Pointer _NSUndoManagerGroupIsDiscardableKey; - -objc.NSString get NSUndoManagerGroupIsDiscardableKey => - objc.NSString.fromPointer( - _NSUndoManagerGroupIsDiscardableKey, - retain: true, - release: true, - ); - -set NSUndoManagerGroupIsDiscardableKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSUndoManagerGroupIsDiscardableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerGroupIsDiscardableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerWillCloseUndoGroupNotification', -) -external NSNotificationName _NSUndoManagerWillCloseUndoGroupNotification; - -DartNSNotificationName get NSUndoManagerWillCloseUndoGroupNotification => - objc.NSString.fromPointer( - _NSUndoManagerWillCloseUndoGroupNotification, - retain: true, - release: true, - ); - -set NSUndoManagerWillCloseUndoGroupNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerWillCloseUndoGroupNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerWillCloseUndoGroupNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerWillRedoChangeNotification', -) -external NSNotificationName _NSUndoManagerWillRedoChangeNotification; - -DartNSNotificationName get NSUndoManagerWillRedoChangeNotification => - objc.NSString.fromPointer( - _NSUndoManagerWillRedoChangeNotification, - retain: true, - release: true, - ); - -set NSUndoManagerWillRedoChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerWillRedoChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerWillRedoChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerWillUndoChangeNotification', -) -external NSNotificationName _NSUndoManagerWillUndoChangeNotification; - -DartNSNotificationName get NSUndoManagerWillUndoChangeNotification => - objc.NSString.fromPointer( - _NSUndoManagerWillUndoChangeNotification, - retain: true, - release: true, - ); - -set NSUndoManagerWillUndoChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerWillUndoChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerWillUndoChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUnionOfArraysKeyValueOperator') -external NSKeyValueOperator _NSUnionOfArraysKeyValueOperator; - -DartNSKeyValueOperator get NSUnionOfArraysKeyValueOperator => - objc.NSString.fromPointer( - _NSUnionOfArraysKeyValueOperator, - retain: true, - release: true, - ); - -set NSUnionOfArraysKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSUnionOfArraysKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUnionOfArraysKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUnionOfObjectsKeyValueOperator') -external NSKeyValueOperator _NSUnionOfObjectsKeyValueOperator; - -DartNSKeyValueOperator get NSUnionOfObjectsKeyValueOperator => - objc.NSString.fromPointer( - _NSUnionOfObjectsKeyValueOperator, - retain: true, - release: true, - ); - -set NSUnionOfObjectsKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSUnionOfObjectsKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUnionOfObjectsKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUnionOfSetsKeyValueOperator') -external NSKeyValueOperator _NSUnionOfSetsKeyValueOperator; - -DartNSKeyValueOperator get NSUnionOfSetsKeyValueOperator => - objc.NSString.fromPointer( - _NSUnionOfSetsKeyValueOperator, - retain: true, - release: true, - ); - -set NSUnionOfSetsKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSUnionOfSetsKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUnionOfSetsKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external NSRange NSUnionRange(NSRange range1, NSRange range2); - -@ffi.Native() -external NSRect NSUnionRect(NSRect aRect, NSRect bRect); - -@ffi.Native>( - symbol: 'NSUserActivityTypeBrowsingWeb', -) -external ffi.Pointer _NSUserActivityTypeBrowsingWeb; - -objc.NSString get NSUserActivityTypeBrowsingWeb => objc.NSString.fromPointer( - _NSUserActivityTypeBrowsingWeb, - retain: true, - release: true, -); - -set NSUserActivityTypeBrowsingWeb(objc.NSString value) { - objc.NSString.fromPointer( - _NSUserActivityTypeBrowsingWeb, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUserActivityTypeBrowsingWeb = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUserDefaultsDidChangeNotification') -external NSNotificationName _NSUserDefaultsDidChangeNotification; - -DartNSNotificationName get NSUserDefaultsDidChangeNotification => - objc.NSString.fromPointer( - _NSUserDefaultsDidChangeNotification, - retain: true, - release: true, - ); - -set NSUserDefaultsDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUserDefaultsDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUserDefaultsDidChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUserDefaultsSizeLimitExceededNotification', -) -external NSNotificationName _NSUserDefaultsSizeLimitExceededNotification; - -DartNSNotificationName get NSUserDefaultsSizeLimitExceededNotification => - objc.NSString.fromPointer( - _NSUserDefaultsSizeLimitExceededNotification, - retain: true, - release: true, - ); - -set NSUserDefaultsSizeLimitExceededNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUserDefaultsSizeLimitExceededNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUserDefaultsSizeLimitExceededNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native Function()>(symbol: 'NSUserName') -external ffi.Pointer _NSUserName(); - -objc.NSString NSUserName() { - return objc.NSString.fromPointer(_NSUserName(), retain: true, release: true); -} - -@ffi.Native>( - symbol: 'NSUserNotificationDefaultSoundName', -) -external ffi.Pointer _NSUserNotificationDefaultSoundName; - -objc.NSString get NSUserNotificationDefaultSoundName => - objc.NSString.fromPointer( - _NSUserNotificationDefaultSoundName, - retain: true, - release: true, - ); - -set NSUserNotificationDefaultSoundName(objc.NSString value) { - objc.NSString.fromPointer( - _NSUserNotificationDefaultSoundName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUserNotificationDefaultSoundName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSWeekDayNameArray') -external ffi.Pointer _NSWeekDayNameArray; - -objc.NSString get NSWeekDayNameArray => - objc.NSString.fromPointer(_NSWeekDayNameArray, retain: true, release: true); - -set NSWeekDayNameArray(objc.NSString value) { - objc.NSString.fromPointer( - _NSWeekDayNameArray, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSWeekDayNameArray = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSWillBecomeMultiThreadedNotification') -external NSNotificationName _NSWillBecomeMultiThreadedNotification; - -DartNSNotificationName get NSWillBecomeMultiThreadedNotification => - objc.NSString.fromPointer( - _NSWillBecomeMultiThreadedNotification, - retain: true, - release: true, - ); - -set NSWillBecomeMultiThreadedNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSWillBecomeMultiThreadedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSWillBecomeMultiThreadedNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSXMLParserErrorDomain') -external NSErrorDomain _NSXMLParserErrorDomain; - -DartNSErrorDomain get NSXMLParserErrorDomain => objc.NSString.fromPointer( - _NSXMLParserErrorDomain, - retain: true, - release: true, -); - -set NSXMLParserErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSXMLParserErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSXMLParserErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSYearMonthWeekDesignations', -) -external ffi.Pointer _NSYearMonthWeekDesignations; - -objc.NSString get NSYearMonthWeekDesignations => objc.NSString.fromPointer( - _NSYearMonthWeekDesignations, - retain: true, - release: true, -); - -set NSYearMonthWeekDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSYearMonthWeekDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSYearMonthWeekDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final NSPoint NSZeroPoint; - -@ffi.Native() -external final NSRect NSZeroRect; - -@ffi.Native() -external final NSSize NSZeroSize; - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, NSUInteger, NSUInteger) ->() -external ffi.Pointer NSZoneCalloc( - ffi.Pointer zone, - int numElems, - int byteSize, -); - -@ffi.Native, ffi.Pointer)>() -external void NSZoneFree(ffi.Pointer zone, ffi.Pointer ptr); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer NSZoneFromPointer(ffi.Pointer ptr); - -@ffi.Native Function(ffi.Pointer, NSUInteger)>() -external ffi.Pointer NSZoneMalloc(ffi.Pointer zone, int size); - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'NSZoneName', -) -external ffi.Pointer _NSZoneName(ffi.Pointer zone); - -objc.NSString NSZoneName(ffi.Pointer zone) { - return objc.NSString.fromPointer( - _NSZoneName(zone), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->() -external ffi.Pointer NSZoneRealloc( - ffi.Pointer zone, - ffi.Pointer ptr, - int size, -); - -@Deprecated('Not supported') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NXReadNSObjectFromCoder') -external ffi.Pointer _NXReadNSObjectFromCoder( - ffi.Pointer decoder, -); - -objc.NSObject? NXReadNSObjectFromCoder(objc.NSCoder decoder) { - final _$$ref = decoder.ref; - return _NXReadNSObjectFromCoder(_$$ref.pointer).address == 0 - ? null - : objc.NSObject.fromPointer( - _NXReadNSObjectFromCoder(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime NanosecondsToAbsolute(Nanoseconds nanoseconds); - -@Deprecated('Deprecated') -@ffi.Native() -external int NanosecondsToDuration(Nanoseconds theNanoseconds); - -@ffi.Native< - OSStatus Function( - TextEncoding, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int NearestMacTextEncodings( - int generalEncoding, - ffi.Pointer bestMacEncoding, - ffi.Pointer alternateMacEncoding, -); - -@ffi.Native() -external AECoerceDescUPP NewAECoerceDescUPP(AECoerceDescProcPtr userRoutine); - -@ffi.Native() -external AECoercePtrUPP NewAECoercePtrUPP(AECoercePtrProcPtr userRoutine); - -@ffi.Native() -external AEDisposeExternalUPP NewAEDisposeExternalUPP( - AEDisposeExternalProcPtr userRoutine, -); - -@ffi.Native() -external AEEventHandlerUPP NewAEEventHandlerUPP( - AEEventHandlerProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Collection NewCollection(); - -@Deprecated('Deprecated') -@ffi.Native() -external CollectionExceptionUPP NewCollectionExceptionUPP( - CollectionExceptionProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external CollectionFlattenUPP NewCollectionFlattenUPP( - CollectionFlattenProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external ComponentFunctionUPP NewComponentFunctionUPP( - ProcPtr userRoutine, - int procInfo, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentMPWorkFunctionUPP Function(ComponentMPWorkFunctionProcPtr) ->() -external ComponentMPWorkFunctionUPP NewComponentMPWorkFunctionUPP( - ComponentMPWorkFunctionProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external ComponentRoutineUPP NewComponentRoutineUPP( - ComponentRoutineProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native< - DebugAssertOutputHandlerUPP Function(DebugAssertOutputHandlerProcPtr) ->() -external DebugAssertOutputHandlerUPP NewDebugAssertOutputHandlerUPP( - DebugAssertOutputHandlerProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(OSType, ConstStr255Param, DebugComponentCallbackUPP) ->() -external int NewDebugComponent( - int componentSignature, - ConstStr255Param componentName, - DebugComponentCallbackUPP componentCallback, -); - -@Deprecated('Deprecated') -@ffi.Native() -external DebugComponentCallbackUPP NewDebugComponentCallbackUPP( - DebugComponentCallbackProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int NewDebugOption( - int componentSignature, - int optionSelectorNum, - ConstStr255Param optionName, -); - -@Deprecated('Deprecated') -@ffi.Native() -external DebuggerDisposeThreadUPP NewDebuggerDisposeThreadUPP( - DebuggerDisposeThreadProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external DebuggerNewThreadUPP NewDebuggerNewThreadUPP( - DebuggerNewThreadProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native< - DebuggerThreadSchedulerUPP Function(DebuggerThreadSchedulerProcPtr) ->() -external DebuggerThreadSchedulerUPP NewDebuggerThreadSchedulerUPP( - DebuggerThreadSchedulerProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external DeferredTaskUPP NewDeferredTaskUPP(DeferredTaskProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle NewEmptyHandle(); - -@Deprecated('No longer supported') -@ffi.Native() -external ExceptionHandlerUPP NewExceptionHandlerUPP( - ExceptionHandlerProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external FNSubscriptionUPP NewFNSubscriptionUPP( - FNSubscriptionProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external FSVolumeEjectUPP NewFSVolumeEjectUPP(FSVolumeEjectProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external FSVolumeMountUPP NewFSVolumeMountUPP(FSVolumeMountProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external FSVolumeUnmountUPP NewFSVolumeUnmountUPP( - FSVolumeUnmountProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native< - FolderManagerNotificationUPP Function(FolderManagerNotificationProcPtr) ->() -external FolderManagerNotificationUPP NewFolderManagerNotificationUPP( - FolderManagerNotificationProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int NewGestaltValue(int selector, int newValue); - -@Deprecated('Deprecated') -@ffi.Native< - GetMissingComponentResourceUPP Function(GetMissingComponentResourceProcPtr) ->() -external GetMissingComponentResourceUPP NewGetMissingComponentResourceUPP( - GetMissingComponentResourceProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle NewHandle(int byteCount); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle NewHandleClear(int byteCount); - -@Deprecated('Deprecated') -@ffi.Native() -external IOCompletionUPP NewIOCompletionUPP(IOCompletionProcPtr userRoutine); - -@ffi.Native() -external IconActionUPP NewIconActionUPP(IconActionProcPtr userRoutine); - -@ffi.Native() -external IconGetterUPP NewIconGetterUPP(IconGetterProcPtr userRoutine); - -@ffi.Native() -external IndexToUCStringUPP NewIndexToUCStringUPP( - IndexToUCStringProcPtr userRoutine, -); - -@Deprecated('No longer supported') -@ffi.Native() -external KCCallbackUPP NewKCCallbackUPP(KCCallbackProcPtr userRoutine); - -@ffi.Native() -external OSLAccessorUPP NewOSLAccessorUPP(OSLAccessorProcPtr userRoutine); - -@ffi.Native() -external OSLAdjustMarksUPP NewOSLAdjustMarksUPP( - OSLAdjustMarksProcPtr userRoutine, -); - -@ffi.Native() -external OSLCompareUPP NewOSLCompareUPP(OSLCompareProcPtr userRoutine); - -@ffi.Native() -external OSLCountUPP NewOSLCountUPP(OSLCountProcPtr userRoutine); - -@ffi.Native() -external OSLDisposeTokenUPP NewOSLDisposeTokenUPP( - OSLDisposeTokenProcPtr userRoutine, -); - -@ffi.Native() -external OSLGetErrDescUPP NewOSLGetErrDescUPP(OSLGetErrDescProcPtr userRoutine); - -@ffi.Native() -external OSLGetMarkTokenUPP NewOSLGetMarkTokenUPP( - OSLGetMarkTokenProcPtr userRoutine, -); - -@ffi.Native() -external OSLMarkUPP NewOSLMarkUPP(OSLMarkProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr NewPtr(int byteCount); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr NewPtrClear(int byteCount); - -@Deprecated('Deprecated') -@ffi.Native() -external ResErrUPP NewResErrUPP(ResErrProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external SelectorFunctionUPP NewSelectorFunctionUPP( - SelectorFunctionProcPtr userRoutine, -); - -@Deprecated('No longer supported') -@ffi.Native() -external SleepQUPP NewSleepQUPP(SleepQProcPtr userRoutine); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer) ->() -external int NewSpeechChannel( - ffi.Pointer voice, - ffi.Pointer chan, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechDoneUPP NewSpeechDoneUPP(SpeechDoneProcPtr userRoutine); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechErrorUPP NewSpeechErrorUPP(SpeechErrorProcPtr userRoutine); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechPhonemeUPP NewSpeechPhonemeUPP(SpeechPhonemeProcPtr userRoutine); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechSyncUPP NewSpeechSyncUPP(SpeechSyncProcPtr userRoutine); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechTextDoneUPP NewSpeechTextDoneUPP( - SpeechTextDoneProcPtr userRoutine, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechWordUPP NewSpeechWordUPP(SpeechWordProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ThreadStyle, - ThreadEntryTPP, - ffi.Pointer, - Size, - ThreadOptions, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int NewThread( - int threadStyle, - ThreadEntryTPP threadEntry, - ffi.Pointer threadParam, - int stackSize, - int options, - ffi.Pointer> threadResult, - ffi.Pointer threadMade, -); - -@Deprecated('Deprecated') -@ffi.Native() -external ThreadEntryUPP NewThreadEntryUPP(ThreadEntryProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external ThreadSchedulerUPP NewThreadSchedulerUPP( - ThreadSchedulerProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external ThreadSwitchUPP NewThreadSwitchUPP(ThreadSwitchProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external ThreadTerminationUPP NewThreadTerminationUPP( - ThreadTerminationProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external TimerUPP NewTimerUPP(TimerProcPtr userRoutine); - -@ffi.Native() -external UnicodeToTextFallbackUPP NewUnicodeToTextFallbackUPP( - UnicodeToTextFallbackProcPtr userRoutine, -); - -@Deprecated( - 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicAdd32(int __theAmount, ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_add() from instead') -@ffi.Native)>() -external int OSAtomicAdd32Barrier( - int __theAmount, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', -) -@ffi.Native< - ffi.Int64 Function(ffi.Int64, ffi.Pointer) ->() -external int OSAtomicAdd64( - int __theAmount, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_add() from instead') -@ffi.Native< - ffi.Int64 Function(ffi.Int64, ffi.Pointer) ->() -external int OSAtomicAdd64Barrier( - int __theAmount, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_and_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicAnd32(int __theMask, ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_and() from instead') -@ffi.Native)>() -external int OSAtomicAnd32Barrier( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_and_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicAnd32Orig( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_and() from instead') -@ffi.Native)>() -external int OSAtomicAnd32OrigBarrier( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external bool OSAtomicCompareAndSwap32( - int __oldValue, - int __newValue, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_compare_exchange_strong() from instead') -@ffi.Native)>() -external bool OSAtomicCompareAndSwap32Barrier( - int __oldValue, - int __newValue, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', -) -@ffi.Native< - ffi.Bool Function( - ffi.Int64, - ffi.Int64, - ffi.Pointer, - ) ->() -external bool OSAtomicCompareAndSwap64( - int __oldValue, - int __newValue, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_compare_exchange_strong() from instead') -@ffi.Native< - ffi.Bool Function( - ffi.Int64, - ffi.Int64, - ffi.Pointer, - ) ->() -external bool OSAtomicCompareAndSwap64Barrier( - int __oldValue, - int __newValue, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', -) -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external bool OSAtomicCompareAndSwapPtr( - ffi.Pointer __oldValue, - ffi.Pointer __newValue, - ffi.Pointer> __theValue, -); - -@Deprecated('Use atomic_compare_exchange_strong() from instead') -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external bool OSAtomicCompareAndSwapPtrBarrier( - ffi.Pointer __oldValue, - ffi.Pointer __newValue, - ffi.Pointer> __theValue, -); - -@Deprecated( - 'Use atomic_fetch_sub_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicDecrement32(ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_sub() from instead') -@ffi.Native)>() -external int OSAtomicDecrement32Barrier(ffi.Pointer __theValue); - -@Deprecated( - 'Use atomic_fetch_sub_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicDecrement64( - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_sub() from instead') -@ffi.Native)>() -external int OSAtomicDecrement64Barrier( - ffi.Pointer __theValue, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Size) ->() -external ffi.Pointer OSAtomicDequeue( - ffi.Pointer __list, - int __offset, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external void OSAtomicEnqueue( - ffi.Pointer __list, - ffi.Pointer __new, - int __offset, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Size) ->() -external ffi.Pointer OSAtomicFifoDequeue( - ffi.Pointer __list, - int __offset, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external void OSAtomicFifoEnqueue( - ffi.Pointer __list, - ffi.Pointer __new, - int __offset, -); - -@Deprecated( - 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicIncrement32(ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_add() from instead') -@ffi.Native)>() -external int OSAtomicIncrement32Barrier(ffi.Pointer __theValue); - -@Deprecated( - 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicIncrement64( - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_add() from instead') -@ffi.Native)>() -external int OSAtomicIncrement64Barrier( - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_or_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicOr32(int __theMask, ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_or() from instead') -@ffi.Native)>() -external int OSAtomicOr32Barrier( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_or_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicOr32Orig( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_or() from instead') -@ffi.Native)>() -external int OSAtomicOr32OrigBarrier( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_xor_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicXor32(int __theMask, ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_xor() from instead') -@ffi.Native)>() -external int OSAtomicXor32Barrier( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_xor_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicXor32Orig( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_xor() from instead') -@ffi.Native)>() -external int OSAtomicXor32OrigBarrier( - int __theMask, - ffi.Pointer __theValue, -); - -@ffi.Native< - kern_return_t Function( - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int OSGetNotificationFromMessage( - ffi.Pointer msg, - int index$1, - ffi.Pointer type, - ffi.Pointer reference, - ffi.Pointer> content, - ffi.Pointer size, -); - -@Deprecated('Use atomic_thread_fence() from instead') -@ffi.Native() -external void OSMemoryBarrier(); - -@Deprecated('Use os_unfair_lock_lock() from instead') -@ffi.Native)>() -external void OSSpinLockLock(ffi.Pointer __lock); - -@Deprecated('Use os_unfair_lock_trylock() from instead') -@ffi.Native)>() -external bool OSSpinLockTry(ffi.Pointer __lock); - -@Deprecated('Use os_unfair_lock_unlock() from instead') -@ffi.Native)>() -external void OSSpinLockUnlock(ffi.Pointer __lock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int OpenAComponent( - Component aComponent, - ffi.Pointer ci, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int OpenAComponentResFile( - Component aComponent, - ffi.Pointer resRef, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int OpenADefaultComponent( - int componentType, - int componentSubType, - ffi.Pointer ci, -); - -@Deprecated('Deprecated') -@ffi.Native() -external ComponentInstance OpenComponent(Component aComponent); - -@Deprecated('Deprecated') -@ffi.Native() -external int OpenComponentResFile(Component aComponent); - -@Deprecated('Deprecated') -@ffi.Native() -external ComponentInstance OpenDefaultComponent( - int componentType, - int componentSubType, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int OverrideIconRef(IconRef oldIconRef, IconRef newIconRef); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBAllocateForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBAllocateForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCatalogSearchAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCatalogSearchSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCloseForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCloseForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCloseIteratorAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCloseIteratorSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCompareFSRefsAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCompareFSRefsSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCreateDirectoryUnicodeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCreateDirectoryUnicodeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external void PBCreateFileAndOpenForkUnicodeAsync( - FSRefForkIOParamPtr paramBlock, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBCreateFileAndOpenForkUnicodeSync(FSRefForkIOParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCreateFileUnicodeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCreateFileUnicodeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCreateForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCreateForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBDeleteForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBDeleteForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBDeleteObjectAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBDeleteObjectSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBExchangeObjectsAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBExchangeObjectsSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFSCopyFileAsync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFSCopyFileSync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFSResolveNodeIDAsync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFSResolveNodeIDSync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBFlushForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBFlushForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFlushVolumeAsync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFlushVolumeSync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetCatalogInfoAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetCatalogInfoBulkAsync( - ffi.Pointer paramBlock, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetCatalogInfoBulkSync( - ffi.Pointer paramBlock, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetCatalogInfoSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetForkCBInfoAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetForkCBInfoSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetForkPositionAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetForkPositionSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetForkSizeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetForkSizeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetVolumeInfoAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetVolumeInfoSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBIterateForksAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBIterateForksSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBMakeFSRefUnicodeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBMakeFSRefUnicodeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBMoveObjectAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBMoveObjectSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBOpenForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBOpenForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBOpenIteratorAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBOpenIteratorSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBReadForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBReadForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBRenameUnicodeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBRenameUnicodeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBSetCatalogInfoAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBSetCatalogInfoSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBSetForkPositionAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBSetForkPositionSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBSetForkSizeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBSetForkSizeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBSetVolumeInfoAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBSetVolumeInfoSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBUnlinkObjectAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBUnlinkObjectSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBWriteForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBWriteForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBXLockRangeAsync(FSRangeLockParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBXLockRangeSync(FSRangeLockParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBXUnlockRangeAsync(FSRangeLockParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBXUnlockRangeSync(FSRangeLockParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PLpos(ConstStr255Param str1, ConstStr255Param searchStr); - -@Deprecated('Deprecated') -@ffi.Native() -external StringPtr PLstrcat(StringPtr str, ConstStr255Param append); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr PLstrchr(ConstStr255Param str1, int ch1); - -@Deprecated('Deprecated') -@ffi.Native() -external int PLstrcmp(ConstStr255Param str1, ConstStr255Param str2); - -@Deprecated('Deprecated') -@ffi.Native() -external StringPtr PLstrcpy(StringPtr dest, ConstStr255Param source); - -@Deprecated('Deprecated') -@ffi.Native() -external int PLstrlen(ConstStr255Param str); - -@Deprecated('Deprecated') -@ffi.Native() -external StringPtr PLstrncat(StringPtr str1, ConstStr255Param append, int num); - -@Deprecated('Deprecated') -@ffi.Native() -external int PLstrncmp(ConstStr255Param str1, ConstStr255Param str2, int num); - -@Deprecated('Deprecated') -@ffi.Native() -external StringPtr PLstrncpy(StringPtr dest, ConstStr255Param source, int num); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr PLstrpbrk(ConstStr255Param str1, ConstStr255Param charSet); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr PLstrrchr(ConstStr255Param str1, int ch1); - -@Deprecated('Deprecated') -@ffi.Native() -external int PLstrspn(ConstStr255Param str1, ConstStr255Param charSet); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr PLstrstr(ConstStr255Param str1, ConstStr255Param searchStr); - -@ffi.Native() -external CGImageRef PMCGImageCreateWithEPSDataProvider( - CGDataProviderRef epsDataProvider, - CGImageRef epsPreview, -); - -@ffi.Native)>() -external int PMCopyAvailablePPDs(int domain, ffi.Pointer ppds); - -@ffi.Native)>() -external int PMCopyLocalizedPPD( - CFURLRef ppd, - ffi.Pointer localizedPPD, -); - -@ffi.Native)>() -external int PMCopyPPDData(CFURLRef ppd, ffi.Pointer data); - -@ffi.Native() -external int PMCopyPageFormat(PMPageFormat formatSrc, PMPageFormat formatDest); - -@ffi.Native() -external int PMCopyPrintSettings( - PMPrintSettings settingSrc, - PMPrintSettings settingDest, -); - -@ffi.Native)>() -external int PMCreateGenericPrinter(ffi.Pointer printer); - -@ffi.Native)>() -external int PMCreatePageFormat(ffi.Pointer pageFormat); - -@ffi.Native, PMPaper)>() -external int PMCreatePageFormatWithPMPaper( - ffi.Pointer pageFormat, - PMPaper paper, -); - -@ffi.Native)>() -external int PMCreatePrintSettings(ffi.Pointer printSettings); - -@ffi.Native)>() -external int PMCreateSession(ffi.Pointer printSession); - -@ffi.Native)>() -external int PMGetAdjustedPageRect( - PMPageFormat pageFormat, - ffi.Pointer pageRect, -); - -@ffi.Native)>() -external int PMGetAdjustedPaperRect( - PMPageFormat pageFormat, - ffi.Pointer paperRect, -); - -@ffi.Native)>() -external int PMGetCollate( - PMPrintSettings printSettings, - ffi.Pointer collate, -); - -@ffi.Native)>() -external int PMGetCopies( - PMPrintSettings printSettings, - ffi.Pointer copies, -); - -@ffi.Native)>() -external int PMGetDuplex( - PMPrintSettings printSettings, - ffi.Pointer duplexSetting, -); - -@ffi.Native)>() -external int PMGetFirstPage( - PMPrintSettings printSettings, - ffi.Pointer first, -); - -@ffi.Native)>() -external int PMGetLastPage( - PMPrintSettings printSettings, - ffi.Pointer last, -); - -@ffi.Native)>() -external int PMGetOrientation( - PMPageFormat pageFormat, - ffi.Pointer orientation, -); - -@ffi.Native< - OSStatus Function( - PMPageFormat, - OSType, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int PMGetPageFormatExtendedData( - PMPageFormat pageFormat, - int dataID, - ffi.Pointer size, - ffi.Pointer extendedData, -); - -@ffi.Native)>() -external int PMGetPageFormatPaper( - PMPageFormat format, - ffi.Pointer paper, -); - -@ffi.Native< - OSStatus Function(PMPrintSettings, ffi.Pointer, ffi.Pointer) ->() -external int PMGetPageRange( - PMPrintSettings printSettings, - ffi.Pointer minPage, - ffi.Pointer maxPage, -); - -@ffi.Native)>() -external int PMGetScale(PMPageFormat pageFormat, ffi.Pointer scale); - -@ffi.Native)>() -external int PMGetUnadjustedPageRect( - PMPageFormat pageFormat, - ffi.Pointer pageRect, -); - -@ffi.Native)>() -external int PMGetUnadjustedPaperRect( - PMPageFormat pageFormat, - ffi.Pointer paperRect, -); - -@ffi.Native< - OSStatus Function(PMPageFormat, ffi.Pointer, ffi.UnsignedInt) ->(symbol: 'PMPageFormatCreateDataRepresentation') -external int _PMPageFormatCreateDataRepresentation( - PMPageFormat pageFormat, - ffi.Pointer data, - int format, -); - -DartSInt32 PMPageFormatCreateDataRepresentation( - PMPageFormat pageFormat, - ffi.Pointer data, - PMDataFormat format, -) { - return _PMPageFormatCreateDataRepresentation(pageFormat, data, format.value); -} - -@ffi.Native)>() -external int PMPageFormatCreateWithDataRepresentation( - CFDataRef data, - ffi.Pointer pageFormat, -); - -@ffi.Native)>() -external int PMPageFormatGetPrinterID( - PMPageFormat pageFormat, - ffi.Pointer printerID, -); - -@ffi.Native< - OSStatus Function( - PMPrinter, - CFStringRef, - CFStringRef, - ffi.Double, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int PMPaperCreateCustom( - PMPrinter printer, - CFStringRef id, - CFStringRef name, - double width, - double height, - ffi.Pointer margins, - ffi.Pointer paperP, -); - -@ffi.Native)>() -external int PMPaperCreateLocalizedName( - PMPaper paper, - PMPrinter printer, - ffi.Pointer paperName, -); - -@ffi.Native)>() -external int PMPaperGetHeight( - PMPaper paper, - ffi.Pointer paperHeight, -); - -@ffi.Native)>() -external int PMPaperGetID(PMPaper paper, ffi.Pointer paperID); - -@ffi.Native)>() -external int PMPaperGetMargins( - PMPaper paper, - ffi.Pointer paperMargins, -); - -@ffi.Native)>() -external int PMPaperGetPPDPaperName( - PMPaper paper, - ffi.Pointer paperName, -); - -@ffi.Native)>() -external int PMPaperGetPrinterID( - PMPaper paper, - ffi.Pointer printerID, -); - -@ffi.Native)>() -external int PMPaperGetWidth(PMPaper paper, ffi.Pointer paperWidth); - -@ffi.Native() -external int PMPaperIsCustom(PMPaper paper); - -@ffi.Native)>() -external int PMPresetCopyName(PMPreset preset, ffi.Pointer name); - -@ffi.Native< - OSStatus Function(PMPreset, PMPrintSession, ffi.Pointer) ->() -external int PMPresetCreatePrintSettings( - PMPreset preset, - PMPrintSession session, - ffi.Pointer printSettings, -); - -@ffi.Native)>() -external int PMPresetGetAttributes( - PMPreset preset, - ffi.Pointer attributes, -); - -@ffi.Native)>() -external int PMPrintSettingsCopyAsDictionary( - PMPrintSettings printSettings, - ffi.Pointer settingsDictionary, -); - -@ffi.Native)>() -external int PMPrintSettingsCopyKeys( - PMPrintSettings printSettings, - ffi.Pointer settingsKeys, -); - -@ffi.Native< - OSStatus Function(PMPrintSettings, ffi.Pointer, ffi.UnsignedInt) ->(symbol: 'PMPrintSettingsCreateDataRepresentation') -external int _PMPrintSettingsCreateDataRepresentation( - PMPrintSettings printSettings, - ffi.Pointer data, - int format, -); - -DartSInt32 PMPrintSettingsCreateDataRepresentation( - PMPrintSettings printSettings, - ffi.Pointer data, - PMDataFormat format, -) { - return _PMPrintSettingsCreateDataRepresentation( - printSettings, - data, - format.value, - ); -} - -@ffi.Native)>() -external int PMPrintSettingsCreateWithDataRepresentation( - CFDataRef data, - ffi.Pointer printSettings, -); - -@ffi.Native)>() -external int PMPrintSettingsGetJobName( - PMPrintSettings printSettings, - ffi.Pointer name, -); - -@ffi.Native< - OSStatus Function(PMPrintSettings, CFStringRef, ffi.Pointer) ->() -external int PMPrintSettingsGetValue( - PMPrintSettings printSettings, - CFStringRef key, - ffi.Pointer value, -); - -@ffi.Native() -external int PMPrintSettingsSetJobName( - PMPrintSettings printSettings, - CFStringRef name, -); - -@ffi.Native< - OSStatus Function(PMPrintSettings, CFStringRef, CFTypeRef, Boolean) ->() -external int PMPrintSettingsSetValue( - PMPrintSettings printSettings, - CFStringRef key, - CFTypeRef value, - int locked, -); - -@ffi.Native< - OSStatus Function(PMPrintSettings, ffi.Pointer>) ->() -external int PMPrintSettingsToOptions( - PMPrintSettings settings, - ffi.Pointer> options, -); - -@ffi.Native< - OSStatus Function( - PMPrintSettings, - PMPrinter, - PMPageFormat, - ffi.Pointer>, - ) ->() -external int PMPrintSettingsToOptionsWithPrinterAndPageFormat( - PMPrintSettings settings, - PMPrinter printer, - PMPageFormat pageFormat, - ffi.Pointer> options, -); - -@ffi.Native)>() -external int PMPrinterCopyDescriptionURL( - PMPrinter printer, - CFStringRef descriptionType, - ffi.Pointer fileURL, -); - -@ffi.Native)>() -external int PMPrinterCopyDeviceURI( - PMPrinter printer, - ffi.Pointer deviceURI, -); - -@ffi.Native)>() -external int PMPrinterCopyHostName( - PMPrinter printer, - ffi.Pointer hostNameP, -); - -@ffi.Native)>() -external int PMPrinterCopyPresets( - PMPrinter printer, - ffi.Pointer presetList, -); - -@ffi.Native)>() -external int PMPrinterCopyState( - PMPrinter printer, - ffi.Pointer stateDict, -); - -@ffi.Native() -external PMPrinter PMPrinterCreateFromPrinterID(CFStringRef printerID); - -@ffi.Native< - OSStatus Function(PMPrinter, ffi.Pointer, ffi.Pointer) ->() -external int PMPrinterGetCommInfo( - PMPrinter printer, - ffi.Pointer supportsControlCharRangeP, - ffi.Pointer supportsEightBitP, -); - -@ffi.Native)>() -external int PMPrinterGetDriverCreator( - PMPrinter printer, - ffi.Pointer creator, -); - -@ffi.Native)>() -external int PMPrinterGetDriverReleaseInfo( - PMPrinter printer, - ffi.Pointer release, -); - -@ffi.Native() -external CFStringRef PMPrinterGetID(PMPrinter printer); - -@ffi.Native)>() -external int PMPrinterGetIndexedPrinterResolution( - PMPrinter printer, - int index$1, - ffi.Pointer resolutionP, -); - -@ffi.Native)>() -external int PMPrinterGetLanguageInfo( - PMPrinter printer, - ffi.Pointer info, -); - -@ffi.Native() -external CFStringRef PMPrinterGetLocation(PMPrinter printer); - -@ffi.Native)>() -external int PMPrinterGetMakeAndModelName( - PMPrinter printer, - ffi.Pointer makeAndModel, -); - -@ffi.Native< - OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) ->() -external int PMPrinterGetMimeTypes( - PMPrinter printer, - PMPrintSettings settings, - ffi.Pointer mimeTypes, -); - -@ffi.Native() -external CFStringRef PMPrinterGetName(PMPrinter printer); - -@ffi.Native< - OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) ->() -external int PMPrinterGetOutputResolution( - PMPrinter printer, - PMPrintSettings printSettings, - ffi.Pointer resolutionP, -); - -@ffi.Native)>() -external int PMPrinterGetPaperList( - PMPrinter printer, - ffi.Pointer paperList, -); - -@ffi.Native)>() -external int PMPrinterGetPrinterResolutionCount( - PMPrinter printer, - ffi.Pointer countP, -); - -@ffi.Native)>() -external int PMPrinterGetState( - PMPrinter printer, - ffi.Pointer state, -); - -@ffi.Native() -external int PMPrinterIsDefault(PMPrinter printer); - -@ffi.Native() -external int PMPrinterIsFavorite(PMPrinter printer); - -@ffi.Native() -external int PMPrinterIsPostScriptCapable(PMPrinter printer); - -@ffi.Native)>() -external int PMPrinterIsPostScriptPrinter( - PMPrinter printer, - ffi.Pointer isPSPrinter, -); - -@ffi.Native)>() -external int PMPrinterIsRemote( - PMPrinter printer, - ffi.Pointer isRemoteP, -); - -@ffi.Native< - OSStatus Function( - PMPrinter, - PMPrintSettings, - PMPageFormat, - CFStringRef, - CFURLRef, - ) ->() -external int PMPrinterPrintWithFile( - PMPrinter printer, - PMPrintSettings settings, - PMPageFormat format, - CFStringRef mimeType, - CFURLRef fileURL, -); - -@ffi.Native< - OSStatus Function( - PMPrinter, - PMPrintSettings, - PMPageFormat, - CFStringRef, - CGDataProviderRef, - ) ->() -external int PMPrinterPrintWithProvider( - PMPrinter printer, - PMPrintSettings settings, - PMPageFormat format, - CFStringRef mimeType, - CGDataProviderRef provider, -); - -@ffi.Native< - OSStatus Function(PMPrinter, CFStringRef, CFStringRef, CFDictionaryRef) ->() -external int PMPrinterSendCommand( - PMPrinter printer, - CFStringRef commandString, - CFStringRef jobTitle, - CFDictionaryRef options, -); - -@ffi.Native() -external int PMPrinterSetDefault(PMPrinter printer); - -@ffi.Native< - OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) ->() -external int PMPrinterSetOutputResolution( - PMPrinter printer, - PMPrintSettings printSettings, - ffi.Pointer resolutionP, -); - -@ffi.Native< - OSStatus Function( - PMPrinter, - PMPrintSettings, - PMPageFormat, - CFStringRef, - CFURLRef, - CFURLRef, - ) ->() -external int PMPrinterWritePostScriptToURL( - PMPrinter printer, - PMPrintSettings settings, - PMPageFormat format, - CFStringRef mimeType, - CFURLRef sourceFileURL, - CFURLRef destinationFileURL, -); - -@ffi.Native() -external int PMRelease(PMObject object); - -@ffi.Native() -external int PMRetain(PMObject object); - -@ffi.Native)>() -external int PMServerCreatePrinterList( - PMServer server, - ffi.Pointer printerList, -); - -@ffi.Native() -external int PMServerLaunchPrinterBrowser( - PMServer server, - CFDictionaryRef options, -); - -@ffi.Native() -external int PMSessionBeginCGDocumentNoDialog( - PMPrintSession printSession, - PMPrintSettings printSettings, - PMPageFormat pageFormat, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPageFormat, ffi.Pointer) ->() -external int PMSessionBeginPageNoDialog( - PMPrintSession printSession, - PMPageFormat pageFormat, - ffi.Pointer pageFrame, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) ->() -external int PMSessionCopyDestinationFormat( - PMPrintSession printSession, - PMPrintSettings printSettings, - ffi.Pointer destFormatP, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) ->() -external int PMSessionCopyDestinationLocation( - PMPrintSession printSession, - PMPrintSettings printSettings, - ffi.Pointer destLocationP, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMDestinationType, ffi.Pointer) ->() -external int PMSessionCopyOutputFormatList( - PMPrintSession printSession, - int destType, - ffi.Pointer documentFormatP, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPrinter, ffi.Pointer) ->() -external int PMSessionCreatePageFormatList( - PMPrintSession printSession, - PMPrinter printer, - ffi.Pointer pageFormatList, -); - -@ffi.Native< - OSStatus Function( - PMPrintSession, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int PMSessionCreatePrinterList( - PMPrintSession printSession, - ffi.Pointer printerList, - ffi.Pointer currentIndex, - ffi.Pointer currentPrinter, -); - -@ffi.Native() -external int PMSessionDefaultPageFormat( - PMPrintSession printSession, - PMPageFormat pageFormat, -); - -@ffi.Native() -external int PMSessionDefaultPrintSettings( - PMPrintSession printSession, - PMPrintSettings printSettings, -); - -@ffi.Native() -external int PMSessionEndDocumentNoDialog(PMPrintSession printSession); - -@ffi.Native() -external int PMSessionEndPageNoDialog(PMPrintSession printSession); - -@ffi.Native() -external int PMSessionError(PMPrintSession printSession); - -@ffi.Native)>() -external int PMSessionGetCGGraphicsContext( - PMPrintSession printSession, - ffi.Pointer context, -); - -@ffi.Native)>() -external int PMSessionGetCurrentPrinter( - PMPrintSession printSession, - ffi.Pointer currentPrinter, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, CFStringRef, ffi.Pointer) ->() -external int PMSessionGetDataFromSession( - PMPrintSession printSession, - CFStringRef key, - ffi.Pointer data, -); - -@ffi.Native< - OSStatus Function( - PMPrintSession, - PMPrintSettings, - ffi.Pointer, - ) ->() -external int PMSessionGetDestinationType( - PMPrintSession printSession, - PMPrintSettings printSettings, - ffi.Pointer destTypeP, -); - -@ffi.Native() -external int PMSessionSetCurrentPMPrinter( - PMPrintSession session, - PMPrinter printer, -); - -@ffi.Native() -external int PMSessionSetDataInSession( - PMPrintSession printSession, - CFStringRef key, - CFTypeRef data, -); - -@ffi.Native< - OSStatus Function( - PMPrintSession, - PMPrintSettings, - PMDestinationType, - CFStringRef, - CFURLRef, - ) ->() -external int PMSessionSetDestination( - PMPrintSession printSession, - PMPrintSettings printSettings, - int destType, - CFStringRef destFormat, - CFURLRef destLocation, -); - -@ffi.Native() -external int PMSessionSetError(PMPrintSession printSession, int printError); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPageFormat, ffi.Pointer) ->() -external int PMSessionValidatePageFormat( - PMPrintSession printSession, - PMPageFormat pageFormat, - ffi.Pointer changed, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) ->() -external int PMSessionValidatePrintSettings( - PMPrintSession printSession, - PMPrintSettings printSettings, - ffi.Pointer changed, -); - -@ffi.Native() -external int PMSetCollate(PMPrintSettings printSettings, int collate); - -@ffi.Native() -external int PMSetCopies(PMPrintSettings printSettings, int copies, int lock); - -@ffi.Native() -external int PMSetDuplex(PMPrintSettings printSettings, int duplexSetting); - -@ffi.Native() -external int PMSetFirstPage(PMPrintSettings printSettings, int first, int lock); - -@ffi.Native() -external int PMSetLastPage(PMPrintSettings printSettings, int last, int lock); - -@ffi.Native() -external int PMSetOrientation( - PMPageFormat pageFormat, - int orientation, - int lock, -); - -@ffi.Native< - OSStatus Function(PMPageFormat, OSType, UInt32, ffi.Pointer) ->() -external int PMSetPageFormatExtendedData( - PMPageFormat pageFormat, - int dataID, - int size, - ffi.Pointer extendedData, -); - -@ffi.Native() -external int PMSetPageRange( - PMPrintSettings printSettings, - int minPage, - int maxPage, -); - -@ffi.Native() -external int PMSetScale(PMPageFormat pageFormat, double scale); - -@ffi.Native)>() -external int PMWorkflowCopyItems(ffi.Pointer workflowItems); - -@ffi.Native< - OSStatus Function(CFURLRef, CFStringRef, ffi.Pointer, CFURLRef) ->() -external int PMWorkflowSubmitPDFWithOptions( - CFURLRef workflowItem, - CFStringRef title, - ffi.Pointer options, - CFURLRef pdfFile, -); - -@ffi.Native() -external int PMWorkflowSubmitPDFWithSettings( - CFURLRef workflowItem, - PMPrintSettings settings, - CFURLRef pdfFile, -); - -@ffi.Native() -external int PasteboardClear(PasteboardRef inPasteboard); - -@ffi.Native< - OSStatus Function( - PasteboardRef, - PasteboardItemID, - CFStringRef, - ffi.Pointer, - ) ->() -external int PasteboardCopyItemFlavorData( - PasteboardRef inPasteboard, - PasteboardItemID inItem, - CFStringRef inFlavorType, - ffi.Pointer outData, -); - -@ffi.Native< - OSStatus Function(PasteboardRef, PasteboardItemID, ffi.Pointer) ->() -external int PasteboardCopyItemFlavors( - PasteboardRef inPasteboard, - PasteboardItemID inItem, - ffi.Pointer outFlavorTypes, -); - -@ffi.Native)>() -external int PasteboardCopyName( - PasteboardRef inPasteboard, - ffi.Pointer outName, -); - -@ffi.Native)>() -external int PasteboardCopyPasteLocation( - PasteboardRef inPasteboard, - ffi.Pointer outPasteLocation, -); - -@ffi.Native)>() -external int PasteboardCreate( - CFStringRef inName, - ffi.Pointer outPasteboard, -); - -@ffi.Native)>() -external int PasteboardGetItemCount( - PasteboardRef inPasteboard, - ffi.Pointer outItemCount, -); - -@ffi.Native< - OSStatus Function( - PasteboardRef, - PasteboardItemID, - CFStringRef, - ffi.Pointer, - ) ->() -external int PasteboardGetItemFlavorFlags( - PasteboardRef inPasteboard, - PasteboardItemID inItem, - CFStringRef inFlavorType, - ffi.Pointer outFlags, -); - -@ffi.Native< - OSStatus Function(PasteboardRef, CFIndex, ffi.Pointer) ->() -external int PasteboardGetItemIdentifier( - PasteboardRef inPasteboard, - int inIndex, - ffi.Pointer outItem, -); - -@ffi.Native() -external int PasteboardGetTypeID(); - -@ffi.Native< - OSStatus Function( - PasteboardRef, - PasteboardItemID, - CFStringRef, - CFDataRef, - OptionBits, - ) ->() -external int PasteboardPutItemFlavor( - PasteboardRef inPasteboard, - PasteboardItemID inItem, - CFStringRef inFlavorType, - CFDataRef inData, - int inFlags, -); - -@ffi.Native() -external int PasteboardResolvePromises(PasteboardRef inPasteboard); - -@ffi.Native() -external int PasteboardSetPasteLocation( - PasteboardRef inPasteboard, - CFURLRef inPasteLocation, -); - -@ffi.Native< - OSStatus Function( - PasteboardRef, - PasteboardPromiseKeeperProcPtr, - ffi.Pointer, - ) ->() -external int PasteboardSetPromiseKeeper( - PasteboardRef inPasteboard, - PasteboardPromiseKeeperProcPtr inPromiseKeeper, - ffi.Pointer inContext, -); - -@ffi.Native() -external int PasteboardSynchronize(PasteboardRef inPasteboard); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int PauseSpeechAt(SpeechChannel chan, int whereToPause); - -@ffi.Native< - OSStatus Function( - CGContextRef, - ffi.Pointer, - IconAlignmentType, - IconTransformType, - ffi.Pointer, - PlotIconRefFlags, - IconRef, - ) ->() -external int PlotIconRefInContext( - CGContextRef inContext, - ffi.Pointer inRect, - int inAlign, - int inTransform, - ffi.Pointer inLabelColor, - int inFlags, - IconRef inIconRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void PrimeTime(QElemPtr tmTaskPtr, int count); - -@Deprecated('Deprecated') -@ffi.Native() -external int PrimeTimeTask(QElemPtr tmTaskPtr, int count); - -@Deprecated('Deprecated') -@ffi.Native< - CFDictionaryRef Function(ffi.Pointer, UInt32) ->() -external CFDictionaryRef ProcessInformationCopyDictionary( - ffi.Pointer PSN, - int infoToReturn, -); - -@Deprecated('Deprecated') -@ffi.Native, Handle, ffi.Long)>() -external int PtrAndHand(ffi.Pointer ptr1, Handle hand2, int size); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Long) ->() -external int PtrToHand( - ffi.Pointer srcPtr, - ffi.Pointer dstHndl, - int size, -); - -@Deprecated('Deprecated') -@ffi.Native, Handle, ffi.Long)>() -external int PtrToXHand(ffi.Pointer srcPtr, Handle dstHndl, int size); - -@Deprecated('Deprecated') -@ffi.Native() -external void PurgeCollection( - Collection c, - int whichAttributes, - int matchingAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void PurgeCollectionTag(Collection c, int tag); - -@ffi.Native< - OSStatus Function( - OptionBits, - ConstUnicodeMappingPtr, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int QueryUnicodeMappings( - int iFilter, - ConstUnicodeMappingPtr iFindMapping, - int iMaxCount, - ffi.Pointer oActualCount, - ffi.Pointer oReturnedMappings, -); - -@Deprecated('Use -[NSWorkspace iconForFile:] instead.') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int ReadIconFromFSRef( - ffi.Pointer ref, - ffi.Pointer iconFamily, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void ReadLocation(ffi.Pointer loc); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(Handle, ffi.Long, ffi.Pointer, ffi.Long) ->() -external void ReadPartialResource( - Handle theResource, - int offset, - ffi.Pointer buffer, - int count, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void ReallocateHandle(Handle h, int byteCount); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle RecoverHandle(Ptr p); - -@Deprecated('Deprecated') -@ffi.Native< - Component Function( - ffi.Pointer, - ComponentRoutineUPP, - SInt16, - Handle, - Handle, - Handle, - ) ->() -external Component RegisterComponent( - ffi.Pointer cd, - ComponentRoutineUPP componentEntryPoint, - int global, - Handle componentName, - Handle componentInfo, - Handle componentIcon, -); - -@Deprecated('Deprecated') -@ffi.Native, SInt16)>() -external int RegisterComponentFileRef(ffi.Pointer ref, int global); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - SInt16, - ffi.Pointer, - UInt32, - ) ->() -external int RegisterComponentFileRefEntries( - ffi.Pointer ref, - int global, - ffi.Pointer toRegister, - int registerCount, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Component RegisterComponentResource( - ComponentResourceHandle cr, - int global, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int RegisterComponentResourceFile(int resRefNum, int global); - -@Deprecated( - 'You do not need to register .icns files to use them with -[NSImage initWithContentsOfURL:].', -) -@ffi.Native< - OSStatus Function(OSType, OSType, ffi.Pointer, ffi.Pointer) ->() -external int RegisterIconRefFromFSRef( - int creator, - int iconType, - ffi.Pointer iconFile, - ffi.Pointer theIconRef, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native< - OSErr Function(OSType, OSType, IconFamilyHandle, ffi.Pointer) ->() -external int RegisterIconRefFromIconFamily( - int creator, - int iconType, - IconFamilyHandle iconFamily, - ffi.Pointer theIconRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ReleaseCollection(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external int ReleaseFolder(int vRefNum, int folderType); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int ReleaseIconRef(IconRef theIconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external void ReleaseResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external int RemoveCollectionItem(Collection c, int tag, int id); - -@Deprecated('Deprecated') -@ffi.Native() -external int RemoveFolderDescriptor(int foldType); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int RemoveIconRefOverride(IconRef theIconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external int RemoveIndexedCollectionItem(Collection c, int itemIndex); - -@Deprecated('Deprecated') -@ffi.Native() -external void RemoveResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external int RemoveTimeTask(QElemPtr tmTaskPtr); - -@Deprecated('Deprecated') -@ffi.Native() -external int ReplaceGestaltValue(int selector, int replacementValue); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ReplaceIndexedCollectionItem( - Collection c, - int itemIndex, - int itemSize, - ffi.Pointer itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ReplaceIndexedCollectionItemHdl( - Collection aCollection, - int itemIndex, - Handle itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ResError(); - -@ffi.Native() -external int ResetTextToUnicodeInfo(TextToUnicodeInfo ioTextToUnicodeInfo); - -@ffi.Native() -external int ResetUnicodeToTextInfo(UnicodeToTextInfo ioUnicodeToTextInfo); - -@ffi.Native() -external int ResetUnicodeToTextRunInfo( - UnicodeToTextRunInfo ioUnicodeToTextRunInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Component ResolveComponentAlias(Component aComponent); - -@ffi.Native() -external int ResolveDefaultTextEncoding(int encoding); - -@Deprecated('Deprecated') -@ffi.Native() -external int RetainCollection(Collection c); - -@ffi.Native< - OSStatus Function( - TextEncoding, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int RevertTextEncodingToScriptInfo( - int iEncoding, - ffi.Pointer oTextScriptID, - ffi.Pointer oTextLanguageID, - ffi.Pointer oTextFontname, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void RmvTime(QElemPtr tmTaskPtr); - -@ffi.Native() -external int S64Absolute(int value); - -@ffi.Native() -external CFURLRef SKDocumentCopyURL(SKDocumentRef inDocument); - -@ffi.Native() -external SKDocumentRef SKDocumentCreate( - CFStringRef inScheme, - SKDocumentRef inParent, - CFStringRef inName, -); - -@ffi.Native() -external SKDocumentRef SKDocumentCreateWithURL(CFURLRef inURL); - -@ffi.Native() -external CFStringRef SKDocumentGetName(SKDocumentRef inDocument); - -@ffi.Native() -external SKDocumentRef SKDocumentGetParent(SKDocumentRef inDocument); - -@ffi.Native() -external CFStringRef SKDocumentGetSchemeName(SKDocumentRef inDocument); - -@ffi.Native() -external int SKDocumentGetTypeID(); - -@ffi.Native() -external int SKIndexAddDocument( - SKIndexRef inIndex, - SKDocumentRef inDocument, - CFStringRef inMIMETypeHint, - int inCanReplace, -); - -@ffi.Native() -external int SKIndexAddDocumentWithText( - SKIndexRef inIndex, - SKDocumentRef inDocument, - CFStringRef inDocumentText, - int inCanReplace, -); - -@ffi.Native() -external void SKIndexClose(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexCompact(SKIndexRef inIndex); - -@ffi.Native() -external SKDocumentRef SKIndexCopyDocumentForDocumentID( - SKIndexRef inIndex, - int inDocumentID, -); - -@ffi.Native() -external CFArrayRef SKIndexCopyDocumentIDArrayForTermID( - SKIndexRef inIndex, - int inTermID, -); - -@ffi.Native() -external CFDictionaryRef SKIndexCopyDocumentProperties( - SKIndexRef inIndex, - SKDocumentRef inDocument, -); - -@ffi.Native< - ffi.Void Function( - SKIndexRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void SKIndexCopyDocumentRefsForDocumentIDs( - SKIndexRef inIndex, - int inCount, - ffi.Pointer inDocumentIDsArray, - ffi.Pointer outDocumentRefsArray, -); - -@ffi.Native< - ffi.Void Function( - SKIndexRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void SKIndexCopyDocumentURLsForDocumentIDs( - SKIndexRef inIndex, - int inCount, - ffi.Pointer inDocumentIDsArray, - ffi.Pointer outDocumentURLsArray, -); - -@ffi.Native< - ffi.Void Function( - SKIndexRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void SKIndexCopyInfoForDocumentIDs( - SKIndexRef inIndex, - int inCount, - ffi.Pointer inDocumentIDsArray, - ffi.Pointer outNamesArray, - ffi.Pointer outParentIDsArray, -); - -@ffi.Native() -external CFArrayRef SKIndexCopyTermIDArrayForDocumentID( - SKIndexRef inIndex, - int inDocumentID, -); - -@ffi.Native() -external CFStringRef SKIndexCopyTermStringForTermID( - SKIndexRef inIndex, - int inTermID, -); - -@ffi.Native< - SKIndexRef Function( - CFMutableDataRef, - CFStringRef, - ffi.UnsignedInt, - CFDictionaryRef, - ) ->(symbol: 'SKIndexCreateWithMutableData') -external SKIndexRef _SKIndexCreateWithMutableData( - CFMutableDataRef inData, - CFStringRef inIndexName, - int inIndexType, - CFDictionaryRef inAnalysisProperties, -); - -SKIndexRef SKIndexCreateWithMutableData( - CFMutableDataRef inData, - CFStringRef inIndexName, - SKIndexType inIndexType, - CFDictionaryRef inAnalysisProperties, -) { - return _SKIndexCreateWithMutableData( - inData, - inIndexName, - inIndexType.value, - inAnalysisProperties, - ); -} - -@ffi.Native< - SKIndexRef Function(CFURLRef, CFStringRef, ffi.UnsignedInt, CFDictionaryRef) ->(symbol: 'SKIndexCreateWithURL') -external SKIndexRef _SKIndexCreateWithURL( - CFURLRef inURL, - CFStringRef inIndexName, - int inIndexType, - CFDictionaryRef inAnalysisProperties, -); - -SKIndexRef SKIndexCreateWithURL( - CFURLRef inURL, - CFStringRef inIndexName, - SKIndexType inIndexType, - CFDictionaryRef inAnalysisProperties, -) { - return _SKIndexCreateWithURL( - inURL, - inIndexName, - inIndexType.value, - inAnalysisProperties, - ); -} - -@ffi.Native() -external SKDocumentRef SKIndexDocumentIteratorCopyNext( - SKIndexDocumentIteratorRef inIterator, -); - -@ffi.Native() -external SKIndexDocumentIteratorRef SKIndexDocumentIteratorCreate( - SKIndexRef inIndex, - SKDocumentRef inParentDocument, -); - -@ffi.Native() -external int SKIndexDocumentIteratorGetTypeID(); - -@ffi.Native() -external int SKIndexFlush(SKIndexRef inIndex); - -@ffi.Native() -external CFDictionaryRef SKIndexGetAnalysisProperties(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexGetDocumentCount(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexGetDocumentID(SKIndexRef inIndex, SKDocumentRef inDocument); - -@ffi.Native( - symbol: 'SKIndexGetDocumentState', -) -external int _SKIndexGetDocumentState( - SKIndexRef inIndex, - SKDocumentRef inDocument, -); - -SKDocumentIndexState SKIndexGetDocumentState( - SKIndexRef inIndex, - SKDocumentRef inDocument, -) { - return SKDocumentIndexState.fromValue( - _SKIndexGetDocumentState(inIndex, inDocument), - ); -} - -@ffi.Native() -external int SKIndexGetDocumentTermCount(SKIndexRef inIndex, int inDocumentID); - -@ffi.Native() -external int SKIndexGetDocumentTermFrequency( - SKIndexRef inIndex, - int inDocumentID, - int inTermID, -); - -@ffi.Native(symbol: 'SKIndexGetIndexType') -external int _SKIndexGetIndexType(SKIndexRef inIndex); - -SKIndexType SKIndexGetIndexType(SKIndexRef inIndex) { - return SKIndexType.fromValue(_SKIndexGetIndexType(inIndex)); -} - -@ffi.Native() -external int SKIndexGetMaximumBytesBeforeFlush(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexGetMaximumDocumentID(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexGetMaximumTermID(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexGetTermDocumentCount(SKIndexRef inIndex, int inTermID); - -@ffi.Native() -external int SKIndexGetTermIDForTermString( - SKIndexRef inIndex, - CFStringRef inTermString, -); - -@ffi.Native() -external int SKIndexGetTypeID(); - -@ffi.Native() -external int SKIndexMoveDocument( - SKIndexRef inIndex, - SKDocumentRef inDocument, - SKDocumentRef inNewParent, -); - -@ffi.Native() -external SKIndexRef SKIndexOpenWithData( - CFDataRef inData, - CFStringRef inIndexName, -); - -@ffi.Native() -external SKIndexRef SKIndexOpenWithMutableData( - CFMutableDataRef inData, - CFStringRef inIndexName, -); - -@ffi.Native() -external SKIndexRef SKIndexOpenWithURL( - CFURLRef inURL, - CFStringRef inIndexName, - int inWriteAccess, -); - -@ffi.Native() -external int SKIndexRemoveDocument( - SKIndexRef inIndex, - SKDocumentRef inDocument, -); - -@ffi.Native() -external int SKIndexRenameDocument( - SKIndexRef inIndex, - SKDocumentRef inDocument, - CFStringRef inNewName, -); - -@ffi.Native() -external void SKIndexSetDocumentProperties( - SKIndexRef inIndex, - SKDocumentRef inDocument, - CFDictionaryRef inProperties, -); - -@ffi.Native() -external void SKIndexSetMaximumBytesBeforeFlush( - SKIndexRef inIndex, - int inBytesForUpdate, -); - -@ffi.Native() -external void SKLoadDefaultExtractorPlugIns(); - -@ffi.Native() -external void SKSearchCancel(SKSearchRef inSearch); - -@ffi.Native() -external SKSearchRef SKSearchCreate( - SKIndexRef inIndex, - CFStringRef inQuery, - int inSearchOptions, -); - -@ffi.Native< - Boolean Function( - SKSearchRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int SKSearchFindMatches( - SKSearchRef inSearch, - int inMaximumCount, - ffi.Pointer outDocumentIDsArray, - ffi.Pointer outScoresArray, - double maximumTime, - ffi.Pointer outFoundCount, -); - -@ffi.Native() -external int SKSearchGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native() -external CFArrayRef SKSearchGroupCopyIndexes(SKSearchGroupRef inSearchGroup); - -@Deprecated('No longer supported') -@ffi.Native() -external SKSearchGroupRef SKSearchGroupCreate(CFArrayRef inArrayOfInIndexes); - -@Deprecated('No longer supported') -@ffi.Native() -external int SKSearchGroupGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native() -external CFArrayRef SKSearchResultsCopyMatchingTerms( - SKSearchResultsRef inSearchResults, - int inItem, -); - -@Deprecated('No longer supported') -@ffi.Native< - SKSearchResultsRef Function( - SKSearchGroupRef, - CFArrayRef, - CFIndex, - ffi.Pointer, - SKSearchResultsFilterCallBack, - ) ->() -external SKSearchResultsRef SKSearchResultsCreateWithDocuments( - SKSearchGroupRef inSearchGroup, - CFArrayRef inExampleDocuments, - int inMaxFoundDocuments, - ffi.Pointer inContext, - SKSearchResultsFilterCallBack inFilterCallBack, -); - -@Deprecated('No longer supported') -@ffi.Native< - SKSearchResultsRef Function( - SKSearchGroupRef, - CFStringRef, - ffi.UnsignedInt, - CFIndex, - ffi.Pointer, - SKSearchResultsFilterCallBack, - ) ->(symbol: 'SKSearchResultsCreateWithQuery') -external SKSearchResultsRef _SKSearchResultsCreateWithQuery( - SKSearchGroupRef inSearchGroup, - CFStringRef inQuery, - int inSearchType, - int inMaxFoundDocuments, - ffi.Pointer inContext, - SKSearchResultsFilterCallBack inFilterCallBack, -); - -SKSearchResultsRef SKSearchResultsCreateWithQuery( - SKSearchGroupRef inSearchGroup, - CFStringRef inQuery, - SKSearchType inSearchType, - DartCFIndex inMaxFoundDocuments, - ffi.Pointer inContext, - SKSearchResultsFilterCallBack inFilterCallBack, -) { - return _SKSearchResultsCreateWithQuery( - inSearchGroup, - inQuery, - inSearchType.value, - inMaxFoundDocuments, - inContext, - inFilterCallBack, - ); -} - -@Deprecated('No longer supported') -@ffi.Native() -external int SKSearchResultsGetCount(SKSearchResultsRef inSearchResults); - -@Deprecated('No longer supported') -@ffi.Native< - CFIndex Function( - SKSearchResultsRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SKSearchResultsGetInfoInRange( - SKSearchResultsRef inSearchResults, - CFRange inRange, - ffi.Pointer outDocumentsArray, - ffi.Pointer outIndexesArray, - ffi.Pointer outScoresArray, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int SKSearchResultsGetTypeID(); - -@ffi.Native() -external CFStringRef SKSummaryCopyParagraphAtIndex(SKSummaryRef summary, int i); - -@ffi.Native() -external CFStringRef SKSummaryCopyParagraphSummaryString( - SKSummaryRef summary, - int numParagraphs, -); - -@ffi.Native() -external CFStringRef SKSummaryCopySentenceAtIndex(SKSummaryRef summary, int i); - -@ffi.Native() -external CFStringRef SKSummaryCopySentenceSummaryString( - SKSummaryRef summary, - int numSentences, -); - -@ffi.Native() -external SKSummaryRef SKSummaryCreateWithString(CFStringRef inString); - -@ffi.Native() -external int SKSummaryGetParagraphCount(SKSummaryRef summary); - -@ffi.Native< - CFIndex Function( - SKSummaryRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SKSummaryGetParagraphSummaryInfo( - SKSummaryRef summary, - int numParagraphsInSummary, - ffi.Pointer outRankOrderOfParagraphs, - ffi.Pointer outParagraphIndexOfParagraphs, -); - -@ffi.Native() -external int SKSummaryGetSentenceCount(SKSummaryRef summary); - -@ffi.Native< - CFIndex Function( - SKSummaryRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SKSummaryGetSentenceSummaryInfo( - SKSummaryRef summary, - int numSentencesInSummary, - ffi.Pointer outRankOrderOfSentences, - ffi.Pointer outSentenceIndexOfSentences, - ffi.Pointer outParagraphIndexOfSentences, -); - -@ffi.Native() -external int SKSummaryGetTypeID(); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native, ffi.Size)>() -external int SSLAddDistinguishedName( - SSLContextRef context, - ffi.Pointer derDN, - int derDNLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLClose(SSLContextRef context); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLContextGetTypeID(); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyALPNProtocols( - SSLContextRef context, - ffi.Pointer protocols, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyCertificateAuthorities( - SSLContextRef context, - ffi.Pointer certificates, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyDistinguishedNames( - SSLContextRef context, - ffi.Pointer names, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyPeerCertificates( - SSLContextRef context, - ffi.Pointer certs, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyPeerTrust( - SSLContextRef context, - ffi.Pointer trust, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Pointer) ->() -external int SSLCopyRequestedPeerName( - SSLContextRef context, - ffi.Pointer peerName, - ffi.Pointer peerNameLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyRequestedPeerNameLength( - SSLContextRef ctx, - ffi.Pointer peerNameLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyTrustedRoots( - SSLContextRef context, - ffi.Pointer trustedRoots, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - SSLContextRef Function(CFAllocatorRef, ffi.UnsignedInt, ffi.UnsignedInt) ->(symbol: 'SSLCreateContext') -external SSLContextRef _SSLCreateContext( - CFAllocatorRef alloc, - int protocolSide, - int connectionType, -); - -SSLContextRef SSLCreateContext( - CFAllocatorRef alloc, - SSLProtocolSide protocolSide, - SSLConnectionType connectionType, -) { - return _SSLCreateContext(alloc, protocolSide.value, connectionType.value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLDisposeContext(SSLContextRef context); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetAllowsAnyRoot( - SSLContextRef context, - ffi.Pointer anyRoot, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetAllowsExpiredCerts( - SSLContextRef context, - ffi.Pointer allowsExpired, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetAllowsExpiredRoots( - SSLContextRef context, - ffi.Pointer allowsExpired, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetBufferedReadSize( - SSLContextRef context, - ffi.Pointer bufferSize, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetClientCertificateState( - SSLContextRef context, - ffi.Pointer clientState, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetConnection( - SSLContextRef context, - ffi.Pointer connection, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetDatagramWriteSize( - SSLContextRef dtlsContext, - ffi.Pointer bufSize, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int SSLGetDiffieHellmanParams( - SSLContextRef context, - ffi.Pointer> dhParams, - ffi.Pointer dhParamsLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetEnableCertVerify( - SSLContextRef context, - ffi.Pointer enableVerify, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SSLGetEnabledCiphers( - SSLContextRef context, - ffi.Pointer ciphers, - ffi.Pointer numCiphers, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetMaxDatagramRecordSize( - SSLContextRef dtlsContext, - ffi.Pointer maxSize, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetNegotiatedCipher( - SSLContextRef context, - ffi.Pointer cipherSuite, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetNegotiatedProtocolVersion( - SSLContextRef context, - ffi.Pointer protocol, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetNumberEnabledCiphers( - SSLContextRef context, - ffi.Pointer numCiphers, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetNumberSupportedCiphers( - SSLContextRef context, - ffi.Pointer numCiphers, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Pointer) ->() -external int SSLGetPeerDomainName( - SSLContextRef context, - ffi.Pointer peerName, - ffi.Pointer peerNameLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetPeerDomainNameLength( - SSLContextRef context, - ffi.Pointer peerNameLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int SSLGetPeerID( - SSLContextRef context, - ffi.Pointer> peerID, - ffi.Pointer peerIDLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetProtocolVersion( - SSLContextRef context, - ffi.Pointer protocol, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function(SSLContextRef, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'SSLGetProtocolVersionEnabled') -external int _SSLGetProtocolVersionEnabled( - SSLContextRef context, - int protocol, - ffi.Pointer enable, -); - -DartSInt32 SSLGetProtocolVersionEnabled( - SSLContextRef context, - SSLProtocol protocol, - ffi.Pointer enable, -) { - return _SSLGetProtocolVersionEnabled(context, protocol.value, enable); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetProtocolVersionMax( - SSLContextRef context, - ffi.Pointer maxVersion, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetProtocolVersionMin( - SSLContextRef context, - ffi.Pointer minVersion, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetRsaBlinding( - SSLContextRef context, - ffi.Pointer blinding, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function(SSLContextRef, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'SSLGetSessionOption') -external int _SSLGetSessionOption( - SSLContextRef context, - int option, - ffi.Pointer value, -); - -DartSInt32 SSLGetSessionOption( - SSLContextRef context, - SSLSessionOption option, - ffi.Pointer value, -) { - return _SSLGetSessionOption(context, option.value, value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetSessionState( - SSLContextRef context, - ffi.Pointer state, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SSLGetSupportedCiphers( - SSLContextRef context, - ffi.Pointer ciphers, - ffi.Pointer numCiphers, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLHandshake(SSLContextRef context); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLNewContext(int isServer, ffi.Pointer contextPtr); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLReHandshake(SSLContextRef context); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external int SSLRead( - SSLContextRef context, - ffi.Pointer data, - int dataLength, - ffi.Pointer processed, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetALPNProtocols(SSLContextRef context, CFArrayRef protocols); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetAllowsAnyRoot(SSLContextRef context, int anyRoot); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetAllowsExpiredCerts(SSLContextRef context, int allowsExpired); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetAllowsExpiredRoots(SSLContextRef context, int allowsExpired); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetCertificate(SSLContextRef context, CFArrayRef certRefs); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetCertificateAuthorities( - SSLContextRef context, - CFTypeRef certificateOrArray, - int replaceExisting, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetClientSideAuthenticate', -) -external int _SSLSetClientSideAuthenticate(SSLContextRef context, int auth); - -DartSInt32 SSLSetClientSideAuthenticate( - SSLContextRef context, - SSLAuthenticate auth, -) { - return _SSLSetClientSideAuthenticate(context, auth.value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetConnection( - SSLContextRef context, - SSLConnectionRef connection, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native, ffi.Size)>() -external int SSLSetDatagramHelloCookie( - SSLContextRef dtlsContext, - ffi.Pointer cookie, - int cookieLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native, ffi.Size)>() -external int SSLSetDiffieHellmanParams( - SSLContextRef context, - ffi.Pointer dhParams, - int dhParamsLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetEnableCertVerify(SSLContextRef context, int enableVerify); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size) ->() -external int SSLSetEnabledCiphers( - SSLContextRef context, - ffi.Pointer ciphers, - int numCiphers, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetEncryptionCertificate( - SSLContextRef context, - CFArrayRef certRefs, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetError(SSLContextRef context, int status); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetIOFuncs( - SSLContextRef context, - SSLReadFunc readFunc, - SSLWriteFunc writeFunc, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetMaxDatagramRecordSize( - SSLContextRef dtlsContext, - int maxSize, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetOCSPResponse(SSLContextRef context, CFDataRef response); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native, ffi.Size)>() -external int SSLSetPeerDomainName( - SSLContextRef context, - ffi.Pointer peerName, - int peerNameLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native, ffi.Size)>() -external int SSLSetPeerID( - SSLContextRef context, - ffi.Pointer peerID, - int peerIDLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetProtocolVersion', -) -external int _SSLSetProtocolVersion(SSLContextRef context, int version); - -DartSInt32 SSLSetProtocolVersion(SSLContextRef context, SSLProtocol version) { - return _SSLSetProtocolVersion(context, version.value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetProtocolVersionEnabled', -) -external int _SSLSetProtocolVersionEnabled( - SSLContextRef context, - int protocol, - int enable, -); - -DartSInt32 SSLSetProtocolVersionEnabled( - SSLContextRef context, - SSLProtocol protocol, - DartBoolean enable, -) { - return _SSLSetProtocolVersionEnabled(context, protocol.value, enable); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetProtocolVersionMax', -) -external int _SSLSetProtocolVersionMax(SSLContextRef context, int maxVersion); - -DartSInt32 SSLSetProtocolVersionMax( - SSLContextRef context, - SSLProtocol maxVersion, -) { - return _SSLSetProtocolVersionMax(context, maxVersion.value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetProtocolVersionMin', -) -external int _SSLSetProtocolVersionMin(SSLContextRef context, int minVersion); - -DartSInt32 SSLSetProtocolVersionMin( - SSLContextRef context, - SSLProtocol minVersion, -) { - return _SSLSetProtocolVersionMin(context, minVersion.value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetRsaBlinding(SSLContextRef context, int blinding); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetSessionConfig(SSLContextRef context, CFStringRef config); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetSessionOption', -) -external int _SSLSetSessionOption(SSLContextRef context, int option, int value); - -DartSInt32 SSLSetSessionOption( - SSLContextRef context, - SSLSessionOption option, - DartBoolean value, -) { - return _SSLSetSessionOption(context, option.value, value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetSessionTicketsEnabled(SSLContextRef context, int enabled); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetTrustedRoots( - SSLContextRef context, - CFArrayRef trustedRoots, - int replaceExisting, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external int SSLWrite( - SSLContextRef context, - ffi.Pointer data, - int dataLength, - ffi.Pointer processed, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SameProcess( - ffi.Pointer PSN1, - ffi.Pointer PSN2, - ffi.Pointer result, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external CFArrayRef SecACLCopyAuthorizations(SecACLRef acl); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecACLRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecACLCopyContents( - SecACLRef acl, - ffi.Pointer applicationList, - ffi.Pointer description, - ffi.Pointer promptSelector, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecACLRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecACLCopySimpleContents( - SecACLRef acl, - ffi.Pointer applicationList, - ffi.Pointer description, - ffi.Pointer promptSelector, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecAccessRef, - CFArrayRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecACLCreateFromSimpleContents( - SecAccessRef access$1, - CFArrayRef applicationList, - CFStringRef description, - ffi.Pointer promptSelector, - ffi.Pointer newAcl, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecAccessRef, - CFArrayRef, - CFStringRef, - uint16, - ffi.Pointer, - ) ->() -external int SecACLCreateWithSimpleContents( - SecAccessRef access$1, - CFArrayRef applicationList, - CFStringRef description, - int promptSelector, - ffi.Pointer newAcl, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecACLRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecACLGetAuthorizations( - SecACLRef acl, - ffi.Pointer tags, - ffi.Pointer tagCount, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecACLGetTypeID(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecACLRemove(SecACLRef aclRef); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function(SecACLRef, ffi.Pointer, uint32) ->() -external int SecACLSetAuthorizations( - SecACLRef acl, - ffi.Pointer tags, - int tagCount, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecACLSetContents( - SecACLRef acl, - CFArrayRef applicationList, - CFStringRef description, - int promptSelector, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecACLRef, - CFArrayRef, - CFStringRef, - ffi.Pointer, - ) ->() -external int SecACLSetSimpleContents( - SecACLRef acl, - CFArrayRef applicationList, - CFStringRef description, - ffi.Pointer promptSelector, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecACLUpdateAuthorizations( - SecACLRef acl, - CFArrayRef authorizations, -); - -@ffi.Native< - SecAccessControlRef Function( - CFAllocatorRef, - CFTypeRef, - CFOptionFlags, - ffi.Pointer, - ) ->() -external SecAccessControlRef SecAccessControlCreateWithFlags( - CFAllocatorRef allocator, - CFTypeRef protection, - int flags, - ffi.Pointer error, -); - -@ffi.Native() -external int SecAccessControlGetTypeID(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecAccessCopyACLList( - SecAccessRef accessRef, - ffi.Pointer aclList, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external CFArrayRef SecAccessCopyMatchingACLList( - SecAccessRef accessRef, - CFTypeRef authorizationTag, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecAccessRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecAccessCopyOwnerAndACL( - SecAccessRef accessRef, - ffi.Pointer userId, - ffi.Pointer groupId, - ffi.Pointer ownerType, - ffi.Pointer aclList, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecAccessRef, - CSSM_ACL_AUTHORIZATION_TAG, - ffi.Pointer, - ) ->() -external int SecAccessCopySelectedACLList( - SecAccessRef accessRef, - int action, - ffi.Pointer aclList, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(CFStringRef, CFArrayRef, ffi.Pointer) ->() -external int SecAccessCreate( - CFStringRef descriptor, - CFArrayRef trustedlist, - ffi.Pointer accessRef, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecAccessCreateFromOwnerAndACL( - ffi.Pointer owner, - int aclCount, - ffi.Pointer acls, - ffi.Pointer accessRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - SecAccessRef Function( - uid_t, - gid_t, - SecAccessOwnerType, - CFArrayRef, - ffi.Pointer, - ) ->() -external SecAccessRef SecAccessCreateWithOwnerAndACL( - int userId, - int groupId, - int ownerType, - CFArrayRef acls, - ffi.Pointer error, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecAccessRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecAccessGetOwnerAndACL( - SecAccessRef accessRef, - ffi.Pointer owner, - ffi.Pointer aclCount, - ffi.Pointer acls, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecAccessGetTypeID(); - -@ffi.Native< - ffi.Void Function( - CFStringRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->(symbol: 'SecAddSharedWebCredential') -external void _SecAddSharedWebCredential( - CFStringRef fqdn, - CFStringRef account, - CFStringRef password, - ffi.Pointer completionHandler, -); - -void SecAddSharedWebCredential( - CFStringRef fqdn, - CFStringRef account, - CFStringRef password, - objc.ObjCBlock)> completionHandler, -) { - final _$$ref = completionHandler.ref; - return _SecAddSharedWebCredential(fqdn, account, password, _$$ref.pointer); -} - -@ffi.Native() -external int SecCertificateAddToKeychain( - SecCertificateRef certificate, - SecKeychainRef keychain, -); - -@ffi.Native)>() -external int SecCertificateCopyCommonName( - SecCertificateRef certificate, - ffi.Pointer commonName, -); - -@ffi.Native() -external CFDataRef SecCertificateCopyData(SecCertificateRef certificate); - -@ffi.Native)>() -external int SecCertificateCopyEmailAddresses( - SecCertificateRef certificate, - ffi.Pointer emailAddresses, -); - -@ffi.Native() -external SecKeyRef SecCertificateCopyKey(SecCertificateRef certificate); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - SecCertificateRef, - ffi.Pointer, - ) ->() -external CFStringRef SecCertificateCopyLongDescription( - CFAllocatorRef alloc, - SecCertificateRef certificate, - ffi.Pointer error, -); - -@Deprecated( - 'SecCertificateCopyNormalizedIssuerContent is deprecated. Use SecCertificateCopyNormalizedIssuerSequence instead.', -) -@ffi.Native)>() -external CFDataRef SecCertificateCopyNormalizedIssuerContent( - SecCertificateRef certificate, - ffi.Pointer error, -); - -@ffi.Native() -external CFDataRef SecCertificateCopyNormalizedIssuerSequence( - SecCertificateRef certificate, -); - -@Deprecated( - 'SecCertificateCopyNormalizedSubjectContent is deprecated. Use SecCertificateCopyNormalizedSubjectSequence instead.', -) -@ffi.Native)>() -external CFDataRef SecCertificateCopyNormalizedSubjectContent( - SecCertificateRef certificate, - ffi.Pointer error, -); - -@ffi.Native() -external CFDataRef SecCertificateCopyNormalizedSubjectSequence( - SecCertificateRef certificate, -); - -@ffi.Native() -external CFDateRef SecCertificateCopyNotValidAfterDate( - SecCertificateRef certificate, -); - -@ffi.Native() -external CFDateRef SecCertificateCopyNotValidBeforeDate( - SecCertificateRef certificate, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(CFStringRef, uint32, ffi.Pointer) ->() -external int SecCertificateCopyPreference( - CFStringRef name, - int keyUsage, - ffi.Pointer certificate, -); - -@ffi.Native() -external SecCertificateRef SecCertificateCopyPreferred( - CFStringRef name, - CFArrayRef keyUsage, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecCertificateCopyPublicKey( - SecCertificateRef certificate, - ffi.Pointer key, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external CFDataRef SecCertificateCopySerialNumber( - SecCertificateRef certificate, - ffi.Pointer error, -); - -@ffi.Native)>() -external CFDataRef SecCertificateCopySerialNumberData( - SecCertificateRef certificate, - ffi.Pointer error, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - SecCertificateRef, - ffi.Pointer, - ) ->() -external CFStringRef SecCertificateCopyShortDescription( - CFAllocatorRef alloc, - SecCertificateRef certificate, - ffi.Pointer error, -); - -@ffi.Native() -external CFStringRef SecCertificateCopySubjectSummary( - SecCertificateRef certificate, -); - -@ffi.Native< - CFDictionaryRef Function( - SecCertificateRef, - CFArrayRef, - ffi.Pointer, - ) ->() -external CFDictionaryRef SecCertificateCopyValues( - SecCertificateRef certificate, - CFArrayRef keys, - ffi.Pointer error, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - CSSM_CERT_TYPE, - CSSM_CERT_ENCODING, - ffi.Pointer, - ) ->() -external int SecCertificateCreateFromData( - ffi.Pointer data, - int type, - int encoding, - ffi.Pointer certificate, -); - -@ffi.Native() -external SecCertificateRef SecCertificateCreateWithData( - CFAllocatorRef allocator, - CFDataRef data, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecCertificateRef, ffi.Pointer>) ->() -external int SecCertificateGetAlgorithmID( - SecCertificateRef certificate, - ffi.Pointer> algid, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecCertificateGetCLHandle( - SecCertificateRef certificate, - ffi.Pointer clHandle, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecCertificateGetData( - SecCertificateRef certificate, - CSSM_DATA_PTR data, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecCertificateRef, ffi.Pointer>) ->() -external int SecCertificateGetIssuer( - SecCertificateRef certificate, - ffi.Pointer> issuer, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecCertificateRef, ffi.Pointer>) ->() -external int SecCertificateGetSubject( - SecCertificateRef certificate, - ffi.Pointer> subject, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecCertificateGetType( - SecCertificateRef certificate, - ffi.Pointer certificateType, -); - -@ffi.Native() -external int SecCertificateGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecCertificateRef, CFStringRef, uint32, CFDateRef) ->() -external int SecCertificateSetPreference( - SecCertificateRef certificate, - CFStringRef name, - int keyUsage, - CFDateRef date, -); - -@ffi.Native() -external int SecCertificateSetPreferred( - SecCertificateRef certificate, - CFStringRef name, - CFArrayRef keyUsage, -); - -@ffi.Native() -external int SecCodeCheckValidity( - SecCodeRef code, - int flags, - SecRequirementRef requirement, -); - -@ffi.Native< - OSStatus Function( - SecCodeRef, - ffi.Uint32, - SecRequirementRef, - ffi.Pointer, - ) ->() -external int SecCodeCheckValidityWithErrors( - SecCodeRef code, - int flags, - SecRequirementRef requirement, - ffi.Pointer errors, -); - -@ffi.Native< - OSStatus Function( - SecStaticCodeRef, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int SecCodeCopyDesignatedRequirement( - SecStaticCodeRef code, - int flags, - ffi.Pointer requirement, -); - -@ffi.Native< - OSStatus Function( - SecCodeRef, - CFDictionaryRef, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int SecCodeCopyGuestWithAttributes( - SecCodeRef host, - CFDictionaryRef attributes, - int flags, - ffi.Pointer guest, -); - -@ffi.Native< - OSStatus Function(SecCodeRef, ffi.Uint32, ffi.Pointer) ->() -external int SecCodeCopyHost( - SecCodeRef guest, - int flags, - ffi.Pointer host, -); - -@ffi.Native< - OSStatus Function(SecStaticCodeRef, ffi.Uint32, ffi.Pointer) ->() -external int SecCodeCopyPath( - SecStaticCodeRef staticCode, - int flags, - ffi.Pointer path, -); - -@ffi.Native)>() -external int SecCodeCopySelf(int flags, ffi.Pointer self); - -@ffi.Native< - OSStatus Function(SecStaticCodeRef, ffi.Uint32, ffi.Pointer) ->() -external int SecCodeCopySigningInformation( - SecStaticCodeRef code, - int flags, - ffi.Pointer information, -); - -@ffi.Native< - OSStatus Function(SecCodeRef, ffi.Uint32, ffi.Pointer) ->() -external int SecCodeCopyStaticCode( - SecCodeRef code, - int flags, - ffi.Pointer staticCode, -); - -@ffi.Native< - OSStatus Function(xpc_object_t, ffi.Uint32, ffi.Pointer) ->(symbol: 'SecCodeCreateWithXPCMessage') -external int _SecCodeCreateWithXPCMessage( - xpc_object_t message, - int flags, - ffi.Pointer target, -); - -DartSInt32 SecCodeCreateWithXPCMessage( - Dartxpc_object_t message, - int flags, - ffi.Pointer target, -) { - final _$$ref = message.ref; - return _SecCodeCreateWithXPCMessage(_$$ref.pointer, flags, target); -} - -@ffi.Native() -external int SecCodeGetTypeID(); - -@ffi.Native() -external int SecCodeMapMemory(SecStaticCodeRef code, int flags); - -@ffi.Native< - OSStatus Function(SecStaticCodeRef, CFStringRef, CFDataRef, ffi.Uint32) ->() -external int SecCodeValidateFileResource( - SecStaticCodeRef code, - CFStringRef relativePath, - CFDataRef fileData, - int flags, -); - -@ffi.Native)>() -external CFStringRef SecCopyErrorMessageString( - int status, - ffi.Pointer reserved, -); - -@ffi.Native() -external CFStringRef SecCreateSharedWebCredentialPassword(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecDecodeTransformCreate( - CFTypeRef DecodeType, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecDecryptTransformCreate( - SecKeyRef keyRef, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external int SecDecryptTransformGetTypeID(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - SecTransformRef Function(CFTypeRef, CFIndex, ffi.Pointer) ->() -external SecTransformRef SecDigestTransformCreate( - CFTypeRef digestType, - int digestLength, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external int SecDigestTransformGetTypeID(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecEncodeTransformCreate( - CFTypeRef encodeType, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecEncryptTransformCreate( - SecKeyRef keyRef, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external int SecEncryptTransformGetTypeID(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external int SecGroupTransformGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - SecGuestRef, - ffi.Uint32, - CFURLRef, - CFDictionaryRef, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int SecHostCreateGuest( - int host, - int status, - CFURLRef path, - CFDictionaryRef attributes, - int flags, - ffi.Pointer newGuest, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecHostRemoveGuest(int host, int guest, int flags); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecHostSelectGuest(int guestRef, int flags); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecHostSelectedGuest(int flags, ffi.Pointer guestRef); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecGuestRef, ffi.Uint32, CFDictionaryRef, ffi.Uint32) ->() -external int SecHostSetGuestStatus( - int guestRef, - int status, - CFDictionaryRef attributes, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecHostSetHostingPort(int hostingPort, int flags); - -@ffi.Native)>() -external int SecIdentityCopyCertificate( - SecIdentityRef identityRef, - ffi.Pointer certificateRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFStringRef, - CSSM_KEYUSE, - CFArrayRef, - ffi.Pointer, - ) ->() -external int SecIdentityCopyPreference( - CFStringRef name, - int keyUsage, - CFArrayRef validIssuers, - ffi.Pointer identity, -); - -@ffi.Native() -external SecIdentityRef SecIdentityCopyPreferred( - CFStringRef name, - CFArrayRef keyUsage, - CFArrayRef validIssuers, -); - -@ffi.Native)>() -external int SecIdentityCopyPrivateKey( - SecIdentityRef identityRef, - ffi.Pointer privateKeyRef, -); - -@ffi.Native< - OSStatus Function( - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecIdentityCopySystemIdentity( - CFStringRef domain, - ffi.Pointer idRef, - ffi.Pointer actualDomain, -); - -@ffi.Native< - SecIdentityRef Function(CFAllocatorRef, SecCertificateRef, SecKeyRef) ->() -external SecIdentityRef SecIdentityCreate( - CFAllocatorRef allocator, - SecCertificateRef certificate, - SecKeyRef privateKey, -); - -@ffi.Native< - OSStatus Function(CFTypeRef, SecCertificateRef, ffi.Pointer) ->() -external int SecIdentityCreateWithCertificate( - CFTypeRef keychainOrArray, - SecCertificateRef certificateRef, - ffi.Pointer identityRef, -); - -@ffi.Native() -external int SecIdentityGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecIdentitySearchRef, ffi.Pointer) ->() -external int SecIdentitySearchCopyNext( - SecIdentitySearchRef searchRef, - ffi.Pointer identity, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(CFTypeRef, CSSM_KEYUSE, ffi.Pointer) ->() -external int SecIdentitySearchCreate( - CFTypeRef keychainOrArray, - int keyUsage, - ffi.Pointer searchRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecIdentitySearchGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecIdentitySetPreference( - SecIdentityRef identity, - CFStringRef name, - int keyUsage, -); - -@ffi.Native() -external int SecIdentitySetPreferred( - SecIdentityRef identity, - CFStringRef name, - CFArrayRef keyUsage, -); - -@ffi.Native() -external int SecIdentitySetSystemIdentity( - CFStringRef domain, - SecIdentityRef idRef, -); - -@ffi.Native)>() -external int SecItemAdd( - CFDictionaryRef attributes, - ffi.Pointer result, -); - -@ffi.Native)>() -external int SecItemCopyMatching( - CFDictionaryRef query, - ffi.Pointer result, -); - -@ffi.Native() -external int SecItemDelete(CFDictionaryRef query); - -@ffi.Native< - OSStatus Function( - CFTypeRef, - ffi.Uint32, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'SecItemExport') -external int _SecItemExport( - CFTypeRef secItemOrArray, - int outputFormat, - int flags, - ffi.Pointer keyParams, - ffi.Pointer exportedData, -); - -DartSInt32 SecItemExport( - CFTypeRef secItemOrArray, - SecExternalFormat outputFormat, - int flags, - ffi.Pointer keyParams, - ffi.Pointer exportedData, -) { - return _SecItemExport( - secItemOrArray, - outputFormat.value, - flags, - keyParams, - exportedData, - ); -} - -@ffi.Native< - OSStatus Function( - CFDataRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - SecKeychainRef, - ffi.Pointer, - ) ->() -external int SecItemImport( - CFDataRef importedData, - CFStringRef fileNameOrExtension, - ffi.Pointer inputFormat, - ffi.Pointer itemType, - int flags, - ffi.Pointer keyParams, - SecKeychainRef importKeychain, - ffi.Pointer outItems, -); - -@ffi.Native() -external int SecItemUpdate( - CFDictionaryRef query, - CFDictionaryRef attributesToUpdate, -); - -@ffi.Native() -external CFDictionaryRef SecKeyCopyAttributes(SecKeyRef key); - -@ffi.Native)>() -external CFDataRef SecKeyCopyExternalRepresentation( - SecKeyRef key, - ffi.Pointer error, -); - -@ffi.Native< - CFDataRef Function( - SecKeyRef, - SecKeyAlgorithm, - SecKeyRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external CFDataRef SecKeyCopyKeyExchangeResult( - SecKeyRef privateKey, - SecKeyAlgorithm algorithm, - SecKeyRef publicKey, - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@ffi.Native() -external SecKeyRef SecKeyCopyPublicKey(SecKeyRef key); - -@ffi.Native< - CFDataRef Function( - SecKeyRef, - SecKeyAlgorithm, - CFDataRef, - ffi.Pointer, - ) ->() -external CFDataRef SecKeyCreateDecryptedData( - SecKeyRef key, - SecKeyAlgorithm algorithm, - CFDataRef ciphertext, - ffi.Pointer error, -); - -@ffi.Native< - CFDataRef Function( - SecKeyRef, - SecKeyAlgorithm, - CFDataRef, - ffi.Pointer, - ) ->() -external CFDataRef SecKeyCreateEncryptedData( - SecKeyRef key, - SecKeyAlgorithm algorithm, - CFDataRef plaintext, - ffi.Pointer error, -); - -@Deprecated('No longer supported') -@ffi.Native< - SecKeyRef Function(CFDictionaryRef, CFDataRef, ffi.Pointer) ->() -external SecKeyRef SecKeyCreateFromData( - CFDictionaryRef parameters, - CFDataRef keyData, - ffi.Pointer error, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecKeychainRef, - CSSM_ALGORITHMS, - uint32, - CSSM_CC_HANDLE, - CSSM_KEYUSE, - uint32, - CSSM_KEYUSE, - uint32, - SecAccessRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecKeyCreatePair( - SecKeychainRef keychainRef, - int algorithm, - int keySizeInBits, - int contextHandle, - int publicKeyUsage, - int publicKeyAttr, - int privateKeyUsage, - int privateKeyAttr, - SecAccessRef initialAccess, - ffi.Pointer publicKey, - ffi.Pointer privateKey, -); - -@ffi.Native)>() -external SecKeyRef SecKeyCreateRandomKey( - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@ffi.Native< - CFDataRef Function( - SecKeyRef, - SecKeyAlgorithm, - CFDataRef, - ffi.Pointer, - ) ->() -external CFDataRef SecKeyCreateSignature( - SecKeyRef key, - SecKeyAlgorithm algorithm, - CFDataRef dataToSign, - ffi.Pointer error, -); - -@ffi.Native< - SecKeyRef Function(CFDataRef, CFDictionaryRef, ffi.Pointer) ->() -external SecKeyRef SecKeyCreateWithData( - CFDataRef keyData, - CFDictionaryRef attributes, - ffi.Pointer error, -); - -@Deprecated('No longer supported') -@ffi.Native< - SecKeyRef Function(CFStringRef, CFDictionaryRef, ffi.Pointer) ->() -external SecKeyRef SecKeyDeriveFromPassword( - CFStringRef password, - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecKeychainRef, - CSSM_ALGORITHMS, - uint32, - CSSM_CC_HANDLE, - CSSM_KEYUSE, - uint32, - SecAccessRef, - ffi.Pointer, - ) ->() -external int SecKeyGenerate( - SecKeychainRef keychainRef, - int algorithm, - int keySizeInBits, - int contextHandle, - int keyUsage, - int keyAttr, - SecAccessRef initialAccess, - ffi.Pointer keyRef, -); - -@Deprecated('Use SecKeyCreateRandomKey') -@ffi.Native< - OSStatus Function( - CFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecKeyGeneratePair( - CFDictionaryRef parameters, - ffi.Pointer publicKey, - ffi.Pointer privateKey, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(CFDictionaryRef, dispatch_queue_t, SecKeyGeneratePairBlock) ->(symbol: 'SecKeyGeneratePairAsync') -external void _SecKeyGeneratePairAsync( - CFDictionaryRef parameters, - dispatch_queue_t deliveryQueue, - SecKeyGeneratePairBlock result, -); - -void SecKeyGeneratePairAsync( - CFDictionaryRef parameters, - Dartdispatch_queue_t deliveryQueue, - DartSecKeyGeneratePairBlock result, -) { - final _$$ref = deliveryQueue.ref; - final _$$ref$1 = result.ref; - return _SecKeyGeneratePairAsync(parameters, _$$ref.pointer, _$$ref$1.pointer); -} - -@Deprecated('No longer supported') -@ffi.Native)>() -external SecKeyRef SecKeyGenerateSymmetric( - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@ffi.Native() -external int SecKeyGetBlockSize(SecKeyRef key); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecKeyGetCSPHandle( - SecKeyRef keyRef, - ffi.Pointer cspHandle, -); - -@Deprecated('Deprecated') -@ffi.Native>)>() -external int SecKeyGetCSSMKey( - SecKeyRef key, - ffi.Pointer> cssmKey, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - SecKeyRef, - CSSM_ACL_AUTHORIZATION_TAG, - uint32, - ffi.Pointer>, - ) ->(symbol: 'SecKeyGetCredentials') -external int _SecKeyGetCredentials( - SecKeyRef keyRef, - int operation, - int credentialType, - ffi.Pointer> outCredentials, -); - -DartSInt32 SecKeyGetCredentials( - SecKeyRef keyRef, - Dartsint32 operation, - SecCredentialType credentialType, - ffi.Pointer> outCredentials, -) { - return _SecKeyGetCredentials( - keyRef, - operation, - credentialType.value, - outCredentials, - ); -} - -@ffi.Native() -external int SecKeyGetTypeID(); - -@ffi.Native( - symbol: 'SecKeyIsAlgorithmSupported', -) -external int _SecKeyIsAlgorithmSupported( - SecKeyRef key, - int operation, - SecKeyAlgorithm algorithm, -); - -DartBoolean SecKeyIsAlgorithmSupported( - SecKeyRef key, - SecKeyOperationType operation, - SecKeyAlgorithm algorithm, -) { - return _SecKeyIsAlgorithmSupported(key, operation.value, algorithm); -} - -@Deprecated('No longer supported') -@ffi.Native< - SecKeyRef Function( - ffi.Pointer, - SecKeyRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external SecKeyRef SecKeyUnwrapSymmetric( - ffi.Pointer keyToUnwrap, - SecKeyRef unwrappingKey, - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function( - SecKeyRef, - SecKeyAlgorithm, - CFDataRef, - CFDataRef, - ffi.Pointer, - ) ->() -external int SecKeyVerifySignature( - SecKeyRef key, - SecKeyAlgorithm algorithm, - CFDataRef signedData, - CFDataRef signature, - ffi.Pointer error, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDataRef Function( - SecKeyRef, - SecKeyRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external CFDataRef SecKeyWrapSymmetric( - SecKeyRef keyToWrap, - SecKeyRef wrappingKey, - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainCallback, UInt32, ffi.Pointer) ->() -external int SecKeychainAddCallback( - SecKeychainCallback callbackFunction, - int eventMask, - ffi.Pointer userContext, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainRef, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecKeychainAddGenericPassword( - SecKeychainRef keychain, - int serviceNameLength, - ffi.Pointer serviceName, - int accountNameLength, - ffi.Pointer accountName, - int passwordLength, - ffi.Pointer passwordData, - ffi.Pointer itemRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainRef, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt16, - FourCharCode, - FourCharCode, - UInt32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'SecKeychainAddInternetPassword') -external int _SecKeychainAddInternetPassword( - SecKeychainRef keychain, - int serverNameLength, - ffi.Pointer serverName, - int securityDomainLength, - ffi.Pointer securityDomain, - int accountNameLength, - ffi.Pointer accountName, - int pathLength, - ffi.Pointer path, - int port, - int protocol, - int authenticationType, - int passwordLength, - ffi.Pointer passwordData, - ffi.Pointer itemRef, -); - -DartSInt32 SecKeychainAddInternetPassword( - SecKeychainRef keychain, - DartUInt32 serverNameLength, - ffi.Pointer serverName, - DartUInt32 securityDomainLength, - ffi.Pointer securityDomain, - DartUInt32 accountNameLength, - ffi.Pointer accountName, - DartUInt32 pathLength, - ffi.Pointer path, - DartUInt16 port, - SecProtocolType protocol, - SecAuthenticationType authenticationType, - DartUInt32 passwordLength, - ffi.Pointer passwordData, - ffi.Pointer itemRef, -) { - return _SecKeychainAddInternetPassword( - keychain, - serverNameLength, - serverName, - securityDomainLength, - securityDomain, - accountNameLength, - accountName, - pathLength, - path, - port, - protocol.value, - authenticationType.value, - passwordLength, - passwordData, - itemRef, - ); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainRef, - UInt32, - ffi.Pointer>, - ) ->() -external int SecKeychainAttributeInfoForItemID( - SecKeychainRef keychain, - int itemID, - ffi.Pointer> info, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainCopyAccess( - SecKeychainRef keychain, - ffi.Pointer access$1, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainCopyDefault(ffi.Pointer keychain); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>( - symbol: 'SecKeychainCopyDomainDefault', -) -external int _SecKeychainCopyDomainDefault( - int domain, - ffi.Pointer keychain, -); - -DartSInt32 SecKeychainCopyDomainDefault( - SecPreferencesDomain domain, - ffi.Pointer keychain, -) { - return _SecKeychainCopyDomainDefault(domain.value, keychain); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>( - symbol: 'SecKeychainCopyDomainSearchList', -) -external int _SecKeychainCopyDomainSearchList( - int domain, - ffi.Pointer searchList, -); - -DartSInt32 SecKeychainCopyDomainSearchList( - SecPreferencesDomain domain, - ffi.Pointer searchList, -) { - return _SecKeychainCopyDomainSearchList(domain.value, searchList); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainCopySearchList(ffi.Pointer searchList); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainRef, ffi.Pointer) ->() -external int SecKeychainCopySettings( - SecKeychainRef keychain, - ffi.Pointer outSettings, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - UInt32, - ffi.Pointer, - Boolean, - SecAccessRef, - ffi.Pointer, - ) ->() -external int SecKeychainCreate( - ffi.Pointer pathName, - int passwordLength, - ffi.Pointer password, - int promptUser, - SecAccessRef initialAccess, - ffi.Pointer keychain, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainDelete(SecKeychainRef keychainOrArray); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - CFTypeRef, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int SecKeychainFindGenericPassword( - CFTypeRef keychainOrArray, - int serviceNameLength, - ffi.Pointer serviceName, - int accountNameLength, - ffi.Pointer accountName, - ffi.Pointer passwordLength, - ffi.Pointer> passwordData, - ffi.Pointer itemRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - CFTypeRef, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt16, - FourCharCode, - FourCharCode, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->(symbol: 'SecKeychainFindInternetPassword') -external int _SecKeychainFindInternetPassword( - CFTypeRef keychainOrArray, - int serverNameLength, - ffi.Pointer serverName, - int securityDomainLength, - ffi.Pointer securityDomain, - int accountNameLength, - ffi.Pointer accountName, - int pathLength, - ffi.Pointer path, - int port, - int protocol, - int authenticationType, - ffi.Pointer passwordLength, - ffi.Pointer> passwordData, - ffi.Pointer itemRef, -); - -DartSInt32 SecKeychainFindInternetPassword( - CFTypeRef keychainOrArray, - DartUInt32 serverNameLength, - ffi.Pointer serverName, - DartUInt32 securityDomainLength, - ffi.Pointer securityDomain, - DartUInt32 accountNameLength, - ffi.Pointer accountName, - DartUInt32 pathLength, - ffi.Pointer path, - DartUInt16 port, - SecProtocolType protocol, - SecAuthenticationType authenticationType, - ffi.Pointer passwordLength, - ffi.Pointer> passwordData, - ffi.Pointer itemRef, -) { - return _SecKeychainFindInternetPassword( - keychainOrArray, - serverNameLength, - serverName, - securityDomainLength, - securityDomain, - accountNameLength, - accountName, - pathLength, - path, - port, - protocol.value, - authenticationType.value, - passwordLength, - passwordData, - itemRef, - ); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainFreeAttributeInfo( - ffi.Pointer info, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecKeychainGetCSPHandle( - SecKeychainRef keychain, - ffi.Pointer cspHandle, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecKeychainGetDLDBHandle( - SecKeychainRef keychain, - ffi.Pointer dldbHandle, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainRef, ffi.Pointer, ffi.Pointer) ->() -external int SecKeychainGetPath( - SecKeychainRef keychain, - ffi.Pointer ioPathLength, - ffi.Pointer pathName, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainGetPreferenceDomain( - ffi.Pointer domain, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainGetStatus( - SecKeychainRef keychain, - ffi.Pointer keychainStatus, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainGetTypeID(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainGetUserInteractionAllowed(ffi.Pointer state); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainGetVersion(ffi.Pointer returnVers); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainItemCopyAccess( - SecKeychainItemRef itemRef, - ffi.Pointer access$1, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int SecKeychainItemCopyAttributesAndData( - SecKeychainItemRef itemRef, - ffi.Pointer info, - ffi.Pointer itemClass, - ffi.Pointer> attrList, - ffi.Pointer length, - ffi.Pointer> outData, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int SecKeychainItemCopyContent( - SecKeychainItemRef itemRef, - ffi.Pointer itemClass, - ffi.Pointer attrList, - ffi.Pointer length, - ffi.Pointer> outData, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainItemCopyFromPersistentReference( - CFDataRef persistentItemRef, - ffi.Pointer itemRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainItemRef, ffi.Pointer) ->() -external int SecKeychainItemCopyKeychain( - SecKeychainItemRef itemRef, - ffi.Pointer keychainRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - SecKeychainRef, - SecAccessRef, - ffi.Pointer, - ) ->() -external int SecKeychainItemCreateCopy( - SecKeychainItemRef itemRef, - SecKeychainRef destKeychainRef, - SecAccessRef initialAccess, - ffi.Pointer itemCopy, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - FourCharCode, - ffi.Pointer, - UInt32, - ffi.Pointer, - SecKeychainRef, - SecAccessRef, - ffi.Pointer, - ) ->(symbol: 'SecKeychainItemCreateFromContent') -external int _SecKeychainItemCreateFromContent( - int itemClass, - ffi.Pointer attrList, - int length, - ffi.Pointer data, - SecKeychainRef keychainRef, - SecAccessRef initialAccess, - ffi.Pointer itemRef, -); - -DartSInt32 SecKeychainItemCreateFromContent( - SecItemClass itemClass, - ffi.Pointer attrList, - DartUInt32 length, - ffi.Pointer data, - SecKeychainRef keychainRef, - SecAccessRef initialAccess, - ffi.Pointer itemRef, -) { - return _SecKeychainItemCreateFromContent( - itemClass.value, - attrList, - length, - data, - keychainRef, - initialAccess, - itemRef, - ); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainItemCreatePersistentReference( - SecKeychainItemRef itemRef, - ffi.Pointer persistentItemRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainItemDelete(SecKeychainItemRef itemRef); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFTypeRef, - ffi.Uint32, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'SecKeychainItemExport') -external int _SecKeychainItemExport( - CFTypeRef keychainItemOrArray, - int outputFormat, - int flags, - ffi.Pointer keyParams, - ffi.Pointer exportedData, -); - -DartSInt32 SecKeychainItemExport( - CFTypeRef keychainItemOrArray, - SecExternalFormat outputFormat, - int flags, - ffi.Pointer keyParams, - ffi.Pointer exportedData, -) { - return _SecKeychainItemExport( - keychainItemOrArray, - outputFormat.value, - flags, - keyParams, - exportedData, - ); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecKeychainItemFreeAttributesAndData( - ffi.Pointer attrList, - ffi.Pointer data, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecKeychainItemFreeContent( - ffi.Pointer attrList, - ffi.Pointer data, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function(SecKeychainItemRef, ffi.Pointer) ->() -external int SecKeychainItemGetDLDBHandle( - SecKeychainItemRef keyItemRef, - ffi.Pointer dldbHandle, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainItemGetTypeID(); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - ffi.Pointer>, - ) ->() -external int SecKeychainItemGetUniqueRecordID( - SecKeychainItemRef itemRef, - ffi.Pointer> uniqueRecordID, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFDataRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - SecKeychainRef, - ffi.Pointer, - ) ->() -external int SecKeychainItemImport( - CFDataRef importedData, - CFStringRef fileNameOrExtension, - ffi.Pointer inputFormat, - ffi.Pointer itemType, - int flags, - ffi.Pointer keyParams, - SecKeychainRef importKeychain, - ffi.Pointer outItems, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - ffi.Pointer, - UInt32, - ffi.Pointer, - ) ->() -external int SecKeychainItemModifyAttributesAndData( - SecKeychainItemRef itemRef, - ffi.Pointer attrList, - int length, - ffi.Pointer data, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - ffi.Pointer, - UInt32, - ffi.Pointer, - ) ->() -external int SecKeychainItemModifyContent( - SecKeychainItemRef itemRef, - ffi.Pointer attrList, - int length, - ffi.Pointer data, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainItemSetAccess( - SecKeychainItemRef itemRef, - SecAccessRef access$1, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainLock(SecKeychainRef keychain); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainLockAll(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int SecKeychainOpen( - ffi.Pointer pathName, - ffi.Pointer keychain, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainRemoveCallback(SecKeychainCallback callbackFunction); - -@Deprecated('SecKeychainSearch is not supported') -@ffi.Native< - OSStatus Function(SecKeychainSearchRef, ffi.Pointer) ->() -external int SecKeychainSearchCopyNext( - SecKeychainSearchRef searchRef, - ffi.Pointer itemRef, -); - -@Deprecated('SecKeychainSearch is not supported') -@ffi.Native< - OSStatus Function( - CFTypeRef, - FourCharCode, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'SecKeychainSearchCreateFromAttributes') -external int _SecKeychainSearchCreateFromAttributes( - CFTypeRef keychainOrArray, - int itemClass, - ffi.Pointer attrList, - ffi.Pointer searchRef, -); - -DartSInt32 SecKeychainSearchCreateFromAttributes( - CFTypeRef keychainOrArray, - SecItemClass itemClass, - ffi.Pointer attrList, - ffi.Pointer searchRef, -) { - return _SecKeychainSearchCreateFromAttributes( - keychainOrArray, - itemClass.value, - attrList, - searchRef, - ); -} - -@Deprecated('SecKeychainSearch is not supported') -@ffi.Native() -external int SecKeychainSearchGetTypeID(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainSetAccess( - SecKeychainRef keychain, - SecAccessRef access$1, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainSetDefault(SecKeychainRef keychain); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native( - symbol: 'SecKeychainSetDomainDefault', -) -external int _SecKeychainSetDomainDefault(int domain, SecKeychainRef keychain); - -DartSInt32 SecKeychainSetDomainDefault( - SecPreferencesDomain domain, - SecKeychainRef keychain, -) { - return _SecKeychainSetDomainDefault(domain.value, keychain); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native( - symbol: 'SecKeychainSetDomainSearchList', -) -external int _SecKeychainSetDomainSearchList(int domain, CFArrayRef searchList); - -DartSInt32 SecKeychainSetDomainSearchList( - SecPreferencesDomain domain, - CFArrayRef searchList, -) { - return _SecKeychainSetDomainSearchList(domain.value, searchList); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native( - symbol: 'SecKeychainSetPreferenceDomain', -) -external int _SecKeychainSetPreferenceDomain(int domain); - -DartSInt32 SecKeychainSetPreferenceDomain(SecPreferencesDomain domain) { - return _SecKeychainSetPreferenceDomain(domain.value); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainSetSearchList(CFArrayRef searchList); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainRef, ffi.Pointer) ->() -external int SecKeychainSetSettings( - SecKeychainRef keychain, - ffi.Pointer newSettings, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainSetUserInteractionAllowed(int state); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainRef, UInt32, ffi.Pointer, Boolean) ->() -external int SecKeychainUnlock( - SecKeychainRef keychain, - int passwordLength, - ffi.Pointer password, - int usePassword, -); - -@ffi.Native< - OSStatus Function(CFDataRef, CFDictionaryRef, ffi.Pointer) ->() -external int SecPKCS12Import( - CFDataRef pkcs12_data, - CFDictionaryRef options, - ffi.Pointer items, -); - -@ffi.Native() -external CFDictionaryRef SecPolicyCopyProperties(SecPolicyRef policyRef); - -@ffi.Native() -external SecPolicyRef SecPolicyCreateBasicX509(); - -@ffi.Native() -external SecPolicyRef SecPolicyCreateRevocation(int revocationFlags); - -@ffi.Native() -external SecPolicyRef SecPolicyCreateSSL(int server, CFStringRef hostname); - -@Deprecated('Deprecated') -@ffi.Native() -external SecPolicyRef SecPolicyCreateWithOID(CFTypeRef policyOID); - -@ffi.Native() -external SecPolicyRef SecPolicyCreateWithProperties( - CFTypeRef policyIdentifier, - CFDictionaryRef properties, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecPolicyGetOID( - SecPolicyRef policyRef, - ffi.Pointer oid, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecPolicyGetTPHandle( - SecPolicyRef policyRef, - ffi.Pointer tpHandle, -); - -@ffi.Native() -external int SecPolicyGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecPolicyGetValue( - SecPolicyRef policyRef, - ffi.Pointer value, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecPolicySearchCopyNext( - SecPolicySearchRef searchRef, - ffi.Pointer policyRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CSSM_CERT_TYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecPolicySearchCreate( - int certType, - ffi.Pointer policyOID, - ffi.Pointer value, - ffi.Pointer searchRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecPolicySearchGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecPolicySetProperties( - SecPolicyRef policyRef, - CFDictionaryRef properties, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecPolicySetValue( - SecPolicyRef policyRef, - ffi.Pointer value, -); - -@ffi.Native)>() -external int SecRandomCopyBytes( - SecRandomRef rnd, - int count, - ffi.Pointer bytes, -); - -@Deprecated( - 'Use ASAuthorizationController to make an ASAuthorizationPasswordRequest (AuthenticationServices framework)', -) -@ffi.Native< - ffi.Void Function(CFStringRef, CFStringRef, ffi.Pointer) ->(symbol: 'SecRequestSharedWebCredential') -external void _SecRequestSharedWebCredential( - CFStringRef fqdn, - CFStringRef account, - ffi.Pointer completionHandler, -); - -void SecRequestSharedWebCredential( - CFStringRef fqdn, - CFStringRef account, - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - completionHandler, -) { - final _$$ref = completionHandler.ref; - return _SecRequestSharedWebCredential(fqdn, account, _$$ref.pointer); -} - -@ffi.Native< - OSStatus Function(SecRequirementRef, ffi.Uint32, ffi.Pointer) ->() -external int SecRequirementCopyData( - SecRequirementRef requirement, - int flags, - ffi.Pointer data, -); - -@ffi.Native< - OSStatus Function(SecRequirementRef, ffi.Uint32, ffi.Pointer) ->() -external int SecRequirementCopyString( - SecRequirementRef requirement, - int flags, - ffi.Pointer text, -); - -@ffi.Native< - OSStatus Function(CFDataRef, ffi.Uint32, ffi.Pointer) ->() -external int SecRequirementCreateWithData( - CFDataRef data, - int flags, - ffi.Pointer requirement, -); - -@ffi.Native< - OSStatus Function(CFStringRef, ffi.Uint32, ffi.Pointer) ->() -external int SecRequirementCreateWithString( - CFStringRef text, - int flags, - ffi.Pointer requirement, -); - -@ffi.Native< - OSStatus Function( - CFStringRef, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecRequirementCreateWithStringAndErrors( - CFStringRef text, - int flags, - ffi.Pointer errors, - ffi.Pointer requirement, -); - -@ffi.Native() -external int SecRequirementGetTypeID(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecSignTransformCreate( - SecKeyRef key, - ffi.Pointer error, -); - -@ffi.Native< - OSStatus Function(SecStaticCodeRef, ffi.Uint32, SecRequirementRef) ->() -external int SecStaticCodeCheckValidity( - SecStaticCodeRef staticCode, - int flags, - SecRequirementRef requirement, -); - -@ffi.Native< - OSStatus Function( - SecStaticCodeRef, - ffi.Uint32, - SecRequirementRef, - ffi.Pointer, - ) ->() -external int SecStaticCodeCheckValidityWithErrors( - SecStaticCodeRef staticCode, - int flags, - SecRequirementRef requirement, - ffi.Pointer errors, -); - -@ffi.Native< - OSStatus Function(CFURLRef, ffi.Uint32, ffi.Pointer) ->() -external int SecStaticCodeCreateWithPath( - CFURLRef path, - int flags, - ffi.Pointer staticCode, -); - -@ffi.Native< - OSStatus Function( - CFURLRef, - ffi.Uint32, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int SecStaticCodeCreateWithPathAndAttributes( - CFURLRef path, - int flags, - CFDictionaryRef attributes, - ffi.Pointer staticCode, -); - -@ffi.Native() -external int SecStaticCodeGetTypeID(); - -@ffi.Native)>() -external CFStringRef SecTaskCopySigningIdentifier( - SecTaskRef task, - ffi.Pointer error, -); - -@ffi.Native< - CFTypeRef Function(SecTaskRef, CFStringRef, ffi.Pointer) ->() -external CFTypeRef SecTaskCopyValueForEntitlement( - SecTaskRef task, - CFStringRef entitlement, - ffi.Pointer error, -); - -@ffi.Native< - CFDictionaryRef Function(SecTaskRef, CFArrayRef, ffi.Pointer) ->() -external CFDictionaryRef SecTaskCopyValuesForEntitlements( - SecTaskRef task, - CFArrayRef entitlements, - ffi.Pointer error, -); - -@ffi.Native() -external SecTaskRef SecTaskCreateFromSelf(CFAllocatorRef allocator); - -@ffi.Native() -external SecTaskRef SecTaskCreateWithAuditToken( - CFAllocatorRef allocator, - audit_token_t token, -); - -@ffi.Native() -external int SecTaskGetCodeSignStatus(SecTaskRef task); - -@ffi.Native() -external int SecTaskGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native< - CFTypeRef Function( - SecTransformImplementationRef, - SecTransformStringOrAttributeRef, - CFIndex, - ) ->(symbol: 'SecTranformCustomGetAttribute') -external CFTypeRef _SecTranformCustomGetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - int type, -); - -CFTypeRef SecTranformCustomGetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - SecTransformMetaAttributeType type, -) { - return _SecTranformCustomGetAttribute(ref, attribute, type.value); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - SecGroupTransformRef Function( - SecTransformRef, - CFStringRef, - SecTransformRef, - CFStringRef, - SecGroupTransformRef, - ffi.Pointer, - ) ->() -external SecGroupTransformRef SecTransformConnectTransforms( - SecTransformRef sourceTransformRef, - CFStringRef sourceAttributeName, - SecTransformRef destinationTransformRef, - CFStringRef destinationAttributeName, - SecGroupTransformRef group, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external CFDictionaryRef SecTransformCopyExternalRepresentation( - SecTransformRef transformRef, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecTransformCreate( - CFStringRef name, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - SecTransformRef Function(CFDictionaryRef, ffi.Pointer) ->() -external SecTransformRef SecTransformCreateFromExternalRepresentation( - CFDictionaryRef dictionary, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external SecGroupTransformRef SecTransformCreateGroupTransform(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external SecTransformRef SecTransformCreateReadTransformWithReadStream( - CFReadStreamRef inputStream, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFTypeRef Function( - SecTransformImplementationRef, - SecTransformStringOrAttributeRef, - CFIndex, - ) ->(symbol: 'SecTransformCustomGetAttribute') -external CFTypeRef _SecTransformCustomGetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - int type, -); - -CFTypeRef SecTransformCustomGetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - SecTransformMetaAttributeType type, -) { - return _SecTransformCustomGetAttribute(ref, attribute, type.value); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFTypeRef Function( - SecTransformImplementationRef, - SecTransformStringOrAttributeRef, - CFIndex, - CFTypeRef, - ) ->(symbol: 'SecTransformCustomSetAttribute') -external CFTypeRef _SecTransformCustomSetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - int type, - CFTypeRef value, -); - -CFTypeRef SecTransformCustomSetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - SecTransformMetaAttributeType type, - CFTypeRef value, -) { - return _SecTransformCustomSetAttribute(ref, attribute, type.value, value); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external CFTypeRef SecTransformExecute( - SecTransformRef transformRef, - ffi.Pointer errorRef, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - ffi.Void Function(SecTransformRef, dispatch_queue_t, SecMessageBlock) ->(symbol: 'SecTransformExecuteAsync') -external void _SecTransformExecuteAsync( - SecTransformRef transformRef, - dispatch_queue_t deliveryQueue, - SecMessageBlock deliveryBlock, -); - -void SecTransformExecuteAsync( - SecTransformRef transformRef, - Dartdispatch_queue_t deliveryQueue, - DartSecMessageBlock deliveryBlock, -) { - final _$$ref = deliveryQueue.ref; - final _$$ref$1 = deliveryBlock.ref; - return _SecTransformExecuteAsync( - transformRef, - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external SecTransformRef SecTransformFindByName( - SecGroupTransformRef transform, - CFStringRef name, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external CFTypeRef SecTransformGetAttribute( - SecTransformRef transformRef, - CFStringRef key, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external int SecTransformGetTypeID(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external CFTypeRef SecTransformNoData(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFTypeRef Function( - SecTransformImplementationRef, - SecTransformStringOrAttributeRef, - CFTypeRef, - ) ->() -external CFTypeRef SecTransformPushbackAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - CFTypeRef value, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - Boolean Function(CFStringRef, SecTransformCreateFP, ffi.Pointer) ->() -external int SecTransformRegister( - CFStringRef uniqueName, - SecTransformCreateFP createTransformFunction, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - Boolean Function( - SecTransformRef, - CFStringRef, - CFTypeRef, - ffi.Pointer, - ) ->() -external int SecTransformSetAttribute( - SecTransformRef transformRef, - CFStringRef key, - CFTypeRef value, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFErrorRef Function( - SecTransformImplementationRef, - CFStringRef, - SecTransformStringOrAttributeRef, - SecTransformAttributeActionBlock, - ) ->(symbol: 'SecTransformSetAttributeAction') -external CFErrorRef _SecTransformSetAttributeAction( - SecTransformImplementationRef ref, - CFStringRef action, - SecTransformStringOrAttributeRef attribute, - SecTransformAttributeActionBlock newAction, -); - -CFErrorRef SecTransformSetAttributeAction( - SecTransformImplementationRef ref, - CFStringRef action, - SecTransformStringOrAttributeRef attribute, - DartSecTransformAttributeActionBlock newAction, -) { - final _$$ref = newAction.ref; - return _SecTransformSetAttributeAction( - ref, - action, - attribute, - _$$ref.pointer, - ); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFErrorRef Function( - SecTransformImplementationRef, - CFStringRef, - SecTransformDataBlock, - ) ->(symbol: 'SecTransformSetDataAction') -external CFErrorRef _SecTransformSetDataAction( - SecTransformImplementationRef ref, - CFStringRef action, - SecTransformDataBlock newAction, -); - -CFErrorRef SecTransformSetDataAction( - SecTransformImplementationRef ref, - CFStringRef action, - DartSecTransformDataBlock newAction, -) { - final _$$ref = newAction.ref; - return _SecTransformSetDataAction(ref, action, _$$ref.pointer); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFErrorRef Function( - SecTransformImplementationRef, - CFStringRef, - SecTransformActionBlock, - ) ->(symbol: 'SecTransformSetTransformAction') -external CFErrorRef _SecTransformSetTransformAction( - SecTransformImplementationRef ref, - CFStringRef action, - SecTransformActionBlock newAction, -); - -CFErrorRef SecTransformSetTransformAction( - SecTransformImplementationRef ref, - CFStringRef action, - DartSecTransformActionBlock newAction, -) { - final _$$ref = newAction.ref; - return _SecTransformSetTransformAction(ref, action, _$$ref.pointer); -} - -@ffi.Native)>() -external int SecTrustCopyAnchorCertificates(ffi.Pointer anchors); - -@ffi.Native() -external CFArrayRef SecTrustCopyCertificateChain(SecTrustRef trust); - -@ffi.Native)>() -external int SecTrustCopyCustomAnchorCertificates( - SecTrustRef trust, - ffi.Pointer anchors, -); - -@ffi.Native() -external CFDataRef SecTrustCopyExceptions(SecTrustRef trust); - -@ffi.Native() -external SecKeyRef SecTrustCopyKey(SecTrustRef trust); - -@ffi.Native)>() -external int SecTrustCopyPolicies( - SecTrustRef trust, - ffi.Pointer policies, -); - -@Deprecated('Deprecated') -@ffi.Native() -external CFArrayRef SecTrustCopyProperties(SecTrustRef trust); - -@Deprecated('Deprecated') -@ffi.Native() -external SecKeyRef SecTrustCopyPublicKey(SecTrustRef trust); - -@ffi.Native() -external CFDictionaryRef SecTrustCopyResult(SecTrustRef trust); - -@ffi.Native)>() -external int SecTrustCreateWithCertificates( - CFTypeRef certificates, - CFTypeRef policies, - ffi.Pointer trust, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecTrustEvaluate( - SecTrustRef trust, - ffi.Pointer result, -); - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'SecTrustEvaluateAsync', -) -external int _SecTrustEvaluateAsync( - SecTrustRef trust, - dispatch_queue_t queue, - SecTrustCallback result, -); - -DartSInt32 SecTrustEvaluateAsync( - SecTrustRef trust, - Dartdispatch_queue_t? queue, - DartSecTrustCallback result, -) { - final _$$ref = queue?.ref; - final _$$ref$1 = result.ref; - return _SecTrustEvaluateAsync( - trust, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - OSStatus Function(SecTrustRef, dispatch_queue_t, SecTrustWithErrorCallback) ->(symbol: 'SecTrustEvaluateAsyncWithError') -external int _SecTrustEvaluateAsyncWithError( - SecTrustRef trust, - dispatch_queue_t queue, - SecTrustWithErrorCallback result, -); - -DartSInt32 SecTrustEvaluateAsyncWithError( - SecTrustRef trust, - Dartdispatch_queue_t queue, - DartSecTrustWithErrorCallback result, -) { - final _$$ref = queue.ref; - final _$$ref$1 = result.ref; - return _SecTrustEvaluateAsyncWithError( - trust, - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native)>() -external bool SecTrustEvaluateWithError( - SecTrustRef trust, - ffi.Pointer error, -); - -@Deprecated('Deprecated') -@ffi.Native() -external SecCertificateRef SecTrustGetCertificateAtIndex( - SecTrustRef trust, - int ix, -); - -@ffi.Native() -external int SecTrustGetCertificateCount(SecTrustRef trust); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecTrustRef, ffi.Pointer) ->() -external int SecTrustGetCssmResult( - SecTrustRef trust, - ffi.Pointer result, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecTrustGetCssmResultCode( - SecTrustRef trust, - ffi.Pointer resultCode, -); - -@ffi.Native)>() -external int SecTrustGetNetworkFetchAllowed( - SecTrustRef trust, - ffi.Pointer allowFetch, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - SecTrustRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int SecTrustGetResult( - SecTrustRef trustRef, - ffi.Pointer result, - ffi.Pointer certChain, - ffi.Pointer> statusChain, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecTrustGetTPHandle( - SecTrustRef trust, - ffi.Pointer handle, -); - -@ffi.Native)>() -external int SecTrustGetTrustResult( - SecTrustRef trust, - ffi.Pointer result, -); - -@ffi.Native() -external int SecTrustGetTypeID(); - -@ffi.Native() -external double SecTrustGetVerifyTime(SecTrustRef trust); - -@ffi.Native() -external int SecTrustSetAnchorCertificates( - SecTrustRef trust, - CFArrayRef anchorCertificates, -); - -@ffi.Native() -external int SecTrustSetAnchorCertificatesOnly( - SecTrustRef trust, - int anchorCertificatesOnly, -); - -@ffi.Native() -external bool SecTrustSetExceptions(SecTrustRef trust, CFDataRef exceptions); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecTrustSetKeychains(SecTrustRef trust, CFTypeRef keychainOrArray); - -@ffi.Native() -external int SecTrustSetNetworkFetchAllowed(SecTrustRef trust, int allowFetch); - -@ffi.Native() -external int SecTrustSetOCSPResponse(SecTrustRef trust, CFTypeRef responseData); - -@ffi.Native() -external int SecTrustSetOptions(SecTrustRef trustRef, int options); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecTrustSetParameters( - SecTrustRef trustRef, - int action, - CFDataRef actionData, -); - -@ffi.Native() -external int SecTrustSetPolicies(SecTrustRef trust, CFTypeRef policies); - -@ffi.Native() -external int SecTrustSetSignedCertificateTimestamps( - SecTrustRef trust, - CFArrayRef sctArray, -); - -@ffi.Native() -external int SecTrustSetVerifyDate(SecTrustRef trust, CFDateRef verifyDate); - -@ffi.Native)>( - symbol: 'SecTrustSettingsCopyCertificates', -) -external int _SecTrustSettingsCopyCertificates( - int domain, - ffi.Pointer certArray, -); - -DartSInt32 SecTrustSettingsCopyCertificates( - SecTrustSettingsDomain domain, - ffi.Pointer certArray, -) { - return _SecTrustSettingsCopyCertificates(domain.value, certArray); -} - -@ffi.Native< - OSStatus Function(SecCertificateRef, ffi.Uint32, ffi.Pointer) ->(symbol: 'SecTrustSettingsCopyModificationDate') -external int _SecTrustSettingsCopyModificationDate( - SecCertificateRef certRef, - int domain, - ffi.Pointer modificationDate, -); - -DartSInt32 SecTrustSettingsCopyModificationDate( - SecCertificateRef certRef, - SecTrustSettingsDomain domain, - ffi.Pointer modificationDate, -) { - return _SecTrustSettingsCopyModificationDate( - certRef, - domain.value, - modificationDate, - ); -} - -@ffi.Native< - OSStatus Function(SecCertificateRef, ffi.Uint32, ffi.Pointer) ->(symbol: 'SecTrustSettingsCopyTrustSettings') -external int _SecTrustSettingsCopyTrustSettings( - SecCertificateRef certRef, - int domain, - ffi.Pointer trustSettings, -); - -DartSInt32 SecTrustSettingsCopyTrustSettings( - SecCertificateRef certRef, - SecTrustSettingsDomain domain, - ffi.Pointer trustSettings, -) { - return _SecTrustSettingsCopyTrustSettings( - certRef, - domain.value, - trustSettings, - ); -} - -@ffi.Native)>( - symbol: 'SecTrustSettingsCreateExternalRepresentation', -) -external int _SecTrustSettingsCreateExternalRepresentation( - int domain, - ffi.Pointer trustSettings, -); - -DartSInt32 SecTrustSettingsCreateExternalRepresentation( - SecTrustSettingsDomain domain, - ffi.Pointer trustSettings, -) { - return _SecTrustSettingsCreateExternalRepresentation( - domain.value, - trustSettings, - ); -} - -@ffi.Native( - symbol: 'SecTrustSettingsImportExternalRepresentation', -) -external int _SecTrustSettingsImportExternalRepresentation( - int domain, - CFDataRef trustSettings, -); - -DartSInt32 SecTrustSettingsImportExternalRepresentation( - SecTrustSettingsDomain domain, - CFDataRef trustSettings, -) { - return _SecTrustSettingsImportExternalRepresentation( - domain.value, - trustSettings, - ); -} - -@ffi.Native( - symbol: 'SecTrustSettingsRemoveTrustSettings', -) -external int _SecTrustSettingsRemoveTrustSettings( - SecCertificateRef certRef, - int domain, -); - -DartSInt32 SecTrustSettingsRemoveTrustSettings( - SecCertificateRef certRef, - SecTrustSettingsDomain domain, -) { - return _SecTrustSettingsRemoveTrustSettings(certRef, domain.value); -} - -@ffi.Native( - symbol: 'SecTrustSettingsSetTrustSettings', -) -external int _SecTrustSettingsSetTrustSettings( - SecCertificateRef certRef, - int domain, - CFTypeRef trustSettingsDictOrArray, -); - -DartSInt32 SecTrustSettingsSetTrustSettings( - SecCertificateRef certRef, - SecTrustSettingsDomain domain, - CFTypeRef trustSettingsDictOrArray, -) { - return _SecTrustSettingsSetTrustSettings( - certRef, - domain.value, - trustSettingsDictOrArray, - ); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecTrustedApplicationRef, ffi.Pointer) ->() -external int SecTrustedApplicationCopyData( - SecTrustedApplicationRef appRef, - ffi.Pointer data, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecTrustedApplicationCreateFromPath( - ffi.Pointer path, - ffi.Pointer app, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecTrustedApplicationGetTypeID(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecTrustedApplicationSetData( - SecTrustedApplicationRef appRef, - CFDataRef data, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - SecTransformRef Function(SecKeyRef, CFDataRef, ffi.Pointer) ->() -external SecTransformRef SecVerifyTransformCreate( - SecKeyRef key, - CFDataRef signature, - ffi.Pointer error, -); - -@ffi.Native() -external int SessionCreate(int flags, int attributes); - -@ffi.Native< - OSStatus Function( - SecuritySessionId, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SessionGetInfo( - int session, - ffi.Pointer sessionId, - ffi.Pointer attributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetAliasUserType(AliasHandle alias, int userType); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetAliasUserTypeWithPtr(AliasPtr alias, int userType); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetCollectionDefaultAttributes( - Collection c, - int whichAttributes, - int newAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetCollectionExceptionProc( - Collection c, - CollectionExceptionUPP exceptionProc, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetCollectionItemInfo( - Collection c, - int tag, - int id, - int whichAttributes, - int newAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetComponentInstanceError( - ComponentInstance aComponentInstance, - int theError, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetComponentInstanceStorage( - ComponentInstance aComponentInstance, - Handle theStorage, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetComponentRefcon(Component aComponent, int theRefcon); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int SetCustomIconsEnabled(int vRefNum, int enableCustomIcons); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetDebugOptionValue( - int componentSignature, - int optionSelectorNum, - int newOptionSetting, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - DebuggerNewThreadTPP, - DebuggerDisposeThreadTPP, - DebuggerThreadSchedulerTPP, - ) ->() -external int SetDebuggerNotificationProcs( - DebuggerNewThreadTPP notifyNewThread, - DebuggerDisposeThreadTPP notifyDisposeThread, - DebuggerThreadSchedulerTPP notifyThreadScheduler, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetDefaultComponent(Component aComponent, int flags); - -@ffi.Native< - OSStatus Function( - UnicodeToTextInfo, - UnicodeToTextFallbackUPP, - OptionBits, - LogicalAddress, - ) ->() -external int SetFallbackUnicodeToText( - UnicodeToTextInfo iUnicodeToTextInfo, - UnicodeToTextFallbackUPP iFallback, - int iControlFlags, - LogicalAddress iInfoPtr, -); - -@ffi.Native< - OSStatus Function( - UnicodeToTextRunInfo, - UnicodeToTextFallbackUPP, - OptionBits, - LogicalAddress, - ) ->() -external int SetFallbackUnicodeToTextRun( - UnicodeToTextRunInfo iUnicodeToTextRunInfo, - UnicodeToTextFallbackUPP iFallback, - int iControlFlags, - LogicalAddress iInfoPtr, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SetFrontProcess(ffi.Pointer pPSN); - -@Deprecated('Deprecated') -@ffi.Native, OptionBits)>() -external int SetFrontProcessWithOptions( - ffi.Pointer inProcess, - int inOptions, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetGestaltValue(int selector, int newValue); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetHandleSize(Handle h, int newSize); - -@ffi.Native() -external int SetIconFamilyData( - IconFamilyHandle iconFamily, - int iconType, - Handle h, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetIndexedCollectionItemInfo( - Collection c, - int itemIndex, - int whichAttributes, - int newAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetPtrSize(Ptr p, int newSize); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResAttrs(Handle theResource, int attrs); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResFileAttrs(int refNum, int attrs); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResInfo(Handle theResource, int theID, ConstStr255Param name); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResLoad(int load); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResPurge(int install); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResourceSize(Handle theResource, int newSize); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetScriptManagerVariable(int selector, int param); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int SetSpeechInfo( - SpeechChannel chan, - int selector, - ffi.Pointer speechInfo, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SetSpeechPitch(SpeechChannel chan, int pitch); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SetSpeechProperty( - SpeechChannel chan, - CFStringRef property, - CFTypeRef object, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SetSpeechRate(SpeechChannel chan, int rate); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetThreadReadyGivenTaskRef( - ThreadTaskRef threadTRef, - int threadToSet, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetThreadScheduler(ThreadSchedulerTPP threadScheduler); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetThreadState(int threadToSet, int newState, int suggestedThread); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetThreadStateEndCritical( - int threadToSet, - int newState, - int suggestedThread, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ThreadID, ThreadSwitchTPP, ffi.Pointer, Boolean) ->() -external int SetThreadSwitcher( - int thread, - ThreadSwitchTPP threadSwitcher, - ffi.Pointer switchProcParam, - int inOrOut, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ThreadID, ThreadTerminationTPP, ffi.Pointer) ->() -external int SetThreadTerminator( - int thread, - ThreadTerminationTPP threadTerminator, - ffi.Pointer terminationProcParam, -); - -@Deprecated('Deprecated') -@ffi.Native, Boolean)>() -external int ShowHideProcess(ffi.Pointer psn, int visible); - -@Deprecated('No longer supported') -@ffi.Native() -external void SleepQInstall(SleepQRecPtr qRecPtr); - -@Deprecated('No longer supported') -@ffi.Native() -external void SleepQRemove(SleepQRecPtr qRecPtr); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(SpeechChannel, ffi.Pointer, ffi.UnsignedLong, SInt32) ->() -external int SpeakBuffer( - SpeechChannel chan, - ffi.Pointer textBuf, - int textBytes, - int controlFlags, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeakCFString( - SpeechChannel chan, - CFStringRef aString, - CFDictionaryRef options, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeakString(ConstStr255Param textToBeSpoken); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(SpeechChannel, ffi.Pointer, ffi.UnsignedLong) ->() -external int SpeakText( - SpeechChannel chan, - ffi.Pointer textBuf, - int textBytes, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeechBusy(); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeechBusySystemWide(); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external NumVersion SpeechManagerVersion(); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeechSynthesisRegisterModuleURL(CFURLRef url); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeechSynthesisUnregisterModuleURL(CFURLRef url); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int StopSpeech(SpeechChannel chan); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int StopSpeechAt(SpeechChannel chan, int whereToStop); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime SubAbsoluteFromAbsolute( - AbsoluteTime leftAbsoluteTime, - AbsoluteTime rightAbsoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime SubDurationFromAbsolute( - int duration, - AbsoluteTime absoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime SubNanosecondsFromAbsolute( - Nanoseconds nanoseconds, - AbsoluteTime absoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SysBreak(); - -@Deprecated('Deprecated') -@ffi.Native() -external void SysBreakFunc(ConstStr255Param debuggerMsg); - -@Deprecated('Deprecated') -@ffi.Native() -external void SysBreakStr(ConstStr255Param debuggerMsg); - -@Deprecated('Deprecated') -@ffi.Native() -external void SysError(int errorCode); - -@ffi.Native() -external int TECClearConverterContextInfo(TECObjectRef encodingConverter); - -@ffi.Native() -external int TECClearSnifferContextInfo(TECSnifferObjectRef encodingSniffer); - -@ffi.Native< - OSStatus Function( - TECObjectRef, - ConstTextPtr, - ByteCount, - ffi.Pointer, - TextPtr, - ByteCount, - ffi.Pointer, - ) ->() -external int TECConvertText( - TECObjectRef encodingConverter, - ConstTextPtr inputBuffer, - int inputBufferLength, - ffi.Pointer actualInputLength, - TextPtr outputBuffer, - int outputBufferLength, - ffi.Pointer actualOutputLength, -); - -@ffi.Native< - OSStatus Function( - TECObjectRef, - ConstTextPtr, - ByteCount, - ffi.Pointer, - TextPtr, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECConvertTextToMultipleEncodings( - TECObjectRef encodingConverter, - ConstTextPtr inputBuffer, - int inputBufferLength, - ffi.Pointer actualInputLength, - TextPtr outputBuffer, - int outputBufferLength, - ffi.Pointer actualOutputLength, - ffi.Pointer outEncodingsBuffer, - int maxOutEncodingRuns, - ffi.Pointer actualOutEncodingRuns, -); - -@ffi.Native< - OSStatus Function( - TextEncoding, - TECInternetNameUsageMask, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int TECCopyTextEncodingInternetNameAndMIB( - int textEncoding, - int usage, - ffi.Pointer encodingNamePtr, - ffi.Pointer mibEnumPtr, -); - -@ffi.Native)>() -external int TECCountAvailableSniffers( - ffi.Pointer numberOfEncodings, -); - -@ffi.Native)>() -external int TECCountAvailableTextEncodings( - ffi.Pointer numberEncodings, -); - -@ffi.Native)>() -external int TECCountDestinationTextEncodings( - int inputEncoding, - ffi.Pointer numberOfEncodings, -); - -@ffi.Native)>() -external int TECCountDirectTextEncodingConversions( - ffi.Pointer numberOfEncodings, -); - -@ffi.Native)>() -external int TECCountMailTextEncodings( - int locale, - ffi.Pointer numberEncodings, -); - -@ffi.Native)>() -external int TECCountSubTextEncodings( - int inputEncoding, - ffi.Pointer numberOfEncodings, -); - -@ffi.Native)>() -external int TECCountWebTextEncodings( - int locale, - ffi.Pointer numberEncodings, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, TextEncoding, TextEncoding) ->() -external int TECCreateConverter( - ffi.Pointer newEncodingConverter, - int inputEncoding, - int outputEncoding, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ItemCount, - ) ->() -external int TECCreateConverterFromPath( - ffi.Pointer newEncodingConverter, - ffi.Pointer inPath, - int inEncodings, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - TextEncoding, - ItemCount, - ffi.Pointer, - ) ->() -external int TECCreateOneToManyConverter( - ffi.Pointer newEncodingConverter, - int inputEncoding, - int numOutputEncodings, - ffi.Pointer outputEncodings, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ItemCount, - ) ->() -external int TECCreateSniffer( - ffi.Pointer encodingSniffer, - ffi.Pointer testEncodings, - int numTextEncodings, -); - -@ffi.Native() -external int TECDisposeConverter(TECObjectRef newEncodingConverter); - -@ffi.Native() -external int TECDisposeSniffer(TECSnifferObjectRef encodingSniffer); - -@ffi.Native< - OSStatus Function( - TECObjectRef, - TextPtr, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECFlushMultipleEncodings( - TECObjectRef encodingConverter, - TextPtr outputBuffer, - int outputBufferLength, - ffi.Pointer actualOutputLength, - ffi.Pointer outEncodingsBuffer, - int maxOutEncodingRuns, - ffi.Pointer actualOutEncodingRuns, -); - -@ffi.Native< - OSStatus Function(TECObjectRef, TextPtr, ByteCount, ffi.Pointer) ->() -external int TECFlushText( - TECObjectRef encodingConverter, - TextPtr outputBuffer, - int outputBufferLength, - ffi.Pointer actualOutputLength, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetAvailableSniffers( - ffi.Pointer availableSniffers, - int maxAvailableSniffers, - ffi.Pointer actualAvailableSniffers, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetAvailableTextEncodings( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, -); - -@ffi.Native< - OSStatus Function( - TextEncoding, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetDestinationTextEncodings( - int inputEncoding, - ffi.Pointer destinationEncodings, - int maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetDirectTextEncodingConversions( - ffi.Pointer availableConversions, - int maxAvailableConversions, - ffi.Pointer actualAvailableConversions, -); - -@ffi.Native< - OSStatus Function(TECObjectRef, ffi.Pointer, ffi.Pointer) ->() -external int TECGetEncodingList( - TECObjectRef encodingConverter, - ffi.Pointer numEncodings, - ffi.Pointer encodingList, -); - -@ffi.Native)>() -external int TECGetInfo(ffi.Pointer tecInfo); - -@ffi.Native< - OSStatus Function( - RegionCode, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetMailTextEncodings( - int locale, - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, -); - -@ffi.Native< - OSStatus Function( - TextEncoding, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetSubTextEncodings( - int inputEncoding, - ffi.Pointer subEncodings, - int maxSubEncodings, - ffi.Pointer actualSubEncodings, -); - -@ffi.Native, ConstStr255Param)>() -external int TECGetTextEncodingFromInternetName( - ffi.Pointer textEncoding, - ConstStr255Param encodingName, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - TECInternetNameUsageMask, - CFStringRef, - SInt32, - ) ->() -external int TECGetTextEncodingFromInternetNameOrMIB( - ffi.Pointer textEncodingPtr, - int usage, - CFStringRef encodingName, - int mibEnum, -); - -@ffi.Native)>() -external int TECGetTextEncodingInternetName( - int textEncoding, - ffi.Pointer encodingName, -); - -@ffi.Native< - OSStatus Function( - RegionCode, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetWebTextEncodings( - int locale, - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, -); - -@ffi.Native() -external int TECSetBasicOptions( - TECObjectRef encodingConverter, - int controlFlags, -); - -@ffi.Native< - OSStatus Function( - TECSnifferObjectRef, - ConstTextPtr, - ByteCount, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ItemCount, - ) ->() -external int TECSniffTextEncoding( - TECSnifferObjectRef encodingSniffer, - ConstTextPtr inputBuffer, - int inputBufferLength, - ffi.Pointer testEncodings, - int numTextEncodings, - ffi.Pointer numErrsArray, - int maxErrs, - ffi.Pointer numFeaturesArray, - int maxFeatures, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int TaskLevel(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external Handle TempNewHandle(int logicalSize, ffi.Pointer resultCode); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int TestAndClear(int bit, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int TestAndSet(int bit, ffi.Pointer address); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function( - SpeechChannel, - ffi.Pointer, - ffi.UnsignedLong, - Handle, - ffi.Pointer, - ) ->() -external int TextToPhonemes( - SpeechChannel chan, - ffi.Pointer textBuf, - int textBytes, - Handle phonemeBuf, - ffi.Pointer phonemeBytes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ThreadBeginCritical(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ThreadCurrentStackSpace( - int thread, - ffi.Pointer freeStack, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ThreadEndCritical(); - -@Deprecated('Deprecated') -@ffi.Native() -external int TickCount(); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ProcessApplicationTransformState, - ) ->() -external int TransformProcessType( - ffi.Pointer psn, - int transformState, -); - -@ffi.Native)>() -external int TranslationCopyDestinationType( - TranslationRef inTranslation, - ffi.Pointer outDestinationType, -); - -@ffi.Native)>() -external int TranslationCopySourceType( - TranslationRef inTranslation, - ffi.Pointer outSourceType, -); - -@ffi.Native< - OSStatus Function( - CFStringRef, - CFStringRef, - TranslationFlags, - ffi.Pointer, - ) ->() -external int TranslationCreate( - CFStringRef inSourceType, - CFStringRef inDestinationType, - int inTranslationFlags, - ffi.Pointer outTranslation, -); - -@ffi.Native< - OSStatus Function( - CFArrayRef, - TranslationFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int TranslationCreateWithSourceArray( - CFArrayRef inSourceTypes, - int inTranslationFlags, - ffi.Pointer outDestinationTypes, - ffi.Pointer outTranslations, -); - -@ffi.Native)>() -external int TranslationGetTranslationFlags( - TranslationRef inTranslation, - ffi.Pointer outTranslationFlags, -); - -@ffi.Native() -external int TranslationGetTypeID(); - -@ffi.Native< - OSStatus Function(TranslationRef, CFDataRef, ffi.Pointer) ->() -external int TranslationPerformForData( - TranslationRef inTranslation, - CFDataRef inSourceData, - ffi.Pointer outDestinationData, -); - -@ffi.Native< - OSStatus Function( - TranslationRef, - ffi.Pointer, - ffi.Pointer, - CFStringRef, - ffi.Pointer, - ) ->() -external int TranslationPerformForFile( - TranslationRef inTranslation, - ffi.Pointer inSourceFile, - ffi.Pointer inDestinationDirectory, - CFStringRef inDestinationName, - ffi.Pointer outTranslatedFile, -); - -@ffi.Native< - OSStatus Function(TranslationRef, CFURLRef, CFURLRef, ffi.Pointer) ->() -external int TranslationPerformForURL( - TranslationRef inTranslation, - CFURLRef inSourceURL, - CFURLRef inDestinationURL, - ffi.Pointer outTranslatedURL, -); - -@ffi.Native< - OSStatus Function( - ConstTextToUnicodeInfo, - ByteCount, - ConstLogicalAddress, - ByteCount, - ffi.Pointer, - ) ->() -external int TruncateForTextToUnicode( - ConstTextToUnicodeInfo iTextToUnicodeInfo, - int iSourceLen, - ConstLogicalAddress iSourceStr, - int iMaxLen, - ffi.Pointer oTruncatedLen, -); - -@ffi.Native< - OSStatus Function( - ConstUnicodeToTextInfo, - ByteCount, - ffi.Pointer, - OptionBits, - ByteCount, - ffi.Pointer, - ) ->() -external int TruncateForUnicodeToText( - ConstUnicodeToTextInfo iUnicodeToTextInfo, - int iSourceLen, - ffi.Pointer iSourceStr, - int iControlFlags, - int iMaxLen, - ffi.Pointer oTruncatedLen, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int U64Compare(int left, int right); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - UAZoomChangeFocusType, - ) ->() -external int UAZoomChangeFocus( - ffi.Pointer inRect, - ffi.Pointer inHighlightRect, - int inType, -); - -@ffi.Native() -external int UAZoomEnabled(); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ItemCount, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCCompareCollationKeys( - ffi.Pointer key1Ptr, - int key1Length, - ffi.Pointer key2Ptr, - int key2Length, - ffi.Pointer equivalent, - ffi.Pointer order, -); - -@ffi.Native< - OSStatus Function( - CollatorRef, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCCompareText( - CollatorRef collatorRef, - ffi.Pointer text1Ptr, - int text1Length, - ffi.Pointer text2Ptr, - int text2Length, - ffi.Pointer equivalent, - ffi.Pointer order, -); - -@ffi.Native< - OSStatus Function( - UCCollateOptions, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCCompareTextDefault( - int options, - ffi.Pointer text1Ptr, - int text1Length, - ffi.Pointer text2Ptr, - int text2Length, - ffi.Pointer equivalent, - ffi.Pointer order, -); - -@ffi.Native< - OSStatus Function( - UCCollateOptions, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCCompareTextNoLocale( - int options, - ffi.Pointer text1Ptr, - int text1Length, - ffi.Pointer text2Ptr, - int text2Length, - ffi.Pointer equivalent, - ffi.Pointer order, -); - -@ffi.Native)>() -external int UCConvertCFAbsoluteTimeToLongDateTime( - double iCFTime, - ffi.Pointer oLongDate, -); - -@ffi.Native)>() -external int UCConvertCFAbsoluteTimeToSeconds( - double iCFTime, - ffi.Pointer oSeconds, -); - -@ffi.Native)>() -external int UCConvertCFAbsoluteTimeToUTCDateTime( - double iCFTime, - ffi.Pointer oUTCDate, -); - -@ffi.Native)>() -external int UCConvertLongDateTimeToCFAbsoluteTime( - int iLongTime, - ffi.Pointer oCFTime, -); - -@ffi.Native)>() -external int UCConvertSecondsToCFAbsoluteTime( - int iSeconds, - ffi.Pointer oCFTime, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int UCConvertUTCDateTimeToCFAbsoluteTime( - ffi.Pointer iUTCDate, - ffi.Pointer oCFTime, -); - -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - UCCollateOptions, - ffi.Pointer, - ) ->() -external int UCCreateCollator( - LocaleRef locale, - int opVariant, - int options, - ffi.Pointer collatorRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - UCTextBreakType, - ffi.Pointer, - ) ->() -external int UCCreateTextBreakLocator( - LocaleRef locale, - int opVariant, - int breakTypes, - ffi.Pointer breakRef, -); - -@ffi.Native)>() -external int UCDisposeCollator(ffi.Pointer collatorRef); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int UCDisposeTextBreakLocator( - ffi.Pointer breakRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - TextBreakLocatorRef, - UCTextBreakType, - UCTextBreakOptions, - ffi.Pointer, - UniCharCount, - UniCharArrayOffset, - ffi.Pointer, - ) ->() -external int UCFindTextBreak( - TextBreakLocatorRef breakRef, - int breakType, - int options, - ffi.Pointer textPtr, - int textLength, - int startOffset, - ffi.Pointer breakOffset, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - UniCharCount, - UCCharPropertyType, - ffi.Pointer, - ) ->() -external int UCGetCharProperty( - ffi.Pointer charPtr, - int textLength, - int propType, - ffi.Pointer propValue, -); - -@ffi.Native< - OSStatus Function( - CollatorRef, - ffi.Pointer, - UniCharCount, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCGetCollationKey( - CollatorRef collatorRef, - ffi.Pointer textPtr, - int textLength, - int maxKeySize, - ffi.Pointer actualKeySize, - ffi.Pointer collationKey, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - UInt16, - UInt16, - UInt32, - UInt32, - OptionBits, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCKeyTranslate( - ffi.Pointer keyLayoutPtr, - int virtualKeyCode, - int keyAction, - int modifierKeyState, - int keyboardType, - int keyTranslateOptions, - ffi.Pointer deadKeyState, - int maxStringLength, - ffi.Pointer actualStringLength, - ffi.Pointer unicodeString, -); - -@ffi.Native< - OSStatus Function( - UCTypeSelectRef, - CFStringRef, - ffi.Double, - ffi.Pointer, - ) ->() -external int UCTypeSelectAddKeyToSelector( - UCTypeSelectRef inRef, - CFStringRef inText, - double inEventTime, - ffi.Pointer updateFlag, -); - -@ffi.Native< - OSStatus Function( - UCTypeSelectRef, - CFStringRef, - ffi.Pointer, - ) ->() -external int UCTypeSelectCompare( - UCTypeSelectRef ref, - CFStringRef inText, - ffi.Pointer result, -); - -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - UCCollateOptions, - ffi.Pointer, - ) ->() -external int UCTypeSelectCreateSelector( - LocaleRef locale, - int opVariant, - int options, - ffi.Pointer newSelector, -); - -@ffi.Native< - OSStatus Function( - UCTypeSelectRef, - UInt32, - ffi.Pointer, - ffi.Pointer, - IndexToUCStringUPP, - ffi.Pointer, - ) ->() -external int UCTypeSelectFindItem( - UCTypeSelectRef ref, - int listSize, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - IndexToUCStringUPP userUPP, - ffi.Pointer closestItem, -); - -@ffi.Native() -external int UCTypeSelectFlushSelectorData(UCTypeSelectRef ref); - -@ffi.Native)>() -external int UCTypeSelectReleaseSelector(ffi.Pointer ref); - -@ffi.Native< - OSStatus Function( - UCTypeSelectRef, - CFStringRef, - UCTSWalkDirection, - UInt32, - ffi.Pointer, - ffi.Pointer, - IndexToUCStringUPP, - ffi.Pointer, - ) ->() -external int UCTypeSelectWalkList( - UCTypeSelectRef ref, - CFStringRef currSelect, - int direction, - int listSize, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - IndexToUCStringUPP userUPP, - ffi.Pointer closestItem, -); - -@ffi.Native() -external int UCTypeSelectWouldResetBuffer( - UCTypeSelectRef inRef, - CFStringRef inText, - double inEventTime, -); - -@Deprecated('HFS type codes are obsolete.') -@ffi.Native() -external CFStringRef UTCreateStringForOSType(int inOSType); - -@Deprecated('HFS type codes are obsolete.') -@ffi.Native() -external int UTGetOSTypeFromString(CFStringRef inString); - -@Deprecated('Use -[UTType conformsToType:] instead.') -@ffi.Native() -external int UTTypeConformsTo(CFStringRef inUTI, CFStringRef inConformsToUTI); - -@Deprecated('Use the UTType class instead.') -@ffi.Native() -external CFArrayRef UTTypeCopyAllTagsWithClass( - CFStringRef inUTI, - CFStringRef inTagClass, -); - -@Deprecated('Use the UTType class instead.') -@ffi.Native() -external CFDictionaryRef UTTypeCopyDeclaration(CFStringRef inUTI); - -@Deprecated('Deprecated') -@ffi.Native() -external CFURLRef UTTypeCopyDeclaringBundleURL(CFStringRef inUTI); - -@Deprecated('Use UTType.localizedDescription instead.') -@ffi.Native() -external CFStringRef UTTypeCopyDescription(CFStringRef inUTI); - -@Deprecated('Use the UTType class instead.') -@ffi.Native() -external CFStringRef UTTypeCopyPreferredTagWithClass( - CFStringRef inUTI, - CFStringRef inTagClass, -); - -@Deprecated('Use the UTType class instead.') -@ffi.Native() -external CFArrayRef UTTypeCreateAllIdentifiersForTag( - CFStringRef inTagClass, - CFStringRef inTag, - CFStringRef inConformingToUTI, -); - -@Deprecated('Use the UTType class instead.') -@ffi.Native() -external CFStringRef UTTypeCreatePreferredIdentifierForTag( - CFStringRef inTagClass, - CFStringRef inTag, - CFStringRef inConformingToUTI, -); - -@Deprecated('Use -[UTType isEqual:] instead.') -@ffi.Native() -external int UTTypeEqual(CFStringRef inUTI1, CFStringRef inUTI2); - -@Deprecated('Use UTType.declared instead.') -@ffi.Native() -external int UTTypeIsDeclared(CFStringRef inUTI); - -@Deprecated('Use UTType.dynamic instead.') -@ffi.Native() -external int UTTypeIsDynamic(CFStringRef inUTI); - -@ffi.Array.multi([16]) -@ffi.Native>() -external final ffi.Pointer UUID_NULL; - -@Deprecated('Deprecated') -@ffi.Native() -external int UncaptureComponent(Component aComponent); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(Collection, CollectionFlattenUPP, ffi.Pointer) ->() -external int UnflattenCollection( - Collection c, - CollectionFlattenUPP flattenProc, - ffi.Pointer refCon, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int UnflattenCollectionFromHdl( - Collection aCollection, - Handle flattened, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int Unique1ID(int theType); - -@Deprecated('Deprecated') -@ffi.Native() -external int UniqueID(int theType); - -@Deprecated('Deprecated') -@ffi.Native() -external int UnregisterComponent(Component aComponent); - -@Deprecated('You do not need to unregister icons.') -@ffi.Native() -external int UnregisterIconRef(int creator, int iconType); - -@Deprecated('Deprecated') -@ffi.Native< - UnsignedFixed Function(UnsignedFixed, UnsignedFixed, UnsignedFixed) ->() -external int UnsignedFixedMulDiv(int value, int multiplier, int divisor); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime UpTime(); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int UpdateIconRef(IconRef theIconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external void UpdateResFile(int refNum); - -@Deprecated('No longer supported') -@ffi.Native() -external int UpdateSystemActivity(int activity); - -@ffi.Native< - OSStatus Function( - ScriptCode, - LangCode, - RegionCode, - ConstStr255Param, - ffi.Pointer, - ) ->() -external int UpgradeScriptInfoToTextEncoding( - int iTextScriptID, - int iTextLanguageID, - int iRegionID, - ConstStr255Param iTextFontname, - ffi.Pointer oEncoding, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int UseDictionary(SpeechChannel chan, Handle dictionary); - -@Deprecated('Deprecated') -@ffi.Native() -external void UseResFile(int refNum); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int UseSpeechDictionary( - SpeechChannel chan, - CFDictionaryRef speechDictionary, -); - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'WSGetCFTypeIDFromWSTypeID', -) -external int _WSGetCFTypeIDFromWSTypeID(int typeID); - -DartCFTypeID WSGetCFTypeIDFromWSTypeID(WSTypeID typeID) { - return _WSGetCFTypeIDFromWSTypeID(typeID.value); -} - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'WSGetWSTypeIDFromCFType', -) -external int _WSGetWSTypeIDFromCFType(CFTypeRef ref); - -WSTypeID WSGetWSTypeIDFromCFType(CFTypeRef ref) { - return WSTypeID.fromValue(_WSGetWSTypeIDFromCFType(ref)); -} - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - WSMethodInvocationRef, - CFStringRef, - CFStringRef, - WSMethodInvocationDeserializationProcPtr, - ffi.Pointer, - ) ->() -external void WSMethodInvocationAddDeserializationOverride( - WSMethodInvocationRef invocation, - CFStringRef typeNamespace, - CFStringRef typeName, - WSMethodInvocationDeserializationProcPtr deserializationProc, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - WSMethodInvocationRef, - CFTypeID, - WSMethodInvocationSerializationProcPtr, - ffi.Pointer, - ) ->() -external void WSMethodInvocationAddSerializationOverride( - WSMethodInvocationRef invocation, - int objType, - WSMethodInvocationSerializationProcPtr serializationProc, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDictionaryRef Function(WSMethodInvocationRef, ffi.Pointer) ->() -external CFDictionaryRef WSMethodInvocationCopyParameters( - WSMethodInvocationRef invocation, - ffi.Pointer parameterOrder, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFTypeRef WSMethodInvocationCopyProperty( - WSMethodInvocationRef invocation, - CFStringRef propertyName, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFDataRef WSMethodInvocationCopySerialization( - WSMethodInvocationRef invocation, -); - -@Deprecated('No longer supported') -@ffi.Native< - WSMethodInvocationRef Function(CFURLRef, CFStringRef, CFStringRef) ->() -external WSMethodInvocationRef WSMethodInvocationCreate( - CFURLRef url, - CFStringRef methodName, - CFStringRef protocol, -); - -@Deprecated('No longer supported') -@ffi.Native() -external WSMethodInvocationRef WSMethodInvocationCreateFromSerialization( - CFDataRef contract, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int WSMethodInvocationGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native() -external CFDictionaryRef WSMethodInvocationInvoke( - WSMethodInvocationRef invocation, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(WSMethodInvocationRef, CFRunLoopRef, CFStringRef) ->() -external void WSMethodInvocationScheduleWithRunLoop( - WSMethodInvocationRef invocation, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - WSMethodInvocationRef, - WSMethodInvocationCallBackProcPtr, - ffi.Pointer, - ) ->() -external void WSMethodInvocationSetCallBack( - WSMethodInvocationRef invocation, - WSMethodInvocationCallBackProcPtr clientCB, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(WSMethodInvocationRef, CFDictionaryRef, CFArrayRef) ->() -external void WSMethodInvocationSetParameters( - WSMethodInvocationRef invocation, - CFDictionaryRef parameters, - CFArrayRef parameterOrder, -); - -@Deprecated('No longer supported') -@ffi.Native() -external void WSMethodInvocationSetProperty( - WSMethodInvocationRef invocation, - CFStringRef propertyName, - CFTypeRef propertyValue, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(WSMethodInvocationRef, CFRunLoopRef, CFStringRef) ->() -external void WSMethodInvocationUnscheduleFromRunLoop( - WSMethodInvocationRef invocation, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int WSMethodResultIsFault(CFDictionaryRef methodResult); - -@Deprecated('No longer supported') -@ffi.Native< - CFDataRef Function(WSProtocolHandlerRef, CFDictionaryRef, CFDictionaryRef) ->() -external CFDataRef WSProtocolHandlerCopyFaultDocument( - WSProtocolHandlerRef ref, - CFDictionaryRef methodContext, - CFDictionaryRef faultDict, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFTypeRef WSProtocolHandlerCopyProperty( - WSProtocolHandlerRef ref, - CFStringRef propertyName, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDictionaryRef Function(WSProtocolHandlerRef, CFStringRef, CFDataRef) ->() -external CFDictionaryRef WSProtocolHandlerCopyReplyDictionary( - WSProtocolHandlerRef ref, - CFStringRef methodName, - CFDataRef data, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDataRef Function(WSProtocolHandlerRef, CFDictionaryRef, CFTypeRef) ->() -external CFDataRef WSProtocolHandlerCopyReplyDocument( - WSProtocolHandlerRef ref, - CFDictionaryRef methodContext, - CFTypeRef resultValue, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFDictionaryRef WSProtocolHandlerCopyRequestDictionary( - WSProtocolHandlerRef ref, - CFDataRef data, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDataRef Function( - WSProtocolHandlerRef, - CFStringRef, - CFDictionaryRef, - CFArrayRef, - CFDictionaryRef, - ) ->() -external CFDataRef WSProtocolHandlerCopyRequestDocument( - WSProtocolHandlerRef ref, - CFStringRef methodName, - CFDictionaryRef methodParams, - CFArrayRef methodParamOrder, - CFDictionaryRef methodExtras, -); - -@Deprecated('No longer supported') -@ffi.Native() -external WSProtocolHandlerRef WSProtocolHandlerCreate( - CFAllocatorRef allocator, - CFStringRef protocol, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int WSProtocolHandlerGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - WSProtocolHandlerRef, - CFStringRef, - CFStringRef, - WSProtocolHandlerDeserializationProcPtr, - ffi.Pointer, - ) ->() -external void WSProtocolHandlerSetDeserializationOverride( - WSProtocolHandlerRef protocol, - CFStringRef typeNamespace, - CFStringRef typeName, - WSProtocolHandlerDeserializationProcPtr deserializationProc, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native() -external void WSProtocolHandlerSetProperty( - WSProtocolHandlerRef ref, - CFStringRef propertyName, - CFTypeRef propertyValue, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - WSProtocolHandlerRef, - CFTypeID, - WSProtocolHandlerSerializationProcPtr, - ffi.Pointer, - ) ->() -external void WSProtocolHandlerSetSerializationOverride( - WSProtocolHandlerRef protocol, - int objType, - WSProtocolHandlerSerializationProcPtr serializationProc, - ffi.Pointer context, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int WakeUpProcess(ffi.Pointer PSN); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() -external ffi.Pointer WideAdd( - ffi.Pointer target, - ffi.Pointer source, -); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer, SInt32)>() -external ffi.Pointer WideBitShift(ffi.Pointer target, int shift); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Pointer)>() -external int WideCompare(ffi.Pointer target, ffi.Pointer source); - -@Deprecated('Deprecated') -@ffi.Native, SInt32, ffi.Pointer)>() -external int WideDivide( - ffi.Pointer dividend, - int divisor, - ffi.Pointer remainder$1, -); - -@Deprecated('Deprecated') -@ffi.Native Function(SInt32, SInt32, ffi.Pointer)>() -external ffi.Pointer WideMultiply( - int multiplicand, - int multiplier, - ffi.Pointer target, -); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer WideNegate(ffi.Pointer target); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer, SInt32)>() -external ffi.Pointer WideShift(ffi.Pointer target, int shift); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int WideSquareRoot(ffi.Pointer source); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() -external ffi.Pointer WideSubtract( - ffi.Pointer target, - ffi.Pointer source, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, SInt32, ffi.Pointer) ->() -external ffi.Pointer WideWideDivide( - ffi.Pointer dividend, - int divisor, - ffi.Pointer remainder$1, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(Handle, ffi.Long, ffi.Pointer, ffi.Long) ->() -external void WritePartialResource( - Handle theResource, - int offset, - ffi.Pointer buffer, - int count, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void WriteResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external int X2Fix(double x); - -@Deprecated('Deprecated') -@ffi.Native() -external int X2Frac(double x); - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_ALLOW_BATTERY; - -@ffi.Native(symbol: 'XPC_ACTIVITY_CHECK_IN') -external xpc_object_t _XPC_ACTIVITY_CHECK_IN; - -Dartxpc_object_t get XPC_ACTIVITY_CHECK_IN => objc.NSObject.fromPointer( - _XPC_ACTIVITY_CHECK_IN, - retain: true, - release: true, -); - -set XPC_ACTIVITY_CHECK_IN(Dartxpc_object_t value) { - objc.NSObject.fromPointer( - _XPC_ACTIVITY_CHECK_IN, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _XPC_ACTIVITY_CHECK_IN = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_DELAY; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_GRACE_PERIOD; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_INTERVAL; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_15_MIN; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_1_DAY; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_1_HOUR; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_1_MIN; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_30_MIN; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_4_HOURS; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_5_MIN; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_7_DAYS; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_8_HOURS; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_PREVENT_DEVICE_SLEEP; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_PRIORITY; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_PRIORITY_MAINTENANCE; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_PRIORITY_UTILITY; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_REPEATING; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_REQUIRE_BATTERY_LEVEL; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_REQUIRE_HDD_SPINNING; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_REQUIRE_SCREEN_SLEEP; - -@Deprecated('Deprecated') -@ffi.Native() -external int YieldToAnyThread(); - -@Deprecated('Deprecated') -@ffi.Native() -external int YieldToThread(int suggestedThread); - -@ffi.Native< - PMPrintSettings Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external PMPrintSettings _1uu024u_protocolTrampoline_11ylsyp( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _1uu024u_protocolTrampoline_123exxr( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) ->() -external bool _1uu024u_protocolTrampoline_12g52hw( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) ->() -external void _1uu024u_protocolTrampoline_132zq0k( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - ) ->() -external void _1uu024u_protocolTrampoline_14pv86t( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void _1uu024u_protocolTrampoline_15is1z3( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_166nalk( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) ->() -external void _1uu024u_protocolTrampoline_1axgza4( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ) ->() -external void _1uu024u_protocolTrampoline_1b0c39y( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ) ->() -external void _1uu024u_protocolTrampoline_1cgt9gb( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) ->() -external void _1uu024u_protocolTrampoline_1e0wztw( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - bool arg2, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) ->() -external void _1uu024u_protocolTrampoline_1fswoub( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _1uu024u_protocolTrampoline_1gdoaig( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external bool _1uu024u_protocolTrampoline_1gpo89w( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer> arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_1jnam6p( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - NSUInteger Function(ffi.Pointer, ffi.Pointer) ->() -external int _1uu024u_protocolTrampoline_1jqs8ts( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - PMPrintSession Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external PMPrintSession _1uu024u_protocolTrampoline_1k8r9t5( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->() -external void _1uu024u_protocolTrampoline_1kovpyp( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->() -external void _1uu024u_protocolTrampoline_1mrpyvj( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->() -external void _1uu024u_protocolTrampoline_1nr9pmw( - ffi.Pointer target, - ffi.Pointer arg0, - int arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSTextCheckingTypes, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_1r9jyb8( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_1rz9w3t( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _1uu024u_protocolTrampoline_1w5mp29( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_1y86ja3( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_1yjs6wb( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) ->() -external void _1uu024u_protocolTrampoline_24riuf( - ffi.Pointer target, - ffi.Pointer arg0, - bool arg1, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_36nsue( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_4m73qm( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_5rmak2( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_6qnldf( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_8odg2g( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_9dub82( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) ->() -external void _1uu024u_protocolTrampoline_9km3ll( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, -); - -@ffi.Native< - PMPageFormat Function(ffi.Pointer, ffi.Pointer) ->() -external PMPageFormat _1uu024u_protocolTrampoline_abnjt9( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_an4r6w( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_ekc08i( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _1uu024u_protocolTrampoline_g6y2su( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_hll3td( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_hyxwut( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - PMPrinter Function(ffi.Pointer, ffi.Pointer) ->() -external PMPrinter _1uu024u_protocolTrampoline_ik4urx( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_le6lv4( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external NSRange _1uu024u_protocolTrampoline_lggt7i( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_mrzooz( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_ndzfqt( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_osi9m3( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Short Function(ffi.Pointer, ffi.Pointer) ->() -external int _1uu024u_protocolTrampoline_rhnfn9( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) ->() -external NSRange _1uu024u_protocolTrampoline_uebh3t( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - bool arg5, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_vh5xcw( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_w57eou( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_xfiv91( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_ye2vt3( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native< - CGImageRef Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - CGFloat, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGImageRef _1uu024u_protocolTrampoline_yl33bh( - ffi.Pointer target, - ffi.Pointer arg0, - objc.CGSize arg1, - double arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_12exqd( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_130ym7a( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_132zq0k( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_13ecogf( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_13ytbkt( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_14pv86t( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_15is1z3( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_166nalk( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_17efpu7( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1agrddk( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1axgza4( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1b0c39y( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1cgt9gb( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1d1siln( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1e0wztw( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1fswoub( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1gdgpbj( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1gt4vek( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1jl1qga( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1k6sg8i( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1kovpyp( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1krhbbh( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1lkkdea( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1mrpyvj( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1nn5emo( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1nr9pmw( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1po7bn3( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1s4gila( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1u5s7gl( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1ua0j4l( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1v2rdu1( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1xaf9kl( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1y86ja3( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1yjs6wb( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_24riuf( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_29zf79( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_2ik0db( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_36nsue( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_4m73qm( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_5rmak2( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_6ngya9( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_6s6vc3( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_8odg2g( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_90wr7u( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_9dub82( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_9km3ll( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_9kuhjb( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_bls7f3( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_d96no7( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_ec9pb6( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_gz0078( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_h9i570( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_hf68d1( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_hll3td( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_igu5g9( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_kjz7zp( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_kuxxg7( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_l4qveu( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_le6lv4( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_omynm( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_q64d1( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_vh5xcw( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_w57eou( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_wv523k( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_xfiv91( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_ye2vt3( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_12exqd( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_130ym7a( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_132zq0k( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_13ecogf( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_13ytbkt( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_14pv86t( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_15is1z3( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_166nalk( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_17efpu7( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1agrddk( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1axgza4( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1b0c39y( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1cgt9gb( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1d1siln( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1e0wztw( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1fswoub( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1gdgpbj( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1gt4vek( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1jl1qga( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1k6sg8i( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1kovpyp( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1krhbbh( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1lkkdea( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1mrpyvj( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1nn5emo( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1nr9pmw( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1po7bn3( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1s4gila( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1u5s7gl( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1ua0j4l( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1v2rdu1( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1xaf9kl( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1y86ja3( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1yjs6wb( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_24riuf( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_29zf79( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_2ik0db( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_36nsue( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_4m73qm( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_5rmak2( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_6ngya9( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_6s6vc3( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_8odg2g( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_90wr7u( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_9dub82( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_9km3ll( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_9kuhjb( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_bls7f3( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_d96no7( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_ec9pb6( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_gz0078( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_h9i570( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_hf68d1( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_hll3td( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_igu5g9( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_kjz7zp( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_kuxxg7( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_l4qveu( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_le6lv4( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_omynm( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_q64d1( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_vh5xcw( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_w57eou( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_wv523k( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_xfiv91( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_ye2vt3( - int port, - ffi.Pointer context, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer _Block_copy(ffi.Pointer aBlock); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external void _Block_object_assign( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native, ffi.Int)>() -external void _Block_object_dispose(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external void _Block_release(ffi.Pointer aBlock); - -@ffi.Native>() -external ffi.Pointer<_RuneLocale> _CurrentRuneLocale; - -@ffi.Native<_RuneLocale>() -external _RuneLocale _DefaultRuneLocale; - -@ffi.Native() -external void _Exit(int arg0); - -@ffi.Native() -external final fenv_t _FE_DFL_DISABLE_DENORMS_ENV; - -@ffi.Native() -external final fenv_t _FE_DFL_ENV; - -@Deprecated('No longer useful (always true)') -@ffi.Native() -external int _MPIsFullyInitialized(); - -@Deprecated('Use libDispatch') -@ffi.Native< - Boolean Function(ffi.Pointer, UInt32, UInt32, UInt32, UInt32) ->() -external int _MPLibraryIsCompatible( - ffi.Pointer versionCString, - int major, - int minor, - int release, - int revision, -); - -@Deprecated('No longer useful') -@ffi.Native< - ffi.Void Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _MPLibraryVersion( - ffi.Pointer> versionCString, - ffi.Pointer major, - ffi.Pointer minor, - ffi.Pointer release, - ffi.Pointer revision, -); - -@ffi.Array.multi([32]) -@ffi.Native>>() -external ffi.Array> _NSConcreteGlobalBlock; - -@ffi.Array.multi([32]) -@ffi.Native>>() -external ffi.Array> _NSConcreteStackBlock; - -@ffi.Native() -external CFRange __CFRangeMake(int loc, int len); - -@ffi.Native)>() -external CFStringRef __CFStringMakeConstantString(ffi.Pointer cStr); - -@ffi.Native() -external CFDictionaryRef __MDItemCopyAttributesEllipsis1(MDItemRef item); - -@ffi.Native() -external int ___runetype(int arg0); - -@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() -external int ___tolower(int arg0); - -@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() -external int ___toupper(int arg0); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external void __assert_rtn( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native() -external double __cospi(double arg0); - -@ffi.Native() -external double __cospif(double arg0); - -@ffi.Native, ffi.Int)>() -external int __darwin_check_fd_set_overflow( - int arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native Function()>() -external ffi.Pointer __error(); - -@ffi.Native() -external double __exp10(double arg0); - -@ffi.Native() -external double __exp10f(double arg0); - -@ffi.Native() -external int __fpclassifyd(double arg0); - -@ffi.Native() -external int __fpclassifyf(double arg0); - -@ffi.Native() -external int __maskrune(int arg0, int arg1); - -@ffi.Native() -external int __math_errhandling(); - -@ffi.Native() -external int __mb_cur_max; - -@ffi.Native<__double2 Function(ffi.Double)>() -external __double2 __sincos_stret(double arg0); - -@ffi.Native<__float2 Function(ffi.Float)>() -external __float2 __sincosf_stret(double arg0); - -@ffi.Native<__double2 Function(ffi.Double)>() -external __double2 __sincospi_stret(double arg0); - -@ffi.Native<__float2 Function(ffi.Float)>() -external __float2 __sincospif_stret(double arg0); - -@ffi.Native() -external double __sinpi(double arg0); - -@ffi.Native() -external double __sinpif(double arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Size, - ffi.Pointer, - ) ->() -external int __snprintf_chk( - ffi.Pointer arg0, - int __maxlen, - int arg2, - int arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Size, - ffi.Pointer, - ) ->() -external int __sprintf_chk( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native)>() -external int __srget(ffi.Pointer arg0); - -@ffi.Native>() -external ffi.Pointer __stderrp; - -@ffi.Native>() -external ffi.Pointer __stdinp; - -@ffi.Native>() -external ffi.Pointer __stdoutp; - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) ->() -external int __svfscanf( - ffi.Pointer arg0, - ffi.Pointer arg1, - va_list arg2, -); - -@ffi.Native)>() -external int __swbuf(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external double __tanpi(double arg0); - -@ffi.Native() -external double __tanpif(double arg0); - -@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() -external int __tolower(int arg0); - -@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() -external int __toupper(int arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Size, - ffi.Pointer, - va_list, - ) ->() -external int __vsnprintf_chk( - ffi.Pointer arg0, - int __maxlen, - int arg2, - int arg3, - ffi.Pointer arg4, - va_list arg5, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Size, - ffi.Pointer, - va_list, - ) ->() -external int __vsprintf_chk( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - va_list arg4, -); - -@ffi.Native(symbol: '_dispatch_data_destructor_free') -external dispatch_block_t __dispatch_data_destructor_free; - -Dartdispatch_block_t get _dispatch_data_destructor_free => - ObjCBlock_ffiVoid.fromPointer( - __dispatch_data_destructor_free, - retain: true, - release: true, - ); - -set _dispatch_data_destructor_free(Dartdispatch_block_t value) { - ObjCBlock_ffiVoid.fromPointer( - __dispatch_data_destructor_free, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - __dispatch_data_destructor_free = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: '_dispatch_data_destructor_munmap') -external dispatch_block_t __dispatch_data_destructor_munmap; - -Dartdispatch_block_t get _dispatch_data_destructor_munmap => - ObjCBlock_ffiVoid.fromPointer( - __dispatch_data_destructor_munmap, - retain: true, - release: true, - ); - -set _dispatch_data_destructor_munmap(Dartdispatch_block_t value) { - ObjCBlock_ffiVoid.fromPointer( - __dispatch_data_destructor_munmap, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - __dispatch_data_destructor_munmap = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external dispatch_data_s _dispatch_data_empty; - -@ffi.Native() -external dispatch_queue_s _dispatch_main_q; - -@ffi.Native() -external dispatch_queue_attr_s _dispatch_queue_attr_concurrent; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_data_add; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_data_or; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_data_replace; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_mach_recv; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_mach_send; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_memorypressure; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_proc; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_read; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_signal; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_timer; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_vnode; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_write; - -@ffi.Native() -external void _exit(int arg0); - -@ffi.Native)>() -external int _host_page_size(int host, ffi.Pointer out_page_size); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_right_t, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_port_allocate_trap( - int target, - int right, - ffi.Pointer name, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_port_construct_trap( - int target, - ffi.Pointer options, - int context, - ffi.Pointer name, -); - -@ffi.Native() -external int _kernelrpc_mach_port_deallocate_trap(int target, int name); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_name_t, - mach_port_delta_t, - ffi.Uint64, - ) ->() -external int _kernelrpc_mach_port_destruct_trap( - int target, - int name, - int srdelta, - int guard, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) ->() -external int _kernelrpc_mach_port_extract_member_trap( - int target, - int name, - int pset, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_name_t, - mach_port_flavor_t, - mach_port_info_t, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_port_get_attributes_trap( - int target, - int name, - int flavor, - mach_port_info_t port_info_out, - ffi.Pointer port_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_name_t, - ffi.Uint64, - boolean_t, - ) ->() -external int _kernelrpc_mach_port_guard_trap( - int target, - int name, - int guard, - int strict, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) ->() -external int _kernelrpc_mach_port_insert_member_trap( - int target, - int name, - int pset, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_name_t, - mach_port_name_t, - mach_msg_type_name_t, - ) ->() -external int _kernelrpc_mach_port_insert_right_trap( - int target, - int name, - int poly, - int polyPoly, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_name_t, - mach_port_right_t, - mach_port_delta_t, - ) ->() -external int _kernelrpc_mach_port_mod_refs_trap( - int target, - int name, - int right, - int delta, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) ->() -external int _kernelrpc_mach_port_move_member_trap( - int target, - int member, - int after, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_msg_id_t, - mach_port_mscount_t, - mach_port_name_t, - mach_msg_type_name_t, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_port_request_notification_trap( - int task, - int name, - int msgid, - int sync$1, - int notify, - int notifyPoly, - ffi.Pointer previous, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_port_type_trap( - int task, - int name, - ffi.Pointer ptype, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, mach_port_name_t, ffi.Uint64) ->() -external int _kernelrpc_mach_port_unguard_trap(int target, int name, int guard); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Pointer, - mach_vm_size_t, - ffi.Int, - ) ->() -external int _kernelrpc_mach_vm_allocate_trap( - int target, - ffi.Pointer addr, - int size, - int flags, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, mach_vm_address_t, mach_vm_size_t) ->() -external int _kernelrpc_mach_vm_deallocate_trap( - int target, - int address, - int size, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Pointer, - mach_vm_size_t, - mach_vm_offset_t, - ffi.Int, - vm_prot_t, - ) ->() -external int _kernelrpc_mach_vm_map_trap( - int target, - ffi.Pointer address, - int size, - int mask, - int flags, - int cur_protection, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_vm_address_t, - mach_vm_size_t, - boolean_t, - vm_prot_t, - ) ->() -external int _kernelrpc_mach_vm_protect_trap( - int target, - int address, - int size, - int set_maximum, - int new_protection, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_vm_offset_t, - vm_purgable_t, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_vm_purgable_control_trap( - int target, - int address, - int control, - ffi.Pointer state, -); - -@ffi.Native, ffi.Int)>() -external void _longjmp(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int _setjmp(ffi.Pointer arg0); - -@ffi.Native<_xpc_bool_s>() -external final _xpc_bool_s _xpc_bool_false; - -@ffi.Native<_xpc_bool_s>() -external final _xpc_bool_s _xpc_bool_true; - -@ffi.Native<_xpc_dictionary_s>() -external final _xpc_dictionary_s _xpc_error_connection_interrupted; - -@ffi.Native<_xpc_dictionary_s>() -external final _xpc_dictionary_s _xpc_error_connection_invalid; - -@ffi.Native>() -external ffi.Pointer _xpc_error_key_description; - -@ffi.Native<_xpc_dictionary_s>() -external final _xpc_dictionary_s _xpc_error_peer_code_signing_requirement; - -@ffi.Native<_xpc_dictionary_s>() -external final _xpc_dictionary_s _xpc_error_termination_imminent; - -@ffi.Native>() -external ffi.Pointer _xpc_event_key_name; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_activity; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_array; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_bool; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_connection; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_data; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_date; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_dictionary; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_double; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_endpoint; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_error; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_fd; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_int64; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_null; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_rich_error; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_session; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_shmem; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_string; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_uint64; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_uuid; - -@ffi.Native)>() -external int a64l(ffi.Pointer arg0); - -@ffi.Native() -external void abort(); - -@ffi.Native() -external int abs(int arg0); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int accept( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native, ffi.Int)>() -external int access(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - uid_t, - ) ->() -external int accessx_np( - ffi.Pointer arg0, - int __sz, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native)>() -external int acct(ffi.Pointer arg0); - -@ffi.Native( - symbol: 'acl_add_flag_np', -) -external int _acl_add_flag_np(acl_flagset_t flagset_d, int flag); - -int acl_add_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { - return _acl_add_flag_np(flagset_d, flag.value); -} - -@ffi.Native( - symbol: 'acl_add_perm', -) -external int _acl_add_perm(acl_permset_t permset_d, int perm); - -int acl_add_perm(acl_permset_t permset_d, acl_perm_t perm) { - return _acl_add_perm(permset_d, perm.value); -} - -@ffi.Native)>() -external int acl_calc_mask(ffi.Pointer acl_p); - -@ffi.Native() -external int acl_clear_flags_np(acl_flagset_t flagset_d); - -@ffi.Native() -external int acl_clear_perms(acl_permset_t permset_d); - -@ffi.Native() -external int acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d); - -@ffi.Native, acl_t, ssize_t)>() -external int acl_copy_ext(ffi.Pointer buf_p, acl_t acl, int size); - -@ffi.Native, acl_t, ssize_t)>() -external int acl_copy_ext_native( - ffi.Pointer buf_p, - acl_t acl, - int size, -); - -@ffi.Native)>() -external acl_t acl_copy_int(ffi.Pointer buf_p); - -@ffi.Native)>() -external acl_t acl_copy_int_native(ffi.Pointer buf_p); - -@ffi.Native, ffi.Pointer)>() -external int acl_create_entry( - ffi.Pointer acl_p, - ffi.Pointer entry_p, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int acl_create_entry_np( - ffi.Pointer acl_p, - ffi.Pointer entry_p, - int entry_index, -); - -@ffi.Native)>() -external int acl_delete_def_file(ffi.Pointer path_p); - -@ffi.Native() -external int acl_delete_entry(acl_t acl, acl_entry_t entry_d); - -@ffi.Native( - symbol: 'acl_delete_flag_np', -) -external int _acl_delete_flag_np(acl_flagset_t flagset_d, int flag); - -int acl_delete_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { - return _acl_delete_flag_np(flagset_d, flag.value); -} - -@ffi.Native( - symbol: 'acl_delete_perm', -) -external int _acl_delete_perm(acl_permset_t permset_d, int perm); - -int acl_delete_perm(acl_permset_t permset_d, acl_perm_t perm) { - return _acl_delete_perm(permset_d, perm.value); -} - -@ffi.Native() -external acl_t acl_dup(acl_t acl); - -@ffi.Native)>() -external int acl_free(ffi.Pointer obj_p); - -@ffi.Native)>() -external acl_t acl_from_text(ffi.Pointer buf_p); - -@ffi.Native)>() -external int acl_get_entry( - acl_t acl, - int entry_id, - ffi.Pointer entry_p, -); - -@ffi.Native() -external acl_t acl_get_fd(int fd); - -@ffi.Native(symbol: 'acl_get_fd_np') -external acl_t _acl_get_fd_np(int fd, int type); - -acl_t acl_get_fd_np(int fd, acl_type_t type) { - return _acl_get_fd_np(fd, type.value); -} - -@ffi.Native, ffi.UnsignedInt)>( - symbol: 'acl_get_file', -) -external acl_t _acl_get_file(ffi.Pointer path_p, int type); - -acl_t acl_get_file(ffi.Pointer path_p, acl_type_t type) { - return _acl_get_file(path_p, type.value); -} - -@ffi.Native( - symbol: 'acl_get_flag_np', -) -external int _acl_get_flag_np(acl_flagset_t flagset_d, int flag); - -int acl_get_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { - return _acl_get_flag_np(flagset_d, flag.value); -} - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int acl_get_flagset_np( - ffi.Pointer obj_p, - ffi.Pointer flagset_p, -); - -@ffi.Native, ffi.UnsignedInt)>( - symbol: 'acl_get_link_np', -) -external acl_t _acl_get_link_np(ffi.Pointer path_p, int type); - -acl_t acl_get_link_np(ffi.Pointer path_p, acl_type_t type) { - return _acl_get_link_np(path_p, type.value); -} - -@ffi.Native( - symbol: 'acl_get_perm_np', -) -external int _acl_get_perm_np(acl_permset_t permset_d, int perm); - -int acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm) { - return _acl_get_perm_np(permset_d, perm.value); -} - -@ffi.Native)>() -external int acl_get_permset( - acl_entry_t entry_d, - ffi.Pointer permset_p, -); - -@ffi.Native)>() -external int acl_get_permset_mask_np( - acl_entry_t entry_d, - ffi.Pointer mask_p, -); - -@ffi.Native Function(acl_entry_t)>() -external ffi.Pointer acl_get_qualifier(acl_entry_t entry_d); - -@ffi.Native)>() -external int acl_get_tag_type( - acl_entry_t entry_d, - ffi.Pointer tag_type_p, -); - -@ffi.Native() -external acl_t acl_init(int count); - -@ffi.Native)>() -external int acl_maximal_permset_mask_np( - ffi.Pointer mask_p, -); - -@ffi.Native() -external int acl_set_fd(int fd, acl_t acl); - -@ffi.Native( - symbol: 'acl_set_fd_np', -) -external int _acl_set_fd_np(int fd, acl_t acl, int acl_type); - -int acl_set_fd_np(int fd, acl_t acl, acl_type_t acl_type) { - return _acl_set_fd_np(fd, acl, acl_type.value); -} - -@ffi.Native, ffi.UnsignedInt, acl_t)>( - symbol: 'acl_set_file', -) -external int _acl_set_file(ffi.Pointer path_p, int type, acl_t acl); - -int acl_set_file(ffi.Pointer path_p, acl_type_t type, acl_t acl) { - return _acl_set_file(path_p, type.value, acl); -} - -@ffi.Native, acl_flagset_t)>() -external int acl_set_flagset_np( - ffi.Pointer obj_p, - acl_flagset_t flagset_d, -); - -@ffi.Native, ffi.UnsignedInt, acl_t)>( - symbol: 'acl_set_link_np', -) -external int _acl_set_link_np( - ffi.Pointer path_p, - int type, - acl_t acl, -); - -int acl_set_link_np(ffi.Pointer path_p, acl_type_t type, acl_t acl) { - return _acl_set_link_np(path_p, type.value, acl); -} - -@ffi.Native() -external int acl_set_permset(acl_entry_t entry_d, acl_permset_t permset_d); - -@ffi.Native() -external int acl_set_permset_mask_np(acl_entry_t entry_d, int mask); - -@ffi.Native)>() -external int acl_set_qualifier( - acl_entry_t entry_d, - ffi.Pointer tag_qualifier_p, -); - -@ffi.Native( - symbol: 'acl_set_tag_type', -) -external int _acl_set_tag_type(acl_entry_t entry_d, int tag_type); - -int acl_set_tag_type(acl_entry_t entry_d, acl_tag_t tag_type) { - return _acl_set_tag_type(entry_d, tag_type.value); -} - -@ffi.Native() -external int acl_size(acl_t acl); - -@ffi.Native Function(acl_t, ffi.Pointer)>() -external ffi.Pointer acl_to_text( - acl_t acl, - ffi.Pointer len_p, -); - -@ffi.Native() -external int acl_valid(acl_t acl); - -@ffi.Native( - symbol: 'acl_valid_fd_np', -) -external int _acl_valid_fd_np(int fd, int type, acl_t acl); - -int acl_valid_fd_np(int fd, acl_type_t type, acl_t acl) { - return _acl_valid_fd_np(fd, type.value, acl); -} - -@ffi.Native, ffi.UnsignedInt, acl_t)>( - symbol: 'acl_valid_file_np', -) -external int _acl_valid_file_np( - ffi.Pointer path, - int type, - acl_t acl, -); - -int acl_valid_file_np(ffi.Pointer path, acl_type_t type, acl_t acl) { - return _acl_valid_file_np(path, type.value, acl); -} - -@ffi.Native, ffi.UnsignedInt, acl_t)>( - symbol: 'acl_valid_link_np', -) -external int _acl_valid_link_np( - ffi.Pointer path, - int type, - acl_t acl, -); - -int acl_valid_link_np(ffi.Pointer path, acl_type_t type, acl_t acl) { - return _acl_valid_link_np(path, type.value, acl); -} - -@ffi.Native() -external double acos(double arg0); - -@ffi.Native() -external double acosf(double arg0); - -@ffi.Native() -external double acosh(double arg0); - -@ffi.Native() -external double acoshf(double arg0); - -@ffi.Native< - kern_return_t Function( - thread_read_t, - ffi.Int, - thread_state_t, - ffi.Pointer, - ) ->() -external int act_get_state( - int target_act, - int flavor, - thread_state_t old_state, - ffi.Pointer old_stateCnt, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - ffi.Int, - thread_state_t, - mach_msg_type_number_t, - ) ->() -external int act_set_state( - int target_act, - int flavor, - thread_state_t new_state, - int new_stateCnt, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.UnsignedLong, - ffi.UnsignedInt, - ) ->() -external int add_profil( - ffi.Pointer arg0, - int __bufsiz, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer addr2ascii( - int arg0, - ffi.Pointer arg1, - int __size, - ffi.Pointer arg3, -); - -@ffi.Native, ffi.Pointer)>() -external int adjtime(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external int alarm(int arg0); - -@ffi.Native Function(ffi.Size, ffi.Size)>() -external ffi.Pointer aligned_alloc(int __alignment, int __size); - -@ffi.Native Function(ffi.Size)>() -external ffi.Pointer alloca(int __size); - -@Deprecated('Deprecated') -@ffi.Native() -external double annuity(double rate, double periods); - -@ffi.Native() -external int arc4random(); - -@Deprecated('use arc4random_stir') -@ffi.Native, ffi.Int)>() -external void arc4random_addrandom( - ffi.Pointer arg0, - int __datlen, -); - -@ffi.Native, ffi.Size)>() -external void arc4random_buf(ffi.Pointer __buf, int __nbytes); - -@ffi.Native() -external void arc4random_stir(); - -@ffi.Native() -external int arc4random_uniform(int __upper_bound); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int ascii2addr( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer asctime(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer asctime_r( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external double asin(double arg0); - -@ffi.Native() -external double asinf(double arg0); - -@ffi.Native() -external double asinh(double arg0); - -@ffi.Native() -external double asinhf(double arg0); - -@ffi.Native< - ffi.Int Function(ffi.Pointer>, ffi.Pointer) ->() -external int asprintf( - ffi.Pointer> arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer>) ->() -external int at_quick_exit( - ffi.Pointer> arg0, -); - -@ffi.Native() -external double atan(double arg0); - -@ffi.Native() -external double atan2(double arg0, double arg1); - -@ffi.Native() -external double atan2f(double arg0, double arg1); - -@ffi.Native() -external double atanf(double arg0); - -@ffi.Native() -external double atanh(double arg0); - -@ffi.Native() -external double atanhf(double arg0); - -@ffi.Native< - ffi.Int Function(ffi.Pointer>) ->() -external int atexit(ffi.Pointer> arg0); - -@ffi.Native)>( - symbol: 'atexit_b', -) -external int _atexit_b(ffi.Pointer arg0); - -int atexit_b(objc.ObjCBlock arg0) { - final _$$ref = arg0.ref; - return _atexit_b(_$$ref.pointer); -} - -@ffi.Native)>() -external double atof(ffi.Pointer arg0); - -@ffi.Native)>() -external int atoi(ffi.Pointer arg0); - -@ffi.Native)>() -external int atol(ffi.Pointer arg0); - -@ffi.Native)>() -external int atoll(ffi.Pointer arg0); - -@Deprecated('audit is deprecated') -@ffi.Native, ffi.Int)>() -external int audit(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int audit_session_join(int port); - -@ffi.Native)>() -external int audit_session_port( - int asid, - ffi.Pointer portname, -); - -@ffi.Native() -external int audit_session_self(); - -@Deprecated('audit is deprecated') -@ffi.Native)>() -external int auditctl(ffi.Pointer arg0); - -@Deprecated('audit is deprecated') -@ffi.Native, ffi.Int)>() -external int auditon(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int bcmp( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external void bcopy( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, -); - -@ffi.Native, socklen_t)>() -external int bind(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native)>() -external int bindresvport(int arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external int bindresvport_sa(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external int bootstrap_port; - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer brk(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer> Function( - ffi.Int, - ffi.Pointer>, - ) ->() -external ffi.Pointer> bsd_signal( - int arg0, - ffi.Pointer> arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >, - ) ->() -external ffi.Pointer bsearch( - ffi.Pointer __key, - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - __compar, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'bsearch_b') -external ffi.Pointer _bsearch_b( - ffi.Pointer __key, - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer __compar, -); - -ffi.Pointer bsearch_b( - ffi.Pointer __key, - ffi.Pointer __base, - int __nel, - int __width, - objc.ObjCBlock, ffi.Pointer)> - __compar, -) { - final _$$ref = __compar.ref; - return _bsearch_b(__key, __base, __nel, __width, _$$ref.pointer); -} - -@ffi.Native, ffi.Size)>() -external void bzero(ffi.Pointer arg0, int __n); - -@ffi.Native Function(ffi.Size, ffi.Size)>() -external ffi.Pointer calloc(int __count, int __size); - -@ffi.Native() -external double cbrt(double arg0); - -@ffi.Native() -external double cbrtf(double arg0); - -@ffi.Native() -external double ceil(double arg0); - -@ffi.Native() -external double ceilf(double arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer cgetcap( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native() -external int cgetclose(); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int cgetent( - ffi.Pointer> arg0, - ffi.Pointer> arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int cgetfirst( - ffi.Pointer> arg0, - ffi.Pointer> arg1, -); - -@ffi.Native, ffi.Pointer)>() -external int cgetmatch(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int cgetnext( - ffi.Pointer> arg0, - ffi.Pointer> arg1, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cgetnum( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native)>() -external int cgetset(ffi.Pointer arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int cgetstr( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int cgetustr( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, -); - -@ffi.Native)>() -external int chdir(ffi.Pointer arg0); - -@ffi.Native, uid_t, gid_t)>() -external int chown(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native)>() -external int chroot(ffi.Pointer arg0); - -@ffi.Native)>() -external void clearerr(ffi.Pointer arg0); - -@ffi.Native() -external int clock(); - -@ffi.Native)>() -external int clock_get_res(int arg0, ffi.Pointer arg1); - -@ffi.Native)>( - symbol: 'clock_getres', -) -external int _clock_getres(int __clock_id, ffi.Pointer __res); - -int clock_getres(clockid_t __clock_id, ffi.Pointer __res) { - return _clock_getres(__clock_id.value, __res); -} - -@ffi.Native)>( - symbol: 'clock_gettime', -) -external int _clock_gettime(int __clock_id, ffi.Pointer __tp); - -int clock_gettime(clockid_t __clock_id, ffi.Pointer __tp) { - return _clock_gettime(__clock_id.value, __tp); -} - -@ffi.Native<__uint64_t Function(ffi.UnsignedInt)>( - symbol: 'clock_gettime_nsec_np', -) -external int _clock_gettime_nsec_np(int __clock_id); - -Dart__uint64_t clock_gettime_nsec_np(clockid_t __clock_id) { - return _clock_gettime_nsec_np(__clock_id.value); -} - -@ffi.Native< - kern_return_t Function( - clock_ctrl_t, - clock_flavor_t, - clock_attr_t, - mach_msg_type_number_t, - ) ->() -external int clock_set_attributes( - int clock_ctrl, - int flavor, - clock_attr_t clock_attr, - int clock_attrCnt, -); - -@ffi.Native() -external int clock_set_res(int arg0, int arg1); - -@ffi.Native() -external int clock_set_time(int clock_ctrl, mach_timespec_t new_time); - -@ffi.Native)>( - symbol: 'clock_settime', -) -external int _clock_settime(int __clock_id, ffi.Pointer __tp); - -int clock_settime(clockid_t __clock_id, ffi.Pointer __tp) { - return _clock_settime(__clock_id.value, __tp); -} - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Int, - mach_timespec_t, - ffi.Pointer, - ) ->() -external int clock_sleep( - int arg0, - int arg1, - mach_timespec_t arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - sleep_type_t, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->() -external int clock_sleep_trap( - int clock_name, - int sleep_type, - int sleep_sec, - int sleep_nsec, - ffi.Pointer wakeup_time, -); - -@ffi.Native() -external int close(int arg0); - -@Deprecated('Deprecated') -@ffi.Native() -external double compound(double rate, double periods); - -@ffi.Native, ffi.Size)>() -external int confstr(int arg0, ffi.Pointer arg1, int __len); - -@ffi.Native, socklen_t)>() -external int connect(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - sae_associd_t, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int connectx( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ffi.Pointer arg4, - int arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, -); - -@ffi.Native() -external double copysign(double arg0, double arg1); - -@ffi.Native() -external double copysignf(double arg0, double arg1); - -@ffi.Native() -external double cos(double arg0); - -@ffi.Native() -external double cosf(double arg0); - -@ffi.Native() -external double cosh(double arg0); - -@ffi.Native() -external double coshf(double arg0); - -@ffi.Native, mode_t)>() -external int creat(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer crypt( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native Function(CSSM_ALGORITHMS)>() -external ffi.Pointer cssmAlgToOid(int algId); - -@ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) ->() -external bool cssmOidToAlg( - ffi.Pointer oid, - ffi.Pointer alg, -); - -@ffi.Native, CSSM_RETURN)>() -external void cssmPerror(ffi.Pointer how, int error); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ctermid(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ctermid_r(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ctime(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer ctime_r( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsAddDest( - ffi.Pointer name, - ffi.Pointer instance, - int num_dests, - ffi.Pointer> dests, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsAddDestMediaOptions( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - int flags, - ffi.Pointer size, - int num_options, - ffi.Pointer> options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsAddIntegerOption( - ffi.Pointer name, - int value, - int num_options, - ffi.Pointer> options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsAddOption( - ffi.Pointer name, - ffi.Pointer value, - int num_options, - ffi.Pointer> options, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int cupsArrayAdd(ffi.Pointer a, ffi.Pointer e); - -@ffi.Native)>() -external void cupsArrayClear(ffi.Pointer a); - -@ffi.Native)>() -external int cupsArrayCount(ffi.Pointer a); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayCurrent(ffi.Pointer a); - -@ffi.Native)>() -external void cupsArrayDelete(ffi.Pointer a); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayDup(ffi.Pointer a); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsArrayFind( - ffi.Pointer a, - ffi.Pointer e, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayFirst(ffi.Pointer a); - -@ffi.Native)>() -external int cupsArrayGetIndex(ffi.Pointer a); - -@ffi.Native)>() -external int cupsArrayGetInsert(ffi.Pointer a); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int) ->() -external ffi.Pointer cupsArrayIndex( - ffi.Pointer a, - int n, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int cupsArrayInsert( - ffi.Pointer a, - ffi.Pointer e, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayLast(ffi.Pointer a); - -@ffi.Native< - ffi.Pointer Function(cups_array_func_t, ffi.Pointer) ->() -external ffi.Pointer cupsArrayNew( - cups_array_func_t f, - ffi.Pointer d, -); - -@ffi.Native< - ffi.Pointer Function( - cups_array_func_t, - ffi.Pointer, - cups_ahash_func_t, - ffi.Int, - ) ->() -external ffi.Pointer cupsArrayNew2( - cups_array_func_t f, - ffi.Pointer d, - cups_ahash_func_t h, - int hsize, -); - -@ffi.Native< - ffi.Pointer Function( - cups_array_func_t, - ffi.Pointer, - cups_ahash_func_t, - ffi.Int, - cups_acopy_func_t, - cups_afree_func_t, - ) ->() -external ffi.Pointer cupsArrayNew3( - cups_array_func_t f, - ffi.Pointer d, - cups_ahash_func_t h, - int hsize, - cups_acopy_func_t cf, - cups_afree_func_t ff, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayNext(ffi.Pointer a); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayPrev(ffi.Pointer a); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int cupsArrayRemove( - ffi.Pointer a, - ffi.Pointer e, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayRestore(ffi.Pointer a); - -@ffi.Native)>() -external int cupsArraySave(ffi.Pointer a); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayUserData(ffi.Pointer a); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->(symbol: 'cupsCancelDestJob') -external int _cupsCancelDestJob( - ffi.Pointer http, - ffi.Pointer dest, - int job_id, -); - -ipp_status_e cupsCancelDestJob( - ffi.Pointer http, - ffi.Pointer dest, - int job_id, -) { - return ipp_status_e.fromValue(_cupsCancelDestJob(http, dest, job_id)); -} - -@ffi.Native, ffi.Int)>() -external int cupsCancelJob(ffi.Pointer name, int job_id); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int) ->(symbol: 'cupsCancelJob2') -external int _cupsCancelJob2( - ffi.Pointer http, - ffi.Pointer name, - int job_id, - int purge, -); - -ipp_status_e cupsCancelJob2( - ffi.Pointer http, - ffi.Pointer name, - int job_id, - int purge, -) { - return ipp_status_e.fromValue(_cupsCancelJob2(http, name, job_id, purge)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsCheckDestSupported( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - ffi.Pointer option, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'cupsCloseDestJob') -external int _cupsCloseDestJob( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int job_id, -); - -ipp_status_e cupsCloseDestJob( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int job_id, -) { - return ipp_status_e.fromValue(_cupsCloseDestJob(http, dest, info, job_id)); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - cups_dest_cb_t, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsConnectDest( - ffi.Pointer dest, - int flags, - int msec, - ffi.Pointer cancel, - ffi.Pointer resource, - int resourcesize, - cups_dest_cb_t cb, - ffi.Pointer user_data, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - cups_dest_block_t, - ) ->(symbol: 'cupsConnectDestBlock') -external ffi.Pointer _cupsConnectDestBlock( - ffi.Pointer dest, - int flags, - int msec, - ffi.Pointer cancel, - ffi.Pointer resource, - int resourcesize, - cups_dest_block_t block, -); - -ffi.Pointer cupsConnectDestBlock( - ffi.Pointer dest, - int flags, - int msec, - ffi.Pointer cancel, - ffi.Pointer resource, - int resourcesize, - Dartcups_dest_block_t block, -) { - final _$$ref = block.ref; - return _cupsConnectDestBlock( - dest, - flags, - msec, - cancel, - resource, - resourcesize, - _$$ref.pointer, - ); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsCopyDest( - ffi.Pointer dest, - int num_dests, - ffi.Pointer> dests, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int cupsCopyDestConflicts( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int num_options, - ffi.Pointer options, - ffi.Pointer new_option, - ffi.Pointer new_value, - ffi.Pointer num_conflicts, - ffi.Pointer> conflicts, - ffi.Pointer num_resolved, - ffi.Pointer> resolved, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsCopyDestInfo( - ffi.Pointer http, - ffi.Pointer dest, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'cupsCreateDestJob') -external int _cupsCreateDestJob( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - ffi.Pointer job_id, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -ipp_status_e cupsCreateDestJob( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - ffi.Pointer job_id, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -) { - return ipp_status_e.fromValue( - _cupsCreateDestJob(http, dest, info, job_id, title, num_options, options), - ); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int cupsCreateJob( - ffi.Pointer http, - ffi.Pointer name, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsDoAuthentication( - ffi.Pointer http, - ffi.Pointer method, - ffi.Pointer resource, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsDoFileRequest( - ffi.Pointer http, - ffi.Pointer request, - ffi.Pointer resource, - ffi.Pointer filename, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ) ->() -external ffi.Pointer cupsDoIORequest( - ffi.Pointer http, - ffi.Pointer request, - ffi.Pointer resource, - int infile, - int outfile, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsDoRequest( - ffi.Pointer http, - ffi.Pointer request, - ffi.Pointer resource, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'cupsEncodeOption') -external ffi.Pointer _cupsEncodeOption( - ffi.Pointer ipp, - int group_tag, - ffi.Pointer name, - ffi.Pointer value, -); - -ffi.Pointer cupsEncodeOption( - ffi.Pointer ipp, - ipp_tag_e group_tag, - ffi.Pointer name, - ffi.Pointer value, -) { - return _cupsEncodeOption(ipp, group_tag.value, name, value); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external void cupsEncodeOptions( - ffi.Pointer ipp, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'cupsEncodeOptions2') -external void _cupsEncodeOptions2( - ffi.Pointer ipp, - int num_options, - ffi.Pointer options, - int group_tag, -); - -void cupsEncodeOptions2( - ffi.Pointer ipp, - int num_options, - ffi.Pointer options, - ipp_tag_e group_tag, -) { - return _cupsEncodeOptions2(ipp, num_options, options, group_tag.value); -} - -@ffi.Native(symbol: 'cupsEncryption') -external int _cupsEncryption(); - -http_encryption_e cupsEncryption() { - return http_encryption_e.fromValue(_cupsEncryption()); -} - -@ffi.Native< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Int, - ffi.Pointer, - cups_ptype_t, - cups_ptype_t, - cups_dest_cb_t, - ffi.Pointer, - ) ->() -external int cupsEnumDests( - int flags, - int msec, - ffi.Pointer cancel, - int type, - int mask, - cups_dest_cb_t cb, - ffi.Pointer user_data, -); - -@ffi.Native< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Int, - ffi.Pointer, - cups_ptype_t, - cups_ptype_t, - cups_dest_block_t, - ) ->(symbol: 'cupsEnumDestsBlock') -external int _cupsEnumDestsBlock( - int flags, - int msec, - ffi.Pointer cancel, - int type, - int mask, - cups_dest_block_t block, -); - -int cupsEnumDestsBlock( - int flags, - int msec, - ffi.Pointer cancel, - Dartcups_ptype_t type, - Dartcups_ptype_t mask, - Dartcups_dest_block_t block, -) { - final _$$ref = block.ref; - return _cupsEnumDestsBlock(flags, msec, cancel, type, mask, _$$ref.pointer); -} - -@ffi.Native)>() -external int cupsFileClose(ffi.Pointer fp); - -@ffi.Native)>() -external int cupsFileCompression(ffi.Pointer fp); - -@ffi.Native)>() -external int cupsFileEOF(ffi.Pointer fp); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer cupsFileFind( - ffi.Pointer filename, - ffi.Pointer path, - int executable, - ffi.Pointer buffer, - int bufsize, -); - -@ffi.Native)>() -external int cupsFileFlush(ffi.Pointer fp); - -@ffi.Native)>() -external int cupsFileGetChar(ffi.Pointer fp); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsFileGetConf( - ffi.Pointer fp, - ffi.Pointer buf, - int buflen, - ffi.Pointer> value, - ffi.Pointer linenum, -); - -@ffi.Native< - ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int cupsFileGetLine( - ffi.Pointer fp, - ffi.Pointer buf, - int buflen, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer cupsFileGets( - ffi.Pointer fp, - ffi.Pointer buf, - int buflen, -); - -@ffi.Native, ffi.Int)>() -external int cupsFileLock(ffi.Pointer fp, int block); - -@ffi.Native)>() -external int cupsFileNumber(ffi.Pointer fp); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsFileOpen( - ffi.Pointer filename, - ffi.Pointer mode, -); - -@ffi.Native Function(ffi.Int, ffi.Pointer)>() -external ffi.Pointer cupsFileOpenFd( - int fd, - ffi.Pointer mode, -); - -@ffi.Native)>() -external int cupsFilePeekChar(ffi.Pointer fp); - -@ffi.Native, ffi.Pointer)>() -external int cupsFilePrintf( - ffi.Pointer fp, - ffi.Pointer format, -); - -@ffi.Native, ffi.Int)>() -external int cupsFilePutChar(ffi.Pointer fp, int c); - -@ffi.Native< - ssize_t Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsFilePutConf( - ffi.Pointer fp, - ffi.Pointer directive, - ffi.Pointer value, -); - -@ffi.Native, ffi.Pointer)>() -external int cupsFilePuts(ffi.Pointer fp, ffi.Pointer s); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int cupsFileRead( - ffi.Pointer fp, - ffi.Pointer buf, - int bytes, -); - -@ffi.Native)>() -external int cupsFileRewind(ffi.Pointer fp); - -@ffi.Native, off_t)>() -external int cupsFileSeek(ffi.Pointer fp, int pos); - -@ffi.Native Function()>() -external ffi.Pointer cupsFileStderr(); - -@ffi.Native Function()>() -external ffi.Pointer cupsFileStdin(); - -@ffi.Native Function()>() -external ffi.Pointer cupsFileStdout(); - -@ffi.Native)>() -external int cupsFileTell(ffi.Pointer fp); - -@ffi.Native)>() -external int cupsFileUnlock(ffi.Pointer fp); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int cupsFileWrite( - ffi.Pointer fp, - ffi.Pointer buf, - int bytes, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsFindDestDefault( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - ffi.Pointer option, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsFindDestReady( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - ffi.Pointer option, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsFindDestSupported( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - ffi.Pointer option, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'cupsFinishDestDocument') -external int _cupsFinishDestDocument( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, -); - -ipp_status_e cupsFinishDestDocument( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, -) { - return ipp_status_e.fromValue(_cupsFinishDestDocument(http, dest, info)); -} - -@ffi.Native, ffi.Pointer)>( - symbol: 'cupsFinishDocument', -) -external int _cupsFinishDocument( - ffi.Pointer http, - ffi.Pointer name, -); - -ipp_status_e cupsFinishDocument( - ffi.Pointer http, - ffi.Pointer name, -) { - return ipp_status_e.fromValue(_cupsFinishDocument(http, name)); -} - -@ffi.Native)>() -external void cupsFreeDestInfo(ffi.Pointer dinfo); - -@ffi.Native)>() -external void cupsFreeDests(int num_dests, ffi.Pointer dests); - -@ffi.Native)>() -external void cupsFreeJobs(int num_jobs, ffi.Pointer jobs); - -@ffi.Native)>() -external void cupsFreeOptions( - int num_options, - ffi.Pointer options, -); - -@Deprecated('Use cupsEnumDests instead.') -@ffi.Native>>)>() -external int cupsGetClasses( - ffi.Pointer>> classes, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int cupsGetConflicts( - ffi.Pointer ppd, - ffi.Pointer option, - ffi.Pointer choice, - ffi.Pointer> options, -); - -@ffi.Native Function()>() -external ffi.Pointer cupsGetDefault(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsGetDefault2(ffi.Pointer http); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsGetDest( - ffi.Pointer name, - ffi.Pointer instance, - int num_dests, - ffi.Pointer dests, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external int cupsGetDestMediaByIndex( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - int n, - int flags, - ffi.Pointer size, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external int cupsGetDestMediaByName( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - ffi.Pointer media, - int flags, - ffi.Pointer size, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external int cupsGetDestMediaBySize( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - int width, - int length, - int flags, - ffi.Pointer size, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int cupsGetDestMediaCount( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - int flags, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external int cupsGetDestMediaDefault( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - int flags, - ffi.Pointer size, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsGetDestWithURI( - ffi.Pointer name, - ffi.Pointer uri, -); - -@ffi.Native>)>() -external int cupsGetDests(ffi.Pointer> dests); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer>) ->() -external int cupsGetDests2( - ffi.Pointer http, - ffi.Pointer> dests, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->(symbol: 'cupsGetFd') -external int _cupsGetFd( - ffi.Pointer http, - ffi.Pointer resource, - int fd, -); - -http_status_e cupsGetFd( - ffi.Pointer http, - ffi.Pointer resource, - int fd, -) { - return http_status_e.fromValue(_cupsGetFd(http, resource, fd)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'cupsGetFile') -external int _cupsGetFile( - ffi.Pointer http, - ffi.Pointer resource, - ffi.Pointer filename, -); - -http_status_e cupsGetFile( - ffi.Pointer http, - ffi.Pointer resource, - ffi.Pointer filename, -) { - return http_status_e.fromValue(_cupsGetFile(http, resource, filename)); -} - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int cupsGetIntegerOption( - ffi.Pointer name, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Int, - ) ->() -external int cupsGetJobs( - ffi.Pointer> jobs, - ffi.Pointer name, - int myjobs, - int whichjobs, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Int, - ) ->() -external int cupsGetJobs2( - ffi.Pointer http, - ffi.Pointer> jobs, - ffi.Pointer name, - int myjobs, - int whichjobs, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsGetNamedDest( - ffi.Pointer http, - ffi.Pointer name, - ffi.Pointer instance, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsGetOption( - ffi.Pointer name, - int num_options, - ffi.Pointer options, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsGetPPD(ffi.Pointer name); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer cupsGetPPD2( - ffi.Pointer http, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'cupsGetPPD3') -external int _cupsGetPPD3( - ffi.Pointer http, - ffi.Pointer name, - ffi.Pointer modtime, - ffi.Pointer buffer, - int bufsize, -); - -http_status_e cupsGetPPD3( - ffi.Pointer http, - ffi.Pointer name, - ffi.Pointer modtime, - ffi.Pointer buffer, - int bufsize, -) { - return http_status_e.fromValue( - _cupsGetPPD3(http, name, modtime, buffer, bufsize), - ); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsGetPassword(ffi.Pointer prompt); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsGetPassword2( - ffi.Pointer prompt, - ffi.Pointer http, - ffi.Pointer method, - ffi.Pointer resource, -); - -@Deprecated('Use cupsEnumDests instead.') -@ffi.Native>>)>() -external int cupsGetPrinters( - ffi.Pointer>> printers, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer cupsGetResponse( - ffi.Pointer http, - ffi.Pointer resource, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer cupsGetServerPPD( - ffi.Pointer http, - ffi.Pointer name, -); - -@ffi.Native< - ssize_t Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) ->() -external int cupsHashData( - ffi.Pointer algorithm, - ffi.Pointer data, - int datalen, - ffi.Pointer hash, - int hashsize, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer cupsHashString( - ffi.Pointer hash, - int hashsize, - ffi.Pointer buffer, - int bufsize, -); - -@ffi.Native Function()>() -external ffi.Pointer cupsLangDefault(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsLangEncoding(ffi.Pointer lang); - -@ffi.Native() -external void cupsLangFlush(); - -@ffi.Native)>() -external void cupsLangFree(ffi.Pointer lang); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsLangGet(ffi.Pointer language); - -@ffi.Native(symbol: 'cupsLastError') -external int _cupsLastError(); - -ipp_status_e cupsLastError() { - return ipp_status_e.fromValue(_cupsLastError()); -} - -@ffi.Native Function()>() -external ffi.Pointer cupsLastErrorString(); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsLocalizeDestMedia( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int flags, - ffi.Pointer size, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsLocalizeDestOption( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - ffi.Pointer option, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsLocalizeDestValue( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - ffi.Pointer option, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - time_t, - ) ->() -external int cupsMakeServerCredentials( - ffi.Pointer path, - ffi.Pointer common_name, - int num_alt_names, - ffi.Pointer> alt_names, - int expiration_date, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int cupsMarkOptions( - ffi.Pointer ppd, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer cupsNotifySubject( - ffi.Pointer lang, - ffi.Pointer event, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer cupsNotifyText( - ffi.Pointer lang, - ffi.Pointer event, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsParseOptions( - ffi.Pointer arg, - int num_options, - ffi.Pointer> options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int cupsPrintFile( - ffi.Pointer name, - ffi.Pointer filename, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int cupsPrintFile2( - ffi.Pointer http, - ffi.Pointer name, - ffi.Pointer filename, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int cupsPrintFiles( - ffi.Pointer name, - int num_files, - ffi.Pointer> files, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int cupsPrintFiles2( - ffi.Pointer http, - ffi.Pointer name, - int num_files, - ffi.Pointer> files, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->(symbol: 'cupsPutFd') -external int _cupsPutFd( - ffi.Pointer http, - ffi.Pointer resource, - int fd, -); - -http_status_e cupsPutFd( - ffi.Pointer http, - ffi.Pointer resource, - int fd, -) { - return http_status_e.fromValue(_cupsPutFd(http, resource, fd)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'cupsPutFile') -external int _cupsPutFile( - ffi.Pointer http, - ffi.Pointer resource, - ffi.Pointer filename, -); - -http_status_e cupsPutFile( - ffi.Pointer http, - ffi.Pointer resource, - ffi.Pointer filename, -) { - return http_status_e.fromValue(_cupsPutFile(http, resource, filename)); -} - -@ffi.Native)>() -external void cupsRasterClose(ffi.Pointer r); - -@ffi.Native Function()>() -external ffi.Pointer cupsRasterErrorString(); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsRasterInitPWGHeader( - ffi.Pointer h, - ffi.Pointer media, - ffi.Pointer type, - int xdpi, - int ydpi, - ffi.Pointer sides, - ffi.Pointer sheet_back, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - cups_interpret_cb_t, - ) ->() -external int cupsRasterInterpretPPD( - ffi.Pointer h, - ffi.Pointer ppd, - int num_options, - ffi.Pointer options, - cups_interpret_cb_t func, -); - -@ffi.Native Function(ffi.Int, ffi.UnsignedInt)>( - symbol: 'cupsRasterOpen', -) -external ffi.Pointer _cupsRasterOpen(int fd, int mode); - -ffi.Pointer cupsRasterOpen(int fd, cups_mode_e mode) { - return _cupsRasterOpen(fd, mode.value); -} - -@ffi.Native< - ffi.Pointer Function( - cups_raster_iocb_t, - ffi.Pointer, - ffi.UnsignedInt, - ) ->(symbol: 'cupsRasterOpenIO') -external ffi.Pointer _cupsRasterOpenIO( - cups_raster_iocb_t iocb, - ffi.Pointer ctx, - int mode, -); - -ffi.Pointer cupsRasterOpenIO( - cups_raster_iocb_t iocb, - ffi.Pointer ctx, - cups_mode_e mode, -) { - return _cupsRasterOpenIO(iocb, ctx, mode.value); -} - -@Deprecated('Use cupsRasterReadHeader2 instead.') -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsRasterReadHeader( - ffi.Pointer r, - ffi.Pointer h, -); - -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsRasterReadHeader2( - ffi.Pointer r, - ffi.Pointer h, -); - -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int cupsRasterReadPixels( - ffi.Pointer r, - ffi.Pointer p, - int len, -); - -@Deprecated('Use cupsRasterWriteHeader2 instead.') -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsRasterWriteHeader( - ffi.Pointer r, - ffi.Pointer h, -); - -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsRasterWriteHeader2( - ffi.Pointer r, - ffi.Pointer h, -); - -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int cupsRasterWritePixels( - ffi.Pointer r, - ffi.Pointer p, - int len, -); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int cupsReadResponseData( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsRemoveDest( - ffi.Pointer name, - ffi.Pointer instance, - int num_dests, - ffi.Pointer> dests, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsRemoveOption( - ffi.Pointer name, - int num_options, - ffi.Pointer> options, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int cupsResolveConflicts( - ffi.Pointer ppd, - ffi.Pointer option, - ffi.Pointer choice, - ffi.Pointer num_options, - ffi.Pointer> options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'cupsSendRequest') -external int _cupsSendRequest( - ffi.Pointer http, - ffi.Pointer request, - ffi.Pointer resource, - int length, -); - -http_status_e cupsSendRequest( - ffi.Pointer http, - ffi.Pointer request, - ffi.Pointer resource, - int length, -) { - return http_status_e.fromValue( - _cupsSendRequest(http, request, resource, length), - ); -} - -@ffi.Native Function()>() -external ffi.Pointer cupsServer(); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - bearer_token_callback_t, - ffi.Pointer, - ) ->() -external void cupsSetBearerTokenCB( - ffi.Pointer http, - bearer_token_callback_t cb, - ffi.Pointer user_data, -); - -@ffi.Native)>() -external void cupsSetClientCertCB( - cups_client_cert_cb_t cb, - ffi.Pointer user_data, -); - -@ffi.Native)>() -external int cupsSetCredentials(ffi.Pointer certs); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external void cupsSetDefaultDest( - ffi.Pointer name, - ffi.Pointer instance, - int num_dests, - ffi.Pointer dests, -); - -@ffi.Native)>() -external void cupsSetDests(int num_dests, ffi.Pointer dests); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int cupsSetDests2( - ffi.Pointer http, - int num_dests, - ffi.Pointer dests, -); - -@ffi.Native(symbol: 'cupsSetEncryption') -external void _cupsSetEncryption(int e); - -void cupsSetEncryption(http_encryption_e e) { - return _cupsSetEncryption(e.value); -} - -@ffi.Native() -external void cupsSetPasswordCB(cups_password_cb_t cb); - -@ffi.Native)>() -external void cupsSetPasswordCB2( - cups_password_cb2_t cb, - ffi.Pointer user_data, -); - -@ffi.Native)>() -external void cupsSetServer(ffi.Pointer server); - -@ffi.Native)>() -external void cupsSetServerCertCB( - cups_server_cert_cb_t cb, - ffi.Pointer user_data, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int cupsSetServerCredentials( - ffi.Pointer path, - ffi.Pointer common_name, - int auto_create, -); - -@ffi.Native)>() -external void cupsSetUser(ffi.Pointer user); - -@ffi.Native)>() -external void cupsSetUserAgent(ffi.Pointer user_agent); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'cupsStartDestDocument') -external int _cupsStartDestDocument( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int job_id, - ffi.Pointer docname, - ffi.Pointer format, - int num_options, - ffi.Pointer options, - int last_document, -); - -http_status_e cupsStartDestDocument( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int job_id, - ffi.Pointer docname, - ffi.Pointer format, - int num_options, - ffi.Pointer options, - int last_document, -) { - return http_status_e.fromValue( - _cupsStartDestDocument( - http, - dest, - info, - job_id, - docname, - format, - num_options, - options, - last_document, - ), - ); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'cupsStartDocument') -external int _cupsStartDocument( - ffi.Pointer http, - ffi.Pointer name, - int job_id, - ffi.Pointer docname, - ffi.Pointer format, - int last_document, -); - -http_status_e cupsStartDocument( - ffi.Pointer http, - ffi.Pointer name, - int job_id, - ffi.Pointer docname, - ffi.Pointer format, - int last_document, -) { - return http_status_e.fromValue( - _cupsStartDocument(http, name, job_id, docname, format, last_document), - ); -} - -@ffi.Native, ffi.Int)>() -external int cupsTempFd(ffi.Pointer filename, int len); - -@Deprecated('Use cupsTempFd or cupsTempFile2 instead.') -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer cupsTempFile( - ffi.Pointer filename, - int len, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer cupsTempFile2( - ffi.Pointer filename, - int len, -); - -@ffi.Native Function()>() -external ffi.Pointer cupsUser(); - -@ffi.Native Function()>() -external ffi.Pointer cupsUserAgent(); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->(symbol: 'cupsWriteRequestData') -external int _cupsWriteRequestData( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -http_status_e cupsWriteRequestData( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -) { - return http_status_e.fromValue(_cupsWriteRequestData(http, buffer, length)); -} - -@Deprecated('Use posix_spawn APIs instead.') -@ffi.Native() -external int daemon(int arg0, int arg1); - -@ffi.Native() -external int daylight; - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Int, - ffi.Pointer, - ) ->() -external int debug_control_port_for_pid( - int target_tport, - int pid, - ffi.Pointer t, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external double dec2f(ffi.Pointer d); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int dec2l(ffi.Pointer d); - -@Deprecated('Deprecated') -@ffi.Native)>() -external double dec2num(ffi.Pointer d); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int dec2s(ffi.Pointer d); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void dec2str( - ffi.Pointer f, - ffi.Pointer d, - ffi.Pointer s, -); - -@ffi.Native Function(dev_t, mode_t)>() -external ffi.Pointer devname(int arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function(dev_t, mode_t, ffi.Pointer, ffi.Int) ->() -external ffi.Pointer devname_r( - int arg0, - int arg1, - ffi.Pointer buf, - int len, -); - -@ffi.Native() -external double difftime(int arg0, int arg1); - -@ffi.Native() -external int disconnectx(int arg0, int arg1, int arg2); - -@ffi.Native(symbol: 'dispatch_activate') -external void _dispatch_activate(dispatch_object_t object); - -void dispatch_activate(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_activate(_$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function(dispatch_time_t, dispatch_queue_t, dispatch_block_t) ->(symbol: 'dispatch_after') -external void _dispatch_after( - int when, - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_after( - Dartdispatch_time_t when, - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_after(when, _$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_time_t, - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_after_f') -external void _dispatch_after_f( - int when, - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_after_f( - Dartdispatch_time_t when, - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_after_f(when, _$$ref.pointer, context, work); -} - -@ffi.Native() -external int dispatch_allow_send_signals(int preserve_signum); - -@ffi.Native< - ffi.Void Function(ffi.Size, dispatch_queue_t, ffi.Pointer) ->(symbol: 'dispatch_apply') -external void _dispatch_apply( - int iterations, - dispatch_queue_t queue, - ffi.Pointer block, -); - -void dispatch_apply( - int iterations, - Dartdispatch_queue_t? queue, - objc.ObjCBlock block, -) { - final _$$ref = queue?.ref; - final _$$ref$1 = block.ref; - return _dispatch_apply( - iterations, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Void Function( - ffi.Size, - dispatch_queue_t, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer context, ffi.Size iteration) - > - >, - ) ->(symbol: 'dispatch_apply_f') -external void _dispatch_apply_f( - int iterations, - dispatch_queue_t queue, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer context, ffi.Size iteration) - > - > - work, -); - -void dispatch_apply_f( - int iterations, - Dartdispatch_queue_t? queue, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer context, ffi.Size iteration) - > - > - work, -) { - final _$$ref = queue?.ref; - return _dispatch_apply_f( - iterations, - _$$ref?.pointer ?? ffi.nullptr, - context, - work, - ); -} - -@ffi.Native( - symbol: 'dispatch_assert_queue', -) -external void _dispatch_assert_queue(dispatch_queue_t queue); - -void dispatch_assert_queue(Dartdispatch_queue_t queue) { - final _$$ref = queue.ref; - return _dispatch_assert_queue(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_assert_queue_barrier', -) -external void _dispatch_assert_queue_barrier(dispatch_queue_t queue); - -void dispatch_assert_queue_barrier(Dartdispatch_queue_t queue) { - final _$$ref = queue.ref; - return _dispatch_assert_queue_barrier(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_assert_queue_not', -) -external void _dispatch_assert_queue_not(dispatch_queue_t queue); - -void dispatch_assert_queue_not(Dartdispatch_queue_t queue) { - final _$$ref = queue.ref; - return _dispatch_assert_queue_not(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_async', -) -external void _dispatch_async(dispatch_queue_t queue, dispatch_block_t block); - -void dispatch_async(Dartdispatch_queue_t queue, Dartdispatch_block_t block) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_async(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'dispatch_async_and_wait', -) -external void _dispatch_async_and_wait( - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_async_and_wait( - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_async_and_wait(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_async_and_wait_f') -external void _dispatch_async_and_wait_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_async_and_wait_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_async_and_wait_f(_$$ref.pointer, context, work); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_async_f') -external void _dispatch_async_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_async_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_async_f(_$$ref.pointer, context, work); -} - -@ffi.Native( - symbol: 'dispatch_barrier_async', -) -external void _dispatch_barrier_async( - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_barrier_async( - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_barrier_async(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'dispatch_barrier_async_and_wait', -) -external void _dispatch_barrier_async_and_wait( - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_barrier_async_and_wait( - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_barrier_async_and_wait(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_barrier_async_and_wait_f') -external void _dispatch_barrier_async_and_wait_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_barrier_async_and_wait_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_barrier_async_and_wait_f(_$$ref.pointer, context, work); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_barrier_async_f') -external void _dispatch_barrier_async_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_barrier_async_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_barrier_async_f(_$$ref.pointer, context, work); -} - -@ffi.Native( - symbol: 'dispatch_barrier_sync', -) -external void _dispatch_barrier_sync( - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_barrier_sync( - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_barrier_sync(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_barrier_sync_f') -external void _dispatch_barrier_sync_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_barrier_sync_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_barrier_sync_f(_$$ref.pointer, context, work); -} - -@ffi.Native( - symbol: 'dispatch_block_cancel', -) -external void _dispatch_block_cancel(dispatch_block_t block); - -void dispatch_block_cancel(Dartdispatch_block_t block) { - final _$$ref = block.ref; - return _dispatch_block_cancel(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_block_create', -) -external dispatch_block_t _dispatch_block_create( - int flags, - dispatch_block_t block, -); - -Dartdispatch_block_t dispatch_block_create( - int flags, - Dartdispatch_block_t block, -) { - final _$$ref = block.ref; - return ObjCBlock_ffiVoid.fromPointer( - _dispatch_block_create(flags, _$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_block_t Function( - ffi.UnsignedLong, - ffi.UnsignedInt, - ffi.Int, - dispatch_block_t, - ) ->(symbol: 'dispatch_block_create_with_qos_class') -external dispatch_block_t _dispatch_block_create_with_qos_class( - int flags, - int qos_class, - int relative_priority, - dispatch_block_t block, -); - -Dartdispatch_block_t dispatch_block_create_with_qos_class( - int flags, - qos_class_t qos_class, - int relative_priority, - Dartdispatch_block_t block, -) { - final _$$ref = block.ref; - return ObjCBlock_ffiVoid.fromPointer( - _dispatch_block_create_with_qos_class( - flags, - qos_class.value, - relative_priority, - _$$ref.pointer, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Void Function(dispatch_block_t, dispatch_queue_t, dispatch_block_t) ->(symbol: 'dispatch_block_notify') -external void _dispatch_block_notify( - dispatch_block_t block, - dispatch_queue_t queue, - dispatch_block_t notification_block, -); - -void dispatch_block_notify( - Dartdispatch_block_t block, - Dartdispatch_queue_t queue, - Dartdispatch_block_t notification_block, -) { - final _$$ref = block.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = notification_block.ref; - return _dispatch_block_notify( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native( - symbol: 'dispatch_block_perform', -) -external void _dispatch_block_perform(int flags, dispatch_block_t block); - -void dispatch_block_perform(int flags, Dartdispatch_block_t block) { - final _$$ref = block.ref; - return _dispatch_block_perform(flags, _$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_block_testcancel', -) -external int _dispatch_block_testcancel(dispatch_block_t block); - -int dispatch_block_testcancel(Dartdispatch_block_t block) { - final _$$ref = block.ref; - return _dispatch_block_testcancel(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_block_wait', -) -external int _dispatch_block_wait(dispatch_block_t block, int timeout); - -int dispatch_block_wait( - Dartdispatch_block_t block, - Dartdispatch_time_t timeout, -) { - final _$$ref = block.ref; - return _dispatch_block_wait(_$$ref.pointer, timeout); -} - -@ffi.Native( - symbol: 'dispatch_data_apply', -) -external bool _dispatch_data_apply( - dispatch_data_t data, - dispatch_data_applier_t applier, -); - -bool dispatch_data_apply( - Dartdispatch_data_t data, - Dartdispatch_data_applier_t applier, -) { - final _$$ref = data.ref; - final _$$ref$1 = applier.ref; - return _dispatch_data_apply(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - dispatch_data_t Function(dispatch_data_t, ffi.Size, ffi.Pointer) ->(symbol: 'dispatch_data_copy_region') -external dispatch_data_t _dispatch_data_copy_region( - dispatch_data_t data, - int location, - ffi.Pointer offset_ptr, -); - -Dartdispatch_data_t dispatch_data_copy_region( - Dartdispatch_data_t data, - int location, - ffi.Pointer offset_ptr, -) { - final _$$ref = data.ref; - return objc.NSObject.fromPointer( - _dispatch_data_copy_region(_$$ref.pointer, location, offset_ptr), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_data_t Function( - ffi.Pointer, - ffi.Size, - dispatch_queue_t, - dispatch_block_t, - ) ->(symbol: 'dispatch_data_create') -external dispatch_data_t _dispatch_data_create( - ffi.Pointer buffer, - int size, - dispatch_queue_t queue, - dispatch_block_t destructor, -); - -Dartdispatch_data_t dispatch_data_create( - ffi.Pointer buffer, - int size, - Dartdispatch_queue_t? queue, - Dartdispatch_block_t? destructor, -) { - final _$$ref = queue?.ref; - final _$$ref$1 = destructor?.ref; - return objc.NSObject.fromPointer( - _dispatch_data_create( - buffer, - size, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_data_create_concat', -) -external dispatch_data_t _dispatch_data_create_concat( - dispatch_data_t data1, - dispatch_data_t data2, -); - -Dartdispatch_data_t dispatch_data_create_concat( - Dartdispatch_data_t data1, - Dartdispatch_data_t data2, -) { - final _$$ref = data1.ref; - final _$$ref$1 = data2.ref; - return objc.NSObject.fromPointer( - _dispatch_data_create_concat(_$$ref.pointer, _$$ref$1.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_data_t Function( - dispatch_data_t, - ffi.Pointer>, - ffi.Pointer, - ) ->(symbol: 'dispatch_data_create_map') -external dispatch_data_t _dispatch_data_create_map( - dispatch_data_t data, - ffi.Pointer> buffer_ptr, - ffi.Pointer size_ptr, -); - -Dartdispatch_data_t dispatch_data_create_map( - Dartdispatch_data_t data, - ffi.Pointer> buffer_ptr, - ffi.Pointer size_ptr, -) { - final _$$ref = data.ref; - return objc.NSObject.fromPointer( - _dispatch_data_create_map(_$$ref.pointer, buffer_ptr, size_ptr), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_data_create_subrange', -) -external dispatch_data_t _dispatch_data_create_subrange( - dispatch_data_t data, - int offset, - int length, -); - -Dartdispatch_data_t dispatch_data_create_subrange( - Dartdispatch_data_t data, - int offset, - int length, -) { - final _$$ref = data.ref; - return objc.NSObject.fromPointer( - _dispatch_data_create_subrange(_$$ref.pointer, offset, length), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_data_get_size', -) -external int _dispatch_data_get_size(dispatch_data_t data); - -int dispatch_data_get_size(Dartdispatch_data_t data) { - final _$$ref = data.ref; - return _dispatch_data_get_size(_$$ref.pointer); -} - -@Deprecated('unsupported interface') -@ffi.Native)>( - symbol: 'dispatch_debug', -) -external void _dispatch_debug( - dispatch_object_t object, - ffi.Pointer message, -); - -void dispatch_debug( - Dartdispatch_object_t object, - ffi.Pointer message, -) { - final _$$ref = object.ref; - return _dispatch_debug(_$$ref.pointer, message); -} - -@Deprecated('unsupported interface') -@ffi.Native< - ffi.Void Function(dispatch_object_t, ffi.Pointer, va_list) ->(symbol: 'dispatch_debugv') -external void _dispatch_debugv( - dispatch_object_t object, - ffi.Pointer message, - va_list ap, -); - -void dispatch_debugv( - Dartdispatch_object_t object, - ffi.Pointer message, - va_list ap, -) { - final _$$ref = object.ref; - return _dispatch_debugv(_$$ref.pointer, message, ap); -} - -@ffi.Native Function(dispatch_object_t)>( - symbol: 'dispatch_get_context', -) -external ffi.Pointer _dispatch_get_context(dispatch_object_t object); - -ffi.Pointer dispatch_get_context(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_get_context(_$$ref.pointer); -} - -@Deprecated('unsupported interface') -@ffi.Native(symbol: 'dispatch_get_current_queue') -external dispatch_queue_t _dispatch_get_current_queue(); - -Dartdispatch_queue_t dispatch_get_current_queue() { - return objc.NSObject.fromPointer( - _dispatch_get_current_queue(), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_get_global_queue', -) -external dispatch_queue_global_t _dispatch_get_global_queue( - int identifier, - int flags, -); - -Dartdispatch_queue_global_t dispatch_get_global_queue( - int identifier, - int flags, -) { - return objc.NSObject.fromPointer( - _dispatch_get_global_queue(identifier, flags), - retain: true, - release: true, - ); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer dispatch_get_specific(ffi.Pointer key); - -@ffi.Native< - ffi.Void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t) ->(symbol: 'dispatch_group_async') -external void _dispatch_group_async( - dispatch_group_t group, - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_group_async( - Dartdispatch_group_t group, - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = group.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = block.ref; - return _dispatch_group_async( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native< - ffi.Void Function( - dispatch_group_t, - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_group_async_f') -external void _dispatch_group_async_f( - dispatch_group_t group, - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_group_async_f( - Dartdispatch_group_t group, - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = group.ref; - final _$$ref$1 = queue.ref; - return _dispatch_group_async_f( - _$$ref.pointer, - _$$ref$1.pointer, - context, - work, - ); -} - -@ffi.Native(symbol: 'dispatch_group_create') -external dispatch_group_t _dispatch_group_create(); - -Dartdispatch_group_t dispatch_group_create() { - return objc.NSObject.fromPointer( - _dispatch_group_create(), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'dispatch_group_enter') -external void _dispatch_group_enter(dispatch_group_t group); - -void dispatch_group_enter(Dartdispatch_group_t group) { - final _$$ref = group.ref; - return _dispatch_group_enter(_$$ref.pointer); -} - -@ffi.Native(symbol: 'dispatch_group_leave') -external void _dispatch_group_leave(dispatch_group_t group); - -void dispatch_group_leave(Dartdispatch_group_t group) { - final _$$ref = group.ref; - return _dispatch_group_leave(_$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t) ->(symbol: 'dispatch_group_notify') -external void _dispatch_group_notify( - dispatch_group_t group, - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_group_notify( - Dartdispatch_group_t group, - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = group.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = block.ref; - return _dispatch_group_notify( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native< - ffi.Void Function( - dispatch_group_t, - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_group_notify_f') -external void _dispatch_group_notify_f( - dispatch_group_t group, - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_group_notify_f( - Dartdispatch_group_t group, - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = group.ref; - final _$$ref$1 = queue.ref; - return _dispatch_group_notify_f( - _$$ref.pointer, - _$$ref$1.pointer, - context, - work, - ); -} - -@ffi.Native( - symbol: 'dispatch_group_wait', -) -external int _dispatch_group_wait(dispatch_group_t group, int timeout); - -int dispatch_group_wait( - Dartdispatch_group_t group, - Dartdispatch_time_t timeout, -) { - final _$$ref = group.ref; - return _dispatch_group_wait(_$$ref.pointer, timeout); -} - -@ffi.Native( - symbol: 'dispatch_io_barrier', -) -external void _dispatch_io_barrier( - dispatch_io_t channel, - dispatch_block_t barrier, -); - -void dispatch_io_barrier( - Dartdispatch_io_t channel, - Dartdispatch_block_t barrier, -) { - final _$$ref = channel.ref; - final _$$ref$1 = barrier.ref; - return _dispatch_io_barrier(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'dispatch_io_close', -) -external void _dispatch_io_close(dispatch_io_t channel, int flags); - -void dispatch_io_close( - Dartdispatch_io_t channel, - Dartdispatch_io_close_flags_t flags, -) { - final _$$ref = channel.ref; - return _dispatch_io_close(_$$ref.pointer, flags); -} - -@ffi.Native< - dispatch_io_t Function( - dispatch_io_type_t, - dispatch_fd_t, - dispatch_queue_t, - ffi.Pointer, - ) ->(symbol: 'dispatch_io_create') -external dispatch_io_t _dispatch_io_create( - int type, - int fd, - dispatch_queue_t queue, - ffi.Pointer cleanup_handler, -); - -Dartdispatch_io_t dispatch_io_create( - Dartdispatch_io_type_t type, - Dartdispatch_fd_t fd, - Dartdispatch_queue_t queue, - objc.ObjCBlock cleanup_handler, -) { - final _$$ref = queue.ref; - final _$$ref$1 = cleanup_handler.ref; - return objc.NSObject.fromPointer( - _dispatch_io_create(type, fd, _$$ref.pointer, _$$ref$1.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_io_t Function( - dispatch_io_type_t, - dispatch_io_t, - dispatch_queue_t, - ffi.Pointer, - ) ->(symbol: 'dispatch_io_create_with_io') -external dispatch_io_t _dispatch_io_create_with_io( - int type, - dispatch_io_t io, - dispatch_queue_t queue, - ffi.Pointer cleanup_handler, -); - -Dartdispatch_io_t dispatch_io_create_with_io( - Dartdispatch_io_type_t type, - Dartdispatch_io_t io, - Dartdispatch_queue_t queue, - objc.ObjCBlock cleanup_handler, -) { - final _$$ref = io.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = cleanup_handler.ref; - return objc.NSObject.fromPointer( - _dispatch_io_create_with_io( - type, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_io_t Function( - dispatch_io_type_t, - ffi.Pointer, - ffi.Int, - mode_t, - dispatch_queue_t, - ffi.Pointer, - ) ->(symbol: 'dispatch_io_create_with_path') -external dispatch_io_t _dispatch_io_create_with_path( - int type, - ffi.Pointer path, - int oflag, - int mode, - dispatch_queue_t queue, - ffi.Pointer cleanup_handler, -); - -Dartdispatch_io_t dispatch_io_create_with_path( - Dartdispatch_io_type_t type, - ffi.Pointer path, - int oflag, - Dart__uint16_t mode, - Dartdispatch_queue_t queue, - objc.ObjCBlock cleanup_handler, -) { - final _$$ref = queue.ref; - final _$$ref$1 = cleanup_handler.ref; - return objc.NSObject.fromPointer( - _dispatch_io_create_with_path( - type, - path, - oflag, - mode, - _$$ref.pointer, - _$$ref$1.pointer, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_io_get_descriptor', -) -external int _dispatch_io_get_descriptor(dispatch_io_t channel); - -Dartdispatch_fd_t dispatch_io_get_descriptor(Dartdispatch_io_t channel) { - final _$$ref = channel.ref; - return _dispatch_io_get_descriptor(_$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_io_t, - off_t, - ffi.Size, - dispatch_queue_t, - dispatch_io_handler_t, - ) ->(symbol: 'dispatch_io_read') -external void _dispatch_io_read( - dispatch_io_t channel, - int offset, - int length, - dispatch_queue_t queue, - dispatch_io_handler_t io_handler, -); - -void dispatch_io_read( - Dartdispatch_io_t channel, - Dart__int64_t offset, - int length, - Dartdispatch_queue_t queue, - Dartdispatch_io_handler_t io_handler, -) { - final _$$ref = channel.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = io_handler.ref; - return _dispatch_io_read( - _$$ref.pointer, - offset, - length, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native( - symbol: 'dispatch_io_set_high_water', -) -external void _dispatch_io_set_high_water( - dispatch_io_t channel, - int high_water, -); - -void dispatch_io_set_high_water(Dartdispatch_io_t channel, int high_water) { - final _$$ref = channel.ref; - return _dispatch_io_set_high_water(_$$ref.pointer, high_water); -} - -@ffi.Native< - ffi.Void Function(dispatch_io_t, ffi.Uint64, dispatch_io_interval_flags_t) ->(symbol: 'dispatch_io_set_interval') -external void _dispatch_io_set_interval( - dispatch_io_t channel, - int interval, - int flags, -); - -void dispatch_io_set_interval( - Dartdispatch_io_t channel, - int interval, - Dartdispatch_io_interval_flags_t flags, -) { - final _$$ref = channel.ref; - return _dispatch_io_set_interval(_$$ref.pointer, interval, flags); -} - -@ffi.Native( - symbol: 'dispatch_io_set_low_water', -) -external void _dispatch_io_set_low_water(dispatch_io_t channel, int low_water); - -void dispatch_io_set_low_water(Dartdispatch_io_t channel, int low_water) { - final _$$ref = channel.ref; - return _dispatch_io_set_low_water(_$$ref.pointer, low_water); -} - -@ffi.Native< - ffi.Void Function( - dispatch_io_t, - off_t, - dispatch_data_t, - dispatch_queue_t, - dispatch_io_handler_t, - ) ->(symbol: 'dispatch_io_write') -external void _dispatch_io_write( - dispatch_io_t channel, - int offset, - dispatch_data_t data, - dispatch_queue_t queue, - dispatch_io_handler_t io_handler, -); - -void dispatch_io_write( - Dartdispatch_io_t channel, - Dart__int64_t offset, - Dartdispatch_data_t data, - Dartdispatch_queue_t queue, - Dartdispatch_io_handler_t io_handler, -) { - final _$$ref = channel.ref; - final _$$ref$1 = data.ref; - final _$$ref$2 = queue.ref; - final _$$ref$3 = io_handler.ref; - return _dispatch_io_write( - _$$ref.pointer, - offset, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); -} - -@ffi.Native() -external void dispatch_main(); - -@ffi.Native, dispatch_block_t)>( - symbol: 'dispatch_once', -) -external void _dispatch_once( - ffi.Pointer predicate, - dispatch_block_t block, -); - -void dispatch_once( - ffi.Pointer predicate, - Dartdispatch_block_t block, -) { - final _$$ref = block.ref; - return _dispatch_once(predicate, _$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - dispatch_function_t, - ) ->() -external void dispatch_once_f( - ffi.Pointer predicate, - ffi.Pointer context, - dispatch_function_t function, -); - -@ffi.Native( - symbol: 'dispatch_queue_attr_make_initially_inactive', -) -external dispatch_queue_attr_t _dispatch_queue_attr_make_initially_inactive( - dispatch_queue_attr_t attr, -); - -Dartdispatch_queue_attr_t dispatch_queue_attr_make_initially_inactive( - Dartdispatch_queue_attr_t? attr, -) { - final _$$ref = attr?.ref; - return objc.NSObject.fromPointer( - _dispatch_queue_attr_make_initially_inactive( - _$$ref?.pointer ?? ffi.nullptr, - ), - retain: true, - release: true, - ); -} - -@ffi.Native< - dispatch_queue_attr_t Function(dispatch_queue_attr_t, ffi.UnsignedLong) ->(symbol: 'dispatch_queue_attr_make_with_autorelease_frequency') -external dispatch_queue_attr_t -_dispatch_queue_attr_make_with_autorelease_frequency( - dispatch_queue_attr_t attr, - int frequency, -); - -Dartdispatch_queue_attr_t dispatch_queue_attr_make_with_autorelease_frequency( - Dartdispatch_queue_attr_t? attr, - dispatch_autorelease_frequency_t frequency, -) { - final _$$ref = attr?.ref; - return objc.NSObject.fromPointer( - _dispatch_queue_attr_make_with_autorelease_frequency( - _$$ref?.pointer ?? ffi.nullptr, - frequency.value, - ), - retain: true, - release: true, - ); -} - -@ffi.Native< - dispatch_queue_attr_t Function( - dispatch_queue_attr_t, - ffi.UnsignedInt, - ffi.Int, - ) ->(symbol: 'dispatch_queue_attr_make_with_qos_class') -external dispatch_queue_attr_t _dispatch_queue_attr_make_with_qos_class( - dispatch_queue_attr_t attr, - int qos_class, - int relative_priority, -); - -Dartdispatch_queue_attr_t dispatch_queue_attr_make_with_qos_class( - Dartdispatch_queue_attr_t? attr, - qos_class_t qos_class, - int relative_priority, -) { - final _$$ref = attr?.ref; - return objc.NSObject.fromPointer( - _dispatch_queue_attr_make_with_qos_class( - _$$ref?.pointer ?? ffi.nullptr, - qos_class.value, - relative_priority, - ), - retain: true, - release: true, - ); -} - -@ffi.Native< - dispatch_queue_t Function(ffi.Pointer, dispatch_queue_attr_t) ->(symbol: 'dispatch_queue_create') -external dispatch_queue_t _dispatch_queue_create( - ffi.Pointer label, - dispatch_queue_attr_t attr, -); - -Dartdispatch_queue_t dispatch_queue_create( - ffi.Pointer label, - Dartdispatch_queue_attr_t? attr, -) { - final _$$ref = attr?.ref; - return objc.NSObject.fromPointer( - _dispatch_queue_create(label, _$$ref?.pointer ?? ffi.nullptr), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_queue_t Function( - ffi.Pointer, - dispatch_queue_attr_t, - dispatch_queue_t, - ) ->(symbol: 'dispatch_queue_create_with_target') -external dispatch_queue_t _dispatch_queue_create_with_target( - ffi.Pointer label, - dispatch_queue_attr_t attr, - dispatch_queue_t target, -); - -Dartdispatch_queue_t dispatch_queue_create_with_target( - ffi.Pointer label, - Dartdispatch_queue_attr_t? attr, - Dartdispatch_queue_t? target, -) { - final _$$ref = attr?.ref; - final _$$ref$1 = target?.ref; - return objc.NSObject.fromPointer( - _dispatch_queue_create_with_target( - label, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ), - retain: false, - release: true, - ); -} - -@ffi.Native Function(dispatch_queue_t)>( - symbol: 'dispatch_queue_get_label', -) -external ffi.Pointer _dispatch_queue_get_label( - dispatch_queue_t queue, -); - -ffi.Pointer dispatch_queue_get_label(Dartdispatch_queue_t? queue) { - final _$$ref = queue?.ref; - return _dispatch_queue_get_label(_$$ref?.pointer ?? ffi.nullptr); -} - -@ffi.Native)>( - symbol: 'dispatch_queue_get_qos_class', -) -external int _dispatch_queue_get_qos_class( - dispatch_queue_t queue, - ffi.Pointer relative_priority_ptr, -); - -qos_class_t dispatch_queue_get_qos_class( - Dartdispatch_queue_t queue, - ffi.Pointer relative_priority_ptr, -) { - final _$$ref = queue.ref; - return qos_class_t.fromValue( - _dispatch_queue_get_qos_class(_$$ref.pointer, relative_priority_ptr), - ); -} - -@ffi.Native< - ffi.Pointer Function(dispatch_queue_t, ffi.Pointer) ->(symbol: 'dispatch_queue_get_specific') -external ffi.Pointer _dispatch_queue_get_specific( - dispatch_queue_t queue, - ffi.Pointer key, -); - -ffi.Pointer dispatch_queue_get_specific( - Dartdispatch_queue_t queue, - ffi.Pointer key, -) { - final _$$ref = queue.ref; - return _dispatch_queue_get_specific(_$$ref.pointer, key); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_queue_set_specific') -external void _dispatch_queue_set_specific( - dispatch_queue_t queue, - ffi.Pointer key, - ffi.Pointer context, - dispatch_function_t destructor, -); - -void dispatch_queue_set_specific( - Dartdispatch_queue_t queue, - ffi.Pointer key, - ffi.Pointer context, - dispatch_function_t destructor, -) { - final _$$ref = queue.ref; - return _dispatch_queue_set_specific(_$$ref.pointer, key, context, destructor); -} - -@ffi.Native< - ffi.Void Function( - dispatch_fd_t, - ffi.Size, - dispatch_queue_t, - ffi.Pointer, - ) ->(symbol: 'dispatch_read') -external void _dispatch_read( - int fd, - int length, - dispatch_queue_t queue, - ffi.Pointer handler, -); - -void dispatch_read( - Dartdispatch_fd_t fd, - int length, - Dartdispatch_queue_t queue, - objc.ObjCBlock handler, -) { - final _$$ref = queue.ref; - final _$$ref$1 = handler.ref; - return _dispatch_read(fd, length, _$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native(symbol: 'dispatch_release') -external void _dispatch_release(dispatch_object_t object); - -void dispatch_release(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_release(_$$ref.pointer); -} - -@ffi.Native(symbol: 'dispatch_resume') -external void _dispatch_resume(dispatch_object_t object); - -void dispatch_resume(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_resume(_$$ref.pointer); -} - -@ffi.Native(symbol: 'dispatch_retain') -external void _dispatch_retain(dispatch_object_t object); - -void dispatch_retain(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_retain(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_semaphore_create', -) -external dispatch_semaphore_t _dispatch_semaphore_create(int value); - -Dartdispatch_semaphore_t dispatch_semaphore_create(int value) { - return objc.NSObject.fromPointer( - _dispatch_semaphore_create(value), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_semaphore_signal', -) -external int _dispatch_semaphore_signal(dispatch_semaphore_t dsema); - -int dispatch_semaphore_signal(Dartdispatch_semaphore_t dsema) { - final _$$ref = dsema.ref; - return _dispatch_semaphore_signal(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_semaphore_wait', -) -external int _dispatch_semaphore_wait(dispatch_semaphore_t dsema, int timeout); - -int dispatch_semaphore_wait( - Dartdispatch_semaphore_t dsema, - Dartdispatch_time_t timeout, -) { - final _$$ref = dsema.ref; - return _dispatch_semaphore_wait(_$$ref.pointer, timeout); -} - -@ffi.Native)>( - symbol: 'dispatch_set_context', -) -external void _dispatch_set_context( - dispatch_object_t object, - ffi.Pointer context, -); - -void dispatch_set_context( - Dartdispatch_object_t object, - ffi.Pointer context, -) { - final _$$ref = object.ref; - return _dispatch_set_context(_$$ref.pointer, context); -} - -@ffi.Native( - symbol: 'dispatch_set_finalizer_f', -) -external void _dispatch_set_finalizer_f( - dispatch_object_t object, - dispatch_function_t finalizer, -); - -void dispatch_set_finalizer_f( - Dartdispatch_object_t object, - dispatch_function_t finalizer, -) { - final _$$ref = object.ref; - return _dispatch_set_finalizer_f(_$$ref.pointer, finalizer); -} - -@ffi.Native( - symbol: 'dispatch_set_qos_class_floor', -) -external void _dispatch_set_qos_class_floor( - dispatch_object_t object, - int qos_class, - int relative_priority, -); - -void dispatch_set_qos_class_floor( - Dartdispatch_object_t object, - qos_class_t qos_class, - int relative_priority, -) { - final _$$ref = object.ref; - return _dispatch_set_qos_class_floor( - _$$ref.pointer, - qos_class.value, - relative_priority, - ); -} - -@ffi.Native( - symbol: 'dispatch_set_target_queue', -) -external void _dispatch_set_target_queue( - dispatch_object_t object, - dispatch_queue_t queue, -); - -void dispatch_set_target_queue( - Dartdispatch_object_t object, - Dartdispatch_queue_t? queue, -) { - final _$$ref = object.ref; - final _$$ref$1 = queue?.ref; - return _dispatch_set_target_queue( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native( - symbol: 'dispatch_source_cancel', -) -external void _dispatch_source_cancel(dispatch_source_t source); - -void dispatch_source_cancel(Dartdispatch_source_t source) { - final _$$ref = source.ref; - return _dispatch_source_cancel(_$$ref.pointer); -} - -@ffi.Native< - dispatch_source_t Function( - dispatch_source_type_t, - ffi.UintPtr, - ffi.UintPtr, - dispatch_queue_t, - ) ->(symbol: 'dispatch_source_create') -external dispatch_source_t _dispatch_source_create( - dispatch_source_type_t type, - int handle, - int mask, - dispatch_queue_t queue, -); - -Dartdispatch_source_t dispatch_source_create( - dispatch_source_type_t type, - int handle, - int mask, - Dartdispatch_queue_t? queue, -) { - final _$$ref = queue?.ref; - return objc.NSObject.fromPointer( - _dispatch_source_create(type, handle, mask, _$$ref?.pointer ?? ffi.nullptr), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_source_get_data', -) -external int _dispatch_source_get_data(dispatch_source_t source); - -int dispatch_source_get_data(Dartdispatch_source_t source) { - final _$$ref = source.ref; - return _dispatch_source_get_data(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_source_get_handle', -) -external int _dispatch_source_get_handle(dispatch_source_t source); - -int dispatch_source_get_handle(Dartdispatch_source_t source) { - final _$$ref = source.ref; - return _dispatch_source_get_handle(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_source_get_mask', -) -external int _dispatch_source_get_mask(dispatch_source_t source); - -int dispatch_source_get_mask(Dartdispatch_source_t source) { - final _$$ref = source.ref; - return _dispatch_source_get_mask(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_source_merge_data', -) -external void _dispatch_source_merge_data(dispatch_source_t source, int value); - -void dispatch_source_merge_data(Dartdispatch_source_t source, int value) { - final _$$ref = source.ref; - return _dispatch_source_merge_data(_$$ref.pointer, value); -} - -@ffi.Native( - symbol: 'dispatch_source_set_cancel_handler', -) -external void _dispatch_source_set_cancel_handler( - dispatch_source_t source, - dispatch_block_t handler, -); - -void dispatch_source_set_cancel_handler( - Dartdispatch_source_t source, - Dartdispatch_block_t? handler, -) { - final _$$ref = source.ref; - final _$$ref$1 = handler?.ref; - return _dispatch_source_set_cancel_handler( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native( - symbol: 'dispatch_source_set_cancel_handler_f', -) -external void _dispatch_source_set_cancel_handler_f( - dispatch_source_t source, - dispatch_function_t handler, -); - -void dispatch_source_set_cancel_handler_f( - Dartdispatch_source_t source, - dispatch_function_t handler, -) { - final _$$ref = source.ref; - return _dispatch_source_set_cancel_handler_f(_$$ref.pointer, handler); -} - -@ffi.Native( - symbol: 'dispatch_source_set_event_handler', -) -external void _dispatch_source_set_event_handler( - dispatch_source_t source, - dispatch_block_t handler, -); - -void dispatch_source_set_event_handler( - Dartdispatch_source_t source, - Dartdispatch_block_t? handler, -) { - final _$$ref = source.ref; - final _$$ref$1 = handler?.ref; - return _dispatch_source_set_event_handler( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native( - symbol: 'dispatch_source_set_event_handler_f', -) -external void _dispatch_source_set_event_handler_f( - dispatch_source_t source, - dispatch_function_t handler, -); - -void dispatch_source_set_event_handler_f( - Dartdispatch_source_t source, - dispatch_function_t handler, -) { - final _$$ref = source.ref; - return _dispatch_source_set_event_handler_f(_$$ref.pointer, handler); -} - -@ffi.Native( - symbol: 'dispatch_source_set_registration_handler', -) -external void _dispatch_source_set_registration_handler( - dispatch_source_t source, - dispatch_block_t handler, -); - -void dispatch_source_set_registration_handler( - Dartdispatch_source_t source, - Dartdispatch_block_t? handler, -) { - final _$$ref = source.ref; - final _$$ref$1 = handler?.ref; - return _dispatch_source_set_registration_handler( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native( - symbol: 'dispatch_source_set_registration_handler_f', -) -external void _dispatch_source_set_registration_handler_f( - dispatch_source_t source, - dispatch_function_t handler, -); - -void dispatch_source_set_registration_handler_f( - Dartdispatch_source_t source, - dispatch_function_t handler, -) { - final _$$ref = source.ref; - return _dispatch_source_set_registration_handler_f(_$$ref.pointer, handler); -} - -@ffi.Native< - ffi.Void Function(dispatch_source_t, dispatch_time_t, ffi.Uint64, ffi.Uint64) ->(symbol: 'dispatch_source_set_timer') -external void _dispatch_source_set_timer( - dispatch_source_t source, - int start, - int interval, - int leeway, -); - -void dispatch_source_set_timer( - Dartdispatch_source_t source, - Dartdispatch_time_t start, - int interval, - int leeway, -) { - final _$$ref = source.ref; - return _dispatch_source_set_timer(_$$ref.pointer, start, interval, leeway); -} - -@ffi.Native( - symbol: 'dispatch_source_testcancel', -) -external int _dispatch_source_testcancel(dispatch_source_t source); - -int dispatch_source_testcancel(Dartdispatch_source_t source) { - final _$$ref = source.ref; - return _dispatch_source_testcancel(_$$ref.pointer); -} - -@ffi.Native(symbol: 'dispatch_suspend') -external void _dispatch_suspend(dispatch_object_t object); - -void dispatch_suspend(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_suspend(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_sync', -) -external void _dispatch_sync(dispatch_queue_t queue, dispatch_block_t block); - -void dispatch_sync(Dartdispatch_queue_t queue, Dartdispatch_block_t block) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_sync(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_sync_f') -external void _dispatch_sync_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_sync_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_sync_f(_$$ref.pointer, context, work); -} - -@ffi.Native() -external int dispatch_time(int when, int delta); - -@ffi.Native, ffi.Int64)>() -external int dispatch_walltime(ffi.Pointer when, int delta); - -@ffi.Native)>( - symbol: 'dispatch_workloop_create', -) -external dispatch_workloop_t _dispatch_workloop_create( - ffi.Pointer label, -); - -Dartdispatch_workloop_t dispatch_workloop_create(ffi.Pointer label) { - return objc.NSObject.fromPointer( - _dispatch_workloop_create(label), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'dispatch_workloop_create_inactive', -) -external dispatch_workloop_t _dispatch_workloop_create_inactive( - ffi.Pointer label, -); - -Dartdispatch_workloop_t dispatch_workloop_create_inactive( - ffi.Pointer label, -) { - return objc.NSObject.fromPointer( - _dispatch_workloop_create_inactive(label), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_workloop_set_autorelease_frequency', -) -external void _dispatch_workloop_set_autorelease_frequency( - dispatch_workloop_t workloop, - int frequency, -); - -void dispatch_workloop_set_autorelease_frequency( - Dartdispatch_workloop_t workloop, - dispatch_autorelease_frequency_t frequency, -) { - final _$$ref = workloop.ref; - return _dispatch_workloop_set_autorelease_frequency( - _$$ref.pointer, - frequency.value, - ); -} - -@ffi.Native( - symbol: 'dispatch_workloop_set_os_workgroup', -) -external void _dispatch_workloop_set_os_workgroup( - dispatch_workloop_t workloop, - os_workgroup_t workgroup, -); - -void dispatch_workloop_set_os_workgroup( - Dartdispatch_workloop_t workloop, - Dartos_workgroup_t workgroup, -) { - final _$$ref = workloop.ref; - final _$$ref$1 = workgroup.ref; - return _dispatch_workloop_set_os_workgroup(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_fd_t, - dispatch_data_t, - dispatch_queue_t, - ffi.Pointer, - ) ->(symbol: 'dispatch_write') -external void _dispatch_write( - int fd, - dispatch_data_t data, - dispatch_queue_t queue, - ffi.Pointer handler, -); - -void dispatch_write( - Dartdispatch_fd_t fd, - Dartdispatch_data_t data, - Dartdispatch_queue_t queue, - objc.ObjCBlock handler, -) { - final _$$ref = data.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = handler.ref; - return _dispatch_write( - fd, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native() -external div_t div(int arg0, int arg1); - -@ffi.Native)>() -external int dprintf(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external double drand48(); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void dtox80(ffi.Pointer x, ffi.Pointer x80); - -@ffi.Native() -external int dup(int arg0); - -@ffi.Native() -external int dup2(int arg0, int arg1); - -@ffi.Native() -external locale_t duplocale(locale_t arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Double, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ecvt( - double arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native, ffi.Int)>() -external void encrypt(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external void endhostent(); - -@ffi.Native() -external void endnetent(); - -@ffi.Native() -external void endnetgrent(); - -@ffi.Native() -external void endprotoent(); - -@ffi.Native() -external void endrpcent(); - -@ffi.Native() -external void endservent(); - -@ffi.Native() -external void endusershell(); - -@ffi.Native)>() -external double erand48(ffi.Pointer arg0); - -@ffi.Native() -external double erf(double arg0); - -@ffi.Native() -external double erfc(double arg0); - -@ffi.Native() -external double erfcf(double arg0); - -@ffi.Native() -external double erff(double arg0); - -@ffi.Native() -external int etap_trace_thread(int target_act, int trace_status); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int exchangedata( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native, ffi.Pointer)>() -external int execl(ffi.Pointer __path, ffi.Pointer __arg0); - -@ffi.Native, ffi.Pointer)>() -external int execle(ffi.Pointer __path, ffi.Pointer __arg0); - -@ffi.Native, ffi.Pointer)>() -external int execlp(ffi.Pointer __file, ffi.Pointer __arg0); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer>) ->() -external int execv( - ffi.Pointer __path, - ffi.Pointer> __argv, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int execvP( - ffi.Pointer __file, - ffi.Pointer __searchpath, - ffi.Pointer> __argv, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int execve( - ffi.Pointer __file, - ffi.Pointer> __argv, - ffi.Pointer> __envp, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer>) ->() -external int execvp( - ffi.Pointer __file, - ffi.Pointer> __argv, -); - -@ffi.Native() -external void exit(int arg0); - -@ffi.Native() -external double exp(double arg0); - -@ffi.Native() -external double exp2(double arg0); - -@ffi.Native() -external double exp2f(double arg0); - -@ffi.Native() -external double expf(double arg0); - -@ffi.Native() -external double expm1(double arg0); - -@ffi.Native() -external double expm1f(double arg0); - -@ffi.Native() -external double fabs(double arg0); - -@ffi.Native() -external double fabsf(double arg0); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) ->() -external int faccessat( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, -); - -@ffi.Native() -external int fchdir(int arg0); - -@ffi.Native() -external int fchown(int arg0, int arg1, int arg2); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, uid_t, gid_t, ffi.Int) ->() -external int fchownat( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, -); - -@ffi.Native)>() -external int fclose(ffi.Pointer arg0); - -@ffi.Native() -external int fcntl(int arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.Double, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer fcvt( - double arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native() -external double fdim(double arg0, double arg1); - -@ffi.Native() -external double fdimf(double arg0, double arg1); - -@ffi.Native Function(ffi.Int, ffi.Pointer)>() -external ffi.Pointer fdopen(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external int feclearexcept(int arg0); - -@ffi.Native)>() -external int fegetenv(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int fegetexceptflag(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int fegetround(); - -@ffi.Native)>() -external int feholdexcept(ffi.Pointer arg0); - -@ffi.Native)>() -external int feof(ffi.Pointer arg0); - -@ffi.Native() -external int feraiseexcept(int arg0); - -@ffi.Native)>() -external int ferror(ffi.Pointer arg0); - -@ffi.Native)>() -external int fesetenv(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int fesetexceptflag(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int fesetround(int arg0); - -@ffi.Native() -external int fetestexcept(int arg0); - -@ffi.Native)>() -external int feupdateenv(ffi.Pointer arg0); - -@ffi.Native Function(ffi.UnsignedLong)>() -external ffi.Pointer fflagstostr(int arg0); - -@ffi.Native)>() -external int fflush(ffi.Pointer arg0); - -@ffi.Native() -external int ffs(int arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int ffsctl(int arg0, int arg1, ffi.Pointer arg2, int arg3); - -@ffi.Native() -external int ffsl(int arg0); - -@ffi.Native() -external int ffsll(int arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt, - ) ->() -external int fgetattrlist( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, - int arg4, -); - -@ffi.Native)>() -external int fgetc(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer fgetln( - ffi.Pointer arg0, - ffi.Pointer __len, -); - -@ffi.Native, ffi.Pointer)>() -external int fgetpos(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer fgets( - ffi.Pointer arg0, - int __size, - ffi.Pointer arg2, -); - -@ffi.Native)>() -external int fileno(ffi.Pointer arg0); - -@ffi.Native() -external filesec_t filesec_dup(filesec_t arg0); - -@ffi.Native() -external void filesec_free(filesec_t arg0); - -@ffi.Native< - ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'filesec_get_property') -external int _filesec_get_property( - filesec_t arg0, - int arg1, - ffi.Pointer arg2, -); - -int filesec_get_property( - filesec_t arg0, - filesec_property_t arg1, - ffi.Pointer arg2, -) { - return _filesec_get_property(arg0, arg1.value, arg2); -} - -@ffi.Native() -external filesec_t filesec_init(); - -@ffi.Native)>( - symbol: 'filesec_query_property', -) -external int _filesec_query_property( - filesec_t arg0, - int arg1, - ffi.Pointer arg2, -); - -int filesec_query_property( - filesec_t arg0, - filesec_property_t arg1, - ffi.Pointer arg2, -) { - return _filesec_query_property(arg0, arg1.value, arg2); -} - -@ffi.Native< - ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'filesec_set_property') -external int _filesec_set_property( - filesec_t arg0, - int arg1, - ffi.Pointer arg2, -); - -int filesec_set_property( - filesec_t arg0, - filesec_property_t arg1, - ffi.Pointer arg2, -) { - return _filesec_set_property(arg0, arg1.value, arg2); -} - -@ffi.Native( - symbol: 'filesec_unset_property', -) -external int _filesec_unset_property(filesec_t arg0, int arg1); - -int filesec_unset_property(filesec_t arg0, filesec_property_t arg1) { - return _filesec_unset_property(arg0, arg1.value); -} - -@ffi.Native() -external int flock(int arg0, int arg1); - -@ffi.Native)>() -external void flockfile(ffi.Pointer arg0); - -@ffi.Native() -external double floor(double arg0); - -@ffi.Native() -external double floorf(double arg0); - -@ffi.Native() -external int fls(int arg0); - -@ffi.Native() -external int flsl(int arg0); - -@ffi.Native() -external int flsll(int arg0); - -@ffi.Native() -external double fma(double arg0, double arg1, double arg2); - -@ffi.Native() -external double fmaf(double arg0, double arg1, double arg2); - -@ffi.Native() -external double fmax(double arg0, double arg1); - -@ffi.Native() -external double fmaxf(double arg0, double arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external ffi.Pointer fmemopen( - ffi.Pointer __buf, - int __size, - ffi.Pointer __mode, -); - -@ffi.Native() -external double fmin(double arg0, double arg1); - -@ffi.Native() -external double fminf(double arg0, double arg1); - -@ffi.Native() -external double fmod(double arg0, double arg1); - -@ffi.Native() -external double fmodf(double arg0, double arg1); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer fmtcheck( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer fopen( - ffi.Pointer __filename, - ffi.Pointer __mode, -); - -@ffi.Native() -external int fork(); - -@ffi.Native() -external int fpathconf(int arg0, int arg1); - -@ffi.Native, ffi.Pointer)>() -external int fprintf(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external int fpurge(ffi.Pointer arg0); - -@ffi.Native)>() -external int fputc(int arg0, ffi.Pointer arg1); - -@ffi.Native, ffi.Pointer)>() -external int fputs(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->() -external int fread( - ffi.Pointer __ptr, - int __size, - int __nitems, - ffi.Pointer __stream, -); - -@ffi.Native, ffi.Size)>() -external int freadlink(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native)>() -external void free(ffi.Pointer arg0); - -@ffi.Native)>() -external void freeaddrinfo(ffi.Pointer arg0); - -@ffi.Native)>() -external void freehostent(ffi.Pointer arg0); - -@ffi.Native() -external int freelocale(locale_t arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer freopen( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native)>() -external double frexp(double arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external double frexpf(double arg0, ffi.Pointer arg1); - -@ffi.Native, ffi.Pointer)>() -external int fscanf(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int fsctl( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native, ffi.Long, ffi.Int)>() -external int fseek(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native, off_t, ffi.Int)>() -external int fseeko(ffi.Pointer __stream, int __offset, int __whence); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt, - ) ->() -external int fsetattrlist( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, - int arg4, -); - -@ffi.Native, ffi.Pointer)>() -external int fsetpos(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external int fsync(int arg0); - -@ffi.Native() -external int fsync_volume_np(int arg0, int arg1); - -@ffi.Native)>() -external int ftell(ffi.Pointer arg0); - -@ffi.Native)>() -external int ftello(ffi.Pointer __stream); - -@ffi.Native() -external int ftruncate(int arg0, int arg1); - -@ffi.Native)>() -external int ftrylockfile(ffi.Pointer arg0); - -@ffi.Native)>() -external void funlockfile(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - >, - ffi.Pointer< - ffi.NativeFunction< - fpos_t Function(ffi.Pointer, fpos_t, ffi.Int) - > - >, - ffi.Pointer)>>, - ) ->() -external ffi.Pointer funopen( - ffi.Pointer arg0, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - > - arg1, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - > - arg2, - ffi.Pointer< - ffi.NativeFunction, fpos_t, ffi.Int)> - > - arg3, - ffi.Pointer)>> arg4, -); - -@ffi.Native)>() -external int futimes(int arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->() -external int fwrite( - ffi.Pointer __ptr, - int __size, - int __nitems, - ffi.Pointer __stream, -); - -@ffi.Native() -external final CSSM_GUID gGuidAppleCSP; - -@ffi.Native() -external final CSSM_GUID gGuidAppleCSPDL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleDotMacDL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleDotMacTP; - -@ffi.Native() -external final CSSM_GUID gGuidAppleFileDL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleLDAPDL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleSdCSPDL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleX509CL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleX509TP; - -@ffi.Native() -external final CSSM_GUID gGuidCssm; - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer gai_strerror(int arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Double, ffi.Int, ffi.Pointer) ->() -external ffi.Pointer gcvt( - double arg0, - int arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int getaddrinfo( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt, - ) ->() -external int getattrlist( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, - int arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedLong, - ) ->() -external int getattrlistat( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - int arg4, - int arg5, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Uint64, - ) ->() -external int getattrlistbulk( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int getaudit(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int getaudit_addr(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int getauid(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer getbsize( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native)>() -external int getc(ffi.Pointer arg0); - -@ffi.Native)>() -external int getc_unlocked(ffi.Pointer arg0); - -@ffi.Native() -external int getchar(); - -@ffi.Native() -external int getchar_unlocked(); - -@ffi.Native Function(ffi.Pointer, ffi.Size)>() -external ffi.Pointer getcwd(ffi.Pointer arg0, int __size); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getdate(ffi.Pointer arg0); - -@ffi.Native() -external int getdate_err; - -@ffi.Native< - ssize_t Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int getdelim( - ffi.Pointer> __linep, - ffi.Pointer __linecapp, - int __delimiter, - ffi.Pointer __stream, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int getdirentriesattr( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, - ffi.Pointer arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - int arg7, -); - -@ffi.Native, ffi.Int)>() -external int getdomainname(ffi.Pointer arg0, int __namelen); - -@ffi.Native() -external int getdtablesize(); - -@ffi.Native() -external int getegid(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getenv(ffi.Pointer arg0); - -@ffi.Native() -external int geteuid(); - -@ffi.Native() -external int getgid(); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int getgrouplist( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer __ngroups, -); - -@ffi.Native)>() -external int getgroups(int __gidsetsize, ffi.Pointer arg1); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, socklen_t, ffi.Int) ->() -external ffi.Pointer gethostbyaddr( - ffi.Pointer arg0, - int arg1, - int arg2, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer gethostbyname(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer gethostbyname2( - ffi.Pointer arg0, - int arg1, -); - -@ffi.Native Function()>() -external ffi.Pointer gethostent(); - -@ffi.Native() -external int gethostid(); - -@ffi.Native, ffi.Size)>() -external int gethostname(ffi.Pointer arg0, int __namelen); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int gethostuuid( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int getiopolicy_np(int arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer getipnodebyaddr( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer getipnodebyname( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - in_addr, - in_addr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int getipv4sourcefilter( - int arg0, - in_addr arg1, - in_addr arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native)>() -external int getitimer(int arg0, ffi.Pointer arg1); - -@ffi.Native< - ssize_t Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int getline( - ffi.Pointer> __linep, - ffi.Pointer __linecapp, - ffi.Pointer __stream, -); - -@ffi.Native, ffi.Int)>() -external int getloadavg(ffi.Pointer arg0, int __nelem); - -@ffi.Native Function()>() -external ffi.Pointer getlogin(); - -@ffi.Native, ffi.Size)>() -external int getlogin_r(ffi.Pointer arg0, int __namelen); - -@ffi.Native, mode_t)>() -external int getmode(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - socklen_t, - ffi.Pointer, - socklen_t, - ffi.Pointer, - socklen_t, - ffi.Int, - ) ->() -external int getnameinfo( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - int arg5, - int arg6, -); - -@ffi.Native Function(ffi.Uint32, ffi.Int)>() -external ffi.Pointer getnetbyaddr(int arg0, int arg1); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getnetbyname(ffi.Pointer arg0); - -@ffi.Native Function()>() -external ffi.Pointer getnetent(); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int getnetgrent( - ffi.Pointer> arg0, - ffi.Pointer> arg1, - ffi.Pointer> arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int getopt( - int __argc, - ffi.Pointer> arg1, - ffi.Pointer arg2, -); - -@ffi.Native() -external int getpagesize(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getpass(ffi.Pointer arg0); - -@ffi.Native, ffi.Pointer)>() -external int getpeereid( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int getpeername( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native() -external int getpgid(int arg0); - -@ffi.Native() -external int getpgrp(); - -@ffi.Native() -external int getpid(); - -@ffi.Native() -external int getppid(); - -@ffi.Native() -external int getpriority(int arg0, int arg1); - -@ffi.Native Function()>() -external ffi.Pointer getprogname(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getprotobyname(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer getprotobynumber(int arg0); - -@ffi.Native Function()>() -external ffi.Pointer getprotoent(); - -@ffi.Native)>() -external int getrlimit(int arg0, ffi.Pointer arg1); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getrpcbyname(ffi.Pointer name); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer getrpcbynumber(int number); - -@ffi.Native Function()>() -external ffi.Pointer getrpcent(); - -@ffi.Native)>() -external int getrusage(int arg0, ffi.Pointer arg1); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of gets(3), it is highly recommended that you use fgets(3) instead.', -) -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer gets(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer getservbyname( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native Function(ffi.Int, ffi.Pointer)>() -external ffi.Pointer getservbyport( - int arg0, - ffi.Pointer arg1, -); - -@ffi.Native Function()>() -external ffi.Pointer getservent(); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int getsgroups_np( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int getsid(int arg0); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int getsockname( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int getsockopt( - int arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Uint32, - ffi.Pointer, - socklen_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int getsourcefilter( - int arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int getsubopt( - ffi.Pointer> arg0, - ffi.Pointer> arg1, - ffi.Pointer> arg2, -); - -@ffi.Native, ffi.Pointer)>() -external int gettimeofday( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int getuid(); - -@ffi.Native Function()>() -external ffi.Pointer getusershell(); - -@ffi.Native)>() -external int getw(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getwd(ffi.Pointer arg0); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int getwgroups_np( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer gmtime(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() -external ffi.Pointer gmtime_r( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int grantpt(int arg0); - -@ffi.Native() -external int h_errno; - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >, - ) ->() -external int heapsort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - __compar, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'heapsort_b') -external int _heapsort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer __compar, -); - -int heapsort_b( - ffi.Pointer __base, - int __nel, - int __width, - objc.ObjCBlock, ffi.Pointer)> - __compar, -) { - final _$$ref = __compar.ref; - return _heapsort_b(__base, __nel, __width, _$$ref.pointer); -} - -@ffi.Native)>() -external void herror(ffi.Pointer arg0); - -@ffi.Native)>() -external int host_check_multiuser_mode( - int host, - ffi.Pointer multiuser_mode, -); - -@ffi.Native< - kern_return_t Function( - host_t, - mach_voucher_attr_raw_recipe_array_t, - mach_msg_type_number_t, - ffi.Pointer, - ) ->() -external int host_create_mach_voucher( - int host, - mach_voucher_attr_raw_recipe_array_t recipes, - int recipesCnt, - ffi.Pointer voucher, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_voucher_attr_raw_recipe_array_t, - ffi.Int, - ffi.Pointer, - ) ->() -external int host_create_mach_voucher_trap( - int host, - mach_voucher_attr_raw_recipe_array_t recipes, - int recipes_size, - ffi.Pointer voucher, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - ffi.Pointer, - memory_object_cluster_size_t, - ) ->() -external int host_default_memory_manager( - int host_priv, - ffi.Pointer default_manager, - int cluster_size, -); - -@ffi.Native)>() -external int host_get_UNDServer(int host, ffi.Pointer server); - -@ffi.Native)>() -external int host_get_atm_diagnostic_flag( - int host, - ffi.Pointer diagnostic_flag, -); - -@ffi.Native)>() -external int host_get_boot_info(int host_priv, ffi.Pointer boot_info); - -@ffi.Native< - kern_return_t Function(host_priv_t, clock_id_t, ffi.Pointer) ->() -external int host_get_clock_control( - int host_priv, - int clock_id, - ffi.Pointer clock_ctrl, -); - -@ffi.Native< - kern_return_t Function(host_t, clock_id_t, ffi.Pointer) ->() -external int host_get_clock_service( - int host, - int clock_id, - ffi.Pointer clock_serv, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - exception_mask_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int host_get_exception_ports( - int host_priv, - int exception_mask, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlers, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native)>() -external int host_get_io_main(int host, ffi.Pointer io_main); - -@ffi.Native)>() -external int host_get_multiuser_config_flags( - int host, - ffi.Pointer multiuser_flags, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->() -external int host_get_special_port( - int host_priv, - int node, - int which, - ffi.Pointer port, -); - -@ffi.Native< - kern_return_t Function( - host_t, - host_flavor_t, - host_info_t, - ffi.Pointer, - ) ->() -external int host_info( - int host, - int flavor, - host_info_t host_info_out, - ffi.Pointer host_info_outCnt, -); - -@ffi.Native)>() -external int host_kernel_version( - int host, - ffi.Pointer kernel_version, -); - -@ffi.Native< - kern_return_t Function( - host_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_lockgroup_info( - int host, - ffi.Pointer lockgroup_info$1, - ffi.Pointer lockgroup_infoCnt, -); - -@ffi.Native)>() -external int host_page_size(int arg0, ffi.Pointer arg1); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - host_flavor_t, - host_info_t, - ffi.Pointer, - ) ->() -external int host_priv_statistics( - int host_priv, - int flavor, - host_info_t host_info_out, - ffi.Pointer host_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - host_t, - processor_flavor_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_processor_info( - int host, - int flavor, - ffi.Pointer out_processor_count, - ffi.Pointer out_processor_info, - ffi.Pointer out_processor_infoCnt, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - processor_set_name_t, - ffi.Pointer, - ) ->() -external int host_processor_set_priv( - int host_priv, - int set_name, - ffi.Pointer set, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_processor_sets( - int host_priv, - ffi.Pointer processor_sets, - ffi.Pointer processor_setsCnt, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_processors( - int host_priv, - ffi.Pointer out_processor_list, - ffi.Pointer out_processor_listCnt, -); - -@ffi.Native() -external int host_reboot(int host_priv, int options); - -@ffi.Native< - kern_return_t Function( - host_t, - mach_voucher_attr_manager_t, - mach_voucher_attr_value_handle_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_register_mach_voucher_attr_manager( - int host, - int attr_manager, - int default_value, - ffi.Pointer new_key, - ffi.Pointer new_attr_control, -); - -@ffi.Native< - kern_return_t Function( - host_t, - mach_voucher_attr_manager_t, - mach_voucher_attr_value_handle_t, - mach_voucher_attr_key_t, - ffi.Pointer, - ) ->() -external int host_register_well_known_mach_voucher_attr_manager( - int host, - int attr_manager, - int default_value, - int key, - ffi.Pointer new_attr_control, -); - -@ffi.Native() -external int host_request_notification( - int host, - int notify_type, - int notify_port, -); - -@ffi.Native< - kern_return_t Function( - host_security_t, - task_t, - security_token_t, - audit_token_t, - host_t, - ledger_array_t, - mach_msg_type_number_t, - boolean_t, - ffi.Pointer, - ) ->() -external int host_security_create_task_token( - int host_security, - int parent_task, - security_token_t sec_token, - audit_token_t audit_token, - int host, - ledger_array_t ledgers, - int ledgersCnt, - int inherit_memory, - ffi.Pointer child_task, -); - -@ffi.Native< - kern_return_t Function( - host_security_t, - task_t, - security_token_t, - audit_token_t, - host_t, - ) ->() -external int host_security_set_task_token( - int host_security, - int target_task, - security_token_t sec_token, - audit_token_t audit_token, - int host, -); - -@ffi.Native() -external int host_set_UNDServer(int host, int server); - -@ffi.Native() -external int host_set_atm_diagnostic_flag(int host, int diagnostic_flag); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - ) ->() -external int host_set_exception_ports( - int host_priv, - int exception_mask, - int new_port, - int behavior, - int new_flavor, -); - -@ffi.Native() -external int host_set_multiuser_config_flags( - int host_priv, - int multiuser_flags, -); - -@ffi.Native() -external int host_set_special_port(int host_priv, int which, int port); - -@ffi.Native< - kern_return_t Function( - host_t, - host_flavor_t, - host_info_t, - ffi.Pointer, - ) ->() -external int host_statistics( - int host_priv, - int flavor, - host_info_t host_info_out, - ffi.Pointer host_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - host_t, - host_flavor_t, - host_info64_t, - ffi.Pointer, - ) ->() -external int host_statistics64( - int host_priv, - int flavor, - host_info64_t host_info64_out, - ffi.Pointer host_info64_outCnt, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int host_swap_exception_ports( - int host_priv, - int exception_mask, - int new_port, - int behavior, - int new_flavor, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlerss, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - host_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_virtual_physical_table_info( - int host, - ffi.Pointer info, - ffi.Pointer infoCnt, -); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer hstrerror(int arg0); - -@ffi.Native Function(ffi.Int, ffi.Int)>() -external ffi.Pointer httpAcceptConnection(int fd, int blocking); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int httpAddCredential( - ffi.Pointer credentials, - ffi.Pointer data, - int datalen, -); - -@ffi.Native)>() -external int httpAddrAny(ffi.Pointer addr); - -@ffi.Native, ffi.Int)>() -external int httpAddrClose(ffi.Pointer addr, int fd); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer httpAddrConnect( - ffi.Pointer addrlist, - ffi.Pointer sock, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer httpAddrConnect2( - ffi.Pointer addrlist, - ffi.Pointer sock, - int msec, - ffi.Pointer cancel, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->() -external ffi.Pointer httpAddrCopyList( - ffi.Pointer src, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int httpAddrEqual( - ffi.Pointer addr1, - ffi.Pointer addr2, -); - -@ffi.Native)>() -external int httpAddrFamily(ffi.Pointer addr); - -@ffi.Native)>() -external void httpAddrFreeList(ffi.Pointer addrlist); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer httpAddrGetList( - ffi.Pointer hostname, - int family, - ffi.Pointer service, -); - -@ffi.Native)>() -external int httpAddrLength(ffi.Pointer addr); - -@ffi.Native, ffi.Int)>() -external int httpAddrListen(ffi.Pointer addr, int port); - -@ffi.Native)>() -external int httpAddrLocalhost(ffi.Pointer addr); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer httpAddrLookup( - ffi.Pointer addr, - ffi.Pointer name, - int namelen, -); - -@ffi.Native)>() -external int httpAddrPort(ffi.Pointer addr); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer httpAddrString( - ffi.Pointer addr, - ffi.Pointer s, - int slen, -); - -@ffi.Native< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'httpAssembleURI') -external int _httpAssembleURI( - int encoding, - ffi.Pointer uri, - int urilen, - ffi.Pointer scheme, - ffi.Pointer username, - ffi.Pointer host, - int port, - ffi.Pointer resource, -); - -http_uri_status_e httpAssembleURI( - http_uri_coding_e encoding, - ffi.Pointer uri, - int urilen, - ffi.Pointer scheme, - ffi.Pointer username, - ffi.Pointer host, - int port, - ffi.Pointer resource, -) { - return http_uri_status_e.fromValue( - _httpAssembleURI( - encoding.value, - uri, - urilen, - scheme, - username, - host, - port, - resource, - ), - ); -} - -@ffi.Native< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'httpAssembleURIf') -external int _httpAssembleURIf( - int encoding, - ffi.Pointer uri, - int urilen, - ffi.Pointer scheme, - ffi.Pointer username, - ffi.Pointer host, - int port, - ffi.Pointer resourcef, -); - -http_uri_status_e httpAssembleURIf( - http_uri_coding_e encoding, - ffi.Pointer uri, - int urilen, - ffi.Pointer scheme, - ffi.Pointer username, - ffi.Pointer host, - int port, - ffi.Pointer resourcef, -) { - return http_uri_status_e.fromValue( - _httpAssembleURIf( - encoding.value, - uri, - urilen, - scheme, - username, - host, - port, - resourcef, - ), - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer httpAssembleUUID( - ffi.Pointer server, - int port, - ffi.Pointer name, - int number, - ffi.Pointer buffer, - int bufsize, -); - -@ffi.Native, ffi.Int)>() -external void httpBlocking(ffi.Pointer http, int b); - -@ffi.Native)>() -external int httpCheck(ffi.Pointer http); - -@ffi.Native)>() -external void httpClearCookie(ffi.Pointer http); - -@ffi.Native)>() -external void httpClearFields(ffi.Pointer http); - -@ffi.Native)>() -external void httpClose(ffi.Pointer http); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int httpCompareCredentials( - ffi.Pointer cred1, - ffi.Pointer cred2, -); - -@Deprecated('Use httpConnect2 instead.') -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer httpConnect(ffi.Pointer host, int port); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.UnsignedInt, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'httpConnect2') -external ffi.Pointer _httpConnect2( - ffi.Pointer host, - int port, - ffi.Pointer addrlist, - int family, - int encryption, - int blocking, - int msec, - ffi.Pointer cancel, -); - -ffi.Pointer httpConnect2( - ffi.Pointer host, - int port, - ffi.Pointer addrlist, - int family, - http_encryption_e encryption, - int blocking, - int msec, - ffi.Pointer cancel, -) { - return _httpConnect2( - host, - port, - addrlist, - family, - encryption.value, - blocking, - msec, - cancel, - ); -} - -@Deprecated('Use httpConnect2 instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.UnsignedInt) ->(symbol: 'httpConnectEncrypt') -external ffi.Pointer _httpConnectEncrypt( - ffi.Pointer host, - int port, - int encryption, -); - -ffi.Pointer httpConnectEncrypt( - ffi.Pointer host, - int port, - http_encryption_e encryption, -) { - return _httpConnectEncrypt(host, port, encryption.value); -} - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer>) ->() -external int httpCopyCredentials( - ffi.Pointer http, - ffi.Pointer> credentials, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int httpCredentialsAreValidForName( - ffi.Pointer credentials, - ffi.Pointer common_name, -); - -@ffi.Native)>() -external int httpCredentialsGetExpiration( - ffi.Pointer credentials, -); - -@ffi.Native< - ffi.UnsignedInt Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'httpCredentialsGetTrust') -external int _httpCredentialsGetTrust( - ffi.Pointer credentials, - ffi.Pointer common_name, -); - -http_trust_e httpCredentialsGetTrust( - ffi.Pointer credentials, - ffi.Pointer common_name, -) { - return http_trust_e.fromValue( - _httpCredentialsGetTrust(credentials, common_name), - ); -} - -@ffi.Native< - ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int httpCredentialsString( - ffi.Pointer credentials, - ffi.Pointer buffer, - int bufsize, -); - -@Deprecated('Use httpDecode64_2 instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer httpDecode64( - ffi.Pointer out, - ffi.Pointer in$, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer httpDecode64_2( - ffi.Pointer out, - ffi.Pointer outlen, - ffi.Pointer in$, -); - -@ffi.Native, ffi.Pointer)>() -external int httpDelete(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native)>() -external int httpDeleteCredentials(ffi.Pointer common_name); - -@Deprecated('Use httpEncode64_2 instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer httpEncode64( - ffi.Pointer out, - ffi.Pointer in$, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer httpEncode64_2( - ffi.Pointer out, - int outlen, - ffi.Pointer in$, - int inlen, -); - -@ffi.Native, ffi.UnsignedInt)>( - symbol: 'httpEncryption', -) -external int _httpEncryption(ffi.Pointer http, int e); - -int httpEncryption(ffi.Pointer http, http_encryption_e e) { - return _httpEncryption(http, e.value); -} - -@ffi.Native)>() -external int httpError(ffi.Pointer http); - -@ffi.Native)>(symbol: 'httpFieldValue') -external int _httpFieldValue(ffi.Pointer name); - -http_field_e httpFieldValue(ffi.Pointer name) { - return http_field_e.fromValue(_httpFieldValue(name)); -} - -@ffi.Native)>() -external void httpFlush(ffi.Pointer http); - -@ffi.Native)>() -external int httpFlushWrite(ffi.Pointer http); - -@ffi.Native)>() -external void httpFreeCredentials(ffi.Pointer certs); - -@ffi.Native, ffi.Pointer)>() -external int httpGet(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native)>() -external int httpGetActivity(ffi.Pointer http); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer httpGetAddress(ffi.Pointer http); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer httpGetAuthString(ffi.Pointer http); - -@ffi.Native)>() -external int httpGetBlocking(ffi.Pointer http); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer httpGetContentEncoding(ffi.Pointer http); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer httpGetCookie(ffi.Pointer http); - -@ffi.Native Function(time_t)>() -external ffi.Pointer httpGetDateString(int t); - -@ffi.Native< - ffi.Pointer Function(time_t, ffi.Pointer, ffi.Int) ->() -external ffi.Pointer httpGetDateString2( - int t, - ffi.Pointer s, - int slen, -); - -@ffi.Native)>() -external int httpGetDateTime(ffi.Pointer s); - -@ffi.Native)>( - symbol: 'httpGetEncryption', -) -external int _httpGetEncryption(ffi.Pointer http); - -http_encryption_e httpGetEncryption(ffi.Pointer http) { - return http_encryption_e.fromValue(_httpGetEncryption(http)); -} - -@ffi.Native)>(symbol: 'httpGetExpect') -external int _httpGetExpect(ffi.Pointer http); - -http_status_e httpGetExpect(ffi.Pointer http) { - return http_status_e.fromValue(_httpGetExpect(http)); -} - -@ffi.Native)>() -external int httpGetFd(ffi.Pointer http); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>( - symbol: 'httpGetField', -) -external ffi.Pointer _httpGetField( - ffi.Pointer http, - int field, -); - -ffi.Pointer httpGetField( - ffi.Pointer http, - http_field_e field, -) { - return _httpGetField(http, field.value); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer httpGetHostByName(ffi.Pointer name); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer httpGetHostname( - ffi.Pointer http, - ffi.Pointer s, - int slen, -); - -@ffi.Native)>( - symbol: 'httpGetKeepAlive', -) -external int _httpGetKeepAlive(ffi.Pointer http); - -http_keepalive_e httpGetKeepAlive(ffi.Pointer http) { - return http_keepalive_e.fromValue(_httpGetKeepAlive(http)); -} - -@Deprecated('Use httpGetLength2 instead.') -@ffi.Native)>() -external int httpGetLength(ffi.Pointer http); - -@ffi.Native)>() -external int httpGetLength2(ffi.Pointer http); - -@ffi.Native)>() -external int httpGetPending(ffi.Pointer http); - -@ffi.Native)>() -external int httpGetReady(ffi.Pointer http); - -@ffi.Native)>() -external int httpGetRemaining(ffi.Pointer http); - -@ffi.Native)>(symbol: 'httpGetState') -external int _httpGetState(ffi.Pointer http); - -http_state_e httpGetState(ffi.Pointer http) { - return http_state_e.fromValue(_httpGetState(http)); -} - -@ffi.Native)>(symbol: 'httpGetStatus') -external int _httpGetStatus(ffi.Pointer http); - -http_status_e httpGetStatus(ffi.Pointer http) { - return http_status_e.fromValue(_httpGetStatus(http)); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'httpGetSubField') -external ffi.Pointer _httpGetSubField( - ffi.Pointer http, - int field, - ffi.Pointer name, - ffi.Pointer value, -); - -ffi.Pointer httpGetSubField( - ffi.Pointer http, - http_field_e field, - ffi.Pointer name, - ffi.Pointer value, -) { - return _httpGetSubField(http, field.value, name, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'httpGetSubField2') -external ffi.Pointer _httpGetSubField2( - ffi.Pointer http, - int field, - ffi.Pointer name, - ffi.Pointer value, - int valuelen, -); - -ffi.Pointer httpGetSubField2( - ffi.Pointer http, - http_field_e field, - ffi.Pointer name, - ffi.Pointer value, - int valuelen, -) { - return _httpGetSubField2(http, field.value, name, value, valuelen); -} - -@ffi.Native)>( - symbol: 'httpGetVersion', -) -external int _httpGetVersion(ffi.Pointer http); - -http_version_e httpGetVersion(ffi.Pointer http) { - return http_version_e.fromValue(_httpGetVersion(http)); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer httpGets( - ffi.Pointer line, - int length, - ffi.Pointer http, -); - -@ffi.Native, ffi.Pointer)>() -external int httpHead(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native() -external void httpInitialize(); - -@ffi.Native)>() -external int httpIsChunked(ffi.Pointer http); - -@ffi.Native)>() -external int httpIsEncrypted(ffi.Pointer http); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int httpLoadCredentials( - ffi.Pointer path, - ffi.Pointer> credentials, - ffi.Pointer common_name, -); - -@Deprecated('Use cupsDoAuth or cupsHashData instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer httpMD5( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@Deprecated('Use cupsDoAuth or cupsHashData instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer httpMD5Final( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@Deprecated('Use cupsHashString instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer httpMD5String( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native, ffi.Pointer)>() -external int httpOptions(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int httpPeek( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native, ffi.Pointer)>() -external int httpPost(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native, ffi.Pointer)>() -external int httpPrintf(ffi.Pointer http, ffi.Pointer format); - -@ffi.Native, ffi.Pointer)>() -external int httpPut(ffi.Pointer http, ffi.Pointer uri); - -@Deprecated('Use httpRead2 instead.') -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int httpRead( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int httpRead2( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->(symbol: 'httpReadRequest') -external int _httpReadRequest( - ffi.Pointer http, - ffi.Pointer resource, - int resourcelen, -); - -http_state_e httpReadRequest( - ffi.Pointer http, - ffi.Pointer resource, - int resourcelen, -) { - return http_state_e.fromValue(_httpReadRequest(http, resource, resourcelen)); -} - -@Deprecated('Use httpReconnect2 instead.') -@ffi.Native)>() -external int httpReconnect(ffi.Pointer http); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int httpReconnect2( - ffi.Pointer http, - int msec, - ffi.Pointer cancel, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer httpResolveHostname( - ffi.Pointer http, - ffi.Pointer buffer, - int bufsize, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int httpSaveCredentials( - ffi.Pointer path, - ffi.Pointer credentials, - ffi.Pointer common_name, -); - -@Deprecated('Use httpSeparateURI instead.') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void httpSeparate( - ffi.Pointer uri, - ffi.Pointer method, - ffi.Pointer username, - ffi.Pointer host, - ffi.Pointer port, - ffi.Pointer resource, -); - -@Deprecated('Use httpSeparateURI instead.') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external void httpSeparate2( - ffi.Pointer uri, - ffi.Pointer method, - int methodlen, - ffi.Pointer username, - int usernamelen, - ffi.Pointer host, - int hostlen, - ffi.Pointer port, - ffi.Pointer resource, - int resourcelen, -); - -@ffi.Native< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'httpSeparateURI') -external int _httpSeparateURI( - int decoding, - ffi.Pointer uri, - ffi.Pointer scheme, - int schemelen, - ffi.Pointer username, - int usernamelen, - ffi.Pointer host, - int hostlen, - ffi.Pointer port, - ffi.Pointer resource, - int resourcelen, -); - -http_uri_status_e httpSeparateURI( - http_uri_coding_e decoding, - ffi.Pointer uri, - ffi.Pointer scheme, - int schemelen, - ffi.Pointer username, - int usernamelen, - ffi.Pointer host, - int hostlen, - ffi.Pointer port, - ffi.Pointer resource, - int resourcelen, -) { - return http_uri_status_e.fromValue( - _httpSeparateURI( - decoding.value, - uri, - scheme, - schemelen, - username, - usernamelen, - host, - hostlen, - port, - resource, - resourcelen, - ), - ); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void httpSetAuthString( - ffi.Pointer http, - ffi.Pointer scheme, - ffi.Pointer data, -); - -@ffi.Native, ffi.Pointer)>() -external void httpSetCookie( - ffi.Pointer http, - ffi.Pointer cookie, -); - -@ffi.Native, ffi.Pointer)>() -external int httpSetCredentials( - ffi.Pointer http, - ffi.Pointer certs, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->(symbol: 'httpSetDefaultField') -external void _httpSetDefaultField( - ffi.Pointer http, - int field, - ffi.Pointer value, -); - -void httpSetDefaultField( - ffi.Pointer http, - http_field_e field, - ffi.Pointer value, -) { - return _httpSetDefaultField(http, field.value, value); -} - -@ffi.Native, ffi.Int)>( - symbol: 'httpSetExpect', -) -external void _httpSetExpect(ffi.Pointer http, int expect); - -void httpSetExpect(ffi.Pointer http, http_status_e expect) { - return _httpSetExpect(http, expect.value); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->(symbol: 'httpSetField') -external void _httpSetField( - ffi.Pointer http, - int field, - ffi.Pointer value, -); - -void httpSetField( - ffi.Pointer http, - http_field_e field, - ffi.Pointer value, -) { - return _httpSetField(http, field.value, value); -} - -@ffi.Native, ffi.UnsignedInt)>( - symbol: 'httpSetKeepAlive', -) -external void _httpSetKeepAlive(ffi.Pointer http, int keep_alive); - -void httpSetKeepAlive(ffi.Pointer http, http_keepalive_e keep_alive) { - return _httpSetKeepAlive(http, keep_alive.value); -} - -@ffi.Native, ffi.Size)>() -external void httpSetLength(ffi.Pointer http, int length); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Double, - http_timeout_cb_t, - ffi.Pointer, - ) ->() -external void httpSetTimeout( - ffi.Pointer http, - double timeout, - http_timeout_cb_t cb, - ffi.Pointer user_data, -); - -@ffi.Native)>() -external void httpShutdown(ffi.Pointer http); - -@ffi.Native Function(ffi.Int)>(symbol: 'httpStateString') -external ffi.Pointer _httpStateString(int state); - -ffi.Pointer httpStateString(http_state_e state) { - return _httpStateString(state.value); -} - -@ffi.Native Function(ffi.Int)>(symbol: 'httpStatus') -external ffi.Pointer _httpStatus(int status); - -ffi.Pointer httpStatus(http_status_e status) { - return _httpStatus(status.value); -} - -@ffi.Native, ffi.Pointer)>() -external int httpTrace(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native Function(ffi.Int)>( - symbol: 'httpURIStatusString', -) -external ffi.Pointer _httpURIStatusString(int status); - -ffi.Pointer httpURIStatusString(http_uri_status_e status) { - return _httpURIStatusString(status.value); -} - -@ffi.Native)>(symbol: 'httpUpdate') -external int _httpUpdate(ffi.Pointer http); - -http_status_e httpUpdate(ffi.Pointer http) { - return http_status_e.fromValue(_httpUpdate(http)); -} - -@ffi.Native, ffi.Int)>() -external int httpWait(ffi.Pointer http, int msec); - -@Deprecated('Use httpWrite2 instead.') -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int httpWrite( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int httpWrite2( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native, ffi.Int)>( - symbol: 'httpWriteResponse', -) -external int _httpWriteResponse(ffi.Pointer http, int status); - -http_state_e httpWriteResponse(ffi.Pointer http, http_status_e status) { - return http_state_e.fromValue(_httpWriteResponse(http, status.value)); -} - -@ffi.Native() -external double hypot(double arg0, double arg1); - -@ffi.Native() -external double hypotf(double arg0, double arg1); - -@ffi.Native() -external int ilogb(double arg0); - -@ffi.Native() -external int ilogbf(double arg0); - -@ffi.Native() -external int imaxabs(int j); - -@ffi.Native() -external imaxdiv_t imaxdiv(int __numer, int __denom); - -@ffi.Native() -external final in6_addr in6addr_any; - -@ffi.Native() -external final in6_addr in6addr_linklocal_allnodes; - -@ffi.Native() -external final in6_addr in6addr_linklocal_allrouters; - -@ffi.Native() -external final in6_addr in6addr_linklocal_allv2routers; - -@ffi.Native() -external final in6_addr in6addr_loopback; - -@ffi.Native() -external final in6_addr in6addr_nodelocal_allnodes; - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer index(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - socklen_t, - ffi.Int, - __uint8_t, - socklen_t, - __uint8_t, - ffi.Pointer>, - ) ->() -external int inet6_opt_append( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, - int arg4, - int arg5, - ffi.Pointer> arg6, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - socklen_t, - ffi.Int, - __uint8_t, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int inet6_opt_find( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, - ffi.Pointer arg4, - ffi.Pointer> arg5, -); - -@ffi.Native, socklen_t, ffi.Int)>() -external int inet6_opt_finish(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - socklen_t, - ) ->() -external int inet6_opt_get_val( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native, socklen_t)>() -external int inet6_opt_init(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - socklen_t, - ffi.Int, - ffi.Pointer<__uint8_t>, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int inet6_opt_next( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer<__uint8_t> arg3, - ffi.Pointer arg4, - ffi.Pointer> arg5, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - socklen_t, - ) ->() -external int inet6_opt_set_val( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native< - ffi.Pointer<__uint8_t> Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Int, - ) ->() -external ffi.Pointer<__uint8_t> inet6_option_alloc( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer<__uint8_t>, - ffi.Int, - ffi.Int, - ) ->() -external int inet6_option_append( - ffi.Pointer arg0, - ffi.Pointer<__uint8_t> arg1, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int inet6_option_find( - ffi.Pointer arg0, - ffi.Pointer> arg1, - int arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int inet6_option_init( - ffi.Pointer arg0, - ffi.Pointer> arg1, - int arg2, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer>) ->() -external int inet6_option_next( - ffi.Pointer arg0, - ffi.Pointer> arg1, -); - -@ffi.Native() -external int inet6_option_space(int arg0); - -@ffi.Native, ffi.Pointer)>() -external int inet6_rth_add( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer inet6_rth_getaddr( - ffi.Pointer arg0, - int arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - socklen_t, - ffi.Int, - ffi.Int, - ) ->() -external ffi.Pointer inet6_rth_init( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native, ffi.Pointer)>() -external int inet6_rth_reverse( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native)>() -external int inet6_rth_segments(ffi.Pointer arg0); - -@ffi.Native() -external int inet6_rth_space(int arg0, int arg1); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt) ->() -external int inet6_rthdr_add( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer inet6_rthdr_getaddr( - ffi.Pointer arg0, - int arg1, -); - -@ffi.Native, ffi.Int)>() -external int inet6_rthdr_getflags(ffi.Pointer arg0, int arg1); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer inet6_rthdr_init( - ffi.Pointer arg0, - int arg1, -); - -@ffi.Native, ffi.UnsignedInt)>() -external int inet6_rthdr_lasthop(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int inet6_rthdr_segments(ffi.Pointer arg0); - -@ffi.Native() -external int inet6_rthdr_space(int arg0, int arg1); - -@ffi.Native)>() -external int inet_addr(ffi.Pointer arg0); - -@ffi.Native, ffi.Pointer)>() -external int inet_aton(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external int inet_lnaof(in_addr arg0); - -@ffi.Native() -external in_addr inet_makeaddr(int arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - __darwin_size_t, - ) ->() -external ffi.Pointer inet_net_ntop( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - int __size, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - __darwin_size_t, - ) ->() -external int inet_net_pton( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __size, -); - -@ffi.Native< - ffi.Pointer Function( - in_addr_t, - ffi.Pointer, - __darwin_size_t, - ) ->() -external ffi.Pointer inet_neta( - int arg0, - ffi.Pointer arg1, - int __size, -); - -@ffi.Native() -external int inet_netof(in_addr arg0); - -@ffi.Native)>() -external int inet_network(ffi.Pointer arg0); - -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external int inet_nsap_addr( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __maxlen, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer inet_nsap_ntoa( - int __binlen, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native Function(in_addr)>() -external ffi.Pointer inet_ntoa(in_addr arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - socklen_t, - ) ->() -external ffi.Pointer inet_ntop( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __size, -); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int inet_pton( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native, ffi.Int)>() -external int initgroups(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer initstate( - int arg0, - ffi.Pointer arg1, - int __size, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int innetgr( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Char, - ) ->(symbol: 'ippAddBoolean') -external ffi.Pointer _ippAddBoolean( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int value, -); - -ffi.Pointer ippAddBoolean( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int value, -) { - return _ippAddBoolean(ipp, group.value, name, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'ippAddBooleans') -external ffi.Pointer _ippAddBooleans( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int num_values, - ffi.Pointer values, -); - -ffi.Pointer ippAddBooleans( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int num_values, - ffi.Pointer values, -) { - return _ippAddBooleans(ipp, group.value, name, num_values, values); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddCollection') -external ffi.Pointer _ippAddCollection( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - ffi.Pointer value, -); - -ffi.Pointer ippAddCollection( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - ffi.Pointer value, -) { - return _ippAddCollection(ipp, group.value, name, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->(symbol: 'ippAddCollections') -external ffi.Pointer _ippAddCollections( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int num_values, - ffi.Pointer> values, -); - -ffi.Pointer ippAddCollections( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int num_values, - ffi.Pointer> values, -) { - return _ippAddCollections(ipp, group.value, name, num_values, values); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddDate') -external ffi.Pointer _ippAddDate( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - ffi.Pointer value, -); - -ffi.Pointer ippAddDate( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - ffi.Pointer value, -) { - return _ippAddDate(ipp, group.value, name, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'ippAddInteger') -external ffi.Pointer _ippAddInteger( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - int value, -); - -ffi.Pointer ippAddInteger( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - int value, -) { - return _ippAddInteger(ipp, group.value, value_tag.value, name, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'ippAddIntegers') -external ffi.Pointer _ippAddIntegers( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - int num_values, - ffi.Pointer values, -); - -ffi.Pointer ippAddIntegers( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - int num_values, - ffi.Pointer values, -) { - return _ippAddIntegers( - ipp, - group.value, - value_tag.value, - name, - num_values, - values, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'ippAddOctetString') -external ffi.Pointer _ippAddOctetString( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - ffi.Pointer data, - int datalen, -); - -ffi.Pointer ippAddOctetString( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - ffi.Pointer data, - int datalen, -) { - return _ippAddOctetString(ipp, group.value, name, data, datalen); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'ippAddOutOfBand') -external ffi.Pointer _ippAddOutOfBand( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, -); - -ffi.Pointer ippAddOutOfBand( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, -) { - return _ippAddOutOfBand(ipp, group.value, value_tag.value, name); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Int, - ) ->(symbol: 'ippAddRange') -external ffi.Pointer _ippAddRange( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int lower, - int upper, -); - -ffi.Pointer ippAddRange( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int lower, - int upper, -) { - return _ippAddRange(ipp, group.value, name, lower, upper); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddRanges') -external ffi.Pointer _ippAddRanges( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int num_values, - ffi.Pointer lower, - ffi.Pointer upper, -); - -ffi.Pointer ippAddRanges( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int num_values, - ffi.Pointer lower, - ffi.Pointer upper, -) { - return _ippAddRanges(ipp, group.value, name, num_values, lower, upper); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ffi.Int, - ) ->(symbol: 'ippAddResolution') -external ffi.Pointer _ippAddResolution( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int units, - int xres, - int yres, -); - -ffi.Pointer ippAddResolution( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - ipp_res_e units, - int xres, - int yres, -) { - return _ippAddResolution(ipp, group.value, name, units.value, xres, yres); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddResolutions') -external ffi.Pointer _ippAddResolutions( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int num_values, - int units, - ffi.Pointer xres, - ffi.Pointer yres, -); - -ffi.Pointer ippAddResolutions( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int num_values, - ipp_res_e units, - ffi.Pointer xres, - ffi.Pointer yres, -) { - return _ippAddResolutions( - ipp, - group.value, - name, - num_values, - units.value, - xres, - yres, - ); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippAddSeparator(ffi.Pointer ipp); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddString') -external ffi.Pointer _ippAddString( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer value, -); - -ffi.Pointer ippAddString( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer value, -) { - return _ippAddString( - ipp, - group.value, - value_tag.value, - name, - language, - value, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddStringf') -external ffi.Pointer _ippAddStringf( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer format, -); - -ffi.Pointer ippAddStringf( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer format, -) { - return _ippAddStringf( - ipp, - group.value, - value_tag.value, - name, - language, - format, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - va_list, - ) ->(symbol: 'ippAddStringfv') -external ffi.Pointer _ippAddStringfv( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer format, - va_list ap, -); - -ffi.Pointer ippAddStringfv( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer format, - va_list ap, -) { - return _ippAddStringfv( - ipp, - group.value, - value_tag.value, - name, - language, - format, - ap, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer>, - ) ->(symbol: 'ippAddStrings') -external ffi.Pointer _ippAddStrings( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - int num_values, - ffi.Pointer language, - ffi.Pointer> values, -); - -ffi.Pointer ippAddStrings( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - int num_values, - ffi.Pointer language, - ffi.Pointer> values, -) { - return _ippAddStrings( - ipp, - group.value, - value_tag.value, - name, - num_values, - language, - values, - ); -} - -@ffi.Native< - ffi.Size Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external int ippAttributeString( - ffi.Pointer attr, - ffi.Pointer buffer, - int bufsize, -); - -@ffi.Native, ffi.Int)>() -external int ippContainsInteger(ffi.Pointer attr, int value); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int ippContainsString( - ffi.Pointer attr, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer ippCopyAttribute( - ffi.Pointer dst, - ffi.Pointer attr, - int quickcopy, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ipp_copycb_t, - ffi.Pointer, - ) ->() -external int ippCopyAttributes( - ffi.Pointer dst, - ffi.Pointer src, - int quickcopy, - ipp_copycb_t cb, - ffi.Pointer context, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippCreateRequestedArray( - ffi.Pointer request, -); - -@ffi.Native)>() -external int ippDateToTime(ffi.Pointer date); - -@ffi.Native)>() -external void ippDelete(ffi.Pointer ipp); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void ippDeleteAttribute( - ffi.Pointer ipp, - ffi.Pointer attr, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Int, - ) ->() -external int ippDeleteValues( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - int count, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer ippEnumString( - ffi.Pointer attrname, - int enumvalue, -); - -@ffi.Native, ffi.Pointer)>() -external int ippEnumValue( - ffi.Pointer attrname, - ffi.Pointer enumstring, -); - -@ffi.Native Function(ffi.Int)>(symbol: 'ippErrorString') -external ffi.Pointer _ippErrorString(int error); - -ffi.Pointer ippErrorString(ipp_status_e error) { - return _ippErrorString(error.value); -} - -@ffi.Native)>(symbol: 'ippErrorValue') -external int _ippErrorValue(ffi.Pointer name); - -ipp_status_e ippErrorValue(ffi.Pointer name) { - return ipp_status_e.fromValue(_ippErrorValue(name)); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'ippFindAttribute') -external ffi.Pointer _ippFindAttribute( - ffi.Pointer ipp, - ffi.Pointer name, - int value_tag, -); - -ffi.Pointer ippFindAttribute( - ffi.Pointer ipp, - ffi.Pointer name, - ipp_tag_e value_tag, -) { - return _ippFindAttribute(ipp, name, value_tag.value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'ippFindNextAttribute') -external ffi.Pointer _ippFindNextAttribute( - ffi.Pointer ipp, - ffi.Pointer name, - int value_tag, -); - -ffi.Pointer ippFindNextAttribute( - ffi.Pointer ipp, - ffi.Pointer name, - ipp_tag_e value_tag, -) { - return _ippFindNextAttribute(ipp, name, value_tag.value); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippFirstAttribute(ffi.Pointer ipp); - -@ffi.Native, ffi.Int)>() -external int ippGetBoolean(ffi.Pointer attr, int element); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int) ->() -external ffi.Pointer ippGetCollection( - ffi.Pointer attr, - int element, -); - -@ffi.Native)>() -external int ippGetCount(ffi.Pointer attr); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int) ->() -external ffi.Pointer ippGetDate( - ffi.Pointer attr, - int element, -); - -@ffi.Native)>( - symbol: 'ippGetGroupTag', -) -external int _ippGetGroupTag(ffi.Pointer attr); - -ipp_tag_e ippGetGroupTag(ffi.Pointer attr) { - return ipp_tag_e.fromValue(_ippGetGroupTag(attr)); -} - -@ffi.Native, ffi.Int)>() -external int ippGetInteger(ffi.Pointer attr, int element); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippGetName(ffi.Pointer attr); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer ippGetOctetString( - ffi.Pointer attr, - int element, - ffi.Pointer datalen, -); - -@ffi.Native)>(symbol: 'ippGetOperation') -external int _ippGetOperation(ffi.Pointer ipp); - -ipp_op_e ippGetOperation(ffi.Pointer ipp) { - return ipp_op_e.fromValue(_ippGetOperation(ipp)); -} - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int ippGetRange( - ffi.Pointer attr, - int element, - ffi.Pointer upper, -); - -@ffi.Native)>() -external int ippGetRequestId(ffi.Pointer ipp); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ippGetResolution( - ffi.Pointer attr, - int element, - ffi.Pointer yres, - ffi.Pointer units, -); - -@ffi.Native)>(symbol: 'ippGetState') -external int _ippGetState(ffi.Pointer ipp); - -ipp_state_e ippGetState(ffi.Pointer ipp) { - return ipp_state_e.fromValue(_ippGetState(ipp)); -} - -@ffi.Native)>(symbol: 'ippGetStatusCode') -external int _ippGetStatusCode(ffi.Pointer ipp); - -ipp_status_e ippGetStatusCode(ffi.Pointer ipp) { - return ipp_status_e.fromValue(_ippGetStatusCode(ipp)); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external ffi.Pointer ippGetString( - ffi.Pointer attr, - int element, - ffi.Pointer> language, -); - -@ffi.Native)>( - symbol: 'ippGetValueTag', -) -external int _ippGetValueTag(ffi.Pointer attr); - -ipp_tag_e ippGetValueTag(ffi.Pointer attr) { - return ipp_tag_e.fromValue(_ippGetValueTag(attr)); -} - -@ffi.Native, ffi.Pointer)>() -external int ippGetVersion(ffi.Pointer ipp, ffi.Pointer minor); - -@ffi.Native)>() -external int ippLength(ffi.Pointer ipp); - -@ffi.Native Function()>() -external ffi.Pointer ippNew(); - -@ffi.Native Function(ffi.Int)>(symbol: 'ippNewRequest') -external ffi.Pointer _ippNewRequest(int op); - -ffi.Pointer ippNewRequest(ipp_op_e op) { - return _ippNewRequest(op.value); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippNewResponse(ffi.Pointer request); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippNextAttribute(ffi.Pointer ipp); - -@ffi.Native Function(ffi.Int)>(symbol: 'ippOpString') -external ffi.Pointer _ippOpString(int op); - -ffi.Pointer ippOpString(ipp_op_e op) { - return _ippOpString(op.value); -} - -@ffi.Native)>(symbol: 'ippOpValue') -external int _ippOpValue(ffi.Pointer name); - -ipp_op_e ippOpValue(ffi.Pointer name) { - return ipp_op_e.fromValue(_ippOpValue(name)); -} - -@ffi.Native() -external int ippPort(); - -@ffi.Native, ffi.Pointer)>( - symbol: 'ippRead', -) -external int _ippRead(ffi.Pointer http, ffi.Pointer ipp); - -ipp_state_e ippRead(ffi.Pointer http, ffi.Pointer ipp) { - return ipp_state_e.fromValue(_ippRead(http, ipp)); -} - -@ffi.Native)>( - symbol: 'ippReadFile', -) -external int _ippReadFile(int fd, ffi.Pointer ipp); - -ipp_state_e ippReadFile(int fd, ffi.Pointer ipp) { - return ipp_state_e.fromValue(_ippReadFile(fd, ipp)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ipp_iocb_t, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippReadIO') -external int _ippReadIO( - ffi.Pointer src, - ipp_iocb_t cb, - int blocking, - ffi.Pointer parent, - ffi.Pointer ipp, -); - -ipp_state_e ippReadIO( - ffi.Pointer src, - ipp_iocb_t cb, - int blocking, - ffi.Pointer parent, - ffi.Pointer ipp, -) { - return ipp_state_e.fromValue(_ippReadIO(src, cb, blocking, parent, ipp)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Int, - ) ->() -external int ippSetBoolean( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - int boolvalue, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ) ->() -external int ippSetCollection( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer colvalue, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ) ->() -external int ippSetDate( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer datevalue, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->(symbol: 'ippSetGroupTag') -external int _ippSetGroupTag( - ffi.Pointer ipp, - ffi.Pointer> attr, - int group_tag, -); - -int ippSetGroupTag( - ffi.Pointer ipp, - ffi.Pointer> attr, - ipp_tag_e group_tag, -) { - return _ippSetGroupTag(ipp, attr, group_tag.value); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Int, - ) ->() -external int ippSetInteger( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - int intvalue, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int ippSetName( - ffi.Pointer ipp, - ffi.Pointer> attr, - ffi.Pointer name, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->() -external int ippSetOctetString( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer data, - int datalen, -); - -@ffi.Native, ffi.Int)>( - symbol: 'ippSetOperation', -) -external int _ippSetOperation(ffi.Pointer ipp, int op); - -int ippSetOperation(ffi.Pointer ipp, ipp_op_e op) { - return _ippSetOperation(ipp, op.value); -} - -@ffi.Native() -external void ippSetPort(int p); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Int, - ffi.Int, - ) ->() -external int ippSetRange( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - int lowervalue, - int uppervalue, -); - -@ffi.Native, ffi.Int)>() -external int ippSetRequestId(ffi.Pointer ipp, int request_id); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.UnsignedInt, - ffi.Int, - ffi.Int, - ) ->(symbol: 'ippSetResolution') -external int _ippSetResolution( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - int unitsvalue, - int xresvalue, - int yresvalue, -); - -int ippSetResolution( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ipp_res_e unitsvalue, - int xresvalue, - int yresvalue, -) { - return _ippSetResolution( - ipp, - attr, - element, - unitsvalue.value, - xresvalue, - yresvalue, - ); -} - -@ffi.Native, ffi.Int)>( - symbol: 'ippSetState', -) -external int _ippSetState(ffi.Pointer ipp, int state); - -int ippSetState(ffi.Pointer ipp, ipp_state_e state) { - return _ippSetState(ipp, state.value); -} - -@ffi.Native, ffi.Int)>( - symbol: 'ippSetStatusCode', -) -external int _ippSetStatusCode(ffi.Pointer ipp, int status); - -int ippSetStatusCode(ffi.Pointer ipp, ipp_status_e status) { - return _ippSetStatusCode(ipp, status.value); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ) ->() -external int ippSetString( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer strvalue, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ) ->() -external int ippSetStringf( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer format, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - va_list, - ) ->() -external int ippSetStringfv( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer format, - va_list ap, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->(symbol: 'ippSetValueTag') -external int _ippSetValueTag( - ffi.Pointer ipp, - ffi.Pointer> attr, - int value_tag, -); - -int ippSetValueTag( - ffi.Pointer ipp, - ffi.Pointer> attr, - ipp_tag_e value_tag, -) { - return _ippSetValueTag(ipp, attr, value_tag.value); -} - -@ffi.Native, ffi.Int, ffi.Int)>() -external int ippSetVersion(ffi.Pointer ipp, int major, int minor); - -@ffi.Native Function(ffi.Int)>(symbol: 'ippStateString') -external ffi.Pointer _ippStateString(int state); - -ffi.Pointer ippStateString(ipp_state_e state) { - return _ippStateString(state.value); -} - -@ffi.Native Function(ffi.Int)>(symbol: 'ippTagString') -external ffi.Pointer _ippTagString(int tag); - -ffi.Pointer ippTagString(ipp_tag_e tag) { - return _ippTagString(tag.value); -} - -@ffi.Native)>(symbol: 'ippTagValue') -external int _ippTagValue(ffi.Pointer name); - -ipp_tag_e ippTagValue(ffi.Pointer name) { - return ipp_tag_e.fromValue(_ippTagValue(name)); -} - -@ffi.Native Function(time_t)>() -external ffi.Pointer ippTimeToDate(int t); - -@ffi.Native)>() -external int ippValidateAttribute(ffi.Pointer attr); - -@ffi.Native)>() -external int ippValidateAttributes(ffi.Pointer ipp); - -@ffi.Native, ffi.Pointer)>( - symbol: 'ippWrite', -) -external int _ippWrite(ffi.Pointer http, ffi.Pointer ipp); - -ipp_state_e ippWrite(ffi.Pointer http, ffi.Pointer ipp) { - return ipp_state_e.fromValue(_ippWrite(http, ipp)); -} - -@ffi.Native)>( - symbol: 'ippWriteFile', -) -external int _ippWriteFile(int fd, ffi.Pointer ipp); - -ipp_state_e ippWriteFile(int fd, ffi.Pointer ipp) { - return ipp_state_e.fromValue(_ippWriteFile(fd, ipp)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ipp_iocb_t, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippWriteIO') -external int _ippWriteIO( - ffi.Pointer dst, - ipp_iocb_t cb, - int blocking, - ffi.Pointer parent, - ffi.Pointer ipp, -); - -ipp_state_e ippWriteIO( - ffi.Pointer dst, - ipp_iocb_t cb, - int blocking, - ffi.Pointer parent, - ffi.Pointer ipp, -) { - return ipp_state_e.fromValue(_ippWriteIO(dst, cb, blocking, parent, ipp)); -} - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Int Function( - ffi.UnsignedLong, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int iruserok( - int arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int iruserok_sa( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native() -external int isatty(int arg0); - -@ffi.Native() -external int issetugid(); - -@ffi.Native() -external double j0(double arg0); - -@ffi.Native() -external double j1(double arg0); - -@ffi.Native() -external double jn(int arg0, double arg1); - -@ffi.Native)>() -external int jrand48(ffi.Pointer arg0); - -@ffi.Native() -external final CFStringRef kAERemoteProcessNameKey; - -@ffi.Native() -external final CFStringRef kAERemoteProcessProcessIDKey; - -@ffi.Native() -external final CFStringRef kAERemoteProcessURLKey; - -@ffi.Native() -external final CFStringRef kAERemoteProcessUserIDKey; - -@ffi.Native() -external CFStringRef kAXAttachmentTextAttribute; - -@ffi.Native() -external CFStringRef kAXAutocorrectedTextAttribute; - -@ffi.Native() -external CFStringRef kAXBackgroundColorTextAttribute; - -@ffi.Native() -external CFStringRef kAXFontFamilyKey; - -@ffi.Native() -external CFStringRef kAXFontNameKey; - -@ffi.Native() -external CFStringRef kAXFontSizeKey; - -@ffi.Native() -external CFStringRef kAXFontTextAttribute; - -@ffi.Native() -external CFStringRef kAXForegoundColorTextAttribute; - -@ffi.Native() -external CFStringRef kAXForegroundColorTextAttribute; - -@ffi.Native() -external CFStringRef kAXLinkTextAttribute; - -@ffi.Native() -external CFStringRef kAXListItemIndexTextAttribute; - -@ffi.Native() -external CFStringRef kAXListItemLevelTextAttribute; - -@ffi.Native() -external CFStringRef kAXListItemPrefixTextAttribute; - -@ffi.Native() -external CFStringRef kAXMarkedMisspelledTextAttribute; - -@ffi.Native() -external CFStringRef kAXMisspelledTextAttribute; - -@ffi.Native() -external CFStringRef kAXNaturalLanguageTextAttribute; - -@ffi.Native() -external CFStringRef kAXReplacementStringTextAttribute; - -@ffi.Native() -external CFStringRef kAXShadowTextAttribute; - -@ffi.Native() -external CFStringRef kAXStrikethroughColorTextAttribute; - -@ffi.Native() -external CFStringRef kAXStrikethroughTextAttribute; - -@ffi.Native() -external CFStringRef kAXSuperscriptTextAttribute; - -@ffi.Native() -external CFStringRef kAXTrustedCheckOptionPrompt; - -@ffi.Native() -external CFStringRef kAXUnderlineColorTextAttribute; - -@ffi.Native() -external CFStringRef kAXUnderlineTextAttribute; - -@ffi.Native() -external CFStringRef kAXVisibleNameKey; - -@ffi.Native() -external final double kCFAbsoluteTimeIntervalSince1904; - -@ffi.Native() -external final double kCFAbsoluteTimeIntervalSince1970; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorDefault; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorMalloc; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorMallocZone; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorNull; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorSystemDefault; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorUseContext; - -@ffi.Native() -external final CFCalendarIdentifier kCFBanglaCalendar; - -@ffi.Native() -external final CFBooleanRef kCFBooleanFalse; - -@ffi.Native() -external final CFBooleanRef kCFBooleanTrue; - -@ffi.Native() -external final CFCalendarIdentifier kCFBuddhistCalendar; - -@ffi.Native() -external final CFStringRef kCFBundleDevelopmentRegionKey; - -@ffi.Native() -external final CFStringRef kCFBundleExecutableKey; - -@ffi.Native() -external final CFStringRef kCFBundleIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFBundleInfoDictionaryVersionKey; - -@ffi.Native() -external final CFStringRef kCFBundleLocalizationsKey; - -@ffi.Native() -external final CFStringRef kCFBundleNameKey; - -@ffi.Native() -external final CFStringRef kCFBundleVersionKey; - -@ffi.Native() -external final CFCalendarIdentifier kCFChineseCalendar; - -@ffi.Native() -external final CFBagCallBacks kCFCopyStringBagCallBacks; - -@ffi.Native() -external final CFDictionaryKeyCallBacks kCFCopyStringDictionaryKeyCallBacks; - -@ffi.Native() -external final CFSetCallBacks kCFCopyStringSetCallBacks; - -@ffi.Native() -external double kCFCoreFoundationVersionNumber; - -@ffi.Native() -external CFStringRef kCFDNSServiceFailureKey; - -@ffi.Native() -external final CFCalendarIdentifier kCFDangiCalendar; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterAMSymbol; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterCalendar; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterCalendarName; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterDefaultDate; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterDefaultFormat; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterDoesRelativeDateFormattingKey; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterEraSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterGregorianStartDate; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterIsLenient; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterLongEraSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterPMSymbol; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterQuarterSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortQuarterSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortStandaloneMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortStandaloneQuarterSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortStandaloneWeekdaySymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortWeekdaySymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterStandaloneMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterStandaloneQuarterSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterStandaloneWeekdaySymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterTimeZone; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterTwoDigitStartDate; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterVeryShortMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey -kCFDateFormatterVeryShortStandaloneMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey -kCFDateFormatterVeryShortStandaloneWeekdaySymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterVeryShortWeekdaySymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterWeekdaySymbols; - -@ffi.Native() -external final CFStringRef kCFErrorDescriptionKey; - -@ffi.Native() -external CFStringRef kCFErrorDomainCFNetwork; - -@ffi.Native() -external final CFStringRef kCFErrorDomainCGImageMetadata; - -@ffi.Native() -external final CFErrorDomain kCFErrorDomainCocoa; - -@ffi.Native() -external final CFErrorDomain kCFErrorDomainMach; - -@ffi.Native() -external final CFErrorDomain kCFErrorDomainOSStatus; - -@ffi.Native() -external final CFErrorDomain kCFErrorDomainPOSIX; - -@ffi.Native() -external CFStringRef kCFErrorDomainWinSock; - -@ffi.Native() -external final CFStringRef kCFErrorFilePathKey; - -@ffi.Native() -external final CFStringRef kCFErrorLocalizedDescriptionKey; - -@ffi.Native() -external final CFStringRef kCFErrorLocalizedFailureKey; - -@ffi.Native() -external final CFStringRef kCFErrorLocalizedFailureReasonKey; - -@ffi.Native() -external final CFStringRef kCFErrorLocalizedRecoverySuggestionKey; - -@ffi.Native() -external final CFStringRef kCFErrorURLKey; - -@ffi.Native() -external final CFStringRef kCFErrorUnderlyingErrorKey; - -@ffi.Native() -external CFStringRef kCFFTPResourceGroup; - -@ffi.Native() -external CFStringRef kCFFTPResourceLink; - -@ffi.Native() -external CFStringRef kCFFTPResourceModDate; - -@ffi.Native() -external CFStringRef kCFFTPResourceMode; - -@ffi.Native() -external CFStringRef kCFFTPResourceName; - -@ffi.Native() -external CFStringRef kCFFTPResourceOwner; - -@ffi.Native() -external CFStringRef kCFFTPResourceSize; - -@ffi.Native() -external CFStringRef kCFFTPResourceType; - -@ffi.Native() -external CFStringRef kCFFTPStatusCodeKey; - -@ffi.Native() -external CFStringRef kCFGetAddrInfoFailureKey; - -@ffi.Native() -external final CFCalendarIdentifier kCFGregorianCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFGujaratiCalendar; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationAccountDomain; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationPassword; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeBasic; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeDigest; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeKerberos; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeNTLM; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeNegotiate; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeNegotiate2; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeXMobileMeAuthToken; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationUsername; - -@ffi.Native() -external CFStringRef kCFHTTPVersion1_0; - -@ffi.Native() -external CFStringRef kCFHTTPVersion1_1; - -@ffi.Native() -external CFStringRef kCFHTTPVersion2_0; - -@ffi.Native() -external CFStringRef kCFHTTPVersion3_0; - -@ffi.Native() -external final CFCalendarIdentifier kCFHebrewCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFISO8601Calendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFIndianCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFIslamicCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFIslamicCivilCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFIslamicTabularCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFJapaneseCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFKannadaCalendar; - -@ffi.Native() -external final CFLocaleKey kCFLocaleAlternateQuotationBeginDelimiterKey; - -@ffi.Native() -external final CFLocaleKey kCFLocaleAlternateQuotationEndDelimiterKey; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCalendar; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCalendarIdentifier; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCollationIdentifier; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCollatorIdentifier; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCountryCode; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCurrencyCode; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCurrencySymbol; - -@ffi.Native() -external final CFNotificationName kCFLocaleCurrentLocaleDidChangeNotification; - -@ffi.Native() -external final CFLocaleKey kCFLocaleDecimalSeparator; - -@ffi.Native() -external final CFLocaleKey kCFLocaleExemplarCharacterSet; - -@ffi.Native() -external final CFLocaleKey kCFLocaleGroupingSeparator; - -@ffi.Native() -external final CFLocaleKey kCFLocaleIdentifier; - -@ffi.Native() -external final CFLocaleKey kCFLocaleLanguageCode; - -@ffi.Native() -external final CFLocaleKey kCFLocaleMeasurementSystem; - -@ffi.Native() -external final CFLocaleKey kCFLocaleQuotationBeginDelimiterKey; - -@ffi.Native() -external final CFLocaleKey kCFLocaleQuotationEndDelimiterKey; - -@ffi.Native() -external final CFLocaleKey kCFLocaleScriptCode; - -@ffi.Native() -external final CFLocaleKey kCFLocaleUsesMetricSystem; - -@ffi.Native() -external final CFLocaleKey kCFLocaleVariantCode; - -@ffi.Native() -external final CFCalendarIdentifier kCFMalayalamCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFMarathiCalendar; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesExceptionsList; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesExcludeSimpleHostnames; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesFTPEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesFTPPassive; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesFTPPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesFTPProxy; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesGopherEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesGopherPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesGopherProxy; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPProxy; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPSEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPSPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPSProxy; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesProxyAutoConfigEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesProxyAutoConfigJavaScript; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesProxyAutoConfigURLString; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesProxyAutoDiscoveryEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesRTSPEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesRTSPPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesRTSPProxy; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesSOCKSEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesSOCKSPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesSOCKSProxy; - -@ffi.Native() -external final CFNullRef kCFNull; - -@ffi.Native() -external final CFNumberFormatterKey -kCFNumberFormatterAlwaysShowDecimalSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterCurrencyCode; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterCurrencyDecimalSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterCurrencyGroupingSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterCurrencySymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterDecimalSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterDefaultFormat; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterExponentSymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterFormatWidth; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterGroupingSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterGroupingSize; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterInfinitySymbol; - -@ffi.Native() -external final CFNumberFormatterKey -kCFNumberFormatterInternationalCurrencySymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterIsLenient; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMaxFractionDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMaxIntegerDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMaxSignificantDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMinFractionDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMinGroupingDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMinIntegerDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMinSignificantDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMinusSign; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMultiplier; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterNaNSymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterNegativePrefix; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterNegativeSuffix; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPaddingCharacter; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPaddingPosition; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPerMillSymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPercentSymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPlusSign; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPositivePrefix; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPositiveSuffix; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterRoundingIncrement; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterRoundingMode; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterSecondaryGroupingSize; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterUseGroupingSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterUseSignificantDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterZeroSymbol; - -@ffi.Native() -external final CFNumberRef kCFNumberNaN; - -@ffi.Native() -external final CFNumberRef kCFNumberNegativeInfinity; - -@ffi.Native() -external final CFNumberRef kCFNumberPositiveInfinity; - -@ffi.Native() -external final CFCalendarIdentifier kCFOdiaCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFPersianCalendar; - -@ffi.Native() -external final CFStringRef kCFPlugInDynamicRegisterFunctionKey; - -@ffi.Native() -external final CFStringRef kCFPlugInDynamicRegistrationKey; - -@ffi.Native() -external final CFStringRef kCFPlugInFactoriesKey; - -@ffi.Native() -external final CFStringRef kCFPlugInTypesKey; - -@ffi.Native() -external final CFStringRef kCFPlugInUnloadFunctionKey; - -@ffi.Native() -external CFStringRef kCFPreferencesAnyApplication; - -@ffi.Native() -external CFStringRef kCFPreferencesAnyHost; - -@ffi.Native() -external CFStringRef kCFPreferencesAnyUser; - -@ffi.Native() -external CFStringRef kCFPreferencesCurrentApplication; - -@ffi.Native() -external CFStringRef kCFPreferencesCurrentHost; - -@ffi.Native() -external CFStringRef kCFPreferencesCurrentUser; - -@ffi.Native() -external CFStringRef kCFProxyAutoConfigurationHTTPResponseKey; - -@ffi.Native() -external CFStringRef kCFProxyAutoConfigurationJavaScriptKey; - -@ffi.Native() -external CFStringRef kCFProxyAutoConfigurationURLKey; - -@ffi.Native() -external CFStringRef kCFProxyHostNameKey; - -@ffi.Native() -external CFStringRef kCFProxyPasswordKey; - -@ffi.Native() -external CFStringRef kCFProxyPortNumberKey; - -@ffi.Native() -external CFStringRef kCFProxyTypeAutoConfigurationJavaScript; - -@ffi.Native() -external CFStringRef kCFProxyTypeAutoConfigurationURL; - -@ffi.Native() -external CFStringRef kCFProxyTypeFTP; - -@ffi.Native() -external CFStringRef kCFProxyTypeHTTP; - -@ffi.Native() -external CFStringRef kCFProxyTypeHTTPS; - -@ffi.Native() -external CFStringRef kCFProxyTypeKey; - -@ffi.Native() -external CFStringRef kCFProxyTypeNone; - -@ffi.Native() -external CFStringRef kCFProxyTypeSOCKS; - -@ffi.Native() -external CFStringRef kCFProxyUsernameKey; - -@ffi.Native() -external final CFCalendarIdentifier kCFRepublicOfChinaCalendar; - -@ffi.Native() -external final CFRunLoopMode kCFRunLoopCommonModes; - -@ffi.Native() -external final CFRunLoopMode kCFRunLoopDefaultMode; - -@ffi.Native() -external CFStringRef kCFSOCKSNegotiationMethodKey; - -@ffi.Native() -external CFStringRef kCFSOCKSStatusCodeKey; - -@ffi.Native() -external CFStringRef kCFSOCKSVersionKey; - -@ffi.Native() -external final CFStringRef kCFSocketCommandKey; - -@ffi.Native() -external final CFStringRef kCFSocketErrorKey; - -@ffi.Native() -external final CFStringRef kCFSocketNameKey; - -@ffi.Native() -external final CFStringRef kCFSocketRegisterCommand; - -@ffi.Native() -external final CFStringRef kCFSocketResultKey; - -@ffi.Native() -external final CFStringRef kCFSocketRetrieveCommand; - -@ffi.Native() -external final CFStringRef kCFSocketValueKey; - -@ffi.Native() -external final int kCFStreamErrorDomainFTP; - -@ffi.Native() -external final int kCFStreamErrorDomainHTTP; - -@ffi.Native() -external final int kCFStreamErrorDomainMach; - -@ffi.Native() -external final int kCFStreamErrorDomainNetDB; - -@ffi.Native() -external final int kCFStreamErrorDomainNetServices; - -@ffi.Native() -external final int kCFStreamErrorDomainSOCKS; - -@ffi.Native() -external final int kCFStreamErrorDomainSSL; - -@ffi.Native() -external final int kCFStreamErrorDomainSystemConfiguration; - -@ffi.Native() -external final int kCFStreamErrorDomainWinSock; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceType; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeAVStreaming; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeBackground; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeCallSignaling; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeResponsiveAV; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeResponsiveData; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeVideo; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeVoIP; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeVoice; - -@ffi.Native() -external CFStringRef kCFStreamPropertyAllowConstrainedNetworkAccess; - -@ffi.Native() -external CFStringRef kCFStreamPropertyAllowExpensiveNetworkAccess; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertyAppendToFile; - -@ffi.Native() -external CFStringRef kCFStreamPropertyConnectionIsCellular; - -@ffi.Native() -external CFStringRef kCFStreamPropertyConnectionIsExpensive; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertyDataWritten; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPAttemptPersistentConnection; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPFetchResourceInfo; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPFileTransferOffset; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPPassword; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPProxy; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPProxyHost; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPProxyPassword; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPProxyPort; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPProxyUser; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPResourceSize; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPUsePassiveMode; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPUserName; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertyFileCurrentOffset; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPAttemptPersistentConnection; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPFinalRequest; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPFinalURL; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPProxy; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPProxyHost; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPProxyPort; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPRequestBytesWrittenCount; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPResponseHeader; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPSProxyHost; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPSProxyPort; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPShouldAutoredirect; - -@ffi.Native() -external CFStringRef kCFStreamPropertyNoCellular; - -@ffi.Native() -external CFStringRef kCFStreamPropertyProxyLocalBypass; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSPassword; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSProxy; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSProxyHost; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSProxyPort; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSUser; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSVersion; - -@ffi.Native() -external CFStringRef kCFStreamPropertySSLContext; - -@ffi.Native() -external CFStringRef kCFStreamPropertySSLPeerCertificates; - -@ffi.Native() -external CFStringRef kCFStreamPropertySSLPeerTrust; - -@ffi.Native() -external CFStringRef kCFStreamPropertySSLSettings; - -@ffi.Native() -external CFStringRef kCFStreamPropertyShouldCloseNativeSocket; - -@ffi.Native() -external CFStringRef kCFStreamPropertySocketExtendedBackgroundIdleMode; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertySocketNativeHandle; - -@ffi.Native() -external CFStringRef kCFStreamPropertySocketRemoteHost; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertySocketRemoteHostName; - -@ffi.Native() -external CFStringRef kCFStreamPropertySocketRemoteNetService; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertySocketRemotePortNumber; - -@ffi.Native() -external CFStringRef kCFStreamPropertySocketSecurityLevel; - -@ffi.Native() -external CFStringRef kCFStreamSSLAllowsAnyRoot; - -@ffi.Native() -external CFStringRef kCFStreamSSLAllowsExpiredCertificates; - -@ffi.Native() -external CFStringRef kCFStreamSSLAllowsExpiredRoots; - -@ffi.Native() -external CFStringRef kCFStreamSSLCertificates; - -@ffi.Native() -external CFStringRef kCFStreamSSLIsServer; - -@ffi.Native() -external CFStringRef kCFStreamSSLLevel; - -@ffi.Native() -external CFStringRef kCFStreamSSLPeerName; - -@ffi.Native() -external CFStringRef kCFStreamSSLValidatesCertificateChain; - -@ffi.Native() -external CFStringRef kCFStreamSocketSOCKSVersion4; - -@ffi.Native() -external CFStringRef kCFStreamSocketSOCKSVersion5; - -@ffi.Native() -external CFStringRef kCFStreamSocketSecurityLevelNegotiatedSSL; - -@ffi.Native() -external CFStringRef kCFStreamSocketSecurityLevelNone; - -@ffi.Native() -external CFStringRef kCFStreamSocketSecurityLevelSSLv2; - -@ffi.Native() -external CFStringRef kCFStreamSocketSecurityLevelSSLv3; - -@ffi.Native() -external CFStringRef kCFStreamSocketSecurityLevelTLSv1; - -@ffi.Native() -external final CFBinaryHeapCallBacks kCFStringBinaryHeapCallBacks; - -@ffi.Native() -external final CFStringRef kCFStringTransformFullwidthHalfwidth; - -@ffi.Native() -external final CFStringRef kCFStringTransformHiraganaKatakana; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinArabic; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinCyrillic; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinGreek; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinHangul; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinHebrew; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinHiragana; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinKatakana; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinThai; - -@ffi.Native() -external final CFStringRef kCFStringTransformMandarinLatin; - -@ffi.Native() -external final CFStringRef kCFStringTransformStripCombiningMarks; - -@ffi.Native() -external final CFStringRef kCFStringTransformStripDiacritics; - -@ffi.Native() -external final CFStringRef kCFStringTransformToLatin; - -@ffi.Native() -external final CFStringRef kCFStringTransformToUnicodeName; - -@ffi.Native() -external final CFStringRef kCFStringTransformToXMLHex; - -@ffi.Native() -external final CFCalendarIdentifier kCFTamilCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFTeluguCalendar; - -@ffi.Native() -external final CFNotificationName -kCFTimeZoneSystemTimeZoneDidChangeNotification; - -@ffi.Native() -external final CFArrayCallBacks kCFTypeArrayCallBacks; - -@ffi.Native() -external final CFBagCallBacks kCFTypeBagCallBacks; - -@ffi.Native() -external final CFDictionaryKeyCallBacks kCFTypeDictionaryKeyCallBacks; - -@ffi.Native() -external final CFDictionaryValueCallBacks kCFTypeDictionaryValueCallBacks; - -@ffi.Native() -external final CFSetCallBacks kCFTypeSetCallBacks; - -@ffi.Native() -external final CFStringRef kCFURLAddedToDirectoryDateKey; - -@ffi.Native() -external final CFStringRef kCFURLApplicationIsScriptableKey; - -@ffi.Native() -external final CFStringRef kCFURLAttributeModificationDateKey; - -@ffi.Native() -external final CFStringRef kCFURLCanonicalPathKey; - -@ffi.Native() -external final CFStringRef kCFURLContentAccessDateKey; - -@ffi.Native() -external final CFStringRef kCFURLContentModificationDateKey; - -@ffi.Native() -external final CFStringRef kCFURLCreationDateKey; - -@ffi.Native() -external final CFStringRef kCFURLCustomIconKey; - -@ffi.Native() -external final CFStringRef kCFURLDirectoryEntryCountKey; - -@ffi.Native() -external final CFStringRef kCFURLDocumentIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLEffectiveIconKey; - -@ffi.Native() -external CFStringRef kCFURLErrorFailingURLErrorKey; - -@ffi.Native() -external CFStringRef kCFURLErrorFailingURLStringErrorKey; - -@ffi.Native() -external final CFStringRef kCFURLFileAllocatedSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLFileContentIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLFileDirectoryContents; - -@ffi.Native() -external final CFStringRef kCFURLFileExists; - -@ffi.Native() -external final CFStringRef kCFURLFileIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLFileLastModificationTime; - -@ffi.Native() -external final CFStringRef kCFURLFileLength; - -@ffi.Native() -external final CFStringRef kCFURLFileOwnerID; - -@ffi.Native() -external final CFStringRef kCFURLFilePOSIXMode; - -@ffi.Native() -external final CFStringRef kCFURLFileProtectionComplete; - -@ffi.Native() -external final CFStringRef kCFURLFileProtectionCompleteUnlessOpen; - -@ffi.Native() -external final CFStringRef -kCFURLFileProtectionCompleteUntilFirstUserAuthentication; - -@ffi.Native() -external final CFStringRef kCFURLFileProtectionCompleteWhenUserInactive; - -@ffi.Native() -external final CFStringRef kCFURLFileProtectionKey; - -@ffi.Native() -external final CFStringRef kCFURLFileProtectionNone; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeBlockSpecial; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeCharacterSpecial; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeDirectory; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeKey; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeNamedPipe; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeRegular; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeSocket; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeSymbolicLink; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeUnknown; - -@ffi.Native() -external final CFStringRef kCFURLFileSecurityKey; - -@ffi.Native() -external final CFStringRef kCFURLFileSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLGenerationIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLHTTPStatusCode; - -@ffi.Native() -external final CFStringRef kCFURLHTTPStatusLine; - -@ffi.Native() -external final CFStringRef kCFURLHasHiddenExtensionKey; - -@ffi.Native() -external final CFStringRef kCFURLIsAliasFileKey; - -@ffi.Native() -external final CFStringRef kCFURLIsApplicationKey; - -@ffi.Native() -external final CFStringRef kCFURLIsDirectoryKey; - -@ffi.Native() -external final CFStringRef kCFURLIsExcludedFromBackupKey; - -@ffi.Native() -external final CFStringRef kCFURLIsExecutableKey; - -@ffi.Native() -external final CFStringRef kCFURLIsHiddenKey; - -@ffi.Native() -external final CFStringRef kCFURLIsMountTriggerKey; - -@ffi.Native() -external final CFStringRef kCFURLIsPackageKey; - -@ffi.Native() -external final CFStringRef kCFURLIsPurgeableKey; - -@ffi.Native() -external final CFStringRef kCFURLIsReadableKey; - -@ffi.Native() -external final CFStringRef kCFURLIsRegularFileKey; - -@ffi.Native() -external final CFStringRef kCFURLIsSparseKey; - -@ffi.Native() -external final CFStringRef kCFURLIsSymbolicLinkKey; - -@ffi.Native() -external final CFStringRef kCFURLIsSystemImmutableKey; - -@ffi.Native() -external final CFStringRef kCFURLIsUbiquitousItemKey; - -@ffi.Native() -external final CFStringRef kCFURLIsUserImmutableKey; - -@ffi.Native() -external final CFStringRef kCFURLIsVolumeKey; - -@ffi.Native() -external final CFStringRef kCFURLIsWritableKey; - -@ffi.Native() -external final CFStringRef kCFURLKeysOfUnsetValuesKey; - -@ffi.Native() -external final CFStringRef kCFURLLabelColorKey; - -@ffi.Native() -external final CFStringRef kCFURLLabelNumberKey; - -@ffi.Native() -external final CFStringRef kCFURLLinkCountKey; - -@ffi.Native() -external final CFStringRef kCFURLLocalizedLabelKey; - -@ffi.Native() -external final CFStringRef kCFURLLocalizedNameKey; - -@ffi.Native() -external final CFStringRef kCFURLLocalizedTypeDescriptionKey; - -@ffi.Native() -external final CFStringRef kCFURLMayHaveExtendedAttributesKey; - -@ffi.Native() -external final CFStringRef kCFURLMayShareFileContentKey; - -@ffi.Native() -external final CFStringRef kCFURLNameKey; - -@ffi.Native() -external final CFStringRef kCFURLParentDirectoryURLKey; - -@ffi.Native() -external final CFStringRef kCFURLPathKey; - -@ffi.Native() -external final CFStringRef kCFURLPreferredIOBlockSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLQuarantinePropertiesKey; - -@ffi.Native() -external final CFStringRef kCFURLTagNamesKey; - -@ffi.Native() -external final CFStringRef kCFURLTotalFileAllocatedSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLTotalFileSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLTypeIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemDownloadingErrorKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemDownloadingStatusCurrent; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemDownloadingStatusDownloaded; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemDownloadingStatusKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemDownloadingStatusNotDownloaded; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemHasUnresolvedConflictsKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsDownloadedKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsDownloadingKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsExcludedFromSyncKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsSyncPausedKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsUploadedKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsUploadingKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemPercentDownloadedKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemPercentUploadedKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemSupportedSyncControlsKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemUploadingErrorKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeAvailableCapacityForImportantUsageKey; - -@ffi.Native() -external final CFStringRef -kCFURLVolumeAvailableCapacityForOpportunisticUsageKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeAvailableCapacityKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeCreationDateKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsAutomountedKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsBrowsableKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsEjectableKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsEncryptedKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsInternalKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsJournalingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsLocalKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsReadOnlyKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsRemovableKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsRootFileSystemKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeLocalizedFormatDescriptionKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeLocalizedNameKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeMaximumFileSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeMountFromLocationKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeNameKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeResourceCountKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSubtypeKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsAccessPermissionsKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsAdvisoryFileLockingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsCasePreservedNamesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsCaseSensitiveNamesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsCompressionKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsExclusiveRenamingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsExtendedSecurityKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsFileCloningKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsFileProtectionKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsHardLinksKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsImmutableFilesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsJournalingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsPersistentIDsKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsRenamingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsRootDirectoryDatesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsSparseFilesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsSwapRenamingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsSymbolicLinksKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsVolumeSizesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsZeroRunsKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeTotalCapacityKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeTypeNameKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeURLForRemountingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeURLKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeUUIDStringKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationAlertHeaderKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationAlertMessageKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationAlertTopMostKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationAlternateButtonTitleKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationCheckBoxTitlesKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationDefaultButtonTitleKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationIconURLKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationKeyboardTypesKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationLocalizationURLKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationOtherButtonTitleKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationPopUpSelectionKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationPopUpTitlesKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationProgressIndicatorValueKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationSoundURLKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationTextFieldTitlesKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationTextFieldValuesKey; - -@ffi.Native() -external final CFCalendarIdentifier kCFVietnameseCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFVikramCalendar; - -@ffi.Native() -external final CFStringRef kCFXMLTreeErrorDescription; - -@ffi.Native() -external final CFStringRef kCFXMLTreeErrorLineNumber; - -@ffi.Native() -external final CFStringRef kCFXMLTreeErrorLocation; - -@ffi.Native() -external final CFStringRef kCFXMLTreeErrorStatusCode; - -@ffi.Native() -external CFStringRef kCGAdaptiveMaximumBitDepth; - -@ffi.Native() -external CFStringRef kCGColorBlack; - -@ffi.Native() -external CFStringRef kCGColorClear; - -@ffi.Native() -external CFStringRef kCGColorConversionBlackPointCompensation; - -@ffi.Native() -external CFStringRef kCGColorConversionTRCSize; - -@ffi.Native() -external CFStringRef kCGColorSpaceACESCGLinear; - -@ffi.Native() -external CFStringRef kCGColorSpaceAdobeRGB1998; - -@ffi.Native() -external CFStringRef kCGColorSpaceCoreMedia709; - -@ffi.Native() -external CFStringRef kCGColorSpaceDCIP3; - -@ffi.Native() -external CFStringRef kCGColorSpaceDisplayP3; - -@ffi.Native() -external CFStringRef kCGColorSpaceDisplayP3_HLG; - -@ffi.Native() -external CFStringRef kCGColorSpaceDisplayP3_PQ; - -@ffi.Native() -external CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedDisplayP3; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedGray; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedITUR_2020; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedLinearDisplayP3; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedLinearGray; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedLinearITUR_2020; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedLinearSRGB; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedRange; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedSRGB; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericCMYK; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericGray; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericGrayGamma2_2; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericLab; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericRGB; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericRGBLinear; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericXYZ; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2020; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2020_HLG; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2020_PQ; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2020_sRGBGamma; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2100_HLG; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2100_PQ; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_709; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_709_HLG; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_709_PQ; - -@ffi.Native() -external CFStringRef kCGColorSpaceLinearDisplayP3; - -@ffi.Native() -external CFStringRef kCGColorSpaceLinearGray; - -@ffi.Native() -external CFStringRef kCGColorSpaceLinearITUR_2020; - -@ffi.Native() -external CFStringRef kCGColorSpaceLinearSRGB; - -@ffi.Native() -external CFStringRef kCGColorSpaceROMMRGB; - -@ffi.Native() -external CFStringRef kCGColorSpaceSRGB; - -@ffi.Native() -external CFStringRef kCGColorWhite; - -@ffi.Native() -external CFStringRef kCGComputeHDRStats; - -@ffi.Native() -external CFStringRef kCGContentAverageLightLevel; - -@ffi.Native() -external CFStringRef kCGContentAverageLightLevelNits; - -@ffi.Native() -external double kCGDefaultHDRImageContentHeadroom; - -@ffi.Native() -external CFStringRef kCGDisplayShowDuplicateLowResolutionModes; - -@ffi.Native() -external CFStringRef kCGDisplayStreamColorSpace; - -@ffi.Native() -external CFStringRef kCGDisplayStreamDestinationRect; - -@ffi.Native() -external CFStringRef kCGDisplayStreamMinimumFrameTime; - -@ffi.Native() -external CFStringRef kCGDisplayStreamPreserveAspectRatio; - -@ffi.Native() -external CFStringRef kCGDisplayStreamQueueDepth; - -@ffi.Native() -external CFStringRef kCGDisplayStreamShowCursor; - -@ffi.Native() -external CFStringRef kCGDisplayStreamSourceRect; - -@ffi.Native() -external CFStringRef kCGDisplayStreamYCbCrMatrix; - -@ffi.Native() -external CFStringRef kCGDisplayStreamYCbCrMatrix_ITU_R_601_4; - -@ffi.Native() -external CFStringRef kCGDisplayStreamYCbCrMatrix_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCGDisplayStreamYCbCrMatrix_SMPTE_240M_1995; - -@ffi.Native() -external CFStringRef kCGDynamicRangeConstrained; - -@ffi.Native() -external CFStringRef kCGDynamicRangeHigh; - -@ffi.Native() -external CFStringRef kCGDynamicRangeStandard; - -@ffi.Native() -external CFStringRef kCGEXRToneMappingGammaDefog; - -@ffi.Native() -external CFStringRef kCGEXRToneMappingGammaExposure; - -@ffi.Native() -external CFStringRef kCGEXRToneMappingGammaKneeHigh; - -@ffi.Native() -external CFStringRef kCGEXRToneMappingGammaKneeLow; - -@ffi.Native() -external CFStringRef kCGFontVariationAxisDefaultValue; - -@ffi.Native() -external CFStringRef kCGFontVariationAxisMaxValue; - -@ffi.Native() -external CFStringRef kCGFontVariationAxisMinValue; - -@ffi.Native() -external CFStringRef kCGFontVariationAxisName; - -@ffi.Native() -external CFStringRef kCGImageAnimationDelayTime; - -@ffi.Native() -external CFStringRef kCGImageAnimationLoopCount; - -@ffi.Native() -external CFStringRef kCGImageAnimationStartIndex; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataInfoColorSpace; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataInfoData; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataInfoDataDescription; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataInfoMetadata; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeDepth; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeDisparity; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeHDRGainMap; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeISOGainMap; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypePortraitEffectsMatte; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationGlassesMatte; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationHairMatte; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationSkinMatte; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationSkyMatte; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationTeethMatte; - -@ffi.Native() -external CFStringRef kCGImageDestinationBackgroundColor; - -@ffi.Native() -external CFStringRef kCGImageDestinationDateTime; - -@ffi.Native() -external CFStringRef kCGImageDestinationEmbedThumbnail; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeAlternateColorSpace; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeBaseColorSpace; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeBaseIsSDR; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeBasePixelFormatRequest; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeGainMapPixelFormatRequest; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeGainMapSubsampleFactor; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeGenerateGainMapWithBaseImage; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeIsBaseImage; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeRequest; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeRequestOptions; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeToISOGainmap; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeToISOHDR; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeToSDR; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeTonemapMode; - -@ffi.Native() -external CFStringRef kCGImageDestinationImageMaxPixelSize; - -@ffi.Native() -external CFStringRef kCGImageDestinationLossyCompressionQuality; - -@ffi.Native() -external CFStringRef kCGImageDestinationMergeMetadata; - -@ffi.Native() -external CFStringRef kCGImageDestinationMetadata; - -@ffi.Native() -external CFStringRef kCGImageDestinationOptimizeColorForSharing; - -@ffi.Native() -external CFStringRef kCGImageDestinationOrientation; - -@ffi.Native() -external CFStringRef kCGImageDestinationPreserveGainMap; - -@ffi.Native() -external final CFStringRef kCGImageMetadataEnumerateRecursively; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceDublinCore; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceExif; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceExifAux; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceExifEX; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceIPTCCore; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceIPTCExtension; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespacePhotoshop; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceTIFF; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceXMPBasic; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceXMPRights; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixDublinCore; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixExif; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixExifAux; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixExifEX; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixIPTCCore; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixIPTCExtension; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixPhotoshop; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixTIFF; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixXMPBasic; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixXMPRights; - -@ffi.Native() -external CFStringRef kCGImageMetadataShouldExcludeGPS; - -@ffi.Native() -external CFStringRef kCGImageMetadataShouldExcludeXMP; - -@ffi.Native() -external CFStringRef kCGImageProperty8BIMDictionary; - -@ffi.Native() -external CFStringRef kCGImageProperty8BIMLayerNames; - -@ffi.Native() -external CFStringRef kCGImageProperty8BIMVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGCanvasPixelHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGCanvasPixelWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGFrameInfoArray; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGLoopCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGUnclampedDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyASTCBlockSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyASTCBlockSize4x4; - -@ffi.Native() -external CFStringRef kCGImagePropertyASTCBlockSize8x8; - -@ffi.Native() -external CFStringRef kCGImagePropertyASTCEncoder; - -@ffi.Native() -external CFStringRef kCGImagePropertyAVISDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyAuxiliaryData; - -@ffi.Native() -external CFStringRef kCGImagePropertyAuxiliaryDataType; - -@ffi.Native() -external CFStringRef kCGImagePropertyBCEncoder; - -@ffi.Native() -external CFStringRef kCGImagePropertyBCFormat; - -@ffi.Native() -external CFStringRef kCGImagePropertyBytesPerRow; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFCameraSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFContinuousDrive; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFFirmware; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFFlashExposureComp; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFFocusMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFImageFileName; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFImageName; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFImageSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFLensMaxMM; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFLensMinMM; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFLensModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFMeasuredEV; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFMeteringMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFOwnerName; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFRecordID; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFReleaseMethod; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFReleaseTiming; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFSelfTimingTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFShootingMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFWhiteBalanceIndex; - -@ffi.Native() -external CFStringRef kCGImagePropertyColorModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyColorModelCMYK; - -@ffi.Native() -external CFStringRef kCGImagePropertyColorModelGray; - -@ffi.Native() -external CFStringRef kCGImagePropertyColorModelLab; - -@ffi.Native() -external CFStringRef kCGImagePropertyColorModelRGB; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGActiveArea; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAnalogBalance; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAntiAliasStrength; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAsShotICCProfile; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAsShotNeutral; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAsShotPreProfileMatrix; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAsShotProfileName; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAsShotWhiteXY; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBackwardVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBaselineExposure; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBaselineExposureOffset; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBaselineNoise; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBaselineSharpness; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBayerGreenSplit; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBestQualityScale; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBlackLevel; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBlackLevelDeltaH; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBlackLevelDeltaV; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBlackLevelRepeatDim; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCFALayout; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCFAPlaneColor; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCalibrationIlluminant1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCalibrationIlluminant2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCameraCalibration1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCameraCalibration2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCameraCalibrationSignature; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCameraSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGChromaBlurRadius; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGColorMatrix1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGColorMatrix2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGColorimetricReference; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCurrentICCProfile; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCurrentPreProfileMatrix; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDefaultBlackRender; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDefaultCropOrigin; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDefaultCropSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDefaultScale; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDefaultUserCrop; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGExtraCameraProfiles; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGFixVignetteRadial; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGForwardMatrix1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGForwardMatrix2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGLensInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGLinearResponseLimit; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGLinearizationTable; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGLocalizedCameraModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGMakerNoteSafety; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGMaskedAreas; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGNewRawImageDigest; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGNoiseProfile; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGNoiseReductionApplied; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOpcodeList1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOpcodeList2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOpcodeList3; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalBestQualityFinalSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalDefaultCropSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalDefaultFinalSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalRawFileData; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalRawFileDigest; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalRawFileName; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewApplicationName; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewApplicationVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewColorSpace; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewDateTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewSettingsDigest; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewSettingsName; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPrivateData; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileCalibrationSignature; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileCopyright; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileEmbedPolicy; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileHueSatMapData1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileHueSatMapData2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileHueSatMapDims; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileHueSatMapEncoding; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileLookTableData; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileLookTableDims; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileLookTableEncoding; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileName; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileToneCurve; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGRawDataUniqueID; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGRawImageDigest; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGRawToPreviewGain; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGReductionMatrix1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGReductionMatrix2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGRowInterleaveFactor; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGShadowScale; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGSubTileBlockSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGUniqueCameraModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGWarpFisheye; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGWarpRectilinear; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGWhiteLevel; - -@ffi.Native() -external CFStringRef kCGImagePropertyDPIHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyDPIWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyDepth; - -@ffi.Native() -external CFStringRef kCGImagePropertyEncoder; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifApertureValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxFirmware; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxFlashCompensation; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxImageNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxLensID; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxLensInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxLensModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxLensSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxOwnerName; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifBodySerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifBrightnessValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifCFAPattern; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifCameraOwnerName; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifColorSpace; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifComponentsConfiguration; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifCompositeImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifCompressedBitsPerPixel; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifContrast; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifCustomRendered; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifDateTimeDigitized; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifDateTimeOriginal; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifDeviceSettingDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifDigitalZoomRatio; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifExposureBiasValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifExposureIndex; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifExposureMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifExposureProgram; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifExposureTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFileSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFlash; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFlashEnergy; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFlashPixVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFocalLenIn35mmFilm; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFocalLength; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFocalPlaneResolutionUnit; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFocalPlaneXResolution; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFocalPlaneYResolution; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifGainControl; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifGamma; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifISOSpeed; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifISOSpeedLatitudeyyy; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifISOSpeedLatitudezzz; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifISOSpeedRatings; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifImageUniqueID; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifLensMake; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifLensModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifLensSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifLensSpecification; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifLightSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifMakerNote; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifMaxApertureValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifMeteringMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifOECF; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifOffsetTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifOffsetTimeDigitized; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifOffsetTimeOriginal; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifPixelXDimension; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifPixelYDimension; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifRecommendedExposureIndex; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifRelatedSoundFile; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSaturation; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSceneCaptureType; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSceneType; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSensingMethod; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSensitivityType; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSharpness; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifShutterSpeedValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSourceExposureTimesOfCompositeImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSourceImageNumberOfCompositeImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSpatialFrequencyResponse; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSpectralSensitivity; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifStandardOutputSensitivity; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubjectArea; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubjectDistRange; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubjectDistance; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubjectLocation; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubsecTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubsecTimeDigitized; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubsecTimeOrginal; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubsecTimeOriginal; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifUserComment; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifWhiteBalance; - -@ffi.Native() -external CFStringRef kCGImagePropertyFileContentsDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyFileSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFCanvasPixelHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFCanvasPixelWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFFrameInfoArray; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFHasGlobalColorMap; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFImageColorMap; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFLoopCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFUnclampedDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSAltitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSAltitudeRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSAreaInformation; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDOP; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDateStamp; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestBearing; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestBearingRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestDistance; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestDistanceRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestLatitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestLatitudeRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestLongitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestLongitudeRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDifferental; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSHPositioningError; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSImgDirection; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSImgDirectionRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSLatitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSLatitudeRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSLongitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSLongitudeRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSMapDatum; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSMeasureMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSProcessingMethod; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSSatellites; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSSpeed; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSSpeedRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSStatus; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSTimeStamp; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSTrack; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSTrackRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageBaseline; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageDisparityAdjustment; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIndexLeft; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIndexMonoscopic; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIndexRight; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIsAlternateImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIsLeftImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIsMonoscopicImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIsRightImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageStereoAggressors; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImagesAlternate; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupIndex; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupMonoscopicImageLocation; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupType; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupTypeAlternate; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupTypeStereoPair; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroups; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSCanvasPixelHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSCanvasPixelWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSFrameInfoArray; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSLoopCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSUnclampedDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEIFDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyHasAlpha; - -@ffi.Native() -external CFStringRef kCGImagePropertyHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCActionAdvised; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCByline; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCBylineTitle; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCaptionAbstract; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCategory; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCity; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContact; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoAddress; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoCity; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoCountry; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoEmails; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoPhones; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoPostalCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoStateProvince; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoWebURLs; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContentLocationCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContentLocationName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCopyrightNotice; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCountryPrimaryLocationCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCountryPrimaryLocationName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCreatorContactInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCredit; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCDateCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCDigitalCreationDate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCDigitalCreationTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCEditStatus; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCEditorialUpdate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExpirationDate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExpirationTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAboutCvTerm; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAboutCvTermCvId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAboutCvTermId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAboutCvTermName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAboutCvTermRefinedAbout; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAddlModelInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCircaDateCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkContentDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkContributionDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightNotice; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightOwnerID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightOwnerName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCreator; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCreatorID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkDateCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkLicensorID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkLicensorName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkOrObject; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkPhysicalDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkSourceInvURL; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkSourceInventoryNo; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkStylePeriod; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkTitle; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAudioBitrate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAudioBitrateMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAudioChannelCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCircaDateCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContainerFormat; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContainerFormatIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContainerFormatName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContributor; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContributorIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContributorName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContributorRole; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtControlledVocabularyTerm; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCopyrightYear; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCreator; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCreatorIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCreatorName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCreatorRole; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreen; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegion; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionD; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionH; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionText; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionUnit; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionW; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionX; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionY; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDigitalImageGUID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDigitalSourceFileType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDigitalSourceType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDopesheet; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDopesheetLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDopesheetLinkLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDopesheetLinkLinkQualifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEmbdEncRightsExpr; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExpr; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprLangID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEpisode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEpisodeIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEpisodeName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEpisodeNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEvent; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtExternalMetadataLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtFeedIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtGenre; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtGenreCvId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtGenreCvTermId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtGenreCvTermName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtGenreCvTermRefinedAbout; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtHeadline; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtIPTCLastEdited; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLinkedEncRightsExpr; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExpr; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExprLangID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExprType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationCity; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationCountryCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationCountryName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationGPSAltitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationGPSLatitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationGPSLongitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationLocationId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationLocationName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationProvinceState; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationShown; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationSublocation; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationWorldRegion; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtMaxAvailHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtMaxAvailWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtModelAge; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtOrganisationInImageCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtOrganisationInImageName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonHeard; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonHeardIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonHeardName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageCharacteristic; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermCvId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermRefinedAbout; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageWDetails; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtProductInImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtProductInImageDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtProductInImageGTIN; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtProductInImageName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPublicationEvent; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPublicationEventDate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPublicationEventIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPublicationEventName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRating; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRatingRegion; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionCity; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionCountryCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionCountryName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSAltitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSLatitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSLongitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionLocationId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionLocationName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionProvinceState; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionSublocation; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionWorldRegion; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingScaleMaxValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingScaleMinValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingSourceLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingValueLogoLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRegistryEntryRole; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRegistryID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRegistryItemID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRegistryOrganisationID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtReleaseReady; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeason; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeasonIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeasonName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeasonNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeries; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeriesIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeriesName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtShownEvent; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtShownEventIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtShownEventName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtStorylineIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtStreamReady; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtStylePeriod; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSupplyChainSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSupplyChainSourceIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSupplyChainSourceName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTemporalCoverage; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTemporalCoverageFrom; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTemporalCoverageTo; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTranscript; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTranscriptLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTranscriptLinkLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTranscriptLinkLinkQualifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoBitrate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoBitrateMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoDisplayAspectRatio; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoEncodingProfile; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoShotType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoShotTypeIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoShotTypeName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoStreamsCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVisualColor; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtWorkflowTag; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermRefinedAbout; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCFixtureIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCHeadline; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCImageOrientation; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCImageType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCKeywords; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCLanguageIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCObjectAttributeReference; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCObjectCycle; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCObjectName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCObjectTypeReference; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCOriginalTransmissionReference; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCOriginatingProgram; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCProgramVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCProvinceState; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCReferenceDate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCReferenceNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCReferenceService; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCReleaseDate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCReleaseTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCRightsUsageTerms; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCScene; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCSpecialInstructions; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCStarRating; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCSubLocation; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCSubjectReference; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCSupplementalCategory; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCTimeCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCUrgency; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCWriterEditor; - -@ffi.Native() -external CFStringRef kCGImagePropertyImageCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyImageIndex; - -@ffi.Native() -external CFStringRef kCGImagePropertyImages; - -@ffi.Native() -external CFStringRef kCGImagePropertyIsFloat; - -@ffi.Native() -external CFStringRef kCGImagePropertyIsIndexed; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFDensityUnit; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFIsProgressive; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFXDensity; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFYDensity; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerAppleDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonAspectRatioInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonCameraSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonContinuousDrive; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonFirmware; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonFlashExposureComp; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonImageSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonLensModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonOwnerName; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerFujiDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerMinoltaDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonCameraSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonColorMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonDigitalZoom; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonFlashExposureComp; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonFlashSetting; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonFocusDistance; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonFocusMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonISOSelection; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonISOSetting; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonImageAdjustment; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonLensAdapter; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonLensInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonLensType; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonQuality; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonSharpenMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonShootingMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonShutterCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonWhiteBalanceMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerOlympusDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerPentaxDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyNamedColorSpace; - -@ffi.Native() -external CFStringRef kCGImagePropertyOpenEXRAspectRatio; - -@ffi.Native() -external CFStringRef kCGImagePropertyOpenEXRCompression; - -@ffi.Native() -external CFStringRef kCGImagePropertyOpenEXRDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyOrientation; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGAuthor; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGChromaticities; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGComment; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGCompressionFilter; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGCopyright; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGCreationTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGDisclaimer; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGGamma; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGInterlaceType; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGModificationTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGPixelsAspectRatio; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGSoftware; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGTitle; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGTransparency; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGWarning; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGXPixelsPerMeter; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGYPixelsPerMeter; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGsRGBIntent; - -@ffi.Native() -external CFStringRef kCGImagePropertyPVREncoder; - -@ffi.Native() -external CFStringRef kCGImagePropertyPixelFormat; - -@ffi.Native() -external CFStringRef kCGImagePropertyPixelHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyPixelWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyPrimaryImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyProfileName; - -@ffi.Native() -external CFStringRef kCGImagePropertyRawDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyTGACompression; - -@ffi.Native() -external CFStringRef kCGImagePropertyTGADictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFArtist; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFCompression; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFCopyright; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFDateTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFDocumentName; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFHostComputer; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFImageDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFMake; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFOrientation; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFPhotometricInterpretation; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFPrimaryChromaticities; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFResolutionUnit; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFSoftware; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFTileLength; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFTileWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFTransferFunction; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFWhitePoint; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFXPosition; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFXResolution; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFYPosition; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFYResolution; - -@ffi.Native() -external CFStringRef kCGImagePropertyThumbnailImages; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPCanvasPixelHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPCanvasPixelWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPFrameInfoArray; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPLoopCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPUnclampedDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyWidth; - -@ffi.Native() -external CFStringRef kCGImageProviderPreferredTileHeight; - -@ffi.Native() -external CFStringRef kCGImageProviderPreferredTileWidth; - -@ffi.Native() -external CFStringRef kCGImageSourceCreateThumbnailFromImageAlways; - -@ffi.Native() -external CFStringRef kCGImageSourceCreateThumbnailFromImageIfAbsent; - -@ffi.Native() -external CFStringRef kCGImageSourceCreateThumbnailWithTransform; - -@ffi.Native() -external CFStringRef kCGImageSourceDecodeRequest; - -@ffi.Native() -external CFStringRef kCGImageSourceDecodeRequestOptions; - -@ffi.Native() -external CFStringRef kCGImageSourceDecodeToHDR; - -@ffi.Native() -external CFStringRef kCGImageSourceDecodeToSDR; - -@ffi.Native() -external CFStringRef kCGImageSourceGenerateImageSpecificLumaScaling; - -@ffi.Native() -external CFStringRef kCGImageSourceShouldAllowFloat; - -@ffi.Native() -external CFStringRef kCGImageSourceShouldCache; - -@ffi.Native() -external CFStringRef kCGImageSourceShouldCacheImmediately; - -@ffi.Native() -external CFStringRef kCGImageSourceSubsampleFactor; - -@ffi.Native() -external CFStringRef kCGImageSourceThumbnailMaxPixelSize; - -@ffi.Native() -external CFStringRef kCGImageSourceTypeIdentifierHint; - -@ffi.Native() -external CFStringRef kCGPDFContextAccessPermissions; - -@ffi.Native() -external CFStringRef kCGPDFContextAllowsCopying; - -@ffi.Native() -external CFStringRef kCGPDFContextAllowsPrinting; - -@ffi.Native() -external CFStringRef kCGPDFContextArtBox; - -@ffi.Native() -external CFStringRef kCGPDFContextAuthor; - -@ffi.Native() -external CFStringRef kCGPDFContextBleedBox; - -@ffi.Native() -external CFStringRef kCGPDFContextCreateLinearizedPDF; - -@ffi.Native() -external CFStringRef kCGPDFContextCreatePDFA; - -@ffi.Native() -external CFStringRef kCGPDFContextCreator; - -@ffi.Native() -external CFStringRef kCGPDFContextCropBox; - -@ffi.Native() -external CFStringRef kCGPDFContextEncryptionKeyLength; - -@ffi.Native() -external CFStringRef kCGPDFContextKeywords; - -@ffi.Native() -external CFStringRef kCGPDFContextMediaBox; - -@ffi.Native() -external CFStringRef kCGPDFContextOutputIntent; - -@ffi.Native() -external CFStringRef kCGPDFContextOutputIntents; - -@ffi.Native() -external CFStringRef kCGPDFContextOwnerPassword; - -@ffi.Native() -external CFStringRef kCGPDFContextSubject; - -@ffi.Native() -external CFStringRef kCGPDFContextTitle; - -@ffi.Native() -external CFStringRef kCGPDFContextTrimBox; - -@ffi.Native() -external CFStringRef kCGPDFContextUserPassword; - -@ffi.Native() -external CFStringRef kCGPDFOutlineChildren; - -@ffi.Native() -external CFStringRef kCGPDFOutlineDestination; - -@ffi.Native() -external CFStringRef kCGPDFOutlineDestinationRect; - -@ffi.Native() -external CFStringRef kCGPDFOutlineTitle; - -@ffi.Native() -external final CGPDFTagProperty kCGPDFTagPropertyActualText; - -@ffi.Native() -external final CGPDFTagProperty kCGPDFTagPropertyAlternativeText; - -@ffi.Native() -external final CGPDFTagProperty kCGPDFTagPropertyLanguageText; - -@ffi.Native() -external final CGPDFTagProperty kCGPDFTagPropertyTitleText; - -@ffi.Native() -external CFStringRef kCGPDFXDestinationOutputProfile; - -@ffi.Native() -external CFStringRef kCGPDFXInfo; - -@ffi.Native() -external CFStringRef kCGPDFXOutputCondition; - -@ffi.Native() -external CFStringRef kCGPDFXOutputConditionIdentifier; - -@ffi.Native() -external CFStringRef kCGPDFXOutputIntentSubtype; - -@ffi.Native() -external CFStringRef kCGPDFXRegistryName; - -@ffi.Native() -external CFStringRef kCGPreferredDynamicRange; - -@ffi.Native() -external CFStringRef kCGSkipBoostToHDR; - -@ffi.Native() -external CFStringRef kCGUse100nitsHLGOOTF; - -@ffi.Native() -external CFStringRef kCGUseBT1886ForCoreVideoGamma; - -@ffi.Native() -external CFStringRef kCGUseLegacyHDREcosystem; - -@ffi.Native() -external CFStringRef kCGWindowAlpha; - -@ffi.Native() -external CFStringRef kCGWindowBackingLocationVideoMemory; - -@ffi.Native() -external CFStringRef kCGWindowBounds; - -@ffi.Native() -external CFStringRef kCGWindowIsOnscreen; - -@ffi.Native() -external CFStringRef kCGWindowLayer; - -@ffi.Native() -external CFStringRef kCGWindowMemoryUsage; - -@ffi.Native() -external CFStringRef kCGWindowName; - -@ffi.Native() -external CFStringRef kCGWindowNumber; - -@ffi.Native() -external CFStringRef kCGWindowOwnerName; - -@ffi.Native() -external CFStringRef kCGWindowOwnerPID; - -@ffi.Native() -external CFStringRef kCGWindowSharingState; - -@ffi.Native() -external CFStringRef kCGWindowStoreType; - -@ffi.Native() -external CFStringRef kCGWindowWorkspace; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionAlphaChannelMode_PremultipliedAlpha; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionAlphaChannelMode_StraightAlpha; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibrationExtrinsicOriginSource_StereoCameraSystemBaseline; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibrationLensAlgorithmKind_ParametricLens; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibrationLensDomain_Color; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Left; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Mono; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Right; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_ExtrinsicOrientationQuaternion; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_ExtrinsicOriginSource; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_IntrinsicMatrix; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_IntrinsicMatrixProjectionOffset; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_IntrinsicMatrixReferenceDimensions; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_LensAlgorithmKind; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_LensDistortions; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_LensDomain; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialX; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialY; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_LensIdentifier; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_LensRole; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_RadialAngleLimit; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_Bottom; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_BottomLeft; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_Center; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_DV420; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_Left; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_Top; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_TopLeft; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_DCI_P3; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_EBU_3213; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_P22; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_P3_D65; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_SMPTE_C; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionConformsToMPEG2VideoProfile; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtensionKey_MetadataKeyTable; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_AlphaChannelMode; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_AlternativeTransferCharacteristics; - -@ffi.Native() -external final CFStringRef -kCMFormatDescriptionExtension_AmbientViewingEnvironment; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_AuxiliaryTypeInfo; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_BitsPerComponent; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_BytesPerRow; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_CameraCalibrationDataLensCollection; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ChromaLocationBottomField; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ChromaLocationTopField; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_CleanAperture; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ColorPrimaries; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ContainsAlphaChannel; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ContentColorVolume; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ContentLightLevelInfo; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_ConvertedFromExternalSphericalTags; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_Depth; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_FieldCount; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_FieldDetail; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_FormatName; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_FullRangeVideo; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_GammaLevel; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_HasAdditionalViews; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_HasLeftStereoEyeView; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_HasRightStereoEyeView; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_HeroEye; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_HorizontalDisparityAdjustment; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_HorizontalFieldOfView; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ICCProfile; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_LogTransferFunction; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_MasteringDisplayColorVolume; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_OriginalCompressionSettings; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_PixelAspectRatio; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ProjectionKind; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_ProtectedContentOriginalFormat; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_RevisionLevel; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_SampleDescriptionExtensionAtoms; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_SpatialQuality; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_StereoCameraBaseline; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_TemporalQuality; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_TransferFunction; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_Vendor; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_VerbatimISOSampleEntry; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_VerbatimImageDescription; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_VerbatimSampleDescription; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_Version; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ViewPackingKind; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_YCbCrMatrix; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionFieldDetail_SpatialFirstLineEarly; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionFieldDetail_SpatialFirstLineLate; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionFieldDetail_TemporalBottomFirst; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionFieldDetail_TemporalTopFirst; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionHeroEye_Left; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionHeroEye_Right; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureHeight; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureHeightRational; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureHorizontalOffset; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionKey_CleanApertureHorizontalOffsetRational; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureVerticalOffset; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionKey_CleanApertureVerticalOffsetRational; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureWidth; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureWidthRational; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionLogTransferFunction_AppleLog; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionProjectionKind_AppleImmersiveVideo; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionProjectionKind_Equirectangular; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionProjectionKind_HalfEquirectangular; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionProjectionKind_ParametricImmersive; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionProjectionKind_Rectilinear; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_2100_HLG; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_Linear; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_240M_1995; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_ST_2084_PQ; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_ST_428_1; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_UseGamma; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_sRGB; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionVendor_Apple; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionViewPackingKind_OverUnder; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionViewPackingKind_SideBySide; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_601_4; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionYCbCrMatrix_SMPTE_240M_1995; - -@ffi.Native() -external CFStringRef kCMMApplyTransformProcName; - -@ffi.Native() -external CFStringRef kCMMCreateTransformPropertyProcName; - -@ffi.Native() -external CFStringRef kCMMInitializeLinkProfileProcName; - -@ffi.Native() -external CFStringRef kCMMInitializeTransformProcName; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_ConformingDataTypes; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_DataType; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_DataTypeNamespace; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_LanguageTag; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_LocalID; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_Namespace; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_SetupData; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_StructuralDependency; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_Value; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescriptionMetadataSpecificationKey_DataType; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescriptionMetadataSpecificationKey_ExtendedLanguageTag; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescriptionMetadataSpecificationKey_SetupData; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescriptionMetadataSpecificationKey_StructuralDependency; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInvalidFlag; - -@ffi.Native() -external CFStringRef kCMSEncoderDigestAlgorithmSHA1; - -@ffi.Native() -external CFStringRef kCMSEncoderDigestAlgorithmSHA256; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionColor_Alpha; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionColor_Blue; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionColor_Green; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionColor_Red; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_BackgroundColor; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_DefaultFontName; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_DefaultStyle; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_DefaultTextBox; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_DisplayFlags; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_FontTable; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_HorizontalJustification; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_TextJustification; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_VerticalJustification; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionRect_Bottom; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionRect_Left; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionRect_Right; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionRect_Top; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_Ascent; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_EndChar; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_Font; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_FontFace; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_FontSize; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_ForegroundColor; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_Height; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_StartChar; - -@ffi.Native() -external CFStringRef kCMTimeCodeFormatDescriptionExtension_SourceReferenceName; - -@ffi.Native() -external CFStringRef kCMTimeCodeFormatDescriptionKey_LangCode; - -@ffi.Native() -external CFStringRef kCMTimeCodeFormatDescriptionKey_Value; - -@ffi.Native() -external CFStringRef kCMTimeEpochKey; - -@ffi.Native() -external CFStringRef kCMTimeFlagsKey; - -@ffi.Native() -external final CMTime kCMTimeIndefinite; - -@ffi.Native() -external final CMTime kCMTimeInvalid; - -@ffi.Native() -external final CMTime kCMTimeNegativeInfinity; - -@ffi.Native() -external final CMTime kCMTimePositiveInfinity; - -@ffi.Native() -external CFStringRef kCMTimeScaleKey; - -@ffi.Native() -external CFStringRef kCMTimeValueKey; - -@ffi.Native() -external final CMTime kCMTimeZero; - -@ffi.Native() -external final CFStringRef kCSIdentityErrorDomain; - -@ffi.Native() -external final CFStringRef kCSIdentityGeneratePosixName; - -@ffi.Native() -external CFStringRef kCTAdaptiveImageProviderAttributeName; - -@ffi.Native() -external CFStringRef kCTBackgroundColorAttributeName; - -@ffi.Native() -external CFStringRef kCTBaselineClassAttributeName; - -@ffi.Native() -external CFStringRef kCTBaselineClassHanging; - -@ffi.Native() -external CFStringRef kCTBaselineClassIdeographicCentered; - -@ffi.Native() -external CFStringRef kCTBaselineClassIdeographicHigh; - -@ffi.Native() -external CFStringRef kCTBaselineClassIdeographicLow; - -@ffi.Native() -external CFStringRef kCTBaselineClassMath; - -@ffi.Native() -external CFStringRef kCTBaselineClassRoman; - -@ffi.Native() -external CFStringRef kCTBaselineInfoAttributeName; - -@ffi.Native() -external CFStringRef kCTBaselineOffsetAttributeName; - -@ffi.Native() -external CFStringRef kCTBaselineOriginalFont; - -@ffi.Native() -external CFStringRef kCTBaselineReferenceFont; - -@ffi.Native() -external CFStringRef kCTBaselineReferenceInfoAttributeName; - -@ffi.Native() -external CFStringRef kCTCharacterShapeAttributeName; - -@ffi.Native() -external CFStringRef kCTFontAttributeName; - -@ffi.Native() -external CFStringRef kCTFontBaselineAdjustAttribute; - -@ffi.Native() -external CFStringRef kCTFontCascadeListAttribute; - -@ffi.Native() -external CFStringRef kCTFontCharacterSetAttribute; - -@ffi.Native() -external CFStringRef kCTFontCollectionDisallowAutoActivationOption; - -@ffi.Native() -external CFStringRef kCTFontCollectionIncludeDisabledFontsOption; - -@ffi.Native() -external CFStringRef kCTFontCollectionRemoveDuplicatesOption; - -@ffi.Native() -external CFStringRef kCTFontCopyrightNameKey; - -@ffi.Native() -external CFStringRef kCTFontDescriptionNameKey; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingCurrentAssetSize; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingDescriptors; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingError; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingPercentage; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingResult; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingSourceDescriptor; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingTotalAssetSize; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingTotalDownloadedSize; - -@ffi.Native() -external CFStringRef kCTFontDesignerNameKey; - -@ffi.Native() -external CFStringRef kCTFontDesignerURLNameKey; - -@ffi.Native() -external CFStringRef kCTFontDisplayNameAttribute; - -@ffi.Native() -external CFStringRef kCTFontDownloadableAttribute; - -@ffi.Native() -external CFStringRef kCTFontDownloadedAttribute; - -@ffi.Native() -external CFStringRef kCTFontEnabledAttribute; - -@ffi.Native() -external CFStringRef kCTFontFamilyNameAttribute; - -@ffi.Native() -external CFStringRef kCTFontFamilyNameKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSampleTextKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSelectorDefaultKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSelectorIdentifierKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSelectorNameKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSelectorSettingKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSettingsAttribute; - -@ffi.Native() -external CFStringRef kCTFontFeatureTooltipTextKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureTypeExclusiveKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureTypeIdentifierKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureTypeNameKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureTypeSelectorsKey; - -@ffi.Native() -external CFStringRef kCTFontFeaturesAttribute; - -@ffi.Native() -external CFStringRef kCTFontFixedAdvanceAttribute; - -@ffi.Native() -external CFStringRef kCTFontFormatAttribute; - -@ffi.Native() -external CFStringRef kCTFontFullNameKey; - -@ffi.Native() -external CFStringRef kCTFontLanguagesAttribute; - -@ffi.Native() -external CFStringRef kCTFontLicenseNameKey; - -@ffi.Native() -external CFStringRef kCTFontLicenseURLNameKey; - -@ffi.Native() -external CFStringRef kCTFontMacintoshEncodingsAttribute; - -@ffi.Native() -external CFStringRef kCTFontManagerBundleIdentifier; - -@ffi.Native() -external CFStringRef kCTFontManagerErrorDomain; - -@ffi.Native() -external CFStringRef kCTFontManagerErrorFontAssetNameKey; - -@ffi.Native() -external CFStringRef kCTFontManagerErrorFontDescriptorsKey; - -@ffi.Native() -external CFStringRef kCTFontManagerErrorFontURLsKey; - -@ffi.Native() -external CFStringRef kCTFontManagerRegisteredFontsChangedNotification; - -@ffi.Native() -external CFStringRef kCTFontManufacturerNameKey; - -@ffi.Native() -external CFStringRef kCTFontMatrixAttribute; - -@ffi.Native() -external CFStringRef kCTFontNameAttribute; - -@ffi.Native() -external CFStringRef kCTFontOpenTypeFeatureTag; - -@ffi.Native() -external CFStringRef kCTFontOpenTypeFeatureValue; - -@ffi.Native() -external CFStringRef kCTFontOpticalSizeAttribute; - -@ffi.Native() -external CFStringRef kCTFontOrientationAttribute; - -@ffi.Native() -external CFStringRef kCTFontPostScriptCIDNameKey; - -@ffi.Native() -external CFStringRef kCTFontPostScriptNameKey; - -@ffi.Native() -external CFStringRef kCTFontPriorityAttribute; - -@ffi.Native() -external CFStringRef kCTFontRegistrationScopeAttribute; - -@ffi.Native() -external CFStringRef kCTFontRegistrationUserInfoAttribute; - -@ffi.Native() -external CFStringRef kCTFontSampleTextNameKey; - -@ffi.Native() -external CFStringRef kCTFontSizeAttribute; - -@ffi.Native() -external CFStringRef kCTFontSlantTrait; - -@ffi.Native() -external CFStringRef kCTFontStyleNameAttribute; - -@ffi.Native() -external CFStringRef kCTFontStyleNameKey; - -@ffi.Native() -external CFStringRef kCTFontSubFamilyNameKey; - -@ffi.Native() -external CFStringRef kCTFontSymbolicTrait; - -@ffi.Native() -external CFStringRef kCTFontTrademarkNameKey; - -@ffi.Native() -external CFStringRef kCTFontTraitsAttribute; - -@ffi.Native() -external CFStringRef kCTFontURLAttribute; - -@ffi.Native() -external CFStringRef kCTFontUniqueNameKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAttribute; - -@ffi.Native() -external CFStringRef kCTFontVariationAxesAttribute; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisDefaultValueKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisHiddenKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisIdentifierKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisMaximumValueKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisMinimumValueKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisNameKey; - -@ffi.Native() -external CFStringRef kCTFontVendorURLNameKey; - -@ffi.Native() -external CFStringRef kCTFontVersionNameKey; - -@ffi.Native() -external CFStringRef kCTFontWeightTrait; - -@ffi.Native() -external CFStringRef kCTFontWidthTrait; - -@ffi.Native() -external CFStringRef kCTForegroundColorAttributeName; - -@ffi.Native() -external CFStringRef kCTForegroundColorFromContextAttributeName; - -@ffi.Native() -external CFStringRef kCTFrameClippingPathsAttributeName; - -@ffi.Native() -external CFStringRef kCTFramePathClippingPathAttributeName; - -@ffi.Native() -external CFStringRef kCTFramePathFillRuleAttributeName; - -@ffi.Native() -external CFStringRef kCTFramePathWidthAttributeName; - -@ffi.Native() -external CFStringRef kCTFrameProgressionAttributeName; - -@ffi.Native() -external CFStringRef kCTGlyphInfoAttributeName; - -@ffi.Native() -external CFStringRef kCTHorizontalInVerticalFormsAttributeName; - -@ffi.Native() -external CFStringRef kCTKernAttributeName; - -@ffi.Native() -external CFStringRef kCTLanguageAttributeName; - -@ffi.Native() -external CFStringRef kCTLigatureAttributeName; - -@ffi.Native() -external CFStringRef kCTParagraphStyleAttributeName; - -@ffi.Native() -external CFStringRef kCTRubyAnnotationAttributeName; - -@ffi.Native() -external CFStringRef kCTRubyAnnotationScaleToFitAttributeName; - -@ffi.Native() -external CFStringRef kCTRubyAnnotationSizeFactorAttributeName; - -@ffi.Native() -external CFStringRef kCTRunDelegateAttributeName; - -@ffi.Native() -external CFStringRef kCTStrokeColorAttributeName; - -@ffi.Native() -external CFStringRef kCTStrokeWidthAttributeName; - -@ffi.Native() -external CFStringRef kCTSuperscriptAttributeName; - -@ffi.Native() -external CFStringRef kCTTabColumnTerminatorsAttributeName; - -@ffi.Native() -external CFStringRef kCTTrackingAttributeName; - -@ffi.Native() -external CFStringRef kCTTypesetterOptionAllowUnboundedLayout; - -@ffi.Native() -external CFStringRef kCTTypesetterOptionDisableBidiProcessing; - -@ffi.Native() -external CFStringRef kCTTypesetterOptionForcedEmbeddingLevel; - -@ffi.Native() -external CFStringRef kCTUnderlineColorAttributeName; - -@ffi.Native() -external CFStringRef kCTUnderlineStyleAttributeName; - -@ffi.Native() -external CFStringRef kCTVerticalFormsAttributeName; - -@ffi.Native() -external CFStringRef kCTWritingDirectionAttributeName; - -@ffi.Native() -external CFStringRef kCVBufferMovieTimeKey; - -@ffi.Native() -external CFStringRef kCVBufferNonPropagatedAttachmentsKey; - -@ffi.Native() -external CFStringRef kCVBufferPropagatedAttachmentsKey; - -@ffi.Native() -external CFStringRef kCVBufferTimeScaleKey; - -@ffi.Native() -external CFStringRef kCVBufferTimeValueKey; - -@ffi.Native() -external CFStringRef kCVImageBufferAlphaChannelIsOpaque; - -@ffi.Native() -external CFStringRef kCVImageBufferAlphaChannelModeKey; - -@ffi.Native() -external CFStringRef kCVImageBufferAlphaChannelMode_PremultipliedAlpha; - -@ffi.Native() -external CFStringRef kCVImageBufferAlphaChannelMode_StraightAlpha; - -@ffi.Native() -external final CFStringRef kCVImageBufferAmbientViewingEnvironmentKey; - -@ffi.Native() -external CFStringRef kCVImageBufferCGColorSpaceKey; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocationBottomFieldKey; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocationTopFieldKey; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_Bottom; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_BottomLeft; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_Center; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_DV420; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_Left; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_Top; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_TopLeft; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaSubsamplingKey; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaSubsampling_411; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaSubsampling_420; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaSubsampling_422; - -@ffi.Native() -external CFStringRef kCVImageBufferCleanApertureHeightKey; - -@ffi.Native() -external CFStringRef kCVImageBufferCleanApertureHorizontalOffsetKey; - -@ffi.Native() -external CFStringRef kCVImageBufferCleanApertureKey; - -@ffi.Native() -external CFStringRef kCVImageBufferCleanApertureVerticalOffsetKey; - -@ffi.Native() -external CFStringRef kCVImageBufferCleanApertureWidthKey; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimariesKey; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_DCI_P3; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_EBU_3213; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_P22; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_P3_D65; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_SMPTE_C; - -@ffi.Native() -external CFStringRef kCVImageBufferContentLightLevelInfoKey; - -@ffi.Native() -external CFStringRef kCVImageBufferDisplayDimensionsKey; - -@ffi.Native() -external CFStringRef kCVImageBufferDisplayHeightKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangleKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangleStereoLeftKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangleStereoRightKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey; - -@ffi.Native() -external final CFStringRef -kCVImageBufferDisplayMaskRectangle_RectangleHeightKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleLeftKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleTopKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleWidthKey; - -@ffi.Native() -external final CFStringRef -kCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey; - -@ffi.Native() -external final CFStringRef -kCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey; - -@ffi.Native() -external final CFStringRef -kCVImageBufferDisplayMaskRectangle_RightEdgePointsKey; - -@ffi.Native() -external CFStringRef kCVImageBufferDisplayWidthKey; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldCountKey; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldDetailKey; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldDetailSpatialFirstLineEarly; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldDetailSpatialFirstLineLate; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldDetailTemporalBottomFirst; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldDetailTemporalTopFirst; - -@ffi.Native() -external CFStringRef kCVImageBufferGammaLevelKey; - -@ffi.Native() -external CFStringRef kCVImageBufferICCProfileKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferLogTransferFunctionKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferLogTransferFunction_AppleLog; - -@ffi.Native() -external final CFStringRef kCVImageBufferLogTransferFunction_AppleLog2; - -@ffi.Native() -external CFStringRef kCVImageBufferMasteringDisplayColorVolumeKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPixelAspectRatioHorizontalSpacingKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPixelAspectRatioKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPixelAspectRatioVerticalSpacingKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPostDecodeProcessingFrameMetadataKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPostDecodeProcessingSequenceMetadataKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPreferredCleanApertureKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferRegionOfInterestKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferSceneIlluminationKey; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunctionKey; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_EBU_3213; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_ITU_R_2100_HLG; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_Linear; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_SMPTE_240M_1995; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_SMPTE_C; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_SMPTE_ST_428_1; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_UseGamma; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_sRGB; - -@ffi.Native() -external CFStringRef kCVImageBufferYCbCrMatrixKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferYCbCrMatrix_DCI_P3; - -@ffi.Native() -external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_601_4; - -@ffi.Native() -external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_709_2; - -@ffi.Native() -external final CFStringRef kCVImageBufferYCbCrMatrix_P3_D65; - -@ffi.Native() -external CFStringRef kCVImageBufferYCbCrMatrix_SMPTE_240M_1995; - -@ffi.Native() -external final CVTime kCVIndefiniteTime; - -@ffi.Native() -external CFStringRef kCVMetalBufferCacheMaximumBufferAgeKey; - -@ffi.Native() -external CFStringRef kCVMetalTextureCacheMaximumTextureAgeKey; - -@ffi.Native() -external CFStringRef kCVMetalTextureStorageMode; - -@ffi.Native() -external CFStringRef kCVMetalTextureUsage; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferHeight; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferInternalFormat; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferMaximumMipmapLevel; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferPoolMaximumBufferAgeKey; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferPoolMinimumBufferCountKey; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferTarget; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferWidth; - -@ffi.Native() -external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeAutomatic; - -@ffi.Native() -external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeBestPerformance; - -@ffi.Native() -external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeHighestQuality; - -@ffi.Native() -external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferBytesPerRowAlignmentKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferCGBitmapContextCompatibilityKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferCGImageCompatibilityKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferExtendedPixelsBottomKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferExtendedPixelsLeftKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferExtendedPixelsRightKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferExtendedPixelsTopKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferHeightKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferIOSurfaceOpenGLESFBOCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferIOSurfaceOpenGLESTextureCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferIOSurfacePropertiesKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferIOSurfacePurgeableKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferMemoryAllocatorKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferMetalCompatibilityKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferOpenGLCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferOpenGLESCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferOpenGLESTextureCacheCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferOpenGLTextureCacheCompatibilityKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferPixelFormatTypeKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferPlaneAlignmentKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferPoolAllocationThresholdKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferPoolFreeBufferNotification; - -@ffi.Native() -external CFStringRef kCVPixelBufferPoolMaximumBufferAgeKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferPoolMinimumBufferCountKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_BlackLevel; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_ColorMatrix; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_GainFactor; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_MetadataExtension; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_RecommendedCrop; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_SenselSitingOffsets; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceCCT; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_WhiteLevel; - -@ffi.Native() -external CFStringRef kCVPixelBufferVersatileBayerKey_BayerPattern; - -@ffi.Native() -external final CFStringRef kCVPixelBufferWidthKey; - -@ffi.Native() -external CFStringRef kCVPixelFormatBitsPerBlock; - -@ffi.Native() -external final CFStringRef kCVPixelFormatBitsPerComponent; - -@ffi.Native() -external CFStringRef kCVPixelFormatBlackBlock; - -@ffi.Native() -external CFStringRef kCVPixelFormatBlockHeight; - -@ffi.Native() -external CFStringRef kCVPixelFormatBlockHorizontalAlignment; - -@ffi.Native() -external CFStringRef kCVPixelFormatBlockVerticalAlignment; - -@ffi.Native() -external CFStringRef kCVPixelFormatBlockWidth; - -@ffi.Native() -external final CFStringRef kCVPixelFormatCGBitmapContextCompatibility; - -@ffi.Native() -external CFStringRef kCVPixelFormatCGBitmapInfo; - -@ffi.Native() -external final CFStringRef kCVPixelFormatCGImageCompatibility; - -@ffi.Native() -external CFStringRef kCVPixelFormatCodecType; - -@ffi.Native() -external CFStringRef kCVPixelFormatComponentRange; - -@ffi.Native() -external CFStringRef kCVPixelFormatComponentRange_FullRange; - -@ffi.Native() -external CFStringRef kCVPixelFormatComponentRange_VideoRange; - -@ffi.Native() -external CFStringRef kCVPixelFormatComponentRange_WideRange; - -@ffi.Native() -external CFStringRef kCVPixelFormatConstant; - -@ffi.Native() -external CFStringRef kCVPixelFormatContainsAlpha; - -@ffi.Native() -external CFStringRef kCVPixelFormatContainsGrayscale; - -@ffi.Native() -external CFStringRef kCVPixelFormatContainsRGB; - -@ffi.Native() -external final CFStringRef kCVPixelFormatContainsSenselArray; - -@ffi.Native() -external CFStringRef kCVPixelFormatContainsYCbCr; - -@ffi.Native() -external CFStringRef kCVPixelFormatFillExtendedPixelsCallback; - -@ffi.Native() -external CFStringRef kCVPixelFormatFourCC; - -@ffi.Native() -external CFStringRef kCVPixelFormatHorizontalSubsampling; - -@ffi.Native() -external CFStringRef kCVPixelFormatName; - -@ffi.Native() -external final CFStringRef kCVPixelFormatOpenGLCompatibility; - -@ffi.Native() -external CFStringRef kCVPixelFormatOpenGLESCompatibility; - -@ffi.Native() -external CFStringRef kCVPixelFormatOpenGLFormat; - -@ffi.Native() -external CFStringRef kCVPixelFormatOpenGLInternalFormat; - -@ffi.Native() -external CFStringRef kCVPixelFormatOpenGLType; - -@ffi.Native() -external CFStringRef kCVPixelFormatPlanes; - -@ffi.Native() -external final CFStringRef kCVPixelFormatQDCompatibility; - -@ffi.Native() -external CFStringRef kCVPixelFormatVerticalSubsampling; - -@ffi.Native() -external final CVTime kCVZeroTime; - -@ffi.Native() -external CFStringRef kColorSyncACESCGLinearProfile; - -@ffi.Native() -external CFStringRef kColorSyncAdobeRGB1998Profile; - -@ffi.Native() -external CFStringRef kColorSyncBestQuality; - -@ffi.Native() -external CFStringRef kColorSyncBlackPointCompensation; - -@ffi.Native() -external CFStringRef kColorSyncCameraDeviceClass; - -@ffi.Native() -external CFStringRef kColorSyncConversion1DLut; - -@ffi.Native() -external CFStringRef kColorSyncConversion3DLut; - -@ffi.Native() -external CFStringRef kColorSyncConversionBPC; - -@ffi.Native() -external CFStringRef kColorSyncConversionChannelID; - -@ffi.Native() -external CFStringRef kColorSyncConversionGridPoints; - -@ffi.Native() -external CFStringRef kColorSyncConversionInpChan; - -@ffi.Native() -external CFStringRef kColorSyncConversionMatrix; - -@ffi.Native() -external CFStringRef kColorSyncConversionNDLut; - -@ffi.Native() -external CFStringRef kColorSyncConversionOutChan; - -@ffi.Native() -external CFStringRef kColorSyncConversionParamCurve0; - -@ffi.Native() -external CFStringRef kColorSyncConversionParamCurve1; - -@ffi.Native() -external CFStringRef kColorSyncConversionParamCurve2; - -@ffi.Native() -external CFStringRef kColorSyncConversionParamCurve3; - -@ffi.Native() -external CFStringRef kColorSyncConversionParamCurve4; - -@ffi.Native() -external CFStringRef kColorSyncConvertQuality; - -@ffi.Native() -external CFStringRef kColorSyncConvertUseExtendedRange; - -@ffi.Native() -external CFStringRef kColorSyncCustomProfiles; - -@ffi.Native() -external CFStringRef kColorSyncDCIP3Profile; - -@ffi.Native() -external CFStringRef kColorSyncDeviceClass; - -@ffi.Native() -external CFStringRef kColorSyncDeviceDefaultProfileID; - -@ffi.Native() -external CFStringRef kColorSyncDeviceDescription; - -@ffi.Native() -external CFStringRef kColorSyncDeviceDescriptions; - -@ffi.Native() -external CFStringRef kColorSyncDeviceHostScope; - -@ffi.Native() -external CFStringRef kColorSyncDeviceID; - -@ffi.Native() -external CFStringRef kColorSyncDeviceModeDescription; - -@ffi.Native() -external CFStringRef kColorSyncDeviceModeDescriptions; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfileID; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfileIsCurrent; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfileIsDefault; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfileIsFactory; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfileURL; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfilesNotification; - -@ffi.Native() -external CFStringRef kColorSyncDeviceRegisteredNotification; - -@ffi.Native() -external CFStringRef kColorSyncDeviceUnregisteredNotification; - -@ffi.Native() -external CFStringRef kColorSyncDeviceUserScope; - -@ffi.Native() -external CFStringRef kColorSyncDisplayDeviceClass; - -@ffi.Native() -external CFStringRef kColorSyncDisplayDeviceProfilesNotification; - -@ffi.Native() -external CFStringRef kColorSyncDisplayP3Profile; - -@ffi.Native() -external CFStringRef kColorSyncDraftQuality; - -@ffi.Native() -external CFStringRef kColorSyncExtendedRange; - -@ffi.Native() -external CFStringRef kColorSyncFactoryProfiles; - -@ffi.Native() -external CFStringRef kColorSyncFixedPointRange; - -@ffi.Native() -external CFStringRef kColorSyncGenericCMYKProfile; - -@ffi.Native() -external CFStringRef kColorSyncGenericGrayGamma22Profile; - -@ffi.Native() -external CFStringRef kColorSyncGenericGrayProfile; - -@ffi.Native() -external CFStringRef kColorSyncGenericLabProfile; - -@ffi.Native() -external CFStringRef kColorSyncGenericRGBProfile; - -@ffi.Native() -external CFStringRef kColorSyncGenericXYZProfile; - -@ffi.Native() -external CFStringRef kColorSyncHDRDerivative; - -@ffi.Native() -external CFStringRef kColorSyncHLGDerivative; - -@ffi.Native() -external CFStringRef kColorSyncITUR2020Profile; - -@ffi.Native() -external CFStringRef kColorSyncITUR709Profile; - -@ffi.Native() -external CFStringRef kColorSyncNormalQuality; - -@ffi.Native() -external CFStringRef kColorSyncPQDerivative; - -@ffi.Native() -external CFStringRef kColorSyncPreferredCMM; - -@ffi.Native() -external CFStringRef kColorSyncPrinterDeviceClass; - -@ffi.Native() -external CFStringRef kColorSyncProfile; - -@ffi.Native() -external CFStringRef kColorSyncProfileCacheSeed; - -@ffi.Native() -external CFStringRef kColorSyncProfileClass; - -@ffi.Native() -external CFStringRef kColorSyncProfileColorSpace; - -@ffi.Native() -external CFStringRef kColorSyncProfileComputerDomain; - -@ffi.Native() -external CFStringRef kColorSyncProfileDescription; - -@ffi.Native() -external CFStringRef kColorSyncProfileHeader; - -@ffi.Native() -external CFStringRef kColorSyncProfileHostScope; - -@ffi.Native() -external CFStringRef kColorSyncProfileIsValid; - -@ffi.Native() -external CFStringRef kColorSyncProfileMD5Digest; - -@ffi.Native() -external CFStringRef kColorSyncProfilePCS; - -@ffi.Native() -external CFStringRef kColorSyncProfileRepositoryChangeNotification; - -@ffi.Native() -external CFStringRef kColorSyncProfileURL; - -@ffi.Native() -external CFStringRef kColorSyncProfileUserDomain; - -@ffi.Native() -external CFStringRef kColorSyncProfileUserScope; - -@ffi.Native() -external CFStringRef kColorSyncROMMRGBProfile; - -@ffi.Native() -external CFStringRef kColorSyncRegistrationUpdateWindowServer; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntent; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntentAbsolute; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntentPerceptual; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntentRelative; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntentSaturation; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntentUseProfileHeader; - -@ffi.Native() -external CFStringRef kColorSyncSRGBProfile; - -@ffi.Native() -external CFStringRef kColorSyncScannerDeviceClass; - -@ffi.Native() -external CFStringRef kColorSyncSigAToB0Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigAToB1Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigAToB2Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigAbstractClass; - -@ffi.Native() -external CFStringRef kColorSyncSigBToA0Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigBToA1Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigBToA2Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigBlueColorantTag; - -@ffi.Native() -external CFStringRef kColorSyncSigBlueTRCTag; - -@ffi.Native() -external CFStringRef kColorSyncSigCmykData; - -@ffi.Native() -external CFStringRef kColorSyncSigColorSpaceClass; - -@ffi.Native() -external CFStringRef kColorSyncSigCopyrightTag; - -@ffi.Native() -external CFStringRef kColorSyncSigDeviceMfgDescTag; - -@ffi.Native() -external CFStringRef kColorSyncSigDeviceModelDescTag; - -@ffi.Native() -external CFStringRef kColorSyncSigDisplayClass; - -@ffi.Native() -external CFStringRef kColorSyncSigGamutTag; - -@ffi.Native() -external CFStringRef kColorSyncSigGrayData; - -@ffi.Native() -external CFStringRef kColorSyncSigGrayTRCTag; - -@ffi.Native() -external CFStringRef kColorSyncSigGreenColorantTag; - -@ffi.Native() -external CFStringRef kColorSyncSigGreenTRCTag; - -@ffi.Native() -external CFStringRef kColorSyncSigInputClass; - -@ffi.Native() -external CFStringRef kColorSyncSigLabData; - -@ffi.Native() -external CFStringRef kColorSyncSigLinkClass; - -@ffi.Native() -external CFStringRef kColorSyncSigMediaBlackPointTag; - -@ffi.Native() -external CFStringRef kColorSyncSigMediaWhitePointTag; - -@ffi.Native() -external CFStringRef kColorSyncSigNamedColor2Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigNamedColorClass; - -@ffi.Native() -external CFStringRef kColorSyncSigOutputClass; - -@ffi.Native() -external CFStringRef kColorSyncSigPreview0Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigPreview1Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigPreview2Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigProfileDescriptionTag; - -@ffi.Native() -external CFStringRef kColorSyncSigProfileSequenceDescTag; - -@ffi.Native() -external CFStringRef kColorSyncSigRedColorantTag; - -@ffi.Native() -external CFStringRef kColorSyncSigRedTRCTag; - -@ffi.Native() -external CFStringRef kColorSyncSigRgbData; - -@ffi.Native() -external CFStringRef kColorSyncSigTechnologyTag; - -@ffi.Native() -external CFStringRef kColorSyncSigViewingCondDescTag; - -@ffi.Native() -external CFStringRef kColorSyncSigViewingConditionsTag; - -@ffi.Native() -external CFStringRef kColorSyncSigXYZData; - -@ffi.Native() -external CFStringRef kColorSyncTransformCodeFragmentMD5; - -@ffi.Native() -external CFStringRef kColorSyncTransformCodeFragmentType; - -@ffi.Native() -external CFStringRef kColorSyncTransformCreator; - -@ffi.Native() -external CFStringRef kColorSyncTransformDeviceToDevice; - -@ffi.Native() -external CFStringRef kColorSyncTransformDeviceToPCS; - -@ffi.Native() -external CFStringRef kColorSyncTransformDstSpace; - -@ffi.Native() -external CFStringRef kColorSyncTransformFullConversionData; - -@ffi.Native() -external CFStringRef kColorSyncTransformGamutCheck; - -@ffi.Native() -external CFStringRef kColorSyncTransformInfo; - -@ffi.Native() -external CFStringRef kColorSyncTransformPCSToDevice; - -@ffi.Native() -external CFStringRef kColorSyncTransformPCSToPCS; - -@ffi.Native() -external CFStringRef kColorSyncTransformParametricConversionData; - -@ffi.Native() -external CFStringRef kColorSyncTransformProfileSequnce; - -@ffi.Native() -external CFStringRef kColorSyncTransformSimplifiedConversionData; - -@ffi.Native() -external CFStringRef kColorSyncTransformSrcSpace; - -@ffi.Native() -external CFStringRef kColorSyncTransformTag; - -@ffi.Native() -external CFStringRef kColorSyncTransformUseITU709OETF; - -@ffi.Native() -external CFStringRef kColorSyncWaitForCacheReply; - -@ffi.Native() -external CFStringRef kColorSyncWebSafeColorsProfile; - -@ffi.Native() -external CFStringRef kDADiskDescriptionBusNameKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionBusPathKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceGUIDKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceInternalKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceModelKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDevicePathKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceProtocolKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceRevisionKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceTDMLockedKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceUnitKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceVendorKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionFSKitPrefix; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaBSDMajorKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaBSDMinorKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaBSDNameKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaBSDUnitKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaBlockSizeKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaContentKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaEjectableKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaEncryptedKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaEncryptionDetailKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaIconKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaKindKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaLeafKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaNameKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaPathKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaRemovableKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaSizeKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaTypeKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaUUIDKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaWholeKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaWritableKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionRepairRunningKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeKindKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeMountableKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeNameKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeNetworkKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumePathKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeTypeKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeUUIDKey; - -@ffi.Native() -external final CFStringRef kFSOperationBytesCompleteKey; - -@ffi.Native() -external final CFStringRef kFSOperationBytesRemainingKey; - -@ffi.Native() -external final CFStringRef kFSOperationObjectsCompleteKey; - -@ffi.Native() -external final CFStringRef kFSOperationObjectsRemainingKey; - -@ffi.Native() -external final CFStringRef kFSOperationThroughputKey; - -@ffi.Native() -external final CFStringRef kFSOperationTotalBytesKey; - -@ffi.Native() -external final CFStringRef kFSOperationTotalObjectsKey; - -@ffi.Native() -external final CFStringRef kFSOperationTotalUserVisibleObjectsKey; - -@ffi.Native() -external final CFStringRef kFSOperationUserVisibleObjectsCompleteKey; - -@ffi.Native() -external final CFStringRef kFSOperationUserVisibleObjectsRemainingKey; - -@ffi.Native() -external CFStringRef kIIOCameraExtrinsics_CoordinateSystemID; - -@ffi.Native() -external CFStringRef kIIOCameraExtrinsics_Position; - -@ffi.Native() -external CFStringRef kIIOCameraExtrinsics_Rotation; - -@ffi.Native() -external CFStringRef kIIOCameraModelType_GenericPinhole; - -@ffi.Native() -external CFStringRef kIIOCameraModelType_SimplifiedPinhole; - -@ffi.Native() -external CFStringRef kIIOCameraModel_Intrinsics; - -@ffi.Native() -external CFStringRef kIIOCameraModel_ModelType; - -@ffi.Native() -external CFStringRef kIIOMetadata_CameraExtrinsicsKey; - -@ffi.Native() -external CFStringRef kIIOMetadata_CameraModelKey; - -@ffi.Native() -external CFStringRef kIIOMonoscopicImageLocation_Center; - -@ffi.Native() -external CFStringRef kIIOMonoscopicImageLocation_Left; - -@ffi.Native() -external CFStringRef kIIOMonoscopicImageLocation_Right; - -@ffi.Native() -external CFStringRef kIIOMonoscopicImageLocation_Unspecified; - -@ffi.Native() -external CFStringRef kIIOStereoAggressors_Severity; - -@ffi.Native() -external CFStringRef kIIOStereoAggressors_SubTypeURI; - -@ffi.Native() -external CFStringRef kIIOStereoAggressors_Type; - -@ffi.Native() -external final int kIOMainPortDefault; - -@ffi.Native() -external final int kIOMasterPortDefault; - -@ffi.Native() -external CFStringRef kIOSurfaceAllocSize; - -@ffi.Native() -external CFStringRef kIOSurfaceBytesPerElement; - -@ffi.Native() -external CFStringRef kIOSurfaceBytesPerRow; - -@ffi.Native() -external CFStringRef kIOSurfaceCacheMode; - -@ffi.Native() -external CFStringRef kIOSurfaceColorSpace; - -@ffi.Native() -external CFStringRef kIOSurfaceContentHeadroom; - -@ffi.Native() -external CFStringRef kIOSurfaceElementHeight; - -@ffi.Native() -external CFStringRef kIOSurfaceElementWidth; - -@ffi.Native() -external CFStringRef kIOSurfaceHeight; - -@ffi.Native() -external CFStringRef kIOSurfaceICCProfile; - -@ffi.Native() -external CFStringRef kIOSurfaceIsGlobal; - -@ffi.Native() -external CFStringRef kIOSurfaceName; - -@ffi.Native() -external CFStringRef kIOSurfaceOffset; - -@ffi.Native() -external CFStringRef kIOSurfacePixelFormat; - -@ffi.Native() -external CFStringRef kIOSurfacePixelSizeCastingAllowed; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneBase; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneBitsPerElement; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneBytesPerElement; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneBytesPerRow; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneComponentBitDepths; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneComponentBitOffsets; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneComponentNames; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneComponentRanges; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneComponentTypes; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneElementHeight; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneElementWidth; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneHeight; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneInfo; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneOffset; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneSize; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneWidth; - -@ffi.Native() -external CFStringRef kIOSurfaceSubsampling; - -@ffi.Native() -external CFStringRef kIOSurfaceWidth; - -@ffi.Native() -external final CFStringRef kLSItemContentType; - -@ffi.Native() -external final CFStringRef kLSItemDisplayKind; - -@ffi.Native() -external final CFStringRef kLSItemDisplayName; - -@ffi.Native() -external final CFStringRef kLSItemExtension; - -@ffi.Native() -external final CFStringRef kLSItemExtensionIsHidden; - -@ffi.Native() -external final CFStringRef kLSItemFileCreator; - -@ffi.Native() -external final CFStringRef kLSItemFileType; - -@ffi.Native() -external final CFStringRef kLSItemIsInvisible; - -@ffi.Native() -external final CFStringRef kLSItemQuarantineProperties; - -@ffi.Native() -external final CFStringRef kLSItemRoleHandlerDisplayName; - -@ffi.Native() -external CFStringRef kLSQuarantineAgentBundleIdentifierKey; - -@ffi.Native() -external CFStringRef kLSQuarantineAgentNameKey; - -@ffi.Native() -external CFStringRef kLSQuarantineDataURLKey; - -@ffi.Native() -external CFStringRef kLSQuarantineOriginURLKey; - -@ffi.Native() -external CFStringRef kLSQuarantineTimeStampKey; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeCalendarEventAttachment; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeEmailAttachment; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeInstantMessageAttachment; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeKey; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeOtherAttachment; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeOtherDownload; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeWebDownload; - -@ffi.Native() -external CFStringRef kLSSharedFileListFavoriteItems; - -@ffi.Native() -external CFStringRef kLSSharedFileListFavoriteVolumes; - -@ffi.Native() -external CFStringRef kLSSharedFileListGlobalLoginItems; - -@ffi.Native() -external LSSharedFileListItemRef kLSSharedFileListItemBeforeFirst; - -@ffi.Native() -external CFStringRef kLSSharedFileListItemHidden; - -@ffi.Native() -external LSSharedFileListItemRef kLSSharedFileListItemLast; - -@ffi.Native() -external CFStringRef kLSSharedFileListLoginItemHidden; - -@ffi.Native() -external CFStringRef kLSSharedFileListRecentApplicationItems; - -@ffi.Native() -external CFStringRef kLSSharedFileListRecentDocumentItems; - -@ffi.Native() -external CFStringRef kLSSharedFileListRecentItemsMaxAmount; - -@ffi.Native() -external CFStringRef kLSSharedFileListRecentServerItems; - -@ffi.Native() -external CFStringRef kLSSharedFileListSessionLoginItems; - -@ffi.Native() -external CFStringRef kLSSharedFileListVolumesComputerVisible; - -@ffi.Native() -external CFStringRef kLSSharedFileListVolumesIDiskVisible; - -@ffi.Native() -external CFStringRef kLSSharedFileListVolumesNetworkVisible; - -@ffi.Native() -external final CFStringRef kMDAttributeAllValues; - -@ffi.Native() -external final CFStringRef kMDAttributeDisplayValues; - -@ffi.Native() -external final CFStringRef kMDAttributeMultiValued; - -@ffi.Native() -external final CFStringRef kMDAttributeName; - -@ffi.Native() -external final CFStringRef kMDAttributeReadOnlyValues; - -@ffi.Native() -external final CFStringRef kMDAttributeType; - -@ffi.Native() -external final CFStringRef kMDExporterAvaliable; - -@ffi.Native() -external final CFStringRef kMDItemAcquisitionMake; - -@ffi.Native() -external final CFStringRef kMDItemAcquisitionModel; - -@ffi.Native() -external final CFStringRef kMDItemAlbum; - -@ffi.Native() -external final CFStringRef kMDItemAltitude; - -@ffi.Native() -external final CFStringRef kMDItemAperture; - -@ffi.Native() -external final CFStringRef kMDItemAppleLoopDescriptors; - -@ffi.Native() -external final CFStringRef kMDItemAppleLoopsKeyFilterType; - -@ffi.Native() -external final CFStringRef kMDItemAppleLoopsLoopMode; - -@ffi.Native() -external final CFStringRef kMDItemAppleLoopsRootKey; - -@ffi.Native() -external final CFStringRef kMDItemApplicationCategories; - -@ffi.Native() -external final CFStringRef kMDItemAttributeChangeDate; - -@ffi.Native() -external final CFStringRef kMDItemAudiences; - -@ffi.Native() -external final CFStringRef kMDItemAudioBitRate; - -@ffi.Native() -external final CFStringRef kMDItemAudioChannelCount; - -@ffi.Native() -external final CFStringRef kMDItemAudioEncodingApplication; - -@ffi.Native() -external final CFStringRef kMDItemAudioSampleRate; - -@ffi.Native() -external final CFStringRef kMDItemAudioTrackNumber; - -@ffi.Native() -external final CFStringRef kMDItemAuthorAddresses; - -@ffi.Native() -external final CFStringRef kMDItemAuthorEmailAddresses; - -@ffi.Native() -external final CFStringRef kMDItemAuthors; - -@ffi.Native() -external final CFStringRef kMDItemBitsPerSample; - -@ffi.Native() -external final CFStringRef kMDItemCFBundleIdentifier; - -@ffi.Native() -external final CFStringRef kMDItemCameraOwner; - -@ffi.Native() -external final CFStringRef kMDItemCity; - -@ffi.Native() -external final CFStringRef kMDItemCodecs; - -@ffi.Native() -external final CFStringRef kMDItemColorSpace; - -@ffi.Native() -external final CFStringRef kMDItemComment; - -@ffi.Native() -external final CFStringRef kMDItemComposer; - -@ffi.Native() -external final CFStringRef kMDItemContactKeywords; - -@ffi.Native() -external final CFStringRef kMDItemContentCreationDate; - -@ffi.Native() -external final CFStringRef kMDItemContentModificationDate; - -@ffi.Native() -external final CFStringRef kMDItemContentType; - -@ffi.Native() -external final CFStringRef kMDItemContentTypeTree; - -@ffi.Native() -external final CFStringRef kMDItemContributors; - -@ffi.Native() -external final CFStringRef kMDItemCopyright; - -@ffi.Native() -external final CFStringRef kMDItemCountry; - -@ffi.Native() -external final CFStringRef kMDItemCoverage; - -@ffi.Native() -external final CFStringRef kMDItemCreator; - -@ffi.Native() -external final CFStringRef kMDItemDateAdded; - -@ffi.Native() -external final CFStringRef kMDItemDeliveryType; - -@ffi.Native() -external final CFStringRef kMDItemDescription; - -@ffi.Native() -external final CFStringRef kMDItemDirector; - -@ffi.Native() -external final CFStringRef kMDItemDisplayName; - -@ffi.Native() -external final CFStringRef kMDItemDownloadedDate; - -@ffi.Native() -external final CFStringRef kMDItemDueDate; - -@ffi.Native() -external final CFStringRef kMDItemDurationSeconds; - -@ffi.Native() -external final CFStringRef kMDItemEXIFGPSVersion; - -@ffi.Native() -external final CFStringRef kMDItemEXIFVersion; - -@ffi.Native() -external final CFStringRef kMDItemEditors; - -@ffi.Native() -external final CFStringRef kMDItemEmailAddresses; - -@ffi.Native() -external final CFStringRef kMDItemEncodingApplications; - -@ffi.Native() -external final CFStringRef kMDItemExecutableArchitectures; - -@ffi.Native() -external final CFStringRef kMDItemExecutablePlatform; - -@ffi.Native() -external final CFStringRef kMDItemExposureMode; - -@ffi.Native() -external final CFStringRef kMDItemExposureProgram; - -@ffi.Native() -external final CFStringRef kMDItemExposureTimeSeconds; - -@ffi.Native() -external final CFStringRef kMDItemExposureTimeString; - -@ffi.Native() -external final CFStringRef kMDItemFNumber; - -@ffi.Native() -external final CFStringRef kMDItemFSContentChangeDate; - -@ffi.Native() -external final CFStringRef kMDItemFSCreationDate; - -@ffi.Native() -external final CFStringRef kMDItemFSExists; - -@ffi.Native() -external final CFStringRef kMDItemFSHasCustomIcon; - -@ffi.Native() -external final CFStringRef kMDItemFSInvisible; - -@ffi.Native() -external final CFStringRef kMDItemFSIsExtensionHidden; - -@ffi.Native() -external final CFStringRef kMDItemFSIsReadable; - -@ffi.Native() -external final CFStringRef kMDItemFSIsStationery; - -@ffi.Native() -external final CFStringRef kMDItemFSIsWriteable; - -@ffi.Native() -external final CFStringRef kMDItemFSLabel; - -@ffi.Native() -external final CFStringRef kMDItemFSName; - -@ffi.Native() -external final CFStringRef kMDItemFSNodeCount; - -@ffi.Native() -external final CFStringRef kMDItemFSOwnerGroupID; - -@ffi.Native() -external final CFStringRef kMDItemFSOwnerUserID; - -@ffi.Native() -external final CFStringRef kMDItemFSSize; - -@ffi.Native() -external final CFStringRef kMDItemFinderComment; - -@ffi.Native() -external final CFStringRef kMDItemFlashOnOff; - -@ffi.Native() -external final CFStringRef kMDItemFocalLength; - -@ffi.Native() -external final CFStringRef kMDItemFocalLength35mm; - -@ffi.Native() -external final CFStringRef kMDItemFonts; - -@ffi.Native() -external final CFStringRef kMDItemGPSAreaInformation; - -@ffi.Native() -external final CFStringRef kMDItemGPSDOP; - -@ffi.Native() -external final CFStringRef kMDItemGPSDateStamp; - -@ffi.Native() -external final CFStringRef kMDItemGPSDestBearing; - -@ffi.Native() -external final CFStringRef kMDItemGPSDestDistance; - -@ffi.Native() -external final CFStringRef kMDItemGPSDestLatitude; - -@ffi.Native() -external final CFStringRef kMDItemGPSDestLongitude; - -@ffi.Native() -external final CFStringRef kMDItemGPSDifferental; - -@ffi.Native() -external final CFStringRef kMDItemGPSMapDatum; - -@ffi.Native() -external final CFStringRef kMDItemGPSMeasureMode; - -@ffi.Native() -external final CFStringRef kMDItemGPSProcessingMethod; - -@ffi.Native() -external final CFStringRef kMDItemGPSStatus; - -@ffi.Native() -external final CFStringRef kMDItemGPSTrack; - -@ffi.Native() -external final CFStringRef kMDItemGenre; - -@ffi.Native() -external final CFStringRef kMDItemHTMLContent; - -@ffi.Native() -external final CFStringRef kMDItemHasAlphaChannel; - -@ffi.Native() -external final CFStringRef kMDItemHeadline; - -@ffi.Native() -external final CFStringRef kMDItemISOSpeed; - -@ffi.Native() -external final CFStringRef kMDItemIdentifier; - -@ffi.Native() -external final CFStringRef kMDItemImageDirection; - -@ffi.Native() -external final CFStringRef kMDItemInformation; - -@ffi.Native() -external final CFStringRef kMDItemInstantMessageAddresses; - -@ffi.Native() -external final CFStringRef kMDItemInstructions; - -@ffi.Native() -external final CFStringRef kMDItemIsApplicationManaged; - -@ffi.Native() -external final CFStringRef kMDItemIsGeneralMIDISequence; - -@ffi.Native() -external final CFStringRef kMDItemIsLikelyJunk; - -@ffi.Native() -external final CFStringRef kMDItemKeySignature; - -@ffi.Native() -external final CFStringRef kMDItemKeywords; - -@ffi.Native() -external final CFStringRef kMDItemKind; - -@ffi.Native() -external final CFStringRef kMDItemLabelID; - -@ffi.Native() -external final CFStringRef kMDItemLabelIcon; - -@ffi.Native() -external final CFStringRef kMDItemLabelKind; - -@ffi.Native() -external final CFStringRef kMDItemLabelUUID; - -@ffi.Native() -external final CFStringRef kMDItemLanguages; - -@ffi.Native() -external final CFStringRef kMDItemLastUsedDate; - -@ffi.Native() -external final CFStringRef kMDItemLatitude; - -@ffi.Native() -external final CFStringRef kMDItemLayerNames; - -@ffi.Native() -external final CFStringRef kMDItemLensModel; - -@ffi.Native() -external final CFStringRef kMDItemLongitude; - -@ffi.Native() -external final CFStringRef kMDItemLyricist; - -@ffi.Native() -external final CFStringRef kMDItemMaxAperture; - -@ffi.Native() -external final CFStringRef kMDItemMediaExtensions; - -@ffi.Native() -external final CFStringRef kMDItemMediaTypes; - -@ffi.Native() -external final CFStringRef kMDItemMeteringMode; - -@ffi.Native() -external final CFStringRef kMDItemMusicalGenre; - -@ffi.Native() -external final CFStringRef kMDItemMusicalInstrumentCategory; - -@ffi.Native() -external final CFStringRef kMDItemMusicalInstrumentName; - -@ffi.Native() -external final CFStringRef kMDItemNamedLocation; - -@ffi.Native() -external final CFStringRef kMDItemNumberOfPages; - -@ffi.Native() -external final CFStringRef kMDItemOrganizations; - -@ffi.Native() -external final CFStringRef kMDItemOrientation; - -@ffi.Native() -external final CFStringRef kMDItemOriginalFormat; - -@ffi.Native() -external final CFStringRef kMDItemOriginalSource; - -@ffi.Native() -external final CFStringRef kMDItemPageHeight; - -@ffi.Native() -external final CFStringRef kMDItemPageWidth; - -@ffi.Native() -external final CFStringRef kMDItemParticipants; - -@ffi.Native() -external final CFStringRef kMDItemPath; - -@ffi.Native() -external final CFStringRef kMDItemPerformers; - -@ffi.Native() -external final CFStringRef kMDItemPhoneNumbers; - -@ffi.Native() -external final CFStringRef kMDItemPixelCount; - -@ffi.Native() -external final CFStringRef kMDItemPixelHeight; - -@ffi.Native() -external final CFStringRef kMDItemPixelWidth; - -@ffi.Native() -external final CFStringRef kMDItemProducer; - -@ffi.Native() -external final CFStringRef kMDItemProfileName; - -@ffi.Native() -external final CFStringRef kMDItemProjects; - -@ffi.Native() -external final CFStringRef kMDItemPublishers; - -@ffi.Native() -external final CFStringRef kMDItemRecipientAddresses; - -@ffi.Native() -external final CFStringRef kMDItemRecipientEmailAddresses; - -@ffi.Native() -external final CFStringRef kMDItemRecipients; - -@ffi.Native() -external final CFStringRef kMDItemRecordingDate; - -@ffi.Native() -external final CFStringRef kMDItemRecordingYear; - -@ffi.Native() -external final CFStringRef kMDItemRedEyeOnOff; - -@ffi.Native() -external final CFStringRef kMDItemResolutionHeightDPI; - -@ffi.Native() -external final CFStringRef kMDItemResolutionWidthDPI; - -@ffi.Native() -external final CFStringRef kMDItemRights; - -@ffi.Native() -external final CFStringRef kMDItemSecurityMethod; - -@ffi.Native() -external final CFStringRef kMDItemSpeed; - -@ffi.Native() -external final CFStringRef kMDItemStarRating; - -@ffi.Native() -external final CFStringRef kMDItemStateOrProvince; - -@ffi.Native() -external final CFStringRef kMDItemStreamable; - -@ffi.Native() -external final CFStringRef kMDItemSubject; - -@ffi.Native() -external final CFStringRef kMDItemSupportFileType; - -@ffi.Native() -external final CFStringRef kMDItemTempo; - -@ffi.Native() -external final CFStringRef kMDItemTextContent; - -@ffi.Native() -external final CFStringRef kMDItemTheme; - -@ffi.Native() -external final CFStringRef kMDItemTimeSignature; - -@ffi.Native() -external final CFStringRef kMDItemTimestamp; - -@ffi.Native() -external final CFStringRef kMDItemTitle; - -@ffi.Native() -external final CFStringRef kMDItemTotalBitRate; - -@ffi.Native() -external final CFStringRef kMDItemURL; - -@ffi.Native() -external final CFStringRef kMDItemVersion; - -@ffi.Native() -external final CFStringRef kMDItemVideoBitRate; - -@ffi.Native() -external final CFStringRef kMDItemWhereFroms; - -@ffi.Native() -external final CFStringRef kMDItemWhiteBalance; - -@ffi.Native() -external final CFStringRef kMDItemXMPCredit; - -@ffi.Native() -external final CFStringRef kMDItemXMPDigitalSourceType; - -@ffi.Native() -external final CFStringRef kMDLabelAddedNotification; - -@ffi.Native() -external CFStringRef kMDLabelBundleURL; - -@ffi.Native() -external final CFStringRef kMDLabelChangedNotification; - -@ffi.Native() -external CFStringRef kMDLabelContentChangeDate; - -@ffi.Native() -external CFStringRef kMDLabelDisplayName; - -@ffi.Native() -external CFStringRef kMDLabelIconData; - -@ffi.Native() -external CFStringRef kMDLabelIconUUID; - -@ffi.Native() -external CFStringRef kMDLabelIsMutuallyExclusiveSetMember; - -@ffi.Native() -external CFStringRef kMDLabelKind; - -@ffi.Native() -external CFStringRef kMDLabelKindIsMutuallyExclusiveSetKey; - -@ffi.Native() -external CFStringRef kMDLabelKindVisibilityKey; - -@ffi.Native() -external final CFStringRef kMDLabelRemovedNotification; - -@ffi.Native() -external CFStringRef kMDLabelSetsFinderColor; - -@ffi.Native() -external CFStringRef kMDLabelUUID; - -@ffi.Native() -external CFStringRef kMDLabelVisibility; - -@ffi.Native() -external CFStringRef kMDPrivateVisibility; - -@ffi.Native() -external CFStringRef kMDPublicVisibility; - -@ffi.Native() -external final CFStringRef kMDQueryDidFinishNotification; - -@ffi.Native() -external final CFStringRef kMDQueryDidUpdateNotification; - -@ffi.Native() -external final CFStringRef kMDQueryProgressNotification; - -@ffi.Native() -external final CFStringRef kMDQueryResultContentRelevance; - -@ffi.Native() -external final CFStringRef kMDQueryScopeAllIndexed; - -@ffi.Native() -external final CFStringRef kMDQueryScopeComputer; - -@ffi.Native() -external final CFStringRef kMDQueryScopeComputerIndexed; - -@ffi.Native() -external final CFStringRef kMDQueryScopeHome; - -@ffi.Native() -external final CFStringRef kMDQueryScopeNetwork; - -@ffi.Native() -external final CFStringRef kMDQueryScopeNetworkIndexed; - -@ffi.Native() -external final CFStringRef kMDQueryUpdateAddedItems; - -@ffi.Native() -external final CFStringRef kMDQueryUpdateChangedItems; - -@ffi.Native() -external final CFStringRef kMDQueryUpdateRemovedItems; - -@ffi.Native() -external final CFStringRef kSKEndTermChars; - -@ffi.Native() -external final CFStringRef kSKLanguageTypes; - -@ffi.Native() -external final CFStringRef kSKMaximumTerms; - -@ffi.Native() -external final CFStringRef kSKMinTermLength; - -@ffi.Native() -external final CFStringRef kSKProximityIndexing; - -@ffi.Native() -external final CFStringRef kSKStartTermChars; - -@ffi.Native() -external final CFStringRef kSKStopWords; - -@ffi.Native() -external final CFStringRef kSKSubstitutions; - -@ffi.Native() -external final CFStringRef kSKTermChars; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_3DES_fallback; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_ATSv1; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_ATSv1_noPFS; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_RC4_fallback; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_TLSv1_3DES_fallback; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_TLSv1_RC4_fallback; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_TLSv1_fallback; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_anonymous; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_default; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_legacy; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_legacy_DHE; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_standard; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationAny; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationChangeACL; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationChangeOwner; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationDecrypt; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationDelete; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationDerive; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationEncrypt; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationExportClear; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationExportWrapped; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationGenKey; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationImportClear; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationImportWrapped; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationIntegrity; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainCreate; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainDelete; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainItemDelete; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainItemInsert; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainItemModify; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainItemRead; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationLogin; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationMAC; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationPartitionID; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationSign; - -@ffi.Native() -external CFStringRef kSecAttrAccess; - -@ffi.Native() -external CFStringRef kSecAttrAccessControl; - -@ffi.Native() -external CFStringRef kSecAttrAccessGroup; - -@ffi.Native() -external CFStringRef kSecAttrAccessGroupToken; - -@ffi.Native() -external CFStringRef kSecAttrAccessible; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleAfterFirstUnlock; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleAlways; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleAlwaysThisDeviceOnly; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleWhenUnlocked; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleWhenUnlockedThisDeviceOnly; - -@ffi.Native() -external CFStringRef kSecAttrAccount; - -@ffi.Native() -external CFStringRef kSecAttrApplicationLabel; - -@ffi.Native() -external CFStringRef kSecAttrApplicationTag; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationType; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeDPA; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeDefault; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeHTMLForm; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeHTTPBasic; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeHTTPDigest; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeMSN; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeNTLM; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeRPA; - -@ffi.Native() -external CFStringRef kSecAttrCanDecrypt; - -@ffi.Native() -external CFStringRef kSecAttrCanDerive; - -@ffi.Native() -external CFStringRef kSecAttrCanEncrypt; - -@ffi.Native() -external CFStringRef kSecAttrCanSign; - -@ffi.Native() -external CFStringRef kSecAttrCanUnwrap; - -@ffi.Native() -external CFStringRef kSecAttrCanVerify; - -@ffi.Native() -external CFStringRef kSecAttrCanWrap; - -@ffi.Native() -external CFStringRef kSecAttrCertificateEncoding; - -@ffi.Native() -external CFStringRef kSecAttrCertificateType; - -@ffi.Native() -external CFStringRef kSecAttrComment; - -@ffi.Native() -external CFStringRef kSecAttrCreationDate; - -@ffi.Native() -external CFStringRef kSecAttrCreator; - -@ffi.Native() -external CFStringRef kSecAttrDescription; - -@ffi.Native() -external CFStringRef kSecAttrEffectiveKeySize; - -@ffi.Native() -external CFStringRef kSecAttrGeneric; - -@ffi.Native() -external CFStringRef kSecAttrIsExtractable; - -@ffi.Native() -external CFStringRef kSecAttrIsInvisible; - -@ffi.Native() -external CFStringRef kSecAttrIsNegative; - -@ffi.Native() -external CFStringRef kSecAttrIsPermanent; - -@ffi.Native() -external CFStringRef kSecAttrIsSensitive; - -@ffi.Native() -external CFStringRef kSecAttrIssuer; - -@ffi.Native() -external CFStringRef kSecAttrKeyClass; - -@ffi.Native() -external CFStringRef kSecAttrKeyClassPrivate; - -@ffi.Native() -external CFStringRef kSecAttrKeyClassPublic; - -@ffi.Native() -external CFStringRef kSecAttrKeyClassSymmetric; - -@ffi.Native() -external CFStringRef kSecAttrKeySizeInBits; - -@ffi.Native() -external CFStringRef kSecAttrKeyType; - -@ffi.Native() -external CFStringRef kSecAttrKeyType3DES; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeAES; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeCAST; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeDES; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeDSA; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeEC; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeECDSA; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeECSECPrimeRandom; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeRC2; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeRC4; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeRSA; - -@ffi.Native() -external CFStringRef kSecAttrLabel; - -@ffi.Native() -external CFStringRef kSecAttrModificationDate; - -@ffi.Native() -external CFStringRef kSecAttrPRF; - -@ffi.Native() -external CFStringRef kSecAttrPRFHmacAlgSHA1; - -@ffi.Native() -external CFStringRef kSecAttrPRFHmacAlgSHA224; - -@ffi.Native() -external CFStringRef kSecAttrPRFHmacAlgSHA256; - -@ffi.Native() -external CFStringRef kSecAttrPRFHmacAlgSHA384; - -@ffi.Native() -external CFStringRef kSecAttrPRFHmacAlgSHA512; - -@ffi.Native() -external CFStringRef kSecAttrPath; - -@ffi.Native() -external CFStringRef kSecAttrPersistantReference; - -@ffi.Native() -external CFStringRef kSecAttrPersistentReference; - -@ffi.Native() -external CFStringRef kSecAttrPort; - -@ffi.Native() -external CFStringRef kSecAttrProtocol; - -@ffi.Native() -external CFStringRef kSecAttrProtocolAFP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolAppleTalk; - -@ffi.Native() -external CFStringRef kSecAttrProtocolDAAP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolEPPC; - -@ffi.Native() -external CFStringRef kSecAttrProtocolFTP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolFTPAccount; - -@ffi.Native() -external CFStringRef kSecAttrProtocolFTPProxy; - -@ffi.Native() -external CFStringRef kSecAttrProtocolFTPS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolHTTP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolHTTPProxy; - -@ffi.Native() -external CFStringRef kSecAttrProtocolHTTPS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolHTTPSProxy; - -@ffi.Native() -external CFStringRef kSecAttrProtocolIMAP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolIMAPS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolIPP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolIRC; - -@ffi.Native() -external CFStringRef kSecAttrProtocolIRCS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolLDAP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolLDAPS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolNNTP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolNNTPS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolPOP3; - -@ffi.Native() -external CFStringRef kSecAttrProtocolPOP3S; - -@ffi.Native() -external CFStringRef kSecAttrProtocolRTSP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolRTSPProxy; - -@ffi.Native() -external CFStringRef kSecAttrProtocolSMB; - -@ffi.Native() -external CFStringRef kSecAttrProtocolSMTP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolSOCKS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolSSH; - -@ffi.Native() -external CFStringRef kSecAttrProtocolTelnet; - -@ffi.Native() -external CFStringRef kSecAttrProtocolTelnetS; - -@ffi.Native() -external CFStringRef kSecAttrPublicKeyHash; - -@ffi.Native() -external CFStringRef kSecAttrRounds; - -@ffi.Native() -external CFStringRef kSecAttrSalt; - -@ffi.Native() -external CFStringRef kSecAttrSecurityDomain; - -@ffi.Native() -external CFStringRef kSecAttrSerialNumber; - -@ffi.Native() -external CFStringRef kSecAttrServer; - -@ffi.Native() -external CFStringRef kSecAttrService; - -@ffi.Native() -external CFStringRef kSecAttrSubject; - -@ffi.Native() -external CFStringRef kSecAttrSubjectKeyID; - -@ffi.Native() -external CFStringRef kSecAttrSyncViewHint; - -@ffi.Native() -external CFStringRef kSecAttrSynchronizable; - -@ffi.Native() -external CFStringRef kSecAttrSynchronizableAny; - -@ffi.Native() -external CFStringRef kSecAttrTokenID; - -@ffi.Native() -external CFStringRef kSecAttrTokenIDSecureEnclave; - -@ffi.Native() -external CFStringRef kSecAttrType; - -@ffi.Native() -external CFStringRef kSecBase32Encoding; - -@ffi.Native() -external CFStringRef kSecBase64Encoding; - -@ffi.Native() -external CFStringRef kSecCFErrorArchitecture; - -@ffi.Native() -external CFStringRef kSecCFErrorGuestAttributes; - -@ffi.Native() -external CFStringRef kSecCFErrorInfoPlist; - -@ffi.Native() -external CFStringRef kSecCFErrorPath; - -@ffi.Native() -external CFStringRef kSecCFErrorPattern; - -@ffi.Native() -external CFStringRef kSecCFErrorRequirementSyntax; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceAdded; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceAltered; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceMissing; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceRecursive; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceSeal; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceSideband; - -@ffi.Native() -external CFStringRef kSecClass; - -@ffi.Native() -external CFStringRef kSecClassCertificate; - -@ffi.Native() -external CFStringRef kSecClassGenericPassword; - -@ffi.Native() -external CFStringRef kSecClassIdentity; - -@ffi.Native() -external CFStringRef kSecClassInternetPassword; - -@ffi.Native() -external CFStringRef kSecClassKey; - -@ffi.Native() -external CFStringRef kSecCodeAttributeArchitecture; - -@ffi.Native() -external CFStringRef kSecCodeAttributeBundleVersion; - -@ffi.Native() -external CFStringRef kSecCodeAttributeSubarchitecture; - -@ffi.Native() -external CFStringRef kSecCodeAttributeUniversalFileOffset; - -@ffi.Native() -external CFStringRef kSecCodeInfoCMS; - -@ffi.Native() -external CFStringRef kSecCodeInfoCdHashes; - -@ffi.Native() -external CFStringRef kSecCodeInfoCertificates; - -@ffi.Native() -external CFStringRef kSecCodeInfoChangedFiles; - -@ffi.Native() -external CFStringRef kSecCodeInfoDefaultDesignatedLightweightCodeRequirement; - -@ffi.Native() -external CFStringRef kSecCodeInfoDesignatedRequirement; - -@ffi.Native() -external CFStringRef kSecCodeInfoDigestAlgorithm; - -@ffi.Native() -external CFStringRef kSecCodeInfoDigestAlgorithms; - -@ffi.Native() -external CFStringRef kSecCodeInfoEntitlements; - -@ffi.Native() -external CFStringRef kSecCodeInfoEntitlementsDict; - -@ffi.Native() -external CFStringRef kSecCodeInfoFlags; - -@ffi.Native() -external CFStringRef kSecCodeInfoFormat; - -@ffi.Native() -external CFStringRef kSecCodeInfoIdentifier; - -@ffi.Native() -external CFStringRef kSecCodeInfoImplicitDesignatedRequirement; - -@ffi.Native() -external CFStringRef kSecCodeInfoMainExecutable; - -@ffi.Native() -external CFStringRef kSecCodeInfoPList; - -@ffi.Native() -external CFStringRef kSecCodeInfoPlatformIdentifier; - -@ffi.Native() -external CFStringRef kSecCodeInfoRequirementData; - -@ffi.Native() -external CFStringRef kSecCodeInfoRequirements; - -@ffi.Native() -external CFStringRef kSecCodeInfoRuntimeVersion; - -@ffi.Native() -external CFStringRef kSecCodeInfoSource; - -@ffi.Native() -external CFStringRef kSecCodeInfoStapledNotarizationTicket; - -@ffi.Native() -external CFStringRef kSecCodeInfoStatus; - -@ffi.Native() -external CFStringRef kSecCodeInfoTeamIdentifier; - -@ffi.Native() -external CFStringRef kSecCodeInfoTime; - -@ffi.Native() -external CFStringRef kSecCodeInfoTimestamp; - -@ffi.Native() -external CFStringRef kSecCodeInfoTrust; - -@ffi.Native() -external CFStringRef kSecCodeInfoUnique; - -@ffi.Native() -external CFStringRef kSecCompressionRatio; - -@ffi.Native() -external CFStringRef kSecDecodeTypeAttribute; - -@ffi.Native() -external CFStringRef kSecDigestHMACKeyAttribute; - -@ffi.Native() -external CFStringRef kSecDigestHMACMD5; - -@ffi.Native() -external CFStringRef kSecDigestHMACSHA1; - -@ffi.Native() -external CFStringRef kSecDigestHMACSHA2; - -@ffi.Native() -external CFStringRef kSecDigestLengthAttribute; - -@ffi.Native() -external CFStringRef kSecDigestMD2; - -@ffi.Native() -external CFStringRef kSecDigestMD4; - -@ffi.Native() -external CFStringRef kSecDigestMD5; - -@ffi.Native() -external CFStringRef kSecDigestSHA1; - -@ffi.Native() -external CFStringRef kSecDigestSHA2; - -@ffi.Native() -external CFStringRef kSecDigestTypeAttribute; - -@ffi.Native() -external CFStringRef kSecEncodeLineLengthAttribute; - -@ffi.Native() -external CFStringRef kSecEncodeTypeAttribute; - -@ffi.Native() -external CFStringRef kSecEncryptKey; - -@ffi.Native() -external CFStringRef kSecEncryptionMode; - -@ffi.Native() -external CFStringRef kSecGuestAttributeArchitecture; - -@ffi.Native() -external CFStringRef kSecGuestAttributeAudit; - -@ffi.Native() -external CFStringRef kSecGuestAttributeCanonical; - -@ffi.Native() -external CFStringRef kSecGuestAttributeDynamicCode; - -@ffi.Native() -external CFStringRef kSecGuestAttributeDynamicCodeInfoPlist; - -@ffi.Native() -external CFStringRef kSecGuestAttributeHash; - -@ffi.Native() -external CFStringRef kSecGuestAttributeMachPort; - -@ffi.Native() -external CFStringRef kSecGuestAttributePid; - -@ffi.Native() -external CFStringRef kSecGuestAttributeSubarchitecture; - -@ffi.Native() -external CFStringRef kSecIVKey; - -@ffi.Native() -external CFStringRef kSecIdentityDomainDefault; - -@ffi.Native() -external CFStringRef kSecIdentityDomainKerberosKDC; - -@ffi.Native() -external CFStringRef kSecImportExportAccess; - -@ffi.Native() -external CFStringRef kSecImportExportKeychain; - -@ffi.Native() -external CFStringRef kSecImportExportPassphrase; - -@ffi.Native() -external CFStringRef kSecImportItemCertChain; - -@ffi.Native() -external CFStringRef kSecImportItemIdentity; - -@ffi.Native() -external CFStringRef kSecImportItemKeyID; - -@ffi.Native() -external CFStringRef kSecImportItemLabel; - -@ffi.Native() -external CFStringRef kSecImportItemTrust; - -@ffi.Native() -external CFStringRef kSecImportToMemoryOnly; - -@ffi.Native() -external CFStringRef kSecInputIsAttributeName; - -@ffi.Native() -external final CFStringRef kSecInputIsDigest; - -@ffi.Native() -external CFStringRef kSecInputIsPlainText; - -@ffi.Native() -external CFStringRef kSecInputIsRaw; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactor; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandard; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureRFC4754; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA224AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA256AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA384AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA512AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA1AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorX963SHA224AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorX963SHA256AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorX963SHA384AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorX963SHA512AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA224AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA384AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA512AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA1AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardX963SHA224AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardX963SHA256AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardX963SHA384AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardX963SHA512AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionPKCS1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionRaw; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15Raw; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureRaw; - -@ffi.Native() -external CFStringRef kSecKeyAttributeName; - -@ffi.Native() -external SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterRequestedSize; - -@ffi.Native() -external SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterSharedInfo; - -@ffi.Native() -external CFStringRef kSecLineLength64; - -@ffi.Native() -external CFStringRef kSecLineLength76; - -@ffi.Native() -external CFStringRef kSecMatchCaseInsensitive; - -@ffi.Native() -external CFStringRef kSecMatchDiacriticInsensitive; - -@ffi.Native() -external CFStringRef kSecMatchEmailAddressIfPresent; - -@ffi.Native() -external CFStringRef kSecMatchHostOrSubdomainOfHost; - -@ffi.Native() -external CFStringRef kSecMatchIssuers; - -@ffi.Native() -external CFStringRef kSecMatchItemList; - -@ffi.Native() -external CFStringRef kSecMatchLimit; - -@ffi.Native() -external CFStringRef kSecMatchLimitAll; - -@ffi.Native() -external CFStringRef kSecMatchLimitOne; - -@ffi.Native() -external CFStringRef kSecMatchPolicy; - -@ffi.Native() -external CFStringRef kSecMatchSearchList; - -@ffi.Native() -external CFStringRef kSecMatchSubjectContains; - -@ffi.Native() -external CFStringRef kSecMatchSubjectEndsWith; - -@ffi.Native() -external CFStringRef kSecMatchSubjectStartsWith; - -@ffi.Native() -external CFStringRef kSecMatchSubjectWholeString; - -@ffi.Native() -external CFStringRef kSecMatchTrustedOnly; - -@ffi.Native() -external CFStringRef kSecMatchValidOnDate; - -@ffi.Native() -external CFStringRef kSecMatchWidthInsensitive; - -@ffi.Native() -external CFStringRef kSecModeCBCKey; - -@ffi.Native() -external CFStringRef kSecModeCFBKey; - -@ffi.Native() -external CFStringRef kSecModeECBKey; - -@ffi.Native() -external CFStringRef kSecModeNoneKey; - -@ffi.Native() -external CFStringRef kSecModeOFBKey; - -@ffi.Native() -external CFStringRef kSecOAEPEncodingParametersAttributeName; - -@ffi.Native() -external CFStringRef kSecOAEPMGF1DigestAlgorithmAttributeName; - -@ffi.Native() -external CFStringRef kSecOAEPMessageLengthAttributeName; - -@ffi.Native() -external CFStringRef kSecOIDADC_CERT_POLICY; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_CERT_POLICY; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_CODE_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_CODE_SIGNING_DEV; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_ICHAT_ENCRYPTION; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_ICHAT_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_RESOURCE_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_SYSTEM_IDENTITY; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_AAI_INTERMEDIATE; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_ADC_APPLE_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_ADC_DEV_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_APPLEID_INTERMEDIATE; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_APPLE_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_CODE_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_INTERMEDIATE_MARKER; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_ITMS_INTERMEDIATE; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_WWDR_INTERMEDIATE; - -@ffi.Native() -external CFStringRef kSecOIDAuthorityInfoAccess; - -@ffi.Native() -external CFStringRef kSecOIDAuthorityKeyIdentifier; - -@ffi.Native() -external CFStringRef kSecOIDBasicConstraints; - -@ffi.Native() -external CFStringRef kSecOIDBiometricInfo; - -@ffi.Native() -external CFStringRef kSecOIDCSSMKeyStruct; - -@ffi.Native() -external CFStringRef kSecOIDCertIssuer; - -@ffi.Native() -external CFStringRef kSecOIDCertificatePolicies; - -@ffi.Native() -external CFStringRef kSecOIDClientAuth; - -@ffi.Native() -external CFStringRef kSecOIDCollectiveStateProvinceName; - -@ffi.Native() -external CFStringRef kSecOIDCollectiveStreetAddress; - -@ffi.Native() -external CFStringRef kSecOIDCommonName; - -@ffi.Native() -external CFStringRef kSecOIDCountryName; - -@ffi.Native() -external CFStringRef kSecOIDCrlDistributionPoints; - -@ffi.Native() -external CFStringRef kSecOIDCrlNumber; - -@ffi.Native() -external CFStringRef kSecOIDCrlReason; - -@ffi.Native() -external CFStringRef kSecOIDDOTMAC_CERT_EMAIL_ENCRYPT; - -@ffi.Native() -external CFStringRef kSecOIDDOTMAC_CERT_EMAIL_SIGN; - -@ffi.Native() -external CFStringRef kSecOIDDOTMAC_CERT_EXTENSION; - -@ffi.Native() -external CFStringRef kSecOIDDOTMAC_CERT_IDENTITY; - -@ffi.Native() -external CFStringRef kSecOIDDOTMAC_CERT_POLICY; - -@ffi.Native() -external CFStringRef kSecOIDDeltaCrlIndicator; - -@ffi.Native() -external CFStringRef kSecOIDDescription; - -@ffi.Native() -external CFStringRef kSecOIDEKU_IPSec; - -@ffi.Native() -external CFStringRef kSecOIDEmailAddress; - -@ffi.Native() -external CFStringRef kSecOIDEmailProtection; - -@ffi.Native() -external CFStringRef kSecOIDExtendedKeyUsage; - -@ffi.Native() -external CFStringRef kSecOIDExtendedKeyUsageAny; - -@ffi.Native() -external CFStringRef kSecOIDExtendedUseCodeSigning; - -@ffi.Native() -external CFStringRef kSecOIDGivenName; - -@ffi.Native() -external CFStringRef kSecOIDHoldInstructionCode; - -@ffi.Native() -external CFStringRef kSecOIDInvalidityDate; - -@ffi.Native() -external CFStringRef kSecOIDIssuerAltName; - -@ffi.Native() -external CFStringRef kSecOIDIssuingDistributionPoint; - -@ffi.Native() -external CFStringRef kSecOIDIssuingDistributionPoints; - -@ffi.Native() -external CFStringRef kSecOIDKERBv5_PKINIT_KP_CLIENT_AUTH; - -@ffi.Native() -external CFStringRef kSecOIDKERBv5_PKINIT_KP_KDC; - -@ffi.Native() -external CFStringRef kSecOIDKeyUsage; - -@ffi.Native() -external CFStringRef kSecOIDLocalityName; - -@ffi.Native() -external CFStringRef kSecOIDMS_NTPrincipalName; - -@ffi.Native() -external CFStringRef kSecOIDMicrosoftSGC; - -@ffi.Native() -external CFStringRef kSecOIDNameConstraints; - -@ffi.Native() -external CFStringRef kSecOIDNetscapeCertSequence; - -@ffi.Native() -external CFStringRef kSecOIDNetscapeCertType; - -@ffi.Native() -external CFStringRef kSecOIDNetscapeSGC; - -@ffi.Native() -external CFStringRef kSecOIDOCSPSigning; - -@ffi.Native() -external CFStringRef kSecOIDOrganizationName; - -@ffi.Native() -external CFStringRef kSecOIDOrganizationalUnitName; - -@ffi.Native() -external CFStringRef kSecOIDPolicyConstraints; - -@ffi.Native() -external CFStringRef kSecOIDPolicyMappings; - -@ffi.Native() -external CFStringRef kSecOIDPrivateKeyUsagePeriod; - -@ffi.Native() -external CFStringRef kSecOIDQC_Statements; - -@ffi.Native() -external CFStringRef kSecOIDSRVName; - -@ffi.Native() -external CFStringRef kSecOIDSerialNumber; - -@ffi.Native() -external CFStringRef kSecOIDServerAuth; - -@ffi.Native() -external CFStringRef kSecOIDStateProvinceName; - -@ffi.Native() -external CFStringRef kSecOIDStreetAddress; - -@ffi.Native() -external CFStringRef kSecOIDSubjectAltName; - -@ffi.Native() -external CFStringRef kSecOIDSubjectDirectoryAttributes; - -@ffi.Native() -external CFStringRef kSecOIDSubjectEmailAddress; - -@ffi.Native() -external CFStringRef kSecOIDSubjectInfoAccess; - -@ffi.Native() -external CFStringRef kSecOIDSubjectKeyIdentifier; - -@ffi.Native() -external CFStringRef kSecOIDSubjectPicture; - -@ffi.Native() -external CFStringRef kSecOIDSubjectSignatureBitmap; - -@ffi.Native() -external CFStringRef kSecOIDSurname; - -@ffi.Native() -external CFStringRef kSecOIDTimeStamping; - -@ffi.Native() -external CFStringRef kSecOIDTitle; - -@ffi.Native() -external CFStringRef kSecOIDUseExemptions; - -@ffi.Native() -external CFStringRef kSecOIDX509V1CertificateIssuerUniqueId; - -@ffi.Native() -external CFStringRef kSecOIDX509V1CertificateSubjectUniqueId; - -@ffi.Native() -external CFStringRef kSecOIDX509V1IssuerName; - -@ffi.Native() -external CFStringRef kSecOIDX509V1IssuerNameCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V1IssuerNameLDAP; - -@ffi.Native() -external CFStringRef kSecOIDX509V1IssuerNameStd; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SerialNumber; - -@ffi.Native() -external CFStringRef kSecOIDX509V1Signature; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SignatureAlgorithm; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SignatureAlgorithmParameters; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SignatureAlgorithmTBS; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SignatureCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SignatureStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectName; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectNameCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectNameLDAP; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectNameStd; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectPublicKey; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectPublicKeyAlgorithm; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectPublicKeyAlgorithmParameters; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectPublicKeyCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V1ValidityNotAfter; - -@ffi.Native() -external CFStringRef kSecOIDX509V1ValidityNotBefore; - -@ffi.Native() -external CFStringRef kSecOIDX509V1Version; - -@ffi.Native() -external CFStringRef kSecOIDX509V3Certificate; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionCritical; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionId; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionType; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionValue; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionsCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionsStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateNumberOfExtensions; - -@ffi.Native() -external CFStringRef kSecOIDX509V3SignedCertificate; - -@ffi.Native() -external CFStringRef kSecOIDX509V3SignedCertificateCStruct; - -@ffi.Native() -external CFStringRef kSecPaddingKey; - -@ffi.Native() -external CFStringRef kSecPaddingNoneKey; - -@ffi.Native() -external CFStringRef kSecPaddingOAEPKey; - -@ffi.Native() -external CFStringRef kSecPaddingPKCS1Key; - -@ffi.Native() -external CFStringRef kSecPaddingPKCS5Key; - -@ffi.Native() -external CFStringRef kSecPaddingPKCS7Key; - -@ffi.Native() -external CFStringRef kSecPolicyAppleCodeSigning; - -@ffi.Native() -external CFStringRef kSecPolicyAppleEAP; - -@ffi.Native() -external CFStringRef kSecPolicyAppleEAPClient; - -@ffi.Native() -external CFStringRef kSecPolicyAppleEAPServer; - -@ffi.Native() -external CFStringRef kSecPolicyAppleIDValidation; - -@ffi.Native() -external CFStringRef kSecPolicyAppleIPSecClient; - -@ffi.Native() -external CFStringRef kSecPolicyAppleIPSecServer; - -@ffi.Native() -external CFStringRef kSecPolicyAppleIPsec; - -@ffi.Native() -external CFStringRef kSecPolicyApplePKINITClient; - -@ffi.Native() -external CFStringRef kSecPolicyApplePKINITServer; - -@ffi.Native() -external CFStringRef kSecPolicyApplePassbookSigning; - -@ffi.Native() -external CFStringRef kSecPolicyApplePayIssuerEncryption; - -@ffi.Native() -external CFStringRef kSecPolicyAppleRevocation; - -@ffi.Native() -external CFStringRef kSecPolicyAppleSMIME; - -@ffi.Native() -external CFStringRef kSecPolicyAppleSSL; - -@ffi.Native() -external CFStringRef kSecPolicyAppleSSLClient; - -@ffi.Native() -external CFStringRef kSecPolicyAppleSSLServer; - -@ffi.Native() -external CFStringRef kSecPolicyAppleTimeStamping; - -@ffi.Native() -external CFStringRef kSecPolicyAppleX509Basic; - -@ffi.Native() -external CFStringRef kSecPolicyAppleiChat; - -@ffi.Native() -external CFStringRef kSecPolicyClient; - -@ffi.Native() -external CFStringRef kSecPolicyKU_CRLSign; - -@ffi.Native() -external CFStringRef kSecPolicyKU_DataEncipherment; - -@ffi.Native() -external CFStringRef kSecPolicyKU_DecipherOnly; - -@ffi.Native() -external CFStringRef kSecPolicyKU_DigitalSignature; - -@ffi.Native() -external CFStringRef kSecPolicyKU_EncipherOnly; - -@ffi.Native() -external CFStringRef kSecPolicyKU_KeyAgreement; - -@ffi.Native() -external CFStringRef kSecPolicyKU_KeyCertSign; - -@ffi.Native() -external CFStringRef kSecPolicyKU_KeyEncipherment; - -@ffi.Native() -external CFStringRef kSecPolicyKU_NonRepudiation; - -@ffi.Native() -external CFStringRef kSecPolicyMacAppStoreReceipt; - -@ffi.Native() -external CFStringRef kSecPolicyName; - -@ffi.Native() -external CFStringRef kSecPolicyOid; - -@ffi.Native() -external CFStringRef kSecPolicyRevocationFlags; - -@ffi.Native() -external CFStringRef kSecPolicyTeamIdentifier; - -@ffi.Native() -external CFStringRef kSecPrivateKeyAttrs; - -@ffi.Native() -external CFStringRef kSecPropertyKeyLabel; - -@ffi.Native() -external CFStringRef kSecPropertyKeyLocalizedLabel; - -@ffi.Native() -external CFStringRef kSecPropertyKeyType; - -@ffi.Native() -external CFStringRef kSecPropertyKeyValue; - -@ffi.Native() -external CFStringRef kSecPropertyTypeArray; - -@ffi.Native() -external CFStringRef kSecPropertyTypeData; - -@ffi.Native() -external CFStringRef kSecPropertyTypeDate; - -@ffi.Native() -external CFStringRef kSecPropertyTypeError; - -@ffi.Native() -external CFStringRef kSecPropertyTypeNumber; - -@ffi.Native() -external CFStringRef kSecPropertyTypeSection; - -@ffi.Native() -external CFStringRef kSecPropertyTypeString; - -@ffi.Native() -external CFStringRef kSecPropertyTypeSuccess; - -@ffi.Native() -external CFStringRef kSecPropertyTypeTitle; - -@ffi.Native() -external CFStringRef kSecPropertyTypeURL; - -@ffi.Native() -external CFStringRef kSecPropertyTypeWarning; - -@ffi.Native() -external CFStringRef kSecPublicKeyAttrs; - -@ffi.Native() -external SecRandomRef kSecRandomDefault; - -@ffi.Native() -external CFStringRef kSecReturnAttributes; - -@ffi.Native() -external CFStringRef kSecReturnData; - -@ffi.Native() -external CFStringRef kSecReturnPersistentRef; - -@ffi.Native() -external CFStringRef kSecReturnRef; - -@ffi.Native() -external CFStringRef kSecSharedPassword; - -@ffi.Native() -external final CFStringRef kSecSignatureAttributeName; - -@ffi.Native() -external CFStringRef kSecTransformAbortAttributeName; - -@ffi.Native() -external CFStringRef kSecTransformAbortOriginatorKey; - -@ffi.Native() -external CFStringRef kSecTransformActionAttributeNotification; - -@ffi.Native() -external CFStringRef kSecTransformActionAttributeValidation; - -@ffi.Native() -external CFStringRef kSecTransformActionCanExecute; - -@ffi.Native() -external CFStringRef kSecTransformActionExternalizeExtraData; - -@ffi.Native() -external CFStringRef kSecTransformActionFinalize; - -@ffi.Native() -external CFStringRef kSecTransformActionInternalizeExtraData; - -@ffi.Native() -external CFStringRef kSecTransformActionProcessData; - -@ffi.Native() -external CFStringRef kSecTransformActionStartingExecution; - -@ffi.Native() -external CFStringRef kSecTransformDebugAttributeName; - -@ffi.Native() -external CFStringRef kSecTransformErrorDomain; - -@ffi.Native() -external CFStringRef kSecTransformInputAttributeName; - -@ffi.Native() -external CFStringRef kSecTransformOutputAttributeName; - -@ffi.Native() -external CFStringRef kSecTransformPreviousErrorKey; - -@ffi.Native() -external CFStringRef kSecTransformTransformName; - -@ffi.Native() -external CFStringRef kSecTrustCertificateTransparency; - -@ffi.Native() -external CFStringRef kSecTrustCertificateTransparencyWhiteList; - -@ffi.Native() -external CFStringRef kSecTrustEvaluationDate; - -@ffi.Native() -external CFStringRef kSecTrustExtendedValidation; - -@ffi.Native() -external CFStringRef kSecTrustOrganizationName; - -@ffi.Native() -external CFStringRef kSecTrustQCStatements; - -@ffi.Native() -external CFStringRef kSecTrustQWACValidation; - -@ffi.Native() -external CFStringRef kSecTrustResultValue; - -@ffi.Native() -external CFStringRef kSecTrustRevocationChecked; - -@ffi.Native() -external CFStringRef kSecTrustRevocationValidUntilDate; - -@ffi.Native() -external CFStringRef kSecUseAuthenticationContext; - -@ffi.Native() -external CFStringRef kSecUseAuthenticationUI; - -@ffi.Native() -external CFStringRef kSecUseAuthenticationUIAllow; - -@ffi.Native() -external CFStringRef kSecUseAuthenticationUIFail; - -@ffi.Native() -external CFStringRef kSecUseAuthenticationUISkip; - -@ffi.Native() -external CFStringRef kSecUseDataProtectionKeychain; - -@ffi.Native() -external CFStringRef kSecUseItemList; - -@ffi.Native() -external CFStringRef kSecUseKeychain; - -@ffi.Native() -external CFStringRef kSecUseNoAuthenticationUI; - -@ffi.Native() -external CFStringRef kSecUseOperationPrompt; - -@ffi.Native() -external CFStringRef kSecUseUserIndependentKeychain; - -@ffi.Native() -external CFStringRef kSecValueData; - -@ffi.Native() -external CFStringRef kSecValuePersistentRef; - -@ffi.Native() -external CFStringRef kSecValueRef; - -@ffi.Native() -external CFStringRef kSecZLibEncoding; - -@ffi.Native() -external CFStringRef kSpeechAudioGraphProperty; - -@ffi.Native() -external CFStringRef kSpeechAudioOutputFormatProperty; - -@ffi.Native() -external CFStringRef kSpeechAudioUnitProperty; - -@ffi.Native() -external CFStringRef kSpeechCharacterModeProperty; - -@ffi.Native() -external CFStringRef kSpeechCommandDelimiterProperty; - -@ffi.Native() -external CFStringRef kSpeechCommandPrefix; - -@ffi.Native() -external CFStringRef kSpeechCommandSuffix; - -@ffi.Native() -external CFStringRef kSpeechCurrentVoiceProperty; - -@ffi.Native() -external CFStringRef kSpeechDictionaryAbbreviations; - -@ffi.Native() -external CFStringRef kSpeechDictionaryEntryPhonemes; - -@ffi.Native() -external CFStringRef kSpeechDictionaryEntrySpelling; - -@ffi.Native() -external CFStringRef kSpeechDictionaryLocaleIdentifier; - -@ffi.Native() -external CFStringRef kSpeechDictionaryModificationDate; - -@ffi.Native() -external CFStringRef kSpeechDictionaryPronunciations; - -@ffi.Native() -external CFStringRef kSpeechErrorCFCallBack; - -@ffi.Native() -external CFStringRef kSpeechErrorCallbackCharacterOffset; - -@ffi.Native() -external CFStringRef kSpeechErrorCallbackSpokenString; - -@ffi.Native() -external CFStringRef kSpeechErrorCount; - -@ffi.Native() -external CFStringRef kSpeechErrorNewest; - -@ffi.Native() -external CFStringRef kSpeechErrorNewestCharacterOffset; - -@ffi.Native() -external CFStringRef kSpeechErrorOldest; - -@ffi.Native() -external CFStringRef kSpeechErrorOldestCharacterOffset; - -@ffi.Native() -external CFStringRef kSpeechErrorsProperty; - -@ffi.Native() -external CFStringRef kSpeechInputModeProperty; - -@ffi.Native() -external CFStringRef kSpeechModeLiteral; - -@ffi.Native() -external CFStringRef kSpeechModeNormal; - -@ffi.Native() -external CFStringRef kSpeechModePhoneme; - -@ffi.Native() -external CFStringRef kSpeechModeText; - -@ffi.Native() -external CFStringRef kSpeechModeTune; - -@ffi.Native() -external CFStringRef kSpeechNoEndingProsody; - -@ffi.Native() -external CFStringRef kSpeechNoSpeechInterrupt; - -@ffi.Native() -external CFStringRef kSpeechNumberModeProperty; - -@ffi.Native() -external CFStringRef kSpeechOutputChannelMapProperty; - -@ffi.Native() -external CFStringRef kSpeechOutputToAudioDeviceProperty; - -@ffi.Native() -external CFStringRef kSpeechOutputToExtAudioFileProperty; - -@ffi.Native() -external CFStringRef kSpeechOutputToFileDescriptorProperty; - -@ffi.Native() -external CFStringRef kSpeechOutputToFileURLProperty; - -@ffi.Native() -external CFStringRef kSpeechPhonemeCallBack; - -@ffi.Native() -external CFStringRef kSpeechPhonemeInfoExample; - -@ffi.Native() -external CFStringRef kSpeechPhonemeInfoHiliteEnd; - -@ffi.Native() -external CFStringRef kSpeechPhonemeInfoHiliteStart; - -@ffi.Native() -external CFStringRef kSpeechPhonemeInfoOpcode; - -@ffi.Native() -external CFStringRef kSpeechPhonemeInfoSymbol; - -@ffi.Native() -external CFStringRef kSpeechPhonemeOptionsProperty; - -@ffi.Native() -external CFStringRef kSpeechPhonemeSymbolsProperty; - -@ffi.Native() -external CFStringRef kSpeechPitchBaseProperty; - -@ffi.Native() -external CFStringRef kSpeechPitchModProperty; - -@ffi.Native() -external CFStringRef kSpeechPreflightThenPause; - -@ffi.Native() -external CFStringRef kSpeechRateProperty; - -@ffi.Native() -external CFStringRef kSpeechRecentSyncProperty; - -@ffi.Native() -external CFStringRef kSpeechRefConProperty; - -@ffi.Native() -external CFStringRef kSpeechResetProperty; - -@ffi.Native() -external CFStringRef kSpeechSpeechDoneCallBack; - -@ffi.Native() -external CFStringRef kSpeechStatusNumberOfCharactersLeft; - -@ffi.Native() -external CFStringRef kSpeechStatusOutputBusy; - -@ffi.Native() -external CFStringRef kSpeechStatusOutputPaused; - -@ffi.Native() -external CFStringRef kSpeechStatusPhonemeCode; - -@ffi.Native() -external CFStringRef kSpeechStatusProperty; - -@ffi.Native() -external CFStringRef kSpeechSyncCallBack; - -@ffi.Native() -external CFStringRef kSpeechSynthExtensionProperty; - -@ffi.Native() -external CFStringRef kSpeechSynthesizerInfoIdentifier; - -@ffi.Native() -external CFStringRef kSpeechSynthesizerInfoManufacturer; - -@ffi.Native() -external CFStringRef kSpeechSynthesizerInfoProperty; - -@ffi.Native() -external CFStringRef kSpeechSynthesizerInfoVersion; - -@ffi.Native() -external CFStringRef kSpeechTextDoneCallBack; - -@ffi.Native() -external CFStringRef kSpeechVoiceCreator; - -@ffi.Native() -external CFStringRef kSpeechVoiceID; - -@ffi.Native() -external CFStringRef kSpeechVolumeProperty; - -@ffi.Native() -external CFStringRef kSpeechWordCFCallBack; - -@ffi.Native() -external CFStringRef kUTExportedTypeDeclarationsKey; - -@ffi.Native() -external CFStringRef kUTImportedTypeDeclarationsKey; - -@ffi.Native() -external CFStringRef kUTTagClassFilenameExtension; - -@ffi.Native() -external CFStringRef kUTTagClassMIMEType; - -@ffi.Native() -external CFStringRef kUTTagClassNSPboardType; - -@ffi.Native() -external CFStringRef kUTTagClassOSType; - -@ffi.Native() -external CFStringRef kUTType3DContent; - -@ffi.Native() -external CFStringRef kUTTypeAVIMovie; - -@ffi.Native() -external CFStringRef kUTTypeAliasFile; - -@ffi.Native() -external CFStringRef kUTTypeAliasRecord; - -@ffi.Native() -external CFStringRef kUTTypeAppleICNS; - -@ffi.Native() -external CFStringRef kUTTypeAppleProtectedMPEG4Audio; - -@ffi.Native() -external CFStringRef kUTTypeAppleProtectedMPEG4Video; - -@ffi.Native() -external CFStringRef kUTTypeAppleScript; - -@ffi.Native() -external CFStringRef kUTTypeApplication; - -@ffi.Native() -external CFStringRef kUTTypeApplicationBundle; - -@ffi.Native() -external CFStringRef kUTTypeApplicationFile; - -@ffi.Native() -external CFStringRef kUTTypeArchive; - -@ffi.Native() -external CFStringRef kUTTypeAssemblyLanguageSource; - -@ffi.Native() -external CFStringRef kUTTypeAudio; - -@ffi.Native() -external CFStringRef kUTTypeAudioInterchangeFileFormat; - -@ffi.Native() -external CFStringRef kUTTypeAudiovisualContent; - -@ffi.Native() -external CFStringRef kUTTypeBMP; - -@ffi.Native() -external CFStringRef kUTTypeBinaryPropertyList; - -@ffi.Native() -external CFStringRef kUTTypeBookmark; - -@ffi.Native() -external CFStringRef kUTTypeBundle; - -@ffi.Native() -external CFStringRef kUTTypeBzip2Archive; - -@ffi.Native() -external CFStringRef kUTTypeCHeader; - -@ffi.Native() -external CFStringRef kUTTypeCPlusPlusHeader; - -@ffi.Native() -external CFStringRef kUTTypeCPlusPlusSource; - -@ffi.Native() -external CFStringRef kUTTypeCSource; - -@ffi.Native() -external CFStringRef kUTTypeCalendarEvent; - -@ffi.Native() -external CFStringRef kUTTypeCommaSeparatedText; - -@ffi.Native() -external CFStringRef kUTTypeCompositeContent; - -@ffi.Native() -external CFStringRef kUTTypeConformsToKey; - -@ffi.Native() -external CFStringRef kUTTypeContact; - -@ffi.Native() -external CFStringRef kUTTypeContent; - -@ffi.Native() -external CFStringRef kUTTypeData; - -@ffi.Native() -external CFStringRef kUTTypeDatabase; - -@ffi.Native() -external CFStringRef kUTTypeDelimitedText; - -@ffi.Native() -external CFStringRef kUTTypeDescriptionKey; - -@ffi.Native() -external CFStringRef kUTTypeDirectory; - -@ffi.Native() -external CFStringRef kUTTypeDiskImage; - -@ffi.Native() -external CFStringRef kUTTypeElectronicPublication; - -@ffi.Native() -external CFStringRef kUTTypeEmailMessage; - -@ffi.Native() -external CFStringRef kUTTypeExecutable; - -@ffi.Native() -external CFStringRef kUTTypeFileURL; - -@ffi.Native() -external CFStringRef kUTTypeFlatRTFD; - -@ffi.Native() -external CFStringRef kUTTypeFolder; - -@ffi.Native() -external CFStringRef kUTTypeFont; - -@ffi.Native() -external CFStringRef kUTTypeFramework; - -@ffi.Native() -external CFStringRef kUTTypeGIF; - -@ffi.Native() -external CFStringRef kUTTypeGNUZipArchive; - -@ffi.Native() -external CFStringRef kUTTypeHTML; - -@ffi.Native() -external CFStringRef kUTTypeICO; - -@ffi.Native() -external CFStringRef kUTTypeIconFileKey; - -@ffi.Native() -external CFStringRef kUTTypeIdentifierKey; - -@ffi.Native() -external CFStringRef kUTTypeImage; - -@ffi.Native() -external CFStringRef kUTTypeInkText; - -@ffi.Native() -external CFStringRef kUTTypeInternetLocation; - -@ffi.Native() -external CFStringRef kUTTypeItem; - -@ffi.Native() -external CFStringRef kUTTypeJPEG; - -@ffi.Native() -external CFStringRef kUTTypeJPEG2000; - -@ffi.Native() -external CFStringRef kUTTypeJSON; - -@ffi.Native() -external CFStringRef kUTTypeJavaArchive; - -@ffi.Native() -external CFStringRef kUTTypeJavaClass; - -@ffi.Native() -external CFStringRef kUTTypeJavaScript; - -@ffi.Native() -external CFStringRef kUTTypeJavaSource; - -@ffi.Native() -external CFStringRef kUTTypeLivePhoto; - -@ffi.Native() -external CFStringRef kUTTypeLog; - -@ffi.Native() -external CFStringRef kUTTypeM3UPlaylist; - -@ffi.Native() -external CFStringRef kUTTypeMIDIAudio; - -@ffi.Native() -external CFStringRef kUTTypeMP3; - -@ffi.Native() -external CFStringRef kUTTypeMPEG; - -@ffi.Native() -external CFStringRef kUTTypeMPEG2TransportStream; - -@ffi.Native() -external CFStringRef kUTTypeMPEG2Video; - -@ffi.Native() -external CFStringRef kUTTypeMPEG4; - -@ffi.Native() -external CFStringRef kUTTypeMPEG4Audio; - -@ffi.Native() -external CFStringRef kUTTypeMessage; - -@ffi.Native() -external CFStringRef kUTTypeMountPoint; - -@ffi.Native() -external CFStringRef kUTTypeMovie; - -@ffi.Native() -external CFStringRef kUTTypeOSAScript; - -@ffi.Native() -external CFStringRef kUTTypeOSAScriptBundle; - -@ffi.Native() -external CFStringRef kUTTypeObjectiveCPlusPlusSource; - -@ffi.Native() -external CFStringRef kUTTypeObjectiveCSource; - -@ffi.Native() -external CFStringRef kUTTypePDF; - -@ffi.Native() -external CFStringRef kUTTypePHPScript; - -@ffi.Native() -external CFStringRef kUTTypePICT; - -@ffi.Native() -external CFStringRef kUTTypePKCS12; - -@ffi.Native() -external CFStringRef kUTTypePNG; - -@ffi.Native() -external CFStringRef kUTTypePackage; - -@ffi.Native() -external CFStringRef kUTTypePerlScript; - -@ffi.Native() -external CFStringRef kUTTypePlainText; - -@ffi.Native() -external CFStringRef kUTTypePlaylist; - -@ffi.Native() -external CFStringRef kUTTypePluginBundle; - -@ffi.Native() -external CFStringRef kUTTypePresentation; - -@ffi.Native() -external CFStringRef kUTTypePropertyList; - -@ffi.Native() -external CFStringRef kUTTypePythonScript; - -@ffi.Native() -external CFStringRef kUTTypeQuickLookGenerator; - -@ffi.Native() -external CFStringRef kUTTypeQuickTimeImage; - -@ffi.Native() -external CFStringRef kUTTypeQuickTimeMovie; - -@ffi.Native() -external CFStringRef kUTTypeRTF; - -@ffi.Native() -external CFStringRef kUTTypeRTFD; - -@ffi.Native() -external CFStringRef kUTTypeRawImage; - -@ffi.Native() -external CFStringRef kUTTypeReferenceURLKey; - -@ffi.Native() -external CFStringRef kUTTypeResolvable; - -@ffi.Native() -external CFStringRef kUTTypeRubyScript; - -@ffi.Native() -external CFStringRef kUTTypeScalableVectorGraphics; - -@ffi.Native() -external CFStringRef kUTTypeScript; - -@ffi.Native() -external CFStringRef kUTTypeShellScript; - -@ffi.Native() -external CFStringRef kUTTypeSourceCode; - -@ffi.Native() -external CFStringRef kUTTypeSpotlightImporter; - -@ffi.Native() -external CFStringRef kUTTypeSpreadsheet; - -@ffi.Native() -external CFStringRef kUTTypeSwiftSource; - -@ffi.Native() -external CFStringRef kUTTypeSymLink; - -@ffi.Native() -external CFStringRef kUTTypeSystemPreferencesPane; - -@ffi.Native() -external CFStringRef kUTTypeTIFF; - -@ffi.Native() -external CFStringRef kUTTypeTXNTextAndMultimediaData; - -@ffi.Native() -external CFStringRef kUTTypeTabSeparatedText; - -@ffi.Native() -external CFStringRef kUTTypeTagSpecificationKey; - -@ffi.Native() -external CFStringRef kUTTypeText; - -@ffi.Native() -external CFStringRef kUTTypeToDoItem; - -@ffi.Native() -external CFStringRef kUTTypeURL; - -@ffi.Native() -external CFStringRef kUTTypeURLBookmarkData; - -@ffi.Native() -external CFStringRef kUTTypeUTF16ExternalPlainText; - -@ffi.Native() -external CFStringRef kUTTypeUTF16PlainText; - -@ffi.Native() -external CFStringRef kUTTypeUTF8PlainText; - -@ffi.Native() -external CFStringRef kUTTypeUTF8TabSeparatedText; - -@ffi.Native() -external CFStringRef kUTTypeUnixExecutable; - -@ffi.Native() -external CFStringRef kUTTypeVCard; - -@ffi.Native() -external CFStringRef kUTTypeVersionKey; - -@ffi.Native() -external CFStringRef kUTTypeVideo; - -@ffi.Native() -external CFStringRef kUTTypeVolume; - -@ffi.Native() -external CFStringRef kUTTypeWaveformAudio; - -@ffi.Native() -external CFStringRef kUTTypeWebArchive; - -@ffi.Native() -external CFStringRef kUTTypeWindowsExecutable; - -@ffi.Native() -external CFStringRef kUTTypeX509Certificate; - -@ffi.Native() -external CFStringRef kUTTypeXML; - -@ffi.Native() -external CFStringRef kUTTypeXMLPropertyList; - -@ffi.Native() -external CFStringRef kUTTypeXPCService; - -@ffi.Native() -external CFStringRef kUTTypeZipArchive; - -@ffi.Native() -external CFStringRef kWSDebugIncomingBody; - -@ffi.Native() -external CFStringRef kWSDebugIncomingHeaders; - -@ffi.Native() -external CFStringRef kWSDebugOutgoingBody; - -@ffi.Native() -external CFStringRef kWSDebugOutgoingHeaders; - -@ffi.Native() -external CFStringRef kWSFaultCode; - -@ffi.Native() -external CFStringRef kWSFaultExtra; - -@ffi.Native() -external CFStringRef kWSFaultString; - -@ffi.Native() -external CFStringRef kWSHTTPExtraHeaders; - -@ffi.Native() -external CFStringRef kWSHTTPFollowsRedirects; - -@ffi.Native() -external CFStringRef kWSHTTPMessage; - -@ffi.Native() -external CFStringRef kWSHTTPProxy; - -@ffi.Native() -external CFStringRef kWSHTTPResponseMessage; - -@ffi.Native() -external CFStringRef kWSHTTPVersion; - -@ffi.Native() -external CFStringRef kWSMethodInvocationResult; - -@ffi.Native() -external CFStringRef kWSMethodInvocationResultParameterName; - -@ffi.Native() -external CFStringRef kWSMethodInvocationTimeoutValue; - -@ffi.Native() -external CFStringRef kWSNetworkStreamFaultString; - -@ffi.Native() -external CFStringRef kWSRecordNamespaceURI; - -@ffi.Native() -external CFStringRef kWSRecordParameterOrder; - -@ffi.Native() -external CFStringRef kWSRecordType; - -@ffi.Native() -external CFStringRef kWSSOAP1999Protocol; - -@ffi.Native() -external CFStringRef kWSSOAP2001Protocol; - -@ffi.Native() -external CFStringRef kWSSOAPBodyEncodingStyle; - -@ffi.Native() -external CFStringRef kWSSOAPMessageHeaders; - -@ffi.Native() -external CFStringRef kWSSOAPMethodNamespaceURI; - -@ffi.Native() -external CFStringRef kWSSOAPStyleDoc; - -@ffi.Native() -external CFStringRef kWSSOAPStyleRPC; - -@ffi.Native() -external CFStringRef kWSStreamErrorDomain; - -@ffi.Native() -external CFStringRef kWSStreamErrorError; - -@ffi.Native() -external CFStringRef kWSStreamErrorMessage; - -@ffi.Native() -external CFStringRef kWSXMLRPCProtocol; - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kcfindapplesharepassword( - ffi.Pointer> serverSignature, - ffi.Pointer serverAddress, - ffi.Pointer serverName, - ffi.Pointer volumeName, - ffi.Pointer accountName, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kcfindgenericpassword( - ffi.Pointer serviceName, - ffi.Pointer accountName, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - UInt16, - OSType, - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kcfindinternetpassword( - ffi.Pointer serverName, - ffi.Pointer securityDomain, - ffi.Pointer accountName, - int port, - int protocol, - int authType, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - UInt16, - OSType, - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kcfindinternetpasswordwithpath( - ffi.Pointer serverName, - ffi.Pointer securityDomain, - ffi.Pointer accountName, - ffi.Pointer path, - int port, - int protocol, - int authType, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int kcgetkeychainname( - KCRef keychain, - ffi.Pointer keychainName, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - ffi.Uint32, - vm_offset_t, - mach_msg_type_number_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kext_request( - int host_priv, - int user_log_flags, - int request_data, - int request_dataCnt, - ffi.Pointer response_data, - ffi.Pointer response_dataCnt, - ffi.Pointer log_data, - ffi.Pointer log_dataCnt, - ffi.Pointer op_result, -); - -@ffi.Native() -external int kill(int arg0, int arg1); - -@ffi.Native() -external int killpg(int arg0, int arg1); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - kmod_t, - kmod_control_flavor_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kmod_control( - int host_priv, - int module, - int flavor, - ffi.Pointer data, - ffi.Pointer dataCnt, -); - -@ffi.Native< - kern_return_t Function(host_priv_t, vm_address_t, ffi.Pointer) ->() -external int kmod_create(int host_priv, int info, ffi.Pointer module); - -@ffi.Native() -external int kmod_destroy(int host_priv, int module); - -@ffi.Native< - kern_return_t Function( - host_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kmod_get_info( - int host, - ffi.Pointer modules, - ffi.Pointer modulesCnt, -); - -@ffi.Native Function(ffi.Long)>() -external ffi.Pointer l64a(int arg0); - -@ffi.Native() -external int labs(int arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int launch_activate_socket( - ffi.Pointer name, - ffi.Pointer> fds, - ffi.Pointer cnt, -); - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'launch_data_alloc', -) -external launch_data_t _launch_data_alloc(int type); - -launch_data_t launch_data_alloc(launch_data_type_t type) { - return _launch_data_alloc(type.value); -} - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_array_get_count(launch_data_t larray); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_array_get_index( - launch_data_t larray, - int idx, -); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_array_set_index( - launch_data_t larray, - launch_data_t lval, - int idx, -); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_copy(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_dict_get_count(launch_data_t ldict); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Bool Function(launch_data_t, launch_data_t, ffi.Pointer) ->() -external bool launch_data_dict_insert( - launch_data_t ldict, - launch_data_t lval, - ffi.Pointer key, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - launch_data_t, - launch_data_dict_iterator_t, - ffi.Pointer, - ) ->() -external void launch_data_dict_iterate( - launch_data_t ldict, - launch_data_dict_iterator_t iterator, - ffi.Pointer ctx, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external launch_data_t launch_data_dict_lookup( - launch_data_t ldict, - ffi.Pointer key, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external bool launch_data_dict_remove( - launch_data_t ldict, - ffi.Pointer key, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void launch_data_free(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_get_bool(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_get_errno(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_get_fd(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_get_integer(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_get_machport(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native Function(launch_data_t)>() -external ffi.Pointer launch_data_get_opaque(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_get_opaque_size(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external double launch_data_get_real(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native Function(launch_data_t)>() -external ffi.Pointer launch_data_get_string(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'launch_data_get_type', -) -external int _launch_data_get_type(launch_data_t ld); - -launch_data_type_t launch_data_get_type(launch_data_t ld) { - return launch_data_type_t.fromValue(_launch_data_get_type(ld)); -} - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_new_bool(bool val); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_new_fd(int fd); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_new_integer(int val); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_new_machport(int val); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Size)>() -external launch_data_t launch_data_new_opaque( - ffi.Pointer bytes, - int sz, -); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_new_real(double val); - -@Deprecated('Deprecated') -@ffi.Native)>() -external launch_data_t launch_data_new_string(ffi.Pointer val); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_set_bool(launch_data_t ld, bool val); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_set_fd(launch_data_t ld, int fd); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_set_integer(launch_data_t ld, int val); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_set_machport(launch_data_t ld, int mp); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Size)>() -external bool launch_data_set_opaque( - launch_data_t ld, - ffi.Pointer bytes, - int sz, -); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_set_real(launch_data_t ld, double val); - -@Deprecated('Deprecated') -@ffi.Native)>() -external bool launch_data_set_string( - launch_data_t ld, - ffi.Pointer val, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_get_fd(); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_msg(launch_data_t request); - -@ffi.Native, uid_t, gid_t)>() -external int lchown(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native)>() -external void lcong48(ffi.Pointer arg0); - -@ffi.Native() -external double ldexp(double arg0, int arg1); - -@ffi.Native() -external double ldexpf(double arg0, int arg1); - -@ffi.Native() -external ldiv_t ldiv(int arg0, int arg1); - -@ffi.Native() -external double lgamma(double arg0); - -@ffi.Native() -external double lgammaf(double arg0); - -@ffi.Native, ffi.Pointer)>() -external int link(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->() -external int linkat( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - int arg4, -); - -@ffi.Native() -external int listen(int arg0, int arg1); - -@ffi.Native() -external int llabs(int arg0); - -@ffi.Native() -external lldiv_t lldiv(int arg0, int arg1); - -@ffi.Native() -external int llrint(double arg0); - -@ffi.Native() -external int llrintf(double arg0); - -@ffi.Native() -external int llround(double arg0); - -@ffi.Native() -external int llroundf(double arg0); - -@ffi.Native Function()>() -external ffi.Pointer localeconv(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer localtime(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() -external ffi.Pointer localtime_r( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - kern_return_t Function(task_t, ffi.Pointer, ffi.Int, ffi.Int) ->() -external int lock_set_create( - int task, - ffi.Pointer new_lock_set, - int n_ulocks, - int policy, -); - -@ffi.Native() -external int lock_set_destroy(int task, int lock_set); - -@ffi.Native() -external int lockf(int arg0, int arg1, int arg2); - -@ffi.Native() -external double log(double arg0); - -@ffi.Native() -external double log10(double arg0); - -@ffi.Native() -external double log10f(double arg0); - -@ffi.Native() -external double log1p(double arg0); - -@ffi.Native() -external double log1pf(double arg0); - -@ffi.Native() -external double log2(double arg0); - -@ffi.Native() -external double log2f(double arg0); - -@ffi.Native() -external double logb(double arg0); - -@ffi.Native() -external double logbf(double arg0); - -@ffi.Native() -external double logf(double arg0); - -@ffi.Native, ffi.Int)>() -external void longjmp(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external void longjmperror(); - -@ffi.Native() -external int lrand48(); - -@ffi.Native() -external int lrint(double arg0); - -@ffi.Native() -external int lrintf(double arg0); - -@ffi.Native() -external int lround(double arg0); - -@ffi.Native() -external int lroundf(double arg0); - -@ffi.Native() -external int lseek(int arg0, int arg1, int arg2); - -@ffi.Native, ffi.Pointer)>() -external int lutimes(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native, mach_error_t)>() -external void mach_error(ffi.Pointer str, int error_value); - -@ffi.Native Function(mach_error_t)>() -external ffi.Pointer mach_error_string(int error_value); - -@ffi.Native Function(mach_error_t)>() -external ffi.Pointer mach_error_type(int error_value); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, ffi.Int, ffi.Pointer) ->() -external int mach_generate_activity_id( - int target, - int count, - ffi.Pointer activity_id, -); - -@ffi.Native() -external int mach_host_self(); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_offset_t, - vm_prot_t, - ffi.Pointer, - mem_entry_name_port_t, - ) ->() -external int mach_make_memory_entry( - int target_task, - ffi.Pointer size, - int offset, - int permission, - ffi.Pointer object_handle, - int parent_entry, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - memory_object_offset_t, - vm_prot_t, - ffi.Pointer, - mem_entry_name_port_t, - ) ->() -external int mach_make_memory_entry_64( - int target_task, - ffi.Pointer size, - int offset, - int permission, - ffi.Pointer object_handle, - int parent_entry, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_memory_info( - int host, - ffi.Pointer names, - ffi.Pointer namesCnt, - ffi.Pointer info, - ffi.Pointer infoCnt, - ffi.Pointer memory_info, - ffi.Pointer memory_infoCnt, -); - -@ffi.Native< - kern_return_t Function( - host_t, - boolean_t, - vm_size_t, - vm_prot_t, - memory_object_t, - ffi.Pointer, - ) ->() -external int mach_memory_object_memory_entry( - int host, - int internal, - int size, - int permission, - int pager, - ffi.Pointer entry_handle, -); - -@ffi.Native< - kern_return_t Function( - host_t, - boolean_t, - memory_object_size_t, - vm_prot_t, - memory_object_t, - ffi.Pointer, - ) ->() -external int mach_memory_object_memory_entry_64( - int host, - int internal, - int size, - int permission, - int pager, - ffi.Pointer entry_handle, -); - -@ffi.Native< - mach_msg_return_t Function( - ffi.Pointer, - mach_msg_option_t, - mach_msg_size_t, - mach_msg_size_t, - mach_port_name_t, - mach_msg_timeout_t, - mach_port_name_t, - ) ->() -external int mach_msg( - ffi.Pointer msg, - int option, - int send_size, - int rcv_size, - int rcv_name, - int timeout, - int notify, -); - -@ffi.Native)>() -external void mach_msg_destroy(ffi.Pointer arg0); - -@ffi.Native< - mach_msg_return_t Function( - ffi.Pointer, - mach_msg_option_t, - mach_msg_size_t, - mach_msg_size_t, - mach_port_name_t, - mach_msg_timeout_t, - mach_port_name_t, - ffi.Pointer, - mach_msg_size_t, - ) ->() -external int mach_msg_overwrite( - ffi.Pointer msg, - int option, - int send_size, - int rcv_size, - int rcv_name, - int timeout, - int notify, - ffi.Pointer rcv_msg, - int rcv_limit, -); - -@ffi.Native)>() -external int mach_msg_receive(ffi.Pointer arg0); - -@ffi.Native)>() -external int mach_msg_send(ffi.Pointer arg0); - -@ffi.Native< - mach_msg_return_t Function( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >, - mach_msg_size_t, - mach_port_t, - mach_msg_options_t, - ) ->() -external int mach_msg_server( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native< - mach_msg_return_t Function( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >, - mach_msg_size_t, - mach_port_t, - mach_msg_options_t, - ) ->() -external int mach_msg_server_importance( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native< - mach_msg_return_t Function( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >, - mach_msg_size_t, - mach_port_t, - mach_msg_options_t, - ) ->() -external int mach_msg_server_once( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_right_t, - ffi.Pointer, - ) ->() -external int mach_port_allocate( - int task, - int right, - ffi.Pointer name, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_right_t, - mach_port_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_allocate_full( - int task, - int right, - int proto, - ffi.Pointer qos, - ffi.Pointer name, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_right_t, mach_port_name_t) ->() -external int mach_port_allocate_name(int task, int right, int name); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_right_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_allocate_qos( - int task, - int right, - ffi.Pointer qos, - ffi.Pointer name, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_flavor_t, - mach_port_info_t, - mach_msg_type_number_t, - ) ->() -external int mach_port_assert_attributes( - int task, - int name, - int flavor, - mach_port_info_t info, - int infoCnt, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_options_ptr_t, - mach_port_context_t, - ffi.Pointer, - ) ->() -external int mach_port_construct( - int task, - mach_port_options_ptr_t options, - int context, - ffi.Pointer name, -); - -@ffi.Native() -external int mach_port_deallocate(int task, int name); - -@Deprecated( - 'Inherently unsafe API: instead manage rights with mach_port_destruct(), mach_port_deallocate() or mach_port_mod_refs()', -) -@ffi.Native() -external int mach_port_destroy(int task, int name); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_delta_t, - mach_port_context_t, - ) ->() -external int mach_port_destruct(int task, int name, int srdelta, int guard); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_dnrequest_info( - int task, - int name, - ffi.Pointer dnr_total, - ffi.Pointer dnr_used, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) ->() -external int mach_port_extract_member(int task, int name, int pset); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_msg_type_name_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_extract_right( - int task, - int name, - int msgt_name, - ffi.Pointer poly, - ffi.Pointer polyPoly, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - mach_port_flavor_t, - mach_port_info_t, - ffi.Pointer, - ) ->() -external int mach_port_get_attributes( - int task, - int name, - int flavor, - mach_port_info_t port_info_out, - ffi.Pointer port_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int mach_port_get_context( - int task, - int name, - ffi.Pointer context, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_right_t, - ffi.Pointer, - ) ->() -external int mach_port_get_refs( - int task, - int name, - int right, - ffi.Pointer refs, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int mach_port_get_service_port_info( - int task, - int name, - ffi.Pointer sp_info_out, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_get_set_status( - int task, - int name, - ffi.Pointer members, - ffi.Pointer membersCnt, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int mach_port_get_srights( - int task, - int name, - ffi.Pointer srights, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_context_t, - boolean_t, - ) ->() -external int mach_port_guard(int task, int name, int guard, int strict); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_context_t, - ffi.Uint64, - ) ->() -external int mach_port_guard_with_flags( - int task, - int name, - int guard, - int flags, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) ->() -external int mach_port_insert_member(int task, int name, int pset); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_t, - mach_msg_type_name_t, - ) ->() -external int mach_port_insert_right(int task, int name, int poly, int polyPoly); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int mach_port_is_connection_for_service( - int task, - int connection_port, - int service_port, - ffi.Pointer filter_policy_id, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_kernel_object( - int task, - int name, - ffi.Pointer object_type, - ffi.Pointer object_addr, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_kobject( - int task, - int name, - ffi.Pointer object_type, - ffi.Pointer object_addr, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_kobject_description( - int task, - int name, - ffi.Pointer object_type, - ffi.Pointer object_addr, - ffi.Pointer description, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_right_t, - mach_port_delta_t, - ) ->() -external int mach_port_mod_refs(int task, int name, int right, int delta); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) ->() -external int mach_port_move_member(int task, int member, int after); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_names( - int task, - ffi.Pointer names, - ffi.Pointer namesCnt, - ffi.Pointer types, - ffi.Pointer typesCnt, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_msg_trailer_type_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - mach_msg_trailer_info_t, - ffi.Pointer, - ) ->() -external int mach_port_peek( - int task, - int name, - int trailer_type, - ffi.Pointer request_seqnop, - ffi.Pointer msg_sizep, - ffi.Pointer msg_idp, - mach_msg_trailer_info_t trailer_infop, - ffi.Pointer trailer_infopCnt, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) ->() -external int mach_port_rename(int task, int old_name, int new_name); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_msg_id_t, - mach_port_mscount_t, - mach_port_t, - mach_msg_type_name_t, - ffi.Pointer, - ) ->() -external int mach_port_request_notification( - int task, - int name, - int msgid, - int sync$1, - int notify, - int notifyPoly, - ffi.Pointer previous, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_flavor_t, - mach_port_info_t, - mach_msg_type_number_t, - ) ->() -external int mach_port_set_attributes( - int task, - int name, - int flavor, - mach_port_info_t port_info, - int port_infoCnt, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_context_t) ->() -external int mach_port_set_context(int task, int name, int context); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_mscount_t) ->() -external int mach_port_set_mscount(int task, int name, int mscount); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_seqno_t) ->() -external int mach_port_set_seqno(int task, int name, int seqno); - -@ffi.Native< - kern_return_t Function( - ipc_space_inspect_t, - ffi.Pointer, - ) ->() -external int mach_port_space_basic_info( - int task, - ffi.Pointer basic_info, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_space_info( - int space, - ffi.Pointer space_info, - ffi.Pointer table_info, - ffi.Pointer table_infoCnt, - ffi.Pointer tree_info, - ffi.Pointer tree_infoCnt, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_context_t, - mach_port_context_t, - ) ->() -external int mach_port_swap_guard( - int task, - int name, - int old_guard, - int new_guard, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int mach_port_type( - int task, - int name, - ffi.Pointer ptype, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_context_t) ->() -external int mach_port_unguard(int task, int name, int guard); - -@ffi.Native< - kern_return_t Function( - task_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_ports_lookup( - int target_task, - ffi.Pointer init_port_set, - ffi.Pointer init_port_setCnt, -); - -@ffi.Native< - kern_return_t Function(task_t, mach_port_array_t, mach_msg_type_number_t) ->() -external int mach_ports_register( - int target_task, - mach_port_array_t init_port_set, - int init_port_setCnt, -); - -@ffi.Native() -external int mach_task_is_self(int task); - -@ffi.Native() -external int mach_task_self_; - -@ffi.Native() -external int mach_thread_self(); - -@ffi.Native)>() -external int mach_vm_reclaim_update_kernel_accounting_trap( - int target_tport, - ffi.Pointer bytes_reclaimed, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - vm_address_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_vm_region_info( - int task, - int address, - ffi.Pointer region, - ffi.Pointer objects, - ffi.Pointer objectsCnt, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - vm_address_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_vm_region_info_64( - int task, - int address, - ffi.Pointer region, - ffi.Pointer objects, - ffi.Pointer objectsCnt, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - vm_map_t, - mach_vm_address_t, - mach_vm_size_t, - vm_prot_t, - ) ->() -external int mach_vm_wire( - int host_priv, - int task, - int address, - int size, - int desired_access, -); - -@ffi.Native() -external int mach_voucher_deallocate(int voucher); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_voucher_attr_key_t, - mach_voucher_attr_raw_recipe_t, - ffi.Pointer, - ) ->() -external int mach_voucher_extract_attr_recipe_trap( - int voucher_name, - int key, - mach_voucher_attr_raw_recipe_t recipe, - ffi.Pointer recipe_size, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_zone_info( - int host, - ffi.Pointer names, - ffi.Pointer namesCnt, - ffi.Pointer info, - ffi.Pointer infoCnt, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - mach_zone_name_t, - ffi.Pointer, - ) ->() -external int mach_zone_info_for_zone( - int host, - mach_zone_name_t name, - ffi.Pointer info, -); - -@ffi.Native() -external int macx_backing_store_recovery(int pid); - -@ffi.Native() -external int macx_backing_store_suspend(int suspend); - -@ffi.Native() -external int macx_swapoff(int filename, int flags); - -@ffi.Native() -external int macx_swapon(int filename, int flags, int size, int priority); - -@ffi.Native() -external int macx_triggers( - int hi_water, - int low_water, - int flags, - int alert_port, -); - -@ffi.Native, ffi.Size, ffi.Int)>() -external int madvise(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native Function(ffi.Size)>() -external ffi.Pointer malloc(int __size); - -@ffi.Native< - ffi.Pointer Function(ffi.Size, ffi.Size, malloc_type_id_t) ->() -external ffi.Pointer malloc_type_aligned_alloc( - int alignment, - int size, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Size, ffi.Size, malloc_type_id_t) ->() -external ffi.Pointer malloc_type_calloc( - int count, - int size, - int type_id, -); - -@ffi.Native, malloc_type_id_t)>() -external void malloc_type_free(ffi.Pointer ptr, int type_id); - -@ffi.Native Function(ffi.Size, malloc_type_id_t)>() -external ffi.Pointer malloc_type_malloc(int size, int type_id); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Size, - ffi.Size, - malloc_type_id_t, - ) ->() -external int malloc_type_posix_memalign( - ffi.Pointer> memptr, - int alignment, - int size, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_realloc( - ffi.Pointer ptr, - int size, - int type_id, -); - -@ffi.Native Function(ffi.Size, malloc_type_id_t)>() -external ffi.Pointer malloc_type_valloc(int size, int type_id); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_zone_calloc( - ffi.Pointer zone, - int count, - int size, - int type_id, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - malloc_type_id_t, - ) ->() -external void malloc_type_zone_free( - ffi.Pointer zone, - ffi.Pointer ptr, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_zone_malloc( - ffi.Pointer zone, - int size, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_zone_memalign( - ffi.Pointer zone, - int alignment, - int size, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_zone_realloc( - ffi.Pointer zone, - ffi.Pointer ptr, - int size, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_zone_valloc( - ffi.Pointer zone, - int size, - int type_id, -); - -@ffi.Native, ffi.Size)>() -external int mblen(ffi.Pointer __s, int __n); - -@ffi.Native< - ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int mbstowcs( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int mbtowc( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Size, - ) ->() -external ffi.Pointer memccpy( - ffi.Pointer __dst, - ffi.Pointer __src, - int __c, - int __n, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Size) ->() -external ffi.Pointer memchr( - ffi.Pointer __s, - int __c, - int __n, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int memcmp( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer memcpy( - ffi.Pointer __dst, - ffi.Pointer __src, - int __n, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer memmem( - ffi.Pointer __big, - int __big_len, - ffi.Pointer __little, - int __little_len, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer memmove( - ffi.Pointer __dst, - ffi.Pointer __src, - int __len, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Size) ->() -external ffi.Pointer memset( - ffi.Pointer __b, - int __c, - int __len, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external void memset_pattern16( - ffi.Pointer __b, - ffi.Pointer __pattern16, - int __len, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external void memset_pattern4( - ffi.Pointer __b, - ffi.Pointer __pattern4, - int __len, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external void memset_pattern8( - ffi.Pointer __b, - ffi.Pointer __pattern8, - int __len, -); - -@ffi.Native< - errno_t Function(ffi.Pointer, rsize_t, ffi.Int, rsize_t) ->() -external int memset_s(ffi.Pointer __s, int __smax, int __c, int __n); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >, - ) ->() -external int mergesort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - __compar, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'mergesort_b') -external int _mergesort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer __compar, -); - -int mergesort_b( - ffi.Pointer __base, - int __nel, - int __width, - objc.ObjCBlock, ffi.Pointer)> - __compar, -) { - final _$$ref = __compar.ref; - return _mergesort_b(__base, __nel, __width, _$$ref.pointer); -} - -@ffi.Native, vm_size_t)>() -external void mig_allocate(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external void mig_dealloc_reply_port(int reply_port); - -@ffi.Native() -external void mig_deallocate(int arg0, int arg1); - -@ffi.Native() -external int mig_get_reply_port(); - -@ffi.Native() -external void mig_put_reply_port(int reply_port); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external void mig_reply_setup( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int mig_strncpy( - ffi.Pointer dest, - ffi.Pointer src, - int len, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int mig_strncpy_zerofill( - ffi.Pointer dest, - ffi.Pointer src, - int len, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Pointer) ->() -external int mincore( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -); - -@ffi.Native, ffi.Size, ffi.Int)>() -external int minherit(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer mkdtemp(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Int, ffi.Pointer)>() -external ffi.Pointer mkdtempat_np( - int dfd, - ffi.Pointer path, -); - -@ffi.Native, mode_t, dev_t)>() -external int mknod(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native, ffi.Int)>() -external int mkostemp(ffi.Pointer path, int oflags); - -@ffi.Native, ffi.Int, ffi.Int)>() -external int mkostemps(ffi.Pointer path, int slen, int oflags); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) ->() -external int mkostempsat_np( - int dfd, - ffi.Pointer path, - int slen, - int oflags, -); - -@ffi.Native, mode_t)>() -external int mkpath_np(ffi.Pointer path, int omode); - -@ffi.Native, mode_t)>() -external int mkpathat_np(int dfd, ffi.Pointer path, int omode); - -@ffi.Native)>() -external int mkstemp(ffi.Pointer arg0); - -@ffi.Native, ffi.Int, ffi.Int)>() -external int mkstemp_dprotected_np( - ffi.Pointer path, - int dpclass, - int dpflags, -); - -@ffi.Native, ffi.Int)>() -external int mkstemps(ffi.Pointer arg0, int arg1); - -@ffi.Native, ffi.Int)>() -external int mkstempsat_np(int dfd, ffi.Pointer path, int slen); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.', -) -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer mktemp(ffi.Pointer arg0); - -@ffi.Native)>() -external int mktime(ffi.Pointer arg0); - -@ffi.Native, ffi.Size)>() -external int mlock(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int mlockall(int arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Int, - ffi.Int, - off_t, - ) ->() -external ffi.Pointer mmap( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, - int arg4, - int arg5, -); - -@ffi.Native)>() -external double modf(double arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external double modff(double arg0, ffi.Pointer arg1); - -@ffi.Native, ffi.Size, ffi.Int)>() -external int mprotect(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native() -external int mrand48(); - -@ffi.Native, ffi.Size, ffi.Int)>() -external int msync(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native, ffi.Size)>() -external int munlock(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int munlockall(); - -@ffi.Native, ffi.Size)>() -external int munmap(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external double nan(ffi.Pointer arg0); - -@ffi.Native)>() -external double nanf(ffi.Pointer arg0); - -@ffi.Native, ffi.Pointer)>() -external int nanosleep( - ffi.Pointer __rqtp, - ffi.Pointer __rmtp, -); - -@ffi.Native() -external double nearbyint(double arg0); - -@ffi.Native() -external double nearbyintf(double arg0); - -@ffi.Native, locale_t)>() -external locale_t newlocale( - int arg0, - ffi.Pointer arg1, - locale_t arg2, -); - -@ffi.Native() -external double nextafter(double arg0, double arg1); - -@ffi.Native() -external double nextafterf(double arg0, double arg1); - -@ffi.Native)>() -external int nfssvc(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external int nice(int arg0); - -@ffi.Native)>() -external int nrand48(ffi.Pointer arg0); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(ffi.Pointer, double_t, ffi.Pointer) ->() -external void num2dec(ffi.Pointer f, double x, ffi.Pointer d); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void numtostring(int theNum, ffi.Pointer theString); - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'object_getClassName', -) -external ffi.Pointer _object_getClassName( - ffi.Pointer obj, -); - -ffi.Pointer object_getClassName(objc.ObjCObject? obj) { - final _$$ref = obj?.ref; - return _object_getClassName(_$$ref?.pointer ?? ffi.nullptr); -} - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'object_getIndexedIvars', -) -external ffi.Pointer _object_getIndexedIvars( - ffi.Pointer obj, -); - -ffi.Pointer object_getIndexedIvars(objc.ObjCObject? obj) { - final _$$ref = obj?.ref; - return _object_getIndexedIvars(_$$ref?.pointer ?? ffi.nullptr); -} - -@ffi.Native() -external final DERItem oidAdCAIssuer; - -@ffi.Native() -external final DERItem oidAdOCSP; - -@ffi.Native() -external final DERItem oidAnsip384r1; - -@ffi.Native() -external final DERItem oidAnsip521r1; - -@ffi.Native() -external final DERItem oidAnyExtendedKeyUsage; - -@ffi.Native() -external final DERItem oidAnyPolicy; - -@ffi.Native() -external final DERItem oidAuthorityInfoAccess; - -@ffi.Native() -external final DERItem oidAuthorityKeyIdentifier; - -@ffi.Native() -external final DERItem oidBasicConstraints; - -@ffi.Native() -external final DERItem oidCertificatePolicies; - -@ffi.Native() -external final DERItem oidCommonName; - -@ffi.Native() -external final DERItem oidCountryName; - -@ffi.Native() -external final DERItem oidCrlDistributionPoints; - -@ffi.Native() -external final DERItem oidDescription; - -@ffi.Native() -external final DERItem oidEcPrime192v1; - -@ffi.Native() -external final DERItem oidEcPrime256v1; - -@ffi.Native() -external final DERItem oidEcPubKey; - -@ffi.Native() -external final DERItem oidEmailAddress; - -@ffi.Native() -external final DERItem oidEntrustVersInfo; - -@ffi.Native() -external final DERItem oidExtendedKeyUsage; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageClientAuth; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageCodeSigning; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageEmailProtection; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageIPSec; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageMicrosoftSGC; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageNetscapeSGC; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageOCSPSigning; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageServerAuth; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageTimeStamping; - -@ffi.Native() -external final DERItem oidFee; - -@ffi.Native() -external final DERItem oidFriendlyName; - -@ffi.Native() -external final DERItem oidGoogleEmbeddedSignedCertificateTimestamp; - -@ffi.Native() -external final DERItem oidGoogleOCSPSignedCertificateTimestamp; - -@ffi.Native() -external final DERItem oidInhibitAnyPolicy; - -@ffi.Native() -external final DERItem oidIssuerAltName; - -@ffi.Native() -external final DERItem oidKeyUsage; - -@ffi.Native() -external final DERItem oidLocalKeyId; - -@ffi.Native() -external final DERItem oidLocalityName; - -@ffi.Native() -external final DERItem oidMSNTPrincipalName; - -@ffi.Native() -external final DERItem oidMd2; - -@ffi.Native() -external final DERItem oidMd2Rsa; - -@ffi.Native() -external final DERItem oidMd4; - -@ffi.Native() -external final DERItem oidMd4Rsa; - -@ffi.Native() -external final DERItem oidMd5; - -@ffi.Native() -external final DERItem oidMd5Fee; - -@ffi.Native() -external final DERItem oidMd5Rsa; - -@ffi.Native() -external final DERItem oidNameConstraints; - -@ffi.Native() -external final DERItem oidNetscapeCertType; - -@ffi.Native() -external final DERItem oidOrganizationName; - -@ffi.Native() -external final DERItem oidOrganizationalUnitName; - -@ffi.Native() -external final DERItem oidPolicyConstraints; - -@ffi.Native() -external final DERItem oidPolicyMappings; - -@ffi.Native() -external final DERItem oidPrivateKeyUsagePeriod; - -@ffi.Native() -external final DERItem oidQtCps; - -@ffi.Native() -external final DERItem oidQtUNotice; - -@ffi.Native() -external final DERItem oidRsa; - -@ffi.Native() -external final DERItem oidSha1; - -@ffi.Native() -external final DERItem oidSha1Dsa; - -@ffi.Native() -external final DERItem oidSha1DsaCommonOIW; - -@ffi.Native() -external final DERItem oidSha1DsaOIW; - -@ffi.Native() -external final DERItem oidSha1Ecdsa; - -@ffi.Native() -external final DERItem oidSha1Fee; - -@ffi.Native() -external final DERItem oidSha1Rsa; - -@ffi.Native() -external final DERItem oidSha1RsaOIW; - -@ffi.Native() -external final DERItem oidSha224; - -@ffi.Native() -external final DERItem oidSha224Ecdsa; - -@ffi.Native() -external final DERItem oidSha224Rsa; - -@ffi.Native() -external final DERItem oidSha256; - -@ffi.Native() -external final DERItem oidSha256Ecdsa; - -@ffi.Native() -external final DERItem oidSha256Rsa; - -@ffi.Native() -external final DERItem oidSha384; - -@ffi.Native() -external final DERItem oidSha384Ecdsa; - -@ffi.Native() -external final DERItem oidSha384Rsa; - -@ffi.Native() -external final DERItem oidSha512; - -@ffi.Native() -external final DERItem oidSha512Ecdsa; - -@ffi.Native() -external final DERItem oidSha512Rsa; - -@ffi.Native() -external final DERItem oidStateOrProvinceName; - -@ffi.Native() -external final DERItem oidSubjectAltName; - -@ffi.Native() -external final DERItem oidSubjectInfoAccess; - -@ffi.Native() -external final DERItem oidSubjectKeyIdentifier; - -@ffi.Native, ffi.Int)>() -external int open(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int, ffi.Int) ->() -external int open_dprotected_np( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer>, - ffi.Pointer, - ) ->() -external ffi.Pointer open_memstream( - ffi.Pointer> __bufp, - ffi.Pointer __sizep, -); - -@ffi.Native, ffi.Int)>() -external int openat(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) ->() -external int openat_authenticated_np( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int, ffi.Int) ->() -external int openat_dprotected_np( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, -); - -@ffi.Native, ffi.Int, filesec_t)>() -external int openx_np(ffi.Pointer arg0, int arg1, filesec_t arg2); - -@ffi.Native>() -external ffi.Pointer optarg; - -@ffi.Native() -external int opterr; - -@ffi.Native() -external int optind; - -@ffi.Native() -external int optopt; - -@ffi.Native() -external int optreset; - -@ffi.Native)>() -external void os_release(ffi.Pointer object); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer os_retain(ffi.Pointer object); - -@ffi.Native(symbol: 'os_workgroup_cancel') -external void _os_workgroup_cancel(os_workgroup_t wg); - -void os_workgroup_cancel(Dartos_workgroup_t wg) { - final _$$ref = wg.ref; - return _os_workgroup_cancel(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'os_workgroup_copy_port', -) -external int _os_workgroup_copy_port( - os_workgroup_t wg, - ffi.Pointer mach_port_out, -); - -int os_workgroup_copy_port( - Dartos_workgroup_t wg, - ffi.Pointer mach_port_out, -) { - final _$$ref = wg.ref; - return _os_workgroup_copy_port(_$$ref.pointer, mach_port_out); -} - -@ffi.Native, mach_port_t)>( - symbol: 'os_workgroup_create_with_port', -) -external os_workgroup_t _os_workgroup_create_with_port( - ffi.Pointer name, - int mach_port, -); - -Dartos_workgroup_t? os_workgroup_create_with_port( - ffi.Pointer name, - Dart__darwin_natural_t mach_port, -) { - return _os_workgroup_create_with_port(name, mach_port).address == 0 - ? null - : OS_os_workgroup.fromPointer( - _os_workgroup_create_with_port(name, mach_port), - retain: false, - release: true, - ); -} - -@ffi.Native, os_workgroup_t)>( - symbol: 'os_workgroup_create_with_workgroup', -) -external os_workgroup_t _os_workgroup_create_with_workgroup( - ffi.Pointer name, - os_workgroup_t wg, -); - -Dartos_workgroup_t? os_workgroup_create_with_workgroup( - ffi.Pointer name, - Dartos_workgroup_t wg, -) { - final _$$ref = wg.ref; - return _os_workgroup_create_with_workgroup(name, _$$ref.pointer).address == 0 - ? null - : OS_os_workgroup.fromPointer( - _os_workgroup_create_with_workgroup(name, _$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - os_workgroup_t, - ffi.Pointer, - ) ->(symbol: 'os_workgroup_get_working_arena') -external ffi.Pointer _os_workgroup_get_working_arena( - os_workgroup_t wg, - ffi.Pointer index_out, -); - -ffi.Pointer os_workgroup_get_working_arena( - Dartos_workgroup_t wg, - ffi.Pointer index_out, -) { - final _$$ref = wg.ref; - return _os_workgroup_get_working_arena(_$$ref.pointer, index_out); -} - -@ffi.Native< - ffi.Int Function(os_workgroup_interval_t, os_workgroup_interval_data_t) ->(symbol: 'os_workgroup_interval_finish') -external int _os_workgroup_interval_finish( - os_workgroup_interval_t wg, - os_workgroup_interval_data_t data, -); - -int os_workgroup_interval_finish( - Dartos_workgroup_interval_t wg, - os_workgroup_interval_data_t data, -) { - final _$$ref = wg.ref; - return _os_workgroup_interval_finish(_$$ref.pointer, data); -} - -@ffi.Native< - ffi.Int Function( - os_workgroup_interval_t, - ffi.Uint64, - ffi.Uint64, - os_workgroup_interval_data_t, - ) ->(symbol: 'os_workgroup_interval_start') -external int _os_workgroup_interval_start( - os_workgroup_interval_t wg, - int start, - int deadline, - os_workgroup_interval_data_t data, -); - -int os_workgroup_interval_start( - Dartos_workgroup_interval_t wg, - int start, - int deadline, - os_workgroup_interval_data_t data, -) { - final _$$ref = wg.ref; - return _os_workgroup_interval_start(_$$ref.pointer, start, deadline, data); -} - -@ffi.Native< - ffi.Int Function( - os_workgroup_interval_t, - ffi.Uint64, - os_workgroup_interval_data_t, - ) ->(symbol: 'os_workgroup_interval_update') -external int _os_workgroup_interval_update( - os_workgroup_interval_t wg, - int deadline, - os_workgroup_interval_data_t data, -); - -int os_workgroup_interval_update( - Dartos_workgroup_interval_t wg, - int deadline, - os_workgroup_interval_data_t data, -) { - final _$$ref = wg.ref; - return _os_workgroup_interval_update(_$$ref.pointer, deadline, data); -} - -@ffi.Native( - symbol: 'os_workgroup_join', -) -external int _os_workgroup_join( - os_workgroup_t wg, - os_workgroup_join_token_t token_out, -); - -int os_workgroup_join( - Dartos_workgroup_t wg, - os_workgroup_join_token_t token_out, -) { - final _$$ref = wg.ref; - return _os_workgroup_join(_$$ref.pointer, token_out); -} - -@ffi.Native( - symbol: 'os_workgroup_leave', -) -external void _os_workgroup_leave( - os_workgroup_t wg, - os_workgroup_join_token_t token, -); - -void os_workgroup_leave( - Dartos_workgroup_t wg, - os_workgroup_join_token_t token, -) { - final _$$ref = wg.ref; - return _os_workgroup_leave(_$$ref.pointer, token); -} - -@ffi.Native( - symbol: 'os_workgroup_max_parallel_threads', -) -external int _os_workgroup_max_parallel_threads( - os_workgroup_t wg, - os_workgroup_mpt_attr_t attr, -); - -int os_workgroup_max_parallel_threads( - Dartos_workgroup_t wg, - os_workgroup_mpt_attr_t attr, -) { - final _$$ref = wg.ref; - return _os_workgroup_max_parallel_threads(_$$ref.pointer, attr); -} - -@ffi.Native< - os_workgroup_parallel_t Function(ffi.Pointer, os_workgroup_attr_t) ->(symbol: 'os_workgroup_parallel_create') -external os_workgroup_parallel_t _os_workgroup_parallel_create( - ffi.Pointer name, - os_workgroup_attr_t attr, -); - -Dartos_workgroup_parallel_t? os_workgroup_parallel_create( - ffi.Pointer name, - os_workgroup_attr_t attr, -) { - return _os_workgroup_parallel_create(name, attr).address == 0 - ? null - : OS_os_workgroup.fromPointer( - _os_workgroup_parallel_create(name, attr), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Int Function( - os_workgroup_t, - ffi.Pointer, - ffi.Uint32, - os_workgroup_working_arena_destructor_t, - ) ->(symbol: 'os_workgroup_set_working_arena') -external int _os_workgroup_set_working_arena( - os_workgroup_t wg, - ffi.Pointer arena, - int max_workers, - os_workgroup_working_arena_destructor_t destructor, -); - -int os_workgroup_set_working_arena( - Dartos_workgroup_t wg, - ffi.Pointer arena, - int max_workers, - os_workgroup_working_arena_destructor_t destructor, -) { - final _$$ref = wg.ref; - return _os_workgroup_set_working_arena( - _$$ref.pointer, - arena, - max_workers, - destructor, - ); -} - -@ffi.Native( - symbol: 'os_workgroup_testcancel', -) -external bool _os_workgroup_testcancel(os_workgroup_t wg); - -bool os_workgroup_testcancel(Dartos_workgroup_t wg) { - final _$$ref = wg.ref; - return _os_workgroup_testcancel(_$$ref.pointer); -} - -@ffi.Native)>() -external void panic(ffi.Pointer arg0); - -@ffi.Native() -external void panic_init(int arg0); - -@ffi.Native, ffi.Int)>() -external int pathconf(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int pause(); - -@ffi.Native)>() -external int pclose(ffi.Pointer arg0); - -@ffi.Native)>() -external void perror(ffi.Pointer arg0); - -@ffi.Native)>() -external void pfctlinput(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external final double pi; - -@ffi.Native)>() -external int pid_for_task(int t, ffi.Pointer x); - -@ffi.Native)>() -external int pipe(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer popen( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int posix2time(int arg0); - -@ffi.Native, ffi.Size, ffi.Int)>() -external int posix_madvise(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native< - ffi.Int Function(ffi.Pointer>, ffi.Size, ffi.Size) ->() -external int posix_memalign( - ffi.Pointer> __memptr, - int __alignment, - int __size, -); - -@ffi.Native() -external int posix_openpt(int arg0); - -@ffi.Native() -external double pow(double arg0, double arg1); - -@ffi.Native() -external double powf(double arg0, double arg1); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native)>() -external void ppdClose(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer>>, - ) ->(symbol: 'ppdCollect') -external int _ppdCollect( - ffi.Pointer ppd, - int section, - ffi.Pointer>> choices, -); - -int ppdCollect( - ffi.Pointer ppd, - ppd_section_e section, - ffi.Pointer>> choices, -) { - return _ppdCollect(ppd, section.value, choices); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Float, - ffi.Pointer>>, - ) ->(symbol: 'ppdCollect2') -external int _ppdCollect2( - ffi.Pointer ppd, - int section, - double min_order, - ffi.Pointer>> choices, -); - -int ppdCollect2( - ffi.Pointer ppd, - ppd_section_e section, - double min_order, - ffi.Pointer>> choices, -) { - return _ppdCollect2(ppd, section.value, min_order, choices); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native)>() -external int ppdConflicts(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt) ->(symbol: 'ppdEmit') -external int _ppdEmit( - ffi.Pointer ppd, - ffi.Pointer fp, - int section, -); - -int ppdEmit( - ffi.Pointer ppd, - ffi.Pointer fp, - ppd_section_e section, -) { - return _ppdEmit(ppd, fp, section.value); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ffi.Float, - ) ->(symbol: 'ppdEmitAfterOrder') -external int _ppdEmitAfterOrder( - ffi.Pointer ppd, - ffi.Pointer fp, - int section, - int limit, - double min_order, -); - -int ppdEmitAfterOrder( - ffi.Pointer ppd, - ffi.Pointer fp, - ppd_section_e section, - int limit, - double min_order, -) { - return _ppdEmitAfterOrder(ppd, fp, section.value, limit, min_order); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.UnsignedInt) ->(symbol: 'ppdEmitFd') -external int _ppdEmitFd(ffi.Pointer ppd, int fd, int section); - -int ppdEmitFd(ffi.Pointer ppd, int fd, ppd_section_e section) { - return _ppdEmitFd(ppd, fd, section.value); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ppdEmitJCL( - ffi.Pointer ppd, - ffi.Pointer fp, - int job_id, - ffi.Pointer user, - ffi.Pointer title, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native, ffi.Pointer)>() -external int ppdEmitJCLEnd(ffi.Pointer ppd, ffi.Pointer fp); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Float, - ) ->(symbol: 'ppdEmitString') -external ffi.Pointer _ppdEmitString( - ffi.Pointer ppd, - int section, - double min_order, -); - -ffi.Pointer ppdEmitString( - ffi.Pointer ppd, - ppd_section_e section, - double min_order, -) { - return _ppdEmitString(ppd, section.value, min_order); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.UnsignedInt)>( - symbol: 'ppdErrorString', -) -external ffi.Pointer _ppdErrorString(int status); - -ffi.Pointer ppdErrorString(ppd_status_e status) { - return _ppdErrorString(status.value); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindAttr( - ffi.Pointer ppd, - ffi.Pointer name, - ffi.Pointer spec, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindChoice( - ffi.Pointer o, - ffi.Pointer option, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindCustomOption( - ffi.Pointer ppd, - ffi.Pointer keyword, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindCustomParam( - ffi.Pointer opt, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindMarkedChoice( - ffi.Pointer ppd, - ffi.Pointer keyword, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindNextAttr( - ffi.Pointer ppd, - ffi.Pointer name, - ffi.Pointer spec, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindOption( - ffi.Pointer ppd, - ffi.Pointer keyword, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdFirstCustomParam( - ffi.Pointer opt, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdFirstOption(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ppdInstallableConflict( - ffi.Pointer ppd, - ffi.Pointer option, - ffi.Pointer choice, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ppdIsMarked( - ffi.Pointer ppd, - ffi.Pointer keyword, - ffi.Pointer option, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native)>( - symbol: 'ppdLastError', -) -external int _ppdLastError(ffi.Pointer line); - -ppd_status_e ppdLastError(ffi.Pointer line) { - return ppd_status_e.fromValue(_ppdLastError(line)); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native)>() -external int ppdLocalize(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdLocalizeAttr( - ffi.Pointer ppd, - ffi.Pointer keyword, - ffi.Pointer spec, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer ppdLocalizeIPPReason( - ffi.Pointer ppd, - ffi.Pointer reason, - ffi.Pointer scheme, - ffi.Pointer buffer, - int bufsize, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer ppdLocalizeMarkerName( - ffi.Pointer ppd, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native)>() -external void ppdMarkDefaults(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ppdMarkOption( - ffi.Pointer ppd, - ffi.Pointer keyword, - ffi.Pointer option, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdNextCustomParam( - ffi.Pointer opt, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdNextOption(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdOpen(ffi.Pointer fp); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdOpen2(ffi.Pointer fp); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer ppdOpenFd(int fd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdOpenFile(ffi.Pointer filename); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Float Function(ffi.Pointer, ffi.Pointer) ->() -external double ppdPageLength( - ffi.Pointer ppd, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdPageSize( - ffi.Pointer ppd, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ppdPageSizeLimits( - ffi.Pointer ppd, - ffi.Pointer minimum, - ffi.Pointer maximum, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Float Function(ffi.Pointer, ffi.Pointer) ->() -external double ppdPageWidth( - ffi.Pointer ppd, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native(symbol: 'ppdSetConformance') -external void _ppdSetConformance(int c); - -void ppdSetConformance(ppd_conform_e c) { - return _ppdSetConformance(c.value); -} - -@ffi.Native, ffi.Size, off_t)>() -external int pread( - int __fd, - ffi.Pointer __buf, - int __nbyte, - int __offset, -); - -@ffi.Native)>() -external int printf(ffi.Pointer arg0); - -@ffi.Native() -external int processor_assign(int processor, int new_set, int wait$2); - -@ffi.Native< - kern_return_t Function(processor_t, processor_info_t, mach_msg_type_number_t) ->() -external int processor_control( - int processor, - processor_info_t processor_cmd, - int processor_cmdCnt, -); - -@ffi.Native() -external int processor_exit(int processor); - -@ffi.Native< - kern_return_t Function(processor_t, ffi.Pointer) ->() -external int processor_get_assignment( - int processor, - ffi.Pointer assigned_set, -); - -@ffi.Native< - kern_return_t Function( - processor_t, - processor_flavor_t, - ffi.Pointer, - processor_info_t, - ffi.Pointer, - ) ->() -external int processor_info( - int processor, - int flavor, - ffi.Pointer host, - processor_info_t processor_info_out, - ffi.Pointer processor_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - host_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int processor_set_create( - int host, - ffi.Pointer new_set, - ffi.Pointer new_name, -); - -@ffi.Native)>() -external int processor_set_default( - int host, - ffi.Pointer default_set, -); - -@ffi.Native() -external int processor_set_destroy(int set); - -@ffi.Native< - kern_return_t Function( - processor_set_name_t, - ffi.Int, - ffi.Pointer, - processor_set_info_t, - ffi.Pointer, - ) ->() -external int processor_set_info( - int set_name, - int flavor, - ffi.Pointer host, - processor_set_info_t info_out, - ffi.Pointer info_outCnt, -); - -@ffi.Native() -external int processor_set_max_priority( - int processor_set, - int max_priority, - int change_threads, -); - -@ffi.Native< - kern_return_t Function( - processor_set_t, - processor_set_flavor_t, - processor_set_info_t, - mach_msg_type_number_t, - boolean_t, - ) ->() -external int processor_set_policy_control( - int pset, - int flavor, - processor_set_info_t policy_info, - int policy_infoCnt, - int change, -); - -@ffi.Native() -external int processor_set_policy_disable( - int processor_set, - int policy, - int change_threads, -); - -@ffi.Native() -external int processor_set_policy_enable(int processor_set, int policy); - -@ffi.Native< - kern_return_t Function( - processor_set_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int processor_set_stack_usage( - int pset, - ffi.Pointer ltotal, - ffi.Pointer space, - ffi.Pointer resident, - ffi.Pointer maxusage, - ffi.Pointer maxstack, -); - -@ffi.Native< - kern_return_t Function( - processor_set_name_t, - processor_set_flavor_t, - processor_set_info_t, - ffi.Pointer, - ) ->() -external int processor_set_statistics( - int pset, - int flavor, - processor_set_info_t info_out, - ffi.Pointer info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - processor_set_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int processor_set_tasks( - int processor_set, - ffi.Pointer task_list, - ffi.Pointer task_listCnt, -); - -@ffi.Native< - kern_return_t Function( - processor_set_t, - mach_task_flavor_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int processor_set_tasks_with_flavor( - int processor_set, - int flavor, - ffi.Pointer task_list, - ffi.Pointer task_listCnt, -); - -@ffi.Native< - kern_return_t Function( - processor_set_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int processor_set_threads( - int processor_set, - ffi.Pointer thread_list, - ffi.Pointer thread_listCnt, -); - -@ffi.Native() -external int processor_start(int processor); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.UnsignedLong, - ffi.UnsignedInt, - ) ->() -external int profil( - ffi.Pointer arg0, - int __bufsiz, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int pselect( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native)>() -external void psignal(int arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >, - ) ->() -external void psort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - __compar, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'psort_b') -external void _psort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer __compar, -); - -void psort_b( - ffi.Pointer __base, - int __nel, - int __width, - objc.ObjCBlock, ffi.Pointer)> - __compar, -) { - final _$$ref = __compar.ref; - return _psort_b(__base, __nel, __width, _$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ) ->() -external void psort_r( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer arg3, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - __compar, -); - -@ffi.Native, ffi.Pointer)>() -external int pthread_getugid_np( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int pthread_kill(pthread_t arg0, int arg1); - -@Deprecated( - 'Use of per-thread security contexts is error-prone and discouraged.', -) -@ffi.Native() -external int pthread_setugid_np(int arg0, int arg1); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int pthread_sigmask( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer ptsname(int arg0); - -@ffi.Native, ffi.Size)>() -external int ptsname_r(int fildes, ffi.Pointer buffer, int buflen); - -@ffi.Native)>() -external int putc(int arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external int putc_unlocked(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external int putchar(int arg0); - -@ffi.Native() -external int putchar_unlocked(int arg0); - -@ffi.Native)>() -external int putenv(ffi.Pointer arg0); - -@ffi.Native)>() -external int puts(ffi.Pointer arg0); - -@ffi.Native)>() -external int putw(int arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->() -external int pwgFormatSizeName( - ffi.Pointer keyword, - int keysize, - ffi.Pointer prefix, - ffi.Pointer name, - int width, - int length, - ffi.Pointer units, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int pwgInitSize( - ffi.Pointer size, - ffi.Pointer job, - ffi.Pointer margins_set, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer pwgMediaForLegacy( - ffi.Pointer legacy, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer pwgMediaForPPD(ffi.Pointer ppd); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer pwgMediaForPWG(ffi.Pointer pwg); - -@ffi.Native Function(ffi.Int, ffi.Int)>() -external ffi.Pointer pwgMediaForSize(int width, int length); - -@ffi.Native, ffi.Size, off_t)>() -external int pwrite( - int __fd, - ffi.Pointer __buf, - int __nbyte, - int __offset, -); - -@ffi.Native(symbol: 'qos_class_main') -external int _qos_class_main(); - -qos_class_t qos_class_main() { - return qos_class_t.fromValue(_qos_class_main()); -} - -@ffi.Native(symbol: 'qos_class_self') -external int _qos_class_self(); - -qos_class_t qos_class_self() { - return qos_class_t.fromValue(_qos_class_self()); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >, - ) ->() -external void qsort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - __compar, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'qsort_b') -external void _qsort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer __compar, -); - -void qsort_b( - ffi.Pointer __base, - int __nel, - int __width, - objc.ObjCBlock, ffi.Pointer)> - __compar, -) { - final _$$ref = __compar.ref; - return _qsort_b(__base, __nel, __width, _$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ) ->() -external void qsort_r( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer arg3, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - __compar, -); - -@ffi.Native() -external void quick_exit(int arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int radixsort( - ffi.Pointer> __base, - int __nel, - ffi.Pointer __table, - int __endbyte, -); - -@ffi.Native() -external int raise(int arg0); - -@ffi.Native() -external int rand(); - -@ffi.Native)>() -external int rand_r(ffi.Pointer arg0); - -@ffi.Native() -external int random(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external double randomx(ffi.Pointer x); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int rcmd( - ffi.Pointer> arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external int rcmd_af( - ffi.Pointer> arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - int arg6, -); - -@ffi.Native, ffi.Size)>() -external int read(int arg0, ffi.Pointer arg1, int __nbyte); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int readlink( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __bufsize, -); - -@ffi.Native< - ssize_t Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external int readlinkat( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native Function(ffi.Pointer, ffi.Size)>() -external ffi.Pointer realloc(ffi.Pointer __ptr, int __size); - -@ffi.Native Function(ffi.Pointer, ffi.Size)>() -external ffi.Pointer reallocf( - ffi.Pointer __ptr, - int __size, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer realpath( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int reboot(int arg0); - -@ffi.Native< - ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size, ffi.Int) ->() -external int recv(int arg0, ffi.Pointer arg1, int arg2, int arg3); - -@ffi.Native< - ssize_t Function( - ffi.Int, - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int recvfrom( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native, ffi.Int)>() -external int recvmsg(int arg0, ffi.Pointer arg1, int arg2); - -@Deprecated('Deprecated') -@ffi.Native() -external int relation(double x, double y); - -@ffi.Native() -external double remainder(double arg0, double arg1); - -@ffi.Native() -external double remainderf(double arg0, double arg1); - -@ffi.Native)>() -external int remove(ffi.Pointer arg0); - -@ffi.Native)>() -external double remquo(double arg0, double arg1, ffi.Pointer arg2); - -@ffi.Native)>() -external double remquof(double arg0, double arg1, ffi.Pointer arg2); - -@ffi.Native, ffi.Pointer)>() -external int rename(ffi.Pointer __old, ffi.Pointer __new); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int renameat( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int renameatx_np( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - int arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int renamex_np( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native)>() -external int revoke(ffi.Pointer arg0); - -@ffi.Native)>() -external void rewind(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer rindex(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external double rint(double arg0); - -@ffi.Native() -external double rintf(double arg0); - -@ffi.Native)>() -external int rmdir(ffi.Pointer arg0); - -@ffi.Native() -external double round(double arg0); - -@ffi.Native() -external double roundf(double arg0); - -@ffi.Native)>() -external int rpmatch(ffi.Pointer arg0); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int rresvport(ffi.Pointer arg0); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Int)>() -external int rresvport_af(ffi.Pointer arg0, int arg1); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ruserok( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer sbrk(int arg0); - -@ffi.Native() -external double scalb(double arg0, double arg1); - -@ffi.Native() -external double scalbln(double arg0, int arg1); - -@ffi.Native() -external double scalblnf(double arg0, int arg1); - -@ffi.Native() -external double scalbn(double arg0, int arg1); - -@ffi.Native() -external double scalbnf(double arg0, int arg1); - -@ffi.Native)>() -external int scanf(ffi.Pointer arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external int searchfs( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ffi.Pointer arg5, -); - -@ffi.Native( - symbol: 'sec_certificate_copy_ref', -) -external SecCertificateRef _sec_certificate_copy_ref( - sec_certificate_t certificate, -); - -SecCertificateRef sec_certificate_copy_ref(Dartsec_certificate_t certificate) { - final _$$ref = certificate.ref; - return _sec_certificate_copy_ref(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'sec_certificate_create', -) -external sec_certificate_t _sec_certificate_create( - SecCertificateRef certificate, -); - -Dartsec_certificate_t? sec_certificate_create(SecCertificateRef certificate) { - return _sec_certificate_create(certificate).address == 0 - ? null - : objc.NSObject.fromPointer( - _sec_certificate_create(certificate), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'sec_identity_access_certificates', -) -external bool _sec_identity_access_certificates( - sec_identity_t identity, - ffi.Pointer handler, -); - -bool sec_identity_access_certificates( - Dartsec_identity_t identity, - objc.ObjCBlock handler, -) { - final _$$ref = identity.ref; - final _$$ref$1 = handler.ref; - return _sec_identity_access_certificates(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'sec_identity_copy_certificates_ref', -) -external CFArrayRef _sec_identity_copy_certificates_ref( - sec_identity_t identity, -); - -CFArrayRef sec_identity_copy_certificates_ref(Dartsec_identity_t identity) { - final _$$ref = identity.ref; - return _sec_identity_copy_certificates_ref(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'sec_identity_copy_ref', -) -external SecIdentityRef _sec_identity_copy_ref(sec_identity_t identity); - -SecIdentityRef sec_identity_copy_ref(Dartsec_identity_t identity) { - final _$$ref = identity.ref; - return _sec_identity_copy_ref(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'sec_identity_create', -) -external sec_identity_t _sec_identity_create(SecIdentityRef identity); - -Dartsec_identity_t? sec_identity_create(SecIdentityRef identity) { - return _sec_identity_create(identity).address == 0 - ? null - : objc.NSObject.fromPointer( - _sec_identity_create(identity), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'sec_identity_create_with_certificates', -) -external sec_identity_t _sec_identity_create_with_certificates( - SecIdentityRef identity, - CFArrayRef certificates, -); - -Dartsec_identity_t? sec_identity_create_with_certificates( - SecIdentityRef identity, - CFArrayRef certificates, -) { - return _sec_identity_create_with_certificates( - identity, - certificates, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _sec_identity_create_with_certificates(identity, certificates), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) ->(symbol: 'sec_protocol_metadata_access_distinguished_names') -external bool _sec_protocol_metadata_access_distinguished_names( - sec_protocol_metadata_t metadata, - ffi.Pointer handler, -); - -bool sec_protocol_metadata_access_distinguished_names( - Dartsec_protocol_metadata_t metadata, - objc.ObjCBlock handler, -) { - final _$$ref = metadata.ref; - final _$$ref$1 = handler.ref; - return _sec_protocol_metadata_access_distinguished_names( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) ->(symbol: 'sec_protocol_metadata_access_ocsp_response') -external bool _sec_protocol_metadata_access_ocsp_response( - sec_protocol_metadata_t metadata, - ffi.Pointer handler, -); - -bool sec_protocol_metadata_access_ocsp_response( - Dartsec_protocol_metadata_t metadata, - objc.ObjCBlock handler, -) { - final _$$ref = metadata.ref; - final _$$ref$1 = handler.ref; - return _sec_protocol_metadata_access_ocsp_response( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) ->(symbol: 'sec_protocol_metadata_access_peer_certificate_chain') -external bool _sec_protocol_metadata_access_peer_certificate_chain( - sec_protocol_metadata_t metadata, - ffi.Pointer handler, -); - -bool sec_protocol_metadata_access_peer_certificate_chain( - Dartsec_protocol_metadata_t metadata, - objc.ObjCBlock handler, -) { - final _$$ref = metadata.ref; - final _$$ref$1 = handler.ref; - return _sec_protocol_metadata_access_peer_certificate_chain( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) ->(symbol: 'sec_protocol_metadata_access_pre_shared_keys') -external bool _sec_protocol_metadata_access_pre_shared_keys( - sec_protocol_metadata_t metadata, - ffi.Pointer handler, -); - -bool sec_protocol_metadata_access_pre_shared_keys( - Dartsec_protocol_metadata_t metadata, - objc.ObjCBlock handler, -) { - final _$$ref = metadata.ref; - final _$$ref$1 = handler.ref; - return _sec_protocol_metadata_access_pre_shared_keys( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) ->(symbol: 'sec_protocol_metadata_access_supported_signature_algorithms') -external bool _sec_protocol_metadata_access_supported_signature_algorithms( - sec_protocol_metadata_t metadata, - ffi.Pointer handler, -); - -bool sec_protocol_metadata_access_supported_signature_algorithms( - Dartsec_protocol_metadata_t metadata, - objc.ObjCBlock handler, -) { - final _$$ref = metadata.ref; - final _$$ref$1 = handler.ref; - return _sec_protocol_metadata_access_supported_signature_algorithms( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) ->(symbol: 'sec_protocol_metadata_challenge_parameters_are_equal') -external bool _sec_protocol_metadata_challenge_parameters_are_equal( - sec_protocol_metadata_t metadataA, - sec_protocol_metadata_t metadataB, -); - -bool sec_protocol_metadata_challenge_parameters_are_equal( - Dartsec_protocol_metadata_t metadataA, - Dartsec_protocol_metadata_t metadataB, -) { - final _$$ref = metadataA.ref; - final _$$ref$1 = metadataB.ref; - return _sec_protocol_metadata_challenge_parameters_are_equal( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native Function(sec_protocol_metadata_t)>( - symbol: 'sec_protocol_metadata_copy_negotiated_protocol', -) -external ffi.Pointer _sec_protocol_metadata_copy_negotiated_protocol( - sec_protocol_metadata_t metadata, -); - -ffi.Pointer sec_protocol_metadata_copy_negotiated_protocol( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_copy_negotiated_protocol(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'sec_protocol_metadata_copy_peer_public_key', -) -external dispatch_data_t _sec_protocol_metadata_copy_peer_public_key( - sec_protocol_metadata_t metadata, -); - -Dartdispatch_data_t? sec_protocol_metadata_copy_peer_public_key( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_copy_peer_public_key(_$$ref.pointer).address == - 0 - ? null - : objc.NSObject.fromPointer( - _sec_protocol_metadata_copy_peer_public_key(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native Function(sec_protocol_metadata_t)>( - symbol: 'sec_protocol_metadata_copy_server_name', -) -external ffi.Pointer _sec_protocol_metadata_copy_server_name( - sec_protocol_metadata_t metadata, -); - -ffi.Pointer sec_protocol_metadata_copy_server_name( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_copy_server_name(_$$ref.pointer); -} - -@ffi.Native< - dispatch_data_t Function( - sec_protocol_metadata_t, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'sec_protocol_metadata_create_secret') -external dispatch_data_t _sec_protocol_metadata_create_secret( - sec_protocol_metadata_t metadata, - int label_len, - ffi.Pointer label, - int exporter_length, -); - -Dartdispatch_data_t? sec_protocol_metadata_create_secret( - Dartsec_protocol_metadata_t metadata, - int label_len, - ffi.Pointer label, - int exporter_length, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_create_secret( - _$$ref.pointer, - label_len, - label, - exporter_length, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _sec_protocol_metadata_create_secret( - _$$ref.pointer, - label_len, - label, - exporter_length, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_data_t Function( - sec_protocol_metadata_t, - ffi.Size, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'sec_protocol_metadata_create_secret_with_context') -external dispatch_data_t _sec_protocol_metadata_create_secret_with_context( - sec_protocol_metadata_t metadata, - int label_len, - ffi.Pointer label, - int context_len, - ffi.Pointer context, - int exporter_length, -); - -Dartdispatch_data_t? sec_protocol_metadata_create_secret_with_context( - Dartsec_protocol_metadata_t metadata, - int label_len, - ffi.Pointer label, - int context_len, - ffi.Pointer context, - int exporter_length, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_create_secret_with_context( - _$$ref.pointer, - label_len, - label, - context_len, - context, - exporter_length, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _sec_protocol_metadata_create_secret_with_context( - _$$ref.pointer, - label_len, - label, - context_len, - context, - exporter_length, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_metadata_get_early_data_accepted', -) -external bool _sec_protocol_metadata_get_early_data_accepted( - sec_protocol_metadata_t metadata, -); - -bool sec_protocol_metadata_get_early_data_accepted( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_get_early_data_accepted(_$$ref.pointer); -} - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'sec_protocol_metadata_get_negotiated_ciphersuite', -) -external int _sec_protocol_metadata_get_negotiated_ciphersuite( - sec_protocol_metadata_t metadata, -); - -DartSSLCipherSuite sec_protocol_metadata_get_negotiated_ciphersuite( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_get_negotiated_ciphersuite(_$$ref.pointer); -} - -@Deprecated('Deprecated') -@ffi.Native Function(sec_protocol_metadata_t)>( - symbol: 'sec_protocol_metadata_get_negotiated_protocol', -) -external ffi.Pointer _sec_protocol_metadata_get_negotiated_protocol( - sec_protocol_metadata_t metadata, -); - -ffi.Pointer sec_protocol_metadata_get_negotiated_protocol( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_get_negotiated_protocol(_$$ref.pointer); -} - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'sec_protocol_metadata_get_negotiated_protocol_version', -) -external int _sec_protocol_metadata_get_negotiated_protocol_version( - sec_protocol_metadata_t metadata, -); - -SSLProtocol sec_protocol_metadata_get_negotiated_protocol_version( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return SSLProtocol.fromValue( - _sec_protocol_metadata_get_negotiated_protocol_version(_$$ref.pointer), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_metadata_get_negotiated_tls_ciphersuite', -) -external int _sec_protocol_metadata_get_negotiated_tls_ciphersuite( - sec_protocol_metadata_t metadata, -); - -tls_ciphersuite_t sec_protocol_metadata_get_negotiated_tls_ciphersuite( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return tls_ciphersuite_t.fromValue( - _sec_protocol_metadata_get_negotiated_tls_ciphersuite(_$$ref.pointer), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_metadata_get_negotiated_tls_protocol_version', -) -external int _sec_protocol_metadata_get_negotiated_tls_protocol_version( - sec_protocol_metadata_t metadata, -); - -tls_protocol_version_t -sec_protocol_metadata_get_negotiated_tls_protocol_version( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return tls_protocol_version_t.fromValue( - _sec_protocol_metadata_get_negotiated_tls_protocol_version(_$$ref.pointer), - ); -} - -@Deprecated('Deprecated') -@ffi.Native Function(sec_protocol_metadata_t)>( - symbol: 'sec_protocol_metadata_get_server_name', -) -external ffi.Pointer _sec_protocol_metadata_get_server_name( - sec_protocol_metadata_t metadata, -); - -ffi.Pointer sec_protocol_metadata_get_server_name( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_get_server_name(_$$ref.pointer); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) ->(symbol: 'sec_protocol_metadata_peers_are_equal') -external bool _sec_protocol_metadata_peers_are_equal( - sec_protocol_metadata_t metadataA, - sec_protocol_metadata_t metadataB, -); - -bool sec_protocol_metadata_peers_are_equal( - Dartsec_protocol_metadata_t metadataA, - Dartsec_protocol_metadata_t metadataB, -) { - final _$$ref = metadataA.ref; - final _$$ref$1 = metadataB.ref; - return _sec_protocol_metadata_peers_are_equal( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Void Function(sec_protocol_options_t, dispatch_data_t, dispatch_data_t) ->(symbol: 'sec_protocol_options_add_pre_shared_key') -external void _sec_protocol_options_add_pre_shared_key( - sec_protocol_options_t options, - dispatch_data_t psk, - dispatch_data_t psk_identity, -); - -void sec_protocol_options_add_pre_shared_key( - Dartsec_protocol_options_t options, - Dartdispatch_data_t psk, - Dartdispatch_data_t psk_identity, -) { - final _$$ref = options.ref; - final _$$ref$1 = psk.ref; - final _$$ref$2 = psk_identity.ref; - return _sec_protocol_options_add_pre_shared_key( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native)>( - symbol: 'sec_protocol_options_add_tls_application_protocol', -) -external void _sec_protocol_options_add_tls_application_protocol( - sec_protocol_options_t options, - ffi.Pointer application_protocol, -); - -void sec_protocol_options_add_tls_application_protocol( - Dartsec_protocol_options_t options, - ffi.Pointer application_protocol, -) { - final _$$ref = options.ref; - return _sec_protocol_options_add_tls_application_protocol( - _$$ref.pointer, - application_protocol, - ); -} - -@Deprecated('Use sec_protocol_options_append_tls_ciphersuite') -@ffi.Native( - symbol: 'sec_protocol_options_add_tls_ciphersuite', -) -external void _sec_protocol_options_add_tls_ciphersuite( - sec_protocol_options_t options, - int ciphersuite, -); - -void sec_protocol_options_add_tls_ciphersuite( - Dartsec_protocol_options_t options, - DartSSLCipherSuite ciphersuite, -) { - final _$$ref = options.ref; - return _sec_protocol_options_add_tls_ciphersuite(_$$ref.pointer, ciphersuite); -} - -@Deprecated('Use sec_protocol_options_append_tls_ciphersuite_group') -@ffi.Native( - symbol: 'sec_protocol_options_add_tls_ciphersuite_group', -) -external void _sec_protocol_options_add_tls_ciphersuite_group( - sec_protocol_options_t options, - int group, -); - -void sec_protocol_options_add_tls_ciphersuite_group( - Dartsec_protocol_options_t options, - SSLCiphersuiteGroup group, -) { - final _$$ref = options.ref; - return _sec_protocol_options_add_tls_ciphersuite_group( - _$$ref.pointer, - group.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_append_tls_ciphersuite', -) -external void _sec_protocol_options_append_tls_ciphersuite( - sec_protocol_options_t options, - int ciphersuite, -); - -void sec_protocol_options_append_tls_ciphersuite( - Dartsec_protocol_options_t options, - tls_ciphersuite_t ciphersuite, -) { - final _$$ref = options.ref; - return _sec_protocol_options_append_tls_ciphersuite( - _$$ref.pointer, - ciphersuite.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_append_tls_ciphersuite_group', -) -external void _sec_protocol_options_append_tls_ciphersuite_group( - sec_protocol_options_t options, - int group, -); - -void sec_protocol_options_append_tls_ciphersuite_group( - Dartsec_protocol_options_t options, - tls_ciphersuite_group_t group, -) { - final _$$ref = options.ref; - return _sec_protocol_options_append_tls_ciphersuite_group( - _$$ref.pointer, - group.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_are_equal', -) -external bool _sec_protocol_options_are_equal( - sec_protocol_options_t optionsA, - sec_protocol_options_t optionsB, -); - -bool sec_protocol_options_are_equal( - Dartsec_protocol_options_t optionsA, - Dartsec_protocol_options_t optionsB, -) { - final _$$ref = optionsA.ref; - final _$$ref$1 = optionsB.ref; - return _sec_protocol_options_are_equal(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_default_max_dtls_protocol_version', -) -external int _sec_protocol_options_get_default_max_dtls_protocol_version(); - -tls_protocol_version_t -sec_protocol_options_get_default_max_dtls_protocol_version() { - return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_max_dtls_protocol_version(), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_default_max_tls_protocol_version', -) -external int _sec_protocol_options_get_default_max_tls_protocol_version(); - -tls_protocol_version_t -sec_protocol_options_get_default_max_tls_protocol_version() { - return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_max_tls_protocol_version(), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_default_min_dtls_protocol_version', -) -external int _sec_protocol_options_get_default_min_dtls_protocol_version(); - -tls_protocol_version_t -sec_protocol_options_get_default_min_dtls_protocol_version() { - return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_min_dtls_protocol_version(), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_default_min_tls_protocol_version', -) -external int _sec_protocol_options_get_default_min_tls_protocol_version(); - -tls_protocol_version_t -sec_protocol_options_get_default_min_tls_protocol_version() { - return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_min_tls_protocol_version(), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_enable_encrypted_client_hello', -) -external bool _sec_protocol_options_get_enable_encrypted_client_hello( - sec_protocol_options_t options, -); - -bool sec_protocol_options_get_enable_encrypted_client_hello( - Dartsec_protocol_options_t options, -) { - final _$$ref = options.ref; - return _sec_protocol_options_get_enable_encrypted_client_hello( - _$$ref.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_quic_use_legacy_codepoint', -) -external bool _sec_protocol_options_get_quic_use_legacy_codepoint( - sec_protocol_options_t options, -); - -bool sec_protocol_options_get_quic_use_legacy_codepoint( - Dartsec_protocol_options_t options, -) { - final _$$ref = options.ref; - return _sec_protocol_options_get_quic_use_legacy_codepoint(_$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function( - sec_protocol_options_t, - sec_protocol_challenge_t, - dispatch_queue_t, - ) ->(symbol: 'sec_protocol_options_set_challenge_block') -external void _sec_protocol_options_set_challenge_block( - sec_protocol_options_t options, - sec_protocol_challenge_t challenge_block, - dispatch_queue_t challenge_queue, -); - -void sec_protocol_options_set_challenge_block( - Dartsec_protocol_options_t options, - Dartsec_protocol_challenge_t challenge_block, - Dartdispatch_queue_t challenge_queue, -) { - final _$$ref = options.ref; - final _$$ref$1 = challenge_block.ref; - final _$$ref$2 = challenge_queue.ref; - return _sec_protocol_options_set_challenge_block( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_enable_encrypted_client_hello', -) -external void _sec_protocol_options_set_enable_encrypted_client_hello( - sec_protocol_options_t options, - bool enable_encrypted_client_hello, -); - -void sec_protocol_options_set_enable_encrypted_client_hello( - Dartsec_protocol_options_t options, - bool enable_encrypted_client_hello, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_enable_encrypted_client_hello( - _$$ref.pointer, - enable_encrypted_client_hello, - ); -} - -@ffi.Native< - ffi.Void Function( - sec_protocol_options_t, - sec_protocol_key_update_t, - dispatch_queue_t, - ) ->(symbol: 'sec_protocol_options_set_key_update_block') -external void _sec_protocol_options_set_key_update_block( - sec_protocol_options_t options, - sec_protocol_key_update_t key_update_block, - dispatch_queue_t key_update_queue, -); - -void sec_protocol_options_set_key_update_block( - Dartsec_protocol_options_t options, - Dartsec_protocol_key_update_t key_update_block, - Dartdispatch_queue_t key_update_queue, -) { - final _$$ref = options.ref; - final _$$ref$1 = key_update_block.ref; - final _$$ref$2 = key_update_queue.ref; - return _sec_protocol_options_set_key_update_block( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_local_identity', -) -external void _sec_protocol_options_set_local_identity( - sec_protocol_options_t options, - sec_identity_t identity, -); - -void sec_protocol_options_set_local_identity( - Dartsec_protocol_options_t options, - Dartsec_identity_t identity, -) { - final _$$ref = options.ref; - final _$$ref$1 = identity.ref; - return _sec_protocol_options_set_local_identity( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_max_tls_protocol_version', -) -external void _sec_protocol_options_set_max_tls_protocol_version( - sec_protocol_options_t options, - int version, -); - -void sec_protocol_options_set_max_tls_protocol_version( - Dartsec_protocol_options_t options, - tls_protocol_version_t version, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_max_tls_protocol_version( - _$$ref.pointer, - version.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_min_tls_protocol_version', -) -external void _sec_protocol_options_set_min_tls_protocol_version( - sec_protocol_options_t options, - int version, -); - -void sec_protocol_options_set_min_tls_protocol_version( - Dartsec_protocol_options_t options, - tls_protocol_version_t version, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_min_tls_protocol_version( - _$$ref.pointer, - version.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_peer_authentication_optional', -) -external void _sec_protocol_options_set_peer_authentication_optional( - sec_protocol_options_t options, - bool peer_authentication_optional, -); - -void sec_protocol_options_set_peer_authentication_optional( - Dartsec_protocol_options_t options, - bool peer_authentication_optional, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_peer_authentication_optional( - _$$ref.pointer, - peer_authentication_optional, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_peer_authentication_required', -) -external void _sec_protocol_options_set_peer_authentication_required( - sec_protocol_options_t options, - bool peer_authentication_required, -); - -void sec_protocol_options_set_peer_authentication_required( - Dartsec_protocol_options_t options, - bool peer_authentication_required, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_peer_authentication_required( - _$$ref.pointer, - peer_authentication_required, - ); -} - -@ffi.Native< - ffi.Void Function( - sec_protocol_options_t, - sec_protocol_pre_shared_key_selection_t, - dispatch_queue_t, - ) ->(symbol: 'sec_protocol_options_set_pre_shared_key_selection_block') -external void _sec_protocol_options_set_pre_shared_key_selection_block( - sec_protocol_options_t options, - sec_protocol_pre_shared_key_selection_t psk_selection_block, - dispatch_queue_t psk_selection_queue, -); - -void sec_protocol_options_set_pre_shared_key_selection_block( - Dartsec_protocol_options_t options, - Dartsec_protocol_pre_shared_key_selection_t psk_selection_block, - Dartdispatch_queue_t psk_selection_queue, -) { - final _$$ref = options.ref; - final _$$ref$1 = psk_selection_block.ref; - final _$$ref$2 = psk_selection_queue.ref; - return _sec_protocol_options_set_pre_shared_key_selection_block( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_quic_use_legacy_codepoint', -) -external void _sec_protocol_options_set_quic_use_legacy_codepoint( - sec_protocol_options_t options, - bool quic_use_legacy_codepoint, -); - -void sec_protocol_options_set_quic_use_legacy_codepoint( - Dartsec_protocol_options_t options, - bool quic_use_legacy_codepoint, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_quic_use_legacy_codepoint( - _$$ref.pointer, - quic_use_legacy_codepoint, - ); -} - -@Deprecated('DHE ciphersuites are no longer supported') -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_diffie_hellman_parameters', -) -external void _sec_protocol_options_set_tls_diffie_hellman_parameters( - sec_protocol_options_t options, - dispatch_data_t params, -); - -void sec_protocol_options_set_tls_diffie_hellman_parameters( - Dartsec_protocol_options_t options, - Dartdispatch_data_t params, -) { - final _$$ref = options.ref; - final _$$ref$1 = params.ref; - return _sec_protocol_options_set_tls_diffie_hellman_parameters( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_false_start_enabled', -) -external void _sec_protocol_options_set_tls_false_start_enabled( - sec_protocol_options_t options, - bool false_start_enabled, -); - -void sec_protocol_options_set_tls_false_start_enabled( - Dartsec_protocol_options_t options, - bool false_start_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_false_start_enabled( - _$$ref.pointer, - false_start_enabled, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_is_fallback_attempt', -) -external void _sec_protocol_options_set_tls_is_fallback_attempt( - sec_protocol_options_t options, - bool is_fallback_attempt, -); - -void sec_protocol_options_set_tls_is_fallback_attempt( - Dartsec_protocol_options_t options, - bool is_fallback_attempt, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_is_fallback_attempt( - _$$ref.pointer, - is_fallback_attempt, - ); -} - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_max_version', -) -external void _sec_protocol_options_set_tls_max_version( - sec_protocol_options_t options, - int version, -); - -void sec_protocol_options_set_tls_max_version( - Dartsec_protocol_options_t options, - SSLProtocol version, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_max_version( - _$$ref.pointer, - version.value, - ); -} - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_min_version', -) -external void _sec_protocol_options_set_tls_min_version( - sec_protocol_options_t options, - int version, -); - -void sec_protocol_options_set_tls_min_version( - Dartsec_protocol_options_t options, - SSLProtocol version, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_min_version( - _$$ref.pointer, - version.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_ocsp_enabled', -) -external void _sec_protocol_options_set_tls_ocsp_enabled( - sec_protocol_options_t options, - bool ocsp_enabled, -); - -void sec_protocol_options_set_tls_ocsp_enabled( - Dartsec_protocol_options_t options, - bool ocsp_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_ocsp_enabled( - _$$ref.pointer, - ocsp_enabled, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_pre_shared_key_identity_hint', -) -external void _sec_protocol_options_set_tls_pre_shared_key_identity_hint( - sec_protocol_options_t options, - dispatch_data_t psk_identity_hint, -); - -void sec_protocol_options_set_tls_pre_shared_key_identity_hint( - Dartsec_protocol_options_t options, - Dartdispatch_data_t psk_identity_hint, -) { - final _$$ref = options.ref; - final _$$ref$1 = psk_identity_hint.ref; - return _sec_protocol_options_set_tls_pre_shared_key_identity_hint( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_renegotiation_enabled', -) -external void _sec_protocol_options_set_tls_renegotiation_enabled( - sec_protocol_options_t options, - bool renegotiation_enabled, -); - -void sec_protocol_options_set_tls_renegotiation_enabled( - Dartsec_protocol_options_t options, - bool renegotiation_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_renegotiation_enabled( - _$$ref.pointer, - renegotiation_enabled, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_resumption_enabled', -) -external void _sec_protocol_options_set_tls_resumption_enabled( - sec_protocol_options_t options, - bool resumption_enabled, -); - -void sec_protocol_options_set_tls_resumption_enabled( - Dartsec_protocol_options_t options, - bool resumption_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_resumption_enabled( - _$$ref.pointer, - resumption_enabled, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_sct_enabled', -) -external void _sec_protocol_options_set_tls_sct_enabled( - sec_protocol_options_t options, - bool sct_enabled, -); - -void sec_protocol_options_set_tls_sct_enabled( - Dartsec_protocol_options_t options, - bool sct_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_sct_enabled(_$$ref.pointer, sct_enabled); -} - -@ffi.Native)>( - symbol: 'sec_protocol_options_set_tls_server_name', -) -external void _sec_protocol_options_set_tls_server_name( - sec_protocol_options_t options, - ffi.Pointer server_name, -); - -void sec_protocol_options_set_tls_server_name( - Dartsec_protocol_options_t options, - ffi.Pointer server_name, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_server_name(_$$ref.pointer, server_name); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_tickets_enabled', -) -external void _sec_protocol_options_set_tls_tickets_enabled( - sec_protocol_options_t options, - bool tickets_enabled, -); - -void sec_protocol_options_set_tls_tickets_enabled( - Dartsec_protocol_options_t options, - bool tickets_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_tickets_enabled( - _$$ref.pointer, - tickets_enabled, - ); -} - -@ffi.Native< - ffi.Void Function( - sec_protocol_options_t, - sec_protocol_verify_t, - dispatch_queue_t, - ) ->(symbol: 'sec_protocol_options_set_verify_block') -external void _sec_protocol_options_set_verify_block( - sec_protocol_options_t options, - sec_protocol_verify_t verify_block, - dispatch_queue_t verify_block_queue, -); - -void sec_protocol_options_set_verify_block( - Dartsec_protocol_options_t options, - Dartsec_protocol_verify_t verify_block, - Dartdispatch_queue_t verify_block_queue, -) { - final _$$ref = options.ref; - final _$$ref$1 = verify_block.ref; - final _$$ref$2 = verify_block_queue.ref; - return _sec_protocol_options_set_verify_block( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native)>() -external void sec_release(ffi.Pointer obj); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer sec_retain(ffi.Pointer obj); - -@ffi.Native(symbol: 'sec_trust_copy_ref') -external SecTrustRef _sec_trust_copy_ref(sec_trust_t trust); - -SecTrustRef sec_trust_copy_ref(Dartsec_trust_t trust) { - final _$$ref = trust.ref; - return _sec_trust_copy_ref(_$$ref.pointer); -} - -@ffi.Native(symbol: 'sec_trust_create') -external sec_trust_t _sec_trust_create(SecTrustRef trust); - -Dartsec_trust_t? sec_trust_create(SecTrustRef trust) { - return _sec_trust_create(trust).address == 0 - ? null - : objc.NSObject.fromPointer( - _sec_trust_create(trust), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->() -external ffi.Pointer seed48( - ffi.Pointer arg0, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer sel_getName(ffi.Pointer sel); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer sel_getUid(ffi.Pointer str); - -@ffi.Native)>() -external bool sel_isMapped(ffi.Pointer sel); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer sel_registerName( - ffi.Pointer str, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int select( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - kern_return_t Function(task_t, ffi.Pointer, ffi.Int, ffi.Int) ->() -external int semaphore_create( - int task, - ffi.Pointer semaphore, - int policy, - int value, -); - -@ffi.Native() -external int semaphore_destroy(int task, int semaphore); - -@ffi.Native() -external int semaphore_signal(int semaphore); - -@ffi.Native() -external int semaphore_signal_all(int semaphore); - -@ffi.Native() -external int semaphore_signal_thread(int semaphore, int thread); - -@ffi.Native() -external int semaphore_timedwait(int semaphore, mach_timespec_t wait_time); - -@ffi.Native() -external int semaphore_timedwait_signal( - int wait_semaphore, - int signal_semaphore, - mach_timespec_t wait_time, -); - -@ffi.Native() -external int semaphore_wait(int semaphore); - -@ffi.Native() -external int semaphore_wait_signal(int wait_semaphore, int signal_semaphore); - -@ffi.Native< - ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size, ffi.Int) ->() -external int send(int arg0, ffi.Pointer arg1, int arg2, int arg3); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Int, - off_t, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external int sendfile( - int arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - int arg5, -); - -@ffi.Native, ffi.Int)>() -external int sendmsg(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native< - ssize_t Function( - ffi.Int, - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Pointer, - socklen_t, - ) ->() -external int sendto( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ffi.Pointer arg4, - int arg5, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt, - ) ->() -external int setattrlist( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, - int arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Uint32, - ) ->() -external int setattrlistat( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - int arg4, - int arg5, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int setaudit(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int setaudit_addr(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int setauid(ffi.Pointer arg0); - -@ffi.Native, ffi.Pointer)>() -external void setbuf(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external void setbuffer( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __size, -); - -@ffi.Native, ffi.Int)>() -external int setdomainname(ffi.Pointer arg0, int __namelen); - -@ffi.Native() -external int setegid(int arg0); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int setenv( - ffi.Pointer __name, - ffi.Pointer __value, - int __overwrite, -); - -@ffi.Native() -external int seteuid(int arg0); - -@ffi.Native() -external int setgid(int arg0); - -@ffi.Native)>() -external int setgroups(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external void sethostent(int arg0); - -@ffi.Native() -external void sethostid(int arg0); - -@ffi.Native, ffi.Int)>() -external int sethostname(ffi.Pointer arg0, int __namelen); - -@ffi.Native() -external int setiopolicy_np(int arg0, int arg1, int arg2); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - in_addr, - in_addr, - ffi.Uint32, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int setipv4sourcefilter( - int arg0, - in_addr arg1, - in_addr arg2, - int arg3, - int arg4, - ffi.Pointer arg5, -); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int setitimer( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native)>() -external int setjmp(ffi.Pointer arg0); - -@ffi.Native)>() -external void setkey(ffi.Pointer arg0); - -@ffi.Native)>() -external int setlinebuf(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Int, ffi.Pointer)>() -external ffi.Pointer setlocale(int arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external int setlogin(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer setmode(ffi.Pointer arg0); - -@ffi.Native() -external void setnetent(int arg0); - -@ffi.Native)>() -external void setnetgrent(ffi.Pointer arg0); - -@ffi.Native() -external int setpgid(int arg0, int arg1); - -@ffi.Native() -external int setpgrp(); - -@ffi.Native() -external int setpriority(int arg0, int arg1, int arg2); - -@ffi.Native)>() -external void setprogname(ffi.Pointer arg0); - -@ffi.Native() -external void setprotoent(int arg0); - -@ffi.Native() -external int setregid(int arg0, int arg1); - -@ffi.Native() -external int setreuid(int arg0, int arg1); - -@ffi.Native() -external int setrgid(int arg0); - -@ffi.Native)>() -external int setrlimit(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external void setrpcent(int stayopen); - -@ffi.Native() -external int setruid(int arg0); - -@ffi.Native() -external void setservent(int arg0); - -@ffi.Native)>() -external int setsgroups_np(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external int setsid(); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer, socklen_t) ->() -external int setsockopt( - int arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - int arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Uint32, - ffi.Pointer, - socklen_t, - ffi.Uint32, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int setsourcefilter( - int arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ffi.Pointer arg6, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer setstate(ffi.Pointer arg0); - -@ffi.Native, ffi.Pointer)>() -external int settimeofday( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int setuid(int arg0); - -@ffi.Native() -external void setusershell(); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Size) ->() -external int setvbuf( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int __size, -); - -@ffi.Native)>() -external int setwgroups_np(int arg0, ffi.Pointer arg1); - -@ffi.Native, ffi.Int)>() -external int shm_open(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int shm_unlink(ffi.Pointer arg0); - -@ffi.Native() -external int shutdown(int arg0, int arg1); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int sigaction( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native, ffi.Int)>() -external int sigaddset(ffi.Pointer arg0, int arg1); - -@ffi.Native, ffi.Pointer)>() -external int sigaltstack(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external int sigblock(int arg0); - -@ffi.Native, ffi.Int)>() -external int sigdelset(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int sigemptyset(ffi.Pointer arg0); - -@ffi.Native)>() -external int sigfillset(ffi.Pointer arg0); - -@ffi.Native() -external int sighold(int arg0); - -@ffi.Native() -external int sigignore(int arg0); - -@ffi.Native() -external int siginterrupt(int arg0, int arg1); - -@ffi.Native, ffi.Int)>() -external int sigismember(ffi.Pointer arg0, int arg1); - -@ffi.Native, ffi.Int)>() -external void siglongjmp(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Pointer> Function( - ffi.Int, - ffi.Pointer>, - ) ->() -external ffi.Pointer> signal( - int arg0, - ffi.Pointer> arg1, -); - -@ffi.Native() -external int signgam; - -@ffi.Native() -external int sigpause(int arg0); - -@ffi.Native)>() -external int sigpending(ffi.Pointer arg0); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int sigprocmask( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native() -external int sigrelse(int arg0); - -@ffi.Native< - ffi.Pointer> Function( - ffi.Int, - ffi.Pointer>, - ) ->() -external ffi.Pointer> sigset( - int arg0, - ffi.Pointer> arg1, -); - -@ffi.Native, ffi.Int)>() -external int sigsetjmp(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int sigsetmask(int arg0); - -@ffi.Native)>() -external int sigsuspend(ffi.Pointer arg0); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int sigvec( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native, ffi.Pointer)>() -external int sigwait(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external double sin(double arg0); - -@ffi.Native() -external double sinf(double arg0); - -@ffi.Native() -external double sinh(double arg0); - -@ffi.Native() -external double sinhf(double arg0); - -@ffi.Native() -external int sleep(int arg0); - -@ffi.Native< - ffi.Void Function( - cpu_type_t, - cpu_subtype_t, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external void slot_name( - int arg0, - int arg1, - ffi.Pointer> arg2, - ffi.Pointer> arg3, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Pointer) ->() -external int snprintf( - ffi.Pointer __str, - int __size, - ffi.Pointer __format, -); - -@ffi.Native() -external int sockatmark(int arg0); - -@ffi.Native() -external int socket(int arg0, int arg1, int arg2); - -@ffi.Native)>() -external int socketpair( - int arg0, - int arg1, - int arg2, - ffi.Pointer arg3, -); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.', -) -@ffi.Native, ffi.Pointer)>() -external int sprintf(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external double sqrt(double arg0); - -@ffi.Native() -external double sqrtf(double arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int sradixsort( - ffi.Pointer> __base, - int __nel, - ffi.Pointer __table, - int __endbyte, -); - -@ffi.Native() -external void srand(int arg0); - -@ffi.Native() -external void srand48(int arg0); - -@ffi.Native() -external void sranddev(); - -@ffi.Native() -external void srandom(int arg0); - -@ffi.Native() -external void srandomdev(); - -@ffi.Native, ffi.Pointer)>() -external int sscanf(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer stpcpy( - ffi.Pointer __dst, - ffi.Pointer __src, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer stpncpy( - ffi.Pointer __dst, - ffi.Pointer __src, - int __n, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void str2dec( - ffi.Pointer s, - ffi.Pointer ix, - ffi.Pointer d, - ffi.Pointer vp, -); - -@ffi.Native, ffi.Pointer)>() -external int strcasecmp(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strcasestr( - ffi.Pointer __big, - ffi.Pointer __little, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strcat( - ffi.Pointer __s1, - ffi.Pointer __s2, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer strchr(ffi.Pointer __s, int __c); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer strchrnul(ffi.Pointer __s, int __c); - -@ffi.Native, ffi.Pointer)>() -external int strcmp(ffi.Pointer __s1, ffi.Pointer __s2); - -@ffi.Native, ffi.Pointer)>() -external int strcoll(ffi.Pointer __s1, ffi.Pointer __s2); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strcpy( - ffi.Pointer __dst, - ffi.Pointer __src, -); - -@ffi.Native< - ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) ->() -external int strcspn( - ffi.Pointer __s, - ffi.Pointer __charset, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer strdup(ffi.Pointer __s1); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer strerror(int __errnum); - -@ffi.Native, ffi.Size)>() -external int strerror_r( - int __errnum, - ffi.Pointer __strerrbuf, - int __buflen, -); - -@ffi.Native< - ffi.Size Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int strftime( - ffi.Pointer arg0, - int __maxsize, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external int strlcat( - ffi.Pointer __dst, - ffi.Pointer __source, - int __size, -); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external int strlcpy( - ffi.Pointer __dst, - ffi.Pointer __source, - int __size, -); - -@ffi.Native)>() -external int strlen(ffi.Pointer __s); - -@ffi.Native)>() -external void strmode(int __mode, ffi.Pointer __bp); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int strncasecmp( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer strncat( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int strncmp( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer strncpy( - ffi.Pointer __dst, - ffi.Pointer __src, - int __n, -); - -@ffi.Native Function(ffi.Pointer, ffi.Size)>() -external ffi.Pointer strndup(ffi.Pointer __s1, int __n); - -@ffi.Native, ffi.Size)>() -external int strnlen(ffi.Pointer __s1, int __n); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer strnstr( - ffi.Pointer __big, - ffi.Pointer __little, - int __len, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strpbrk( - ffi.Pointer __s, - ffi.Pointer __charset, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer strptime( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer strrchr(ffi.Pointer __s, int __c); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer>, - ffi.Pointer, - ) ->() -external ffi.Pointer strsep( - ffi.Pointer> __stringp, - ffi.Pointer __delim, -); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer strsignal(int __sig); - -@ffi.Native, ffi.Size)>() -external int strsignal_r( - int __sig, - ffi.Pointer __strsignalbuf, - int __buflen, -); - -@ffi.Native< - ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) ->() -external int strspn(ffi.Pointer __s, ffi.Pointer __charset); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strstr( - ffi.Pointer __big, - ffi.Pointer __little, -); - -@ffi.Native< - ffi.Double Function(ffi.Pointer, ffi.Pointer>) ->() -external double strtod( - ffi.Pointer arg0, - ffi.Pointer> arg1, -); - -@ffi.Native< - ffi.Float Function(ffi.Pointer, ffi.Pointer>) ->() -external double strtof( - ffi.Pointer arg0, - ffi.Pointer> arg1, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int strtofflags( - ffi.Pointer> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - intmax_t Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoimax( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strtok( - ffi.Pointer __str, - ffi.Pointer __sep, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external ffi.Pointer strtok_r( - ffi.Pointer __str, - ffi.Pointer __sep, - ffi.Pointer> __lasts, -); - -@ffi.Native< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtol( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.LongLong Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoll( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.LongLong Function( - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.Pointer>, - ) ->() -external int strtonum( - ffi.Pointer __numstr, - int __minval, - int __maxval, - ffi.Pointer> __errstrp, -); - -@ffi.Native< - ffi.LongLong Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoq( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoul( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.UnsignedLongLong Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoull( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - uintmax_t Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoumax( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.UnsignedLongLong Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtouq( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external int strxfrm( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, -); - -@ffi.Native>() -external ffi.Pointer suboptarg; - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ssize_t) ->() -external void swab( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __len, -); - -@ffi.Native)>() -external int swapon(ffi.Pointer arg0); - -@ffi.Native() -external int swtch(); - -@ffi.Native() -external int swtch_pri(int pri); - -@ffi.Native, ffi.Pointer)>() -external int symlink(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int symlinkat( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -); - -@ffi.Native() -external void sync(); - -@ffi.Native, ffi.Int)>() -external int sync_volume_np(ffi.Pointer arg0, int arg1); - -@ffi.Native>>() -external ffi.Pointer> sys_errlist; - -@ffi.Native() -external final int sys_nerr; - -@ffi.Array.multi([32]) -@ffi.Native>>() -external ffi.Array> sys_siglist; - -@ffi.Array.multi([32]) -@ffi.Native>>() -external ffi.Array> sys_signame; - -@Deprecated( - 'syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost().', -) -@ffi.Native() -external int syscall(int arg0); - -@ffi.Native() -external int sysconf(int arg0); - -@ffi.Native)>() -external int system(ffi.Pointer arg0); - -@ffi.Native() -external double tan(double arg0); - -@ffi.Native() -external double tanf(double arg0); - -@ffi.Native() -external double tanh(double arg0); - -@ffi.Native() -external double tanhf(double arg0); - -@ffi.Native() -external int task_assign(int task, int new_set, int assign_threads); - -@ffi.Native() -external int task_assign_default(int task, int assign_threads); - -@ffi.Native< - kern_return_t Function( - task_t, - ledger_array_t, - mach_msg_type_number_t, - boolean_t, - ffi.Pointer, - ) ->() -external int task_create( - int target_task, - ledger_array_t ledgers, - int ledgersCnt, - int inherit_memory, - ffi.Pointer child_task, -); - -@ffi.Native)>() -external int task_create_identity_token( - int task, - ffi.Pointer token, -); - -@ffi.Native() -external int task_dyld_process_info_notify_deregister( - int target_task, - int notify, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_array_t, ffi.Pointer) ->() -external int task_dyld_process_info_notify_get( - mach_port_name_array_t names_addr, - ffi.Pointer names_count_addr, -); - -@ffi.Native() -external int task_dyld_process_info_notify_register( - int target_task, - int notify, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Int, - ffi.Pointer, - ) ->() -external int task_for_pid( - int target_tport, - int pid, - ffi.Pointer t, -); - -@ffi.Native)>() -external int task_generate_corpse( - int task, - ffi.Pointer corpse_task_port, -); - -@ffi.Native< - kern_return_t Function(task_inspect_t, ffi.Pointer) ->() -external int task_get_assignment( - int task, - ffi.Pointer assigned_set, -); - -@ffi.Native< - kern_return_t Function( - task_read_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_get_dyld_image_infos( - int task, - ffi.Pointer dyld_images, - ffi.Pointer dyld_imagesCnt, -); - -@ffi.Native< - kern_return_t Function( - task_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_get_emulation_vector( - int task, - ffi.Pointer vector_start, - ffi.Pointer emulation_vector, - ffi.Pointer emulation_vectorCnt, -); - -@ffi.Native< - kern_return_t Function(task_inspect_t, ffi.Pointer) ->() -external int task_get_exc_guard_behavior( - int task, - ffi.Pointer behavior, -); - -@ffi.Native< - kern_return_t Function( - task_t, - exception_mask_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int task_get_exception_ports( - int task, - int exception_mask, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlers, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - exception_mask_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_info_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int task_get_exception_ports_info( - int port, - int exception_mask, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_info_array_t old_handlers_info, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - task_read_t, - mach_voucher_selector_t, - ffi.Pointer, - ) ->() -external int task_get_mach_voucher( - int task, - int which, - ffi.Pointer voucher, -); - -@ffi.Native< - kern_return_t Function(task_inspect_t, ffi.Int, ffi.Pointer) ->() -external int task_get_special_port( - int task, - int which_port, - ffi.Pointer special_port, -); - -@ffi.Native< - kern_return_t Function( - task_read_t, - thread_state_flavor_t, - thread_state_t, - ffi.Pointer, - ) ->() -external int task_get_state( - int task, - int flavor, - thread_state_t old_state, - ffi.Pointer old_stateCnt, -); - -@ffi.Native< - kern_return_t Function( - task_id_token_t, - task_flavor_t, - ffi.Pointer, - ) ->() -external int task_identity_token_get_task_port( - int token, - int flavor, - ffi.Pointer task_port, -); - -@ffi.Native< - kern_return_t Function( - task_name_t, - task_flavor_t, - task_info_t, - ffi.Pointer, - ) ->() -external int task_info( - int target_task, - int flavor, - task_info_t task_info_out, - ffi.Pointer task_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - task_inspect_t, - task_inspect_flavor_t, - task_inspect_info_t, - ffi.Pointer, - ) ->() -external int task_inspect( - int task, - int flavor, - task_inspect_info_t info_out, - ffi.Pointer info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - task_t, - task_read_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_map_corpse_info( - int task, - int corspe_task, - ffi.Pointer kcd_addr_begin, - ffi.Pointer kcd_size, -); - -@ffi.Native< - kern_return_t Function( - task_t, - task_read_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_map_corpse_info_64( - int task, - int corspe_task, - ffi.Pointer kcd_addr_begin, - ffi.Pointer kcd_size, -); - -@ffi.Native< - kern_return_t Function( - task_t, - kcdata_object_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_map_kcdata_object_64( - int task, - int kcdata_object, - ffi.Pointer kcd_addr_begin, - ffi.Pointer kcd_size, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Int, - ffi.Pointer, - ) ->() -external int task_name_for_pid( - int target_tport, - int pid, - ffi.Pointer tn, -); - -@ffi.Native< - kern_return_t Function( - task_t, - policy_t, - policy_base_t, - mach_msg_type_number_t, - boolean_t, - boolean_t, - ) ->() -external int task_policy( - int task, - int policy, - policy_base_t base, - int baseCnt, - int set_limit, - int change, -); - -@ffi.Native< - kern_return_t Function( - task_policy_get_t, - task_policy_flavor_t, - task_policy_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_policy_get( - int task, - int flavor, - task_policy_t policy_info, - ffi.Pointer policy_infoCnt, - ffi.Pointer get_default, -); - -@ffi.Native< - kern_return_t Function( - task_policy_set_t, - task_policy_flavor_t, - task_policy_t, - mach_msg_type_number_t, - ) ->() -external int task_policy_set( - int task, - int flavor, - task_policy_t policy_info, - int policy_infoCnt, -); - -@ffi.Native< - kern_return_t Function(task_inspect_t, ffi.Pointer) ->() -external int task_purgable_info( - int task, - ffi.Pointer stats, -); - -@ffi.Native< - kern_return_t Function(task_t, ffi.Pointer) ->() -external int task_register_dyld_get_process_state( - int task, - ffi.Pointer dyld_process_state, -); - -@ffi.Native< - kern_return_t Function( - task_t, - dyld_kernel_image_info_array_t, - mach_msg_type_number_t, - ) ->() -external int task_register_dyld_image_infos( - int task, - dyld_kernel_image_info_array_t dyld_images, - int dyld_imagesCnt, -); - -@ffi.Native() -external int task_register_dyld_set_dyld_state(int task, int dyld_state); - -@ffi.Native< - kern_return_t Function(task_t, dyld_kernel_image_info_t, boolean_t, boolean_t) ->() -external int task_register_dyld_shared_cache_image_info( - int task, - dyld_kernel_image_info_t dyld_cache_image, - int no_cache, - int private_cache, -); - -@ffi.Native< - kern_return_t Function( - task_t, - ffi.Uint32, - exception_mask_t, - exception_behavior_t, - thread_state_flavor_t, - mach_port_t, - ) ->() -external int task_register_hardened_exception_handler( - int task, - int signed_pc_key, - int exceptions_allowed, - int behaviors_allowed, - int flavors_allowed, - int new_exception_port, -); - -@ffi.Native() -external int task_resume(int target_task); - -@ffi.Native() -external int task_resume2(int suspend_token); - -@ffi.Native() -external int task_sample(int task, int reply); - -@ffi.Native() -external int task_self_trap(); - -@ffi.Native() -external int task_set_corpse_forking_behavior(int task, int behavior); - -@ffi.Native() -external int task_set_emulation( - int target_port, - int routine_entry_pt, - int routine_number, -); - -@ffi.Native< - kern_return_t Function( - task_t, - ffi.Int, - emulation_vector_t, - mach_msg_type_number_t, - ) ->() -external int task_set_emulation_vector( - int task, - int vector_start, - emulation_vector_t emulation_vector, - int emulation_vectorCnt, -); - -@ffi.Native() -external int task_set_exc_guard_behavior(int task, int behavior); - -@ffi.Native< - kern_return_t Function( - task_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - ) ->() -external int task_set_exception_ports( - int task, - int exception_mask, - int new_port, - int behavior, - int new_flavor, -); - -@ffi.Native< - kern_return_t Function( - task_t, - task_flavor_t, - task_info_t, - mach_msg_type_number_t, - ) ->() -external int task_set_info( - int target_task, - int flavor, - task_info_t task_info_in, - int task_info_inCnt, -); - -@ffi.Native() -external int task_set_mach_voucher(int task, int voucher); - -@ffi.Native)>() -external int task_set_phys_footprint_limit( - int task, - int new_limit, - ffi.Pointer old_limit, -); - -@ffi.Native< - kern_return_t Function( - task_t, - processor_set_t, - policy_t, - policy_base_t, - mach_msg_type_number_t, - policy_limit_t, - mach_msg_type_number_t, - boolean_t, - ) ->() -external int task_set_policy( - int task, - int pset, - int policy, - policy_base_t base, - int baseCnt, - policy_limit_t limit, - int limitCnt, - int change, -); - -@ffi.Native() -external int task_set_port_space(int task, int table_entries); - -@ffi.Native() -external int task_set_ras_pc(int target_task, int basepc, int boundspc); - -@ffi.Native() -external int task_set_special_port(int task, int which_port, int special_port); - -@ffi.Native< - kern_return_t Function( - task_t, - thread_state_flavor_t, - thread_state_t, - mach_msg_type_number_t, - ) ->() -external int task_set_state( - int task, - int flavor, - thread_state_t new_state, - int new_stateCnt, -); - -@ffi.Native() -external int task_suspend(int target_task); - -@ffi.Native< - kern_return_t Function(task_read_t, ffi.Pointer) ->() -external int task_suspend2( - int target_task, - ffi.Pointer suspend_token, -); - -@ffi.Native< - kern_return_t Function( - task_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int task_swap_exception_ports( - int task, - int exception_mask, - int new_port, - int behavior, - int new_flavor, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlers, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function(task_t, ipc_voucher_t, ffi.Pointer) ->() -external int task_swap_mach_voucher( - int task, - int new_voucher, - ffi.Pointer old_voucher, -); - -@ffi.Native() -external int task_terminate(int target_task); - -@ffi.Native() -external int task_test_async_upcall_propagation( - int task, - int port, - int qos, - int iotier, -); - -@ffi.Native() -external int task_test_sync_upcall(int task, int port); - -@ffi.Native< - kern_return_t Function( - task_inspect_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_threads( - int target_task, - ffi.Pointer act_list, - ffi.Pointer act_listCnt, -); - -@ffi.Native< - kern_return_t Function( - task_t, - dyld_kernel_image_info_array_t, - mach_msg_type_number_t, - ) ->() -external int task_unregister_dyld_image_infos( - int task, - dyld_kernel_image_info_array_t dyld_images, - int dyld_imagesCnt, -); - -@ffi.Native() -external int task_wire(int target_task, int must_wire); - -@ffi.Native< - kern_return_t Function( - task_inspect_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_zone_info( - int target_task, - ffi.Pointer names, - ffi.Pointer namesCnt, - ffi.Pointer info, - ffi.Pointer infoCnt, -); - -@ffi.Native() -external int tcgetpgrp(int arg0); - -@ffi.Native() -external int tcsetpgrp(int arg0, int arg1); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead.', -) -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer tempnam( - ffi.Pointer __dir, - ffi.Pointer __prefix, -); - -@ffi.Native() -external double tgamma(double arg0); - -@ffi.Native() -external double tgammaf(double arg0); - -@ffi.Native() -external int thread_abort(int target_act); - -@ffi.Native() -external int thread_abort_safely(int target_act); - -@ffi.Native< - kern_return_t Function( - thread_t, - mach_port_t, - exception_mask_t, - exception_behavior_t, - thread_state_flavor_t, - ) ->() -external int thread_adopt_exception_handler( - int thread, - int exc_port, - int exc_mask, - int behavior_mask, - int flavor_mask, -); - -@ffi.Native() -external int thread_assign(int thread, int new_set); - -@ffi.Native() -external int thread_assign_default(int thread); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - ffi.Int, - thread_state_flavor_t, - thread_state_t, - mach_msg_type_number_t, - thread_state_t, - ffi.Pointer, - ) ->() -external int thread_convert_thread_state( - int thread, - int direction, - int flavor, - thread_state_t in_state, - int in_stateCnt, - thread_state_t out_state, - ffi.Pointer out_stateCnt, -); - -@ffi.Native)>() -external int thread_create( - int parent_task, - ffi.Pointer child_act, -); - -@ffi.Native< - kern_return_t Function( - task_t, - thread_state_flavor_t, - thread_state_t, - mach_msg_type_number_t, - ffi.Pointer, - ) ->() -external int thread_create_running( - int parent_task, - int flavor, - thread_state_t new_state, - int new_stateCnt, - ffi.Pointer child_act, -); - -@ffi.Native() -external int thread_depress_abort(int thread); - -@ffi.Native< - kern_return_t Function(thread_inspect_t, ffi.Pointer) ->() -external int thread_get_assignment( - int thread, - ffi.Pointer assigned_set, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - exception_mask_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int thread_get_exception_ports( - int thread, - int exception_mask, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlers, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - exception_mask_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_info_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int thread_get_exception_ports_info( - int port, - int exception_mask, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_info_array_t old_handlers_info, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - thread_read_t, - mach_voucher_selector_t, - ffi.Pointer, - ) ->() -external int thread_get_mach_voucher( - int thr_act, - int which, - ffi.Pointer voucher, -); - -@ffi.Native< - kern_return_t Function(thread_inspect_t, ffi.Int, ffi.Pointer) ->() -external int thread_get_special_port( - int thr_act, - int which_port, - ffi.Pointer special_port, -); - -@ffi.Native< - kern_return_t Function( - thread_read_t, - thread_state_flavor_t, - thread_state_t, - ffi.Pointer, - ) ->() -external int thread_get_state( - int target_act, - int flavor, - thread_state_t old_state, - ffi.Pointer old_stateCnt, -); - -@ffi.Native< - kern_return_t Function( - thread_inspect_t, - thread_flavor_t, - thread_info_t, - ffi.Pointer, - ) ->() -external int thread_info( - int target_act, - int flavor, - thread_info_t thread_info_out, - ffi.Pointer thread_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - policy_t, - policy_base_t, - mach_msg_type_number_t, - boolean_t, - ) ->() -external int thread_policy( - int thr_act, - int policy, - policy_base_t base, - int baseCnt, - int set_limit, -); - -@ffi.Native< - kern_return_t Function( - thread_inspect_t, - thread_policy_flavor_t, - thread_policy_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int thread_policy_get( - int thread, - int flavor, - thread_policy_t policy_info, - ffi.Pointer policy_infoCnt, - ffi.Pointer get_default, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - thread_policy_flavor_t, - thread_policy_t, - mach_msg_type_number_t, - ) ->() -external int thread_policy_set( - int thread, - int flavor, - thread_policy_t policy_info, - int policy_infoCnt, -); - -@ffi.Native() -external int thread_resume(int target_act); - -@ffi.Native() -external int thread_sample(int thread, int reply); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - ) ->() -external int thread_set_exception_ports( - int thread, - int exception_mask, - int new_port, - int behavior, - int new_flavor, -); - -@ffi.Native() -external int thread_set_mach_voucher(int thr_act, int voucher); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - processor_set_t, - policy_t, - policy_base_t, - mach_msg_type_number_t, - policy_limit_t, - mach_msg_type_number_t, - ) ->() -external int thread_set_policy( - int thr_act, - int pset, - int policy, - policy_base_t base, - int baseCnt, - policy_limit_t limit, - int limitCnt, -); - -@ffi.Native() -external int thread_set_special_port( - int thr_act, - int which_port, - int special_port, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - thread_state_flavor_t, - thread_state_t, - mach_msg_type_number_t, - ) ->() -external int thread_set_state( - int target_act, - int flavor, - thread_state_t new_state, - int new_stateCnt, -); - -@ffi.Native() -external int thread_suspend(int target_act); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int thread_swap_exception_ports( - int thread, - int exception_mask, - int new_port, - int behavior, - int new_flavor, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlers, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - ipc_voucher_t, - ffi.Pointer, - ) ->() -external int thread_swap_mach_voucher( - int thr_act, - int new_voucher, - ffi.Pointer old_voucher, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, ffi.Int, mach_msg_timeout_t) ->() -external int thread_switch(int thread_name, int option, int option_time); - -@ffi.Native() -external int thread_terminate(int target_act); - -@ffi.Native() -external int thread_wire(int host_priv, int thread, int wired); - -@ffi.Native)>() -external int time(ffi.Pointer arg0); - -@ffi.Native() -external int time2posix(int arg0); - -@ffi.Native)>() -external int timegm(ffi.Pointer arg0); - -@ffi.Native)>() -external int timelocal(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int timespec_get(ffi.Pointer ts, int base); - -@ffi.Native(symbol: 'timezone') -external int timezone$1; - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int timingsafe_bcmp( - ffi.Pointer __b1, - ffi.Pointer __b2, - int __len, -); - -@ffi.Native Function()>() -external ffi.Pointer tmpfile(); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.', -) -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer tmpnam(ffi.Pointer arg0); - -@ffi.Native() -external double trunc(double arg0); - -@ffi.Native, off_t)>() -external int truncate(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external double truncf(double arg0); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer ttyname(int arg0); - -@ffi.Native, ffi.Size)>() -external int ttyname_r(int arg0, ffi.Pointer arg1, int __len); - -@ffi.Native() -external int ttyslot(); - -@ffi.Native>>() -external ffi.Pointer> tzname; - -@ffi.Native() -external void tzset(); - -@ffi.Native() -external void tzsetwall(); - -@ffi.Native() -external int ualarm(int arg0, int arg1); - -@ffi.Native)>() -external int undelete(ffi.Pointer arg0); - -@ffi.Native)>() -external int ungetc(int arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external int unlink(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int unlinkat(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native() -external int unlockpt(int arg0); - -@ffi.Native)>() -external int unsetenv(ffi.Pointer arg0); - -@ffi.Native)>() -external int unwhiteout(ffi.Pointer arg0); - -@ffi.Native() -external locale_t uselocale(locale_t arg0); - -@ffi.Native() -external int usleep(int arg0); - -@ffi.Native, ffi.Pointer)>() -external int utimes(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external void uuid_clear(ffi.Pointer uu); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int uuid_compare( - ffi.Pointer uu1, - ffi.Pointer uu2, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external void uuid_copy( - ffi.Pointer dst, - ffi.Pointer src, -); - -@ffi.Native)>() -external void uuid_generate(ffi.Pointer out); - -@ffi.Native)>() -external void uuid_generate_random(ffi.Pointer out); - -@ffi.Native)>() -external void uuid_generate_time(ffi.Pointer out); - -@ffi.Native)>() -external int uuid_is_null(ffi.Pointer uu); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int uuid_parse( - ffi.Pointer in$, - ffi.Pointer uu, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void uuid_unparse( - ffi.Pointer uu, - ffi.Pointer out, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void uuid_unparse_lower( - ffi.Pointer uu, - ffi.Pointer out, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void uuid_unparse_upper( - ffi.Pointer uu, - ffi.Pointer out, -); - -@ffi.Native< - OSStatus Function( - AEEventClass, - AEEventID, - DescType, - ffi.Pointer, - Size, - SInt16, - SInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - va_list, - ) ->() -external int vAEBuildAppleEvent( - int theClass, - int theID, - int addressType, - ffi.Pointer addressData, - int addressLength, - int returnID, - int transactionID, - ffi.Pointer resultEvt, - ffi.Pointer error, - ffi.Pointer paramsFmt, - va_list args, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - va_list, - ) ->() -external int vAEBuildDesc( - ffi.Pointer dst, - ffi.Pointer error, - ffi.Pointer src, - va_list args, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - va_list, - ) ->() -external int vAEBuildParameters( - ffi.Pointer event, - ffi.Pointer error, - ffi.Pointer format, - va_list args, -); - -@ffi.Native Function(ffi.Size)>() -external ffi.Pointer valloc(int __size); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer, - va_list, - ) ->() -external int vasprintf( - ffi.Pointer> arg0, - ffi.Pointer arg1, - va_list arg2, -); - -@ffi.Native, va_list)>() -external int vdprintf(int arg0, ffi.Pointer arg1, va_list arg2); - -@Deprecated('Use posix_spawn or fork') -@ffi.Native() -external int vfork(); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) ->() -external int vfprintf( - ffi.Pointer arg0, - ffi.Pointer arg1, - va_list arg2, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) ->() -external int vfscanf( - ffi.Pointer __stream, - ffi.Pointer __format, - va_list arg2, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_size_t, - ffi.Int, - ) ->() -external int vm_allocate( - int target_task, - ffi.Pointer address, - int size, - int flags, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - vm_map_t, - ffi.Pointer, - vm_size_t, - ffi.Int, - ) ->() -external int vm_allocate_cpm( - int host_priv, - int task, - ffi.Pointer address, - int size, - int flags, -); - -@ffi.Native< - kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_behavior_t) ->() -external int vm_behavior_set( - int target_task, - int address, - int size, - int new_behavior, -); - -@ffi.Native< - kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_address_t) ->() -external int vm_copy( - int target_task, - int source_address, - int size, - int dest_address, -); - -@ffi.Native() -external int vm_deallocate(int target_task, int address, int size); - -@ffi.Native< - kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_inherit_t) ->() -external int vm_inherit( - int target_task, - int address, - int size, - int new_inheritance, -); - -@ffi.Native() -external int vm_kernel_page_mask; - -@ffi.Native() -external int vm_kernel_page_shift; - -@ffi.Native() -external int vm_kernel_page_size; - -@ffi.Native< - kern_return_t Function( - vm_map_t, - vm_address_t, - vm_size_t, - vm_machine_attribute_t, - ffi.Pointer, - ) ->() -external int vm_machine_attribute( - int target_task, - int address, - int size, - int attribute, - ffi.Pointer value, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_size_t, - vm_address_t, - ffi.Int, - mem_entry_name_port_t, - vm_offset_t, - boolean_t, - vm_prot_t, - vm_prot_t, - vm_inherit_t, - ) ->() -external int vm_map( - int target_task, - ffi.Pointer address, - int size, - int mask, - int flags, - int object, - int offset, - int copy, - int cur_protection, - int max_protection, - int inheritance, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_size_t, - vm_address_t, - ffi.Int, - mem_entry_name_port_t, - memory_object_offset_t, - boolean_t, - vm_prot_t, - vm_prot_t, - vm_inherit_t, - ) ->() -external int vm_map_64( - int target_task, - ffi.Pointer address, - int size, - int mask, - int flags, - int object, - int offset, - int copy, - int cur_protection, - int max_protection, - int inheritance, -); - -@ffi.Native() -external int vm_map_exec_lockdown(int target_task); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - vm_offset_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int vm_map_page_query( - int target_map, - int offset, - ffi.Pointer disposition, - ffi.Pointer ref_count, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int vm_mapped_pages_info( - int task, - ffi.Pointer pages, - ffi.Pointer pagesCnt, -); - -@ffi.Native< - kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_sync_t) ->() -external int vm_msync(int target_task, int address, int size, int sync_flags); - -@ffi.Native() -external int vm_page_mask; - -@ffi.Native() -external int vm_page_shift; - -@ffi.Native() -external int vm_page_size; - -@ffi.Native< - kern_return_t Function( - vm_map_t, - vm_address_t, - vm_size_t, - boolean_t, - vm_prot_t, - ) ->() -external int vm_protect( - int target_task, - int address, - int size, - int set_maximum, - int new_protection, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - vm_address_t, - vm_purgable_t, - ffi.Pointer, - ) ->() -external int vm_purgable_control( - int target_task, - int address, - int control, - ffi.Pointer state, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - vm_address_t, - vm_size_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int vm_read( - int target_task, - int address, - int size, - ffi.Pointer data, - ffi.Pointer dataCnt, -); - -@ffi.Native< - kern_return_t Function(vm_map_read_t, ffi.Pointer, natural_t) ->() -external int vm_read_list( - int target_task, - ffi.Pointer data_list, - int count, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - vm_address_t, - vm_size_t, - vm_address_t, - ffi.Pointer, - ) ->() -external int vm_read_overwrite( - int target_task, - int address, - int size, - int data, - ffi.Pointer outsize, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - ffi.Pointer, - ffi.Pointer, - vm_region_flavor_t, - vm_region_info_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int vm_region( - int target_task, - ffi.Pointer address, - ffi.Pointer size, - int flavor, - vm_region_info_t info, - ffi.Pointer infoCnt, - ffi.Pointer object_name, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - ffi.Pointer, - ffi.Pointer, - vm_region_flavor_t, - vm_region_info_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int vm_region_64( - int target_task, - ffi.Pointer address, - ffi.Pointer size, - int flavor, - vm_region_info_t info, - ffi.Pointer infoCnt, - ffi.Pointer object_name, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - vm_region_recurse_info_t, - ffi.Pointer, - ) ->() -external int vm_region_recurse( - int target_task, - ffi.Pointer address, - ffi.Pointer size, - ffi.Pointer nesting_depth, - vm_region_recurse_info_t info, - ffi.Pointer infoCnt, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - vm_region_recurse_info_t, - ffi.Pointer, - ) ->() -external int vm_region_recurse_64( - int target_task, - ffi.Pointer address, - ffi.Pointer size, - ffi.Pointer nesting_depth, - vm_region_recurse_info_t info, - ffi.Pointer infoCnt, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_size_t, - vm_address_t, - ffi.Int, - vm_map_t, - vm_address_t, - boolean_t, - ffi.Pointer, - ffi.Pointer, - vm_inherit_t, - ) ->() -external int vm_remap( - int target_task, - ffi.Pointer target_address, - int size, - int mask, - int flags, - int src_task, - int src_address, - int copy, - ffi.Pointer cur_protection, - ffi.Pointer max_protection, - int inheritance, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_size_t, - vm_address_t, - ffi.Int, - vm_map_read_t, - vm_address_t, - boolean_t, - ffi.Pointer, - ffi.Pointer, - vm_inherit_t, - ) ->() -external int vm_remap_new( - int target_task, - ffi.Pointer target_address, - int size, - int mask, - int flags, - int src_task, - int src_address, - int copy, - ffi.Pointer cur_protection, - ffi.Pointer max_protection, - int inheritance, -); - -@ffi.Native< - kern_return_t Function(ffi.Pointer, ffi.Pointer) ->() -external int vm_stats( - ffi.Pointer info, - ffi.Pointer count, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - vm_map_t, - vm_address_t, - vm_size_t, - vm_prot_t, - ) ->() -external int vm_wire( - int host_priv, - int task, - int address, - int size, - int desired_access, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - vm_address_t, - vm_offset_t, - mach_msg_type_number_t, - ) ->() -external int vm_write(int target_task, int address, int data, int dataCnt); - -@ffi.Native)>() -external voucher_mach_msg_state_t voucher_mach_msg_adopt( - ffi.Pointer msg, -); - -@ffi.Native)>() -external void voucher_mach_msg_clear(ffi.Pointer msg); - -@ffi.Native() -external void voucher_mach_msg_revert(voucher_mach_msg_state_t state); - -@ffi.Native)>() -external int voucher_mach_msg_set(ffi.Pointer msg); - -@ffi.Native, va_list)>() -external int vprintf(ffi.Pointer arg0, va_list arg1); - -@ffi.Native< - ffi.Pointer< - ffi.NativeFunction, va_list)> - > ->() -external ffi.Pointer< - ffi.NativeFunction, va_list)> -> -vprintf_stderr_func; - -@ffi.Native, va_list)>() -external int vscanf(ffi.Pointer __format, va_list arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - va_list, - ) ->() -external int vsnprintf( - ffi.Pointer __str, - int __size, - ffi.Pointer __format, - va_list arg3, -); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead.', -) -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) ->() -external int vsprintf( - ffi.Pointer arg0, - ffi.Pointer arg1, - va_list arg2, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) ->() -external int vsscanf( - ffi.Pointer __str, - ffi.Pointer __format, - va_list arg2, -); - -@ffi.Native)>() -external int wait(ffi.Pointer arg0); - -@ffi.Native< - pid_t Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int wait3( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - pid_t Function(pid_t, ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int wait4( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Int Function(ffi.UnsignedInt, id_t, ffi.Pointer, ffi.Int) ->(symbol: 'waitid') -external int _waitid(int arg0, int arg1, ffi.Pointer arg2, int arg3); - -int waitid( - idtype_t arg0, - Dart__uint32_t arg1, - ffi.Pointer arg2, - int arg3, -) { - return _waitid(arg0.value, arg1, arg2, arg3); -} - -@ffi.Native, ffi.Int)>() -external int waitpid(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native< - intmax_t Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int wcstoimax( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int wcstombs( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, -); - -@ffi.Native< - uintmax_t Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int wcstoumax( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native, ffi.WChar)>() -external int wctomb(ffi.Pointer arg0, int arg1); - -@ffi.Native, ffi.Size)>() -external int write(int __fd, ffi.Pointer __buf, int __nbyte); - -@Deprecated('Deprecated') -@ffi.Native)>() -external double x80tod(ffi.Pointer x80); - -@ffi.Native( - symbol: 'xpc_activity_copy_criteria', -) -external xpc_object_t _xpc_activity_copy_criteria(xpc_activity_t activity); - -Dartxpc_object_t? xpc_activity_copy_criteria(Dartxpc_object_t activity) { - final _$$ref = activity.ref; - return _xpc_activity_copy_criteria(_$$ref.pointer).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_activity_copy_criteria(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_activity_get_state', -) -external int _xpc_activity_get_state(xpc_activity_t activity); - -Dartxpc_activity_state_t xpc_activity_get_state(Dartxpc_object_t activity) { - final _$$ref = activity.ref; - return _xpc_activity_get_state(_$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, xpc_object_t, xpc_activity_handler_t) ->(symbol: 'xpc_activity_register') -external void _xpc_activity_register( - ffi.Pointer identifier, - xpc_object_t criteria, - xpc_activity_handler_t handler, -); - -void xpc_activity_register( - ffi.Pointer identifier, - Dartxpc_object_t criteria, - Dartxpc_activity_handler_t handler, -) { - final _$$ref = criteria.ref; - final _$$ref$1 = handler.ref; - return _xpc_activity_register(identifier, _$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_activity_set_criteria', -) -external void _xpc_activity_set_criteria( - xpc_activity_t activity, - xpc_object_t criteria, -); - -void xpc_activity_set_criteria( - Dartxpc_object_t activity, - Dartxpc_object_t criteria, -) { - final _$$ref = activity.ref; - final _$$ref$1 = criteria.ref; - return _xpc_activity_set_criteria(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_activity_set_state', -) -external bool _xpc_activity_set_state(xpc_activity_t activity, int state); - -bool xpc_activity_set_state( - Dartxpc_object_t activity, - Dartxpc_activity_state_t state, -) { - final _$$ref = activity.ref; - return _xpc_activity_set_state(_$$ref.pointer, state); -} - -@ffi.Native( - symbol: 'xpc_activity_should_defer', -) -external bool _xpc_activity_should_defer(xpc_activity_t activity); - -bool xpc_activity_should_defer(Dartxpc_object_t activity) { - final _$$ref = activity.ref; - return _xpc_activity_should_defer(_$$ref.pointer); -} - -@ffi.Native)>() -external void xpc_activity_unregister(ffi.Pointer identifier); - -@ffi.Native( - symbol: 'xpc_array_append_value', -) -external void _xpc_array_append_value(xpc_object_t xarray, xpc_object_t value); - -void xpc_array_append_value(Dartxpc_object_t xarray, Dartxpc_object_t value) { - final _$$ref = xarray.ref; - final _$$ref$1 = value.ref; - return _xpc_array_append_value(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_array_apply', -) -external bool _xpc_array_apply( - xpc_object_t xarray, - xpc_array_applier_t applier, -); - -bool xpc_array_apply(Dartxpc_object_t xarray, Dartxpc_array_applier_t applier) { - final _$$ref = xarray.ref; - final _$$ref$1 = applier.ref; - return _xpc_array_apply(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native, ffi.Size)>( - symbol: 'xpc_array_create', -) -external xpc_object_t _xpc_array_create( - ffi.Pointer objects, - int count, -); - -Dartxpc_object_t xpc_array_create( - ffi.Pointer objects, - int count, -) { - return objc.NSObject.fromPointer( - _xpc_array_create(objects, count), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_array_create_connection', -) -external xpc_connection_t _xpc_array_create_connection( - xpc_object_t xarray, - int index$1, -); - -Dartxpc_object_t? xpc_array_create_connection( - Dartxpc_object_t xarray, - int index$1, -) { - final _$$ref = xarray.ref; - return _xpc_array_create_connection(_$$ref.pointer, index$1).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_array_create_connection(_$$ref.pointer, index$1), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_array_create_empty') -external xpc_object_t _xpc_array_create_empty(); - -Dartxpc_object_t xpc_array_create_empty() { - return objc.NSObject.fromPointer( - _xpc_array_create_empty(), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_array_dup_fd', -) -external int _xpc_array_dup_fd(xpc_object_t xarray, int index$1); - -int xpc_array_dup_fd(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_dup_fd(_$$ref.pointer, index$1); -} - -@ffi.Native( - symbol: 'xpc_array_get_array', -) -external xpc_object_t _xpc_array_get_array(xpc_object_t xarray, int index$1); - -Dartxpc_object_t? xpc_array_get_array(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_array(_$$ref.pointer, index$1).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_array_get_array(_$$ref.pointer, index$1), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_array_get_bool', -) -external bool _xpc_array_get_bool(xpc_object_t xarray, int index$1); - -bool xpc_array_get_bool(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_bool(_$$ref.pointer, index$1); -} - -@ffi.Native(symbol: 'xpc_array_get_count') -external int _xpc_array_get_count(xpc_object_t xarray); - -int xpc_array_get_count(Dartxpc_object_t xarray) { - final _$$ref = xarray.ref; - return _xpc_array_get_count(_$$ref.pointer); -} - -@ffi.Native< - ffi.Pointer Function(xpc_object_t, ffi.Size, ffi.Pointer) ->(symbol: 'xpc_array_get_data') -external ffi.Pointer _xpc_array_get_data( - xpc_object_t xarray, - int index$1, - ffi.Pointer length, -); - -ffi.Pointer xpc_array_get_data( - Dartxpc_object_t xarray, - int index$1, - ffi.Pointer length, -) { - final _$$ref = xarray.ref; - return _xpc_array_get_data(_$$ref.pointer, index$1, length); -} - -@ffi.Native( - symbol: 'xpc_array_get_date', -) -external int _xpc_array_get_date(xpc_object_t xarray, int index$1); - -int xpc_array_get_date(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_date(_$$ref.pointer, index$1); -} - -@ffi.Native( - symbol: 'xpc_array_get_dictionary', -) -external xpc_object_t _xpc_array_get_dictionary( - xpc_object_t xarray, - int index$1, -); - -Dartxpc_object_t? xpc_array_get_dictionary( - Dartxpc_object_t xarray, - int index$1, -) { - final _$$ref = xarray.ref; - return _xpc_array_get_dictionary(_$$ref.pointer, index$1).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_array_get_dictionary(_$$ref.pointer, index$1), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_array_get_double', -) -external double _xpc_array_get_double(xpc_object_t xarray, int index$1); - -double xpc_array_get_double(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_double(_$$ref.pointer, index$1); -} - -@ffi.Native( - symbol: 'xpc_array_get_int64', -) -external int _xpc_array_get_int64(xpc_object_t xarray, int index$1); - -int xpc_array_get_int64(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_int64(_$$ref.pointer, index$1); -} - -@ffi.Native Function(xpc_object_t, ffi.Size)>( - symbol: 'xpc_array_get_string', -) -external ffi.Pointer _xpc_array_get_string( - xpc_object_t xarray, - int index$1, -); - -ffi.Pointer xpc_array_get_string( - Dartxpc_object_t xarray, - int index$1, -) { - final _$$ref = xarray.ref; - return _xpc_array_get_string(_$$ref.pointer, index$1); -} - -@ffi.Native( - symbol: 'xpc_array_get_uint64', -) -external int _xpc_array_get_uint64(xpc_object_t xarray, int index$1); - -int xpc_array_get_uint64(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_uint64(_$$ref.pointer, index$1); -} - -@ffi.Native Function(xpc_object_t, ffi.Size)>( - symbol: 'xpc_array_get_uuid', -) -external ffi.Pointer _xpc_array_get_uuid( - xpc_object_t xarray, - int index$1, -); - -ffi.Pointer xpc_array_get_uuid( - Dartxpc_object_t xarray, - int index$1, -) { - final _$$ref = xarray.ref; - return _xpc_array_get_uuid(_$$ref.pointer, index$1); -} - -@ffi.Native( - symbol: 'xpc_array_get_value', -) -external xpc_object_t _xpc_array_get_value(xpc_object_t xarray, int index$1); - -Dartxpc_object_t xpc_array_get_value(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return objc.NSObject.fromPointer( - _xpc_array_get_value(_$$ref.pointer, index$1), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_array_set_bool', -) -external void _xpc_array_set_bool(xpc_object_t xarray, int index$1, bool value); - -void xpc_array_set_bool(Dartxpc_object_t xarray, int index$1, bool value) { - final _$$ref = xarray.ref; - return _xpc_array_set_bool(_$$ref.pointer, index$1, value); -} - -@ffi.Native( - symbol: 'xpc_array_set_connection', -) -external void _xpc_array_set_connection( - xpc_object_t xarray, - int index$1, - xpc_connection_t connection, -); - -void xpc_array_set_connection( - Dartxpc_object_t xarray, - int index$1, - Dartxpc_object_t connection, -) { - final _$$ref = xarray.ref; - final _$$ref$1 = connection.ref; - return _xpc_array_set_connection(_$$ref.pointer, index$1, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Size, ffi.Pointer, ffi.Size) ->(symbol: 'xpc_array_set_data') -external void _xpc_array_set_data( - xpc_object_t xarray, - int index$1, - ffi.Pointer bytes, - int length, -); - -void xpc_array_set_data( - Dartxpc_object_t xarray, - int index$1, - ffi.Pointer bytes, - int length, -) { - final _$$ref = xarray.ref; - return _xpc_array_set_data(_$$ref.pointer, index$1, bytes, length); -} - -@ffi.Native( - symbol: 'xpc_array_set_date', -) -external void _xpc_array_set_date(xpc_object_t xarray, int index$1, int value); - -void xpc_array_set_date(Dartxpc_object_t xarray, int index$1, int value) { - final _$$ref = xarray.ref; - return _xpc_array_set_date(_$$ref.pointer, index$1, value); -} - -@ffi.Native( - symbol: 'xpc_array_set_double', -) -external void _xpc_array_set_double( - xpc_object_t xarray, - int index$1, - double value, -); - -void xpc_array_set_double(Dartxpc_object_t xarray, int index$1, double value) { - final _$$ref = xarray.ref; - return _xpc_array_set_double(_$$ref.pointer, index$1, value); -} - -@ffi.Native( - symbol: 'xpc_array_set_fd', -) -external void _xpc_array_set_fd(xpc_object_t xarray, int index$1, int fd); - -void xpc_array_set_fd(Dartxpc_object_t xarray, int index$1, int fd) { - final _$$ref = xarray.ref; - return _xpc_array_set_fd(_$$ref.pointer, index$1, fd); -} - -@ffi.Native( - symbol: 'xpc_array_set_int64', -) -external void _xpc_array_set_int64(xpc_object_t xarray, int index$1, int value); - -void xpc_array_set_int64(Dartxpc_object_t xarray, int index$1, int value) { - final _$$ref = xarray.ref; - return _xpc_array_set_int64(_$$ref.pointer, index$1, value); -} - -@ffi.Native)>( - symbol: 'xpc_array_set_string', -) -external void _xpc_array_set_string( - xpc_object_t xarray, - int index$1, - ffi.Pointer string, -); - -void xpc_array_set_string( - Dartxpc_object_t xarray, - int index$1, - ffi.Pointer string, -) { - final _$$ref = xarray.ref; - return _xpc_array_set_string(_$$ref.pointer, index$1, string); -} - -@ffi.Native( - symbol: 'xpc_array_set_uint64', -) -external void _xpc_array_set_uint64( - xpc_object_t xarray, - int index$1, - int value, -); - -void xpc_array_set_uint64(Dartxpc_object_t xarray, int index$1, int value) { - final _$$ref = xarray.ref; - return _xpc_array_set_uint64(_$$ref.pointer, index$1, value); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Size, ffi.Pointer) ->(symbol: 'xpc_array_set_uuid') -external void _xpc_array_set_uuid( - xpc_object_t xarray, - int index$1, - ffi.Pointer uuid, -); - -void xpc_array_set_uuid( - Dartxpc_object_t xarray, - int index$1, - ffi.Pointer uuid, -) { - final _$$ref = xarray.ref; - return _xpc_array_set_uuid(_$$ref.pointer, index$1, uuid); -} - -@ffi.Native( - symbol: 'xpc_array_set_value', -) -external void _xpc_array_set_value( - xpc_object_t xarray, - int index$1, - xpc_object_t value, -); - -void xpc_array_set_value( - Dartxpc_object_t xarray, - int index$1, - Dartxpc_object_t value, -) { - final _$$ref = xarray.ref; - final _$$ref$1 = value.ref; - return _xpc_array_set_value(_$$ref.pointer, index$1, _$$ref$1.pointer); -} - -@ffi.Native(symbol: 'xpc_bool_create') -external xpc_object_t _xpc_bool_create(bool value); - -Dartxpc_object_t xpc_bool_create(bool value) { - return objc.NSObject.fromPointer( - _xpc_bool_create(value), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_bool_get_value') -external bool _xpc_bool_get_value(xpc_object_t xbool); - -bool xpc_bool_get_value(Dartxpc_object_t xbool) { - final _$$ref = xbool.ref; - return _xpc_bool_get_value(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_activate', -) -external void _xpc_connection_activate(xpc_connection_t connection); - -void xpc_connection_activate(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_activate(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_cancel', -) -external void _xpc_connection_cancel(xpc_connection_t connection); - -void xpc_connection_cancel(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_cancel(_$$ref.pointer); -} - -@ffi.Native Function(xpc_connection_t)>( - symbol: 'xpc_connection_copy_invalidation_reason', -) -external ffi.Pointer _xpc_connection_copy_invalidation_reason( - xpc_connection_t connection, -); - -ffi.Pointer xpc_connection_copy_invalidation_reason( - Dartxpc_object_t connection, -) { - final _$$ref = connection.ref; - return _xpc_connection_copy_invalidation_reason(_$$ref.pointer); -} - -@ffi.Native, dispatch_queue_t)>( - symbol: 'xpc_connection_create', -) -external xpc_connection_t _xpc_connection_create( - ffi.Pointer name, - dispatch_queue_t targetq, -); - -Dartxpc_object_t xpc_connection_create( - ffi.Pointer name, - Dartdispatch_queue_t? targetq, -) { - final _$$ref = targetq?.ref; - return objc.NSObject.fromPointer( - _xpc_connection_create(name, _$$ref?.pointer ?? ffi.nullptr), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_create_from_endpoint', -) -external xpc_connection_t _xpc_connection_create_from_endpoint( - xpc_endpoint_t endpoint, -); - -Dartxpc_object_t xpc_connection_create_from_endpoint( - Dartxpc_object_t endpoint, -) { - final _$$ref = endpoint.ref; - return objc.NSObject.fromPointer( - _xpc_connection_create_from_endpoint(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_connection_t Function(ffi.Pointer, dispatch_queue_t, ffi.Uint64) ->(symbol: 'xpc_connection_create_mach_service') -external xpc_connection_t _xpc_connection_create_mach_service( - ffi.Pointer name, - dispatch_queue_t targetq, - int flags, -); - -Dartxpc_object_t xpc_connection_create_mach_service( - ffi.Pointer name, - Dartdispatch_queue_t? targetq, - int flags, -) { - final _$$ref = targetq?.ref; - return objc.NSObject.fromPointer( - _xpc_connection_create_mach_service( - name, - _$$ref?.pointer ?? ffi.nullptr, - flags, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_get_asid', -) -external int _xpc_connection_get_asid(xpc_connection_t connection); - -Dart__int32_t xpc_connection_get_asid(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_asid(_$$ref.pointer); -} - -@ffi.Native Function(xpc_connection_t)>( - symbol: 'xpc_connection_get_context', -) -external ffi.Pointer _xpc_connection_get_context( - xpc_connection_t connection, -); - -ffi.Pointer xpc_connection_get_context(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_context(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_connection_get_egid') -external int _xpc_connection_get_egid(xpc_connection_t connection); - -Dart__uint32_t xpc_connection_get_egid(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_egid(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_connection_get_euid') -external int _xpc_connection_get_euid(xpc_connection_t connection); - -Dart__uint32_t xpc_connection_get_euid(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_euid(_$$ref.pointer); -} - -@ffi.Native Function(xpc_connection_t)>( - symbol: 'xpc_connection_get_name', -) -external ffi.Pointer _xpc_connection_get_name( - xpc_connection_t connection, -); - -ffi.Pointer xpc_connection_get_name(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_name(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_connection_get_pid') -external int _xpc_connection_get_pid(xpc_connection_t connection); - -Dart__int32_t xpc_connection_get_pid(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_pid(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_resume', -) -external void _xpc_connection_resume(xpc_connection_t connection); - -void xpc_connection_resume(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_resume(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_send_barrier', -) -external void _xpc_connection_send_barrier( - xpc_connection_t connection, - dispatch_block_t barrier, -); - -void xpc_connection_send_barrier( - Dartxpc_object_t connection, - Dartdispatch_block_t barrier, -) { - final _$$ref = connection.ref; - final _$$ref$1 = barrier.ref; - return _xpc_connection_send_barrier(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_send_message', -) -external void _xpc_connection_send_message( - xpc_connection_t connection, - xpc_object_t message, -); - -void xpc_connection_send_message( - Dartxpc_object_t connection, - Dartxpc_object_t message, -) { - final _$$ref = connection.ref; - final _$$ref$1 = message.ref; - return _xpc_connection_send_message(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - xpc_connection_t, - xpc_object_t, - dispatch_queue_t, - xpc_handler_t, - ) ->(symbol: 'xpc_connection_send_message_with_reply') -external void _xpc_connection_send_message_with_reply( - xpc_connection_t connection, - xpc_object_t message, - dispatch_queue_t replyq, - xpc_handler_t handler, -); - -void xpc_connection_send_message_with_reply( - Dartxpc_object_t connection, - Dartxpc_object_t message, - Dartdispatch_queue_t? replyq, - Dartxpc_handler_t handler, -) { - final _$$ref = connection.ref; - final _$$ref$1 = message.ref; - final _$$ref$2 = replyq?.ref; - final _$$ref$3 = handler.ref; - return _xpc_connection_send_message_with_reply( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3.pointer, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_send_message_with_reply_sync', -) -external xpc_object_t _xpc_connection_send_message_with_reply_sync( - xpc_connection_t connection, - xpc_object_t message, -); - -Dartxpc_object_t xpc_connection_send_message_with_reply_sync( - Dartxpc_object_t connection, - Dartxpc_object_t message, -) { - final _$$ref = connection.ref; - final _$$ref$1 = message.ref; - return objc.NSObject.fromPointer( - _xpc_connection_send_message_with_reply_sync( - _$$ref.pointer, - _$$ref$1.pointer, - ), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_connection_set_context', -) -external void _xpc_connection_set_context( - xpc_connection_t connection, - ffi.Pointer context, -); - -void xpc_connection_set_context( - Dartxpc_object_t connection, - ffi.Pointer context, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_context(_$$ref.pointer, context); -} - -@ffi.Native( - symbol: 'xpc_connection_set_event_handler', -) -external void _xpc_connection_set_event_handler( - xpc_connection_t connection, - xpc_handler_t handler, -); - -void xpc_connection_set_event_handler( - Dartxpc_object_t connection, - Dartxpc_handler_t handler, -) { - final _$$ref = connection.ref; - final _$$ref$1 = handler.ref; - return _xpc_connection_set_event_handler(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_set_finalizer_f', -) -external void _xpc_connection_set_finalizer_f( - xpc_connection_t connection, - xpc_finalizer_t finalizer, -); - -void xpc_connection_set_finalizer_f( - Dartxpc_object_t connection, - xpc_finalizer_t finalizer, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_finalizer_f(_$$ref.pointer, finalizer); -} - -@ffi.Native)>( - symbol: 'xpc_connection_set_peer_code_signing_requirement', -) -external int _xpc_connection_set_peer_code_signing_requirement( - xpc_connection_t connection, - ffi.Pointer requirement, -); - -int xpc_connection_set_peer_code_signing_requirement( - Dartxpc_object_t connection, - ffi.Pointer requirement, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_peer_code_signing_requirement( - _$$ref.pointer, - requirement, - ); -} - -@ffi.Native)>( - symbol: 'xpc_connection_set_peer_entitlement_exists_requirement', -) -external int _xpc_connection_set_peer_entitlement_exists_requirement( - xpc_connection_t connection, - ffi.Pointer entitlement, -); - -int xpc_connection_set_peer_entitlement_exists_requirement( - Dartxpc_object_t connection, - ffi.Pointer entitlement, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_peer_entitlement_exists_requirement( - _$$ref.pointer, - entitlement, - ); -} - -@ffi.Native< - ffi.Int Function(xpc_connection_t, ffi.Pointer, xpc_object_t) ->(symbol: 'xpc_connection_set_peer_entitlement_matches_value_requirement') -external int _xpc_connection_set_peer_entitlement_matches_value_requirement( - xpc_connection_t connection, - ffi.Pointer entitlement, - xpc_object_t value, -); - -int xpc_connection_set_peer_entitlement_matches_value_requirement( - Dartxpc_object_t connection, - ffi.Pointer entitlement, - Dartxpc_object_t value, -) { - final _$$ref = connection.ref; - final _$$ref$1 = value.ref; - return _xpc_connection_set_peer_entitlement_matches_value_requirement( - _$$ref.pointer, - entitlement, - _$$ref$1.pointer, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_set_peer_lightweight_code_requirement', -) -external int _xpc_connection_set_peer_lightweight_code_requirement( - xpc_connection_t connection, - xpc_object_t lwcr, -); - -int xpc_connection_set_peer_lightweight_code_requirement( - Dartxpc_object_t connection, - Dartxpc_object_t lwcr, -) { - final _$$ref = connection.ref; - final _$$ref$1 = lwcr.ref; - return _xpc_connection_set_peer_lightweight_code_requirement( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native)>( - symbol: 'xpc_connection_set_peer_platform_identity_requirement', -) -external int _xpc_connection_set_peer_platform_identity_requirement( - xpc_connection_t connection, - ffi.Pointer signing_identifier, -); - -int xpc_connection_set_peer_platform_identity_requirement( - Dartxpc_object_t connection, - ffi.Pointer signing_identifier, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_peer_platform_identity_requirement( - _$$ref.pointer, - signing_identifier, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_set_peer_requirement', -) -external void _xpc_connection_set_peer_requirement( - xpc_connection_t connection, - xpc_peer_requirement_t peer_requirement, -); - -void xpc_connection_set_peer_requirement( - Dartxpc_object_t connection, - Dartxpc_peer_requirement_t peer_requirement, -) { - final _$$ref = connection.ref; - final _$$ref$1 = peer_requirement.ref; - return _xpc_connection_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native)>( - symbol: 'xpc_connection_set_peer_team_identity_requirement', -) -external int _xpc_connection_set_peer_team_identity_requirement( - xpc_connection_t connection, - ffi.Pointer signing_identifier, -); - -int xpc_connection_set_peer_team_identity_requirement( - Dartxpc_object_t connection, - ffi.Pointer signing_identifier, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_peer_team_identity_requirement( - _$$ref.pointer, - signing_identifier, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_set_target_queue', -) -external void _xpc_connection_set_target_queue( - xpc_connection_t connection, - dispatch_queue_t targetq, -); - -void xpc_connection_set_target_queue( - Dartxpc_object_t connection, - Dartdispatch_queue_t? targetq, -) { - final _$$ref = connection.ref; - final _$$ref$1 = targetq?.ref; - return _xpc_connection_set_target_queue( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_suspend', -) -external void _xpc_connection_suspend(xpc_connection_t connection); - -void xpc_connection_suspend(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_suspend(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_copy') -external xpc_object_t _xpc_copy(xpc_object_t object); - -Dartxpc_object_t? xpc_copy(Dartxpc_object_t object) { - final _$$ref = object.ref; - return _xpc_copy(_$$ref.pointer).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_copy(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native Function(xpc_object_t)>( - symbol: 'xpc_copy_description', -) -external ffi.Pointer _xpc_copy_description(xpc_object_t object); - -ffi.Pointer xpc_copy_description(Dartxpc_object_t object) { - final _$$ref = object.ref; - return _xpc_copy_description(_$$ref.pointer); -} - -@ffi.Native, ffi.Size)>( - symbol: 'xpc_data_create', -) -external xpc_object_t _xpc_data_create(ffi.Pointer bytes, int length); - -Dartxpc_object_t xpc_data_create(ffi.Pointer bytes, int length) { - return objc.NSObject.fromPointer( - _xpc_data_create(bytes, length), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_data_create_with_dispatch_data', -) -external xpc_object_t _xpc_data_create_with_dispatch_data( - dispatch_data_t ddata, -); - -Dartxpc_object_t xpc_data_create_with_dispatch_data(Dartdispatch_data_t ddata) { - final _$$ref = ddata.ref; - return objc.NSObject.fromPointer( - _xpc_data_create_with_dispatch_data(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Size Function(xpc_object_t, ffi.Pointer, ffi.Size, ffi.Size) ->(symbol: 'xpc_data_get_bytes') -external int _xpc_data_get_bytes( - xpc_object_t xdata, - ffi.Pointer buffer, - int off, - int length, -); - -int xpc_data_get_bytes( - Dartxpc_object_t xdata, - ffi.Pointer buffer, - int off, - int length, -) { - final _$$ref = xdata.ref; - return _xpc_data_get_bytes(_$$ref.pointer, buffer, off, length); -} - -@ffi.Native Function(xpc_object_t)>( - symbol: 'xpc_data_get_bytes_ptr', -) -external ffi.Pointer _xpc_data_get_bytes_ptr(xpc_object_t xdata); - -ffi.Pointer xpc_data_get_bytes_ptr(Dartxpc_object_t xdata) { - final _$$ref = xdata.ref; - return _xpc_data_get_bytes_ptr(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_data_get_length') -external int _xpc_data_get_length(xpc_object_t xdata); - -int xpc_data_get_length(Dartxpc_object_t xdata) { - final _$$ref = xdata.ref; - return _xpc_data_get_length(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_date_create') -external xpc_object_t _xpc_date_create(int interval); - -Dartxpc_object_t xpc_date_create(int interval) { - return objc.NSObject.fromPointer( - _xpc_date_create(interval), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_date_create_from_current') -external xpc_object_t _xpc_date_create_from_current(); - -Dartxpc_object_t xpc_date_create_from_current() { - return objc.NSObject.fromPointer( - _xpc_date_create_from_current(), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_date_get_value') -external int _xpc_date_get_value(xpc_object_t xdate); - -int xpc_date_get_value(Dartxpc_object_t xdate) { - final _$$ref = xdate.ref; - return _xpc_date_get_value(_$$ref.pointer); -} - -@ffi.Native Function()>() -external ffi.Pointer xpc_debugger_api_misuse_info(); - -@ffi.Native( - symbol: 'xpc_dictionary_apply', -) -external bool _xpc_dictionary_apply( - xpc_object_t xdict, - xpc_dictionary_applier_t applier, -); - -bool xpc_dictionary_apply( - Dartxpc_object_t xdict, - Dartxpc_dictionary_applier_t applier, -) { - final _$$ref = xdict.ref; - final _$$ref$1 = applier.ref; - return _xpc_dictionary_apply(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_copy_mach_send', -) -external int _xpc_dictionary_copy_mach_send( - xpc_object_t xdict, - ffi.Pointer key, -); - -Dart__darwin_natural_t xpc_dictionary_copy_mach_send( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_copy_mach_send(_$$ref.pointer, key); -} - -@ffi.Native< - xpc_object_t Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'xpc_dictionary_create') -external xpc_object_t _xpc_dictionary_create( - ffi.Pointer> keys, - ffi.Pointer values, - int count, -); - -Dartxpc_object_t xpc_dictionary_create( - ffi.Pointer> keys, - ffi.Pointer values, - int count, -) { - return objc.NSObject.fromPointer( - _xpc_dictionary_create(keys, values, count), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_create_connection', -) -external xpc_connection_t _xpc_dictionary_create_connection( - xpc_object_t xdict, - ffi.Pointer key, -); - -Dartxpc_object_t? xpc_dictionary_create_connection( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_create_connection(_$$ref.pointer, key).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_create_connection(_$$ref.pointer, key), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_dictionary_create_empty') -external xpc_object_t _xpc_dictionary_create_empty(); - -Dartxpc_object_t xpc_dictionary_create_empty() { - return objc.NSObject.fromPointer( - _xpc_dictionary_create_empty(), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_dictionary_create_reply', -) -external xpc_object_t _xpc_dictionary_create_reply(xpc_object_t original); - -Dartxpc_object_t? xpc_dictionary_create_reply(Dartxpc_object_t original) { - final _$$ref = original.ref; - return _xpc_dictionary_create_reply(_$$ref.pointer).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_create_reply(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_dup_fd', -) -external int _xpc_dictionary_dup_fd( - xpc_object_t xdict, - ffi.Pointer key, -); - -int xpc_dictionary_dup_fd(Dartxpc_object_t xdict, ffi.Pointer key) { - final _$$ref = xdict.ref; - return _xpc_dictionary_dup_fd(_$$ref.pointer, key); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_array', -) -external xpc_object_t _xpc_dictionary_get_array( - xpc_object_t xdict, - ffi.Pointer key, -); - -Dartxpc_object_t? xpc_dictionary_get_array( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_array(_$$ref.pointer, key).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_get_array(_$$ref.pointer, key), - retain: true, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_bool', -) -external bool _xpc_dictionary_get_bool( - xpc_object_t xdict, - ffi.Pointer key, -); - -bool xpc_dictionary_get_bool( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_bool(_$$ref.pointer, key); -} - -@ffi.Native(symbol: 'xpc_dictionary_get_count') -external int _xpc_dictionary_get_count(xpc_object_t xdict); - -int xpc_dictionary_get_count(Dartxpc_object_t xdict) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_count(_$$ref.pointer); -} - -@ffi.Native< - ffi.Pointer Function( - xpc_object_t, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'xpc_dictionary_get_data') -external ffi.Pointer _xpc_dictionary_get_data( - xpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer length, -); - -ffi.Pointer xpc_dictionary_get_data( - Dartxpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer length, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_data(_$$ref.pointer, key, length); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_date', -) -external int _xpc_dictionary_get_date( - xpc_object_t xdict, - ffi.Pointer key, -); - -int xpc_dictionary_get_date(Dartxpc_object_t xdict, ffi.Pointer key) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_date(_$$ref.pointer, key); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_dictionary', -) -external xpc_object_t _xpc_dictionary_get_dictionary( - xpc_object_t xdict, - ffi.Pointer key, -); - -Dartxpc_object_t? xpc_dictionary_get_dictionary( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_dictionary(_$$ref.pointer, key).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_get_dictionary(_$$ref.pointer, key), - retain: true, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_double', -) -external double _xpc_dictionary_get_double( - xpc_object_t xdict, - ffi.Pointer key, -); - -double xpc_dictionary_get_double( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_double(_$$ref.pointer, key); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_int64', -) -external int _xpc_dictionary_get_int64( - xpc_object_t xdict, - ffi.Pointer key, -); - -int xpc_dictionary_get_int64( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_int64(_$$ref.pointer, key); -} - -@ffi.Native( - symbol: 'xpc_dictionary_get_remote_connection', -) -external xpc_connection_t _xpc_dictionary_get_remote_connection( - xpc_object_t xdict, -); - -Dartxpc_object_t? xpc_dictionary_get_remote_connection(Dartxpc_object_t xdict) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_remote_connection(_$$ref.pointer).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_get_remote_connection(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(xpc_object_t, ffi.Pointer) ->(symbol: 'xpc_dictionary_get_string') -external ffi.Pointer _xpc_dictionary_get_string( - xpc_object_t xdict, - ffi.Pointer key, -); - -ffi.Pointer xpc_dictionary_get_string( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_string(_$$ref.pointer, key); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_uint64', -) -external int _xpc_dictionary_get_uint64( - xpc_object_t xdict, - ffi.Pointer key, -); - -int xpc_dictionary_get_uint64( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_uint64(_$$ref.pointer, key); -} - -@ffi.Native< - ffi.Pointer Function(xpc_object_t, ffi.Pointer) ->(symbol: 'xpc_dictionary_get_uuid') -external ffi.Pointer _xpc_dictionary_get_uuid( - xpc_object_t xdict, - ffi.Pointer key, -); - -ffi.Pointer xpc_dictionary_get_uuid( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_uuid(_$$ref.pointer, key); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_value', -) -external xpc_object_t _xpc_dictionary_get_value( - xpc_object_t xdict, - ffi.Pointer key, -); - -Dartxpc_object_t? xpc_dictionary_get_value( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_value(_$$ref.pointer, key).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_get_value(_$$ref.pointer, key), - retain: true, - release: true, - ); -} - -@ffi.Native, ffi.Bool)>( - symbol: 'xpc_dictionary_set_bool', -) -external void _xpc_dictionary_set_bool( - xpc_object_t xdict, - ffi.Pointer key, - bool value, -); - -void xpc_dictionary_set_bool( - Dartxpc_object_t xdict, - ffi.Pointer key, - bool value, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_bool(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Pointer, xpc_connection_t) ->(symbol: 'xpc_dictionary_set_connection') -external void _xpc_dictionary_set_connection( - xpc_object_t xdict, - ffi.Pointer key, - xpc_connection_t connection, -); - -void xpc_dictionary_set_connection( - Dartxpc_object_t xdict, - ffi.Pointer key, - Dartxpc_object_t connection, -) { - final _$$ref = xdict.ref; - final _$$ref$1 = connection.ref; - return _xpc_dictionary_set_connection(_$$ref.pointer, key, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - xpc_object_t, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'xpc_dictionary_set_data') -external void _xpc_dictionary_set_data( - xpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer bytes, - int length, -); - -void xpc_dictionary_set_data( - Dartxpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer bytes, - int length, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_data(_$$ref.pointer, key, bytes, length); -} - -@ffi.Native, ffi.Int64)>( - symbol: 'xpc_dictionary_set_date', -) -external void _xpc_dictionary_set_date( - xpc_object_t xdict, - ffi.Pointer key, - int value, -); - -void xpc_dictionary_set_date( - Dartxpc_object_t xdict, - ffi.Pointer key, - int value, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_date(_$$ref.pointer, key, value); -} - -@ffi.Native, ffi.Double)>( - symbol: 'xpc_dictionary_set_double', -) -external void _xpc_dictionary_set_double( - xpc_object_t xdict, - ffi.Pointer key, - double value, -); - -void xpc_dictionary_set_double( - Dartxpc_object_t xdict, - ffi.Pointer key, - double value, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_double(_$$ref.pointer, key, value); -} - -@ffi.Native, ffi.Int)>( - symbol: 'xpc_dictionary_set_fd', -) -external void _xpc_dictionary_set_fd( - xpc_object_t xdict, - ffi.Pointer key, - int fd, -); - -void xpc_dictionary_set_fd( - Dartxpc_object_t xdict, - ffi.Pointer key, - int fd, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_fd(_$$ref.pointer, key, fd); -} - -@ffi.Native, ffi.Int64)>( - symbol: 'xpc_dictionary_set_int64', -) -external void _xpc_dictionary_set_int64( - xpc_object_t xdict, - ffi.Pointer key, - int value, -); - -void xpc_dictionary_set_int64( - Dartxpc_object_t xdict, - ffi.Pointer key, - int value, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_int64(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Pointer, mach_port_t) ->(symbol: 'xpc_dictionary_set_mach_send') -external void _xpc_dictionary_set_mach_send( - xpc_object_t xdict, - ffi.Pointer key, - int p, -); - -void xpc_dictionary_set_mach_send( - Dartxpc_object_t xdict, - ffi.Pointer key, - Dart__darwin_natural_t p, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_mach_send(_$$ref.pointer, key, p); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Pointer, ffi.Pointer) ->(symbol: 'xpc_dictionary_set_string') -external void _xpc_dictionary_set_string( - xpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer string, -); - -void xpc_dictionary_set_string( - Dartxpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer string, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_string(_$$ref.pointer, key, string); -} - -@ffi.Native, ffi.Uint64)>( - symbol: 'xpc_dictionary_set_uint64', -) -external void _xpc_dictionary_set_uint64( - xpc_object_t xdict, - ffi.Pointer key, - int value, -); - -void xpc_dictionary_set_uint64( - Dartxpc_object_t xdict, - ffi.Pointer key, - int value, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_uint64(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Void Function( - xpc_object_t, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'xpc_dictionary_set_uuid') -external void _xpc_dictionary_set_uuid( - xpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer uuid, -); - -void xpc_dictionary_set_uuid( - Dartxpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer uuid, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_uuid(_$$ref.pointer, key, uuid); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Pointer, xpc_object_t) ->(symbol: 'xpc_dictionary_set_value') -external void _xpc_dictionary_set_value( - xpc_object_t xdict, - ffi.Pointer key, - xpc_object_t value, -); - -void xpc_dictionary_set_value( - Dartxpc_object_t xdict, - ffi.Pointer key, - Dartxpc_object_t? value, -) { - final _$$ref = xdict.ref; - final _$$ref$1 = value?.ref; - return _xpc_dictionary_set_value( - _$$ref.pointer, - key, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native(symbol: 'xpc_double_create') -external xpc_object_t _xpc_double_create(double value); - -Dartxpc_object_t xpc_double_create(double value) { - return objc.NSObject.fromPointer( - _xpc_double_create(value), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_double_get_value') -external double _xpc_double_get_value(xpc_object_t xdouble); - -double xpc_double_get_value(Dartxpc_object_t xdouble) { - final _$$ref = xdouble.ref; - return _xpc_double_get_value(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'xpc_endpoint_create', -) -external xpc_endpoint_t _xpc_endpoint_create(xpc_connection_t connection); - -Dartxpc_object_t xpc_endpoint_create(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return objc.NSObject.fromPointer( - _xpc_endpoint_create(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_equal') -external bool _xpc_equal(xpc_object_t object1, xpc_object_t object2); - -bool xpc_equal(Dartxpc_object_t object1, Dartxpc_object_t object2) { - final _$$ref = object1.ref; - final _$$ref$1 = object2.ref; - return _xpc_equal(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native(symbol: 'xpc_fd_create') -external xpc_object_t _xpc_fd_create(int fd); - -Dartxpc_object_t? xpc_fd_create(int fd) { - return _xpc_fd_create(fd).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_fd_create(fd), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_fd_dup') -external int _xpc_fd_dup(xpc_object_t xfd); - -int xpc_fd_dup(Dartxpc_object_t xfd) { - final _$$ref = xfd.ref; - return _xpc_fd_dup(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_get_type') -external xpc_type_t _xpc_get_type(xpc_object_t object); - -xpc_type_t xpc_get_type(Dartxpc_object_t object) { - final _$$ref = object.ref; - return _xpc_get_type(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_hash') -external int _xpc_hash(xpc_object_t object); - -int xpc_hash(Dartxpc_object_t object) { - final _$$ref = object.ref; - return _xpc_hash(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_int64_create') -external xpc_object_t _xpc_int64_create(int value); - -Dartxpc_object_t xpc_int64_create(int value) { - return objc.NSObject.fromPointer( - _xpc_int64_create(value), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_int64_get_value') -external int _xpc_int64_get_value(xpc_object_t xint); - -int xpc_int64_get_value(Dartxpc_object_t xint) { - final _$$ref = xint.ref; - return _xpc_int64_get_value(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'xpc_listener_activate', -) -external bool _xpc_listener_activate( - xpc_listener_t listener, - ffi.Pointer error_out, -); - -bool xpc_listener_activate( - Dartxpc_listener_t listener, - ffi.Pointer error_out, -) { - final _$$ref = listener.ref; - return _xpc_listener_activate(_$$ref.pointer, error_out); -} - -@ffi.Native(symbol: 'xpc_listener_cancel') -external void _xpc_listener_cancel(xpc_listener_t listener); - -void xpc_listener_cancel(Dartxpc_listener_t listener) { - final _$$ref = listener.ref; - return _xpc_listener_cancel(_$$ref.pointer); -} - -@ffi.Native Function(xpc_listener_t)>( - symbol: 'xpc_listener_copy_description', -) -external ffi.Pointer _xpc_listener_copy_description( - xpc_listener_t listener, -); - -ffi.Pointer xpc_listener_copy_description( - Dartxpc_listener_t listener, -) { - final _$$ref = listener.ref; - return _xpc_listener_copy_description(_$$ref.pointer); -} - -@ffi.Native< - xpc_listener_t Function( - ffi.Pointer, - dispatch_queue_t, - ffi.Uint64, - xpc_listener_incoming_session_handler_t, - ffi.Pointer, - ) ->(symbol: 'xpc_listener_create') -external xpc_listener_t _xpc_listener_create( - ffi.Pointer service, - dispatch_queue_t target_queue, - int flags, - xpc_listener_incoming_session_handler_t incoming_session_handler, - ffi.Pointer error_out, -); - -Dartxpc_listener_t? xpc_listener_create( - ffi.Pointer service, - Dartdispatch_queue_t? target_queue, - int flags, - Dartxpc_listener_incoming_session_handler_t incoming_session_handler, - ffi.Pointer error_out, -) { - final _$$ref = target_queue?.ref; - final _$$ref$1 = incoming_session_handler.ref; - return _xpc_listener_create( - service, - _$$ref?.pointer ?? ffi.nullptr, - flags, - _$$ref$1.pointer, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_listener_create( - service, - _$$ref?.pointer ?? ffi.nullptr, - flags, - _$$ref$1.pointer, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_listener_reject_peer', -) -external void _xpc_listener_reject_peer( - xpc_session_t peer, - ffi.Pointer reason, -); - -void xpc_listener_reject_peer( - Dartxpc_session_t peer, - ffi.Pointer reason, -) { - final _$$ref = peer.ref; - return _xpc_listener_reject_peer(_$$ref.pointer, reason); -} - -@ffi.Native)>( - symbol: 'xpc_listener_set_peer_code_signing_requirement', -) -external int _xpc_listener_set_peer_code_signing_requirement( - xpc_listener_t listener, - ffi.Pointer requirement, -); - -int xpc_listener_set_peer_code_signing_requirement( - Dartxpc_listener_t listener, - ffi.Pointer requirement, -) { - final _$$ref = listener.ref; - return _xpc_listener_set_peer_code_signing_requirement( - _$$ref.pointer, - requirement, - ); -} - -@ffi.Native( - symbol: 'xpc_listener_set_peer_requirement', -) -external void _xpc_listener_set_peer_requirement( - xpc_listener_t listener, - xpc_peer_requirement_t requirement, -); - -void xpc_listener_set_peer_requirement( - Dartxpc_listener_t listener, - Dartxpc_peer_requirement_t requirement, -) { - final _$$ref = listener.ref; - final _$$ref$1 = requirement.ref; - return _xpc_listener_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native() -external void xpc_main(xpc_connection_handler_t handler); - -@ffi.Native(symbol: 'xpc_null_create') -external xpc_object_t _xpc_null_create(); - -Dartxpc_object_t xpc_null_create() { - return objc.NSObject.fromPointer( - _xpc_null_create(), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_peer_requirement_t Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'xpc_peer_requirement_create_entitlement_exists') -external xpc_peer_requirement_t _xpc_peer_requirement_create_entitlement_exists( - ffi.Pointer entitlement, - ffi.Pointer error_out, -); - -Dartxpc_peer_requirement_t? xpc_peer_requirement_create_entitlement_exists( - ffi.Pointer entitlement, - ffi.Pointer error_out, -) { - return _xpc_peer_requirement_create_entitlement_exists( - entitlement, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_peer_requirement_create_entitlement_exists( - entitlement, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_peer_requirement_t Function( - ffi.Pointer, - xpc_object_t, - ffi.Pointer, - ) ->(symbol: 'xpc_peer_requirement_create_entitlement_matches_value') -external xpc_peer_requirement_t -_xpc_peer_requirement_create_entitlement_matches_value( - ffi.Pointer entitlement, - xpc_object_t value, - ffi.Pointer error_out, -); - -Dartxpc_peer_requirement_t? -xpc_peer_requirement_create_entitlement_matches_value( - ffi.Pointer entitlement, - Dartxpc_object_t value, - ffi.Pointer error_out, -) { - final _$$ref = value.ref; - return _xpc_peer_requirement_create_entitlement_matches_value( - entitlement, - _$$ref.pointer, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_peer_requirement_create_entitlement_matches_value( - entitlement, - _$$ref.pointer, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_peer_requirement_t Function(xpc_object_t, ffi.Pointer) ->(symbol: 'xpc_peer_requirement_create_lwcr') -external xpc_peer_requirement_t _xpc_peer_requirement_create_lwcr( - xpc_object_t lwcr, - ffi.Pointer error_out, -); - -Dartxpc_peer_requirement_t? xpc_peer_requirement_create_lwcr( - Dartxpc_object_t lwcr, - ffi.Pointer error_out, -) { - final _$$ref = lwcr.ref; - return _xpc_peer_requirement_create_lwcr(_$$ref.pointer, error_out).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_peer_requirement_create_lwcr(_$$ref.pointer, error_out), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_peer_requirement_t Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'xpc_peer_requirement_create_platform_identity') -external xpc_peer_requirement_t _xpc_peer_requirement_create_platform_identity( - ffi.Pointer signing_identifier, - ffi.Pointer error_out, -); - -Dartxpc_peer_requirement_t? xpc_peer_requirement_create_platform_identity( - ffi.Pointer signing_identifier, - ffi.Pointer error_out, -) { - return _xpc_peer_requirement_create_platform_identity( - signing_identifier, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_peer_requirement_create_platform_identity( - signing_identifier, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_peer_requirement_t Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'xpc_peer_requirement_create_team_identity') -external xpc_peer_requirement_t _xpc_peer_requirement_create_team_identity( - ffi.Pointer signing_identifier, - ffi.Pointer error_out, -); - -Dartxpc_peer_requirement_t? xpc_peer_requirement_create_team_identity( - ffi.Pointer signing_identifier, - ffi.Pointer error_out, -) { - return _xpc_peer_requirement_create_team_identity( - signing_identifier, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_peer_requirement_create_team_identity( - signing_identifier, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Bool Function( - xpc_peer_requirement_t, - xpc_object_t, - ffi.Pointer, - ) ->(symbol: 'xpc_peer_requirement_match_received_message') -external bool _xpc_peer_requirement_match_received_message( - xpc_peer_requirement_t peer_requirement, - xpc_object_t message, - ffi.Pointer error_out, -); - -bool xpc_peer_requirement_match_received_message( - Dartxpc_peer_requirement_t peer_requirement, - Dartxpc_object_t message, - ffi.Pointer error_out, -) { - final _$$ref = peer_requirement.ref; - final _$$ref$1 = message.ref; - return _xpc_peer_requirement_match_received_message( - _$$ref.pointer, - _$$ref$1.pointer, - error_out, - ); -} - -@ffi.Native(symbol: 'xpc_release') -external void _xpc_release(xpc_object_t object); - -void xpc_release(Dartxpc_object_t object) { - final _$$ref = object.ref; - return _xpc_release(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_retain') -external xpc_object_t _xpc_retain(xpc_object_t object); - -Dartxpc_object_t xpc_retain(Dartxpc_object_t object) { - final _$$ref = object.ref; - return objc.NSObject.fromPointer( - _xpc_retain(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_rich_error_can_retry', -) -external bool _xpc_rich_error_can_retry(xpc_rich_error_t error); - -bool xpc_rich_error_can_retry(Dartxpc_object_t error) { - final _$$ref = error.ref; - return _xpc_rich_error_can_retry(_$$ref.pointer); -} - -@ffi.Native Function(xpc_rich_error_t)>( - symbol: 'xpc_rich_error_copy_description', -) -external ffi.Pointer _xpc_rich_error_copy_description( - xpc_rich_error_t error, -); - -ffi.Pointer xpc_rich_error_copy_description(Dartxpc_object_t error) { - final _$$ref = error.ref; - return _xpc_rich_error_copy_description(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'xpc_session_activate', -) -external bool _xpc_session_activate( - xpc_session_t session, - ffi.Pointer error_out, -); - -bool xpc_session_activate( - Dartxpc_session_t session, - ffi.Pointer error_out, -) { - final _$$ref = session.ref; - return _xpc_session_activate(_$$ref.pointer, error_out); -} - -@ffi.Native(symbol: 'xpc_session_cancel') -external void _xpc_session_cancel(xpc_session_t session); - -void xpc_session_cancel(Dartxpc_session_t session) { - final _$$ref = session.ref; - return _xpc_session_cancel(_$$ref.pointer); -} - -@ffi.Native Function(xpc_session_t)>( - symbol: 'xpc_session_copy_description', -) -external ffi.Pointer _xpc_session_copy_description( - xpc_session_t session, -); - -ffi.Pointer xpc_session_copy_description(Dartxpc_session_t session) { - final _$$ref = session.ref; - return _xpc_session_copy_description(_$$ref.pointer); -} - -@ffi.Native< - xpc_session_t Function( - ffi.Pointer, - dispatch_queue_t, - ffi.Uint64, - ffi.Pointer, - ) ->(symbol: 'xpc_session_create_mach_service') -external xpc_session_t _xpc_session_create_mach_service( - ffi.Pointer mach_service, - dispatch_queue_t target_queue, - int flags, - ffi.Pointer error_out, -); - -Dartxpc_session_t? xpc_session_create_mach_service( - ffi.Pointer mach_service, - Dartdispatch_queue_t? target_queue, - int flags, - ffi.Pointer error_out, -) { - final _$$ref = target_queue?.ref; - return _xpc_session_create_mach_service( - mach_service, - _$$ref?.pointer ?? ffi.nullptr, - flags, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_session_create_mach_service( - mach_service, - _$$ref?.pointer ?? ffi.nullptr, - flags, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_session_t Function( - ffi.Pointer, - dispatch_queue_t, - ffi.Uint64, - ffi.Pointer, - ) ->(symbol: 'xpc_session_create_xpc_service') -external xpc_session_t _xpc_session_create_xpc_service( - ffi.Pointer name, - dispatch_queue_t target_queue, - int flags, - ffi.Pointer error_out, -); - -Dartxpc_session_t? xpc_session_create_xpc_service( - ffi.Pointer name, - Dartdispatch_queue_t? target_queue, - int flags, - ffi.Pointer error_out, -) { - final _$$ref = target_queue?.ref; - return _xpc_session_create_xpc_service( - name, - _$$ref?.pointer ?? ffi.nullptr, - flags, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_session_create_xpc_service( - name, - _$$ref?.pointer ?? ffi.nullptr, - flags, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_session_send_message', -) -external xpc_rich_error_t _xpc_session_send_message( - xpc_session_t session, - xpc_object_t message, -); - -Dartxpc_object_t? xpc_session_send_message( - Dartxpc_session_t session, - Dartxpc_object_t message, -) { - final _$$ref = session.ref; - final _$$ref$1 = message.ref; - return _xpc_session_send_message(_$$ref.pointer, _$$ref$1.pointer).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_session_send_message(_$$ref.pointer, _$$ref$1.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Void Function(xpc_session_t, xpc_object_t, xpc_session_reply_handler_t) ->(symbol: 'xpc_session_send_message_with_reply_async') -external void _xpc_session_send_message_with_reply_async( - xpc_session_t session, - xpc_object_t message, - xpc_session_reply_handler_t reply_handler, -); - -void xpc_session_send_message_with_reply_async( - Dartxpc_session_t session, - Dartxpc_object_t message, - Dartxpc_session_reply_handler_t reply_handler, -) { - final _$$ref = session.ref; - final _$$ref$1 = message.ref; - final _$$ref$2 = reply_handler.ref; - return _xpc_session_send_message_with_reply_async( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native< - xpc_object_t Function( - xpc_session_t, - xpc_object_t, - ffi.Pointer, - ) ->(symbol: 'xpc_session_send_message_with_reply_sync') -external xpc_object_t _xpc_session_send_message_with_reply_sync( - xpc_session_t session, - xpc_object_t message, - ffi.Pointer error_out, -); - -Dartxpc_object_t? xpc_session_send_message_with_reply_sync( - Dartxpc_session_t session, - Dartxpc_object_t message, - ffi.Pointer error_out, -) { - final _$$ref = session.ref; - final _$$ref$1 = message.ref; - return _xpc_session_send_message_with_reply_sync( - _$$ref.pointer, - _$$ref$1.pointer, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_session_send_message_with_reply_sync( - _$$ref.pointer, - _$$ref$1.pointer, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_session_set_cancel_handler', -) -external void _xpc_session_set_cancel_handler( - xpc_session_t session, - xpc_session_cancel_handler_t cancel_handler, -); - -void xpc_session_set_cancel_handler( - Dartxpc_session_t session, - Dartxpc_session_cancel_handler_t cancel_handler, -) { - final _$$ref = session.ref; - final _$$ref$1 = cancel_handler.ref; - return _xpc_session_set_cancel_handler(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function(xpc_session_t, xpc_session_incoming_message_handler_t) ->(symbol: 'xpc_session_set_incoming_message_handler') -external void _xpc_session_set_incoming_message_handler( - xpc_session_t session, - xpc_session_incoming_message_handler_t handler, -); - -void xpc_session_set_incoming_message_handler( - Dartxpc_session_t session, - Dartxpc_session_incoming_message_handler_t handler, -) { - final _$$ref = session.ref; - final _$$ref$1 = handler.ref; - return _xpc_session_set_incoming_message_handler( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native)>( - symbol: 'xpc_session_set_peer_code_signing_requirement', -) -external int _xpc_session_set_peer_code_signing_requirement( - xpc_session_t session, - ffi.Pointer requirement, -); - -int xpc_session_set_peer_code_signing_requirement( - Dartxpc_session_t session, - ffi.Pointer requirement, -) { - final _$$ref = session.ref; - return _xpc_session_set_peer_code_signing_requirement( - _$$ref.pointer, - requirement, - ); -} - -@ffi.Native( - symbol: 'xpc_session_set_peer_requirement', -) -external void _xpc_session_set_peer_requirement( - xpc_session_t session, - xpc_peer_requirement_t requirement, -); - -void xpc_session_set_peer_requirement( - Dartxpc_session_t session, - Dartxpc_peer_requirement_t requirement, -) { - final _$$ref = session.ref; - final _$$ref$1 = requirement.ref; - return _xpc_session_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_session_set_target_queue', -) -external void _xpc_session_set_target_queue( - xpc_session_t session, - dispatch_queue_t target_queue, -); - -void xpc_session_set_target_queue( - Dartxpc_session_t session, - Dartdispatch_queue_t? target_queue, -) { - final _$$ref = session.ref; - final _$$ref$1 = target_queue?.ref; - return _xpc_session_set_target_queue( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, dispatch_queue_t, xpc_handler_t) ->(symbol: 'xpc_set_event_stream_handler') -external void _xpc_set_event_stream_handler( - ffi.Pointer stream, - dispatch_queue_t targetq, - xpc_handler_t handler, -); - -void xpc_set_event_stream_handler( - ffi.Pointer stream, - Dartdispatch_queue_t? targetq, - Dartxpc_handler_t handler, -) { - final _$$ref = targetq?.ref; - final _$$ref$1 = handler.ref; - return _xpc_set_event_stream_handler( - stream, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1.pointer, - ); -} - -@ffi.Native, ffi.Size)>( - symbol: 'xpc_shmem_create', -) -external xpc_object_t _xpc_shmem_create( - ffi.Pointer region, - int length, -); - -Dartxpc_object_t xpc_shmem_create(ffi.Pointer region, int length) { - return objc.NSObject.fromPointer( - _xpc_shmem_create(region, length), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Size Function(xpc_object_t, ffi.Pointer>) ->(symbol: 'xpc_shmem_map') -external int _xpc_shmem_map( - xpc_object_t xshmem, - ffi.Pointer> region, -); - -int xpc_shmem_map( - Dartxpc_object_t xshmem, - ffi.Pointer> region, -) { - final _$$ref = xshmem.ref; - return _xpc_shmem_map(_$$ref.pointer, region); -} - -@ffi.Native)>( - symbol: 'xpc_string_create', -) -external xpc_object_t _xpc_string_create(ffi.Pointer string); - -Dartxpc_object_t xpc_string_create(ffi.Pointer string) { - return objc.NSObject.fromPointer( - _xpc_string_create(string), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_string_create_with_format', -) -external xpc_object_t _xpc_string_create_with_format(ffi.Pointer fmt); - -Dartxpc_object_t xpc_string_create_with_format(ffi.Pointer fmt) { - return objc.NSObject.fromPointer( - _xpc_string_create_with_format(fmt), - retain: false, - release: true, - ); -} - -@ffi.Native, va_list)>( - symbol: 'xpc_string_create_with_format_and_arguments', -) -external xpc_object_t _xpc_string_create_with_format_and_arguments( - ffi.Pointer fmt, - va_list ap, -); - -Dartxpc_object_t xpc_string_create_with_format_and_arguments( - ffi.Pointer fmt, - va_list ap, -) { - return objc.NSObject.fromPointer( - _xpc_string_create_with_format_and_arguments(fmt, ap), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_string_get_length') -external int _xpc_string_get_length(xpc_object_t xstring); - -int xpc_string_get_length(Dartxpc_object_t xstring) { - final _$$ref = xstring.ref; - return _xpc_string_get_length(_$$ref.pointer); -} - -@ffi.Native Function(xpc_object_t)>( - symbol: 'xpc_string_get_string_ptr', -) -external ffi.Pointer _xpc_string_get_string_ptr(xpc_object_t xstring); - -ffi.Pointer xpc_string_get_string_ptr(Dartxpc_object_t xstring) { - final _$$ref = xstring.ref; - return _xpc_string_get_string_ptr(_$$ref.pointer); -} - -@ffi.Native() -external void xpc_transaction_begin(); - -@ffi.Native() -external void xpc_transaction_end(); - -@ffi.Native Function(xpc_type_t)>() -external ffi.Pointer xpc_type_get_name(xpc_type_t type); - -@ffi.Native(symbol: 'xpc_uint64_create') -external xpc_object_t _xpc_uint64_create(int value); - -Dartxpc_object_t xpc_uint64_create(int value) { - return objc.NSObject.fromPointer( - _xpc_uint64_create(value), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_uint64_get_value') -external int _xpc_uint64_get_value(xpc_object_t xuint); - -int xpc_uint64_get_value(Dartxpc_object_t xuint) { - final _$$ref = xuint.ref; - return _xpc_uint64_get_value(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'xpc_uuid_create', -) -external xpc_object_t _xpc_uuid_create(ffi.Pointer uuid); - -Dartxpc_object_t xpc_uuid_create(ffi.Pointer uuid) { - return objc.NSObject.fromPointer( - _xpc_uuid_create(uuid), - retain: false, - release: true, - ); -} - -@ffi.Native Function(xpc_object_t)>( - symbol: 'xpc_uuid_get_bytes', -) -external ffi.Pointer _xpc_uuid_get_bytes(xpc_object_t xuuid); - -ffi.Pointer xpc_uuid_get_bytes(Dartxpc_object_t xuuid) { - final _$$ref = xuuid.ref; - return _xpc_uuid_get_bytes(_$$ref.pointer); -} - -@ffi.Native() -external double y0(double arg0); - -@ffi.Native() -external double y1(double arg0); - -@ffi.Native() -external double yn(int arg0, double arg1); - -const int AAPNotCreatedErr = -2120; - -const int AAPNotFoundErr = -2121; - -const int ACE2Type = 1094927666; - -const int ACE8Type = 1094927672; - -typedef AEAddressDesc = objc.AEDesc; - -final class AEArrayData extends ffi.Union { - @ffi.Array.multi([1]) - external ffi.Array kAEDataArray$1; - - @ffi.Array.multi([1]) - external ffi.Array kAEPackedArray$1; - - @ffi.Array.multi([1]) - external ffi.Array kAEHandleArray$1; - - @ffi.Array.multi([1]) - external ffi.Array kAEDescArray$1; - - @ffi.Array.multi([1]) - external ffi.Array kAEKeyDescArray$1; -} - -typedef AEArrayDataPointer = ffi.Pointer; -typedef AEArrayType = SInt8; - -@ffi.Packed(2) -final class AEBuildError extends ffi.Struct { - @AEBuildErrorCode() - external int fError; - - @UInt32() - external int fErrorPos; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fError, - required int fErrorPos, - }) => $allocator() - ..ref.fError = fError - ..ref.fErrorPos = fErrorPos; -} - -typedef AEBuildErrorCode = UInt32; -typedef AECoerceDescProcPtr = - ffi.Pointer>; -typedef AECoerceDescProcPtrFunction = - OSErr Function( - ffi.Pointer fromDesc, - DescType toType, - SRefCon handlerRefcon, - ffi.Pointer toDesc, - ); -typedef DartAECoerceDescProcPtrFunction = - DartSInt16 Function( - ffi.Pointer fromDesc, - DartUInt32 toType, - SRefCon handlerRefcon, - ffi.Pointer toDesc, - ); -typedef AECoerceDescUPP = AECoerceDescProcPtr; -typedef AECoercePtrProcPtr = - ffi.Pointer>; -typedef AECoercePtrProcPtrFunction = - OSErr Function( - DescType typeCode, - ffi.Pointer dataPtr, - Size dataSize, - DescType toType, - SRefCon handlerRefcon, - ffi.Pointer result, - ); -typedef DartAECoercePtrProcPtrFunction = - DartSInt16 Function( - DartUInt32 typeCode, - ffi.Pointer dataPtr, - DartSize dataSize, - DartUInt32 toType, - SRefCon handlerRefcon, - ffi.Pointer result, - ); -typedef AECoercePtrUPP = AECoercePtrProcPtr; -typedef AECoercionHandlerUPP = AECoerceDescUPP; -typedef AEDataStorage = ffi.Pointer; -typedef AEDataStorageType = ffi.Pointer; -typedef AEDescList = objc.AEDesc; -typedef AEDescPtr = ffi.Pointer; -typedef AEDisposeExternalProcPtr = - ffi.Pointer>; -typedef AEDisposeExternalProcPtrFunction = - ffi.Void Function( - ffi.Pointer dataPtr, - Size dataLength, - SRefCon refcon, - ); -typedef DartAEDisposeExternalProcPtrFunction = - void Function( - ffi.Pointer dataPtr, - DartSize dataLength, - SRefCon refcon, - ); -typedef AEDisposeExternalUPP = AEDisposeExternalProcPtr; -typedef AEEventClass = FourCharCode; -typedef AEEventHandlerProcPtr = - ffi.Pointer>; -typedef AEEventHandlerProcPtrFunction = - OSErr Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - SRefCon handlerRefcon, - ); -typedef DartAEEventHandlerProcPtrFunction = - DartSInt16 Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - SRefCon handlerRefcon, - ); -typedef AEEventHandlerUPP = AEEventHandlerProcPtr; -typedef AEEventID = FourCharCode; -typedef AEEventSource = SInt8; - -@ffi.Packed(2) -final class AEKeyDesc extends ffi.Struct { - @AEKeyword() - external int descKey; - - external objc.AEDesc descContent; -} - -typedef AEKeyword = FourCharCode; -typedef AERecord = AEDescList; - -final class AERemoteProcessResolver extends ffi.Opaque {} - -typedef AERemoteProcessResolverCallback = - ffi.Pointer>; -typedef AERemoteProcessResolverCallbackFunction = - ffi.Void Function( - AERemoteProcessResolverRef ref, - ffi.Pointer info, - ); -typedef DartAERemoteProcessResolverCallbackFunction = - void Function(AERemoteProcessResolverRef ref, ffi.Pointer info); - -@ffi.Packed(2) -final class AERemoteProcessResolverContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef AERemoteProcessResolverRef = ffi.Pointer; -typedef AEReturnID = SInt16; -typedef AESendMode = SInt32; -typedef AESendPriority = SInt16; -typedef AEStreamRef = ffi.Pointer; -typedef AETransactionID = SInt32; - -final class AFPAlternateAddress extends ffi.Struct { - @UInt8() - external int fVersion; - - @UInt8() - external int fAddressCount; - - @ffi.Array.multi([1]) - external ffi.Array fAddressList; -} - -final class AFPTagData extends ffi.Struct { - @UInt8() - external int fLength; - - @UInt8() - external int fType; - - @ffi.Array.multi([1]) - external ffi.Array fData; -} - -@ffi.Packed(2) -final class AFPVolMountInfo extends ffi.Struct { - @SInt16() - external int length; - - @VolumeType() - external int media; - - @SInt16() - external int flags; - - @SInt8() - external int nbpInterval; - - @SInt8() - external int nbpCount; - - @SInt16() - external int uamType; - - @SInt16() - external int zoneNameOffset; - - @SInt16() - external int serverNameOffset; - - @SInt16() - external int volNameOffset; - - @SInt16() - external int userNameOffset; - - @SInt16() - external int userPasswordOffset; - - @SInt16() - external int volPasswordOffset; - - @ffi.Array.multi([144]) - external ffi.Array AFPData; -} - -typedef AFPVolMountInfoPtr = ffi.Pointer; - -@ffi.Packed(2) -final class AFPXVolMountInfo extends ffi.Struct { - @SInt16() - external int length; - - @VolumeType() - external int media; - - @SInt16() - external int flags; - - @SInt8() - external int nbpInterval; - - @SInt8() - external int nbpCount; - - @SInt16() - external int uamType; - - @SInt16() - external int zoneNameOffset; - - @SInt16() - external int serverNameOffset; - - @SInt16() - external int volNameOffset; - - @SInt16() - external int userNameOffset; - - @SInt16() - external int userPasswordOffset; - - @SInt16() - external int volPasswordOffset; - - @SInt16() - external int extendedFlags; - - @SInt16() - external int uamNameOffset; - - @SInt16() - external int alternateAddressOffset; - - @ffi.Array.multi([176]) - external ffi.Array AFPData; -} - -typedef AFPXVolMountInfoPtr = ffi.Pointer; - -const int AIFCID = 1095321155; - -const int AIFCVersion1 = -1568648896; - -const int AIFFID = 1095321158; - -final class AIFFLoop extends ffi.Struct { - @SInt16() - external int playMode; - - @MarkerIdType() - external int beginLoop; - - @MarkerIdType() - external int endLoop; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int playMode, - required int beginLoop, - required int endLoop, - }) => $allocator() - ..ref.playMode = playMode - ..ref.beginLoop = beginLoop - ..ref.endLoop = endLoop; -} - -final class ALMXGlyphEntry extends ffi.Struct { - @SInt16() - external int GlyphIndexOffset; - - @SInt16() - external int HorizontalAdvance; - - @SInt16() - external int XOffsetToHOrigin; - - @SInt16() - external int VerticalAdvance; - - @SInt16() - external int YOffsetToVOrigin; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int GlyphIndexOffset, - required int HorizontalAdvance, - required int XOffsetToHOrigin, - required int VerticalAdvance, - required int YOffsetToVOrigin, - }) => $allocator() - ..ref.GlyphIndexOffset = GlyphIndexOffset - ..ref.HorizontalAdvance = HorizontalAdvance - ..ref.XOffsetToHOrigin = XOffsetToHOrigin - ..ref.VerticalAdvance = VerticalAdvance - ..ref.YOffsetToVOrigin = YOffsetToVOrigin; -} - -@ffi.Packed(2) -final class ALMXHeader extends ffi.Struct { - @Fixed() - external int Version; - - @UInt16() - external int Flags; - - @UInt16() - external int NMasters; - - @UInt16() - external int FirstGlyph; - - @UInt16() - external int LastGlyph; - - external SFNTLookupTable lookup; -} - -const int ASDBadForkErr = -2123; - -const int ASDBadHeaderErr = -2122; - -const int ASDEntryNotFoundErr = -2124; - -typedef ATSCubicClosePathProcPtr = - ffi.Pointer>; -typedef ATSCubicClosePathProcPtrFunction = - OSStatus Function(ffi.Pointer callBackDataPtr); -typedef DartATSCubicClosePathProcPtrFunction = - DartSInt32 Function(ffi.Pointer callBackDataPtr); -typedef ATSCubicClosePathUPP = ATSCubicClosePathProcPtr; -typedef ATSCubicCurveToProcPtr = - ffi.Pointer>; -typedef ATSCubicCurveToProcPtrFunction = - OSStatus Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer pt3, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSCubicCurveToProcPtrFunction = - DartSInt32 Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer pt3, - ffi.Pointer callBackDataPtr, - ); -typedef ATSCubicCurveToUPP = ATSCubicCurveToProcPtr; -typedef ATSCubicLineToProcPtr = - ffi.Pointer>; -typedef ATSCubicLineToProcPtrFunction = - OSStatus Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSCubicLineToProcPtrFunction = - DartSInt32 Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef ATSCubicLineToUPP = ATSCubicLineToProcPtr; -typedef ATSCubicMoveToProcPtr = - ffi.Pointer>; -typedef ATSCubicMoveToProcPtrFunction = - OSStatus Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSCubicMoveToProcPtrFunction = - DartSInt32 Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef ATSCubicMoveToUPP = ATSCubicMoveToProcPtr; -typedef ATSCurveType = UInt16; - -@ffi.Packed(2) -final class ATSFlatDataFontNameDataHeader extends ffi.Struct { - @ATSFlatDataFontSpeciferType() - external int nameSpecifierType; - - @UInt32() - external int nameSpecifierSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nameSpecifierType, - required int nameSpecifierSize, - }) => $allocator() - ..ref.nameSpecifierType = nameSpecifierType - ..ref.nameSpecifierSize = nameSpecifierSize; -} - -@ffi.Packed(2) -final class ATSFlatDataFontSpecRawNameData extends ffi.Struct { - @FontNameCode() - external int fontNameType; - - @FontPlatformCode() - external int fontNamePlatform; - - @FontScriptCode() - external int fontNameScript; - - @FontLanguageCode() - external int fontNameLanguage; - - @UInt32() - external int fontNameLength; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fontNameType, - required int fontNamePlatform, - required int fontNameScript, - required int fontNameLanguage, - required int fontNameLength, - }) => $allocator() - ..ref.fontNameType = fontNameType - ..ref.fontNamePlatform = fontNamePlatform - ..ref.fontNameScript = fontNameScript - ..ref.fontNameLanguage = fontNameLanguage - ..ref.fontNameLength = fontNameLength; -} - -@ffi.Packed(2) -final class ATSFlatDataFontSpecRawNameDataHeader extends ffi.Struct { - @UInt32() - external int numberOfFlattenedNames; - - @ffi.Array.multi([1]) - external ffi.Array nameDataArray; -} - -typedef ATSFlatDataFontSpeciferType = UInt32; - -@ffi.Packed(2) -final class ATSFlatDataLayoutControlsDataHeader extends ffi.Struct { - @UInt32() - external int numberOfLayoutControls; - - @ffi.Array.multi([1]) - external ffi.Array controlArray; -} - -@ffi.Packed(2) -final class ATSFlatDataLineInfoData extends ffi.Struct { - @UInt32() - external int lineLength; - - @UInt32() - external int numberOfLineControls; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lineLength, - required int numberOfLineControls, - }) => $allocator() - ..ref.lineLength = lineLength - ..ref.numberOfLineControls = numberOfLineControls; -} - -@ffi.Packed(2) -final class ATSFlatDataLineInfoHeader extends ffi.Struct { - @UInt32() - external int numberOfLines; - - @ffi.Array.multi([1]) - external ffi.Array lineInfoArray; -} - -@ffi.Packed(2) -final class ATSFlatDataMainHeaderBlock extends ffi.Struct { - @UInt32() - external int version; - - @UInt32() - external int sizeOfDataBlock; - - @UInt32() - external int offsetToTextLayouts; - - @UInt32() - external int offsetToStyleRuns; - - @UInt32() - external int offsetToStyleList; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int sizeOfDataBlock, - required int offsetToTextLayouts, - required int offsetToStyleRuns, - required int offsetToStyleList, - }) => $allocator() - ..ref.version = version - ..ref.sizeOfDataBlock = sizeOfDataBlock - ..ref.offsetToTextLayouts = offsetToTextLayouts - ..ref.offsetToStyleRuns = offsetToStyleRuns - ..ref.offsetToStyleList = offsetToStyleList; -} - -final class ATSFlatDataStyleListFeatureData extends ffi.Struct { - @ATSUFontFeatureType() - external int theFeatureType; - - @ATSUFontFeatureSelector() - external int theFeatureSelector; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int theFeatureType, - required int theFeatureSelector, - }) => $allocator() - ..ref.theFeatureType = theFeatureType - ..ref.theFeatureSelector = theFeatureSelector; -} - -@ffi.Packed(2) -final class ATSFlatDataStyleListHeader extends ffi.Struct { - @UInt32() - external int numberOfStyles; - - @ffi.Array.multi([1]) - external ffi.Array styleDataArray; -} - -@ffi.Packed(2) -final class ATSFlatDataStyleListStyleDataHeader extends ffi.Struct { - @UInt32() - external int sizeOfStyleInfo; - - @UInt32() - external int numberOfSetAttributes; - - @UInt32() - external int numberOfSetFeatures; - - @UInt32() - external int numberOfSetVariations; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sizeOfStyleInfo, - required int numberOfSetAttributes, - required int numberOfSetFeatures, - required int numberOfSetVariations, - }) => $allocator() - ..ref.sizeOfStyleInfo = sizeOfStyleInfo - ..ref.numberOfSetAttributes = numberOfSetAttributes - ..ref.numberOfSetFeatures = numberOfSetFeatures - ..ref.numberOfSetVariations = numberOfSetVariations; -} - -@ffi.Packed(2) -final class ATSFlatDataStyleListVariationData extends ffi.Struct { - @ATSUFontVariationAxis() - external int theVariationAxis; - - @ATSUFontVariationValue() - external int theVariationValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int theVariationAxis, - required int theVariationValue, - }) => $allocator() - ..ref.theVariationAxis = theVariationAxis - ..ref.theVariationValue = theVariationValue; -} - -@ffi.Packed(2) -final class ATSFlatDataStyleRunDataHeader extends ffi.Struct { - @UInt32() - external int numberOfStyleRuns; - - @ffi.Array.multi([1]) - external ffi.Array styleRunArray; -} - -@ffi.Packed(2) -final class ATSFlatDataTextLayoutDataHeader extends ffi.Struct { - @UInt32() - external int sizeOfLayoutData; - - @UInt32() - external int textLayoutLength; - - @UInt32() - external int offsetToLayoutControls; - - @UInt32() - external int offsetToLineInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sizeOfLayoutData, - required int textLayoutLength, - required int offsetToLayoutControls, - required int offsetToLineInfo, - }) => $allocator() - ..ref.sizeOfLayoutData = sizeOfLayoutData - ..ref.textLayoutLength = textLayoutLength - ..ref.offsetToLayoutControls = offsetToLayoutControls - ..ref.offsetToLineInfo = offsetToLineInfo; -} - -@ffi.Packed(2) -final class ATSFlatDataTextLayoutHeader extends ffi.Struct { - @UInt32() - external int numFlattenedTextLayouts; - - @ffi.Array.multi([1]) - external ffi.Array flattenedTextLayouts; -} - -typedef ATSFontApplierFunction = - ffi.Pointer>; -typedef ATSFontApplierFunctionFunction = - OSStatus Function(ATSFontRef iFont, ffi.Pointer iRefCon); -typedef DartATSFontApplierFunctionFunction = - DartSInt32 Function(DartUInt32 iFont, ffi.Pointer iRefCon); -typedef ATSFontAutoActivationSetting = UInt32; -typedef ATSFontContainerRef = UInt32; -typedef ATSFontContext = UInt32; -typedef ATSFontFamilyApplierFunction = - ffi.Pointer>; -typedef ATSFontFamilyApplierFunctionFunction = - OSStatus Function(ATSFontFamilyRef iFamily, ffi.Pointer iRefCon); -typedef DartATSFontFamilyApplierFunctionFunction = - DartSInt32 Function(DartUInt32 iFamily, ffi.Pointer iRefCon); -typedef ATSFontFamilyIterator = ffi.Pointer; - -final class ATSFontFamilyIterator_ extends ffi.Opaque {} - -typedef ATSFontFamilyRef = UInt32; - -@ffi.Packed(2) -final class ATSFontFilter extends ffi.Struct { - @UInt32() - external int version; - - @ffi.UnsignedInt() - external int filterSelectorAsInt; - - ATSFontFilterSelector get filterSelector => - ATSFontFilterSelector.fromValue(filterSelectorAsInt); - set filterSelector(ATSFontFilterSelector value) => - filterSelectorAsInt = value.value; - - external UnnamedUnion$6 filter; -} - -enum ATSFontFilterSelector { - kATSFontFilterSelectorUnspecified(0), - kATSFontFilterSelectorGeneration(3), - kATSFontFilterSelectorFontFamily(7), - kATSFontFilterSelectorFontFamilyApplierFunction(8), - kATSFontFilterSelectorFontApplierFunction(9), - kATSFileReferenceFilterSelector(10); - - final int value; - const ATSFontFilterSelector(this.value); - - static ATSFontFilterSelector fromValue(int value) => switch (value) { - 0 => kATSFontFilterSelectorUnspecified, - 3 => kATSFontFilterSelectorGeneration, - 7 => kATSFontFilterSelectorFontFamily, - 8 => kATSFontFilterSelectorFontFamilyApplierFunction, - 9 => kATSFontFilterSelectorFontApplierFunction, - 10 => kATSFileReferenceFilterSelector, - _ => throw ArgumentError('Unknown value for ATSFontFilterSelector: $value'), - }; -} - -typedef ATSFontFormat = UInt32; -typedef ATSFontIterator = ffi.Pointer; - -final class ATSFontIterator_ extends ffi.Opaque {} - -@ffi.Packed(2) -final class ATSFontMetrics extends ffi.Struct { - @UInt32() - external int version; - - @CGFloat() - external double ascent; - - @CGFloat() - external double descent; - - @CGFloat() - external double leading; - - @CGFloat() - external double avgAdvanceWidth; - - @CGFloat() - external double maxAdvanceWidth; - - @CGFloat() - external double minLeftSideBearing; - - @CGFloat() - external double minRightSideBearing; - - @CGFloat() - external double stemWidth; - - @CGFloat() - external double stemHeight; - - @CGFloat() - external double capHeight; - - @CGFloat() - external double xHeight; - - @CGFloat() - external double italicAngle; - - @CGFloat() - external double underlinePosition; - - @CGFloat() - external double underlineThickness; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required double ascent, - required double descent, - required double leading, - required double avgAdvanceWidth, - required double maxAdvanceWidth, - required double minLeftSideBearing, - required double minRightSideBearing, - required double stemWidth, - required double stemHeight, - required double capHeight, - required double xHeight, - required double italicAngle, - required double underlinePosition, - required double underlineThickness, - }) => $allocator() - ..ref.version = version - ..ref.ascent = ascent - ..ref.descent = descent - ..ref.leading = leading - ..ref.avgAdvanceWidth = avgAdvanceWidth - ..ref.maxAdvanceWidth = maxAdvanceWidth - ..ref.minLeftSideBearing = minLeftSideBearing - ..ref.minRightSideBearing = minRightSideBearing - ..ref.stemWidth = stemWidth - ..ref.stemHeight = stemHeight - ..ref.capHeight = capHeight - ..ref.xHeight = xHeight - ..ref.italicAngle = italicAngle - ..ref.underlinePosition = underlinePosition - ..ref.underlineThickness = underlineThickness; -} - -typedef ATSFontNotificationInfoRef = ffi.Pointer; - -final class ATSFontNotificationInfoRef_ extends ffi.Opaque {} - -typedef ATSFontNotificationRef = ffi.Pointer; - -final class ATSFontNotificationRef_ extends ffi.Opaque {} - -enum ATSFontNotifyAction { - kATSFontNotifyActionFontsChanged(1), - kATSFontNotifyActionDirectoriesChanged(2); - - final int value; - const ATSFontNotifyAction(this.value); - - static ATSFontNotifyAction fromValue(int value) => switch (value) { - 1 => kATSFontNotifyActionFontsChanged, - 2 => kATSFontNotifyActionDirectoriesChanged, - _ => throw ArgumentError('Unknown value for ATSFontNotifyAction: $value'), - }; -} - -enum ATSFontNotifyOption { - kATSFontNotifyOptionDefault(0), - kATSFontNotifyOptionReceiveWhileSuspended(1); - - final int value; - const ATSFontNotifyOption(this.value); - - static ATSFontNotifyOption fromValue(int value) => switch (value) { - 0 => kATSFontNotifyOptionDefault, - 1 => kATSFontNotifyOptionReceiveWhileSuspended, - _ => throw ArgumentError('Unknown value for ATSFontNotifyOption: $value'), - }; -} - -typedef ATSFontQueryCallback = - ffi.Pointer>; -typedef ATSFontQueryCallbackFunction = - CFPropertyListRef Function( - ffi.UnsignedInt msgid, - CFPropertyListRef data, - ffi.Pointer refCon, - ); -typedef DartATSFontQueryCallbackFunction = - CFPropertyListRef Function( - ATSFontQueryMessageID msgid, - CFPropertyListRef data, - ffi.Pointer refCon, - ); - -enum ATSFontQueryMessageID { - kATSQueryActivateFontMessage(1635021665); - - final int value; - const ATSFontQueryMessageID(this.value); - - static ATSFontQueryMessageID fromValue(int value) => switch (value) { - 1635021665 => kATSQueryActivateFontMessage, - _ => throw ArgumentError('Unknown value for ATSFontQueryMessageID: $value'), - }; -} - -@ffi.Packed(2) -final class ATSFontQuerySourceContext extends ffi.Struct { - @UInt32() - external int version; - - external ffi.Pointer refCon; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer refCon, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - }) => $allocator() - ..ref.version = version - ..ref.refCon = refCon - ..ref.retain = retain - ..ref.release = release; -} - -typedef ATSFontRef = UInt32; -typedef ATSFontSize = CGFloat; -typedef ATSGeneration = UInt32; - -@ffi.Packed(2) -final class ATSGlyphIdealMetrics extends ffi.Struct { - external ATSPoint advance; - - external ATSPoint sideBearing; - - external ATSPoint otherSideBearing; -} - -typedef ATSGlyphInfoFlags = UInt32; -typedef ATSGlyphRef = UInt16; - -@ffi.Packed(2) -final class ATSGlyphScreenMetrics extends ffi.Struct { - external ATSPoint deviceAdvance; - - external ATSPoint topLeft; - - @UInt32() - external int height; - - @UInt32() - external int width; - - external ATSPoint sideBearing; - - external ATSPoint otherSideBearing; -} - -@ffi.Packed(2) -final class ATSJustWidthDeltaEntryOverride extends ffi.Struct { - @Fixed() - external int beforeGrowLimit; - - @Fixed() - external int beforeShrinkLimit; - - @Fixed() - external int afterGrowLimit; - - @Fixed() - external int afterShrinkLimit; - - @JustificationFlags() - external int growFlags; - - @JustificationFlags() - external int shrinkFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int beforeGrowLimit, - required int beforeShrinkLimit, - required int afterGrowLimit, - required int afterShrinkLimit, - required int growFlags, - required int shrinkFlags, - }) => $allocator() - ..ref.beforeGrowLimit = beforeGrowLimit - ..ref.beforeShrinkLimit = beforeShrinkLimit - ..ref.afterGrowLimit = afterGrowLimit - ..ref.afterShrinkLimit = afterShrinkLimit - ..ref.growFlags = growFlags - ..ref.shrinkFlags = shrinkFlags; -} - -@ffi.Packed(2) -final class ATSLayoutRecord extends ffi.Struct { - @ATSGlyphRef() - external int glyphID; - - @ATSGlyphInfoFlags() - external int flags; - - @ByteCount() - external int originalOffset; - - @Fixed() - external int realPos; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int glyphID, - required int flags, - required int originalOffset, - required int realPos, - }) => $allocator() - ..ref.glyphID = glyphID - ..ref.flags = flags - ..ref.originalOffset = originalOffset - ..ref.realPos = realPos; -} - -typedef ATSLineLayoutOptions = UInt32; -typedef ATSNotificationCallback = - ffi.Pointer>; -typedef ATSNotificationCallbackFunction = - ffi.Void Function( - ATSFontNotificationInfoRef info, - ffi.Pointer refCon, - ); -typedef DartATSNotificationCallbackFunction = - void Function( - ATSFontNotificationInfoRef info, - ffi.Pointer refCon, - ); -typedef ATSOptionFlags = OptionBits; -typedef ATSPoint = objc.CGPoint; -typedef ATSQuadraticClosePathProcPtr = - ffi.Pointer>; -typedef ATSQuadraticClosePathProcPtrFunction = - OSStatus Function(ffi.Pointer callBackDataPtr); -typedef DartATSQuadraticClosePathProcPtrFunction = - DartSInt32 Function(ffi.Pointer callBackDataPtr); -typedef ATSQuadraticClosePathUPP = ATSQuadraticClosePathProcPtr; -typedef ATSQuadraticCurveProcPtr = - ffi.Pointer>; -typedef ATSQuadraticCurveProcPtrFunction = - OSStatus Function( - ffi.Pointer pt1, - ffi.Pointer controlPt, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSQuadraticCurveProcPtrFunction = - DartSInt32 Function( - ffi.Pointer pt1, - ffi.Pointer controlPt, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef ATSQuadraticCurveUPP = ATSQuadraticCurveProcPtr; -typedef ATSQuadraticLineProcPtr = - ffi.Pointer>; -typedef ATSQuadraticLineProcPtrFunction = - OSStatus Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSQuadraticLineProcPtrFunction = - DartSInt32 Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef ATSQuadraticLineUPP = ATSQuadraticLineProcPtr; -typedef ATSQuadraticNewPathProcPtr = - ffi.Pointer>; -typedef ATSQuadraticNewPathProcPtrFunction = - OSStatus Function(ffi.Pointer callBackDataPtr); -typedef DartATSQuadraticNewPathProcPtrFunction = - DartSInt32 Function(ffi.Pointer callBackDataPtr); -typedef ATSQuadraticNewPathUPP = ATSQuadraticNewPathProcPtr; -typedef ATSStyleRenderingOptions = UInt32; - -final class ATSTrapezoid extends ffi.Struct { - external FixedPoint upperLeft; - - external FixedPoint upperRight; - - external FixedPoint lowerRight; - - external FixedPoint lowerLeft; -} - -@ffi.Packed(2) -final class ATSUAttributeInfo extends ffi.Struct { - @ATSUAttributeTag() - external int fTag; - - @ByteCount() - external int fValueSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fTag, - required int fValueSize, - }) => $allocator() - ..ref.fTag = fTag - ..ref.fValueSize = fValueSize; -} - -typedef ATSUAttributeTag = UInt32; -typedef ATSUAttributeValuePtr = ffi.Pointer; -typedef ATSUBackgroundColor = ATSURGBAlphaColor; - -final class ATSUBackgroundData extends ffi.Union { - external ATSUBackgroundColor backgroundColor; - - external RedrawBackgroundUPP backgroundUPP; -} - -typedef ATSUBackgroundDataType = UInt32; - -@ffi.Packed(2) -final class ATSUCaret extends ffi.Struct { - @Fixed() - external int fX; - - @Fixed() - external int fY; - - @Fixed() - external int fDeltaX; - - @Fixed() - external int fDeltaY; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fX, - required int fY, - required int fDeltaX, - required int fDeltaY, - }) => $allocator() - ..ref.fX = fX - ..ref.fY = fY - ..ref.fDeltaX = fDeltaX - ..ref.fDeltaY = fDeltaY; -} - -typedef ATSUCursorMovementType = UInt16; - -@ffi.Packed(2) -final class ATSUCurvePath extends ffi.Struct { - @UInt32() - external int vectors; - - @ffi.Array.multi([1]) - external ffi.Array controlBits; - - @ffi.Array.multi([1]) - external ffi.Array vector; -} - -@ffi.Packed(2) -final class ATSUCurvePaths extends ffi.Struct { - @UInt32() - external int contours; - - @ffi.Array.multi([1]) - external ffi.Array contour; -} - -typedef ATSUDirectDataSelector = UInt32; -typedef ATSUFlattenStyleRunOptions = UInt32; -typedef ATSUFlattenedDataStreamFormat = UInt32; -typedef ATSUFontFallbackMethod = UInt16; -typedef ATSUFontFallbacks = ffi.Pointer; -typedef ATSUFontFeatureSelector = UInt16; -typedef ATSUFontFeatureType = UInt16; -typedef ATSUFontID = FMFont; -typedef ATSUFontVariationAxis = FourCharCode; -typedef ATSUFontVariationValue = Fixed; - -@ffi.Packed(2) -final class ATSUGlyphInfo extends ffi.Struct { - @GlyphID() - external int glyphID; - - @UInt16() - external int reserved; - - @UInt32() - external int layoutFlags; - - @UniCharArrayOffset() - external int charIndex; - - external ATSUStyle style; - - @Float32() - external double deltaY; - - @Float32() - external double idealX; - - @SInt16() - external int screenX; - - @SInt16() - external int caretX; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int glyphID, - required int reserved, - required int layoutFlags, - required int charIndex, - required ATSUStyle style, - required double deltaY, - required double idealX, - required int screenX, - required int caretX, - }) => $allocator() - ..ref.glyphID = glyphID - ..ref.reserved = reserved - ..ref.layoutFlags = layoutFlags - ..ref.charIndex = charIndex - ..ref.style = style - ..ref.deltaY = deltaY - ..ref.idealX = idealX - ..ref.screenX = screenX - ..ref.caretX = caretX; -} - -@ffi.Packed(2) -final class ATSUGlyphInfoArray extends ffi.Struct { - external ATSUTextLayout layout; - - @ItemCount() - external int numGlyphs; - - @ffi.Array.multi([1]) - external ffi.Array glyphs; -} - -final class ATSUGlyphSelector extends ffi.Struct { - @GlyphCollection() - external int collection; - - @GlyphID() - external int glyphID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int collection, - required int glyphID, - }) => $allocator() - ..ref.collection = collection - ..ref.glyphID = glyphID; -} - -typedef ATSUHighlightMethod = UInt32; -typedef ATSULayoutOperationCallbackStatus = UInt32; -typedef ATSULayoutOperationSelector = UInt32; -typedef ATSULineTruncation = UInt32; - -@ffi.Packed(2) -final class ATSURGBAlphaColor extends ffi.Struct { - @ffi.Float() - external double red; - - @ffi.Float() - external double green; - - @ffi.Float() - external double blue; - - @ffi.Float() - external double alpha; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double red, - required double green, - required double blue, - required double alpha, - }) => $allocator() - ..ref.red = red - ..ref.green = green - ..ref.blue = blue - ..ref.alpha = alpha; -} - -typedef ATSUStyle = ffi.Pointer; -typedef ATSUStyleComparison = UInt16; -typedef ATSUStyleLineCountType = UInt16; - -@ffi.Packed(2) -final class ATSUStyleRunInfo extends ffi.Struct { - @UInt32() - external int runLength; - - @UInt32() - external int styleObjectIndex; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int runLength, - required int styleObjectIndex, - }) => $allocator() - ..ref.runLength = runLength - ..ref.styleObjectIndex = styleObjectIndex; -} - -typedef ATSUStyleSettingRef = ffi.Pointer; - -@ffi.Packed(2) -final class ATSUTab extends ffi.Struct { - @ATSUTextMeasurement() - external int tabPosition; - - @ATSUTabType() - external int tabType; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tabPosition, - required int tabType, - }) => $allocator() - ..ref.tabPosition = tabPosition - ..ref.tabType = tabType; -} - -typedef ATSUTabType = UInt16; -typedef ATSUTextLayout = ffi.Pointer; -typedef ATSUTextMeasurement = Fixed; -typedef ATSUUnFlattenStyleRunOptions = UInt32; - -@ffi.Packed(2) -final class ATSUUnhighlightData extends ffi.Struct { - @ATSUBackgroundDataType() - external int dataType; - - external ATSUBackgroundData unhighlightData; -} - -typedef ATSUVerticalCharacterType = UInt16; - -final class AVAudio3DAngularOrientation extends ffi.Struct { - @ffi.Float() - external double yaw; - - @ffi.Float() - external double pitch; - - @ffi.Float() - external double roll; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double yaw, - required double pitch, - required double roll, - }) => $allocator() - ..ref.yaw = yaw - ..ref.pitch = pitch - ..ref.roll = roll; -} - -final class AVAudio3DPoint extends ffi.Struct { - @ffi.Float() - external double x; - - @ffi.Float() - external double y; - - @ffi.Float() - external double z; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double x, - required double y, - required double z, - }) => $allocator() - ..ref.x = x - ..ref.y = y - ..ref.z = z; -} - -typedef AVAudio3DVector = AVAudio3DPoint; - -final class AVAudio3DVectorOrientation extends ffi.Struct { - external AVAudio3DVector forward; - - external AVAudio3DVector up; -} - -typedef AVAudioChannelCount = ffi.Uint32; -typedef DartAVAudioChannelCount = int; - -enum AVAudioCommonFormat { - AVAudioOtherFormat(0), - AVAudioPCMFormatFloat32(1), - AVAudioPCMFormatFloat64(2), - AVAudioPCMFormatInt16(3), - AVAudioPCMFormatInt32(4); - - final int value; - const AVAudioCommonFormat(this.value); - - static AVAudioCommonFormat fromValue(int value) => switch (value) { - 0 => AVAudioOtherFormat, - 1 => AVAudioPCMFormatFloat32, - 2 => AVAudioPCMFormatFloat64, - 3 => AVAudioPCMFormatInt16, - 4 => AVAudioPCMFormatInt32, - _ => throw ArgumentError('Unknown value for AVAudioCommonFormat: $value'), - }; -} - -enum AVAudioContentSource { - AVAudioContentSource_Unspecified(-1), - AVAudioContentSource_Reserved(0), - AVAudioContentSource_AppleCapture_Traditional(1), - AVAudioContentSource_AppleCapture_Spatial(2), - AVAudioContentSource_AppleCapture_Spatial_Enhanced(3), - AVAudioContentSource_AppleMusic_Traditional(4), - AVAudioContentSource_AppleMusic_Spatial(5), - AVAudioContentSource_AppleAV_Traditional_Offline(6), - AVAudioContentSource_AppleAV_Spatial_Offline(7), - AVAudioContentSource_AppleAV_Traditional_Live(8), - AVAudioContentSource_AppleAV_Spatial_Live(9), - AVAudioContentSource_ApplePassthrough(10), - AVAudioContentSource_Capture_Traditional(33), - AVAudioContentSource_Capture_Spatial(34), - AVAudioContentSource_Capture_Spatial_Enhanced(35), - AVAudioContentSource_Music_Traditional(36), - AVAudioContentSource_Music_Spatial(37), - AVAudioContentSource_AV_Traditional_Offline(38), - AVAudioContentSource_AV_Spatial_Offline(39), - AVAudioContentSource_AV_Traditional_Live(40), - AVAudioContentSource_AV_Spatial_Live(41), - AVAudioContentSource_Passthrough(42); - - final int value; - const AVAudioContentSource(this.value); - - static AVAudioContentSource fromValue(int value) => switch (value) { - -1 => AVAudioContentSource_Unspecified, - 0 => AVAudioContentSource_Reserved, - 1 => AVAudioContentSource_AppleCapture_Traditional, - 2 => AVAudioContentSource_AppleCapture_Spatial, - 3 => AVAudioContentSource_AppleCapture_Spatial_Enhanced, - 4 => AVAudioContentSource_AppleMusic_Traditional, - 5 => AVAudioContentSource_AppleMusic_Spatial, - 6 => AVAudioContentSource_AppleAV_Traditional_Offline, - 7 => AVAudioContentSource_AppleAV_Spatial_Offline, - 8 => AVAudioContentSource_AppleAV_Traditional_Live, - 9 => AVAudioContentSource_AppleAV_Spatial_Live, - 10 => AVAudioContentSource_ApplePassthrough, - 33 => AVAudioContentSource_Capture_Traditional, - 34 => AVAudioContentSource_Capture_Spatial, - 35 => AVAudioContentSource_Capture_Spatial_Enhanced, - 36 => AVAudioContentSource_Music_Traditional, - 37 => AVAudioContentSource_Music_Spatial, - 38 => AVAudioContentSource_AV_Traditional_Offline, - 39 => AVAudioContentSource_AV_Spatial_Offline, - 40 => AVAudioContentSource_AV_Traditional_Live, - 41 => AVAudioContentSource_AV_Spatial_Live, - 42 => AVAudioContentSource_Passthrough, - _ => throw ArgumentError('Unknown value for AVAudioContentSource: $value'), - }; -} - -enum AVAudioDynamicRangeControlConfiguration { - AVAudioDynamicRangeControlConfiguration_None(0), - AVAudioDynamicRangeControlConfiguration_Music(1), - AVAudioDynamicRangeControlConfiguration_Speech(2), - AVAudioDynamicRangeControlConfiguration_Movie(3), - AVAudioDynamicRangeControlConfiguration_Capture(4); - - final int value; - const AVAudioDynamicRangeControlConfiguration(this.value); - - static AVAudioDynamicRangeControlConfiguration fromValue(int value) => - switch (value) { - 0 => AVAudioDynamicRangeControlConfiguration_None, - 1 => AVAudioDynamicRangeControlConfiguration_Music, - 2 => AVAudioDynamicRangeControlConfiguration_Speech, - 3 => AVAudioDynamicRangeControlConfiguration_Movie, - 4 => AVAudioDynamicRangeControlConfiguration_Capture, - _ => throw ArgumentError( - 'Unknown value for AVAudioDynamicRangeControlConfiguration: $value', - ), - }; -} - -/// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include -/// AVAudioFormat in your config's objc-interfaces list. -/// -/// AVAudioFormat -extension type AVAudioFormat._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [AVAudioFormat] that points to the same underlying object as [other]. - AVAudioFormat.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioFormat', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } - - /// Constructs a [AVAudioFormat] that wraps the given raw object pointer. - AVAudioFormat.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioFormat', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } -} - -typedef AVAudioFrameCount = ffi.Uint32; -typedef DartAVAudioFrameCount = int; -typedef AVAudioFramePosition = ffi.Int64; -typedef DartAVAudioFramePosition = int; -typedef AVAudioInteger = ffi.Long; -typedef DartAVAudioInteger = int; -typedef AVAudioNodeBus = NSUInteger; -typedef AVAudioNodeCompletionHandler = ffi.Pointer; -typedef DartAVAudioNodeCompletionHandler = objc.ObjCBlock; -typedef AVAudioPacketCount = ffi.Uint32; -typedef DartAVAudioPacketCount = int; - -/// AVAudioPlayer -extension type AVAudioPlayer._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioPlayer] that points to the same underlying object as [other]. - AVAudioPlayer.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioPlayer', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - assert(isA(object$)); - } - - /// Constructs a [AVAudioPlayer] that wraps the given raw object pointer. - AVAudioPlayer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioPlayer', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [AVAudioPlayer]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_AVAudioPlayer, - ); - - /// alloc - static AVAudioPlayer alloc() { - final $ret = _objc_msgSend_zldla2(_class_AVAudioPlayer, _sel_alloc); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// allocWithZone: - static AVAudioPlayer allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( - _class_AVAudioPlayer, - _sel_allocWithZone_, - zone, - ); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// new - static AVAudioPlayer new$() { - final $ret = _objc_msgSend_zldla2(_class_AVAudioPlayer, _sel_new); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// Returns a new instance of AVAudioPlayer constructed with the default `new` method. - AVAudioPlayer() : this.as(new$().object$); -} - -extension AVAudioPlayer$Methods on AVAudioPlayer { - /// averagePowerForChannel: - double averagePowerForChannel(DartNSUInteger channelNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.averagePowerForChannel:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_16dno01Fpret( - _$$ref.pointer, - _sel_averagePowerForChannel_, - channelNumber, - ) - : _objc_msgSend_16dno01( - _$$ref.pointer, - _sel_averagePowerForChannel_, - channelNumber, - ); - } - - /// channelAssignments - objc.NSArray? get channelAssignments { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.channelAssignments', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_channelAssignments); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// currentDevice - objc.NSString? get currentDevice { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.currentDevice', - iOS: (true, null), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_currentDevice); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// currentTime - DartNSTimeInterval get currentTime { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.currentTime', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_currentTime) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_currentTime); - } - - /// data - objc.NSData? get data { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.data', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_data); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// delegate - AVAudioPlayerDelegate? get delegate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.delegate', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_delegate); - return $ret.address == 0 - ? null - : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); - } - - /// deviceCurrentTime - DartNSTimeInterval get deviceCurrentTime { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.deviceCurrentTime', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_deviceCurrentTime) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_deviceCurrentTime); - } - - /// duration - DartNSTimeInterval get duration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.duration', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_duration) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_duration); - } - - /// enableRate - bool get enableRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.enableRate', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_enableRate); - } - - /// format - AVAudioFormat get format { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.format', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_format); - return AVAudioFormat.fromPointer($ret, retain: true, release: true); - } - - /// init - AVAudioPlayer init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL:error: - AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithContentsOfURL:error:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1a2vk5h( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithContentsOfURL:fileTypeHint:error: - AVAudioPlayer? initWithContentsOfURL$1( - objc.NSURL url, { - objc.NSString? fileTypeHint, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = fileTypeHint?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithContentsOfURL:fileTypeHint:error:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1rz4muk( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_fileTypeHint_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithData:error: - AVAudioPlayer? initWithData(objc.NSData data) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithData:error:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1a2vk5h( - _$$ref.retainAndReturnPointer(), - _sel_initWithData_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithData:fileTypeHint:error: - AVAudioPlayer? initWithData$1( - objc.NSData data, { - objc.NSString? fileTypeHint, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - final _$$ref$2 = fileTypeHint?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithData:fileTypeHint:error:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1rz4muk( - _$$ref.retainAndReturnPointer(), - _sel_initWithData_fileTypeHint_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// intendedSpatialExperience - CASpatialAudioExperience get intendedSpatialExperience { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.intendedSpatialExperience', - iOS: (true, null), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_intendedSpatialExperience, - ); - return CASpatialAudioExperience.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// isMeteringEnabled - bool get isMeteringEnabled { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.isMeteringEnabled', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isMeteringEnabled); - } - - /// isPlaying - bool get isPlaying { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.isPlaying', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isPlaying); - } - - /// numberOfChannels - DartNSUInteger get numberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.numberOfChannels', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_numberOfChannels); - } - - /// numberOfLoops - DartNSInteger get numberOfLoops { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.numberOfLoops', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_numberOfLoops); - } - - /// pan - double get pan { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.pan', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_pan) - : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_pan); - } - - /// pause - void pause$1() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.pause', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_pause); - } - - /// peakPowerForChannel: - double peakPowerForChannel(DartNSUInteger channelNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.peakPowerForChannel:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_16dno01Fpret( - _$$ref.pointer, - _sel_peakPowerForChannel_, - channelNumber, - ) - : _objc_msgSend_16dno01( - _$$ref.pointer, - _sel_peakPowerForChannel_, - channelNumber, - ); - } - - /// play - bool play() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.play', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_play); - } - - /// playAtTime: - bool playAtTime(DartNSTimeInterval time$1) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.playAtTime:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_6r70rc(_$$ref.pointer, _sel_playAtTime_, time$1); - } - - /// prepareToPlay - bool prepareToPlay() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.prepareToPlay', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_prepareToPlay); - } - - /// rate - double get rate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.rate', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_rate) - : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_rate); - } - - /// setChannelAssignments: - set channelAssignments(objc.NSArray? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setChannelAssignments:', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setChannelAssignments_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setCurrentDevice: - set currentDevice(objc.NSString? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setCurrentDevice:', - iOS: (true, null), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setCurrentDevice_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setCurrentTime: - set currentTime(DartNSTimeInterval value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setCurrentTime:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_q6vpml(_$$ref.pointer, _sel_setCurrentTime_, value); - } - - /// setDelegate: - set delegate(AVAudioPlayerDelegate? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setDelegate:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setDelegate_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setEnableRate: - set enableRate(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setEnableRate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_1s4gila(_$$ref.pointer, _sel_setEnableRate_, value); - } - - /// setIntendedSpatialExperience: - set intendedSpatialExperience(CASpatialAudioExperience value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setIntendedSpatialExperience:', - iOS: (true, null), - macOS: (true, null), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setIntendedSpatialExperience_, - _$$ref$1.pointer, - ); - } - - /// setMeteringEnabled: - set isMeteringEnabled(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setMeteringEnabled:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1s4gila(_$$ref.pointer, _sel_setMeteringEnabled_, value); - } - - /// setNumberOfLoops: - set numberOfLoops(DartNSInteger value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setNumberOfLoops:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1whyqxt(_$$ref.pointer, _sel_setNumberOfLoops_, value); - } - - /// setPan: - set pan(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setPan:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1gv17gn(_$$ref.pointer, _sel_setPan_, value); - } - - /// setRate: - set rate(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setRate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_1gv17gn(_$$ref.pointer, _sel_setRate_, value); - } - - /// setVolume: - set volume(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setVolume:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1gv17gn(_$$ref.pointer, _sel_setVolume_, value); - } - - /// setVolume:fadeDuration: - void setVolume(double volume, {required DartNSTimeInterval fadeDuration}) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setVolume:fadeDuration:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - _objc_msgSend_1clfj3o( - _$$ref.pointer, - _sel_setVolume_fadeDuration_, - volume, - fadeDuration, - ); - } - - /// settings - objc.NSDictionary get settings { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.settings', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_settings); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// stop - void stop() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.stop', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_stop); - } - - /// updateMeters - void updateMeters() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.updateMeters', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_updateMeters); - } - - /// url - objc.NSURL? get url { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.url', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_url); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// volume - double get volume { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.volume', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_volume) - : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_volume); - } -} - -/// AVAudioPlayerDelegate -extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [AVAudioPlayerDelegate] that points to the same underlying object as [other]. - AVAudioPlayerDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [AVAudioPlayerDelegate] that wraps the given raw object pointer. - AVAudioPlayerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [AVAudioPlayerDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_AVAudioPlayerDelegate, - ); - } -} - -extension AVAudioPlayerDelegate$Methods on AVAudioPlayerDelegate { - /// audioPlayerDecodeErrorDidOccur:error: - void audioPlayerDecodeErrorDidOccur( - AVAudioPlayer player, { - objc.NSError? error, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = player.ref; - final _$$ref$2 = error?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_audioPlayerDecodeErrorDidOccur_error_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioPlayerDelegate', - 'audioPlayerDecodeErrorDidOccur:error:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_audioPlayerDecodeErrorDidOccur_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// audioPlayerDidFinishPlaying:successfully: - void audioPlayerDidFinishPlaying( - AVAudioPlayer player, { - required bool successfully, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = player.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_audioPlayerDidFinishPlaying_successfully_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioPlayerDelegate', - 'audioPlayerDidFinishPlaying:successfully:', - ); - } - _objc_msgSend_3lg6qb( - _$$ref.pointer, - _sel_audioPlayerDidFinishPlaying_successfully_, - _$$ref$1.pointer, - successfully, - ); - } -} - -interface class AVAudioPlayerDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_AVAudioPlayerDelegate.cast()); - - /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioPlayerDelegate implement({ - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioPlayerDelegate', - ); - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implement(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implement(builder, audioPlayerDidFinishPlaying_successfully_); - builder.addProtocol($protocol); - return AVAudioPlayerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implement(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implement(builder, audioPlayerDidFinishPlaying_successfully_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioPlayerDelegate implementAsListener({ - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioPlayerDelegate', - ); - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implementAsListener(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implementAsListener( - builder, - audioPlayerDidFinishPlaying_successfully_, - ); - builder.addProtocol($protocol); - return AVAudioPlayerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implementAsListener(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implementAsListener( - builder, - audioPlayerDidFinishPlaying_successfully_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioPlayerDelegate implementAsBlocking({ - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioPlayerDelegate', - ); - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implementAsBlocking(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implementAsBlocking( - builder, - audioPlayerDidFinishPlaying_successfully_, - ); - builder.addProtocol($protocol); - return AVAudioPlayerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implementAsBlocking(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implementAsBlocking( - builder, - audioPlayerDidFinishPlaying_successfully_, - ); - builder.addProtocol($protocol); - } - - /// audioPlayerDecodeErrorDidOccur:error: - static final audioPlayerDecodeErrorDidOccur_error_ = - objc.ObjCProtocolListenableMethod< - void Function(AVAudioPlayer, objc.NSError?) - >( - _protocol_AVAudioPlayerDelegate, - _sel_audioPlayerDecodeErrorDidOccur_error_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioPlayerDelegate, - _sel_audioPlayerDecodeErrorDidOccur_error_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(AVAudioPlayer, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.fromFunction( - ( - ffi.Pointer _, - AVAudioPlayer arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(AVAudioPlayer, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.listener( - ( - ffi.Pointer _, - AVAudioPlayer arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(AVAudioPlayer, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.blocking( - ( - ffi.Pointer _, - AVAudioPlayer arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// audioPlayerDidFinishPlaying:successfully: - static final audioPlayerDidFinishPlaying_successfully_ = - objc.ObjCProtocolListenableMethod( - _protocol_AVAudioPlayerDelegate, - _sel_audioPlayerDidFinishPlaying_successfully_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_1e0wztw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioPlayerDelegate, - _sel_audioPlayerDidFinishPlaying_successfully_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(AVAudioPlayer, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.fromFunction( - (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => - func(arg1, arg2), - ), - (void Function(AVAudioPlayer, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.listener( - (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => - func(arg1, arg2), - ), - (void Function(AVAudioPlayer, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.blocking( - (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => - func(arg1, arg2), - ), - ); -} - -enum AVAudioQuality { - AVAudioQualityMin(0), - AVAudioQualityLow(32), - AVAudioQualityMedium(64), - AVAudioQualityHigh(96), - AVAudioQualityMax(127); - - final int value; - const AVAudioQuality(this.value); - - static AVAudioQuality fromValue(int value) => switch (value) { - 0 => AVAudioQualityMin, - 32 => AVAudioQualityLow, - 64 => AVAudioQualityMedium, - 96 => AVAudioQualityHigh, - 127 => AVAudioQualityMax, - _ => throw ArgumentError('Unknown value for AVAudioQuality: $value'), - }; -} - -/// WARNING: AVAudioSession is a stub. To generate bindings for this class, include -/// AVAudioSession in your config's objc-interfaces list. -/// -/// AVAudioSession -extension type AVAudioSession._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioSession] that points to the same underlying object as [other]. - AVAudioSession.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioSession', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - } - - /// Constructs a [AVAudioSession] that wraps the given raw object pointer. - AVAudioSession.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioSession', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - } -} - -sealed class AVAudioSessionActivationOptions { - static const AVAudioSessionActivationOptionNone = 0; -} - -typedef AVAudioSessionCategory = ffi.Pointer; -typedef DartAVAudioSessionCategory = objc.NSString; - -sealed class AVAudioSessionCategoryOptions { - static const AVAudioSessionCategoryOptionMixWithOthers = 1; - static const AVAudioSessionCategoryOptionDuckOthers = 2; - static const AVAudioSessionCategoryOptionAllowBluetooth = 4; - static const AVAudioSessionCategoryOptionAllowBluetoothHFP = 4; - static const AVAudioSessionCategoryOptionDefaultToSpeaker = 8; - static const AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers = - 17; - static const AVAudioSessionCategoryOptionAllowBluetoothA2DP = 32; - static const AVAudioSessionCategoryOptionAllowAirPlay = 64; - static const AVAudioSessionCategoryOptionOverrideMutedMicrophoneInterruption = - 128; - static const AVAudioSessionCategoryOptionBluetoothHighQualityRecording = - 524288; -} - -/// WARNING: AVAudioSessionDataSourceDescription is a stub. To generate bindings for this class, include -/// AVAudioSessionDataSourceDescription in your config's objc-interfaces list. -/// -/// AVAudioSessionDataSourceDescription -extension type AVAudioSessionDataSourceDescription._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioSessionDataSourceDescription] that points to the same underlying object as [other]. - AVAudioSessionDataSourceDescription.as(objc.ObjCObject other) - : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioSessionDataSourceDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } - - /// Constructs a [AVAudioSessionDataSourceDescription] that wraps the given raw object pointer. - AVAudioSessionDataSourceDescription.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioSessionDataSourceDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } -} - -/// AVAudioSessionDelegate -@Deprecated('No longer supported') -extension type AVAudioSessionDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [AVAudioSessionDelegate] that points to the same underlying object as [other]. - AVAudioSessionDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [AVAudioSessionDelegate] that wraps the given raw object pointer. - AVAudioSessionDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [AVAudioSessionDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_AVAudioSessionDelegate, - ); - } -} - -extension AVAudioSessionDelegate$Methods on AVAudioSessionDelegate { - /// beginInterruption - @Deprecated('No longer supported') - void beginInterruption() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSessionDelegate.beginInterruption', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_beginInterruption)) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioSessionDelegate', - 'beginInterruption', - ); - } - _objc_msgSend_h9i570(_$$ref.pointer, _sel_beginInterruption); - } - - /// endInterruption - @Deprecated('No longer supported') - void endInterruption() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSessionDelegate.endInterruption', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_endInterruption)) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioSessionDelegate', - 'endInterruption', - ); - } - _objc_msgSend_h9i570(_$$ref.pointer, _sel_endInterruption); - } - - /// endInterruptionWithFlags: - void endInterruptionWithFlags(DartNSUInteger flags) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSessionDelegate.endInterruptionWithFlags:', - iOS: (false, (4, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_endInterruptionWithFlags_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioSessionDelegate', - 'endInterruptionWithFlags:', - ); - } - _objc_msgSend_rfcpxf(_$$ref.pointer, _sel_endInterruptionWithFlags_, flags); - } - - /// inputIsAvailableChanged: - @Deprecated('No longer supported') - void inputIsAvailableChanged(bool isInputAvailable) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSessionDelegate.inputIsAvailableChanged:', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_inputIsAvailableChanged_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioSessionDelegate', - 'inputIsAvailableChanged:', - ); - } - _objc_msgSend_1s4gila( - _$$ref.pointer, - _sel_inputIsAvailableChanged_, - isInputAvailable, - ); - } -} - -interface class AVAudioSessionDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_AVAudioSessionDelegate.cast()); - - /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioSessionDelegate implement({ - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioSessionDelegate', - ); - AVAudioSessionDelegate$Builder.beginInterruption.implement( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implement( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_.implement( - builder, - endInterruptionWithFlags_, - ); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implement( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - return AVAudioSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - AVAudioSessionDelegate$Builder.beginInterruption.implement( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implement( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_.implement( - builder, - endInterruptionWithFlags_, - ); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implement( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioSessionDelegate implementAsListener({ - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioSessionDelegate', - ); - AVAudioSessionDelegate$Builder.beginInterruption.implementAsListener( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implementAsListener( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ - .implementAsListener(builder, endInterruptionWithFlags_); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsListener( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - return AVAudioSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - AVAudioSessionDelegate$Builder.beginInterruption.implementAsListener( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implementAsListener( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ - .implementAsListener(builder, endInterruptionWithFlags_); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsListener( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioSessionDelegate implementAsBlocking({ - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioSessionDelegate', - ); - AVAudioSessionDelegate$Builder.beginInterruption.implementAsBlocking( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implementAsBlocking( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ - .implementAsBlocking(builder, endInterruptionWithFlags_); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsBlocking( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - return AVAudioSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - AVAudioSessionDelegate$Builder.beginInterruption.implementAsBlocking( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implementAsBlocking( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ - .implementAsBlocking(builder, endInterruptionWithFlags_); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsBlocking( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - } - - /// beginInterruption - static final beginInterruption = - objc.ObjCProtocolListenableMethod( - _protocol_AVAudioSessionDelegate, - _sel_beginInterruption, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_15is1z3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioSessionDelegate, - _sel_beginInterruption, - isRequired: false, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// endInterruption - static final endInterruption = - objc.ObjCProtocolListenableMethod( - _protocol_AVAudioSessionDelegate, - _sel_endInterruption, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_15is1z3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioSessionDelegate, - _sel_endInterruption, - isRequired: false, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// endInterruptionWithFlags: - static final endInterruptionWithFlags_ = - objc.ObjCProtocolListenableMethod( - _protocol_AVAudioSessionDelegate, - _sel_endInterruptionWithFlags_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >(_1uu024u_protocolTrampoline_1nr9pmw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioSessionDelegate, - _sel_endInterruptionWithFlags_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUInteger.fromFunction( - (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), - ), - (void Function(DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUInteger.listener( - (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), - ), - (void Function(DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUInteger.blocking( - (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), - ), - ); - - /// inputIsAvailableChanged: - static final inputIsAvailableChanged_ = - objc.ObjCProtocolListenableMethod( - _protocol_AVAudioSessionDelegate, - _sel_inputIsAvailableChanged_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_24riuf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioSessionDelegate, - _sel_inputIsAvailableChanged_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(bool) func) => - ObjCBlock_ffiVoid_ffiVoid_bool.fromFunction( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.listener( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.blocking( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - ); -} - -/// AVAudioSessionDeprecated -extension AVAudioSessionDeprecated on AVAudioSession { - /// currentHardwareInputNumberOfChannels - @Deprecated('Deprecated') - DartNSInteger get currentHardwareInputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.currentHardwareInputNumberOfChannels', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_18szuw0( - _$$ref.pointer, - _sel_currentHardwareInputNumberOfChannels, - ); - } - - /// currentHardwareOutputNumberOfChannels - @Deprecated('Deprecated') - DartNSInteger get currentHardwareOutputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.currentHardwareOutputNumberOfChannels', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_18szuw0( - _$$ref.pointer, - _sel_currentHardwareOutputNumberOfChannels, - ); - } - - /// currentHardwareSampleRate - @Deprecated('Deprecated') - double get currentHardwareSampleRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.currentHardwareSampleRate', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret( - _$$ref.pointer, - _sel_currentHardwareSampleRate, - ) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_currentHardwareSampleRate); - } - - /// delegate - @Deprecated('No longer supported') - AVAudioSessionDelegate? get delegate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.delegate', - iOS: (false, (4, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_delegate); - return $ret.address == 0 - ? null - : AVAudioSessionDelegate.fromPointer($ret, retain: true, release: true); - } - - /// inputIsAvailable - @Deprecated('Deprecated') - bool get inputIsAvailable { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputIsAvailable', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_inputIsAvailable); - } - - /// preferredHardwareSampleRate - @Deprecated('Deprecated') - double get preferredHardwareSampleRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredHardwareSampleRate', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret( - _$$ref.pointer, - _sel_preferredHardwareSampleRate, - ) - : _objc_msgSend_9pr6kk( - _$$ref.pointer, - _sel_preferredHardwareSampleRate, - ); - } - - /// setActive:withFlags:error: - @Deprecated('Deprecated') - bool setActive(bool active, {required DartNSInteger withFlags}) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setActive:withFlags:error:', - iOS: (false, (4, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_4lxjho( - _$$ref.pointer, - _sel_setActive_withFlags_error_, - active, - withFlags, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setDelegate: - @Deprecated('No longer supported') - set delegate(AVAudioSessionDelegate? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setDelegate:', - iOS: (false, (4, 0, 0)), - macOS: (true, null), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setDelegate_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setPreferredHardwareSampleRate:error: - @Deprecated('Deprecated') - bool setPreferredHardwareSampleRate(double sampleRate) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredHardwareSampleRate:error:', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1m4vyuw( - _$$ref.pointer, - _sel_setPreferredHardwareSampleRate_error_, - sampleRate, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -enum AVAudioSessionErrorCode { - AVAudioSessionErrorCodeNone(0), - AVAudioSessionErrorCodeMediaServicesFailed(1836282486), - AVAudioSessionErrorCodeIsBusy(560030580), - AVAudioSessionErrorCodeIncompatibleCategory(560161140), - AVAudioSessionErrorCodeCannotInterruptOthers(560557684), - AVAudioSessionErrorCodeMissingEntitlement(1701737535), - AVAudioSessionErrorCodeSiriIsRecording(1936290409), - AVAudioSessionErrorCodeCannotStartPlaying(561015905), - AVAudioSessionErrorCodeCannotStartRecording(561145187), - AVAudioSessionErrorCodeBadParam(-50), - AVAudioSessionErrorCodeInsufficientPriority(561017449), - AVAudioSessionErrorCodeResourceNotAvailable(561145203), - AVAudioSessionErrorCodeUnspecified(2003329396), - AVAudioSessionErrorCodeExpiredSession(561210739), - AVAudioSessionErrorCodeSessionNotActive(1768841571); - - final int value; - const AVAudioSessionErrorCode(this.value); - - static AVAudioSessionErrorCode fromValue(int value) => switch (value) { - 0 => AVAudioSessionErrorCodeNone, - 1836282486 => AVAudioSessionErrorCodeMediaServicesFailed, - 560030580 => AVAudioSessionErrorCodeIsBusy, - 560161140 => AVAudioSessionErrorCodeIncompatibleCategory, - 560557684 => AVAudioSessionErrorCodeCannotInterruptOthers, - 1701737535 => AVAudioSessionErrorCodeMissingEntitlement, - 1936290409 => AVAudioSessionErrorCodeSiriIsRecording, - 561015905 => AVAudioSessionErrorCodeCannotStartPlaying, - 561145187 => AVAudioSessionErrorCodeCannotStartRecording, - -50 => AVAudioSessionErrorCodeBadParam, - 561017449 => AVAudioSessionErrorCodeInsufficientPriority, - 561145203 => AVAudioSessionErrorCodeResourceNotAvailable, - 2003329396 => AVAudioSessionErrorCodeUnspecified, - 561210739 => AVAudioSessionErrorCodeExpiredSession, - 1768841571 => AVAudioSessionErrorCodeSessionNotActive, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionErrorCode: $value', - ), - }; -} - -@Deprecated('Deprecated') -const int AVAudioSessionErrorInsufficientPriority = 561017449; - -/// AVAudioSessionHardwareConfiguration -extension AVAudioSessionHardwareConfiguration on AVAudioSession { - /// IOBufferDuration - DartNSTimeInterval get IOBufferDuration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.IOBufferDuration', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_IOBufferDuration) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_IOBufferDuration); - } - - /// inputDataSource - AVAudioSessionDataSourceDescription? get inputDataSource { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputDataSource', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_inputDataSource); - return $ret.address == 0 - ? null - : AVAudioSessionDataSourceDescription.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// inputDataSources - objc.NSArray? get inputDataSources { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputDataSources', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_inputDataSources); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// inputGain - double get inputGain { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputGain', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_inputGain) - : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_inputGain); - } - - /// inputLatency - DartNSTimeInterval get inputLatency { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputLatency', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_inputLatency) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_inputLatency); - } - - /// inputNumberOfChannels - DartNSInteger get inputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputNumberOfChannels', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_inputNumberOfChannels); - } - - /// inputOrientation - AVAudioStereoOrientation get inputOrientation { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputOrientation', - iOS: (false, (14, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_1uc3xpx(_$$ref.pointer, _sel_inputOrientation); - return AVAudioStereoOrientation.fromValue($ret); - } - - /// isInputAvailable - bool get isInputAvailable { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.isInputAvailable', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isInputAvailable); - } - - /// isInputGainSettable - bool get isInputGainSettable { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.isInputGainSettable', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isInputGainSettable); - } - - /// maximumInputNumberOfChannels - DartNSInteger get maximumInputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.maximumInputNumberOfChannels', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_18szuw0( - _$$ref.pointer, - _sel_maximumInputNumberOfChannels, - ); - } - - /// maximumOutputNumberOfChannels - DartNSInteger get maximumOutputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.maximumOutputNumberOfChannels', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_18szuw0( - _$$ref.pointer, - _sel_maximumOutputNumberOfChannels, - ); - } - - /// outputDataSource - AVAudioSessionDataSourceDescription? get outputDataSource { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.outputDataSource', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_outputDataSource); - return $ret.address == 0 - ? null - : AVAudioSessionDataSourceDescription.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// outputDataSources - objc.NSArray? get outputDataSources { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.outputDataSources', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_outputDataSources); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// outputLatency - DartNSTimeInterval get outputLatency { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.outputLatency', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_outputLatency) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_outputLatency); - } - - /// outputNumberOfChannels - DartNSInteger get outputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.outputNumberOfChannels', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_outputNumberOfChannels); - } - - /// preferredIOBufferDuration - DartNSTimeInterval get preferredIOBufferDuration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredIOBufferDuration', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret( - _$$ref.pointer, - _sel_preferredIOBufferDuration, - ) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_preferredIOBufferDuration); - } - - /// preferredInputNumberOfChannels - DartNSInteger get preferredInputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredInputNumberOfChannels', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_18szuw0( - _$$ref.pointer, - _sel_preferredInputNumberOfChannels, - ); - } - - /// preferredInputOrientation - AVAudioStereoOrientation get preferredInputOrientation { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredInputOrientation', - iOS: (false, (14, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_1uc3xpx( - _$$ref.pointer, - _sel_preferredInputOrientation, - ); - return AVAudioStereoOrientation.fromValue($ret); - } - - /// preferredOutputNumberOfChannels - DartNSInteger get preferredOutputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredOutputNumberOfChannels', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_18szuw0( - _$$ref.pointer, - _sel_preferredOutputNumberOfChannels, - ); - } - - /// preferredSampleRate - double get preferredSampleRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredSampleRate', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_preferredSampleRate) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_preferredSampleRate); - } - - /// sampleRate - double get sampleRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.sampleRate', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_sampleRate) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_sampleRate); - } - - /// setInputDataSource:error: - bool setInputDataSource(AVAudioSessionDataSourceDescription? dataSource) { - final _$$ref = object$.ref; - final _$$ref$1 = dataSource?.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setInputDataSource:error:', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_7agf1a( - _$$ref.pointer, - _sel_setInputDataSource_error_, - _$$ref$1?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setInputGain:error: - bool setInputGain(double gain) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setInputGain:error:', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_6n81l6( - _$$ref.pointer, - _sel_setInputGain_error_, - gain, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setOutputDataSource:error: - bool setOutputDataSource(AVAudioSessionDataSourceDescription? dataSource) { - final _$$ref = object$.ref; - final _$$ref$1 = dataSource?.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setOutputDataSource:error:', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_7agf1a( - _$$ref.pointer, - _sel_setOutputDataSource_error_, - _$$ref$1?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPreferredIOBufferDuration:error: - bool setPreferredIOBufferDuration(DartNSTimeInterval duration) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredIOBufferDuration:error:', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1m4vyuw( - _$$ref.pointer, - _sel_setPreferredIOBufferDuration_error_, - duration, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPreferredInputNumberOfChannels:error: - bool setPreferredInputNumberOfChannels(DartNSInteger count) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredInputNumberOfChannels:error:', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_e67j2c( - _$$ref.pointer, - _sel_setPreferredInputNumberOfChannels_error_, - count, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPreferredInputOrientation:error: - bool setPreferredInputOrientation(AVAudioStereoOrientation orientation) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredInputOrientation:error:', - iOS: (false, (14, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_ijjgcn( - _$$ref.pointer, - _sel_setPreferredInputOrientation_error_, - orientation.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPreferredOutputNumberOfChannels:error: - bool setPreferredOutputNumberOfChannels(DartNSInteger count) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredOutputNumberOfChannels:error:', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_e67j2c( - _$$ref.pointer, - _sel_setPreferredOutputNumberOfChannels_error_, - count, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPreferredSampleRate:error: - bool setPreferredSampleRate(double sampleRate) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredSampleRate:error:', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1m4vyuw( - _$$ref.pointer, - _sel_setPreferredSampleRate_error_, - sampleRate, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// supportedOutputChannelLayouts - objc.NSArray get supportedOutputChannelLayouts { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.supportedOutputChannelLayouts', - iOS: (false, (17, 2, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_supportedOutputChannelLayouts, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -enum AVAudioSessionIOType { - AVAudioSessionIOTypeNotSpecified(0), - AVAudioSessionIOTypeAggregated(1); - - final int value; - const AVAudioSessionIOType(this.value); - - static AVAudioSessionIOType fromValue(int value) => switch (value) { - 0 => AVAudioSessionIOTypeNotSpecified, - 1 => AVAudioSessionIOTypeAggregated, - _ => throw ArgumentError('Unknown value for AVAudioSessionIOType: $value'), - }; -} - -@Deprecated('Deprecated') -const int AVAudioSessionInterruptionFlags_ShouldResume = 1; - -sealed class AVAudioSessionInterruptionOptions { - static const AVAudioSessionInterruptionOptionShouldResume = 1; -} - -enum AVAudioSessionInterruptionReason { - AVAudioSessionInterruptionReasonDefault(0), - AVAudioSessionInterruptionReasonAppWasSuspended(1), - AVAudioSessionInterruptionReasonBuiltInMicMuted(2), - AVAudioSessionInterruptionReasonRouteDisconnected(4); - - final int value; - const AVAudioSessionInterruptionReason(this.value); - - static AVAudioSessionInterruptionReason fromValue(int value) => - switch (value) { - 0 => AVAudioSessionInterruptionReasonDefault, - 1 => AVAudioSessionInterruptionReasonAppWasSuspended, - 2 => AVAudioSessionInterruptionReasonBuiltInMicMuted, - 4 => AVAudioSessionInterruptionReasonRouteDisconnected, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionInterruptionReason: $value', - ), - }; -} - -enum AVAudioSessionInterruptionType { - AVAudioSessionInterruptionTypeBegan(1), - AVAudioSessionInterruptionTypeEnded(0); - - final int value; - const AVAudioSessionInterruptionType(this.value); - - static AVAudioSessionInterruptionType fromValue(int value) => switch (value) { - 1 => AVAudioSessionInterruptionTypeBegan, - 0 => AVAudioSessionInterruptionTypeEnded, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionInterruptionType: $value', - ), - }; -} - -typedef AVAudioSessionLocation = ffi.Pointer; -typedef DartAVAudioSessionLocation = objc.NSString; - -enum AVAudioSessionMicrophoneInjectionMode { - AVAudioSessionMicrophoneInjectionModeNone(0), - AVAudioSessionMicrophoneInjectionModeSpokenAudio(1); - - final int value; - const AVAudioSessionMicrophoneInjectionMode(this.value); - - static AVAudioSessionMicrophoneInjectionMode fromValue(int value) => - switch (value) { - 0 => AVAudioSessionMicrophoneInjectionModeNone, - 1 => AVAudioSessionMicrophoneInjectionModeSpokenAudio, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionMicrophoneInjectionMode: $value', - ), - }; -} - -typedef AVAudioSessionMode = ffi.Pointer; -typedef DartAVAudioSessionMode = objc.NSString; -typedef AVAudioSessionOrientation = ffi.Pointer; -typedef DartAVAudioSessionOrientation = objc.NSString; -typedef AVAudioSessionPolarPattern = ffi.Pointer; -typedef DartAVAudioSessionPolarPattern = objc.NSString; -typedef AVAudioSessionPort = ffi.Pointer; -typedef DartAVAudioSessionPort = objc.NSString; - -/// WARNING: AVAudioSessionPortDescription is a stub. To generate bindings for this class, include -/// AVAudioSessionPortDescription in your config's objc-interfaces list. -/// -/// AVAudioSessionPortDescription -extension type AVAudioSessionPortDescription._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioSessionPortDescription] that points to the same underlying object as [other]. - AVAudioSessionPortDescription.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioSessionPortDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } - - /// Constructs a [AVAudioSessionPortDescription] that wraps the given raw object pointer. - AVAudioSessionPortDescription.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioSessionPortDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } -} - -/// WARNING: AVAudioSessionPortExtensionBluetoothMicrophone is a stub. To generate bindings for this class, include -/// AVAudioSessionPortExtensionBluetoothMicrophone in your config's objc-interfaces list. -/// -/// AVAudioSessionPortExtensionBluetoothMicrophone -extension type AVAudioSessionPortExtensionBluetoothMicrophone._( - objc.ObjCObject object$ -) implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioSessionPortExtensionBluetoothMicrophone] that points to the same underlying object as [other]. - AVAudioSessionPortExtensionBluetoothMicrophone.as(objc.ObjCObject other) - : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioSessionPortExtensionBluetoothMicrophone', - iOS: (false, (26, 0, 0)), - macOS: (true, null), - ); - } - - /// Constructs a [AVAudioSessionPortExtensionBluetoothMicrophone] that wraps the given raw object pointer. - AVAudioSessionPortExtensionBluetoothMicrophone.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioSessionPortExtensionBluetoothMicrophone', - iOS: (false, (26, 0, 0)), - macOS: (true, null), - ); - } -} - -enum AVAudioSessionPortOverride { - AVAudioSessionPortOverrideNone(0), - AVAudioSessionPortOverrideSpeaker(1936747378); - - final int value; - const AVAudioSessionPortOverride(this.value); - - static AVAudioSessionPortOverride fromValue(int value) => switch (value) { - 0 => AVAudioSessionPortOverrideNone, - 1936747378 => AVAudioSessionPortOverrideSpeaker, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionPortOverride: $value', - ), - }; -} - -enum AVAudioSessionPromptStyle { - AVAudioSessionPromptStyleNone(1852796517), - AVAudioSessionPromptStyleShort(1936224884), - AVAudioSessionPromptStyleNormal(1852992876); - - final int value; - const AVAudioSessionPromptStyle(this.value); - - static AVAudioSessionPromptStyle fromValue(int value) => switch (value) { - 1852796517 => AVAudioSessionPromptStyleNone, - 1936224884 => AVAudioSessionPromptStyleShort, - 1852992876 => AVAudioSessionPromptStyleNormal, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionPromptStyle: $value', - ), - }; -} - -enum AVAudioSessionRecordPermission { - AVAudioSessionRecordPermissionUndetermined(1970168948), - AVAudioSessionRecordPermissionDenied(1684369017), - AVAudioSessionRecordPermissionGranted(1735552628); - - final int value; - const AVAudioSessionRecordPermission(this.value); - - static AVAudioSessionRecordPermission fromValue(int value) => switch (value) { - 1970168948 => AVAudioSessionRecordPermissionUndetermined, - 1684369017 => AVAudioSessionRecordPermissionDenied, - 1735552628 => AVAudioSessionRecordPermissionGranted, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionRecordPermission: $value', - ), - }; -} - -enum AVAudioSessionRenderingMode { - AVAudioSessionRenderingModeNotApplicable(0), - AVAudioSessionRenderingModeMonoStereo(1), - AVAudioSessionRenderingModeSurround(2), - AVAudioSessionRenderingModeSpatialAudio(3), - AVAudioSessionRenderingModeDolbyAudio(4), - AVAudioSessionRenderingModeDolbyAtmos(5); - - final int value; - const AVAudioSessionRenderingMode(this.value); - - static AVAudioSessionRenderingMode fromValue(int value) => switch (value) { - 0 => AVAudioSessionRenderingModeNotApplicable, - 1 => AVAudioSessionRenderingModeMonoStereo, - 2 => AVAudioSessionRenderingModeSurround, - 3 => AVAudioSessionRenderingModeSpatialAudio, - 4 => AVAudioSessionRenderingModeDolbyAudio, - 5 => AVAudioSessionRenderingModeDolbyAtmos, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionRenderingMode: $value', - ), - }; -} - -enum AVAudioSessionRouteChangeReason { - AVAudioSessionRouteChangeReasonUnknown(0), - AVAudioSessionRouteChangeReasonNewDeviceAvailable(1), - AVAudioSessionRouteChangeReasonOldDeviceUnavailable(2), - AVAudioSessionRouteChangeReasonCategoryChange(3), - AVAudioSessionRouteChangeReasonOverride(4), - AVAudioSessionRouteChangeReasonWakeFromSleep(6), - AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory(7), - AVAudioSessionRouteChangeReasonRouteConfigurationChange(8); - - final int value; - const AVAudioSessionRouteChangeReason(this.value); - - static AVAudioSessionRouteChangeReason fromValue(int value) => - switch (value) { - 0 => AVAudioSessionRouteChangeReasonUnknown, - 1 => AVAudioSessionRouteChangeReasonNewDeviceAvailable, - 2 => AVAudioSessionRouteChangeReasonOldDeviceUnavailable, - 3 => AVAudioSessionRouteChangeReasonCategoryChange, - 4 => AVAudioSessionRouteChangeReasonOverride, - 6 => AVAudioSessionRouteChangeReasonWakeFromSleep, - 7 => AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory, - 8 => AVAudioSessionRouteChangeReasonRouteConfigurationChange, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionRouteChangeReason: $value', - ), - }; -} - -/// WARNING: AVAudioSessionRouteDescription is a stub. To generate bindings for this class, include -/// AVAudioSessionRouteDescription in your config's objc-interfaces list. -/// -/// AVAudioSessionRouteDescription -extension type AVAudioSessionRouteDescription._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioSessionRouteDescription] that points to the same underlying object as [other]. - AVAudioSessionRouteDescription.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioSessionRouteDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } - - /// Constructs a [AVAudioSessionRouteDescription] that wraps the given raw object pointer. - AVAudioSessionRouteDescription.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioSessionRouteDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } -} - -enum AVAudioSessionRouteSharingPolicy { - AVAudioSessionRouteSharingPolicyDefault(0), - AVAudioSessionRouteSharingPolicyLongFormAudio(1), - AVAudioSessionRouteSharingPolicyIndependent(2), - AVAudioSessionRouteSharingPolicyLongFormVideo(3); - - static const AVAudioSessionRouteSharingPolicyLongForm = - AVAudioSessionRouteSharingPolicyLongFormAudio; - - final int value; - const AVAudioSessionRouteSharingPolicy(this.value); - - static AVAudioSessionRouteSharingPolicy fromValue(int value) => - switch (value) { - 0 => AVAudioSessionRouteSharingPolicyDefault, - 1 => AVAudioSessionRouteSharingPolicyLongFormAudio, - 2 => AVAudioSessionRouteSharingPolicyIndependent, - 3 => AVAudioSessionRouteSharingPolicyLongFormVideo, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionRouteSharingPolicy: $value', - ), - }; - - @override - String toString() { - if (this == AVAudioSessionRouteSharingPolicyLongFormAudio) - return "AVAudioSessionRouteSharingPolicy.AVAudioSessionRouteSharingPolicyLongFormAudio, AVAudioSessionRouteSharingPolicy.AVAudioSessionRouteSharingPolicyLongForm"; - return super.toString(); - } -} - -@Deprecated('Deprecated') -const int AVAudioSessionSetActiveFlags_NotifyOthersOnDeactivation = 1; - -sealed class AVAudioSessionSetActiveOptions { - static const AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation = 1; -} - -enum AVAudioSessionSilenceSecondaryAudioHintType { - AVAudioSessionSilenceSecondaryAudioHintTypeBegin(1), - AVAudioSessionSilenceSecondaryAudioHintTypeEnd(0); - - final int value; - const AVAudioSessionSilenceSecondaryAudioHintType(this.value); - - static AVAudioSessionSilenceSecondaryAudioHintType fromValue( - int value, - ) => switch (value) { - 1 => AVAudioSessionSilenceSecondaryAudioHintTypeBegin, - 0 => AVAudioSessionSilenceSecondaryAudioHintTypeEnd, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionSilenceSecondaryAudioHintType: $value', - ), - }; -} - -enum AVAudioStereoOrientation { - AVAudioStereoOrientationNone(0), - AVAudioStereoOrientationPortrait(1), - AVAudioStereoOrientationPortraitUpsideDown(2), - AVAudioStereoOrientationLandscapeRight(3), - AVAudioStereoOrientationLandscapeLeft(4); - - final int value; - const AVAudioStereoOrientation(this.value); - - static AVAudioStereoOrientation fromValue(int value) => switch (value) { - 0 => AVAudioStereoOrientationNone, - 1 => AVAudioStereoOrientationPortrait, - 2 => AVAudioStereoOrientationPortraitUpsideDown, - 3 => AVAudioStereoOrientationLandscapeRight, - 4 => AVAudioStereoOrientationLandscapeLeft, - _ => throw ArgumentError( - 'Unknown value for AVAudioStereoOrientation: $value', - ), - }; -} - -typedef AVAudioUInteger = ffi.UnsignedLong; -typedef DartAVAudioUInteger = int; -typedef AVMusicTimeStamp = ffi.Double; -typedef DartAVMusicTimeStamp = double; - -sealed class AXCopyMultipleAttributeOptions { - static const kAXCopyMultipleAttributeOptionStopOnError = 1; -} - -enum AXError { - kAXErrorSuccess(0), - kAXErrorFailure(-25200), - kAXErrorIllegalArgument(-25201), - kAXErrorInvalidUIElement(-25202), - kAXErrorInvalidUIElementObserver(-25203), - kAXErrorCannotComplete(-25204), - kAXErrorAttributeUnsupported(-25205), - kAXErrorActionUnsupported(-25206), - kAXErrorNotificationUnsupported(-25207), - kAXErrorNotImplemented(-25208), - kAXErrorNotificationAlreadyRegistered(-25209), - kAXErrorNotificationNotRegistered(-25210), - kAXErrorAPIDisabled(-25211), - kAXErrorNoValue(-25212), - kAXErrorParameterizedAttributeUnsupported(-25213), - kAXErrorNotEnoughPrecision(-25214); - - final int value; - const AXError(this.value); - - static AXError fromValue(int value) => switch (value) { - 0 => kAXErrorSuccess, - -25200 => kAXErrorFailure, - -25201 => kAXErrorIllegalArgument, - -25202 => kAXErrorInvalidUIElement, - -25203 => kAXErrorInvalidUIElementObserver, - -25204 => kAXErrorCannotComplete, - -25205 => kAXErrorAttributeUnsupported, - -25206 => kAXErrorActionUnsupported, - -25207 => kAXErrorNotificationUnsupported, - -25208 => kAXErrorNotImplemented, - -25209 => kAXErrorNotificationAlreadyRegistered, - -25210 => kAXErrorNotificationNotRegistered, - -25211 => kAXErrorAPIDisabled, - -25212 => kAXErrorNoValue, - -25213 => kAXErrorParameterizedAttributeUnsupported, - -25214 => kAXErrorNotEnoughPrecision, - _ => throw ArgumentError('Unknown value for AXError: $value'), - }; -} - -sealed class AXMenuItemModifiers { - static const kAXMenuItemModifierNone = 0; - static const kAXMenuItemModifierShift = 1; - static const kAXMenuItemModifierOption = 2; - static const kAXMenuItemModifierControl = 4; - static const kAXMenuItemModifierNoCommand = 8; -} - -typedef AXObserverCallback = - ffi.Pointer>; -typedef AXObserverCallbackFunction = - ffi.Void Function( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, - ffi.Pointer refcon, - ); -typedef DartAXObserverCallbackFunction = - void Function( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, - ffi.Pointer refcon, - ); -typedef AXObserverCallbackWithInfo = - ffi.Pointer>; -typedef AXObserverCallbackWithInfoFunction = - ffi.Void Function( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, - CFDictionaryRef info, - ffi.Pointer refcon, - ); -typedef DartAXObserverCallbackWithInfoFunction = - void Function( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, - CFDictionaryRef info, - ffi.Pointer refcon, - ); -typedef AXObserverRef = ffi.Pointer<__AXObserver>; - -enum AXPriority { - kAXPriorityLow(10), - kAXPriorityMedium(50), - kAXPriorityHigh(90); - - final int value; - const AXPriority(this.value); - - static AXPriority fromValue(int value) => switch (value) { - 10 => kAXPriorityLow, - 50 => kAXPriorityMedium, - 90 => kAXPriorityHigh, - _ => throw ArgumentError('Unknown value for AXPriority: $value'), - }; -} - -typedef AXTextMarkerRangeRef = ffi.Pointer<__AXTextMarkerRange>; -typedef AXTextMarkerRef = ffi.Pointer<__AXTextMarker>; -typedef AXUIElementRef = ffi.Pointer<__AXUIElement>; - -enum AXUnderlineStyle { - kAXUnderlineStyleNone(0), - kAXUnderlineStyleSingle(1), - kAXUnderlineStyleThick(2), - kAXUnderlineStyleDouble(9); - - final int value; - const AXUnderlineStyle(this.value); - - static AXUnderlineStyle fromValue(int value) => switch (value) { - 0 => kAXUnderlineStyleNone, - 1 => kAXUnderlineStyleSingle, - 2 => kAXUnderlineStyleThick, - 9 => kAXUnderlineStyleDouble, - _ => throw ArgumentError('Unknown value for AXUnderlineStyle: $value'), - }; -} - -typedef AXValueRef = ffi.Pointer<__AXValue>; - -enum AXValueType { - kAXValueTypeCGPoint(1), - kAXValueTypeCGSize(2), - kAXValueTypeCGRect(3), - kAXValueTypeCFRange(4), - kAXValueTypeAXError(5), - kAXValueTypeIllegal(0); - - final int value; - const AXValueType(this.value); - - static AXValueType fromValue(int value) => switch (value) { - 1 => kAXValueTypeCGPoint, - 2 => kAXValueTypeCGSize, - 3 => kAXValueTypeCGRect, - 4 => kAXValueTypeCFRange, - 5 => kAXValueTypeAXError, - 0 => kAXValueTypeIllegal, - _ => throw ArgumentError('Unknown value for AXValueType: $value'), - }; -} - -typedef AbsoluteTime = UnsignedWide; - -/// Activation -extension Activation on AVAudioSession { - /// activateWithOptions:completionHandler: - void activateWithOptions( - DartNSUInteger options, { - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = completionHandler.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.activateWithOptions:completionHandler:', - iOS: (true, null), - macOS: (true, null), - ); - _objc_msgSend_1oi13co( - _$$ref.pointer, - _sel_activateWithOptions_completionHandler_, - options, - _$$ref$1.pointer, - ); - } - - /// setActive:error: - bool setActive(bool active) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setActive:error:', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1d50bq7( - _$$ref.pointer, - _sel_setActive_error_, - active, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setActive:withOptions:error: - bool setActive$1(bool active, {required DartNSUInteger withOptions}) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setActive:withOptions:error:', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_rjymh3( - _$$ref.pointer, - _sel_setActive_withOptions_error_, - active, - withOptions, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -typedef AliasHandle = ffi.Pointer; -typedef AliasInfoType = ffi.Short; -typedef DartAliasInfoType = int; -typedef AliasPtr = ffi.Pointer; - -final class AliasRecord extends ffi.Struct { - @ffi.Array.multi([6]) - external ffi.Array hidden; -} - -final class AnchorPoint extends ffi.Struct { - @SInt16() - external int x; - - @SInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -@ffi.Packed(2) -final class AnchorPointTable extends ffi.Struct { - @UInt32() - external int nPoints; - - @ffi.Array.multi([1]) - external ffi.Array points; -} - -@ffi.Packed(2) -final class AnkrTable extends ffi.Struct { - @UInt16() - external int version; - - @UInt16() - external int flags; - - @UInt32() - external int lookupTableOffset; - - @UInt32() - external int anchorPointTableOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int flags, - required int lookupTableOffset, - required int anchorPointTableOffset, - }) => $allocator() - ..ref.version = version - ..ref.flags = flags - ..ref.lookupTableOffset = lookupTableOffset - ..ref.anchorPointTableOffset = anchorPointTableOffset; -} - -const int AnnotationID = 1095650895; - -@ffi.Packed(2) -final class AppParameters extends ffi.Struct { - external UnnamedStruct theMsgEvent; - - @UInt32() - external int eventRefCon; - - @UInt32() - external int messageLength; -} - -typedef AppParametersPtr = ffi.Pointer; -typedef AppleEvent = AERecord; -typedef AppleEventPtr = ffi.Pointer; - -const int AppleShareMediaType = 1634103405; - -@ffi.Packed(2) -final class ApplicationSpecificChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @OSType() - external int applicationSignature; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef ApplicationSpecificChunkPtr = ffi.Pointer; - -const int ApplicationSpecificID = 1095782476; - -typedef AreaID = ffi.Pointer; - -final class AsscEntry extends ffi.Struct { - @SInt16() - external int fontSize; - - @SInt16() - external int fontStyle; - - @SInt16() - external int fontID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fontSize, - required int fontStyle, - required int fontID, - }) => $allocator() - ..ref.fontSize = fontSize - ..ref.fontStyle = fontStyle - ..ref.fontID = fontID; -} - -final class AudioBuffer extends ffi.Struct { - @UInt32() - external int mNumberChannels; - - @UInt32() - external int mDataByteSize; - - external ffi.Pointer mData; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mNumberChannels, - required int mDataByteSize, - required ffi.Pointer mData, - }) => $allocator() - ..ref.mNumberChannels = mNumberChannels - ..ref.mDataByteSize = mDataByteSize - ..ref.mData = mData; -} - -final class AudioBufferList extends ffi.Struct { - @UInt32() - external int mNumberBuffers; - - @ffi.Array.multi([1]) - external ffi.Array mBuffers; -} - -sealed class AudioChannelBitmap { - static const kAudioChannelBit_Left = 1; - static const kAudioChannelBit_Right = 2; - static const kAudioChannelBit_Center = 4; - static const kAudioChannelBit_LFEScreen = 8; - static const kAudioChannelBit_LeftSurround = 16; - static const kAudioChannelBit_RightSurround = 32; - static const kAudioChannelBit_LeftCenter = 64; - static const kAudioChannelBit_RightCenter = 128; - static const kAudioChannelBit_CenterSurround = 256; - static const kAudioChannelBit_LeftSurroundDirect = 512; - static const kAudioChannelBit_RightSurroundDirect = 1024; - static const kAudioChannelBit_TopCenterSurround = 2048; - static const kAudioChannelBit_VerticalHeightLeft = 4096; - static const kAudioChannelBit_VerticalHeightCenter = 8192; - static const kAudioChannelBit_VerticalHeightRight = 16384; - static const kAudioChannelBit_TopBackLeft = 32768; - static const kAudioChannelBit_TopBackCenter = 65536; - static const kAudioChannelBit_TopBackRight = 131072; - static const kAudioChannelBit_LeftTopFront = 4096; - static const kAudioChannelBit_CenterTopFront = 8192; - static const kAudioChannelBit_RightTopFront = 16384; - static const kAudioChannelBit_LeftTopMiddle = 2097152; - static const kAudioChannelBit_CenterTopMiddle = 2048; - static const kAudioChannelBit_RightTopMiddle = 8388608; - static const kAudioChannelBit_LeftTopRear = 16777216; - static const kAudioChannelBit_CenterTopRear = 33554432; - static const kAudioChannelBit_RightTopRear = 67108864; -} - -enum AudioChannelCoordinateIndex { - kAudioChannelCoordinates_LeftRight(0), - kAudioChannelCoordinates_BackFront(1), - kAudioChannelCoordinates_DownUp(2); - - static const kAudioChannelCoordinates_Azimuth = - kAudioChannelCoordinates_LeftRight; - static const kAudioChannelCoordinates_Elevation = - kAudioChannelCoordinates_BackFront; - static const kAudioChannelCoordinates_Distance = - kAudioChannelCoordinates_DownUp; - - final int value; - const AudioChannelCoordinateIndex(this.value); - - static AudioChannelCoordinateIndex fromValue(int value) => switch (value) { - 0 => kAudioChannelCoordinates_LeftRight, - 1 => kAudioChannelCoordinates_BackFront, - 2 => kAudioChannelCoordinates_DownUp, - _ => throw ArgumentError( - 'Unknown value for AudioChannelCoordinateIndex: $value', - ), - }; - - @override - String toString() { - if (this == kAudioChannelCoordinates_LeftRight) - return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_LeftRight, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Azimuth"; - if (this == kAudioChannelCoordinates_BackFront) - return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_BackFront, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Elevation"; - if (this == kAudioChannelCoordinates_DownUp) - return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_DownUp, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Distance"; - return super.toString(); - } -} - -final class AudioChannelDescription extends ffi.Struct { - @AudioChannelLabel() - external int mChannelLabel; - - @UInt32() - external int mChannelFlags; - - @ffi.Array.multi([3]) - external ffi.Array mCoordinates; -} - -sealed class AudioChannelFlags { - static const kAudioChannelFlags_AllOff = 0; - static const kAudioChannelFlags_RectangularCoordinates = 1; - static const kAudioChannelFlags_SphericalCoordinates = 2; - static const kAudioChannelFlags_Meters = 4; -} - -typedef AudioChannelLabel = UInt32; - -final class AudioChannelLayout extends ffi.Struct { - @AudioChannelLayoutTag() - external int mChannelLayoutTag; - - @UInt32() - external int mChannelBitmap; - - @UInt32() - external int mNumberChannelDescriptions; - - @ffi.Array.multi([1]) - external ffi.Array mChannelDescriptions; -} - -typedef AudioChannelLayoutTag = UInt32; - -final class AudioClassDescription extends ffi.Struct { - @OSType() - external int mType; - - @OSType() - external int mSubType; - - @OSType() - external int mManufacturer; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mType, - required int mSubType, - required int mManufacturer, - }) => $allocator() - ..ref.mType = mType - ..ref.mSubType = mSubType - ..ref.mManufacturer = mManufacturer; -} - -typedef AudioFormatFlags = UInt32; -typedef AudioFormatID = UInt32; - -final class AudioFormatListItem extends ffi.Struct { - external AudioStreamBasicDescription mASBD; - - @AudioChannelLayoutTag() - external int mChannelLayoutTag; -} - -@ffi.Packed(2) -final class AudioRecordingChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @ffi.Array.multi([24]) - external ffi.Array AESChannelStatus; -} - -typedef AudioRecordingChunkPtr = ffi.Pointer; - -const int AudioRecordingID = 1095062340; - -typedef AudioSampleType = Float32; -typedef AudioSessionID = ffi.Uint32; -typedef DartAudioSessionID = int; - -final class AudioStreamBasicDescription extends ffi.Struct { - @Float64() - external double mSampleRate; - - @AudioFormatID() - external int mFormatID; - - @AudioFormatFlags() - external int mFormatFlags; - - @UInt32() - external int mBytesPerPacket; - - @UInt32() - external int mFramesPerPacket; - - @UInt32() - external int mBytesPerFrame; - - @UInt32() - external int mChannelsPerFrame; - - @UInt32() - external int mBitsPerChannel; - - @UInt32() - external int mReserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double mSampleRate, - required int mFormatID, - required int mFormatFlags, - required int mBytesPerPacket, - required int mFramesPerPacket, - required int mBytesPerFrame, - required int mChannelsPerFrame, - required int mBitsPerChannel, - required int mReserved, - }) => $allocator() - ..ref.mSampleRate = mSampleRate - ..ref.mFormatID = mFormatID - ..ref.mFormatFlags = mFormatFlags - ..ref.mBytesPerPacket = mBytesPerPacket - ..ref.mFramesPerPacket = mFramesPerPacket - ..ref.mBytesPerFrame = mBytesPerFrame - ..ref.mChannelsPerFrame = mChannelsPerFrame - ..ref.mBitsPerChannel = mBitsPerChannel - ..ref.mReserved = mReserved; -} - -final class AudioStreamPacketDependencyDescription extends ffi.Struct { - @UInt32() - external int mIsIndependentlyDecodable; - - @UInt32() - external int mPreRollCount; - - @UInt32() - external int mFlags; - - @UInt32() - external int mReserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mIsIndependentlyDecodable, - required int mPreRollCount, - required int mFlags, - required int mReserved, - }) => $allocator() - ..ref.mIsIndependentlyDecodable = mIsIndependentlyDecodable - ..ref.mPreRollCount = mPreRollCount - ..ref.mFlags = mFlags - ..ref.mReserved = mReserved; -} - -final class AudioStreamPacketDescription extends ffi.Struct { - @SInt64() - external int mStartOffset; - - @UInt32() - external int mVariableFramesInPacket; - - @UInt32() - external int mDataByteSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mStartOffset, - required int mVariableFramesInPacket, - required int mDataByteSize, - }) => $allocator() - ..ref.mStartOffset = mStartOffset - ..ref.mVariableFramesInPacket = mVariableFramesInPacket - ..ref.mDataByteSize = mDataByteSize; -} - -final class AudioTimeStamp extends ffi.Struct { - @Float64() - external double mSampleTime; - - @UInt64() - external int mHostTime; - - @Float64() - external double mRateScalar; - - @UInt64() - external int mWordClockTime; - - external SMPTETime mSMPTETime; - - @UInt32() - external int mFlags; - - @UInt32() - external int mReserved; -} - -sealed class AudioTimeStampFlags { - static const kAudioTimeStampNothingValid = 0; - static const kAudioTimeStampSampleTimeValid = 1; - static const kAudioTimeStampHostTimeValid = 2; - static const kAudioTimeStampRateScalarValid = 4; - static const kAudioTimeStampWordClockTimeValid = 8; - static const kAudioTimeStampSMPTETimeValid = 16; - static const kAudioTimeStampSampleHostTimeValid = 3; -} - -typedef AudioUnitSampleType = Float32; - -final class AudioValueRange extends ffi.Struct { - @Float64() - external double mMinimum; - - @Float64() - external double mMaximum; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double mMinimum, - required double mMaximum, - }) => $allocator() - ..ref.mMinimum = mMinimum - ..ref.mMaximum = mMaximum; -} - -final class AudioValueTranslation extends ffi.Struct { - external ffi.Pointer mInputData; - - @UInt32() - external int mInputDataSize; - - external ffi.Pointer mOutputData; - - @UInt32() - external int mOutputDataSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer mInputData, - required int mInputDataSize, - required ffi.Pointer mOutputData, - required int mOutputDataSize, - }) => $allocator() - ..ref.mInputData = mInputData - ..ref.mInputDataSize = mInputDataSize - ..ref.mOutputData = mOutputData - ..ref.mOutputDataSize = mOutputDataSize; -} - -const int AuthorID = 1096111176; - -typedef AuthorizationAsyncCallback = ffi.Pointer; -typedef DartAuthorizationAsyncCallback = - objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >; -typedef AuthorizationEnvironment = AuthorizationItemSet; - -final class AuthorizationExternalForm extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array bytes; -} - -sealed class AuthorizationFlags { - static const kAuthorizationFlagDefaults = 0; - static const kAuthorizationFlagInteractionAllowed = 1; - static const kAuthorizationFlagExtendRights = 2; - static const kAuthorizationFlagPartialRights = 4; - static const kAuthorizationFlagDestroyRights = 8; - static const kAuthorizationFlagPreAuthorize = 16; - static const kAuthorizationFlagSkipInternalAuth = 512; - static const kAuthorizationFlagNoData = 1048576; -} - -final class AuthorizationItem extends ffi.Struct { - external AuthorizationString name; - - @ffi.Size() - external int valueLength; - - external ffi.Pointer value; - - @UInt32() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required AuthorizationString name, - required int valueLength, - required ffi.Pointer value, - required int flags, - }) => $allocator() - ..ref.name = name - ..ref.valueLength = valueLength - ..ref.value = value - ..ref.flags = flags; -} - -final class AuthorizationItemSet extends ffi.Struct { - @UInt32() - external int count; - - external ffi.Pointer items; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required ffi.Pointer items, - }) => $allocator() - ..ref.count = count - ..ref.items = items; -} - -final class AuthorizationOpaqueRef extends ffi.Opaque {} - -typedef AuthorizationRef = ffi.Pointer; -typedef AuthorizationRights = AuthorizationItemSet; -typedef AuthorizationString = ffi.Pointer; - -@ffi.Packed(2) -final class BTHeaderRec extends ffi.Struct { - @u_int16_t() - external int treeDepth; - - @u_int32_t() - external int rootNode; - - @u_int32_t() - external int leafRecords; - - @u_int32_t() - external int firstLeafNode; - - @u_int32_t() - external int lastLeafNode; - - @u_int16_t() - external int nodeSize; - - @u_int16_t() - external int maxKeyLength; - - @u_int32_t() - external int totalNodes; - - @u_int32_t() - external int freeNodes; - - @u_int16_t() - external int reserved1; - - @u_int32_t() - external int clumpSize; - - @u_int8_t() - external int btreeType; - - @u_int8_t() - external int keyCompareType; - - @u_int32_t() - external int attributes; - - @ffi.Array.multi([16]) - external ffi.Array reserved3; -} - -@ffi.Packed(2) -final class BTNodeDescriptor extends ffi.Struct { - @u_int32_t() - external int fLink; - - @u_int32_t() - external int bLink; - - @ffi.Int8() - external int kind; - - @u_int8_t() - external int height; - - @u_int16_t() - external int numRecords; - - @u_int16_t() - external int reserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fLink, - required int bLink, - required int kind, - required int height, - required int numRecords, - required int reserved, - }) => $allocator() - ..ref.fLink = fLink - ..ref.bLink = bLink - ..ref.kind = kind - ..ref.height = height - ..ref.numRecords = numRecords - ..ref.reserved = reserved; -} - -final class BTreeKey extends ffi.Union { - @u_int8_t() - external int length8; - - @u_int16_t() - external int length16; - - @ffi.Array.multi([522]) - external ffi.Array rawData; -} - -enum BTreeKeyLimits { - kMaxKeyLength(520); - - final int value; - const BTreeKeyLimits(this.value); - - static BTreeKeyLimits fromValue(int value) => switch (value) { - 520 => kMaxKeyLength, - _ => throw ArgumentError('Unknown value for BTreeKeyLimits: $value'), - }; -} - -@ffi.Packed(2) -final class BigEndianFixed extends ffi.Struct { - @Fixed() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BigEndianLong extends ffi.Struct { - @ffi.Long() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BigEndianOSType extends ffi.Struct { - @OSType() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => $allocator()..ref.bigEndianValue = bigEndianValue; -} - -final class BigEndianShort extends ffi.Struct { - @ffi.Short() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BigEndianUInt32 extends ffi.Struct { - @UInt32() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BigEndianUnsignedFixed extends ffi.Struct { - @UnsignedFixed() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => - $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BigEndianUnsignedLong extends ffi.Struct { - @ffi.UnsignedLong() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => - $allocator()..ref.bigEndianValue = bigEndianValue; -} - -final class BigEndianUnsignedShort extends ffi.Struct { - @ffi.UnsignedShort() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => - $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BitMap extends ffi.Struct { - external Ptr baseAddr; - - @ffi.Short() - external int rowBytes; - - external Rect bounds; -} - -typedef BitMapHandle = ffi.Pointer; -typedef BitMapPtr = ffi.Pointer; - -/// BluetoothMicrophoneExtension -extension BluetoothMicrophoneExtension on AVAudioSessionPortDescription { - /// bluetoothMicrophoneExtension - AVAudioSessionPortExtensionBluetoothMicrophone? - get bluetoothMicrophoneExtension { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSessionPortDescription.bluetoothMicrophoneExtension', - iOS: (false, (26, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_bluetoothMicrophoneExtension, - ); - return $ret.address == 0 - ? null - : AVAudioSessionPortExtensionBluetoothMicrophone.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -typedef Boolean = ffi.UnsignedChar; -typedef DartBoolean = int; -typedef BslnBaselineClass = UInt32; - -final class BslnFormat0Part extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array deltas; -} - -final class BslnFormat1Part extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array deltas; - - external SFNTLookupTable mappingData; -} - -final class BslnFormat2Part extends ffi.Struct { - @UInt16() - external int stdGlyph; - - @ffi.Array.multi([32]) - external ffi.Array ctlPoints; -} - -final class BslnFormat3Part extends ffi.Struct { - @UInt16() - external int stdGlyph; - - @ffi.Array.multi([32]) - external ffi.Array ctlPoints; - - external SFNTLookupTable mappingData; -} - -final class BslnFormatUnion extends ffi.Union { - external BslnFormat0Part fmt0Part; - - external BslnFormat1Part fmt1Part; - - external BslnFormat2Part fmt2Part; - - external BslnFormat3Part fmt3Part; -} - -@ffi.Packed(2) -final class BslnTable extends ffi.Struct { - @Fixed() - external int version; - - @BslnTableFormat() - external int format; - - @UInt16() - external int defaultBaseline; - - external BslnFormatUnion parts; -} - -typedef BslnTableFormat = UInt16; -typedef BslnTablePtr = ffi.Pointer; -typedef Byte = UInt8; -typedef ByteCount = ffi.UnsignedLong; -typedef DartByteCount = int; -typedef ByteOffset = ffi.UnsignedLong; -typedef DartByteOffset = int; -typedef BytePtr = ffi.Pointer; - -/// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include -/// CASpatialAudioExperience in your config's objc-interfaces list. -/// -/// CASpatialAudioExperience -extension type CASpatialAudioExperience._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [CASpatialAudioExperience] that points to the same underlying object as [other]. - CASpatialAudioExperience.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [CASpatialAudioExperience] that wraps the given raw object pointer. - CASpatialAudioExperience.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -const int CDEFNFnd = 88; - -typedef CE_AccessDescription = __CE_AccessDescription; -typedef CE_AuthorityInfoAccess = __CE_AuthorityInfoAccess; -typedef CE_AuthorityKeyID = __CE_AuthorityKeyID; -typedef CE_BasicConstraints = __CE_BasicConstraints; -typedef CE_CRLDistPointsSyntax = __CE_CRLDistPointsSyntax; -typedef CE_CRLDistributionPoint = __CE_CRLDistributionPoint; -typedef CE_CertPolicies = __CE_CertPolicies; -typedef CE_CrlDistReasonFlags = uint8; -typedef CE_CrlNumber = uint32; -typedef CE_CrlReason = uint32; - -final class CE_Data extends ffi.Union { - external CE_AuthorityKeyID authorityKeyID; - - external CE_SubjectKeyID subjectKeyID; - - @CE_KeyUsage() - external int keyUsage; - - external CE_GeneralNames subjectAltName; - - external CE_GeneralNames issuerAltName; - - external CE_ExtendedKeyUsage extendedKeyUsage; - - external CE_BasicConstraints basicConstraints; - - external CE_CertPolicies certPolicies; - - @CE_NetscapeCertType() - external int netscapeCertType; - - @CE_CrlNumber() - external int crlNumber; - - @CE_DeltaCrl() - external int deltaCrl; - - @CE_CrlReason() - external int crlReason; - - external CE_CRLDistPointsSyntax crlDistPoints; - - external CE_IssuingDistributionPoint issuingDistPoint; - - external CE_AuthorityInfoAccess authorityInfoAccess; - - external CE_QC_Statements qualifiedCertStatements; - - external CE_NameConstraints nameConstraints; - - external CE_PolicyMappings policyMappings; - - external CE_PolicyConstraints policyConstraints; - - @CE_InhibitAnyPolicy() - external int inhibitAnyPolicy; - - external SecAsn1Item rawData; -} - -typedef CE_DataAndType = __CE_DataAndType; -typedef CE_DeltaCrl = uint32; -typedef CE_DistributionPointName = __CE_DistributionPointName; -typedef CE_ExtendedKeyUsage = __CE_ExtendedKeyUsage; -typedef CE_GeneralName = __CE_GeneralName; -typedef CE_GeneralNames = __CE_GeneralNames; -typedef CE_GeneralSubtree = __CE_GeneralSubtree; -typedef CE_GeneralSubtrees = __CE_GeneralSubtrees; -typedef CE_InhibitAnyPolicy = uint32; -typedef CE_IssuingDistributionPoint = __CE_IssuingDistributionPoint; -typedef CE_KeyUsage = uint16; -typedef CE_NameConstraints = __CE_NameConstraints; -typedef CE_NameRegistrationAuthorities = CE_GeneralNames; -typedef CE_NetscapeCertType = uint16; -typedef CE_OtherName = __CE_OtherName; -typedef CE_PolicyConstraints = __CE_PolicyConstraints; -typedef CE_PolicyInformation = __CE_PolicyInformation; -typedef CE_PolicyMapping = __CE_PolicyMapping; -typedef CE_PolicyMappings = __CE_PolicyMappings; -typedef CE_PolicyQualifierInfo = __CE_PolicyQualifierInfo; -typedef CE_QC_Statement = __CE_QC_Statement; -typedef CE_QC_Statements = __CE_QC_Statements; -typedef CE_SemanticsInformation = __CE_SemanticsInformation; -typedef CE_SubjectKeyID = SecAsn1Item; -typedef CFAbsoluteTime = CFTimeInterval; -typedef CFAllocatorAllocateCallBack = - ffi.Pointer>; -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - CFIndex allocSize, - CFOptionFlags hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - DartCFIndex allocSize, - DartCFOptionFlags hint, - ffi.Pointer info, - ); - -final class CFAllocatorContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - external CFAllocatorAllocateCallBack allocate; - - external CFAllocatorReallocateCallBack reallocate; - - external CFAllocatorDeallocateCallBack deallocate; - - external CFAllocatorPreferredSizeCallBack preferredSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - required CFAllocatorAllocateCallBack allocate, - required CFAllocatorReallocateCallBack reallocate, - required CFAllocatorDeallocateCallBack deallocate, - required CFAllocatorPreferredSizeCallBack preferredSize, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.allocate = allocate - ..ref.reallocate = reallocate - ..ref.deallocate = deallocate - ..ref.preferredSize = preferredSize; -} - -typedef CFAllocatorCopyDescriptionCallBack = - ffi.Pointer>; -typedef CFAllocatorCopyDescriptionCallBackFunction = - CFStringRef Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBack = - ffi.Pointer>; -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBack = - ffi.Pointer>; -typedef CFAllocatorPreferredSizeCallBackFunction = - CFIndex Function( - CFIndex size, - CFOptionFlags hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - DartCFIndex Function( - DartCFIndex size, - DartCFOptionFlags hint, - ffi.Pointer info, - ); -typedef CFAllocatorReallocateCallBack = - ffi.Pointer>; -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - CFIndex newsize, - CFOptionFlags hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - DartCFIndex newsize, - DartCFOptionFlags hint, - ffi.Pointer info, - ); -typedef CFAllocatorRef = ffi.Pointer<__CFAllocator>; -typedef CFAllocatorReleaseCallBack = - ffi.Pointer>; -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBack = - ffi.Pointer>; -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorTypeID = ffi.UnsignedLongLong; -typedef DartCFAllocatorTypeID = int; -typedef CFArrayApplierFunction = - ffi.Pointer>; -typedef CFArrayApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFArrayApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); - -final class CFArrayCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFArrayRetainCallBack retain; - - external CFArrayReleaseCallBack release; - - external CFArrayCopyDescriptionCallBack copyDescription; - - external CFArrayEqualCallBack equal; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFArrayRetainCallBack retain, - required CFArrayReleaseCallBack release, - required CFArrayCopyDescriptionCallBack copyDescription, - required CFArrayEqualCallBack equal, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal; -} - -typedef CFArrayCopyDescriptionCallBack = - ffi.Pointer>; -typedef CFArrayCopyDescriptionCallBackFunction = - CFStringRef Function(ffi.Pointer value); -typedef CFArrayEqualCallBack = - ffi.Pointer>; -typedef CFArrayEqualCallBackFunction = - Boolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFArrayEqualCallBackFunction = - DartBoolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef CFArrayRef = ffi.Pointer<__CFArray>; -typedef CFArrayReleaseCallBack = - ffi.Pointer>; -typedef CFArrayReleaseCallBackFunction = - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); -typedef DartCFArrayReleaseCallBackFunction = - void Function(CFAllocatorRef allocator, ffi.Pointer value); -typedef CFArrayRetainCallBack = - ffi.Pointer>; -typedef CFArrayRetainCallBackFunction = - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer value, - ); -typedef CFAttributedStringRef = ffi.Pointer<__CFAttributedString>; -typedef CFBagApplierFunction = - ffi.Pointer>; -typedef CFBagApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFBagApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); - -final class CFBagCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFBagRetainCallBack retain; - - external CFBagReleaseCallBack release; - - external CFBagCopyDescriptionCallBack copyDescription; - - external CFBagEqualCallBack equal; - - external CFBagHashCallBack hash; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFBagRetainCallBack retain, - required CFBagReleaseCallBack release, - required CFBagCopyDescriptionCallBack copyDescription, - required CFBagEqualCallBack equal, - required CFBagHashCallBack hash, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal - ..ref.hash = hash; -} - -typedef CFBagCopyDescriptionCallBack = - ffi.Pointer>; -typedef CFBagCopyDescriptionCallBackFunction = - CFStringRef Function(ffi.Pointer value); -typedef CFBagEqualCallBack = - ffi.Pointer>; -typedef CFBagEqualCallBackFunction = - Boolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFBagEqualCallBackFunction = - DartBoolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef CFBagHashCallBack = - ffi.Pointer>; -typedef CFBagHashCallBackFunction = - CFHashCode Function(ffi.Pointer value); -typedef DartCFBagHashCallBackFunction = - DartCFHashCode Function(ffi.Pointer value); -typedef CFBagRef = ffi.Pointer<__CFBag>; -typedef CFBagReleaseCallBack = - ffi.Pointer>; -typedef CFBagReleaseCallBackFunction = - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); -typedef DartCFBagReleaseCallBackFunction = - void Function(CFAllocatorRef allocator, ffi.Pointer value); -typedef CFBagRetainCallBack = - ffi.Pointer>; -typedef CFBagRetainCallBackFunction = - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer value, - ); -typedef CFBinaryHeapApplierFunction = - ffi.Pointer>; -typedef CFBinaryHeapApplierFunctionFunction = - ffi.Void Function(ffi.Pointer val, ffi.Pointer context); -typedef DartCFBinaryHeapApplierFunctionFunction = - void Function(ffi.Pointer val, ffi.Pointer context); - -final class CFBinaryHeapCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer ptr, - ) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer ptr) - > - > - release; - - external ffi.Pointer< - ffi.NativeFunction ptr)> - > - copyDescription; - - external ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer ptr1, - ffi.Pointer ptr2, - ffi.Pointer context, - ) - > - > - compare; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer ptr, - ) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer ptr) - > - > - release, - required ffi.Pointer< - ffi.NativeFunction ptr)> - > - copyDescription, - required ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer ptr1, - ffi.Pointer ptr2, - ffi.Pointer context, - ) - > - > - compare, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.compare = compare; -} - -final class CFBinaryHeapCompareContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFBinaryHeapRef = ffi.Pointer<__CFBinaryHeap>; -typedef CFBit = UInt32; -typedef CFBitVectorRef = ffi.Pointer<__CFBitVector>; -typedef CFBooleanRef = ffi.Pointer<__CFBoolean>; -typedef CFBundleRef = ffi.Pointer<__CFBundle>; -typedef CFBundleRefNum = ffi.Int; -typedef DartCFBundleRefNum = int; -typedef CFByteOrder = CFIndex; -typedef CFCalendarIdentifier = CFStringRef; -typedef CFCalendarRef = ffi.Pointer<__CFCalendar>; - -sealed class CFCalendarUnit { - static const kCFCalendarUnitEra = 2; - static const kCFCalendarUnitYear = 4; - static const kCFCalendarUnitMonth = 8; - static const kCFCalendarUnitDay = 16; - static const kCFCalendarUnitHour = 32; - static const kCFCalendarUnitMinute = 64; - static const kCFCalendarUnitSecond = 128; - static const kCFCalendarUnitWeek = 256; - static const kCFCalendarUnitWeekday = 512; - static const kCFCalendarUnitWeekdayOrdinal = 1024; - static const kCFCalendarUnitQuarter = 2048; - static const kCFCalendarUnitWeekOfMonth = 4096; - static const kCFCalendarUnitWeekOfYear = 8192; - static const kCFCalendarUnitYearForWeekOfYear = 16384; - static const kCFCalendarUnitDayOfYear = 65536; -} - -enum CFCharacterSetPredefinedSet { - kCFCharacterSetControl(1), - kCFCharacterSetWhitespace(2), - kCFCharacterSetWhitespaceAndNewline(3), - kCFCharacterSetDecimalDigit(4), - kCFCharacterSetLetter(5), - kCFCharacterSetLowercaseLetter(6), - kCFCharacterSetUppercaseLetter(7), - kCFCharacterSetNonBase(8), - kCFCharacterSetDecomposable(9), - kCFCharacterSetAlphaNumeric(10), - kCFCharacterSetPunctuation(11), - kCFCharacterSetCapitalizedLetter(13), - kCFCharacterSetSymbol(14), - kCFCharacterSetNewline(15), - kCFCharacterSetIllegal(12); - - final int value; - const CFCharacterSetPredefinedSet(this.value); - - static CFCharacterSetPredefinedSet fromValue(int value) => switch (value) { - 1 => kCFCharacterSetControl, - 2 => kCFCharacterSetWhitespace, - 3 => kCFCharacterSetWhitespaceAndNewline, - 4 => kCFCharacterSetDecimalDigit, - 5 => kCFCharacterSetLetter, - 6 => kCFCharacterSetLowercaseLetter, - 7 => kCFCharacterSetUppercaseLetter, - 8 => kCFCharacterSetNonBase, - 9 => kCFCharacterSetDecomposable, - 10 => kCFCharacterSetAlphaNumeric, - 11 => kCFCharacterSetPunctuation, - 13 => kCFCharacterSetCapitalizedLetter, - 14 => kCFCharacterSetSymbol, - 15 => kCFCharacterSetNewline, - 12 => kCFCharacterSetIllegal, - _ => throw ArgumentError( - 'Unknown value for CFCharacterSetPredefinedSet: $value', - ), - }; -} - -typedef CFCharacterSetRef = ffi.Pointer<__CFCharacterSet>; -typedef CFComparatorFunction = - ffi.Pointer>; -typedef CFComparatorFunctionFunction = - CFIndex Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef CFDataRef = ffi.Pointer<__CFData>; - -sealed class CFDataSearchFlags { - static const kCFDataSearchBackwards = 1; - static const kCFDataSearchAnchored = 2; -} - -typedef CFDateFormatterKey = CFStringRef; -typedef CFDateFormatterRef = ffi.Pointer<__CFDateFormatter>; - -enum CFDateFormatterStyle { - kCFDateFormatterNoStyle(0), - kCFDateFormatterShortStyle(1), - kCFDateFormatterMediumStyle(2), - kCFDateFormatterLongStyle(3), - kCFDateFormatterFullStyle(4); - - final int value; - const CFDateFormatterStyle(this.value); - - static CFDateFormatterStyle fromValue(int value) => switch (value) { - 0 => kCFDateFormatterNoStyle, - 1 => kCFDateFormatterShortStyle, - 2 => kCFDateFormatterMediumStyle, - 3 => kCFDateFormatterLongStyle, - 4 => kCFDateFormatterFullStyle, - _ => throw ArgumentError('Unknown value for CFDateFormatterStyle: $value'), - }; -} - -typedef CFDateRef = ffi.Pointer<__CFDate>; -typedef CFDictionaryApplierFunction = - ffi.Pointer>; -typedef CFDictionaryApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFDictionaryApplierFunctionFunction = - void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ); -typedef CFDictionaryCopyDescriptionCallBack = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CFDictionaryCopyDescriptionCallBackFunction = - CFStringRef Function(ffi.Pointer value); -typedef CFDictionaryEqualCallBack = - ffi.Pointer>; -typedef CFDictionaryEqualCallBackFunction = - Boolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFDictionaryEqualCallBackFunction = - DartBoolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef CFDictionaryHashCallBack = - ffi.Pointer>; -typedef CFDictionaryHashCallBackFunction = - CFHashCode Function(ffi.Pointer value); -typedef DartCFDictionaryHashCallBackFunction = - DartCFHashCode Function(ffi.Pointer value); - -final class CFDictionaryKeyCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFDictionaryRetainCallBack retain; - - external CFDictionaryReleaseCallBack release; - - external CFDictionaryCopyDescriptionCallBack copyDescription; - - external CFDictionaryEqualCallBack equal; - - external CFDictionaryHashCallBack hash; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFDictionaryRetainCallBack retain, - required CFDictionaryReleaseCallBack release, - required CFDictionaryCopyDescriptionCallBack copyDescription, - required CFDictionaryEqualCallBack equal, - required CFDictionaryHashCallBack hash, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal - ..ref.hash = hash; -} - -typedef CFDictionaryRef = ffi.Pointer<__CFDictionary>; -typedef CFDictionaryReleaseCallBack = - ffi.Pointer>; -typedef CFDictionaryReleaseCallBackFunction = - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); -typedef DartCFDictionaryReleaseCallBackFunction = - void Function(CFAllocatorRef allocator, ffi.Pointer value); -typedef CFDictionaryRetainCallBack = - ffi.Pointer>; -typedef CFDictionaryRetainCallBackFunction = - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer value, - ); - -final class CFDictionaryValueCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFDictionaryRetainCallBack retain; - - external CFDictionaryReleaseCallBack release; - - external CFDictionaryCopyDescriptionCallBack copyDescription; - - external CFDictionaryEqualCallBack equal; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFDictionaryRetainCallBack retain, - required CFDictionaryReleaseCallBack release, - required CFDictionaryCopyDescriptionCallBack copyDescription, - required CFDictionaryEqualCallBack equal, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal; -} - -typedef CFErrorDomain = CFStringRef; -typedef CFErrorRef = ffi.Pointer<__CFError>; -typedef CFFileDescriptorCallBack = - ffi.Pointer>; -typedef CFFileDescriptorCallBackFunction = - ffi.Void Function( - CFFileDescriptorRef f, - CFOptionFlags callBackTypes, - ffi.Pointer info, - ); -typedef DartCFFileDescriptorCallBackFunction = - void Function( - CFFileDescriptorRef f, - DartCFOptionFlags callBackTypes, - ffi.Pointer info, - ); - -final class CFFileDescriptorContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFFileDescriptorNativeDescriptor = ffi.Int; -typedef DartCFFileDescriptorNativeDescriptor = int; -typedef CFFileDescriptorRef = ffi.Pointer<__CFFileDescriptor>; - -sealed class CFFileSecurityClearOptions { - static const kCFFileSecurityClearOwner = 1; - static const kCFFileSecurityClearGroup = 2; - static const kCFFileSecurityClearMode = 4; - static const kCFFileSecurityClearOwnerUUID = 8; - static const kCFFileSecurityClearGroupUUID = 16; - static const kCFFileSecurityClearAccessControlList = 32; -} - -typedef CFFileSecurityRef = ffi.Pointer<__CFFileSecurity>; - -final class CFGregorianDate extends ffi.Struct { - @SInt32() - external int year; - - @SInt8() - external int month; - - @SInt8() - external int day; - - @SInt8() - external int hour; - - @SInt8() - external int minute; - - @ffi.Double() - external double second; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int year, - required int month, - required int day, - required int hour, - required int minute, - required double second, - }) => $allocator() - ..ref.year = year - ..ref.month = month - ..ref.day = day - ..ref.hour = hour - ..ref.minute = minute - ..ref.second = second; -} - -sealed class CFGregorianUnitFlags { - static const kCFGregorianUnitsYears = 1; - static const kCFGregorianUnitsMonths = 2; - static const kCFGregorianUnitsDays = 4; - static const kCFGregorianUnitsHours = 8; - static const kCFGregorianUnitsMinutes = 16; - static const kCFGregorianUnitsSeconds = 32; - static const kCFGregorianAllUnits = 16777215; -} - -final class CFGregorianUnits extends ffi.Struct { - @SInt32() - external int years; - - @SInt32() - external int months; - - @SInt32() - external int days; - - @SInt32() - external int hours; - - @SInt32() - external int minutes; - - @ffi.Double() - external double seconds; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int years, - required int months, - required int days, - required int hours, - required int minutes, - required double seconds, - }) => $allocator() - ..ref.years = years - ..ref.months = months - ..ref.days = days - ..ref.hours = hours - ..ref.minutes = minutes - ..ref.seconds = seconds; -} - -typedef CFHTTPAuthenticationRef = ffi.Pointer<_CFHTTPAuthentication>; -typedef CFHTTPMessageRef = ffi.Pointer<__CFHTTPMessage>; -typedef CFHashCode = ffi.UnsignedLong; -typedef DartCFHashCode = int; -typedef CFHostClientCallBack = - ffi.Pointer>; -typedef CFHostClientCallBackFunction = - ffi.Void Function( - CFHostRef theHost, - ffi.UnsignedInt typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFHostClientCallBackFunction = - void Function( - CFHostRef theHost, - CFHostInfoType typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ); - -@ffi.Packed(2) -final class CFHostClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -enum CFHostInfoType { - kCFHostAddresses(0), - kCFHostNames(1), - kCFHostReachability(2); - - final int value; - const CFHostInfoType(this.value); - - static CFHostInfoType fromValue(int value) => switch (value) { - 0 => kCFHostAddresses, - 1 => kCFHostNames, - 2 => kCFHostReachability, - _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), - }; -} - -typedef CFHostRef = ffi.Pointer<__CFHost>; - -sealed class CFISO8601DateFormatOptions { - static const kCFISO8601DateFormatWithYear = 1; - static const kCFISO8601DateFormatWithMonth = 2; - static const kCFISO8601DateFormatWithWeekOfYear = 4; - static const kCFISO8601DateFormatWithDay = 16; - static const kCFISO8601DateFormatWithTime = 32; - static const kCFISO8601DateFormatWithTimeZone = 64; - static const kCFISO8601DateFormatWithSpaceBetweenDateAndTime = 128; - static const kCFISO8601DateFormatWithDashSeparatorInDate = 256; - static const kCFISO8601DateFormatWithColonSeparatorInTime = 512; - static const kCFISO8601DateFormatWithColonSeparatorInTimeZone = 1024; - static const kCFISO8601DateFormatWithFractionalSeconds = 2048; - static const kCFISO8601DateFormatWithFullDate = 275; - static const kCFISO8601DateFormatWithFullTime = 1632; - static const kCFISO8601DateFormatWithInternetDateTime = 1907; -} - -typedef CFIndex = ffi.Long; -typedef DartCFIndex = int; -typedef CFLocaleIdentifier = CFStringRef; -typedef CFLocaleKey = CFStringRef; - -enum CFLocaleLanguageDirection { - kCFLocaleLanguageDirectionUnknown(0), - kCFLocaleLanguageDirectionLeftToRight(1), - kCFLocaleLanguageDirectionRightToLeft(2), - kCFLocaleLanguageDirectionTopToBottom(3), - kCFLocaleLanguageDirectionBottomToTop(4); - - final int value; - const CFLocaleLanguageDirection(this.value); - - static CFLocaleLanguageDirection fromValue(int value) => switch (value) { - 0 => kCFLocaleLanguageDirectionUnknown, - 1 => kCFLocaleLanguageDirectionLeftToRight, - 2 => kCFLocaleLanguageDirectionRightToLeft, - 3 => kCFLocaleLanguageDirectionTopToBottom, - 4 => kCFLocaleLanguageDirectionBottomToTop, - _ => throw ArgumentError( - 'Unknown value for CFLocaleLanguageDirection: $value', - ), - }; -} - -typedef CFLocaleRef = ffi.Pointer<__CFLocale>; -typedef CFMachPortCallBack = - ffi.Pointer>; -typedef CFMachPortCallBackFunction = - ffi.Void Function( - CFMachPortRef port, - ffi.Pointer msg, - CFIndex size, - ffi.Pointer info, - ); -typedef DartCFMachPortCallBackFunction = - void Function( - CFMachPortRef port, - ffi.Pointer msg, - DartCFIndex size, - ffi.Pointer info, - ); - -final class CFMachPortContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFMachPortInvalidationCallBack = - ffi.Pointer>; -typedef CFMachPortInvalidationCallBackFunction = - ffi.Void Function(CFMachPortRef port, ffi.Pointer info); -typedef DartCFMachPortInvalidationCallBackFunction = - void Function(CFMachPortRef port, ffi.Pointer info); -typedef CFMachPortRef = ffi.Pointer<__CFMachPort>; -typedef CFMessagePortCallBack = - ffi.Pointer>; -typedef CFMessagePortCallBackFunction = - CFDataRef Function( - CFMessagePortRef local, - SInt32 msgid, - CFDataRef data, - ffi.Pointer info, - ); -typedef DartCFMessagePortCallBackFunction = - CFDataRef Function( - CFMessagePortRef local, - DartSInt32 msgid, - CFDataRef data, - ffi.Pointer info, - ); - -final class CFMessagePortContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFMessagePortInvalidationCallBack = - ffi.Pointer>; -typedef CFMessagePortInvalidationCallBackFunction = - ffi.Void Function(CFMessagePortRef ms, ffi.Pointer info); -typedef DartCFMessagePortInvalidationCallBackFunction = - void Function(CFMessagePortRef ms, ffi.Pointer info); -typedef CFMessagePortRef = ffi.Pointer<__CFMessagePort>; -typedef CFMutableArrayRef = ffi.Pointer<__CFArray>; -typedef CFMutableAttributedStringRef = ffi.Pointer<__CFAttributedString>; -typedef CFMutableBagRef = ffi.Pointer<__CFBag>; -typedef CFMutableBitVectorRef = ffi.Pointer<__CFBitVector>; -typedef CFMutableCharacterSetRef = ffi.Pointer<__CFCharacterSet>; -typedef CFMutableDataRef = ffi.Pointer<__CFData>; -typedef CFMutableDictionaryRef = ffi.Pointer<__CFDictionary>; -typedef CFMutableSetRef = ffi.Pointer<__CFSet>; -typedef CFMutableStringRef = ffi.Pointer; -typedef CFNetDiagnosticRef = ffi.Pointer<__CFNetDiagnostic>; -typedef CFNetDiagnosticStatus = CFIndex; - -@Deprecated('Deprecated') -enum CFNetDiagnosticStatusValues { - kCFNetDiagnosticNoErr(0), - kCFNetDiagnosticErr(-66560), - kCFNetDiagnosticConnectionUp(-66559), - kCFNetDiagnosticConnectionIndeterminate(-66558), - kCFNetDiagnosticConnectionDown(-66557); - - final int value; - const CFNetDiagnosticStatusValues(this.value); - - static CFNetDiagnosticStatusValues fromValue(int value) => switch (value) { - 0 => kCFNetDiagnosticNoErr, - -66560 => kCFNetDiagnosticErr, - -66559 => kCFNetDiagnosticConnectionUp, - -66558 => kCFNetDiagnosticConnectionIndeterminate, - -66557 => kCFNetDiagnosticConnectionDown, - _ => throw ArgumentError( - 'Unknown value for CFNetDiagnosticStatusValues: $value', - ), - }; -} - -typedef CFNetServiceBrowserClientCallBack = - ffi.Pointer>; -typedef CFNetServiceBrowserClientCallBackFunction = - ffi.Void Function( - CFNetServiceBrowserRef browser, - CFOptionFlags flags, - CFTypeRef domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceBrowserClientCallBackFunction = - void Function( - CFNetServiceBrowserRef browser, - DartCFOptionFlags flags, - CFTypeRef domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ); - -sealed class CFNetServiceBrowserFlags { - static const kCFNetServiceFlagMoreComing = 1; - static const kCFNetServiceFlagIsDomain = 2; - static const kCFNetServiceFlagIsDefault = 4; - static const kCFNetServiceFlagIsRegistrationDomain = 4; - static const kCFNetServiceFlagRemove = 8; -} - -typedef CFNetServiceBrowserRef = ffi.Pointer<__CFNetServiceBrowser>; -typedef CFNetServiceClientCallBack = - ffi.Pointer>; -typedef CFNetServiceClientCallBackFunction = - ffi.Void Function( - CFNetServiceRef theService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceClientCallBackFunction = - void Function( - CFNetServiceRef theService, - ffi.Pointer error, - ffi.Pointer info, - ); - -@ffi.Packed(2) -final class CFNetServiceClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFNetServiceMonitorClientCallBack = - ffi.Pointer>; -typedef CFNetServiceMonitorClientCallBackFunction = - ffi.Void Function( - CFNetServiceMonitorRef theMonitor, - CFNetServiceRef theService, - ffi.UnsignedInt typeInfo, - CFDataRef rdata, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceMonitorClientCallBackFunction = - void Function( - CFNetServiceMonitorRef theMonitor, - CFNetServiceRef theService, - CFNetServiceMonitorType typeInfo, - CFDataRef rdata, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef CFNetServiceMonitorRef = ffi.Pointer<__CFNetServiceMonitor>; - -enum CFNetServiceMonitorType { - kCFNetServiceMonitorTXT(1); - - final int value; - const CFNetServiceMonitorType(this.value); - - static CFNetServiceMonitorType fromValue(int value) => switch (value) { - 1 => kCFNetServiceMonitorTXT, - _ => throw ArgumentError( - 'Unknown value for CFNetServiceMonitorType: $value', - ), - }; -} - -typedef CFNetServiceRef = ffi.Pointer<__CFNetService>; - -sealed class CFNetServiceRegisterFlags { - static const kCFNetServiceFlagNoAutoRename = 1; -} - -enum CFNetServicesError { - kCFNetServicesErrorUnknown(-72000), - kCFNetServicesErrorCollision(-72001), - kCFNetServicesErrorNotFound(-72002), - kCFNetServicesErrorInProgress(-72003), - kCFNetServicesErrorBadArgument(-72004), - kCFNetServicesErrorCancel(-72005), - kCFNetServicesErrorInvalid(-72006), - kCFNetServicesErrorTimeout(-72007), - kCFNetServicesErrorMissingRequiredConfiguration(-72008); - - final int value; - const CFNetServicesError(this.value); - - static CFNetServicesError fromValue(int value) => switch (value) { - -72000 => kCFNetServicesErrorUnknown, - -72001 => kCFNetServicesErrorCollision, - -72002 => kCFNetServicesErrorNotFound, - -72003 => kCFNetServicesErrorInProgress, - -72004 => kCFNetServicesErrorBadArgument, - -72005 => kCFNetServicesErrorCancel, - -72006 => kCFNetServicesErrorInvalid, - -72007 => kCFNetServicesErrorTimeout, - -72008 => kCFNetServicesErrorMissingRequiredConfiguration, - _ => throw ArgumentError('Unknown value for CFNetServicesError: $value'), - }; -} - -enum CFNetworkErrors { - kCFHostErrorHostNotFound(1), - kCFHostErrorUnknown(2), - kCFSOCKSErrorUnknownClientVersion(100), - kCFSOCKSErrorUnsupportedServerVersion(101), - kCFSOCKS4ErrorRequestFailed(110), - kCFSOCKS4ErrorIdentdFailed(111), - kCFSOCKS4ErrorIdConflict(112), - kCFSOCKS4ErrorUnknownStatusCode(113), - kCFSOCKS5ErrorBadState(120), - kCFSOCKS5ErrorBadResponseAddr(121), - kCFSOCKS5ErrorBadCredentials(122), - kCFSOCKS5ErrorUnsupportedNegotiationMethod(123), - kCFSOCKS5ErrorNoAcceptableMethod(124), - kCFFTPErrorUnexpectedStatusCode(200), - kCFErrorHTTPAuthenticationTypeUnsupported(300), - kCFErrorHTTPBadCredentials(301), - kCFErrorHTTPConnectionLost(302), - kCFErrorHTTPParseFailure(303), - kCFErrorHTTPRedirectionLoopDetected(304), - kCFErrorHTTPBadURL(305), - kCFErrorHTTPProxyConnectionFailure(306), - kCFErrorHTTPBadProxyCredentials(307), - kCFErrorPACFileError(308), - kCFErrorPACFileAuth(309), - kCFErrorHTTPSProxyConnectionFailure(310), - kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod(311), - kCFURLErrorBackgroundSessionInUseByAnotherProcess(-996), - kCFURLErrorBackgroundSessionWasDisconnected(-997), - kCFURLErrorUnknown(-998), - kCFURLErrorCancelled(-999), - kCFURLErrorBadURL(-1000), - kCFURLErrorTimedOut(-1001), - kCFURLErrorUnsupportedURL(-1002), - kCFURLErrorCannotFindHost(-1003), - kCFURLErrorCannotConnectToHost(-1004), - kCFURLErrorNetworkConnectionLost(-1005), - kCFURLErrorDNSLookupFailed(-1006), - kCFURLErrorHTTPTooManyRedirects(-1007), - kCFURLErrorResourceUnavailable(-1008), - kCFURLErrorNotConnectedToInternet(-1009), - kCFURLErrorRedirectToNonExistentLocation(-1010), - kCFURLErrorBadServerResponse(-1011), - kCFURLErrorUserCancelledAuthentication(-1012), - kCFURLErrorUserAuthenticationRequired(-1013), - kCFURLErrorZeroByteResource(-1014), - kCFURLErrorCannotDecodeRawData(-1015), - kCFURLErrorCannotDecodeContentData(-1016), - kCFURLErrorCannotParseResponse(-1017), - kCFURLErrorInternationalRoamingOff(-1018), - kCFURLErrorCallIsActive(-1019), - kCFURLErrorDataNotAllowed(-1020), - kCFURLErrorRequestBodyStreamExhausted(-1021), - kCFURLErrorAppTransportSecurityRequiresSecureConnection(-1022), - kCFURLErrorFileDoesNotExist(-1100), - kCFURLErrorFileIsDirectory(-1101), - kCFURLErrorNoPermissionsToReadFile(-1102), - kCFURLErrorDataLengthExceedsMaximum(-1103), - kCFURLErrorFileOutsideSafeArea(-1104), - kCFURLErrorSecureConnectionFailed(-1200), - kCFURLErrorServerCertificateHasBadDate(-1201), - kCFURLErrorServerCertificateUntrusted(-1202), - kCFURLErrorServerCertificateHasUnknownRoot(-1203), - kCFURLErrorServerCertificateNotYetValid(-1204), - kCFURLErrorClientCertificateRejected(-1205), - kCFURLErrorClientCertificateRequired(-1206), - kCFURLErrorCannotLoadFromNetwork(-2000), - kCFURLErrorCannotCreateFile(-3000), - kCFURLErrorCannotOpenFile(-3001), - kCFURLErrorCannotCloseFile(-3002), - kCFURLErrorCannotWriteToFile(-3003), - kCFURLErrorCannotRemoveFile(-3004), - kCFURLErrorCannotMoveFile(-3005), - kCFURLErrorDownloadDecodingFailedMidStream(-3006), - kCFURLErrorDownloadDecodingFailedToComplete(-3007), - kCFHTTPCookieCannotParseCookieFile(-4000), - kCFNetServiceErrorUnknown(-72000), - kCFNetServiceErrorCollision(-72001), - kCFNetServiceErrorNotFound(-72002), - kCFNetServiceErrorInProgress(-72003), - kCFNetServiceErrorBadArgument(-72004), - kCFNetServiceErrorCancel(-72005), - kCFNetServiceErrorInvalid(-72006), - kCFNetServiceErrorTimeout(-72007), - kCFNetServiceErrorDNSServiceFailure(-73000); - - final int value; - const CFNetworkErrors(this.value); - - static CFNetworkErrors fromValue(int value) => switch (value) { - 1 => kCFHostErrorHostNotFound, - 2 => kCFHostErrorUnknown, - 100 => kCFSOCKSErrorUnknownClientVersion, - 101 => kCFSOCKSErrorUnsupportedServerVersion, - 110 => kCFSOCKS4ErrorRequestFailed, - 111 => kCFSOCKS4ErrorIdentdFailed, - 112 => kCFSOCKS4ErrorIdConflict, - 113 => kCFSOCKS4ErrorUnknownStatusCode, - 120 => kCFSOCKS5ErrorBadState, - 121 => kCFSOCKS5ErrorBadResponseAddr, - 122 => kCFSOCKS5ErrorBadCredentials, - 123 => kCFSOCKS5ErrorUnsupportedNegotiationMethod, - 124 => kCFSOCKS5ErrorNoAcceptableMethod, - 200 => kCFFTPErrorUnexpectedStatusCode, - 300 => kCFErrorHTTPAuthenticationTypeUnsupported, - 301 => kCFErrorHTTPBadCredentials, - 302 => kCFErrorHTTPConnectionLost, - 303 => kCFErrorHTTPParseFailure, - 304 => kCFErrorHTTPRedirectionLoopDetected, - 305 => kCFErrorHTTPBadURL, - 306 => kCFErrorHTTPProxyConnectionFailure, - 307 => kCFErrorHTTPBadProxyCredentials, - 308 => kCFErrorPACFileError, - 309 => kCFErrorPACFileAuth, - 310 => kCFErrorHTTPSProxyConnectionFailure, - 311 => kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod, - -996 => kCFURLErrorBackgroundSessionInUseByAnotherProcess, - -997 => kCFURLErrorBackgroundSessionWasDisconnected, - -998 => kCFURLErrorUnknown, - -999 => kCFURLErrorCancelled, - -1000 => kCFURLErrorBadURL, - -1001 => kCFURLErrorTimedOut, - -1002 => kCFURLErrorUnsupportedURL, - -1003 => kCFURLErrorCannotFindHost, - -1004 => kCFURLErrorCannotConnectToHost, - -1005 => kCFURLErrorNetworkConnectionLost, - -1006 => kCFURLErrorDNSLookupFailed, - -1007 => kCFURLErrorHTTPTooManyRedirects, - -1008 => kCFURLErrorResourceUnavailable, - -1009 => kCFURLErrorNotConnectedToInternet, - -1010 => kCFURLErrorRedirectToNonExistentLocation, - -1011 => kCFURLErrorBadServerResponse, - -1012 => kCFURLErrorUserCancelledAuthentication, - -1013 => kCFURLErrorUserAuthenticationRequired, - -1014 => kCFURLErrorZeroByteResource, - -1015 => kCFURLErrorCannotDecodeRawData, - -1016 => kCFURLErrorCannotDecodeContentData, - -1017 => kCFURLErrorCannotParseResponse, - -1018 => kCFURLErrorInternationalRoamingOff, - -1019 => kCFURLErrorCallIsActive, - -1020 => kCFURLErrorDataNotAllowed, - -1021 => kCFURLErrorRequestBodyStreamExhausted, - -1022 => kCFURLErrorAppTransportSecurityRequiresSecureConnection, - -1100 => kCFURLErrorFileDoesNotExist, - -1101 => kCFURLErrorFileIsDirectory, - -1102 => kCFURLErrorNoPermissionsToReadFile, - -1103 => kCFURLErrorDataLengthExceedsMaximum, - -1104 => kCFURLErrorFileOutsideSafeArea, - -1200 => kCFURLErrorSecureConnectionFailed, - -1201 => kCFURLErrorServerCertificateHasBadDate, - -1202 => kCFURLErrorServerCertificateUntrusted, - -1203 => kCFURLErrorServerCertificateHasUnknownRoot, - -1204 => kCFURLErrorServerCertificateNotYetValid, - -1205 => kCFURLErrorClientCertificateRejected, - -1206 => kCFURLErrorClientCertificateRequired, - -2000 => kCFURLErrorCannotLoadFromNetwork, - -3000 => kCFURLErrorCannotCreateFile, - -3001 => kCFURLErrorCannotOpenFile, - -3002 => kCFURLErrorCannotCloseFile, - -3003 => kCFURLErrorCannotWriteToFile, - -3004 => kCFURLErrorCannotRemoveFile, - -3005 => kCFURLErrorCannotMoveFile, - -3006 => kCFURLErrorDownloadDecodingFailedMidStream, - -3007 => kCFURLErrorDownloadDecodingFailedToComplete, - -4000 => kCFHTTPCookieCannotParseCookieFile, - -72000 => kCFNetServiceErrorUnknown, - -72001 => kCFNetServiceErrorCollision, - -72002 => kCFNetServiceErrorNotFound, - -72003 => kCFNetServiceErrorInProgress, - -72004 => kCFNetServiceErrorBadArgument, - -72005 => kCFNetServiceErrorCancel, - -72006 => kCFNetServiceErrorInvalid, - -72007 => kCFNetServiceErrorTimeout, - -73000 => kCFNetServiceErrorDNSServiceFailure, - _ => throw ArgumentError('Unknown value for CFNetworkErrors: $value'), - }; -} - -typedef CFNotificationCallback = - ffi.Pointer>; -typedef CFNotificationCallbackFunction = - ffi.Void Function( - CFNotificationCenterRef center, - ffi.Pointer observer, - CFNotificationName name, - ffi.Pointer object, - CFDictionaryRef userInfo, - ); -typedef DartCFNotificationCallbackFunction = - void Function( - CFNotificationCenterRef center, - ffi.Pointer observer, - CFNotificationName name, - ffi.Pointer object, - CFDictionaryRef userInfo, - ); -typedef CFNotificationCenterRef = ffi.Pointer<__CFNotificationCenter>; -typedef CFNotificationName = CFStringRef; - -enum CFNotificationSuspensionBehavior { - CFNotificationSuspensionBehaviorDrop(1), - CFNotificationSuspensionBehaviorCoalesce(2), - CFNotificationSuspensionBehaviorHold(3), - CFNotificationSuspensionBehaviorDeliverImmediately(4); - - final int value; - const CFNotificationSuspensionBehavior(this.value); - - static CFNotificationSuspensionBehavior fromValue(int value) => - switch (value) { - 1 => CFNotificationSuspensionBehaviorDrop, - 2 => CFNotificationSuspensionBehaviorCoalesce, - 3 => CFNotificationSuspensionBehaviorHold, - 4 => CFNotificationSuspensionBehaviorDeliverImmediately, - _ => throw ArgumentError( - 'Unknown value for CFNotificationSuspensionBehavior: $value', - ), - }; -} - -typedef CFNullRef = ffi.Pointer<__CFNull>; -typedef CFNumberFormatterKey = CFStringRef; - -sealed class CFNumberFormatterOptionFlags { - static const kCFNumberFormatterParseIntegersOnly = 1; -} - -enum CFNumberFormatterPadPosition { - kCFNumberFormatterPadBeforePrefix(0), - kCFNumberFormatterPadAfterPrefix(1), - kCFNumberFormatterPadBeforeSuffix(2), - kCFNumberFormatterPadAfterSuffix(3); - - final int value; - const CFNumberFormatterPadPosition(this.value); - - static CFNumberFormatterPadPosition fromValue(int value) => switch (value) { - 0 => kCFNumberFormatterPadBeforePrefix, - 1 => kCFNumberFormatterPadAfterPrefix, - 2 => kCFNumberFormatterPadBeforeSuffix, - 3 => kCFNumberFormatterPadAfterSuffix, - _ => throw ArgumentError( - 'Unknown value for CFNumberFormatterPadPosition: $value', - ), - }; -} - -typedef CFNumberFormatterRef = ffi.Pointer<__CFNumberFormatter>; - -enum CFNumberFormatterRoundingMode { - kCFNumberFormatterRoundCeiling(0), - kCFNumberFormatterRoundFloor(1), - kCFNumberFormatterRoundDown(2), - kCFNumberFormatterRoundUp(3), - kCFNumberFormatterRoundHalfEven(4), - kCFNumberFormatterRoundHalfDown(5), - kCFNumberFormatterRoundHalfUp(6); - - final int value; - const CFNumberFormatterRoundingMode(this.value); - - static CFNumberFormatterRoundingMode fromValue(int value) => switch (value) { - 0 => kCFNumberFormatterRoundCeiling, - 1 => kCFNumberFormatterRoundFloor, - 2 => kCFNumberFormatterRoundDown, - 3 => kCFNumberFormatterRoundUp, - 4 => kCFNumberFormatterRoundHalfEven, - 5 => kCFNumberFormatterRoundHalfDown, - 6 => kCFNumberFormatterRoundHalfUp, - _ => throw ArgumentError( - 'Unknown value for CFNumberFormatterRoundingMode: $value', - ), - }; -} - -enum CFNumberFormatterStyle { - kCFNumberFormatterNoStyle(0), - kCFNumberFormatterDecimalStyle(1), - kCFNumberFormatterCurrencyStyle(2), - kCFNumberFormatterPercentStyle(3), - kCFNumberFormatterScientificStyle(4), - kCFNumberFormatterSpellOutStyle(5), - kCFNumberFormatterOrdinalStyle(6), - kCFNumberFormatterCurrencyISOCodeStyle(8), - kCFNumberFormatterCurrencyPluralStyle(9), - kCFNumberFormatterCurrencyAccountingStyle(10); - - final int value; - const CFNumberFormatterStyle(this.value); - - static CFNumberFormatterStyle fromValue(int value) => switch (value) { - 0 => kCFNumberFormatterNoStyle, - 1 => kCFNumberFormatterDecimalStyle, - 2 => kCFNumberFormatterCurrencyStyle, - 3 => kCFNumberFormatterPercentStyle, - 4 => kCFNumberFormatterScientificStyle, - 5 => kCFNumberFormatterSpellOutStyle, - 6 => kCFNumberFormatterOrdinalStyle, - 8 => kCFNumberFormatterCurrencyISOCodeStyle, - 9 => kCFNumberFormatterCurrencyPluralStyle, - 10 => kCFNumberFormatterCurrencyAccountingStyle, - _ => throw ArgumentError( - 'Unknown value for CFNumberFormatterStyle: $value', - ), - }; -} - -typedef CFNumberRef = ffi.Pointer<__CFNumber>; - -enum CFNumberType { - kCFNumberSInt8Type(1), - kCFNumberSInt16Type(2), - kCFNumberSInt32Type(3), - kCFNumberSInt64Type(4), - kCFNumberFloat32Type(5), - kCFNumberFloat64Type(6), - kCFNumberCharType(7), - kCFNumberShortType(8), - kCFNumberIntType(9), - kCFNumberLongType(10), - kCFNumberLongLongType(11), - kCFNumberFloatType(12), - kCFNumberDoubleType(13), - kCFNumberCFIndexType(14), - kCFNumberNSIntegerType(15), - kCFNumberCGFloatType(16); - - static const kCFNumberMaxType = kCFNumberCGFloatType; - - final int value; - const CFNumberType(this.value); - - static CFNumberType fromValue(int value) => switch (value) { - 1 => kCFNumberSInt8Type, - 2 => kCFNumberSInt16Type, - 3 => kCFNumberSInt32Type, - 4 => kCFNumberSInt64Type, - 5 => kCFNumberFloat32Type, - 6 => kCFNumberFloat64Type, - 7 => kCFNumberCharType, - 8 => kCFNumberShortType, - 9 => kCFNumberIntType, - 10 => kCFNumberLongType, - 11 => kCFNumberLongLongType, - 12 => kCFNumberFloatType, - 13 => kCFNumberDoubleType, - 14 => kCFNumberCFIndexType, - 15 => kCFNumberNSIntegerType, - 16 => kCFNumberCGFloatType, - _ => throw ArgumentError('Unknown value for CFNumberType: $value'), - }; - - @override - String toString() { - if (this == kCFNumberCGFloatType) - return "CFNumberType.kCFNumberCGFloatType, CFNumberType.kCFNumberMaxType"; - return super.toString(); - } -} - -typedef CFOptionFlags = ffi.UnsignedLong; -typedef DartCFOptionFlags = int; -typedef CFPlugInDynamicRegisterFunction = - ffi.Pointer>; -typedef CFPlugInDynamicRegisterFunctionFunction = - ffi.Void Function(CFPlugInRef plugIn); -typedef DartCFPlugInDynamicRegisterFunctionFunction = - void Function(CFPlugInRef plugIn); -typedef CFPlugInFactoryFunction = - ffi.Pointer>; -typedef CFPlugInFactoryFunctionFunction = - ffi.Pointer Function( - CFAllocatorRef allocator, - CFUUIDRef typeUUID, - ); -typedef CFPlugInInstanceDeallocateInstanceDataFunction = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = - ffi.Void Function(ffi.Pointer instanceData); -typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = - void Function(ffi.Pointer instanceData); -typedef CFPlugInInstanceGetInterfaceFunction = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CFPlugInInstanceGetInterfaceFunctionFunction = - Boolean Function( - CFPlugInInstanceRef instance, - CFStringRef interfaceName, - ffi.Pointer> ftbl, - ); -typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = - DartBoolean Function( - CFPlugInInstanceRef instance, - CFStringRef interfaceName, - ffi.Pointer> ftbl, - ); -typedef CFPlugInInstanceRef = ffi.Pointer<__CFPlugInInstance>; -typedef CFPlugInRef = ffi.Pointer<__CFBundle>; -typedef CFPlugInUnloadFunction = - ffi.Pointer>; -typedef CFPlugInUnloadFunctionFunction = ffi.Void Function(CFPlugInRef plugIn); -typedef DartCFPlugInUnloadFunctionFunction = void Function(CFPlugInRef plugIn); - -enum CFPropertyListFormat { - kCFPropertyListOpenStepFormat(1), - kCFPropertyListXMLFormat_v1_0(100), - kCFPropertyListBinaryFormat_v1_0(200); - - final int value; - const CFPropertyListFormat(this.value); - - static CFPropertyListFormat fromValue(int value) => switch (value) { - 1 => kCFPropertyListOpenStepFormat, - 100 => kCFPropertyListXMLFormat_v1_0, - 200 => kCFPropertyListBinaryFormat_v1_0, - _ => throw ArgumentError('Unknown value for CFPropertyListFormat: $value'), - }; -} - -sealed class CFPropertyListMutabilityOptions { - static const kCFPropertyListImmutable = 0; - static const kCFPropertyListMutableContainers = 1; - static const kCFPropertyListMutableContainersAndLeaves = 2; -} - -typedef CFPropertyListRef = CFTypeRef; -typedef CFProxyAutoConfigurationResultCallback = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CFProxyAutoConfigurationResultCallbackFunction = - ffi.Void Function( - ffi.Pointer client, - CFArrayRef proxyList, - CFErrorRef error, - ); -typedef DartCFProxyAutoConfigurationResultCallbackFunction = - void Function( - ffi.Pointer client, - CFArrayRef proxyList, - CFErrorRef error, - ); - -final class CFRange extends ffi.Struct { - @CFIndex() - external int location; - - @CFIndex() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int location, - required int length, - }) => $allocator() - ..ref.location = location - ..ref.length = length; -} - -typedef CFReadStreamClientCallBack = - ffi.Pointer>; -typedef CFReadStreamClientCallBackFunction = - ffi.Void Function( - CFReadStreamRef stream, - CFOptionFlags type, - ffi.Pointer clientCallBackInfo, - ); -typedef DartCFReadStreamClientCallBackFunction = - void Function( - CFReadStreamRef stream, - DartCFOptionFlags type, - ffi.Pointer clientCallBackInfo, - ); -typedef CFReadStreamRef = ffi.Pointer<__CFReadStream>; - -sealed class CFRunLoopActivity { - static const kCFRunLoopEntry = 1; - static const kCFRunLoopBeforeTimers = 2; - static const kCFRunLoopBeforeSources = 4; - static const kCFRunLoopBeforeWaiting = 32; - static const kCFRunLoopAfterWaiting = 64; - static const kCFRunLoopExit = 128; - static const kCFRunLoopAllActivities = 268435455; -} - -typedef CFRunLoopMode = CFStringRef; -typedef CFRunLoopObserverCallBack = - ffi.Pointer>; -typedef CFRunLoopObserverCallBackFunction = - ffi.Void Function( - CFRunLoopObserverRef observer, - CFOptionFlags activity, - ffi.Pointer info, - ); -typedef DartCFRunLoopObserverCallBackFunction = - void Function( - CFRunLoopObserverRef observer, - DartCFOptionFlags activity, - ffi.Pointer info, - ); - -final class CFRunLoopObserverContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFRunLoopObserverRef = ffi.Pointer<__CFRunLoopObserver>; -typedef CFRunLoopRef = ffi.Pointer; - -enum CFRunLoopRunResult { - kCFRunLoopRunFinished(1), - kCFRunLoopRunStopped(2), - kCFRunLoopRunTimedOut(3), - kCFRunLoopRunHandledSource(4); - - final int value; - const CFRunLoopRunResult(this.value); - - static CFRunLoopRunResult fromValue(int value) => switch (value) { - 1 => kCFRunLoopRunFinished, - 2 => kCFRunLoopRunStopped, - 3 => kCFRunLoopRunTimedOut, - 4 => kCFRunLoopRunHandledSource, - _ => throw ArgumentError('Unknown value for CFRunLoopRunResult: $value'), - }; -} - -final class CFRunLoopSourceContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - external ffi.Pointer< - ffi.NativeFunction< - Boolean Function(ffi.Pointer info1, ffi.Pointer info2) - > - > - equal; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - hash; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - CFRunLoopRef rl, - CFRunLoopMode mode, - ) - > - > - schedule; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - CFRunLoopRef rl, - CFRunLoopMode mode, - ) - > - > - cancel; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - perform; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - required ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer info1, - ffi.Pointer info2, - ) - > - > - equal, - required ffi.Pointer< - ffi.NativeFunction info)> - > - hash, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - CFRunLoopRef rl, - CFRunLoopMode mode, - ) - > - > - schedule, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - CFRunLoopRef rl, - CFRunLoopMode mode, - ) - > - > - cancel, - required ffi.Pointer< - ffi.NativeFunction info)> - > - perform, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal - ..ref.hash = hash - ..ref.schedule = schedule - ..ref.cancel = cancel - ..ref.perform = perform; -} - -final class CFRunLoopSourceContext1 extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - external ffi.Pointer< - ffi.NativeFunction< - Boolean Function(ffi.Pointer info1, ffi.Pointer info2) - > - > - equal; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - hash; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - getPort; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer msg, - CFIndex size, - CFAllocatorRef allocator, - ffi.Pointer info, - ) - > - > - perform; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - required ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer info1, - ffi.Pointer info2, - ) - > - > - equal, - required ffi.Pointer< - ffi.NativeFunction info)> - > - hash, - required ffi.Pointer< - ffi.NativeFunction info)> - > - getPort, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer msg, - CFIndex size, - CFAllocatorRef allocator, - ffi.Pointer info, - ) - > - > - perform, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal - ..ref.hash = hash - ..ref.getPort = getPort - ..ref.perform = perform; -} - -typedef CFRunLoopSourceRef = ffi.Pointer<__CFRunLoopSource>; -typedef CFRunLoopTimerCallBack = - ffi.Pointer>; -typedef CFRunLoopTimerCallBackFunction = - ffi.Void Function(CFRunLoopTimerRef timer, ffi.Pointer info); -typedef DartCFRunLoopTimerCallBackFunction = - void Function(CFRunLoopTimerRef timer, ffi.Pointer info); - -final class CFRunLoopTimerContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFRunLoopTimerRef = ffi.Pointer<__CFRunLoopTimer>; -typedef CFSetApplierFunction = - ffi.Pointer>; -typedef CFSetApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFSetApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); - -final class CFSetCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFSetRetainCallBack retain; - - external CFSetReleaseCallBack release; - - external CFSetCopyDescriptionCallBack copyDescription; - - external CFSetEqualCallBack equal; - - external CFSetHashCallBack hash; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFSetRetainCallBack retain, - required CFSetReleaseCallBack release, - required CFSetCopyDescriptionCallBack copyDescription, - required CFSetEqualCallBack equal, - required CFSetHashCallBack hash, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal - ..ref.hash = hash; -} - -typedef CFSetCopyDescriptionCallBack = - ffi.Pointer>; -typedef CFSetCopyDescriptionCallBackFunction = - CFStringRef Function(ffi.Pointer value); -typedef CFSetEqualCallBack = - ffi.Pointer>; -typedef CFSetEqualCallBackFunction = - Boolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFSetEqualCallBackFunction = - DartBoolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef CFSetHashCallBack = - ffi.Pointer>; -typedef CFSetHashCallBackFunction = - CFHashCode Function(ffi.Pointer value); -typedef DartCFSetHashCallBackFunction = - DartCFHashCode Function(ffi.Pointer value); -typedef CFSetRef = ffi.Pointer<__CFSet>; -typedef CFSetReleaseCallBack = - ffi.Pointer>; -typedef CFSetReleaseCallBackFunction = - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value); -typedef DartCFSetReleaseCallBackFunction = - void Function(CFAllocatorRef allocator, ffi.Pointer value); -typedef CFSetRetainCallBack = - ffi.Pointer>; -typedef CFSetRetainCallBackFunction = - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer value, - ); -typedef CFSocketCallBack = - ffi.Pointer>; -typedef CFSocketCallBackFunction = - ffi.Void Function( - CFSocketRef s, - CFOptionFlags type, - CFDataRef address, - ffi.Pointer data, - ffi.Pointer info, - ); -typedef DartCFSocketCallBackFunction = - void Function( - CFSocketRef s, - DartCFOptionFlags type, - CFDataRef address, - ffi.Pointer data, - ffi.Pointer info, - ); - -sealed class CFSocketCallBackType { - static const kCFSocketNoCallBack = 0; - static const kCFSocketReadCallBack = 1; - static const kCFSocketAcceptCallBack = 2; - static const kCFSocketDataCallBack = 3; - static const kCFSocketConnectCallBack = 4; - static const kCFSocketWriteCallBack = 8; -} - -final class CFSocketContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -enum CFSocketError { - kCFSocketSuccess(0), - kCFSocketError(-1), - kCFSocketTimeout(-2); - - final int value; - const CFSocketError(this.value); - - static CFSocketError fromValue(int value) => switch (value) { - 0 => kCFSocketSuccess, - -1 => kCFSocketError, - -2 => kCFSocketTimeout, - _ => throw ArgumentError('Unknown value for CFSocketError: $value'), - }; -} - -typedef CFSocketNativeHandle = ffi.Int; -typedef DartCFSocketNativeHandle = int; -typedef CFSocketRef = ffi.Pointer<__CFSocket>; - -final class CFSocketSignature extends ffi.Struct { - @SInt32() - external int protocolFamily; - - @SInt32() - external int socketType; - - @SInt32() - external int protocol; - - external CFDataRef address; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protocolFamily, - required int socketType, - required int protocol, - required CFDataRef address, - }) => $allocator() - ..ref.protocolFamily = protocolFamily - ..ref.socketType = socketType - ..ref.protocol = protocol - ..ref.address = address; -} - -final class CFStreamClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -final class CFStreamError extends ffi.Struct { - @CFIndex() - external int domain; - - @SInt32() - external int error; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int domain, - required int error, - }) => $allocator() - ..ref.domain = domain - ..ref.error = error; -} - -enum CFStreamErrorDomain { - kCFStreamErrorDomainCustom(-1), - kCFStreamErrorDomainPOSIX(1), - kCFStreamErrorDomainMacOSStatus(2); - - final int value; - const CFStreamErrorDomain(this.value); - - static CFStreamErrorDomain fromValue(int value) => switch (value) { - -1 => kCFStreamErrorDomainCustom, - 1 => kCFStreamErrorDomainPOSIX, - 2 => kCFStreamErrorDomainMacOSStatus, - _ => throw ArgumentError('Unknown value for CFStreamErrorDomain: $value'), - }; -} - -enum CFStreamErrorHTTP { - kCFStreamErrorHTTPParseFailure(-1), - kCFStreamErrorHTTPRedirectionLoop(-2), - kCFStreamErrorHTTPBadURL(-3); - - final int value; - const CFStreamErrorHTTP(this.value); - - static CFStreamErrorHTTP fromValue(int value) => switch (value) { - -1 => kCFStreamErrorHTTPParseFailure, - -2 => kCFStreamErrorHTTPRedirectionLoop, - -3 => kCFStreamErrorHTTPBadURL, - _ => throw ArgumentError('Unknown value for CFStreamErrorHTTP: $value'), - }; -} - -enum CFStreamErrorHTTPAuthentication { - kCFStreamErrorHTTPAuthenticationTypeUnsupported(-1000), - kCFStreamErrorHTTPAuthenticationBadUserName(-1001), - kCFStreamErrorHTTPAuthenticationBadPassword(-1002); - - final int value; - const CFStreamErrorHTTPAuthentication(this.value); - - static CFStreamErrorHTTPAuthentication fromValue(int value) => - switch (value) { - -1000 => kCFStreamErrorHTTPAuthenticationTypeUnsupported, - -1001 => kCFStreamErrorHTTPAuthenticationBadUserName, - -1002 => kCFStreamErrorHTTPAuthenticationBadPassword, - _ => throw ArgumentError( - 'Unknown value for CFStreamErrorHTTPAuthentication: $value', - ), - }; -} - -sealed class CFStreamEventType { - static const kCFStreamEventNone = 0; - static const kCFStreamEventOpenCompleted = 1; - static const kCFStreamEventHasBytesAvailable = 2; - static const kCFStreamEventCanAcceptBytes = 4; - static const kCFStreamEventErrorOccurred = 8; - static const kCFStreamEventEndEncountered = 16; -} - -typedef CFStreamPropertyKey = CFStringRef; - -enum CFStreamStatus { - kCFStreamStatusNotOpen(0), - kCFStreamStatusOpening(1), - kCFStreamStatusOpen(2), - kCFStreamStatusReading(3), - kCFStreamStatusWriting(4), - kCFStreamStatusAtEnd(5), - kCFStreamStatusClosed(6), - kCFStreamStatusError(7); - - final int value; - const CFStreamStatus(this.value); - - static CFStreamStatus fromValue(int value) => switch (value) { - 0 => kCFStreamStatusNotOpen, - 1 => kCFStreamStatusOpening, - 2 => kCFStreamStatusOpen, - 3 => kCFStreamStatusReading, - 4 => kCFStreamStatusWriting, - 5 => kCFStreamStatusAtEnd, - 6 => kCFStreamStatusClosed, - 7 => kCFStreamStatusError, - _ => throw ArgumentError('Unknown value for CFStreamStatus: $value'), - }; -} - -enum CFStringBuiltInEncodings { - kCFStringEncodingMacRoman(0), - kCFStringEncodingWindowsLatin1(1280), - kCFStringEncodingISOLatin1(513), - kCFStringEncodingNextStepLatin(2817), - kCFStringEncodingASCII(1536), - kCFStringEncodingUnicode(256), - kCFStringEncodingUTF8(134217984), - kCFStringEncodingNonLossyASCII(3071), - kCFStringEncodingUTF16BE(268435712), - kCFStringEncodingUTF16LE(335544576), - kCFStringEncodingUTF32(201326848), - kCFStringEncodingUTF32BE(402653440), - kCFStringEncodingUTF32LE(469762304); - - static const kCFStringEncodingUTF16 = kCFStringEncodingUnicode; - - final int value; - const CFStringBuiltInEncodings(this.value); - - static CFStringBuiltInEncodings fromValue(int value) => switch (value) { - 0 => kCFStringEncodingMacRoman, - 1280 => kCFStringEncodingWindowsLatin1, - 513 => kCFStringEncodingISOLatin1, - 2817 => kCFStringEncodingNextStepLatin, - 1536 => kCFStringEncodingASCII, - 256 => kCFStringEncodingUnicode, - 134217984 => kCFStringEncodingUTF8, - 3071 => kCFStringEncodingNonLossyASCII, - 268435712 => kCFStringEncodingUTF16BE, - 335544576 => kCFStringEncodingUTF16LE, - 201326848 => kCFStringEncodingUTF32, - 402653440 => kCFStringEncodingUTF32BE, - 469762304 => kCFStringEncodingUTF32LE, - _ => throw ArgumentError( - 'Unknown value for CFStringBuiltInEncodings: $value', - ), - }; - - @override - String toString() { - if (this == kCFStringEncodingUnicode) - return "CFStringBuiltInEncodings.kCFStringEncodingUnicode, CFStringBuiltInEncodings.kCFStringEncodingUTF16"; - return super.toString(); - } -} - -sealed class CFStringCompareFlags { - static const kCFCompareCaseInsensitive = 1; - static const kCFCompareBackwards = 4; - static const kCFCompareAnchored = 8; - static const kCFCompareNonliteral = 16; - static const kCFCompareLocalized = 32; - static const kCFCompareNumerically = 64; - static const kCFCompareDiacriticInsensitive = 128; - static const kCFCompareWidthInsensitive = 256; - static const kCFCompareForcedOrdering = 512; -} - -typedef CFStringEncoding = UInt32; - -enum CFStringEncodings { - kCFStringEncodingMacJapanese(1), - kCFStringEncodingMacChineseTrad(2), - kCFStringEncodingMacKorean(3), - kCFStringEncodingMacArabic(4), - kCFStringEncodingMacHebrew(5), - kCFStringEncodingMacGreek(6), - kCFStringEncodingMacCyrillic(7), - kCFStringEncodingMacDevanagari(9), - kCFStringEncodingMacGurmukhi(10), - kCFStringEncodingMacGujarati(11), - kCFStringEncodingMacOriya(12), - kCFStringEncodingMacBengali(13), - kCFStringEncodingMacTamil(14), - kCFStringEncodingMacTelugu(15), - kCFStringEncodingMacKannada(16), - kCFStringEncodingMacMalayalam(17), - kCFStringEncodingMacSinhalese(18), - kCFStringEncodingMacBurmese(19), - kCFStringEncodingMacKhmer(20), - kCFStringEncodingMacThai(21), - kCFStringEncodingMacLaotian(22), - kCFStringEncodingMacGeorgian(23), - kCFStringEncodingMacArmenian(24), - kCFStringEncodingMacChineseSimp(25), - kCFStringEncodingMacTibetan(26), - kCFStringEncodingMacMongolian(27), - kCFStringEncodingMacEthiopic(28), - kCFStringEncodingMacCentralEurRoman(29), - kCFStringEncodingMacVietnamese(30), - kCFStringEncodingMacExtArabic(31), - kCFStringEncodingMacSymbol(33), - kCFStringEncodingMacDingbats(34), - kCFStringEncodingMacTurkish(35), - kCFStringEncodingMacCroatian(36), - kCFStringEncodingMacIcelandic(37), - kCFStringEncodingMacRomanian(38), - kCFStringEncodingMacCeltic(39), - kCFStringEncodingMacGaelic(40), - kCFStringEncodingMacFarsi(140), - kCFStringEncodingMacUkrainian(152), - kCFStringEncodingMacInuit(236), - kCFStringEncodingMacVT100(252), - kCFStringEncodingMacHFS(255), - kCFStringEncodingISOLatin2(514), - kCFStringEncodingISOLatin3(515), - kCFStringEncodingISOLatin4(516), - kCFStringEncodingISOLatinCyrillic(517), - kCFStringEncodingISOLatinArabic(518), - kCFStringEncodingISOLatinGreek(519), - kCFStringEncodingISOLatinHebrew(520), - kCFStringEncodingISOLatin5(521), - kCFStringEncodingISOLatin6(522), - kCFStringEncodingISOLatinThai(523), - kCFStringEncodingISOLatin7(525), - kCFStringEncodingISOLatin8(526), - kCFStringEncodingISOLatin9(527), - kCFStringEncodingISOLatin10(528), - kCFStringEncodingDOSLatinUS(1024), - kCFStringEncodingDOSGreek(1029), - kCFStringEncodingDOSBalticRim(1030), - kCFStringEncodingDOSLatin1(1040), - kCFStringEncodingDOSGreek1(1041), - kCFStringEncodingDOSLatin2(1042), - kCFStringEncodingDOSCyrillic(1043), - kCFStringEncodingDOSTurkish(1044), - kCFStringEncodingDOSPortuguese(1045), - kCFStringEncodingDOSIcelandic(1046), - kCFStringEncodingDOSHebrew(1047), - kCFStringEncodingDOSCanadianFrench(1048), - kCFStringEncodingDOSArabic(1049), - kCFStringEncodingDOSNordic(1050), - kCFStringEncodingDOSRussian(1051), - kCFStringEncodingDOSGreek2(1052), - kCFStringEncodingDOSThai(1053), - kCFStringEncodingDOSJapanese(1056), - kCFStringEncodingDOSChineseSimplif(1057), - kCFStringEncodingDOSKorean(1058), - kCFStringEncodingDOSChineseTrad(1059), - kCFStringEncodingWindowsLatin2(1281), - kCFStringEncodingWindowsCyrillic(1282), - kCFStringEncodingWindowsGreek(1283), - kCFStringEncodingWindowsLatin5(1284), - kCFStringEncodingWindowsHebrew(1285), - kCFStringEncodingWindowsArabic(1286), - kCFStringEncodingWindowsBalticRim(1287), - kCFStringEncodingWindowsVietnamese(1288), - kCFStringEncodingWindowsKoreanJohab(1296), - kCFStringEncodingANSEL(1537), - kCFStringEncodingJIS_X0201_76(1568), - kCFStringEncodingJIS_X0208_83(1569), - kCFStringEncodingJIS_X0208_90(1570), - kCFStringEncodingJIS_X0212_90(1571), - kCFStringEncodingJIS_C6226_78(1572), - kCFStringEncodingShiftJIS_X0213(1576), - kCFStringEncodingShiftJIS_X0213_MenKuTen(1577), - kCFStringEncodingGB_2312_80(1584), - kCFStringEncodingGBK_95(1585), - kCFStringEncodingGB_18030_2000(1586), - kCFStringEncodingKSC_5601_87(1600), - kCFStringEncodingKSC_5601_92_Johab(1601), - kCFStringEncodingCNS_11643_92_P1(1617), - kCFStringEncodingCNS_11643_92_P2(1618), - kCFStringEncodingCNS_11643_92_P3(1619), - kCFStringEncodingISO_2022_JP(2080), - kCFStringEncodingISO_2022_JP_2(2081), - kCFStringEncodingISO_2022_JP_1(2082), - kCFStringEncodingISO_2022_JP_3(2083), - kCFStringEncodingISO_2022_CN(2096), - kCFStringEncodingISO_2022_CN_EXT(2097), - kCFStringEncodingISO_2022_KR(2112), - kCFStringEncodingEUC_JP(2336), - kCFStringEncodingEUC_CN(2352), - kCFStringEncodingEUC_TW(2353), - kCFStringEncodingEUC_KR(2368), - kCFStringEncodingShiftJIS(2561), - kCFStringEncodingKOI8_R(2562), - kCFStringEncodingBig5(2563), - kCFStringEncodingMacRomanLatin1(2564), - kCFStringEncodingHZ_GB_2312(2565), - kCFStringEncodingBig5_HKSCS_1999(2566), - kCFStringEncodingVISCII(2567), - kCFStringEncodingKOI8_U(2568), - kCFStringEncodingBig5_E(2569), - kCFStringEncodingNextStepJapanese(2818), - kCFStringEncodingEBCDIC_US(3073), - kCFStringEncodingEBCDIC_CP037(3074), - kCFStringEncodingUTF7(67109120), - kCFStringEncodingUTF7_IMAP(2576); - - static const kCFStringEncodingShiftJIS_X0213_00 = - kCFStringEncodingShiftJIS_X0213; - - final int value; - const CFStringEncodings(this.value); - - static CFStringEncodings fromValue(int value) => switch (value) { - 1 => kCFStringEncodingMacJapanese, - 2 => kCFStringEncodingMacChineseTrad, - 3 => kCFStringEncodingMacKorean, - 4 => kCFStringEncodingMacArabic, - 5 => kCFStringEncodingMacHebrew, - 6 => kCFStringEncodingMacGreek, - 7 => kCFStringEncodingMacCyrillic, - 9 => kCFStringEncodingMacDevanagari, - 10 => kCFStringEncodingMacGurmukhi, - 11 => kCFStringEncodingMacGujarati, - 12 => kCFStringEncodingMacOriya, - 13 => kCFStringEncodingMacBengali, - 14 => kCFStringEncodingMacTamil, - 15 => kCFStringEncodingMacTelugu, - 16 => kCFStringEncodingMacKannada, - 17 => kCFStringEncodingMacMalayalam, - 18 => kCFStringEncodingMacSinhalese, - 19 => kCFStringEncodingMacBurmese, - 20 => kCFStringEncodingMacKhmer, - 21 => kCFStringEncodingMacThai, - 22 => kCFStringEncodingMacLaotian, - 23 => kCFStringEncodingMacGeorgian, - 24 => kCFStringEncodingMacArmenian, - 25 => kCFStringEncodingMacChineseSimp, - 26 => kCFStringEncodingMacTibetan, - 27 => kCFStringEncodingMacMongolian, - 28 => kCFStringEncodingMacEthiopic, - 29 => kCFStringEncodingMacCentralEurRoman, - 30 => kCFStringEncodingMacVietnamese, - 31 => kCFStringEncodingMacExtArabic, - 33 => kCFStringEncodingMacSymbol, - 34 => kCFStringEncodingMacDingbats, - 35 => kCFStringEncodingMacTurkish, - 36 => kCFStringEncodingMacCroatian, - 37 => kCFStringEncodingMacIcelandic, - 38 => kCFStringEncodingMacRomanian, - 39 => kCFStringEncodingMacCeltic, - 40 => kCFStringEncodingMacGaelic, - 140 => kCFStringEncodingMacFarsi, - 152 => kCFStringEncodingMacUkrainian, - 236 => kCFStringEncodingMacInuit, - 252 => kCFStringEncodingMacVT100, - 255 => kCFStringEncodingMacHFS, - 514 => kCFStringEncodingISOLatin2, - 515 => kCFStringEncodingISOLatin3, - 516 => kCFStringEncodingISOLatin4, - 517 => kCFStringEncodingISOLatinCyrillic, - 518 => kCFStringEncodingISOLatinArabic, - 519 => kCFStringEncodingISOLatinGreek, - 520 => kCFStringEncodingISOLatinHebrew, - 521 => kCFStringEncodingISOLatin5, - 522 => kCFStringEncodingISOLatin6, - 523 => kCFStringEncodingISOLatinThai, - 525 => kCFStringEncodingISOLatin7, - 526 => kCFStringEncodingISOLatin8, - 527 => kCFStringEncodingISOLatin9, - 528 => kCFStringEncodingISOLatin10, - 1024 => kCFStringEncodingDOSLatinUS, - 1029 => kCFStringEncodingDOSGreek, - 1030 => kCFStringEncodingDOSBalticRim, - 1040 => kCFStringEncodingDOSLatin1, - 1041 => kCFStringEncodingDOSGreek1, - 1042 => kCFStringEncodingDOSLatin2, - 1043 => kCFStringEncodingDOSCyrillic, - 1044 => kCFStringEncodingDOSTurkish, - 1045 => kCFStringEncodingDOSPortuguese, - 1046 => kCFStringEncodingDOSIcelandic, - 1047 => kCFStringEncodingDOSHebrew, - 1048 => kCFStringEncodingDOSCanadianFrench, - 1049 => kCFStringEncodingDOSArabic, - 1050 => kCFStringEncodingDOSNordic, - 1051 => kCFStringEncodingDOSRussian, - 1052 => kCFStringEncodingDOSGreek2, - 1053 => kCFStringEncodingDOSThai, - 1056 => kCFStringEncodingDOSJapanese, - 1057 => kCFStringEncodingDOSChineseSimplif, - 1058 => kCFStringEncodingDOSKorean, - 1059 => kCFStringEncodingDOSChineseTrad, - 1281 => kCFStringEncodingWindowsLatin2, - 1282 => kCFStringEncodingWindowsCyrillic, - 1283 => kCFStringEncodingWindowsGreek, - 1284 => kCFStringEncodingWindowsLatin5, - 1285 => kCFStringEncodingWindowsHebrew, - 1286 => kCFStringEncodingWindowsArabic, - 1287 => kCFStringEncodingWindowsBalticRim, - 1288 => kCFStringEncodingWindowsVietnamese, - 1296 => kCFStringEncodingWindowsKoreanJohab, - 1537 => kCFStringEncodingANSEL, - 1568 => kCFStringEncodingJIS_X0201_76, - 1569 => kCFStringEncodingJIS_X0208_83, - 1570 => kCFStringEncodingJIS_X0208_90, - 1571 => kCFStringEncodingJIS_X0212_90, - 1572 => kCFStringEncodingJIS_C6226_78, - 1576 => kCFStringEncodingShiftJIS_X0213, - 1577 => kCFStringEncodingShiftJIS_X0213_MenKuTen, - 1584 => kCFStringEncodingGB_2312_80, - 1585 => kCFStringEncodingGBK_95, - 1586 => kCFStringEncodingGB_18030_2000, - 1600 => kCFStringEncodingKSC_5601_87, - 1601 => kCFStringEncodingKSC_5601_92_Johab, - 1617 => kCFStringEncodingCNS_11643_92_P1, - 1618 => kCFStringEncodingCNS_11643_92_P2, - 1619 => kCFStringEncodingCNS_11643_92_P3, - 2080 => kCFStringEncodingISO_2022_JP, - 2081 => kCFStringEncodingISO_2022_JP_2, - 2082 => kCFStringEncodingISO_2022_JP_1, - 2083 => kCFStringEncodingISO_2022_JP_3, - 2096 => kCFStringEncodingISO_2022_CN, - 2097 => kCFStringEncodingISO_2022_CN_EXT, - 2112 => kCFStringEncodingISO_2022_KR, - 2336 => kCFStringEncodingEUC_JP, - 2352 => kCFStringEncodingEUC_CN, - 2353 => kCFStringEncodingEUC_TW, - 2368 => kCFStringEncodingEUC_KR, - 2561 => kCFStringEncodingShiftJIS, - 2562 => kCFStringEncodingKOI8_R, - 2563 => kCFStringEncodingBig5, - 2564 => kCFStringEncodingMacRomanLatin1, - 2565 => kCFStringEncodingHZ_GB_2312, - 2566 => kCFStringEncodingBig5_HKSCS_1999, - 2567 => kCFStringEncodingVISCII, - 2568 => kCFStringEncodingKOI8_U, - 2569 => kCFStringEncodingBig5_E, - 2818 => kCFStringEncodingNextStepJapanese, - 3073 => kCFStringEncodingEBCDIC_US, - 3074 => kCFStringEncodingEBCDIC_CP037, - 67109120 => kCFStringEncodingUTF7, - 2576 => kCFStringEncodingUTF7_IMAP, - _ => throw ArgumentError('Unknown value for CFStringEncodings: $value'), - }; - - @override - String toString() { - if (this == kCFStringEncodingShiftJIS_X0213) - return "CFStringEncodings.kCFStringEncodingShiftJIS_X0213, CFStringEncodings.kCFStringEncodingShiftJIS_X0213_00"; - return super.toString(); - } -} - -final class CFStringInlineBuffer extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array buffer; - - external CFStringRef theString; - - external ffi.Pointer directUniCharBuffer; - - external ffi.Pointer directCStringBuffer; - - external CFRange rangeToBuffer; - - @CFIndex() - external int bufferedRangeStart; - - @CFIndex() - external int bufferedRangeEnd; -} - -enum CFStringNormalizationForm { - kCFStringNormalizationFormD(0), - kCFStringNormalizationFormKD(1), - kCFStringNormalizationFormC(2), - kCFStringNormalizationFormKC(3); - - final int value; - const CFStringNormalizationForm(this.value); - - static CFStringNormalizationForm fromValue(int value) => switch (value) { - 0 => kCFStringNormalizationFormD, - 1 => kCFStringNormalizationFormKD, - 2 => kCFStringNormalizationFormC, - 3 => kCFStringNormalizationFormKC, - _ => throw ArgumentError( - 'Unknown value for CFStringNormalizationForm: $value', - ), - }; -} - -typedef CFStringRef = ffi.Pointer; -typedef CFStringTokenizerRef = ffi.Pointer<__CFStringTokenizer>; - -sealed class CFStringTokenizerTokenType { - static const kCFStringTokenizerTokenNone = 0; - static const kCFStringTokenizerTokenNormal = 1; - static const kCFStringTokenizerTokenHasSubTokensMask = 2; - static const kCFStringTokenizerTokenHasDerivedSubTokensMask = 4; - static const kCFStringTokenizerTokenHasHasNumbersMask = 8; - static const kCFStringTokenizerTokenHasNonLettersMask = 16; - static const kCFStringTokenizerTokenIsCJWordMask = 32; -} - -final class CFSwappedFloat32 extends ffi.Struct { - @ffi.Uint32() - external int v; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - }) => $allocator()..ref.v = v; -} - -final class CFSwappedFloat64 extends ffi.Struct { - @ffi.Uint64() - external int v; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - }) => $allocator()..ref.v = v; -} - -typedef CFTimeInterval = ffi.Double; -typedef DartCFTimeInterval = double; - -enum CFTimeZoneNameStyle { - kCFTimeZoneNameStyleStandard(0), - kCFTimeZoneNameStyleShortStandard(1), - kCFTimeZoneNameStyleDaylightSaving(2), - kCFTimeZoneNameStyleShortDaylightSaving(3), - kCFTimeZoneNameStyleGeneric(4), - kCFTimeZoneNameStyleShortGeneric(5); - - final int value; - const CFTimeZoneNameStyle(this.value); - - static CFTimeZoneNameStyle fromValue(int value) => switch (value) { - 0 => kCFTimeZoneNameStyleStandard, - 1 => kCFTimeZoneNameStyleShortStandard, - 2 => kCFTimeZoneNameStyleDaylightSaving, - 3 => kCFTimeZoneNameStyleShortDaylightSaving, - 4 => kCFTimeZoneNameStyleGeneric, - 5 => kCFTimeZoneNameStyleShortGeneric, - _ => throw ArgumentError('Unknown value for CFTimeZoneNameStyle: $value'), - }; -} - -typedef CFTimeZoneRef = ffi.Pointer<__CFTimeZone>; -typedef CFTreeApplierFunction = - ffi.Pointer>; -typedef CFTreeApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFTreeApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); - -final class CFTreeContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFTreeRetainCallBack retain; - - external CFTreeReleaseCallBack release; - - external CFTreeCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFTreeRetainCallBack retain, - required CFTreeReleaseCallBack release, - required CFTreeCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFTreeCopyDescriptionCallBack = - ffi.Pointer>; -typedef CFTreeCopyDescriptionCallBackFunction = - CFStringRef Function(ffi.Pointer info); -typedef CFTreeRef = ffi.Pointer<__CFTree>; -typedef CFTreeReleaseCallBack = - ffi.Pointer>; -typedef CFTreeReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFTreeReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFTreeRetainCallBack = - ffi.Pointer>; -typedef CFTreeRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFTypeID = ffi.UnsignedLong; -typedef DartCFTypeID = int; -typedef CFTypeRef = ffi.Pointer; - -sealed class CFURLBookmarkCreationOptions { - static const kCFURLBookmarkCreationMinimalBookmarkMask = 512; - static const kCFURLBookmarkCreationSuitableForBookmarkFile = 1024; - static const kCFURLBookmarkCreationWithSecurityScope = 2048; - static const kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; - static const kCFURLBookmarkCreationWithoutImplicitSecurityScope = 536870912; - static const kCFURLBookmarkCreationPreferFileIDResolutionMask = 256; -} - -typedef CFURLBookmarkFileCreationOptions = CFOptionFlags; - -sealed class CFURLBookmarkResolutionOptions { - static const kCFURLBookmarkResolutionWithoutUIMask = 256; - static const kCFURLBookmarkResolutionWithoutMountingMask = 512; - static const kCFURLBookmarkResolutionWithSecurityScope = 1024; - static const kCFURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; - static const kCFBookmarkResolutionWithoutUIMask = 256; - static const kCFBookmarkResolutionWithoutMountingMask = 512; -} - -enum CFURLComponentType { - kCFURLComponentScheme(1), - kCFURLComponentNetLocation(2), - kCFURLComponentPath(3), - kCFURLComponentResourceSpecifier(4), - kCFURLComponentUser(5), - kCFURLComponentPassword(6), - kCFURLComponentUserInfo(7), - kCFURLComponentHost(8), - kCFURLComponentPort(9), - kCFURLComponentParameterString(10), - kCFURLComponentQuery(11), - kCFURLComponentFragment(12); - - final int value; - const CFURLComponentType(this.value); - - static CFURLComponentType fromValue(int value) => switch (value) { - 1 => kCFURLComponentScheme, - 2 => kCFURLComponentNetLocation, - 3 => kCFURLComponentPath, - 4 => kCFURLComponentResourceSpecifier, - 5 => kCFURLComponentUser, - 6 => kCFURLComponentPassword, - 7 => kCFURLComponentUserInfo, - 8 => kCFURLComponentHost, - 9 => kCFURLComponentPort, - 10 => kCFURLComponentParameterString, - 11 => kCFURLComponentQuery, - 12 => kCFURLComponentFragment, - _ => throw ArgumentError('Unknown value for CFURLComponentType: $value'), - }; -} - -sealed class CFURLEnumeratorOptions { - static const kCFURLEnumeratorDefaultBehavior = 0; - static const kCFURLEnumeratorDescendRecursively = 1; - static const kCFURLEnumeratorSkipInvisibles = 2; - static const kCFURLEnumeratorGenerateFileReferenceURLs = 4; - static const kCFURLEnumeratorSkipPackageContents = 8; - static const kCFURLEnumeratorIncludeDirectoriesPreOrder = 16; - static const kCFURLEnumeratorIncludeDirectoriesPostOrder = 32; - static const kCFURLEnumeratorGenerateRelativePathURLs = 64; -} - -typedef CFURLEnumeratorRef = ffi.Pointer<__CFURLEnumerator>; - -enum CFURLEnumeratorResult { - kCFURLEnumeratorSuccess(1), - kCFURLEnumeratorEnd(2), - kCFURLEnumeratorError(3), - kCFURLEnumeratorDirectoryPostOrderSuccess(4); - - final int value; - const CFURLEnumeratorResult(this.value); - - static CFURLEnumeratorResult fromValue(int value) => switch (value) { - 1 => kCFURLEnumeratorSuccess, - 2 => kCFURLEnumeratorEnd, - 3 => kCFURLEnumeratorError, - 4 => kCFURLEnumeratorDirectoryPostOrderSuccess, - _ => throw ArgumentError('Unknown value for CFURLEnumeratorResult: $value'), - }; -} - -@Deprecated('Use CFError codes instead') -enum CFURLError { - kCFURLUnknownError(-10), - kCFURLUnknownSchemeError(-11), - kCFURLResourceNotFoundError(-12), - kCFURLResourceAccessViolationError(-13), - kCFURLRemoteHostUnavailableError(-14), - kCFURLImproperArgumentsError(-15), - kCFURLUnknownPropertyKeyError(-16), - kCFURLPropertyKeyUnavailableError(-17), - kCFURLTimeoutError(-18); - - final int value; - const CFURLError(this.value); - - static CFURLError fromValue(int value) => switch (value) { - -10 => kCFURLUnknownError, - -11 => kCFURLUnknownSchemeError, - -12 => kCFURLResourceNotFoundError, - -13 => kCFURLResourceAccessViolationError, - -14 => kCFURLRemoteHostUnavailableError, - -15 => kCFURLImproperArgumentsError, - -16 => kCFURLUnknownPropertyKeyError, - -17 => kCFURLPropertyKeyUnavailableError, - -18 => kCFURLTimeoutError, - _ => throw ArgumentError('Unknown value for CFURLError: $value'), - }; -} - -enum CFURLPathStyle { - kCFURLPOSIXPathStyle(0), - kCFURLHFSPathStyle(1), - kCFURLWindowsPathStyle(2); - - final int value; - const CFURLPathStyle(this.value); - - static CFURLPathStyle fromValue(int value) => switch (value) { - 0 => kCFURLPOSIXPathStyle, - 1 => kCFURLHFSPathStyle, - 2 => kCFURLWindowsPathStyle, - _ => throw ArgumentError('Unknown value for CFURLPathStyle: $value'), - }; -} - -typedef CFURLRef = ffi.Pointer<__CFURL>; - -final class CFUUIDBytes extends ffi.Struct { - @UInt8() - external int byte0; - - @UInt8() - external int byte1; - - @UInt8() - external int byte2; - - @UInt8() - external int byte3; - - @UInt8() - external int byte4; - - @UInt8() - external int byte5; - - @UInt8() - external int byte6; - - @UInt8() - external int byte7; - - @UInt8() - external int byte8; - - @UInt8() - external int byte9; - - @UInt8() - external int byte10; - - @UInt8() - external int byte11; - - @UInt8() - external int byte12; - - @UInt8() - external int byte13; - - @UInt8() - external int byte14; - - @UInt8() - external int byte15; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int byte0, - required int byte1, - required int byte2, - required int byte3, - required int byte4, - required int byte5, - required int byte6, - required int byte7, - required int byte8, - required int byte9, - required int byte10, - required int byte11, - required int byte12, - required int byte13, - required int byte14, - required int byte15, - }) => $allocator() - ..ref.byte0 = byte0 - ..ref.byte1 = byte1 - ..ref.byte2 = byte2 - ..ref.byte3 = byte3 - ..ref.byte4 = byte4 - ..ref.byte5 = byte5 - ..ref.byte6 = byte6 - ..ref.byte7 = byte7 - ..ref.byte8 = byte8 - ..ref.byte9 = byte9 - ..ref.byte10 = byte10 - ..ref.byte11 = byte11 - ..ref.byte12 = byte12 - ..ref.byte13 = byte13 - ..ref.byte14 = byte14 - ..ref.byte15 = byte15; -} - -typedef CFUUIDRef = ffi.Pointer<__CFUUID>; -typedef CFUserNotificationCallBack = - ffi.Pointer>; -typedef CFUserNotificationCallBackFunction = - ffi.Void Function( - CFUserNotificationRef userNotification, - CFOptionFlags responseFlags, - ); -typedef DartCFUserNotificationCallBackFunction = - void Function( - CFUserNotificationRef userNotification, - DartCFOptionFlags responseFlags, - ); -typedef CFUserNotificationRef = ffi.Pointer<__CFUserNotification>; -typedef CFWriteStreamClientCallBack = - ffi.Pointer>; -typedef CFWriteStreamClientCallBackFunction = - ffi.Void Function( - CFWriteStreamRef stream, - CFOptionFlags type, - ffi.Pointer clientCallBackInfo, - ); -typedef DartCFWriteStreamClientCallBackFunction = - void Function( - CFWriteStreamRef stream, - DartCFOptionFlags type, - ffi.Pointer clientCallBackInfo, - ); -typedef CFWriteStreamRef = ffi.Pointer<__CFWriteStream>; - -final class CFXMLAttributeDeclarationInfo extends ffi.Struct { - external CFStringRef attributeName; - - external CFStringRef typeString; - - external CFStringRef defaultString; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFStringRef attributeName, - required CFStringRef typeString, - required CFStringRef defaultString, - }) => $allocator() - ..ref.attributeName = attributeName - ..ref.typeString = typeString - ..ref.defaultString = defaultString; -} - -final class CFXMLAttributeListDeclarationInfo extends ffi.Struct { - @CFIndex() - external int numberOfAttributes; - - external ffi.Pointer attributes; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfAttributes, - required ffi.Pointer attributes, - }) => $allocator() - ..ref.numberOfAttributes = numberOfAttributes - ..ref.attributes = attributes; -} - -final class CFXMLDocumentInfo extends ffi.Struct { - external CFURLRef sourceURL; - - @CFStringEncoding() - external int encoding; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFURLRef sourceURL, - required int encoding, - }) => $allocator() - ..ref.sourceURL = sourceURL - ..ref.encoding = encoding; -} - -final class CFXMLDocumentTypeInfo extends ffi.Struct { - external CFXMLExternalID externalID; -} - -final class CFXMLElementInfo extends ffi.Struct { - external CFDictionaryRef attributes; - - external CFArrayRef attributeOrder; - - @Boolean() - external int isEmpty; - - @ffi.Array.multi([3]) - external ffi.Array _reserved; -} - -final class CFXMLElementTypeDeclarationInfo extends ffi.Struct { - external CFStringRef contentDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFStringRef contentDescription, - }) => - $allocator() - ..ref.contentDescription = contentDescription; -} - -final class CFXMLEntityInfo extends ffi.Struct { - @CFIndex() - external int entityTypeAsInt; - - CFXMLEntityTypeCode get entityType => - CFXMLEntityTypeCode.fromValue(entityTypeAsInt); - set entityType(CFXMLEntityTypeCode value) => entityTypeAsInt = value.value; - - external CFStringRef replacementText; - - external CFXMLExternalID entityID; - - external CFStringRef notationName; -} - -final class CFXMLEntityReferenceInfo extends ffi.Struct { - @CFIndex() - external int entityTypeAsInt; - - CFXMLEntityTypeCode get entityType => - CFXMLEntityTypeCode.fromValue(entityTypeAsInt); - set entityType(CFXMLEntityTypeCode value) => entityTypeAsInt = value.value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFXMLEntityTypeCode entityType, - }) => $allocator()..ref.entityType = entityType; -} - -enum CFXMLEntityTypeCode { - kCFXMLEntityTypeParameter(0), - kCFXMLEntityTypeParsedInternal(1), - kCFXMLEntityTypeParsedExternal(2), - kCFXMLEntityTypeUnparsed(3), - kCFXMLEntityTypeCharacter(4); - - final int value; - const CFXMLEntityTypeCode(this.value); - - static CFXMLEntityTypeCode fromValue(int value) => switch (value) { - 0 => kCFXMLEntityTypeParameter, - 1 => kCFXMLEntityTypeParsedInternal, - 2 => kCFXMLEntityTypeParsedExternal, - 3 => kCFXMLEntityTypeUnparsed, - 4 => kCFXMLEntityTypeCharacter, - _ => throw ArgumentError('Unknown value for CFXMLEntityTypeCode: $value'), - }; -} - -final class CFXMLExternalID extends ffi.Struct { - external CFURLRef systemID; - - external CFStringRef publicID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFURLRef systemID, - required CFStringRef publicID, - }) => $allocator() - ..ref.systemID = systemID - ..ref.publicID = publicID; -} - -typedef CFXMLNodeRef = ffi.Pointer<__CFXMLNode>; - -enum CFXMLNodeTypeCode { - kCFXMLNodeTypeDocument(1), - kCFXMLNodeTypeElement(2), - kCFXMLNodeTypeAttribute(3), - kCFXMLNodeTypeProcessingInstruction(4), - kCFXMLNodeTypeComment(5), - kCFXMLNodeTypeText(6), - kCFXMLNodeTypeCDATASection(7), - kCFXMLNodeTypeDocumentFragment(8), - kCFXMLNodeTypeEntity(9), - kCFXMLNodeTypeEntityReference(10), - kCFXMLNodeTypeDocumentType(11), - kCFXMLNodeTypeWhitespace(12), - kCFXMLNodeTypeNotation(13), - kCFXMLNodeTypeElementTypeDeclaration(14), - kCFXMLNodeTypeAttributeListDeclaration(15); - - final int value; - const CFXMLNodeTypeCode(this.value); - - static CFXMLNodeTypeCode fromValue(int value) => switch (value) { - 1 => kCFXMLNodeTypeDocument, - 2 => kCFXMLNodeTypeElement, - 3 => kCFXMLNodeTypeAttribute, - 4 => kCFXMLNodeTypeProcessingInstruction, - 5 => kCFXMLNodeTypeComment, - 6 => kCFXMLNodeTypeText, - 7 => kCFXMLNodeTypeCDATASection, - 8 => kCFXMLNodeTypeDocumentFragment, - 9 => kCFXMLNodeTypeEntity, - 10 => kCFXMLNodeTypeEntityReference, - 11 => kCFXMLNodeTypeDocumentType, - 12 => kCFXMLNodeTypeWhitespace, - 13 => kCFXMLNodeTypeNotation, - 14 => kCFXMLNodeTypeElementTypeDeclaration, - 15 => kCFXMLNodeTypeAttributeListDeclaration, - _ => throw ArgumentError('Unknown value for CFXMLNodeTypeCode: $value'), - }; -} - -final class CFXMLNotationInfo extends ffi.Struct { - external CFXMLExternalID externalID; -} - -typedef CFXMLParserAddChildCallBack = - ffi.Pointer>; -typedef CFXMLParserAddChildCallBackFunction = - ffi.Void Function( - CFXMLParserRef parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ); -typedef DartCFXMLParserAddChildCallBackFunction = - void Function( - CFXMLParserRef parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ); - -final class CFXMLParserCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFXMLParserCreateXMLStructureCallBack createXMLStructure; - - external CFXMLParserAddChildCallBack addChild; - - external CFXMLParserEndXMLStructureCallBack endXMLStructure; - - external CFXMLParserResolveExternalEntityCallBack resolveExternalEntity; - - external CFXMLParserHandleErrorCallBack handleError; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFXMLParserCreateXMLStructureCallBack createXMLStructure, - required CFXMLParserAddChildCallBack addChild, - required CFXMLParserEndXMLStructureCallBack endXMLStructure, - required CFXMLParserResolveExternalEntityCallBack resolveExternalEntity, - required CFXMLParserHandleErrorCallBack handleError, - }) => $allocator() - ..ref.version = version - ..ref.createXMLStructure = createXMLStructure - ..ref.addChild = addChild - ..ref.endXMLStructure = endXMLStructure - ..ref.resolveExternalEntity = resolveExternalEntity - ..ref.handleError = handleError; -} - -final class CFXMLParserContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFXMLParserRetainCallBack retain; - - external CFXMLParserReleaseCallBack release; - - external CFXMLParserCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFXMLParserRetainCallBack retain, - required CFXMLParserReleaseCallBack release, - required CFXMLParserCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFXMLParserCopyDescriptionCallBack = - ffi.Pointer>; -typedef CFXMLParserCopyDescriptionCallBackFunction = - CFStringRef Function(ffi.Pointer info); -typedef CFXMLParserCreateXMLStructureCallBack = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CFXMLParserCreateXMLStructureCallBackFunction = - ffi.Pointer Function( - CFXMLParserRef parser, - CFXMLNodeRef nodeDesc, - ffi.Pointer info, - ); -typedef CFXMLParserEndXMLStructureCallBack = - ffi.Pointer>; -typedef CFXMLParserEndXMLStructureCallBackFunction = - ffi.Void Function( - CFXMLParserRef parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ); -typedef DartCFXMLParserEndXMLStructureCallBackFunction = - void Function( - CFXMLParserRef parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ); -typedef CFXMLParserHandleErrorCallBack = - ffi.Pointer>; -typedef CFXMLParserHandleErrorCallBackFunction = - Boolean Function( - CFXMLParserRef parser, - CFIndex error, - ffi.Pointer info, - ); -typedef DartCFXMLParserHandleErrorCallBackFunction = - DartBoolean Function( - CFXMLParserRef parser, - DartCFIndex error, - ffi.Pointer info, - ); - -sealed class CFXMLParserOptions { - static const kCFXMLParserValidateDocument = 1; - static const kCFXMLParserSkipMetaData = 2; - static const kCFXMLParserReplacePhysicalEntities = 4; - static const kCFXMLParserSkipWhitespace = 8; - static const kCFXMLParserResolveExternalEntities = 16; - static const kCFXMLParserAddImpliedAttributes = 32; - static const kCFXMLParserAllOptions = 16777215; - static const kCFXMLParserNoOptions = 0; -} - -typedef CFXMLParserRef = ffi.Pointer<__CFXMLParser>; -typedef CFXMLParserReleaseCallBack = - ffi.Pointer>; -typedef CFXMLParserReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFXMLParserReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFXMLParserResolveExternalEntityCallBack = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CFXMLParserResolveExternalEntityCallBackFunction = - CFDataRef Function( - CFXMLParserRef parser, - ffi.Pointer extID, - ffi.Pointer info, - ); -typedef CFXMLParserRetainCallBack = - ffi.Pointer>; -typedef CFXMLParserRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); - -sealed class CFXMLParserStatusCode { - static const kCFXMLStatusParseNotBegun = -2; - static const kCFXMLStatusParseInProgress = -1; - static const kCFXMLStatusParseSuccessful = 0; - static const kCFXMLErrorUnexpectedEOF = 1; - static const kCFXMLErrorUnknownEncoding = 2; - static const kCFXMLErrorEncodingConversionFailure = 3; - static const kCFXMLErrorMalformedProcessingInstruction = 4; - static const kCFXMLErrorMalformedDTD = 5; - static const kCFXMLErrorMalformedName = 6; - static const kCFXMLErrorMalformedCDSect = 7; - static const kCFXMLErrorMalformedCloseTag = 8; - static const kCFXMLErrorMalformedStartTag = 9; - static const kCFXMLErrorMalformedDocument = 10; - static const kCFXMLErrorElementlessDocument = 11; - static const kCFXMLErrorMalformedComment = 12; - static const kCFXMLErrorMalformedCharacterReference = 13; - static const kCFXMLErrorMalformedParsedCharacterData = 14; - static const kCFXMLErrorNoData = 15; -} - -final class CFXMLProcessingInstructionInfo extends ffi.Struct { - external CFStringRef dataString; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFStringRef dataString, - }) => - $allocator()..ref.dataString = dataString; -} - -typedef CFXMLTreeRef = CFTreeRef; - -final class CGAffineTransform extends ffi.Struct { - @CGFloat() - external double a; - - @CGFloat() - external double b; - - @CGFloat() - external double c; - - @CGFloat() - external double d; - - @CGFloat() - external double tx; - - @CGFloat() - external double ty; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double a, - required double b, - required double c, - required double d, - required double tx, - required double ty, - }) => $allocator() - ..ref.a = a - ..ref.b = b - ..ref.c = c - ..ref.d = d - ..ref.tx = tx - ..ref.ty = ty; -} - -final class CGAffineTransformComponents extends ffi.Struct { - external objc.CGSize scale; - - @CGFloat() - external double horizontalShear; - - @CGFloat() - external double rotation; - - external CGVector translation; -} - -typedef CGBitmapContextReleaseDataCallback = - ffi.Pointer>; -typedef CGBitmapContextReleaseDataCallbackFunction = - ffi.Void Function( - ffi.Pointer releaseInfo, - ffi.Pointer data, - ); -typedef DartCGBitmapContextReleaseDataCallbackFunction = - void Function( - ffi.Pointer releaseInfo, - ffi.Pointer data, - ); - -sealed class CGBitmapInfo { - static const kCGBitmapAlphaInfoMask = 31; - static const kCGBitmapComponentInfoMask = 3840; - static const kCGBitmapByteOrderInfoMask = 28672; - static const kCGBitmapPixelFormatInfoMask = 983040; - static const kCGBitmapFloatInfoMask = 3840; - static const kCGBitmapByteOrderMask = 28672; - static const kCGBitmapFloatComponents = 256; - static const kCGBitmapByteOrderDefault = 0; - static const kCGBitmapByteOrder16Little = 4096; - static const kCGBitmapByteOrder32Little = 8192; - static const kCGBitmapByteOrder16Big = 12288; - static const kCGBitmapByteOrder32Big = 16384; -} - -enum CGBitmapLayout { - kCGBitmapLayoutAlphaOnly(0), - kCGBitmapLayoutGray(1), - kCGBitmapLayoutGrayAlpha(2), - kCGBitmapLayoutRGBA(3), - kCGBitmapLayoutARGB(4), - kCGBitmapLayoutRGBX(5), - kCGBitmapLayoutXRGB(6), - kCGBitmapLayoutBGRA(7), - kCGBitmapLayoutBGRX(8), - kCGBitmapLayoutABGR(9), - kCGBitmapLayoutXBGR(10), - kCGBitmapLayoutCMYK(11); - - final int value; - const CGBitmapLayout(this.value); - - static CGBitmapLayout fromValue(int value) => switch (value) { - 0 => kCGBitmapLayoutAlphaOnly, - 1 => kCGBitmapLayoutGray, - 2 => kCGBitmapLayoutGrayAlpha, - 3 => kCGBitmapLayoutRGBA, - 4 => kCGBitmapLayoutARGB, - 5 => kCGBitmapLayoutRGBX, - 6 => kCGBitmapLayoutXRGB, - 7 => kCGBitmapLayoutBGRA, - 8 => kCGBitmapLayoutBGRX, - 9 => kCGBitmapLayoutABGR, - 10 => kCGBitmapLayoutXBGR, - 11 => kCGBitmapLayoutCMYK, - _ => throw ArgumentError('Unknown value for CGBitmapLayout: $value'), - }; -} - -final class CGBitmapParameters extends ffi.Struct { - @ffi.Size() - external int width; - - @ffi.Size() - external int height; - - @ffi.Size() - external int bytesPerPixel; - - @ffi.Size() - external int alignedBytesPerRow; - - @ffi.Uint32() - external int componentAsInt; - - CGComponent get component => CGComponent.fromValue(componentAsInt); - set component(CGComponent value) => componentAsInt = value.value; - - @ffi.Uint32() - external int layoutAsInt; - - CGBitmapLayout get layout => CGBitmapLayout.fromValue(layoutAsInt); - set layout(CGBitmapLayout value) => layoutAsInt = value.value; - - @ffi.Uint32() - external int formatAsInt; - - CGImagePixelFormatInfo get format => - CGImagePixelFormatInfo.fromValue(formatAsInt); - set format(CGImagePixelFormatInfo value) => formatAsInt = value.value; - - external CGColorSpaceRef colorSpace; - - @ffi.Bool() - external bool hasPremultipliedAlpha; - - @CFByteOrder() - external int byteOrder; - - @ffi.Float() - external double edrTargetHeadroom; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int width, - required int height, - required int bytesPerPixel, - required int alignedBytesPerRow, - required CGComponent component, - required CGBitmapLayout layout, - required CGImagePixelFormatInfo format, - required CGColorSpaceRef colorSpace, - required bool hasPremultipliedAlpha, - required int byteOrder, - required double edrTargetHeadroom, - }) => $allocator() - ..ref.width = width - ..ref.height = height - ..ref.bytesPerPixel = bytesPerPixel - ..ref.alignedBytesPerRow = alignedBytesPerRow - ..ref.component = component - ..ref.layout = layout - ..ref.format = format - ..ref.colorSpace = colorSpace - ..ref.hasPremultipliedAlpha = hasPremultipliedAlpha - ..ref.byteOrder = byteOrder - ..ref.edrTargetHeadroom = edrTargetHeadroom; -} - -enum CGBlendMode { - kCGBlendModeNormal(0), - kCGBlendModeMultiply(1), - kCGBlendModeScreen(2), - kCGBlendModeOverlay(3), - kCGBlendModeDarken(4), - kCGBlendModeLighten(5), - kCGBlendModeColorDodge(6), - kCGBlendModeColorBurn(7), - kCGBlendModeSoftLight(8), - kCGBlendModeHardLight(9), - kCGBlendModeDifference(10), - kCGBlendModeExclusion(11), - kCGBlendModeHue(12), - kCGBlendModeSaturation(13), - kCGBlendModeColor(14), - kCGBlendModeLuminosity(15), - kCGBlendModeClear(16), - kCGBlendModeCopy(17), - kCGBlendModeSourceIn(18), - kCGBlendModeSourceOut(19), - kCGBlendModeSourceAtop(20), - kCGBlendModeDestinationOver(21), - kCGBlendModeDestinationIn(22), - kCGBlendModeDestinationOut(23), - kCGBlendModeDestinationAtop(24), - kCGBlendModeXOR(25), - kCGBlendModePlusDarker(26), - kCGBlendModePlusLighter(27); - - final int value; - const CGBlendMode(this.value); - - static CGBlendMode fromValue(int value) => switch (value) { - 0 => kCGBlendModeNormal, - 1 => kCGBlendModeMultiply, - 2 => kCGBlendModeScreen, - 3 => kCGBlendModeOverlay, - 4 => kCGBlendModeDarken, - 5 => kCGBlendModeLighten, - 6 => kCGBlendModeColorDodge, - 7 => kCGBlendModeColorBurn, - 8 => kCGBlendModeSoftLight, - 9 => kCGBlendModeHardLight, - 10 => kCGBlendModeDifference, - 11 => kCGBlendModeExclusion, - 12 => kCGBlendModeHue, - 13 => kCGBlendModeSaturation, - 14 => kCGBlendModeColor, - 15 => kCGBlendModeLuminosity, - 16 => kCGBlendModeClear, - 17 => kCGBlendModeCopy, - 18 => kCGBlendModeSourceIn, - 19 => kCGBlendModeSourceOut, - 20 => kCGBlendModeSourceAtop, - 21 => kCGBlendModeDestinationOver, - 22 => kCGBlendModeDestinationIn, - 23 => kCGBlendModeDestinationOut, - 24 => kCGBlendModeDestinationAtop, - 25 => kCGBlendModeXOR, - 26 => kCGBlendModePlusDarker, - 27 => kCGBlendModePlusLighter, - _ => throw ArgumentError('Unknown value for CGBlendMode: $value'), - }; -} - -typedef CGButtonCount = ffi.Uint32; -typedef DartCGButtonCount = int; - -sealed class CGCaptureOptions { - static const kCGCaptureNoOptions = 0; - static const kCGCaptureNoFill = 1; -} - -typedef CGCharCode = ffi.Uint16; -typedef DartCGCharCode = int; - -final class CGColor extends ffi.Opaque {} - -final class CGColorBufferFormat extends ffi.Struct { - @ffi.Uint32() - external int version; - - @ffi.Uint32() - external int bitmapInfo; - - @ffi.Size() - external int bitsPerComponent; - - @ffi.Size() - external int bitsPerPixel; - - @ffi.Size() - external int bytesPerRow; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int bitmapInfo, - required int bitsPerComponent, - required int bitsPerPixel, - required int bytesPerRow, - }) => $allocator() - ..ref.version = version - ..ref.bitmapInfo = bitmapInfo - ..ref.bitsPerComponent = bitsPerComponent - ..ref.bitsPerPixel = bitsPerPixel - ..ref.bytesPerRow = bytesPerRow; -} - -final class CGColorConversionInfo extends ffi.Opaque {} - -typedef CGColorConversionInfoRef = ffi.Pointer; - -enum CGColorConversionInfoTransformType { - kCGColorConversionTransformFromSpace(0), - kCGColorConversionTransformToSpace(1), - kCGColorConversionTransformApplySpace(2); - - final int value; - const CGColorConversionInfoTransformType(this.value); - - static CGColorConversionInfoTransformType fromValue(int value) => - switch (value) { - 0 => kCGColorConversionTransformFromSpace, - 1 => kCGColorConversionTransformToSpace, - 2 => kCGColorConversionTransformApplySpace, - _ => throw ArgumentError( - 'Unknown value for CGColorConversionInfoTransformType: $value', - ), - }; -} - -final class CGColorDataFormat extends ffi.Struct { - @ffi.Uint32() - external int version; - - external CFTypeRef colorspace_info; - - @ffi.Uint32() - external int bitmap_info; - - @ffi.Size() - external int bits_per_component; - - @ffi.Size() - external int bytes_per_row; - - @ffi.Int32() - external int intentAsInt; - - CGColorRenderingIntent get intent => - CGColorRenderingIntent.fromValue(intentAsInt); - set intent(CGColorRenderingIntent value) => intentAsInt = value.value; - - external ffi.Pointer decode; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFTypeRef colorspace_info, - required int bitmap_info, - required int bits_per_component, - required int bytes_per_row, - required CGColorRenderingIntent intent, - required ffi.Pointer decode, - }) => $allocator() - ..ref.version = version - ..ref.colorspace_info = colorspace_info - ..ref.bitmap_info = bitmap_info - ..ref.bits_per_component = bits_per_component - ..ref.bytes_per_row = bytes_per_row - ..ref.intent = intent - ..ref.decode = decode; -} - -sealed class CGColorModel { - static const kCGColorModelNoColorant = 0; - static const kCGColorModelGray = 1; - static const kCGColorModelRGB = 2; - static const kCGColorModelCMYK = 4; - static const kCGColorModelLab = 8; - static const kCGColorModelDeviceN = 16; -} - -typedef CGColorRef = ffi.Pointer; - -enum CGColorRenderingIntent { - kCGRenderingIntentDefault(0), - kCGRenderingIntentAbsoluteColorimetric(1), - kCGRenderingIntentRelativeColorimetric(2), - kCGRenderingIntentPerceptual(3), - kCGRenderingIntentSaturation(4); - - final int value; - const CGColorRenderingIntent(this.value); - - static CGColorRenderingIntent fromValue(int value) => switch (value) { - 0 => kCGRenderingIntentDefault, - 1 => kCGRenderingIntentAbsoluteColorimetric, - 2 => kCGRenderingIntentRelativeColorimetric, - 3 => kCGRenderingIntentPerceptual, - 4 => kCGRenderingIntentSaturation, - _ => throw ArgumentError( - 'Unknown value for CGColorRenderingIntent: $value', - ), - }; -} - -final class CGColorSpace extends ffi.Opaque {} - -enum CGColorSpaceModel { - kCGColorSpaceModelUnknown(-1), - kCGColorSpaceModelMonochrome(0), - kCGColorSpaceModelRGB(1), - kCGColorSpaceModelCMYK(2), - kCGColorSpaceModelLab(3), - kCGColorSpaceModelDeviceN(4), - kCGColorSpaceModelIndexed(5), - kCGColorSpaceModelPattern(6), - kCGColorSpaceModelXYZ(7); - - final int value; - const CGColorSpaceModel(this.value); - - static CGColorSpaceModel fromValue(int value) => switch (value) { - -1 => kCGColorSpaceModelUnknown, - 0 => kCGColorSpaceModelMonochrome, - 1 => kCGColorSpaceModelRGB, - 2 => kCGColorSpaceModelCMYK, - 3 => kCGColorSpaceModelLab, - 4 => kCGColorSpaceModelDeviceN, - 5 => kCGColorSpaceModelIndexed, - 6 => kCGColorSpaceModelPattern, - 7 => kCGColorSpaceModelXYZ, - _ => throw ArgumentError('Unknown value for CGColorSpaceModel: $value'), - }; -} - -typedef CGColorSpaceRef = ffi.Pointer; - -enum CGComponent { - kCGComponentUnknown(0), - kCGComponentInteger8Bit(1), - kCGComponentInteger10Bit(6), - kCGComponentInteger16Bit(2), - kCGComponentInteger32Bit(3), - kCGComponentFloat16Bit(5), - kCGComponentFloat32Bit(4); - - final int value; - const CGComponent(this.value); - - static CGComponent fromValue(int value) => switch (value) { - 0 => kCGComponentUnknown, - 1 => kCGComponentInteger8Bit, - 6 => kCGComponentInteger10Bit, - 2 => kCGComponentInteger16Bit, - 3 => kCGComponentInteger32Bit, - 5 => kCGComponentFloat16Bit, - 4 => kCGComponentFloat32Bit, - _ => throw ArgumentError('Unknown value for CGComponent: $value'), - }; -} - -sealed class CGConfigureOption { - static const kCGConfigureForAppOnly = 0; - static const kCGConfigureForSession = 1; - static const kCGConfigurePermanently = 2; -} - -final class CGContentInfo extends ffi.Struct { - @ffi.Uint32() - external int deepestImageComponentAsInt; - - CGComponent get deepestImageComponent => - CGComponent.fromValue(deepestImageComponentAsInt); - set deepestImageComponent(CGComponent value) => - deepestImageComponentAsInt = value.value; - - @ffi.Uint32() - external int contentColorModels; - - @ffi.Bool() - external bool hasWideGamut; - - @ffi.Bool() - external bool hasTransparency; - - @ffi.Float() - external double largestContentHeadroom; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CGComponent deepestImageComponent, - required int contentColorModels, - required bool hasWideGamut, - required bool hasTransparency, - required double largestContentHeadroom, - }) => $allocator() - ..ref.deepestImageComponent = deepestImageComponent - ..ref.contentColorModels = contentColorModels - ..ref.hasWideGamut = hasWideGamut - ..ref.hasTransparency = hasTransparency - ..ref.largestContentHeadroom = largestContentHeadroom; -} - -final class CGContentToneMappingInfo extends ffi.Struct { - @ffi.Uint32() - external int methodAsInt; - - CGToneMapping get method => CGToneMapping.fromValue(methodAsInt); - set method(CGToneMapping value) => methodAsInt = value.value; - - external CFDictionaryRef options; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CGToneMapping method, - required CFDictionaryRef options, - }) => $allocator() - ..ref.method = method - ..ref.options = options; -} - -final class CGContext extends ffi.Opaque {} - -typedef CGContextRef = ffi.Pointer; - -final class CGDataConsumer extends ffi.Opaque {} - -final class CGDataConsumerCallbacks extends ffi.Struct { - external CGDataConsumerPutBytesCallback putBytes; - - external CGDataConsumerReleaseInfoCallback releaseConsumer; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CGDataConsumerPutBytesCallback putBytes, - required CGDataConsumerReleaseInfoCallback releaseConsumer, - }) => $allocator() - ..ref.putBytes = putBytes - ..ref.releaseConsumer = releaseConsumer; -} - -typedef CGDataConsumerPutBytesCallback = - ffi.Pointer>; -typedef CGDataConsumerPutBytesCallbackFunction = - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - ffi.Size count, - ); -typedef DartCGDataConsumerPutBytesCallbackFunction = - int Function( - ffi.Pointer info, - ffi.Pointer buffer, - int count, - ); -typedef CGDataConsumerRef = ffi.Pointer; -typedef CGDataConsumerReleaseInfoCallback = - ffi.Pointer>; -typedef CGDataConsumerReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGDataConsumerReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); - -final class CGDataProvider extends ffi.Opaque {} - -final class CGDataProviderDirectCallbacks extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external CGDataProviderGetBytePointerCallback getBytePointer; - - external CGDataProviderReleaseBytePointerCallback releaseBytePointer; - - external CGDataProviderGetBytesAtPositionCallback getBytesAtPosition; - - external CGDataProviderReleaseInfoCallback releaseInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CGDataProviderGetBytePointerCallback getBytePointer, - required CGDataProviderReleaseBytePointerCallback releaseBytePointer, - required CGDataProviderGetBytesAtPositionCallback getBytesAtPosition, - required CGDataProviderReleaseInfoCallback releaseInfo, - }) => $allocator() - ..ref.version = version - ..ref.getBytePointer = getBytePointer - ..ref.releaseBytePointer = releaseBytePointer - ..ref.getBytesAtPosition = getBytesAtPosition - ..ref.releaseInfo = releaseInfo; -} - -typedef CGDataProviderGetBytePointerCallback = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CGDataProviderGetBytePointerCallbackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CGDataProviderGetBytesAtPositionCallback = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CGDataProviderGetBytesAtPositionCallbackFunction = - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - off_t pos, - ffi.Size cnt, - ); -typedef DartCGDataProviderGetBytesAtPositionCallbackFunction = - int Function( - ffi.Pointer info, - ffi.Pointer buffer, - Dart__int64_t pos, - int cnt, - ); -typedef CGDataProviderGetBytesCallback = - ffi.Pointer>; -typedef CGDataProviderGetBytesCallbackFunction = - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - ffi.Size count, - ); -typedef DartCGDataProviderGetBytesCallbackFunction = - int Function( - ffi.Pointer info, - ffi.Pointer buffer, - int count, - ); -typedef CGDataProviderRef = ffi.Pointer; -typedef CGDataProviderReleaseBytePointerCallback = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CGDataProviderReleaseBytePointerCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer pointer, - ); -typedef DartCGDataProviderReleaseBytePointerCallbackFunction = - void Function(ffi.Pointer info, ffi.Pointer pointer); -typedef CGDataProviderReleaseDataCallback = - ffi.Pointer>; -typedef CGDataProviderReleaseDataCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer data, - ffi.Size size, - ); -typedef DartCGDataProviderReleaseDataCallbackFunction = - void Function( - ffi.Pointer info, - ffi.Pointer data, - int size, - ); -typedef CGDataProviderReleaseInfoCallback = - ffi.Pointer>; -typedef CGDataProviderReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGDataProviderReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGDataProviderRewindCallback = - ffi.Pointer>; -typedef CGDataProviderRewindCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGDataProviderRewindCallbackFunction = - void Function(ffi.Pointer info); - -final class CGDataProviderSequentialCallbacks extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external CGDataProviderGetBytesCallback getBytes; - - external CGDataProviderSkipForwardCallback skipForward; - - external CGDataProviderRewindCallback rewind$1; - - external CGDataProviderReleaseInfoCallback releaseInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CGDataProviderGetBytesCallback getBytes, - required CGDataProviderSkipForwardCallback skipForward, - required CGDataProviderRewindCallback rewind$1, - required CGDataProviderReleaseInfoCallback releaseInfo, - }) => $allocator() - ..ref.version = version - ..ref.getBytes = getBytes - ..ref.skipForward = skipForward - ..ref.rewind$1 = rewind$1 - ..ref.releaseInfo = releaseInfo; -} - -typedef CGDataProviderSkipForwardCallback = - ffi.Pointer>; -typedef CGDataProviderSkipForwardCallbackFunction = - off_t Function(ffi.Pointer info, off_t count); -typedef DartCGDataProviderSkipForwardCallbackFunction = - Dart__int64_t Function(ffi.Pointer info, Dart__int64_t count); - -final class CGDeviceColor extends ffi.Struct { - @ffi.Float() - external double red; - - @ffi.Float() - external double green; - - @ffi.Float() - external double blue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double red, - required double green, - required double blue, - }) => $allocator() - ..ref.red = red - ..ref.green = green - ..ref.blue = blue; -} - -typedef CGDirectDisplayID = ffi.Uint32; -typedef DartCGDirectDisplayID = int; -typedef CGDisplayBlendFraction = ffi.Float; -typedef DartCGDisplayBlendFraction = double; - -sealed class CGDisplayChangeSummaryFlags { - static const kCGDisplayBeginConfigurationFlag = 1; - static const kCGDisplayMovedFlag = 2; - static const kCGDisplaySetMainFlag = 4; - static const kCGDisplaySetModeFlag = 8; - static const kCGDisplayAddFlag = 16; - static const kCGDisplayRemoveFlag = 32; - static const kCGDisplayEnabledFlag = 256; - static const kCGDisplayDisabledFlag = 512; - static const kCGDisplayMirrorFlag = 1024; - static const kCGDisplayUnMirrorFlag = 2048; - static const kCGDisplayDesktopShapeChangedFlag = 4096; -} - -typedef CGDisplayConfigRef = ffi.Pointer<_CGDisplayConfigRef>; -typedef CGDisplayCount = ffi.Uint32; -typedef DartCGDisplayCount = int; -typedef CGDisplayFadeInterval = ffi.Float; -typedef DartCGDisplayFadeInterval = double; -typedef CGDisplayFadeReservationToken = ffi.Uint32; -typedef DartCGDisplayFadeReservationToken = int; - -final class CGDisplayMode extends ffi.Opaque {} - -typedef CGDisplayModeRef = ffi.Pointer; -typedef CGDisplayReconfigurationCallBack = - ffi.Pointer>; -typedef CGDisplayReconfigurationCallBackFunction = - ffi.Void Function( - CGDirectDisplayID display, - ffi.Uint32 flags, - ffi.Pointer userInfo, - ); -typedef DartCGDisplayReconfigurationCallBackFunction = - void Function( - DartCGDirectDisplayID display, - int flags, - ffi.Pointer userInfo, - ); -typedef CGDisplayReservationInterval = ffi.Float; -typedef DartCGDisplayReservationInterval = double; - -final class CGDisplayStream extends ffi.Opaque {} - -typedef CGDisplayStreamFrameAvailableHandler = ffi.Pointer; -typedef DartCGDisplayStreamFrameAvailableHandler = - objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >; - -enum CGDisplayStreamFrameStatus { - kCGDisplayStreamFrameStatusFrameComplete(0), - kCGDisplayStreamFrameStatusFrameIdle(1), - kCGDisplayStreamFrameStatusFrameBlank(2), - kCGDisplayStreamFrameStatusStopped(3); - - final int value; - const CGDisplayStreamFrameStatus(this.value); - - static CGDisplayStreamFrameStatus fromValue(int value) => switch (value) { - 0 => kCGDisplayStreamFrameStatusFrameComplete, - 1 => kCGDisplayStreamFrameStatusFrameIdle, - 2 => kCGDisplayStreamFrameStatusFrameBlank, - 3 => kCGDisplayStreamFrameStatusStopped, - _ => throw ArgumentError( - 'Unknown value for CGDisplayStreamFrameStatus: $value', - ), - }; -} - -typedef CGDisplayStreamRef = ffi.Pointer; - -final class CGDisplayStreamUpdate extends ffi.Opaque {} - -enum CGDisplayStreamUpdateRectType { - kCGDisplayStreamUpdateRefreshedRects(0), - kCGDisplayStreamUpdateMovedRects(1), - kCGDisplayStreamUpdateDirtyRects(2), - kCGDisplayStreamUpdateReducedDirtyRects(3); - - final int value; - const CGDisplayStreamUpdateRectType(this.value); - - static CGDisplayStreamUpdateRectType fromValue(int value) => switch (value) { - 0 => kCGDisplayStreamUpdateRefreshedRects, - 1 => kCGDisplayStreamUpdateMovedRects, - 2 => kCGDisplayStreamUpdateDirtyRects, - 3 => kCGDisplayStreamUpdateReducedDirtyRects, - _ => throw ArgumentError( - 'Unknown value for CGDisplayStreamUpdateRectType: $value', - ), - }; -} - -typedef CGDisplayStreamUpdateRef = ffi.Pointer; - -enum CGError { - kCGErrorSuccess(0), - kCGErrorFailure(1000), - kCGErrorIllegalArgument(1001), - kCGErrorInvalidConnection(1002), - kCGErrorInvalidContext(1003), - kCGErrorCannotComplete(1004), - kCGErrorNotImplemented(1006), - kCGErrorRangeCheck(1007), - kCGErrorTypeCheck(1008), - kCGErrorInvalidOperation(1010), - kCGErrorNoneAvailable(1011); - - final int value; - const CGError(this.value); - - static CGError fromValue(int value) => switch (value) { - 0 => kCGErrorSuccess, - 1000 => kCGErrorFailure, - 1001 => kCGErrorIllegalArgument, - 1002 => kCGErrorInvalidConnection, - 1003 => kCGErrorInvalidContext, - 1004 => kCGErrorCannotComplete, - 1006 => kCGErrorNotImplemented, - 1007 => kCGErrorRangeCheck, - 1008 => kCGErrorTypeCheck, - 1010 => kCGErrorInvalidOperation, - 1011 => kCGErrorNoneAvailable, - _ => throw ArgumentError('Unknown value for CGError: $value'), - }; -} - -typedef CGErrorCallback = - ffi.Pointer>; -typedef CGErrorCallbackFunction = ffi.Void Function(); -typedef DartCGErrorCallbackFunction = void Function(); - -enum CGEventField { - kCGMouseEventNumber(0), - kCGMouseEventClickState(1), - kCGMouseEventPressure(2), - kCGMouseEventButtonNumber(3), - kCGMouseEventDeltaX(4), - kCGMouseEventDeltaY(5), - kCGMouseEventInstantMouser(6), - kCGMouseEventSubtype(7), - kCGKeyboardEventAutorepeat(8), - kCGKeyboardEventKeycode(9), - kCGKeyboardEventKeyboardType(10), - kCGScrollWheelEventDeltaAxis1(11), - kCGScrollWheelEventDeltaAxis2(12), - kCGScrollWheelEventDeltaAxis3(13), - kCGScrollWheelEventFixedPtDeltaAxis1(93), - kCGScrollWheelEventFixedPtDeltaAxis2(94), - kCGScrollWheelEventFixedPtDeltaAxis3(95), - kCGScrollWheelEventPointDeltaAxis1(96), - kCGScrollWheelEventPointDeltaAxis2(97), - kCGScrollWheelEventPointDeltaAxis3(98), - kCGScrollWheelEventScrollPhase(99), - kCGScrollWheelEventScrollCount(100), - kCGScrollWheelEventMomentumPhase(123), - kCGScrollWheelEventInstantMouser(14), - kCGTabletEventPointX(15), - kCGTabletEventPointY(16), - kCGTabletEventPointZ(17), - kCGTabletEventPointButtons(18), - kCGTabletEventPointPressure(19), - kCGTabletEventTiltX(20), - kCGTabletEventTiltY(21), - kCGTabletEventRotation(22), - kCGTabletEventTangentialPressure(23), - kCGTabletEventDeviceID(24), - kCGTabletEventVendor1(25), - kCGTabletEventVendor2(26), - kCGTabletEventVendor3(27), - kCGTabletProximityEventVendorID(28), - kCGTabletProximityEventTabletID(29), - kCGTabletProximityEventPointerID(30), - kCGTabletProximityEventDeviceID(31), - kCGTabletProximityEventSystemTabletID(32), - kCGTabletProximityEventVendorPointerType(33), - kCGTabletProximityEventVendorPointerSerialNumber(34), - kCGTabletProximityEventVendorUniqueID(35), - kCGTabletProximityEventCapabilityMask(36), - kCGTabletProximityEventPointerType(37), - kCGTabletProximityEventEnterProximity(38), - kCGEventTargetProcessSerialNumber(39), - kCGEventTargetUnixProcessID(40), - kCGEventSourceUnixProcessID(41), - kCGEventSourceUserData(42), - kCGEventSourceUserID(43), - kCGEventSourceGroupID(44), - kCGEventSourceStateID(45), - kCGScrollWheelEventIsContinuous(88), - kCGMouseEventWindowUnderMousePointer(91), - kCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent(92), - kCGEventUnacceleratedPointerMovementX(170), - kCGEventUnacceleratedPointerMovementY(171), - kCGScrollWheelEventMomentumOptionPhase(173), - kCGScrollWheelEventAcceleratedDeltaAxis1(176), - kCGScrollWheelEventAcceleratedDeltaAxis2(175), - kCGScrollWheelEventRawDeltaAxis1(178), - kCGScrollWheelEventRawDeltaAxis2(177); - - final int value; - const CGEventField(this.value); - - static CGEventField fromValue(int value) => switch (value) { - 0 => kCGMouseEventNumber, - 1 => kCGMouseEventClickState, - 2 => kCGMouseEventPressure, - 3 => kCGMouseEventButtonNumber, - 4 => kCGMouseEventDeltaX, - 5 => kCGMouseEventDeltaY, - 6 => kCGMouseEventInstantMouser, - 7 => kCGMouseEventSubtype, - 8 => kCGKeyboardEventAutorepeat, - 9 => kCGKeyboardEventKeycode, - 10 => kCGKeyboardEventKeyboardType, - 11 => kCGScrollWheelEventDeltaAxis1, - 12 => kCGScrollWheelEventDeltaAxis2, - 13 => kCGScrollWheelEventDeltaAxis3, - 93 => kCGScrollWheelEventFixedPtDeltaAxis1, - 94 => kCGScrollWheelEventFixedPtDeltaAxis2, - 95 => kCGScrollWheelEventFixedPtDeltaAxis3, - 96 => kCGScrollWheelEventPointDeltaAxis1, - 97 => kCGScrollWheelEventPointDeltaAxis2, - 98 => kCGScrollWheelEventPointDeltaAxis3, - 99 => kCGScrollWheelEventScrollPhase, - 100 => kCGScrollWheelEventScrollCount, - 123 => kCGScrollWheelEventMomentumPhase, - 14 => kCGScrollWheelEventInstantMouser, - 15 => kCGTabletEventPointX, - 16 => kCGTabletEventPointY, - 17 => kCGTabletEventPointZ, - 18 => kCGTabletEventPointButtons, - 19 => kCGTabletEventPointPressure, - 20 => kCGTabletEventTiltX, - 21 => kCGTabletEventTiltY, - 22 => kCGTabletEventRotation, - 23 => kCGTabletEventTangentialPressure, - 24 => kCGTabletEventDeviceID, - 25 => kCGTabletEventVendor1, - 26 => kCGTabletEventVendor2, - 27 => kCGTabletEventVendor3, - 28 => kCGTabletProximityEventVendorID, - 29 => kCGTabletProximityEventTabletID, - 30 => kCGTabletProximityEventPointerID, - 31 => kCGTabletProximityEventDeviceID, - 32 => kCGTabletProximityEventSystemTabletID, - 33 => kCGTabletProximityEventVendorPointerType, - 34 => kCGTabletProximityEventVendorPointerSerialNumber, - 35 => kCGTabletProximityEventVendorUniqueID, - 36 => kCGTabletProximityEventCapabilityMask, - 37 => kCGTabletProximityEventPointerType, - 38 => kCGTabletProximityEventEnterProximity, - 39 => kCGEventTargetProcessSerialNumber, - 40 => kCGEventTargetUnixProcessID, - 41 => kCGEventSourceUnixProcessID, - 42 => kCGEventSourceUserData, - 43 => kCGEventSourceUserID, - 44 => kCGEventSourceGroupID, - 45 => kCGEventSourceStateID, - 88 => kCGScrollWheelEventIsContinuous, - 91 => kCGMouseEventWindowUnderMousePointer, - 92 => kCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent, - 170 => kCGEventUnacceleratedPointerMovementX, - 171 => kCGEventUnacceleratedPointerMovementY, - 173 => kCGScrollWheelEventMomentumOptionPhase, - 176 => kCGScrollWheelEventAcceleratedDeltaAxis1, - 175 => kCGScrollWheelEventAcceleratedDeltaAxis2, - 178 => kCGScrollWheelEventRawDeltaAxis1, - 177 => kCGScrollWheelEventRawDeltaAxis2, - _ => throw ArgumentError('Unknown value for CGEventField: $value'), - }; -} - -sealed class CGEventFilterMask { - static const kCGEventFilterMaskPermitLocalMouseEvents = 1; - static const kCGEventFilterMaskPermitLocalKeyboardEvents = 2; - static const kCGEventFilterMaskPermitSystemDefinedEvents = 4; -} - -sealed class CGEventFlags { - static const kCGEventFlagMaskAlphaShift = 65536; - static const kCGEventFlagMaskShift = 131072; - static const kCGEventFlagMaskControl = 262144; - static const kCGEventFlagMaskAlternate = 524288; - static const kCGEventFlagMaskCommand = 1048576; - static const kCGEventFlagMaskHelp = 4194304; - static const kCGEventFlagMaskSecondaryFn = 8388608; - static const kCGEventFlagMaskNumericPad = 2097152; - static const kCGEventFlagMaskNonCoalesced = 256; -} - -typedef CGEventMask = ffi.Uint64; -typedef DartCGEventMask = int; - -enum CGEventMouseSubtype { - kCGEventMouseSubtypeDefault(0), - kCGEventMouseSubtypeTabletPoint(1), - kCGEventMouseSubtypeTabletProximity(2); - - final int value; - const CGEventMouseSubtype(this.value); - - static CGEventMouseSubtype fromValue(int value) => switch (value) { - 0 => kCGEventMouseSubtypeDefault, - 1 => kCGEventMouseSubtypeTabletPoint, - 2 => kCGEventMouseSubtypeTabletProximity, - _ => throw ArgumentError('Unknown value for CGEventMouseSubtype: $value'), - }; -} - -typedef CGEventRef = ffi.Pointer<__CGEvent>; -typedef CGEventSourceKeyboardType = ffi.Uint32; -typedef DartCGEventSourceKeyboardType = int; -typedef CGEventSourceRef = ffi.Pointer<__CGEventSource>; - -enum CGEventSourceStateID { - kCGEventSourceStatePrivate(-1), - kCGEventSourceStateCombinedSessionState(0), - kCGEventSourceStateHIDSystemState(1); - - final int value; - const CGEventSourceStateID(this.value); - - static CGEventSourceStateID fromValue(int value) => switch (value) { - -1 => kCGEventSourceStatePrivate, - 0 => kCGEventSourceStateCombinedSessionState, - 1 => kCGEventSourceStateHIDSystemState, - _ => throw ArgumentError('Unknown value for CGEventSourceStateID: $value'), - }; -} - -enum CGEventSuppressionState { - kCGEventSuppressionStateSuppressionInterval(0), - kCGEventSuppressionStateRemoteMouseDrag(1), - kCGNumberOfEventSuppressionStates(2); - - final int value; - const CGEventSuppressionState(this.value); - - static CGEventSuppressionState fromValue(int value) => switch (value) { - 0 => kCGEventSuppressionStateSuppressionInterval, - 1 => kCGEventSuppressionStateRemoteMouseDrag, - 2 => kCGNumberOfEventSuppressionStates, - _ => throw ArgumentError( - 'Unknown value for CGEventSuppressionState: $value', - ), - }; -} - -typedef CGEventTapCallBack = - ffi.Pointer>; -typedef CGEventTapCallBackFunction = - CGEventRef Function( - CGEventTapProxy proxy, - ffi.Uint32 type, - CGEventRef event, - ffi.Pointer userInfo, - ); -typedef DartCGEventTapCallBackFunction = - CGEventRef Function( - CGEventTapProxy proxy, - CGEventType type, - CGEventRef event, - ffi.Pointer userInfo, - ); -typedef CGEventTapInformation = __CGEventTapInformation; - -enum CGEventTapLocation { - kCGHIDEventTap(0), - kCGSessionEventTap(1), - kCGAnnotatedSessionEventTap(2); - - final int value; - const CGEventTapLocation(this.value); - - static CGEventTapLocation fromValue(int value) => switch (value) { - 0 => kCGHIDEventTap, - 1 => kCGSessionEventTap, - 2 => kCGAnnotatedSessionEventTap, - _ => throw ArgumentError('Unknown value for CGEventTapLocation: $value'), - }; -} - -enum CGEventTapOptions { - kCGEventTapOptionDefault(0), - kCGEventTapOptionListenOnly(1); - - final int value; - const CGEventTapOptions(this.value); - - static CGEventTapOptions fromValue(int value) => switch (value) { - 0 => kCGEventTapOptionDefault, - 1 => kCGEventTapOptionListenOnly, - _ => throw ArgumentError('Unknown value for CGEventTapOptions: $value'), - }; -} - -enum CGEventTapPlacement { - kCGHeadInsertEventTap(0), - kCGTailAppendEventTap(1); - - final int value; - const CGEventTapPlacement(this.value); - - static CGEventTapPlacement fromValue(int value) => switch (value) { - 0 => kCGHeadInsertEventTap, - 1 => kCGTailAppendEventTap, - _ => throw ArgumentError('Unknown value for CGEventTapPlacement: $value'), - }; -} - -typedef CGEventTapProxy = ffi.Pointer<__CGEventTapProxy>; -typedef CGEventTimestamp = ffi.Uint64; -typedef DartCGEventTimestamp = int; - -enum CGEventType { - kCGEventNull(0), - kCGEventLeftMouseDown(1), - kCGEventLeftMouseUp(2), - kCGEventRightMouseDown(3), - kCGEventRightMouseUp(4), - kCGEventMouseMoved(5), - kCGEventLeftMouseDragged(6), - kCGEventRightMouseDragged(7), - kCGEventKeyDown(10), - kCGEventKeyUp(11), - kCGEventFlagsChanged(12), - kCGEventScrollWheel(22), - kCGEventTabletPointer(23), - kCGEventTabletProximity(24), - kCGEventOtherMouseDown(25), - kCGEventOtherMouseUp(26), - kCGEventOtherMouseDragged(27), - kCGEventTapDisabledByTimeout(-2), - kCGEventTapDisabledByUserInput(-1); - - final int value; - const CGEventType(this.value); - - static CGEventType fromValue(int value) => switch (value) { - 0 => kCGEventNull, - 1 => kCGEventLeftMouseDown, - 2 => kCGEventLeftMouseUp, - 3 => kCGEventRightMouseDown, - 4 => kCGEventRightMouseUp, - 5 => kCGEventMouseMoved, - 6 => kCGEventLeftMouseDragged, - 7 => kCGEventRightMouseDragged, - 10 => kCGEventKeyDown, - 11 => kCGEventKeyUp, - 12 => kCGEventFlagsChanged, - 22 => kCGEventScrollWheel, - 23 => kCGEventTabletPointer, - 24 => kCGEventTabletProximity, - 25 => kCGEventOtherMouseDown, - 26 => kCGEventOtherMouseUp, - 27 => kCGEventOtherMouseDragged, - -2 => kCGEventTapDisabledByTimeout, - -1 => kCGEventTapDisabledByUserInput, - _ => throw ArgumentError('Unknown value for CGEventType: $value'), - }; -} - -typedef CGFloat = ffi.Double; -typedef DartCGFloat = double; - -final class CGFont extends ffi.Opaque {} - -typedef CGFontIndex = ffi.UnsignedShort; -typedef DartCGFontIndex = int; - -enum CGFontPostScriptFormat { - kCGFontPostScriptFormatType1(1), - kCGFontPostScriptFormatType3(3), - kCGFontPostScriptFormatType42(42); - - final int value; - const CGFontPostScriptFormat(this.value); - - static CGFontPostScriptFormat fromValue(int value) => switch (value) { - 1 => kCGFontPostScriptFormatType1, - 3 => kCGFontPostScriptFormatType3, - 42 => kCGFontPostScriptFormatType42, - _ => throw ArgumentError( - 'Unknown value for CGFontPostScriptFormat: $value', - ), - }; -} - -typedef CGFontRef = ffi.Pointer; - -final class CGFunction extends ffi.Opaque {} - -final class CGFunctionCallbacks extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external CGFunctionEvaluateCallback evaluate; - - external CGFunctionReleaseInfoCallback releaseInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CGFunctionEvaluateCallback evaluate, - required CGFunctionReleaseInfoCallback releaseInfo, - }) => $allocator() - ..ref.version = version - ..ref.evaluate = evaluate - ..ref.releaseInfo = releaseInfo; -} - -typedef CGFunctionEvaluateCallback = - ffi.Pointer>; -typedef CGFunctionEvaluateCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer in$, - ffi.Pointer out, - ); -typedef DartCGFunctionEvaluateCallbackFunction = - void Function( - ffi.Pointer info, - ffi.Pointer in$, - ffi.Pointer out, - ); -typedef CGFunctionRef = ffi.Pointer; -typedef CGFunctionReleaseInfoCallback = - ffi.Pointer>; -typedef CGFunctionReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGFunctionReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGGammaValue = ffi.Float; -typedef DartCGGammaValue = double; - -enum CGGesturePhase { - kCGGesturePhaseNone(0), - kCGGesturePhaseBegan(1), - kCGGesturePhaseChanged(2), - kCGGesturePhaseEnded(4), - kCGGesturePhaseCancelled(8), - kCGGesturePhaseMayBegin(128); - - final int value; - const CGGesturePhase(this.value); - - static CGGesturePhase fromValue(int value) => switch (value) { - 0 => kCGGesturePhaseNone, - 1 => kCGGesturePhaseBegan, - 2 => kCGGesturePhaseChanged, - 4 => kCGGesturePhaseEnded, - 8 => kCGGesturePhaseCancelled, - 128 => kCGGesturePhaseMayBegin, - _ => throw ArgumentError('Unknown value for CGGesturePhase: $value'), - }; -} - -typedef CGGlyph = CGFontIndex; - -enum CGGlyphDeprecatedEnum { - CGGlyphMin(0), - CGGlyphMax(1); - - final int value; - const CGGlyphDeprecatedEnum(this.value); - - static CGGlyphDeprecatedEnum fromValue(int value) => switch (value) { - 0 => CGGlyphMin, - 1 => CGGlyphMax, - _ => throw ArgumentError('Unknown value for CGGlyphDeprecatedEnum: $value'), - }; -} - -final class CGGradient extends ffi.Opaque {} - -sealed class CGGradientDrawingOptions { - static const kCGGradientDrawsBeforeStartLocation = 1; - static const kCGGradientDrawsAfterEndLocation = 2; -} - -typedef CGGradientRef = ffi.Pointer; - -final class CGImage extends ffi.Opaque {} - -enum CGImageAlphaInfo { - kCGImageAlphaNone(0), - kCGImageAlphaPremultipliedLast(1), - kCGImageAlphaPremultipliedFirst(2), - kCGImageAlphaLast(3), - kCGImageAlphaFirst(4), - kCGImageAlphaNoneSkipLast(5), - kCGImageAlphaNoneSkipFirst(6), - kCGImageAlphaOnly(7); - - final int value; - const CGImageAlphaInfo(this.value); - - static CGImageAlphaInfo fromValue(int value) => switch (value) { - 0 => kCGImageAlphaNone, - 1 => kCGImageAlphaPremultipliedLast, - 2 => kCGImageAlphaPremultipliedFirst, - 3 => kCGImageAlphaLast, - 4 => kCGImageAlphaFirst, - 5 => kCGImageAlphaNoneSkipLast, - 6 => kCGImageAlphaNoneSkipFirst, - 7 => kCGImageAlphaOnly, - _ => throw ArgumentError('Unknown value for CGImageAlphaInfo: $value'), - }; -} - -enum CGImageAnimationStatus { - kCGImageAnimationStatus_ParameterError(-22140), - kCGImageAnimationStatus_CorruptInputImage(-22141), - kCGImageAnimationStatus_UnsupportedFormat(-22142), - kCGImageAnimationStatus_IncompleteInputImage(-22143), - kCGImageAnimationStatus_AllocationFailure(-22144); - - final int value; - const CGImageAnimationStatus(this.value); - - static CGImageAnimationStatus fromValue(int value) => switch (value) { - -22140 => kCGImageAnimationStatus_ParameterError, - -22141 => kCGImageAnimationStatus_CorruptInputImage, - -22142 => kCGImageAnimationStatus_UnsupportedFormat, - -22143 => kCGImageAnimationStatus_IncompleteInputImage, - -22144 => kCGImageAnimationStatus_AllocationFailure, - _ => throw ArgumentError( - 'Unknown value for CGImageAnimationStatus: $value', - ), - }; -} - -enum CGImageByteOrderInfo { - kCGImageByteOrderMask(28672), - kCGImageByteOrderDefault(0), - kCGImageByteOrder16Little(4096), - kCGImageByteOrder32Little(8192), - kCGImageByteOrder16Big(12288), - kCGImageByteOrder32Big(16384); - - static const kCGImageByteOrder16Host = kCGImageByteOrder16Little; - static const kCGImageByteOrder32Host = kCGImageByteOrder32Little; - - final int value; - const CGImageByteOrderInfo(this.value); - - static CGImageByteOrderInfo fromValue(int value) => switch (value) { - 28672 => kCGImageByteOrderMask, - 0 => kCGImageByteOrderDefault, - 4096 => kCGImageByteOrder16Little, - 8192 => kCGImageByteOrder32Little, - 12288 => kCGImageByteOrder16Big, - 16384 => kCGImageByteOrder32Big, - _ => throw ArgumentError('Unknown value for CGImageByteOrderInfo: $value'), - }; - - @override - String toString() { - if (this == kCGImageByteOrder16Little) - return "CGImageByteOrderInfo.kCGImageByteOrder16Little, CGImageByteOrderInfo.kCGImageByteOrder16Host"; - if (this == kCGImageByteOrder32Little) - return "CGImageByteOrderInfo.kCGImageByteOrder32Little, CGImageByteOrderInfo.kCGImageByteOrder32Host"; - return super.toString(); - } -} - -enum CGImageComponentInfo { - kCGImageComponentInteger(0), - kCGImageComponentFloat(256); - - final int value; - const CGImageComponentInfo(this.value); - - static CGImageComponentInfo fromValue(int value) => switch (value) { - 0 => kCGImageComponentInteger, - 256 => kCGImageComponentFloat, - _ => throw ArgumentError('Unknown value for CGImageComponentInfo: $value'), - }; -} - -final class CGImageDestination extends ffi.Opaque {} - -typedef CGImageDestinationRef = ffi.Pointer; - -final class CGImageMetadata extends ffi.Opaque {} - -enum CGImageMetadataErrors { - kCGImageMetadataErrorUnknown(0), - kCGImageMetadataErrorUnsupportedFormat(1), - kCGImageMetadataErrorBadArgument(2), - kCGImageMetadataErrorConflictingArguments(3), - kCGImageMetadataErrorPrefixConflict(4); - - final int value; - const CGImageMetadataErrors(this.value); - - static CGImageMetadataErrors fromValue(int value) => switch (value) { - 0 => kCGImageMetadataErrorUnknown, - 1 => kCGImageMetadataErrorUnsupportedFormat, - 2 => kCGImageMetadataErrorBadArgument, - 3 => kCGImageMetadataErrorConflictingArguments, - 4 => kCGImageMetadataErrorPrefixConflict, - _ => throw ArgumentError('Unknown value for CGImageMetadataErrors: $value'), - }; -} - -typedef CGImageMetadataRef = ffi.Pointer; - -final class CGImageMetadataTag extends ffi.Opaque {} - -typedef CGImageMetadataTagBlock = ffi.Pointer; -typedef DartCGImageMetadataTagBlock = - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >; -typedef CGImageMetadataTagRef = ffi.Pointer; - -enum CGImageMetadataType { - kCGImageMetadataTypeInvalid(-1), - kCGImageMetadataTypeDefault(0), - kCGImageMetadataTypeString(1), - kCGImageMetadataTypeArrayUnordered(2), - kCGImageMetadataTypeArrayOrdered(3), - kCGImageMetadataTypeAlternateArray(4), - kCGImageMetadataTypeAlternateText(5), - kCGImageMetadataTypeStructure(6); - - final int value; - const CGImageMetadataType(this.value); - - static CGImageMetadataType fromValue(int value) => switch (value) { - -1 => kCGImageMetadataTypeInvalid, - 0 => kCGImageMetadataTypeDefault, - 1 => kCGImageMetadataTypeString, - 2 => kCGImageMetadataTypeArrayUnordered, - 3 => kCGImageMetadataTypeArrayOrdered, - 4 => kCGImageMetadataTypeAlternateArray, - 5 => kCGImageMetadataTypeAlternateText, - 6 => kCGImageMetadataTypeStructure, - _ => throw ArgumentError('Unknown value for CGImageMetadataType: $value'), - }; -} - -enum CGImagePixelFormatInfo { - kCGImagePixelFormatMask(983040), - kCGImagePixelFormatPacked(0), - kCGImagePixelFormatRGB555(65536), - kCGImagePixelFormatRGB565(131072), - kCGImagePixelFormatRGB101010(196608), - kCGImagePixelFormatRGBCIF10(262144); - - final int value; - const CGImagePixelFormatInfo(this.value); - - static CGImagePixelFormatInfo fromValue(int value) => switch (value) { - 983040 => kCGImagePixelFormatMask, - 0 => kCGImagePixelFormatPacked, - 65536 => kCGImagePixelFormatRGB555, - 131072 => kCGImagePixelFormatRGB565, - 196608 => kCGImagePixelFormatRGB101010, - 262144 => kCGImagePixelFormatRGBCIF10, - _ => throw ArgumentError( - 'Unknown value for CGImagePixelFormatInfo: $value', - ), - }; -} - -enum CGImagePropertyOrientation { - kCGImagePropertyOrientationUp(1), - kCGImagePropertyOrientationUpMirrored(2), - kCGImagePropertyOrientationDown(3), - kCGImagePropertyOrientationDownMirrored(4), - kCGImagePropertyOrientationLeftMirrored(5), - kCGImagePropertyOrientationRight(6), - kCGImagePropertyOrientationRightMirrored(7), - kCGImagePropertyOrientationLeft(8); - - final int value; - const CGImagePropertyOrientation(this.value); - - static CGImagePropertyOrientation fromValue(int value) => switch (value) { - 1 => kCGImagePropertyOrientationUp, - 2 => kCGImagePropertyOrientationUpMirrored, - 3 => kCGImagePropertyOrientationDown, - 4 => kCGImagePropertyOrientationDownMirrored, - 5 => kCGImagePropertyOrientationLeftMirrored, - 6 => kCGImagePropertyOrientationRight, - 7 => kCGImagePropertyOrientationRightMirrored, - 8 => kCGImagePropertyOrientationLeft, - _ => throw ArgumentError( - 'Unknown value for CGImagePropertyOrientation: $value', - ), - }; -} - -enum CGImagePropertyTGACompression { - kCGImageTGACompressionNone(0), - kCGImageTGACompressionRLE(1); - - final int value; - const CGImagePropertyTGACompression(this.value); - - static CGImagePropertyTGACompression fromValue(int value) => switch (value) { - 0 => kCGImageTGACompressionNone, - 1 => kCGImageTGACompressionRLE, - _ => throw ArgumentError( - 'Unknown value for CGImagePropertyTGACompression: $value', - ), - }; -} - -typedef CGImageRef = ffi.Pointer; - -final class CGImageSource extends ffi.Opaque {} - -typedef CGImageSourceAnimationBlock = ffi.Pointer; -typedef DartCGImageSourceAnimationBlock = - objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >; -typedef CGImageSourceRef = ffi.Pointer; - -enum CGImageSourceStatus { - kCGImageStatusUnexpectedEOF(-5), - kCGImageStatusInvalidData(-4), - kCGImageStatusUnknownType(-3), - kCGImageStatusReadingHeader(-2), - kCGImageStatusIncomplete(-1), - kCGImageStatusComplete(0); - - final int value; - const CGImageSourceStatus(this.value); - - static CGImageSourceStatus fromValue(int value) => switch (value) { - -5 => kCGImageStatusUnexpectedEOF, - -4 => kCGImageStatusInvalidData, - -3 => kCGImageStatusUnknownType, - -2 => kCGImageStatusReadingHeader, - -1 => kCGImageStatusIncomplete, - 0 => kCGImageStatusComplete, - _ => throw ArgumentError('Unknown value for CGImageSourceStatus: $value'), - }; -} - -enum CGInterpolationQuality { - kCGInterpolationDefault(0), - kCGInterpolationNone(1), - kCGInterpolationLow(2), - kCGInterpolationMedium(4), - kCGInterpolationHigh(3); - - final int value; - const CGInterpolationQuality(this.value); - - static CGInterpolationQuality fromValue(int value) => switch (value) { - 0 => kCGInterpolationDefault, - 1 => kCGInterpolationNone, - 2 => kCGInterpolationLow, - 4 => kCGInterpolationMedium, - 3 => kCGInterpolationHigh, - _ => throw ArgumentError( - 'Unknown value for CGInterpolationQuality: $value', - ), - }; -} - -typedef CGKeyCode = ffi.Uint16; -typedef DartCGKeyCode = int; - -enum CGLCPContextPriorityRequest { - kCGLCPContextPriorityRequestHigh(0), - kCGLCPContextPriorityRequestNormal(1), - kCGLCPContextPriorityRequestLow(2); - - final int value; - const CGLCPContextPriorityRequest(this.value); - - static CGLCPContextPriorityRequest fromValue(int value) => switch (value) { - 0 => kCGLCPContextPriorityRequestHigh, - 1 => kCGLCPContextPriorityRequestNormal, - 2 => kCGLCPContextPriorityRequestLow, - _ => throw ArgumentError( - 'Unknown value for CGLCPContextPriorityRequest: $value', - ), - }; -} - -typedef CGLContextObj = ffi.Pointer<_CGLContextObject>; -typedef CGLPBufferObj = ffi.Pointer<_CGLPBufferObject>; -typedef CGLPixelFormatObj = ffi.Pointer<_CGLPixelFormatObject>; -typedef CGLRendererInfoObj = ffi.Pointer<_CGLRendererInfoObject>; -typedef CGLShareGroupObj = ffi.Pointer; - -final class CGLShareGroupRec extends ffi.Opaque {} - -final class CGLayer extends ffi.Opaque {} - -typedef CGLayerRef = ffi.Pointer; - -enum CGLineCap { - kCGLineCapButt(0), - kCGLineCapRound(1), - kCGLineCapSquare(2); - - final int value; - const CGLineCap(this.value); - - static CGLineCap fromValue(int value) => switch (value) { - 0 => kCGLineCapButt, - 1 => kCGLineCapRound, - 2 => kCGLineCapSquare, - _ => throw ArgumentError('Unknown value for CGLineCap: $value'), - }; -} - -enum CGLineJoin { - kCGLineJoinMiter(0), - kCGLineJoinRound(1), - kCGLineJoinBevel(2); - - final int value; - const CGLineJoin(this.value); - - static CGLineJoin fromValue(int value) => switch (value) { - 0 => kCGLineJoinMiter, - 1 => kCGLineJoinRound, - 2 => kCGLineJoinBevel, - _ => throw ArgumentError('Unknown value for CGLineJoin: $value'), - }; -} - -enum CGMomentumScrollPhase { - kCGMomentumScrollPhaseNone(0), - kCGMomentumScrollPhaseBegin(1), - kCGMomentumScrollPhaseContinue(2), - kCGMomentumScrollPhaseEnd(3); - - final int value; - const CGMomentumScrollPhase(this.value); - - static CGMomentumScrollPhase fromValue(int value) => switch (value) { - 0 => kCGMomentumScrollPhaseNone, - 1 => kCGMomentumScrollPhaseBegin, - 2 => kCGMomentumScrollPhaseContinue, - 3 => kCGMomentumScrollPhaseEnd, - _ => throw ArgumentError('Unknown value for CGMomentumScrollPhase: $value'), - }; -} - -enum CGMouseButton { - kCGMouseButtonLeft(0), - kCGMouseButtonRight(1), - kCGMouseButtonCenter(2); - - final int value; - const CGMouseButton(this.value); - - static CGMouseButton fromValue(int value) => switch (value) { - 0 => kCGMouseButtonLeft, - 1 => kCGMouseButtonRight, - 2 => kCGMouseButtonCenter, - _ => throw ArgumentError('Unknown value for CGMouseButton: $value'), - }; -} - -typedef CGMutableImageMetadataRef = ffi.Pointer; -typedef CGMutablePathRef = ffi.Pointer; -typedef CGOpenGLDisplayMask = ffi.Uint32; -typedef DartCGOpenGLDisplayMask = int; - -sealed class CGPDFAccessPermissions { - static const kCGPDFAllowsLowQualityPrinting = 1; - static const kCGPDFAllowsHighQualityPrinting = 2; - static const kCGPDFAllowsDocumentChanges = 4; - static const kCGPDFAllowsDocumentAssembly = 8; - static const kCGPDFAllowsContentCopying = 16; - static const kCGPDFAllowsContentAccessibility = 32; - static const kCGPDFAllowsCommenting = 64; - static const kCGPDFAllowsFormFieldEntry = 128; -} - -final class CGPDFArray extends ffi.Opaque {} - -typedef CGPDFArrayApplierBlock = ffi.Pointer; -typedef DartCGPDFArrayApplierBlock = - objc.ObjCBlock< - ffi.Bool Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - >; -typedef CGPDFArrayRef = ffi.Pointer; -typedef CGPDFBoolean = ffi.UnsignedChar; -typedef DartCGPDFBoolean = int; - -enum CGPDFBox { - kCGPDFMediaBox(0), - kCGPDFCropBox(1), - kCGPDFBleedBox(2), - kCGPDFTrimBox(3), - kCGPDFArtBox(4); - - final int value; - const CGPDFBox(this.value); - - static CGPDFBox fromValue(int value) => switch (value) { - 0 => kCGPDFMediaBox, - 1 => kCGPDFCropBox, - 2 => kCGPDFBleedBox, - 3 => kCGPDFTrimBox, - 4 => kCGPDFArtBox, - _ => throw ArgumentError('Unknown value for CGPDFBox: $value'), - }; -} - -final class CGPDFContentStream extends ffi.Opaque {} - -typedef CGPDFContentStreamRef = ffi.Pointer; - -enum CGPDFDataFormat { - CGPDFDataFormatRaw(0), - CGPDFDataFormatJPEGEncoded(1), - CGPDFDataFormatJPEG2000(2); - - final int value; - const CGPDFDataFormat(this.value); - - static CGPDFDataFormat fromValue(int value) => switch (value) { - 0 => CGPDFDataFormatRaw, - 1 => CGPDFDataFormatJPEGEncoded, - 2 => CGPDFDataFormatJPEG2000, - _ => throw ArgumentError('Unknown value for CGPDFDataFormat: $value'), - }; -} - -final class CGPDFDictionary extends ffi.Opaque {} - -typedef CGPDFDictionaryApplierBlock = ffi.Pointer; -typedef DartCGPDFDictionaryApplierBlock = - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >; -typedef CGPDFDictionaryApplierFunction = - ffi.Pointer>; -typedef CGPDFDictionaryApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer key, - CGPDFObjectRef value, - ffi.Pointer info, - ); -typedef DartCGPDFDictionaryApplierFunctionFunction = - void Function( - ffi.Pointer key, - CGPDFObjectRef value, - ffi.Pointer info, - ); -typedef CGPDFDictionaryRef = ffi.Pointer; - -final class CGPDFDocument extends ffi.Opaque {} - -typedef CGPDFDocumentRef = ffi.Pointer; -typedef CGPDFInteger = ffi.Long; -typedef DartCGPDFInteger = int; - -final class CGPDFObject extends ffi.Opaque {} - -typedef CGPDFObjectRef = ffi.Pointer; - -enum CGPDFObjectType { - kCGPDFObjectTypeNull(1), - kCGPDFObjectTypeBoolean(2), - kCGPDFObjectTypeInteger(3), - kCGPDFObjectTypeReal(4), - kCGPDFObjectTypeName(5), - kCGPDFObjectTypeString(6), - kCGPDFObjectTypeArray(7), - kCGPDFObjectTypeDictionary(8), - kCGPDFObjectTypeStream(9); - - final int value; - const CGPDFObjectType(this.value); - - static CGPDFObjectType fromValue(int value) => switch (value) { - 1 => kCGPDFObjectTypeNull, - 2 => kCGPDFObjectTypeBoolean, - 3 => kCGPDFObjectTypeInteger, - 4 => kCGPDFObjectTypeReal, - 5 => kCGPDFObjectTypeName, - 6 => kCGPDFObjectTypeString, - 7 => kCGPDFObjectTypeArray, - 8 => kCGPDFObjectTypeDictionary, - 9 => kCGPDFObjectTypeStream, - _ => throw ArgumentError('Unknown value for CGPDFObjectType: $value'), - }; -} - -typedef CGPDFOperatorCallback = - ffi.Pointer>; -typedef CGPDFOperatorCallbackFunction = - ffi.Void Function(CGPDFScannerRef scanner, ffi.Pointer info); -typedef DartCGPDFOperatorCallbackFunction = - void Function(CGPDFScannerRef scanner, ffi.Pointer info); - -final class CGPDFOperatorTable extends ffi.Opaque {} - -typedef CGPDFOperatorTableRef = ffi.Pointer; - -final class CGPDFPage extends ffi.Opaque {} - -typedef CGPDFPageRef = ffi.Pointer; -typedef CGPDFReal = CGFloat; - -final class CGPDFScanner extends ffi.Opaque {} - -typedef CGPDFScannerRef = ffi.Pointer; - -final class CGPDFStream extends ffi.Opaque {} - -typedef CGPDFStreamRef = ffi.Pointer; - -final class CGPDFString extends ffi.Opaque {} - -typedef CGPDFStringRef = ffi.Pointer; -typedef CGPDFTagProperty = CFStringRef; - -enum CGPDFTagType { - CGPDFTagTypeDocument(100), - CGPDFTagTypePart(101), - CGPDFTagTypeArt(102), - CGPDFTagTypeSection(103), - CGPDFTagTypeDiv(104), - CGPDFTagTypeBlockQuote(105), - CGPDFTagTypeCaption(106), - CGPDFTagTypeTOC(107), - CGPDFTagTypeTOCI(108), - CGPDFTagTypeIndex(109), - CGPDFTagTypeNonStructure(110), - CGPDFTagTypePrivate(111), - CGPDFTagTypeParagraph(200), - CGPDFTagTypeHeader(201), - CGPDFTagTypeHeader1(202), - CGPDFTagTypeHeader2(203), - CGPDFTagTypeHeader3(204), - CGPDFTagTypeHeader4(205), - CGPDFTagTypeHeader5(206), - CGPDFTagTypeHeader6(207), - CGPDFTagTypeList(300), - CGPDFTagTypeListItem(301), - CGPDFTagTypeLabel(302), - CGPDFTagTypeListBody(303), - CGPDFTagTypeTable(400), - CGPDFTagTypeTableRow(401), - CGPDFTagTypeTableHeaderCell(402), - CGPDFTagTypeTableDataCell(403), - CGPDFTagTypeTableHeader(404), - CGPDFTagTypeTableBody(405), - CGPDFTagTypeTableFooter(406), - CGPDFTagTypeSpan(500), - CGPDFTagTypeQuote(501), - CGPDFTagTypeNote(502), - CGPDFTagTypeReference(503), - CGPDFTagTypeBibliography(504), - CGPDFTagTypeCode(505), - CGPDFTagTypeLink(506), - CGPDFTagTypeAnnotation(507), - CGPDFTagTypeRuby(600), - CGPDFTagTypeRubyBaseText(601), - CGPDFTagTypeRubyAnnotationText(602), - CGPDFTagTypeRubyPunctuation(603), - CGPDFTagTypeWarichu(604), - CGPDFTagTypeWarichuText(605), - CGPDFTagTypeWarichuPunctiation(606), - CGPDFTagTypeFigure(700), - CGPDFTagTypeFormula(701), - CGPDFTagTypeForm(702), - CGPDFTagTypeObject(800); - - final int value; - const CGPDFTagType(this.value); - - static CGPDFTagType fromValue(int value) => switch (value) { - 100 => CGPDFTagTypeDocument, - 101 => CGPDFTagTypePart, - 102 => CGPDFTagTypeArt, - 103 => CGPDFTagTypeSection, - 104 => CGPDFTagTypeDiv, - 105 => CGPDFTagTypeBlockQuote, - 106 => CGPDFTagTypeCaption, - 107 => CGPDFTagTypeTOC, - 108 => CGPDFTagTypeTOCI, - 109 => CGPDFTagTypeIndex, - 110 => CGPDFTagTypeNonStructure, - 111 => CGPDFTagTypePrivate, - 200 => CGPDFTagTypeParagraph, - 201 => CGPDFTagTypeHeader, - 202 => CGPDFTagTypeHeader1, - 203 => CGPDFTagTypeHeader2, - 204 => CGPDFTagTypeHeader3, - 205 => CGPDFTagTypeHeader4, - 206 => CGPDFTagTypeHeader5, - 207 => CGPDFTagTypeHeader6, - 300 => CGPDFTagTypeList, - 301 => CGPDFTagTypeListItem, - 302 => CGPDFTagTypeLabel, - 303 => CGPDFTagTypeListBody, - 400 => CGPDFTagTypeTable, - 401 => CGPDFTagTypeTableRow, - 402 => CGPDFTagTypeTableHeaderCell, - 403 => CGPDFTagTypeTableDataCell, - 404 => CGPDFTagTypeTableHeader, - 405 => CGPDFTagTypeTableBody, - 406 => CGPDFTagTypeTableFooter, - 500 => CGPDFTagTypeSpan, - 501 => CGPDFTagTypeQuote, - 502 => CGPDFTagTypeNote, - 503 => CGPDFTagTypeReference, - 504 => CGPDFTagTypeBibliography, - 505 => CGPDFTagTypeCode, - 506 => CGPDFTagTypeLink, - 507 => CGPDFTagTypeAnnotation, - 600 => CGPDFTagTypeRuby, - 601 => CGPDFTagTypeRubyBaseText, - 602 => CGPDFTagTypeRubyAnnotationText, - 603 => CGPDFTagTypeRubyPunctuation, - 604 => CGPDFTagTypeWarichu, - 605 => CGPDFTagTypeWarichuText, - 606 => CGPDFTagTypeWarichuPunctiation, - 700 => CGPDFTagTypeFigure, - 701 => CGPDFTagTypeFormula, - 702 => CGPDFTagTypeForm, - 800 => CGPDFTagTypeObject, - _ => throw ArgumentError('Unknown value for CGPDFTagType: $value'), - }; -} - -final class CGPSConverter extends ffi.Opaque {} - -typedef CGPSConverterBeginDocumentCallback = - ffi.Pointer>; -typedef CGPSConverterBeginDocumentCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPSConverterBeginDocumentCallbackFunction = - void Function(ffi.Pointer info); -typedef CGPSConverterBeginPageCallback = - ffi.Pointer>; -typedef CGPSConverterBeginPageCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Size pageNumber, - CFDictionaryRef pageInfo, - ); -typedef DartCGPSConverterBeginPageCallbackFunction = - void Function( - ffi.Pointer info, - int pageNumber, - CFDictionaryRef pageInfo, - ); - -final class CGPSConverterCallbacks extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external CGPSConverterBeginDocumentCallback beginDocument; - - external CGPSConverterEndDocumentCallback endDocument; - - external CGPSConverterBeginPageCallback beginPage; - - external CGPSConverterEndPageCallback endPage; - - external CGPSConverterProgressCallback noteProgress; - - external CGPSConverterMessageCallback noteMessage; - - external CGPSConverterReleaseInfoCallback releaseInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CGPSConverterBeginDocumentCallback beginDocument, - required CGPSConverterEndDocumentCallback endDocument, - required CGPSConverterBeginPageCallback beginPage, - required CGPSConverterEndPageCallback endPage, - required CGPSConverterProgressCallback noteProgress, - required CGPSConverterMessageCallback noteMessage, - required CGPSConverterReleaseInfoCallback releaseInfo, - }) => $allocator() - ..ref.version = version - ..ref.beginDocument = beginDocument - ..ref.endDocument = endDocument - ..ref.beginPage = beginPage - ..ref.endPage = endPage - ..ref.noteProgress = noteProgress - ..ref.noteMessage = noteMessage - ..ref.releaseInfo = releaseInfo; -} - -typedef CGPSConverterEndDocumentCallback = - ffi.Pointer>; -typedef CGPSConverterEndDocumentCallbackFunction = - ffi.Void Function(ffi.Pointer info, ffi.Bool success); -typedef DartCGPSConverterEndDocumentCallbackFunction = - void Function(ffi.Pointer info, bool success); -typedef CGPSConverterEndPageCallback = - ffi.Pointer>; -typedef CGPSConverterEndPageCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Size pageNumber, - CFDictionaryRef pageInfo, - ); -typedef DartCGPSConverterEndPageCallbackFunction = - void Function( - ffi.Pointer info, - int pageNumber, - CFDictionaryRef pageInfo, - ); -typedef CGPSConverterMessageCallback = - ffi.Pointer>; -typedef CGPSConverterMessageCallbackFunction = - ffi.Void Function(ffi.Pointer info, CFStringRef message); -typedef DartCGPSConverterMessageCallbackFunction = - void Function(ffi.Pointer info, CFStringRef message); -typedef CGPSConverterProgressCallback = - ffi.Pointer>; -typedef CGPSConverterProgressCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPSConverterProgressCallbackFunction = - void Function(ffi.Pointer info); -typedef CGPSConverterRef = ffi.Pointer; -typedef CGPSConverterReleaseInfoCallback = - ffi.Pointer>; -typedef CGPSConverterReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPSConverterReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); - -final class CGPath extends ffi.Opaque {} - -typedef CGPathApplierFunction = - ffi.Pointer>; -typedef CGPathApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer element, - ); -typedef DartCGPathApplierFunctionFunction = - void Function( - ffi.Pointer info, - ffi.Pointer element, - ); -typedef CGPathApplyBlock = ffi.Pointer; -typedef DartCGPathApplyBlock = - objc.ObjCBlock)>; - -enum CGPathDrawingMode { - kCGPathFill(0), - kCGPathEOFill(1), - kCGPathStroke(2), - kCGPathFillStroke(3), - kCGPathEOFillStroke(4); - - final int value; - const CGPathDrawingMode(this.value); - - static CGPathDrawingMode fromValue(int value) => switch (value) { - 0 => kCGPathFill, - 1 => kCGPathEOFill, - 2 => kCGPathStroke, - 3 => kCGPathFillStroke, - 4 => kCGPathEOFillStroke, - _ => throw ArgumentError('Unknown value for CGPathDrawingMode: $value'), - }; -} - -final class CGPathElement extends ffi.Struct { - @ffi.Int32() - external int typeAsInt; - - CGPathElementType get type => CGPathElementType.fromValue(typeAsInt); - set type(CGPathElementType value) => typeAsInt = value.value; - - external ffi.Pointer points; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CGPathElementType type, - required ffi.Pointer points, - }) => $allocator() - ..ref.type = type - ..ref.points = points; -} - -enum CGPathElementType { - kCGPathElementMoveToPoint(0), - kCGPathElementAddLineToPoint(1), - kCGPathElementAddQuadCurveToPoint(2), - kCGPathElementAddCurveToPoint(3), - kCGPathElementCloseSubpath(4); - - final int value; - const CGPathElementType(this.value); - - static CGPathElementType fromValue(int value) => switch (value) { - 0 => kCGPathElementMoveToPoint, - 1 => kCGPathElementAddLineToPoint, - 2 => kCGPathElementAddQuadCurveToPoint, - 3 => kCGPathElementAddCurveToPoint, - 4 => kCGPathElementCloseSubpath, - _ => throw ArgumentError('Unknown value for CGPathElementType: $value'), - }; -} - -typedef CGPathRef = ffi.Pointer; - -final class CGPattern extends ffi.Opaque {} - -final class CGPatternCallbacks extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external CGPatternDrawPatternCallback drawPattern; - - external CGPatternReleaseInfoCallback releaseInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CGPatternDrawPatternCallback drawPattern, - required CGPatternReleaseInfoCallback releaseInfo, - }) => $allocator() - ..ref.version = version - ..ref.drawPattern = drawPattern - ..ref.releaseInfo = releaseInfo; -} - -typedef CGPatternDrawPatternCallback = - ffi.Pointer>; -typedef CGPatternDrawPatternCallbackFunction = - ffi.Void Function(ffi.Pointer info, CGContextRef context); -typedef DartCGPatternDrawPatternCallbackFunction = - void Function(ffi.Pointer info, CGContextRef context); -typedef CGPatternRef = ffi.Pointer; -typedef CGPatternReleaseInfoCallback = - ffi.Pointer>; -typedef CGPatternReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPatternReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); - -enum CGPatternTiling { - kCGPatternTilingNoDistortion(0), - kCGPatternTilingConstantSpacingMinimalDistortion(1), - kCGPatternTilingConstantSpacing(2); - - final int value; - const CGPatternTiling(this.value); - - static CGPatternTiling fromValue(int value) => switch (value) { - 0 => kCGPatternTilingNoDistortion, - 1 => kCGPatternTilingConstantSpacingMinimalDistortion, - 2 => kCGPatternTilingConstantSpacing, - _ => throw ArgumentError('Unknown value for CGPatternTiling: $value'), - }; -} - -typedef CGRectCount = ffi.Uint32; -typedef DartCGRectCount = int; - -enum CGRectEdge { - CGRectMinXEdge(0), - CGRectMinYEdge(1), - CGRectMaxXEdge(2), - CGRectMaxYEdge(3); - - final int value; - const CGRectEdge(this.value); - - static CGRectEdge fromValue(int value) => switch (value) { - 0 => CGRectMinXEdge, - 1 => CGRectMinYEdge, - 2 => CGRectMaxXEdge, - 3 => CGRectMaxYEdge, - _ => throw ArgumentError('Unknown value for CGRectEdge: $value'), - }; -} - -typedef CGRefreshRate = ffi.Double; -typedef DartCGRefreshRate = double; - -final class CGRenderingBufferProvider extends ffi.Opaque {} - -typedef CGRenderingBufferProviderRef = ffi.Pointer; -typedef CGScreenRefreshCallback = - ffi.Pointer>; -typedef CGScreenRefreshCallbackFunction = - ffi.Void Function( - ffi.Uint32 count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); -typedef DartCGScreenRefreshCallbackFunction = - void Function( - int count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); -typedef CGScreenUpdateMoveCallback = - ffi.Pointer>; -typedef CGScreenUpdateMoveCallbackFunction = - ffi.Void Function( - CGScreenUpdateMoveDelta delta, - ffi.Size count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); -typedef DartCGScreenUpdateMoveCallbackFunction = - void Function( - CGScreenUpdateMoveDelta delta, - int count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); - -final class CGScreenUpdateMoveDelta extends ffi.Struct { - @ffi.Int32() - external int dX; - - @ffi.Int32() - external int dY; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int dX, - required int dY, - }) => $allocator() - ..ref.dX = dX - ..ref.dY = dY; -} - -sealed class CGScreenUpdateOperation { - static const kCGScreenUpdateOperationRefresh = 0; - static const kCGScreenUpdateOperationMove = 1; - static const kCGScreenUpdateOperationReducedDirtyRectangleCount = -2147483648; -} - -enum CGScrollEventUnit { - kCGScrollEventUnitPixel(0), - kCGScrollEventUnitLine(1); - - final int value; - const CGScrollEventUnit(this.value); - - static CGScrollEventUnit fromValue(int value) => switch (value) { - 0 => kCGScrollEventUnitPixel, - 1 => kCGScrollEventUnitLine, - _ => throw ArgumentError('Unknown value for CGScrollEventUnit: $value'), - }; -} - -enum CGScrollPhase { - kCGScrollPhaseBegan(1), - kCGScrollPhaseChanged(2), - kCGScrollPhaseEnded(4), - kCGScrollPhaseCancelled(8), - kCGScrollPhaseMayBegin(128); - - final int value; - const CGScrollPhase(this.value); - - static CGScrollPhase fromValue(int value) => switch (value) { - 1 => kCGScrollPhaseBegan, - 2 => kCGScrollPhaseChanged, - 4 => kCGScrollPhaseEnded, - 8 => kCGScrollPhaseCancelled, - 128 => kCGScrollPhaseMayBegin, - _ => throw ArgumentError('Unknown value for CGScrollPhase: $value'), - }; -} - -final class CGShading extends ffi.Opaque {} - -typedef CGShadingRef = ffi.Pointer; - -enum CGTextDrawingMode { - kCGTextFill(0), - kCGTextStroke(1), - kCGTextFillStroke(2), - kCGTextInvisible(3), - kCGTextFillClip(4), - kCGTextStrokeClip(5), - kCGTextFillStrokeClip(6), - kCGTextClip(7); - - final int value; - const CGTextDrawingMode(this.value); - - static CGTextDrawingMode fromValue(int value) => switch (value) { - 0 => kCGTextFill, - 1 => kCGTextStroke, - 2 => kCGTextFillStroke, - 3 => kCGTextInvisible, - 4 => kCGTextFillClip, - 5 => kCGTextStrokeClip, - 6 => kCGTextFillStrokeClip, - 7 => kCGTextClip, - _ => throw ArgumentError('Unknown value for CGTextDrawingMode: $value'), - }; -} - -@Deprecated('No longer supported') -enum CGTextEncoding { - kCGEncodingFontSpecific(0), - kCGEncodingMacRoman(1); - - final int value; - const CGTextEncoding(this.value); - - static CGTextEncoding fromValue(int value) => switch (value) { - 0 => kCGEncodingFontSpecific, - 1 => kCGEncodingMacRoman, - _ => throw ArgumentError('Unknown value for CGTextEncoding: $value'), - }; -} - -enum CGToneMapping { - kCGToneMappingDefault(0), - kCGToneMappingImageSpecificLumaScaling(1), - kCGToneMappingReferenceWhiteBased(2), - kCGToneMappingITURecommended(3), - kCGToneMappingEXRGamma(4), - kCGToneMappingNone(5); - - final int value; - const CGToneMapping(this.value); - - static CGToneMapping fromValue(int value) => switch (value) { - 0 => kCGToneMappingDefault, - 1 => kCGToneMappingImageSpecificLumaScaling, - 2 => kCGToneMappingReferenceWhiteBased, - 3 => kCGToneMappingITURecommended, - 4 => kCGToneMappingEXRGamma, - 5 => kCGToneMappingNone, - _ => throw ArgumentError('Unknown value for CGToneMapping: $value'), - }; -} - -final class CGVector extends ffi.Struct { - @CGFloat() - external double dx; - - @CGFloat() - external double dy; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double dx, - required double dy, - }) => $allocator() - ..ref.dx = dx - ..ref.dy = dy; -} - -typedef CGWheelCount = ffi.Uint32; -typedef DartCGWheelCount = int; - -enum CGWindowBackingType { - kCGBackingStoreRetained(0), - kCGBackingStoreNonretained(1), - kCGBackingStoreBuffered(2); - - final int value; - const CGWindowBackingType(this.value); - - static CGWindowBackingType fromValue(int value) => switch (value) { - 0 => kCGBackingStoreRetained, - 1 => kCGBackingStoreNonretained, - 2 => kCGBackingStoreBuffered, - _ => throw ArgumentError('Unknown value for CGWindowBackingType: $value'), - }; -} - -typedef CGWindowID = ffi.Uint32; -typedef DartCGWindowID = int; - -sealed class CGWindowImageOption { - static const kCGWindowImageDefault = 0; - static const kCGWindowImageBoundsIgnoreFraming = 1; - static const kCGWindowImageShouldBeOpaque = 2; - static const kCGWindowImageOnlyShadows = 4; - static const kCGWindowImageBestResolution = 8; - static const kCGWindowImageNominalResolution = 16; -} - -typedef CGWindowLevel = ffi.Int32; -typedef DartCGWindowLevel = int; - -enum CGWindowLevelKey { - kCGBaseWindowLevelKey(0), - kCGMinimumWindowLevelKey(1), - kCGDesktopWindowLevelKey(2), - kCGBackstopMenuLevelKey(3), - kCGNormalWindowLevelKey(4), - kCGFloatingWindowLevelKey(5), - kCGTornOffMenuWindowLevelKey(6), - kCGDockWindowLevelKey(7), - kCGMainMenuWindowLevelKey(8), - kCGStatusWindowLevelKey(9), - kCGModalPanelWindowLevelKey(10), - kCGPopUpMenuWindowLevelKey(11), - kCGDraggingWindowLevelKey(12), - kCGScreenSaverWindowLevelKey(13), - kCGMaximumWindowLevelKey(14), - kCGOverlayWindowLevelKey(15), - kCGHelpWindowLevelKey(16), - kCGUtilityWindowLevelKey(17), - kCGDesktopIconWindowLevelKey(18), - kCGCursorWindowLevelKey(19), - kCGAssistiveTechHighWindowLevelKey(20), - kCGNumberOfWindowLevelKeys(21); - - final int value; - const CGWindowLevelKey(this.value); - - static CGWindowLevelKey fromValue(int value) => switch (value) { - 0 => kCGBaseWindowLevelKey, - 1 => kCGMinimumWindowLevelKey, - 2 => kCGDesktopWindowLevelKey, - 3 => kCGBackstopMenuLevelKey, - 4 => kCGNormalWindowLevelKey, - 5 => kCGFloatingWindowLevelKey, - 6 => kCGTornOffMenuWindowLevelKey, - 7 => kCGDockWindowLevelKey, - 8 => kCGMainMenuWindowLevelKey, - 9 => kCGStatusWindowLevelKey, - 10 => kCGModalPanelWindowLevelKey, - 11 => kCGPopUpMenuWindowLevelKey, - 12 => kCGDraggingWindowLevelKey, - 13 => kCGScreenSaverWindowLevelKey, - 14 => kCGMaximumWindowLevelKey, - 15 => kCGOverlayWindowLevelKey, - 16 => kCGHelpWindowLevelKey, - 17 => kCGUtilityWindowLevelKey, - 18 => kCGDesktopIconWindowLevelKey, - 19 => kCGCursorWindowLevelKey, - 20 => kCGAssistiveTechHighWindowLevelKey, - 21 => kCGNumberOfWindowLevelKeys, - _ => throw ArgumentError('Unknown value for CGWindowLevelKey: $value'), - }; -} - -sealed class CGWindowListOption { - static const kCGWindowListOptionAll = 0; - static const kCGWindowListOptionOnScreenOnly = 1; - static const kCGWindowListOptionOnScreenAboveWindow = 2; - static const kCGWindowListOptionOnScreenBelowWindow = 4; - static const kCGWindowListOptionIncludingWindow = 8; - static const kCGWindowListExcludeDesktopElements = 16; -} - -enum CGWindowSharingType { - kCGWindowSharingNone(0), - kCGWindowSharingReadOnly(1), - kCGWindowSharingReadWrite(2); - - final int value; - const CGWindowSharingType(this.value); - - static CGWindowSharingType fromValue(int value) => switch (value) { - 0 => kCGWindowSharingNone, - 1 => kCGWindowSharingReadOnly, - 2 => kCGWindowSharingReadWrite, - _ => throw ArgumentError('Unknown value for CGWindowSharingType: $value'), - }; -} - -typedef CGrafPort = GrafPort; -typedef CGrafPtr = GrafPtr; - -@ffi.Packed(2) -final class CM2Header extends ffi.Struct { - @UInt32() - external int size; - - @OSType() - external int CMMType; - - @UInt32() - external int profileVersion; - - @OSType() - external int profileClass; - - @OSType() - external int dataColorSpace; - - @OSType() - external int profileConnectionSpace; - - external CMDateTime dateTime; - - @OSType() - external int CS2profileSignature; - - @OSType() - external int platform; - - @UInt32() - external int flags; - - @OSType() - external int deviceManufacturer; - - @UInt32() - external int deviceModel; - - @ffi.Array.multi([2]) - external ffi.Array deviceAttributes; - - @UInt32() - external int renderingIntent; - - external CMFixedXYZColor white; - - @OSType() - external int creator; - - @ffi.Array.multi([44]) - external ffi.Array reserved; -} - -final class CM2Profile extends ffi.Struct { - external CM2Header header; - - external CMTagElemTable tagTable; - - @ffi.Array.multi([1]) - external ffi.Array elemData; -} - -typedef CM2ProfileHandle = ffi.Pointer>; -typedef CM2ProfilePtr = ffi.Pointer; - -@ffi.Packed(2) -final class CM4Header extends ffi.Struct { - @UInt32() - external int size; - - @OSType() - external int CMMType; - - @UInt32() - external int profileVersion; - - @OSType() - external int profileClass; - - @OSType() - external int dataColorSpace; - - @OSType() - external int profileConnectionSpace; - - external CMDateTime dateTime; - - @OSType() - external int CS2profileSignature; - - @OSType() - external int platform; - - @UInt32() - external int flags; - - @OSType() - external int deviceManufacturer; - - @UInt32() - external int deviceModel; - - @ffi.Array.multi([2]) - external ffi.Array deviceAttributes; - - @UInt32() - external int renderingIntent; - - external CMFixedXYZColor white; - - @OSType() - external int creator; - - @ffi.Array.multi([16]) - external ffi.Array digest; - - @ffi.Array.multi([28]) - external ffi.Array reserved; -} - -@ffi.Packed(2) -final class CMAdaptationMatrixType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([9]) - external ffi.Array adaptationMatrix; -} - -final class CMAppleProfileHeader extends ffi.Union { - external CM2Header cm2; - - external CM4Header cm4; -} - -typedef CMAudioCodecType = FourCharCode; -typedef CMAudioFormatDescriptionMask = ffi.Uint32; -typedef DartCMAudioFormatDescriptionMask = int; -typedef CMAudioFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMBaseClassVersion = ffi.UintPtr; -typedef DartCMBaseClassVersion = int; - -final class CMBitmap extends ffi.Struct { - external ffi.Pointer image; - - @ffi.Size() - external int width; - - @ffi.Size() - external int height; - - @ffi.Size() - external int rowBytes; - - @ffi.Size() - external int pixelSize; - - @CMBitmapColorSpace() - external int space; - - @UInt32() - external int user1; - - @UInt32() - external int user2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer image, - required int width, - required int height, - required int rowBytes, - required int pixelSize, - required int space, - required int user1, - required int user2, - }) => $allocator() - ..ref.image = image - ..ref.width = width - ..ref.height = height - ..ref.rowBytes = rowBytes - ..ref.pixelSize = pixelSize - ..ref.space = space - ..ref.user1 = user1 - ..ref.user2 = user2; -} - -typedef CMBitmapCallBackProcPtr = - ffi.Pointer>; -typedef CMBitmapCallBackProcPtrFunction = - Boolean Function(SInt32 progress, ffi.Pointer refCon); -typedef DartCMBitmapCallBackProcPtrFunction = - DartBoolean Function(DartSInt32 progress, ffi.Pointer refCon); -typedef CMBitmapCallBackUPP = CMBitmapCallBackProcPtr; -typedef CMBitmapColorSpace = UInt32; - -final class CMBufferLocation extends ffi.Struct { - external ffi.Pointer buffer; - - @UInt32() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer buffer, - required int size, - }) => $allocator() - ..ref.buffer = buffer - ..ref.size = size; -} - -final class CMCMYColor extends ffi.Struct { - @UInt16() - external int cyan; - - @UInt16() - external int magenta; - - @UInt16() - external int yellow; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cyan, - required int magenta, - required int yellow, - }) => $allocator() - ..ref.cyan = cyan - ..ref.magenta = magenta - ..ref.yellow = yellow; -} - -final class CMCMYKColor extends ffi.Struct { - @UInt16() - external int cyan; - - @UInt16() - external int magenta; - - @UInt16() - external int yellow; - - @UInt16() - external int black; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cyan, - required int magenta, - required int yellow, - required int black, - }) => $allocator() - ..ref.cyan = cyan - ..ref.magenta = magenta - ..ref.yellow = yellow - ..ref.black = black; -} - -typedef CMChromaticAdaptation = UInt32; -typedef CMClosedCaptionFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMClosedCaptionFormatType = FourCharCode; - -final class CMColor extends ffi.Union { - external CMRGBColor rgb; - - external CMHSVColor hsv; - - external CMHLSColor hls; - - external CMXYZColor XYZ; - - external CMLabColor Lab; - - external CMLuvColor Luv; - - external CMYxyColor Yxy; - - external CMCMYKColor cmyk; - - external CMCMYColor cmy; - - external CMGrayColor gray; - - external CMMultichannel5Color mc5; - - external CMMultichannel6Color mc6; - - external CMMultichannel7Color mc7; - - external CMMultichannel8Color mc8; - - external CMNamedColor namedColor; -} - -typedef CMConcatCallBackProcPtr = - ffi.Pointer>; -typedef CMConcatCallBackProcPtrFunction = - Boolean Function(SInt32 progress, ffi.Pointer refCon); -typedef DartCMConcatCallBackProcPtrFunction = - DartBoolean Function(DartSInt32 progress, ffi.Pointer refCon); -typedef CMConcatCallBackUPP = CMConcatCallBackProcPtr; - -final class CMConcatProfileSet extends ffi.Struct { - @UInt16() - external int keyIndex; - - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array profileSet; -} - -@ffi.Packed(2) -final class CMCurveType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int countValue; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -@ffi.Packed(2) -final class CMDataType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int dataFlag; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -final class CMDateTime extends ffi.Struct { - @UInt16() - external int year; - - @UInt16() - external int month; - - @UInt16() - external int dayOfTheMonth; - - @UInt16() - external int hours; - - @UInt16() - external int minutes; - - @UInt16() - external int seconds; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int year, - required int month, - required int dayOfTheMonth, - required int hours, - required int minutes, - required int seconds, - }) => $allocator() - ..ref.year = year - ..ref.month = month - ..ref.dayOfTheMonth = dayOfTheMonth - ..ref.hours = hours - ..ref.minutes = minutes - ..ref.seconds = seconds; -} - -@ffi.Packed(2) -final class CMDateTimeType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - external CMDateTime dateTime; -} - -typedef CMDeviceClass = OSType; -typedef CMDeviceID = UInt32; - -final class CMDeviceInfo extends ffi.Struct { - @UInt32() - external int dataVersion; - - @CMDeviceClass() - external int deviceClass; - - @CMDeviceID() - external int deviceID; - - external CMDeviceScope deviceScope; - - @CMDeviceState() - external int deviceState; - - @CMDeviceProfileID() - external int defaultProfileID; - - external ffi.Pointer deviceName; - - @UInt32() - external int profileCount; - - @UInt32() - external int reserved; -} - -typedef CMDeviceInfoPtr = ffi.Pointer; - -final class CMDeviceProfileArray extends ffi.Struct { - @UInt32() - external int profileCount; - - @ffi.Array.multi([1]) - external ffi.Array profiles; -} - -typedef CMDeviceProfileArrayPtr = ffi.Pointer; -typedef CMDeviceProfileID = UInt32; - -final class CMDeviceProfileInfo extends ffi.Struct { - @UInt32() - external int dataVersion; - - @CMDeviceProfileID() - external int profileID; - - external CMProfileLocation profileLoc; - - external CFDictionaryRef profileName; - - @UInt32() - external int reserved; -} - -typedef CMDeviceProfileScope = CMDeviceScope; - -final class CMDeviceScope extends ffi.Struct { - external CFStringRef deviceUser; - - external CFStringRef deviceHost; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFStringRef deviceUser, - required CFStringRef deviceHost, - }) => $allocator() - ..ref.deviceUser = deviceUser - ..ref.deviceHost = deviceHost; -} - -typedef CMDeviceState = UInt32; -typedef CMDisplayIDType = UInt32; - -@ffi.Packed(2) -final class CMFixedXYColor extends ffi.Struct { - @Fixed() - external int x; - - @Fixed() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -@ffi.Packed(2) -final class CMFixedXYZColor extends ffi.Struct { - @Fixed() - external int X; - - @Fixed() - external int Y; - - @Fixed() - external int Z; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int X, - required int Y, - required int Z, - }) => $allocator() - ..ref.X = X - ..ref.Y = Y - ..ref.Z = Z; -} - -typedef CMFlattenProcPtr = - ffi.Pointer>; -typedef CMFlattenProcPtrFunction = - OSErr Function( - SInt32 command, - ffi.Pointer size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef DartCMFlattenProcPtrFunction = - DartSInt16 Function( - DartSInt32 command, - ffi.Pointer size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef CMFlattenUPP = CMFlattenProcPtr; - -final class CMFloatBitmap extends ffi.Struct { - @ffi.UnsignedLong() - external int version; - - @ffi.Array.multi([16]) - external ffi.Array> buffers; - - @ffi.Size() - external int height; - - @ffi.Size() - external int width; - - @ptrdiff_t() - external int rowStride; - - @ptrdiff_t() - external int colStride; - - @OSType() - external int space; - - @ffi.UnsignedInt() - external int flagsAsInt; - - CMFloatBitmapFlags get flags => CMFloatBitmapFlags.fromValue(flagsAsInt); - set flags(CMFloatBitmapFlags value) => flagsAsInt = value.value; -} - -enum CMFloatBitmapFlags { - kCMFloatBitmapFlagsNone(0), - kCMFloatBitmapFlagsAlpha(1), - kCMFloatBitmapFlagsAlphaPremul(2), - kCMFloatBitmapFlagsRangeClipped(4); - - final int value; - const CMFloatBitmapFlags(this.value); - - static CMFloatBitmapFlags fromValue(int value) => switch (value) { - 0 => kCMFloatBitmapFlagsNone, - 1 => kCMFloatBitmapFlagsAlpha, - 2 => kCMFloatBitmapFlagsAlphaPremul, - 4 => kCMFloatBitmapFlagsRangeClipped, - _ => throw ArgumentError('Unknown value for CMFloatBitmapFlags: $value'), - }; -} - -typedef CMFormatDescriptionRef = ffi.Pointer; - -final class CMGrayColor extends ffi.Struct { - @UInt16() - external int gray; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int gray, - }) => $allocator()..ref.gray = gray; -} - -final class CMHLSColor extends ffi.Struct { - @UInt16() - external int hue; - - @UInt16() - external int lightness; - - @UInt16() - external int saturation; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int hue, - required int lightness, - required int saturation, - }) => $allocator() - ..ref.hue = hue - ..ref.lightness = lightness - ..ref.saturation = saturation; -} - -final class CMHSVColor extends ffi.Struct { - @UInt16() - external int hue; - - @UInt16() - external int saturation; - - @UInt16() - external int value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int hue, - required int saturation, - required int value, - }) => $allocator() - ..ref.hue = hue - ..ref.saturation = saturation - ..ref.value = value; -} - -final class CMHandleLocation extends ffi.Struct { - external Handle h; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required Handle h, - }) => $allocator()..ref.h = h; -} - -@ffi.Packed(2) -final class CMIntentCRDVMSize extends ffi.Struct { - @UInt32() - external int renderingIntent; - - @UInt32() - external int VMSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int renderingIntent, - required int VMSize, - }) => $allocator() - ..ref.renderingIntent = renderingIntent - ..ref.VMSize = VMSize; -} - -typedef CMItemCount = CFIndex; -typedef CMItemIndex = CFIndex; -typedef CMIterateDeviceInfoProcPtr = - ffi.Pointer>; -typedef CMIterateDeviceInfoProcPtrFunction = - OSErr Function( - ffi.Pointer deviceInfo, - ffi.Pointer refCon, - ); -typedef DartCMIterateDeviceInfoProcPtrFunction = - DartSInt16 Function( - ffi.Pointer deviceInfo, - ffi.Pointer refCon, - ); -typedef CMIterateDeviceProfileProcPtr = - ffi.Pointer>; -typedef CMIterateDeviceProfileProcPtrFunction = - OSErr Function( - ffi.Pointer deviceInfo, - ffi.Pointer profileInfo, - ffi.Pointer refCon, - ); -typedef DartCMIterateDeviceProfileProcPtrFunction = - DartSInt16 Function( - ffi.Pointer deviceInfo, - ffi.Pointer profileInfo, - ffi.Pointer refCon, - ); - -final class CMLabColor extends ffi.Struct { - @UInt16() - external int L; - - @UInt16() - external int a; - - @UInt16() - external int b; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int L, - required int a, - required int b, - }) => $allocator() - ..ref.L = L - ..ref.a = a - ..ref.b = b; -} - -typedef CMLabToLabProcPtr = - ffi.Pointer>; -typedef CMLabToLabProcPtrFunction = - ffi.Void Function( - ffi.Pointer L, - ffi.Pointer a, - ffi.Pointer b, - ffi.Pointer refcon, - ); -typedef DartCMLabToLabProcPtrFunction = - void Function( - ffi.Pointer L, - ffi.Pointer a, - ffi.Pointer b, - ffi.Pointer refcon, - ); - -@ffi.Packed(2) -final class CMLut16Type extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt8() - external int inputChannels; - - @UInt8() - external int outputChannels; - - @UInt8() - external int gridPoints; - - @UInt8() - external int reserved2; - - @ffi.Array.multi([3, 3]) - external ffi.Array> matrix; - - @UInt16() - external int inputTableEntries; - - @UInt16() - external int outputTableEntries; - - @ffi.Array.multi([1]) - external ffi.Array inputTable; -} - -@ffi.Packed(2) -final class CMLut8Type extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt8() - external int inputChannels; - - @UInt8() - external int outputChannels; - - @UInt8() - external int gridPoints; - - @UInt8() - external int reserved2; - - @ffi.Array.multi([3, 3]) - external ffi.Array> matrix; - - @ffi.Array.multi([1]) - external ffi.Array inputTable; -} - -final class CMLuvColor extends ffi.Struct { - @UInt16() - external int L; - - @UInt16() - external int u; - - @UInt16() - external int v; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int L, - required int u, - required int v, - }) => $allocator() - ..ref.L = L - ..ref.u = u - ..ref.v = v; -} - -typedef CMMApplyTransformProc = - ffi.Pointer>; -typedef CMMApplyTransformProcFunction = - ffi.Bool Function( - ColorSyncTransformRef transform, - ffi.Size width, - ffi.Size height, - ffi.Size dstPlanes, - ffi.Pointer> dst, - ffi.UnsignedInt dstDepth, - ColorSyncDataLayout dstFormat, - ffi.Size dstBytesPerRow, - ffi.Size srcPlanes, - ffi.Pointer> src, - ffi.UnsignedInt srcDepth, - ColorSyncDataLayout srcFormat, - ffi.Size srcBytesPerRow, - CFDictionaryRef options, - ); -typedef DartCMMApplyTransformProcFunction = - bool Function( - ColorSyncTransformRef transform, - int width, - int height, - int dstPlanes, - ffi.Pointer> dst, - ColorSyncDataDepth dstDepth, - DartColorSyncDataLayout dstFormat, - int dstBytesPerRow, - int srcPlanes, - ffi.Pointer> src, - ColorSyncDataDepth srcDepth, - DartColorSyncDataLayout srcFormat, - int srcBytesPerRow, - CFDictionaryRef options, - ); -typedef CMMCreateTransformPropertyProc = - ffi.Pointer>; -typedef CMMCreateTransformPropertyProcFunction = - CFTypeRef Function( - ColorSyncTransformRef transform, - CFTypeRef key, - CFDictionaryRef options, - ); - -final class CMMInfo extends ffi.Struct { - @ffi.Size() - external int dataSize; - - @OSType() - external int CMMType; - - @OSType() - external int CMMMfr; - - @UInt32() - external int CMMVersion; - - @ffi.Array.multi([32]) - external ffi.Array ASCIIName; - - @ffi.Array.multi([256]) - external ffi.Array ASCIIDesc; - - @UniCharCount() - external int UniCodeNameCount; - - @ffi.Array.multi([32]) - external ffi.Array UniCodeName; - - @UniCharCount() - external int UniCodeDescCount; - - @ffi.Array.multi([256]) - external ffi.Array UniCodeDesc; -} - -typedef CMMInitializeLinkProfileProc = - ffi.Pointer>; -typedef CMMInitializeLinkProfileProcFunction = - ffi.Bool Function(ColorSyncMutableProfileRef, CFArrayRef, CFDictionaryRef); -typedef DartCMMInitializeLinkProfileProcFunction = - bool Function(ColorSyncMutableProfileRef, CFArrayRef, CFDictionaryRef); -typedef CMMInitializeTransformProc = - ffi.Pointer>; -typedef CMMInitializeTransformProcFunction = - ffi.Bool Function(ColorSyncTransformRef, CFArrayRef, CFDictionaryRef); -typedef DartCMMInitializeTransformProcFunction = - bool Function(ColorSyncTransformRef, CFArrayRef, CFDictionaryRef); -typedef CMMIterateProcPtr = - ffi.Pointer>; -typedef CMMIterateProcPtrFunction = - OSErr Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ); -typedef DartCMMIterateProcPtrFunction = - DartSInt16 Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ); -typedef CMMIterateUPP = CMMIterateProcPtr; - -@ffi.Packed(2) -final class CMMakeAndModel extends ffi.Struct { - @OSType() - external int manufacturer; - - @UInt32() - external int model; - - @UInt32() - external int serialNumber; - - @UInt32() - external int manufactureDate; - - @UInt32() - external int reserved1; - - @UInt32() - external int reserved2; - - @UInt32() - external int reserved3; - - @UInt32() - external int reserved4; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int manufacturer, - required int model, - required int serialNumber, - required int manufactureDate, - required int reserved1, - required int reserved2, - required int reserved3, - required int reserved4, - }) => $allocator() - ..ref.manufacturer = manufacturer - ..ref.model = model - ..ref.serialNumber = serialNumber - ..ref.manufactureDate = manufactureDate - ..ref.reserved1 = reserved1 - ..ref.reserved2 = reserved2 - ..ref.reserved3 = reserved3 - ..ref.reserved4 = reserved4; -} - -@ffi.Packed(2) -final class CMMakeAndModelType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - external CMMakeAndModel makeAndModel; -} - -@ffi.Packed(2) -final class CMMeasurementType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int standardObserver; - - external CMFixedXYZColor backingXYZ; - - @UInt32() - external int geometry; - - @UInt32() - external int flare; - - @UInt32() - external int illuminant; -} - -typedef CMMediaType = FourCharCode; -typedef CMMetadataFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMMetadataFormatType = FourCharCode; - -final class CMMultiFunctCLUTType extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array gridPoints; - - @UInt8() - external int entrySize; - - @ffi.Array.multi([3]) - external ffi.Array reserved; - - @ffi.Array.multi([2]) - external ffi.Array data; -} - -typedef CMMultiFunctLutA2BType = CMMultiFunctLutType; -typedef CMMultiFunctLutB2AType = CMMultiFunctLutType; - -@ffi.Packed(2) -final class CMMultiFunctLutType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt8() - external int inputChannels; - - @UInt8() - external int outputChannels; - - @UInt16() - external int reserved2; - - @UInt32() - external int offsetBcurves; - - @UInt32() - external int offsetMatrix; - - @UInt32() - external int offsetMcurves; - - @UInt32() - external int offsetCLUT; - - @UInt32() - external int offsetAcurves; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -@ffi.Packed(2) -final class CMMultiLocalizedUniCodeEntryRec extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array languageCode; - - @ffi.Array.multi([2]) - external ffi.Array regionCode; - - @UInt32() - external int textLength; - - @UInt32() - external int textOffset; -} - -@ffi.Packed(2) -final class CMMultiLocalizedUniCodeType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int entryCount; - - @UInt32() - external int entrySize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int typeDescriptor, - required int reserved, - required int entryCount, - required int entrySize, - }) => $allocator() - ..ref.typeDescriptor = typeDescriptor - ..ref.reserved = reserved - ..ref.entryCount = entryCount - ..ref.entrySize = entrySize; -} - -final class CMMultichannel5Color extends ffi.Struct { - @ffi.Array.multi([5]) - external ffi.Array components; -} - -final class CMMultichannel6Color extends ffi.Struct { - @ffi.Array.multi([6]) - external ffi.Array components; -} - -final class CMMultichannel7Color extends ffi.Struct { - @ffi.Array.multi([7]) - external ffi.Array components; -} - -final class CMMultichannel8Color extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array components; -} - -typedef CMMuxedFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMMuxedStreamType = FourCharCode; - -final class CMNamedColor extends ffi.Struct { - @UInt32() - external int namedColorIndex; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int namedColorIndex, - }) => $allocator()..ref.namedColorIndex = namedColorIndex; -} - -final class CMNamedColor2EntryType extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array rootName; - - @ffi.Array.multi([3]) - external ffi.Array PCSColorCoords; - - @ffi.Array.multi([1]) - external ffi.Array DeviceColorCoords; -} - -@ffi.Packed(2) -final class CMNamedColor2Type extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int vendorFlag; - - @UInt32() - external int count; - - @UInt32() - external int deviceChannelCount; - - @ffi.Array.multi([32]) - external ffi.Array prefixName; - - @ffi.Array.multi([32]) - external ffi.Array suffixName; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -@ffi.Packed(2) -final class CMNamedColorType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int vendorFlag; - - @UInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array prefixName; -} - -@ffi.Packed(2) -final class CMNativeDisplayInfo extends ffi.Struct { - @UInt32() - external int dataSize; - - external CMFixedXYColor redPhosphor; - - external CMFixedXYColor greenPhosphor; - - external CMFixedXYColor bluePhosphor; - - external CMFixedXYColor whitePoint; - - @Fixed() - external int redGammaValue; - - @Fixed() - external int greenGammaValue; - - @Fixed() - external int blueGammaValue; - - @UInt16() - external int gammaChannels; - - @UInt16() - external int gammaEntryCount; - - @UInt16() - external int gammaEntrySize; - - @ffi.Array.multi([1]) - external ffi.Array gammaData; -} - -@ffi.Packed(2) -final class CMNativeDisplayInfoType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - external CMNativeDisplayInfo nativeDisplayInfo; -} - -@ffi.Packed(2) -final class CMPS2CRDVMSizeType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array intentCRD; -} - -@ffi.Packed(2) -final class CMParametricCurveType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt16() - external int functionType; - - @UInt16() - external int reserved2; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -final class CMPathLocation extends ffi.Struct { - @ffi.Array.multi([1024]) - external ffi.Array path; -} - -typedef CMPersistentTrackID = ffi.Int32; -typedef DartCMPersistentTrackID = int; -typedef CMPixelFormatType = FourCharCode; - -final class CMProfLoc extends ffi.Union { - external CMHandleLocation handleLoc; - - external CMPathLocation pathLoc; - - external CMBufferLocation bufferLoc; -} - -final class CMProfileIterateData extends ffi.Struct { - @UInt32() - external int dataVersion; - - external CM2Header header; - - @ScriptCode() - external int code; - - @ffi.Array.multi([256]) - external ffi.Array name; - - external CMProfileLocation location; - - @UniCharCount() - external int uniCodeNameCount; - - external ffi.Pointer uniCodeName; - - external ffi.Pointer asciiName; - - external ffi.Pointer makeAndModel; - - external ffi.Pointer> digest; -} - -typedef CMProfileIterateProcPtr = - ffi.Pointer>; -typedef CMProfileIterateProcPtrFunction = - OSErr Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ); -typedef DartCMProfileIterateProcPtrFunction = - DartSInt16 Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ); -typedef CMProfileIterateUPP = CMProfileIterateProcPtr; - -final class CMProfileLocation extends ffi.Struct { - @ffi.Short() - external int locType; - - external CMProfLoc u; -} - -typedef CMProfileMD5Ptr = ffi.Pointer>; -typedef CMProfileRef = ffi.Pointer; - -@ffi.Packed(2) -final class CMProfileSequenceDescType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -final class CMRGBColor extends ffi.Struct { - @UInt16() - external int red; - - @UInt16() - external int green; - - @UInt16() - external int blue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int red, - required int green, - required int blue, - }) => $allocator() - ..ref.red = red - ..ref.green = green - ..ref.blue = blue; -} - -@ffi.Packed(2) -final class CMS15Fixed16ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -enum CMSCertificateChainMode { - kCMSCertificateNone(0), - kCMSCertificateSignerOnly(1), - kCMSCertificateChain(2), - kCMSCertificateChainWithRoot(3), - kCMSCertificateChainWithRootOrFail(4); - - final int value; - const CMSCertificateChainMode(this.value); - - static CMSCertificateChainMode fromValue(int value) => switch (value) { - 0 => kCMSCertificateNone, - 1 => kCMSCertificateSignerOnly, - 2 => kCMSCertificateChain, - 3 => kCMSCertificateChainWithRoot, - 4 => kCMSCertificateChainWithRootOrFail, - _ => throw ArgumentError( - 'Unknown value for CMSCertificateChainMode: $value', - ), - }; -} - -typedef CMSDecoderRef = ffi.Pointer<_CMSDecoder>; -typedef CMSEncoderRef = ffi.Pointer<_CMSEncoder>; - -sealed class CMSSignedAttributes { - static const kCMSAttrNone = 0; - static const kCMSAttrSmimeCapabilities = 1; - static const kCMSAttrSmimeEncryptionKeyPrefs = 2; - static const kCMSAttrSmimeMSEncryptionKeyPrefs = 4; - static const kCMSAttrSigningTime = 8; - static const kCMSAttrAppleCodesigningHashAgility = 16; - static const kCMSAttrAppleCodesigningHashAgilityV2 = 32; - static const kCMSAttrAppleExpirationTime = 64; -} - -enum CMSSignerStatus { - kCMSSignerUnsigned(0), - kCMSSignerValid(1), - kCMSSignerNeedsDetachedContent(2), - kCMSSignerInvalidSignature(3), - kCMSSignerInvalidCert(4), - kCMSSignerInvalidIndex(5); - - final int value; - const CMSSignerStatus(this.value); - - static CMSSignerStatus fromValue(int value) => switch (value) { - 0 => kCMSSignerUnsigned, - 1 => kCMSSignerValid, - 2 => kCMSSignerNeedsDetachedContent, - 3 => kCMSSignerInvalidSignature, - 4 => kCMSSignerInvalidCert, - 5 => kCMSSignerInvalidIndex, - _ => throw ArgumentError('Unknown value for CMSSignerStatus: $value'), - }; -} - -@ffi.Packed(2) -final class CMScreeningChannelRec extends ffi.Struct { - @Fixed() - external int frequency; - - @Fixed() - external int angle; - - @UInt32() - external int spotFunction; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int frequency, - required int angle, - required int spotFunction, - }) => $allocator() - ..ref.frequency = frequency - ..ref.angle = angle - ..ref.spotFunction = spotFunction; -} - -@ffi.Packed(2) -final class CMScreeningType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int screeningFlag; - - @UInt32() - external int channelCount; - - @ffi.Array.multi([1]) - external ffi.Array channelInfo; -} - -@ffi.Packed(2) -final class CMSignatureType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @OSType() - external int signature; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int typeDescriptor, - required int reserved, - required int signature, - }) => $allocator() - ..ref.typeDescriptor = typeDescriptor - ..ref.reserved = reserved - ..ref.signature = signature; -} - -typedef CMStructVersion = ffi.UintPtr; -typedef DartCMStructVersion = int; -typedef CMSubtitleFormatType = FourCharCode; - -@ffi.Packed(2) -final class CMTagElemTable extends ffi.Struct { - @UInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array tagList; -} - -@ffi.Packed(2) -final class CMTagRecord extends ffi.Struct { - @OSType() - external int tag; - - @UInt32() - external int elementOffset; - - @UInt32() - external int elementSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tag, - required int elementOffset, - required int elementSize, - }) => $allocator() - ..ref.tag = tag - ..ref.elementOffset = elementOffset - ..ref.elementSize = elementSize; -} - -typedef CMTaggedBufferGroupFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMTaggedBufferGroupFormatType = FourCharCode; - -@ffi.Packed(2) -final class CMTextDescriptionType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int ASCIICount; - - @ffi.Array.multi([2]) - external ffi.Array ASCIIName; -} - -typedef CMTextDisplayFlags = ffi.Uint32; -typedef DartCMTextDisplayFlags = int; -typedef CMTextFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMTextFormatType = FourCharCode; -typedef CMTextJustificationValue = ffi.Int8; -typedef DartCMTextJustificationValue = int; - -@ffi.Packed(2) -final class CMTextType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array text; -} - -@ffi.Packed(4) -final class CMTime extends ffi.Struct { - @CMTimeValue() - external int value; - - @CMTimeScale() - external int timescale; - - @ffi.Uint32() - external int flags; - - @CMTimeEpoch() - external int epoch; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int value, - required int timescale, - required int flags, - required int epoch, - }) => $allocator() - ..ref.value = value - ..ref.timescale = timescale - ..ref.flags = flags - ..ref.epoch = epoch; -} - -typedef CMTimeCodeFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMTimeCodeFormatType = FourCharCode; -typedef CMTimeEpoch = ffi.Int64; -typedef DartCMTimeEpoch = int; - -sealed class CMTimeFlags { - static const kCMTimeFlags_Valid = 1; - static const kCMTimeFlags_HasBeenRounded = 2; - static const kCMTimeFlags_PositiveInfinity = 4; - static const kCMTimeFlags_NegativeInfinity = 8; - static const kCMTimeFlags_Indefinite = 16; - static const kCMTimeFlags_ImpliedValueFlagsMask = 28; -} - -enum CMTimeRoundingMethod { - kCMTimeRoundingMethod_RoundHalfAwayFromZero(1), - kCMTimeRoundingMethod_RoundTowardZero(2), - kCMTimeRoundingMethod_RoundAwayFromZero(3), - kCMTimeRoundingMethod_QuickTime(4), - kCMTimeRoundingMethod_RoundTowardPositiveInfinity(5), - kCMTimeRoundingMethod_RoundTowardNegativeInfinity(6); - - static const kCMTimeRoundingMethod_Default = - kCMTimeRoundingMethod_RoundHalfAwayFromZero; - - final int value; - const CMTimeRoundingMethod(this.value); - - static CMTimeRoundingMethod fromValue(int value) => switch (value) { - 1 => kCMTimeRoundingMethod_RoundHalfAwayFromZero, - 2 => kCMTimeRoundingMethod_RoundTowardZero, - 3 => kCMTimeRoundingMethod_RoundAwayFromZero, - 4 => kCMTimeRoundingMethod_QuickTime, - 5 => kCMTimeRoundingMethod_RoundTowardPositiveInfinity, - 6 => kCMTimeRoundingMethod_RoundTowardNegativeInfinity, - _ => throw ArgumentError('Unknown value for CMTimeRoundingMethod: $value'), - }; - - @override - String toString() { - if (this == kCMTimeRoundingMethod_RoundHalfAwayFromZero) - return "CMTimeRoundingMethod.kCMTimeRoundingMethod_RoundHalfAwayFromZero, CMTimeRoundingMethod.kCMTimeRoundingMethod_Default"; - return super.toString(); - } -} - -typedef CMTimeScale = ffi.Int32; -typedef DartCMTimeScale = int; -typedef CMTimeValue = ffi.Int64; -typedef DartCMTimeValue = int; - -@ffi.Packed(2) -final class CMU16Fixed16ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -@ffi.Packed(2) -final class CMUInt16ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -@ffi.Packed(2) -final class CMUInt32ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -@ffi.Packed(2) -final class CMUInt64ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -@ffi.Packed(2) -final class CMUInt8ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -@ffi.Packed(2) -final class CMUcrBgType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int ucrCount; - - @ffi.Array.multi([1]) - external ffi.Array ucrValues; -} - -@ffi.Packed(2) -final class CMUnicodeTextType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array text; -} - -@ffi.Packed(2) -final class CMVideoCardGamma extends ffi.Struct { - @UInt32() - external int tagType; - - external UnnamedUnion$7 u; -} - -@ffi.Packed(2) -final class CMVideoCardGammaFormula extends ffi.Struct { - @Fixed() - external int redGamma; - - @Fixed() - external int redMin; - - @Fixed() - external int redMax; - - @Fixed() - external int greenGamma; - - @Fixed() - external int greenMin; - - @Fixed() - external int greenMax; - - @Fixed() - external int blueGamma; - - @Fixed() - external int blueMin; - - @Fixed() - external int blueMax; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int redGamma, - required int redMin, - required int redMax, - required int greenGamma, - required int greenMin, - required int greenMax, - required int blueGamma, - required int blueMin, - required int blueMax, - }) => $allocator() - ..ref.redGamma = redGamma - ..ref.redMin = redMin - ..ref.redMax = redMax - ..ref.greenGamma = greenGamma - ..ref.greenMin = greenMin - ..ref.greenMax = greenMax - ..ref.blueGamma = blueGamma - ..ref.blueMin = blueMin - ..ref.blueMax = blueMax; -} - -final class CMVideoCardGammaTable extends ffi.Struct { - @UInt16() - external int channels; - - @UInt16() - external int entryCount; - - @UInt16() - external int entrySize; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -@ffi.Packed(2) -final class CMVideoCardGammaType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - external CMVideoCardGamma gamma; -} - -typedef CMVideoCodecType = FourCharCode; - -final class CMVideoDimensions extends ffi.Struct { - @ffi.Int32() - external int width; - - @ffi.Int32() - external int height; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int width, - required int height, - }) => $allocator() - ..ref.width = width - ..ref.height = height; -} - -typedef CMVideoFormatDescriptionRef = CMFormatDescriptionRef; - -@ffi.Packed(2) -final class CMViewingConditionsType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - external CMFixedXYZColor illuminant; - - external CMFixedXYZColor surround; - - @UInt32() - external int stdIlluminant; -} - -typedef CMWorldRef = ffi.Pointer; - -final class CMXYZColor extends ffi.Struct { - @CMXYZComponent() - external int X; - - @CMXYZComponent() - external int Y; - - @CMXYZComponent() - external int Z; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int X, - required int Y, - required int Z, - }) => $allocator() - ..ref.X = X - ..ref.Y = Y - ..ref.Z = Z; -} - -typedef CMXYZComponent = UInt16; - -@ffi.Packed(2) -final class CMXYZType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array XYZ; -} - -final class CMYxyColor extends ffi.Struct { - @UInt16() - external int capY; - - @UInt16() - external int x; - - @UInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int capY, - required int x, - required int y, - }) => $allocator() - ..ref.capY = capY - ..ref.x = x - ..ref.y = y; -} - -@ffi.Packed(2) -final class CQDProcs extends ffi.Struct { - external QDTextUPP textProc; - - external QDLineUPP lineProc; - - external QDRectUPP rectProc; - - external QDRRectUPP rRectProc; - - external QDOvalUPP ovalProc; - - external QDArcUPP arcProc; - - external QDPolyUPP polyProc; - - external QDRgnUPP rgnProc; - - external QDBitsUPP bitsProc; - - external QDCommentUPP commentProc; - - external QDTxMeasUPP txMeasProc; - - external QDGetPicUPP getPicProc; - - external QDPutPicUPP putPicProc; - - external QDOpcodeUPP opcodeProc; - - external UniversalProcPtr newProc1; - - external QDStdGlyphsUPP glyphsProc; - - external QDPrinterStatusUPP printerStatusProc; - - external UniversalProcPtr newProc4; - - external UniversalProcPtr newProc5; - - external UniversalProcPtr newProc6; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QDTextUPP textProc, - required QDLineUPP lineProc, - required QDRectUPP rectProc, - required QDRRectUPP rRectProc, - required QDOvalUPP ovalProc, - required QDArcUPP arcProc, - required QDPolyUPP polyProc, - required QDRgnUPP rgnProc, - required QDBitsUPP bitsProc, - required QDCommentUPP commentProc, - required QDTxMeasUPP txMeasProc, - required QDGetPicUPP getPicProc, - required QDPutPicUPP putPicProc, - required QDOpcodeUPP opcodeProc, - required UniversalProcPtr newProc1, - required QDStdGlyphsUPP glyphsProc, - required QDPrinterStatusUPP printerStatusProc, - required UniversalProcPtr newProc4, - required UniversalProcPtr newProc5, - required UniversalProcPtr newProc6, - }) => $allocator() - ..ref.textProc = textProc - ..ref.lineProc = lineProc - ..ref.rectProc = rectProc - ..ref.rRectProc = rRectProc - ..ref.ovalProc = ovalProc - ..ref.arcProc = arcProc - ..ref.polyProc = polyProc - ..ref.rgnProc = rgnProc - ..ref.bitsProc = bitsProc - ..ref.commentProc = commentProc - ..ref.txMeasProc = txMeasProc - ..ref.getPicProc = getPicProc - ..ref.putPicProc = putPicProc - ..ref.opcodeProc = opcodeProc - ..ref.newProc1 = newProc1 - ..ref.glyphsProc = glyphsProc - ..ref.printerStatusProc = printerStatusProc - ..ref.newProc4 = newProc4 - ..ref.newProc5 = newProc5 - ..ref.newProc6 = newProc6; -} - -typedef CQDProcsPtr = ffi.Pointer; -typedef CSComponentsThreadMode = UInt32; -typedef CSDiskSpaceRecoveryCallback = ffi.Pointer; -typedef DartCSDiskSpaceRecoveryCallback = - objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >; -typedef CSDiskSpaceRecoveryOptions = ffi.Int; -typedef DartCSDiskSpaceRecoveryOptions = int; -typedef CSIdentityAuthorityRef = ffi.Pointer<__CSIdentityAuthority>; -typedef CSIdentityClass = CFIndex; - -@ffi.Packed(2) -final class CSIdentityClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - external CSIdentityStatusUpdatedCallback statusUpdated; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - required CSIdentityStatusUpdatedCallback statusUpdated, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.statusUpdated = statusUpdated; -} - -typedef CSIdentityFlags = CFOptionFlags; - -@ffi.Packed(2) -final class CSIdentityQueryClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retainInfo; - - external CFAllocatorReleaseCallBack releaseInfo; - - external CFAllocatorCopyDescriptionCallBack copyInfoDescription; - - external CSIdentityQueryReceiveEventCallback receiveEvent; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retainInfo, - required CFAllocatorReleaseCallBack releaseInfo, - required CFAllocatorCopyDescriptionCallBack copyInfoDescription, - required CSIdentityQueryReceiveEventCallback receiveEvent, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retainInfo = retainInfo - ..ref.releaseInfo = releaseInfo - ..ref.copyInfoDescription = copyInfoDescription - ..ref.receiveEvent = receiveEvent; -} - -typedef CSIdentityQueryEvent = CFIndex; -typedef CSIdentityQueryFlags = CFOptionFlags; -typedef CSIdentityQueryReceiveEventCallback = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CSIdentityQueryReceiveEventCallbackFunction = - ffi.Void Function( - CSIdentityQueryRef query, - CSIdentityQueryEvent event, - CFArrayRef identities, - CFErrorRef error, - ffi.Pointer info, - ); -typedef DartCSIdentityQueryReceiveEventCallbackFunction = - void Function( - CSIdentityQueryRef query, - DartCFIndex event, - CFArrayRef identities, - CFErrorRef error, - ffi.Pointer info, - ); -typedef CSIdentityQueryRef = ffi.Pointer<__CSIdentityQuery>; -typedef CSIdentityQueryStringComparisonMethod = CFIndex; -typedef CSIdentityRef = ffi.Pointer<__CSIdentity>; -typedef CSIdentityStatusUpdatedCallback = - ffi.Pointer>; -typedef CSIdentityStatusUpdatedCallbackFunction = - ffi.Void Function( - CSIdentityRef identity, - CFIndex status, - CFErrorRef error, - ffi.Pointer info, - ); -typedef DartCSIdentityStatusUpdatedCallbackFunction = - void Function( - CSIdentityRef identity, - DartCFIndex status, - CFErrorRef error, - ffi.Pointer info, - ); - -const int CSSMERR_AC_DEVICE_FAILED = -2147405595; - -const int CSSMERR_AC_DEVICE_RESET = -2147405596; - -const int CSSMERR_AC_FUNCTION_FAILED = -2147405814; - -const int CSSMERR_AC_FUNCTION_NOT_IMPLEMENTED = -2147405817; - -const int CSSMERR_AC_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147405597; - -const int CSSMERR_AC_INTERNAL_ERROR = -2147405823; - -const int CSSMERR_AC_INVALID_BASE_ACLS = -2147405567; - -const int CSSMERR_AC_INVALID_CL_HANDLE = -2147405742; - -const int CSSMERR_AC_INVALID_CONTEXT_HANDLE = -2147405760; - -const int CSSMERR_AC_INVALID_DATA = -2147405754; - -const int CSSMERR_AC_INVALID_DB_HANDLE = -2147405750; - -const int CSSMERR_AC_INVALID_DB_LIST = -2147405748; - -const int CSSMERR_AC_INVALID_DB_LIST_POINTER = -2147405747; - -const int CSSMERR_AC_INVALID_DL_HANDLE = -2147405743; - -const int CSSMERR_AC_INVALID_ENCODING = -2147405565; - -const int CSSMERR_AC_INVALID_INPUT_POINTER = -2147405819; - -const int CSSMERR_AC_INVALID_OUTPUT_POINTER = -2147405818; - -const int CSSMERR_AC_INVALID_PASSTHROUGH_ID = -2147405738; - -const int CSSMERR_AC_INVALID_POINTER = -2147405820; - -const int CSSMERR_AC_INVALID_REQUESTOR = -2147405563; - -const int CSSMERR_AC_INVALID_REQUEST_DESCRIPTOR = -2147405562; - -const int CSSMERR_AC_INVALID_TP_HANDLE = -2147405741; - -const int CSSMERR_AC_INVALID_TUPLE_CREDENTIALS = -2147405566; - -const int CSSMERR_AC_INVALID_VALIDITY_PERIOD = -2147405564; - -const int CSSMERR_AC_IN_DARK_WAKE = -2147405594; - -const int CSSMERR_AC_MDS_ERROR = -2147405821; - -const int CSSMERR_AC_MEMORY_ERROR = -2147405822; - -const int CSSMERR_AC_NO_USER_INTERACTION = -2147405600; - -const int CSSMERR_AC_OS_ACCESS_DENIED = -2147405815; - -const int CSSMERR_AC_SELF_CHECK_FAILED = -2147405816; - -const int CSSMERR_AC_SERVICE_NOT_AVAILABLE = -2147405598; - -const int CSSMERR_AC_USER_CANCELED = -2147405599; - -const int CSSMERR_APPLEDL_DISK_FULL = -2147412991; - -const int CSSMERR_APPLEDL_FILE_TOO_BIG = -2147412989; - -const int CSSMERR_APPLEDL_INCOMPATIBLE_DATABASE_BLOB = -2147412986; - -const int CSSMERR_APPLEDL_INCOMPATIBLE_KEY_BLOB = -2147412985; - -const int CSSMERR_APPLEDL_INVALID_DATABASE_BLOB = -2147412988; - -const int CSSMERR_APPLEDL_INVALID_KEY_BLOB = -2147412987; - -const int CSSMERR_APPLEDL_INVALID_OPEN_PARAMETERS = -2147412992; - -const int CSSMERR_APPLEDL_QUOTA_EXCEEDED = -2147412990; - -const int CSSMERR_APPLETP_BAD_CERT_FROM_ISSUER = -2147408873; - -const int CSSMERR_APPLETP_CA_PIN_MISMATCH = -2147408836; - -const int CSSMERR_APPLETP_CERT_NOT_FOUND_FROM_ISSUER = -2147408874; - -const int CSSMERR_APPLETP_CODE_SIGN_DEVELOPMENT = -2147408845; - -const int CSSMERR_APPLETP_CRL_BAD_URI = -2147408881; - -const int CSSMERR_APPLETP_CRL_EXPIRED = -2147408885; - -const int CSSMERR_APPLETP_CRL_INVALID_ANCHOR_CERT = -2147408877; - -const int CSSMERR_APPLETP_CRL_NOT_FOUND = -2147408883; - -const int CSSMERR_APPLETP_CRL_NOT_TRUSTED = -2147408878; - -const int CSSMERR_APPLETP_CRL_NOT_VALID_YET = -2147408884; - -const int CSSMERR_APPLETP_CRL_POLICY_FAIL = -2147408876; - -const int CSSMERR_APPLETP_CRL_SERVER_DOWN = -2147408882; - -const int CSSMERR_APPLETP_CS_BAD_CERT_CHAIN_LENGTH = -2147408849; - -const int CSSMERR_APPLETP_CS_BAD_PATH_LENGTH = -2147408847; - -const int CSSMERR_APPLETP_CS_NO_BASIC_CONSTRAINTS = -2147408848; - -const int CSSMERR_APPLETP_CS_NO_EXTENDED_KEY_USAGE = -2147408846; - -const int CSSMERR_APPLETP_EXT_KEYUSAGE_NOT_CRITICAL = -2147408838; - -const int CSSMERR_APPLETP_HOSTNAME_MISMATCH = -2147408896; - -const int CSSMERR_APPLETP_IDENTIFIER_MISSING = -2147408837; - -const int CSSMERR_APPLETP_IDP_FAIL = -2147408875; - -const int CSSMERR_APPLETP_INCOMPLETE_REVOCATION_CHECK = -2147408861; - -const int CSSMERR_APPLETP_INVALID_AUTHORITY_ID = -2147408892; - -const int CSSMERR_APPLETP_INVALID_CA = -2147408893; - -const int CSSMERR_APPLETP_INVALID_EMPTY_SUBJECT = -2147408841; - -const int CSSMERR_APPLETP_INVALID_EXTENDED_KEY_USAGE = -2147408889; - -const int CSSMERR_APPLETP_INVALID_ID_LINKAGE = -2147408888; - -const int CSSMERR_APPLETP_INVALID_KEY_USAGE = -2147408890; - -const int CSSMERR_APPLETP_INVALID_ROOT = -2147408886; - -const int CSSMERR_APPLETP_INVALID_SUBJECT_ID = -2147408891; - -const int CSSMERR_APPLETP_LEAF_PIN_MISMATCH = -2147408835; - -const int CSSMERR_APPLETP_MISSING_REQUIRED_EXTENSION = -2147408839; - -const int CSSMERR_APPLETP_NETWORK_FAILURE = -2147408860; - -const int CSSMERR_APPLETP_NO_BASIC_CONSTRAINTS = -2147408894; - -const int CSSMERR_APPLETP_OCSP_BAD_REQUEST = -2147408864; - -const int CSSMERR_APPLETP_OCSP_BAD_RESPONSE = -2147408865; - -const int CSSMERR_APPLETP_OCSP_INVALID_ANCHOR_CERT = -2147408858; - -const int CSSMERR_APPLETP_OCSP_NONCE_MISMATCH = -2147408850; - -const int CSSMERR_APPLETP_OCSP_NOT_TRUSTED = -2147408859; - -const int CSSMERR_APPLETP_OCSP_NO_SIGNER = -2147408856; - -const int CSSMERR_APPLETP_OCSP_RESP_INTERNAL_ERR = -2147408854; - -const int CSSMERR_APPLETP_OCSP_RESP_MALFORMED_REQ = -2147408855; - -const int CSSMERR_APPLETP_OCSP_RESP_SIG_REQUIRED = -2147408852; - -const int CSSMERR_APPLETP_OCSP_RESP_TRY_LATER = -2147408853; - -const int CSSMERR_APPLETP_OCSP_RESP_UNAUTHORIZED = -2147408851; - -const int CSSMERR_APPLETP_OCSP_SIG_ERROR = -2147408857; - -const int CSSMERR_APPLETP_OCSP_STATUS_UNRECOGNIZED = -2147408862; - -const int CSSMERR_APPLETP_OCSP_UNAVAILABLE = -2147408863; - -const int CSSMERR_APPLETP_PATH_LEN_CONSTRAINT = -2147408887; - -const int CSSMERR_APPLETP_RS_BAD_CERT_CHAIN_LENGTH = -2147408844; - -const int CSSMERR_APPLETP_RS_BAD_EXTENDED_KEY_USAGE = -2147408843; - -const int CSSMERR_APPLETP_SMIME_BAD_EXT_KEY_USE = -2147408871; - -const int CSSMERR_APPLETP_SMIME_BAD_KEY_USE = -2147408870; - -const int CSSMERR_APPLETP_SMIME_EMAIL_ADDRS_NOT_FOUND = -2147408872; - -const int CSSMERR_APPLETP_SMIME_KEYUSAGE_NOT_CRITICAL = -2147408869; - -const int CSSMERR_APPLETP_SMIME_NO_EMAIL_ADDRS = -2147408868; - -const int CSSMERR_APPLETP_SMIME_SUBJ_ALT_NAME_NOT_CRIT = -2147408867; - -const int CSSMERR_APPLETP_SSL_BAD_EXT_KEY_USE = -2147408866; - -const int CSSMERR_APPLETP_TRUST_SETTING_DENY = -2147408842; - -const int CSSMERR_APPLETP_UNKNOWN_CERT_EXTEN = -2147408880; - -const int CSSMERR_APPLETP_UNKNOWN_CRITICAL_EXTEN = -2147408895; - -const int CSSMERR_APPLETP_UNKNOWN_CRL_EXTEN = -2147408879; - -const int CSSMERR_APPLETP_UNKNOWN_QUAL_CERT_STATEMENT = -2147408840; - -const int CSSMERR_APPLE_DOTMAC_CSR_VERIFY_FAIL = -2147408785; - -const int CSSMERR_APPLE_DOTMAC_FAILED_CONSISTENCY_CHECK = -2147408784; - -const int CSSMERR_APPLE_DOTMAC_NO_REQ_PENDING = -2147408786; - -const int CSSMERR_APPLE_DOTMAC_REQ_IS_PENDING = -2147408787; - -const int CSSMERR_APPLE_DOTMAC_REQ_QUEUED = -2147408796; - -const int CSSMERR_APPLE_DOTMAC_REQ_REDIRECT = -2147408795; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ALREADY_EXIST = -2147408789; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_AUTH = -2147408792; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ERR = -2147408794; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_NOT_AVAIL = -2147408790; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_PARAM = -2147408793; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_SERVICE_ERROR = -2147408788; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_UNIMPL = -2147408791; - -const int CSSMERR_CL_CRL_ALREADY_SIGNED = -2147411897; - -const int CSSMERR_CL_DEVICE_FAILED = -2147411739; - -const int CSSMERR_CL_DEVICE_RESET = -2147411740; - -const int CSSMERR_CL_FUNCTION_FAILED = -2147411958; - -const int CSSMERR_CL_FUNCTION_NOT_IMPLEMENTED = -2147411961; - -const int CSSMERR_CL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147411741; - -const int CSSMERR_CL_INTERNAL_ERROR = -2147411967; - -const int CSSMERR_CL_INVALID_BUNDLE_INFO = -2147411708; - -const int CSSMERR_CL_INVALID_BUNDLE_POINTER = -2147411711; - -const int CSSMERR_CL_INVALID_CACHE_HANDLE = -2147411710; - -const int CSSMERR_CL_INVALID_CERTGROUP_POINTER = -2147411902; - -const int CSSMERR_CL_INVALID_CERT_POINTER = -2147411901; - -const int CSSMERR_CL_INVALID_CONTEXT_HANDLE = -2147411904; - -const int CSSMERR_CL_INVALID_CRL_INDEX = -2147411707; - -const int CSSMERR_CL_INVALID_CRL_POINTER = -2147411900; - -const int CSSMERR_CL_INVALID_DATA = -2147411898; - -const int CSSMERR_CL_INVALID_FIELD_POINTER = -2147411899; - -const int CSSMERR_CL_INVALID_INPUT_POINTER = -2147411963; - -const int CSSMERR_CL_INVALID_NUMBER_OF_FIELDS = -2147411896; - -const int CSSMERR_CL_INVALID_OUTPUT_POINTER = -2147411962; - -const int CSSMERR_CL_INVALID_PASSTHROUGH_ID = -2147411882; - -const int CSSMERR_CL_INVALID_POINTER = -2147411964; - -const int CSSMERR_CL_INVALID_RESULTS_HANDLE = -2147411709; - -const int CSSMERR_CL_INVALID_SCOPE = -2147411706; - -const int CSSMERR_CL_IN_DARK_WAKE = -2147411738; - -const int CSSMERR_CL_MDS_ERROR = -2147411965; - -const int CSSMERR_CL_MEMORY_ERROR = -2147411966; - -const int CSSMERR_CL_NO_FIELD_VALUES = -2147411705; - -const int CSSMERR_CL_NO_USER_INTERACTION = -2147411744; - -const int CSSMERR_CL_OS_ACCESS_DENIED = -2147411959; - -const int CSSMERR_CL_SCOPE_NOT_SUPPORTED = -2147411704; - -const int CSSMERR_CL_SELF_CHECK_FAILED = -2147411960; - -const int CSSMERR_CL_SERVICE_NOT_AVAILABLE = -2147411742; - -const int CSSMERR_CL_UNKNOWN_FORMAT = -2147411890; - -const int CSSMERR_CL_UNKNOWN_TAG = -2147411889; - -const int CSSMERR_CL_USER_CANCELED = -2147411743; - -const int CSSMERR_CL_VERIFICATION_FAILURE = -2147411895; - -const int CSSMERR_CSPDL_APPLE_DL_CONVERSION_ERROR = -2147415035; - -const int CSSMERR_CSP_ACL_ADD_FAILED = -2147416010; - -const int CSSMERR_CSP_ACL_BASE_CERTS_NOT_SUPPORTED = -2147416025; - -const int CSSMERR_CSP_ACL_CHALLENGE_CALLBACK_FAILED = -2147416019; - -const int CSSMERR_CSP_ACL_CHANGE_FAILED = -2147416015; - -const int CSSMERR_CSP_ACL_DELETE_FAILED = -2147416012; - -const int CSSMERR_CSP_ACL_ENTRY_TAG_NOT_FOUND = -2147416017; - -const int CSSMERR_CSP_ACL_REPLACE_FAILED = -2147416011; - -const int CSSMERR_CSP_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147416021; - -const int CSSMERR_CSP_ALGID_MISMATCH = -2147415789; - -const int CSSMERR_CSP_ALREADY_LOGGED_IN = -2147415726; - -const int CSSMERR_CSP_APPLE_ADD_APPLICATION_ACL_SUBJECT = -2147415040; - -const int CSSMERR_CSP_APPLE_INVALID_KEY_END_DATE = -2147415036; - -const int CSSMERR_CSP_APPLE_INVALID_KEY_START_DATE = -2147415037; - -const int CSSMERR_CSP_APPLE_PUBLIC_KEY_INCOMPLETE = -2147415039; - -const int CSSMERR_CSP_APPLE_SIGNATURE_MISMATCH = -2147415038; - -const int CSSMERR_CSP_APPLE_SSLv2_ROLLBACK = -2147415034; - -const int CSSMERR_CSP_ATTACH_HANDLE_BUSY = -2147415802; - -const int CSSMERR_CSP_BLOCK_SIZE_MISMATCH = -2147415731; - -const int CSSMERR_CSP_CRYPTO_DATA_CALLBACK_FAILED = -2147415722; - -const int CSSMERR_CSP_DEVICE_ERROR = -2147415804; - -const int CSSMERR_CSP_DEVICE_FAILED = -2147415835; - -const int CSSMERR_CSP_DEVICE_MEMORY_ERROR = -2147415803; - -const int CSSMERR_CSP_DEVICE_RESET = -2147415836; - -const int CSSMERR_CSP_DEVICE_VERIFY_FAILED = -2147415728; - -const int CSSMERR_CSP_FUNCTION_FAILED = -2147416054; - -const int CSSMERR_CSP_FUNCTION_NOT_IMPLEMENTED = -2147416057; - -const int CSSMERR_CSP_INPUT_LENGTH_ERROR = -2147415807; - -const int CSSMERR_CSP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147415837; - -const int CSSMERR_CSP_INTERNAL_ERROR = -2147416063; - -const int CSSMERR_CSP_INVALID_ACCESS_CREDENTIALS = -2147416027; - -const int CSSMERR_CSP_INVALID_ACL_BASE_CERTS = -2147416026; - -const int CSSMERR_CSP_INVALID_ACL_CHALLENGE_CALLBACK = -2147416020; - -const int CSSMERR_CSP_INVALID_ACL_EDIT_MODE = -2147416016; - -const int CSSMERR_CSP_INVALID_ACL_ENTRY_TAG = -2147416018; - -const int CSSMERR_CSP_INVALID_ACL_SUBJECT_VALUE = -2147416022; - -const int CSSMERR_CSP_INVALID_ALGORITHM = -2147415759; - -const int CSSMERR_CSP_INVALID_ATTR_ACCESS_CREDENTIALS = -2147415678; - -const int CSSMERR_CSP_INVALID_ATTR_ALG_PARAMS = -2147415704; - -const int CSSMERR_CSP_INVALID_ATTR_BASE = -2147415686; - -const int CSSMERR_CSP_INVALID_ATTR_BLOCK_SIZE = -2147415738; - -const int CSSMERR_CSP_INVALID_ATTR_DL_DB_HANDLE = -2147415680; - -const int CSSMERR_CSP_INVALID_ATTR_EFFECTIVE_BITS = -2147415696; - -const int CSSMERR_CSP_INVALID_ATTR_END_DATE = -2147415692; - -const int CSSMERR_CSP_INVALID_ATTR_INIT_VECTOR = -2147415752; - -const int CSSMERR_CSP_INVALID_ATTR_ITERATION_COUNT = -2147415682; - -const int CSSMERR_CSP_INVALID_ATTR_KEY = -2147415754; - -const int CSSMERR_CSP_INVALID_ATTR_KEY_LENGTH = -2147415740; - -const int CSSMERR_CSP_INVALID_ATTR_KEY_TYPE = -2147415700; - -const int CSSMERR_CSP_INVALID_ATTR_LABEL = -2147415702; - -const int CSSMERR_CSP_INVALID_ATTR_MODE = -2147415698; - -const int CSSMERR_CSP_INVALID_ATTR_OUTPUT_SIZE = -2147415708; - -const int CSSMERR_CSP_INVALID_ATTR_PADDING = -2147415748; - -const int CSSMERR_CSP_INVALID_ATTR_PASSPHRASE = -2147415742; - -const int CSSMERR_CSP_INVALID_ATTR_PRIME = -2147415688; - -const int CSSMERR_CSP_INVALID_ATTR_PRIVATE_KEY_FORMAT = -2147415674; - -const int CSSMERR_CSP_INVALID_ATTR_PUBLIC_KEY_FORMAT = -2147415676; - -const int CSSMERR_CSP_INVALID_ATTR_RANDOM = -2147415746; - -const int CSSMERR_CSP_INVALID_ATTR_ROUNDS = -2147415706; - -const int CSSMERR_CSP_INVALID_ATTR_SALT = -2147415750; - -const int CSSMERR_CSP_INVALID_ATTR_SEED = -2147415744; - -const int CSSMERR_CSP_INVALID_ATTR_START_DATE = -2147415694; - -const int CSSMERR_CSP_INVALID_ATTR_SUBPRIME = -2147415684; - -const int CSSMERR_CSP_INVALID_ATTR_SYMMETRIC_KEY_FORMAT = -2147415672; - -const int CSSMERR_CSP_INVALID_ATTR_VERSION = -2147415690; - -const int CSSMERR_CSP_INVALID_ATTR_WRAPPED_KEY_FORMAT = -2147415670; - -const int CSSMERR_CSP_INVALID_CONTEXT = -2147415760; - -const int CSSMERR_CSP_INVALID_CONTEXT_HANDLE = -2147416000; - -const int CSSMERR_CSP_INVALID_CRYPTO_DATA = -2147415976; - -const int CSSMERR_CSP_INVALID_DATA = -2147415994; - -const int CSSMERR_CSP_INVALID_DATA_COUNT = -2147415768; - -const int CSSMERR_CSP_INVALID_DIGEST_ALGORITHM = -2147415723; - -const int CSSMERR_CSP_INVALID_INPUT_POINTER = -2147416059; - -const int CSSMERR_CSP_INVALID_INPUT_VECTOR = -2147415766; - -const int CSSMERR_CSP_INVALID_KEY = -2147415792; - -const int CSSMERR_CSP_INVALID_KEYATTR_MASK = -2147415780; - -const int CSSMERR_CSP_INVALID_KEYUSAGE_MASK = -2147415782; - -const int CSSMERR_CSP_INVALID_KEY_CLASS = -2147415790; - -const int CSSMERR_CSP_INVALID_KEY_FORMAT = -2147415776; - -const int CSSMERR_CSP_INVALID_KEY_LABEL = -2147415778; - -const int CSSMERR_CSP_INVALID_KEY_POINTER = -2147415783; - -const int CSSMERR_CSP_INVALID_KEY_REFERENCE = -2147415791; - -const int CSSMERR_CSP_INVALID_LOGIN_NAME = -2147415727; - -const int CSSMERR_CSP_INVALID_NEW_ACL_ENTRY = -2147416014; - -const int CSSMERR_CSP_INVALID_NEW_ACL_OWNER = -2147416013; - -const int CSSMERR_CSP_INVALID_OUTPUT_POINTER = -2147416058; - -const int CSSMERR_CSP_INVALID_OUTPUT_VECTOR = -2147415765; - -const int CSSMERR_CSP_INVALID_PASSTHROUGH_ID = -2147415978; - -const int CSSMERR_CSP_INVALID_POINTER = -2147416060; - -const int CSSMERR_CSP_INVALID_SAMPLE_VALUE = -2147416024; - -const int CSSMERR_CSP_INVALID_SIGNATURE = -2147415733; - -const int CSSMERR_CSP_IN_DARK_WAKE = -2147415834; - -const int CSSMERR_CSP_KEY_BLOB_TYPE_INCORRECT = -2147415787; - -const int CSSMERR_CSP_KEY_HEADER_INCONSISTENT = -2147415786; - -const int CSSMERR_CSP_KEY_LABEL_ALREADY_EXISTS = -2147415724; - -const int CSSMERR_CSP_KEY_USAGE_INCORRECT = -2147415788; - -const int CSSMERR_CSP_MDS_ERROR = -2147416061; - -const int CSSMERR_CSP_MEMORY_ERROR = -2147416062; - -const int CSSMERR_CSP_MISSING_ATTR_ACCESS_CREDENTIALS = -2147415677; - -const int CSSMERR_CSP_MISSING_ATTR_ALG_PARAMS = -2147415703; - -const int CSSMERR_CSP_MISSING_ATTR_BASE = -2147415685; - -const int CSSMERR_CSP_MISSING_ATTR_BLOCK_SIZE = -2147415737; - -const int CSSMERR_CSP_MISSING_ATTR_DL_DB_HANDLE = -2147415679; - -const int CSSMERR_CSP_MISSING_ATTR_EFFECTIVE_BITS = -2147415695; - -const int CSSMERR_CSP_MISSING_ATTR_END_DATE = -2147415691; - -const int CSSMERR_CSP_MISSING_ATTR_INIT_VECTOR = -2147415751; - -const int CSSMERR_CSP_MISSING_ATTR_ITERATION_COUNT = -2147415681; - -const int CSSMERR_CSP_MISSING_ATTR_KEY = -2147415753; - -const int CSSMERR_CSP_MISSING_ATTR_KEY_LENGTH = -2147415739; - -const int CSSMERR_CSP_MISSING_ATTR_KEY_TYPE = -2147415699; - -const int CSSMERR_CSP_MISSING_ATTR_LABEL = -2147415701; - -const int CSSMERR_CSP_MISSING_ATTR_MODE = -2147415697; - -const int CSSMERR_CSP_MISSING_ATTR_OUTPUT_SIZE = -2147415707; - -const int CSSMERR_CSP_MISSING_ATTR_PADDING = -2147415747; - -const int CSSMERR_CSP_MISSING_ATTR_PASSPHRASE = -2147415741; - -const int CSSMERR_CSP_MISSING_ATTR_PRIME = -2147415687; - -const int CSSMERR_CSP_MISSING_ATTR_PRIVATE_KEY_FORMAT = -2147415673; - -const int CSSMERR_CSP_MISSING_ATTR_PUBLIC_KEY_FORMAT = -2147415675; - -const int CSSMERR_CSP_MISSING_ATTR_RANDOM = -2147415745; - -const int CSSMERR_CSP_MISSING_ATTR_ROUNDS = -2147415705; - -const int CSSMERR_CSP_MISSING_ATTR_SALT = -2147415749; - -const int CSSMERR_CSP_MISSING_ATTR_SEED = -2147415743; - -const int CSSMERR_CSP_MISSING_ATTR_START_DATE = -2147415693; - -const int CSSMERR_CSP_MISSING_ATTR_SUBPRIME = -2147415683; - -const int CSSMERR_CSP_MISSING_ATTR_SYMMETRIC_KEY_FORMAT = -2147415671; - -const int CSSMERR_CSP_MISSING_ATTR_VERSION = -2147415689; - -const int CSSMERR_CSP_MISSING_ATTR_WRAPPED_KEY_FORMAT = -2147415669; - -const int CSSMERR_CSP_NOT_LOGGED_IN = -2147415801; - -const int CSSMERR_CSP_NO_USER_INTERACTION = -2147415840; - -const int CSSMERR_CSP_OBJECT_ACL_NOT_SUPPORTED = -2147416029; - -const int CSSMERR_CSP_OBJECT_ACL_REQUIRED = -2147416028; - -const int CSSMERR_CSP_OBJECT_MANIP_AUTH_DENIED = -2147416030; - -const int CSSMERR_CSP_OBJECT_USE_AUTH_DENIED = -2147416031; - -const int CSSMERR_CSP_OPERATION_AUTH_DENIED = -2147416032; - -const int CSSMERR_CSP_OS_ACCESS_DENIED = -2147416055; - -const int CSSMERR_CSP_OUTPUT_LENGTH_ERROR = -2147415806; - -const int CSSMERR_CSP_PRIVATE_KEY_ALREADY_EXISTS = -2147415725; - -const int CSSMERR_CSP_PRIVATE_KEY_NOT_FOUND = -2147415730; - -const int CSSMERR_CSP_PRIVILEGE_NOT_GRANTED = -2147415989; - -const int CSSMERR_CSP_PRIVILEGE_NOT_SUPPORTED = -2147415805; - -const int CSSMERR_CSP_PUBLIC_KEY_INCONSISTENT = -2147415729; - -const int CSSMERR_CSP_QUERY_SIZE_UNKNOWN = -2147415732; - -const int CSSMERR_CSP_SAMPLE_VALUE_NOT_SUPPORTED = -2147416023; - -const int CSSMERR_CSP_SELF_CHECK_FAILED = -2147416056; - -const int CSSMERR_CSP_SERVICE_NOT_AVAILABLE = -2147415838; - -const int CSSMERR_CSP_STAGED_OPERATION_IN_PROGRESS = -2147415736; - -const int CSSMERR_CSP_STAGED_OPERATION_NOT_STARTED = -2147415735; - -const int CSSMERR_CSP_UNSUPPORTED_KEYATTR_MASK = -2147415779; - -const int CSSMERR_CSP_UNSUPPORTED_KEYUSAGE_MASK = -2147415781; - -const int CSSMERR_CSP_UNSUPPORTED_KEY_FORMAT = -2147415785; - -const int CSSMERR_CSP_UNSUPPORTED_KEY_LABEL = -2147415777; - -const int CSSMERR_CSP_UNSUPPORTED_KEY_SIZE = -2147415784; - -const int CSSMERR_CSP_USER_CANCELED = -2147415839; - -const int CSSMERR_CSP_VECTOR_OF_BUFS_UNSUPPORTED = -2147415767; - -const int CSSMERR_CSP_VERIFY_FAILED = -2147415734; - -const int CSSMERR_CSSM_ADDIN_AUTHENTICATE_FAILED = -2147417828; - -const int CSSMERR_CSSM_ADDIN_LOAD_FAILED = -2147417834; - -const int CSSMERR_CSSM_ADDIN_UNLOAD_FAILED = -2147417832; - -const int CSSMERR_CSSM_ATTRIBUTE_NOT_IN_CONTEXT = -2147417822; - -const int CSSMERR_CSSM_BUFFER_TOO_SMALL = -2147417824; - -const int CSSMERR_CSSM_DEVICE_FAILED = -2147417883; - -const int CSSMERR_CSSM_DEVICE_RESET = -2147417884; - -const int CSSMERR_CSSM_EMM_AUTHENTICATE_FAILED = -2147417829; - -const int CSSMERR_CSSM_EMM_LOAD_FAILED = -2147417836; - -const int CSSMERR_CSSM_EMM_UNLOAD_FAILED = -2147417835; - -const int CSSMERR_CSSM_EVENT_NOTIFICATION_CALLBACK_NOT_FOUND = -2147417819; - -const int CSSMERR_CSSM_FUNCTION_FAILED = -2147418102; - -const int CSSMERR_CSSM_FUNCTION_INTEGRITY_FAIL = -2147417851; - -const int CSSMERR_CSSM_FUNCTION_NOT_IMPLEMENTED = -2147418105; - -const int CSSMERR_CSSM_INCOMPATIBLE_VERSION = -2147418047; - -const int CSSMERR_CSSM_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147417885; - -const int CSSMERR_CSSM_INTERNAL_ERROR = -2147418111; - -const int CSSMERR_CSSM_INVALID_ADDIN_FUNCTION_TABLE = -2147417830; - -const int CSSMERR_CSSM_INVALID_ADDIN_HANDLE = -2147417855; - -const int CSSMERR_CSSM_INVALID_ATTRIBUTE = -2147417823; - -const int CSSMERR_CSSM_INVALID_CONTEXT_HANDLE = -2147418048; - -const int CSSMERR_CSSM_INVALID_GUID = -2147418100; - -const int CSSMERR_CSSM_INVALID_HANDLE_USAGE = -2147417853; - -const int CSSMERR_CSSM_INVALID_INPUT_POINTER = -2147418107; - -const int CSSMERR_CSSM_INVALID_KEY_HIERARCHY = -2147417833; - -const int CSSMERR_CSSM_INVALID_OUTPUT_POINTER = -2147418106; - -const int CSSMERR_CSSM_INVALID_POINTER = -2147418108; - -const int CSSMERR_CSSM_INVALID_PVC = -2147417837; - -const int CSSMERR_CSSM_INVALID_SERVICE_MASK = -2147417827; - -const int CSSMERR_CSSM_INVALID_SUBSERVICEID = -2147417825; - -const int CSSMERR_CSSM_IN_DARK_WAKE = -2147417882; - -const int CSSMERR_CSSM_LIB_REF_NOT_FOUND = -2147417831; - -const int CSSMERR_CSSM_MDS_ERROR = -2147418109; - -const int CSSMERR_CSSM_MEMORY_ERROR = -2147418110; - -const int CSSMERR_CSSM_MODULE_MANAGER_INITIALIZE_FAIL = -2147417821; - -const int CSSMERR_CSSM_MODULE_MANAGER_NOT_FOUND = -2147417820; - -const int CSSMERR_CSSM_MODULE_MANIFEST_VERIFY_FAILED = -2147418101; - -const int CSSMERR_CSSM_MODULE_NOT_LOADED = -2147417826; - -const int CSSMERR_CSSM_NOT_INITIALIZED = -2147417854; - -const int CSSMERR_CSSM_NO_USER_INTERACTION = -2147417888; - -const int CSSMERR_CSSM_OS_ACCESS_DENIED = -2147418103; - -const int CSSMERR_CSSM_PRIVILEGE_NOT_GRANTED = -2147418037; - -const int CSSMERR_CSSM_PVC_ALREADY_CONFIGURED = -2147417838; - -const int CSSMERR_CSSM_PVC_REFERENT_NOT_FOUND = -2147417852; - -const int CSSMERR_CSSM_SCOPE_NOT_SUPPORTED = -2147417839; - -const int CSSMERR_CSSM_SELF_CHECK_FAILED = -2147418104; - -const int CSSMERR_CSSM_SERVICE_NOT_AVAILABLE = -2147417886; - -const int CSSMERR_CSSM_USER_CANCELED = -2147417887; - -const int CSSMERR_DL_ACL_ADD_FAILED = -2147413962; - -const int CSSMERR_DL_ACL_BASE_CERTS_NOT_SUPPORTED = -2147413977; - -const int CSSMERR_DL_ACL_CHALLENGE_CALLBACK_FAILED = -2147413971; - -const int CSSMERR_DL_ACL_CHANGE_FAILED = -2147413967; - -const int CSSMERR_DL_ACL_DELETE_FAILED = -2147413964; - -const int CSSMERR_DL_ACL_ENTRY_TAG_NOT_FOUND = -2147413969; - -const int CSSMERR_DL_ACL_REPLACE_FAILED = -2147413963; - -const int CSSMERR_DL_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147413973; - -const int CSSMERR_DL_DATABASE_CORRUPT = -2147413759; - -const int CSSMERR_DL_DATASTORE_ALREADY_EXISTS = -2147413736; - -const int CSSMERR_DL_DATASTORE_DOESNOT_EXIST = -2147413737; - -const int CSSMERR_DL_DATASTORE_IS_OPEN = -2147413734; - -const int CSSMERR_DL_DB_LOCKED = -2147413735; - -const int CSSMERR_DL_DEVICE_FAILED = -2147413787; - -const int CSSMERR_DL_DEVICE_RESET = -2147413788; - -const int CSSMERR_DL_ENDOFDATA = -2147413715; - -const int CSSMERR_DL_FIELD_SPECIFIED_MULTIPLE = -2147413742; - -const int CSSMERR_DL_FUNCTION_FAILED = -2147414006; - -const int CSSMERR_DL_FUNCTION_NOT_IMPLEMENTED = -2147414009; - -const int CSSMERR_DL_INCOMPATIBLE_FIELD_FORMAT = -2147413741; - -const int CSSMERR_DL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147413789; - -const int CSSMERR_DL_INTERNAL_ERROR = -2147414015; - -const int CSSMERR_DL_INVALID_ACCESS_CREDENTIALS = -2147413979; - -const int CSSMERR_DL_INVALID_ACCESS_REQUEST = -2147413724; - -const int CSSMERR_DL_INVALID_ACL_BASE_CERTS = -2147413978; - -const int CSSMERR_DL_INVALID_ACL_CHALLENGE_CALLBACK = -2147413972; - -const int CSSMERR_DL_INVALID_ACL_EDIT_MODE = -2147413968; - -const int CSSMERR_DL_INVALID_ACL_ENTRY_TAG = -2147413970; - -const int CSSMERR_DL_INVALID_ACL_SUBJECT_VALUE = -2147413974; - -const int CSSMERR_DL_INVALID_CL_HANDLE = -2147413934; - -const int CSSMERR_DL_INVALID_CSP_HANDLE = -2147413936; - -const int CSSMERR_DL_INVALID_DB_HANDLE = -2147413942; - -const int CSSMERR_DL_INVALID_DB_LIST_POINTER = -2147413939; - -const int CSSMERR_DL_INVALID_DB_LOCATION = -2147413725; - -const int CSSMERR_DL_INVALID_DB_NAME = -2147413738; - -const int CSSMERR_DL_INVALID_DL_HANDLE = -2147413935; - -const int CSSMERR_DL_INVALID_FIELD_NAME = -2147413750; - -const int CSSMERR_DL_INVALID_INDEX_INFO = -2147413723; - -const int CSSMERR_DL_INVALID_INPUT_POINTER = -2147414011; - -const int CSSMERR_DL_INVALID_MODIFY_MODE = -2147413718; - -const int CSSMERR_DL_INVALID_NETWORK_ADDR = -2147413929; - -const int CSSMERR_DL_INVALID_NEW_ACL_ENTRY = -2147413966; - -const int CSSMERR_DL_INVALID_NEW_ACL_OWNER = -2147413965; - -const int CSSMERR_DL_INVALID_NEW_OWNER = -2147413721; - -const int CSSMERR_DL_INVALID_OPEN_PARAMETERS = -2147413717; - -const int CSSMERR_DL_INVALID_OUTPUT_POINTER = -2147414010; - -const int CSSMERR_DL_INVALID_PARSING_MODULE = -2147413740; - -const int CSSMERR_DL_INVALID_PASSTHROUGH_ID = -2147413930; - -const int CSSMERR_DL_INVALID_POINTER = -2147414012; - -const int CSSMERR_DL_INVALID_QUERY = -2147413714; - -const int CSSMERR_DL_INVALID_RECORDTYPE = -2147413751; - -const int CSSMERR_DL_INVALID_RECORD_INDEX = -2147413752; - -const int CSSMERR_DL_INVALID_RECORD_UID = -2147413720; - -const int CSSMERR_DL_INVALID_RESULTS_HANDLE = -2147413726; - -const int CSSMERR_DL_INVALID_SAMPLE_VALUE = -2147413976; - -const int CSSMERR_DL_INVALID_SELECTION_TAG = -2147413722; - -const int CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA = -2147413719; - -const int CSSMERR_DL_INVALID_VALUE = -2147413713; - -const int CSSMERR_DL_IN_DARK_WAKE = -2147413786; - -const int CSSMERR_DL_MDS_ERROR = -2147414013; - -const int CSSMERR_DL_MEMORY_ERROR = -2147414014; - -const int CSSMERR_DL_MISSING_VALUE = -2147413732; - -const int CSSMERR_DL_MULTIPLE_VALUES_UNSUPPORTED = -2147413712; - -const int CSSMERR_DL_NO_USER_INTERACTION = -2147413792; - -const int CSSMERR_DL_OBJECT_ACL_NOT_SUPPORTED = -2147413981; - -const int CSSMERR_DL_OBJECT_ACL_REQUIRED = -2147413980; - -const int CSSMERR_DL_OBJECT_MANIP_AUTH_DENIED = -2147413982; - -const int CSSMERR_DL_OBJECT_USE_AUTH_DENIED = -2147413983; - -const int CSSMERR_DL_OPERATION_AUTH_DENIED = -2147413984; - -const int CSSMERR_DL_OS_ACCESS_DENIED = -2147414007; - -const int CSSMERR_DL_RECORD_MODIFIED = -2147413716; - -const int CSSMERR_DL_RECORD_NOT_FOUND = -2147413733; - -const int CSSMERR_DL_SAMPLE_VALUE_NOT_SUPPORTED = -2147413975; - -const int CSSMERR_DL_SELF_CHECK_FAILED = -2147414008; - -const int CSSMERR_DL_SERVICE_NOT_AVAILABLE = -2147413790; - -const int CSSMERR_DL_STALE_UNIQUE_RECORD = -2147413711; - -const int CSSMERR_DL_UNSUPPORTED_FIELD_FORMAT = -2147413749; - -const int CSSMERR_DL_UNSUPPORTED_INDEX_INFO = -2147413748; - -const int CSSMERR_DL_UNSUPPORTED_LOCALITY = -2147413747; - -const int CSSMERR_DL_UNSUPPORTED_NUM_ATTRIBUTES = -2147413746; - -const int CSSMERR_DL_UNSUPPORTED_NUM_INDEXES = -2147413745; - -const int CSSMERR_DL_UNSUPPORTED_NUM_RECORDTYPES = -2147413744; - -const int CSSMERR_DL_UNSUPPORTED_NUM_SELECTION_PREDS = -2147413729; - -const int CSSMERR_DL_UNSUPPORTED_OPERATOR = -2147413727; - -const int CSSMERR_DL_UNSUPPORTED_QUERY = -2147413731; - -const int CSSMERR_DL_UNSUPPORTED_QUERY_LIMITS = -2147413730; - -const int CSSMERR_DL_UNSUPPORTED_RECORDTYPE = -2147413743; - -const int CSSMERR_DL_USER_CANCELED = -2147413791; - -const int CSSMERR_TP_AUTHENTICATION_FAILED = -2147409657; - -const int CSSMERR_TP_CERTGROUP_INCOMPLETE = -2147409656; - -const int CSSMERR_TP_CERTIFICATE_CANT_OPERATE = -2147409655; - -const int CSSMERR_TP_CERT_EXPIRED = -2147409654; - -const int CSSMERR_TP_CERT_NOT_VALID_YET = -2147409653; - -const int CSSMERR_TP_CERT_REVOKED = -2147409652; - -const int CSSMERR_TP_CERT_SUSPENDED = -2147409651; - -const int CSSMERR_TP_CRL_ALREADY_SIGNED = -2147409849; - -const int CSSMERR_TP_DEVICE_FAILED = -2147409691; - -const int CSSMERR_TP_DEVICE_RESET = -2147409692; - -const int CSSMERR_TP_FUNCTION_FAILED = -2147409910; - -const int CSSMERR_TP_FUNCTION_NOT_IMPLEMENTED = -2147409913; - -const int CSSMERR_TP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147409693; - -const int CSSMERR_TP_INSUFFICIENT_CREDENTIALS = -2147409650; - -const int CSSMERR_TP_INTERNAL_ERROR = -2147409919; - -const int CSSMERR_TP_INVALID_ACTION = -2147409649; - -const int CSSMERR_TP_INVALID_ACTION_DATA = -2147409648; - -const int CSSMERR_TP_INVALID_ANCHOR_CERT = -2147409646; - -const int CSSMERR_TP_INVALID_AUTHORITY = -2147409645; - -const int CSSMERR_TP_INVALID_CALLBACK = -2147409625; - -const int CSSMERR_TP_INVALID_CALLERAUTH_CONTEXT_POINTER = -2147409663; - -const int CSSMERR_TP_INVALID_CERTGROUP = -2147409660; - -const int CSSMERR_TP_INVALID_CERTGROUP_POINTER = -2147409854; - -const int CSSMERR_TP_INVALID_CERTIFICATE = -2147409643; - -const int CSSMERR_TP_INVALID_CERT_AUTHORITY = -2147409642; - -const int CSSMERR_TP_INVALID_CERT_POINTER = -2147409853; - -const int CSSMERR_TP_INVALID_CL_HANDLE = -2147409838; - -const int CSSMERR_TP_INVALID_CONTEXT_HANDLE = -2147409856; - -const int CSSMERR_TP_INVALID_CRL = -2147409638; - -const int CSSMERR_TP_INVALID_CRLGROUP = -2147409659; - -const int CSSMERR_TP_INVALID_CRLGROUP_POINTER = -2147409658; - -const int CSSMERR_TP_INVALID_CRL_AUTHORITY = -2147409641; - -const int CSSMERR_TP_INVALID_CRL_ENCODING = -2147409640; - -const int CSSMERR_TP_INVALID_CRL_POINTER = -2147409852; - -const int CSSMERR_TP_INVALID_CRL_TYPE = -2147409639; - -const int CSSMERR_TP_INVALID_CSP_HANDLE = -2147409840; - -const int CSSMERR_TP_INVALID_DATA = -2147409850; - -const int CSSMERR_TP_INVALID_DB_HANDLE = -2147409846; - -const int CSSMERR_TP_INVALID_DB_LIST = -2147409844; - -const int CSSMERR_TP_INVALID_DB_LIST_POINTER = -2147409843; - -const int CSSMERR_TP_INVALID_DL_HANDLE = -2147409839; - -const int CSSMERR_TP_INVALID_FIELD_POINTER = -2147409851; - -const int CSSMERR_TP_INVALID_FORM_TYPE = -2147409637; - -const int CSSMERR_TP_INVALID_ID = -2147409636; - -const int CSSMERR_TP_INVALID_IDENTIFIER = -2147409635; - -const int CSSMERR_TP_INVALID_IDENTIFIER_POINTER = -2147409662; - -const int CSSMERR_TP_INVALID_INDEX = -2147409634; - -const int CSSMERR_TP_INVALID_INPUT_POINTER = -2147409915; - -const int CSSMERR_TP_INVALID_KEYCACHE_HANDLE = -2147409661; - -const int CSSMERR_TP_INVALID_NAME = -2147409633; - -const int CSSMERR_TP_INVALID_NETWORK_ADDR = -2147409833; - -const int CSSMERR_TP_INVALID_NUMBER_OF_FIELDS = -2147409848; - -const int CSSMERR_TP_INVALID_OUTPUT_POINTER = -2147409914; - -const int CSSMERR_TP_INVALID_PASSTHROUGH_ID = -2147409834; - -const int CSSMERR_TP_INVALID_POINTER = -2147409916; - -const int CSSMERR_TP_INVALID_POLICY_IDENTIFIERS = -2147409632; - -const int CSSMERR_TP_INVALID_REASON = -2147409630; - -const int CSSMERR_TP_INVALID_REQUEST_INPUTS = -2147409629; - -const int CSSMERR_TP_INVALID_RESPONSE_VECTOR = -2147409628; - -const int CSSMERR_TP_INVALID_SIGNATURE = -2147409627; - -const int CSSMERR_TP_INVALID_STOP_ON_POLICY = -2147409626; - -const int CSSMERR_TP_INVALID_TIMESTRING = -2147409631; - -const int CSSMERR_TP_INVALID_TUPLE = -2147409624; - -const int CSSMERR_TP_INVALID_TUPLEGROUP = -2147409614; - -const int CSSMERR_TP_INVALID_TUPLEGROUP_POINTER = -2147409615; - -const int CSSMERR_TP_IN_DARK_WAKE = -2147409690; - -const int CSSMERR_TP_MDS_ERROR = -2147409917; - -const int CSSMERR_TP_MEMORY_ERROR = -2147409918; - -const int CSSMERR_TP_NOT_SIGNER = -2147409623; - -const int CSSMERR_TP_NOT_TRUSTED = -2147409622; - -const int CSSMERR_TP_NO_DEFAULT_AUTHORITY = -2147409621; - -const int CSSMERR_TP_NO_USER_INTERACTION = -2147409696; - -const int CSSMERR_TP_OS_ACCESS_DENIED = -2147409911; - -const int CSSMERR_TP_REJECTED_FORM = -2147409620; - -const int CSSMERR_TP_REQUEST_LOST = -2147409619; - -const int CSSMERR_TP_REQUEST_REJECTED = -2147409618; - -const int CSSMERR_TP_SELF_CHECK_FAILED = -2147409912; - -const int CSSMERR_TP_SERVICE_NOT_AVAILABLE = -2147409694; - -const int CSSMERR_TP_UNKNOWN_FORMAT = -2147409842; - -const int CSSMERR_TP_UNKNOWN_TAG = -2147409841; - -const int CSSMERR_TP_UNSUPPORTED_ADDR_TYPE = -2147409617; - -const int CSSMERR_TP_UNSUPPORTED_SERVICE = -2147409616; - -const int CSSMERR_TP_USER_CANCELED = -2147409695; - -const int CSSMERR_TP_VERIFICATION_FAILURE = -2147409847; - -const int CSSMERR_TP_VERIFY_ACTION_FAILED = -2147409644; - -typedef CSSM_ACCESS_CREDENTIALS = cssm_access_credentials; -typedef CSSM_ACCESS_CREDENTIALS_PTR = ffi.Pointer; - -const int CSSM_ACL_AUTHORIZATION_ANY = 1; - -const int CSSM_ACL_AUTHORIZATION_CHANGE_ACL = 65536; - -const int CSSM_ACL_AUTHORIZATION_CHANGE_OWNER = 65537; - -const int CSSM_ACL_AUTHORIZATION_DBS_CREATE = 22; - -const int CSSM_ACL_AUTHORIZATION_DBS_DELETE = 23; - -const int CSSM_ACL_AUTHORIZATION_DB_DELETE = 17; - -const int CSSM_ACL_AUTHORIZATION_DB_INSERT = 19; - -const int CSSM_ACL_AUTHORIZATION_DB_MODIFY = 20; - -const int CSSM_ACL_AUTHORIZATION_DB_READ = 21; - -const int CSSM_ACL_AUTHORIZATION_DECRYPT = 24; - -const int CSSM_ACL_AUTHORIZATION_DELETE = 25; - -const int CSSM_ACL_AUTHORIZATION_DERIVE = 28; - -const int CSSM_ACL_AUTHORIZATION_ENCRYPT = 35; - -const int CSSM_ACL_AUTHORIZATION_EXPORT_CLEAR = 37; - -const int CSSM_ACL_AUTHORIZATION_EXPORT_WRAPPED = 38; - -const int CSSM_ACL_AUTHORIZATION_GENKEY = 41; - -const int CSSM_ACL_AUTHORIZATION_IMPORT_CLEAR = 47; - -const int CSSM_ACL_AUTHORIZATION_IMPORT_WRAPPED = 48; - -const int CSSM_ACL_AUTHORIZATION_INTEGRITY = 65539; - -const int CSSM_ACL_AUTHORIZATION_LOGIN = 57; - -const int CSSM_ACL_AUTHORIZATION_MAC = 59; - -const int CSSM_ACL_AUTHORIZATION_PARTITION_ID = 65538; - -const int CSSM_ACL_AUTHORIZATION_PREAUTH_BASE = 16842752; - -const int CSSM_ACL_AUTHORIZATION_PREAUTH_END = 16908288; - -const int CSSM_ACL_AUTHORIZATION_SIGN = 115; - -typedef CSSM_ACL_AUTHORIZATION_TAG = sint32; - -const int CSSM_ACL_AUTHORIZATION_TAG_VENDOR_DEFINED_START = 65536; - -const int CSSM_ACL_CODE_SIGNATURE_INVALID = 0; - -const int CSSM_ACL_CODE_SIGNATURE_OSX = 1; - -typedef CSSM_ACL_EDIT = cssm_acl_edit; -typedef CSSM_ACL_EDIT_MODE = uint32; - -const int CSSM_ACL_EDIT_MODE_ADD = 1; - -const int CSSM_ACL_EDIT_MODE_DELETE = 2; - -const int CSSM_ACL_EDIT_MODE_REPLACE = 3; - -typedef CSSM_ACL_EDIT_PTR = ffi.Pointer; -typedef CSSM_ACL_ENTRY_INFO = cssm_acl_entry_info; -typedef CSSM_ACL_ENTRY_INFO_PTR = ffi.Pointer; -typedef CSSM_ACL_ENTRY_INPUT = cssm_acl_entry_input; -typedef CSSM_ACL_ENTRY_INPUT_PTR = ffi.Pointer; -typedef CSSM_ACL_ENTRY_PROTOTYPE = cssm_acl_entry_prototype; -typedef CSSM_ACL_ENTRY_PROTOTYPE_PTR = ffi.Pointer; -typedef CSSM_ACL_HANDLE = CSSM_HANDLE; - -const int CSSM_ACL_KEYCHAIN_PROMPT_CURRENT_VERSION = 257; - -const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID = 64; - -const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID_ACT = 128; - -const int CSSM_ACL_KEYCHAIN_PROMPT_REQUIRE_PASSPHRASE = 1; - -typedef CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR = cssm_acl_keychain_prompt_selector; - -const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED = 16; - -const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED_ACT = 32; - -const int CSSM_ACL_MATCH_BITS = 3; - -const int CSSM_ACL_MATCH_GID = 2; - -const int CSSM_ACL_MATCH_HONOR_ROOT = 256; - -const int CSSM_ACL_MATCH_UID = 1; - -typedef CSSM_ACL_OWNER_PROTOTYPE = cssm_acl_owner_prototype; -typedef CSSM_ACL_OWNER_PROTOTYPE_PTR = ffi.Pointer; - -const int CSSM_ACL_PREAUTH_TRACKING_AUTHORIZED = -2147483648; - -const int CSSM_ACL_PREAUTH_TRACKING_BLOCKED = 0; - -const int CSSM_ACL_PREAUTH_TRACKING_COUNT_MASK = 255; - -typedef CSSM_ACL_PREAUTH_TRACKING_STATE = uint32; - -const int CSSM_ACL_PREAUTH_TRACKING_UNKNOWN = 1073741824; - -const int CSSM_ACL_PROCESS_SELECTOR_CURRENT_VERSION = 257; - -typedef CSSM_ACL_PROCESS_SUBJECT_SELECTOR = cssm_acl_process_subject_selector; -typedef CSSM_ACL_SUBJECT_CALLBACK = - ffi.Pointer>; -typedef CSSM_ACL_SUBJECT_CALLBACKFunction = - CSSM_RETURN Function( - ffi.Pointer SubjectRequest, - CSSM_LIST_PTR SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, - ); -typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = - Dartsint32 Function( - ffi.Pointer SubjectRequest, - CSSM_LIST_PTR SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, - ); -typedef CSSM_ACL_SUBJECT_TYPE = sint32; - -const int CSSM_ACL_SUBJECT_TYPE_ANY = 1; - -const int CSSM_ACL_SUBJECT_TYPE_ASYMMETRIC_KEY = 65547; - -const int CSSM_ACL_SUBJECT_TYPE_BIOMETRIC = 8; - -const int CSSM_ACL_SUBJECT_TYPE_CODE_SIGNATURE = 116; - -const int CSSM_ACL_SUBJECT_TYPE_COMMENT = 12; - -const int CSSM_ACL_SUBJECT_TYPE_EXT_PAM_NAME = 78; - -const int CSSM_ACL_SUBJECT_TYPE_HASHED_SUBJECT = 44; - -const int CSSM_ACL_SUBJECT_TYPE_KEYCHAIN_PROMPT = 65536; - -const int CSSM_ACL_SUBJECT_TYPE_LOGIN_NAME = 58; - -const int CSSM_ACL_SUBJECT_TYPE_PARTITION = 65548; - -const int CSSM_ACL_SUBJECT_TYPE_PASSWORD = 79; - -const int CSSM_ACL_SUBJECT_TYPE_PREAUTH = 65545; - -const int CSSM_ACL_SUBJECT_TYPE_PREAUTH_SOURCE = 65546; - -const int CSSM_ACL_SUBJECT_TYPE_PROCESS = 65539; - -const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_BIOMETRIC = 83; - -const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_PASSWORD = 84; - -const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_BIOMETRIC = 86; - -const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_PASSWORD = 87; - -const int CSSM_ACL_SUBJECT_TYPE_PUBLIC_KEY = 89; - -const int CSSM_ACL_SUBJECT_TYPE_SYMMETRIC_KEY = 65541; - -const int CSSM_ACL_SUBJECT_TYPE_THRESHOLD = 123; - -typedef CSSM_ACL_VALIDITY_PERIOD = cssm_acl_validity_period; -typedef CSSM_ACL_VALIDITY_PERIOD_PTR = ffi.Pointer; - -const int CSSM_AC_BASE_AC_ERROR = -2147405568; - -const int CSSM_AC_BASE_ERROR = -2147405824; - -typedef CSSM_AC_HANDLE = CSSM_MODULE_HANDLE; - -const int CSSM_AC_PRIVATE_ERROR = -2147404800; - -const int CSSM_ADDR_CUSTOM = 1; - -const int CSSM_ADDR_NAME = 4; - -const int CSSM_ADDR_NONE = 0; - -const int CSSM_ADDR_SOCKADDR = 3; - -const int CSSM_ADDR_URL = 2; - -const int CSSM_ALGCLASS_ASYMMETRIC = 8; - -const int CSSM_ALGCLASS_CUSTOM = 1; - -const int CSSM_ALGCLASS_DERIVEKEY = 10; - -const int CSSM_ALGCLASS_DIGEST = 4; - -const int CSSM_ALGCLASS_KEYGEN = 9; - -const int CSSM_ALGCLASS_MAC = 7; - -const int CSSM_ALGCLASS_NONE = 0; - -const int CSSM_ALGCLASS_RANDOMGEN = 5; - -const int CSSM_ALGCLASS_SIGNATURE = 2; - -const int CSSM_ALGCLASS_SYMMETRIC = 3; - -const int CSSM_ALGCLASS_UNIQUEGEN = 6; - -const int CSSM_ALGID_3DES = 77; - -const int CSSM_ALGID_3DES_1KEY = 20; - -const int CSSM_ALGID_3DES_1KEY_EEE = 19; - -const int CSSM_ALGID_3DES_2KEY = 18; - -const int CSSM_ALGID_3DES_2KEY_EDE = 18; - -const int CSSM_ALGID_3DES_2KEY_EEE = 21; - -const int CSSM_ALGID_3DES_3KEY = 17; - -const int CSSM_ALGID_3DES_3KEY_EDE = 17; - -const int CSSM_ALGID_3DES_3KEY_EEE = 20; - -const int CSSM_ALGID_AES = -2147483647; - -const int CSSM_ALGID_APPLE_YARROW = -2147483648; - -const int CSSM_ALGID_ASC = -2147483641; - -const int CSSM_ALGID_BATON = 72; - -const int CSSM_ALGID_BLOWFISH = 28; - -const int CSSM_ALGID_CAST = 27; - -const int CSSM_ALGID_CAST3 = 53; - -const int CSSM_ALGID_CAST5 = 54; - -const int CSSM_ALGID_CDMF = 52; - -const int CSSM_ALGID_CRAB = 41; - -const int CSSM_ALGID_CUSTOM = 1; - -const int CSSM_ALGID_ConcatBaseAndData = 58; - -const int CSSM_ALGID_ConcatBaseAndKey = 56; - -const int CSSM_ALGID_ConcatDataAndBase = 59; - -const int CSSM_ALGID_ConcatKeyAndBase = 57; - -const int CSSM_ALGID_DES = 14; - -const int CSSM_ALGID_DESRandom = 50; - -const int CSSM_ALGID_DESX = 15; - -const int CSSM_ALGID_DH = 2; - -const int CSSM_ALGID_DSA = 43; - -const int CSSM_ALGID_DSA_BSAFE = 83; - -const int CSSM_ALGID_ECAES = 90; - -const int CSSM_ALGID_ECC = 93; - -const int CSSM_ALGID_ECDH = 84; - -const int CSSM_ALGID_ECDH_X963_KDF = -2147483619; - -const int CSSM_ALGID_ECDSA = 73; - -const int CSSM_ALGID_ECDSA_SPECIFIED = -2147483620; - -const int CSSM_ALGID_ECES = 89; - -const int CSSM_ALGID_ECMQV = 85; - -const int CSSM_ALGID_ECNRA = 87; - -const int CSSM_ALGID_ENTROPY_DEFAULT = -2147483631; - -const int CSSM_ALGID_ElGamal = 46; - -const int CSSM_ALGID_ExtractFromKey = 61; - -const int CSSM_ALGID_FASTHASH = 76; - -const int CSSM_ALGID_FEAL = 32; - -const int CSSM_ALGID_FEE = -2147483646; - -const int CSSM_ALGID_FEED = -2147483643; - -const int CSSM_ALGID_FEEDEXP = -2147483642; - -const int CSSM_ALGID_FEE_MD5 = -2147483645; - -const int CSSM_ALGID_FEE_SHA1 = -2147483644; - -const int CSSM_ALGID_FIPS186Random = 92; - -const int CSSM_ALGID_FortezzaTimestamp = 80; - -const int CSSM_ALGID_GOST = 39; - -const int CSSM_ALGID_GenericSecret = 55; - -const int CSSM_ALGID_HAVAL = 10; - -const int CSSM_ALGID_HAVAL3 = 98; - -const int CSSM_ALGID_HAVAL4 = 99; - -const int CSSM_ALGID_HAVAL5 = 100; - -const int CSSM_ALGID_IBCHASH = 12; - -const int CSSM_ALGID_IDEA = 22; - -const int CSSM_ALGID_IntelPlatformRandom = 96; - -const int CSSM_ALGID_JUNIPER = 75; - -const int CSSM_ALGID_KEA = 4; - -const int CSSM_ALGID_KEYCHAIN_KEY = -2147483639; - -const int CSSM_ALGID_KHAFRE = 37; - -const int CSSM_ALGID_KHUFU = 36; - -const int CSSM_ALGID_LAST = 2147483647; - -const int CSSM_ALGID_LOKI = 35; - -const int CSSM_ALGID_LUCIFER = 30; - -const int CSSM_ALGID_MADRYGA = 31; - -const int CSSM_ALGID_MAYFLY = 74; - -const int CSSM_ALGID_MD2 = 5; - -const int CSSM_ALGID_MD2Random = 47; - -const int CSSM_ALGID_MD2WithRSA = 45; - -const int CSSM_ALGID_MD4 = 6; - -const int CSSM_ALGID_MD5 = 7; - -const int CSSM_ALGID_MD5HMAC = 102; - -const int CSSM_ALGID_MD5Random = 48; - -const int CSSM_ALGID_MD5WithRSA = 44; - -const int CSSM_ALGID_MMB = 38; - -const int CSSM_ALGID_MQV = 94; - -const int CSSM_ALGID_NHASH = 9; - -const int CSSM_ALGID_NONE = 0; - -const int CSSM_ALGID_NRA = 95; - -const int CSSM_ALGID_OPENSSH1 = -2147483625; - -const int CSSM_ALGID_PBE_OPENSSL_MD5 = -2147483635; - -const int CSSM_ALGID_PH = 3; - -const int CSSM_ALGID_PKCS12_PBE_ENCR = -2147483638; - -const int CSSM_ALGID_PKCS12_PBE_MAC = -2147483637; - -const int CSSM_ALGID_PKCS12_SHA1_PBE = 86; - -const int CSSM_ALGID_PKCS5_PBKDF1_MD2 = 68; - -const int CSSM_ALGID_PKCS5_PBKDF1_MD5 = 67; - -const int CSSM_ALGID_PKCS5_PBKDF1_SHA1 = 69; - -const int CSSM_ALGID_PKCS5_PBKDF2 = 103; - -const int CSSM_ALGID_RC2 = 23; - -const int CSSM_ALGID_RC4 = 25; - -const int CSSM_ALGID_RC5 = 24; - -const int CSSM_ALGID_RDES = 16; - -const int CSSM_ALGID_REDOC = 33; - -const int CSSM_ALGID_REDOC3 = 34; - -const int CSSM_ALGID_RIPEMAC = 13; - -const int CSSM_ALGID_RIPEMD = 11; - -const int CSSM_ALGID_RSA = 42; - -const int CSSM_ALGID_RUNNING_COUNTER = 104; - -const int CSSM_ALGID_SAFER = 40; - -const int CSSM_ALGID_SEAL = 26; - -const int CSSM_ALGID_SECURE_PASSPHRASE = -2147483636; - -const int CSSM_ALGID_SHA1 = 8; - -const int CSSM_ALGID_SHA1HMAC = 91; - -const int CSSM_ALGID_SHA1HMAC_LEGACY = -2147483640; - -const int CSSM_ALGID_SHA1WithDSA = 81; - -const int CSSM_ALGID_SHA1WithECDSA = 82; - -const int CSSM_ALGID_SHA1WithECNRA = 88; - -const int CSSM_ALGID_SHA1WithRSA = 51; - -const int CSSM_ALGID_SHA224 = -2147483630; - -const int CSSM_ALGID_SHA224WithECDSA = -2147483624; - -const int CSSM_ALGID_SHA224WithRSA = -2147483629; - -const int CSSM_ALGID_SHA256 = -2147483634; - -const int CSSM_ALGID_SHA256WithECDSA = -2147483623; - -const int CSSM_ALGID_SHA256WithRSA = -2147483628; - -const int CSSM_ALGID_SHA384 = -2147483633; - -const int CSSM_ALGID_SHA384WithECDSA = -2147483622; - -const int CSSM_ALGID_SHA384WithRSA = -2147483627; - -const int CSSM_ALGID_SHA512 = -2147483632; - -const int CSSM_ALGID_SHA512WithECDSA = -2147483621; - -const int CSSM_ALGID_SHA512WithRSA = -2147483626; - -const int CSSM_ALGID_SHARandom = 49; - -const int CSSM_ALGID_SKIPJACK = 29; - -const int CSSM_ALGID_SSL3KeyAndMacDerive = 64; - -const int CSSM_ALGID_SSL3MD5 = 78; - -const int CSSM_ALGID_SSL3MD5_MAC = 65; - -@Deprecated('Deprecated') -const int CSSM_ALGID_SSL3MasterDerive = 63; - -@Deprecated('Deprecated') -const int CSSM_ALGID_SSL3PreMasterGen = 62; - -const int CSSM_ALGID_SSL3PrePrimaryGen = 62; - -const int CSSM_ALGID_SSL3PrimaryDerive = 63; - -const int CSSM_ALGID_SSL3SHA1 = 79; - -const int CSSM_ALGID_SSL3SHA1_MAC = 66; - -const int CSSM_ALGID_TIGER = 101; - -const int CSSM_ALGID_UTC = 97; - -const int CSSM_ALGID_VENDOR_DEFINED = -2147483648; - -const int CSSM_ALGID_WrapLynks = 70; - -const int CSSM_ALGID_WrapSET_OAEP = 71; - -const int CSSM_ALGID_XORBaseAndData = 60; - -const int CSSM_ALGID__FIRST_UNUSED = -2147483618; - -const int CSSM_ALGMODE_BC = 14; - -const int CSSM_ALGMODE_CBC = 4; - -const int CSSM_ALGMODE_CBC128 = 36; - -const int CSSM_ALGMODE_CBC64 = 25; - -const int CSSM_ALGMODE_CBCC = 16; - -const int CSSM_ALGMODE_CBCPD = 20; - -const int CSSM_ALGMODE_CBCPadIV8 = 6; - -const int CSSM_ALGMODE_CBC_IV8 = 5; - -const int CSSM_ALGMODE_CFB = 7; - -const int CSSM_ALGMODE_CFB16 = 29; - -const int CSSM_ALGMODE_CFB32 = 28; - -const int CSSM_ALGMODE_CFB8 = 30; - -const int CSSM_ALGMODE_CFBPadIV8 = 9; - -const int CSSM_ALGMODE_CFB_IV8 = 8; - -const int CSSM_ALGMODE_COUNTER = 13; - -const int CSSM_ALGMODE_CUSTOM = 1; - -const int CSSM_ALGMODE_ECB = 2; - -const int CSSM_ALGMODE_ECB128 = 34; - -const int CSSM_ALGMODE_ECB64 = 24; - -const int CSSM_ALGMODE_ECB96 = 35; - -const int CSSM_ALGMODE_ECBPad = 3; - -const int CSSM_ALGMODE_ISO_9796 = 41; - -const int CSSM_ALGMODE_LAST = 2147483647; - -const int CSSM_ALGMODE_NONE = 0; - -const int CSSM_ALGMODE_OAEP_HASH = 37; - -const int CSSM_ALGMODE_OFB = 10; - -const int CSSM_ALGMODE_OFB64 = 26; - -const int CSSM_ALGMODE_OFBNLF = 17; - -const int CSSM_ALGMODE_OFBPadIV8 = 12; - -const int CSSM_ALGMODE_OFB_IV8 = 11; - -const int CSSM_ALGMODE_PBC = 18; - -const int CSSM_ALGMODE_PCBC = 15; - -const int CSSM_ALGMODE_PFB = 19; - -const int CSSM_ALGMODE_PKCS1_EME_OAEP = 39; - -const int CSSM_ALGMODE_PKCS1_EME_V15 = 38; - -const int CSSM_ALGMODE_PKCS1_EMSA_V15 = 40; - -const int CSSM_ALGMODE_PRIVATE_KEY = 22; - -const int CSSM_ALGMODE_PRIVATE_WRAP = 32; - -const int CSSM_ALGMODE_PUBLIC_KEY = 21; - -const int CSSM_ALGMODE_RELAYX = 33; - -const int CSSM_ALGMODE_SHUFFLE = 23; - -const int CSSM_ALGMODE_VENDOR_DEFINED = -2147483648; - -const int CSSM_ALGMODE_WRAP = 31; - -const int CSSM_ALGMODE_X9_31 = 42; - -typedef CSSM_ALGORITHMS = uint32; -typedef CSSM_API_MEMORY_FUNCS = CSSM_MEMORY_FUNCS; -typedef CSSM_API_MEMORY_FUNCS_PTR = ffi.Pointer; -typedef CSSM_API_ModuleEventHandler = - ffi.Pointer>; -typedef CSSM_API_ModuleEventHandlerFunction = - CSSM_RETURN Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - uint32 SubserviceId, - CSSM_SERVICE_TYPE ServiceType, - CSSM_MODULE_EVENT EventType, - ); -typedef DartCSSM_API_ModuleEventHandlerFunction = - Dartsint32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - Dartuint32 SubserviceId, - Dartuint32 ServiceType, - Dartuint32 EventType, - ); - -const int CSSM_APPLECSPDL_DB_CHANGE_PASSWORD = 5; - -typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS = - cssm_applecspdl_db_change_password_parameters; -typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS_PTR = - ffi.Pointer; - -const int CSSM_APPLECSPDL_DB_GET_HANDLE = 6; - -const int CSSM_APPLECSPDL_DB_GET_SETTINGS = 2; - -const int CSSM_APPLECSPDL_DB_IS_LOCKED = 4; - -typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS = - cssm_applecspdl_db_is_locked_parameters; -typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS_PTR = - ffi.Pointer; - -const int CSSM_APPLECSPDL_DB_LOCK = 0; - -typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS = - cssm_applecspdl_db_settings_parameters; -typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS_PTR = - ffi.Pointer; - -const int CSSM_APPLECSPDL_DB_SET_SETTINGS = 3; - -const int CSSM_APPLECSPDL_DB_UNLOCK = 1; - -const int CSSM_APPLECSP_KEYDIGEST = 256; - -const int CSSM_APPLECSP_PUBKEY = 257; - -typedef CSSM_APPLEDL_OPEN_PARAMETERS = cssm_appledl_open_parameters; -typedef CSSM_APPLEDL_OPEN_PARAMETERS_PTR = - ffi.Pointer; - -const int CSSM_APPLEDL_OPEN_PARAMETERS_VERSION = 1; - -const int CSSM_APPLEFILEDL_COMMIT = 1; - -const int CSSM_APPLEFILEDL_DELETE_FILE = 6; - -const int CSSM_APPLEFILEDL_MAKE_BACKUP = 4; - -const int CSSM_APPLEFILEDL_MAKE_COPY = 5; - -const int CSSM_APPLEFILEDL_ROLLBACK = 2; - -const int CSSM_APPLEFILEDL_TAKE_FILE_LOCK = 3; - -const int CSSM_APPLEFILEDL_TOGGLE_AUTOCOMMIT = 0; - -const int CSSM_APPLESCPDL_CSP_GET_KEYHANDLE = 7; - -const int CSSM_APPLEX509CL_OBTAIN_CSR = 0; - -const int CSSM_APPLEX509CL_VERIFY_CSR = 1; - -final class CSSM_APPLE_CL_CSR_REQUEST extends ffi.Struct { - external CSSM_X509_NAME_PTR subjectNameX509; - - @CSSM_ALGORITHMS() - external int signatureAlg; - - external SecAsn1Oid signatureOid; - - @CSSM_CSP_HANDLE() - external int cspHand; - - external ffi.Pointer subjectPublicKey; - - external ffi.Pointer subjectPrivateKey; - - external ffi.Pointer challengeString; -} - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_10 = 10; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_11 = 11; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_12 = 12; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_13 = 13; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_14 = 14; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_15 = 15; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_16 = 16; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_17 = 17; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_18 = 18; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_19 = 19; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_20 = 20; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_21 = 21; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_22 = 22; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_23 = 23; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_24 = 24; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_25 = 25; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_26 = 26; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_27 = 27; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_28 = 28; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_8 = 8; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_9 = 9; - -final class CSSM_APPLE_TP_ACTION_DATA extends ffi.Struct { - @uint32() - external int Version; - - @CSSM_APPLE_TP_ACTION_FLAGS() - external int ActionFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Version, - required int ActionFlags, - }) => $allocator() - ..ref.Version = Version - ..ref.ActionFlags = ActionFlags; -} - -typedef CSSM_APPLE_TP_ACTION_FLAGS = uint32; - -final class CSSM_APPLE_TP_CERT_REQUEST extends ffi.Struct { - @CSSM_CSP_HANDLE() - external int cspHand; - - @CSSM_CL_HANDLE() - external int clHand; - - @uint32() - external int serialNumber; - - @uint32() - external int numSubjectNames; - - external ffi.Pointer subjectNames; - - @uint32() - external int numIssuerNames; - - external ffi.Pointer issuerNames; - - external CSSM_X509_NAME_PTR issuerNameX509; - - external ffi.Pointer certPublicKey; - - external ffi.Pointer issuerPrivateKey; - - @CSSM_ALGORITHMS() - external int signatureAlg; - - external SecAsn1Oid signatureOid; - - @uint32() - external int notBefore; - - @uint32() - external int notAfter; - - @uint32() - external int numExtensions; - - external ffi.Pointer extensions; - - external ffi.Pointer challengeString; -} - -final class CSSM_APPLE_TP_CRL_OPTIONS extends ffi.Struct { - @uint32() - external int Version; - - @CSSM_APPLE_TP_CRL_OPT_FLAGS() - external int CrlFlags; - - external CSSM_DL_DB_HANDLE_PTR crlStore; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Version, - required int CrlFlags, - required CSSM_DL_DB_HANDLE_PTR crlStore, - }) => $allocator() - ..ref.Version = Version - ..ref.CrlFlags = CrlFlags - ..ref.crlStore = crlStore; -} - -typedef CSSM_APPLE_TP_CRL_OPT_FLAGS = uint32; - -final class CSSM_APPLE_TP_NAME_OID extends ffi.Struct { - external ffi.Pointer string; - - external ffi.Pointer oid; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer string, - required ffi.Pointer oid, - }) => $allocator() - ..ref.string = string - ..ref.oid = oid; -} - -final class CSSM_APPLE_TP_SMIME_OPTIONS extends ffi.Struct { - @uint32() - external int Version; - - @CE_KeyUsage() - external int IntendedUsage; - - @uint32() - external int SenderEmailLen; - - external ffi.Pointer SenderEmail; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Version, - required int IntendedUsage, - required int SenderEmailLen, - required ffi.Pointer SenderEmail, - }) => $allocator() - ..ref.Version = Version - ..ref.IntendedUsage = IntendedUsage - ..ref.SenderEmailLen = SenderEmailLen - ..ref.SenderEmail = SenderEmail; -} - -final class CSSM_APPLE_TP_SSL_OPTIONS extends ffi.Struct { - @uint32() - external int Version; - - @uint32() - external int ServerNameLen; - - external ffi.Pointer ServerName; - - @uint32() - external int Flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Version, - required int ServerNameLen, - required ffi.Pointer ServerName, - required int Flags, - }) => $allocator() - ..ref.Version = Version - ..ref.ServerNameLen = ServerNameLen - ..ref.ServerName = ServerName - ..ref.Flags = Flags; -} - -const int CSSM_APPLE_UNLOCK_TYPE_KEYBAG = 3; - -const int CSSM_APPLE_UNLOCK_TYPE_KEY_DIRECT = 1; - -const int CSSM_APPLE_UNLOCK_TYPE_WRAPPED_PRIVATE = 2; - -const int CSSM_ASC_OPTIMIZE_ASCII = 5; - -const int CSSM_ASC_OPTIMIZE_DEFAULT = 0; - -const int CSSM_ASC_OPTIMIZE_SECURITY = 2; - -const int CSSM_ASC_OPTIMIZE_SIZE = 1; - -const int CSSM_ASC_OPTIMIZE_TIME = 3; - -const int CSSM_ASC_OPTIMIZE_TIME_SIZE = 4; - -typedef CSSM_ATTACH_FLAGS = uint32; - -const int CSSM_ATTACH_READ_ONLY = 1; - -const int CSSM_ATTRIBUTE_ACCESS_CREDENTIALS = -2147483612; - -const int CSSM_ATTRIBUTE_ALERT_TITLE = 545259527; - -const int CSSM_ATTRIBUTE_ALG_ID = 268435485; - -const int CSSM_ATTRIBUTE_ALG_PARAMS = 536870928; - -const int CSSM_ATTRIBUTE_ASC_OPTIMIZATION = 276824067; - -const int CSSM_ATTRIBUTE_BASE = 536870939; - -const int CSSM_ATTRIBUTE_BLOCK_SIZE = 268435468; - -const int CSSM_ATTRIBUTE_CSP_HANDLE = 268435490; - -const int CSSM_ATTRIBUTE_CUSTOM = 536870913; - -const int CSSM_ATTRIBUTE_DATA_ACCESS_CREDENTIALS = -2147483648; - -const int CSSM_ATTRIBUTE_DATA_CRYPTO_DATA = 805306368; - -const int CSSM_ATTRIBUTE_DATA_CSSM_DATA = 536870912; - -const int CSSM_ATTRIBUTE_DATA_DATE = 1610612736; - -const int CSSM_ATTRIBUTE_DATA_DL_DB_HANDLE = 33554432; - -const int CSSM_ATTRIBUTE_DATA_KEY = 1073741824; - -const int CSSM_ATTRIBUTE_DATA_KR_PROFILE = 50331648; - -const int CSSM_ATTRIBUTE_DATA_NONE = 0; - -const int CSSM_ATTRIBUTE_DATA_RANGE = 1879048192; - -const int CSSM_ATTRIBUTE_DATA_STRING = 1342177280; - -const int CSSM_ATTRIBUTE_DATA_UINT32 = 268435456; - -const int CSSM_ATTRIBUTE_DATA_VERSION = 16777216; - -const int CSSM_ATTRIBUTE_DESCRIPTION = 1342177282; - -const int CSSM_ATTRIBUTE_DL_DB_HANDLE = 33554467; - -const int CSSM_ATTRIBUTE_EFFECTIVE_BITS = 268435476; - -const int CSSM_ATTRIBUTE_END_DATE = 1610612758; - -const int CSSM_ATTRIBUTE_FEE_CURVE_TYPE = 276824066; - -const int CSSM_ATTRIBUTE_FEE_PRIME_TYPE = 276824065; - -const int CSSM_ATTRIBUTE_INIT_VECTOR = 536870916; - -const int CSSM_ATTRIBUTE_ITERATION_COUNT = 268435486; - -const int CSSM_ATTRIBUTE_IV_SIZE = 268435471; - -const int CSSM_ATTRIBUTE_KEY = 1073741827; - -const int CSSM_ATTRIBUTE_KEYATTR = 268435480; - -const int CSSM_ATTRIBUTE_KEYUSAGE = 268435479; - -const int CSSM_ATTRIBUTE_KEY_LENGTH = 268435466; - -const int CSSM_ATTRIBUTE_KEY_LENGTH_RANGE = 1879048203; - -const int CSSM_ATTRIBUTE_KEY_TYPE = 268435474; - -const int CSSM_ATTRIBUTE_KRPROFILE_LOCAL = 50331680; - -const int CSSM_ATTRIBUTE_KRPROFILE_REMOTE = 50331681; - -const int CSSM_ATTRIBUTE_LABEL = 536870929; - -const int CSSM_ATTRIBUTE_MODE = 268435475; - -const int CSSM_ATTRIBUTE_NONE = 0; - -const int CSSM_ATTRIBUTE_OUTPUT_SIZE = 268435469; - -const int CSSM_ATTRIBUTE_PADDING = 268435462; - -const int CSSM_ATTRIBUTE_PARAM_KEY = 1082130437; - -const int CSSM_ATTRIBUTE_PASSPHRASE = 805306377; - -const int CSSM_ATTRIBUTE_PRIME = 536870938; - -const int CSSM_ATTRIBUTE_PRIVATE_KEY_FORMAT = 268435494; - -const int CSSM_ATTRIBUTE_PROMPT = 545259526; - -const int CSSM_ATTRIBUTE_PUBLIC_KEY = 1082130432; - -const int CSSM_ATTRIBUTE_PUBLIC_KEY_FORMAT = 268435493; - -const int CSSM_ATTRIBUTE_RANDOM = 536870919; - -const int CSSM_ATTRIBUTE_ROUNDS = 268435470; - -const int CSSM_ATTRIBUTE_ROUNDS_RANGE = 1879048223; - -const int CSSM_ATTRIBUTE_RSA_BLINDING = 276824068; - -const int CSSM_ATTRIBUTE_SALT = 536870917; - -const int CSSM_ATTRIBUTE_SEED = 805306376; - -const int CSSM_ATTRIBUTE_START_DATE = 1610612757; - -const int CSSM_ATTRIBUTE_SUBPRIME = 536870940; - -const int CSSM_ATTRIBUTE_SYMMETRIC_KEY_FORMAT = 268435495; - -typedef CSSM_ATTRIBUTE_TYPE = uint32; - -const int CSSM_ATTRIBUTE_TYPE_MASK = -16777216; - -const int CSSM_ATTRIBUTE_VENDOR_DEFINED = 8388608; - -const int CSSM_ATTRIBUTE_VERIFY_PASSPHRASE = 276824072; - -const int CSSM_ATTRIBUTE_VERSION = 16777241; - -const int CSSM_ATTRIBUTE_WRAPPED_KEY_FORMAT = 268435496; - -typedef CSSM_AUTHORIZATIONGROUP = cssm_authorizationgroup; -typedef CSSM_AUTHORIZATIONGROUP_PTR = ffi.Pointer; -typedef CSSM_BASE_CERTS = cssm_base_certs; -typedef CSSM_BASE_CERTS_PTR = ffi.Pointer; - -const int CSSM_BASE_ERROR = -2147418112; - -typedef CSSM_BER_TAG = uint8; -typedef CSSM_BITMASK = uint32; -typedef CSSM_BOOL = sint32; -typedef CSSM_CALLBACK = ffi.Pointer>; -typedef CSSM_CALLBACKFunction = - CSSM_RETURN Function( - CSSM_DATA_PTR OutData, - ffi.Pointer CallerCtx, - ); -typedef DartCSSM_CALLBACKFunction = - Dartsint32 Function(CSSM_DATA_PTR OutData, ffi.Pointer CallerCtx); -typedef CSSM_CALLOC = ffi.Pointer>; -typedef CSSM_CALLOCFunction = - ffi.Pointer Function( - uint32 num, - CSSM_SIZE size, - ffi.Pointer allocref, - ); -typedef DartCSSM_CALLOCFunction = - ffi.Pointer Function( - Dartuint32 num, - DartCSSM_SIZE size, - ffi.Pointer allocref, - ); -typedef CSSM_CC_HANDLE = CSSM_LONG_HANDLE; -typedef CSSM_CERTGROUP = cssm_certgroup; - -const int CSSM_CERTGROUP_CERT_PAIR = 3; - -const int CSSM_CERTGROUP_DATA = 0; - -const int CSSM_CERTGROUP_ENCODED_CERT = 1; - -const int CSSM_CERTGROUP_PARSED_CERT = 2; - -typedef CSSM_CERTGROUP_PTR = ffi.Pointer; -typedef CSSM_CERTGROUP_TYPE = uint32; -typedef CSSM_CERTGROUP_TYPE_PTR = ffi.Pointer; - -const int CSSM_CERT_ACL_ENTRY = 12; - -typedef CSSM_CERT_BUNDLE = cssm_cert_bundle; - -const int CSSM_CERT_BUNDLE_CUSTOM = 1; - -typedef CSSM_CERT_BUNDLE_ENCODING = uint32; - -const int CSSM_CERT_BUNDLE_ENCODING_BER = 2; - -const int CSSM_CERT_BUNDLE_ENCODING_CUSTOM = 1; - -const int CSSM_CERT_BUNDLE_ENCODING_DER = 3; - -const int CSSM_CERT_BUNDLE_ENCODING_PGP = 5; - -const int CSSM_CERT_BUNDLE_ENCODING_SEXPR = 4; - -const int CSSM_CERT_BUNDLE_ENCODING_UNKNOWN = 0; - -typedef CSSM_CERT_BUNDLE_HEADER = cssm_cert_bundle_header; -typedef CSSM_CERT_BUNDLE_HEADER_PTR = ffi.Pointer; - -const int CSSM_CERT_BUNDLE_LAST = 32767; - -const int CSSM_CERT_BUNDLE_PFX = 5; - -const int CSSM_CERT_BUNDLE_PGP_KEYRING = 7; - -const int CSSM_CERT_BUNDLE_PKCS12 = 4; - -const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_DATA = 2; - -const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_ENVELOPED_DATA = 3; - -typedef CSSM_CERT_BUNDLE_PTR = ffi.Pointer; - -const int CSSM_CERT_BUNDLE_SPKI_SEQUENCE = 6; - -typedef CSSM_CERT_BUNDLE_TYPE = uint32; - -const int CSSM_CERT_BUNDLE_UNKNOWN = 0; - -typedef CSSM_CERT_ENCODING = uint32; - -const int CSSM_CERT_ENCODING_BER = 2; - -const int CSSM_CERT_ENCODING_CUSTOM = 1; - -const int CSSM_CERT_ENCODING_DER = 3; - -const int CSSM_CERT_ENCODING_LAST = 32767; - -const int CSSM_CERT_ENCODING_MULTIPLE = 32766; - -const int CSSM_CERT_ENCODING_NDR = 4; - -const int CSSM_CERT_ENCODING_PGP = 6; - -typedef CSSM_CERT_ENCODING_PTR = ffi.Pointer; - -const int CSSM_CERT_ENCODING_SEXPR = 5; - -const int CSSM_CERT_ENCODING_UNKNOWN = 0; - -const int CSSM_CERT_Intel = 8; - -const int CSSM_CERT_LAST = 32767; - -const int CSSM_CERT_MULTIPLE = 32766; - -typedef CSSM_CERT_PAIR = cssm_cert_pair; -typedef CSSM_CERT_PAIR_PTR = ffi.Pointer; -typedef CSSM_CERT_PARSE_FORMAT = uint32; - -const int CSSM_CERT_PARSE_FORMAT_COMPLEX = 3; - -const int CSSM_CERT_PARSE_FORMAT_CUSTOM = 1; - -const int CSSM_CERT_PARSE_FORMAT_LAST = 32767; - -const int CSSM_CERT_PARSE_FORMAT_MULTIPLE = 32766; - -const int CSSM_CERT_PARSE_FORMAT_NONE = 0; - -const int CSSM_CERT_PARSE_FORMAT_OID_NAMED = 4; - -typedef CSSM_CERT_PARSE_FORMAT_PTR = ffi.Pointer; - -const int CSSM_CERT_PARSE_FORMAT_SEXPR = 2; - -const int CSSM_CERT_PARSE_FORMAT_TUPLE = 5; - -const int CSSM_CERT_PGP = 4; - -const int CSSM_CERT_SDSIv1 = 6; - -const int CSSM_CERT_SPKI = 5; - -const int CSSM_CERT_STATUS_EXPIRED = 1; - -const int CSSM_CERT_STATUS_IS_FROM_NET = 32; - -const int CSSM_CERT_STATUS_IS_IN_ANCHORS = 8; - -const int CSSM_CERT_STATUS_IS_IN_INPUT_CERTS = 4; - -const int CSSM_CERT_STATUS_IS_ROOT = 16; - -const int CSSM_CERT_STATUS_NOT_VALID_YET = 2; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_DENY = 1024; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_ADMIN = 128; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_SYSTEM = 256; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_USER = 64; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_IGNORED_ERROR = 2048; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_TRUST = 512; - -const int CSSM_CERT_TUPLE = 11; - -typedef CSSM_CERT_TYPE = uint32; -typedef CSSM_CERT_TYPE_PTR = ffi.Pointer; - -const int CSSM_CERT_UNKNOWN = 0; - -const int CSSM_CERT_X9_ATTRIBUTE = 10; - -const int CSSM_CERT_X_509_ATTRIBUTE = 9; - -const int CSSM_CERT_X_509v1 = 1; - -const int CSSM_CERT_X_509v2 = 2; - -const int CSSM_CERT_X_509v3 = 3; - -typedef CSSM_CHALLENGE_CALLBACK = - ffi.Pointer>; -typedef CSSM_CHALLENGE_CALLBACKFunction = - CSSM_RETURN Function( - ffi.Pointer Challenge, - CSSM_SAMPLEGROUP_PTR Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ); -typedef DartCSSM_CHALLENGE_CALLBACKFunction = - Dartsint32 Function( - ffi.Pointer Challenge, - CSSM_SAMPLEGROUP_PTR Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ); - -const int CSSM_CL_BASE_CL_ERROR = -2147411712; - -const int CSSM_CL_BASE_ERROR = -2147411968; - -const int CSSM_CL_CUSTOM_CERT_BUNDLE_TYPE = 32768; - -const int CSSM_CL_CUSTOM_CERT_ENCODING = 32768; - -const int CSSM_CL_CUSTOM_CERT_PARSE_FORMAT = 32768; - -const int CSSM_CL_CUSTOM_CERT_TYPE = 32768; - -const int CSSM_CL_CUSTOM_CRL_PARSE_FORMAT = 32768; - -typedef CSSM_CL_HANDLE = CSSM_MODULE_HANDLE; - -const int CSSM_CL_PRIVATE_ERROR = -2147410944; - -const int CSSM_CL_TEMPLATE_INTERMEDIATE_CERT = 1; - -const int CSSM_CL_TEMPLATE_PKIX_CERTTEMPLATE = 2; - -typedef CSSM_CL_TEMPLATE_TYPE = uint32; -typedef CSSM_CONTEXT = cssm_context; -typedef CSSM_CONTEXT_ATTRIBUTE = cssm_context_attribute; -typedef CSSM_CONTEXT_ATTRIBUTE_PTR = ffi.Pointer; -typedef CSSM_CONTEXT_EVENT = uint32; - -const int CSSM_CONTEXT_EVENT_CREATE = 1; - -const int CSSM_CONTEXT_EVENT_DELETE = 2; - -const int CSSM_CONTEXT_EVENT_UPDATE = 3; - -typedef CSSM_CONTEXT_PTR = ffi.Pointer; -typedef CSSM_CONTEXT_TYPE = uint32; -typedef CSSM_CRLGROUP = cssm_crlgroup; - -const int CSSM_CRLGROUP_CRL_PAIR = 3; - -const int CSSM_CRLGROUP_DATA = 0; - -const int CSSM_CRLGROUP_ENCODED_CRL = 1; - -const int CSSM_CRLGROUP_PARSED_CRL = 2; - -typedef CSSM_CRLGROUP_PTR = ffi.Pointer; -typedef CSSM_CRLGROUP_TYPE = uint32; -typedef CSSM_CRLGROUP_TYPE_PTR = ffi.Pointer; -typedef CSSM_CRL_ENCODING = uint32; - -const int CSSM_CRL_ENCODING_BER = 2; - -const int CSSM_CRL_ENCODING_BLOOM = 4; - -const int CSSM_CRL_ENCODING_CUSTOM = 1; - -const int CSSM_CRL_ENCODING_DER = 3; - -const int CSSM_CRL_ENCODING_MULTIPLE = 32766; - -typedef CSSM_CRL_ENCODING_PTR = ffi.Pointer; - -const int CSSM_CRL_ENCODING_SEXPR = 5; - -const int CSSM_CRL_ENCODING_UNKNOWN = 0; - -typedef CSSM_CRL_PAIR = cssm_crl_pair; -typedef CSSM_CRL_PAIR_PTR = ffi.Pointer; -typedef CSSM_CRL_PARSE_FORMAT = uint32; - -const int CSSM_CRL_PARSE_FORMAT_COMPLEX = 3; - -const int CSSM_CRL_PARSE_FORMAT_CUSTOM = 1; - -const int CSSM_CRL_PARSE_FORMAT_LAST = 32767; - -const int CSSM_CRL_PARSE_FORMAT_MULTIPLE = 32766; - -const int CSSM_CRL_PARSE_FORMAT_NONE = 0; - -const int CSSM_CRL_PARSE_FORMAT_OID_NAMED = 4; - -typedef CSSM_CRL_PARSE_FORMAT_PTR = ffi.Pointer; - -const int CSSM_CRL_PARSE_FORMAT_SEXPR = 2; - -const int CSSM_CRL_PARSE_FORMAT_TUPLE = 5; - -typedef CSSM_CRL_TYPE = uint32; - -const int CSSM_CRL_TYPE_MULTIPLE = 32766; - -typedef CSSM_CRL_TYPE_PTR = ffi.Pointer; - -const int CSSM_CRL_TYPE_SPKI = 3; - -const int CSSM_CRL_TYPE_UNKNOWN = 0; - -const int CSSM_CRL_TYPE_X_509v1 = 1; - -const int CSSM_CRL_TYPE_X_509v2 = 2; - -typedef CSSM_CRYPTO_DATA = cssm_crypto_data; -typedef CSSM_CRYPTO_DATA_PTR = ffi.Pointer; -typedef CSSM_CSPTYPE = uint32; - -const int CSSM_CSP_BASE_CSP_ERROR = -2147415808; - -const int CSSM_CSP_BASE_ERROR = -2147416064; - -typedef CSSM_CSP_FLAGS = uint32; -typedef CSSM_CSP_HANDLE = CSSM_MODULE_HANDLE; - -const int CSSM_CSP_HARDWARE = 2; - -const int CSSM_CSP_HYBRID = 3; - -typedef CSSM_CSP_OPERATIONAL_STATISTICS = cssm_csp_operational_statistics; -typedef CSSM_CSP_OPERATIONAL_STATISTICS_PTR = - ffi.Pointer; - -const int CSSM_CSP_PRIVATE_ERROR = -2147415040; - -const int CSSM_CSP_RDR_EXISTS = 2; - -const int CSSM_CSP_RDR_HW = 4; - -const int CSSM_CSP_RDR_TOKENPRESENT = 1; - -typedef CSSM_CSP_READER_FLAGS = uint32; - -const int CSSM_CSP_SOFTWARE = 1; - -const int CSSM_CSP_STORES_CERTIFICATES = 134217728; - -const int CSSM_CSP_STORES_GENERIC = 268435456; - -const int CSSM_CSP_STORES_PRIVATE_KEYS = 16777216; - -const int CSSM_CSP_STORES_PUBLIC_KEYS = 33554432; - -const int CSSM_CSP_STORES_SESSION_KEYS = 67108864; - -const int CSSM_CSP_TOK_CLOCK_EXISTS = 64; - -const int CSSM_CSP_TOK_LOGIN_REQUIRED = 4; - -const int CSSM_CSP_TOK_PRIVATE_KEY_PASSWORD = 4194304; - -const int CSSM_CSP_TOK_PROT_AUTHENTICATION = 256; - -const int CSSM_CSP_TOK_RNG = 1; - -const int CSSM_CSP_TOK_SESSION_KEY_PASSWORD = 2097152; - -const int CSSM_CSP_TOK_USER_PIN_EXPIRED = 1048576; - -const int CSSM_CSP_TOK_USER_PIN_INITIALIZED = 8; - -const int CSSM_CSP_TOK_WRITE_PROTECTED = 2; - -const int CSSM_CSSM_BASE_CSSM_ERROR = -2147417840; - -const int CSSM_CSSM_BASE_ERROR = -2147418112; - -const int CSSM_CSSM_PRIVATE_ERROR = -2147417088; - -const int CSSM_CUSTOM_COMMON_ERROR_EXTENT = 224; - -typedef CSSM_DATA_PTR = ffi.Pointer; -typedef CSSM_DATE = cssm_date; -typedef CSSM_DATE_PTR = ffi.Pointer; -typedef CSSM_DBINFO = cssm_dbinfo; -typedef CSSM_DBINFO_PTR = ffi.Pointer; - -const int CSSM_DB_ACCESS_PRIVILEGED = 4; - -const int CSSM_DB_ACCESS_READ = 1; - -const int CSSM_DB_ACCESS_RESET = 65536; - -typedef CSSM_DB_ACCESS_TYPE = uint32; -typedef CSSM_DB_ACCESS_TYPE_PTR = ffi.Pointer; - -const int CSSM_DB_ACCESS_WRITE = 2; - -const int CSSM_DB_AND = 1; - -typedef CSSM_DB_ATTRIBUTE_DATA = cssm_db_attribute_data; -typedef CSSM_DB_ATTRIBUTE_DATA_PTR = ffi.Pointer; -typedef CSSM_DB_ATTRIBUTE_FORMAT = uint32; - -const int CSSM_DB_ATTRIBUTE_FORMAT_BIG_NUM = 3; - -const int CSSM_DB_ATTRIBUTE_FORMAT_BLOB = 6; - -const int CSSM_DB_ATTRIBUTE_FORMAT_COMPLEX = 8; - -const int CSSM_DB_ATTRIBUTE_FORMAT_MULTI_UINT32 = 7; - -typedef CSSM_DB_ATTRIBUTE_FORMAT_PTR = ffi.Pointer; - -const int CSSM_DB_ATTRIBUTE_FORMAT_REAL = 4; - -const int CSSM_DB_ATTRIBUTE_FORMAT_SINT32 = 1; - -const int CSSM_DB_ATTRIBUTE_FORMAT_STRING = 0; - -const int CSSM_DB_ATTRIBUTE_FORMAT_TIME_DATE = 5; - -const int CSSM_DB_ATTRIBUTE_FORMAT_UINT32 = 2; - -typedef CSSM_DB_ATTRIBUTE_INFO = cssm_db_attribute_info; -typedef CSSM_DB_ATTRIBUTE_INFO_PTR = ffi.Pointer; - -const int CSSM_DB_ATTRIBUTE_NAME_AS_INTEGER = 2; - -const int CSSM_DB_ATTRIBUTE_NAME_AS_OID = 1; - -const int CSSM_DB_ATTRIBUTE_NAME_AS_STRING = 0; - -typedef CSSM_DB_ATTRIBUTE_NAME_FORMAT = uint32; -typedef CSSM_DB_ATTRIBUTE_NAME_FORMAT_PTR = ffi.Pointer; - -const int CSSM_DB_CERT_USE_OWNER = 4; - -const int CSSM_DB_CERT_USE_PRIVACY = 32; - -const int CSSM_DB_CERT_USE_REVOKED = 8; - -const int CSSM_DB_CERT_USE_SIGNING = 16; - -const int CSSM_DB_CERT_USE_SYSTEM = 2; - -const int CSSM_DB_CERT_USE_TRUSTED = 1; - -typedef CSSM_DB_CONJUNCTIVE = uint32; -typedef CSSM_DB_CONJUNCTIVE_PTR = ffi.Pointer; - -const int CSSM_DB_CONTAINS = 4; - -const int CSSM_DB_CONTAINS_FINAL_SUBSTRING = 6; - -const int CSSM_DB_CONTAINS_INITIAL_SUBSTRING = 5; - -const int CSSM_DB_DATASTORES_UNKNOWN = -1; - -const int CSSM_DB_EQUAL = 0; - -const int CSSM_DB_FILESYSTEMSCAN_MODE = 1; - -const int CSSM_DB_GREATER_THAN = 3; - -typedef CSSM_DB_HANDLE = CSSM_MODULE_HANDLE; -typedef CSSM_DB_INDEXED_DATA_LOCATION = uint32; -typedef CSSM_DB_INDEX_INFO = cssm_db_index_info; -typedef CSSM_DB_INDEX_INFO_PTR = ffi.Pointer; - -const int CSSM_DB_INDEX_NONUNIQUE = 1; - -const int CSSM_DB_INDEX_ON_ATTRIBUTE = 1; - -const int CSSM_DB_INDEX_ON_RECORD = 2; - -const int CSSM_DB_INDEX_ON_UNKNOWN = 0; - -typedef CSSM_DB_INDEX_TYPE = uint32; - -const int CSSM_DB_INDEX_UNIQUE = 0; - -const int CSSM_DB_LESS_THAN = 2; - -const int CSSM_DB_MODIFY_ATTRIBUTE_ADD = 1; - -const int CSSM_DB_MODIFY_ATTRIBUTE_DELETE = 2; - -const int CSSM_DB_MODIFY_ATTRIBUTE_NONE = 0; - -const int CSSM_DB_MODIFY_ATTRIBUTE_REPLACE = 3; - -typedef CSSM_DB_MODIFY_MODE = uint32; - -const int CSSM_DB_NONE = 0; - -const int CSSM_DB_NOT_EQUAL = 1; - -typedef CSSM_DB_OPERATOR = uint32; -typedef CSSM_DB_OPERATOR_PTR = ffi.Pointer; - -const int CSSM_DB_OR = 2; - -typedef CSSM_DB_PARSING_MODULE_INFO = cssm_db_parsing_module_info; -typedef CSSM_DB_PARSING_MODULE_INFO_PTR = - ffi.Pointer; -typedef CSSM_DB_RECORDTYPE = uint32; - -const int CSSM_DB_RECORDTYPE_APP_DEFINED_END = -1; - -const int CSSM_DB_RECORDTYPE_APP_DEFINED_START = -2147483648; - -const int CSSM_DB_RECORDTYPE_OPEN_GROUP_END = 18; - -const int CSSM_DB_RECORDTYPE_OPEN_GROUP_START = 10; - -const int CSSM_DB_RECORDTYPE_SCHEMA_END = 4; - -const int CSSM_DB_RECORDTYPE_SCHEMA_START = 0; - -typedef CSSM_DB_RECORD_ATTRIBUTE_DATA = cssm_db_record_attribute_data; -typedef CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR = - ffi.Pointer; -typedef CSSM_DB_RECORD_ATTRIBUTE_INFO = cssm_db_record_attribute_info; -typedef CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR = - ffi.Pointer; -typedef CSSM_DB_RECORD_INDEX_INFO = cssm_db_record_index_info; -typedef CSSM_DB_RECORD_INDEX_INFO_PTR = ffi.Pointer; -typedef CSSM_DB_RETRIEVAL_MODES = uint32; -typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO = cssm_db_schema_attribute_info; -typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO_PTR = - ffi.Pointer; -typedef CSSM_DB_SCHEMA_INDEX_INFO = cssm_db_schema_index_info; -typedef CSSM_DB_SCHEMA_INDEX_INFO_PTR = ffi.Pointer; - -const int CSSM_DB_TRANSACTIONAL_MODE = 0; - -typedef CSSM_DB_UNIQUE_RECORD = cssm_db_unique_record; -typedef CSSM_DB_UNIQUE_RECORD_PTR = ffi.Pointer; -typedef CSSM_DLTYPE = uint32; -typedef CSSM_DLTYPE_PTR = ffi.Pointer; - -const int CSSM_DL_BASE_DL_ERROR = -2147413760; - -const int CSSM_DL_BASE_ERROR = -2147414016; - -const int CSSM_DL_CUSTOM = 1; - -typedef CSSM_DL_CUSTOM_ATTRIBUTES = ffi.Pointer; -typedef CSSM_DL_DB_HANDLE = cssm_dl_db_handle; -typedef CSSM_DL_DB_HANDLE_PTR = ffi.Pointer; -typedef CSSM_DL_DB_LIST = cssm_dl_db_list; -typedef CSSM_DL_DB_LIST_PTR = ffi.Pointer; - -const int CSSM_DL_DB_RECORD_ALL_KEYS = 18; - -const int CSSM_DL_DB_RECORD_ANY = 10; - -const int CSSM_DL_DB_RECORD_APPLESHARE_PASSWORD = -2147483646; - -const int CSSM_DL_DB_RECORD_CERT = 11; - -const int CSSM_DL_DB_RECORD_CRL = 12; - -const int CSSM_DL_DB_RECORD_EXTENDED_ATTRIBUTE = -2147479548; - -const int CSSM_DL_DB_RECORD_GENERIC = 14; - -const int CSSM_DL_DB_RECORD_GENERIC_PASSWORD = -2147483648; - -const int CSSM_DL_DB_RECORD_INTERNET_PASSWORD = -2147483647; - -const int CSSM_DL_DB_RECORD_METADATA = -2147450880; - -const int CSSM_DL_DB_RECORD_POLICY = 13; - -const int CSSM_DL_DB_RECORD_PRIVATE_KEY = 16; - -const int CSSM_DL_DB_RECORD_PUBLIC_KEY = 15; - -const int CSSM_DL_DB_RECORD_SYMMETRIC_KEY = 17; - -const int CSSM_DL_DB_RECORD_UNLOCK_REFERRAL = -2147479549; - -const int CSSM_DL_DB_RECORD_USER_TRUST = -2147479551; - -const int CSSM_DL_DB_RECORD_X509_CERTIFICATE = -2147479552; - -const int CSSM_DL_DB_RECORD_X509_CRL = -2147479550; - -const int CSSM_DL_DB_SCHEMA_ATTRIBUTES = 2; - -const int CSSM_DL_DB_SCHEMA_INDEXES = 1; - -const int CSSM_DL_DB_SCHEMA_INFO = 0; - -const int CSSM_DL_DB_SCHEMA_PARSING_MODULE = 3; - -const int CSSM_DL_FFS = 5; - -typedef CSSM_DL_FFS_ATTRIBUTES = ffi.Pointer; -typedef CSSM_DL_HANDLE = CSSM_MODULE_HANDLE; - -const int CSSM_DL_LDAP = 2; - -typedef CSSM_DL_LDAP_ATTRIBUTES = ffi.Pointer; - -const int CSSM_DL_MEMORY = 6; - -const int CSSM_DL_ODBC = 3; - -typedef CSSM_DL_ODBC_ATTRIBUTES = ffi.Pointer; - -const int CSSM_DL_PKCS11 = 4; - -typedef CSSM_DL_PKCS11_ATTRIBUTE = ffi.Pointer; -typedef CSSM_DL_PKCS11_ATTRIBUTE_PTR = ffi.Pointer; - -const int CSSM_DL_PRIVATE_ERROR = -2147412992; - -const int CSSM_DL_REMOTEDIR = 7; - -const int CSSM_DL_UNKNOWN = 0; - -const int CSSM_ELAPSED_TIME_COMPLETE = -2; - -const int CSSM_ELAPSED_TIME_UNKNOWN = -1; - -typedef CSSM_ENCODED_CERT = cssm_encoded_cert; -typedef CSSM_ENCODED_CERT_PTR = ffi.Pointer; -typedef CSSM_ENCODED_CRL = cssm_encoded_crl; -typedef CSSM_ENCODED_CRL_PTR = ffi.Pointer; -typedef CSSM_ENCRYPT_MODE = uint32; - -const int CSSM_ERRCODE_ACL_ADD_FAILED = 54; - -const int CSSM_ERRCODE_ACL_BASE_CERTS_NOT_SUPPORTED = 39; - -const int CSSM_ERRCODE_ACL_CHALLENGE_CALLBACK_FAILED = 45; - -const int CSSM_ERRCODE_ACL_CHANGE_FAILED = 49; - -const int CSSM_ERRCODE_ACL_DELETE_FAILED = 52; - -const int CSSM_ERRCODE_ACL_ENTRY_TAG_NOT_FOUND = 47; - -const int CSSM_ERRCODE_ACL_REPLACE_FAILED = 53; - -const int CSSM_ERRCODE_ACL_SUBJECT_TYPE_NOT_SUPPORTED = 43; - -const int CSSM_ERRCODE_CRL_ALREADY_SIGNED = 71; - -const int CSSM_ERRCODE_DEVICE_FAILED = 229; - -const int CSSM_ERRCODE_DEVICE_RESET = 228; - -const int CSSM_ERRCODE_FUNCTION_FAILED = 10; - -const int CSSM_ERRCODE_FUNCTION_NOT_IMPLEMENTED = 7; - -const int CSSM_ERRCODE_INCOMPATIBLE_VERSION = 65; - -const int CSSM_ERRCODE_INSUFFICIENT_CLIENT_IDENTIFICATION = 227; - -const int CSSM_ERRCODE_INTERNAL_ERROR = 1; - -const int CSSM_ERRCODE_INVALID_ACCESS_CREDENTIALS = 37; - -const int CSSM_ERRCODE_INVALID_ACL_BASE_CERTS = 38; - -const int CSSM_ERRCODE_INVALID_ACL_CHALLENGE_CALLBACK = 44; - -const int CSSM_ERRCODE_INVALID_ACL_EDIT_MODE = 48; - -const int CSSM_ERRCODE_INVALID_ACL_ENTRY_TAG = 46; - -const int CSSM_ERRCODE_INVALID_ACL_SUBJECT_VALUE = 42; - -const int CSSM_ERRCODE_INVALID_AC_HANDLE = 85; - -const int CSSM_ERRCODE_INVALID_CERTGROUP_POINTER = 66; - -const int CSSM_ERRCODE_INVALID_CERT_POINTER = 67; - -const int CSSM_ERRCODE_INVALID_CL_HANDLE = 82; - -const int CSSM_ERRCODE_INVALID_CONTEXT_HANDLE = 64; - -const int CSSM_ERRCODE_INVALID_CRL_POINTER = 68; - -const int CSSM_ERRCODE_INVALID_CRYPTO_DATA = 88; - -const int CSSM_ERRCODE_INVALID_CSP_HANDLE = 80; - -const int CSSM_ERRCODE_INVALID_DATA = 70; - -const int CSSM_ERRCODE_INVALID_DB_HANDLE = 74; - -const int CSSM_ERRCODE_INVALID_DB_LIST = 76; - -const int CSSM_ERRCODE_INVALID_DB_LIST_POINTER = 77; - -const int CSSM_ERRCODE_INVALID_DL_HANDLE = 81; - -const int CSSM_ERRCODE_INVALID_FIELD_POINTER = 69; - -const int CSSM_ERRCODE_INVALID_GUID = 12; - -const int CSSM_ERRCODE_INVALID_INPUT_POINTER = 5; - -const int CSSM_ERRCODE_INVALID_KR_HANDLE = 84; - -const int CSSM_ERRCODE_INVALID_NETWORK_ADDR = 87; - -const int CSSM_ERRCODE_INVALID_NEW_ACL_ENTRY = 50; - -const int CSSM_ERRCODE_INVALID_NEW_ACL_OWNER = 51; - -const int CSSM_ERRCODE_INVALID_NUMBER_OF_FIELDS = 72; - -const int CSSM_ERRCODE_INVALID_OUTPUT_POINTER = 6; - -const int CSSM_ERRCODE_INVALID_PASSTHROUGH_ID = 86; - -const int CSSM_ERRCODE_INVALID_POINTER = 4; - -const int CSSM_ERRCODE_INVALID_SAMPLE_VALUE = 40; - -const int CSSM_ERRCODE_INVALID_TP_HANDLE = 83; - -const int CSSM_ERRCODE_IN_DARK_WAKE = 230; - -const int CSSM_ERRCODE_MDS_ERROR = 3; - -const int CSSM_ERRCODE_MEMORY_ERROR = 2; - -const int CSSM_ERRCODE_MODULE_MANIFEST_VERIFY_FAILED = 11; - -const int CSSM_ERRCODE_NO_USER_INTERACTION = 224; - -const int CSSM_ERRCODE_OBJECT_ACL_NOT_SUPPORTED = 35; - -const int CSSM_ERRCODE_OBJECT_ACL_REQUIRED = 36; - -const int CSSM_ERRCODE_OBJECT_MANIP_AUTH_DENIED = 34; - -const int CSSM_ERRCODE_OBJECT_USE_AUTH_DENIED = 33; - -const int CSSM_ERRCODE_OPERATION_AUTH_DENIED = 32; - -const int CSSM_ERRCODE_OS_ACCESS_DENIED = 9; - -const int CSSM_ERRCODE_PRIVILEGE_NOT_GRANTED = 75; - -const int CSSM_ERRCODE_SAMPLE_VALUE_NOT_SUPPORTED = 41; - -const int CSSM_ERRCODE_SELF_CHECK_FAILED = 8; - -const int CSSM_ERRCODE_SERVICE_NOT_AVAILABLE = 226; - -const int CSSM_ERRCODE_UNKNOWN_FORMAT = 78; - -const int CSSM_ERRCODE_UNKNOWN_TAG = 79; - -const int CSSM_ERRCODE_USER_CANCELED = 225; - -const int CSSM_ERRCODE_VERIFICATION_FAILURE = 73; - -const int CSSM_ERRORCODE_COMMON_EXTENT = 256; - -const int CSSM_ERRORCODE_CUSTOM_OFFSET = 1024; - -const int CSSM_ERRORCODE_MODULE_EXTENT = 2048; - -const int CSSM_ESTIMATED_TIME_UNKNOWN = -1; - -typedef CSSM_EVIDENCE = cssm_evidence; -typedef CSSM_EVIDENCE_FORM = uint32; - -const int CSSM_EVIDENCE_FORM_APPLE_CERTGROUP = -2147483647; - -const int CSSM_EVIDENCE_FORM_APPLE_CERT_INFO = -2147483646; - -const int CSSM_EVIDENCE_FORM_APPLE_HEADER = -2147483648; - -const int CSSM_EVIDENCE_FORM_CERT = 1; - -const int CSSM_EVIDENCE_FORM_CERT_ID = 3; - -const int CSSM_EVIDENCE_FORM_CRL = 2; - -const int CSSM_EVIDENCE_FORM_CRL_ID = 4; - -const int CSSM_EVIDENCE_FORM_CRL_NEXTTIME = 7; - -const int CSSM_EVIDENCE_FORM_CRL_THISTIME = 6; - -const int CSSM_EVIDENCE_FORM_POLICYINFO = 8; - -const int CSSM_EVIDENCE_FORM_TUPLEGROUP = 9; - -const int CSSM_EVIDENCE_FORM_UNSPECIFIC = 0; - -const int CSSM_EVIDENCE_FORM_VERIFIER_TIME = 5; - -typedef CSSM_EVIDENCE_PTR = ffi.Pointer; - -const int CSSM_FALSE = 0; - -const int CSSM_FEE_CURVE_TYPE_ANSI_X9_62 = 3; - -const int CSSM_FEE_CURVE_TYPE_DEFAULT = 0; - -const int CSSM_FEE_CURVE_TYPE_MONTGOMERY = 1; - -const int CSSM_FEE_CURVE_TYPE_WEIERSTRASS = 2; - -const int CSSM_FEE_PRIME_TYPE_DEFAULT = 0; - -const int CSSM_FEE_PRIME_TYPE_FEE = 2; - -const int CSSM_FEE_PRIME_TYPE_GENERAL = 3; - -const int CSSM_FEE_PRIME_TYPE_MERSENNE = 1; - -typedef CSSM_FIELD = cssm_field; -typedef CSSM_FIELDGROUP = cssm_fieldgroup; -typedef CSSM_FIELDGROUP_PTR = ffi.Pointer; - -const int CSSM_FIELDVALUE_COMPLEX_DATA_TYPE = -1; - -typedef CSSM_FIELD_PTR = ffi.Pointer; -typedef CSSM_FREE = ffi.Pointer>; -typedef CSSM_FREEFunction = - ffi.Void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ); -typedef DartCSSM_FREEFunction = - void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ); -typedef CSSM_FUNC_NAME_ADDR = cssm_func_name_addr; -typedef CSSM_FUNC_NAME_ADDR_PTR = ffi.Pointer; -typedef CSSM_GUID = cssm_guid; -typedef CSSM_GUID_PTR = ffi.Pointer; -typedef CSSM_HANDLE = CSSM_INTPTR; -typedef CSSM_HANDLE_PTR = ffi.Pointer; -typedef CSSM_HEADERVERSION = uint32; - -const int CSSM_HINT_ADDRESS_APP = 1; - -const int CSSM_HINT_ADDRESS_SP = 2; - -const int CSSM_HINT_NONE = 0; - -typedef CSSM_INTPTR = ffi.IntPtr; -typedef DartCSSM_INTPTR = int; - -const int CSSM_INVALID_HANDLE = 0; - -typedef CSSM_KEA_DERIVE_PARAMS = cssm_kea_derive_params; -typedef CSSM_KEA_DERIVE_PARAMS_PTR = ffi.Pointer; -typedef CSSM_KEY = cssm_key; - -const int CSSM_KEYATTR_ALWAYS_SENSITIVE = 16; - -const int CSSM_KEYATTR_EXTRACTABLE = 32; - -typedef CSSM_KEYATTR_FLAGS = uint32; - -const int CSSM_KEYATTR_MODIFIABLE = 4; - -const int CSSM_KEYATTR_NEVER_EXTRACTABLE = 64; - -const int CSSM_KEYATTR_PARTIAL = 65536; - -const int CSSM_KEYATTR_PERMANENT = 1; - -const int CSSM_KEYATTR_PRIVATE = 2; - -const int CSSM_KEYATTR_PUBLIC_KEY_ENCRYPT = 131072; - -const int CSSM_KEYATTR_RETURN_DATA = 268435456; - -const int CSSM_KEYATTR_RETURN_DEFAULT = 0; - -const int CSSM_KEYATTR_RETURN_NONE = 1073741824; - -const int CSSM_KEYATTR_RETURN_REF = 536870912; - -const int CSSM_KEYATTR_SENSITIVE = 8; - -typedef CSSM_KEYBLOB_FORMAT = uint32; - -const int CSSM_KEYBLOB_OTHER = -1; - -const int CSSM_KEYBLOB_RAW = 0; - -const int CSSM_KEYBLOB_RAW_FORMAT_BSAFE = 6; - -const int CSSM_KEYBLOB_RAW_FORMAT_CCA = 9; - -const int CSSM_KEYBLOB_RAW_FORMAT_FIPS186 = 5; - -const int CSSM_KEYBLOB_RAW_FORMAT_MSCAPI = 3; - -const int CSSM_KEYBLOB_RAW_FORMAT_NONE = 0; - -const int CSSM_KEYBLOB_RAW_FORMAT_OCTET_STRING = 12; - -const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH = -2147483647; - -const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH2 = -2147483645; - -const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSL = -2147483646; - -const int CSSM_KEYBLOB_RAW_FORMAT_OTHER = -1; - -const int CSSM_KEYBLOB_RAW_FORMAT_PGP = 4; - -const int CSSM_KEYBLOB_RAW_FORMAT_PKCS1 = 1; - -const int CSSM_KEYBLOB_RAW_FORMAT_PKCS3 = 2; - -const int CSSM_KEYBLOB_RAW_FORMAT_PKCS8 = 10; - -const int CSSM_KEYBLOB_RAW_FORMAT_SPKI = 11; - -const int CSSM_KEYBLOB_RAW_FORMAT_VENDOR_DEFINED = -2147483648; - -const int CSSM_KEYBLOB_RAW_FORMAT_X509 = -2147483648; - -const int CSSM_KEYBLOB_REFERENCE = 2; - -const int CSSM_KEYBLOB_REF_FORMAT_INTEGER = 0; - -const int CSSM_KEYBLOB_REF_FORMAT_OTHER = -1; - -const int CSSM_KEYBLOB_REF_FORMAT_SPKI = 2; - -const int CSSM_KEYBLOB_REF_FORMAT_STRING = 1; - -typedef CSSM_KEYBLOB_TYPE = uint32; - -const int CSSM_KEYBLOB_WRAPPED = 3; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_APPLE_CUSTOM = 100; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_MSCAPI = 3; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_NONE = 0; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSH1 = 102; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSL = 101; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_OTHER = -1; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS7 = 2; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS8 = 1; - -typedef CSSM_KEYCLASS = uint32; - -const int CSSM_KEYCLASS_OTHER = -1; - -const int CSSM_KEYCLASS_PRIVATE_KEY = 1; - -const int CSSM_KEYCLASS_PUBLIC_KEY = 0; - -const int CSSM_KEYCLASS_SECRET_PART = 3; - -const int CSSM_KEYCLASS_SESSION_KEY = 2; - -typedef CSSM_KEYHEADER = cssm_keyheader; -typedef CSSM_KEYHEADER_PTR = ffi.Pointer; - -const int CSSM_KEYHEADER_VERSION = 2; - -typedef CSSM_KEYUSE = uint32; - -const int CSSM_KEYUSE_ANY = -2147483648; - -const int CSSM_KEYUSE_DECRYPT = 2; - -const int CSSM_KEYUSE_DERIVE = 256; - -const int CSSM_KEYUSE_ENCRYPT = 1; - -const int CSSM_KEYUSE_SIGN = 4; - -const int CSSM_KEYUSE_SIGN_RECOVER = 16; - -const int CSSM_KEYUSE_UNWRAP = 128; - -const int CSSM_KEYUSE_VERIFY = 8; - -const int CSSM_KEYUSE_VERIFY_RECOVER = 32; - -const int CSSM_KEYUSE_WRAP = 64; - -typedef CSSM_KEY_HIERARCHY = CSSM_BITMASK; - -const int CSSM_KEY_HIERARCHY_EXPORT = 2; - -const int CSSM_KEY_HIERARCHY_INTEG = 1; - -const int CSSM_KEY_HIERARCHY_NONE = 0; - -typedef CSSM_KEY_PTR = ffi.Pointer; -typedef CSSM_KEY_SIZE = cssm_key_size; -typedef CSSM_KEY_SIZE_PTR = ffi.Pointer; -typedef CSSM_KEY_TYPE = CSSM_ALGORITHMS; -typedef CSSM_KRSP_HANDLE = uint32; -typedef CSSM_KRSUBSERVICE = cssm_krsubservice; -typedef CSSM_KRSUBSERVICE_PTR = ffi.Pointer; - -const int CSSM_KR_BASE_ERROR = -2147407872; - -typedef CSSM_KR_NAME = cssm_kr_name; -typedef CSSM_KR_POLICY_FLAGS = uint32; -typedef CSSM_KR_POLICY_INFO = cssm_kr_policy_info; -typedef CSSM_KR_POLICY_INFO_PTR = ffi.Pointer; -typedef CSSM_KR_POLICY_LIST_ITEM = cssm_kr_policy_list_item; -typedef CSSM_KR_POLICY_LIST_ITEM_PTR = ffi.Pointer; -typedef CSSM_KR_POLICY_TYPE = uint32; - -const int CSSM_KR_PRIVATE_ERROR = -2147406848; - -typedef CSSM_KR_PROFILE = cssm_kr_profile; -typedef CSSM_KR_PROFILE_PTR = ffi.Pointer; -typedef CSSM_KR_WRAPPEDPRODUCT_INFO = cssm_kr_wrappedproductinfo; -typedef CSSM_KR_WRAPPEDPRODUCT_INFO_PTR = - ffi.Pointer; -typedef CSSM_LIST = cssm_list; -typedef CSSM_LIST_ELEMENT = cssm_list_element; - -const int CSSM_LIST_ELEMENT_DATUM = 0; - -typedef CSSM_LIST_ELEMENT_PTR = ffi.Pointer; - -const int CSSM_LIST_ELEMENT_SUBLIST = 1; - -typedef CSSM_LIST_ELEMENT_TYPE = uint32; -typedef CSSM_LIST_ELEMENT_TYPE_PTR = ffi.Pointer; - -const int CSSM_LIST_ELEMENT_WORDID = 2; - -typedef CSSM_LIST_PTR = ffi.Pointer; -typedef CSSM_LIST_TYPE = uint32; - -const int CSSM_LIST_TYPE_CUSTOM = 1; - -typedef CSSM_LIST_TYPE_PTR = ffi.Pointer; - -const int CSSM_LIST_TYPE_SEXPR = 2; - -const int CSSM_LIST_TYPE_UNKNOWN = 0; - -typedef CSSM_LONG_HANDLE = uint64; -typedef CSSM_LONG_HANDLE_PTR = ffi.Pointer; -typedef CSSM_MALLOC = ffi.Pointer>; -typedef CSSM_MALLOCFunction = - ffi.Pointer Function( - CSSM_SIZE size, - ffi.Pointer allocref, - ); -typedef DartCSSM_MALLOCFunction = - ffi.Pointer Function( - DartCSSM_SIZE size, - ffi.Pointer allocref, - ); -typedef CSSM_MANAGER_EVENT_NOTIFICATION = cssm_manager_event_notification; -typedef CSSM_MANAGER_EVENT_NOTIFICATION_PTR = - ffi.Pointer; -typedef CSSM_MANAGER_EVENT_TYPES = uint32; -typedef CSSM_MANAGER_REGISTRATION_INFO = cssm_manager_registration_info; -typedef CSSM_MANAGER_REGISTRATION_INFO_PTR = - ffi.Pointer; - -const int CSSM_MDS_BASE_ERROR = -2147414016; - -const int CSSM_MDS_PRIVATE_ERROR = -2147412992; - -typedef CSSM_MEMORY_FUNCS = cssm_memory_funcs; -typedef CSSM_MEMORY_FUNCS_PTR = ffi.Pointer; -typedef CSSM_MODULE_EVENT = uint32; -typedef CSSM_MODULE_EVENT_PTR = ffi.Pointer; -typedef CSSM_MODULE_FUNCS = cssm_module_funcs; -typedef CSSM_MODULE_FUNCS_PTR = ffi.Pointer; -typedef CSSM_MODULE_HANDLE = CSSM_HANDLE; -typedef CSSM_MODULE_HANDLE_PTR = ffi.Pointer; - -const int CSSM_MODULE_STRING_SIZE = 64; - -typedef CSSM_NAME_LIST = cssm_name_list; -typedef CSSM_NAME_LIST_PTR = ffi.Pointer; -typedef CSSM_NET_ADDRESS = cssm_net_address; -typedef CSSM_NET_ADDRESS_PTR = ffi.Pointer; -typedef CSSM_NET_ADDRESS_TYPE = uint32; -typedef CSSM_NET_PROTOCOL = uint32; - -const int CSSM_NET_PROTO_CMP = 10; - -const int CSSM_NET_PROTO_CMPS = 11; - -const int CSSM_NET_PROTO_CUSTOM = 1; - -const int CSSM_NET_PROTO_FTP = 7; - -const int CSSM_NET_PROTO_FTPS = 8; - -const int CSSM_NET_PROTO_LDAP = 3; - -const int CSSM_NET_PROTO_LDAPNS = 5; - -const int CSSM_NET_PROTO_LDAPS = 4; - -const int CSSM_NET_PROTO_NONE = 0; - -const int CSSM_NET_PROTO_OCSP = 9; - -const int CSSM_NET_PROTO_UNSPECIFIED = 2; - -const int CSSM_NET_PROTO_X500DAP = 6; - -const int CSSM_NOTIFY_FAULT = 3; - -const int CSSM_NOTIFY_INSERT = 1; - -const int CSSM_NOTIFY_REMOVE = 2; - -typedef CSSM_OID_PTR = ffi.Pointer; - -const int CSSM_OK = 0; - -typedef CSSM_PADDING = uint32; - -const int CSSM_PADDING_ALTERNATE = 4; - -const int CSSM_PADDING_APPLE_SSLv2 = -2147483648; - -const int CSSM_PADDING_CIPHERSTEALING = 8; - -const int CSSM_PADDING_CUSTOM = 1; - -const int CSSM_PADDING_FF = 5; - -const int CSSM_PADDING_NONE = 0; - -const int CSSM_PADDING_ONE = 3; - -const int CSSM_PADDING_PKCS1 = 10; - -const int CSSM_PADDING_PKCS5 = 6; - -const int CSSM_PADDING_PKCS7 = 7; - -const int CSSM_PADDING_RANDOM = 9; - -const int CSSM_PADDING_SIGRAW = 11; - -const int CSSM_PADDING_VENDOR_DEFINED = -2147483648; - -const int CSSM_PADDING_ZERO = 2; - -typedef CSSM_PARSED_CERT = cssm_parsed_cert; -typedef CSSM_PARSED_CERT_PTR = ffi.Pointer; -typedef CSSM_PARSED_CRL = cssm_parsed_crl; -typedef CSSM_PARSED_CRL_PTR = ffi.Pointer; -typedef CSSM_PKCS1_OAEP_PARAMS = cssm_pkcs1_oaep_params; -typedef CSSM_PKCS1_OAEP_PARAMS_PTR = ffi.Pointer; -typedef CSSM_PKCS5_PBKDF1_PARAMS = cssm_pkcs5_pbkdf1_params; -typedef CSSM_PKCS5_PBKDF1_PARAMS_PTR = ffi.Pointer; -typedef CSSM_PKCS5_PBKDF2_PARAMS = cssm_pkcs5_pbkdf2_params; -typedef CSSM_PKCS5_PBKDF2_PARAMS_PTR = ffi.Pointer; -typedef CSSM_PKCS5_PBKDF2_PRF = uint32; - -const int CSSM_PKCS5_PBKDF2_PRF_HMAC_SHA1 = 0; - -typedef CSSM_PKCS_OAEP_MGF = uint32; - -const int CSSM_PKCS_OAEP_MGF1_MD5 = 2; - -const int CSSM_PKCS_OAEP_MGF1_SHA1 = 1; - -const int CSSM_PKCS_OAEP_MGF_NONE = 0; - -typedef CSSM_PKCS_OAEP_PSOURCE = uint32; - -const int CSSM_PKCS_OAEP_PSOURCE_NONE = 0; - -const int CSSM_PKCS_OAEP_PSOURCE_Pspecified = 1; - -typedef CSSM_PRIVILEGE = uint64; -typedef CSSM_PRIVILEGE_SCOPE = uint32; - -const int CSSM_PRIVILEGE_SCOPE_NONE = 0; - -const int CSSM_PRIVILEGE_SCOPE_PROCESS = 1; - -const int CSSM_PRIVILEGE_SCOPE_THREAD = 2; - -typedef CSSM_PROC_ADDR = - ffi.Pointer>; -typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); -typedef DartCSSM_PROC_ADDRFunction = void Function(); -typedef CSSM_PROC_ADDR_PTR = ffi.Pointer; - -const int CSSM_PVC_APP = 1; - -typedef CSSM_PVC_MODE = CSSM_BITMASK; - -const int CSSM_PVC_NONE = 0; - -const int CSSM_PVC_SP = 2; - -typedef CSSM_QUERY = cssm_query; -typedef CSSM_QUERY_FLAGS = uint32; -typedef CSSM_QUERY_LIMITS = cssm_query_limits; -typedef CSSM_QUERY_LIMITS_PTR = ffi.Pointer; -typedef CSSM_QUERY_PTR = ffi.Pointer; - -const int CSSM_QUERY_RETURN_DATA = 1; - -const int CSSM_QUERY_SIZELIMIT_NONE = 0; - -typedef CSSM_QUERY_SIZE_DATA = cssm_query_size_data; -typedef CSSM_QUERY_SIZE_DATA_PTR = ffi.Pointer; - -const int CSSM_QUERY_TIMELIMIT_NONE = 0; - -typedef CSSM_RANGE = cssm_range; -typedef CSSM_RANGE_PTR = ffi.Pointer; -typedef CSSM_REALLOC = ffi.Pointer>; -typedef CSSM_REALLOCFunction = - ffi.Pointer Function( - ffi.Pointer memblock, - CSSM_SIZE size, - ffi.Pointer allocref, - ); -typedef DartCSSM_REALLOCFunction = - ffi.Pointer Function( - ffi.Pointer memblock, - DartCSSM_SIZE size, - ffi.Pointer allocref, - ); -typedef CSSM_RESOURCE_CONTROL_CONTEXT = cssm_resource_control_context; -typedef CSSM_RESOURCE_CONTROL_CONTEXT_PTR = - ffi.Pointer; -typedef CSSM_RETURN = sint32; -typedef CSSM_SAMPLE = cssm_sample; -typedef CSSM_SAMPLEGROUP = cssm_samplegroup; -typedef CSSM_SAMPLEGROUP_PTR = ffi.Pointer; -typedef CSSM_SAMPLE_PTR = ffi.Pointer; -typedef CSSM_SAMPLE_TYPE = CSSM_WORDID_TYPE; - -const int CSSM_SAMPLE_TYPE_ASYMMETRIC_KEY = 65547; - -const int CSSM_SAMPLE_TYPE_BIOMETRIC = 8; - -const int CSSM_SAMPLE_TYPE_COMMENT = 12; - -const int CSSM_SAMPLE_TYPE_HASHED_PASSWORD = 43; - -const int CSSM_SAMPLE_TYPE_KEYBAG_KEY = 65549; - -const int CSSM_SAMPLE_TYPE_KEYCHAIN_CHANGE_LOCK = 65538; - -const int CSSM_SAMPLE_TYPE_KEYCHAIN_LOCK = 65537; - -const int CSSM_SAMPLE_TYPE_KEYCHAIN_PROMPT = 65536; - -const int CSSM_SAMPLE_TYPE_PASSWORD = 79; - -const int CSSM_SAMPLE_TYPE_PREAUTH = 65545; - -const int CSSM_SAMPLE_TYPE_PROCESS = 65539; - -const int CSSM_SAMPLE_TYPE_PROMPTED_BIOMETRIC = 83; - -const int CSSM_SAMPLE_TYPE_PROMPTED_PASSWORD = 84; - -const int CSSM_SAMPLE_TYPE_PROTECTED_BIOMETRIC = 86; - -const int CSSM_SAMPLE_TYPE_PROTECTED_PASSWORD = 87; - -const int CSSM_SAMPLE_TYPE_RETRY_ID = 85; - -const int CSSM_SAMPLE_TYPE_SIGNED_NONCE = 117; - -const int CSSM_SAMPLE_TYPE_SIGNED_SECRET = 118; - -const int CSSM_SAMPLE_TYPE_SYMMETRIC_KEY = 65541; - -const int CSSM_SAMPLE_TYPE_THRESHOLD = 123; - -typedef CSSM_SC_FLAGS = uint32; -typedef CSSM_SELECTION_PREDICATE = cssm_selection_predicate; -typedef CSSM_SELECTION_PREDICATE_PTR = ffi.Pointer; - -const int CSSM_SERVICE_AC = 32; - -const int CSSM_SERVICE_CL = 8; - -const int CSSM_SERVICE_CSP = 2; - -const int CSSM_SERVICE_CSSM = 1; - -const int CSSM_SERVICE_DL = 4; - -const int CSSM_SERVICE_KR = 64; - -typedef CSSM_SERVICE_MASK = uint32; - -const int CSSM_SERVICE_TP = 16; - -typedef CSSM_SERVICE_TYPE = CSSM_SERVICE_MASK; -typedef CSSM_SIZE = ffi.Size; -typedef DartCSSM_SIZE = int; -typedef CSSM_SPI_AC_FUNCS = cssm_spi_ac_funcs; -typedef CSSM_SPI_AC_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SPI_CL_FUNCS = cssm_spi_cl_funcs; -typedef CSSM_SPI_CL_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SPI_CSP_FUNCS = cssm_spi_csp_funcs; -typedef CSSM_SPI_CSP_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SPI_DL_FUNCS = cssm_spi_dl_funcs; -typedef CSSM_SPI_DL_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SPI_KR_FUNCS = cssm_spi_kr_funcs; -typedef CSSM_SPI_KR_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SPI_ModuleEventHandler = - ffi.Pointer>; -typedef CSSM_SPI_ModuleEventHandlerFunction = - CSSM_RETURN Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - uint32 SubserviceId, - CSSM_SERVICE_TYPE ServiceType, - CSSM_MODULE_EVENT EventType, - ); -typedef DartCSSM_SPI_ModuleEventHandlerFunction = - Dartsint32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - Dartuint32 SubserviceId, - Dartuint32 ServiceType, - Dartuint32 EventType, - ); -typedef CSSM_SPI_TP_FUNCS = cssm_spi_tp_funcs; -typedef CSSM_SPI_TP_FUNCS_PTR = ffi.Pointer; -typedef CSSM_STATE_FUNCS = cssm_state_funcs; -typedef CSSM_STATE_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SUBSERVICE_UID = cssm_subservice_uid; -typedef CSSM_SUBSERVICE_UID_PTR = ffi.Pointer; -typedef CSSM_TIMESTRING = ffi.Pointer; -typedef CSSM_TP_ACTION = uint32; - -const int CSSM_TP_ACTION_ALLOW_EXPIRED = 1; - -const int CSSM_TP_ACTION_ALLOW_EXPIRED_ROOT = 8; - -const int CSSM_TP_ACTION_CRL_SUFFICIENT = 4; - -const int CSSM_TP_ACTION_DEFAULT = 0; - -const int CSSM_TP_ACTION_FETCH_CERT_FROM_NET = 4; - -const int CSSM_TP_ACTION_FETCH_CRL_FROM_NET = 2; - -const int CSSM_TP_ACTION_IMPLICIT_ANCHORS = 64; - -const int CSSM_TP_ACTION_LEAF_IS_CA = 2; - -const int CSSM_TP_ACTION_REQUIRE_CRL_IF_PRESENT = 8; - -const int CSSM_TP_ACTION_REQUIRE_CRL_PER_CERT = 1; - -const int CSSM_TP_ACTION_REQUIRE_REV_PER_CERT = 16; - -const int CSSM_TP_ACTION_TRUST_SETTINGS = 32; - -typedef CSSM_TP_APPLE_CERT_STATUS = uint32; - -final class CSSM_TP_APPLE_EVIDENCE_HEADER extends ffi.Struct { - @uint32() - external int Version; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Version, - }) => $allocator()..ref.Version = Version; -} - -@Deprecated('Deprecated') -final class CSSM_TP_APPLE_EVIDENCE_INFO extends ffi.Struct { - @CSSM_TP_APPLE_CERT_STATUS() - external int StatusBits; - - @uint32() - external int NumStatusCodes; - - external ffi.Pointer StatusCodes; - - @uint32() - external int Index; - - external CSSM_DL_DB_HANDLE DlDbHandle; - - external CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord; -} - -typedef CSSM_TP_AUTHORITY_ID = cssm_tp_authority_id; -typedef CSSM_TP_AUTHORITY_ID_PTR = ffi.Pointer; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTISSUE = 1; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTNOTARIZE = 6; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTRESUME = 4; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTREVOKE = 2; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTSUSPEND = 3; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTUSERECOVER = 7; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTVERIFY = 5; - -const int CSSM_TP_AUTHORITY_REQUEST_CRLISSUE = 256; - -typedef CSSM_TP_AUTHORITY_REQUEST_TYPE = uint32; -typedef CSSM_TP_AUTHORITY_REQUEST_TYPE_PTR = ffi.Pointer; - -const int CSSM_TP_BASE_ERROR = -2147409920; - -const int CSSM_TP_BASE_TP_ERROR = -2147409664; - -typedef CSSM_TP_CALLERAUTH_CONTEXT = cssm_tp_callerauth_context; -typedef CSSM_TP_CALLERAUTH_CONTEXT_PTR = - ffi.Pointer; -typedef CSSM_TP_CERTCHANGE_ACTION = uint32; - -const int CSSM_TP_CERTCHANGE_HOLD = 2; - -typedef CSSM_TP_CERTCHANGE_INPUT = cssm_tp_certchange_input; -typedef CSSM_TP_CERTCHANGE_INPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTCHANGE_NONE = 0; - -const int CSSM_TP_CERTCHANGE_NOT_AUTHORIZED = 5; - -const int CSSM_TP_CERTCHANGE_OK = 1; - -const int CSSM_TP_CERTCHANGE_OKWITHNEWTIME = 2; - -typedef CSSM_TP_CERTCHANGE_OUTPUT = cssm_tp_certchange_output; -typedef CSSM_TP_CERTCHANGE_OUTPUT_PTR = ffi.Pointer; -typedef CSSM_TP_CERTCHANGE_REASON = uint32; - -const int CSSM_TP_CERTCHANGE_REASON_AFFILIATIONCHANGE = 4; - -const int CSSM_TP_CERTCHANGE_REASON_CACOMPROMISE = 2; - -const int CSSM_TP_CERTCHANGE_REASON_CEASEOPERATION = 3; - -const int CSSM_TP_CERTCHANGE_REASON_HOLDRELEASE = 7; - -const int CSSM_TP_CERTCHANGE_REASON_KEYCOMPROMISE = 1; - -const int CSSM_TP_CERTCHANGE_REASON_SUPERCEDED = 5; - -const int CSSM_TP_CERTCHANGE_REASON_SUSPECTEDCOMPROMISE = 6; - -const int CSSM_TP_CERTCHANGE_REASON_UNKNOWN = 0; - -const int CSSM_TP_CERTCHANGE_REJECTED = 4; - -const int CSSM_TP_CERTCHANGE_RELEASE = 3; - -const int CSSM_TP_CERTCHANGE_REVOKE = 1; - -typedef CSSM_TP_CERTCHANGE_STATUS = uint32; - -const int CSSM_TP_CERTCHANGE_STATUS_UNKNOWN = 0; - -const int CSSM_TP_CERTCHANGE_WRONGCA = 3; - -typedef CSSM_TP_CERTISSUE_INPUT = cssm_tp_certissue_input; -typedef CSSM_TP_CERTISSUE_INPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTISSUE_NOT_AUTHORIZED = 5; - -const int CSSM_TP_CERTISSUE_OK = 1; - -const int CSSM_TP_CERTISSUE_OKWITHCERTMODS = 2; - -const int CSSM_TP_CERTISSUE_OKWITHSERVICEMODS = 3; - -typedef CSSM_TP_CERTISSUE_OUTPUT = cssm_tp_certissue_output; -typedef CSSM_TP_CERTISSUE_OUTPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTISSUE_REJECTED = 4; - -typedef CSSM_TP_CERTISSUE_STATUS = uint32; - -const int CSSM_TP_CERTISSUE_STATUS_UNKNOWN = 0; - -const int CSSM_TP_CERTISSUE_WILL_BE_REVOKED = 6; - -typedef CSSM_TP_CERTNOTARIZE_INPUT = cssm_tp_certnotarize_input; -typedef CSSM_TP_CERTNOTARIZE_INPUT_PTR = - ffi.Pointer; - -const int CSSM_TP_CERTNOTARIZE_NOT_AUTHORIZED = 5; - -const int CSSM_TP_CERTNOTARIZE_OK = 1; - -const int CSSM_TP_CERTNOTARIZE_OKWITHOUTFIELDS = 2; - -const int CSSM_TP_CERTNOTARIZE_OKWITHSERVICEMODS = 3; - -typedef CSSM_TP_CERTNOTARIZE_OUTPUT = cssm_tp_certnotarize_output; -typedef CSSM_TP_CERTNOTARIZE_OUTPUT_PTR = - ffi.Pointer; - -const int CSSM_TP_CERTNOTARIZE_REJECTED = 4; - -typedef CSSM_TP_CERTNOTARIZE_STATUS = uint32; - -const int CSSM_TP_CERTNOTARIZE_STATUS_UNKNOWN = 0; - -typedef CSSM_TP_CERTRECLAIM_INPUT = cssm_tp_certreclaim_input; -typedef CSSM_TP_CERTRECLAIM_INPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTRECLAIM_NOMATCH = 2; - -const int CSSM_TP_CERTRECLAIM_NOT_AUTHORIZED = 4; - -const int CSSM_TP_CERTRECLAIM_OK = 1; - -typedef CSSM_TP_CERTRECLAIM_OUTPUT = cssm_tp_certreclaim_output; -typedef CSSM_TP_CERTRECLAIM_OUTPUT_PTR = - ffi.Pointer; - -const int CSSM_TP_CERTRECLAIM_REJECTED = 3; - -typedef CSSM_TP_CERTRECLAIM_STATUS = uint32; - -const int CSSM_TP_CERTRECLAIM_STATUS_UNKNOWN = 0; - -const int CSSM_TP_CERTVERIFY_EXPIRED = 5; - -typedef CSSM_TP_CERTVERIFY_INPUT = cssm_tp_certverify_input; -typedef CSSM_TP_CERTVERIFY_INPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTVERIFY_INVALID = 2; - -const int CSSM_TP_CERTVERIFY_INVALID_AUTHORITY = 7; - -const int CSSM_TP_CERTVERIFY_INVALID_BASIC_CONSTRAINTS = 13; - -const int CSSM_TP_CERTVERIFY_INVALID_CERTGROUP = 10; - -const int CSSM_TP_CERTVERIFY_INVALID_CERT_VALUE = 9; - -const int CSSM_TP_CERTVERIFY_INVALID_CRL_DIST_PT = 14; - -const int CSSM_TP_CERTVERIFY_INVALID_NAME_TREE = 15; - -const int CSSM_TP_CERTVERIFY_INVALID_POLICY = 11; - -const int CSSM_TP_CERTVERIFY_INVALID_POLICY_IDS = 12; - -const int CSSM_TP_CERTVERIFY_INVALID_SIGNATURE = 8; - -const int CSSM_TP_CERTVERIFY_NOT_VALID_YET = 6; - -typedef CSSM_TP_CERTVERIFY_OUTPUT = cssm_tp_certverify_output; -typedef CSSM_TP_CERTVERIFY_OUTPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTVERIFY_REVOKED = 3; - -typedef CSSM_TP_CERTVERIFY_STATUS = uint32; - -const int CSSM_TP_CERTVERIFY_SUSPENDED = 4; - -const int CSSM_TP_CERTVERIFY_UNKNOWN = 0; - -const int CSSM_TP_CERTVERIFY_UNKNOWN_CRITICAL_EXT = 16; - -const int CSSM_TP_CERTVERIFY_VALID = 1; - -const int CSSM_TP_CERT_DIR_UPDATE = 8; - -const int CSSM_TP_CERT_NOTIFY_RENEW = 4; - -const int CSSM_TP_CERT_PUBLISH = 2; - -const int CSSM_TP_CONFIRM_ACCEPT = 1; - -const int CSSM_TP_CONFIRM_REJECT = 2; - -typedef CSSM_TP_CONFIRM_RESPONSE = cssm_tp_confirm_response; -typedef CSSM_TP_CONFIRM_RESPONSE_PTR = ffi.Pointer; -typedef CSSM_TP_CONFIRM_STATUS = uint32; -typedef CSSM_TP_CONFIRM_STATUS_PTR = ffi.Pointer; - -const int CSSM_TP_CONFIRM_STATUS_UNKNOWN = 0; - -typedef CSSM_TP_CRLISSUE_INPUT = cssm_tp_crlissue_input; -typedef CSSM_TP_CRLISSUE_INPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CRLISSUE_INVALID_DOMAIN = 3; - -const int CSSM_TP_CRLISSUE_NOT_AUTHORIZED = 6; - -const int CSSM_TP_CRLISSUE_NOT_CURRENT = 2; - -const int CSSM_TP_CRLISSUE_OK = 1; - -typedef CSSM_TP_CRLISSUE_OUTPUT = cssm_tp_crlissue_output; -typedef CSSM_TP_CRLISSUE_OUTPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CRLISSUE_REJECTED = 5; - -typedef CSSM_TP_CRLISSUE_STATUS = uint32; - -const int CSSM_TP_CRLISSUE_STATUS_UNKNOWN = 0; - -const int CSSM_TP_CRLISSUE_UNKNOWN_IDENTIFIER = 4; - -const int CSSM_TP_CRL_DISTRIBUTE = 16; - -typedef CSSM_TP_FORM_TYPE = uint32; - -const int CSSM_TP_FORM_TYPE_GENERIC = 0; - -const int CSSM_TP_FORM_TYPE_REGISTRATION = 1; - -typedef CSSM_TP_HANDLE = CSSM_MODULE_HANDLE; - -const int CSSM_TP_KEY_ARCHIVE = 1; - -typedef CSSM_TP_POLICYINFO = cssm_tp_policyinfo; -typedef CSSM_TP_POLICYINFO_PTR = ffi.Pointer; - -const int CSSM_TP_PRIVATE_ERROR = -2147408896; - -typedef CSSM_TP_REQUEST_SET = cssm_tp_request_set; -typedef CSSM_TP_REQUEST_SET_PTR = ffi.Pointer; -typedef CSSM_TP_RESULT_SET = cssm_tp_result_set; -typedef CSSM_TP_RESULT_SET_PTR = ffi.Pointer; -typedef CSSM_TP_SERVICES = uint32; -typedef CSSM_TP_STOP_ON = uint32; - -const int CSSM_TP_STOP_ON_FIRST_FAIL = 3; - -const int CSSM_TP_STOP_ON_FIRST_PASS = 2; - -const int CSSM_TP_STOP_ON_NONE = 1; - -const int CSSM_TP_STOP_ON_POLICY = 0; - -typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACK = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = - CSSM_RETURN Function( - CSSM_MODULE_HANDLE ModuleHandle, - ffi.Pointer CallerCtx, - CSSM_DATA_PTR VerifiedCert, - ); -typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = - Dartsint32 Function( - DartCSSM_INTPTR ModuleHandle, - ffi.Pointer CallerCtx, - CSSM_DATA_PTR VerifiedCert, - ); -typedef CSSM_TP_VERIFY_CONTEXT = cssm_tp_verify_context; -typedef CSSM_TP_VERIFY_CONTEXT_PTR = ffi.Pointer; -typedef CSSM_TP_VERIFY_CONTEXT_RESULT = cssm_tp_verify_context_result; -typedef CSSM_TP_VERIFY_CONTEXT_RESULT_PTR = - ffi.Pointer; - -const int CSSM_TRUE = 1; - -@Deprecated('Deprecated') -final class CSSM_TUPLE extends ffi.Struct { - external CSSM_LIST Issuer; - - external CSSM_LIST Subject; - - @CSSM_BOOL() - external int Delegate; - - external CSSM_LIST AuthorizationTag; - - external CSSM_LIST ValidityPeriod; -} - -typedef CSSM_TUPLEGROUP = cssm_tuplegroup; -typedef CSSM_TUPLEGROUP_PTR = ffi.Pointer; -typedef CSSM_TUPLE_PTR = ffi.Pointer; -typedef CSSM_UPCALLS = cssm_upcalls; -typedef CSSM_UPCALLS_CALLOC = - ffi.Pointer>; -typedef CSSM_UPCALLS_CALLOCFunction = - ffi.Pointer Function( - CSSM_HANDLE AddInHandle, - ffi.Size num, - ffi.Size size, - ); -typedef DartCSSM_UPCALLS_CALLOCFunction = - ffi.Pointer Function( - DartCSSM_INTPTR AddInHandle, - int num, - int size, - ); -typedef CSSM_UPCALLS_FREE = - ffi.Pointer>; -typedef CSSM_UPCALLS_FREEFunction = - ffi.Void Function(CSSM_HANDLE AddInHandle, ffi.Pointer memblock); -typedef DartCSSM_UPCALLS_FREEFunction = - void Function(DartCSSM_INTPTR AddInHandle, ffi.Pointer memblock); -typedef CSSM_UPCALLS_MALLOC = - ffi.Pointer>; -typedef CSSM_UPCALLS_MALLOCFunction = - ffi.Pointer Function(CSSM_HANDLE AddInHandle, ffi.Size size); -typedef DartCSSM_UPCALLS_MALLOCFunction = - ffi.Pointer Function(DartCSSM_INTPTR AddInHandle, int size); -typedef CSSM_UPCALLS_PTR = ffi.Pointer; -typedef CSSM_UPCALLS_REALLOC = - ffi.Pointer>; -typedef CSSM_UPCALLS_REALLOCFunction = - ffi.Pointer Function( - CSSM_HANDLE AddInHandle, - ffi.Pointer memblock, - ffi.Size size, - ); -typedef DartCSSM_UPCALLS_REALLOCFunction = - ffi.Pointer Function( - DartCSSM_INTPTR AddInHandle, - ffi.Pointer memblock, - int size, - ); - -const int CSSM_USEE_AUTHENTICATION = 6; - -const int CSSM_USEE_DOMESTIC = 1; - -const int CSSM_USEE_FINANCIAL = 2; - -const int CSSM_USEE_INSURANCE = 9; - -const int CSSM_USEE_KEYEXCH = 7; - -const int CSSM_USEE_KRENT = 4; - -const int CSSM_USEE_KRLE = 3; - -const int CSSM_USEE_LAST = 255; - -const int CSSM_USEE_MEDICAL = 8; - -const int CSSM_USEE_NONE = 0; - -const int CSSM_USEE_SSL = 5; - -typedef CSSM_USEE_TAG = CSSM_PRIVILEGE; - -const int CSSM_USEE_WEAK = 10; - -const int CSSM_VALUE_NOT_AVAILABLE = -1; - -typedef CSSM_VERSION = cssm_version; -typedef CSSM_VERSION_PTR = ffi.Pointer; - -const int CSSM_WORDID_A = 2; - -const int CSSM_WORDID_ACL = 3; - -const int CSSM_WORDID_ALPHA = 4; - -const int CSSM_WORDID_ASYMMETRIC_KEY = 65547; - -const int CSSM_WORDID_B = 5; - -const int CSSM_WORDID_BER = 6; - -const int CSSM_WORDID_BINARY = 7; - -const int CSSM_WORDID_BIOMETRIC = 8; - -const int CSSM_WORDID_C = 9; - -const int CSSM_WORDID_CANCELED = 10; - -const int CSSM_WORDID_CERT = 11; - -const int CSSM_WORDID_COMMENT = 12; - -const int CSSM_WORDID_CRL = 13; - -const int CSSM_WORDID_CUSTOM = 14; - -const int CSSM_WORDID_D = 15; - -const int CSSM_WORDID_DATE = 16; - -const int CSSM_WORDID_DBS_CREATE = 22; - -const int CSSM_WORDID_DBS_DELETE = 23; - -const int CSSM_WORDID_DB_DELETE = 17; - -const int CSSM_WORDID_DB_EXEC_STORED_QUERY = 18; - -const int CSSM_WORDID_DB_INSERT = 19; - -const int CSSM_WORDID_DB_MODIFY = 20; - -const int CSSM_WORDID_DB_READ = 21; - -const int CSSM_WORDID_DECRYPT = 24; - -const int CSSM_WORDID_DELETE = 25; - -const int CSSM_WORDID_DELTA_CRL = 26; - -const int CSSM_WORDID_DER = 27; - -const int CSSM_WORDID_DERIVE = 28; - -const int CSSM_WORDID_DISPLAY = 29; - -const int CSSM_WORDID_DO = 30; - -const int CSSM_WORDID_DSA = 31; - -const int CSSM_WORDID_DSA_SHA1 = 32; - -const int CSSM_WORDID_E = 33; - -const int CSSM_WORDID_ELGAMAL = 34; - -const int CSSM_WORDID_ENCRYPT = 35; - -const int CSSM_WORDID_ENTRY = 36; - -const int CSSM_WORDID_EXPORT_CLEAR = 37; - -const int CSSM_WORDID_EXPORT_WRAPPED = 38; - -const int CSSM_WORDID_G = 39; - -const int CSSM_WORDID_GE = 40; - -const int CSSM_WORDID_GENKEY = 41; - -const int CSSM_WORDID_HASH = 42; - -const int CSSM_WORDID_HASHED_PASSWORD = 43; - -const int CSSM_WORDID_HASHED_SUBJECT = 44; - -const int CSSM_WORDID_HAVAL = 45; - -const int CSSM_WORDID_IBCHASH = 46; - -const int CSSM_WORDID_IMPORT_CLEAR = 47; - -const int CSSM_WORDID_IMPORT_WRAPPED = 48; - -const int CSSM_WORDID_INTEL = 49; - -const int CSSM_WORDID_ISSUER = 50; - -const int CSSM_WORDID_ISSUER_INFO = 51; - -const int CSSM_WORDID_KEA = 53; - -const int CSSM_WORDID_KEY = 65543; - -const int CSSM_WORDID_KEYBAG_KEY = 65549; - -const int CSSM_WORDID_KEYCHAIN_CHANGE_LOCK = 65538; - -const int CSSM_WORDID_KEYCHAIN_LOCK = 65537; - -const int CSSM_WORDID_KEYCHAIN_PROMPT = 65536; - -const int CSSM_WORDID_KEYHOLDER = 54; - -const int CSSM_WORDID_K_OF_N = 52; - -const int CSSM_WORDID_L = 55; - -const int CSSM_WORDID_LE = 56; - -const int CSSM_WORDID_LOGIN = 57; - -const int CSSM_WORDID_LOGIN_NAME = 58; - -const int CSSM_WORDID_MAC = 59; - -const int CSSM_WORDID_MD2 = 60; - -const int CSSM_WORDID_MD2WITHRSA = 61; - -const int CSSM_WORDID_MD4 = 62; - -const int CSSM_WORDID_MD5 = 63; - -const int CSSM_WORDID_MD5WITHRSA = 64; - -const int CSSM_WORDID_N = 65; - -const int CSSM_WORDID_NAME = 66; - -const int CSSM_WORDID_NDR = 67; - -const int CSSM_WORDID_NHASH = 68; - -const int CSSM_WORDID_NOT_AFTER = 69; - -const int CSSM_WORDID_NOT_BEFORE = 70; - -const int CSSM_WORDID_NULL = 71; - -const int CSSM_WORDID_NUMERIC = 72; - -const int CSSM_WORDID_OBJECT_HASH = 73; - -const int CSSM_WORDID_ONE_TIME = 74; - -const int CSSM_WORDID_ONLINE = 75; - -const int CSSM_WORDID_OWNER = 76; - -const int CSSM_WORDID_P = 77; - -const int CSSM_WORDID_PAM_NAME = 78; - -const int CSSM_WORDID_PARTITION = 65548; - -const int CSSM_WORDID_PASSWORD = 79; - -const int CSSM_WORDID_PGP = 80; - -const int CSSM_WORDID_PIN = 65544; - -const int CSSM_WORDID_PREAUTH = 65545; - -const int CSSM_WORDID_PREAUTH_SOURCE = 65546; - -const int CSSM_WORDID_PREFIX = 81; - -const int CSSM_WORDID_PRIVATE_KEY = 82; - -const int CSSM_WORDID_PROCESS = 65539; - -const int CSSM_WORDID_PROMPTED_BIOMETRIC = 83; - -const int CSSM_WORDID_PROMPTED_PASSWORD = 84; - -const int CSSM_WORDID_PROPAGATE = 85; - -const int CSSM_WORDID_PROTECTED_BIOMETRIC = 86; - -const int CSSM_WORDID_PROTECTED_PASSWORD = 87; - -const int CSSM_WORDID_PROTECTED_PIN = 88; - -const int CSSM_WORDID_PUBLIC_KEY = 89; - -const int CSSM_WORDID_PUBLIC_KEY_FROM_CERT = 90; - -const int CSSM_WORDID_Q = 91; - -const int CSSM_WORDID_RANGE = 92; - -const int CSSM_WORDID_REVAL = 93; - -const int CSSM_WORDID_RIPEMAC = 94; - -const int CSSM_WORDID_RIPEMD = 95; - -const int CSSM_WORDID_RIPEMD160 = 96; - -const int CSSM_WORDID_RSA = 97; - -const int CSSM_WORDID_RSA_ISO9796 = 98; - -const int CSSM_WORDID_RSA_PKCS = 99; - -const int CSSM_WORDID_RSA_PKCS1 = 102; - -const int CSSM_WORDID_RSA_PKCS1_MD5 = 103; - -const int CSSM_WORDID_RSA_PKCS1_SHA1 = 104; - -const int CSSM_WORDID_RSA_PKCS1_SIG = 105; - -const int CSSM_WORDID_RSA_PKCS_MD5 = 100; - -const int CSSM_WORDID_RSA_PKCS_SHA1 = 101; - -const int CSSM_WORDID_RSA_RAW = 106; - -const int CSSM_WORDID_SDSIV1 = 107; - -const int CSSM_WORDID_SEQUENCE = 108; - -const int CSSM_WORDID_SET = 109; - -const int CSSM_WORDID_SEXPR = 110; - -const int CSSM_WORDID_SHA1 = 111; - -const int CSSM_WORDID_SHA1WITHDSA = 112; - -const int CSSM_WORDID_SHA1WITHECDSA = 113; - -const int CSSM_WORDID_SHA1WITHRSA = 114; - -const int CSSM_WORDID_SIGN = 115; - -const int CSSM_WORDID_SIGNATURE = 116; - -const int CSSM_WORDID_SIGNED_NONCE = 117; - -const int CSSM_WORDID_SIGNED_SECRET = 118; - -const int CSSM_WORDID_SPKI = 119; - -const int CSSM_WORDID_SUBJECT = 120; - -const int CSSM_WORDID_SUBJECT_INFO = 121; - -const int CSSM_WORDID_SYMMETRIC_KEY = 65541; - -const int CSSM_WORDID_SYSTEM = 65542; - -const int CSSM_WORDID_TAG = 122; - -const int CSSM_WORDID_THRESHOLD = 123; - -const int CSSM_WORDID_TIME = 124; - -typedef CSSM_WORDID_TYPE = sint32; - -const int CSSM_WORDID_URI = 125; - -const int CSSM_WORDID_VENDOR_END = 2147418112; - -const int CSSM_WORDID_VENDOR_START = 65536; - -const int CSSM_WORDID_VERSION = 126; - -const int CSSM_WORDID_X509V1 = 128; - -const int CSSM_WORDID_X509V2 = 129; - -const int CSSM_WORDID_X509V3 = 130; - -const int CSSM_WORDID_X509_ATTRIBUTE = 127; - -const int CSSM_WORDID_X9_ATTRIBUTE = 131; - -const int CSSM_WORDID__FIRST_UNUSED = 65550; - -const int CSSM_WORDID__NLU_ = 0; - -const int CSSM_WORDID__RESERVED_1 = 65540; - -const int CSSM_WORDID__STAR_ = 1; - -const int CSSM_WORDID__UNK_ = -1; - -typedef CSSM_WRAP_KEY = CSSM_KEY; -typedef CSSM_WRAP_KEY_PTR = ffi.Pointer; -typedef CSSM_X509EXT_BASICCONSTRAINTS = cssm_x509ext_basicConstraints; -typedef CSSM_X509EXT_BASICCONSTRAINTS_PTR = - ffi.Pointer; -typedef CSSM_X509EXT_PAIR = cssm_x509ext_pair; -typedef CSSM_X509EXT_PAIR_PTR = ffi.Pointer; -typedef CSSM_X509EXT_POLICYINFO = cssm_x509ext_policyInfo; -typedef CSSM_X509EXT_POLICYINFO_PTR = ffi.Pointer; -typedef CSSM_X509EXT_POLICYQUALIFIERINFO = cssm_x509ext_policyQualifierInfo; -typedef CSSM_X509EXT_POLICYQUALIFIERINFO_PTR = - ffi.Pointer; -typedef CSSM_X509EXT_POLICYQUALIFIERS = cssm_x509ext_policyQualifiers; -typedef CSSM_X509EXT_POLICYQUALIFIERS_PTR = - ffi.Pointer; -typedef CSSM_X509EXT_TAGandVALUE = cssm_x509_extensionTagAndValue; -typedef CSSM_X509EXT_TAGandVALUE_PTR = - ffi.Pointer; -typedef CSSM_X509_ALGORITHM_IDENTIFIER_PTR = ffi.Pointer; -typedef CSSM_X509_EXTENSION = cssm_x509_extension; -typedef CSSM_X509_EXTENSIONS = cssm_x509_extensions; -typedef CSSM_X509_EXTENSIONS_PTR = ffi.Pointer; -typedef CSSM_X509_EXTENSION_PTR = ffi.Pointer; -typedef CSSM_X509_NAME = cssm_x509_name; -typedef CSSM_X509_NAME_PTR = ffi.Pointer; -typedef CSSM_X509_OPTION = CSSM_BOOL; -typedef CSSM_X509_RDN = cssm_x509_rdn; -typedef CSSM_X509_RDN_PTR = ffi.Pointer; -typedef CSSM_X509_REVOKED_CERT_ENTRY = cssm_x509_revoked_cert_entry; -typedef CSSM_X509_REVOKED_CERT_ENTRY_PTR = - ffi.Pointer; -typedef CSSM_X509_REVOKED_CERT_LIST = cssm_x509_revoked_cert_list; -typedef CSSM_X509_REVOKED_CERT_LIST_PTR = - ffi.Pointer; -typedef CSSM_X509_SIGNATURE = cssm_x509_signature; -typedef CSSM_X509_SIGNATURE_PTR = ffi.Pointer; -typedef CSSM_X509_SIGNED_CERTIFICATE = cssm_x509_signed_certificate; -typedef CSSM_X509_SIGNED_CERTIFICATE_PTR = - ffi.Pointer; -typedef CSSM_X509_SIGNED_CRL = cssm_x509_signed_crl; -typedef CSSM_X509_SIGNED_CRL_PTR = ffi.Pointer; -typedef CSSM_X509_SUBJECT_PUBLIC_KEY_INFO_PTR = ffi.Pointer; -typedef CSSM_X509_TBS_CERTIFICATE = cssm_x509_tbs_certificate; -typedef CSSM_X509_TBS_CERTIFICATE_PTR = ffi.Pointer; -typedef CSSM_X509_TBS_CERTLIST = cssm_x509_tbs_certlist; -typedef CSSM_X509_TBS_CERTLIST_PTR = ffi.Pointer; -typedef CSSM_X509_TIME = cssm_x509_time; -typedef CSSM_X509_TIME_PTR = ffi.Pointer; -typedef CSSM_X509_TYPE_VALUE_PAIR = cssm_x509_type_value_pair; -typedef CSSM_X509_TYPE_VALUE_PAIR_PTR = ffi.Pointer; -typedef CSSM_X509_VALIDITY = x509_validity; -typedef CSSM_X509_VALIDITY_PTR = ffi.Pointer; - -const int CS_MAX_PATH = 1024; - -/// CTAdaptiveImageProviding -extension type CTAdaptiveImageProviding._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [CTAdaptiveImageProviding] that points to the same underlying object as [other]. - CTAdaptiveImageProviding.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [CTAdaptiveImageProviding] that wraps the given raw object pointer. - CTAdaptiveImageProviding.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [CTAdaptiveImageProviding]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_CTAdaptiveImageProviding, - ); - } -} - -extension CTAdaptiveImageProviding$Methods on CTAdaptiveImageProviding { - /// imageForProposedSize:scaleFactor:imageOffset:imageSize: - CGImageRef imageForProposedSize( - objc.CGSize proposedSize, { - required DartCGFloat scaleFactor, - required ffi.Pointer imageOffset, - required ffi.Pointer imageSize, - }) { - final _$$ref = object$.ref; - return _objc_msgSend_16t7zr0( - _$$ref.pointer, - _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, - proposedSize, - scaleFactor, - imageOffset, - imageSize, - ); - } -} - -interface class CTAdaptiveImageProviding$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_CTAdaptiveImageProviding.cast()); - - /// Builds an object that implements the CTAdaptiveImageProviding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static CTAdaptiveImageProviding implement({ - required CGImageRef Function( - objc.CGSize, - DartCGFloat, - ffi.Pointer, - ffi.Pointer, - ) - imageForProposedSize_scaleFactor_imageOffset_imageSize_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'CTAdaptiveImageProviding', - ); - CTAdaptiveImageProviding$Builder - .imageForProposedSize_scaleFactor_imageOffset_imageSize_ - .implement( - builder, - imageForProposedSize_scaleFactor_imageOffset_imageSize_, - ); - builder.addProtocol($protocol); - return CTAdaptiveImageProviding.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the CTAdaptiveImageProviding protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required CGImageRef Function( - objc.CGSize, - DartCGFloat, - ffi.Pointer, - ffi.Pointer, - ) - imageForProposedSize_scaleFactor_imageOffset_imageSize_, - bool $keepIsolateAlive = true, - }) { - CTAdaptiveImageProviding$Builder - .imageForProposedSize_scaleFactor_imageOffset_imageSize_ - .implement( - builder, - imageForProposedSize_scaleFactor_imageOffset_imageSize_, - ); - builder.addProtocol($protocol); - } - - /// imageForProposedSize:scaleFactor:imageOffset:imageSize: - static final imageForProposedSize_scaleFactor_imageOffset_imageSize_ = - objc.ObjCProtocolMethod< - CGImageRef Function( - objc.CGSize, - DartCGFloat, - ffi.Pointer, - ffi.Pointer, - ) - >( - _protocol_CTAdaptiveImageProviding, - _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, - ffi.Native.addressOf< - ffi.NativeFunction< - CGImageRef Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - CGFloat, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_yl33bh) - .cast(), - objc.getProtocolMethodSignature( - _protocol_CTAdaptiveImageProviding, - _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, - isRequired: true, - isInstanceMethod: true, - ), - ( - CGImageRef Function( - objc.CGSize, - DartCGFloat, - ffi.Pointer, - ffi.Pointer, - ) - func, - ) => - ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize.fromFunction( - ( - ffi.Pointer _, - objc.CGSize arg1, - DartCGFloat arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); -} - -enum CTCharacterCollection { - kCTCharacterCollectionIdentityMapping(0), - kCTCharacterCollectionAdobeCNS1(1), - kCTCharacterCollectionAdobeGB1(2), - kCTCharacterCollectionAdobeJapan1(3), - kCTCharacterCollectionAdobeJapan2(4), - kCTCharacterCollectionAdobeKorea1(5); - - static const kCTIdentityMappingCharacterCollection = - kCTCharacterCollectionIdentityMapping; - static const kCTAdobeCNS1CharacterCollection = - kCTCharacterCollectionAdobeCNS1; - static const kCTAdobeGB1CharacterCollection = kCTCharacterCollectionAdobeGB1; - static const kCTAdobeJapan1CharacterCollection = - kCTCharacterCollectionAdobeJapan1; - static const kCTAdobeJapan2CharacterCollection = - kCTCharacterCollectionAdobeJapan2; - static const kCTAdobeKorea1CharacterCollection = - kCTCharacterCollectionAdobeKorea1; - - final int value; - const CTCharacterCollection(this.value); - - static CTCharacterCollection fromValue(int value) => switch (value) { - 0 => kCTCharacterCollectionIdentityMapping, - 1 => kCTCharacterCollectionAdobeCNS1, - 2 => kCTCharacterCollectionAdobeGB1, - 3 => kCTCharacterCollectionAdobeJapan1, - 4 => kCTCharacterCollectionAdobeJapan2, - 5 => kCTCharacterCollectionAdobeKorea1, - _ => throw ArgumentError('Unknown value for CTCharacterCollection: $value'), - }; - - @override - String toString() { - if (this == kCTCharacterCollectionIdentityMapping) - return "CTCharacterCollection.kCTCharacterCollectionIdentityMapping, CTCharacterCollection.kCTIdentityMappingCharacterCollection"; - if (this == kCTCharacterCollectionAdobeCNS1) - return "CTCharacterCollection.kCTCharacterCollectionAdobeCNS1, CTCharacterCollection.kCTAdobeCNS1CharacterCollection"; - if (this == kCTCharacterCollectionAdobeGB1) - return "CTCharacterCollection.kCTCharacterCollectionAdobeGB1, CTCharacterCollection.kCTAdobeGB1CharacterCollection"; - if (this == kCTCharacterCollectionAdobeJapan1) - return "CTCharacterCollection.kCTCharacterCollectionAdobeJapan1, CTCharacterCollection.kCTAdobeJapan1CharacterCollection"; - if (this == kCTCharacterCollectionAdobeJapan2) - return "CTCharacterCollection.kCTCharacterCollectionAdobeJapan2, CTCharacterCollection.kCTAdobeJapan2CharacterCollection"; - if (this == kCTCharacterCollectionAdobeKorea1) - return "CTCharacterCollection.kCTCharacterCollectionAdobeKorea1, CTCharacterCollection.kCTAdobeKorea1CharacterCollection"; - return super.toString(); - } -} - -sealed class CTFontCollectionCopyOptions { - static const kCTFontCollectionCopyDefaultOptions = 0; - static const kCTFontCollectionCopyUnique = 1; - static const kCTFontCollectionCopyStandardSort = 2; -} - -typedef CTFontCollectionRef = ffi.Pointer<__CTFontCollection>; -typedef CTFontCollectionSortDescriptorsCallback = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CTFontCollectionSortDescriptorsCallbackFunction = - CFIndex Function( - CTFontDescriptorRef first, - CTFontDescriptorRef second, - ffi.Pointer refCon, - ); -typedef DartCTFontCollectionSortDescriptorsCallbackFunction = - CFComparisonResult Function( - CTFontDescriptorRef first, - CTFontDescriptorRef second, - ffi.Pointer refCon, - ); - -enum CTFontDescriptorMatchingState { - kCTFontDescriptorMatchingDidBegin(0), - kCTFontDescriptorMatchingDidFinish(1), - kCTFontDescriptorMatchingWillBeginQuerying(2), - kCTFontDescriptorMatchingStalled(3), - kCTFontDescriptorMatchingWillBeginDownloading(4), - kCTFontDescriptorMatchingDownloading(5), - kCTFontDescriptorMatchingDidFinishDownloading(6), - kCTFontDescriptorMatchingDidMatch(7), - kCTFontDescriptorMatchingDidFailWithError(8); - - final int value; - const CTFontDescriptorMatchingState(this.value); - - static CTFontDescriptorMatchingState fromValue(int value) => switch (value) { - 0 => kCTFontDescriptorMatchingDidBegin, - 1 => kCTFontDescriptorMatchingDidFinish, - 2 => kCTFontDescriptorMatchingWillBeginQuerying, - 3 => kCTFontDescriptorMatchingStalled, - 4 => kCTFontDescriptorMatchingWillBeginDownloading, - 5 => kCTFontDescriptorMatchingDownloading, - 6 => kCTFontDescriptorMatchingDidFinishDownloading, - 7 => kCTFontDescriptorMatchingDidMatch, - 8 => kCTFontDescriptorMatchingDidFailWithError, - _ => throw ArgumentError( - 'Unknown value for CTFontDescriptorMatchingState: $value', - ), - }; -} - -typedef CTFontDescriptorProgressHandler = ffi.Pointer; -typedef DartCTFontDescriptorProgressHandler = - objc.ObjCBlock)>; -typedef CTFontDescriptorRef = ffi.Pointer<__CTFontDescriptor>; - -enum CTFontFormat { - kCTFontFormatUnrecognized(0), - kCTFontFormatOpenTypePostScript(1), - kCTFontFormatOpenTypeTrueType(2), - kCTFontFormatTrueType(3), - kCTFontFormatPostScript(4), - kCTFontFormatBitmap(5); - - final int value; - const CTFontFormat(this.value); - - static CTFontFormat fromValue(int value) => switch (value) { - 0 => kCTFontFormatUnrecognized, - 1 => kCTFontFormatOpenTypePostScript, - 2 => kCTFontFormatOpenTypeTrueType, - 3 => kCTFontFormatTrueType, - 4 => kCTFontFormatPostScript, - 5 => kCTFontFormatBitmap, - _ => throw ArgumentError('Unknown value for CTFontFormat: $value'), - }; -} - -enum CTFontManagerAutoActivationSetting { - kCTFontManagerAutoActivationDefault(0), - kCTFontManagerAutoActivationDisabled(1), - kCTFontManagerAutoActivationEnabled(2), - kCTFontManagerAutoActivationPromptUser(3); - - final int value; - const CTFontManagerAutoActivationSetting(this.value); - - static CTFontManagerAutoActivationSetting fromValue(int value) => - switch (value) { - 0 => kCTFontManagerAutoActivationDefault, - 1 => kCTFontManagerAutoActivationDisabled, - 2 => kCTFontManagerAutoActivationEnabled, - 3 => kCTFontManagerAutoActivationPromptUser, - _ => throw ArgumentError( - 'Unknown value for CTFontManagerAutoActivationSetting: $value', - ), - }; -} - -enum CTFontManagerError { - kCTFontManagerErrorFileNotFound(101), - kCTFontManagerErrorInsufficientPermissions(102), - kCTFontManagerErrorUnrecognizedFormat(103), - kCTFontManagerErrorInvalidFontData(104), - kCTFontManagerErrorAlreadyRegistered(105), - kCTFontManagerErrorExceededResourceLimit(106), - kCTFontManagerErrorAssetNotFound(107), - kCTFontManagerErrorNotRegistered(201), - kCTFontManagerErrorInUse(202), - kCTFontManagerErrorSystemRequired(203), - kCTFontManagerErrorRegistrationFailed(301), - kCTFontManagerErrorMissingEntitlement(302), - kCTFontManagerErrorInsufficientInfo(303), - kCTFontManagerErrorCancelledByUser(304), - kCTFontManagerErrorDuplicatedName(305), - kCTFontManagerErrorInvalidFilePath(306), - kCTFontManagerErrorUnsupportedScope(307); - - final int value; - const CTFontManagerError(this.value); - - static CTFontManagerError fromValue(int value) => switch (value) { - 101 => kCTFontManagerErrorFileNotFound, - 102 => kCTFontManagerErrorInsufficientPermissions, - 103 => kCTFontManagerErrorUnrecognizedFormat, - 104 => kCTFontManagerErrorInvalidFontData, - 105 => kCTFontManagerErrorAlreadyRegistered, - 106 => kCTFontManagerErrorExceededResourceLimit, - 107 => kCTFontManagerErrorAssetNotFound, - 201 => kCTFontManagerErrorNotRegistered, - 202 => kCTFontManagerErrorInUse, - 203 => kCTFontManagerErrorSystemRequired, - 301 => kCTFontManagerErrorRegistrationFailed, - 302 => kCTFontManagerErrorMissingEntitlement, - 303 => kCTFontManagerErrorInsufficientInfo, - 304 => kCTFontManagerErrorCancelledByUser, - 305 => kCTFontManagerErrorDuplicatedName, - 306 => kCTFontManagerErrorInvalidFilePath, - 307 => kCTFontManagerErrorUnsupportedScope, - _ => throw ArgumentError('Unknown value for CTFontManagerError: $value'), - }; -} - -enum CTFontManagerScope { - kCTFontManagerScopeNone(0), - kCTFontManagerScopeProcess(1), - kCTFontManagerScopePersistent(2), - kCTFontManagerScopeSession(3); - - static const kCTFontManagerScopeUser = kCTFontManagerScopePersistent; - - final int value; - const CTFontManagerScope(this.value); - - static CTFontManagerScope fromValue(int value) => switch (value) { - 0 => kCTFontManagerScopeNone, - 1 => kCTFontManagerScopeProcess, - 2 => kCTFontManagerScopePersistent, - 3 => kCTFontManagerScopeSession, - _ => throw ArgumentError('Unknown value for CTFontManagerScope: $value'), - }; - - @override - String toString() { - if (this == kCTFontManagerScopePersistent) - return "CTFontManagerScope.kCTFontManagerScopePersistent, CTFontManagerScope.kCTFontManagerScopeUser"; - return super.toString(); - } -} - -sealed class CTFontOptions { - static const kCTFontOptionsDefault = 0; - static const kCTFontOptionsPreventAutoActivation = 1; - static const kCTFontOptionsPreventAutoDownload = 2; - static const kCTFontOptionsPreferSystemFont = 4; -} - -enum CTFontOrientation { - kCTFontOrientationDefault(0), - kCTFontOrientationHorizontal(1), - kCTFontOrientationVertical(2); - - static const kCTFontDefaultOrientation = kCTFontOrientationDefault; - static const kCTFontHorizontalOrientation = kCTFontOrientationHorizontal; - static const kCTFontVerticalOrientation = kCTFontOrientationVertical; - - final int value; - const CTFontOrientation(this.value); - - static CTFontOrientation fromValue(int value) => switch (value) { - 0 => kCTFontOrientationDefault, - 1 => kCTFontOrientationHorizontal, - 2 => kCTFontOrientationVertical, - _ => throw ArgumentError('Unknown value for CTFontOrientation: $value'), - }; - - @override - String toString() { - if (this == kCTFontOrientationDefault) - return "CTFontOrientation.kCTFontOrientationDefault, CTFontOrientation.kCTFontDefaultOrientation"; - if (this == kCTFontOrientationHorizontal) - return "CTFontOrientation.kCTFontOrientationHorizontal, CTFontOrientation.kCTFontHorizontalOrientation"; - if (this == kCTFontOrientationVertical) - return "CTFontOrientation.kCTFontOrientationVertical, CTFontOrientation.kCTFontVerticalOrientation"; - return super.toString(); - } -} - -typedef CTFontPriority = ffi.Uint32; -typedef DartCTFontPriority = int; -typedef CTFontRef = ffi.Pointer<__CTFont>; - -sealed class CTFontStylisticClass { - static const kCTFontClassUnknown = 0; - static const kCTFontClassOldStyleSerifs = 268435456; - static const kCTFontClassTransitionalSerifs = 536870912; - static const kCTFontClassModernSerifs = 805306368; - static const kCTFontClassClarendonSerifs = 1073741824; - static const kCTFontClassSlabSerifs = 1342177280; - static const kCTFontClassFreeformSerifs = 1879048192; - static const kCTFontClassSansSerif = -2147483648; - static const kCTFontClassOrnamentals = -1879048192; - static const kCTFontClassScripts = -1610612736; - static const kCTFontClassSymbolic = -1073741824; - static const kCTFontUnknownClass = 0; - static const kCTFontOldStyleSerifsClass = 268435456; - static const kCTFontTransitionalSerifsClass = 536870912; - static const kCTFontModernSerifsClass = 805306368; - static const kCTFontClarendonSerifsClass = 1073741824; - static const kCTFontSlabSerifsClass = 1342177280; - static const kCTFontFreeformSerifsClass = 1879048192; - static const kCTFontSansSerifClass = -2147483648; - static const kCTFontOrnamentalsClass = -1879048192; - static const kCTFontScriptsClass = -1610612736; - static const kCTFontSymbolicClass = -1073741824; -} - -sealed class CTFontSymbolicTraits { - static const kCTFontTraitItalic = 1; - static const kCTFontTraitBold = 2; - static const kCTFontTraitExpanded = 32; - static const kCTFontTraitCondensed = 64; - static const kCTFontTraitMonoSpace = 1024; - static const kCTFontTraitVertical = 2048; - static const kCTFontTraitUIOptimized = 4096; - static const kCTFontTraitColorGlyphs = 8192; - static const kCTFontTraitComposite = 16384; - static const kCTFontTraitClassMask = -268435456; - static const kCTFontItalicTrait = 1; - static const kCTFontBoldTrait = 2; - static const kCTFontExpandedTrait = 32; - static const kCTFontCondensedTrait = 64; - static const kCTFontMonoSpaceTrait = 1024; - static const kCTFontVerticalTrait = 2048; - static const kCTFontUIOptimizedTrait = 4096; - static const kCTFontColorGlyphsTrait = 8192; - static const kCTFontCompositeTrait = 16384; - static const kCTFontClassMaskTrait = -268435456; -} - -sealed class CTFontTableOptions { - static const kCTFontTableOptionNoOptions = 0; - static const kCTFontTableOptionExcludeSynthetic = 1; -} - -typedef CTFontTableTag = FourCharCode; - -enum CTFontUIFontType { - kCTFontUIFontNone(-1), - kCTFontUIFontUser(0), - kCTFontUIFontUserFixedPitch(1), - kCTFontUIFontSystem(2), - kCTFontUIFontEmphasizedSystem(3), - kCTFontUIFontSmallSystem(4), - kCTFontUIFontSmallEmphasizedSystem(5), - kCTFontUIFontMiniSystem(6), - kCTFontUIFontMiniEmphasizedSystem(7), - kCTFontUIFontViews(8), - kCTFontUIFontApplication(9), - kCTFontUIFontLabel(10), - kCTFontUIFontMenuTitle(11), - kCTFontUIFontMenuItem(12), - kCTFontUIFontMenuItemMark(13), - kCTFontUIFontMenuItemCmdKey(14), - kCTFontUIFontWindowTitle(15), - kCTFontUIFontPushButton(16), - kCTFontUIFontUtilityWindowTitle(17), - kCTFontUIFontAlertHeader(18), - kCTFontUIFontSystemDetail(19), - kCTFontUIFontEmphasizedSystemDetail(20), - kCTFontUIFontToolbar(21), - kCTFontUIFontSmallToolbar(22), - kCTFontUIFontMessage(23), - kCTFontUIFontPalette(24), - kCTFontUIFontToolTip(25), - kCTFontUIFontControlContent(26); - - static const kCTFontNoFontType = kCTFontUIFontNone; - static const kCTFontUserFontType = kCTFontUIFontUser; - static const kCTFontUserFixedPitchFontType = kCTFontUIFontUserFixedPitch; - static const kCTFontSystemFontType = kCTFontUIFontSystem; - static const kCTFontEmphasizedSystemFontType = kCTFontUIFontEmphasizedSystem; - static const kCTFontSmallSystemFontType = kCTFontUIFontSmallSystem; - static const kCTFontSmallEmphasizedSystemFontType = - kCTFontUIFontSmallEmphasizedSystem; - static const kCTFontMiniSystemFontType = kCTFontUIFontMiniSystem; - static const kCTFontMiniEmphasizedSystemFontType = - kCTFontUIFontMiniEmphasizedSystem; - static const kCTFontViewsFontType = kCTFontUIFontViews; - static const kCTFontApplicationFontType = kCTFontUIFontApplication; - static const kCTFontLabelFontType = kCTFontUIFontLabel; - static const kCTFontMenuTitleFontType = kCTFontUIFontMenuTitle; - static const kCTFontMenuItemFontType = kCTFontUIFontMenuItem; - static const kCTFontMenuItemMarkFontType = kCTFontUIFontMenuItemMark; - static const kCTFontMenuItemCmdKeyFontType = kCTFontUIFontMenuItemCmdKey; - static const kCTFontWindowTitleFontType = kCTFontUIFontWindowTitle; - static const kCTFontPushButtonFontType = kCTFontUIFontPushButton; - static const kCTFontUtilityWindowTitleFontType = - kCTFontUIFontUtilityWindowTitle; - static const kCTFontAlertHeaderFontType = kCTFontUIFontAlertHeader; - static const kCTFontSystemDetailFontType = kCTFontUIFontSystemDetail; - static const kCTFontEmphasizedSystemDetailFontType = - kCTFontUIFontEmphasizedSystemDetail; - static const kCTFontToolbarFontType = kCTFontUIFontToolbar; - static const kCTFontSmallToolbarFontType = kCTFontUIFontSmallToolbar; - static const kCTFontMessageFontType = kCTFontUIFontMessage; - static const kCTFontPaletteFontType = kCTFontUIFontPalette; - static const kCTFontToolTipFontType = kCTFontUIFontToolTip; - static const kCTFontControlContentFontType = kCTFontUIFontControlContent; - - final int value; - const CTFontUIFontType(this.value); - - static CTFontUIFontType fromValue(int value) => switch (value) { - -1 => kCTFontUIFontNone, - 0 => kCTFontUIFontUser, - 1 => kCTFontUIFontUserFixedPitch, - 2 => kCTFontUIFontSystem, - 3 => kCTFontUIFontEmphasizedSystem, - 4 => kCTFontUIFontSmallSystem, - 5 => kCTFontUIFontSmallEmphasizedSystem, - 6 => kCTFontUIFontMiniSystem, - 7 => kCTFontUIFontMiniEmphasizedSystem, - 8 => kCTFontUIFontViews, - 9 => kCTFontUIFontApplication, - 10 => kCTFontUIFontLabel, - 11 => kCTFontUIFontMenuTitle, - 12 => kCTFontUIFontMenuItem, - 13 => kCTFontUIFontMenuItemMark, - 14 => kCTFontUIFontMenuItemCmdKey, - 15 => kCTFontUIFontWindowTitle, - 16 => kCTFontUIFontPushButton, - 17 => kCTFontUIFontUtilityWindowTitle, - 18 => kCTFontUIFontAlertHeader, - 19 => kCTFontUIFontSystemDetail, - 20 => kCTFontUIFontEmphasizedSystemDetail, - 21 => kCTFontUIFontToolbar, - 22 => kCTFontUIFontSmallToolbar, - 23 => kCTFontUIFontMessage, - 24 => kCTFontUIFontPalette, - 25 => kCTFontUIFontToolTip, - 26 => kCTFontUIFontControlContent, - _ => throw ArgumentError('Unknown value for CTFontUIFontType: $value'), - }; - - @override - String toString() { - if (this == kCTFontUIFontNone) - return "CTFontUIFontType.kCTFontUIFontNone, CTFontUIFontType.kCTFontNoFontType"; - if (this == kCTFontUIFontUser) - return "CTFontUIFontType.kCTFontUIFontUser, CTFontUIFontType.kCTFontUserFontType"; - if (this == kCTFontUIFontUserFixedPitch) - return "CTFontUIFontType.kCTFontUIFontUserFixedPitch, CTFontUIFontType.kCTFontUserFixedPitchFontType"; - if (this == kCTFontUIFontSystem) - return "CTFontUIFontType.kCTFontUIFontSystem, CTFontUIFontType.kCTFontSystemFontType"; - if (this == kCTFontUIFontEmphasizedSystem) - return "CTFontUIFontType.kCTFontUIFontEmphasizedSystem, CTFontUIFontType.kCTFontEmphasizedSystemFontType"; - if (this == kCTFontUIFontSmallSystem) - return "CTFontUIFontType.kCTFontUIFontSmallSystem, CTFontUIFontType.kCTFontSmallSystemFontType"; - if (this == kCTFontUIFontSmallEmphasizedSystem) - return "CTFontUIFontType.kCTFontUIFontSmallEmphasizedSystem, CTFontUIFontType.kCTFontSmallEmphasizedSystemFontType"; - if (this == kCTFontUIFontMiniSystem) - return "CTFontUIFontType.kCTFontUIFontMiniSystem, CTFontUIFontType.kCTFontMiniSystemFontType"; - if (this == kCTFontUIFontMiniEmphasizedSystem) - return "CTFontUIFontType.kCTFontUIFontMiniEmphasizedSystem, CTFontUIFontType.kCTFontMiniEmphasizedSystemFontType"; - if (this == kCTFontUIFontViews) - return "CTFontUIFontType.kCTFontUIFontViews, CTFontUIFontType.kCTFontViewsFontType"; - if (this == kCTFontUIFontApplication) - return "CTFontUIFontType.kCTFontUIFontApplication, CTFontUIFontType.kCTFontApplicationFontType"; - if (this == kCTFontUIFontLabel) - return "CTFontUIFontType.kCTFontUIFontLabel, CTFontUIFontType.kCTFontLabelFontType"; - if (this == kCTFontUIFontMenuTitle) - return "CTFontUIFontType.kCTFontUIFontMenuTitle, CTFontUIFontType.kCTFontMenuTitleFontType"; - if (this == kCTFontUIFontMenuItem) - return "CTFontUIFontType.kCTFontUIFontMenuItem, CTFontUIFontType.kCTFontMenuItemFontType"; - if (this == kCTFontUIFontMenuItemMark) - return "CTFontUIFontType.kCTFontUIFontMenuItemMark, CTFontUIFontType.kCTFontMenuItemMarkFontType"; - if (this == kCTFontUIFontMenuItemCmdKey) - return "CTFontUIFontType.kCTFontUIFontMenuItemCmdKey, CTFontUIFontType.kCTFontMenuItemCmdKeyFontType"; - if (this == kCTFontUIFontWindowTitle) - return "CTFontUIFontType.kCTFontUIFontWindowTitle, CTFontUIFontType.kCTFontWindowTitleFontType"; - if (this == kCTFontUIFontPushButton) - return "CTFontUIFontType.kCTFontUIFontPushButton, CTFontUIFontType.kCTFontPushButtonFontType"; - if (this == kCTFontUIFontUtilityWindowTitle) - return "CTFontUIFontType.kCTFontUIFontUtilityWindowTitle, CTFontUIFontType.kCTFontUtilityWindowTitleFontType"; - if (this == kCTFontUIFontAlertHeader) - return "CTFontUIFontType.kCTFontUIFontAlertHeader, CTFontUIFontType.kCTFontAlertHeaderFontType"; - if (this == kCTFontUIFontSystemDetail) - return "CTFontUIFontType.kCTFontUIFontSystemDetail, CTFontUIFontType.kCTFontSystemDetailFontType"; - if (this == kCTFontUIFontEmphasizedSystemDetail) - return "CTFontUIFontType.kCTFontUIFontEmphasizedSystemDetail, CTFontUIFontType.kCTFontEmphasizedSystemDetailFontType"; - if (this == kCTFontUIFontToolbar) - return "CTFontUIFontType.kCTFontUIFontToolbar, CTFontUIFontType.kCTFontToolbarFontType"; - if (this == kCTFontUIFontSmallToolbar) - return "CTFontUIFontType.kCTFontUIFontSmallToolbar, CTFontUIFontType.kCTFontSmallToolbarFontType"; - if (this == kCTFontUIFontMessage) - return "CTFontUIFontType.kCTFontUIFontMessage, CTFontUIFontType.kCTFontMessageFontType"; - if (this == kCTFontUIFontPalette) - return "CTFontUIFontType.kCTFontUIFontPalette, CTFontUIFontType.kCTFontPaletteFontType"; - if (this == kCTFontUIFontToolTip) - return "CTFontUIFontType.kCTFontUIFontToolTip, CTFontUIFontType.kCTFontToolTipFontType"; - if (this == kCTFontUIFontControlContent) - return "CTFontUIFontType.kCTFontUIFontControlContent, CTFontUIFontType.kCTFontControlContentFontType"; - return super.toString(); - } -} - -enum CTFramePathFillRule { - kCTFramePathFillEvenOdd(0), - kCTFramePathFillWindingNumber(1); - - final int value; - const CTFramePathFillRule(this.value); - - static CTFramePathFillRule fromValue(int value) => switch (value) { - 0 => kCTFramePathFillEvenOdd, - 1 => kCTFramePathFillWindingNumber, - _ => throw ArgumentError('Unknown value for CTFramePathFillRule: $value'), - }; -} - -enum CTFrameProgression { - kCTFrameProgressionTopToBottom(0), - kCTFrameProgressionRightToLeft(1), - kCTFrameProgressionLeftToRight(2); - - final int value; - const CTFrameProgression(this.value); - - static CTFrameProgression fromValue(int value) => switch (value) { - 0 => kCTFrameProgressionTopToBottom, - 1 => kCTFrameProgressionRightToLeft, - 2 => kCTFrameProgressionLeftToRight, - _ => throw ArgumentError('Unknown value for CTFrameProgression: $value'), - }; -} - -typedef CTFrameRef = ffi.Pointer<__CTFrame>; -typedef CTFramesetterRef = ffi.Pointer<__CTFramesetter>; -typedef CTGlyphInfoRef = ffi.Pointer<__CTGlyphInfo>; - -sealed class CTLineBoundsOptions { - static const kCTLineBoundsExcludeTypographicLeading = 1; - static const kCTLineBoundsExcludeTypographicShifts = 2; - static const kCTLineBoundsUseHangingPunctuation = 4; - static const kCTLineBoundsUseGlyphPathBounds = 8; - static const kCTLineBoundsUseOpticalBounds = 16; - static const kCTLineBoundsIncludeLanguageExtents = 32; -} - -enum CTLineBreakMode { - kCTLineBreakByWordWrapping(0), - kCTLineBreakByCharWrapping(1), - kCTLineBreakByClipping(2), - kCTLineBreakByTruncatingHead(3), - kCTLineBreakByTruncatingTail(4), - kCTLineBreakByTruncatingMiddle(5); - - final int value; - const CTLineBreakMode(this.value); - - static CTLineBreakMode fromValue(int value) => switch (value) { - 0 => kCTLineBreakByWordWrapping, - 1 => kCTLineBreakByCharWrapping, - 2 => kCTLineBreakByClipping, - 3 => kCTLineBreakByTruncatingHead, - 4 => kCTLineBreakByTruncatingTail, - 5 => kCTLineBreakByTruncatingMiddle, - _ => throw ArgumentError('Unknown value for CTLineBreakMode: $value'), - }; -} - -typedef CTLineRef = ffi.Pointer<__CTLine>; - -enum CTLineTruncationType { - kCTLineTruncationStart(0), - kCTLineTruncationEnd(1), - kCTLineTruncationMiddle(2); - - final int value; - const CTLineTruncationType(this.value); - - static CTLineTruncationType fromValue(int value) => switch (value) { - 0 => kCTLineTruncationStart, - 1 => kCTLineTruncationEnd, - 2 => kCTLineTruncationMiddle, - _ => throw ArgumentError('Unknown value for CTLineTruncationType: $value'), - }; -} - -typedef CTMutableFontCollectionRef = ffi.Pointer<__CTFontCollection>; -typedef CTParagraphStyleRef = ffi.Pointer<__CTParagraphStyle>; - -final class CTParagraphStyleSetting extends ffi.Struct { - @ffi.Uint32() - external int specAsInt; - - CTParagraphStyleSpecifier get spec => - CTParagraphStyleSpecifier.fromValue(specAsInt); - set spec(CTParagraphStyleSpecifier value) => specAsInt = value.value; - - @ffi.Size() - external int valueSize; - - external ffi.Pointer value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CTParagraphStyleSpecifier spec, - required int valueSize, - required ffi.Pointer value, - }) => $allocator() - ..ref.spec = spec - ..ref.valueSize = valueSize - ..ref.value = value; -} - -enum CTParagraphStyleSpecifier { - kCTParagraphStyleSpecifierAlignment(0), - kCTParagraphStyleSpecifierFirstLineHeadIndent(1), - kCTParagraphStyleSpecifierHeadIndent(2), - kCTParagraphStyleSpecifierTailIndent(3), - kCTParagraphStyleSpecifierTabStops(4), - kCTParagraphStyleSpecifierDefaultTabInterval(5), - kCTParagraphStyleSpecifierLineBreakMode(6), - kCTParagraphStyleSpecifierLineHeightMultiple(7), - kCTParagraphStyleSpecifierMaximumLineHeight(8), - kCTParagraphStyleSpecifierMinimumLineHeight(9), - kCTParagraphStyleSpecifierLineSpacing(10), - kCTParagraphStyleSpecifierParagraphSpacing(11), - kCTParagraphStyleSpecifierParagraphSpacingBefore(12), - kCTParagraphStyleSpecifierBaseWritingDirection(13), - kCTParagraphStyleSpecifierMaximumLineSpacing(14), - kCTParagraphStyleSpecifierMinimumLineSpacing(15), - kCTParagraphStyleSpecifierLineSpacingAdjustment(16), - kCTParagraphStyleSpecifierLineBoundsOptions(17), - kCTParagraphStyleSpecifierCount(18); - - final int value; - const CTParagraphStyleSpecifier(this.value); - - static CTParagraphStyleSpecifier fromValue(int value) => switch (value) { - 0 => kCTParagraphStyleSpecifierAlignment, - 1 => kCTParagraphStyleSpecifierFirstLineHeadIndent, - 2 => kCTParagraphStyleSpecifierHeadIndent, - 3 => kCTParagraphStyleSpecifierTailIndent, - 4 => kCTParagraphStyleSpecifierTabStops, - 5 => kCTParagraphStyleSpecifierDefaultTabInterval, - 6 => kCTParagraphStyleSpecifierLineBreakMode, - 7 => kCTParagraphStyleSpecifierLineHeightMultiple, - 8 => kCTParagraphStyleSpecifierMaximumLineHeight, - 9 => kCTParagraphStyleSpecifierMinimumLineHeight, - 10 => kCTParagraphStyleSpecifierLineSpacing, - 11 => kCTParagraphStyleSpecifierParagraphSpacing, - 12 => kCTParagraphStyleSpecifierParagraphSpacingBefore, - 13 => kCTParagraphStyleSpecifierBaseWritingDirection, - 14 => kCTParagraphStyleSpecifierMaximumLineSpacing, - 15 => kCTParagraphStyleSpecifierMinimumLineSpacing, - 16 => kCTParagraphStyleSpecifierLineSpacingAdjustment, - 17 => kCTParagraphStyleSpecifierLineBoundsOptions, - 18 => kCTParagraphStyleSpecifierCount, - _ => throw ArgumentError( - 'Unknown value for CTParagraphStyleSpecifier: $value', - ), - }; -} - -enum CTRubyAlignment { - kCTRubyAlignmentInvalid(-1), - kCTRubyAlignmentAuto(0), - kCTRubyAlignmentStart(1), - kCTRubyAlignmentCenter(2), - kCTRubyAlignmentEnd(3), - kCTRubyAlignmentDistributeLetter(4), - kCTRubyAlignmentDistributeSpace(5), - kCTRubyAlignmentLineEdge(6); - - final int value; - const CTRubyAlignment(this.value); - - static CTRubyAlignment fromValue(int value) => switch (value) { - -1 => kCTRubyAlignmentInvalid, - 0 => kCTRubyAlignmentAuto, - 1 => kCTRubyAlignmentStart, - 2 => kCTRubyAlignmentCenter, - 3 => kCTRubyAlignmentEnd, - 4 => kCTRubyAlignmentDistributeLetter, - 5 => kCTRubyAlignmentDistributeSpace, - 6 => kCTRubyAlignmentLineEdge, - _ => throw ArgumentError('Unknown value for CTRubyAlignment: $value'), - }; -} - -typedef CTRubyAnnotationRef = ffi.Pointer<__CTRubyAnnotation>; - -enum CTRubyOverhang { - kCTRubyOverhangInvalid(-1), - kCTRubyOverhangAuto(0), - kCTRubyOverhangStart(1), - kCTRubyOverhangEnd(2), - kCTRubyOverhangNone(3); - - final int value; - const CTRubyOverhang(this.value); - - static CTRubyOverhang fromValue(int value) => switch (value) { - -1 => kCTRubyOverhangInvalid, - 0 => kCTRubyOverhangAuto, - 1 => kCTRubyOverhangStart, - 2 => kCTRubyOverhangEnd, - 3 => kCTRubyOverhangNone, - _ => throw ArgumentError('Unknown value for CTRubyOverhang: $value'), - }; -} - -enum CTRubyPosition { - kCTRubyPositionBefore(0), - kCTRubyPositionAfter(1), - kCTRubyPositionInterCharacter(2), - kCTRubyPositionInline(3), - kCTRubyPositionCount(4); - - final int value; - const CTRubyPosition(this.value); - - static CTRubyPosition fromValue(int value) => switch (value) { - 0 => kCTRubyPositionBefore, - 1 => kCTRubyPositionAfter, - 2 => kCTRubyPositionInterCharacter, - 3 => kCTRubyPositionInline, - 4 => kCTRubyPositionCount, - _ => throw ArgumentError('Unknown value for CTRubyPosition: $value'), - }; -} - -final class CTRunDelegateCallbacks extends ffi.Struct { - @CFIndex() - external int version; - - external CTRunDelegateDeallocateCallback dealloc; - - external CTRunDelegateGetAscentCallback getAscent; - - external CTRunDelegateGetDescentCallback getDescent; - - external CTRunDelegateGetWidthCallback getWidth; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CTRunDelegateDeallocateCallback dealloc, - required CTRunDelegateGetAscentCallback getAscent, - required CTRunDelegateGetDescentCallback getDescent, - required CTRunDelegateGetWidthCallback getWidth, - }) => $allocator() - ..ref.version = version - ..ref.dealloc = dealloc - ..ref.getAscent = getAscent - ..ref.getDescent = getDescent - ..ref.getWidth = getWidth; -} - -typedef CTRunDelegateDeallocateCallback = - ffi.Pointer>; -typedef CTRunDelegateDeallocateCallbackFunction = - ffi.Void Function(ffi.Pointer refCon); -typedef DartCTRunDelegateDeallocateCallbackFunction = - void Function(ffi.Pointer refCon); -typedef CTRunDelegateGetAscentCallback = - ffi.Pointer>; -typedef CTRunDelegateGetAscentCallbackFunction = - CGFloat Function(ffi.Pointer refCon); -typedef DartCTRunDelegateGetAscentCallbackFunction = - DartCGFloat Function(ffi.Pointer refCon); -typedef CTRunDelegateGetDescentCallback = - ffi.Pointer>; -typedef CTRunDelegateGetDescentCallbackFunction = - CGFloat Function(ffi.Pointer refCon); -typedef DartCTRunDelegateGetDescentCallbackFunction = - DartCGFloat Function(ffi.Pointer refCon); -typedef CTRunDelegateGetWidthCallback = - ffi.Pointer>; -typedef CTRunDelegateGetWidthCallbackFunction = - CGFloat Function(ffi.Pointer refCon); -typedef DartCTRunDelegateGetWidthCallbackFunction = - DartCGFloat Function(ffi.Pointer refCon); -typedef CTRunDelegateRef = ffi.Pointer<__CTRunDelegate>; -typedef CTRunRef = ffi.Pointer<__CTRun>; - -sealed class CTRunStatus { - static const kCTRunStatusNoStatus = 0; - static const kCTRunStatusRightToLeft = 1; - static const kCTRunStatusNonMonotonic = 2; - static const kCTRunStatusHasNonIdentityMatrix = 4; -} - -enum CTTextAlignment { - kCTTextAlignmentLeft(0), - kCTTextAlignmentRight(1), - kCTTextAlignmentCenter(2), - kCTTextAlignmentJustified(3), - kCTTextAlignmentNatural(4); - - static const kCTLeftTextAlignment = kCTTextAlignmentLeft; - static const kCTRightTextAlignment = kCTTextAlignmentRight; - static const kCTCenterTextAlignment = kCTTextAlignmentCenter; - static const kCTJustifiedTextAlignment = kCTTextAlignmentJustified; - static const kCTNaturalTextAlignment = kCTTextAlignmentNatural; - - final int value; - const CTTextAlignment(this.value); - - static CTTextAlignment fromValue(int value) => switch (value) { - 0 => kCTTextAlignmentLeft, - 1 => kCTTextAlignmentRight, - 2 => kCTTextAlignmentCenter, - 3 => kCTTextAlignmentJustified, - 4 => kCTTextAlignmentNatural, - _ => throw ArgumentError('Unknown value for CTTextAlignment: $value'), - }; - - @override - String toString() { - if (this == kCTTextAlignmentLeft) - return "CTTextAlignment.kCTTextAlignmentLeft, CTTextAlignment.kCTLeftTextAlignment"; - if (this == kCTTextAlignmentRight) - return "CTTextAlignment.kCTTextAlignmentRight, CTTextAlignment.kCTRightTextAlignment"; - if (this == kCTTextAlignmentCenter) - return "CTTextAlignment.kCTTextAlignmentCenter, CTTextAlignment.kCTCenterTextAlignment"; - if (this == kCTTextAlignmentJustified) - return "CTTextAlignment.kCTTextAlignmentJustified, CTTextAlignment.kCTJustifiedTextAlignment"; - if (this == kCTTextAlignmentNatural) - return "CTTextAlignment.kCTTextAlignmentNatural, CTTextAlignment.kCTNaturalTextAlignment"; - return super.toString(); - } -} - -typedef CTTextTabRef = ffi.Pointer<__CTTextTab>; -typedef CTTypesetterRef = ffi.Pointer<__CTTypesetter>; - -sealed class CTUnderlineStyle { - static const kCTUnderlineStyleNone = 0; - static const kCTUnderlineStyleSingle = 1; - static const kCTUnderlineStyleThick = 2; - static const kCTUnderlineStyleDouble = 9; -} - -sealed class CTUnderlineStyleModifiers { - static const kCTUnderlinePatternSolid = 0; - static const kCTUnderlinePatternDot = 256; - static const kCTUnderlinePatternDash = 512; - static const kCTUnderlinePatternDashDot = 768; - static const kCTUnderlinePatternDashDotDot = 1024; -} - -enum CTWritingDirection { - kCTWritingDirectionNatural(-1), - kCTWritingDirectionLeftToRight(0), - kCTWritingDirectionRightToLeft(1); - - final int value; - const CTWritingDirection(this.value); - - static CTWritingDirection fromValue(int value) => switch (value) { - -1 => kCTWritingDirectionNatural, - 0 => kCTWritingDirectionLeftToRight, - 1 => kCTWritingDirectionRightToLeft, - _ => throw ArgumentError('Unknown value for CTWritingDirection: $value'), - }; -} - -typedef CTabHandle = ffi.Pointer; -typedef CTabPtr = ffi.Pointer; - -enum CVAttachmentMode { - kCVAttachmentMode_ShouldNotPropagate(0), - kCVAttachmentMode_ShouldPropagate(1); - - final int value; - const CVAttachmentMode(this.value); - - static CVAttachmentMode fromValue(int value) => switch (value) { - 0 => kCVAttachmentMode_ShouldNotPropagate, - 1 => kCVAttachmentMode_ShouldPropagate, - _ => throw ArgumentError('Unknown value for CVAttachmentMode: $value'), - }; -} - -typedef CVBufferRef = ffi.Pointer<__CVBuffer>; -typedef CVDisplayLinkOutputCallback = - ffi.Pointer>; -typedef CVDisplayLinkOutputCallbackFunction = - CVReturn Function( - CVDisplayLinkRef displayLink, - ffi.Pointer inNow, - ffi.Pointer inOutputTime, - CVOptionFlags flagsIn, - ffi.Pointer flagsOut, - ffi.Pointer displayLinkContext, - ); -typedef DartCVDisplayLinkOutputCallbackFunction = - DartCVReturn Function( - CVDisplayLinkRef displayLink, - ffi.Pointer inNow, - ffi.Pointer inOutputTime, - DartCVOptionFlags flagsIn, - ffi.Pointer flagsOut, - ffi.Pointer displayLinkContext, - ); -typedef CVDisplayLinkOutputHandler = ffi.Pointer; -typedef DartCVDisplayLinkOutputHandler = - objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - >; -typedef CVDisplayLinkRef = ffi.Pointer<__CVDisplayLink>; -typedef CVFillExtendedPixelsCallBack = - ffi.Pointer>; - -final class CVFillExtendedPixelsCallBackData extends ffi.Struct { - @CFIndex() - external int version; - - external CVFillExtendedPixelsCallBack fillCallBack; - - external ffi.Pointer refCon; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CVFillExtendedPixelsCallBack fillCallBack, - required ffi.Pointer refCon, - }) => $allocator() - ..ref.version = version - ..ref.fillCallBack = fillCallBack - ..ref.refCon = refCon; -} - -typedef CVFillExtendedPixelsCallBackFunction = - Boolean Function( - CVPixelBufferRef pixelBuffer, - ffi.Pointer refCon, - ); -typedef DartCVFillExtendedPixelsCallBackFunction = - DartBoolean Function( - CVPixelBufferRef pixelBuffer, - ffi.Pointer refCon, - ); -typedef CVImageBufferRef = CVBufferRef; -typedef CVMetalBufferCacheRef = ffi.Pointer<__CVMetalBufferCache>; -typedef CVMetalBufferRef = CVBufferRef; -typedef CVMetalTextureCacheRef = ffi.Pointer<__CVMetalTextureCache>; -typedef CVMetalTextureRef = CVImageBufferRef; -typedef CVOpenGLBufferPoolRef = ffi.Pointer<__CVOpenGLBufferPool>; -typedef CVOpenGLBufferRef = CVImageBufferRef; -typedef CVOpenGLTextureCacheRef = ffi.Pointer<__CVOpenGLTextureCache>; -typedef CVOpenGLTextureRef = CVImageBufferRef; -typedef CVOptionFlags = ffi.Uint64; -typedef DartCVOptionFlags = int; - -sealed class CVPixelBufferLockFlags { - static const kCVPixelBufferLock_ReadOnly = 1; -} - -sealed class CVPixelBufferPoolFlushFlags { - static const kCVPixelBufferPoolFlushExcessBuffers = 1; -} - -typedef CVPixelBufferPoolRef = ffi.Pointer<__CVPixelBufferPool>; -typedef CVPixelBufferRef = CVImageBufferRef; -typedef CVPixelBufferReleaseBytesCallback = - ffi.Pointer>; -typedef CVPixelBufferReleaseBytesCallbackFunction = - ffi.Void Function( - ffi.Pointer releaseRefCon, - ffi.Pointer baseAddress, - ); -typedef DartCVPixelBufferReleaseBytesCallbackFunction = - void Function( - ffi.Pointer releaseRefCon, - ffi.Pointer baseAddress, - ); -typedef CVPixelBufferReleasePlanarBytesCallback = - ffi.Pointer< - ffi.NativeFunction - >; -typedef CVPixelBufferReleasePlanarBytesCallbackFunction = - ffi.Void Function( - ffi.Pointer releaseRefCon, - ffi.Pointer dataPtr, - ffi.Size dataSize, - ffi.Size numberOfPlanes, - ffi.Pointer> planeAddresses, - ); -typedef DartCVPixelBufferReleasePlanarBytesCallbackFunction = - void Function( - ffi.Pointer releaseRefCon, - ffi.Pointer dataPtr, - int dataSize, - int numberOfPlanes, - ffi.Pointer> planeAddresses, - ); - -final class CVPlanarComponentInfo extends ffi.Struct { - @ffi.Int32() - external int offset; - - @ffi.Uint32() - external int rowBytes; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int rowBytes, - }) => $allocator() - ..ref.offset = offset - ..ref.rowBytes = rowBytes; -} - -final class CVPlanarPixelBufferInfo extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array componentInfo; -} - -final class CVPlanarPixelBufferInfo_YCbCrBiPlanar extends ffi.Struct { - external CVPlanarComponentInfo componentInfoY; - - external CVPlanarComponentInfo componentInfoCbCr; -} - -final class CVPlanarPixelBufferInfo_YCbCrPlanar extends ffi.Struct { - external CVPlanarComponentInfo componentInfoY; - - external CVPlanarComponentInfo componentInfoCb; - - external CVPlanarComponentInfo componentInfoCr; -} - -typedef CVReturn = ffi.Int32; -typedef DartCVReturn = int; - -final class CVSMPTETime extends ffi.Struct { - @SInt16() - external int subframes; - - @SInt16() - external int subframeDivisor; - - @UInt32() - external int counter; - - @UInt32() - external int type; - - @UInt32() - external int flags; - - @SInt16() - external int hours; - - @SInt16() - external int minutes; - - @SInt16() - external int seconds; - - @SInt16() - external int frames; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int subframes, - required int subframeDivisor, - required int counter, - required int type, - required int flags, - required int hours, - required int minutes, - required int seconds, - required int frames, - }) => $allocator() - ..ref.subframes = subframes - ..ref.subframeDivisor = subframeDivisor - ..ref.counter = counter - ..ref.type = type - ..ref.flags = flags - ..ref.hours = hours - ..ref.minutes = minutes - ..ref.seconds = seconds - ..ref.frames = frames; -} - -sealed class CVSMPTETimeFlags { - static const kCVSMPTETimeValid = 1; - static const kCVSMPTETimeRunning = 2; -} - -enum CVSMPTETimeType { - kCVSMPTETimeType24(0), - kCVSMPTETimeType25(1), - kCVSMPTETimeType30Drop(2), - kCVSMPTETimeType30(3), - kCVSMPTETimeType2997(4), - kCVSMPTETimeType2997Drop(5), - kCVSMPTETimeType60(6), - kCVSMPTETimeType5994(7); - - final int value; - const CVSMPTETimeType(this.value); - - static CVSMPTETimeType fromValue(int value) => switch (value) { - 0 => kCVSMPTETimeType24, - 1 => kCVSMPTETimeType25, - 2 => kCVSMPTETimeType30Drop, - 3 => kCVSMPTETimeType30, - 4 => kCVSMPTETimeType2997, - 5 => kCVSMPTETimeType2997Drop, - 6 => kCVSMPTETimeType60, - 7 => kCVSMPTETimeType5994, - _ => throw ArgumentError('Unknown value for CVSMPTETimeType: $value'), - }; -} - -final class CVTime extends ffi.Struct { - @ffi.Int64() - external int timeValue; - - @ffi.Int32() - external int timeScale; - - @ffi.Int32() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int timeValue, - required int timeScale, - required int flags, - }) => $allocator() - ..ref.timeValue = timeValue - ..ref.timeScale = timeScale - ..ref.flags = flags; -} - -sealed class CVTimeFlags { - static const kCVTimeIsIndefinite = 1; -} - -final class CVTimeStamp extends ffi.Struct { - @ffi.Uint32() - external int version; - - @ffi.Int32() - external int videoTimeScale; - - @ffi.Int64() - external int videoTime; - - @ffi.Uint64() - external int hostTime; - - @ffi.Double() - external double rateScalar; - - @ffi.Int64() - external int videoRefreshPeriod; - - external CVSMPTETime smpteTime; - - @ffi.Uint64() - external int flags; - - @ffi.Uint64() - external int reserved; -} - -sealed class CVTimeStampFlags { - static const kCVTimeStampVideoTimeValid = 1; - static const kCVTimeStampHostTimeValid = 2; - static const kCVTimeStampSMPTETimeValid = 4; - static const kCVTimeStampVideoRefreshPeriodValid = 8; - static const kCVTimeStampRateScalarValid = 16; - static const kCVTimeStampTopField = 65536; - static const kCVTimeStampBottomField = 131072; - static const kCVTimeStampVideoHostTimeValid = 3; - static const kCVTimeStampIsInterlaced = 196608; -} - -typedef CallingConventionType = ffi.UnsignedShort; -typedef DartCallingConventionType = int; - -const int CantDecompress = -186; - -@ffi.Packed(2) -final class CatPositionRec extends ffi.Struct { - @SInt32() - external int initialize; - - @ffi.Array.multi([6]) - external ffi.Array priv; -} - -typedef CharParameter = ffi.Short; -typedef DartCharParameter = int; - -@ffi.Packed(2) -final class ChunkHeader extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ckID, - required int ckSize, - }) => $allocator() - ..ref.ckID = ckID - ..ref.ckSize = ckSize; -} - -typedef CollatorRef = ffi.Pointer; -typedef Collection = ffi.Pointer; -typedef CollectionExceptionProcPtr = - ffi.Pointer>; -typedef CollectionExceptionProcPtrFunction = - OSErr Function(Collection c, OSErr status); -typedef DartCollectionExceptionProcPtrFunction = - DartSInt16 Function(Collection c, DartSInt16 status); -typedef CollectionExceptionUPP = CollectionExceptionProcPtr; -typedef CollectionFlattenProcPtr = - ffi.Pointer>; -typedef CollectionFlattenProcPtrFunction = - OSErr Function( - SInt32 size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef DartCollectionFlattenProcPtrFunction = - DartSInt16 Function( - DartSInt32 size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef CollectionFlattenUPP = CollectionFlattenProcPtr; -typedef CollectionTag = FourCharCode; -typedef ColorComplementProcPtr = - ffi.Pointer>; -typedef ColorComplementProcPtrFunction = - Boolean Function(ffi.Pointer rgb); -typedef DartColorComplementProcPtrFunction = - DartBoolean Function(ffi.Pointer rgb); -typedef ColorComplementUPP = ColorComplementProcPtr; -typedef ColorSearchProcPtr = - ffi.Pointer>; -typedef ColorSearchProcPtrFunction = - Boolean Function(ffi.Pointer rgb, ffi.Pointer position); -typedef DartColorSearchProcPtrFunction = - DartBoolean Function( - ffi.Pointer rgb, - ffi.Pointer position, - ); -typedef ColorSearchUPP = ColorSearchProcPtr; - -final class ColorSpec extends ffi.Struct { - @ffi.Short() - external int value; - - external RGBColor rgb; -} - -typedef ColorSpecPtr = ffi.Pointer; - -enum ColorSyncAlphaInfo { - kColorSyncAlphaNone(0), - kColorSyncAlphaPremultipliedLast(1), - kColorSyncAlphaPremultipliedFirst(2), - kColorSyncAlphaLast(3), - kColorSyncAlphaFirst(4), - kColorSyncAlphaNoneSkipLast(5), - kColorSyncAlphaNoneSkipFirst(6); - - final int value; - const ColorSyncAlphaInfo(this.value); - - static ColorSyncAlphaInfo fromValue(int value) => switch (value) { - 0 => kColorSyncAlphaNone, - 1 => kColorSyncAlphaPremultipliedLast, - 2 => kColorSyncAlphaPremultipliedFirst, - 3 => kColorSyncAlphaLast, - 4 => kColorSyncAlphaFirst, - 5 => kColorSyncAlphaNoneSkipLast, - 6 => kColorSyncAlphaNoneSkipFirst, - _ => throw ArgumentError('Unknown value for ColorSyncAlphaInfo: $value'), - }; -} - -final class ColorSyncCMM extends ffi.Opaque {} - -typedef ColorSyncCMMIterateCallback = - ffi.Pointer>; -typedef ColorSyncCMMIterateCallbackFunction = - ffi.Bool Function(ColorSyncCMMRef cmm, ffi.Pointer userInfo); -typedef DartColorSyncCMMIterateCallbackFunction = - bool Function(ColorSyncCMMRef cmm, ffi.Pointer userInfo); -typedef ColorSyncCMMRef = ffi.Pointer; - -enum ColorSyncDataDepth { - kColorSync1BitGamut(1), - kColorSync8BitInteger(2), - kColorSync16BitInteger(3), - kColorSync16BitFloat(4), - kColorSync32BitInteger(5), - kColorSync32BitNamedColorIndex(6), - kColorSync32BitFloat(7), - kColorSync10BitInteger(8); - - final int value; - const ColorSyncDataDepth(this.value); - - static ColorSyncDataDepth fromValue(int value) => switch (value) { - 1 => kColorSync1BitGamut, - 2 => kColorSync8BitInteger, - 3 => kColorSync16BitInteger, - 4 => kColorSync16BitFloat, - 5 => kColorSync32BitInteger, - 6 => kColorSync32BitNamedColorIndex, - 7 => kColorSync32BitFloat, - 8 => kColorSync10BitInteger, - _ => throw ArgumentError('Unknown value for ColorSyncDataDepth: $value'), - }; -} - -typedef ColorSyncDataLayout = ffi.Uint32; -typedef DartColorSyncDataLayout = int; -typedef ColorSyncDeviceProfileIterateCallback = - ffi.Pointer< - ffi.NativeFunction - >; -typedef ColorSyncDeviceProfileIterateCallbackFunction = - ffi.Bool Function( - CFDictionaryRef colorSyncDeviceProfileInfo, - ffi.Pointer userInfo, - ); -typedef DartColorSyncDeviceProfileIterateCallbackFunction = - bool Function( - CFDictionaryRef colorSyncDeviceProfileInfo, - ffi.Pointer userInfo, - ); - -final class ColorSyncMD5 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array digest; -} - -typedef ColorSyncMutableProfileRef = ffi.Pointer; - -final class ColorSyncProfile extends ffi.Opaque {} - -typedef ColorSyncProfileIterateCallback = - ffi.Pointer>; -typedef ColorSyncProfileIterateCallbackFunction = - ffi.Bool Function( - CFDictionaryRef profileInfo, - ffi.Pointer userInfo, - ); -typedef DartColorSyncProfileIterateCallbackFunction = - bool Function(CFDictionaryRef profileInfo, ffi.Pointer userInfo); -typedef ColorSyncProfileRef = ffi.Pointer; - -final class ColorSyncTransform extends ffi.Opaque {} - -typedef ColorSyncTransformRef = ffi.Pointer; - -@ffi.Packed(2) -final class ColorTable extends ffi.Struct { - @SInt32() - external int ctSeed; - - @ffi.Short() - external int ctFlags; - - @ffi.Short() - external int ctSize; - - @ffi.Array.multi([1]) - external ffi.Array ctTable; -} - -@ffi.Packed(2) -final class Comment extends ffi.Struct { - @UInt32() - external int timeStamp; - - @MarkerIdType() - external int marker; - - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array text; -} - -const int CommentID = 1129270612; - -@ffi.Packed(2) -final class CommentsChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt16() - external int numComments; - - @ffi.Array.multi([1]) - external ffi.Array comments; -} - -typedef CommentsChunkPtr = ffi.Pointer; - -@ffi.Packed(2) -final class CommonChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @SInt16() - external int numChannels; - - @UInt32() - external int numSampleFrames; - - @SInt16() - external int sampleSize; - - external extended80 sampleRate; -} - -typedef CommonChunkPtr = ffi.Pointer; - -const int CommonID = 1129270605; - -typedef CompTimeValue = wide; -typedef Component = ffi.Pointer; - -final class ComponentAliasResource extends ffi.Struct { - external ComponentResource cr; - - external ComponentDescription aliasCD; -} - -@ffi.Packed(2) -final class ComponentDescription extends ffi.Struct { - @OSType() - external int componentType; - - @OSType() - external int componentSubType; - - @OSType() - external int componentManufacturer; - - @UInt32() - external int componentFlags; - - @UInt32() - external int componentFlagsMask; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int componentType, - required int componentSubType, - required int componentManufacturer, - required int componentFlags, - required int componentFlagsMask, - }) => $allocator() - ..ref.componentType = componentType - ..ref.componentSubType = componentSubType - ..ref.componentManufacturer = componentManufacturer - ..ref.componentFlags = componentFlags - ..ref.componentFlagsMask = componentFlagsMask; -} - -typedef ComponentFunctionUPP = UniversalProcPtr; -typedef ComponentInstance = ffi.Pointer; - -@ffi.Packed(2) -final class ComponentInstanceRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -@ffi.Packed(2) -final class ComponentMPWorkFunctionHeaderRecord extends ffi.Struct { - @UInt32() - external int headerSize; - - @UInt32() - external int recordSize; - - @UInt32() - external int workFlags; - - @UInt16() - external int processorCount; - - @UInt8() - external int unused; - - @UInt8() - external int isRunning; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int headerSize, - required int recordSize, - required int workFlags, - required int processorCount, - required int unused, - required int isRunning, - }) => $allocator() - ..ref.headerSize = headerSize - ..ref.recordSize = recordSize - ..ref.workFlags = workFlags - ..ref.processorCount = processorCount - ..ref.unused = unused - ..ref.isRunning = isRunning; -} - -typedef ComponentMPWorkFunctionHeaderRecordPtr = - ffi.Pointer; -typedef ComponentMPWorkFunctionProcPtr = - ffi.Pointer>; -typedef ComponentMPWorkFunctionProcPtrFunction = - ComponentResult Function( - ffi.Pointer globalRefCon, - ComponentMPWorkFunctionHeaderRecordPtr header, - ); -typedef DartComponentMPWorkFunctionProcPtrFunction = - DartSInt32 Function( - ffi.Pointer globalRefCon, - ComponentMPWorkFunctionHeaderRecordPtr header, - ); -typedef ComponentMPWorkFunctionUPP = ComponentMPWorkFunctionProcPtr; - -@ffi.Packed(2) -final class ComponentParameters extends ffi.Struct { - @UInt8() - external int flags; - - @UInt8() - external int paramSize; - - @SInt16() - external int what; - - @UInt32() - external int padding; - - @ffi.Array.multi([1]) - external ffi.Array params; -} - -@ffi.Packed(2) -final class ComponentPlatformInfo extends ffi.Struct { - @SInt32() - external int componentFlags; - - external ResourceSpec component; - - @SInt16() - external int platformType; -} - -@ffi.Packed(2) -final class ComponentPlatformInfoArray extends ffi.Struct { - @SInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array platformArray; -} - -@ffi.Packed(2) -final class ComponentRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -final class ComponentResource extends ffi.Struct { - external ComponentDescription cd; - - external ResourceSpec component; - - external ResourceSpec componentName; - - external ResourceSpec componentInfo; - - external ResourceSpec componentIcon; -} - -@ffi.Packed(2) -final class ComponentResourceExtension extends ffi.Struct { - @SInt32() - external int componentVersion; - - @SInt32() - external int componentRegisterFlags; - - @SInt16() - external int componentIconFamily; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int componentVersion, - required int componentRegisterFlags, - required int componentIconFamily, - }) => $allocator() - ..ref.componentVersion = componentVersion - ..ref.componentRegisterFlags = componentRegisterFlags - ..ref.componentIconFamily = componentIconFamily; -} - -typedef ComponentResourceHandle = ffi.Pointer; -typedef ComponentResourcePtr = ffi.Pointer; -typedef ComponentResult = SInt32; -typedef ComponentRoutineProcPtr = - ffi.Pointer>; -typedef ComponentRoutineProcPtrFunction = - ComponentResult Function( - ffi.Pointer cp, - Handle componentStorage, - ); -typedef DartComponentRoutineProcPtrFunction = - DartSInt32 Function( - ffi.Pointer cp, - Handle componentStorage, - ); -typedef ComponentRoutineUPP = ComponentRoutineProcPtr; -typedef ConstATSUAttributeValuePtr = ffi.Pointer; -typedef ConstFSEventStreamRef = ffi.Pointer<__FSEventStream>; -typedef ConstFSSpecPtr = ffi.Pointer; -typedef ConstHFSUniStr255Param = ffi.Pointer; -typedef ConstLogicalAddress = ffi.Pointer; -typedef ConstScriptCodeRunPtr = ffi.Pointer; -typedef ConstStr15Param = ffi.Pointer; -typedef ConstStr255Param = ffi.Pointer; -typedef ConstStr27Param = ffi.Pointer; -typedef ConstStr31Param = ffi.Pointer; -typedef ConstStr32Param = ffi.Pointer; -typedef ConstStr63Param = ffi.Pointer; -typedef ConstStrFileNameParam = ConstStr63Param; -typedef ConstStringPtr = ffi.Pointer; -typedef ConstTextEncodingRunPtr = ffi.Pointer; -typedef ConstTextPtr = ffi.Pointer; -typedef ConstTextToUnicodeInfo = TextToUnicodeInfo; -typedef ConstUniCharArrayPtr = ffi.Pointer; -typedef ConstUnicodeMappingPtr = ffi.Pointer; -typedef ConstUnicodeToTextInfo = UnicodeToTextInfo; - -@ffi.Packed(2) -final class ContainerChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt32() - external int formType; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ckID, - required int ckSize, - required int formType, - }) => $allocator() - ..ref.ckID = ckID - ..ref.ckSize = ckSize - ..ref.formType = formType; -} - -const int CopyrightID = 677587232; - -typedef CoreEndianFlipProc = - ffi.Pointer>; -typedef CoreEndianFlipProcFunction = - OSStatus Function( - OSType dataDomain, - OSType dataType, - SInt16 id, - ffi.Pointer dataPtr, - ByteCount dataSize, - Boolean currentlyNative, - ffi.Pointer refcon, - ); -typedef DartCoreEndianFlipProcFunction = - DartSInt32 Function( - DartUInt32 dataDomain, - DartUInt32 dataType, - DartSInt16 id, - ffi.Pointer dataPtr, - DartByteCount dataSize, - DartBoolean currentlyNative, - ffi.Pointer refcon, - ); - -@ffi.Packed(2) -final class CustomBadgeResource extends ffi.Struct { - @SInt16() - external int version; - - @SInt16() - external int customBadgeResourceID; - - @OSType() - external int customBadgeType; - - @OSType() - external int customBadgeCreator; - - @OSType() - external int windowBadgeType; - - @OSType() - external int windowBadgeCreator; - - @OSType() - external int overrideType; - - @OSType() - external int overrideCreator; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int customBadgeResourceID, - required int customBadgeType, - required int customBadgeCreator, - required int windowBadgeType, - required int windowBadgeCreator, - required int overrideType, - required int overrideCreator, - }) => $allocator() - ..ref.version = version - ..ref.customBadgeResourceID = customBadgeResourceID - ..ref.customBadgeType = customBadgeType - ..ref.customBadgeCreator = customBadgeCreator - ..ref.windowBadgeType = windowBadgeType - ..ref.windowBadgeCreator = windowBadgeCreator - ..ref.overrideType = overrideType - ..ref.overrideCreator = overrideCreator; -} - -typedef CustomBadgeResourceHandle = ffi.Pointer; -typedef CustomBadgeResourcePtr = ffi.Pointer; -typedef DAApprovalSessionRef = ffi.Pointer<__DASession>; -typedef DADiskRef = ffi.Pointer<__DADisk>; -typedef DASessionRef = ffi.Pointer<__DASession>; -typedef DCSDictionaryRef = ffi.Pointer<__DCSDictionary>; -typedef DERByte = ffi.Uint8; -typedef DartDERByte = int; -typedef DERInt = ffi.Uint32; -typedef DartDERInt = int; - -final class DERItem extends ffi.Struct { - external ffi.Pointer data; - - @DERSize() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer data, - required int length, - }) => $allocator() - ..ref.data = data - ..ref.length = length; -} - -typedef DERLong = ffi.Uint64; -typedef DartDERLong = int; -typedef DERShort = ffi.Uint16; -typedef DartDERShort = int; -typedef DERSignedInt = ffi.Int32; -typedef DartDERSignedInt = int; -typedef DERSignedLong = ffi.Int64; -typedef DartDERSignedLong = int; -typedef DERSize = ffi.Size; -typedef DartDERSize = int; -typedef DERTag = DERLong; - -const int DISPATCH_WALLTIME_NOW = -2; - -final class DInfo extends ffi.Struct { - external Rect frRect; - - @UInt16() - external int frFlags; - - external Point frLocation; - - @SInt16() - external int frView; -} - -@ffi.Packed(2) -final class DXInfo extends ffi.Struct { - external Point frScroll; - - @SInt32() - external int frOpenChain; - - @SInt8() - external int frScript; - - @SInt8() - external int frXFlags; - - @SInt16() - external int frComment; - - @SInt32() - external int frPutAway; -} - -typedef DateCachePtr = ffi.Pointer; - -final class DateCacheRecord extends ffi.Struct { - @ffi.Array.multi([256]) - external ffi.Array hidden; -} - -typedef DateDelta = SInt8; -typedef DateForm = SInt8; -typedef DateOrders = SInt8; - -final class DateTimeRec extends ffi.Struct { - @ffi.Short() - external int year; - - @ffi.Short() - external int month; - - @ffi.Short() - external int day; - - @ffi.Short() - external int hour; - - @ffi.Short() - external int minute; - - @ffi.Short() - external int second; - - @ffi.Short() - external int dayOfWeek; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int year, - required int month, - required int day, - required int hour, - required int minute, - required int second, - required int dayOfWeek, - }) => $allocator() - ..ref.year = year - ..ref.month = month - ..ref.day = day - ..ref.hour = hour - ..ref.minute = minute - ..ref.second = second - ..ref.dayOfWeek = dayOfWeek; -} - -typedef DebugAssertOutputHandlerProcPtr = - ffi.Pointer>; -typedef DebugAssertOutputHandlerProcPtrFunction = - ffi.Void Function( - OSType componentSignature, - UInt32 options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - ffi.Long lineNumber, - ffi.Pointer value, - ConstStr255Param outputMsg, - ); -typedef DartDebugAssertOutputHandlerProcPtrFunction = - void Function( - DartUInt32 componentSignature, - DartUInt32 options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - int lineNumber, - ffi.Pointer value, - ConstStr255Param outputMsg, - ); -typedef DebugAssertOutputHandlerUPP = DebugAssertOutputHandlerProcPtr; -typedef DebugComponentCallbackProcPtr = - ffi.Pointer>; -typedef DebugComponentCallbackProcPtrFunction = - ffi.Void Function( - SInt32 optionSelectorNum, - UInt32 command, - ffi.Pointer optionSetting, - ); -typedef DartDebugComponentCallbackProcPtrFunction = - void Function( - DartSInt32 optionSelectorNum, - DartUInt32 command, - ffi.Pointer optionSetting, - ); -typedef DebugComponentCallbackUPP = DebugComponentCallbackProcPtr; -typedef DebuggerDisposeThreadProcPtr = - ffi.Pointer>; -typedef DebuggerDisposeThreadProcPtrFunction = - ffi.Void Function(ThreadID threadDeleted); -typedef DartDebuggerDisposeThreadProcPtrFunction = - void Function(DartThreadID threadDeleted); -typedef DebuggerDisposeThreadTPP = DebuggerDisposeThreadUPP; -typedef DebuggerDisposeThreadUPP = DebuggerDisposeThreadProcPtr; -typedef DebuggerNewThreadProcPtr = - ffi.Pointer>; -typedef DebuggerNewThreadProcPtrFunction = - ffi.Void Function(ThreadID threadCreated); -typedef DartDebuggerNewThreadProcPtrFunction = - void Function(DartThreadID threadCreated); -typedef DebuggerNewThreadTPP = DebuggerNewThreadUPP; -typedef DebuggerNewThreadUPP = DebuggerNewThreadProcPtr; -typedef DebuggerThreadSchedulerProcPtr = - ffi.Pointer>; -typedef DebuggerThreadSchedulerProcPtrFunction = - ThreadID Function(SchedulerInfoRecPtr schedulerInfo); -typedef DartDebuggerThreadSchedulerProcPtrFunction = - DartThreadID Function(SchedulerInfoRecPtr schedulerInfo); -typedef DebuggerThreadSchedulerTPP = DebuggerThreadSchedulerUPP; -typedef DebuggerThreadSchedulerUPP = DebuggerThreadSchedulerProcPtr; - -final class DeferredTask extends ffi.Opaque {} - -typedef DeferredTaskProcPtr = - ffi.Pointer>; -typedef DeferredTaskProcPtrFunction = ffi.Void Function(ffi.Long dtParam); -typedef DartDeferredTaskProcPtrFunction = void Function(int dtParam); -typedef DeferredTaskPtr = ffi.Pointer; -typedef DeferredTaskUPP = DeferredTaskProcPtr; - -final class DelimiterInfo extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array startDelimiter; - - @ffi.Array.multi([2]) - external ffi.Array endDelimiter; -} - -typedef DescType = ResType; -typedef DialogPtr = ffi.Pointer; -typedef DragConstraint = UInt16; -typedef DragGrayRgnProcPtr = - ffi.Pointer>; -typedef DragGrayRgnProcPtrFunction = ffi.Void Function(); -typedef DartDragGrayRgnProcPtrFunction = void Function(); -typedef DragGrayRgnUPP = DragGrayRgnProcPtr; -typedef Duration = SInt32; - -const int EQUALTO = 2; - -enum EvCmd { - EVNOP(0), - EVHIDE(1), - EVSHOW(2), - EVMOVE(3), - EVLEVEL(4); - - final int value; - const EvCmd(this.value); - - static EvCmd fromValue(int value) => switch (value) { - 0 => EVNOP, - 1 => EVHIDE, - 2 => EVSHOW, - 3 => EVMOVE, - 4 => EVLEVEL, - _ => throw ArgumentError('Unknown value for EvCmd: $value'), - }; -} - -typedef ExceptionHandler = ExceptionHandlerTPP; -typedef ExceptionHandlerProcPtr = - ffi.Pointer>; -typedef ExceptionHandlerProcPtrFunction = - OSStatus Function(ffi.Pointer theException); -typedef DartExceptionHandlerProcPtrFunction = - DartSInt32 Function(ffi.Pointer theException); -typedef ExceptionHandlerTPP = ExceptionHandlerUPP; -typedef ExceptionHandlerUPP = ExceptionHandlerProcPtr; - -final class ExceptionInfo extends ffi.Union { - external ffi.Pointer memoryInfo; -} - -final class ExceptionInformation extends ffi.Struct { - @ExceptionKind() - external int theKind; - - external ffi.Pointer machineState; - - external ffi.Pointer registerImage; - - external ffi.Pointer FPUImage; - - external ExceptionInfo info; - - external ffi.Pointer vectorImage; -} - -final class ExceptionInformationPowerPC extends ffi.Struct { - @ExceptionKind() - external int theKind; - - external ffi.Pointer machineState; - - external ffi.Pointer registerImage; - - external ffi.Pointer FPUImage; - - external ExceptionInfo info; - - external ffi.Pointer vectorImage; -} - -typedef ExceptionKind = ffi.UnsignedLong; -typedef DartExceptionKind = int; - -@ffi.Packed(2) -final class ExtCommonChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @SInt16() - external int numChannels; - - @UInt32() - external int numSampleFrames; - - @SInt16() - external int sampleSize; - - external extended80 sampleRate; - - @UInt32() - external int compressionType; - - @ffi.Array.multi([1]) - external ffi.Array compressionName; -} - -typedef ExtCommonChunkPtr = ffi.Pointer; - -@ffi.Packed(2) -final class ExtComponentResource extends ffi.Struct { - external ComponentDescription cd; - - external ResourceSpec component; - - external ResourceSpec componentName; - - external ResourceSpec componentInfo; - - external ResourceSpec componentIcon; - - @SInt32() - external int componentVersion; - - @SInt32() - external int componentRegisterFlags; - - @SInt16() - external int componentIconFamily; - - @SInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array platformArray; -} - -typedef ExtComponentResourceHandle = ffi.Pointer; -typedef ExtComponentResourcePtr = ffi.Pointer; - -@ffi.Packed(2) -final class ExtendedFileInfo extends ffi.Struct { - @ffi.Array.multi([4]) - external ffi.Array reserved1; - - @UInt16() - external int extendedFinderFlags; - - @SInt16() - external int reserved2; - - @SInt32() - external int putAwayFolderID; -} - -@ffi.Packed(2) -final class ExtendedFolderInfo extends ffi.Struct { - external Point scrollPosition; - - @SInt32() - external int reserved1; - - @UInt16() - external int extendedFinderFlags; - - @SInt16() - external int reserved2; - - @SInt32() - external int putAwayFolderID; -} - -typedef FILE = __sFILE; - -@ffi.Packed(2) -final class FInfo extends ffi.Struct { - @OSType() - external int fdType; - - @OSType() - external int fdCreator; - - @UInt16() - external int fdFlags; - - external Point fdLocation; - - @SInt16() - external int fdFldr; -} - -typedef FMFilterSelector = UInt32; -typedef FMFont = UInt32; -typedef FMFontFamily = SInt16; - -final class FMFontFamilyInstance extends ffi.Struct { - @FMFontFamily() - external int fontFamily; - - @FMFontStyle() - external int fontStyle; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fontFamily, - required int fontStyle, - }) => $allocator() - ..ref.fontFamily = fontFamily - ..ref.fontStyle = fontStyle; -} - -@ffi.Packed(2) -final class FMFontFamilyInstanceIterator extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array reserved; -} - -@ffi.Packed(2) -final class FMFontFamilyIterator extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array reserved; -} - -@ffi.Packed(2) -final class FMFontIterator extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array reserved; -} - -typedef FMFontSize = SInt16; -typedef FMFontStyle = SInt16; -typedef FMGeneration = UInt32; - -final class FMInput extends ffi.Struct { - @ffi.Short() - external int family; - - @ffi.Short() - external int size; - - @Style() - external int face; - - @Boolean() - external int needBits; - - @ffi.Short() - external int device; - - external Point numer; - - external Point denom; -} - -typedef FNMessage = UInt32; -typedef FNSubscriptionProcPtr = - ffi.Pointer>; -typedef FNSubscriptionProcPtrFunction = - ffi.Void Function( - FNMessage message, - OptionBits flags, - ffi.Pointer refcon, - FNSubscriptionRef subscription, - ); -typedef DartFNSubscriptionProcPtrFunction = - void Function( - DartUInt32 message, - DartUInt32 flags, - ffi.Pointer refcon, - FNSubscriptionRef subscription, - ); -typedef FNSubscriptionRef = ffi.Pointer; -typedef FNSubscriptionUPP = FNSubscriptionProcPtr; - -const int FORMID = 1179603533; - -final class FPUInformation extends ffi.Struct { - external ffi.Pointer __unusedFPUInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedFPUInformationField, - }) => - $allocator() - ..ref.__unusedFPUInformationField = $unusedFPUInformationField; -} - -final class FPUInformationPowerPC extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array Registers; - - @ffi.UnsignedLong() - external int FPSCR; - - @ffi.UnsignedLong() - external int Reserved; -} - -typedef FSAliasFilterProcPtr = - ffi.Pointer>; -typedef FSAliasFilterProcPtrFunction = - Boolean Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - Ptr myDataPtr, - ); -typedef DartFSAliasFilterProcPtrFunction = - DartBoolean Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - Ptr myDataPtr, - ); - -@ffi.Packed(2) -final class FSAliasInfo extends ffi.Struct { - external UTCDateTime volumeCreateDate; - - external UTCDateTime targetCreateDate; - - @OSType() - external int fileType; - - @OSType() - external int fileCreator; - - @UInt32() - external int parentDirID; - - @UInt32() - external int nodeID; - - @UInt16() - external int filesystemID; - - @UInt16() - external int signature; - - @Boolean() - external int volumeIsBootVolume; - - @Boolean() - external int volumeIsAutomounted; - - @Boolean() - external int volumeIsEjectable; - - @Boolean() - external int volumeHasPersistentFileIDs; - - @Boolean() - external int isDirectory; -} - -typedef FSAliasInfoBitmap = UInt32; -typedef FSAliasInfoPtr = ffi.Pointer; -typedef FSAllocationFlags = UInt16; - -@ffi.Packed(2) -final class FSCatalogBulkParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - @Boolean() - external int containerChanged; - - @UInt8() - external int reserved; - - @FSIteratorFlags() - external int iteratorFlags; - - external FSIterator iterator; - - external ffi.Pointer container; - - @ItemCount() - external int maximumItems; - - @ItemCount() - external int actualItems; - - @FSCatalogInfoBitmap() - external int whichInfo; - - external ffi.Pointer catalogInfo; - - external ffi.Pointer refs; - - external FSSpecPtr specs; - - external ffi.Pointer names; - - external ffi.Pointer searchParams; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required int containerChanged, - required int reserved, - required int iteratorFlags, - required FSIterator iterator, - required ffi.Pointer container, - required int maximumItems, - required int actualItems, - required int whichInfo, - required ffi.Pointer catalogInfo, - required ffi.Pointer refs, - required FSSpecPtr specs, - required ffi.Pointer names, - required ffi.Pointer searchParams, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.containerChanged = containerChanged - ..ref.reserved = reserved - ..ref.iteratorFlags = iteratorFlags - ..ref.iterator = iterator - ..ref.container = container - ..ref.maximumItems = maximumItems - ..ref.actualItems = actualItems - ..ref.whichInfo = whichInfo - ..ref.catalogInfo = catalogInfo - ..ref.refs = refs - ..ref.specs = specs - ..ref.names = names - ..ref.searchParams = searchParams; -} - -typedef FSCatalogBulkParamPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FSCatalogInfo extends ffi.Struct { - @UInt16() - external int nodeFlags; - - @FSVolumeRefNum() - external int volume; - - @UInt32() - external int parentDirID; - - @UInt32() - external int nodeID; - - @UInt8() - external int sharingFlags; - - @UInt8() - external int userPrivileges; - - @UInt8() - external int reserved1; - - @UInt8() - external int reserved2; - - external UTCDateTime createDate; - - external UTCDateTime contentModDate; - - external UTCDateTime attributeModDate; - - external UTCDateTime accessDate; - - external UTCDateTime backupDate; - - external FSPermissionInfo permissions; - - @ffi.Array.multi([16]) - external ffi.Array finderInfo; - - @ffi.Array.multi([16]) - external ffi.Array extFinderInfo; - - @UInt64() - external int dataLogicalSize; - - @UInt64() - external int dataPhysicalSize; - - @UInt64() - external int rsrcLogicalSize; - - @UInt64() - external int rsrcPhysicalSize; - - @UInt32() - external int valence; - - @TextEncoding() - external int textEncodingHint; -} - -typedef FSCatalogInfoBitmap = UInt32; -typedef FSCatalogInfoPtr = ffi.Pointer; -typedef FSEjectStatus = UInt32; -typedef FSEventStreamCallback = - ffi.Pointer>; -typedef FSEventStreamCallbackFunction = - ffi.Void Function( - ConstFSEventStreamRef streamRef, - ffi.Pointer clientCallBackInfo, - ffi.Size numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ); -typedef DartFSEventStreamCallbackFunction = - void Function( - ConstFSEventStreamRef streamRef, - ffi.Pointer clientCallBackInfo, - int numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ); - -@ffi.Packed(2) -final class FSEventStreamContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef FSEventStreamCreateFlags = UInt32; -typedef FSEventStreamEventFlags = UInt32; -typedef FSEventStreamEventId = UInt64; -typedef FSEventStreamRef = ffi.Pointer<__FSEventStream>; - -@ffi.Packed(2) -final class FSFileOperationClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef FSFileOperationRef = ffi.Pointer<__FSFileOperation>; -typedef FSFileOperationStage = UInt32; -typedef FSFileOperationStatusProcPtr = - ffi.Pointer>; -typedef FSFileOperationStatusProcPtrFunction = - ffi.Void Function( - FSFileOperationRef fileOp, - ffi.Pointer currentItem, - FSFileOperationStage stage, - OSStatus error, - CFDictionaryRef statusDictionary, - ffi.Pointer info, - ); -typedef DartFSFileOperationStatusProcPtrFunction = - void Function( - FSFileOperationRef fileOp, - ffi.Pointer currentItem, - DartUInt32 stage, - DartSInt32 error, - CFDictionaryRef statusDictionary, - ffi.Pointer info, - ); -typedef FSFileSecurityRef = ffi.Pointer<__FSFileSecurity>; - -@ffi.Packed(2) -final class FSForkCBInfoParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - @FSIORefNum() - external int desiredRefNum; - - @FSVolumeRefNum() - external int volumeRefNum; - - @FSIORefNum() - external int iterator; - - @FSVolumeRefNum() - external int actualRefNum; - - external ffi.Pointer ref; - - external ffi.Pointer forkInfo; - - external ffi.Pointer forkName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required int desiredRefNum, - required int volumeRefNum, - required int iterator, - required int actualRefNum, - required ffi.Pointer ref, - required ffi.Pointer forkInfo, - required ffi.Pointer forkName, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.desiredRefNum = desiredRefNum - ..ref.volumeRefNum = volumeRefNum - ..ref.iterator = iterator - ..ref.actualRefNum = actualRefNum - ..ref.ref = ref - ..ref.forkInfo = forkInfo - ..ref.forkName = forkName; -} - -typedef FSForkCBInfoParamPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FSForkIOParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - external ffi.Pointer reserved1; - - @SInt16() - external int reserved2; - - @FSIORefNum() - external int forkRefNum; - - @UInt8() - external int reserved3; - - @SInt8() - external int permissions; - - external ffi.Pointer ref; - - external Ptr buffer; - - @UInt32() - external int requestCount; - - @UInt32() - external int actualCount; - - @UInt16() - external int positionMode; - - @SInt64() - external int positionOffset; - - @FSAllocationFlags() - external int allocationFlags; - - @UInt64() - external int allocationAmount; - - @UniCharCount() - external int forkNameLength; - - external ffi.Pointer forkName; - - external CatPositionRec forkIterator; - - external ffi.Pointer outForkName; -} - -typedef FSForkIOParamPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FSForkInfo extends ffi.Struct { - @FSForkInfoFlags() - external int flags; - - @SInt8() - external int permissions; - - @FSVolumeRefNum() - external int volume; - - @UInt32() - external int reserved2; - - @UInt32() - external int nodeID; - - @UInt32() - external int forkID; - - @UInt64() - external int currentPosition; - - @UInt64() - external int logicalEOF; - - @UInt64() - external int physicalEOF; - - @UInt64() - external int process; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int permissions, - required int volume, - required int reserved2, - required int nodeID, - required int forkID, - required int currentPosition, - required int logicalEOF, - required int physicalEOF, - required int process, - }) => $allocator() - ..ref.flags = flags - ..ref.permissions = permissions - ..ref.volume = volume - ..ref.reserved2 = reserved2 - ..ref.nodeID = nodeID - ..ref.forkID = forkID - ..ref.currentPosition = currentPosition - ..ref.logicalEOF = logicalEOF - ..ref.physicalEOF = physicalEOF - ..ref.process = process; -} - -typedef FSForkInfoFlags = UInt8; -typedef FSForkInfoPtr = ffi.Pointer; -typedef FSIORefNum = ffi.Int; -typedef DartFSIORefNum = int; -typedef FSIterator = ffi.Pointer; -typedef FSIteratorFlags = OptionBits; -typedef FSMountStatus = UInt32; -typedef FSPathFileOperationStatusProcPtr = - ffi.Pointer>; -typedef FSPathFileOperationStatusProcPtrFunction = - ffi.Void Function( - FSFileOperationRef fileOp, - ffi.Pointer currentItem, - FSFileOperationStage stage, - OSStatus error, - CFDictionaryRef statusDictionary, - ffi.Pointer info, - ); -typedef DartFSPathFileOperationStatusProcPtrFunction = - void Function( - FSFileOperationRef fileOp, - ffi.Pointer currentItem, - DartUInt32 stage, - DartSInt32 error, - CFDictionaryRef statusDictionary, - ffi.Pointer info, - ); - -@ffi.Packed(2) -final class FSPermissionInfo extends ffi.Struct { - @UInt32() - external int userID; - - @UInt32() - external int groupID; - - @UInt8() - external int reserved1; - - @UInt8() - external int userAccess; - - @UInt16() - external int mode; - - external FSFileSecurityRef fileSec; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int userID, - required int groupID, - required int reserved1, - required int userAccess, - required int mode, - required FSFileSecurityRef fileSec, - }) => $allocator() - ..ref.userID = userID - ..ref.groupID = groupID - ..ref.reserved1 = reserved1 - ..ref.userAccess = userAccess - ..ref.mode = mode - ..ref.fileSec = fileSec; -} - -@ffi.Packed(2) -final class FSRangeLockParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - @FSIORefNum() - external int forkRefNum; - - @UInt64() - external int requestCount; - - @UInt16() - external int positionMode; - - @SInt64() - external int positionOffset; - - @UInt64() - external int rangeStart; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required int forkRefNum, - required int requestCount, - required int positionMode, - required int positionOffset, - required int rangeStart, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.forkRefNum = forkRefNum - ..ref.requestCount = requestCount - ..ref.positionMode = positionMode - ..ref.positionOffset = positionOffset - ..ref.rangeStart = rangeStart; -} - -typedef FSRangeLockParamPtr = ffi.Pointer; - -final class FSRef extends ffi.Struct { - @ffi.Array.multi([80]) - external ffi.Array hidden; -} - -@ffi.Packed(2) -final class FSRefForkIOParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - external ffi.Pointer parentRef; - - @UniCharCount() - external int nameLength; - - external ffi.Pointer name; - - @FSCatalogInfoBitmap() - external int whichInfo; - - external ffi.Pointer catInfo; - - @UniCharCount() - external int forkNameLength; - - external ffi.Pointer forkName; - - @SInt8() - external int permissions; - - @UInt8() - external int reserved1; - - @FSIORefNum() - external int forkRefNum; - - external ffi.Pointer newRef; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required ffi.Pointer parentRef, - required int nameLength, - required ffi.Pointer name, - required int whichInfo, - required ffi.Pointer catInfo, - required int forkNameLength, - required ffi.Pointer forkName, - required int permissions, - required int reserved1, - required int forkRefNum, - required ffi.Pointer newRef, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.parentRef = parentRef - ..ref.nameLength = nameLength - ..ref.name = name - ..ref.whichInfo = whichInfo - ..ref.catInfo = catInfo - ..ref.forkNameLength = forkNameLength - ..ref.forkName = forkName - ..ref.permissions = permissions - ..ref.reserved1 = reserved1 - ..ref.forkRefNum = forkRefNum - ..ref.newRef = newRef; -} - -typedef FSRefForkIOParamPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FSRefParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - external ConstStringPtr ioNamePtr; - - @FSVolumeRefNum() - external int ioVRefNum; - - @SInt16() - external int reserved1; - - @UInt8() - external int reserved2; - - @UInt8() - external int reserved3; - - external ffi.Pointer ref; - - @FSCatalogInfoBitmap() - external int whichInfo; - - external ffi.Pointer catInfo; - - @UniCharCount() - external int nameLength; - - external ffi.Pointer name; - - @UInt32() - external int ioDirID; - - external FSSpecPtr spec; - - external ffi.Pointer parentRef; - - external ffi.Pointer newRef; - - @TextEncoding() - external int textEncodingHint; - - external ffi.Pointer outName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required ConstStringPtr ioNamePtr, - required int ioVRefNum, - required int reserved1, - required int reserved2, - required int reserved3, - required ffi.Pointer ref, - required int whichInfo, - required ffi.Pointer catInfo, - required int nameLength, - required ffi.Pointer name, - required int ioDirID, - required FSSpecPtr spec, - required ffi.Pointer parentRef, - required ffi.Pointer newRef, - required int textEncodingHint, - required ffi.Pointer outName, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.ioNamePtr = ioNamePtr - ..ref.ioVRefNum = ioVRefNum - ..ref.reserved1 = reserved1 - ..ref.reserved2 = reserved2 - ..ref.reserved3 = reserved3 - ..ref.ref = ref - ..ref.whichInfo = whichInfo - ..ref.catInfo = catInfo - ..ref.nameLength = nameLength - ..ref.name = name - ..ref.ioDirID = ioDirID - ..ref.spec = spec - ..ref.parentRef = parentRef - ..ref.newRef = newRef - ..ref.textEncodingHint = textEncodingHint - ..ref.outName = outName; -} - -typedef FSRefParamPtr = ffi.Pointer; -typedef FSRefPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FSSearchParams extends ffi.Struct { - @Duration() - external int searchTime; - - @OptionBits() - external int searchBits; - - @UniCharCount() - external int searchNameLength; - - external ffi.Pointer searchName; - - external ffi.Pointer searchInfo1; - - external ffi.Pointer searchInfo2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int searchTime, - required int searchBits, - required int searchNameLength, - required ffi.Pointer searchName, - required ffi.Pointer searchInfo1, - required ffi.Pointer searchInfo2, - }) => $allocator() - ..ref.searchTime = searchTime - ..ref.searchBits = searchBits - ..ref.searchNameLength = searchNameLength - ..ref.searchName = searchName - ..ref.searchInfo1 = searchInfo1 - ..ref.searchInfo2 = searchInfo2; -} - -typedef FSSearchParamsPtr = ffi.Pointer; - -final class FSSpec extends ffi.Struct { - @ffi.Array.multi([70]) - external ffi.Array hidden; -} - -typedef FSSpecArrayPtr = FSSpecPtr; -typedef FSSpecHandle = ffi.Pointer; -typedef FSSpecPtr = ffi.Pointer; -typedef FSUnmountStatus = UInt32; -typedef FSVolumeEjectProcPtr = - ffi.Pointer>; -typedef FSVolumeEjectProcPtrFunction = - ffi.Void Function( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - OSStatus err, - FSVolumeRefNum volumeRefNum, - pid_t dissenter, - ); -typedef DartFSVolumeEjectProcPtrFunction = - void Function( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - DartSInt32 err, - DartSInt16 volumeRefNum, - Dart__int32_t dissenter, - ); -typedef FSVolumeEjectUPP = FSVolumeEjectProcPtr; - -@ffi.Packed(2) -final class FSVolumeInfo extends ffi.Struct { - external UTCDateTime createDate; - - external UTCDateTime modifyDate; - - external UTCDateTime backupDate; - - external UTCDateTime checkedDate; - - @UInt32() - external int fileCount; - - @UInt32() - external int folderCount; - - @UInt64() - external int totalBytes; - - @UInt64() - external int freeBytes; - - @UInt32() - external int blockSize; - - @UInt32() - external int totalBlocks; - - @UInt32() - external int freeBlocks; - - @UInt32() - external int nextAllocation; - - @UInt32() - external int rsrcClumpSize; - - @UInt32() - external int dataClumpSize; - - @UInt32() - external int nextCatalogID; - - @ffi.Array.multi([32]) - external ffi.Array finderInfo; - - @UInt16() - external int flags; - - @UInt16() - external int filesystemID; - - @UInt16() - external int signature; - - @UInt16() - external int driveNumber; - - @FSIORefNum() - external int driverRefNum; -} - -typedef FSVolumeInfoBitmap = UInt32; - -@ffi.Packed(2) -final class FSVolumeInfoParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - external StringPtr ioNamePtr; - - @FSVolumeRefNum() - external int ioVRefNum; - - @UInt32() - external int volumeIndex; - - @FSVolumeInfoBitmap() - external int whichInfo; - - external ffi.Pointer volumeInfo; - - external ffi.Pointer volumeName; - - external ffi.Pointer ref; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required StringPtr ioNamePtr, - required int ioVRefNum, - required int volumeIndex, - required int whichInfo, - required ffi.Pointer volumeInfo, - required ffi.Pointer volumeName, - required ffi.Pointer ref, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.ioNamePtr = ioNamePtr - ..ref.ioVRefNum = ioVRefNum - ..ref.volumeIndex = volumeIndex - ..ref.whichInfo = whichInfo - ..ref.volumeInfo = volumeInfo - ..ref.volumeName = volumeName - ..ref.ref = ref; -} - -typedef FSVolumeInfoParamPtr = ffi.Pointer; -typedef FSVolumeInfoPtr = ffi.Pointer; -typedef FSVolumeMountProcPtr = - ffi.Pointer>; -typedef FSVolumeMountProcPtrFunction = - ffi.Void Function( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - OSStatus err, - FSVolumeRefNum mountedVolumeRefNum, - ); -typedef DartFSVolumeMountProcPtrFunction = - void Function( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - DartSInt32 err, - DartSInt16 mountedVolumeRefNum, - ); -typedef FSVolumeMountUPP = FSVolumeMountProcPtr; -typedef FSVolumeOperation = ffi.Pointer; -typedef FSVolumeRefNum = SInt16; -typedef FSVolumeUnmountProcPtr = - ffi.Pointer>; -typedef FSVolumeUnmountProcPtrFunction = - ffi.Void Function( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - OSStatus err, - FSVolumeRefNum volumeRefNum, - pid_t dissenter, - ); -typedef DartFSVolumeUnmountProcPtrFunction = - void Function( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - DartSInt32 err, - DartSInt16 volumeRefNum, - Dart__int32_t dissenter, - ); -typedef FSVolumeUnmountUPP = FSVolumeUnmountProcPtr; - -final class FVector extends ffi.Struct { - @ffi.Short() - external int start; - - @ffi.Short() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int start, - required int length, - }) => $allocator() - ..ref.start = start - ..ref.length = length; -} - -@ffi.Packed(2) -final class FXInfo extends ffi.Struct { - @SInt16() - external int fdIconID; - - @ffi.Array.multi([3]) - external ffi.Array fdReserved; - - @SInt8() - external int fdScript; - - @SInt8() - external int fdXFlags; - - @SInt16() - external int fdComment; - - @SInt32() - external int fdPutAway; -} - -@ffi.Packed(2) -final class FamRec extends ffi.Struct { - @SInt16() - external int ffFlags; - - @SInt16() - external int ffFamID; - - @SInt16() - external int ffFirstChar; - - @SInt16() - external int ffLastChar; - - @SInt16() - external int ffAscent; - - @SInt16() - external int ffDescent; - - @SInt16() - external int ffLeading; - - @SInt16() - external int ffWidMax; - - @SInt32() - external int ffWTabOff; - - @SInt32() - external int ffKernOff; - - @SInt32() - external int ffStylOff; - - @ffi.Array.multi([9]) - external ffi.Array ffProperty; - - @ffi.Array.multi([2]) - external ffi.Array ffIntl; - - @SInt16() - external int ffVersion; -} - -@ffi.Packed(2) -final class FileInfo extends ffi.Struct { - @OSType() - external int fileType; - - @OSType() - external int fileCreator; - - @UInt16() - external int finderFlags; - - external Point location; - - @UInt16() - external int reservedField; -} - -typedef Fixed = SInt32; - -@ffi.Packed(2) -final class FixedPoint extends ffi.Struct { - @Fixed() - external int x; - - @Fixed() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -typedef FixedPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FixedRect extends ffi.Struct { - @Fixed() - external int left; - - @Fixed() - external int top; - - @Fixed() - external int right; - - @Fixed() - external int bottom; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int left, - required int top, - required int right, - required int bottom, - }) => $allocator() - ..ref.left = left - ..ref.top = top - ..ref.right = right - ..ref.bottom = bottom; -} - -typedef Float32 = ffi.Float; -typedef DartFloat32 = double; - -@ffi.Packed(2) -final class Float32Point extends ffi.Struct { - @Float32() - external double x; - - @Float32() - external double y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double x, - required double y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -typedef Float64 = ffi.Double; -typedef DartFloat64 = double; - -final class Float80 extends ffi.Struct { - @SInt16() - external int exp$1; - - @ffi.Array.multi([4]) - external ffi.Array man; -} - -final class Float96 extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array exp$1; - - @ffi.Array.multi([4]) - external ffi.Array man; -} - -@ffi.Packed(2) -final class FndrDirInfo extends ffi.Struct { - external UnnamedStruct$5 frRect; - - @ffi.UnsignedShort() - external int frFlags; - - external UnnamedStruct$6 frLocation; - - @ffi.Int16() - external int opaque; -} - -@ffi.Packed(2) -final class FndrExtendedDirInfo extends ffi.Struct { - @u_int32_t() - external int document_id; - - @u_int32_t() - external int date_added; - - @u_int16_t() - external int extended_flags; - - @u_int16_t() - external int reserved3; - - @u_int32_t() - external int write_gen_counter; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int document_id, - required int date_added, - required int extended_flags, - required int reserved3, - required int write_gen_counter, - }) => $allocator() - ..ref.document_id = document_id - ..ref.date_added = date_added - ..ref.extended_flags = extended_flags - ..ref.reserved3 = reserved3 - ..ref.write_gen_counter = write_gen_counter; -} - -@ffi.Packed(2) -final class FndrExtendedFileInfo extends ffi.Struct { - @u_int32_t() - external int document_id; - - @u_int32_t() - external int date_added; - - @u_int16_t() - external int extended_flags; - - @u_int16_t() - external int reserved2; - - @u_int32_t() - external int write_gen_counter; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int document_id, - required int date_added, - required int extended_flags, - required int reserved2, - required int write_gen_counter, - }) => $allocator() - ..ref.document_id = document_id - ..ref.date_added = date_added - ..ref.extended_flags = extended_flags - ..ref.reserved2 = reserved2 - ..ref.write_gen_counter = write_gen_counter; -} - -@ffi.Packed(2) -final class FndrFileInfo extends ffi.Struct { - @u_int32_t() - external int fdType; - - @u_int32_t() - external int fdCreator; - - @u_int16_t() - external int fdFlags; - - external UnnamedStruct$7 fdLocation; - - @ffi.Int16() - external int opaque; -} - -@ffi.Packed(2) -final class FndrOpaqueInfo extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array opaque; -} - -typedef FolderClass = OSType; - -@ffi.Packed(2) -final class FolderDesc extends ffi.Struct { - @Size() - external int descSize; - - @FolderType() - external int foldType; - - @FolderDescFlags() - external int flags; - - @FolderClass() - external int foldClass; - - @FolderType() - external int foldLocation; - - @OSType() - external int badgeSignature; - - @OSType() - external int badgeType; - - @UInt32() - external int reserved; - - @ffi.Array.multi([64]) - external ffi.Array name; -} - -typedef FolderDescFlags = UInt32; -typedef FolderDescPtr = ffi.Pointer; - -final class FolderInfo extends ffi.Struct { - external Rect windowBounds; - - @UInt16() - external int finderFlags; - - external Point location; - - @UInt16() - external int reservedField; -} - -typedef FolderLocation = OSType; -typedef FolderManagerNotificationProcPtr = - ffi.Pointer>; -typedef FolderManagerNotificationProcPtrFunction = - OSStatus Function( - OSType message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ); -typedef DartFolderManagerNotificationProcPtrFunction = - DartSInt32 Function( - DartUInt32 message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ); -typedef FolderManagerNotificationUPP = FolderManagerNotificationProcPtr; - -@ffi.Packed(2) -final class FolderRouting extends ffi.Struct { - @Size() - external int descSize; - - @OSType() - external int fileType; - - @FolderType() - external int routeFromFolder; - - @FolderType() - external int routeToFolder; - - @RoutingFlags() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int descSize, - required int fileType, - required int routeFromFolder, - required int routeToFolder, - required int flags, - }) => $allocator() - ..ref.descSize = descSize - ..ref.fileType = fileType - ..ref.routeFromFolder = routeFromFolder - ..ref.routeToFolder = routeToFolder - ..ref.flags = flags; -} - -typedef FolderRoutingPtr = ffi.Pointer; -typedef FolderType = OSType; - -final class FontAssoc extends ffi.Struct { - @SInt16() - external int numAssoc; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numAssoc, - }) => $allocator()..ref.numAssoc = numAssoc; -} - -final class FontInfo extends ffi.Struct { - @ffi.Short() - external int ascent; - - @ffi.Short() - external int descent; - - @ffi.Short() - external int widMax; - - @ffi.Short() - external int leading; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ascent, - required int descent, - required int widMax, - required int leading, - }) => $allocator() - ..ref.ascent = ascent - ..ref.descent = descent - ..ref.widMax = widMax - ..ref.leading = leading; -} - -typedef FontLanguageCode = UInt32; -typedef FontNameCode = UInt32; -typedef FontPlatformCode = UInt32; - -final class FontRec extends ffi.Struct { - @SInt16() - external int fontType; - - @SInt16() - external int firstChar; - - @SInt16() - external int lastChar; - - @SInt16() - external int widMax; - - @SInt16() - external int kernMax; - - @SInt16() - external int nDescent; - - @SInt16() - external int fRectWidth; - - @SInt16() - external int fRectHeight; - - @UInt16() - external int owTLoc; - - @SInt16() - external int ascent; - - @SInt16() - external int descent; - - @SInt16() - external int leading; - - @SInt16() - external int rowWords; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fontType, - required int firstChar, - required int lastChar, - required int widMax, - required int kernMax, - required int nDescent, - required int fRectWidth, - required int fRectHeight, - required int owTLoc, - required int ascent, - required int descent, - required int leading, - required int rowWords, - }) => $allocator() - ..ref.fontType = fontType - ..ref.firstChar = firstChar - ..ref.lastChar = lastChar - ..ref.widMax = widMax - ..ref.kernMax = kernMax - ..ref.nDescent = nDescent - ..ref.fRectWidth = fRectWidth - ..ref.fRectHeight = fRectHeight - ..ref.owTLoc = owTLoc - ..ref.ascent = ascent - ..ref.descent = descent - ..ref.leading = leading - ..ref.rowWords = rowWords; -} - -typedef FontRecHdl = ffi.Pointer; -typedef FontRecPtr = ffi.Pointer; -typedef FontScriptCode = UInt32; - -@ffi.Packed(2) -final class FontVariation extends ffi.Struct { - @FourCharCode() - external int name; - - @Fixed() - external int value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int name, - required int value, - }) => $allocator() - ..ref.name = name - ..ref.value = value; -} - -typedef FormatClass = SInt8; -typedef FormatResultType = SInt8; -typedef FormatStatus = ffi.Short; -typedef DartFormatStatus = int; - -@ffi.Packed(2) -final class FormatVersionChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt32() - external int timestamp; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ckID, - required int ckSize, - required int timestamp, - }) => $allocator() - ..ref.ckID = ckID - ..ref.ckSize = ckSize - ..ref.timestamp = timestamp; -} - -typedef FormatVersionChunkPtr = ffi.Pointer; - -const int FormatVersionID = 1180058962; - -const int ForwardBackwardLooping = 2; - -const int ForwardLooping = 1; - -typedef FourCharCode = UInt32; -typedef Fract = SInt32; -typedef FractPtr = ffi.Pointer; -typedef GDHandle = ffi.Pointer; -typedef GDPtr = ffi.Pointer; - -@ffi.Packed(2) -final class GDevice extends ffi.Struct { - @ffi.Short() - external int gdRefNum; - - @ffi.Short() - external int gdID; - - @ffi.Short() - external int gdType; - - external Handle gdITable; - - @ffi.Short() - external int gdResPref; - - external Handle gdSearchProc; - - external Handle gdCompProc; - - @ffi.Short() - external int gdFlags; - - external PixMapHandle gdPMap; - - @SInt32() - external int gdRefCon; - - external GDHandle gdNextGD; - - external Rect gdRect; - - @SInt32() - external int gdMode; - - @ffi.Short() - external int gdCCBytes; - - @ffi.Short() - external int gdCCDepth; - - external Handle gdCCXData; - - external Handle gdCCXMask; - - external Handle gdExt; -} - -typedef GLbitfield = ffi.Uint32; -typedef DartGLbitfield = int; -typedef GLboolean = ffi.Uint8; -typedef DartGLboolean = int; -typedef GLbyte = ffi.Int8; -typedef DartGLbyte = int; -typedef GLchar = ffi.Char; -typedef DartGLchar = int; -typedef GLcharARB = ffi.Char; -typedef DartGLcharARB = int; -typedef GLclampd = ffi.Double; -typedef DartGLclampd = double; -typedef GLclampf = ffi.Float; -typedef DartGLclampf = double; -typedef GLdouble = ffi.Double; -typedef DartGLdouble = double; -typedef GLenum = ffi.Uint32; -typedef DartGLenum = int; -typedef GLfixed = ffi.Int32; -typedef DartGLfixed = int; -typedef GLfloat = ffi.Float; -typedef DartGLfloat = double; -typedef GLhalf = ffi.Uint16; -typedef DartGLhalf = int; -typedef GLhalfARB = ffi.Uint16; -typedef DartGLhalfARB = int; -typedef GLhandleARB = ffi.Pointer; -typedef GLint = ffi.Int32; -typedef DartGLint = int; -typedef GLint64 = ffi.Int64; -typedef DartGLint64 = int; -typedef GLint64EXT = ffi.Int64; -typedef DartGLint64EXT = int; -typedef GLintptr = ffi.IntPtr; -typedef DartGLintptr = int; -typedef GLintptrARB = ffi.IntPtr; -typedef DartGLintptrARB = int; -typedef GLshort = ffi.Int16; -typedef DartGLshort = int; -typedef GLsizei = ffi.Int32; -typedef DartGLsizei = int; -typedef GLsizeiptr = ffi.IntPtr; -typedef DartGLsizeiptr = int; -typedef GLsizeiptrARB = ffi.IntPtr; -typedef DartGLsizeiptrARB = int; -typedef GLsync = ffi.Pointer<__GLsync>; -typedef GLubyte = ffi.Uint8; -typedef DartGLubyte = int; -typedef GLuint = ffi.Uint32; -typedef DartGLuint = int; -typedef GLuint64 = ffi.Uint64; -typedef DartGLuint64 = int; -typedef GLuint64EXT = ffi.Uint64; -typedef DartGLuint64EXT = int; -typedef GLushort = ffi.Uint16; -typedef DartGLushort = int; -typedef GLvoid = ffi.Void; -typedef DartGLvoid = void; - -const int GREATERTHAN = 0; - -typedef GWorldFlags = ffi.UnsignedLong; -typedef DartGWorldFlags = int; -typedef GWorldPtr = CGrafPtr; -typedef GetMissingComponentResourceProcPtr = - ffi.Pointer>; -typedef GetMissingComponentResourceProcPtrFunction = - OSErr Function( - Component c, - OSType resType, - SInt16 resID, - ffi.Pointer refCon, - ffi.Pointer resource, - ); -typedef DartGetMissingComponentResourceProcPtrFunction = - DartSInt16 Function( - Component c, - DartUInt32 resType, - DartSInt16 resID, - ffi.Pointer refCon, - ffi.Pointer resource, - ); -typedef GetMissingComponentResourceUPP = GetMissingComponentResourceProcPtr; - -@ffi.Packed(2) -final class GetVolParmsInfoBuffer extends ffi.Struct { - @SInt16() - external int vMVersion; - - @SInt32() - external int vMAttrib; - - external Handle vMLocalHand; - - @SInt32() - external int vMServerAdr; - - @SInt32() - external int vMVolumeGrade; - - @SInt16() - external int vMForeignPrivID; - - @SInt32() - external int vMExtendedAttributes; - - external ffi.Pointer vMDeviceID; - - @UniCharCount() - external int vMMaxNameLength; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int vMVersion, - required int vMAttrib, - required Handle vMLocalHand, - required int vMServerAdr, - required int vMVolumeGrade, - required int vMForeignPrivID, - required int vMExtendedAttributes, - required ffi.Pointer vMDeviceID, - required int vMMaxNameLength, - }) => $allocator() - ..ref.vMVersion = vMVersion - ..ref.vMAttrib = vMAttrib - ..ref.vMLocalHand = vMLocalHand - ..ref.vMServerAdr = vMServerAdr - ..ref.vMVolumeGrade = vMVolumeGrade - ..ref.vMForeignPrivID = vMForeignPrivID - ..ref.vMExtendedAttributes = vMExtendedAttributes - ..ref.vMDeviceID = vMDeviceID - ..ref.vMMaxNameLength = vMMaxNameLength; -} - -typedef GlyphCollection = UInt16; -typedef GlyphID = ATSGlyphRef; - -final class GrafPort extends ffi.Struct { - @ffi.Array.multi([87]) - external ffi.Array whatever; -} - -typedef GrafPtr = ffi.Pointer; -typedef GrafVerb = SInt8; - -const int HDActivity = 3; - -@ffi.Packed(2) -final class HFSCatalogFile extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @u_int8_t() - external int flags; - - @ffi.Int8() - external int fileType; - - external FndrFileInfo userInfo; - - @u_int32_t() - external int fileID; - - @u_int16_t() - external int dataStartBlock; - - @ffi.Int32() - external int dataLogicalSize; - - @ffi.Int32() - external int dataPhysicalSize; - - @u_int16_t() - external int rsrcStartBlock; - - @ffi.Int32() - external int rsrcLogicalSize; - - @ffi.Int32() - external int rsrcPhysicalSize; - - @u_int32_t() - external int createDate; - - @u_int32_t() - external int modifyDate; - - @u_int32_t() - external int backupDate; - - external FndrOpaqueInfo finderInfo; - - @u_int16_t() - external int clumpSize; - - @ffi.Array.multi([3]) - external ffi.Array dataExtents; - - @ffi.Array.multi([3]) - external ffi.Array rsrcExtents; - - @u_int32_t() - external int reserved; -} - -@ffi.Packed(2) -final class HFSCatalogFolder extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @u_int16_t() - external int flags; - - @u_int16_t() - external int valence; - - @u_int32_t() - external int folderID; - - @u_int32_t() - external int createDate; - - @u_int32_t() - external int modifyDate; - - @u_int32_t() - external int backupDate; - - external FndrDirInfo userInfo; - - external FndrOpaqueInfo finderInfo; - - @ffi.Array.multi([4]) - external ffi.Array reserved; -} - -@ffi.Packed(2) -final class HFSCatalogKey extends ffi.Struct { - @u_int8_t() - external int keyLength; - - @u_int8_t() - external int reserved; - - @u_int32_t() - external int parentID; - - @ffi.Array.multi([32]) - external ffi.Array nodeName; -} - -typedef HFSCatalogNodeID = UInt32; - -@ffi.Packed(2) -final class HFSCatalogThread extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @ffi.Array.multi([2]) - external ffi.Array reserved; - - @u_int32_t() - external int parentID; - - @ffi.Array.multi([32]) - external ffi.Array nodeName; -} - -@ffi.Packed(2) -final class HFSExtentDescriptor extends ffi.Struct { - @u_int16_t() - external int startBlock; - - @u_int16_t() - external int blockCount; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int startBlock, - required int blockCount, - }) => $allocator() - ..ref.startBlock = startBlock - ..ref.blockCount = blockCount; -} - -@ffi.Packed(2) -final class HFSExtentKey extends ffi.Struct { - @u_int8_t() - external int keyLength; - - @u_int8_t() - external int forkType; - - @u_int32_t() - external int fileID; - - @u_int16_t() - external int startBlock; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int keyLength, - required int forkType, - required int fileID, - required int startBlock, - }) => $allocator() - ..ref.keyLength = keyLength - ..ref.forkType = forkType - ..ref.fileID = fileID - ..ref.startBlock = startBlock; -} - -@ffi.Packed(2) -final class HFSMasterDirectoryBlock extends ffi.Struct { - @u_int16_t() - external int drSigWord; - - @u_int32_t() - external int drCrDate; - - @u_int32_t() - external int drLsMod; - - @u_int16_t() - external int drAtrb; - - @u_int16_t() - external int drNmFls; - - @u_int16_t() - external int drVBMSt; - - @u_int16_t() - external int drAllocPtr; - - @u_int16_t() - external int drNmAlBlks; - - @u_int32_t() - external int drAlBlkSiz; - - @u_int32_t() - external int drClpSiz; - - @u_int16_t() - external int drAlBlSt; - - @u_int32_t() - external int drNxtCNID; - - @u_int16_t() - external int drFreeBks; - - @ffi.Array.multi([28]) - external ffi.Array drVN; - - @u_int32_t() - external int drVolBkUp; - - @u_int16_t() - external int drVSeqNum; - - @u_int32_t() - external int drWrCnt; - - @u_int32_t() - external int drXTClpSiz; - - @u_int32_t() - external int drCTClpSiz; - - @u_int16_t() - external int drNmRtDirs; - - @u_int32_t() - external int drFilCnt; - - @u_int32_t() - external int drDirCnt; - - @ffi.Array.multi([8]) - external ffi.Array drFndrInfo; - - @u_int16_t() - external int drEmbedSigWord; - - external HFSExtentDescriptor drEmbedExtent; - - @u_int32_t() - external int drXTFlSize; - - @ffi.Array.multi([3]) - external ffi.Array drXTExtRec; - - @u_int32_t() - external int drCTFlSize; - - @ffi.Array.multi([3]) - external ffi.Array drCTExtRec; -} - -@ffi.Packed(2) -final class HFSPlusAttrData extends ffi.Struct { - @u_int32_t() - external int recordType; - - @ffi.Array.multi([2]) - external ffi.Array reserved; - - @u_int32_t() - external int attrSize; - - @ffi.Array.multi([2]) - external ffi.Array attrData; -} - -@ffi.Packed(2) -final class HFSPlusAttrExtents extends ffi.Struct { - @u_int32_t() - external int recordType; - - @u_int32_t() - external int reserved; - - @ffi.Array.multi([8]) - external ffi.Array extents; -} - -@ffi.Packed(2) -final class HFSPlusAttrForkData extends ffi.Struct { - @u_int32_t() - external int recordType; - - @u_int32_t() - external int reserved; - - external HFSPlusForkData theFork; -} - -@ffi.Packed(2) -final class HFSPlusAttrInlineData extends ffi.Struct { - @u_int32_t() - external int recordType; - - @u_int32_t() - external int reserved; - - @u_int32_t() - external int logicalSize; - - @ffi.Array.multi([2]) - external ffi.Array userData; -} - -@ffi.Packed(2) -final class HFSPlusAttrKey extends ffi.Struct { - @u_int16_t() - external int keyLength; - - @u_int16_t() - external int pad; - - @u_int32_t() - external int fileID; - - @u_int32_t() - external int startBlock; - - @u_int16_t() - external int attrNameLen; - - @ffi.Array.multi([127]) - external ffi.Array attrName; -} - -final class HFSPlusAttrRecord extends ffi.Union { - @u_int32_t() - external int recordType; - - external HFSPlusAttrInlineData inlineData; - - external HFSPlusAttrData attrData; - - external HFSPlusAttrForkData forkData; - - external HFSPlusAttrExtents overflowExtents; -} - -@ffi.Packed(2) -final class HFSPlusBSDInfo extends ffi.Struct { - @u_int32_t() - external int ownerID; - - @u_int32_t() - external int groupID; - - @u_int8_t() - external int adminFlags; - - @u_int8_t() - external int ownerFlags; - - @u_int16_t() - external int fileMode; - - external UnnamedUnion$9 special; -} - -@ffi.Packed(2) -final class HFSPlusCatalogFile extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @u_int16_t() - external int flags; - - @u_int32_t() - external int reserved1; - - @u_int32_t() - external int fileID; - - @u_int32_t() - external int createDate; - - @u_int32_t() - external int contentModDate; - - @u_int32_t() - external int attributeModDate; - - @u_int32_t() - external int accessDate; - - @u_int32_t() - external int backupDate; - - external HFSPlusBSDInfo bsdInfo; - - external FndrFileInfo userInfo; - - external FndrOpaqueInfo finderInfo; - - @u_int32_t() - external int textEncoding; - - @u_int32_t() - external int reserved2; - - external HFSPlusForkData dataFork; - - external HFSPlusForkData resourceFork; -} - -@ffi.Packed(2) -final class HFSPlusCatalogFolder extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @u_int16_t() - external int flags; - - @u_int32_t() - external int valence; - - @u_int32_t() - external int folderID; - - @u_int32_t() - external int createDate; - - @u_int32_t() - external int contentModDate; - - @u_int32_t() - external int attributeModDate; - - @u_int32_t() - external int accessDate; - - @u_int32_t() - external int backupDate; - - external HFSPlusBSDInfo bsdInfo; - - external FndrDirInfo userInfo; - - external FndrOpaqueInfo finderInfo; - - @u_int32_t() - external int textEncoding; - - @u_int32_t() - external int folderCount; -} - -@ffi.Packed(2) -final class HFSPlusCatalogKey extends ffi.Struct { - @u_int16_t() - external int keyLength; - - @u_int32_t() - external int parentID; - - external HFSUniStr255 nodeName; -} - -@ffi.Packed(2) -final class HFSPlusCatalogThread extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @ffi.Int16() - external int reserved; - - @u_int32_t() - external int parentID; - - external HFSUniStr255 nodeName; -} - -@ffi.Packed(2) -final class HFSPlusExtentDescriptor extends ffi.Struct { - @u_int32_t() - external int startBlock; - - @u_int32_t() - external int blockCount; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int startBlock, - required int blockCount, - }) => $allocator() - ..ref.startBlock = startBlock - ..ref.blockCount = blockCount; -} - -@ffi.Packed(2) -final class HFSPlusExtentKey extends ffi.Struct { - @u_int16_t() - external int keyLength; - - @u_int8_t() - external int forkType; - - @u_int8_t() - external int pad; - - @u_int32_t() - external int fileID; - - @u_int32_t() - external int startBlock; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int keyLength, - required int forkType, - required int pad, - required int fileID, - required int startBlock, - }) => $allocator() - ..ref.keyLength = keyLength - ..ref.forkType = forkType - ..ref.pad = pad - ..ref.fileID = fileID - ..ref.startBlock = startBlock; -} - -@ffi.Packed(2) -final class HFSPlusForkData extends ffi.Struct { - @u_int64_t() - external int logicalSize; - - @u_int32_t() - external int clumpSize; - - @u_int32_t() - external int totalBlocks; - - @ffi.Array.multi([8]) - external ffi.Array extents; -} - -@ffi.Packed(2) -final class HFSPlusVolumeHeader extends ffi.Struct { - @u_int16_t() - external int signature; - - @u_int16_t() - external int version; - - @u_int32_t() - external int attributes; - - @u_int32_t() - external int lastMountedVersion; - - @u_int32_t() - external int journalInfoBlock; - - @u_int32_t() - external int createDate; - - @u_int32_t() - external int modifyDate; - - @u_int32_t() - external int backupDate; - - @u_int32_t() - external int checkedDate; - - @u_int32_t() - external int fileCount; - - @u_int32_t() - external int folderCount; - - @u_int32_t() - external int blockSize; - - @u_int32_t() - external int totalBlocks; - - @u_int32_t() - external int freeBlocks; - - @u_int32_t() - external int nextAllocation; - - @u_int32_t() - external int rsrcClumpSize; - - @u_int32_t() - external int dataClumpSize; - - @u_int32_t() - external int nextCatalogID; - - @u_int32_t() - external int writeCount; - - @u_int64_t() - external int encodingsBitmap; - - @ffi.Array.multi([32]) - external ffi.Array finderInfo; - - external HFSPlusForkData allocationFile; - - external HFSPlusForkData extentsFile; - - external HFSPlusForkData catalogFile; - - external HFSPlusForkData attributesFile; - - external HFSPlusForkData startupFile; -} - -@ffi.Packed(2) -final class HFSUniStr255 extends ffi.Struct { - @u_int16_t() - external int length; - - @ffi.Array.multi([255]) - external ffi.Array unicode; -} - -typedef HIMutableShapeRef = ffi.Pointer<__HIShape>; -typedef HIShapeEnumerateProcPtr = - ffi.Pointer>; -typedef HIShapeEnumerateProcPtrFunction = - OSStatus Function( - ffi.Int inMessage, - HIShapeRef inShape, - ffi.Pointer inRect, - ffi.Pointer inRefcon, - ); -typedef DartHIShapeEnumerateProcPtrFunction = - DartSInt32 Function( - int inMessage, - HIShapeRef inShape, - ffi.Pointer inRect, - ffi.Pointer inRefcon, - ); -typedef HIShapeRef = ffi.Pointer<__HIShape>; -typedef Handle = ffi.Pointer; - -@ffi.Packed(2) -final class ICAppSpec extends ffi.Struct { - @OSType() - external int fCreator; - - @ffi.Array.multi([64]) - external ffi.Array name; -} - -typedef ICAppSpecHandle = ffi.Pointer; - -final class ICAppSpecList extends ffi.Struct { - @SInt16() - external int numberOfItems; - - @ffi.Array.multi([1]) - external ffi.Array appSpecs; -} - -typedef ICAppSpecListHandle = ffi.Pointer; -typedef ICAppSpecListPtr = ffi.Pointer; -typedef ICAppSpecPtr = ffi.Pointer; -typedef ICAttr = UInt32; - -final class ICCharTable extends ffi.Struct { - @ffi.Array.multi([256]) - external ffi.Array netToMac; - - @ffi.Array.multi([256]) - external ffi.Array macToNet; -} - -typedef ICCharTableHandle = ffi.Pointer; -typedef ICCharTablePtr = ffi.Pointer; - -@ffi.Packed(2) -final class ICFileSpec extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array volName; - - @SInt32() - external int volCreationDate; - - external FSSpec fss; - - external AliasRecord alias; -} - -typedef ICFileSpecHandle = ffi.Pointer; -typedef ICFileSpecPtr = ffi.Pointer; -typedef ICFixedLength = SInt16; - -final class ICFontRecord extends ffi.Struct { - @SInt16() - external int size; - - @Style() - external int face; - - @ffi.Char() - external int pad; - - @ffi.Array.multi([256]) - external ffi.Array font; -} - -typedef ICFontRecordHandle = ffi.Pointer; -typedef ICFontRecordPtr = ffi.Pointer; -typedef ICInstance = ffi.Pointer; - -@ffi.Packed(2) -final class ICMapEntry extends ffi.Struct { - @SInt16() - external int totalLength; - - @ICFixedLength() - external int fixedLength; - - @SInt16() - external int version; - - @OSType() - external int fileType; - - @OSType() - external int fileCreator; - - @OSType() - external int postCreator; - - @ICMapEntryFlags() - external int flags; - - @ffi.Array.multi([256]) - external ffi.Array extension; - - @ffi.Array.multi([256]) - external ffi.Array creatorAppName; - - @ffi.Array.multi([256]) - external ffi.Array postAppName; - - @ffi.Array.multi([256]) - external ffi.Array MIMEType; - - @ffi.Array.multi([256]) - external ffi.Array entryName; -} - -typedef ICMapEntryFlags = SInt32; -typedef ICMapEntryHandle = ffi.Pointer; -typedef ICMapEntryPtr = ffi.Pointer; -typedef ICPerm = UInt8; -typedef ICProfileID = SInt32; -typedef ICProfileIDPtr = ffi.Pointer; - -final class ICServiceEntry extends ffi.Struct { - @ffi.Array.multi([256]) - external ffi.Array name; - - @SInt16() - external int port; - - @ICServiceEntryFlags() - external int flags; -} - -typedef ICServiceEntryFlags = SInt16; -typedef ICServiceEntryHandle = ffi.Pointer; -typedef ICServiceEntryPtr = ffi.Pointer; - -final class ICServices extends ffi.Struct { - @SInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array services; -} - -typedef ICServicesHandle = ffi.Pointer; -typedef ICServicesPtr = ffi.Pointer; -typedef IMP = ffi.Pointer>; -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef IOAddressRange = IOVirtualRange; -typedef IOAlignment = ffi.UnsignedInt; -typedef DartIOAlignment = int; -typedef IOAppleTimingID = UInt32; -typedef IOAsyncCallback = - ffi.Pointer>; -typedef IOAsyncCallback0 = - ffi.Pointer>; -typedef IOAsyncCallback0Function = - ffi.Void Function(ffi.Pointer refcon, IOReturn result); -typedef DartIOAsyncCallback0Function = - void Function(ffi.Pointer refcon, Dartkern_return_t result); -typedef IOAsyncCallback1 = - ffi.Pointer>; -typedef IOAsyncCallback1Function = - ffi.Void Function( - ffi.Pointer refcon, - IOReturn result, - ffi.Pointer arg0, - ); -typedef DartIOAsyncCallback1Function = - void Function( - ffi.Pointer refcon, - Dartkern_return_t result, - ffi.Pointer arg0, - ); -typedef IOAsyncCallback2 = - ffi.Pointer>; -typedef IOAsyncCallback2Function = - ffi.Void Function( - ffi.Pointer refcon, - IOReturn result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ); -typedef DartIOAsyncCallback2Function = - void Function( - ffi.Pointer refcon, - Dartkern_return_t result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ); -typedef IOAsyncCallbackFunction = - ffi.Void Function( - ffi.Pointer refcon, - IOReturn result, - ffi.Pointer> args, - ffi.Uint32 numArgs, - ); -typedef DartIOAsyncCallbackFunction = - void Function( - ffi.Pointer refcon, - Dartkern_return_t result, - ffi.Pointer> args, - int numArgs, - ); - -final class IOAsyncCompletionContent extends ffi.Opaque {} - -typedef IOByteCount = IOByteCount64; -typedef IOByteCount32 = UInt32; -typedef IOByteCount64 = UInt64; -typedef IOCacheMode = UInt32; -typedef IOColorComponent = UInt16; - -final class IOColorEntry extends ffi.Struct { - @UInt16() - external int index$1; - - @IOColorComponent() - external int red; - - @IOColorComponent() - external int green; - - @IOColorComponent() - external int blue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int index$1, - required int red, - required int green, - required int blue, - }) => $allocator() - ..ref.index$1 = index$1 - ..ref.red = red - ..ref.green = green - ..ref.blue = blue; -} - -typedef IOCompletionProcPtr = - ffi.Pointer>; -typedef IOCompletionProcPtrFunction = ffi.Void Function(ParmBlkPtr paramBlock); -typedef DartIOCompletionProcPtrFunction = void Function(ParmBlkPtr paramBlock); -typedef IOCompletionUPP = IOCompletionProcPtr; -typedef IODetailedTimingInformation = IODetailedTimingInformationV2; - -final class IODetailedTimingInformationV1 extends ffi.Struct { - @UInt32() - external int pixelClock; - - @UInt32() - external int horizontalActive; - - @UInt32() - external int horizontalBlanking; - - @UInt32() - external int horizontalBorder; - - @UInt32() - external int horizontalSyncOffset; - - @UInt32() - external int horizontalSyncWidth; - - @UInt32() - external int verticalActive; - - @UInt32() - external int verticalBlanking; - - @UInt32() - external int verticalBorder; - - @UInt32() - external int verticalSyncOffset; - - @UInt32() - external int verticalSyncWidth; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int pixelClock, - required int horizontalActive, - required int horizontalBlanking, - required int horizontalBorder, - required int horizontalSyncOffset, - required int horizontalSyncWidth, - required int verticalActive, - required int verticalBlanking, - required int verticalBorder, - required int verticalSyncOffset, - required int verticalSyncWidth, - }) => $allocator() - ..ref.pixelClock = pixelClock - ..ref.horizontalActive = horizontalActive - ..ref.horizontalBlanking = horizontalBlanking - ..ref.horizontalBorder = horizontalBorder - ..ref.horizontalSyncOffset = horizontalSyncOffset - ..ref.horizontalSyncWidth = horizontalSyncWidth - ..ref.verticalActive = verticalActive - ..ref.verticalBlanking = verticalBlanking - ..ref.verticalBorder = verticalBorder - ..ref.verticalSyncOffset = verticalSyncOffset - ..ref.verticalSyncWidth = verticalSyncWidth; -} - -final class IODetailedTimingInformationV2 extends ffi.Struct { - @ffi.Array.multi([3]) - external ffi.Array __reservedA; - - @UInt32() - external int horizontalScaledInset; - - @UInt32() - external int verticalScaledInset; - - @UInt32() - external int scalerFlags; - - @UInt32() - external int horizontalScaled; - - @UInt32() - external int verticalScaled; - - @UInt32() - external int signalConfig; - - @UInt32() - external int signalLevels; - - @UInt64() - external int pixelClock; - - @UInt64() - external int minPixelClock; - - @UInt64() - external int maxPixelClock; - - @UInt32() - external int horizontalActive; - - @UInt32() - external int horizontalBlanking; - - @UInt32() - external int horizontalSyncOffset; - - @UInt32() - external int horizontalSyncPulseWidth; - - @UInt32() - external int verticalActive; - - @UInt32() - external int verticalBlanking; - - @UInt32() - external int verticalSyncOffset; - - @UInt32() - external int verticalSyncPulseWidth; - - @UInt32() - external int horizontalBorderLeft; - - @UInt32() - external int horizontalBorderRight; - - @UInt32() - external int verticalBorderTop; - - @UInt32() - external int verticalBorderBottom; - - @UInt32() - external int horizontalSyncConfig; - - @UInt32() - external int horizontalSyncLevel; - - @UInt32() - external int verticalSyncConfig; - - @UInt32() - external int verticalSyncLevel; - - @UInt32() - external int numLinks; - - @UInt32() - external int verticalBlankingExtension; - - @UInt16() - external int pixelEncoding; - - @UInt16() - external int bitsPerColorComponent; - - @UInt16() - external int colorimetry; - - @UInt16() - external int dynamicRange; - - @UInt16() - external int dscCompressedBitsPerPixel; - - @UInt16() - external int dscSliceHeight; - - @UInt16() - external int dscSliceWidth; - - @UInt16() - external int verticalBlankingMaxStretchPerFrame; - - @UInt16() - external int verticalBlankingMaxShrinkPerFrame; - - @ffi.Array.multi([3]) - external ffi.Array __reservedB; -} - -typedef IODeviceNumber = ffi.UnsignedInt; -typedef DartIODeviceNumber = int; -typedef IODisplayModeID = SInt32; - -final class IODisplayModeInformation extends ffi.Struct { - @UInt32() - external int nominalWidth; - - @UInt32() - external int nominalHeight; - - @IOFixed1616() - external int refreshRate; - - @IOIndex() - external int maxDepthIndex; - - @UInt32() - external int flags; - - @UInt16() - external int imageWidth; - - @UInt16() - external int imageHeight; - - @ffi.Array.multi([3]) - external ffi.Array reserved; -} - -typedef IODisplayProductID = UInt32; - -final class IODisplayScalerInformation extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array __reservedA; - - @UInt32() - external int version; - - @ffi.Array.multi([2]) - external ffi.Array __reservedB; - - @IOOptionBits() - external int scalerFeatures; - - @UInt32() - external int maxHorizontalPixels; - - @UInt32() - external int maxVerticalPixels; - - @ffi.Array.multi([5]) - external ffi.Array __reservedC; -} - -typedef IODisplayTimingRange = IODisplayTimingRangeV2; - -final class IODisplayTimingRangeV1 extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array __reservedA; - - @UInt32() - external int version; - - @ffi.Array.multi([5]) - external ffi.Array __reservedB; - - @UInt64() - external int minPixelClock; - - @UInt64() - external int maxPixelClock; - - @UInt32() - external int maxPixelError; - - @UInt32() - external int supportedSyncFlags; - - @UInt32() - external int supportedSignalLevels; - - @UInt32() - external int supportedSignalConfigs; - - @UInt32() - external int minFrameRate; - - @UInt32() - external int maxFrameRate; - - @UInt32() - external int minLineRate; - - @UInt32() - external int maxLineRate; - - @UInt32() - external int maxHorizontalTotal; - - @UInt32() - external int maxVerticalTotal; - - @ffi.Array.multi([2]) - external ffi.Array __reservedD; - - @UInt8() - external int charSizeHorizontalActive; - - @UInt8() - external int charSizeHorizontalBlanking; - - @UInt8() - external int charSizeHorizontalSyncOffset; - - @UInt8() - external int charSizeHorizontalSyncPulse; - - @UInt8() - external int charSizeVerticalActive; - - @UInt8() - external int charSizeVerticalBlanking; - - @UInt8() - external int charSizeVerticalSyncOffset; - - @UInt8() - external int charSizeVerticalSyncPulse; - - @UInt8() - external int charSizeHorizontalBorderLeft; - - @UInt8() - external int charSizeHorizontalBorderRight; - - @UInt8() - external int charSizeVerticalBorderTop; - - @UInt8() - external int charSizeVerticalBorderBottom; - - @UInt8() - external int charSizeHorizontalTotal; - - @UInt8() - external int charSizeVerticalTotal; - - @UInt16() - external int __reservedE; - - @UInt32() - external int minHorizontalActiveClocks; - - @UInt32() - external int maxHorizontalActiveClocks; - - @UInt32() - external int minHorizontalBlankingClocks; - - @UInt32() - external int maxHorizontalBlankingClocks; - - @UInt32() - external int minHorizontalSyncOffsetClocks; - - @UInt32() - external int maxHorizontalSyncOffsetClocks; - - @UInt32() - external int minHorizontalPulseWidthClocks; - - @UInt32() - external int maxHorizontalPulseWidthClocks; - - @UInt32() - external int minVerticalActiveClocks; - - @UInt32() - external int maxVerticalActiveClocks; - - @UInt32() - external int minVerticalBlankingClocks; - - @UInt32() - external int maxVerticalBlankingClocks; - - @UInt32() - external int minVerticalSyncOffsetClocks; - - @UInt32() - external int maxVerticalSyncOffsetClocks; - - @UInt32() - external int minVerticalPulseWidthClocks; - - @UInt32() - external int maxVerticalPulseWidthClocks; - - @UInt32() - external int minHorizontalBorderLeft; - - @UInt32() - external int maxHorizontalBorderLeft; - - @UInt32() - external int minHorizontalBorderRight; - - @UInt32() - external int maxHorizontalBorderRight; - - @UInt32() - external int minVerticalBorderTop; - - @UInt32() - external int maxVerticalBorderTop; - - @UInt32() - external int minVerticalBorderBottom; - - @UInt32() - external int maxVerticalBorderBottom; - - @UInt32() - external int maxNumLinks; - - @UInt32() - external int minLink0PixelClock; - - @UInt32() - external int maxLink0PixelClock; - - @UInt32() - external int minLink1PixelClock; - - @UInt32() - external int maxLink1PixelClock; - - @UInt16() - external int supportedPixelEncoding; - - @UInt16() - external int supportedBitsPerColorComponent; - - @UInt16() - external int supportedColorimetryModes; - - @UInt16() - external int supportedDynamicRangeModes; - - @ffi.Array.multi([1]) - external ffi.Array __reservedF; -} - -final class IODisplayTimingRangeV2 extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array __reservedA; - - @UInt32() - external int version; - - @ffi.Array.multi([5]) - external ffi.Array __reservedB; - - @UInt64() - external int minPixelClock; - - @UInt64() - external int maxPixelClock; - - @UInt32() - external int maxPixelError; - - @UInt32() - external int supportedSyncFlags; - - @UInt32() - external int supportedSignalLevels; - - @UInt32() - external int supportedSignalConfigs; - - @UInt32() - external int minFrameRate; - - @UInt32() - external int maxFrameRate; - - @UInt32() - external int minLineRate; - - @UInt32() - external int maxLineRate; - - @UInt32() - external int maxHorizontalTotal; - - @UInt32() - external int maxVerticalTotal; - - @ffi.Array.multi([2]) - external ffi.Array __reservedD; - - @UInt8() - external int charSizeHorizontalActive; - - @UInt8() - external int charSizeHorizontalBlanking; - - @UInt8() - external int charSizeHorizontalSyncOffset; - - @UInt8() - external int charSizeHorizontalSyncPulse; - - @UInt8() - external int charSizeVerticalActive; - - @UInt8() - external int charSizeVerticalBlanking; - - @UInt8() - external int charSizeVerticalSyncOffset; - - @UInt8() - external int charSizeVerticalSyncPulse; - - @UInt8() - external int charSizeHorizontalBorderLeft; - - @UInt8() - external int charSizeHorizontalBorderRight; - - @UInt8() - external int charSizeVerticalBorderTop; - - @UInt8() - external int charSizeVerticalBorderBottom; - - @UInt8() - external int charSizeHorizontalTotal; - - @UInt8() - external int charSizeVerticalTotal; - - @UInt16() - external int __reservedE; - - @UInt32() - external int minHorizontalActiveClocks; - - @UInt32() - external int maxHorizontalActiveClocks; - - @UInt32() - external int minHorizontalBlankingClocks; - - @UInt32() - external int maxHorizontalBlankingClocks; - - @UInt32() - external int minHorizontalSyncOffsetClocks; - - @UInt32() - external int maxHorizontalSyncOffsetClocks; - - @UInt32() - external int minHorizontalPulseWidthClocks; - - @UInt32() - external int maxHorizontalPulseWidthClocks; - - @UInt32() - external int minVerticalActiveClocks; - - @UInt32() - external int maxVerticalActiveClocks; - - @UInt32() - external int minVerticalBlankingClocks; - - @UInt32() - external int maxVerticalBlankingClocks; - - @UInt32() - external int minVerticalSyncOffsetClocks; - - @UInt32() - external int maxVerticalSyncOffsetClocks; - - @UInt32() - external int minVerticalPulseWidthClocks; - - @UInt32() - external int maxVerticalPulseWidthClocks; - - @UInt32() - external int minHorizontalBorderLeft; - - @UInt32() - external int maxHorizontalBorderLeft; - - @UInt32() - external int minHorizontalBorderRight; - - @UInt32() - external int maxHorizontalBorderRight; - - @UInt32() - external int minVerticalBorderTop; - - @UInt32() - external int maxVerticalBorderTop; - - @UInt32() - external int minVerticalBorderBottom; - - @UInt32() - external int maxVerticalBorderBottom; - - @UInt32() - external int maxNumLinks; - - @UInt32() - external int minLink0PixelClock; - - @UInt32() - external int maxLink0PixelClock; - - @UInt32() - external int minLink1PixelClock; - - @UInt32() - external int maxLink1PixelClock; - - @UInt16() - external int supportedPixelEncoding; - - @UInt16() - external int supportedBitsPerColorComponent; - - @UInt16() - external int supportedColorimetryModes; - - @UInt16() - external int supportedDynamicRangeModes; - - @ffi.Array.multi([1]) - external ffi.Array __reservedF; - - @UInt64() - external int maxBandwidth; - - @UInt32() - external int dscMinSliceHeight; - - @UInt32() - external int dscMaxSliceHeight; - - @UInt32() - external int dscMinSliceWidth; - - @UInt32() - external int dscMaxSliceWidth; - - @UInt32() - external int dscMinSlicePerLine; - - @UInt32() - external int dscMaxSlicePerLine; - - @UInt16() - external int dscMinBPC; - - @UInt16() - external int dscMaxBPC; - - @UInt16() - external int dscMinBPP; - - @UInt16() - external int dscMaxBPP; - - @UInt8() - external int dscVBR; - - @UInt8() - external int dscBlockPredEnable; - - @ffi.Array.multi([6]) - external ffi.Array __reservedC; -} - -typedef IODisplayVendorID = UInt32; - -final class IOFBDPLinkConfig extends ffi.Struct { - @ffi.Uint16() - external int version; - - @ffi.Uint8() - external int bitRate; - - @ffi.Array.multi([1]) - external ffi.Array __reservedA; - - @ffi.Uint16() - external int t1Time; - - @ffi.Uint16() - external int t2Time; - - @ffi.Uint16() - external int t3Time; - - @ffi.Uint8() - external int idlePatterns; - - @ffi.Uint8() - external int laneCount; - - @ffi.Uint8() - external int voltage; - - @ffi.Uint8() - external int preEmphasis; - - @ffi.Uint8() - external int downspread; - - @ffi.Uint8() - external int scrambler; - - @ffi.Uint8() - external int maxBitRate; - - @ffi.Uint8() - external int maxLaneCount; - - @ffi.Uint8() - external int maxDownspread; - - @ffi.Array.multi([9]) - external ffi.Array __reservedB; -} - -@ffi.Packed(4) -final class IOFBDisplayModeDescription extends ffi.Struct { - external IODisplayModeInformation info; - - external IOTimingInformation timingInfo; -} - -final class IOFBHDRMetaData extends ffi.Union { - external IOFBHDRMetaDataV1 v1; -} - -final class IOFBHDRMetaDataV1 extends ffi.Struct { - @ffi.Uint16() - external int displayPrimary_X0; - - @ffi.Uint16() - external int displayPrimary_Y0; - - @ffi.Uint16() - external int displayPrimary_X1; - - @ffi.Uint16() - external int displayPrimary_Y1; - - @ffi.Uint16() - external int displayPrimary_X2; - - @ffi.Uint16() - external int displayPrimary_Y2; - - @ffi.Uint16() - external int displayPrimary_X; - - @ffi.Uint16() - external int displayPrimary_Y; - - @ffi.Uint16() - external int desiredLuminance_Max; - - @ffi.Uint16() - external int desiredLuminance_Min; - - @ffi.Uint16() - external int desiredLightLevel_Avg; - - @ffi.Uint16() - external int desiredLightLevel_Max; - - @ffi.Array.multi([5]) - external ffi.Array __reservedA; -} - -typedef IOFixed = SInt32; -typedef IOFixed1616 = UInt32; -typedef IOFixedPoint32 = __IOFixedPoint32; - -final class IOFramebufferInformation extends ffi.Struct { - @IOPhysicalAddress() - external int baseAddress; - - @UInt32() - external int activeWidth; - - @UInt32() - external int activeHeight; - - @IOByteCount() - external int bytesPerRow; - - @IOByteCount() - external int bytesPerPlane; - - @UInt32() - external int bitsPerPixel; - - @UInt32() - external int pixelType; - - @UInt32() - external int flags; - - @ffi.Array.multi([4]) - external ffi.Array reserved; -} - -final class IOGBounds extends ffi.Struct { - @SInt16() - external int minx; - - @SInt16() - external int maxx; - - @SInt16() - external int miny; - - @SInt16() - external int maxy; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int minx, - required int maxx, - required int miny, - required int maxy, - }) => $allocator() - ..ref.minx = minx - ..ref.maxx = maxx - ..ref.miny = miny - ..ref.maxy = maxy; -} - -final class IOGPoint extends ffi.Struct { - @SInt16() - external int x; - - @SInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -final class IOGSize extends ffi.Struct { - @SInt16() - external int width; - - @SInt16() - external int height; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int width, - required int height, - }) => $allocator() - ..ref.width = width - ..ref.height = height; -} - -final class IOHardwareCursorDescriptor extends ffi.Struct { - @UInt16() - external int majorVersion; - - @UInt16() - external int minorVersion; - - @UInt32() - external int height; - - @UInt32() - external int width; - - @UInt32() - external int bitDepth; - - @UInt32() - external int maskBitDepth; - - @UInt32() - external int numColors; - - external ffi.Pointer colorEncodings; - - @UInt32() - external int flags; - - @UInt32() - external int supportedSpecialEncodings; - - @ffi.Array.multi([16]) - external ffi.Array specialEncodings; -} - -final class IOHardwareCursorInfo extends ffi.Struct { - @UInt16() - external int majorVersion; - - @UInt16() - external int minorVersion; - - @UInt32() - external int cursorHeight; - - @UInt32() - external int cursorWidth; - - external ffi.Pointer colorMap; - - external ffi.Pointer hardwareCursorData; - - @UInt16() - external int cursorHotSpotX; - - @UInt16() - external int cursorHotSpotY; - - @ffi.Array.multi([5]) - external ffi.Array reserved; -} - -typedef IOIndex = SInt32; -typedef IOItemCount = UInt32; -typedef IOLogicalAddress = IOVirtualAddress; - -final class IONamedValue extends ffi.Struct { - @ffi.Int() - external int value; - - external ffi.Pointer name; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int value, - required ffi.Pointer name, - }) => $allocator() - ..ref.value = value - ..ref.name = name; -} - -final class IONotificationPort extends ffi.Opaque {} - -typedef IONotificationPortRef = ffi.Pointer; -typedef IOOptionBits = UInt32; -typedef IOPhysicalAddress = IOPhysicalAddress64; -typedef IOPhysicalAddress32 = UInt32; -typedef IOPhysicalAddress64 = UInt64; -typedef IOPhysicalLength = IOPhysicalLength64; -typedef IOPhysicalLength32 = UInt32; -typedef IOPhysicalLength64 = UInt64; - -final class IOPhysicalRange extends ffi.Struct { - @IOPhysicalAddress() - external int address; - - @IOByteCount() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int address, - required int length, - }) => $allocator() - ..ref.address = address - ..ref.length = length; -} - -typedef IOPixelAperture = IOIndex; - -final class IOPixelInformation extends ffi.Struct { - @UInt32() - external int bytesPerRow; - - @UInt32() - external int bytesPerPlane; - - @UInt32() - external int bitsPerPixel; - - @UInt32() - external int pixelType; - - @UInt32() - external int componentCount; - - @UInt32() - external int bitsPerComponent; - - @ffi.Array.multi([16]) - external ffi.Array componentMasks; - - @ffi.Array.multi([64]) - external ffi.Array pixelFormat; - - @UInt32() - external int flags; - - @UInt32() - external int activeWidth; - - @UInt32() - external int activeHeight; - - @ffi.Array.multi([2]) - external ffi.Array reserved; -} - -typedef IOReturn = kern_return_t; -typedef IOSelect = UInt32; -typedef IOServiceInterestCallback = - ffi.Pointer>; -typedef IOServiceInterestCallbackFunction = - ffi.Void Function( - ffi.Pointer refcon, - io_service_t service, - ffi.Uint32 messageType, - ffi.Pointer messageArgument, - ); -typedef DartIOServiceInterestCallbackFunction = - void Function( - ffi.Pointer refcon, - Dart__darwin_natural_t service, - int messageType, - ffi.Pointer messageArgument, - ); - -@ffi.Packed(4) -final class IOServiceInterestContent extends ffi.Struct { - @natural_t() - external int messageType; - - @ffi.Array.multi([1]) - external ffi.Array> messageArgument; -} - -@ffi.Packed(4) -final class IOServiceInterestContent64 extends ffi.Struct { - @natural_t() - external int messageType; - - @ffi.Array.multi([1]) - external ffi.Array messageArgument; -} - -typedef IOServiceMatchingCallback = - ffi.Pointer>; -typedef IOServiceMatchingCallbackFunction = - ffi.Void Function(ffi.Pointer refcon, io_iterator_t iterator); -typedef DartIOServiceMatchingCallbackFunction = - void Function( - ffi.Pointer refcon, - Dart__darwin_natural_t iterator, - ); - -enum IOSurfaceComponentName { - kIOSurfaceComponentNameUnknown(0), - kIOSurfaceComponentNameAlpha(1), - kIOSurfaceComponentNameRed(2), - kIOSurfaceComponentNameGreen(3), - kIOSurfaceComponentNameBlue(4), - kIOSurfaceComponentNameLuma(5), - kIOSurfaceComponentNameChromaRed(6), - kIOSurfaceComponentNameChromaBlue(7); - - final int value; - const IOSurfaceComponentName(this.value); - - static IOSurfaceComponentName fromValue(int value) => switch (value) { - 0 => kIOSurfaceComponentNameUnknown, - 1 => kIOSurfaceComponentNameAlpha, - 2 => kIOSurfaceComponentNameRed, - 3 => kIOSurfaceComponentNameGreen, - 4 => kIOSurfaceComponentNameBlue, - 5 => kIOSurfaceComponentNameLuma, - 6 => kIOSurfaceComponentNameChromaRed, - 7 => kIOSurfaceComponentNameChromaBlue, - _ => throw ArgumentError( - 'Unknown value for IOSurfaceComponentName: $value', - ), - }; -} - -enum IOSurfaceComponentRange { - kIOSurfaceComponentRangeUnknown(0), - kIOSurfaceComponentRangeFullRange(1), - kIOSurfaceComponentRangeVideoRange(2), - kIOSurfaceComponentRangeWideRange(3); - - final int value; - const IOSurfaceComponentRange(this.value); - - static IOSurfaceComponentRange fromValue(int value) => switch (value) { - 0 => kIOSurfaceComponentRangeUnknown, - 1 => kIOSurfaceComponentRangeFullRange, - 2 => kIOSurfaceComponentRangeVideoRange, - 3 => kIOSurfaceComponentRangeWideRange, - _ => throw ArgumentError( - 'Unknown value for IOSurfaceComponentRange: $value', - ), - }; -} - -enum IOSurfaceComponentType { - kIOSurfaceComponentTypeUnknown(0), - kIOSurfaceComponentTypeUnsignedInteger(1), - kIOSurfaceComponentTypeSignedInteger(2), - kIOSurfaceComponentTypeFloat(3), - kIOSurfaceComponentTypeSignedNormalized(4); - - final int value; - const IOSurfaceComponentType(this.value); - - static IOSurfaceComponentType fromValue(int value) => switch (value) { - 0 => kIOSurfaceComponentTypeUnknown, - 1 => kIOSurfaceComponentTypeUnsignedInteger, - 2 => kIOSurfaceComponentTypeSignedInteger, - 3 => kIOSurfaceComponentTypeFloat, - 4 => kIOSurfaceComponentTypeSignedNormalized, - _ => throw ArgumentError( - 'Unknown value for IOSurfaceComponentType: $value', - ), - }; -} - -typedef IOSurfaceID = ffi.Uint32; -typedef DartIOSurfaceID = int; - -sealed class IOSurfaceLockOptions { - static const kIOSurfaceLockReadOnly = 1; - static const kIOSurfaceLockAvoidSync = 2; -} - -sealed class IOSurfaceMemoryLedgerFlags { - static const kIOSurfaceMemoryLedgerFlagNoFootprint = 1; -} - -enum IOSurfaceMemoryLedgerTags { - kIOSurfaceMemoryLedgerTagDefault(1), - kIOSurfaceMemoryLedgerTagNetwork(2), - kIOSurfaceMemoryLedgerTagMedia(3), - kIOSurfaceMemoryLedgerTagGraphics(4), - kIOSurfaceMemoryLedgerTagNeural(5); - - final int value; - const IOSurfaceMemoryLedgerTags(this.value); - - static IOSurfaceMemoryLedgerTags fromValue(int value) => switch (value) { - 1 => kIOSurfaceMemoryLedgerTagDefault, - 2 => kIOSurfaceMemoryLedgerTagNetwork, - 3 => kIOSurfaceMemoryLedgerTagMedia, - 4 => kIOSurfaceMemoryLedgerTagGraphics, - 5 => kIOSurfaceMemoryLedgerTagNeural, - _ => throw ArgumentError( - 'Unknown value for IOSurfaceMemoryLedgerTags: $value', - ), - }; -} - -sealed class IOSurfacePurgeabilityState { - static const kIOSurfacePurgeableNonVolatile = 0; - static const kIOSurfacePurgeableVolatile = 1; - static const kIOSurfacePurgeableEmpty = 2; - static const kIOSurfacePurgeableKeepCurrent = 3; -} - -typedef IOSurfaceRef = ffi.Pointer<__IOSurface>; - -enum IOSurfaceSubsampling { - kIOSurfaceSubsamplingUnknown(0), - kIOSurfaceSubsamplingNone(1), - kIOSurfaceSubsampling422(2), - kIOSurfaceSubsampling420(3), - kIOSurfaceSubsampling411(4); - - final int value; - const IOSurfaceSubsampling(this.value); - - static IOSurfaceSubsampling fromValue(int value) => switch (value) { - 0 => kIOSurfaceSubsamplingUnknown, - 1 => kIOSurfaceSubsamplingNone, - 2 => kIOSurfaceSubsampling422, - 3 => kIOSurfaceSubsampling420, - 4 => kIOSurfaceSubsampling411, - _ => throw ArgumentError('Unknown value for IOSurfaceSubsampling: $value'), - }; -} - -final class IOTimingInformation extends ffi.Struct { - @IOAppleTimingID() - external int appleTimingID; - - @UInt32() - external int flags; - - external UnnamedUnion$10 detailedInfo; -} - -typedef IOVersion = UInt32; -typedef IOVirtualAddress = mach_vm_address_t; - -final class IOVirtualRange extends ffi.Struct { - @IOVirtualAddress() - external int address; - - @IOByteCount() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int address, - required int length, - }) => $allocator() - ..ref.address = address - ..ref.length = length; -} - -typedef ISAType = SInt8; -typedef IconActionProcPtr = - ffi.Pointer>; -typedef IconActionProcPtrFunction = - OSErr Function( - ResType theType, - ffi.Pointer theIcon, - ffi.Pointer yourDataPtr, - ); -typedef DartIconActionProcPtrFunction = - DartSInt16 Function( - DartUInt32 theType, - ffi.Pointer theIcon, - ffi.Pointer yourDataPtr, - ); -typedef IconActionUPP = IconActionProcPtr; -typedef IconAlignmentType = SInt16; - -@ffi.Packed(2) -final class IconFamilyElement extends ffi.Struct { - @OSType() - external int elementType; - - @SInt32() - external int elementSize; - - @ffi.Array.multi([1]) - external ffi.Array elementData; -} - -typedef IconFamilyHandle = ffi.Pointer; -typedef IconFamilyPtr = ffi.Pointer; - -@ffi.Packed(2) -final class IconFamilyResource extends ffi.Struct { - @OSType() - external int resourceType; - - @SInt32() - external int resourceSize; - - @ffi.Array.multi([1]) - external ffi.Array elements; -} - -typedef IconGetterProcPtr = - ffi.Pointer>; -typedef IconGetterProcPtrFunction = - Handle Function(ResType theType, ffi.Pointer yourDataPtr); -typedef DartIconGetterProcPtrFunction = - Handle Function(DartUInt32 theType, ffi.Pointer yourDataPtr); -typedef IconGetterUPP = IconGetterProcPtr; -typedef IconRef = ffi.Pointer; -typedef IconSelectorValue = UInt32; -typedef IconServicesUsageFlags = UInt32; -typedef IconTransformType = SInt16; - -const int IdleActivity = 4; - -typedef IndexToUCStringProcPtr = - ffi.Pointer>; -typedef IndexToUCStringProcPtrFunction = - Boolean Function( - UInt32 index$1, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer outString, - ffi.Pointer tsOptions, - ); -typedef DartIndexToUCStringProcPtrFunction = - DartBoolean Function( - DartUInt32 index$1, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer outString, - ffi.Pointer tsOptions, - ); -typedef IndexToUCStringUPP = IndexToUCStringProcPtr; - -@ffi.Packed(2) -final class InstrumentChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt8() - external int baseFrequency; - - @UInt8() - external int detune; - - @UInt8() - external int lowFrequency; - - @UInt8() - external int highFrequency; - - @UInt8() - external int lowVelocity; - - @UInt8() - external int highVelocity; - - @SInt16() - external int gain; - - external AIFFLoop sustainLoop; - - external AIFFLoop releaseLoop; -} - -typedef InstrumentChunkPtr = ffi.Pointer; - -const int InstrumentID = 1229869908; - -typedef Intl0Hndl = ffi.Pointer; -typedef Intl0Ptr = ffi.Pointer; - -final class Intl0Rec extends ffi.Struct { - @ffi.Char() - external int decimalPt; - - @ffi.Char() - external int thousSep; - - @ffi.Char() - external int listSep; - - @ffi.Char() - external int currSym1; - - @ffi.Char() - external int currSym2; - - @ffi.Char() - external int currSym3; - - @UInt8() - external int currFmt; - - @UInt8() - external int dateOrder; - - @UInt8() - external int shrtDateFmt; - - @ffi.Char() - external int dateSep; - - @UInt8() - external int timeCycle; - - @UInt8() - external int timeFmt; - - @ffi.Array.multi([4]) - external ffi.Array mornStr; - - @ffi.Array.multi([4]) - external ffi.Array eveStr; - - @ffi.Char() - external int timeSep; - - @ffi.Char() - external int time1Suff; - - @ffi.Char() - external int time2Suff; - - @ffi.Char() - external int time3Suff; - - @ffi.Char() - external int time4Suff; - - @ffi.Char() - external int time5Suff; - - @ffi.Char() - external int time6Suff; - - @ffi.Char() - external int time7Suff; - - @ffi.Char() - external int time8Suff; - - @UInt8() - external int metricSys; - - @ffi.Short() - external int intl0Vers; -} - -typedef Intl1Hndl = ffi.Pointer; -typedef Intl1Ptr = ffi.Pointer; - -final class Intl1Rec extends ffi.Struct { - @ffi.Array.multi([7, 16]) - external ffi.Array> days; - - @ffi.Array.multi([12, 16]) - external ffi.Array> months; - - @UInt8() - external int suppressDay; - - @UInt8() - external int lngDateFmt; - - @UInt8() - external int dayLeading0; - - @UInt8() - external int abbrLen; - - @ffi.Array.multi([4]) - external ffi.Array st0; - - @ffi.Array.multi([4]) - external ffi.Array st1; - - @ffi.Array.multi([4]) - external ffi.Array st2; - - @ffi.Array.multi([4]) - external ffi.Array st3; - - @ffi.Array.multi([4]) - external ffi.Array st4; - - @ffi.Short() - external int intl1Vers; - - @ffi.Array.multi([1]) - external ffi.Array localRtn; -} - -final class IntlText extends ffi.Struct { - @ScriptCode() - external int theScriptCode; - - @LangCode() - external int theLangCode; - - @ffi.Array.multi([1]) - external ffi.Array theText; -} - -typedef ItemCount = ffi.UnsignedLong; -typedef DartItemCount = int; - -@ffi.Packed(2) -final class Itl1ExtRec extends ffi.Struct { - external Intl1Rec base; - - @ffi.Short() - external int version; - - @ffi.Short() - external int format; - - @ffi.Short() - external int calendarCode; - - @SInt32() - external int extraDaysTableOffset; - - @SInt32() - external int extraDaysTableLength; - - @SInt32() - external int extraMonthsTableOffset; - - @SInt32() - external int extraMonthsTableLength; - - @SInt32() - external int abbrevDaysTableOffset; - - @SInt32() - external int abbrevDaysTableLength; - - @SInt32() - external int abbrevMonthsTableOffset; - - @SInt32() - external int abbrevMonthsTableLength; - - @SInt32() - external int extraSepsTableOffset; - - @SInt32() - external int extraSepsTableLength; - - @ffi.Array.multi([1]) - external ffi.Array tables; -} - -typedef Itl4Handle = ffi.Pointer; -typedef Itl4Ptr = ffi.Pointer; - -@ffi.Packed(2) -final class Itl4Rec extends ffi.Struct { - @ffi.Short() - external int flags; - - @SInt32() - external int resourceType; - - @ffi.Short() - external int resourceNum; - - @ffi.Short() - external int version; - - @SInt32() - external int resHeader1; - - @SInt32() - external int resHeader2; - - @ffi.Short() - external int numTables; - - @SInt32() - external int mapOffset; - - @SInt32() - external int strOffset; - - @SInt32() - external int fetchOffset; - - @SInt32() - external int unTokenOffset; - - @SInt32() - external int defPartsOffset; - - @SInt32() - external int resOffset6; - - @SInt32() - external int resOffset7; - - @SInt32() - external int resOffset8; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int resourceType, - required int resourceNum, - required int version, - required int resHeader1, - required int resHeader2, - required int numTables, - required int mapOffset, - required int strOffset, - required int fetchOffset, - required int unTokenOffset, - required int defPartsOffset, - required int resOffset6, - required int resOffset7, - required int resOffset8, - }) => $allocator() - ..ref.flags = flags - ..ref.resourceType = resourceType - ..ref.resourceNum = resourceNum - ..ref.version = version - ..ref.resHeader1 = resHeader1 - ..ref.resHeader2 = resHeader2 - ..ref.numTables = numTables - ..ref.mapOffset = mapOffset - ..ref.strOffset = strOffset - ..ref.fetchOffset = fetchOffset - ..ref.unTokenOffset = unTokenOffset - ..ref.defPartsOffset = defPartsOffset - ..ref.resOffset6 = resOffset6 - ..ref.resOffset7 = resOffset7 - ..ref.resOffset8 = resOffset8; -} - -@ffi.Packed(2) -final class Itl5Record extends ffi.Struct { - @Fixed() - external int versionNumber; - - @ffi.UnsignedShort() - external int numberOfTables; - - @ffi.Array.multi([3]) - external ffi.Array reserved; - - @ffi.Array.multi([1]) - external ffi.Array tableDirectory; -} - -@ffi.Packed(2) -final class ItlbExtRecord extends ffi.Struct { - external ItlbRecord base; - - @SInt32() - external int itlbLocalSize; - - @ffi.Short() - external int itlbMonoFond; - - @ffi.Short() - external int itlbMonoSize; - - @ffi.Short() - external int itlbPrefFond; - - @ffi.Short() - external int itlbPrefSize; - - @ffi.Short() - external int itlbSmallFond; - - @ffi.Short() - external int itlbSmallSize; - - @ffi.Short() - external int itlbSysFond; - - @ffi.Short() - external int itlbSysSize; - - @ffi.Short() - external int itlbAppFond; - - @ffi.Short() - external int itlbAppSize; - - @ffi.Short() - external int itlbHelpFond; - - @ffi.Short() - external int itlbHelpSize; - - @Style() - external int itlbValidStyles; - - @Style() - external int itlbAliasStyle; -} - -final class ItlbRecord extends ffi.Struct { - @ffi.Short() - external int itlbNumber; - - @ffi.Short() - external int itlbDate; - - @ffi.Short() - external int itlbSort; - - @ffi.Short() - external int itlbFlags; - - @ffi.Short() - external int itlbToken; - - @ffi.Short() - external int itlbEncoding; - - @ffi.Short() - external int itlbLang; - - @SInt8() - external int itlbNumRep; - - @SInt8() - external int itlbDateRep; - - @ffi.Short() - external int itlbKeys; - - @ffi.Short() - external int itlbIcon; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int itlbNumber, - required int itlbDate, - required int itlbSort, - required int itlbFlags, - required int itlbToken, - required int itlbEncoding, - required int itlbLang, - required int itlbNumRep, - required int itlbDateRep, - required int itlbKeys, - required int itlbIcon, - }) => $allocator() - ..ref.itlbNumber = itlbNumber - ..ref.itlbDate = itlbDate - ..ref.itlbSort = itlbSort - ..ref.itlbFlags = itlbFlags - ..ref.itlbToken = itlbToken - ..ref.itlbEncoding = itlbEncoding - ..ref.itlbLang = itlbLang - ..ref.itlbNumRep = itlbNumRep - ..ref.itlbDateRep = itlbDateRep - ..ref.itlbKeys = itlbKeys - ..ref.itlbIcon = itlbIcon; -} - -final class ItlcRecord extends ffi.Struct { - @ffi.Short() - external int itlcSystem; - - @ffi.Short() - external int itlcReserved; - - @SInt8() - external int itlcFontForce; - - @SInt8() - external int itlcIntlForce; - - @SInt8() - external int itlcOldKybd; - - @SInt8() - external int itlcFlags; - - @ffi.Short() - external int itlcIconOffset; - - @SInt8() - external int itlcIconSide; - - @SInt8() - external int itlcIconRsvd; - - @ffi.Short() - external int itlcRegionCode; - - @ffi.Short() - external int itlcSysFlags; - - @ffi.Array.multi([32]) - external ffi.Array itlcReserved4; -} - -@ffi.Packed(2) -final class JournalInfoBlock extends ffi.Struct { - @u_int32_t() - external int flags; - - @ffi.Array.multi([8]) - external ffi.Array device_signature; - - @u_int64_t() - external int offset; - - @u_int64_t() - external int size; - - @ffi.Array.multi([37]) - external ffi.Array ext_jnl_uuid; - - @ffi.Array.multi([48]) - external ffi.Array machine_serial_num; - - @ffi.Array.multi([43]) - external ffi.Array reserved; -} - -final class JustDirectionTable extends ffi.Struct { - @UInt16() - external int justClass; - - @UInt16() - external int widthDeltaClusters; - - @UInt16() - external int postcomp; - - external SFNTLookupTable lookup; -} - -@ffi.Packed(2) -final class JustPCAction extends ffi.Struct { - @UInt32() - external int actionCount; - - @ffi.Array.multi([1]) - external ffi.Array actions; -} - -@ffi.Packed(2) -final class JustPCActionSubrecord extends ffi.Struct { - @UInt16() - external int theClass; - - @JustPCActionType() - external int theType; - - @UInt32() - external int length; - - @UInt32() - external int data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int theClass, - required int theType, - required int length, - required int data, - }) => $allocator() - ..ref.theClass = theClass - ..ref.theType = theType - ..ref.length = length - ..ref.data = data; -} - -typedef JustPCActionType = UInt16; - -@ffi.Packed(2) -final class JustPCConditionalAddAction extends ffi.Struct { - @Fixed() - external int substThreshold; - - @UInt16() - external int addGlyph; - - @UInt16() - external int substGlyph; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int substThreshold, - required int addGlyph, - required int substGlyph, - }) => $allocator() - ..ref.substThreshold = substThreshold - ..ref.addGlyph = addGlyph - ..ref.substGlyph = substGlyph; -} - -@ffi.Packed(2) -final class JustPCDecompositionAction extends ffi.Struct { - @Fixed() - external int lowerLimit; - - @Fixed() - external int upperLimit; - - @UInt16() - external int order; - - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array glyphs; -} - -@ffi.Packed(2) -final class JustPCDuctilityAction extends ffi.Struct { - @UInt32() - external int ductilityAxis; - - @Fixed() - external int minimumLimit; - - @Fixed() - external int noStretchValue; - - @Fixed() - external int maximumLimit; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ductilityAxis, - required int minimumLimit, - required int noStretchValue, - required int maximumLimit, - }) => $allocator() - ..ref.ductilityAxis = ductilityAxis - ..ref.minimumLimit = minimumLimit - ..ref.noStretchValue = noStretchValue - ..ref.maximumLimit = maximumLimit; -} - -final class JustPCGlyphRepeatAddAction extends ffi.Struct { - @UInt16() - external int flags; - - @UInt16() - external int glyph; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int glyph, - }) => $allocator() - ..ref.flags = flags - ..ref.glyph = glyph; -} - -typedef JustPCUnconditionalAddAction = UInt16; - -final class JustPostcompTable extends ffi.Struct { - external SFNTLookupTable lookupTable; -} - -@ffi.Packed(2) -final class JustTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt16() - external int format; - - @UInt16() - external int horizHeaderOffset; - - @UInt16() - external int vertHeaderOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int format, - required int horizHeaderOffset, - required int vertHeaderOffset, - }) => $allocator() - ..ref.version = version - ..ref.format = format - ..ref.horizHeaderOffset = horizHeaderOffset - ..ref.vertHeaderOffset = vertHeaderOffset; -} - -@ffi.Packed(2) -final class JustWidthDeltaEntry extends ffi.Struct { - @UInt32() - external int justClass; - - @Fixed() - external int beforeGrowLimit; - - @Fixed() - external int beforeShrinkLimit; - - @Fixed() - external int afterGrowLimit; - - @Fixed() - external int afterShrinkLimit; - - @JustificationFlags() - external int growFlags; - - @JustificationFlags() - external int shrinkFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int justClass, - required int beforeGrowLimit, - required int beforeShrinkLimit, - required int afterGrowLimit, - required int afterShrinkLimit, - required int growFlags, - required int shrinkFlags, - }) => $allocator() - ..ref.justClass = justClass - ..ref.beforeGrowLimit = beforeGrowLimit - ..ref.beforeShrinkLimit = beforeShrinkLimit - ..ref.afterGrowLimit = afterGrowLimit - ..ref.afterShrinkLimit = afterShrinkLimit - ..ref.growFlags = growFlags - ..ref.shrinkFlags = shrinkFlags; -} - -@ffi.Packed(2) -final class JustWidthDeltaGroup extends ffi.Struct { - @UInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array entries; -} - -typedef JustificationFlags = UInt16; - -const int KAEISHandleCGI = 1935961955; - -typedef KCAttrType = SecKeychainAttrType; -typedef KCAttribute = SecKeychainAttribute; -typedef KCAttributeList = SecKeychainAttributeList; -typedef KCAuthType = FourCharCode; - -@ffi.Packed(2) -final class KCCallbackInfo extends ffi.Struct { - @UInt32() - external int version; - - external KCItemRef item; - - @ffi.Array.multi([2]) - external ffi.Array processID; - - @ffi.Array.multi([4]) - external ffi.Array event; - - external KCRef keychain; -} - -typedef KCCallbackProcPtr = - ffi.Pointer>; -typedef KCCallbackProcPtrFunction = - OSStatus Function( - KCEvent keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ); -typedef DartKCCallbackProcPtrFunction = - DartSInt32 Function( - DartUInt16 keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ); -typedef KCCallbackUPP = KCCallbackProcPtr; -typedef KCCertAddOptions = UInt32; -typedef KCCertSearchOptions = UInt32; -typedef KCEvent = UInt16; -typedef KCEventMask = UInt16; -typedef KCItemAttr = FourCharCode; -typedef KCItemClass = FourCharCode; -typedef KCItemRef = SecKeychainItemRef; -typedef KCProtocolType = FourCharCode; -typedef KCRef = SecKeychainRef; -typedef KCSearchRef = SecKeychainSearchRef; -typedef KCStatus = SecKeychainStatus; -typedef KCVerifyStopOn = UInt16; -typedef KernArrayOffset = UInt16; - -final class KernEntry extends ffi.Struct { - @SInt16() - external int kernStyle; - - @SInt16() - external int kernLength; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int kernStyle, - required int kernLength, - }) => $allocator() - ..ref.kernStyle = kernStyle - ..ref.kernLength = kernLength; -} - -final class KernFormatSpecificHeader extends ffi.Union { - external KernOrderedListHeader orderedList; - - external KernStateHeader stateTable; - - external KernSimpleArrayHeader simpleArray; - - external KernIndexArrayHeader indexArray; -} - -final class KernIndexArrayHeader extends ffi.Struct { - @UInt16() - external int glyphCount; - - @UInt8() - external int kernValueCount; - - @UInt8() - external int leftClassCount; - - @UInt8() - external int rightClassCount; - - @UInt8() - external int flags; - - @ffi.Array.multi([1]) - external ffi.Array kernValue; - - @ffi.Array.multi([1]) - external ffi.Array leftClass; - - @ffi.Array.multi([1]) - external ffi.Array rightClass; - - @ffi.Array.multi([1]) - external ffi.Array kernIndex; -} - -final class KernKerningPair extends ffi.Struct { - @UInt16() - external int left; - - @UInt16() - external int right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int left, - required int right, - }) => $allocator() - ..ref.left = left - ..ref.right = right; -} - -typedef KernKerningValue = SInt16; - -final class KernOffsetTable extends ffi.Struct { - @UInt16() - external int firstGlyph; - - @UInt16() - external int nGlyphs; - - @ffi.Array.multi([1]) - external ffi.Array offsetTable; -} - -typedef KernOffsetTablePtr = ffi.Pointer; - -final class KernOrderedListEntry extends ffi.Struct { - external KernKerningPair pair; - - @KernKerningValue() - external int value; -} - -typedef KernOrderedListEntryPtr = ffi.Pointer; - -final class KernOrderedListHeader extends ffi.Struct { - @UInt16() - external int nPairs; - - @UInt16() - external int searchRange; - - @UInt16() - external int entrySelector; - - @UInt16() - external int rangeShift; - - @ffi.Array.multi([1]) - external ffi.Array table; -} - -final class KernPair extends ffi.Struct { - @ffi.Char() - external int kernFirst; - - @ffi.Char() - external int kernSecond; - - @SInt16() - external int kernWidth; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int kernFirst, - required int kernSecond, - required int kernWidth, - }) => $allocator() - ..ref.kernFirst = kernFirst - ..ref.kernSecond = kernSecond - ..ref.kernWidth = kernWidth; -} - -final class KernSimpleArrayHeader extends ffi.Struct { - @UInt16() - external int rowWidth; - - @UInt16() - external int leftOffsetTable; - - @UInt16() - external int rightOffsetTable; - - @KernArrayOffset() - external int theArray; - - @ffi.Array.multi([1]) - external ffi.Array firstTable; -} - -final class KernStateEntry extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags; -} - -final class KernStateHeader extends ffi.Struct { - external STHeader header; - - @UInt16() - external int valueTable; - - @ffi.Array.multi([1]) - external ffi.Array firstTable; -} - -@ffi.Packed(2) -final class KernSubtableHeader extends ffi.Struct { - @SInt32() - external int length; - - @KernSubtableInfo() - external int stInfo; - - @SInt16() - external int tupleIndex; - - external KernFormatSpecificHeader fsHeader; -} - -typedef KernSubtableHeaderPtr = ffi.Pointer; -typedef KernSubtableInfo = UInt16; - -final class KernTable extends ffi.Struct { - @SInt16() - external int numKerns; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numKerns, - }) => $allocator()..ref.numKerns = numKerns; -} - -typedef KernTableFormat = UInt8; - -@ffi.Packed(2) -final class KernTableHeader extends ffi.Struct { - @Fixed() - external int version; - - @SInt32() - external int nTables; - - @ffi.Array.multi([1]) - external ffi.Array firstSubtable; -} - -typedef KernTableHeaderHandle = ffi.Pointer; -typedef KernTableHeaderPtr = ffi.Pointer; - -final class KernVersion0Header extends ffi.Struct { - @UInt16() - external int version; - - @UInt16() - external int nTables; - - @ffi.Array.multi([1]) - external ffi.Array firstSubtable; -} - -final class KernVersion0SubtableHeader extends ffi.Struct { - @UInt16() - external int version; - - @UInt16() - external int length; - - @KernSubtableInfo() - external int stInfo; - - external KernFormatSpecificHeader fsHeader; -} - -final class KerxAnchorPointAction extends ffi.Struct { - @UInt16() - external int markAnchorPoint; - - @UInt16() - external int currAnchorPoint; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int markAnchorPoint, - required int currAnchorPoint, - }) => $allocator() - ..ref.markAnchorPoint = markAnchorPoint - ..ref.currAnchorPoint = currAnchorPoint; -} - -typedef KerxArrayOffset = UInt32; - -final class KerxControlPointAction extends ffi.Struct { - @UInt16() - external int markControlPoint; - - @UInt16() - external int currControlPoint; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int markControlPoint, - required int currControlPoint, - }) => $allocator() - ..ref.markControlPoint = markControlPoint - ..ref.currControlPoint = currControlPoint; -} - -final class KerxControlPointEntry extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int actionIndex; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int actionIndex, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.actionIndex = actionIndex; -} - -@ffi.Packed(2) -final class KerxControlPointHeader extends ffi.Struct { - external STXHeader header; - - @UInt32() - external int flags; - - @ffi.Array.multi([1]) - external ffi.Array firstTable; -} - -final class KerxCoordinateAction extends ffi.Struct { - @UInt16() - external int markX; - - @UInt16() - external int markY; - - @UInt16() - external int currX; - - @UInt16() - external int currY; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int markX, - required int markY, - required int currX, - required int currY, - }) => $allocator() - ..ref.markX = markX - ..ref.markY = markY - ..ref.currX = currX - ..ref.currY = currY; -} - -final class KerxFormatSpecificHeader extends ffi.Union { - external KerxOrderedListHeader orderedList; - - external KerxStateHeader stateTable; - - external KerxSimpleArrayHeader simpleArray; - - external KerxIndexArrayHeader indexArray; - - external KerxControlPointHeader controlPoint; -} - -@ffi.Packed(2) -final class KerxIndexArrayHeader extends ffi.Struct { - @UInt32() - external int flags; - - @UInt16() - external int rowCount; - - @UInt16() - external int columnCount; - - @UInt32() - external int rowIndexTableOffset; - - @UInt32() - external int columnIndexTableOffset; - - @UInt32() - external int kerningArrayOffset; - - @UInt32() - external int kerningVectorOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int rowCount, - required int columnCount, - required int rowIndexTableOffset, - required int columnIndexTableOffset, - required int kerningArrayOffset, - required int kerningVectorOffset, - }) => $allocator() - ..ref.flags = flags - ..ref.rowCount = rowCount - ..ref.columnCount = columnCount - ..ref.rowIndexTableOffset = rowIndexTableOffset - ..ref.columnIndexTableOffset = columnIndexTableOffset - ..ref.kerningArrayOffset = kerningArrayOffset - ..ref.kerningVectorOffset = kerningVectorOffset; -} - -final class KerxKerningPair extends ffi.Struct { - @UInt16() - external int left; - - @UInt16() - external int right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int left, - required int right, - }) => $allocator() - ..ref.left = left - ..ref.right = right; -} - -final class KerxOrderedListEntry extends ffi.Struct { - external KerxKerningPair pair; - - @KernKerningValue() - external int value; -} - -typedef KerxOrderedListEntryPtr = ffi.Pointer; - -@ffi.Packed(2) -final class KerxOrderedListHeader extends ffi.Struct { - @UInt32() - external int nPairs; - - @UInt32() - external int searchRange; - - @UInt32() - external int entrySelector; - - @UInt32() - external int rangeShift; - - @ffi.Array.multi([1]) - external ffi.Array table; -} - -@ffi.Packed(2) -final class KerxSimpleArrayHeader extends ffi.Struct { - @UInt32() - external int rowWidth; - - @UInt32() - external int leftOffsetTable; - - @UInt32() - external int rightOffsetTable; - - @KerxArrayOffset() - external int theArray; - - @ffi.Array.multi([1]) - external ffi.Array firstTable; -} - -final class KerxStateEntry extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int valueIndex; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int valueIndex, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.valueIndex = valueIndex; -} - -@ffi.Packed(2) -final class KerxStateHeader extends ffi.Struct { - external STXHeader header; - - @UInt32() - external int valueTable; - - @ffi.Array.multi([1]) - external ffi.Array firstTable; -} - -typedef KerxSubtableCoverage = UInt32; - -@ffi.Packed(2) -final class KerxSubtableHeader extends ffi.Struct { - @UInt32() - external int length; - - @KerxSubtableCoverage() - external int stInfo; - - @UInt32() - external int tupleCount; - - external KerxFormatSpecificHeader fsHeader; -} - -typedef KerxSubtableHeaderPtr = ffi.Pointer; - -@ffi.Packed(2) -final class KerxTableHeader extends ffi.Struct { - @Fixed() - external int version; - - @UInt32() - external int nTables; - - @ffi.Array.multi([1]) - external ffi.Array firstSubtable; -} - -typedef KerxTableHeaderHandle = ffi.Pointer; -typedef KerxTableHeaderPtr = ffi.Pointer; - -const int LESSTHAN = 1; - -final class LLCStyleInfo extends ffi.Opaque {} - -sealed class LSAcceptanceFlags { - static const kLSAcceptDefault = 1; - static const kLSAcceptAllowLoginUI = 2; -} - -@ffi.Packed(2) -final class LSApplicationParameters extends ffi.Struct { - @CFIndex() - external int version; - - @OptionBits() - external int flags; - - external ffi.Pointer application; - - external ffi.Pointer asyncLaunchRefCon; - - external CFDictionaryRef environment; - - external CFArrayRef argv; - - external ffi.Pointer initialEvent; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int flags, - required ffi.Pointer application, - required ffi.Pointer asyncLaunchRefCon, - required CFDictionaryRef environment, - required CFArrayRef argv, - required ffi.Pointer initialEvent, - }) => $allocator() - ..ref.version = version - ..ref.flags = flags - ..ref.application = application - ..ref.asyncLaunchRefCon = asyncLaunchRefCon - ..ref.environment = environment - ..ref.argv = argv - ..ref.initialEvent = initialEvent; -} - -sealed class LSHandlerOptions { - static const kLSHandlerOptionsDefault = 0; - static const kLSHandlerOptionsIgnoreCreator = 1; -} - -sealed class LSItemInfoFlags { - static const kLSItemInfoIsPlainFile = 1; - static const kLSItemInfoIsPackage = 2; - static const kLSItemInfoIsApplication = 4; - static const kLSItemInfoIsContainer = 8; - static const kLSItemInfoIsAliasFile = 16; - static const kLSItemInfoIsSymlink = 32; - static const kLSItemInfoIsInvisible = 64; - static const kLSItemInfoIsNativeApp = 128; - static const kLSItemInfoIsClassicApp = 256; - static const kLSItemInfoAppPrefersNative = 512; - static const kLSItemInfoAppPrefersClassic = 1024; - static const kLSItemInfoAppIsScriptable = 2048; - static const kLSItemInfoIsVolume = 4096; - static const kLSItemInfoExtensionIsHidden = 1048576; -} - -@ffi.Packed(2) -final class LSItemInfoRecord extends ffi.Struct { - @OptionBits() - external int flags; - - @OSType() - external int filetype; - - @OSType() - external int creator; - - external CFStringRef extension; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int filetype, - required int creator, - required CFStringRef extension, - }) => $allocator() - ..ref.flags = flags - ..ref.filetype = filetype - ..ref.creator = creator - ..ref.extension = extension; -} - -@ffi.Packed(2) -final class LSLaunchFSRefSpec extends ffi.Struct { - external ffi.Pointer appRef; - - @ItemCount() - external int numDocs; - - external ffi.Pointer itemRefs; - - external ffi.Pointer passThruParams; - - @OptionBits() - external int launchFlags; - - external ffi.Pointer asyncRefCon; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer appRef, - required int numDocs, - required ffi.Pointer itemRefs, - required ffi.Pointer passThruParams, - required int launchFlags, - required ffi.Pointer asyncRefCon, - }) => $allocator() - ..ref.appRef = appRef - ..ref.numDocs = numDocs - ..ref.itemRefs = itemRefs - ..ref.passThruParams = passThruParams - ..ref.launchFlags = launchFlags - ..ref.asyncRefCon = asyncRefCon; -} - -sealed class LSLaunchFlags { - static const kLSLaunchDefaults = 1; - static const kLSLaunchAndPrint = 2; - static const kLSLaunchAndDisplayErrors = 64; - static const kLSLaunchDontAddToRecents = 256; - static const kLSLaunchDontSwitch = 512; - static const kLSLaunchAsync = 65536; - static const kLSLaunchNewInstance = 524288; - static const kLSLaunchAndHide = 1048576; - static const kLSLaunchAndHideOthers = 2097152; -} - -@ffi.Packed(2) -final class LSLaunchURLSpec extends ffi.Struct { - external CFURLRef appURL; - - external CFArrayRef itemURLs; - - external ffi.Pointer passThruParams; - - @OptionBits() - external int launchFlags; - - external ffi.Pointer asyncRefCon; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFURLRef appURL, - required CFArrayRef itemURLs, - required ffi.Pointer passThruParams, - required int launchFlags, - required ffi.Pointer asyncRefCon, - }) => $allocator() - ..ref.appURL = appURL - ..ref.itemURLs = itemURLs - ..ref.passThruParams = passThruParams - ..ref.launchFlags = launchFlags - ..ref.asyncRefCon = asyncRefCon; -} - -sealed class LSRequestedInfo { - static const kLSRequestExtension = 1; - static const kLSRequestTypeCreator = 2; - static const kLSRequestBasicFlagsOnly = 4; - static const kLSRequestAppTypeFlags = 8; - static const kLSRequestAllFlags = 16; - static const kLSRequestIconAndKind = 32; - static const kLSRequestExtensionFlagsOnly = 64; - static const kLSRequestAllInfo = -1; -} - -sealed class LSRolesMask { - static const kLSRolesNone = 1; - static const kLSRolesViewer = 2; - static const kLSRolesEditor = 4; - static const kLSRolesShell = 8; - static const kLSRolesAll = -1; -} - -typedef LSSharedFileListChangedProcPtr = - ffi.Pointer>; -typedef LSSharedFileListChangedProcPtrFunction = - ffi.Void Function( - LSSharedFileListRef inList, - ffi.Pointer context, - ); -typedef DartLSSharedFileListChangedProcPtrFunction = - void Function(LSSharedFileListRef inList, ffi.Pointer context); -typedef LSSharedFileListItemRef = ffi.Pointer; -typedef LSSharedFileListRef = ffi.Pointer; -typedef LSSharedFileListResolutionFlags = UInt32; -typedef LangCode = SInt16; -typedef LaunchFlags = UInt16; -typedef LaunchPBPtr = ffi.Pointer; - -@ffi.Packed(2) -final class LaunchParamBlockRec extends ffi.Struct { - @UInt32() - external int reserved1; - - @UInt16() - external int reserved2; - - @UInt16() - external int launchBlockID; - - @UInt32() - external int launchEPBLength; - - @UInt16() - external int launchFileFlags; - - @LaunchFlags() - external int launchControlFlags; - - external FSRefPtr launchAppRef; - - external ProcessSerialNumber launchProcessSN; - - @UInt32() - external int launchPreferredSize; - - @UInt32() - external int launchMinimumSize; - - @UInt32() - external int launchAvailableSize; - - external AppParametersPtr launchAppParameters; -} - -final class LcarCaretClassEntry extends ffi.Struct { - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array partials; -} - -@ffi.Packed(2) -final class LcarCaretTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt16() - external int format; - - external SFNTLookupTable lookup; -} - -typedef LcarCaretTablePtr = ffi.Pointer; - -@ffi.Packed(2) -final class LocalDateTime extends ffi.Struct { - @UInt16() - external int highSeconds; - - @UInt32() - external int lowSeconds; - - @UInt16() - external int fraction$1; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int highSeconds, - required int lowSeconds, - required int fraction$1, - }) => $allocator() - ..ref.highSeconds = highSeconds - ..ref.lowSeconds = lowSeconds - ..ref.fraction$1 = fraction$1; -} - -typedef LocalDateTimeHandle = ffi.Pointer; -typedef LocalDateTimePtr = ffi.Pointer; - -@ffi.Packed(2) -final class LocaleAndVariant extends ffi.Struct { - external LocaleRef locale; - - @LocaleOperationVariant() - external int opVariant; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required LocaleRef locale, - required int opVariant, - }) => $allocator() - ..ref.locale = locale - ..ref.opVariant = opVariant; -} - -typedef LocaleNameMask = UInt32; -typedef LocaleOperationClass = FourCharCode; -typedef LocaleOperationVariant = FourCharCode; -typedef LocalePartMask = UInt32; -typedef LocaleRef = ffi.Pointer; -typedef LogicalAddress = ffi.Pointer; - -final class LongDateCvt extends ffi.Union { - @SInt64() - external int c; - - external UnnamedStruct$20 hl; -} - -typedef LongDateField = SInt8; - -final class LongDateRec extends ffi.Union { - external UnnamedStruct$22 ld; - - @ffi.Array.multi([14]) - external ffi.Array list; - - external UnnamedStruct$10 od; -} - -typedef LongDateTime = SInt64; - -final class LtagStringRange extends ffi.Struct { - @UInt16() - external int offset; - - @UInt16() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int length, - }) => $allocator() - ..ref.offset = offset - ..ref.length = length; -} - -@ffi.Packed(2) -final class LtagTable extends ffi.Struct { - @UInt32() - external int version; - - @UInt32() - external int flags; - - @UInt32() - external int numTags; - - @ffi.Array.multi([1]) - external ffi.Array tagRange; -} - -const int MACE3Type = 1296122675; - -const int MACE6Type = 1296122678; - -typedef MDItemRef = ffi.Pointer<__MDItem>; - -enum MDLabelDomain { - kMDLabelUserDomain(0), - kMDLabelLocalDomain(1); - - final int value; - const MDLabelDomain(this.value); - - static MDLabelDomain fromValue(int value) => switch (value) { - 0 => kMDLabelUserDomain, - 1 => kMDLabelLocalDomain, - _ => throw ArgumentError('Unknown value for MDLabelDomain: $value'), - }; -} - -typedef MDLabelRef = ffi.Pointer<__MDLabel>; - -final class MDQueryBatchingParams extends ffi.Struct { - @ffi.Size() - external int first_max_num; - - @ffi.Size() - external int first_max_ms; - - @ffi.Size() - external int progress_max_num; - - @ffi.Size() - external int progress_max_ms; - - @ffi.Size() - external int update_max_num; - - @ffi.Size() - external int update_max_ms; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int first_max_num, - required int first_max_ms, - required int progress_max_num, - required int progress_max_ms, - required int update_max_num, - required int update_max_ms, - }) => $allocator() - ..ref.first_max_num = first_max_num - ..ref.first_max_ms = first_max_ms - ..ref.progress_max_num = progress_max_num - ..ref.progress_max_ms = progress_max_ms - ..ref.update_max_num = update_max_num - ..ref.update_max_ms = update_max_ms; -} - -typedef MDQueryCreateResultFunction = - ffi.Pointer>; -typedef MDQueryCreateResultFunctionFunction = - ffi.Pointer Function( - MDQueryRef query, - MDItemRef item, - ffi.Pointer context, - ); -typedef MDQueryCreateValueFunction = - ffi.Pointer>; -typedef MDQueryCreateValueFunctionFunction = - ffi.Pointer Function( - MDQueryRef query, - CFStringRef attrName, - CFTypeRef attrValue, - ffi.Pointer context, - ); - -enum MDQueryOptionFlags { - kMDQuerySynchronous(1), - kMDQueryWantsUpdates(4), - kMDQueryAllowFSTranslation(8); - - final int value; - const MDQueryOptionFlags(this.value); - - static MDQueryOptionFlags fromValue(int value) => switch (value) { - 1 => kMDQuerySynchronous, - 4 => kMDQueryWantsUpdates, - 8 => kMDQueryAllowFSTranslation, - _ => throw ArgumentError('Unknown value for MDQueryOptionFlags: $value'), - }; -} - -typedef MDQueryRef = ffi.Pointer<__MDQuery>; -typedef MDQuerySortComparatorFunction = - ffi.Pointer>; -typedef MDQuerySortComparatorFunctionFunction = - CFIndex Function( - ffi.Pointer attrs1, - ffi.Pointer attrs2, - ffi.Pointer context, - ); -typedef DartMDQuerySortComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer attrs1, - ffi.Pointer attrs2, - ffi.Pointer context, - ); - -enum MDQuerySortOptionFlags { - kMDQueryReverseSortOrderFlag(1); - - final int value; - const MDQuerySortOptionFlags(this.value); - - static MDQuerySortOptionFlags fromValue(int value) => switch (value) { - 1 => kMDQueryReverseSortOrderFlag, - _ => throw ArgumentError( - 'Unknown value for MDQuerySortOptionFlags: $value', - ), - }; -} - -typedef MDS_DB_HANDLE = CSSM_DL_DB_HANDLE; -typedef MDS_FUNCS = mds_funcs; -typedef MDS_FUNCS_PTR = ffi.Pointer; -typedef MDS_HANDLE = CSSM_DL_HANDLE; - -@ffi.Packed(2) -final class MIDIDataChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @ffi.Array.multi([1]) - external ffi.Array MIDIdata; -} - -typedef MIDIDataChunkPtr = ffi.Pointer; - -const int MIDIDataID = 1296647241; - -typedef MPAddressSpaceID = ffi.Pointer; - -final class MPAddressSpaceInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - external MPCoherenceID groupID; - - @ItemCount() - external int nTasks; - - @ffi.Array.multi([16]) - external ffi.Array vsid; -} - -typedef MPAreaID = ffi.Pointer; -typedef MPCoherenceID = ffi.Pointer; -typedef MPConsoleID = ffi.Pointer; -typedef MPCpuID = ffi.Pointer; -typedef MPCriticalRegionID = ffi.Pointer; - -final class MPCriticalRegionInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - @OSType() - external int regionName; - - @ItemCount() - external int nWaiting; - - external MPTaskID waitingTaskID; - - external MPTaskID owningTask; - - @ItemCount() - external int count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required MPProcessID processID, - required int regionName, - required int nWaiting, - required MPTaskID waitingTaskID, - required MPTaskID owningTask, - required int count, - }) => $allocator() - ..ref.version = version - ..ref.processID = processID - ..ref.regionName = regionName - ..ref.nWaiting = nWaiting - ..ref.waitingTaskID = waitingTaskID - ..ref.owningTask = owningTask - ..ref.count = count; -} - -typedef MPDebuggerLevel = UInt32; - -enum MPEG4ObjectID { - kMPEG4Object_AAC_Main(1), - kMPEG4Object_AAC_LC(2), - kMPEG4Object_AAC_SSR(3), - kMPEG4Object_AAC_LTP(4), - kMPEG4Object_AAC_SBR(5), - kMPEG4Object_AAC_Scalable(6), - kMPEG4Object_TwinVQ(7), - kMPEG4Object_CELP(8), - kMPEG4Object_HVXC(9); - - final int value; - const MPEG4ObjectID(this.value); - - static MPEG4ObjectID fromValue(int value) => switch (value) { - 1 => kMPEG4Object_AAC_Main, - 2 => kMPEG4Object_AAC_LC, - 3 => kMPEG4Object_AAC_SSR, - 4 => kMPEG4Object_AAC_LTP, - 5 => kMPEG4Object_AAC_SBR, - 6 => kMPEG4Object_AAC_Scalable, - 7 => kMPEG4Object_TwinVQ, - 8 => kMPEG4Object_CELP, - 9 => kMPEG4Object_HVXC, - _ => throw ArgumentError('Unknown value for MPEG4ObjectID: $value'), - }; -} - -typedef MPEventFlags = UInt32; -typedef MPEventID = ffi.Pointer; - -final class MPEventInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - @OSType() - external int eventName; - - @ItemCount() - external int nWaiting; - - external MPTaskID waitingTaskID; - - @MPEventFlags() - external int events; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required MPProcessID processID, - required int eventName, - required int nWaiting, - required MPTaskID waitingTaskID, - required int events, - }) => $allocator() - ..ref.version = version - ..ref.processID = processID - ..ref.eventName = eventName - ..ref.nWaiting = nWaiting - ..ref.waitingTaskID = waitingTaskID - ..ref.events = events; -} - -typedef MPExceptionKind = UInt32; -typedef MPIsFullyInitializedProc = - ffi.Pointer>; -typedef MPIsFullyInitializedProcFunction = Boolean Function(); -typedef DartMPIsFullyInitializedProcFunction = DartBoolean Function(); -@Deprecated('Deprecated') -const int MPLibrary_DevelopmentRevision = 1; - -@Deprecated('Deprecated') -const int MPLibrary_MajorVersion = 2; - -@Deprecated('Deprecated') -const int MPLibrary_MinorVersion = 3; - -@Deprecated('Deprecated') -const int MPLibrary_Release = 1; - -typedef MPNotificationID = ffi.Pointer; - -final class MPNotificationInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - @OSType() - external int notificationName; - - external MPQueueID queueID; - - external ffi.Pointer p1; - - external ffi.Pointer p2; - - external ffi.Pointer p3; - - external MPEventID eventID; - - @MPEventFlags() - external int events; - - external MPSemaphoreID semaphoreID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required MPProcessID processID, - required int notificationName, - required MPQueueID queueID, - required ffi.Pointer p1, - required ffi.Pointer p2, - required ffi.Pointer p3, - required MPEventID eventID, - required int events, - required MPSemaphoreID semaphoreID, - }) => $allocator() - ..ref.version = version - ..ref.processID = processID - ..ref.notificationName = notificationName - ..ref.queueID = queueID - ..ref.p1 = p1 - ..ref.p2 = p2 - ..ref.p3 = p3 - ..ref.eventID = eventID - ..ref.events = events - ..ref.semaphoreID = semaphoreID; -} - -typedef MPOpaqueID = ffi.Pointer; -typedef MPOpaqueIDClass = UInt32; -typedef MPPageSizeClass = UInt32; -typedef MPProcessID = ffi.Pointer; -typedef MPQueueID = ffi.Pointer; - -final class MPQueueInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - @OSType() - external int queueName; - - @ItemCount() - external int nWaiting; - - external MPTaskID waitingTaskID; - - @ItemCount() - external int nMessages; - - @ItemCount() - external int nReserved; - - external ffi.Pointer p1; - - external ffi.Pointer p2; - - external ffi.Pointer p3; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required MPProcessID processID, - required int queueName, - required int nWaiting, - required MPTaskID waitingTaskID, - required int nMessages, - required int nReserved, - required ffi.Pointer p1, - required ffi.Pointer p2, - required ffi.Pointer p3, - }) => $allocator() - ..ref.version = version - ..ref.processID = processID - ..ref.queueName = queueName - ..ref.nWaiting = nWaiting - ..ref.waitingTaskID = waitingTaskID - ..ref.nMessages = nMessages - ..ref.nReserved = nReserved - ..ref.p1 = p1 - ..ref.p2 = p2 - ..ref.p3 = p3; -} - -typedef MPRemoteContext = UInt8; -typedef MPRemoteProcedure = - ffi.Pointer>; -typedef MPRemoteProcedureFunction = - ffi.Pointer Function(ffi.Pointer parameter); -typedef MPSemaphoreCount = ItemCount; -typedef MPSemaphoreID = ffi.Pointer; - -final class MPSemaphoreInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - @OSType() - external int semaphoreName; - - @ItemCount() - external int nWaiting; - - external MPTaskID waitingTaskID; - - @ItemCount() - external int maximum; - - @ItemCount() - external int count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required MPProcessID processID, - required int semaphoreName, - required int nWaiting, - required MPTaskID waitingTaskID, - required int maximum, - required int count, - }) => $allocator() - ..ref.version = version - ..ref.processID = processID - ..ref.semaphoreName = semaphoreName - ..ref.nWaiting = nWaiting - ..ref.waitingTaskID = waitingTaskID - ..ref.maximum = maximum - ..ref.count = count; -} - -typedef MPTaskID = ffi.Pointer; - -final class MPTaskInfo extends ffi.Struct { - @PBVersion() - external int version; - - @OSType() - external int name; - - @OSType() - external int queueName; - - @UInt16() - external int runState; - - @UInt16() - external int lastCPU; - - @UInt32() - external int weight; - - external MPProcessID processID; - - external AbsoluteTime cpuTime; - - external AbsoluteTime schedTime; - - external AbsoluteTime creationTime; - - @ItemCount() - external int codePageFaults; - - @ItemCount() - external int dataPageFaults; - - @ItemCount() - external int preemptions; - - external MPCpuID cpuID; - - external MPOpaqueID blockedObject; - - external MPAddressSpaceID spaceID; - - external LogicalAddress stackBase; - - external LogicalAddress stackLimit; - - external LogicalAddress stackCurr; -} - -final class MPTaskInfoVersion2 extends ffi.Struct { - @PBVersion() - external int version; - - @OSType() - external int name; - - @OSType() - external int queueName; - - @UInt16() - external int runState; - - @UInt16() - external int lastCPU; - - @UInt32() - external int weight; - - external MPProcessID processID; - - external AbsoluteTime cpuTime; - - external AbsoluteTime schedTime; - - external AbsoluteTime creationTime; - - @ItemCount() - external int codePageFaults; - - @ItemCount() - external int dataPageFaults; - - @ItemCount() - external int preemptions; - - external MPCpuID cpuID; -} - -typedef MPTaskOptions = OptionBits; -typedef MPTaskStateKind = UInt32; -typedef MPTaskWeight = UInt32; -typedef MPTimerID = ffi.Pointer; - -/// WARNING: MTLBuffer is a stub. To generate bindings for this class, include -/// MTLBuffer in your config's objc-protocols list. -/// -/// MTLBuffer -extension type MTLBuffer._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [MTLBuffer] that points to the same underlying object as [other]. - MTLBuffer.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [MTLBuffer] that wraps the given raw object pointer. - MTLBuffer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: MTLDevice is a stub. To generate bindings for this class, include -/// MTLDevice in your config's objc-protocols list. -/// -/// MTLDevice -extension type MTLDevice._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [MTLDevice] that points to the same underlying object as [other]. - MTLDevice.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [MTLDevice] that wraps the given raw object pointer. - MTLDevice.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -enum MTLPixelFormat { - MTLPixelFormatInvalid(0), - MTLPixelFormatA8Unorm(1), - MTLPixelFormatR8Unorm(10), - MTLPixelFormatR8Unorm_sRGB(11), - MTLPixelFormatR8Snorm(12), - MTLPixelFormatR8Uint(13), - MTLPixelFormatR8Sint(14), - MTLPixelFormatR16Unorm(20), - MTLPixelFormatR16Snorm(22), - MTLPixelFormatR16Uint(23), - MTLPixelFormatR16Sint(24), - MTLPixelFormatR16Float(25), - MTLPixelFormatRG8Unorm(30), - MTLPixelFormatRG8Unorm_sRGB(31), - MTLPixelFormatRG8Snorm(32), - MTLPixelFormatRG8Uint(33), - MTLPixelFormatRG8Sint(34), - MTLPixelFormatB5G6R5Unorm(40), - MTLPixelFormatA1BGR5Unorm(41), - MTLPixelFormatABGR4Unorm(42), - MTLPixelFormatBGR5A1Unorm(43), - MTLPixelFormatR32Uint(53), - MTLPixelFormatR32Sint(54), - MTLPixelFormatR32Float(55), - MTLPixelFormatRG16Unorm(60), - MTLPixelFormatRG16Snorm(62), - MTLPixelFormatRG16Uint(63), - MTLPixelFormatRG16Sint(64), - MTLPixelFormatRG16Float(65), - MTLPixelFormatRGBA8Unorm(70), - MTLPixelFormatRGBA8Unorm_sRGB(71), - MTLPixelFormatRGBA8Snorm(72), - MTLPixelFormatRGBA8Uint(73), - MTLPixelFormatRGBA8Sint(74), - MTLPixelFormatBGRA8Unorm(80), - MTLPixelFormatBGRA8Unorm_sRGB(81), - MTLPixelFormatRGB10A2Unorm(90), - MTLPixelFormatRGB10A2Uint(91), - MTLPixelFormatRG11B10Float(92), - MTLPixelFormatRGB9E5Float(93), - MTLPixelFormatBGR10A2Unorm(94), - MTLPixelFormatBGR10_XR(554), - MTLPixelFormatBGR10_XR_sRGB(555), - MTLPixelFormatRG32Uint(103), - MTLPixelFormatRG32Sint(104), - MTLPixelFormatRG32Float(105), - MTLPixelFormatRGBA16Unorm(110), - MTLPixelFormatRGBA16Snorm(112), - MTLPixelFormatRGBA16Uint(113), - MTLPixelFormatRGBA16Sint(114), - MTLPixelFormatRGBA16Float(115), - MTLPixelFormatBGRA10_XR(552), - MTLPixelFormatBGRA10_XR_sRGB(553), - MTLPixelFormatRGBA32Uint(123), - MTLPixelFormatRGBA32Sint(124), - MTLPixelFormatRGBA32Float(125), - MTLPixelFormatBC1_RGBA(130), - MTLPixelFormatBC1_RGBA_sRGB(131), - MTLPixelFormatBC2_RGBA(132), - MTLPixelFormatBC2_RGBA_sRGB(133), - MTLPixelFormatBC3_RGBA(134), - MTLPixelFormatBC3_RGBA_sRGB(135), - MTLPixelFormatBC4_RUnorm(140), - MTLPixelFormatBC4_RSnorm(141), - MTLPixelFormatBC5_RGUnorm(142), - MTLPixelFormatBC5_RGSnorm(143), - MTLPixelFormatBC6H_RGBFloat(150), - MTLPixelFormatBC6H_RGBUfloat(151), - MTLPixelFormatBC7_RGBAUnorm(152), - MTLPixelFormatBC7_RGBAUnorm_sRGB(153), - MTLPixelFormatPVRTC_RGB_2BPP(160), - MTLPixelFormatPVRTC_RGB_2BPP_sRGB(161), - MTLPixelFormatPVRTC_RGB_4BPP(162), - MTLPixelFormatPVRTC_RGB_4BPP_sRGB(163), - MTLPixelFormatPVRTC_RGBA_2BPP(164), - MTLPixelFormatPVRTC_RGBA_2BPP_sRGB(165), - MTLPixelFormatPVRTC_RGBA_4BPP(166), - MTLPixelFormatPVRTC_RGBA_4BPP_sRGB(167), - MTLPixelFormatEAC_R11Unorm(170), - MTLPixelFormatEAC_R11Snorm(172), - MTLPixelFormatEAC_RG11Unorm(174), - MTLPixelFormatEAC_RG11Snorm(176), - MTLPixelFormatEAC_RGBA8(178), - MTLPixelFormatEAC_RGBA8_sRGB(179), - MTLPixelFormatETC2_RGB8(180), - MTLPixelFormatETC2_RGB8_sRGB(181), - MTLPixelFormatETC2_RGB8A1(182), - MTLPixelFormatETC2_RGB8A1_sRGB(183), - MTLPixelFormatASTC_4x4_sRGB(186), - MTLPixelFormatASTC_5x4_sRGB(187), - MTLPixelFormatASTC_5x5_sRGB(188), - MTLPixelFormatASTC_6x5_sRGB(189), - MTLPixelFormatASTC_6x6_sRGB(190), - MTLPixelFormatASTC_8x5_sRGB(192), - MTLPixelFormatASTC_8x6_sRGB(193), - MTLPixelFormatASTC_8x8_sRGB(194), - MTLPixelFormatASTC_10x5_sRGB(195), - MTLPixelFormatASTC_10x6_sRGB(196), - MTLPixelFormatASTC_10x8_sRGB(197), - MTLPixelFormatASTC_10x10_sRGB(198), - MTLPixelFormatASTC_12x10_sRGB(199), - MTLPixelFormatASTC_12x12_sRGB(200), - MTLPixelFormatASTC_4x4_LDR(204), - MTLPixelFormatASTC_5x4_LDR(205), - MTLPixelFormatASTC_5x5_LDR(206), - MTLPixelFormatASTC_6x5_LDR(207), - MTLPixelFormatASTC_6x6_LDR(208), - MTLPixelFormatASTC_8x5_LDR(210), - MTLPixelFormatASTC_8x6_LDR(211), - MTLPixelFormatASTC_8x8_LDR(212), - MTLPixelFormatASTC_10x5_LDR(213), - MTLPixelFormatASTC_10x6_LDR(214), - MTLPixelFormatASTC_10x8_LDR(215), - MTLPixelFormatASTC_10x10_LDR(216), - MTLPixelFormatASTC_12x10_LDR(217), - MTLPixelFormatASTC_12x12_LDR(218), - MTLPixelFormatASTC_4x4_HDR(222), - MTLPixelFormatASTC_5x4_HDR(223), - MTLPixelFormatASTC_5x5_HDR(224), - MTLPixelFormatASTC_6x5_HDR(225), - MTLPixelFormatASTC_6x6_HDR(226), - MTLPixelFormatASTC_8x5_HDR(228), - MTLPixelFormatASTC_8x6_HDR(229), - MTLPixelFormatASTC_8x8_HDR(230), - MTLPixelFormatASTC_10x5_HDR(231), - MTLPixelFormatASTC_10x6_HDR(232), - MTLPixelFormatASTC_10x8_HDR(233), - MTLPixelFormatASTC_10x10_HDR(234), - MTLPixelFormatASTC_12x10_HDR(235), - MTLPixelFormatASTC_12x12_HDR(236), - MTLPixelFormatGBGR422(240), - MTLPixelFormatBGRG422(241), - MTLPixelFormatDepth16Unorm(250), - MTLPixelFormatDepth32Float(252), - MTLPixelFormatStencil8(253), - MTLPixelFormatDepth24Unorm_Stencil8(255), - MTLPixelFormatDepth32Float_Stencil8(260), - MTLPixelFormatX32_Stencil8(261), - MTLPixelFormatX24_Stencil8(262), - MTLPixelFormatUnspecialized(263); - - final int value; - const MTLPixelFormat(this.value); - - static MTLPixelFormat fromValue(int value) => switch (value) { - 0 => MTLPixelFormatInvalid, - 1 => MTLPixelFormatA8Unorm, - 10 => MTLPixelFormatR8Unorm, - 11 => MTLPixelFormatR8Unorm_sRGB, - 12 => MTLPixelFormatR8Snorm, - 13 => MTLPixelFormatR8Uint, - 14 => MTLPixelFormatR8Sint, - 20 => MTLPixelFormatR16Unorm, - 22 => MTLPixelFormatR16Snorm, - 23 => MTLPixelFormatR16Uint, - 24 => MTLPixelFormatR16Sint, - 25 => MTLPixelFormatR16Float, - 30 => MTLPixelFormatRG8Unorm, - 31 => MTLPixelFormatRG8Unorm_sRGB, - 32 => MTLPixelFormatRG8Snorm, - 33 => MTLPixelFormatRG8Uint, - 34 => MTLPixelFormatRG8Sint, - 40 => MTLPixelFormatB5G6R5Unorm, - 41 => MTLPixelFormatA1BGR5Unorm, - 42 => MTLPixelFormatABGR4Unorm, - 43 => MTLPixelFormatBGR5A1Unorm, - 53 => MTLPixelFormatR32Uint, - 54 => MTLPixelFormatR32Sint, - 55 => MTLPixelFormatR32Float, - 60 => MTLPixelFormatRG16Unorm, - 62 => MTLPixelFormatRG16Snorm, - 63 => MTLPixelFormatRG16Uint, - 64 => MTLPixelFormatRG16Sint, - 65 => MTLPixelFormatRG16Float, - 70 => MTLPixelFormatRGBA8Unorm, - 71 => MTLPixelFormatRGBA8Unorm_sRGB, - 72 => MTLPixelFormatRGBA8Snorm, - 73 => MTLPixelFormatRGBA8Uint, - 74 => MTLPixelFormatRGBA8Sint, - 80 => MTLPixelFormatBGRA8Unorm, - 81 => MTLPixelFormatBGRA8Unorm_sRGB, - 90 => MTLPixelFormatRGB10A2Unorm, - 91 => MTLPixelFormatRGB10A2Uint, - 92 => MTLPixelFormatRG11B10Float, - 93 => MTLPixelFormatRGB9E5Float, - 94 => MTLPixelFormatBGR10A2Unorm, - 554 => MTLPixelFormatBGR10_XR, - 555 => MTLPixelFormatBGR10_XR_sRGB, - 103 => MTLPixelFormatRG32Uint, - 104 => MTLPixelFormatRG32Sint, - 105 => MTLPixelFormatRG32Float, - 110 => MTLPixelFormatRGBA16Unorm, - 112 => MTLPixelFormatRGBA16Snorm, - 113 => MTLPixelFormatRGBA16Uint, - 114 => MTLPixelFormatRGBA16Sint, - 115 => MTLPixelFormatRGBA16Float, - 552 => MTLPixelFormatBGRA10_XR, - 553 => MTLPixelFormatBGRA10_XR_sRGB, - 123 => MTLPixelFormatRGBA32Uint, - 124 => MTLPixelFormatRGBA32Sint, - 125 => MTLPixelFormatRGBA32Float, - 130 => MTLPixelFormatBC1_RGBA, - 131 => MTLPixelFormatBC1_RGBA_sRGB, - 132 => MTLPixelFormatBC2_RGBA, - 133 => MTLPixelFormatBC2_RGBA_sRGB, - 134 => MTLPixelFormatBC3_RGBA, - 135 => MTLPixelFormatBC3_RGBA_sRGB, - 140 => MTLPixelFormatBC4_RUnorm, - 141 => MTLPixelFormatBC4_RSnorm, - 142 => MTLPixelFormatBC5_RGUnorm, - 143 => MTLPixelFormatBC5_RGSnorm, - 150 => MTLPixelFormatBC6H_RGBFloat, - 151 => MTLPixelFormatBC6H_RGBUfloat, - 152 => MTLPixelFormatBC7_RGBAUnorm, - 153 => MTLPixelFormatBC7_RGBAUnorm_sRGB, - 160 => MTLPixelFormatPVRTC_RGB_2BPP, - 161 => MTLPixelFormatPVRTC_RGB_2BPP_sRGB, - 162 => MTLPixelFormatPVRTC_RGB_4BPP, - 163 => MTLPixelFormatPVRTC_RGB_4BPP_sRGB, - 164 => MTLPixelFormatPVRTC_RGBA_2BPP, - 165 => MTLPixelFormatPVRTC_RGBA_2BPP_sRGB, - 166 => MTLPixelFormatPVRTC_RGBA_4BPP, - 167 => MTLPixelFormatPVRTC_RGBA_4BPP_sRGB, - 170 => MTLPixelFormatEAC_R11Unorm, - 172 => MTLPixelFormatEAC_R11Snorm, - 174 => MTLPixelFormatEAC_RG11Unorm, - 176 => MTLPixelFormatEAC_RG11Snorm, - 178 => MTLPixelFormatEAC_RGBA8, - 179 => MTLPixelFormatEAC_RGBA8_sRGB, - 180 => MTLPixelFormatETC2_RGB8, - 181 => MTLPixelFormatETC2_RGB8_sRGB, - 182 => MTLPixelFormatETC2_RGB8A1, - 183 => MTLPixelFormatETC2_RGB8A1_sRGB, - 186 => MTLPixelFormatASTC_4x4_sRGB, - 187 => MTLPixelFormatASTC_5x4_sRGB, - 188 => MTLPixelFormatASTC_5x5_sRGB, - 189 => MTLPixelFormatASTC_6x5_sRGB, - 190 => MTLPixelFormatASTC_6x6_sRGB, - 192 => MTLPixelFormatASTC_8x5_sRGB, - 193 => MTLPixelFormatASTC_8x6_sRGB, - 194 => MTLPixelFormatASTC_8x8_sRGB, - 195 => MTLPixelFormatASTC_10x5_sRGB, - 196 => MTLPixelFormatASTC_10x6_sRGB, - 197 => MTLPixelFormatASTC_10x8_sRGB, - 198 => MTLPixelFormatASTC_10x10_sRGB, - 199 => MTLPixelFormatASTC_12x10_sRGB, - 200 => MTLPixelFormatASTC_12x12_sRGB, - 204 => MTLPixelFormatASTC_4x4_LDR, - 205 => MTLPixelFormatASTC_5x4_LDR, - 206 => MTLPixelFormatASTC_5x5_LDR, - 207 => MTLPixelFormatASTC_6x5_LDR, - 208 => MTLPixelFormatASTC_6x6_LDR, - 210 => MTLPixelFormatASTC_8x5_LDR, - 211 => MTLPixelFormatASTC_8x6_LDR, - 212 => MTLPixelFormatASTC_8x8_LDR, - 213 => MTLPixelFormatASTC_10x5_LDR, - 214 => MTLPixelFormatASTC_10x6_LDR, - 215 => MTLPixelFormatASTC_10x8_LDR, - 216 => MTLPixelFormatASTC_10x10_LDR, - 217 => MTLPixelFormatASTC_12x10_LDR, - 218 => MTLPixelFormatASTC_12x12_LDR, - 222 => MTLPixelFormatASTC_4x4_HDR, - 223 => MTLPixelFormatASTC_5x4_HDR, - 224 => MTLPixelFormatASTC_5x5_HDR, - 225 => MTLPixelFormatASTC_6x5_HDR, - 226 => MTLPixelFormatASTC_6x6_HDR, - 228 => MTLPixelFormatASTC_8x5_HDR, - 229 => MTLPixelFormatASTC_8x6_HDR, - 230 => MTLPixelFormatASTC_8x8_HDR, - 231 => MTLPixelFormatASTC_10x5_HDR, - 232 => MTLPixelFormatASTC_10x6_HDR, - 233 => MTLPixelFormatASTC_10x8_HDR, - 234 => MTLPixelFormatASTC_10x10_HDR, - 235 => MTLPixelFormatASTC_12x10_HDR, - 236 => MTLPixelFormatASTC_12x12_HDR, - 240 => MTLPixelFormatGBGR422, - 241 => MTLPixelFormatBGRG422, - 250 => MTLPixelFormatDepth16Unorm, - 252 => MTLPixelFormatDepth32Float, - 253 => MTLPixelFormatStencil8, - 255 => MTLPixelFormatDepth24Unorm_Stencil8, - 260 => MTLPixelFormatDepth32Float_Stencil8, - 261 => MTLPixelFormatX32_Stencil8, - 262 => MTLPixelFormatX24_Stencil8, - 263 => MTLPixelFormatUnspecialized, - _ => throw ArgumentError('Unknown value for MTLPixelFormat: $value'), - }; -} - -/// WARNING: MTLTexture is a stub. To generate bindings for this class, include -/// MTLTexture in your config's objc-protocols list. -/// -/// MTLTexture -extension type MTLTexture._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [MTLTexture] that points to the same underlying object as [other]. - MTLTexture.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [MTLTexture] that wraps the given raw object pointer. - MTLTexture.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -final class MacPolygon extends ffi.Struct { - @ffi.Short() - external int polySize; - - external Rect polyBBox; - - @ffi.Array.multi([1]) - external ffi.Array polyPoints; -} - -final class MachineInformation extends ffi.Struct { - external ffi.Pointer __unusedMachineInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedMachineInformationField, - }) => - $allocator() - ..ref.__unusedMachineInformationField = $unusedMachineInformationField; -} - -final class MachineInformationPowerPC extends ffi.Struct { - external UnsignedWide CTR; - - external UnsignedWide LR; - - external UnsignedWide PC; - - @ffi.UnsignedLong() - external int CRRegister; - - @ffi.UnsignedLong() - external int XER; - - @ffi.UnsignedLong() - external int MSR; - - @ffi.UnsignedLong() - external int MQ; - - @ffi.UnsignedLong() - external int ExceptKind; - - @ffi.UnsignedLong() - external int DSISR; - - external UnsignedWide DAR; - - external UnsignedWide Reserved; -} - -@ffi.Packed(2) -final class MachineLocation extends ffi.Struct { - @Fract() - external int latitude; - - @Fract() - external int longitude; - - external UnnamedUnion$3 u; -} - -@ffi.Packed(2) -final class Marker extends ffi.Struct { - @MarkerIdType() - external int id; - - @UInt32() - external int position; - - @ffi.Array.multi([256]) - external ffi.Array markerName; -} - -@ffi.Packed(2) -final class MarkerChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt16() - external int numMarkers; - - @ffi.Array.multi([1]) - external ffi.Array Markers; -} - -typedef MarkerChunkPtr = ffi.Pointer; - -const int MarkerID = 1296126539; - -typedef MarkerIdType = SInt16; - -final class MemoryExceptionInformation extends ffi.Struct { - external AreaID theArea; - - external LogicalAddress theAddress; - - @OSStatus() - external int theError; - - @MemoryReferenceKind() - external int theReference; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required AreaID theArea, - required LogicalAddress theAddress, - required int theError, - required int theReference, - }) => $allocator() - ..ref.theArea = theArea - ..ref.theAddress = theAddress - ..ref.theError = theError - ..ref.theReference = theReference; -} - -typedef MemoryReferenceKind = ffi.UnsignedLong; -typedef DartMemoryReferenceKind = int; - -/// MicrophoneInjection -extension MicrophoneInjection on AVAudioSession { - /// isMicrophoneInjectionAvailable - bool get isMicrophoneInjectionAvailable { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.isMicrophoneInjectionAvailable', - iOS: (false, (18, 2, 0)), - macOS: (true, null), - ); - return _objc_msgSend_13h8okt( - _$$ref.pointer, - _sel_isMicrophoneInjectionAvailable, - ); - } - - /// preferredMicrophoneInjectionMode - AVAudioSessionMicrophoneInjectionMode get preferredMicrophoneInjectionMode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredMicrophoneInjectionMode', - iOS: (false, (18, 2, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_1moai7z( - _$$ref.pointer, - _sel_preferredMicrophoneInjectionMode, - ); - return AVAudioSessionMicrophoneInjectionMode.fromValue($ret); - } - - /// setPreferredMicrophoneInjectionMode:error: - bool setPreferredMicrophoneInjectionMode( - AVAudioSessionMicrophoneInjectionMode inValue, - ) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredMicrophoneInjectionMode:error:', - iOS: (false, (18, 2, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_13l47a1( - _$$ref.pointer, - _sel_setPreferredMicrophoneInjectionMode_error_, - inValue.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -@ffi.Packed(2) -final class MixedModeStateRecord extends ffi.Struct { - @UInt32() - external int state1; - - @UInt32() - external int state2; - - @UInt32() - external int state3; - - @UInt32() - external int state4; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int state1, - required int state2, - required int state3, - required int state4, - }) => $allocator() - ..ref.state1 = state1 - ..ref.state2 = state2 - ..ref.state3 = state3 - ..ref.state4 = state4; -} - -@ffi.Packed(2) -final class MortChain extends ffi.Struct { - @MortSubtableMaskFlags() - external int defaultFlags; - - @UInt32() - external int length; - - @UInt16() - external int nFeatures; - - @UInt16() - external int nSubtables; - - @ffi.Array.multi([1]) - external ffi.Array featureEntries; -} - -final class MortContextualSubtable extends ffi.Struct { - external STHeader header; - - @UInt16() - external int substitutionTableOffset; -} - -@ffi.Packed(2) -final class MortFeatureEntry extends ffi.Struct { - @UInt16() - external int featureType; - - @UInt16() - external int featureSelector; - - @MortSubtableMaskFlags() - external int enableFlags; - - @MortSubtableMaskFlags() - external int disableFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int featureType, - required int featureSelector, - required int enableFlags, - required int disableFlags, - }) => $allocator() - ..ref.featureType = featureType - ..ref.featureSelector = featureSelector - ..ref.enableFlags = enableFlags - ..ref.disableFlags = disableFlags; -} - -final class MortInsertionSubtable extends ffi.Struct { - external STHeader header; -} - -typedef MortLigatureActionEntry = UInt32; - -final class MortLigatureSubtable extends ffi.Struct { - external STHeader header; - - @UInt16() - external int ligatureActionTableOffset; - - @UInt16() - external int componentTableOffset; - - @UInt16() - external int ligatureTableOffset; -} - -final class MortRearrangementSubtable extends ffi.Struct { - external STHeader header; -} - -final class MortSpecificSubtable extends ffi.Union { - external MortRearrangementSubtable rearrangement; - - external MortContextualSubtable contextual; - - external MortLigatureSubtable ligature; - - external MortSwashSubtable swash; - - external MortInsertionSubtable insertion; -} - -@ffi.Packed(2) -final class MortSubtable extends ffi.Struct { - @UInt16() - external int length; - - @UInt16() - external int coverage; - - @MortSubtableMaskFlags() - external int flags; - - external MortSpecificSubtable u; -} - -typedef MortSubtableMaskFlags = UInt32; - -final class MortSwashSubtable extends ffi.Struct { - external SFNTLookupTable lookup; -} - -@ffi.Packed(2) -final class MortTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt32() - external int nChains; - - @ffi.Array.multi([1]) - external ffi.Array chains; -} - -@ffi.Packed(2) -final class MorxChain extends ffi.Struct { - @MortSubtableMaskFlags() - external int defaultFlags; - - @UInt32() - external int length; - - @UInt32() - external int nFeatures; - - @UInt32() - external int nSubtables; - - @ffi.Array.multi([1]) - external ffi.Array featureEntries; -} - -@ffi.Packed(2) -final class MorxContextualSubtable extends ffi.Struct { - external STXHeader header; - - @UInt32() - external int substitutionTableOffset; -} - -@ffi.Packed(2) -final class MorxInsertionSubtable extends ffi.Struct { - external STXHeader header; - - @UInt32() - external int insertionGlyphTableOffset; -} - -@ffi.Packed(2) -final class MorxLigatureSubtable extends ffi.Struct { - external STXHeader header; - - @UInt32() - external int ligatureActionTableOffset; - - @UInt32() - external int componentTableOffset; - - @UInt32() - external int ligatureTableOffset; -} - -final class MorxRearrangementSubtable extends ffi.Struct { - external STXHeader header; -} - -final class MorxSpecificSubtable extends ffi.Union { - external MorxRearrangementSubtable rearrangement; - - external MorxContextualSubtable contextual; - - external MorxLigatureSubtable ligature; - - external MortSwashSubtable swash; - - external MorxInsertionSubtable insertion; -} - -@ffi.Packed(2) -final class MorxSubtable extends ffi.Struct { - @UInt32() - external int length; - - @UInt32() - external int coverage; - - @MortSubtableMaskFlags() - external int flags; - - external MorxSpecificSubtable u; -} - -@ffi.Packed(2) -final class MorxTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt32() - external int nChains; - - @ffi.Array.multi([1]) - external ffi.Array chains; -} - -final class NCMConcatProfileSet extends ffi.Struct { - @OSType() - external int cmm; - - @UInt32() - external int flags; - - @UInt32() - external int flagsMask; - - @UInt32() - external int profileCount; - - @ffi.Array.multi([1]) - external ffi.Array profileSpecs; -} - -final class NCMConcatProfileSpec extends ffi.Struct { - @UInt32() - external int renderingIntent; - - @UInt32() - external int transformTag; - - external CMProfileRef profile; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int renderingIntent, - required int transformTag, - required CMProfileRef profile, - }) => $allocator() - ..ref.renderingIntent = renderingIntent - ..ref.transformTag = transformTag - ..ref.profile = profile; -} - -final class NCMDeviceProfileInfo extends ffi.Struct { - @UInt32() - external int dataVersion; - - @CMDeviceProfileID() - external int profileID; - - external CMProfileLocation profileLoc; - - external CFDictionaryRef profileName; - - external CMDeviceProfileScope profileScope; - - @UInt32() - external int reserved; -} - -final class NDR_record_t extends ffi.Struct { - @ffi.UnsignedChar() - external int mig_vers; - - @ffi.UnsignedChar() - external int if_vers; - - @ffi.UnsignedChar() - external int reserved1; - - @ffi.UnsignedChar() - external int mig_encoding; - - @ffi.UnsignedChar() - external int int_rep; - - @ffi.UnsignedChar() - external int char_rep; - - @ffi.UnsignedChar() - external int float_rep; - - @ffi.UnsignedChar() - external int reserved2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mig_vers, - required int if_vers, - required int reserved1, - required int mig_encoding, - required int int_rep, - required int char_rep, - required int float_rep, - required int reserved2, - }) => $allocator() - ..ref.mig_vers = mig_vers - ..ref.if_vers = if_vers - ..ref.reserved1 = reserved1 - ..ref.mig_encoding = mig_encoding - ..ref.int_rep = int_rep - ..ref.char_rep = char_rep - ..ref.float_rep = float_rep - ..ref.reserved2 = reserved2; -} - -typedef NItl4Handle = ffi.Pointer; -typedef NItl4Ptr = ffi.Pointer; - -@ffi.Packed(2) -final class NItl4Rec extends ffi.Struct { - @ffi.Short() - external int flags; - - @SInt32() - external int resourceType; - - @ffi.Short() - external int resourceNum; - - @ffi.Short() - external int version; - - @ffi.Short() - external int format; - - @ffi.Short() - external int resHeader; - - @SInt32() - external int resHeader2; - - @ffi.Short() - external int numTables; - - @SInt32() - external int mapOffset; - - @SInt32() - external int strOffset; - - @SInt32() - external int fetchOffset; - - @SInt32() - external int unTokenOffset; - - @SInt32() - external int defPartsOffset; - - @SInt32() - external int whtSpListOffset; - - @SInt32() - external int resOffset7; - - @SInt32() - external int resOffset8; - - @ffi.Short() - external int resLength1; - - @ffi.Short() - external int resLength2; - - @ffi.Short() - external int resLength3; - - @ffi.Short() - external int unTokenLength; - - @ffi.Short() - external int defPartsLength; - - @ffi.Short() - external int whtSpListLength; - - @ffi.Short() - external int resLength7; - - @ffi.Short() - external int resLength8; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int resourceType, - required int resourceNum, - required int version, - required int format, - required int resHeader, - required int resHeader2, - required int numTables, - required int mapOffset, - required int strOffset, - required int fetchOffset, - required int unTokenOffset, - required int defPartsOffset, - required int whtSpListOffset, - required int resOffset7, - required int resOffset8, - required int resLength1, - required int resLength2, - required int resLength3, - required int unTokenLength, - required int defPartsLength, - required int whtSpListLength, - required int resLength7, - required int resLength8, - }) => $allocator() - ..ref.flags = flags - ..ref.resourceType = resourceType - ..ref.resourceNum = resourceNum - ..ref.version = version - ..ref.format = format - ..ref.resHeader = resHeader - ..ref.resHeader2 = resHeader2 - ..ref.numTables = numTables - ..ref.mapOffset = mapOffset - ..ref.strOffset = strOffset - ..ref.fetchOffset = fetchOffset - ..ref.unTokenOffset = unTokenOffset - ..ref.defPartsOffset = defPartsOffset - ..ref.whtSpListOffset = whtSpListOffset - ..ref.resOffset7 = resOffset7 - ..ref.resOffset8 = resOffset8 - ..ref.resLength1 = resLength1 - ..ref.resLength2 = resLength2 - ..ref.resLength3 = resLength3 - ..ref.unTokenLength = unTokenLength - ..ref.defPartsLength = defPartsLength - ..ref.whtSpListLength = whtSpListLength - ..ref.resLength7 = resLength7 - ..ref.resLength8 = resLength8; -} - -const int NSASCIIStringEncoding = 1; - -sealed class NSActivityOptions { - static const NSActivityIdleDisplaySleepDisabled = 1099511627776; - static const NSActivityIdleSystemSleepDisabled = 1048576; - static const NSActivitySuddenTerminationDisabled = 16384; - static const NSActivityAutomaticTerminationDisabled = 32768; - static const NSActivityAnimationTrackingEnabled = 35184372088832; - static const NSActivityTrackingEnabled = 70368744177664; - static const NSActivityUserInitiated = 16777215; - static const NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; - static const NSActivityBackground = 255; - static const NSActivityLatencyCritical = 1095216660480; - static const NSActivityUserInteractive = 1095233437695; -} - -final class NSAffineTransformStruct extends ffi.Struct { - @CGFloat() - external double m11; - - @CGFloat() - external double m12; - - @CGFloat() - external double m21; - - @CGFloat() - external double m22; - - @CGFloat() - external double tX; - - @CGFloat() - external double tY; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double m11, - required double m12, - required double m21, - required double m22, - required double tX, - required double tY, - }) => $allocator() - ..ref.m11 = m11 - ..ref.m12 = m12 - ..ref.m21 = m21 - ..ref.m22 = m22 - ..ref.tX = tX - ..ref.tY = tY; -} - -sealed class NSAlignmentOptions { - static const NSAlignMinXInward = 1; - static const NSAlignMinYInward = 2; - static const NSAlignMaxXInward = 4; - static const NSAlignMaxYInward = 8; - static const NSAlignWidthInward = 16; - static const NSAlignHeightInward = 32; - static const NSAlignMinXOutward = 256; - static const NSAlignMinYOutward = 512; - static const NSAlignMaxXOutward = 1024; - static const NSAlignMaxYOutward = 2048; - static const NSAlignWidthOutward = 4096; - static const NSAlignHeightOutward = 8192; - static const NSAlignMinXNearest = 65536; - static const NSAlignMinYNearest = 131072; - static const NSAlignMaxXNearest = 262144; - static const NSAlignMaxYNearest = 524288; - static const NSAlignWidthNearest = 1048576; - static const NSAlignHeightNearest = 2097152; - static const NSAlignRectFlipped = -9223372036854775808; - static const NSAlignAllEdgesInward = 15; - static const NSAlignAllEdgesOutward = 3840; - static const NSAlignAllEdgesNearest = 983040; -} - -/// WARNING: NSAppleEventDescriptor is a stub. To generate bindings for this class, include -/// NSAppleEventDescriptor in your config's objc-interfaces list. -/// -/// NSAppleEventDescriptor -extension type NSAppleEventDescriptor._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSAppleEventDescriptor] that points to the same underlying object as [other]. - NSAppleEventDescriptor.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSAppleEventDescriptor] that wraps the given raw object pointer. - NSAppleEventDescriptor.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -typedef NSAppleEventManagerSuspensionID = - ffi.Pointer<__NSAppleEventManagerSuspension>; - -/// WARNING: NSArchiver is a stub. To generate bindings for this class, include -/// NSArchiver in your config's objc-interfaces list. -/// -/// NSArchiver -@Deprecated('Use NSKeyedArchiver instead') -extension type NSArchiver._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSCoder { - /// Constructs a [NSArchiver] that points to the same underlying object as [other]. - NSArchiver.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSArchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSArchiver] that wraps the given raw object pointer. - NSArchiver.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSArchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -/// NSArchiverCallback -extension NSArchiverCallback on objc.NSObject { - /// classForArchiver - objc.ObjCObject? get classForArchiver { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classForArchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_classForArchiver); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// replacementObjectForArchiver: - @Deprecated('Deprecated') - objc.ObjCObject? replacementObjectForArchiver(NSArchiver archiver) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - objc.checkOsVersionInternal( - 'NSObject.replacementObjectForArchiver:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_replacementObjectForArchiver_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -const int NSArgumentEvaluationScriptError = 3; - -const int NSArgumentsWrongScriptError = 6; - -/// NSArrayCreation -extension NSArrayCreation on objc.NSArray { - /// initWithArray: - objc.NSArray initWithArray(objc.NSArray array) { - final _$$ref = object$.ref; - final _$$ref$1 = array.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - objc.NSArray initWithArray$1(objc.NSArray array, {required bool copyItems}) { - final _$$ref = object$.ref; - final _$$ref$1 = array.ref; - final $ret = _objc_msgSend_umhdr9( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSArray.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL:error: - objc.NSArray? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSArray.initWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1a2vk5h( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithObjects: - objc.NSArray initWithObjects$1(objc.ObjCObject firstObj) { - final _$$ref = object$.ref; - final _$$ref$1 = firstObj.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjects_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: false, release: true); - } - - /// array - static objc.NSArray array() { - final $ret = _objc_msgSend_zldla2(_class_NSArray, _sel_array); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithArray: - static objc.NSArray arrayWithArray(objc.NSArray array) { - final _$$ref = array.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSArray, - _sel_arrayWithArray_, - _$$ref.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithContentsOfURL:error: - static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSArray.arrayWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1a2vk5h( - _class_NSArray, - _sel_arrayWithContentsOfURL_error_, - _$$ref.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// arrayWithObject: - static objc.NSArray arrayWithObject(objc.ObjCObject anObject) { - final _$$ref = anObject.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSArray, - _sel_arrayWithObject_, - _$$ref.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithObjects: - static objc.NSArray arrayWithObjects(objc.ObjCObject firstObj) { - final _$$ref = firstObj.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSArray, - _sel_arrayWithObjects_, - _$$ref.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithObjects:count: - static objc.NSArray arrayWithObjects$1( - ffi.Pointer> objects, { - required DartNSUInteger count, - }) { - final $ret = _objc_msgSend_1u4qka1( - _class_NSArray, - _sel_arrayWithObjects_count_, - objects, - count, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSArrayDiffing -extension NSArrayDiffing on objc.NSArray { - /// arrayByApplyingDifference: - objc.NSArray? arrayByApplyingDifference( - objc.NSOrderedCollectionDifference difference, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = difference.ref; - objc.checkOsVersionInternal( - 'NSArray.arrayByApplyingDifference:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_arrayByApplyingDifference_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// differenceFromArray: - objc.NSOrderedCollectionDifference differenceFromArray(objc.NSArray other) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - objc.checkOsVersionInternal( - 'NSArray.differenceFromArray:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_differenceFromArray_, - _$$ref$1.pointer, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// differenceFromArray:withOptions: - objc.NSOrderedCollectionDifference differenceFromArray$1( - objc.NSArray other, { - required DartNSUInteger withOptions, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - objc.checkOsVersionInternal( - 'NSArray.differenceFromArray:withOptions:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_shgy3l( - _$$ref.pointer, - _sel_differenceFromArray_withOptions_, - _$$ref$1.pointer, - withOptions, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// differenceFromArray:withOptions:usingEquivalenceTest: - objc.NSOrderedCollectionDifference differenceFromArray$2( - objc.NSArray other, { - required DartNSUInteger withOptions, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingEquivalenceTest, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - final _$$ref$2 = usingEquivalenceTest.ref; - objc.checkOsVersionInternal( - 'NSArray.differenceFromArray:withOptions:usingEquivalenceTest:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_unrmat( - _$$ref.pointer, - _sel_differenceFromArray_withOptions_usingEquivalenceTest_, - _$$ref$1.pointer, - withOptions, - _$$ref$2.pointer, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSArrayPathExtensions -extension NSArrayPathExtensions on objc.NSArray { - /// pathsMatchingExtensions: - objc.NSArray pathsMatchingExtensions(objc.NSArray filterTypes) { - final _$$ref = object$.ref; - final _$$ref$1 = filterTypes.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_pathsMatchingExtensions_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSAttributedStringCreateFromMarkdown -extension NSAttributedStringCreateFromMarkdown on objc.NSAttributedString { - /// initWithContentsOfMarkdownFileAtURL:options:baseURL:error: - objc.NSAttributedString? initWithContentsOfMarkdownFileAtURL( - objc.NSURL markdownFile, { - objc.NSAttributedStringMarkdownParsingOptions? options, - objc.NSURL? baseURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markdownFile.ref; - final _$$ref$2 = options?.ref; - final _$$ref$3 = baseURL?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithContentsOfMarkdownFileAtURL:options:baseURL:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_jgkhez( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithMarkdown:options:baseURL:error: - objc.NSAttributedString? initWithMarkdown( - objc.NSData markdown, { - objc.NSAttributedStringMarkdownParsingOptions? options, - objc.NSURL? baseURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markdown.ref; - final _$$ref$2 = options?.ref; - final _$$ref$3 = baseURL?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithMarkdown:options:baseURL:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_jgkhez( - _$$ref.retainAndReturnPointer(), - _sel_initWithMarkdown_options_baseURL_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithMarkdownString:options:baseURL:error: - objc.NSAttributedString? initWithMarkdownString( - objc.NSString markdownString, { - objc.NSAttributedStringMarkdownParsingOptions? options, - objc.NSURL? baseURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markdownString.ref; - final _$$ref$2 = options?.ref; - final _$$ref$3 = baseURL?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithMarkdownString:options:baseURL:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_jgkhez( - _$$ref.retainAndReturnPointer(), - _sel_initWithMarkdownString_options_baseURL_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -/// NSAttributedStringFormatting -extension NSAttributedStringFormatting on objc.NSAttributedString { - /// initWithFormat:options:locale: - objc.NSAttributedString initWithFormat( - objc.NSAttributedString format, { - required DartNSUInteger options, - objc.NSLocale? locale, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - final _$$ref$2 = locale?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithFormat:options:locale:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_yeon2y( - _$$ref.retainAndReturnPointer(), - _sel_initWithFormat_options_locale_, - _$$ref$1.pointer, - options, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// initWithFormat:options:locale:context: - objc.NSAttributedString initWithFormat$1( - objc.NSAttributedString format, { - required DartNSUInteger options, - objc.NSLocale? locale, - required objc.NSDictionary context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - final _$$ref$2 = locale?.ref; - final _$$ref$3 = context.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithFormat:options:locale:context:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_1dgggdh( - _$$ref.retainAndReturnPointer(), - _sel_initWithFormat_options_locale_context_, - _$$ref$1.pointer, - options, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// localizedAttributedStringWithFormat: - static objc.NSAttributedString localizedAttributedStringWithFormat( - objc.NSAttributedString format, - ) { - final _$$ref = format.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_, - _$$ref.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// localizedAttributedStringWithFormat:context: - static objc.NSAttributedString localizedAttributedStringWithFormat$1( - objc.NSAttributedString format, { - required objc.NSDictionary context, - }) { - final _$$ref = format.ref; - final _$$ref$1 = context.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:context:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_context_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// localizedAttributedStringWithFormat:options: - static objc.NSAttributedString localizedAttributedStringWithFormat$2( - objc.NSAttributedString format, { - required DartNSUInteger options, - }) { - final _$$ref = format.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:options:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_1f7ncs3( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_options_, - _$$ref.pointer, - options, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// localizedAttributedStringWithFormat:options:context: - static objc.NSAttributedString localizedAttributedStringWithFormat$3( - objc.NSAttributedString format, { - required DartNSUInteger options, - required objc.NSDictionary context, - }) { - final _$$ref = format.ref; - final _$$ref$1 = context.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:options:context:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_yeon2y( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_options_context_, - _$$ref.pointer, - options, - _$$ref$1.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -typedef NSAttributedStringFormattingContextKey = - ffi.Pointer; -typedef DartNSAttributedStringFormattingContextKey = objc.NSString; -typedef NSAttributedStringKey = ffi.Pointer; -typedef DartNSAttributedStringKey = objc.NSString; -typedef NSBackgroundActivityCompletionHandler = ffi.Pointer; -typedef DartNSBackgroundActivityCompletionHandler = - objc.ObjCBlock; - -enum NSBackgroundActivityResult { - NSBackgroundActivityResultFinished(1), - NSBackgroundActivityResultDeferred(2); - - final int value; - const NSBackgroundActivityResult(this.value); - - static NSBackgroundActivityResult fromValue(int value) => switch (value) { - 1 => NSBackgroundActivityResultFinished, - 2 => NSBackgroundActivityResultDeferred, - _ => throw ArgumentError( - 'Unknown value for NSBackgroundActivityResult: $value', - ), - }; -} - -const int NSBundleErrorMaximum = 5119; - -const int NSBundleErrorMinimum = 4992; - -const int NSBundleExecutableArchitectureARM64 = 16777228; - -const int NSBundleExecutableArchitectureI386 = 7; - -const int NSBundleExecutableArchitecturePPC = 18; - -const int NSBundleExecutableArchitecturePPC64 = 16777234; - -const int NSBundleExecutableArchitectureX86_64 = 16777223; - -/// NSBundleExtensionMethods -extension NSBundleExtensionMethods on objc.NSString { - /// variantFittingPresentationWidth: - objc.NSString variantFittingPresentationWidth(DartNSInteger width) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.variantFittingPresentationWidth:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $ret = _objc_msgSend_x76ogv( - _$$ref.pointer, - _sel_variantFittingPresentationWidth_, - width, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -const int NSBundleOnDemandResourceExceededMaximumSizeError = 4993; - -const int NSBundleOnDemandResourceInvalidTagError = 4994; - -const int NSBundleOnDemandResourceOutOfSpaceError = 4992; - -/// NSBundleResourceRequestAdditions -extension NSBundleResourceRequestAdditions on objc.NSBundle { - /// preservationPriorityForTag: - double preservationPriorityForTag(objc.NSString tag) { - final _$$ref = object$.ref; - final _$$ref$1 = tag.ref; - objc.checkOsVersionInternal( - 'NSBundle.preservationPriorityForTag:', - iOS: (false, (9, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_zlrk5fFpret( - _$$ref.pointer, - _sel_preservationPriorityForTag_, - _$$ref$1.pointer, - ) - : _objc_msgSend_zlrk5f( - _$$ref.pointer, - _sel_preservationPriorityForTag_, - _$$ref$1.pointer, - ); - } - - /// setPreservationPriority:forTags: - void setPreservationPriority(double priority, {required objc.NSSet forTags}) { - final _$$ref = object$.ref; - final _$$ref$1 = forTags.ref; - objc.checkOsVersionInternal( - 'NSBundle.setPreservationPriority:forTags:', - iOS: (false, (9, 0, 0)), - macOS: (true, null), - ); - _objc_msgSend_1wruglo( - _$$ref.pointer, - _sel_setPreservationPriority_forTags_, - priority, - _$$ref$1.pointer, - ); - } -} - -enum NSByteCountFormatterCountStyle { - NSByteCountFormatterCountStyleFile(0), - NSByteCountFormatterCountStyleMemory(1), - NSByteCountFormatterCountStyleDecimal(2), - NSByteCountFormatterCountStyleBinary(3); - - final int value; - const NSByteCountFormatterCountStyle(this.value); - - static NSByteCountFormatterCountStyle fromValue(int value) => switch (value) { - 0 => NSByteCountFormatterCountStyleFile, - 1 => NSByteCountFormatterCountStyleMemory, - 2 => NSByteCountFormatterCountStyleDecimal, - 3 => NSByteCountFormatterCountStyleBinary, - _ => throw ArgumentError( - 'Unknown value for NSByteCountFormatterCountStyle: $value', - ), - }; -} - -sealed class NSByteCountFormatterUnits { - static const NSByteCountFormatterUseDefault = 0; - static const NSByteCountFormatterUseBytes = 1; - static const NSByteCountFormatterUseKB = 2; - static const NSByteCountFormatterUseMB = 4; - static const NSByteCountFormatterUseGB = 8; - static const NSByteCountFormatterUseTB = 16; - static const NSByteCountFormatterUsePB = 32; - static const NSByteCountFormatterUseEB = 64; - static const NSByteCountFormatterUseZB = 128; - static const NSByteCountFormatterUseYBOrHigher = 65280; - static const NSByteCountFormatterUseAll = 65535; -} - -/// WARNING: NSCache is a stub. To generate bindings for this class, include -/// NSCache in your config's objc-interfaces list. -/// -/// NSCache -extension type NSCache._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSCache] that points to the same underlying object as [other]. - NSCache.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSCache', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } - - /// Constructs a [NSCache] that wraps the given raw object pointer. - NSCache.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSCache', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } -} - -/// NSCacheDelegate -extension type NSCacheDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSCacheDelegate] that points to the same underlying object as [other]. - NSCacheDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSCacheDelegate] that wraps the given raw object pointer. - NSCacheDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSCacheDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSCacheDelegate, - ); - } -} - -extension NSCacheDelegate$Methods on NSCacheDelegate { - /// cache:willEvictObject: - void cache(NSCache cache, {required objc.ObjCObject willEvictObject}) { - final _$$ref = object$.ref; - final _$$ref$1 = cache.ref; - final _$$ref$2 = willEvictObject.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_cache_willEvictObject_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSCacheDelegate', - 'cache:willEvictObject:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_cache_willEvictObject_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSCacheDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSCacheDelegate.cast()); - - /// Builds an object that implements the NSCacheDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCacheDelegate implement({ - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); - NSCacheDelegate$Builder.cache_willEvictObject_.implement( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - return NSCacheDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCacheDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - NSCacheDelegate$Builder.cache_willEvictObject_.implement( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSCacheDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCacheDelegate implementAsListener({ - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); - NSCacheDelegate$Builder.cache_willEvictObject_.implementAsListener( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - return NSCacheDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCacheDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - NSCacheDelegate$Builder.cache_willEvictObject_.implementAsListener( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSCacheDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCacheDelegate implementAsBlocking({ - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); - NSCacheDelegate$Builder.cache_willEvictObject_.implementAsBlocking( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - return NSCacheDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCacheDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - NSCacheDelegate$Builder.cache_willEvictObject_.implementAsBlocking( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - } - - /// cache:willEvictObject: - static final cache_willEvictObject_ = - objc.ObjCProtocolListenableMethod< - void Function(NSCache, objc.ObjCObject) - >( - _protocol_NSCacheDelegate, - _sel_cache_willEvictObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCacheDelegate, - _sel_cache_willEvictObject_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSCache, objc.ObjCObject) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.fromFunction( - (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => - func(arg1, arg2), - ), - (void Function(NSCache, objc.ObjCObject) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.listener( - (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => - func(arg1, arg2), - ), - (void Function(NSCache, objc.ObjCObject) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.blocking( - (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => - func(arg1, arg2), - ), - ); -} - -/// WARNING: NSCachedURLResponse is a stub. To generate bindings for this class, include -/// NSCachedURLResponse in your config's objc-interfaces list. -/// -/// NSCachedURLResponse -extension type NSCachedURLResponse._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSCachedURLResponse] that points to the same underlying object as [other]. - NSCachedURLResponse.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSCachedURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSCachedURLResponse] that wraps the given raw object pointer. - NSCachedURLResponse.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSCachedURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -enum NSCalculationError { - NSCalculationNoError(0), - NSCalculationLossOfPrecision(1), - NSCalculationUnderflow(2), - NSCalculationOverflow(3), - NSCalculationDivideByZero(4); - - final int value; - const NSCalculationError(this.value); - - static NSCalculationError fromValue(int value) => switch (value) { - 0 => NSCalculationNoError, - 1 => NSCalculationLossOfPrecision, - 2 => NSCalculationUnderflow, - 3 => NSCalculationOverflow, - 4 => NSCalculationDivideByZero, - _ => throw ArgumentError('Unknown value for NSCalculationError: $value'), - }; -} - -/// WARNING: NSCalendarDate is a stub. To generate bindings for this class, include -/// NSCalendarDate in your config's objc-interfaces list. -/// -/// NSCalendarDate -@Deprecated('Use NSCalendar and NSDateComponents and NSDateFormatter instead') -extension type NSCalendarDate._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSDate { - /// Constructs a [NSCalendarDate] that points to the same underlying object as [other]. - NSCalendarDate.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSCalendarDate', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } - - /// Constructs a [NSCalendarDate] that wraps the given raw object pointer. - NSCalendarDate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSCalendarDate', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } -} - -/// NSCalendarDateExtras -extension NSCalendarDateExtras on objc.NSDate { - /// dateWithCalendarFormat:timeZone: - @Deprecated('Deprecated') - NSCalendarDate dateWithCalendarFormat( - objc.NSString? format, { - NSTimeZone? timeZone, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format?.ref; - final _$$ref$2 = timeZone?.ref; - objc.checkOsVersionInternal( - 'NSDate.dateWithCalendarFormat:timeZone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_dateWithCalendarFormat_timeZone_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return NSCalendarDate.fromPointer($ret, retain: true, release: true); - } - - /// descriptionWithCalendarFormat:timeZone:locale: - @Deprecated('Deprecated') - objc.NSString? descriptionWithCalendarFormat( - objc.NSString? format, { - NSTimeZone? timeZone, - objc.ObjCObject? locale, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format?.ref; - final _$$ref$2 = timeZone?.ref; - final _$$ref$3 = locale?.ref; - objc.checkOsVersionInternal( - 'NSDate.descriptionWithCalendarFormat:timeZone:locale:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_1mevadz( - _$$ref.pointer, - _sel_descriptionWithCalendarFormat_timeZone_locale_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// initWithString: - @Deprecated('Use NSDateFormatter instead') - objc.ObjCObject? initWithString(objc.NSString description) { - final _$$ref = object$.ref; - final _$$ref$1 = description.ref; - objc.checkOsVersionInternal( - 'NSDate.initWithString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithString_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// dateWithNaturalLanguageString: - @Deprecated( - 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', - ) - static objc.ObjCObject? dateWithNaturalLanguageString(objc.NSString string) { - final _$$ref = string.ref; - objc.checkOsVersionInternal( - 'NSDate.dateWithNaturalLanguageString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSDate, - _sel_dateWithNaturalLanguageString_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// dateWithNaturalLanguageString:locale: - @Deprecated( - 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', - ) - static objc.ObjCObject? dateWithNaturalLanguageString$1( - objc.NSString string, { - objc.ObjCObject? locale, - }) { - final _$$ref = string.ref; - final _$$ref$1 = locale?.ref; - objc.checkOsVersionInternal( - 'NSDate.dateWithNaturalLanguageString:locale:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _class_NSDate, - _sel_dateWithNaturalLanguageString_locale_, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// dateWithString: - @Deprecated('Use NSDateFormatter instead') - static objc.ObjCObject dateWithString(objc.NSString aString) { - final _$$ref = aString.ref; - objc.checkOsVersionInternal( - 'NSDate.dateWithString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSDate, - _sel_dateWithString_, - _$$ref.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -typedef NSCalendarIdentifier = ffi.Pointer; -typedef DartNSCalendarIdentifier = objc.NSString; - -sealed class NSCalendarOptions { - static const NSCalendarWrapComponents = 1; - static const NSCalendarMatchStrictly = 2; - static const NSCalendarSearchBackwards = 4; - static const NSCalendarMatchPreviousTimePreservingSmallerUnits = 256; - static const NSCalendarMatchNextTimePreservingSmallerUnits = 512; - static const NSCalendarMatchNextTime = 1024; - static const NSCalendarMatchFirst = 4096; - static const NSCalendarMatchLast = 8192; -} - -sealed class NSCalendarUnit { - static const NSCalendarUnitEra = 2; - static const NSCalendarUnitYear = 4; - static const NSCalendarUnitMonth = 8; - static const NSCalendarUnitDay = 16; - static const NSCalendarUnitHour = 32; - static const NSCalendarUnitMinute = 64; - static const NSCalendarUnitSecond = 128; - static const NSCalendarUnitWeekday = 512; - static const NSCalendarUnitWeekdayOrdinal = 1024; - static const NSCalendarUnitQuarter = 2048; - static const NSCalendarUnitWeekOfMonth = 4096; - static const NSCalendarUnitWeekOfYear = 8192; - static const NSCalendarUnitYearForWeekOfYear = 16384; - static const NSCalendarUnitNanosecond = 32768; - static const NSCalendarUnitDayOfYear = 65536; - static const NSCalendarUnitCalendar = 1048576; - static const NSCalendarUnitTimeZone = 2097152; - static const NSCalendarUnitIsLeapMonth = 1073741824; - static const NSCalendarUnitIsRepeatedDay = 2147483648; - static const NSEraCalendarUnit = 2; - static const NSYearCalendarUnit = 4; - static const NSMonthCalendarUnit = 8; - static const NSDayCalendarUnit = 16; - static const NSHourCalendarUnit = 32; - static const NSMinuteCalendarUnit = 64; - static const NSSecondCalendarUnit = 128; - static const NSWeekCalendarUnit = 256; - static const NSWeekdayCalendarUnit = 512; - static const NSWeekdayOrdinalCalendarUnit = 1024; - static const NSQuarterCalendarUnit = 2048; - static const NSWeekOfMonthCalendarUnit = 4096; - static const NSWeekOfYearCalendarUnit = 8192; - static const NSYearForWeekOfYearCalendarUnit = 16384; - static const NSCalendarCalendarUnit = 1048576; - static const NSTimeZoneCalendarUnit = 2097152; -} - -const int NSCannotCreateScriptCommandError = 10; - -/// WARNING: NSClassDescription is a stub. To generate bindings for this class, include -/// NSClassDescription in your config's objc-interfaces list. -/// -/// NSClassDescription -extension type NSClassDescription._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSClassDescription] that points to the same underlying object as [other]. - NSClassDescription.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSClassDescription] that wraps the given raw object pointer. - NSClassDescription.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSClassDescriptionPrimitives -extension NSClassDescriptionPrimitives on objc.NSObject { - /// attributeKeys - objc.NSArray get attributeKeys { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.attributeKeys', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_attributeKeys); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// classDescription - NSClassDescription get classDescription { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classDescription', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_classDescription); - return NSClassDescription.fromPointer($ret, retain: true, release: true); - } - - /// inverseForRelationshipKey: - objc.NSString? inverseForRelationshipKey(objc.NSString relationshipKey) { - final _$$ref = object$.ref; - final _$$ref$1 = relationshipKey.ref; - objc.checkOsVersionInternal( - 'NSObject.inverseForRelationshipKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_inverseForRelationshipKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// toManyRelationshipKeys - objc.NSArray get toManyRelationshipKeys { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.toManyRelationshipKeys', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_toManyRelationshipKeys, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// toOneRelationshipKeys - objc.NSArray get toOneRelationshipKeys { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.toOneRelationshipKeys', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_toOneRelationshipKeys, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSClientCertificate -extension NSClientCertificate on NSURLCredential { - /// certificates - objc.NSArray get certificates { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.certificates', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_certificates); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// identity - SecIdentityRef get identity { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.identity', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - return _objc_msgSend_z7s0qs(_$$ref.pointer, _sel_identity); - } - - /// credentialWithIdentity:certificates:persistence: - static NSURLCredential credentialWithIdentity( - SecIdentityRef identity, { - objc.NSArray? certificates, - required NSURLCredentialPersistence persistence, - }) { - final _$$ref = certificates?.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.credentialWithIdentity:certificates:persistence:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_10340ek( - _class_NSURLCredential, - _sel_credentialWithIdentity_certificates_persistence_, - identity, - _$$ref?.pointer ?? ffi.nullptr, - persistence.value, - ); - return NSURLCredential.fromPointer($ret, retain: true, release: true); - } -} - -/// NSClientCertificateSpace -extension NSClientCertificateSpace on NSURLProtectionSpace { - /// distinguishedNames - objc.NSArray? get distinguishedNames { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLProtectionSpace.distinguishedNames', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_distinguishedNames); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -const int NSCloudSharingConflictError = 5123; - -const int NSCloudSharingErrorMaximum = 5375; - -const int NSCloudSharingErrorMinimum = 5120; - -const int NSCloudSharingNetworkFailureError = 5120; - -const int NSCloudSharingNoPermissionError = 5124; - -const int NSCloudSharingOtherError = 5375; - -const int NSCloudSharingQuotaExceededError = 5121; - -const int NSCloudSharingTooManyParticipantsError = 5122; - -const int NSCoderErrorMaximum = 4991; - -const int NSCoderErrorMinimum = 4864; - -const int NSCoderInvalidValueError = 4866; - -/// NSCoderMethods -extension NSCoderMethods on objc.NSObject { - /// awakeAfterUsingCoder: - objc.ObjCObject? awakeAfterUsingCoder(objc.NSCoder coder) { - final _$$ref = object$.ref; - final _$$ref$1 = coder.ref; - objc.checkOsVersionInternal( - 'NSObject.awakeAfterUsingCoder:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_awakeAfterUsingCoder_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// classForCoder - objc.ObjCObject get classForCoder { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classForCoder', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_classForCoder); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// replacementObjectForCoder: - objc.ObjCObject? replacementObjectForCoder(objc.NSCoder coder) { - final _$$ref = object$.ref; - final _$$ref$1 = coder.ref; - objc.checkOsVersionInternal( - 'NSObject.replacementObjectForCoder:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_replacementObjectForCoder_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// setVersion: - static void setVersion(DartNSInteger aVersion) { - objc.checkOsVersionInternal( - 'NSObject.setVersion:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1whyqxt(_class_NSObject, _sel_setVersion_, aVersion); - } - - /// version - static DartNSInteger version() { - objc.checkOsVersionInternal( - 'NSObject.version', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_18szuw0(_class_NSObject, _sel_version); - } -} - -const int NSCoderReadCorruptError = 4864; - -const int NSCoderValueNotFoundError = 4865; - -const int NSCollectorDisabledOption = 2; - -typedef NSComparator = ffi.Pointer; -typedef DartNSComparator = - objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >; - -/// NSComparisonMethods -extension NSComparisonMethods on objc.NSObject { - /// doesContain: - bool doesContain(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.doesContain:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_doesContain_, - _$$ref$1.pointer, - ); - } - - /// isCaseInsensitiveLike: - bool isCaseInsensitiveLike(objc.NSString object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.isCaseInsensitiveLike:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isCaseInsensitiveLike_, - _$$ref$1.pointer, - ); - } - - /// isEqualTo: - bool isEqualTo(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isEqualTo_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// isGreaterThan: - bool isGreaterThan(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isGreaterThan:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isGreaterThan_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// isGreaterThanOrEqualTo: - bool isGreaterThanOrEqualTo(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isGreaterThanOrEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isGreaterThanOrEqualTo_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// isLessThan: - bool isLessThan(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isLessThan:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isLessThan_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// isLessThanOrEqualTo: - bool isLessThanOrEqualTo(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isLessThanOrEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isLessThanOrEqualTo_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// isLike: - bool isLike(objc.NSString object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.isLike:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy(_$$ref.pointer, _sel_isLike_, _$$ref$1.pointer); - } - - /// isNotEqualTo: - bool isNotEqualTo(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isNotEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isNotEqualTo_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -enum NSComparisonPredicateModifier { - NSDirectPredicateModifier(0), - NSAllPredicateModifier(1), - NSAnyPredicateModifier(2); - - final int value; - const NSComparisonPredicateModifier(this.value); - - static NSComparisonPredicateModifier fromValue(int value) => switch (value) { - 0 => NSDirectPredicateModifier, - 1 => NSAllPredicateModifier, - 2 => NSAnyPredicateModifier, - _ => throw ArgumentError( - 'Unknown value for NSComparisonPredicateModifier: $value', - ), - }; -} - -sealed class NSComparisonPredicateOptions { - static const NSCaseInsensitivePredicateOption = 1; - static const NSDiacriticInsensitivePredicateOption = 2; - static const NSNormalizedPredicateOption = 4; -} - -enum NSCompoundPredicateType { - NSNotPredicateType(0), - NSAndPredicateType(1), - NSOrPredicateType(2); - - final int value; - const NSCompoundPredicateType(this.value); - - static NSCompoundPredicateType fromValue(int value) => switch (value) { - 0 => NSNotPredicateType, - 1 => NSAndPredicateType, - 2 => NSOrPredicateType, - _ => throw ArgumentError( - 'Unknown value for NSCompoundPredicateType: $value', - ), - }; -} - -const int NSCompressionErrorMaximum = 5503; - -const int NSCompressionErrorMinimum = 5376; - -const int NSCompressionFailedError = 5376; - -/// WARNING: NSConnection is a stub. To generate bindings for this class, include -/// NSConnection in your config's objc-interfaces list. -/// -/// NSConnection -@Deprecated('Use NSXPCConnection instead') -extension type NSConnection._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSConnection] that points to the same underlying object as [other]. - NSConnection.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSConnection', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSConnection] that wraps the given raw object pointer. - NSConnection.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSConnection', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -/// NSConnectionDelegate -@Deprecated('Use NSXPCConnection instead') -extension type NSConnectionDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSConnectionDelegate] that points to the same underlying object as [other]. - NSConnectionDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSConnectionDelegate] that wraps the given raw object pointer. - NSConnectionDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSConnectionDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSConnectionDelegate, - ); - } -} - -extension NSConnectionDelegate$Methods on NSConnectionDelegate { - /// authenticateComponents:withData: - @Deprecated('Use NSXPCConnection instead') - bool authenticateComponents( - objc.NSArray components, { - required objc.NSData withData, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = components.ref; - final _$$ref$2 = withData.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.authenticateComponents:withData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_authenticateComponents_withData_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'authenticateComponents:withData:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_authenticateComponents_withData_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// authenticationDataForComponents: - @Deprecated('Use NSXPCConnection instead') - objc.NSData authenticationDataForComponents(objc.NSArray components) { - final _$$ref = object$.ref; - final _$$ref$1 = components.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.authenticationDataForComponents:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_authenticationDataForComponents_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'authenticationDataForComponents:', - ); - } - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_authenticationDataForComponents_, - _$$ref$1.pointer, - ); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// connection:handleRequest: - @Deprecated('Use NSXPCConnection instead') - bool connection( - NSConnection connection, { - required NSDistantObjectRequest handleRequest, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = handleRequest.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.connection:handleRequest:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_handleRequest_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'connection:handleRequest:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_connection_handleRequest_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:shouldMakeNewConnection: - @Deprecated('Use NSXPCConnection instead') - bool connection$1( - NSConnection ancestor, { - required NSConnection shouldMakeNewConnection, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = ancestor.ref; - final _$$ref$2 = shouldMakeNewConnection.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.connection:shouldMakeNewConnection:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_shouldMakeNewConnection_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'connection:shouldMakeNewConnection:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_connection_shouldMakeNewConnection_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// createConversationForConnection: - @Deprecated('Use NSXPCConnection instead') - objc.ObjCObject createConversationForConnection(NSConnection conn) { - final _$$ref = object$.ref; - final _$$ref$1 = conn.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.createConversationForConnection:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_createConversationForConnection_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'createConversationForConnection:', - ); - } - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_createConversationForConnection_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// makeNewConnection:sender: - @Deprecated('Use NSXPCConnection instead') - bool makeNewConnection(NSConnection conn, {required NSConnection sender}) { - final _$$ref = object$.ref; - final _$$ref$1 = conn.ref; - final _$$ref$2 = sender.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.makeNewConnection:sender:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_makeNewConnection_sender_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'makeNewConnection:sender:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_makeNewConnection_sender_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSConnectionDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSConnectionDelegate.cast()); - - /// Builds an object that implements the NSConnectionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSConnectionDelegate implement({ - bool Function(objc.NSArray, objc.NSData)? authenticateComponents_withData_, - objc.NSData Function(objc.NSArray)? authenticationDataForComponents_, - bool Function(NSConnection, NSDistantObjectRequest)? - connection_handleRequest_, - bool Function(NSConnection, NSConnection)? - connection_shouldMakeNewConnection_, - objc.ObjCObject Function(NSConnection)? createConversationForConnection_, - bool Function(NSConnection, NSConnection)? makeNewConnection_sender_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSConnectionDelegate'); - NSConnectionDelegate$Builder.authenticateComponents_withData_.implement( - builder, - authenticateComponents_withData_, - ); - NSConnectionDelegate$Builder.authenticationDataForComponents_.implement( - builder, - authenticationDataForComponents_, - ); - NSConnectionDelegate$Builder.connection_handleRequest_.implement( - builder, - connection_handleRequest_, - ); - NSConnectionDelegate$Builder.connection_shouldMakeNewConnection_.implement( - builder, - connection_shouldMakeNewConnection_, - ); - NSConnectionDelegate$Builder.createConversationForConnection_.implement( - builder, - createConversationForConnection_, - ); - NSConnectionDelegate$Builder.makeNewConnection_sender_.implement( - builder, - makeNewConnection_sender_, - ); - builder.addProtocol($protocol); - return NSConnectionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSConnectionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(objc.NSArray, objc.NSData)? authenticateComponents_withData_, - objc.NSData Function(objc.NSArray)? authenticationDataForComponents_, - bool Function(NSConnection, NSDistantObjectRequest)? - connection_handleRequest_, - bool Function(NSConnection, NSConnection)? - connection_shouldMakeNewConnection_, - objc.ObjCObject Function(NSConnection)? createConversationForConnection_, - bool Function(NSConnection, NSConnection)? makeNewConnection_sender_, - bool $keepIsolateAlive = true, - }) { - NSConnectionDelegate$Builder.authenticateComponents_withData_.implement( - builder, - authenticateComponents_withData_, - ); - NSConnectionDelegate$Builder.authenticationDataForComponents_.implement( - builder, - authenticationDataForComponents_, - ); - NSConnectionDelegate$Builder.connection_handleRequest_.implement( - builder, - connection_handleRequest_, - ); - NSConnectionDelegate$Builder.connection_shouldMakeNewConnection_.implement( - builder, - connection_shouldMakeNewConnection_, - ); - NSConnectionDelegate$Builder.createConversationForConnection_.implement( - builder, - createConversationForConnection_, - ); - NSConnectionDelegate$Builder.makeNewConnection_sender_.implement( - builder, - makeNewConnection_sender_, - ); - builder.addProtocol($protocol); - } - - /// authenticateComponents:withData: - static final authenticateComponents_withData_ = - objc.ObjCProtocolMethod( - _protocol_NSConnectionDelegate, - _sel_authenticateComponents_withData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_authenticateComponents_withData_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(objc.NSArray, objc.NSData) func) => - ObjCBlock_bool_ffiVoid_NSArray_NSData.fromFunction( - (ffi.Pointer _, objc.NSArray arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - ); - - /// authenticationDataForComponents: - static final authenticationDataForComponents_ = - objc.ObjCProtocolMethod( - _protocol_NSConnectionDelegate, - _sel_authenticationDataForComponents_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_an4r6w) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_authenticationDataForComponents_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.NSData Function(objc.NSArray) func) => - ObjCBlock_NSData_ffiVoid_NSArray.fromFunction( - (ffi.Pointer _, objc.NSArray arg1) => func(arg1), - ), - ); - - /// connection:handleRequest: - static final connection_handleRequest_ = - objc.ObjCProtocolMethod< - bool Function(NSConnection, NSDistantObjectRequest) - >( - _protocol_NSConnectionDelegate, - _sel_connection_handleRequest_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_connection_handleRequest_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSConnection, NSDistantObjectRequest) func) => - ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest.fromFunction( - ( - ffi.Pointer _, - NSConnection arg1, - NSDistantObjectRequest arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:shouldMakeNewConnection: - static final connection_shouldMakeNewConnection_ = - objc.ObjCProtocolMethod( - _protocol_NSConnectionDelegate, - _sel_connection_shouldMakeNewConnection_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_connection_shouldMakeNewConnection_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSConnection, NSConnection) func) => - ObjCBlock_bool_ffiVoid_NSConnection_NSConnection.fromFunction( - (ffi.Pointer _, NSConnection arg1, NSConnection arg2) => - func(arg1, arg2), - ), - ); - - /// createConversationForConnection: - static final createConversationForConnection_ = - objc.ObjCProtocolMethod( - _protocol_NSConnectionDelegate, - _sel_createConversationForConnection_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_an4r6w) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_createConversationForConnection_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.ObjCObject Function(NSConnection) func) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection.fromFunction( - (ffi.Pointer _, NSConnection arg1) => func(arg1), - ), - ); - - /// makeNewConnection:sender: - static final makeNewConnection_sender_ = - objc.ObjCProtocolMethod( - _protocol_NSConnectionDelegate, - _sel_makeNewConnection_sender_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_makeNewConnection_sender_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSConnection, NSConnection) func) => - ObjCBlock_bool_ffiVoid_NSConnection_NSConnection.fromFunction( - (ffi.Pointer _, NSConnection arg1, NSConnection arg2) => - func(arg1, arg2), - ), - ); -} - -const int NSContainerSpecifierError = 2; - -/// NSCopyLinkMoveHandler -extension NSCopyLinkMoveHandler on objc.NSObject { - /// fileManager:shouldProceedAfterError: - @Deprecated(' Handler API no longer supported') - bool fileManager( - NSFileManager fm, { - required objc.NSDictionary shouldProceedAfterError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fm.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - objc.checkOsVersionInternal( - 'NSObject.fileManager:shouldProceedAfterError:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// fileManager:willProcessPath: - @Deprecated('Handler API no longer supported') - void fileManager$1( - NSFileManager fm, { - required objc.NSString willProcessPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fm.ref; - final _$$ref$2 = willProcessPath.ref; - objc.checkOsVersionInternal( - 'NSObject.fileManager:willProcessPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_fileManager_willProcessPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSCustomPronouns -@Deprecated('Use NSTermOfAddress instead') -extension NSCustomPronouns on NSMorphology$1 { - /// customPronounForLanguage: - @Deprecated('Use NSTermOfAddress instead') - NSMorphologyCustomPronoun? customPronounForLanguage(objc.NSString language) { - final _$$ref = object$.ref; - final _$$ref$1 = language.ref; - objc.checkOsVersionInternal( - 'NSMorphology.customPronounForLanguage:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_customPronounForLanguage_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : NSMorphologyCustomPronoun.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// setCustomPronoun:forLanguage:error: - @Deprecated('Use NSTermOfAddress instead') - bool setCustomPronoun( - NSMorphologyCustomPronoun? features, { - required objc.NSString forLanguage, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = features?.ref; - final _$$ref$2 = forLanguage.ref; - objc.checkOsVersionInternal( - 'NSMorphology.setCustomPronoun:forLanguage:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_ikrf9p( - _$$ref.pointer, - _sel_setCustomPronoun_forLanguage_error_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -/// NSDataBase64Encoding -extension NSDataBase64Encoding on objc.NSData { - /// base64EncodedDataWithOptions: - objc.NSData base64EncodedDataWithOptions(DartNSUInteger options) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.base64EncodedDataWithOptions:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_ihaxwy( - _$$ref.pointer, - _sel_base64EncodedDataWithOptions_, - options, - ); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// base64EncodedStringWithOptions: - objc.NSString base64EncodedStringWithOptions(DartNSUInteger options) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.base64EncodedStringWithOptions:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_ihaxwy( - _$$ref.pointer, - _sel_base64EncodedStringWithOptions_, - options, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// initWithBase64EncodedData:options: - objc.NSData? initWithBase64EncodedData( - objc.NSData base64Data, { - required DartNSUInteger options, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = base64Data.ref; - objc.checkOsVersionInternal( - 'NSData.initWithBase64EncodedData:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_xm0jkv( - _$$ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedData_options_, - _$$ref$1.pointer, - options, - ); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: false, release: true); - } - - /// initWithBase64EncodedString:options: - objc.NSData? initWithBase64EncodedString( - objc.NSString base64String, { - required DartNSUInteger options, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = base64String.ref; - objc.checkOsVersionInternal( - 'NSData.initWithBase64EncodedString:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_xm0jkv( - _$$ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedString_options_, - _$$ref$1.pointer, - options, - ); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: false, release: true); - } -} - -/// NSDataCompression -extension NSDataCompression on objc.NSData { - /// compressedDataUsingAlgorithm:error: - objc.NSData? compressedDataUsingAlgorithm( - objc.NSDataCompressionAlgorithm algorithm, - ) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.compressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1qltt4c( - _$$ref.pointer, - _sel_compressedDataUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decompressedDataUsingAlgorithm:error: - objc.NSData? decompressedDataUsingAlgorithm( - objc.NSDataCompressionAlgorithm algorithm, - ) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.decompressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1qltt4c( - _$$ref.pointer, - _sel_decompressedDataUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -const int NSDateComponentUndefined = 9223372036854775807; - -enum NSDateComponentsFormatterUnitsStyle { - NSDateComponentsFormatterUnitsStylePositional(0), - NSDateComponentsFormatterUnitsStyleAbbreviated(1), - NSDateComponentsFormatterUnitsStyleShort(2), - NSDateComponentsFormatterUnitsStyleFull(3), - NSDateComponentsFormatterUnitsStyleSpellOut(4), - NSDateComponentsFormatterUnitsStyleBrief(5); - - final int value; - const NSDateComponentsFormatterUnitsStyle(this.value); - - static NSDateComponentsFormatterUnitsStyle fromValue(int value) => - switch (value) { - 0 => NSDateComponentsFormatterUnitsStylePositional, - 1 => NSDateComponentsFormatterUnitsStyleAbbreviated, - 2 => NSDateComponentsFormatterUnitsStyleShort, - 3 => NSDateComponentsFormatterUnitsStyleFull, - 4 => NSDateComponentsFormatterUnitsStyleSpellOut, - 5 => NSDateComponentsFormatterUnitsStyleBrief, - _ => throw ArgumentError( - 'Unknown value for NSDateComponentsFormatterUnitsStyle: $value', - ), - }; -} - -sealed class NSDateComponentsFormatterZeroFormattingBehavior { - static const NSDateComponentsFormatterZeroFormattingBehaviorNone = 0; - static const NSDateComponentsFormatterZeroFormattingBehaviorDefault = 1; - static const NSDateComponentsFormatterZeroFormattingBehaviorDropLeading = 2; - static const NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle = 4; - static const NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing = 8; - static const NSDateComponentsFormatterZeroFormattingBehaviorDropAll = 14; - static const NSDateComponentsFormatterZeroFormattingBehaviorPad = 65536; -} - -/// NSDateCreation -extension NSDateCreation on objc.NSDate { - /// initWithTimeInterval:sinceDate: - objc.NSDate initWithTimeInterval( - DartNSTimeInterval secsToBeAdded, { - required objc.NSDate sinceDate, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sinceDate.ref; - final $ret = _objc_msgSend_uo2bdm( - _$$ref.retainAndReturnPointer(), - _sel_initWithTimeInterval_sinceDate_, - secsToBeAdded, - _$$ref$1.pointer, - ); - return objc.NSDate.fromPointer($ret, retain: false, release: true); - } - - /// initWithTimeIntervalSince1970: - objc.NSDate initWithTimeIntervalSince1970(DartNSTimeInterval secs) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_1qido3( - _$$ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSince1970_, - secs, - ); - return objc.NSDate.fromPointer($ret, retain: false, release: true); - } - - /// initWithTimeIntervalSinceNow: - objc.NSDate initWithTimeIntervalSinceNow(DartNSTimeInterval secs) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_1qido3( - _$$ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSinceNow_, - secs, - ); - return objc.NSDate.fromPointer($ret, retain: false, release: true); - } - - /// date - static objc.NSDate date() { - final $ret = _objc_msgSend_zldla2(_class_NSDate, _sel_date); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// dateWithTimeInterval:sinceDate: - static objc.NSDate dateWithTimeInterval( - DartNSTimeInterval secsToBeAdded, { - required objc.NSDate sinceDate, - }) { - final _$$ref = sinceDate.ref; - final $ret = _objc_msgSend_uo2bdm( - _class_NSDate, - _sel_dateWithTimeInterval_sinceDate_, - secsToBeAdded, - _$$ref.pointer, - ); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSince1970: - static objc.NSDate dateWithTimeIntervalSince1970(DartNSTimeInterval secs) { - final $ret = _objc_msgSend_1qido3( - _class_NSDate, - _sel_dateWithTimeIntervalSince1970_, - secs, - ); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSinceNow: - static objc.NSDate dateWithTimeIntervalSinceNow(DartNSTimeInterval secs) { - final $ret = _objc_msgSend_1qido3( - _class_NSDate, - _sel_dateWithTimeIntervalSinceNow_, - secs, - ); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSinceReferenceDate: - static objc.NSDate dateWithTimeIntervalSinceReferenceDate( - DartNSTimeInterval ti, - ) { - final $ret = _objc_msgSend_1qido3( - _class_NSDate, - _sel_dateWithTimeIntervalSinceReferenceDate_, - ti, - ); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// distantFuture - static objc.NSDate getDistantFuture() { - final $ret = _objc_msgSend_zldla2(_class_NSDate, _sel_distantFuture); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// distantPast - static objc.NSDate getDistantPast() { - final $ret = _objc_msgSend_zldla2(_class_NSDate, _sel_distantPast); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// now - static objc.NSDate getNow() { - objc.checkOsVersionInternal( - 'NSDate.now', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_zldla2(_class_NSDate, _sel_now); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSDateFormatter is a stub. To generate bindings for this class, include -/// NSDateFormatter in your config's objc-interfaces list. -/// -/// NSDateFormatter -extension type NSDateFormatter._(objc.ObjCObject object$) - implements objc.ObjCObject, NSFormatter { - /// Constructs a [NSDateFormatter] that points to the same underlying object as [other]. - NSDateFormatter.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSDateFormatter] that wraps the given raw object pointer. - NSDateFormatter.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -enum NSDateFormatterBehavior { - NSDateFormatterBehaviorDefault(0), - NSDateFormatterBehavior10_0(1000), - NSDateFormatterBehavior10_4(1040); - - final int value; - const NSDateFormatterBehavior(this.value); - - static NSDateFormatterBehavior fromValue(int value) => switch (value) { - 0 => NSDateFormatterBehaviorDefault, - 1000 => NSDateFormatterBehavior10_0, - 1040 => NSDateFormatterBehavior10_4, - _ => throw ArgumentError( - 'Unknown value for NSDateFormatterBehavior: $value', - ), - }; -} - -/// NSDateFormatterCompatibility -extension NSDateFormatterCompatibility on NSDateFormatter { - /// allowsNaturalLanguage - @Deprecated('There is no replacement') - bool allowsNaturalLanguage() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSDateFormatter.allowsNaturalLanguage', - macOS: (false, (10, 4, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_allowsNaturalLanguage); - } - - /// initWithDateFormat:allowNaturalLanguage: - @Deprecated( - 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', - ) - objc.ObjCObject initWithDateFormat( - objc.NSString format, { - required bool allowNaturalLanguage, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - objc.checkOsVersionInternal( - 'NSDateFormatter.initWithDateFormat:allowNaturalLanguage:', - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_umhdr9( - _$$ref.retainAndReturnPointer(), - _sel_initWithDateFormat_allowNaturalLanguage_, - _$$ref$1.pointer, - allowNaturalLanguage, - ); - return objc.ObjCObject($ret, retain: false, release: true); - } -} - -enum NSDateFormatterStyle { - NSDateFormatterNoStyle(0), - NSDateFormatterShortStyle(1), - NSDateFormatterMediumStyle(2), - NSDateFormatterLongStyle(3), - NSDateFormatterFullStyle(4); - - final int value; - const NSDateFormatterStyle(this.value); - - static NSDateFormatterStyle fromValue(int value) => switch (value) { - 0 => NSDateFormatterNoStyle, - 1 => NSDateFormatterShortStyle, - 2 => NSDateFormatterMediumStyle, - 3 => NSDateFormatterLongStyle, - 4 => NSDateFormatterFullStyle, - _ => throw ArgumentError('Unknown value for NSDateFormatterStyle: $value'), - }; -} - -enum NSDateIntervalFormatterStyle { - NSDateIntervalFormatterNoStyle(0), - NSDateIntervalFormatterShortStyle(1), - NSDateIntervalFormatterMediumStyle(2), - NSDateIntervalFormatterLongStyle(3), - NSDateIntervalFormatterFullStyle(4); - - final int value; - const NSDateIntervalFormatterStyle(this.value); - - static NSDateIntervalFormatterStyle fromValue(int value) => switch (value) { - 0 => NSDateIntervalFormatterNoStyle, - 1 => NSDateIntervalFormatterShortStyle, - 2 => NSDateIntervalFormatterMediumStyle, - 3 => NSDateIntervalFormatterLongStyle, - 4 => NSDateIntervalFormatterFullStyle, - _ => throw ArgumentError( - 'Unknown value for NSDateIntervalFormatterStyle: $value', - ), - }; -} - -final class NSDecimal extends ffi.Opaque {} - -/// WARNING: NSDecimalNumber is a stub. To generate bindings for this class, include -/// NSDecimalNumber in your config's objc-interfaces list. -/// -/// NSDecimalNumber -extension type NSDecimalNumber._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSNumber { - /// Constructs a [NSDecimalNumber] that points to the same underlying object as [other]. - NSDecimalNumber.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSDecimalNumber] that wraps the given raw object pointer. - NSDecimalNumber.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSDecimalNumberBehaviors -extension type NSDecimalNumberBehaviors._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSDecimalNumberBehaviors] that points to the same underlying object as [other]. - NSDecimalNumberBehaviors.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSDecimalNumberBehaviors] that wraps the given raw object pointer. - NSDecimalNumberBehaviors.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSDecimalNumberBehaviors]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSDecimalNumberBehaviors, - ); - } -} - -extension NSDecimalNumberBehaviors$Methods on NSDecimalNumberBehaviors { - /// exceptionDuringOperation:error:leftOperand:rightOperand: - NSDecimalNumber? exceptionDuringOperation( - ffi.Pointer operation, { - required NSCalculationError error, - required NSDecimalNumber leftOperand, - NSDecimalNumber? rightOperand, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = leftOperand.ref; - final _$$ref$2 = rightOperand?.ref; - final $ret = _objc_msgSend_1l7fxsy( - _$$ref.pointer, - _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, - operation, - error.value, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : NSDecimalNumber.fromPointer($ret, retain: true, release: true); - } - - /// roundingMode - NSRoundingMode roundingMode() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_1r5jzqh(_$$ref.pointer, _sel_roundingMode); - return NSRoundingMode.fromValue($ret); - } - - /// scale - int scale() { - final _$$ref = object$.ref; - return _objc_msgSend_1690f3y(_$$ref.pointer, _sel_scale); - } -} - -interface class NSDecimalNumberBehaviors$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSDecimalNumberBehaviors.cast()); - - /// Builds an object that implements the NSDecimalNumberBehaviors protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSDecimalNumberBehaviors implement({ - required NSDecimalNumber? Function( - ffi.Pointer, - NSCalculationError, - NSDecimalNumber, - NSDecimalNumber?, - ) - exceptionDuringOperation_error_leftOperand_rightOperand_, - required NSRoundingMode Function() roundingMode, - required int Function() scale, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSDecimalNumberBehaviors', - ); - NSDecimalNumberBehaviors$Builder - .exceptionDuringOperation_error_leftOperand_rightOperand_ - .implement( - builder, - exceptionDuringOperation_error_leftOperand_rightOperand_, - ); - NSDecimalNumberBehaviors$Builder.roundingMode.implement( - builder, - roundingMode, - ); - NSDecimalNumberBehaviors$Builder.scale.implement(builder, scale); - builder.addProtocol($protocol); - return NSDecimalNumberBehaviors.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSDecimalNumberBehaviors protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required NSDecimalNumber? Function( - ffi.Pointer, - NSCalculationError, - NSDecimalNumber, - NSDecimalNumber?, - ) - exceptionDuringOperation_error_leftOperand_rightOperand_, - required NSRoundingMode Function() roundingMode, - required int Function() scale, - bool $keepIsolateAlive = true, - }) { - NSDecimalNumberBehaviors$Builder - .exceptionDuringOperation_error_leftOperand_rightOperand_ - .implement( - builder, - exceptionDuringOperation_error_leftOperand_rightOperand_, - ); - NSDecimalNumberBehaviors$Builder.roundingMode.implement( - builder, - roundingMode, - ); - NSDecimalNumberBehaviors$Builder.scale.implement(builder, scale); - builder.addProtocol($protocol); - } - - /// exceptionDuringOperation:error:leftOperand:rightOperand: - static final exceptionDuringOperation_error_leftOperand_rightOperand_ = - objc.ObjCProtocolMethod< - NSDecimalNumber? Function( - ffi.Pointer, - NSCalculationError, - NSDecimalNumber, - NSDecimalNumber?, - ) - >( - _protocol_NSDecimalNumberBehaviors, - _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1rz9w3t) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDecimalNumberBehaviors, - _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, - isRequired: true, - isInstanceMethod: true, - ), - ( - NSDecimalNumber? Function( - ffi.Pointer, - NSCalculationError, - NSDecimalNumber, - NSDecimalNumber?, - ) - func, - ) => - ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer arg1, - NSCalculationError arg2, - NSDecimalNumber arg3, - NSDecimalNumber? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// roundingMode - static final roundingMode = - objc.ObjCProtocolMethod( - _protocol_NSDecimalNumberBehaviors, - _sel_roundingMode, - ffi.Native.addressOf< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jqs8ts) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDecimalNumberBehaviors, - _sel_roundingMode, - isRequired: true, - isInstanceMethod: true, - ), - (NSRoundingMode Function() func) => - ObjCBlock_NSRoundingMode_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// scale - static final scale = objc.ObjCProtocolMethod( - _protocol_NSDecimalNumberBehaviors, - _sel_scale, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_rhnfn9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDecimalNumberBehaviors, - _sel_scale, - isRequired: true, - isInstanceMethod: true, - ), - (int Function() func) => ObjCBlock_ffiShort_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); -} - -/// NSDecimalNumberExtensions -extension NSDecimalNumberExtensions on objc.NSNumber {} - -/// WARNING: NSDecimalNumberHandler is a stub. To generate bindings for this class, include -/// NSDecimalNumberHandler in your config's objc-interfaces list. -/// -/// NSDecimalNumberHandler -extension type NSDecimalNumberHandler._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - NSDecimalNumberBehaviors, - objc.NSCoding { - /// Constructs a [NSDecimalNumberHandler] that points to the same underlying object as [other]. - NSDecimalNumberHandler.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSDecimalNumberHandler] that wraps the given raw object pointer. - NSDecimalNumberHandler.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSDecimalNumberScanning -extension NSDecimalNumberScanning on NSScanner { - /// scanDecimal: - bool scanDecimal(ffi.Pointer dcm) { - final _$$ref = object$.ref; - return _objc_msgSend_49k26d(_$$ref.pointer, _sel_scanDecimal_, dcm); - } -} - -const int NSDecompressionFailedError = 5377; - -/// NSDelayedPerforming -extension NSDelayedPerforming on objc.NSObject { - /// performSelector:withObject:afterDelay: - void performSelector$3( - ffi.Pointer aSelector, { - objc.ObjCObject? withObject, - required DartNSTimeInterval afterDelay, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withObject?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelector:withObject:afterDelay:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1s1jtb4( - _$$ref.pointer, - _sel_performSelector_withObject_afterDelay_, - aSelector, - _$$ref$1?.pointer ?? ffi.nullptr, - afterDelay, - ); - } - - /// performSelector:withObject:afterDelay:inModes: - void performSelector$4( - ffi.Pointer aSelector, { - objc.ObjCObject? withObject, - required DartNSTimeInterval afterDelay, - required objc.NSArray inModes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withObject?.ref; - final _$$ref$2 = inModes.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelector:withObject:afterDelay:inModes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1urtg4j( - _$$ref.pointer, - _sel_performSelector_withObject_afterDelay_inModes_, - aSelector, - _$$ref$1?.pointer ?? ffi.nullptr, - afterDelay, - _$$ref$2.pointer, - ); - } - - /// cancelPreviousPerformRequestsWithTarget: - static void cancelPreviousPerformRequestsWithTarget(objc.ObjCObject aTarget) { - final _$$ref = aTarget.ref; - objc.checkOsVersionInternal( - 'NSObject.cancelPreviousPerformRequestsWithTarget:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _class_NSObject, - _sel_cancelPreviousPerformRequestsWithTarget_, - _$$ref.pointer, - ); - } - - /// cancelPreviousPerformRequestsWithTarget:selector:object: - static void cancelPreviousPerformRequestsWithTarget$1( - objc.ObjCObject aTarget, { - required ffi.Pointer selector, - objc.ObjCObject? object, - }) { - final _$$ref = aTarget.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.cancelPreviousPerformRequestsWithTarget:selector:object:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1exgpw8( - _class_NSObject, - _sel_cancelPreviousPerformRequestsWithTarget_selector_object_, - _$$ref.pointer, - selector, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// NSDeprecated -extension NSDeprecated on objc.NSDictionary { - /// getObjects:andKeys: - @Deprecated('Use -getObjects:andKeys:count: instead') - void getObjects( - ffi.Pointer> objects, { - required ffi.Pointer> andKeys, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSDictionary.getObjects:andKeys:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1tf1mi0( - _$$ref.pointer, - _sel_getObjects_andKeys_, - objects, - andKeys, - ); - } - - /// initWithContentsOfFile: - @Deprecated('Deprecated') - objc.NSDictionary? initWithContentsOfFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSDictionary.initWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - @Deprecated('Deprecated') - objc.NSDictionary? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.initWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// writeToFile:atomically: - @Deprecated('Deprecated') - bool writeToFile(objc.NSString path, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSDictionary.writeToFile:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_lbnlyo( - _$$ref.pointer, - _sel_writeToFile_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// writeToURL:atomically: - @Deprecated('Deprecated') - bool writeToURL(objc.NSURL url, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.writeToURL:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_lbnlyo( - _$$ref.pointer, - _sel_writeToURL_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// dictionaryWithContentsOfFile: - @Deprecated('Deprecated') - static objc.NSDictionary? dictionaryWithContentsOfFile(objc.NSString path) { - final _$$ref = path.ref; - objc.checkOsVersionInternal( - 'NSDictionary.dictionaryWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSDictionary, - _sel_dictionaryWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithContentsOfURL: - @Deprecated('Deprecated') - static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.dictionaryWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSDictionary, - _sel_dictionaryWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$1 on objc.NSArray { - /// getObjects: - @Deprecated('Use -getObjects:range: instead') - void getObjects(ffi.Pointer> objects) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSArray.getObjects:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_c7ivs8(_$$ref.pointer, _sel_getObjects_, objects); - } - - /// initWithContentsOfFile: - @Deprecated('Deprecated') - objc.NSArray? initWithContentsOfFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSArray.initWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - @Deprecated('Deprecated') - objc.NSArray? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSArray.initWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: false, release: true); - } - - /// writeToFile:atomically: - @Deprecated('Deprecated') - bool writeToFile(objc.NSString path, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSArray.writeToFile:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_lbnlyo( - _$$ref.pointer, - _sel_writeToFile_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// writeToURL:atomically: - @Deprecated('Deprecated') - bool writeToURL(objc.NSURL url, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSArray.writeToURL:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_lbnlyo( - _$$ref.pointer, - _sel_writeToURL_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// arrayWithContentsOfFile: - @Deprecated('Deprecated') - static objc.NSArray? arrayWithContentsOfFile(objc.NSString path) { - final _$$ref = path.ref; - objc.checkOsVersionInternal( - 'NSArray.arrayWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSArray, - _sel_arrayWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithContentsOfURL: - @Deprecated('Deprecated') - static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSArray.arrayWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSArray, - _sel_arrayWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$10 on NSIndexPath { - /// getIndexes: - @Deprecated('Deprecated') - void getIndexes(ffi.Pointer indexes) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSIndexPath.getIndexes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_nk89d9(_$$ref.pointer, _sel_getIndexes_, indexes); - } -} - -/// NSDeprecated -extension NSDeprecated$2 on objc.NSValue { - /// getValue: - @Deprecated('Deprecated') - void getValue$1(ffi.Pointer value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSValue.getValue:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_15is1z3(_$$ref.pointer, _sel_getValue_, value); - } -} - -/// NSDeprecated -extension NSDeprecated$3 on objc.NSData { - /// base64Encoding - @Deprecated('Use base64EncodedStringWithOptions: instead') - objc.NSString base64Encoding() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.base64Encoding', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_base64Encoding); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// getBytes: - @Deprecated( - 'This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead.', - ) - void getBytes(ffi.Pointer buffer) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.getBytes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_15is1z3(_$$ref.pointer, _sel_getBytes_, buffer); - } - - /// initWithBase64Encoding: - @Deprecated('Use initWithBase64EncodedString:options: instead') - objc.ObjCObject? initWithBase64Encoding(objc.NSString base64String) { - final _$$ref = object$.ref; - final _$$ref$1 = base64String.ref; - objc.checkOsVersionInternal( - 'NSData.initWithBase64Encoding:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithBase64Encoding_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithContentsOfMappedFile: - @Deprecated( - 'Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.', - ) - objc.ObjCObject? initWithContentsOfMappedFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSData.initWithContentsOfMappedFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfMappedFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// dataWithContentsOfMappedFile: - @Deprecated( - 'Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.', - ) - static objc.ObjCObject? dataWithContentsOfMappedFile(objc.NSString path) { - final _$$ref = path.ref; - objc.checkOsVersionInternal( - 'NSData.dataWithContentsOfMappedFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSData, - _sel_dataWithContentsOfMappedFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$4 on objc.NSCoder { - /// decodeValueOfObjCType:at: - @Deprecated('Deprecated') - void decodeValueOfObjCType$1( - ffi.Pointer type, { - required ffi.Pointer at, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeValueOfObjCType:at:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_168l3u4( - _$$ref.pointer, - _sel_decodeValueOfObjCType_at_, - type, - at, - ); - } -} - -/// NSDeprecated -extension NSDeprecated$5 on NSFileWrapper { - /// addFileWithPath: - @Deprecated( - 'Instantiate a new NSFileWrapper with -initWithURL:options:error:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.', - ) - objc.NSString addFileWithPath(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.addFileWithPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_addFileWithPath_, - _$$ref$1.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// addSymbolicLinkWithDestination:preferredFilename: - @Deprecated( - 'Instantiate a new NSFileWrapper with -initWithSymbolicLinkDestinationURL:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.', - ) - objc.NSString addSymbolicLinkWithDestination( - objc.NSString path, { - required objc.NSString preferredFilename, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final _$$ref$2 = preferredFilename.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.addSymbolicLinkWithDestination:preferredFilename:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_addSymbolicLinkWithDestination_preferredFilename_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// initSymbolicLinkWithDestination: - @Deprecated( - 'Use -initSymbolicLinkWithDestinationURL: and -setPreferredFileName:, if necessary, instead.', - ) - objc.ObjCObject initSymbolicLinkWithDestination(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.initSymbolicLinkWithDestination:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initSymbolicLinkWithDestination_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithPath: - @Deprecated('Use -initWithURL:options:error: instead.') - objc.ObjCObject? initWithPath(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.initWithPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithPath_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// needsToBeUpdatedFromPath: - @Deprecated('Use -matchesContentsOfURL: instead.') - bool needsToBeUpdatedFromPath(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.needsToBeUpdatedFromPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_needsToBeUpdatedFromPath_, - _$$ref$1.pointer, - ); - } - - /// symbolicLinkDestination - @Deprecated('Use -symbolicLinkDestinationURL instead.') - objc.NSString symbolicLinkDestination() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.symbolicLinkDestination', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_symbolicLinkDestination, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// updateFromPath: - @Deprecated('Use -readFromURL:options:error: instead.') - bool updateFromPath(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.updateFromPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_updateFromPath_, - _$$ref$1.pointer, - ); - } - - /// writeToFile:atomically:updateFilenames: - @Deprecated('Use -writeToURL:options:originalContentsURL:error: instead.') - bool writeToFile( - objc.NSString path, { - required bool atomically, - required bool updateFilenames, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.writeToFile:atomically:updateFilenames:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_2pmueu( - _$$ref.pointer, - _sel_writeToFile_atomically_updateFilenames_, - _$$ref$1.pointer, - atomically, - updateFilenames, - ); - } -} - -/// NSDeprecated -extension NSDeprecated$6 on NSScriptClassDescription$1 { - /// isReadOnlyKey: - @Deprecated('Deprecated') - bool isReadOnlyKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSScriptClassDescription.isReadOnlyKey:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isReadOnlyKey_, - _$$ref$1.pointer, - ); - } -} - -/// NSDeprecated -extension NSDeprecated$7 on NSOperationQueue { - /// operationCount - @Deprecated('Deprecated') - DartNSUInteger get operationCount { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSOperationQueue.operationCount', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_operationCount); - } - - /// operations - @Deprecated( - 'access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead', - ) - objc.NSArray get operations { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSOperationQueue.operations', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_operations); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$8 on NSTask { - /// currentDirectoryPath - @Deprecated('Deprecated') - objc.NSString get currentDirectoryPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTask.currentDirectoryPath', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_currentDirectoryPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// launch - @Deprecated('Deprecated') - void launch() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTask.launch', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_launch); - } - - /// launchPath - @Deprecated('Deprecated') - objc.NSString? get launchPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTask.launchPath', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_launchPath); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// setCurrentDirectoryPath: - @Deprecated('Deprecated') - set currentDirectoryPath(objc.NSString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - objc.checkOsVersionInternal( - 'NSTask.setCurrentDirectoryPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setCurrentDirectoryPath_, - _$$ref$1.pointer, - ); - } - - /// setLaunchPath: - @Deprecated('Deprecated') - set launchPath(objc.NSString? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSTask.setLaunchPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setLaunchPath_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// launchedTaskWithLaunchPath:arguments: - @Deprecated('Deprecated') - static NSTask launchedTaskWithLaunchPath( - objc.NSString path, { - required objc.NSArray arguments, - }) { - final _$$ref = path.ref; - final _$$ref$1 = arguments.ref; - objc.checkOsVersionInternal( - 'NSTask.launchedTaskWithLaunchPath:arguments:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _class_NSTask, - _sel_launchedTaskWithLaunchPath_arguments_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return NSTask.fromPointer($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$9 on NSXMLElement { - /// setAttributesAsDictionary: - @Deprecated('Deprecated') - void setAttributesAsDictionary(objc.NSDictionary attributes) { - final _$$ref = object$.ref; - final _$$ref$1 = attributes.ref; - objc.checkOsVersionInternal( - 'NSXMLElement.setAttributesAsDictionary:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setAttributesAsDictionary_, - _$$ref$1.pointer, - ); - } -} - -/// NSDeprecatedKeyValueCoding -extension NSDeprecatedKeyValueCoding on objc.NSObject { - /// handleQueryWithUnboundKey: - @Deprecated('Legacy KVC API') - objc.ObjCObject? handleQueryWithUnboundKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.handleQueryWithUnboundKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_handleQueryWithUnboundKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// handleTakeValue:forUnboundKey: - @Deprecated('Legacy KVC API') - void handleTakeValue( - objc.ObjCObject? value, { - required objc.NSString forUnboundKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forUnboundKey.ref; - objc.checkOsVersionInternal( - 'NSObject.handleTakeValue:forUnboundKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_handleTakeValue_forUnboundKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// storedValueForKey: - @Deprecated('Legacy KVC API') - objc.ObjCObject? storedValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.storedValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_storedValueForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// takeStoredValue:forKey: - @Deprecated('Legacy KVC API') - void takeStoredValue( - objc.ObjCObject? value, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.takeStoredValue:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_takeStoredValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// takeValue:forKey: - @Deprecated('Legacy KVC API') - void takeValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.takeValue:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_takeValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// takeValue:forKeyPath: - @Deprecated('Legacy KVC API') - void takeValue$1( - objc.ObjCObject? value, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.takeValue:forKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_takeValue_forKeyPath_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// takeValuesFromDictionary: - @Deprecated('Legacy KVC API') - void takeValuesFromDictionary(objc.NSDictionary properties) { - final _$$ref = object$.ref; - final _$$ref$1 = properties.ref; - objc.checkOsVersionInternal( - 'NSObject.takeValuesFromDictionary:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_takeValuesFromDictionary_, - _$$ref$1.pointer, - ); - } - - /// unableToSetNilForKey: - @Deprecated('Legacy KVC API') - void unableToSetNilForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.unableToSetNilForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_unableToSetNilForKey_, - _$$ref$1.pointer, - ); - } - - /// valuesForKeys: - @Deprecated('Legacy KVC API') - objc.NSDictionary valuesForKeys(objc.NSArray keys) { - final _$$ref = object$.ref; - final _$$ref$1 = keys.ref; - objc.checkOsVersionInternal( - 'NSObject.valuesForKeys:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_valuesForKeys_, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// useStoredAccessor - @Deprecated('Legacy KVC API') - static bool useStoredAccessor() { - objc.checkOsVersionInternal( - 'NSObject.useStoredAccessor', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_13h8okt(_class_NSObject, _sel_useStoredAccessor); - } -} - -/// NSDeprecatedKeyValueObservingCustomization -extension NSDeprecatedKeyValueObservingCustomization on objc.NSObject { - /// setKeys:triggerChangeNotificationsForDependentKey: - @Deprecated('Use +keyPathsForValuesAffectingValueForKey instead') - static void setKeys( - objc.NSArray keys, { - required objc.NSString triggerChangeNotificationsForDependentKey, - }) { - final _$$ref = keys.ref; - final _$$ref$1 = triggerChangeNotificationsForDependentKey.ref; - objc.checkOsVersionInternal( - 'NSObject.setKeys:triggerChangeNotificationsForDependentKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _class_NSObject, - _sel_setKeys_triggerChangeNotificationsForDependentKey_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - } -} - -/// NSDeprecatedMethods -extension NSDeprecatedMethods on objc.NSObject {} - -/// NSDictionaryCreation -extension NSDictionaryCreation on objc.NSDictionary { - /// initWithContentsOfURL:error: - objc.NSDictionary? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.initWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1a2vk5h( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithDictionary: - objc.NSDictionary initWithDictionary(objc.NSDictionary otherDictionary) { - final _$$ref = object$.ref; - final _$$ref$1 = otherDictionary.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithDictionary_, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// initWithDictionary:copyItems: - objc.NSDictionary initWithDictionary$1( - objc.NSDictionary otherDictionary, { - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = otherDictionary.ref; - final $ret = _objc_msgSend_umhdr9( - _$$ref.retainAndReturnPointer(), - _sel_initWithDictionary_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// initWithObjects:forKeys: - objc.NSDictionary initWithObjects$1( - objc.NSArray objects, { - required objc.NSArray forKeys, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = objects.ref; - final _$$ref$2 = forKeys.ref; - final $ret = _objc_msgSend_1oxgj58( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// initWithObjectsAndKeys: - objc.NSDictionary initWithObjectsAndKeys(objc.ObjCObject firstObject) { - final _$$ref = object$.ref; - final _$$ref$1 = firstObject.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjectsAndKeys_, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// dictionary - static objc.NSDictionary dictionary() { - final $ret = _objc_msgSend_zldla2(_class_NSDictionary, _sel_dictionary); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithContentsOfURL:error: - static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.dictionaryWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1a2vk5h( - _class_NSDictionary, - _sel_dictionaryWithContentsOfURL_error_, - _$$ref.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// dictionaryWithDictionary: - static objc.NSDictionary dictionaryWithDictionary(objc.NSDictionary dict) { - final _$$ref = dict.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSDictionary, - _sel_dictionaryWithDictionary_, - _$$ref.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithObject:forKey: - static objc.NSDictionary dictionaryWithObject( - objc.ObjCObject object, { - required objc.NSCopying forKey, - }) { - final _$$ref = object.ref; - final _$$ref$1 = forKey.ref; - final $ret = _objc_msgSend_1oxgj58( - _class_NSDictionary, - _sel_dictionaryWithObject_forKey_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithObjects:forKeys: - static objc.NSDictionary dictionaryWithObjects( - objc.NSArray objects, { - required objc.NSArray forKeys, - }) { - final _$$ref = objects.ref; - final _$$ref$1 = forKeys.ref; - final $ret = _objc_msgSend_1oxgj58( - _class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithObjects:forKeys:count: - static objc.NSDictionary dictionaryWithObjects$1( - ffi.Pointer> objects, { - required ffi.Pointer> forKeys, - required DartNSUInteger count, - }) { - final $ret = _objc_msgSend_3qs0ul( - _class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_count_, - objects, - forKeys, - count, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithObjectsAndKeys: - static objc.NSDictionary dictionaryWithObjectsAndKeys( - objc.ObjCObject firstObject, - ) { - final _$$ref = firstObject.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSDictionary, - _sel_dictionaryWithObjectsAndKeys_, - _$$ref.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -sealed class NSDirectoryEnumerationOptions { - static const NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1; - static const NSDirectoryEnumerationSkipsPackageDescendants = 2; - static const NSDirectoryEnumerationSkipsHiddenFiles = 4; - static const NSDirectoryEnumerationIncludesDirectoriesPostOrder = 8; - static const NSDirectoryEnumerationProducesRelativePathURLs = 16; -} - -/// NSDiscardableContent -extension type NSDiscardableContent._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSDiscardableContent] that points to the same underlying object as [other]. - NSDiscardableContent.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSDiscardableContent] that wraps the given raw object pointer. - NSDiscardableContent.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSDiscardableContent]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSDiscardableContent, - ); - } -} - -extension NSDiscardableContent$Methods on NSDiscardableContent { - /// beginContentAccess - bool beginContentAccess() { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_beginContentAccess); - } - - /// discardContentIfPossible - void discardContentIfPossible() { - final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_discardContentIfPossible); - } - - /// endContentAccess - void endContentAccess() { - final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_endContentAccess); - } - - /// isContentDiscarded - bool isContentDiscarded() { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isContentDiscarded); - } -} - -interface class NSDiscardableContent$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSDiscardableContent.cast()); - - /// Builds an object that implements the NSDiscardableContent protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSDiscardableContent implement({ - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implement( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implement( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - return NSDiscardableContent.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSDiscardableContent protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implement( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implement( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSDiscardableContent protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSDiscardableContent implementAsListener({ - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implementAsListener( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implementAsListener( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - return NSDiscardableContent.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSDiscardableContent protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implementAsListener( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implementAsListener( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSDiscardableContent protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSDiscardableContent implementAsBlocking({ - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implementAsBlocking( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implementAsBlocking( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - return NSDiscardableContent.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSDiscardableContent protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implementAsBlocking( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implementAsBlocking( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - } - - /// beginContentAccess - static final beginContentAccess = objc.ObjCProtocolMethod( - _protocol_NSDiscardableContent, - _sel_beginContentAccess, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_12g52hw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDiscardableContent, - _sel_beginContentAccess, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// discardContentIfPossible - static final discardContentIfPossible = - objc.ObjCProtocolListenableMethod( - _protocol_NSDiscardableContent, - _sel_discardContentIfPossible, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_15is1z3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDiscardableContent, - _sel_discardContentIfPossible, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// endContentAccess - static final endContentAccess = - objc.ObjCProtocolListenableMethod( - _protocol_NSDiscardableContent, - _sel_endContentAccess, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_15is1z3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDiscardableContent, - _sel_endContentAccess, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// isContentDiscarded - static final isContentDiscarded = objc.ObjCProtocolMethod( - _protocol_NSDiscardableContent, - _sel_isContentDiscarded, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_12g52hw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDiscardableContent, - _sel_isContentDiscarded, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); -} - -/// NSDiscardableContentProxy -extension NSDiscardableContentProxy on objc.NSObject { - /// autoContentAccessingProxy - objc.ObjCObject get autoContentAccessingProxy { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.autoContentAccessingProxy', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_autoContentAccessingProxy, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// WARNING: NSDistantObjectRequest is a stub. To generate bindings for this class, include -/// NSDistantObjectRequest in your config's objc-interfaces list. -/// -/// NSDistantObjectRequest -@Deprecated('Use NSXPCConnection instead') -extension type NSDistantObjectRequest._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSDistantObjectRequest] that points to the same underlying object as [other]. - NSDistantObjectRequest.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSDistantObjectRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSDistantObjectRequest] that wraps the given raw object pointer. - NSDistantObjectRequest.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSDistantObjectRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -typedef NSDistributedNotificationCenterType = ffi.Pointer; -typedef DartNSDistributedNotificationCenterType = objc.NSString; - -sealed class NSDistributedNotificationOptions { - static const NSDistributedNotificationDeliverImmediately = 1; - static const NSDistributedNotificationPostToAllSessions = 2; -} - -/// NSDistributedObjects -extension NSDistributedObjects on objc.NSObject { - /// classForPortCoder - @Deprecated('Use NSXPCConnection instead') - objc.ObjCObject get classForPortCoder { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classForPortCoder', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_classForPortCoder); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// replacementObjectForPortCoder: - @Deprecated('Use NSXPCConnection instead') - objc.ObjCObject? replacementObjectForPortCoder(NSPortCoder coder) { - final _$$ref = object$.ref; - final _$$ref$1 = coder.ref; - objc.checkOsVersionInternal( - 'NSObject.replacementObjectForPortCoder:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_replacementObjectForPortCoder_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -enum NSEnergyFormatterUnit { - NSEnergyFormatterUnitJoule(11), - NSEnergyFormatterUnitKilojoule(14), - NSEnergyFormatterUnitCalorie(1793), - NSEnergyFormatterUnitKilocalorie(1794); - - final int value; - const NSEnergyFormatterUnit(this.value); - - static NSEnergyFormatterUnit fromValue(int value) => switch (value) { - 11 => NSEnergyFormatterUnitJoule, - 14 => NSEnergyFormatterUnitKilojoule, - 1793 => NSEnergyFormatterUnitCalorie, - 1794 => NSEnergyFormatterUnitKilocalorie, - _ => throw ArgumentError('Unknown value for NSEnergyFormatterUnit: $value'), - }; -} - -typedef NSErrorDomain = ffi.Pointer; -typedef DartNSErrorDomain = objc.NSString; - -/// NSErrorRecoveryAttempting -extension NSErrorRecoveryAttempting on objc.NSObject { - /// attemptRecoveryFromError:optionIndex: - bool attemptRecoveryFromError( - objc.NSError error, { - required DartNSUInteger optionIndex, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = error.ref; - objc.checkOsVersionInternal( - 'NSObject.attemptRecoveryFromError:optionIndex:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_2ufx71( - _$$ref.pointer, - _sel_attemptRecoveryFromError_optionIndex_, - _$$ref$1.pointer, - optionIndex, - ); - } - - /// attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo: - void attemptRecoveryFromError$1( - objc.NSError error, { - required DartNSUInteger optionIndex, - objc.ObjCObject? delegate, - required ffi.Pointer didRecoverSelector, - required ffi.Pointer contextInfo, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = error.ref; - final _$$ref$2 = delegate?.ref; - objc.checkOsVersionInternal( - 'NSObject.attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_i7dl0m( - _$$ref.pointer, - _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_, - _$$ref$1.pointer, - optionIndex, - _$$ref$2?.pointer ?? ffi.nullptr, - didRecoverSelector, - contextInfo, - ); - } -} - -typedef NSErrorUserInfoKey = ffi.Pointer; -typedef DartNSErrorUserInfoKey = objc.NSString; - -/// WARNING: NSException is a stub. To generate bindings for this class, include -/// NSException in your config's objc-interfaces list. -/// -/// NSException -extension type NSException._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSException] that points to the same underlying object as [other]. - NSException.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSException] that wraps the given raw object pointer. - NSException.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -typedef NSExceptionName = ffi.Pointer; -typedef DartNSExceptionName = objc.NSString; - -/// NSExceptionRaisingConveniences -extension NSExceptionRaisingConveniences on NSException { - /// raise:format: - static void raise$1( - DartNSExceptionName name, { - required objc.NSString format, - }) { - final _$$ref = name.ref; - final _$$ref$1 = format.ref; - _objc_msgSend_1k6sg8i( - _class_NSException, - _sel_raise_format_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - } -} - -const int NSExecutableArchitectureMismatchError = 3585; - -const int NSExecutableErrorMaximum = 3839; - -const int NSExecutableErrorMinimum = 3584; - -const int NSExecutableLinkError = 3588; - -const int NSExecutableLoadError = 3587; - -const int NSExecutableNotLoadableError = 3584; - -const int NSExecutableRuntimeMismatchError = 3586; - -enum NSExpressionType { - NSConstantValueExpressionType(0), - NSEvaluatedObjectExpressionType(1), - NSVariableExpressionType(2), - NSKeyPathExpressionType(3), - NSFunctionExpressionType(4), - NSUnionSetExpressionType(5), - NSIntersectSetExpressionType(6), - NSMinusSetExpressionType(7), - NSSubqueryExpressionType(13), - NSAggregateExpressionType(14), - NSAnyKeyExpressionType(15), - NSBlockExpressionType(19), - NSConditionalExpressionType(20); - - final int value; - const NSExpressionType(this.value); - - static NSExpressionType fromValue(int value) => switch (value) { - 0 => NSConstantValueExpressionType, - 1 => NSEvaluatedObjectExpressionType, - 2 => NSVariableExpressionType, - 3 => NSKeyPathExpressionType, - 4 => NSFunctionExpressionType, - 5 => NSUnionSetExpressionType, - 6 => NSIntersectSetExpressionType, - 7 => NSMinusSetExpressionType, - 13 => NSSubqueryExpressionType, - 14 => NSAggregateExpressionType, - 15 => NSAnyKeyExpressionType, - 19 => NSBlockExpressionType, - 20 => NSConditionalExpressionType, - _ => throw ArgumentError('Unknown value for NSExpressionType: $value'), - }; -} - -/// NSExtendedAttributedString -extension NSExtendedAttributedString on objc.NSAttributedString { - /// attribute:atIndex:effectiveRange: - objc.ObjCObject? attribute( - DartNSAttributedStringKey attrName, { - required DartNSUInteger atIndex, - required NSRangePointer effectiveRange, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = attrName.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.attribute:atIndex:effectiveRange:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_8qnx0d( - _$$ref.pointer, - _sel_attribute_atIndex_effectiveRange_, - _$$ref$1.pointer, - atIndex, - effectiveRange, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// attribute:atIndex:longestEffectiveRange:inRange: - objc.ObjCObject? attribute$1( - DartNSAttributedStringKey attrName, { - required DartNSUInteger atIndex, - required NSRangePointer longestEffectiveRange, - required NSRange inRange, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = attrName.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.attribute:atIndex:longestEffectiveRange:inRange:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_16v6ugk( - _$$ref.pointer, - _sel_attribute_atIndex_longestEffectiveRange_inRange_, - _$$ref$1.pointer, - atIndex, - longestEffectiveRange, - inRange, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// attributedSubstringFromRange: - objc.NSAttributedString attributedSubstringFromRange(NSRange range) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.attributedSubstringFromRange:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1cd70t7( - _$$ref.pointer, - _sel_attributedSubstringFromRange_, - range, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// attributesAtIndex:longestEffectiveRange:inRange: - objc.NSDictionary attributesAtIndex$1( - DartNSUInteger location, { - required NSRangePointer longestEffectiveRange, - required NSRange inRange, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.attributesAtIndex:longestEffectiveRange:inRange:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_cjvl3d( - _$$ref.pointer, - _sel_attributesAtIndex_longestEffectiveRange_inRange_, - location, - longestEffectiveRange, - inRange, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// enumerateAttribute:inRange:options:usingBlock: - void enumerateAttribute( - DartNSAttributedStringKey attrName, { - required NSRange inRange, - required DartNSUInteger options, - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = attrName.ref; - final _$$ref$2 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.enumerateAttribute:inRange:options:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_1rtwvy8( - _$$ref.pointer, - _sel_enumerateAttribute_inRange_options_usingBlock_, - _$$ref$1.pointer, - inRange, - options, - _$$ref$2.pointer, - ); - } - - /// enumerateAttributesInRange:options:usingBlock: - void enumerateAttributesInRange( - NSRange enumerationRange, { - required DartNSUInteger options, - required objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.enumerateAttributesInRange:options:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_14sf485( - _$$ref.pointer, - _sel_enumerateAttributesInRange_options_usingBlock_, - enumerationRange, - options, - _$$ref$1.pointer, - ); - } - - /// initWithAttributedString: - objc.NSAttributedString initWithAttributedString( - objc.NSAttributedString attrStr, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = attrStr.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithAttributedString_, - _$$ref$1.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// initWithString: - objc.NSAttributedString initWithString(objc.NSString str) { - final _$$ref = object$.ref; - final _$$ref$1 = str.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithString_, - _$$ref$1.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// initWithString:attributes: - objc.NSAttributedString initWithString$1( - objc.NSString str, { - objc.NSDictionary? attributes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = str.ref; - final _$$ref$2 = attributes?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithString:attributes:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.retainAndReturnPointer(), - _sel_initWithString_attributes_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// isEqualToAttributedString: - bool isEqualToAttributedString(objc.NSAttributedString other) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.isEqualToAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isEqualToAttributedString_, - _$$ref$1.pointer, - ); - } - - /// length - DartNSUInteger get length { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.length', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_length); - } -} - -/// NSExtendedCoder -extension NSExtendedCoder on objc.NSCoder { - /// allowedClasses - objc.NSSet? get allowedClasses { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.allowedClasses', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allowedClasses); - return $ret.address == 0 - ? null - : objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// allowsKeyedCoding - bool get allowsKeyedCoding { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_allowsKeyedCoding); - } - - /// containsValueForKey: - bool containsValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_containsValueForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeArrayOfObjCType:count:at: - void decodeArrayOfObjCType( - ffi.Pointer itemType, { - required DartNSUInteger count, - required ffi.Pointer at, - }) { - final _$$ref = object$.ref; - _objc_msgSend_1f7hox7( - _$$ref.pointer, - _sel_decodeArrayOfObjCType_count_at_, - itemType, - count, - at, - ); - } - - /// decodeArrayOfObjectsOfClass:forKey: - objc.NSArray? decodeArrayOfObjectsOfClass( - objc.ObjCObject cls, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = cls.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeArrayOfObjectsOfClass:forKey:', - iOS: (false, (14, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_decodeArrayOfObjectsOfClass_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// decodeArrayOfObjectsOfClasses:forKey: - objc.NSArray? decodeArrayOfObjectsOfClasses( - objc.NSSet classes, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = classes.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeArrayOfObjectsOfClasses:forKey:', - iOS: (false, (14, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_decodeArrayOfObjectsOfClasses_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// decodeBoolForKey: - bool decodeBoolForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_decodeBoolForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeBytesForKey:minimumLength: - ffi.Pointer decodeBytesForKey( - objc.NSString key, { - required DartNSUInteger minimumLength, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeBytesForKey:minimumLength:', - iOS: (false, (18, 4, 0)), - macOS: (false, (15, 4, 0)), - ); - return _objc_msgSend_1l10mai( - _$$ref.pointer, - _sel_decodeBytesForKey_minimumLength_, - _$$ref$1.pointer, - minimumLength, - ); - } - - /// decodeBytesForKey:returnedLength: - ffi.Pointer decodeBytesForKey$1( - objc.NSString key, { - required ffi.Pointer returnedLength, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_1fyph4u( - _$$ref.pointer, - _sel_decodeBytesForKey_returnedLength_, - _$$ref$1.pointer, - returnedLength, - ); - } - - /// decodeBytesWithMinimumLength: - ffi.Pointer decodeBytesWithMinimumLength(DartNSUInteger length) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeBytesWithMinimumLength:', - iOS: (false, (18, 4, 0)), - macOS: (false, (15, 4, 0)), - ); - return _objc_msgSend_5hhk6v( - _$$ref.pointer, - _sel_decodeBytesWithMinimumLength_, - length, - ); - } - - /// decodeBytesWithReturnedLength: - ffi.Pointer decodeBytesWithReturnedLength( - ffi.Pointer lengthp, - ) { - final _$$ref = object$.ref; - return _objc_msgSend_s69mzd( - _$$ref.pointer, - _sel_decodeBytesWithReturnedLength_, - lengthp, - ); - } - - /// decodeDictionaryWithKeysOfClass:objectsOfClass:forKey: - objc.NSDictionary? decodeDictionaryWithKeysOfClass( - objc.ObjCObject keyCls, { - required objc.ObjCObject objectsOfClass, - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = keyCls.ref; - final _$$ref$2 = objectsOfClass.ref; - final _$$ref$3 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:', - iOS: (false, (14, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - final $ret = _objc_msgSend_1mevadz( - _$$ref.pointer, - _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey: - objc.NSDictionary? decodeDictionaryWithKeysOfClasses( - objc.NSSet keyClasses, { - required objc.NSSet objectsOfClasses, - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = keyClasses.ref; - final _$$ref$2 = objectsOfClasses.ref; - final _$$ref$3 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:', - iOS: (false, (14, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - final $ret = _objc_msgSend_1mevadz( - _$$ref.pointer, - _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// decodeDoubleForKey: - double decodeDoubleForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return objc.useMsgSendVariants - ? _objc_msgSend_zlrk5fFpret( - _$$ref.pointer, - _sel_decodeDoubleForKey_, - _$$ref$1.pointer, - ) - : _objc_msgSend_zlrk5f( - _$$ref.pointer, - _sel_decodeDoubleForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeFloatForKey: - double decodeFloatForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return objc.useMsgSendVariants - ? _objc_msgSend_1q2tbpdFpret( - _$$ref.pointer, - _sel_decodeFloatForKey_, - _$$ref$1.pointer, - ) - : _objc_msgSend_1q2tbpd( - _$$ref.pointer, - _sel_decodeFloatForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeInt32ForKey: - int decodeInt32ForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_ml5svd( - _$$ref.pointer, - _sel_decodeInt32ForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeInt64ForKey: - int decodeInt64ForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_ko9mpb( - _$$ref.pointer, - _sel_decodeInt64ForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeIntForKey: - int decodeIntForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_1vr6auf( - _$$ref.pointer, - _sel_decodeIntForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeIntegerForKey: - DartNSInteger decodeIntegerForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeIntegerForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_smucfr( - _$$ref.pointer, - _sel_decodeIntegerForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeObject - objc.ObjCObject? decodeObject() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_decodeObject); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodeObjectForKey: - objc.ObjCObject? decodeObjectForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_decodeObjectForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodeObjectOfClass:forKey: - objc.ObjCObject? decodeObjectOfClass( - objc.ObjCObject aClass, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = aClass.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeObjectOfClass:forKey:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_decodeObjectOfClass_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodeObjectOfClasses:forKey: - objc.ObjCObject? decodeObjectOfClasses( - objc.NSSet? classes, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = classes?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeObjectOfClasses:forKey:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_decodeObjectOfClasses_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodePropertyList - objc.ObjCObject? decodePropertyList() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_decodePropertyList); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodePropertyListForKey: - objc.ObjCObject? decodePropertyListForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodePropertyListForKey:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_decodePropertyListForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodeTopLevelObjectAndReturnError: - objc.ObjCObject? decodeTopLevelObjectAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeTopLevelObjectAndReturnError:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1l4zcuu( - _$$ref.pointer, - _sel_decodeTopLevelObjectAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decodeTopLevelObjectForKey:error: - objc.ObjCObject? decodeTopLevelObjectForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeTopLevelObjectForKey:error:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1a2vk5h( - _$$ref.pointer, - _sel_decodeTopLevelObjectForKey_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decodeTopLevelObjectOfClass:forKey:error: - objc.ObjCObject? decodeTopLevelObjectOfClass( - objc.ObjCObject aClass, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = aClass.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeTopLevelObjectOfClass:forKey:error:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1rz4muk( - _$$ref.pointer, - _sel_decodeTopLevelObjectOfClass_forKey_error_, - _$$ref$1.pointer, - _$$ref$2.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decodeTopLevelObjectOfClasses:forKey:error: - objc.ObjCObject? decodeTopLevelObjectOfClasses( - objc.NSSet? classes, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = classes?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeTopLevelObjectOfClasses:forKey:error:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1rz4muk( - _$$ref.pointer, - _sel_decodeTopLevelObjectOfClasses_forKey_error_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decodeValuesOfObjCTypes: - void decodeValuesOfObjCTypes(ffi.Pointer types) { - final _$$ref = object$.ref; - _objc_msgSend_n42fjv(_$$ref.pointer, _sel_decodeValuesOfObjCTypes_, types); - } - - /// decodingFailurePolicy - objc.NSDecodingFailurePolicy get decodingFailurePolicy { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodingFailurePolicy', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $ret = _objc_msgSend_1dubril( - _$$ref.pointer, - _sel_decodingFailurePolicy, - ); - return objc.NSDecodingFailurePolicy.fromValue($ret); - } - - /// encodeArrayOfObjCType:count:at: - void encodeArrayOfObjCType( - ffi.Pointer type, { - required DartNSUInteger count, - required ffi.Pointer at, - }) { - final _$$ref = object$.ref; - _objc_msgSend_1f7hox7( - _$$ref.pointer, - _sel_encodeArrayOfObjCType_count_at_, - type, - count, - at, - ); - } - - /// encodeBool:forKey: - void encodeBool(bool value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_6ngya9( - _$$ref.pointer, - _sel_encodeBool_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeBycopyObject: - void encodeBycopyObject(objc.ObjCObject? anObject) { - final _$$ref = object$.ref; - final _$$ref$1 = anObject?.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_encodeBycopyObject_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// encodeByrefObject: - void encodeByrefObject(objc.ObjCObject? anObject) { - final _$$ref = object$.ref; - final _$$ref$1 = anObject?.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_encodeByrefObject_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// encodeBytes:length: - void encodeBytes( - ffi.Pointer byteaddr, { - required DartNSUInteger length, - }) { - final _$$ref = object$.ref; - _objc_msgSend_1nr9pmw( - _$$ref.pointer, - _sel_encodeBytes_length_, - byteaddr, - length, - ); - } - - /// encodeBytes:length:forKey: - void encodeBytes$1( - ffi.Pointer bytes, { - required DartNSUInteger length, - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_f2eek9( - _$$ref.pointer, - _sel_encodeBytes_length_forKey_, - bytes, - length, - _$$ref$1.pointer, - ); - } - - /// encodeConditionalObject: - void encodeConditionalObject(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_encodeConditionalObject_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// encodeConditionalObject:forKey: - void encodeConditionalObject$1( - objc.ObjCObject? object, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - final _$$ref$2 = forKey.ref; - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_encodeConditionalObject_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// encodeDouble:forKey: - void encodeDouble(double value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_1wruglo( - _$$ref.pointer, - _sel_encodeDouble_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeFloat:forKey: - void encodeFloat(double value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_yvcp9i( - _$$ref.pointer, - _sel_encodeFloat_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeInt32:forKey: - void encodeInt32(int value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_j25zxm( - _$$ref.pointer, - _sel_encodeInt32_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeInt64:forKey: - void encodeInt64(int value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_xu1jv4( - _$$ref.pointer, - _sel_encodeInt64_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeInt:forKey: - void encodeInt(int value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_1fzl250( - _$$ref.pointer, - _sel_encodeInt_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeInteger:forKey: - void encodeInteger(DartNSInteger value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.encodeInteger:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_2cgbeg( - _$$ref.pointer, - _sel_encodeInteger_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeObject: - void encodeObject(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_encodeObject_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// encodeObject:forKey: - void encodeObject$1( - objc.ObjCObject? object, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - final _$$ref$2 = forKey.ref; - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_encodeObject_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// encodePropertyList: - void encodePropertyList(objc.ObjCObject aPropertyList) { - final _$$ref = object$.ref; - final _$$ref$1 = aPropertyList.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_encodePropertyList_, - _$$ref$1.pointer, - ); - } - - /// encodeRootObject: - void encodeRootObject(objc.ObjCObject rootObject) { - final _$$ref = object$.ref; - final _$$ref$1 = rootObject.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_encodeRootObject_, - _$$ref$1.pointer, - ); - } - - /// encodeValuesOfObjCTypes: - void encodeValuesOfObjCTypes(ffi.Pointer types) { - final _$$ref = object$.ref; - _objc_msgSend_n42fjv(_$$ref.pointer, _sel_encodeValuesOfObjCTypes_, types); - } - - /// error - objc.NSError? get error { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.error', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_error); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } - - /// failWithError: - void failWithError(objc.NSError error) { - final _$$ref = object$.ref; - final _$$ref$1 = error.ref; - objc.checkOsVersionInternal( - 'NSCoder.failWithError:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_failWithError_, - _$$ref$1.pointer, - ); - } - - /// objectZone - ffi.Pointer objectZone() { - final _$$ref = object$.ref; - return _objc_msgSend_10m13xy(_$$ref.pointer, _sel_objectZone); - } - - /// requiresSecureCoding - bool get requiresSecureCoding { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.requiresSecureCoding', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_requiresSecureCoding); - } - - /// setObjectZone: - void setObjectZone(ffi.Pointer zone) { - final _$$ref = object$.ref; - _objc_msgSend_4aeiwn(_$$ref.pointer, _sel_setObjectZone_, zone); - } - - /// systemVersion - int get systemVersion { - final _$$ref = object$.ref; - return _objc_msgSend_pxpqpv(_$$ref.pointer, _sel_systemVersion); - } -} - -/// NSExtendedLocale -extension NSExtendedLocale on objc.NSLocale { - /// alternateQuotationBeginDelimiter - objc.NSString get alternateQuotationBeginDelimiter { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.alternateQuotationBeginDelimiter', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_alternateQuotationBeginDelimiter, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// alternateQuotationEndDelimiter - objc.NSString get alternateQuotationEndDelimiter { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.alternateQuotationEndDelimiter', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_alternateQuotationEndDelimiter, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// calendarIdentifier - objc.NSString get calendarIdentifier { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.calendarIdentifier', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_calendarIdentifier); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// collationIdentifier - objc.NSString? get collationIdentifier { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.collationIdentifier', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_collationIdentifier); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// collatorIdentifier - objc.NSString get collatorIdentifier { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.collatorIdentifier', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_collatorIdentifier); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// countryCode - @Deprecated('Deprecated') - objc.NSString? get countryCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.countryCode', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_countryCode); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// currencyCode - objc.NSString? get currencyCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.currencyCode', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_currencyCode); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// currencySymbol - objc.NSString get currencySymbol { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.currencySymbol', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_currencySymbol); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// decimalSeparator - objc.NSString get decimalSeparator { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.decimalSeparator', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_decimalSeparator); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// exemplarCharacterSet - objc.NSCharacterSet get exemplarCharacterSet { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.exemplarCharacterSet', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_exemplarCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// groupingSeparator - objc.NSString get groupingSeparator { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.groupingSeparator', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_groupingSeparator); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// languageCode - objc.NSString get languageCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.languageCode', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_languageCode); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// languageIdentifier - objc.NSString get languageIdentifier { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.languageIdentifier', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_languageIdentifier); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localeIdentifier - objc.NSString get localeIdentifier { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_localeIdentifier); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForCalendarIdentifier: - objc.NSString? localizedStringForCalendarIdentifier( - objc.NSString calendarIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = calendarIdentifier.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForCalendarIdentifier:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_localizedStringForCalendarIdentifier_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForCollationIdentifier: - objc.NSString? localizedStringForCollationIdentifier( - objc.NSString collationIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = collationIdentifier.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForCollationIdentifier:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_localizedStringForCollationIdentifier_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForCollatorIdentifier: - objc.NSString? localizedStringForCollatorIdentifier( - objc.NSString collatorIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = collatorIdentifier.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForCollatorIdentifier:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_localizedStringForCollatorIdentifier_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForCountryCode: - objc.NSString? localizedStringForCountryCode(objc.NSString countryCode) { - final _$$ref = object$.ref; - final _$$ref$1 = countryCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForCountryCode:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_localizedStringForCountryCode_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForCurrencyCode: - objc.NSString? localizedStringForCurrencyCode(objc.NSString currencyCode) { - final _$$ref = object$.ref; - final _$$ref$1 = currencyCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForCurrencyCode:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_localizedStringForCurrencyCode_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForLanguageCode: - objc.NSString? localizedStringForLanguageCode(objc.NSString languageCode) { - final _$$ref = object$.ref; - final _$$ref$1 = languageCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForLanguageCode:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_localizedStringForLanguageCode_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForLocaleIdentifier: - objc.NSString localizedStringForLocaleIdentifier( - objc.NSString localeIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = localeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForLocaleIdentifier:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_localizedStringForLocaleIdentifier_, - _$$ref$1.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForScriptCode: - objc.NSString? localizedStringForScriptCode(objc.NSString scriptCode) { - final _$$ref = object$.ref; - final _$$ref$1 = scriptCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForScriptCode:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_localizedStringForScriptCode_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForVariantCode: - objc.NSString? localizedStringForVariantCode(objc.NSString variantCode) { - final _$$ref = object$.ref; - final _$$ref$1 = variantCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForVariantCode:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_localizedStringForVariantCode_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// quotationBeginDelimiter - objc.NSString get quotationBeginDelimiter { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.quotationBeginDelimiter', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_quotationBeginDelimiter, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// quotationEndDelimiter - objc.NSString get quotationEndDelimiter { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.quotationEndDelimiter', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_quotationEndDelimiter, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// regionCode - objc.NSString? get regionCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.regionCode', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_regionCode); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// scriptCode - objc.NSString? get scriptCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.scriptCode', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_scriptCode); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// usesMetricSystem - bool get usesMetricSystem { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.usesMetricSystem', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_usesMetricSystem); - } - - /// variantCode - objc.NSString? get variantCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.variantCode', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_variantCode); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// NSExtendedMutableAttributedString -extension NSExtendedMutableAttributedString on NSMutableAttributedString { - /// addAttribute:value:range: - void addAttribute( - DartNSAttributedStringKey name, { - required objc.ObjCObject value, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = name.ref; - final _$$ref$2 = value.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.addAttribute:value:range:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_10mh3mj( - _$$ref.pointer, - _sel_addAttribute_value_range_, - _$$ref$1.pointer, - _$$ref$2.pointer, - range, - ); - } - - /// addAttributes:range: - void addAttributes(objc.NSDictionary attrs, {required NSRange range}) { - final _$$ref = object$.ref; - final _$$ref$1 = attrs.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.addAttributes:range:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_nolpru( - _$$ref.pointer, - _sel_addAttributes_range_, - _$$ref$1.pointer, - range, - ); - } - - /// appendAttributedString: - void appendAttributedString(objc.NSAttributedString attrString) { - final _$$ref = object$.ref; - final _$$ref$1 = attrString.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.appendAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_appendAttributedString_, - _$$ref$1.pointer, - ); - } - - /// beginEditing - void beginEditing() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.beginEditing', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_beginEditing); - } - - /// deleteCharactersInRange: - void deleteCharactersInRange(NSRange range) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.deleteCharactersInRange:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1ax18rd(_$$ref.pointer, _sel_deleteCharactersInRange_, range); - } - - /// endEditing - void endEditing() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.endEditing', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_endEditing); - } - - /// insertAttributedString:atIndex: - void insertAttributedString( - objc.NSAttributedString attrString, { - required DartNSUInteger atIndex, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = attrString.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.insertAttributedString:atIndex:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_ralblg( - _$$ref.pointer, - _sel_insertAttributedString_atIndex_, - _$$ref$1.pointer, - atIndex, - ); - } - - /// mutableString - objc.NSMutableString get mutableString { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.mutableString', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_mutableString); - return objc.NSMutableString.fromPointer($ret, retain: true, release: true); - } - - /// removeAttribute:range: - void removeAttribute( - DartNSAttributedStringKey name, { - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = name.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.removeAttribute:range:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_nolpru( - _$$ref.pointer, - _sel_removeAttribute_range_, - _$$ref$1.pointer, - range, - ); - } - - /// replaceCharactersInRange:withAttributedString: - void replaceCharactersInRange( - NSRange range, { - required objc.NSAttributedString withAttributedString, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withAttributedString.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.replaceCharactersInRange:withAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1ft2ink( - _$$ref.pointer, - _sel_replaceCharactersInRange_withAttributedString_, - range, - _$$ref$1.pointer, - ); - } - - /// setAttributedString: - void setAttributedString(objc.NSAttributedString attrString) { - final _$$ref = object$.ref; - final _$$ref$1 = attrString.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.setAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setAttributedString_, - _$$ref$1.pointer, - ); - } -} - -/// NSExtendedScanner -extension NSExtendedScanner on NSScanner { - /// isAtEnd - bool get isAtEnd { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isAtEnd); - } - - /// scanCharactersFromSet:intoString: - bool scanCharactersFromSet( - objc.NSCharacterSet set, { - required ffi.Pointer> intoString, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - return _objc_msgSend_7agf1a( - _$$ref.pointer, - _sel_scanCharactersFromSet_intoString_, - _$$ref$1.pointer, - intoString, - ); - } - - /// scanDouble: - bool scanDouble(ffi.Pointer result) { - final _$$ref = object$.ref; - return _objc_msgSend_nu1ilo(_$$ref.pointer, _sel_scanDouble_, result); - } - - /// scanFloat: - bool scanFloat(ffi.Pointer result) { - final _$$ref = object$.ref; - return _objc_msgSend_1lkmam2(_$$ref.pointer, _sel_scanFloat_, result); - } - - /// scanHexDouble: - bool scanHexDouble(ffi.Pointer result) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSScanner.scanHexDouble:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_nu1ilo(_$$ref.pointer, _sel_scanHexDouble_, result); - } - - /// scanHexFloat: - bool scanHexFloat(ffi.Pointer result) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSScanner.scanHexFloat:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1lkmam2(_$$ref.pointer, _sel_scanHexFloat_, result); - } - - /// scanHexInt: - bool scanHexInt(ffi.Pointer result) { - final _$$ref = object$.ref; - return _objc_msgSend_5xlvnr(_$$ref.pointer, _sel_scanHexInt_, result); - } - - /// scanHexLongLong: - bool scanHexLongLong(ffi.Pointer result) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSScanner.scanHexLongLong:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_mvpew8(_$$ref.pointer, _sel_scanHexLongLong_, result); - } - - /// scanInt: - bool scanInt(ffi.Pointer result) { - final _$$ref = object$.ref; - return _objc_msgSend_1844k4(_$$ref.pointer, _sel_scanInt_, result); - } - - /// scanInteger: - bool scanInteger(ffi.Pointer result) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSScanner.scanInteger:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1ijt5u4(_$$ref.pointer, _sel_scanInteger_, result); - } - - /// scanLongLong: - bool scanLongLong(ffi.Pointer result) { - final _$$ref = object$.ref; - return _objc_msgSend_19tgqei(_$$ref.pointer, _sel_scanLongLong_, result); - } - - /// scanString:intoString: - bool scanString( - objc.NSString string, { - required ffi.Pointer> intoString, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - return _objc_msgSend_7agf1a( - _$$ref.pointer, - _sel_scanString_intoString_, - _$$ref$1.pointer, - intoString, - ); - } - - /// scanUnsignedLongLong: - bool scanUnsignedLongLong(ffi.Pointer result) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSScanner.scanUnsignedLongLong:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_mvpew8( - _$$ref.pointer, - _sel_scanUnsignedLongLong_, - result, - ); - } - - /// scanUpToCharactersFromSet:intoString: - bool scanUpToCharactersFromSet( - objc.NSCharacterSet set, { - required ffi.Pointer> intoString, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - return _objc_msgSend_7agf1a( - _$$ref.pointer, - _sel_scanUpToCharactersFromSet_intoString_, - _$$ref$1.pointer, - intoString, - ); - } - - /// scanUpToString:intoString: - bool scanUpToString( - objc.NSString string, { - required ffi.Pointer> intoString, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - return _objc_msgSend_7agf1a( - _$$ref.pointer, - _sel_scanUpToString_intoString_, - _$$ref$1.pointer, - intoString, - ); - } - - /// localizedScannerWithString: - static objc.ObjCObject localizedScannerWithString(objc.NSString string) { - final _$$ref = string.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSScanner, - _sel_localizedScannerWithString_, - _$$ref.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSExtendedStringPropertyListParsing -extension NSExtendedStringPropertyListParsing on objc.NSString { - /// propertyList - objc.ObjCObject propertyList() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_propertyList); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// propertyListFromStringsFileFormat - objc.NSDictionary? propertyListFromStringsFileFormat() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_propertyListFromStringsFileFormat, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -/// NSExtendedTimeZone -extension NSExtendedTimeZone on NSTimeZone { - /// abbreviation - objc.NSString? get abbreviation { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_abbreviation); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// daylightSavingTimeOffset - DartNSTimeInterval get daylightSavingTimeOffset { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTimeZone.daylightSavingTimeOffset', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret( - _$$ref.pointer, - _sel_daylightSavingTimeOffset, - ) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_daylightSavingTimeOffset); - } - - /// description - objc.NSString get description$1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_description); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// isDaylightSavingTime - bool get isDaylightSavingTime { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isDaylightSavingTime); - } - - /// isEqualToTimeZone: - bool isEqualToTimeZone(NSTimeZone aTimeZone) { - final _$$ref = object$.ref; - final _$$ref$1 = aTimeZone.ref; - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isEqualToTimeZone_, - _$$ref$1.pointer, - ); - } - - /// localizedName:locale: - objc.NSString? localizedName( - NSTimeZoneNameStyle style, { - objc.NSLocale? locale, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = locale?.ref; - objc.checkOsVersionInternal( - 'NSTimeZone.localizedName:locale:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_17y2ndj( - _$$ref.pointer, - _sel_localizedName_locale_, - style.value, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// nextDaylightSavingTimeTransition - objc.NSDate? get nextDaylightSavingTimeTransition { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTimeZone.nextDaylightSavingTimeTransition', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_nextDaylightSavingTimeTransition, - ); - return $ret.address == 0 - ? null - : objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// secondsFromGMT - DartNSInteger get secondsFromGMT { - final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_secondsFromGMT); - } - - /// abbreviationDictionary - static objc.NSDictionary getAbbreviationDictionary() { - objc.checkOsVersionInternal( - 'NSTimeZone.abbreviationDictionary', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSTimeZone, - _sel_abbreviationDictionary, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// defaultTimeZone - static NSTimeZone getDefaultTimeZone() { - final $ret = _objc_msgSend_zldla2(_class_NSTimeZone, _sel_defaultTimeZone); - return NSTimeZone.fromPointer($ret, retain: true, release: true); - } - - /// knownTimeZoneNames - static objc.NSArray getKnownTimeZoneNames() { - final $ret = _objc_msgSend_zldla2( - _class_NSTimeZone, - _sel_knownTimeZoneNames, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// localTimeZone - static NSTimeZone getLocalTimeZone() { - final $ret = _objc_msgSend_zldla2(_class_NSTimeZone, _sel_localTimeZone); - return NSTimeZone.fromPointer($ret, retain: true, release: true); - } - - /// resetSystemTimeZone - static void resetSystemTimeZone() { - _objc_msgSend_h9i570(_class_NSTimeZone, _sel_resetSystemTimeZone); - } - - /// setAbbreviationDictionary: - static void setAbbreviationDictionary(objc.NSDictionary value) { - final _$$ref = value.ref; - objc.checkOsVersionInternal( - 'NSTimeZone.setAbbreviationDictionary:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_1d1siln( - _class_NSTimeZone, - _sel_setAbbreviationDictionary_, - _$$ref.pointer, - ); - } - - /// setDefaultTimeZone: - static void setDefaultTimeZone(NSTimeZone value) { - final _$$ref = value.ref; - _objc_msgSend_1d1siln( - _class_NSTimeZone, - _sel_setDefaultTimeZone_, - _$$ref.pointer, - ); - } - - /// systemTimeZone - static NSTimeZone getSystemTimeZone() { - final $ret = _objc_msgSend_zldla2(_class_NSTimeZone, _sel_systemTimeZone); - return NSTimeZone.fromPointer($ret, retain: true, release: true); - } - - /// timeZoneDataVersion - static objc.NSString getTimeZoneDataVersion() { - objc.checkOsVersionInternal( - 'NSTimeZone.timeZoneDataVersion', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSTimeZone, - _sel_timeZoneDataVersion, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSExtensionContext is a stub. To generate bindings for this class, include -/// NSExtensionContext in your config's objc-interfaces list. -/// -/// NSExtensionContext -extension type NSExtensionContext._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSExtensionContext] that points to the same underlying object as [other]. - NSExtensionContext.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSExtensionContext', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } - - /// Constructs a [NSExtensionContext] that wraps the given raw object pointer. - NSExtensionContext.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSExtensionContext', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } -} - -/// NSExtensionRequestHandling -extension type NSExtensionRequestHandling._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSExtensionRequestHandling] that points to the same underlying object as [other]. - NSExtensionRequestHandling.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSExtensionRequestHandling] that wraps the given raw object pointer. - NSExtensionRequestHandling.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSExtensionRequestHandling]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSExtensionRequestHandling, - ); - } -} - -extension NSExtensionRequestHandling$Methods on NSExtensionRequestHandling { - /// beginRequestWithExtensionContext: - void beginRequestWithExtensionContext(NSExtensionContext context) { - final _$$ref = object$.ref; - final _$$ref$1 = context.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_beginRequestWithExtensionContext_, - _$$ref$1.pointer, - ); - } -} - -interface class NSExtensionRequestHandling$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSExtensionRequestHandling.cast()); - - /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSExtensionRequestHandling implement({ - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSExtensionRequestHandling', - ); - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implement(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - return NSExtensionRequestHandling.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implement(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSExtensionRequestHandling implementAsListener({ - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSExtensionRequestHandling', - ); - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implementAsListener(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - return NSExtensionRequestHandling.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implementAsListener(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSExtensionRequestHandling implementAsBlocking({ - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSExtensionRequestHandling', - ); - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implementAsBlocking(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - return NSExtensionRequestHandling.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implementAsBlocking(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - } - - /// beginRequestWithExtensionContext: - static final beginRequestWithExtensionContext_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSExtensionRequestHandling, - _sel_beginRequestWithExtensionContext_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSExtensionRequestHandling, - _sel_beginRequestWithExtensionContext_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSExtensionContext) func) => - ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.fromFunction( - (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), - ), - (void Function(NSExtensionContext) func) => - ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.listener( - (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), - ), - (void Function(NSExtensionContext) func) => - ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.blocking( - (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), - ), - ); -} - -const int NSFeatureUnsupportedError = 3328; - -typedef NSFileAttributeKey = ffi.Pointer; -typedef DartNSFileAttributeKey = objc.NSString; -typedef NSFileAttributeType = ffi.Pointer; -typedef DartNSFileAttributeType = objc.NSString; - -/// NSFileAttributes -extension NSFileAttributes on objc.NSDictionary { - /// fileCreationDate - objc.NSDate? fileCreationDate() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_fileCreationDate); - return $ret.address == 0 - ? null - : objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// fileExtensionHidden - bool fileExtensionHidden() { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_fileExtensionHidden); - } - - /// fileGroupOwnerAccountID - objc.NSNumber? fileGroupOwnerAccountID() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_fileGroupOwnerAccountID, - ); - return $ret.address == 0 - ? null - : objc.NSNumber.fromPointer($ret, retain: true, release: true); - } - - /// fileGroupOwnerAccountName - objc.NSString? fileGroupOwnerAccountName() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_fileGroupOwnerAccountName, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// fileHFSCreatorCode - DartUInt32 fileHFSCreatorCode() { - final _$$ref = object$.ref; - return _objc_msgSend_pxpqpv(_$$ref.pointer, _sel_fileHFSCreatorCode); - } - - /// fileHFSTypeCode - DartUInt32 fileHFSTypeCode() { - final _$$ref = object$.ref; - return _objc_msgSend_pxpqpv(_$$ref.pointer, _sel_fileHFSTypeCode); - } - - /// fileIsAppendOnly - bool fileIsAppendOnly() { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_fileIsAppendOnly); - } - - /// fileIsImmutable - bool fileIsImmutable() { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_fileIsImmutable); - } - - /// fileModificationDate - objc.NSDate? fileModificationDate() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_fileModificationDate, - ); - return $ret.address == 0 - ? null - : objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// fileOwnerAccountID - objc.NSNumber? fileOwnerAccountID() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_fileOwnerAccountID); - return $ret.address == 0 - ? null - : objc.NSNumber.fromPointer($ret, retain: true, release: true); - } - - /// fileOwnerAccountName - objc.NSString? fileOwnerAccountName() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_fileOwnerAccountName, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// filePosixPermissions - DartNSUInteger filePosixPermissions() { - final _$$ref = object$.ref; - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_filePosixPermissions); - } - - /// fileSize - int fileSize() { - final _$$ref = object$.ref; - return _objc_msgSend_10fx4x0(_$$ref.pointer, _sel_fileSize); - } - - /// fileSystemFileNumber - DartNSUInteger fileSystemFileNumber() { - final _$$ref = object$.ref; - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_fileSystemFileNumber); - } - - /// fileSystemNumber - DartNSInteger fileSystemNumber() { - final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_fileSystemNumber); - } - - /// fileType - objc.NSString? fileType() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_fileType); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -sealed class NSFileCoordinatorReadingOptions { - static const NSFileCoordinatorReadingWithoutChanges = 1; - static const NSFileCoordinatorReadingResolvesSymbolicLink = 2; - static const NSFileCoordinatorReadingImmediatelyAvailableMetadataOnly = 4; - static const NSFileCoordinatorReadingForUploading = 8; -} - -sealed class NSFileCoordinatorWritingOptions { - static const NSFileCoordinatorWritingForDeleting = 1; - static const NSFileCoordinatorWritingForMoving = 2; - static const NSFileCoordinatorWritingForMerging = 4; - static const NSFileCoordinatorWritingForReplacing = 8; - static const NSFileCoordinatorWritingContentIndependentMetadataOnly = 16; -} - -const int NSFileErrorMaximum = 1023; - -const int NSFileErrorMinimum = 0; - -/// WARNING: NSFileHandle is a stub. To generate bindings for this class, include -/// NSFileHandle in your config's objc-interfaces list. -/// -/// NSFileHandle -extension type NSFileHandle._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [NSFileHandle] that points to the same underlying object as [other]. - NSFileHandle.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSFileHandle] that wraps the given raw object pointer. - NSFileHandle.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSFileHandleAsynchronousAccess -extension NSFileHandleAsynchronousAccess on NSFileHandle { - /// acceptConnectionInBackgroundAndNotify - void acceptConnectionInBackgroundAndNotify() { - final _$$ref = object$.ref; - _objc_msgSend_h9i570( - _$$ref.pointer, - _sel_acceptConnectionInBackgroundAndNotify, - ); - } - - /// acceptConnectionInBackgroundAndNotifyForModes: - void acceptConnectionInBackgroundAndNotifyForModes(objc.NSArray? modes) { - final _$$ref = object$.ref; - final _$$ref$1 = modes?.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_acceptConnectionInBackgroundAndNotifyForModes_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// readInBackgroundAndNotify - void readInBackgroundAndNotify() { - final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_readInBackgroundAndNotify); - } - - /// readInBackgroundAndNotifyForModes: - void readInBackgroundAndNotifyForModes(objc.NSArray? modes) { - final _$$ref = object$.ref; - final _$$ref$1 = modes?.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_readInBackgroundAndNotifyForModes_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// readToEndOfFileInBackgroundAndNotify - void readToEndOfFileInBackgroundAndNotify() { - final _$$ref = object$.ref; - _objc_msgSend_h9i570( - _$$ref.pointer, - _sel_readToEndOfFileInBackgroundAndNotify, - ); - } - - /// readToEndOfFileInBackgroundAndNotifyForModes: - void readToEndOfFileInBackgroundAndNotifyForModes(objc.NSArray? modes) { - final _$$ref = object$.ref; - final _$$ref$1 = modes?.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_readToEndOfFileInBackgroundAndNotifyForModes_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// readabilityHandler - objc.ObjCBlock? get readabilityHandler { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFileHandle.readabilityHandler', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_readabilityHandler); - return $ret.address == 0 - ? null - : ObjCBlock_ffiVoid_NSFileHandle.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// setReadabilityHandler: - set readabilityHandler( - objc.ObjCBlock? value, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSFileHandle.setReadabilityHandler:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_wv523k( - _$$ref.pointer, - _sel_setReadabilityHandler_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setWriteabilityHandler: - set writeabilityHandler( - objc.ObjCBlock? value, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSFileHandle.setWriteabilityHandler:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_wv523k( - _$$ref.pointer, - _sel_setWriteabilityHandler_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// waitForDataInBackgroundAndNotify - void waitForDataInBackgroundAndNotify() { - final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_waitForDataInBackgroundAndNotify); - } - - /// waitForDataInBackgroundAndNotifyForModes: - void waitForDataInBackgroundAndNotifyForModes(objc.NSArray? modes) { - final _$$ref = object$.ref; - final _$$ref$1 = modes?.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_waitForDataInBackgroundAndNotifyForModes_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// writeabilityHandler - objc.ObjCBlock? get writeabilityHandler { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFileHandle.writeabilityHandler', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_13wc3w1( - _$$ref.pointer, - _sel_writeabilityHandler, - ); - return $ret.address == 0 - ? null - : ObjCBlock_ffiVoid_NSFileHandle.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSFileHandleCreation -extension NSFileHandleCreation on NSFileHandle { - /// fileHandleWithNullDevice - static NSFileHandle getFileHandleWithNullDevice() { - final $ret = _objc_msgSend_zldla2( - _class_NSFileHandle, - _sel_fileHandleWithNullDevice, - ); - return NSFileHandle.fromPointer($ret, retain: true, release: true); - } - - /// fileHandleWithStandardError - static NSFileHandle getFileHandleWithStandardError() { - final $ret = _objc_msgSend_zldla2( - _class_NSFileHandle, - _sel_fileHandleWithStandardError, - ); - return NSFileHandle.fromPointer($ret, retain: true, release: true); - } - - /// fileHandleWithStandardInput - static NSFileHandle getFileHandleWithStandardInput() { - final $ret = _objc_msgSend_zldla2( - _class_NSFileHandle, - _sel_fileHandleWithStandardInput, - ); - return NSFileHandle.fromPointer($ret, retain: true, release: true); - } - - /// fileHandleWithStandardOutput - static NSFileHandle getFileHandleWithStandardOutput() { - final $ret = _objc_msgSend_zldla2( - _class_NSFileHandle, - _sel_fileHandleWithStandardOutput, - ); - return NSFileHandle.fromPointer($ret, retain: true, release: true); - } -} - -/// NSFileHandlePlatformSpecific -extension NSFileHandlePlatformSpecific on NSFileHandle { - /// fileDescriptor - int get fileDescriptor { - final _$$ref = object$.ref; - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_fileDescriptor); - } -} - -const int NSFileLockingError = 255; - -/// WARNING: NSFileManager is a stub. To generate bindings for this class, include -/// NSFileManager in your config's objc-interfaces list. -/// -/// NSFileManager -extension type NSFileManager._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSFileManager] that points to the same underlying object as [other]. - NSFileManager.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSFileManager] that wraps the given raw object pointer. - NSFileManager.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSFileManagerDelegate -extension type NSFileManagerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSFileManagerDelegate] that points to the same underlying object as [other]. - NSFileManagerDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSFileManagerDelegate] that wraps the given raw object pointer. - NSFileManagerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSFileManagerDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSFileManagerDelegate, - ); - } -} - -extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { - /// fileManager:shouldCopyItemAtPath:toPath: - bool fileManager( - NSFileManager fileManager, { - required objc.NSString shouldCopyItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldCopyItemAtPath.ref; - final _$$ref$3 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldCopyItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldCopyItemAtPath:toPath:', - ); - } - return _objc_msgSend_po1ic4( - _$$ref.pointer, - _sel_fileManager_shouldCopyItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldCopyItemAtURL:toURL: - bool fileManager$1( - NSFileManager fileManager, { - required objc.NSURL shouldCopyItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldCopyItemAtURL.ref; - final _$$ref$3 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldCopyItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldCopyItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldCopyItemAtURL:toURL:', - ); - } - return _objc_msgSend_po1ic4( - _$$ref.pointer, - _sel_fileManager_shouldCopyItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldLinkItemAtPath:toPath: - bool fileManager$2( - NSFileManager fileManager, { - required objc.NSString shouldLinkItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldLinkItemAtPath.ref; - final _$$ref$3 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldLinkItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldLinkItemAtPath:toPath:', - ); - } - return _objc_msgSend_po1ic4( - _$$ref.pointer, - _sel_fileManager_shouldLinkItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldLinkItemAtURL:toURL: - bool fileManager$3( - NSFileManager fileManager, { - required objc.NSURL shouldLinkItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldLinkItemAtURL.ref; - final _$$ref$3 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldLinkItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldLinkItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldLinkItemAtURL:toURL:', - ); - } - return _objc_msgSend_po1ic4( - _$$ref.pointer, - _sel_fileManager_shouldLinkItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldMoveItemAtPath:toPath: - bool fileManager$4( - NSFileManager fileManager, { - required objc.NSString shouldMoveItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldMoveItemAtPath.ref; - final _$$ref$3 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldMoveItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldMoveItemAtPath:toPath:', - ); - } - return _objc_msgSend_po1ic4( - _$$ref.pointer, - _sel_fileManager_shouldMoveItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldMoveItemAtURL:toURL: - bool fileManager$5( - NSFileManager fileManager, { - required objc.NSURL shouldMoveItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldMoveItemAtURL.ref; - final _$$ref$3 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldMoveItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldMoveItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldMoveItemAtURL:toURL:', - ); - } - return _objc_msgSend_po1ic4( - _$$ref.pointer, - _sel_fileManager_shouldMoveItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: - bool fileManager$6( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSString copyingItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = copyingItemAtPath.ref; - final _$$ref$4 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:', - ); - } - return _objc_msgSend_1atifgf( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:copyingItemAtURL:toURL: - bool fileManager$7( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSURL copyingItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = copyingItemAtURL.ref; - final _$$ref$4 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:', - ); - } - return _objc_msgSend_1atifgf( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: - bool fileManager$8( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSString linkingItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = linkingItemAtPath.ref; - final _$$ref$4 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:', - ); - } - return _objc_msgSend_1atifgf( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:linkingItemAtURL:toURL: - bool fileManager$9( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSURL linkingItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = linkingItemAtURL.ref; - final _$$ref$4 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:', - ); - } - return _objc_msgSend_1atifgf( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:movingItemAtPath:toPath: - bool fileManager$10( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSString movingItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = movingItemAtPath.ref; - final _$$ref$4 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:movingItemAtPath:toPath:', - ); - } - return _objc_msgSend_1atifgf( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:movingItemAtURL:toURL: - bool fileManager$11( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSURL movingItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = movingItemAtURL.ref; - final _$$ref$4 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:movingItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:movingItemAtURL:toURL:', - ); - } - return _objc_msgSend_1atifgf( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:removingItemAtPath: - bool fileManager$12( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSString removingItemAtPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = removingItemAtPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:removingItemAtPath:', - ); - } - return _objc_msgSend_po1ic4( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:removingItemAtURL: - bool fileManager$13( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSURL removingItemAtURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = removingItemAtURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:removingItemAtURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:removingItemAtURL:', - ); - } - return _objc_msgSend_po1ic4( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldRemoveItemAtPath: - bool fileManager$14( - NSFileManager fileManager, { - required objc.NSString shouldRemoveItemAtPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldRemoveItemAtPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldRemoveItemAtPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldRemoveItemAtPath:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_fileManager_shouldRemoveItemAtPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// fileManager:shouldRemoveItemAtURL: - bool fileManager$15( - NSFileManager fileManager, { - required objc.NSURL shouldRemoveItemAtURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldRemoveItemAtURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldRemoveItemAtURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldRemoveItemAtURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldRemoveItemAtURL:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_fileManager_shouldRemoveItemAtURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSFileManagerDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSFileManagerDelegate.cast()); - - /// Builds an object that implements the NSFileManagerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSFileManagerDelegate implement({ - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldCopyItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldCopyItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldLinkItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldLinkItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldMoveItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldMoveItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString)? - fileManager_shouldProceedAfterError_removingItemAtPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL)? - fileManager_shouldProceedAfterError_removingItemAtURL_, - bool Function(NSFileManager, objc.NSString)? - fileManager_shouldRemoveItemAtPath_, - bool Function(NSFileManager, objc.NSURL)? - fileManager_shouldRemoveItemAtURL_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSFileManagerDelegate', - ); - NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtPath_toPath_ - .implement(builder, fileManager_shouldCopyItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtURL_toURL_ - .implement(builder, fileManager_shouldCopyItemAtURL_toURL_); - NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtPath_toPath_ - .implement(builder, fileManager_shouldLinkItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtURL_toURL_ - .implement(builder, fileManager_shouldLinkItemAtURL_toURL_); - NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtPath_toPath_ - .implement(builder, fileManager_shouldMoveItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtURL_toURL_ - .implement(builder, fileManager_shouldMoveItemAtURL_toURL_); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_removingItemAtPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_removingItemAtPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_removingItemAtURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_removingItemAtURL_, - ); - NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtPath_.implement( - builder, - fileManager_shouldRemoveItemAtPath_, - ); - NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtURL_.implement( - builder, - fileManager_shouldRemoveItemAtURL_, - ); - builder.addProtocol($protocol); - return NSFileManagerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSFileManagerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldCopyItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldCopyItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldLinkItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldLinkItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldMoveItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldMoveItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString)? - fileManager_shouldProceedAfterError_removingItemAtPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL)? - fileManager_shouldProceedAfterError_removingItemAtURL_, - bool Function(NSFileManager, objc.NSString)? - fileManager_shouldRemoveItemAtPath_, - bool Function(NSFileManager, objc.NSURL)? - fileManager_shouldRemoveItemAtURL_, - bool $keepIsolateAlive = true, - }) { - NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtPath_toPath_ - .implement(builder, fileManager_shouldCopyItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtURL_toURL_ - .implement(builder, fileManager_shouldCopyItemAtURL_toURL_); - NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtPath_toPath_ - .implement(builder, fileManager_shouldLinkItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtURL_toURL_ - .implement(builder, fileManager_shouldLinkItemAtURL_toURL_); - NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtPath_toPath_ - .implement(builder, fileManager_shouldMoveItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtURL_toURL_ - .implement(builder, fileManager_shouldMoveItemAtURL_toURL_); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_removingItemAtPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_removingItemAtPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_removingItemAtURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_removingItemAtURL_, - ); - NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtPath_.implement( - builder, - fileManager_shouldRemoveItemAtPath_, - ); - NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtURL_.implement( - builder, - fileManager_shouldRemoveItemAtURL_, - ); - builder.addProtocol($protocol); - } - - /// fileManager:shouldCopyItemAtPath:toPath: - static final fileManager_shouldCopyItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldCopyItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1w5mp29) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldCopyItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldCopyItemAtURL:toURL: - static final fileManager_shouldCopyItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldCopyItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1w5mp29) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldCopyItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSURL arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldLinkItemAtPath:toPath: - static final fileManager_shouldLinkItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldLinkItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1w5mp29) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldLinkItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldLinkItemAtURL:toURL: - static final fileManager_shouldLinkItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldLinkItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1w5mp29) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldLinkItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSURL arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldMoveItemAtPath:toPath: - static final fileManager_shouldMoveItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldMoveItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1w5mp29) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldMoveItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldMoveItemAtURL:toURL: - static final fileManager_shouldMoveItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldMoveItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1w5mp29) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldMoveItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSURL arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: - static final fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1gdoaig) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function( - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - objc.NSString arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:copyingItemAtURL:toURL: - static final fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1gdoaig) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - objc.NSURL arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: - static final fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1gdoaig) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function( - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - objc.NSString arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:linkingItemAtURL:toURL: - static final fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1gdoaig) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - objc.NSURL arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:movingItemAtPath:toPath: - static final fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1gdoaig) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function( - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - objc.NSString arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:movingItemAtURL:toURL: - static final fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1gdoaig) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - objc.NSURL arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:removingItemAtPath: - static final fileManager_shouldProceedAfterError_removingItemAtPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1w5mp29) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSError, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldProceedAfterError:removingItemAtURL: - static final fileManager_shouldProceedAfterError_removingItemAtURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1w5mp29) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSError, objc.NSURL) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldRemoveItemAtPath: - static final fileManager_shouldRemoveItemAtPath_ = - objc.ObjCProtocolMethod( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldRemoveItemAtPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldRemoveItemAtPath_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// fileManager:shouldRemoveItemAtURL: - static final fileManager_shouldRemoveItemAtURL_ = - objc.ObjCProtocolMethod( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldRemoveItemAtURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldRemoveItemAtURL_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSURL) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSURL.fromFunction( - (ffi.Pointer _, NSFileManager arg1, objc.NSURL arg2) => - func(arg1, arg2), - ), - ); -} - -sealed class NSFileManagerItemReplacementOptions { - static const NSFileManagerItemReplacementUsingNewMetadataOnly = 1; - static const NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; -} - -enum NSFileManagerResumeSyncBehavior { - NSFileManagerResumeSyncBehaviorPreserveLocalChanges(0), - NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict(1), - NSFileManagerResumeSyncBehaviorDropLocalChanges(2); - - final int value; - const NSFileManagerResumeSyncBehavior(this.value); - - static NSFileManagerResumeSyncBehavior fromValue(int value) => - switch (value) { - 0 => NSFileManagerResumeSyncBehaviorPreserveLocalChanges, - 1 => NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict, - 2 => NSFileManagerResumeSyncBehaviorDropLocalChanges, - _ => throw ArgumentError( - 'Unknown value for NSFileManagerResumeSyncBehavior: $value', - ), - }; -} - -sealed class NSFileManagerSupportedSyncControls { - static const NSFileManagerSupportedSyncControlsPauseSync = 1; - static const NSFileManagerSupportedSyncControlsFailUploadOnConflict = 2; -} - -const int NSFileManagerUnmountBusyError = 769; - -sealed class NSFileManagerUnmountOptions { - static const NSFileManagerUnmountAllPartitionsAndEjectDisk = 1; - static const NSFileManagerUnmountWithoutUI = 2; -} - -const int NSFileManagerUnmountUnknownError = 768; - -enum NSFileManagerUploadLocalVersionConflictPolicy { - NSFileManagerUploadConflictPolicyDefault(0), - NSFileManagerUploadConflictPolicyFailOnConflict(1); - - final int value; - const NSFileManagerUploadLocalVersionConflictPolicy(this.value); - - static NSFileManagerUploadLocalVersionConflictPolicy fromValue( - int value, - ) => switch (value) { - 0 => NSFileManagerUploadConflictPolicyDefault, - 1 => NSFileManagerUploadConflictPolicyFailOnConflict, - _ => throw ArgumentError( - 'Unknown value for NSFileManagerUploadLocalVersionConflictPolicy: $value', - ), - }; -} - -const int NSFileNoSuchFileError = 4; - -/// NSFilePresenter -extension type NSFilePresenter._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSFilePresenter] that points to the same underlying object as [other]. - NSFilePresenter.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSFilePresenter] that wraps the given raw object pointer. - NSFilePresenter.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSFilePresenter]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSFilePresenter, - ); - } -} - -extension NSFilePresenter$Methods on NSFilePresenter { - /// accommodatePresentedItemDeletionWithCompletionHandler: - void accommodatePresentedItemDeletionWithCompletionHandler( - objc.ObjCBlock completionHandler, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = completionHandler.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_accommodatePresentedItemDeletionWithCompletionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'accommodatePresentedItemDeletionWithCompletionHandler:', - ); - } - _objc_msgSend_wv523k( - _$$ref.pointer, - _sel_accommodatePresentedItemDeletionWithCompletionHandler_, - _$$ref$1.pointer, - ); - } - - /// accommodatePresentedItemEvictionWithCompletionHandler: - void accommodatePresentedItemEvictionWithCompletionHandler( - objc.ObjCBlock completionHandler, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSFilePresenter.accommodatePresentedItemEvictionWithCompletionHandler:', - iOS: (false, (17, 4, 0)), - macOS: (false, (14, 4, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_accommodatePresentedItemEvictionWithCompletionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'accommodatePresentedItemEvictionWithCompletionHandler:', - ); - } - _objc_msgSend_wv523k( - _$$ref.pointer, - _sel_accommodatePresentedItemEvictionWithCompletionHandler_, - _$$ref$1.pointer, - ); - } - - /// accommodatePresentedSubitemDeletionAtURL:completionHandler: - void accommodatePresentedSubitemDeletionAtURL( - objc.NSURL url, { - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = completionHandler.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'accommodatePresentedSubitemDeletionAtURL:completionHandler:', - ); - } - _objc_msgSend_9kuhjb( - _$$ref.pointer, - _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// observedPresentedItemUbiquityAttributes - objc.NSSet get observedPresentedItemUbiquityAttributes { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFilePresenter.observedPresentedItemUbiquityAttributes', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_observedPresentedItemUbiquityAttributes, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'observedPresentedItemUbiquityAttributes', - ); - } - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_observedPresentedItemUbiquityAttributes, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// presentedItemDidChange - void presentedItemDidChange() { - final _$$ref = object$.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_presentedItemDidChange)) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidChange', - ); - } - _objc_msgSend_h9i570(_$$ref.pointer, _sel_presentedItemDidChange); - } - - /// presentedItemDidChangeUbiquityAttributes: - void presentedItemDidChangeUbiquityAttributes(objc.NSSet attributes) { - final _$$ref = object$.ref; - final _$$ref$1 = attributes.ref; - objc.checkOsVersionInternal( - 'NSFilePresenter.presentedItemDidChangeUbiquityAttributes:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedItemDidChangeUbiquityAttributes_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidChangeUbiquityAttributes:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_presentedItemDidChangeUbiquityAttributes_, - _$$ref$1.pointer, - ); - } - - /// presentedItemDidGainVersion: - void presentedItemDidGainVersion(NSFileVersion version) { - final _$$ref = object$.ref; - final _$$ref$1 = version.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedItemDidGainVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidGainVersion:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_presentedItemDidGainVersion_, - _$$ref$1.pointer, - ); - } - - /// presentedItemDidLoseVersion: - void presentedItemDidLoseVersion(NSFileVersion version) { - final _$$ref = object$.ref; - final _$$ref$1 = version.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedItemDidLoseVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidLoseVersion:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_presentedItemDidLoseVersion_, - _$$ref$1.pointer, - ); - } - - /// presentedItemDidMoveToURL: - void presentedItemDidMoveToURL(objc.NSURL newURL) { - final _$$ref = object$.ref; - final _$$ref$1 = newURL.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedItemDidMoveToURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidMoveToURL:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_presentedItemDidMoveToURL_, - _$$ref$1.pointer, - ); - } - - /// presentedItemDidResolveConflictVersion: - void presentedItemDidResolveConflictVersion(NSFileVersion version) { - final _$$ref = object$.ref; - final _$$ref$1 = version.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedItemDidResolveConflictVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidResolveConflictVersion:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_presentedItemDidResolveConflictVersion_, - _$$ref$1.pointer, - ); - } - - /// presentedItemOperationQueue - NSOperationQueue get presentedItemOperationQueue { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_presentedItemOperationQueue, - ); - return NSOperationQueue.fromPointer($ret, retain: true, release: true); - } - - /// presentedItemURL - objc.NSURL? get presentedItemURL { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_presentedItemURL); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// presentedSubitemAtURL:didGainVersion: - void presentedSubitemAtURL( - objc.NSURL url, { - required NSFileVersion didGainVersion, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = didGainVersion.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didGainVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemAtURL:didGainVersion:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didGainVersion_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// presentedSubitemAtURL:didLoseVersion: - void presentedSubitemAtURL$1( - objc.NSURL url, { - required NSFileVersion didLoseVersion, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = didLoseVersion.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didLoseVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemAtURL:didLoseVersion:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didLoseVersion_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// presentedSubitemAtURL:didMoveToURL: - void presentedSubitemAtURL$2( - objc.NSURL oldURL, { - required objc.NSURL didMoveToURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = oldURL.ref; - final _$$ref$2 = didMoveToURL.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didMoveToURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemAtURL:didMoveToURL:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didMoveToURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// presentedSubitemAtURL:didResolveConflictVersion: - void presentedSubitemAtURL$3( - objc.NSURL url, { - required NSFileVersion didResolveConflictVersion, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = didResolveConflictVersion.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didResolveConflictVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemAtURL:didResolveConflictVersion:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didResolveConflictVersion_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// presentedSubitemDidAppearAtURL: - void presentedSubitemDidAppearAtURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemDidAppearAtURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemDidAppearAtURL:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_presentedSubitemDidAppearAtURL_, - _$$ref$1.pointer, - ); - } - - /// presentedSubitemDidChangeAtURL: - void presentedSubitemDidChangeAtURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemDidChangeAtURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemDidChangeAtURL:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_presentedSubitemDidChangeAtURL_, - _$$ref$1.pointer, - ); - } - - /// primaryPresentedItemURL - objc.NSURL? get primaryPresentedItemURL { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFilePresenter.primaryPresentedItemURL', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_primaryPresentedItemURL, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'primaryPresentedItemURL', - ); - } - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_primaryPresentedItemURL, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// relinquishPresentedItemToReader: - void relinquishPresentedItemToReader( - objc.ObjCBlock?)> - reader, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = reader.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_relinquishPresentedItemToReader_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'relinquishPresentedItemToReader:', - ); - } - _objc_msgSend_wv523k( - _$$ref.pointer, - _sel_relinquishPresentedItemToReader_, - _$$ref$1.pointer, - ); - } - - /// relinquishPresentedItemToWriter: - void relinquishPresentedItemToWriter( - objc.ObjCBlock?)> - writer, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = writer.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_relinquishPresentedItemToWriter_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'relinquishPresentedItemToWriter:', - ); - } - _objc_msgSend_wv523k( - _$$ref.pointer, - _sel_relinquishPresentedItemToWriter_, - _$$ref$1.pointer, - ); - } - - /// savePresentedItemChangesWithCompletionHandler: - void savePresentedItemChangesWithCompletionHandler( - objc.ObjCBlock completionHandler, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = completionHandler.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_savePresentedItemChangesWithCompletionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'savePresentedItemChangesWithCompletionHandler:', - ); - } - _objc_msgSend_wv523k( - _$$ref.pointer, - _sel_savePresentedItemChangesWithCompletionHandler_, - _$$ref$1.pointer, - ); - } -} - -interface class NSFilePresenter$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSFilePresenter.cast()); - - /// Builds an object that implements the NSFilePresenter protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSFilePresenter implement({ - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implement( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implement( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implement( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implement( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_.implement( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implement( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implement( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implement( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_.implement( - builder, - presentedItemDidResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_.implement( - builder, - presentedSubitemAtURL_didGainVersion_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_.implement( - builder, - presentedSubitemAtURL_didLoseVersion_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_.implement( - builder, - presentedSubitemAtURL_didMoveToURL_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implement(builder, presentedSubitemAtURL_didResolveConflictVersion_); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implement( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implement( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_.implement( - builder, - relinquishPresentedItemToReader_, - ); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_.implement( - builder, - relinquishPresentedItemToWriter_, - ); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implement(builder, savePresentedItemChangesWithCompletionHandler_); - builder.addProtocol($protocol); - return NSFilePresenter.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSFilePresenter protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implement( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implement( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implement( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implement( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_.implement( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implement( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implement( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implement( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_.implement( - builder, - presentedItemDidResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_.implement( - builder, - presentedSubitemAtURL_didGainVersion_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_.implement( - builder, - presentedSubitemAtURL_didLoseVersion_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_.implement( - builder, - presentedSubitemAtURL_didMoveToURL_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implement(builder, presentedSubitemAtURL_didResolveConflictVersion_); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implement( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implement( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_.implement( - builder, - relinquishPresentedItemToReader_, - ); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_.implement( - builder, - relinquishPresentedItemToWriter_, - ); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implement(builder, savePresentedItemChangesWithCompletionHandler_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSFilePresenter protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSFilePresenter implementAsListener({ - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implementAsListener( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implementAsListener( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implementAsListener( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implementAsListener( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ - .implementAsListener( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsListener( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsListener( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsListener( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ - .implementAsListener(builder, presentedItemDidResolveConflictVersion_); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ - .implementAsListener(builder, presentedSubitemAtURL_didGainVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ - .implementAsListener(builder, presentedSubitemAtURL_didLoseVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ - .implementAsListener(builder, presentedSubitemAtURL_didMoveToURL_); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implementAsListener( - builder, - presentedSubitemAtURL_didResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsListener( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsListener( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_ - .implementAsListener(builder, relinquishPresentedItemToReader_); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_ - .implementAsListener(builder, relinquishPresentedItemToWriter_); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implementAsListener( - builder, - savePresentedItemChangesWithCompletionHandler_, - ); - builder.addProtocol($protocol); - return NSFilePresenter.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSFilePresenter protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implementAsListener( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implementAsListener( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implementAsListener( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implementAsListener( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ - .implementAsListener( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsListener( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsListener( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsListener( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ - .implementAsListener(builder, presentedItemDidResolveConflictVersion_); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ - .implementAsListener(builder, presentedSubitemAtURL_didGainVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ - .implementAsListener(builder, presentedSubitemAtURL_didLoseVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ - .implementAsListener(builder, presentedSubitemAtURL_didMoveToURL_); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implementAsListener( - builder, - presentedSubitemAtURL_didResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsListener( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsListener( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_ - .implementAsListener(builder, relinquishPresentedItemToReader_); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_ - .implementAsListener(builder, relinquishPresentedItemToWriter_); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implementAsListener( - builder, - savePresentedItemChangesWithCompletionHandler_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSFilePresenter protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSFilePresenter implementAsBlocking({ - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implementAsBlocking( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ - .implementAsBlocking( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsBlocking( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsBlocking( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsBlocking( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ - .implementAsBlocking(builder, presentedItemDidResolveConflictVersion_); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ - .implementAsBlocking(builder, presentedSubitemAtURL_didGainVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ - .implementAsBlocking(builder, presentedSubitemAtURL_didLoseVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ - .implementAsBlocking(builder, presentedSubitemAtURL_didMoveToURL_); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implementAsBlocking( - builder, - presentedSubitemAtURL_didResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsBlocking( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsBlocking( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_ - .implementAsBlocking(builder, relinquishPresentedItemToReader_); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_ - .implementAsBlocking(builder, relinquishPresentedItemToWriter_); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implementAsBlocking( - builder, - savePresentedItemChangesWithCompletionHandler_, - ); - builder.addProtocol($protocol); - return NSFilePresenter.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSFilePresenter protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implementAsBlocking( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ - .implementAsBlocking( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsBlocking( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsBlocking( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsBlocking( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ - .implementAsBlocking(builder, presentedItemDidResolveConflictVersion_); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ - .implementAsBlocking(builder, presentedSubitemAtURL_didGainVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ - .implementAsBlocking(builder, presentedSubitemAtURL_didLoseVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ - .implementAsBlocking(builder, presentedSubitemAtURL_didMoveToURL_); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implementAsBlocking( - builder, - presentedSubitemAtURL_didResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsBlocking( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsBlocking( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_ - .implementAsBlocking(builder, relinquishPresentedItemToReader_); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_ - .implementAsBlocking(builder, relinquishPresentedItemToWriter_); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implementAsBlocking( - builder, - savePresentedItemChangesWithCompletionHandler_, - ); - builder.addProtocol($protocol); - } - - /// accommodatePresentedItemDeletionWithCompletionHandler: - static final accommodatePresentedItemDeletionWithCompletionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.ObjCBlock) - >( - _protocol_NSFilePresenter, - _sel_accommodatePresentedItemDeletionWithCompletionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1y86ja3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_accommodatePresentedItemDeletionWithCompletionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ); - - /// accommodatePresentedItemEvictionWithCompletionHandler: - static final accommodatePresentedItemEvictionWithCompletionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.ObjCBlock) - >( - _protocol_NSFilePresenter, - _sel_accommodatePresentedItemEvictionWithCompletionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1y86ja3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_accommodatePresentedItemEvictionWithCompletionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ); - - /// accommodatePresentedSubitemDeletionAtURL:completionHandler: - static final accommodatePresentedSubitemDeletionAtURL_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - objc.NSURL, - objc.ObjCBlock, - ) - >( - _protocol_NSFilePresenter, - _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_4m73qm) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - objc.NSURL, - objc.ObjCBlock, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.NSURL arg1, - objc.ObjCBlock arg2, - ) => func(arg1, arg2), - ), - ( - void Function( - objc.NSURL, - objc.ObjCBlock, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.listener( - ( - ffi.Pointer _, - objc.NSURL arg1, - objc.ObjCBlock arg2, - ) => func(arg1, arg2), - ), - ( - void Function( - objc.NSURL, - objc.ObjCBlock, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.blocking( - ( - ffi.Pointer _, - objc.NSURL arg1, - objc.ObjCBlock arg2, - ) => func(arg1, arg2), - ), - ); - - /// observedPresentedItemUbiquityAttributes - static final observedPresentedItemUbiquityAttributes = - objc.ObjCProtocolMethod( - _protocol_NSFilePresenter, - _sel_observedPresentedItemUbiquityAttributes, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_observedPresentedItemUbiquityAttributes, - isRequired: false, - isInstanceMethod: true, - ), - (objc.NSSet Function() func) => ObjCBlock_NSSet_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// presentedItemDidChange - static final presentedItemDidChange = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidChange, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_15is1z3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidChange, - isRequired: false, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// presentedItemDidChangeUbiquityAttributes: - static final presentedItemDidChangeUbiquityAttributes_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidChangeUbiquityAttributes_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidChangeUbiquityAttributes_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSSet) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSet.fromFunction( - (ffi.Pointer _, objc.NSSet arg1) => func(arg1), - ), - (void Function(objc.NSSet) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSet.listener( - (ffi.Pointer _, objc.NSSet arg1) => func(arg1), - ), - (void Function(objc.NSSet) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSet.blocking( - (ffi.Pointer _, objc.NSSet arg1) => func(arg1), - ), - ); - - /// presentedItemDidGainVersion: - static final presentedItemDidGainVersion_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidGainVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidGainVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - ); - - /// presentedItemDidLoseVersion: - static final presentedItemDidLoseVersion_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidLoseVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidLoseVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - ); - - /// presentedItemDidMoveToURL: - static final presentedItemDidMoveToURL_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidMoveToURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidMoveToURL_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - ); - - /// presentedItemDidResolveConflictVersion: - static final presentedItemDidResolveConflictVersion_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidResolveConflictVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidResolveConflictVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - ); - - /// presentedItemOperationQueue - static final presentedItemOperationQueue = - objc.ObjCProtocolMethod( - _protocol_NSFilePresenter, - _sel_presentedItemOperationQueue, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemOperationQueue, - isRequired: true, - isInstanceMethod: true, - ), - (NSOperationQueue Function() func) => - ObjCBlock_NSOperationQueue_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// presentedItemURL - static final presentedItemURL = - objc.ObjCProtocolMethod( - _protocol_NSFilePresenter, - _sel_presentedItemURL, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemURL, - isRequired: true, - isInstanceMethod: true, - ), - (objc.NSURL? Function() func) => ObjCBlock_NSURL_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// presentedSubitemAtURL:didGainVersion: - static final presentedSubitemAtURL_didGainVersion_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSURL, NSFileVersion) - >( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didGainVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didGainVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - ); - - /// presentedSubitemAtURL:didLoseVersion: - static final presentedSubitemAtURL_didLoseVersion_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSURL, NSFileVersion) - >( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didLoseVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didLoseVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - ); - - /// presentedSubitemAtURL:didMoveToURL: - static final presentedSubitemAtURL_didMoveToURL_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didMoveToURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didMoveToURL_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.fromFunction( - (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.listener( - (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.blocking( - (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => - func(arg1, arg2), - ), - ); - - /// presentedSubitemAtURL:didResolveConflictVersion: - static final presentedSubitemAtURL_didResolveConflictVersion_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSURL, NSFileVersion) - >( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didResolveConflictVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didResolveConflictVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - ); - - /// presentedSubitemDidAppearAtURL: - static final presentedSubitemDidAppearAtURL_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedSubitemDidAppearAtURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemDidAppearAtURL_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - ); - - /// presentedSubitemDidChangeAtURL: - static final presentedSubitemDidChangeAtURL_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedSubitemDidChangeAtURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemDidChangeAtURL_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - ); - - /// primaryPresentedItemURL - static final primaryPresentedItemURL = - objc.ObjCProtocolMethod( - _protocol_NSFilePresenter, - _sel_primaryPresentedItemURL, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_primaryPresentedItemURL, - isRequired: false, - isInstanceMethod: true, - ), - (objc.NSURL? Function() func) => ObjCBlock_NSURL_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// relinquishPresentedItemToReader: - static final relinquishPresentedItemToReader_ = - objc.ObjCProtocolListenableMethod< - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - >( - _protocol_NSFilePresenter, - _sel_relinquishPresentedItemToReader_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1y86ja3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_relinquishPresentedItemToReader_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.listener( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.blocking( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ); - - /// relinquishPresentedItemToWriter: - static final relinquishPresentedItemToWriter_ = - objc.ObjCProtocolListenableMethod< - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - >( - _protocol_NSFilePresenter, - _sel_relinquishPresentedItemToWriter_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1y86ja3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_relinquishPresentedItemToWriter_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.listener( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.blocking( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ); - - /// savePresentedItemChangesWithCompletionHandler: - static final savePresentedItemChangesWithCompletionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.ObjCBlock) - >( - _protocol_NSFilePresenter, - _sel_savePresentedItemChangesWithCompletionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1y86ja3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_savePresentedItemChangesWithCompletionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ); -} - -typedef NSFileProtectionType = ffi.Pointer; -typedef DartNSFileProtectionType = objc.NSString; -typedef NSFileProviderServiceName = ffi.Pointer; -typedef DartNSFileProviderServiceName = objc.NSString; - -const int NSFileReadCorruptFileError = 259; - -const int NSFileReadInapplicableStringEncodingError = 261; - -const int NSFileReadInvalidFileNameError = 258; - -const int NSFileReadNoPermissionError = 257; - -const int NSFileReadNoSuchFileError = 260; - -const int NSFileReadTooLargeError = 263; - -const int NSFileReadUnknownError = 256; - -const int NSFileReadUnknownStringEncodingError = 264; - -const int NSFileReadUnsupportedSchemeError = 262; - -/// WARNING: NSFileVersion is a stub. To generate bindings for this class, include -/// NSFileVersion in your config's objc-interfaces list. -/// -/// NSFileVersion -extension type NSFileVersion._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSFileVersion] that points to the same underlying object as [other]. - NSFileVersion.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSFileVersion', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } - - /// Constructs a [NSFileVersion] that wraps the given raw object pointer. - NSFileVersion.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSFileVersion', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } -} - -sealed class NSFileVersionAddingOptions { - static const NSFileVersionAddingByMoving = 1; -} - -sealed class NSFileVersionReplacingOptions { - static const NSFileVersionReplacingByMoving = 1; -} - -/// WARNING: NSFileWrapper is a stub. To generate bindings for this class, include -/// NSFileWrapper in your config's objc-interfaces list. -/// -/// NSFileWrapper -extension type NSFileWrapper._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [NSFileWrapper] that points to the same underlying object as [other]. - NSFileWrapper.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSFileWrapper', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSFileWrapper] that wraps the given raw object pointer. - NSFileWrapper.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSFileWrapper', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -sealed class NSFileWrapperReadingOptions { - static const NSFileWrapperReadingImmediate = 1; - static const NSFileWrapperReadingWithoutMapping = 2; -} - -sealed class NSFileWrapperWritingOptions { - static const NSFileWrapperWritingAtomic = 1; - static const NSFileWrapperWritingWithNameUpdating = 2; -} - -const int NSFileWriteFileExistsError = 516; - -const int NSFileWriteInapplicableStringEncodingError = 517; - -const int NSFileWriteInvalidFileNameError = 514; - -const int NSFileWriteNoPermissionError = 513; - -const int NSFileWriteOutOfSpaceError = 640; - -const int NSFileWriteUnknownError = 512; - -const int NSFileWriteUnsupportedSchemeError = 518; - -const int NSFileWriteVolumeReadOnlyError = 642; - -/// WARNING: NSFormatter is a stub. To generate bindings for this class, include -/// NSFormatter in your config's objc-interfaces list. -/// -/// NSFormatter -extension type NSFormatter._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCopying, objc.NSCoding { - /// Constructs a [NSFormatter] that points to the same underlying object as [other]. - NSFormatter.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSFormatter] that wraps the given raw object pointer. - NSFormatter.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -enum NSFormattingContext { - NSFormattingContextUnknown(0), - NSFormattingContextDynamic(1), - NSFormattingContextStandalone(2), - NSFormattingContextListItem(3), - NSFormattingContextBeginningOfSentence(4), - NSFormattingContextMiddleOfSentence(5); - - final int value; - const NSFormattingContext(this.value); - - static NSFormattingContext fromValue(int value) => switch (value) { - 0 => NSFormattingContextUnknown, - 1 => NSFormattingContextDynamic, - 2 => NSFormattingContextStandalone, - 3 => NSFormattingContextListItem, - 4 => NSFormattingContextBeginningOfSentence, - 5 => NSFormattingContextMiddleOfSentence, - _ => throw ArgumentError('Unknown value for NSFormattingContext: $value'), - }; -} - -const int NSFormattingError = 2048; - -const int NSFormattingErrorMaximum = 2559; - -const int NSFormattingErrorMinimum = 2048; - -enum NSFormattingUnitStyle { - NSFormattingUnitStyleShort(1), - NSFormattingUnitStyleMedium(2), - NSFormattingUnitStyleLong(3); - - final int value; - const NSFormattingUnitStyle(this.value); - - static NSFormattingUnitStyle fromValue(int value) => switch (value) { - 1 => NSFormattingUnitStyleShort, - 2 => NSFormattingUnitStyleMedium, - 3 => NSFormattingUnitStyleLong, - _ => throw ArgumentError('Unknown value for NSFormattingUnitStyle: $value'), - }; -} - -/// NSGenericFastEnumeration -extension NSGenericFastEnumeration on objc.NSDictionary { - /// countByEnumeratingWithState:objects:count: - DartNSUInteger countByEnumeratingWithState$1( - ffi.Pointer state, { - required ffi.Pointer> objects, - required DartNSUInteger count, - }) { - final _$$ref = object$.ref; - return _objc_msgSend_47idvh( - _$$ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count, - ); - } -} - -/// NSGeometryCoding -extension NSGeometryCoding on objc.NSCoder { - /// decodePoint - NSPoint decodePoint() { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_gvefwyStret($ptr, _$$ref.pointer, _sel_decodePoint) - : $ptr.ref = _objc_msgSend_gvefwy(_$$ref.pointer, _sel_decodePoint); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// decodeRect - NSRect decodeRect() { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_10g3temStret($ptr, _$$ref.pointer, _sel_decodeRect) - : $ptr.ref = _objc_msgSend_10g3tem(_$$ref.pointer, _sel_decodeRect); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// decodeSize - NSSize decodeSize() { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_wke702Stret($ptr, _$$ref.pointer, _sel_decodeSize) - : $ptr.ref = _objc_msgSend_wke702(_$$ref.pointer, _sel_decodeSize); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// encodePoint: - void encodePoint(NSPoint point) { - final _$$ref = object$.ref; - _objc_msgSend_lbm6kd(_$$ref.pointer, _sel_encodePoint_, point); - } - - /// encodeRect: - void encodeRect(NSRect rect) { - final _$$ref = object$.ref; - _objc_msgSend_12zlwvh(_$$ref.pointer, _sel_encodeRect_, rect); - } - - /// encodeSize: - void encodeSize(NSSize size) { - final _$$ref = object$.ref; - _objc_msgSend_28e8o1(_$$ref.pointer, _sel_encodeSize_, size); - } -} - -/// NSGeometryKeyedCoding -extension NSGeometryKeyedCoding on objc.NSCoder { - /// decodePointForKey: - NSPoint decodePointForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_m9iphxStret( - $ptr, - _$$ref.pointer, - _sel_decodePointForKey_, - _$$ref$1.pointer, - ) - : $ptr.ref = _objc_msgSend_m9iphx( - _$$ref.pointer, - _sel_decodePointForKey_, - _$$ref$1.pointer, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// decodeRectForKey: - NSRect decodeRectForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1jrvou1Stret( - $ptr, - _$$ref.pointer, - _sel_decodeRectForKey_, - _$$ref$1.pointer, - ) - : $ptr.ref = _objc_msgSend_1jrvou1( - _$$ref.pointer, - _sel_decodeRectForKey_, - _$$ref$1.pointer, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// decodeSizeForKey: - NSSize decodeSizeForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_nlwmd1Stret( - $ptr, - _$$ref.pointer, - _sel_decodeSizeForKey_, - _$$ref$1.pointer, - ) - : $ptr.ref = _objc_msgSend_nlwmd1( - _$$ref.pointer, - _sel_decodeSizeForKey_, - _$$ref$1.pointer, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// encodePoint:forKey: - void encodePoint(NSPoint point, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_spoczw( - _$$ref.pointer, - _sel_encodePoint_forKey_, - point, - _$$ref$1.pointer, - ); - } - - /// encodeRect:forKey: - void encodeRect(NSRect rect, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_1whvugs( - _$$ref.pointer, - _sel_encodeRect_forKey_, - rect, - _$$ref$1.pointer, - ); - } - - /// encodeSize:forKey: - void encodeSize(NSSize size, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_1hnhjy0( - _$$ref.pointer, - _sel_encodeSize_forKey_, - size, - _$$ref$1.pointer, - ); - } -} - -enum NSGrammaticalCase { - NSGrammaticalCaseNotSet(0), - NSGrammaticalCaseNominative(1), - NSGrammaticalCaseAccusative(2), - NSGrammaticalCaseDative(3), - NSGrammaticalCaseGenitive(4), - NSGrammaticalCasePrepositional(5), - NSGrammaticalCaseAblative(6), - NSGrammaticalCaseAdessive(7), - NSGrammaticalCaseAllative(8), - NSGrammaticalCaseElative(9), - NSGrammaticalCaseIllative(10), - NSGrammaticalCaseEssive(11), - NSGrammaticalCaseInessive(12), - NSGrammaticalCaseLocative(13), - NSGrammaticalCaseTranslative(14); - - final int value; - const NSGrammaticalCase(this.value); - - static NSGrammaticalCase fromValue(int value) => switch (value) { - 0 => NSGrammaticalCaseNotSet, - 1 => NSGrammaticalCaseNominative, - 2 => NSGrammaticalCaseAccusative, - 3 => NSGrammaticalCaseDative, - 4 => NSGrammaticalCaseGenitive, - 5 => NSGrammaticalCasePrepositional, - 6 => NSGrammaticalCaseAblative, - 7 => NSGrammaticalCaseAdessive, - 8 => NSGrammaticalCaseAllative, - 9 => NSGrammaticalCaseElative, - 10 => NSGrammaticalCaseIllative, - 11 => NSGrammaticalCaseEssive, - 12 => NSGrammaticalCaseInessive, - 13 => NSGrammaticalCaseLocative, - 14 => NSGrammaticalCaseTranslative, - _ => throw ArgumentError('Unknown value for NSGrammaticalCase: $value'), - }; -} - -enum NSGrammaticalDefiniteness { - NSGrammaticalDefinitenessNotSet(0), - NSGrammaticalDefinitenessIndefinite(1), - NSGrammaticalDefinitenessDefinite(2); - - final int value; - const NSGrammaticalDefiniteness(this.value); - - static NSGrammaticalDefiniteness fromValue(int value) => switch (value) { - 0 => NSGrammaticalDefinitenessNotSet, - 1 => NSGrammaticalDefinitenessIndefinite, - 2 => NSGrammaticalDefinitenessDefinite, - _ => throw ArgumentError( - 'Unknown value for NSGrammaticalDefiniteness: $value', - ), - }; -} - -enum NSGrammaticalDetermination { - NSGrammaticalDeterminationNotSet(0), - NSGrammaticalDeterminationIndependent(1), - NSGrammaticalDeterminationDependent(2); - - final int value; - const NSGrammaticalDetermination(this.value); - - static NSGrammaticalDetermination fromValue(int value) => switch (value) { - 0 => NSGrammaticalDeterminationNotSet, - 1 => NSGrammaticalDeterminationIndependent, - 2 => NSGrammaticalDeterminationDependent, - _ => throw ArgumentError( - 'Unknown value for NSGrammaticalDetermination: $value', - ), - }; -} - -enum NSGrammaticalGender { - NSGrammaticalGenderNotSet(0), - NSGrammaticalGenderFeminine(1), - NSGrammaticalGenderMasculine(2), - NSGrammaticalGenderNeuter(3); - - final int value; - const NSGrammaticalGender(this.value); - - static NSGrammaticalGender fromValue(int value) => switch (value) { - 0 => NSGrammaticalGenderNotSet, - 1 => NSGrammaticalGenderFeminine, - 2 => NSGrammaticalGenderMasculine, - 3 => NSGrammaticalGenderNeuter, - _ => throw ArgumentError('Unknown value for NSGrammaticalGender: $value'), - }; -} - -enum NSGrammaticalNumber { - NSGrammaticalNumberNotSet(0), - NSGrammaticalNumberSingular(1), - NSGrammaticalNumberZero(2), - NSGrammaticalNumberPlural(3), - NSGrammaticalNumberPluralTwo(4), - NSGrammaticalNumberPluralFew(5), - NSGrammaticalNumberPluralMany(6); - - final int value; - const NSGrammaticalNumber(this.value); - - static NSGrammaticalNumber fromValue(int value) => switch (value) { - 0 => NSGrammaticalNumberNotSet, - 1 => NSGrammaticalNumberSingular, - 2 => NSGrammaticalNumberZero, - 3 => NSGrammaticalNumberPlural, - 4 => NSGrammaticalNumberPluralTwo, - 5 => NSGrammaticalNumberPluralFew, - 6 => NSGrammaticalNumberPluralMany, - _ => throw ArgumentError('Unknown value for NSGrammaticalNumber: $value'), - }; -} - -enum NSGrammaticalPartOfSpeech { - NSGrammaticalPartOfSpeechNotSet(0), - NSGrammaticalPartOfSpeechDeterminer(1), - NSGrammaticalPartOfSpeechPronoun(2), - NSGrammaticalPartOfSpeechLetter(3), - NSGrammaticalPartOfSpeechAdverb(4), - NSGrammaticalPartOfSpeechParticle(5), - NSGrammaticalPartOfSpeechAdjective(6), - NSGrammaticalPartOfSpeechAdposition(7), - NSGrammaticalPartOfSpeechVerb(8), - NSGrammaticalPartOfSpeechNoun(9), - NSGrammaticalPartOfSpeechConjunction(10), - NSGrammaticalPartOfSpeechNumeral(11), - NSGrammaticalPartOfSpeechInterjection(12), - NSGrammaticalPartOfSpeechPreposition(13), - NSGrammaticalPartOfSpeechAbbreviation(14); - - final int value; - const NSGrammaticalPartOfSpeech(this.value); - - static NSGrammaticalPartOfSpeech fromValue(int value) => switch (value) { - 0 => NSGrammaticalPartOfSpeechNotSet, - 1 => NSGrammaticalPartOfSpeechDeterminer, - 2 => NSGrammaticalPartOfSpeechPronoun, - 3 => NSGrammaticalPartOfSpeechLetter, - 4 => NSGrammaticalPartOfSpeechAdverb, - 5 => NSGrammaticalPartOfSpeechParticle, - 6 => NSGrammaticalPartOfSpeechAdjective, - 7 => NSGrammaticalPartOfSpeechAdposition, - 8 => NSGrammaticalPartOfSpeechVerb, - 9 => NSGrammaticalPartOfSpeechNoun, - 10 => NSGrammaticalPartOfSpeechConjunction, - 11 => NSGrammaticalPartOfSpeechNumeral, - 12 => NSGrammaticalPartOfSpeechInterjection, - 13 => NSGrammaticalPartOfSpeechPreposition, - 14 => NSGrammaticalPartOfSpeechAbbreviation, - _ => throw ArgumentError( - 'Unknown value for NSGrammaticalPartOfSpeech: $value', - ), - }; -} - -enum NSGrammaticalPerson { - NSGrammaticalPersonNotSet(0), - NSGrammaticalPersonFirst(1), - NSGrammaticalPersonSecond(2), - NSGrammaticalPersonThird(3); - - final int value; - const NSGrammaticalPerson(this.value); - - static NSGrammaticalPerson fromValue(int value) => switch (value) { - 0 => NSGrammaticalPersonNotSet, - 1 => NSGrammaticalPersonFirst, - 2 => NSGrammaticalPersonSecond, - 3 => NSGrammaticalPersonThird, - _ => throw ArgumentError('Unknown value for NSGrammaticalPerson: $value'), - }; -} - -enum NSGrammaticalPronounType { - NSGrammaticalPronounTypeNotSet(0), - NSGrammaticalPronounTypePersonal(1), - NSGrammaticalPronounTypeReflexive(2), - NSGrammaticalPronounTypePossessive(3); - - final int value; - const NSGrammaticalPronounType(this.value); - - static NSGrammaticalPronounType fromValue(int value) => switch (value) { - 0 => NSGrammaticalPronounTypeNotSet, - 1 => NSGrammaticalPronounTypePersonal, - 2 => NSGrammaticalPronounTypeReflexive, - 3 => NSGrammaticalPronounTypePossessive, - _ => throw ArgumentError( - 'Unknown value for NSGrammaticalPronounType: $value', - ), - }; -} - -@Deprecated('Not supported') -const int NSHPUXOperatingSystem = 4; - -enum NSHTTPCookieAcceptPolicy { - NSHTTPCookieAcceptPolicyAlways(0), - NSHTTPCookieAcceptPolicyNever(1), - NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain(2); - - final int value; - const NSHTTPCookieAcceptPolicy(this.value); - - static NSHTTPCookieAcceptPolicy fromValue(int value) => switch (value) { - 0 => NSHTTPCookieAcceptPolicyAlways, - 1 => NSHTTPCookieAcceptPolicyNever, - 2 => NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain, - _ => throw ArgumentError( - 'Unknown value for NSHTTPCookieAcceptPolicy: $value', - ), - }; -} - -typedef NSHTTPCookiePropertyKey = ffi.Pointer; -typedef DartNSHTTPCookiePropertyKey = objc.NSString; - -/// WARNING: NSHTTPCookieStorage is a stub. To generate bindings for this class, include -/// NSHTTPCookieStorage in your config's objc-interfaces list. -/// -/// NSHTTPCookieStorage -extension type NSHTTPCookieStorage._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSHTTPCookieStorage] that points to the same underlying object as [other]. - NSHTTPCookieStorage.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSHTTPCookieStorage', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSHTTPCookieStorage] that wraps the given raw object pointer. - NSHTTPCookieStorage.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSHTTPCookieStorage', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -typedef NSHTTPCookieStringPolicy = ffi.Pointer; -typedef DartNSHTTPCookieStringPolicy = objc.NSString; - -/// NSHTTPURLRequest -extension NSHTTPURLRequest on NSURLRequest { - /// HTTPBody - objc.NSData? get HTTPBody { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.HTTPBody', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPBody); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// HTTPBodyStream - objc.NSInputStream? get HTTPBodyStream { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.HTTPBodyStream', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPBodyStream); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// HTTPMethod - objc.NSString? get HTTPMethod { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.HTTPMethod', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPMethod); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// HTTPShouldHandleCookies - bool get HTTPShouldHandleCookies { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.HTTPShouldHandleCookies', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_HTTPShouldHandleCookies); - } - - /// HTTPShouldUsePipelining - @Deprecated( - 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', - ) - bool get HTTPShouldUsePipelining { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.HTTPShouldUsePipelining', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_HTTPShouldUsePipelining); - } - - /// allHTTPHeaderFields - objc.NSDictionary? get allHTTPHeaderFields { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.allHTTPHeaderFields', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allHTTPHeaderFields); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// valueForHTTPHeaderField: - objc.NSString? valueForHTTPHeaderField(objc.NSString field) { - final _$$ref = object$.ref; - final _$$ref$1 = field.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.valueForHTTPHeaderField:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_valueForHTTPHeaderField_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSHTTPURLResponse is a stub. To generate bindings for this class, include -/// NSHTTPURLResponse in your config's objc-interfaces list. -/// -/// NSHTTPURLResponse -extension type NSHTTPURLResponse._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLResponse { - /// Constructs a [NSHTTPURLResponse] that points to the same underlying object as [other]. - NSHTTPURLResponse.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSHTTPURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSHTTPURLResponse] that wraps the given raw object pointer. - NSHTTPURLResponse.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSHTTPURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -final class NSHashEnumerator extends ffi.Struct { - @NSUInteger() - external int _pi; - - @NSUInteger() - external int _si; - - external ffi.Pointer _bs; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int $pi, - required int $si, - required ffi.Pointer $bs, - }) => $allocator() - ..ref._pi = $pi - ..ref._si = $si - ..ref._bs = $bs; -} - -/// WARNING: NSHashTable is a stub. To generate bindings for this class, include -/// NSHashTable in your config's objc-interfaces list. -/// -/// NSHashTable -extension type NSHashTable._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding, - objc.NSFastEnumeration { - /// Constructs a [NSHashTable] that points to the same underlying object as [other]. - NSHashTable.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSHashTable', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } - - /// Constructs a [NSHashTable] that wraps the given raw object pointer. - NSHashTable.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSHashTable', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } -} - -final class NSHashTableCallBacks extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - hash; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - isEqual; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - release; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - hash, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - isEqual, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - release, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe, - }) => $allocator() - ..ref.hash = hash - ..ref.isEqual = isEqual - ..ref.retain = retain - ..ref.release = release - ..ref.describe = describe; -} - -const int NSHashTableCopyIn = 65536; - -const int NSHashTableObjectPointerPersonality = 512; - -typedef NSHashTableOptions = NSUInteger; - -const int NSHashTableStrongMemory = 0; - -const int NSHashTableWeakMemory = 5; - -const int NSHashTableZeroingWeakMemory = 1; - -/// WARNING: NSHost is a stub. To generate bindings for this class, include -/// NSHost in your config's objc-interfaces list. -/// -/// NSHost -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -extension type NSHost._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSHost] that points to the same underlying object as [other]. - NSHost.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSHost', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSHost] that wraps the given raw object pointer. - NSHost.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSHost', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - } -} - -const int NSISO2022JPStringEncoding = 21; - -sealed class NSISO8601DateFormatOptions { - static const NSISO8601DateFormatWithYear = 1; - static const NSISO8601DateFormatWithMonth = 2; - static const NSISO8601DateFormatWithWeekOfYear = 4; - static const NSISO8601DateFormatWithDay = 16; - static const NSISO8601DateFormatWithTime = 32; - static const NSISO8601DateFormatWithTimeZone = 64; - static const NSISO8601DateFormatWithSpaceBetweenDateAndTime = 128; - static const NSISO8601DateFormatWithDashSeparatorInDate = 256; - static const NSISO8601DateFormatWithColonSeparatorInTime = 512; - static const NSISO8601DateFormatWithColonSeparatorInTimeZone = 1024; - static const NSISO8601DateFormatWithFractionalSeconds = 2048; - static const NSISO8601DateFormatWithFullDate = 275; - static const NSISO8601DateFormatWithFullTime = 1632; - static const NSISO8601DateFormatWithInternetDateTime = 1907; -} - -const int NSISOLatin1StringEncoding = 5; - -const int NSISOLatin2StringEncoding = 9; - -/// WARNING: NSIndexPath is a stub. To generate bindings for this class, include -/// NSIndexPath in your config's objc-interfaces list. -/// -/// NSIndexPath -extension type NSIndexPath._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSIndexPath] that points to the same underlying object as [other]. - NSIndexPath.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSIndexPath] that wraps the given raw object pointer. - NSIndexPath.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSInflectionAvailability -extension NSInflectionAvailability on NSInflectionRule { - /// canInflectLanguage: - static bool canInflectLanguage(objc.NSString language) { - final _$$ref = language.ref; - objc.checkOsVersionInternal( - 'NSInflectionRule.canInflectLanguage:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _class_NSInflectionRule, - _sel_canInflectLanguage_, - _$$ref.pointer, - ); - } - - /// canInflectPreferredLocalization - static bool getCanInflectPreferredLocalization() { - objc.checkOsVersionInternal( - 'NSInflectionRule.canInflectPreferredLocalization', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - return _objc_msgSend_13h8okt( - _class_NSInflectionRule, - _sel_canInflectPreferredLocalization, - ); - } -} - -/// WARNING: NSInflectionRule is a stub. To generate bindings for this class, include -/// NSInflectionRule in your config's objc-interfaces list. -/// -/// NSInflectionRule -extension type NSInflectionRule._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSInflectionRule] that points to the same underlying object as [other]. - NSInflectionRule.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSInflectionRule', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } - - /// Constructs a [NSInflectionRule] that wraps the given raw object pointer. - NSInflectionRule.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSInflectionRule', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } -} - -sealed class NSInlinePresentationIntent { - static const NSInlinePresentationIntentEmphasized = 1; - static const NSInlinePresentationIntentStronglyEmphasized = 2; - static const NSInlinePresentationIntentCode = 4; - static const NSInlinePresentationIntentStrikethrough = 32; - static const NSInlinePresentationIntentSoftBreak = 64; - static const NSInlinePresentationIntentLineBreak = 128; - static const NSInlinePresentationIntentInlineHTML = 256; - static const NSInlinePresentationIntentBlockHTML = 512; -} - -/// NSInputStreamExtensions -extension NSInputStreamExtensions on objc.NSInputStream { - /// initWithFileAtPath: - objc.NSInputStream? initWithFileAtPath(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithFileAtPath_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: false, release: true); - } - - /// inputStreamWithData: - static objc.NSInputStream? inputStreamWithData(objc.NSData data) { - final _$$ref = data.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSInputStream, - _sel_inputStreamWithData_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// inputStreamWithFileAtPath: - static objc.NSInputStream? inputStreamWithFileAtPath(objc.NSString path) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSInputStream, - _sel_inputStreamWithFileAtPath_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// inputStreamWithURL: - static objc.NSInputStream? inputStreamWithURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSInputStream.inputStreamWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSInputStream, - _sel_inputStreamWithURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } -} - -enum NSInsertionPosition { - NSPositionAfter(0), - NSPositionBefore(1), - NSPositionBeginning(2), - NSPositionEnd(3), - NSPositionReplace(4); - - final int value; - const NSInsertionPosition(this.value); - - static NSInsertionPosition fromValue(int value) => switch (value) { - 0 => NSPositionAfter, - 1 => NSPositionBefore, - 2 => NSPositionBeginning, - 3 => NSPositionEnd, - 4 => NSPositionReplace, - _ => throw ArgumentError('Unknown value for NSInsertionPosition: $value'), - }; -} - -typedef NSInteger = ffi.Long; -typedef DartNSInteger = int; - -const int NSInternalScriptError = 8; - -const int NSInternalSpecifierError = 5; - -/// NSInternetPassword -extension NSInternetPassword on NSURLCredential { - /// hasPassword - bool get hasPassword { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.hasPassword', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_hasPassword); - } - - /// password - objc.NSString? get password { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.password', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_password); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// user - objc.NSString? get user { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.user', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_user); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// credentialWithUser:password:persistence: - static NSURLCredential credentialWithUser( - objc.NSString user, { - required objc.NSString password, - required NSURLCredentialPersistence persistence, - }) { - final _$$ref = user.ref; - final _$$ref$1 = password.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.credentialWithUser:password:persistence:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_1xzjeoi( - _class_NSURLCredential, - _sel_credentialWithUser_password_persistence_, - _$$ref.pointer, - _$$ref$1.pointer, - persistence.value, - ); - return NSURLCredential.fromPointer($ret, retain: true, release: true); - } -} - -const int NSInvalidIndexSpecifierError = 4; - -/// NSItemProvider -extension NSItemProvider on objc.NSURL { - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier( - objc.NSString typeIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_1xx6l96( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref$1.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - objc.NSProgress? loadDataWithTypeIdentifier( - objc.NSString typeIdentifier, { - required objc.ObjCBlock - forItemProviderCompletionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - final _$$ref$2 = forItemProviderCompletionHandler.ref; - objc.checkOsVersionInternal( - 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_8ut1ht( - _$$ref.pointer, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSProgress.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - objc.NSArray get writableTypeIdentifiersForItemProvider { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'writableTypeIdentifiersForItemProvider', - ); - } - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier$1( - objc.NSString typeIdentifier, - ) { - final _$$ref = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_1xx6l96( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSURL? objectWithItemProviderData( - objc.NSData data, { - required objc.NSString typeIdentifier, - }) { - final _$$ref = data.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1rz4muk( - _class_NSURL, - _sel_objectWithItemProviderData_typeIdentifier_error_, - _$$ref.pointer, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// readableTypeIdentifiersForItemProvider - static objc.NSArray getReadableTypeIdentifiersForItemProvider() { - objc.checkOsVersionInternal( - 'NSURL.readableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSURL, - _sel_readableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { - objc.checkOsVersionInternal( - 'NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSURL, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSItemProvider -extension NSItemProvider$1 on objc.NSString { - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier( - objc.NSString typeIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSString', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_1xx6l96( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref$1.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - objc.NSProgress? loadDataWithTypeIdentifier( - objc.NSString typeIdentifier, { - required objc.ObjCBlock - forItemProviderCompletionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - final _$$ref$2 = forItemProviderCompletionHandler.ref; - objc.checkOsVersionInternal( - 'NSString.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_8ut1ht( - _$$ref.pointer, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSProgress.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - objc.NSArray get writableTypeIdentifiersForItemProvider { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSString', - 'writableTypeIdentifiersForItemProvider', - ); - } - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier$1( - objc.NSString typeIdentifier, - ) { - final _$$ref = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _class_NSString, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSString', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_1xx6l96( - _class_NSString, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSString? objectWithItemProviderData( - objc.NSData data, { - required objc.NSString typeIdentifier, - }) { - final _$$ref = data.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSString.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1rz4muk( - _class_NSString, - _sel_objectWithItemProviderData_typeIdentifier_error_, - _$$ref.pointer, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// readableTypeIdentifiersForItemProvider - static objc.NSArray getReadableTypeIdentifiersForItemProvider() { - objc.checkOsVersionInternal( - 'NSString.readableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSString, - _sel_readableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { - objc.checkOsVersionInternal( - 'NSString.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSString, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -typedef NSItemProviderCompletionHandler = ffi.Pointer; -typedef DartNSItemProviderCompletionHandler = - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >; - -enum NSItemProviderErrorCode { - NSItemProviderUnknownError(-1), - NSItemProviderItemUnavailableError(-1000), - NSItemProviderUnexpectedValueClassError(-1100), - NSItemProviderUnavailableCoercionError(-1200); - - final int value; - const NSItemProviderErrorCode(this.value); - - static NSItemProviderErrorCode fromValue(int value) => switch (value) { - -1 => NSItemProviderUnknownError, - -1000 => NSItemProviderItemUnavailableError, - -1100 => NSItemProviderUnexpectedValueClassError, - -1200 => NSItemProviderUnavailableCoercionError, - _ => throw ArgumentError( - 'Unknown value for NSItemProviderErrorCode: $value', - ), - }; -} - -typedef NSItemProviderLoadHandler = ffi.Pointer; -typedef DartNSItemProviderLoadHandler = - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >; - -sealed class NSJSONReadingOptions { - static const NSJSONReadingMutableContainers = 1; - static const NSJSONReadingMutableLeaves = 2; - static const NSJSONReadingFragmentsAllowed = 4; - static const NSJSONReadingJSON5Allowed = 8; - static const NSJSONReadingTopLevelDictionaryAssumed = 16; - static const NSJSONReadingAllowFragments = 4; -} - -sealed class NSJSONWritingOptions { - static const NSJSONWritingPrettyPrinted = 1; - static const NSJSONWritingSortedKeys = 2; - static const NSJSONWritingFragmentsAllowed = 4; - static const NSJSONWritingWithoutEscapingSlashes = 8; -} - -const int NSJapaneseEUCStringEncoding = 3; - -const int NSKeySpecifierEvaluationScriptError = 2; - -typedef NSKeyValueChangeKey = ffi.Pointer; -typedef DartNSKeyValueChangeKey = objc.NSString; - -/// NSKeyValueCoding -extension NSKeyValueCoding on objc.NSArray { - /// setValue:forKey: - void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_setValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// valueForKey: - objc.ObjCObject valueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_valueForKey_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSKeyValueCoding -extension NSKeyValueCoding$1 on objc.NSDictionary { - /// valueForKey: - objc.ObjCObject? valueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_valueForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSKeyValueCoding -extension NSKeyValueCoding$2 on objc.NSSet { - /// setValue:forKey: - void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_setValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// valueForKey: - objc.ObjCObject valueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_valueForKey_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSKeyValueCoding -extension NSKeyValueCoding$3 on objc.NSObject { - /// dictionaryWithValuesForKeys: - objc.NSDictionary dictionaryWithValuesForKeys(objc.NSArray keys) { - final _$$ref = object$.ref; - final _$$ref$1 = keys.ref; - objc.checkOsVersionInternal( - 'NSObject.dictionaryWithValuesForKeys:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_dictionaryWithValuesForKeys_, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// mutableArrayValueForKey: - objc.NSMutableArray mutableArrayValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableArrayValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_mutableArrayValueForKey_, - _$$ref$1.pointer, - ); - return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); - } - - /// mutableArrayValueForKeyPath: - objc.NSMutableArray mutableArrayValueForKeyPath(objc.NSString keyPath) { - final _$$ref = object$.ref; - final _$$ref$1 = keyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableArrayValueForKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_mutableArrayValueForKeyPath_, - _$$ref$1.pointer, - ); - return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); - } - - /// mutableOrderedSetValueForKey: - objc.NSMutableOrderedSet mutableOrderedSetValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableOrderedSetValueForKey:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_mutableOrderedSetValueForKey_, - _$$ref$1.pointer, - ); - return objc.NSMutableOrderedSet.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// mutableOrderedSetValueForKeyPath: - objc.NSMutableOrderedSet mutableOrderedSetValueForKeyPath( - objc.NSString keyPath, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = keyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableOrderedSetValueForKeyPath:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_mutableOrderedSetValueForKeyPath_, - _$$ref$1.pointer, - ); - return objc.NSMutableOrderedSet.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// mutableSetValueForKey: - objc.NSMutableSet mutableSetValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableSetValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_mutableSetValueForKey_, - _$$ref$1.pointer, - ); - return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); - } - - /// mutableSetValueForKeyPath: - objc.NSMutableSet mutableSetValueForKeyPath(objc.NSString keyPath) { - final _$$ref = object$.ref; - final _$$ref$1 = keyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableSetValueForKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_mutableSetValueForKeyPath_, - _$$ref$1.pointer, - ); - return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); - } - - /// setNilValueForKey: - void setNilValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.setNilValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setNilValueForKey_, - _$$ref$1.pointer, - ); - } - - /// setValue:forKey: - void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.setValue:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_setValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// setValue:forKeyPath: - void setValue$1(objc.ObjCObject? value, {required objc.NSString forKeyPath}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.setValue:forKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_setValue_forKeyPath_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// setValue:forUndefinedKey: - void setValue$2( - objc.ObjCObject? value, { - required objc.NSString forUndefinedKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forUndefinedKey.ref; - objc.checkOsVersionInternal( - 'NSObject.setValue:forUndefinedKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_setValue_forUndefinedKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// setValuesForKeysWithDictionary: - void setValuesForKeysWithDictionary(objc.NSDictionary keyedValues) { - final _$$ref = object$.ref; - final _$$ref$1 = keyedValues.ref; - objc.checkOsVersionInternal( - 'NSObject.setValuesForKeysWithDictionary:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setValuesForKeysWithDictionary_, - _$$ref$1.pointer, - ); - } - - /// validateValue:forKey:error: - bool validateValue( - ffi.Pointer> ioValue, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.validateValue:forKey:error:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1fh46zu( - _$$ref.pointer, - _sel_validateValue_forKey_error_, - ioValue, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// validateValue:forKeyPath:error: - bool validateValue$1( - ffi.Pointer> ioValue, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.validateValue:forKeyPath:error:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1fh46zu( - _$$ref.pointer, - _sel_validateValue_forKeyPath_error_, - ioValue, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// valueForKey: - objc.ObjCObject? valueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.valueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_valueForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// valueForKeyPath: - objc.ObjCObject? valueForKeyPath(objc.NSString keyPath) { - final _$$ref = object$.ref; - final _$$ref$1 = keyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.valueForKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_valueForKeyPath_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// valueForUndefinedKey: - objc.ObjCObject? valueForUndefinedKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.valueForUndefinedKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_valueForUndefinedKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// accessInstanceVariablesDirectly - static bool getAccessInstanceVariablesDirectly() { - objc.checkOsVersionInternal( - 'NSObject.accessInstanceVariablesDirectly', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_13h8okt( - _class_NSObject, - _sel_accessInstanceVariablesDirectly, - ); - } -} - -/// NSKeyValueCoding -extension NSKeyValueCoding$4 on objc.NSOrderedSet { - /// setValue:forKey: - void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.setValue:forKey:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_setValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// valueForKey: - objc.ObjCObject valueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.valueForKey:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_valueForKey_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSKeyValueCoding -extension NSKeyValueCoding$5 on objc.NSMutableDictionary { - /// setValue:forKey: - void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_setValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } -} - -/// NSKeyValueObserverNotification -extension NSKeyValueObserverNotification on objc.NSObject { - /// didChange:valuesAtIndexes:forKey: - void didChange( - objc.NSKeyValueChange changeKind, { - required objc.NSIndexSet valuesAtIndexes, - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = valuesAtIndexes.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.didChange:valuesAtIndexes:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_17kc8kc( - _$$ref.pointer, - _sel_didChange_valuesAtIndexes_forKey_, - changeKind.value, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// didChangeValueForKey: - void didChangeValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.didChangeValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_didChangeValueForKey_, - _$$ref$1.pointer, - ); - } - - /// didChangeValueForKey:withSetMutation:usingObjects: - void didChangeValueForKey$1( - objc.NSString key, { - required objc.NSKeyValueSetMutationKind withSetMutation, - required objc.NSSet usingObjects, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final _$$ref$2 = usingObjects.ref; - objc.checkOsVersionInternal( - 'NSObject.didChangeValueForKey:withSetMutation:usingObjects:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1lg1b3i( - _$$ref.pointer, - _sel_didChangeValueForKey_withSetMutation_usingObjects_, - _$$ref$1.pointer, - withSetMutation.value, - _$$ref$2.pointer, - ); - } - - /// willChange:valuesAtIndexes:forKey: - void willChange( - objc.NSKeyValueChange changeKind, { - required objc.NSIndexSet valuesAtIndexes, - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = valuesAtIndexes.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.willChange:valuesAtIndexes:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_17kc8kc( - _$$ref.pointer, - _sel_willChange_valuesAtIndexes_forKey_, - changeKind.value, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// willChangeValueForKey: - void willChangeValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.willChangeValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_willChangeValueForKey_, - _$$ref$1.pointer, - ); - } - - /// willChangeValueForKey:withSetMutation:usingObjects: - void willChangeValueForKey$1( - objc.NSString key, { - required objc.NSKeyValueSetMutationKind withSetMutation, - required objc.NSSet usingObjects, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final _$$ref$2 = usingObjects.ref; - objc.checkOsVersionInternal( - 'NSObject.willChangeValueForKey:withSetMutation:usingObjects:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1lg1b3i( - _$$ref.pointer, - _sel_willChangeValueForKey_withSetMutation_usingObjects_, - _$$ref$1.pointer, - withSetMutation.value, - _$$ref$2.pointer, - ); - } -} - -/// NSKeyValueObserverRegistration -extension NSKeyValueObserverRegistration on objc.NSArray { - /// addObserver:forKeyPath:options:context: - void addObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required DartNSUInteger options, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_1jpqrtr( - _$$ref.pointer, - _sel_addObserver_forKeyPath_options_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - options, - context, - ); - } - - /// addObserver:toObjectsAtIndexes:forKeyPath:options:context: - void addObserver$1( - objc.NSObject observer, { - required objc.NSIndexSet toObjectsAtIndexes, - required objc.NSString forKeyPath, - required DartNSUInteger options, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = toObjectsAtIndexes.ref; - final _$$ref$3 = forKeyPath.ref; - _objc_msgSend_nombv2( - _$$ref.pointer, - _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - options, - context, - ); - } - - /// removeObserver:forKeyPath: - void removeObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeObserver:forKeyPath:context: - void removeObserver$1( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSArray.removeObserver:forKeyPath:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1u0udch( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - context, - ); - } - - /// removeObserver:fromObjectsAtIndexes:forKeyPath: - void removeObserver$2( - objc.NSObject observer, { - required objc.NSIndexSet fromObjectsAtIndexes, - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = fromObjectsAtIndexes.ref; - final _$$ref$3 = forKeyPath.ref; - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// removeObserver:fromObjectsAtIndexes:forKeyPath:context: - void removeObserver$3( - objc.NSObject observer, { - required objc.NSIndexSet fromObjectsAtIndexes, - required objc.NSString forKeyPath, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = fromObjectsAtIndexes.ref; - final _$$ref$3 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSArray.removeObserver:fromObjectsAtIndexes:forKeyPath:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1hvjsy6( - _$$ref.pointer, - _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - context, - ); - } -} - -/// NSKeyValueObserverRegistration -extension NSKeyValueObserverRegistration$1 on objc.NSSet { - /// addObserver:forKeyPath:options:context: - void addObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required DartNSUInteger options, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_1jpqrtr( - _$$ref.pointer, - _sel_addObserver_forKeyPath_options_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - options, - context, - ); - } - - /// removeObserver:forKeyPath: - void removeObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeObserver:forKeyPath:context: - void removeObserver$1( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSSet.removeObserver:forKeyPath:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1u0udch( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - context, - ); - } -} - -/// NSKeyValueObserverRegistration -extension NSKeyValueObserverRegistration$2 on objc.NSOrderedSet { - /// addObserver:forKeyPath:options:context: - void addObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required DartNSUInteger options, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.addObserver:forKeyPath:options:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1jpqrtr( - _$$ref.pointer, - _sel_addObserver_forKeyPath_options_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - options, - context, - ); - } - - /// removeObserver:forKeyPath: - void removeObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.removeObserver:forKeyPath:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeObserver:forKeyPath:context: - void removeObserver$1( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.removeObserver:forKeyPath:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1u0udch( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - context, - ); - } -} - -/// NSKeyValueObserverRegistration -extension NSKeyValueObserverRegistration$3 on objc.NSObject { - /// addObserver:forKeyPath:options:context: - void addObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required DartNSUInteger options, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.addObserver:forKeyPath:options:context:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1jpqrtr( - _$$ref.pointer, - _sel_addObserver_forKeyPath_options_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - options, - context, - ); - } - - /// removeObserver:forKeyPath: - void removeObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.removeObserver:forKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeObserver:forKeyPath:context: - void removeObserver$1( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.removeObserver:forKeyPath:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1u0udch( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - context, - ); - } -} - -/// NSKeyValueObserving -extension NSKeyValueObserving on objc.NSObject { - /// observeValueForKeyPath:ofObject:change:context: - void observeValueForKeyPath( - objc.NSString? keyPath, { - objc.ObjCObject? ofObject, - objc.NSDictionary? change, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = keyPath?.ref; - final _$$ref$2 = ofObject?.ref; - final _$$ref$3 = change?.ref; - objc.checkOsVersionInternal( - 'NSObject.observeValueForKeyPath:ofObject:change:context:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1hvjsy6( - _$$ref.pointer, - _sel_observeValueForKeyPath_ofObject_change_context_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - context, - ); - } -} - -/// NSKeyValueObservingCustomization -extension NSKeyValueObservingCustomization on objc.NSObject { - /// observationInfo - ffi.Pointer get observationInfo { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.observationInfo', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_observationInfo); - } - - /// setObservationInfo: - set observationInfo(ffi.Pointer value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.setObservationInfo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_15is1z3(_$$ref.pointer, _sel_setObservationInfo_, value); - } - - /// automaticallyNotifiesObserversForKey: - static bool automaticallyNotifiesObserversForKey(objc.NSString key) { - final _$$ref = key.ref; - objc.checkOsVersionInternal( - 'NSObject.automaticallyNotifiesObserversForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _class_NSObject, - _sel_automaticallyNotifiesObserversForKey_, - _$$ref.pointer, - ); - } - - /// keyPathsForValuesAffectingValueForKey: - static objc.NSSet keyPathsForValuesAffectingValueForKey(objc.NSString key) { - final _$$ref = key.ref; - objc.checkOsVersionInternal( - 'NSObject.keyPathsForValuesAffectingValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSObject, - _sel_keyPathsForValuesAffectingValueForKey_, - _$$ref.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } -} - -typedef NSKeyValueOperator = ffi.Pointer; -typedef DartNSKeyValueOperator = objc.NSString; - -/// NSKeyValueSharedObserverRegistration -extension NSKeyValueSharedObserverRegistration on objc.NSObject { - /// setSharedObservers: - void setSharedObservers(NSKeyValueSharedObserversSnapshot? sharedObservers) { - final _$$ref = object$.ref; - final _$$ref$1 = sharedObservers?.ref; - objc.checkOsVersionInternal( - 'NSObject.setSharedObservers:', - iOS: (false, (18, 0, 0)), - macOS: (false, (15, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setSharedObservers_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// WARNING: NSKeyValueSharedObserversSnapshot is a stub. To generate bindings for this class, include -/// NSKeyValueSharedObserversSnapshot in your config's objc-interfaces list. -/// -/// NSKeyValueSharedObserversSnapshot -extension type NSKeyValueSharedObserversSnapshot._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSKeyValueSharedObserversSnapshot] that points to the same underlying object as [other]. - NSKeyValueSharedObserversSnapshot.as(objc.ObjCObject other) - : object$ = other { - objc.checkOsVersionInternal( - 'NSKeyValueSharedObserversSnapshot', - iOS: (false, (18, 0, 0)), - macOS: (false, (15, 0, 0)), - ); - } - - /// Constructs a [NSKeyValueSharedObserversSnapshot] that wraps the given raw object pointer. - NSKeyValueSharedObserversSnapshot.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSKeyValueSharedObserversSnapshot', - iOS: (false, (18, 0, 0)), - macOS: (false, (15, 0, 0)), - ); - } -} - -/// NSKeyValueSorting -extension NSKeyValueSorting on objc.NSMutableOrderedSet { - /// sortUsingDescriptors: - void sortUsingDescriptors(objc.NSArray sortDescriptors) { - final _$$ref = object$.ref; - final _$$ref$1 = sortDescriptors.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.sortUsingDescriptors:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_sortUsingDescriptors_, - _$$ref$1.pointer, - ); - } -} - -/// NSKeyValueSorting -extension NSKeyValueSorting$1 on objc.NSOrderedSet { - /// sortedArrayUsingDescriptors: - objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { - final _$$ref = object$.ref; - final _$$ref$1 = sortDescriptors.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.sortedArrayUsingDescriptors:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_sortedArrayUsingDescriptors_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -const int NSKeyValueValidationError = 1024; - -/// WARNING: NSKeyedArchiver is a stub. To generate bindings for this class, include -/// NSKeyedArchiver in your config's objc-interfaces list. -/// -/// NSKeyedArchiver -extension type NSKeyedArchiver._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSCoder { - /// Constructs a [NSKeyedArchiver] that points to the same underlying object as [other]. - NSKeyedArchiver.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSKeyedArchiver] that wraps the given raw object pointer. - NSKeyedArchiver.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSKeyedArchiverDelegate -extension type NSKeyedArchiverDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSKeyedArchiverDelegate] that points to the same underlying object as [other]. - NSKeyedArchiverDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSKeyedArchiverDelegate] that wraps the given raw object pointer. - NSKeyedArchiverDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSKeyedArchiverDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSKeyedArchiverDelegate, - ); - } -} - -extension NSKeyedArchiverDelegate$Methods on NSKeyedArchiverDelegate { - /// archiver:didEncodeObject: - void archiver(NSKeyedArchiver archiver, {objc.ObjCObject? didEncodeObject}) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - final _$$ref$2 = didEncodeObject?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_archiver_didEncodeObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedArchiverDelegate', - 'archiver:didEncodeObject:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_archiver_didEncodeObject_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// archiver:willEncodeObject: - objc.ObjCObject? archiver$1( - NSKeyedArchiver archiver, { - required objc.ObjCObject willEncodeObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - final _$$ref$2 = willEncodeObject.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_archiver_willEncodeObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedArchiverDelegate', - 'archiver:willEncodeObject:', - ); - } - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_archiver_willEncodeObject_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// archiver:willReplaceObject:withObject: - void archiver$2( - NSKeyedArchiver archiver, { - objc.ObjCObject? willReplaceObject, - objc.ObjCObject? withObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - final _$$ref$2 = willReplaceObject?.ref; - final _$$ref$3 = withObject?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_archiver_willReplaceObject_withObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedArchiverDelegate', - 'archiver:willReplaceObject:withObject:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_archiver_willReplaceObject_withObject_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// archiverDidFinish: - void archiverDidFinish(NSKeyedArchiver archiver) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_archiverDidFinish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedArchiverDelegate', - 'archiverDidFinish:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_archiverDidFinish_, - _$$ref$1.pointer, - ); - } - - /// archiverWillFinish: - void archiverWillFinish(NSKeyedArchiver archiver) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_archiverWillFinish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedArchiverDelegate', - 'archiverWillFinish:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_archiverWillFinish_, - _$$ref$1.pointer, - ); - } -} - -interface class NSKeyedArchiverDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSKeyedArchiverDelegate.cast()); - - /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedArchiverDelegate implement({ - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedArchiverDelegate', - ); - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_.implement( - builder, - archiver_didEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implement(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implement( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implement( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedArchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_.implement( - builder, - archiver_didEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implement(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implement( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implement( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedArchiverDelegate implementAsListener({ - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedArchiverDelegate', - ); - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ - .implementAsListener(builder, archiver_didEncodeObject_); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implementAsListener(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsListener( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsListener( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedArchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ - .implementAsListener(builder, archiver_didEncodeObject_); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implementAsListener(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsListener( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsListener( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedArchiverDelegate implementAsBlocking({ - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedArchiverDelegate', - ); - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ - .implementAsBlocking(builder, archiver_didEncodeObject_); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implementAsBlocking(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsBlocking( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsBlocking( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedArchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ - .implementAsBlocking(builder, archiver_didEncodeObject_); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implementAsBlocking(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsBlocking( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsBlocking( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// archiver:didEncodeObject: - static final archiver_didEncodeObject_ = - objc.ObjCProtocolListenableMethod< - void Function(NSKeyedArchiver, objc.ObjCObject?) - >( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_didEncodeObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_didEncodeObject_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.listener( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.blocking( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - ) => func(arg1, arg2), - ), - ); - - /// archiver:willEncodeObject: - static final archiver_willEncodeObject_ = - objc.ObjCProtocolMethod< - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject) - >( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_willEncodeObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_osi9m3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_willEncodeObject_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject) func) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject arg2, - ) => func(arg1, arg2), - ), - ); - - /// archiver:willReplaceObject:withObject: - static final archiver_willReplaceObject_withObject_ = - objc.ObjCProtocolListenableMethod< - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) - >( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_willReplaceObject_withObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_willReplaceObject_withObject_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - objc.ObjCObject? arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.listener( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - objc.ObjCObject? arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.blocking( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - objc.ObjCObject? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// archiverDidFinish: - static final archiverDidFinish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSKeyedArchiverDelegate, - _sel_archiverDidFinish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedArchiverDelegate, - _sel_archiverDidFinish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.fromFunction( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.listener( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.blocking( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - ); - - /// archiverWillFinish: - static final archiverWillFinish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSKeyedArchiverDelegate, - _sel_archiverWillFinish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedArchiverDelegate, - _sel_archiverWillFinish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.fromFunction( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.listener( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.blocking( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - ); -} - -/// NSKeyedArchiverObjectSubstitution -extension NSKeyedArchiverObjectSubstitution on objc.NSObject { - /// classForKeyedArchiver - objc.ObjCObject? get classForKeyedArchiver { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classForKeyedArchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_classForKeyedArchiver, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// replacementObjectForKeyedArchiver: - objc.ObjCObject? replacementObjectForKeyedArchiver(NSKeyedArchiver archiver) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - objc.checkOsVersionInternal( - 'NSObject.replacementObjectForKeyedArchiver:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_replacementObjectForKeyedArchiver_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// classFallbacksForKeyedArchiver - static objc.NSArray classFallbacksForKeyedArchiver() { - objc.checkOsVersionInternal( - 'NSObject.classFallbacksForKeyedArchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSObject, - _sel_classFallbacksForKeyedArchiver, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSKeyedUnarchiver is a stub. To generate bindings for this class, include -/// NSKeyedUnarchiver in your config's objc-interfaces list. -/// -/// NSKeyedUnarchiver -extension type NSKeyedUnarchiver._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSCoder { - /// Constructs a [NSKeyedUnarchiver] that points to the same underlying object as [other]. - NSKeyedUnarchiver.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSKeyedUnarchiver] that wraps the given raw object pointer. - NSKeyedUnarchiver.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSKeyedUnarchiverDelegate -extension type NSKeyedUnarchiverDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSKeyedUnarchiverDelegate] that points to the same underlying object as [other]. - NSKeyedUnarchiverDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSKeyedUnarchiverDelegate] that wraps the given raw object pointer. - NSKeyedUnarchiverDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSKeyedUnarchiverDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSKeyedUnarchiverDelegate, - ); - } -} - -extension NSKeyedUnarchiverDelegate$Methods on NSKeyedUnarchiverDelegate { - /// unarchiver:cannotDecodeObjectOfClassName:originalClasses: - objc.ObjCObject? unarchiver( - NSKeyedUnarchiver unarchiver, { - required objc.NSString cannotDecodeObjectOfClassName, - required objc.NSArray originalClasses, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = unarchiver.ref; - final _$$ref$2 = cannotDecodeObjectOfClassName.ref; - final _$$ref$3 = originalClasses.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedUnarchiverDelegate', - 'unarchiver:cannotDecodeObjectOfClassName:originalClasses:', - ); - } - final $ret = _objc_msgSend_1mevadz( - _$$ref.pointer, - _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// unarchiver:didDecodeObject: - objc.ObjCObject? unarchiver$1( - NSKeyedUnarchiver unarchiver, { - objc.ObjCObject? didDecodeObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = unarchiver.ref; - final _$$ref$2 = didDecodeObject?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_unarchiver_didDecodeObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedUnarchiverDelegate', - 'unarchiver:didDecodeObject:', - ); - } - final $ret = _objc_msgSend_d7eo5a( - _$$ref.pointer, - _sel_unarchiver_didDecodeObject_, - _$$ref$1.pointer, - _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// unarchiver:willReplaceObject:withObject: - void unarchiver$2( - NSKeyedUnarchiver unarchiver, { - required objc.ObjCObject willReplaceObject, - required objc.ObjCObject withObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = unarchiver.ref; - final _$$ref$2 = willReplaceObject.ref; - final _$$ref$3 = withObject.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_unarchiver_willReplaceObject_withObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedUnarchiverDelegate', - 'unarchiver:willReplaceObject:withObject:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_unarchiver_willReplaceObject_withObject_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// unarchiverDidFinish: - void unarchiverDidFinish(NSKeyedUnarchiver unarchiver) { - final _$$ref = object$.ref; - final _$$ref$1 = unarchiver.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_unarchiverDidFinish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedUnarchiverDelegate', - 'unarchiverDidFinish:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_unarchiverDidFinish_, - _$$ref$1.pointer, - ); - } - - /// unarchiverWillFinish: - void unarchiverWillFinish(NSKeyedUnarchiver unarchiver) { - final _$$ref = object$.ref; - final _$$ref$1 = unarchiver.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_unarchiverWillFinish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedUnarchiverDelegate', - 'unarchiverWillFinish:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_unarchiverWillFinish_, - _$$ref$1.pointer, - ); - } -} - -interface class NSKeyedUnarchiverDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSKeyedUnarchiverDelegate.cast()); - - /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedUnarchiverDelegate implement({ - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedUnarchiverDelegate', - ); - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implement(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implement( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implement( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedUnarchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implement(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implement( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implement( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedUnarchiverDelegate implementAsListener({ - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedUnarchiverDelegate', - ); - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implementAsListener(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsListener( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsListener( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedUnarchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implementAsListener(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsListener( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsListener( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedUnarchiverDelegate implementAsBlocking({ - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedUnarchiverDelegate', - ); - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implementAsBlocking(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsBlocking( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsBlocking( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedUnarchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implementAsBlocking(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsBlocking( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsBlocking( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// unarchiver:cannotDecodeObjectOfClassName:originalClasses: - static final unarchiver_cannotDecodeObjectOfClassName_originalClasses_ = - objc.ObjCProtocolMethod< - objc.ObjCObject? Function( - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - >( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ekc08i) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.ObjCObject? Function( - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - func, - ) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray.fromFunction( - ( - ffi.Pointer _, - NSKeyedUnarchiver arg1, - objc.NSString arg2, - objc.NSArray arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// unarchiver:didDecodeObject: - static final unarchiver_didDecodeObject_ = - objc.ObjCProtocolMethod< - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?) - >( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_didDecodeObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_mrzooz) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_didDecodeObject_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?) func) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSKeyedUnarchiver arg1, - objc.ObjCObject? arg2, - ) => func(arg1, arg2), - ), - ); - - /// unarchiver:willReplaceObject:withObject: - static final unarchiver_willReplaceObject_withObject_ = - objc.ObjCProtocolListenableMethod< - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) - >( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_willReplaceObject_withObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_willReplaceObject_withObject_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSKeyedUnarchiver arg1, - objc.ObjCObject arg2, - objc.ObjCObject arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.listener( - ( - ffi.Pointer _, - NSKeyedUnarchiver arg1, - objc.ObjCObject arg2, - objc.ObjCObject arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.blocking( - ( - ffi.Pointer _, - NSKeyedUnarchiver arg1, - objc.ObjCObject arg2, - objc.ObjCObject arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// unarchiverDidFinish: - static final unarchiverDidFinish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiverDidFinish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiverDidFinish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.fromFunction( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.listener( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.blocking( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - ); - - /// unarchiverWillFinish: - static final unarchiverWillFinish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiverWillFinish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiverWillFinish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.fromFunction( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.listener( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.blocking( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - ); -} - -/// NSKeyedUnarchiverObjectSubstitution -extension NSKeyedUnarchiverObjectSubstitution on objc.NSObject { - /// classForKeyedUnarchiver - static objc.ObjCObject classForKeyedUnarchiver() { - objc.checkOsVersionInternal( - 'NSObject.classForKeyedUnarchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSObject, - _sel_classForKeyedUnarchiver, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -enum NSLengthFormatterUnit { - NSLengthFormatterUnitMillimeter(8), - NSLengthFormatterUnitCentimeter(9), - NSLengthFormatterUnitMeter(11), - NSLengthFormatterUnitKilometer(14), - NSLengthFormatterUnitInch(1281), - NSLengthFormatterUnitFoot(1282), - NSLengthFormatterUnitYard(1283), - NSLengthFormatterUnitMile(1284); - - final int value; - const NSLengthFormatterUnit(this.value); - - static NSLengthFormatterUnit fromValue(int value) => switch (value) { - 8 => NSLengthFormatterUnitMillimeter, - 9 => NSLengthFormatterUnitCentimeter, - 11 => NSLengthFormatterUnitMeter, - 14 => NSLengthFormatterUnitKilometer, - 1281 => NSLengthFormatterUnitInch, - 1282 => NSLengthFormatterUnitFoot, - 1283 => NSLengthFormatterUnitYard, - 1284 => NSLengthFormatterUnitMile, - _ => throw ArgumentError('Unknown value for NSLengthFormatterUnit: $value'), - }; -} - -/// NSLinguisticAnalysis -extension NSLinguisticAnalysis on objc.NSString { - /// enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock: - @Deprecated( - 'All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API', - ) - void enumerateLinguisticTagsInRange( - NSRange range, { - required DartNSLinguisticTagScheme scheme, - required DartNSUInteger options, - NSOrthography? orthography, - required objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = scheme.ref; - final _$$ref$2 = orthography?.ref; - final _$$ref$3 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSString.enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1i2s9oh( - _$$ref.pointer, - _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_, - range, - _$$ref$1.pointer, - options, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3.pointer, - ); - } - - /// linguisticTagsInRange:scheme:options:orthography:tokenRanges: - @Deprecated( - 'All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API', - ) - objc.NSArray linguisticTagsInRange( - NSRange range, { - required DartNSLinguisticTagScheme scheme, - required DartNSUInteger options, - NSOrthography? orthography, - required ffi.Pointer> tokenRanges, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = scheme.ref; - final _$$ref$2 = orthography?.ref; - objc.checkOsVersionInternal( - 'NSString.linguisticTagsInRange:scheme:options:orthography:tokenRanges:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_113h1yz( - _$$ref.pointer, - _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_, - range, - _$$ref$1.pointer, - options, - _$$ref$2?.pointer ?? ffi.nullptr, - tokenRanges, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -typedef NSLinguisticTag = ffi.Pointer; -typedef DartNSLinguisticTag = objc.NSString; -typedef NSLinguisticTagScheme = ffi.Pointer; -typedef DartNSLinguisticTagScheme = objc.NSString; - -enum NSLinguisticTaggerUnit { - NSLinguisticTaggerUnitWord(0), - NSLinguisticTaggerUnitSentence(1), - NSLinguisticTaggerUnitParagraph(2), - NSLinguisticTaggerUnitDocument(3); - - final int value; - const NSLinguisticTaggerUnit(this.value); - - static NSLinguisticTaggerUnit fromValue(int value) => switch (value) { - 0 => NSLinguisticTaggerUnitWord, - 1 => NSLinguisticTaggerUnitSentence, - 2 => NSLinguisticTaggerUnitParagraph, - 3 => NSLinguisticTaggerUnitDocument, - _ => throw ArgumentError( - 'Unknown value for NSLinguisticTaggerUnit: $value', - ), - }; -} - -/// NSLocaleCreation -extension NSLocaleCreation on objc.NSLocale { - /// autoupdatingCurrentLocale - static objc.NSLocale getAutoupdatingCurrentLocale() { - objc.checkOsVersionInternal( - 'NSLocale.autoupdatingCurrentLocale', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSLocale, - _sel_autoupdatingCurrentLocale, - ); - return objc.NSLocale.fromPointer($ret, retain: true, release: true); - } - - /// currentLocale - static objc.NSLocale getCurrentLocale() { - final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_currentLocale); - return objc.NSLocale.fromPointer($ret, retain: true, release: true); - } - - /// localeWithLocaleIdentifier: - static objc.NSLocale localeWithLocaleIdentifier(objc.NSString ident) { - final _$$ref = ident.ref; - objc.checkOsVersionInternal( - 'NSLocale.localeWithLocaleIdentifier:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSLocale, - _sel_localeWithLocaleIdentifier_, - _$$ref.pointer, - ); - return objc.NSLocale.fromPointer($ret, retain: true, release: true); - } - - /// systemLocale - static objc.NSLocale getSystemLocale() { - final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_systemLocale); - return objc.NSLocale.fromPointer($ret, retain: true, release: true); - } -} - -/// NSLocaleGeneralInfo -extension NSLocaleGeneralInfo on objc.NSLocale { - /// ISOCountryCodes - static objc.NSArray getISOCountryCodes() { - final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_ISOCountryCodes); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// ISOCurrencyCodes - static objc.NSArray getISOCurrencyCodes() { - final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_ISOCurrencyCodes); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// ISOLanguageCodes - static objc.NSArray getISOLanguageCodes() { - final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_ISOLanguageCodes); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// availableLocaleIdentifiers - static objc.NSArray getAvailableLocaleIdentifiers() { - final $ret = _objc_msgSend_zldla2( - _class_NSLocale, - _sel_availableLocaleIdentifiers, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// canonicalLanguageIdentifierFromString: - static objc.NSString canonicalLanguageIdentifierFromString( - objc.NSString string, - ) { - final _$$ref = string.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSLocale, - _sel_canonicalLanguageIdentifierFromString_, - _$$ref.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// canonicalLocaleIdentifierFromString: - static objc.NSString canonicalLocaleIdentifierFromString( - objc.NSString string, - ) { - final _$$ref = string.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSLocale, - _sel_canonicalLocaleIdentifierFromString_, - _$$ref.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// characterDirectionForLanguage: - static objc.NSLocaleLanguageDirection characterDirectionForLanguage( - objc.NSString isoLangCode, - ) { - final _$$ref = isoLangCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.characterDirectionForLanguage:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_k06xr2( - _class_NSLocale, - _sel_characterDirectionForLanguage_, - _$$ref.pointer, - ); - return objc.NSLocaleLanguageDirection.fromValue($ret); - } - - /// commonISOCurrencyCodes - static objc.NSArray getCommonISOCurrencyCodes() { - objc.checkOsVersionInternal( - 'NSLocale.commonISOCurrencyCodes', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSLocale, - _sel_commonISOCurrencyCodes, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// componentsFromLocaleIdentifier: - static objc.NSDictionary componentsFromLocaleIdentifier( - objc.NSString string, - ) { - final _$$ref = string.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSLocale, - _sel_componentsFromLocaleIdentifier_, - _$$ref.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// lineDirectionForLanguage: - static objc.NSLocaleLanguageDirection lineDirectionForLanguage( - objc.NSString isoLangCode, - ) { - final _$$ref = isoLangCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.lineDirectionForLanguage:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_k06xr2( - _class_NSLocale, - _sel_lineDirectionForLanguage_, - _$$ref.pointer, - ); - return objc.NSLocaleLanguageDirection.fromValue($ret); - } - - /// localeIdentifierFromComponents: - static objc.NSString localeIdentifierFromComponents(objc.NSDictionary dict) { - final _$$ref = dict.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSLocale, - _sel_localeIdentifierFromComponents_, - _$$ref.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localeIdentifierFromWindowsLocaleCode: - static objc.NSString? localeIdentifierFromWindowsLocaleCode(int lcid) { - objc.checkOsVersionInternal( - 'NSLocale.localeIdentifierFromWindowsLocaleCode:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_mbgotb( - _class_NSLocale, - _sel_localeIdentifierFromWindowsLocaleCode_, - lcid, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// preferredLanguages - static objc.NSArray getPreferredLanguages() { - objc.checkOsVersionInternal( - 'NSLocale.preferredLanguages', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_zldla2(_class_NSLocale, _sel_preferredLanguages); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// windowsLocaleCodeFromLocaleIdentifier: - static int windowsLocaleCodeFromLocaleIdentifier( - objc.NSString localeIdentifier, - ) { - final _$$ref = localeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSLocale.windowsLocaleCodeFromLocaleIdentifier:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_17d2dof( - _class_NSLocale, - _sel_windowsLocaleCodeFromLocaleIdentifier_, - _$$ref.pointer, - ); - } -} - -typedef NSLocaleKey = ffi.Pointer; -typedef DartNSLocaleKey = objc.NSString; - -/// NSLocking -extension type NSLocking._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSLocking] that points to the same underlying object as [other]. - NSLocking.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSLocking] that wraps the given raw object pointer. - NSLocking.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSLocking]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSLocking, - ); - } -} - -extension NSLocking$Methods on NSLocking { - /// lock - void lock() { - final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_lock); - } - - /// unlock - void unlock() { - final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_unlock); - } -} - -interface class NSLocking$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSLocking.cast()); - - /// Builds an object that implements the NSLocking protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSLocking implement({ - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); - NSLocking$Builder.lock.implement(builder, lock); - NSLocking$Builder.unlock.implement(builder, unlock); - builder.addProtocol($protocol); - return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the NSLocking protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - NSLocking$Builder.lock.implement(builder, lock); - NSLocking$Builder.unlock.implement(builder, unlock); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSLocking protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSLocking implementAsListener({ - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); - NSLocking$Builder.lock.implementAsListener(builder, lock); - NSLocking$Builder.unlock.implementAsListener(builder, unlock); - builder.addProtocol($protocol); - return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the NSLocking protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - NSLocking$Builder.lock.implementAsListener(builder, lock); - NSLocking$Builder.unlock.implementAsListener(builder, unlock); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSLocking protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSLocking implementAsBlocking({ - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); - NSLocking$Builder.lock.implementAsBlocking(builder, lock); - NSLocking$Builder.unlock.implementAsBlocking(builder, unlock); - builder.addProtocol($protocol); - return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the NSLocking protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - NSLocking$Builder.lock.implementAsBlocking(builder, lock); - NSLocking$Builder.unlock.implementAsBlocking(builder, unlock); - builder.addProtocol($protocol); - } - - /// lock - static final lock = objc.ObjCProtocolListenableMethod( - _protocol_NSLocking, - _sel_lock, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_15is1z3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSLocking, - _sel_lock, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// unlock - static final unlock = objc.ObjCProtocolListenableMethod( - _protocol_NSLocking, - _sel_unlock, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_15is1z3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSLocking, - _sel_unlock, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); -} - -@Deprecated('Not supported') -const int NSMACHOperatingSystem = 5; - -const int NSMacOSRomanStringEncoding = 30; - -/// NSMachPortDelegate -extension type NSMachPortDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSPortDelegate { - /// Constructs a [NSMachPortDelegate] that points to the same underlying object as [other]. - NSMachPortDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSMachPortDelegate] that wraps the given raw object pointer. - NSMachPortDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMachPortDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSMachPortDelegate, - ); - } -} - -extension NSMachPortDelegate$Methods on NSMachPortDelegate { - /// handleMachMessage: - void handleMachMessage(ffi.Pointer msg) { - final _$$ref = object$.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_handleMachMessage_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSMachPortDelegate', - 'handleMachMessage:', - ); - } - _objc_msgSend_15is1z3(_$$ref.pointer, _sel_handleMachMessage_, msg); - } - - /// handlePortMessage: - void handlePortMessage(objc.NSPortMessage message) { - final _$$ref = object$.ref; - final _$$ref$1 = message.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_handlePortMessage_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSMachPortDelegate', - 'handlePortMessage:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_handlePortMessage_, - _$$ref$1.pointer, - ); - } -} - -interface class NSMachPortDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSMachPortDelegate.cast()); - - /// Builds an object that implements the NSMachPortDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSMachPortDelegate implement({ - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); - NSMachPortDelegate$Builder.handleMachMessage_.implement( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implement( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - return NSMachPortDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSMachPortDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - NSMachPortDelegate$Builder.handleMachMessage_.implement( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implement( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSMachPortDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSMachPortDelegate implementAsListener({ - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); - NSMachPortDelegate$Builder.handleMachMessage_.implementAsListener( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implementAsListener( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - return NSMachPortDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSMachPortDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - NSMachPortDelegate$Builder.handleMachMessage_.implementAsListener( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implementAsListener( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSMachPortDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSMachPortDelegate implementAsBlocking({ - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); - NSMachPortDelegate$Builder.handleMachMessage_.implementAsBlocking( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implementAsBlocking( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - return NSMachPortDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSMachPortDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - NSMachPortDelegate$Builder.handleMachMessage_.implementAsBlocking( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implementAsBlocking( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - } - - /// handleMachMessage: - static final handleMachMessage_ = - objc.ObjCProtocolListenableMethod)>( - _protocol_NSMachPortDelegate, - _sel_handleMachMessage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_le6lv4) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMachPortDelegate, - _sel_handleMachMessage_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(ffi.Pointer) func) => - ObjCBlock_ffiVoid_ffiVoid_ffiVoid.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1), - ), - (void Function(ffi.Pointer) func) => - ObjCBlock_ffiVoid_ffiVoid_ffiVoid.listener( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1), - ), - (void Function(ffi.Pointer) func) => - ObjCBlock_ffiVoid_ffiVoid_ffiVoid.blocking( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1), - ), - ); - - /// handlePortMessage: - static final handlePortMessage_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSMachPortDelegate, - _sel_handlePortMessage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMachPortDelegate, - _sel_handlePortMessage_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSPortMessage) func) => - ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.fromFunction( - (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), - ), - (void Function(objc.NSPortMessage) func) => - ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.listener( - (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), - ), - (void Function(objc.NSPortMessage) func) => - ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.blocking( - (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), - ), - ); -} - -sealed class NSMachPortOptions { - static const NSMachPortDeallocateNone = 0; - static const NSMachPortDeallocateSendRight = 1; - static const NSMachPortDeallocateReceiveRight = 2; -} - -final class NSMapEnumerator extends ffi.Struct { - @NSUInteger() - external int _pi; - - @NSUInteger() - external int _si; - - external ffi.Pointer _bs; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int $pi, - required int $si, - required ffi.Pointer $bs, - }) => $allocator() - ..ref._pi = $pi - ..ref._si = $si - ..ref._bs = $bs; -} - -/// WARNING: NSMapTable is a stub. To generate bindings for this class, include -/// NSMapTable in your config's objc-interfaces list. -/// -/// NSMapTable -extension type NSMapTable._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding, - objc.NSFastEnumeration { - /// Constructs a [NSMapTable] that points to the same underlying object as [other]. - NSMapTable.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMapTable', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } - - /// Constructs a [NSMapTable] that wraps the given raw object pointer. - NSMapTable.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMapTable', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } -} - -const int NSMapTableCopyIn = 65536; - -final class NSMapTableKeyCallBacks extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - hash; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - isEqual; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - release; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe; - - external ffi.Pointer notAKeyMarker; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - hash, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - isEqual, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - release, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe, - required ffi.Pointer notAKeyMarker, - }) => $allocator() - ..ref.hash = hash - ..ref.isEqual = isEqual - ..ref.retain = retain - ..ref.release = release - ..ref.describe = describe - ..ref.notAKeyMarker = notAKeyMarker; -} - -const int NSMapTableObjectPointerPersonality = 512; - -typedef NSMapTableOptions = NSUInteger; - -const int NSMapTableStrongMemory = 0; - -final class NSMapTableValueCallBacks extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - release; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - release, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe, - }) => $allocator() - ..ref.retain = retain - ..ref.release = release - ..ref.describe = describe; -} - -const int NSMapTableWeakMemory = 5; - -const int NSMapTableZeroingWeakMemory = 1; - -enum NSMassFormatterUnit { - NSMassFormatterUnitGram(11), - NSMassFormatterUnitKilogram(14), - NSMassFormatterUnitOunce(1537), - NSMassFormatterUnitPound(1538), - NSMassFormatterUnitStone(1539); - - final int value; - const NSMassFormatterUnit(this.value); - - static NSMassFormatterUnit fromValue(int value) => switch (value) { - 11 => NSMassFormatterUnitGram, - 14 => NSMassFormatterUnitKilogram, - 1537 => NSMassFormatterUnitOunce, - 1538 => NSMassFormatterUnitPound, - 1539 => NSMassFormatterUnitStone, - _ => throw ArgumentError('Unknown value for NSMassFormatterUnit: $value'), - }; -} - -/// NSMatching -extension NSMatching on NSRegularExpression { - /// enumerateMatchesInString:options:range:usingBlock: - void enumerateMatchesInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - required objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - > - usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - final _$$ref$2 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.enumerateMatchesInString:options:range:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_h4ogsm( - _$$ref.pointer, - _sel_enumerateMatchesInString_options_range_usingBlock_, - _$$ref$1.pointer, - options, - range, - _$$ref$2.pointer, - ); - } - - /// firstMatchInString:options:range: - NSTextCheckingResult? firstMatchInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.firstMatchInString:options:range:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1mp8i54( - _$$ref.pointer, - _sel_firstMatchInString_options_range_, - _$$ref$1.pointer, - options, - range, - ); - return $ret.address == 0 - ? null - : NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// matchesInString:options:range: - objc.NSArray matchesInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.matchesInString:options:range:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1mp8i54( - _$$ref.pointer, - _sel_matchesInString_options_range_, - _$$ref$1.pointer, - options, - range, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// numberOfMatchesInString:options:range: - DartNSUInteger numberOfMatchesInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.numberOfMatchesInString:options:range:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_1g4mhmy( - _$$ref.pointer, - _sel_numberOfMatchesInString_options_range_, - _$$ref$1.pointer, - options, - range, - ); - } - - /// rangeOfFirstMatchInString:options:range: - NSRange rangeOfFirstMatchInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.rangeOfFirstMatchInString:options:range:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_rcrzo0Stret( - $ptr, - _$$ref.pointer, - _sel_rangeOfFirstMatchInString_options_range_, - _$$ref$1.pointer, - options, - range, - ) - : $ptr.ref = _objc_msgSend_rcrzo0( - _$$ref.pointer, - _sel_rangeOfFirstMatchInString_options_range_, - _$$ref$1.pointer, - options, - range, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } -} - -sealed class NSMatchingFlags { - static const NSMatchingProgress = 1; - static const NSMatchingCompleted = 2; - static const NSMatchingHitEnd = 4; - static const NSMatchingRequiredEnd = 8; - static const NSMatchingInternalError = 16; -} - -sealed class NSMatchingOptions { - static const NSMatchingReportProgress = 1; - static const NSMatchingReportCompletion = 2; - static const NSMatchingAnchored = 4; - static const NSMatchingWithTransparentBounds = 8; - static const NSMatchingWithoutAnchoringBounds = 16; -} - -sealed class NSMeasurementFormatterUnitOptions { - static const NSMeasurementFormatterUnitOptionsProvidedUnit = 1; - static const NSMeasurementFormatterUnitOptionsNaturalScale = 2; - static const NSMeasurementFormatterUnitOptionsTemperatureWithoutUnit = 4; -} - -/// WARNING: NSMetadataItem is a stub. To generate bindings for this class, include -/// NSMetadataItem in your config's objc-interfaces list. -/// -/// NSMetadataItem -extension type NSMetadataItem._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSMetadataItem] that points to the same underlying object as [other]. - NSMetadataItem.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMetadataItem', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } - - /// Constructs a [NSMetadataItem] that wraps the given raw object pointer. - NSMetadataItem.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMetadataItem', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } -} - -/// WARNING: NSMetadataQuery is a stub. To generate bindings for this class, include -/// NSMetadataQuery in your config's objc-interfaces list. -/// -/// NSMetadataQuery -extension type NSMetadataQuery._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSMetadataQuery] that points to the same underlying object as [other]. - NSMetadataQuery.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMetadataQuery', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } - - /// Constructs a [NSMetadataQuery] that wraps the given raw object pointer. - NSMetadataQuery.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMetadataQuery', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } -} - -/// NSMetadataQueryDelegate -extension type NSMetadataQueryDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSMetadataQueryDelegate] that points to the same underlying object as [other]. - NSMetadataQueryDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSMetadataQueryDelegate] that wraps the given raw object pointer. - NSMetadataQueryDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMetadataQueryDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSMetadataQueryDelegate, - ); - } -} - -extension NSMetadataQueryDelegate$Methods on NSMetadataQueryDelegate { - /// metadataQuery:replacementObjectForResultObject: - objc.ObjCObject metadataQuery( - NSMetadataQuery query, { - required NSMetadataItem replacementObjectForResultObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = query.ref; - final _$$ref$2 = replacementObjectForResultObject.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_metadataQuery_replacementObjectForResultObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSMetadataQueryDelegate', - 'metadataQuery:replacementObjectForResultObject:', - ); - } - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_metadataQuery_replacementObjectForResultObject_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// metadataQuery:replacementValueForAttribute:value: - objc.ObjCObject metadataQuery$1( - NSMetadataQuery query, { - required objc.NSString replacementValueForAttribute, - required objc.ObjCObject value, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = query.ref; - final _$$ref$2 = replacementValueForAttribute.ref; - final _$$ref$3 = value.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_metadataQuery_replacementValueForAttribute_value_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSMetadataQueryDelegate', - 'metadataQuery:replacementValueForAttribute:value:', - ); - } - final $ret = _objc_msgSend_1mevadz( - _$$ref.pointer, - _sel_metadataQuery_replacementValueForAttribute_value_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -interface class NSMetadataQueryDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSMetadataQueryDelegate.cast()); - - /// Builds an object that implements the NSMetadataQueryDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSMetadataQueryDelegate implement({ - objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem)? - metadataQuery_replacementObjectForResultObject_, - objc.ObjCObject Function(NSMetadataQuery, objc.NSString, objc.ObjCObject)? - metadataQuery_replacementValueForAttribute_value_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSMetadataQueryDelegate', - ); - NSMetadataQueryDelegate$Builder - .metadataQuery_replacementObjectForResultObject_ - .implement(builder, metadataQuery_replacementObjectForResultObject_); - NSMetadataQueryDelegate$Builder - .metadataQuery_replacementValueForAttribute_value_ - .implement(builder, metadataQuery_replacementValueForAttribute_value_); - builder.addProtocol($protocol); - return NSMetadataQueryDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSMetadataQueryDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem)? - metadataQuery_replacementObjectForResultObject_, - objc.ObjCObject Function(NSMetadataQuery, objc.NSString, objc.ObjCObject)? - metadataQuery_replacementValueForAttribute_value_, - bool $keepIsolateAlive = true, - }) { - NSMetadataQueryDelegate$Builder - .metadataQuery_replacementObjectForResultObject_ - .implement(builder, metadataQuery_replacementObjectForResultObject_); - NSMetadataQueryDelegate$Builder - .metadataQuery_replacementValueForAttribute_value_ - .implement(builder, metadataQuery_replacementValueForAttribute_value_); - builder.addProtocol($protocol); - } - - /// metadataQuery:replacementObjectForResultObject: - static final metadataQuery_replacementObjectForResultObject_ = - objc.ObjCProtocolMethod< - objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem) - >( - _protocol_NSMetadataQueryDelegate, - _sel_metadataQuery_replacementObjectForResultObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_osi9m3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMetadataQueryDelegate, - _sel_metadataQuery_replacementObjectForResultObject_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem) func) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem.fromFunction( - ( - ffi.Pointer _, - NSMetadataQuery arg1, - NSMetadataItem arg2, - ) => func(arg1, arg2), - ), - ); - - /// metadataQuery:replacementValueForAttribute:value: - static final metadataQuery_replacementValueForAttribute_value_ = - objc.ObjCProtocolMethod< - objc.ObjCObject Function( - NSMetadataQuery, - objc.NSString, - objc.ObjCObject, - ) - >( - _protocol_NSMetadataQueryDelegate, - _sel_metadataQuery_replacementValueForAttribute_value_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ekc08i) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMetadataQueryDelegate, - _sel_metadataQuery_replacementValueForAttribute_value_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.ObjCObject Function( - NSMetadataQuery, - objc.NSString, - objc.ObjCObject, - ) - func, - ) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSMetadataQuery arg1, - objc.NSString arg2, - objc.ObjCObject arg3, - ) => func(arg1, arg2, arg3), - ), - ); -} - -/// NSMorphology -extension NSMorphology on objc.NSAttributedString { - /// attributedStringByInflectingString - objc.NSAttributedString attributedStringByInflectingString() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.attributedStringByInflectingString', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_attributedStringByInflectingString, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// WARNING: NSMorphology$1 is a stub. To generate bindings for this class, include -/// NSMorphology in your config's objc-interfaces list. -/// -/// NSMorphology -extension type NSMorphology$1._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSMorphology$1] that points to the same underlying object as [other]. - NSMorphology$1.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMorphology', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } - - /// Constructs a [NSMorphology$1] that wraps the given raw object pointer. - NSMorphology$1.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMorphology', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } -} - -/// WARNING: NSMorphologyCustomPronoun is a stub. To generate bindings for this class, include -/// NSMorphologyCustomPronoun in your config's objc-interfaces list. -/// -/// NSMorphologyCustomPronoun -@Deprecated('Use NSTermOfAddress instead') -extension type NSMorphologyCustomPronoun._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSMorphologyCustomPronoun] that points to the same underlying object as [other]. - NSMorphologyCustomPronoun.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMorphologyCustomPronoun', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } - - /// Constructs a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. - NSMorphologyCustomPronoun.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMorphologyCustomPronoun', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } -} - -/// NSMorphologyUserSettings -extension NSMorphologyUserSettings on NSMorphology$1 { - /// isUnspecified - bool get isUnspecified { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMorphology.isUnspecified', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isUnspecified); - } - - /// userMorphology - static NSMorphology$1 getUserMorphology() { - objc.checkOsVersionInternal( - 'NSMorphology.userMorphology', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_class_NSMorphology, _sel_userMorphology); - return NSMorphology$1.fromPointer($ret, retain: true, release: true); - } -} - -/// NSMutableArrayCreation -extension NSMutableArrayCreation on objc.NSMutableArray { - /// initWithContentsOfFile: - objc.NSMutableArray? initWithContentsOfFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableArray.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - objc.NSMutableArray? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableArray.fromPointer($ret, retain: false, release: true); - } - - /// arrayWithCapacity: - static objc.NSMutableArray arrayWithCapacity(DartNSUInteger numItems) { - final $ret = _objc_msgSend_o5e71h( - _class_NSMutableArray, - _sel_arrayWithCapacity_, - numItems, - ); - return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithContentsOfFile: - static objc.NSMutableArray? arrayWithContentsOfFile(objc.NSString path) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSMutableArray, - _sel_arrayWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithContentsOfURL: - static objc.NSMutableArray? arrayWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSMutableArray, - _sel_arrayWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSMutableArrayDiffing -extension NSMutableArrayDiffing on objc.NSMutableArray { - /// applyDifference: - void applyDifference(objc.NSOrderedCollectionDifference difference) { - final _$$ref = object$.ref; - final _$$ref$1 = difference.ref; - objc.checkOsVersionInternal( - 'NSMutableArray.applyDifference:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_applyDifference_, - _$$ref$1.pointer, - ); - } -} - -/// WARNING: NSMutableAttributedString is a stub. To generate bindings for this class, include -/// NSMutableAttributedString in your config's objc-interfaces list. -/// -/// NSMutableAttributedString -extension type NSMutableAttributedString._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSAttributedString { - /// Constructs a [NSMutableAttributedString] that points to the same underlying object as [other]. - NSMutableAttributedString.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMutableAttributedString', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSMutableAttributedString] that wraps the given raw object pointer. - NSMutableAttributedString.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMutableAttributedString', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -/// NSMutableAttributedStringFormatting -extension NSMutableAttributedStringFormatting on NSMutableAttributedString { - /// appendLocalizedFormat: - void appendLocalizedFormat(objc.NSAttributedString format) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.appendLocalizedFormat:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_appendLocalizedFormat_, - _$$ref$1.pointer, - ); - } -} - -/// NSMutableDataCompression -extension NSMutableDataCompression on objc.NSMutableData { - /// compressUsingAlgorithm:error: - bool compressUsingAlgorithm(objc.NSDataCompressionAlgorithm algorithm) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableData.compressUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_15t3nhv( - _$$ref.pointer, - _sel_compressUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decompressUsingAlgorithm:error: - bool decompressUsingAlgorithm(objc.NSDataCompressionAlgorithm algorithm) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableData.decompressUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_15t3nhv( - _$$ref.pointer, - _sel_decompressUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -/// NSMutableDataCreation -extension NSMutableDataCreation on objc.NSMutableData { - /// initWithCapacity: - objc.NSMutableData? initWithCapacity(DartNSUInteger capacity) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_o5e71h( - _$$ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - capacity, - ); - return $ret.address == 0 - ? null - : objc.NSMutableData.fromPointer($ret, retain: false, release: true); - } - - /// initWithLength: - objc.NSMutableData? initWithLength(DartNSUInteger length) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_o5e71h( - _$$ref.retainAndReturnPointer(), - _sel_initWithLength_, - length, - ); - return $ret.address == 0 - ? null - : objc.NSMutableData.fromPointer($ret, retain: false, release: true); - } - - /// dataWithCapacity: - static objc.NSMutableData? dataWithCapacity(DartNSUInteger aNumItems) { - final $ret = _objc_msgSend_o5e71h( - _class_NSMutableData, - _sel_dataWithCapacity_, - aNumItems, - ); - return $ret.address == 0 - ? null - : objc.NSMutableData.fromPointer($ret, retain: true, release: true); - } - - /// dataWithLength: - static objc.NSMutableData? dataWithLength(DartNSUInteger length) { - final $ret = _objc_msgSend_o5e71h( - _class_NSMutableData, - _sel_dataWithLength_, - length, - ); - return $ret.address == 0 - ? null - : objc.NSMutableData.fromPointer($ret, retain: true, release: true); - } -} - -/// NSMutableDictionaryCreation -extension NSMutableDictionaryCreation on objc.NSMutableDictionary { - /// initWithContentsOfFile: - objc.NSMutableDictionary? initWithContentsOfFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableDictionary.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// initWithContentsOfURL: - objc.NSMutableDictionary? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableDictionary.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// dictionaryWithCapacity: - static objc.NSMutableDictionary dictionaryWithCapacity( - DartNSUInteger numItems, - ) { - final $ret = _objc_msgSend_o5e71h( - _class_NSMutableDictionary, - _sel_dictionaryWithCapacity_, - numItems, - ); - return objc.NSMutableDictionary.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithContentsOfFile: - static objc.NSMutableDictionary? dictionaryWithContentsOfFile( - objc.NSString path, - ) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSMutableDictionary, - _sel_dictionaryWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableDictionary.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithContentsOfURL: - static objc.NSMutableDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSMutableDictionary, - _sel_dictionaryWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableDictionary.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSMutableHTTPURLRequest -extension NSMutableHTTPURLRequest on NSMutableURLRequest { - /// HTTPBody - objc.NSData? get HTTPBody { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.HTTPBody', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPBody); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// HTTPBodyStream - objc.NSInputStream? get HTTPBodyStream { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.HTTPBodyStream', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPBodyStream); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// HTTPMethod - objc.NSString get HTTPMethod { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.HTTPMethod', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_HTTPMethod); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// HTTPShouldHandleCookies - bool get HTTPShouldHandleCookies { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.HTTPShouldHandleCookies', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_HTTPShouldHandleCookies); - } - - /// HTTPShouldUsePipelining - @Deprecated( - 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', - ) - bool get HTTPShouldUsePipelining { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.HTTPShouldUsePipelining', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_HTTPShouldUsePipelining); - } - - /// addValue:forHTTPHeaderField: - void addValue( - objc.NSString value, { - required objc.NSString forHTTPHeaderField, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - final _$$ref$2 = forHTTPHeaderField.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.addValue:forHTTPHeaderField:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_addValue_forHTTPHeaderField_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// allHTTPHeaderFields - objc.NSDictionary? get allHTTPHeaderFields { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.allHTTPHeaderFields', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allHTTPHeaderFields); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// setAllHTTPHeaderFields: - set allHTTPHeaderFields(objc.NSDictionary? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setAllHTTPHeaderFields:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setAllHTTPHeaderFields_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setHTTPBody: - set HTTPBody(objc.NSData? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPBody:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setHTTPBody_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setHTTPBodyStream: - set HTTPBodyStream(objc.NSInputStream? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPBodyStream:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setHTTPBodyStream_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setHTTPMethod: - set HTTPMethod(objc.NSString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPMethod:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setHTTPMethod_, - _$$ref$1.pointer, - ); - } - - /// setHTTPShouldHandleCookies: - set HTTPShouldHandleCookies(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPShouldHandleCookies:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1s4gila( - _$$ref.pointer, - _sel_setHTTPShouldHandleCookies_, - value, - ); - } - - /// setHTTPShouldUsePipelining: - @Deprecated( - 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', - ) - set HTTPShouldUsePipelining(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPShouldUsePipelining:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1s4gila( - _$$ref.pointer, - _sel_setHTTPShouldUsePipelining_, - value, - ); - } - - /// setValue:forHTTPHeaderField: - void setValue( - objc.NSString? value, { - required objc.NSString forHTTPHeaderField, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forHTTPHeaderField.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setValue:forHTTPHeaderField:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_setValue_forHTTPHeaderField_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } -} - -/// NSMutableOrderedSetCreation -extension NSMutableOrderedSetCreation on objc.NSMutableOrderedSet { - /// orderedSetWithCapacity: - static objc.NSMutableOrderedSet orderedSetWithCapacity( - DartNSUInteger numItems, - ) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithCapacity:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_o5e71h( - _class_NSMutableOrderedSet, - _sel_orderedSetWithCapacity_, - numItems, - ); - return objc.NSMutableOrderedSet.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSMutableOrderedSetDiffing -extension NSMutableOrderedSetDiffing on objc.NSMutableOrderedSet { - /// applyDifference: - void applyDifference(objc.NSOrderedCollectionDifference difference) { - final _$$ref = object$.ref; - final _$$ref$1 = difference.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.applyDifference:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_applyDifference_, - _$$ref$1.pointer, - ); - } -} - -/// NSMutableSetCreation -extension NSMutableSetCreation on objc.NSMutableSet { - /// setWithCapacity: - static objc.NSMutableSet setWithCapacity(DartNSUInteger numItems) { - final $ret = _objc_msgSend_o5e71h( - _class_NSMutableSet, - _sel_setWithCapacity_, - numItems, - ); - return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); - } -} - -/// NSMutableStringExtensionMethods -extension NSMutableStringExtensionMethods on objc.NSMutableString { - /// appendFormat: - void appendFormat(objc.NSString format) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_appendFormat_, _$$ref$1.pointer); - } - - /// appendString: - void appendString(objc.NSString aString) { - final _$$ref = object$.ref; - final _$$ref$1 = aString.ref; - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_appendString_, _$$ref$1.pointer); - } - - /// applyTransform:reverse:range:updatedRange: - bool applyTransform( - DartNSStringTransform transform, { - required bool reverse, - required NSRange range, - required NSRangePointer updatedRange, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = transform.ref; - objc.checkOsVersionInternal( - 'NSMutableString.applyTransform:reverse:range:updatedRange:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - return _objc_msgSend_1ux8kak( - _$$ref.pointer, - _sel_applyTransform_reverse_range_updatedRange_, - _$$ref$1.pointer, - reverse, - range, - updatedRange, - ); - } - - /// deleteCharactersInRange: - void deleteCharactersInRange(NSRange range) { - final _$$ref = object$.ref; - _objc_msgSend_1ax18rd(_$$ref.pointer, _sel_deleteCharactersInRange_, range); - } - - /// initWithCapacity: - objc.NSMutableString initWithCapacity(DartNSUInteger capacity) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_o5e71h( - _$$ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - capacity, - ); - return objc.NSMutableString.fromPointer($ret, retain: false, release: true); - } - - /// insertString:atIndex: - void insertString(objc.NSString aString, {required DartNSUInteger atIndex}) { - final _$$ref = object$.ref; - final _$$ref$1 = aString.ref; - _objc_msgSend_ralblg( - _$$ref.pointer, - _sel_insertString_atIndex_, - _$$ref$1.pointer, - atIndex, - ); - } - - /// replaceOccurrencesOfString:withString:options:range: - DartNSUInteger replaceOccurrencesOfString( - objc.NSString target, { - required objc.NSString withString, - required DartNSUInteger options, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = target.ref; - final _$$ref$2 = withString.ref; - return _objc_msgSend_12av0mx( - _$$ref.pointer, - _sel_replaceOccurrencesOfString_withString_options_range_, - _$$ref$1.pointer, - _$$ref$2.pointer, - options, - range, - ); - } - - /// setString: - void setString(objc.NSString aString) { - final _$$ref = object$.ref; - final _$$ref$1 = aString.ref; - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setString_, _$$ref$1.pointer); - } - - /// stringWithCapacity: - static objc.NSMutableString stringWithCapacity(DartNSUInteger capacity) { - final $ret = _objc_msgSend_o5e71h( - _class_NSMutableString, - _sel_stringWithCapacity_, - capacity, - ); - return objc.NSMutableString.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSMutableURLRequest is a stub. To generate bindings for this class, include -/// NSMutableURLRequest in your config's objc-interfaces list. -/// -/// NSMutableURLRequest -extension type NSMutableURLRequest._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLRequest { - /// Constructs a [NSMutableURLRequest] that points to the same underlying object as [other]. - NSMutableURLRequest.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMutableURLRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSMutableURLRequest] that wraps the given raw object pointer. - NSMutableURLRequest.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMutableURLRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -const int NSNEXTSTEPStringEncoding = 2; - -/// WARNING: NSNetService is a stub. To generate bindings for this class, include -/// NSNetService in your config's objc-interfaces list. -/// -/// NSNetService -@Deprecated('Use nw_connection_t or nw_listener_t in Network framework instead') -extension type NSNetService._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSNetService] that points to the same underlying object as [other]. - NSNetService.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSNetService', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSNetService] that wraps the given raw object pointer. - NSNetService.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSNetService', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// WARNING: NSNetServiceBrowser is a stub. To generate bindings for this class, include -/// NSNetServiceBrowser in your config's objc-interfaces list. -/// -/// NSNetServiceBrowser -@Deprecated('Use nw_browser_t in Network framework instead') -extension type NSNetServiceBrowser._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSNetServiceBrowser] that points to the same underlying object as [other]. - NSNetServiceBrowser.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSNetServiceBrowser', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSNetServiceBrowser] that wraps the given raw object pointer. - NSNetServiceBrowser.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSNetServiceBrowser', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// NSNetServiceBrowserDelegate -extension type NSNetServiceBrowserDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSNetServiceBrowserDelegate] that points to the same underlying object as [other]. - NSNetServiceBrowserDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSNetServiceBrowserDelegate] that wraps the given raw object pointer. - NSNetServiceBrowserDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSNetServiceBrowserDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSNetServiceBrowserDelegate, - ); - } -} - -extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { - /// netServiceBrowser:didFindDomain:moreComing: - void netServiceBrowser( - NSNetServiceBrowser browser, { - required objc.NSString didFindDomain, - required bool moreComing, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - final _$$ref$2 = didFindDomain.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowser:didFindDomain:moreComing:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowser_didFindDomain_moreComing_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowser:didFindDomain:moreComing:', - ); - } - _objc_msgSend_kqg9a0( - _$$ref.pointer, - _sel_netServiceBrowser_didFindDomain_moreComing_, - _$$ref$1.pointer, - _$$ref$2.pointer, - moreComing, - ); - } - - /// netServiceBrowser:didFindService:moreComing: - void netServiceBrowser$1( - NSNetServiceBrowser browser, { - required NSNetService didFindService, - required bool moreComing, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - final _$$ref$2 = didFindService.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowser:didFindService:moreComing:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowser_didFindService_moreComing_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowser:didFindService:moreComing:', - ); - } - _objc_msgSend_kqg9a0( - _$$ref.pointer, - _sel_netServiceBrowser_didFindService_moreComing_, - _$$ref$1.pointer, - _$$ref$2.pointer, - moreComing, - ); - } - - /// netServiceBrowser:didNotSearch: - void netServiceBrowser$2( - NSNetServiceBrowser browser, { - required objc.NSDictionary didNotSearch, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - final _$$ref$2 = didNotSearch.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowser:didNotSearch:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowser_didNotSearch_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowser:didNotSearch:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_netServiceBrowser_didNotSearch_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// netServiceBrowser:didRemoveDomain:moreComing: - void netServiceBrowser$3( - NSNetServiceBrowser browser, { - required objc.NSString didRemoveDomain, - required bool moreComing, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - final _$$ref$2 = didRemoveDomain.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowser:didRemoveDomain:moreComing:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowser_didRemoveDomain_moreComing_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowser:didRemoveDomain:moreComing:', - ); - } - _objc_msgSend_kqg9a0( - _$$ref.pointer, - _sel_netServiceBrowser_didRemoveDomain_moreComing_, - _$$ref$1.pointer, - _$$ref$2.pointer, - moreComing, - ); - } - - /// netServiceBrowser:didRemoveService:moreComing: - void netServiceBrowser$4( - NSNetServiceBrowser browser, { - required NSNetService didRemoveService, - required bool moreComing, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - final _$$ref$2 = didRemoveService.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowser:didRemoveService:moreComing:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowser_didRemoveService_moreComing_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowser:didRemoveService:moreComing:', - ); - } - _objc_msgSend_kqg9a0( - _$$ref.pointer, - _sel_netServiceBrowser_didRemoveService_moreComing_, - _$$ref$1.pointer, - _$$ref$2.pointer, - moreComing, - ); - } - - /// netServiceBrowserDidStopSearch: - void netServiceBrowserDidStopSearch(NSNetServiceBrowser browser) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowserDidStopSearch:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowserDidStopSearch_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowserDidStopSearch:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_netServiceBrowserDidStopSearch_, - _$$ref$1.pointer, - ); - } - - /// netServiceBrowserWillSearch: - void netServiceBrowserWillSearch(NSNetServiceBrowser browser) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowserWillSearch:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowserWillSearch_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowserWillSearch:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_netServiceBrowserWillSearch_, - _$$ref$1.pointer, - ); - } -} - -interface class NSNetServiceBrowserDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSNetServiceBrowserDelegate.cast()); - - /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceBrowserDelegate implement({ - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSNetServiceBrowserDelegate', - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implement(builder, netServiceBrowser_didFindDomain_moreComing_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implement(builder, netServiceBrowser_didFindService_moreComing_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implement(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implement(builder, netServiceBrowser_didRemoveDomain_moreComing_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implement(builder, netServiceBrowser_didRemoveService_moreComing_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implement(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_.implement( - builder, - netServiceBrowserWillSearch_, - ); - builder.addProtocol($protocol); - return NSNetServiceBrowserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implement(builder, netServiceBrowser_didFindDomain_moreComing_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implement(builder, netServiceBrowser_didFindService_moreComing_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implement(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implement(builder, netServiceBrowser_didRemoveDomain_moreComing_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implement(builder, netServiceBrowser_didRemoveService_moreComing_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implement(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_.implement( - builder, - netServiceBrowserWillSearch_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceBrowserDelegate implementAsListener({ - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSNetServiceBrowserDelegate', - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didFindDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didFindService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implementAsListener(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didRemoveDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didRemoveService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implementAsListener(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ - .implementAsListener(builder, netServiceBrowserWillSearch_); - builder.addProtocol($protocol); - return NSNetServiceBrowserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didFindDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didFindService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implementAsListener(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didRemoveDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didRemoveService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implementAsListener(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ - .implementAsListener(builder, netServiceBrowserWillSearch_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceBrowserDelegate implementAsBlocking({ - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSNetServiceBrowserDelegate', - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didFindDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didFindService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implementAsBlocking(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didRemoveDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didRemoveService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implementAsBlocking(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ - .implementAsBlocking(builder, netServiceBrowserWillSearch_); - builder.addProtocol($protocol); - return NSNetServiceBrowserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didFindDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didFindService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implementAsBlocking(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didRemoveDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didRemoveService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implementAsBlocking(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ - .implementAsBlocking(builder, netServiceBrowserWillSearch_); - builder.addProtocol($protocol); - } - - /// netServiceBrowser:didFindDomain:moreComing: - static final netServiceBrowser_didFindDomain_moreComing_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetServiceBrowser, objc.NSString, bool) - >( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didFindDomain_moreComing_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_9km3ll) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didFindDomain_moreComing_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.fromFunction( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.listener( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.blocking( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// netServiceBrowser:didFindService:moreComing: - static final netServiceBrowser_didFindService_moreComing_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetServiceBrowser, NSNetService, bool) - >( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didFindService_moreComing_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_9km3ll) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didFindService_moreComing_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.fromFunction( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.listener( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.blocking( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// netServiceBrowser:didNotSearch: - static final netServiceBrowser_didNotSearch_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetServiceBrowser, objc.NSDictionary) - >( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didNotSearch_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didNotSearch_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.fromFunction( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.listener( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.blocking( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - ); - - /// netServiceBrowser:didRemoveDomain:moreComing: - static final netServiceBrowser_didRemoveDomain_moreComing_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetServiceBrowser, objc.NSString, bool) - >( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didRemoveDomain_moreComing_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_9km3ll) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didRemoveDomain_moreComing_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.fromFunction( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.listener( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.blocking( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// netServiceBrowser:didRemoveService:moreComing: - static final netServiceBrowser_didRemoveService_moreComing_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetServiceBrowser, NSNetService, bool) - >( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didRemoveService_moreComing_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_9km3ll) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didRemoveService_moreComing_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.fromFunction( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.listener( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.blocking( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// netServiceBrowserDidStopSearch: - static final netServiceBrowserDidStopSearch_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowserDidStopSearch_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowserDidStopSearch_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.fromFunction( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.listener( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.blocking( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - ); - - /// netServiceBrowserWillSearch: - static final netServiceBrowserWillSearch_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowserWillSearch_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowserWillSearch_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.fromFunction( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.listener( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.blocking( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - ); -} - -/// NSNetServiceDelegate -extension type NSNetServiceDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSNetServiceDelegate] that points to the same underlying object as [other]. - NSNetServiceDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSNetServiceDelegate] that wraps the given raw object pointer. - NSNetServiceDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSNetServiceDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSNetServiceDelegate, - ); - } -} - -extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { - /// netService:didAcceptConnectionWithInputStream:outputStream: - void netService( - NSNetService sender, { - required objc.NSInputStream didAcceptConnectionWithInputStream, - required objc.NSOutputStream outputStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didAcceptConnectionWithInputStream.ref; - final _$$ref$3 = outputStream.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netService:didAcceptConnectionWithInputStream:outputStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netService_didAcceptConnectionWithInputStream_outputStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netService:didAcceptConnectionWithInputStream:outputStream:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_netService_didAcceptConnectionWithInputStream_outputStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// netService:didNotPublish: - void netService$1( - NSNetService sender, { - required objc.NSDictionary didNotPublish, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didNotPublish.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netService:didNotPublish:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netService_didNotPublish_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netService:didNotPublish:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_netService_didNotPublish_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// netService:didNotResolve: - void netService$2( - NSNetService sender, { - required objc.NSDictionary didNotResolve, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didNotResolve.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netService:didNotResolve:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netService_didNotResolve_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netService:didNotResolve:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_netService_didNotResolve_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// netService:didUpdateTXTRecordData: - void netService$3( - NSNetService sender, { - required objc.NSData didUpdateTXTRecordData, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didUpdateTXTRecordData.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netService:didUpdateTXTRecordData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netService_didUpdateTXTRecordData_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netService:didUpdateTXTRecordData:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_netService_didUpdateTXTRecordData_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// netServiceDidPublish: - void netServiceDidPublish(NSNetService sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netServiceDidPublish:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceDidPublish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netServiceDidPublish:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_netServiceDidPublish_, - _$$ref$1.pointer, - ); - } - - /// netServiceDidResolveAddress: - void netServiceDidResolveAddress(NSNetService sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netServiceDidResolveAddress:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceDidResolveAddress_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netServiceDidResolveAddress:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_netServiceDidResolveAddress_, - _$$ref$1.pointer, - ); - } - - /// netServiceDidStop: - void netServiceDidStop(NSNetService sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netServiceDidStop:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceDidStop_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netServiceDidStop:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_netServiceDidStop_, - _$$ref$1.pointer, - ); - } - - /// netServiceWillPublish: - void netServiceWillPublish(NSNetService sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netServiceWillPublish:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceWillPublish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netServiceWillPublish:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_netServiceWillPublish_, - _$$ref$1.pointer, - ); - } - - /// netServiceWillResolve: - void netServiceWillResolve(NSNetService sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netServiceWillResolve:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceWillResolve_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netServiceWillResolve:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_netServiceWillResolve_, - _$$ref$1.pointer, - ); - } -} - -interface class NSNetServiceDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSNetServiceDelegate.cast()); - - /// Builds an object that implements the NSNetServiceDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceDelegate implement({ - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implement( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implement( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implement( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_.implement( - builder, - netService_didUpdateTXTRecordData_, - ); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implement( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_.implement( - builder, - netServiceDidResolveAddress_, - ); - NSNetServiceDelegate$Builder.netServiceDidStop_.implement( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implement( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implement( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - return NSNetServiceDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implement( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implement( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implement( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_.implement( - builder, - netService_didUpdateTXTRecordData_, - ); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implement( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_.implement( - builder, - netServiceDidResolveAddress_, - ); - NSNetServiceDelegate$Builder.netServiceDidStop_.implement( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implement( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implement( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSNetServiceDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceDelegate implementAsListener({ - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implementAsListener( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsListener( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsListener( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ - .implementAsListener(builder, netService_didUpdateTXTRecordData_); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsListener( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ - .implementAsListener(builder, netServiceDidResolveAddress_); - NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsListener( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsListener( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsListener( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - return NSNetServiceDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implementAsListener( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsListener( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsListener( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ - .implementAsListener(builder, netService_didUpdateTXTRecordData_); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsListener( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ - .implementAsListener(builder, netServiceDidResolveAddress_); - NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsListener( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsListener( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsListener( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSNetServiceDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceDelegate implementAsBlocking({ - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implementAsBlocking( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsBlocking( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsBlocking( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ - .implementAsBlocking(builder, netService_didUpdateTXTRecordData_); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsBlocking( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ - .implementAsBlocking(builder, netServiceDidResolveAddress_); - NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsBlocking( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsBlocking( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsBlocking( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - return NSNetServiceDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implementAsBlocking( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsBlocking( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsBlocking( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ - .implementAsBlocking(builder, netService_didUpdateTXTRecordData_); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsBlocking( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ - .implementAsBlocking(builder, netServiceDidResolveAddress_); - NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsBlocking( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsBlocking( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsBlocking( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - } - - /// netService:didAcceptConnectionWithInputStream:outputStream: - static final netService_didAcceptConnectionWithInputStream_outputStream_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) - >( - _protocol_NSNetServiceDelegate, - _sel_netService_didAcceptConnectionWithInputStream_outputStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netService_didAcceptConnectionWithInputStream_outputStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.fromFunction( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.listener( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.blocking( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// netService:didNotPublish: - static final netService_didNotPublish_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetService, objc.NSDictionary) - >( - _protocol_NSNetServiceDelegate, - _sel_netService_didNotPublish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netService_didNotPublish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.fromFunction( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.listener( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.blocking( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - ); - - /// netService:didNotResolve: - static final netService_didNotResolve_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetService, objc.NSDictionary) - >( - _protocol_NSNetServiceDelegate, - _sel_netService_didNotResolve_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netService_didNotResolve_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.fromFunction( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.listener( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.blocking( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - ); - - /// netService:didUpdateTXTRecordData: - static final netService_didUpdateTXTRecordData_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetService, objc.NSData) - >( - _protocol_NSNetServiceDelegate, - _sel_netService_didUpdateTXTRecordData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netService_didUpdateTXTRecordData_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.fromFunction( - (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.listener( - (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.blocking( - (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - ); - - /// netServiceDidPublish: - static final netServiceDidPublish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidPublish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidPublish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - ); - - /// netServiceDidResolveAddress: - static final netServiceDidResolveAddress_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidResolveAddress_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidResolveAddress_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - ); - - /// netServiceDidStop: - static final netServiceDidStop_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidStop_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidStop_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - ); - - /// netServiceWillPublish: - static final netServiceWillPublish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceDelegate, - _sel_netServiceWillPublish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netServiceWillPublish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - ); - - /// netServiceWillResolve: - static final netServiceWillResolve_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceDelegate, - _sel_netServiceWillResolve_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netServiceWillResolve_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - ); -} - -sealed class NSNetServiceOptions { - static const NSNetServiceNoAutoRename = 1; - static const NSNetServiceListenForConnections = 2; -} - -enum NSNetServicesError { - NSNetServicesUnknownError(-72000), - NSNetServicesCollisionError(-72001), - NSNetServicesNotFoundError(-72002), - NSNetServicesActivityInProgress(-72003), - NSNetServicesBadArgumentError(-72004), - NSNetServicesCancelledError(-72005), - NSNetServicesInvalidError(-72006), - NSNetServicesTimeoutError(-72007), - NSNetServicesMissingRequiredConfigurationError(-72008); - - final int value; - const NSNetServicesError(this.value); - - static NSNetServicesError fromValue(int value) => switch (value) { - -72000 => NSNetServicesUnknownError, - -72001 => NSNetServicesCollisionError, - -72002 => NSNetServicesNotFoundError, - -72003 => NSNetServicesActivityInProgress, - -72004 => NSNetServicesBadArgumentError, - -72005 => NSNetServicesCancelledError, - -72006 => NSNetServicesInvalidError, - -72007 => NSNetServicesTimeoutError, - -72008 => NSNetServicesMissingRequiredConfigurationError, - _ => throw ArgumentError('Unknown value for NSNetServicesError: $value'), - }; -} - -const int NSNoScriptError = 0; - -const int NSNoSpecifierError = 0; - -const int NSNoTopLevelContainersSpecifierError = 1; - -const int NSNonLossyASCIIStringEncoding = 7; - -const int NSNotFound = 9223372036854775807; - -sealed class NSNotificationCoalescing { - static const NSNotificationNoCoalescing = 0; - static const NSNotificationCoalescingOnName = 1; - static const NSNotificationCoalescingOnSender = 2; -} - -/// NSNotificationCreation -extension NSNotificationCreation on objc.NSNotification { - /// init - objc.NSNotification init$1() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return objc.NSNotification.fromPointer($ret, retain: false, release: true); - } - - /// notificationWithName:object: - static objc.NSNotification notificationWithName( - DartNSNotificationName aName, { - objc.ObjCObject? object, - }) { - final _$$ref = aName.ref; - final _$$ref$1 = object?.ref; - final $ret = _objc_msgSend_1oxgj58( - _class_NSNotification, - _sel_notificationWithName_object_, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - return objc.NSNotification.fromPointer($ret, retain: true, release: true); - } - - /// notificationWithName:object:userInfo: - static objc.NSNotification notificationWithName$1( - DartNSNotificationName aName, { - objc.ObjCObject? object, - objc.NSDictionary? userInfo, - }) { - final _$$ref = aName.ref; - final _$$ref$1 = object?.ref; - final _$$ref$2 = userInfo?.ref; - final $ret = _objc_msgSend_1mevadz( - _class_NSNotification, - _sel_notificationWithName_object_userInfo_, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return objc.NSNotification.fromPointer($ret, retain: true, release: true); - } -} - -const int NSNotificationDeliverImmediately = 1; - -typedef NSNotificationName = ffi.Pointer; -typedef DartNSNotificationName = objc.NSString; - -const int NSNotificationPostToAllSessions = 2; - -enum NSNotificationSuspensionBehavior { - NSNotificationSuspensionBehaviorDrop(1), - NSNotificationSuspensionBehaviorCoalesce(2), - NSNotificationSuspensionBehaviorHold(3), - NSNotificationSuspensionBehaviorDeliverImmediately(4); - - final int value; - const NSNotificationSuspensionBehavior(this.value); - - static NSNotificationSuspensionBehavior fromValue(int value) => - switch (value) { - 1 => NSNotificationSuspensionBehaviorDrop, - 2 => NSNotificationSuspensionBehaviorCoalesce, - 3 => NSNotificationSuspensionBehaviorHold, - 4 => NSNotificationSuspensionBehaviorDeliverImmediately, - _ => throw ArgumentError( - 'Unknown value for NSNotificationSuspensionBehavior: $value', - ), - }; -} - -/// WARNING: NSNumberFormatter is a stub. To generate bindings for this class, include -/// NSNumberFormatter in your config's objc-interfaces list. -/// -/// NSNumberFormatter -extension type NSNumberFormatter._(objc.ObjCObject object$) - implements objc.ObjCObject, NSFormatter { - /// Constructs a [NSNumberFormatter] that points to the same underlying object as [other]. - NSNumberFormatter.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSNumberFormatter] that wraps the given raw object pointer. - NSNumberFormatter.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -enum NSNumberFormatterBehavior { - NSNumberFormatterBehaviorDefault(0), - NSNumberFormatterBehavior10_0(1000), - NSNumberFormatterBehavior10_4(1040); - - final int value; - const NSNumberFormatterBehavior(this.value); - - static NSNumberFormatterBehavior fromValue(int value) => switch (value) { - 0 => NSNumberFormatterBehaviorDefault, - 1000 => NSNumberFormatterBehavior10_0, - 1040 => NSNumberFormatterBehavior10_4, - _ => throw ArgumentError( - 'Unknown value for NSNumberFormatterBehavior: $value', - ), - }; -} - -/// NSNumberFormatterCompatibility -extension NSNumberFormatterCompatibility on NSNumberFormatter { - /// attributedStringForNil - objc.NSAttributedString get attributedStringForNil { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_attributedStringForNil, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// attributedStringForNotANumber - objc.NSAttributedString get attributedStringForNotANumber { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_attributedStringForNotANumber, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// attributedStringForZero - objc.NSAttributedString get attributedStringForZero { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_attributedStringForZero, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// format - objc.NSString get format { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_format); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// hasThousandSeparators - bool get hasThousandSeparators { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_hasThousandSeparators); - } - - /// localizesFormat - bool get localizesFormat { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_localizesFormat); - } - - /// roundingBehavior - NSDecimalNumberHandler get roundingBehavior { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_roundingBehavior); - return NSDecimalNumberHandler.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// setAttributedStringForNil: - set attributedStringForNil(objc.NSAttributedString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setAttributedStringForNil_, - _$$ref$1.pointer, - ); - } - - /// setAttributedStringForNotANumber: - set attributedStringForNotANumber(objc.NSAttributedString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setAttributedStringForNotANumber_, - _$$ref$1.pointer, - ); - } - - /// setAttributedStringForZero: - set attributedStringForZero(objc.NSAttributedString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setAttributedStringForZero_, - _$$ref$1.pointer, - ); - } - - /// setFormat: - set format(objc.NSString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setFormat_, _$$ref$1.pointer); - } - - /// setHasThousandSeparators: - set hasThousandSeparators(bool value) { - final _$$ref = object$.ref; - _objc_msgSend_1s4gila( - _$$ref.pointer, - _sel_setHasThousandSeparators_, - value, - ); - } - - /// setLocalizesFormat: - set localizesFormat(bool value) { - final _$$ref = object$.ref; - _objc_msgSend_1s4gila(_$$ref.pointer, _sel_setLocalizesFormat_, value); - } - - /// setRoundingBehavior: - set roundingBehavior(NSDecimalNumberHandler value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setRoundingBehavior_, - _$$ref$1.pointer, - ); - } - - /// setThousandSeparator: - set thousandSeparator(objc.NSString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setThousandSeparator_, - _$$ref$1.pointer, - ); - } - - /// thousandSeparator - objc.NSString get thousandSeparator { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_thousandSeparator); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -enum NSNumberFormatterPadPosition { - NSNumberFormatterPadBeforePrefix(0), - NSNumberFormatterPadAfterPrefix(1), - NSNumberFormatterPadBeforeSuffix(2), - NSNumberFormatterPadAfterSuffix(3); - - final int value; - const NSNumberFormatterPadPosition(this.value); - - static NSNumberFormatterPadPosition fromValue(int value) => switch (value) { - 0 => NSNumberFormatterPadBeforePrefix, - 1 => NSNumberFormatterPadAfterPrefix, - 2 => NSNumberFormatterPadBeforeSuffix, - 3 => NSNumberFormatterPadAfterSuffix, - _ => throw ArgumentError( - 'Unknown value for NSNumberFormatterPadPosition: $value', - ), - }; -} - -enum NSNumberFormatterRoundingMode { - NSNumberFormatterRoundCeiling(0), - NSNumberFormatterRoundFloor(1), - NSNumberFormatterRoundDown(2), - NSNumberFormatterRoundUp(3), - NSNumberFormatterRoundHalfEven(4), - NSNumberFormatterRoundHalfDown(5), - NSNumberFormatterRoundHalfUp(6); - - final int value; - const NSNumberFormatterRoundingMode(this.value); - - static NSNumberFormatterRoundingMode fromValue(int value) => switch (value) { - 0 => NSNumberFormatterRoundCeiling, - 1 => NSNumberFormatterRoundFloor, - 2 => NSNumberFormatterRoundDown, - 3 => NSNumberFormatterRoundUp, - 4 => NSNumberFormatterRoundHalfEven, - 5 => NSNumberFormatterRoundHalfDown, - 6 => NSNumberFormatterRoundHalfUp, - _ => throw ArgumentError( - 'Unknown value for NSNumberFormatterRoundingMode: $value', - ), - }; -} - -enum NSNumberFormatterStyle { - NSNumberFormatterNoStyle(0), - NSNumberFormatterDecimalStyle(1), - NSNumberFormatterCurrencyStyle(2), - NSNumberFormatterPercentStyle(3), - NSNumberFormatterScientificStyle(4), - NSNumberFormatterSpellOutStyle(5), - NSNumberFormatterOrdinalStyle(6), - NSNumberFormatterCurrencyISOCodeStyle(8), - NSNumberFormatterCurrencyPluralStyle(9), - NSNumberFormatterCurrencyAccountingStyle(10); - - final int value; - const NSNumberFormatterStyle(this.value); - - static NSNumberFormatterStyle fromValue(int value) => switch (value) { - 0 => NSNumberFormatterNoStyle, - 1 => NSNumberFormatterDecimalStyle, - 2 => NSNumberFormatterCurrencyStyle, - 3 => NSNumberFormatterPercentStyle, - 4 => NSNumberFormatterScientificStyle, - 5 => NSNumberFormatterSpellOutStyle, - 6 => NSNumberFormatterOrdinalStyle, - 8 => NSNumberFormatterCurrencyISOCodeStyle, - 9 => NSNumberFormatterCurrencyPluralStyle, - 10 => NSNumberFormatterCurrencyAccountingStyle, - _ => throw ArgumentError( - 'Unknown value for NSNumberFormatterStyle: $value', - ), - }; -} - -@Deprecated('Not supported') -const int NSOSF1OperatingSystem = 7; - -const int NSOpenStepUnicodeReservedBase = 62464; - -final class NSOperatingSystemVersion extends ffi.Struct { - @NSInteger() - external int majorVersion; - - @NSInteger() - external int minorVersion; - - @NSInteger() - external int patchVersion; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int majorVersion, - required int minorVersion, - required int patchVersion, - }) => $allocator() - ..ref.majorVersion = majorVersion - ..ref.minorVersion = minorVersion - ..ref.patchVersion = patchVersion; -} - -const int NSOperationNotSupportedForKeyScriptError = 9; - -const int NSOperationNotSupportedForKeySpecifierError = 6; - -/// WARNING: NSOperationQueue is a stub. To generate bindings for this class, include -/// NSOperationQueue in your config's objc-interfaces list. -/// -/// NSOperationQueue -extension type NSOperationQueue._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, NSProgressReporting { - /// Constructs a [NSOperationQueue] that points to the same underlying object as [other]. - NSOperationQueue.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSOperationQueue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } - - /// Constructs a [NSOperationQueue] that wraps the given raw object pointer. - NSOperationQueue.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSOperationQueue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } -} - -const int NSOperationQueueDefaultMaxConcurrentOperationCount = -1; - -enum NSOperationQueuePriority { - NSOperationQueuePriorityVeryLow(-8), - NSOperationQueuePriorityLow(-4), - NSOperationQueuePriorityNormal(0), - NSOperationQueuePriorityHigh(4), - NSOperationQueuePriorityVeryHigh(8); - - final int value; - const NSOperationQueuePriority(this.value); - - static NSOperationQueuePriority fromValue(int value) => switch (value) { - -8 => NSOperationQueuePriorityVeryLow, - -4 => NSOperationQueuePriorityLow, - 0 => NSOperationQueuePriorityNormal, - 4 => NSOperationQueuePriorityHigh, - 8 => NSOperationQueuePriorityVeryHigh, - _ => throw ArgumentError( - 'Unknown value for NSOperationQueuePriority: $value', - ), - }; -} - -/// NSOrderedPerform -extension NSOrderedPerform on objc.NSRunLoop { - /// cancelPerformSelector:target:argument: - void cancelPerformSelector( - ffi.Pointer aSelector, { - required objc.ObjCObject target, - objc.ObjCObject? argument, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = target.ref; - final _$$ref$2 = argument?.ref; - _objc_msgSend_1xnczpu( - _$$ref.pointer, - _sel_cancelPerformSelector_target_argument_, - aSelector, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// cancelPerformSelectorsWithTarget: - void cancelPerformSelectorsWithTarget(objc.ObjCObject target) { - final _$$ref = object$.ref; - final _$$ref$1 = target.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_cancelPerformSelectorsWithTarget_, - _$$ref$1.pointer, - ); - } - - /// performSelector:target:argument:order:modes: - void performSelector$3( - ffi.Pointer aSelector, { - required objc.ObjCObject target, - objc.ObjCObject? argument, - required DartNSUInteger order, - required objc.NSArray modes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = target.ref; - final _$$ref$2 = argument?.ref; - final _$$ref$3 = modes.ref; - _objc_msgSend_jt5cno( - _$$ref.pointer, - _sel_performSelector_target_argument_order_modes_, - aSelector, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - order, - _$$ref$3.pointer, - ); - } -} - -/// NSOrderedSetCreation -extension NSOrderedSetCreation on objc.NSOrderedSet { - /// initWithArray: - objc.NSOrderedSet initWithArray(objc.NSArray array) { - final _$$ref = object$.ref; - final _$$ref$1 = array.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - objc.NSOrderedSet initWithArray$1( - objc.NSArray set, { - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_umhdr9( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithArray:range:copyItems: - objc.NSOrderedSet initWithArray$2( - objc.NSArray set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_19akr8a( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_range_copyItems_, - _$$ref$1.pointer, - range, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithObject: - objc.NSOrderedSet initWithObject(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithObject_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithObjects: - objc.NSOrderedSet initWithObjects$1(objc.ObjCObject firstObj) { - final _$$ref = object$.ref; - final _$$ref$1 = firstObj.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjects_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithOrderedSet: - objc.NSOrderedSet initWithOrderedSet(objc.NSOrderedSet set) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithOrderedSet:copyItems: - objc.NSOrderedSet initWithOrderedSet$1( - objc.NSOrderedSet set, { - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_umhdr9( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithOrderedSet:range:copyItems: - objc.NSOrderedSet initWithOrderedSet$2( - objc.NSOrderedSet set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_19akr8a( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_range_copyItems_, - _$$ref$1.pointer, - range, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet: - objc.NSOrderedSet initWithSet(objc.NSSet set) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - objc.NSOrderedSet initWithSet$1(objc.NSSet set, {required bool copyItems}) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_umhdr9( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// orderedSet - static objc.NSOrderedSet orderedSet() { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zldla2(_class_NSOrderedSet, _sel_orderedSet); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithArray: - static objc.NSOrderedSet orderedSetWithArray(objc.NSArray array) { - final _$$ref = array.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSOrderedSet, - _sel_orderedSetWithArray_, - _$$ref.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithArray:range:copyItems: - static objc.NSOrderedSet orderedSetWithArray$1( - objc.NSArray array, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = array.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_19akr8a( - _class_NSOrderedSet, - _sel_orderedSetWithArray_range_copyItems_, - _$$ref.pointer, - range, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObject: - static objc.NSOrderedSet orderedSetWithObject(objc.ObjCObject object) { - final _$$ref = object.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSOrderedSet, - _sel_orderedSetWithObject_, - _$$ref.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObjects: - static objc.NSOrderedSet orderedSetWithObjects(objc.ObjCObject firstObj) { - final _$$ref = firstObj.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSOrderedSet, - _sel_orderedSetWithObjects_, - _$$ref.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObjects:count: - static objc.NSOrderedSet orderedSetWithObjects$1( - ffi.Pointer> objects, { - required DartNSUInteger count, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1u4qka1( - _class_NSOrderedSet, - _sel_orderedSetWithObjects_count_, - objects, - count, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet: - static objc.NSOrderedSet orderedSetWithOrderedSet(objc.NSOrderedSet set) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_, - _$$ref.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet:range:copyItems: - static objc.NSOrderedSet orderedSetWithOrderedSet$1( - objc.NSOrderedSet set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_19akr8a( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_range_copyItems_, - _$$ref.pointer, - range, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithSet: - static objc.NSOrderedSet orderedSetWithSet(objc.NSSet set) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSOrderedSet, - _sel_orderedSetWithSet_, - _$$ref.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithSet:copyItems: - static objc.NSOrderedSet orderedSetWithSet$1( - objc.NSSet set, { - required bool copyItems, - }) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_umhdr9( - _class_NSOrderedSet, - _sel_orderedSetWithSet_copyItems_, - _$$ref.pointer, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } -} - -/// NSOrderedSetDiffing -extension NSOrderedSetDiffing on objc.NSOrderedSet { - /// differenceFromOrderedSet: - objc.NSOrderedCollectionDifference differenceFromOrderedSet( - objc.NSOrderedSet other, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.differenceFromOrderedSet:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_differenceFromOrderedSet_, - _$$ref$1.pointer, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// differenceFromOrderedSet:withOptions: - objc.NSOrderedCollectionDifference differenceFromOrderedSet$1( - objc.NSOrderedSet other, { - required DartNSUInteger withOptions, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.differenceFromOrderedSet:withOptions:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_shgy3l( - _$$ref.pointer, - _sel_differenceFromOrderedSet_withOptions_, - _$$ref$1.pointer, - withOptions, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// differenceFromOrderedSet:withOptions:usingEquivalenceTest: - objc.NSOrderedCollectionDifference differenceFromOrderedSet$2( - objc.NSOrderedSet other, { - required DartNSUInteger withOptions, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingEquivalenceTest, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - final _$$ref$2 = usingEquivalenceTest.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.differenceFromOrderedSet:withOptions:usingEquivalenceTest:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_unrmat( - _$$ref.pointer, - _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_, - _$$ref$1.pointer, - withOptions, - _$$ref$2.pointer, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// orderedSetByApplyingDifference: - objc.NSOrderedSet? orderedSetByApplyingDifference( - objc.NSOrderedCollectionDifference difference, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = difference.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetByApplyingDifference:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_orderedSetByApplyingDifference_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSOrthography is a stub. To generate bindings for this class, include -/// NSOrthography in your config's objc-interfaces list. -/// -/// NSOrthography -extension type NSOrthography._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSOrthography] that points to the same underlying object as [other]. - NSOrthography.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSOrthography', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } - - /// Constructs a [NSOrthography] that wraps the given raw object pointer. - NSOrthography.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSOrthography', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } -} - -/// NSOrthographyCreation -extension NSOrthographyCreation on NSOrthography {} - -/// NSOrthographyExtended -extension NSOrthographyExtended on NSOrthography { - /// allLanguages - objc.NSArray get allLanguages { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSOrthography.allLanguages', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allLanguages); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// allScripts - objc.NSArray get allScripts { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSOrthography.allScripts', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allScripts); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// dominantLanguage - objc.NSString get dominantLanguage { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSOrthography.dominantLanguage', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_dominantLanguage); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// dominantLanguageForScript: - objc.NSString? dominantLanguageForScript(objc.NSString script) { - final _$$ref = object$.ref; - final _$$ref$1 = script.ref; - objc.checkOsVersionInternal( - 'NSOrthography.dominantLanguageForScript:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_dominantLanguageForScript_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// languagesForScript: - objc.NSArray? languagesForScript(objc.NSString script) { - final _$$ref = object$.ref; - final _$$ref$1 = script.ref; - objc.checkOsVersionInternal( - 'NSOrthography.languagesForScript:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_languagesForScript_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSOutputStreamExtensions -extension NSOutputStreamExtensions on objc.NSOutputStream { - /// initToFileAtPath:append: - objc.NSOutputStream? initToFileAtPath( - objc.NSString path, { - required bool append, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_umhdr9( - _$$ref.retainAndReturnPointer(), - _sel_initToFileAtPath_append_, - _$$ref$1.pointer, - append, - ); - return $ret.address == 0 - ? null - : objc.NSOutputStream.fromPointer($ret, retain: false, release: true); - } - - /// outputStreamToBuffer:capacity: - static objc.NSOutputStream outputStreamToBuffer( - ffi.Pointer buffer, { - required DartNSUInteger capacity, - }) { - final $ret = _objc_msgSend_1gqjits( - _class_NSOutputStream, - _sel_outputStreamToBuffer_capacity_, - buffer, - capacity, - ); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } - - /// outputStreamToFileAtPath:append: - static objc.NSOutputStream outputStreamToFileAtPath( - objc.NSString path, { - required bool append, - }) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_umhdr9( - _class_NSOutputStream, - _sel_outputStreamToFileAtPath_append_, - _$$ref.pointer, - append, - ); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } - - /// outputStreamToMemory - static objc.NSOutputStream outputStreamToMemory() { - final $ret = _objc_msgSend_zldla2( - _class_NSOutputStream, - _sel_outputStreamToMemory, - ); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } - - /// outputStreamWithURL:append: - static objc.NSOutputStream? outputStreamWithURL( - objc.NSURL url, { - required bool append, - }) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSOutputStream.outputStreamWithURL:append:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_umhdr9( - _class_NSOutputStream, - _sel_outputStreamWithURL_append_, - _$$ref.pointer, - append, - ); - return $ret.address == 0 - ? null - : objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } -} - -sealed class NSPersonNameComponentsFormatterOptions { - static const NSPersonNameComponentsFormatterPhonetic = 2; -} - -enum NSPersonNameComponentsFormatterStyle { - NSPersonNameComponentsFormatterStyleDefault(0), - NSPersonNameComponentsFormatterStyleShort(1), - NSPersonNameComponentsFormatterStyleMedium(2), - NSPersonNameComponentsFormatterStyleLong(3), - NSPersonNameComponentsFormatterStyleAbbreviated(4); - - final int value; - const NSPersonNameComponentsFormatterStyle(this.value); - - static NSPersonNameComponentsFormatterStyle fromValue(int value) => - switch (value) { - 0 => NSPersonNameComponentsFormatterStyleDefault, - 1 => NSPersonNameComponentsFormatterStyleShort, - 2 => NSPersonNameComponentsFormatterStyleMedium, - 3 => NSPersonNameComponentsFormatterStyleLong, - 4 => NSPersonNameComponentsFormatterStyleAbbreviated, - _ => throw ArgumentError( - 'Unknown value for NSPersonNameComponentsFormatterStyle: $value', - ), - }; -} - -typedef NSPoint = objc.CGPoint; -typedef NSPointArray = ffi.Pointer; -typedef NSPointPointer = ffi.Pointer; - -/// WARNING: NSPointerArray is a stub. To generate bindings for this class, include -/// NSPointerArray in your config's objc-interfaces list. -/// -/// NSPointerArray -extension type NSPointerArray._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSFastEnumeration, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSPointerArray] that points to the same underlying object as [other]. - NSPointerArray.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSPointerArray', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } - - /// Constructs a [NSPointerArray] that wraps the given raw object pointer. - NSPointerArray.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSPointerArray', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } -} - -/// NSPointerArrayConveniences -extension NSPointerArrayConveniences on NSPointerArray { - /// allObjects - objc.NSArray get allObjects { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSPointerArray.allObjects', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_allObjects); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// pointerArrayWithStrongObjects - @Deprecated('GC no longer supported') - static objc.ObjCObject pointerArrayWithStrongObjects() { - objc.checkOsVersionInternal( - 'NSPointerArray.pointerArrayWithStrongObjects', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSPointerArray, - _sel_pointerArrayWithStrongObjects, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// pointerArrayWithWeakObjects - @Deprecated('GC no longer supported') - static objc.ObjCObject pointerArrayWithWeakObjects() { - objc.checkOsVersionInternal( - 'NSPointerArray.pointerArrayWithWeakObjects', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSPointerArray, - _sel_pointerArrayWithWeakObjects, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// strongObjectsPointerArray - static NSPointerArray strongObjectsPointerArray() { - objc.checkOsVersionInternal( - 'NSPointerArray.strongObjectsPointerArray', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSPointerArray, - _sel_strongObjectsPointerArray, - ); - return NSPointerArray.fromPointer($ret, retain: true, release: true); - } - - /// weakObjectsPointerArray - static NSPointerArray weakObjectsPointerArray() { - objc.checkOsVersionInternal( - 'NSPointerArray.weakObjectsPointerArray', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSPointerArray, - _sel_weakObjectsPointerArray, - ); - return NSPointerArray.fromPointer($ret, retain: true, release: true); - } -} - -sealed class NSPointerFunctionsOptions { - static const NSPointerFunctionsStrongMemory = 0; - static const NSPointerFunctionsZeroingWeakMemory = 1; - static const NSPointerFunctionsOpaqueMemory = 2; - static const NSPointerFunctionsMallocMemory = 3; - static const NSPointerFunctionsMachVirtualMemory = 4; - static const NSPointerFunctionsWeakMemory = 5; - static const NSPointerFunctionsObjectPersonality = 0; - static const NSPointerFunctionsOpaquePersonality = 256; - static const NSPointerFunctionsObjectPointerPersonality = 512; - static const NSPointerFunctionsCStringPersonality = 768; - static const NSPointerFunctionsStructPersonality = 1024; - static const NSPointerFunctionsIntegerPersonality = 1280; - static const NSPointerFunctionsCopyIn = 65536; -} - -/// WARNING: NSPortCoder is a stub. To generate bindings for this class, include -/// NSPortCoder in your config's objc-interfaces list. -/// -/// NSPortCoder -@Deprecated('Use NSXPCConnection instead') -extension type NSPortCoder._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSCoder { - /// Constructs a [NSPortCoder] that points to the same underlying object as [other]. - NSPortCoder.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSPortCoder', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSPortCoder] that wraps the given raw object pointer. - NSPortCoder.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSPortCoder', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -enum NSPostingStyle { - NSPostWhenIdle(1), - NSPostASAP(2), - NSPostNow(3); - - final int value; - const NSPostingStyle(this.value); - - static NSPostingStyle fromValue(int value) => switch (value) { - 1 => NSPostWhenIdle, - 2 => NSPostASAP, - 3 => NSPostNow, - _ => throw ArgumentError('Unknown value for NSPostingStyle: $value'), - }; -} - -/// WARNING: NSPredicate is a stub. To generate bindings for this class, include -/// NSPredicate in your config's objc-interfaces list. -/// -/// NSPredicate -extension type NSPredicate._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSPredicate] that points to the same underlying object as [other]. - NSPredicate.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSPredicate', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } - - /// Constructs a [NSPredicate] that wraps the given raw object pointer. - NSPredicate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSPredicate', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } -} - -enum NSPredicateOperatorType { - NSLessThanPredicateOperatorType(0), - NSLessThanOrEqualToPredicateOperatorType(1), - NSGreaterThanPredicateOperatorType(2), - NSGreaterThanOrEqualToPredicateOperatorType(3), - NSEqualToPredicateOperatorType(4), - NSNotEqualToPredicateOperatorType(5), - NSMatchesPredicateOperatorType(6), - NSLikePredicateOperatorType(7), - NSBeginsWithPredicateOperatorType(8), - NSEndsWithPredicateOperatorType(9), - NSInPredicateOperatorType(10), - NSCustomSelectorPredicateOperatorType(11), - NSContainsPredicateOperatorType(99), - NSBetweenPredicateOperatorType(100); - - final int value; - const NSPredicateOperatorType(this.value); - - static NSPredicateOperatorType fromValue(int value) => switch (value) { - 0 => NSLessThanPredicateOperatorType, - 1 => NSLessThanOrEqualToPredicateOperatorType, - 2 => NSGreaterThanPredicateOperatorType, - 3 => NSGreaterThanOrEqualToPredicateOperatorType, - 4 => NSEqualToPredicateOperatorType, - 5 => NSNotEqualToPredicateOperatorType, - 6 => NSMatchesPredicateOperatorType, - 7 => NSLikePredicateOperatorType, - 8 => NSBeginsWithPredicateOperatorType, - 9 => NSEndsWithPredicateOperatorType, - 10 => NSInPredicateOperatorType, - 11 => NSCustomSelectorPredicateOperatorType, - 99 => NSContainsPredicateOperatorType, - 100 => NSBetweenPredicateOperatorType, - _ => throw ArgumentError( - 'Unknown value for NSPredicateOperatorType: $value', - ), - }; -} - -/// NSPredicateSupport -extension NSPredicateSupport on objc.NSArray { - /// filteredArrayUsingPredicate: - objc.NSArray filteredArrayUsingPredicate(NSPredicate predicate) { - final _$$ref = object$.ref; - final _$$ref$1 = predicate.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_filteredArrayUsingPredicate_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSPredicateSupport -extension NSPredicateSupport$1 on objc.NSSet { - /// filteredSetUsingPredicate: - objc.NSSet filteredSetUsingPredicate(NSPredicate predicate) { - final _$$ref = object$.ref; - final _$$ref$1 = predicate.ref; - objc.checkOsVersionInternal( - 'NSSet.filteredSetUsingPredicate:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_filteredSetUsingPredicate_, - _$$ref$1.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } -} - -/// NSPredicateSupport -extension NSPredicateSupport$2 on objc.NSMutableArray { - /// filterUsingPredicate: - void filterUsingPredicate(NSPredicate predicate) { - final _$$ref = object$.ref; - final _$$ref$1 = predicate.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_filterUsingPredicate_, - _$$ref$1.pointer, - ); - } -} - -/// NSPredicateSupport -extension NSPredicateSupport$3 on objc.NSMutableOrderedSet { - /// filterUsingPredicate: - void filterUsingPredicate(NSPredicate p) { - final _$$ref = object$.ref; - final _$$ref$1 = p.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.filterUsingPredicate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_filterUsingPredicate_, - _$$ref$1.pointer, - ); - } -} - -/// NSPredicateSupport -extension NSPredicateSupport$4 on objc.NSOrderedSet { - /// filteredOrderedSetUsingPredicate: - objc.NSOrderedSet filteredOrderedSetUsingPredicate(NSPredicate p) { - final _$$ref = object$.ref; - final _$$ref$1 = p.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.filteredOrderedSetUsingPredicate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_filteredOrderedSetUsingPredicate_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } -} - -/// NSPredicateSupport -extension NSPredicateSupport$5 on objc.NSMutableSet { - /// filterUsingPredicate: - void filterUsingPredicate(NSPredicate predicate) { - final _$$ref = object$.ref; - final _$$ref$1 = predicate.ref; - objc.checkOsVersionInternal( - 'NSMutableSet.filterUsingPredicate:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_filterUsingPredicate_, - _$$ref$1.pointer, - ); - } -} - -enum NSPresentationIntentKind { - NSPresentationIntentKindParagraph(0), - NSPresentationIntentKindHeader(1), - NSPresentationIntentKindOrderedList(2), - NSPresentationIntentKindUnorderedList(3), - NSPresentationIntentKindListItem(4), - NSPresentationIntentKindCodeBlock(5), - NSPresentationIntentKindBlockQuote(6), - NSPresentationIntentKindThematicBreak(7), - NSPresentationIntentKindTable(8), - NSPresentationIntentKindTableHeaderRow(9), - NSPresentationIntentKindTableRow(10), - NSPresentationIntentKindTableCell(11); - - final int value; - const NSPresentationIntentKind(this.value); - - static NSPresentationIntentKind fromValue(int value) => switch (value) { - 0 => NSPresentationIntentKindParagraph, - 1 => NSPresentationIntentKindHeader, - 2 => NSPresentationIntentKindOrderedList, - 3 => NSPresentationIntentKindUnorderedList, - 4 => NSPresentationIntentKindListItem, - 5 => NSPresentationIntentKindCodeBlock, - 6 => NSPresentationIntentKindBlockQuote, - 7 => NSPresentationIntentKindThematicBreak, - 8 => NSPresentationIntentKindTable, - 9 => NSPresentationIntentKindTableHeaderRow, - 10 => NSPresentationIntentKindTableRow, - 11 => NSPresentationIntentKindTableCell, - _ => throw ArgumentError( - 'Unknown value for NSPresentationIntentKind: $value', - ), - }; -} - -enum NSPresentationIntentTableColumnAlignment { - NSPresentationIntentTableColumnAlignmentLeft(0), - NSPresentationIntentTableColumnAlignmentCenter(1), - NSPresentationIntentTableColumnAlignmentRight(2); - - final int value; - const NSPresentationIntentTableColumnAlignment(this.value); - - static NSPresentationIntentTableColumnAlignment fromValue(int value) => - switch (value) { - 0 => NSPresentationIntentTableColumnAlignmentLeft, - 1 => NSPresentationIntentTableColumnAlignmentCenter, - 2 => NSPresentationIntentTableColumnAlignmentRight, - _ => throw ArgumentError( - 'Unknown value for NSPresentationIntentTableColumnAlignment: $value', - ), - }; -} - -/// NSPreviewSupport -extension NSPreviewSupport on objc.NSItemProvider { - /// loadPreviewImageWithOptions:completionHandler: - void loadPreviewImageWithOptions( - objc.NSDictionary options, { - required DartNSItemProviderCompletionHandler completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = options.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSItemProvider.loadPreviewImageWithOptions:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_9kuhjb( - _$$ref.pointer, - _sel_loadPreviewImageWithOptions_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// previewImageHandler - DartNSItemProviderLoadHandler? get previewImageHandler { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSItemProvider.previewImageHandler', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $ret = _objc_msgSend_13wc3w1( - _$$ref.pointer, - _sel_previewImageHandler, - ); - return $ret.address == 0 - ? null - : ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// setPreviewImageHandler: - set previewImageHandler(DartNSItemProviderLoadHandler? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSItemProvider.setPreviewImageHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_wv523k( - _$$ref.pointer, - _sel_setPreviewImageHandler_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// WARNING: NSProcessInfo is a stub. To generate bindings for this class, include -/// NSProcessInfo in your config's objc-interfaces list. -/// -/// NSProcessInfo -extension type NSProcessInfo._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSProcessInfo] that points to the same underlying object as [other]. - NSProcessInfo.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSProcessInfo] that wraps the given raw object pointer. - NSProcessInfo.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSProcessInfoActivity -extension NSProcessInfoActivity on NSProcessInfo { - /// beginActivityWithOptions:reason: - objc.NSObjectProtocol beginActivityWithOptions( - int options, { - required objc.NSString reason, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = reason.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.beginActivityWithOptions:reason:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_17734bn( - _$$ref.pointer, - _sel_beginActivityWithOptions_reason_, - options, - _$$ref$1.pointer, - ); - return objc.NSObjectProtocol.fromPointer($ret, retain: true, release: true); - } - - /// endActivity: - void endActivity(objc.NSObjectProtocol activity) { - final _$$ref = object$.ref; - final _$$ref$1 = activity.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.endActivity:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_endActivity_, _$$ref$1.pointer); - } - - /// performActivityWithOptions:reason:usingBlock: - void performActivityWithOptions( - int options, { - required objc.NSString reason, - required objc.ObjCBlock usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = reason.ref; - final _$$ref$2 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.performActivityWithOptions:reason:usingBlock:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1l105vx( - _$$ref.pointer, - _sel_performActivityWithOptions_reason_usingBlock_, - options, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// performExpiringActivityWithReason:usingBlock: - void performExpiringActivityWithReason( - objc.NSString reason, { - required objc.ObjCBlock usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = reason.ref; - final _$$ref$2 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.performExpiringActivityWithReason:usingBlock:', - iOS: (false, (8, 2, 0)), - macOS: (true, null), - ); - _objc_msgSend_9kuhjb( - _$$ref.pointer, - _sel_performExpiringActivityWithReason_usingBlock_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSProcessInfoPlatform -extension NSProcessInfoPlatform on NSProcessInfo { - /// isMacCatalystApp - bool get isMacCatalystApp { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.isMacCatalystApp', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isMacCatalystApp); - } - - /// isiOSAppOnMac - bool get isiOSAppOnMac { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.isiOSAppOnMac', - iOS: (false, (14, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isiOSAppOnMac); - } -} - -/// NSProcessInfoPowerState -extension NSProcessInfoPowerState on NSProcessInfo { - /// isLowPowerModeEnabled - bool get isLowPowerModeEnabled { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.isLowPowerModeEnabled', - iOS: (false, (9, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isLowPowerModeEnabled); - } -} - -enum NSProcessInfoThermalState { - NSProcessInfoThermalStateNominal(0), - NSProcessInfoThermalStateFair(1), - NSProcessInfoThermalStateSerious(2), - NSProcessInfoThermalStateCritical(3); - - final int value; - const NSProcessInfoThermalState(this.value); - - static NSProcessInfoThermalState fromValue(int value) => switch (value) { - 0 => NSProcessInfoThermalStateNominal, - 1 => NSProcessInfoThermalStateFair, - 2 => NSProcessInfoThermalStateSerious, - 3 => NSProcessInfoThermalStateCritical, - _ => throw ArgumentError( - 'Unknown value for NSProcessInfoThermalState: $value', - ), - }; -} - -/// NSProcessInfoThermalState -extension NSProcessInfoThermalState$1 on NSProcessInfo { - /// thermalState - NSProcessInfoThermalState get thermalState { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.thermalState', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 10, 3)), - ); - final $ret = _objc_msgSend_1lvlpux(_$$ref.pointer, _sel_thermalState); - return NSProcessInfoThermalState.fromValue($ret); - } -} - -typedef NSProgressFileOperationKind = ffi.Pointer; -typedef DartNSProgressFileOperationKind = objc.NSString; -typedef NSProgressKind = ffi.Pointer; -typedef DartNSProgressKind = objc.NSString; -typedef NSProgressPublishingHandler = ffi.Pointer; -typedef DartNSProgressPublishingHandler = - objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - >; - -/// NSProgressReporting -extension type NSProgressReporting._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSProgressReporting] that points to the same underlying object as [other]. - NSProgressReporting.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSProgressReporting] that wraps the given raw object pointer. - NSProgressReporting.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSProgressReporting]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSProgressReporting, - ); - } -} - -extension NSProgressReporting$Methods on NSProgressReporting { - /// progress - objc.NSProgress get progress { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_progress); - return objc.NSProgress.fromPointer($ret, retain: true, release: true); - } -} - -interface class NSProgressReporting$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSProgressReporting.cast()); - - /// Builds an object that implements the NSProgressReporting protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSProgressReporting implement({ - required objc.NSProgress Function() progress, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSProgressReporting'); - NSProgressReporting$Builder.progress.implement(builder, progress); - builder.addProtocol($protocol); - return NSProgressReporting.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSProgressReporting protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.NSProgress Function() progress, - bool $keepIsolateAlive = true, - }) { - NSProgressReporting$Builder.progress.implement(builder, progress); - builder.addProtocol($protocol); - } - - /// progress - static final progress = objc.ObjCProtocolMethod( - _protocol_NSProgressReporting, - _sel_progress, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSProgressReporting, - _sel_progress, - isRequired: true, - isInstanceMethod: true, - ), - (objc.NSProgress Function() func) => - ObjCBlock_NSProgress_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); -} - -typedef NSProgressUnpublishingHandler = ffi.Pointer; -typedef DartNSProgressUnpublishingHandler = objc.ObjCBlock; -typedef NSProgressUserInfoKey = ffi.Pointer; -typedef DartNSProgressUserInfoKey = objc.NSString; - -/// NSPromisedItems -extension NSPromisedItems on objc.NSURL { - /// checkPromisedItemIsReachableAndReturnError: - bool checkPromisedItemIsReachableAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.checkPromisedItemIsReachableAndReturnError:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1tjz0jr( - _$$ref.pointer, - _sel_checkPromisedItemIsReachableAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// getPromisedItemResourceValue:forKey:error: - bool getPromisedItemResourceValue( - ffi.Pointer> value, { - required DartNSURLResourceKey forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - objc.checkOsVersionInternal( - 'NSURL.getPromisedItemResourceValue:forKey:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1fh46zu( - _$$ref.pointer, - _sel_getPromisedItemResourceValue_forKey_error_, - value, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// promisedItemResourceValuesForKeys:error: - objc.NSDictionary? promisedItemResourceValuesForKeys(objc.NSArray keys) { - final _$$ref = object$.ref; - final _$$ref$1 = keys.ref; - objc.checkOsVersionInternal( - 'NSURL.promisedItemResourceValuesForKeys:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1a2vk5h( - _$$ref.pointer, - _sel_promisedItemResourceValuesForKeys_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -const int NSPropertyListErrorMaximum = 4095; - -const int NSPropertyListErrorMinimum = 3840; - -sealed class NSPropertyListMutabilityOptions { - static const NSPropertyListImmutable = 0; - static const NSPropertyListMutableContainers = 1; - static const NSPropertyListMutableContainersAndLeaves = 2; -} - -const int NSPropertyListReadCorruptError = 3840; - -const int NSPropertyListReadStreamError = 3842; - -const int NSPropertyListReadUnknownVersionError = 3841; - -const int NSPropertyListWriteInvalidError = 3852; - -typedef NSPropertyListWriteOptions = NSUInteger; - -const int NSPropertyListWriteStreamError = 3851; - -const int NSProprietaryStringEncoding = 65536; - -/// WARNING: NSProtocolChecker is a stub. To generate bindings for this class, include -/// NSProtocolChecker in your config's objc-interfaces list. -/// -/// NSProtocolChecker -extension type NSProtocolChecker._(objc.ObjCObject object$) - implements objc.ObjCObject, NSProxy { - /// Constructs a [NSProtocolChecker] that points to the same underlying object as [other]. - NSProtocolChecker.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSProtocolChecker] that wraps the given raw object pointer. - NSProtocolChecker.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSProtocolCheckerCreation -extension NSProtocolCheckerCreation on NSProtocolChecker {} - -/// WARNING: NSProxy is a stub. To generate bindings for this class, include -/// NSProxy in your config's objc-interfaces list. -/// -/// NSProxy -extension type NSProxy._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObjectProtocol { - /// Constructs a [NSProxy] that points to the same underlying object as [other]. - NSProxy.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSProxy] that wraps the given raw object pointer. - NSProxy.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -typedef NSRange = objc.NSRange; -typedef NSRangePointer = ffi.Pointer; - -const int NSReceiverEvaluationScriptError = 1; - -const int NSReceiversCantHandleCommandScriptError = 4; - -typedef NSRect = objc.CGRect; -typedef NSRectArray = ffi.Pointer; - -enum NSRectEdge { - NSRectEdgeMinX(0), - NSRectEdgeMinY(1), - NSRectEdgeMaxX(2), - NSRectEdgeMaxY(3); - - static const NSMinXEdge = NSRectEdgeMinX; - static const NSMinYEdge = NSRectEdgeMinY; - static const NSMaxXEdge = NSRectEdgeMaxX; - static const NSMaxYEdge = NSRectEdgeMaxY; - - final int value; - const NSRectEdge(this.value); - - static NSRectEdge fromValue(int value) => switch (value) { - 0 => NSRectEdgeMinX, - 1 => NSRectEdgeMinY, - 2 => NSRectEdgeMaxX, - 3 => NSRectEdgeMaxY, - _ => throw ArgumentError('Unknown value for NSRectEdge: $value'), - }; - - @override - String toString() { - if (this == NSRectEdgeMinX) - return "NSRectEdge.NSRectEdgeMinX, NSRectEdge.NSMinXEdge"; - if (this == NSRectEdgeMinY) - return "NSRectEdge.NSRectEdgeMinY, NSRectEdge.NSMinYEdge"; - if (this == NSRectEdgeMaxX) - return "NSRectEdge.NSRectEdgeMaxX, NSRectEdge.NSMaxXEdge"; - if (this == NSRectEdgeMaxY) - return "NSRectEdge.NSRectEdgeMaxY, NSRectEdge.NSMaxYEdge"; - return super.toString(); - } -} - -typedef NSRectPointer = ffi.Pointer; - -/// WARNING: NSRegularExpression is a stub. To generate bindings for this class, include -/// NSRegularExpression in your config's objc-interfaces list. -/// -/// NSRegularExpression -extension type NSRegularExpression._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSRegularExpression] that points to the same underlying object as [other]. - NSRegularExpression.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSRegularExpression', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } - - /// Constructs a [NSRegularExpression] that wraps the given raw object pointer. - NSRegularExpression.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSRegularExpression', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } -} - -sealed class NSRegularExpressionOptions { - static const NSRegularExpressionCaseInsensitive = 1; - static const NSRegularExpressionAllowCommentsAndWhitespace = 2; - static const NSRegularExpressionIgnoreMetacharacters = 4; - static const NSRegularExpressionDotMatchesLineSeparators = 8; - static const NSRegularExpressionAnchorsMatchLines = 16; - static const NSRegularExpressionUseUnixLineSeparators = 32; - static const NSRegularExpressionUseUnicodeWordBoundaries = 64; -} - -enum NSRelativeDateTimeFormatterStyle { - NSRelativeDateTimeFormatterStyleNumeric(0), - NSRelativeDateTimeFormatterStyleNamed(1); - - final int value; - const NSRelativeDateTimeFormatterStyle(this.value); - - static NSRelativeDateTimeFormatterStyle fromValue(int value) => - switch (value) { - 0 => NSRelativeDateTimeFormatterStyleNumeric, - 1 => NSRelativeDateTimeFormatterStyleNamed, - _ => throw ArgumentError( - 'Unknown value for NSRelativeDateTimeFormatterStyle: $value', - ), - }; -} - -enum NSRelativeDateTimeFormatterUnitsStyle { - NSRelativeDateTimeFormatterUnitsStyleFull(0), - NSRelativeDateTimeFormatterUnitsStyleSpellOut(1), - NSRelativeDateTimeFormatterUnitsStyleShort(2), - NSRelativeDateTimeFormatterUnitsStyleAbbreviated(3); - - final int value; - const NSRelativeDateTimeFormatterUnitsStyle(this.value); - - static NSRelativeDateTimeFormatterUnitsStyle fromValue(int value) => - switch (value) { - 0 => NSRelativeDateTimeFormatterUnitsStyleFull, - 1 => NSRelativeDateTimeFormatterUnitsStyleSpellOut, - 2 => NSRelativeDateTimeFormatterUnitsStyleShort, - 3 => NSRelativeDateTimeFormatterUnitsStyleAbbreviated, - _ => throw ArgumentError( - 'Unknown value for NSRelativeDateTimeFormatterUnitsStyle: $value', - ), - }; -} - -enum NSRelativePosition { - NSRelativeAfter(0), - NSRelativeBefore(1); - - final int value; - const NSRelativePosition(this.value); - - static NSRelativePosition fromValue(int value) => switch (value) { - 0 => NSRelativeAfter, - 1 => NSRelativeBefore, - _ => throw ArgumentError('Unknown value for NSRelativePosition: $value'), - }; -} - -/// NSReplacement -extension NSReplacement on NSRegularExpression { - /// replaceMatchesInString:options:range:withTemplate: - DartNSUInteger replaceMatchesInString( - objc.NSMutableString string, { - required DartNSUInteger options, - required NSRange range, - required objc.NSString withTemplate, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - final _$$ref$2 = withTemplate.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.replaceMatchesInString:options:range:withTemplate:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_1vgbqmt( - _$$ref.pointer, - _sel_replaceMatchesInString_options_range_withTemplate_, - _$$ref$1.pointer, - options, - range, - _$$ref$2.pointer, - ); - } - - /// replacementStringForResult:inString:offset:template: - objc.NSString replacementStringForResult( - NSTextCheckingResult result, { - required objc.NSString inString, - required DartNSInteger offset, - required objc.NSString template, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = result.ref; - final _$$ref$2 = inString.ref; - final _$$ref$3 = template.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.replacementStringForResult:inString:offset:template:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sptcho( - _$$ref.pointer, - _sel_replacementStringForResult_inString_offset_template_, - _$$ref$1.pointer, - _$$ref$2.pointer, - offset, - _$$ref$3.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByReplacingMatchesInString:options:range:withTemplate: - objc.NSString stringByReplacingMatchesInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - required objc.NSString withTemplate, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - final _$$ref$2 = withTemplate.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.stringByReplacingMatchesInString:options:range:withTemplate:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_11r004b( - _$$ref.pointer, - _sel_stringByReplacingMatchesInString_options_range_withTemplate_, - _$$ref$1.pointer, - options, - range, - _$$ref$2.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// escapedTemplateForString: - static objc.NSString escapedTemplateForString(objc.NSString string) { - final _$$ref = string.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.escapedTemplateForString:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSRegularExpression, - _sel_escapedTemplateForString_, - _$$ref.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -const int NSRequiredArgumentsMissingScriptError = 5; - -enum NSRoundingMode { - NSRoundPlain(0), - NSRoundDown(1), - NSRoundUp(2), - NSRoundBankers(3); - - final int value; - const NSRoundingMode(this.value); - - static NSRoundingMode fromValue(int value) => switch (value) { - 0 => NSRoundPlain, - 1 => NSRoundDown, - 2 => NSRoundUp, - 3 => NSRoundBankers, - _ => throw ArgumentError('Unknown value for NSRoundingMode: $value'), - }; -} - -/// NSRunLoopConveniences -extension NSRunLoopConveniences on objc.NSRunLoop { - /// configureAsServer - @Deprecated('Not supported') - void configureAsServer() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSRunLoop.configureAsServer', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_configureAsServer); - } - - /// performBlock: - void performBlock(objc.ObjCBlock block) { - final _$$ref = object$.ref; - final _$$ref$1 = block.ref; - objc.checkOsVersionInternal( - 'NSRunLoop.performBlock:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - _objc_msgSend_wv523k(_$$ref.pointer, _sel_performBlock_, _$$ref$1.pointer); - } - - /// performInModes:block: - void performInModes( - objc.NSArray modes, { - required objc.ObjCBlock block, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = modes.ref; - final _$$ref$2 = block.ref; - objc.checkOsVersionInternal( - 'NSRunLoop.performInModes:block:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - _objc_msgSend_9kuhjb( - _$$ref.pointer, - _sel_performInModes_block_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// run - void run() { - final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_run); - } - - /// runMode:beforeDate: - bool runMode(DartNSRunLoopMode mode, {required objc.NSDate beforeDate}) { - final _$$ref = object$.ref; - final _$$ref$1 = mode.ref; - final _$$ref$2 = beforeDate.ref; - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_runMode_beforeDate_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// runUntilDate: - void runUntilDate(objc.NSDate limitDate) { - final _$$ref = object$.ref; - final _$$ref$1 = limitDate.ref; - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_runUntilDate_, _$$ref$1.pointer); - } -} - -typedef NSRunLoopMode = ffi.Pointer; -typedef DartNSRunLoopMode = objc.NSString; - -enum NSSaveOptions { - NSSaveOptionsYes(0), - NSSaveOptionsNo(1), - NSSaveOptionsAsk(2); - - final int value; - const NSSaveOptions(this.value); - - static NSSaveOptions fromValue(int value) => switch (value) { - 0 => NSSaveOptionsYes, - 1 => NSSaveOptionsNo, - 2 => NSSaveOptionsAsk, - _ => throw ArgumentError('Unknown value for NSSaveOptions: $value'), - }; -} - -const int NSScannedOption = 1; - -/// WARNING: NSScanner is a stub. To generate bindings for this class, include -/// NSScanner in your config's objc-interfaces list. -/// -/// NSScanner -extension type NSScanner._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCopying { - /// Constructs a [NSScanner] that points to the same underlying object as [other]. - NSScanner.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSScanner] that wraps the given raw object pointer. - NSScanner.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSScriptClassDescription -extension NSScriptClassDescription on objc.NSObject { - /// classCode - DartUInt32 get classCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classCode', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_pxpqpv(_$$ref.pointer, _sel_classCode); - } - - /// className - objc.NSString get className { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.className', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_className); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSScriptClassDescription$1 is a stub. To generate bindings for this class, include -/// NSScriptClassDescription in your config's objc-interfaces list. -/// -/// NSScriptClassDescription -extension type NSScriptClassDescription$1._(objc.ObjCObject object$) - implements objc.ObjCObject, NSClassDescription { - /// Constructs a [NSScriptClassDescription$1] that points to the same underlying object as [other]. - NSScriptClassDescription$1.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSScriptClassDescription$1] that wraps the given raw object pointer. - NSScriptClassDescription$1.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSScriptKeyValueCoding -extension NSScriptKeyValueCoding on objc.NSObject { - /// coerceValue:forKey: - objc.ObjCObject? coerceValue( - objc.ObjCObject? value, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.coerceValue:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_coerceValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// insertValue:atIndex:inPropertyWithKey: - void insertValue( - objc.ObjCObject value, { - required DartNSUInteger atIndex, - required objc.NSString inPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - final _$$ref$2 = inPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.insertValue:atIndex:inPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_15jmnhb( - _$$ref.pointer, - _sel_insertValue_atIndex_inPropertyWithKey_, - _$$ref$1.pointer, - atIndex, - _$$ref$2.pointer, - ); - } - - /// insertValue:inPropertyWithKey: - void insertValue$1( - objc.ObjCObject value, { - required objc.NSString inPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - final _$$ref$2 = inPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.insertValue:inPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_insertValue_inPropertyWithKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeValueAtIndex:fromPropertyWithKey: - void removeValueAtIndex( - DartNSUInteger index$1, { - required objc.NSString fromPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fromPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.removeValueAtIndex:fromPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_s0nvsa( - _$$ref.pointer, - _sel_removeValueAtIndex_fromPropertyWithKey_, - index$1, - _$$ref$1.pointer, - ); - } - - /// replaceValueAtIndex:inPropertyWithKey:withValue: - void replaceValueAtIndex( - DartNSUInteger index$1, { - required objc.NSString inPropertyWithKey, - required objc.ObjCObject withValue, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = inPropertyWithKey.ref; - final _$$ref$2 = withValue.ref; - objc.checkOsVersionInternal( - 'NSObject.replaceValueAtIndex:inPropertyWithKey:withValue:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_137o7cl( - _$$ref.pointer, - _sel_replaceValueAtIndex_inPropertyWithKey_withValue_, - index$1, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// valueAtIndex:inPropertyWithKey: - objc.ObjCObject? valueAtIndex( - DartNSUInteger index$1, { - required objc.NSString inPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = inPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.valueAtIndex:inPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1n14wj8( - _$$ref.pointer, - _sel_valueAtIndex_inPropertyWithKey_, - index$1, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// valueWithName:inPropertyWithKey: - objc.ObjCObject? valueWithName( - objc.NSString name, { - required objc.NSString inPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = name.ref; - final _$$ref$2 = inPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.valueWithName:inPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_valueWithName_inPropertyWithKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// valueWithUniqueID:inPropertyWithKey: - objc.ObjCObject? valueWithUniqueID( - objc.ObjCObject uniqueID, { - required objc.NSString inPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = uniqueID.ref; - final _$$ref$2 = inPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.valueWithUniqueID:inPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_valueWithUniqueID_inPropertyWithKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// WARNING: NSScriptObjectSpecifier is a stub. To generate bindings for this class, include -/// NSScriptObjectSpecifier in your config's objc-interfaces list. -/// -/// NSScriptObjectSpecifier -extension type NSScriptObjectSpecifier._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCoding { - /// Constructs a [NSScriptObjectSpecifier] that points to the same underlying object as [other]. - NSScriptObjectSpecifier.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSScriptObjectSpecifier] that wraps the given raw object pointer. - NSScriptObjectSpecifier.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSScriptObjectSpecifiers -extension NSScriptObjectSpecifiers on objc.NSObject { - /// indicesOfObjectsByEvaluatingObjectSpecifier: - objc.NSArray? indicesOfObjectsByEvaluatingObjectSpecifier( - NSScriptObjectSpecifier specifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = specifier.ref; - objc.checkOsVersionInternal( - 'NSObject.indicesOfObjectsByEvaluatingObjectSpecifier:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_indicesOfObjectsByEvaluatingObjectSpecifier_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// objectSpecifier - NSScriptObjectSpecifier? get objectSpecifier { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.objectSpecifier', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_objectSpecifier); - return $ret.address == 0 - ? null - : NSScriptObjectSpecifier.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSScripting -extension NSScripting on objc.NSObject { - /// copyScriptingValue:forKey:withProperties: - objc.ObjCObject? copyScriptingValue( - objc.ObjCObject value, { - required objc.NSString forKey, - required objc.NSDictionary withProperties, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - final _$$ref$2 = forKey.ref; - final _$$ref$3 = withProperties.ref; - objc.checkOsVersionInternal( - 'NSObject.copyScriptingValue:forKey:withProperties:', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_1mevadz( - _$$ref.pointer, - _sel_copyScriptingValue_forKey_withProperties_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// newScriptingObjectOfClass:forValueForKey:withContentsValue:properties: - objc.ObjCObject? newScriptingObjectOfClass( - objc.ObjCObject objectClass, { - required objc.NSString forValueForKey, - objc.ObjCObject? withContentsValue, - required objc.NSDictionary properties, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = objectClass.ref; - final _$$ref$2 = forValueForKey.ref; - final _$$ref$3 = withContentsValue?.ref; - final _$$ref$4 = properties.ref; - objc.checkOsVersionInternal( - 'NSObject.newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_1nxh0dy( - _$$ref.pointer, - _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// scriptingProperties - objc.NSDictionary? get scriptingProperties { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingProperties', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_scriptingProperties); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// scriptingValueForSpecifier: - objc.ObjCObject? scriptingValueForSpecifier( - NSScriptObjectSpecifier objectSpecifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = objectSpecifier.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingValueForSpecifier:', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_scriptingValueForSpecifier_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// setScriptingProperties: - set scriptingProperties(objc.NSDictionary? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSObject.setScriptingProperties:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_setScriptingProperties_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// NSScriptingComparisonMethods -extension NSScriptingComparisonMethods on objc.NSObject { - /// scriptingBeginsWith: - bool scriptingBeginsWith(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingBeginsWith:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_scriptingBeginsWith_, - _$$ref$1.pointer, - ); - } - - /// scriptingContains: - bool scriptingContains(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingContains:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_scriptingContains_, - _$$ref$1.pointer, - ); - } - - /// scriptingEndsWith: - bool scriptingEndsWith(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingEndsWith:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_scriptingEndsWith_, - _$$ref$1.pointer, - ); - } - - /// scriptingIsEqualTo: - bool scriptingIsEqualTo(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingIsEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_scriptingIsEqualTo_, - _$$ref$1.pointer, - ); - } - - /// scriptingIsGreaterThan: - bool scriptingIsGreaterThan(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingIsGreaterThan:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_scriptingIsGreaterThan_, - _$$ref$1.pointer, - ); - } - - /// scriptingIsGreaterThanOrEqualTo: - bool scriptingIsGreaterThanOrEqualTo(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingIsGreaterThanOrEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_scriptingIsGreaterThanOrEqualTo_, - _$$ref$1.pointer, - ); - } - - /// scriptingIsLessThan: - bool scriptingIsLessThan(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingIsLessThan:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_scriptingIsLessThan_, - _$$ref$1.pointer, - ); - } - - /// scriptingIsLessThanOrEqualTo: - bool scriptingIsLessThanOrEqualTo(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingIsLessThanOrEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_scriptingIsLessThanOrEqualTo_, - _$$ref$1.pointer, - ); - } -} - -enum NSSearchPathDirectory { - NSApplicationDirectory(1), - NSDemoApplicationDirectory(2), - NSDeveloperApplicationDirectory(3), - NSAdminApplicationDirectory(4), - NSLibraryDirectory(5), - NSDeveloperDirectory(6), - NSUserDirectory(7), - NSDocumentationDirectory(8), - NSDocumentDirectory(9), - NSCoreServiceDirectory(10), - NSAutosavedInformationDirectory(11), - NSDesktopDirectory(12), - NSCachesDirectory(13), - NSApplicationSupportDirectory(14), - NSDownloadsDirectory(15), - NSInputMethodsDirectory(16), - NSMoviesDirectory(17), - NSMusicDirectory(18), - NSPicturesDirectory(19), - NSPrinterDescriptionDirectory(20), - NSSharedPublicDirectory(21), - NSPreferencePanesDirectory(22), - NSApplicationScriptsDirectory(23), - NSItemReplacementDirectory(99), - NSAllApplicationsDirectory(100), - NSAllLibrariesDirectory(101), - NSTrashDirectory(102); - - final int value; - const NSSearchPathDirectory(this.value); - - static NSSearchPathDirectory fromValue(int value) => switch (value) { - 1 => NSApplicationDirectory, - 2 => NSDemoApplicationDirectory, - 3 => NSDeveloperApplicationDirectory, - 4 => NSAdminApplicationDirectory, - 5 => NSLibraryDirectory, - 6 => NSDeveloperDirectory, - 7 => NSUserDirectory, - 8 => NSDocumentationDirectory, - 9 => NSDocumentDirectory, - 10 => NSCoreServiceDirectory, - 11 => NSAutosavedInformationDirectory, - 12 => NSDesktopDirectory, - 13 => NSCachesDirectory, - 14 => NSApplicationSupportDirectory, - 15 => NSDownloadsDirectory, - 16 => NSInputMethodsDirectory, - 17 => NSMoviesDirectory, - 18 => NSMusicDirectory, - 19 => NSPicturesDirectory, - 20 => NSPrinterDescriptionDirectory, - 21 => NSSharedPublicDirectory, - 22 => NSPreferencePanesDirectory, - 23 => NSApplicationScriptsDirectory, - 99 => NSItemReplacementDirectory, - 100 => NSAllApplicationsDirectory, - 101 => NSAllLibrariesDirectory, - 102 => NSTrashDirectory, - _ => throw ArgumentError('Unknown value for NSSearchPathDirectory: $value'), - }; -} - -sealed class NSSearchPathDomainMask { - static const NSUserDomainMask = 1; - static const NSLocalDomainMask = 2; - static const NSNetworkDomainMask = 4; - static const NSSystemDomainMask = 8; - static const NSAllDomainsMask = 65535; -} - -/// NSServerTrust -extension NSServerTrust on NSURLCredential { - /// credentialForTrust: - static NSURLCredential credentialForTrust(SecTrustRef trust) { - objc.checkOsVersionInternal( - 'NSURLCredential.credentialForTrust:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_162ofpt( - _class_NSURLCredential, - _sel_credentialForTrust_, - trust, - ); - return NSURLCredential.fromPointer($ret, retain: true, release: true); - } -} - -/// NSServerTrustValidationSpace -extension NSServerTrustValidationSpace on NSURLProtectionSpace { - /// serverTrust - SecTrustRef get serverTrust { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLProtectionSpace.serverTrust', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_dcpapu(_$$ref.pointer, _sel_serverTrust); - } -} - -/// NSSetCreation -extension NSSetCreation on objc.NSSet { - /// initWithArray: - objc.NSSet initWithArray(objc.NSArray array) { - final _$$ref = object$.ref; - final _$$ref$1 = array.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_, - _$$ref$1.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithObjects: - objc.NSSet initWithObjects$1(objc.ObjCObject firstObj) { - final _$$ref = object$.ref; - final _$$ref$1 = firstObj.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjects_, - _$$ref$1.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet: - objc.NSSet initWithSet(objc.NSSet set) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_, - _$$ref$1.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - objc.NSSet initWithSet$1(objc.NSSet set, {required bool copyItems}) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - final $ret = _objc_msgSend_umhdr9( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSSet.fromPointer($ret, retain: false, release: true); - } - - /// set - static objc.NSSet set() { - final $ret = _objc_msgSend_zldla2(_class_NSSet, _sel_set); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// setWithArray: - static objc.NSSet setWithArray(objc.NSArray array) { - final _$$ref = array.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSSet, - _sel_setWithArray_, - _$$ref.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// setWithObject: - static objc.NSSet setWithObject(objc.ObjCObject object) { - final _$$ref = object.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSSet, - _sel_setWithObject_, - _$$ref.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// setWithObjects: - static objc.NSSet setWithObjects(objc.ObjCObject firstObj) { - final _$$ref = firstObj.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSSet, - _sel_setWithObjects_, - _$$ref.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// setWithObjects:count: - static objc.NSSet setWithObjects$1( - ffi.Pointer> objects, { - required DartNSUInteger count, - }) { - final $ret = _objc_msgSend_1u4qka1( - _class_NSSet, - _sel_setWithObjects_count_, - objects, - count, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// setWithSet: - static objc.NSSet setWithSet(objc.NSSet set) { - final _$$ref = set.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSSet, - _sel_setWithSet_, - _$$ref.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } -} - -/// NSSharedKeySetDictionary -extension NSSharedKeySetDictionary on objc.NSDictionary { - /// sharedKeySetForKeys: - static objc.ObjCObject sharedKeySetForKeys(objc.NSArray keys) { - final _$$ref = keys.ref; - objc.checkOsVersionInternal( - 'NSDictionary.sharedKeySetForKeys:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSDictionary, - _sel_sharedKeySetForKeys_, - _$$ref.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSSharedKeySetDictionary -extension NSSharedKeySetDictionary$1 on objc.NSMutableDictionary { - /// dictionaryWithSharedKeySet: - static objc.NSMutableDictionary dictionaryWithSharedKeySet( - objc.ObjCObject keyset, - ) { - final _$$ref = keyset.ref; - objc.checkOsVersionInternal( - 'NSMutableDictionary.dictionaryWithSharedKeySet:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSMutableDictionary, - _sel_dictionaryWithSharedKeySet_, - _$$ref.pointer, - ); - return objc.NSMutableDictionary.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -const int NSShiftJISStringEncoding = 8; - -typedef NSSize = objc.CGSize; -typedef NSSizeArray = ffi.Pointer; -typedef NSSizePointer = ffi.Pointer; -typedef NSSocketNativeHandle = ffi.Int; -typedef DartNSSocketNativeHandle = int; - -/// NSSocketStreamCreationExtensions -extension NSSocketStreamCreationExtensions on objc.NSStream { - /// getStreamsToHost:port:inputStream:outputStream: - @Deprecated('Use nw_connection_t in Network framework instead') - static void getStreamsToHost( - NSHost host, { - required DartNSInteger port, - required ffi.Pointer> inputStream, - required ffi.Pointer> outputStream, - }) { - final _$$ref = host.ref; - objc.checkOsVersionInternal( - 'NSStream.getStreamsToHost:port:inputStream:outputStream:', - iOS: (true, null), - macOS: (false, (10, 3, 0)), - ); - _objc_msgSend_17kjafg( - _class_NSStream, - _sel_getStreamsToHost_port_inputStream_outputStream_, - _$$ref.pointer, - port, - inputStream, - outputStream, - ); - } - - /// getStreamsToHostWithName:port:inputStream:outputStream: - @Deprecated('Use nw_connection_t in Network framework instead') - static void getStreamsToHostWithName( - objc.NSString hostname, { - required DartNSInteger port, - required ffi.Pointer> inputStream, - required ffi.Pointer> outputStream, - }) { - final _$$ref = hostname.ref; - objc.checkOsVersionInternal( - 'NSStream.getStreamsToHostWithName:port:inputStream:outputStream:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_17kjafg( - _class_NSStream, - _sel_getStreamsToHostWithName_port_inputStream_outputStream_, - _$$ref.pointer, - port, - inputStream, - outputStream, - ); - } -} - -@Deprecated('Not supported') -const int NSSolarisOperatingSystem = 3; - -/// NSSortDescriptorSorting -extension NSSortDescriptorSorting on objc.NSArray { - /// sortedArrayUsingDescriptors: - objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { - final _$$ref = object$.ref; - final _$$ref$1 = sortDescriptors.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_sortedArrayUsingDescriptors_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSSortDescriptorSorting -extension NSSortDescriptorSorting$1 on objc.NSSet { - /// sortedArrayUsingDescriptors: - objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { - final _$$ref = object$.ref; - final _$$ref$1 = sortDescriptors.ref; - objc.checkOsVersionInternal( - 'NSSet.sortedArrayUsingDescriptors:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_sortedArrayUsingDescriptors_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSSortDescriptorSorting -extension NSSortDescriptorSorting$2 on objc.NSMutableArray { - /// sortUsingDescriptors: - void sortUsingDescriptors(objc.NSArray sortDescriptors) { - final _$$ref = object$.ref; - final _$$ref$1 = sortDescriptors.ref; - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_sortUsingDescriptors_, - _$$ref$1.pointer, - ); - } -} - -/// WARNING: NSSpellServer is a stub. To generate bindings for this class, include -/// NSSpellServer in your config's objc-interfaces list. -/// -/// NSSpellServer -extension type NSSpellServer._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSSpellServer] that points to the same underlying object as [other]. - NSSpellServer.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSSpellServer] that wraps the given raw object pointer. - NSSpellServer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSSpellServerDelegate -extension type NSSpellServerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSSpellServerDelegate] that points to the same underlying object as [other]. - NSSpellServerDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSSpellServerDelegate] that wraps the given raw object pointer. - NSSpellServerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSSpellServerDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSSpellServerDelegate, - ); - } -} - -extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { - /// spellServer:checkGrammarInString:language:details: - NSRange spellServer( - NSSpellServer sender, { - required objc.NSString checkGrammarInString, - objc.NSString? language, - required ffi.Pointer> details, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = checkGrammarInString.ref; - final _$$ref$3 = language?.ref; - objc.checkOsVersionInternal( - 'NSSpellServerDelegate.spellServer:checkGrammarInString:language:details:', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_checkGrammarInString_language_details_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:checkGrammarInString:language:details:', - ); - } - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1df3gurStret( - $ptr, - _$$ref.pointer, - _sel_spellServer_checkGrammarInString_language_details_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - details, - ) - : $ptr.ref = _objc_msgSend_1df3gur( - _$$ref.pointer, - _sel_spellServer_checkGrammarInString_language_details_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - details, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// spellServer:checkString:offset:types:options:orthography:wordCount: - objc.NSArray? spellServer$1( - NSSpellServer sender, { - required objc.NSString checkString, - required DartNSUInteger offset, - required DartNSTextCheckingTypes types, - objc.NSDictionary? options, - NSOrthography? orthography, - required ffi.Pointer wordCount, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = checkString.ref; - final _$$ref$3 = options?.ref; - final _$$ref$4 = orthography?.ref; - objc.checkOsVersionInternal( - 'NSSpellServerDelegate.spellServer:checkString:offset:types:options:orthography:wordCount:', - iOS: (true, null), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:checkString:offset:types:options:orthography:wordCount:', - ); - } - final $ret = _objc_msgSend_17azp2d( - _$$ref.pointer, - _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, - _$$ref$1.pointer, - _$$ref$2.pointer, - offset, - types, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - wordCount, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// spellServer:didForgetWord:inLanguage: - void spellServer$2( - NSSpellServer sender, { - required objc.NSString didForgetWord, - required objc.NSString inLanguage, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didForgetWord.ref; - final _$$ref$3 = inLanguage.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_didForgetWord_inLanguage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:didForgetWord:inLanguage:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_spellServer_didForgetWord_inLanguage_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// spellServer:didLearnWord:inLanguage: - void spellServer$3( - NSSpellServer sender, { - required objc.NSString didLearnWord, - required objc.NSString inLanguage, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didLearnWord.ref; - final _$$ref$3 = inLanguage.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_didLearnWord_inLanguage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:didLearnWord:inLanguage:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_spellServer_didLearnWord_inLanguage_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// spellServer:findMisspelledWordInString:language:wordCount:countOnly: - NSRange spellServer$4( - NSSpellServer sender, { - required objc.NSString findMisspelledWordInString, - required objc.NSString language, - required ffi.Pointer wordCount, - required bool countOnly, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = findMisspelledWordInString.ref; - final _$$ref$3 = language.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:findMisspelledWordInString:language:wordCount:countOnly:', - ); - } - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1ci2ia6Stret( - $ptr, - _$$ref.pointer, - _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - wordCount, - countOnly, - ) - : $ptr.ref = _objc_msgSend_1ci2ia6( - _$$ref.pointer, - _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - wordCount, - countOnly, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// spellServer:recordResponse:toCorrection:forWord:language: - void spellServer$5( - NSSpellServer sender, { - required DartNSUInteger recordResponse, - required objc.NSString toCorrection, - required objc.NSString forWord, - required objc.NSString language, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = toCorrection.ref; - final _$$ref$3 = forWord.ref; - final _$$ref$4 = language.ref; - objc.checkOsVersionInternal( - 'NSSpellServerDelegate.spellServer:recordResponse:toCorrection:forWord:language:', - iOS: (true, null), - macOS: (false, (10, 7, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_recordResponse_toCorrection_forWord_language_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:recordResponse:toCorrection:forWord:language:', - ); - } - _objc_msgSend_1dsj9wx( - _$$ref.pointer, - _sel_spellServer_recordResponse_toCorrection_forWord_language_, - _$$ref$1.pointer, - recordResponse, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// spellServer:suggestCompletionsForPartialWordRange:inString:language: - objc.NSArray? spellServer$6( - NSSpellServer sender, { - required NSRange suggestCompletionsForPartialWordRange, - required objc.NSString inString, - required objc.NSString language, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = inString.ref; - final _$$ref$3 = language.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:suggestCompletionsForPartialWordRange:inString:language:', - ); - } - final $ret = _objc_msgSend_fr9ada( - _$$ref.pointer, - _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, - _$$ref$1.pointer, - suggestCompletionsForPartialWordRange, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// spellServer:suggestGuessesForWord:inLanguage: - objc.NSArray? spellServer$7( - NSSpellServer sender, { - required objc.NSString suggestGuessesForWord, - required objc.NSString inLanguage, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = suggestGuessesForWord.ref; - final _$$ref$3 = inLanguage.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_suggestGuessesForWord_inLanguage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:suggestGuessesForWord:inLanguage:', - ); - } - final $ret = _objc_msgSend_1mevadz( - _$$ref.pointer, - _sel_spellServer_suggestGuessesForWord_inLanguage_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -interface class NSSpellServerDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSSpellServerDelegate.cast()); - - /// Builds an object that implements the NSSpellServerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSpellServerDelegate implement({ - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSSpellServerDelegate', - ); - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implement(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implement(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implement( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - return NSSpellServerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSpellServerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implement(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implement(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implement( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSSpellServerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSpellServerDelegate implementAsListener({ - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSSpellServerDelegate', - ); - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implementAsListener(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implementAsListener(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implementAsListener( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - return NSSpellServerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSpellServerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implementAsListener(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implementAsListener(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implementAsListener( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSSpellServerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSpellServerDelegate implementAsBlocking({ - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSSpellServerDelegate', - ); - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implementAsBlocking(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implementAsBlocking(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implementAsBlocking( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - return NSSpellServerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSpellServerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implementAsBlocking(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implementAsBlocking(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implementAsBlocking( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - } - - /// spellServer:checkGrammarInString:language:details: - static final spellServer_checkGrammarInString_language_details_ = - objc.ObjCProtocolMethod< - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_checkGrammarInString_language_details_, - ffi.Native.addressOf< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >(_1uu024u_protocolTrampoline_lggt7i) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_checkGrammarInString_language_details_, - isRequired: false, - isInstanceMethod: true, - ), - ( - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - func, - ) => - ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString? arg3, - ffi.Pointer> arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// spellServer:checkString:offset:types:options:orthography:wordCount: - static final spellServer_checkString_offset_types_options_orthography_wordCount_ = - objc.ObjCProtocolMethod< - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSTextCheckingTypes, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1r9jyb8) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - func, - ) => - ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - DartNSUInteger arg3, - DartNSTextCheckingTypes arg4, - objc.NSDictionary? arg5, - NSOrthography? arg6, - ffi.Pointer arg7, - ) => func(arg1, arg2, arg3, arg4, arg5, arg6, arg7), - ), - ); - - /// spellServer:didForgetWord:inLanguage: - static final spellServer_didForgetWord_inLanguage_ = - objc.ObjCProtocolListenableMethod< - void Function(NSSpellServer, objc.NSString, objc.NSString) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_didForgetWord_inLanguage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_didForgetWord_inLanguage_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.listener( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// spellServer:didLearnWord:inLanguage: - static final spellServer_didLearnWord_inLanguage_ = - objc.ObjCProtocolListenableMethod< - void Function(NSSpellServer, objc.NSString, objc.NSString) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_didLearnWord_inLanguage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_didLearnWord_inLanguage_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.listener( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// spellServer:findMisspelledWordInString:language:wordCount:countOnly: - static final spellServer_findMisspelledWordInString_language_wordCount_countOnly_ = - objc.ObjCProtocolMethod< - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - ) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ffi.Native.addressOf< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_uebh3t) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - isRequired: false, - isInstanceMethod: true, - ), - ( - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - ) - func, - ) => - ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ffi.Pointer arg4, - bool arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// spellServer:recordResponse:toCorrection:forWord:language: - static final spellServer_recordResponse_toCorrection_forWord_language_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_recordResponse_toCorrection_forWord_language_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_9dub82) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_recordResponse_toCorrection_forWord_language_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - DartNSUInteger arg2, - objc.NSString arg3, - objc.NSString arg4, - objc.NSString arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.listener( - ( - ffi.Pointer _, - NSSpellServer arg1, - DartNSUInteger arg2, - objc.NSString arg3, - objc.NSString arg4, - objc.NSString arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSSpellServer arg1, - DartNSUInteger arg2, - objc.NSString arg3, - objc.NSString arg4, - objc.NSString arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// spellServer:suggestCompletionsForPartialWordRange:inString:language: - static final spellServer_suggestCompletionsForPartialWordRange_inString_language_ = - objc.ObjCProtocolMethod< - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - ) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_6qnldf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - NSRange arg2, - objc.NSString arg3, - objc.NSString arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// spellServer:suggestGuessesForWord:inLanguage: - static final spellServer_suggestGuessesForWord_inLanguage_ = - objc.ObjCProtocolMethod< - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_suggestGuessesForWord_inLanguage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ekc08i) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_suggestGuessesForWord_inLanguage_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString) - func, - ) => - ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); -} - -/// NSStreamBoundPairCreationExtensions -extension NSStreamBoundPairCreationExtensions on objc.NSStream { - /// getBoundStreamsWithBufferSize:inputStream:outputStream: - static void getBoundStreamsWithBufferSize( - DartNSUInteger bufferSize, { - required ffi.Pointer> inputStream, - required ffi.Pointer> outputStream, - }) { - objc.checkOsVersionInternal( - 'NSStream.getBoundStreamsWithBufferSize:inputStream:outputStream:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_16fdf3f( - _class_NSStream, - _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_, - bufferSize, - inputStream, - outputStream, - ); - } -} - -typedef NSStreamNetworkServiceTypeValue = ffi.Pointer; -typedef DartNSStreamNetworkServiceTypeValue = objc.NSString; -typedef NSStreamPropertyKey = ffi.Pointer; -typedef DartNSStreamPropertyKey = objc.NSString; -typedef NSStreamSOCKSProxyConfiguration = ffi.Pointer; -typedef DartNSStreamSOCKSProxyConfiguration = objc.NSString; -typedef NSStreamSOCKSProxyVersion = ffi.Pointer; -typedef DartNSStreamSOCKSProxyVersion = objc.NSString; -typedef NSStreamSocketSecurityLevel = ffi.Pointer; -typedef DartNSStreamSocketSecurityLevel = objc.NSString; - -/// NSStringDeprecated -extension NSStringDeprecated on objc.NSString { - /// cString - @Deprecated('Use -cStringUsingEncoding: instead') - ffi.Pointer cString() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.cString', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_59rf64(_$$ref.pointer, _sel_cString); - } - - /// cStringLength - @Deprecated('Use -lengthOfBytesUsingEncoding: instead') - DartNSUInteger cStringLength() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.cStringLength', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_cStringLength); - } - - /// getCString: - @Deprecated('Use -getCString:maxLength:encoding: instead') - void getCString(ffi.Pointer bytes) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.getCString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_n42fjv(_$$ref.pointer, _sel_getCString_, bytes); - } - - /// getCString:maxLength: - @Deprecated('Use -getCString:maxLength:encoding: instead') - void getCString$1( - ffi.Pointer bytes, { - required DartNSUInteger maxLength, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.getCString:maxLength:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_wcvpes( - _$$ref.pointer, - _sel_getCString_maxLength_, - bytes, - maxLength, - ); - } - - /// getCString:maxLength:range:remainingRange: - @Deprecated('Use -getCString:maxLength:encoding: instead') - void getCString$2( - ffi.Pointer bytes, { - required DartNSUInteger maxLength, - required NSRange range, - required NSRangePointer remainingRange, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.getCString:maxLength:range:remainingRange:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_ocdydk( - _$$ref.pointer, - _sel_getCString_maxLength_range_remainingRange_, - bytes, - maxLength, - range, - remainingRange, - ); - } - - /// getCharacters: - void getCharacters(ffi.Pointer buffer) { - final _$$ref = object$.ref; - _objc_msgSend_176lrd(_$$ref.pointer, _sel_getCharacters_, buffer); - } - - /// initWithCString: - @Deprecated('Use -initWithCString:encoding: instead') - objc.ObjCObject? initWithCString(ffi.Pointer bytes) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.initWithCString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_xjlvtx( - _$$ref.retainAndReturnPointer(), - _sel_initWithCString_, - bytes, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithCString:length: - @Deprecated('Use -initWithCString:encoding: instead') - objc.ObjCObject? initWithCString$1( - ffi.Pointer bytes, { - required DartNSUInteger length, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.initWithCString:length:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_by5tf2( - _$$ref.retainAndReturnPointer(), - _sel_initWithCString_length_, - bytes, - length, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithCStringNoCopy:length:freeWhenDone: - @Deprecated('Use -initWithCString:encoding: instead') - objc.ObjCObject? initWithCStringNoCopy( - ffi.Pointer bytes, { - required DartNSUInteger length, - required bool freeWhenDone, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.initWithCStringNoCopy:length:freeWhenDone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ngjh10( - _$$ref.retainAndReturnPointer(), - _sel_initWithCStringNoCopy_length_freeWhenDone_, - bytes, - length, - freeWhenDone, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithContentsOfFile: - @Deprecated('Use -initWithContentsOfFile:encoding:error: instead') - objc.ObjCObject? initWithContentsOfFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSString.initWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - @Deprecated('Use -initWithContentsOfURL:encoding:error: instead') - objc.ObjCObject? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSString.initWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// lossyCString - @Deprecated('Use -cStringUsingEncoding: instead') - ffi.Pointer lossyCString() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.lossyCString', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_59rf64(_$$ref.pointer, _sel_lossyCString); - } - - /// writeToFile:atomically: - @Deprecated('Use -writeToFile:atomically:encoding:error: instead') - bool writeToFile(objc.NSString path, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSString.writeToFile:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_lbnlyo( - _$$ref.pointer, - _sel_writeToFile_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// writeToURL:atomically: - @Deprecated('Use -writeToURL:atomically:encoding:error: instead') - bool writeToURL(objc.NSURL url, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSString.writeToURL:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_lbnlyo( - _$$ref.pointer, - _sel_writeToURL_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// stringWithCString: - @Deprecated('Use +stringWithCString:encoding: instead') - static objc.ObjCObject? stringWithCString(ffi.Pointer bytes) { - objc.checkOsVersionInternal( - 'NSString.stringWithCString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_xjlvtx( - _class_NSString, - _sel_stringWithCString_, - bytes, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// stringWithCString:length: - @Deprecated('Use +stringWithCString:encoding:') - static objc.ObjCObject? stringWithCString$1( - ffi.Pointer bytes, { - required DartNSUInteger length, - }) { - objc.checkOsVersionInternal( - 'NSString.stringWithCString:length:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_by5tf2( - _class_NSString, - _sel_stringWithCString_length_, - bytes, - length, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// stringWithContentsOfFile: - @Deprecated('Use +stringWithContentsOfFile:encoding:error: instead') - static objc.ObjCObject? stringWithContentsOfFile(objc.NSString path) { - final _$$ref = path.ref; - objc.checkOsVersionInternal( - 'NSString.stringWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSString, - _sel_stringWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// stringWithContentsOfURL: - @Deprecated('Use +stringWithContentsOfURL:encoding:error: instead') - static objc.ObjCObject? stringWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSString.stringWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSString, - _sel_stringWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -typedef NSStringEncoding = NSUInteger; - -/// NSStringEncodingDetection -extension NSStringEncodingDetection on objc.NSString { - /// stringEncodingForData:encodingOptions:convertedString:usedLossyConversion: - static DartNSUInteger stringEncodingForData( - objc.NSData data, { - objc.NSDictionary? encodingOptions, - required ffi.Pointer> convertedString, - required ffi.Pointer usedLossyConversion, - }) { - final _$$ref = data.ref; - final _$$ref$1 = encodingOptions?.ref; - objc.checkOsVersionInternal( - 'NSString.stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - return _objc_msgSend_16szl7k( - _class_NSString, - _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - convertedString, - usedLossyConversion, - ); - } -} - -typedef NSStringEncodingDetectionOptionsKey = ffi.Pointer; -typedef DartNSStringEncodingDetectionOptionsKey = objc.NSString; - -/// NSStringPathExtensions -extension NSStringPathExtensions on objc.NSString { - /// completePathIntoString:caseSensitive:matchesIntoArray:filterTypes: - DartNSUInteger completePathIntoString( - ffi.Pointer> outputName, { - required bool caseSensitive, - required ffi.Pointer> matchesIntoArray, - objc.NSArray? filterTypes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = filterTypes?.ref; - return _objc_msgSend_1c6ogwh( - _$$ref.pointer, - _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_, - outputName, - caseSensitive, - matchesIntoArray, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// fileSystemRepresentation - ffi.Pointer get fileSystemRepresentation { - final _$$ref = object$.ref; - return _objc_msgSend_59rf64(_$$ref.pointer, _sel_fileSystemRepresentation); - } - - /// getFileSystemRepresentation:maxLength: - bool getFileSystemRepresentation( - ffi.Pointer cname, { - required DartNSUInteger maxLength, - }) { - final _$$ref = object$.ref; - return _objc_msgSend_upjxor( - _$$ref.pointer, - _sel_getFileSystemRepresentation_maxLength_, - cname, - maxLength, - ); - } - - /// isAbsolutePath - bool get isAbsolutePath { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isAbsolutePath); - } - - /// lastPathComponent - objc.NSString get lastPathComponent { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_lastPathComponent); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// pathComponents - objc.NSArray get pathComponents { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathComponents); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// pathExtension - objc.NSString get pathExtension { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathExtension); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByAbbreviatingWithTildeInPath - objc.NSString get stringByAbbreviatingWithTildeInPath { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_stringByAbbreviatingWithTildeInPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByAppendingPathComponent: - objc.NSString stringByAppendingPathComponent(objc.NSString str) { - final _$$ref = object$.ref; - final _$$ref$1 = str.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_stringByAppendingPathComponent_, - _$$ref$1.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByAppendingPathExtension: - objc.NSString? stringByAppendingPathExtension(objc.NSString str) { - final _$$ref = object$.ref; - final _$$ref$1 = str.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_stringByAppendingPathExtension_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByDeletingLastPathComponent - objc.NSString get stringByDeletingLastPathComponent { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_stringByDeletingLastPathComponent, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByDeletingPathExtension - objc.NSString get stringByDeletingPathExtension { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_stringByDeletingPathExtension, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByExpandingTildeInPath - objc.NSString get stringByExpandingTildeInPath { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_stringByExpandingTildeInPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByResolvingSymlinksInPath - objc.NSString get stringByResolvingSymlinksInPath { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_stringByResolvingSymlinksInPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByStandardizingPath - objc.NSString get stringByStandardizingPath { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_stringByStandardizingPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringsByAppendingPaths: - objc.NSArray stringsByAppendingPaths(objc.NSArray paths) { - final _$$ref = object$.ref; - final _$$ref$1 = paths.ref; - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_stringsByAppendingPaths_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// pathWithComponents: - static objc.NSString pathWithComponents(objc.NSArray components) { - final _$$ref = components.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSString, - _sel_pathWithComponents_, - _$$ref.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -typedef NSStringTransform = ffi.Pointer; -typedef DartNSStringTransform = objc.NSString; -@Deprecated('Not supported') -const int NSSunOSOperatingSystem = 6; - -final class NSSwappedDouble extends ffi.Struct { - @ffi.UnsignedLongLong() - external int v; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - }) => $allocator()..ref.v = v; -} - -final class NSSwappedFloat extends ffi.Struct { - @ffi.UnsignedInt() - external int v; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - }) => $allocator()..ref.v = v; -} - -const int NSSymbolStringEncoding = 6; - -/// WARNING: NSTask is a stub. To generate bindings for this class, include -/// NSTask in your config's objc-interfaces list. -/// -/// NSTask -extension type NSTask._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSTask] that points to the same underlying object as [other]. - NSTask.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSTask] that wraps the given raw object pointer. - NSTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSTaskConveniences -extension NSTaskConveniences on NSTask { - /// waitUntilExit - void waitUntilExit() { - final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_waitUntilExit); - } - - /// launchedTaskWithExecutableURL:arguments:error:terminationHandler: - static NSTask? launchedTaskWithExecutableURL( - objc.NSURL url, { - required objc.NSArray arguments, - required ffi.Pointer> error, - objc.ObjCBlock? terminationHandler, - }) { - final _$$ref = url.ref; - final _$$ref$1 = arguments.ref; - final _$$ref$2 = terminationHandler?.ref; - objc.checkOsVersionInternal( - 'NSTask.launchedTaskWithExecutableURL:arguments:error:terminationHandler:', - iOS: (true, null), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_1inb5dw( - _class_NSTask, - _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_, - _$$ref.pointer, - _$$ref$1.pointer, - error, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : NSTask.fromPointer($ret, retain: true, release: true); - } -} - -enum NSTaskTerminationReason { - NSTaskTerminationReasonExit(1), - NSTaskTerminationReasonUncaughtSignal(2); - - final int value; - const NSTaskTerminationReason(this.value); - - static NSTaskTerminationReason fromValue(int value) => switch (value) { - 1 => NSTaskTerminationReasonExit, - 2 => NSTaskTerminationReasonUncaughtSignal, - _ => throw ArgumentError( - 'Unknown value for NSTaskTerminationReason: $value', - ), - }; -} - -enum NSTestComparisonOperation { - NSEqualToComparison(0), - NSLessThanOrEqualToComparison(1), - NSLessThanComparison(2), - NSGreaterThanOrEqualToComparison(3), - NSGreaterThanComparison(4), - NSBeginsWithComparison(5), - NSEndsWithComparison(6), - NSContainsComparison(7); - - final int value; - const NSTestComparisonOperation(this.value); - - static NSTestComparisonOperation fromValue(int value) => switch (value) { - 0 => NSEqualToComparison, - 1 => NSLessThanOrEqualToComparison, - 2 => NSLessThanComparison, - 3 => NSGreaterThanOrEqualToComparison, - 4 => NSGreaterThanComparison, - 5 => NSBeginsWithComparison, - 6 => NSEndsWithComparison, - 7 => NSContainsComparison, - _ => throw ArgumentError( - 'Unknown value for NSTestComparisonOperation: $value', - ), - }; -} - -const int NSTextCheckingAllCustomTypes = -4294967296; - -const int NSTextCheckingAllSystemTypes = 4294967295; - -const int NSTextCheckingAllTypes = -1; - -typedef NSTextCheckingKey = ffi.Pointer; -typedef DartNSTextCheckingKey = objc.NSString; - -/// WARNING: NSTextCheckingResult is a stub. To generate bindings for this class, include -/// NSTextCheckingResult in your config's objc-interfaces list. -/// -/// NSTextCheckingResult -extension type NSTextCheckingResult._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSTextCheckingResult] that points to the same underlying object as [other]. - NSTextCheckingResult.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSTextCheckingResult', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } - - /// Constructs a [NSTextCheckingResult] that wraps the given raw object pointer. - NSTextCheckingResult.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSTextCheckingResult', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } -} - -/// NSTextCheckingResultCreation -extension NSTextCheckingResultCreation on NSTextCheckingResult { - /// addressCheckingResultWithRange:components: - static NSTextCheckingResult addressCheckingResultWithRange( - NSRange range, { - required objc.NSDictionary components, - }) { - final _$$ref = components.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.addressCheckingResultWithRange:components:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_addressCheckingResultWithRange_components_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// correctionCheckingResultWithRange:replacementString: - static NSTextCheckingResult correctionCheckingResultWithRange( - NSRange range, { - required objc.NSString replacementString, - }) { - final _$$ref = replacementString.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.correctionCheckingResultWithRange:replacementString:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_correctionCheckingResultWithRange_replacementString_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// correctionCheckingResultWithRange:replacementString:alternativeStrings: - static NSTextCheckingResult correctionCheckingResultWithRange$1( - NSRange range, { - required objc.NSString replacementString, - required objc.NSArray alternativeStrings, - }) { - final _$$ref = replacementString.ref; - final _$$ref$1 = alternativeStrings.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.correctionCheckingResultWithRange:replacementString:alternativeStrings:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_1isvq4t( - _class_NSTextCheckingResult, - _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_, - range, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// dashCheckingResultWithRange:replacementString: - static NSTextCheckingResult dashCheckingResultWithRange( - NSRange range, { - required objc.NSString replacementString, - }) { - final _$$ref = replacementString.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.dashCheckingResultWithRange:replacementString:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_dashCheckingResultWithRange_replacementString_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// dateCheckingResultWithRange:date: - static NSTextCheckingResult dateCheckingResultWithRange( - NSRange range, { - required objc.NSDate date, - }) { - final _$$ref = date.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.dateCheckingResultWithRange:date:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_dateCheckingResultWithRange_date_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// dateCheckingResultWithRange:date:timeZone:duration: - static NSTextCheckingResult dateCheckingResultWithRange$1( - NSRange range, { - required objc.NSDate date, - required NSTimeZone timeZone, - required DartNSTimeInterval duration, - }) { - final _$$ref = date.ref; - final _$$ref$1 = timeZone.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.dateCheckingResultWithRange:date:timeZone:duration:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1v91fr2( - _class_NSTextCheckingResult, - _sel_dateCheckingResultWithRange_date_timeZone_duration_, - range, - _$$ref.pointer, - _$$ref$1.pointer, - duration, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// grammarCheckingResultWithRange:details: - static NSTextCheckingResult grammarCheckingResultWithRange( - NSRange range, { - required objc.NSArray details, - }) { - final _$$ref = details.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.grammarCheckingResultWithRange:details:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_grammarCheckingResultWithRange_details_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// linkCheckingResultWithRange:URL: - static NSTextCheckingResult linkCheckingResultWithRange( - NSRange range, { - required objc.NSURL URL, - }) { - final _$$ref = URL.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.linkCheckingResultWithRange:URL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_linkCheckingResultWithRange_URL_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// orthographyCheckingResultWithRange:orthography: - static NSTextCheckingResult orthographyCheckingResultWithRange( - NSRange range, { - required NSOrthography orthography, - }) { - final _$$ref = orthography.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.orthographyCheckingResultWithRange:orthography:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_orthographyCheckingResultWithRange_orthography_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// phoneNumberCheckingResultWithRange:phoneNumber: - static NSTextCheckingResult phoneNumberCheckingResultWithRange( - NSRange range, { - required objc.NSString phoneNumber, - }) { - final _$$ref = phoneNumber.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.phoneNumberCheckingResultWithRange:phoneNumber:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_phoneNumberCheckingResultWithRange_phoneNumber_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// quoteCheckingResultWithRange:replacementString: - static NSTextCheckingResult quoteCheckingResultWithRange( - NSRange range, { - required objc.NSString replacementString, - }) { - final _$$ref = replacementString.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.quoteCheckingResultWithRange:replacementString:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_quoteCheckingResultWithRange_replacementString_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// regularExpressionCheckingResultWithRanges:count:regularExpression: - static NSTextCheckingResult regularExpressionCheckingResultWithRanges( - NSRangePointer ranges, { - required DartNSUInteger count, - required NSRegularExpression regularExpression, - }) { - final _$$ref = regularExpression.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.regularExpressionCheckingResultWithRanges:count:regularExpression:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_4g65tx( - _class_NSTextCheckingResult, - _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_, - ranges, - count, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// replacementCheckingResultWithRange:replacementString: - static NSTextCheckingResult replacementCheckingResultWithRange( - NSRange range, { - required objc.NSString replacementString, - }) { - final _$$ref = replacementString.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.replacementCheckingResultWithRange:replacementString:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_replacementCheckingResultWithRange_replacementString_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// spellCheckingResultWithRange: - static NSTextCheckingResult spellCheckingResultWithRange(NSRange range) { - objc.checkOsVersionInternal( - 'NSTextCheckingResult.spellCheckingResultWithRange:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1cd70t7( - _class_NSTextCheckingResult, - _sel_spellCheckingResultWithRange_, - range, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// transitInformationCheckingResultWithRange:components: - static NSTextCheckingResult transitInformationCheckingResultWithRange( - NSRange range, { - required objc.NSDictionary components, - }) { - final _$$ref = components.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.transitInformationCheckingResultWithRange:components:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1emblnm( - _class_NSTextCheckingResult, - _sel_transitInformationCheckingResultWithRange_components_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } -} - -/// NSTextCheckingResultOptional -extension NSTextCheckingResultOptional on NSTextCheckingResult { - /// URL - objc.NSURL? get URL { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.URL', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_URL); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// addressComponents - objc.NSDictionary? get addressComponents { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.addressComponents', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_addressComponents); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// alternativeStrings - objc.NSArray? get alternativeStrings { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.alternativeStrings', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_alternativeStrings); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// components - objc.NSDictionary? get components { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.components', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_components); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// date - objc.NSDate? get date { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.date', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_date); - return $ret.address == 0 - ? null - : objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// duration - DartNSTimeInterval get duration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.duration', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_duration) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_duration); - } - - /// grammarDetails - objc.NSArray? get grammarDetails { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.grammarDetails', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_grammarDetails); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// numberOfRanges - DartNSUInteger get numberOfRanges { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.numberOfRanges', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_numberOfRanges); - } - - /// orthography - NSOrthography? get orthography { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.orthography', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_orthography); - return $ret.address == 0 - ? null - : NSOrthography.fromPointer($ret, retain: true, release: true); - } - - /// phoneNumber - objc.NSString? get phoneNumber { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.phoneNumber', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_phoneNumber); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// rangeAtIndex: - NSRange rangeAtIndex(DartNSUInteger idx) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.rangeAtIndex:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1hwzsr1Stret( - $ptr, - _$$ref.pointer, - _sel_rangeAtIndex_, - idx, - ) - : $ptr.ref = _objc_msgSend_1hwzsr1( - _$$ref.pointer, - _sel_rangeAtIndex_, - idx, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// rangeWithName: - NSRange rangeWithName(objc.NSString name) { - final _$$ref = object$.ref; - final _$$ref$1 = name.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.rangeWithName:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_r1rnpStret( - $ptr, - _$$ref.pointer, - _sel_rangeWithName_, - _$$ref$1.pointer, - ) - : $ptr.ref = _objc_msgSend_r1rnp( - _$$ref.pointer, - _sel_rangeWithName_, - _$$ref$1.pointer, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// regularExpression - NSRegularExpression? get regularExpression { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.regularExpression', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_regularExpression); - return $ret.address == 0 - ? null - : NSRegularExpression.fromPointer($ret, retain: true, release: true); - } - - /// replacementString - objc.NSString? get replacementString { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.replacementString', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_replacementString); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// resultByAdjustingRangesWithOffset: - NSTextCheckingResult resultByAdjustingRangesWithOffset(DartNSInteger offset) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.resultByAdjustingRangesWithOffset:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_x76ogv( - _$$ref.pointer, - _sel_resultByAdjustingRangesWithOffset_, - offset, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// timeZone - NSTimeZone? get timeZone { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.timeZone', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_timeZone); - return $ret.address == 0 - ? null - : NSTimeZone.fromPointer($ret, retain: true, release: true); - } -} - -sealed class NSTextCheckingType { - static const NSTextCheckingTypeOrthography = 1; - static const NSTextCheckingTypeSpelling = 2; - static const NSTextCheckingTypeGrammar = 4; - static const NSTextCheckingTypeDate = 8; - static const NSTextCheckingTypeAddress = 16; - static const NSTextCheckingTypeLink = 32; - static const NSTextCheckingTypeQuote = 64; - static const NSTextCheckingTypeDash = 128; - static const NSTextCheckingTypeReplacement = 256; - static const NSTextCheckingTypeCorrection = 512; - static const NSTextCheckingTypeRegularExpression = 1024; - static const NSTextCheckingTypePhoneNumber = 2048; - static const NSTextCheckingTypeTransitInformation = 4096; -} - -typedef NSTextCheckingTypes = ffi.Uint64; -typedef DartNSTextCheckingTypes = int; - -/// WARNING: NSThread is a stub. To generate bindings for this class, include -/// NSThread in your config's objc-interfaces list. -/// -/// NSThread -extension type NSThread._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSThread] that points to the same underlying object as [other]. - NSThread.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSThread] that wraps the given raw object pointer. - NSThread.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSThreadPerformAdditions -extension NSThreadPerformAdditions on objc.NSObject { - /// performSelector:onThread:withObject:waitUntilDone: - void performSelector$3( - ffi.Pointer aSelector, { - required NSThread onThread, - objc.ObjCObject? withObject, - required bool waitUntilDone, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = onThread.ref; - final _$$ref$2 = withObject?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelector:onThread:withObject:waitUntilDone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_1no426w( - _$$ref.pointer, - _sel_performSelector_onThread_withObject_waitUntilDone_, - aSelector, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - waitUntilDone, - ); - } - - /// performSelector:onThread:withObject:waitUntilDone:modes: - void performSelector$4( - ffi.Pointer aSelector, { - required NSThread onThread, - objc.ObjCObject? withObject, - required bool waitUntilDone, - objc.NSArray? modes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = onThread.ref; - final _$$ref$2 = withObject?.ref; - final _$$ref$3 = modes?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelector:onThread:withObject:waitUntilDone:modes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_1n88jx7( - _$$ref.pointer, - _sel_performSelector_onThread_withObject_waitUntilDone_modes_, - aSelector, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - waitUntilDone, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// performSelectorInBackground:withObject: - void performSelectorInBackground( - ffi.Pointer aSelector, { - objc.ObjCObject? withObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withObject?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelectorInBackground:withObject:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_1aglthn( - _$$ref.pointer, - _sel_performSelectorInBackground_withObject_, - aSelector, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// performSelectorOnMainThread:withObject:waitUntilDone: - void performSelectorOnMainThread( - ffi.Pointer aSelector, { - objc.ObjCObject? withObject, - required bool waitUntilDone, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withObject?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelectorOnMainThread:withObject:waitUntilDone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_x20rg3( - _$$ref.pointer, - _sel_performSelectorOnMainThread_withObject_waitUntilDone_, - aSelector, - _$$ref$1?.pointer ?? ffi.nullptr, - waitUntilDone, - ); - } - - /// performSelectorOnMainThread:withObject:waitUntilDone:modes: - void performSelectorOnMainThread$1( - ffi.Pointer aSelector, { - objc.ObjCObject? withObject, - required bool waitUntilDone, - objc.NSArray? modes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withObject?.ref; - final _$$ref$2 = modes?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelectorOnMainThread:withObject:waitUntilDone:modes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1tn8wgq( - _$$ref.pointer, - _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_, - aSelector, - _$$ref$1?.pointer ?? ffi.nullptr, - waitUntilDone, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -typedef NSTimeInterval = ffi.Double; -typedef DartNSTimeInterval = double; - -/// WARNING: NSTimeZone is a stub. To generate bindings for this class, include -/// NSTimeZone in your config's objc-interfaces list. -/// -/// NSTimeZone -extension type NSTimeZone._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSTimeZone] that points to the same underlying object as [other]. - NSTimeZone.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSTimeZone] that wraps the given raw object pointer. - NSTimeZone.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSTimeZoneCreation -extension NSTimeZoneCreation on NSTimeZone {} - -enum NSTimeZoneNameStyle { - NSTimeZoneNameStyleStandard(0), - NSTimeZoneNameStyleShortStandard(1), - NSTimeZoneNameStyleDaylightSaving(2), - NSTimeZoneNameStyleShortDaylightSaving(3), - NSTimeZoneNameStyleGeneric(4), - NSTimeZoneNameStyleShortGeneric(5); - - final int value; - const NSTimeZoneNameStyle(this.value); - - static NSTimeZoneNameStyle fromValue(int value) => switch (value) { - 0 => NSTimeZoneNameStyleStandard, - 1 => NSTimeZoneNameStyleShortStandard, - 2 => NSTimeZoneNameStyleDaylightSaving, - 3 => NSTimeZoneNameStyleShortDaylightSaving, - 4 => NSTimeZoneNameStyleGeneric, - 5 => NSTimeZoneNameStyleShortGeneric, - _ => throw ArgumentError('Unknown value for NSTimeZoneNameStyle: $value'), - }; -} - -/// NSTypedstreamCompatibility -extension NSTypedstreamCompatibility on objc.NSCoder { - /// decodeNXObject - @Deprecated('Not supported') - objc.ObjCObject? decodeNXObject() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeNXObject', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_decodeNXObject); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// encodeNXObject: - @Deprecated('Not supported') - void encodeNXObject(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSCoder.encodeNXObject:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_encodeNXObject_, - _$$ref$1.pointer, - ); - } -} - -typedef NSUInteger = ffi.UnsignedLong; -typedef DartNSUInteger = int; - -/// WARNING: NSURLAuthenticationChallenge is a stub. To generate bindings for this class, include -/// NSURLAuthenticationChallenge in your config's objc-interfaces list. -/// -/// NSURLAuthenticationChallenge -extension type NSURLAuthenticationChallenge._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [NSURLAuthenticationChallenge] that points to the same underlying object as [other]. - NSURLAuthenticationChallenge.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallenge', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLAuthenticationChallenge] that wraps the given raw object pointer. - NSURLAuthenticationChallenge.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallenge', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// NSURLAuthenticationChallengeSender -extension type NSURLAuthenticationChallengeSender._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSURLAuthenticationChallengeSender] that points to the same underlying object as [other]. - NSURLAuthenticationChallengeSender.as(objc.ObjCObject other) - : object$ = other; - - /// Constructs a [NSURLAuthenticationChallengeSender] that wraps the given raw object pointer. - NSURLAuthenticationChallengeSender.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLAuthenticationChallengeSender]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLAuthenticationChallengeSender, - ); - } -} - -extension NSURLAuthenticationChallengeSender$Methods - on NSURLAuthenticationChallengeSender { - /// cancelAuthenticationChallenge: - void cancelAuthenticationChallenge(NSURLAuthenticationChallenge challenge) { - final _$$ref = object$.ref; - final _$$ref$1 = challenge.ref; - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallengeSender.cancelAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_cancelAuthenticationChallenge_, - _$$ref$1.pointer, - ); - } - - /// continueWithoutCredentialForAuthenticationChallenge: - void continueWithoutCredentialForAuthenticationChallenge( - NSURLAuthenticationChallenge challenge, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = challenge.ref; - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallengeSender.continueWithoutCredentialForAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_continueWithoutCredentialForAuthenticationChallenge_, - _$$ref$1.pointer, - ); - } - - /// performDefaultHandlingForAuthenticationChallenge: - void performDefaultHandlingForAuthenticationChallenge( - NSURLAuthenticationChallenge challenge, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = challenge.ref; - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallengeSender.performDefaultHandlingForAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_performDefaultHandlingForAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLAuthenticationChallengeSender', - 'performDefaultHandlingForAuthenticationChallenge:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_performDefaultHandlingForAuthenticationChallenge_, - _$$ref$1.pointer, - ); - } - - /// rejectProtectionSpaceAndContinueWithChallenge: - void rejectProtectionSpaceAndContinueWithChallenge( - NSURLAuthenticationChallenge challenge, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = challenge.ref; - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallengeSender.rejectProtectionSpaceAndContinueWithChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_rejectProtectionSpaceAndContinueWithChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLAuthenticationChallengeSender', - 'rejectProtectionSpaceAndContinueWithChallenge:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_rejectProtectionSpaceAndContinueWithChallenge_, - _$$ref$1.pointer, - ); - } - - /// useCredential:forAuthenticationChallenge: - void useCredential( - NSURLCredential credential, { - required NSURLAuthenticationChallenge forAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = credential.ref; - final _$$ref$2 = forAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallengeSender.useCredential:forAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_useCredential_forAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSURLAuthenticationChallengeSender$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => objc.Protocol.fromPointer( - _protocol_NSURLAuthenticationChallengeSender.cast(), - ); - - /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLAuthenticationChallengeSender implement({ - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLAuthenticationChallengeSender', - ); - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implement(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implement( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implement(builder, performDefaultHandlingForAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implement(builder, rejectProtectionSpaceAndContinueWithChallenge_); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implement(builder, useCredential_forAuthenticationChallenge_); - builder.addProtocol($protocol); - return NSURLAuthenticationChallengeSender.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implement(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implement( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implement(builder, performDefaultHandlingForAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implement(builder, rejectProtectionSpaceAndContinueWithChallenge_); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implement(builder, useCredential_forAuthenticationChallenge_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLAuthenticationChallengeSender implementAsListener({ - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLAuthenticationChallengeSender', - ); - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implementAsListener(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implementAsListener( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implementAsListener( - builder, - performDefaultHandlingForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implementAsListener( - builder, - rejectProtectionSpaceAndContinueWithChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implementAsListener( - builder, - useCredential_forAuthenticationChallenge_, - ); - builder.addProtocol($protocol); - return NSURLAuthenticationChallengeSender.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implementAsListener(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implementAsListener( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implementAsListener( - builder, - performDefaultHandlingForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implementAsListener( - builder, - rejectProtectionSpaceAndContinueWithChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implementAsListener( - builder, - useCredential_forAuthenticationChallenge_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLAuthenticationChallengeSender implementAsBlocking({ - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLAuthenticationChallengeSender', - ); - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implementAsBlocking(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implementAsBlocking( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implementAsBlocking( - builder, - performDefaultHandlingForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implementAsBlocking( - builder, - rejectProtectionSpaceAndContinueWithChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implementAsBlocking( - builder, - useCredential_forAuthenticationChallenge_, - ); - builder.addProtocol($protocol); - return NSURLAuthenticationChallengeSender.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implementAsBlocking(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implementAsBlocking( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implementAsBlocking( - builder, - performDefaultHandlingForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implementAsBlocking( - builder, - rejectProtectionSpaceAndContinueWithChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implementAsBlocking( - builder, - useCredential_forAuthenticationChallenge_, - ); - builder.addProtocol($protocol); - } - - /// cancelAuthenticationChallenge: - static final cancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLAuthenticationChallenge) - >( - _protocol_NSURLAuthenticationChallengeSender, - _sel_cancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLAuthenticationChallengeSender, - _sel_cancelAuthenticationChallenge_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - ); - - /// continueWithoutCredentialForAuthenticationChallenge: - static final continueWithoutCredentialForAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLAuthenticationChallenge) - >( - _protocol_NSURLAuthenticationChallengeSender, - _sel_continueWithoutCredentialForAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLAuthenticationChallengeSender, - _sel_continueWithoutCredentialForAuthenticationChallenge_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - ); - - /// performDefaultHandlingForAuthenticationChallenge: - static final performDefaultHandlingForAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLAuthenticationChallenge) - >( - _protocol_NSURLAuthenticationChallengeSender, - _sel_performDefaultHandlingForAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLAuthenticationChallengeSender, - _sel_performDefaultHandlingForAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - ); - - /// rejectProtectionSpaceAndContinueWithChallenge: - static final rejectProtectionSpaceAndContinueWithChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLAuthenticationChallenge) - >( - _protocol_NSURLAuthenticationChallengeSender, - _sel_rejectProtectionSpaceAndContinueWithChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLAuthenticationChallengeSender, - _sel_rejectProtectionSpaceAndContinueWithChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - ); - - /// useCredential:forAuthenticationChallenge: - static final useCredential_forAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLCredential, NSURLAuthenticationChallenge) - >( - _protocol_NSURLAuthenticationChallengeSender, - _sel_useCredential_forAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLAuthenticationChallengeSender, - _sel_useCredential_forAuthenticationChallenge_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLCredential arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLCredential arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLCredential arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); -} - -typedef NSURLBookmarkFileCreationOptions = NSUInteger; - -/// WARNING: NSURLCache is a stub. To generate bindings for this class, include -/// NSURLCache in your config's objc-interfaces list. -/// -/// NSURLCache -extension type NSURLCache._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLCache] that points to the same underlying object as [other]. - NSURLCache.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLCache', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLCache] that wraps the given raw object pointer. - NSURLCache.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLCache', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -enum NSURLCacheStoragePolicy { - NSURLCacheStorageAllowed(0), - NSURLCacheStorageAllowedInMemoryOnly(1), - NSURLCacheStorageNotAllowed(2); - - final int value; - const NSURLCacheStoragePolicy(this.value); - - static NSURLCacheStoragePolicy fromValue(int value) => switch (value) { - 0 => NSURLCacheStorageAllowed, - 1 => NSURLCacheStorageAllowedInMemoryOnly, - 2 => NSURLCacheStorageNotAllowed, - _ => throw ArgumentError( - 'Unknown value for NSURLCacheStoragePolicy: $value', - ), - }; -} - -/// NSURLClient -extension NSURLClient on objc.NSObject { - /// URL:resourceDataDidBecomeAvailable: - @Deprecated('Use NSURLConnection instead') - void URL( - objc.NSURL sender, { - required objc.NSData resourceDataDidBecomeAvailable, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = resourceDataDidBecomeAvailable.ref; - objc.checkOsVersionInternal( - 'NSObject.URL:resourceDataDidBecomeAvailable:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URL_resourceDataDidBecomeAvailable_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URL:resourceDidFailLoadingWithReason: - @Deprecated('Use NSURLConnection instead') - void URL$1( - objc.NSURL sender, { - required objc.NSString resourceDidFailLoadingWithReason, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = resourceDidFailLoadingWithReason.ref; - objc.checkOsVersionInternal( - 'NSObject.URL:resourceDidFailLoadingWithReason:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URL_resourceDidFailLoadingWithReason_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLResourceDidCancelLoading: - @Deprecated('Use NSURLConnection instead') - void URLResourceDidCancelLoading(objc.NSURL sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSObject.URLResourceDidCancelLoading:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLResourceDidCancelLoading_, - _$$ref$1.pointer, - ); - } - - /// URLResourceDidFinishLoading: - @Deprecated('Use NSURLConnection instead') - void URLResourceDidFinishLoading(objc.NSURL sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSObject.URLResourceDidFinishLoading:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLResourceDidFinishLoading_, - _$$ref$1.pointer, - ); - } -} - -/// WARNING: NSURLConnection is a stub. To generate bindings for this class, include -/// NSURLConnection in your config's objc-interfaces list. -/// -/// NSURLConnection -extension type NSURLConnection._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLConnection] that points to the same underlying object as [other]. - NSURLConnection.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLConnection', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLConnection] that wraps the given raw object pointer. - NSURLConnection.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLConnection', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// NSURLConnectionDataDelegate -extension type NSURLConnectionDataDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLConnectionDelegate { - /// Constructs a [NSURLConnectionDataDelegate] that points to the same underlying object as [other]. - NSURLConnectionDataDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLConnectionDataDelegate] that wraps the given raw object pointer. - NSURLConnectionDataDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLConnectionDataDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLConnectionDataDelegate, - ); - } -} - -extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { - /// connection:canAuthenticateAgainstProtectionSpace: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - bool connection( - NSURLConnection connection, { - required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:canAuthenticateAgainstProtectionSpace:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:canAuthenticateAgainstProtectionSpace:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didCancelAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$1( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didCancelAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didCancelAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didCancelAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didFailWithError: - void connection$2( - NSURLConnection connection, { - required objc.NSError didFailWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didFailWithError.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didFailWithError:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didFailWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didFailWithError:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didFailWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didReceiveAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$3( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didReceiveAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didReceiveAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didReceiveAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didReceiveData: - void connection$4( - NSURLConnection connection, { - required objc.NSData didReceiveData, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didReceiveData.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didReceiveData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didReceiveData_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didReceiveData:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didReceiveData_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didReceiveResponse: - void connection$5( - NSURLConnection connection, { - required NSURLResponse didReceiveResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didReceiveResponse.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didReceiveResponse:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didReceiveResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didReceiveResponse:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didReceiveResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite: - void connection$6( - NSURLConnection connection, { - required DartNSInteger didSendBodyData, - required DartNSInteger totalBytesWritten, - required DartNSInteger totalBytesExpectedToWrite, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:', - ); - } - _objc_msgSend_n75nqq( - _$$ref.pointer, - _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - _$$ref$1.pointer, - didSendBodyData, - totalBytesWritten, - totalBytesExpectedToWrite, - ); - } - - /// connection:needNewBodyStream: - objc.NSInputStream? connection$7( - NSURLConnection connection, { - required NSURLRequest needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:needNewBodyStream:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:needNewBodyStream:', - ); - } - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_connection_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// connection:willCacheResponse: - NSCachedURLResponse? connection$8( - NSURLConnection connection, { - required NSCachedURLResponse willCacheResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = willCacheResponse.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:willCacheResponse:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_willCacheResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:willCacheResponse:', - ); - } - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_connection_willCacheResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : NSCachedURLResponse.fromPointer($ret, retain: true, release: true); - } - - /// connection:willSendRequest:redirectResponse: - NSURLRequest? connection$9( - NSURLConnection connection, { - required NSURLRequest willSendRequest, - NSURLResponse? redirectResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = willSendRequest.ref; - final _$$ref$3 = redirectResponse?.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:willSendRequest:redirectResponse:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_willSendRequest_redirectResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:willSendRequest:redirectResponse:', - ); - } - final $ret = _objc_msgSend_1mevadz( - _$$ref.pointer, - _sel_connection_willSendRequest_redirectResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : NSURLRequest.fromPointer($ret, retain: true, release: true); - } - - /// connection:willSendRequestForAuthenticationChallenge: - void connection$10( - NSURLConnection connection, { - required NSURLAuthenticationChallenge - willSendRequestForAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:willSendRequestForAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:willSendRequestForAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connectionDidFinishLoading: - void connectionDidFinishLoading(NSURLConnection connection) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connectionDidFinishLoading:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connectionDidFinishLoading_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connectionDidFinishLoading:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_connectionDidFinishLoading_, - _$$ref$1.pointer, - ); - } - - /// connectionShouldUseCredentialStorage: - bool connectionShouldUseCredentialStorage(NSURLConnection connection) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connectionShouldUseCredentialStorage:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connectionShouldUseCredentialStorage:', - ); - } - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLConnectionDataDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLConnectionDataDelegate.cast()); - - /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDataDelegate implement({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDataDelegate', - ); - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_.implement( - builder, - connection_didFailWithError_, - ); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_.implement( - builder, - connection_didReceiveData_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implement(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implement( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_.implement( - builder, - connectionDidFinishLoading_, - ); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_.implement( - builder, - connection_didFailWithError_, - ); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_.implement( - builder, - connection_didReceiveData_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implement(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implement( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_.implement( - builder, - connectionDidFinishLoading_, - ); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDataDelegate implementAsListener({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDataDelegate', - ); - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ - .implementAsListener(builder, connection_didReceiveData_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implementAsListener(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsListener( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ - .implementAsListener(builder, connectionDidFinishLoading_); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ - .implementAsListener(builder, connection_didReceiveData_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implementAsListener(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsListener( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ - .implementAsListener(builder, connectionDidFinishLoading_); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDataDelegate implementAsBlocking({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDataDelegate', - ); - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ - .implementAsBlocking(builder, connection_didReceiveData_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implementAsBlocking(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsBlocking( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ - .implementAsBlocking(builder, connectionDidFinishLoading_); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ - .implementAsBlocking(builder, connection_didReceiveData_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implementAsBlocking(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsBlocking( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ - .implementAsBlocking(builder, connectionDidFinishLoading_); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// connection:canAuthenticateAgainstProtectionSpace: - static final connection_canAuthenticateAgainstProtectionSpace_ = - objc.ObjCProtocolMethod< - bool Function(NSURLConnection, NSURLProtectionSpace) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection, NSURLProtectionSpace) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLProtectionSpace arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didCancelAuthenticationChallenge: - static final connection_didCancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didFailWithError: - static final connection_didFailWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, objc.NSError) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didFailWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didFailWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didReceiveAuthenticationChallenge: - static final connection_didReceiveAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didReceiveData: - static final connection_didReceiveData_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, objc.NSData) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveData_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didReceiveResponse: - static final connection_didReceiveResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLResponse) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveResponse_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite: - static final connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - ) - > - >(_1uu024u_protocolTrampoline_14pv86t) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - DartNSInteger arg2, - DartNSInteger arg3, - DartNSInteger arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - DartNSInteger arg2, - DartNSInteger arg3, - DartNSInteger arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - DartNSInteger arg2, - DartNSInteger arg3, - DartNSInteger arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// connection:needNewBodyStream: - static final connection_needNewBodyStream_ = - objc.ObjCProtocolMethod< - objc.NSInputStream? Function(NSURLConnection, NSURLRequest) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_osi9m3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.NSInputStream? Function(NSURLConnection, NSURLRequest) func) => - ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLRequest arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:willCacheResponse: - static final connection_willCacheResponse_ = - objc.ObjCProtocolMethod< - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willCacheResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_osi9m3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willCacheResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse) - func, - ) => - ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSCachedURLResponse arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:willSendRequest:redirectResponse: - static final connection_willSendRequest_redirectResponse_ = - objc.ObjCProtocolMethod< - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willSendRequest_redirectResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ekc08i) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willSendRequest_redirectResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?) - func, - ) => - ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLRequest arg2, - NSURLResponse? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// connection:willSendRequestForAuthenticationChallenge: - static final connection_willSendRequestForAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connectionDidFinishLoading: - static final connectionDidFinishLoading_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLConnectionDataDelegate, - _sel_connectionDidFinishLoading_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connectionDidFinishLoading_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.fromFunction( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - (void Function(NSURLConnection) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.listener( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - (void Function(NSURLConnection) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.blocking( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - ); - - /// connectionShouldUseCredentialStorage: - static final connectionShouldUseCredentialStorage_ = - objc.ObjCProtocolMethod( - _protocol_NSURLConnectionDataDelegate, - _sel_connectionShouldUseCredentialStorage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_123exxr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connectionShouldUseCredentialStorage_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - ); -} - -/// NSURLConnectionDelegate -extension type NSURLConnectionDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSURLConnectionDelegate] that points to the same underlying object as [other]. - NSURLConnectionDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLConnectionDelegate] that wraps the given raw object pointer. - NSURLConnectionDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLConnectionDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLConnectionDelegate, - ); - } -} - -extension NSURLConnectionDelegate$Methods on NSURLConnectionDelegate { - /// connection:canAuthenticateAgainstProtectionSpace: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - bool connection( - NSURLConnection connection, { - required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connection:canAuthenticateAgainstProtectionSpace:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connection:canAuthenticateAgainstProtectionSpace:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didCancelAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$1( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didCancelAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connection:didCancelAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connection:didCancelAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didFailWithError: - void connection$2( - NSURLConnection connection, { - required objc.NSError didFailWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didFailWithError.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connection:didFailWithError:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didFailWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connection:didFailWithError:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didFailWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didReceiveAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$3( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didReceiveAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connection:didReceiveAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connection:didReceiveAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:willSendRequestForAuthenticationChallenge: - void connection$4( - NSURLConnection connection, { - required NSURLAuthenticationChallenge - willSendRequestForAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connection:willSendRequestForAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connection:willSendRequestForAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connectionShouldUseCredentialStorage: - bool connectionShouldUseCredentialStorage(NSURLConnection connection) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connectionShouldUseCredentialStorage:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connectionShouldUseCredentialStorage:', - ); - } - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLConnectionDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLConnectionDelegate.cast()); - - /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDelegate implement({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDelegate', - ); - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDelegate$Builder.connection_didFailWithError_.implement( - builder, - connection_didFailWithError_, - ); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDelegate$Builder.connection_didFailWithError_.implement( - builder, - connection_didFailWithError_, - ); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDelegate implementAsListener({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDelegate', - ); - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDelegate implementAsBlocking({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDelegate', - ); - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// connection:canAuthenticateAgainstProtectionSpace: - static final connection_canAuthenticateAgainstProtectionSpace_ = - objc.ObjCProtocolMethod< - bool Function(NSURLConnection, NSURLProtectionSpace) - >( - _protocol_NSURLConnectionDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection, NSURLProtectionSpace) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLProtectionSpace arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didCancelAuthenticationChallenge: - static final connection_didCancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didFailWithError: - static final connection_didFailWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, objc.NSError) - >( - _protocol_NSURLConnectionDelegate, - _sel_connection_didFailWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connection_didFailWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didReceiveAuthenticationChallenge: - static final connection_didReceiveAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:willSendRequestForAuthenticationChallenge: - static final connection_willSendRequestForAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connectionShouldUseCredentialStorage: - static final connectionShouldUseCredentialStorage_ = - objc.ObjCProtocolMethod( - _protocol_NSURLConnectionDelegate, - _sel_connectionShouldUseCredentialStorage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_123exxr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connectionShouldUseCredentialStorage_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - ); -} - -/// NSURLConnectionDownloadDelegate -extension type NSURLConnectionDownloadDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLConnectionDelegate { - /// Constructs a [NSURLConnectionDownloadDelegate] that points to the same underlying object as [other]. - NSURLConnectionDownloadDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLConnectionDownloadDelegate] that wraps the given raw object pointer. - NSURLConnectionDownloadDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLConnectionDownloadDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLConnectionDownloadDelegate, - ); - } -} - -extension NSURLConnectionDownloadDelegate$Methods - on NSURLConnectionDownloadDelegate { - /// connection:canAuthenticateAgainstProtectionSpace: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - bool connection( - NSURLConnection connection, { - required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:canAuthenticateAgainstProtectionSpace:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:canAuthenticateAgainstProtectionSpace:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didCancelAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$1( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didCancelAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:didCancelAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:didCancelAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didFailWithError: - void connection$2( - NSURLConnection connection, { - required objc.NSError didFailWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didFailWithError.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:didFailWithError:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didFailWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:didFailWithError:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didFailWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didReceiveAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$3( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didReceiveAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:didReceiveAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:didReceiveAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didWriteData:totalBytesWritten:expectedTotalBytes: - void connection$4( - NSURLConnection connection, { - required int didWriteData, - required int totalBytesWritten, - required int expectedTotalBytes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:didWriteData:totalBytesWritten:expectedTotalBytes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:didWriteData:totalBytesWritten:expectedTotalBytes:', - ); - } - _objc_msgSend_1k1r7vy( - _$$ref.pointer, - _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - _$$ref$1.pointer, - didWriteData, - totalBytesWritten, - expectedTotalBytes, - ); - } - - /// connection:willSendRequestForAuthenticationChallenge: - void connection$5( - NSURLConnection connection, { - required NSURLAuthenticationChallenge - willSendRequestForAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:willSendRequestForAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:willSendRequestForAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connectionDidFinishDownloading:destinationURL: - void connectionDidFinishDownloading( - NSURLConnection connection, { - required objc.NSURL destinationURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = destinationURL.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connectionDidFinishDownloading:destinationURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_connectionDidFinishDownloading_destinationURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes: - void connectionDidResumeDownloading( - NSURLConnection connection, { - required int totalBytesWritten, - required int expectedTotalBytes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:', - ); - } - _objc_msgSend_18h34ir( - _$$ref.pointer, - _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - _$$ref$1.pointer, - totalBytesWritten, - expectedTotalBytes, - ); - } - - /// connectionShouldUseCredentialStorage: - bool connectionShouldUseCredentialStorage(NSURLConnection connection) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connectionShouldUseCredentialStorage:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connectionShouldUseCredentialStorage:', - ); - } - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLConnectionDownloadDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => objc.Protocol.fromPointer( - _protocol_NSURLConnectionDownloadDelegate.cast(), - ); - - /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDownloadDelegate implement({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDownloadDelegate', - ); - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implement(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implement( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implement(builder, connectionDidFinishDownloading_destinationURL_); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implement( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implement(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implement( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implement(builder, connectionDidFinishDownloading_destinationURL_); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implement( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDownloadDelegate implementAsListener({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDownloadDelegate', - ); - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implementAsListener( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implementAsListener( - builder, - connectionDidFinishDownloading_destinationURL_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implementAsListener( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implementAsListener( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implementAsListener( - builder, - connectionDidFinishDownloading_destinationURL_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implementAsListener( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDownloadDelegate implementAsBlocking({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDownloadDelegate', - ); - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implementAsBlocking( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implementAsBlocking( - builder, - connectionDidFinishDownloading_destinationURL_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implementAsBlocking( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implementAsBlocking( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implementAsBlocking( - builder, - connectionDidFinishDownloading_destinationURL_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implementAsBlocking( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// connection:canAuthenticateAgainstProtectionSpace: - static final connection_canAuthenticateAgainstProtectionSpace_ = - objc.ObjCProtocolMethod< - bool Function(NSURLConnection, NSURLProtectionSpace) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection, NSURLProtectionSpace) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLProtectionSpace arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didCancelAuthenticationChallenge: - static final connection_didCancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didFailWithError: - static final connection_didFailWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, objc.NSError) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didFailWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didFailWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didReceiveAuthenticationChallenge: - static final connection_didReceiveAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didWriteData:totalBytesWritten:expectedTotalBytes: - static final connection_didWriteData_totalBytesWritten_expectedTotalBytes_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, int, int, int) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - >(_1uu024u_protocolTrampoline_1fswoub) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - (void Function(NSURLConnection, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - (void Function(NSURLConnection, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// connection:willSendRequestForAuthenticationChallenge: - static final connection_willSendRequestForAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connectionDidFinishDownloading:destinationURL: - static final connectionDidFinishDownloading_destinationURL_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, objc.NSURL) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionDidFinishDownloading_destinationURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionDidFinishDownloading_destinationURL_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSURL arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSURL arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSURL arg2, - ) => func(arg1, arg2), - ), - ); - - /// connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes: - static final connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, int, int) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ) - > - >(_1uu024u_protocolTrampoline_1b0c39y) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLConnection, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLConnection, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// connectionShouldUseCredentialStorage: - static final connectionShouldUseCredentialStorage_ = - objc.ObjCProtocolMethod( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionShouldUseCredentialStorage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_123exxr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionShouldUseCredentialStorage_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - ); -} - -/// NSURLConnectionQueuedLoading -extension NSURLConnectionQueuedLoading on NSURLConnection { - /// sendAsynchronousRequest:queue:completionHandler: - @Deprecated( - 'Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h', - ) - static void sendAsynchronousRequest( - NSURLRequest request, { - required NSOperationQueue queue, - required objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = request.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLConnection.sendAsynchronousRequest:queue:completionHandler:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_omynm( - _class_NSURLConnection, - _sel_sendAsynchronousRequest_queue_completionHandler_, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSURLConnectionSynchronousLoading -extension NSURLConnectionSynchronousLoading on NSURLConnection { - /// sendSynchronousRequest:returningResponse:error: - @Deprecated( - 'Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h', - ) - static objc.NSData? sendSynchronousRequest( - NSURLRequest request, { - required ffi.Pointer> returningResponse, - }) { - final _$$ref = request.ref; - objc.checkOsVersionInternal( - 'NSURLConnection.sendSynchronousRequest:returningResponse:error:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 3, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1vaqdcd( - _class_NSURLConnection, - _sel_sendSynchronousRequest_returningResponse_error_, - _$$ref.pointer, - returningResponse, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -/// WARNING: NSURLCredential is a stub. To generate bindings for this class, include -/// NSURLCredential in your config's objc-interfaces list. -/// -/// NSURLCredential -extension type NSURLCredential._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSURLCredential] that points to the same underlying object as [other]. - NSURLCredential.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLCredential', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLCredential] that wraps the given raw object pointer. - NSURLCredential.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLCredential', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -enum NSURLCredentialPersistence { - NSURLCredentialPersistenceNone(0), - NSURLCredentialPersistenceForSession(1), - NSURLCredentialPersistencePermanent(2), - NSURLCredentialPersistenceSynchronizable(3); - - final int value; - const NSURLCredentialPersistence(this.value); - - static NSURLCredentialPersistence fromValue(int value) => switch (value) { - 0 => NSURLCredentialPersistenceNone, - 1 => NSURLCredentialPersistenceForSession, - 2 => NSURLCredentialPersistencePermanent, - 3 => NSURLCredentialPersistenceSynchronizable, - _ => throw ArgumentError( - 'Unknown value for NSURLCredentialPersistence: $value', - ), - }; -} - -/// WARNING: NSURLCredentialStorage is a stub. To generate bindings for this class, include -/// NSURLCredentialStorage in your config's objc-interfaces list. -/// -/// NSURLCredentialStorage -extension type NSURLCredentialStorage._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLCredentialStorage] that points to the same underlying object as [other]. - NSURLCredentialStorage.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLCredentialStorage', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLCredentialStorage] that wraps the given raw object pointer. - NSURLCredentialStorage.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLCredentialStorage', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// WARNING: NSURLDownload is a stub. To generate bindings for this class, include -/// NSURLDownload in your config's objc-interfaces list. -/// -/// NSURLDownload -extension type NSURLDownload._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLDownload] that points to the same underlying object as [other]. - NSURLDownload.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLDownload', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLDownload] that wraps the given raw object pointer. - NSURLDownload.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLDownload', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// NSURLDownloadDelegate -extension type NSURLDownloadDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSURLDownloadDelegate] that points to the same underlying object as [other]. - NSURLDownloadDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLDownloadDelegate] that wraps the given raw object pointer. - NSURLDownloadDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLDownloadDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLDownloadDelegate, - ); - } -} - -extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { - /// download:canAuthenticateAgainstProtectionSpace: - bool download( - NSURLDownload connection, { - required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:canAuthenticateAgainstProtectionSpace:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_canAuthenticateAgainstProtectionSpace_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:canAuthenticateAgainstProtectionSpace:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_download_canAuthenticateAgainstProtectionSpace_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:decideDestinationWithSuggestedFilename: - void download$1( - NSURLDownload download, { - required objc.NSString decideDestinationWithSuggestedFilename, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = decideDestinationWithSuggestedFilename.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:decideDestinationWithSuggestedFilename:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_decideDestinationWithSuggestedFilename_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:decideDestinationWithSuggestedFilename:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_download_decideDestinationWithSuggestedFilename_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:didCancelAuthenticationChallenge: - void download$2( - NSURLDownload download, { - required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = didCancelAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didCancelAuthenticationChallenge:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didCancelAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didCancelAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_download_didCancelAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:didCreateDestination: - void download$3( - NSURLDownload download, { - required objc.NSString didCreateDestination, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = didCreateDestination.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didCreateDestination:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didCreateDestination_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didCreateDestination:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_download_didCreateDestination_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:didFailWithError: - void download$4( - NSURLDownload download, { - required objc.NSError didFailWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = didFailWithError.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didFailWithError:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didFailWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didFailWithError:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_download_didFailWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:didReceiveAuthenticationChallenge: - void download$5( - NSURLDownload download, { - required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = didReceiveAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didReceiveAuthenticationChallenge:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didReceiveAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didReceiveAuthenticationChallenge:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_download_didReceiveAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:didReceiveDataOfLength: - void download$6( - NSURLDownload download, { - required DartNSUInteger didReceiveDataOfLength, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didReceiveDataOfLength:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didReceiveDataOfLength_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didReceiveDataOfLength:', - ); - } - _objc_msgSend_ralblg( - _$$ref.pointer, - _sel_download_didReceiveDataOfLength_, - _$$ref$1.pointer, - didReceiveDataOfLength, - ); - } - - /// download:didReceiveResponse: - void download$7( - NSURLDownload download, { - required NSURLResponse didReceiveResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = didReceiveResponse.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didReceiveResponse:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didReceiveResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didReceiveResponse:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_download_didReceiveResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:shouldDecodeSourceDataOfMIMEType: - bool download$8( - NSURLDownload download, { - required objc.NSString shouldDecodeSourceDataOfMIMEType, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = shouldDecodeSourceDataOfMIMEType.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:shouldDecodeSourceDataOfMIMEType:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_shouldDecodeSourceDataOfMIMEType_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:shouldDecodeSourceDataOfMIMEType:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_download_shouldDecodeSourceDataOfMIMEType_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:willResumeWithResponse:fromByte: - void download$9( - NSURLDownload download, { - required NSURLResponse willResumeWithResponse, - required int fromByte, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = willResumeWithResponse.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:willResumeWithResponse:fromByte:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_willResumeWithResponse_fromByte_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:willResumeWithResponse:fromByte:', - ); - } - _objc_msgSend_1x8puhr( - _$$ref.pointer, - _sel_download_willResumeWithResponse_fromByte_, - _$$ref$1.pointer, - _$$ref$2.pointer, - fromByte, - ); - } - - /// download:willSendRequest:redirectResponse: - NSURLRequest? download$10( - NSURLDownload download, { - required NSURLRequest willSendRequest, - NSURLResponse? redirectResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = willSendRequest.ref; - final _$$ref$3 = redirectResponse?.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:willSendRequest:redirectResponse:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_willSendRequest_redirectResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:willSendRequest:redirectResponse:', - ); - } - final $ret = _objc_msgSend_1mevadz( - _$$ref.pointer, - _sel_download_willSendRequest_redirectResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : NSURLRequest.fromPointer($ret, retain: true, release: true); - } - - /// downloadDidBegin: - void downloadDidBegin(NSURLDownload download) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.downloadDidBegin:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_downloadDidBegin_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'downloadDidBegin:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_downloadDidBegin_, - _$$ref$1.pointer, - ); - } - - /// downloadDidFinish: - void downloadDidFinish(NSURLDownload download) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.downloadDidFinish:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_downloadDidFinish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'downloadDidFinish:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_downloadDidFinish_, - _$$ref$1.pointer, - ); - } - - /// downloadShouldUseCredentialStorage: - bool downloadShouldUseCredentialStorage(NSURLDownload download) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.downloadShouldUseCredentialStorage:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_downloadShouldUseCredentialStorage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'downloadShouldUseCredentialStorage:', - ); - } - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_downloadShouldUseCredentialStorage_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLDownloadDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLDownloadDelegate.cast()); - - /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLDownloadDelegate implement({ - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLDownloadDelegate', - ); - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implement(builder, download_decideDestinationWithSuggestedFilename_); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implement(builder, download_didCancelAuthenticationChallenge_); - NSURLDownloadDelegate$Builder.download_didCreateDestination_.implement( - builder, - download_didCreateDestination_, - ); - NSURLDownloadDelegate$Builder.download_didFailWithError_.implement( - builder, - download_didFailWithError_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implement(builder, download_didReceiveAuthenticationChallenge_); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_.implement( - builder, - download_didReceiveDataOfLength_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_.implement( - builder, - download_didReceiveResponse_, - ); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implement(builder, download_willResumeWithResponse_fromByte_); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implement( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implement( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - return NSURLDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implement(builder, download_decideDestinationWithSuggestedFilename_); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implement(builder, download_didCancelAuthenticationChallenge_); - NSURLDownloadDelegate$Builder.download_didCreateDestination_.implement( - builder, - download_didCreateDestination_, - ); - NSURLDownloadDelegate$Builder.download_didFailWithError_.implement( - builder, - download_didFailWithError_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implement(builder, download_didReceiveAuthenticationChallenge_); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_.implement( - builder, - download_didReceiveDataOfLength_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_.implement( - builder, - download_didReceiveResponse_, - ); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implement(builder, download_willResumeWithResponse_fromByte_); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implement( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implement( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLDownloadDelegate implementAsListener({ - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLDownloadDelegate', - ); - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implementAsListener( - builder, - download_decideDestinationWithSuggestedFilename_, - ); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - download_didCancelAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didCreateDestination_ - .implementAsListener(builder, download_didCreateDestination_); - NSURLDownloadDelegate$Builder.download_didFailWithError_ - .implementAsListener(builder, download_didFailWithError_); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - download_didReceiveAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ - .implementAsListener(builder, download_didReceiveDataOfLength_); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_ - .implementAsListener(builder, download_didReceiveResponse_); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implementAsListener( - builder, - download_willResumeWithResponse_fromByte_, - ); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsListener( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsListener( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - return NSURLDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implementAsListener( - builder, - download_decideDestinationWithSuggestedFilename_, - ); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - download_didCancelAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didCreateDestination_ - .implementAsListener(builder, download_didCreateDestination_); - NSURLDownloadDelegate$Builder.download_didFailWithError_ - .implementAsListener(builder, download_didFailWithError_); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - download_didReceiveAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ - .implementAsListener(builder, download_didReceiveDataOfLength_); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_ - .implementAsListener(builder, download_didReceiveResponse_); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implementAsListener( - builder, - download_willResumeWithResponse_fromByte_, - ); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsListener( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsListener( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLDownloadDelegate implementAsBlocking({ - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLDownloadDelegate', - ); - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implementAsBlocking( - builder, - download_decideDestinationWithSuggestedFilename_, - ); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - download_didCancelAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didCreateDestination_ - .implementAsBlocking(builder, download_didCreateDestination_); - NSURLDownloadDelegate$Builder.download_didFailWithError_ - .implementAsBlocking(builder, download_didFailWithError_); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - download_didReceiveAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ - .implementAsBlocking(builder, download_didReceiveDataOfLength_); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_ - .implementAsBlocking(builder, download_didReceiveResponse_); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implementAsBlocking( - builder, - download_willResumeWithResponse_fromByte_, - ); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsBlocking( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsBlocking( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - return NSURLDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implementAsBlocking( - builder, - download_decideDestinationWithSuggestedFilename_, - ); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - download_didCancelAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didCreateDestination_ - .implementAsBlocking(builder, download_didCreateDestination_); - NSURLDownloadDelegate$Builder.download_didFailWithError_ - .implementAsBlocking(builder, download_didFailWithError_); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - download_didReceiveAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ - .implementAsBlocking(builder, download_didReceiveDataOfLength_); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_ - .implementAsBlocking(builder, download_didReceiveResponse_); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implementAsBlocking( - builder, - download_willResumeWithResponse_fromByte_, - ); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsBlocking( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsBlocking( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - } - - /// download:canAuthenticateAgainstProtectionSpace: - static final download_canAuthenticateAgainstProtectionSpace_ = - objc.ObjCProtocolMethod< - bool Function(NSURLDownload, NSURLProtectionSpace) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_canAuthenticateAgainstProtectionSpace_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_canAuthenticateAgainstProtectionSpace_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLDownload, NSURLProtectionSpace) func) => - ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLProtectionSpace arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:decideDestinationWithSuggestedFilename: - static final download_decideDestinationWithSuggestedFilename_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, objc.NSString) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_decideDestinationWithSuggestedFilename_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_decideDestinationWithSuggestedFilename_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didCancelAuthenticationChallenge: - static final download_didCancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, NSURLAuthenticationChallenge) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didCancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didCancelAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didCreateDestination: - static final download_didCreateDestination_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, objc.NSString) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didCreateDestination_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didCreateDestination_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didFailWithError: - static final download_didFailWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, objc.NSError) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didFailWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didFailWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didReceiveAuthenticationChallenge: - static final download_didReceiveAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, NSURLAuthenticationChallenge) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didReceiveDataOfLength: - static final download_didReceiveDataOfLength_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, DartNSUInteger) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveDataOfLength_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >(_1uu024u_protocolTrampoline_1kovpyp) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveDataOfLength_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - DartNSUInteger arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - DartNSUInteger arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - DartNSUInteger arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didReceiveResponse: - static final download_didReceiveResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, NSURLResponse) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveResponse_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:shouldDecodeSourceDataOfMIMEType: - static final download_shouldDecodeSourceDataOfMIMEType_ = - objc.ObjCProtocolMethod( - _protocol_NSURLDownloadDelegate, - _sel_download_shouldDecodeSourceDataOfMIMEType_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_shouldDecodeSourceDataOfMIMEType_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSURLDownload_NSString.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:willResumeWithResponse:fromByte: - static final download_willResumeWithResponse_fromByte_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, NSURLResponse, int) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_willResumeWithResponse_fromByte_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) - > - >(_1uu024u_protocolTrampoline_1axgza4) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_willResumeWithResponse_fromByte_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, NSURLResponse, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLDownload, NSURLResponse, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLDownload, NSURLResponse, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// download:willSendRequest:redirectResponse: - static final download_willSendRequest_redirectResponse_ = - objc.ObjCProtocolMethod< - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_willSendRequest_redirectResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ekc08i) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_willSendRequest_redirectResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?) - func, - ) => - ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLRequest arg2, - NSURLResponse? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// downloadDidBegin: - static final downloadDidBegin_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLDownloadDelegate, - _sel_downloadDidBegin_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_downloadDidBegin_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.fromFunction( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.listener( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.blocking( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - ); - - /// downloadDidFinish: - static final downloadDidFinish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLDownloadDelegate, - _sel_downloadDidFinish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_downloadDidFinish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.fromFunction( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.listener( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.blocking( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - ); - - /// downloadShouldUseCredentialStorage: - static final downloadShouldUseCredentialStorage_ = - objc.ObjCProtocolMethod( - _protocol_NSURLDownloadDelegate, - _sel_downloadShouldUseCredentialStorage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_123exxr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_downloadShouldUseCredentialStorage_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLDownload) func) => - ObjCBlock_bool_ffiVoid_NSURLDownload.fromFunction( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - ); -} - -const int NSURLErrorAppTransportSecurityRequiresSecureConnection = -1022; - -const int NSURLErrorBackgroundSessionInUseByAnotherProcess = -996; - -const int NSURLErrorBackgroundSessionRequiresSharedContainer = -995; - -const int NSURLErrorBackgroundSessionWasDisconnected = -997; - -const int NSURLErrorBadServerResponse = -1011; - -const int NSURLErrorBadURL = -1000; - -const int NSURLErrorCallIsActive = -1019; - -const int NSURLErrorCancelled = -999; - -const int NSURLErrorCancelledReasonBackgroundUpdatesDisabled = 1; - -const int NSURLErrorCancelledReasonInsufficientSystemResources = 2; - -const int NSURLErrorCancelledReasonUserForceQuitApplication = 0; - -const int NSURLErrorCannotCloseFile = -3002; - -const int NSURLErrorCannotConnectToHost = -1004; - -const int NSURLErrorCannotCreateFile = -3000; - -const int NSURLErrorCannotDecodeContentData = -1016; - -const int NSURLErrorCannotDecodeRawData = -1015; - -const int NSURLErrorCannotFindHost = -1003; - -const int NSURLErrorCannotLoadFromNetwork = -2000; - -const int NSURLErrorCannotMoveFile = -3005; - -const int NSURLErrorCannotOpenFile = -3001; - -const int NSURLErrorCannotParseResponse = -1017; - -const int NSURLErrorCannotRemoveFile = -3004; - -const int NSURLErrorCannotWriteToFile = -3003; - -const int NSURLErrorClientCertificateRejected = -1205; - -const int NSURLErrorClientCertificateRequired = -1206; - -const int NSURLErrorDNSLookupFailed = -1006; - -const int NSURLErrorDataLengthExceedsMaximum = -1103; - -const int NSURLErrorDataNotAllowed = -1020; - -const int NSURLErrorDownloadDecodingFailedMidStream = -3006; - -const int NSURLErrorDownloadDecodingFailedToComplete = -3007; - -const int NSURLErrorFileDoesNotExist = -1100; - -const int NSURLErrorFileIsDirectory = -1101; - -const int NSURLErrorFileOutsideSafeArea = -1104; - -const int NSURLErrorHTTPTooManyRedirects = -1007; - -const int NSURLErrorInternationalRoamingOff = -1018; - -const int NSURLErrorNetworkConnectionLost = -1005; - -enum NSURLErrorNetworkUnavailableReason { - NSURLErrorNetworkUnavailableReasonCellular(0), - NSURLErrorNetworkUnavailableReasonExpensive(1), - NSURLErrorNetworkUnavailableReasonConstrained(2); - - final int value; - const NSURLErrorNetworkUnavailableReason(this.value); - - static NSURLErrorNetworkUnavailableReason fromValue(int value) => - switch (value) { - 0 => NSURLErrorNetworkUnavailableReasonCellular, - 1 => NSURLErrorNetworkUnavailableReasonExpensive, - 2 => NSURLErrorNetworkUnavailableReasonConstrained, - _ => throw ArgumentError( - 'Unknown value for NSURLErrorNetworkUnavailableReason: $value', - ), - }; -} - -const int NSURLErrorNoPermissionsToReadFile = -1102; - -const int NSURLErrorNotConnectedToInternet = -1009; - -const int NSURLErrorRedirectToNonExistentLocation = -1010; - -const int NSURLErrorRequestBodyStreamExhausted = -1021; - -const int NSURLErrorResourceUnavailable = -1008; - -const int NSURLErrorSecureConnectionFailed = -1200; - -const int NSURLErrorServerCertificateHasBadDate = -1201; - -const int NSURLErrorServerCertificateHasUnknownRoot = -1203; - -const int NSURLErrorServerCertificateNotYetValid = -1204; - -const int NSURLErrorServerCertificateUntrusted = -1202; - -const int NSURLErrorTimedOut = -1001; - -const int NSURLErrorUnknown = -1; - -const int NSURLErrorUnsupportedURL = -1002; - -const int NSURLErrorUserAuthenticationRequired = -1013; - -const int NSURLErrorUserCancelledAuthentication = -1012; - -const int NSURLErrorZeroByteResource = -1014; - -typedef NSURLFileProtectionType = ffi.Pointer; -typedef DartNSURLFileProtectionType = objc.NSString; -typedef NSURLFileResourceType = ffi.Pointer; -typedef DartNSURLFileResourceType = objc.NSString; - -/// NSURLHandleClient -@Deprecated('Deprecated') -extension type NSURLHandleClient._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSURLHandleClient] that points to the same underlying object as [other]. - NSURLHandleClient.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLHandleClient] that wraps the given raw object pointer. - NSURLHandleClient.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLHandleClient]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLHandleClient, - ); - } -} - -extension NSURLHandleClient$Methods on NSURLHandleClient { - /// URLHandle:resourceDataDidBecomeAvailable: - @Deprecated('Deprecated') - void URLHandle( - objc.NSURLHandle sender, { - required objc.NSData resourceDataDidBecomeAvailable, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = resourceDataDidBecomeAvailable.ref; - objc.checkOsVersionInternal( - 'NSURLHandleClient.URLHandle:resourceDataDidBecomeAvailable:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLHandle_resourceDataDidBecomeAvailable_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLHandle:resourceDidFailLoadingWithReason: - @Deprecated('Deprecated') - void URLHandle$1( - objc.NSURLHandle sender, { - required objc.NSString resourceDidFailLoadingWithReason, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = resourceDidFailLoadingWithReason.ref; - objc.checkOsVersionInternal( - 'NSURLHandleClient.URLHandle:resourceDidFailLoadingWithReason:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLHandle_resourceDidFailLoadingWithReason_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLHandleResourceDidBeginLoading: - @Deprecated('Deprecated') - void URLHandleResourceDidBeginLoading(objc.NSURLHandle sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSURLHandleClient.URLHandleResourceDidBeginLoading:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLHandleResourceDidBeginLoading_, - _$$ref$1.pointer, - ); - } - - /// URLHandleResourceDidCancelLoading: - @Deprecated('Deprecated') - void URLHandleResourceDidCancelLoading(objc.NSURLHandle sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSURLHandleClient.URLHandleResourceDidCancelLoading:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLHandleResourceDidCancelLoading_, - _$$ref$1.pointer, - ); - } - - /// URLHandleResourceDidFinishLoading: - @Deprecated('Deprecated') - void URLHandleResourceDidFinishLoading(objc.NSURLHandle sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSURLHandleClient.URLHandleResourceDidFinishLoading:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLHandleResourceDidFinishLoading_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLHandleClient$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLHandleClient.cast()); - - /// Builds an object that implements the NSURLHandleClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLHandleClient implement({ - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implement( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implement( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidBeginLoading_.implement( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidCancelLoading_.implement( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidFinishLoading_.implement( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLHandleClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLHandleClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implement( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implement( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidBeginLoading_.implement( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidCancelLoading_.implement( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidFinishLoading_.implement( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLHandleClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLHandleClient implementAsListener({ - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implementAsListener( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implementAsListener( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidBeginLoading_.implementAsListener( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidCancelLoading_.implementAsListener( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidFinishLoading_.implementAsListener( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLHandleClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLHandleClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implementAsListener( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implementAsListener( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidBeginLoading_.implementAsListener( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidCancelLoading_.implementAsListener( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidFinishLoading_.implementAsListener( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLHandleClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLHandleClient implementAsBlocking({ - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implementAsBlocking( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implementAsBlocking( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidBeginLoading_.implementAsBlocking( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidCancelLoading_.implementAsBlocking( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidFinishLoading_.implementAsBlocking( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLHandleClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLHandleClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implementAsBlocking( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implementAsBlocking( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidBeginLoading_.implementAsBlocking( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidCancelLoading_.implementAsBlocking( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidFinishLoading_.implementAsBlocking( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// URLHandle:resourceDataDidBecomeAvailable: - static final URLHandle_resourceDataDidBecomeAvailable_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSURLHandle, objc.NSData) - >( - _protocol_NSURLHandleClient, - _sel_URLHandle_resourceDataDidBecomeAvailable_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLHandleClient, - _sel_URLHandle_resourceDataDidBecomeAvailable_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSURLHandle, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.fromFunction( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSURLHandle, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.listener( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSURLHandle, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.blocking( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLHandle:resourceDidFailLoadingWithReason: - static final URLHandle_resourceDidFailLoadingWithReason_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSURLHandle, objc.NSString) - >( - _protocol_NSURLHandleClient, - _sel_URLHandle_resourceDidFailLoadingWithReason_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLHandleClient, - _sel_URLHandle_resourceDidFailLoadingWithReason_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSURLHandle, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.fromFunction( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSURLHandle, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.listener( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSURLHandle, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.blocking( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLHandleResourceDidBeginLoading: - static final URLHandleResourceDidBeginLoading_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidBeginLoading_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidBeginLoading_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - ); - - /// URLHandleResourceDidCancelLoading: - static final URLHandleResourceDidCancelLoading_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidCancelLoading_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidCancelLoading_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - ); - - /// URLHandleResourceDidFinishLoading: - static final URLHandleResourceDidFinishLoading_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidFinishLoading_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidFinishLoading_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - ); -} - -/// NSURLLoading -extension NSURLLoading on objc.NSURL { - /// URLHandleUsingCache: - @Deprecated('Use NSURLConnection instead') - objc.NSURLHandle? URLHandleUsingCache(bool shouldUseCache) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLHandleUsingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1zbf08( - _$$ref.pointer, - _sel_URLHandleUsingCache_, - shouldUseCache, - ); - return $ret.address == 0 - ? null - : objc.NSURLHandle.fromPointer($ret, retain: true, release: true); - } - - /// loadResourceDataNotifyingClient:usingCache: - @Deprecated('Use NSURLConnection instead') - void loadResourceDataNotifyingClient( - objc.ObjCObject client, { - required bool usingCache, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = client.ref; - objc.checkOsVersionInternal( - 'NSURL.loadResourceDataNotifyingClient:usingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_3lg6qb( - _$$ref.pointer, - _sel_loadResourceDataNotifyingClient_usingCache_, - _$$ref$1.pointer, - usingCache, - ); - } - - /// propertyForKey: - @Deprecated('Use NSURLConnection instead') - objc.ObjCObject? propertyForKey(objc.NSString propertyKey) { - final _$$ref = object$.ref; - final _$$ref$1 = propertyKey.ref; - objc.checkOsVersionInternal( - 'NSURL.propertyForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_propertyForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// resourceDataUsingCache: - @Deprecated('Use NSURLConnection instead') - objc.NSData? resourceDataUsingCache(bool shouldUseCache) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.resourceDataUsingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1zbf08( - _$$ref.pointer, - _sel_resourceDataUsingCache_, - shouldUseCache, - ); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// setProperty:forKey: - @Deprecated('Use NSURLConnection instead') - bool setProperty(objc.ObjCObject property, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = property.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSURL.setProperty:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_setProperty_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// setResourceData: - @Deprecated('Use NSURLConnection instead') - bool setResourceData(objc.NSData data) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - objc.checkOsVersionInternal( - 'NSURL.setResourceData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_setResourceData_, - _$$ref$1.pointer, - ); - } -} - -/// NSURLPathUtilities -extension NSURLPathUtilities on objc.NSURL { - /// URLByAppendingPathComponent: - objc.NSURL? URLByAppendingPathComponent(objc.NSString pathComponent) { - final _$$ref = object$.ref; - final _$$ref$1 = pathComponent.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathComponent:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_URLByAppendingPathComponent_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByAppendingPathComponent:isDirectory: - objc.NSURL? URLByAppendingPathComponent$1( - objc.NSString pathComponent, { - required bool isDirectory, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = pathComponent.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathComponent:isDirectory:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_umhdr9( - _$$ref.pointer, - _sel_URLByAppendingPathComponent_isDirectory_, - _$$ref$1.pointer, - isDirectory, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByAppendingPathExtension: - objc.NSURL? URLByAppendingPathExtension(objc.NSString pathExtension) { - final _$$ref = object$.ref; - final _$$ref$1 = pathExtension.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathExtension:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_URLByAppendingPathExtension_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByDeletingLastPathComponent - objc.NSURL? get URLByDeletingLastPathComponent { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByDeletingLastPathComponent', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_URLByDeletingLastPathComponent, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByDeletingPathExtension - objc.NSURL? get URLByDeletingPathExtension { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByDeletingPathExtension', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_URLByDeletingPathExtension, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByResolvingSymlinksInPath - objc.NSURL? get URLByResolvingSymlinksInPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByResolvingSymlinksInPath', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_URLByResolvingSymlinksInPath, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByStandardizingPath - objc.NSURL? get URLByStandardizingPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByStandardizingPath', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_URLByStandardizingPath, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// checkResourceIsReachableAndReturnError: - bool checkResourceIsReachableAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.checkResourceIsReachableAndReturnError:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1tjz0jr( - _$$ref.pointer, - _sel_checkResourceIsReachableAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// lastPathComponent - objc.NSString? get lastPathComponent { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.lastPathComponent', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_lastPathComponent); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// pathComponents - objc.NSArray? get pathComponents { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.pathComponents', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathComponents); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// pathExtension - objc.NSString? get pathExtension { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.pathExtension', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathExtension); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// fileURLWithPathComponents: - static objc.NSURL? fileURLWithPathComponents(objc.NSArray components) { - final _$$ref = components.ref; - objc.checkOsVersionInternal( - 'NSURL.fileURLWithPathComponents:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSURL, - _sel_fileURLWithPathComponents_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSURLProtectionSpace is a stub. To generate bindings for this class, include -/// NSURLProtectionSpace in your config's objc-interfaces list. -/// -/// NSURLProtectionSpace -extension type NSURLProtectionSpace._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSURLProtectionSpace] that points to the same underlying object as [other]. - NSURLProtectionSpace.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLProtectionSpace', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLProtectionSpace] that wraps the given raw object pointer. - NSURLProtectionSpace.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLProtectionSpace', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// WARNING: NSURLProtocol is a stub. To generate bindings for this class, include -/// NSURLProtocol in your config's objc-interfaces list. -/// -/// NSURLProtocol -extension type NSURLProtocol._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLProtocol] that points to the same underlying object as [other]. - NSURLProtocol.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLProtocol', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLProtocol] that wraps the given raw object pointer. - NSURLProtocol.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLProtocol', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// NSURLProtocolClient -extension type NSURLProtocolClient._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSURLProtocolClient] that points to the same underlying object as [other]. - NSURLProtocolClient.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLProtocolClient] that wraps the given raw object pointer. - NSURLProtocolClient.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLProtocolClient]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLProtocolClient, - ); - } -} - -extension NSURLProtocolClient$Methods on NSURLProtocolClient { - /// URLProtocol:cachedResponseIsValid: - void URLProtocol( - NSURLProtocol protocol, { - required NSCachedURLResponse cachedResponseIsValid, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = cachedResponseIsValid.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:cachedResponseIsValid:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLProtocol_cachedResponseIsValid_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLProtocol:didCancelAuthenticationChallenge: - void URLProtocol$1( - NSURLProtocol protocol, { - required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = didCancelAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:didCancelAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLProtocol_didCancelAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLProtocol:didFailWithError: - void URLProtocol$2( - NSURLProtocol protocol, { - required objc.NSError didFailWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = didFailWithError.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:didFailWithError:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLProtocol_didFailWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLProtocol:didLoadData: - void URLProtocol$3( - NSURLProtocol protocol, { - required objc.NSData didLoadData, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = didLoadData.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:didLoadData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLProtocol_didLoadData_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLProtocol:didReceiveAuthenticationChallenge: - void URLProtocol$4( - NSURLProtocol protocol, { - required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = didReceiveAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:didReceiveAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLProtocol_didReceiveAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLProtocol:didReceiveResponse:cacheStoragePolicy: - void URLProtocol$5( - NSURLProtocol protocol, { - required NSURLResponse didReceiveResponse, - required NSURLCacheStoragePolicy cacheStoragePolicy, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = didReceiveResponse.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:didReceiveResponse:cacheStoragePolicy:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1gmrb5m( - _$$ref.pointer, - _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, - _$$ref$1.pointer, - _$$ref$2.pointer, - cacheStoragePolicy.value, - ); - } - - /// URLProtocol:wasRedirectedToRequest:redirectResponse: - void URLProtocol$6( - NSURLProtocol protocol, { - required NSURLRequest wasRedirectedToRequest, - required NSURLResponse redirectResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = wasRedirectedToRequest.ref; - final _$$ref$3 = redirectResponse.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:wasRedirectedToRequest:redirectResponse:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLProtocolDidFinishLoading: - void URLProtocolDidFinishLoading(NSURLProtocol protocol) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocolDidFinishLoading:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLProtocolDidFinishLoading_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLProtocolClient$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLProtocolClient.cast()); - - /// Builds an object that implements the NSURLProtocolClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLProtocolClient implement({ - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); - NSURLProtocolClient$Builder.URLProtocol_cachedResponseIsValid_.implement( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implement( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder.URLProtocol_didFailWithError_.implement( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implement( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implement( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implement( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implement( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder.URLProtocolDidFinishLoading_.implement( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLProtocolClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLProtocolClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLProtocolClient$Builder.URLProtocol_cachedResponseIsValid_.implement( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implement( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder.URLProtocol_didFailWithError_.implement( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implement( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implement( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implement( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implement( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder.URLProtocolDidFinishLoading_.implement( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLProtocolClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLProtocolClient implementAsListener({ - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); - NSURLProtocolClient$Builder - .URLProtocol_cachedResponseIsValid_.implementAsListener( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implementAsListener( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didFailWithError_.implementAsListener( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsListener( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implementAsListener( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsListener( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsListener( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder - .URLProtocolDidFinishLoading_.implementAsListener( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLProtocolClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLProtocolClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLProtocolClient$Builder - .URLProtocol_cachedResponseIsValid_.implementAsListener( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implementAsListener( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didFailWithError_.implementAsListener( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsListener( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implementAsListener( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsListener( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsListener( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder - .URLProtocolDidFinishLoading_.implementAsListener( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLProtocolClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLProtocolClient implementAsBlocking({ - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); - NSURLProtocolClient$Builder - .URLProtocol_cachedResponseIsValid_.implementAsBlocking( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implementAsBlocking( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didFailWithError_.implementAsBlocking( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsBlocking( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implementAsBlocking( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsBlocking( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsBlocking( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder - .URLProtocolDidFinishLoading_.implementAsBlocking( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLProtocolClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLProtocolClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLProtocolClient$Builder - .URLProtocol_cachedResponseIsValid_.implementAsBlocking( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implementAsBlocking( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didFailWithError_.implementAsBlocking( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsBlocking( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implementAsBlocking( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsBlocking( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsBlocking( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder - .URLProtocolDidFinishLoading_.implementAsBlocking( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// URLProtocol:cachedResponseIsValid: - static final URLProtocol_cachedResponseIsValid_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, NSCachedURLResponse) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_cachedResponseIsValid_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_cachedResponseIsValid_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, NSCachedURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSCachedURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSCachedURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSCachedURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSCachedURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSCachedURLResponse arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLProtocol:didCancelAuthenticationChallenge: - static final URLProtocol_didCancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, NSURLAuthenticationChallenge) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didCancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didCancelAuthenticationChallenge_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLProtocol:didFailWithError: - static final URLProtocol_didFailWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, objc.NSError) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didFailWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didFailWithError_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLProtocol:didLoadData: - static final URLProtocol_didLoadData_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, objc.NSData) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didLoadData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didLoadData_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.fromFunction( - (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSURLProtocol, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.listener( - (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSURLProtocol, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.blocking( - (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - ); - - /// URLProtocol:didReceiveAuthenticationChallenge: - static final URLProtocol_didReceiveAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, NSURLAuthenticationChallenge) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didReceiveAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didReceiveAuthenticationChallenge_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLProtocol:didReceiveResponse:cacheStoragePolicy: - static final URLProtocol_didReceiveResponse_cacheStoragePolicy_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >(_1uu024u_protocolTrampoline_1mrpyvj) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, - isRequired: true, - isInstanceMethod: true, - ), - ( - void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLResponse arg2, - NSURLCacheStoragePolicy arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLResponse arg2, - NSURLCacheStoragePolicy arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLResponse arg2, - NSURLCacheStoragePolicy arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLProtocol:wasRedirectedToRequest:redirectResponse: - static final URLProtocol_wasRedirectedToRequest_redirectResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLRequest arg2, - NSURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLRequest arg2, - NSURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLRequest arg2, - NSURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLProtocolDidFinishLoading: - static final URLProtocolDidFinishLoading_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLProtocolClient, - _sel_URLProtocolDidFinishLoading_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocolDidFinishLoading_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.fromFunction( - (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), - ), - (void Function(NSURLProtocol) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.listener( - (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), - ), - (void Function(NSURLProtocol) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.blocking( - (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), - ), - ); -} - -enum NSURLRelationship { - NSURLRelationshipContains(0), - NSURLRelationshipSame(1), - NSURLRelationshipOther(2); - - final int value; - const NSURLRelationship(this.value); - - static NSURLRelationship fromValue(int value) => switch (value) { - 0 => NSURLRelationshipContains, - 1 => NSURLRelationshipSame, - 2 => NSURLRelationshipOther, - _ => throw ArgumentError('Unknown value for NSURLRelationship: $value'), - }; -} - -/// WARNING: NSURLRequest is a stub. To generate bindings for this class, include -/// NSURLRequest in your config's objc-interfaces list. -/// -/// NSURLRequest -extension type NSURLRequest._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying, - objc.NSMutableCopying { - /// Constructs a [NSURLRequest] that points to the same underlying object as [other]. - NSURLRequest.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLRequest] that wraps the given raw object pointer. - NSURLRequest.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -enum NSURLRequestAttribution { - NSURLRequestAttributionDeveloper(0), - NSURLRequestAttributionUser(1); - - final int value; - const NSURLRequestAttribution(this.value); - - static NSURLRequestAttribution fromValue(int value) => switch (value) { - 0 => NSURLRequestAttributionDeveloper, - 1 => NSURLRequestAttributionUser, - _ => throw ArgumentError( - 'Unknown value for NSURLRequestAttribution: $value', - ), - }; -} - -enum NSURLRequestCachePolicy { - NSURLRequestUseProtocolCachePolicy(0), - NSURLRequestReloadIgnoringLocalCacheData(1), - NSURLRequestReloadIgnoringLocalAndRemoteCacheData(4), - NSURLRequestReturnCacheDataElseLoad(2), - NSURLRequestReturnCacheDataDontLoad(3), - NSURLRequestReloadRevalidatingCacheData(5); - - static const NSURLRequestReloadIgnoringCacheData = - NSURLRequestReloadIgnoringLocalCacheData; - - final int value; - const NSURLRequestCachePolicy(this.value); - - static NSURLRequestCachePolicy fromValue(int value) => switch (value) { - 0 => NSURLRequestUseProtocolCachePolicy, - 1 => NSURLRequestReloadIgnoringLocalCacheData, - 4 => NSURLRequestReloadIgnoringLocalAndRemoteCacheData, - 2 => NSURLRequestReturnCacheDataElseLoad, - 3 => NSURLRequestReturnCacheDataDontLoad, - 5 => NSURLRequestReloadRevalidatingCacheData, - _ => throw ArgumentError( - 'Unknown value for NSURLRequestCachePolicy: $value', - ), - }; - - @override - String toString() { - if (this == NSURLRequestReloadIgnoringLocalCacheData) - return "NSURLRequestCachePolicy.NSURLRequestReloadIgnoringLocalCacheData, NSURLRequestCachePolicy.NSURLRequestReloadIgnoringCacheData"; - return super.toString(); - } -} - -enum NSURLRequestNetworkServiceType { - NSURLNetworkServiceTypeDefault(0), - NSURLNetworkServiceTypeVoIP(1), - NSURLNetworkServiceTypeVideo(2), - NSURLNetworkServiceTypeBackground(3), - NSURLNetworkServiceTypeVoice(4), - NSURLNetworkServiceTypeResponsiveData(6), - NSURLNetworkServiceTypeAVStreaming(8), - NSURLNetworkServiceTypeResponsiveAV(9), - NSURLNetworkServiceTypeCallSignaling(11); - - final int value; - const NSURLRequestNetworkServiceType(this.value); - - static NSURLRequestNetworkServiceType fromValue(int value) => switch (value) { - 0 => NSURLNetworkServiceTypeDefault, - 1 => NSURLNetworkServiceTypeVoIP, - 2 => NSURLNetworkServiceTypeVideo, - 3 => NSURLNetworkServiceTypeBackground, - 4 => NSURLNetworkServiceTypeVoice, - 6 => NSURLNetworkServiceTypeResponsiveData, - 8 => NSURLNetworkServiceTypeAVStreaming, - 9 => NSURLNetworkServiceTypeResponsiveAV, - 11 => NSURLNetworkServiceTypeCallSignaling, - _ => throw ArgumentError( - 'Unknown value for NSURLRequestNetworkServiceType: $value', - ), - }; -} - -typedef NSURLResourceKey = ffi.Pointer; -typedef DartNSURLResourceKey = objc.NSString; - -/// WARNING: NSURLResponse is a stub. To generate bindings for this class, include -/// NSURLResponse in your config's objc-interfaces list. -/// -/// NSURLResponse -extension type NSURLResponse._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSURLResponse] that points to the same underlying object as [other]. - NSURLResponse.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLResponse] that wraps the given raw object pointer. - NSURLResponse.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// WARNING: NSURLSession is a stub. To generate bindings for this class, include -/// NSURLSession in your config's objc-interfaces list. -/// -/// NSURLSession -extension type NSURLSession._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLSession] that points to the same underlying object as [other]. - NSURLSession.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSession', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSession] that wraps the given raw object pointer. - NSURLSession.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSession', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -/// NSURLSessionAsynchronousConvenience -extension NSURLSessionAsynchronousConvenience on NSURLSession { - /// dataTaskWithRequest:completionHandler: - NSURLSessionDataTask dataTaskWithRequest( - NSURLRequest request, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = request.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.dataTaskWithRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_8ut1ht( - _$$ref.pointer, - _sel_dataTaskWithRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - /// dataTaskWithURL:completionHandler: - NSURLSessionDataTask dataTaskWithURL( - objc.NSURL url, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.dataTaskWithURL:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_8ut1ht( - _$$ref.pointer, - _sel_dataTaskWithURL_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - /// downloadTaskWithRequest:completionHandler: - NSURLSessionDownloadTask downloadTaskWithRequest( - NSURLRequest request, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = request.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.downloadTaskWithRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_8ut1ht( - _$$ref.pointer, - _sel_downloadTaskWithRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// downloadTaskWithResumeData:completionHandler: - NSURLSessionDownloadTask downloadTaskWithResumeData( - objc.NSData resumeData, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = resumeData.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.downloadTaskWithResumeData:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_8ut1ht( - _$$ref.pointer, - _sel_downloadTaskWithResumeData_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// downloadTaskWithURL:completionHandler: - NSURLSessionDownloadTask downloadTaskWithURL( - objc.NSURL url, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.downloadTaskWithURL:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_8ut1ht( - _$$ref.pointer, - _sel_downloadTaskWithURL_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// uploadTaskWithRequest:fromData:completionHandler: - NSURLSessionUploadTask uploadTaskWithRequest( - NSURLRequest request, { - objc.NSData? fromData, - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = request.ref; - final _$$ref$2 = fromData?.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.uploadTaskWithRequest:fromData:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_ftq404( - _$$ref.pointer, - _sel_uploadTaskWithRequest_fromData_completionHandler_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3.pointer, - ); - return NSURLSessionUploadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// uploadTaskWithRequest:fromFile:completionHandler: - NSURLSessionUploadTask uploadTaskWithRequest$1( - NSURLRequest request, { - required objc.NSURL fromFile, - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = request.ref; - final _$$ref$2 = fromFile.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.uploadTaskWithRequest:fromFile:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_ftq404( - _$$ref.pointer, - _sel_uploadTaskWithRequest_fromFile_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return NSURLSessionUploadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// uploadTaskWithResumeData:completionHandler: - NSURLSessionUploadTask uploadTaskWithResumeData( - objc.NSData resumeData, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = resumeData.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.uploadTaskWithResumeData:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_8ut1ht( - _$$ref.pointer, - _sel_uploadTaskWithResumeData_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionUploadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -enum NSURLSessionAuthChallengeDisposition { - NSURLSessionAuthChallengeUseCredential(0), - NSURLSessionAuthChallengePerformDefaultHandling(1), - NSURLSessionAuthChallengeCancelAuthenticationChallenge(2), - NSURLSessionAuthChallengeRejectProtectionSpace(3); - - final int value; - const NSURLSessionAuthChallengeDisposition(this.value); - - static NSURLSessionAuthChallengeDisposition fromValue(int value) => - switch (value) { - 0 => NSURLSessionAuthChallengeUseCredential, - 1 => NSURLSessionAuthChallengePerformDefaultHandling, - 2 => NSURLSessionAuthChallengeCancelAuthenticationChallenge, - 3 => NSURLSessionAuthChallengeRejectProtectionSpace, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionAuthChallengeDisposition: $value', - ), - }; -} - -/// WARNING: NSURLSessionConfiguration is a stub. To generate bindings for this class, include -/// NSURLSessionConfiguration in your config's objc-interfaces list. -/// -/// NSURLSessionConfiguration -extension type NSURLSessionConfiguration._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCopying { - /// Constructs a [NSURLSessionConfiguration] that points to the same underlying object as [other]. - NSURLSessionConfiguration.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionConfiguration', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSessionConfiguration] that wraps the given raw object pointer. - NSURLSessionConfiguration.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionConfiguration', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -/// NSURLSessionDataDelegate -extension type NSURLSessionDataDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLSessionTaskDelegate { - /// Constructs a [NSURLSessionDataDelegate] that points to the same underlying object as [other]. - NSURLSessionDataDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionDataDelegate] that wraps the given raw object pointer. - NSURLSessionDataDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionDataDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionDataDelegate, - ); - } -} - -extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { - /// URLSession:dataTask:didBecomeDownloadTask: - void URLSession( - NSURLSession session, { - required NSURLSessionDataTask dataTask, - required NSURLSessionDownloadTask didBecomeDownloadTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = dataTask.ref; - final _$$ref$3 = didBecomeDownloadTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:dataTask:didBecomeDownloadTask:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_dataTask_didBecomeDownloadTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:dataTask:didBecomeDownloadTask:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_dataTask_didBecomeDownloadTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:dataTask:didBecomeStreamTask: - void URLSession$1( - NSURLSession session, { - required NSURLSessionDataTask dataTask, - required NSURLSessionStreamTask didBecomeStreamTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = dataTask.ref; - final _$$ref$3 = didBecomeStreamTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:dataTask:didBecomeStreamTask:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_dataTask_didBecomeStreamTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:dataTask:didBecomeStreamTask:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_dataTask_didBecomeStreamTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:dataTask:didReceiveData: - void URLSession$2( - NSURLSession session, { - required NSURLSessionDataTask dataTask, - required objc.NSData didReceiveData, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = dataTask.ref; - final _$$ref$3 = didReceiveData.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:dataTask:didReceiveData:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_dataTask_didReceiveData_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:dataTask:didReceiveData:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_dataTask_didReceiveData_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:dataTask:didReceiveResponse:completionHandler: - void URLSession$3( - NSURLSession session, { - required NSURLSessionDataTask dataTask, - required NSURLResponse didReceiveResponse, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = dataTask.ref; - final _$$ref$3 = didReceiveResponse.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:dataTask:didReceiveResponse:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:dataTask:didReceiveResponse:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:dataTask:willCacheResponse:completionHandler: - void URLSession$4( - NSURLSession session, { - required NSURLSessionDataTask dataTask, - required NSCachedURLResponse willCacheResponse, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = dataTask.ref; - final _$$ref$3 = willCacheResponse.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:dataTask:willCacheResponse:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_dataTask_willCacheResponse_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:dataTask:willCacheResponse:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_dataTask_willCacheResponse_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:didBecomeInvalidWithError: - void URLSession$5( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didCreateTask: - void URLSession$6( - NSURLSession session, { - required NSURLSessionTask didCreateTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didCreateTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:didCreateTask:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:didCreateTask:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$7( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didCompleteWithError: - void URLSession$8( - NSURLSession session, { - required NSURLSessionTask task, - objc.NSError? didCompleteWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didCompleteWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:didCompleteWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:didCompleteWithError:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:task:didFinishCollectingMetrics: - void URLSession$9( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLSessionTaskMetrics didFinishCollectingMetrics, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didFinishCollectingMetrics.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:didFinishCollectingMetrics:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:didFinishCollectingMetrics:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didReceiveChallenge:completionHandler: - void URLSession$10( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveChallenge.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didReceiveInformationalResponse: - void URLSession$11( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse didReceiveInformationalResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveInformationalResponse.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:didReceiveInformationalResponse:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:didReceiveInformationalResponse:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - void URLSession$12( - NSURLSession session, { - required NSURLSessionTask task, - required int didSendBodyData, - required int totalBytesSent, - required int totalBytesExpectedToSend, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - ); - } - _objc_msgSend_1e5znsh( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didSendBodyData, - totalBytesSent, - totalBytesExpectedToSend, - ); - } - - /// URLSession:task:needNewBodyStream: - void URLSession$13( - NSURLSession session, { - required NSURLSessionTask task, - required objc.ObjCBlock - needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:needNewBodyStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:needNewBodyStream:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - void URLSession$14( - NSURLSession session, { - required NSURLSessionTask task, - required int needNewBodyStreamFromOffset, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - ); - } - _objc_msgSend_1df5a5f( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - needNewBodyStreamFromOffset, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - void URLSession$15( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLRequest willBeginDelayedRequest, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willBeginDelayedRequest.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:willBeginDelayedRequest:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - void URLSession$16( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse willPerformHTTPRedirection, - required NSURLRequest newRequest, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willPerformHTTPRedirection.ref; - final _$$ref$4 = newRequest.ref; - final _$$ref$5 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - ); - } - _objc_msgSend_ng7j0k( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - _$$ref$5.pointer, - ); - } - - /// URLSession:taskIsWaitingForConnectivity: - void URLSession$17( - NSURLSession session, { - required NSURLSessionTask taskIsWaitingForConnectivity, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = taskIsWaitingForConnectivity.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:taskIsWaitingForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:taskIsWaitingForConnectivity:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionDataDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionDataDelegate.cast()); - - /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDataDelegate implement({ - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDataDelegate', - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implement( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implement( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implement( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implement( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implement( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implement( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implement( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implement( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implement( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implement( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDataDelegate implementAsListener({ - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDataDelegate', - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implementAsListener( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implementAsListener( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implementAsListener( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsListener( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsListener( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implementAsListener( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implementAsListener( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implementAsListener( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsListener( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsListener( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDataDelegate implementAsBlocking({ - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDataDelegate', - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implementAsBlocking( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implementAsBlocking( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implementAsBlocking( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsBlocking( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsBlocking( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implementAsBlocking( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implementAsBlocking( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implementAsBlocking( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsBlocking( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsBlocking( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:dataTask:didBecomeDownloadTask: - static final URLSession_dataTask_didBecomeDownloadTask_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeDownloadTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeDownloadTask_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionDownloadTask arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionDownloadTask arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionDownloadTask arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:dataTask:didBecomeStreamTask: - static final URLSession_dataTask_didBecomeStreamTask_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeStreamTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeStreamTask_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionStreamTask arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionStreamTask arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionStreamTask arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:dataTask:didReceiveData: - static final URLSession_dataTask_didReceiveData_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveData_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - objc.NSData arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - objc.NSData arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - objc.NSData arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:dataTask:didReceiveResponse:completionHandler: - static final URLSession_dataTask_didReceiveResponse_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:dataTask:willCacheResponse:completionHandler: - static final URLSession_dataTask_willCacheResponse_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_willCacheResponse_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_willCacheResponse_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didCreateTask: - static final URLSession_didCreateTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didCompleteWithError: - static final URLSession_task_didCompleteWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didFinishCollectingMetrics: - static final URLSession_task_didFinishCollectingMetrics_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didReceiveChallenge:completionHandler: - static final URLSession_task_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didReceiveInformationalResponse: - static final URLSession_task_didReceiveInformationalResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_132zq0k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:needNewBodyStream: - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_36nsue) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - static final URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ye2vt3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:taskIsWaitingForConnectivity: - static final URLSession_taskIsWaitingForConnectivity_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionDataDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -/// WARNING: NSURLSessionDataTask is a stub. To generate bindings for this class, include -/// NSURLSessionDataTask in your config's objc-interfaces list. -/// -/// NSURLSessionDataTask -extension type NSURLSessionDataTask._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLSessionTask { - /// Constructs a [NSURLSessionDataTask] that points to the same underlying object as [other]. - NSURLSessionDataTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionDataTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSessionDataTask] that wraps the given raw object pointer. - NSURLSessionDataTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionDataTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -enum NSURLSessionDelayedRequestDisposition { - NSURLSessionDelayedRequestContinueLoading(0), - NSURLSessionDelayedRequestUseNewRequest(1), - NSURLSessionDelayedRequestCancel(2); - - final int value; - const NSURLSessionDelayedRequestDisposition(this.value); - - static NSURLSessionDelayedRequestDisposition fromValue(int value) => - switch (value) { - 0 => NSURLSessionDelayedRequestContinueLoading, - 1 => NSURLSessionDelayedRequestUseNewRequest, - 2 => NSURLSessionDelayedRequestCancel, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionDelayedRequestDisposition: $value', - ), - }; -} - -/// NSURLSessionDelegate -extension type NSURLSessionDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSURLSessionDelegate] that points to the same underlying object as [other]. - NSURLSessionDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionDelegate] that wraps the given raw object pointer. - NSURLSessionDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionDelegate, - ); - } -} - -extension NSURLSessionDelegate$Methods on NSURLSessionDelegate { - /// URLSession:didBecomeInvalidWithError: - void URLSession( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$1( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionDelegate.cast()); - - /// Builds an object that implements the NSURLSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDelegate implement({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDelegate implementAsListener({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDelegate implementAsBlocking({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -/// NSURLSessionDeprecated -extension NSURLSessionDeprecated on NSURLSessionConfiguration { - /// backgroundSessionConfiguration: - @Deprecated('Deprecated') - static NSURLSessionConfiguration backgroundSessionConfiguration( - objc.NSString identifier, - ) { - final _$$ref = identifier.ref; - objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.backgroundSessionConfiguration:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _class_NSURLSessionConfiguration, - _sel_backgroundSessionConfiguration_, - _$$ref.pointer, - ); - return NSURLSessionConfiguration.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSURLSessionDownloadDelegate -extension type NSURLSessionDownloadDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLSessionTaskDelegate { - /// Constructs a [NSURLSessionDownloadDelegate] that points to the same underlying object as [other]. - NSURLSessionDownloadDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionDownloadDelegate] that wraps the given raw object pointer. - NSURLSessionDownloadDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionDownloadDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionDownloadDelegate, - ); - } -} - -extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { - /// URLSession:didBecomeInvalidWithError: - void URLSession( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didCreateTask: - void URLSession$1( - NSURLSession session, { - required NSURLSessionTask didCreateTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didCreateTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:didCreateTask:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:didCreateTask:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$2( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:downloadTask:didFinishDownloadingToURL: - void URLSession$3( - NSURLSession session, { - required NSURLSessionDownloadTask downloadTask, - required objc.NSURL didFinishDownloadingToURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = downloadTask.ref; - final _$$ref$3 = didFinishDownloadingToURL.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didFinishDownloadingToURL:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_downloadTask_didFinishDownloadingToURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes: - void URLSession$4( - NSURLSession session, { - required NSURLSessionDownloadTask downloadTask, - required int didResumeAtOffset, - required int expectedTotalBytes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = downloadTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:', - ); - } - _objc_msgSend_avag80( - _$$ref.pointer, - _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didResumeAtOffset, - expectedTotalBytes, - ); - } - - /// URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite: - void URLSession$5( - NSURLSession session, { - required NSURLSessionDownloadTask downloadTask, - required int didWriteData, - required int totalBytesWritten, - required int totalBytesExpectedToWrite, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = downloadTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:', - ); - } - _objc_msgSend_1e5znsh( - _$$ref.pointer, - _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didWriteData, - totalBytesWritten, - totalBytesExpectedToWrite, - ); - } - - /// URLSession:task:didCompleteWithError: - void URLSession$6( - NSURLSession session, { - required NSURLSessionTask task, - objc.NSError? didCompleteWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didCompleteWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:didCompleteWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:didCompleteWithError:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:task:didFinishCollectingMetrics: - void URLSession$7( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLSessionTaskMetrics didFinishCollectingMetrics, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didFinishCollectingMetrics.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:didFinishCollectingMetrics:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:didFinishCollectingMetrics:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didReceiveChallenge:completionHandler: - void URLSession$8( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveChallenge.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didReceiveInformationalResponse: - void URLSession$9( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse didReceiveInformationalResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveInformationalResponse.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:didReceiveInformationalResponse:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:didReceiveInformationalResponse:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - void URLSession$10( - NSURLSession session, { - required NSURLSessionTask task, - required int didSendBodyData, - required int totalBytesSent, - required int totalBytesExpectedToSend, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - ); - } - _objc_msgSend_1e5znsh( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didSendBodyData, - totalBytesSent, - totalBytesExpectedToSend, - ); - } - - /// URLSession:task:needNewBodyStream: - void URLSession$11( - NSURLSession session, { - required NSURLSessionTask task, - required objc.ObjCBlock - needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:needNewBodyStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:needNewBodyStream:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - void URLSession$12( - NSURLSession session, { - required NSURLSessionTask task, - required int needNewBodyStreamFromOffset, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - ); - } - _objc_msgSend_1df5a5f( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - needNewBodyStreamFromOffset, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - void URLSession$13( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLRequest willBeginDelayedRequest, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willBeginDelayedRequest.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:willBeginDelayedRequest:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - void URLSession$14( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse willPerformHTTPRedirection, - required NSURLRequest newRequest, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willPerformHTTPRedirection.ref; - final _$$ref$4 = newRequest.ref; - final _$$ref$5 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - ); - } - _objc_msgSend_ng7j0k( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - _$$ref$5.pointer, - ); - } - - /// URLSession:taskIsWaitingForConnectivity: - void URLSession$15( - NSURLSession session, { - required NSURLSessionTask taskIsWaitingForConnectivity, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = taskIsWaitingForConnectivity.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:taskIsWaitingForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:taskIsWaitingForConnectivity:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionDownloadDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionDownloadDelegate.cast()); - - /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDownloadDelegate implement({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDownloadDelegate', - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implement( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implement( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implement( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implement( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implement( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implement( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDownloadDelegate implementAsListener({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDownloadDelegate', - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsListener( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsListener( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsListener( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsListener( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsListener( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsListener( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDownloadDelegate implementAsBlocking({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDownloadDelegate', - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsBlocking( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsBlocking( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsBlocking( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsBlocking( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsBlocking( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsBlocking( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didCreateTask: - static final URLSession_didCreateTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:downloadTask:didFinishDownloadingToURL: - static final URLSession_downloadTask_didFinishDownloadingToURL_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didFinishDownloadingToURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didFinishDownloadingToURL_, - isRequired: true, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes: - static final URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDownloadTask, int, int) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_1cgt9gb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite: - static final URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_132zq0k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:didCompleteWithError: - static final URLSession_task_didCompleteWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didFinishCollectingMetrics: - static final URLSession_task_didFinishCollectingMetrics_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didReceiveChallenge:completionHandler: - static final URLSession_task_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didReceiveInformationalResponse: - static final URLSession_task_didReceiveInformationalResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_132zq0k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:needNewBodyStream: - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_36nsue) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - static final URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ye2vt3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:taskIsWaitingForConnectivity: - static final URLSession_taskIsWaitingForConnectivity_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -/// WARNING: NSURLSessionDownloadTask is a stub. To generate bindings for this class, include -/// NSURLSessionDownloadTask in your config's objc-interfaces list. -/// -/// NSURLSessionDownloadTask -extension type NSURLSessionDownloadTask._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLSessionTask { - /// Constructs a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. - NSURLSessionDownloadTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionDownloadTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSessionDownloadTask] that wraps the given raw object pointer. - NSURLSessionDownloadTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionDownloadTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -enum NSURLSessionMultipathServiceType { - NSURLSessionMultipathServiceTypeNone(0), - NSURLSessionMultipathServiceTypeHandover(1), - NSURLSessionMultipathServiceTypeInteractive(2), - NSURLSessionMultipathServiceTypeAggregate(3); - - final int value; - const NSURLSessionMultipathServiceType(this.value); - - static NSURLSessionMultipathServiceType fromValue(int value) => - switch (value) { - 0 => NSURLSessionMultipathServiceTypeNone, - 1 => NSURLSessionMultipathServiceTypeHandover, - 2 => NSURLSessionMultipathServiceTypeInteractive, - 3 => NSURLSessionMultipathServiceTypeAggregate, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionMultipathServiceType: $value', - ), - }; -} - -enum NSURLSessionResponseDisposition { - NSURLSessionResponseCancel(0), - NSURLSessionResponseAllow(1), - NSURLSessionResponseBecomeDownload(2), - NSURLSessionResponseBecomeStream(3); - - final int value; - const NSURLSessionResponseDisposition(this.value); - - static NSURLSessionResponseDisposition fromValue(int value) => - switch (value) { - 0 => NSURLSessionResponseCancel, - 1 => NSURLSessionResponseAllow, - 2 => NSURLSessionResponseBecomeDownload, - 3 => NSURLSessionResponseBecomeStream, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionResponseDisposition: $value', - ), - }; -} - -/// NSURLSessionStreamDelegate -extension type NSURLSessionStreamDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLSessionTaskDelegate { - /// Constructs a [NSURLSessionStreamDelegate] that points to the same underlying object as [other]. - NSURLSessionStreamDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionStreamDelegate] that wraps the given raw object pointer. - NSURLSessionStreamDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionStreamDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionStreamDelegate, - ); - } -} - -extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { - /// URLSession:betterRouteDiscoveredForStreamTask: - void URLSession( - NSURLSession session, { - required NSURLSessionStreamTask betterRouteDiscoveredForStreamTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = betterRouteDiscoveredForStreamTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:betterRouteDiscoveredForStreamTask:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_betterRouteDiscoveredForStreamTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:betterRouteDiscoveredForStreamTask:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_betterRouteDiscoveredForStreamTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didBecomeInvalidWithError: - void URLSession$1( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didCreateTask: - void URLSession$2( - NSURLSession session, { - required NSURLSessionTask didCreateTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didCreateTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:didCreateTask:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:didCreateTask:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$3( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:readClosedForStreamTask: - void URLSession$4( - NSURLSession session, { - required NSURLSessionStreamTask readClosedForStreamTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = readClosedForStreamTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:readClosedForStreamTask:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_readClosedForStreamTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:readClosedForStreamTask:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_readClosedForStreamTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:streamTask:didBecomeInputStream:outputStream: - void URLSession$5( - NSURLSession session, { - required NSURLSessionStreamTask streamTask, - required objc.NSInputStream didBecomeInputStream, - required objc.NSOutputStream outputStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = streamTask.ref; - final _$$ref$3 = didBecomeInputStream.ref; - final _$$ref$4 = outputStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:streamTask:didBecomeInputStream:outputStream:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:streamTask:didBecomeInputStream:outputStream:', - ); - } - _objc_msgSend_25u0to( - _$$ref.pointer, - _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didCompleteWithError: - void URLSession$6( - NSURLSession session, { - required NSURLSessionTask task, - objc.NSError? didCompleteWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didCompleteWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:didCompleteWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:didCompleteWithError:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:task:didFinishCollectingMetrics: - void URLSession$7( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLSessionTaskMetrics didFinishCollectingMetrics, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didFinishCollectingMetrics.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:didFinishCollectingMetrics:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:didFinishCollectingMetrics:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didReceiveChallenge:completionHandler: - void URLSession$8( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveChallenge.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didReceiveInformationalResponse: - void URLSession$9( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse didReceiveInformationalResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveInformationalResponse.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:didReceiveInformationalResponse:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:didReceiveInformationalResponse:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - void URLSession$10( - NSURLSession session, { - required NSURLSessionTask task, - required int didSendBodyData, - required int totalBytesSent, - required int totalBytesExpectedToSend, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - ); - } - _objc_msgSend_1e5znsh( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didSendBodyData, - totalBytesSent, - totalBytesExpectedToSend, - ); - } - - /// URLSession:task:needNewBodyStream: - void URLSession$11( - NSURLSession session, { - required NSURLSessionTask task, - required objc.ObjCBlock - needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:needNewBodyStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:needNewBodyStream:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - void URLSession$12( - NSURLSession session, { - required NSURLSessionTask task, - required int needNewBodyStreamFromOffset, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - ); - } - _objc_msgSend_1df5a5f( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - needNewBodyStreamFromOffset, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - void URLSession$13( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLRequest willBeginDelayedRequest, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willBeginDelayedRequest.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:willBeginDelayedRequest:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - void URLSession$14( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse willPerformHTTPRedirection, - required NSURLRequest newRequest, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willPerformHTTPRedirection.ref; - final _$$ref$4 = newRequest.ref; - final _$$ref$5 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - ); - } - _objc_msgSend_ng7j0k( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - _$$ref$5.pointer, - ); - } - - /// URLSession:taskIsWaitingForConnectivity: - void URLSession$15( - NSURLSession session, { - required NSURLSessionTask taskIsWaitingForConnectivity, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = taskIsWaitingForConnectivity.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:taskIsWaitingForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:taskIsWaitingForConnectivity:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:writeClosedForStreamTask: - void URLSession$16( - NSURLSession session, { - required NSURLSessionStreamTask writeClosedForStreamTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = writeClosedForStreamTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:writeClosedForStreamTask:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_writeClosedForStreamTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:writeClosedForStreamTask:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_writeClosedForStreamTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionStreamDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionStreamDelegate.cast()); - - /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionStreamDelegate implement({ - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionStreamDelegate', - ); - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implement( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implement( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implement( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implement( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionStreamDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implement( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implement( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implement( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implement( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionStreamDelegate implementAsListener({ - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionStreamDelegate', - ); - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implementAsListener( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implementAsListener( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsListener( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implementAsListener( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionStreamDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implementAsListener( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implementAsListener( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsListener( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implementAsListener( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionStreamDelegate implementAsBlocking({ - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionStreamDelegate', - ); - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implementAsBlocking( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implementAsBlocking( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsBlocking( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implementAsBlocking( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionStreamDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implementAsBlocking( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implementAsBlocking( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsBlocking( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implementAsBlocking( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:betterRouteDiscoveredForStreamTask: - static final URLSession_betterRouteDiscoveredForStreamTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionStreamTask) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_betterRouteDiscoveredForStreamTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_betterRouteDiscoveredForStreamTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didCreateTask: - static final URLSession_didCreateTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:readClosedForStreamTask: - static final URLSession_readClosedForStreamTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionStreamTask) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_readClosedForStreamTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_readClosedForStreamTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:streamTask:didBecomeInputStream:outputStream: - static final URLSession_streamTask_didBecomeInputStream_outputStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1yjs6wb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - objc.NSInputStream arg3, - objc.NSOutputStream arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - objc.NSInputStream arg3, - objc.NSOutputStream arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - objc.NSInputStream arg3, - objc.NSOutputStream arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didCompleteWithError: - static final URLSession_task_didCompleteWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didFinishCollectingMetrics: - static final URLSession_task_didFinishCollectingMetrics_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didReceiveChallenge:completionHandler: - static final URLSession_task_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didReceiveInformationalResponse: - static final URLSession_task_didReceiveInformationalResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_132zq0k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:needNewBodyStream: - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_36nsue) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - static final URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ye2vt3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:taskIsWaitingForConnectivity: - static final URLSession_taskIsWaitingForConnectivity_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:writeClosedForStreamTask: - static final URLSession_writeClosedForStreamTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionStreamTask) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_writeClosedForStreamTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_writeClosedForStreamTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -/// WARNING: NSURLSessionStreamTask is a stub. To generate bindings for this class, include -/// NSURLSessionStreamTask in your config's objc-interfaces list. -/// -/// NSURLSessionStreamTask -extension type NSURLSessionStreamTask._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLSessionTask { - /// Constructs a [NSURLSessionStreamTask] that points to the same underlying object as [other]. - NSURLSessionStreamTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionStreamTask', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - } - - /// Constructs a [NSURLSessionStreamTask] that wraps the given raw object pointer. - NSURLSessionStreamTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionStreamTask', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - } -} - -/// WARNING: NSURLSessionTask is a stub. To generate bindings for this class, include -/// NSURLSessionTask in your config's objc-interfaces list. -/// -/// NSURLSessionTask -extension type NSURLSessionTask._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - NSProgressReporting { - /// Constructs a [NSURLSessionTask] that points to the same underlying object as [other]. - NSURLSessionTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSessionTask] that wraps the given raw object pointer. - NSURLSessionTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -/// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions on NSURLCache { - /// getCachedResponseForDataTask:completionHandler: - void getCachedResponseForDataTask( - NSURLSessionDataTask dataTask, { - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = dataTask.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLCache.getCachedResponseForDataTask:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_9kuhjb( - _$$ref.pointer, - _sel_getCachedResponseForDataTask_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeCachedResponseForDataTask: - void removeCachedResponseForDataTask(NSURLSessionDataTask dataTask) { - final _$$ref = object$.ref; - final _$$ref$1 = dataTask.ref; - objc.checkOsVersionInternal( - 'NSURLCache.removeCachedResponseForDataTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_removeCachedResponseForDataTask_, - _$$ref$1.pointer, - ); - } - - /// storeCachedResponse:forDataTask: - void storeCachedResponse( - NSCachedURLResponse cachedResponse, { - required NSURLSessionDataTask forDataTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = cachedResponse.ref; - final _$$ref$2 = forDataTask.ref; - objc.checkOsVersionInternal( - 'NSURLCache.storeCachedResponse:forDataTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_storeCachedResponse_forDataTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions$1 on NSHTTPCookieStorage { - /// getCookiesForTask:completionHandler: - void getCookiesForTask( - NSURLSessionTask task, { - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = task.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSHTTPCookieStorage.getCookiesForTask:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_9kuhjb( - _$$ref.pointer, - _sel_getCookiesForTask_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// storeCookies:forTask: - void storeCookies(objc.NSArray cookies, {required NSURLSessionTask forTask}) { - final _$$ref = object$.ref; - final _$$ref$1 = cookies.ref; - final _$$ref$2 = forTask.ref; - objc.checkOsVersionInternal( - 'NSHTTPCookieStorage.storeCookies:forTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_storeCookies_forTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions$2 on NSURLProtocol { - /// task - NSURLSessionTask? get task { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLProtocol.task', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_task); - return $ret.address == 0 - ? null - : NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - /// canInitWithTask: - static bool canInitWithTask(NSURLSessionTask task) { - final _$$ref = task.ref; - objc.checkOsVersionInternal( - 'NSURLProtocol.canInitWithTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - return _objc_msgSend_xbndyy( - _class_NSURLProtocol, - _sel_canInitWithTask_, - _$$ref.pointer, - ); - } -} - -/// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions$3 on NSURLCredentialStorage { - /// getCredentialsForProtectionSpace:task:completionHandler: - void getCredentialsForProtectionSpace( - NSURLProtectionSpace protectionSpace, { - required NSURLSessionTask task, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protectionSpace.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLCredentialStorage.getCredentialsForProtectionSpace:task:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_getCredentialsForProtectionSpace_task_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// getDefaultCredentialForProtectionSpace:task:completionHandler: - void getDefaultCredentialForProtectionSpace( - NSURLProtectionSpace space, { - required NSURLSessionTask task, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = space.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLCredentialStorage.getDefaultCredentialForProtectionSpace:task:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// removeCredential:forProtectionSpace:options:task: - void removeCredential( - NSURLCredential credential, { - required NSURLProtectionSpace forProtectionSpace, - objc.NSDictionary? options, - required NSURLSessionTask task, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = credential.ref; - final _$$ref$2 = forProtectionSpace.ref; - final _$$ref$3 = options?.ref; - final _$$ref$4 = task.ref; - objc.checkOsVersionInternal( - 'NSURLCredentialStorage.removeCredential:forProtectionSpace:options:task:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_25u0to( - _$$ref.pointer, - _sel_removeCredential_forProtectionSpace_options_task_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4.pointer, - ); - } - - /// setCredential:forProtectionSpace:task: - void setCredential( - NSURLCredential credential, { - required NSURLProtectionSpace forProtectionSpace, - required NSURLSessionTask task, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = credential.ref; - final _$$ref$2 = forProtectionSpace.ref; - final _$$ref$3 = task.ref; - objc.checkOsVersionInternal( - 'NSURLCredentialStorage.setCredential:forProtectionSpace:task:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_setCredential_forProtectionSpace_task_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// setDefaultCredential:forProtectionSpace:task: - void setDefaultCredential( - NSURLCredential credential, { - required NSURLProtectionSpace forProtectionSpace, - required NSURLSessionTask task, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = credential.ref; - final _$$ref$2 = forProtectionSpace.ref; - final _$$ref$3 = task.ref; - objc.checkOsVersionInternal( - 'NSURLCredentialStorage.setDefaultCredential:forProtectionSpace:task:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_setDefaultCredential_forProtectionSpace_task_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// NSURLSessionTaskDelegate -extension type NSURLSessionTaskDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLSessionDelegate { - /// Constructs a [NSURLSessionTaskDelegate] that points to the same underlying object as [other]. - NSURLSessionTaskDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionTaskDelegate] that wraps the given raw object pointer. - NSURLSessionTaskDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionTaskDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionTaskDelegate, - ); - } -} - -extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { - /// URLSession:didBecomeInvalidWithError: - void URLSession( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didCreateTask: - void URLSession$1( - NSURLSession session, { - required NSURLSessionTask didCreateTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didCreateTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:didCreateTask:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:didCreateTask:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$2( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didCompleteWithError: - void URLSession$3( - NSURLSession session, { - required NSURLSessionTask task, - objc.NSError? didCompleteWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didCompleteWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:didCompleteWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:didCompleteWithError:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:task:didFinishCollectingMetrics: - void URLSession$4( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLSessionTaskMetrics didFinishCollectingMetrics, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didFinishCollectingMetrics.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:didFinishCollectingMetrics:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:didFinishCollectingMetrics:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didReceiveChallenge:completionHandler: - void URLSession$5( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveChallenge.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didReceiveInformationalResponse: - void URLSession$6( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse didReceiveInformationalResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveInformationalResponse.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:didReceiveInformationalResponse:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:didReceiveInformationalResponse:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - void URLSession$7( - NSURLSession session, { - required NSURLSessionTask task, - required int didSendBodyData, - required int totalBytesSent, - required int totalBytesExpectedToSend, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - ); - } - _objc_msgSend_1e5znsh( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didSendBodyData, - totalBytesSent, - totalBytesExpectedToSend, - ); - } - - /// URLSession:task:needNewBodyStream: - void URLSession$8( - NSURLSession session, { - required NSURLSessionTask task, - required objc.ObjCBlock - needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:needNewBodyStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:needNewBodyStream:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - void URLSession$9( - NSURLSession session, { - required NSURLSessionTask task, - required int needNewBodyStreamFromOffset, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - ); - } - _objc_msgSend_1df5a5f( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - needNewBodyStreamFromOffset, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - void URLSession$10( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLRequest willBeginDelayedRequest, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willBeginDelayedRequest.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:willBeginDelayedRequest:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - void URLSession$11( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse willPerformHTTPRedirection, - required NSURLRequest newRequest, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willPerformHTTPRedirection.ref; - final _$$ref$4 = newRequest.ref; - final _$$ref$5 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - ); - } - _objc_msgSend_ng7j0k( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - _$$ref$5.pointer, - ); - } - - /// URLSession:taskIsWaitingForConnectivity: - void URLSession$12( - NSURLSession session, { - required NSURLSessionTask taskIsWaitingForConnectivity, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = taskIsWaitingForConnectivity.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:taskIsWaitingForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:taskIsWaitingForConnectivity:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionTaskDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionTaskDelegate.cast()); - - /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionTaskDelegate implement({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionTaskDelegate', - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionTaskDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionTaskDelegate implementAsListener({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionTaskDelegate', - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionTaskDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionTaskDelegate implementAsBlocking({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionTaskDelegate', - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionTaskDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didCreateTask: - static final URLSession_didCreateTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didCompleteWithError: - static final URLSession_task_didCompleteWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didFinishCollectingMetrics: - static final URLSession_task_didFinishCollectingMetrics_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didReceiveChallenge:completionHandler: - static final URLSession_task_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didReceiveInformationalResponse: - static final URLSession_task_didReceiveInformationalResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_132zq0k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:needNewBodyStream: - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_36nsue) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - static final URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ye2vt3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:taskIsWaitingForConnectivity: - static final URLSession_taskIsWaitingForConnectivity_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -/// WARNING: NSURLSessionTaskMetrics is a stub. To generate bindings for this class, include -/// NSURLSessionTaskMetrics in your config's objc-interfaces list. -/// -/// NSURLSessionTaskMetrics -extension type NSURLSessionTaskMetrics._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLSessionTaskMetrics] that points to the same underlying object as [other]. - NSURLSessionTaskMetrics.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionTaskMetrics', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - } - - /// Constructs a [NSURLSessionTaskMetrics] that wraps the given raw object pointer. - NSURLSessionTaskMetrics.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionTaskMetrics', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - } -} - -enum NSURLSessionTaskMetricsDomainResolutionProtocol { - NSURLSessionTaskMetricsDomainResolutionProtocolUnknown(0), - NSURLSessionTaskMetricsDomainResolutionProtocolUDP(1), - NSURLSessionTaskMetricsDomainResolutionProtocolTCP(2), - NSURLSessionTaskMetricsDomainResolutionProtocolTLS(3), - NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS(4); - - final int value; - const NSURLSessionTaskMetricsDomainResolutionProtocol(this.value); - - static NSURLSessionTaskMetricsDomainResolutionProtocol fromValue( - int value, - ) => switch (value) { - 0 => NSURLSessionTaskMetricsDomainResolutionProtocolUnknown, - 1 => NSURLSessionTaskMetricsDomainResolutionProtocolUDP, - 2 => NSURLSessionTaskMetricsDomainResolutionProtocolTCP, - 3 => NSURLSessionTaskMetricsDomainResolutionProtocolTLS, - 4 => NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionTaskMetricsDomainResolutionProtocol: $value', - ), - }; -} - -enum NSURLSessionTaskMetricsResourceFetchType { - NSURLSessionTaskMetricsResourceFetchTypeUnknown(0), - NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad(1), - NSURLSessionTaskMetricsResourceFetchTypeServerPush(2), - NSURLSessionTaskMetricsResourceFetchTypeLocalCache(3); - - final int value; - const NSURLSessionTaskMetricsResourceFetchType(this.value); - - static NSURLSessionTaskMetricsResourceFetchType fromValue(int value) => - switch (value) { - 0 => NSURLSessionTaskMetricsResourceFetchTypeUnknown, - 1 => NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad, - 2 => NSURLSessionTaskMetricsResourceFetchTypeServerPush, - 3 => NSURLSessionTaskMetricsResourceFetchTypeLocalCache, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionTaskMetricsResourceFetchType: $value', - ), - }; -} - -enum NSURLSessionTaskState { - NSURLSessionTaskStateRunning(0), - NSURLSessionTaskStateSuspended(1), - NSURLSessionTaskStateCanceling(2), - NSURLSessionTaskStateCompleted(3); - - final int value; - const NSURLSessionTaskState(this.value); - - static NSURLSessionTaskState fromValue(int value) => switch (value) { - 0 => NSURLSessionTaskStateRunning, - 1 => NSURLSessionTaskStateSuspended, - 2 => NSURLSessionTaskStateCanceling, - 3 => NSURLSessionTaskStateCompleted, - _ => throw ArgumentError('Unknown value for NSURLSessionTaskState: $value'), - }; -} - -/// WARNING: NSURLSessionUploadTask is a stub. To generate bindings for this class, include -/// NSURLSessionUploadTask in your config's objc-interfaces list. -/// -/// NSURLSessionUploadTask -extension type NSURLSessionUploadTask._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLSessionDataTask { - /// Constructs a [NSURLSessionUploadTask] that points to the same underlying object as [other]. - NSURLSessionUploadTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionUploadTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSessionUploadTask] that wraps the given raw object pointer. - NSURLSessionUploadTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionUploadTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -enum NSURLSessionWebSocketCloseCode { - NSURLSessionWebSocketCloseCodeInvalid(0), - NSURLSessionWebSocketCloseCodeNormalClosure(1000), - NSURLSessionWebSocketCloseCodeGoingAway(1001), - NSURLSessionWebSocketCloseCodeProtocolError(1002), - NSURLSessionWebSocketCloseCodeUnsupportedData(1003), - NSURLSessionWebSocketCloseCodeNoStatusReceived(1005), - NSURLSessionWebSocketCloseCodeAbnormalClosure(1006), - NSURLSessionWebSocketCloseCodeInvalidFramePayloadData(1007), - NSURLSessionWebSocketCloseCodePolicyViolation(1008), - NSURLSessionWebSocketCloseCodeMessageTooBig(1009), - NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing(1010), - NSURLSessionWebSocketCloseCodeInternalServerError(1011), - NSURLSessionWebSocketCloseCodeTLSHandshakeFailure(1015); - - final int value; - const NSURLSessionWebSocketCloseCode(this.value); - - static NSURLSessionWebSocketCloseCode fromValue(int value) => switch (value) { - 0 => NSURLSessionWebSocketCloseCodeInvalid, - 1000 => NSURLSessionWebSocketCloseCodeNormalClosure, - 1001 => NSURLSessionWebSocketCloseCodeGoingAway, - 1002 => NSURLSessionWebSocketCloseCodeProtocolError, - 1003 => NSURLSessionWebSocketCloseCodeUnsupportedData, - 1005 => NSURLSessionWebSocketCloseCodeNoStatusReceived, - 1006 => NSURLSessionWebSocketCloseCodeAbnormalClosure, - 1007 => NSURLSessionWebSocketCloseCodeInvalidFramePayloadData, - 1008 => NSURLSessionWebSocketCloseCodePolicyViolation, - 1009 => NSURLSessionWebSocketCloseCodeMessageTooBig, - 1010 => NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing, - 1011 => NSURLSessionWebSocketCloseCodeInternalServerError, - 1015 => NSURLSessionWebSocketCloseCodeTLSHandshakeFailure, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionWebSocketCloseCode: $value', - ), - }; -} - -/// NSURLSessionWebSocketDelegate -extension type NSURLSessionWebSocketDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLSessionTaskDelegate { - /// Constructs a [NSURLSessionWebSocketDelegate] that points to the same underlying object as [other]. - NSURLSessionWebSocketDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionWebSocketDelegate] that wraps the given raw object pointer. - NSURLSessionWebSocketDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionWebSocketDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionWebSocketDelegate, - ); - } -} - -extension NSURLSessionWebSocketDelegate$Methods - on NSURLSessionWebSocketDelegate { - /// URLSession:didBecomeInvalidWithError: - void URLSession( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didCreateTask: - void URLSession$1( - NSURLSession session, { - required NSURLSessionTask didCreateTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didCreateTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:didCreateTask:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:didCreateTask:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$2( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didCompleteWithError: - void URLSession$3( - NSURLSession session, { - required NSURLSessionTask task, - objc.NSError? didCompleteWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didCompleteWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:didCompleteWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:didCompleteWithError:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:task:didFinishCollectingMetrics: - void URLSession$4( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLSessionTaskMetrics didFinishCollectingMetrics, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didFinishCollectingMetrics.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:didFinishCollectingMetrics:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:didFinishCollectingMetrics:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didReceiveChallenge:completionHandler: - void URLSession$5( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveChallenge.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didReceiveInformationalResponse: - void URLSession$6( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse didReceiveInformationalResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveInformationalResponse.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:didReceiveInformationalResponse:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:didReceiveInformationalResponse:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - void URLSession$7( - NSURLSession session, { - required NSURLSessionTask task, - required int didSendBodyData, - required int totalBytesSent, - required int totalBytesExpectedToSend, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - ); - } - _objc_msgSend_1e5znsh( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didSendBodyData, - totalBytesSent, - totalBytesExpectedToSend, - ); - } - - /// URLSession:task:needNewBodyStream: - void URLSession$8( - NSURLSession session, { - required NSURLSessionTask task, - required objc.ObjCBlock - needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:needNewBodyStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:needNewBodyStream:', - ); - } - _objc_msgSend_omynm( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - void URLSession$9( - NSURLSession session, { - required NSURLSessionTask task, - required int needNewBodyStreamFromOffset, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - ); - } - _objc_msgSend_1df5a5f( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - needNewBodyStreamFromOffset, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - void URLSession$10( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLRequest willBeginDelayedRequest, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willBeginDelayedRequest.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:willBeginDelayedRequest:completionHandler:', - ); - } - _objc_msgSend_1t5al8x( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - void URLSession$11( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse willPerformHTTPRedirection, - required NSURLRequest newRequest, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willPerformHTTPRedirection.ref; - final _$$ref$4 = newRequest.ref; - final _$$ref$5 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - ); - } - _objc_msgSend_ng7j0k( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - _$$ref$5.pointer, - ); - } - - /// URLSession:taskIsWaitingForConnectivity: - void URLSession$12( - NSURLSession session, { - required NSURLSessionTask taskIsWaitingForConnectivity, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = taskIsWaitingForConnectivity.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:taskIsWaitingForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:taskIsWaitingForConnectivity:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:webSocketTask:didCloseWithCode:reason: - void URLSession$13( - NSURLSession session, { - required NSURLSessionWebSocketTask webSocketTask, - required NSURLSessionWebSocketCloseCode didCloseWithCode, - objc.NSData? reason, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = webSocketTask.ref; - final _$$ref$3 = reason?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:webSocketTask:didCloseWithCode:reason:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_webSocketTask_didCloseWithCode_reason_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:webSocketTask:didCloseWithCode:reason:', - ); - } - _objc_msgSend_xkivwz( - _$$ref.pointer, - _sel_URLSession_webSocketTask_didCloseWithCode_reason_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didCloseWithCode.value, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:webSocketTask:didOpenWithProtocol: - void URLSession$14( - NSURLSession session, { - required NSURLSessionWebSocketTask webSocketTask, - objc.NSString? didOpenWithProtocol, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = webSocketTask.ref; - final _$$ref$3 = didOpenWithProtocol?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:webSocketTask:didOpenWithProtocol:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_webSocketTask_didOpenWithProtocol_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:webSocketTask:didOpenWithProtocol:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_URLSession_webSocketTask_didOpenWithProtocol_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionWebSocketDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionWebSocketDelegate.cast()); - - /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionWebSocketDelegate implement({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionWebSocketDelegate', - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implement( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implement( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionWebSocketDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implement( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implement( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionWebSocketDelegate implementAsListener({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionWebSocketDelegate', - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsListener( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implementAsListener( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionWebSocketDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsListener( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implementAsListener( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionWebSocketDelegate implementAsBlocking({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionWebSocketDelegate', - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsBlocking( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implementAsBlocking( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionWebSocketDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsBlocking( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implementAsBlocking( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didCreateTask: - static final URLSession_didCreateTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didCompleteWithError: - static final URLSession_task_didCompleteWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didFinishCollectingMetrics: - static final URLSession_task_didFinishCollectingMetrics_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didReceiveChallenge:completionHandler: - static final URLSession_task_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didReceiveInformationalResponse: - static final URLSession_task_didReceiveInformationalResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_132zq0k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:needNewBodyStream: - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xfiv91) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_36nsue) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - static final URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_vh5xcw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ye2vt3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:taskIsWaitingForConnectivity: - static final URLSession_taskIsWaitingForConnectivity_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:webSocketTask:didCloseWithCode:reason: - static final URLSession_webSocketTask_didCloseWithCode_reason_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didCloseWithCode_reason_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_8odg2g) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didCloseWithCode_reason_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - NSURLSessionWebSocketCloseCode arg3, - objc.NSData? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - NSURLSessionWebSocketCloseCode arg3, - objc.NSData? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - NSURLSessionWebSocketCloseCode arg3, - objc.NSData? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:webSocketTask:didOpenWithProtocol: - static final URLSession_webSocketTask_didOpenWithProtocol_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didOpenWithProtocol_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didOpenWithProtocol_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -enum NSURLSessionWebSocketMessageType { - NSURLSessionWebSocketMessageTypeData(0), - NSURLSessionWebSocketMessageTypeString(1); - - final int value; - const NSURLSessionWebSocketMessageType(this.value); - - static NSURLSessionWebSocketMessageType fromValue(int value) => - switch (value) { - 0 => NSURLSessionWebSocketMessageTypeData, - 1 => NSURLSessionWebSocketMessageTypeString, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionWebSocketMessageType: $value', - ), - }; -} - -/// WARNING: NSURLSessionWebSocketTask is a stub. To generate bindings for this class, include -/// NSURLSessionWebSocketTask in your config's objc-interfaces list. -/// -/// NSURLSessionWebSocketTask -extension type NSURLSessionWebSocketTask._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLSessionTask { - /// Constructs a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. - NSURLSessionWebSocketTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketTask', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - } - - /// Constructs a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. - NSURLSessionWebSocketTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketTask', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - } -} - -typedef NSURLThumbnailDictionaryItem = ffi.Pointer; -typedef DartNSURLThumbnailDictionaryItem = objc.NSString; -typedef NSURLUbiquitousItemDownloadingStatus = ffi.Pointer; -typedef DartNSURLUbiquitousItemDownloadingStatus = objc.NSString; -typedef NSURLUbiquitousSharedItemPermissions = ffi.Pointer; -typedef DartNSURLUbiquitousSharedItemPermissions = objc.NSString; -typedef NSURLUbiquitousSharedItemRole = ffi.Pointer; -typedef DartNSURLUbiquitousSharedItemRole = objc.NSString; - -/// NSURLUtilities -extension NSURLUtilities on objc.NSString { - /// stringByAddingPercentEncodingWithAllowedCharacters: - objc.NSString? stringByAddingPercentEncodingWithAllowedCharacters( - objc.NSCharacterSet allowedCharacters, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = allowedCharacters.ref; - objc.checkOsVersionInternal( - 'NSString.stringByAddingPercentEncodingWithAllowedCharacters:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_stringByAddingPercentEncodingWithAllowedCharacters_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByAddingPercentEscapesUsingEncoding: - @Deprecated( - 'Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.', - ) - objc.NSString? stringByAddingPercentEscapesUsingEncoding(DartNSUInteger enc) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.stringByAddingPercentEscapesUsingEncoding:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_o5e71h( - _$$ref.pointer, - _sel_stringByAddingPercentEscapesUsingEncoding_, - enc, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByRemovingPercentEncoding - objc.NSString? get stringByRemovingPercentEncoding { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.stringByRemovingPercentEncoding', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_stringByRemovingPercentEncoding, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByReplacingPercentEscapesUsingEncoding: - @Deprecated( - 'Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding.', - ) - objc.NSString? stringByReplacingPercentEscapesUsingEncoding( - DartNSUInteger enc, - ) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.stringByReplacingPercentEscapesUsingEncoding:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_o5e71h( - _$$ref.pointer, - _sel_stringByReplacingPercentEscapesUsingEncoding_, - enc, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// NSURLUtilities -extension NSURLUtilities$1 on objc.NSCharacterSet { - /// URLFragmentAllowedCharacterSet - static objc.NSCharacterSet getURLFragmentAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLFragmentAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSCharacterSet, - _sel_URLFragmentAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// URLHostAllowedCharacterSet - static objc.NSCharacterSet getURLHostAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLHostAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSCharacterSet, - _sel_URLHostAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// URLPasswordAllowedCharacterSet - static objc.NSCharacterSet getURLPasswordAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLPasswordAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSCharacterSet, - _sel_URLPasswordAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// URLPathAllowedCharacterSet - static objc.NSCharacterSet getURLPathAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLPathAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSCharacterSet, - _sel_URLPathAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// URLQueryAllowedCharacterSet - static objc.NSCharacterSet getURLQueryAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLQueryAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSCharacterSet, - _sel_URLQueryAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// URLUserAllowedCharacterSet - static objc.NSCharacterSet getURLUserAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLUserAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _class_NSCharacterSet, - _sel_URLUserAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } -} - -const int NSUTF16BigEndianStringEncoding = 2415919360; - -const int NSUTF16LittleEndianStringEncoding = 2483028224; - -const int NSUTF16StringEncoding = 10; - -const int NSUTF32BigEndianStringEncoding = 2550137088; - -const int NSUTF32LittleEndianStringEncoding = 2617245952; - -const int NSUTF32StringEncoding = 2348810496; - -const int NSUTF8StringEncoding = 4; - -const int NSUbiquitousFileErrorMaximum = 4607; - -const int NSUbiquitousFileErrorMinimum = 4352; - -const int NSUbiquitousFileNotUploadedDueToQuotaError = 4354; - -const int NSUbiquitousFileUbiquityServerNotAvailable = 4355; - -const int NSUbiquitousFileUnavailableError = 4353; - -const int NSUbiquitousKeyValueStoreAccountChange = 3; - -const int NSUbiquitousKeyValueStoreInitialSyncChange = 1; - -const int NSUbiquitousKeyValueStoreQuotaViolationChange = 2; - -const int NSUbiquitousKeyValueStoreServerChange = 0; - -typedef NSUncaughtExceptionHandler = - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer exception$1) - >; -@Deprecated('Deprecated') -const int NSUndefinedDateComponent = 9223372036854775807; - -const int NSUndoCloseGroupingRunLoopOrdering = 350000; - -typedef NSUndoManagerUserInfoKey = ffi.Pointer; -typedef DartNSUndoManagerUserInfoKey = objc.NSString; - -const int NSUnicodeStringEncoding = 10; - -const int NSUnknownKeyScriptError = 7; - -const int NSUnknownKeySpecifierError = 3; - -/// WARNING: NSUserActivity is a stub. To generate bindings for this class, include -/// NSUserActivity in your config's objc-interfaces list. -/// -/// NSUserActivity -extension type NSUserActivity._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSUserActivity] that points to the same underlying object as [other]. - NSUserActivity.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSUserActivity', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } - - /// Constructs a [NSUserActivity] that wraps the given raw object pointer. - NSUserActivity.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSUserActivity', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } -} - -const int NSUserActivityConnectionUnavailableError = 4609; - -/// NSUserActivityDelegate -extension type NSUserActivityDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSUserActivityDelegate] that points to the same underlying object as [other]. - NSUserActivityDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSUserActivityDelegate] that wraps the given raw object pointer. - NSUserActivityDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSUserActivityDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSUserActivityDelegate, - ); - } -} - -extension NSUserActivityDelegate$Methods on NSUserActivityDelegate { - /// userActivity:didReceiveInputStream:outputStream: - void userActivity( - NSUserActivity userActivity, { - required objc.NSInputStream didReceiveInputStream, - required objc.NSOutputStream outputStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = userActivity.ref; - final _$$ref$2 = didReceiveInputStream.ref; - final _$$ref$3 = outputStream.ref; - objc.checkOsVersionInternal( - 'NSUserActivityDelegate.userActivity:didReceiveInputStream:outputStream:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_userActivity_didReceiveInputStream_outputStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserActivityDelegate', - 'userActivity:didReceiveInputStream:outputStream:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_userActivity_didReceiveInputStream_outputStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// userActivityWasContinued: - void userActivityWasContinued(NSUserActivity userActivity) { - final _$$ref = object$.ref; - final _$$ref$1 = userActivity.ref; - objc.checkOsVersionInternal( - 'NSUserActivityDelegate.userActivityWasContinued:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_userActivityWasContinued_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserActivityDelegate', - 'userActivityWasContinued:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_userActivityWasContinued_, - _$$ref$1.pointer, - ); - } - - /// userActivityWillSave: - void userActivityWillSave(NSUserActivity userActivity) { - final _$$ref = object$.ref; - final _$$ref$1 = userActivity.ref; - objc.checkOsVersionInternal( - 'NSUserActivityDelegate.userActivityWillSave:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_userActivityWillSave_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserActivityDelegate', - 'userActivityWillSave:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_userActivityWillSave_, - _$$ref$1.pointer, - ); - } -} - -interface class NSUserActivityDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSUserActivityDelegate.cast()); - - /// Builds an object that implements the NSUserActivityDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserActivityDelegate implement({ - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserActivityDelegate', - ); - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implement(builder, userActivity_didReceiveInputStream_outputStream_); - NSUserActivityDelegate$Builder.userActivityWasContinued_.implement( - builder, - userActivityWasContinued_, - ); - NSUserActivityDelegate$Builder.userActivityWillSave_.implement( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - return NSUserActivityDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserActivityDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implement(builder, userActivity_didReceiveInputStream_outputStream_); - NSUserActivityDelegate$Builder.userActivityWasContinued_.implement( - builder, - userActivityWasContinued_, - ); - NSUserActivityDelegate$Builder.userActivityWillSave_.implement( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSUserActivityDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserActivityDelegate implementAsListener({ - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserActivityDelegate', - ); - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implementAsListener( - builder, - userActivity_didReceiveInputStream_outputStream_, - ); - NSUserActivityDelegate$Builder.userActivityWasContinued_ - .implementAsListener(builder, userActivityWasContinued_); - NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsListener( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - return NSUserActivityDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserActivityDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implementAsListener( - builder, - userActivity_didReceiveInputStream_outputStream_, - ); - NSUserActivityDelegate$Builder.userActivityWasContinued_ - .implementAsListener(builder, userActivityWasContinued_); - NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsListener( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSUserActivityDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserActivityDelegate implementAsBlocking({ - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserActivityDelegate', - ); - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implementAsBlocking( - builder, - userActivity_didReceiveInputStream_outputStream_, - ); - NSUserActivityDelegate$Builder.userActivityWasContinued_ - .implementAsBlocking(builder, userActivityWasContinued_); - NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsBlocking( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - return NSUserActivityDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserActivityDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implementAsBlocking( - builder, - userActivity_didReceiveInputStream_outputStream_, - ); - NSUserActivityDelegate$Builder.userActivityWasContinued_ - .implementAsBlocking(builder, userActivityWasContinued_); - NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsBlocking( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - } - - /// userActivity:didReceiveInputStream:outputStream: - static final userActivity_didReceiveInputStream_outputStream_ = - objc.ObjCProtocolListenableMethod< - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) - >( - _protocol_NSUserActivityDelegate, - _sel_userActivity_didReceiveInputStream_outputStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserActivityDelegate, - _sel_userActivity_didReceiveInputStream_outputStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.fromFunction( - ( - ffi.Pointer _, - NSUserActivity arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.listener( - ( - ffi.Pointer _, - NSUserActivity arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.blocking( - ( - ffi.Pointer _, - NSUserActivity arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// userActivityWasContinued: - static final userActivityWasContinued_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSUserActivityDelegate, - _sel_userActivityWasContinued_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserActivityDelegate, - _sel_userActivityWasContinued_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.fromFunction( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.listener( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.blocking( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - ); - - /// userActivityWillSave: - static final userActivityWillSave_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSUserActivityDelegate, - _sel_userActivityWillSave_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserActivityDelegate, - _sel_userActivityWillSave_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.fromFunction( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.listener( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.blocking( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - ); -} - -const int NSUserActivityErrorMaximum = 4863; - -const int NSUserActivityErrorMinimum = 4608; - -const int NSUserActivityHandoffFailedError = 4608; - -const int NSUserActivityHandoffUserInfoTooLargeError = 4611; - -typedef NSUserActivityPersistentIdentifier = ffi.Pointer; -typedef DartNSUserActivityPersistentIdentifier = objc.NSString; - -const int NSUserActivityRemoteApplicationTimedOutError = 4610; - -typedef NSUserAppleScriptTaskCompletionHandler = - ffi.Pointer; -typedef DartNSUserAppleScriptTaskCompletionHandler = - objc.ObjCBlock; -typedef NSUserAutomatorTaskCompletionHandler = ffi.Pointer; -typedef DartNSUserAutomatorTaskCompletionHandler = - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >; - -const int NSUserCancelledError = 3072; - -/// NSUserInformation -extension NSUserInformation on NSProcessInfo { - /// fullUserName - objc.NSString get fullUserName { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.fullUserName', - iOS: (true, null), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_fullUserName); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// userName - objc.NSString get userName { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.userName', - iOS: (true, null), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_userName); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// NSUserInformation -extension NSUserInformation$1 on NSFileManager { - /// homeDirectoryForCurrentUser - objc.NSURL get homeDirectoryForCurrentUser { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFileManager.homeDirectoryForCurrentUser', - iOS: (true, null), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_homeDirectoryForCurrentUser, - ); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// homeDirectoryForUser: - objc.NSURL? homeDirectoryForUser(objc.NSString userName) { - final _$$ref = object$.ref; - final _$$ref$1 = userName.ref; - objc.checkOsVersionInternal( - 'NSFileManager.homeDirectoryForUser:', - iOS: (true, null), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.pointer, - _sel_homeDirectoryForUser_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// temporaryDirectory - objc.NSURL get temporaryDirectory { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFileManager.temporaryDirectory', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_temporaryDirectory); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSUserNotification is a stub. To generate bindings for this class, include -/// NSUserNotification in your config's objc-interfaces list. -/// -/// NSUserNotification -@Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', -) -extension type NSUserNotification._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCopying { - /// Constructs a [NSUserNotification] that points to the same underlying object as [other]. - NSUserNotification.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSUserNotification', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - } - - /// Constructs a [NSUserNotification] that wraps the given raw object pointer. - NSUserNotification.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSUserNotification', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - } -} - -@Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', -) -enum NSUserNotificationActivationType { - NSUserNotificationActivationTypeNone(0), - NSUserNotificationActivationTypeContentsClicked(1), - NSUserNotificationActivationTypeActionButtonClicked(2), - NSUserNotificationActivationTypeReplied(3), - NSUserNotificationActivationTypeAdditionalActionClicked(4); - - final int value; - const NSUserNotificationActivationType(this.value); - - static NSUserNotificationActivationType fromValue(int value) => - switch (value) { - 0 => NSUserNotificationActivationTypeNone, - 1 => NSUserNotificationActivationTypeContentsClicked, - 2 => NSUserNotificationActivationTypeActionButtonClicked, - 3 => NSUserNotificationActivationTypeReplied, - 4 => NSUserNotificationActivationTypeAdditionalActionClicked, - _ => throw ArgumentError( - 'Unknown value for NSUserNotificationActivationType: $value', - ), - }; -} - -/// WARNING: NSUserNotificationCenter is a stub. To generate bindings for this class, include -/// NSUserNotificationCenter in your config's objc-interfaces list. -/// -/// NSUserNotificationCenter -@Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', -) -extension type NSUserNotificationCenter._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSUserNotificationCenter] that points to the same underlying object as [other]. - NSUserNotificationCenter.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSUserNotificationCenter', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - } - - /// Constructs a [NSUserNotificationCenter] that wraps the given raw object pointer. - NSUserNotificationCenter.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSUserNotificationCenter', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - } -} - -/// NSUserNotificationCenterDelegate -extension type NSUserNotificationCenterDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSUserNotificationCenterDelegate] that points to the same underlying object as [other]. - NSUserNotificationCenterDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSUserNotificationCenterDelegate] that wraps the given raw object pointer. - NSUserNotificationCenterDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSUserNotificationCenterDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSUserNotificationCenterDelegate, - ); - } -} - -extension NSUserNotificationCenterDelegate$Methods - on NSUserNotificationCenterDelegate { - /// userNotificationCenter:didActivateNotification: - @Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', - ) - void userNotificationCenter( - NSUserNotificationCenter center, { - required NSUserNotification didActivateNotification, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = center.ref; - final _$$ref$2 = didActivateNotification.ref; - objc.checkOsVersionInternal( - 'NSUserNotificationCenterDelegate.userNotificationCenter:didActivateNotification:', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_userNotificationCenter_didActivateNotification_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserNotificationCenterDelegate', - 'userNotificationCenter:didActivateNotification:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_userNotificationCenter_didActivateNotification_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// userNotificationCenter:didDeliverNotification: - @Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', - ) - void userNotificationCenter$1( - NSUserNotificationCenter center, { - required NSUserNotification didDeliverNotification, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = center.ref; - final _$$ref$2 = didDeliverNotification.ref; - objc.checkOsVersionInternal( - 'NSUserNotificationCenterDelegate.userNotificationCenter:didDeliverNotification:', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_userNotificationCenter_didDeliverNotification_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserNotificationCenterDelegate', - 'userNotificationCenter:didDeliverNotification:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_userNotificationCenter_didDeliverNotification_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// userNotificationCenter:shouldPresentNotification: - @Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', - ) - bool userNotificationCenter$2( - NSUserNotificationCenter center, { - required NSUserNotification shouldPresentNotification, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = center.ref; - final _$$ref$2 = shouldPresentNotification.ref; - objc.checkOsVersionInternal( - 'NSUserNotificationCenterDelegate.userNotificationCenter:shouldPresentNotification:', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_userNotificationCenter_shouldPresentNotification_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserNotificationCenterDelegate', - 'userNotificationCenter:shouldPresentNotification:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_userNotificationCenter_shouldPresentNotification_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSUserNotificationCenterDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => objc.Protocol.fromPointer( - _protocol_NSUserNotificationCenterDelegate.cast(), - ); - - /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserNotificationCenterDelegate implement({ - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserNotificationCenterDelegate', - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implement(builder, userNotificationCenter_didActivateNotification_); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implement(builder, userNotificationCenter_didDeliverNotification_); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - return NSUserNotificationCenterDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implement(builder, userNotificationCenter_didActivateNotification_); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implement(builder, userNotificationCenter_didDeliverNotification_); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserNotificationCenterDelegate implementAsListener({ - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserNotificationCenterDelegate', - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implementAsListener( - builder, - userNotificationCenter_didActivateNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implementAsListener( - builder, - userNotificationCenter_didDeliverNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - return NSUserNotificationCenterDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implementAsListener( - builder, - userNotificationCenter_didActivateNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implementAsListener( - builder, - userNotificationCenter_didDeliverNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserNotificationCenterDelegate implementAsBlocking({ - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserNotificationCenterDelegate', - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implementAsBlocking( - builder, - userNotificationCenter_didActivateNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implementAsBlocking( - builder, - userNotificationCenter_didDeliverNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - return NSUserNotificationCenterDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implementAsBlocking( - builder, - userNotificationCenter_didActivateNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implementAsBlocking( - builder, - userNotificationCenter_didDeliverNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - } - - /// userNotificationCenter:didActivateNotification: - static final userNotificationCenter_didActivateNotification_ = - objc.ObjCProtocolListenableMethod< - void Function(NSUserNotificationCenter, NSUserNotification) - >( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_didActivateNotification_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_didActivateNotification_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.listener( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.blocking( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - ); - - /// userNotificationCenter:didDeliverNotification: - static final userNotificationCenter_didDeliverNotification_ = - objc.ObjCProtocolListenableMethod< - void Function(NSUserNotificationCenter, NSUserNotification) - >( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_didDeliverNotification_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_didDeliverNotification_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.listener( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.blocking( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - ); - - /// userNotificationCenter:shouldPresentNotification: - static final userNotificationCenter_shouldPresentNotification_ = - objc.ObjCProtocolMethod< - bool Function(NSUserNotificationCenter, NSUserNotification) - >( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_shouldPresentNotification_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_shouldPresentNotification_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - ); -} - -typedef NSUserScriptTaskCompletionHandler = ffi.Pointer; -typedef DartNSUserScriptTaskCompletionHandler = - objc.ObjCBlock; -typedef NSUserUnixTaskCompletionHandler = ffi.Pointer; -typedef DartNSUserUnixTaskCompletionHandler = - objc.ObjCBlock; - -const int NSValidationErrorMaximum = 2047; - -const int NSValidationErrorMinimum = 1024; - -/// NSValueCreation -extension NSValueCreation on objc.NSValue { - /// value:withObjCType: - static objc.NSValue value( - ffi.Pointer value, { - required ffi.Pointer withObjCType, - }) { - final $ret = _objc_msgSend_120wspy( - _class_NSValue, - _sel_value_withObjCType_, - value, - withObjCType, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } - - /// valueWithBytes:objCType: - static objc.NSValue valueWithBytes( - ffi.Pointer value, { - required ffi.Pointer objCType, - }) { - final $ret = _objc_msgSend_120wspy( - _class_NSValue, - _sel_valueWithBytes_objCType_, - value, - objCType, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } -} - -/// NSValueExtensionMethods -extension NSValueExtensionMethods on objc.NSValue { - /// isEqualToValue: - bool isEqualToValue(objc.NSValue value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - return _objc_msgSend_xbndyy( - _$$ref.pointer, - _sel_isEqualToValue_, - _$$ref$1.pointer, - ); - } - - /// nonretainedObjectValue - objc.ObjCObject? get nonretainedObjectValue { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_nonretainedObjectValue, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// pointerValue - ffi.Pointer get pointerValue { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_pointerValue); - } - - /// valueWithNonretainedObject: - static objc.NSValue valueWithNonretainedObject(objc.ObjCObject? anObject) { - final _$$ref = anObject?.ref; - final $ret = _objc_msgSend_1ffzwv1( - _class_NSValue, - _sel_valueWithNonretainedObject_, - _$$ref?.pointer ?? ffi.nullptr, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } - - /// valueWithPointer: - static objc.NSValue valueWithPointer(ffi.Pointer pointer) { - final $ret = _objc_msgSend_1jnam6p( - _class_NSValue, - _sel_valueWithPointer_, - pointer, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } -} - -/// NSValueGeometryExtensions -extension NSValueGeometryExtensions on objc.NSValue { - /// edgeInsetsValue - objc.NSEdgeInsets get edgeInsetsValue { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSValue.edgeInsetsValue', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_hwrhqStret($ptr, _$$ref.pointer, _sel_edgeInsetsValue) - : $ptr.ref = _objc_msgSend_hwrhq(_$$ref.pointer, _sel_edgeInsetsValue); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// pointValue - NSPoint get pointValue { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_gvefwyStret($ptr, _$$ref.pointer, _sel_pointValue) - : $ptr.ref = _objc_msgSend_gvefwy(_$$ref.pointer, _sel_pointValue); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// rectValue - NSRect get rectValue { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_10g3temStret($ptr, _$$ref.pointer, _sel_rectValue) - : $ptr.ref = _objc_msgSend_10g3tem(_$$ref.pointer, _sel_rectValue); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// sizeValue - NSSize get sizeValue { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_wke702Stret($ptr, _$$ref.pointer, _sel_sizeValue) - : $ptr.ref = _objc_msgSend_wke702(_$$ref.pointer, _sel_sizeValue); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// valueWithEdgeInsets: - static objc.NSValue valueWithEdgeInsets(objc.NSEdgeInsets insets) { - objc.checkOsVersionInternal( - 'NSValue.valueWithEdgeInsets:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $ret = _objc_msgSend_6g603z( - _class_NSValue, - _sel_valueWithEdgeInsets_, - insets, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } - - /// valueWithPoint: - static objc.NSValue valueWithPoint(NSPoint point) { - final $ret = _objc_msgSend_1l314qv( - _class_NSValue, - _sel_valueWithPoint_, - point, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } - - /// valueWithRect: - static objc.NSValue valueWithRect(NSRect rect) { - final $ret = _objc_msgSend_1py860n( - _class_NSValue, - _sel_valueWithRect_, - rect, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } - - /// valueWithSize: - static objc.NSValue valueWithSize(NSSize size) { - final $ret = _objc_msgSend_1n87wib( - _class_NSValue, - _sel_valueWithSize_, - size, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } -} - -/// NSValueRangeExtensions -extension NSValueRangeExtensions on objc.NSValue { - /// rangeValue - NSRange get rangeValue { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1wp571eStret($ptr, _$$ref.pointer, _sel_rangeValue) - : $ptr.ref = _objc_msgSend_1wp571e(_$$ref.pointer, _sel_rangeValue); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// valueWithRange: - static objc.NSValue valueWithRange(NSRange range) { - final $ret = _objc_msgSend_1cd70t7( - _class_NSValue, - _sel_valueWithRange_, - range, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } -} - -typedef NSValueTransformerName = ffi.Pointer; -typedef DartNSValueTransformerName = objc.NSString; - -/// WARNING: NSView is a stub. To generate bindings for this class, include -/// NSView in your config's objc-interfaces list. -/// -/// NSView -extension type NSView._(objc.ObjCObject object$) implements objc.ObjCObject { - /// Constructs a [NSView] that points to the same underlying object as [other]. - NSView.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSView] that wraps the given raw object pointer. - NSView.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -sealed class NSVolumeEnumerationOptions { - static const NSVolumeEnumerationSkipHiddenVolumes = 2; - static const NSVolumeEnumerationProduceFileReferenceURLs = 4; -} - -enum NSWhoseSubelementIdentifier { - NSIndexSubelement(0), - NSEverySubelement(1), - NSMiddleSubelement(2), - NSRandomSubelement(3), - NSNoSubelement(4); - - final int value; - const NSWhoseSubelementIdentifier(this.value); - - static NSWhoseSubelementIdentifier fromValue(int value) => switch (value) { - 0 => NSIndexSubelement, - 1 => NSEverySubelement, - 2 => NSMiddleSubelement, - 3 => NSRandomSubelement, - 4 => NSNoSubelement, - _ => throw ArgumentError( - 'Unknown value for NSWhoseSubelementIdentifier: $value', - ), - }; -} - -@Deprecated('Not supported') -const int NSWindows95OperatingSystem = 2; - -const int NSWindowsCP1250StringEncoding = 15; - -const int NSWindowsCP1251StringEncoding = 11; - -const int NSWindowsCP1252StringEncoding = 12; - -const int NSWindowsCP1253StringEncoding = 13; - -const int NSWindowsCP1254StringEncoding = 14; - -@Deprecated('Not supported') -const int NSWindowsNTOperatingSystem = 1; - -@Deprecated('Deprecated') -const int NSWrapCalendarComponents = 1; - -enum NSXMLDTDNodeKind { - NSXMLEntityGeneralKind(1), - NSXMLEntityParsedKind(2), - NSXMLEntityUnparsedKind(3), - NSXMLEntityParameterKind(4), - NSXMLEntityPredefined(5), - NSXMLAttributeCDATAKind(6), - NSXMLAttributeIDKind(7), - NSXMLAttributeIDRefKind(8), - NSXMLAttributeIDRefsKind(9), - NSXMLAttributeEntityKind(10), - NSXMLAttributeEntitiesKind(11), - NSXMLAttributeNMTokenKind(12), - NSXMLAttributeNMTokensKind(13), - NSXMLAttributeEnumerationKind(14), - NSXMLAttributeNotationKind(15), - NSXMLElementDeclarationUndefinedKind(16), - NSXMLElementDeclarationEmptyKind(17), - NSXMLElementDeclarationAnyKind(18), - NSXMLElementDeclarationMixedKind(19), - NSXMLElementDeclarationElementKind(20); - - final int value; - const NSXMLDTDNodeKind(this.value); - - static NSXMLDTDNodeKind fromValue(int value) => switch (value) { - 1 => NSXMLEntityGeneralKind, - 2 => NSXMLEntityParsedKind, - 3 => NSXMLEntityUnparsedKind, - 4 => NSXMLEntityParameterKind, - 5 => NSXMLEntityPredefined, - 6 => NSXMLAttributeCDATAKind, - 7 => NSXMLAttributeIDKind, - 8 => NSXMLAttributeIDRefKind, - 9 => NSXMLAttributeIDRefsKind, - 10 => NSXMLAttributeEntityKind, - 11 => NSXMLAttributeEntitiesKind, - 12 => NSXMLAttributeNMTokenKind, - 13 => NSXMLAttributeNMTokensKind, - 14 => NSXMLAttributeEnumerationKind, - 15 => NSXMLAttributeNotationKind, - 16 => NSXMLElementDeclarationUndefinedKind, - 17 => NSXMLElementDeclarationEmptyKind, - 18 => NSXMLElementDeclarationAnyKind, - 19 => NSXMLElementDeclarationMixedKind, - 20 => NSXMLElementDeclarationElementKind, - _ => throw ArgumentError('Unknown value for NSXMLDTDNodeKind: $value'), - }; -} - -enum NSXMLDocumentContentKind { - NSXMLDocumentXMLKind(0), - NSXMLDocumentXHTMLKind(1), - NSXMLDocumentHTMLKind(2), - NSXMLDocumentTextKind(3); - - final int value; - const NSXMLDocumentContentKind(this.value); - - static NSXMLDocumentContentKind fromValue(int value) => switch (value) { - 0 => NSXMLDocumentXMLKind, - 1 => NSXMLDocumentXHTMLKind, - 2 => NSXMLDocumentHTMLKind, - 3 => NSXMLDocumentTextKind, - _ => throw ArgumentError( - 'Unknown value for NSXMLDocumentContentKind: $value', - ), - }; -} - -/// WARNING: NSXMLElement is a stub. To generate bindings for this class, include -/// NSXMLElement in your config's objc-interfaces list. -/// -/// NSXMLElement -extension type NSXMLElement._(objc.ObjCObject object$) - implements objc.ObjCObject, NSXMLNode { - /// Constructs a [NSXMLElement] that points to the same underlying object as [other]. - NSXMLElement.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSXMLElement] that wraps the given raw object pointer. - NSXMLElement.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// WARNING: NSXMLNode is a stub. To generate bindings for this class, include -/// NSXMLNode in your config's objc-interfaces list. -/// -/// NSXMLNode -extension type NSXMLNode._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCopying { - /// Constructs a [NSXMLNode] that points to the same underlying object as [other]. - NSXMLNode.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSXMLNode] that wraps the given raw object pointer. - NSXMLNode.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -enum NSXMLNodeKind { - NSXMLInvalidKind(0), - NSXMLDocumentKind(1), - NSXMLElementKind(2), - NSXMLAttributeKind(3), - NSXMLNamespaceKind(4), - NSXMLProcessingInstructionKind(5), - NSXMLCommentKind(6), - NSXMLTextKind(7), - NSXMLDTDKind(8), - NSXMLEntityDeclarationKind(9), - NSXMLAttributeDeclarationKind(10), - NSXMLElementDeclarationKind(11), - NSXMLNotationDeclarationKind(12); - - final int value; - const NSXMLNodeKind(this.value); - - static NSXMLNodeKind fromValue(int value) => switch (value) { - 0 => NSXMLInvalidKind, - 1 => NSXMLDocumentKind, - 2 => NSXMLElementKind, - 3 => NSXMLAttributeKind, - 4 => NSXMLNamespaceKind, - 5 => NSXMLProcessingInstructionKind, - 6 => NSXMLCommentKind, - 7 => NSXMLTextKind, - 8 => NSXMLDTDKind, - 9 => NSXMLEntityDeclarationKind, - 10 => NSXMLAttributeDeclarationKind, - 11 => NSXMLElementDeclarationKind, - 12 => NSXMLNotationDeclarationKind, - _ => throw ArgumentError('Unknown value for NSXMLNodeKind: $value'), - }; -} - -sealed class NSXMLNodeOptions { - static const NSXMLNodeOptionsNone = 0; - static const NSXMLNodeIsCDATA = 1; - static const NSXMLNodeExpandEmptyElement = 2; - static const NSXMLNodeCompactEmptyElement = 4; - static const NSXMLNodeUseSingleQuotes = 8; - static const NSXMLNodeUseDoubleQuotes = 16; - static const NSXMLNodeNeverEscapeContents = 32; - static const NSXMLDocumentTidyHTML = 512; - static const NSXMLDocumentTidyXML = 1024; - static const NSXMLDocumentValidate = 8192; - static const NSXMLNodeLoadExternalEntitiesAlways = 16384; - static const NSXMLNodeLoadExternalEntitiesSameOriginOnly = 32768; - static const NSXMLNodeLoadExternalEntitiesNever = 524288; - static const NSXMLDocumentXInclude = 65536; - static const NSXMLNodePrettyPrint = 131072; - static const NSXMLDocumentIncludeContentTypeDeclaration = 262144; - static const NSXMLNodePreserveNamespaceOrder = 1048576; - static const NSXMLNodePreserveAttributeOrder = 2097152; - static const NSXMLNodePreserveEntities = 4194304; - static const NSXMLNodePreservePrefixes = 8388608; - static const NSXMLNodePreserveCDATA = 16777216; - static const NSXMLNodePreserveWhitespace = 33554432; - static const NSXMLNodePreserveDTD = 67108864; - static const NSXMLNodePreserveCharacterReferences = 134217728; - static const NSXMLNodePromoteSignificantWhitespace = 268435456; - static const NSXMLNodePreserveEmptyElements = 6; - static const NSXMLNodePreserveQuotes = 24; - static const NSXMLNodePreserveAll = 4293918750; -} - -/// WARNING: NSXMLParser is a stub. To generate bindings for this class, include -/// NSXMLParser in your config's objc-interfaces list. -/// -/// NSXMLParser -extension type NSXMLParser._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSXMLParser] that points to the same underlying object as [other]. - NSXMLParser.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSXMLParser] that wraps the given raw object pointer. - NSXMLParser.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSXMLParserDelegate -extension type NSXMLParserDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSXMLParserDelegate] that points to the same underlying object as [other]. - NSXMLParserDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSXMLParserDelegate] that wraps the given raw object pointer. - NSXMLParserDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSXMLParserDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSXMLParserDelegate, - ); - } -} - -extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { - /// parser:didEndElement:namespaceURI:qualifiedName: - void parser( - NSXMLParser parser, { - required objc.NSString didEndElement, - objc.NSString? namespaceURI, - objc.NSString? qualifiedName, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = didEndElement.ref; - final _$$ref$3 = namespaceURI?.ref; - final _$$ref$4 = qualifiedName?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_didEndElement_namespaceURI_qualifiedName_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:didEndElement:namespaceURI:qualifiedName:', - ); - } - _objc_msgSend_25u0to( - _$$ref.pointer, - _sel_parser_didEndElement_namespaceURI_qualifiedName_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - ); - } - - /// parser:didEndMappingPrefix: - void parser$1( - NSXMLParser parser, { - required objc.NSString didEndMappingPrefix, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = didEndMappingPrefix.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_didEndMappingPrefix_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:didEndMappingPrefix:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_parser_didEndMappingPrefix_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:didStartElement:namespaceURI:qualifiedName:attributes: - void parser$2( - NSXMLParser parser, { - required objc.NSString didStartElement, - objc.NSString? namespaceURI, - objc.NSString? qualifiedName, - required objc.NSDictionary attributes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = didStartElement.ref; - final _$$ref$3 = namespaceURI?.ref; - final _$$ref$4 = qualifiedName?.ref; - final _$$ref$5 = attributes.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:didStartElement:namespaceURI:qualifiedName:attributes:', - ); - } - _objc_msgSend_kqrjmf( - _$$ref.pointer, - _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - _$$ref$5.pointer, - ); - } - - /// parser:didStartMappingPrefix:toURI: - void parser$3( - NSXMLParser parser, { - required objc.NSString didStartMappingPrefix, - required objc.NSString toURI, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = didStartMappingPrefix.ref; - final _$$ref$3 = toURI.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_didStartMappingPrefix_toURI_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:didStartMappingPrefix:toURI:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_parser_didStartMappingPrefix_toURI_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: - void parser$4( - NSXMLParser parser, { - required objc.NSString foundAttributeDeclarationWithName, - required objc.NSString forElement, - objc.NSString? type, - objc.NSString? defaultValue, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundAttributeDeclarationWithName.ref; - final _$$ref$3 = forElement.ref; - final _$$ref$4 = type?.ref; - final _$$ref$5 = defaultValue?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:', - ); - } - _objc_msgSend_kqrjmf( - _$$ref.pointer, - _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4?.pointer ?? ffi.nullptr, - _$$ref$5?.pointer ?? ffi.nullptr, - ); - } - - /// parser:foundCDATA: - void parser$5(NSXMLParser parser, {required objc.NSData foundCDATA}) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundCDATA.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_parser_foundCDATA_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundCDATA:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_parser_foundCDATA_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:foundCharacters: - void parser$6(NSXMLParser parser, {required objc.NSString foundCharacters}) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundCharacters.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundCharacters_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundCharacters:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_parser_foundCharacters_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:foundComment: - void parser$7(NSXMLParser parser, {required objc.NSString foundComment}) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundComment.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_parser_foundComment_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundComment:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_parser_foundComment_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:foundElementDeclarationWithName:model: - void parser$8( - NSXMLParser parser, { - required objc.NSString foundElementDeclarationWithName, - required objc.NSString model, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundElementDeclarationWithName.ref; - final _$$ref$3 = model.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundElementDeclarationWithName_model_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundElementDeclarationWithName:model:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_parser_foundElementDeclarationWithName_model_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// parser:foundExternalEntityDeclarationWithName:publicID:systemID: - void parser$9( - NSXMLParser parser, { - required objc.NSString foundExternalEntityDeclarationWithName, - objc.NSString? publicID, - objc.NSString? systemID, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundExternalEntityDeclarationWithName.ref; - final _$$ref$3 = publicID?.ref; - final _$$ref$4 = systemID?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundExternalEntityDeclarationWithName:publicID:systemID:', - ); - } - _objc_msgSend_25u0to( - _$$ref.pointer, - _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - ); - } - - /// parser:foundIgnorableWhitespace: - void parser$10( - NSXMLParser parser, { - required objc.NSString foundIgnorableWhitespace, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundIgnorableWhitespace.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundIgnorableWhitespace_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundIgnorableWhitespace:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_parser_foundIgnorableWhitespace_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:foundInternalEntityDeclarationWithName:value: - void parser$11( - NSXMLParser parser, { - required objc.NSString foundInternalEntityDeclarationWithName, - objc.NSString? value, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundInternalEntityDeclarationWithName.ref; - final _$$ref$3 = value?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundInternalEntityDeclarationWithName_value_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundInternalEntityDeclarationWithName:value:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_parser_foundInternalEntityDeclarationWithName_value_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// parser:foundNotationDeclarationWithName:publicID:systemID: - void parser$12( - NSXMLParser parser, { - required objc.NSString foundNotationDeclarationWithName, - objc.NSString? publicID, - objc.NSString? systemID, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundNotationDeclarationWithName.ref; - final _$$ref$3 = publicID?.ref; - final _$$ref$4 = systemID?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundNotationDeclarationWithName:publicID:systemID:', - ); - } - _objc_msgSend_25u0to( - _$$ref.pointer, - _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - ); - } - - /// parser:foundProcessingInstructionWithTarget:data: - void parser$13( - NSXMLParser parser, { - required objc.NSString foundProcessingInstructionWithTarget, - objc.NSString? data, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundProcessingInstructionWithTarget.ref; - final _$$ref$3 = data?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundProcessingInstructionWithTarget_data_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundProcessingInstructionWithTarget:data:', - ); - } - _objc_msgSend_13ytbkt( - _$$ref.pointer, - _sel_parser_foundProcessingInstructionWithTarget_data_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName: - void parser$14( - NSXMLParser parser, { - required objc.NSString foundUnparsedEntityDeclarationWithName, - objc.NSString? publicID, - objc.NSString? systemID, - objc.NSString? notationName, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundUnparsedEntityDeclarationWithName.ref; - final _$$ref$3 = publicID?.ref; - final _$$ref$4 = systemID?.ref; - final _$$ref$5 = notationName?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:', - ); - } - _objc_msgSend_kqrjmf( - _$$ref.pointer, - _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - _$$ref$5?.pointer ?? ffi.nullptr, - ); - } - - /// parser:parseErrorOccurred: - void parser$15( - NSXMLParser parser, { - required objc.NSError parseErrorOccurred, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = parseErrorOccurred.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_parseErrorOccurred_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:parseErrorOccurred:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_parser_parseErrorOccurred_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:resolveExternalEntityName:systemID: - objc.NSData? parser$16( - NSXMLParser parser, { - required objc.NSString resolveExternalEntityName, - objc.NSString? systemID, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = resolveExternalEntityName.ref; - final _$$ref$3 = systemID?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_resolveExternalEntityName_systemID_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:resolveExternalEntityName:systemID:', - ); - } - final $ret = _objc_msgSend_1mevadz( - _$$ref.pointer, - _sel_parser_resolveExternalEntityName_systemID_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// parser:validationErrorOccurred: - void parser$17( - NSXMLParser parser, { - required objc.NSError validationErrorOccurred, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = validationErrorOccurred.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_validationErrorOccurred_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:validationErrorOccurred:', - ); - } - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_parser_validationErrorOccurred_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parserDidEndDocument: - void parserDidEndDocument(NSXMLParser parser) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_parserDidEndDocument_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parserDidEndDocument:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_parserDidEndDocument_, - _$$ref$1.pointer, - ); - } - - /// parserDidStartDocument: - void parserDidStartDocument(NSXMLParser parser) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parserDidStartDocument_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parserDidStartDocument:', - ); - } - _objc_msgSend_1d1siln( - _$$ref.pointer, - _sel_parserDidStartDocument_, - _$$ref$1.pointer, - ); - } -} - -interface class NSXMLParserDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSXMLParserDelegate.cast()); - - /// Builds an object that implements the NSXMLParserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSXMLParserDelegate implement({ - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implement(builder, parser_didEndElement_namespaceURI_qualifiedName_); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implement( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implement( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_.implement( - builder, - parser_didStartMappingPrefix_toURI_, - ); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implement( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implement( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implement( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implement( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implement(builder, parser_foundElementDeclarationWithName_model_); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implement( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_.implement( - builder, - parser_foundIgnorableWhitespace_, - ); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implement( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implement( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implement(builder, parser_foundProcessingInstructionWithTarget_data_); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implement( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implement( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_.implement( - builder, - parser_validationErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implement( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implement( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - return NSXMLParserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSXMLParserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implement(builder, parser_didEndElement_namespaceURI_qualifiedName_); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implement( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implement( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_.implement( - builder, - parser_didStartMappingPrefix_toURI_, - ); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implement( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implement( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implement( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implement( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implement(builder, parser_foundElementDeclarationWithName_model_); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implement( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_.implement( - builder, - parser_foundIgnorableWhitespace_, - ); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implement( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implement( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implement(builder, parser_foundProcessingInstructionWithTarget_data_); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implement( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implement( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_.implement( - builder, - parser_validationErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implement( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implement( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSXMLParserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSXMLParserDelegate implementAsListener({ - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implementAsListener( - builder, - parser_didEndElement_namespaceURI_qualifiedName_, - ); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsListener( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implementAsListener( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ - .implementAsListener(builder, parser_didStartMappingPrefix_toURI_); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implementAsListener( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsListener( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsListener( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implementAsListener( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implementAsListener( - builder, - parser_foundElementDeclarationWithName_model_, - ); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implementAsListener( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ - .implementAsListener(builder, parser_foundIgnorableWhitespace_); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implementAsListener( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implementAsListener( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implementAsListener( - builder, - parser_foundProcessingInstructionWithTarget_data_, - ); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implementAsListener( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsListener( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ - .implementAsListener(builder, parser_validationErrorOccurred_); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsListener( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsListener( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - return NSXMLParserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSXMLParserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implementAsListener( - builder, - parser_didEndElement_namespaceURI_qualifiedName_, - ); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsListener( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implementAsListener( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ - .implementAsListener(builder, parser_didStartMappingPrefix_toURI_); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implementAsListener( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsListener( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsListener( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implementAsListener( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implementAsListener( - builder, - parser_foundElementDeclarationWithName_model_, - ); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implementAsListener( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ - .implementAsListener(builder, parser_foundIgnorableWhitespace_); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implementAsListener( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implementAsListener( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implementAsListener( - builder, - parser_foundProcessingInstructionWithTarget_data_, - ); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implementAsListener( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsListener( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ - .implementAsListener(builder, parser_validationErrorOccurred_); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsListener( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsListener( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSXMLParserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSXMLParserDelegate implementAsBlocking({ - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implementAsBlocking( - builder, - parser_didEndElement_namespaceURI_qualifiedName_, - ); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsBlocking( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implementAsBlocking( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ - .implementAsBlocking(builder, parser_didStartMappingPrefix_toURI_); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implementAsBlocking( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsBlocking( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsBlocking( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implementAsBlocking( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implementAsBlocking( - builder, - parser_foundElementDeclarationWithName_model_, - ); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implementAsBlocking( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ - .implementAsBlocking(builder, parser_foundIgnorableWhitespace_); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implementAsBlocking( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implementAsBlocking( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implementAsBlocking( - builder, - parser_foundProcessingInstructionWithTarget_data_, - ); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implementAsBlocking( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsBlocking( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ - .implementAsBlocking(builder, parser_validationErrorOccurred_); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsBlocking( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsBlocking( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - return NSXMLParserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSXMLParserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implementAsBlocking( - builder, - parser_didEndElement_namespaceURI_qualifiedName_, - ); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsBlocking( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implementAsBlocking( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ - .implementAsBlocking(builder, parser_didStartMappingPrefix_toURI_); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implementAsBlocking( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsBlocking( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsBlocking( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implementAsBlocking( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implementAsBlocking( - builder, - parser_foundElementDeclarationWithName_model_, - ); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implementAsBlocking( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ - .implementAsBlocking(builder, parser_foundIgnorableWhitespace_); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implementAsBlocking( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implementAsBlocking( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implementAsBlocking( - builder, - parser_foundProcessingInstructionWithTarget_data_, - ); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implementAsBlocking( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsBlocking( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ - .implementAsBlocking(builder, parser_validationErrorOccurred_); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsBlocking( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsBlocking( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - } - - /// parser:didEndElement:namespaceURI:qualifiedName: - static final parser_didEndElement_namespaceURI_qualifiedName_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_didEndElement_namespaceURI_qualifiedName_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1yjs6wb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_didEndElement_namespaceURI_qualifiedName_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// parser:didEndMappingPrefix: - static final parser_didEndMappingPrefix_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_didEndMappingPrefix_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_didEndMappingPrefix_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - ); - - /// parser:didStartElement:namespaceURI:qualifiedName:attributes: - static final parser_didStartElement_namespaceURI_qualifiedName_attributes_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_5rmak2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSDictionary arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSDictionary arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSDictionary arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// parser:didStartMappingPrefix:toURI: - static final parser_didStartMappingPrefix_toURI_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_didStartMappingPrefix_toURI_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_didStartMappingPrefix_toURI_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: - static final parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_5rmak2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// parser:foundCDATA: - static final parser_foundCDATA_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSData) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundCDATA_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundCDATA_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - ); - - /// parser:foundCharacters: - static final parser_foundCharacters_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundCharacters_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundCharacters_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - ); - - /// parser:foundComment: - static final parser_foundComment_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundComment_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundComment_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - ); - - /// parser:foundElementDeclarationWithName:model: - static final parser_foundElementDeclarationWithName_model_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundElementDeclarationWithName_model_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundElementDeclarationWithName_model_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// parser:foundExternalEntityDeclarationWithName:publicID:systemID: - static final parser_foundExternalEntityDeclarationWithName_publicID_systemID_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1yjs6wb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// parser:foundIgnorableWhitespace: - static final parser_foundIgnorableWhitespace_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundIgnorableWhitespace_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundIgnorableWhitespace_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - ); - - /// parser:foundInternalEntityDeclarationWithName:value: - static final parser_foundInternalEntityDeclarationWithName_value_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString, objc.NSString?) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundInternalEntityDeclarationWithName_value_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundInternalEntityDeclarationWithName_value_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// parser:foundNotationDeclarationWithName:publicID:systemID: - static final parser_foundNotationDeclarationWithName_publicID_systemID_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1yjs6wb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// parser:foundProcessingInstructionWithTarget:data: - static final parser_foundProcessingInstructionWithTarget_data_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString, objc.NSString?) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundProcessingInstructionWithTarget_data_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_166nalk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundProcessingInstructionWithTarget_data_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName: - static final parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_5rmak2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// parser:parseErrorOccurred: - static final parser_parseErrorOccurred_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSError) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_parseErrorOccurred_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_parseErrorOccurred_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - ); - - /// parser:resolveExternalEntityName:systemID: - static final parser_resolveExternalEntityName_systemID_ = - objc.ObjCProtocolMethod< - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_resolveExternalEntityName_systemID_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ekc08i) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_resolveExternalEntityName_systemID_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?) - func, - ) => - ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// parser:validationErrorOccurred: - static final parser_validationErrorOccurred_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSError) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_validationErrorOccurred_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_validationErrorOccurred_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - ); - - /// parserDidEndDocument: - static final parserDidEndDocument_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSXMLParserDelegate, - _sel_parserDidEndDocument_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parserDidEndDocument_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.fromFunction( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.listener( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.blocking( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - ); - - /// parserDidStartDocument: - static final parserDidStartDocument_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSXMLParserDelegate, - _sel_parserDidStartDocument_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_w57eou) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parserDidStartDocument_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.fromFunction( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.listener( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.blocking( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - ); -} - -enum NSXMLParserError { - NSXMLParserInternalError(1), - NSXMLParserOutOfMemoryError(2), - NSXMLParserDocumentStartError(3), - NSXMLParserEmptyDocumentError(4), - NSXMLParserPrematureDocumentEndError(5), - NSXMLParserInvalidHexCharacterRefError(6), - NSXMLParserInvalidDecimalCharacterRefError(7), - NSXMLParserInvalidCharacterRefError(8), - NSXMLParserInvalidCharacterError(9), - NSXMLParserCharacterRefAtEOFError(10), - NSXMLParserCharacterRefInPrologError(11), - NSXMLParserCharacterRefInEpilogError(12), - NSXMLParserCharacterRefInDTDError(13), - NSXMLParserEntityRefAtEOFError(14), - NSXMLParserEntityRefInPrologError(15), - NSXMLParserEntityRefInEpilogError(16), - NSXMLParserEntityRefInDTDError(17), - NSXMLParserParsedEntityRefAtEOFError(18), - NSXMLParserParsedEntityRefInPrologError(19), - NSXMLParserParsedEntityRefInEpilogError(20), - NSXMLParserParsedEntityRefInInternalSubsetError(21), - NSXMLParserEntityReferenceWithoutNameError(22), - NSXMLParserEntityReferenceMissingSemiError(23), - NSXMLParserParsedEntityRefNoNameError(24), - NSXMLParserParsedEntityRefMissingSemiError(25), - NSXMLParserUndeclaredEntityError(26), - NSXMLParserUnparsedEntityError(28), - NSXMLParserEntityIsExternalError(29), - NSXMLParserEntityIsParameterError(30), - NSXMLParserUnknownEncodingError(31), - NSXMLParserEncodingNotSupportedError(32), - NSXMLParserStringNotStartedError(33), - NSXMLParserStringNotClosedError(34), - NSXMLParserNamespaceDeclarationError(35), - NSXMLParserEntityNotStartedError(36), - NSXMLParserEntityNotFinishedError(37), - NSXMLParserLessThanSymbolInAttributeError(38), - NSXMLParserAttributeNotStartedError(39), - NSXMLParserAttributeNotFinishedError(40), - NSXMLParserAttributeHasNoValueError(41), - NSXMLParserAttributeRedefinedError(42), - NSXMLParserLiteralNotStartedError(43), - NSXMLParserLiteralNotFinishedError(44), - NSXMLParserCommentNotFinishedError(45), - NSXMLParserProcessingInstructionNotStartedError(46), - NSXMLParserProcessingInstructionNotFinishedError(47), - NSXMLParserNotationNotStartedError(48), - NSXMLParserNotationNotFinishedError(49), - NSXMLParserAttributeListNotStartedError(50), - NSXMLParserAttributeListNotFinishedError(51), - NSXMLParserMixedContentDeclNotStartedError(52), - NSXMLParserMixedContentDeclNotFinishedError(53), - NSXMLParserElementContentDeclNotStartedError(54), - NSXMLParserElementContentDeclNotFinishedError(55), - NSXMLParserXMLDeclNotStartedError(56), - NSXMLParserXMLDeclNotFinishedError(57), - NSXMLParserConditionalSectionNotStartedError(58), - NSXMLParserConditionalSectionNotFinishedError(59), - NSXMLParserExternalSubsetNotFinishedError(60), - NSXMLParserDOCTYPEDeclNotFinishedError(61), - NSXMLParserMisplacedCDATAEndStringError(62), - NSXMLParserCDATANotFinishedError(63), - NSXMLParserMisplacedXMLDeclarationError(64), - NSXMLParserSpaceRequiredError(65), - NSXMLParserSeparatorRequiredError(66), - NSXMLParserNMTOKENRequiredError(67), - NSXMLParserNAMERequiredError(68), - NSXMLParserPCDATARequiredError(69), - NSXMLParserURIRequiredError(70), - NSXMLParserPublicIdentifierRequiredError(71), - NSXMLParserLTRequiredError(72), - NSXMLParserGTRequiredError(73), - NSXMLParserLTSlashRequiredError(74), - NSXMLParserEqualExpectedError(75), - NSXMLParserTagNameMismatchError(76), - NSXMLParserUnfinishedTagError(77), - NSXMLParserStandaloneValueError(78), - NSXMLParserInvalidEncodingNameError(79), - NSXMLParserCommentContainsDoubleHyphenError(80), - NSXMLParserInvalidEncodingError(81), - NSXMLParserExternalStandaloneEntityError(82), - NSXMLParserInvalidConditionalSectionError(83), - NSXMLParserEntityValueRequiredError(84), - NSXMLParserNotWellBalancedError(85), - NSXMLParserExtraContentError(86), - NSXMLParserInvalidCharacterInEntityError(87), - NSXMLParserParsedEntityRefInInternalError(88), - NSXMLParserEntityRefLoopError(89), - NSXMLParserEntityBoundaryError(90), - NSXMLParserInvalidURIError(91), - NSXMLParserURIFragmentError(92), - NSXMLParserNoDTDError(94), - NSXMLParserDelegateAbortedParseError(512); - - final int value; - const NSXMLParserError(this.value); - - static NSXMLParserError fromValue(int value) => switch (value) { - 1 => NSXMLParserInternalError, - 2 => NSXMLParserOutOfMemoryError, - 3 => NSXMLParserDocumentStartError, - 4 => NSXMLParserEmptyDocumentError, - 5 => NSXMLParserPrematureDocumentEndError, - 6 => NSXMLParserInvalidHexCharacterRefError, - 7 => NSXMLParserInvalidDecimalCharacterRefError, - 8 => NSXMLParserInvalidCharacterRefError, - 9 => NSXMLParserInvalidCharacterError, - 10 => NSXMLParserCharacterRefAtEOFError, - 11 => NSXMLParserCharacterRefInPrologError, - 12 => NSXMLParserCharacterRefInEpilogError, - 13 => NSXMLParserCharacterRefInDTDError, - 14 => NSXMLParserEntityRefAtEOFError, - 15 => NSXMLParserEntityRefInPrologError, - 16 => NSXMLParserEntityRefInEpilogError, - 17 => NSXMLParserEntityRefInDTDError, - 18 => NSXMLParserParsedEntityRefAtEOFError, - 19 => NSXMLParserParsedEntityRefInPrologError, - 20 => NSXMLParserParsedEntityRefInEpilogError, - 21 => NSXMLParserParsedEntityRefInInternalSubsetError, - 22 => NSXMLParserEntityReferenceWithoutNameError, - 23 => NSXMLParserEntityReferenceMissingSemiError, - 24 => NSXMLParserParsedEntityRefNoNameError, - 25 => NSXMLParserParsedEntityRefMissingSemiError, - 26 => NSXMLParserUndeclaredEntityError, - 28 => NSXMLParserUnparsedEntityError, - 29 => NSXMLParserEntityIsExternalError, - 30 => NSXMLParserEntityIsParameterError, - 31 => NSXMLParserUnknownEncodingError, - 32 => NSXMLParserEncodingNotSupportedError, - 33 => NSXMLParserStringNotStartedError, - 34 => NSXMLParserStringNotClosedError, - 35 => NSXMLParserNamespaceDeclarationError, - 36 => NSXMLParserEntityNotStartedError, - 37 => NSXMLParserEntityNotFinishedError, - 38 => NSXMLParserLessThanSymbolInAttributeError, - 39 => NSXMLParserAttributeNotStartedError, - 40 => NSXMLParserAttributeNotFinishedError, - 41 => NSXMLParserAttributeHasNoValueError, - 42 => NSXMLParserAttributeRedefinedError, - 43 => NSXMLParserLiteralNotStartedError, - 44 => NSXMLParserLiteralNotFinishedError, - 45 => NSXMLParserCommentNotFinishedError, - 46 => NSXMLParserProcessingInstructionNotStartedError, - 47 => NSXMLParserProcessingInstructionNotFinishedError, - 48 => NSXMLParserNotationNotStartedError, - 49 => NSXMLParserNotationNotFinishedError, - 50 => NSXMLParserAttributeListNotStartedError, - 51 => NSXMLParserAttributeListNotFinishedError, - 52 => NSXMLParserMixedContentDeclNotStartedError, - 53 => NSXMLParserMixedContentDeclNotFinishedError, - 54 => NSXMLParserElementContentDeclNotStartedError, - 55 => NSXMLParserElementContentDeclNotFinishedError, - 56 => NSXMLParserXMLDeclNotStartedError, - 57 => NSXMLParserXMLDeclNotFinishedError, - 58 => NSXMLParserConditionalSectionNotStartedError, - 59 => NSXMLParserConditionalSectionNotFinishedError, - 60 => NSXMLParserExternalSubsetNotFinishedError, - 61 => NSXMLParserDOCTYPEDeclNotFinishedError, - 62 => NSXMLParserMisplacedCDATAEndStringError, - 63 => NSXMLParserCDATANotFinishedError, - 64 => NSXMLParserMisplacedXMLDeclarationError, - 65 => NSXMLParserSpaceRequiredError, - 66 => NSXMLParserSeparatorRequiredError, - 67 => NSXMLParserNMTOKENRequiredError, - 68 => NSXMLParserNAMERequiredError, - 69 => NSXMLParserPCDATARequiredError, - 70 => NSXMLParserURIRequiredError, - 71 => NSXMLParserPublicIdentifierRequiredError, - 72 => NSXMLParserLTRequiredError, - 73 => NSXMLParserGTRequiredError, - 74 => NSXMLParserLTSlashRequiredError, - 75 => NSXMLParserEqualExpectedError, - 76 => NSXMLParserTagNameMismatchError, - 77 => NSXMLParserUnfinishedTagError, - 78 => NSXMLParserStandaloneValueError, - 79 => NSXMLParserInvalidEncodingNameError, - 80 => NSXMLParserCommentContainsDoubleHyphenError, - 81 => NSXMLParserInvalidEncodingError, - 82 => NSXMLParserExternalStandaloneEntityError, - 83 => NSXMLParserInvalidConditionalSectionError, - 84 => NSXMLParserEntityValueRequiredError, - 85 => NSXMLParserNotWellBalancedError, - 86 => NSXMLParserExtraContentError, - 87 => NSXMLParserInvalidCharacterInEntityError, - 88 => NSXMLParserParsedEntityRefInInternalError, - 89 => NSXMLParserEntityRefLoopError, - 90 => NSXMLParserEntityBoundaryError, - 91 => NSXMLParserInvalidURIError, - 92 => NSXMLParserURIFragmentError, - 94 => NSXMLParserNoDTDError, - 512 => NSXMLParserDelegateAbortedParseError, - _ => throw ArgumentError('Unknown value for NSXMLParserError: $value'), - }; -} - -enum NSXMLParserExternalEntityResolvingPolicy { - NSXMLParserResolveExternalEntitiesNever(0), - NSXMLParserResolveExternalEntitiesNoNetwork(1), - NSXMLParserResolveExternalEntitiesSameOriginOnly(2), - NSXMLParserResolveExternalEntitiesAlways(3); - - final int value; - const NSXMLParserExternalEntityResolvingPolicy(this.value); - - static NSXMLParserExternalEntityResolvingPolicy fromValue(int value) => - switch (value) { - 0 => NSXMLParserResolveExternalEntitiesNever, - 1 => NSXMLParserResolveExternalEntitiesNoNetwork, - 2 => NSXMLParserResolveExternalEntitiesSameOriginOnly, - 3 => NSXMLParserResolveExternalEntitiesAlways, - _ => throw ArgumentError( - 'Unknown value for NSXMLParserExternalEntityResolvingPolicy: $value', - ), - }; -} - -/// NSXMLParserLocatorAdditions -extension NSXMLParserLocatorAdditions on NSXMLParser { - /// columnNumber - DartNSInteger get columnNumber { - final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_columnNumber); - } - - /// lineNumber - DartNSInteger get lineNumber { - final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_lineNumber); - } - - /// publicID - objc.NSString? get publicID { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_publicID); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// systemID - objc.NSString? get systemID { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_systemID); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSXPCConnection is a stub. To generate bindings for this class, include -/// NSXPCConnection in your config's objc-interfaces list. -/// -/// NSXPCConnection -extension type NSXPCConnection._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, NSXPCProxyCreating { - /// Constructs a [NSXPCConnection] that points to the same underlying object as [other]. - NSXPCConnection.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSXPCConnection', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - } - - /// Constructs a [NSXPCConnection] that wraps the given raw object pointer. - NSXPCConnection.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSXPCConnection', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - } -} - -const int NSXPCConnectionCodeSigningRequirementFailure = 4102; - -const int NSXPCConnectionErrorMaximum = 4224; - -const int NSXPCConnectionErrorMinimum = 4096; - -const int NSXPCConnectionInterrupted = 4097; - -const int NSXPCConnectionInvalid = 4099; - -sealed class NSXPCConnectionOptions { - static const NSXPCConnectionPrivileged = 4096; -} - -const int NSXPCConnectionReplyInvalid = 4101; - -/// WARNING: NSXPCListener is a stub. To generate bindings for this class, include -/// NSXPCListener in your config's objc-interfaces list. -/// -/// NSXPCListener -extension type NSXPCListener._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSXPCListener] that points to the same underlying object as [other]. - NSXPCListener.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSXPCListener', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - } - - /// Constructs a [NSXPCListener] that wraps the given raw object pointer. - NSXPCListener.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSXPCListener', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - } -} - -/// NSXPCListenerDelegate -extension type NSXPCListenerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSXPCListenerDelegate] that points to the same underlying object as [other]. - NSXPCListenerDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSXPCListenerDelegate] that wraps the given raw object pointer. - NSXPCListenerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSXPCListenerDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSXPCListenerDelegate, - ); - } -} - -extension NSXPCListenerDelegate$Methods on NSXPCListenerDelegate { - /// listener:shouldAcceptNewConnection: - bool listener( - NSXPCListener listener, { - required NSXPCConnection shouldAcceptNewConnection, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = listener.ref; - final _$$ref$2 = shouldAcceptNewConnection.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_listener_shouldAcceptNewConnection_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXPCListenerDelegate', - 'listener:shouldAcceptNewConnection:', - ); - } - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_listener_shouldAcceptNewConnection_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSXPCListenerDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSXPCListenerDelegate.cast()); - - /// Builds an object that implements the NSXPCListenerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSXPCListenerDelegate implement({ - bool Function(NSXPCListener, NSXPCConnection)? - listener_shouldAcceptNewConnection_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSXPCListenerDelegate', - ); - NSXPCListenerDelegate$Builder.listener_shouldAcceptNewConnection_.implement( - builder, - listener_shouldAcceptNewConnection_, - ); - builder.addProtocol($protocol); - return NSXPCListenerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSXPCListenerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSXPCListener, NSXPCConnection)? - listener_shouldAcceptNewConnection_, - bool $keepIsolateAlive = true, - }) { - NSXPCListenerDelegate$Builder.listener_shouldAcceptNewConnection_.implement( - builder, - listener_shouldAcceptNewConnection_, - ); - builder.addProtocol($protocol); - } - - /// listener:shouldAcceptNewConnection: - static final listener_shouldAcceptNewConnection_ = - objc.ObjCProtocolMethod( - _protocol_NSXPCListenerDelegate, - _sel_listener_shouldAcceptNewConnection_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXPCListenerDelegate, - _sel_listener_shouldAcceptNewConnection_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSXPCListener, NSXPCConnection) func) => - ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection.fromFunction( - ( - ffi.Pointer _, - NSXPCListener arg1, - NSXPCConnection arg2, - ) => func(arg1, arg2), - ), - ); -} - -/// NSXPCProxyCreating -extension type NSXPCProxyCreating._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSXPCProxyCreating] that points to the same underlying object as [other]. - NSXPCProxyCreating.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSXPCProxyCreating] that wraps the given raw object pointer. - NSXPCProxyCreating.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSXPCProxyCreating]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSXPCProxyCreating, - ); - } -} - -extension NSXPCProxyCreating$Methods on NSXPCProxyCreating { - /// remoteObjectProxy - objc.ObjCObject remoteObjectProxy() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_remoteObjectProxy); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// remoteObjectProxyWithErrorHandler: - objc.ObjCObject remoteObjectProxyWithErrorHandler( - objc.ObjCBlock handler, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = handler.ref; - final $ret = _objc_msgSend_1ludlma( - _$$ref.pointer, - _sel_remoteObjectProxyWithErrorHandler_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// synchronousRemoteObjectProxyWithErrorHandler: - objc.ObjCObject synchronousRemoteObjectProxyWithErrorHandler( - objc.ObjCBlock handler, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = handler.ref; - objc.checkOsVersionInternal( - 'NSXPCProxyCreating.synchronousRemoteObjectProxyWithErrorHandler:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_synchronousRemoteObjectProxyWithErrorHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXPCProxyCreating', - 'synchronousRemoteObjectProxyWithErrorHandler:', - ); - } - final $ret = _objc_msgSend_1ludlma( - _$$ref.pointer, - _sel_synchronousRemoteObjectProxyWithErrorHandler_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -interface class NSXPCProxyCreating$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSXPCProxyCreating.cast()); - - /// Builds an object that implements the NSXPCProxyCreating protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSXPCProxyCreating implement({ - required objc.ObjCObject Function() remoteObjectProxy, - required objc.ObjCObject Function( - objc.ObjCBlock, - ) - remoteObjectProxyWithErrorHandler_, - objc.ObjCObject Function(objc.ObjCBlock)? - synchronousRemoteObjectProxyWithErrorHandler_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSXPCProxyCreating'); - NSXPCProxyCreating$Builder.remoteObjectProxy.implement( - builder, - remoteObjectProxy, - ); - NSXPCProxyCreating$Builder.remoteObjectProxyWithErrorHandler_.implement( - builder, - remoteObjectProxyWithErrorHandler_, - ); - NSXPCProxyCreating$Builder.synchronousRemoteObjectProxyWithErrorHandler_ - .implement(builder, synchronousRemoteObjectProxyWithErrorHandler_); - builder.addProtocol($protocol); - return NSXPCProxyCreating.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSXPCProxyCreating protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObject Function() remoteObjectProxy, - required objc.ObjCObject Function( - objc.ObjCBlock, - ) - remoteObjectProxyWithErrorHandler_, - objc.ObjCObject Function(objc.ObjCBlock)? - synchronousRemoteObjectProxyWithErrorHandler_, - bool $keepIsolateAlive = true, - }) { - NSXPCProxyCreating$Builder.remoteObjectProxy.implement( - builder, - remoteObjectProxy, - ); - NSXPCProxyCreating$Builder.remoteObjectProxyWithErrorHandler_.implement( - builder, - remoteObjectProxyWithErrorHandler_, - ); - NSXPCProxyCreating$Builder.synchronousRemoteObjectProxyWithErrorHandler_ - .implement(builder, synchronousRemoteObjectProxyWithErrorHandler_); - builder.addProtocol($protocol); - } - - /// remoteObjectProxy - static final remoteObjectProxy = - objc.ObjCProtocolMethod( - _protocol_NSXPCProxyCreating, - _sel_remoteObjectProxy, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXPCProxyCreating, - _sel_remoteObjectProxy, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObject Function() func) => - ObjCBlock_objcObjCObjectImpl_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// remoteObjectProxyWithErrorHandler: - static final remoteObjectProxyWithErrorHandler_ = - objc.ObjCProtocolMethod< - objc.ObjCObject Function( - objc.ObjCBlock, - ) - >( - _protocol_NSXPCProxyCreating, - _sel_remoteObjectProxyWithErrorHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ndzfqt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXPCProxyCreating, - _sel_remoteObjectProxyWithErrorHandler_, - isRequired: true, - isInstanceMethod: true, - ), - ( - objc.ObjCObject Function( - objc.ObjCBlock, - ) - func, - ) => ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ); - - /// synchronousRemoteObjectProxyWithErrorHandler: - static final synchronousRemoteObjectProxyWithErrorHandler_ = - objc.ObjCProtocolMethod< - objc.ObjCObject Function( - objc.ObjCBlock, - ) - >( - _protocol_NSXPCProxyCreating, - _sel_synchronousRemoteObjectProxyWithErrorHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ndzfqt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXPCProxyCreating, - _sel_synchronousRemoteObjectProxyWithErrorHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.ObjCObject Function( - objc.ObjCBlock, - ) - func, - ) => ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ); -} - -typedef NSZone = objc.NSZone; - -const int NS_BigEndian = 2; - -const int NS_LittleEndian = 1; - -const int NS_UnknownByteOrder = 0; - -typedef NXCoord = ffi.Float; -typedef DartNXCoord = double; -typedef NXEvent = _NXEvent; - -final class NXEventData extends ffi.Union { - external UnnamedStruct$11 mouse; - - external UnnamedStruct$13 mouseMove; - - external UnnamedStruct$14 key; - - external UnnamedStruct$16 tracking; - - external UnnamedStruct$21 scrollWheel; - - external UnnamedStruct$21 zoom; - - external UnnamedStruct$17 compound$1; - - external UnnamedStruct$19 tablet; - - external UnnamedStruct$12 proximity; -} - -typedef NXEventExt = _NXEventExt; -typedef NXEventExtension = _NXEventExtension; -typedef NXEventPtr = ffi.Pointer<_NXEvent>; - -final class NXEventSystemDevice extends ffi.Struct { - @ffi.Int() - external int interface; - - @ffi.Int() - external int interface_addr; - - @ffi.Int() - external int dev_type; - - @ffi.Int() - external int id; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int interface, - required int interface_addr, - required int dev_type, - required int id, - }) => $allocator() - ..ref.interface = interface - ..ref.interface_addr = interface_addr - ..ref.dev_type = dev_type - ..ref.id = id; -} - -final class NXEventSystemDeviceList extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array dev; -} - -typedef NXEventSystemInfoType = ffi.Pointer; -typedef NXKeyMapping = evsioKeymapping; - -enum NXMouseButton { - NX_OneButton(0), - NX_LeftButton(1), - NX_RightButton(2); - - final int value; - const NXMouseButton(this.value); - - static NXMouseButton fromValue(int value) => switch (value) { - 0 => NX_OneButton, - 1 => NX_LeftButton, - 2 => NX_RightButton, - _ => throw ArgumentError('Unknown value for NXMouseButton: $value'), - }; -} - -typedef NXMouseScaling = evsioMouseScaling; -typedef NXPoint = _NXPoint; -typedef NXSize = _NXSize; -typedef NXTabletPointData = _NXTabletPointData; -typedef NXTabletPointDataPtr = ffi.Pointer<_NXTabletPointData>; -typedef NXTabletProximityData = _NXTabletProximityData; -typedef NXTabletProximityDataPtr = ffi.Pointer<_NXTabletProximityData>; - -const int NameID = 1312902469; - -final class NameTable extends ffi.Struct { - @SInt16() - external int stringCount; - - @ffi.Array.multi([256]) - external ffi.Array baseFontName; -} - -typedef Nanoseconds = UnsignedWide; - -const int NetActivity = 2; - -const int NoLooping = 0; - -const int NoneType = 1313820229; - -final class NumFormatString extends ffi.Struct { - @UInt8() - external int fLength; - - @UInt8() - external int fVersion; - - @ffi.Array.multi([254]) - external ffi.Array data; -} - -typedef NumFormatStringRec = NumFormatString; - -final class NumVersion extends ffi.Struct { - @UInt8() - external int nonRelRev; - - @UInt8() - external int stage; - - @UInt8() - external int minorAndBugRev; - - @UInt8() - external int majorRev; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nonRelRev, - required int stage, - required int minorAndBugRev, - required int majorRev, - }) => $allocator() - ..ref.nonRelRev = nonRelRev - ..ref.stage = stage - ..ref.minorAndBugRev = minorAndBugRev - ..ref.majorRev = majorRev; -} - -final class NumVersionVariant extends ffi.Union { - external NumVersion parts; - - @UInt32() - external int whole; -} - -typedef NumVersionVariantHandle = ffi.Pointer; -typedef NumVersionVariantPtr = ffi.Pointer; - -final class NumberParts extends ffi.Struct { - @ffi.Short() - external int version; - - @ffi.Array.multi([31]) - external ffi.Array data; - - external WideCharArr pePlus; - - external WideCharArr peMinus; - - external WideCharArr peMinusPlus; - - external WideCharArr altNumTable; - - @ffi.Array.multi([20]) - external ffi.Array reserved; -} - -typedef NumberPartsPtr = ffi.Pointer; - -const int OSAControlFlowError = -2755; - -const int OSADuplicateHandler = -2752; - -const int OSADuplicateParameter = -2750; - -const int OSADuplicateProperty = -2751; - -const int OSAIllegalAccess = -1723; - -const int OSAIllegalAssign = -10003; - -const int OSAIllegalIndex = -1719; - -const int OSAIllegalRange = -1720; - -const int OSAInconsistentDeclarations = -2754; - -const int OSAMessageNotUnderstood = -1708; - -const int OSAMissingParameter = -1701; - -const int OSAParameterMismatch = -1721; - -const int OSASyntaxError = -2740; - -const int OSASyntaxTypeError = -2741; - -const int OSATokenTooLong = -2742; - -const int OSAUndefinedHandler = -1717; - -const int OSAUndefinedVariable = -2753; - -typedef OSAtomic_int64_aligned64_t = ffi.Int64; -typedef DartOSAtomic_int64_aligned64_t = int; - -const int OSBigEndian = 2; - -typedef OSErr = SInt16; -typedef OSFifoQueueHead = UnnamedStruct$2; -typedef OSLAccessorProcPtr = - ffi.Pointer>; -typedef OSLAccessorProcPtrFunction = - OSErr Function( - DescType desiredClass, - ffi.Pointer container, - DescType containerClass, - DescType form, - ffi.Pointer selectionData, - ffi.Pointer value, - SRefCon accessorRefcon, - ); -typedef DartOSLAccessorProcPtrFunction = - DartSInt16 Function( - DartUInt32 desiredClass, - ffi.Pointer container, - DartUInt32 containerClass, - DartUInt32 form, - ffi.Pointer selectionData, - ffi.Pointer value, - SRefCon accessorRefcon, - ); -typedef OSLAccessorUPP = OSLAccessorProcPtr; -typedef OSLAdjustMarksProcPtr = - ffi.Pointer>; -typedef OSLAdjustMarksProcPtrFunction = - OSErr Function( - ffi.Long newStart, - ffi.Long newStop, - ffi.Pointer markToken, - ); -typedef DartOSLAdjustMarksProcPtrFunction = - DartSInt16 Function( - int newStart, - int newStop, - ffi.Pointer markToken, - ); -typedef OSLAdjustMarksUPP = OSLAdjustMarksProcPtr; -typedef OSLCompareProcPtr = - ffi.Pointer>; -typedef OSLCompareProcPtrFunction = - OSErr Function( - DescType oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ); -typedef DartOSLCompareProcPtrFunction = - DartSInt16 Function( - DartUInt32 oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ); -typedef OSLCompareUPP = OSLCompareProcPtr; -typedef OSLCountProcPtr = - ffi.Pointer>; -typedef OSLCountProcPtrFunction = - OSErr Function( - DescType desiredType, - DescType containerClass, - ffi.Pointer container, - ffi.Pointer result, - ); -typedef DartOSLCountProcPtrFunction = - DartSInt16 Function( - DartUInt32 desiredType, - DartUInt32 containerClass, - ffi.Pointer container, - ffi.Pointer result, - ); -typedef OSLCountUPP = OSLCountProcPtr; -typedef OSLDisposeTokenProcPtr = - ffi.Pointer>; -typedef OSLDisposeTokenProcPtrFunction = - OSErr Function(ffi.Pointer unneededToken); -typedef DartOSLDisposeTokenProcPtrFunction = - DartSInt16 Function(ffi.Pointer unneededToken); -typedef OSLDisposeTokenUPP = OSLDisposeTokenProcPtr; -typedef OSLGetErrDescProcPtr = - ffi.Pointer>; -typedef OSLGetErrDescProcPtrFunction = - OSErr Function(ffi.Pointer> appDescPtr); -typedef DartOSLGetErrDescProcPtrFunction = - DartSInt16 Function(ffi.Pointer> appDescPtr); -typedef OSLGetErrDescUPP = OSLGetErrDescProcPtr; -typedef OSLGetMarkTokenProcPtr = - ffi.Pointer>; -typedef OSLGetMarkTokenProcPtrFunction = - OSErr Function( - ffi.Pointer dContainerToken, - DescType containerClass, - ffi.Pointer result, - ); -typedef DartOSLGetMarkTokenProcPtrFunction = - DartSInt16 Function( - ffi.Pointer dContainerToken, - DartUInt32 containerClass, - ffi.Pointer result, - ); -typedef OSLGetMarkTokenUPP = OSLGetMarkTokenProcPtr; -typedef OSLMarkProcPtr = - ffi.Pointer>; -typedef OSLMarkProcPtrFunction = - OSErr Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - ffi.Long index$1, - ); -typedef DartOSLMarkProcPtrFunction = - DartSInt16 Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - int index$1, - ); -typedef OSLMarkUPP = OSLMarkProcPtr; - -const int OSLittleEndian = 1; - -final class OSNotificationHeader extends ffi.Opaque {} - -final class OSNotificationHeader64 extends ffi.Opaque {} - -typedef OSQueueHead = UnnamedStruct$1; -typedef OSSpinLock = ffi.Int32; -typedef DartOSSpinLock = int; -typedef OSStatus = SInt32; -typedef OSType = FourCharCode; -typedef OSTypePtr = ffi.Pointer; - -const int OSUnknownByteOrder = 0; - -/// OS_dispatch_data -extension type OS_dispatch_data._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_data] that points to the same underlying object as [other]. - OS_dispatch_data.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_data] that wraps the given raw object pointer. - OS_dispatch_data.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_data]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_data, - ); - } -} - -extension OS_dispatch_data$Methods on OS_dispatch_data {} - -interface class OS_dispatch_data$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_data.cast()); - - /// Builds an object that implements the OS_dispatch_data protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_data implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_data'); - - builder.addProtocol($protocol); - return OS_dispatch_data.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_data protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_group -extension type OS_dispatch_group._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_group] that points to the same underlying object as [other]. - OS_dispatch_group.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_group] that wraps the given raw object pointer. - OS_dispatch_group.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_group]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_group, - ); - } -} - -extension OS_dispatch_group$Methods on OS_dispatch_group {} - -interface class OS_dispatch_group$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_group.cast()); - - /// Builds an object that implements the OS_dispatch_group protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_group implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_group'); - - builder.addProtocol($protocol); - return OS_dispatch_group.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_group protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_io -extension type OS_dispatch_io._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_io] that points to the same underlying object as [other]. - OS_dispatch_io.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_io] that wraps the given raw object pointer. - OS_dispatch_io.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_io]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_io, - ); - } -} - -extension OS_dispatch_io$Methods on OS_dispatch_io {} - -interface class OS_dispatch_io$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_io.cast()); - - /// Builds an object that implements the OS_dispatch_io protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_io implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_io'); - - builder.addProtocol($protocol); - return OS_dispatch_io.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_io protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_object -extension type OS_dispatch_object._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_dispatch_object] that points to the same underlying object as [other]. - OS_dispatch_object.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_object] that wraps the given raw object pointer. - OS_dispatch_object.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_object]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_object, - ); - } -} - -extension OS_dispatch_object$Methods on OS_dispatch_object {} - -interface class OS_dispatch_object$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_object.cast()); - - /// Builds an object that implements the OS_dispatch_object protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_object implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_object'); - - builder.addProtocol($protocol); - return OS_dispatch_object.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_object protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue -extension type OS_dispatch_queue._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_queue] that points to the same underlying object as [other]. - OS_dispatch_queue.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue] that wraps the given raw object pointer. - OS_dispatch_queue.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue, - ); - } -} - -extension OS_dispatch_queue$Methods on OS_dispatch_queue {} - -interface class OS_dispatch_queue$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue.cast()); - - /// Builds an object that implements the OS_dispatch_queue protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_queue'); - - builder.addProtocol($protocol); - return OS_dispatch_queue.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_attr -extension type OS_dispatch_queue_attr._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_queue_attr] that points to the same underlying object as [other]. - OS_dispatch_queue_attr.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_attr] that wraps the given raw object pointer. - OS_dispatch_queue_attr.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_attr]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_attr, - ); - } -} - -extension OS_dispatch_queue_attr$Methods on OS_dispatch_queue_attr {} - -interface class OS_dispatch_queue_attr$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_attr.cast()); - - /// Builds an object that implements the OS_dispatch_queue_attr protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_attr implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_attr', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_attr.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_attr protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_concurrent -extension type OS_dispatch_queue_concurrent._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue { - /// Constructs a [OS_dispatch_queue_concurrent] that points to the same underlying object as [other]. - OS_dispatch_queue_concurrent.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_concurrent] that wraps the given raw object pointer. - OS_dispatch_queue_concurrent.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_concurrent]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_concurrent, - ); - } -} - -extension OS_dispatch_queue_concurrent$Methods - on OS_dispatch_queue_concurrent {} - -interface class OS_dispatch_queue_concurrent$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_concurrent.cast()); - - /// Builds an object that implements the OS_dispatch_queue_concurrent protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_concurrent implement({ - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_concurrent', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_concurrent.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_concurrent protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_global -extension type OS_dispatch_queue_global._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue { - /// Constructs a [OS_dispatch_queue_global] that points to the same underlying object as [other]. - OS_dispatch_queue_global.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_global] that wraps the given raw object pointer. - OS_dispatch_queue_global.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_global]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_global, - ); - } -} - -extension OS_dispatch_queue_global$Methods on OS_dispatch_queue_global {} - -interface class OS_dispatch_queue_global$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_global.cast()); - - /// Builds an object that implements the OS_dispatch_queue_global protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_global implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_global', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_global.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_global protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_main -extension type OS_dispatch_queue_main._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue_serial { - /// Constructs a [OS_dispatch_queue_main] that points to the same underlying object as [other]. - OS_dispatch_queue_main.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_main] that wraps the given raw object pointer. - OS_dispatch_queue_main.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_main]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_main, - ); - } -} - -extension OS_dispatch_queue_main$Methods on OS_dispatch_queue_main {} - -interface class OS_dispatch_queue_main$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_main.cast()); - - /// Builds an object that implements the OS_dispatch_queue_main protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_main implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_main', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_main.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_main protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_serial -extension type OS_dispatch_queue_serial._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue { - /// Constructs a [OS_dispatch_queue_serial] that points to the same underlying object as [other]. - OS_dispatch_queue_serial.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_serial] that wraps the given raw object pointer. - OS_dispatch_queue_serial.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_serial]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_serial, - ); - } -} - -extension OS_dispatch_queue_serial$Methods on OS_dispatch_queue_serial {} - -interface class OS_dispatch_queue_serial$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_serial.cast()); - - /// Builds an object that implements the OS_dispatch_queue_serial protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_serial implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_serial', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_serial.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_serial protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_serial_executor -extension type OS_dispatch_queue_serial_executor._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue { - /// Constructs a [OS_dispatch_queue_serial_executor] that points to the same underlying object as [other]. - OS_dispatch_queue_serial_executor.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_serial_executor] that wraps the given raw object pointer. - OS_dispatch_queue_serial_executor.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_serial_executor]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_serial_executor, - ); - } -} - -extension OS_dispatch_queue_serial_executor$Methods - on OS_dispatch_queue_serial_executor {} - -interface class OS_dispatch_queue_serial_executor$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => objc.Protocol.fromPointer( - _protocol_OS_dispatch_queue_serial_executor.cast(), - ); - - /// Builds an object that implements the OS_dispatch_queue_serial_executor protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_serial_executor implement({ - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_serial_executor', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_serial_executor.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_serial_executor protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_semaphore -extension type OS_dispatch_semaphore._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_semaphore] that points to the same underlying object as [other]. - OS_dispatch_semaphore.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_semaphore] that wraps the given raw object pointer. - OS_dispatch_semaphore.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_semaphore]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_semaphore, - ); - } -} - -extension OS_dispatch_semaphore$Methods on OS_dispatch_semaphore {} - -interface class OS_dispatch_semaphore$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_semaphore.cast()); - - /// Builds an object that implements the OS_dispatch_semaphore protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_semaphore implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_semaphore', - ); - - builder.addProtocol($protocol); - return OS_dispatch_semaphore.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_semaphore protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_source -extension type OS_dispatch_source._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_source] that points to the same underlying object as [other]. - OS_dispatch_source.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_source] that wraps the given raw object pointer. - OS_dispatch_source.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_source]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_source, - ); - } -} - -extension OS_dispatch_source$Methods on OS_dispatch_source {} - -interface class OS_dispatch_source$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_source.cast()); - - /// Builds an object that implements the OS_dispatch_source protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_source implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_source'); - - builder.addProtocol($protocol); - return OS_dispatch_source.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_source protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_workloop -extension type OS_dispatch_workloop._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue { - /// Constructs a [OS_dispatch_workloop] that points to the same underlying object as [other]. - OS_dispatch_workloop.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_workloop] that wraps the given raw object pointer. - OS_dispatch_workloop.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_workloop]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_workloop, - ); - } -} - -extension OS_dispatch_workloop$Methods on OS_dispatch_workloop {} - -interface class OS_dispatch_workloop$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_workloop.cast()); - - /// Builds an object that implements the OS_dispatch_workloop protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_workloop implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_workloop'); - - builder.addProtocol($protocol); - return OS_dispatch_workloop.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_workloop protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// WARNING: OS_object is a stub. To generate bindings for this class, include -/// OS_object in your config's objc-interfaces list. -/// -/// OS_object -extension type OS_object._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [OS_object] that points to the same underlying object as [other]. - OS_object.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [OS_object] that wraps the given raw object pointer. - OS_object.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// WARNING: OS_os_workgroup is a stub. To generate bindings for this class, include -/// OS_os_workgroup in your config's objc-interfaces list. -/// -/// OS_os_workgroup -extension type OS_os_workgroup._(objc.ObjCObject object$) - implements objc.ObjCObject, OS_object { - /// Constructs a [OS_os_workgroup] that points to the same underlying object as [other]. - OS_os_workgroup.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [OS_os_workgroup] that wraps the given raw object pointer. - OS_os_workgroup.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// OS_os_workgroup_interval -extension type OS_os_workgroup_interval._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [OS_os_workgroup_interval] that points to the same underlying object as [other]. - OS_os_workgroup_interval.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_os_workgroup_interval] that wraps the given raw object pointer. - OS_os_workgroup_interval.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_os_workgroup_interval]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_os_workgroup_interval, - ); - } -} - -extension OS_os_workgroup_interval$Methods on OS_os_workgroup_interval {} - -interface class OS_os_workgroup_interval$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_os_workgroup_interval.cast()); - - /// Builds an object that implements the OS_os_workgroup_interval protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_os_workgroup_interval implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_os_workgroup_interval', - ); - - builder.addProtocol($protocol); - return OS_os_workgroup_interval.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_os_workgroup_interval protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_os_workgroup_parallel -extension type OS_os_workgroup_parallel._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [OS_os_workgroup_parallel] that points to the same underlying object as [other]. - OS_os_workgroup_parallel.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_os_workgroup_parallel] that wraps the given raw object pointer. - OS_os_workgroup_parallel.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_os_workgroup_parallel]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_os_workgroup_parallel, - ); - } -} - -extension OS_os_workgroup_parallel$Methods on OS_os_workgroup_parallel {} - -interface class OS_os_workgroup_parallel$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_os_workgroup_parallel.cast()); - - /// Builds an object that implements the OS_os_workgroup_parallel protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_os_workgroup_parallel implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_os_workgroup_parallel', - ); - - builder.addProtocol($protocol); - return OS_os_workgroup_parallel.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_os_workgroup_parallel protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_certificate -extension type OS_sec_certificate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_certificate] that points to the same underlying object as [other]. - OS_sec_certificate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_certificate] that wraps the given raw object pointer. - OS_sec_certificate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_certificate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_certificate, - ); - } -} - -extension OS_sec_certificate$Methods on OS_sec_certificate {} - -interface class OS_sec_certificate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_certificate.cast()); - - /// Builds an object that implements the OS_sec_certificate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_certificate implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_certificate'); - - builder.addProtocol($protocol); - return OS_sec_certificate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_sec_certificate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_identity -extension type OS_sec_identity._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_identity] that points to the same underlying object as [other]. - OS_sec_identity.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_identity] that wraps the given raw object pointer. - OS_sec_identity.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_identity]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_identity, - ); - } -} - -extension OS_sec_identity$Methods on OS_sec_identity {} - -interface class OS_sec_identity$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_identity.cast()); - - /// Builds an object that implements the OS_sec_identity protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_identity implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_identity'); - - builder.addProtocol($protocol); - return OS_sec_identity.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_sec_identity protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_object -extension type OS_sec_object._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_object] that points to the same underlying object as [other]. - OS_sec_object.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_object] that wraps the given raw object pointer. - OS_sec_object.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_object]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_object, - ); - } -} - -extension OS_sec_object$Methods on OS_sec_object {} - -interface class OS_sec_object$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_object.cast()); - - /// Builds an object that implements the OS_sec_object protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_object implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_object'); - - builder.addProtocol($protocol); - return OS_sec_object.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the OS_sec_object protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_protocol_metadata -extension type OS_sec_protocol_metadata._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_protocol_metadata] that points to the same underlying object as [other]. - OS_sec_protocol_metadata.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_protocol_metadata] that wraps the given raw object pointer. - OS_sec_protocol_metadata.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_protocol_metadata]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_protocol_metadata, - ); - } -} - -extension OS_sec_protocol_metadata$Methods on OS_sec_protocol_metadata {} - -interface class OS_sec_protocol_metadata$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_protocol_metadata.cast()); - - /// Builds an object that implements the OS_sec_protocol_metadata protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_protocol_metadata implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_sec_protocol_metadata', - ); - - builder.addProtocol($protocol); - return OS_sec_protocol_metadata.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_sec_protocol_metadata protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_protocol_options -extension type OS_sec_protocol_options._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_protocol_options] that points to the same underlying object as [other]. - OS_sec_protocol_options.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_protocol_options] that wraps the given raw object pointer. - OS_sec_protocol_options.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_protocol_options]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_protocol_options, - ); - } -} - -extension OS_sec_protocol_options$Methods on OS_sec_protocol_options {} - -interface class OS_sec_protocol_options$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_protocol_options.cast()); - - /// Builds an object that implements the OS_sec_protocol_options protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_protocol_options implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_sec_protocol_options', - ); - - builder.addProtocol($protocol); - return OS_sec_protocol_options.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_sec_protocol_options protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_trust -extension type OS_sec_trust._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_trust] that points to the same underlying object as [other]. - OS_sec_trust.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_trust] that wraps the given raw object pointer. - OS_sec_trust.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_trust]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_trust, - ); - } -} - -extension OS_sec_trust$Methods on OS_sec_trust {} - -interface class OS_sec_trust$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_trust.cast()); - - /// Builds an object that implements the OS_sec_trust protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_trust implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_trust'); - - builder.addProtocol($protocol); - return OS_sec_trust.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the OS_sec_trust protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_xpc_listener -extension type OS_xpc_listener._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_xpc_listener] that points to the same underlying object as [other]. - OS_xpc_listener.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_xpc_listener] that wraps the given raw object pointer. - OS_xpc_listener.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_xpc_listener]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_xpc_listener, - ); - } -} - -extension OS_xpc_listener$Methods on OS_xpc_listener {} - -interface class OS_xpc_listener$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_xpc_listener.cast()); - - /// Builds an object that implements the OS_xpc_listener protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_xpc_listener implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_listener'); - - builder.addProtocol($protocol); - return OS_xpc_listener.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_xpc_listener protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_xpc_object -extension type OS_xpc_object._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_xpc_object] that points to the same underlying object as [other]. - OS_xpc_object.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_xpc_object] that wraps the given raw object pointer. - OS_xpc_object.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_xpc_object]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_xpc_object, - ); - } -} - -extension OS_xpc_object$Methods on OS_xpc_object {} - -interface class OS_xpc_object$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_xpc_object.cast()); - - /// Builds an object that implements the OS_xpc_object protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_xpc_object implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_object'); - - builder.addProtocol($protocol); - return OS_xpc_object.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the OS_xpc_object protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_xpc_peer_requirement -extension type OS_xpc_peer_requirement._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_xpc_peer_requirement] that points to the same underlying object as [other]. - OS_xpc_peer_requirement.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_xpc_peer_requirement] that wraps the given raw object pointer. - OS_xpc_peer_requirement.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_xpc_peer_requirement]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_xpc_peer_requirement, - ); - } -} - -extension OS_xpc_peer_requirement$Methods on OS_xpc_peer_requirement {} - -interface class OS_xpc_peer_requirement$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_xpc_peer_requirement.cast()); - - /// Builds an object that implements the OS_xpc_peer_requirement protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_xpc_peer_requirement implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_xpc_peer_requirement', - ); - - builder.addProtocol($protocol); - return OS_xpc_peer_requirement.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_xpc_peer_requirement protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_xpc_session -extension type OS_xpc_session._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_xpc_session] that points to the same underlying object as [other]. - OS_xpc_session.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_xpc_session] that wraps the given raw object pointer. - OS_xpc_session.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_xpc_session]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_xpc_session, - ); - } -} - -extension OS_xpc_session$Methods on OS_xpc_session {} - -interface class OS_xpc_session$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_xpc_session.cast()); - - /// Builds an object that implements the OS_xpc_session protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_xpc_session implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_session'); - - builder.addProtocol($protocol); - return OS_xpc_session.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_xpc_session protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer<__CFDictionary>, ffi.Int)>`. -abstract final class ObjCBlock_CFArrayRef_CFDictionaryRef_pidt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - > - fromFunction( - CFArrayRef Function(CFDictionaryRef, Dart__int32_t) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - >( - objc.newClosureBlock(_closureCallable, ( - CFDictionaryRef arg0, - int arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CFArrayRef _fnPtrTrampoline( - ffi.Pointer block, - CFDictionaryRef arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CFArrayRef Function(CFDictionaryRef arg0, pid_t arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFArrayRef Function( - ffi.Pointer, - CFDictionaryRef, - pid_t, - ) - >(_fnPtrTrampoline) - .cast(); - static CFArrayRef _closureTrampoline( - ffi.Pointer block, - CFDictionaryRef arg0, - int arg1, - ) => - (objc.getBlockClosure(block) - as CFArrayRef Function(CFDictionaryRef, int))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFArrayRef Function( - ffi.Pointer, - CFDictionaryRef, - pid_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer<__CFDictionary>, ffi.Int)>`. -extension ObjCBlock_CFArrayRef_CFDictionaryRef_pidt$CallExtension - on - objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - > { - CFArrayRef call(CFDictionaryRef arg0, Dart__int32_t arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFArrayRef Function( - ffi.Pointer block, - CFDictionaryRef arg0, - pid_t arg1, - ) - > - >() - .asFunction< - CFArrayRef Function( - ffi.Pointer, - CFDictionaryRef, - int, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_CFComparisonResult_CFTypeRef_CFTypeRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - CFComparisonResult Function(ffi.Pointer, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1).value; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFIndex Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as int Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFIndex Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_CFComparisonResult_CFTypeRef_CFTypeRef$CallExtension - on - objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - > { - CFComparisonResult call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return CFComparisonResult.fromValue( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1), - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function()>`. -abstract final class ObjCBlock_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function()> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function()>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function()> fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock Function()>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function()> fromFunction( - CFErrorRef Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function()>( - objc.newClosureBlock(_closureCallable, () { - return fn(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CFErrorRef _fnPtrTrampoline(ffi.Pointer block) => - block.ref.target - .cast>() - .asFunction()(); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFErrorRef Function(ffi.Pointer) - >(_fnPtrTrampoline) - .cast(); - static CFErrorRef _closureTrampoline(ffi.Pointer block) => - (objc.getBlockClosure(block) as CFErrorRef Function())(); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFErrorRef Function(ffi.Pointer) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function()>`. -extension ObjCBlock_CFErrorRef$CallExtension - on objc.ObjCBlock Function()> { - CFErrorRef call() { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFErrorRef Function(ffi.Pointer block) - > - >() - .asFunction)>()( - ref.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function()>`. -abstract final class ObjCBlock_CFTypeRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function()> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function()>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function()> fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock Function()>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function()> fromFunction( - CFTypeRef Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function()>( - objc.newClosureBlock(_closureCallable, () { - return fn(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CFTypeRef _fnPtrTrampoline(ffi.Pointer block) => - block.ref.target - .cast>() - .asFunction()(); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function(ffi.Pointer) - >(_fnPtrTrampoline) - .cast(); - static CFTypeRef _closureTrampoline(ffi.Pointer block) => - (objc.getBlockClosure(block) as CFTypeRef Function())(); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function(ffi.Pointer) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function()>`. -extension ObjCBlock_CFTypeRef$CallExtension - on objc.ObjCBlock Function()> { - CFTypeRef call() { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFTypeRef Function(ffi.Pointer block) - > - >() - .asFunction)>()( - ref.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_CFTypeRef_SecTransformAttributeRef_CFTypeRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - CFTypeRef Function(SecTransformAttributeRef arg0, CFTypeRef arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - CFTypeRef Function(SecTransformAttributeRef, CFTypeRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - SecTransformAttributeRef arg0, - CFTypeRef arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CFTypeRef _fnPtrTrampoline( - ffi.Pointer block, - SecTransformAttributeRef arg0, - CFTypeRef arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CFTypeRef Function(SecTransformAttributeRef arg0, CFTypeRef arg1) - > - >() - .asFunction< - CFTypeRef Function(SecTransformAttributeRef, CFTypeRef) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function( - ffi.Pointer, - SecTransformAttributeRef, - CFTypeRef, - ) - >(_fnPtrTrampoline) - .cast(); - static CFTypeRef _closureTrampoline( - ffi.Pointer block, - SecTransformAttributeRef arg0, - CFTypeRef arg1, - ) => - (objc.getBlockClosure(block) - as CFTypeRef Function(SecTransformAttributeRef, CFTypeRef))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function( - ffi.Pointer, - SecTransformAttributeRef, - CFTypeRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_CFTypeRef_SecTransformAttributeRef_CFTypeRef$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - CFTypeRef call(SecTransformAttributeRef arg0, CFTypeRef arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFTypeRef Function( - ffi.Pointer block, - SecTransformAttributeRef arg0, - CFTypeRef arg1, - ) - > - >() - .asFunction< - CFTypeRef Function( - ffi.Pointer, - SecTransformAttributeRef, - CFTypeRef, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, objc.CGSize, ffi.Double, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - CGImageRef Function( - ffi.Pointer arg0, - objc.CGSize arg1, - CGFloat arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - CGImageRef Function( - ffi.Pointer, - objc.CGSize, - DartCGFloat, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - objc.CGSize arg1, - double arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn(arg0, arg1, arg2, arg3, arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CGImageRef _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - objc.CGSize arg1, - double arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CGImageRef Function( - ffi.Pointer arg0, - objc.CGSize arg1, - CGFloat arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - CGImageRef Function( - ffi.Pointer, - objc.CGSize, - double, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CGImageRef Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - CGFloat, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static CGImageRef _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - objc.CGSize arg1, - double arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as CGImageRef Function( - ffi.Pointer, - objc.CGSize, - double, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CGImageRef Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - CGFloat, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, objc.CGSize, ffi.Double, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - > { - CGImageRef call( - ffi.Pointer arg0, - objc.CGSize arg1, - DartCGFloat arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CGImageRef Function( - ffi.Pointer block, - ffi.Pointer arg0, - objc.CGSize arg1, - CGFloat arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - CGImageRef Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - double, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2, arg3, arg4); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CGRenderingBufferProviderRef _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static CGRenderingBufferProviderRef _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - CGRenderingBufferProviderRef call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer, ffi.Uint64, ffi.Pointer)>`. -abstract final class ObjCBlock_CVReturn_CVDisplayLinkRef_CVTimeStamp_CVTimeStamp_CVOptionFlags_CVOptionFlags { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - CVReturn Function( - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - CVOptionFlags arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - > - fromFunction( - DartCVReturn Function( - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - DartCVOptionFlags, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) { - return fn(arg0, arg1, arg2, arg3, arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CVReturn Function( - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - CVOptionFlags arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - int Function( - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CVReturn Function( - ffi.Pointer, - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - CVOptionFlags, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as int Function( - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CVReturn Function( - ffi.Pointer, - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - CVOptionFlags, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer, ffi.Uint64, ffi.Pointer)>`. -extension ObjCBlock_CVReturn_CVDisplayLinkRef_CVTimeStamp_CVTimeStamp_CVOptionFlags_CVOptionFlags$CallExtension - on - objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - > { - DartCVReturn call( - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - DartCVOptionFlags arg3, - ffi.Pointer arg4, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CVReturn Function( - ffi.Pointer block, - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - CVOptionFlags arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2, arg3, arg4); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSArray_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSArray? Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0)?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSArray_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSArray? call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0) - .address == - 0 - ? null - : objc.NSArray.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSRange, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - final _$$ref = fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - arg2, - objc.NSString.fromPointer(arg3, retain: true, release: true), - objc.NSString.fromPointer(arg4, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSRange, objc.NSString, objc.NSString)>`. -extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString$CallExtension - on - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - > { - objc.NSArray? call( - ffi.Pointer arg0, - NSSpellServer arg1, - NSRange arg2, - objc.NSString arg3, - objc.NSString arg4, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - arg2, - _$$ref$2.pointer, - _$$ref$3.pointer, - ) - .address == - 0 - ? null - : objc.NSArray.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - arg2, - _$$ref$2.pointer, - _$$ref$3.pointer, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. -extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString$CallExtension - on - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > { - objc.NSArray? call( - ffi.Pointer arg0, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ) - .address == - 0 - ? null - : objc.NSArray.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, ffi.UnsignedLong, ffi.Uint64, objc.NSDictionary?, NSOrthography?, ffi.Pointer)>`. -abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - NSTextCheckingTypes arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - > - fromFunction( - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) { - final _$$ref = fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3, - arg4, - arg5.address == 0 - ? null - : objc.NSDictionary.fromPointer( - arg5, - retain: true, - release: true, - ), - arg6.address == 0 - ? null - : NSOrthography.fromPointer(arg6, retain: true, release: true), - arg7, - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - NSTextCheckingTypes arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSTextCheckingTypes, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSTextCheckingTypes, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, ffi.UnsignedLong, ffi.Uint64, objc.NSDictionary?, NSOrthography?, ffi.Pointer)>`. -extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger$CallExtension - on - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - > { - objc.NSArray? call( - ffi.Pointer arg0, - NSSpellServer arg1, - objc.NSString arg2, - DartNSUInteger arg3, - DartNSTextCheckingTypes arg4, - objc.NSDictionary? arg5, - NSOrthography? arg6, - ffi.Pointer arg7, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg5?.ref; - final _$$ref$4 = arg6?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - NSTextCheckingTypes arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - arg3, - arg4, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - arg7, - ) - .address == - 0 - ? null - : objc.NSArray.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - NSTextCheckingTypes arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - arg3, - arg4, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - arg7, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSString, ffi.Pointer)>`. -abstract final class ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - > - fromFunction( - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - PDEPlugInCallbackProtocol, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - objc.NSString.fromPointer(arg1, retain: true, release: true), - PDEPlugInCallbackProtocol.fromPointer( - arg2, - retain: true, - release: true, - ), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSString, ffi.Pointer)>`. -extension ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol$CallExtension - on - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - > { - objc.NSArray? call( - ffi.Pointer arg0, - objc.NSString arg1, - PDEPlugInCallbackProtocol arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) - .address == - 0 - ? null - : objc.NSArray.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSCachedURLResponse)>`. -abstract final class ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - > - fromFunction( - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSCachedURLResponse.fromPointer(arg2, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSCachedURLResponse)>`. -extension ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse$CallExtension - on - objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - > { - NSCachedURLResponse? call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSCachedURLResponse arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) - .address == - 0 - ? null - : NSCachedURLResponse.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_NSComparisonResult_objcObjCObjectImpl_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - objc.NSComparisonResult Function(objc.ObjCObject, objc.ObjCObject) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - objc.ObjCObject(arg0, retain: true, release: true), - objc.ObjCObject(arg1, retain: true, release: true), - ).value; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as int Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_NSComparisonResult_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - objc.NSComparisonResult call(objc.ObjCObject arg0, objc.ObjCObject arg1) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - return objc.NSComparisonResult.fromValue( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer), - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSArray)>`. -abstract final class ObjCBlock_NSData_ffiVoid_NSArray { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSData Function(ffi.Pointer, objc.NSArray) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock, objc.NSArray)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSData Function(ffi.Pointer, objc.NSArray) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock, objc.NSArray)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSData Function(ffi.Pointer, objc.NSArray) - > - fromFunction( - objc.NSData Function(ffi.Pointer, objc.NSArray) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock, objc.NSArray)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - final _$$ref = fn( - arg0, - objc.NSArray.fromPointer(arg1, retain: true, release: true), - ).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSArray)>`. -extension ObjCBlock_NSData_ffiVoid_NSArray$CallExtension - on - objc.ObjCBlock< - objc.NSData Function(ffi.Pointer, objc.NSArray) - > { - objc.NSData call(ffi.Pointer arg0, objc.NSArray arg1) { - final _$$ref$1 = arg1.ref; - return objc.NSData.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. -abstract final class ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromFunction( - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. -extension ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString$CallExtension - on - objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > { - objc.NSData? call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ) - .address == - 0 - ? null - : objc.NSData.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, NSUInteger, NSDecimalNumber, NSDecimalNumber?)>`. -abstract final class ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - > - fromFunction( - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSCalculationError, - NSDecimalNumber, - NSDecimalNumber?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - final _$$ref = fn( - arg0, - arg1, - NSCalculationError.fromValue(arg2), - NSDecimalNumber.fromPointer(arg3, retain: true, release: true), - arg4.address == 0 - ? null - : NSDecimalNumber.fromPointer( - arg4, - retain: true, - release: true, - ), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, NSUInteger, NSDecimalNumber, NSDecimalNumber?)>`. -extension ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber$CallExtension - on - objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - > { - NSDecimalNumber? call( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSCalculationError arg2, - NSDecimalNumber arg3, - NSDecimalNumber? arg4, - ) { - final _$$ref$1 = arg3.ref; - final _$$ref$2 = arg4?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - arg1, - arg2.value, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ) - .address == - 0 - ? null - : NSDecimalNumber.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - arg1, - arg2.value, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSDictionary_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSDictionary? Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0)?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSDictionary_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSDictionary? call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0) - .address == - 0 - ? null - : objc.NSDictionary.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLRequest)>`. -abstract final class ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - > - fromFunction( - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSURLRequest.fromPointer(arg2, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLRequest)>`. -extension ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest$CallExtension - on - objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - > { - objc.NSInputStream? call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSURLRequest arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) - .address == - 0 - ? null - : objc.NSInputStream.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSOperationQueue_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - NSOperationQueue Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSOperationQueue_ffiVoid$CallExtension - on objc.ObjCBlock)> { - NSOperationQueue call(ffi.Pointer arg0) { - return NSOperationQueue.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock? Function(objc.NSProgress)>`. -abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - > - fromFunction( - DartNSProgressUnpublishingHandler? Function(objc.NSProgress) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - final _$$ref = fn( - objc.NSProgress.fromPointer(arg0, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static NSProgressUnpublishingHandler _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0, - ) - > - >() - .asFunction< - NSProgressUnpublishingHandler Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static NSProgressUnpublishingHandler _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as NSProgressUnpublishingHandler Function( - ffi.Pointer, - ))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock? Function(objc.NSProgress)>`. -extension ObjCBlock_NSProgressUnpublishingHandler_NSProgress$CallExtension - on - objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - > { - DartNSProgressUnpublishingHandler? call(objc.NSProgress arg0) { - final _$$ref$1 = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref$1.pointer) - .address == - 0 - ? null - : ObjCBlock_ffiVoid.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref$1.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSProgress_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSProgress Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSProgress_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSProgress call(ffi.Pointer arg0) { - return objc.NSProgress.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString?, ffi.Pointer>)>`. -abstract final class ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - > - fromFunction( - NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) { - return fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static NSRange _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_fnPtrTrampoline) - .cast(); - static NSRange _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) => - (objc.getBlockClosure(block) - as NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString?, ffi.Pointer>)>`. -extension ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray$CallExtension - on - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - > { - NSRange call( - ffi.Pointer arg0, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString? arg3, - ffi.Pointer> arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - arg4, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString, ffi.Pointer, ffi.Bool)>`. -abstract final class ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Bool arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - > - fromFunction( - NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - bool arg5, - ) { - return fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4, - arg5, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static NSRange _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - bool arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Bool arg5, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_fnPtrTrampoline) - .cast(); - static NSRange _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - bool arg5, - ) => - (objc.getBlockClosure(block) - as NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString, ffi.Pointer, ffi.Bool)>`. -extension ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool$CallExtension - on - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - > { - NSRange call( - ffi.Pointer arg0, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ffi.Pointer arg4, - bool arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Bool arg5, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - arg4, - arg5, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSRoundingMode_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - NSRoundingMode Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0).value; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSRoundingMode_ffiVoid$CallExtension - on objc.ObjCBlock)> { - NSRoundingMode call(ffi.Pointer arg0) { - return NSRoundingMode.fromValue( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0), - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSSet_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSSet Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSSet_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSSet call(ffi.Pointer arg0) { - return objc.NSSet.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSString_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSString Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSString_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSString call(ffi.Pointer arg0) { - return objc.NSString.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLRequest, NSURLResponse?)>`. -abstract final class ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - > - fromFunction( - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSURLRequest.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : NSURLResponse.fromPointer(arg3, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLRequest, NSURLResponse?)>`. -extension ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse$CallExtension - on - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - > { - NSURLRequest? call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSURLRequest arg2, - NSURLResponse? arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ) - .address == - 0 - ? null - : NSURLRequest.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLRequest, NSURLResponse?)>`. -abstract final class ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - > - fromFunction( - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - NSURLRequest.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : NSURLResponse.fromPointer(arg3, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLRequest, NSURLResponse?)>`. -extension ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse$CallExtension - on - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - > { - NSURLRequest? call( - ffi.Pointer arg0, - NSURLDownload arg1, - NSURLRequest arg2, - NSURLResponse? arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ) - .address == - 0 - ? null - : NSURLRequest.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSURL_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSURL? Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0)?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSURL_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSURL? call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0) - .address == - 0 - ? null - : objc.NSURL.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSView_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - NSView? Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0)?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSView_ffiVoid$CallExtension - on objc.ObjCBlock)> { - NSView? call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0) - .address == - 0 - ? null - : NSView.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_PMPageFormat_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - PMPageFormat Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static PMPageFormat _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - PMPageFormat Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static PMPageFormat _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as PMPageFormat Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - PMPageFormat Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_PMPageFormat_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - PMPageFormat call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - PMPageFormat Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - PMPageFormat Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_PMPrintSession_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - PMPrintSession Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static PMPrintSession _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - PMPrintSession Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static PMPrintSession _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as PMPrintSession Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - PMPrintSession Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_PMPrintSession_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - PMPrintSession call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - PMPrintSession Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - PMPrintSession Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_PMPrintSettings_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - PMPrintSettings Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static PMPrintSettings _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - PMPrintSettings Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static PMPrintSettings _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as PMPrintSettings Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - PMPrintSettings Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_PMPrintSettings_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - PMPrintSettings call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - PMPrintSettings Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - PMPrintSettings Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_PMPrinter_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - PMPrinter Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static PMPrinter _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - PMPrinter Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static PMPrinter _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as PMPrinter Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - PMPrinter Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_PMPrinter_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - PMPrinter call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - PMPrinter Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - PMPrinter Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Bool)>`. -abstract final class ObjCBlock_bool_CFArrayRef_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, ffi.Bool)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, ffi.Bool)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, ffi.Bool)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => objc.ObjCBlock, ffi.Bool)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Bool)> - fromFunction( - bool Function(CFArrayRef, bool) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, ffi.Bool)>( - objc.newClosureBlock(_closureCallable, (CFArrayRef arg0, bool arg1) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - bool arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - CFArrayRef, - ffi.Bool, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - bool arg1, - ) => (objc.getBlockClosure(block) as bool Function(CFArrayRef, bool))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - CFArrayRef, - ffi.Bool, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Bool)>`. -extension ObjCBlock_bool_CFArrayRef_bool$CallExtension - on objc.ObjCBlock, ffi.Bool)> { - bool call(CFArrayRef arg0, bool arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - CFArrayRef arg0, - ffi.Bool arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, CFArrayRef, bool) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_CFStringRef_CGImageMetadataTagRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(CFStringRef arg0, CGImageMetadataTagRef arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - bool Function(CFStringRef, CGImageMetadataTagRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - CFStringRef arg0, - CGImageMetadataTagRef arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - CFStringRef arg0, - CGImageMetadataTagRef arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(CFStringRef arg0, CGImageMetadataTagRef arg1) - > - >() - .asFunction()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - CFStringRef, - CGImageMetadataTagRef, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - CFStringRef arg0, - CGImageMetadataTagRef arg1, - ) => - (objc.getBlockClosure(block) - as bool Function(CFStringRef, CGImageMetadataTagRef))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - CFStringRef, - CGImageMetadataTagRef, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_CFStringRef_CGImageMetadataTagRef$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call(CFStringRef arg0, CGImageMetadataTagRef arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - CFStringRef arg0, - CGImageMetadataTagRef arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - CFStringRef, - CGImageMetadataTagRef, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_CGContentInfo_CGBitmapParameters { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - bool Function(ffi.Pointer, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_CGContentInfo_CGBitmapParameters$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_bool_CTFontDescriptorMatchingState_CFDictionaryRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Uint32 arg0, CFDictionaryRef arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - > - fromFunction( - bool Function(CTFontDescriptorMatchingState, CFDictionaryRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - CFDictionaryRef arg1, - ) { - return fn(CTFontDescriptorMatchingState.fromValue(arg0), arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - CFDictionaryRef arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Uint32 arg0, CFDictionaryRef arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Uint32, - CFDictionaryRef, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - int arg0, - CFDictionaryRef arg1, - ) => (objc.getBlockClosure(block) as bool Function(int, CFDictionaryRef))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Uint32, - CFDictionaryRef, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_bool_CTFontDescriptorMatchingState_CFDictionaryRef$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - > { - bool call(CTFontDescriptorMatchingState arg0, CFDictionaryRef arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Uint32 arg0, - CFDictionaryRef arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, int, CFDictionaryRef) - >()(ref.pointer, arg0.value, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ObjectType_ObjectType { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - bool Function(objc.ObjCObject, objc.ObjCObject) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - objc.ObjCObject(arg0, retain: true, release: true), - objc.ObjCObject(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ObjectType_ObjectType$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call(objc.ObjCObject arg0, objc.ObjCObject arg1) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Size)>`. -abstract final class ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - dispatch_data_t arg0, - ffi.Size arg1, - ffi.Pointer arg2, - ffi.Size arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) - > - fromFunction( - bool Function(Dartdispatch_data_t, int, ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >( - objc.newClosureBlock(_closureCallable, ( - dispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - arg1, - arg2, - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - dispatch_data_t arg0, - ffi.Size arg1, - ffi.Pointer arg2, - ffi.Size arg3, - ) - > - >() - .asFunction< - bool Function(dispatch_data_t, int, ffi.Pointer, int) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - dispatch_data_t, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ) => - (objc.getBlockClosure(block) - as bool Function(dispatch_data_t, int, ffi.Pointer, int))( - arg0, - arg1, - arg2, - arg3, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - dispatch_data_t, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Size)>`. -extension ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - > { - bool call( - Dartdispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - dispatch_data_t arg0, - ffi.Size arg1, - ffi.Pointer arg2, - ffi.Size arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - dispatch_data_t, - int, - ffi.Pointer, - int, - ) - >()(ref.pointer, _$$ref.pointer, arg1, arg2, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ffiChar_CGPDFObjectRef_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - bool Function(ffi.Pointer, CGPDFObjectRef, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - CGPDFObjectRef, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - CGPDFObjectRef, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - CGPDFObjectRef, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - CGPDFObjectRef, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_bool_ffiChar_CGPDFObjectRef_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call( - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - CGPDFObjectRef, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSObject)>`. -abstract final class ObjCBlock_bool_ffiChar_xpcobjectt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, objc.NSObject)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, objc.NSObject)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, objc.NSObject)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, xpc_object_t arg1) - > - > - ptr, - ) => objc.ObjCBlock, objc.NSObject)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSObject)> - fromFunction( - bool Function(ffi.Pointer, Dartxpc_object_t) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, objc.NSObject)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - xpc_object_t arg1, - ) { - return fn( - arg0, - objc.NSObject.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - xpc_object_t arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, xpc_object_t arg1) - > - >() - .asFunction, xpc_object_t)>()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - xpc_object_t, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - xpc_object_t arg1, - ) => - (objc.getBlockClosure(block) - as bool Function(ffi.Pointer, xpc_object_t))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - xpc_object_t, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSObject)>`. -extension ObjCBlock_bool_ffiChar_xpcobjectt$CallExtension - on objc.ObjCBlock, objc.NSObject)> { - bool call(ffi.Pointer arg0, Dartxpc_object_t arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - xpc_object_t arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - xpc_object_t, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ffiSize_CGPDFObjectRef_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Size arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromFunction( - bool Function(int, CGPDFObjectRef, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Size arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function(int, CGPDFObjectRef, ffi.Pointer) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Size, - CGPDFObjectRef, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - int arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function(int, CGPDFObjectRef, ffi.Pointer))( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Size, - CGPDFObjectRef, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ffiSize_CGPDFObjectRef_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call(int arg0, CGPDFObjectRef arg1, ffi.Pointer arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Size arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - int, - CGPDFObjectRef, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_bool_ffiSize_xpcobjectt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - bool Function(int, Dartxpc_object_t) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0, xpc_object_t arg1) { - return fn( - arg0, - objc.NSObject.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - xpc_object_t arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Size, - xpc_object_t, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - int arg0, - xpc_object_t arg1, - ) => (objc.getBlockClosure(block) as bool Function(int, xpc_object_t))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Size, - xpc_object_t, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_bool_ffiSize_xpcobjectt$CallExtension - on objc.ObjCBlock { - bool call(int arg0, Dartxpc_object_t arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Size arg0, - xpc_object_t arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, int, xpc_object_t) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_bool_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - bool Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast arg0)>>() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => (objc.getBlockClosure(block) as bool Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_bool_ffiVoid$CallExtension - on objc.ObjCBlock)> { - bool call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSArray, objc.NSData)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSArray_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - > - fromFunction( - bool Function(ffi.Pointer, objc.NSArray, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSArray.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSArray, objc.NSData)>`. -extension ObjCBlock_bool_ffiVoid_NSArray_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - > { - bool call(ffi.Pointer arg0, objc.NSArray arg1, objc.NSData arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSConnection, NSConnection)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSConnection_NSConnection { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - > - fromFunction( - bool Function(ffi.Pointer, NSConnection, NSConnection) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSConnection.fromPointer(arg1, retain: true, release: true), - NSConnection.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSConnection, NSConnection)>`. -extension ObjCBlock_bool_ffiVoid_NSConnection_NSConnection$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - > { - bool call(ffi.Pointer arg0, NSConnection arg1, NSConnection arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSConnection, NSDistantObjectRequest)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - > - fromFunction( - bool Function(ffi.Pointer, NSConnection, NSDistantObjectRequest) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSConnection.fromPointer(arg1, retain: true, release: true), - NSDistantObjectRequest.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSConnection, NSDistantObjectRequest)>`. -extension ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - > { - bool call( - ffi.Pointer arg0, - NSConnection arg1, - NSDistantObjectRequest arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer>)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer>, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer>)>`. -extension ObjCBlock_bool_ffiVoid_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - > { - bool call( - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - objc.NSString.fromPointer(arg4, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - objc.NSString arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - objc.NSURL.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - objc.NSURL.fromPointer(arg3, retain: true, release: true), - objc.NSURL.fromPointer(arg4, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - objc.NSURL arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - > - fromFunction( - bool Function(ffi.Pointer, NSFileManager, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSString, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSString arg2, - objc.NSString arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSURL)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - > - fromFunction( - bool Function(ffi.Pointer, NSFileManager, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSURL.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSURL)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - > { - bool call(ffi.Pointer arg0, NSFileManager arg1, objc.NSURL arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSURL, objc.NSURL)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - > - fromFunction( - bool Function(ffi.Pointer, NSFileManager, objc.NSURL, objc.NSURL) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSURL.fromPointer(arg2, retain: true, release: true), - objc.NSURL.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSURL, objc.NSURL)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSURL arg2, - objc.NSURL arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromFunction( - bool Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSString.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - > { - bool call( - ffi.Pointer arg0, - objc.NSString arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSURLConnection { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLConnection) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock, NSURLConnection)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLConnection) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock, NSURLConnection)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLConnection) - > - fromFunction( - bool Function(ffi.Pointer, NSURLConnection) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock, NSURLConnection)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection)>`. -extension ObjCBlock_bool_ffiVoid_NSURLConnection$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLConnection) - > { - bool call(ffi.Pointer arg0, NSURLConnection arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLProtectionSpace)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - > - fromFunction( - bool Function(ffi.Pointer, NSURLConnection, NSURLProtectionSpace) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSURLProtectionSpace.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLProtectionSpace)>`. -extension ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - > { - bool call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSURLProtectionSpace arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSURLDownload)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSURLDownload)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSURLDownload)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSURLDownload)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLDownload)> - fromFunction( - bool Function(ffi.Pointer, NSURLDownload) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSURLDownload)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload)>`. -extension ObjCBlock_bool_ffiVoid_NSURLDownload$CallExtension - on objc.ObjCBlock, NSURLDownload)> { - bool call(ffi.Pointer arg0, NSURLDownload arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromFunction( - bool Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSURLDownload_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - > { - bool call( - ffi.Pointer arg0, - NSURLDownload arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLProtectionSpace)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - > - fromFunction( - bool Function(ffi.Pointer, NSURLDownload, NSURLProtectionSpace) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - NSURLProtectionSpace.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLProtectionSpace)>`. -extension ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - > { - bool call( - ffi.Pointer arg0, - NSURLDownload arg1, - NSURLProtectionSpace arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSUserNotificationCenter.fromPointer( - arg1, - retain: true, - release: true, - ), - NSUserNotification.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. -extension ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > { - bool call( - ffi.Pointer arg0, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXPCListener, NSXPCConnection)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - > - fromFunction( - bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSXPCListener.fromPointer(arg1, retain: true, release: true), - NSXPCConnection.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXPCListener, NSXPCConnection)>`. -extension ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSXPCListener, - NSXPCConnection, - ) - > { - bool call( - ffi.Pointer arg0, - NSXPCListener arg1, - NSXPCConnection arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiInt_ffiUnsignedInt_cupsdestt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.UnsignedInt arg0, ffi.Pointer arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - > - fromFunction( - int Function(int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int Function(ffi.UnsignedInt arg0, ffi.Pointer arg1) - > - >() - .asFunction)>()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as int Function(int, ffi.Pointer))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiInt_ffiUnsignedInt_cupsdestt$CallExtension - on - objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - > { - int call(int arg0, ffi.Pointer arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer block, - ffi.UnsignedInt arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiInt_ffiVoid_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer arg0, ffi.Pointer arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - int Function(ffi.Pointer, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as int Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiInt_ffiVoid_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > { - int call(ffi.Pointer arg0, ffi.Pointer arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiShort_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - int Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Short Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Short Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiShort_ffiVoid$CallExtension - on objc.ObjCBlock)> { - int call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, () { - return fn(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function() fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort( - _1uu024u_wrapListenerBlock_h9i570, - (ffi.Pointer rawArgs) => fn(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function() fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort( - _1uu024u_wrapBlockingBlock_h9i570, - (ffi.Pointer rawArgs) => fn(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline(ffi.Pointer block) => block - .ref - .target - .cast>() - .asFunction()(); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline(ffi.Pointer block) => - (objc.getBlockClosure(block) as void Function())(); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid$CallExtension - on objc.ObjCBlock { - void call() { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block) - > - >() - .asFunction)>()( - ref.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_Boolean_UInt64_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(Boolean arg0, UInt64 arg1, CFErrorRef arg2) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > - fromFunction( - void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - int arg1, - CFErrorRef arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > - listener( - void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_29zf79, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_zgaes8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > - blocking( - void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_29zf79, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_zgaes8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - int arg1, - CFErrorRef arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(Boolean arg0, UInt64 arg1, CFErrorRef arg2) - > - >() - .asFunction()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - Boolean, - UInt64, - CFErrorRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - int arg1, - CFErrorRef arg2, - ) => (objc.getBlockClosure(block) as void Function(int, int, CFErrorRef))( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - Boolean, - UInt64, - CFErrorRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_Boolean_UInt64_CFErrorRef$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > { - void call(DartBoolean arg0, DartUInt64 arg1, CFErrorRef arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - Boolean arg0, - UInt64 arg1, - CFErrorRef arg2, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, int, int, CFErrorRef) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_CFArrayRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - void Function(CFArrayRef) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (CFArrayRef arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> listener( - void Function(CFArrayRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_17efpu7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vgtcpl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> blocking( - void Function(CFArrayRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_17efpu7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vgtcpl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, CFArrayRef) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - ) => (objc.getBlockClosure(block) as void Function(CFArrayRef))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, CFArrayRef) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_CFArrayRef$CallExtension - on objc.ObjCBlock)> { - void call(CFArrayRef arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFArrayRef arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, CFArrayRef) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__CFError>)>`. -abstract final class ObjCBlock_ffiVoid_CFArrayRef_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - fromFunction( - void Function(CFArrayRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - >( - objc.newClosureBlock(_closureCallable, ( - CFArrayRef arg0, - CFErrorRef arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - listener( - void Function(CFArrayRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1nn5emo, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17mefw7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - blocking( - void Function(CFArrayRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1nn5emo, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17mefw7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - CFErrorRef arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFArrayRef, - CFErrorRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - CFErrorRef arg1, - ) => (objc.getBlockClosure(block) as void Function(CFArrayRef, CFErrorRef))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFArrayRef, - CFErrorRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer<__CFError>)>`. -extension ObjCBlock_ffiVoid_CFArrayRef_CFErrorRef$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > { - void call(CFArrayRef arg0, CFErrorRef arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFArrayRef arg0, - CFErrorRef arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, CFArrayRef, CFErrorRef) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - void Function(CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (CFErrorRef arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> listener( - void Function(CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1v2rdu1, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13g89k6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> blocking( - void Function(CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1v2rdu1, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13g89k6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFErrorRef arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, CFErrorRef) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFErrorRef arg0, - ) => (objc.getBlockClosure(block) as void Function(CFErrorRef))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, CFErrorRef) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_CFErrorRef$CallExtension - on objc.ObjCBlock)> { - void call(CFErrorRef arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFErrorRef arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, CFErrorRef) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_CFErrorRef_CGContentInfo_CGBitmapParameters { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - void Function( - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > - listener( - void Function( - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_6s6vc3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hs0ws6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > - blocking( - void Function( - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6s6vc3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hs0ws6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_CFErrorRef_CGContentInfo_CGBitmapParameters$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > { - void call( - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, CFOptionFlags)>`. -abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopObserverRef arg0, CFOptionFlags arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - fromFunction( - void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - >( - objc.newClosureBlock(_closureCallable, ( - CFRunLoopObserverRef arg0, - int arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - listener( - void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_igu5g9, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_14lm7fk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - blocking( - void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_igu5g9, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_14lm7fk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFRunLoopObserverRef arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopObserverRef arg0, CFOptionFlags arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFRunLoopObserverRef, - CFOptionFlags, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFRunLoopObserverRef arg0, - int arg1, - ) => - (objc.getBlockClosure(block) as void Function(CFRunLoopObserverRef, int))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFRunLoopObserverRef, - CFOptionFlags, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, CFOptionFlags)>`. -extension ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > { - void call(CFRunLoopObserverRef arg0, DartCFOptionFlags arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFRunLoopObserverRef arg0, - CFOptionFlags arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - CFRunLoopObserverRef, - int, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_CFRunLoopTimerRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer> - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - void Function(CFRunLoopTimerRef) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (CFRunLoopTimerRef arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - listener( - void Function(CFRunLoopTimerRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_kuxxg7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_n2dxuu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> - blocking( - void Function(CFRunLoopTimerRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_kuxxg7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_n2dxuu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFRunLoopTimerRef arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFRunLoopTimerRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFRunLoopTimerRef arg0, - ) => (objc.getBlockClosure(block) as void Function(CFRunLoopTimerRef))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFRunLoopTimerRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_CFRunLoopTimerRef$CallExtension - on objc.ObjCBlock)> { - void call(CFRunLoopTimerRef arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFRunLoopTimerRef arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, CFRunLoopTimerRef) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__CFError>, ffi.UnsignedChar)>`. -abstract final class ObjCBlock_ffiVoid_CFTypeRef_CFErrorRef_Boolean { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFTypeRef arg0, CFErrorRef arg1, Boolean arg2) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > - fromFunction( - void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >( - objc.newClosureBlock(_closureCallable, ( - CFTypeRef arg0, - CFErrorRef arg1, - int arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > - listener( - void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_d96no7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1sucxsg.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > - blocking( - void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_d96no7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1sucxsg.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFTypeRef arg0, - CFErrorRef arg1, - int arg2, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(CFTypeRef arg0, CFErrorRef arg1, Boolean arg2) - > - >() - .asFunction()( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFTypeRef, - CFErrorRef, - Boolean, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFTypeRef arg0, - CFErrorRef arg1, - int arg2, - ) => - (objc.getBlockClosure(block) - as void Function(CFTypeRef, CFErrorRef, int))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFTypeRef, - CFErrorRef, - Boolean, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer<__CFError>, ffi.UnsignedChar)>`. -extension ObjCBlock_ffiVoid_CFTypeRef_CFErrorRef_Boolean$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > { - void call(CFTypeRef arg0, CFErrorRef arg1, DartBoolean arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFTypeRef arg0, - CFErrorRef arg1, - Boolean arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - CFTypeRef, - CFErrorRef, - int, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_CGDisplayStreamFrameStatus_Uint64_IOSurfaceRef_CGDisplayStreamUpdateRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int32 arg0, - ffi.Uint64 arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > - fromFunction( - void Function( - CGDisplayStreamFrameStatus, - int, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - int arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) { - return fn( - CGDisplayStreamFrameStatus.fromValue(arg0), - arg1, - arg2, - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > - listener( - void Function( - CGDisplayStreamFrameStatus, - int, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1xaf9kl, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1lr5l4t.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > - blocking( - void Function( - CGDisplayStreamFrameStatus, - int, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1xaf9kl, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1lr5l4t.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - int arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int32 arg0, - ffi.Uint64 arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) - > - >() - .asFunction< - void Function(int, int, IOSurfaceRef, CGDisplayStreamUpdateRef) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int32, - ffi.Uint64, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - int arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) => - (objc.getBlockClosure(block) - as void Function(int, int, IOSurfaceRef, CGDisplayStreamUpdateRef))( - arg0, - arg1, - arg2, - arg3, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int32, - ffi.Uint64, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_CGDisplayStreamFrameStatus_Uint64_IOSurfaceRef_CGDisplayStreamUpdateRef$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > { - void call( - CGDisplayStreamFrameStatus arg0, - int arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Int32 arg0, - ffi.Uint64 arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - int, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - >()(ref.pointer, arg0.value, arg1, arg2, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_CGPathElement { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_12exqd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_dmvhfp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_12exqd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_dmvhfp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_CGPathElement$CallExtension - on objc.ObjCBlock)> { - void call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - void Function( - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - listener( - void Function( - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_2ik0db, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v1zq3a.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - blocking( - void Function( - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_2ik0db, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v1zq3a.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - void call( - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSAppleEventDescriptor_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > - fromFunction( - void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : NSAppleEventDescriptor.fromPointer( - arg0, - retain: true, - release: true, - ), - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > - listener( - void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1gmgda9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > - blocking( - void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1gmgda9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSAppleEventDescriptor_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > { - void call(NSAppleEventDescriptor? arg0, objc.NSError? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSArray { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSArray?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSArray.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(objc.NSArray?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1p7ak3v.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(objc.NSArray?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1p7ak3v.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSArray$CallExtension - on objc.ObjCBlock { - void call(objc.NSArray? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSBackgroundActivityResult { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSBackgroundActivityResult) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0) { - return fn(NSBackgroundActivityResult.fromValue(arg0)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSBackgroundActivityResult) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_l4qveu, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_ldsont.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSBackgroundActivityResult) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_l4qveu, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_ldsont.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ) => (objc.getBlockClosure(block) as void Function(int))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSBackgroundActivityResult$CallExtension - on objc.ObjCBlock { - void call(NSBackgroundActivityResult arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSInteger arg0, - ) - > - >() - .asFunction, int)>()( - ref.pointer, - arg0.value, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSCachedURLResponse?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : NSCachedURLResponse.fromPointer( - arg0, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSCachedURLResponse?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_wtbfzi.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSCachedURLResponse?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_wtbfzi.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSCachedURLResponse$CallExtension - on objc.ObjCBlock { - void call(NSCachedURLResponse? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSData_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSData.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x5cg0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x5cg0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension - on objc.ObjCBlock { - void call(objc.NSData? arg0, objc.NSError? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - fromFunction( - void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSData.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : NSURLResponse.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - listener( - void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_13ytbkt, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1mv87bk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - blocking( - void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_13ytbkt, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1mv87bk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > { - void call(objc.NSData? arg0, NSURLResponse? arg1, objc.NSError? arg2) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - final _$$ref$2 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSDictionary?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSDictionary.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(objc.NSDictionary?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_6tydoo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(objc.NSDictionary?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_6tydoo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSDictionary$CallExtension - on objc.ObjCBlock { - void call(objc.NSDictionary? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSDictionary, - objc.NSRange, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSDictionary, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - fromFunction( - void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSDictionary, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) { - return fn( - objc.NSDictionary.fromPointer(arg0, retain: true, release: true), - arg1, - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - listener( - void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1agrddk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v8in3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - blocking( - void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1agrddk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v8in3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSDictionary_NSRange_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.NSDictionary, - objc.NSRange, - ffi.Pointer, - ) - > { - void call(objc.NSDictionary arg0, NSRange arg1, ffi.Pointer arg2) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSError.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_117e0ww.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_117e0ww.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSError$CallExtension - on objc.ObjCBlock { - void call(objc.NSError? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSError$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn(objc.NSError.fromPointer(arg0, retain: true, release: true)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_b9s2kt.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_b9s2kt.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSError$1$CallExtension - on objc.ObjCBlock { - void call(objc.NSError arg0) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSFileHandle { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSFileHandle) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn(NSFileHandle.fromPointer(arg0, retain: true, release: true)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSFileHandle) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v5xz31.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSFileHandle) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v5xz31.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSFileHandle$CallExtension - on objc.ObjCBlock { - void call(NSFileHandle arg0) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSInputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSInputStream?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSInputStream.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(objc.NSInputStream?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ura76.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(objc.NSInputStream?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ura76.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSInputStream$CallExtension - on objc.ObjCBlock { - void call(objc.NSInputStream? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>`. -abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > - fromFunction( - void Function( - DartNSItemProviderCompletionHandler, - objc.ObjCObject, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >( - objc.newClosureBlock(_closureCallable, ( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( - arg0, - retain: true, - release: true, - ), - objc.ObjCObject(arg1, retain: true, release: true), - objc.NSDictionary.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > - listener( - void Function( - DartNSItemProviderCompletionHandler, - objc.ObjCObject, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_90wr7u, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_6yk1dr.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > - blocking( - void Function( - DartNSItemProviderCompletionHandler, - objc.ObjCObject, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_90wr7u, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_6yk1dr.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>`. -extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > { - void call( - DartNSItemProviderCompletionHandler arg0, - objc.ObjCObject arg1, - objc.NSDictionary arg2, - ) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSObject { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(Dartsec_certificate_t) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (sec_certificate_t arg0) { - return fn(objc.NSObject.fromPointer(arg0, retain: true, release: true)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(Dartsec_certificate_t) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1q305zu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(Dartsec_certificate_t) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1q305zu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - sec_certificate_t arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_certificate_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - sec_certificate_t arg0, - ) => (objc.getBlockClosure(block) as void Function(sec_certificate_t))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_certificate_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSObject$CallExtension - on objc.ObjCBlock { - void call(Dartsec_certificate_t arg0) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_certificate_t arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, sec_certificate_t) - >()(ref.pointer, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSObject$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(Dartdispatch_data_t?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0) { - return fn( - arg0.address == 0 - ? null - : objc.NSObject.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(Dartdispatch_data_t?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n468bj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(Dartdispatch_data_t?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n468bj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, dispatch_data_t) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, dispatch_data_t) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSObject$1$CallExtension - on objc.ObjCBlock { - void call(Dartdispatch_data_t? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - dispatch_data_t arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, dispatch_data_t) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - fromFunction( - void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSString.fromPointer(arg0, retain: true, release: true), - arg1, - arg2, - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - listener( - void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1ua0j4l, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pvrxoh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - blocking( - void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1ua0j4l, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pvrxoh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > { - void call( - objc.NSString? arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSTask { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSTask) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn(NSTask.fromPointer(arg0, retain: true, release: true)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSTask) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_347s5u.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSTask) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_347s5u.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSTask$CallExtension - on objc.ObjCBlock { - void call(NSTask arg0) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) - > - fromFunction( - void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0.address == 0 - ? null - : NSTextCheckingResult.fromPointer( - arg0, - retain: true, - release: true, - ), - arg1, - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) - > - listener( - void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1gdgpbj, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1uc4fg7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) - > - blocking( - void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1gdgpbj, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1uc4fg7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - > { - void call( - NSTextCheckingResult? arg0, - DartNSUInteger arg1, - ffi.Pointer arg2, - ) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLCredential { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : NSURLCredential.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13o2rom.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13o2rom.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLCredential$CallExtension - on objc.ObjCBlock { - void call(NSURLCredential? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : NSURLRequest.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n6ph2.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1d1siln, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n6ph2.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLRequest$CallExtension - on objc.ObjCBlock { - void call(NSURLRequest? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - fromFunction( - void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0.address == 0 - ? null - : NSURLResponse.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSData.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - listener( - void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_13ytbkt, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1oftdow.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - blocking( - void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_13ytbkt, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1oftdow.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > { - void call(NSURLResponse? arg0, objc.NSData? arg1, objc.NSError? arg2) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - final _$$ref$2 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - int arg0, - ffi.Pointer arg1, - ) { - return fn( - NSURLSessionAuthChallengeDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLCredential.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_kjz7zp, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_u65oe8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_kjz7zp, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_u65oe8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - NSInteger arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function(int, ffi.Pointer))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential$CallExtension - on objc.ObjCBlock { - void call(NSURLSessionAuthChallengeDisposition arg0, NSURLCredential? arg1) { - final _$$ref = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSInteger arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0.value, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - int arg0, - ffi.Pointer arg1, - ) { - return fn( - NSURLSessionDelayedRequestDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLRequest.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hf68d1, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_171cldw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hf68d1, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_171cldw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - NSInteger arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function(int, ffi.Pointer))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest$CallExtension - on objc.ObjCBlock { - void call(NSURLSessionDelayedRequestDisposition arg0, NSURLRequest? arg1) { - final _$$ref = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSInteger arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0.value, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSURLSessionResponseDisposition) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0) { - return fn(NSURLSessionResponseDisposition.fromValue(arg0)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURLSessionResponseDisposition) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1jl1qga, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1y7f3jy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURLSessionResponseDisposition) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1jl1qga, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1y7f3jy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ) => (objc.getBlockClosure(block) as void Function(int))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLSessionResponseDisposition$CallExtension - on objc.ObjCBlock { - void call(NSURLSessionResponseDisposition arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSInteger arg0, - ) - > - >() - .asFunction, int)>()( - ref.pointer, - arg0.value, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - fromFunction( - void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSURL.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : NSURLResponse.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - listener( - void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_13ytbkt, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3gru2r.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - blocking( - void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_13ytbkt, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3gru2r.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > { - void call(objc.NSURL? arg0, NSURLResponse? arg1, objc.NSError? arg2) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - final _$$ref$2 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_OSStatus_AuthorizationRights { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(OSStatus arg0, ffi.Pointer arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > - fromFunction( - void Function(DartSInt32, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > - listener( - void Function(DartSInt32, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_bls7f3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1v0sc8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > - blocking( - void Function(DartSInt32, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_bls7f3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1v0sc8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - OSStatus arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - OSStatus, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function(int, ffi.Pointer))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - OSStatus, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_OSStatus_AuthorizationRights$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > { - void call(DartSInt32 arg0, ffi.Pointer arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - OSStatus arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__SecKey>, ffi.Pointer<__CFError>)>`. -abstract final class ObjCBlock_ffiVoid_SecKeyRef_SecKeyRef_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > - fromFunction( - void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - SecKeyRef arg0, - SecKeyRef arg1, - CFErrorRef arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > - listener( - void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1po7bn3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_5zyi3o.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > - blocking( - void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1po7bn3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_5zyi3o.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - SecKeyRef arg0, - SecKeyRef arg1, - CFErrorRef arg2, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) - > - >() - .asFunction()( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecKeyRef, - SecKeyRef, - CFErrorRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - SecKeyRef arg0, - SecKeyRef arg1, - CFErrorRef arg2, - ) => - (objc.getBlockClosure(block) - as void Function(SecKeyRef, SecKeyRef, CFErrorRef))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecKeyRef, - SecKeyRef, - CFErrorRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer<__SecKey>, ffi.Pointer<__CFError>)>`. -extension ObjCBlock_ffiVoid_SecKeyRef_SecKeyRef_CFErrorRef$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > { - void call(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - SecKeyRef arg0, - SecKeyRef arg1, - CFErrorRef arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - SecKeyRef, - SecKeyRef, - CFErrorRef, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Uint32)>`. -abstract final class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, ffi.Uint32)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, ffi.Uint32)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, ffi.Uint32)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => objc.ObjCBlock, ffi.Uint32)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Uint32)> - fromFunction( - void Function(SecTrustRef, SecTrustResultType) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, ffi.Uint32)>( - objc.newClosureBlock(_closureCallable, (SecTrustRef arg0, int arg1) { - return fn(arg0, SecTrustResultType.fromValue(arg1)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Uint32)> - listener( - void Function(SecTrustRef, SecTrustResultType) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_13ecogf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12rv5aa.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, ffi.Uint32)> - blocking( - void Function(SecTrustRef, SecTrustResultType) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_13ecogf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12rv5aa.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecTrustRef, - ffi.Uint32, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - int arg1, - ) => (objc.getBlockClosure(block) as void Function(SecTrustRef, int))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecTrustRef, - ffi.Uint32, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Uint32)>`. -extension ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType$CallExtension - on objc.ObjCBlock, ffi.Uint32)> { - void call(SecTrustRef arg0, SecTrustResultType arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - SecTrustRef arg0, - ffi.Uint32 arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, SecTrustRef, int) - >()(ref.pointer, arg0, arg1.value); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)>`. -abstract final class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) - > - fromFunction( - void Function(SecTrustRef, bool, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - SecTrustRef arg0, - bool arg1, - CFErrorRef arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) - > - listener( - void Function(SecTrustRef, bool, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_gz0078, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_j3xbuw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) - > - blocking( - void Function(SecTrustRef, bool, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_gz0078, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_j3xbuw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - bool arg1, - CFErrorRef arg2, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - SecTrustRef arg0, - ffi.Bool arg1, - CFErrorRef arg2, - ) - > - >() - .asFunction()( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecTrustRef, - ffi.Bool, - CFErrorRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - bool arg1, - CFErrorRef arg2, - ) => - (objc.getBlockClosure(block) - as void Function(SecTrustRef, bool, CFErrorRef))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecTrustRef, - ffi.Bool, - CFErrorRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)>`. -extension ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - > { - void call(SecTrustRef arg0, bool arg1, CFErrorRef arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - SecTrustRef arg0, - ffi.Bool arg1, - CFErrorRef arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - SecTrustRef, - bool, - CFErrorRef, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_Uint16 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_q64d1, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_tbof01.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_q64d1, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_tbof01.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Uint16) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ) => (objc.getBlockClosure(block) as void Function(int))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Uint16) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_Uint16$CallExtension - on objc.ObjCBlock { - void call(int arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Uint16 arg0, - ) - > - >() - .asFunction, int)>()( - ref.pointer, - arg0, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(bool) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (bool arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1s4gila, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k4je64.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1s4gila, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k4je64.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - bool arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Bool) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - bool arg0, - ) => (objc.getBlockClosure(block) as void Function(bool))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Bool) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_bool$CallExtension - on objc.ObjCBlock { - void call(bool arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Bool arg0, - ) - > - >() - .asFunction, bool)>()( - ref.pointer, - arg0, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_bool_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Bool arg0, ffi.Pointer arg1) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(bool, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - bool arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(bool, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_6ngya9, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_syyzqk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(bool, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6ngya9, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_syyzqk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - bool arg0, - ffi.Pointer arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Bool arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - bool arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function(bool, ffi.Pointer))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_bool_NSError$CallExtension - on objc.ObjCBlock { - void call(bool arg0, objc.NSError? arg1) { - final _$$ref = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Bool arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - bool, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(bool, Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - bool arg0, - dispatch_data_t arg1, - int arg2, - ) { - return fn( - arg0, - arg1.address == 0 - ? null - : objc.NSObject.fromPointer(arg1, retain: true, release: true), - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(bool, Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_130ym7a, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_uul9n9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(bool, Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_130ym7a, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_uul9n9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - bool arg0, - dispatch_data_t arg1, - int arg2, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Bool arg0, - dispatch_data_t arg1, - ffi.Int arg2, - ) - > - >() - .asFunction()( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Bool, - dispatch_data_t, - ffi.Int, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - bool arg0, - dispatch_data_t arg1, - int arg2, - ) => - (objc.getBlockClosure(block) - as void Function(bool, dispatch_data_t, int))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Bool, - dispatch_data_t, - ffi.Int, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt$CallExtension - on objc.ObjCBlock { - void call(bool arg0, Dartdispatch_data_t? arg1, int arg2) { - final _$$ref = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Bool arg0, - dispatch_data_t arg1, - ffi.Int arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - bool, - dispatch_data_t, - int, - ) - >()(ref.pointer, arg0, _$$ref?.pointer ?? ffi.nullptr, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - dispatch_data_t arg0, - dispatch_data_t arg1, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - objc.NSObject.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_lmnq5k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_lmnq5k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - dispatch_data_t arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1) - > - >() - .asFunction()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - dispatch_data_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - dispatch_data_t arg1, - ) => - (objc.getBlockClosure(block) - as void Function(dispatch_data_t, dispatch_data_t))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - dispatch_data_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat$CallExtension - on objc.ObjCBlock { - void call(Dartdispatch_data_t arg0, Dartdispatch_data_t arg1) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - dispatch_data_t arg0, - dispatch_data_t arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - dispatch_data_t, - dispatch_data_t, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(Dartdispatch_data_t, int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0, int arg1) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - arg1, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(Dartdispatch_data_t, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1gt4vek, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k4eb20.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(Dartdispatch_data_t, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1gt4vek, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k4eb20.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - ffi.Int, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - ffi.Int, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_dispatchdatat_ffiInt$CallExtension - on objc.ObjCBlock { - void call(Dartdispatch_data_t arg0, int arg1) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - dispatch_data_t arg0, - ffi.Int arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, dispatch_data_t, int) - >()(ref.pointer, _$$ref.pointer, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0, int arg1) { - return fn( - arg0.address == 0 - ? null - : objc.NSObject.fromPointer(arg0, retain: true, release: true), - arg1, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1gt4vek, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_11uyayp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1gt4vek, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_11uyayp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - ffi.Int, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - ffi.Int, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1$CallExtension - on objc.ObjCBlock { - void call(Dartdispatch_data_t? arg0, int arg1) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - dispatch_data_t arg0, - ffi.Int arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, dispatch_data_t, int) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Double arg0, - CFIndex arg1, - ffi.Bool arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - fromFunction( - void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - double arg0, - int arg1, - bool arg2, - ffi.Pointer arg3, - ) { - return fn(arg0, arg1, arg2, arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - listener( - void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1lkkdea, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1xkpqmj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - blocking( - void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1lkkdea, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1xkpqmj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - double arg0, - int arg1, - bool arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Double arg0, - CFIndex arg1, - ffi.Bool arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function(double, int, bool, ffi.Pointer) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Double, - CFIndex, - ffi.Bool, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - double arg0, - int arg1, - bool arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function(double, int, bool, ffi.Pointer))( - arg0, - arg1, - arg2, - arg3, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Double, - CFIndex, - ffi.Bool, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Double, - ffi.Long, - ffi.Bool, - ffi.Pointer, - ) - > { - void call( - double arg0, - DartCFIndex arg1, - bool arg2, - ffi.Pointer arg3, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Double arg0, - CFIndex arg1, - ffi.Bool arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - double, - int, - bool, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_ffiInt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1u5s7gl, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1s2j81k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1u5s7gl, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1s2j81k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Int) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ) => (objc.getBlockClosure(block) as void Function(int))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Int) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_ffiInt$CallExtension - on objc.ObjCBlock { - void call(int arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Int arg0, - ) - > - >() - .asFunction, int)>()( - ref.pointer, - arg0, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_ffiSize { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_ec9pb6, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_kqbpyy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ec9pb6, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_kqbpyy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Size) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ) => (objc.getBlockClosure(block) as void Function(int))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Size) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_ffiSize$CallExtension - on objc.ObjCBlock { - void call(int arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Size arg0, - ) - > - >() - .asFunction, int)>()( - ref.pointer, - arg0, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiSize_CGImageRef_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Size arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromFunction( - void Function(int, CGImageRef, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - listener( - void Function(int, CGImageRef, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1krhbbh, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1x2wp90.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - blocking( - void Function(int, CGImageRef, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1krhbbh, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1x2wp90.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Size arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - CGImageRef, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function(int, CGImageRef, ffi.Pointer))( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - CGImageRef, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiSize_CGImageRef_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - > { - void call(int arg0, CGImageRef arg1, ffi.Pointer arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Size arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - CGImageRef, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function(ffi.Pointer)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunction( - CFTypeRef Function(CFTypeRef) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newClosureBlock(_closureCallable, (CFTypeRef arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CFTypeRef _fnPtrTrampoline( - ffi.Pointer block, - CFTypeRef arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function(ffi.Pointer, CFTypeRef) - >(_fnPtrTrampoline) - .cast(); - static CFTypeRef _closureTrampoline( - ffi.Pointer block, - CFTypeRef arg0, - ) => (objc.getBlockClosure(block) as CFTypeRef Function(CFTypeRef))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function(ffi.Pointer, CFTypeRef) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid$CallExtension - on objc.ObjCBlock Function(ffi.Pointer)> { - CFTypeRef call(CFTypeRef arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFTypeRef Function( - ffi.Pointer block, - CFTypeRef arg0, - ) - > - >() - .asFunction< - CFTypeRef Function(ffi.Pointer, CFTypeRef) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_15is1z3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_awd5mj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15is1z3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_awd5mj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast arg0)>>() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => (objc.getBlockClosure(block) as void Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid$1$CallExtension - on objc.ObjCBlock)> { - void call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid$2 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock?)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock?)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock?)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock?)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?)> - fromFunction( - void Function(objc.ObjCBlock?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock?)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : ObjCBlock_ffiVoid.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?)> - listener( - void Function(objc.ObjCBlock?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_wv523k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12cm2y5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock?)> - blocking( - void Function(objc.ObjCBlock?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_wv523k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12cm2y5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?)>`. -extension ObjCBlock_ffiVoid_ffiVoid$2$CallExtension - on objc.ObjCBlock?)> { - void call(objc.ObjCBlock? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock, AVAudioPlayer, objc.NSError?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > - fromFunction( - void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - AVAudioPlayer.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > - listener( - void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3prg4b.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > - blocking( - void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3prg4b.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, AVAudioPlayer, objc.NSError?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > { - void call( - ffi.Pointer arg0, - AVAudioPlayer arg1, - objc.NSError? arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, AVAudioPlayer, ffi.Bool)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Bool arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > - fromFunction( - void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - bool arg2, - ) { - return fn( - arg0, - AVAudioPlayer.fromPointer(arg1, retain: true, release: true), - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > - listener( - void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1e0wztw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1giidhf.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > - blocking( - void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1e0wztw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1giidhf.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - bool arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Bool arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - bool arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, AVAudioPlayer, ffi.Bool)>`. -extension ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > { - void call(ffi.Pointer arg0, AVAudioPlayer arg1, bool arg2) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Bool arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(ref.pointer, arg0, _$$ref.pointer, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, NSCache, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > - fromFunction( - void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSCache.fromPointer(arg1, retain: true, release: true), - objc.ObjCObject(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > - listener( - void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1sy9q99.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > - blocking( - void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1sy9q99.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSCache, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > { - void call(ffi.Pointer arg0, NSCache arg1, objc.ObjCObject arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSExtensionContext)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > - fromFunction( - void Function(ffi.Pointer, NSExtensionContext) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSExtensionContext.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > - listener( - void Function(ffi.Pointer, NSExtensionContext) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_truc42.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > - blocking( - void Function(ffi.Pointer, NSExtensionContext) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_truc42.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSExtensionContext)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > { - void call(ffi.Pointer arg0, NSExtensionContext arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileVersion)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSFileVersion { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSFileVersion)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSFileVersion)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSFileVersion)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSFileVersion)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSFileVersion)> - fromFunction( - void Function(ffi.Pointer, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSFileVersion)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSFileVersion.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSFileVersion)> - listener( - void Function(ffi.Pointer, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSFileVersion) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1y4tc38.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSFileVersion)> - blocking( - void Function(ffi.Pointer, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSFileVersion) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1y4tc38.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileVersion)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSFileVersion$CallExtension - on objc.ObjCBlock, NSFileVersion)> { - void call(ffi.Pointer arg0, NSFileVersion arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock, NSKeyedArchiver)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock, NSKeyedArchiver)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > - fromFunction( - void Function(ffi.Pointer, NSKeyedArchiver) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock, NSKeyedArchiver)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > - listener( - void Function(ffi.Pointer, NSKeyedArchiver) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ciefi0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > - blocking( - void Function(ffi.Pointer, NSKeyedArchiver) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ciefi0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSKeyedArchiver)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > { - void call(ffi.Pointer arg0, NSKeyedArchiver arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > - fromFunction( - void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.ObjCObject(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > - listener( - void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1oetg5g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > - blocking( - void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1oetg5g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > { - void call( - ffi.Pointer arg0, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?, ffi.Pointer?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSKeyedArchiver, - objc.ObjCObject?, - objc.ObjCObject?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.ObjCObject(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.ObjCObject(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > - listener( - void Function( - ffi.Pointer, - NSKeyedArchiver, - objc.ObjCObject?, - objc.ObjCObject?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_170i760.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSKeyedArchiver, - objc.ObjCObject?, - objc.ObjCObject?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_170i760.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?, ffi.Pointer?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > { - void call( - ffi.Pointer arg0, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - objc.ObjCObject? arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2?.ref; - final _$$ref$2 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSKeyedUnarchiver)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > - fromFunction( - void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > - listener( - void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pfw36l.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > - blocking( - void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pfw36l.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSKeyedUnarchiver)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > { - void call(ffi.Pointer arg0, NSKeyedUnarchiver arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSKeyedUnarchiver, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.ObjCObject, - objc.ObjCObject, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), - objc.ObjCObject(arg2, retain: true, release: true), - objc.ObjCObject(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > - listener( - void Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.ObjCObject, - objc.ObjCObject, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1o2efq5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > - blocking( - void Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.ObjCObject, - objc.ObjCObject, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1o2efq5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSKeyedUnarchiver, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > { - void call( - ffi.Pointer arg0, - NSKeyedUnarchiver arg1, - objc.ObjCObject arg2, - objc.ObjCObject arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetService)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSNetService)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSNetService)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSNetService)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSNetService)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSNetService)> - fromFunction( - void Function(ffi.Pointer, NSNetService) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSNetService)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSNetService.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSNetService)> - listener( - void Function(ffi.Pointer, NSNetService) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_u4a6zc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSNetService)> - blocking( - void Function(ffi.Pointer, NSNetService) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_u4a6zc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetService)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetService$CallExtension - on objc.ObjCBlock, NSNetService)> { - void call(ffi.Pointer arg0, NSNetService arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > - fromFunction( - void Function(ffi.Pointer, NSNetServiceBrowser) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > - listener( - void Function(ffi.Pointer, NSNetServiceBrowser) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_19rrqmo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > - blocking( - void Function(ffi.Pointer, NSNetServiceBrowser) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_19rrqmo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > { - void call(ffi.Pointer arg0, NSNetServiceBrowser arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSDictionary)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > - fromFunction( - void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), - objc.NSDictionary.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > - listener( - void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_adcfsd.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > - blocking( - void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_adcfsd.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSDictionary)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > { - void call( - ffi.Pointer arg0, - NSNetServiceBrowser arg1, - objc.NSDictionary arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, NSNetService, ffi.Bool)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) { - return fn( - arg0, - NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), - NSNetService.fromPointer(arg2, retain: true, release: true), - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > - listener( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9km3ll, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x7mqjz.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > - blocking( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9km3ll, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x7mqjz.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, NSNetService, ffi.Bool)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > { - void call( - ffi.Pointer arg0, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSString, ffi.Bool)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) { - return fn( - arg0, - NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > - listener( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9km3ll, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1nn0na.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > - blocking( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9km3ll, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1nn0na.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSString, ffi.Bool)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > { - void call( - ffi.Pointer arg0, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > - fromFunction( - void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSNetService.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > - listener( - void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pj0but.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > - blocking( - void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pj0but.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > { - void call(ffi.Pointer arg0, NSNetService arg1, objc.NSData arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSDictionary)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSDictionary, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSDictionary, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - > - fromFunction( - void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSDictionary, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSNetService.fromPointer(arg1, retain: true, release: true), - objc.NSDictionary.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - > - listener( - void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_16t4ozp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - > - blocking( - void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_16t4ozp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSDictionary)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSDictionary, - ) - > { - void call( - ffi.Pointer arg0, - NSNetService arg1, - objc.NSDictionary arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSInputStream, objc.NSOutputStream)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSNetService.fromPointer(arg1, retain: true, release: true), - objc.NSInputStream.fromPointer(arg2, retain: true, release: true), - objc.NSOutputStream.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - listener( - void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_tikg8p.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - blocking( - void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_tikg8p.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSInputStream, objc.NSOutputStream)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > { - void call( - ffi.Pointer arg0, - NSNetService arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSPortMessage)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSPortMessage { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > - fromFunction( - void Function(ffi.Pointer, objc.NSPortMessage) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - objc.NSPortMessage.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > - listener( - void Function(ffi.Pointer, objc.NSPortMessage) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1e1kc88.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > - blocking( - void Function(ffi.Pointer, objc.NSPortMessage) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1e1kc88.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSPortMessage)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSPortMessage$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > { - void call(ffi.Pointer arg0, objc.NSPortMessage arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSSet)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSet { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, objc.NSSet)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, objc.NSSet)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, objc.NSSet)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, objc.NSSet)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSSet)> - fromFunction( - void Function(ffi.Pointer, objc.NSSet) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, objc.NSSet)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - objc.NSSet.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSSet)> - listener( - void Function(ffi.Pointer, objc.NSSet) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, objc.NSSet)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k2hpmy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, objc.NSSet)> - blocking( - void Function(ffi.Pointer, objc.NSSet) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, objc.NSSet)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k2hpmy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSSet)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSSet$CallExtension - on objc.ObjCBlock, objc.NSSet)> { - void call(ffi.Pointer arg0, objc.NSSet arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - listener( - void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1usrzbh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - blocking( - void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1usrzbh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > { - void call( - ffi.Pointer arg0, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, ffi.UnsignedLong, objc.NSString, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) { - return fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - arg2, - objc.NSString.fromPointer(arg3, retain: true, release: true), - objc.NSString.fromPointer(arg4, retain: true, release: true), - objc.NSString.fromPointer(arg5, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > - listener( - void Function( - ffi.Pointer, - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9dub82, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_gcznpv.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > - blocking( - void Function( - ffi.Pointer, - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9dub82, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_gcznpv.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, ffi.UnsignedLong, objc.NSString, objc.NSString, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > { - void call( - ffi.Pointer arg0, - NSSpellServer arg1, - DartNSUInteger arg2, - objc.NSString arg3, - objc.NSString arg4, - objc.NSString arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg3.ref; - final _$$ref$2 = arg4.ref; - final _$$ref$3 = arg5.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - arg2, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromFunction( - void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSString.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > - listener( - void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ptzs7z.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > - blocking( - void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ptzs7z.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > { - void call( - ffi.Pointer arg0, - objc.NSString arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - int arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1nr9pmw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ltqoqj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1nr9pmw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ltqoqj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1) - > - >() - .asFunction, int)>()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, int))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSUInteger$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > { - void call(ffi.Pointer arg0, DartNSUInteger arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSUInteger arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURL)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, objc.NSURL)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, objc.NSURL)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, objc.NSURL)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, objc.NSURL)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSURL)> - fromFunction( - void Function(ffi.Pointer, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, objc.NSURL)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - objc.NSURL.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSURL)> - listener( - void Function(ffi.Pointer, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, objc.NSURL)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_461rr9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, objc.NSURL)> - blocking( - void Function(ffi.Pointer, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, objc.NSURL)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_461rr9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURL)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURL$CallExtension - on objc.ObjCBlock, objc.NSURL)> { - void call(ffi.Pointer arg0, objc.NSURL arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLAuthenticationChallenge)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > - fromFunction( - void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLAuthenticationChallenge.fromPointer( - arg1, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > - listener( - void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1z0whcc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > - blocking( - void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1z0whcc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLAuthenticationChallenge)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > { - void call(ffi.Pointer arg0, NSURLAuthenticationChallenge arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock, NSURLConnection)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock, NSURLConnection)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock, NSURLConnection)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > - listener( - void Function(ffi.Pointer, NSURLConnection) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15jt9u5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > - blocking( - void Function(ffi.Pointer, NSURLConnection) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15jt9u5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > { - void call(ffi.Pointer arg0, NSURLConnection arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > - listener( - void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15vjajw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15vjajw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - objc.NSData arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSError)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - > - listener( - void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vpa8ji.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vpa8ji.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSError)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - objc.NSError, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - objc.NSError arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.Long, ffi.Long, ffi.Long)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSInteger arg2, - NSInteger arg3, - NSInteger arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - arg2, - arg3, - arg4, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_14pv86t, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_133h48c.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_14pv86t, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_133h48c.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSInteger arg2, - NSInteger arg3, - NSInteger arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.Long, ffi.Long, ffi.Long)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - DartNSInteger arg2, - DartNSInteger arg3, - DartNSInteger arg4, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSInteger arg2, - NSInteger arg3, - NSInteger arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3, arg4); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSURL)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - objc.NSURL.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > - listener( - void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1odc9lb.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1odc9lb.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSURL)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > { - void call(ffi.Pointer arg0, NSURLConnection arg1, objc.NSURL arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLAuthenticationChallenge)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_aec946.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_aec946.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLAuthenticationChallenge)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLResponse)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSURLResponse.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - > - listener( - void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1i7oea2.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1i7oea2.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLResponse)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLResponse, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSURLResponse arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, int, int) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - arg2, - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > - listener( - void Function(ffi.Pointer, NSURLConnection, int, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1b0c39y, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_5wf51x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, int, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1b0c39y, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_5wf51x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - int arg2, - int arg3, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong, ffi.LongLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ffi.LongLong arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - arg2, - arg3, - arg4, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - listener( - void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1fswoub, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3jhjrc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1fswoub, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3jhjrc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ffi.LongLong arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong, ffi.LongLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - int arg2, - int arg3, - int arg4, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ffi.LongLong arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3, arg4); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLCredential, NSURLAuthenticationChallenge)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLCredential.fromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1o8dtl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1o8dtl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLCredential, NSURLAuthenticationChallenge)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > { - void call( - ffi.Pointer arg0, - NSURLCredential arg1, - NSURLAuthenticationChallenge arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSURLDownload)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSURLDownload)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSURLDownload)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSURLDownload)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLDownload)> - fromFunction( - void Function(ffi.Pointer, NSURLDownload) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSURLDownload)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLDownload)> - listener( - void Function(ffi.Pointer, NSURLDownload) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13sb76x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSURLDownload)> - blocking( - void Function(ffi.Pointer, NSURLDownload) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13sb76x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload$CallExtension - on objc.ObjCBlock, NSURLDownload)> { - void call(ffi.Pointer arg0, NSURLDownload arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSError)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > - fromFunction( - void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > - listener( - void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_14dahaa.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > - blocking( - void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_14dahaa.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSError)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > { - void call(ffi.Pointer arg0, NSURLDownload arg1, objc.NSError arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromFunction( - void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - listener( - void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_18kc0nv.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - blocking( - void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_18kc0nv.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > { - void call( - ffi.Pointer arg0, - NSURLDownload arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - ffi.UnsignedLong, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - ffi.UnsignedLong, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - ffi.UnsignedLong, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1kovpyp, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_19pyqcd.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1kovpyp, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_19pyqcd.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - ffi.UnsignedLong, - ) - > { - void call( - ffi.Pointer arg0, - NSURLDownload arg1, - DartNSUInteger arg2, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLAuthenticationChallenge)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hwelu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hwelu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLAuthenticationChallenge)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > { - void call( - ffi.Pointer arg0, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLResponse)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > - fromFunction( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - NSURLResponse.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > - listener( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hj9xku.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > - blocking( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hj9xku.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLResponse)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > { - void call( - ffi.Pointer arg0, - NSURLDownload arg1, - NSURLResponse arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLResponse, ffi.LongLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.LongLong arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > - fromFunction( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - NSURLResponse.fromPointer(arg2, retain: true, release: true), - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > - listener( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1axgza4, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12tf05r.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > - blocking( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1axgza4, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12tf05r.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.LongLong arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLResponse, ffi.LongLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > { - void call( - ffi.Pointer arg0, - NSURLDownload arg1, - NSURLResponse arg2, - int arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.LongLong arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > - fromFunction( - void Function(ffi.Pointer, objc.NSURLHandle) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > - listener( - void Function(ffi.Pointer, objc.NSURLHandle) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xj71gr.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > - blocking( - void Function(ffi.Pointer, objc.NSURLHandle) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xj71gr.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURLHandle)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > { - void call(ffi.Pointer arg0, objc.NSURLHandle arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - > - fromFunction( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - > - listener( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_136y7ma.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - > - blocking( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_136y7ma.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURLHandle, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURLHandle, - objc.NSData, - ) - > { - void call( - ffi.Pointer arg0, - objc.NSURLHandle arg1, - objc.NSData arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURLHandle, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURLHandle, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - > - fromFunction( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURLHandle, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - > - listener( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_teaic5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - > - blocking( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_teaic5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURLHandle, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURLHandle, - objc.NSString, - ) - > { - void call( - ffi.Pointer arg0, - objc.NSURLHandle arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSURLProtocol)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSURLProtocol)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSURLProtocol)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSURLProtocol)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLProtocol)> - fromFunction( - void Function(ffi.Pointer, NSURLProtocol) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSURLProtocol)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLProtocol)> - listener( - void Function(ffi.Pointer, NSURLProtocol) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1jcra61.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSURLProtocol)> - blocking( - void Function(ffi.Pointer, NSURLProtocol) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1jcra61.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol$CallExtension - on objc.ObjCBlock, NSURLProtocol)> { - void call(ffi.Pointer arg0, NSURLProtocol arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSCachedURLResponse)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - > - fromFunction( - void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - NSCachedURLResponse.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - > - listener( - void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_s52y0g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - > - blocking( - void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_s52y0g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSCachedURLResponse)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - > { - void call( - ffi.Pointer arg0, - NSURLProtocol arg1, - NSCachedURLResponse arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > - fromFunction( - void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > - listener( - void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1p1ax08.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > - blocking( - void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1p1ax08.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > { - void call(ffi.Pointer arg0, NSURLProtocol arg1, objc.NSData arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, objc.NSError)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > - fromFunction( - void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > - listener( - void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_rojepe.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > - blocking( - void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_rojepe.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, objc.NSError)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > { - void call(ffi.Pointer arg0, NSURLProtocol arg1, objc.NSError arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLAuthenticationChallenge)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ek5uoy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ek5uoy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLAuthenticationChallenge)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > { - void call( - ffi.Pointer arg0, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLRequest, NSURLResponse)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - NSURLRequest.fromPointer(arg2, retain: true, release: true), - NSURLResponse.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12ykekb.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12ykekb.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLRequest, NSURLResponse)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > { - void call( - ffi.Pointer arg0, - NSURLProtocol arg1, - NSURLRequest arg2, - NSURLResponse arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLResponse, NSUInteger)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - NSURLResponse.fromPointer(arg2, retain: true, release: true), - NSURLCacheStoragePolicy.fromValue(arg3), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1mrpyvj, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_abn34x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1mrpyvj, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_abn34x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLResponse, NSUInteger)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > { - void call( - ffi.Pointer arg0, - NSURLProtocol arg1, - NSURLResponse arg2, - NSURLCacheStoragePolicy arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3.value); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSURLSession)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSURLSession)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSURLSession)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSURLSession)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession)> - fromFunction( - void Function(ffi.Pointer, NSURLSession) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSURLSession)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession)> - listener( - void Function(ffi.Pointer, NSURLSession) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_7xicdf.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSURLSession)> - blocking( - void Function(ffi.Pointer, NSURLSession) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_7xicdf.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession$CallExtension - on objc.ObjCBlock, NSURLSession)> { - void call(ffi.Pointer arg0, NSURLSession arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, objc.NSError?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > - fromFunction( - void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > - listener( - void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1f64crj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > - blocking( - void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1f64crj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, objc.NSError?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > { - void call(ffi.Pointer arg0, NSURLSession arg1, objc.NSError? arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg2, - retain: true, - release: true, - ), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( - arg3, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xfiv91, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_de64m.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xfiv91, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_de64m.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), - NSCachedURLResponse.fromPointer(arg3, retain: true, release: true), - ObjCBlock_ffiVoid_NSCachedURLResponse.fromPointer( - arg4, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_vh5xcw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15cdu5z.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_vh5xcw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15cdu5z.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), - objc.NSData.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_16ix251.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_16ix251.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - objc.NSData arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), - NSURLResponse.fromPointer(arg3, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.fromPointer( - arg4, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_vh5xcw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1xfn2k3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_vh5xcw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1xfn2k3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), - NSURLSessionDownloadTask.fromPointer( - arg3, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_140cpyj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_140cpyj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionDownloadTask arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), - NSURLSessionStreamTask.fromPointer( - arg3, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_43hp0b.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_43hp0b.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionStreamTask arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDownloadTask.fromPointer( - arg2, - retain: true, - release: true, - ), - arg3, - arg4, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1cgt9gb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1l7b9ji.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1cgt9gb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1l7b9ji.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3, arg4); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDownloadTask.fromPointer( - arg2, - retain: true, - release: true, - ), - arg3, - arg4, - arg5, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_132zq0k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pfucun.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_132zq0k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pfucun.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - arg3, - arg4, - arg5, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDownloadTask.fromPointer( - arg2, - retain: true, - release: true, - ), - objc.NSURL.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_pm23bg.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_pm23bg.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - objc.NSURL arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > - fromFunction( - void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionStreamTask.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > - listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_qss5hc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > - blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_qss5hc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask, objc.NSInputStream, objc.NSOutputStream)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionStreamTask.fromPointer( - arg2, - retain: true, - release: true, - ), - objc.NSInputStream.fromPointer(arg3, retain: true, release: true), - objc.NSOutputStream.fromPointer(arg4, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1yjs6wb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_nhk5a9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1yjs6wb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_nhk5a9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask, objc.NSInputStream, objc.NSOutputStream)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - objc.NSInputStream arg3, - objc.NSOutputStream arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - > - fromFunction( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - > - listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k1nazc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - > - blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k1nazc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - arg3, - arg4, - arg5, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_132zq0k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xh08sz.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_132zq0k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xh08sz.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - arg3, - arg4, - arg5, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - arg3, - ObjCBlock_ffiVoid_NSInputStream.fromPointer( - arg4, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_36nsue, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_99x6vt.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_36nsue, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_99x6vt.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - arg3, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSError.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_qjjttc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_qjjttc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - NSHTTPURLResponse.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n5meg5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n5meg5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - NSHTTPURLResponse.fromPointer(arg3, retain: true, release: true), - NSURLRequest.fromPointer(arg4, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLRequest.fromPointer( - arg5, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_ye2vt3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ayzt6i.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ye2vt3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ayzt6i.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - final _$$ref$4 = arg5.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg3, - retain: true, - release: true, - ), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( - arg4, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_vh5xcw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_31cygh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_vh5xcw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_31cygh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - NSURLRequest.fromPointer(arg3, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.fromPointer( - arg4, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_vh5xcw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_jqba1.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_vh5xcw, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_jqba1.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - NSURLSessionTaskMetrics.fromPointer( - arg3, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_i7wriu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_i7wriu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - ObjCBlock_ffiVoid_NSInputStream.fromPointer( - arg3, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xfiv91, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_112ozxo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xfiv91, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_112ozxo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionWebSocketTask.fromPointer( - arg2, - retain: true, - release: true, - ), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xcrg5s.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xcrg5s.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - objc.NSString? arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSInteger arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionWebSocketTask.fromPointer( - arg2, - retain: true, - release: true, - ), - NSURLSessionWebSocketCloseCode.fromValue(arg3), - arg4.address == 0 - ? null - : objc.NSData.fromPointer(arg4, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_8odg2g, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17jmtfx.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8odg2g, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17jmtfx.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSInteger arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - NSURLSessionWebSocketCloseCode arg3, - objc.NSData? arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg4?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSInteger arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - arg3.value, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURL, NSFileVersion)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > - fromFunction( - void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSURL.fromPointer(arg1, retain: true, release: true), - NSFileVersion.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > - listener( - void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1siniii.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > - blocking( - void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1siniii.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURL, NSFileVersion)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > { - void call(ffi.Pointer arg0, objc.NSURL arg1, NSFileVersion arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURL, objc.NSURL)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > - fromFunction( - void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSURL.fromPointer(arg1, retain: true, release: true), - objc.NSURL.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > - listener( - void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_jzitwn.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > - blocking( - void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_jzitwn.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURL, objc.NSURL)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > { - void call(ffi.Pointer arg0, objc.NSURL arg1, objc.NSURL arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURL, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSURL.fromPointer(arg1, retain: true, release: true), - ObjCBlock_ffiVoid_NSError.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_4m73qm, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_pfi7f3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_4m73qm, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_pfi7f3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURL, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - objc.NSURL arg1, - objc.ObjCBlock arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSUserActivity)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock, NSUserActivity)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSUserActivity)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > - fromFunction( - void Function(ffi.Pointer, NSUserActivity) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock, NSUserActivity)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSUserActivity.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > - listener( - void Function(ffi.Pointer, NSUserActivity) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_197qivc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > - blocking( - void Function(ffi.Pointer, NSUserActivity) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_197qivc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSUserActivity)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSUserActivity$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > { - void call(ffi.Pointer arg0, NSUserActivity arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSUserActivity, objc.NSInputStream, objc.NSOutputStream)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSUserActivity.fromPointer(arg1, retain: true, release: true), - objc.NSInputStream.fromPointer(arg2, retain: true, release: true), - objc.NSOutputStream.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - listener( - void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1j32c3t.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - blocking( - void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1j32c3t.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSUserActivity, objc.NSInputStream, objc.NSOutputStream)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > { - void call( - ffi.Pointer arg0, - NSUserActivity arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSUserNotificationCenter.fromPointer( - arg1, - retain: true, - release: true, - ), - NSUserNotification.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - listener( - void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_blvx9k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - blocking( - void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_blvx9k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > { - void call( - ffi.Pointer arg0, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSXMLParser)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSXMLParser)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSXMLParser)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSXMLParser)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSXMLParser)> - fromFunction( - void Function(ffi.Pointer, NSXMLParser) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSXMLParser)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSXMLParser)> - listener( - void Function(ffi.Pointer, NSXMLParser) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1fj0jrw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSXMLParser)> - blocking( - void Function(ffi.Pointer, NSXMLParser) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_w57eou, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1fj0jrw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser$CallExtension - on objc.ObjCBlock, NSXMLParser)> { - void call(ffi.Pointer arg0, NSXMLParser arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > - fromFunction( - void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > - listener( - void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vaglpl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > - blocking( - void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vaglpl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > { - void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSData arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSError)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > - fromFunction( - void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > - listener( - void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17xklgp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > - blocking( - void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17xklgp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSError)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > { - void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSError arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > - fromFunction( - void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > - listener( - void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1r6tt56.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > - blocking( - void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hll3td, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1r6tt56.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > { - void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSString arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_121fmzs.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_121fmzs.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_nemba7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_166nalk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_nemba7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4.address == 0 - ? null - : objc.NSString.fromPointer(arg4, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1yjs6wb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hacm4k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1yjs6wb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hacm4k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - final _$$ref$3 = arg4?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSDictionary)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4.address == 0 - ? null - : objc.NSString.fromPointer(arg4, retain: true, release: true), - objc.NSDictionary.fromPointer(arg5, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_5rmak2, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1kowxjl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_5rmak2, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1kowxjl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSDictionary)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSDictionary arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - final _$$ref$3 = arg4?.ref; - final _$$ref$4 = arg5.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString, objc.NSString?, objc.NSString?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4.address == 0 - ? null - : objc.NSString.fromPointer(arg4, retain: true, release: true), - arg5.address == 0 - ? null - : objc.NSString.fromPointer(arg5, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_5rmak2, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vx7t4i.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_5rmak2, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vx7t4i.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString, objc.NSString?, objc.NSString?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4?.ref; - final _$$ref$4 = arg5?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSString?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4.address == 0 - ? null - : objc.NSString.fromPointer(arg4, retain: true, release: true), - arg5.address == 0 - ? null - : objc.NSString.fromPointer(arg5, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_5rmak2, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_t3r59d.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_5rmak2, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_t3r59d.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSString?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - final _$$ref$3 = arg4?.ref; - final _$$ref$4 = arg5?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Bool)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, ffi.Bool)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, ffi.Bool)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, ffi.Bool)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1) - > - > - ptr, - ) => objc.ObjCBlock, ffi.Bool)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Bool)> - fromFunction( - void Function(ffi.Pointer, bool) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, ffi.Bool)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - bool arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Bool)> - listener( - void Function(ffi.Pointer, bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, ffi.Bool)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_24riuf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_wpl2gn.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, ffi.Bool)> - blocking( - void Function(ffi.Pointer, bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, ffi.Bool)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_24riuf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_wpl2gn.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - bool arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1) - > - >() - .asFunction, bool)>()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - bool arg1, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, bool))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Bool)>`. -extension ObjCBlock_ffiVoid_ffiVoid_bool$CallExtension - on objc.ObjCBlock, ffi.Bool)> { - void call(ffi.Pointer arg0, bool arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Bool arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - void Function(ffi.Pointer, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - listener( - void Function(ffi.Pointer, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_le6lv4, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hj6v1u.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - blocking( - void Function(ffi.Pointer, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_le6lv4, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hj6v1u.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > { - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - ObjCBlock_ffiVoid_NSError.fromPointer( - arg1, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1y86ja3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1s0z6xl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1y86ja3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1s0z6xl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - objc.ObjCBlock arg1, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.ObjCBlock?)>)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - > - fromFunction( - void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - ObjCBlock_ffiVoid_ffiVoid$2.fromPointer( - arg1, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - > - listener( - void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1y86ja3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_eu2222.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - > - blocking( - void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1y86ja3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_eu2222.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.ObjCBlock?)>)>`. -extension ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - > { - void call( - ffi.Pointer arg0, - objc.ObjCBlock?)> - arg1, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock?, objc.NSError)>`. -abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > - fromFunction( - void Function(objc.NSSecureCoding?, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSSecureCoding.fromPointer( - arg0, - retain: true, - release: true, - ), - objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > - listener( - void Function(objc.NSSecureCoding?, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_krrtfh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > - blocking( - void Function(objc.NSSecureCoding?, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_krrtfh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?, objc.NSError)>`. -extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > { - void call(objc.NSSecureCoding? arg0, objc.NSError arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock?, objc.NSError?)>`. -abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > - fromFunction( - void Function(objc.ObjCObject?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.ObjCObject(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > - listener( - void Function(objc.ObjCObject?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1tklz9g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > - blocking( - void Function(objc.ObjCObject?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1tklz9g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?, objc.NSError?)>`. -extension ObjCBlock_ffiVoid_objcObjCObjectImpl_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > { - void call(objc.ObjCObject? arg0, objc.NSError? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock?, objc.NSRange, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - fromFunction( - void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0.address == 0 - ? null - : objc.ObjCObject(arg0, retain: true, release: true), - arg1, - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - listener( - void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1agrddk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_q6fcam.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - blocking( - void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1agrddk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_q6fcam.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?, objc.NSRange, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > { - void call(objc.ObjCObject? arg0, NSRange arg1, ffi.Pointer arg2) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - Dartsec_protocol_metadata_t, - Dartdispatch_data_t?, - Dartsec_protocol_pre_shared_key_selection_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSObject.fromPointer(arg1, retain: true, release: true), - ObjCBlock_ffiVoid_NSObject$1.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > - listener( - void Function( - Dartsec_protocol_metadata_t, - Dartdispatch_data_t?, - Dartsec_protocol_pre_shared_key_selection_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_omynm, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1nq9pr6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > - blocking( - void Function( - Dartsec_protocol_metadata_t, - Dartdispatch_data_t?, - Dartsec_protocol_pre_shared_key_selection_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_omynm, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1nq9pr6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) - > - >() - .asFunction< - void Function( - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > { - void call( - Dartsec_protocol_metadata_t arg0, - Dartdispatch_data_t? arg1, - Dartsec_protocol_pre_shared_key_selection_complete_t arg2, - ) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1?.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t, - ) - >()( - ref.pointer, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_challenge_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - ObjCBlock_ffiVoid_NSObject$1.fromPointer( - arg1, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > - listener( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_challenge_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9kuhjb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hj4uui.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > - blocking( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_challenge_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9kuhjb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hj4uui.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) - > - >() - .asFunction< - void Function( - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > { - void call( - Dartsec_protocol_metadata_t arg0, - Dartsec_protocol_challenge_complete_t arg1, - ) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > - fromFunction( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_key_update_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >( - objc.newClosureBlock(_closureCallable, ( - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - ObjCBlock_ffiVoid.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > - listener( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_key_update_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9kuhjb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_di5ft6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > - blocking( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_key_update_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9kuhjb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_di5ft6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) - > - >() - .asFunction< - void Function( - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > { - void call( - Dartsec_protocol_metadata_t arg0, - Dartsec_protocol_key_update_complete_t arg1, - ) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_trust_t, - Dartsec_protocol_verify_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - objc.NSObject.fromPointer(arg1, retain: true, release: true), - ObjCBlock_ffiVoid_bool.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > - listener( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_trust_t, - Dartsec_protocol_verify_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_omynm, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1e3xl1p.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > - blocking( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_trust_t, - Dartsec_protocol_verify_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_omynm, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1e3xl1p.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) - > - >() - .asFunction< - void Function( - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > { - void call( - Dartsec_protocol_metadata_t arg0, - Dartsec_trust_t arg1, - Dartsec_protocol_verify_complete_t arg2, - ) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_xpcobjectt_xpcricherrort { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(xpc_object_t arg0, xpc_rich_error_t arg1) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - xpc_object_t arg0, - xpc_rich_error_t arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSObject.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSObject.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1uox71a.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1k6sg8i, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1uox71a.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - xpc_object_t arg0, - xpc_rich_error_t arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(xpc_object_t arg0, xpc_rich_error_t arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - xpc_object_t, - xpc_rich_error_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - xpc_object_t arg0, - xpc_rich_error_t arg1, - ) => - (objc.getBlockClosure(block) - as void Function(xpc_object_t, xpc_rich_error_t))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - xpc_object_t, - xpc_rich_error_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_xpcobjectt_xpcricherrort$CallExtension - on objc.ObjCBlock { - void call(Dartxpc_object_t? arg0, Dartxpc_object_t? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - xpc_object_t arg0, - xpc_rich_error_t arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - xpc_object_t, - xpc_rich_error_t, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, objc.NSBundle)>`. -abstract final class ObjCBlock_instancetype_ffiVoid_NSBundle { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - > - fromFunction( - Dartinstancetype? Function(ffi.Pointer, objc.NSBundle) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - final _$$ref = fn( - arg0, - objc.NSBundle.fromPointer(arg1, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndReturnPointer() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static instancetype _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static instancetype _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as instancetype Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, objc.NSBundle)>`. -extension ObjCBlock_instancetype_ffiVoid_NSBundle$CallExtension - on - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - > { - Dartinstancetype? call(ffi.Pointer arg0, objc.NSBundle arg1) { - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer) - .address == - 0 - ? null - : objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer), - retain: false, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - objc.ObjCObject Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - objc.ObjCObject call(ffi.Pointer arg0) { - return objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSConnection)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - > - fromFunction( - objc.ObjCObject Function(ffi.Pointer, NSConnection) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - final _$$ref = fn( - arg0, - NSConnection.fromPointer(arg1, retain: true, release: true), - ).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSConnection)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - > { - objc.ObjCObject call(ffi.Pointer arg0, NSConnection arg1) { - final _$$ref$1 = arg1.ref; - return objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedArchiver, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObject? Function( - ffi.Pointer, - NSKeyedArchiver, - objc.ObjCObject, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), - objc.ObjCObject(arg2, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedArchiver, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - > { - objc.ObjCObject? call( - ffi.Pointer arg0, - NSKeyedArchiver arg1, - objc.ObjCObject arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) - .address == - 0 - ? null - : objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedUnarchiver, objc.NSString, objc.NSArray)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - > - fromFunction( - objc.ObjCObject? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSArray.fromPointer(arg3, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedUnarchiver, objc.NSString, objc.NSArray)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray$CallExtension - on - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - > { - objc.ObjCObject? call( - ffi.Pointer arg0, - NSKeyedUnarchiver arg1, - objc.NSString arg2, - objc.NSArray arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ) - .address == - 0 - ? null - : objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, NSKeyedUnarchiver, objc.Consumed?>)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - > - fromFunction( - objc.ObjCObject? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.ObjCObject?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.ObjCObject(arg2, retain: false, release: true), - )?.ref; - return _$$ref?.retainAndReturnPointer() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, NSKeyedUnarchiver, objc.Consumed?>)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - > { - objc.ObjCObject? call( - ffi.Pointer arg0, - NSKeyedUnarchiver arg1, - objc.ObjCObject? arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, - ) - .address == - 0 - ? null - : objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, - ), - retain: false, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, NSMetadataItem)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - > - fromFunction( - objc.ObjCObject Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - NSMetadataQuery.fromPointer(arg1, retain: true, release: true), - NSMetadataItem.fromPointer(arg2, retain: true, release: true), - ).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, NSMetadataItem)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - > { - objc.ObjCObject call( - ffi.Pointer arg0, - NSMetadataQuery arg1, - NSMetadataItem arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, objc.NSString, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObject Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - objc.ObjCObject, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSMetadataQuery.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.ObjCObject(arg3, retain: true, release: true), - ).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, objc.NSString, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - > { - objc.ObjCObject call( - ffi.Pointer arg0, - NSMetadataQuery arg1, - objc.NSString arg2, - objc.ObjCObject arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3.ref; - return objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, objc.ObjCBlock)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromFunction( - objc.ObjCObject Function( - ffi.Pointer, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - final _$$ref = fn( - arg0, - ObjCBlock_ffiVoid_NSError$1.fromPointer( - arg1, - retain: true, - release: true, - ), - ).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, objc.ObjCBlock)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > { - objc.ObjCObject call( - ffi.Pointer arg0, - objc.ObjCBlock arg1, - ) { - final _$$ref$1 = arg1.ref; - return objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_ppdfiles_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function(ffi.Pointer)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunction( - ffi.Pointer Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_ppdfiles_ffiVoid$CallExtension - on objc.ObjCBlock Function(ffi.Pointer)> { - ffi.Pointer call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Observation -extension Observation on AVAudioSession { - /// isOtherAudioPlaying - bool get isOtherAudioPlaying { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.isOtherAudioPlaying', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isOtherAudioPlaying); - } - - /// outputVolume - double get outputVolume { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.outputVolume', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_outputVolume) - : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_outputVolume); - } - - /// promptStyle - AVAudioSessionPromptStyle get promptStyle { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.promptStyle', - iOS: (false, (13, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_mkoxa1(_$$ref.pointer, _sel_promptStyle); - return AVAudioSessionPromptStyle.fromValue($ret); - } - - /// secondaryAudioShouldBeSilencedHint - bool get secondaryAudioShouldBeSilencedHint { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.secondaryAudioShouldBeSilencedHint', - iOS: (false, (8, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_13h8okt( - _$$ref.pointer, - _sel_secondaryAudioShouldBeSilencedHint, - ); - } -} - -final class OffPair extends ffi.Struct { - @ffi.Short() - external int offFirst; - - @ffi.Short() - external int offSecond; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offFirst, - required int offSecond, - }) => $allocator() - ..ref.offFirst = offFirst - ..ref.offSecond = offSecond; -} - -@ffi.Packed(2) -final class OffsetArray extends ffi.Struct { - @SInt16() - external int fNumOfOffsets; - - @ffi.Array.multi([1]) - external ffi.Array fOffset; -} - -typedef OffsetArrayHandle = ffi.Pointer; -typedef OffsetArrayPtr = ffi.Pointer; - -final class OpaqueAEStreamRef extends ffi.Opaque {} - -final class OpaqueATSUFontFallbacks extends ffi.Opaque {} - -final class OpaqueATSUStyle extends ffi.Opaque {} - -final class OpaqueATSUTextLayout extends ffi.Opaque {} - -final class OpaqueAreaID extends ffi.Opaque {} - -final class OpaqueCMProfileRef extends ffi.Opaque {} - -final class OpaqueCMWorldRef extends ffi.Opaque {} - -final class OpaqueCollatorRef extends ffi.Opaque {} - -final class OpaqueCollection extends ffi.Opaque {} - -final class OpaqueDialogPtr extends ffi.Opaque {} - -final class OpaqueFNSubscriptionRef extends ffi.Opaque {} - -final class OpaqueFSIterator extends ffi.Opaque {} - -final class OpaqueFSVolumeOperation extends ffi.Opaque {} - -final class OpaqueGrafPtr extends ffi.Opaque {} - -final class OpaqueICInstance extends ffi.Opaque {} - -final class OpaqueIconRef extends ffi.Opaque {} - -final class OpaqueLSSharedFileListItemRef extends ffi.Opaque {} - -final class OpaqueLSSharedFileListRef extends ffi.Opaque {} - -final class OpaqueLocaleRef extends ffi.Opaque {} - -final class OpaqueMPAddressSpaceID extends ffi.Opaque {} - -final class OpaqueMPAreaID extends ffi.Opaque {} - -final class OpaqueMPCoherenceID extends ffi.Opaque {} - -final class OpaqueMPConsoleID extends ffi.Opaque {} - -final class OpaqueMPCpuID extends ffi.Opaque {} - -final class OpaqueMPCriticalRegionID extends ffi.Opaque {} - -final class OpaqueMPEventID extends ffi.Opaque {} - -final class OpaqueMPNotificationID extends ffi.Opaque {} - -final class OpaqueMPOpaqueID extends ffi.Opaque {} - -final class OpaqueMPProcessID extends ffi.Opaque {} - -final class OpaqueMPQueueID extends ffi.Opaque {} - -final class OpaqueMPSemaphoreID extends ffi.Opaque {} - -final class OpaqueMPTaskID extends ffi.Opaque {} - -final class OpaqueMPTimerID extends ffi.Opaque {} - -final class OpaquePMPageFormat extends ffi.Opaque {} - -final class OpaquePMPaper extends ffi.Opaque {} - -final class OpaquePMPreset extends ffi.Opaque {} - -final class OpaquePMPrintSession extends ffi.Opaque {} - -final class OpaquePMPrintSettings extends ffi.Opaque {} - -final class OpaquePMPrinter extends ffi.Opaque {} - -final class OpaquePMServer extends ffi.Opaque {} - -final class OpaquePasteboardRef extends ffi.Opaque {} - -final class OpaquePolicySearchRef extends ffi.Opaque {} - -final class OpaqueRgnHandle extends ffi.Opaque {} - -typedef OpaqueSecAccessRef = __SecAccess; -typedef OpaqueSecCertificateRef = __SecCertificate; -typedef OpaqueSecIdentityRef = __SecIdentity; - -final class OpaqueSecIdentitySearchRef extends ffi.Opaque {} - -typedef OpaqueSecKeyRef = __SecKey; - -final class OpaqueSecTransformImplementation extends ffi.Opaque {} - -final class OpaqueTECObjectRef extends ffi.Opaque {} - -final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} - -final class OpaqueTextBreakLocatorRef extends ffi.Opaque {} - -final class OpaqueTextToUnicodeInfo extends ffi.Opaque {} - -final class OpaqueTranslationRef extends ffi.Opaque {} - -final class OpaqueUCTypeSelectRef extends ffi.Opaque {} - -final class OpaqueUnicodeToTextInfo extends ffi.Opaque {} - -final class OpaqueUnicodeToTextRunInfo extends ffi.Opaque {} - -final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} - -final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} - -final class OpaqueWindowPtr extends ffi.Opaque {} - -final class OpbdSideValues extends ffi.Struct { - @SInt16() - external int leftSideShift; - - @SInt16() - external int topSideShift; - - @SInt16() - external int rightSideShift; - - @SInt16() - external int bottomSideShift; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int leftSideShift, - required int topSideShift, - required int rightSideShift, - required int bottomSideShift, - }) => $allocator() - ..ref.leftSideShift = leftSideShift - ..ref.topSideShift = topSideShift - ..ref.rightSideShift = rightSideShift - ..ref.bottomSideShift = bottomSideShift; -} - -@ffi.Packed(2) -final class OpbdTable extends ffi.Struct { - @Fixed() - external int version; - - @OpbdTableFormat() - external int format; - - external SFNTLookupTable lookupTable; -} - -typedef OpbdTableFormat = UInt16; - -@ffi.Packed(2) -final class OpenCPicParams extends ffi.Struct { - external Rect srcRect; - - @Fixed() - external int hRes; - - @Fixed() - external int vRes; - - @ffi.Short() - external int version; - - @ffi.Short() - external int reserved1; - - @SInt32() - external int reserved2; -} - -typedef OptionBits = UInt32; - -const int OverallAct = 0; - -typedef PBVersion = UInt32; - -/// PDEPanel -extension type PDEPanel._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [PDEPanel] that points to the same underlying object as [other]. - PDEPanel.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [PDEPanel] that wraps the given raw object pointer. - PDEPanel.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [PDEPanel]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_PDEPanel, - ); - } -} - -extension PDEPanel$Methods on PDEPanel { - /// PPDOptionKeyValueDidChange:ppdChoice: - void PPDOptionKeyValueDidChange( - objc.NSString option, { - required objc.NSString ppdChoice, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = option.ref; - final _$$ref$2 = ppdChoice.ref; - objc.checkOsVersionInternal( - 'PDEPanel.PPDOptionKeyValueDidChange:ppdChoice:', - iOS: (true, null), - ); - _objc_msgSend_1k6sg8i( - _$$ref.pointer, - _sel_PPDOptionKeyValueDidChange_ppdChoice_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// panelKind - objc.NSString panelKind() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.panelKind', iOS: (true, null)); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_panelKind); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// panelName - objc.NSString panelName() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.panelName', iOS: (true, null)); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_panelName); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// panelView - NSView? panelView() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.panelView', iOS: (true, null)); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_panelView); - return $ret.address == 0 - ? null - : NSView.fromPointer($ret, retain: true, release: true); - } - - /// printWindowWillClose: - void printWindowWillClose(bool userCanceled) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPanel.printWindowWillClose:', - iOS: (true, null), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_printWindowWillClose_)) { - throw objc.UnimplementedOptionalMethodException( - 'PDEPanel', - 'printWindowWillClose:', - ); - } - _objc_msgSend_1s4gila( - _$$ref.pointer, - _sel_printWindowWillClose_, - userCanceled, - ); - } - - /// restoreValuesAndReturnError: - bool restoreValuesAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPanel.restoreValuesAndReturnError:', - iOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1tjz0jr( - _$$ref.pointer, - _sel_restoreValuesAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// saveValuesAndReturnError: - bool saveValuesAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPanel.saveValuesAndReturnError:', - iOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1tjz0jr( - _$$ref.pointer, - _sel_saveValuesAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// shouldHide - bool shouldHide() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.shouldHide', iOS: (true, null)); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_shouldHide); - } - - /// shouldPrint - bool shouldPrint() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.shouldPrint', iOS: (true, null)); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_shouldPrint)) { - throw objc.UnimplementedOptionalMethodException( - 'PDEPanel', - 'shouldPrint', - ); - } - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_shouldPrint); - } - - /// shouldShowHelp - bool shouldShowHelp() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.shouldShowHelp', iOS: (true, null)); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_shouldShowHelp)) { - throw objc.UnimplementedOptionalMethodException( - 'PDEPanel', - 'shouldShowHelp', - ); - } - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_shouldShowHelp); - } - - /// summaryInfo - objc.NSDictionary? summaryInfo() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.summaryInfo', iOS: (true, null)); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_summaryInfo); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// supportedPPDOptionKeys - objc.NSArray? supportedPPDOptionKeys() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPanel.supportedPPDOptionKeys', - iOS: (true, null), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_supportedPPDOptionKeys)) { - throw objc.UnimplementedOptionalMethodException( - 'PDEPanel', - 'supportedPPDOptionKeys', - ); - } - final $ret = _objc_msgSend_zldla2( - _$$ref.pointer, - _sel_supportedPPDOptionKeys, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// willShow - void willShow() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.willShow', iOS: (true, null)); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_willShow); - } -} - -interface class PDEPanel$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_PDEPanel.cast()); - - /// Builds an object that implements the PDEPanel protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static PDEPanel implement({ - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implement( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implement( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implement(builder, willShow); - builder.addProtocol($protocol); - return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the PDEPanel protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implement( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implement( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implement(builder, willShow); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the PDEPanel protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static PDEPanel implementAsListener({ - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsListener( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implementAsListener( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implementAsListener(builder, willShow); - builder.addProtocol($protocol); - return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the PDEPanel protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsListener( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implementAsListener( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implementAsListener(builder, willShow); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the PDEPanel protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static PDEPanel implementAsBlocking({ - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsBlocking( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implementAsBlocking( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implementAsBlocking(builder, willShow); - builder.addProtocol($protocol); - return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the PDEPanel protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsBlocking( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implementAsBlocking( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implementAsBlocking(builder, willShow); - builder.addProtocol($protocol); - } - - /// PPDOptionKeyValueDidChange:ppdChoice: - static final PPDOptionKeyValueDidChange_ppdChoice_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSString, objc.NSString) - >( - _protocol_PDEPanel, - _sel_PPDOptionKeyValueDidChange_ppdChoice_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hll3td) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_PPDOptionKeyValueDidChange_ppdChoice_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.listener( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.blocking( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// panelKind - static final panelKind = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_panelKind, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_panelKind, - isRequired: true, - isInstanceMethod: true, - ), - (objc.NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// panelName - static final panelName = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_panelName, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_panelName, - isRequired: true, - isInstanceMethod: true, - ), - (objc.NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// panelView - static final panelView = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_panelView, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_panelView, - isRequired: true, - isInstanceMethod: true, - ), - (NSView? Function() func) => ObjCBlock_NSView_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// printWindowWillClose: - static final printWindowWillClose_ = - objc.ObjCProtocolListenableMethod( - _protocol_PDEPanel, - _sel_printWindowWillClose_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_24riuf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_printWindowWillClose_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(bool) func) => - ObjCBlock_ffiVoid_ffiVoid_bool.fromFunction( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.listener( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.blocking( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - ); - - /// restoreValuesAndReturnError: - static final restoreValuesAndReturnError_ = - objc.ObjCProtocolMethod< - bool Function(ffi.Pointer>) - >( - _protocol_PDEPanel, - _sel_restoreValuesAndReturnError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >(_1uu024u_protocolTrampoline_1gpo89w) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_restoreValuesAndReturnError_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(ffi.Pointer>) func) => - ObjCBlock_bool_ffiVoid_NSError.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer> arg1, - ) => func(arg1), - ), - ); - - /// saveValuesAndReturnError: - static final saveValuesAndReturnError_ = - objc.ObjCProtocolMethod< - bool Function(ffi.Pointer>) - >( - _protocol_PDEPanel, - _sel_saveValuesAndReturnError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >(_1uu024u_protocolTrampoline_1gpo89w) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_saveValuesAndReturnError_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(ffi.Pointer>) func) => - ObjCBlock_bool_ffiVoid_NSError.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer> arg1, - ) => func(arg1), - ), - ); - - /// shouldHide - static final shouldHide = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_shouldHide, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_12g52hw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_shouldHide, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// shouldPrint - static final shouldPrint = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_shouldPrint, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_12g52hw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_shouldPrint, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// shouldShowHelp - static final shouldShowHelp = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_shouldShowHelp, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_12g52hw) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_shouldShowHelp, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// summaryInfo - static final summaryInfo = - objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_summaryInfo, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_summaryInfo, - isRequired: true, - isInstanceMethod: true, - ), - (objc.NSDictionary? Function() func) => - ObjCBlock_NSDictionary_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// supportedPPDOptionKeys - static final supportedPPDOptionKeys = - objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_supportedPPDOptionKeys, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1jnam6p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_supportedPPDOptionKeys, - isRequired: false, - isInstanceMethod: true, - ), - (objc.NSArray? Function() func) => - ObjCBlock_NSArray_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// willShow - static final willShow = objc.ObjCProtocolListenableMethod( - _protocol_PDEPanel, - _sel_willShow, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_15is1z3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_willShow, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); -} - -/// PDEPlugIn -extension type PDEPlugIn._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [PDEPlugIn] that points to the same underlying object as [other]. - PDEPlugIn.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [PDEPlugIn] that wraps the given raw object pointer. - PDEPlugIn.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [PDEPlugIn]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_PDEPlugIn, - ); - } -} - -extension PDEPlugIn$Methods on PDEPlugIn { - /// PDEPanelsForType:withHostInfo: - objc.NSArray? PDEPanelsForType( - objc.NSString pdeType, { - required PDEPlugInCallbackProtocol withHostInfo, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = pdeType.ref; - final _$$ref$2 = withHostInfo.ref; - objc.checkOsVersionInternal( - 'PDEPlugIn.PDEPanelsForType:withHostInfo:', - iOS: (true, null), - ); - final $ret = _objc_msgSend_1oxgj58( - _$$ref.pointer, - _sel_PDEPanelsForType_withHostInfo_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// initWithBundle: - PDEPlugIn? initWithBundle(objc.NSBundle theBundle) { - final _$$ref = object$.ref; - final _$$ref$1 = theBundle.ref; - objc.checkOsVersionInternal('PDEPlugIn.initWithBundle:', iOS: (true, null)); - final $ret = _objc_msgSend_1ffzwv1( - _$$ref.retainAndReturnPointer(), - _sel_initWithBundle_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : PDEPlugIn.fromPointer($ret, retain: false, release: true); - } -} - -interface class PDEPlugIn$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_PDEPlugIn.cast()); - - /// Builds an object that implements the PDEPlugIn protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static PDEPlugIn implement({ - required objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) - PDEPanelsForType_withHostInfo_, - required Dartinstancetype? Function(objc.NSBundle) initWithBundle_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPlugIn'); - PDEPlugIn$Builder.PDEPanelsForType_withHostInfo_.implement( - builder, - PDEPanelsForType_withHostInfo_, - ); - PDEPlugIn$Builder.initWithBundle_.implement(builder, initWithBundle_); - builder.addProtocol($protocol); - return PDEPlugIn.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the PDEPlugIn protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) - PDEPanelsForType_withHostInfo_, - required Dartinstancetype? Function(objc.NSBundle) initWithBundle_, - bool $keepIsolateAlive = true, - }) { - PDEPlugIn$Builder.PDEPanelsForType_withHostInfo_.implement( - builder, - PDEPanelsForType_withHostInfo_, - ); - PDEPlugIn$Builder.initWithBundle_.implement(builder, initWithBundle_); - builder.addProtocol($protocol); - } - - /// PDEPanelsForType:withHostInfo: - static final PDEPanelsForType_withHostInfo_ = - objc.ObjCProtocolMethod< - objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) - >( - _protocol_PDEPlugIn, - _sel_PDEPanelsForType_withHostInfo_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_osi9m3) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugIn, - _sel_PDEPanelsForType_withHostInfo_, - isRequired: true, - isInstanceMethod: true, - ), - ( - objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) func, - ) => - ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol.fromFunction( - ( - ffi.Pointer _, - objc.NSString arg1, - PDEPlugInCallbackProtocol arg2, - ) => func(arg1, arg2), - ), - ); - - /// initWithBundle: - static final initWithBundle_ = - objc.ObjCProtocolMethod( - _protocol_PDEPlugIn, - _sel_initWithBundle_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_an4r6w) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugIn, - _sel_initWithBundle_, - isRequired: true, - isInstanceMethod: true, - ), - (Dartinstancetype? Function(objc.NSBundle) func) => - ObjCBlock_instancetype_ffiVoid_NSBundle.fromFunction( - (ffi.Pointer _, objc.NSBundle arg1) => func(arg1), - ), - ); -} - -/// PDEPlugInCallbackProtocol -extension type PDEPlugInCallbackProtocol._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [PDEPlugInCallbackProtocol] that points to the same underlying object as [other]. - PDEPlugInCallbackProtocol.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [PDEPlugInCallbackProtocol] that wraps the given raw object pointer. - PDEPlugInCallbackProtocol.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [PDEPlugInCallbackProtocol]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_PDEPlugInCallbackProtocol, - ); - } -} - -extension PDEPlugInCallbackProtocol$Methods on PDEPlugInCallbackProtocol { - /// PMPrinter - PMPrinter PMPrinter$1() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.PMPrinter', - iOS: (true, null), - ); - return _objc_msgSend_1bslk2e(_$$ref.pointer, _sel_PMPrinter); - } - - /// pageFormat - PMPageFormat pageFormat() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.pageFormat', - iOS: (true, null), - ); - return _objc_msgSend_1z0zg2e(_$$ref.pointer, _sel_pageFormat); - } - - /// ppdFile - ffi.Pointer ppdFile() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.ppdFile', - iOS: (true, null), - ); - return _objc_msgSend_inbg7y(_$$ref.pointer, _sel_ppdFile); - } - - /// printSession - PMPrintSession printSession() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.printSession', - iOS: (true, null), - ); - return _objc_msgSend_wi8f6a(_$$ref.pointer, _sel_printSession); - } - - /// printSettings - PMPrintSettings printSettings() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.printSettings', - iOS: (true, null), - ); - return _objc_msgSend_13y52fe(_$$ref.pointer, _sel_printSettings); - } - - /// willChangePPDOptionKeyValue:ppdChoice: - bool willChangePPDOptionKeyValue( - objc.NSString option, { - required objc.NSString ppdChoice, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = option.ref; - final _$$ref$2 = ppdChoice.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.willChangePPDOptionKeyValue:ppdChoice:', - iOS: (true, null), - ); - return _objc_msgSend_bltg3p( - _$$ref.pointer, - _sel_willChangePPDOptionKeyValue_ppdChoice_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class PDEPlugInCallbackProtocol$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_PDEPlugInCallbackProtocol.cast()); - - /// Builds an object that implements the PDEPlugInCallbackProtocol protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static PDEPlugInCallbackProtocol implement({ - required PMPrinter Function() PMPrinter$1, - required PMPageFormat Function() pageFormat, - required ffi.Pointer Function() ppdFile, - required PMPrintSession Function() printSession, - required PMPrintSettings Function() printSettings, - required bool Function(objc.NSString, objc.NSString) - willChangePPDOptionKeyValue_ppdChoice_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'PDEPlugInCallbackProtocol', - ); - PDEPlugInCallbackProtocol$Builder.PMPrinter$1.implement( - builder, - PMPrinter$1, - ); - PDEPlugInCallbackProtocol$Builder.pageFormat.implement(builder, pageFormat); - PDEPlugInCallbackProtocol$Builder.ppdFile.implement(builder, ppdFile); - PDEPlugInCallbackProtocol$Builder.printSession.implement( - builder, - printSession, - ); - PDEPlugInCallbackProtocol$Builder.printSettings.implement( - builder, - printSettings, - ); - PDEPlugInCallbackProtocol$Builder.willChangePPDOptionKeyValue_ppdChoice_ - .implement(builder, willChangePPDOptionKeyValue_ppdChoice_); - builder.addProtocol($protocol); - return PDEPlugInCallbackProtocol.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the PDEPlugInCallbackProtocol protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required PMPrinter Function() PMPrinter$1, - required PMPageFormat Function() pageFormat, - required ffi.Pointer Function() ppdFile, - required PMPrintSession Function() printSession, - required PMPrintSettings Function() printSettings, - required bool Function(objc.NSString, objc.NSString) - willChangePPDOptionKeyValue_ppdChoice_, - bool $keepIsolateAlive = true, - }) { - PDEPlugInCallbackProtocol$Builder.PMPrinter$1.implement( - builder, - PMPrinter$1, - ); - PDEPlugInCallbackProtocol$Builder.pageFormat.implement(builder, pageFormat); - PDEPlugInCallbackProtocol$Builder.ppdFile.implement(builder, ppdFile); - PDEPlugInCallbackProtocol$Builder.printSession.implement( - builder, - printSession, - ); - PDEPlugInCallbackProtocol$Builder.printSettings.implement( - builder, - printSettings, - ); - PDEPlugInCallbackProtocol$Builder.willChangePPDOptionKeyValue_ppdChoice_ - .implement(builder, willChangePPDOptionKeyValue_ppdChoice_); - builder.addProtocol($protocol); - } - - /// PMPrinter - static final PMPrinter$1 = objc.ObjCProtocolMethod( - _protocol_PDEPlugInCallbackProtocol, - _sel_PMPrinter, - ffi.Native.addressOf< - ffi.NativeFunction< - PMPrinter Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ik4urx) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_PMPrinter, - isRequired: true, - isInstanceMethod: true, - ), - (PMPrinter Function() func) => ObjCBlock_PMPrinter_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// pageFormat - static final pageFormat = objc.ObjCProtocolMethod( - _protocol_PDEPlugInCallbackProtocol, - _sel_pageFormat, - ffi.Native.addressOf< - ffi.NativeFunction< - PMPageFormat Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_abnjt9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_pageFormat, - isRequired: true, - isInstanceMethod: true, - ), - (PMPageFormat Function() func) => - ObjCBlock_PMPageFormat_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// ppdFile - static final ppdFile = - objc.ObjCProtocolMethod Function()>( - _protocol_PDEPlugInCallbackProtocol, - _sel_ppdFile, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_hyxwut) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_ppdFile, - isRequired: true, - isInstanceMethod: true, - ), - (ffi.Pointer Function() func) => - ObjCBlock_ppdfiles_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// printSession - static final printSession = - objc.ObjCProtocolMethod( - _protocol_PDEPlugInCallbackProtocol, - _sel_printSession, - ffi.Native.addressOf< - ffi.NativeFunction< - PMPrintSession Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1k8r9t5) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_printSession, - isRequired: true, - isInstanceMethod: true, - ), - (PMPrintSession Function() func) => - ObjCBlock_PMPrintSession_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// printSettings - static final printSettings = - objc.ObjCProtocolMethod( - _protocol_PDEPlugInCallbackProtocol, - _sel_printSettings, - ffi.Native.addressOf< - ffi.NativeFunction< - PMPrintSettings Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_11ylsyp) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_printSettings, - isRequired: true, - isInstanceMethod: true, - ), - (PMPrintSettings Function() func) => - ObjCBlock_PMPrintSettings_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// willChangePPDOptionKeyValue:ppdChoice: - static final willChangePPDOptionKeyValue_ppdChoice_ = - objc.ObjCProtocolMethod( - _protocol_PDEPlugInCallbackProtocol, - _sel_willChangePPDOptionKeyValue_ppdChoice_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_g6y2su) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_willChangePPDOptionKeyValue_ppdChoice_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.NSString, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); -} - -@ffi.Packed(2) -final class PEFContainerHeader extends ffi.Struct { - @OSType() - external int tag1; - - @OSType() - external int tag2; - - @OSType() - external int architecture; - - @UInt32() - external int formatVersion; - - @UInt32() - external int dateTimeStamp; - - @UInt32() - external int oldDefVersion; - - @UInt32() - external int oldImpVersion; - - @UInt32() - external int currentVersion; - - @UInt16() - external int sectionCount; - - @UInt16() - external int instSectionCount; - - @UInt32() - external int reservedA; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tag1, - required int tag2, - required int architecture, - required int formatVersion, - required int dateTimeStamp, - required int oldDefVersion, - required int oldImpVersion, - required int currentVersion, - required int sectionCount, - required int instSectionCount, - required int reservedA, - }) => $allocator() - ..ref.tag1 = tag1 - ..ref.tag2 = tag2 - ..ref.architecture = architecture - ..ref.formatVersion = formatVersion - ..ref.dateTimeStamp = dateTimeStamp - ..ref.oldDefVersion = oldDefVersion - ..ref.oldImpVersion = oldImpVersion - ..ref.currentVersion = currentVersion - ..ref.sectionCount = sectionCount - ..ref.instSectionCount = instSectionCount - ..ref.reservedA = reservedA; -} - -@ffi.Packed(2) -final class PEFExportedSymbol extends ffi.Struct { - @UInt32() - external int classAndName; - - @UInt32() - external int symbolValue; - - @SInt16() - external int sectionIndex; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int classAndName, - required int symbolValue, - required int sectionIndex, - }) => $allocator() - ..ref.classAndName = classAndName - ..ref.symbolValue = symbolValue - ..ref.sectionIndex = sectionIndex; -} - -@ffi.Packed(2) -final class PEFExportedSymbolHashSlot extends ffi.Struct { - @UInt32() - external int countAndStart; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int countAndStart, - }) => - $allocator() - ..ref.countAndStart = countAndStart; -} - -final class PEFExportedSymbolKey extends ffi.Struct { - external UnnamedUnion$11 u; -} - -@ffi.Packed(2) -final class PEFImportedLibrary extends ffi.Struct { - @UInt32() - external int nameOffset; - - @UInt32() - external int oldImpVersion; - - @UInt32() - external int currentVersion; - - @UInt32() - external int importedSymbolCount; - - @UInt32() - external int firstImportedSymbol; - - @UInt8() - external int options; - - @UInt8() - external int reservedA; - - @UInt16() - external int reservedB; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nameOffset, - required int oldImpVersion, - required int currentVersion, - required int importedSymbolCount, - required int firstImportedSymbol, - required int options, - required int reservedA, - required int reservedB, - }) => $allocator() - ..ref.nameOffset = nameOffset - ..ref.oldImpVersion = oldImpVersion - ..ref.currentVersion = currentVersion - ..ref.importedSymbolCount = importedSymbolCount - ..ref.firstImportedSymbol = firstImportedSymbol - ..ref.options = options - ..ref.reservedA = reservedA - ..ref.reservedB = reservedB; -} - -@ffi.Packed(2) -final class PEFImportedSymbol extends ffi.Struct { - @UInt32() - external int classAndName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int classAndName, - }) => $allocator()..ref.classAndName = classAndName; -} - -@ffi.Packed(2) -final class PEFLoaderInfoHeader extends ffi.Struct { - @SInt32() - external int mainSection; - - @UInt32() - external int mainOffset; - - @SInt32() - external int initSection; - - @UInt32() - external int initOffset; - - @SInt32() - external int termSection; - - @UInt32() - external int termOffset; - - @UInt32() - external int importedLibraryCount; - - @UInt32() - external int totalImportedSymbolCount; - - @UInt32() - external int relocSectionCount; - - @UInt32() - external int relocInstrOffset; - - @UInt32() - external int loaderStringsOffset; - - @UInt32() - external int exportHashOffset; - - @UInt32() - external int exportHashTablePower; - - @UInt32() - external int exportedSymbolCount; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mainSection, - required int mainOffset, - required int initSection, - required int initOffset, - required int termSection, - required int termOffset, - required int importedLibraryCount, - required int totalImportedSymbolCount, - required int relocSectionCount, - required int relocInstrOffset, - required int loaderStringsOffset, - required int exportHashOffset, - required int exportHashTablePower, - required int exportedSymbolCount, - }) => $allocator() - ..ref.mainSection = mainSection - ..ref.mainOffset = mainOffset - ..ref.initSection = initSection - ..ref.initOffset = initOffset - ..ref.termSection = termSection - ..ref.termOffset = termOffset - ..ref.importedLibraryCount = importedLibraryCount - ..ref.totalImportedSymbolCount = totalImportedSymbolCount - ..ref.relocSectionCount = relocSectionCount - ..ref.relocInstrOffset = relocInstrOffset - ..ref.loaderStringsOffset = loaderStringsOffset - ..ref.exportHashOffset = exportHashOffset - ..ref.exportHashTablePower = exportHashTablePower - ..ref.exportedSymbolCount = exportedSymbolCount; -} - -@ffi.Packed(2) -final class PEFLoaderRelocationHeader extends ffi.Struct { - @UInt16() - external int sectionIndex; - - @UInt16() - external int reservedA; - - @UInt32() - external int relocCount; - - @UInt32() - external int firstRelocOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sectionIndex, - required int reservedA, - required int relocCount, - required int firstRelocOffset, - }) => $allocator() - ..ref.sectionIndex = sectionIndex - ..ref.reservedA = reservedA - ..ref.relocCount = relocCount - ..ref.firstRelocOffset = firstRelocOffset; -} - -typedef PEFRelocChunk = UInt16; - -@ffi.Packed(2) -final class PEFSectionHeader extends ffi.Struct { - @SInt32() - external int nameOffset; - - @UInt32() - external int defaultAddress; - - @UInt32() - external int totalLength; - - @UInt32() - external int unpackedLength; - - @UInt32() - external int containerLength; - - @UInt32() - external int containerOffset; - - @UInt8() - external int sectionKind; - - @UInt8() - external int shareKind; - - @UInt8() - external int alignment; - - @UInt8() - external int reservedA; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nameOffset, - required int defaultAddress, - required int totalLength, - required int unpackedLength, - required int containerLength, - required int containerOffset, - required int sectionKind, - required int shareKind, - required int alignment, - required int reservedA, - }) => $allocator() - ..ref.nameOffset = nameOffset - ..ref.defaultAddress = defaultAddress - ..ref.totalLength = totalLength - ..ref.unpackedLength = unpackedLength - ..ref.containerLength = containerLength - ..ref.containerOffset = containerOffset - ..ref.sectionKind = sectionKind - ..ref.shareKind = shareKind - ..ref.alignment = alignment - ..ref.reservedA = reservedA; -} - -final class PEFSplitHashWord extends ffi.Struct { - @UInt16() - external int nameLength; - - @UInt16() - external int hashValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nameLength, - required int hashValue, - }) => $allocator() - ..ref.nameLength = nameLength - ..ref.hashValue = hashValue; -} - -typedef PMBorderType = UInt16; -typedef PMColorSpaceModel = UInt32; - -enum PMDataFormat { - kPMDataFormatXMLDefault(0), - kPMDataFormatXMLMinimal(1), - kPMDataFormatXMLCompressed(2); - - final int value; - const PMDataFormat(this.value); - - static PMDataFormat fromValue(int value) => switch (value) { - 0 => kPMDataFormatXMLDefault, - 1 => kPMDataFormatXMLMinimal, - 2 => kPMDataFormatXMLCompressed, - _ => throw ArgumentError('Unknown value for PMDataFormat: $value'), - }; -} - -typedef PMDestinationType = UInt16; -typedef PMDuplexMode = UInt32; - -final class PMLanguageInfo extends ffi.Struct { - @ffi.Array.multi([33]) - external ffi.Array level; - - @ffi.Array.multi([33]) - external ffi.Array version; - - @ffi.Array.multi([33]) - external ffi.Array release; -} - -typedef PMLayoutDirection = UInt16; -typedef PMObject = ffi.Pointer; -typedef PMOrientation = UInt16; -typedef PMPPDDomain = UInt16; -typedef PMPageFormat = ffi.Pointer; - -enum PMPageToPaperMappingType { - kPMPageToPaperMappingNone(1), - kPMPageToPaperMappingScaleToFit(2); - - final int value; - const PMPageToPaperMappingType(this.value); - - static PMPageToPaperMappingType fromValue(int value) => switch (value) { - 1 => kPMPageToPaperMappingNone, - 2 => kPMPageToPaperMappingScaleToFit, - _ => throw ArgumentError( - 'Unknown value for PMPageToPaperMappingType: $value', - ), - }; -} - -typedef PMPaper = ffi.Pointer; -typedef PMPaperMargins = PMRect; -typedef PMPaperType = UInt32; -typedef PMPreset = ffi.Pointer; -typedef PMPrintDialogOptionFlags = OptionBits; -typedef PMPrintSession = ffi.Pointer; -typedef PMPrintSettings = ffi.Pointer; -typedef PMPrinter = ffi.Pointer; -typedef PMPrinterState = UInt16; -typedef PMQualityMode = UInt32; - -final class PMRect extends ffi.Struct { - @ffi.Double() - external double top; - - @ffi.Double() - external double left; - - @ffi.Double() - external double bottom; - - @ffi.Double() - external double right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double top, - required double left, - required double bottom, - required double right, - }) => $allocator() - ..ref.top = top - ..ref.left = left - ..ref.bottom = bottom - ..ref.right = right; -} - -final class PMResolution extends ffi.Struct { - @ffi.Double() - external double hRes; - - @ffi.Double() - external double vRes; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double hRes, - required double vRes, - }) => $allocator() - ..ref.hRes = hRes - ..ref.vRes = vRes; -} - -typedef PMScalingAlignment = UInt16; -typedef PMServer = ffi.Pointer; -typedef PRefCon = ffi.Pointer; - -final class ParamBlockRec extends ffi.Opaque {} - -typedef ParmBlkPtr = ffi.Pointer; - -sealed class PasteboardFlavorFlags { - static const kPasteboardFlavorNoFlags = 0; - static const kPasteboardFlavorSenderOnly = 1; - static const kPasteboardFlavorSenderTranslated = 2; - static const kPasteboardFlavorNotSaved = 4; - static const kPasteboardFlavorRequestOnly = 8; - static const kPasteboardFlavorSystemTranslated = 256; - static const kPasteboardFlavorPromised = 512; -} - -typedef PasteboardItemID = ffi.Pointer; -typedef PasteboardPromiseKeeperProcPtr = - ffi.Pointer>; -typedef PasteboardPromiseKeeperProcPtrFunction = - OSStatus Function( - PasteboardRef pasteboard, - PasteboardItemID item, - CFStringRef flavorType, - ffi.Pointer context, - ); -typedef DartPasteboardPromiseKeeperProcPtrFunction = - DartSInt32 Function( - PasteboardRef pasteboard, - PasteboardItemID item, - CFStringRef flavorType, - ffi.Pointer context, - ); -typedef PasteboardRef = ffi.Pointer; - -enum PasteboardStandardLocation { - kPasteboardStandardLocationTrash(1953657704), - kPasteboardStandardLocationUnknown(1970170734); - - final int value; - const PasteboardStandardLocation(this.value); - - static PasteboardStandardLocation fromValue(int value) => switch (value) { - 1953657704 => kPasteboardStandardLocationTrash, - 1970170734 => kPasteboardStandardLocationUnknown, - _ => throw ArgumentError( - 'Unknown value for PasteboardStandardLocation: $value', - ), - }; -} - -sealed class PasteboardSyncFlags { - static const kPasteboardModified = 1; - static const kPasteboardClientIsOwner = 2; -} - -typedef PatHandle = ffi.Pointer; -typedef PatPtr = ffi.Pointer; - -final class Pattern extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array pat; -} - -final class PhonemeDescriptor extends ffi.Struct { - @SInt16() - external int phonemeCount; - - @ffi.Array.multi([1]) - external ffi.Array thePhonemes; -} - -final class PhonemeInfo extends ffi.Struct { - @SInt16() - external int opcode; - - @ffi.Array.multi([16]) - external ffi.Array phStr; - - @ffi.Array.multi([32]) - external ffi.Array exampleStr; - - @SInt16() - external int hiliteStart; - - @SInt16() - external int hiliteEnd; -} - -typedef PhysicalAddress = ffi.Pointer; -typedef PicHandle = ffi.Pointer; -typedef PicPtr = ffi.Pointer; - -final class Picture extends ffi.Struct { - @ffi.Short() - external int picSize; - - external Rect picFrame; -} - -@ffi.Packed(2) -final class PixMap extends ffi.Struct { - external Ptr baseAddr; - - @ffi.Short() - external int rowBytes; - - external Rect bounds; - - @ffi.Short() - external int pmVersion; - - @ffi.Short() - external int packType; - - @SInt32() - external int packSize; - - @Fixed() - external int hRes; - - @Fixed() - external int vRes; - - @ffi.Short() - external int pixelType; - - @ffi.Short() - external int pixelSize; - - @ffi.Short() - external int cmpCount; - - @ffi.Short() - external int cmpSize; - - @OSType() - external int pixelFormat; - - external CTabHandle pmTable; - - external ffi.Pointer pmExt; -} - -typedef PixMapHandle = ffi.Pointer; -typedef PixMapPtr = ffi.Pointer; - -@ffi.Packed(2) -final class PixPat extends ffi.Struct { - @ffi.Short() - external int patType; - - external PixMapHandle patMap; - - external Handle patData; - - external Handle patXData; - - @ffi.Short() - external int patXValid; - - external Handle patXMap; - - external Pattern pat1Data; -} - -typedef PixPatHandle = ffi.Pointer; -typedef PixPatPtr = ffi.Pointer; -typedef PlotIconRefFlags = UInt32; - -final class Point extends ffi.Struct { - @ffi.Short() - external int v; - - @ffi.Short() - external int h; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - required int h, - }) => $allocator() - ..ref.v = v - ..ref.h = h; -} - -typedef PointPtr = ffi.Pointer; -typedef PolyHandle = ffi.Pointer; -typedef PolyPtr = ffi.Pointer; -typedef Polygon = MacPolygon; -typedef PrinterStatusOpcode = SInt32; -typedef ProcHandle = ffi.Pointer; -typedef ProcInfoType = ffi.UnsignedLong; -typedef DartProcInfoType = int; -typedef ProcPtr = ffi.Pointer>; -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef ProcessApplicationTransformState = UInt32; - -@ffi.Packed(2) -final class ProcessInfoExtendedRec extends ffi.Struct { - @UInt32() - external int processInfoLength; - - external StringPtr processName; - - external ProcessSerialNumber processNumber; - - @UInt32() - external int processType; - - @OSType() - external int processSignature; - - @UInt32() - external int processMode; - - external Ptr processLocation; - - @UInt32() - external int processSize; - - @UInt32() - external int processFreeMem; - - external ProcessSerialNumber processLauncher; - - @UInt32() - external int processLaunchDate; - - @UInt32() - external int processActiveTime; - - external FSRefPtr processAppRef; - - @UInt32() - external int processTempMemTotal; - - @UInt32() - external int processPurgeableTempMemTotal; -} - -typedef ProcessInfoExtendedRecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class ProcessInfoRec extends ffi.Struct { - @UInt32() - external int processInfoLength; - - external StringPtr processName; - - external ProcessSerialNumber processNumber; - - @UInt32() - external int processType; - - @OSType() - external int processSignature; - - @UInt32() - external int processMode; - - external Ptr processLocation; - - @UInt32() - external int processSize; - - @UInt32() - external int processFreeMem; - - external ProcessSerialNumber processLauncher; - - @UInt32() - external int processLaunchDate; - - @UInt32() - external int processActiveTime; - - external FSRefPtr processAppRef; -} - -typedef ProcessInfoRecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class ProcessSerialNumber extends ffi.Struct { - @UInt32() - external int highLongOfPSN; - - @UInt32() - external int lowLongOfPSN; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int highLongOfPSN, - required int lowLongOfPSN, - }) => $allocator() - ..ref.highLongOfPSN = highLongOfPSN - ..ref.lowLongOfPSN = lowLongOfPSN; -} - -typedef ProcessSerialNumberPtr = ffi.Pointer; -typedef PropCharProperties = UInt16; - -final class PropLookupSegment extends ffi.Struct { - @UInt16() - external int lastGlyph; - - @UInt16() - external int firstGlyph; - - @UInt16() - external int value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lastGlyph, - required int firstGlyph, - required int value, - }) => $allocator() - ..ref.lastGlyph = lastGlyph - ..ref.firstGlyph = firstGlyph - ..ref.value = value; -} - -final class PropLookupSingle extends ffi.Struct { - @UInt16() - external int glyph; - - @PropCharProperties() - external int props; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int glyph, - required int props, - }) => $allocator() - ..ref.glyph = glyph - ..ref.props = props; -} - -@ffi.Packed(2) -final class PropTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt16() - external int format; - - @PropCharProperties() - external int defaultProps; - - external SFNTLookupTable lookup; -} - -typedef Ptr = ffi.Pointer; -typedef QDArcProcPtr = ffi.Pointer>; -typedef QDArcProcPtrFunction = - ffi.Void Function( - GrafVerb verb, - ffi.Pointer r, - ffi.Short startAngle, - ffi.Short arcAngle, - ); -typedef DartQDArcProcPtrFunction = - void Function( - DartSInt8 verb, - ffi.Pointer r, - int startAngle, - int arcAngle, - ); -typedef QDArcUPP = QDArcProcPtr; -typedef QDBitsProcPtr = ffi.Pointer>; -typedef QDBitsProcPtrFunction = - ffi.Void Function( - ffi.Pointer srcBits, - ffi.Pointer srcRect, - ffi.Pointer dstRect, - ffi.Short mode, - RgnHandle maskRgn, - ); -typedef DartQDBitsProcPtrFunction = - void Function( - ffi.Pointer srcBits, - ffi.Pointer srcRect, - ffi.Pointer dstRect, - int mode, - RgnHandle maskRgn, - ); -typedef QDBitsUPP = QDBitsProcPtr; -typedef QDCommentProcPtr = - ffi.Pointer>; -typedef QDCommentProcPtrFunction = - ffi.Void Function(ffi.Short kind, ffi.Short dataSize, Handle dataHandle); -typedef DartQDCommentProcPtrFunction = - void Function(int kind, int dataSize, Handle dataHandle); -typedef QDCommentUPP = QDCommentProcPtr; -typedef QDErr = ffi.Short; -typedef DartQDErr = int; -typedef QDGetPicProcPtr = - ffi.Pointer>; -typedef QDGetPicProcPtrFunction = - ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); -typedef DartQDGetPicProcPtrFunction = - void Function(ffi.Pointer dataPtr, int byteCount); -typedef QDGetPicUPP = QDGetPicProcPtr; -typedef QDJShieldCursorProcPtr = - ffi.Pointer>; -typedef QDJShieldCursorProcPtrFunction = - ffi.Void Function( - ffi.Short left, - ffi.Short top, - ffi.Short right, - ffi.Short bottom, - ); -typedef DartQDJShieldCursorProcPtrFunction = - void Function(int left, int top, int right, int bottom); -typedef QDJShieldCursorUPP = QDJShieldCursorProcPtr; -typedef QDLineProcPtr = ffi.Pointer>; -typedef QDLineProcPtrFunction = ffi.Void Function(Point newPt); -typedef DartQDLineProcPtrFunction = void Function(Point newPt); -typedef QDLineUPP = QDLineProcPtr; -typedef QDOpcodeProcPtr = - ffi.Pointer>; -typedef QDOpcodeProcPtrFunction = - ffi.Void Function( - ffi.Pointer fromRect, - ffi.Pointer toRect, - UInt16 opcode, - SInt16 version, - ); -typedef DartQDOpcodeProcPtrFunction = - void Function( - ffi.Pointer fromRect, - ffi.Pointer toRect, - DartUInt16 opcode, - DartSInt16 version, - ); -typedef QDOpcodeUPP = QDOpcodeProcPtr; -typedef QDOvalProcPtr = ffi.Pointer>; -typedef QDOvalProcPtrFunction = - ffi.Void Function(GrafVerb verb, ffi.Pointer r); -typedef DartQDOvalProcPtrFunction = - void Function(DartSInt8 verb, ffi.Pointer r); -typedef QDOvalUPP = QDOvalProcPtr; -typedef QDPolyProcPtr = ffi.Pointer>; -typedef QDPolyProcPtrFunction = - ffi.Void Function(GrafVerb verb, PolyHandle poly); -typedef DartQDPolyProcPtrFunction = - void Function(DartSInt8 verb, PolyHandle poly); -typedef QDPolyUPP = QDPolyProcPtr; -typedef QDPrinterStatusProcPtr = - ffi.Pointer>; -typedef QDPrinterStatusProcPtrFunction = - OSStatus Function( - PrinterStatusOpcode opcode, - CGrafPtr currentPort, - ffi.Pointer printerStatus, - ); -typedef DartQDPrinterStatusProcPtrFunction = - DartSInt32 Function( - DartSInt32 opcode, - CGrafPtr currentPort, - ffi.Pointer printerStatus, - ); -typedef QDPrinterStatusUPP = QDPrinterStatusProcPtr; -typedef QDPutPicProcPtr = - ffi.Pointer>; -typedef QDPutPicProcPtrFunction = - ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); -typedef DartQDPutPicProcPtrFunction = - void Function(ffi.Pointer dataPtr, int byteCount); -typedef QDPutPicUPP = QDPutPicProcPtr; -typedef QDRRectProcPtr = - ffi.Pointer>; -typedef QDRRectProcPtrFunction = - ffi.Void Function( - GrafVerb verb, - ffi.Pointer r, - ffi.Short ovalWidth, - ffi.Short ovalHeight, - ); -typedef DartQDRRectProcPtrFunction = - void Function( - DartSInt8 verb, - ffi.Pointer r, - int ovalWidth, - int ovalHeight, - ); -typedef QDRRectUPP = QDRRectProcPtr; -typedef QDRectProcPtr = ffi.Pointer>; -typedef QDRectProcPtrFunction = - ffi.Void Function(GrafVerb verb, ffi.Pointer r); -typedef DartQDRectProcPtrFunction = - void Function(DartSInt8 verb, ffi.Pointer r); -typedef QDRectUPP = QDRectProcPtr; -typedef QDRegionParseDirection = SInt32; -typedef QDRgnProcPtr = ffi.Pointer>; -typedef QDRgnProcPtrFunction = ffi.Void Function(GrafVerb verb, RgnHandle rgn); -typedef DartQDRgnProcPtrFunction = void Function(DartSInt8 verb, RgnHandle rgn); -typedef QDRgnUPP = QDRgnProcPtr; -typedef QDStdGlyphsProcPtr = - ffi.Pointer>; -typedef QDStdGlyphsProcPtrFunction = - OSStatus Function(ffi.Pointer dataStream, ByteCount size); -typedef DartQDStdGlyphsProcPtrFunction = - DartSInt32 Function(ffi.Pointer dataStream, DartByteCount size); -typedef QDStdGlyphsUPP = QDStdGlyphsProcPtr; -typedef QDTextProcPtr = ffi.Pointer>; -typedef QDTextProcPtrFunction = - ffi.Void Function( - ffi.Short byteCount, - ffi.Pointer textBuf, - Point numer, - Point denom, - ); -typedef DartQDTextProcPtrFunction = - void Function( - int byteCount, - ffi.Pointer textBuf, - Point numer, - Point denom, - ); -typedef QDTextUPP = QDTextProcPtr; -typedef QDTxMeasProcPtr = - ffi.Pointer>; -typedef QDTxMeasProcPtrFunction = - ffi.Short Function( - ffi.Short byteCount, - ffi.Pointer textAddr, - ffi.Pointer numer, - ffi.Pointer denom, - ffi.Pointer info, - ); -typedef DartQDTxMeasProcPtrFunction = - int Function( - int byteCount, - ffi.Pointer textAddr, - ffi.Pointer numer, - ffi.Pointer denom, - ffi.Pointer info, - ); -typedef QDTxMeasUPP = QDTxMeasProcPtr; - -@ffi.Packed(2) -final class QElem extends ffi.Struct { - external ffi.Pointer qLink; - - @ffi.Short() - external int qType; - - @ffi.Array.multi([1]) - external ffi.Array qData; -} - -typedef QElemPtr = ffi.Pointer; - -final class QHdr extends ffi.Opaque {} - -typedef QHdrPtr = ffi.Pointer; -typedef QTypes = SignedByte; -typedef RDFlagsType = UInt8; - -final class RGBColor extends ffi.Struct { - @ffi.UnsignedShort() - external int red; - - @ffi.UnsignedShort() - external int green; - - @ffi.UnsignedShort() - external int blue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int red, - required int green, - required int blue, - }) => $allocator() - ..ref.red = red - ..ref.green = green - ..ref.blue = blue; -} - -final class ROTAGlyphEntry extends ffi.Struct { - @SInt16() - external int GlyphIndexOffset; - - @SInt16() - external int HBaselineOffset; - - @SInt16() - external int VBaselineOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int GlyphIndexOffset, - required int HBaselineOffset, - required int VBaselineOffset, - }) => $allocator() - ..ref.GlyphIndexOffset = GlyphIndexOffset - ..ref.HBaselineOffset = HBaselineOffset - ..ref.VBaselineOffset = VBaselineOffset; -} - -@ffi.Packed(2) -final class ROTAHeader extends ffi.Struct { - @Fixed() - external int Version; - - @UInt16() - external int Flags; - - @UInt16() - external int NMasters; - - @UInt16() - external int FirstGlyph; - - @UInt16() - external int LastGlyph; - - external SFNTLookupTable lookup; -} - -typedef RTAType = SInt8; - -final class Rect extends ffi.Struct { - @ffi.Short() - external int top; - - @ffi.Short() - external int left; - - @ffi.Short() - external int bottom; - - @ffi.Short() - external int right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int top, - required int left, - required int bottom, - required int right, - }) => $allocator() - ..ref.top = top - ..ref.left = left - ..ref.bottom = bottom - ..ref.right = right; -} - -typedef RectPtr = ffi.Pointer; -typedef RedrawBackgroundProcPtr = - ffi.Pointer>; -typedef RedrawBackgroundProcPtrFunction = - Boolean Function( - ATSUTextLayout iLayout, - UniCharArrayOffset iTextOffset, - UniCharCount iTextLength, - ffi.Pointer iUnhighlightArea, - ItemCount iTrapezoidCount, - ); -typedef DartRedrawBackgroundProcPtrFunction = - DartBoolean Function( - ATSUTextLayout iLayout, - DartUniCharArrayOffset iTextOffset, - DartUniCharCount iTextLength, - ffi.Pointer iUnhighlightArea, - DartItemCount iTrapezoidCount, - ); -typedef RedrawBackgroundUPP = RedrawBackgroundProcPtr; -typedef RegionCode = SInt16; -typedef RegionToRectsProcPtr = - ffi.Pointer>; -typedef RegionToRectsProcPtrFunction = - OSStatus Function( - UInt16 message, - RgnHandle rgn, - ffi.Pointer rect, - ffi.Pointer refCon, - ); -typedef DartRegionToRectsProcPtrFunction = - DartSInt32 Function( - DartUInt16 message, - RgnHandle rgn, - ffi.Pointer rect, - ffi.Pointer refCon, - ); -typedef RegionToRectsUPP = RegionToRectsProcPtr; -typedef Register68kProcPtr = - ffi.Pointer>; -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - -final class RegisterInformation extends ffi.Struct { - external ffi.Pointer __unusedRegisterInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedRegisterInformationField, - }) => $allocator() - ..ref.__unusedRegisterInformationField = $unusedRegisterInformationField; -} - -final class RegisterInformationPowerPC extends ffi.Struct { - external UnsignedWide R0; - - external UnsignedWide R1; - - external UnsignedWide R2; - - external UnsignedWide R3; - - external UnsignedWide R4; - - external UnsignedWide R5; - - external UnsignedWide R6; - - external UnsignedWide R7; - - external UnsignedWide R8; - - external UnsignedWide R9; - - external UnsignedWide R10; - - external UnsignedWide R11; - - external UnsignedWide R12; - - external UnsignedWide R13; - - external UnsignedWide R14; - - external UnsignedWide R15; - - external UnsignedWide R16; - - external UnsignedWide R17; - - external UnsignedWide R18; - - external UnsignedWide R19; - - external UnsignedWide R20; - - external UnsignedWide R21; - - external UnsignedWide R22; - - external UnsignedWide R23; - - external UnsignedWide R24; - - external UnsignedWide R25; - - external UnsignedWide R26; - - external UnsignedWide R27; - - external UnsignedWide R28; - - external UnsignedWide R29; - - external UnsignedWide R30; - - external UnsignedWide R31; -} - -@ffi.Packed(2) -final class RegisteredComponentInstanceRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef RegisteredComponentInstanceRecordPtr = - ffi.Pointer; - -@ffi.Packed(2) -final class RegisteredComponentRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef RegisteredComponentRecordPtr = ffi.Pointer; -typedef ResAttributes = SInt16; -typedef ResErrProcPtr = ffi.Pointer>; -typedef ResErrProcPtrFunction = ffi.Void Function(OSErr thErr); -typedef DartResErrProcPtrFunction = void Function(DartSInt16 thErr); -typedef ResErrUPP = ResErrProcPtr; -typedef ResFileAttributes = SInt16; -typedef ResFileRefNum = FSIORefNum; -typedef ResID = SInt16; -typedef ResType = FourCharCode; -typedef ResTypePtr = ffi.Pointer; -typedef ResourceCount = SInt16; -typedef ResourceEndianFilterPtr = - ffi.Pointer>; -typedef ResourceEndianFilterPtrFunction = - OSErr Function(Handle theResource, Boolean currentlyNativeEndian); -typedef DartResourceEndianFilterPtrFunction = - DartSInt16 Function(Handle theResource, DartBoolean currentlyNativeEndian); -typedef ResourceIndex = SInt16; - -@ffi.Packed(2) -final class ResourceSpec extends ffi.Struct { - @OSType() - external int resType; - - @SInt16() - external int resID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int resType, - required int resID, - }) => $allocator() - ..ref.resType = resType - ..ref.resID = resID; -} - -typedef RgnHandle = ffi.Pointer; - -@ffi.Packed(2) -final class RoutineDescriptor extends ffi.Struct { - @UInt16() - external int goMixedModeTrap; - - @SInt8() - external int version; - - @RDFlagsType() - external int routineDescriptorFlags; - - @UInt32() - external int reserved1; - - @UInt8() - external int reserved2; - - @UInt8() - external int selectorInfo; - - @UInt16() - external int routineCount; - - @ffi.Array.multi([1]) - external ffi.Array routineRecords; -} - -typedef RoutineDescriptorHandle = ffi.Pointer; -typedef RoutineDescriptorPtr = ffi.Pointer; -typedef RoutineFlagsType = ffi.UnsignedShort; -typedef DartRoutineFlagsType = int; - -@ffi.Packed(2) -final class RoutineRecord extends ffi.Struct { - @ProcInfoType() - external int procInfo; - - @SInt8() - external int reserved1; - - @ISAType() - external int ISA; - - @RoutineFlagsType() - external int routineFlags; - - external ProcPtr procDescriptor; - - @UInt32() - external int reserved2; - - @UInt32() - external int selector; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int procInfo, - required int reserved1, - required int ISA, - required int routineFlags, - required ProcPtr procDescriptor, - required int reserved2, - required int selector, - }) => $allocator() - ..ref.procInfo = procInfo - ..ref.reserved1 = reserved1 - ..ref.ISA = ISA - ..ref.routineFlags = routineFlags - ..ref.procDescriptor = procDescriptor - ..ref.reserved2 = reserved2 - ..ref.selector = selector; -} - -typedef RoutineRecordHandle = ffi.Pointer; -typedef RoutineRecordPtr = ffi.Pointer; - -/// RoutingConfiguration -extension RoutingConfiguration on AVAudioSession { - /// availableInputs - objc.NSArray? get availableInputs { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.availableInputs', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_availableInputs); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// currentRoute - AVAudioSessionRouteDescription get currentRoute { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.currentRoute', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_currentRoute); - return AVAudioSessionRouteDescription.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// prefersInterruptionOnRouteDisconnect - bool get prefersInterruptionOnRouteDisconnect { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.prefersInterruptionOnRouteDisconnect', - iOS: (false, (17, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_13h8okt( - _$$ref.pointer, - _sel_prefersInterruptionOnRouteDisconnect, - ); - } - - /// setAggregatedIOPreference:error: - bool setAggregatedIOPreference(AVAudioSessionIOType inIOType) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setAggregatedIOPreference:error:', - iOS: (false, (10, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_on2yfn( - _$$ref.pointer, - _sel_setAggregatedIOPreference_error_, - inIOType.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPrefersInterruptionOnRouteDisconnect:error: - bool setPrefersInterruptionOnRouteDisconnect(bool inValue) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPrefersInterruptionOnRouteDisconnect:error:', - iOS: (false, (17, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1d50bq7( - _$$ref.pointer, - _sel_setPrefersInterruptionOnRouteDisconnect_error_, - inValue, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setSupportsMultichannelContent:error: - bool setSupportsMultichannelContent(bool inValue) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setSupportsMultichannelContent:error:', - iOS: (false, (15, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1d50bq7( - _$$ref.pointer, - _sel_setSupportsMultichannelContent_error_, - inValue, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// supportsMultichannelContent - bool get supportsMultichannelContent { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.supportsMultichannelContent', - iOS: (false, (15, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_13h8okt( - _$$ref.pointer, - _sel_supportsMultichannelContent, - ); - } -} - -typedef RoutingFlags = UInt32; - -@ffi.Packed(2) -final class RoutingResourceEntry extends ffi.Struct { - @OSType() - external int creator; - - @OSType() - external int fileType; - - @OSType() - external int targetFolder; - - @OSType() - external int destinationFolder; - - @OSType() - external int reservedField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int creator, - required int fileType, - required int targetFolder, - required int destinationFolder, - required int reservedField, - }) => $allocator() - ..ref.creator = creator - ..ref.fileType = fileType - ..ref.targetFolder = targetFolder - ..ref.destinationFolder = destinationFolder - ..ref.reservedField = reservedField; -} - -typedef RoutingResourceHandle = ffi.Pointer; -typedef RoutingResourcePtr = ffi.Pointer; -typedef RsrcChainLocation = SInt16; - -final class RuleBasedTrslRecord extends ffi.Struct { - @ffi.Short() - external int sourceType; - - @ffi.Short() - external int targetType; - - @ffi.Short() - external int formatNumber; - - @ffi.Short() - external int propertyFlag; - - @ffi.Short() - external int numberOfRules; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sourceType, - required int targetType, - required int formatNumber, - required int propertyFlag, - required int numberOfRules, - }) => $allocator() - ..ref.sourceType = sourceType - ..ref.targetType = targetType - ..ref.formatNumber = formatNumber - ..ref.propertyFlag = propertyFlag - ..ref.numberOfRules = numberOfRules; -} - -final class SFNTLookupArrayHeader extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array lookupValues; -} - -final class SFNTLookupBinarySearchHeader extends ffi.Struct { - @UInt16() - external int unitSize; - - @UInt16() - external int nUnits; - - @UInt16() - external int searchRange; - - @UInt16() - external int entrySelector; - - @UInt16() - external int rangeShift; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int unitSize, - required int nUnits, - required int searchRange, - required int entrySelector, - required int rangeShift, - }) => $allocator() - ..ref.unitSize = unitSize - ..ref.nUnits = nUnits - ..ref.searchRange = searchRange - ..ref.entrySelector = entrySelector - ..ref.rangeShift = rangeShift; -} - -final class SFNTLookupFormatSpecificHeader extends ffi.Union { - external SFNTLookupArrayHeader theArray; - - external SFNTLookupSegmentHeader segment; - - external SFNTLookupSingleHeader single; - - external SFNTLookupTrimmedArrayHeader trimmedArray; - - external SFNTLookupVectorHeader vector; -} - -typedef SFNTLookupKind = UInt32; -typedef SFNTLookupOffset = UInt16; - -final class SFNTLookupSegment extends ffi.Struct { - @UInt16() - external int lastGlyph; - - @UInt16() - external int firstGlyph; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -final class SFNTLookupSegmentHeader extends ffi.Struct { - external SFNTLookupBinarySearchHeader binSearch; - - @ffi.Array.multi([1]) - external ffi.Array segments; -} - -final class SFNTLookupSingle extends ffi.Struct { - @UInt16() - external int glyph; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -final class SFNTLookupSingleHeader extends ffi.Struct { - external SFNTLookupBinarySearchHeader binSearch; - - @ffi.Array.multi([1]) - external ffi.Array entries; -} - -final class SFNTLookupTable extends ffi.Struct { - @SFNTLookupTableFormat() - external int format; - - external SFNTLookupFormatSpecificHeader fsHeader; -} - -typedef SFNTLookupTableFormat = UInt16; -typedef SFNTLookupTableHandle = ffi.Pointer; -typedef SFNTLookupTablePtr = ffi.Pointer; - -final class SFNTLookupTrimmedArrayHeader extends ffi.Struct { - @UInt16() - external int firstGlyph; - - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array valueArray; -} - -typedef SFNTLookupValue = UInt16; - -final class SFNTLookupVectorHeader extends ffi.Struct { - @UInt16() - external int valueSize; - - @UInt16() - external int firstGlyph; - - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array values; -} - -typedef SInt = ffi.Int; -typedef DartSInt = int; -typedef SInt16 = ffi.Short; -typedef DartSInt16 = int; -typedef SInt32 = ffi.Int; -typedef DartSInt32 = int; -typedef SInt64 = ffi.LongLong; -typedef DartSInt64 = int; -typedef SInt8 = ffi.SignedChar; -typedef DartSInt8 = int; -typedef SKDocumentID = CFIndex; - -enum SKDocumentIndexState { - kSKDocumentStateNotIndexed(0), - kSKDocumentStateIndexed(1), - kSKDocumentStateAddPending(2), - kSKDocumentStateDeletePending(3); - - final int value; - const SKDocumentIndexState(this.value); - - static SKDocumentIndexState fromValue(int value) => switch (value) { - 0 => kSKDocumentStateNotIndexed, - 1 => kSKDocumentStateIndexed, - 2 => kSKDocumentStateAddPending, - 3 => kSKDocumentStateDeletePending, - _ => throw ArgumentError('Unknown value for SKDocumentIndexState: $value'), - }; -} - -typedef SKDocumentRef = CFTypeRef; -typedef SKIndexDocumentIteratorRef = ffi.Pointer<__SKIndexDocumentIterator>; -typedef SKIndexRef = ffi.Pointer<__SKIndex>; - -enum SKIndexType { - kSKIndexUnknown(0), - kSKIndexInverted(1), - kSKIndexVector(2), - kSKIndexInvertedVector(3); - - final int value; - const SKIndexType(this.value); - - static SKIndexType fromValue(int value) => switch (value) { - 0 => kSKIndexUnknown, - 1 => kSKIndexInverted, - 2 => kSKIndexVector, - 3 => kSKIndexInvertedVector, - _ => throw ArgumentError('Unknown value for SKIndexType: $value'), - }; -} - -typedef SKSearchGroupRef = ffi.Pointer<__SKSearchGroup>; -typedef SKSearchOptions = UInt32; -typedef SKSearchRef = ffi.Pointer<__SKSearch>; -typedef SKSearchResultsFilterCallBack = - ffi.Pointer>; -typedef SKSearchResultsFilterCallBackFunction = - Boolean Function( - SKIndexRef inIndex, - SKDocumentRef inDocument, - ffi.Pointer inContext, - ); -typedef DartSKSearchResultsFilterCallBackFunction = - DartBoolean Function( - SKIndexRef inIndex, - SKDocumentRef inDocument, - ffi.Pointer inContext, - ); -typedef SKSearchResultsRef = ffi.Pointer<__SKSearchResults>; - -enum SKSearchType { - kSKSearchRanked(0), - kSKSearchBooleanRanked(1), - kSKSearchRequiredRanked(2), - kSKSearchPrefixRanked(3); - - final int value; - const SKSearchType(this.value); - - static SKSearchType fromValue(int value) => switch (value) { - 0 => kSKSearchRanked, - 1 => kSKSearchBooleanRanked, - 2 => kSKSearchRequiredRanked, - 3 => kSKSearchPrefixRanked, - _ => throw ArgumentError('Unknown value for SKSearchType: $value'), - }; -} - -typedef SKSummaryRef = ffi.Pointer<__SKSummary>; - -final class SMPTETime extends ffi.Struct { - @SInt16() - external int mSubframes; - - @SInt16() - external int mSubframeDivisor; - - @UInt32() - external int mCounter; - - @UInt32() - external int mTypeAsInt; - - SMPTETimeType get mType => SMPTETimeType.fromValue(mTypeAsInt); - set mType(SMPTETimeType value) => mTypeAsInt = value.value; - - @UInt32() - external int mFlags; - - @SInt16() - external int mHours; - - @SInt16() - external int mMinutes; - - @SInt16() - external int mSeconds; - - @SInt16() - external int mFrames; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mSubframes, - required int mSubframeDivisor, - required int mCounter, - required SMPTETimeType mType, - required int mFlags, - required int mHours, - required int mMinutes, - required int mSeconds, - required int mFrames, - }) => $allocator() - ..ref.mSubframes = mSubframes - ..ref.mSubframeDivisor = mSubframeDivisor - ..ref.mCounter = mCounter - ..ref.mType = mType - ..ref.mFlags = mFlags - ..ref.mHours = mHours - ..ref.mMinutes = mMinutes - ..ref.mSeconds = mSeconds - ..ref.mFrames = mFrames; -} - -sealed class SMPTETimeFlags { - static const kSMPTETimeUnknown = 0; - static const kSMPTETimeValid = 1; - static const kSMPTETimeRunning = 2; -} - -enum SMPTETimeType { - kSMPTETimeType24(0), - kSMPTETimeType25(1), - kSMPTETimeType30Drop(2), - kSMPTETimeType30(3), - kSMPTETimeType2997(4), - kSMPTETimeType2997Drop(5), - kSMPTETimeType60(6), - kSMPTETimeType5994(7), - kSMPTETimeType60Drop(8), - kSMPTETimeType5994Drop(9), - kSMPTETimeType50(10), - kSMPTETimeType2398(11); - - final int value; - const SMPTETimeType(this.value); - - static SMPTETimeType fromValue(int value) => switch (value) { - 0 => kSMPTETimeType24, - 1 => kSMPTETimeType25, - 2 => kSMPTETimeType30Drop, - 3 => kSMPTETimeType30, - 4 => kSMPTETimeType2997, - 5 => kSMPTETimeType2997Drop, - 6 => kSMPTETimeType60, - 7 => kSMPTETimeType5994, - 8 => kSMPTETimeType60Drop, - 9 => kSMPTETimeType5994Drop, - 10 => kSMPTETimeType50, - 11 => kSMPTETimeType2398, - _ => throw ArgumentError('Unknown value for SMPTETimeType: $value'), - }; -} - -typedef SRefCon = ffi.Pointer; - -enum SSLAuthenticate { - kNeverAuthenticate(0), - kAlwaysAuthenticate(1), - kTryAuthenticate(2); - - final int value; - const SSLAuthenticate(this.value); - - static SSLAuthenticate fromValue(int value) => switch (value) { - 0 => kNeverAuthenticate, - 1 => kAlwaysAuthenticate, - 2 => kTryAuthenticate, - _ => throw ArgumentError('Unknown value for SSLAuthenticate: $value'), - }; -} - -typedef SSLCipherSuite = ffi.Uint16; -typedef DartSSLCipherSuite = int; - -enum SSLCiphersuiteGroup { - kSSLCiphersuiteGroupDefault(0), - kSSLCiphersuiteGroupCompatibility(1), - kSSLCiphersuiteGroupLegacy(2), - kSSLCiphersuiteGroupATS(3), - kSSLCiphersuiteGroupATSCompatibility(4); - - final int value; - const SSLCiphersuiteGroup(this.value); - - static SSLCiphersuiteGroup fromValue(int value) => switch (value) { - 0 => kSSLCiphersuiteGroupDefault, - 1 => kSSLCiphersuiteGroupCompatibility, - 2 => kSSLCiphersuiteGroupLegacy, - 3 => kSSLCiphersuiteGroupATS, - 4 => kSSLCiphersuiteGroupATSCompatibility, - _ => throw ArgumentError('Unknown value for SSLCiphersuiteGroup: $value'), - }; -} - -enum SSLClientCertificateState { - kSSLClientCertNone(0), - kSSLClientCertRequested(1), - kSSLClientCertSent(2), - kSSLClientCertRejected(3); - - final int value; - const SSLClientCertificateState(this.value); - - static SSLClientCertificateState fromValue(int value) => switch (value) { - 0 => kSSLClientCertNone, - 1 => kSSLClientCertRequested, - 2 => kSSLClientCertSent, - 3 => kSSLClientCertRejected, - _ => throw ArgumentError( - 'Unknown value for SSLClientCertificateState: $value', - ), - }; -} - -typedef SSLConnectionRef = ffi.Pointer; - -enum SSLConnectionType { - kSSLStreamType(0), - kSSLDatagramType(1); - - final int value; - const SSLConnectionType(this.value); - - static SSLConnectionType fromValue(int value) => switch (value) { - 0 => kSSLStreamType, - 1 => kSSLDatagramType, - _ => throw ArgumentError('Unknown value for SSLConnectionType: $value'), - }; -} - -final class SSLContext extends ffi.Opaque {} - -typedef SSLContextRef = ffi.Pointer; - -enum SSLProtocol { - kSSLProtocolUnknown(0), - kTLSProtocol1(4), - kTLSProtocol11(7), - kTLSProtocol12(8), - kDTLSProtocol1(9), - kTLSProtocol13(10), - kDTLSProtocol12(11), - kTLSProtocolMaxSupported(999), - kSSLProtocol2(1), - kSSLProtocol3(2), - kSSLProtocol3Only(3), - kTLSProtocol1Only(5), - kSSLProtocolAll(6); - - final int value; - const SSLProtocol(this.value); - - static SSLProtocol fromValue(int value) => switch (value) { - 0 => kSSLProtocolUnknown, - 4 => kTLSProtocol1, - 7 => kTLSProtocol11, - 8 => kTLSProtocol12, - 9 => kDTLSProtocol1, - 10 => kTLSProtocol13, - 11 => kDTLSProtocol12, - 999 => kTLSProtocolMaxSupported, - 1 => kSSLProtocol2, - 2 => kSSLProtocol3, - 3 => kSSLProtocol3Only, - 5 => kTLSProtocol1Only, - 6 => kSSLProtocolAll, - _ => throw ArgumentError('Unknown value for SSLProtocol: $value'), - }; -} - -enum SSLProtocolSide { - kSSLServerSide(0), - kSSLClientSide(1); - - final int value; - const SSLProtocolSide(this.value); - - static SSLProtocolSide fromValue(int value) => switch (value) { - 0 => kSSLServerSide, - 1 => kSSLClientSide, - _ => throw ArgumentError('Unknown value for SSLProtocolSide: $value'), - }; -} - -typedef SSLReadFunc = ffi.Pointer>; -typedef SSLReadFuncFunction = - OSStatus Function( - SSLConnectionRef connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef DartSSLReadFuncFunction = - DartSInt32 Function( - SSLConnectionRef connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); - -enum SSLSessionOption { - kSSLSessionOptionBreakOnServerAuth(0), - kSSLSessionOptionBreakOnCertRequested(1), - kSSLSessionOptionBreakOnClientAuth(2), - kSSLSessionOptionFalseStart(3), - kSSLSessionOptionSendOneByteRecord(4), - kSSLSessionOptionAllowServerIdentityChange(5), - kSSLSessionOptionFallback(6), - kSSLSessionOptionBreakOnClientHello(7), - kSSLSessionOptionAllowRenegotiation(8), - kSSLSessionOptionEnableSessionTickets(9); - - final int value; - const SSLSessionOption(this.value); - - static SSLSessionOption fromValue(int value) => switch (value) { - 0 => kSSLSessionOptionBreakOnServerAuth, - 1 => kSSLSessionOptionBreakOnCertRequested, - 2 => kSSLSessionOptionBreakOnClientAuth, - 3 => kSSLSessionOptionFalseStart, - 4 => kSSLSessionOptionSendOneByteRecord, - 5 => kSSLSessionOptionAllowServerIdentityChange, - 6 => kSSLSessionOptionFallback, - 7 => kSSLSessionOptionBreakOnClientHello, - 8 => kSSLSessionOptionAllowRenegotiation, - 9 => kSSLSessionOptionEnableSessionTickets, - _ => throw ArgumentError('Unknown value for SSLSessionOption: $value'), - }; -} - -enum SSLSessionState { - kSSLIdle(0), - kSSLHandshake(1), - kSSLConnected(2), - kSSLClosed(3), - kSSLAborted(4); - - final int value; - const SSLSessionState(this.value); - - static SSLSessionState fromValue(int value) => switch (value) { - 0 => kSSLIdle, - 1 => kSSLHandshake, - 2 => kSSLConnected, - 3 => kSSLClosed, - 4 => kSSLAborted, - _ => throw ArgumentError('Unknown value for SSLSessionState: $value'), - }; -} - -typedef SSLWriteFunc = ffi.Pointer>; -typedef SSLWriteFuncFunction = - OSStatus Function( - SSLConnectionRef connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef DartSSLWriteFuncFunction = - DartSInt32 Function( - SSLConnectionRef connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); - -const int SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 17; - -const int SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; - -const int SSL_DHE_DSS_WITH_DES_CBC_SHA = 18; - -const int SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 20; - -const int SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; - -const int SSL_DHE_RSA_WITH_DES_CBC_SHA = 21; - -const int SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 11; - -const int SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; - -const int SSL_DH_DSS_WITH_DES_CBC_SHA = 12; - -const int SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 14; - -const int SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; - -const int SSL_DH_RSA_WITH_DES_CBC_SHA = 15; - -const int SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA = 25; - -const int SSL_DH_anon_EXPORT_WITH_RC4_40_MD5 = 23; - -const int SSL_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; - -const int SSL_DH_anon_WITH_DES_CBC_SHA = 26; - -const int SSL_DH_anon_WITH_RC4_128_MD5 = 24; - -const int SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA = 29; - -const int SSL_FORTEZZA_DMS_WITH_NULL_SHA = 28; - -const int SSL_NO_SUCH_CIPHERSUITE = -1; - -const int SSL_NULL_WITH_NULL_NULL = 0; - -const int SSL_RSA_EXPORT_WITH_DES40_CBC_SHA = 8; - -const int SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 6; - -const int SSL_RSA_EXPORT_WITH_RC4_40_MD5 = 3; - -const int SSL_RSA_WITH_3DES_EDE_CBC_MD5 = -125; - -const int SSL_RSA_WITH_3DES_EDE_CBC_SHA = 10; - -const int SSL_RSA_WITH_DES_CBC_MD5 = -126; - -const int SSL_RSA_WITH_DES_CBC_SHA = 9; - -const int SSL_RSA_WITH_IDEA_CBC_MD5 = -127; - -const int SSL_RSA_WITH_IDEA_CBC_SHA = 7; - -const int SSL_RSA_WITH_NULL_MD5 = 1; - -const int SSL_RSA_WITH_NULL_SHA = 2; - -const int SSL_RSA_WITH_RC2_CBC_MD5 = -128; - -const int SSL_RSA_WITH_RC4_128_MD5 = 4; - -const int SSL_RSA_WITH_RC4_128_SHA = 5; - -typedef STClass = UInt8; - -final class STClassTable extends ffi.Struct { - @UInt16() - external int firstGlyph; - - @UInt16() - external int nGlyphs; - - @ffi.Array.multi([1]) - external ffi.Array classes; -} - -typedef STEntryIndex = UInt8; - -final class STEntryOne extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int offset1; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int offset1, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.offset1 = offset1; -} - -final class STEntryTwo extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int offset1; - - @UInt16() - external int offset2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int offset1, - required int offset2, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.offset1 = offset1 - ..ref.offset2 = offset2; -} - -final class STEntryZero extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags; -} - -final class STHeader extends ffi.Struct { - @UInt8() - external int filler; - - @STClass() - external int nClasses; - - @UInt16() - external int classTableOffset; - - @UInt16() - external int stateArrayOffset; - - @UInt16() - external int entryTableOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int filler, - required int nClasses, - required int classTableOffset, - required int stateArrayOffset, - required int entryTableOffset, - }) => $allocator() - ..ref.filler = filler - ..ref.nClasses = nClasses - ..ref.classTableOffset = classTableOffset - ..ref.stateArrayOffset = stateArrayOffset - ..ref.entryTableOffset = entryTableOffset; -} - -typedef STXClass = UInt16; -typedef STXClassTable = SFNTLookupTable; -typedef STXEntryIndex = UInt16; - -final class STXEntryOne extends ffi.Struct { - @STXStateIndex() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int index1; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int index1, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.index1 = index1; -} - -final class STXEntryTwo extends ffi.Struct { - @STXStateIndex() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int index1; - - @UInt16() - external int index2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int index1, - required int index2, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.index1 = index1 - ..ref.index2 = index2; -} - -final class STXEntryZero extends ffi.Struct { - @STXStateIndex() - external int newState; - - @UInt16() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags; -} - -@ffi.Packed(2) -final class STXHeader extends ffi.Struct { - @UInt32() - external int nClasses; - - @UInt32() - external int classTableOffset; - - @UInt32() - external int stateArrayOffset; - - @UInt32() - external int entryTableOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nClasses, - required int classTableOffset, - required int stateArrayOffset, - required int entryTableOffset, - }) => $allocator() - ..ref.nClasses = nClasses - ..ref.classTableOffset = classTableOffset - ..ref.stateArrayOffset = stateArrayOffset - ..ref.entryTableOffset = entryTableOffset; -} - -typedef STXStateIndex = UInt16; - -@ffi.Packed(2) -final class SchedulerInfoRec extends ffi.Struct { - @UInt32() - external int InfoRecSize; - - @ThreadID() - external int CurrentThreadID; - - @ThreadID() - external int SuggestedThreadID; - - @ThreadID() - external int InterruptedCoopThreadID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int InfoRecSize, - required int CurrentThreadID, - required int SuggestedThreadID, - required int InterruptedCoopThreadID, - }) => $allocator() - ..ref.InfoRecSize = InfoRecSize - ..ref.CurrentThreadID = CurrentThreadID - ..ref.SuggestedThreadID = SuggestedThreadID - ..ref.InterruptedCoopThreadID = InterruptedCoopThreadID; -} - -typedef SchedulerInfoRecPtr = ffi.Pointer; -typedef ScriptCode = SInt16; - -@ffi.Packed(2) -final class ScriptCodeRun extends ffi.Struct { - @ByteOffset() - external int offset; - - @ScriptCode() - external int script; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int script, - }) => $allocator() - ..ref.offset = offset - ..ref.script = script; -} - -typedef ScriptCodeRunPtr = ffi.Pointer; -typedef ScriptTokenType = ffi.Short; -typedef DartScriptTokenType = int; -typedef SecACLRef = ffi.Pointer<__SecACL>; - -sealed class SecAccessControlCreateFlags { - static const kSecAccessControlUserPresence = 1; - static const kSecAccessControlBiometryAny = 2; - static const kSecAccessControlTouchIDAny = 2; - static const kSecAccessControlBiometryCurrentSet = 8; - static const kSecAccessControlTouchIDCurrentSet = 8; - static const kSecAccessControlDevicePasscode = 16; - static const kSecAccessControlWatch = 32; - static const kSecAccessControlCompanion = 32; - static const kSecAccessControlOr = 16384; - static const kSecAccessControlAnd = 32768; - static const kSecAccessControlPrivateKeyUsage = 1073741824; - static const kSecAccessControlApplicationPassword = 2147483648; -} - -typedef SecAccessControlRef = ffi.Pointer<__SecAccessControl>; -typedef SecAccessOwnerType = UInt32; -typedef SecAccessRef = ffi.Pointer<__SecAccess>; - -@Deprecated('SecAsn1 is not supported') -final class SecAsn1AlgId extends ffi.Struct { - external SecAsn1Oid algorithm; - - external SecAsn1Item parameters; -} - -typedef SecAsn1Item = cssm_data; -typedef SecAsn1Oid = cssm_data; - -@Deprecated('SecAsn1 is not supported') -final class SecAsn1PubKeyInfo extends ffi.Struct { - external SecAsn1AlgId algorithm; - - external SecAsn1Item subjectPublicKey; -} - -typedef SecAsn1Template = SecAsn1Template_struct; -typedef SecAsn1TemplateChooser = - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg, - Boolean enc, - ffi.Pointer buf, - ffi.Size len, - ffi.Pointer dest, - ) - >; -typedef SecAsn1TemplateChooserPtr = ffi.Pointer; - -final class SecAsn1Template_struct extends ffi.Struct { - @ffi.Uint32() - external int kind; - - @ffi.Uint32() - external int offset; - - external ffi.Pointer sub; - - @ffi.Uint32() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int kind, - required int offset, - required ffi.Pointer sub, - required int size, - }) => $allocator() - ..ref.kind = kind - ..ref.offset = offset - ..ref.sub = sub - ..ref.size = size; -} - -enum SecAuthenticationType { - kSecAuthenticationTypeNTLM(1835824238), - kSecAuthenticationTypeMSN(1634628461), - kSecAuthenticationTypeDPA(1633775716), - kSecAuthenticationTypeRPA(1633775730), - kSecAuthenticationTypeHTTPBasic(1886680168), - kSecAuthenticationTypeHTTPDigest(1685353576), - kSecAuthenticationTypeHTMLForm(1836216166), - kSecAuthenticationTypeDefault(1953261156), - kSecAuthenticationTypeAny(0); - - final int value; - const SecAuthenticationType(this.value); - - static SecAuthenticationType fromValue(int value) => switch (value) { - 1835824238 => kSecAuthenticationTypeNTLM, - 1634628461 => kSecAuthenticationTypeMSN, - 1633775716 => kSecAuthenticationTypeDPA, - 1633775730 => kSecAuthenticationTypeRPA, - 1886680168 => kSecAuthenticationTypeHTTPBasic, - 1685353576 => kSecAuthenticationTypeHTTPDigest, - 1836216166 => kSecAuthenticationTypeHTMLForm, - 1953261156 => kSecAuthenticationTypeDefault, - 0 => kSecAuthenticationTypeAny, - _ => throw ArgumentError('Unknown value for SecAuthenticationType: $value'), - }; -} - -enum SecCSDigestAlgorithm { - kSecCodeSignatureNoHash(0), - kSecCodeSignatureHashSHA1(1), - kSecCodeSignatureHashSHA256(2), - kSecCodeSignatureHashSHA256Truncated(3), - kSecCodeSignatureHashSHA384(4), - kSecCodeSignatureHashSHA512(5); - - final int value; - const SecCSDigestAlgorithm(this.value); - - static SecCSDigestAlgorithm fromValue(int value) => switch (value) { - 0 => kSecCodeSignatureNoHash, - 1 => kSecCodeSignatureHashSHA1, - 2 => kSecCodeSignatureHashSHA256, - 3 => kSecCodeSignatureHashSHA256Truncated, - 4 => kSecCodeSignatureHashSHA384, - 5 => kSecCodeSignatureHashSHA512, - _ => throw ArgumentError('Unknown value for SecCSDigestAlgorithm: $value'), - }; -} - -sealed class SecCSFlags { - static const kSecCSDefaultFlags = 0; - static const kSecCSConsiderExpiration = -2147483648; - static const kSecCSEnforceRevocationChecks = 1073741824; - static const kSecCSNoNetworkAccess = 536870912; - static const kSecCSReportProgress = 268435456; - static const kSecCSCheckTrustedAnchors = 134217728; - static const kSecCSQuickCheck = 67108864; - static const kSecCSApplyEmbeddedPolicy = 33554432; - static const kSecCSStripDisallowedXattrs = 16777216; - static const kSecCSMatchGuestRequirementInKernel = 8388608; -} - -typedef SecCertificateRef = ffi.Pointer<__SecCertificate>; -typedef SecCodeRef = ffi.Pointer<__SecCode>; - -sealed class SecCodeSignatureFlags { - static const kSecCodeSignatureHost = 1; - static const kSecCodeSignatureAdhoc = 2; - static const kSecCodeSignatureForceHard = 256; - static const kSecCodeSignatureForceKill = 512; - static const kSecCodeSignatureForceExpiration = 1024; - static const kSecCodeSignatureRestrict = 2048; - static const kSecCodeSignatureEnforcement = 4096; - static const kSecCodeSignatureLibraryValidation = 8192; - static const kSecCodeSignatureRuntime = 65536; - static const kSecCodeSignatureLinkerSigned = 131072; -} - -sealed class SecCodeStatus { - static const kSecCodeStatusValid = 1; - static const kSecCodeStatusHard = 256; - static const kSecCodeStatusKill = 512; - static const kSecCodeStatusDebugged = 268435456; - static const kSecCodeStatusPlatform = 67108864; -} - -@Deprecated('No longer supported') -enum SecCredentialType { - kSecCredentialTypeDefault(0), - kSecCredentialTypeWithUI(1), - kSecCredentialTypeNoUI(2); - - final int value; - const SecCredentialType(this.value); - - static SecCredentialType fromValue(int value) => switch (value) { - 0 => kSecCredentialTypeDefault, - 1 => kSecCredentialTypeWithUI, - 2 => kSecCredentialTypeNoUI, - _ => throw ArgumentError('Unknown value for SecCredentialType: $value'), - }; -} - -enum SecExternalFormat { - kSecFormatUnknown(0), - kSecFormatOpenSSL(1), - kSecFormatSSH(2), - kSecFormatBSAFE(3), - kSecFormatRawKey(4), - kSecFormatWrappedPKCS8(5), - kSecFormatWrappedOpenSSL(6), - kSecFormatWrappedSSH(7), - kSecFormatWrappedLSH(8), - kSecFormatX509Cert(9), - kSecFormatPEMSequence(10), - kSecFormatPKCS7(11), - kSecFormatPKCS12(12), - kSecFormatNetscapeCertSequence(13), - kSecFormatSSHv2(14); - - final int value; - const SecExternalFormat(this.value); - - static SecExternalFormat fromValue(int value) => switch (value) { - 0 => kSecFormatUnknown, - 1 => kSecFormatOpenSSL, - 2 => kSecFormatSSH, - 3 => kSecFormatBSAFE, - 4 => kSecFormatRawKey, - 5 => kSecFormatWrappedPKCS8, - 6 => kSecFormatWrappedOpenSSL, - 7 => kSecFormatWrappedSSH, - 8 => kSecFormatWrappedLSH, - 9 => kSecFormatX509Cert, - 10 => kSecFormatPEMSequence, - 11 => kSecFormatPKCS7, - 12 => kSecFormatPKCS12, - 13 => kSecFormatNetscapeCertSequence, - 14 => kSecFormatSSHv2, - _ => throw ArgumentError('Unknown value for SecExternalFormat: $value'), - }; -} - -enum SecExternalItemType { - kSecItemTypeUnknown(0), - kSecItemTypePrivateKey(1), - kSecItemTypePublicKey(2), - kSecItemTypeSessionKey(3), - kSecItemTypeCertificate(4), - kSecItemTypeAggregate(5); - - final int value; - const SecExternalItemType(this.value); - - static SecExternalItemType fromValue(int value) => switch (value) { - 0 => kSecItemTypeUnknown, - 1 => kSecItemTypePrivateKey, - 2 => kSecItemTypePublicKey, - 3 => kSecItemTypeSessionKey, - 4 => kSecItemTypeCertificate, - 5 => kSecItemTypeAggregate, - _ => throw ArgumentError('Unknown value for SecExternalItemType: $value'), - }; -} - -typedef SecGroupTransformRef = CFTypeRef; -typedef SecGuestRef = u_int32_t; -typedef SecIdentityRef = ffi.Pointer<__SecIdentity>; -typedef SecIdentitySearchRef = ffi.Pointer; - -enum SecItemAttr { - kSecCreationDateItemAttr(1667522932), - kSecModDateItemAttr(1835295092), - kSecDescriptionItemAttr(1684370275), - kSecCommentItemAttr(1768123764), - kSecCreatorItemAttr(1668445298), - kSecTypeItemAttr(1954115685), - kSecScriptCodeItemAttr(1935897200), - kSecLabelItemAttr(1818321516), - kSecInvisibleItemAttr(1768846953), - kSecNegativeItemAttr(1852139361), - kSecCustomIconItemAttr(1668641641), - kSecAccountItemAttr(1633903476), - kSecServiceItemAttr(1937138533), - kSecGenericItemAttr(1734700641), - kSecSecurityDomainItemAttr(1935961454), - kSecServerItemAttr(1936881266), - kSecAuthenticationTypeItemAttr(1635023216), - kSecPortItemAttr(1886351988), - kSecPathItemAttr(1885434984), - kSecVolumeItemAttr(1986817381), - kSecAddressItemAttr(1633969266), - kSecSignatureItemAttr(1936943463), - kSecProtocolItemAttr(1886675820), - kSecCertificateType(1668577648), - kSecCertificateEncoding(1667591779), - kSecCrlType(1668445296), - kSecCrlEncoding(1668443747), - kSecAlias(1634494835); - - final int value; - const SecItemAttr(this.value); - - static SecItemAttr fromValue(int value) => switch (value) { - 1667522932 => kSecCreationDateItemAttr, - 1835295092 => kSecModDateItemAttr, - 1684370275 => kSecDescriptionItemAttr, - 1768123764 => kSecCommentItemAttr, - 1668445298 => kSecCreatorItemAttr, - 1954115685 => kSecTypeItemAttr, - 1935897200 => kSecScriptCodeItemAttr, - 1818321516 => kSecLabelItemAttr, - 1768846953 => kSecInvisibleItemAttr, - 1852139361 => kSecNegativeItemAttr, - 1668641641 => kSecCustomIconItemAttr, - 1633903476 => kSecAccountItemAttr, - 1937138533 => kSecServiceItemAttr, - 1734700641 => kSecGenericItemAttr, - 1935961454 => kSecSecurityDomainItemAttr, - 1936881266 => kSecServerItemAttr, - 1635023216 => kSecAuthenticationTypeItemAttr, - 1886351988 => kSecPortItemAttr, - 1885434984 => kSecPathItemAttr, - 1986817381 => kSecVolumeItemAttr, - 1633969266 => kSecAddressItemAttr, - 1936943463 => kSecSignatureItemAttr, - 1886675820 => kSecProtocolItemAttr, - 1668577648 => kSecCertificateType, - 1667591779 => kSecCertificateEncoding, - 1668445296 => kSecCrlType, - 1668443747 => kSecCrlEncoding, - 1634494835 => kSecAlias, - _ => throw ArgumentError('Unknown value for SecItemAttr: $value'), - }; -} - -enum SecItemClass { - kSecInternetPasswordItemClass(1768842612), - kSecGenericPasswordItemClass(1734700656), - kSecAppleSharePasswordItemClass(1634953328), - kSecCertificateItemClass(-2147479552), - kSecPublicKeyItemClass(15), - kSecPrivateKeyItemClass(16), - kSecSymmetricKeyItemClass(17); - - final int value; - const SecItemClass(this.value); - - static SecItemClass fromValue(int value) => switch (value) { - 1768842612 => kSecInternetPasswordItemClass, - 1734700656 => kSecGenericPasswordItemClass, - 1634953328 => kSecAppleSharePasswordItemClass, - -2147479552 => kSecCertificateItemClass, - 15 => kSecPublicKeyItemClass, - 16 => kSecPrivateKeyItemClass, - 17 => kSecSymmetricKeyItemClass, - _ => throw ArgumentError('Unknown value for SecItemClass: $value'), - }; -} - -sealed class SecItemImportExportFlags { - static const kSecItemPemArmour = 1; -} - -final class SecItemImportExportKeyParameters extends ffi.Struct { - @ffi.Uint32() - external int version; - - @ffi.Uint32() - external int flags; - - external CFTypeRef passphrase; - - external CFStringRef alertTitle; - - external CFStringRef alertPrompt; - - external SecAccessRef accessRef; - - external CFArrayRef keyUsage; - - external CFArrayRef keyAttributes; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int flags, - required CFTypeRef passphrase, - required CFStringRef alertTitle, - required CFStringRef alertPrompt, - required SecAccessRef accessRef, - required CFArrayRef keyUsage, - required CFArrayRef keyAttributes, - }) => $allocator() - ..ref.version = version - ..ref.flags = flags - ..ref.passphrase = passphrase - ..ref.alertTitle = alertTitle - ..ref.alertPrompt = alertPrompt - ..ref.accessRef = accessRef - ..ref.keyUsage = keyUsage - ..ref.keyAttributes = keyAttributes; -} - -typedef SecKeyAlgorithm = CFStringRef; -typedef SecKeyGeneratePairBlock = ffi.Pointer; -typedef DartSecKeyGeneratePairBlock = - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >; - -sealed class SecKeyImportExportFlags { - static const kSecKeyImportOnlyOne = 1; - static const kSecKeySecurePassphrase = 2; - static const kSecKeyNoAccessControl = 4; -} - -final class SecKeyImportExportParameters extends ffi.Struct { - @ffi.Uint32() - external int version; - - @ffi.Uint32() - external int flags; - - external CFTypeRef passphrase; - - external CFStringRef alertTitle; - - external CFStringRef alertPrompt; - - external SecAccessRef accessRef; - - @CSSM_KEYUSE() - external int keyUsage; - - @CSSM_KEYATTR_FLAGS() - external int keyAttributes; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int flags, - required CFTypeRef passphrase, - required CFStringRef alertTitle, - required CFStringRef alertPrompt, - required SecAccessRef accessRef, - required int keyUsage, - required int keyAttributes, - }) => $allocator() - ..ref.version = version - ..ref.flags = flags - ..ref.passphrase = passphrase - ..ref.alertTitle = alertTitle - ..ref.alertPrompt = alertPrompt - ..ref.accessRef = accessRef - ..ref.keyUsage = keyUsage - ..ref.keyAttributes = keyAttributes; -} - -typedef SecKeyKeyExchangeParameter = CFStringRef; - -enum SecKeyOperationType { - kSecKeyOperationTypeSign(0), - kSecKeyOperationTypeVerify(1), - kSecKeyOperationTypeEncrypt(2), - kSecKeyOperationTypeDecrypt(3), - kSecKeyOperationTypeKeyExchange(4); - - final int value; - const SecKeyOperationType(this.value); - - static SecKeyOperationType fromValue(int value) => switch (value) { - 0 => kSecKeyOperationTypeSign, - 1 => kSecKeyOperationTypeVerify, - 2 => kSecKeyOperationTypeEncrypt, - 3 => kSecKeyOperationTypeDecrypt, - 4 => kSecKeyOperationTypeKeyExchange, - _ => throw ArgumentError('Unknown value for SecKeyOperationType: $value'), - }; -} - -typedef SecKeyRef = ffi.Pointer<__SecKey>; - -@Deprecated('No longer supported') -enum SecKeySizes { - kSecDefaultKeySize(0), - kSec3DES192(192), - kSecAES128(128), - kSecAES256(256), - kSecp384r1(384), - kSecp521r1(521), - kSecRSAMin(1024), - kSecRSAMax(4096); - - static const kSecAES192 = kSec3DES192; - static const kSecp192r1 = kSec3DES192; - static const kSecp256r1 = kSecAES256; - - final int value; - const SecKeySizes(this.value); - - static SecKeySizes fromValue(int value) => switch (value) { - 0 => kSecDefaultKeySize, - 192 => kSec3DES192, - 128 => kSecAES128, - 256 => kSecAES256, - 384 => kSecp384r1, - 521 => kSecp521r1, - 1024 => kSecRSAMin, - 4096 => kSecRSAMax, - _ => throw ArgumentError('Unknown value for SecKeySizes: $value'), - }; - - @override - String toString() { - if (this == kSec3DES192) - return "SecKeySizes.kSec3DES192, SecKeySizes.kSecAES192, SecKeySizes.kSecp192r1"; - if (this == kSecAES256) - return "SecKeySizes.kSecAES256, SecKeySizes.kSecp256r1"; - return super.toString(); - } -} - -sealed class SecKeyUsage { - static const kSecKeyUsageUnspecified = 0; - static const kSecKeyUsageDigitalSignature = 1; - static const kSecKeyUsageNonRepudiation = 2; - static const kSecKeyUsageContentCommitment = 2; - static const kSecKeyUsageKeyEncipherment = 4; - static const kSecKeyUsageDataEncipherment = 8; - static const kSecKeyUsageKeyAgreement = 16; - static const kSecKeyUsageKeyCertSign = 32; - static const kSecKeyUsageCRLSign = 64; - static const kSecKeyUsageEncipherOnly = 128; - static const kSecKeyUsageDecipherOnly = 256; - static const kSecKeyUsageCritical = -2147483648; - static const kSecKeyUsageAll = 2147483647; -} - -typedef SecKeychainAttrType = OSType; - -final class SecKeychainAttribute extends ffi.Struct { - @SecKeychainAttrType() - external int tag; - - @UInt32() - external int length; - - external ffi.Pointer data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tag, - required int length, - required ffi.Pointer data, - }) => $allocator() - ..ref.tag = tag - ..ref.length = length - ..ref.data = data; -} - -final class SecKeychainAttributeInfo extends ffi.Struct { - @UInt32() - external int count; - - external ffi.Pointer tag; - - external ffi.Pointer format; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required ffi.Pointer tag, - required ffi.Pointer format, - }) => $allocator() - ..ref.count = count - ..ref.tag = tag - ..ref.format = format; -} - -final class SecKeychainAttributeList extends ffi.Struct { - @UInt32() - external int count; - - external ffi.Pointer attr; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required ffi.Pointer attr, - }) => $allocator() - ..ref.count = count - ..ref.attr = attr; -} - -typedef SecKeychainAttributePtr = ffi.Pointer; -typedef SecKeychainCallback = - ffi.Pointer>; -typedef SecKeychainCallbackFunction = - OSStatus Function( - UInt32 keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ); -typedef DartSecKeychainCallbackFunction = - DartSInt32 Function( - SecKeychainEvent keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ); - -final class SecKeychainCallbackInfo extends ffi.Struct { - @UInt32() - external int version; - - external SecKeychainItemRef item; - - external SecKeychainRef keychain; - - @pid_t() - external int pid; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required SecKeychainItemRef item, - required SecKeychainRef keychain, - required int pid, - }) => $allocator() - ..ref.version = version - ..ref.item = item - ..ref.keychain = keychain - ..ref.pid = pid; -} - -enum SecKeychainEvent { - kSecLockEvent(1), - kSecUnlockEvent(2), - kSecAddEvent(3), - kSecDeleteEvent(4), - kSecUpdateEvent(5), - kSecPasswordChangedEvent(6), - kSecDefaultChangedEvent(9), - kSecDataAccessEvent(10), - kSecKeychainListChangedEvent(11), - kSecTrustSettingsChangedEvent(12); - - final int value; - const SecKeychainEvent(this.value); - - static SecKeychainEvent fromValue(int value) => switch (value) { - 1 => kSecLockEvent, - 2 => kSecUnlockEvent, - 3 => kSecAddEvent, - 4 => kSecDeleteEvent, - 5 => kSecUpdateEvent, - 6 => kSecPasswordChangedEvent, - 9 => kSecDefaultChangedEvent, - 10 => kSecDataAccessEvent, - 11 => kSecKeychainListChangedEvent, - 12 => kSecTrustSettingsChangedEvent, - _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), - }; -} - -sealed class SecKeychainEventMask { - static const kSecLockEventMask = 2; - static const kSecUnlockEventMask = 4; - static const kSecAddEventMask = 8; - static const kSecDeleteEventMask = 16; - static const kSecUpdateEventMask = 32; - static const kSecPasswordChangedEventMask = 64; - static const kSecDefaultChangedEventMask = 512; - static const kSecDataAccessEventMask = 1024; - static const kSecKeychainListChangedMask = 2048; - static const kSecTrustSettingsChangedEventMask = 4096; - static const kSecEveryEventMask = -1; -} - -typedef SecKeychainItemRef = ffi.Pointer<__SecKeychainItem>; - -sealed class SecKeychainPromptSelector { - static const kSecKeychainPromptRequirePassphase = 1; - static const kSecKeychainPromptUnsigned = 16; - static const kSecKeychainPromptUnsignedAct = 32; - static const kSecKeychainPromptInvalid = 64; - static const kSecKeychainPromptInvalidAct = 128; -} - -typedef SecKeychainRef = ffi.Pointer<__SecKeychain>; -typedef SecKeychainSearchRef = ffi.Pointer<__SecKeychainSearch>; - -final class SecKeychainSettings extends ffi.Struct { - @UInt32() - external int version; - - @Boolean() - external int lockOnSleep; - - @Boolean() - external int useLockInterval; - - @UInt32() - external int lockInterval; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int lockOnSleep, - required int useLockInterval, - required int lockInterval, - }) => $allocator() - ..ref.version = version - ..ref.lockOnSleep = lockOnSleep - ..ref.useLockInterval = useLockInterval - ..ref.lockInterval = lockInterval; -} - -typedef SecKeychainStatus = UInt32; -typedef SecMessageBlock = ffi.Pointer; -typedef DartSecMessageBlock = - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >; - -@Deprecated('Replaced with SecKeyAlgorithm') -sealed class SecPadding { - static const kSecPaddingNone = 0; - static const kSecPaddingPKCS1 = 1; - static const kSecPaddingOAEP = 2; - static const kSecPaddingSigRaw = 16384; - static const kSecPaddingPKCS1MD2 = 32768; - static const kSecPaddingPKCS1MD5 = 32769; - static const kSecPaddingPKCS1SHA1 = 32770; - static const kSecPaddingPKCS1SHA224 = 32771; - static const kSecPaddingPKCS1SHA256 = 32772; - static const kSecPaddingPKCS1SHA384 = 32773; - static const kSecPaddingPKCS1SHA512 = 32774; -} - -typedef SecPasswordRef = ffi.Pointer<__SecPassword>; -typedef SecPolicyRef = ffi.Pointer<__SecPolicy>; -typedef SecPolicySearchRef = ffi.Pointer; - -enum SecPreferencesDomain { - kSecPreferencesDomainUser(0), - kSecPreferencesDomainSystem(1), - kSecPreferencesDomainCommon(2), - kSecPreferencesDomainDynamic(3); - - final int value; - const SecPreferencesDomain(this.value); - - static SecPreferencesDomain fromValue(int value) => switch (value) { - 0 => kSecPreferencesDomainUser, - 1 => kSecPreferencesDomainSystem, - 2 => kSecPreferencesDomainCommon, - 3 => kSecPreferencesDomainDynamic, - _ => throw ArgumentError('Unknown value for SecPreferencesDomain: $value'), - }; -} - -enum SecProtocolType { - kSecProtocolTypeFTP(1718906912), - kSecProtocolTypeFTPAccount(1718906977), - kSecProtocolTypeHTTP(1752462448), - kSecProtocolTypeIRC(1769104160), - kSecProtocolTypeNNTP(1852732528), - kSecProtocolTypePOP3(1886351411), - kSecProtocolTypeSMTP(1936553072), - kSecProtocolTypeSOCKS(1936685088), - kSecProtocolTypeIMAP(1768776048), - kSecProtocolTypeLDAP(1818517872), - kSecProtocolTypeAppleTalk(1635019883), - kSecProtocolTypeAFP(1634103328), - kSecProtocolTypeTelnet(1952803950), - kSecProtocolTypeSSH(1936943136), - kSecProtocolTypeFTPS(1718906995), - kSecProtocolTypeHTTPS(1752461427), - kSecProtocolTypeHTTPProxy(1752461432), - kSecProtocolTypeHTTPSProxy(1752462200), - kSecProtocolTypeFTPProxy(1718907000), - kSecProtocolTypeCIFS(1667851891), - kSecProtocolTypeSMB(1936548384), - kSecProtocolTypeRTSP(1920234352), - kSecProtocolTypeRTSPProxy(1920234360), - kSecProtocolTypeDAAP(1684103536), - kSecProtocolTypeEPPC(1701867619), - kSecProtocolTypeIPP(1768976416), - kSecProtocolTypeNNTPS(1853124723), - kSecProtocolTypeLDAPS(1818521715), - kSecProtocolTypeTelnetS(1952803955), - kSecProtocolTypeIMAPS(1768779891), - kSecProtocolTypeIRCS(1769104243), - kSecProtocolTypePOP3S(1886351475), - kSecProtocolTypeCVSpserver(1668707184), - kSecProtocolTypeSVN(1937141280), - kSecProtocolTypeAny(0); - - final int value; - const SecProtocolType(this.value); - - static SecProtocolType fromValue(int value) => switch (value) { - 1718906912 => kSecProtocolTypeFTP, - 1718906977 => kSecProtocolTypeFTPAccount, - 1752462448 => kSecProtocolTypeHTTP, - 1769104160 => kSecProtocolTypeIRC, - 1852732528 => kSecProtocolTypeNNTP, - 1886351411 => kSecProtocolTypePOP3, - 1936553072 => kSecProtocolTypeSMTP, - 1936685088 => kSecProtocolTypeSOCKS, - 1768776048 => kSecProtocolTypeIMAP, - 1818517872 => kSecProtocolTypeLDAP, - 1635019883 => kSecProtocolTypeAppleTalk, - 1634103328 => kSecProtocolTypeAFP, - 1952803950 => kSecProtocolTypeTelnet, - 1936943136 => kSecProtocolTypeSSH, - 1718906995 => kSecProtocolTypeFTPS, - 1752461427 => kSecProtocolTypeHTTPS, - 1752461432 => kSecProtocolTypeHTTPProxy, - 1752462200 => kSecProtocolTypeHTTPSProxy, - 1718907000 => kSecProtocolTypeFTPProxy, - 1667851891 => kSecProtocolTypeCIFS, - 1936548384 => kSecProtocolTypeSMB, - 1920234352 => kSecProtocolTypeRTSP, - 1920234360 => kSecProtocolTypeRTSPProxy, - 1684103536 => kSecProtocolTypeDAAP, - 1701867619 => kSecProtocolTypeEPPC, - 1768976416 => kSecProtocolTypeIPP, - 1853124723 => kSecProtocolTypeNNTPS, - 1818521715 => kSecProtocolTypeLDAPS, - 1952803955 => kSecProtocolTypeTelnetS, - 1768779891 => kSecProtocolTypeIMAPS, - 1769104243 => kSecProtocolTypeIRCS, - 1886351475 => kSecProtocolTypePOP3S, - 1668707184 => kSecProtocolTypeCVSpserver, - 1937141280 => kSecProtocolTypeSVN, - 0 => kSecProtocolTypeAny, - _ => throw ArgumentError('Unknown value for SecProtocolType: $value'), - }; -} - -typedef SecRandomRef = ffi.Pointer<__SecRandom>; -typedef SecRequirementRef = ffi.Pointer<__SecRequirement>; - -enum SecRequirementType { - kSecHostRequirementType(1), - kSecGuestRequirementType(2), - kSecDesignatedRequirementType(3), - kSecLibraryRequirementType(4), - kSecPluginRequirementType(5), - kSecInvalidRequirementType(6); - - static const kSecRequirementTypeCount = kSecInvalidRequirementType; - - final int value; - const SecRequirementType(this.value); - - static SecRequirementType fromValue(int value) => switch (value) { - 1 => kSecHostRequirementType, - 2 => kSecGuestRequirementType, - 3 => kSecDesignatedRequirementType, - 4 => kSecLibraryRequirementType, - 5 => kSecPluginRequirementType, - 6 => kSecInvalidRequirementType, - _ => throw ArgumentError('Unknown value for SecRequirementType: $value'), - }; - - @override - String toString() { - if (this == kSecInvalidRequirementType) - return "SecRequirementType.kSecInvalidRequirementType, SecRequirementType.kSecRequirementTypeCount"; - return super.toString(); - } -} - -typedef SecStaticCodeRef = ffi.Pointer<__SecCode>; -typedef SecTaskRef = ffi.Pointer<__SecTask>; -typedef SecTransformActionBlock = ffi.Pointer; -typedef DartSecTransformActionBlock = - objc.ObjCBlock Function()>; -typedef SecTransformAttributeActionBlock = ffi.Pointer; -typedef DartSecTransformAttributeActionBlock = - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >; -typedef SecTransformAttributeRef = CFTypeRef; -typedef SecTransformCreateFP = - ffi.Pointer>; -typedef SecTransformCreateFPFunction = - SecTransformInstanceBlock Function( - CFStringRef name, - SecTransformRef newTransform, - SecTransformImplementationRef ref, - ); -typedef DartSecTransformCreateFPFunction = - DartSecTransformInstanceBlock Function( - CFStringRef name, - SecTransformRef newTransform, - SecTransformImplementationRef ref, - ); -typedef SecTransformDataBlock = ffi.Pointer; -typedef DartSecTransformDataBlock = - objc.ObjCBlock Function(ffi.Pointer)>; -typedef SecTransformImplementationRef = - ffi.Pointer; -typedef SecTransformInstanceBlock = ffi.Pointer; -typedef DartSecTransformInstanceBlock = - objc.ObjCBlock Function()>; - -@Deprecated('SecTransform is no longer supported') -enum SecTransformMetaAttributeType { - kSecTransformMetaAttributeValue(0), - kSecTransformMetaAttributeName(1), - kSecTransformMetaAttributeRef(2), - kSecTransformMetaAttributeRequired(3), - kSecTransformMetaAttributeRequiresOutboundConnection(4), - kSecTransformMetaAttributeDeferred(5), - kSecTransformMetaAttributeStream(6), - kSecTransformMetaAttributeCanCycle(7), - kSecTransformMetaAttributeExternalize(8), - kSecTransformMetaAttributeHasOutboundConnections(9), - kSecTransformMetaAttributeHasInboundConnection(10); - - final int value; - const SecTransformMetaAttributeType(this.value); - - static SecTransformMetaAttributeType fromValue(int value) => switch (value) { - 0 => kSecTransformMetaAttributeValue, - 1 => kSecTransformMetaAttributeName, - 2 => kSecTransformMetaAttributeRef, - 3 => kSecTransformMetaAttributeRequired, - 4 => kSecTransformMetaAttributeRequiresOutboundConnection, - 5 => kSecTransformMetaAttributeDeferred, - 6 => kSecTransformMetaAttributeStream, - 7 => kSecTransformMetaAttributeCanCycle, - 8 => kSecTransformMetaAttributeExternalize, - 9 => kSecTransformMetaAttributeHasOutboundConnections, - 10 => kSecTransformMetaAttributeHasInboundConnection, - _ => throw ArgumentError( - 'Unknown value for SecTransformMetaAttributeType: $value', - ), - }; -} - -typedef SecTransformRef = CFTypeRef; -typedef SecTransformStringOrAttributeRef = CFTypeRef; -typedef SecTrustCallback = ffi.Pointer; -typedef DartSecTrustCallback = - objc.ObjCBlock, ffi.Uint32)>; - -sealed class SecTrustOptionFlags { - static const kSecTrustOptionAllowExpired = 1; - static const kSecTrustOptionLeafIsCA = 2; - static const kSecTrustOptionFetchIssuerFromNet = 4; - static const kSecTrustOptionAllowExpiredRoot = 8; - static const kSecTrustOptionRequireRevPerCert = 16; - static const kSecTrustOptionUseTrustSettings = 32; - static const kSecTrustOptionImplicitAnchors = 64; -} - -typedef SecTrustRef = ffi.Pointer<__SecTrust>; - -enum SecTrustResultType { - kSecTrustResultInvalid(0), - kSecTrustResultProceed(1), - kSecTrustResultConfirm(2), - kSecTrustResultDeny(3), - kSecTrustResultUnspecified(4), - kSecTrustResultRecoverableTrustFailure(5), - kSecTrustResultFatalTrustFailure(6), - kSecTrustResultOtherError(7); - - final int value; - const SecTrustResultType(this.value); - - static SecTrustResultType fromValue(int value) => switch (value) { - 0 => kSecTrustResultInvalid, - 1 => kSecTrustResultProceed, - 2 => kSecTrustResultConfirm, - 3 => kSecTrustResultDeny, - 4 => kSecTrustResultUnspecified, - 5 => kSecTrustResultRecoverableTrustFailure, - 6 => kSecTrustResultFatalTrustFailure, - 7 => kSecTrustResultOtherError, - _ => throw ArgumentError('Unknown value for SecTrustResultType: $value'), - }; -} - -enum SecTrustSettingsDomain { - kSecTrustSettingsDomainUser(0), - kSecTrustSettingsDomainAdmin(1), - kSecTrustSettingsDomainSystem(2); - - final int value; - const SecTrustSettingsDomain(this.value); - - static SecTrustSettingsDomain fromValue(int value) => switch (value) { - 0 => kSecTrustSettingsDomainUser, - 1 => kSecTrustSettingsDomainAdmin, - 2 => kSecTrustSettingsDomainSystem, - _ => throw ArgumentError( - 'Unknown value for SecTrustSettingsDomain: $value', - ), - }; -} - -sealed class SecTrustSettingsKeyUsage { - static const kSecTrustSettingsKeyUseSignature = 1; - static const kSecTrustSettingsKeyUseEnDecryptData = 2; - static const kSecTrustSettingsKeyUseEnDecryptKey = 4; - static const kSecTrustSettingsKeyUseSignCert = 8; - static const kSecTrustSettingsKeyUseSignRevocation = 16; - static const kSecTrustSettingsKeyUseKeyExchange = 32; - static const kSecTrustSettingsKeyUseAny = -1; -} - -enum SecTrustSettingsResult { - kSecTrustSettingsResultInvalid(0), - kSecTrustSettingsResultTrustRoot(1), - kSecTrustSettingsResultTrustAsRoot(2), - kSecTrustSettingsResultDeny(3), - kSecTrustSettingsResultUnspecified(4); - - final int value; - const SecTrustSettingsResult(this.value); - - static SecTrustSettingsResult fromValue(int value) => switch (value) { - 0 => kSecTrustSettingsResultInvalid, - 1 => kSecTrustSettingsResultTrustRoot, - 2 => kSecTrustSettingsResultTrustAsRoot, - 3 => kSecTrustSettingsResultDeny, - 4 => kSecTrustSettingsResultUnspecified, - _ => throw ArgumentError( - 'Unknown value for SecTrustSettingsResult: $value', - ), - }; -} - -typedef SecTrustWithErrorCallback = ffi.Pointer; -typedef DartSecTrustWithErrorCallback = - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >; -typedef SecTrustedApplicationRef = ffi.Pointer<__SecTrustedApplication>; -typedef SecuritySessionId = UInt32; -typedef SelectorFunctionProcPtr = - ffi.Pointer>; -typedef SelectorFunctionProcPtrFunction = - OSErr Function(OSType selector, ffi.Pointer response); -typedef DartSelectorFunctionProcPtrFunction = - DartSInt16 Function(DartUInt32 selector, ffi.Pointer response); -typedef SelectorFunctionUPP = SelectorFunctionProcPtr; - -sealed class SessionAttributeBits { - static const sessionIsRoot = 1; - static const sessionHasGraphicAccess = 16; - static const sessionHasTTY = 32; - static const sessionIsRemote = 4096; -} - -sealed class SessionCreationFlags { - static const sessionKeepCurrentBootstrap = 32768; -} - -typedef ShortFixed = ffi.Short; -typedef DartShortFixed = int; -typedef ShortFixedPtr = ffi.Pointer; -typedef SignedByte = SInt8; -typedef Size = ffi.Long; -typedef DartSize = int; - -@ffi.Packed(2) -final class SizeResourceRec extends ffi.Struct { - @UInt16() - external int flags; - - @UInt32() - external int preferredHeapSize; - - @UInt32() - external int minimumHeapSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int preferredHeapSize, - required int minimumHeapSize, - }) => $allocator() - ..ref.flags = flags - ..ref.preferredHeapSize = preferredHeapSize - ..ref.minimumHeapSize = minimumHeapSize; -} - -typedef SizeResourceRecHandle = ffi.Pointer; -typedef SizeResourceRecPtr = ffi.Pointer; -typedef SleepQProcPtr = ffi.Pointer>; -typedef SleepQProcPtrFunction = - ffi.Long Function(ffi.Long message, SleepQRecPtr qRecPtr); -typedef DartSleepQProcPtrFunction = - int Function(int message, SleepQRecPtr qRecPtr); - -@ffi.Packed(2) -final class SleepQRec extends ffi.Struct { - external SleepQRecPtr sleepQLink; - - @ffi.Short() - external int sleepQType$1; - - external SleepQUPP sleepQProc; - - @ffi.Short() - external int sleepQFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required SleepQRecPtr sleepQLink, - required int sleepQType$1, - required SleepQUPP sleepQProc, - required int sleepQFlags, - }) => $allocator() - ..ref.sleepQLink = sleepQLink - ..ref.sleepQType$1 = sleepQType$1 - ..ref.sleepQProc = sleepQProc - ..ref.sleepQFlags = sleepQFlags; -} - -typedef SleepQRecPtr = ffi.Pointer; -typedef SleepQUPP = SleepQProcPtr; - -const int SlpTypeErr = -5; - -@ffi.Packed(2) -final class SoundDataChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt32() - external int offset; - - @UInt32() - external int blockSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ckID, - required int ckSize, - required int offset, - required int blockSize, - }) => $allocator() - ..ref.ckID = ckID - ..ref.ckSize = ckSize - ..ref.offset = offset - ..ref.blockSize = blockSize; -} - -typedef SoundDataChunkPtr = ffi.Pointer; - -const int SoundDataID = 1397968452; - -typedef SpeechChannel = ffi.Pointer; - -@ffi.Packed(2) -final class SpeechChannelRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef SpeechDoneProcPtr = - ffi.Pointer>; -typedef SpeechDoneProcPtrFunction = - ffi.Void Function(SpeechChannel chan, SRefCon refCon); -typedef DartSpeechDoneProcPtrFunction = - void Function(SpeechChannel chan, SRefCon refCon); -typedef SpeechDoneUPP = SpeechDoneProcPtr; -typedef SpeechErrorCFProcPtr = - ffi.Pointer>; -typedef SpeechErrorCFProcPtrFunction = - ffi.Void Function(SpeechChannel chan, SRefCon refCon, CFErrorRef theError); -typedef DartSpeechErrorCFProcPtrFunction = - void Function(SpeechChannel chan, SRefCon refCon, CFErrorRef theError); - -@ffi.Packed(2) -final class SpeechErrorInfo extends ffi.Struct { - @SInt16() - external int count; - - @OSErr() - external int oldest; - - @ffi.Long() - external int oldPos; - - @OSErr() - external int newest; - - @ffi.Long() - external int newPos; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required int oldest, - required int oldPos, - required int newest, - required int newPos, - }) => $allocator() - ..ref.count = count - ..ref.oldest = oldest - ..ref.oldPos = oldPos - ..ref.newest = newest - ..ref.newPos = newPos; -} - -typedef SpeechErrorProcPtr = - ffi.Pointer>; -typedef SpeechErrorProcPtrFunction = - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - OSErr theError, - ffi.Long bytePos, - ); -typedef DartSpeechErrorProcPtrFunction = - void Function( - SpeechChannel chan, - SRefCon refCon, - DartSInt16 theError, - int bytePos, - ); -typedef SpeechErrorUPP = SpeechErrorProcPtr; -typedef SpeechPhonemeProcPtr = - ffi.Pointer>; -typedef SpeechPhonemeProcPtrFunction = - ffi.Void Function(SpeechChannel chan, SRefCon refCon, SInt16 phonemeOpcode); -typedef DartSpeechPhonemeProcPtrFunction = - void Function(SpeechChannel chan, SRefCon refCon, DartSInt16 phonemeOpcode); -typedef SpeechPhonemeUPP = SpeechPhonemeProcPtr; - -@ffi.Packed(2) -final class SpeechStatusInfo extends ffi.Struct { - @Boolean() - external int outputBusy; - - @Boolean() - external int outputPaused; - - @ffi.Long() - external int inputBytesLeft; - - @SInt16() - external int phonemeCode; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int outputBusy, - required int outputPaused, - required int inputBytesLeft, - required int phonemeCode, - }) => $allocator() - ..ref.outputBusy = outputBusy - ..ref.outputPaused = outputPaused - ..ref.inputBytesLeft = inputBytesLeft - ..ref.phonemeCode = phonemeCode; -} - -typedef SpeechSyncProcPtr = - ffi.Pointer>; -typedef SpeechSyncProcPtrFunction = - ffi.Void Function(SpeechChannel chan, SRefCon refCon, OSType syncMessage); -typedef DartSpeechSyncProcPtrFunction = - void Function(SpeechChannel chan, SRefCon refCon, DartUInt32 syncMessage); -typedef SpeechSyncUPP = SpeechSyncProcPtr; -typedef SpeechTextDoneProcPtr = - ffi.Pointer>; -typedef SpeechTextDoneProcPtrFunction = - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - ffi.Pointer> nextBuf, - ffi.Pointer byteLen, - ffi.Pointer controlFlags, - ); -typedef DartSpeechTextDoneProcPtrFunction = - void Function( - SpeechChannel chan, - SRefCon refCon, - ffi.Pointer> nextBuf, - ffi.Pointer byteLen, - ffi.Pointer controlFlags, - ); -typedef SpeechTextDoneUPP = SpeechTextDoneProcPtr; - -@ffi.Packed(2) -final class SpeechVersionInfo extends ffi.Struct { - @OSType() - external int synthType; - - @OSType() - external int synthSubType; - - @OSType() - external int synthManufacturer; - - @SInt32() - external int synthFlags; - - external NumVersion synthVersion; -} - -typedef SpeechWordCFProcPtr = - ffi.Pointer>; -typedef SpeechWordCFProcPtrFunction = - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - CFStringRef aString, - CFRange wordRange, - ); -typedef DartSpeechWordCFProcPtrFunction = - void Function( - SpeechChannel chan, - SRefCon refCon, - CFStringRef aString, - CFRange wordRange, - ); -typedef SpeechWordProcPtr = - ffi.Pointer>; -typedef SpeechWordProcPtrFunction = - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - ffi.UnsignedLong wordPos, - UInt16 wordLen, - ); -typedef DartSpeechWordProcPtrFunction = - void Function( - SpeechChannel chan, - SRefCon refCon, - int wordPos, - DartUInt16 wordLen, - ); -typedef SpeechWordUPP = SpeechWordProcPtr; - -@ffi.Packed(2) -final class SpeechXtndData extends ffi.Struct { - @OSType() - external int synthCreator; - - @ffi.Array.multi([2]) - external ffi.Array synthData; -} - -typedef String2DateStatus = StringToDateStatus; -typedef StringHandle = ffi.Pointer; -typedef StringPtr = ffi.Pointer; -typedef StringToDateStatus = ffi.Short; -typedef DartStringToDateStatus = int; -typedef Style = ffi.UnsignedChar; -typedef DartStyle = int; -typedef StyleField = Style; -typedef StyleParameter = ffi.Short; -typedef DartStyleParameter = int; - -@ffi.Packed(2) -final class StyleTable extends ffi.Struct { - @SInt16() - external int fontClass; - - @SInt32() - external int offset; - - @SInt32() - external int reserved; - - @ffi.Array.multi([48]) - external ffi.Array indexes; -} - -typedef SysPPtr = ffi.Pointer; - -final class TECBufferContextRec extends ffi.Struct { - external ConstTextPtr textInputBuffer; - - external ConstTextPtr textInputBufferEnd; - - external TextPtr textOutputBuffer; - - external TextPtr textOutputBufferEnd; - - external ConstTextEncodingRunPtr encodingInputBuffer; - - external ConstTextEncodingRunPtr encodingInputBufferEnd; - - external TextEncodingRunPtr encodingOutputBuffer; - - external TextEncodingRunPtr encodingOutputBufferEnd; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ConstTextPtr textInputBuffer, - required ConstTextPtr textInputBufferEnd, - required TextPtr textOutputBuffer, - required TextPtr textOutputBufferEnd, - required ConstTextEncodingRunPtr encodingInputBuffer, - required ConstTextEncodingRunPtr encodingInputBufferEnd, - required TextEncodingRunPtr encodingOutputBuffer, - required TextEncodingRunPtr encodingOutputBufferEnd, - }) => $allocator() - ..ref.textInputBuffer = textInputBuffer - ..ref.textInputBufferEnd = textInputBufferEnd - ..ref.textOutputBuffer = textOutputBuffer - ..ref.textOutputBufferEnd = textOutputBufferEnd - ..ref.encodingInputBuffer = encodingInputBuffer - ..ref.encodingInputBufferEnd = encodingInputBufferEnd - ..ref.encodingOutputBuffer = encodingOutputBuffer - ..ref.encodingOutputBufferEnd = encodingOutputBufferEnd; -} - -@ffi.Packed(2) -final class TECConversionInfo extends ffi.Struct { - @TextEncoding() - external int sourceEncoding; - - @TextEncoding() - external int destinationEncoding; - - @UInt16() - external int reserved1; - - @UInt16() - external int reserved2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sourceEncoding, - required int destinationEncoding, - required int reserved1, - required int reserved2, - }) => $allocator() - ..ref.sourceEncoding = sourceEncoding - ..ref.destinationEncoding = destinationEncoding - ..ref.reserved1 = reserved1 - ..ref.reserved2 = reserved2; -} - -final class TECConverterContextRec extends ffi.Struct { - external Ptr pluginRec; - - @TextEncoding() - external int sourceEncoding; - - @TextEncoding() - external int destEncoding; - - @UInt32() - external int reserved1; - - @UInt32() - external int reserved2; - - external TECBufferContextRec bufferContext; - - external URefCon contextRefCon; - - external ProcPtr conversionProc; - - external ProcPtr flushProc; - - external ProcPtr clearContextInfoProc; - - @UInt32() - external int options1; - - @UInt32() - external int options2; - - external TECPluginStateRec pluginState; -} - -final class TECEncodingPairRec extends ffi.Struct { - external TextEncodingRec source; - - external TextEncodingRec dest; -} - -final class TECEncodingPairs extends ffi.Struct { - external TECEncodingPairRec encodingPair; - - @UInt32() - external int flags; - - @UInt32() - external int speed; -} - -typedef TECEncodingPairsHandle = ffi.Pointer; -typedef TECEncodingPairsPtr = ffi.Pointer; - -final class TECEncodingPairsRec extends ffi.Struct { - @UInt32() - external int count; - - external TECEncodingPairs encodingPairs; -} - -typedef TECEncodingsListHandle = ffi.Pointer; -typedef TECEncodingsListPtr = ffi.Pointer; - -final class TECEncodingsListRec extends ffi.Struct { - @UInt32() - external int count; - - external TextEncodingRec encodings; -} - -@ffi.Packed(2) -final class TECInfo extends ffi.Struct { - @UInt16() - external int format; - - @UInt16() - external int tecVersion; - - @UInt32() - external int tecTextConverterFeatures; - - @UInt32() - external int tecUnicodeConverterFeatures; - - @UInt32() - external int tecTextCommonFeatures; - - @ffi.Array.multi([32]) - external ffi.Array tecTextEncodingsFolderName; - - @ffi.Array.multi([32]) - external ffi.Array tecExtensionFileName; - - @UInt16() - external int tecLowestTEFileVersion; - - @UInt16() - external int tecHighestTEFileVersion; -} - -typedef TECInfoHandle = ffi.Pointer; -typedef TECInfoPtr = ffi.Pointer; - -final class TECInternetNameRec extends ffi.Struct { - @UInt32() - external int offset; - - external TextEncodingRec searchEncoding; - - @UInt8() - external int encodingNameLength; - - @ffi.Array.multi([1]) - external ffi.Array encodingName; -} - -typedef TECInternetNameUsageMask = UInt32; -typedef TECInternetNamesHandle = ffi.Pointer; -typedef TECInternetNamesPtr = ffi.Pointer; - -final class TECInternetNamesRec extends ffi.Struct { - @UInt32() - external int count; - - external TECInternetNameRec InternetNames; -} - -typedef TECLocaleListToEncodingListPtr = - ffi.Pointer; - -final class TECLocaleListToEncodingListRec extends ffi.Struct { - @UInt32() - external int offset; - - @UInt32() - external int count; - - @RegionCode() - external int locales; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int count, - required int locales, - }) => $allocator() - ..ref.offset = offset - ..ref.count = count - ..ref.locales = locales; -} - -typedef TECLocaleToEncodingsListHandle = - ffi.Pointer; -typedef TECLocaleToEncodingsListPtr = ffi.Pointer; - -final class TECLocaleToEncodingsListRec extends ffi.Struct { - @UInt32() - external int count; - - external TECLocaleListToEncodingListRec localeListToEncodingList; -} - -typedef TECObjectRef = ffi.Pointer; -typedef TECPluginClearContextInfoPtr = - ffi.Pointer>; -typedef TECPluginClearContextInfoPtrFunction = - OSStatus Function( - TECObjectRef encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginClearContextInfoPtrFunction = - DartSInt32 Function( - TECObjectRef encodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginClearSnifferContextInfoPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef TECPluginClearSnifferContextInfoPtrFunction = - OSStatus Function( - TECSnifferObjectRef encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginClearSnifferContextInfoPtrFunction = - DartSInt32 Function( - TECSnifferObjectRef encodingSniffer, - ffi.Pointer snifContext, - ); -typedef TECPluginConvertTextEncodingPtr = - ffi.Pointer>; -typedef TECPluginConvertTextEncodingPtrFunction = - OSStatus Function( - TECObjectRef encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginConvertTextEncodingPtrFunction = - DartSInt32 Function( - TECObjectRef encodingConverter, - ffi.Pointer plugContext, - ); - -final class TECPluginDispatchTable extends ffi.Struct { - @TECPluginVersion() - external int version; - - @TECPluginVersion() - external int compatibleVersion; - - @TECPluginSignature() - external int PluginID; - - external TECPluginNewEncodingConverterPtr PluginNewEncodingConverter; - - external TECPluginClearContextInfoPtr PluginClearContextInfo; - - external TECPluginConvertTextEncodingPtr PluginConvertTextEncoding; - - external TECPluginFlushConversionPtr PluginFlushConversion; - - external TECPluginDisposeEncodingConverterPtr PluginDisposeEncodingConverter; - - external TECPluginNewEncodingSnifferPtr PluginNewEncodingSniffer; - - external TECPluginClearSnifferContextInfoPtr PluginClearSnifferContextInfo; - - external TECPluginSniffTextEncodingPtr PluginSniffTextEncoding; - - external TECPluginDisposeEncodingSnifferPtr PluginDisposeEncodingSniffer; - - external TECPluginGetCountAvailableTextEncodingsPtr - PluginGetCountAvailableTextEncodings; - - external TECPluginGetCountAvailableTextEncodingPairsPtr - PluginGetCountAvailableTextEncodingPairs; - - external TECPluginGetCountDestinationTextEncodingsPtr - PluginGetCountDestinationTextEncodings; - - external TECPluginGetCountSubTextEncodingsPtr PluginGetCountSubTextEncodings; - - external TECPluginGetCountAvailableSniffersPtr - PluginGetCountAvailableSniffers; - - external TECPluginGetCountWebEncodingsPtr PluginGetCountWebTextEncodings; - - external TECPluginGetCountMailEncodingsPtr PluginGetCountMailTextEncodings; - - external TECPluginGetTextEncodingInternetNamePtr - PluginGetTextEncodingInternetName; - - external TECPluginGetTextEncodingFromInternetNamePtr - PluginGetTextEncodingFromInternetName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int compatibleVersion, - required int PluginID, - required TECPluginNewEncodingConverterPtr PluginNewEncodingConverter, - required TECPluginClearContextInfoPtr PluginClearContextInfo, - required TECPluginConvertTextEncodingPtr PluginConvertTextEncoding, - required TECPluginFlushConversionPtr PluginFlushConversion, - required TECPluginDisposeEncodingConverterPtr - PluginDisposeEncodingConverter, - required TECPluginNewEncodingSnifferPtr PluginNewEncodingSniffer, - required TECPluginClearSnifferContextInfoPtr PluginClearSnifferContextInfo, - required TECPluginSniffTextEncodingPtr PluginSniffTextEncoding, - required TECPluginDisposeEncodingSnifferPtr PluginDisposeEncodingSniffer, - required TECPluginGetCountAvailableTextEncodingsPtr - PluginGetCountAvailableTextEncodings, - required TECPluginGetCountAvailableTextEncodingPairsPtr - PluginGetCountAvailableTextEncodingPairs, - required TECPluginGetCountDestinationTextEncodingsPtr - PluginGetCountDestinationTextEncodings, - required TECPluginGetCountSubTextEncodingsPtr - PluginGetCountSubTextEncodings, - required TECPluginGetCountAvailableSniffersPtr - PluginGetCountAvailableSniffers, - required TECPluginGetCountWebEncodingsPtr PluginGetCountWebTextEncodings, - required TECPluginGetCountMailEncodingsPtr PluginGetCountMailTextEncodings, - required TECPluginGetTextEncodingInternetNamePtr - PluginGetTextEncodingInternetName, - required TECPluginGetTextEncodingFromInternetNamePtr - PluginGetTextEncodingFromInternetName, - }) => $allocator() - ..ref.version = version - ..ref.compatibleVersion = compatibleVersion - ..ref.PluginID = PluginID - ..ref.PluginNewEncodingConverter = PluginNewEncodingConverter - ..ref.PluginClearContextInfo = PluginClearContextInfo - ..ref.PluginConvertTextEncoding = PluginConvertTextEncoding - ..ref.PluginFlushConversion = PluginFlushConversion - ..ref.PluginDisposeEncodingConverter = PluginDisposeEncodingConverter - ..ref.PluginNewEncodingSniffer = PluginNewEncodingSniffer - ..ref.PluginClearSnifferContextInfo = PluginClearSnifferContextInfo - ..ref.PluginSniffTextEncoding = PluginSniffTextEncoding - ..ref.PluginDisposeEncodingSniffer = PluginDisposeEncodingSniffer - ..ref.PluginGetCountAvailableTextEncodings = - PluginGetCountAvailableTextEncodings - ..ref.PluginGetCountAvailableTextEncodingPairs = - PluginGetCountAvailableTextEncodingPairs - ..ref.PluginGetCountDestinationTextEncodings = - PluginGetCountDestinationTextEncodings - ..ref.PluginGetCountSubTextEncodings = PluginGetCountSubTextEncodings - ..ref.PluginGetCountAvailableSniffers = PluginGetCountAvailableSniffers - ..ref.PluginGetCountWebTextEncodings = PluginGetCountWebTextEncodings - ..ref.PluginGetCountMailTextEncodings = PluginGetCountMailTextEncodings - ..ref.PluginGetTextEncodingInternetName = PluginGetTextEncodingInternetName - ..ref.PluginGetTextEncodingFromInternetName = - PluginGetTextEncodingFromInternetName; -} - -typedef TECPluginDisposeEncodingConverterPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef TECPluginDisposeEncodingConverterPtrFunction = - OSStatus Function( - TECObjectRef newEncodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginDisposeEncodingConverterPtrFunction = - DartSInt32 Function( - TECObjectRef newEncodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginDisposeEncodingSnifferPtr = - ffi.Pointer>; -typedef TECPluginDisposeEncodingSnifferPtrFunction = - OSStatus Function( - TECSnifferObjectRef encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginDisposeEncodingSnifferPtrFunction = - DartSInt32 Function( - TECSnifferObjectRef encodingSniffer, - ffi.Pointer snifContext, - ); -typedef TECPluginFlushConversionPtr = - ffi.Pointer>; -typedef TECPluginFlushConversionPtrFunction = - OSStatus Function( - TECObjectRef encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginFlushConversionPtrFunction = - DartSInt32 Function( - TECObjectRef encodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginGetCountAvailableSniffersPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef TECPluginGetCountAvailableSniffersPtrFunction = - OSStatus Function( - ffi.Pointer availableEncodings, - ItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableSniffersPtrFunction = - DartSInt32 Function( - ffi.Pointer availableEncodings, - DartItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountAvailableTextEncodingPairsPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef TECPluginGetCountAvailableTextEncodingPairsPtrFunction = - OSStatus Function( - ffi.Pointer availableEncodings, - ItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableTextEncodingPairsPtrFunction = - DartSInt32 Function( - ffi.Pointer availableEncodings, - DartItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountAvailableTextEncodingsPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef TECPluginGetCountAvailableTextEncodingsPtrFunction = - OSStatus Function( - ffi.Pointer availableEncodings, - ItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableTextEncodingsPtrFunction = - DartSInt32 Function( - ffi.Pointer availableEncodings, - DartItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountDestinationTextEncodingsPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef TECPluginGetCountDestinationTextEncodingsPtrFunction = - OSStatus Function( - TextEncoding inputEncoding, - ffi.Pointer destinationEncodings, - ItemCount maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ); -typedef DartTECPluginGetCountDestinationTextEncodingsPtrFunction = - DartSInt32 Function( - DartUInt32 inputEncoding, - ffi.Pointer destinationEncodings, - DartItemCount maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ); -typedef TECPluginGetCountMailEncodingsPtr = - ffi.Pointer>; -typedef TECPluginGetCountMailEncodingsPtrFunction = - OSStatus Function( - ffi.Pointer availableEncodings, - ItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountMailEncodingsPtrFunction = - DartSInt32 Function( - ffi.Pointer availableEncodings, - DartItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountSubTextEncodingsPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef TECPluginGetCountSubTextEncodingsPtrFunction = - OSStatus Function( - TextEncoding inputEncoding, - ffi.Pointer subEncodings, - ItemCount maxSubEncodings, - ffi.Pointer actualSubEncodings, - ); -typedef DartTECPluginGetCountSubTextEncodingsPtrFunction = - DartSInt32 Function( - DartUInt32 inputEncoding, - ffi.Pointer subEncodings, - DartItemCount maxSubEncodings, - ffi.Pointer actualSubEncodings, - ); -typedef TECPluginGetCountWebEncodingsPtr = - ffi.Pointer>; -typedef TECPluginGetCountWebEncodingsPtrFunction = - OSStatus Function( - ffi.Pointer availableEncodings, - ItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountWebEncodingsPtrFunction = - DartSInt32 Function( - ffi.Pointer availableEncodings, - DartItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetPluginDispatchTablePtr = - ffi.Pointer>; -typedef TECPluginGetPluginDispatchTablePtrFunction = - ffi.Pointer Function(); -typedef TECPluginGetTextEncodingFromInternetNamePtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef TECPluginGetTextEncodingFromInternetNamePtrFunction = - OSStatus Function( - ffi.Pointer textEncoding, - ConstStr255Param encodingName, - ); -typedef DartTECPluginGetTextEncodingFromInternetNamePtrFunction = - DartSInt32 Function( - ffi.Pointer textEncoding, - ConstStr255Param encodingName, - ); -typedef TECPluginGetTextEncodingInternetNamePtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef TECPluginGetTextEncodingInternetNamePtrFunction = - OSStatus Function( - TextEncoding textEncoding, - ffi.Pointer encodingName, - ); -typedef DartTECPluginGetTextEncodingInternetNamePtrFunction = - DartSInt32 Function( - DartUInt32 textEncoding, - ffi.Pointer encodingName, - ); -typedef TECPluginNewEncodingConverterPtr = - ffi.Pointer>; -typedef TECPluginNewEncodingConverterPtrFunction = - OSStatus Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - TextEncoding inputEncoding, - TextEncoding outputEncoding, - ); -typedef DartTECPluginNewEncodingConverterPtrFunction = - DartSInt32 Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - DartUInt32 inputEncoding, - DartUInt32 outputEncoding, - ); -typedef TECPluginNewEncodingSnifferPtr = - ffi.Pointer>; -typedef TECPluginNewEncodingSnifferPtrFunction = - OSStatus Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - TextEncoding inputEncoding, - ); -typedef DartTECPluginNewEncodingSnifferPtrFunction = - DartSInt32 Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - DartUInt32 inputEncoding, - ); -typedef TECPluginSig = OSType; -typedef TECPluginSignature = OSType; -typedef TECPluginSniffTextEncodingPtr = - ffi.Pointer>; -typedef TECPluginSniffTextEncodingPtrFunction = - OSStatus Function( - TECSnifferObjectRef encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginSniffTextEncodingPtrFunction = - DartSInt32 Function( - TECSnifferObjectRef encodingSniffer, - ffi.Pointer snifContext, - ); - -final class TECPluginStateRec extends ffi.Struct { - @UInt8() - external int state1; - - @UInt8() - external int state2; - - @UInt8() - external int state3; - - @UInt8() - external int state4; - - @UInt32() - external int longState1; - - @UInt32() - external int longState2; - - @UInt32() - external int longState3; - - @UInt32() - external int longState4; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int state1, - required int state2, - required int state3, - required int state4, - required int longState1, - required int longState2, - required int longState3, - required int longState4, - }) => $allocator() - ..ref.state1 = state1 - ..ref.state2 = state2 - ..ref.state3 = state3 - ..ref.state4 = state4 - ..ref.longState1 = longState1 - ..ref.longState2 = longState2 - ..ref.longState3 = longState3 - ..ref.longState4 = longState4; -} - -typedef TECPluginVersion = UInt32; - -final class TECSnifferContextRec extends ffi.Struct { - external Ptr pluginRec; - - @TextEncoding() - external int encoding; - - @ItemCount() - external int maxErrors; - - @ItemCount() - external int maxFeatures; - - external ConstTextPtr textInputBuffer; - - external ConstTextPtr textInputBufferEnd; - - @ItemCount() - external int numFeatures; - - @ItemCount() - external int numErrors; - - external URefCon contextRefCon; - - external ProcPtr sniffProc; - - external ProcPtr clearContextInfoProc; - - external TECPluginStateRec pluginState; -} - -typedef TECSnifferObjectRef = ffi.Pointer; - -final class TECSubTextEncodingRec extends ffi.Struct { - @UInt32() - external int offset; - - external TextEncodingRec searchEncoding; - - @UInt32() - external int count; - - external TextEncodingRec subEncodings; -} - -typedef TECSubTextEncodingsHandle = ffi.Pointer; -typedef TECSubTextEncodingsPtr = ffi.Pointer; - -final class TECSubTextEncodingsRec extends ffi.Struct { - @UInt32() - external int count; - - external TECSubTextEncodingRec subTextEncodingRec; -} - -const int TLS_AES_128_CCM_8_SHA256 = 4869; - -const int TLS_AES_128_CCM_SHA256 = 4868; - -const int TLS_AES_128_GCM_SHA256 = 4865; - -const int TLS_AES_256_GCM_SHA384 = 4866; - -const int TLS_CHACHA20_POLY1305_SHA256 = 4867; - -const int TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; - -const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 50; - -const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = 64; - -const int TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 = 162; - -const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 56; - -const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = 106; - -const int TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 = 163; - -const int TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = 143; - -const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA = 144; - -const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 = 178; - -const int TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 = 170; - -const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA = 145; - -const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 = 179; - -const int TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 = 171; - -const int TLS_DHE_PSK_WITH_NULL_SHA = 45; - -const int TLS_DHE_PSK_WITH_NULL_SHA256 = 180; - -const int TLS_DHE_PSK_WITH_NULL_SHA384 = 181; - -const int TLS_DHE_PSK_WITH_RC4_128_SHA = 142; - -const int TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; - -const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 51; - -const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 103; - -const int TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = 158; - -const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 57; - -const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 107; - -const int TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = 159; - -const int TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; - -const int TLS_DH_DSS_WITH_AES_128_CBC_SHA = 48; - -const int TLS_DH_DSS_WITH_AES_128_CBC_SHA256 = 62; - -const int TLS_DH_DSS_WITH_AES_128_GCM_SHA256 = 164; - -const int TLS_DH_DSS_WITH_AES_256_CBC_SHA = 54; - -const int TLS_DH_DSS_WITH_AES_256_CBC_SHA256 = 104; - -const int TLS_DH_DSS_WITH_AES_256_GCM_SHA384 = 165; - -const int TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; - -const int TLS_DH_RSA_WITH_AES_128_CBC_SHA = 49; - -const int TLS_DH_RSA_WITH_AES_128_CBC_SHA256 = 63; - -const int TLS_DH_RSA_WITH_AES_128_GCM_SHA256 = 160; - -const int TLS_DH_RSA_WITH_AES_256_CBC_SHA = 55; - -const int TLS_DH_RSA_WITH_AES_256_CBC_SHA256 = 105; - -const int TLS_DH_RSA_WITH_AES_256_GCM_SHA384 = 161; - -const int TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; - -const int TLS_DH_anon_WITH_AES_128_CBC_SHA = 52; - -const int TLS_DH_anon_WITH_AES_128_CBC_SHA256 = 108; - -const int TLS_DH_anon_WITH_AES_128_GCM_SHA256 = 166; - -const int TLS_DH_anon_WITH_AES_256_CBC_SHA = 58; - -const int TLS_DH_anon_WITH_AES_256_CBC_SHA256 = 109; - -const int TLS_DH_anon_WITH_AES_256_GCM_SHA384 = 167; - -const int TLS_DH_anon_WITH_RC4_128_MD5 = 24; - -const int TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = -16376; - -const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = -16375; - -const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = -16349; - -const int TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = -16341; - -const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = -16374; - -const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = -16348; - -const int TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = -16340; - -const int TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = -13143; - -const int TLS_ECDHE_ECDSA_WITH_NULL_SHA = -16378; - -const int TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = -16377; - -const int TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA = -16331; - -const int TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA = -16330; - -const int TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 = -13140; - -const int TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = -16366; - -const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = -16365; - -const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = -16345; - -const int TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = -16337; - -const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = -16364; - -const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = -16344; - -const int TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = -16336; - -const int TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = -13144; - -const int TLS_ECDHE_RSA_WITH_NULL_SHA = -16368; - -const int TLS_ECDHE_RSA_WITH_RC4_128_SHA = -16367; - -const int TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = -16381; - -const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = -16380; - -const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 = -16347; - -const int TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = -16339; - -const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = -16379; - -const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 = -16346; - -const int TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = -16338; - -const int TLS_ECDH_ECDSA_WITH_NULL_SHA = -16383; - -const int TLS_ECDH_ECDSA_WITH_RC4_128_SHA = -16382; - -const int TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = -16371; - -const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = -16370; - -const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 = -16343; - -const int TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 = -16335; - -const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = -16369; - -const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 = -16342; - -const int TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 = -16334; - -const int TLS_ECDH_RSA_WITH_NULL_SHA = -16373; - -const int TLS_ECDH_RSA_WITH_RC4_128_SHA = -16372; - -const int TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = -16361; - -const int TLS_ECDH_anon_WITH_AES_128_CBC_SHA = -16360; - -const int TLS_ECDH_anon_WITH_AES_256_CBC_SHA = -16359; - -const int TLS_ECDH_anon_WITH_NULL_SHA = -16363; - -const int TLS_ECDH_anon_WITH_RC4_128_SHA = -16362; - -const int TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 255; - -const int TLS_NULL_WITH_NULL_NULL = 0; - -const int TLS_PSK_WITH_3DES_EDE_CBC_SHA = 139; - -const int TLS_PSK_WITH_AES_128_CBC_SHA = 140; - -const int TLS_PSK_WITH_AES_128_CBC_SHA256 = 174; - -const int TLS_PSK_WITH_AES_128_GCM_SHA256 = 168; - -const int TLS_PSK_WITH_AES_256_CBC_SHA = 141; - -const int TLS_PSK_WITH_AES_256_CBC_SHA384 = 175; - -const int TLS_PSK_WITH_AES_256_GCM_SHA384 = 169; - -const int TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 = -13141; - -const int TLS_PSK_WITH_NULL_SHA = 44; - -const int TLS_PSK_WITH_NULL_SHA256 = 176; - -const int TLS_PSK_WITH_NULL_SHA384 = 177; - -const int TLS_PSK_WITH_RC4_128_SHA = 138; - -const int TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = 147; - -const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA = 148; - -const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 = 182; - -const int TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 = 172; - -const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA = 149; - -const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 = 183; - -const int TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 = 173; - -const int TLS_RSA_PSK_WITH_NULL_SHA = 46; - -const int TLS_RSA_PSK_WITH_NULL_SHA256 = 184; - -const int TLS_RSA_PSK_WITH_NULL_SHA384 = 185; - -const int TLS_RSA_PSK_WITH_RC4_128_SHA = 146; - -const int TLS_RSA_WITH_3DES_EDE_CBC_SHA = 10; - -const int TLS_RSA_WITH_AES_128_CBC_SHA = 47; - -const int TLS_RSA_WITH_AES_128_CBC_SHA256 = 60; - -const int TLS_RSA_WITH_AES_128_GCM_SHA256 = 156; - -const int TLS_RSA_WITH_AES_256_CBC_SHA = 53; - -const int TLS_RSA_WITH_AES_256_CBC_SHA256 = 61; - -const int TLS_RSA_WITH_AES_256_GCM_SHA384 = 157; - -const int TLS_RSA_WITH_NULL_MD5 = 1; - -const int TLS_RSA_WITH_NULL_SHA = 2; - -const int TLS_RSA_WITH_NULL_SHA256 = 59; - -const int TLS_RSA_WITH_RC4_128_MD5 = 4; - -const int TLS_RSA_WITH_RC4_128_SHA = 5; - -@ffi.Packed(2) -final class TMTask extends ffi.Struct { - external QElemPtr qLink; - - @ffi.Short() - external int qType; - - external TimerUPP tmAddr; - - @ffi.Long() - external int tmCount; - - @ffi.Long() - external int tmWakeUp; - - @ffi.Long() - external int tmReserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required TimerUPP tmAddr, - required int tmCount, - required int tmWakeUp, - required int tmReserved, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.tmAddr = tmAddr - ..ref.tmCount = tmCount - ..ref.tmWakeUp = tmWakeUp - ..ref.tmReserved = tmReserved; -} - -typedef TMTaskPtr = ffi.Pointer; - -@ffi.Packed(2) -final class TScriptingSizeResource extends ffi.Struct { - @SInt16() - external int scriptingSizeFlags; - - @UInt32() - external int minStackSize; - - @UInt32() - external int preferredStackSize; - - @UInt32() - external int maxStackSize; - - @UInt32() - external int minHeapSize; - - @UInt32() - external int preferredHeapSize; - - @UInt32() - external int maxHeapSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int scriptingSizeFlags, - required int minStackSize, - required int preferredStackSize, - required int maxStackSize, - required int minHeapSize, - required int preferredHeapSize, - required int maxHeapSize, - }) => $allocator() - ..ref.scriptingSizeFlags = scriptingSizeFlags - ..ref.minStackSize = minStackSize - ..ref.preferredStackSize = preferredStackSize - ..ref.maxStackSize = maxStackSize - ..ref.minHeapSize = minHeapSize - ..ref.preferredHeapSize = preferredHeapSize - ..ref.maxHeapSize = maxHeapSize; -} - -@ffi.Packed(2) -final class TableDirectoryRecord extends ffi.Struct { - @OSType() - external int tableSignature; - - @UInt32() - external int reserved; - - @UInt32() - external int tableStartOffset; - - @UInt32() - external int tableSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tableSignature, - required int reserved, - required int tableStartOffset, - required int tableSize, - }) => $allocator() - ..ref.tableSignature = tableSignature - ..ref.reserved = reserved - ..ref.tableStartOffset = tableStartOffset - ..ref.tableSize = tableSize; -} - -typedef TaskProc = ffi.Pointer>; -typedef TaskProcFunction = OSStatus Function(ffi.Pointer parameter); -typedef DartTaskProcFunction = - DartSInt32 Function(ffi.Pointer parameter); -typedef TaskStorageIndex = ItemCount; -typedef TaskStorageValue = LogicalAddress; -typedef TextBreakLocatorRef = ffi.Pointer; - -@ffi.Packed(2) -final class TextChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @ffi.Array.multi([1]) - external ffi.Array text; -} - -typedef TextChunkPtr = ffi.Pointer; -typedef TextEncoding = UInt32; -typedef TextEncodingBase = UInt32; -typedef TextEncodingFormat = UInt32; -typedef TextEncodingNameSelector = UInt32; - -final class TextEncodingRec extends ffi.Struct { - @UInt32() - external int base; - - @UInt32() - external int variant; - - @UInt32() - external int format; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int base, - required int variant, - required int format, - }) => $allocator() - ..ref.base = base - ..ref.variant = variant - ..ref.format = format; -} - -@ffi.Packed(2) -final class TextEncodingRun extends ffi.Struct { - @ByteOffset() - external int offset; - - @TextEncoding() - external int textEncoding; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int textEncoding, - }) => $allocator() - ..ref.offset = offset - ..ref.textEncoding = textEncoding; -} - -typedef TextEncodingRunPtr = ffi.Pointer; -typedef TextEncodingVariant = UInt32; -typedef TextPtr = ffi.Pointer; - -@ffi.Packed(2) -final class TextRange extends ffi.Struct { - @SInt32() - external int fStart; - - @SInt32() - external int fEnd; - - @SInt16() - external int fHiliteStyle; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fStart, - required int fEnd, - required int fHiliteStyle, - }) => $allocator() - ..ref.fStart = fStart - ..ref.fEnd = fEnd - ..ref.fHiliteStyle = fHiliteStyle; -} - -final class TextRangeArray extends ffi.Struct { - @SInt16() - external int fNumOfRanges; - - @ffi.Array.multi([1]) - external ffi.Array fRange; -} - -typedef TextRangeArrayHandle = ffi.Pointer; -typedef TextRangeArrayPtr = ffi.Pointer; -typedef TextRangeHandle = ffi.Pointer; -typedef TextRangePtr = ffi.Pointer; -typedef TextToUnicodeInfo = ffi.Pointer; -typedef ThreadEntryProcPtr = - ffi.Pointer>; -typedef ThreadEntryProcPtrFunction = - voidPtr Function(ffi.Pointer threadParam); -typedef ThreadEntryTPP = ThreadEntryUPP; -typedef ThreadEntryUPP = ThreadEntryProcPtr; -typedef ThreadID = ffi.UnsignedLong; -typedef DartThreadID = int; -typedef ThreadOptions = UInt32; -typedef ThreadSchedulerProcPtr = - ffi.Pointer>; -typedef ThreadSchedulerProcPtrFunction = - ThreadID Function(SchedulerInfoRecPtr schedulerInfo); -typedef DartThreadSchedulerProcPtrFunction = - DartThreadID Function(SchedulerInfoRecPtr schedulerInfo); -typedef ThreadSchedulerTPP = ThreadSchedulerUPP; -typedef ThreadSchedulerUPP = ThreadSchedulerProcPtr; -typedef ThreadState = UInt16; -typedef ThreadStyle = UInt32; -typedef ThreadSwitchProcPtr = - ffi.Pointer>; -typedef ThreadSwitchProcPtrFunction = - ffi.Void Function( - ThreadID threadBeingSwitched, - ffi.Pointer switchProcParam, - ); -typedef DartThreadSwitchProcPtrFunction = - void Function( - DartThreadID threadBeingSwitched, - ffi.Pointer switchProcParam, - ); -typedef ThreadSwitchTPP = ThreadSwitchUPP; -typedef ThreadSwitchUPP = ThreadSwitchProcPtr; -typedef ThreadTaskRef = ffi.Pointer; -typedef ThreadTerminationProcPtr = - ffi.Pointer>; -typedef ThreadTerminationProcPtrFunction = - ffi.Void Function( - ThreadID threadTerminated, - ffi.Pointer terminationProcParam, - ); -typedef DartThreadTerminationProcPtrFunction = - void Function( - DartThreadID threadTerminated, - ffi.Pointer terminationProcParam, - ); -typedef ThreadTerminationTPP = ThreadTerminationUPP; -typedef ThreadTerminationUPP = ThreadTerminationProcPtr; -typedef TimeBase = ffi.Pointer; - -final class TimeBaseRecord extends ffi.Opaque {} - -@ffi.Packed(2) -final class TimeRecord extends ffi.Struct { - external CompTimeValue value; - - @TimeScale() - external int scale; - - external TimeBase base; -} - -typedef TimeScale = SInt32; -typedef TimeValue = SInt32; -typedef TimeValue64 = SInt64; -typedef TimerProcPtr = ffi.Pointer>; -typedef TimerProcPtrFunction = ffi.Void Function(TMTaskPtr tmTaskPtr); -typedef DartTimerProcPtrFunction = void Function(TMTaskPtr tmTaskPtr); -typedef TimerUPP = TimerProcPtr; - -@ffi.Packed(2) -final class TogglePB extends ffi.Struct { - @ffi.Long() - external int togFlags; - - @ResType() - external int amChars; - - @ResType() - external int pmChars; - - @ffi.Array.multi([4]) - external ffi.Array reserved; -} - -typedef ToggleResults = SInt16; - -@Deprecated('Deprecated') -@ffi.Packed(2) -final class TokenBlock extends ffi.Struct { - external Ptr source; - - @ffi.Long() - external int sourceLength; - - external Ptr tokenList; - - @ffi.Long() - external int tokenLength; - - @ffi.Long() - external int tokenCount; - - external Ptr stringList; - - @ffi.Long() - external int stringLength; - - @ffi.Long() - external int stringCount; - - @Boolean() - external int doString; - - @Boolean() - external int doAppend; - - @Boolean() - external int doAlphanumeric; - - @Boolean() - external int doNest; - - @ffi.Array.multi([2]) - external ffi.Array leftDelims; - - @ffi.Array.multi([2]) - external ffi.Array rightDelims; - - @ffi.Array.multi([4]) - external ffi.Array leftComment; - - @ffi.Array.multi([4]) - external ffi.Array rightComment; - - @ScriptTokenType() - external int escapeCode; - - @ScriptTokenType() - external int decimalCode; - - external Handle itlResource; - - @ffi.Array.multi([8]) - external ffi.Array reserved; -} - -typedef TokenBlockPtr = ffi.Pointer; - -@Deprecated('Deprecated') -@ffi.Packed(2) -final class TokenRec extends ffi.Struct { - @ScriptTokenType() - external int theToken; - - external Ptr position; - - @ffi.Long() - external int length; - - external StringPtr stringPosition; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int theToken, - required Ptr position, - required int length, - required StringPtr stringPosition, - }) => $allocator() - ..ref.theToken = theToken - ..ref.position = position - ..ref.length = length - ..ref.stringPosition = stringPosition; -} - -typedef TokenRecPtr = ffi.Pointer; -typedef TokenResults = SInt8; - -@ffi.Packed(2) -final class TrakTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt16() - external int format; - - @UInt16() - external int horizOffset; - - @UInt16() - external int vertOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int format, - required int horizOffset, - required int vertOffset, - }) => $allocator() - ..ref.version = version - ..ref.format = format - ..ref.horizOffset = horizOffset - ..ref.vertOffset = vertOffset; -} - -@ffi.Packed(2) -final class TrakTableData extends ffi.Struct { - @UInt16() - external int nTracks; - - @UInt16() - external int nSizes; - - @UInt32() - external int sizeTableOffset; - - @ffi.Array.multi([1]) - external ffi.Array trakTable; -} - -@ffi.Packed(2) -final class TrakTableEntry extends ffi.Struct { - @Fixed() - external int track; - - @UInt16() - external int nameTableIndex; - - @UInt16() - external int sizesOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int track, - required int nameTableIndex, - required int sizesOffset, - }) => $allocator() - ..ref.track = track - ..ref.nameTableIndex = nameTableIndex - ..ref.sizesOffset = sizesOffset; -} - -typedef TrakValue = SInt16; -typedef TranslationFlags = OptionBits; -typedef TranslationRef = ffi.Pointer; -typedef TruncCode = ffi.Short; -typedef DartTruncCode = int; -typedef UAZoomChangeFocusType = UInt32; -typedef UCCharPropertyType = SInt32; -typedef UCCharPropertyValue = UInt32; -typedef UCCollateOptions = UInt32; -typedef UCCollationValue = UInt32; -typedef UCKeyCharSeq = UInt16; - -@ffi.Packed(2) -final class UCKeyLayoutFeatureInfo extends ffi.Struct { - @UInt16() - external int keyLayoutFeatureInfoFormat; - - @UInt16() - external int reserved; - - @UInt32() - external int maxOutputStringLength; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int keyLayoutFeatureInfoFormat, - required int reserved, - required int maxOutputStringLength, - }) => $allocator() - ..ref.keyLayoutFeatureInfoFormat = keyLayoutFeatureInfoFormat - ..ref.reserved = reserved - ..ref.maxOutputStringLength = maxOutputStringLength; -} - -@ffi.Packed(2) -final class UCKeyModifiersToTableNum extends ffi.Struct { - @UInt16() - external int keyModifiersToTableNumFormat; - - @UInt16() - external int defaultTableNum; - - @UInt32() - external int modifiersCount; - - @ffi.Array.multi([1]) - external ffi.Array tableNum; -} - -typedef UCKeyOutput = UInt16; - -final class UCKeySequenceDataIndex extends ffi.Struct { - @UInt16() - external int keySequenceDataIndexFormat; - - @UInt16() - external int charSequenceCount; - - @ffi.Array.multi([1]) - external ffi.Array charSequenceOffsets; -} - -final class UCKeyStateEntryRange extends ffi.Struct { - @UInt16() - external int curStateStart; - - @UInt8() - external int curStateRange; - - @UInt8() - external int deltaMultiplier; - - @UCKeyCharSeq() - external int charData; - - @UInt16() - external int nextState; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int curStateStart, - required int curStateRange, - required int deltaMultiplier, - required int charData, - required int nextState, - }) => $allocator() - ..ref.curStateStart = curStateStart - ..ref.curStateRange = curStateRange - ..ref.deltaMultiplier = deltaMultiplier - ..ref.charData = charData - ..ref.nextState = nextState; -} - -final class UCKeyStateEntryTerminal extends ffi.Struct { - @UInt16() - external int curState; - - @UCKeyCharSeq() - external int charData; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int curState, - required int charData, - }) => $allocator() - ..ref.curState = curState - ..ref.charData = charData; -} - -@ffi.Packed(2) -final class UCKeyStateRecord extends ffi.Struct { - @UCKeyCharSeq() - external int stateZeroCharData; - - @UInt16() - external int stateZeroNextState; - - @UInt16() - external int stateEntryCount; - - @UInt16() - external int stateEntryFormat; - - @ffi.Array.multi([1]) - external ffi.Array stateEntryData; -} - -@ffi.Packed(2) -final class UCKeyStateRecordsIndex extends ffi.Struct { - @UInt16() - external int keyStateRecordsIndexFormat; - - @UInt16() - external int keyStateRecordCount; - - @ffi.Array.multi([1]) - external ffi.Array keyStateRecordOffsets; -} - -final class UCKeyStateTerminators extends ffi.Struct { - @UInt16() - external int keyStateTerminatorsFormat; - - @UInt16() - external int keyStateTerminatorCount; - - @ffi.Array.multi([1]) - external ffi.Array keyStateTerminators; -} - -@ffi.Packed(2) -final class UCKeyToCharTableIndex extends ffi.Struct { - @UInt16() - external int keyToCharTableIndexFormat; - - @UInt16() - external int keyToCharTableSize; - - @UInt32() - external int keyToCharTableCount; - - @ffi.Array.multi([1]) - external ffi.Array keyToCharTableOffsets; -} - -@ffi.Packed(2) -final class UCKeyboardLayout extends ffi.Struct { - @UInt16() - external int keyLayoutHeaderFormat; - - @UInt16() - external int keyLayoutDataVersion; - - @UInt32() - external int keyLayoutFeatureInfoOffset; - - @UInt32() - external int keyboardTypeCount; - - @ffi.Array.multi([1]) - external ffi.Array keyboardTypeList; -} - -@ffi.Packed(2) -final class UCKeyboardTypeHeader extends ffi.Struct { - @UInt32() - external int keyboardTypeFirst; - - @UInt32() - external int keyboardTypeLast; - - @UInt32() - external int keyModifiersToTableNumOffset; - - @UInt32() - external int keyToCharTableIndexOffset; - - @UInt32() - external int keyStateRecordsIndexOffset; - - @UInt32() - external int keyStateTerminatorsOffset; - - @UInt32() - external int keySequenceDataIndexOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int keyboardTypeFirst, - required int keyboardTypeLast, - required int keyModifiersToTableNumOffset, - required int keyToCharTableIndexOffset, - required int keyStateRecordsIndexOffset, - required int keyStateTerminatorsOffset, - required int keySequenceDataIndexOffset, - }) => $allocator() - ..ref.keyboardTypeFirst = keyboardTypeFirst - ..ref.keyboardTypeLast = keyboardTypeLast - ..ref.keyModifiersToTableNumOffset = keyModifiersToTableNumOffset - ..ref.keyToCharTableIndexOffset = keyToCharTableIndexOffset - ..ref.keyStateRecordsIndexOffset = keyStateRecordsIndexOffset - ..ref.keyStateTerminatorsOffset = keyStateTerminatorsOffset - ..ref.keySequenceDataIndexOffset = keySequenceDataIndexOffset; -} - -typedef UCTSWalkDirection = UInt16; -typedef UCTextBreakOptions = UInt32; -typedef UCTextBreakType = UInt32; -typedef UCTypeSelectCompareResult = SInt32; -typedef UCTypeSelectOptions = UInt16; -typedef UCTypeSelectRef = ffi.Pointer; -typedef UInt = ffi.UnsignedInt; -typedef DartUInt = int; -typedef UInt16 = ffi.UnsignedShort; -typedef DartUInt16 = int; -typedef UInt32 = ffi.UnsignedInt; -typedef DartUInt32 = int; -typedef UInt64 = ffi.UnsignedLongLong; -typedef DartUInt64 = int; -typedef UInt8 = ffi.UnsignedChar; -typedef DartUInt8 = int; -typedef UNDServerRef = mach_port_t; - -const int UNORDERED = 3; - -typedef URefCon = ffi.Pointer; - -@ffi.Packed(2) -final class UTCDateTime extends ffi.Struct { - @UInt16() - external int highSeconds; - - @UInt32() - external int lowSeconds; - - @UInt16() - external int fraction$1; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int highSeconds, - required int lowSeconds, - required int fraction$1, - }) => $allocator() - ..ref.highSeconds = highSeconds - ..ref.lowSeconds = lowSeconds - ..ref.fraction$1 = fraction$1; -} - -typedef UTCDateTimeHandle = ffi.Pointer; -typedef UTCDateTimePtr = ffi.Pointer; -typedef UTF16Char = UInt16; -typedef UTF32Char = UInt32; -typedef UTF8Char = UInt8; -typedef UniChar = UInt16; -typedef UniCharArrayHandle = ffi.Pointer; -typedef UniCharArrayOffset = ffi.UnsignedLong; -typedef DartUniCharArrayOffset = int; -typedef UniCharArrayPtr = ffi.Pointer; -typedef UniCharCount = ffi.UnsignedLong; -typedef DartUniCharCount = int; -typedef UniCharCountPtr = ffi.Pointer; -typedef UniCharPtr = ffi.Pointer; -typedef UnicodeMapVersion = SInt32; - -@ffi.Packed(2) -final class UnicodeMapping extends ffi.Struct { - @TextEncoding() - external int unicodeEncoding; - - @TextEncoding() - external int otherEncoding; - - @UnicodeMapVersion() - external int mappingVersion; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int unicodeEncoding, - required int otherEncoding, - required int mappingVersion, - }) => $allocator() - ..ref.unicodeEncoding = unicodeEncoding - ..ref.otherEncoding = otherEncoding - ..ref.mappingVersion = mappingVersion; -} - -typedef UnicodeMappingPtr = ffi.Pointer; -typedef UnicodeScalarValue = UInt32; -typedef UnicodeToTextFallbackProcPtr = - ffi.Pointer>; -typedef UnicodeToTextFallbackProcPtrFunction = - OSStatus Function( - ffi.Pointer iSrcUniStr, - ByteCount iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - TextPtr oDestStr, - ByteCount iDestStrLen, - ffi.Pointer oDestConvLen, - LogicalAddress iInfoPtr, - ConstUnicodeMappingPtr iUnicodeMappingPtr, - ); -typedef DartUnicodeToTextFallbackProcPtrFunction = - DartSInt32 Function( - ffi.Pointer iSrcUniStr, - DartByteCount iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - TextPtr oDestStr, - DartByteCount iDestStrLen, - ffi.Pointer oDestConvLen, - LogicalAddress iInfoPtr, - ConstUnicodeMappingPtr iUnicodeMappingPtr, - ); -typedef UnicodeToTextFallbackUPP = UnicodeToTextFallbackProcPtr; -typedef UnicodeToTextInfo = ffi.Pointer; -typedef UnicodeToTextRunInfo = ffi.Pointer; -typedef UniversalProcHandle = ffi.Pointer; -typedef UniversalProcPtr = ProcPtr; - -@ffi.Packed(2) -final class UnnamedStruct extends ffi.Struct { - @UInt16() - external int what; - - @UInt32() - external int message; - - @UInt32() - external int when; - - external Point where; - - @UInt16() - external int modifiers; -} - -final class UnnamedStruct$1 extends ffi.Struct { - external ffi.Pointer opaque1; - - @ffi.Long() - external int opaque2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer opaque1, - required int opaque2, - }) => $allocator() - ..ref.opaque1 = opaque1 - ..ref.opaque2 = opaque2; -} - -final class UnnamedStruct$10 extends ffi.Struct { - @ffi.Short() - external int eraAlt; - - external DateTimeRec oldDate; -} - -final class UnnamedStruct$11 extends ffi.Struct { - @UInt8() - external int subx; - - @UInt8() - external int suby; - - @SInt16() - external int eventNum; - - @SInt32() - external int click; - - @UInt8() - external int pressure; - - @UInt8() - external int buttonNumber; - - @UInt8() - external int subType; - - @UInt8() - external int reserved2; - - @SInt32() - external int reserved3; - - external UnnamedUnion$12 tablet; -} - -final class UnnamedStruct$12 extends ffi.Struct { - @UInt16() - external int vendorID; - - @UInt16() - external int tabletID; - - @UInt16() - external int pointerID; - - @UInt16() - external int deviceID; - - @UInt16() - external int systemTabletID; - - @UInt16() - external int vendorPointerType; - - @UInt32() - external int pointerSerialNumber; - - @UInt64() - external int uniqueID; - - @UInt32() - external int capabilityMask; - - @UInt8() - external int pointerType; - - @UInt8() - external int enterProximity; - - @SInt16() - external int reserved1; - - @ffi.Array.multi([4]) - external ffi.Array reserved2; -} - -final class UnnamedStruct$13 extends ffi.Struct { - @SInt32() - external int dx; - - @SInt32() - external int dy; - - @UInt8() - external int subx; - - @UInt8() - external int suby; - - @UInt8() - external int subType; - - @UInt8() - external int reserved1; - - @SInt32() - external int reserved2; - - external UnnamedUnion$13 tablet; -} - -final class UnnamedStruct$14 extends ffi.Struct { - @UInt16() - external int origCharSet; - - @SInt16() - external int repeat; - - @UInt16() - external int charSet; - - @UInt16() - external int charCode; - - @UInt16() - external int keyCode; - - @UInt16() - external int origCharCode; - - @SInt32() - external int reserved1; - - @UInt32() - external int keyboardType; - - @SInt32() - external int reserved2; - - @SInt32() - external int reserved3; - - @SInt32() - external int reserved4; - - @ffi.Array.multi([4]) - external ffi.Array reserved5; -} - -final class UnnamedStruct$15 extends ffi.Struct { - @SInt32() - external int x; - - @SInt32() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -final class UnnamedStruct$16 extends ffi.Struct { - @SInt16() - external int reserved; - - @SInt16() - external int eventNum; - - @SInt32() - external int trackingNum; - - @SInt32() - external int userData; - - @SInt32() - external int reserved1; - - @SInt32() - external int reserved2; - - @SInt32() - external int reserved3; - - @SInt32() - external int reserved4; - - @SInt32() - external int reserved5; - - @ffi.Array.multi([4]) - external ffi.Array reserved6; -} - -final class UnnamedStruct$17 extends ffi.Struct { - @SInt16() - external int reserved; - - @SInt16() - external int subType; - - external UnnamedUnion$14 misc; -} - -final class UnnamedStruct$18 extends ffi.Struct { - @SInt16() - external int x; - - @SInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -final class UnnamedStruct$19 extends ffi.Struct { - @SInt32() - external int x; - - @SInt32() - external int y; - - @SInt32() - external int z; - - @UInt16() - external int buttons; - - @UInt16() - external int pressure; - - external UnnamedStruct$18 tilt; - - @UInt16() - external int rotation; - - @SInt16() - external int tangentialPressure; - - @UInt16() - external int deviceID; - - @SInt16() - external int vendor1; - - @SInt16() - external int vendor2; - - @SInt16() - external int vendor3; - - @ffi.Array.multi([4]) - external ffi.Array reserved; -} - -final class UnnamedStruct$2 extends ffi.Struct { - external ffi.Pointer opaque1; - - external ffi.Pointer opaque2; - - @ffi.Int() - external int opaque3; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer opaque1, - required ffi.Pointer opaque2, - required int opaque3, - }) => $allocator() - ..ref.opaque1 = opaque1 - ..ref.opaque2 = opaque2 - ..ref.opaque3 = opaque3; -} - -@ffi.Packed(2) -final class UnnamedStruct$20 extends ffi.Struct { - @UInt32() - external int lLow; - - @UInt32() - external int lHigh; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lLow, - required int lHigh, - }) => $allocator() - ..ref.lLow = lLow - ..ref.lHigh = lHigh; -} - -final class UnnamedStruct$21 extends ffi.Struct { - @SInt16() - external int deltaAxis1; - - @SInt16() - external int deltaAxis2; - - @SInt16() - external int deltaAxis3; - - @SInt16() - external int reserved1; - - @SInt32() - external int fixedDeltaAxis1; - - @SInt32() - external int fixedDeltaAxis2; - - @SInt32() - external int fixedDeltaAxis3; - - @SInt32() - external int pointDeltaAxis1; - - @SInt32() - external int pointDeltaAxis2; - - @SInt32() - external int pointDeltaAxis3; - - @ffi.Array.multi([4]) - external ffi.Array reserved8; -} - -final class UnnamedStruct$22 extends ffi.Struct { - @ffi.Short() - external int era; - - @ffi.Short() - external int year; - - @ffi.Short() - external int month; - - @ffi.Short() - external int day; - - @ffi.Short() - external int hour; - - @ffi.Short() - external int minute; - - @ffi.Short() - external int second; - - @ffi.Short() - external int dayOfWeek; - - @ffi.Short() - external int dayOfYear; - - @ffi.Short() - external int weekOfYear; - - @ffi.Short() - external int pm; - - @ffi.Short() - external int res1; - - @ffi.Short() - external int res2; - - @ffi.Short() - external int res3; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int era, - required int year, - required int month, - required int day, - required int hour, - required int minute, - required int second, - required int dayOfWeek, - required int dayOfYear, - required int weekOfYear, - required int pm, - required int res1, - required int res2, - required int res3, - }) => $allocator() - ..ref.era = era - ..ref.year = year - ..ref.month = month - ..ref.day = day - ..ref.hour = hour - ..ref.minute = minute - ..ref.second = second - ..ref.dayOfWeek = dayOfWeek - ..ref.dayOfYear = dayOfYear - ..ref.weekOfYear = weekOfYear - ..ref.pm = pm - ..ref.res1 = res1 - ..ref.res2 = res2 - ..ref.res3 = res3; -} - -final class UnnamedStruct$3 extends ffi.Struct { - @ffi.Array.multi([3]) - external ffi.Array pad; - - @SInt8() - external int Delta; -} - -final class UnnamedStruct$4 extends ffi.Struct { - @ffi.UnsignedChar() - external int length; - - @ffi.Array.multi([36]) - external ffi.Array text; - - @ffi.UnsignedChar() - external int unused; -} - -final class UnnamedStruct$5 extends ffi.Struct { - @ffi.Int16() - external int top; - - @ffi.Int16() - external int left; - - @ffi.Int16() - external int bottom; - - @ffi.Int16() - external int right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int top, - required int left, - required int bottom, - required int right, - }) => $allocator() - ..ref.top = top - ..ref.left = left - ..ref.bottom = bottom - ..ref.right = right; -} - -final class UnnamedStruct$6 extends ffi.Struct { - @u_int16_t() - external int v; - - @u_int16_t() - external int h; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - required int h, - }) => $allocator() - ..ref.v = v - ..ref.h = h; -} - -final class UnnamedStruct$7 extends ffi.Struct { - @ffi.Int16() - external int v; - - @ffi.Int16() - external int h; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - required int h, - }) => $allocator() - ..ref.v = v - ..ref.h = h; -} - -final class UnnamedStruct$8 extends ffi.Struct { - @ffi.Char() - external int lo; - - @ffi.Char() - external int hi; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lo, - required int hi, - }) => $allocator() - ..ref.lo = lo - ..ref.hi = hi; -} - -final class UnnamedStruct$9 extends ffi.Struct { - @SInt16() - external int x; - - @SInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -final class UnnamedUnion extends ffi.Union { - external CSSM_LIST Sublist; - - external SecAsn1Item Word; -} - -final class UnnamedUnion$1 extends ffi.Union { - external CSSM_DATA_PTR CertList; - - external CSSM_ENCODED_CERT_PTR EncodedCertList; - - external CSSM_PARSED_CERT_PTR ParsedCertList; - - external CSSM_CERT_PAIR_PTR PairCertList; -} - -final class UnnamedUnion$10 extends ffi.Union { - external IODetailedTimingInformationV1 v1; - - external IODetailedTimingInformationV2 v2; -} - -final class UnnamedUnion$11 extends ffi.Union { - @UInt32() - external int fullHashWord; - - external PEFSplitHashWord splitHashWord; -} - -final class UnnamedUnion$12 extends ffi.Union { - external NXTabletPointData point; - - external NXTabletProximityData proximity; -} - -final class UnnamedUnion$13 extends ffi.Union { - external NXTabletPointData point; - - external NXTabletProximityData proximity; -} - -final class UnnamedUnion$14 extends ffi.Union { - @ffi.Array.multi([11]) - external ffi.Array F; - - @ffi.Array.multi([11]) - external ffi.Array L; - - @ffi.Array.multi([22]) - external ffi.Array S; - - @ffi.Array.multi([44]) - external ffi.Array C; -} - -final class UnnamedUnion$15 extends ffi.Union { - external arm_thread_state32_t ts_32; - - external arm_thread_state64_t ts_64; -} - -final class UnnamedUnion$16 extends ffi.Union { - @boolean_t() - external int is_master; - - @boolean_t() - external int is_main; -} - -final class UnnamedUnion$2 extends ffi.Union { - external CSSM_DATA_PTR CrlList; - - external CSSM_ENCODED_CRL_PTR EncodedCrlList; - - external CSSM_PARSED_CRL_PTR ParsedCrlList; - - external CSSM_CRL_PAIR_PTR PairCrlList; -} - -final class UnnamedUnion$3 extends ffi.Union { - @ffi.Long() - external int gmtDelta; - - external UnnamedStruct$3 dls; -} - -final class UnnamedUnion$4 extends ffi.Union { - @ffi.Array.multi([2]) - external ffi.Array reserved; - - @mach_port_name_t() - external int work_interval_port; - - external mach_service_port_info_t service_port_info; - - @mach_port_name_t() - external int service_port_name; -} - -final class UnnamedUnion$5 extends ffi.Union { - @ffi.Array.multi([16]) - external ffi.Array<__uint8_t> __u6_addr8; - - @ffi.Array.multi([8]) - external ffi.Array<__uint16_t> __u6_addr16; - - @ffi.Array.multi([4]) - external ffi.Array<__uint32_t> __u6_addr32; -} - -final class UnnamedUnion$6 extends ffi.Union { - @ATSGeneration() - external int generationFilter; - - @ATSFontFamilyRef() - external int fontFamilyFilter; - - external ATSFontFamilyApplierFunction fontFamilyApplierFunctionFilter; - - external ATSFontApplierFunction fontApplierFunctionFilter; -} - -final class UnnamedUnion$7 extends ffi.Union { - external CMVideoCardGammaTable table; - - external CMVideoCardGammaFormula formula; -} - -final class UnnamedUnion$8 extends ffi.Union { - external ffi.Pointer fullName; - - external CSSM_X509_RDN_PTR rdn; -} - -final class UnnamedUnion$9 extends ffi.Union { - @u_int32_t() - external int iNodeNum; - - @u_int32_t() - external int linkCount; - - @u_int32_t() - external int rawDevice; -} - -typedef UnsignedFixed = UInt32; -typedef UnsignedFixedPtr = ffi.Pointer; - -@ffi.Packed(2) -final class UnsignedWide extends ffi.Struct { - @UInt32() - external int lo; - - @UInt32() - external int hi; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lo, - required int hi, - }) => $allocator() - ..ref.lo = lo - ..ref.hi = hi; -} - -typedef UnsignedWidePtr = ffi.Pointer; - -final class UntokenTable extends ffi.Struct { - @ffi.Short() - external int len; - - @ffi.Short() - external int lastToken; - - @ffi.Array.multi([256]) - external ffi.Array index$1; -} - -typedef UntokenTableHandle = ffi.Pointer; -typedef UntokenTablePtr = ffi.Pointer; - -const int UsrActivity = 1; - -typedef VDGamRecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class VDGammaRecord extends ffi.Struct { - external Ptr csGTable; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required Ptr csGTable, - }) => $allocator()..ref.csGTable = csGTable; -} - -typedef VHSelect = SInt8; - -final class Vector128 extends ffi.Union { - @ffi.Array.multi([4]) - external ffi.Array l; - - @ffi.Array.multi([8]) - external ffi.Array s; - - @ffi.Array.multi([16]) - external ffi.Array c; -} - -final class VectorInformation extends ffi.Struct { - external ffi.Pointer __unusedVectorInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedVectorInformationField, - }) => - $allocator() - ..ref.__unusedVectorInformationField = $unusedVectorInformationField; -} - -final class VectorInformationPowerPC extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array Registers; - - external Vector128 VSCR; - - @UInt32() - external int VRsave; -} - -final class VersRec extends ffi.Struct { - external NumVersion numericVersion; - - @ffi.Short() - external int countryCode; - - @ffi.Array.multi([256]) - external ffi.Array shortVersion; - - @ffi.Array.multi([256]) - external ffi.Array reserved; -} - -typedef VersRecHndl = ffi.Pointer; -typedef VersRecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class VoiceDescription extends ffi.Struct { - @SInt32() - external int length; - - external VoiceSpec voice; - - @SInt32() - external int version; - - @ffi.Array.multi([64]) - external ffi.Array name; - - @ffi.Array.multi([256]) - external ffi.Array comment; - - @SInt16() - external int gender; - - @SInt16() - external int age; - - @SInt16() - external int script; - - @SInt16() - external int language; - - @SInt16() - external int region; - - @ffi.Array.multi([4]) - external ffi.Array reserved; -} - -final class VoiceFileInfo extends ffi.Struct { - external FSSpec fileSpec; - - @SInt16() - external int resID; -} - -@ffi.Packed(2) -final class VoiceSpec extends ffi.Struct { - @OSType() - external int creator; - - @OSType() - external int id; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int creator, - required int id, - }) => $allocator() - ..ref.creator = creator - ..ref.id = id; -} - -typedef VoiceSpecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class VolMountInfoHeader extends ffi.Struct { - @SInt16() - external int length; - - @VolumeType() - external int media; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int length, - required int media, - }) => $allocator() - ..ref.length = length - ..ref.media = media; -} - -typedef VolMountInfoPtr = ffi.Pointer; - -@ffi.Packed(2) -final class VolumeMountInfoHeader extends ffi.Struct { - @SInt16() - external int length; - - @VolumeType() - external int media; - - @SInt16() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int length, - required int media, - required int flags, - }) => $allocator() - ..ref.length = length - ..ref.media = media - ..ref.flags = flags; -} - -typedef VolumeMountInfoHeaderPtr = ffi.Pointer; -typedef VolumeType = OSType; - -const int WDEFNFnd = 87; - -@ffi.Packed(2) -final class WSClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external WSClientContextRetainCallBackProcPtr retain; - - external WSClientContextReleaseCallBackProcPtr release; - - external WSClientContextCopyDescriptionCallBackProcPtr copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required WSClientContextRetainCallBackProcPtr retain, - required WSClientContextReleaseCallBackProcPtr release, - required WSClientContextCopyDescriptionCallBackProcPtr copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef WSClientContextCopyDescriptionCallBackProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef WSClientContextCopyDescriptionCallBackProcPtrFunction = - CFStringRef Function(ffi.Pointer info); -typedef WSClientContextReleaseCallBackProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef WSClientContextReleaseCallBackProcPtrFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartWSClientContextReleaseCallBackProcPtrFunction = - void Function(ffi.Pointer info); -typedef WSClientContextRetainCallBackProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef WSClientContextRetainCallBackProcPtrFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef WSMethodInvocationCallBackProcPtr = - ffi.Pointer>; -typedef WSMethodInvocationCallBackProcPtrFunction = - ffi.Void Function( - WSMethodInvocationRef invocation, - ffi.Pointer info, - CFDictionaryRef outRef, - ); -typedef DartWSMethodInvocationCallBackProcPtrFunction = - void Function( - WSMethodInvocationRef invocation, - ffi.Pointer info, - CFDictionaryRef outRef, - ); -typedef WSMethodInvocationDeserializationProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef WSMethodInvocationDeserializationProcPtrFunction = - CFTypeRef Function( - WSMethodInvocationRef invocation, - CFXMLTreeRef msgRoot, - CFXMLTreeRef deserializeRoot, - ffi.Pointer info, - ); -typedef WSMethodInvocationRef = ffi.Pointer; -typedef WSMethodInvocationSerializationProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef WSMethodInvocationSerializationProcPtrFunction = - CFStringRef Function( - WSMethodInvocationRef invocation, - CFTypeRef obj, - ffi.Pointer info, - ); -typedef WSProtocolHandlerDeserializationProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef WSProtocolHandlerDeserializationProcPtrFunction = - CFTypeRef Function( - WSProtocolHandlerRef protocol, - CFXMLTreeRef msgRoot, - CFXMLTreeRef deserializeRoot, - ffi.Pointer info, - ); -typedef WSProtocolHandlerRef = ffi.Pointer; -typedef WSProtocolHandlerSerializationProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef WSProtocolHandlerSerializationProcPtrFunction = - CFStringRef Function( - WSProtocolHandlerRef protocol, - CFTypeRef obj, - ffi.Pointer info, - ); - -enum WSTypeID { - eWSUnknownType(0), - eWSNullType(1), - eWSBooleanType(2), - eWSIntegerType(3), - eWSDoubleType(4), - eWSStringType(5), - eWSDateType(6), - eWSDataType(7), - eWSArrayType(8), - eWSDictionaryType(9); - - final int value; - const WSTypeID(this.value); - - static WSTypeID fromValue(int value) => switch (value) { - 0 => eWSUnknownType, - 1 => eWSNullType, - 2 => eWSBooleanType, - 3 => eWSIntegerType, - 4 => eWSDoubleType, - 5 => eWSStringType, - 6 => eWSDateType, - 7 => eWSDataType, - 8 => eWSArrayType, - 9 => eWSDictionaryType, - _ => throw ArgumentError('Unknown value for WSTypeID: $value'), - }; -} - -final class WideChar extends ffi.Union { - external UnnamedStruct$8 a; - - @ffi.Short() - external int b; -} - -final class WideCharArr extends ffi.Struct { - @ffi.Short() - external int size; - - @ffi.Array.multi([10]) - external ffi.Array data; -} - -typedef WidePtr = ffi.Pointer; -typedef WindowPtr = ffi.Pointer; -typedef WindowRef = WindowPtr; - -final class WritingCode extends ffi.Struct { - @ScriptCode() - external int theScriptCode; - - @LangCode() - external int theLangCode; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int theScriptCode, - required int theLangCode, - }) => $allocator() - ..ref.theScriptCode = theScriptCode - ..ref.theLangCode = theLangCode; -} - -@ffi.Packed(2) -final class XLibContainerHeader extends ffi.Struct { - @OSType() - external int tag1; - - @OSType() - external int tag2; - - @UInt32() - external int currentFormat; - - @UInt32() - external int containerStringsOffset; - - @UInt32() - external int exportHashOffset; - - @UInt32() - external int exportKeyOffset; - - @UInt32() - external int exportSymbolOffset; - - @UInt32() - external int exportNamesOffset; - - @UInt32() - external int exportHashTablePower; - - @UInt32() - external int exportedSymbolCount; - - @UInt32() - external int fragNameOffset; - - @UInt32() - external int fragNameLength; - - @UInt32() - external int dylibPathOffset; - - @UInt32() - external int dylibPathLength; - - @OSType() - external int cpuFamily; - - @OSType() - external int cpuModel; - - @UInt32() - external int dateTimeStamp; - - @UInt32() - external int currentVersion; - - @UInt32() - external int oldDefVersion; - - @UInt32() - external int oldImpVersion; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tag1, - required int tag2, - required int currentFormat, - required int containerStringsOffset, - required int exportHashOffset, - required int exportKeyOffset, - required int exportSymbolOffset, - required int exportNamesOffset, - required int exportHashTablePower, - required int exportedSymbolCount, - required int fragNameOffset, - required int fragNameLength, - required int dylibPathOffset, - required int dylibPathLength, - required int cpuFamily, - required int cpuModel, - required int dateTimeStamp, - required int currentVersion, - required int oldDefVersion, - required int oldImpVersion, - }) => $allocator() - ..ref.tag1 = tag1 - ..ref.tag2 = tag2 - ..ref.currentFormat = currentFormat - ..ref.containerStringsOffset = containerStringsOffset - ..ref.exportHashOffset = exportHashOffset - ..ref.exportKeyOffset = exportKeyOffset - ..ref.exportSymbolOffset = exportSymbolOffset - ..ref.exportNamesOffset = exportNamesOffset - ..ref.exportHashTablePower = exportHashTablePower - ..ref.exportedSymbolCount = exportedSymbolCount - ..ref.fragNameOffset = fragNameOffset - ..ref.fragNameLength = fragNameLength - ..ref.dylibPathOffset = dylibPathOffset - ..ref.dylibPathLength = dylibPathLength - ..ref.cpuFamily = cpuFamily - ..ref.cpuModel = cpuModel - ..ref.dateTimeStamp = dateTimeStamp - ..ref.currentVersion = currentVersion - ..ref.oldDefVersion = oldDefVersion - ..ref.oldImpVersion = oldImpVersion; -} - -@ffi.Packed(2) -final class XLibExportedSymbol extends ffi.Struct { - @UInt32() - external int classAndName; - - @UInt32() - external int bpOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int classAndName, - required int bpOffset, - }) => $allocator() - ..ref.classAndName = classAndName - ..ref.bpOffset = bpOffset; -} - -typedef XLibExportedSymbolHashSlot = PEFExportedSymbolHashSlot; -typedef XLibExportedSymbolKey = PEFExportedSymbolKey; - -const int XPC_ACTIVITY_STATE_CHECK_IN = 0; - -const int XPC_ACTIVITY_STATE_CONTINUE = 4; - -const int XPC_ACTIVITY_STATE_DEFER = 3; - -const int XPC_ACTIVITY_STATE_DONE = 5; - -const int XPC_ACTIVITY_STATE_RUN = 2; - -const int XPC_ACTIVITY_STATE_WAIT = 1; - -extension type _BlockArgs_112ozxo._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_112ozxo] that points to the same underlying object as [other]. - _BlockArgs_112ozxo.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_112ozxo] that wraps the given raw object pointer. - _BlockArgs_112ozxo.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_112ozxo]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_112ozxo, - ); -} - -extension _BlockArgs_112ozxo$Methods on _BlockArgs_112ozxo { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg3); - return ObjCBlock_ffiVoid_NSInputStream.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_117e0ww._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_117e0ww] that points to the same underlying object as [other]. - _BlockArgs_117e0ww.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_117e0ww] that wraps the given raw object pointer. - _BlockArgs_117e0ww.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_117e0ww]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_117e0ww, - ); -} - -extension _BlockArgs_117e0ww$Methods on _BlockArgs_117e0ww { - objc.NSError? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_11uyayp._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_11uyayp] that points to the same underlying object as [other]. - _BlockArgs_11uyayp.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_11uyayp] that wraps the given raw object pointer. - _BlockArgs_11uyayp.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_11uyayp]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_11uyayp, - ); -} - -extension _BlockArgs_11uyayp$Methods on _BlockArgs_11uyayp { - Dartdispatch_data_t? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - int get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_121fmzs._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_121fmzs] that points to the same underlying object as [other]. - _BlockArgs_121fmzs.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_121fmzs] that wraps the given raw object pointer. - _BlockArgs_121fmzs.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_121fmzs]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_121fmzs, - ); -} - -extension _BlockArgs_121fmzs$Methods on _BlockArgs_121fmzs { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_12cm2y5._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_12cm2y5] that points to the same underlying object as [other]. - _BlockArgs_12cm2y5.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_12cm2y5] that wraps the given raw object pointer. - _BlockArgs_12cm2y5.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_12cm2y5]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_12cm2y5, - ); -} - -extension _BlockArgs_12cm2y5$Methods on _BlockArgs_12cm2y5 { - objc.ObjCBlock? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_12rv5aa._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_12rv5aa] that points to the same underlying object as [other]. - _BlockArgs_12rv5aa.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_12rv5aa] that wraps the given raw object pointer. - _BlockArgs_12rv5aa.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_12rv5aa]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_12rv5aa, - ); -} - -extension _BlockArgs_12rv5aa$Methods on _BlockArgs_12rv5aa { - SecTrustRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_dcpapu(_$$ref.pointer, _sel_arg0); - } - - SecTrustResultType get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_140fk5d(_$$ref.pointer, _sel_arg1); - return SecTrustResultType.fromValue($ret); - } -} - -extension type _BlockArgs_12tf05r._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_12tf05r] that points to the same underlying object as [other]. - _BlockArgs_12tf05r.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_12tf05r] that wraps the given raw object pointer. - _BlockArgs_12tf05r.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_12tf05r]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_12tf05r, - ); -} - -extension _BlockArgs_12tf05r$Methods on _BlockArgs_12tf05r { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_12ykekb._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_12ykekb] that points to the same underlying object as [other]. - _BlockArgs_12ykekb.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_12ykekb] that wraps the given raw object pointer. - _BlockArgs_12ykekb.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_12ykekb]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_12ykekb, - ); -} - -extension _BlockArgs_12ykekb$Methods on _BlockArgs_12ykekb { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - NSURLRequest get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLRequest.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_133h48c._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_133h48c] that points to the same underlying object as [other]. - _BlockArgs_133h48c.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_133h48c] that wraps the given raw object pointer. - _BlockArgs_133h48c.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_133h48c]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_133h48c, - ); -} - -extension _BlockArgs_133h48c$Methods on _BlockArgs_133h48c { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - DartNSInteger get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_arg2); - } - - DartNSInteger get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_arg3); - } - - DartNSInteger get arg4 { - final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_arg4); - } -} - -extension type _BlockArgs_136y7ma._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_136y7ma] that points to the same underlying object as [other]. - _BlockArgs_136y7ma.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_136y7ma] that wraps the given raw object pointer. - _BlockArgs_136y7ma.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_136y7ma]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_136y7ma, - ); -} - -extension _BlockArgs_136y7ma$Methods on _BlockArgs_136y7ma { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.NSURLHandle get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_13g89k6._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_13g89k6] that points to the same underlying object as [other]. - _BlockArgs_13g89k6.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_13g89k6] that wraps the given raw object pointer. - _BlockArgs_13g89k6.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_13g89k6]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_13g89k6, - ); -} - -extension _BlockArgs_13g89k6$Methods on _BlockArgs_13g89k6 { - CFErrorRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_13o2rom._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_13o2rom] that points to the same underlying object as [other]. - _BlockArgs_13o2rom.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_13o2rom] that wraps the given raw object pointer. - _BlockArgs_13o2rom.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_13o2rom]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_13o2rom, - ); -} - -extension _BlockArgs_13o2rom$Methods on _BlockArgs_13o2rom { - NSURLCredential? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSURLCredential.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_13sb76x._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_13sb76x] that points to the same underlying object as [other]. - _BlockArgs_13sb76x.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_13sb76x] that wraps the given raw object pointer. - _BlockArgs_13sb76x.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_13sb76x]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_13sb76x, - ); -} - -extension _BlockArgs_13sb76x$Methods on _BlockArgs_13sb76x { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_140cpyj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_140cpyj] that points to the same underlying object as [other]. - _BlockArgs_140cpyj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_140cpyj] that wraps the given raw object pointer. - _BlockArgs_140cpyj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_140cpyj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_140cpyj, - ); -} - -extension _BlockArgs_140cpyj$Methods on _BlockArgs_140cpyj { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDataTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDownloadTask get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_14dahaa._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_14dahaa] that points to the same underlying object as [other]. - _BlockArgs_14dahaa.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_14dahaa] that wraps the given raw object pointer. - _BlockArgs_14dahaa.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_14dahaa]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_14dahaa, - ); -} - -extension _BlockArgs_14dahaa$Methods on _BlockArgs_14dahaa { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - objc.NSError get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_14lm7fk._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_14lm7fk] that points to the same underlying object as [other]. - _BlockArgs_14lm7fk.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_14lm7fk] that wraps the given raw object pointer. - _BlockArgs_14lm7fk.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_14lm7fk]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_14lm7fk, - ); -} - -extension _BlockArgs_14lm7fk$Methods on _BlockArgs_14lm7fk { - CFRunLoopObserverRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_18h7706(_$$ref.pointer, _sel_arg0); - } - - DartCFOptionFlags get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_vplevf(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_15cdu5z._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_15cdu5z] that points to the same underlying object as [other]. - _BlockArgs_15cdu5z.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_15cdu5z] that wraps the given raw object pointer. - _BlockArgs_15cdu5z.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_15cdu5z]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_15cdu5z, - ); -} - -extension _BlockArgs_15cdu5z$Methods on _BlockArgs_15cdu5z { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDataTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - NSCachedURLResponse get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return NSCachedURLResponse.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg4); - return ObjCBlock_ffiVoid_NSCachedURLResponse.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_15jt9u5._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_15jt9u5] that points to the same underlying object as [other]. - _BlockArgs_15jt9u5.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_15jt9u5] that wraps the given raw object pointer. - _BlockArgs_15jt9u5.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_15jt9u5]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_15jt9u5, - ); -} - -extension _BlockArgs_15jt9u5$Methods on _BlockArgs_15jt9u5 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_15vjajw._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_15vjajw] that points to the same underlying object as [other]. - _BlockArgs_15vjajw.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_15vjajw] that wraps the given raw object pointer. - _BlockArgs_15vjajw.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_15vjajw]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_15vjajw, - ); -} - -extension _BlockArgs_15vjajw$Methods on _BlockArgs_15vjajw { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_16ix251._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_16ix251] that points to the same underlying object as [other]. - _BlockArgs_16ix251.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_16ix251] that wraps the given raw object pointer. - _BlockArgs_16ix251.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_16ix251]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_16ix251, - ); -} - -extension _BlockArgs_16ix251$Methods on _BlockArgs_16ix251 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDataTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_16t4ozp._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_16t4ozp] that points to the same underlying object as [other]. - _BlockArgs_16t4ozp.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_16t4ozp] that wraps the given raw object pointer. - _BlockArgs_16t4ozp.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_16t4ozp]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_16t4ozp, - ); -} - -extension _BlockArgs_16t4ozp$Methods on _BlockArgs_16t4ozp { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSNetService get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSNetService.fromPointer($ret, retain: true, release: true); - } - - objc.NSDictionary get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_170i760._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_170i760] that points to the same underlying object as [other]. - _BlockArgs_170i760.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_170i760] that wraps the given raw object pointer. - _BlockArgs_170i760.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_170i760]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_170i760, - ); -} - -extension _BlockArgs_170i760$Methods on _BlockArgs_170i760 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSKeyedArchiver get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCObject? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - objc.ObjCObject? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_171cldw._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_171cldw] that points to the same underlying object as [other]. - _BlockArgs_171cldw.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_171cldw] that wraps the given raw object pointer. - _BlockArgs_171cldw.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_171cldw]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_171cldw, - ); -} - -extension _BlockArgs_171cldw$Methods on _BlockArgs_171cldw { - NSURLSessionDelayedRequestDisposition get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_vofvy9(_$$ref.pointer, _sel_arg0); - return NSURLSessionDelayedRequestDisposition.fromValue($ret); - } - - NSURLRequest? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : NSURLRequest.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_17jmtfx._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_17jmtfx] that points to the same underlying object as [other]. - _BlockArgs_17jmtfx.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_17jmtfx] that wraps the given raw object pointer. - _BlockArgs_17jmtfx.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_17jmtfx]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_17jmtfx, - ); -} - -extension _BlockArgs_17jmtfx$Methods on _BlockArgs_17jmtfx { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionWebSocketTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionWebSocketTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - NSURLSessionWebSocketCloseCode get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_1tjd59x(_$$ref.pointer, _sel_arg3); - return NSURLSessionWebSocketCloseCode.fromValue($ret); - } - - objc.NSData? get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_17mefw7._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_17mefw7] that points to the same underlying object as [other]. - _BlockArgs_17mefw7.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_17mefw7] that wraps the given raw object pointer. - _BlockArgs_17mefw7.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_17mefw7]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_17mefw7, - ); -} - -extension _BlockArgs_17mefw7$Methods on _BlockArgs_17mefw7 { - CFArrayRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1vyt62e(_$$ref.pointer, _sel_arg0); - } - - CFErrorRef get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_17xklgp._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_17xklgp] that points to the same underlying object as [other]. - _BlockArgs_17xklgp.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_17xklgp] that wraps the given raw object pointer. - _BlockArgs_17xklgp.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_17xklgp]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_17xklgp, - ); -} - -extension _BlockArgs_17xklgp$Methods on _BlockArgs_17xklgp { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSError get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_18kc0nv._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_18kc0nv] that points to the same underlying object as [other]. - _BlockArgs_18kc0nv.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_18kc0nv] that wraps the given raw object pointer. - _BlockArgs_18kc0nv.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_18kc0nv]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_18kc0nv, - ); -} - -extension _BlockArgs_18kc0nv$Methods on _BlockArgs_18kc0nv { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_197qivc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_197qivc] that points to the same underlying object as [other]. - _BlockArgs_197qivc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_197qivc] that wraps the given raw object pointer. - _BlockArgs_197qivc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_197qivc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_197qivc, - ); -} - -extension _BlockArgs_197qivc$Methods on _BlockArgs_197qivc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSUserActivity get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSUserActivity.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_19pyqcd._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_19pyqcd] that points to the same underlying object as [other]. - _BlockArgs_19pyqcd.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_19pyqcd] that wraps the given raw object pointer. - _BlockArgs_19pyqcd.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_19pyqcd]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_19pyqcd, - ); -} - -extension _BlockArgs_19pyqcd$Methods on _BlockArgs_19pyqcd { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - DartNSUInteger get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_19rrqmo._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_19rrqmo] that points to the same underlying object as [other]. - _BlockArgs_19rrqmo.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_19rrqmo] that wraps the given raw object pointer. - _BlockArgs_19rrqmo.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_19rrqmo]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_19rrqmo, - ); -} - -extension _BlockArgs_19rrqmo$Methods on _BlockArgs_19rrqmo { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSNetServiceBrowser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1ayzt6i._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ayzt6i] that points to the same underlying object as [other]. - _BlockArgs_1ayzt6i.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ayzt6i] that wraps the given raw object pointer. - _BlockArgs_1ayzt6i.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ayzt6i]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ayzt6i, - ); -} - -extension _BlockArgs_1ayzt6i$Methods on _BlockArgs_1ayzt6i { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - NSHTTPURLResponse get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return NSHTTPURLResponse.fromPointer($ret, retain: true, release: true); - } - - NSURLRequest get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); - return NSURLRequest.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg5 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg5); - return ObjCBlock_ffiVoid_NSURLRequest.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1ciefi0._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ciefi0] that points to the same underlying object as [other]. - _BlockArgs_1ciefi0.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ciefi0] that wraps the given raw object pointer. - _BlockArgs_1ciefi0.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ciefi0]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ciefi0, - ); -} - -extension _BlockArgs_1ciefi0$Methods on _BlockArgs_1ciefi0 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSKeyedArchiver get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1e1kc88._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1e1kc88] that points to the same underlying object as [other]. - _BlockArgs_1e1kc88.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1e1kc88] that wraps the given raw object pointer. - _BlockArgs_1e1kc88.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1e1kc88]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1e1kc88, - ); -} - -extension _BlockArgs_1e1kc88$Methods on _BlockArgs_1e1kc88 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.NSPortMessage get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSPortMessage.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1e3xl1p._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1e3xl1p] that points to the same underlying object as [other]. - _BlockArgs_1e3xl1p.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1e3xl1p] that wraps the given raw object pointer. - _BlockArgs_1e3xl1p.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1e3xl1p]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1e3xl1p, - ); -} - -extension _BlockArgs_1e3xl1p$Methods on _BlockArgs_1e3xl1p { - Dartsec_protocol_metadata_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartsec_trust_t get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartsec_protocol_verify_complete_t get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg2); - return ObjCBlock_ffiVoid_bool.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1ek5uoy._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ek5uoy] that points to the same underlying object as [other]. - _BlockArgs_1ek5uoy.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ek5uoy] that wraps the given raw object pointer. - _BlockArgs_1ek5uoy.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ek5uoy]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ek5uoy, - ); -} - -extension _BlockArgs_1ek5uoy$Methods on _BlockArgs_1ek5uoy { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1f64crj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1f64crj] that points to the same underlying object as [other]. - _BlockArgs_1f64crj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1f64crj] that wraps the given raw object pointer. - _BlockArgs_1f64crj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1f64crj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1f64crj, - ); -} - -extension _BlockArgs_1f64crj$Methods on _BlockArgs_1f64crj { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1fj0jrw._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1fj0jrw] that points to the same underlying object as [other]. - _BlockArgs_1fj0jrw.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1fj0jrw] that wraps the given raw object pointer. - _BlockArgs_1fj0jrw.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1fj0jrw]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1fj0jrw, - ); -} - -extension _BlockArgs_1fj0jrw$Methods on _BlockArgs_1fj0jrw { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1giidhf._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1giidhf] that points to the same underlying object as [other]. - _BlockArgs_1giidhf.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1giidhf] that wraps the given raw object pointer. - _BlockArgs_1giidhf.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1giidhf]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1giidhf, - ); -} - -extension _BlockArgs_1giidhf$Methods on _BlockArgs_1giidhf { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - AVAudioPlayer get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return AVAudioPlayer.fromPointer($ret, retain: true, release: true); - } - - bool get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_1gmgda9._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1gmgda9] that points to the same underlying object as [other]. - _BlockArgs_1gmgda9.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1gmgda9] that wraps the given raw object pointer. - _BlockArgs_1gmgda9.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1gmgda9]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1gmgda9, - ); -} - -extension _BlockArgs_1gmgda9$Methods on _BlockArgs_1gmgda9 { - NSAppleEventDescriptor? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSAppleEventDescriptor.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1hj9xku._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1hj9xku] that points to the same underlying object as [other]. - _BlockArgs_1hj9xku.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1hj9xku] that wraps the given raw object pointer. - _BlockArgs_1hj9xku.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1hj9xku]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1hj9xku, - ); -} - -extension _BlockArgs_1hj9xku$Methods on _BlockArgs_1hj9xku { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1hs0ws6._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1hs0ws6] that points to the same underlying object as [other]. - _BlockArgs_1hs0ws6.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1hs0ws6] that wraps the given raw object pointer. - _BlockArgs_1hs0ws6.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1hs0ws6]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1hs0ws6, - ); -} - -extension _BlockArgs_1hs0ws6$Methods on _BlockArgs_1hs0ws6 { - CFErrorRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg0); - } - - ffi.Pointer get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1at51ut(_$$ref.pointer, _sel_arg1); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_19ms50r(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_1hwelu._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1hwelu] that points to the same underlying object as [other]. - _BlockArgs_1hwelu.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1hwelu] that wraps the given raw object pointer. - _BlockArgs_1hwelu.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1hwelu]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1hwelu, - ); -} - -extension _BlockArgs_1hwelu$Methods on _BlockArgs_1hwelu { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1i7oea2._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1i7oea2] that points to the same underlying object as [other]. - _BlockArgs_1i7oea2.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1i7oea2] that wraps the given raw object pointer. - _BlockArgs_1i7oea2.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1i7oea2]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1i7oea2, - ); -} - -extension _BlockArgs_1i7oea2$Methods on _BlockArgs_1i7oea2 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1j32c3t._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1j32c3t] that points to the same underlying object as [other]. - _BlockArgs_1j32c3t.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1j32c3t] that wraps the given raw object pointer. - _BlockArgs_1j32c3t.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1j32c3t]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1j32c3t, - ); -} - -extension _BlockArgs_1j32c3t$Methods on _BlockArgs_1j32c3t { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSUserActivity get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSUserActivity.fromPointer($ret, retain: true, release: true); - } - - objc.NSInputStream get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - objc.NSOutputStream get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1jcra61._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1jcra61] that points to the same underlying object as [other]. - _BlockArgs_1jcra61.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1jcra61] that wraps the given raw object pointer. - _BlockArgs_1jcra61.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1jcra61]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1jcra61, - ); -} - -extension _BlockArgs_1jcra61$Methods on _BlockArgs_1jcra61 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1kowxjl._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1kowxjl] that points to the same underlying object as [other]. - _BlockArgs_1kowxjl.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1kowxjl] that wraps the given raw object pointer. - _BlockArgs_1kowxjl.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1kowxjl]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1kowxjl, - ); -} - -extension _BlockArgs_1kowxjl$Methods on _BlockArgs_1kowxjl { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSDictionary get arg5 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg5); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1l7b9ji._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1l7b9ji] that points to the same underlying object as [other]. - _BlockArgs_1l7b9ji.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1l7b9ji] that wraps the given raw object pointer. - _BlockArgs_1l7b9ji.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1l7b9ji]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1l7b9ji, - ); -} - -extension _BlockArgs_1l7b9ji$Methods on _BlockArgs_1l7b9ji { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDownloadTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg3); - } - - int get arg4 { - final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg4); - } -} - -extension type _BlockArgs_1lr5l4t._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1lr5l4t] that points to the same underlying object as [other]. - _BlockArgs_1lr5l4t.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1lr5l4t] that wraps the given raw object pointer. - _BlockArgs_1lr5l4t.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1lr5l4t]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1lr5l4t, - ); -} - -extension _BlockArgs_1lr5l4t$Methods on _BlockArgs_1lr5l4t { - CGDisplayStreamFrameStatus get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_1ro3sl5(_$$ref.pointer, _sel_arg0); - return CGDisplayStreamFrameStatus.fromValue($ret); - } - - int get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1if3gfg(_$$ref.pointer, _sel_arg1); - } - - IOSurfaceRef get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1fxwmio(_$$ref.pointer, _sel_arg2); - } - - CGDisplayStreamUpdateRef get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_6gqu6c(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_1ltqoqj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ltqoqj] that points to the same underlying object as [other]. - _BlockArgs_1ltqoqj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ltqoqj] that wraps the given raw object pointer. - _BlockArgs_1ltqoqj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ltqoqj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ltqoqj, - ); -} - -extension _BlockArgs_1ltqoqj$Methods on _BlockArgs_1ltqoqj { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - DartNSUInteger get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_1mv87bk._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1mv87bk] that points to the same underlying object as [other]. - _BlockArgs_1mv87bk.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1mv87bk] that wraps the given raw object pointer. - _BlockArgs_1mv87bk.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1mv87bk]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1mv87bk, - ); -} - -extension _BlockArgs_1mv87bk$Methods on _BlockArgs_1mv87bk { - objc.NSData? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1n468bj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1n468bj] that points to the same underlying object as [other]. - _BlockArgs_1n468bj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1n468bj] that wraps the given raw object pointer. - _BlockArgs_1n468bj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1n468bj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1n468bj, - ); -} - -extension _BlockArgs_1n468bj$Methods on _BlockArgs_1n468bj { - Dartdispatch_data_t? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1n5meg5._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1n5meg5] that points to the same underlying object as [other]. - _BlockArgs_1n5meg5.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1n5meg5] that wraps the given raw object pointer. - _BlockArgs_1n5meg5.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1n5meg5]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1n5meg5, - ); -} - -extension _BlockArgs_1n5meg5$Methods on _BlockArgs_1n5meg5 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - NSHTTPURLResponse get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return NSHTTPURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1n6ph2._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1n6ph2] that points to the same underlying object as [other]. - _BlockArgs_1n6ph2.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1n6ph2] that wraps the given raw object pointer. - _BlockArgs_1n6ph2.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1n6ph2]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1n6ph2, - ); -} - -extension _BlockArgs_1n6ph2$Methods on _BlockArgs_1n6ph2 { - NSURLRequest? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSURLRequest.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1nn0na._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1nn0na] that points to the same underlying object as [other]. - _BlockArgs_1nn0na.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1nn0na] that wraps the given raw object pointer. - _BlockArgs_1nn0na.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1nn0na]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1nn0na, - ); -} - -extension _BlockArgs_1nn0na$Methods on _BlockArgs_1nn0na { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSNetServiceBrowser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - bool get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_1nq9pr6._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1nq9pr6] that points to the same underlying object as [other]. - _BlockArgs_1nq9pr6.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1nq9pr6] that wraps the given raw object pointer. - _BlockArgs_1nq9pr6.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1nq9pr6]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1nq9pr6, - ); -} - -extension _BlockArgs_1nq9pr6$Methods on _BlockArgs_1nq9pr6 { - Dartsec_protocol_metadata_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartdispatch_data_t? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartsec_protocol_pre_shared_key_selection_complete_t get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg2); - return ObjCBlock_ffiVoid_NSObject$1.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1o2efq5._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1o2efq5] that points to the same underlying object as [other]. - _BlockArgs_1o2efq5.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1o2efq5] that wraps the given raw object pointer. - _BlockArgs_1o2efq5.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1o2efq5]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1o2efq5, - ); -} - -extension _BlockArgs_1o2efq5$Methods on _BlockArgs_1o2efq5 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSKeyedUnarchiver get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSKeyedUnarchiver.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCObject get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.ObjCObject($ret, retain: true, release: true); - } - - objc.ObjCObject get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1o8dtl._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1o8dtl] that points to the same underlying object as [other]. - _BlockArgs_1o8dtl.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1o8dtl] that wraps the given raw object pointer. - _BlockArgs_1o8dtl.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1o8dtl]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1o8dtl, - ); -} - -extension _BlockArgs_1o8dtl$Methods on _BlockArgs_1o8dtl { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLCredential get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLCredential.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1odc9lb._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1odc9lb] that points to the same underlying object as [other]. - _BlockArgs_1odc9lb.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1odc9lb] that wraps the given raw object pointer. - _BlockArgs_1odc9lb.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1odc9lb]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1odc9lb, - ); -} - -extension _BlockArgs_1odc9lb$Methods on _BlockArgs_1odc9lb { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - objc.NSURL get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1oetg5g._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1oetg5g] that points to the same underlying object as [other]. - _BlockArgs_1oetg5g.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1oetg5g] that wraps the given raw object pointer. - _BlockArgs_1oetg5g.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1oetg5g]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1oetg5g, - ); -} - -extension _BlockArgs_1oetg5g$Methods on _BlockArgs_1oetg5g { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSKeyedArchiver get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCObject? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1oftdow._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1oftdow] that points to the same underlying object as [other]. - _BlockArgs_1oftdow.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1oftdow] that wraps the given raw object pointer. - _BlockArgs_1oftdow.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1oftdow]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1oftdow, - ); -} - -extension _BlockArgs_1oftdow$Methods on _BlockArgs_1oftdow { - NSURLResponse? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - objc.NSData? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1p1ax08._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1p1ax08] that points to the same underlying object as [other]. - _BlockArgs_1p1ax08.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1p1ax08] that wraps the given raw object pointer. - _BlockArgs_1p1ax08.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1p1ax08]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1p1ax08, - ); -} - -extension _BlockArgs_1p1ax08$Methods on _BlockArgs_1p1ax08 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1p7ak3v._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1p7ak3v] that points to the same underlying object as [other]. - _BlockArgs_1p7ak3v.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1p7ak3v] that wraps the given raw object pointer. - _BlockArgs_1p7ak3v.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1p7ak3v]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1p7ak3v, - ); -} - -extension _BlockArgs_1p7ak3v$Methods on _BlockArgs_1p7ak3v { - objc.NSArray? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1pfucun._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1pfucun] that points to the same underlying object as [other]. - _BlockArgs_1pfucun.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1pfucun] that wraps the given raw object pointer. - _BlockArgs_1pfucun.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1pfucun]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1pfucun, - ); -} - -extension _BlockArgs_1pfucun$Methods on _BlockArgs_1pfucun { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDownloadTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg3); - } - - int get arg4 { - final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg4); - } - - int get arg5 { - final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg5); - } -} - -extension type _BlockArgs_1pfw36l._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1pfw36l] that points to the same underlying object as [other]. - _BlockArgs_1pfw36l.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1pfw36l] that wraps the given raw object pointer. - _BlockArgs_1pfw36l.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1pfw36l]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1pfw36l, - ); -} - -extension _BlockArgs_1pfw36l$Methods on _BlockArgs_1pfw36l { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSKeyedUnarchiver get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSKeyedUnarchiver.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1pj0but._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1pj0but] that points to the same underlying object as [other]. - _BlockArgs_1pj0but.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1pj0but] that wraps the given raw object pointer. - _BlockArgs_1pj0but.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1pj0but]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1pj0but, - ); -} - -extension _BlockArgs_1pj0but$Methods on _BlockArgs_1pj0but { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSNetService get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSNetService.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1ptzs7z._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ptzs7z] that points to the same underlying object as [other]. - _BlockArgs_1ptzs7z.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ptzs7z] that wraps the given raw object pointer. - _BlockArgs_1ptzs7z.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ptzs7z]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ptzs7z, - ); -} - -extension _BlockArgs_1ptzs7z$Methods on _BlockArgs_1ptzs7z { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.NSString get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1pvrxoh._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1pvrxoh] that points to the same underlying object as [other]. - _BlockArgs_1pvrxoh.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1pvrxoh] that wraps the given raw object pointer. - _BlockArgs_1pvrxoh.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1pvrxoh]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1pvrxoh, - ); -} - -extension _BlockArgs_1pvrxoh$Methods on _BlockArgs_1pvrxoh { - objc.NSString? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - NSRange get arg1 { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1wp571eStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1wp571e(_$$ref.pointer, _sel_arg1); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - NSRange get arg2 { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1wp571eStret($ptr, _$$ref.pointer, _sel_arg2) - : $ptr.ref = _objc_msgSend_1wp571e(_$$ref.pointer, _sel_arg2); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - ffi.Pointer get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_1q305zu._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1q305zu] that points to the same underlying object as [other]. - _BlockArgs_1q305zu.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1q305zu] that wraps the given raw object pointer. - _BlockArgs_1q305zu.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1q305zu]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1q305zu, - ); -} - -extension _BlockArgs_1q305zu$Methods on _BlockArgs_1q305zu { - Dartsec_certificate_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1r6tt56._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1r6tt56] that points to the same underlying object as [other]. - _BlockArgs_1r6tt56.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1r6tt56] that wraps the given raw object pointer. - _BlockArgs_1r6tt56.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1r6tt56]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1r6tt56, - ); -} - -extension _BlockArgs_1r6tt56$Methods on _BlockArgs_1r6tt56 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1s0z6xl._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1s0z6xl] that points to the same underlying object as [other]. - _BlockArgs_1s0z6xl.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1s0z6xl] that wraps the given raw object pointer. - _BlockArgs_1s0z6xl.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1s0z6xl]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1s0z6xl, - ); -} - -extension _BlockArgs_1s0z6xl$Methods on _BlockArgs_1s0z6xl { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.ObjCBlock get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg1); - return ObjCBlock_ffiVoid_NSError.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1s2j81k._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1s2j81k] that points to the same underlying object as [other]. - _BlockArgs_1s2j81k.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1s2j81k] that wraps the given raw object pointer. - _BlockArgs_1s2j81k.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1s2j81k]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1s2j81k, - ); -} - -extension _BlockArgs_1s2j81k$Methods on _BlockArgs_1s2j81k { - int get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_1siniii._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1siniii] that points to the same underlying object as [other]. - _BlockArgs_1siniii.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1siniii] that wraps the given raw object pointer. - _BlockArgs_1siniii.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1siniii]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1siniii, - ); -} - -extension _BlockArgs_1siniii$Methods on _BlockArgs_1siniii { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.NSURL get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - NSFileVersion get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSFileVersion.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1sucxsg._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1sucxsg] that points to the same underlying object as [other]. - _BlockArgs_1sucxsg.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1sucxsg] that wraps the given raw object pointer. - _BlockArgs_1sucxsg.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1sucxsg]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1sucxsg, - ); -} - -extension _BlockArgs_1sucxsg$Methods on _BlockArgs_1sucxsg { - CFTypeRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - CFErrorRef get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg1); - } - - DartBoolean get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_14cxkac(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_1sy9q99._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1sy9q99] that points to the same underlying object as [other]. - _BlockArgs_1sy9q99.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1sy9q99] that wraps the given raw object pointer. - _BlockArgs_1sy9q99.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1sy9q99]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1sy9q99, - ); -} - -extension _BlockArgs_1sy9q99$Methods on _BlockArgs_1sy9q99 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSCache get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSCache.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCObject get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1tklz9g._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1tklz9g] that points to the same underlying object as [other]. - _BlockArgs_1tklz9g.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1tklz9g] that wraps the given raw object pointer. - _BlockArgs_1tklz9g.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1tklz9g]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1tklz9g, - ); -} - -extension _BlockArgs_1tklz9g$Methods on _BlockArgs_1tklz9g { - objc.ObjCObject? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1uc4fg7._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1uc4fg7] that points to the same underlying object as [other]. - _BlockArgs_1uc4fg7.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1uc4fg7] that wraps the given raw object pointer. - _BlockArgs_1uc4fg7.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1uc4fg7]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1uc4fg7, - ); -} - -extension _BlockArgs_1uc4fg7$Methods on _BlockArgs_1uc4fg7 { - NSTextCheckingResult? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - DartNSUInteger get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_zk1qxr(_$$ref.pointer, _sel_arg1); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_1uox71a._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1uox71a] that points to the same underlying object as [other]. - _BlockArgs_1uox71a.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1uox71a] that wraps the given raw object pointer. - _BlockArgs_1uox71a.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1uox71a]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1uox71a, - ); -} - -extension _BlockArgs_1uox71a$Methods on _BlockArgs_1uox71a { - Dartxpc_object_t? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartxpc_object_t? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1ura76._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ura76] that points to the same underlying object as [other]. - _BlockArgs_1ura76.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ura76] that wraps the given raw object pointer. - _BlockArgs_1ura76.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ura76]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ura76, - ); -} - -extension _BlockArgs_1ura76$Methods on _BlockArgs_1ura76 { - objc.NSInputStream? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1usrzbh._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1usrzbh] that points to the same underlying object as [other]. - _BlockArgs_1usrzbh.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1usrzbh] that wraps the given raw object pointer. - _BlockArgs_1usrzbh.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1usrzbh]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1usrzbh, - ); -} - -extension _BlockArgs_1usrzbh$Methods on _BlockArgs_1usrzbh { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSSpellServer get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSSpellServer.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1v0sc8._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1v0sc8] that points to the same underlying object as [other]. - _BlockArgs_1v0sc8.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1v0sc8] that wraps the given raw object pointer. - _BlockArgs_1v0sc8.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1v0sc8]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1v0sc8, - ); -} - -extension _BlockArgs_1v0sc8$Methods on _BlockArgs_1v0sc8 { - DartSInt32 get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_arg0); - } - - ffi.Pointer get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_nzd96v(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_1x2wp90._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1x2wp90] that points to the same underlying object as [other]. - _BlockArgs_1x2wp90.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1x2wp90] that wraps the given raw object pointer. - _BlockArgs_1x2wp90.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1x2wp90]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1x2wp90, - ); -} - -extension _BlockArgs_1x2wp90$Methods on _BlockArgs_1x2wp90 { - int get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_b7zpih(_$$ref.pointer, _sel_arg0); - } - - CGImageRef get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_16ixh5c(_$$ref.pointer, _sel_arg1); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_1xfn2k3._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1xfn2k3] that points to the same underlying object as [other]. - _BlockArgs_1xfn2k3.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1xfn2k3] that wraps the given raw object pointer. - _BlockArgs_1xfn2k3.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1xfn2k3]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1xfn2k3, - ); -} - -extension _BlockArgs_1xfn2k3$Methods on _BlockArgs_1xfn2k3 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDataTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg4); - return ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1xkpqmj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1xkpqmj] that points to the same underlying object as [other]. - _BlockArgs_1xkpqmj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1xkpqmj] that wraps the given raw object pointer. - _BlockArgs_1xkpqmj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1xkpqmj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1xkpqmj, - ); -} - -extension _BlockArgs_1xkpqmj$Methods on _BlockArgs_1xkpqmj { - double get arg0 { - final _$$ref = object$.ref; - return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_arg0) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_arg0); - } - - DartCFIndex get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_arg1); - } - - bool get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg2); - } - - ffi.Pointer get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_1y4tc38._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1y4tc38] that points to the same underlying object as [other]. - _BlockArgs_1y4tc38.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1y4tc38] that wraps the given raw object pointer. - _BlockArgs_1y4tc38.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1y4tc38]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1y4tc38, - ); -} - -extension _BlockArgs_1y4tc38$Methods on _BlockArgs_1y4tc38 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSFileVersion get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSFileVersion.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1y7f3jy._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1y7f3jy] that points to the same underlying object as [other]. - _BlockArgs_1y7f3jy.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1y7f3jy] that wraps the given raw object pointer. - _BlockArgs_1y7f3jy.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1y7f3jy]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1y7f3jy, - ); -} - -extension _BlockArgs_1y7f3jy$Methods on _BlockArgs_1y7f3jy { - NSURLSessionResponseDisposition get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_1c30s85(_$$ref.pointer, _sel_arg0); - return NSURLSessionResponseDisposition.fromValue($ret); - } -} - -extension type _BlockArgs_1z0whcc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1z0whcc] that points to the same underlying object as [other]. - _BlockArgs_1z0whcc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1z0whcc] that wraps the given raw object pointer. - _BlockArgs_1z0whcc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1z0whcc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1z0whcc, - ); -} - -extension _BlockArgs_1z0whcc$Methods on _BlockArgs_1z0whcc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLAuthenticationChallenge get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_31cygh._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_31cygh] that points to the same underlying object as [other]. - _BlockArgs_31cygh.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_31cygh] that wraps the given raw object pointer. - _BlockArgs_31cygh.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_31cygh]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_31cygh, - ); -} - -extension _BlockArgs_31cygh$Methods on _BlockArgs_31cygh { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.ObjCBlock get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg4); - return ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_347s5u._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_347s5u] that points to the same underlying object as [other]. - _BlockArgs_347s5u.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_347s5u] that wraps the given raw object pointer. - _BlockArgs_347s5u.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_347s5u]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_347s5u, - ); -} - -extension _BlockArgs_347s5u$Methods on _BlockArgs_347s5u { - NSTask get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return NSTask.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_3gru2r._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_3gru2r] that points to the same underlying object as [other]. - _BlockArgs_3gru2r.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_3gru2r] that wraps the given raw object pointer. - _BlockArgs_3gru2r.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_3gru2r]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_3gru2r, - ); -} - -extension _BlockArgs_3gru2r$Methods on _BlockArgs_3gru2r { - objc.NSURL? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_3jhjrc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_3jhjrc] that points to the same underlying object as [other]. - _BlockArgs_3jhjrc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_3jhjrc] that wraps the given raw object pointer. - _BlockArgs_3jhjrc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_3jhjrc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_3jhjrc, - ); -} - -extension _BlockArgs_3jhjrc$Methods on _BlockArgs_3jhjrc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - int get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg2); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg3); - } - - int get arg4 { - final _$$ref = object$.ref; - return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg4); - } -} - -extension type _BlockArgs_3prg4b._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_3prg4b] that points to the same underlying object as [other]. - _BlockArgs_3prg4b.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_3prg4b] that wraps the given raw object pointer. - _BlockArgs_3prg4b.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_3prg4b]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_3prg4b, - ); -} - -extension _BlockArgs_3prg4b$Methods on _BlockArgs_3prg4b { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - AVAudioPlayer get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return AVAudioPlayer.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_43hp0b._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_43hp0b] that points to the same underlying object as [other]. - _BlockArgs_43hp0b.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_43hp0b] that wraps the given raw object pointer. - _BlockArgs_43hp0b.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_43hp0b]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_43hp0b, - ); -} - -extension _BlockArgs_43hp0b$Methods on _BlockArgs_43hp0b { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDataTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionStreamTask get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return NSURLSessionStreamTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_461rr9._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_461rr9] that points to the same underlying object as [other]. - _BlockArgs_461rr9.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_461rr9] that wraps the given raw object pointer. - _BlockArgs_461rr9.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_461rr9]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_461rr9, - ); -} - -extension _BlockArgs_461rr9$Methods on _BlockArgs_461rr9 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.NSURL get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_5wf51x._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_5wf51x] that points to the same underlying object as [other]. - _BlockArgs_5wf51x.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_5wf51x] that wraps the given raw object pointer. - _BlockArgs_5wf51x.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_5wf51x]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_5wf51x, - ); -} - -extension _BlockArgs_5wf51x$Methods on _BlockArgs_5wf51x { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - int get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg2); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_nv3gmm(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_5zyi3o._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_5zyi3o] that points to the same underlying object as [other]. - _BlockArgs_5zyi3o.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_5zyi3o] that wraps the given raw object pointer. - _BlockArgs_5zyi3o.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_5zyi3o]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_5zyi3o, - ); -} - -extension _BlockArgs_5zyi3o$Methods on _BlockArgs_5zyi3o { - SecKeyRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_133oo4m(_$$ref.pointer, _sel_arg0); - } - - SecKeyRef get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_133oo4m(_$$ref.pointer, _sel_arg1); - } - - CFErrorRef get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_6tydoo._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_6tydoo] that points to the same underlying object as [other]. - _BlockArgs_6tydoo.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_6tydoo] that wraps the given raw object pointer. - _BlockArgs_6tydoo.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_6tydoo]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_6tydoo, - ); -} - -extension _BlockArgs_6tydoo$Methods on _BlockArgs_6tydoo { - objc.NSDictionary? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_6yk1dr._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_6yk1dr] that points to the same underlying object as [other]. - _BlockArgs_6yk1dr.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_6yk1dr] that wraps the given raw object pointer. - _BlockArgs_6yk1dr.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_6yk1dr]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_6yk1dr, - ); -} - -extension _BlockArgs_6yk1dr$Methods on _BlockArgs_6yk1dr { - DartNSItemProviderCompletionHandler get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg0); - return ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.ObjCObject get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.ObjCObject($ret, retain: true, release: true); - } - - objc.NSDictionary get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_7xicdf._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_7xicdf] that points to the same underlying object as [other]. - _BlockArgs_7xicdf.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_7xicdf] that wraps the given raw object pointer. - _BlockArgs_7xicdf.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_7xicdf]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_7xicdf, - ); -} - -extension _BlockArgs_7xicdf$Methods on _BlockArgs_7xicdf { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_99x6vt._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_99x6vt] that points to the same underlying object as [other]. - _BlockArgs_99x6vt.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_99x6vt] that wraps the given raw object pointer. - _BlockArgs_99x6vt.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_99x6vt]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_99x6vt, - ); -} - -extension _BlockArgs_99x6vt$Methods on _BlockArgs_99x6vt { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg3); - } - - objc.ObjCBlock get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg4); - return ObjCBlock_ffiVoid_NSInputStream.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_abn34x._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_abn34x] that points to the same underlying object as [other]. - _BlockArgs_abn34x.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_abn34x] that wraps the given raw object pointer. - _BlockArgs_abn34x.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_abn34x]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_abn34x, - ); -} - -extension _BlockArgs_abn34x$Methods on _BlockArgs_abn34x { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - NSURLCacheStoragePolicy get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_y1vupz(_$$ref.pointer, _sel_arg3); - return NSURLCacheStoragePolicy.fromValue($ret); - } -} - -extension type _BlockArgs_adcfsd._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_adcfsd] that points to the same underlying object as [other]. - _BlockArgs_adcfsd.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_adcfsd] that wraps the given raw object pointer. - _BlockArgs_adcfsd.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_adcfsd]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_adcfsd, - ); -} - -extension _BlockArgs_adcfsd$Methods on _BlockArgs_adcfsd { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSNetServiceBrowser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); - } - - objc.NSDictionary get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_aec946._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_aec946] that points to the same underlying object as [other]. - _BlockArgs_aec946.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_aec946] that wraps the given raw object pointer. - _BlockArgs_aec946.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_aec946]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_aec946, - ); -} - -extension _BlockArgs_aec946$Methods on _BlockArgs_aec946 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_awd5mj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_awd5mj] that points to the same underlying object as [other]. - _BlockArgs_awd5mj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_awd5mj] that wraps the given raw object pointer. - _BlockArgs_awd5mj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_awd5mj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_awd5mj, - ); -} - -extension _BlockArgs_awd5mj$Methods on _BlockArgs_awd5mj { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_b9s2kt._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_b9s2kt] that points to the same underlying object as [other]. - _BlockArgs_b9s2kt.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_b9s2kt] that wraps the given raw object pointer. - _BlockArgs_b9s2kt.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_b9s2kt]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_b9s2kt, - ); -} - -extension _BlockArgs_b9s2kt$Methods on _BlockArgs_b9s2kt { - objc.NSError get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_blvx9k._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_blvx9k] that points to the same underlying object as [other]. - _BlockArgs_blvx9k.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_blvx9k] that wraps the given raw object pointer. - _BlockArgs_blvx9k.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_blvx9k]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_blvx9k, - ); -} - -extension _BlockArgs_blvx9k$Methods on _BlockArgs_blvx9k { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSUserNotificationCenter get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSUserNotificationCenter.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - NSUserNotification get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSUserNotification.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_de64m._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_de64m] that points to the same underlying object as [other]. - _BlockArgs_de64m.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_de64m] that wraps the given raw object pointer. - _BlockArgs_de64m.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_de64m]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_de64m, - ); -} - -extension _BlockArgs_de64m$Methods on _BlockArgs_de64m { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.ObjCBlock get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg3); - return ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_di5ft6._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_di5ft6] that points to the same underlying object as [other]. - _BlockArgs_di5ft6.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_di5ft6] that wraps the given raw object pointer. - _BlockArgs_di5ft6.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_di5ft6]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_di5ft6, - ); -} - -extension _BlockArgs_di5ft6$Methods on _BlockArgs_di5ft6 { - Dartsec_protocol_metadata_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartsec_protocol_key_update_complete_t get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg1); - return ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_dmvhfp._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_dmvhfp] that points to the same underlying object as [other]. - _BlockArgs_dmvhfp.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_dmvhfp] that wraps the given raw object pointer. - _BlockArgs_dmvhfp.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_dmvhfp]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_dmvhfp, - ); -} - -extension _BlockArgs_dmvhfp$Methods on _BlockArgs_dmvhfp { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_twa2vs(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_eu2222._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_eu2222] that points to the same underlying object as [other]. - _BlockArgs_eu2222.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_eu2222] that wraps the given raw object pointer. - _BlockArgs_eu2222.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_eu2222]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_eu2222, - ); -} - -extension _BlockArgs_eu2222$Methods on _BlockArgs_eu2222 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.ObjCBlock?)> - get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg1); - return ObjCBlock_ffiVoid_ffiVoid$2.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_gcznpv._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_gcznpv] that points to the same underlying object as [other]. - _BlockArgs_gcznpv.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_gcznpv] that wraps the given raw object pointer. - _BlockArgs_gcznpv.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_gcznpv]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_gcznpv, - ); -} - -extension _BlockArgs_gcznpv$Methods on _BlockArgs_gcznpv { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSSpellServer get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSSpellServer.fromPointer($ret, retain: true, release: true); - } - - DartNSUInteger get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_arg2); - } - - objc.NSString get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg5 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg5); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_hacm4k._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_hacm4k] that points to the same underlying object as [other]. - _BlockArgs_hacm4k.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_hacm4k] that wraps the given raw object pointer. - _BlockArgs_hacm4k.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_hacm4k]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_hacm4k, - ); -} - -extension _BlockArgs_hacm4k$Methods on _BlockArgs_hacm4k { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_hj4uui._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_hj4uui] that points to the same underlying object as [other]. - _BlockArgs_hj4uui.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_hj4uui] that wraps the given raw object pointer. - _BlockArgs_hj4uui.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_hj4uui]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_hj4uui, - ); -} - -extension _BlockArgs_hj4uui$Methods on _BlockArgs_hj4uui { - Dartsec_protocol_metadata_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartsec_protocol_challenge_complete_t get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg1); - return ObjCBlock_ffiVoid_NSObject$1.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_hj6v1u._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_hj6v1u] that points to the same underlying object as [other]. - _BlockArgs_hj6v1u.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_hj6v1u] that wraps the given raw object pointer. - _BlockArgs_hj6v1u.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_hj6v1u]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_hj6v1u, - ); -} - -extension _BlockArgs_hj6v1u$Methods on _BlockArgs_hj6v1u { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - ffi.Pointer get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_i7wriu._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_i7wriu] that points to the same underlying object as [other]. - _BlockArgs_i7wriu.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_i7wriu] that wraps the given raw object pointer. - _BlockArgs_i7wriu.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_i7wriu]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_i7wriu, - ); -} - -extension _BlockArgs_i7wriu$Methods on _BlockArgs_i7wriu { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTaskMetrics get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return NSURLSessionTaskMetrics.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_ii17hk._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_ii17hk] that points to the same underlying object as [other]. - _BlockArgs_ii17hk.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_ii17hk] that wraps the given raw object pointer. - _BlockArgs_ii17hk.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_ii17hk]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_ii17hk, - ); -} - -extension _BlockArgs_ii17hk$Methods on _BlockArgs_ii17hk {} - -extension type _BlockArgs_j3xbuw._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_j3xbuw] that points to the same underlying object as [other]. - _BlockArgs_j3xbuw.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_j3xbuw] that wraps the given raw object pointer. - _BlockArgs_j3xbuw.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_j3xbuw]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_j3xbuw, - ); -} - -extension _BlockArgs_j3xbuw$Methods on _BlockArgs_j3xbuw { - SecTrustRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_dcpapu(_$$ref.pointer, _sel_arg0); - } - - bool get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg1); - } - - CFErrorRef get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_jqba1._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_jqba1] that points to the same underlying object as [other]. - _BlockArgs_jqba1.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_jqba1] that wraps the given raw object pointer. - _BlockArgs_jqba1.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_jqba1]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_jqba1, - ); -} - -extension _BlockArgs_jqba1$Methods on _BlockArgs_jqba1 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - NSURLRequest get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return NSURLRequest.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg4); - return ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_jzitwn._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_jzitwn] that points to the same underlying object as [other]. - _BlockArgs_jzitwn.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_jzitwn] that wraps the given raw object pointer. - _BlockArgs_jzitwn.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_jzitwn]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_jzitwn, - ); -} - -extension _BlockArgs_jzitwn$Methods on _BlockArgs_jzitwn { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.NSURL get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - objc.NSURL get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_k1nazc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_k1nazc] that points to the same underlying object as [other]. - _BlockArgs_k1nazc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_k1nazc] that wraps the given raw object pointer. - _BlockArgs_k1nazc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_k1nazc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_k1nazc, - ); -} - -extension _BlockArgs_k1nazc$Methods on _BlockArgs_k1nazc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_k2hpmy._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_k2hpmy] that points to the same underlying object as [other]. - _BlockArgs_k2hpmy.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_k2hpmy] that wraps the given raw object pointer. - _BlockArgs_k2hpmy.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_k2hpmy]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_k2hpmy, - ); -} - -extension _BlockArgs_k2hpmy$Methods on _BlockArgs_k2hpmy { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.NSSet get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_k4eb20._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_k4eb20] that points to the same underlying object as [other]. - _BlockArgs_k4eb20.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_k4eb20] that wraps the given raw object pointer. - _BlockArgs_k4eb20.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_k4eb20]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_k4eb20, - ); -} - -extension _BlockArgs_k4eb20$Methods on _BlockArgs_k4eb20 { - Dartdispatch_data_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - int get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_k4je64._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_k4je64] that points to the same underlying object as [other]. - _BlockArgs_k4je64.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_k4je64] that wraps the given raw object pointer. - _BlockArgs_k4je64.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_k4je64]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_k4je64, - ); -} - -extension _BlockArgs_k4je64$Methods on _BlockArgs_k4je64 { - bool get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_kqbpyy._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_kqbpyy] that points to the same underlying object as [other]. - _BlockArgs_kqbpyy.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_kqbpyy] that wraps the given raw object pointer. - _BlockArgs_kqbpyy.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_kqbpyy]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_kqbpyy, - ); -} - -extension _BlockArgs_kqbpyy$Methods on _BlockArgs_kqbpyy { - int get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_b7zpih(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_krrtfh._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_krrtfh] that points to the same underlying object as [other]. - _BlockArgs_krrtfh.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_krrtfh] that wraps the given raw object pointer. - _BlockArgs_krrtfh.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_krrtfh]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_krrtfh, - ); -} - -extension _BlockArgs_krrtfh$Methods on _BlockArgs_krrtfh { - objc.NSSecureCoding? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSSecureCoding.fromPointer($ret, retain: true, release: true); - } - - objc.NSError get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_ldsont._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_ldsont] that points to the same underlying object as [other]. - _BlockArgs_ldsont.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_ldsont] that wraps the given raw object pointer. - _BlockArgs_ldsont.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_ldsont]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_ldsont, - ); -} - -extension _BlockArgs_ldsont$Methods on _BlockArgs_ldsont { - NSBackgroundActivityResult get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_15sni0d(_$$ref.pointer, _sel_arg0); - return NSBackgroundActivityResult.fromValue($ret); - } -} - -extension type _BlockArgs_lmnq5k._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_lmnq5k] that points to the same underlying object as [other]. - _BlockArgs_lmnq5k.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_lmnq5k] that wraps the given raw object pointer. - _BlockArgs_lmnq5k.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_lmnq5k]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_lmnq5k, - ); -} - -extension _BlockArgs_lmnq5k$Methods on _BlockArgs_lmnq5k { - Dartdispatch_data_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartdispatch_data_t get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_n2dxuu._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_n2dxuu] that points to the same underlying object as [other]. - _BlockArgs_n2dxuu.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_n2dxuu] that wraps the given raw object pointer. - _BlockArgs_n2dxuu.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_n2dxuu]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_n2dxuu, - ); -} - -extension _BlockArgs_n2dxuu$Methods on _BlockArgs_n2dxuu { - CFRunLoopTimerRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1qvlfli(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_nemba7._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_nemba7] that points to the same underlying object as [other]. - _BlockArgs_nemba7.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_nemba7] that wraps the given raw object pointer. - _BlockArgs_nemba7.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_nemba7]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_nemba7, - ); -} - -extension _BlockArgs_nemba7$Methods on _BlockArgs_nemba7 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_nhk5a9._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_nhk5a9] that points to the same underlying object as [other]. - _BlockArgs_nhk5a9.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_nhk5a9] that wraps the given raw object pointer. - _BlockArgs_nhk5a9.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_nhk5a9]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_nhk5a9, - ); -} - -extension _BlockArgs_nhk5a9$Methods on _BlockArgs_nhk5a9 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionStreamTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionStreamTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.NSInputStream get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - objc.NSOutputStream get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_pfi7f3._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_pfi7f3] that points to the same underlying object as [other]. - _BlockArgs_pfi7f3.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_pfi7f3] that wraps the given raw object pointer. - _BlockArgs_pfi7f3.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_pfi7f3]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_pfi7f3, - ); -} - -extension _BlockArgs_pfi7f3$Methods on _BlockArgs_pfi7f3 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.NSURL get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg2); - return ObjCBlock_ffiVoid_NSError.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_pm23bg._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_pm23bg] that points to the same underlying object as [other]. - _BlockArgs_pm23bg.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_pm23bg] that wraps the given raw object pointer. - _BlockArgs_pm23bg.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_pm23bg]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_pm23bg, - ); -} - -extension _BlockArgs_pm23bg$Methods on _BlockArgs_pm23bg { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDownloadTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.NSURL get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_q6fcam._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_q6fcam] that points to the same underlying object as [other]. - _BlockArgs_q6fcam.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_q6fcam] that wraps the given raw object pointer. - _BlockArgs_q6fcam.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_q6fcam]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_q6fcam, - ); -} - -extension _BlockArgs_q6fcam$Methods on _BlockArgs_q6fcam { - objc.ObjCObject? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - NSRange get arg1 { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1wp571eStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1wp571e(_$$ref.pointer, _sel_arg1); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_qjjttc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_qjjttc] that points to the same underlying object as [other]. - _BlockArgs_qjjttc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_qjjttc] that wraps the given raw object pointer. - _BlockArgs_qjjttc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_qjjttc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_qjjttc, - ); -} - -extension _BlockArgs_qjjttc$Methods on _BlockArgs_qjjttc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_qss5hc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_qss5hc] that points to the same underlying object as [other]. - _BlockArgs_qss5hc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_qss5hc] that wraps the given raw object pointer. - _BlockArgs_qss5hc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_qss5hc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_qss5hc, - ); -} - -extension _BlockArgs_qss5hc$Methods on _BlockArgs_qss5hc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionStreamTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionStreamTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_rojepe._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_rojepe] that points to the same underlying object as [other]. - _BlockArgs_rojepe.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_rojepe] that wraps the given raw object pointer. - _BlockArgs_rojepe.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_rojepe]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_rojepe, - ); -} - -extension _BlockArgs_rojepe$Methods on _BlockArgs_rojepe { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - objc.NSError get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_s52y0g._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_s52y0g] that points to the same underlying object as [other]. - _BlockArgs_s52y0g.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_s52y0g] that wraps the given raw object pointer. - _BlockArgs_s52y0g.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_s52y0g]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_s52y0g, - ); -} - -extension _BlockArgs_s52y0g$Methods on _BlockArgs_s52y0g { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - NSCachedURLResponse get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSCachedURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_syyzqk._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_syyzqk] that points to the same underlying object as [other]. - _BlockArgs_syyzqk.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_syyzqk] that wraps the given raw object pointer. - _BlockArgs_syyzqk.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_syyzqk]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_syyzqk, - ); -} - -extension _BlockArgs_syyzqk$Methods on _BlockArgs_syyzqk { - bool get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg0); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_t3r59d._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_t3r59d] that points to the same underlying object as [other]. - _BlockArgs_t3r59d.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_t3r59d] that wraps the given raw object pointer. - _BlockArgs_t3r59d.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_t3r59d]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_t3r59d, - ); -} - -extension _BlockArgs_t3r59d$Methods on _BlockArgs_t3r59d { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg5 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg5); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_tbof01._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_tbof01] that points to the same underlying object as [other]. - _BlockArgs_tbof01.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_tbof01] that wraps the given raw object pointer. - _BlockArgs_tbof01.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_tbof01]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_tbof01, - ); -} - -extension _BlockArgs_tbof01$Methods on _BlockArgs_tbof01 { - int get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1fspiy4(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_teaic5._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_teaic5] that points to the same underlying object as [other]. - _BlockArgs_teaic5.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_teaic5] that wraps the given raw object pointer. - _BlockArgs_teaic5.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_teaic5]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_teaic5, - ); -} - -extension _BlockArgs_teaic5$Methods on _BlockArgs_teaic5 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.NSURLHandle get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_tikg8p._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_tikg8p] that points to the same underlying object as [other]. - _BlockArgs_tikg8p.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_tikg8p] that wraps the given raw object pointer. - _BlockArgs_tikg8p.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_tikg8p]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_tikg8p, - ); -} - -extension _BlockArgs_tikg8p$Methods on _BlockArgs_tikg8p { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSNetService get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSNetService.fromPointer($ret, retain: true, release: true); - } - - objc.NSInputStream get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - objc.NSOutputStream get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_truc42._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_truc42] that points to the same underlying object as [other]. - _BlockArgs_truc42.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_truc42] that wraps the given raw object pointer. - _BlockArgs_truc42.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_truc42]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_truc42, - ); -} - -extension _BlockArgs_truc42$Methods on _BlockArgs_truc42 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSExtensionContext get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSExtensionContext.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_u4a6zc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_u4a6zc] that points to the same underlying object as [other]. - _BlockArgs_u4a6zc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_u4a6zc] that wraps the given raw object pointer. - _BlockArgs_u4a6zc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_u4a6zc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_u4a6zc, - ); -} - -extension _BlockArgs_u4a6zc$Methods on _BlockArgs_u4a6zc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSNetService get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSNetService.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_u65oe8._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_u65oe8] that points to the same underlying object as [other]. - _BlockArgs_u65oe8.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_u65oe8] that wraps the given raw object pointer. - _BlockArgs_u65oe8.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_u65oe8]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_u65oe8, - ); -} - -extension _BlockArgs_u65oe8$Methods on _BlockArgs_u65oe8 { - NSURLSessionAuthChallengeDisposition get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_19co5ux(_$$ref.pointer, _sel_arg0); - return NSURLSessionAuthChallengeDisposition.fromValue($ret); - } - - NSURLCredential? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : NSURLCredential.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_uul9n9._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_uul9n9] that points to the same underlying object as [other]. - _BlockArgs_uul9n9.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_uul9n9] that wraps the given raw object pointer. - _BlockArgs_uul9n9.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_uul9n9]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_uul9n9, - ); -} - -extension _BlockArgs_uul9n9$Methods on _BlockArgs_uul9n9 { - bool get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg0); - } - - Dartdispatch_data_t? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - int get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_v1zq3a._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_v1zq3a] that points to the same underlying object as [other]. - _BlockArgs_v1zq3a.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_v1zq3a] that wraps the given raw object pointer. - _BlockArgs_v1zq3a.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_v1zq3a]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_v1zq3a, - ); -} - -extension _BlockArgs_v1zq3a$Methods on _BlockArgs_v1zq3a { - CGRenderingBufferProviderRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_xnca0g(_$$ref.pointer, _sel_arg0); - } - - ffi.Pointer get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1at51ut(_$$ref.pointer, _sel_arg1); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_19ms50r(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_v5xz31._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_v5xz31] that points to the same underlying object as [other]. - _BlockArgs_v5xz31.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_v5xz31] that wraps the given raw object pointer. - _BlockArgs_v5xz31.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_v5xz31]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_v5xz31, - ); -} - -extension _BlockArgs_v5xz31$Methods on _BlockArgs_v5xz31 { - NSFileHandle get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return NSFileHandle.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_v8in3._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_v8in3] that points to the same underlying object as [other]. - _BlockArgs_v8in3.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_v8in3] that wraps the given raw object pointer. - _BlockArgs_v8in3.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_v8in3]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_v8in3, - ); -} - -extension _BlockArgs_v8in3$Methods on _BlockArgs_v8in3 { - objc.NSDictionary get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - NSRange get arg1 { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1wp571eStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1wp571e(_$$ref.pointer, _sel_arg1); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_19tixc3(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_vaglpl._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_vaglpl] that points to the same underlying object as [other]. - _BlockArgs_vaglpl.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_vaglpl] that wraps the given raw object pointer. - _BlockArgs_vaglpl.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_vaglpl]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_vaglpl, - ); -} - -extension _BlockArgs_vaglpl$Methods on _BlockArgs_vaglpl { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_vgtcpl._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_vgtcpl] that points to the same underlying object as [other]. - _BlockArgs_vgtcpl.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_vgtcpl] that wraps the given raw object pointer. - _BlockArgs_vgtcpl.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_vgtcpl]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_vgtcpl, - ); -} - -extension _BlockArgs_vgtcpl$Methods on _BlockArgs_vgtcpl { - CFArrayRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1vyt62e(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_vpa8ji._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_vpa8ji] that points to the same underlying object as [other]. - _BlockArgs_vpa8ji.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_vpa8ji] that wraps the given raw object pointer. - _BlockArgs_vpa8ji.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_vpa8ji]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_vpa8ji, - ); -} - -extension _BlockArgs_vpa8ji$Methods on _BlockArgs_vpa8ji { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - objc.NSError get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_vx7t4i._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_vx7t4i] that points to the same underlying object as [other]. - _BlockArgs_vx7t4i.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_vx7t4i] that wraps the given raw object pointer. - _BlockArgs_vx7t4i.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_vx7t4i]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_vx7t4i, - ); -} - -extension _BlockArgs_vx7t4i$Methods on _BlockArgs_vx7t4i { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg4); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg5 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg5); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_wpl2gn._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_wpl2gn] that points to the same underlying object as [other]. - _BlockArgs_wpl2gn.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_wpl2gn] that wraps the given raw object pointer. - _BlockArgs_wpl2gn.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_wpl2gn]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_wpl2gn, - ); -} - -extension _BlockArgs_wpl2gn$Methods on _BlockArgs_wpl2gn { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - bool get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_wtbfzi._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_wtbfzi] that points to the same underlying object as [other]. - _BlockArgs_wtbfzi.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_wtbfzi] that wraps the given raw object pointer. - _BlockArgs_wtbfzi.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_wtbfzi]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_wtbfzi, - ); -} - -extension _BlockArgs_wtbfzi$Methods on _BlockArgs_wtbfzi { - NSCachedURLResponse? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSCachedURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. - _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. - _BlockArgs_x5cg0.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_x5cg0, - ); -} - -extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { - objc.NSData? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_x7mqjz._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_x7mqjz] that points to the same underlying object as [other]. - _BlockArgs_x7mqjz.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_x7mqjz] that wraps the given raw object pointer. - _BlockArgs_x7mqjz.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_x7mqjz]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_x7mqjz, - ); -} - -extension _BlockArgs_x7mqjz$Methods on _BlockArgs_x7mqjz { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSNetServiceBrowser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); - } - - NSNetService get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSNetService.fromPointer($ret, retain: true, release: true); - } - - bool get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_xcrg5s._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_xcrg5s] that points to the same underlying object as [other]. - _BlockArgs_xcrg5s.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_xcrg5s] that wraps the given raw object pointer. - _BlockArgs_xcrg5s.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_xcrg5s]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_xcrg5s, - ); -} - -extension _BlockArgs_xcrg5s$Methods on _BlockArgs_xcrg5s { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionWebSocketTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionWebSocketTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.NSString? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_xh08sz._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_xh08sz] that points to the same underlying object as [other]. - _BlockArgs_xh08sz.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_xh08sz] that wraps the given raw object pointer. - _BlockArgs_xh08sz.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_xh08sz]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_xh08sz, - ); -} - -extension _BlockArgs_xh08sz$Methods on _BlockArgs_xh08sz { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg3); - } - - int get arg4 { - final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg4); - } - - int get arg5 { - final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_arg5); - } -} - -extension type _BlockArgs_xj71gr._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_xj71gr] that points to the same underlying object as [other]. - _BlockArgs_xj71gr.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_xj71gr] that wraps the given raw object pointer. - _BlockArgs_xj71gr.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_xj71gr]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_xj71gr, - ); -} - -extension _BlockArgs_xj71gr$Methods on _BlockArgs_xj71gr { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); - } - - objc.NSURLHandle get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); - return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_zgaes8._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_zgaes8] that points to the same underlying object as [other]. - _BlockArgs_zgaes8.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_zgaes8] that wraps the given raw object pointer. - _BlockArgs_zgaes8.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_zgaes8]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_xbndyy( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_zgaes8, - ); -} - -extension _BlockArgs_zgaes8$Methods on _BlockArgs_zgaes8 { - DartBoolean get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_14cxkac(_$$ref.pointer, _sel_arg0); - } - - DartUInt64 get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_10fx4x0(_$$ref.pointer, _sel_arg1); - } - - CFErrorRef get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_i7x6oo(_$$ref.pointer, _sel_arg2); - } -} - -final class _CFHTTPAuthentication extends ffi.Opaque {} - -final class _CGDisplayConfigRef extends ffi.Opaque {} - -enum _CGLContextEnable { - kCGLCESwapRectangle(201), - kCGLCESwapLimit(203), - kCGLCERasterization(221), - kCGLCEStateValidation(301), - kCGLCESurfaceBackingSize(305), - kCGLCEDisplayListOptimization(307), - kCGLCEMPEngine(313), - kCGLCECrashOnRemovedFunctions(316); - - final int value; - const _CGLContextEnable(this.value); - - static _CGLContextEnable fromValue(int value) => switch (value) { - 201 => kCGLCESwapRectangle, - 203 => kCGLCESwapLimit, - 221 => kCGLCERasterization, - 301 => kCGLCEStateValidation, - 305 => kCGLCESurfaceBackingSize, - 307 => kCGLCEDisplayListOptimization, - 313 => kCGLCEMPEngine, - 316 => kCGLCECrashOnRemovedFunctions, - _ => throw ArgumentError('Unknown value for _CGLContextEnable: $value'), - }; -} - -final class _CGLContextObject extends ffi.Opaque {} - -enum _CGLContextParameter { - kCGLCPSwapRectangle(200), - kCGLCPSwapInterval(222), - kCGLCPDispatchTableSize(224), - kCGLCPClientStorage(226), - kCGLCPSurfaceTexture(228), - kCGLCPSurfaceOrder(235), - kCGLCPSurfaceOpacity(236), - kCGLCPSurfaceBackingSize(304), - kCGLCPSurfaceSurfaceVolatile(306), - kCGLCPReclaimResources(308), - kCGLCPCurrentRendererID(309), - kCGLCPGPUVertexProcessing(310), - kCGLCPGPUFragmentProcessing(311), - kCGLCPHasDrawable(314), - kCGLCPMPSwapsInFlight(315), - kCGLCPGPURestartStatus(317), - kCGLCPAbortOnGPURestartStatusBlacklisted(318), - kCGLCPSupportGPURestart(319), - kCGLCPSupportSeparateAddressSpace(320), - kCGLCPContextPriorityRequest(608); - - static const kCGLCPAbortOnGPURestartStatusDenied = - kCGLCPAbortOnGPURestartStatusBlacklisted; - - final int value; - const _CGLContextParameter(this.value); - - static _CGLContextParameter fromValue(int value) => switch (value) { - 200 => kCGLCPSwapRectangle, - 222 => kCGLCPSwapInterval, - 224 => kCGLCPDispatchTableSize, - 226 => kCGLCPClientStorage, - 228 => kCGLCPSurfaceTexture, - 235 => kCGLCPSurfaceOrder, - 236 => kCGLCPSurfaceOpacity, - 304 => kCGLCPSurfaceBackingSize, - 306 => kCGLCPSurfaceSurfaceVolatile, - 308 => kCGLCPReclaimResources, - 309 => kCGLCPCurrentRendererID, - 310 => kCGLCPGPUVertexProcessing, - 311 => kCGLCPGPUFragmentProcessing, - 314 => kCGLCPHasDrawable, - 315 => kCGLCPMPSwapsInFlight, - 317 => kCGLCPGPURestartStatus, - 318 => kCGLCPAbortOnGPURestartStatusBlacklisted, - 319 => kCGLCPSupportGPURestart, - 320 => kCGLCPSupportSeparateAddressSpace, - 608 => kCGLCPContextPriorityRequest, - _ => throw ArgumentError('Unknown value for _CGLContextParameter: $value'), - }; - - @override - String toString() { - if (this == kCGLCPAbortOnGPURestartStatusBlacklisted) - return "_CGLContextParameter.kCGLCPAbortOnGPURestartStatusBlacklisted, _CGLContextParameter.kCGLCPAbortOnGPURestartStatusDenied"; - return super.toString(); - } -} - -enum _CGLError { - kCGLNoError(0), - kCGLBadAttribute(10000), - kCGLBadProperty(10001), - kCGLBadPixelFormat(10002), - kCGLBadRendererInfo(10003), - kCGLBadContext(10004), - kCGLBadDrawable(10005), - kCGLBadDisplay(10006), - kCGLBadState(10007), - kCGLBadValue(10008), - kCGLBadMatch(10009), - kCGLBadEnumeration(10010), - kCGLBadOffScreen(10011), - kCGLBadFullScreen(10012), - kCGLBadWindow(10013), - kCGLBadAddress(10014), - kCGLBadCodeModule(10015), - kCGLBadAlloc(10016), - kCGLBadConnection(10017); - - final int value; - const _CGLError(this.value); - - static _CGLError fromValue(int value) => switch (value) { - 0 => kCGLNoError, - 10000 => kCGLBadAttribute, - 10001 => kCGLBadProperty, - 10002 => kCGLBadPixelFormat, - 10003 => kCGLBadRendererInfo, - 10004 => kCGLBadContext, - 10005 => kCGLBadDrawable, - 10006 => kCGLBadDisplay, - 10007 => kCGLBadState, - 10008 => kCGLBadValue, - 10009 => kCGLBadMatch, - 10010 => kCGLBadEnumeration, - 10011 => kCGLBadOffScreen, - 10012 => kCGLBadFullScreen, - 10013 => kCGLBadWindow, - 10014 => kCGLBadAddress, - 10015 => kCGLBadCodeModule, - 10016 => kCGLBadAlloc, - 10017 => kCGLBadConnection, - _ => throw ArgumentError('Unknown value for _CGLError: $value'), - }; -} - -enum _CGLGPURestartStatus { - kCGLCPGPURestartStatusNone(0), - kCGLCPGPURestartStatusCaused(1), - kCGLCPGPURestartStatusBlacklisted(2); - - static const kCGLCPGPURestartStatusDenied = kCGLCPGPURestartStatusBlacklisted; - - final int value; - const _CGLGPURestartStatus(this.value); - - static _CGLGPURestartStatus fromValue(int value) => switch (value) { - 0 => kCGLCPGPURestartStatusNone, - 1 => kCGLCPGPURestartStatusCaused, - 2 => kCGLCPGPURestartStatusBlacklisted, - _ => throw ArgumentError('Unknown value for _CGLGPURestartStatus: $value'), - }; - - @override - String toString() { - if (this == kCGLCPGPURestartStatusBlacklisted) - return "_CGLGPURestartStatus.kCGLCPGPURestartStatusBlacklisted, _CGLGPURestartStatus.kCGLCPGPURestartStatusDenied"; - return super.toString(); - } -} - -enum _CGLGlobalOption { - kCGLGOFormatCacheSize(501), - kCGLGOClearFormatCache(502), - kCGLGORetainRenderers(503), - kCGLGOUseBuildCache(506), - kCGLGOResetLibrary(504), - kCGLGOUseErrorHandler(505); - - final int value; - const _CGLGlobalOption(this.value); - - static _CGLGlobalOption fromValue(int value) => switch (value) { - 501 => kCGLGOFormatCacheSize, - 502 => kCGLGOClearFormatCache, - 503 => kCGLGORetainRenderers, - 506 => kCGLGOUseBuildCache, - 504 => kCGLGOResetLibrary, - 505 => kCGLGOUseErrorHandler, - _ => throw ArgumentError('Unknown value for _CGLGlobalOption: $value'), - }; -} - -enum _CGLOpenGLProfile { - kCGLOGLPVersion_Legacy(4096), - kCGLOGLPVersion_3_2_Core(12800), - kCGLOGLPVersion_GL4_Core(16640); - - static const kCGLOGLPVersion_GL3_Core = kCGLOGLPVersion_3_2_Core; - - final int value; - const _CGLOpenGLProfile(this.value); - - static _CGLOpenGLProfile fromValue(int value) => switch (value) { - 4096 => kCGLOGLPVersion_Legacy, - 12800 => kCGLOGLPVersion_3_2_Core, - 16640 => kCGLOGLPVersion_GL4_Core, - _ => throw ArgumentError('Unknown value for _CGLOpenGLProfile: $value'), - }; - - @override - String toString() { - if (this == kCGLOGLPVersion_3_2_Core) - return "_CGLOpenGLProfile.kCGLOGLPVersion_3_2_Core, _CGLOpenGLProfile.kCGLOGLPVersion_GL3_Core"; - return super.toString(); - } -} - -final class _CGLPBufferObject extends ffi.Opaque {} - -enum _CGLPixelFormatAttribute { - kCGLPFAAllRenderers(1), - kCGLPFATripleBuffer(3), - kCGLPFADoubleBuffer(5), - kCGLPFAColorSize(8), - kCGLPFAAlphaSize(11), - kCGLPFADepthSize(12), - kCGLPFAStencilSize(13), - kCGLPFAMinimumPolicy(51), - kCGLPFAMaximumPolicy(52), - kCGLPFASampleBuffers(55), - kCGLPFASamples(56), - kCGLPFAColorFloat(58), - kCGLPFAMultisample(59), - kCGLPFASupersample(60), - kCGLPFASampleAlpha(61), - kCGLPFARendererID(70), - kCGLPFANoRecovery(72), - kCGLPFAAccelerated(73), - kCGLPFAClosestPolicy(74), - kCGLPFABackingStore(76), - kCGLPFABackingVolatile(77), - kCGLPFADisplayMask(84), - kCGLPFAAllowOfflineRenderers(96), - kCGLPFAAcceleratedCompute(97), - kCGLPFAOpenGLProfile(99), - kCGLPFASupportsAutomaticGraphicsSwitching(101), - kCGLPFAVirtualScreenCount(128), - kCGLPFAAuxBuffers(7), - kCGLPFAAccumSize(14), - kCGLPFAAuxDepthStencil(57), - kCGLPFAStereo(6), - kCGLPFAOffScreen(53), - kCGLPFAWindow(80), - kCGLPFACompliant(83), - kCGLPFAPBuffer(90), - kCGLPFARemotePBuffer(91), - kCGLPFASingleRenderer(71), - kCGLPFARobust(75), - kCGLPFAMPSafe(78), - kCGLPFAMultiScreen(81), - kCGLPFAFullScreen(54); - - final int value; - const _CGLPixelFormatAttribute(this.value); - - static _CGLPixelFormatAttribute fromValue(int value) => switch (value) { - 1 => kCGLPFAAllRenderers, - 3 => kCGLPFATripleBuffer, - 5 => kCGLPFADoubleBuffer, - 8 => kCGLPFAColorSize, - 11 => kCGLPFAAlphaSize, - 12 => kCGLPFADepthSize, - 13 => kCGLPFAStencilSize, - 51 => kCGLPFAMinimumPolicy, - 52 => kCGLPFAMaximumPolicy, - 55 => kCGLPFASampleBuffers, - 56 => kCGLPFASamples, - 58 => kCGLPFAColorFloat, - 59 => kCGLPFAMultisample, - 60 => kCGLPFASupersample, - 61 => kCGLPFASampleAlpha, - 70 => kCGLPFARendererID, - 72 => kCGLPFANoRecovery, - 73 => kCGLPFAAccelerated, - 74 => kCGLPFAClosestPolicy, - 76 => kCGLPFABackingStore, - 77 => kCGLPFABackingVolatile, - 84 => kCGLPFADisplayMask, - 96 => kCGLPFAAllowOfflineRenderers, - 97 => kCGLPFAAcceleratedCompute, - 99 => kCGLPFAOpenGLProfile, - 101 => kCGLPFASupportsAutomaticGraphicsSwitching, - 128 => kCGLPFAVirtualScreenCount, - 7 => kCGLPFAAuxBuffers, - 14 => kCGLPFAAccumSize, - 57 => kCGLPFAAuxDepthStencil, - 6 => kCGLPFAStereo, - 53 => kCGLPFAOffScreen, - 80 => kCGLPFAWindow, - 83 => kCGLPFACompliant, - 90 => kCGLPFAPBuffer, - 91 => kCGLPFARemotePBuffer, - 71 => kCGLPFASingleRenderer, - 75 => kCGLPFARobust, - 78 => kCGLPFAMPSafe, - 81 => kCGLPFAMultiScreen, - 54 => kCGLPFAFullScreen, - _ => throw ArgumentError( - 'Unknown value for _CGLPixelFormatAttribute: $value', - ), - }; -} - -final class _CGLPixelFormatObject extends ffi.Opaque {} - -final class _CGLRendererInfoObject extends ffi.Opaque {} - -enum _CGLRendererProperty { - kCGLRPOffScreen(53), - kCGLRPRendererID(70), - kCGLRPAccelerated(73), - kCGLRPBackingStore(76), - kCGLRPWindow(80), - kCGLRPCompliant(83), - kCGLRPDisplayMask(84), - kCGLRPBufferModes(100), - kCGLRPColorModes(103), - kCGLRPAccumModes(104), - kCGLRPDepthModes(105), - kCGLRPStencilModes(106), - kCGLRPMaxAuxBuffers(107), - kCGLRPMaxSampleBuffers(108), - kCGLRPMaxSamples(109), - kCGLRPSampleModes(110), - kCGLRPSampleAlpha(111), - kCGLRPGPUVertProcCapable(122), - kCGLRPGPUFragProcCapable(123), - kCGLRPRendererCount(128), - kCGLRPOnline(129), - kCGLRPAcceleratedCompute(130), - kCGLRPVideoMemoryMegabytes(131), - kCGLRPTextureMemoryMegabytes(132), - kCGLRPMajorGLVersion(133), - kCGLRPRegistryIDLow(140), - kCGLRPRegistryIDHigh(141), - kCGLRPRemovable(142), - kCGLRPRobust(75), - kCGLRPMPSafe(78), - kCGLRPMultiScreen(81), - kCGLRPFullScreen(54), - kCGLRPVideoMemory(120), - kCGLRPTextureMemory(121); - - final int value; - const _CGLRendererProperty(this.value); - - static _CGLRendererProperty fromValue(int value) => switch (value) { - 53 => kCGLRPOffScreen, - 70 => kCGLRPRendererID, - 73 => kCGLRPAccelerated, - 76 => kCGLRPBackingStore, - 80 => kCGLRPWindow, - 83 => kCGLRPCompliant, - 84 => kCGLRPDisplayMask, - 100 => kCGLRPBufferModes, - 103 => kCGLRPColorModes, - 104 => kCGLRPAccumModes, - 105 => kCGLRPDepthModes, - 106 => kCGLRPStencilModes, - 107 => kCGLRPMaxAuxBuffers, - 108 => kCGLRPMaxSampleBuffers, - 109 => kCGLRPMaxSamples, - 110 => kCGLRPSampleModes, - 111 => kCGLRPSampleAlpha, - 122 => kCGLRPGPUVertProcCapable, - 123 => kCGLRPGPUFragProcCapable, - 128 => kCGLRPRendererCount, - 129 => kCGLRPOnline, - 130 => kCGLRPAcceleratedCompute, - 131 => kCGLRPVideoMemoryMegabytes, - 132 => kCGLRPTextureMemoryMegabytes, - 133 => kCGLRPMajorGLVersion, - 140 => kCGLRPRegistryIDLow, - 141 => kCGLRPRegistryIDHigh, - 142 => kCGLRPRemovable, - 75 => kCGLRPRobust, - 78 => kCGLRPMPSafe, - 81 => kCGLRPMultiScreen, - 54 => kCGLRPFullScreen, - 120 => kCGLRPVideoMemory, - 121 => kCGLRPTextureMemory, - _ => throw ArgumentError('Unknown value for _CGLRendererProperty: $value'), - }; -} - -final class _CMSDecoder extends ffi.Opaque {} - -final class _CMSEncoder extends ffi.Opaque {} - -@Deprecated('Deprecated') -const int _MixedModeMagic = 43774; - -final class _NXEvent extends ffi.Struct { - @SInt32() - external int type; - - external UnnamedStruct$15 location; - - @UInt64() - external int time$1; - - @SInt32() - external int flags; - - @UInt32() - external int window; - - @UInt64() - external int service_id; - - @SInt32() - external int ext_pid; - - external NXEventData data; -} - -final class _NXEventExt extends ffi.Struct { - external NXEvent payload; - - external NXEventExtension extension; -} - -final class _NXEventExtension extends ffi.Struct { - @UInt32() - external int flags; - - external audit_token_t audit$1; -} - -final class _NXPoint extends ffi.Struct { - @NXCoord() - external double x; - - @NXCoord() - external double y; -} - -final class _NXSize extends ffi.Struct { - @NXCoord() - external double width; - - @NXCoord() - external double height; -} - -final class _NXTabletPointData extends ffi.Struct { - @SInt32() - external int x; - - @SInt32() - external int y; - - @SInt32() - external int z; - - @UInt16() - external int buttons; - - @UInt16() - external int pressure; - - external UnnamedStruct$9 tilt; - - @UInt16() - external int rotation; - - @SInt16() - external int tangentialPressure; - - @UInt16() - external int deviceID; - - @SInt16() - external int vendor1; - - @SInt16() - external int vendor2; - - @SInt16() - external int vendor3; -} - -final class _NXTabletProximityData extends ffi.Struct { - @UInt16() - external int vendorID; - - @UInt16() - external int tabletID; - - @UInt16() - external int pointerID; - - @UInt16() - external int deviceID; - - @UInt16() - external int systemTabletID; - - @UInt16() - external int vendorPointerType; - - @UInt32() - external int pointerSerialNumber; - - @UInt64() - external int uniqueID; - - @UInt32() - external int capabilityMask; - - @UInt8() - external int pointerType; - - @UInt8() - external int enterProximity; - - @SInt16() - external int reserved1; -} - -@ffi.Packed(1) -final class _OSUnalignedU16 extends ffi.Struct { - @ffi.Uint16() - external int __val; -} - -@ffi.Packed(1) -final class _OSUnalignedU32 extends ffi.Struct { - @ffi.Uint32() - external int __val; -} - -@ffi.Packed(1) -final class _OSUnalignedU64 extends ffi.Struct { - @ffi.Uint64() - external int __val; -} - -final class _RuneCharClass extends ffi.Struct { - @ffi.Array.multi([14]) - external ffi.Array __name; - - @__uint32_t() - external int __mask; -} - -final class _RuneEntry extends ffi.Struct { - @__darwin_rune_t() - external int __min; - - @__darwin_rune_t() - external int __max; - - @__darwin_rune_t() - external int __map; - - external ffi.Pointer<__uint32_t> __types; -} - -final class _RuneLocale extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array __magic; - - @ffi.Array.multi([32]) - external ffi.Array __encoding; - - external ffi.Pointer< - ffi.NativeFunction< - __darwin_rune_t Function( - ffi.Pointer, - __darwin_size_t, - ffi.Pointer>, - ) - > - > - __sgetrune; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - __darwin_rune_t, - ffi.Pointer, - __darwin_size_t, - ffi.Pointer>, - ) - > - > - __sputrune; - - @__darwin_rune_t() - external int __invalid_rune; - - @ffi.Array.multi([256]) - external ffi.Array<__uint32_t> __runetype; - - @ffi.Array.multi([256]) - external ffi.Array<__darwin_rune_t> __maplower; - - @ffi.Array.multi([256]) - external ffi.Array<__darwin_rune_t> __mapupper; - - external _RuneRange __runetype_ext; - - external _RuneRange __maplower_ext; - - external _RuneRange __mapupper_ext; - - external ffi.Pointer __variable; - - @ffi.Int() - external int __variable_len; - - @ffi.Int() - external int __ncharclasses; - - external ffi.Pointer<_RuneCharClass> __charclasses; -} - -final class _RuneRange extends ffi.Struct { - @ffi.Int() - external int __nranges; - - external ffi.Pointer<_RuneEntry> __ranges; -} - -final class __AXObserver extends ffi.Opaque {} - -final class __AXTextMarker extends ffi.Opaque {} - -final class __AXTextMarkerRange extends ffi.Opaque {} - -final class __AXUIElement extends ffi.Opaque {} - -final class __AXValue extends ffi.Opaque {} - -final class __CE_AccessDescription extends ffi.Struct { - external SecAsn1Oid accessMethod; - - external CE_GeneralName accessLocation; -} - -final class __CE_AuthorityInfoAccess extends ffi.Struct { - @uint32() - external int numAccessDescriptions; - - external ffi.Pointer accessDescriptions; -} - -final class __CE_AuthorityKeyID extends ffi.Struct { - @CSSM_BOOL() - external int keyIdentifierPresent; - - external SecAsn1Item keyIdentifier; - - @CSSM_BOOL() - external int generalNamesPresent; - - external ffi.Pointer generalNames; - - @CSSM_BOOL() - external int serialNumberPresent; - - external SecAsn1Item serialNumber; -} - -final class __CE_BasicConstraints extends ffi.Struct { - @CSSM_BOOL() - external int cA; - - @CSSM_BOOL() - external int pathLenConstraintPresent; - - @uint32() - external int pathLenConstraint; -} - -final class __CE_CRLDistPointsSyntax extends ffi.Struct { - @uint32() - external int numDistPoints; - - external ffi.Pointer distPoints; -} - -final class __CE_CRLDistributionPoint extends ffi.Struct { - external ffi.Pointer distPointName; - - @CSSM_BOOL() - external int reasonsPresent; - - @CE_CrlDistReasonFlags() - external int reasons; - - external ffi.Pointer crlIssuer; -} - -final class __CE_CertPolicies extends ffi.Struct { - @uint32() - external int numPolicies; - - external ffi.Pointer policies; -} - -enum __CE_CrlDistributionPointNameType { - CE_CDNT_FullName(0), - CE_CDNT_NameRelativeToCrlIssuer(1); - - final int value; - const __CE_CrlDistributionPointNameType(this.value); - - static __CE_CrlDistributionPointNameType fromValue(int value) => - switch (value) { - 0 => CE_CDNT_FullName, - 1 => CE_CDNT_NameRelativeToCrlIssuer, - _ => throw ArgumentError( - 'Unknown value for __CE_CrlDistributionPointNameType: $value', - ), - }; -} - -final class __CE_DataAndType extends ffi.Struct { - @ffi.UnsignedInt() - external int typeAsInt; - - __CE_DataType get type => __CE_DataType.fromValue(typeAsInt); - set type(__CE_DataType value) => typeAsInt = value.value; - - external CE_Data extension; - - @CSSM_BOOL() - external int critical; -} - -enum __CE_DataType { - DT_AuthorityKeyID(0), - DT_SubjectKeyID(1), - DT_KeyUsage(2), - DT_SubjectAltName(3), - DT_IssuerAltName(4), - DT_ExtendedKeyUsage(5), - DT_BasicConstraints(6), - DT_CertPolicies(7), - DT_NetscapeCertType(8), - DT_CrlNumber(9), - DT_DeltaCrl(10), - DT_CrlReason(11), - DT_CrlDistributionPoints(12), - DT_IssuingDistributionPoint(13), - DT_AuthorityInfoAccess(14), - DT_Other(15), - DT_QC_Statements(16), - DT_NameConstraints(17), - DT_PolicyMappings(18), - DT_PolicyConstraints(19), - DT_InhibitAnyPolicy(20); - - final int value; - const __CE_DataType(this.value); - - static __CE_DataType fromValue(int value) => switch (value) { - 0 => DT_AuthorityKeyID, - 1 => DT_SubjectKeyID, - 2 => DT_KeyUsage, - 3 => DT_SubjectAltName, - 4 => DT_IssuerAltName, - 5 => DT_ExtendedKeyUsage, - 6 => DT_BasicConstraints, - 7 => DT_CertPolicies, - 8 => DT_NetscapeCertType, - 9 => DT_CrlNumber, - 10 => DT_DeltaCrl, - 11 => DT_CrlReason, - 12 => DT_CrlDistributionPoints, - 13 => DT_IssuingDistributionPoint, - 14 => DT_AuthorityInfoAccess, - 15 => DT_Other, - 16 => DT_QC_Statements, - 17 => DT_NameConstraints, - 18 => DT_PolicyMappings, - 19 => DT_PolicyConstraints, - 20 => DT_InhibitAnyPolicy, - _ => throw ArgumentError('Unknown value for __CE_DataType: $value'), - }; -} - -final class __CE_DistributionPointName extends ffi.Struct { - @ffi.UnsignedInt() - external int nameTypeAsInt; - - __CE_CrlDistributionPointNameType get nameType => - __CE_CrlDistributionPointNameType.fromValue(nameTypeAsInt); - set nameType(__CE_CrlDistributionPointNameType value) => - nameTypeAsInt = value.value; - - external UnnamedUnion$8 dpn; -} - -final class __CE_ExtendedKeyUsage extends ffi.Struct { - @uint32() - external int numPurposes; - - external CSSM_OID_PTR purposes; -} - -final class __CE_GeneralName extends ffi.Struct { - @ffi.UnsignedInt() - external int nameTypeAsInt; - - __CE_GeneralNameType get nameType => - __CE_GeneralNameType.fromValue(nameTypeAsInt); - set nameType(__CE_GeneralNameType value) => nameTypeAsInt = value.value; - - @CSSM_BOOL() - external int berEncoded; - - external SecAsn1Item name; -} - -enum __CE_GeneralNameType { - GNT_OtherName(0), - GNT_RFC822Name(1), - GNT_DNSName(2), - GNT_X400Address(3), - GNT_DirectoryName(4), - GNT_EdiPartyName(5), - GNT_URI(6), - GNT_IPAddress(7), - GNT_RegisteredID(8); - - final int value; - const __CE_GeneralNameType(this.value); - - static __CE_GeneralNameType fromValue(int value) => switch (value) { - 0 => GNT_OtherName, - 1 => GNT_RFC822Name, - 2 => GNT_DNSName, - 3 => GNT_X400Address, - 4 => GNT_DirectoryName, - 5 => GNT_EdiPartyName, - 6 => GNT_URI, - 7 => GNT_IPAddress, - 8 => GNT_RegisteredID, - _ => throw ArgumentError('Unknown value for __CE_GeneralNameType: $value'), - }; -} - -final class __CE_GeneralNames extends ffi.Struct { - @uint32() - external int numNames; - - external ffi.Pointer generalName; -} - -final class __CE_GeneralSubtree extends ffi.Struct { - external ffi.Pointer base; - - @uint32() - external int minimum; - - @CSSM_BOOL() - external int maximumPresent; - - @uint32() - external int maximum; -} - -final class __CE_GeneralSubtrees extends ffi.Struct { - @uint32() - external int numSubtrees; - - external ffi.Pointer subtrees; -} - -final class __CE_IssuingDistributionPoint extends ffi.Struct { - external ffi.Pointer distPointName; - - @CSSM_BOOL() - external int onlyUserCertsPresent; - - @CSSM_BOOL() - external int onlyUserCerts; - - @CSSM_BOOL() - external int onlyCACertsPresent; - - @CSSM_BOOL() - external int onlyCACerts; - - @CSSM_BOOL() - external int onlySomeReasonsPresent; - - @CE_CrlDistReasonFlags() - external int onlySomeReasons; - - @CSSM_BOOL() - external int indirectCrlPresent; - - @CSSM_BOOL() - external int indirectCrl; -} - -final class __CE_NameConstraints extends ffi.Struct { - external ffi.Pointer permitted; - - external ffi.Pointer excluded; -} - -final class __CE_OtherName extends ffi.Struct { - external SecAsn1Oid typeId; - - external SecAsn1Item value; -} - -final class __CE_PolicyConstraints extends ffi.Struct { - @CSSM_BOOL() - external int requireExplicitPolicyPresent; - - @uint32() - external int requireExplicitPolicy; - - @CSSM_BOOL() - external int inhibitPolicyMappingPresent; - - @uint32() - external int inhibitPolicyMapping; -} - -final class __CE_PolicyInformation extends ffi.Struct { - external SecAsn1Oid certPolicyId; - - @uint32() - external int numPolicyQualifiers; - - external ffi.Pointer policyQualifiers; -} - -final class __CE_PolicyMapping extends ffi.Struct { - external SecAsn1Oid issuerDomainPolicy; - - external SecAsn1Oid subjectDomainPolicy; -} - -final class __CE_PolicyMappings extends ffi.Struct { - @uint32() - external int numPolicyMappings; - - external ffi.Pointer policyMappings; -} - -final class __CE_PolicyQualifierInfo extends ffi.Struct { - external SecAsn1Oid policyQualifierId; - - external SecAsn1Item qualifier; -} - -final class __CE_QC_Statement extends ffi.Struct { - external SecAsn1Oid statementId; - - external ffi.Pointer semanticsInfo; - - external ffi.Pointer otherInfo; -} - -final class __CE_QC_Statements extends ffi.Struct { - @uint32() - external int numQCStatements; - - external ffi.Pointer qcStatements; -} - -final class __CE_SemanticsInformation extends ffi.Struct { - external ffi.Pointer semanticsIdentifier; - - external ffi.Pointer - nameRegistrationAuthorities; -} - -final class __CFAllocator extends ffi.Opaque {} - -final class __CFArray extends ffi.Opaque {} - -final class __CFAttributedString extends ffi.Opaque {} - -final class __CFBag extends ffi.Opaque {} - -final class __CFBinaryHeap extends ffi.Opaque {} - -final class __CFBitVector extends ffi.Opaque {} - -final class __CFBoolean extends ffi.Opaque {} - -final class __CFBundle extends ffi.Opaque {} - -enum __CFByteOrder { - CFByteOrderUnknown(0), - CFByteOrderLittleEndian(1), - CFByteOrderBigEndian(2); - - final int value; - const __CFByteOrder(this.value); - - static __CFByteOrder fromValue(int value) => switch (value) { - 0 => CFByteOrderUnknown, - 1 => CFByteOrderLittleEndian, - 2 => CFByteOrderBigEndian, - _ => throw ArgumentError('Unknown value for __CFByteOrder: $value'), - }; -} - -final class __CFCalendar extends ffi.Opaque {} - -final class __CFCharacterSet extends ffi.Opaque {} - -final class __CFData extends ffi.Opaque {} - -final class __CFDate extends ffi.Opaque {} - -final class __CFDateFormatter extends ffi.Opaque {} - -final class __CFDictionary extends ffi.Opaque {} - -final class __CFError extends ffi.Opaque {} - -final class __CFFileDescriptor extends ffi.Opaque {} - -final class __CFFileSecurity extends ffi.Opaque {} - -final class __CFHTTPMessage extends ffi.Opaque {} - -final class __CFHost extends ffi.Opaque {} - -final class __CFLocale extends ffi.Opaque {} - -final class __CFMachPort extends ffi.Opaque {} - -final class __CFMessagePort extends ffi.Opaque {} - -final class __CFNetDiagnostic extends ffi.Opaque {} - -final class __CFNetService extends ffi.Opaque {} - -final class __CFNetServiceBrowser extends ffi.Opaque {} - -final class __CFNetServiceMonitor extends ffi.Opaque {} - -final class __CFNotificationCenter extends ffi.Opaque {} - -final class __CFNull extends ffi.Opaque {} - -final class __CFNumber extends ffi.Opaque {} - -final class __CFNumberFormatter extends ffi.Opaque {} - -final class __CFPlugInInstance extends ffi.Opaque {} - -final class __CFReadStream extends ffi.Opaque {} - -final class __CFRunLoopObserver extends ffi.Opaque {} - -final class __CFRunLoopSource extends ffi.Opaque {} - -final class __CFRunLoopTimer extends ffi.Opaque {} - -final class __CFSet extends ffi.Opaque {} - -final class __CFSocket extends ffi.Opaque {} - -final class __CFStringTokenizer extends ffi.Opaque {} - -final class __CFTimeZone extends ffi.Opaque {} - -final class __CFTree extends ffi.Opaque {} - -final class __CFURL extends ffi.Opaque {} - -final class __CFURLEnumerator extends ffi.Opaque {} - -final class __CFUUID extends ffi.Opaque {} - -final class __CFUserNotification extends ffi.Opaque {} - -final class __CFWriteStream extends ffi.Opaque {} - -final class __CFXMLNode extends ffi.Opaque {} - -final class __CFXMLParser extends ffi.Opaque {} - -final class __CGEvent extends ffi.Opaque {} - -final class __CGEventSource extends ffi.Opaque {} - -final class __CGEventTapInformation extends ffi.Struct { - @ffi.Uint32() - external int eventTapID; - - @ffi.Uint32() - external int tapPointAsInt; - - CGEventTapLocation get tapPoint => - CGEventTapLocation.fromValue(tapPointAsInt); - set tapPoint(CGEventTapLocation value) => tapPointAsInt = value.value; - - @ffi.Uint32() - external int optionsAsInt; - - CGEventTapOptions get options => CGEventTapOptions.fromValue(optionsAsInt); - set options(CGEventTapOptions value) => optionsAsInt = value.value; - - @CGEventMask() - external int eventsOfInterest; - - @pid_t() - external int tappingProcess; - - @pid_t() - external int processBeingTapped; - - @ffi.Bool() - external bool enabled; - - @ffi.Float() - external double minUsecLatency; - - @ffi.Float() - external double avgUsecLatency; - - @ffi.Float() - external double maxUsecLatency; -} - -final class __CGEventTapProxy extends ffi.Opaque {} - -final class __CSIdentity extends ffi.Opaque {} - -final class __CSIdentityAuthority extends ffi.Opaque {} - -final class __CSIdentityQuery extends ffi.Opaque {} - -final class __CTFont extends ffi.Opaque {} - -final class __CTFontCollection extends ffi.Opaque {} - -final class __CTFontDescriptor extends ffi.Opaque {} - -final class __CTFrame extends ffi.Opaque {} - -final class __CTFramesetter extends ffi.Opaque {} - -final class __CTGlyphInfo extends ffi.Opaque {} - -final class __CTLine extends ffi.Opaque {} - -final class __CTParagraphStyle extends ffi.Opaque {} - -final class __CTRubyAnnotation extends ffi.Opaque {} - -final class __CTRun extends ffi.Opaque {} - -final class __CTRunDelegate extends ffi.Opaque {} - -final class __CTTextTab extends ffi.Opaque {} - -final class __CTTypesetter extends ffi.Opaque {} - -final class __CVBuffer extends ffi.Opaque {} - -final class __CVDisplayLink extends ffi.Opaque {} - -final class __CVMetalBufferCache extends ffi.Opaque {} - -final class __CVMetalTextureCache extends ffi.Opaque {} - -final class __CVOpenGLBufferPool extends ffi.Opaque {} - -final class __CVOpenGLTextureCache extends ffi.Opaque {} - -final class __CVPixelBufferPool extends ffi.Opaque {} - -final class __DADisk extends ffi.Opaque {} - -final class __DASession extends ffi.Opaque {} - -final class __DCSDictionary extends ffi.Opaque {} - -final class __FSEventStream extends ffi.Opaque {} - -final class __FSFileOperation extends ffi.Opaque {} - -final class __FSFileSecurity extends ffi.Opaque {} - -final class __GLsync extends ffi.Opaque {} - -final class __HIShape extends ffi.Opaque {} - -final class __IOFixedPoint32 extends ffi.Struct { - @ffi.Int32() - external int x; - - @ffi.Int32() - external int y; -} - -final class __IOSurface extends ffi.Opaque {} - -final class __MDItem extends ffi.Opaque {} - -final class __MDLabel extends ffi.Opaque {} - -final class __MDQuery extends ffi.Opaque {} - -final class __NSAppleEventManagerSuspension extends ffi.Opaque {} - -final class __ReplyUnion__clock_priv_subsystem extends ffi.Union { - external __Reply__clock_set_time_t Reply_clock_set_time; - - external __Reply__clock_set_attributes_t Reply_clock_set_attributes; -} - -final class __ReplyUnion__host_priv_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__host_security_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__mach_host_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__mach_port_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__processor_set_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__processor_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__task_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__thread_act_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__vm_map_subsystem extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Reply___host_page_size_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_size_t() - external int out_page_size; -} - -final class __Reply__act_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int old_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array old_state; -} - -final class __Reply__act_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__clock_set_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__clock_set_time_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__etap_trace_thread_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_check_multiuser_mode_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Uint32() - external int multiuser_mode; -} - -final class __Reply__host_create_mach_voucher_t extends ffi.Opaque {} - -final class __Reply__host_default_memory_manager_t extends ffi.Opaque {} - -final class __Reply__host_get_UNDServer_t extends ffi.Opaque {} - -final class __Reply__host_get_atm_diagnostic_flag_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Uint32() - external int diagnostic_flag; -} - -final class __Reply__host_get_boot_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int boot_infoOffset; - - @mach_msg_type_number_t() - external int boot_infoCnt; - - @ffi.Array.multi([4096]) - external ffi.Array boot_info; -} - -final class __Reply__host_get_clock_control_t extends ffi.Opaque {} - -final class __Reply__host_get_clock_service_t extends ffi.Opaque {} - -final class __Reply__host_get_exception_ports_t extends ffi.Opaque {} - -final class __Reply__host_get_io_main_t extends ffi.Opaque {} - -final class __Reply__host_get_multiuser_config_flags_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Uint32() - external int multiuser_flags; -} - -final class __Reply__host_get_special_port_t extends ffi.Opaque {} - -final class __Reply__host_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int host_info_outCnt; - - @ffi.Array.multi([68]) - external ffi.Array host_info_out; -} - -final class __Reply__host_kernel_version_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int kernel_versionOffset; - - @mach_msg_type_number_t() - external int kernel_versionCnt; - - @ffi.Array.multi([512]) - external ffi.Array kernel_version; -} - -final class __Reply__host_lockgroup_info_t extends ffi.Opaque {} - -final class __Reply__host_priv_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int host_info_outCnt; - - @ffi.Array.multi([68]) - external ffi.Array host_info_out; -} - -final class __Reply__host_processor_info_t extends ffi.Opaque {} - -final class __Reply__host_processor_set_priv_t extends ffi.Opaque {} - -final class __Reply__host_processor_sets_t extends ffi.Opaque {} - -final class __Reply__host_processors_t extends ffi.Opaque {} - -final class __Reply__host_reboot_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_register_mach_voucher_attr_manager_t - extends ffi.Opaque {} - -final class __Reply__host_register_well_known_mach_voucher_attr_manager_t - extends ffi.Opaque {} - -final class __Reply__host_request_notification_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_security_create_task_token_t extends ffi.Opaque {} - -final class __Reply__host_security_set_task_token_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_set_UNDServer_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_set_atm_diagnostic_flag_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_set_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_set_multiuser_config_flags_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_set_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_statistics64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int host_info64_outCnt; - - @ffi.Array.multi([256]) - external ffi.Array host_info64_out; -} - -final class __Reply__host_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int host_info_outCnt; - - @ffi.Array.multi([68]) - external ffi.Array host_info_out; -} - -final class __Reply__host_swap_exception_ports_t extends ffi.Opaque {} - -final class __Reply__host_virtual_physical_table_info_t extends ffi.Opaque {} - -final class __Reply__kext_request_t extends ffi.Opaque {} - -final class __Reply__kmod_control_t extends ffi.Opaque {} - -final class __Reply__kmod_create_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @kmod_t() - external int module; -} - -final class __Reply__kmod_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__kmod_get_info_t extends ffi.Opaque {} - -final class __Reply__lock_set_create_t extends ffi.Opaque {} - -final class __Reply__lock_set_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_make_memory_entry_64_t extends ffi.Opaque {} - -final class __Reply__mach_make_memory_entry_t extends ffi.Opaque {} - -final class __Reply__mach_memory_info_t extends ffi.Opaque {} - -final class __Reply__mach_memory_object_memory_entry_64_t extends ffi.Opaque {} - -final class __Reply__mach_memory_object_memory_entry_t extends ffi.Opaque {} - -final class __Reply__mach_port_allocate_full_t extends ffi.Opaque {} - -final class __Reply__mach_port_allocate_name_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_allocate_qos_t extends ffi.Opaque {} - -final class __Reply__mach_port_allocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_name_t() - external int name; -} - -final class __Reply__mach_port_assert_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_construct_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_name_t() - external int name; -} - -final class __Reply__mach_port_deallocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_destruct_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_dnrequest_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.UnsignedInt() - external int dnr_total; - - @ffi.UnsignedInt() - external int dnr_used; -} - -final class __Reply__mach_port_extract_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_extract_right_t extends ffi.Opaque {} - -final class __Reply__mach_port_get_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int port_info_outCnt; - - @ffi.Array.multi([17]) - external ffi.Array port_info_out; -} - -@ffi.Packed(4) -final class __Reply__mach_port_get_context_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_context_t() - external int context; -} - -final class __Reply__mach_port_get_refs_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_urefs_t() - external int refs; -} - -final class __Reply__mach_port_get_service_port_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - external mach_service_port_info_data_t sp_info_out; -} - -final class __Reply__mach_port_get_set_status_t extends ffi.Opaque {} - -final class __Reply__mach_port_get_srights_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_rights_t() - external int srights; -} - -final class __Reply__mach_port_guard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_guard_with_flags_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_insert_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_insert_right_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -@ffi.Packed(4) -final class __Reply__mach_port_is_connection_for_service_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Uint64() - external int filter_policy_id; -} - -final class __Reply__mach_port_kernel_object_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.UnsignedInt() - external int object_type; - - @ffi.UnsignedInt() - external int object_addr; -} - -@ffi.Packed(4) -final class __Reply__mach_port_kobject_description_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @natural_t() - external int object_typeAsInt; - - ipc_info_object_type_t get object_type => - ipc_info_object_type_t.fromValue(object_typeAsInt); - set object_type(ipc_info_object_type_t value) => - object_typeAsInt = value.value; - - @mach_vm_address_t() - external int object_addr; - - @mach_msg_type_number_t() - external int descriptionOffset; - - @mach_msg_type_number_t() - external int descriptionCnt; - - @ffi.Array.multi([512]) - external ffi.Array description; -} - -@ffi.Packed(4) -final class __Reply__mach_port_kobject_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @natural_t() - external int object_typeAsInt; - - ipc_info_object_type_t get object_type => - ipc_info_object_type_t.fromValue(object_typeAsInt); - set object_type(ipc_info_object_type_t value) => - object_typeAsInt = value.value; - - @mach_vm_address_t() - external int object_addr; -} - -final class __Reply__mach_port_mod_refs_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_move_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_names_t extends ffi.Opaque {} - -final class __Reply__mach_port_peek_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_seqno_t() - external int request_seqnop; - - @mach_msg_size_t() - external int msg_sizep; - - @mach_msg_id_t() - external int msg_idp; - - @mach_msg_type_number_t() - external int trailer_infopCnt; - - @ffi.Array.multi([68]) - external ffi.Array trailer_infop; -} - -final class __Reply__mach_port_rename_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_request_notification_t extends ffi.Opaque {} - -final class __Reply__mach_port_set_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_set_context_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_set_mscount_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_set_seqno_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_space_basic_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - external ipc_info_space_basic_t basic_info; -} - -final class __Reply__mach_port_space_info_t extends ffi.Opaque {} - -final class __Reply__mach_port_swap_guard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_type_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_type_t() - external int ptype; -} - -final class __Reply__mach_port_unguard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_ports_lookup_t extends ffi.Opaque {} - -final class __Reply__mach_ports_register_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_vm_region_info_64_t extends ffi.Opaque {} - -final class __Reply__mach_vm_region_info_t extends ffi.Opaque {} - -final class __Reply__mach_vm_wire_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -@ffi.Packed(4) -final class __Reply__mach_zone_info_for_zone_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - external mach_zone_info_t info; -} - -final class __Reply__mach_zone_info_t extends ffi.Opaque {} - -final class __Reply__processor_assign_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_exit_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_get_assignment_t extends ffi.Opaque {} - -final class __Reply__processor_info_t extends ffi.Opaque {} - -final class __Reply__processor_set_create_t extends ffi.Opaque {} - -final class __Reply__processor_set_default_t extends ffi.Opaque {} - -final class __Reply__processor_set_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_set_info_t extends ffi.Opaque {} - -final class __Reply__processor_set_max_priority_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_set_policy_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_set_policy_disable_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_set_policy_enable_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -@ffi.Packed(4) -final class __Reply__processor_set_stack_usage_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.UnsignedInt() - external int ltotal; - - @vm_size_t() - external int space; - - @vm_size_t() - external int resident; - - @vm_size_t() - external int maxusage; - - @vm_offset_t() - external int maxstack; -} - -final class __Reply__processor_set_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int info_outCnt; - - @ffi.Array.multi([5]) - external ffi.Array info_out; -} - -final class __Reply__processor_set_tasks_t extends ffi.Opaque {} - -final class __Reply__processor_set_tasks_with_flavor_t extends ffi.Opaque {} - -final class __Reply__processor_set_threads_t extends ffi.Opaque {} - -final class __Reply__processor_start_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__semaphore_create_t extends ffi.Opaque {} - -final class __Reply__semaphore_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_assign_default_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_assign_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_create_identity_token_t extends ffi.Opaque {} - -final class __Reply__task_create_t extends ffi.Opaque {} - -final class __Reply__task_dyld_process_info_notify_deregister_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_dyld_process_info_notify_register_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_generate_corpse_t extends ffi.Opaque {} - -final class __Reply__task_get_assignment_t extends ffi.Opaque {} - -final class __Reply__task_get_dyld_image_infos_t extends ffi.Opaque {} - -final class __Reply__task_get_emulation_vector_t extends ffi.Opaque {} - -final class __Reply__task_get_exc_guard_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @task_exc_guard_behavior_t() - external int behavior; -} - -final class __Reply__task_get_exception_ports_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int masksCnt; - - @ffi.Array.multi([32]) - external ffi.Array masks; - - @ffi.Array.multi([32]) - external ffi.Array old_handlers_info; - - @ffi.Array.multi([32]) - external ffi.Array old_behaviors; - - @ffi.Array.multi([32]) - external ffi.Array old_flavors; -} - -final class __Reply__task_get_exception_ports_t extends ffi.Opaque {} - -final class __Reply__task_get_mach_voucher_t extends ffi.Opaque {} - -final class __Reply__task_get_special_port_t extends ffi.Opaque {} - -final class __Reply__task_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int old_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array old_state; -} - -final class __Reply__task_identity_token_get_task_port_t extends ffi.Opaque {} - -final class __Reply__task_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int task_info_outCnt; - - @ffi.Array.multi([94]) - external ffi.Array task_info_out; -} - -final class __Reply__task_inspect_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int info_outCnt; - - @ffi.Array.multi([4]) - external ffi.Array info_out; -} - -@ffi.Packed(4) -final class __Reply__task_map_corpse_info_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_vm_address_t() - external int kcd_addr_begin; - - @mach_vm_size_t() - external int kcd_size; -} - -@ffi.Packed(4) -final class __Reply__task_map_corpse_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int kcd_addr_begin; - - @ffi.Uint32() - external int kcd_size; -} - -@ffi.Packed(4) -final class __Reply__task_map_kcdata_object_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_vm_address_t() - external int kcd_addr_begin; - - @mach_vm_size_t() - external int kcd_size; -} - -final class __Reply__task_policy_get_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @ffi.Array.multi([16]) - external ffi.Array policy_info; - - @boolean_t() - external int get_default; -} - -final class __Reply__task_policy_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -@ffi.Packed(4) -final class __Reply__task_purgable_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - external task_purgable_info_t stats; -} - -@ffi.Packed(4) -final class __Reply__task_register_dyld_get_process_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - external dyld_kernel_process_info_t dyld_process_state; -} - -final class __Reply__task_register_dyld_image_infos_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_register_dyld_set_dyld_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_register_dyld_shared_cache_image_info_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_register_hardened_exception_handler_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_resume2_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_resume_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_sample_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_corpse_forking_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_emulation_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_emulation_vector_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_exc_guard_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_mach_voucher_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_phys_footprint_limit_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Int() - external int old_limit; -} - -final class __Reply__task_set_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_port_space_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_ras_pc_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_suspend2_t extends ffi.Opaque {} - -final class __Reply__task_suspend_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_swap_exception_ports_t extends ffi.Opaque {} - -final class __Reply__task_swap_mach_voucher_t extends ffi.Opaque {} - -final class __Reply__task_terminate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_test_async_upcall_propagation_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_test_sync_upcall_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_threads_t extends ffi.Opaque {} - -final class __Reply__task_unregister_dyld_image_infos_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_wire_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_zone_info_t extends ffi.Opaque {} - -final class __Reply__thread_abort_safely_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_abort_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_adopt_exception_handler_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_assign_default_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_assign_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_convert_thread_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int out_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array out_state; -} - -final class __Reply__thread_create_running_t extends ffi.Opaque {} - -final class __Reply__thread_create_t extends ffi.Opaque {} - -final class __Reply__thread_depress_abort_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_get_assignment_t extends ffi.Opaque {} - -final class __Reply__thread_get_exception_ports_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int masksCnt; - - @ffi.Array.multi([32]) - external ffi.Array masks; - - @ffi.Array.multi([32]) - external ffi.Array old_handlers_info; - - @ffi.Array.multi([32]) - external ffi.Array old_behaviors; - - @ffi.Array.multi([32]) - external ffi.Array old_flavors; -} - -final class __Reply__thread_get_exception_ports_t extends ffi.Opaque {} - -final class __Reply__thread_get_mach_voucher_t extends ffi.Opaque {} - -final class __Reply__thread_get_special_port_t extends ffi.Opaque {} - -final class __Reply__thread_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int old_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array old_state; -} - -final class __Reply__thread_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int thread_info_outCnt; - - @ffi.Array.multi([32]) - external ffi.Array thread_info_out; -} - -final class __Reply__thread_policy_get_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @ffi.Array.multi([16]) - external ffi.Array policy_info; - - @boolean_t() - external int get_default; -} - -final class __Reply__thread_policy_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_resume_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_sample_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_set_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_set_mach_voucher_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_set_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_set_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_suspend_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_swap_exception_ports_t extends ffi.Opaque {} - -final class __Reply__thread_swap_mach_voucher_t extends ffi.Opaque {} - -final class __Reply__thread_terminate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_wire_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -@ffi.Packed(4) -final class __Reply__vm_allocate_cpm_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; -} - -@ffi.Packed(4) -final class __Reply__vm_allocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; -} - -final class __Reply__vm_behavior_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_copy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_deallocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_inherit_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_machine_attribute_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_machine_attribute_val_t() - external int value; -} - -@ffi.Packed(4) -final class __Reply__vm_map_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; -} - -final class __Reply__vm_map_exec_lockdown_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_map_page_query_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @integer_t() - external int disposition; - - @integer_t() - external int ref_count; -} - -@ffi.Packed(4) -final class __Reply__vm_map_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; -} - -final class __Reply__vm_mapped_pages_info_t extends ffi.Opaque {} - -final class __Reply__vm_msync_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_protect_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_purgable_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Int() - external int state; -} - -final class __Reply__vm_read_list_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Array.multi([256]) - external ffi.Array data_list; -} - -@ffi.Packed(4) -final class __Reply__vm_read_overwrite_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_size_t() - external int outsize; -} - -final class __Reply__vm_read_t extends ffi.Opaque {} - -final class __Reply__vm_region_64_t extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Reply__vm_region_recurse_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @natural_t() - external int nesting_depth; - - @mach_msg_type_number_t() - external int infoCnt; - - @ffi.Array.multi([19]) - external ffi.Array info; -} - -@ffi.Packed(4) -final class __Reply__vm_region_recurse_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @natural_t() - external int nesting_depth; - - @mach_msg_type_number_t() - external int infoCnt; - - @ffi.Array.multi([19]) - external ffi.Array info; -} - -final class __Reply__vm_region_t extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Reply__vm_remap_new_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int target_address; - - @vm_prot_t() - external int cur_protection; - - @vm_prot_t() - external int max_protection; -} - -@ffi.Packed(4) -final class __Reply__vm_remap_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int target_address; - - @vm_prot_t() - external int cur_protection; - - @vm_prot_t() - external int max_protection; -} - -final class __Reply__vm_wire_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_write_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __RequestUnion__clock_priv_subsystem extends ffi.Union { - external __Request__clock_set_time_t Request_clock_set_time; - - external __Request__clock_set_attributes_t Request_clock_set_attributes; -} - -final class __RequestUnion__host_priv_subsystem extends ffi.Opaque {} - -final class __RequestUnion__host_security_subsystem extends ffi.Opaque {} - -final class __RequestUnion__mach_host_subsystem extends ffi.Opaque {} - -final class __RequestUnion__mach_port_subsystem extends ffi.Opaque {} - -final class __RequestUnion__processor_set_subsystem extends ffi.Union { - external __Request__processor_set_statistics_t - Request_processor_set_statistics; - - external __Request__processor_set_destroy_t Request_processor_set_destroy; - - external __Request__processor_set_max_priority_t - Request_processor_set_max_priority; - - external __Request__processor_set_policy_enable_t - Request_processor_set_policy_enable; - - external __Request__processor_set_policy_disable_t - Request_processor_set_policy_disable; - - external __Request__processor_set_tasks_t Request_processor_set_tasks; - - external __Request__processor_set_threads_t Request_processor_set_threads; - - external __Request__processor_set_policy_control_t - Request_processor_set_policy_control; - - external __Request__processor_set_stack_usage_t - Request_processor_set_stack_usage; - - external __Request__processor_set_info_t Request_processor_set_info; - - external __Request__processor_set_tasks_with_flavor_t - Request_processor_set_tasks_with_flavor; -} - -final class __RequestUnion__processor_subsystem extends ffi.Opaque {} - -final class __RequestUnion__task_subsystem extends ffi.Opaque {} - -final class __RequestUnion__thread_act_subsystem extends ffi.Opaque {} - -final class __RequestUnion__vm_map_subsystem extends ffi.Opaque {} - -final class __Request___host_page_size_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__act_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int flavor; - - @mach_msg_type_number_t() - external int old_stateCnt; -} - -final class __Request__act_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int flavor; - - @mach_msg_type_number_t() - external int new_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array new_state; -} - -final class __Request__clock_set_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @clock_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int clock_attrCnt; - - @ffi.Array.multi([1]) - external ffi.Array clock_attr; -} - -final class __Request__clock_set_time_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - external mach_timespec_t new_time; -} - -final class __Request__etap_trace_thread_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @boolean_t() - external int trace_status; -} - -final class __Request__host_check_multiuser_mode_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_create_mach_voucher_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_msg_type_number_t() - external int recipesCnt; - - @ffi.Array.multi([5120]) - external ffi.Array recipes; -} - -final class __Request__host_default_memory_manager_t extends ffi.Opaque {} - -final class __Request__host_get_UNDServer_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_get_atm_diagnostic_flag_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_get_boot_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_get_clock_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @clock_id_t() - external int clock_id; -} - -final class __Request__host_get_clock_service_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @clock_id_t() - external int clock_id; -} - -final class __Request__host_get_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @exception_mask_t() - external int exception_mask; -} - -final class __Request__host_get_io_main_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_get_multiuser_config_flags_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_get_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int node; - - @ffi.Int() - external int which; -} - -final class __Request__host_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @host_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int host_info_outCnt; -} - -final class __Request__host_kernel_version_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_lockgroup_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_priv_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @host_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int host_info_outCnt; -} - -final class __Request__host_processor_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @processor_flavor_t() - external int flavor; -} - -final class __Request__host_processor_set_priv_t extends ffi.Opaque {} - -final class __Request__host_processor_sets_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_processors_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_reboot_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int options; -} - -final class __Request__host_register_mach_voucher_attr_manager_t - extends ffi.Opaque {} - -final class __Request__host_register_well_known_mach_voucher_attr_manager_t - extends ffi.Opaque {} - -final class __Request__host_request_notification_t extends ffi.Opaque {} - -final class __Request__host_security_create_task_token_t extends ffi.Opaque {} - -final class __Request__host_security_set_task_token_t extends ffi.Opaque {} - -final class __Request__host_set_UNDServer_t extends ffi.Opaque {} - -final class __Request__host_set_atm_diagnostic_flag_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Uint32() - external int diagnostic_flag; -} - -final class __Request__host_set_exception_ports_t extends ffi.Opaque {} - -final class __Request__host_set_multiuser_config_flags_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Uint32() - external int multiuser_flags; -} - -final class __Request__host_set_special_port_t extends ffi.Opaque {} - -final class __Request__host_statistics64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @host_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int host_info64_outCnt; -} - -final class __Request__host_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @host_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int host_info_outCnt; -} - -final class __Request__host_swap_exception_ports_t extends ffi.Opaque {} - -final class __Request__host_virtual_physical_table_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__kext_request_t extends ffi.Opaque {} - -final class __Request__kmod_control_t extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Request__kmod_create_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int info; -} - -final class __Request__kmod_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kmod_t() - external int module; -} - -final class __Request__kmod_get_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__lock_set_create_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int n_ulocks; - - @ffi.Int() - external int policy; -} - -final class __Request__lock_set_destroy_t extends ffi.Opaque {} - -final class __Request__mach_make_memory_entry_64_t extends ffi.Opaque {} - -final class __Request__mach_make_memory_entry_t extends ffi.Opaque {} - -final class __Request__mach_memory_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__mach_memory_object_memory_entry_64_t - extends ffi.Opaque {} - -final class __Request__mach_memory_object_memory_entry_t extends ffi.Opaque {} - -final class __Request__mach_port_allocate_full_t extends ffi.Opaque {} - -final class __Request__mach_port_allocate_name_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_right_t() - external int right; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_allocate_qos_t extends ffi.Opaque {} - -final class __Request__mach_port_allocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_right_t() - external int right; -} - -final class __Request__mach_port_assert_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int infoCnt; - - @ffi.Array.multi([17]) - external ffi.Array info; -} - -final class __Request__mach_port_construct_t extends ffi.Opaque {} - -final class __Request__mach_port_deallocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -@ffi.Packed(4) -final class __Request__mach_port_destruct_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_delta_t() - external int srdelta; - - @mach_port_context_t() - external int guard; -} - -final class __Request__mach_port_dnrequest_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_extract_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_name_t() - external int pset; -} - -final class __Request__mach_port_extract_right_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_msg_type_name_t() - external int msgt_name; -} - -final class __Request__mach_port_get_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int port_info_outCnt; -} - -final class __Request__mach_port_get_context_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_get_refs_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_right_t() - external int right; -} - -final class __Request__mach_port_get_service_port_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_get_set_status_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_get_srights_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -@ffi.Packed(4) -final class __Request__mach_port_guard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_context_t() - external int guard; - - @boolean_t() - external int strict; -} - -@ffi.Packed(4) -final class __Request__mach_port_guard_with_flags_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_context_t() - external int guard; - - @ffi.Uint64() - external int flags; -} - -final class __Request__mach_port_insert_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_name_t() - external int pset; -} - -final class __Request__mach_port_insert_right_t extends ffi.Opaque {} - -final class __Request__mach_port_is_connection_for_service_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int connection_port; - - @mach_port_name_t() - external int service_port; -} - -final class __Request__mach_port_kernel_object_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_kobject_description_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_kobject_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_mod_refs_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_right_t() - external int right; - - @mach_port_delta_t() - external int delta; -} - -final class __Request__mach_port_move_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int member; - - @mach_port_name_t() - external int after; -} - -final class __Request__mach_port_names_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__mach_port_peek_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_msg_trailer_type_t() - external int trailer_type; - - @mach_port_seqno_t() - external int request_seqnop; - - @mach_msg_type_number_t() - external int trailer_infopCnt; -} - -final class __Request__mach_port_rename_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int old_name; - - @mach_port_name_t() - external int new_name; -} - -final class __Request__mach_port_request_notification_t extends ffi.Opaque {} - -final class __Request__mach_port_set_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int port_infoCnt; - - @ffi.Array.multi([17]) - external ffi.Array port_info; -} - -@ffi.Packed(4) -final class __Request__mach_port_set_context_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_context_t() - external int context; -} - -final class __Request__mach_port_set_mscount_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_mscount_t() - external int mscount; -} - -final class __Request__mach_port_set_seqno_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_seqno_t() - external int seqno; -} - -final class __Request__mach_port_space_basic_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__mach_port_space_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -@ffi.Packed(4) -final class __Request__mach_port_swap_guard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_context_t() - external int old_guard; - - @mach_port_context_t() - external int new_guard; -} - -final class __Request__mach_port_type_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -@ffi.Packed(4) -final class __Request__mach_port_unguard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_context_t() - external int guard; -} - -final class __Request__mach_ports_lookup_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__mach_ports_register_t extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Request__mach_vm_region_info_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; -} - -@ffi.Packed(4) -final class __Request__mach_vm_region_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; -} - -final class __Request__mach_vm_wire_t extends ffi.Opaque {} - -final class __Request__mach_zone_info_for_zone_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - external mach_zone_name_t name; -} - -final class __Request__mach_zone_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_assign_t extends ffi.Opaque {} - -final class __Request__processor_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_msg_type_number_t() - external int processor_cmdCnt; - - @ffi.Array.multi([20]) - external ffi.Array processor_cmd; -} - -final class __Request__processor_exit_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_get_assignment_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @processor_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int processor_info_outCnt; -} - -final class __Request__processor_set_create_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_set_default_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_set_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_set_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int flavor; - - @mach_msg_type_number_t() - external int info_outCnt; -} - -final class __Request__processor_set_max_priority_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int max_priority; - - @boolean_t() - external int change_threads; -} - -final class __Request__processor_set_policy_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @processor_set_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @ffi.Array.multi([5]) - external ffi.Array policy_info; - - @boolean_t() - external int change; -} - -final class __Request__processor_set_policy_disable_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int policy; - - @boolean_t() - external int change_threads; -} - -final class __Request__processor_set_policy_enable_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int policy; -} - -final class __Request__processor_set_stack_usage_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_set_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @processor_set_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int info_outCnt; -} - -final class __Request__processor_set_tasks_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_set_tasks_with_flavor_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_task_flavor_t() - external int flavor; -} - -final class __Request__processor_set_threads_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_start_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__semaphore_create_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int policy; - - @ffi.Int() - external int value; -} - -final class __Request__semaphore_destroy_t extends ffi.Opaque {} - -final class __Request__task_assign_default_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @boolean_t() - external int assign_threads; -} - -final class __Request__task_assign_t extends ffi.Opaque {} - -final class __Request__task_create_identity_token_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_create_t extends ffi.Opaque {} - -final class __Request__task_dyld_process_info_notify_deregister_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int notify; -} - -final class __Request__task_dyld_process_info_notify_register_t - extends ffi.Opaque {} - -final class __Request__task_generate_corpse_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_get_assignment_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_get_dyld_image_infos_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_get_emulation_vector_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_get_exc_guard_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_get_exception_ports_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @exception_mask_t() - external int exception_mask; -} - -final class __Request__task_get_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @exception_mask_t() - external int exception_mask; -} - -final class __Request__task_get_mach_voucher_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_voucher_selector_t() - external int which; -} - -final class __Request__task_get_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int which_port; -} - -final class __Request__task_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int old_stateCnt; -} - -final class __Request__task_identity_token_get_task_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_flavor_t() - external int flavor; -} - -final class __Request__task_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int task_info_outCnt; -} - -final class __Request__task_inspect_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_inspect_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int info_outCnt; -} - -final class __Request__task_map_corpse_info_64_t extends ffi.Opaque {} - -final class __Request__task_map_corpse_info_t extends ffi.Opaque {} - -final class __Request__task_map_kcdata_object_64_t extends ffi.Opaque {} - -final class __Request__task_policy_get_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_policy_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @boolean_t() - external int get_default; -} - -final class __Request__task_policy_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_policy_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @ffi.Array.multi([16]) - external ffi.Array policy_info; -} - -final class __Request__task_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @policy_t() - external int policy; - - @mach_msg_type_number_t() - external int baseCnt; - - @ffi.Array.multi([5]) - external ffi.Array base; - - @boolean_t() - external int set_limit; - - @boolean_t() - external int change; -} - -final class __Request__task_purgable_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_register_dyld_get_process_state_t - extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_register_dyld_image_infos_t extends ffi.Opaque {} - -final class __Request__task_register_dyld_set_dyld_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Uint8() - external int dyld_state; - - @ffi.Array.multi([3]) - external ffi.Array dyld_statePad; -} - -@ffi.Packed(4) -final class __Request__task_register_dyld_shared_cache_image_info_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - external dyld_kernel_image_info_t dyld_cache_image; - - @boolean_t() - external int no_cache; - - @boolean_t() - external int private_cache; -} - -final class __Request__task_register_hardened_exception_handler_t - extends ffi.Opaque {} - -final class __Request__task_resume2_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_resume_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_sample_t extends ffi.Opaque {} - -final class __Request__task_set_corpse_forking_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_corpse_forking_behavior_t() - external int behavior; -} - -@ffi.Packed(4) -final class __Request__task_set_emulation_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int routine_entry_pt; - - @ffi.Int() - external int routine_number; -} - -final class __Request__task_set_emulation_vector_t extends ffi.Opaque {} - -final class __Request__task_set_exc_guard_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_exc_guard_behavior_t() - external int behavior; -} - -final class __Request__task_set_exception_ports_t extends ffi.Opaque {} - -final class __Request__task_set_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int task_info_inCnt; - - @ffi.Array.multi([94]) - external ffi.Array task_info_in; -} - -final class __Request__task_set_mach_voucher_t extends ffi.Opaque {} - -final class __Request__task_set_phys_footprint_limit_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int new_limit; -} - -final class __Request__task_set_policy_t extends ffi.Opaque {} - -final class __Request__task_set_port_space_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int table_entries; -} - -@ffi.Packed(4) -final class __Request__task_set_ras_pc_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int basepc; - - @vm_address_t() - external int boundspc; -} - -final class __Request__task_set_special_port_t extends ffi.Opaque {} - -final class __Request__task_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int new_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array new_state; -} - -final class __Request__task_suspend2_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_suspend_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_swap_exception_ports_t extends ffi.Opaque {} - -final class __Request__task_swap_mach_voucher_t extends ffi.Opaque {} - -final class __Request__task_terminate_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_test_async_upcall_propagation_t - extends ffi.Opaque {} - -final class __Request__task_test_sync_upcall_t extends ffi.Opaque {} - -final class __Request__task_threads_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_unregister_dyld_image_infos_t extends ffi.Opaque {} - -final class __Request__task_wire_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @boolean_t() - external int must_wire; -} - -final class __Request__task_zone_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_abort_safely_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_abort_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_adopt_exception_handler_t extends ffi.Opaque {} - -final class __Request__thread_assign_default_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_assign_t extends ffi.Opaque {} - -final class __Request__thread_convert_thread_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int direction; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int in_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array in_state; - - @mach_msg_type_number_t() - external int out_stateCnt; -} - -final class __Request__thread_create_running_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int new_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array new_state; -} - -final class __Request__thread_create_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_depress_abort_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_get_assignment_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_get_exception_ports_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @exception_mask_t() - external int exception_mask; -} - -final class __Request__thread_get_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @exception_mask_t() - external int exception_mask; -} - -final class __Request__thread_get_mach_voucher_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_voucher_selector_t() - external int which; -} - -final class __Request__thread_get_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int which_port; -} - -final class __Request__thread_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int old_stateCnt; -} - -final class __Request__thread_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int thread_info_outCnt; -} - -final class __Request__thread_policy_get_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_policy_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @boolean_t() - external int get_default; -} - -final class __Request__thread_policy_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_policy_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @ffi.Array.multi([16]) - external ffi.Array policy_info; -} - -final class __Request__thread_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @policy_t() - external int policy; - - @mach_msg_type_number_t() - external int baseCnt; - - @ffi.Array.multi([5]) - external ffi.Array base; - - @boolean_t() - external int set_limit; -} - -final class __Request__thread_resume_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_sample_t extends ffi.Opaque {} - -final class __Request__thread_set_exception_ports_t extends ffi.Opaque {} - -final class __Request__thread_set_mach_voucher_t extends ffi.Opaque {} - -final class __Request__thread_set_policy_t extends ffi.Opaque {} - -final class __Request__thread_set_special_port_t extends ffi.Opaque {} - -final class __Request__thread_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int new_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array new_state; -} - -final class __Request__thread_suspend_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_swap_exception_ports_t extends ffi.Opaque {} - -final class __Request__thread_swap_mach_voucher_t extends ffi.Opaque {} - -final class __Request__thread_terminate_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_wire_t extends ffi.Opaque {} - -final class __Request__vm_allocate_cpm_t extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Request__vm_allocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @ffi.Int() - external int flags; -} - -@ffi.Packed(4) -final class __Request__vm_behavior_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_behavior_t() - external int new_behavior; -} - -@ffi.Packed(4) -final class __Request__vm_copy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int source_address; - - @vm_size_t() - external int size; - - @vm_address_t() - external int dest_address; -} - -@ffi.Packed(4) -final class __Request__vm_deallocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; -} - -@ffi.Packed(4) -final class __Request__vm_inherit_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_inherit_t() - external int new_inheritance; -} - -@ffi.Packed(4) -final class __Request__vm_machine_attribute_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_machine_attribute_t() - external int attribute; - - @vm_machine_attribute_val_t() - external int value; -} - -final class __Request__vm_map_64_t extends ffi.Opaque {} - -final class __Request__vm_map_exec_lockdown_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -@ffi.Packed(4) -final class __Request__vm_map_page_query_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_offset_t() - external int offset; -} - -final class __Request__vm_map_t extends ffi.Opaque {} - -final class __Request__vm_mapped_pages_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -@ffi.Packed(4) -final class __Request__vm_msync_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_sync_t() - external int sync_flags; -} - -@ffi.Packed(4) -final class __Request__vm_protect_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @boolean_t() - external int set_maximum; - - @vm_prot_t() - external int new_protection; -} - -@ffi.Packed(4) -final class __Request__vm_purgable_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_purgable_t() - external int control; - - @ffi.Int() - external int state; -} - -final class __Request__vm_read_list_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Array.multi([256]) - external ffi.Array data_list; - - @natural_t() - external int count; -} - -@ffi.Packed(4) -final class __Request__vm_read_overwrite_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_address_t() - external int data; -} - -@ffi.Packed(4) -final class __Request__vm_read_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; -} - -@ffi.Packed(4) -final class __Request__vm_region_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_region_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int infoCnt; -} - -@ffi.Packed(4) -final class __Request__vm_region_recurse_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @natural_t() - external int nesting_depth; - - @mach_msg_type_number_t() - external int infoCnt; -} - -@ffi.Packed(4) -final class __Request__vm_region_recurse_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @natural_t() - external int nesting_depth; - - @mach_msg_type_number_t() - external int infoCnt; -} - -@ffi.Packed(4) -final class __Request__vm_region_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_region_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int infoCnt; -} - -final class __Request__vm_remap_new_t extends ffi.Opaque {} - -final class __Request__vm_remap_t extends ffi.Opaque {} - -final class __Request__vm_wire_t extends ffi.Opaque {} - -final class __Request__vm_write_t extends ffi.Opaque {} - -final class __SKIndex extends ffi.Opaque {} - -final class __SKIndexDocumentIterator extends ffi.Opaque {} - -final class __SKSearch extends ffi.Opaque {} - -final class __SKSearchGroup extends ffi.Opaque {} - -final class __SKSearchResults extends ffi.Opaque {} - -final class __SKSummary extends ffi.Opaque {} - -final class __SecACL extends ffi.Opaque {} - -final class __SecAccess extends ffi.Opaque {} - -final class __SecAccessControl extends ffi.Opaque {} - -final class __SecCertificate extends ffi.Opaque {} - -final class __SecCode extends ffi.Opaque {} - -final class __SecIdentity extends ffi.Opaque {} - -final class __SecKey extends ffi.Opaque {} - -final class __SecKeychain extends ffi.Opaque {} - -final class __SecKeychainItem extends ffi.Opaque {} - -final class __SecKeychainSearch extends ffi.Opaque {} - -final class __SecPassword extends ffi.Opaque {} - -final class __SecPolicy extends ffi.Opaque {} - -final class __SecRandom extends ffi.Opaque {} - -final class __SecRequirement extends ffi.Opaque {} - -final class __SecTask extends ffi.Opaque {} - -final class __SecTrust extends ffi.Opaque {} - -final class __SecTrustedApplication extends ffi.Opaque {} - -final class __arm_legacy_debug_state extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bcr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wcr; -} - -final class __arm_pagein_state extends ffi.Struct { - @ffi.Int() - external int __pagein_error; -} - -typedef __builtin_va_list = ffi.Pointer; - -final class __darwin_arm_cpmu_state64 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __ctrs; -} - -final class __darwin_arm_debug_state32 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bcr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wcr; - - @__uint64_t() - external int __mdscr_el1; -} - -final class __darwin_arm_debug_state64 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __bvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __bcr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __wvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __wcr; - - @__uint64_t() - external int __mdscr_el1; -} - -final class __darwin_arm_exception_state extends ffi.Struct { - @__uint32_t() - external int __exception; - - @__uint32_t() - external int __fsr; - - @__uint32_t() - external int __far; -} - -final class __darwin_arm_exception_state64 extends ffi.Struct { - @__uint64_t() - external int __far; - - @__uint32_t() - external int __esr; - - @__uint32_t() - external int __exception; -} - -final class __darwin_arm_exception_state64_v2 extends ffi.Struct { - @__uint64_t() - external int __far; - - @__uint64_t() - external int __esr; -} - -final class __darwin_arm_neon_state extends ffi.Opaque {} - -final class __darwin_arm_neon_state64 extends ffi.Opaque {} - -final class __darwin_arm_sme2_state extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array __zt0; -} - -final class __darwin_arm_sme_state extends ffi.Struct { - @__uint64_t() - external int __svcr; - - @__uint64_t() - external int __tpidr2_el0; - - @__uint16_t() - external int __svl_b; -} - -final class __darwin_arm_sme_za_state extends ffi.Struct { - @ffi.Array.multi([4096]) - external ffi.Array __za; -} - -final class __darwin_arm_sve_p_state extends ffi.Struct { - @ffi.Array.multi([16, 32]) - external ffi.Array> __p; -} - -final class __darwin_arm_sve_z_state extends ffi.Struct { - @ffi.Array.multi([16, 256]) - external ffi.Array> __z; -} - -final class __darwin_arm_thread_state extends ffi.Struct { - @ffi.Array.multi([13]) - external ffi.Array<__uint32_t> __r; - - @__uint32_t() - external int __sp; - - @__uint32_t() - external int __lr; - - @__uint32_t() - external int __pc; - - @__uint32_t() - external int __cpsr; -} - -final class __darwin_arm_thread_state64 extends ffi.Struct { - @ffi.Array.multi([29]) - external ffi.Array<__uint64_t> __x; - - @__uint64_t() - external int __fp; - - @__uint64_t() - external int __lr; - - @__uint64_t() - external int __sp; - - @__uint64_t() - external int __pc; - - @__uint32_t() - external int __cpsr; - - @__uint32_t() - external int __pad; -} - -final class __darwin_arm_vfp_state extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array<__uint32_t> __r; - - @__uint32_t() - external int __fpscr; -} - -typedef __darwin_blkcnt_t = __int64_t; -typedef __darwin_blksize_t = __int32_t; -typedef __darwin_clock_t = ffi.UnsignedLong; -typedef Dart__darwin_clock_t = int; -typedef __darwin_ct_rune_t = ffi.Int; -typedef Dart__darwin_ct_rune_t = int; -typedef __darwin_dev_t = __int32_t; -typedef __darwin_fsblkcnt_t = ffi.UnsignedInt; -typedef Dart__darwin_fsblkcnt_t = int; -typedef __darwin_fsfilcnt_t = ffi.UnsignedInt; -typedef Dart__darwin_fsfilcnt_t = int; -typedef __darwin_gid_t = __uint32_t; -typedef __darwin_id_t = __uint32_t; -typedef __darwin_ino64_t = __uint64_t; -typedef __darwin_ino_t = __darwin_ino64_t; -typedef __darwin_intptr_t = ffi.Long; -typedef Dart__darwin_intptr_t = int; -typedef __darwin_mach_port_name_t = __darwin_natural_t; -typedef __darwin_mach_port_t = __darwin_mach_port_name_t; -typedef __darwin_mbstate_t = __mbstate_t; - -final class __darwin_mcontext32 extends ffi.Struct { - external __darwin_arm_exception_state __es; - - external __darwin_arm_thread_state __ss; - - external __darwin_arm_vfp_state __fs; -} - -final class __darwin_mcontext64 extends ffi.Opaque {} - -typedef __darwin_mode_t = __uint16_t; -typedef __darwin_natural_t = ffi.UnsignedInt; -typedef Dart__darwin_natural_t = int; -typedef __darwin_nl_item = ffi.Int; -typedef Dart__darwin_nl_item = int; -typedef __darwin_off_t = __int64_t; -typedef __darwin_pid_t = __int32_t; -typedef __darwin_pthread_attr_t = _opaque_pthread_attr_t; -typedef __darwin_pthread_cond_t = _opaque_pthread_cond_t; -typedef __darwin_pthread_condattr_t = _opaque_pthread_condattr_t; - -final class __darwin_pthread_handler_rec extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction)> - > - __routine; - - external ffi.Pointer __arg; - - external ffi.Pointer<__darwin_pthread_handler_rec> __next; -} - -typedef __darwin_pthread_key_t = ffi.UnsignedLong; -typedef Dart__darwin_pthread_key_t = int; -typedef __darwin_pthread_mutex_t = _opaque_pthread_mutex_t; -typedef __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t; -typedef __darwin_pthread_once_t = _opaque_pthread_once_t; -typedef __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t; -typedef __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t; -typedef __darwin_pthread_t = ffi.Pointer<_opaque_pthread_t>; -typedef __darwin_ptrdiff_t = ffi.Long; -typedef Dart__darwin_ptrdiff_t = int; -typedef __darwin_rune_t = __darwin_wchar_t; - -final class __darwin_sigaltstack extends ffi.Struct { - external ffi.Pointer ss_sp; - - @__darwin_size_t() - external int ss_size; - - @ffi.Int() - external int ss_flags; -} - -typedef __darwin_sigset_t = __uint32_t; -typedef __darwin_size_t = ffi.UnsignedLong; -typedef Dart__darwin_size_t = int; -typedef __darwin_socklen_t = __uint32_t; -typedef __darwin_ssize_t = ffi.Long; -typedef Dart__darwin_ssize_t = int; -typedef __darwin_suseconds_t = __int32_t; -typedef __darwin_time_t = ffi.Long; -typedef Dart__darwin_time_t = int; - -final class __darwin_ucontext extends ffi.Struct { - @ffi.Int() - external int uc_onstack; - - @__darwin_sigset_t() - external int uc_sigmask; - - external __darwin_sigaltstack uc_stack; - - external ffi.Pointer<__darwin_ucontext> uc_link; - - @__darwin_size_t() - external int uc_mcsize; - - external ffi.Pointer<__darwin_mcontext64> uc_mcontext; -} - -typedef __darwin_uid_t = __uint32_t; -typedef __darwin_useconds_t = __uint32_t; -typedef __darwin_va_list = __builtin_va_list; -typedef __darwin_wchar_t = ffi.Int; -typedef Dart__darwin_wchar_t = int; -typedef __darwin_wctrans_t = ffi.Int; -typedef Dart__darwin_wctrans_t = int; -typedef __darwin_wctype_t = __uint32_t; -typedef __darwin_wint_t = ffi.Int; -typedef Dart__darwin_wint_t = int; - -final class __double2 extends ffi.Struct { - @ffi.Double() - external double __sinval; - - @ffi.Double() - external double __cosval; -} - -final class __float2 extends ffi.Struct { - @ffi.Float() - external double __sinval; - - @ffi.Float() - external double __cosval; -} - -const int __fpcr_flush_to_zero = 16777216; - -const int __fpcr_trap_denormal = 32768; - -const int __fpcr_trap_divbyzero = 512; - -const int __fpcr_trap_inexact = 4096; - -const int __fpcr_trap_invalid = 256; - -const int __fpcr_trap_overflow = 1024; - -const int __fpcr_trap_underflow = 2048; - -const int __fpsr_saturation = 134217728; - -typedef __gnuc_va_list = __builtin_va_list; -typedef __int16_t = ffi.Short; -typedef Dart__int16_t = int; -typedef __int32_t = ffi.Int; -typedef Dart__int32_t = int; -typedef __int64_t = ffi.LongLong; -typedef Dart__int64_t = int; -typedef __int8_t = ffi.SignedChar; -typedef Dart__int8_t = int; - -final class __mbstate_t extends ffi.Union { - @ffi.Array.multi([128]) - external ffi.Array __mbstate8; - - @ffi.LongLong() - external int _mbstateL; -} - -@ffi.Packed(4) -final class __msfilterreq extends ffi.Struct { - @ffi.Uint32() - external int msfr_ifindex; - - @ffi.Uint32() - external int msfr_fmode; - - @ffi.Uint32() - external int msfr_nsrcs; - - @ffi.Uint32() - external int __msfr_align; - - external sockaddr_storage msfr_group; - - external ffi.Pointer msfr_srcs; -} - -final class __sFILE extends ffi.Struct { - external ffi.Pointer _p; - - @ffi.Int() - external int _r; - - @ffi.Int() - external int _w; - - @ffi.Short() - external int _flags; - - @ffi.Short() - external int _file; - - external __sbuf _bf; - - @ffi.Int() - external int _lbfsize; - - external ffi.Pointer _cookie; - - external ffi.Pointer< - ffi.NativeFunction)> - > - _close$1; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - > - _read$1; - - external ffi.Pointer< - ffi.NativeFunction, fpos_t, ffi.Int)> - > - _seek; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - > - _write$1; - - external __sbuf _ub; - - external ffi.Pointer<__sFILEX> _extra; - - @ffi.Int() - external int _ur; - - @ffi.Array.multi([3]) - external ffi.Array _ubuf; - - @ffi.Array.multi([1]) - external ffi.Array _nbuf; - - external __sbuf _lb; - - @ffi.Int() - external int _blksize; - - @fpos_t() - external int _offset; -} - -final class __sFILEX extends ffi.Opaque {} - -final class __sbuf extends ffi.Struct { - external ffi.Pointer _base; - - @ffi.Int() - external int _size; -} - -final class __sigaction extends ffi.Struct { - external __sigaction_u __sigaction_u$1; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - > - sa_tramp; - - @sigset_t() - external int sa_mask; - - @ffi.Int() - external int sa_flags; -} - -final class __sigaction_u extends ffi.Union { - external ffi.Pointer> - __sa_handler; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Int, ffi.Pointer<__siginfo>, ffi.Pointer) - > - > - __sa_sigaction; -} - -final class __siginfo extends ffi.Struct { - @ffi.Int() - external int si_signo; - - @ffi.Int() - external int si_errno; - - @ffi.Int() - external int si_code; - - @pid_t() - external int si_pid; - - @uid_t() - external int si_uid; - - @ffi.Int() - external int si_status; - - external ffi.Pointer si_addr; - - external sigval si_value; - - @ffi.Long() - external int si_band; - - @ffi.Array.multi([7]) - external ffi.Array __pad; -} - -final class __sockaddr_header extends ffi.Struct { - @__uint8_t() - external int sa_len; - - @sa_family_t() - external int sa_family; -} - -typedef __uint16_t = ffi.UnsignedShort; -typedef Dart__uint16_t = int; -typedef __uint32_t = ffi.UnsignedInt; -typedef Dart__uint32_t = int; -typedef __uint64_t = ffi.UnsignedLongLong; -typedef Dart__uint64_t = int; -typedef __uint8_t = ffi.UnsignedChar; -typedef Dart__uint8_t = int; - -final class _acl extends ffi.Opaque {} - -final class _acl_entry extends ffi.Opaque {} - -final class _acl_flagset extends ffi.Opaque {} - -final class _acl_permset extends ffi.Opaque {} - -final class _cl_device_id extends ffi.Opaque {} - -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_AVAudioPlayer', -) -external ffi.Pointer _class_AVAudioPlayer_raw; -final _class_AVAudioPlayer = objc.getClass( - "AVAudioPlayer", - () => ffi.Native.addressOf>( - _class_AVAudioPlayer_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_AVAudioSession', -) -external ffi.Pointer _class_AVAudioSession_raw; -final _class_AVAudioSession = objc.getClass( - "AVAudioSession", - () => ffi.Native.addressOf>( - _class_AVAudioSession_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_AVAudioSessionPortDescription', -) -external ffi.Pointer -_class_AVAudioSessionPortDescription_raw; -final _class_AVAudioSessionPortDescription = objc.getClass( - "AVAudioSessionPortDescription", - () => ffi.Native.addressOf>( - _class_AVAudioSessionPortDescription_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSArray') -external ffi.Pointer _class_NSArray_raw; -final _class_NSArray = objc.getClass( - "NSArray", - () => ffi.Native.addressOf>( - _class_NSArray_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSAttributedString', -) -external ffi.Pointer _class_NSAttributedString_raw; -final _class_NSAttributedString = objc.getClass( - "NSAttributedString", - () => ffi.Native.addressOf>( - _class_NSAttributedString_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSBundle') -external ffi.Pointer _class_NSBundle_raw; -final _class_NSBundle = objc.getClass( - "NSBundle", - () => ffi.Native.addressOf>( - _class_NSBundle_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSCharacterSet', -) -external ffi.Pointer _class_NSCharacterSet_raw; -final _class_NSCharacterSet = objc.getClass( - "NSCharacterSet", - () => ffi.Native.addressOf>( - _class_NSCharacterSet_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSCoder') -external ffi.Pointer _class_NSCoder_raw; -final _class_NSCoder = objc.getClass( - "NSCoder", - () => ffi.Native.addressOf>( - _class_NSCoder_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSData') -external ffi.Pointer _class_NSData_raw; -final _class_NSData = objc.getClass( - "NSData", - () => ffi.Native.addressOf>( - _class_NSData_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSDate') -external ffi.Pointer _class_NSDate_raw; -final _class_NSDate = objc.getClass( - "NSDate", - () => ffi.Native.addressOf>( - _class_NSDate_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSDateFormatter', -) -external ffi.Pointer _class_NSDateFormatter_raw; -final _class_NSDateFormatter = objc.getClass( - "NSDateFormatter", - () => ffi.Native.addressOf>( - _class_NSDateFormatter_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSDictionary', -) -external ffi.Pointer _class_NSDictionary_raw; -final _class_NSDictionary = objc.getClass( - "NSDictionary", - () => ffi.Native.addressOf>( - _class_NSDictionary_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSException', -) -external ffi.Pointer _class_NSException_raw; -final _class_NSException = objc.getClass( - "NSException", - () => ffi.Native.addressOf>( - _class_NSException_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSFileHandle', -) -external ffi.Pointer _class_NSFileHandle_raw; -final _class_NSFileHandle = objc.getClass( - "NSFileHandle", - () => ffi.Native.addressOf>( - _class_NSFileHandle_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSFileManager', -) -external ffi.Pointer _class_NSFileManager_raw; -final _class_NSFileManager = objc.getClass( - "NSFileManager", - () => ffi.Native.addressOf>( - _class_NSFileManager_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSFileWrapper', -) -external ffi.Pointer _class_NSFileWrapper_raw; -final _class_NSFileWrapper = objc.getClass( - "NSFileWrapper", - () => ffi.Native.addressOf>( - _class_NSFileWrapper_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSHTTPCookieStorage', -) -external ffi.Pointer _class_NSHTTPCookieStorage_raw; -final _class_NSHTTPCookieStorage = objc.getClass( - "NSHTTPCookieStorage", - () => ffi.Native.addressOf>( - _class_NSHTTPCookieStorage_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSIndexPath', -) -external ffi.Pointer _class_NSIndexPath_raw; -final _class_NSIndexPath = objc.getClass( - "NSIndexPath", - () => ffi.Native.addressOf>( - _class_NSIndexPath_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSInflectionRule', -) -external ffi.Pointer _class_NSInflectionRule_raw; -final _class_NSInflectionRule = objc.getClass( - "NSInflectionRule", - () => ffi.Native.addressOf>( - _class_NSInflectionRule_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSInputStream', -) -external ffi.Pointer _class_NSInputStream_raw; -final _class_NSInputStream = objc.getClass( - "NSInputStream", - () => ffi.Native.addressOf>( - _class_NSInputStream_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSItemProvider', -) -external ffi.Pointer _class_NSItemProvider_raw; -final _class_NSItemProvider = objc.getClass( - "NSItemProvider", - () => ffi.Native.addressOf>( - _class_NSItemProvider_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSLocale') -external ffi.Pointer _class_NSLocale_raw; -final _class_NSLocale = objc.getClass( - "NSLocale", - () => ffi.Native.addressOf>( - _class_NSLocale_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMorphology', -) -external ffi.Pointer _class_NSMorphology_raw; -final _class_NSMorphology = objc.getClass( - "NSMorphology", - () => ffi.Native.addressOf>( - _class_NSMorphology_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableArray', -) -external ffi.Pointer _class_NSMutableArray_raw; -final _class_NSMutableArray = objc.getClass( - "NSMutableArray", - () => ffi.Native.addressOf>( - _class_NSMutableArray_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableAttributedString', -) -external ffi.Pointer _class_NSMutableAttributedString_raw; -final _class_NSMutableAttributedString = objc.getClass( - "NSMutableAttributedString", - () => ffi.Native.addressOf>( - _class_NSMutableAttributedString_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableData', -) -external ffi.Pointer _class_NSMutableData_raw; -final _class_NSMutableData = objc.getClass( - "NSMutableData", - () => ffi.Native.addressOf>( - _class_NSMutableData_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableDictionary', -) -external ffi.Pointer _class_NSMutableDictionary_raw; -final _class_NSMutableDictionary = objc.getClass( - "NSMutableDictionary", - () => ffi.Native.addressOf>( - _class_NSMutableDictionary_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableOrderedSet', -) -external ffi.Pointer _class_NSMutableOrderedSet_raw; -final _class_NSMutableOrderedSet = objc.getClass( - "NSMutableOrderedSet", - () => ffi.Native.addressOf>( - _class_NSMutableOrderedSet_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableSet', -) -external ffi.Pointer _class_NSMutableSet_raw; -final _class_NSMutableSet = objc.getClass( - "NSMutableSet", - () => ffi.Native.addressOf>( - _class_NSMutableSet_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableString', -) -external ffi.Pointer _class_NSMutableString_raw; -final _class_NSMutableString = objc.getClass( - "NSMutableString", - () => ffi.Native.addressOf>( - _class_NSMutableString_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableURLRequest', -) -external ffi.Pointer _class_NSMutableURLRequest_raw; -final _class_NSMutableURLRequest = objc.getClass( - "NSMutableURLRequest", - () => ffi.Native.addressOf>( - _class_NSMutableURLRequest_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSNotification', -) -external ffi.Pointer _class_NSNotification_raw; -final _class_NSNotification = objc.getClass( - "NSNotification", - () => ffi.Native.addressOf>( - _class_NSNotification_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSNumber') -external ffi.Pointer _class_NSNumber_raw; -final _class_NSNumber = objc.getClass( - "NSNumber", - () => ffi.Native.addressOf>( - _class_NSNumber_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSNumberFormatter', -) -external ffi.Pointer _class_NSNumberFormatter_raw; -final _class_NSNumberFormatter = objc.getClass( - "NSNumberFormatter", - () => ffi.Native.addressOf>( - _class_NSNumberFormatter_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSObject') -external ffi.Pointer _class_NSObject_raw; -final _class_NSObject = objc.getClass( - "NSObject", - () => ffi.Native.addressOf>( - _class_NSObject_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSOperationQueue', -) -external ffi.Pointer _class_NSOperationQueue_raw; -final _class_NSOperationQueue = objc.getClass( - "NSOperationQueue", - () => ffi.Native.addressOf>( - _class_NSOperationQueue_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSOrderedSet', -) -external ffi.Pointer _class_NSOrderedSet_raw; -final _class_NSOrderedSet = objc.getClass( - "NSOrderedSet", - () => ffi.Native.addressOf>( - _class_NSOrderedSet_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSOrthography', -) -external ffi.Pointer _class_NSOrthography_raw; -final _class_NSOrthography = objc.getClass( - "NSOrthography", - () => ffi.Native.addressOf>( - _class_NSOrthography_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSOutputStream', -) -external ffi.Pointer _class_NSOutputStream_raw; -final _class_NSOutputStream = objc.getClass( - "NSOutputStream", - () => ffi.Native.addressOf>( - _class_NSOutputStream_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSPointerArray', -) -external ffi.Pointer _class_NSPointerArray_raw; -final _class_NSPointerArray = objc.getClass( - "NSPointerArray", - () => ffi.Native.addressOf>( - _class_NSPointerArray_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSProcessInfo', -) -external ffi.Pointer _class_NSProcessInfo_raw; -final _class_NSProcessInfo = objc.getClass( - "NSProcessInfo", - () => ffi.Native.addressOf>( - _class_NSProcessInfo_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSProtocolChecker', -) -external ffi.Pointer _class_NSProtocolChecker_raw; -final _class_NSProtocolChecker = objc.getClass( - "NSProtocolChecker", - () => ffi.Native.addressOf>( - _class_NSProtocolChecker_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSRegularExpression', -) -external ffi.Pointer _class_NSRegularExpression_raw; -final _class_NSRegularExpression = objc.getClass( - "NSRegularExpression", - () => ffi.Native.addressOf>( - _class_NSRegularExpression_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSRunLoop') -external ffi.Pointer _class_NSRunLoop_raw; -final _class_NSRunLoop = objc.getClass( - "NSRunLoop", - () => ffi.Native.addressOf>( - _class_NSRunLoop_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSScanner') -external ffi.Pointer _class_NSScanner_raw; -final _class_NSScanner = objc.getClass( - "NSScanner", - () => ffi.Native.addressOf>( - _class_NSScanner_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSScriptClassDescription', -) -external ffi.Pointer _class_NSScriptClassDescription_raw; -final _class_NSScriptClassDescription = objc.getClass( - "NSScriptClassDescription", - () => ffi.Native.addressOf>( - _class_NSScriptClassDescription_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSSet') -external ffi.Pointer _class_NSSet_raw; -final _class_NSSet = objc.getClass( - "NSSet", - () => ffi.Native.addressOf>( - _class_NSSet_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSStream') -external ffi.Pointer _class_NSStream_raw; -final _class_NSStream = objc.getClass( - "NSStream", - () => ffi.Native.addressOf>( - _class_NSStream_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSString') -external ffi.Pointer _class_NSString_raw; -final _class_NSString = objc.getClass( - "NSString", - () => ffi.Native.addressOf>( - _class_NSString_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSTask') -external ffi.Pointer _class_NSTask_raw; -final _class_NSTask = objc.getClass( - "NSTask", - () => ffi.Native.addressOf>( - _class_NSTask_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSTextCheckingResult', -) -external ffi.Pointer _class_NSTextCheckingResult_raw; -final _class_NSTextCheckingResult = objc.getClass( - "NSTextCheckingResult", - () => ffi.Native.addressOf>( - _class_NSTextCheckingResult_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSTimeZone', -) -external ffi.Pointer _class_NSTimeZone_raw; -final _class_NSTimeZone = objc.getClass( - "NSTimeZone", - () => ffi.Native.addressOf>( - _class_NSTimeZone_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSURL') -external ffi.Pointer _class_NSURL_raw; -final _class_NSURL = objc.getClass( - "NSURL", - () => ffi.Native.addressOf>( - _class_NSURL_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLCache', -) -external ffi.Pointer _class_NSURLCache_raw; -final _class_NSURLCache = objc.getClass( - "NSURLCache", - () => ffi.Native.addressOf>( - _class_NSURLCache_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLConnection', -) -external ffi.Pointer _class_NSURLConnection_raw; -final _class_NSURLConnection = objc.getClass( - "NSURLConnection", - () => ffi.Native.addressOf>( - _class_NSURLConnection_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLCredential', -) -external ffi.Pointer _class_NSURLCredential_raw; -final _class_NSURLCredential = objc.getClass( - "NSURLCredential", - () => ffi.Native.addressOf>( - _class_NSURLCredential_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLCredentialStorage', -) -external ffi.Pointer _class_NSURLCredentialStorage_raw; -final _class_NSURLCredentialStorage = objc.getClass( - "NSURLCredentialStorage", - () => ffi.Native.addressOf>( - _class_NSURLCredentialStorage_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLProtectionSpace', -) -external ffi.Pointer _class_NSURLProtectionSpace_raw; -final _class_NSURLProtectionSpace = objc.getClass( - "NSURLProtectionSpace", - () => ffi.Native.addressOf>( - _class_NSURLProtectionSpace_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLProtocol', -) -external ffi.Pointer _class_NSURLProtocol_raw; -final _class_NSURLProtocol = objc.getClass( - "NSURLProtocol", - () => ffi.Native.addressOf>( - _class_NSURLProtocol_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLRequest', -) -external ffi.Pointer _class_NSURLRequest_raw; -final _class_NSURLRequest = objc.getClass( - "NSURLRequest", - () => ffi.Native.addressOf>( - _class_NSURLRequest_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLSession', -) -external ffi.Pointer _class_NSURLSession_raw; -final _class_NSURLSession = objc.getClass( - "NSURLSession", - () => ffi.Native.addressOf>( - _class_NSURLSession_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLSessionConfiguration', -) -external ffi.Pointer _class_NSURLSessionConfiguration_raw; -final _class_NSURLSessionConfiguration = objc.getClass( - "NSURLSessionConfiguration", - () => ffi.Native.addressOf>( - _class_NSURLSessionConfiguration_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSValue') -external ffi.Pointer _class_NSValue_raw; -final _class_NSValue = objc.getClass( - "NSValue", - () => ffi.Native.addressOf>( - _class_NSValue_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSXMLElement', -) -external ffi.Pointer _class_NSXMLElement_raw; -final _class_NSXMLElement = objc.getClass( - "NSXMLElement", - () => ffi.Native.addressOf>( - _class_NSXMLElement_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSXMLParser', -) -external ffi.Pointer _class_NSXMLParser_raw; -final _class_NSXMLParser = objc.getClass( - "NSXMLParser", - () => ffi.Native.addressOf>( - _class_NSXMLParser_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xfiv91', -) -external ffi.Pointer _class__BlockArgs_112ozxo_raw; -final _class__BlockArgs_112ozxo = objc.getClass( - "_1uu024u_BlockArgs_xfiv91", - () => ffi.Native.addressOf>( - _class__BlockArgs_112ozxo_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_117e0ww_raw; -final _class__BlockArgs_117e0ww = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_117e0ww_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1gt4vek', -) -external ffi.Pointer _class__BlockArgs_11uyayp_raw; -final _class__BlockArgs_11uyayp = objc.getClass( - "_1uu024u_BlockArgs_1gt4vek", - () => ffi.Native.addressOf>( - _class__BlockArgs_11uyayp_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_121fmzs_raw; -final _class__BlockArgs_121fmzs = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_121fmzs_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_wv523k', -) -external ffi.Pointer _class__BlockArgs_12cm2y5_raw; -final _class__BlockArgs_12cm2y5 = objc.getClass( - "_1uu024u_BlockArgs_wv523k", - () => ffi.Native.addressOf>( - _class__BlockArgs_12cm2y5_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_13ecogf', -) -external ffi.Pointer _class__BlockArgs_12rv5aa_raw; -final _class__BlockArgs_12rv5aa = objc.getClass( - "_1uu024u_BlockArgs_13ecogf", - () => ffi.Native.addressOf>( - _class__BlockArgs_12rv5aa_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1axgza4', -) -external ffi.Pointer _class__BlockArgs_12tf05r_raw; -final _class__BlockArgs_12tf05r = objc.getClass( - "_1uu024u_BlockArgs_1axgza4", - () => ffi.Native.addressOf>( - _class__BlockArgs_12tf05r_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_12ykekb_raw; -final _class__BlockArgs_12ykekb = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_12ykekb_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_14pv86t', -) -external ffi.Pointer _class__BlockArgs_133h48c_raw; -final _class__BlockArgs_133h48c = objc.getClass( - "_1uu024u_BlockArgs_14pv86t", - () => ffi.Native.addressOf>( - _class__BlockArgs_133h48c_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_136y7ma_raw; -final _class__BlockArgs_136y7ma = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_136y7ma_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1v2rdu1', -) -external ffi.Pointer _class__BlockArgs_13g89k6_raw; -final _class__BlockArgs_13g89k6 = objc.getClass( - "_1uu024u_BlockArgs_1v2rdu1", - () => ffi.Native.addressOf>( - _class__BlockArgs_13g89k6_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_13o2rom_raw; -final _class__BlockArgs_13o2rom = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_13o2rom_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_13sb76x_raw; -final _class__BlockArgs_13sb76x = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_13sb76x_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_140cpyj_raw; -final _class__BlockArgs_140cpyj = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_140cpyj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_14dahaa_raw; -final _class__BlockArgs_14dahaa = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_14dahaa_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_igu5g9', -) -external ffi.Pointer _class__BlockArgs_14lm7fk_raw; -final _class__BlockArgs_14lm7fk = objc.getClass( - "_1uu024u_BlockArgs_igu5g9", - () => ffi.Native.addressOf>( - _class__BlockArgs_14lm7fk_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_vh5xcw', -) -external ffi.Pointer _class__BlockArgs_15cdu5z_raw; -final _class__BlockArgs_15cdu5z = objc.getClass( - "_1uu024u_BlockArgs_vh5xcw", - () => ffi.Native.addressOf>( - _class__BlockArgs_15cdu5z_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_15jt9u5_raw; -final _class__BlockArgs_15jt9u5 = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_15jt9u5_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_15vjajw_raw; -final _class__BlockArgs_15vjajw = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_15vjajw_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_16ix251_raw; -final _class__BlockArgs_16ix251 = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_16ix251_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_16t4ozp_raw; -final _class__BlockArgs_16t4ozp = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_16t4ozp_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_170i760_raw; -final _class__BlockArgs_170i760 = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_170i760_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hf68d1', -) -external ffi.Pointer _class__BlockArgs_171cldw_raw; -final _class__BlockArgs_171cldw = objc.getClass( - "_1uu024u_BlockArgs_hf68d1", - () => ffi.Native.addressOf>( - _class__BlockArgs_171cldw_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8odg2g', -) -external ffi.Pointer _class__BlockArgs_17jmtfx_raw; -final _class__BlockArgs_17jmtfx = objc.getClass( - "_1uu024u_BlockArgs_8odg2g", - () => ffi.Native.addressOf>( - _class__BlockArgs_17jmtfx_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1nn5emo', -) -external ffi.Pointer _class__BlockArgs_17mefw7_raw; -final _class__BlockArgs_17mefw7 = objc.getClass( - "_1uu024u_BlockArgs_1nn5emo", - () => ffi.Native.addressOf>( - _class__BlockArgs_17mefw7_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_17xklgp_raw; -final _class__BlockArgs_17xklgp = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_17xklgp_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_18kc0nv_raw; -final _class__BlockArgs_18kc0nv = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_18kc0nv_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_197qivc_raw; -final _class__BlockArgs_197qivc = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_197qivc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1kovpyp', -) -external ffi.Pointer _class__BlockArgs_19pyqcd_raw; -final _class__BlockArgs_19pyqcd = objc.getClass( - "_1uu024u_BlockArgs_1kovpyp", - () => ffi.Native.addressOf>( - _class__BlockArgs_19pyqcd_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_19rrqmo_raw; -final _class__BlockArgs_19rrqmo = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_19rrqmo_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ye2vt3', -) -external ffi.Pointer _class__BlockArgs_1ayzt6i_raw; -final _class__BlockArgs_1ayzt6i = objc.getClass( - "_1uu024u_BlockArgs_ye2vt3", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ayzt6i_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_1ciefi0_raw; -final _class__BlockArgs_1ciefi0 = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ciefi0_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_1e1kc88_raw; -final _class__BlockArgs_1e1kc88 = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_1e1kc88_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_omynm', -) -external ffi.Pointer _class__BlockArgs_1e3xl1p_raw; -final _class__BlockArgs_1e3xl1p = objc.getClass( - "_1uu024u_BlockArgs_omynm", - () => ffi.Native.addressOf>( - _class__BlockArgs_1e3xl1p_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1ek5uoy_raw; -final _class__BlockArgs_1ek5uoy = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ek5uoy_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1f64crj_raw; -final _class__BlockArgs_1f64crj = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1f64crj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_1fj0jrw_raw; -final _class__BlockArgs_1fj0jrw = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_1fj0jrw_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1e0wztw', -) -external ffi.Pointer _class__BlockArgs_1giidhf_raw; -final _class__BlockArgs_1giidhf = objc.getClass( - "_1uu024u_BlockArgs_1e0wztw", - () => ffi.Native.addressOf>( - _class__BlockArgs_1giidhf_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', -) -external ffi.Pointer _class__BlockArgs_1gmgda9_raw; -final _class__BlockArgs_1gmgda9 = objc.getClass( - "_1uu024u_BlockArgs_1k6sg8i", - () => ffi.Native.addressOf>( - _class__BlockArgs_1gmgda9_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1hj9xku_raw; -final _class__BlockArgs_1hj9xku = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1hj9xku_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6s6vc3', -) -external ffi.Pointer _class__BlockArgs_1hs0ws6_raw; -final _class__BlockArgs_1hs0ws6 = objc.getClass( - "_1uu024u_BlockArgs_6s6vc3", - () => ffi.Native.addressOf>( - _class__BlockArgs_1hs0ws6_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1hwelu_raw; -final _class__BlockArgs_1hwelu = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1hwelu_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1i7oea2_raw; -final _class__BlockArgs_1i7oea2 = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1i7oea2_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_1j32c3t_raw; -final _class__BlockArgs_1j32c3t = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_1j32c3t_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_1jcra61_raw; -final _class__BlockArgs_1jcra61 = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_1jcra61_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_5rmak2', -) -external ffi.Pointer _class__BlockArgs_1kowxjl_raw; -final _class__BlockArgs_1kowxjl = objc.getClass( - "_1uu024u_BlockArgs_5rmak2", - () => ffi.Native.addressOf>( - _class__BlockArgs_1kowxjl_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1cgt9gb', -) -external ffi.Pointer _class__BlockArgs_1l7b9ji_raw; -final _class__BlockArgs_1l7b9ji = objc.getClass( - "_1uu024u_BlockArgs_1cgt9gb", - () => ffi.Native.addressOf>( - _class__BlockArgs_1l7b9ji_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1xaf9kl', -) -external ffi.Pointer _class__BlockArgs_1lr5l4t_raw; -final _class__BlockArgs_1lr5l4t = objc.getClass( - "_1uu024u_BlockArgs_1xaf9kl", - () => ffi.Native.addressOf>( - _class__BlockArgs_1lr5l4t_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1nr9pmw', -) -external ffi.Pointer _class__BlockArgs_1ltqoqj_raw; -final _class__BlockArgs_1ltqoqj = objc.getClass( - "_1uu024u_BlockArgs_1nr9pmw", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ltqoqj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_13ytbkt', -) -external ffi.Pointer _class__BlockArgs_1mv87bk_raw; -final _class__BlockArgs_1mv87bk = objc.getClass( - "_1uu024u_BlockArgs_13ytbkt", - () => ffi.Native.addressOf>( - _class__BlockArgs_1mv87bk_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_1n468bj_raw; -final _class__BlockArgs_1n468bj = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_1n468bj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_1n5meg5_raw; -final _class__BlockArgs_1n5meg5 = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_1n5meg5_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_1n6ph2_raw; -final _class__BlockArgs_1n6ph2 = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_1n6ph2_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9km3ll', -) -external ffi.Pointer _class__BlockArgs_1nn0na_raw; -final _class__BlockArgs_1nn0na = objc.getClass( - "_1uu024u_BlockArgs_9km3ll", - () => ffi.Native.addressOf>( - _class__BlockArgs_1nn0na_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_omynm', -) -external ffi.Pointer _class__BlockArgs_1nq9pr6_raw; -final _class__BlockArgs_1nq9pr6 = objc.getClass( - "_1uu024u_BlockArgs_omynm", - () => ffi.Native.addressOf>( - _class__BlockArgs_1nq9pr6_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_1o2efq5_raw; -final _class__BlockArgs_1o2efq5 = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_1o2efq5_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1o8dtl_raw; -final _class__BlockArgs_1o8dtl = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1o8dtl_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1odc9lb_raw; -final _class__BlockArgs_1odc9lb = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1odc9lb_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1oetg5g_raw; -final _class__BlockArgs_1oetg5g = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1oetg5g_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_13ytbkt', -) -external ffi.Pointer _class__BlockArgs_1oftdow_raw; -final _class__BlockArgs_1oftdow = objc.getClass( - "_1uu024u_BlockArgs_13ytbkt", - () => ffi.Native.addressOf>( - _class__BlockArgs_1oftdow_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1p1ax08_raw; -final _class__BlockArgs_1p1ax08 = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1p1ax08_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_1p7ak3v_raw; -final _class__BlockArgs_1p7ak3v = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_1p7ak3v_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_132zq0k', -) -external ffi.Pointer _class__BlockArgs_1pfucun_raw; -final _class__BlockArgs_1pfucun = objc.getClass( - "_1uu024u_BlockArgs_132zq0k", - () => ffi.Native.addressOf>( - _class__BlockArgs_1pfucun_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_1pfw36l_raw; -final _class__BlockArgs_1pfw36l = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_1pfw36l_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1pj0but_raw; -final _class__BlockArgs_1pj0but = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1pj0but_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1ptzs7z_raw; -final _class__BlockArgs_1ptzs7z = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ptzs7z_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1ua0j4l', -) -external ffi.Pointer _class__BlockArgs_1pvrxoh_raw; -final _class__BlockArgs_1pvrxoh = objc.getClass( - "_1uu024u_BlockArgs_1ua0j4l", - () => ffi.Native.addressOf>( - _class__BlockArgs_1pvrxoh_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_1q305zu_raw; -final _class__BlockArgs_1q305zu = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_1q305zu_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1r6tt56_raw; -final _class__BlockArgs_1r6tt56 = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1r6tt56_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1y86ja3', -) -external ffi.Pointer _class__BlockArgs_1s0z6xl_raw; -final _class__BlockArgs_1s0z6xl = objc.getClass( - "_1uu024u_BlockArgs_1y86ja3", - () => ffi.Native.addressOf>( - _class__BlockArgs_1s0z6xl_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1u5s7gl', -) -external ffi.Pointer _class__BlockArgs_1s2j81k_raw; -final _class__BlockArgs_1s2j81k = objc.getClass( - "_1uu024u_BlockArgs_1u5s7gl", - () => ffi.Native.addressOf>( - _class__BlockArgs_1s2j81k_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1siniii_raw; -final _class__BlockArgs_1siniii = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1siniii_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_d96no7', -) -external ffi.Pointer _class__BlockArgs_1sucxsg_raw; -final _class__BlockArgs_1sucxsg = objc.getClass( - "_1uu024u_BlockArgs_d96no7", - () => ffi.Native.addressOf>( - _class__BlockArgs_1sucxsg_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_1sy9q99_raw; -final _class__BlockArgs_1sy9q99 = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_1sy9q99_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', -) -external ffi.Pointer _class__BlockArgs_1tklz9g_raw; -final _class__BlockArgs_1tklz9g = objc.getClass( - "_1uu024u_BlockArgs_1k6sg8i", - () => ffi.Native.addressOf>( - _class__BlockArgs_1tklz9g_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1gdgpbj', -) -external ffi.Pointer _class__BlockArgs_1uc4fg7_raw; -final _class__BlockArgs_1uc4fg7 = objc.getClass( - "_1uu024u_BlockArgs_1gdgpbj", - () => ffi.Native.addressOf>( - _class__BlockArgs_1uc4fg7_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', -) -external ffi.Pointer _class__BlockArgs_1uox71a_raw; -final _class__BlockArgs_1uox71a = objc.getClass( - "_1uu024u_BlockArgs_1k6sg8i", - () => ffi.Native.addressOf>( - _class__BlockArgs_1uox71a_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_1ura76_raw; -final _class__BlockArgs_1ura76 = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ura76_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_1usrzbh_raw; -final _class__BlockArgs_1usrzbh = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_1usrzbh_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_bls7f3', -) -external ffi.Pointer _class__BlockArgs_1v0sc8_raw; -final _class__BlockArgs_1v0sc8 = objc.getClass( - "_1uu024u_BlockArgs_bls7f3", - () => ffi.Native.addressOf>( - _class__BlockArgs_1v0sc8_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1krhbbh', -) -external ffi.Pointer _class__BlockArgs_1x2wp90_raw; -final _class__BlockArgs_1x2wp90 = objc.getClass( - "_1uu024u_BlockArgs_1krhbbh", - () => ffi.Native.addressOf>( - _class__BlockArgs_1x2wp90_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_vh5xcw', -) -external ffi.Pointer _class__BlockArgs_1xfn2k3_raw; -final _class__BlockArgs_1xfn2k3 = objc.getClass( - "_1uu024u_BlockArgs_vh5xcw", - () => ffi.Native.addressOf>( - _class__BlockArgs_1xfn2k3_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1lkkdea', -) -external ffi.Pointer _class__BlockArgs_1xkpqmj_raw; -final _class__BlockArgs_1xkpqmj = objc.getClass( - "_1uu024u_BlockArgs_1lkkdea", - () => ffi.Native.addressOf>( - _class__BlockArgs_1xkpqmj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_1y4tc38_raw; -final _class__BlockArgs_1y4tc38 = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_1y4tc38_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1jl1qga', -) -external ffi.Pointer _class__BlockArgs_1y7f3jy_raw; -final _class__BlockArgs_1y7f3jy = objc.getClass( - "_1uu024u_BlockArgs_1jl1qga", - () => ffi.Native.addressOf>( - _class__BlockArgs_1y7f3jy_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_1z0whcc_raw; -final _class__BlockArgs_1z0whcc = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_1z0whcc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_vh5xcw', -) -external ffi.Pointer _class__BlockArgs_31cygh_raw; -final _class__BlockArgs_31cygh = objc.getClass( - "_1uu024u_BlockArgs_vh5xcw", - () => ffi.Native.addressOf>( - _class__BlockArgs_31cygh_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_347s5u_raw; -final _class__BlockArgs_347s5u = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_347s5u_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_13ytbkt', -) -external ffi.Pointer _class__BlockArgs_3gru2r_raw; -final _class__BlockArgs_3gru2r = objc.getClass( - "_1uu024u_BlockArgs_13ytbkt", - () => ffi.Native.addressOf>( - _class__BlockArgs_3gru2r_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1fswoub', -) -external ffi.Pointer _class__BlockArgs_3jhjrc_raw; -final _class__BlockArgs_3jhjrc = objc.getClass( - "_1uu024u_BlockArgs_1fswoub", - () => ffi.Native.addressOf>( - _class__BlockArgs_3jhjrc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_3prg4b_raw; -final _class__BlockArgs_3prg4b = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_3prg4b_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_43hp0b_raw; -final _class__BlockArgs_43hp0b = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_43hp0b_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_461rr9_raw; -final _class__BlockArgs_461rr9 = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_461rr9_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1b0c39y', -) -external ffi.Pointer _class__BlockArgs_5wf51x_raw; -final _class__BlockArgs_5wf51x = objc.getClass( - "_1uu024u_BlockArgs_1b0c39y", - () => ffi.Native.addressOf>( - _class__BlockArgs_5wf51x_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1po7bn3', -) -external ffi.Pointer _class__BlockArgs_5zyi3o_raw; -final _class__BlockArgs_5zyi3o = objc.getClass( - "_1uu024u_BlockArgs_1po7bn3", - () => ffi.Native.addressOf>( - _class__BlockArgs_5zyi3o_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_6tydoo_raw; -final _class__BlockArgs_6tydoo = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_6tydoo_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_90wr7u', -) -external ffi.Pointer _class__BlockArgs_6yk1dr_raw; -final _class__BlockArgs_6yk1dr = objc.getClass( - "_1uu024u_BlockArgs_90wr7u", - () => ffi.Native.addressOf>( - _class__BlockArgs_6yk1dr_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_7xicdf_raw; -final _class__BlockArgs_7xicdf = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_7xicdf_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_36nsue', -) -external ffi.Pointer _class__BlockArgs_99x6vt_raw; -final _class__BlockArgs_99x6vt = objc.getClass( - "_1uu024u_BlockArgs_36nsue", - () => ffi.Native.addressOf>( - _class__BlockArgs_99x6vt_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1mrpyvj', -) -external ffi.Pointer _class__BlockArgs_abn34x_raw; -final _class__BlockArgs_abn34x = objc.getClass( - "_1uu024u_BlockArgs_1mrpyvj", - () => ffi.Native.addressOf>( - _class__BlockArgs_abn34x_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_adcfsd_raw; -final _class__BlockArgs_adcfsd = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_adcfsd_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_aec946_raw; -final _class__BlockArgs_aec946 = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_aec946_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15is1z3', -) -external ffi.Pointer _class__BlockArgs_awd5mj_raw; -final _class__BlockArgs_awd5mj = objc.getClass( - "_1uu024u_BlockArgs_15is1z3", - () => ffi.Native.addressOf>( - _class__BlockArgs_awd5mj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_b9s2kt_raw; -final _class__BlockArgs_b9s2kt = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_b9s2kt_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_blvx9k_raw; -final _class__BlockArgs_blvx9k = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_blvx9k_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xfiv91', -) -external ffi.Pointer _class__BlockArgs_de64m_raw; -final _class__BlockArgs_de64m = objc.getClass( - "_1uu024u_BlockArgs_xfiv91", - () => ffi.Native.addressOf>( - _class__BlockArgs_de64m_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9kuhjb', -) -external ffi.Pointer _class__BlockArgs_di5ft6_raw; -final _class__BlockArgs_di5ft6 = objc.getClass( - "_1uu024u_BlockArgs_9kuhjb", - () => ffi.Native.addressOf>( - _class__BlockArgs_di5ft6_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_12exqd', -) -external ffi.Pointer _class__BlockArgs_dmvhfp_raw; -final _class__BlockArgs_dmvhfp = objc.getClass( - "_1uu024u_BlockArgs_12exqd", - () => ffi.Native.addressOf>( - _class__BlockArgs_dmvhfp_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1y86ja3', -) -external ffi.Pointer _class__BlockArgs_eu2222_raw; -final _class__BlockArgs_eu2222 = objc.getClass( - "_1uu024u_BlockArgs_1y86ja3", - () => ffi.Native.addressOf>( - _class__BlockArgs_eu2222_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9dub82', -) -external ffi.Pointer _class__BlockArgs_gcznpv_raw; -final _class__BlockArgs_gcznpv = objc.getClass( - "_1uu024u_BlockArgs_9dub82", - () => ffi.Native.addressOf>( - _class__BlockArgs_gcznpv_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1yjs6wb', -) -external ffi.Pointer _class__BlockArgs_hacm4k_raw; -final _class__BlockArgs_hacm4k = objc.getClass( - "_1uu024u_BlockArgs_1yjs6wb", - () => ffi.Native.addressOf>( - _class__BlockArgs_hacm4k_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9kuhjb', -) -external ffi.Pointer _class__BlockArgs_hj4uui_raw; -final _class__BlockArgs_hj4uui = objc.getClass( - "_1uu024u_BlockArgs_9kuhjb", - () => ffi.Native.addressOf>( - _class__BlockArgs_hj4uui_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_le6lv4', -) -external ffi.Pointer _class__BlockArgs_hj6v1u_raw; -final _class__BlockArgs_hj6v1u = objc.getClass( - "_1uu024u_BlockArgs_le6lv4", - () => ffi.Native.addressOf>( - _class__BlockArgs_hj6v1u_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_i7wriu_raw; -final _class__BlockArgs_i7wriu = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_i7wriu_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_h9i570', -) -external ffi.Pointer _class__BlockArgs_ii17hk_raw; -final _class__BlockArgs_ii17hk = objc.getClass( - "_1uu024u_BlockArgs_h9i570", - () => ffi.Native.addressOf>( - _class__BlockArgs_ii17hk_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_gz0078', -) -external ffi.Pointer _class__BlockArgs_j3xbuw_raw; -final _class__BlockArgs_j3xbuw = objc.getClass( - "_1uu024u_BlockArgs_gz0078", - () => ffi.Native.addressOf>( - _class__BlockArgs_j3xbuw_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_vh5xcw', -) -external ffi.Pointer _class__BlockArgs_jqba1_raw; -final _class__BlockArgs_jqba1 = objc.getClass( - "_1uu024u_BlockArgs_vh5xcw", - () => ffi.Native.addressOf>( - _class__BlockArgs_jqba1_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_jzitwn_raw; -final _class__BlockArgs_jzitwn = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_jzitwn_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_k1nazc_raw; -final _class__BlockArgs_k1nazc = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_k1nazc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_k2hpmy_raw; -final _class__BlockArgs_k2hpmy = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_k2hpmy_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1gt4vek', -) -external ffi.Pointer _class__BlockArgs_k4eb20_raw; -final _class__BlockArgs_k4eb20 = objc.getClass( - "_1uu024u_BlockArgs_1gt4vek", - () => ffi.Native.addressOf>( - _class__BlockArgs_k4eb20_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1s4gila', -) -external ffi.Pointer _class__BlockArgs_k4je64_raw; -final _class__BlockArgs_k4je64 = objc.getClass( - "_1uu024u_BlockArgs_1s4gila", - () => ffi.Native.addressOf>( - _class__BlockArgs_k4je64_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ec9pb6', -) -external ffi.Pointer _class__BlockArgs_kqbpyy_raw; -final _class__BlockArgs_kqbpyy = objc.getClass( - "_1uu024u_BlockArgs_ec9pb6", - () => ffi.Native.addressOf>( - _class__BlockArgs_kqbpyy_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', -) -external ffi.Pointer _class__BlockArgs_krrtfh_raw; -final _class__BlockArgs_krrtfh = objc.getClass( - "_1uu024u_BlockArgs_1k6sg8i", - () => ffi.Native.addressOf>( - _class__BlockArgs_krrtfh_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_l4qveu', -) -external ffi.Pointer _class__BlockArgs_ldsont_raw; -final _class__BlockArgs_ldsont = objc.getClass( - "_1uu024u_BlockArgs_l4qveu", - () => ffi.Native.addressOf>( - _class__BlockArgs_ldsont_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', -) -external ffi.Pointer _class__BlockArgs_lmnq5k_raw; -final _class__BlockArgs_lmnq5k = objc.getClass( - "_1uu024u_BlockArgs_1k6sg8i", - () => ffi.Native.addressOf>( - _class__BlockArgs_lmnq5k_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_kuxxg7', -) -external ffi.Pointer _class__BlockArgs_n2dxuu_raw; -final _class__BlockArgs_n2dxuu = objc.getClass( - "_1uu024u_BlockArgs_kuxxg7", - () => ffi.Native.addressOf>( - _class__BlockArgs_n2dxuu_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_nemba7_raw; -final _class__BlockArgs_nemba7 = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_nemba7_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1yjs6wb', -) -external ffi.Pointer _class__BlockArgs_nhk5a9_raw; -final _class__BlockArgs_nhk5a9 = objc.getClass( - "_1uu024u_BlockArgs_1yjs6wb", - () => ffi.Native.addressOf>( - _class__BlockArgs_nhk5a9_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_4m73qm', -) -external ffi.Pointer _class__BlockArgs_pfi7f3_raw; -final _class__BlockArgs_pfi7f3 = objc.getClass( - "_1uu024u_BlockArgs_4m73qm", - () => ffi.Native.addressOf>( - _class__BlockArgs_pfi7f3_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_pm23bg_raw; -final _class__BlockArgs_pm23bg = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_pm23bg_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1agrddk', -) -external ffi.Pointer _class__BlockArgs_q6fcam_raw; -final _class__BlockArgs_q6fcam = objc.getClass( - "_1uu024u_BlockArgs_1agrddk", - () => ffi.Native.addressOf>( - _class__BlockArgs_q6fcam_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_qjjttc_raw; -final _class__BlockArgs_qjjttc = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_qjjttc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_qss5hc_raw; -final _class__BlockArgs_qss5hc = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_qss5hc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_rojepe_raw; -final _class__BlockArgs_rojepe = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_rojepe_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_s52y0g_raw; -final _class__BlockArgs_s52y0g = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_s52y0g_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6ngya9', -) -external ffi.Pointer _class__BlockArgs_syyzqk_raw; -final _class__BlockArgs_syyzqk = objc.getClass( - "_1uu024u_BlockArgs_6ngya9", - () => ffi.Native.addressOf>( - _class__BlockArgs_syyzqk_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_5rmak2', -) -external ffi.Pointer _class__BlockArgs_t3r59d_raw; -final _class__BlockArgs_t3r59d = objc.getClass( - "_1uu024u_BlockArgs_5rmak2", - () => ffi.Native.addressOf>( - _class__BlockArgs_t3r59d_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_q64d1', -) -external ffi.Pointer _class__BlockArgs_tbof01_raw; -final _class__BlockArgs_tbof01 = objc.getClass( - "_1uu024u_BlockArgs_q64d1", - () => ffi.Native.addressOf>( - _class__BlockArgs_tbof01_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_teaic5_raw; -final _class__BlockArgs_teaic5 = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_teaic5_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_tikg8p_raw; -final _class__BlockArgs_tikg8p = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_tikg8p_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_truc42_raw; -final _class__BlockArgs_truc42 = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_truc42_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_u4a6zc_raw; -final _class__BlockArgs_u4a6zc = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_u4a6zc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_kjz7zp', -) -external ffi.Pointer _class__BlockArgs_u65oe8_raw; -final _class__BlockArgs_u65oe8 = objc.getClass( - "_1uu024u_BlockArgs_kjz7zp", - () => ffi.Native.addressOf>( - _class__BlockArgs_u65oe8_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_130ym7a', -) -external ffi.Pointer _class__BlockArgs_uul9n9_raw; -final _class__BlockArgs_uul9n9 = objc.getClass( - "_1uu024u_BlockArgs_130ym7a", - () => ffi.Native.addressOf>( - _class__BlockArgs_uul9n9_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_2ik0db', -) -external ffi.Pointer _class__BlockArgs_v1zq3a_raw; -final _class__BlockArgs_v1zq3a = objc.getClass( - "_1uu024u_BlockArgs_2ik0db", - () => ffi.Native.addressOf>( - _class__BlockArgs_v1zq3a_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_v5xz31_raw; -final _class__BlockArgs_v5xz31 = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_v5xz31_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1agrddk', -) -external ffi.Pointer _class__BlockArgs_v8in3_raw; -final _class__BlockArgs_v8in3 = objc.getClass( - "_1uu024u_BlockArgs_1agrddk", - () => ffi.Native.addressOf>( - _class__BlockArgs_v8in3_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_vaglpl_raw; -final _class__BlockArgs_vaglpl = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_vaglpl_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_17efpu7', -) -external ffi.Pointer _class__BlockArgs_vgtcpl_raw; -final _class__BlockArgs_vgtcpl = objc.getClass( - "_1uu024u_BlockArgs_17efpu7", - () => ffi.Native.addressOf>( - _class__BlockArgs_vgtcpl_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hll3td', -) -external ffi.Pointer _class__BlockArgs_vpa8ji_raw; -final _class__BlockArgs_vpa8ji = objc.getClass( - "_1uu024u_BlockArgs_hll3td", - () => ffi.Native.addressOf>( - _class__BlockArgs_vpa8ji_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_5rmak2', -) -external ffi.Pointer _class__BlockArgs_vx7t4i_raw; -final _class__BlockArgs_vx7t4i = objc.getClass( - "_1uu024u_BlockArgs_5rmak2", - () => ffi.Native.addressOf>( - _class__BlockArgs_vx7t4i_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_24riuf', -) -external ffi.Pointer _class__BlockArgs_wpl2gn_raw; -final _class__BlockArgs_wpl2gn = objc.getClass( - "_1uu024u_BlockArgs_24riuf", - () => ffi.Native.addressOf>( - _class__BlockArgs_wpl2gn_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1d1siln', -) -external ffi.Pointer _class__BlockArgs_wtbfzi_raw; -final _class__BlockArgs_wtbfzi = objc.getClass( - "_1uu024u_BlockArgs_1d1siln", - () => ffi.Native.addressOf>( - _class__BlockArgs_wtbfzi_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1k6sg8i', -) -external ffi.Pointer _class__BlockArgs_x5cg0_raw; -final _class__BlockArgs_x5cg0 = objc.getClass( - "_1uu024u_BlockArgs_1k6sg8i", - () => ffi.Native.addressOf>( - _class__BlockArgs_x5cg0_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9km3ll', -) -external ffi.Pointer _class__BlockArgs_x7mqjz_raw; -final _class__BlockArgs_x7mqjz = objc.getClass( - "_1uu024u_BlockArgs_9km3ll", - () => ffi.Native.addressOf>( - _class__BlockArgs_x7mqjz_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_166nalk', -) -external ffi.Pointer _class__BlockArgs_xcrg5s_raw; -final _class__BlockArgs_xcrg5s = objc.getClass( - "_1uu024u_BlockArgs_166nalk", - () => ffi.Native.addressOf>( - _class__BlockArgs_xcrg5s_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_132zq0k', -) -external ffi.Pointer _class__BlockArgs_xh08sz_raw; -final _class__BlockArgs_xh08sz = objc.getClass( - "_1uu024u_BlockArgs_132zq0k", - () => ffi.Native.addressOf>( - _class__BlockArgs_xh08sz_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_w57eou', -) -external ffi.Pointer _class__BlockArgs_xj71gr_raw; -final _class__BlockArgs_xj71gr = objc.getClass( - "_1uu024u_BlockArgs_w57eou", - () => ffi.Native.addressOf>( - _class__BlockArgs_xj71gr_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_29zf79', -) -external ffi.Pointer _class__BlockArgs_zgaes8_raw; -final _class__BlockArgs_zgaes8 = objc.getClass( - "_1uu024u_BlockArgs_29zf79", - () => ffi.Native.addressOf>( - _class__BlockArgs_zgaes8_raw, - ).cast(), -); - -final class _cups_array_s extends ffi.Opaque {} - -final class _cups_dinfo_s extends ffi.Opaque {} - -final class _cups_file_s extends ffi.Opaque {} - -final class _cups_raster_s extends ffi.Opaque {} - -final class _filesec extends ffi.Opaque {} - -final class _http_addr_u extends ffi.Union { - external sockaddr addr; - - external sockaddr_in ipv4; - - external sockaddr_in6 ipv6; - - external sockaddr_un un; - - @ffi.Array.multi([256]) - external ffi.Array pad; -} - -final class _http_s extends ffi.Opaque {} - -final class _ipp_attribute_s extends ffi.Opaque {} - -final class _ipp_s extends ffi.Opaque {} - -final class _launch_data extends ffi.Opaque {} - -final class _malloc_zone_t extends ffi.Opaque {} - -final _objc_msgSend_10340ek = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecIdentity>, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecIdentity>, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_10fx4x0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLongLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_10g3tem = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGRect Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGRect Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_10g3temStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_10m13xy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_10mh3mj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_113h1yz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_11r004b = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_120wspy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_12av0mx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ) - >(); -final _objc_msgSend_12zlwvh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ) - >(); -final _objc_msgSend_133oo4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__SecKey> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__SecKey> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_137o7cl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_13h8okt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_13l47a1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_13wc3w1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_13y52fe = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_13ytbkt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_140fk5d = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Uint32 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_14cxkac = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedChar Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_14sf485 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_15is1z3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_15jmnhb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_15sni0d = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_15t3nhv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_162ofpt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecTrust>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecTrust>, - ) - >(); -final _objc_msgSend_168l3u4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1690f3y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_16dno01 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_16dno01Fpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_16fdf3f = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_16ixh5c = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_16szl7k = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - >(); -final _objc_msgSend_16t7zr0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - double, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_16v6ugk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_176lrd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_17734bn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_17azp2d = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Uint64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_17d2dof = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Uint32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_17kc8kc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_17kjafg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_17y2ndj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1844k4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18h34ir = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_18h7706 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFRunLoopObserver> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__CFRunLoopObserver> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18szuw0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_19akr8a = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - bool, - ) - >(); -final _objc_msgSend_19co5ux = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_19ms50r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_19tgqei = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_19tixc3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1a2vk5h = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1aglthn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1at51ut = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1atifgf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ax18rd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_1bslk2e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1bw3upc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1c30s85 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1c6ogwh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Bool, - ffi.Pointer>, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - bool, - ffi.Pointer>, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1cd70t7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_1ci2ia6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1ci2ia6Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1clfj3o = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - double, - ) - >(); -final _objc_msgSend_1d1siln = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1d50bq7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1df3gur = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1df3gurStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1df5a5f = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1dgggdh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1dsj9wx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1dubril = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1e5znsh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >(); -final _objc_msgSend_1emblnm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1exgpw8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1f7hox7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1f7ncs3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1ffzwv1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1fh46zu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1fspiy4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Uint16 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ft2ink = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1fxwmio = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__IOSurface> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__IOSurface> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1fyph4u = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1fzl250 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1g4mhmy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ) - >(); -final _objc_msgSend_1gmrb5m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1gqjits = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1gv17gn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1hnhjy0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1hvjsy6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1hwzsr1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1hwzsr1Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1i2s9oh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1if3gfg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Uint64 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ijt5u4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1inb5dw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1isvq4t = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1jnam6p = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1jpqrtr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1jrvou1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGRect Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGRect Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1jrvou1Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1k1r7vy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >(); -final _objc_msgSend_1k6sg8i = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1l105vx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1l10mai = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1l314qv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ) - >(); -final _objc_msgSend_1l4zcuu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1l7fxsy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lg1b3i = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lkmam2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ludlma = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lvlpux = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1m4vyuw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1mevadz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1moai7z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1mp8i54 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ) - >(); -final _objc_msgSend_1n14wj8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1n87wib = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ) - >(); -final _objc_msgSend_1n88jx7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ngjh10 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool, - ) - >(); -final _objc_msgSend_1no426w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1nr9pmw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1nxh0dy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1oi13co = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1oxgj58 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1py860n = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ) - >(); -final _objc_msgSend_1q2tbpd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1q2tbpdFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1qido3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_1qltt4c = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1qvlfli = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFRunLoopTimer> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__CFRunLoopTimer> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1r5jzqh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ro3sl5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1rtwvy8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1rz4muk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1s1jtb4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_1s4gila = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1sptcho = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1t5al8x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1tf1mi0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1tjd59x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1tjz0jr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1tn8wgq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1u0udch = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1u4qka1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_1uc3xpx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1urtg4j = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ux8kak = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1v91fr2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_1vaqdcd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1vgbqmt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vr6auf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vyt62e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFArray> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__CFArray> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1whvugs = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1whyqxt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1wp571e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1wp571eStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1wruglo = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1x8puhr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1xnczpu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1xx6l96 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1xzjeoi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1z0zg2e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1zbf08 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_25u0to = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_28e8o1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ) - >(); -final _objc_msgSend_2cgbeg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2pmueu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Bool, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - bool, - ) - >(); -final _objc_msgSend_2ufx71 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_3lg6qb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_3mxu14 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_3qs0ul = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_441sd9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_47idvh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_49k26d = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_4aeiwn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_4g65tx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_4lxjho = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Long, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_59rf64 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_5hhk6v = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_5xlvnr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_6g603z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSEdgeInsets, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSEdgeInsets, - ) - >(); -final _objc_msgSend_6gqu6c = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_6n81l6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_6ngya9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_6r70rc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_7agf1a = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_8qnx0d = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_8ut1ht = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_9kuhjb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_9pr6kk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_9pr6kkFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_avag80 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_b7zpih = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Size Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_bltg3p = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_by5tf2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_c7ivs8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_cjvl3d = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_d7eo5a = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_dcpapu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__SecTrust> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__SecTrust> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_dute2g = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int64 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_e67j2c = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_eloak0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_f2eek9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_fr9ada = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ftq404 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_gvefwy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGPoint Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGPoint Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_gvefwyStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_h4ogsm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_h9i570 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_hwrhq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSEdgeInsets Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.NSEdgeInsets Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_hwrhqStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_i7dl0m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_i7x6oo = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFError> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__CFError> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ihaxwy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_ijjgcn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_ikrf9p = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_inbg7y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_j25zxm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_jgkhez = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_jt5cno = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_k06xr2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_kh8q6e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_kh8q6eFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ko9mpb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int64 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_kqg9a0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_kqrjmf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_lbm6kd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ) - >(); -final _objc_msgSend_lbnlyo = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_m9iphx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGPoint Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGPoint Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_m9iphxStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_mbgotb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint32, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_mkoxa1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ml5svd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_mvpew8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_n42fjv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_n75nqq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >(); -final _objc_msgSend_ng7j0k = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_nk89d9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_nlwmd1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGSize Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGSize Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_nlwmd1Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_nolpru = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_nombv2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_nu1ilo = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_nv3gmm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.LongLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_nzd96v = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_o5e71h = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_ocdydk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_omynm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_on2yfn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_po1ic4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_pxpqpv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_q6vpml = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_r1rnp = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_r1rnpStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ralblg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_rcrzo0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ) - >(); -final _objc_msgSend_rcrzo0Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ) - >(); -final _objc_msgSend_rfcpxf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_rjymh3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - NSUInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_s0nvsa = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_s69mzd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_shgy3l = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_smucfr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_spoczw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ffi.Pointer, - ) - >(); -final _objc_msgSend_twa2vs = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_umhdr9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_unrmat = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_uo2bdm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ) - >(); -final _objc_msgSend_upjxor = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_vofvy9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_vplevf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - CFOptionFlags Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_wcvpes = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_wi8f6a = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_wke702 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGSize Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGSize Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_wke702Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_wv523k = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_x20rg3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_x76ogv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_xjlvtx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_xkivwz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_xm0jkv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_xnca0g = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_xu1jv4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_y1vupz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_yeon2y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_yvcp9i = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ) - >(); -final _objc_msgSend_z7s0qs = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__SecIdentity> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__SecIdentity> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_zk1qxr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_zlrk5f = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_zlrk5fFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - -final class _opaque_pthread_attr_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([56]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_cond_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([40]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_condattr_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([8]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_mutex_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([56]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_mutexattr_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([8]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_once_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([8]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_rwlock_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([192]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_rwlockattr_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([16]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - external ffi.Pointer<__darwin_pthread_handler_rec> __cleanup_stack; - - @ffi.Array.multi([8176]) - external ffi.Array __opaque; -} - -final class _ppd_cache_s extends ffi.Opaque {} - -typedef _ppd_cache_t = _ppd_cache_s; -@ffi.Native Function()>( - symbol: '_1uu024u_AVAudioPlayerDelegate', -) -external ffi.Pointer -_protocol_AVAudioPlayerDelegate_raw(); -final _protocol_AVAudioPlayerDelegate = objc.getProtocol( - "AVAudioPlayerDelegate", - _protocol_AVAudioPlayerDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_AVAudioSessionDelegate', -) -external ffi.Pointer -_protocol_AVAudioSessionDelegate_raw(); -final _protocol_AVAudioSessionDelegate = objc.getProtocol( - "AVAudioSessionDelegate", - _protocol_AVAudioSessionDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_CTAdaptiveImageProviding', -) -external ffi.Pointer -_protocol_CTAdaptiveImageProviding_raw(); -final _protocol_CTAdaptiveImageProviding = objc.getProtocol( - "CTAdaptiveImageProviding", - _protocol_CTAdaptiveImageProviding_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSCacheDelegate', -) -external ffi.Pointer _protocol_NSCacheDelegate_raw(); -final _protocol_NSCacheDelegate = objc.getProtocol( - "NSCacheDelegate", - _protocol_NSCacheDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSConnectionDelegate', -) -external ffi.Pointer -_protocol_NSConnectionDelegate_raw(); -final _protocol_NSConnectionDelegate = objc.getProtocol( - "NSConnectionDelegate", - _protocol_NSConnectionDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSDecimalNumberBehaviors', -) -external ffi.Pointer -_protocol_NSDecimalNumberBehaviors_raw(); -final _protocol_NSDecimalNumberBehaviors = objc.getProtocol( - "NSDecimalNumberBehaviors", - _protocol_NSDecimalNumberBehaviors_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSDiscardableContent', -) -external ffi.Pointer -_protocol_NSDiscardableContent_raw(); -final _protocol_NSDiscardableContent = objc.getProtocol( - "NSDiscardableContent", - _protocol_NSDiscardableContent_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSExtensionRequestHandling', -) -external ffi.Pointer -_protocol_NSExtensionRequestHandling_raw(); -final _protocol_NSExtensionRequestHandling = objc.getProtocol( - "NSExtensionRequestHandling", - _protocol_NSExtensionRequestHandling_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSFileManagerDelegate', -) -external ffi.Pointer -_protocol_NSFileManagerDelegate_raw(); -final _protocol_NSFileManagerDelegate = objc.getProtocol( - "NSFileManagerDelegate", - _protocol_NSFileManagerDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSFilePresenter', -) -external ffi.Pointer _protocol_NSFilePresenter_raw(); -final _protocol_NSFilePresenter = objc.getProtocol( - "NSFilePresenter", - _protocol_NSFilePresenter_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSKeyedArchiverDelegate', -) -external ffi.Pointer -_protocol_NSKeyedArchiverDelegate_raw(); -final _protocol_NSKeyedArchiverDelegate = objc.getProtocol( - "NSKeyedArchiverDelegate", - _protocol_NSKeyedArchiverDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSKeyedUnarchiverDelegate', -) -external ffi.Pointer -_protocol_NSKeyedUnarchiverDelegate_raw(); -final _protocol_NSKeyedUnarchiverDelegate = objc.getProtocol( - "NSKeyedUnarchiverDelegate", - _protocol_NSKeyedUnarchiverDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSLocking', -) -external ffi.Pointer _protocol_NSLocking_raw(); -final _protocol_NSLocking = objc.getProtocol( - "NSLocking", - _protocol_NSLocking_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSMachPortDelegate', -) -external ffi.Pointer _protocol_NSMachPortDelegate_raw(); -final _protocol_NSMachPortDelegate = objc.getProtocol( - "NSMachPortDelegate", - _protocol_NSMachPortDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSMetadataQueryDelegate', -) -external ffi.Pointer -_protocol_NSMetadataQueryDelegate_raw(); -final _protocol_NSMetadataQueryDelegate = objc.getProtocol( - "NSMetadataQueryDelegate", - _protocol_NSMetadataQueryDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSNetServiceBrowserDelegate', -) -external ffi.Pointer -_protocol_NSNetServiceBrowserDelegate_raw(); -final _protocol_NSNetServiceBrowserDelegate = objc.getProtocol( - "NSNetServiceBrowserDelegate", - _protocol_NSNetServiceBrowserDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSNetServiceDelegate', -) -external ffi.Pointer -_protocol_NSNetServiceDelegate_raw(); -final _protocol_NSNetServiceDelegate = objc.getProtocol( - "NSNetServiceDelegate", - _protocol_NSNetServiceDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSProgressReporting', -) -external ffi.Pointer _protocol_NSProgressReporting_raw(); -final _protocol_NSProgressReporting = objc.getProtocol( - "NSProgressReporting", - _protocol_NSProgressReporting_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSSpellServerDelegate', -) -external ffi.Pointer -_protocol_NSSpellServerDelegate_raw(); -final _protocol_NSSpellServerDelegate = objc.getProtocol( - "NSSpellServerDelegate", - _protocol_NSSpellServerDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLAuthenticationChallengeSender', -) -external ffi.Pointer -_protocol_NSURLAuthenticationChallengeSender_raw(); -final _protocol_NSURLAuthenticationChallengeSender = objc.getProtocol( - "NSURLAuthenticationChallengeSender", - _protocol_NSURLAuthenticationChallengeSender_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLConnectionDataDelegate', -) -external ffi.Pointer -_protocol_NSURLConnectionDataDelegate_raw(); -final _protocol_NSURLConnectionDataDelegate = objc.getProtocol( - "NSURLConnectionDataDelegate", - _protocol_NSURLConnectionDataDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLConnectionDelegate', -) -external ffi.Pointer -_protocol_NSURLConnectionDelegate_raw(); -final _protocol_NSURLConnectionDelegate = objc.getProtocol( - "NSURLConnectionDelegate", - _protocol_NSURLConnectionDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLConnectionDownloadDelegate', -) -external ffi.Pointer -_protocol_NSURLConnectionDownloadDelegate_raw(); -final _protocol_NSURLConnectionDownloadDelegate = objc.getProtocol( - "NSURLConnectionDownloadDelegate", - _protocol_NSURLConnectionDownloadDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLDownloadDelegate', -) -external ffi.Pointer -_protocol_NSURLDownloadDelegate_raw(); -final _protocol_NSURLDownloadDelegate = objc.getProtocol( - "NSURLDownloadDelegate", - _protocol_NSURLDownloadDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLHandleClient', -) -external ffi.Pointer _protocol_NSURLHandleClient_raw(); -final _protocol_NSURLHandleClient = objc.getProtocol( - "NSURLHandleClient", - _protocol_NSURLHandleClient_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLProtocolClient', -) -external ffi.Pointer _protocol_NSURLProtocolClient_raw(); -final _protocol_NSURLProtocolClient = objc.getProtocol( - "NSURLProtocolClient", - _protocol_NSURLProtocolClient_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionDataDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionDataDelegate_raw(); -final _protocol_NSURLSessionDataDelegate = objc.getProtocol( - "NSURLSessionDataDelegate", - _protocol_NSURLSessionDataDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionDelegate_raw(); -final _protocol_NSURLSessionDelegate = objc.getProtocol( - "NSURLSessionDelegate", - _protocol_NSURLSessionDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionDownloadDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionDownloadDelegate_raw(); -final _protocol_NSURLSessionDownloadDelegate = objc.getProtocol( - "NSURLSessionDownloadDelegate", - _protocol_NSURLSessionDownloadDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionStreamDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionStreamDelegate_raw(); -final _protocol_NSURLSessionStreamDelegate = objc.getProtocol( - "NSURLSessionStreamDelegate", - _protocol_NSURLSessionStreamDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionTaskDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionTaskDelegate_raw(); -final _protocol_NSURLSessionTaskDelegate = objc.getProtocol( - "NSURLSessionTaskDelegate", - _protocol_NSURLSessionTaskDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionWebSocketDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionWebSocketDelegate_raw(); -final _protocol_NSURLSessionWebSocketDelegate = objc.getProtocol( - "NSURLSessionWebSocketDelegate", - _protocol_NSURLSessionWebSocketDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSUserActivityDelegate', -) -external ffi.Pointer -_protocol_NSUserActivityDelegate_raw(); -final _protocol_NSUserActivityDelegate = objc.getProtocol( - "NSUserActivityDelegate", - _protocol_NSUserActivityDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSUserNotificationCenterDelegate', -) -external ffi.Pointer -_protocol_NSUserNotificationCenterDelegate_raw(); -final _protocol_NSUserNotificationCenterDelegate = objc.getProtocol( - "NSUserNotificationCenterDelegate", - _protocol_NSUserNotificationCenterDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSXMLParserDelegate', -) -external ffi.Pointer _protocol_NSXMLParserDelegate_raw(); -final _protocol_NSXMLParserDelegate = objc.getProtocol( - "NSXMLParserDelegate", - _protocol_NSXMLParserDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSXPCListenerDelegate', -) -external ffi.Pointer -_protocol_NSXPCListenerDelegate_raw(); -final _protocol_NSXPCListenerDelegate = objc.getProtocol( - "NSXPCListenerDelegate", - _protocol_NSXPCListenerDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSXPCProxyCreating', -) -external ffi.Pointer _protocol_NSXPCProxyCreating_raw(); -final _protocol_NSXPCProxyCreating = objc.getProtocol( - "NSXPCProxyCreating", - _protocol_NSXPCProxyCreating_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_data', -) -external ffi.Pointer _protocol_OS_dispatch_data_raw(); -final _protocol_OS_dispatch_data = objc.getProtocol( - "OS_dispatch_data", - _protocol_OS_dispatch_data_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_group', -) -external ffi.Pointer _protocol_OS_dispatch_group_raw(); -final _protocol_OS_dispatch_group = objc.getProtocol( - "OS_dispatch_group", - _protocol_OS_dispatch_group_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_io', -) -external ffi.Pointer _protocol_OS_dispatch_io_raw(); -final _protocol_OS_dispatch_io = objc.getProtocol( - "OS_dispatch_io", - _protocol_OS_dispatch_io_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_object', -) -external ffi.Pointer _protocol_OS_dispatch_object_raw(); -final _protocol_OS_dispatch_object = objc.getProtocol( - "OS_dispatch_object", - _protocol_OS_dispatch_object_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue', -) -external ffi.Pointer _protocol_OS_dispatch_queue_raw(); -final _protocol_OS_dispatch_queue = objc.getProtocol( - "OS_dispatch_queue", - _protocol_OS_dispatch_queue_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_attr', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_attr_raw(); -final _protocol_OS_dispatch_queue_attr = objc.getProtocol( - "OS_dispatch_queue_attr", - _protocol_OS_dispatch_queue_attr_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_concurrent', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_concurrent_raw(); -final _protocol_OS_dispatch_queue_concurrent = objc.getProtocol( - "OS_dispatch_queue_concurrent", - _protocol_OS_dispatch_queue_concurrent_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_global', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_global_raw(); -final _protocol_OS_dispatch_queue_global = objc.getProtocol( - "OS_dispatch_queue_global", - _protocol_OS_dispatch_queue_global_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_main', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_main_raw(); -final _protocol_OS_dispatch_queue_main = objc.getProtocol( - "OS_dispatch_queue_main", - _protocol_OS_dispatch_queue_main_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_serial', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_serial_raw(); -final _protocol_OS_dispatch_queue_serial = objc.getProtocol( - "OS_dispatch_queue_serial", - _protocol_OS_dispatch_queue_serial_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_serial_executor', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_serial_executor_raw(); -final _protocol_OS_dispatch_queue_serial_executor = objc.getProtocol( - "OS_dispatch_queue_serial_executor", - _protocol_OS_dispatch_queue_serial_executor_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_semaphore', -) -external ffi.Pointer -_protocol_OS_dispatch_semaphore_raw(); -final _protocol_OS_dispatch_semaphore = objc.getProtocol( - "OS_dispatch_semaphore", - _protocol_OS_dispatch_semaphore_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_source', -) -external ffi.Pointer _protocol_OS_dispatch_source_raw(); -final _protocol_OS_dispatch_source = objc.getProtocol( - "OS_dispatch_source", - _protocol_OS_dispatch_source_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_workloop', -) -external ffi.Pointer -_protocol_OS_dispatch_workloop_raw(); -final _protocol_OS_dispatch_workloop = objc.getProtocol( - "OS_dispatch_workloop", - _protocol_OS_dispatch_workloop_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_os_workgroup_interval', -) -external ffi.Pointer -_protocol_OS_os_workgroup_interval_raw(); -final _protocol_OS_os_workgroup_interval = objc.getProtocol( - "OS_os_workgroup_interval", - _protocol_OS_os_workgroup_interval_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_os_workgroup_parallel', -) -external ffi.Pointer -_protocol_OS_os_workgroup_parallel_raw(); -final _protocol_OS_os_workgroup_parallel = objc.getProtocol( - "OS_os_workgroup_parallel", - _protocol_OS_os_workgroup_parallel_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_certificate', -) -external ffi.Pointer _protocol_OS_sec_certificate_raw(); -final _protocol_OS_sec_certificate = objc.getProtocol( - "OS_sec_certificate", - _protocol_OS_sec_certificate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_identity', -) -external ffi.Pointer _protocol_OS_sec_identity_raw(); -final _protocol_OS_sec_identity = objc.getProtocol( - "OS_sec_identity", - _protocol_OS_sec_identity_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_object', -) -external ffi.Pointer _protocol_OS_sec_object_raw(); -final _protocol_OS_sec_object = objc.getProtocol( - "OS_sec_object", - _protocol_OS_sec_object_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_protocol_metadata', -) -external ffi.Pointer -_protocol_OS_sec_protocol_metadata_raw(); -final _protocol_OS_sec_protocol_metadata = objc.getProtocol( - "OS_sec_protocol_metadata", - _protocol_OS_sec_protocol_metadata_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_protocol_options', -) -external ffi.Pointer -_protocol_OS_sec_protocol_options_raw(); -final _protocol_OS_sec_protocol_options = objc.getProtocol( - "OS_sec_protocol_options", - _protocol_OS_sec_protocol_options_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_trust', -) -external ffi.Pointer _protocol_OS_sec_trust_raw(); -final _protocol_OS_sec_trust = objc.getProtocol( - "OS_sec_trust", - _protocol_OS_sec_trust_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_xpc_listener', -) -external ffi.Pointer _protocol_OS_xpc_listener_raw(); -final _protocol_OS_xpc_listener = objc.getProtocol( - "OS_xpc_listener", - _protocol_OS_xpc_listener_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_xpc_object', -) -external ffi.Pointer _protocol_OS_xpc_object_raw(); -final _protocol_OS_xpc_object = objc.getProtocol( - "OS_xpc_object", - _protocol_OS_xpc_object_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_xpc_peer_requirement', -) -external ffi.Pointer -_protocol_OS_xpc_peer_requirement_raw(); -final _protocol_OS_xpc_peer_requirement = objc.getProtocol( - "OS_xpc_peer_requirement", - _protocol_OS_xpc_peer_requirement_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_xpc_session', -) -external ffi.Pointer _protocol_OS_xpc_session_raw(); -final _protocol_OS_xpc_session = objc.getProtocol( - "OS_xpc_session", - _protocol_OS_xpc_session_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_PDEPanel', -) -external ffi.Pointer _protocol_PDEPanel_raw(); -final _protocol_PDEPanel = objc.getProtocol("PDEPanel", _protocol_PDEPanel_raw); -@ffi.Native Function()>( - symbol: '_1uu024u_PDEPlugIn', -) -external ffi.Pointer _protocol_PDEPlugIn_raw(); -final _protocol_PDEPlugIn = objc.getProtocol( - "PDEPlugIn", - _protocol_PDEPlugIn_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_PDEPlugInCallbackProtocol', -) -external ffi.Pointer -_protocol_PDEPlugInCallbackProtocol_raw(); -final _protocol_PDEPlugInCallbackProtocol = objc.getProtocol( - "PDEPlugInCallbackProtocol", - _protocol_PDEPlugInCallbackProtocol_raw, -); -late final _sel_HTTPBody = objc.registerName("HTTPBody"); -late final _sel_HTTPBodyStream = objc.registerName("HTTPBodyStream"); -late final _sel_HTTPMethod = objc.registerName("HTTPMethod"); -late final _sel_HTTPShouldHandleCookies = objc.registerName( - "HTTPShouldHandleCookies", -); -late final _sel_HTTPShouldUsePipelining = objc.registerName( - "HTTPShouldUsePipelining", -); -late final _sel_IOBufferDuration = objc.registerName("IOBufferDuration"); -late final _sel_ISOCountryCodes = objc.registerName("ISOCountryCodes"); -late final _sel_ISOCurrencyCodes = objc.registerName("ISOCurrencyCodes"); -late final _sel_ISOLanguageCodes = objc.registerName("ISOLanguageCodes"); -late final _sel_PDEPanelsForType_withHostInfo_ = objc.registerName( - "PDEPanelsForType:withHostInfo:", -); -late final _sel_PMPrinter = objc.registerName("PMPrinter"); -late final _sel_PPDOptionKeyValueDidChange_ppdChoice_ = objc.registerName( - "PPDOptionKeyValueDidChange:ppdChoice:", -); -late final _sel_URL = objc.registerName("URL"); -late final _sel_URLByAppendingPathComponent_ = objc.registerName( - "URLByAppendingPathComponent:", -); -late final _sel_URLByAppendingPathComponent_isDirectory_ = objc.registerName( - "URLByAppendingPathComponent:isDirectory:", -); -late final _sel_URLByAppendingPathExtension_ = objc.registerName( - "URLByAppendingPathExtension:", -); -late final _sel_URLByDeletingLastPathComponent = objc.registerName( - "URLByDeletingLastPathComponent", -); -late final _sel_URLByDeletingPathExtension = objc.registerName( - "URLByDeletingPathExtension", -); -late final _sel_URLByResolvingSymlinksInPath = objc.registerName( - "URLByResolvingSymlinksInPath", -); -late final _sel_URLByStandardizingPath = objc.registerName( - "URLByStandardizingPath", -); -late final _sel_URLFragmentAllowedCharacterSet = objc.registerName( - "URLFragmentAllowedCharacterSet", -); -late final _sel_URLHandleResourceDidBeginLoading_ = objc.registerName( - "URLHandleResourceDidBeginLoading:", -); -late final _sel_URLHandleResourceDidCancelLoading_ = objc.registerName( - "URLHandleResourceDidCancelLoading:", -); -late final _sel_URLHandleResourceDidFinishLoading_ = objc.registerName( - "URLHandleResourceDidFinishLoading:", -); -late final _sel_URLHandleUsingCache_ = objc.registerName( - "URLHandleUsingCache:", -); -late final _sel_URLHandle_resourceDataDidBecomeAvailable_ = objc.registerName( - "URLHandle:resourceDataDidBecomeAvailable:", -); -late final _sel_URLHandle_resourceDidFailLoadingWithReason_ = objc.registerName( - "URLHandle:resourceDidFailLoadingWithReason:", -); -late final _sel_URLHostAllowedCharacterSet = objc.registerName( - "URLHostAllowedCharacterSet", -); -late final _sel_URLPasswordAllowedCharacterSet = objc.registerName( - "URLPasswordAllowedCharacterSet", -); -late final _sel_URLPathAllowedCharacterSet = objc.registerName( - "URLPathAllowedCharacterSet", -); -late final _sel_URLProtocolDidFinishLoading_ = objc.registerName( - "URLProtocolDidFinishLoading:", -); -late final _sel_URLProtocol_cachedResponseIsValid_ = objc.registerName( - "URLProtocol:cachedResponseIsValid:", -); -late final _sel_URLProtocol_didCancelAuthenticationChallenge_ = objc - .registerName("URLProtocol:didCancelAuthenticationChallenge:"); -late final _sel_URLProtocol_didFailWithError_ = objc.registerName( - "URLProtocol:didFailWithError:", -); -late final _sel_URLProtocol_didLoadData_ = objc.registerName( - "URLProtocol:didLoadData:", -); -late final _sel_URLProtocol_didReceiveAuthenticationChallenge_ = objc - .registerName("URLProtocol:didReceiveAuthenticationChallenge:"); -late final _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_ = objc - .registerName("URLProtocol:didReceiveResponse:cacheStoragePolicy:"); -late final _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_ = objc - .registerName("URLProtocol:wasRedirectedToRequest:redirectResponse:"); -late final _sel_URLQueryAllowedCharacterSet = objc.registerName( - "URLQueryAllowedCharacterSet", -); -late final _sel_URLResourceDidCancelLoading_ = objc.registerName( - "URLResourceDidCancelLoading:", -); -late final _sel_URLResourceDidFinishLoading_ = objc.registerName( - "URLResourceDidFinishLoading:", -); -late final _sel_URLSessionDidFinishEventsForBackgroundURLSession_ = objc - .registerName("URLSessionDidFinishEventsForBackgroundURLSession:"); -late final _sel_URLSession_betterRouteDiscoveredForStreamTask_ = objc - .registerName("URLSession:betterRouteDiscoveredForStreamTask:"); -late final _sel_URLSession_dataTask_didBecomeDownloadTask_ = objc.registerName( - "URLSession:dataTask:didBecomeDownloadTask:", -); -late final _sel_URLSession_dataTask_didBecomeStreamTask_ = objc.registerName( - "URLSession:dataTask:didBecomeStreamTask:", -); -late final _sel_URLSession_dataTask_didReceiveData_ = objc.registerName( - "URLSession:dataTask:didReceiveData:", -); -late final _sel_URLSession_dataTask_didReceiveResponse_completionHandler_ = objc - .registerName("URLSession:dataTask:didReceiveResponse:completionHandler:"); -late final _sel_URLSession_dataTask_willCacheResponse_completionHandler_ = objc - .registerName("URLSession:dataTask:willCacheResponse:completionHandler:"); -late final _sel_URLSession_didBecomeInvalidWithError_ = objc.registerName( - "URLSession:didBecomeInvalidWithError:", -); -late final _sel_URLSession_didCreateTask_ = objc.registerName( - "URLSession:didCreateTask:", -); -late final _sel_URLSession_didReceiveChallenge_completionHandler_ = objc - .registerName("URLSession:didReceiveChallenge:completionHandler:"); -late final _sel_URLSession_downloadTask_didFinishDownloadingToURL_ = objc - .registerName("URLSession:downloadTask:didFinishDownloadingToURL:"); -late final _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ = - objc.registerName( - "URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:", - ); -late final _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ = - objc.registerName( - "URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:", - ); -late final _sel_URLSession_readClosedForStreamTask_ = objc.registerName( - "URLSession:readClosedForStreamTask:", -); -late final _sel_URLSession_streamTask_didBecomeInputStream_outputStream_ = objc - .registerName("URLSession:streamTask:didBecomeInputStream:outputStream:"); -late final _sel_URLSession_taskIsWaitingForConnectivity_ = objc.registerName( - "URLSession:taskIsWaitingForConnectivity:", -); -late final _sel_URLSession_task_didCompleteWithError_ = objc.registerName( - "URLSession:task:didCompleteWithError:", -); -late final _sel_URLSession_task_didFinishCollectingMetrics_ = objc.registerName( - "URLSession:task:didFinishCollectingMetrics:", -); -late final _sel_URLSession_task_didReceiveChallenge_completionHandler_ = objc - .registerName("URLSession:task:didReceiveChallenge:completionHandler:"); -late final _sel_URLSession_task_didReceiveInformationalResponse_ = objc - .registerName("URLSession:task:didReceiveInformationalResponse:"); -late final _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.registerName( - "URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:", - ); -late final _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.registerName( - "URLSession:task:needNewBodyStreamFromOffset:completionHandler:", - ); -late final _sel_URLSession_task_needNewBodyStream_ = objc.registerName( - "URLSession:task:needNewBodyStream:", -); -late final _sel_URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.registerName( - "URLSession:task:willBeginDelayedRequest:completionHandler:", - ); -late final _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.registerName( - "URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:", - ); -late final _sel_URLSession_webSocketTask_didCloseWithCode_reason_ = objc - .registerName("URLSession:webSocketTask:didCloseWithCode:reason:"); -late final _sel_URLSession_webSocketTask_didOpenWithProtocol_ = objc - .registerName("URLSession:webSocketTask:didOpenWithProtocol:"); -late final _sel_URLSession_writeClosedForStreamTask_ = objc.registerName( - "URLSession:writeClosedForStreamTask:", -); -late final _sel_URLUserAllowedCharacterSet = objc.registerName( - "URLUserAllowedCharacterSet", -); -late final _sel_URL_resourceDataDidBecomeAvailable_ = objc.registerName( - "URL:resourceDataDidBecomeAvailable:", -); -late final _sel_URL_resourceDidFailLoadingWithReason_ = objc.registerName( - "URL:resourceDidFailLoadingWithReason:", -); -late final _sel_abbreviation = objc.registerName("abbreviation"); -late final _sel_abbreviationDictionary = objc.registerName( - "abbreviationDictionary", -); -late final _sel_acceptConnectionInBackgroundAndNotify = objc.registerName( - "acceptConnectionInBackgroundAndNotify", -); -late final _sel_acceptConnectionInBackgroundAndNotifyForModes_ = objc - .registerName("acceptConnectionInBackgroundAndNotifyForModes:"); -late final _sel_accessInstanceVariablesDirectly = objc.registerName( - "accessInstanceVariablesDirectly", -); -late final _sel_accommodatePresentedItemDeletionWithCompletionHandler_ = objc - .registerName("accommodatePresentedItemDeletionWithCompletionHandler:"); -late final _sel_accommodatePresentedItemEvictionWithCompletionHandler_ = objc - .registerName("accommodatePresentedItemEvictionWithCompletionHandler:"); -late final _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_ = - objc.registerName( - "accommodatePresentedSubitemDeletionAtURL:completionHandler:", - ); -late final _sel_activateWithOptions_completionHandler_ = objc.registerName( - "activateWithOptions:completionHandler:", -); -late final _sel_addAttribute_value_range_ = objc.registerName( - "addAttribute:value:range:", -); -late final _sel_addAttributes_range_ = objc.registerName( - "addAttributes:range:", -); -late final _sel_addFileWithPath_ = objc.registerName("addFileWithPath:"); -late final _sel_addObserver_forKeyPath_options_context_ = objc.registerName( - "addObserver:forKeyPath:options:context:", -); -late final _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_ = - objc.registerName( - "addObserver:toObjectsAtIndexes:forKeyPath:options:context:", - ); -late final _sel_addSymbolicLinkWithDestination_preferredFilename_ = objc - .registerName("addSymbolicLinkWithDestination:preferredFilename:"); -late final _sel_addValue_forHTTPHeaderField_ = objc.registerName( - "addValue:forHTTPHeaderField:", -); -late final _sel_addressCheckingResultWithRange_components_ = objc.registerName( - "addressCheckingResultWithRange:components:", -); -late final _sel_addressComponents = objc.registerName("addressComponents"); -late final _sel_allHTTPHeaderFields = objc.registerName("allHTTPHeaderFields"); -late final _sel_allLanguages = objc.registerName("allLanguages"); -late final _sel_allObjects = objc.registerName("allObjects"); -late final _sel_allScripts = objc.registerName("allScripts"); -late final _sel_alloc = objc.registerName("alloc"); -late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); -late final _sel_allowedClasses = objc.registerName("allowedClasses"); -late final _sel_allowsKeyedCoding = objc.registerName("allowsKeyedCoding"); -late final _sel_allowsNaturalLanguage = objc.registerName( - "allowsNaturalLanguage", -); -late final _sel_alternateQuotationBeginDelimiter = objc.registerName( - "alternateQuotationBeginDelimiter", -); -late final _sel_alternateQuotationEndDelimiter = objc.registerName( - "alternateQuotationEndDelimiter", -); -late final _sel_alternativeStrings = objc.registerName("alternativeStrings"); -late final _sel_appendAttributedString_ = objc.registerName( - "appendAttributedString:", -); -late final _sel_appendFormat_ = objc.registerName("appendFormat:"); -late final _sel_appendLocalizedFormat_ = objc.registerName( - "appendLocalizedFormat:", -); -late final _sel_appendString_ = objc.registerName("appendString:"); -late final _sel_applyDifference_ = objc.registerName("applyDifference:"); -late final _sel_applyTransform_reverse_range_updatedRange_ = objc.registerName( - "applyTransform:reverse:range:updatedRange:", -); -late final _sel_archiverDidFinish_ = objc.registerName("archiverDidFinish:"); -late final _sel_archiverWillFinish_ = objc.registerName("archiverWillFinish:"); -late final _sel_archiver_didEncodeObject_ = objc.registerName( - "archiver:didEncodeObject:", -); -late final _sel_archiver_willEncodeObject_ = objc.registerName( - "archiver:willEncodeObject:", -); -late final _sel_archiver_willReplaceObject_withObject_ = objc.registerName( - "archiver:willReplaceObject:withObject:", -); -late final _sel_arg0 = objc.registerName("arg0"); -late final _sel_arg1 = objc.registerName("arg1"); -late final _sel_arg2 = objc.registerName("arg2"); -late final _sel_arg3 = objc.registerName("arg3"); -late final _sel_arg4 = objc.registerName("arg4"); -late final _sel_arg5 = objc.registerName("arg5"); -late final _sel_array = objc.registerName("array"); -late final _sel_arrayByApplyingDifference_ = objc.registerName( - "arrayByApplyingDifference:", -); -late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); -late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); -late final _sel_arrayWithContentsOfFile_ = objc.registerName( - "arrayWithContentsOfFile:", -); -late final _sel_arrayWithContentsOfURL_ = objc.registerName( - "arrayWithContentsOfURL:", -); -late final _sel_arrayWithContentsOfURL_error_ = objc.registerName( - "arrayWithContentsOfURL:error:", -); -late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); -late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); -late final _sel_arrayWithObjects_count_ = objc.registerName( - "arrayWithObjects:count:", -); -late final _sel_attemptRecoveryFromError_optionIndex_ = objc.registerName( - "attemptRecoveryFromError:optionIndex:", -); -late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_ = - objc.registerName( - "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:", - ); -late final _sel_attributeKeys = objc.registerName("attributeKeys"); -late final _sel_attribute_atIndex_effectiveRange_ = objc.registerName( - "attribute:atIndex:effectiveRange:", -); -late final _sel_attribute_atIndex_longestEffectiveRange_inRange_ = objc - .registerName("attribute:atIndex:longestEffectiveRange:inRange:"); -late final _sel_attributedStringByInflectingString = objc.registerName( - "attributedStringByInflectingString", -); -late final _sel_attributedStringForNil = objc.registerName( - "attributedStringForNil", -); -late final _sel_attributedStringForNotANumber = objc.registerName( - "attributedStringForNotANumber", -); -late final _sel_attributedStringForZero = objc.registerName( - "attributedStringForZero", -); -late final _sel_attributedSubstringFromRange_ = objc.registerName( - "attributedSubstringFromRange:", -); -late final _sel_attributesAtIndex_longestEffectiveRange_inRange_ = objc - .registerName("attributesAtIndex:longestEffectiveRange:inRange:"); -late final _sel_audioPlayerDecodeErrorDidOccur_error_ = objc.registerName( - "audioPlayerDecodeErrorDidOccur:error:", -); -late final _sel_audioPlayerDidFinishPlaying_successfully_ = objc.registerName( - "audioPlayerDidFinishPlaying:successfully:", -); -late final _sel_authenticateComponents_withData_ = objc.registerName( - "authenticateComponents:withData:", -); -late final _sel_authenticationDataForComponents_ = objc.registerName( - "authenticationDataForComponents:", -); -late final _sel_autoContentAccessingProxy = objc.registerName( - "autoContentAccessingProxy", -); -late final _sel_automaticallyNotifiesObserversForKey_ = objc.registerName( - "automaticallyNotifiesObserversForKey:", -); -late final _sel_autoupdatingCurrentLocale = objc.registerName( - "autoupdatingCurrentLocale", -); -late final _sel_availableInputs = objc.registerName("availableInputs"); -late final _sel_availableLocaleIdentifiers = objc.registerName( - "availableLocaleIdentifiers", -); -late final _sel_averagePowerForChannel_ = objc.registerName( - "averagePowerForChannel:", -); -late final _sel_awakeAfterUsingCoder_ = objc.registerName( - "awakeAfterUsingCoder:", -); -late final _sel_backgroundSessionConfiguration_ = objc.registerName( - "backgroundSessionConfiguration:", -); -late final _sel_base64EncodedDataWithOptions_ = objc.registerName( - "base64EncodedDataWithOptions:", -); -late final _sel_base64EncodedStringWithOptions_ = objc.registerName( - "base64EncodedStringWithOptions:", -); -late final _sel_base64Encoding = objc.registerName("base64Encoding"); -late final _sel_beginActivityWithOptions_reason_ = objc.registerName( - "beginActivityWithOptions:reason:", -); -late final _sel_beginContentAccess = objc.registerName("beginContentAccess"); -late final _sel_beginEditing = objc.registerName("beginEditing"); -late final _sel_beginInterruption = objc.registerName("beginInterruption"); -late final _sel_beginRequestWithExtensionContext_ = objc.registerName( - "beginRequestWithExtensionContext:", -); -late final _sel_bluetoothMicrophoneExtension = objc.registerName( - "bluetoothMicrophoneExtension", -); -late final _sel_cString = objc.registerName("cString"); -late final _sel_cStringLength = objc.registerName("cStringLength"); -late final _sel_cache_willEvictObject_ = objc.registerName( - "cache:willEvictObject:", -); -late final _sel_calendarIdentifier = objc.registerName("calendarIdentifier"); -late final _sel_canInflectLanguage_ = objc.registerName("canInflectLanguage:"); -late final _sel_canInflectPreferredLocalization = objc.registerName( - "canInflectPreferredLocalization", -); -late final _sel_canInitWithTask_ = objc.registerName("canInitWithTask:"); -late final _sel_cancelAuthenticationChallenge_ = objc.registerName( - "cancelAuthenticationChallenge:", -); -late final _sel_cancelPerformSelector_target_argument_ = objc.registerName( - "cancelPerformSelector:target:argument:", -); -late final _sel_cancelPerformSelectorsWithTarget_ = objc.registerName( - "cancelPerformSelectorsWithTarget:", -); -late final _sel_cancelPreviousPerformRequestsWithTarget_ = objc.registerName( - "cancelPreviousPerformRequestsWithTarget:", -); -late final _sel_cancelPreviousPerformRequestsWithTarget_selector_object_ = objc - .registerName("cancelPreviousPerformRequestsWithTarget:selector:object:"); -late final _sel_canonicalLanguageIdentifierFromString_ = objc.registerName( - "canonicalLanguageIdentifierFromString:", -); -late final _sel_canonicalLocaleIdentifierFromString_ = objc.registerName( - "canonicalLocaleIdentifierFromString:", -); -late final _sel_certificates = objc.registerName("certificates"); -late final _sel_channelAssignments = objc.registerName("channelAssignments"); -late final _sel_characterDirectionForLanguage_ = objc.registerName( - "characterDirectionForLanguage:", -); -late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( - "checkPromisedItemIsReachableAndReturnError:", -); -late final _sel_checkResourceIsReachableAndReturnError_ = objc.registerName( - "checkResourceIsReachableAndReturnError:", -); -late final _sel_classCode = objc.registerName("classCode"); -late final _sel_classDescription = objc.registerName("classDescription"); -late final _sel_classFallbacksForKeyedArchiver = objc.registerName( - "classFallbacksForKeyedArchiver", -); -late final _sel_classForArchiver = objc.registerName("classForArchiver"); -late final _sel_classForCoder = objc.registerName("classForCoder"); -late final _sel_classForKeyedArchiver = objc.registerName( - "classForKeyedArchiver", -); -late final _sel_classForKeyedUnarchiver = objc.registerName( - "classForKeyedUnarchiver", -); -late final _sel_classForPortCoder = objc.registerName("classForPortCoder"); -late final _sel_className = objc.registerName("className"); -late final _sel_coerceValue_forKey_ = objc.registerName("coerceValue:forKey:"); -late final _sel_collationIdentifier = objc.registerName("collationIdentifier"); -late final _sel_collatorIdentifier = objc.registerName("collatorIdentifier"); -late final _sel_columnNumber = objc.registerName("columnNumber"); -late final _sel_commonISOCurrencyCodes = objc.registerName( - "commonISOCurrencyCodes", -); -late final _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_ = - objc.registerName( - "completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:", - ); -late final _sel_components = objc.registerName("components"); -late final _sel_componentsFromLocaleIdentifier_ = objc.registerName( - "componentsFromLocaleIdentifier:", -); -late final _sel_compressUsingAlgorithm_error_ = objc.registerName( - "compressUsingAlgorithm:error:", -); -late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( - "compressedDataUsingAlgorithm:error:", -); -late final _sel_configureAsServer = objc.registerName("configureAsServer"); -late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); -late final _sel_connectionDidFinishDownloading_destinationURL_ = objc - .registerName("connectionDidFinishDownloading:destinationURL:"); -late final _sel_connectionDidFinishLoading_ = objc.registerName( - "connectionDidFinishLoading:", -); -late final _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ = - objc.registerName( - "connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:", - ); -late final _sel_connectionShouldUseCredentialStorage_ = objc.registerName( - "connectionShouldUseCredentialStorage:", -); -late final _sel_connection_canAuthenticateAgainstProtectionSpace_ = objc - .registerName("connection:canAuthenticateAgainstProtectionSpace:"); -late final _sel_connection_didCancelAuthenticationChallenge_ = objc - .registerName("connection:didCancelAuthenticationChallenge:"); -late final _sel_connection_didFailWithError_ = objc.registerName( - "connection:didFailWithError:", -); -late final _sel_connection_didReceiveAuthenticationChallenge_ = objc - .registerName("connection:didReceiveAuthenticationChallenge:"); -late final _sel_connection_didReceiveData_ = objc.registerName( - "connection:didReceiveData:", -); -late final _sel_connection_didReceiveResponse_ = objc.registerName( - "connection:didReceiveResponse:", -); -late final _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ = - objc.registerName( - "connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:", - ); -late final _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_ = - objc.registerName( - "connection:didWriteData:totalBytesWritten:expectedTotalBytes:", - ); -late final _sel_connection_handleRequest_ = objc.registerName( - "connection:handleRequest:", -); -late final _sel_connection_needNewBodyStream_ = objc.registerName( - "connection:needNewBodyStream:", -); -late final _sel_connection_shouldMakeNewConnection_ = objc.registerName( - "connection:shouldMakeNewConnection:", -); -late final _sel_connection_willCacheResponse_ = objc.registerName( - "connection:willCacheResponse:", -); -late final _sel_connection_willSendRequestForAuthenticationChallenge_ = objc - .registerName("connection:willSendRequestForAuthenticationChallenge:"); -late final _sel_connection_willSendRequest_redirectResponse_ = objc - .registerName("connection:willSendRequest:redirectResponse:"); -late final _sel_containsValueForKey_ = objc.registerName( - "containsValueForKey:", -); -late final _sel_continueWithoutCredentialForAuthenticationChallenge_ = objc - .registerName("continueWithoutCredentialForAuthenticationChallenge:"); -late final _sel_copyScriptingValue_forKey_withProperties_ = objc.registerName( - "copyScriptingValue:forKey:withProperties:", -); -late final _sel_correctionCheckingResultWithRange_replacementString_ = objc - .registerName("correctionCheckingResultWithRange:replacementString:"); -late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_ = - objc.registerName( - "correctionCheckingResultWithRange:replacementString:alternativeStrings:", - ); -late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( - "countByEnumeratingWithState:objects:count:", -); -late final _sel_countryCode = objc.registerName("countryCode"); -late final _sel_createConversationForConnection_ = objc.registerName( - "createConversationForConnection:", -); -late final _sel_credentialForTrust_ = objc.registerName("credentialForTrust:"); -late final _sel_credentialWithIdentity_certificates_persistence_ = objc - .registerName("credentialWithIdentity:certificates:persistence:"); -late final _sel_credentialWithUser_password_persistence_ = objc.registerName( - "credentialWithUser:password:persistence:", -); -late final _sel_currencyCode = objc.registerName("currencyCode"); -late final _sel_currencySymbol = objc.registerName("currencySymbol"); -late final _sel_currentDevice = objc.registerName("currentDevice"); -late final _sel_currentDirectoryPath = objc.registerName( - "currentDirectoryPath", -); -late final _sel_currentHardwareInputNumberOfChannels = objc.registerName( - "currentHardwareInputNumberOfChannels", -); -late final _sel_currentHardwareOutputNumberOfChannels = objc.registerName( - "currentHardwareOutputNumberOfChannels", -); -late final _sel_currentHardwareSampleRate = objc.registerName( - "currentHardwareSampleRate", -); -late final _sel_currentLocale = objc.registerName("currentLocale"); -late final _sel_currentRoute = objc.registerName("currentRoute"); -late final _sel_currentTime = objc.registerName("currentTime"); -late final _sel_customPronounForLanguage_ = objc.registerName( - "customPronounForLanguage:", -); -late final _sel_dashCheckingResultWithRange_replacementString_ = objc - .registerName("dashCheckingResultWithRange:replacementString:"); -late final _sel_data = objc.registerName("data"); -late final _sel_dataTaskWithRequest_completionHandler_ = objc.registerName( - "dataTaskWithRequest:completionHandler:", -); -late final _sel_dataTaskWithURL_completionHandler_ = objc.registerName( - "dataTaskWithURL:completionHandler:", -); -late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); -late final _sel_dataWithContentsOfMappedFile_ = objc.registerName( - "dataWithContentsOfMappedFile:", -); -late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); -late final _sel_date = objc.registerName("date"); -late final _sel_dateCheckingResultWithRange_date_ = objc.registerName( - "dateCheckingResultWithRange:date:", -); -late final _sel_dateCheckingResultWithRange_date_timeZone_duration_ = objc - .registerName("dateCheckingResultWithRange:date:timeZone:duration:"); -late final _sel_dateWithCalendarFormat_timeZone_ = objc.registerName( - "dateWithCalendarFormat:timeZone:", -); -late final _sel_dateWithNaturalLanguageString_ = objc.registerName( - "dateWithNaturalLanguageString:", -); -late final _sel_dateWithNaturalLanguageString_locale_ = objc.registerName( - "dateWithNaturalLanguageString:locale:", -); -late final _sel_dateWithString_ = objc.registerName("dateWithString:"); -late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( - "dateWithTimeIntervalSince1970:", -); -late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( - "dateWithTimeIntervalSinceNow:", -); -late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( - "dateWithTimeIntervalSinceReferenceDate:", -); -late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( - "dateWithTimeInterval:sinceDate:", -); -late final _sel_daylightSavingTimeOffset = objc.registerName( - "daylightSavingTimeOffset", -); -late final _sel_decimalSeparator = objc.registerName("decimalSeparator"); -late final _sel_decodeArrayOfObjCType_count_at_ = objc.registerName( - "decodeArrayOfObjCType:count:at:", -); -late final _sel_decodeArrayOfObjectsOfClass_forKey_ = objc.registerName( - "decodeArrayOfObjectsOfClass:forKey:", -); -late final _sel_decodeArrayOfObjectsOfClasses_forKey_ = objc.registerName( - "decodeArrayOfObjectsOfClasses:forKey:", -); -late final _sel_decodeBoolForKey_ = objc.registerName("decodeBoolForKey:"); -late final _sel_decodeBytesForKey_minimumLength_ = objc.registerName( - "decodeBytesForKey:minimumLength:", -); -late final _sel_decodeBytesForKey_returnedLength_ = objc.registerName( - "decodeBytesForKey:returnedLength:", -); -late final _sel_decodeBytesWithMinimumLength_ = objc.registerName( - "decodeBytesWithMinimumLength:", -); -late final _sel_decodeBytesWithReturnedLength_ = objc.registerName( - "decodeBytesWithReturnedLength:", -); -late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_ = objc - .registerName("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); -late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_ = - objc.registerName( - "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:", - ); -late final _sel_decodeDoubleForKey_ = objc.registerName("decodeDoubleForKey:"); -late final _sel_decodeFloatForKey_ = objc.registerName("decodeFloatForKey:"); -late final _sel_decodeInt32ForKey_ = objc.registerName("decodeInt32ForKey:"); -late final _sel_decodeInt64ForKey_ = objc.registerName("decodeInt64ForKey:"); -late final _sel_decodeIntForKey_ = objc.registerName("decodeIntForKey:"); -late final _sel_decodeIntegerForKey_ = objc.registerName( - "decodeIntegerForKey:", -); -late final _sel_decodeNXObject = objc.registerName("decodeNXObject"); -late final _sel_decodeObject = objc.registerName("decodeObject"); -late final _sel_decodeObjectForKey_ = objc.registerName("decodeObjectForKey:"); -late final _sel_decodeObjectOfClass_forKey_ = objc.registerName( - "decodeObjectOfClass:forKey:", -); -late final _sel_decodeObjectOfClasses_forKey_ = objc.registerName( - "decodeObjectOfClasses:forKey:", -); -late final _sel_decodePoint = objc.registerName("decodePoint"); -late final _sel_decodePointForKey_ = objc.registerName("decodePointForKey:"); -late final _sel_decodePropertyList = objc.registerName("decodePropertyList"); -late final _sel_decodePropertyListForKey_ = objc.registerName( - "decodePropertyListForKey:", -); -late final _sel_decodeRect = objc.registerName("decodeRect"); -late final _sel_decodeRectForKey_ = objc.registerName("decodeRectForKey:"); -late final _sel_decodeSize = objc.registerName("decodeSize"); -late final _sel_decodeSizeForKey_ = objc.registerName("decodeSizeForKey:"); -late final _sel_decodeTopLevelObjectAndReturnError_ = objc.registerName( - "decodeTopLevelObjectAndReturnError:", -); -late final _sel_decodeTopLevelObjectForKey_error_ = objc.registerName( - "decodeTopLevelObjectForKey:error:", -); -late final _sel_decodeTopLevelObjectOfClass_forKey_error_ = objc.registerName( - "decodeTopLevelObjectOfClass:forKey:error:", -); -late final _sel_decodeTopLevelObjectOfClasses_forKey_error_ = objc.registerName( - "decodeTopLevelObjectOfClasses:forKey:error:", -); -late final _sel_decodeValueOfObjCType_at_ = objc.registerName( - "decodeValueOfObjCType:at:", -); -late final _sel_decodeValuesOfObjCTypes_ = objc.registerName( - "decodeValuesOfObjCTypes:", -); -late final _sel_decodingFailurePolicy = objc.registerName( - "decodingFailurePolicy", -); -late final _sel_decompressUsingAlgorithm_error_ = objc.registerName( - "decompressUsingAlgorithm:error:", -); -late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( - "decompressedDataUsingAlgorithm:error:", -); -late final _sel_defaultTimeZone = objc.registerName("defaultTimeZone"); -late final _sel_delegate = objc.registerName("delegate"); -late final _sel_deleteCharactersInRange_ = objc.registerName( - "deleteCharactersInRange:", -); -late final _sel_description = objc.registerName("description"); -late final _sel_descriptionWithCalendarFormat_timeZone_locale_ = objc - .registerName("descriptionWithCalendarFormat:timeZone:locale:"); -late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); -late final _sel_dictionary = objc.registerName("dictionary"); -late final _sel_dictionaryWithCapacity_ = objc.registerName( - "dictionaryWithCapacity:", -); -late final _sel_dictionaryWithContentsOfFile_ = objc.registerName( - "dictionaryWithContentsOfFile:", -); -late final _sel_dictionaryWithContentsOfURL_ = objc.registerName( - "dictionaryWithContentsOfURL:", -); -late final _sel_dictionaryWithContentsOfURL_error_ = objc.registerName( - "dictionaryWithContentsOfURL:error:", -); -late final _sel_dictionaryWithDictionary_ = objc.registerName( - "dictionaryWithDictionary:", -); -late final _sel_dictionaryWithObject_forKey_ = objc.registerName( - "dictionaryWithObject:forKey:", -); -late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( - "dictionaryWithObjectsAndKeys:", -); -late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( - "dictionaryWithObjects:forKeys:", -); -late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( - "dictionaryWithObjects:forKeys:count:", -); -late final _sel_dictionaryWithSharedKeySet_ = objc.registerName( - "dictionaryWithSharedKeySet:", -); -late final _sel_dictionaryWithValuesForKeys_ = objc.registerName( - "dictionaryWithValuesForKeys:", -); -late final _sel_didChangeValueForKey_ = objc.registerName( - "didChangeValueForKey:", -); -late final _sel_didChangeValueForKey_withSetMutation_usingObjects_ = objc - .registerName("didChangeValueForKey:withSetMutation:usingObjects:"); -late final _sel_didChange_valuesAtIndexes_forKey_ = objc.registerName( - "didChange:valuesAtIndexes:forKey:", -); -late final _sel_differenceFromArray_ = objc.registerName( - "differenceFromArray:", -); -late final _sel_differenceFromArray_withOptions_ = objc.registerName( - "differenceFromArray:withOptions:", -); -late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_ = objc - .registerName("differenceFromArray:withOptions:usingEquivalenceTest:"); -late final _sel_differenceFromOrderedSet_ = objc.registerName( - "differenceFromOrderedSet:", -); -late final _sel_differenceFromOrderedSet_withOptions_ = objc.registerName( - "differenceFromOrderedSet:withOptions:", -); -late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_ = - objc.registerName( - "differenceFromOrderedSet:withOptions:usingEquivalenceTest:", - ); -late final _sel_discardContentIfPossible = objc.registerName( - "discardContentIfPossible", -); -late final _sel_distantFuture = objc.registerName("distantFuture"); -late final _sel_distantPast = objc.registerName("distantPast"); -late final _sel_distinguishedNames = objc.registerName("distinguishedNames"); -late final _sel_doesContain_ = objc.registerName("doesContain:"); -late final _sel_dominantLanguage = objc.registerName("dominantLanguage"); -late final _sel_dominantLanguageForScript_ = objc.registerName( - "dominantLanguageForScript:", -); -late final _sel_downloadDidBegin_ = objc.registerName("downloadDidBegin:"); -late final _sel_downloadDidFinish_ = objc.registerName("downloadDidFinish:"); -late final _sel_downloadShouldUseCredentialStorage_ = objc.registerName( - "downloadShouldUseCredentialStorage:", -); -late final _sel_downloadTaskWithRequest_completionHandler_ = objc.registerName( - "downloadTaskWithRequest:completionHandler:", -); -late final _sel_downloadTaskWithResumeData_completionHandler_ = objc - .registerName("downloadTaskWithResumeData:completionHandler:"); -late final _sel_downloadTaskWithURL_completionHandler_ = objc.registerName( - "downloadTaskWithURL:completionHandler:", -); -late final _sel_download_canAuthenticateAgainstProtectionSpace_ = objc - .registerName("download:canAuthenticateAgainstProtectionSpace:"); -late final _sel_download_decideDestinationWithSuggestedFilename_ = objc - .registerName("download:decideDestinationWithSuggestedFilename:"); -late final _sel_download_didCancelAuthenticationChallenge_ = objc.registerName( - "download:didCancelAuthenticationChallenge:", -); -late final _sel_download_didCreateDestination_ = objc.registerName( - "download:didCreateDestination:", -); -late final _sel_download_didFailWithError_ = objc.registerName( - "download:didFailWithError:", -); -late final _sel_download_didReceiveAuthenticationChallenge_ = objc.registerName( - "download:didReceiveAuthenticationChallenge:", -); -late final _sel_download_didReceiveDataOfLength_ = objc.registerName( - "download:didReceiveDataOfLength:", -); -late final _sel_download_didReceiveResponse_ = objc.registerName( - "download:didReceiveResponse:", -); -late final _sel_download_shouldDecodeSourceDataOfMIMEType_ = objc.registerName( - "download:shouldDecodeSourceDataOfMIMEType:", -); -late final _sel_download_willResumeWithResponse_fromByte_ = objc.registerName( - "download:willResumeWithResponse:fromByte:", -); -late final _sel_download_willSendRequest_redirectResponse_ = objc.registerName( - "download:willSendRequest:redirectResponse:", -); -late final _sel_duration = objc.registerName("duration"); -late final _sel_edgeInsetsValue = objc.registerName("edgeInsetsValue"); -late final _sel_enableRate = objc.registerName("enableRate"); -late final _sel_encodeArrayOfObjCType_count_at_ = objc.registerName( - "encodeArrayOfObjCType:count:at:", -); -late final _sel_encodeBool_forKey_ = objc.registerName("encodeBool:forKey:"); -late final _sel_encodeBycopyObject_ = objc.registerName("encodeBycopyObject:"); -late final _sel_encodeByrefObject_ = objc.registerName("encodeByrefObject:"); -late final _sel_encodeBytes_length_ = objc.registerName("encodeBytes:length:"); -late final _sel_encodeBytes_length_forKey_ = objc.registerName( - "encodeBytes:length:forKey:", -); -late final _sel_encodeConditionalObject_ = objc.registerName( - "encodeConditionalObject:", -); -late final _sel_encodeConditionalObject_forKey_ = objc.registerName( - "encodeConditionalObject:forKey:", -); -late final _sel_encodeDouble_forKey_ = objc.registerName( - "encodeDouble:forKey:", -); -late final _sel_encodeFloat_forKey_ = objc.registerName("encodeFloat:forKey:"); -late final _sel_encodeInt32_forKey_ = objc.registerName("encodeInt32:forKey:"); -late final _sel_encodeInt64_forKey_ = objc.registerName("encodeInt64:forKey:"); -late final _sel_encodeInt_forKey_ = objc.registerName("encodeInt:forKey:"); -late final _sel_encodeInteger_forKey_ = objc.registerName( - "encodeInteger:forKey:", -); -late final _sel_encodeNXObject_ = objc.registerName("encodeNXObject:"); -late final _sel_encodeObject_ = objc.registerName("encodeObject:"); -late final _sel_encodeObject_forKey_ = objc.registerName( - "encodeObject:forKey:", -); -late final _sel_encodePoint_ = objc.registerName("encodePoint:"); -late final _sel_encodePoint_forKey_ = objc.registerName("encodePoint:forKey:"); -late final _sel_encodePropertyList_ = objc.registerName("encodePropertyList:"); -late final _sel_encodeRect_ = objc.registerName("encodeRect:"); -late final _sel_encodeRect_forKey_ = objc.registerName("encodeRect:forKey:"); -late final _sel_encodeRootObject_ = objc.registerName("encodeRootObject:"); -late final _sel_encodeSize_ = objc.registerName("encodeSize:"); -late final _sel_encodeSize_forKey_ = objc.registerName("encodeSize:forKey:"); -late final _sel_encodeValuesOfObjCTypes_ = objc.registerName( - "encodeValuesOfObjCTypes:", -); -late final _sel_endActivity_ = objc.registerName("endActivity:"); -late final _sel_endContentAccess = objc.registerName("endContentAccess"); -late final _sel_endEditing = objc.registerName("endEditing"); -late final _sel_endInterruption = objc.registerName("endInterruption"); -late final _sel_endInterruptionWithFlags_ = objc.registerName( - "endInterruptionWithFlags:", -); -late final _sel_enumerateAttribute_inRange_options_usingBlock_ = objc - .registerName("enumerateAttribute:inRange:options:usingBlock:"); -late final _sel_enumerateAttributesInRange_options_usingBlock_ = objc - .registerName("enumerateAttributesInRange:options:usingBlock:"); -late final _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_ = - objc.registerName( - "enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:", - ); -late final _sel_enumerateMatchesInString_options_range_usingBlock_ = objc - .registerName("enumerateMatchesInString:options:range:usingBlock:"); -late final _sel_error = objc.registerName("error"); -late final _sel_escapedTemplateForString_ = objc.registerName( - "escapedTemplateForString:", -); -late final _sel_exceptionDuringOperation_error_leftOperand_rightOperand_ = objc - .registerName("exceptionDuringOperation:error:leftOperand:rightOperand:"); -late final _sel_exemplarCharacterSet = objc.registerName( - "exemplarCharacterSet", -); -late final _sel_failWithError_ = objc.registerName("failWithError:"); -late final _sel_fileCreationDate = objc.registerName("fileCreationDate"); -late final _sel_fileDescriptor = objc.registerName("fileDescriptor"); -late final _sel_fileExtensionHidden = objc.registerName("fileExtensionHidden"); -late final _sel_fileGroupOwnerAccountID = objc.registerName( - "fileGroupOwnerAccountID", -); -late final _sel_fileGroupOwnerAccountName = objc.registerName( - "fileGroupOwnerAccountName", -); -late final _sel_fileHFSCreatorCode = objc.registerName("fileHFSCreatorCode"); -late final _sel_fileHFSTypeCode = objc.registerName("fileHFSTypeCode"); -late final _sel_fileHandleWithNullDevice = objc.registerName( - "fileHandleWithNullDevice", -); -late final _sel_fileHandleWithStandardError = objc.registerName( - "fileHandleWithStandardError", -); -late final _sel_fileHandleWithStandardInput = objc.registerName( - "fileHandleWithStandardInput", -); -late final _sel_fileHandleWithStandardOutput = objc.registerName( - "fileHandleWithStandardOutput", -); -late final _sel_fileIsAppendOnly = objc.registerName("fileIsAppendOnly"); -late final _sel_fileIsImmutable = objc.registerName("fileIsImmutable"); -late final _sel_fileManager_shouldCopyItemAtPath_toPath_ = objc.registerName( - "fileManager:shouldCopyItemAtPath:toPath:", -); -late final _sel_fileManager_shouldCopyItemAtURL_toURL_ = objc.registerName( - "fileManager:shouldCopyItemAtURL:toURL:", -); -late final _sel_fileManager_shouldLinkItemAtPath_toPath_ = objc.registerName( - "fileManager:shouldLinkItemAtPath:toPath:", -); -late final _sel_fileManager_shouldLinkItemAtURL_toURL_ = objc.registerName( - "fileManager:shouldLinkItemAtURL:toURL:", -); -late final _sel_fileManager_shouldMoveItemAtPath_toPath_ = objc.registerName( - "fileManager:shouldMoveItemAtPath:toPath:", -); -late final _sel_fileManager_shouldMoveItemAtURL_toURL_ = objc.registerName( - "fileManager:shouldMoveItemAtURL:toURL:", -); -late final _sel_fileManager_shouldProceedAfterError_ = objc.registerName( - "fileManager:shouldProceedAfterError:", -); -late final _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ = - objc.registerName( - "fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:", - ); -late final _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ = - objc.registerName( - "fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:", - ); -late final _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ = - objc.registerName( - "fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:", - ); -late final _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ = - objc.registerName( - "fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:", - ); -late final _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ = - objc.registerName( - "fileManager:shouldProceedAfterError:movingItemAtPath:toPath:", - ); -late final _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ = - objc.registerName( - "fileManager:shouldProceedAfterError:movingItemAtURL:toURL:", - ); -late final _sel_fileManager_shouldProceedAfterError_removingItemAtPath_ = objc - .registerName("fileManager:shouldProceedAfterError:removingItemAtPath:"); -late final _sel_fileManager_shouldProceedAfterError_removingItemAtURL_ = objc - .registerName("fileManager:shouldProceedAfterError:removingItemAtURL:"); -late final _sel_fileManager_shouldRemoveItemAtPath_ = objc.registerName( - "fileManager:shouldRemoveItemAtPath:", -); -late final _sel_fileManager_shouldRemoveItemAtURL_ = objc.registerName( - "fileManager:shouldRemoveItemAtURL:", -); -late final _sel_fileManager_willProcessPath_ = objc.registerName( - "fileManager:willProcessPath:", -); -late final _sel_fileModificationDate = objc.registerName( - "fileModificationDate", -); -late final _sel_fileOwnerAccountID = objc.registerName("fileOwnerAccountID"); -late final _sel_fileOwnerAccountName = objc.registerName( - "fileOwnerAccountName", -); -late final _sel_filePosixPermissions = objc.registerName( - "filePosixPermissions", -); -late final _sel_fileSize = objc.registerName("fileSize"); -late final _sel_fileSystemFileNumber = objc.registerName( - "fileSystemFileNumber", -); -late final _sel_fileSystemNumber = objc.registerName("fileSystemNumber"); -late final _sel_fileSystemRepresentation = objc.registerName( - "fileSystemRepresentation", -); -late final _sel_fileType = objc.registerName("fileType"); -late final _sel_fileURLWithPathComponents_ = objc.registerName( - "fileURLWithPathComponents:", -); -late final _sel_filterUsingPredicate_ = objc.registerName( - "filterUsingPredicate:", -); -late final _sel_filteredArrayUsingPredicate_ = objc.registerName( - "filteredArrayUsingPredicate:", -); -late final _sel_filteredOrderedSetUsingPredicate_ = objc.registerName( - "filteredOrderedSetUsingPredicate:", -); -late final _sel_filteredSetUsingPredicate_ = objc.registerName( - "filteredSetUsingPredicate:", -); -late final _sel_firstMatchInString_options_range_ = objc.registerName( - "firstMatchInString:options:range:", -); -late final _sel_format = objc.registerName("format"); -late final _sel_fullUserName = objc.registerName("fullUserName"); -late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_ = objc - .registerName("getBoundStreamsWithBufferSize:inputStream:outputStream:"); -late final _sel_getBytes_ = objc.registerName("getBytes:"); -late final _sel_getCString_ = objc.registerName("getCString:"); -late final _sel_getCString_maxLength_ = objc.registerName( - "getCString:maxLength:", -); -late final _sel_getCString_maxLength_range_remainingRange_ = objc.registerName( - "getCString:maxLength:range:remainingRange:", -); -late final _sel_getCachedResponseForDataTask_completionHandler_ = objc - .registerName("getCachedResponseForDataTask:completionHandler:"); -late final _sel_getCharacters_ = objc.registerName("getCharacters:"); -late final _sel_getCookiesForTask_completionHandler_ = objc.registerName( - "getCookiesForTask:completionHandler:", -); -late final _sel_getCredentialsForProtectionSpace_task_completionHandler_ = objc - .registerName("getCredentialsForProtectionSpace:task:completionHandler:"); -late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_ = - objc.registerName( - "getDefaultCredentialForProtectionSpace:task:completionHandler:", - ); -late final _sel_getFileSystemRepresentation_maxLength_ = objc.registerName( - "getFileSystemRepresentation:maxLength:", -); -late final _sel_getIndexes_ = objc.registerName("getIndexes:"); -late final _sel_getObjects_ = objc.registerName("getObjects:"); -late final _sel_getObjects_andKeys_ = objc.registerName("getObjects:andKeys:"); -late final _sel_getPromisedItemResourceValue_forKey_error_ = objc.registerName( - "getPromisedItemResourceValue:forKey:error:", -); -late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_ = objc - .registerName("getStreamsToHostWithName:port:inputStream:outputStream:"); -late final _sel_getStreamsToHost_port_inputStream_outputStream_ = objc - .registerName("getStreamsToHost:port:inputStream:outputStream:"); -late final _sel_getValue_ = objc.registerName("getValue:"); -late final _sel_grammarCheckingResultWithRange_details_ = objc.registerName( - "grammarCheckingResultWithRange:details:", -); -late final _sel_grammarDetails = objc.registerName("grammarDetails"); -late final _sel_groupingSeparator = objc.registerName("groupingSeparator"); -late final _sel_handleMachMessage_ = objc.registerName("handleMachMessage:"); -late final _sel_handlePortMessage_ = objc.registerName("handlePortMessage:"); -late final _sel_handleQueryWithUnboundKey_ = objc.registerName( - "handleQueryWithUnboundKey:", -); -late final _sel_handleTakeValue_forUnboundKey_ = objc.registerName( - "handleTakeValue:forUnboundKey:", -); -late final _sel_hasPassword = objc.registerName("hasPassword"); -late final _sel_hasThousandSeparators = objc.registerName( - "hasThousandSeparators", -); -late final _sel_homeDirectoryForCurrentUser = objc.registerName( - "homeDirectoryForCurrentUser", -); -late final _sel_homeDirectoryForUser_ = objc.registerName( - "homeDirectoryForUser:", -); -late final _sel_identity = objc.registerName("identity"); -late final _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_ = objc - .registerName("imageForProposedSize:scaleFactor:imageOffset:imageSize:"); -late final _sel_indicesOfObjectsByEvaluatingObjectSpecifier_ = objc - .registerName("indicesOfObjectsByEvaluatingObjectSpecifier:"); -late final _sel_init = objc.registerName("init"); -late final _sel_initSymbolicLinkWithDestination_ = objc.registerName( - "initSymbolicLinkWithDestination:", -); -late final _sel_initToFileAtPath_append_ = objc.registerName( - "initToFileAtPath:append:", -); -late final _sel_initWithArray_ = objc.registerName("initWithArray:"); -late final _sel_initWithArray_copyItems_ = objc.registerName( - "initWithArray:copyItems:", -); -late final _sel_initWithArray_range_copyItems_ = objc.registerName( - "initWithArray:range:copyItems:", -); -late final _sel_initWithAttributedString_ = objc.registerName( - "initWithAttributedString:", -); -late final _sel_initWithBase64EncodedData_options_ = objc.registerName( - "initWithBase64EncodedData:options:", -); -late final _sel_initWithBase64EncodedString_options_ = objc.registerName( - "initWithBase64EncodedString:options:", -); -late final _sel_initWithBase64Encoding_ = objc.registerName( - "initWithBase64Encoding:", -); -late final _sel_initWithBundle_ = objc.registerName("initWithBundle:"); -late final _sel_initWithCStringNoCopy_length_freeWhenDone_ = objc.registerName( - "initWithCStringNoCopy:length:freeWhenDone:", -); -late final _sel_initWithCString_ = objc.registerName("initWithCString:"); -late final _sel_initWithCString_length_ = objc.registerName( - "initWithCString:length:", -); -late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); -late final _sel_initWithContentsOfFile_ = objc.registerName( - "initWithContentsOfFile:", -); -late final _sel_initWithContentsOfMappedFile_ = objc.registerName( - "initWithContentsOfMappedFile:", -); -late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_ = - objc.registerName( - "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:", - ); -late final _sel_initWithContentsOfURL_ = objc.registerName( - "initWithContentsOfURL:", -); -late final _sel_initWithContentsOfURL_error_ = objc.registerName( - "initWithContentsOfURL:error:", -); -late final _sel_initWithContentsOfURL_fileTypeHint_error_ = objc.registerName( - "initWithContentsOfURL:fileTypeHint:error:", -); -late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); -late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( - "initWithData:fileTypeHint:error:", -); -late final _sel_initWithDateFormat_allowNaturalLanguage_ = objc.registerName( - "initWithDateFormat:allowNaturalLanguage:", -); -late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); -late final _sel_initWithDictionary_copyItems_ = objc.registerName( - "initWithDictionary:copyItems:", -); -late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); -late final _sel_initWithFormat_options_locale_ = objc.registerName( - "initWithFormat:options:locale:", -); -late final _sel_initWithFormat_options_locale_context_ = objc.registerName( - "initWithFormat:options:locale:context:", -); -late final _sel_initWithLength_ = objc.registerName("initWithLength:"); -late final _sel_initWithMarkdownString_options_baseURL_error_ = objc - .registerName("initWithMarkdownString:options:baseURL:error:"); -late final _sel_initWithMarkdown_options_baseURL_error_ = objc.registerName( - "initWithMarkdown:options:baseURL:error:", -); -late final _sel_initWithObject_ = objc.registerName("initWithObject:"); -late final _sel_initWithObjectsAndKeys_ = objc.registerName( - "initWithObjectsAndKeys:", -); -late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); -late final _sel_initWithObjects_forKeys_ = objc.registerName( - "initWithObjects:forKeys:", -); -late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); -late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( - "initWithOrderedSet:copyItems:", -); -late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( - "initWithOrderedSet:range:copyItems:", -); -late final _sel_initWithPath_ = objc.registerName("initWithPath:"); -late final _sel_initWithSet_ = objc.registerName("initWithSet:"); -late final _sel_initWithSet_copyItems_ = objc.registerName( - "initWithSet:copyItems:", -); -late final _sel_initWithString_ = objc.registerName("initWithString:"); -late final _sel_initWithString_attributes_ = objc.registerName( - "initWithString:attributes:", -); -late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( - "initWithTimeIntervalSince1970:", -); -late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( - "initWithTimeIntervalSinceNow:", -); -late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( - "initWithTimeInterval:sinceDate:", -); -late final _sel_inputDataSource = objc.registerName("inputDataSource"); -late final _sel_inputDataSources = objc.registerName("inputDataSources"); -late final _sel_inputGain = objc.registerName("inputGain"); -late final _sel_inputIsAvailable = objc.registerName("inputIsAvailable"); -late final _sel_inputIsAvailableChanged_ = objc.registerName( - "inputIsAvailableChanged:", -); -late final _sel_inputLatency = objc.registerName("inputLatency"); -late final _sel_inputNumberOfChannels = objc.registerName( - "inputNumberOfChannels", -); -late final _sel_inputOrientation = objc.registerName("inputOrientation"); -late final _sel_inputStreamWithData_ = objc.registerName( - "inputStreamWithData:", -); -late final _sel_inputStreamWithFileAtPath_ = objc.registerName( - "inputStreamWithFileAtPath:", -); -late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); -late final _sel_insertAttributedString_atIndex_ = objc.registerName( - "insertAttributedString:atIndex:", -); -late final _sel_insertString_atIndex_ = objc.registerName( - "insertString:atIndex:", -); -late final _sel_insertValue_atIndex_inPropertyWithKey_ = objc.registerName( - "insertValue:atIndex:inPropertyWithKey:", -); -late final _sel_insertValue_inPropertyWithKey_ = objc.registerName( - "insertValue:inPropertyWithKey:", -); -late final _sel_intendedSpatialExperience = objc.registerName( - "intendedSpatialExperience", -); -late final _sel_inverseForRelationshipKey_ = objc.registerName( - "inverseForRelationshipKey:", -); -late final _sel_isAbsolutePath = objc.registerName("isAbsolutePath"); -late final _sel_isAtEnd = objc.registerName("isAtEnd"); -late final _sel_isCaseInsensitiveLike_ = objc.registerName( - "isCaseInsensitiveLike:", -); -late final _sel_isContentDiscarded = objc.registerName("isContentDiscarded"); -late final _sel_isDaylightSavingTime = objc.registerName( - "isDaylightSavingTime", -); -late final _sel_isEqualToAttributedString_ = objc.registerName( - "isEqualToAttributedString:", -); -late final _sel_isEqualToTimeZone_ = objc.registerName("isEqualToTimeZone:"); -late final _sel_isEqualToValue_ = objc.registerName("isEqualToValue:"); -late final _sel_isEqualTo_ = objc.registerName("isEqualTo:"); -late final _sel_isGreaterThanOrEqualTo_ = objc.registerName( - "isGreaterThanOrEqualTo:", -); -late final _sel_isGreaterThan_ = objc.registerName("isGreaterThan:"); -late final _sel_isInputAvailable = objc.registerName("isInputAvailable"); -late final _sel_isInputGainSettable = objc.registerName("isInputGainSettable"); -late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_isLessThanOrEqualTo_ = objc.registerName( - "isLessThanOrEqualTo:", -); -late final _sel_isLessThan_ = objc.registerName("isLessThan:"); -late final _sel_isLike_ = objc.registerName("isLike:"); -late final _sel_isLowPowerModeEnabled = objc.registerName( - "isLowPowerModeEnabled", -); -late final _sel_isMacCatalystApp = objc.registerName("isMacCatalystApp"); -late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); -late final _sel_isMicrophoneInjectionAvailable = objc.registerName( - "isMicrophoneInjectionAvailable", -); -late final _sel_isNotEqualTo_ = objc.registerName("isNotEqualTo:"); -late final _sel_isOtherAudioPlaying = objc.registerName("isOtherAudioPlaying"); -late final _sel_isPlaying = objc.registerName("isPlaying"); -late final _sel_isReadOnlyKey_ = objc.registerName("isReadOnlyKey:"); -late final _sel_isUnspecified = objc.registerName("isUnspecified"); -late final _sel_isiOSAppOnMac = objc.registerName("isiOSAppOnMac"); -late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = - objc.registerName( - "itemProviderVisibilityForRepresentationWithTypeIdentifier:", - ); -late final _sel_keyPathsForValuesAffectingValueForKey_ = objc.registerName( - "keyPathsForValuesAffectingValueForKey:", -); -late final _sel_knownTimeZoneNames = objc.registerName("knownTimeZoneNames"); -late final _sel_languageCode = objc.registerName("languageCode"); -late final _sel_languageIdentifier = objc.registerName("languageIdentifier"); -late final _sel_languagesForScript_ = objc.registerName("languagesForScript:"); -late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); -late final _sel_launch = objc.registerName("launch"); -late final _sel_launchPath = objc.registerName("launchPath"); -late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_ = - objc.registerName( - "launchedTaskWithExecutableURL:arguments:error:terminationHandler:", - ); -late final _sel_launchedTaskWithLaunchPath_arguments_ = objc.registerName( - "launchedTaskWithLaunchPath:arguments:", -); -late final _sel_length = objc.registerName("length"); -late final _sel_lineDirectionForLanguage_ = objc.registerName( - "lineDirectionForLanguage:", -); -late final _sel_lineNumber = objc.registerName("lineNumber"); -late final _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_ = - objc.registerName( - "linguisticTagsInRange:scheme:options:orthography:tokenRanges:", - ); -late final _sel_linkCheckingResultWithRange_URL_ = objc.registerName( - "linkCheckingResultWithRange:URL:", -); -late final _sel_listener_shouldAcceptNewConnection_ = objc.registerName( - "listener:shouldAcceptNewConnection:", -); -late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = - objc.registerName( - "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", - ); -late final _sel_loadPreviewImageWithOptions_completionHandler_ = objc - .registerName("loadPreviewImageWithOptions:completionHandler:"); -late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( - "loadResourceDataNotifyingClient:usingCache:", -); -late final _sel_localTimeZone = objc.registerName("localTimeZone"); -late final _sel_localeIdentifier = objc.registerName("localeIdentifier"); -late final _sel_localeIdentifierFromComponents_ = objc.registerName( - "localeIdentifierFromComponents:", -); -late final _sel_localeIdentifierFromWindowsLocaleCode_ = objc.registerName( - "localeIdentifierFromWindowsLocaleCode:", -); -late final _sel_localeWithLocaleIdentifier_ = objc.registerName( - "localeWithLocaleIdentifier:", -); -late final _sel_localizedAttributedStringWithFormat_ = objc.registerName( - "localizedAttributedStringWithFormat:", -); -late final _sel_localizedAttributedStringWithFormat_context_ = objc - .registerName("localizedAttributedStringWithFormat:context:"); -late final _sel_localizedAttributedStringWithFormat_options_ = objc - .registerName("localizedAttributedStringWithFormat:options:"); -late final _sel_localizedAttributedStringWithFormat_options_context_ = objc - .registerName("localizedAttributedStringWithFormat:options:context:"); -late final _sel_localizedName_locale_ = objc.registerName( - "localizedName:locale:", -); -late final _sel_localizedScannerWithString_ = objc.registerName( - "localizedScannerWithString:", -); -late final _sel_localizedStringForCalendarIdentifier_ = objc.registerName( - "localizedStringForCalendarIdentifier:", -); -late final _sel_localizedStringForCollationIdentifier_ = objc.registerName( - "localizedStringForCollationIdentifier:", -); -late final _sel_localizedStringForCollatorIdentifier_ = objc.registerName( - "localizedStringForCollatorIdentifier:", -); -late final _sel_localizedStringForCountryCode_ = objc.registerName( - "localizedStringForCountryCode:", -); -late final _sel_localizedStringForCurrencyCode_ = objc.registerName( - "localizedStringForCurrencyCode:", -); -late final _sel_localizedStringForLanguageCode_ = objc.registerName( - "localizedStringForLanguageCode:", -); -late final _sel_localizedStringForLocaleIdentifier_ = objc.registerName( - "localizedStringForLocaleIdentifier:", -); -late final _sel_localizedStringForScriptCode_ = objc.registerName( - "localizedStringForScriptCode:", -); -late final _sel_localizedStringForVariantCode_ = objc.registerName( - "localizedStringForVariantCode:", -); -late final _sel_localizesFormat = objc.registerName("localizesFormat"); -late final _sel_lock = objc.registerName("lock"); -late final _sel_lossyCString = objc.registerName("lossyCString"); -late final _sel_makeNewConnection_sender_ = objc.registerName( - "makeNewConnection:sender:", -); -late final _sel_matchesInString_options_range_ = objc.registerName( - "matchesInString:options:range:", -); -late final _sel_maximumInputNumberOfChannels = objc.registerName( - "maximumInputNumberOfChannels", -); -late final _sel_maximumOutputNumberOfChannels = objc.registerName( - "maximumOutputNumberOfChannels", -); -late final _sel_metadataQuery_replacementObjectForResultObject_ = objc - .registerName("metadataQuery:replacementObjectForResultObject:"); -late final _sel_metadataQuery_replacementValueForAttribute_value_ = objc - .registerName("metadataQuery:replacementValueForAttribute:value:"); -late final _sel_mutableArrayValueForKeyPath_ = objc.registerName( - "mutableArrayValueForKeyPath:", -); -late final _sel_mutableArrayValueForKey_ = objc.registerName( - "mutableArrayValueForKey:", -); -late final _sel_mutableOrderedSetValueForKeyPath_ = objc.registerName( - "mutableOrderedSetValueForKeyPath:", -); -late final _sel_mutableOrderedSetValueForKey_ = objc.registerName( - "mutableOrderedSetValueForKey:", -); -late final _sel_mutableSetValueForKeyPath_ = objc.registerName( - "mutableSetValueForKeyPath:", -); -late final _sel_mutableSetValueForKey_ = objc.registerName( - "mutableSetValueForKey:", -); -late final _sel_mutableString = objc.registerName("mutableString"); -late final _sel_needsToBeUpdatedFromPath_ = objc.registerName( - "needsToBeUpdatedFromPath:", -); -late final _sel_netServiceBrowserDidStopSearch_ = objc.registerName( - "netServiceBrowserDidStopSearch:", -); -late final _sel_netServiceBrowserWillSearch_ = objc.registerName( - "netServiceBrowserWillSearch:", -); -late final _sel_netServiceBrowser_didFindDomain_moreComing_ = objc.registerName( - "netServiceBrowser:didFindDomain:moreComing:", -); -late final _sel_netServiceBrowser_didFindService_moreComing_ = objc - .registerName("netServiceBrowser:didFindService:moreComing:"); -late final _sel_netServiceBrowser_didNotSearch_ = objc.registerName( - "netServiceBrowser:didNotSearch:", -); -late final _sel_netServiceBrowser_didRemoveDomain_moreComing_ = objc - .registerName("netServiceBrowser:didRemoveDomain:moreComing:"); -late final _sel_netServiceBrowser_didRemoveService_moreComing_ = objc - .registerName("netServiceBrowser:didRemoveService:moreComing:"); -late final _sel_netServiceDidPublish_ = objc.registerName( - "netServiceDidPublish:", -); -late final _sel_netServiceDidResolveAddress_ = objc.registerName( - "netServiceDidResolveAddress:", -); -late final _sel_netServiceDidStop_ = objc.registerName("netServiceDidStop:"); -late final _sel_netServiceWillPublish_ = objc.registerName( - "netServiceWillPublish:", -); -late final _sel_netServiceWillResolve_ = objc.registerName( - "netServiceWillResolve:", -); -late final _sel_netService_didAcceptConnectionWithInputStream_outputStream_ = - objc.registerName( - "netService:didAcceptConnectionWithInputStream:outputStream:", - ); -late final _sel_netService_didNotPublish_ = objc.registerName( - "netService:didNotPublish:", -); -late final _sel_netService_didNotResolve_ = objc.registerName( - "netService:didNotResolve:", -); -late final _sel_netService_didUpdateTXTRecordData_ = objc.registerName( - "netService:didUpdateTXTRecordData:", -); -late final _sel_new = objc.registerName("new"); -late final _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_ = - objc.registerName( - "newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:", - ); -late final _sel_nextDaylightSavingTimeTransition = objc.registerName( - "nextDaylightSavingTimeTransition", -); -late final _sel_nonretainedObjectValue = objc.registerName( - "nonretainedObjectValue", -); -late final _sel_notificationWithName_object_ = objc.registerName( - "notificationWithName:object:", -); -late final _sel_notificationWithName_object_userInfo_ = objc.registerName( - "notificationWithName:object:userInfo:", -); -late final _sel_now = objc.registerName("now"); -late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); -late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); -late final _sel_numberOfMatchesInString_options_range_ = objc.registerName( - "numberOfMatchesInString:options:range:", -); -late final _sel_numberOfRanges = objc.registerName("numberOfRanges"); -late final _sel_objectSpecifier = objc.registerName("objectSpecifier"); -late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc - .registerName("objectWithItemProviderData:typeIdentifier:error:"); -late final _sel_objectZone = objc.registerName("objectZone"); -late final _sel_observationInfo = objc.registerName("observationInfo"); -late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc - .registerName("observeValueForKeyPath:ofObject:change:context:"); -late final _sel_observedPresentedItemUbiquityAttributes = objc.registerName( - "observedPresentedItemUbiquityAttributes", -); -late final _sel_operationCount = objc.registerName("operationCount"); -late final _sel_operations = objc.registerName("operations"); -late final _sel_orderedSet = objc.registerName("orderedSet"); -late final _sel_orderedSetByApplyingDifference_ = objc.registerName( - "orderedSetByApplyingDifference:", -); -late final _sel_orderedSetWithArray_ = objc.registerName( - "orderedSetWithArray:", -); -late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( - "orderedSetWithArray:range:copyItems:", -); -late final _sel_orderedSetWithCapacity_ = objc.registerName( - "orderedSetWithCapacity:", -); -late final _sel_orderedSetWithObject_ = objc.registerName( - "orderedSetWithObject:", -); -late final _sel_orderedSetWithObjects_ = objc.registerName( - "orderedSetWithObjects:", -); -late final _sel_orderedSetWithObjects_count_ = objc.registerName( - "orderedSetWithObjects:count:", -); -late final _sel_orderedSetWithOrderedSet_ = objc.registerName( - "orderedSetWithOrderedSet:", -); -late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( - "orderedSetWithOrderedSet:range:copyItems:", -); -late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); -late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( - "orderedSetWithSet:copyItems:", -); -late final _sel_orthography = objc.registerName("orthography"); -late final _sel_orthographyCheckingResultWithRange_orthography_ = objc - .registerName("orthographyCheckingResultWithRange:orthography:"); -late final _sel_outputDataSource = objc.registerName("outputDataSource"); -late final _sel_outputDataSources = objc.registerName("outputDataSources"); -late final _sel_outputLatency = objc.registerName("outputLatency"); -late final _sel_outputNumberOfChannels = objc.registerName( - "outputNumberOfChannels", -); -late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( - "outputStreamToBuffer:capacity:", -); -late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( - "outputStreamToFileAtPath:append:", -); -late final _sel_outputStreamToMemory = objc.registerName( - "outputStreamToMemory", -); -late final _sel_outputStreamWithURL_append_ = objc.registerName( - "outputStreamWithURL:append:", -); -late final _sel_outputVolume = objc.registerName("outputVolume"); -late final _sel_pageFormat = objc.registerName("pageFormat"); -late final _sel_pan = objc.registerName("pan"); -late final _sel_panelKind = objc.registerName("panelKind"); -late final _sel_panelName = objc.registerName("panelName"); -late final _sel_panelView = objc.registerName("panelView"); -late final _sel_parserDidEndDocument_ = objc.registerName( - "parserDidEndDocument:", -); -late final _sel_parserDidStartDocument_ = objc.registerName( - "parserDidStartDocument:", -); -late final _sel_parser_didEndElement_namespaceURI_qualifiedName_ = objc - .registerName("parser:didEndElement:namespaceURI:qualifiedName:"); -late final _sel_parser_didEndMappingPrefix_ = objc.registerName( - "parser:didEndMappingPrefix:", -); -late final _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_ = - objc.registerName( - "parser:didStartElement:namespaceURI:qualifiedName:attributes:", - ); -late final _sel_parser_didStartMappingPrefix_toURI_ = objc.registerName( - "parser:didStartMappingPrefix:toURI:", -); -late final _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ = - objc.registerName( - "parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:", - ); -late final _sel_parser_foundCDATA_ = objc.registerName("parser:foundCDATA:"); -late final _sel_parser_foundCharacters_ = objc.registerName( - "parser:foundCharacters:", -); -late final _sel_parser_foundComment_ = objc.registerName( - "parser:foundComment:", -); -late final _sel_parser_foundElementDeclarationWithName_model_ = objc - .registerName("parser:foundElementDeclarationWithName:model:"); -late final _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_ = - objc.registerName( - "parser:foundExternalEntityDeclarationWithName:publicID:systemID:", - ); -late final _sel_parser_foundIgnorableWhitespace_ = objc.registerName( - "parser:foundIgnorableWhitespace:", -); -late final _sel_parser_foundInternalEntityDeclarationWithName_value_ = objc - .registerName("parser:foundInternalEntityDeclarationWithName:value:"); -late final _sel_parser_foundNotationDeclarationWithName_publicID_systemID_ = - objc.registerName( - "parser:foundNotationDeclarationWithName:publicID:systemID:", - ); -late final _sel_parser_foundProcessingInstructionWithTarget_data_ = objc - .registerName("parser:foundProcessingInstructionWithTarget:data:"); -late final _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ = - objc.registerName( - "parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:", - ); -late final _sel_parser_parseErrorOccurred_ = objc.registerName( - "parser:parseErrorOccurred:", -); -late final _sel_parser_resolveExternalEntityName_systemID_ = objc.registerName( - "parser:resolveExternalEntityName:systemID:", -); -late final _sel_parser_validationErrorOccurred_ = objc.registerName( - "parser:validationErrorOccurred:", -); -late final _sel_password = objc.registerName("password"); -late final _sel_pathComponents = objc.registerName("pathComponents"); -late final _sel_pathExtension = objc.registerName("pathExtension"); -late final _sel_pathWithComponents_ = objc.registerName("pathWithComponents:"); -late final _sel_pathsMatchingExtensions_ = objc.registerName( - "pathsMatchingExtensions:", -); -late final _sel_pause = objc.registerName("pause"); -late final _sel_peakPowerForChannel_ = objc.registerName( - "peakPowerForChannel:", -); -late final _sel_performActivityWithOptions_reason_usingBlock_ = objc - .registerName("performActivityWithOptions:reason:usingBlock:"); -late final _sel_performBlock_ = objc.registerName("performBlock:"); -late final _sel_performDefaultHandlingForAuthenticationChallenge_ = objc - .registerName("performDefaultHandlingForAuthenticationChallenge:"); -late final _sel_performExpiringActivityWithReason_usingBlock_ = objc - .registerName("performExpiringActivityWithReason:usingBlock:"); -late final _sel_performInModes_block_ = objc.registerName( - "performInModes:block:", -); -late final _sel_performSelectorInBackground_withObject_ = objc.registerName( - "performSelectorInBackground:withObject:", -); -late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_ = objc - .registerName("performSelectorOnMainThread:withObject:waitUntilDone:"); -late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_ = - objc.registerName( - "performSelectorOnMainThread:withObject:waitUntilDone:modes:", - ); -late final _sel_performSelector_onThread_withObject_waitUntilDone_ = objc - .registerName("performSelector:onThread:withObject:waitUntilDone:"); -late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_ = objc - .registerName("performSelector:onThread:withObject:waitUntilDone:modes:"); -late final _sel_performSelector_target_argument_order_modes_ = objc - .registerName("performSelector:target:argument:order:modes:"); -late final _sel_performSelector_withObject_afterDelay_ = objc.registerName( - "performSelector:withObject:afterDelay:", -); -late final _sel_performSelector_withObject_afterDelay_inModes_ = objc - .registerName("performSelector:withObject:afterDelay:inModes:"); -late final _sel_phoneNumber = objc.registerName("phoneNumber"); -late final _sel_phoneNumberCheckingResultWithRange_phoneNumber_ = objc - .registerName("phoneNumberCheckingResultWithRange:phoneNumber:"); -late final _sel_play = objc.registerName("play"); -late final _sel_playAtTime_ = objc.registerName("playAtTime:"); -late final _sel_pointValue = objc.registerName("pointValue"); -late final _sel_pointerArrayWithStrongObjects = objc.registerName( - "pointerArrayWithStrongObjects", -); -late final _sel_pointerArrayWithWeakObjects = objc.registerName( - "pointerArrayWithWeakObjects", -); -late final _sel_pointerValue = objc.registerName("pointerValue"); -late final _sel_ppdFile = objc.registerName("ppdFile"); -late final _sel_preferredHardwareSampleRate = objc.registerName( - "preferredHardwareSampleRate", -); -late final _sel_preferredIOBufferDuration = objc.registerName( - "preferredIOBufferDuration", -); -late final _sel_preferredInputNumberOfChannels = objc.registerName( - "preferredInputNumberOfChannels", -); -late final _sel_preferredInputOrientation = objc.registerName( - "preferredInputOrientation", -); -late final _sel_preferredLanguages = objc.registerName("preferredLanguages"); -late final _sel_preferredMicrophoneInjectionMode = objc.registerName( - "preferredMicrophoneInjectionMode", -); -late final _sel_preferredOutputNumberOfChannels = objc.registerName( - "preferredOutputNumberOfChannels", -); -late final _sel_preferredSampleRate = objc.registerName("preferredSampleRate"); -late final _sel_prefersInterruptionOnRouteDisconnect = objc.registerName( - "prefersInterruptionOnRouteDisconnect", -); -late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); -late final _sel_presentedItemDidChange = objc.registerName( - "presentedItemDidChange", -); -late final _sel_presentedItemDidChangeUbiquityAttributes_ = objc.registerName( - "presentedItemDidChangeUbiquityAttributes:", -); -late final _sel_presentedItemDidGainVersion_ = objc.registerName( - "presentedItemDidGainVersion:", -); -late final _sel_presentedItemDidLoseVersion_ = objc.registerName( - "presentedItemDidLoseVersion:", -); -late final _sel_presentedItemDidMoveToURL_ = objc.registerName( - "presentedItemDidMoveToURL:", -); -late final _sel_presentedItemDidResolveConflictVersion_ = objc.registerName( - "presentedItemDidResolveConflictVersion:", -); -late final _sel_presentedItemOperationQueue = objc.registerName( - "presentedItemOperationQueue", -); -late final _sel_presentedItemURL = objc.registerName("presentedItemURL"); -late final _sel_presentedSubitemAtURL_didGainVersion_ = objc.registerName( - "presentedSubitemAtURL:didGainVersion:", -); -late final _sel_presentedSubitemAtURL_didLoseVersion_ = objc.registerName( - "presentedSubitemAtURL:didLoseVersion:", -); -late final _sel_presentedSubitemAtURL_didMoveToURL_ = objc.registerName( - "presentedSubitemAtURL:didMoveToURL:", -); -late final _sel_presentedSubitemAtURL_didResolveConflictVersion_ = objc - .registerName("presentedSubitemAtURL:didResolveConflictVersion:"); -late final _sel_presentedSubitemDidAppearAtURL_ = objc.registerName( - "presentedSubitemDidAppearAtURL:", -); -late final _sel_presentedSubitemDidChangeAtURL_ = objc.registerName( - "presentedSubitemDidChangeAtURL:", -); -late final _sel_preservationPriorityForTag_ = objc.registerName( - "preservationPriorityForTag:", -); -late final _sel_previewImageHandler = objc.registerName("previewImageHandler"); -late final _sel_primaryPresentedItemURL = objc.registerName( - "primaryPresentedItemURL", -); -late final _sel_printSession = objc.registerName("printSession"); -late final _sel_printSettings = objc.registerName("printSettings"); -late final _sel_printWindowWillClose_ = objc.registerName( - "printWindowWillClose:", -); -late final _sel_progress = objc.registerName("progress"); -late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( - "promisedItemResourceValuesForKeys:error:", -); -late final _sel_promptStyle = objc.registerName("promptStyle"); -late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); -late final _sel_propertyList = objc.registerName("propertyList"); -late final _sel_propertyListFromStringsFileFormat = objc.registerName( - "propertyListFromStringsFileFormat", -); -late final _sel_publicID = objc.registerName("publicID"); -late final _sel_quotationBeginDelimiter = objc.registerName( - "quotationBeginDelimiter", -); -late final _sel_quotationEndDelimiter = objc.registerName( - "quotationEndDelimiter", -); -late final _sel_quoteCheckingResultWithRange_replacementString_ = objc - .registerName("quoteCheckingResultWithRange:replacementString:"); -late final _sel_raise_format_ = objc.registerName("raise:format:"); -late final _sel_rangeAtIndex_ = objc.registerName("rangeAtIndex:"); -late final _sel_rangeOfFirstMatchInString_options_range_ = objc.registerName( - "rangeOfFirstMatchInString:options:range:", -); -late final _sel_rangeValue = objc.registerName("rangeValue"); -late final _sel_rangeWithName_ = objc.registerName("rangeWithName:"); -late final _sel_rate = objc.registerName("rate"); -late final _sel_readInBackgroundAndNotify = objc.registerName( - "readInBackgroundAndNotify", -); -late final _sel_readInBackgroundAndNotifyForModes_ = objc.registerName( - "readInBackgroundAndNotifyForModes:", -); -late final _sel_readToEndOfFileInBackgroundAndNotify = objc.registerName( - "readToEndOfFileInBackgroundAndNotify", -); -late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_ = objc - .registerName("readToEndOfFileInBackgroundAndNotifyForModes:"); -late final _sel_readabilityHandler = objc.registerName("readabilityHandler"); -late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( - "readableTypeIdentifiersForItemProvider", -); -late final _sel_rectValue = objc.registerName("rectValue"); -late final _sel_regionCode = objc.registerName("regionCode"); -late final _sel_regularExpression = objc.registerName("regularExpression"); -late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_ = - objc.registerName( - "regularExpressionCheckingResultWithRanges:count:regularExpression:", - ); -late final _sel_rejectProtectionSpaceAndContinueWithChallenge_ = objc - .registerName("rejectProtectionSpaceAndContinueWithChallenge:"); -late final _sel_relinquishPresentedItemToReader_ = objc.registerName( - "relinquishPresentedItemToReader:", -); -late final _sel_relinquishPresentedItemToWriter_ = objc.registerName( - "relinquishPresentedItemToWriter:", -); -late final _sel_remoteObjectProxy = objc.registerName("remoteObjectProxy"); -late final _sel_remoteObjectProxyWithErrorHandler_ = objc.registerName( - "remoteObjectProxyWithErrorHandler:", -); -late final _sel_removeAttribute_range_ = objc.registerName( - "removeAttribute:range:", -); -late final _sel_removeCachedResponseForDataTask_ = objc.registerName( - "removeCachedResponseForDataTask:", -); -late final _sel_removeCredential_forProtectionSpace_options_task_ = objc - .registerName("removeCredential:forProtectionSpace:options:task:"); -late final _sel_removeObserver_forKeyPath_ = objc.registerName( - "removeObserver:forKeyPath:", -); -late final _sel_removeObserver_forKeyPath_context_ = objc.registerName( - "removeObserver:forKeyPath:context:", -); -late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_ = objc - .registerName("removeObserver:fromObjectsAtIndexes:forKeyPath:"); -late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_ = objc - .registerName("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"); -late final _sel_removeValueAtIndex_fromPropertyWithKey_ = objc.registerName( - "removeValueAtIndex:fromPropertyWithKey:", -); -late final _sel_replaceCharactersInRange_withAttributedString_ = objc - .registerName("replaceCharactersInRange:withAttributedString:"); -late final _sel_replaceMatchesInString_options_range_withTemplate_ = objc - .registerName("replaceMatchesInString:options:range:withTemplate:"); -late final _sel_replaceOccurrencesOfString_withString_options_range_ = objc - .registerName("replaceOccurrencesOfString:withString:options:range:"); -late final _sel_replaceValueAtIndex_inPropertyWithKey_withValue_ = objc - .registerName("replaceValueAtIndex:inPropertyWithKey:withValue:"); -late final _sel_replacementCheckingResultWithRange_replacementString_ = objc - .registerName("replacementCheckingResultWithRange:replacementString:"); -late final _sel_replacementObjectForArchiver_ = objc.registerName( - "replacementObjectForArchiver:", -); -late final _sel_replacementObjectForCoder_ = objc.registerName( - "replacementObjectForCoder:", -); -late final _sel_replacementObjectForKeyedArchiver_ = objc.registerName( - "replacementObjectForKeyedArchiver:", -); -late final _sel_replacementObjectForPortCoder_ = objc.registerName( - "replacementObjectForPortCoder:", -); -late final _sel_replacementString = objc.registerName("replacementString"); -late final _sel_replacementStringForResult_inString_offset_template_ = objc - .registerName("replacementStringForResult:inString:offset:template:"); -late final _sel_requiresSecureCoding = objc.registerName( - "requiresSecureCoding", -); -late final _sel_resetSystemTimeZone = objc.registerName("resetSystemTimeZone"); -late final _sel_resourceDataUsingCache_ = objc.registerName( - "resourceDataUsingCache:", -); -late final _sel_restoreValuesAndReturnError_ = objc.registerName( - "restoreValuesAndReturnError:", -); -late final _sel_resultByAdjustingRangesWithOffset_ = objc.registerName( - "resultByAdjustingRangesWithOffset:", -); -late final _sel_roundingBehavior = objc.registerName("roundingBehavior"); -late final _sel_roundingMode = objc.registerName("roundingMode"); -late final _sel_run = objc.registerName("run"); -late final _sel_runMode_beforeDate_ = objc.registerName("runMode:beforeDate:"); -late final _sel_runUntilDate_ = objc.registerName("runUntilDate:"); -late final _sel_sampleRate = objc.registerName("sampleRate"); -late final _sel_savePresentedItemChangesWithCompletionHandler_ = objc - .registerName("savePresentedItemChangesWithCompletionHandler:"); -late final _sel_saveValuesAndReturnError_ = objc.registerName( - "saveValuesAndReturnError:", -); -late final _sel_scale = objc.registerName("scale"); -late final _sel_scanCharactersFromSet_intoString_ = objc.registerName( - "scanCharactersFromSet:intoString:", -); -late final _sel_scanDecimal_ = objc.registerName("scanDecimal:"); -late final _sel_scanDouble_ = objc.registerName("scanDouble:"); -late final _sel_scanFloat_ = objc.registerName("scanFloat:"); -late final _sel_scanHexDouble_ = objc.registerName("scanHexDouble:"); -late final _sel_scanHexFloat_ = objc.registerName("scanHexFloat:"); -late final _sel_scanHexInt_ = objc.registerName("scanHexInt:"); -late final _sel_scanHexLongLong_ = objc.registerName("scanHexLongLong:"); -late final _sel_scanInt_ = objc.registerName("scanInt:"); -late final _sel_scanInteger_ = objc.registerName("scanInteger:"); -late final _sel_scanLongLong_ = objc.registerName("scanLongLong:"); -late final _sel_scanString_intoString_ = objc.registerName( - "scanString:intoString:", -); -late final _sel_scanUnsignedLongLong_ = objc.registerName( - "scanUnsignedLongLong:", -); -late final _sel_scanUpToCharactersFromSet_intoString_ = objc.registerName( - "scanUpToCharactersFromSet:intoString:", -); -late final _sel_scanUpToString_intoString_ = objc.registerName( - "scanUpToString:intoString:", -); -late final _sel_scriptCode = objc.registerName("scriptCode"); -late final _sel_scriptingBeginsWith_ = objc.registerName( - "scriptingBeginsWith:", -); -late final _sel_scriptingContains_ = objc.registerName("scriptingContains:"); -late final _sel_scriptingEndsWith_ = objc.registerName("scriptingEndsWith:"); -late final _sel_scriptingIsEqualTo_ = objc.registerName("scriptingIsEqualTo:"); -late final _sel_scriptingIsGreaterThanOrEqualTo_ = objc.registerName( - "scriptingIsGreaterThanOrEqualTo:", -); -late final _sel_scriptingIsGreaterThan_ = objc.registerName( - "scriptingIsGreaterThan:", -); -late final _sel_scriptingIsLessThanOrEqualTo_ = objc.registerName( - "scriptingIsLessThanOrEqualTo:", -); -late final _sel_scriptingIsLessThan_ = objc.registerName( - "scriptingIsLessThan:", -); -late final _sel_scriptingProperties = objc.registerName("scriptingProperties"); -late final _sel_scriptingValueForSpecifier_ = objc.registerName( - "scriptingValueForSpecifier:", -); -late final _sel_secondaryAudioShouldBeSilencedHint = objc.registerName( - "secondaryAudioShouldBeSilencedHint", -); -late final _sel_secondsFromGMT = objc.registerName("secondsFromGMT"); -late final _sel_sendAsynchronousRequest_queue_completionHandler_ = objc - .registerName("sendAsynchronousRequest:queue:completionHandler:"); -late final _sel_sendSynchronousRequest_returningResponse_error_ = objc - .registerName("sendSynchronousRequest:returningResponse:error:"); -late final _sel_serverTrust = objc.registerName("serverTrust"); -late final _sel_set = objc.registerName("set"); -late final _sel_setAbbreviationDictionary_ = objc.registerName( - "setAbbreviationDictionary:", -); -late final _sel_setActive_error_ = objc.registerName("setActive:error:"); -late final _sel_setActive_withFlags_error_ = objc.registerName( - "setActive:withFlags:error:", -); -late final _sel_setActive_withOptions_error_ = objc.registerName( - "setActive:withOptions:error:", -); -late final _sel_setAggregatedIOPreference_error_ = objc.registerName( - "setAggregatedIOPreference:error:", -); -late final _sel_setAllHTTPHeaderFields_ = objc.registerName( - "setAllHTTPHeaderFields:", -); -late final _sel_setAttributedStringForNil_ = objc.registerName( - "setAttributedStringForNil:", -); -late final _sel_setAttributedStringForNotANumber_ = objc.registerName( - "setAttributedStringForNotANumber:", -); -late final _sel_setAttributedStringForZero_ = objc.registerName( - "setAttributedStringForZero:", -); -late final _sel_setAttributedString_ = objc.registerName( - "setAttributedString:", -); -late final _sel_setAttributesAsDictionary_ = objc.registerName( - "setAttributesAsDictionary:", -); -late final _sel_setChannelAssignments_ = objc.registerName( - "setChannelAssignments:", -); -late final _sel_setCredential_forProtectionSpace_task_ = objc.registerName( - "setCredential:forProtectionSpace:task:", -); -late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); -late final _sel_setCurrentDirectoryPath_ = objc.registerName( - "setCurrentDirectoryPath:", -); -late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); -late final _sel_setCustomPronoun_forLanguage_error_ = objc.registerName( - "setCustomPronoun:forLanguage:error:", -); -late final _sel_setDefaultCredential_forProtectionSpace_task_ = objc - .registerName("setDefaultCredential:forProtectionSpace:task:"); -late final _sel_setDefaultTimeZone_ = objc.registerName("setDefaultTimeZone:"); -late final _sel_setDelegate_ = objc.registerName("setDelegate:"); -late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); -late final _sel_setFormat_ = objc.registerName("setFormat:"); -late final _sel_setHTTPBodyStream_ = objc.registerName("setHTTPBodyStream:"); -late final _sel_setHTTPBody_ = objc.registerName("setHTTPBody:"); -late final _sel_setHTTPMethod_ = objc.registerName("setHTTPMethod:"); -late final _sel_setHTTPShouldHandleCookies_ = objc.registerName( - "setHTTPShouldHandleCookies:", -); -late final _sel_setHTTPShouldUsePipelining_ = objc.registerName( - "setHTTPShouldUsePipelining:", -); -late final _sel_setHasThousandSeparators_ = objc.registerName( - "setHasThousandSeparators:", -); -late final _sel_setInputDataSource_error_ = objc.registerName( - "setInputDataSource:error:", -); -late final _sel_setInputGain_error_ = objc.registerName("setInputGain:error:"); -late final _sel_setIntendedSpatialExperience_ = objc.registerName( - "setIntendedSpatialExperience:", -); -late final _sel_setKeys_triggerChangeNotificationsForDependentKey_ = objc - .registerName("setKeys:triggerChangeNotificationsForDependentKey:"); -late final _sel_setLaunchPath_ = objc.registerName("setLaunchPath:"); -late final _sel_setLocalizesFormat_ = objc.registerName("setLocalizesFormat:"); -late final _sel_setMeteringEnabled_ = objc.registerName("setMeteringEnabled:"); -late final _sel_setNilValueForKey_ = objc.registerName("setNilValueForKey:"); -late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); -late final _sel_setObjectZone_ = objc.registerName("setObjectZone:"); -late final _sel_setObservationInfo_ = objc.registerName("setObservationInfo:"); -late final _sel_setOutputDataSource_error_ = objc.registerName( - "setOutputDataSource:error:", -); -late final _sel_setPan_ = objc.registerName("setPan:"); -late final _sel_setPreferredHardwareSampleRate_error_ = objc.registerName( - "setPreferredHardwareSampleRate:error:", -); -late final _sel_setPreferredIOBufferDuration_error_ = objc.registerName( - "setPreferredIOBufferDuration:error:", -); -late final _sel_setPreferredInputNumberOfChannels_error_ = objc.registerName( - "setPreferredInputNumberOfChannels:error:", -); -late final _sel_setPreferredInputOrientation_error_ = objc.registerName( - "setPreferredInputOrientation:error:", -); -late final _sel_setPreferredMicrophoneInjectionMode_error_ = objc.registerName( - "setPreferredMicrophoneInjectionMode:error:", -); -late final _sel_setPreferredOutputNumberOfChannels_error_ = objc.registerName( - "setPreferredOutputNumberOfChannels:error:", -); -late final _sel_setPreferredSampleRate_error_ = objc.registerName( - "setPreferredSampleRate:error:", -); -late final _sel_setPrefersInterruptionOnRouteDisconnect_error_ = objc - .registerName("setPrefersInterruptionOnRouteDisconnect:error:"); -late final _sel_setPreservationPriority_forTags_ = objc.registerName( - "setPreservationPriority:forTags:", -); -late final _sel_setPreviewImageHandler_ = objc.registerName( - "setPreviewImageHandler:", -); -late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); -late final _sel_setRate_ = objc.registerName("setRate:"); -late final _sel_setReadabilityHandler_ = objc.registerName( - "setReadabilityHandler:", -); -late final _sel_setResourceData_ = objc.registerName("setResourceData:"); -late final _sel_setRoundingBehavior_ = objc.registerName( - "setRoundingBehavior:", -); -late final _sel_setScriptingProperties_ = objc.registerName( - "setScriptingProperties:", -); -late final _sel_setSharedObservers_ = objc.registerName("setSharedObservers:"); -late final _sel_setString_ = objc.registerName("setString:"); -late final _sel_setSupportsMultichannelContent_error_ = objc.registerName( - "setSupportsMultichannelContent:error:", -); -late final _sel_setThousandSeparator_ = objc.registerName( - "setThousandSeparator:", -); -late final _sel_setValue_forHTTPHeaderField_ = objc.registerName( - "setValue:forHTTPHeaderField:", -); -late final _sel_setValue_forKeyPath_ = objc.registerName( - "setValue:forKeyPath:", -); -late final _sel_setValue_forKey_ = objc.registerName("setValue:forKey:"); -late final _sel_setValue_forUndefinedKey_ = objc.registerName( - "setValue:forUndefinedKey:", -); -late final _sel_setValuesForKeysWithDictionary_ = objc.registerName( - "setValuesForKeysWithDictionary:", -); -late final _sel_setVersion_ = objc.registerName("setVersion:"); -late final _sel_setVolume_ = objc.registerName("setVolume:"); -late final _sel_setVolume_fadeDuration_ = objc.registerName( - "setVolume:fadeDuration:", -); -late final _sel_setWithArray_ = objc.registerName("setWithArray:"); -late final _sel_setWithCapacity_ = objc.registerName("setWithCapacity:"); -late final _sel_setWithObject_ = objc.registerName("setWithObject:"); -late final _sel_setWithObjects_ = objc.registerName("setWithObjects:"); -late final _sel_setWithObjects_count_ = objc.registerName( - "setWithObjects:count:", -); -late final _sel_setWithSet_ = objc.registerName("setWithSet:"); -late final _sel_setWriteabilityHandler_ = objc.registerName( - "setWriteabilityHandler:", -); -late final _sel_settings = objc.registerName("settings"); -late final _sel_sharedKeySetForKeys_ = objc.registerName( - "sharedKeySetForKeys:", -); -late final _sel_shouldHide = objc.registerName("shouldHide"); -late final _sel_shouldPrint = objc.registerName("shouldPrint"); -late final _sel_shouldShowHelp = objc.registerName("shouldShowHelp"); -late final _sel_sizeValue = objc.registerName("sizeValue"); -late final _sel_sortUsingDescriptors_ = objc.registerName( - "sortUsingDescriptors:", -); -late final _sel_sortedArrayUsingDescriptors_ = objc.registerName( - "sortedArrayUsingDescriptors:", -); -late final _sel_spellCheckingResultWithRange_ = objc.registerName( - "spellCheckingResultWithRange:", -); -late final _sel_spellServer_checkGrammarInString_language_details_ = objc - .registerName("spellServer:checkGrammarInString:language:details:"); -late final _sel_spellServer_checkString_offset_types_options_orthography_wordCount_ = - objc.registerName( - "spellServer:checkString:offset:types:options:orthography:wordCount:", - ); -late final _sel_spellServer_didForgetWord_inLanguage_ = objc.registerName( - "spellServer:didForgetWord:inLanguage:", -); -late final _sel_spellServer_didLearnWord_inLanguage_ = objc.registerName( - "spellServer:didLearnWord:inLanguage:", -); -late final _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_ = - objc.registerName( - "spellServer:findMisspelledWordInString:language:wordCount:countOnly:", - ); -late final _sel_spellServer_recordResponse_toCorrection_forWord_language_ = objc - .registerName("spellServer:recordResponse:toCorrection:forWord:language:"); -late final _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_ = - objc.registerName( - "spellServer:suggestCompletionsForPartialWordRange:inString:language:", - ); -late final _sel_spellServer_suggestGuessesForWord_inLanguage_ = objc - .registerName("spellServer:suggestGuessesForWord:inLanguage:"); -late final _sel_stop = objc.registerName("stop"); -late final _sel_storeCachedResponse_forDataTask_ = objc.registerName( - "storeCachedResponse:forDataTask:", -); -late final _sel_storeCookies_forTask_ = objc.registerName( - "storeCookies:forTask:", -); -late final _sel_storedValueForKey_ = objc.registerName("storedValueForKey:"); -late final _sel_stringByAbbreviatingWithTildeInPath = objc.registerName( - "stringByAbbreviatingWithTildeInPath", -); -late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_ = objc - .registerName("stringByAddingPercentEncodingWithAllowedCharacters:"); -late final _sel_stringByAddingPercentEscapesUsingEncoding_ = objc.registerName( - "stringByAddingPercentEscapesUsingEncoding:", -); -late final _sel_stringByAppendingPathComponent_ = objc.registerName( - "stringByAppendingPathComponent:", -); -late final _sel_stringByAppendingPathExtension_ = objc.registerName( - "stringByAppendingPathExtension:", -); -late final _sel_stringByDeletingLastPathComponent = objc.registerName( - "stringByDeletingLastPathComponent", -); -late final _sel_stringByDeletingPathExtension = objc.registerName( - "stringByDeletingPathExtension", -); -late final _sel_stringByExpandingTildeInPath = objc.registerName( - "stringByExpandingTildeInPath", -); -late final _sel_stringByRemovingPercentEncoding = objc.registerName( - "stringByRemovingPercentEncoding", -); -late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_ = - objc.registerName( - "stringByReplacingMatchesInString:options:range:withTemplate:", - ); -late final _sel_stringByReplacingPercentEscapesUsingEncoding_ = objc - .registerName("stringByReplacingPercentEscapesUsingEncoding:"); -late final _sel_stringByResolvingSymlinksInPath = objc.registerName( - "stringByResolvingSymlinksInPath", -); -late final _sel_stringByStandardizingPath = objc.registerName( - "stringByStandardizingPath", -); -late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_ = - objc.registerName( - "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:", - ); -late final _sel_stringWithCString_ = objc.registerName("stringWithCString:"); -late final _sel_stringWithCString_length_ = objc.registerName( - "stringWithCString:length:", -); -late final _sel_stringWithCapacity_ = objc.registerName("stringWithCapacity:"); -late final _sel_stringWithContentsOfFile_ = objc.registerName( - "stringWithContentsOfFile:", -); -late final _sel_stringWithContentsOfURL_ = objc.registerName( - "stringWithContentsOfURL:", -); -late final _sel_stringsByAppendingPaths_ = objc.registerName( - "stringsByAppendingPaths:", -); -late final _sel_strongObjectsPointerArray = objc.registerName( - "strongObjectsPointerArray", -); -late final _sel_summaryInfo = objc.registerName("summaryInfo"); -late final _sel_supportedOutputChannelLayouts = objc.registerName( - "supportedOutputChannelLayouts", -); -late final _sel_supportedPPDOptionKeys = objc.registerName( - "supportedPPDOptionKeys", -); -late final _sel_supportsMultichannelContent = objc.registerName( - "supportsMultichannelContent", -); -late final _sel_symbolicLinkDestination = objc.registerName( - "symbolicLinkDestination", -); -late final _sel_synchronousRemoteObjectProxyWithErrorHandler_ = objc - .registerName("synchronousRemoteObjectProxyWithErrorHandler:"); -late final _sel_systemID = objc.registerName("systemID"); -late final _sel_systemLocale = objc.registerName("systemLocale"); -late final _sel_systemTimeZone = objc.registerName("systemTimeZone"); -late final _sel_systemVersion = objc.registerName("systemVersion"); -late final _sel_takeStoredValue_forKey_ = objc.registerName( - "takeStoredValue:forKey:", -); -late final _sel_takeValue_forKeyPath_ = objc.registerName( - "takeValue:forKeyPath:", -); -late final _sel_takeValue_forKey_ = objc.registerName("takeValue:forKey:"); -late final _sel_takeValuesFromDictionary_ = objc.registerName( - "takeValuesFromDictionary:", -); -late final _sel_task = objc.registerName("task"); -late final _sel_temporaryDirectory = objc.registerName("temporaryDirectory"); -late final _sel_thermalState = objc.registerName("thermalState"); -late final _sel_thousandSeparator = objc.registerName("thousandSeparator"); -late final _sel_timeZone = objc.registerName("timeZone"); -late final _sel_timeZoneDataVersion = objc.registerName("timeZoneDataVersion"); -late final _sel_toManyRelationshipKeys = objc.registerName( - "toManyRelationshipKeys", -); -late final _sel_toOneRelationshipKeys = objc.registerName( - "toOneRelationshipKeys", -); -late final _sel_transitInformationCheckingResultWithRange_components_ = objc - .registerName("transitInformationCheckingResultWithRange:components:"); -late final _sel_unableToSetNilForKey_ = objc.registerName( - "unableToSetNilForKey:", -); -late final _sel_unarchiverDidFinish_ = objc.registerName( - "unarchiverDidFinish:", -); -late final _sel_unarchiverWillFinish_ = objc.registerName( - "unarchiverWillFinish:", -); -late final _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_ = objc - .registerName("unarchiver:cannotDecodeObjectOfClassName:originalClasses:"); -late final _sel_unarchiver_didDecodeObject_ = objc.registerName( - "unarchiver:didDecodeObject:", -); -late final _sel_unarchiver_willReplaceObject_withObject_ = objc.registerName( - "unarchiver:willReplaceObject:withObject:", -); -late final _sel_unlock = objc.registerName("unlock"); -late final _sel_updateFromPath_ = objc.registerName("updateFromPath:"); -late final _sel_updateMeters = objc.registerName("updateMeters"); -late final _sel_uploadTaskWithRequest_fromData_completionHandler_ = objc - .registerName("uploadTaskWithRequest:fromData:completionHandler:"); -late final _sel_uploadTaskWithRequest_fromFile_completionHandler_ = objc - .registerName("uploadTaskWithRequest:fromFile:completionHandler:"); -late final _sel_uploadTaskWithResumeData_completionHandler_ = objc.registerName( - "uploadTaskWithResumeData:completionHandler:", -); -late final _sel_url = objc.registerName("url"); -late final _sel_useCredential_forAuthenticationChallenge_ = objc.registerName( - "useCredential:forAuthenticationChallenge:", -); -late final _sel_useStoredAccessor = objc.registerName("useStoredAccessor"); -late final _sel_user = objc.registerName("user"); -late final _sel_userActivityWasContinued_ = objc.registerName( - "userActivityWasContinued:", -); -late final _sel_userActivityWillSave_ = objc.registerName( - "userActivityWillSave:", -); -late final _sel_userActivity_didReceiveInputStream_outputStream_ = objc - .registerName("userActivity:didReceiveInputStream:outputStream:"); -late final _sel_userMorphology = objc.registerName("userMorphology"); -late final _sel_userName = objc.registerName("userName"); -late final _sel_userNotificationCenter_didActivateNotification_ = objc - .registerName("userNotificationCenter:didActivateNotification:"); -late final _sel_userNotificationCenter_didDeliverNotification_ = objc - .registerName("userNotificationCenter:didDeliverNotification:"); -late final _sel_userNotificationCenter_shouldPresentNotification_ = objc - .registerName("userNotificationCenter:shouldPresentNotification:"); -late final _sel_usesMetricSystem = objc.registerName("usesMetricSystem"); -late final _sel_validateValue_forKeyPath_error_ = objc.registerName( - "validateValue:forKeyPath:error:", -); -late final _sel_validateValue_forKey_error_ = objc.registerName( - "validateValue:forKey:error:", -); -late final _sel_valueAtIndex_inPropertyWithKey_ = objc.registerName( - "valueAtIndex:inPropertyWithKey:", -); -late final _sel_valueForHTTPHeaderField_ = objc.registerName( - "valueForHTTPHeaderField:", -); -late final _sel_valueForKeyPath_ = objc.registerName("valueForKeyPath:"); -late final _sel_valueForKey_ = objc.registerName("valueForKey:"); -late final _sel_valueForUndefinedKey_ = objc.registerName( - "valueForUndefinedKey:", -); -late final _sel_valueWithBytes_objCType_ = objc.registerName( - "valueWithBytes:objCType:", -); -late final _sel_valueWithEdgeInsets_ = objc.registerName( - "valueWithEdgeInsets:", -); -late final _sel_valueWithName_inPropertyWithKey_ = objc.registerName( - "valueWithName:inPropertyWithKey:", -); -late final _sel_valueWithNonretainedObject_ = objc.registerName( - "valueWithNonretainedObject:", -); -late final _sel_valueWithPoint_ = objc.registerName("valueWithPoint:"); -late final _sel_valueWithPointer_ = objc.registerName("valueWithPointer:"); -late final _sel_valueWithRange_ = objc.registerName("valueWithRange:"); -late final _sel_valueWithRect_ = objc.registerName("valueWithRect:"); -late final _sel_valueWithSize_ = objc.registerName("valueWithSize:"); -late final _sel_valueWithUniqueID_inPropertyWithKey_ = objc.registerName( - "valueWithUniqueID:inPropertyWithKey:", -); -late final _sel_value_withObjCType_ = objc.registerName("value:withObjCType:"); -late final _sel_valuesForKeys_ = objc.registerName("valuesForKeys:"); -late final _sel_variantCode = objc.registerName("variantCode"); -late final _sel_variantFittingPresentationWidth_ = objc.registerName( - "variantFittingPresentationWidth:", -); -late final _sel_version = objc.registerName("version"); -late final _sel_volume = objc.registerName("volume"); -late final _sel_waitForDataInBackgroundAndNotify = objc.registerName( - "waitForDataInBackgroundAndNotify", -); -late final _sel_waitForDataInBackgroundAndNotifyForModes_ = objc.registerName( - "waitForDataInBackgroundAndNotifyForModes:", -); -late final _sel_waitUntilExit = objc.registerName("waitUntilExit"); -late final _sel_weakObjectsPointerArray = objc.registerName( - "weakObjectsPointerArray", -); -late final _sel_willChangePPDOptionKeyValue_ppdChoice_ = objc.registerName( - "willChangePPDOptionKeyValue:ppdChoice:", -); -late final _sel_willChangeValueForKey_ = objc.registerName( - "willChangeValueForKey:", -); -late final _sel_willChangeValueForKey_withSetMutation_usingObjects_ = objc - .registerName("willChangeValueForKey:withSetMutation:usingObjects:"); -late final _sel_willChange_valuesAtIndexes_forKey_ = objc.registerName( - "willChange:valuesAtIndexes:forKey:", -); -late final _sel_willShow = objc.registerName("willShow"); -late final _sel_windowsLocaleCodeFromLocaleIdentifier_ = objc.registerName( - "windowsLocaleCodeFromLocaleIdentifier:", -); -late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( - "writableTypeIdentifiersForItemProvider", -); -late final _sel_writeToFile_atomically_ = objc.registerName( - "writeToFile:atomically:", -); -late final _sel_writeToFile_atomically_updateFilenames_ = objc.registerName( - "writeToFile:atomically:updateFilenames:", -); -late final _sel_writeToURL_atomically_ = objc.registerName( - "writeToURL:atomically:", -); -late final _sel_writeabilityHandler = objc.registerName("writeabilityHandler"); - -final class _xlocale extends ffi.Opaque {} - -final class _xpc_bool_s extends ffi.Opaque {} - -final class _xpc_dictionary_s extends ffi.Opaque {} - -final class _xpc_type_s extends ffi.Opaque {} - -const int abbrevDate = 2; - -const int abortErr = -27; - -final class accessx_descriptor extends ffi.Struct { - @ffi.UnsignedInt() - external int ad_name_offset; - - @ffi.Int() - external int ad_flags; - - @ffi.Array.multi([2]) - external ffi.Array ad_pad; -} - -enum acl_entry_id_t { - ACL_FIRST_ENTRY(0), - ACL_NEXT_ENTRY(-1), - ACL_LAST_ENTRY(-2); - - final int value; - const acl_entry_id_t(this.value); - - static acl_entry_id_t fromValue(int value) => switch (value) { - 0 => ACL_FIRST_ENTRY, - -1 => ACL_NEXT_ENTRY, - -2 => ACL_LAST_ENTRY, - _ => throw ArgumentError('Unknown value for acl_entry_id_t: $value'), - }; -} - -typedef acl_entry_t = ffi.Pointer<_acl_entry>; - -enum acl_flag_t { - ACL_FLAG_DEFER_INHERIT(1), - ACL_FLAG_NO_INHERIT(131072), - ACL_ENTRY_INHERITED(16), - ACL_ENTRY_FILE_INHERIT(32), - ACL_ENTRY_DIRECTORY_INHERIT(64), - ACL_ENTRY_LIMIT_INHERIT(128), - ACL_ENTRY_ONLY_INHERIT(256); - - final int value; - const acl_flag_t(this.value); - - static acl_flag_t fromValue(int value) => switch (value) { - 1 => ACL_FLAG_DEFER_INHERIT, - 131072 => ACL_FLAG_NO_INHERIT, - 16 => ACL_ENTRY_INHERITED, - 32 => ACL_ENTRY_FILE_INHERIT, - 64 => ACL_ENTRY_DIRECTORY_INHERIT, - 128 => ACL_ENTRY_LIMIT_INHERIT, - 256 => ACL_ENTRY_ONLY_INHERIT, - _ => throw ArgumentError('Unknown value for acl_flag_t: $value'), - }; -} - -typedef acl_flagset_t = ffi.Pointer<_acl_flagset>; - -enum acl_perm_t { - ACL_READ_DATA(2), - ACL_WRITE_DATA(4), - ACL_EXECUTE(8), - ACL_DELETE(16), - ACL_APPEND_DATA(32), - ACL_DELETE_CHILD(64), - ACL_READ_ATTRIBUTES(128), - ACL_WRITE_ATTRIBUTES(256), - ACL_READ_EXTATTRIBUTES(512), - ACL_WRITE_EXTATTRIBUTES(1024), - ACL_READ_SECURITY(2048), - ACL_WRITE_SECURITY(4096), - ACL_CHANGE_OWNER(8192), - ACL_SYNCHRONIZE(1048576); - - static const ACL_LIST_DIRECTORY = ACL_READ_DATA; - static const ACL_ADD_FILE = ACL_WRITE_DATA; - static const ACL_SEARCH = ACL_EXECUTE; - static const ACL_ADD_SUBDIRECTORY = ACL_APPEND_DATA; - - final int value; - const acl_perm_t(this.value); - - static acl_perm_t fromValue(int value) => switch (value) { - 2 => ACL_READ_DATA, - 4 => ACL_WRITE_DATA, - 8 => ACL_EXECUTE, - 16 => ACL_DELETE, - 32 => ACL_APPEND_DATA, - 64 => ACL_DELETE_CHILD, - 128 => ACL_READ_ATTRIBUTES, - 256 => ACL_WRITE_ATTRIBUTES, - 512 => ACL_READ_EXTATTRIBUTES, - 1024 => ACL_WRITE_EXTATTRIBUTES, - 2048 => ACL_READ_SECURITY, - 4096 => ACL_WRITE_SECURITY, - 8192 => ACL_CHANGE_OWNER, - 1048576 => ACL_SYNCHRONIZE, - _ => throw ArgumentError('Unknown value for acl_perm_t: $value'), - }; - - @override - String toString() { - if (this == ACL_READ_DATA) - return "acl_perm_t.ACL_READ_DATA, acl_perm_t.ACL_LIST_DIRECTORY"; - if (this == ACL_WRITE_DATA) - return "acl_perm_t.ACL_WRITE_DATA, acl_perm_t.ACL_ADD_FILE"; - if (this == ACL_EXECUTE) - return "acl_perm_t.ACL_EXECUTE, acl_perm_t.ACL_SEARCH"; - if (this == ACL_APPEND_DATA) - return "acl_perm_t.ACL_APPEND_DATA, acl_perm_t.ACL_ADD_SUBDIRECTORY"; - return super.toString(); - } -} - -typedef acl_permset_mask_t = u_int64_t; -typedef acl_permset_t = ffi.Pointer<_acl_permset>; -typedef acl_t = ffi.Pointer<_acl>; - -enum acl_tag_t { - ACL_UNDEFINED_TAG(0), - ACL_EXTENDED_ALLOW(1), - ACL_EXTENDED_DENY(2); - - final int value; - const acl_tag_t(this.value); - - static acl_tag_t fromValue(int value) => switch (value) { - 0 => ACL_UNDEFINED_TAG, - 1 => ACL_EXTENDED_ALLOW, - 2 => ACL_EXTENDED_DENY, - _ => throw ArgumentError('Unknown value for acl_tag_t: $value'), - }; -} - -enum acl_type_t { - ACL_TYPE_EXTENDED(256), - ACL_TYPE_ACCESS(0), - ACL_TYPE_DEFAULT(1), - ACL_TYPE_AFS(2), - ACL_TYPE_CODA(3), - ACL_TYPE_NTFS(4), - ACL_TYPE_NWFS(5); - - final int value; - const acl_type_t(this.value); - - static acl_type_t fromValue(int value) => switch (value) { - 256 => ACL_TYPE_EXTENDED, - 0 => ACL_TYPE_ACCESS, - 1 => ACL_TYPE_DEFAULT, - 2 => ACL_TYPE_AFS, - 3 => ACL_TYPE_CODA, - 4 => ACL_TYPE_NTFS, - 5 => ACL_TYPE_NWFS, - _ => throw ArgumentError('Unknown value for acl_type_t: $value'), - }; -} - -const int activDev = 5; - -@Deprecated('Deprecated') -const int acuteUprA = 231; - -@Deprecated('Deprecated') -const int acuteUprI = 234; - -@Deprecated('Deprecated') -const int acuteUprO = 238; - -@Deprecated('Deprecated') -const int acuteUprU = 242; - -const int addRefFailed = -195; - -const int addResFailed = -194; - -typedef addr64_t = ffi.Uint64; -typedef Dartaddr64_t = int; - -final class addrinfo extends ffi.Struct { - @ffi.Int() - external int ai_flags; - - @ffi.Int() - external int ai_family; - - @ffi.Int() - external int ai_socktype; - - @ffi.Int() - external int ai_protocol; - - @socklen_t() - external int ai_addrlen; - - external ffi.Pointer ai_canonname; - - external ffi.Pointer ai_addr; - - external ffi.Pointer ai_next; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ai_flags, - required int ai_family, - required int ai_socktype, - required int ai_protocol, - required int ai_addrlen, - required ffi.Pointer ai_canonname, - required ffi.Pointer ai_addr, - required ffi.Pointer ai_next, - }) => $allocator() - ..ref.ai_flags = ai_flags - ..ref.ai_family = ai_family - ..ref.ai_socktype = ai_socktype - ..ref.ai_protocol = ai_protocol - ..ref.ai_addrlen = ai_addrlen - ..ref.ai_canonname = ai_canonname - ..ref.ai_addr = ai_addr - ..ref.ai_next = ai_next; -} - -const int aeBuildSyntaxBadData = 12; - -const int aeBuildSyntaxBadDesc = 11; - -const int aeBuildSyntaxBadEOF = 2; - -const int aeBuildSyntaxBadHex = 6; - -const int aeBuildSyntaxBadNegative = 4; - -const int aeBuildSyntaxBadToken = 1; - -const int aeBuildSyntaxCoercedList = 18; - -const int aeBuildSyntaxMissingQuote = 5; - -const int aeBuildSyntaxNoCloseBrace = 15; - -const int aeBuildSyntaxNoCloseBracket = 14; - -const int aeBuildSyntaxNoCloseHex = 8; - -const int aeBuildSyntaxNoCloseParen = 13; - -const int aeBuildSyntaxNoCloseString = 10; - -const int aeBuildSyntaxNoColon = 17; - -const int aeBuildSyntaxNoEOF = 3; - -const int aeBuildSyntaxNoErr = 0; - -const int aeBuildSyntaxNoKey = 16; - -const int aeBuildSyntaxOddHex = 7; - -const int aeBuildSyntaxUncoercedDoubleAt = 19; - -const int aeBuildSyntaxUncoercedHex = 9; - -const int afpAccessDenied = -5000; - -const int afpAlreadyLoggedInErr = -5047; - -const int afpAlreadyMounted = -5062; - -const int afpAuthContinue = -5001; - -const int afpBadDirIDType = -5060; - -const int afpBadIDErr = -5039; - -const int afpBadUAM = -5002; - -const int afpBadVersNum = -5003; - -const int afpBitmapErr = -5004; - -const int afpCallNotAllowed = -5048; - -const int afpCallNotSupported = -5024; - -const int afpCantMountMoreSrvre = -5061; - -const int afpCantMove = -5005; - -const int afpCantRename = -5028; - -const int afpCatalogChanged = -5037; - -const int afpContainsSharedErr = -5033; - -const int afpDenyConflict = -5006; - -const int afpDiffVolErr = -5036; - -const int afpDirNotEmpty = -5007; - -const int afpDirNotFound = -5029; - -const int afpDiskFull = -5008; - -const int afpEofError = -5009; - -const int afpFileBusy = -5010; - -const int afpFlatVol = -5011; - -const int afpIDExists = -5035; - -const int afpIDNotFound = -5034; - -const int afpIconTypeError = -5030; - -const int afpInsideSharedErr = -5043; - -const int afpInsideTrashErr = -5044; - -const int afpItemNotFound = -5012; - -const int afpLockErr = -5013; - -const int afpMiscErr = -5014; - -const int afpNoMoreLocks = -5015; - -const int afpNoServer = -5016; - -const int afpObjectExists = -5017; - -const int afpObjectLocked = -5032; - -const int afpObjectNotFound = -5018; - -const int afpObjectTypeErr = -5025; - -const int afpParmErr = -5019; - -const int afpPwdExpiredErr = -5042; - -const int afpPwdNeedsChangeErr = -5045; - -const int afpPwdPolicyErr = -5046; - -const int afpPwdSameErr = -5040; - -const int afpPwdTooShortErr = -5041; - -const int afpRangeNotLocked = -5020; - -const int afpRangeOverlap = -5021; - -const int afpSameNodeErr = -5063; - -const int afpSameObjectErr = -5038; - -const int afpServerGoingDown = -5027; - -const int afpSessClosed = -5022; - -const int afpTooManyFilesOpen = -5026; - -const int afpUserNotAuth = -5023; - -const int afpVolLocked = -5031; - -typedef alarm_port_t = alarm_t; -typedef alarm_t = mach_port_t; -typedef alarm_type_t = ffi.Int; -typedef Dartalarm_type_t = int; - -const int alphaStage = 64; - -const int appIsDaemon = -606; - -const int appMemFullErr = -605; - -const int appModeErr = -602; - -const int appVersionTooOld = -876; - -@Deprecated('Deprecated') -const int appleLogo = 240; - -const int appleMenuFolderIconResource = -3982; - -typedef arcade_register_t = mach_port_t; -typedef arm_debug_state32_t = __darwin_arm_debug_state32; -typedef arm_debug_state64_t = __darwin_arm_debug_state64; -typedef arm_debug_state_t = __arm_legacy_debug_state; -typedef arm_exception_state32_t = __darwin_arm_exception_state; -typedef arm_exception_state64_t = __darwin_arm_exception_state64; -typedef arm_exception_state64_v2_t = __darwin_arm_exception_state64_v2; -typedef arm_exception_state_t = __darwin_arm_exception_state; -typedef arm_neon_state32_t = __darwin_arm_neon_state; -typedef arm_neon_state64_t = __darwin_arm_neon_state64; -typedef arm_neon_state_t = __darwin_arm_neon_state; -typedef arm_pagein_state_t = __arm_pagein_state; -typedef arm_sme2_state_t = __darwin_arm_sme2_state; -typedef arm_sme_state_t = __darwin_arm_sme_state; -typedef arm_sme_za_state_t = __darwin_arm_sme_za_state; - -final class arm_state_hdr extends ffi.Struct { - @ffi.Uint32() - external int flavor; - - @ffi.Uint32() - external int count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flavor, - required int count, - }) => $allocator() - ..ref.flavor = flavor - ..ref.count = count; -} - -typedef arm_state_hdr_t = arm_state_hdr; -typedef arm_sve_p_state_t = __darwin_arm_sve_p_state; -typedef arm_sve_z_state_t = __darwin_arm_sve_z_state; -typedef arm_thread_state32_t = __darwin_arm_thread_state; -typedef arm_thread_state64_t = __darwin_arm_thread_state64; -typedef arm_thread_state_t = __darwin_arm_thread_state; - -final class arm_unified_thread_state extends ffi.Struct { - external arm_state_hdr_t ash; - - external UnnamedUnion$15 uts; -} - -typedef arm_unified_thread_state_t = arm_unified_thread_state; -typedef arm_vfp_state_t = __darwin_arm_vfp_state; -@Deprecated('Deprecated') -const int asiAliasName = 0; - -@Deprecated('Deprecated') -const int asiParentName = 1; - -@Deprecated('Deprecated') -const int asiServerName = -2; - -@Deprecated('Deprecated') -const int asiVolumeName = -1; - -@Deprecated('Deprecated') -const int asiZoneName = -3; - -const int aspBadVersNum = -1066; - -const int aspBufTooSmall = -1067; - -const int aspNoAck = -1075; - -const int aspNoMoreSess = -1068; - -const int aspNoServers = -1069; - -const int aspParamErr = -1070; - -const int aspServerBusy = -1071; - -const int aspSessClosed = -1072; - -const int aspSizeErr = -1073; - -const int aspTooMany = -1074; - -const int atAbsoluteCenter = 5; - -const int atBottom = 3; - -const int atBottomLeft = 11; - -const int atBottomRight = 15; - -const int atCenterBottom = 7; - -const int atCenterLeft = 9; - -const int atCenterRight = 13; - -const int atCenterTop = 6; - -const int atHorizontalCenter = 4; - -const int atLeft = 8; - -const int atNone = 0; - -const int atRight = 12; - -const int atTop = 2; - -const int atTopLeft = 10; - -const int atTopRight = 14; - -const int atVerticalCenter = 1; - -const int atomIndexInvalidErr = -2104; - -const int atomsNotOfSameTypeErr = -2103; - -const int atpBadRsp = -3107; - -const int atpLenErr = -3106; - -typedef au_asflgs_t = u_int64_t; -typedef au_asid_t = pid_t; -typedef au_class_t = u_int32_t; -typedef au_ctlmode_t = ffi.UnsignedChar; -typedef Dartau_ctlmode_t = int; -typedef au_emod_t = u_int16_t; - -final class au_evclass_map extends ffi.Struct { - @au_event_t() - external int ec_number; - - @au_class_t() - external int ec_class; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ec_number, - required int ec_class, - }) => $allocator() - ..ref.ec_number = ec_number - ..ref.ec_class = ec_class; -} - -typedef au_evclass_map_t = au_evclass_map; -typedef au_event_t = u_int16_t; - -final class au_expire_after extends ffi.Struct { - @time_t() - external int age; - - @ffi.Size() - external int size; - - @ffi.UnsignedChar() - external int op_type; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int age, - required int size, - required int op_type, - }) => $allocator() - ..ref.age = age - ..ref.size = size - ..ref.op_type = op_type; -} - -typedef au_expire_after_t = au_expire_after; -typedef au_fstat_t = audit_fstat; -typedef au_id_t = uid_t; - -final class au_mask extends ffi.Struct { - @ffi.UnsignedInt() - external int am_success; - - @ffi.UnsignedInt() - external int am_failure; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int am_success, - required int am_failure, - }) => $allocator() - ..ref.am_success = am_success - ..ref.am_failure = am_failure; -} - -typedef au_mask_t = au_mask; - -final class au_qctrl extends ffi.Struct { - @ffi.Int() - external int aq_hiwater; - - @ffi.Int() - external int aq_lowater; - - @ffi.Int() - external int aq_bufsz; - - @ffi.Int() - external int aq_delay; - - @ffi.Int() - external int aq_minfree; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int aq_hiwater, - required int aq_lowater, - required int aq_bufsz, - required int aq_delay, - required int aq_minfree, - }) => $allocator() - ..ref.aq_hiwater = aq_hiwater - ..ref.aq_lowater = aq_lowater - ..ref.aq_bufsz = aq_bufsz - ..ref.aq_delay = aq_delay - ..ref.aq_minfree = aq_minfree; -} - -typedef au_qctrl_t = au_qctrl; - -final class au_session extends ffi.Struct { - external ffi.Pointer as_aia_p; - - external au_mask_t as_mask; -} - -typedef au_session_t = au_session; -typedef au_stat_t = audit_stat; - -final class au_tid extends ffi.Struct { - @dev_t() - external int port; - - @u_int32_t() - external int machine; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int port, - required int machine, - }) => $allocator() - ..ref.port = port - ..ref.machine = machine; -} - -final class au_tid_addr extends ffi.Struct { - @dev_t() - external int at_port; - - @u_int32_t() - external int at_type; - - @ffi.Array.multi([4]) - external ffi.Array at_addr; -} - -typedef au_tid_addr_t = au_tid_addr; -typedef au_tid_t = au_tid; - -final class au_token extends ffi.Opaque {} - -final class audit_fstat extends ffi.Struct { - @u_int64_t() - external int af_filesz; - - @u_int64_t() - external int af_currsz; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int af_filesz, - required int af_currsz, - }) => $allocator() - ..ref.af_filesz = af_filesz - ..ref.af_currsz = af_currsz; -} - -enum audit_session_flags { - AU_SESSION_FLAG_IS_INITIAL(1), - AU_SESSION_FLAG_HAS_GRAPHIC_ACCESS(16), - AU_SESSION_FLAG_HAS_TTY(32), - AU_SESSION_FLAG_IS_REMOTE(4096), - AU_SESSION_FLAG_HAS_CONSOLE_ACCESS(8192), - AU_SESSION_FLAG_HAS_AUTHENTICATED(16384); - - final int value; - const audit_session_flags(this.value); - - static audit_session_flags fromValue(int value) => switch (value) { - 1 => AU_SESSION_FLAG_IS_INITIAL, - 16 => AU_SESSION_FLAG_HAS_GRAPHIC_ACCESS, - 32 => AU_SESSION_FLAG_HAS_TTY, - 4096 => AU_SESSION_FLAG_IS_REMOTE, - 8192 => AU_SESSION_FLAG_HAS_CONSOLE_ACCESS, - 16384 => AU_SESSION_FLAG_HAS_AUTHENTICATED, - _ => throw ArgumentError('Unknown value for audit_session_flags: $value'), - }; -} - -final class audit_stat extends ffi.Struct { - @ffi.UnsignedInt() - external int as_version; - - @ffi.UnsignedInt() - external int as_numevent; - - @ffi.Int() - external int as_generated; - - @ffi.Int() - external int as_nonattrib; - - @ffi.Int() - external int as_kernel; - - @ffi.Int() - external int as_audit; - - @ffi.Int() - external int as_auditctl; - - @ffi.Int() - external int as_enqueue; - - @ffi.Int() - external int as_written; - - @ffi.Int() - external int as_wblocked; - - @ffi.Int() - external int as_rblocked; - - @ffi.Int() - external int as_dropped; - - @ffi.Int() - external int as_totalsize; - - @ffi.UnsignedInt() - external int as_memused; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int as_version, - required int as_numevent, - required int as_generated, - required int as_nonattrib, - required int as_kernel, - required int as_audit, - required int as_auditctl, - required int as_enqueue, - required int as_written, - required int as_wblocked, - required int as_rblocked, - required int as_dropped, - required int as_totalsize, - required int as_memused, - }) => $allocator() - ..ref.as_version = as_version - ..ref.as_numevent = as_numevent - ..ref.as_generated = as_generated - ..ref.as_nonattrib = as_nonattrib - ..ref.as_kernel = as_kernel - ..ref.as_audit = as_audit - ..ref.as_auditctl = as_auditctl - ..ref.as_enqueue = as_enqueue - ..ref.as_written = as_written - ..ref.as_wblocked = as_wblocked - ..ref.as_rblocked = as_rblocked - ..ref.as_dropped = as_dropped - ..ref.as_totalsize = as_totalsize - ..ref.as_memused = as_memused; -} - -final class audit_token_t extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array val; -} - -final class auditinfo extends ffi.Struct { - @au_id_t() - external int ai_auid; - - external au_mask_t ai_mask; - - external au_tid_t ai_termid; - - @au_asid_t() - external int ai_asid; -} - -final class auditinfo_addr extends ffi.Struct { - @au_id_t() - external int ai_auid; - - external au_mask_t ai_mask; - - external au_tid_addr_t ai_termid; - - @au_asid_t() - external int ai_asid; - - @au_asflgs_t() - external int ai_flags; -} - -typedef auditinfo_addr_t = auditinfo_addr; -typedef auditinfo_t = auditinfo; - -final class auditpinfo extends ffi.Struct { - @pid_t() - external int ap_pid; - - @au_id_t() - external int ap_auid; - - external au_mask_t ap_mask; - - external au_tid_t ap_termid; - - @au_asid_t() - external int ap_asid; -} - -final class auditpinfo_addr extends ffi.Struct { - @pid_t() - external int ap_pid; - - @au_id_t() - external int ap_auid; - - external au_mask_t ap_mask; - - external au_tid_addr_t ap_termid; - - @au_asid_t() - external int ap_asid; - - @au_asflgs_t() - external int ap_flags; -} - -typedef auditpinfo_addr_t = auditpinfo_addr; -typedef auditpinfo_t = auditpinfo; - -const int authFailErr = -927; - -const int auxiliaryExportDataUnavailable = -2058; - -const int bAccessCntl = 18; - -const int bAllowCDiDataHandler = 17; - -const int bAncestorModDateChanges = 11; - -const int bDoNotDisplay = 24; - -const int bHasBTreeMgr = 5; - -const int bHasBlankAccessPrivileges = 4; - -const int bHasCatSearch = 7; - -const int bHasCopyFile = 14; - -const int bHasDesktopMgr = 12; - -const int bHasDirectIO = 1; - -const int bHasExtFSVol = 16; - -const int bHasFileIDs = 6; - -const int bHasFolderLock = 10; - -const int bHasMoveRename = 13; - -const int bHasOpenDeny = 15; - -const int bHasPersonalAccessPrivileges = 9; - -const int bHasShortName = 11; - -const int bHasUserGroupList = 8; - -const int bIsAutoMounted = 14; - -const int bIsCasePreserving = 23; - -const int bIsCaseSensitive = 22; - -const int bIsEjectable = 0; - -const int bIsOnExternalBus = 27; - -const int bIsOnInternalBus = 21; - -const int bIsRemovable = 25; - -const int bL2PCanMapFileBlocks = 9; - -const int bLimitFCBs = 31; - -const int bLocalWList = 30; - -const int bNoBootBlks = 19; - -const int bNoDeskItems = 20; - -const int bNoLclSync = 27; - -const int bNoMiniFndr = 29; - -const int bNoRootTimes = 26; - -const int bNoSwitchTo = 25; - -const int bNoSysDir = 17; - -const int bNoVNEdit = 28; - -const int bNoVolumeSizes = 20; - -const int bParentModDateChanges = 10; - -const int bSupports2TBFiles = 4; - -const int bSupportsAsyncRequests = 3; - -const int bSupportsExclusiveLocks = 18; - -const int bSupportsExtendedFileSecurity = 28; - -const int bSupportsFSCatalogSearch = 2; - -const int bSupportsFSExchangeObjects = 3; - -const int bSupportsHFSPlusAPIs = 1; - -const int bSupportsJournaling = 19; - -const int bSupportsLongNames = 5; - -const int bSupportsMultiScriptNames = 6; - -const int bSupportsNamedForks = 7; - -const int bSupportsSubtreeIterators = 8; - -const int bSupportsSymbolicLinks = 13; - -const int bSupportsTrashVolumeCache = 2; - -const int bTrshOffLine = 26; - -const int badATPSkt = -1099; - -const int badBtSlpErr = -70; - -const int badBuffNum = -1100; - -const int badCallOrderErr = -2209; - -const int badChannel = -205; - -const int badCksmErr = -69; - -const int badCodecCharacterizationErr = -8993; - -const int badComponentInstance = -2147450879; - -const int badComponentSelector = -2147450878; - -const int badComponentType = -2005; - -const int badControllerHeight = -9994; - -const int badDBtSlp = -73; - -const int badDCksum = -72; - -const int badDataRefIndex = -2050; - -@Deprecated('Deprecated') -const int badDelim = 3; - -const int badDepthErr = -2207; - -const int badDictFormat = -246; - -const int badDragFlavorErr = -1852; - -const int badDragItemErr = -1851; - -const int badDragRefErr = -1850; - -const int badEditIndex = -2033; - -const int badEditList = -2017; - -const int badEditionFileErr = -453; - -@Deprecated('Deprecated') -const int badEnding = 4; - -const int badExtResource = -185; - -const int badFCBErr = -1327; - -const int badFidErr = -1307; - -const int badFileFormat = -208; - -const int badFolderDescErr = -4270; - -const int badFormat = -206; - -const int badImageDescription = -2001; - -const int badImageErr = -1861; - -const int badImageRgnErr = -1860; - -const int badInputText = -247; - -const int badLocNameErr = -931; - -const int badMDBErr = -60; - -const int badMovErr = -122; - -const int badPasteboardFlavorErr = -25133; - -const int badPasteboardIndexErr = -25131; - -const int badPasteboardItemErr = -25132; - -const int badPasteboardSyncErr = -25130; - -const int badPortNameErr = -919; - -const int badProfileError = -4008; - -const int badPublicMovieAtom = -2002; - -const int badReqErr = -909; - -const int badRoutingSizeErr = -4276; - -const int badSGChannel = -9406; - -const int badScrapRefErr = -4990; - -const int badSectionErr = -451; - -const int badServiceMethodErr = -930; - -const int badSubPartErr = -454; - -const int badTrackIndex = -2028; - -const int badTranslationRefErr = -3031; - -const int badTranslationSpecErr = -3031; - -const int badUnitErr = -21; - -@Deprecated('Deprecated') -const int baseDblQuote = 227; - -@Deprecated('Deprecated') -const int baseSingQuote = 226; - -const int bdNamErr = -37; - -typedef bearer_token_callback_t = - ffi.Pointer>; -typedef bearer_token_callback_tFunction = - ffi.Pointer Function( - ffi.Pointer http, - ffi.Pointer resource, - ffi.Pointer user_data, - ); - -const int betaStage = 96; - -typedef blkcnt_t = __darwin_blkcnt_t; -typedef blksize_t = __darwin_blksize_t; - -const int bold = 1; - -typedef boolean_t = ffi.Int; -typedef Dartboolean_t = int; -typedef bootstrap_t = mach_port_t; - -const int breakRecd = -90; - -@Deprecated('Deprecated') -const int breveMark = 249; - -const int btDupRecErr = -414; - -const int btKeyAttrErr = -417; - -const int btKeyLenErr = -416; - -const int btNoSpace = -413; - -const int btRecNotFnd = -415; - -const int buf2SmallErr = -3101; - -const int bufTooSmall = -243; - -const int bufferIsSmall = -607; - -const int buffersTooSmall = -210; - -const int cADBAddress = 1667327074; - -const int cAEList = 1818850164; - -const int cAddressSpec = 1667327090; - -const int cAppleTalkAddress = 1667331104; - -const int cApplication = 1667330160; - -const int cArc = 1667330659; - -const int cBoolean = 1651470188; - -const int cBusAddress = 1667396979; - -const int cCell = 1667458412; - -const int cChar = 1667784992; - -const int cColorTable = 1668051572; - -const int cColumn = 1667460972; - -const int cDepthErr = -157; - -const int cDevErr = -155; - -const int cDevSpec = 1667523958; - -const int cDocument = 1685021557; - -const int cDrawingArea = 1667527287; - -const int cEnumeration = 1701737837; - -const int cEthernetAddress = 1667591712; - -const int cFTPItem = 1718906912; - -const int cFile = 1718185061; - -const int cFireWireAddress = 1667659552; - -const int cFixed = 1718188132; - -const int cFixedPoint = 1718644340; - -const int cFixedRectangle = 1718772596; - -const int cGraphicLine = 1735158126; - -const int cGraphicObject = 1667723106; - -const int cGraphicShape = 1667724136; - -const int cGraphicText = 1667724408; - -const int cGroupedGraphic = 1668311395; - -const int cHTML = 1752460652; - -const int cIPAddress = 1667854368; - -const int cInsertionLoc = 1768846188; - -const int cInsertionPoint = 1667853939; - -const int cInternetAddress = 1229996356; - -const int cIntlText = 1769240692; - -const int cIntlWritingCode = 1768846444; - -const int cItem = 1667855469; - -const int cKeystroke = 1802531443; - -const int cLine = 1668049262; - -const int cLocalTalkAddress = 1668052000; - -const int cLongDateTime = 1818522656; - -const int cLongFixed = 1818654820; - -const int cLongFixedPoint = 1818652788; - -const int cLongFixedRectangle = 1818653283; - -const int cLongInteger = 1819242087; - -const int cLongPoint = 1819307636; - -const int cLongRectangle = 1819435892; - -const int cMachineLoc = 1833725795; - -const int cMatchErr = -150; - -const int cMenu = 1668116085; - -const int cMenuItem = 1668113774; - -const int cNoMemErr = -152; - -const int cObject = 1668244074; - -const int cObjectSpecifier = 1868720672; - -const int cOpenableObject = 1668247394; - -const int cOval = 1668249196; - -const int cPICT = 1346978644; - -const int cParagraph = 1668309362; - -const int cPixel = 1668315244; - -const int cPixelMap = 1668311416; - -const int cPolygon = 1668310894; - -const int cProperty = 1886547824; - -const int cProtectErr = -154; - -const int cQDPoint = 1363439732; - -const int cQDRectangle = 1902408308; - -const int cRGBColor = 1666336578; - -const int cRangeErr = -153; - -const int cRectangle = 1668441443; - -const int cResErr = -156; - -const int cRotation = 1953656692; - -const int cRoundedRectangle = 1668444771; - -const int cRow = 1668444023; - -const int cSCSIAddress = 1668506483; - -const int cSelection = 1668506988; - -const int cShortInteger = 1936224114; - -const int cTable = 1668571756; - -const int cTempMemErr = -151; - -const int cText = 1668577396; - -const int cTextFlow = 1667656815; - -const int cTextStyles = 1953723513; - -const int cTokenRingAddress = 1668575083; - -const int cType = 1954115685; - -const int cURL = 1970433056; - -const int cUSBAddress = 1668641634; - -const int cVersion = 1986359923; - -const int cWindow = 1668770158; - -const int cWord = 1668771698; - -typedef caddr_t = ffi.Pointer; -@Deprecated('Deprecated') -const int calArabicCivil = 1; - -@Deprecated('Deprecated') -const int calArabicLunar = 2; - -@Deprecated('Deprecated') -const int calCoptic = 5; - -@Deprecated('Deprecated') -const int calGregorian = 0; - -@Deprecated('Deprecated') -const int calJapanese = 3; - -@Deprecated('Deprecated') -const int calJewish = 4; - -@Deprecated('Deprecated') -const int calPersian = 6; - -const int callNotSupportedByNodeErr = -30542; - -const int callerSecuritySession = -1; - -const int cannotBeLeafAtomErr = -2109; - -const int cannotDeferErr = -625; - -const int cannotFindAtomErr = -2101; - -const int cannotMakeContiguousErr = -622; - -const int cannotMoveAttachedController = -9999; - -const int cannotSetWidthOfAttachedController = -9997; - -const int cantCreatePickerWindow = -4004; - -const int cantCreateSingleForkFile = -2022; - -const int cantDoThatInCurrentMode = -9402; - -const int cantEnableTrack = -2035; - -const int cantFindHandler = -2003; - -const int cantGetFlavorErr = -1854; - -const int cantLoadPackage = -4005; - -const int cantLoadPickMethodErr = -11003; - -const int cantLoadPicker = -4003; - -const int cantOpenHandler = -2004; - -const int cantPutPublicMovieAtom = -2016; - -const int cantReadUtilities = 33280; - -const int cantReceiveFromSynthesizerOSErr = -2073; - -const int cantSendToSynthesizerOSErr = -2072; - -const int cantStepErr = -75; - -const int catChangedErr = -1304; - -const int cbNotFound = -1102; - -typedef ccntTokenRecHandle = ffi.Pointer; -typedef ccntTokenRecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class ccntTokenRecord extends ffi.Struct { - @DescType() - external int tokenClass; - - external objc.AEDesc token; -} - -const int cdevGenErr = -1; - -const int cdevMemErr = 0; - -const int cdevResErr = 1; - -const int cdevUnset = 3; - -@Deprecated('Deprecated') -const int cedilla = 252; - -@Deprecated('Deprecated') -const int centeredDot = 225; - -const int century = 128; - -const int cfragAbortClosureErr = -2830; - -const int cfragArchitectureErr = -2823; - -const int cfragCFMInternalErr = -2819; - -const int cfragCFMStartupErr = -2818; - -const int cfragCFragRsrcErr = -2857; - -const int cfragClosureIDErr = -2829; - -const int cfragConnectionIDErr = -2801; - -const int cfragContainerIDErr = -2828; - -const int cfragContextIDErr = -2800; - -const int cfragDupRegistrationErr = -2805; - -const int cfragExecFileRefErr = -2854; - -const int cfragFileSizeErr = -2825; - -const int cfragFirstErrCode = -2800; - -const int cfragFirstReservedCode = -2897; - -const int cfragFragmentCorruptErr = -2820; - -const int cfragFragmentFormatErr = -2806; - -const int cfragFragmentUsageErr = -2824; - -const int cfragImportTooNewErr = -2814; - -const int cfragImportTooOldErr = -2813; - -const int cfragInitAtBootErr = -2816; - -const int cfragInitFunctionErr = -2821; - -const int cfragInitLoopErr = -2815; - -const int cfragInitOrderErr = -2812; - -const int cfragLastErrCode = -2899; - -const int cfragLibConnErr = -2817; - -const int cfragMapFileErr = -2851; - -const int cfragNoApplicationErr = -2822; - -const int cfragNoClientMemErr = -2810; - -const int cfragNoIDsErr = -2811; - -const int cfragNoLibraryErr = -2804; - -const int cfragNoPositionErr = -2808; - -const int cfragNoPrivateMemErr = -2809; - -const int cfragNoRegistrationErr = -2827; - -const int cfragNoSectionErr = -2803; - -const int cfragNoSymbolErr = -2802; - -const int cfragNotClosureErr = -2826; - -const int cfragOutputLengthErr = -2831; - -const int cfragReservedCode_1 = -2899; - -const int cfragReservedCode_2 = -2898; - -const int cfragReservedCode_3 = -2897; - -const int cfragRsrcForkErr = -2856; - -const int cfragStdFolderErr = -2855; - -const int cfragUnresolvedErr = -2807; - -const int channelBusy = -209; - -const int channelNotBusy = -211; - -@Deprecated('Deprecated') -const int circumflex = 246; - -@Deprecated('Deprecated') -const int circumflexUprA = 229; - -@Deprecated('Deprecated') -const int circumflexUprE = 230; - -@Deprecated('Deprecated') -const int circumflexUprI = 235; - -@Deprecated('Deprecated') -const int circumflexUprO = 239; - -@Deprecated('Deprecated') -const int circumflexUprU = 243; - -const int ckSumErr = -3103; - -typedef cl_device_id = ffi.Pointer<_cl_device_id>; - -const int clearDev = 13; - -const int clkRdErr = -85; - -const int clkWrErr = -86; - -typedef clock_attr_t = ffi.Pointer; -typedef clock_ctrl_port_t = clock_ctrl_t; -typedef clock_ctrl_t = mach_port_t; -typedef clock_flavor_t = ffi.Int; -typedef Dartclock_flavor_t = int; -typedef clock_id_t = ffi.Int; -typedef Dartclock_id_t = int; -typedef clock_reply_t = mach_port_t; -typedef clock_res_t = ffi.Int; -typedef Dartclock_res_t = int; -typedef clock_serv_port_t = clock_serv_t; -typedef clock_serv_t = mach_port_t; -typedef clock_t = __darwin_clock_t; - -enum clockid_t { - _CLOCK_REALTIME(0), - _CLOCK_MONOTONIC(6), - _CLOCK_MONOTONIC_RAW(4), - _CLOCK_MONOTONIC_RAW_APPROX(5), - _CLOCK_UPTIME_RAW(8), - _CLOCK_UPTIME_RAW_APPROX(9), - _CLOCK_PROCESS_CPUTIME_ID(12), - _CLOCK_THREAD_CPUTIME_ID(16); - - final int value; - const clockid_t(this.value); - - static clockid_t fromValue(int value) => switch (value) { - 0 => _CLOCK_REALTIME, - 6 => _CLOCK_MONOTONIC, - 4 => _CLOCK_MONOTONIC_RAW, - 5 => _CLOCK_MONOTONIC_RAW_APPROX, - 8 => _CLOCK_UPTIME_RAW, - 9 => _CLOCK_UPTIME_RAW_APPROX, - 12 => _CLOCK_PROCESS_CPUTIME_ID, - 16 => _CLOCK_THREAD_CPUTIME_ID, - _ => throw ArgumentError('Unknown value for clockid_t: $value'), - }; -} - -final class clockinfo extends ffi.Struct { - @ffi.Int() - external int hz; - - @ffi.Int() - external int tick; - - @ffi.Int() - external int tickadj; - - @ffi.Int() - external int stathz; - - @ffi.Int() - external int profhz; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int hz, - required int tick, - required int tickadj, - required int stathz, - required int profhz, - }) => $allocator() - ..ref.hz = hz - ..ref.tick = tick - ..ref.tickadj = tickadj - ..ref.stathz = stathz - ..ref.profhz = profhz; -} - -const int closErr = -24; - -const int closeDev = 2; - -const int cm10CLRData = 1094929490; - -const int cm11CLRData = 1111706706; - -const int cm12CLRData = 1128483922; - -const int cm13CLRData = 1145261138; - -const int cm14CLRData = 1162038354; - -const int cm15CLRData = 1178815570; - -const int cm16_8ColorPacking = 8192; - -const int cm24_8ColorPacking = 8448; - -const int cm32_16ColorPacking = 9728; - -const int cm32_32ColorPacking = 9984; - -const int cm32_8ColorPacking = 2048; - -const int cm3CLRData = 860048466; - -const int cm40_8ColorPacking = 8704; - -const int cm48_16ColorPacking = 10496; - -const int cm48_8ColorPacking = 8960; - -const int cm4CLRData = 876825682; - -const int cm56_8ColorPacking = 9216; - -const int cm5CLRData = 893602898; - -const int cm64_16ColorPacking = 10752; - -const int cm64_8ColorPacking = 9472; - -const int cm6CLRData = 910380114; - -const int cm7CLRData = 927157330; - -const int cm8CLRData = 943934546; - -const int cm8_8ColorPacking = 10240; - -const int cm9CLRData = 960711762; - -const int cmARGB32PmulSpace = 6337; - -const int cmARGB32Space = 6273; - -const int cmARGB64LPmulSpace = 31425; - -const int cmARGB64LSpace = 31361; - -const int cmARGB64PmulSpace = 15041; - -const int cmARGB64Space = 14977; - -const int cmAToB0Tag = 1093812784; - -const int cmAToB1Tag = 1093812785; - -const int cmAToB2Tag = 1093812786; - -const int cmAbortWriteAccess = 7; - -const int cmAbsoluteColorimetric = 3; - -const int cmAbstractClass = 1633842036; - -const int cmAlphaFirstPacking = 4096; - -const int cmAlphaLastPacking = 0; - -const int cmAlphaPmulSpace = 64; - -const int cmAlphaSpace = 128; - -const int cmAsciiData = 0; - -const int cmBToA0Tag = 1110589744; - -const int cmBToA1Tag = 1110589745; - -const int cmBToA2Tag = 1110589746; - -const int cmBeginAccess = 8; - -const int cmBestMode = 2; - -const int cmBinaryData = 1; - -const int cmBlackPointCompensation = 1; - -const int cmBlackPointCompensationMask = 4; - -const int cmBlueColorantTag = 1649957210; - -const int cmBlueTRCTag = 1649693251; - -const int cmBradfordChromaticAdaptation = 3; - -const int cmBufferBasedProfile = 6; - -const int cmCMSReservedFlagsMask = -65536; - -const int cmCMYData = 1129142560; - -const int cmCMYK32Space = 2050; - -const int cmCMYK64LSpace = 27138; - -const int cmCMYK64Space = 10754; - -const int cmCMYKData = 1129142603; - -const int cmCMYKSpace = 2; - -const int cmCS1ChromTag = 1667789421; - -const int cmCS1CustTag = 1668641652; - -const int cmCS1NameTag = 1851878757; - -const int cmCS1ProfileVersion = 256; - -const int cmCS1TRCTag = 1953653536; - -const int cmCS2ProfileVersion = 33554432; - -const int cmCalibrationDateTimeTag = 1667329140; - -const int cmCameraDeviceClass = 1668117089; - -const int cmCantConcatenateError = -178; - -const int cmCantCopyModifiedV1Profile = -4215; - -const int cmCantDeleteElement = -4202; - -const int cmCantDeleteProfile = -180; - -const int cmCantGamutCheckError = -4217; - -const int cmCantXYZ = -179; - -const int cmCharTargetTag = 1952543335; - -const int cmChromaticAdaptationTag = 1667785060; - -const int cmCloseAccess = 5; - -const int cmCloseSpool = 5; - -const int cmColorSpaceAlphaMask = 128; - -const int cmColorSpaceClass = 1936744803; - -const int cmColorSpaceEncodingMask = 983040; - -const int cmColorSpacePackingMask = 65280; - -const int cmColorSpacePremulAlphaMask = 64; - -const int cmColorSpaceReservedMask = -1048576; - -const int cmColorSpaceSpaceAndAlphaMask = 255; - -const int cmColorSpaceSpaceMask = 63; - -const int cmCopyrightTag = 1668313716; - -const int cmCreateNewAccess = 6; - -const int cmCurrentDeviceInfoVersion = 65536; - -const int cmCurrentProfileInfoVersion = 65536; - -const int cmCurrentProfileLocationSize = 1032; - -const int cmCurrentProfileMajorVersion = 33554432; - -const int cmDefaultDeviceID = 0; - -const int cmDefaultProfileID = 0; - -const int cmDeviceAlreadyRegistered = -4228; - -const int cmDeviceDBNotFoundErr = -4227; - -const int cmDeviceInfoVersion1 = 65536; - -const int cmDeviceMfgDescTag = 1684893284; - -const int cmDeviceModelDescTag = 1684890724; - -const int cmDeviceNotRegistered = -4229; - -const int cmDeviceProfileInfoVersion1 = 65536; - -const int cmDeviceProfileInfoVersion2 = 131072; - -const int cmDeviceProfilesNotFound = -4230; - -const int cmDeviceStateAppleRsvdBits = -16711681; - -const int cmDeviceStateBusy = 2; - -const int cmDeviceStateDefault = 0; - -const int cmDeviceStateDeviceRsvdBits = 16711680; - -const int cmDeviceStateForceNotify = -2147483648; - -const int cmDeviceStateOffline = 1; - -const int cmDisplayClass = 1835955314; - -const int cmDisplayDeviceClass = 1835955314; - -const int cmDisplayUse = 1685089401; - -const int cmDraftMode = 1; - -const int cmElementTagNotFound = -4200; - -const int cmEmbeddedMask = 1; - -const int cmEmbeddedProfile = 0; - -const int cmEmbeddedUse = 1; - -const int cmEmbeddedUseMask = 2; - -const int cmEndAccess = 9; - -const int cmErrIncompatibleProfile = -4208; - -const int cmFatalProfileErr = -4203; - -const int cmFlare0 = 0; - -const int cmFlare100 = 1; - -const int cmGamutCheckingMask = 524288; - -const int cmGamutResult1Space = 2828; - -const int cmGamutResultSpace = 12; - -const int cmGamutTag = 1734438260; - -const int cmGeometry045or450 = 1; - -const int cmGeometry0dord0 = 2; - -const int cmGeometryUnknown = 0; - -const int cmGlossy = 1; - -const int cmGlossyMatteMask = 2; - -const int cmGray16LSpace = 16394; - -const int cmGray16Space = 10; - -const int cmGray8Space = 10250; - -const int cmGrayA16PmulSpace = 8394; - -const int cmGrayA16Space = 8330; - -const int cmGrayA32LPmulSpace = 16586; - -const int cmGrayA32LSpace = 16522; - -const int cmGrayA32PmulSpace = 202; - -const int cmGrayA32Space = 138; - -const int cmGrayAPmulSpace = 202; - -const int cmGrayASpace = 138; - -const int cmGrayData = 1196573017; - -const int cmGraySpace = 10; - -const int cmGrayTRCTag = 1800688195; - -const int cmGreenColorantTag = 1733843290; - -const int cmGreenTRCTag = 1733579331; - -const int cmHLS32Space = 2564; - -const int cmHLSData = 1212961568; - -const int cmHLSSpace = 4; - -const int cmHSV32Space = 2563; - -const int cmHSVData = 1213421088; - -const int cmHSVSpace = 3; - -const int cmICCProfileVersion2 = 33554432; - -const int cmICCProfileVersion21 = 34603008; - -const int cmICCProfileVersion4 = 67108864; - -const int cmICCReservedFlagsMask = 65535; - -const int cmIlluminantA = 6; - -const int cmIlluminantD50 = 1; - -const int cmIlluminantD55 = 5; - -const int cmIlluminantD65 = 2; - -const int cmIlluminantD93 = 3; - -const int cmIlluminantEquiPower = 7; - -const int cmIlluminantF2 = 4; - -const int cmIlluminantF8 = 8; - -const int cmIlluminantUnknown = 0; - -const int cmIndexRangeErr = -4201; - -const int cmInputClass = 1935896178; - -const int cmInputUse = 1768845428; - -const int cmInternalCFErr = -4231; - -const int cmInterpolationMask = 262144; - -const int cmInvalidColorSpace = -4209; - -const int cmInvalidDstMap = -4211; - -const int cmInvalidProfile = -4204; - -const int cmInvalidProfileComment = -4213; - -const int cmInvalidProfileLocation = -4205; - -const int cmInvalidSearch = -4206; - -const int cmInvalidSrcMap = -4210; - -const int cmIterateAllDeviceProfiles = 4; - -const int cmIterateCurrentDeviceProfiles = 3; - -const int cmIterateCustomDeviceProfiles = 2; - -const int cmIterateDeviceProfilesMask = 15; - -const int cmIterateFactoryDeviceProfiles = 1; - -const int cmLAB24Space = 8456; - -const int cmLAB32Space = 2568; - -const int cmLAB48LSpace = 26888; - -const int cmLAB48Space = 10504; - -const int cmLABSpace = 8; - -const int cmLUV32Space = 2567; - -const int cmLUVSpace = 7; - -const int cmLabData = 1281450528; - -const int cmLinearChromaticAdaptation = 1; - -const int cmLinesPer = 1; - -const int cmLinkClass = 1818848875; - -const int cmLittleEndianPacking = 16384; - -const int cmLong10ColorPacking = 2560; - -const int cmLong8ColorPacking = 2048; - -const int cmLuminanceTag = 1819635049; - -const int cmLuvData = 1282766368; - -const int cmMCEight8Space = 9492; - -const int cmMCEightSpace = 20; - -const int cmMCFive8Space = 8721; - -const int cmMCFiveSpace = 17; - -const int cmMCH5Data = 1296255029; - -const int cmMCH6Data = 1296255030; - -const int cmMCH7Data = 1296255031; - -const int cmMCH8Data = 1296255032; - -const int cmMCSeven8Space = 9235; - -const int cmMCSevenSpace = 19; - -const int cmMCSix8Space = 8978; - -const int cmMCSixSpace = 18; - -const int cmMacintosh = 1095782476; - -const int cmMagicNumber = 1633907568; - -const int cmMakeAndModelTag = 1835888484; - -const int cmMeasurementTag = 1835360627; - -const int cmMediaBlackPointTag = 1651208308; - -const int cmMediaWhitePointTag = 2004119668; - -const int cmMethodError = -171; - -const int cmMethodNotFound = -175; - -const int cmMicrosoft = 1297303124; - -const int cmNamedColor2Tag = 1852009522; - -const int cmNamedColorClass = 1852662636; - -const int cmNamedColorNotFound = -4216; - -const int cmNamedColorTag = 1852010348; - -const int cmNamedData = 1312902469; - -const int cmNamedIndexed32LSpace = 26384; - -const int cmNamedIndexed32Space = 10000; - -const int cmNamedIndexedSpace = 16; - -const int cmNativeDisplayInfoTag = 1852074350; - -const int cmNoColorPacking = 0; - -const int cmNoCurrentProfile = -182; - -const int cmNoGDevicesError = -4212; - -const int cmNoProfileBase = 0; - -const int cmNoSpace = 0; - -const int cmNormalMode = 0; - -const int cmNumHeaderElements = 10; - -const int cmOneBitDirectPacking = 2816; - -const int cmOpenReadAccess = 1; - -const int cmOpenReadSpool = 1; - -const int cmOpenWriteAccess = 2; - -const int cmOpenWriteSpool = 2; - -const int cmOriginalProfileLocationSize = 72; - -const int cmOutputClass = 1886549106; - -const int cmOutputUse = 1869968496; - -const int cmPS2CRD0Tag = 1886610480; - -const int cmPS2CRD1Tag = 1886610481; - -const int cmPS2CRD2Tag = 1886610482; - -const int cmPS2CRD3Tag = 1886610483; - -const int cmPS2CRDVMSizeTag = 1886615149; - -const int cmPS2CSATag = 1886597747; - -const int cmPS2RenderingIntentTag = 1886597737; - -const int cmPS7bit = 1; - -const int cmPS8bit = 2; - -const int cmParametricType0 = 0; - -const int cmParametricType1 = 1; - -const int cmParametricType2 = 2; - -const int cmParametricType3 = 3; - -const int cmParametricType4 = 4; - -const int cmPathBasedProfile = 5; - -const int cmPerceptual = 0; - -const int cmPrefsSynchError = -4232; - -const int cmPreview0Tag = 1886545200; - -const int cmPreview1Tag = 1886545201; - -const int cmPreview2Tag = 1886545202; - -const int cmPrinterDeviceClass = 1886549106; - -const int cmProfileDescriptionMLTag = 1685283693; - -const int cmProfileDescriptionTag = 1684370275; - -const int cmProfileError = -170; - -const int cmProfileIterateDataVersion1 = 65536; - -const int cmProfileIterateDataVersion2 = 131072; - -const int cmProfileIterateDataVersion3 = 196608; - -const int cmProfileIterateDataVersion4 = 262144; - -const int cmProfileMajorVersionMask = -16777216; - -const int cmProfileNotFound = -176; - -const int cmProfileSequenceDescTag = 1886610801; - -const int cmProfilesIdentical = -177; - -const int cmProofDeviceClass = 1886549350; - -const int cmProofUse = 1886549350; - -const int cmPrtrDefaultScreens = 0; - -const int cmQualityMask = 196608; - -const int cmRGB16LSpace = 17665; - -const int cmRGB16Space = 1281; - -const int cmRGB24Space = 8449; - -const int cmRGB32Space = 2049; - -const int cmRGB48LSpace = 26881; - -const int cmRGB48Space = 10497; - -const int cmRGB565LSpace = 17921; - -const int cmRGB565Space = 1537; - -const int cmRGBA32PmulSpace = 2241; - -const int cmRGBA32Space = 2177; - -const int cmRGBA64LPmulSpace = 27329; - -const int cmRGBA64LSpace = 27265; - -const int cmRGBA64PmulSpace = 10945; - -const int cmRGBA64Space = 10881; - -const int cmRGBAPmulSpace = 193; - -const int cmRGBASpace = 129; - -const int cmRGBData = 1380401696; - -const int cmRGBSpace = 1; - -const int cmRangeOverFlow = -4214; - -const int cmReadAccess = 3; - -const int cmReadSpool = 3; - -const int cmRedColorantTag = 1918392666; - -const int cmRedTRCTag = 1918128707; - -const int cmReflective = 0; - -const int cmReflectiveTransparentMask = 1; - -const int cmRelativeColorimetric = 1; - -const int cmReservedSpace1 = 9; - -const int cmReservedSpace2 = 11; - -const int cmReverseChannelPacking = 32768; - -const int cmSRGB16ChannelEncoding = 65536; - -const int cmSRGBData = 1934772034; - -const int cmSaturation = 2; - -const int cmScannerDeviceClass = 1935896178; - -const int cmScreeningDescTag = 1935897188; - -const int cmScreeningTag = 1935897198; - -const int cmSearchError = -4207; - -const int cmSigCrdInfoType = 1668441193; - -const int cmSigCurveType = 1668641398; - -const int cmSigDataType = 1684108385; - -const int cmSigDateTimeType = 1685350765; - -const int cmSigLut16Type = 1835430962; - -const int cmSigLut8Type = 1835430961; - -const int cmSigMakeAndModelType = 1835888484; - -const int cmSigMeasurementType = 1835360627; - -const int cmSigMultiFunctA2BType = 1832993312; - -const int cmSigMultiFunctB2AType = 1833058592; - -const int cmSigMultiLocalizedUniCodeType = 1835824483; - -const int cmSigNamedColor2Type = 1852009522; - -const int cmSigNamedColorType = 1852010348; - -const int cmSigNativeDisplayInfoType = 1852074350; - -const int cmSigPS2CRDVMSizeType = 1886615149; - -const int cmSigParametricCurveType = 1885434465; - -const int cmSigProfileDescriptionType = 1684370275; - -const int cmSigProfileSequenceDescType = 1886610801; - -const int cmSigS15Fixed16Type = 1936077618; - -const int cmSigScreeningType = 1935897198; - -const int cmSigSignatureType = 1936287520; - -const int cmSigTextType = 1952807028; - -const int cmSigU16Fixed16Type = 1969632050; - -const int cmSigU1Fixed15Type = 1969631542; - -const int cmSigUInt16Type = 1969828150; - -const int cmSigUInt32Type = 1969828658; - -const int cmSigUInt64Type = 1969829428; - -const int cmSigUInt8Type = 1969827896; - -const int cmSigUcrBgType = 1650877472; - -const int cmSigUnicodeTextType = 1970567284; - -const int cmSigVideoCardGammaType = 1986226036; - -const int cmSigViewingConditionsType = 1986618743; - -const int cmSigXYZType = 1482250784; - -const int cmSiliconGraphics = 1397180704; - -const int cmSolaris = 1398099543; - -const int cmSpotFunctionCross = 7; - -const int cmSpotFunctionDefault = 1; - -const int cmSpotFunctionDiamond = 3; - -const int cmSpotFunctionEllipse = 4; - -const int cmSpotFunctionLine = 5; - -const int cmSpotFunctionRound = 2; - -const int cmSpotFunctionSquare = 6; - -const int cmSpotFunctionUnknown = 0; - -const int cmStdobs1931TwoDegrees = 1; - -const int cmStdobs1964TenDegrees = 2; - -const int cmStdobsUnknown = 0; - -const int cmTaligent = 1413959252; - -const int cmTechnologyAMDisplay = 1095582752; - -const int cmTechnologyCRTDisplay = 1129468960; - -const int cmTechnologyDigitalCamera = 1684234605; - -const int cmTechnologyDyeSublimationPrinter = 1685288290; - -const int cmTechnologyElectrophotographicPrinter = 1701865583; - -const int cmTechnologyElectrostaticPrinter = 1702065249; - -const int cmTechnologyFilmScanner = 1718838126; - -const int cmTechnologyFilmWriter = 1718645358; - -const int cmTechnologyFlexography = 1718379896; - -const int cmTechnologyGravure = 1735549302; - -const int cmTechnologyInkJetPrinter = 1768580468; - -const int cmTechnologyOffsetLithography = 1868981875; - -const int cmTechnologyPMDisplay = 1347240992; - -const int cmTechnologyPhotoCD = 1263551300; - -const int cmTechnologyPhotoImageSetter = 1768777587; - -const int cmTechnologyPhotographicPaperPrinter = 1919969391; - -const int cmTechnologyProjectionTelevision = 1886024822; - -const int cmTechnologyReflectiveScanner = 1920164718; - -const int cmTechnologySilkscreen = 1936288875; - -const int cmTechnologyTag = 1952801640; - -const int cmTechnologyThermalWaxPrinter = 1953980792; - -const int cmTechnologyVideoCamera = 1986618467; - -const int cmTechnologyVideoMonitor = 1986618477; - -const int cmUcrBgTag = 1650877472; - -const int cmUnsupportedDataType = -181; - -const int cmUseDefaultChromaticAdaptation = 0; - -const int cmVideoCardGammaFormulaType = 1; - -const int cmVideoCardGammaTableType = 0; - -const int cmVideoCardGammaTag = 1986226036; - -const int cmViewingConditionsDescTag = 1987405156; - -const int cmViewingConditionsTag = 1986618743; - -const int cmVonKriesChromaticAdaptation = 2; - -const int cmWord565ColorPacking = 1536; - -const int cmWord5ColorPacking = 1280; - -const int cmWriteAccess = 4; - -const int cmWriteSpool = 4; - -const int cmXYZ24Space = 8454; - -const int cmXYZ32Space = 2566; - -const int cmXYZ48LSpace = 26886; - -const int cmXYZ48Space = 10502; - -const int cmXYZData = 1482250784; - -const int cmXYZSpace = 6; - -const int cmYCbCrData = 1497588338; - -const int cmYXY32Space = 2565; - -const int cmYXYSpace = 5; - -const int cmYxyData = 1501067552; - -const int cmapFontTableTag = 1668112752; - -@Deprecated('Deprecated') -const int cmpAliasNoFlags = 0; - -@Deprecated('Deprecated') -const int cmpAliasOnlyThisFile = 1; - -@Deprecated('Deprecated') -const int cmpIsMissing = 536870912; - -@Deprecated('Deprecated') -const int cmpThreadSafe = 268435456; - -@Deprecated('Deprecated') -const int cmpWantsRegisterMessage = -2147483648; - -final class cmsghdr extends ffi.Struct { - @socklen_t() - external int cmsg_len; - - @ffi.Int() - external int cmsg_level; - - @ffi.Int() - external int cmsg_type; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cmsg_len, - required int cmsg_level, - required int cmsg_type, - }) => $allocator() - ..ref.cmsg_len = cmsg_len - ..ref.cmsg_level = cmsg_level - ..ref.cmsg_type = cmsg_type; -} - -typedef coalition_t = mach_port_t; - -const int codecAbortErr = -8967; - -const int codecBadDataErr = -8969; - -const int codecCantQueueErr = -8975; - -const int codecCantWhenErr = -8974; - -const int codecConditionErr = -8972; - -const int codecDataVersErr = -8970; - -const int codecDisabledErr = -8978; - -const int codecDroppedFrameErr = -8989; - -const int codecErr = -8960; - -const int codecExtensionNotFoundErr = -8971; - -const int codecImageBufErr = -8965; - -const int codecNeedAccessKeyErr = -8987; - -const int codecNeedToFlushChainErr = -8979; - -const int codecNoMemoryPleaseWaitErr = -8977; - -const int codecNothingToBlitErr = -8976; - -const int codecOffscreenFailedErr = -8988; - -const int codecOffscreenFailedPleaseRetryErr = -8992; - -const int codecOpenErr = -8973; - -const int codecParameterDialogConfirm = -8986; - -const int codecScreenBufErr = -8964; - -const int codecSizeErr = -8963; - -const int codecSpoolErr = -8966; - -const int codecUnimpErr = -8962; - -const int codecWouldOffscreenErr = -8968; - -const int collectionIndexRangeErr = -5752; - -const int collectionItemLockedErr = -5750; - -const int collectionItemNotFoundErr = -5751; - -const int collectionVersionErr = -5753; - -const int colorSyncNotInstalled = -4007; - -const int colorsRequestedErr = -11004; - -@Deprecated('Deprecated') -const int componentAutoVersionIncludeFlags = 4; - -const int componentDllEntryNotFoundErr = -2092; - -const int componentDllLoadErr = -2091; - -@Deprecated('Deprecated') -const int componentDoAutoVersion = 1; - -const int componentDontRegister = -3003; - -@Deprecated('Deprecated') -const int componentHasMultiplePlatforms = 8; - -@Deprecated('Deprecated') -const int componentLoadResident = 16; - -const int componentNotCaptured = -3002; - -const int componentNotThreadSafeErr = -2098; - -@Deprecated('Deprecated') -const int componentWantsUnregister = 2; - -const int condense = 32; - -const int connectionInvalid = -609; - -const int constraintReachedErr = -30541; - -const int containerAlreadyOpenWrn = -462; - -const int containerNotFoundWrn = -461; - -const int controlErr = -17; - -const int controlHandleInvalidErr = -30599; - -const int controlInvalidDataVersionErr = -30597; - -const int controlPanelFolderIconResource = -3976; - -const int controlPropertyInvalid = -5603; - -const int controlPropertyNotFoundErr = -5604; - -const int controllerBoundsNotExact = -9996; - -const int controllerHasFixedHeight = -9998; - -const int copyDev = 11; - -const int corErr = -3; - -const int coreFoundationUnknownErr = -4960; - -const int couldNotParseSourceFileErr = -3026; - -const int couldNotResolveDataRef = -2000; - -const int couldNotUseAnExistingSample = -2052; - -const int couldntGetRequiredComponent = -9405; - -typedef cpu_subtype_t = integer_t; -typedef cpu_threadtype_t = integer_t; -typedef cpu_type_t = integer_t; -@Deprecated('Deprecated') -const int crash = 5; - -@Deprecated('Deprecated') -final class cssm_access_credentials extends ffi.Struct { - @ffi.Array.multi([68]) - external ffi.Array EntryTag; - - external CSSM_BASE_CERTS BaseCerts; - - external CSSM_SAMPLEGROUP Samples; - - external CSSM_CHALLENGE_CALLBACK Callback; - - external ffi.Pointer CallerCtx; -} - -@Deprecated('Deprecated') -final class cssm_acl_edit extends ffi.Struct { - @CSSM_ACL_EDIT_MODE() - external int EditMode; - - @CSSM_ACL_HANDLE() - external int OldEntryHandle; - - external ffi.Pointer NewEntry; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int EditMode, - required int OldEntryHandle, - required ffi.Pointer NewEntry, - }) => $allocator() - ..ref.EditMode = EditMode - ..ref.OldEntryHandle = OldEntryHandle - ..ref.NewEntry = NewEntry; -} - -@Deprecated('Deprecated') -final class cssm_acl_entry_info extends ffi.Struct { - external CSSM_ACL_ENTRY_PROTOTYPE EntryPublicInfo; - - @CSSM_ACL_HANDLE() - external int EntryHandle; -} - -@Deprecated('Deprecated') -final class cssm_acl_entry_input extends ffi.Struct { - external CSSM_ACL_ENTRY_PROTOTYPE Prototype; - - external CSSM_ACL_SUBJECT_CALLBACK Callback; - - external ffi.Pointer CallerContext; -} - -@Deprecated('Deprecated') -final class cssm_acl_entry_prototype extends ffi.Struct { - external CSSM_LIST TypedSubject; - - @CSSM_BOOL() - external int Delegate; - - external CSSM_AUTHORIZATIONGROUP Authorization; - - external CSSM_ACL_VALIDITY_PERIOD TimeRange; - - @ffi.Array.multi([68]) - external ffi.Array EntryTag; -} - -final class cssm_acl_keychain_prompt_selector extends ffi.Struct { - @uint16() - external int version; - - @uint16() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int flags, - }) => $allocator() - ..ref.version = version - ..ref.flags = flags; -} - -@Deprecated('Deprecated') -final class cssm_acl_owner_prototype extends ffi.Struct { - external CSSM_LIST TypedSubject; - - @CSSM_BOOL() - external int Delegate; -} - -final class cssm_acl_process_subject_selector extends ffi.Struct { - @uint16() - external int version; - - @uint16() - external int mask; - - @uint32() - external int uid; - - @uint32() - external int gid; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int mask, - required int uid, - required int gid, - }) => $allocator() - ..ref.version = version - ..ref.mask = mask - ..ref.uid = uid - ..ref.gid = gid; -} - -@Deprecated('Deprecated') -final class cssm_acl_validity_period extends ffi.Struct { - external SecAsn1Item StartDate; - - external SecAsn1Item EndDate; -} - -final class cssm_applecspdl_db_change_password_parameters extends ffi.Struct { - external ffi.Pointer accessCredentials; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer accessCredentials, - }) => - $allocator() - ..ref.accessCredentials = accessCredentials; -} - -final class cssm_applecspdl_db_is_locked_parameters extends ffi.Struct { - @uint8() - external int isLocked; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int isLocked, - }) => - $allocator() - ..ref.isLocked = isLocked; -} - -final class cssm_applecspdl_db_settings_parameters extends ffi.Struct { - @uint32() - external int idleTimeout; - - @uint8() - external int lockOnSleep; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int idleTimeout, - required int lockOnSleep, - }) => $allocator() - ..ref.idleTimeout = idleTimeout - ..ref.lockOnSleep = lockOnSleep; -} - -final class cssm_appledl_open_parameters extends ffi.Struct { - @uint32() - external int length; - - @uint32() - external int version; - - @CSSM_BOOL() - external int autoCommit; - - @uint32() - external int mask; - - @mode_t() - external int mode; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int length, - required int version, - required int autoCommit, - required int mask, - required int mode, - }) => $allocator() - ..ref.length = length - ..ref.version = version - ..ref.autoCommit = autoCommit - ..ref.mask = mask - ..ref.mode = mode; -} - -enum cssm_appledl_open_parameters_mask { - kCSSM_APPLEDL_MASK_MODE(1); - - final int value; - const cssm_appledl_open_parameters_mask(this.value); - - static cssm_appledl_open_parameters_mask fromValue(int value) => - switch (value) { - 1 => kCSSM_APPLEDL_MASK_MODE, - _ => throw ArgumentError( - 'Unknown value for cssm_appledl_open_parameters_mask: $value', - ), - }; -} - -final class cssm_authorizationgroup extends ffi.Struct { - @uint32() - external int NumberOfAuthTags; - - external ffi.Pointer AuthTags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfAuthTags, - required ffi.Pointer AuthTags, - }) => $allocator() - ..ref.NumberOfAuthTags = NumberOfAuthTags - ..ref.AuthTags = AuthTags; -} - -@Deprecated('Deprecated') -final class cssm_base_certs extends ffi.Struct { - @CSSM_TP_HANDLE() - external int TPHandle; - - @CSSM_CL_HANDLE() - external int CLHandle; - - external CSSM_CERTGROUP Certs; -} - -@Deprecated('Deprecated') -final class cssm_cert_bundle extends ffi.Struct { - external CSSM_CERT_BUNDLE_HEADER BundleHeader; - - external SecAsn1Item Bundle; -} - -@Deprecated('Deprecated') -final class cssm_cert_bundle_header extends ffi.Struct { - @CSSM_CERT_BUNDLE_TYPE() - external int BundleType; - - @CSSM_CERT_BUNDLE_ENCODING() - external int BundleEncoding; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int BundleType, - required int BundleEncoding, - }) => $allocator() - ..ref.BundleType = BundleType - ..ref.BundleEncoding = BundleEncoding; -} - -@Deprecated('Deprecated') -final class cssm_cert_pair extends ffi.Struct { - external CSSM_ENCODED_CERT EncodedCert; - - external CSSM_PARSED_CERT ParsedCert; -} - -@Deprecated('Deprecated') -final class cssm_certgroup extends ffi.Struct { - @CSSM_CERT_TYPE() - external int CertType; - - @CSSM_CERT_ENCODING() - external int CertEncoding; - - @uint32() - external int NumCerts; - - external UnnamedUnion$1 GroupList; - - @CSSM_CERTGROUP_TYPE() - external int CertGroupType; - - external ffi.Pointer Reserved; -} - -@Deprecated('Deprecated') -final class cssm_context extends ffi.Struct { - @CSSM_CONTEXT_TYPE() - external int ContextType; - - @CSSM_ALGORITHMS() - external int AlgorithmType; - - @uint32() - external int NumberOfAttributes; - - external CSSM_CONTEXT_ATTRIBUTE_PTR ContextAttributes; - - @CSSM_CSP_HANDLE() - external int CSPHandle; - - @CSSM_BOOL() - external int Privileged; - - @uint32() - external int EncryptionProhibited; - - @uint32() - external int WorkFactor; - - @uint32() - external int Reserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ContextType, - required int AlgorithmType, - required int NumberOfAttributes, - required CSSM_CONTEXT_ATTRIBUTE_PTR ContextAttributes, - required int CSPHandle, - required int Privileged, - required int EncryptionProhibited, - required int WorkFactor, - required int Reserved, - }) => $allocator() - ..ref.ContextType = ContextType - ..ref.AlgorithmType = AlgorithmType - ..ref.NumberOfAttributes = NumberOfAttributes - ..ref.ContextAttributes = ContextAttributes - ..ref.CSPHandle = CSPHandle - ..ref.Privileged = Privileged - ..ref.EncryptionProhibited = EncryptionProhibited - ..ref.WorkFactor = WorkFactor - ..ref.Reserved = Reserved; -} - -@Deprecated('Deprecated') -final class cssm_context_attribute extends ffi.Struct { - @CSSM_ATTRIBUTE_TYPE() - external int AttributeType; - - @uint32() - external int AttributeLength; - - external cssm_context_attribute_value Attribute; -} - -@Deprecated('Deprecated') -final class cssm_context_attribute_value extends ffi.Union { - external ffi.Pointer String; - - @uint32() - external int Uint32; - - external CSSM_ACCESS_CREDENTIALS_PTR AccessCredentials; - - external CSSM_KEY_PTR Key; - - external CSSM_DATA_PTR Data; - - @CSSM_PADDING() - external int Padding; - - external CSSM_DATE_PTR Date; - - external CSSM_RANGE_PTR Range; - - external CSSM_CRYPTO_DATA_PTR CryptoData; - - external CSSM_VERSION_PTR Version; - - external CSSM_DL_DB_HANDLE_PTR DLDBHandle; - - external ffi.Pointer KRProfile; -} - -@Deprecated('Deprecated') -final class cssm_crl_pair extends ffi.Struct { - external CSSM_ENCODED_CRL EncodedCrl; - - external CSSM_PARSED_CRL ParsedCrl; -} - -@Deprecated('Deprecated') -final class cssm_crlgroup extends ffi.Struct { - @CSSM_CRL_TYPE() - external int CrlType; - - @CSSM_CRL_ENCODING() - external int CrlEncoding; - - @uint32() - external int NumberOfCrls; - - external UnnamedUnion$2 GroupCrlList; - - @CSSM_CRLGROUP_TYPE() - external int CrlGroupType; -} - -@Deprecated('Deprecated') -final class cssm_crypto_data extends ffi.Struct { - external SecAsn1Item Param; - - external CSSM_CALLBACK Callback; - - external ffi.Pointer CallerCtx; -} - -final class cssm_csp_operational_statistics extends ffi.Struct { - @CSSM_BOOL() - external int UserAuthenticated; - - @CSSM_CSP_FLAGS() - external int DeviceFlags; - - @uint32() - external int TokenMaxSessionCount; - - @uint32() - external int TokenOpenedSessionCount; - - @uint32() - external int TokenMaxRWSessionCount; - - @uint32() - external int TokenOpenedRWSessionCount; - - @uint32() - external int TokenTotalPublicMem; - - @uint32() - external int TokenFreePublicMem; - - @uint32() - external int TokenTotalPrivateMem; - - @uint32() - external int TokenFreePrivateMem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int UserAuthenticated, - required int DeviceFlags, - required int TokenMaxSessionCount, - required int TokenOpenedSessionCount, - required int TokenMaxRWSessionCount, - required int TokenOpenedRWSessionCount, - required int TokenTotalPublicMem, - required int TokenFreePublicMem, - required int TokenTotalPrivateMem, - required int TokenFreePrivateMem, - }) => $allocator() - ..ref.UserAuthenticated = UserAuthenticated - ..ref.DeviceFlags = DeviceFlags - ..ref.TokenMaxSessionCount = TokenMaxSessionCount - ..ref.TokenOpenedSessionCount = TokenOpenedSessionCount - ..ref.TokenMaxRWSessionCount = TokenMaxRWSessionCount - ..ref.TokenOpenedRWSessionCount = TokenOpenedRWSessionCount - ..ref.TokenTotalPublicMem = TokenTotalPublicMem - ..ref.TokenFreePublicMem = TokenFreePublicMem - ..ref.TokenTotalPrivateMem = TokenTotalPrivateMem - ..ref.TokenFreePrivateMem = TokenFreePrivateMem; -} - -final class cssm_data extends ffi.Struct { - @ffi.Size() - external int Length; - - external ffi.Pointer Data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Length, - required ffi.Pointer Data, - }) => $allocator() - ..ref.Length = Length - ..ref.Data = Data; -} - -final class cssm_date extends ffi.Struct { - @ffi.Array.multi([4]) - external ffi.Array Year; - - @ffi.Array.multi([2]) - external ffi.Array Month; - - @ffi.Array.multi([2]) - external ffi.Array Day; -} - -@Deprecated('Deprecated') -final class cssm_db_attribute_data extends ffi.Struct { - external CSSM_DB_ATTRIBUTE_INFO Info; - - @uint32() - external int NumberOfValues; - - external CSSM_DATA_PTR Value; -} - -@Deprecated('Deprecated') -final class cssm_db_attribute_info extends ffi.Struct { - @CSSM_DB_ATTRIBUTE_NAME_FORMAT() - external int AttributeNameFormat; - - external cssm_db_attribute_label Label; - - @CSSM_DB_ATTRIBUTE_FORMAT() - external int AttributeFormat; -} - -@Deprecated('Deprecated') -final class cssm_db_attribute_label extends ffi.Union { - external ffi.Pointer AttributeName; - - external SecAsn1Oid AttributeOID; - - @uint32() - external int AttributeID; -} - -@Deprecated('Deprecated') -final class cssm_db_index_info extends ffi.Struct { - @CSSM_DB_INDEX_TYPE() - external int IndexType; - - @CSSM_DB_INDEXED_DATA_LOCATION() - external int IndexedDataLocation; - - external CSSM_DB_ATTRIBUTE_INFO Info; -} - -@Deprecated('Deprecated') -final class cssm_db_parsing_module_info extends ffi.Struct { - @CSSM_DB_RECORDTYPE() - external int RecordType; - - external CSSM_SUBSERVICE_UID ModuleSubserviceUid; -} - -@Deprecated('Deprecated') -final class cssm_db_record_attribute_data extends ffi.Struct { - @CSSM_DB_RECORDTYPE() - external int DataRecordType; - - @uint32() - external int SemanticInformation; - - @uint32() - external int NumberOfAttributes; - - external CSSM_DB_ATTRIBUTE_DATA_PTR AttributeData; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int DataRecordType, - required int SemanticInformation, - required int NumberOfAttributes, - required CSSM_DB_ATTRIBUTE_DATA_PTR AttributeData, - }) => $allocator() - ..ref.DataRecordType = DataRecordType - ..ref.SemanticInformation = SemanticInformation - ..ref.NumberOfAttributes = NumberOfAttributes - ..ref.AttributeData = AttributeData; -} - -@Deprecated('Deprecated') -final class cssm_db_record_attribute_info extends ffi.Struct { - @CSSM_DB_RECORDTYPE() - external int DataRecordType; - - @uint32() - external int NumberOfAttributes; - - external CSSM_DB_ATTRIBUTE_INFO_PTR AttributeInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int DataRecordType, - required int NumberOfAttributes, - required CSSM_DB_ATTRIBUTE_INFO_PTR AttributeInfo, - }) => $allocator() - ..ref.DataRecordType = DataRecordType - ..ref.NumberOfAttributes = NumberOfAttributes - ..ref.AttributeInfo = AttributeInfo; -} - -@Deprecated('Deprecated') -final class cssm_db_record_index_info extends ffi.Struct { - @CSSM_DB_RECORDTYPE() - external int DataRecordType; - - @uint32() - external int NumberOfIndexes; - - external CSSM_DB_INDEX_INFO_PTR IndexInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int DataRecordType, - required int NumberOfIndexes, - required CSSM_DB_INDEX_INFO_PTR IndexInfo, - }) => $allocator() - ..ref.DataRecordType = DataRecordType - ..ref.NumberOfIndexes = NumberOfIndexes - ..ref.IndexInfo = IndexInfo; -} - -@Deprecated('Deprecated') -final class cssm_db_schema_attribute_info extends ffi.Struct { - @uint32() - external int AttributeId; - - external ffi.Pointer AttributeName; - - external SecAsn1Oid AttributeNameID; - - @CSSM_DB_ATTRIBUTE_FORMAT() - external int DataType; -} - -final class cssm_db_schema_index_info extends ffi.Struct { - @uint32() - external int AttributeId; - - @uint32() - external int IndexId; - - @CSSM_DB_INDEX_TYPE() - external int IndexType; - - @CSSM_DB_INDEXED_DATA_LOCATION() - external int IndexedDataLocation; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int AttributeId, - required int IndexId, - required int IndexType, - required int IndexedDataLocation, - }) => $allocator() - ..ref.AttributeId = AttributeId - ..ref.IndexId = IndexId - ..ref.IndexType = IndexType - ..ref.IndexedDataLocation = IndexedDataLocation; -} - -@Deprecated('Deprecated') -final class cssm_db_unique_record extends ffi.Struct { - external CSSM_DB_INDEX_INFO RecordLocator; - - external SecAsn1Item RecordIdentifier; -} - -@Deprecated('Deprecated') -final class cssm_dbinfo extends ffi.Struct { - @uint32() - external int NumberOfRecordTypes; - - external CSSM_DB_PARSING_MODULE_INFO_PTR DefaultParsingModules; - - external CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR RecordAttributeNames; - - external CSSM_DB_RECORD_INDEX_INFO_PTR RecordIndexes; - - @CSSM_BOOL() - external int IsLocal; - - external ffi.Pointer AccessPath; - - external ffi.Pointer Reserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfRecordTypes, - required CSSM_DB_PARSING_MODULE_INFO_PTR DefaultParsingModules, - required CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR RecordAttributeNames, - required CSSM_DB_RECORD_INDEX_INFO_PTR RecordIndexes, - required int IsLocal, - required ffi.Pointer AccessPath, - required ffi.Pointer Reserved, - }) => $allocator() - ..ref.NumberOfRecordTypes = NumberOfRecordTypes - ..ref.DefaultParsingModules = DefaultParsingModules - ..ref.RecordAttributeNames = RecordAttributeNames - ..ref.RecordIndexes = RecordIndexes - ..ref.IsLocal = IsLocal - ..ref.AccessPath = AccessPath - ..ref.Reserved = Reserved; -} - -final class cssm_dl_db_handle extends ffi.Struct { - @CSSM_DL_HANDLE() - external int DLHandle; - - @CSSM_DB_HANDLE() - external int DBHandle; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int DLHandle, - required int DBHandle, - }) => $allocator() - ..ref.DLHandle = DLHandle - ..ref.DBHandle = DBHandle; -} - -@Deprecated('Deprecated') -final class cssm_dl_db_list extends ffi.Struct { - @uint32() - external int NumHandles; - - external CSSM_DL_DB_HANDLE_PTR DLDBHandle; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumHandles, - required CSSM_DL_DB_HANDLE_PTR DLDBHandle, - }) => $allocator() - ..ref.NumHandles = NumHandles - ..ref.DLDBHandle = DLDBHandle; -} - -final class cssm_dl_pkcs11_attributes extends ffi.Struct { - @uint32() - external int DeviceAccessFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int DeviceAccessFlags, - }) => - $allocator() - ..ref.DeviceAccessFlags = DeviceAccessFlags; -} - -@Deprecated('Deprecated') -final class cssm_encoded_cert extends ffi.Struct { - @CSSM_CERT_TYPE() - external int CertType; - - @CSSM_CERT_ENCODING() - external int CertEncoding; - - external SecAsn1Item CertBlob; -} - -@Deprecated('Deprecated') -final class cssm_encoded_crl extends ffi.Struct { - @CSSM_CRL_TYPE() - external int CrlType; - - @CSSM_CRL_ENCODING() - external int CrlEncoding; - - external SecAsn1Item CrlBlob; -} - -@Deprecated('Deprecated') -final class cssm_evidence extends ffi.Struct { - @CSSM_EVIDENCE_FORM() - external int EvidenceForm; - - external ffi.Pointer Evidence; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int EvidenceForm, - required ffi.Pointer Evidence, - }) => $allocator() - ..ref.EvidenceForm = EvidenceForm - ..ref.Evidence = Evidence; -} - -@Deprecated('Deprecated') -final class cssm_field extends ffi.Struct { - external SecAsn1Oid FieldOid; - - external SecAsn1Item FieldValue; -} - -@Deprecated('Deprecated') -final class cssm_fieldgroup extends ffi.Struct { - @ffi.Int() - external int NumberOfFields; - - external CSSM_FIELD_PTR Fields; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfFields, - required CSSM_FIELD_PTR Fields, - }) => $allocator() - ..ref.NumberOfFields = NumberOfFields - ..ref.Fields = Fields; -} - -final class cssm_func_name_addr extends ffi.Struct { - @ffi.Array.multi([68]) - external ffi.Array Name; - - external CSSM_PROC_ADDR Address; -} - -final class cssm_guid extends ffi.Struct { - @uint32() - external int Data1; - - @uint16() - external int Data2; - - @uint16() - external int Data3; - - @ffi.Array.multi([8]) - external ffi.Array Data4; -} - -@Deprecated('Deprecated') -final class cssm_kea_derive_params extends ffi.Struct { - external SecAsn1Item Rb; - - external SecAsn1Item Yb; -} - -@Deprecated('Deprecated') -final class cssm_key extends ffi.Struct { - external CSSM_KEYHEADER KeyHeader; - - external SecAsn1Item KeyData; -} - -final class cssm_key_size extends ffi.Struct { - @uint32() - external int LogicalKeySizeInBits; - - @uint32() - external int EffectiveKeySizeInBits; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int LogicalKeySizeInBits, - required int EffectiveKeySizeInBits, - }) => $allocator() - ..ref.LogicalKeySizeInBits = LogicalKeySizeInBits - ..ref.EffectiveKeySizeInBits = EffectiveKeySizeInBits; -} - -@Deprecated('Deprecated') -final class cssm_keyheader extends ffi.Struct { - @CSSM_HEADERVERSION() - external int HeaderVersion; - - external CSSM_GUID CspId; - - @CSSM_KEYBLOB_TYPE() - external int BlobType; - - @CSSM_KEYBLOB_FORMAT() - external int Format; - - @CSSM_ALGORITHMS() - external int AlgorithmId; - - @CSSM_KEYCLASS() - external int KeyClass; - - @uint32() - external int LogicalKeySizeInBits; - - @CSSM_KEYATTR_FLAGS() - external int KeyAttr; - - @CSSM_KEYUSE() - external int KeyUsage; - - external CSSM_DATE StartDate; - - external CSSM_DATE EndDate; - - @CSSM_ALGORITHMS() - external int WrapAlgorithmId; - - @CSSM_ENCRYPT_MODE() - external int WrapMode; - - @uint32() - external int Reserved; -} - -final class cssm_kr_name extends ffi.Struct { - @uint8() - external int Type; - - @uint8() - external int Length; - - external ffi.Pointer Name; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Type, - required int Length, - required ffi.Pointer Name, - }) => $allocator() - ..ref.Type = Type - ..ref.Length = Length - ..ref.Name = Name; -} - -@Deprecated('Deprecated') -final class cssm_kr_policy_info extends ffi.Struct { - @CSSM_BOOL() - external int krbNotAllowed; - - @uint32() - external int numberOfEntries; - - external ffi.Pointer policyEntry; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int krbNotAllowed, - required int numberOfEntries, - required ffi.Pointer policyEntry, - }) => $allocator() - ..ref.krbNotAllowed = krbNotAllowed - ..ref.numberOfEntries = numberOfEntries - ..ref.policyEntry = policyEntry; -} - -@Deprecated('Deprecated') -final class cssm_kr_policy_list_item extends ffi.Struct { - external ffi.Pointer next; - - @CSSM_ALGORITHMS() - external int AlgorithmId; - - @CSSM_ENCRYPT_MODE() - external int Mode; - - @uint32() - external int MaxKeyLength; - - @uint32() - external int MaxRounds; - - @uint8() - external int WorkFactor; - - @CSSM_KR_POLICY_FLAGS() - external int PolicyFlags; - - @CSSM_CONTEXT_TYPE() - external int AlgClass; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer next, - required int AlgorithmId, - required int Mode, - required int MaxKeyLength, - required int MaxRounds, - required int WorkFactor, - required int PolicyFlags, - required int AlgClass, - }) => $allocator() - ..ref.next = next - ..ref.AlgorithmId = AlgorithmId - ..ref.Mode = Mode - ..ref.MaxKeyLength = MaxKeyLength - ..ref.MaxRounds = MaxRounds - ..ref.WorkFactor = WorkFactor - ..ref.PolicyFlags = PolicyFlags - ..ref.AlgClass = AlgClass; -} - -@Deprecated('Deprecated') -final class cssm_kr_profile extends ffi.Struct { - external CSSM_KR_NAME UserName; - - external CSSM_CERTGROUP_PTR UserCertificate; - - external CSSM_CERTGROUP_PTR KRSCertChain; - - @uint8() - external int LE_KRANum; - - external CSSM_CERTGROUP_PTR LE_KRACertChainList; - - @uint8() - external int ENT_KRANum; - - external CSSM_CERTGROUP_PTR ENT_KRACertChainList; - - @uint8() - external int INDIV_KRANum; - - external CSSM_CERTGROUP_PTR INDIV_KRACertChainList; - - external CSSM_DATA_PTR INDIV_AuthenticationInfo; - - @uint32() - external int KRSPFlags; - - external CSSM_DATA_PTR KRSPExtensions; -} - -@Deprecated('Deprecated') -final class cssm_kr_wrappedproductinfo extends ffi.Struct { - external CSSM_VERSION StandardVersion; - - @ffi.Array.multi([68]) - external ffi.Array StandardDescription; - - external CSSM_VERSION ProductVersion; - - @ffi.Array.multi([68]) - external ffi.Array ProductDescription; - - @ffi.Array.multi([68]) - external ffi.Array ProductVendor; - - @uint32() - external int ProductFlags; -} - -@Deprecated('Deprecated') -final class cssm_krsubservice extends ffi.Struct { - @uint32() - external int SubServiceId; - - external ffi.Pointer Description; - - external CSSM_KR_WRAPPEDPRODUCT_INFO WrappedProduct; -} - -final class cssm_list extends ffi.Struct { - @CSSM_LIST_TYPE() - external int ListType; - - external CSSM_LIST_ELEMENT_PTR Head; - - external CSSM_LIST_ELEMENT_PTR Tail; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ListType, - required CSSM_LIST_ELEMENT_PTR Head, - required CSSM_LIST_ELEMENT_PTR Tail, - }) => $allocator() - ..ref.ListType = ListType - ..ref.Head = Head - ..ref.Tail = Tail; -} - -@Deprecated('Deprecated') -final class cssm_list_element extends ffi.Struct { - external ffi.Pointer NextElement; - - @CSSM_WORDID_TYPE() - external int WordID; - - @CSSM_LIST_ELEMENT_TYPE() - external int ElementType; - - external UnnamedUnion Element; -} - -@Deprecated('Deprecated') -final class cssm_manager_event_notification extends ffi.Struct { - @CSSM_SERVICE_MASK() - external int DestinationModuleManagerType; - - @CSSM_SERVICE_MASK() - external int SourceModuleManagerType; - - @CSSM_MANAGER_EVENT_TYPES() - external int Event; - - @uint32() - external int EventId; - - external SecAsn1Item EventData; -} - -@Deprecated('Deprecated') -final class cssm_manager_registration_info extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction - > - Initialize; - - external ffi.Pointer> Terminate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_STATE_FUNCS_PTR CssmStateCallTable) - > - > - RegisterDispatchTable; - - external ffi.Pointer> - DeregisterDispatchTable; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer EventDescription, - ) - > - > - EventNotifyManager; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_FUNC_NAME_ADDR_PTR FuncNameAddrPtr, - uint32 NumOfFuncNameAddr, - ) - > - > - RefreshFunctionTable; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction - > - Initialize, - required ffi.Pointer> Terminate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_STATE_FUNCS_PTR CssmStateCallTable) - > - > - RegisterDispatchTable, - required ffi.Pointer> - DeregisterDispatchTable, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer EventDescription, - ) - > - > - EventNotifyManager, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_FUNC_NAME_ADDR_PTR FuncNameAddrPtr, - uint32 NumOfFuncNameAddr, - ) - > - > - RefreshFunctionTable, - }) => $allocator() - ..ref.Initialize = Initialize - ..ref.Terminate = Terminate - ..ref.RegisterDispatchTable = RegisterDispatchTable - ..ref.DeregisterDispatchTable = DeregisterDispatchTable - ..ref.EventNotifyManager = EventNotifyManager - ..ref.RefreshFunctionTable = RefreshFunctionTable; -} - -final class cssm_memory_funcs extends ffi.Struct { - external CSSM_MALLOC malloc_func; - - external CSSM_FREE free_func; - - external CSSM_REALLOC realloc_func; - - external CSSM_CALLOC calloc_func; - - external ffi.Pointer AllocRef; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CSSM_MALLOC malloc_func, - required CSSM_FREE free_func, - required CSSM_REALLOC realloc_func, - required CSSM_CALLOC calloc_func, - required ffi.Pointer AllocRef, - }) => $allocator() - ..ref.malloc_func = malloc_func - ..ref.free_func = free_func - ..ref.realloc_func = realloc_func - ..ref.calloc_func = calloc_func - ..ref.AllocRef = AllocRef; -} - -@Deprecated('Deprecated') -final class cssm_module_funcs extends ffi.Struct { - @CSSM_SERVICE_TYPE() - external int ServiceType; - - @uint32() - external int NumberOfServiceFuncs; - - external ffi.Pointer ServiceFuncs; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ServiceType, - required int NumberOfServiceFuncs, - required ffi.Pointer ServiceFuncs, - }) => $allocator() - ..ref.ServiceType = ServiceType - ..ref.NumberOfServiceFuncs = NumberOfServiceFuncs - ..ref.ServiceFuncs = ServiceFuncs; -} - -final class cssm_name_list extends ffi.Struct { - @uint32() - external int NumStrings; - - external ffi.Pointer> String; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumStrings, - required ffi.Pointer> String, - }) => $allocator() - ..ref.NumStrings = NumStrings - ..ref.String = String; -} - -@Deprecated('Deprecated') -final class cssm_net_address extends ffi.Struct { - @CSSM_NET_ADDRESS_TYPE() - external int AddressType; - - external SecAsn1Item Address; -} - -final class cssm_parsed_cert extends ffi.Struct { - @CSSM_CERT_TYPE() - external int CertType; - - @CSSM_CERT_PARSE_FORMAT() - external int ParsedCertFormat; - - external ffi.Pointer ParsedCert; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CertType, - required int ParsedCertFormat, - required ffi.Pointer ParsedCert, - }) => $allocator() - ..ref.CertType = CertType - ..ref.ParsedCertFormat = ParsedCertFormat - ..ref.ParsedCert = ParsedCert; -} - -final class cssm_parsed_crl extends ffi.Struct { - @CSSM_CRL_TYPE() - external int CrlType; - - @CSSM_CRL_PARSE_FORMAT() - external int ParsedCrlFormat; - - external ffi.Pointer ParsedCrl; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CrlType, - required int ParsedCrlFormat, - required ffi.Pointer ParsedCrl, - }) => $allocator() - ..ref.CrlType = CrlType - ..ref.ParsedCrlFormat = ParsedCrlFormat - ..ref.ParsedCrl = ParsedCrl; -} - -@Deprecated('Deprecated') -final class cssm_pkcs1_oaep_params extends ffi.Struct { - @uint32() - external int HashAlgorithm; - - external SecAsn1Item HashParams; - - @CSSM_PKCS_OAEP_MGF() - external int MGF; - - external SecAsn1Item MGFParams; - - @CSSM_PKCS_OAEP_PSOURCE() - external int PSource; - - external SecAsn1Item PSourceParams; -} - -@Deprecated('Deprecated') -final class cssm_pkcs5_pbkdf1_params extends ffi.Struct { - external SecAsn1Item Passphrase; - - external SecAsn1Item InitVector; -} - -@Deprecated('Deprecated') -final class cssm_pkcs5_pbkdf2_params extends ffi.Struct { - external SecAsn1Item Passphrase; - - @CSSM_PKCS5_PBKDF2_PRF() - external int PseudoRandomFunction; -} - -@Deprecated('Deprecated') -final class cssm_query extends ffi.Struct { - @CSSM_DB_RECORDTYPE() - external int RecordType; - - @CSSM_DB_CONJUNCTIVE() - external int Conjunctive; - - @uint32() - external int NumSelectionPredicates; - - external CSSM_SELECTION_PREDICATE_PTR SelectionPredicate; - - external CSSM_QUERY_LIMITS QueryLimits; - - @CSSM_QUERY_FLAGS() - external int QueryFlags; -} - -@Deprecated('Deprecated') -final class cssm_query_limits extends ffi.Struct { - @uint32() - external int TimeLimit; - - @uint32() - external int SizeLimit; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int TimeLimit, - required int SizeLimit, - }) => $allocator() - ..ref.TimeLimit = TimeLimit - ..ref.SizeLimit = SizeLimit; -} - -final class cssm_query_size_data extends ffi.Struct { - @uint32() - external int SizeInputBlock; - - @uint32() - external int SizeOutputBlock; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int SizeInputBlock, - required int SizeOutputBlock, - }) => $allocator() - ..ref.SizeInputBlock = SizeInputBlock - ..ref.SizeOutputBlock = SizeOutputBlock; -} - -final class cssm_range extends ffi.Struct { - @uint32() - external int Min; - - @uint32() - external int Max; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Min, - required int Max, - }) => $allocator() - ..ref.Min = Min - ..ref.Max = Max; -} - -@Deprecated('Deprecated') -final class cssm_resource_control_context extends ffi.Struct { - external CSSM_ACCESS_CREDENTIALS_PTR AccessCred; - - external CSSM_ACL_ENTRY_INPUT InitialAclEntry; -} - -@Deprecated('Deprecated') -final class cssm_sample extends ffi.Struct { - external CSSM_LIST TypedSample; - - external ffi.Pointer Verifier; -} - -@Deprecated('Deprecated') -final class cssm_samplegroup extends ffi.Struct { - @uint32() - external int NumberOfSamples; - - external ffi.Pointer Samples; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfSamples, - required ffi.Pointer Samples, - }) => $allocator() - ..ref.NumberOfSamples = NumberOfSamples - ..ref.Samples = Samples; -} - -@Deprecated('Deprecated') -final class cssm_selection_predicate extends ffi.Struct { - @CSSM_DB_OPERATOR() - external int DbOperator; - - external CSSM_DB_ATTRIBUTE_DATA Attribute; -} - -@Deprecated('Deprecated') -final class cssm_spi_ac_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_AC_HANDLE ACHandle, - ffi.Pointer BaseAuthorizations, - ffi.Pointer Credentials, - uint32 NumberOfRequestors, - ffi.Pointer Requestors, - ffi.Pointer RequestedAuthorizationPeriod, - ffi.Pointer RequestedAuthorization, - CSSM_TUPLEGROUP_PTR AuthorizationResult, - ) - > - > - AuthCompute; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_AC_HANDLE ACHandle, - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DBList, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_AC_HANDLE ACHandle, - ffi.Pointer BaseAuthorizations, - ffi.Pointer Credentials, - uint32 NumberOfRequestors, - ffi.Pointer Requestors, - ffi.Pointer RequestedAuthorizationPeriod, - ffi.Pointer RequestedAuthorization, - CSSM_TUPLEGROUP_PTR AuthorizationResult, - ) - > - > - AuthCompute, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_AC_HANDLE ACHandle, - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DBList, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough, - }) => $allocator() - ..ref.AuthCompute = AuthCompute - ..ref.PassThrough = PassThrough; -} - -@Deprecated('Deprecated') -final class cssm_spi_cl_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, - ) - > - > - CertCreateTemplate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllTemplateFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertTemplate, - ffi.Pointer SignScope, - uint32 ScopeSize, - CSSM_DATA_PTR SignedCert, - ) - > - > - CertSign; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - uint32 ScopeSize, - ) - > - > - CertVerify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertToBeVerified, - ) - > - > - CertVerifyWithKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CertGetFirstFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CertGetNextFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) - > - > - CertAbortQuery; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer Key, - ) - > - > - CertGetKeyInfo; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer FieldArray, - ) - > - > - FreeFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertOrCrlOid, - CSSM_DATA_PTR Value, - ) - > - > - FreeFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - CSSM_HANDLE_PTR CertHandle, - ) - > - > - CertCache; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CertHandle, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CertGetFirstCachedFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CertGetNextCachedFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CertHandle) - > - > - CertAbortCache; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertGroupToBundle, - ffi.Pointer BundleInfo, - CSSM_DATA_PTR SignedBundle, - ) - > - > - CertGroupToSignedBundle; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertBundle, - ffi.Pointer SignerCert, - ffi.Pointer CertGroup, - ) - > - > - CertGroupFromVerifiedBundle; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, - ) - > - > - CertDescribeFormat; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlTemplate, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlCreateTemplate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlTemplate, - ffi.Pointer OldCrl, - CSSM_DATA_PTR ModifiedCrl, - ) - > - > - CrlSetFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Cert, - uint32 NumberOfFields, - ffi.Pointer CrlEntryFields, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlAddCert; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlRemoveCert; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer UnsignedCrl, - ffi.Pointer SignScope, - uint32 ScopeSize, - CSSM_DATA_PTR SignedCrl, - ) - > - > - CrlSign; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - uint32 ScopeSize, - ) - > - > - CrlVerify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeVerified, - ) - > - > - CrlVerifyWithKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer Crl, - ffi.Pointer CertFound, - ) - > - > - IsCertInCrl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CrlGetFirstFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CrlGetNextFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) - > - > - CrlAbortQuery; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - ffi.Pointer NumberOfCrlFields, - ffi.Pointer CrlFields, - ) - > - > - CrlGetAllFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - CSSM_HANDLE_PTR CrlHandle, - ) - > - > - CrlCache; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - CSSM_HANDLE CrlHandle, - ffi.Pointer CertFound, - CSSM_DATA_PTR CrlRecordIndex, - ) - > - > - IsCertInCachedCrl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CrlGetFirstCachedFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CrlGetNextCachedFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer NumberOfFields, - ffi.Pointer CrlFields, - ) - > - > - CrlGetAllCachedRecordFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CrlHandle) - > - > - CrlAbortCache; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, - ) - > - > - CrlDescribeFormat; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, - ) - > - > - CertCreateTemplate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllTemplateFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertTemplate, - ffi.Pointer SignScope, - uint32 ScopeSize, - CSSM_DATA_PTR SignedCert, - ) - > - > - CertSign, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - uint32 ScopeSize, - ) - > - > - CertVerify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertToBeVerified, - ) - > - > - CertVerifyWithKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CertGetFirstFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CertGetNextFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) - > - > - CertAbortQuery, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer Key, - ) - > - > - CertGetKeyInfo, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer FieldArray, - ) - > - > - FreeFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertOrCrlOid, - CSSM_DATA_PTR Value, - ) - > - > - FreeFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - CSSM_HANDLE_PTR CertHandle, - ) - > - > - CertCache, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CertHandle, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CertGetFirstCachedFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CertGetNextCachedFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CertHandle) - > - > - CertAbortCache, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertGroupToBundle, - ffi.Pointer BundleInfo, - CSSM_DATA_PTR SignedBundle, - ) - > - > - CertGroupToSignedBundle, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertBundle, - ffi.Pointer SignerCert, - ffi.Pointer CertGroup, - ) - > - > - CertGroupFromVerifiedBundle, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, - ) - > - > - CertDescribeFormat, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlTemplate, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlCreateTemplate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlTemplate, - ffi.Pointer OldCrl, - CSSM_DATA_PTR ModifiedCrl, - ) - > - > - CrlSetFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Cert, - uint32 NumberOfFields, - ffi.Pointer CrlEntryFields, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlAddCert, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlRemoveCert, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer UnsignedCrl, - ffi.Pointer SignScope, - uint32 ScopeSize, - CSSM_DATA_PTR SignedCrl, - ) - > - > - CrlSign, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - uint32 ScopeSize, - ) - > - > - CrlVerify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeVerified, - ) - > - > - CrlVerifyWithKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer Crl, - ffi.Pointer CertFound, - ) - > - > - IsCertInCrl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CrlGetFirstFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CrlGetNextFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) - > - > - CrlAbortQuery, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - ffi.Pointer NumberOfCrlFields, - ffi.Pointer CrlFields, - ) - > - > - CrlGetAllFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - CSSM_HANDLE_PTR CrlHandle, - ) - > - > - CrlCache, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - CSSM_HANDLE CrlHandle, - ffi.Pointer CertFound, - CSSM_DATA_PTR CrlRecordIndex, - ) - > - > - IsCertInCachedCrl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CrlGetFirstCachedFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CrlGetNextCachedFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer NumberOfFields, - ffi.Pointer CrlFields, - ) - > - > - CrlGetAllCachedRecordFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CrlHandle) - > - > - CrlAbortCache, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, - ) - > - > - CrlDescribeFormat, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough, - }) => $allocator() - ..ref.CertCreateTemplate = CertCreateTemplate - ..ref.CertGetAllTemplateFields = CertGetAllTemplateFields - ..ref.CertSign = CertSign - ..ref.CertVerify = CertVerify - ..ref.CertVerifyWithKey = CertVerifyWithKey - ..ref.CertGetFirstFieldValue = CertGetFirstFieldValue - ..ref.CertGetNextFieldValue = CertGetNextFieldValue - ..ref.CertAbortQuery = CertAbortQuery - ..ref.CertGetKeyInfo = CertGetKeyInfo - ..ref.CertGetAllFields = CertGetAllFields - ..ref.FreeFields = FreeFields - ..ref.FreeFieldValue = FreeFieldValue - ..ref.CertCache = CertCache - ..ref.CertGetFirstCachedFieldValue = CertGetFirstCachedFieldValue - ..ref.CertGetNextCachedFieldValue = CertGetNextCachedFieldValue - ..ref.CertAbortCache = CertAbortCache - ..ref.CertGroupToSignedBundle = CertGroupToSignedBundle - ..ref.CertGroupFromVerifiedBundle = CertGroupFromVerifiedBundle - ..ref.CertDescribeFormat = CertDescribeFormat - ..ref.CrlCreateTemplate = CrlCreateTemplate - ..ref.CrlSetFields = CrlSetFields - ..ref.CrlAddCert = CrlAddCert - ..ref.CrlRemoveCert = CrlRemoveCert - ..ref.CrlSign = CrlSign - ..ref.CrlVerify = CrlVerify - ..ref.CrlVerifyWithKey = CrlVerifyWithKey - ..ref.IsCertInCrl = IsCertInCrl - ..ref.CrlGetFirstFieldValue = CrlGetFirstFieldValue - ..ref.CrlGetNextFieldValue = CrlGetNextFieldValue - ..ref.CrlAbortQuery = CrlAbortQuery - ..ref.CrlGetAllFields = CrlGetAllFields - ..ref.CrlCache = CrlCache - ..ref.IsCertInCachedCrl = IsCertInCachedCrl - ..ref.CrlGetFirstCachedFieldValue = CrlGetFirstCachedFieldValue - ..ref.CrlGetNextCachedFieldValue = CrlGetNextCachedFieldValue - ..ref.CrlGetAllCachedRecordFields = CrlGetAllCachedRecordFields - ..ref.CrlAbortCache = CrlAbortCache - ..ref.CrlDescribeFormat = CrlDescribeFormat - ..ref.PassThrough = PassThrough; -} - -@Deprecated('Deprecated') -final class cssm_spi_csp_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CONTEXT_EVENT Event, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - EventNotify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_BOOL Encrypt, - uint32 QuerySizeCount, - CSSM_QUERY_SIZE_DATA_PTR DataBlock, - ) - > - > - QuerySize; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_ALGORITHMS DigestAlgorithm, - CSSM_DATA_PTR Signature, - ) - > - > - SignData; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - SignDataInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - SignDataUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Signature, - ) - > - > - SignDataFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_ALGORITHMS DigestAlgorithm, - ffi.Pointer Signature, - ) - > - > - VerifyData; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - VerifyDataInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - VerifyDataUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Signature, - ) - > - > - VerifyDataFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_DATA_PTR Digest, - ) - > - > - DigestData; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - DigestDataInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - DigestDataUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_CC_HANDLE ClonedCCHandle, - ) - > - > - DigestDataClone; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Digest, - ) - > - > - DigestDataFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_DATA_PTR Mac, - ) - > - > - GenerateMac; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - GenerateMacInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - GenerateMacUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Mac, - ) - > - > - GenerateMacFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ffi.Pointer Mac, - ) - > - > - VerifyMac; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - VerifyMacInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - VerifyMacUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Mac, - ) - > - > - VerifyMacFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer ClearBufs, - uint32 ClearBufCount, - CSSM_DATA_PTR CipherBufs, - uint32 CipherBufCount, - ffi.Pointer bytesEncrypted, - CSSM_DATA_PTR RemData, - CSSM_PRIVILEGE Privilege, - ) - > - > - EncryptData; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_PRIVILEGE Privilege, - ) - > - > - EncryptDataInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer ClearBufs, - uint32 ClearBufCount, - CSSM_DATA_PTR CipherBufs, - uint32 CipherBufCount, - ffi.Pointer bytesEncrypted, - ) - > - > - EncryptDataUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR RemData, - ) - > - > - EncryptDataFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer CipherBufs, - uint32 CipherBufCount, - CSSM_DATA_PTR ClearBufs, - uint32 ClearBufCount, - ffi.Pointer bytesDecrypted, - CSSM_DATA_PTR RemData, - CSSM_PRIVILEGE Privilege, - ) - > - > - DecryptData; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_PRIVILEGE Privilege, - ) - > - > - DecryptDataInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CipherBufs, - uint32 CipherBufCount, - CSSM_DATA_PTR ClearBufs, - uint32 ClearBufCount, - ffi.Pointer bytesDecrypted, - ) - > - > - DecryptDataUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR RemData, - ) - > - > - DecryptDataFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer Key, - CSSM_KEY_SIZE_PTR KeySize, - ) - > - > - QueryKeySizeInBits; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR Key, - CSSM_PRIVILEGE Privilege, - ) - > - > - GenerateKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 PublicKeyUsage, - uint32 PublicKeyAttr, - ffi.Pointer PublicKeyLabel, - CSSM_KEY_PTR PublicKey, - uint32 PrivateKeyUsage, - uint32 PrivateKeyAttr, - ffi.Pointer PrivateKeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR PrivateKey, - CSSM_PRIVILEGE Privilege, - ) - > - > - GenerateKeyPair; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_DATA_PTR RandomNumber, - ) - > - > - GenerateRandom; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 ParamBits, - CSSM_DATA_PTR Param, - ffi.Pointer NumberOfUpdatedAttibutes, - ffi.Pointer UpdatedAttributes, - ) - > - > - GenerateAlgorithmParams; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer DescriptiveData, - CSSM_WRAP_KEY_PTR WrappedKey, - CSSM_PRIVILEGE Privilege, - ) - > - > - WrapKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer PublicKey, - ffi.Pointer WrappedKey, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR UnwrappedKey, - CSSM_DATA_PTR DescriptiveData, - CSSM_PRIVILEGE Privilege, - ) - > - > - UnwrapKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_DATA_PTR Param, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR DerivedKey, - ) - > - > - DeriveKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - CSSM_KEY_PTR KeyPtr, - CSSM_BOOL Delete, - ) - > - > - FreeKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 PassThroughId, - ffi.Pointer InData, - ffi.Pointer> OutData, - ) - > - > - PassThrough; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer LoginName, - ffi.Pointer Reserved, - ) - > - > - Login; - - external ffi.Pointer< - ffi.NativeFunction - > - Logout; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ) - > - > - ChangeLoginAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer PublicKey, - CSSM_KEY_PTR PrivateKey, - ) - > - > - ObtainPrivateKeyFromPublicKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR UniqueID$1) - > - > - RetrieveUniqueId; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR Counter) - > - > - RetrieveCounter; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer DeviceCert, - ) - > - > - VerifyDevice; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_ALGORITHMS TimeAlgorithm, - ffi.Pointer TimeData, - ) - > - > - GetTimeValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Statistics, - ) - > - > - GetOperationalStatistics; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetLoginAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Key, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetKeyAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ffi.Pointer Key, - ) - > - > - ChangeKeyAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Key, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetKeyOwner; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer NewOwner, - ) - > - > - ChangeKeyOwner; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetLoginOwner; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, - ) - > - > - ChangeLoginOwner; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CONTEXT_EVENT Event, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - EventNotify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_BOOL Encrypt, - uint32 QuerySizeCount, - CSSM_QUERY_SIZE_DATA_PTR DataBlock, - ) - > - > - QuerySize, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_ALGORITHMS DigestAlgorithm, - CSSM_DATA_PTR Signature, - ) - > - > - SignData, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - SignDataInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - SignDataUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Signature, - ) - > - > - SignDataFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_ALGORITHMS DigestAlgorithm, - ffi.Pointer Signature, - ) - > - > - VerifyData, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - VerifyDataInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - VerifyDataUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Signature, - ) - > - > - VerifyDataFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_DATA_PTR Digest, - ) - > - > - DigestData, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - DigestDataInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - DigestDataUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_CC_HANDLE ClonedCCHandle, - ) - > - > - DigestDataClone, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Digest, - ) - > - > - DigestDataFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_DATA_PTR Mac, - ) - > - > - GenerateMac, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - GenerateMacInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - GenerateMacUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Mac, - ) - > - > - GenerateMacFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ffi.Pointer Mac, - ) - > - > - VerifyMac, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - VerifyMacInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - VerifyMacUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Mac, - ) - > - > - VerifyMacFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer ClearBufs, - uint32 ClearBufCount, - CSSM_DATA_PTR CipherBufs, - uint32 CipherBufCount, - ffi.Pointer bytesEncrypted, - CSSM_DATA_PTR RemData, - CSSM_PRIVILEGE Privilege, - ) - > - > - EncryptData, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_PRIVILEGE Privilege, - ) - > - > - EncryptDataInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer ClearBufs, - uint32 ClearBufCount, - CSSM_DATA_PTR CipherBufs, - uint32 CipherBufCount, - ffi.Pointer bytesEncrypted, - ) - > - > - EncryptDataUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR RemData, - ) - > - > - EncryptDataFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer CipherBufs, - uint32 CipherBufCount, - CSSM_DATA_PTR ClearBufs, - uint32 ClearBufCount, - ffi.Pointer bytesDecrypted, - CSSM_DATA_PTR RemData, - CSSM_PRIVILEGE Privilege, - ) - > - > - DecryptData, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_PRIVILEGE Privilege, - ) - > - > - DecryptDataInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CipherBufs, - uint32 CipherBufCount, - CSSM_DATA_PTR ClearBufs, - uint32 ClearBufCount, - ffi.Pointer bytesDecrypted, - ) - > - > - DecryptDataUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR RemData, - ) - > - > - DecryptDataFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer Key, - CSSM_KEY_SIZE_PTR KeySize, - ) - > - > - QueryKeySizeInBits, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR Key, - CSSM_PRIVILEGE Privilege, - ) - > - > - GenerateKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 PublicKeyUsage, - uint32 PublicKeyAttr, - ffi.Pointer PublicKeyLabel, - CSSM_KEY_PTR PublicKey, - uint32 PrivateKeyUsage, - uint32 PrivateKeyAttr, - ffi.Pointer PrivateKeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR PrivateKey, - CSSM_PRIVILEGE Privilege, - ) - > - > - GenerateKeyPair, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_DATA_PTR RandomNumber, - ) - > - > - GenerateRandom, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 ParamBits, - CSSM_DATA_PTR Param, - ffi.Pointer NumberOfUpdatedAttibutes, - ffi.Pointer UpdatedAttributes, - ) - > - > - GenerateAlgorithmParams, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer DescriptiveData, - CSSM_WRAP_KEY_PTR WrappedKey, - CSSM_PRIVILEGE Privilege, - ) - > - > - WrapKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer PublicKey, - ffi.Pointer WrappedKey, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR UnwrappedKey, - CSSM_DATA_PTR DescriptiveData, - CSSM_PRIVILEGE Privilege, - ) - > - > - UnwrapKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_DATA_PTR Param, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR DerivedKey, - ) - > - > - DeriveKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - CSSM_KEY_PTR KeyPtr, - CSSM_BOOL Delete, - ) - > - > - FreeKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 PassThroughId, - ffi.Pointer InData, - ffi.Pointer> OutData, - ) - > - > - PassThrough, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer LoginName, - ffi.Pointer Reserved, - ) - > - > - Login, - required ffi.Pointer< - ffi.NativeFunction - > - Logout, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ) - > - > - ChangeLoginAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer PublicKey, - CSSM_KEY_PTR PrivateKey, - ) - > - > - ObtainPrivateKeyFromPublicKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_DATA_PTR UniqueID$1, - ) - > - > - RetrieveUniqueId, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR Counter) - > - > - RetrieveCounter, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer DeviceCert, - ) - > - > - VerifyDevice, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_ALGORITHMS TimeAlgorithm, - ffi.Pointer TimeData, - ) - > - > - GetTimeValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Statistics, - ) - > - > - GetOperationalStatistics, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetLoginAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Key, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetKeyAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ffi.Pointer Key, - ) - > - > - ChangeKeyAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Key, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetKeyOwner, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer NewOwner, - ) - > - > - ChangeKeyOwner, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetLoginOwner, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, - ) - > - > - ChangeLoginOwner, - }) => $allocator() - ..ref.EventNotify = EventNotify - ..ref.QuerySize = QuerySize - ..ref.SignData = SignData - ..ref.SignDataInit = SignDataInit - ..ref.SignDataUpdate = SignDataUpdate - ..ref.SignDataFinal = SignDataFinal - ..ref.VerifyData = VerifyData - ..ref.VerifyDataInit = VerifyDataInit - ..ref.VerifyDataUpdate = VerifyDataUpdate - ..ref.VerifyDataFinal = VerifyDataFinal - ..ref.DigestData = DigestData - ..ref.DigestDataInit = DigestDataInit - ..ref.DigestDataUpdate = DigestDataUpdate - ..ref.DigestDataClone = DigestDataClone - ..ref.DigestDataFinal = DigestDataFinal - ..ref.GenerateMac = GenerateMac - ..ref.GenerateMacInit = GenerateMacInit - ..ref.GenerateMacUpdate = GenerateMacUpdate - ..ref.GenerateMacFinal = GenerateMacFinal - ..ref.VerifyMac = VerifyMac - ..ref.VerifyMacInit = VerifyMacInit - ..ref.VerifyMacUpdate = VerifyMacUpdate - ..ref.VerifyMacFinal = VerifyMacFinal - ..ref.EncryptData = EncryptData - ..ref.EncryptDataInit = EncryptDataInit - ..ref.EncryptDataUpdate = EncryptDataUpdate - ..ref.EncryptDataFinal = EncryptDataFinal - ..ref.DecryptData = DecryptData - ..ref.DecryptDataInit = DecryptDataInit - ..ref.DecryptDataUpdate = DecryptDataUpdate - ..ref.DecryptDataFinal = DecryptDataFinal - ..ref.QueryKeySizeInBits = QueryKeySizeInBits - ..ref.GenerateKey = GenerateKey - ..ref.GenerateKeyPair = GenerateKeyPair - ..ref.GenerateRandom = GenerateRandom - ..ref.GenerateAlgorithmParams = GenerateAlgorithmParams - ..ref.WrapKey = WrapKey - ..ref.UnwrapKey = UnwrapKey - ..ref.DeriveKey = DeriveKey - ..ref.FreeKey = FreeKey - ..ref.PassThrough = PassThrough - ..ref.Login = Login - ..ref.Logout = Logout - ..ref.ChangeLoginAcl = ChangeLoginAcl - ..ref.ObtainPrivateKeyFromPublicKey = ObtainPrivateKeyFromPublicKey - ..ref.RetrieveUniqueId = RetrieveUniqueId - ..ref.RetrieveCounter = RetrieveCounter - ..ref.VerifyDevice = VerifyDevice - ..ref.GetTimeValue = GetTimeValue - ..ref.GetOperationalStatistics = GetOperationalStatistics - ..ref.GetLoginAcl = GetLoginAcl - ..ref.GetKeyAcl = GetKeyAcl - ..ref.ChangeKeyAcl = ChangeKeyAcl - ..ref.GetKeyOwner = GetKeyOwner - ..ref.ChangeKeyOwner = ChangeKeyOwner - ..ref.GetLoginOwner = GetLoginOwner - ..ref.ChangeLoginOwner = ChangeLoginOwner; -} - -@Deprecated('Deprecated') -final class cssm_spi_dl_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, - ) - > - > - DbOpen; - - external ffi.Pointer< - ffi.NativeFunction - > - DbClose; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer DBInfo, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer CredAndAclEntry, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, - ) - > - > - DbCreate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer AccessCred, - ) - > - > - DbDelete; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RelationID, - ffi.Pointer RelationName, - uint32 NumberOfAttributes, - ffi.Pointer pAttributeInfo, - uint32 NumberOfIndexes, - ffi.Pointer pIndexInfo, - ) - > - > - CreateRelation; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RelationID, - ) - > - > - DestroyRelation; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ) - > - > - Authenticate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetDbAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ) - > - > - ChangeDbAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetDbOwner; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, - ) - > - > - ChangeDbOwner; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer NameList, - ) - > - > - GetDbNames; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> DbName, - ) - > - > - GetDbNameFromHandle; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_DL_HANDLE DLHandle, CSSM_NAME_LIST_PTR NameList) - > - > - FreeNameList; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RecordType, - ffi.Pointer Attributes, - ffi.Pointer Data, - ffi.Pointer UniqueId, - ) - > - > - DataInsert; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecordIdentifier, - ) - > - > - DataDelete; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RecordType, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, - ffi.Pointer AttributesToBeModified, - ffi.Pointer DataToBeModified, - CSSM_DB_MODIFY_MODE ModifyMode, - ) - > - > - DataModify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer Query, - CSSM_HANDLE_PTR ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetFirst; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_HANDLE ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetNext; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_HANDLE ResultsHandle, - ) - > - > - DataAbortQuery; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecord, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ) - > - > - DataGetFromUniqueRecordId; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, - ) - > - > - FreeUniqueRecord; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, - ) - > - > - DbOpen, - required ffi.Pointer< - ffi.NativeFunction - > - DbClose, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer DBInfo, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer CredAndAclEntry, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, - ) - > - > - DbCreate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer AccessCred, - ) - > - > - DbDelete, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RelationID, - ffi.Pointer RelationName, - uint32 NumberOfAttributes, - ffi.Pointer pAttributeInfo, - uint32 NumberOfIndexes, - ffi.Pointer pIndexInfo, - ) - > - > - CreateRelation, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RelationID, - ) - > - > - DestroyRelation, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ) - > - > - Authenticate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetDbAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ) - > - > - ChangeDbAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetDbOwner, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, - ) - > - > - ChangeDbOwner, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer NameList, - ) - > - > - GetDbNames, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> DbName, - ) - > - > - GetDbNameFromHandle, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - CSSM_NAME_LIST_PTR NameList, - ) - > - > - FreeNameList, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RecordType, - ffi.Pointer Attributes, - ffi.Pointer Data, - ffi.Pointer UniqueId, - ) - > - > - DataInsert, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecordIdentifier, - ) - > - > - DataDelete, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RecordType, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, - ffi.Pointer AttributesToBeModified, - ffi.Pointer DataToBeModified, - CSSM_DB_MODIFY_MODE ModifyMode, - ) - > - > - DataModify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer Query, - CSSM_HANDLE_PTR ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetFirst, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_HANDLE ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetNext, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_HANDLE ResultsHandle, - ) - > - > - DataAbortQuery, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecord, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ) - > - > - DataGetFromUniqueRecordId, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, - ) - > - > - FreeUniqueRecord, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough, - }) => $allocator() - ..ref.DbOpen = DbOpen - ..ref.DbClose = DbClose - ..ref.DbCreate = DbCreate - ..ref.DbDelete = DbDelete - ..ref.CreateRelation = CreateRelation - ..ref.DestroyRelation = DestroyRelation - ..ref.Authenticate = Authenticate - ..ref.GetDbAcl = GetDbAcl - ..ref.ChangeDbAcl = ChangeDbAcl - ..ref.GetDbOwner = GetDbOwner - ..ref.ChangeDbOwner = ChangeDbOwner - ..ref.GetDbNames = GetDbNames - ..ref.GetDbNameFromHandle = GetDbNameFromHandle - ..ref.FreeNameList = FreeNameList - ..ref.DataInsert = DataInsert - ..ref.DataDelete = DataDelete - ..ref.DataModify = DataModify - ..ref.DataGetFirst = DataGetFirst - ..ref.DataGetNext = DataGetNext - ..ref.DataAbortQuery = DataAbortQuery - ..ref.DataGetFromUniqueRecordId = DataGetFromUniqueRecordId - ..ref.FreeUniqueRecord = FreeUniqueRecord - ..ref.PassThrough = PassThrough; -} - -@Deprecated('Deprecated') -final class cssm_spi_kr_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KRRegistrationContextHandle, - ffi.Pointer KRRegistrationContext, - ffi.Pointer KRInData, - ffi.Pointer AccessCredentials, - CSSM_KR_POLICY_FLAGS KRFlags, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR ReferenceHandle, - ) - > - > - RegistrationRequest; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ReferenceHandle, - ffi.Pointer EstimatedTime, - CSSM_KR_PROFILE_PTR KRProfile, - ) - > - > - RegistrationRetrieve; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KREnablementContextHandle, - ffi.Pointer KREnablementContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - ffi.Pointer KRSPOptions, - CSSM_KR_POLICY_FLAGS KRFlags, - CSSM_DATA_PTR KRFields, - ) - > - > - GenerateRecoveryFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KREnablementContextHandle, - ffi.Pointer KREnablementContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - ffi.Pointer KRSPOptions, - CSSM_KR_POLICY_FLAGS KRFlags, - ffi.Pointer KRFields, - ) - > - > - ProcessRecoveryFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KRRequestContextHandle, - ffi.Pointer KRRequestContext, - ffi.Pointer KRInData, - ffi.Pointer AccessCredentials, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR ReferenceHandle, - ) - > - > - RecoveryRequest; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ReferenceHandle, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR CacheHandle, - ffi.Pointer NumberOfRecoveredKeys, - ) - > - > - RecoveryRetrieve; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE CacheHandle, - uint32 IndexInResults, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CredAndAclEntry, - uint32 Flags, - CSSM_KEY_PTR RecoveredKey, - CSSM_DATA_PTR OtherInfo, - ) - > - > - GetRecoveredObject; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ResultsHandle, - ) - > - > - RecoveryRequestAbort; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KeyRecoveryContextHandle, - ffi.Pointer KeyRecoveryContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KRRegistrationContextHandle, - ffi.Pointer KRRegistrationContext, - ffi.Pointer KRInData, - ffi.Pointer AccessCredentials, - CSSM_KR_POLICY_FLAGS KRFlags, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR ReferenceHandle, - ) - > - > - RegistrationRequest, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ReferenceHandle, - ffi.Pointer EstimatedTime, - CSSM_KR_PROFILE_PTR KRProfile, - ) - > - > - RegistrationRetrieve, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KREnablementContextHandle, - ffi.Pointer KREnablementContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - ffi.Pointer KRSPOptions, - CSSM_KR_POLICY_FLAGS KRFlags, - CSSM_DATA_PTR KRFields, - ) - > - > - GenerateRecoveryFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KREnablementContextHandle, - ffi.Pointer KREnablementContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - ffi.Pointer KRSPOptions, - CSSM_KR_POLICY_FLAGS KRFlags, - ffi.Pointer KRFields, - ) - > - > - ProcessRecoveryFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KRRequestContextHandle, - ffi.Pointer KRRequestContext, - ffi.Pointer KRInData, - ffi.Pointer AccessCredentials, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR ReferenceHandle, - ) - > - > - RecoveryRequest, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ReferenceHandle, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR CacheHandle, - ffi.Pointer NumberOfRecoveredKeys, - ) - > - > - RecoveryRetrieve, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE CacheHandle, - uint32 IndexInResults, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CredAndAclEntry, - uint32 Flags, - CSSM_KEY_PTR RecoveredKey, - CSSM_DATA_PTR OtherInfo, - ) - > - > - GetRecoveredObject, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ResultsHandle, - ) - > - > - RecoveryRequestAbort, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KeyRecoveryContextHandle, - ffi.Pointer KeyRecoveryContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough, - }) => $allocator() - ..ref.RegistrationRequest = RegistrationRequest - ..ref.RegistrationRetrieve = RegistrationRetrieve - ..ref.GenerateRecoveryFields = GenerateRecoveryFields - ..ref.ProcessRecoveryFields = ProcessRecoveryFields - ..ref.RecoveryRequest = RecoveryRequest - ..ref.RecoveryRetrieve = RecoveryRetrieve - ..ref.GetRecoveredObject = GetRecoveredObject - ..ref.RecoveryRequestAbort = RecoveryRequestAbort - ..ref.PassThrough = PassThrough; -} - -@Deprecated('Deprecated') -final class cssm_spi_tp_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer PreferredAuthority, - CSSM_TP_AUTHORITY_REQUEST_TYPE RequestType, - ffi.Pointer RequestInput, - ffi.Pointer CallerAuthContext, - ffi.Pointer EstimatedTime, - CSSM_DATA_PTR ReferenceIdentifier, - ) - > - > - SubmitCredRequest; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer EstimatedTime, - ffi.Pointer ConfirmationRequired, - ffi.Pointer RetrieveOutput, - ) - > - > - RetrieveCredResult; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer Responses, - ffi.Pointer PreferredAuthority, - ) - > - > - ConfirmCredResult; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer Responses, - ffi.Pointer ElapsedTime, - ) - > - > - ReceiveConfirmation; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer CertGroup, - uint32 CertIndex, - CSSM_LONG_HANDLE KeyCacheHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CredAndAclEntry, - ) - > - > - CertReclaimKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_LONG_HANDLE KeyCacheHandle, - ) - > - > - CertReclaimAbort; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer PreferredAuthority, - CSSM_TP_FORM_TYPE FormType, - CSSM_DATA_PTR BlankForm, - ) - > - > - FormRequest; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_TP_FORM_TYPE FormType, - ffi.Pointer Form, - ffi.Pointer ClearanceAuthority, - ffi.Pointer RepresentedAuthority, - CSSM_ACCESS_CREDENTIALS_PTR Credentials, - ) - > - > - FormSubmit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CertGroupToBeVerified, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, - ) - > - > - CertGroupVerify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, - ) - > - > - CertCreateTemplate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllTemplateFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertTemplateToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCert, - ) - > - > - CertSign; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCertGroup, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - ) - > - > - CrlVerify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlFields, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CrlCreateTemplate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRevoked, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - CSSM_TP_CERTCHANGE_REASON Reason, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CertRevoke; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRemoved, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CertRemoveFromCrlTemplate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCrl, - ) - > - > - CrlSign; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CrlToBeApplied, - ffi.Pointer SignerCertGroup, - ffi.Pointer ApplyCrlVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, - ) - > - > - ApplyCrlToDb; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer DBList, - ffi.Pointer ConstructParams, - ffi.Pointer CertGroupFrag, - ffi.Pointer CertGroup, - ) - > - > - CertGroupConstruct; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer DBList, - ffi.Pointer OrderedCertGroup, - ffi.Pointer PrunedCertGroup, - ) - > - > - CertGroupPrune; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertGroup, - ffi.Pointer TupleGroup, - ) - > - > - CertGroupToTupleGroup; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer TupleGroup, - ffi.Pointer CertTemplates, - ) - > - > - TupleGroupToCertGroup; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DBList, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer PreferredAuthority, - CSSM_TP_AUTHORITY_REQUEST_TYPE RequestType, - ffi.Pointer RequestInput, - ffi.Pointer CallerAuthContext, - ffi.Pointer EstimatedTime, - CSSM_DATA_PTR ReferenceIdentifier, - ) - > - > - SubmitCredRequest, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer EstimatedTime, - ffi.Pointer ConfirmationRequired, - ffi.Pointer RetrieveOutput, - ) - > - > - RetrieveCredResult, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer Responses, - ffi.Pointer PreferredAuthority, - ) - > - > - ConfirmCredResult, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer Responses, - ffi.Pointer ElapsedTime, - ) - > - > - ReceiveConfirmation, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer CertGroup, - uint32 CertIndex, - CSSM_LONG_HANDLE KeyCacheHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CredAndAclEntry, - ) - > - > - CertReclaimKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_LONG_HANDLE KeyCacheHandle, - ) - > - > - CertReclaimAbort, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer PreferredAuthority, - CSSM_TP_FORM_TYPE FormType, - CSSM_DATA_PTR BlankForm, - ) - > - > - FormRequest, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_TP_FORM_TYPE FormType, - ffi.Pointer Form, - ffi.Pointer ClearanceAuthority, - ffi.Pointer RepresentedAuthority, - CSSM_ACCESS_CREDENTIALS_PTR Credentials, - ) - > - > - FormSubmit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CertGroupToBeVerified, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, - ) - > - > - CertGroupVerify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, - ) - > - > - CertCreateTemplate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllTemplateFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertTemplateToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCert, - ) - > - > - CertSign, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCertGroup, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - ) - > - > - CrlVerify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlFields, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CrlCreateTemplate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRevoked, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - CSSM_TP_CERTCHANGE_REASON Reason, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CertRevoke, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRemoved, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CertRemoveFromCrlTemplate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCrl, - ) - > - > - CrlSign, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CrlToBeApplied, - ffi.Pointer SignerCertGroup, - ffi.Pointer ApplyCrlVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, - ) - > - > - ApplyCrlToDb, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer DBList, - ffi.Pointer ConstructParams, - ffi.Pointer CertGroupFrag, - ffi.Pointer CertGroup, - ) - > - > - CertGroupConstruct, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer DBList, - ffi.Pointer OrderedCertGroup, - ffi.Pointer PrunedCertGroup, - ) - > - > - CertGroupPrune, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertGroup, - ffi.Pointer TupleGroup, - ) - > - > - CertGroupToTupleGroup, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer TupleGroup, - ffi.Pointer CertTemplates, - ) - > - > - TupleGroupToCertGroup, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DBList, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough, - }) => $allocator() - ..ref.SubmitCredRequest = SubmitCredRequest - ..ref.RetrieveCredResult = RetrieveCredResult - ..ref.ConfirmCredResult = ConfirmCredResult - ..ref.ReceiveConfirmation = ReceiveConfirmation - ..ref.CertReclaimKey = CertReclaimKey - ..ref.CertReclaimAbort = CertReclaimAbort - ..ref.FormRequest = FormRequest - ..ref.FormSubmit = FormSubmit - ..ref.CertGroupVerify = CertGroupVerify - ..ref.CertCreateTemplate = CertCreateTemplate - ..ref.CertGetAllTemplateFields = CertGetAllTemplateFields - ..ref.CertSign = CertSign - ..ref.CrlVerify = CrlVerify - ..ref.CrlCreateTemplate = CrlCreateTemplate - ..ref.CertRevoke = CertRevoke - ..ref.CertRemoveFromCrlTemplate = CertRemoveFromCrlTemplate - ..ref.CrlSign = CrlSign - ..ref.ApplyCrlToDb = ApplyCrlToDb - ..ref.CertGroupConstruct = CertGroupConstruct - ..ref.CertGroupPrune = CertGroupPrune - ..ref.CertGroupToTupleGroup = CertGroupToTupleGroup - ..ref.TupleGroupToCertGroup = TupleGroupToCertGroup - ..ref.PassThrough = PassThrough; -} - -@Deprecated('Deprecated') -final class cssm_state_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddIn, - CSSM_SERVICE_MASK AddinType, - ffi.Pointer> SPFunctions, - CSSM_GUID_PTR Guid, - ffi.Pointer Serialized, - ) - > - > - cssm_GetAttachFunctions; - - external ffi.Pointer< - ffi.NativeFunction - > - cssm_ReleaseAttachFunctions; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddIn, - CSSM_UPCALLS_PTR UpcallTable, - ) - > - > - cssm_GetAppMemoryFunctions; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddin, - CSSM_PROC_ADDR SrcAddress, - CSSM_PROC_ADDR DestAddress, - CSSM_PRIVILEGE InPriv, - ffi.Pointer OutPriv, - CSSM_BITMASK Hints, - ffi.Pointer IsOK, - ) - > - > - cssm_IsFuncCallValid; - - external ffi.Pointer< - ffi.NativeFunction GUID)> - > - cssm_DeregisterManagerServices; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer EventDescription, - ) - > - > - cssm_DeliverModuleManagerEvent; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddIn, - CSSM_SERVICE_MASK AddinType, - ffi.Pointer> SPFunctions, - CSSM_GUID_PTR Guid, - ffi.Pointer Serialized, - ) - > - > - cssm_GetAttachFunctions, - required ffi.Pointer< - ffi.NativeFunction - > - cssm_ReleaseAttachFunctions, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddIn, - CSSM_UPCALLS_PTR UpcallTable, - ) - > - > - cssm_GetAppMemoryFunctions, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddin, - CSSM_PROC_ADDR SrcAddress, - CSSM_PROC_ADDR DestAddress, - CSSM_PRIVILEGE InPriv, - ffi.Pointer OutPriv, - CSSM_BITMASK Hints, - ffi.Pointer IsOK, - ) - > - > - cssm_IsFuncCallValid, - required ffi.Pointer< - ffi.NativeFunction GUID)> - > - cssm_DeregisterManagerServices, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer EventDescription, - ) - > - > - cssm_DeliverModuleManagerEvent, - }) => $allocator() - ..ref.cssm_GetAttachFunctions = cssm_GetAttachFunctions - ..ref.cssm_ReleaseAttachFunctions = cssm_ReleaseAttachFunctions - ..ref.cssm_GetAppMemoryFunctions = cssm_GetAppMemoryFunctions - ..ref.cssm_IsFuncCallValid = cssm_IsFuncCallValid - ..ref.cssm_DeregisterManagerServices = cssm_DeregisterManagerServices - ..ref.cssm_DeliverModuleManagerEvent = cssm_DeliverModuleManagerEvent; -} - -@Deprecated('Deprecated') -final class cssm_subservice_uid extends ffi.Struct { - external CSSM_GUID Guid; - - external CSSM_VERSION Version; - - @uint32() - external int SubserviceId; - - @CSSM_SERVICE_TYPE() - external int SubserviceType; -} - -@Deprecated('Deprecated') -final class cssm_tp_authority_id extends ffi.Struct { - external ffi.Pointer AuthorityCert; - - external CSSM_NET_ADDRESS_PTR AuthorityLocation; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer AuthorityCert, - required CSSM_NET_ADDRESS_PTR AuthorityLocation, - }) => $allocator() - ..ref.AuthorityCert = AuthorityCert - ..ref.AuthorityLocation = AuthorityLocation; -} - -@Deprecated('Deprecated') -final class cssm_tp_callerauth_context extends ffi.Struct { - external CSSM_TP_POLICYINFO Policy; - - external CSSM_TIMESTRING VerifyTime; - - @CSSM_TP_STOP_ON() - external int VerificationAbortOn; - - external CSSM_TP_VERIFICATION_RESULTS_CALLBACK CallbackWithVerifiedCert; - - @uint32() - external int NumberOfAnchorCerts; - - external CSSM_DATA_PTR AnchorCerts; - - external CSSM_DL_DB_LIST_PTR DBList; - - external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_certchange_input extends ffi.Struct { - @CSSM_TP_CERTCHANGE_ACTION() - external int Action; - - @CSSM_TP_CERTCHANGE_REASON() - external int Reason; - - @CSSM_CL_HANDLE() - external int CLHandle; - - external CSSM_DATA_PTR Cert; - - external CSSM_FIELD_PTR ChangeInfo; - - external CSSM_TIMESTRING StartTime; - - external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Action, - required int Reason, - required int CLHandle, - required CSSM_DATA_PTR Cert, - required CSSM_FIELD_PTR ChangeInfo, - required CSSM_TIMESTRING StartTime, - required CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials, - }) => $allocator() - ..ref.Action = Action - ..ref.Reason = Reason - ..ref.CLHandle = CLHandle - ..ref.Cert = Cert - ..ref.ChangeInfo = ChangeInfo - ..ref.StartTime = StartTime - ..ref.CallerCredentials = CallerCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_certchange_output extends ffi.Struct { - @CSSM_TP_CERTCHANGE_STATUS() - external int ActionStatus; - - external CSSM_FIELD RevokeInfo; -} - -@Deprecated('Deprecated') -final class cssm_tp_certissue_input extends ffi.Struct { - external CSSM_SUBSERVICE_UID CSPSubserviceUid; - - @CSSM_CL_HANDLE() - external int CLHandle; - - @uint32() - external int NumberOfTemplateFields; - - external CSSM_FIELD_PTR SubjectCertFields; - - @CSSM_TP_SERVICES() - external int MoreServiceRequests; - - @uint32() - external int NumberOfServiceControls; - - external CSSM_FIELD_PTR ServiceControls; - - external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_certissue_output extends ffi.Struct { - @CSSM_TP_CERTISSUE_STATUS() - external int IssueStatus; - - external CSSM_CERTGROUP_PTR CertGroup; - - @CSSM_TP_SERVICES() - external int PerformedServiceRequests; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int IssueStatus, - required CSSM_CERTGROUP_PTR CertGroup, - required int PerformedServiceRequests, - }) => $allocator() - ..ref.IssueStatus = IssueStatus - ..ref.CertGroup = CertGroup - ..ref.PerformedServiceRequests = PerformedServiceRequests; -} - -@Deprecated('Deprecated') -final class cssm_tp_certnotarize_input extends ffi.Struct { - @CSSM_CL_HANDLE() - external int CLHandle; - - @uint32() - external int NumberOfFields; - - external CSSM_FIELD_PTR MoreFields; - - external CSSM_FIELD_PTR SignScope; - - @uint32() - external int ScopeSize; - - @CSSM_TP_SERVICES() - external int MoreServiceRequests; - - @uint32() - external int NumberOfServiceControls; - - external CSSM_FIELD_PTR ServiceControls; - - external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CLHandle, - required int NumberOfFields, - required CSSM_FIELD_PTR MoreFields, - required CSSM_FIELD_PTR SignScope, - required int ScopeSize, - required int MoreServiceRequests, - required int NumberOfServiceControls, - required CSSM_FIELD_PTR ServiceControls, - required CSSM_ACCESS_CREDENTIALS_PTR UserCredentials, - }) => $allocator() - ..ref.CLHandle = CLHandle - ..ref.NumberOfFields = NumberOfFields - ..ref.MoreFields = MoreFields - ..ref.SignScope = SignScope - ..ref.ScopeSize = ScopeSize - ..ref.MoreServiceRequests = MoreServiceRequests - ..ref.NumberOfServiceControls = NumberOfServiceControls - ..ref.ServiceControls = ServiceControls - ..ref.UserCredentials = UserCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_certnotarize_output extends ffi.Struct { - @CSSM_TP_CERTNOTARIZE_STATUS() - external int NotarizeStatus; - - external CSSM_CERTGROUP_PTR NotarizedCertGroup; - - @CSSM_TP_SERVICES() - external int PerformedServiceRequests; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NotarizeStatus, - required CSSM_CERTGROUP_PTR NotarizedCertGroup, - required int PerformedServiceRequests, - }) => $allocator() - ..ref.NotarizeStatus = NotarizeStatus - ..ref.NotarizedCertGroup = NotarizedCertGroup - ..ref.PerformedServiceRequests = PerformedServiceRequests; -} - -@Deprecated('Deprecated') -final class cssm_tp_certreclaim_input extends ffi.Struct { - @CSSM_CL_HANDLE() - external int CLHandle; - - @uint32() - external int NumberOfSelectionFields; - - external CSSM_FIELD_PTR SelectionFields; - - external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CLHandle, - required int NumberOfSelectionFields, - required CSSM_FIELD_PTR SelectionFields, - required CSSM_ACCESS_CREDENTIALS_PTR UserCredentials, - }) => $allocator() - ..ref.CLHandle = CLHandle - ..ref.NumberOfSelectionFields = NumberOfSelectionFields - ..ref.SelectionFields = SelectionFields - ..ref.UserCredentials = UserCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_certreclaim_output extends ffi.Struct { - @CSSM_TP_CERTRECLAIM_STATUS() - external int ReclaimStatus; - - external CSSM_CERTGROUP_PTR ReclaimedCertGroup; - - @CSSM_LONG_HANDLE() - external int KeyCacheHandle; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ReclaimStatus, - required CSSM_CERTGROUP_PTR ReclaimedCertGroup, - required int KeyCacheHandle, - }) => $allocator() - ..ref.ReclaimStatus = ReclaimStatus - ..ref.ReclaimedCertGroup = ReclaimedCertGroup - ..ref.KeyCacheHandle = KeyCacheHandle; -} - -@Deprecated('Deprecated') -final class cssm_tp_certverify_input extends ffi.Struct { - @CSSM_CL_HANDLE() - external int CLHandle; - - external CSSM_DATA_PTR Cert; - - external CSSM_TP_VERIFY_CONTEXT_PTR VerifyContext; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CLHandle, - required CSSM_DATA_PTR Cert, - required CSSM_TP_VERIFY_CONTEXT_PTR VerifyContext, - }) => $allocator() - ..ref.CLHandle = CLHandle - ..ref.Cert = Cert - ..ref.VerifyContext = VerifyContext; -} - -@Deprecated('Deprecated') -final class cssm_tp_certverify_output extends ffi.Struct { - @CSSM_TP_CERTVERIFY_STATUS() - external int VerifyStatus; - - @uint32() - external int NumberOfEvidence; - - external CSSM_EVIDENCE_PTR Evidence; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int VerifyStatus, - required int NumberOfEvidence, - required CSSM_EVIDENCE_PTR Evidence, - }) => $allocator() - ..ref.VerifyStatus = VerifyStatus - ..ref.NumberOfEvidence = NumberOfEvidence - ..ref.Evidence = Evidence; -} - -@Deprecated('Deprecated') -final class cssm_tp_confirm_response extends ffi.Struct { - @uint32() - external int NumberOfResponses; - - external CSSM_TP_CONFIRM_STATUS_PTR Responses; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfResponses, - required CSSM_TP_CONFIRM_STATUS_PTR Responses, - }) => $allocator() - ..ref.NumberOfResponses = NumberOfResponses - ..ref.Responses = Responses; -} - -@Deprecated('Deprecated') -final class cssm_tp_crlissue_input extends ffi.Struct { - @CSSM_CL_HANDLE() - external int CLHandle; - - @uint32() - external int CrlIdentifier; - - external CSSM_TIMESTRING CrlThisTime; - - external CSSM_FIELD_PTR PolicyIdentifier; - - external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CLHandle, - required int CrlIdentifier, - required CSSM_TIMESTRING CrlThisTime, - required CSSM_FIELD_PTR PolicyIdentifier, - required CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials, - }) => $allocator() - ..ref.CLHandle = CLHandle - ..ref.CrlIdentifier = CrlIdentifier - ..ref.CrlThisTime = CrlThisTime - ..ref.PolicyIdentifier = PolicyIdentifier - ..ref.CallerCredentials = CallerCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_crlissue_output extends ffi.Struct { - @CSSM_TP_CRLISSUE_STATUS() - external int IssueStatus; - - external CSSM_ENCODED_CRL_PTR Crl; - - external CSSM_TIMESTRING CrlNextTime; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int IssueStatus, - required CSSM_ENCODED_CRL_PTR Crl, - required CSSM_TIMESTRING CrlNextTime, - }) => $allocator() - ..ref.IssueStatus = IssueStatus - ..ref.Crl = Crl - ..ref.CrlNextTime = CrlNextTime; -} - -@Deprecated('Deprecated') -final class cssm_tp_policyinfo extends ffi.Struct { - @uint32() - external int NumberOfPolicyIds; - - external CSSM_FIELD_PTR PolicyIds; - - external ffi.Pointer PolicyControl; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfPolicyIds, - required CSSM_FIELD_PTR PolicyIds, - required ffi.Pointer PolicyControl, - }) => $allocator() - ..ref.NumberOfPolicyIds = NumberOfPolicyIds - ..ref.PolicyIds = PolicyIds - ..ref.PolicyControl = PolicyControl; -} - -@Deprecated('Deprecated') -final class cssm_tp_request_set extends ffi.Struct { - @uint32() - external int NumberOfRequests; - - external ffi.Pointer Requests; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfRequests, - required ffi.Pointer Requests, - }) => $allocator() - ..ref.NumberOfRequests = NumberOfRequests - ..ref.Requests = Requests; -} - -final class cssm_tp_result_set extends ffi.Struct { - @uint32() - external int NumberOfResults; - - external ffi.Pointer Results; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfResults, - required ffi.Pointer Results, - }) => $allocator() - ..ref.NumberOfResults = NumberOfResults - ..ref.Results = Results; -} - -@Deprecated('Deprecated') -final class cssm_tp_verify_context extends ffi.Struct { - @CSSM_TP_ACTION() - external int Action; - - external SecAsn1Item ActionData; - - external CSSM_CRLGROUP Crls; - - external CSSM_TP_CALLERAUTH_CONTEXT_PTR Cred; -} - -@Deprecated('Deprecated') -final class cssm_tp_verify_context_result extends ffi.Struct { - @uint32() - external int NumberOfEvidences; - - external CSSM_EVIDENCE_PTR Evidence; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfEvidences, - required CSSM_EVIDENCE_PTR Evidence, - }) => $allocator() - ..ref.NumberOfEvidences = NumberOfEvidences - ..ref.Evidence = Evidence; -} - -@Deprecated('Deprecated') -final class cssm_tuplegroup extends ffi.Struct { - @uint32() - external int NumberOfTuples; - - external CSSM_TUPLE_PTR Tuples; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfTuples, - required CSSM_TUPLE_PTR Tuples, - }) => $allocator() - ..ref.NumberOfTuples = NumberOfTuples - ..ref.Tuples = Tuples; -} - -@Deprecated('Deprecated') -final class cssm_upcalls extends ffi.Struct { - external CSSM_UPCALLS_MALLOC malloc_func; - - external CSSM_UPCALLS_FREE free_func; - - external CSSM_UPCALLS_REALLOC realloc_func; - - external CSSM_UPCALLS_CALLOC calloc_func; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CC_HANDLE Cc, - CSSM_MODULE_HANDLE_PTR ModuleHandle, - ) - > - > - CcToHandle_func; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE Module, - CSSM_GUID_PTR Guid, - CSSM_VERSION_PTR Version, - ffi.Pointer SubServiceId, - ffi.Pointer SubServiceType, - ffi.Pointer AttachFlags, - ffi.Pointer KeyHierarchy, - CSSM_API_MEMORY_FUNCS_PTR AttachedMemFuncs, - CSSM_FUNC_NAME_ADDR_PTR FunctionTable, - uint32 NumFunctions, - ) - > - > - GetModuleInfo_func; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CSSM_UPCALLS_MALLOC malloc_func, - required CSSM_UPCALLS_FREE free_func, - required CSSM_UPCALLS_REALLOC realloc_func, - required CSSM_UPCALLS_CALLOC calloc_func, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CC_HANDLE Cc, - CSSM_MODULE_HANDLE_PTR ModuleHandle, - ) - > - > - CcToHandle_func, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE Module, - CSSM_GUID_PTR Guid, - CSSM_VERSION_PTR Version, - ffi.Pointer SubServiceId, - ffi.Pointer SubServiceType, - ffi.Pointer AttachFlags, - ffi.Pointer KeyHierarchy, - CSSM_API_MEMORY_FUNCS_PTR AttachedMemFuncs, - CSSM_FUNC_NAME_ADDR_PTR FunctionTable, - uint32 NumFunctions, - ) - > - > - GetModuleInfo_func, - }) => $allocator() - ..ref.malloc_func = malloc_func - ..ref.free_func = free_func - ..ref.realloc_func = realloc_func - ..ref.calloc_func = calloc_func - ..ref.CcToHandle_func = CcToHandle_func - ..ref.GetModuleInfo_func = GetModuleInfo_func; -} - -final class cssm_version extends ffi.Struct { - @uint32() - external int Major; - - @uint32() - external int Minor; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Major, - required int Minor, - }) => $allocator() - ..ref.Major = Major - ..ref.Minor = Minor; -} - -@Deprecated('Deprecated') -final class cssm_x509_extension extends ffi.Struct { - external SecAsn1Oid extnId; - - @CSSM_BOOL() - external int critical; - - @ffi.UnsignedInt() - external int formatAsInt; - - extension_data_format get format => - extension_data_format.fromValue(formatAsInt); - set format(extension_data_format value) => formatAsInt = value.value; - - external cssm_x509ext_value value; - - external SecAsn1Item BERvalue; -} - -@Deprecated('Deprecated') -final class cssm_x509_extensionTagAndValue extends ffi.Struct { - @CSSM_BER_TAG() - external int type; - - external SecAsn1Item value; -} - -@Deprecated('Deprecated') -final class cssm_x509_extensions extends ffi.Struct { - @uint32() - external int numberOfExtensions; - - external CSSM_X509_EXTENSION_PTR extensions; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfExtensions, - required CSSM_X509_EXTENSION_PTR extensions, - }) => $allocator() - ..ref.numberOfExtensions = numberOfExtensions - ..ref.extensions = extensions; -} - -@Deprecated('Deprecated') -final class cssm_x509_name extends ffi.Struct { - @uint32() - external int numberOfRDNs; - - external CSSM_X509_RDN_PTR RelativeDistinguishedName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfRDNs, - required CSSM_X509_RDN_PTR RelativeDistinguishedName, - }) => $allocator() - ..ref.numberOfRDNs = numberOfRDNs - ..ref.RelativeDistinguishedName = RelativeDistinguishedName; -} - -@Deprecated('Deprecated') -final class cssm_x509_rdn extends ffi.Struct { - @uint32() - external int numberOfPairs; - - external CSSM_X509_TYPE_VALUE_PAIR_PTR AttributeTypeAndValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfPairs, - required CSSM_X509_TYPE_VALUE_PAIR_PTR AttributeTypeAndValue, - }) => $allocator() - ..ref.numberOfPairs = numberOfPairs - ..ref.AttributeTypeAndValue = AttributeTypeAndValue; -} - -@Deprecated('Deprecated') -final class cssm_x509_revoked_cert_entry extends ffi.Struct { - external SecAsn1Item certificateSerialNumber; - - external CSSM_X509_TIME revocationDate; - - external CSSM_X509_EXTENSIONS extensions; -} - -@Deprecated('Deprecated') -final class cssm_x509_revoked_cert_list extends ffi.Struct { - @uint32() - external int numberOfRevokedCertEntries; - - external CSSM_X509_REVOKED_CERT_ENTRY_PTR revokedCertEntry; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfRevokedCertEntries, - required CSSM_X509_REVOKED_CERT_ENTRY_PTR revokedCertEntry, - }) => $allocator() - ..ref.numberOfRevokedCertEntries = numberOfRevokedCertEntries - ..ref.revokedCertEntry = revokedCertEntry; -} - -@Deprecated('Deprecated') -final class cssm_x509_signature extends ffi.Struct { - external SecAsn1AlgId algorithmIdentifier; - - external SecAsn1Item encrypted; -} - -@Deprecated('Deprecated') -final class cssm_x509_signed_certificate extends ffi.Struct { - external CSSM_X509_TBS_CERTIFICATE certificate; - - external CSSM_X509_SIGNATURE signature; -} - -@Deprecated('Deprecated') -final class cssm_x509_signed_crl extends ffi.Struct { - external CSSM_X509_TBS_CERTLIST tbsCertList; - - external CSSM_X509_SIGNATURE signature; -} - -@Deprecated('Deprecated') -final class cssm_x509_tbs_certificate extends ffi.Struct { - external SecAsn1Item version; - - external SecAsn1Item serialNumber; - - external SecAsn1AlgId signature; - - external CSSM_X509_NAME issuer; - - external CSSM_X509_VALIDITY validity; - - external CSSM_X509_NAME subject; - - external SecAsn1PubKeyInfo subjectPublicKeyInfo; - - external SecAsn1Item issuerUniqueIdentifier; - - external SecAsn1Item subjectUniqueIdentifier; - - external CSSM_X509_EXTENSIONS extensions; -} - -@Deprecated('Deprecated') -final class cssm_x509_tbs_certlist extends ffi.Struct { - external SecAsn1Item version; - - external SecAsn1AlgId signature; - - external CSSM_X509_NAME issuer; - - external CSSM_X509_TIME thisUpdate; - - external CSSM_X509_TIME nextUpdate; - - external CSSM_X509_REVOKED_CERT_LIST_PTR revokedCertificates; - - external CSSM_X509_EXTENSIONS extensions; -} - -@Deprecated('Deprecated') -final class cssm_x509_time extends ffi.Struct { - @CSSM_BER_TAG() - external int timeType; - - external SecAsn1Item time$1; -} - -@Deprecated('Deprecated') -final class cssm_x509_type_value_pair extends ffi.Struct { - external SecAsn1Oid type; - - @CSSM_BER_TAG() - external int valueType; - - external SecAsn1Item value; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_basicConstraints extends ffi.Struct { - @CSSM_BOOL() - external int cA; - - @CSSM_X509_OPTION() - external int pathLenConstraintPresent; - - @uint32() - external int pathLenConstraint; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cA, - required int pathLenConstraintPresent, - required int pathLenConstraint, - }) => $allocator() - ..ref.cA = cA - ..ref.pathLenConstraintPresent = pathLenConstraintPresent - ..ref.pathLenConstraint = pathLenConstraint; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_pair extends ffi.Struct { - external CSSM_X509EXT_TAGandVALUE tagAndValue; - - external ffi.Pointer parsedValue; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_policyInfo extends ffi.Struct { - external SecAsn1Oid policyIdentifier; - - external CSSM_X509EXT_POLICYQUALIFIERS policyQualifiers; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_policyQualifierInfo extends ffi.Struct { - external SecAsn1Oid policyQualifierId; - - external SecAsn1Item value; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_policyQualifiers extends ffi.Struct { - @uint32() - external int numberOfPolicyQualifiers; - - external ffi.Pointer policyQualifier; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfPolicyQualifiers, - required ffi.Pointer policyQualifier, - }) => $allocator() - ..ref.numberOfPolicyQualifiers = numberOfPolicyQualifiers - ..ref.policyQualifier = policyQualifier; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_value extends ffi.Union { - external ffi.Pointer tagAndValue; - - external ffi.Pointer parsedValue; - - external ffi.Pointer valuePair; -} - -typedef ct_rune_t = __darwin_ct_rune_t; -typedef cups_acopy_func_t = - ffi.Pointer>; -typedef cups_acopy_func_tFunction = - ffi.Pointer Function( - ffi.Pointer element, - ffi.Pointer data, - ); - -enum cups_adv_e { - CUPS_ADVANCE_NONE(0), - CUPS_ADVANCE_FILE(1), - CUPS_ADVANCE_JOB(2), - CUPS_ADVANCE_SET(3), - CUPS_ADVANCE_PAGE(4); - - final int value; - const cups_adv_e(this.value); - - static cups_adv_e fromValue(int value) => switch (value) { - 0 => CUPS_ADVANCE_NONE, - 1 => CUPS_ADVANCE_FILE, - 2 => CUPS_ADVANCE_JOB, - 3 => CUPS_ADVANCE_SET, - 4 => CUPS_ADVANCE_PAGE, - _ => throw ArgumentError('Unknown value for cups_adv_e: $value'), - }; -} - -typedef cups_afree_func_t = - ffi.Pointer>; -typedef cups_afree_func_tFunction = - ffi.Void Function( - ffi.Pointer element, - ffi.Pointer data, - ); -typedef Dartcups_afree_func_tFunction = - void Function(ffi.Pointer element, ffi.Pointer data); -typedef cups_ahash_func_t = - ffi.Pointer>; -typedef cups_ahash_func_tFunction = - ffi.Int Function(ffi.Pointer element, ffi.Pointer data); -typedef Dartcups_ahash_func_tFunction = - int Function(ffi.Pointer element, ffi.Pointer data); -typedef cups_array_func_t = - ffi.Pointer>; -typedef cups_array_func_tFunction = - ffi.Int Function( - ffi.Pointer first, - ffi.Pointer second, - ffi.Pointer data, - ); -typedef Dartcups_array_func_tFunction = - int Function( - ffi.Pointer first, - ffi.Pointer second, - ffi.Pointer data, - ); -typedef cups_array_t = _cups_array_s; - -enum cups_bool_e { - CUPS_FALSE(0), - CUPS_TRUE(1); - - final int value; - const cups_bool_e(this.value); - - static cups_bool_e fromValue(int value) => switch (value) { - 0 => CUPS_FALSE, - 1 => CUPS_TRUE, - _ => throw ArgumentError('Unknown value for cups_bool_e: $value'), - }; -} - -typedef cups_client_cert_cb_t = - ffi.Pointer>; -typedef cups_client_cert_cb_tFunction = - ffi.Int Function( - ffi.Pointer http, - ffi.Pointer tls, - ffi.Pointer distinguished_names, - ffi.Pointer user_data, - ); -typedef Dartcups_client_cert_cb_tFunction = - int Function( - ffi.Pointer http, - ffi.Pointer tls, - ffi.Pointer distinguished_names, - ffi.Pointer user_data, - ); - -enum cups_cspace_e { - CUPS_CSPACE_W(0), - CUPS_CSPACE_RGB(1), - CUPS_CSPACE_RGBA(2), - CUPS_CSPACE_K(3), - CUPS_CSPACE_CMY(4), - CUPS_CSPACE_YMC(5), - CUPS_CSPACE_CMYK(6), - CUPS_CSPACE_YMCK(7), - CUPS_CSPACE_KCMY(8), - CUPS_CSPACE_KCMYcm(9), - CUPS_CSPACE_GMCK(10), - CUPS_CSPACE_GMCS(11), - CUPS_CSPACE_WHITE(12), - CUPS_CSPACE_GOLD(13), - CUPS_CSPACE_SILVER(14), - CUPS_CSPACE_CIEXYZ(15), - CUPS_CSPACE_CIELab(16), - CUPS_CSPACE_RGBW(17), - CUPS_CSPACE_SW(18), - CUPS_CSPACE_SRGB(19), - CUPS_CSPACE_ADOBERGB(20), - CUPS_CSPACE_P3E(21), - CUPS_CSPACE_GRAYE(22), - CUPS_CSPACE_ICC1(32), - CUPS_CSPACE_ICC2(33), - CUPS_CSPACE_ICC3(34), - CUPS_CSPACE_ICC4(35), - CUPS_CSPACE_ICC5(36), - CUPS_CSPACE_ICC6(37), - CUPS_CSPACE_ICC7(38), - CUPS_CSPACE_ICC8(39), - CUPS_CSPACE_ICC9(40), - CUPS_CSPACE_ICCA(41), - CUPS_CSPACE_ICCB(42), - CUPS_CSPACE_ICCC(43), - CUPS_CSPACE_ICCD(44), - CUPS_CSPACE_ICCE(45), - CUPS_CSPACE_ICCF(46), - CUPS_CSPACE_DEVICE1(48), - CUPS_CSPACE_DEVICE2(49), - CUPS_CSPACE_DEVICE3(50), - CUPS_CSPACE_DEVICE4(51), - CUPS_CSPACE_DEVICE5(52), - CUPS_CSPACE_DEVICE6(53), - CUPS_CSPACE_DEVICE7(54), - CUPS_CSPACE_DEVICE8(55), - CUPS_CSPACE_DEVICE9(56), - CUPS_CSPACE_DEVICEA(57), - CUPS_CSPACE_DEVICEB(58), - CUPS_CSPACE_DEVICEC(59), - CUPS_CSPACE_DEVICED(60), - CUPS_CSPACE_DEVICEE(61), - CUPS_CSPACE_DEVICEF(62); - - final int value; - const cups_cspace_e(this.value); - - static cups_cspace_e fromValue(int value) => switch (value) { - 0 => CUPS_CSPACE_W, - 1 => CUPS_CSPACE_RGB, - 2 => CUPS_CSPACE_RGBA, - 3 => CUPS_CSPACE_K, - 4 => CUPS_CSPACE_CMY, - 5 => CUPS_CSPACE_YMC, - 6 => CUPS_CSPACE_CMYK, - 7 => CUPS_CSPACE_YMCK, - 8 => CUPS_CSPACE_KCMY, - 9 => CUPS_CSPACE_KCMYcm, - 10 => CUPS_CSPACE_GMCK, - 11 => CUPS_CSPACE_GMCS, - 12 => CUPS_CSPACE_WHITE, - 13 => CUPS_CSPACE_GOLD, - 14 => CUPS_CSPACE_SILVER, - 15 => CUPS_CSPACE_CIEXYZ, - 16 => CUPS_CSPACE_CIELab, - 17 => CUPS_CSPACE_RGBW, - 18 => CUPS_CSPACE_SW, - 19 => CUPS_CSPACE_SRGB, - 20 => CUPS_CSPACE_ADOBERGB, - 21 => CUPS_CSPACE_P3E, - 22 => CUPS_CSPACE_GRAYE, - 32 => CUPS_CSPACE_ICC1, - 33 => CUPS_CSPACE_ICC2, - 34 => CUPS_CSPACE_ICC3, - 35 => CUPS_CSPACE_ICC4, - 36 => CUPS_CSPACE_ICC5, - 37 => CUPS_CSPACE_ICC6, - 38 => CUPS_CSPACE_ICC7, - 39 => CUPS_CSPACE_ICC8, - 40 => CUPS_CSPACE_ICC9, - 41 => CUPS_CSPACE_ICCA, - 42 => CUPS_CSPACE_ICCB, - 43 => CUPS_CSPACE_ICCC, - 44 => CUPS_CSPACE_ICCD, - 45 => CUPS_CSPACE_ICCE, - 46 => CUPS_CSPACE_ICCF, - 48 => CUPS_CSPACE_DEVICE1, - 49 => CUPS_CSPACE_DEVICE2, - 50 => CUPS_CSPACE_DEVICE3, - 51 => CUPS_CSPACE_DEVICE4, - 52 => CUPS_CSPACE_DEVICE5, - 53 => CUPS_CSPACE_DEVICE6, - 54 => CUPS_CSPACE_DEVICE7, - 55 => CUPS_CSPACE_DEVICE8, - 56 => CUPS_CSPACE_DEVICE9, - 57 => CUPS_CSPACE_DEVICEA, - 58 => CUPS_CSPACE_DEVICEB, - 59 => CUPS_CSPACE_DEVICEC, - 60 => CUPS_CSPACE_DEVICED, - 61 => CUPS_CSPACE_DEVICEE, - 62 => CUPS_CSPACE_DEVICEF, - _ => throw ArgumentError('Unknown value for cups_cspace_e: $value'), - }; -} - -enum cups_cut_e { - CUPS_CUT_NONE(0), - CUPS_CUT_FILE(1), - CUPS_CUT_JOB(2), - CUPS_CUT_SET(3), - CUPS_CUT_PAGE(4); - - final int value; - const cups_cut_e(this.value); - - static cups_cut_e fromValue(int value) => switch (value) { - 0 => CUPS_CUT_NONE, - 1 => CUPS_CUT_FILE, - 2 => CUPS_CUT_JOB, - 3 => CUPS_CUT_SET, - 4 => CUPS_CUT_PAGE, - _ => throw ArgumentError('Unknown value for cups_cut_e: $value'), - }; -} - -typedef cups_dest_block_t = ffi.Pointer; -typedef Dartcups_dest_block_t = - objc.ObjCBlock)>; -typedef cups_dest_cb_t = - ffi.Pointer>; -typedef cups_dest_cb_tFunction = - ffi.Int Function( - ffi.Pointer user_data, - ffi.UnsignedInt flags, - ffi.Pointer dest, - ); -typedef Dartcups_dest_cb_tFunction = - int Function( - ffi.Pointer user_data, - int flags, - ffi.Pointer dest, - ); - -final class cups_dest_s extends ffi.Struct { - external ffi.Pointer name; - - external ffi.Pointer instance; - - @ffi.Int() - external int is_default; - - @ffi.Int() - external int num_options; - - external ffi.Pointer options; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer name, - required ffi.Pointer instance, - required int is_default, - required int num_options, - required ffi.Pointer options, - }) => $allocator() - ..ref.name = name - ..ref.instance = instance - ..ref.is_default = is_default - ..ref.num_options = num_options - ..ref.options = options; -} - -typedef cups_dest_t = cups_dest_s; -typedef cups_dinfo_t = _cups_dinfo_s; - -enum cups_edge_e { - CUPS_EDGE_TOP(0), - CUPS_EDGE_RIGHT(1), - CUPS_EDGE_BOTTOM(2), - CUPS_EDGE_LEFT(3); - - final int value; - const cups_edge_e(this.value); - - static cups_edge_e fromValue(int value) => switch (value) { - 0 => CUPS_EDGE_TOP, - 1 => CUPS_EDGE_RIGHT, - 2 => CUPS_EDGE_BOTTOM, - 3 => CUPS_EDGE_LEFT, - _ => throw ArgumentError('Unknown value for cups_edge_e: $value'), - }; -} - -enum cups_encoding_e { - CUPS_AUTO_ENCODING(-1), - CUPS_US_ASCII(0), - CUPS_ISO8859_1(1), - CUPS_ISO8859_2(2), - CUPS_ISO8859_3(3), - CUPS_ISO8859_4(4), - CUPS_ISO8859_5(5), - CUPS_ISO8859_6(6), - CUPS_ISO8859_7(7), - CUPS_ISO8859_8(8), - CUPS_ISO8859_9(9), - CUPS_ISO8859_10(10), - CUPS_UTF8(11), - CUPS_ISO8859_13(12), - CUPS_ISO8859_14(13), - CUPS_ISO8859_15(14), - CUPS_WINDOWS_874(15), - CUPS_WINDOWS_1250(16), - CUPS_WINDOWS_1251(17), - CUPS_WINDOWS_1252(18), - CUPS_WINDOWS_1253(19), - CUPS_WINDOWS_1254(20), - CUPS_WINDOWS_1255(21), - CUPS_WINDOWS_1256(22), - CUPS_WINDOWS_1257(23), - CUPS_WINDOWS_1258(24), - CUPS_KOI8_R(25), - CUPS_KOI8_U(26), - CUPS_ISO8859_11(27), - CUPS_ISO8859_16(28), - CUPS_MAC_ROMAN(29), - CUPS_ENCODING_SBCS_END(63), - CUPS_WINDOWS_932(64), - CUPS_WINDOWS_936(65), - CUPS_WINDOWS_949(66), - CUPS_WINDOWS_950(67), - CUPS_WINDOWS_1361(68), - CUPS_ENCODING_DBCS_END(127), - CUPS_EUC_CN(128), - CUPS_EUC_JP(129), - CUPS_EUC_KR(130), - CUPS_EUC_TW(131), - CUPS_JIS_X0213(132), - CUPS_ENCODING_VBCS_END(191); - - final int value; - const cups_encoding_e(this.value); - - static cups_encoding_e fromValue(int value) => switch (value) { - -1 => CUPS_AUTO_ENCODING, - 0 => CUPS_US_ASCII, - 1 => CUPS_ISO8859_1, - 2 => CUPS_ISO8859_2, - 3 => CUPS_ISO8859_3, - 4 => CUPS_ISO8859_4, - 5 => CUPS_ISO8859_5, - 6 => CUPS_ISO8859_6, - 7 => CUPS_ISO8859_7, - 8 => CUPS_ISO8859_8, - 9 => CUPS_ISO8859_9, - 10 => CUPS_ISO8859_10, - 11 => CUPS_UTF8, - 12 => CUPS_ISO8859_13, - 13 => CUPS_ISO8859_14, - 14 => CUPS_ISO8859_15, - 15 => CUPS_WINDOWS_874, - 16 => CUPS_WINDOWS_1250, - 17 => CUPS_WINDOWS_1251, - 18 => CUPS_WINDOWS_1252, - 19 => CUPS_WINDOWS_1253, - 20 => CUPS_WINDOWS_1254, - 21 => CUPS_WINDOWS_1255, - 22 => CUPS_WINDOWS_1256, - 23 => CUPS_WINDOWS_1257, - 24 => CUPS_WINDOWS_1258, - 25 => CUPS_KOI8_R, - 26 => CUPS_KOI8_U, - 27 => CUPS_ISO8859_11, - 28 => CUPS_ISO8859_16, - 29 => CUPS_MAC_ROMAN, - 63 => CUPS_ENCODING_SBCS_END, - 64 => CUPS_WINDOWS_932, - 65 => CUPS_WINDOWS_936, - 66 => CUPS_WINDOWS_949, - 67 => CUPS_WINDOWS_950, - 68 => CUPS_WINDOWS_1361, - 127 => CUPS_ENCODING_DBCS_END, - 128 => CUPS_EUC_CN, - 129 => CUPS_EUC_JP, - 130 => CUPS_EUC_KR, - 131 => CUPS_EUC_TW, - 132 => CUPS_JIS_X0213, - 191 => CUPS_ENCODING_VBCS_END, - _ => throw ArgumentError('Unknown value for cups_encoding_e: $value'), - }; -} - -typedef cups_file_t = _cups_file_s; -typedef cups_interpret_cb_t = - ffi.Pointer>; -typedef cups_interpret_cb_tFunction = - ffi.Int Function( - ffi.Pointer header, - ffi.Int preferred_bits, - ); -typedef Dartcups_interpret_cb_tFunction = - int Function(ffi.Pointer header, int preferred_bits); - -final class cups_job_s extends ffi.Struct { - @ffi.Int() - external int id; - - external ffi.Pointer dest; - - external ffi.Pointer title; - - external ffi.Pointer user; - - external ffi.Pointer format; - - @ffi.UnsignedInt() - external int stateAsInt; - - ipp_jstate_e get state => ipp_jstate_e.fromValue(stateAsInt); - set state(ipp_jstate_e value) => stateAsInt = value.value; - - @ffi.Int() - external int size; - - @ffi.Int() - external int priority; - - @time_t() - external int completed_time; - - @time_t() - external int creation_time; - - @time_t() - external int processing_time; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int id, - required ffi.Pointer dest, - required ffi.Pointer title, - required ffi.Pointer user, - required ffi.Pointer format, - required ipp_jstate_e state, - required int size, - required int priority, - required int completed_time, - required int creation_time, - required int processing_time, - }) => $allocator() - ..ref.id = id - ..ref.dest = dest - ..ref.title = title - ..ref.user = user - ..ref.format = format - ..ref.state = state - ..ref.size = size - ..ref.priority = priority - ..ref.completed_time = completed_time - ..ref.creation_time = creation_time - ..ref.processing_time = processing_time; -} - -typedef cups_job_t = cups_job_s; - -enum cups_jog_e { - CUPS_JOG_NONE(0), - CUPS_JOG_FILE(1), - CUPS_JOG_JOB(2), - CUPS_JOG_SET(3); - - final int value; - const cups_jog_e(this.value); - - static cups_jog_e fromValue(int value) => switch (value) { - 0 => CUPS_JOG_NONE, - 1 => CUPS_JOG_FILE, - 2 => CUPS_JOG_JOB, - 3 => CUPS_JOG_SET, - _ => throw ArgumentError('Unknown value for cups_jog_e: $value'), - }; -} - -final class cups_lang_s extends ffi.Struct { - external ffi.Pointer next; - - @ffi.Int() - external int used; - - @ffi.Int() - external int encodingAsInt; - - cups_encoding_e get encoding => cups_encoding_e.fromValue(encodingAsInt); - set encoding(cups_encoding_e value) => encodingAsInt = value.value; - - @ffi.Array.multi([16]) - external ffi.Array language; - - external ffi.Pointer strings; -} - -typedef cups_lang_t = cups_lang_s; - -enum cups_mode_e { - CUPS_RASTER_READ(0), - CUPS_RASTER_WRITE(1), - CUPS_RASTER_WRITE_COMPRESSED(2), - CUPS_RASTER_WRITE_PWG(3), - CUPS_RASTER_WRITE_APPLE(4); - - final int value; - const cups_mode_e(this.value); - - static cups_mode_e fromValue(int value) => switch (value) { - 0 => CUPS_RASTER_READ, - 1 => CUPS_RASTER_WRITE, - 2 => CUPS_RASTER_WRITE_COMPRESSED, - 3 => CUPS_RASTER_WRITE_PWG, - 4 => CUPS_RASTER_WRITE_APPLE, - _ => throw ArgumentError('Unknown value for cups_mode_e: $value'), - }; -} - -final class cups_option_s extends ffi.Struct { - external ffi.Pointer name; - - external ffi.Pointer value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer name, - required ffi.Pointer value, - }) => $allocator() - ..ref.name = name - ..ref.value = value; -} - -typedef cups_option_t = cups_option_s; - -enum cups_order_e { - CUPS_ORDER_CHUNKED(0), - CUPS_ORDER_BANDED(1), - CUPS_ORDER_PLANAR(2); - - final int value; - const cups_order_e(this.value); - - static cups_order_e fromValue(int value) => switch (value) { - 0 => CUPS_ORDER_CHUNKED, - 1 => CUPS_ORDER_BANDED, - 2 => CUPS_ORDER_PLANAR, - _ => throw ArgumentError('Unknown value for cups_order_e: $value'), - }; -} - -enum cups_orient_e { - CUPS_ORIENT_0(0), - CUPS_ORIENT_90(1), - CUPS_ORIENT_180(2), - CUPS_ORIENT_270(3); - - final int value; - const cups_orient_e(this.value); - - static cups_orient_e fromValue(int value) => switch (value) { - 0 => CUPS_ORIENT_0, - 1 => CUPS_ORIENT_90, - 2 => CUPS_ORIENT_180, - 3 => CUPS_ORIENT_270, - _ => throw ArgumentError('Unknown value for cups_orient_e: $value'), - }; -} - -final class cups_page_header2_s extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array MediaClass; - - @ffi.Array.multi([64]) - external ffi.Array MediaColor; - - @ffi.Array.multi([64]) - external ffi.Array MediaType; - - @ffi.Array.multi([64]) - external ffi.Array OutputType; - - @ffi.UnsignedInt() - external int AdvanceDistance; - - @ffi.UnsignedInt() - external int AdvanceMediaAsInt; - - cups_adv_e get AdvanceMedia => cups_adv_e.fromValue(AdvanceMediaAsInt); - set AdvanceMedia(cups_adv_e value) => AdvanceMediaAsInt = value.value; - - @ffi.UnsignedInt() - external int CollateAsInt; - - cups_bool_e get Collate => cups_bool_e.fromValue(CollateAsInt); - set Collate(cups_bool_e value) => CollateAsInt = value.value; - - @ffi.UnsignedInt() - external int CutMediaAsInt; - - cups_cut_e get CutMedia => cups_cut_e.fromValue(CutMediaAsInt); - set CutMedia(cups_cut_e value) => CutMediaAsInt = value.value; - - @ffi.UnsignedInt() - external int DuplexAsInt; - - cups_bool_e get Duplex => cups_bool_e.fromValue(DuplexAsInt); - set Duplex(cups_bool_e value) => DuplexAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array HWResolution; - - @ffi.Array.multi([4]) - external ffi.Array ImagingBoundingBox; - - @ffi.UnsignedInt() - external int InsertSheetAsInt; - - cups_bool_e get InsertSheet => cups_bool_e.fromValue(InsertSheetAsInt); - set InsertSheet(cups_bool_e value) => InsertSheetAsInt = value.value; - - @ffi.UnsignedInt() - external int JogAsInt; - - cups_jog_e get Jog => cups_jog_e.fromValue(JogAsInt); - set Jog(cups_jog_e value) => JogAsInt = value.value; - - @ffi.UnsignedInt() - external int LeadingEdgeAsInt; - - cups_edge_e get LeadingEdge => cups_edge_e.fromValue(LeadingEdgeAsInt); - set LeadingEdge(cups_edge_e value) => LeadingEdgeAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array Margins; - - @ffi.UnsignedInt() - external int ManualFeedAsInt; - - cups_bool_e get ManualFeed => cups_bool_e.fromValue(ManualFeedAsInt); - set ManualFeed(cups_bool_e value) => ManualFeedAsInt = value.value; - - @ffi.UnsignedInt() - external int MediaPosition; - - @ffi.UnsignedInt() - external int MediaWeight; - - @ffi.UnsignedInt() - external int MirrorPrintAsInt; - - cups_bool_e get MirrorPrint => cups_bool_e.fromValue(MirrorPrintAsInt); - set MirrorPrint(cups_bool_e value) => MirrorPrintAsInt = value.value; - - @ffi.UnsignedInt() - external int NegativePrintAsInt; - - cups_bool_e get NegativePrint => cups_bool_e.fromValue(NegativePrintAsInt); - set NegativePrint(cups_bool_e value) => NegativePrintAsInt = value.value; - - @ffi.UnsignedInt() - external int NumCopies; - - @ffi.UnsignedInt() - external int OrientationAsInt; - - cups_orient_e get Orientation => cups_orient_e.fromValue(OrientationAsInt); - set Orientation(cups_orient_e value) => OrientationAsInt = value.value; - - @ffi.UnsignedInt() - external int OutputFaceUpAsInt; - - cups_bool_e get OutputFaceUp => cups_bool_e.fromValue(OutputFaceUpAsInt); - set OutputFaceUp(cups_bool_e value) => OutputFaceUpAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array PageSize; - - @ffi.UnsignedInt() - external int SeparationsAsInt; - - cups_bool_e get Separations => cups_bool_e.fromValue(SeparationsAsInt); - set Separations(cups_bool_e value) => SeparationsAsInt = value.value; - - @ffi.UnsignedInt() - external int TraySwitchAsInt; - - cups_bool_e get TraySwitch => cups_bool_e.fromValue(TraySwitchAsInt); - set TraySwitch(cups_bool_e value) => TraySwitchAsInt = value.value; - - @ffi.UnsignedInt() - external int TumbleAsInt; - - cups_bool_e get Tumble => cups_bool_e.fromValue(TumbleAsInt); - set Tumble(cups_bool_e value) => TumbleAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsWidth; - - @ffi.UnsignedInt() - external int cupsHeight; - - @ffi.UnsignedInt() - external int cupsMediaType; - - @ffi.UnsignedInt() - external int cupsBitsPerColor; - - @ffi.UnsignedInt() - external int cupsBitsPerPixel; - - @ffi.UnsignedInt() - external int cupsBytesPerLine; - - @ffi.UnsignedInt() - external int cupsColorOrderAsInt; - - cups_order_e get cupsColorOrder => - cups_order_e.fromValue(cupsColorOrderAsInt); - set cupsColorOrder(cups_order_e value) => cupsColorOrderAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsColorSpaceAsInt; - - cups_cspace_e get cupsColorSpace => - cups_cspace_e.fromValue(cupsColorSpaceAsInt); - set cupsColorSpace(cups_cspace_e value) => cupsColorSpaceAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsCompression; - - @ffi.UnsignedInt() - external int cupsRowCount; - - @ffi.UnsignedInt() - external int cupsRowFeed; - - @ffi.UnsignedInt() - external int cupsRowStep; - - @ffi.UnsignedInt() - external int cupsNumColors; - - @ffi.Float() - external double cupsBorderlessScalingFactor; - - @ffi.Array.multi([2]) - external ffi.Array cupsPageSize; - - @ffi.Array.multi([4]) - external ffi.Array cupsImagingBBox; - - @ffi.Array.multi([16]) - external ffi.Array cupsInteger; - - @ffi.Array.multi([16]) - external ffi.Array cupsReal; - - @ffi.Array.multi([16, 64]) - external ffi.Array> cupsString; - - @ffi.Array.multi([64]) - external ffi.Array cupsMarkerType; - - @ffi.Array.multi([64]) - external ffi.Array cupsRenderingIntent; - - @ffi.Array.multi([64]) - external ffi.Array cupsPageSizeName; -} - -typedef cups_page_header2_t = cups_page_header2_s; - -final class cups_page_header_s extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array MediaClass; - - @ffi.Array.multi([64]) - external ffi.Array MediaColor; - - @ffi.Array.multi([64]) - external ffi.Array MediaType; - - @ffi.Array.multi([64]) - external ffi.Array OutputType; - - @ffi.UnsignedInt() - external int AdvanceDistance; - - @ffi.UnsignedInt() - external int AdvanceMediaAsInt; - - cups_adv_e get AdvanceMedia => cups_adv_e.fromValue(AdvanceMediaAsInt); - set AdvanceMedia(cups_adv_e value) => AdvanceMediaAsInt = value.value; - - @ffi.UnsignedInt() - external int CollateAsInt; - - cups_bool_e get Collate => cups_bool_e.fromValue(CollateAsInt); - set Collate(cups_bool_e value) => CollateAsInt = value.value; - - @ffi.UnsignedInt() - external int CutMediaAsInt; - - cups_cut_e get CutMedia => cups_cut_e.fromValue(CutMediaAsInt); - set CutMedia(cups_cut_e value) => CutMediaAsInt = value.value; - - @ffi.UnsignedInt() - external int DuplexAsInt; - - cups_bool_e get Duplex => cups_bool_e.fromValue(DuplexAsInt); - set Duplex(cups_bool_e value) => DuplexAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array HWResolution; - - @ffi.Array.multi([4]) - external ffi.Array ImagingBoundingBox; - - @ffi.UnsignedInt() - external int InsertSheetAsInt; - - cups_bool_e get InsertSheet => cups_bool_e.fromValue(InsertSheetAsInt); - set InsertSheet(cups_bool_e value) => InsertSheetAsInt = value.value; - - @ffi.UnsignedInt() - external int JogAsInt; - - cups_jog_e get Jog => cups_jog_e.fromValue(JogAsInt); - set Jog(cups_jog_e value) => JogAsInt = value.value; - - @ffi.UnsignedInt() - external int LeadingEdgeAsInt; - - cups_edge_e get LeadingEdge => cups_edge_e.fromValue(LeadingEdgeAsInt); - set LeadingEdge(cups_edge_e value) => LeadingEdgeAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array Margins; - - @ffi.UnsignedInt() - external int ManualFeedAsInt; - - cups_bool_e get ManualFeed => cups_bool_e.fromValue(ManualFeedAsInt); - set ManualFeed(cups_bool_e value) => ManualFeedAsInt = value.value; - - @ffi.UnsignedInt() - external int MediaPosition; - - @ffi.UnsignedInt() - external int MediaWeight; - - @ffi.UnsignedInt() - external int MirrorPrintAsInt; - - cups_bool_e get MirrorPrint => cups_bool_e.fromValue(MirrorPrintAsInt); - set MirrorPrint(cups_bool_e value) => MirrorPrintAsInt = value.value; - - @ffi.UnsignedInt() - external int NegativePrintAsInt; - - cups_bool_e get NegativePrint => cups_bool_e.fromValue(NegativePrintAsInt); - set NegativePrint(cups_bool_e value) => NegativePrintAsInt = value.value; - - @ffi.UnsignedInt() - external int NumCopies; - - @ffi.UnsignedInt() - external int OrientationAsInt; - - cups_orient_e get Orientation => cups_orient_e.fromValue(OrientationAsInt); - set Orientation(cups_orient_e value) => OrientationAsInt = value.value; - - @ffi.UnsignedInt() - external int OutputFaceUpAsInt; - - cups_bool_e get OutputFaceUp => cups_bool_e.fromValue(OutputFaceUpAsInt); - set OutputFaceUp(cups_bool_e value) => OutputFaceUpAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array PageSize; - - @ffi.UnsignedInt() - external int SeparationsAsInt; - - cups_bool_e get Separations => cups_bool_e.fromValue(SeparationsAsInt); - set Separations(cups_bool_e value) => SeparationsAsInt = value.value; - - @ffi.UnsignedInt() - external int TraySwitchAsInt; - - cups_bool_e get TraySwitch => cups_bool_e.fromValue(TraySwitchAsInt); - set TraySwitch(cups_bool_e value) => TraySwitchAsInt = value.value; - - @ffi.UnsignedInt() - external int TumbleAsInt; - - cups_bool_e get Tumble => cups_bool_e.fromValue(TumbleAsInt); - set Tumble(cups_bool_e value) => TumbleAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsWidth; - - @ffi.UnsignedInt() - external int cupsHeight; - - @ffi.UnsignedInt() - external int cupsMediaType; - - @ffi.UnsignedInt() - external int cupsBitsPerColor; - - @ffi.UnsignedInt() - external int cupsBitsPerPixel; - - @ffi.UnsignedInt() - external int cupsBytesPerLine; - - @ffi.UnsignedInt() - external int cupsColorOrderAsInt; - - cups_order_e get cupsColorOrder => - cups_order_e.fromValue(cupsColorOrderAsInt); - set cupsColorOrder(cups_order_e value) => cupsColorOrderAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsColorSpaceAsInt; - - cups_cspace_e get cupsColorSpace => - cups_cspace_e.fromValue(cupsColorSpaceAsInt); - set cupsColorSpace(cups_cspace_e value) => cupsColorSpaceAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsCompression; - - @ffi.UnsignedInt() - external int cupsRowCount; - - @ffi.UnsignedInt() - external int cupsRowFeed; - - @ffi.UnsignedInt() - external int cupsRowStep; -} - -typedef cups_page_header_t = cups_page_header_s; -typedef cups_password_cb2_t = - ffi.Pointer>; -typedef cups_password_cb2_tFunction = - ffi.Pointer Function( - ffi.Pointer prompt, - ffi.Pointer http, - ffi.Pointer method, - ffi.Pointer resource, - ffi.Pointer user_data, - ); -typedef cups_password_cb_t = - ffi.Pointer>; -typedef cups_password_cb_tFunction = - ffi.Pointer Function(ffi.Pointer prompt); - -enum cups_ptype_e { - CUPS_PRINTER_LOCAL(0), - CUPS_PRINTER_CLASS(1), - CUPS_PRINTER_REMOTE(2), - CUPS_PRINTER_BW(4), - CUPS_PRINTER_COLOR(8), - CUPS_PRINTER_DUPLEX(16), - CUPS_PRINTER_STAPLE(32), - CUPS_PRINTER_COPIES(64), - CUPS_PRINTER_COLLATE(128), - CUPS_PRINTER_PUNCH(256), - CUPS_PRINTER_COVER(512), - CUPS_PRINTER_BIND(1024), - CUPS_PRINTER_SORT(2048), - CUPS_PRINTER_SMALL(4096), - CUPS_PRINTER_MEDIUM(8192), - CUPS_PRINTER_LARGE(16384), - CUPS_PRINTER_VARIABLE(32768), - CUPS_PRINTER_IMPLICIT(65536), - CUPS_PRINTER_DEFAULT(131072), - CUPS_PRINTER_FAX(262144), - CUPS_PRINTER_REJECTING(524288), - CUPS_PRINTER_DELETE(1048576), - CUPS_PRINTER_NOT_SHARED(2097152), - CUPS_PRINTER_AUTHENTICATED(4194304), - CUPS_PRINTER_COMMANDS(8388608), - CUPS_PRINTER_DISCOVERED(16777216), - CUPS_PRINTER_SCANNER(33554432), - CUPS_PRINTER_MFP(67108864), - CUPS_PRINTER_3D(134217728), - CUPS_PRINTER_OPTIONS(458748); - - final int value; - const cups_ptype_e(this.value); - - static cups_ptype_e fromValue(int value) => switch (value) { - 0 => CUPS_PRINTER_LOCAL, - 1 => CUPS_PRINTER_CLASS, - 2 => CUPS_PRINTER_REMOTE, - 4 => CUPS_PRINTER_BW, - 8 => CUPS_PRINTER_COLOR, - 16 => CUPS_PRINTER_DUPLEX, - 32 => CUPS_PRINTER_STAPLE, - 64 => CUPS_PRINTER_COPIES, - 128 => CUPS_PRINTER_COLLATE, - 256 => CUPS_PRINTER_PUNCH, - 512 => CUPS_PRINTER_COVER, - 1024 => CUPS_PRINTER_BIND, - 2048 => CUPS_PRINTER_SORT, - 4096 => CUPS_PRINTER_SMALL, - 8192 => CUPS_PRINTER_MEDIUM, - 16384 => CUPS_PRINTER_LARGE, - 32768 => CUPS_PRINTER_VARIABLE, - 65536 => CUPS_PRINTER_IMPLICIT, - 131072 => CUPS_PRINTER_DEFAULT, - 262144 => CUPS_PRINTER_FAX, - 524288 => CUPS_PRINTER_REJECTING, - 1048576 => CUPS_PRINTER_DELETE, - 2097152 => CUPS_PRINTER_NOT_SHARED, - 4194304 => CUPS_PRINTER_AUTHENTICATED, - 8388608 => CUPS_PRINTER_COMMANDS, - 16777216 => CUPS_PRINTER_DISCOVERED, - 33554432 => CUPS_PRINTER_SCANNER, - 67108864 => CUPS_PRINTER_MFP, - 134217728 => CUPS_PRINTER_3D, - 458748 => CUPS_PRINTER_OPTIONS, - _ => throw ArgumentError('Unknown value for cups_ptype_e: $value'), - }; -} - -typedef cups_ptype_t = ffi.UnsignedInt; -typedef Dartcups_ptype_t = int; -typedef cups_raster_iocb_t = - ffi.Pointer>; -typedef cups_raster_iocb_tFunction = - ssize_t Function( - ffi.Pointer ctx, - ffi.Pointer buffer, - ffi.Size length, - ); -typedef Dartcups_raster_iocb_tFunction = - Dart__darwin_ssize_t Function( - ffi.Pointer ctx, - ffi.Pointer buffer, - int length, - ); -typedef cups_raster_t = _cups_raster_s; -typedef cups_server_cert_cb_t = - ffi.Pointer>; -typedef cups_server_cert_cb_tFunction = - ffi.Int Function( - ffi.Pointer http, - ffi.Pointer tls, - ffi.Pointer certs, - ffi.Pointer user_data, - ); -typedef Dartcups_server_cert_cb_tFunction = - int Function( - ffi.Pointer http, - ffi.Pointer tls, - ffi.Pointer certs, - ffi.Pointer user_data, - ); - -final class cups_size_s extends ffi.Struct { - @ffi.Array.multi([128]) - external ffi.Array media; - - @ffi.Int() - external int width; - - @ffi.Int() - external int length; - - @ffi.Int() - external int bottom; - - @ffi.Int() - external int left; - - @ffi.Int() - external int right; - - @ffi.Int() - external int top; -} - -typedef cups_size_t = cups_size_s; - -const int curNumberPartsVersion = 1; - -const int currLeadingZ = 128; - -const int currNegSym = 32; - -const int currSymLead = 16; - -const int currTrailingZ = 64; - -const int currentCurLang = -4; - -const int currentDefLang = -5; - -const int cursorDev = 14; - -const int cutDev = 10; - -const int dInstErr = -26; - -const int dRemovErr = -25; - -typedef daddr_t = ffi.Int32; -typedef Dartdaddr_t = int; - -const int dataAlreadyClosed = -2045; - -const int dataAlreadyOpenForWrite = -2044; - -const int dataNoDataRef = -2047; - -const int dataNotOpenForRead = -2042; - -const int dataNotOpenForWrite = -2043; - -const int dataVerErr = -68; - -const int dateStdMask = 127; - -const int dateTimeInvalid = 34816; - -const int dateTimeNotFound = 33792; - -const int dayField = 3; - -const int dayLdingZ = 32; - -const int dayMask = 8; - -const int dayOfWeekField = 7; - -const int dayOfWeekMask = 128; - -const int dayOfYearField = 8; - -const int dayOfYearMask = 256; - -@Deprecated('Deprecated') -const int dblDagger = 224; - -const int dceExtErr = -30; - -const int dcmBadDataSizeErr = -7117; - -const int dcmBadDictionaryErr = -7102; - -const int dcmBadFeatureErr = -7124; - -const int dcmBadFieldInfoErr = -7111; - -const int dcmBadFieldTypeErr = -7112; - -const int dcmBadFindMethodErr = -7118; - -const int dcmBadKeyErr = -7115; - -const int dcmBadPropertyErr = -7119; - -const int dcmBlockFullErr = -7107; - -const int dcmBufferOverflowErr = -7127; - -const int dcmDictionaryBusyErr = -7105; - -const int dcmDictionaryNotOpenErr = -7104; - -const int dcmDupRecordErr = -7109; - -const int dcmIterationCompleteErr = -7126; - -const int dcmNecessaryFieldErr = -7110; - -const int dcmNoAccessMethodErr = -7122; - -const int dcmNoFieldErr = -7113; - -const int dcmNoRecordErr = -7108; - -const int dcmNotDictionaryErr = -7101; - -const int dcmParamErr = -7100; - -const int dcmPermissionErr = -7103; - -const int dcmProtectedErr = -7121; - -const int dcmTooManyKeyErr = -7116; - -const int ddpLenErr = -92; - -const int ddpSktErr = -91; - -const int deactivDev = 6; - -const int debuggingDuplicateOptionErr = -13882; - -const int debuggingDuplicateSignatureErr = -13881; - -const int debuggingExecutionContextErr = -13880; - -const int debuggingInvalidNameErr = -13885; - -const int debuggingInvalidOptionErr = -13884; - -const int debuggingInvalidSignatureErr = -13883; - -const int debuggingNoCallbackErr = -13886; - -const int debuggingNoMatchErr = -13887; - -final class decform extends ffi.Struct { - @ffi.Char() - external int style; - - @ffi.Char() - external int unused; - - @ffi.Short() - external int digits; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int style, - required int unused, - required int digits, - }) => $allocator() - ..ref.style = style - ..ref.unused = unused - ..ref.digits = digits; -} - -final class decimal extends ffi.Struct { - @ffi.Char() - external int sgn; - - @ffi.Char() - external int unused; - - @ffi.Short() - external int exp$1; - - external UnnamedStruct$4 sig; -} - -@Deprecated('Deprecated') -const int defaultComponentAnyFlags = 1; - -@Deprecated('Deprecated') -const int defaultComponentAnyFlagsAnyManufacturer = 3; - -@Deprecated('Deprecated') -const int defaultComponentAnyFlagsAnyManufacturerAnySubType = 7; - -@Deprecated('Deprecated') -const int defaultComponentAnyManufacturer = 2; - -@Deprecated('Deprecated') -const int defaultComponentAnySubType = 4; - -@Deprecated('Deprecated') -const int defaultComponentIdentical = 0; - -@Deprecated('Deprecated') -const int defaultPhysicalEntryCount = 8; - -@Deprecated('Deprecated') -const int delimPad = -2; - -const int descriptorFontTableTag = 1717859171; - -const int desktopDamagedErr = -1305; - -const int desktopIconResource = -3992; - -const int destPortErr = -906; - -typedef dev_t = __darwin_dev_t; - -const int developStage = 32; - -const int deviceCantMeetRequest = -9408; - -@Deprecated('Deprecated') -const int diaeresisUprE = 232; - -@Deprecated('Deprecated') -const int diaeresisUprI = 236; - -@Deprecated('Deprecated') -const int diaeresisUprY = 217; - -const int dialogNoTimeoutErr = -5640; - -const int diffVolErr = -1303; - -const int digiUnimpErr = -2201; - -const int dirFulErr = -33; - -const int dirNFErr = -120; - -const int directXObjectAlreadyExists = -8990; - -enum dispatch_autorelease_frequency_t { - DISPATCH_AUTORELEASE_FREQUENCY_INHERIT(0), - DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM(1), - DISPATCH_AUTORELEASE_FREQUENCY_NEVER(2); - - final int value; - const dispatch_autorelease_frequency_t(this.value); - - static dispatch_autorelease_frequency_t fromValue(int value) => - switch (value) { - 0 => DISPATCH_AUTORELEASE_FREQUENCY_INHERIT, - 1 => DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM, - 2 => DISPATCH_AUTORELEASE_FREQUENCY_NEVER, - _ => throw ArgumentError( - 'Unknown value for dispatch_autorelease_frequency_t: $value', - ), - }; -} - -sealed class dispatch_block_flags_t { - static const DISPATCH_BLOCK_BARRIER = 1; - static const DISPATCH_BLOCK_DETACHED = 2; - static const DISPATCH_BLOCK_ASSIGN_CURRENT = 4; - static const DISPATCH_BLOCK_NO_QOS_CLASS = 8; - static const DISPATCH_BLOCK_INHERIT_QOS_CLASS = 16; - static const DISPATCH_BLOCK_ENFORCE_QOS_CLASS = 32; -} - -typedef dispatch_block_t = ffi.Pointer; -typedef Dartdispatch_block_t = objc.ObjCBlock; -typedef dispatch_data_applier_t = ffi.Pointer; -typedef Dartdispatch_data_applier_t = - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >; - -final class dispatch_data_s extends ffi.Opaque {} - -typedef dispatch_data_t = ffi.Pointer; -typedef Dartdispatch_data_t = objc.NSObject; -typedef dispatch_fd_t = ffi.Int; -typedef Dartdispatch_fd_t = int; -typedef dispatch_function_t = - ffi.Pointer>; -typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); -typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); -typedef dispatch_group_t = ffi.Pointer; -typedef Dartdispatch_group_t = objc.NSObject; -typedef dispatch_io_close_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_io_close_flags_t = int; -typedef dispatch_io_handler_t = ffi.Pointer; -typedef Dartdispatch_io_handler_t = - objc.ObjCBlock; -typedef dispatch_io_interval_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_io_interval_flags_t = int; -typedef dispatch_io_t = ffi.Pointer; -typedef Dartdispatch_io_t = objc.NSObject; -typedef dispatch_io_type_t = ffi.UnsignedLong; -typedef Dartdispatch_io_type_t = int; -typedef dispatch_object_t = ffi.Pointer; -typedef Dartdispatch_object_t = objc.NSObject; -typedef dispatch_once_t = ffi.IntPtr; -typedef Dartdispatch_once_t = int; - -final class dispatch_queue_attr_s extends ffi.Opaque {} - -typedef dispatch_queue_attr_t = ffi.Pointer; -typedef Dartdispatch_queue_attr_t = objc.NSObject; -typedef dispatch_queue_concurrent_t = ffi.Pointer; -typedef Dartdispatch_queue_concurrent_t = objc.NSObject; -typedef dispatch_queue_global_t = ffi.Pointer; -typedef Dartdispatch_queue_global_t = objc.NSObject; -typedef dispatch_queue_main_t = ffi.Pointer; -typedef Dartdispatch_queue_main_t = objc.NSObject; -typedef dispatch_queue_priority_t = ffi.Long; -typedef Dartdispatch_queue_priority_t = int; - -final class dispatch_queue_s extends ffi.Opaque {} - -typedef dispatch_queue_serial_executor_t = ffi.Pointer; -typedef Dartdispatch_queue_serial_executor_t = objc.NSObject; -typedef dispatch_queue_serial_t = ffi.Pointer; -typedef Dartdispatch_queue_serial_t = objc.NSObject; -typedef dispatch_queue_t = ffi.Pointer; -typedef Dartdispatch_queue_t = objc.NSObject; -typedef dispatch_semaphore_t = ffi.Pointer; -typedef Dartdispatch_semaphore_t = objc.NSObject; -typedef dispatch_source_mach_recv_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_mach_recv_flags_t = int; -typedef dispatch_source_mach_send_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_mach_send_flags_t = int; -typedef dispatch_source_memorypressure_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_memorypressure_flags_t = int; -typedef dispatch_source_proc_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_proc_flags_t = int; -typedef dispatch_source_t = ffi.Pointer; -typedef Dartdispatch_source_t = objc.NSObject; -typedef dispatch_source_timer_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_timer_flags_t = int; - -final class dispatch_source_type_s extends ffi.Opaque {} - -typedef dispatch_source_type_t = ffi.Pointer; -typedef dispatch_source_vnode_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_vnode_flags_t = int; -typedef dispatch_time_t = ffi.Uint64; -typedef Dartdispatch_time_t = int; -typedef dispatch_workloop_t = ffi.Pointer; -typedef Dartdispatch_workloop_t = objc.NSObject; - -final class div_t extends ffi.Struct { - @ffi.Int() - external int quot; - - @ffi.Int() - external int rem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int quot, - required int rem, - }) => $allocator() - ..ref.quot = quot - ..ref.rem = rem; -} - -const int dmy = 1; - -@Deprecated('Deprecated') -const int dotlessLwrI = 245; - -@Deprecated('Deprecated') -const int doubleAcute = 253; - -typedef double_t = ffi.Double; -typedef Dartdouble_t = double; - -const int dragNotAcceptedErr = -1857; - -const int driverHardwareGoneErr = -503; - -const int dropFolderIconResource = -3979; - -@Deprecated('Deprecated') -const int drvQType = 3; - -const int ds32BitMode = 103; - -const int dsAddressErr = 2; - -const int dsBadLaunch = 26; - -const int dsBadLibrary = 1010; - -const int dsBadPatch = 99; - -const int dsBadPatchHeader = 83; - -const int dsBadSANEOpcode = 81; - -const int dsBadSlotInt = 51; - -const int dsBadStartupDisk = 42; - -const int dsBufPtrTooLow = 106; - -const int dsBusError = 1; - -const int dsCDEFNotFound = 88; - -const int dsCantHoldSystemHeap = 114; - -const int dsChkErr = 5; - -const int dsCoreErr = 12; - -const int dsDirtyDisk = 20004; - -const int dsDisassemblerInstalled = -11; - -const int dsExtensionsDisabled = -13; - -const int dsFPErr = 16; - -const int dsFSErr = 27; - -const int dsFinderErr = 41; - -const int dsForcedQuit = 20002; - -const int dsGibblyMovedToDisabledFolder = 117; - -const int dsGreeting = 40; - -const int dsHD20Installed = -12; - -const int dsHMenuFindErr = 86; - -const int dsIOCoreErr = 14; - -const int dsIllInstErr = 3; - -const int dsIrqErr = 13; - -const int dsLineAErr = 9; - -const int dsLineFErr = 10; - -const int dsLoadErr = 15; - -const int dsLostConnectionToNetworkDisk = 121; - -const int dsMBATAPISysError = 29203; - -const int dsMBATASysError = 29202; - -const int dsMBExternFlpySysError = 29204; - -const int dsMBFlpySysError = 29201; - -const int dsMBSysError = 29200; - -const int dsMBarNFnd = 85; - -const int dsMDEFNotFound = 89; - -const int dsMacOSROMVersionTooOld = 120; - -const int dsMacsBugInstalled = -10; - -const int dsMemFullErr = 25; - -const int dsMiscErr = 11; - -const int dsMixedModeFailure = 1011; - -const int dsMustUseFCBAccessors = 119; - -const int dsNeedToWriteBootBlocks = 104; - -const int dsNoExtsDisassembler = -2; - -const int dsNoExtsMacsBug = -1; - -const int dsNoFPU = 90; - -const int dsNoPackErr = 17; - -const int dsNoPatch = 98; - -const int dsNoPk1 = 18; - -const int dsNoPk2 = 19; - -const int dsNoPk3 = 20; - -const int dsNoPk4 = 21; - -const int dsNoPk5 = 22; - -const int dsNoPk6 = 23; - -const int dsNoPk7 = 24; - -const int dsNotEnoughRAMToBoot = 105; - -const int dsNotThe1 = 31; - -const int dsOldSystem = 102; - -const int dsOvflowErr = 6; - -const int dsPCCardATASysError = 29205; - -const int dsParityErr = 101; - -const int dsPrivErr = 7; - -const int dsRAMDiskTooBig = 122; - -const int dsReinsert = 30; - -const int dsRemoveDisk = 20003; - -const int dsSCSIWarn = 20010; - -const int dsShutDownOrRestart = 20000; - -const int dsShutDownOrResume = 20109; - -const int dsStknHeap = 28; - -const int dsSwitchOffOrRestart = 20001; - -const int dsSysErr = 32767; - -const int dsSystemFileErr = 43; - -const int dsSystemRequiresPowerPC = 116; - -const int dsTraceErr = 8; - -const int dsUnBootableSystem = 118; - -const int dsVMBadBackingStore = 113; - -const int dsVMDeferredFuncTableFull = 112; - -const int dsWDEFNotFound = 87; - -const int dsWriteToSupervisorStackGuardPage = 128; - -const int dsZeroDivErr = 4; - -const int dskFulErr = -34; - -@Deprecated('Deprecated') -const int dtQType = 7; - -@Deprecated('Deprecated') -const int dummyType = 0; - -const int dupFNErr = -48; - -const int duplicateAtomTypeAndIDErr = -2105; - -const int duplicateFlavorErr = -1853; - -const int duplicateFolderDescErr = -4271; - -const int duplicateHandlerErr = -1855; - -const int duplicatePasteboardFlavorErr = -25134; - -const int duplicateRoutingErr = -4274; - -const int duplicateScrapFlavorErr = -4989; - -@Deprecated('Deprecated') -const int durationDay = 86400000; - -@Deprecated('Deprecated') -const int durationForever = 2147483647; - -@Deprecated('Deprecated') -const int durationHour = 3600000; - -@Deprecated('Deprecated') -const int durationMicrosecond = -1; - -@Deprecated('Deprecated') -const int durationMillisecond = 1; - -@Deprecated('Deprecated') -const int durationMinute = 60000; - -@Deprecated('Deprecated') -const int durationNoWait = 0; - -@Deprecated('Deprecated') -const int durationSecond = 1000; - -final class dyld_kernel_image_info extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array uuid; - - external fsobj_id_t fsobjid; - - external fsid_t fsid$1; - - @ffi.Uint64() - external int load_addr; -} - -typedef dyld_kernel_image_info_array_t = ffi.Pointer; -typedef dyld_kernel_image_info_t = dyld_kernel_image_info; - -final class dyld_kernel_process_info extends ffi.Struct { - external dyld_kernel_image_info cache_image_info; - - @ffi.Uint64() - external int timestamp; - - @ffi.Uint32() - external int imageCount; - - @ffi.Uint32() - external int initialImageCount; - - @ffi.Uint8() - external int dyldState; - - @boolean_t() - external int no_cache; - - @boolean_t() - external int private_cache; -} - -typedef dyld_kernel_process_info_t = dyld_kernel_process_info; - -const int dym = 4; - -const int eADB = 1700881506; - -const int eAddressSpec = 1700881523; - -const int eAnalogAudio = 1701863797; - -const int eAppleTalk = 1701863796; - -const int eAudioLineIn = 1701011817; - -const int eAudioLineOut = 1701011820; - -const int eAudioOut = 1701011823; - -const int eBus = 1700951411; - -const int eCDROM = 1701012512; - -const int eCapsLockDown = 1264807019; - -const int eClearKey = 1802716928; - -const int eCommSlot = 1701012333; - -const int eCommandDown = 1264807268; - -const int eConduit = 1701015406; - -const int eControlDown = 1264809068; - -const int eDVD = 1701082724; - -const int eDeleteKey = 1802711808; - -const int eDeviceType = 1701082740; - -const int eDigitalAudio = 1701864545; - -const int eDisplay = 1701078131; - -const int eDownArrowKey = 1802730752; - -const int eEndKey = 1802729216; - -const int eEnterKey = 1802718208; - -const int eEscapeKey = 1802712320; - -const int eEthernet = 1701012846; - -const int eF10Key = 1802726656; - -const int eF11Key = 1802725120; - -const int eF12Key = 1802727168; - -const int eF13Key = 1802725632; - -const int eF14Key = 1802726144; - -const int eF15Key = 1802727680; - -const int eF1Key = 1802729984; - -const int eF2Key = 1802729472; - -const int eF3Key = 1802724096; - -const int eF4Key = 1802728960; - -const int eF5Key = 1802723328; - -const int eF6Key = 1802723584; - -const int eF7Key = 1802723840; - -const int eF8Key = 1802724352; - -const int eF9Key = 1802724608; - -const int eFireWire = 1701013111; - -const int eFloppy = 1701209120; - -const int eForwardDelKey = 1802728704; - -const int eHD = 1701340192; - -const int eHelpKey = 1802727936; - -const int eHomeKey = 1802728192; - -const int eIP = 1701865840; - -const int eIRTalk = 1701865844; - -const int eInfrared = 1701013874; - -const int eIrDA = 1701865842; - -const int eKeyKind = 1701540724; - -const int eKeyboard = 1701536356; - -const int eLCD = 1701080163; - -const int eLeftArrowKey = 1802730240; - -const int eLenErr = -92; - -const int eLocalTalk = 1701014644; - -const int eMacIP = 1701866857; - -const int eMacVideo = 1701866870; - -const int eMicrophone = 1701014889; - -const int eModem = 1701080429; - -const int eModemPort = 1701014896; - -const int eModemPrinterPort = 1701671024; - -const int eModifiers = 1699570803; - -const int eMonitorOut = 1701014894; - -const int eMouse = 1701670773; - -const int eMultiErr = -91; - -const int eNuBus = 1701737826; - -const int eNuBusCard = 1701080674; - -const int eOptionDown = 1265594484; - -const int ePCIbus = 1701015657; - -const int ePCIcard = 1701081193; - -const int ePCcard = 1701015651; - -const int ePDScard = 1701864563; - -const int ePDSslot = 1701015652; - -const int ePPP = 1701867632; - -const int ePageDownKey = 1802729728; - -const int ePageUpKey = 1802728448; - -const int ePointingDevice = 1701081188; - -const int ePostScript = 1701867635; - -const int ePrinter = 1701081202; - -const int ePrinterPort = 1701015664; - -const int eProtocol = 1701868143; - -const int eReturnKey = 1802707968; - -const int eRightArrowKey = 1802730496; - -const int eSCSI = 1701016419; - -const int eSVGA = 1701868391; - -const int eScheme = 1702060904; - -const int eSerial = 1701868402; - -const int eShiftDown = 1265854068; - -const int eSpeakers = 1701081968; - -const int eStorageDevice = 1701081972; - -const int eSvideo = 1701868406; - -const int eTabKey = 1802711040; - -const int eTokenRing = 1702129515; - -const int eTrackball = 1702130283; - -const int eTrackpad = 1701082224; - -const int eUSB = 1701016947; - -const int eUpArrowKey = 1802731008; - -const int eVideoIn = 1701017193; - -const int eVideoMonitor = 1701082733; - -const int eVideoOut = 1701017199; - -const int editingNotAllowed = -9995; - -const int editionMgrInitErr = -450; - -const int emptyPathErr = -2111; - -typedef emulation_vector_t = ffi.Pointer; - -const int endOfDataReached = -2046; - -const int enumArrows = 1634890351; - -const int enumJustification = 1786082164; - -const int enumKeyForm = 1801876077; - -const int enumPosition = 1886352233; - -const int enumProtection = 1886549102; - -const int enumQuality = 1903518060; - -const int enumSaveOptions = 1935767151; - -const int enumStyle = 1937013100; - -const int enumTransferMode = 1953653102; - -const int envBadVers = -5501; - -const int envNotPresent = -5500; - -const int envVersTooBig = -5502; - -const int eofErr = -39; - -const int eraField = 0; - -const int eraMask = 1; - -const int errAEAccessorNotFound = -1723; - -const int errAEBadKeyForm = -10002; - -const int errAEBadListItem = -1705; - -const int errAEBadTestKey = -1726; - -const int errAEBufferTooSmall = -1741; - -const int errAEBuildSyntaxError = -1740; - -const int errAECantHandleClass = -10010; - -const int errAECantPutThatThere = -10024; - -const int errAECantSupplyType = -10009; - -const int errAECantUndo = -10015; - -const int errAECoercionFail = -1700; - -const int errAECorruptData = -1702; - -const int errAEDescIsNull = -1739; - -const int errAEDescNotFound = -1701; - -const int errAEDuplicateHandler = -1736; - -const int errAEEmptyListContainer = -1730; - -const int errAEEventFailed = -10000; - -const int errAEEventFiltered = -1735; - -const int errAEEventNotHandled = -1708; - -const int errAEEventNotPermitted = -1743; - -const int errAEEventWouldRequireUserConsent = -1744; - -const int errAEHandlerNotFound = -1717; - -const int errAEIllegalIndex = -1719; - -const int errAEImpossibleRange = -1720; - -const int errAEInTransaction = -10011; - -const int errAEIndexTooLarge = -10007; - -const int errAELocalOnly = -10016; - -const int errAENegativeCount = -1729; - -const int errAENewerVersion = -1706; - -const int errAENoSuchLogical = -1725; - -const int errAENoSuchObject = -1728; - -const int errAENoSuchTransaction = -10012; - -const int errAENoUserInteraction = -1713; - -const int errAENoUserSelection = -10013; - -const int errAENotAEDesc = -1704; - -const int errAENotASingleObject = -10014; - -const int errAENotASpecialFunction = -1714; - -const int errAENotAnElement = -10008; - -const int errAENotAnEnumMember = -10023; - -const int errAENotAnObjSpec = -1727; - -const int errAENotAppleEvent = -1707; - -const int errAENotModifiable = -10003; - -const int errAEParamMissed = -1715; - -const int errAEPrivilegeError = -10004; - -const int errAEPropertiesClash = -10025; - -const int errAEReadDenied = -10005; - -const int errAEReceiveEscapeCurrent = -1734; - -const int errAEReceiveTerminate = -1733; - -const int errAERecordingIsAlreadyOn = -1732; - -const int errAEReplyNotArrived = -1718; - -const int errAEReplyNotValid = -1709; - -const int errAEStreamAlreadyConverted = -1738; - -const int errAEStreamBadNesting = -1737; - -const int errAETargetAddressNotPermitted = -1742; - -const int errAETimeout = -1712; - -const int errAETypeError = -10001; - -const int errAEUnknownAddressType = -1716; - -const int errAEUnknownObjectType = -1731; - -const int errAEUnknownSendMode = -1710; - -const int errAEWaitCanceled = -1711; - -const int errAEWriteDenied = -10006; - -const int errAEWrongDataType = -1703; - -const int errAEWrongNumberArgs = -1721; - -const int errASCantCompareMoreThan32k = -2721; - -const int errASCantConsiderAndIgnore = -2720; - -const int errASIllegalFormalParameter = -2761; - -const int errASInconsistentNames = -2780; - -const int errASNoResultReturned = -2763; - -const int errASParameterNotForEvent = -2762; - -const int errASTerminologyNestingTooDeep = -2760; - -const int errAborted = -1279; - -const int errAlreadyInImagingMode = -5243; - -const int errAttention = -1276; - -const int errAuthorizationBadAddress = -60033; - -const int errAuthorizationCanceled = -60006; - -const int errAuthorizationDenied = -60005; - -const int errAuthorizationExternalizeNotAllowed = -60009; - -const int errAuthorizationInteractionNotAllowed = -60007; - -const int errAuthorizationInternal = -60008; - -const int errAuthorizationInternalizeNotAllowed = -60010; - -const int errAuthorizationInvalidFlags = -60011; - -const int errAuthorizationInvalidPointer = -60004; - -const int errAuthorizationInvalidRef = -60002; - -const int errAuthorizationInvalidSet = -60001; - -const int errAuthorizationInvalidTag = -60003; - -const int errAuthorizationSuccess = 0; - -const int errAuthorizationToolEnvironmentError = -60032; - -const int errAuthorizationToolExecuteFailure = -60031; - -const int errCannotUndo = -5253; - -const int errCantEmbedIntoSelf = -30594; - -const int errCantEmbedRoot = -30595; - -const int errControlDoesntSupportFocus = -30582; - -const int errControlHiddenOrDisabled = -30592; - -const int errControlIsNotEmbedder = -30590; - -const int errControlsAlreadyExist = -30589; - -const int errCoreEndianDataDoesNotMatchFormat = -4942; - -const int errCoreEndianDataTooLongForFormat = -4941; - -const int errCoreEndianDataTooShortForFormat = -4940; - -const int errCorruptWindowDescription = -5606; - -const int errCouldntSetFocus = -30585; - -const int errCppGeneral = -32000; - -const int errCppLastSystemDefinedError = -32020; - -const int errCppLastUserDefinedError = -32049; - -const int errCppbad_alloc = -32001; - -const int errCppbad_cast = -32002; - -const int errCppbad_exception = -32003; - -const int errCppbad_typeid = -32004; - -const int errCppdomain_error = -32006; - -const int errCppinvalid_argument = -32007; - -const int errCppios_base_failure = -32014; - -const int errCpplength_error = -32008; - -const int errCpplogic_error = -32005; - -const int errCppout_of_range = -32009; - -const int errCppoverflow_error = -32011; - -const int errCpprange_error = -32012; - -const int errCppruntime_error = -32010; - -const int errCppunderflow_error = -32013; - -const int errDSPQueueSize = -1274; - -const int errDataNotSupported = -30581; - -const int errDataSizeMismatch = -30591; - -const int errEmptyScrap = -5249; - -const int errEndOfBody = -1813; - -const int errEndOfDocument = -1812; - -const int errEngineNotFound = -5244; - -const int errFSAttributeNotFound = -1427; - -const int errFSBadAllocFlags = -1413; - -const int errFSBadBuffer = -1403; - -const int errFSBadFSRef = -1401; - -const int errFSBadForkName = -1402; - -const int errFSBadForkRef = -1404; - -const int errFSBadInfoBitmap = -1405; - -const int errFSBadItemCount = -1418; - -const int errFSBadIteratorFlags = -1422; - -const int errFSBadPosMode = -1412; - -const int errFSBadSearchParams = -1419; - -const int errFSForkExists = -1421; - -const int errFSForkNotFound = -1409; - -const int errFSIteratorNotFound = -1423; - -const int errFSIteratorNotSupported = -1424; - -const int errFSMissingCatInfo = -1406; - -const int errFSMissingName = -1411; - -const int errFSNameTooLong = -1410; - -const int errFSNoMoreItems = -1417; - -const int errFSNotAFolder = -1407; - -const int errFSNotEnoughSpaceForOperation = -1429; - -const int errFSOperationNotSupported = -1426; - -const int errFSPropertyNotValid = -1428; - -const int errFSQuotaExceeded = -1425; - -const int errFSRefsDifferent = -1420; - -const int errFSUnknownCall = -1400; - -const int errFloatingWindowsNotInitialized = -5609; - -const int errFwdReset = -1275; - -const int errIAAllocationErr = -5381; - -const int errIABufferTooSmall = -5384; - -const int errIACanceled = -5385; - -const int errIAEndOfTextRun = -5388; - -const int errIAInvalidDocument = -5386; - -const int errIANoErr = 0; - -const int errIANoMoreItems = -5383; - -const int errIAParamErr = -5382; - -const int errIATextExtractionErr = -5387; - -const int errIAUnknownErr = -5380; - -const int errInvalidPartCode = -30588; - -const int errInvalidRange = -5246; - -const int errInvalidWindowProperty = -5603; - -const int errInvalidWindowPtr = -5600; - -const int errInvalidWindowRef = -5600; - -const int errItemNotControl = -30596; - -const int errIteratorReachedEnd = -5245; - -const int errKCAuthFailed = -25293; - -const int errKCBufferTooSmall = -25301; - -const int errKCCreateChainFailed = -25318; - -const int errKCDataNotAvailable = -25316; - -const int errKCDataNotModifiable = -25317; - -const int errKCDataTooLarge = -25302; - -const int errKCDuplicateCallback = -25297; - -const int errKCDuplicateItem = -25299; - -const int errKCDuplicateKeychain = -25296; - -const int errKCInteractionNotAllowed = -25308; - -const int errKCInteractionRequired = -25315; - -const int errKCInvalidCallback = -25298; - -const int errKCInvalidItemRef = -25304; - -const int errKCInvalidKeychain = -25295; - -const int errKCInvalidSearchRef = -25305; - -const int errKCItemNotFound = -25300; - -const int errKCKeySizeNotAllowed = -25311; - -const int errKCNoCertificateModule = -25313; - -const int errKCNoDefaultKeychain = -25307; - -const int errKCNoPolicyModule = -25314; - -const int errKCNoStorageModule = -25312; - -const int errKCNoSuchAttr = -25303; - -const int errKCNoSuchClass = -25306; - -const int errKCNoSuchKeychain = -25294; - -const int errKCNotAvailable = -25291; - -const int errKCReadOnly = -25292; - -const int errKCReadOnlyAttr = -25309; - -const int errKCWrongKCVersion = -25310; - -const int errMarginWilllNotFit = -5241; - -const int errMessageNotSupported = -30580; - -const int errNoHiliteText = -5248; - -const int errNoRootControl = -30586; - -const int errNonContiuousAttribute = -5252; - -const int errNotInImagingMode = -5242; - -const int errOSAAppNotHighLevelEventAware = -2704; - -const int errOSABadSelector = -1754; - -const int errOSABadStorageType = -1752; - -const int errOSACantAccess = -1728; - -const int errOSACantAssign = -10006; - -const int errOSACantCoerce = -1700; - -const int errOSACantCreate = -2710; - -const int errOSACantGetTerminology = -2709; - -const int errOSACantLaunch = -2703; - -const int errOSACantOpenComponent = -1762; - -const int errOSACantStorePointers = -1763; - -const int errOSAComponentMismatch = -1761; - -const int errOSACorruptData = -1702; - -const int errOSACorruptTerminology = -2705; - -const int errOSADataBlockTooLarge = -2708; - -const int errOSADataFormatObsolete = -1758; - -const int errOSADataFormatTooNew = -1759; - -const int errOSADivideByZero = -2701; - -const int errOSAGeneralError = -2700; - -const int errOSAInternalTableOverflow = -2707; - -const int errOSAInvalidID = -1751; - -const int errOSANoSuchDialect = -1757; - -const int errOSANumericOverflow = -2702; - -const int errOSARecordingIsAlreadyOn = -1732; - -const int errOSAScriptError = -1753; - -const int errOSASourceNotAvailable = -1756; - -const int errOSAStackOverflow = -2706; - -const int errOSASystemError = -1750; - -const int errOSATypeError = -1703; - -const int errOffsetInvalid = -1800; - -const int errOffsetIsOutsideOfView = -1801; - -const int errOffsetNotOnElementBounday = -5247; - -const int errOpenDenied = -1273; - -const int errOpening = -1277; - -const int errReadOnlyText = -5250; - -const int errRefNum = -1280; - -const int errRootAlreadyExists = -30587; - -const int errSSLATSCertificateHashAlgorithmViolation = -9885; - -const int errSSLATSCertificateTrustViolation = -9886; - -const int errSSLATSCiphersuiteViolation = -9882; - -const int errSSLATSLeafCertificateHashAlgorithmViolation = -9884; - -const int errSSLATSMinimumKeySizeViolation = -9883; - -const int errSSLATSMinimumVersionViolation = -9881; - -const int errSSLATSViolation = -9880; - -const int errSSLBadCert = -9808; - -const int errSSLBadCertificateStatusResponse = -9862; - -const int errSSLBadCipherSuite = -9818; - -const int errSSLBadConfiguration = -9848; - -const int errSSLBadRecordMac = -9846; - -const int errSSLBufferOverflow = -9817; - -const int errSSLCertExpired = -9814; - -const int errSSLCertNotYetValid = -9815; - -const int errSSLCertificateRequired = -9863; - -const int errSSLClientCertRequested = -9842; - -const int errSSLClientHelloReceived = -9851; - -const int errSSLClosedAbort = -9806; - -const int errSSLClosedGraceful = -9805; - -const int errSSLClosedNoNotify = -9816; - -const int errSSLConfigurationFailed = -9854; - -const int errSSLConnectionRefused = -9844; - -const int errSSLCrypto = -9809; - -const int errSSLDecodeError = -9859; - -const int errSSLDecompressFail = -9857; - -const int errSSLDecryptionFail = -9845; - -const int errSSLEarlyDataRejected = -9890; - -const int errSSLFatalAlert = -9802; - -const int errSSLHandshakeFail = -9858; - -const int errSSLHostNameMismatch = -9843; - -const int errSSLIllegalParam = -9830; - -const int errSSLInappropriateFallback = -9860; - -const int errSSLInternal = -9810; - -const int errSSLMissingExtension = -9861; - -const int errSSLModuleAttach = -9811; - -const int errSSLNegotiation = -9801; - -const int errSSLNetworkTimeout = -9853; - -const int errSSLNoRootCert = -9813; - -const int errSSLPeerAccessDenied = -9832; - -const int errSSLPeerAuthCompleted = -9841; - -const int errSSLPeerBadCert = -9825; - -const int errSSLPeerBadRecordMac = -9820; - -const int errSSLPeerCertExpired = -9828; - -const int errSSLPeerCertRevoked = -9827; - -const int errSSLPeerCertUnknown = -9829; - -const int errSSLPeerDecodeError = -9833; - -const int errSSLPeerDecompressFail = -9823; - -const int errSSLPeerDecryptError = -9834; - -const int errSSLPeerDecryptionFail = -9821; - -const int errSSLPeerExportRestriction = -9835; - -const int errSSLPeerHandshakeFail = -9824; - -const int errSSLPeerInsufficientSecurity = -9837; - -const int errSSLPeerInternalError = -9838; - -const int errSSLPeerNoRenegotiation = -9840; - -const int errSSLPeerProtocolVersion = -9836; - -const int errSSLPeerRecordOverflow = -9822; - -const int errSSLPeerUnexpectedMsg = -9819; - -const int errSSLPeerUnknownCA = -9831; - -const int errSSLPeerUnsupportedCert = -9826; - -const int errSSLPeerUserCancelled = -9839; - -const int errSSLProtocol = -9800; - -const int errSSLRecordOverflow = -9847; - -const int errSSLSessionNotFound = -9804; - -const int errSSLTransportReset = -9852; - -const int errSSLUnexpectedMessage = -9856; - -const int errSSLUnexpectedRecord = -9849; - -const int errSSLUnknownPSKIdentity = -9864; - -const int errSSLUnknownRootCert = -9812; - -const int errSSLUnrecognizedName = -9865; - -const int errSSLUnsupportedExtension = -9855; - -const int errSSLWeakPeerEphemeralDHKey = -9850; - -const int errSSLWouldBlock = -9803; - -const int errSSLXCertChainInvalid = -9807; - -const int errSecACLAddFailed = -67698; - -const int errSecACLChangeFailed = -67699; - -const int errSecACLDeleteFailed = -67696; - -const int errSecACLNotSimple = -25240; - -const int errSecACLReplaceFailed = -67697; - -const int errSecAddinLoadFailed = -67711; - -const int errSecAddinUnloadFailed = -67714; - -const int errSecAlgorithmMismatch = -67730; - -const int errSecAllocate = -108; - -const int errSecAlreadyLoggedIn = -67814; - -const int errSecAppleAddAppACLSubject = -67589; - -const int errSecAppleInvalidKeyEndDate = -67593; - -const int errSecAppleInvalidKeyStartDate = -67592; - -const int errSecApplePublicKeyIncomplete = -67590; - -const int errSecAppleSSLv2Rollback = -67595; - -const int errSecAppleSignatureMismatch = -67591; - -const int errSecAttachHandleBusy = -67728; - -const int errSecAttributeNotInContext = -67720; - -const int errSecAuthFailed = -25293; - -const int errSecBadReq = -909; - -const int errSecBlockSizeMismatch = -67810; - -const int errSecBufferTooSmall = -25301; - -const int errSecCRLAlreadySigned = -67684; - -const int errSecCRLBadURI = -67617; - -const int errSecCRLExpired = -67613; - -const int errSecCRLNotFound = -67615; - -const int errSecCRLNotTrusted = -67620; - -const int errSecCRLNotValidYet = -67614; - -const int errSecCRLPolicyFailed = -67621; - -const int errSecCRLServerDown = -67616; - -const int errSecCSAmbiguousBundleFormat = -67011; - -const int errSecCSBadBundleFormat = -67028; - -const int errSecCSBadCallbackValue = -67020; - -const int errSecCSBadDictionaryFormat = -67058; - -const int errSecCSBadDiskImageFormat = -67001; - -const int errSecCSBadFrameworkVersion = -67009; - -const int errSecCSBadLVArch = -67017; - -const int errSecCSBadMainExecutable = -67010; - -const int errSecCSBadNestedCode = -67021; - -const int errSecCSBadObjectFormat = -67049; - -const int errSecCSBadResource = -67054; - -const int errSecCSBadTeamIdentifier = -66997; - -const int errSecCSCMSConstructionFailed = -66991; - -const int errSecCSCMSTooLarge = -67036; - -const int errSecCSCancelled = -67006; - -const int errSecCSDBAccess = -67032; - -const int errSecCSDBDenied = -67033; - -const int errSecCSDSStoreSymlink = -67012; - -const int errSecCSDbCorrupt = -67024; - -const int errSecCSFileHardQuarantined = -67026; - -const int errSecCSGuestInvalid = -67063; - -const int errSecCSHelperFailed = -67019; - -const int errSecCSHostProtocolContradiction = -67043; - -const int errSecCSHostProtocolDedicationError = -67042; - -const int errSecCSHostProtocolInvalidAttribute = -67031; - -const int errSecCSHostProtocolInvalidHash = -67035; - -const int errSecCSHostProtocolNotProxy = -67041; - -const int errSecCSHostProtocolRelativePath = -67044; - -const int errSecCSHostProtocolStateError = -67040; - -const int errSecCSHostProtocolUnrelated = -67039; - -const int errSecCSHostReject = -67047; - -const int errSecCSInfoPlistFailed = -67030; - -const int errSecCSInternalError = -67048; - -const int errSecCSInvalidAssociatedFileData = -66999; - -const int errSecCSInvalidAttributeValues = -67066; - -const int errSecCSInvalidEntitlements = -66994; - -const int errSecCSInvalidFlags = -67070; - -const int errSecCSInvalidObjectRef = -67071; - -const int errSecCSInvalidPlatform = -67005; - -const int errSecCSInvalidRuntimeVersion = -66993; - -const int errSecCSInvalidSymlink = -67003; - -const int errSecCSInvalidTeamIdentifier = -66998; - -const int errSecCSMultipleGuests = -67064; - -const int errSecCSNoMainExecutable = -67029; - -const int errSecCSNoMatches = -67027; - -const int errSecCSNoSuchCode = -67065; - -const int errSecCSNotAHost = -67046; - -const int errSecCSNotAppLike = -67002; - -const int errSecCSNotSupported = -67037; - -const int errSecCSObjectRequired = -67069; - -const int errSecCSOutdated = -67025; - -const int errSecCSRegularFile = -67015; - -const int errSecCSRemoteSignerFailed = -66990; - -const int errSecCSReqFailed = -67050; - -const int errSecCSReqInvalid = -67052; - -const int errSecCSReqUnsupported = -67051; - -const int errSecCSResourceDirectoryFailed = -67023; - -const int errSecCSResourceNotSupported = -67016; - -const int errSecCSResourceRulesInvalid = -67053; - -const int errSecCSResourcesInvalid = -67055; - -const int errSecCSResourcesNotFound = -67056; - -const int errSecCSResourcesNotSealed = -67057; - -const int errSecCSRevokedNotarization = -66992; - -const int errSecCSSigDBAccess = -67032; - -const int errSecCSSigDBDenied = -67033; - -const int errSecCSSignatureFailed = -67061; - -const int errSecCSSignatureInvalid = -67045; - -const int errSecCSSignatureNotVerifiable = -67060; - -const int errSecCSSignatureUnsupported = -67059; - -const int errSecCSSignatureUntrusted = -66996; - -const int errSecCSStaticCodeChanged = -67034; - -const int errSecCSStaticCodeNotFound = -67068; - -const int errSecCSTooBig = -67004; - -const int errSecCSUnimplemented = -67072; - -const int errSecCSUnsealedAppRoot = -67014; - -const int errSecCSUnsealedFrameworkRoot = -67008; - -const int errSecCSUnsigned = -67062; - -const int errSecCSUnsignedNestedCode = -67022; - -const int errSecCSUnsupportedDigestAlgorithm = -67000; - -const int errSecCSUnsupportedGuestAttributes = -67067; - -const int errSecCSVetoed = -67018; - -const int errSecCSWeakResourceEnvelope = -67007; - -const int errSecCSWeakResourceRules = -67013; - -const int errSecCallbackFailed = -67695; - -const int errSecCertificateCannotOperate = -67817; - -const int errSecCertificateDuplicateExtension = -67903; - -const int errSecCertificateExpired = -67818; - -const int errSecCertificateIsCA = -67902; - -const int errSecCertificateNameNotAllowed = -67900; - -const int errSecCertificateNotValidYet = -67819; - -const int errSecCertificatePolicyNotAllowed = -67899; - -const int errSecCertificateRevoked = -67820; - -const int errSecCertificateSuspended = -67821; - -const int errSecCertificateValidityPeriodTooLong = -67901; - -const int errSecCodeSigningBadCertChainLength = -67647; - -const int errSecCodeSigningBadPathLengthConstraint = -67649; - -const int errSecCodeSigningDevelopment = -67651; - -const int errSecCodeSigningNoBasicConstraints = -67648; - -const int errSecCodeSigningNoExtendedKeyUsage = -67650; - -const int errSecConversionError = -67594; - -const int errSecCoreFoundationUnknown = -4960; - -const int errSecCreateChainFailed = -25318; - -const int errSecDataNotAvailable = -25316; - -const int errSecDataNotModifiable = -25317; - -const int errSecDataTooLarge = -25302; - -const int errSecDatabaseLocked = -67869; - -const int errSecDatastoreIsOpen = -67870; - -const int errSecDecode = -26275; - -const int errSecDeviceError = -67727; - -const int errSecDeviceFailed = -67588; - -const int errSecDeviceReset = -67587; - -const int errSecDeviceVerifyFailed = -67812; - -const int errSecDiskFull = -34; - -@Deprecated('use errSecDiskFull') -const int errSecDskFull = -34; - -const int errSecDuplicateCallback = -25297; - -const int errSecDuplicateItem = -25299; - -const int errSecDuplicateKeychain = -25296; - -const int errSecEMMLoadFailed = -67709; - -const int errSecEMMUnloadFailed = -67710; - -const int errSecEndOfData = -67634; - -const int errSecEventNotificationCallbackNotFound = -67723; - -const int errSecExtendedKeyUsageNotCritical = -67881; - -const int errSecFieldSpecifiedMultiple = -67866; - -const int errSecFileTooBig = -67597; - -const int errSecFunctionFailed = -67677; - -const int errSecFunctionIntegrityFail = -67670; - -const int errSecHostNameMismatch = -67602; - -const int errSecIDPFailure = -67622; - -const int errSecIO = -36; - -const int errSecInDarkWake = -25320; - -const int errSecIncompatibleDatabaseBlob = -67600; - -const int errSecIncompatibleFieldFormat = -67867; - -const int errSecIncompatibleKeyBlob = -67601; - -const int errSecIncompatibleVersion = -67704; - -const int errSecIncompleteCertRevocationCheck = -67635; - -const int errSecInputLengthError = -67724; - -const int errSecInsufficientClientID = -67586; - -const int errSecInsufficientCredentials = -67822; - -const int errSecInteractionNotAllowed = -25308; - -const int errSecInteractionRequired = -25315; - -const int errSecInternalComponent = -2070; - -const int errSecInternalError = -67671; - -@Deprecated('Deprecated') -const int errSecInvaldCRLAuthority = -67827; - -const int errSecInvalidACL = -67702; - -const int errSecInvalidAccessCredentials = -67700; - -const int errSecInvalidAccessRequest = -67876; - -const int errSecInvalidAction = -67823; - -const int errSecInvalidAddinFunctionTable = -67716; - -const int errSecInvalidAlgorithm = -67747; - -const int errSecInvalidAlgorithmParms = -67770; - -const int errSecInvalidAttributeAccessCredentials = -67796; - -const int errSecInvalidAttributeBase = -67788; - -const int errSecInvalidAttributeBlockSize = -67764; - -const int errSecInvalidAttributeDLDBHandle = -67794; - -const int errSecInvalidAttributeEffectiveBits = -67778; - -const int errSecInvalidAttributeEndDate = -67782; - -const int errSecInvalidAttributeInitVector = -67750; - -const int errSecInvalidAttributeIterationCount = -67792; - -const int errSecInvalidAttributeKey = -67748; - -const int errSecInvalidAttributeKeyLength = -67762; - -const int errSecInvalidAttributeKeyType = -67774; - -const int errSecInvalidAttributeLabel = -67772; - -const int errSecInvalidAttributeMode = -67776; - -const int errSecInvalidAttributeOutputSize = -67766; - -const int errSecInvalidAttributePadding = -67754; - -const int errSecInvalidAttributePassphrase = -67760; - -const int errSecInvalidAttributePrime = -67786; - -const int errSecInvalidAttributePrivateKeyFormat = -67800; - -const int errSecInvalidAttributePublicKeyFormat = -67798; - -const int errSecInvalidAttributeRandom = -67756; - -const int errSecInvalidAttributeRounds = -67768; - -const int errSecInvalidAttributeSalt = -67752; - -const int errSecInvalidAttributeSeed = -67758; - -const int errSecInvalidAttributeStartDate = -67780; - -const int errSecInvalidAttributeSubprime = -67790; - -const int errSecInvalidAttributeSymmetricKeyFormat = -67802; - -const int errSecInvalidAttributeVersion = -67784; - -const int errSecInvalidAttributeWrappedKeyFormat = -67804; - -const int errSecInvalidAuthority = -67824; - -const int errSecInvalidAuthorityKeyID = -67606; - -const int errSecInvalidBaseACLs = -67851; - -const int errSecInvalidBundleInfo = -67857; - -const int errSecInvalidCRL = -67830; - -const int errSecInvalidCRLAuthority = -67827; - -const int errSecInvalidCRLEncoding = -67828; - -const int errSecInvalidCRLGroup = -67816; - -const int errSecInvalidCRLIndex = -67858; - -const int errSecInvalidCRLType = -67829; - -const int errSecInvalidCallback = -25298; - -const int errSecInvalidCertAuthority = -67826; - -const int errSecInvalidCertificateGroup = -67691; - -const int errSecInvalidCertificateRef = -67690; - -const int errSecInvalidContext = -67746; - -const int errSecInvalidDBList = -67681; - -const int errSecInvalidDBLocation = -67875; - -const int errSecInvalidData = -67673; - -const int errSecInvalidDatabaseBlob = -67598; - -const int errSecInvalidDigestAlgorithm = -67815; - -const int errSecInvalidEncoding = -67853; - -const int errSecInvalidExtendedKeyUsage = -67609; - -const int errSecInvalidFormType = -67831; - -const int errSecInvalidGUID = -67679; - -const int errSecInvalidHandle = -67680; - -const int errSecInvalidHandleUsage = -67668; - -const int errSecInvalidID = -67832; - -const int errSecInvalidIDLinkage = -67610; - -const int errSecInvalidIdentifier = -67833; - -const int errSecInvalidIndex = -67834; - -const int errSecInvalidIndexInfo = -67877; - -const int errSecInvalidInputVector = -67744; - -const int errSecInvalidItemRef = -25304; - -const int errSecInvalidKeyAttributeMask = -67738; - -const int errSecInvalidKeyBlob = -67599; - -const int errSecInvalidKeyFormat = -67742; - -const int errSecInvalidKeyHierarchy = -67713; - -const int errSecInvalidKeyLabel = -67740; - -const int errSecInvalidKeyRef = -67712; - -const int errSecInvalidKeyUsageForPolicy = -67608; - -const int errSecInvalidKeyUsageMask = -67736; - -const int errSecInvalidKeychain = -25295; - -const int errSecInvalidLoginName = -67813; - -const int errSecInvalidModifyMode = -67879; - -const int errSecInvalidName = -67689; - -const int errSecInvalidNetworkAddress = -67683; - -const int errSecInvalidNewOwner = -67878; - -const int errSecInvalidNumberOfFields = -67685; - -const int errSecInvalidOutputVector = -67745; - -const int errSecInvalidOwnerEdit = -25244; - -const int errSecInvalidPVC = -67708; - -const int errSecInvalidParsingModule = -67868; - -const int errSecInvalidPassthroughID = -67682; - -const int errSecInvalidPasswordRef = -25261; - -const int errSecInvalidPointer = -67675; - -const int errSecInvalidPolicyIdentifiers = -67835; - -const int errSecInvalidPrefsDomain = -25319; - -const int errSecInvalidQuery = -67693; - -const int errSecInvalidReason = -67837; - -const int errSecInvalidRecord = -67701; - -const int errSecInvalidRequestInputs = -67838; - -const int errSecInvalidRequestor = -67855; - -const int errSecInvalidResponseVector = -67839; - -const int errSecInvalidRoot = -67612; - -const int errSecInvalidSampleValue = -67703; - -const int errSecInvalidScope = -67706; - -const int errSecInvalidSearchRef = -25305; - -const int errSecInvalidServiceMask = -67717; - -const int errSecInvalidSignature = -67688; - -const int errSecInvalidStopOnPolicy = -67840; - -const int errSecInvalidSubServiceID = -67719; - -const int errSecInvalidSubjectKeyID = -67607; - -const int errSecInvalidSubjectName = -67655; - -const int errSecInvalidTimeString = -67836; - -const int errSecInvalidTrustSetting = -25242; - -const int errSecInvalidTrustSettings = -25262; - -const int errSecInvalidTuple = -67841; - -@Deprecated('Deprecated') -const int errSecInvalidTupleCredendtials = -67852; - -const int errSecInvalidTupleCredentials = -67852; - -const int errSecInvalidTupleGroup = -67850; - -const int errSecInvalidValidityPeriod = -67854; - -const int errSecInvalidValue = -67694; - -const int errSecItemNotFound = -25300; - -const int errSecKeyBlobTypeIncorrect = -67732; - -const int errSecKeyHeaderInconsistent = -67733; - -const int errSecKeyIsSensitive = -25258; - -const int errSecKeySizeNotAllowed = -25311; - -const int errSecKeyUsageIncorrect = -67731; - -const int errSecLibraryReferenceNotFound = -67715; - -const int errSecMDSError = -67674; - -const int errSecMemoryError = -67672; - -const int errSecMissingAlgorithmParms = -67771; - -const int errSecMissingAttributeAccessCredentials = -67797; - -const int errSecMissingAttributeBase = -67789; - -const int errSecMissingAttributeBlockSize = -67765; - -const int errSecMissingAttributeDLDBHandle = -67795; - -const int errSecMissingAttributeEffectiveBits = -67779; - -const int errSecMissingAttributeEndDate = -67783; - -const int errSecMissingAttributeInitVector = -67751; - -const int errSecMissingAttributeIterationCount = -67793; - -const int errSecMissingAttributeKey = -67749; - -const int errSecMissingAttributeKeyLength = -67763; - -const int errSecMissingAttributeKeyType = -67775; - -const int errSecMissingAttributeLabel = -67773; - -const int errSecMissingAttributeMode = -67777; - -const int errSecMissingAttributeOutputSize = -67767; - -const int errSecMissingAttributePadding = -67755; - -const int errSecMissingAttributePassphrase = -67761; - -const int errSecMissingAttributePrime = -67787; - -const int errSecMissingAttributePrivateKeyFormat = -67801; - -const int errSecMissingAttributePublicKeyFormat = -67799; - -const int errSecMissingAttributeRandom = -67757; - -const int errSecMissingAttributeRounds = -67769; - -const int errSecMissingAttributeSalt = -67753; - -const int errSecMissingAttributeSeed = -67759; - -const int errSecMissingAttributeStartDate = -67781; - -const int errSecMissingAttributeSubprime = -67791; - -const int errSecMissingAttributeSymmetricKeyFormat = -67803; - -const int errSecMissingAttributeVersion = -67785; - -const int errSecMissingAttributeWrappedKeyFormat = -67805; - -const int errSecMissingEntitlement = -34018; - -const int errSecMissingQualifiedCertStatement = -67904; - -const int errSecMissingRequiredExtension = -67880; - -const int errSecMissingValue = -67871; - -const int errSecMobileMeCSRVerifyFailure = -67665; - -const int errSecMobileMeFailedConsistencyCheck = -67666; - -const int errSecMobileMeNoRequestPending = -67664; - -const int errSecMobileMeRequestAlreadyPending = -67663; - -const int errSecMobileMeRequestQueued = -67657; - -const int errSecMobileMeRequestRedirected = -67658; - -const int errSecMobileMeServerAlreadyExists = -67661; - -const int errSecMobileMeServerError = -67659; - -const int errSecMobileMeServerNotAvailable = -67660; - -const int errSecMobileMeServerServiceErr = -67662; - -const int errSecModuleManagerInitializeFailed = -67721; - -const int errSecModuleManagerNotFound = -67722; - -const int errSecModuleManifestVerifyFailed = -67678; - -const int errSecModuleNotLoaded = -67718; - -const int errSecMultipleExecSegments = -66995; - -const int errSecMultiplePrivKeys = -25259; - -const int errSecMultipleValuesUnsupported = -67842; - -const int errSecNetworkFailure = -67636; - -const int errSecNoAccessForItem = -25243; - -const int errSecNoBasicConstraints = -67604; - -const int errSecNoBasicConstraintsCA = -67605; - -const int errSecNoCertificateModule = -25313; - -const int errSecNoDefaultAuthority = -67844; - -const int errSecNoDefaultKeychain = -25307; - -const int errSecNoFieldValues = -67859; - -const int errSecNoPolicyModule = -25314; - -const int errSecNoStorageModule = -25312; - -const int errSecNoSuchAttr = -25303; - -const int errSecNoSuchClass = -25306; - -const int errSecNoSuchKeychain = -25294; - -const int errSecNoTrustSettings = -25263; - -const int errSecNotAvailable = -25291; - -const int errSecNotInitialized = -67667; - -const int errSecNotLoggedIn = -67729; - -const int errSecNotSigner = -26267; - -const int errSecNotTrusted = -67843; - -const int errSecOCSPBadRequest = -67631; - -const int errSecOCSPBadResponse = -67630; - -const int errSecOCSPNoSigner = -67640; - -const int errSecOCSPNotTrustedToAnchor = -67637; - -const int errSecOCSPResponderInternalError = -67642; - -const int errSecOCSPResponderMalformedReq = -67641; - -const int errSecOCSPResponderSignatureRequired = -67644; - -const int errSecOCSPResponderTryLater = -67643; - -const int errSecOCSPResponderUnauthorized = -67645; - -const int errSecOCSPResponseNonceMismatch = -67646; - -const int errSecOCSPSignatureError = -67639; - -const int errSecOCSPStatusUnrecognized = -67633; - -const int errSecOCSPUnavailable = -67632; - -const int errSecOpWr = -49; - -const int errSecOutputLengthError = -67725; - -const int errSecPVCAlreadyConfigured = -67707; - -const int errSecPVCReferentNotFound = -67669; - -const int errSecParam = -50; - -const int errSecPassphraseRequired = -25260; - -const int errSecPathLengthConstraintExceeded = -67611; - -const int errSecPkcs12VerifyFailure = -25264; - -const int errSecPolicyNotFound = -25241; - -const int errSecPrivilegeNotGranted = -67705; - -const int errSecPrivilegeNotSupported = -67726; - -const int errSecPublicKeyInconsistent = -67811; - -const int errSecQuerySizeUnknown = -67809; - -const int errSecQuotaExceeded = -67596; - -const int errSecReadOnly = -25292; - -const int errSecReadOnlyAttr = -25309; - -const int errSecRecordModified = -67638; - -const int errSecRejectedForm = -67845; - -const int errSecRequestDescriptor = -67856; - -const int errSecRequestLost = -67846; - -const int errSecRequestRejected = -67847; - -const int errSecResourceSignBadCertChainLength = -67652; - -const int errSecResourceSignBadExtKeyUsage = -67653; - -const int errSecRestrictedAPI = -34020; - -const int errSecSMIMEBadExtendedKeyUsage = -67624; - -const int errSecSMIMEBadKeyUsage = -67625; - -const int errSecSMIMEEmailAddressesNotFound = -67623; - -const int errSecSMIMEKeyUsageNotCritical = -67626; - -const int errSecSMIMENoEmailAddress = -67627; - -const int errSecSMIMESubjAltNameNotCritical = -67628; - -const int errSecSSLBadExtendedKeyUsage = -67629; - -const int errSecSelfCheckFailed = -67676; - -const int errSecServiceNotAvailable = -67585; - -const int errSecSigningTimeMissing = -67894; - -const int errSecStagedOperationInProgress = -67806; - -const int errSecStagedOperationNotStarted = -67807; - -const int errSecSuccess = 0; - -const int errSecTagNotFound = -67692; - -const int errSecTimestampAddInfoNotAvailable = -67892; - -const int errSecTimestampBadAlg = -67886; - -const int errSecTimestampBadDataFormat = -67888; - -const int errSecTimestampBadRequest = -67887; - -const int errSecTimestampInvalid = -67883; - -const int errSecTimestampMissing = -67882; - -const int errSecTimestampNotTrusted = -67884; - -const int errSecTimestampRejection = -67895; - -const int errSecTimestampRevocationNotification = -67898; - -const int errSecTimestampRevocationWarning = -67897; - -const int errSecTimestampServiceNotAvailable = -67885; - -const int errSecTimestampSystemFailure = -67893; - -const int errSecTimestampTimeNotAvailable = -67889; - -const int errSecTimestampUnacceptedExtension = -67891; - -const int errSecTimestampUnacceptedPolicy = -67890; - -const int errSecTimestampWaiting = -67896; - -const int errSecTrustNotAvailable = -25245; - -const int errSecTrustSettingDeny = -67654; - -const int errSecUnimplemented = -4; - -const int errSecUnknownCRLExtension = -67619; - -const int errSecUnknownCertExtension = -67618; - -const int errSecUnknownCriticalExtensionFlag = -67603; - -const int errSecUnknownFormat = -25257; - -const int errSecUnknownQualifiedCertStatement = -67656; - -const int errSecUnknownTag = -67687; - -const int errSecUnsupportedAddressType = -67848; - -const int errSecUnsupportedFieldFormat = -67860; - -const int errSecUnsupportedFormat = -25256; - -const int errSecUnsupportedIndexInfo = -67861; - -const int errSecUnsupportedKeyAttributeMask = -67739; - -const int errSecUnsupportedKeyFormat = -67734; - -const int errSecUnsupportedKeyLabel = -67741; - -const int errSecUnsupportedKeySize = -67735; - -const int errSecUnsupportedKeyUsageMask = -67737; - -const int errSecUnsupportedLocality = -67862; - -const int errSecUnsupportedNumAttributes = -67863; - -const int errSecUnsupportedNumIndexes = -67864; - -const int errSecUnsupportedNumRecordTypes = -67865; - -const int errSecUnsupportedNumSelectionPreds = -67873; - -const int errSecUnsupportedOperator = -67874; - -const int errSecUnsupportedQueryLimits = -67872; - -const int errSecUnsupportedService = -67849; - -const int errSecUnsupportedVectorOfBuffers = -67743; - -const int errSecUserCanceled = -128; - -const int errSecVerificationFailure = -67686; - -const int errSecVerifyActionFailed = -67825; - -const int errSecVerifyFailed = -67808; - -const int errSecWrPerm = -61; - -const int errSecWrongSecVersion = -25310; - -const int errSessionAuthorizationDenied = -60502; - -const int errSessionInternal = -60008; - -const int errSessionInvalidAttributes = -60501; - -const int errSessionInvalidFlags = -60011; - -const int errSessionInvalidId = -60500; - -const int errSessionSuccess = 0; - -const int errSessionValueNotSet = -60503; - -const int errState = -1278; - -const int errTaskNotFound = -10780; - -const int errTopOfBody = -1811; - -const int errTopOfDocument = -1810; - -const int errUnknownAttributeTag = -5240; - -const int errUnknownControl = -30584; - -const int errUnknownElement = -5251; - -const int errUnrecognizedWindowClass = -5605; - -const int errUnsupportedWindowAttributesForClass = -5601; - -const int errUserWantsToDragWindow = -5607; - -const int errWSInternalError = -65793; - -const int errWSParseError = -65795; - -const int errWSTimeoutError = -65796; - -const int errWSTransportError = -65794; - -const int errWindowDoesNotFitOnscreen = -5611; - -const int errWindowDoesNotHaveProxy = -5602; - -const int errWindowDoesntSupportFocus = -30583; - -const int errWindowNotFound = -5610; - -const int errWindowPropertyNotFound = -5604; - -const int errWindowRegionCodeInvalid = -30593; - -const int errWindowsAlreadyInitialized = -5608; - -typedef errno_t = ffi.Int; -typedef Darterrno_t = int; - -const int eurlAFP = 1634103328; - -const int eurlAT = 1635000352; - -const int eurlEPPC = 1701867619; - -const int eurlFTP = 1718906912; - -const int eurlFile = 1718185061; - -const int eurlGopher = 1735420018; - -const int eurlHTTP = 1752462448; - -const int eurlHTTPS = 1752461427; - -const int eurlIMAP = 1768776048; - -const int eurlLDAP = 1970037872; - -const int eurlLaunch = 1818326382; - -const int eurlMail = 1835100524; - -const int eurlMailbox = 1835167608; - -const int eurlMessage = 1835365235; - -const int eurlMulti = 1836412020; - -const int eurlNFS = 1970169459; - -const int eurlNNTP = 1852732528; - -const int eurlNews = 1852143475; - -const int eurlPOP = 1970302832; - -const int eurlRTSP = 1920234352; - -const int eurlSNews = 1936619379; - -const int eurlTelnet = 1953263220; - -const int eurlUnknown = 1970433087; - -@Deprecated('Deprecated') -const int evType = 4; - -final class evsioKeymapping extends ffi.Struct { - @ffi.Int() - external int size; - - external ffi.Pointer mapping; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int size, - required ffi.Pointer mapping, - }) => $allocator() - ..ref.size = size - ..ref.mapping = mapping; -} - -final class evsioMouseScaling extends ffi.Struct { - @ffi.Int() - external int numScaleLevels; - - @ffi.Array.multi([20]) - external ffi.Array scaleThresholds; - - @ffi.Array.multi([20]) - external ffi.Array scaleFactors; -} - -const int evtNotEnb = 1; - -const int exUserBreak = -492; - -final class exception extends ffi.Struct { - @ffi.Int() - external int type; - - external ffi.Pointer name; - - @ffi.Double() - external double arg1; - - @ffi.Double() - external double arg2; - - @ffi.Double() - external double retval; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int type, - required ffi.Pointer name, - required double arg1, - required double arg2, - required double retval, - }) => $allocator() - ..ref.type = type - ..ref.name = name - ..ref.arg1 = arg1 - ..ref.arg2 = arg2 - ..ref.retval = retval; -} - -typedef exception_behavior_array_t = ffi.Pointer; -typedef exception_behavior_t = ffi.Int; -typedef Dartexception_behavior_t = int; -typedef exception_data_t = ffi.Pointer; -typedef exception_data_type_t = integer_t; -typedef exception_flavor_array_t = ffi.Pointer; -typedef exception_handler_array_t = ffi.Pointer; -typedef exception_handler_info_array_t = ffi.Pointer; -typedef exception_handler_info_t = ipc_info_port_t; -typedef exception_handler_t = mach_port_t; -typedef exception_mask_array_t = ffi.Pointer; -typedef exception_mask_t = ffi.UnsignedInt; -typedef Dartexception_mask_t = int; -typedef exception_port_arrary_t = exception_handler_array_t; -typedef exception_port_array_t = ffi.Pointer; -typedef exception_port_info_array_t = ffi.Pointer; -typedef exception_port_t = exception_handler_t; -typedef exception_type_t = ffi.Int; -typedef Dartexception_type_t = int; - -const int excessCollsns = -95; - -const int extFSErr = -58; - -const int extend = 64; - -typedef extended80 = Float80; -typedef extended96 = Float96; - -const int extendedBlock = 19523; - -const int extendedBlockLen = 40; - -enum extension_data_format { - CSSM_X509_DATAFORMAT_ENCODED(0), - CSSM_X509_DATAFORMAT_PARSED(1), - CSSM_X509_DATAFORMAT_PAIR(2); - - final int value; - const extension_data_format(this.value); - - static extension_data_format fromValue(int value) => switch (value) { - 0 => CSSM_X509_DATAFORMAT_ENCODED, - 1 => CSSM_X509_DATAFORMAT_PARSED, - 2 => CSSM_X509_DATAFORMAT_PAIR, - _ => throw ArgumentError('Unknown value for extension_data_format: $value'), - }; -} - -const int extensionsFolderIconResource = -3973; - -const int extractErr = -3104; - -const int extraneousStrings = 16; - -@Deprecated('Deprecated') -const int fBadPartsTable = 10; - -@Deprecated('Deprecated') -const int fBestGuess = 1; - -const int fBsyErr = -47; - -const int fDesktop = -2; - -const int fDisk = 0; - -@Deprecated('Deprecated') -const int fEmptyFormatString = 13; - -@Deprecated('Deprecated') -const int fExtraDecimal = 5; - -@Deprecated('Deprecated') -const int fExtraExp = 7; - -@Deprecated('Deprecated') -const int fExtraPercent = 11; - -@Deprecated('Deprecated') -const int fExtraSeparator = 12; - -@Deprecated('Deprecated') -const int fFormStrIsNAN = 9; - -@Deprecated('Deprecated') -const int fFormatOK = 0; - -@Deprecated('Deprecated') -const int fFormatOverflow = 8; - -const int fHasBundle = 8192; - -const int fInvisible = 16384; - -const int fLckdErr = -45; - -@Deprecated('Deprecated') -const int fMissingDelimiter = 4; - -@Deprecated('Deprecated') -const int fMissingLiteral = 6; - -@Deprecated('Deprecated') -const int fNegative = 1; - -const int fOnDesk = 1; - -@Deprecated('Deprecated') -const int fOutOfSynch = 2; - -@Deprecated('Deprecated') -const int fPositive = 0; - -@Deprecated('Deprecated') -const int fSpuriousChars = 3; - -const int fTrash = -3; - -@Deprecated('Deprecated') -const int fVNumber = 0; - -@Deprecated('Deprecated') -const int fZero = 2; - -const int false$ = 0; - -@Deprecated('Deprecated') -const int false32b = 0; - -const int fatalDateTime = 32768; - -final class fattributiontag extends ffi.Struct { - @ffi.UnsignedInt() - external int ft_flags; - - @ffi.UnsignedLongLong() - external int ft_hash; - - @ffi.Array.multi([255]) - external ffi.Array ft_attribution_name; -} - -typedef fattributiontag_t = fattributiontag; - -final class fchecklv extends ffi.Struct { - @off_t() - external int lv_file_start; - - @ffi.Size() - external int lv_error_message_size; - - external ffi.Pointer lv_error_message; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lv_file_start, - required int lv_error_message_size, - required ffi.Pointer lv_error_message, - }) => $allocator() - ..ref.lv_file_start = lv_file_start - ..ref.lv_error_message_size = lv_error_message_size - ..ref.lv_error_message = lv_error_message; -} - -typedef fchecklv_t = fchecklv; -typedef fd_mask = __int32_t; - -final class fd_set extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array<__int32_t> fds_bits; -} - -const int featureFontTableTag = 1717920116; - -const int featureUnsupported = -2053; - -final class fenv_t extends ffi.Struct { - @ffi.UnsignedLongLong() - external int __fpsr; - - @ffi.UnsignedLongLong() - external int __fpcr; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int $fpsr, - required int $fpcr, - }) => $allocator() - ..ref.__fpsr = $fpsr - ..ref.__fpcr = $fpcr; -} - -@Deprecated('Deprecated') -const int fetchReference = 2; - -typedef fexcept_t = ffi.UnsignedShort; -typedef Dartfexcept_t = int; - -final class fgetsigsinfo extends ffi.Struct { - @off_t() - external int fg_file_start; - - @ffi.Int() - external int fg_info_request; - - @ffi.Int() - external int fg_sig_is_platform; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fg_file_start, - required int fg_info_request, - required int fg_sig_is_platform, - }) => $allocator() - ..ref.fg_file_start = fg_file_start - ..ref.fg_info_request = fg_info_request - ..ref.fg_sig_is_platform = fg_sig_is_platform; -} - -typedef fgetsigsinfo_t = fgetsigsinfo; -@Deprecated('Deprecated') -const int fiLigature = 222; - -const int fidExists = -1301; - -const int fidNotFound = -1300; - -const int fieldOrderNotIntl = 8; - -const int fileBoundsErr = -1309; - -const int fileOffsetTooBigErr = -2125; - -enum filesec_property_t { - FILESEC_OWNER(1), - FILESEC_GROUP(2), - FILESEC_UUID(3), - FILESEC_MODE(4), - FILESEC_ACL(5), - FILESEC_GRPUUID(6), - FILESEC_ACL_RAW(100), - FILESEC_ACL_ALLOCSIZE(101); - - final int value; - const filesec_property_t(this.value); - - static filesec_property_t fromValue(int value) => switch (value) { - 1 => FILESEC_OWNER, - 2 => FILESEC_GROUP, - 3 => FILESEC_UUID, - 4 => FILESEC_MODE, - 5 => FILESEC_ACL, - 6 => FILESEC_GRPUUID, - 100 => FILESEC_ACL_RAW, - 101 => FILESEC_ACL_ALLOCSIZE, - _ => throw ArgumentError('Unknown value for filesec_property_t: $value'), - }; -} - -typedef filesec_t = ffi.Pointer<_filesec>; - -const int finalStage = 128; - -const int firstDskErr = -84; - -const int firstPickerError = -4000; - -typedef fixpt_t = u_int32_t; -@Deprecated('Deprecated') -const int flLigature = 223; - -typedef float_t = ffi.Float; -typedef Dartfloat_t = double; - -final class flock$1 extends ffi.Struct { - @off_t() - external int l_start; - - @off_t() - external int l_len; - - @pid_t() - external int l_pid; - - @ffi.Short() - external int l_type; - - @ffi.Short() - external int l_whence; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int l_start, - required int l_len, - required int l_pid, - required int l_type, - required int l_whence, - }) => $allocator() - ..ref.l_start = l_start - ..ref.l_len = l_len - ..ref.l_pid = l_pid - ..ref.l_type = l_type - ..ref.l_whence = l_whence; -} - -final class flocktimeout extends ffi.Struct { - external flock$1 fl; - - external timespec timeout; -} - -const int floppyIconResource = -3998; - -const int fmt1Err = -82; - -const int fmt2Err = -83; - -const int fnOpnErr = -38; - -const int fnfErr = -43; - -const int fontDecError = -64; - -const int fontNotDeclared = -65; - -const int fontNotOutlineErr = -32615; - -const int fontSubErr = -66; - -const int fontsFolderIconResource = -3968; - -const int forceReadBit = 6; - -const int forceReadMask = 64; - -const int formAbsolutePosition = 1768842360; - -const int formName = 1851878757; - -const int formPropertyID = 1886547824; - -const int formRange = 1918987879; - -const int formRelativePosition = 1919249509; - -const int formTest = 1952805748; - -const int formUniqueID = 1229201440; - -const int formWhose = 2003332979; - -typedef fpos_t = __darwin_off_t; - -final class fpunchhole extends ffi.Struct { - @ffi.UnsignedInt() - external int fp_flags; - - @ffi.UnsignedInt() - external int reserved; - - @off_t() - external int fp_offset; - - @off_t() - external int fp_length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fp_flags, - required int reserved, - required int fp_offset, - required int fp_length, - }) => $allocator() - ..ref.fp_flags = fp_flags - ..ref.reserved = reserved - ..ref.fp_offset = fp_offset - ..ref.fp_length = fp_length; -} - -typedef fpunchhole_t = fpunchhole; -@Deprecated('Deprecated') -const int fraction = 218; - -const int fsAtMark = 0; - -const int fsCurPerm = 0; - -const int fsDSIntErr = -127; - -const int fsDataTooBigErr = -1310; - -const int fsFromLEOF = 2; - -const int fsFromMark = 3; - -const int fsFromStart = 1; - -@Deprecated('Deprecated') -const int fsQType = 5; - -const int fsRdAccessPerm = 1; - -const int fsRdDenyPerm = 16; - -const int fsRdPerm = 1; - -const int fsRdWrPerm = 3; - -const int fsRdWrShPerm = 4; - -const int fsRnErr = -59; - -const int fsRtDirID = 2; - -const int fsRtParID = 1; - -const int fsSBAccessDate = 131072; - -const int fsSBAccessDateBit = 17; - -const int fsSBAttributeModDate = 65536; - -const int fsSBAttributeModDateBit = 16; - -const int fsSBDrBkDat = 2048; - -const int fsSBDrBkDatBit = 11; - -const int fsSBDrCrDat = 512; - -const int fsSBDrCrDatBit = 9; - -const int fsSBDrFndrInfo = 4096; - -const int fsSBDrFndrInfoBit = 12; - -const int fsSBDrMdDat = 1024; - -const int fsSBDrMdDatBit = 10; - -const int fsSBDrNmFls = 16; - -const int fsSBDrNmFlsBit = 4; - -const int fsSBDrParID = 8192; - -const int fsSBDrParIDBit = 13; - -const int fsSBDrUsrWds = 8; - -const int fsSBDrUsrWdsBit = 3; - -const int fsSBFlAttrib = 4; - -const int fsSBFlAttribBit = 2; - -const int fsSBFlBkDat = 2048; - -const int fsSBFlBkDatBit = 11; - -const int fsSBFlCrDat = 512; - -const int fsSBFlCrDatBit = 9; - -const int fsSBFlFndrInfo = 8; - -const int fsSBFlFndrInfoBit = 3; - -const int fsSBFlLgLen = 32; - -const int fsSBFlLgLenBit = 5; - -const int fsSBFlMdDat = 1024; - -const int fsSBFlMdDatBit = 10; - -const int fsSBFlParID = 8192; - -const int fsSBFlParIDBit = 13; - -const int fsSBFlPyLen = 64; - -const int fsSBFlPyLenBit = 6; - -const int fsSBFlRLgLen = 128; - -const int fsSBFlRLgLenBit = 7; - -const int fsSBFlRPyLen = 256; - -const int fsSBFlRPyLenBit = 8; - -const int fsSBFlXFndrInfo = 4096; - -const int fsSBFlXFndrInfoBit = 12; - -const int fsSBFullName = 2; - -const int fsSBFullNameBit = 1; - -const int fsSBGroupID = 4194304; - -const int fsSBGroupIDBit = 22; - -const int fsSBNegate = 16384; - -const int fsSBNegateBit = 14; - -const int fsSBNodeID = 32768; - -const int fsSBNodeIDBit = 15; - -const int fsSBPartialName = 1; - -const int fsSBPartialNameBit = 0; - -const int fsSBPermissions = 262144; - -const int fsSBPermissionsBit = 18; - -const int fsSBSkipHiddenItems = 1048576; - -const int fsSBSkipHiddenItemsBit = 20; - -const int fsSBSkipPackageContents = 524288; - -const int fsSBSkipPackageContentsBit = 19; - -const int fsSBUserID = 2097152; - -const int fsSBUserIDBit = 21; - -const int fsUnixPriv = 1; - -const int fsWrAccessPerm = 2; - -const int fsWrDenyPerm = 32; - -const int fsWrPerm = 2; - -typedef fsblkcnt_t = __darwin_fsblkcnt_t; -typedef fsfilcnt_t = __darwin_fsfilcnt_t; - -final class fsid extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array val; -} - -typedef fsid_t = fsid; - -final class fsignatures extends ffi.Struct { - @off_t() - external int fs_file_start; - - external ffi.Pointer fs_blob_start; - - @ffi.Size() - external int fs_blob_size; - - @ffi.Size() - external int fs_fsignatures_size; - - @ffi.Array.multi([20]) - external ffi.Array fs_cdhash; - - @ffi.Int() - external int fs_hash_type; -} - -typedef fsignatures_t = fsignatures; - -const int fsmBadFFSNameErr = -433; - -const int fsmBadFSDLenErr = -434; - -const int fsmBadFSDVersionErr = -436; - -const int fsmBusyFFSErr = -432; - -const int fsmDuplicateFSIDErr = -435; - -const int fsmFFSNotFoundErr = -431; - -const int fsmNoAlternateStackErr = -437; - -const int fsmUnknownFSMMessageErr = -438; - -final class fsobj_id extends ffi.Struct { - @u_int32_t() - external int fid_objno; - - @u_int32_t() - external int fid_generation; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fid_objno, - required int fid_generation, - }) => $allocator() - ..ref.fid_objno = fid_objno - ..ref.fid_generation = fid_generation; -} - -typedef fsobj_id_t = fsobj_id; - -final class fspecread extends ffi.Struct { - @ffi.UnsignedInt() - external int fsr_flags; - - @ffi.UnsignedInt() - external int reserved; - - @off_t() - external int fsr_offset; - - @off_t() - external int fsr_length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fsr_flags, - required int reserved, - required int fsr_offset, - required int fsr_length, - }) => $allocator() - ..ref.fsr_flags = fsr_flags - ..ref.reserved = reserved - ..ref.fsr_offset = fsr_offset - ..ref.fsr_length = fsr_length; -} - -typedef fspecread_t = fspecread; - -final class fssearchblock extends ffi.Opaque {} - -final class fstore extends ffi.Struct { - @ffi.UnsignedInt() - external int fst_flags; - - @ffi.Int() - external int fst_posmode; - - @off_t() - external int fst_offset; - - @off_t() - external int fst_length; - - @off_t() - external int fst_bytesalloc; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fst_flags, - required int fst_posmode, - required int fst_offset, - required int fst_length, - required int fst_bytesalloc, - }) => $allocator() - ..ref.fst_flags = fst_flags - ..ref.fst_posmode = fst_posmode - ..ref.fst_offset = fst_offset - ..ref.fst_length = fst_length - ..ref.fst_bytesalloc = fst_bytesalloc; -} - -typedef fstore_t = fstore; - -final class fsupplement extends ffi.Struct { - @off_t() - external int fs_file_start; - - @off_t() - external int fs_blob_start; - - @ffi.Size() - external int fs_blob_size; - - @ffi.Int() - external int fs_orig_fd; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fs_file_start, - required int fs_blob_start, - required int fs_blob_size, - required int fs_orig_fd, - }) => $allocator() - ..ref.fs_file_start = fs_file_start - ..ref.fs_blob_start = fs_blob_start - ..ref.fs_blob_size = fs_blob_size - ..ref.fs_orig_fd = fs_orig_fd; -} - -typedef fsupplement_t = fsupplement; - -final class ftrimactivefile extends ffi.Struct { - @off_t() - external int fta_offset; - - @off_t() - external int fta_length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fta_offset, - required int fta_length, - }) => $allocator() - ..ref.fta_offset = fta_offset - ..ref.fta_length = fta_length; -} - -typedef ftrimactivefile_t = ftrimactivefile; - -const int fullTrashIconResource = -3984; - -const int gWorldsNotSameDepthAndSizeErr = -2066; - -const int gcrOnMFMErr = -400; - -const int genCdevRangeBit = 27; - -const int genericApplicationIconResource = -3996; - -const int genericCDROMIconResource = -3987; - -const int genericDeskAccessoryIconResource = -3991; - -const int genericDocumentIconResource = -4000; - -const int genericEditionFileIconResource = -3989; - -const int genericExtensionIconResource = -16415; - -const int genericFileServerIconResource = -3972; - -const int genericFolderIconResource = -3999; - -const int genericHardDiskIconResource = -3995; - -const int genericMoverObjectIconResource = -3969; - -const int genericPreferencesIconResource = -3971; - -const int genericQueryDocumentIconResource = -16506; - -const int genericRAMDiskIconResource = -3988; - -const int genericStationeryIconResource = -3985; - -const int genericSuitcaseIconResource = -3970; - -const int gestalt16BitAudioSupport = 12; - -const int gestalt16BitSoundIO = 7; - -const int gestalt20thAnniversary = 512; - -const int gestalt32BitAddressing = 0; - -const int gestalt32BitCapable = 2; - -const int gestalt32BitQD = 512; - -const int gestalt32BitQD11 = 513; - -const int gestalt32BitQD12 = 544; - -const int gestalt32BitQD13 = 560; - -const int gestalt32BitSysZone = 1; - -const int gestalt68000 = 1; - -const int gestalt68010 = 2; - -const int gestalt68020 = 3; - -const int gestalt68030 = 4; - -const int gestalt68030MMU = 3; - -const int gestalt68040 = 5; - -const int gestalt68040FPU = 3; - -const int gestalt68040MMU = 4; - -const int gestalt68851 = 2; - -const int gestalt68881 = 1; - -const int gestalt68882 = 2; - -const int gestalt68k = 1; - -const int gestalt8BitQD = 256; - -const int gestaltADBISOKbdII = 11; - -const int gestaltADBKbdII = 10; - -const int gestaltAFPClient = 1634103411; - -const int gestaltAFPClient3_5 = 1; - -const int gestaltAFPClient3_6 = 2; - -const int gestaltAFPClient3_6_1 = 3; - -const int gestaltAFPClient3_6_2 = 4; - -const int gestaltAFPClient3_6_3 = 5; - -const int gestaltAFPClient3_7 = 6; - -const int gestaltAFPClient3_7_2 = 7; - -const int gestaltAFPClient3_8 = 8; - -const int gestaltAFPClient3_8_1 = 9; - -const int gestaltAFPClient3_8_3 = 10; - -const int gestaltAFPClient3_8_4 = 11; - -const int gestaltAFPClientAttributeMask = -65536; - -const int gestaltAFPClientCfgRsrc = 16; - -const int gestaltAFPClientMultiReq = 31; - -const int gestaltAFPClientSupportsIP = 29; - -const int gestaltAFPClientVMUI = 30; - -const int gestaltAFPClientVersionMask = 65535; - -const int gestaltALMAttr = 1953655152; - -const int gestaltALMHasCFMSupport = 2; - -const int gestaltALMHasRescanNotifiers = 3; - -const int gestaltALMHasSFGroup = 1; - -const int gestaltALMHasSFLocation = 1; - -const int gestaltALMPresent = 0; - -const int gestaltALMVers = 2002873451; - -const int gestaltAMU = 1; - -const int gestaltATAAttr = 1635016992; - -const int gestaltATAPresent = 0; - -const int gestaltATSUAscentDescentControlsFeature = 16; - -const int gestaltATSUBatchBreakLinesFeature = 16; - -const int gestaltATSUBiDiCursorPositionFeature = 32; - -const int gestaltATSUByCharacterClusterFeature = 16; - -const int gestaltATSUDecimalTabFeature = 32; - -const int gestaltATSUDirectAccess = 16; - -const int gestaltATSUDropShadowStyleFeature = 32; - -const int gestaltATSUFallbacksFeature = 1; - -const int gestaltATSUFallbacksObjFeatures = 8; - -const int gestaltATSUFeatures = 1969845094; - -const int gestaltATSUGlyphBoundsFeature = 1; - -const int gestaltATSUHighlightColorControlFeature = 32; - -const int gestaltATSUHighlightInactiveTextFeature = 16; - -const int gestaltATSUIgnoreLeadingFeature = 8; - -const int gestaltATSULayoutCacheClearFeature = 1; - -const int gestaltATSULayoutCreateAndCopyFeature = 1; - -const int gestaltATSULineControlFeature = 1; - -const int gestaltATSULowLevelOrigFeatures = 4; - -const int gestaltATSUMemoryFeature = 1; - -const int gestaltATSUNearestCharLineBreakFeature = 32; - -const int gestaltATSUPositionToCursorFeature = 16; - -const int gestaltATSUStrikeThroughStyleFeature = 32; - -const int gestaltATSUTabSupportFeature = 16; - -const int gestaltATSUTextLocatorUsageFeature = 2; - -const int gestaltATSUTrackingFeature = 1; - -const int gestaltATSUUnderlineOptionsStyleFeature = 32; - -const int gestaltATSUUpdate1 = 131072; - -const int gestaltATSUUpdate2 = 196608; - -const int gestaltATSUUpdate3 = 262144; - -const int gestaltATSUUpdate4 = 327680; - -const int gestaltATSUUpdate5 = 393216; - -const int gestaltATSUUpdate6 = 458752; - -const int gestaltATSUUpdate7 = 524288; - -const int gestaltATSUVersion = 1969845110; - -const int gestaltATalkVersion = 1635019638; - -const int gestaltAUXVersion = 1630500216; - -const int gestaltAVLTreeAttr = 1953654117; - -const int gestaltAVLTreePresentBit = 0; - -const int gestaltAVLTreeSupportsHandleBasedTreeBit = 1; - -const int gestaltAVLTreeSupportsTreeLockingBit = 2; - -const int gestaltAWS6150_60 = 75; - -const int gestaltAWS6150_66 = 100; - -const int gestaltAWS8150_110 = 40; - -const int gestaltAWS8150_80 = 65; - -const int gestaltAWS8550 = 68; - -const int gestaltAWS9150_120 = 57; - -const int gestaltAWS9150_80 = 39; - -const int gestaltAddressingModeAttr = 1633969266; - -const int gestaltAdminFeaturesFlagsAttr = 1718773092; - -const int gestaltAliasMgrAttr = 1634494835; - -const int gestaltAliasMgrFollowsAliasesWhenResolving = 4; - -const int gestaltAliasMgrPrefersPath = 7; - -const int gestaltAliasMgrPresent = 0; - -const int gestaltAliasMgrRequiresAccessors = 8; - -const int gestaltAliasMgrResolveAliasFileWithMountOptions = 3; - -const int gestaltAliasMgrSupportsAOCEKeychain = 2; - -const int gestaltAliasMgrSupportsExtendedCalls = 5; - -const int gestaltAliasMgrSupportsFSCalls = 6; - -const int gestaltAliasMgrSupportsRemoteAppletalk = 1; - -const int gestaltAllegroQD = 592; - -const int gestaltAllegroQDText = 256; - -const int gestaltAltivecRegistersSwappedCorrectlyBit = 20; - -const int gestaltAntiAliasedTextAvailable = 2; - -const int gestaltAppearanceAttr = 1634758770; - -const int gestaltAppearanceCompatMode = 1; - -const int gestaltAppearanceExists = 0; - -const int gestaltAppearanceVersion = 1634760306; - -const int gestaltAppleAdjustADBKbd = 15; - -const int gestaltAppleAdjustISOKbd = 16; - -const int gestaltAppleAdjustKeypad = 14; - -const int gestaltAppleEventsAttr = 1702260340; - -const int gestaltAppleEventsPresent = 0; - -const int gestaltAppleGuideIsDebug = 30; - -const int gestaltAppleGuidePresent = 31; - -const int gestaltAppleScriptAttr = 1634952050; - -const int gestaltAppleScriptPowerPCSupport = 1; - -const int gestaltAppleScriptPresent = 0; - -const int gestaltAppleScriptVersion = 1634952054; - -const int gestaltAppleTalkVersion = 1635019883; - -const int gestaltArbitorAttr = 1634886176; - -const int gestaltArm = 20; - -const int gestaltAsyncSCSI = 0; - -const int gestaltAsyncSCSIINROM = 1; - -const int gestaltBuiltInSoundInput = 4; - -const int gestaltBusClkSpeed = 1650682987; - -const int gestaltBusClkSpeedMHz = 1650682989; - -const int gestaltCFM99Present = 2; - -const int gestaltCFM99PresentMask = 4; - -const int gestaltCFMAttr = 1667658343; - -const int gestaltCFMPresent = 0; - -const int gestaltCFMPresentMask = 1; - -const int gestaltCPU486 = 1765029942; - -const int gestaltCPU601 = 257; - -const int gestaltCPU603 = 259; - -const int gestaltCPU603e = 262; - -const int gestaltCPU603ev = 263; - -const int gestaltCPU604 = 260; - -const int gestaltCPU604e = 265; - -const int gestaltCPU604ev = 266; - -const int gestaltCPU68000 = 0; - -const int gestaltCPU68010 = 1; - -const int gestaltCPU68020 = 2; - -const int gestaltCPU68030 = 3; - -const int gestaltCPU68040 = 4; - -const int gestaltCPU750 = 264; - -const int gestaltCPU750FX = 288; - -const int gestaltCPU970 = 313; - -const int gestaltCPU970FX = 316; - -const int gestaltCPU970MP = 324; - -const int gestaltCPUARM64 = 1635268148; - -const int gestaltCPUARMFamily = 1634888992; - -const int gestaltCPUApollo = 273; - -const int gestaltCPUG4 = 268; - -const int gestaltCPUG47447 = 274; - -const int gestaltCPUG47450 = 272; - -const int gestaltCPUPentium = 1765095478; - -const int gestaltCPUPentium4 = 1765108086; - -const int gestaltCPUPentiumII = 1765108073; - -const int gestaltCPUPentiumPro = 1765109874; - -const int gestaltCPUX86 = 1769502840; - -const int gestaltCRMAttr = 1668443424; - -const int gestaltCRMPersistentFix = 1; - -const int gestaltCRMPresent = 0; - -const int gestaltCRMToolRsrcCalls = 2; - -const int gestaltCTBVersion = 1668571766; - -const int gestaltCanStartDragInFloatWindow = 4; - -const int gestaltCanUseCGTextRendering = 6; - -const int gestaltCarbonVersion = 1667395438; - -const int gestaltCardServicesPresent = 0; - -const int gestaltClassic = 1; - -const int gestaltClassicII = 23; - -const int gestaltCloseViewAttr = 1112753249; - -const int gestaltCloseViewDisplayMgrFriendly = 1; - -const int gestaltCloseViewEnabled = 0; - -const int gestaltCollectionMgrVersion = 1668052078; - -const int gestaltColorMatchingAttr = 1668117601; - -const int gestaltColorMatchingLibLoaded = 1; - -const int gestaltColorMatchingVersion = 1668117603; - -const int gestaltColorPicker = 1668311922; - -const int gestaltColorPickerVersion = 1668311922; - -const int gestaltColorSync10 = 256; - -const int gestaltColorSync104 = 260; - -const int gestaltColorSync105 = 261; - -const int gestaltColorSync11 = 272; - -const int gestaltColorSync20 = 512; - -const int gestaltColorSync21 = 528; - -const int gestaltColorSync211 = 529; - -const int gestaltColorSync212 = 530; - -const int gestaltColorSync213 = 531; - -const int gestaltColorSync25 = 592; - -const int gestaltColorSync26 = 608; - -const int gestaltColorSync261 = 609; - -const int gestaltColorSync30 = 768; - -const int gestaltComponentMgr = 1668312692; - -const int gestaltComponentPlatform = 1668247660; - -const int gestaltCompressionMgr = 1768123760; - -const int gestaltConnMgrAttr = 1668247150; - -const int gestaltConnMgrCMSearchFix = 1; - -const int gestaltConnMgrErrorString = 2; - -const int gestaltConnMgrMultiAsyncIO = 3; - -const int gestaltConnMgrPresent = 0; - -const int gestaltControlMgrAttr = 1668183148; - -const int gestaltControlMgrPresent = 1; - -const int gestaltControlMgrPresentBit = 0; - -const int gestaltControlMgrVersion = 1668118130; - -const int gestaltControlMsgPresentMask = 1; - -const int gestaltControlStripAttr = 1935959414; - -const int gestaltControlStripExists = 0; - -const int gestaltControlStripUserFont = 2; - -const int gestaltControlStripUserHotKey = 3; - -const int gestaltControlStripVersion = 1668511346; - -const int gestaltControlStripVersionFixed = 1; - -const int gestaltCountOfCPUs = 1668314483; - -const int gestaltCreatesAliasFontRsrc = 4; - -const int gestaltCurrentGraphicsVersion = 66048; - -const int gestaltDBAccessMgrAttr = 1684169059; - -const int gestaltDBAccessMgrPresent = 0; - -const int gestaltDITLExtAttr = 1684632684; - -const int gestaltDITLExtPresent = 0; - -const int gestaltDITLExtSupportsIctb = 1; - -const int gestaltDTMgrSupportsFSM = 7; - -const int gestaltDTPFeatures = 1685352550; - -const int gestaltDTPInfo = 1685352568; - -const int gestaltDesktopPicturesAttr = 1684762744; - -const int gestaltDesktopPicturesDisplayed = 1; - -const int gestaltDesktopPicturesInstalled = 0; - -const int gestaltDesktopSpeechRecognition = 1; - -const int gestaltDialogMgrAttr = 1684828007; - -const int gestaltDialogMgrHasAquaAlertBit = 2; - -const int gestaltDialogMgrHasAquaAlertMask = 4; - -const int gestaltDialogMgrPresent = 1; - -const int gestaltDialogMgrPresentBit = 0; - -const int gestaltDialogMgrPresentMask = 1; - -const int gestaltDialogMsgPresentMask = 1; - -const int gestaltDictionaryMgrAttr = 1684628340; - -const int gestaltDictionaryMgrPresent = 0; - -const int gestaltDigitalSignatureVersion = 1685285223; - -const int gestaltDiskCacheSize = 1684239226; - -const int gestaltDisplayMgrAttr = 1685089401; - -const int gestaltDisplayMgrCanConfirm = 4; - -const int gestaltDisplayMgrCanSwitchMirrored = 2; - -const int gestaltDisplayMgrColorSyncAware = 5; - -const int gestaltDisplayMgrGeneratesProfiles = 6; - -const int gestaltDisplayMgrPresent = 0; - -const int gestaltDisplayMgrSetDepthNotifies = 3; - -const int gestaltDisplayMgrSleepNotifies = 7; - -const int gestaltDisplayMgrVers = 1685089398; - -const int gestaltDragMgrAttr = 1685217639; - -const int gestaltDragMgrFloatingWind = 1; - -const int gestaltDragMgrHasImageSupport = 3; - -const int gestaltDragMgrPresent = 0; - -const int gestaltDrawSprocketVersion = 1685287030; - -const int gestaltDupSelectorErr = -5552; - -const int gestaltEMMU1 = 5; - -const int gestaltEasyAccessAttr = 1700885369; - -const int gestaltEasyAccessLocked = 3; - -const int gestaltEasyAccessOff = 0; - -const int gestaltEasyAccessOn = 1; - -const int gestaltEasyAccessSticky = 2; - -const int gestaltEditionMgrAttr = 1701082222; - -const int gestaltEditionMgrPresent = 0; - -const int gestaltEditionMgrTranslationAware = 1; - -const int gestaltExtADBKbd = 4; - -const int gestaltExtISOADBKbd = 9; - -const int gestaltExtToolboxTable = 2020897908; - -const int gestaltExtendedTimeMgr = 3; - -const int gestaltExtendedWindowAttributes = 1; - -const int gestaltExtendedWindowAttributesBit = 1; - -const int gestaltExtendedWindowAttributesMask = 2; - -const int gestaltExtensionTableVersion = 1702126188; - -const int gestaltFBCCurrentVersion = 17; - -const int gestaltFBCIndexingState = 1717724009; - -const int gestaltFBCVersion = 1717724022; - -const int gestaltFBCindexingCritical = 1; - -const int gestaltFBCindexingSafe = 0; - -const int gestaltFPUType = 1718646048; - -const int gestaltFSAllowsConcurrentAsyncIO = 17; - -const int gestaltFSAttr = 1718820896; - -const int gestaltFSIncompatibleDFA82 = 10; - -const int gestaltFSMDoesDynamicLoad = 3; - -const int gestaltFSMVersion = 1718840608; - -const int gestaltFSNoMFSVols = 8; - -const int gestaltFSSupports2TBVols = 5; - -const int gestaltFSSupports4GBVols = 4; - -const int gestaltFSSupportsDirectIO = 11; - -const int gestaltFSSupportsExclusiveLocks = 15; - -const int gestaltFSSupportsHFSPlusVols = 9; - -const int gestaltFSSupportsHardLinkDetection = 16; - -const int gestaltFSUsesPOSIXPathsForConversion = 14; - -const int gestaltFXfrMgrAsync = 3; - -const int gestaltFXfrMgrAttr = 1719166578; - -const int gestaltFXfrMgrErrorString = 2; - -const int gestaltFXfrMgrMultiFile = 1; - -const int gestaltFXfrMgrPresent = 0; - -const int gestaltFileAllocationZeroedBlocksBit = 4; - -const int gestaltFileMappingAttr = 1718381936; - -const int gestaltFileMappingMultipleFilesFix = 1; - -const int gestaltFileMappingPresent = 0; - -const int gestaltFindFolderAttr = 1718578276; - -const int gestaltFindFolderPresent = 0; - -const int gestaltFindFolderRedirectionAttr = 1718578277; - -const int gestaltFinderAttr = 1718510706; - -const int gestaltFinderCallsAEProcess = 2; - -const int gestaltFinderDropEvent = 0; - -const int gestaltFinderFloppyRootComments = 8; - -const int gestaltFinderFullDragManagerSupport = 7; - -const int gestaltFinderHasClippings = 6; - -const int gestaltFinderLargeAndNotSavedFlavorsOK = 9; - -const int gestaltFinderMagicPlacement = 1; - -const int gestaltFinderSupports4GBVolumes = 4; - -const int gestaltFinderUnderstandsRedirectedDesktopFolder = 11; - -const int gestaltFinderUsesExtensibleFolderManager = 10; - -const int gestaltFinderUsesSpecialOpenFoldersFile = 0; - -const int gestaltFirstSlotNumber = 1936487473; - -const int gestaltFloppyAttr = 1718382713; - -const int gestaltFloppyIsMFMOnly = 0; - -const int gestaltFloppyIsManualEject = 1; - -const int gestaltFloppyUsesDiskInPlace = 2; - -const int gestaltFolderDescSupport = 1; - -const int gestaltFolderMgrFollowsAliasesWhenResolving = 2; - -const int gestaltFolderMgrSupportsDomains = 4; - -const int gestaltFolderMgrSupportsExtendedCalls = 3; - -const int gestaltFolderMgrSupportsFSCalls = 5; - -const int gestaltFontMgrAttr = 1718578804; - -const int gestaltFrontWindowMayBeHiddenBit = 8; - -const int gestaltFrontWindowMayBeHiddenMask = 256; - -const int gestaltFullExtFSDispatching = 0; - -const int gestaltGXPrintingMgrVersion = 1886218098; - -const int gestaltGXVersion = 1902405496; - -const int gestaltGraphicsAttr = 1734768737; - -const int gestaltGraphicsIsDebugging = 1; - -const int gestaltGraphicsIsLoaded = 2; - -const int gestaltGraphicsIsPowerPC = 4; - -const int gestaltGraphicsVersion = 1735550584; - -const int gestaltHardwareAttr = 1751414642; - -const int gestaltHardwareVendorApple = 1097887852; - -const int gestaltHardwareVendorCode = 1752326500; - -const int gestaltHasASC = 3; - -const int gestaltHasColor = 0; - -const int gestaltHasDeepGWorlds = 1; - -const int gestaltHasDirectPixMaps = 2; - -const int gestaltHasEnhancedLtalk = 30; - -const int gestaltHasExtendedDiskInit = 6; - -const int gestaltHasFMTuner = 7; - -const int gestaltHasFSSpecCalls = 1; - -const int gestaltHasFileSystemManager = 2; - -const int gestaltHasFloatingWindows = 2; - -const int gestaltHasFloatingWindowsBit = 2; - -const int gestaltHasFloatingWindowsMask = 4; - -const int gestaltHasGPIaToDCDa = 0; - -const int gestaltHasGPIaToRTxCa = 1; - -const int gestaltHasGPIbToDCDb = 2; - -const int gestaltHasGrayishTextOr = 3; - -const int gestaltHasHFSPlusAPIs = 12; - -const int gestaltHasHWClosedCaptioning = 2; - -const int gestaltHasIRRemote = 3; - -const int gestaltHasParityCapability = 0; - -const int gestaltHasResourceOverrides = 1; - -const int gestaltHasSCC = 4; - -const int gestaltHasSCSI = 7; - -const int gestaltHasSCSI961 = 21; - -const int gestaltHasSCSI962 = 22; - -const int gestaltHasSerialFader = 6; - -const int gestaltHasSingleWindowModeBit = 8; - -const int gestaltHasSingleWindowModeMask = 256; - -const int gestaltHasSoftPowerOff = 19; - -const int gestaltHasSoundFader = 1; - -const int gestaltHasSoundInputDevice = 5; - -const int gestaltHasStereoDecoder = 5; - -const int gestaltHasSystemIRFunction = 8; - -const int gestaltHasTVTuner = 0; - -const int gestaltHasUniversalROM = 24; - -const int gestaltHasVIA1 = 0; - -const int gestaltHasVIA2 = 1; - -const int gestaltHasVidDecoderScaler = 4; - -const int gestaltHasWindowBuffering = 3; - -const int gestaltHasWindowBufferingBit = 3; - -const int gestaltHasWindowBufferingMask = 8; - -const int gestaltHasWindowShadowsBit = 6; - -const int gestaltHasWindowShadowsMask = 64; - -const int gestaltHasZoomedVideo = 11; - -const int gestaltHelpMgrAttr = 1751477360; - -const int gestaltHelpMgrExtensions = 1; - -const int gestaltHelpMgrPresent = 0; - -const int gestaltHidePortA = 3; - -const int gestaltHidePortB = 4; - -const int gestaltHighLevelMatching = 0; - -const int gestaltINeedIRPowerOffConfirm = 10; - -const int gestaltIPCSupport = 7; - -const int gestaltIRDisabled = 9; - -const int gestaltIconUtilitiesAttr = 1768124270; - -const int gestaltIconUtilitiesHas32BitIcons = 2; - -const int gestaltIconUtilitiesHas48PixelIcons = 1; - -const int gestaltIconUtilitiesHas8BitDeepMasks = 3; - -const int gestaltIconUtilitiesHasIconServices = 4; - -const int gestaltIconUtilitiesPresent = 0; - -const int gestaltInitHeapZerosOutHeapsBit = 1; - -const int gestaltIntel = 10; - -const int gestaltInternalDisplay = 1768190832; - -const int gestaltJapanAdjustADBKbd = 17; - -const int gestaltKeyboardType = 1801610272; - -const int gestaltLaunchCanReturn = 1; - -const int gestaltLaunchControl = 3; - -const int gestaltLaunchFullFileSpec = 2; - -const int gestaltLineLevelInput = 9; - -const int gestaltLocationErr = -5553; - -const int gestaltLogicalPageSize = 1885827962; - -const int gestaltLogicalRAMSize = 1819435373; - -const int gestaltLowMemorySize = 1819108717; - -const int gestaltMBLegacy = 0; - -const int gestaltMBMultipleBays = 2; - -const int gestaltMBSingleBay = 1; - -const int gestaltMMUType = 1835889952; - -const int gestaltMPCallableAPIsAttr = 1836086115; - -const int gestaltMPDeviceManager = 1; - -const int gestaltMPFileManager = 0; - -const int gestaltMPTrapCalls = 2; - -const int gestaltMac512KE = 3; - -const int gestaltMacAndPad = 2; - -const int gestaltMacCentris610 = 52; - -const int gestaltMacCentris650 = 30; - -const int gestaltMacCentris660AV = 60; - -const int gestaltMacClassic = 17; - -const int gestaltMacColorClassic = 49; - -const int gestaltMacII = 6; - -const int gestaltMacIIci = 11; - -const int gestaltMacIIcx = 8; - -const int gestaltMacIIfx = 13; - -const int gestaltMacIIsi = 18; - -const int gestaltMacIIvi = 44; - -const int gestaltMacIIvm = 45; - -const int gestaltMacIIvx = 48; - -const int gestaltMacIIx = 7; - -const int gestaltMacKbd = 1; - -const int gestaltMacLC = 19; - -const int gestaltMacLC475 = 89; - -const int gestaltMacLC520 = 56; - -const int gestaltMacLC575 = 92; - -const int gestaltMacLC580 = 99; - -const int gestaltMacLCII = 37; - -const int gestaltMacLCIII = 27; - -const int gestaltMacOSCompatibility = 1206; - -const int gestaltMacOSCompatibilityBoxAttr = 1650618232; - -const int gestaltMacOSCompatibilityBoxHasSerial = 1; - -const int gestaltMacOSCompatibilityBoxPresent = 0; - -const int gestaltMacOSCompatibilityBoxless = 2; - -const int gestaltMacOSXQD = 768; - -const int gestaltMacOSXQDText = 512; - -const int gestaltMacPlus = 4; - -const int gestaltMacPlusKbd = 3; - -const int gestaltMacQuadra605 = 94; - -const int gestaltMacQuadra610 = 53; - -const int gestaltMacQuadra630 = 98; - -const int gestaltMacQuadra650 = 36; - -const int gestaltMacQuadra660AV = 60; - -const int gestaltMacQuadra700 = 22; - -const int gestaltMacQuadra800 = 35; - -const int gestaltMacQuadra840AV = 78; - -const int gestaltMacQuadra900 = 20; - -const int gestaltMacQuadra950 = 26; - -const int gestaltMacSE = 5; - -const int gestaltMacSE030 = 9; - -const int gestaltMacTV = 88; - -const int gestaltMacXL = 2; - -const int gestaltMachineIcon = 1835623278; - -const int gestaltMachineType = 1835098984; - -const int gestaltMediaBay = 1835165032; - -const int gestaltMemoryMapAttr = 1835884912; - -const int gestaltMemoryMapSparse = 0; - -const int gestaltMenuMgrAquaLayoutBit = 1; - -const int gestaltMenuMgrAquaLayoutMask = 2; - -const int gestaltMenuMgrAttr = 1835363957; - -const int gestaltMenuMgrCGImageMenuTitleBit = 6; - -const int gestaltMenuMgrCGImageMenuTitleMask = 64; - -const int gestaltMenuMgrMoreThanFiveMenusDeepBit = 5; - -const int gestaltMenuMgrMoreThanFiveMenusDeepMask = 32; - -const int gestaltMenuMgrMultipleItemsWithCommandIDBit = 2; - -const int gestaltMenuMgrMultipleItemsWithCommandIDMask = 4; - -const int gestaltMenuMgrPresent = 1; - -const int gestaltMenuMgrPresentBit = 0; - -const int gestaltMenuMgrPresentMask = 1; - -const int gestaltMenuMgrRetainsIconRefBit = 3; - -const int gestaltMenuMgrRetainsIconRefMask = 8; - -const int gestaltMenuMgrSendsMenuBoundsToDefProcBit = 4; - -const int gestaltMenuMgrSendsMenuBoundsToDefProcMask = 16; - -const int gestaltMessageMgrVersion = 1835365235; - -const int gestaltMiscAttr = 1835627363; - -const int gestaltMixedModeAttr = 1835628644; - -const int gestaltMixedModeCFM68K = 1; - -const int gestaltMixedModeCFM68KHasState = 3; - -const int gestaltMixedModeCFM68KHasTrap = 2; - -const int gestaltMixedModePowerPC = 0; - -const int gestaltMixedModeVersion = 1835628644; - -const int gestaltMultiChannels = 11; - -const int gestaltMultipleUsersState = 1835426930; - -const int gestaltMustUseFCBAccessors = 13; - -const int gestaltNameRegistryVersion = 1852990823; - -const int gestaltNativeCPUfamily = 1668314470; - -const int gestaltNativeCPUtype = 1668314484; - -const int gestaltNativeProcessMgrBit = 19; - -const int gestaltNativeTimeMgr = 4; - -const int gestaltNativeType1FontSupport = 5; - -const int gestaltNewHandleReturnsZeroedMemoryBit = 2; - -const int gestaltNewPtrReturnsZeroedMemoryBit = 3; - -const int gestaltNoFPU = 0; - -const int gestaltNoMMU = 0; - -const int gestaltNotificationMgrAttr = 1852663666; - -const int gestaltNotificationPresent = 0; - -const int gestaltNuBusConnectors = 1936487523; - -const int gestaltNuBusPresent = 1; - -const int gestaltNuBusSlotCount = 1853186675; - -const int gestaltOCESFServerAvailable = 4; - -const int gestaltOCETB = 258; - -const int gestaltOCETBAvailable = 2; - -const int gestaltOCETBNativeGlueAvailable = 16; - -const int gestaltOCETBPresent = 1; - -const int gestaltOCEToolboxAttr = 1868785013; - -const int gestaltOCEToolboxVersion = 1868785012; - -const int gestaltOFA2available = 3; - -const int gestaltOSAttr = 1869815840; - -const int gestaltOSLCompliantFinder = 3; - -const int gestaltOSLInSystem = 2; - -const int gestaltOSTable = 1869837428; - -const int gestaltOSXFBCCurrentVersion = 256; - -const int gestaltOpenFirmwareInfo = 1869637239; - -const int gestaltOpenTpt = 1869898094; - -const int gestaltOpenTptARAPPresent = 6; - -const int gestaltOpenTptAppleTalkLoadedBit = 3; - -const int gestaltOpenTptAppleTalkLoadedMask = 8; - -const int gestaltOpenTptAppleTalkPresentBit = 2; - -const int gestaltOpenTptAppleTalkPresentMask = 4; - -const int gestaltOpenTptIPXSPXLoadedBit = 7; - -const int gestaltOpenTptIPXSPXLoadedMask = 128; - -const int gestaltOpenTptIPXSPXPresentBit = 6; - -const int gestaltOpenTptIPXSPXPresentMask = 64; - -const int gestaltOpenTptLoadedBit = 1; - -const int gestaltOpenTptLoadedMask = 2; - -const int gestaltOpenTptNetworkSetup = 1869898598; - -const int gestaltOpenTptNetworkSetupLegacyExport = 1; - -const int gestaltOpenTptNetworkSetupLegacyImport = 0; - -const int gestaltOpenTptNetworkSetupSupportsMultihoming = 2; - -const int gestaltOpenTptNetworkSetupVersion = 1869898614; - -const int gestaltOpenTptPPPPresent = 5; - -const int gestaltOpenTptPresentBit = 0; - -const int gestaltOpenTptPresentMask = 1; - -const int gestaltOpenTptRemoteAccess = 1869902433; - -const int gestaltOpenTptRemoteAccessClientOnly = 2; - -const int gestaltOpenTptRemoteAccessLoaded = 1; - -const int gestaltOpenTptRemoteAccessMPServer = 4; - -const int gestaltOpenTptRemoteAccessPServer = 3; - -const int gestaltOpenTptRemoteAccessPresent = 0; - -const int gestaltOpenTptRemoteAccessVersion = 1869902454; - -const int gestaltOpenTptTCPLoadedBit = 5; - -const int gestaltOpenTptTCPLoadedMask = 32; - -const int gestaltOpenTptTCPPresentBit = 4; - -const int gestaltOpenTptTCPPresentMask = 16; - -const int gestaltOpenTptVersions = 1869903474; - -const int gestaltOriginalATSUVersion = 65536; - -const int gestaltOriginalQD = 0; - -const int gestaltOriginalQDText = 0; - -const int gestaltOutlineFonts = 0; - -const int gestaltPCCard = 1885561700; - -const int gestaltPCCardFamilyPresent = 1; - -const int gestaltPCCardHasPowerControl = 2; - -const int gestaltPCCardSupportsCardBus = 3; - -const int gestaltPCXAttr = 1885567079; - -const int gestaltPCXHas8and16BitFAT = 0; - -const int gestaltPCXHasProDOS = 1; - -const int gestaltPCXNewUI = 2; - -const int gestaltPCXUseICMapping = 3; - -const int gestaltPMgrCPUIdle = 1; - -const int gestaltPMgrDispatchExists = 4; - -const int gestaltPMgrExists = 0; - -const int gestaltPMgrSCC = 2; - -const int gestaltPMgrSound = 3; - -const int gestaltPMgrSupportsAVPowerStateAtSleepWake = 5; - -const int gestaltPPCDragLibPresent = 2; - -const int gestaltPPCQuickTimeLibPresent = 0; - -const int gestaltPPCSupportsIncoming = 1; - -const int gestaltPPCSupportsIncomingAppleTalk = 16; - -const int gestaltPPCSupportsIncomingTCP_IP = 32; - -const int gestaltPPCSupportsOutGoing = 2; - -const int gestaltPPCSupportsOutgoingAppleTalk = 256; - -const int gestaltPPCSupportsOutgoingTCP_IP = 512; - -const int gestaltPPCSupportsRealTime = 4096; - -const int gestaltPPCSupportsTCP_IP = 4; - -const int gestaltPPCToolboxAttr = 1886413600; - -const int gestaltPPCToolboxPresent = 0; - -const int gestaltPS2Keyboard = 27; - -const int gestaltParityAttr = 1886549113; - -const int gestaltParityEnabled = 1; - -const int gestaltPartialRsrcs = 0; - -const int gestaltPerforma250 = 49; - -const int gestaltPerforma450 = 27; - -const int gestaltPerforma46x = 62; - -const int gestaltPerforma47x = 89; - -const int gestaltPerforma5300 = 41; - -const int gestaltPerforma550 = 80; - -const int gestaltPerforma580 = 99; - -const int gestaltPerforma600 = 45; - -const int gestaltPerforma6300 = 42; - -const int gestaltPerforma6360 = 58; - -const int gestaltPerforma6400 = 58; - -const int gestaltPhysicalRAMSize = 1918987552; - -const int gestaltPhysicalRAMSizeInMegabytes = 1918987629; - -const int gestaltPlayAndRecord = 6; - -const int gestaltPopupAttr = 1886351393; - -const int gestaltPopupPresent = 0; - -const int gestaltPortADisabled = 5; - -const int gestaltPortBDisabled = 6; - -const int gestaltPortable = 10; - -const int gestaltPortable2001ANSIKbd = 202; - -const int gestaltPortable2001ISOKbd = 203; - -const int gestaltPortable2001JISKbd = 207; - -const int gestaltPortableSlotPresent = 4; - -const int gestaltPortableUSBANSIKbd = 37; - -const int gestaltPortableUSBISOKbd = 38; - -const int gestaltPortableUSBJISKbd = 39; - -const int gestaltPowerBook100 = 24; - -const int gestaltPowerBook140 = 25; - -const int gestaltPowerBook1400 = 310; - -const int gestaltPowerBook145 = 54; - -const int gestaltPowerBook150 = 115; - -const int gestaltPowerBook160 = 34; - -const int gestaltPowerBook165 = 84; - -const int gestaltPowerBook165c = 50; - -const int gestaltPowerBook170 = 21; - -const int gestaltPowerBook180 = 33; - -const int gestaltPowerBook180c = 71; - -const int gestaltPowerBook190 = 85; - -const int gestaltPowerBook2400 = 307; - -const int gestaltPowerBook3400 = 306; - -const int gestaltPowerBook500PPCUpgrade = 126; - -const int gestaltPowerBook520 = 72; - -const int gestaltPowerBook520c = 72; - -const int gestaltPowerBook5300 = 128; - -const int gestaltPowerBook540 = 72; - -const int gestaltPowerBook540c = 72; - -const int gestaltPowerBookDuo210 = 29; - -const int gestaltPowerBookDuo230 = 32; - -const int gestaltPowerBookDuo2300 = 124; - -const int gestaltPowerBookDuo250 = 38; - -const int gestaltPowerBookDuo270c = 77; - -const int gestaltPowerBookDuo280 = 102; - -const int gestaltPowerBookDuo280c = 103; - -const int gestaltPowerBookG3 = 313; - -const int gestaltPowerBookG3Series = 312; - -const int gestaltPowerBookG3Series2 = 314; - -const int gestaltPowerMac4400 = 515; - -const int gestaltPowerMac4400_160 = 514; - -const int gestaltPowerMac5200 = 41; - -const int gestaltPowerMac5260 = 41; - -const int gestaltPowerMac5400 = 74; - -const int gestaltPowerMac5500 = 512; - -const int gestaltPowerMac6100_60 = 75; - -const int gestaltPowerMac6100_66 = 100; - -const int gestaltPowerMac6200 = 42; - -const int gestaltPowerMac6400 = 58; - -const int gestaltPowerMac6500 = 513; - -const int gestaltPowerMac7100_66 = 112; - -const int gestaltPowerMac7100_80 = 47; - -const int gestaltPowerMac7200 = 108; - -const int gestaltPowerMac7300 = 109; - -const int gestaltPowerMac7500 = 68; - -const int gestaltPowerMac7600 = 68; - -const int gestaltPowerMac8100_100 = 55; - -const int gestaltPowerMac8100_110 = 40; - -const int gestaltPowerMac8100_120 = 12; - -const int gestaltPowerMac8100_80 = 65; - -const int gestaltPowerMac8500 = 69; - -const int gestaltPowerMac8600 = 69; - -const int gestaltPowerMac9500 = 67; - -const int gestaltPowerMac9600 = 67; - -const int gestaltPowerMacCentris610 = 119; - -const int gestaltPowerMacCentris650 = 120; - -const int gestaltPowerMacG3 = 510; - -const int gestaltPowerMacLC475 = 104; - -const int gestaltPowerMacLC575 = 105; - -const int gestaltPowerMacLC630 = 106; - -const int gestaltPowerMacNewWorld = 406; - -const int gestaltPowerMacPerforma47x = 104; - -const int gestaltPowerMacPerforma57x = 105; - -const int gestaltPowerMacPerforma63x = 106; - -const int gestaltPowerMacQuadra610 = 121; - -const int gestaltPowerMacQuadra630 = 106; - -const int gestaltPowerMacQuadra650 = 122; - -const int gestaltPowerMacQuadra700 = 116; - -const int gestaltPowerMacQuadra800 = 123; - -const int gestaltPowerMacQuadra900 = 117; - -const int gestaltPowerMacQuadra950 = 118; - -const int gestaltPowerMgrAttr = 1886353266; - -const int gestaltPowerMgrVers = 1886876278; - -const int gestaltPowerPC = 2; - -const int gestaltPowerPCASArchitecture = 8; - -const int gestaltPowerPCAware = 0; - -const int gestaltPowerPCHas64BitSupport = 6; - -const int gestaltPowerPCHasDCBAInstruction = 3; - -const int gestaltPowerPCHasDCBTStreams = 7; - -const int gestaltPowerPCHasDataStreams = 5; - -const int gestaltPowerPCHasGraphicsInstructions = 0; - -const int gestaltPowerPCHasSTFIWXInstruction = 1; - -const int gestaltPowerPCHasSquareRootInstructions = 2; - -const int gestaltPowerPCHasVectorInstructions = 4; - -const int gestaltPowerPCIgnoresDCBST = 9; - -const int gestaltPowerPCProcessorFeatures = 1886413670; - -const int gestaltProF16ANSIKbd = 31; - -const int gestaltProF16ISOKbd = 32; - -const int gestaltProF16JISKbd = 33; - -const int gestaltProcClkSpeed = 1885564011; - -const int gestaltProcClkSpeedMHz = 1835232363; - -const int gestaltProcessorCacheLineSize = 1668508026; - -const int gestaltProcessorType = 1886547811; - -const int gestaltPrtblADBKbd = 6; - -const int gestaltPrtblISOKbd = 7; - -const int gestaltPwrBk99JISKbd = 201; - -const int gestaltPwrBkEKDomKbd = 195; - -const int gestaltPwrBkEKISOKbd = 196; - -const int gestaltPwrBkEKJISKbd = 197; - -const int gestaltPwrBkExtADBKbd = 24; - -const int gestaltPwrBkExtISOKbd = 20; - -const int gestaltPwrBkExtJISKbd = 21; - -const int gestaltPwrBkSubDomKbd = 28; - -const int gestaltPwrBkSubISOKbd = 29; - -const int gestaltPwrBkSubJISKbd = 30; - -const int gestaltPwrBookADBKbd = 12; - -const int gestaltPwrBookISOADBKbd = 13; - -const int gestaltQD3D = 1902392164; - -const int gestaltQD3DPresent = 0; - -const int gestaltQD3DVersion = 1899197984; - -const int gestaltQD3DViewer = 1899198051; - -const int gestaltQD3DViewerPresent = 0; - -const int gestaltQDHasLongRowBytes = 5; - -const int gestaltQDTextFeatures = 1902408806; - -const int gestaltQDTextVersion = 1902408824; - -const int gestaltQTVRCubicPanosPresent = 3; - -const int gestaltQTVRCylinderPanosPresent = 2; - -const int gestaltQTVRMgrAttr = 1903457906; - -const int gestaltQTVRMgrPresent = 0; - -const int gestaltQTVRMgrVers = 1903457910; - -const int gestaltQTVRObjMoviesPresent = 1; - -const int gestaltQuadra605 = 94; - -const int gestaltQuadra610 = 53; - -const int gestaltQuadra630 = 98; - -const int gestaltQuadra650 = 36; - -const int gestaltQuadra660AV = 60; - -const int gestaltQuadra700 = 22; - -const int gestaltQuadra800 = 35; - -const int gestaltQuadra840AV = 78; - -const int gestaltQuadra900 = 20; - -const int gestaltQuadra950 = 26; - -const int gestaltQuickTime = 1903454573; - -const int gestaltQuickTimeConferencing = 1836346475; - -const int gestaltQuickTimeConferencingInfo = 1903453033; - -const int gestaltQuickTimeFeatures = 1903456883; - -const int gestaltQuickTimeStreamingFeatures = 1903457126; - -const int gestaltQuickTimeStreamingVersion = 1903457140; - -const int gestaltQuickTimeThreadSafeFeaturesAttr = 1903457384; - -const int gestaltQuickTimeThreadSafeGraphicsExport = 5; - -const int gestaltQuickTimeThreadSafeGraphicsImport = 4; - -const int gestaltQuickTimeThreadSafeICM = 0; - -const int gestaltQuickTimeThreadSafeMovieExport = 3; - -const int gestaltQuickTimeThreadSafeMovieImport = 2; - -const int gestaltQuickTimeThreadSafeMoviePlayback = 6; - -const int gestaltQuickTimeThreadSafeMovieToolbox = 1; - -const int gestaltQuickTimeVersion = 1903454573; - -const int gestaltQuickdrawFeatures = 1902408311; - -const int gestaltQuickdrawVersion = 1902387232; - -const int gestaltRBVAddr = 1919055392; - -const int gestaltRMFakeAppleMenuItemsRolledIn = 1; - -const int gestaltRMForceSysHeapRolledIn = 0; - -const int gestaltRMSupportsFSCalls = 4; - -const int gestaltRMTypeIndexOrderingReverse = 8; - -const int gestaltROMSize = 1919905056; - -const int gestaltROMVersion = 1919905142; - -const int gestaltRealTempMemory = 5; - -const int gestaltRealtimeMgrAttr = 1920232818; - -const int gestaltRealtimeMgrPresent = 0; - -const int gestaltResourceMgrAttr = 1920168547; - -const int gestaltResourceMgrBugFixesAttrs = 1919771239; - -const int gestaltRevisedTimeMgr = 2; - -const int gestaltSCCReadAddr = 1935893362; - -const int gestaltSCCWriteAddr = 1935893367; - -const int gestaltSCSI = 1935897449; - -const int gestaltSCSIPollSIH = 3; - -const int gestaltSCSISlotBoot = 2; - -const int gestaltSDPFindVersion = 1684434532; - -const int gestaltSDPPromptVersion = 1886548086; - -const int gestaltSDPStandardDirectoryVersion = 1935963762; - -const int gestaltSE30SlotPresent = 3; - -const int gestaltSESlotPresent = 2; - -const int gestaltSFServer = 256; - -const int gestaltSMPMailerVersion = 1835101298; - -const int gestaltSMPSPSendLetterVersion = 1936749420; - -const int gestaltSafeOFAttr = 1935763045; - -const int gestaltSanityCheckResourceFiles = 2; - -const int gestaltSbitFontSupport = 1; - -const int gestaltScrapMgrAttr = 1935897185; - -const int gestaltScrapMgrTranslationAware = 0; - -const int gestaltScreenCaptureDir = 1885954866; - -const int gestaltScreenCaptureMain = 1885954865; - -const int gestaltScriptCount = 1935897123; - -const int gestaltScriptMgrVersion = 1935897193; - -const int gestaltScriptingSupport = 1; - -const int gestaltScrollingThrottle = 0; - -const int gestaltSerialArbitrationExists = 0; - -const int gestaltSerialAttr = 1936028192; - -const int gestaltSetDragImageUpdates = 5; - -const int gestaltSheetsAreWindowModalBit = 7; - -const int gestaltSheetsAreWindowModalMask = 128; - -const int gestaltShutdownAttributes = 1936225652; - -const int gestaltShutdownHassdOnBootVolUnmount = 0; - -const int gestaltSlotAttr = 1936486260; - -const int gestaltSlotMgrExists = 0; - -const int gestaltSndPlayDoubleBuffer = 10; - -const int gestaltSoftwareVendorApple = 1097887852; - -const int gestaltSoftwareVendorCode = 1936875876; - -const int gestaltSoftwareVendorLicensee = 1281584755; - -const int gestaltSoundAttr = 1936614432; - -const int gestaltSoundIOMgrPresent = 3; - -const int gestaltSpecificMatchSupport = 1; - -const int gestaltSpeechAttr = 1953788771; - -const int gestaltSpeechHasPPCGlue = 1; - -const int gestaltSpeechMgrPresent = 0; - -const int gestaltSpeechRecognitionAttr = 1936880737; - -const int gestaltSpeechRecognitionVersion = 1936880738; - -const int gestaltSplitOSAttr = 1936748403; - -const int gestaltSplitOSAware = 1; - -const int gestaltSplitOSBootDriveIsNetworkVolume = 0; - -const int gestaltSplitOSEnablerVolumeIsDifferentFromBootVolume = 2; - -const int gestaltSplitOSMachineNameSetToNetworkNameTemp = 3; - -const int gestaltSplitOSMachineNameStartupDiskIsNonPersistent = 5; - -const int gestaltSquareMenuBar = 2; - -const int gestaltStandardFile58 = 0; - -const int gestaltStandardFileAttr = 1937007718; - -const int gestaltStandardFileHasColorIcons = 2; - -const int gestaltStandardFileHasDynamicVolumeAllocation = 4; - -const int gestaltStandardFileTranslationAware = 1; - -const int gestaltStandardFileUseGenericIcons = 3; - -const int gestaltStandardTimeMgr = 1; - -const int gestaltStdADBKbd = 5; - -const int gestaltStdISOADBKbd = 8; - -const int gestaltStdNBPAttr = 1852601712; - -const int gestaltStdNBPPresent = 0; - -const int gestaltStdNBPSupportsAutoPosition = 1; - -const int gestaltStereoCapability = 0; - -const int gestaltStereoInput = 8; - -const int gestaltStereoMixing = 1; - -const int gestaltSupportsApplicationURL = 4; - -const int gestaltSupportsFSpResourceFileAlreadyOpenBit = 3; - -const int gestaltSupportsMirroring = 4; - -const int gestaltSysArchitecture = 1937339233; - -const int gestaltSysDebuggerSupport = 8; - -const int gestaltSysZoneGrowable = 0; - -const int gestaltSystemUpdateVersion = 1937339253; - -@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') -const int gestaltSystemVersion = 1937339254; - -@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') -const int gestaltSystemVersionBugFix = 1937339187; - -@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') -const int gestaltSystemVersionMajor = 1937339185; - -@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') -const int gestaltSystemVersionMinor = 1937339186; - -const int gestaltTE1 = 1; - -const int gestaltTE2 = 2; - -const int gestaltTE3 = 3; - -const int gestaltTE4 = 4; - -const int gestaltTE5 = 5; - -const int gestaltTE6 = 6; - -const int gestaltTEAttr = 1952801140; - -const int gestaltTEHasGetHiliteRgn = 0; - -const int gestaltTEHasWhiteBackground = 3; - -const int gestaltTESupportsInlineInput = 1; - -const int gestaltTESupportsTextObjects = 2; - -const int gestaltTSMDisplayMgrAwareBit = 0; - -const int gestaltTSMTE = 0; - -const int gestaltTSMTE1 = 256; - -const int gestaltTSMTE15 = 336; - -const int gestaltTSMTE152 = 338; - -const int gestaltTSMTEAttr = 1953322053; - -const int gestaltTSMTEPresent = 0; - -const int gestaltTSMTEVersion = 1953322070; - -const int gestaltTSMdoesTSMTEBit = 1; - -const int gestaltTSMgr15 = 336; - -const int gestaltTSMgr20 = 512; - -const int gestaltTSMgr22 = 544; - -const int gestaltTSMgr23 = 560; - -const int gestaltTSMgrAttr = 1953721697; - -const int gestaltTSMgrVersion = 1953721718; - -const int gestaltTVAttr = 1953898528; - -const int gestaltTeleMgrAttr = 1952803941; - -const int gestaltTeleMgrAutoAnswer = 3; - -const int gestaltTeleMgrIndHandset = 4; - -const int gestaltTeleMgrNewTELNewSupport = 6; - -const int gestaltTeleMgrPowerPCSupport = 1; - -const int gestaltTeleMgrPresent = 0; - -const int gestaltTeleMgrSilenceDetect = 5; - -const int gestaltTeleMgrSoundStreams = 2; - -const int gestaltTelephoneSpeechRecognition = 2; - -const int gestaltTempMemSupport = 4; - -const int gestaltTempMemTracked = 6; - -const int gestaltTermMgrAttr = 1952805485; - -const int gestaltTermMgrErrorString = 2; - -const int gestaltTermMgrPresent = 0; - -const int gestaltTextEditVersion = 1952784416; - -const int gestaltThirdPartyANSIKbd = 40; - -const int gestaltThirdPartyISOKbd = 41; - -const int gestaltThirdPartyJISKbd = 42; - -const int gestaltThreadMgrAttr = 1952998515; - -const int gestaltThreadMgrPresent = 0; - -const int gestaltThreadsLibraryPresent = 2; - -const int gestaltTimeMgrVersion = 1953326962; - -const int gestaltToolboxTable = 1952609396; - -const int gestaltTranslationAttr = 2020368756; - -const int gestaltTranslationGetPathAPIAvail = 3; - -const int gestaltTranslationMgrExists = 0; - -const int gestaltTranslationMgrHintOrder = 1; - -const int gestaltTranslationPPCAvail = 2; - -const int gestaltUDFSupport = 1802855526; - -const int gestaltUSBAndyANSIKbd = 204; - -const int gestaltUSBAndyISOKbd = 205; - -const int gestaltUSBAndyJISKbd = 206; - -const int gestaltUSBAttr = 1970496032; - -const int gestaltUSBCosmoANSIKbd = 198; - -const int gestaltUSBCosmoISOKbd = 199; - -const int gestaltUSBCosmoJISKbd = 200; - -const int gestaltUSBHasIsoch = 1; - -const int gestaltUSBPresent = 0; - -const int gestaltUSBPrinterSharingAttr = 2053204768; - -const int gestaltUSBPrinterSharingAttrBooted = 1073741824; - -const int gestaltUSBPrinterSharingAttrMask = -65536; - -const int gestaltUSBPrinterSharingAttrRunning = -2147483648; - -const int gestaltUSBPrinterSharingVersion = 2053204768; - -const int gestaltUSBPrinterSharingVersionMask = 65535; - -const int gestaltUSBProF16ANSIKbd = 34; - -const int gestaltUSBProF16ISOKbd = 35; - -const int gestaltUSBProF16JISKbd = 36; - -const int gestaltUSBVersion = 1970496118; - -const int gestaltUndefSelectorErr = -5551; - -const int gestaltUnknownErr = -5550; - -const int gestaltUnknownThirdPartyKbd = 3; - -const int gestaltUserVisibleMachineName = 1835950445; - -const int gestaltVIA1Addr = 1986617649; - -const int gestaltVIA2Addr = 1986617650; - -const int gestaltVMAttr = 1986863136; - -const int gestaltVMBackingStoreFileRefNum = 1986880115; - -const int gestaltVMFilemappingOn = 3; - -const int gestaltVMHasLockMemoryForOutput = 1; - -const int gestaltVMHasPagingControl = 4; - -const int gestaltVMInfoNoneType = 3; - -const int gestaltVMInfoSimpleType = 2; - -const int gestaltVMInfoSizeStorageType = 0; - -const int gestaltVMInfoSizeType = 1; - -const int gestaltVMInfoType = 1986881902; - -const int gestaltVMPresent = 0; - -const int gestaltVMZerosPagesBit = 0; - -const int gestaltValueImplementedVers = 5; - -const int gestaltVersion = 1986359923; - -const int gestaltWSIICanPrintWithoutPrGeneralBit = 0; - -const int gestaltWSIISupport = 0; - -const int gestaltWindowLiveResizeBit = 4; - -const int gestaltWindowLiveResizeMask = 16; - -const int gestaltWindowMgrAttr = 2003398244; - -const int gestaltWindowMgrPresent = 1; - -const int gestaltWindowMgrPresentBit = 0; - -const int gestaltWindowMgrPresentMask = 1; - -const int gestaltWindowMinimizeToDockBit = 5; - -const int gestaltWindowMinimizeToDockMask = 32; - -const int gestaltWorldScriptIIAttr = 2004050292; - -const int gestaltWorldScriptIIVersion = 1685026146; - -const int gestaltX86AdditionalFeatures = 2016949857; - -const int gestaltX86Features = 2016949862; - -const int gestaltX86HasAPIC = 9; - -const int gestaltX86HasCID = 10; - -const int gestaltX86HasCLFSH = 19; - -const int gestaltX86HasCMOV = 15; - -const int gestaltX86HasCX16 = 13; - -const int gestaltX86HasCX8 = 8; - -const int gestaltX86HasDE = 2; - -const int gestaltX86HasDS = 21; - -const int gestaltX86HasDSCPL = 4; - -const int gestaltX86HasEST = 7; - -const int gestaltX86HasFPU = 0; - -const int gestaltX86HasFXSR = 24; - -const int gestaltX86HasHTT = 28; - -const int gestaltX86HasMCA = 14; - -const int gestaltX86HasMCE = 7; - -const int gestaltX86HasMMX = 23; - -const int gestaltX86HasMONITOR = 3; - -const int gestaltX86HasMSR = 5; - -const int gestaltX86HasMTRR = 12; - -const int gestaltX86HasPAE = 6; - -const int gestaltX86HasPAT = 16; - -const int gestaltX86HasPGE = 13; - -const int gestaltX86HasPSE = 3; - -const int gestaltX86HasPSE36 = 17; - -const int gestaltX86HasPSN = 18; - -const int gestaltX86HasSEP = 11; - -const int gestaltX86HasSMX = 6; - -const int gestaltX86HasSS = 27; - -const int gestaltX86HasSSE = 25; - -const int gestaltX86HasSSE2 = 26; - -const int gestaltX86HasSSE3 = 0; - -const int gestaltX86HasSupplementalSSE3 = 9; - -const int gestaltX86HasTM = 29; - -const int gestaltX86HasTM2 = 8; - -const int gestaltX86HasTSC = 4; - -const int gestaltX86HasVME = 1; - -const int gestaltX86HasVMX = 5; - -const int gestaltX86HasxTPR = 14; - -const int gestaltX86ResACPI = 22; - -const int gestaltX86Serviced20 = 20; - -const int gfpErr = -52; - -typedef gid_t = __darwin_gid_t; - -@ffi.Packed(4) -final class gpu_energy_data extends ffi.Struct { - @ffi.Uint64() - external int task_gpu_utilisation; - - @ffi.Uint64() - external int task_gpu_stat_reserved0; - - @ffi.Uint64() - external int task_gpu_stat_reserved1; - - @ffi.Uint64() - external int task_gpu_stat_reserved2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int task_gpu_utilisation, - required int task_gpu_stat_reserved0, - required int task_gpu_stat_reserved1, - required int task_gpu_stat_reserved2, - }) => $allocator() - ..ref.task_gpu_utilisation = task_gpu_utilisation - ..ref.task_gpu_stat_reserved0 = task_gpu_stat_reserved0 - ..ref.task_gpu_stat_reserved1 = task_gpu_stat_reserved1 - ..ref.task_gpu_stat_reserved2 = task_gpu_stat_reserved2; -} - -typedef gpu_energy_data_t = ffi.Pointer; - -const int grabTimeComplete = -9401; - -@Deprecated('Deprecated') -const int graveUprE = 233; - -@Deprecated('Deprecated') -const int graveUprI = 237; - -@Deprecated('Deprecated') -const int graveUprO = 241; - -@Deprecated('Deprecated') -const int graveUprU = 244; - -@ffi.Packed(4) -final class group_req extends ffi.Struct { - @ffi.Uint32() - external int gr_interface; - - external sockaddr_storage gr_group; -} - -@ffi.Packed(4) -final class group_source_req extends ffi.Struct { - @ffi.Uint32() - external int gsr_interface; - - external sockaddr_storage gsr_group; - - external sockaddr_storage gsr_source; -} - -const int guestNotAllowedErr = -932; - -final class guid_t extends ffi.Union { - @ffi.Array.multi([16]) - external ffi.Array g_guid; - - @ffi.Array.multi([4]) - external ffi.Array g_guid_asint; -} - -const int hMenuFindErr = -127; - -@Deprecated('Deprecated') -const int hachek = 255; - -const int handlerNotFoundErr = -1856; - -const int hardwareConfigErr = -604; - -final class hash_info_bucket extends ffi.Struct { - @natural_t() - external int hib_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int hib_count, - }) => $allocator()..ref.hib_count = hib_count; -} - -typedef hash_info_bucket_array_t = ffi.Pointer; -typedef hash_info_bucket_t = hash_info_bucket; - -const int hitDev = 1; - -const int hmBalloonAborted = -853; - -const int hmCloseViewActive = -863; - -const int hmHelpDisabled = -850; - -const int hmHelpManagerNotInited = -855; - -const int hmNoBalloonUp = -862; - -const int hmOperationUnsupported = -861; - -const int hmSameAsLastBalloon = -854; - -const int hmSkippedBalloon = -857; - -const int hmUnknownHelpType = -859; - -const int hmWrongVersion = -858; - -@ffi.Packed(4) -final class host_basic_info extends ffi.Struct { - @integer_t() - external int max_cpus; - - @integer_t() - external int avail_cpus; - - @natural_t() - external int memory_size; - - @cpu_type_t() - external int cpu_type; - - @cpu_subtype_t() - external int cpu_subtype; - - @cpu_threadtype_t() - external int cpu_threadtype; - - @integer_t() - external int physical_cpu; - - @integer_t() - external int physical_cpu_max; - - @integer_t() - external int logical_cpu; - - @integer_t() - external int logical_cpu_max; - - @ffi.Uint64() - external int max_mem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_cpus, - required int avail_cpus, - required int memory_size, - required int cpu_type, - required int cpu_subtype, - required int cpu_threadtype, - required int physical_cpu, - required int physical_cpu_max, - required int logical_cpu, - required int logical_cpu_max, - required int max_mem, - }) => $allocator() - ..ref.max_cpus = max_cpus - ..ref.avail_cpus = avail_cpus - ..ref.memory_size = memory_size - ..ref.cpu_type = cpu_type - ..ref.cpu_subtype = cpu_subtype - ..ref.cpu_threadtype = cpu_threadtype - ..ref.physical_cpu = physical_cpu - ..ref.physical_cpu_max = physical_cpu_max - ..ref.logical_cpu = logical_cpu - ..ref.logical_cpu_max = logical_cpu_max - ..ref.max_mem = max_mem; -} - -typedef host_basic_info_data_t = host_basic_info; -typedef host_basic_info_t = ffi.Pointer; - -final class host_can_has_debugger_info extends ffi.Struct { - @boolean_t() - external int can_has_debugger; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int can_has_debugger, - }) => - $allocator() - ..ref.can_has_debugger = can_has_debugger; -} - -typedef host_can_has_debugger_info_data_t = host_can_has_debugger_info; -typedef host_can_has_debugger_info_t = ffi.Pointer; - -final class host_cpu_load_info extends ffi.Struct { - @ffi.Array.multi([4]) - external ffi.Array cpu_ticks; -} - -typedef host_cpu_load_info_data_t = host_cpu_load_info; -typedef host_cpu_load_info_t = ffi.Pointer; -typedef host_flavor_t = integer_t; -typedef host_info64_t = ffi.Pointer; -typedef host_info_t = ffi.Pointer; - -final class host_load_info extends ffi.Struct { - @ffi.Array.multi([3]) - external ffi.Array avenrun; - - @ffi.Array.multi([3]) - external ffi.Array mach_factor; -} - -typedef host_load_info_data_t = host_load_info; -typedef host_load_info_t = ffi.Pointer; -typedef host_name_port_t = host_t; -typedef host_name_t = host_t; - -final class host_preferred_user_arch extends ffi.Struct { - @cpu_type_t() - external int cpu_type; - - @cpu_subtype_t() - external int cpu_subtype; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cpu_type, - required int cpu_subtype, - }) => $allocator() - ..ref.cpu_type = cpu_type - ..ref.cpu_subtype = cpu_subtype; -} - -typedef host_preferred_user_arch_data_t = host_preferred_user_arch; -typedef host_preferred_user_arch_t = ffi.Pointer; - -final class host_priority_info extends ffi.Struct { - @integer_t() - external int kernel_priority; - - @integer_t() - external int system_priority; - - @integer_t() - external int server_priority; - - @integer_t() - external int user_priority; - - @integer_t() - external int depress_priority; - - @integer_t() - external int idle_priority; - - @integer_t() - external int minimum_priority; - - @integer_t() - external int maximum_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int kernel_priority, - required int system_priority, - required int server_priority, - required int user_priority, - required int depress_priority, - required int idle_priority, - required int minimum_priority, - required int maximum_priority, - }) => $allocator() - ..ref.kernel_priority = kernel_priority - ..ref.system_priority = system_priority - ..ref.server_priority = server_priority - ..ref.user_priority = user_priority - ..ref.depress_priority = depress_priority - ..ref.idle_priority = idle_priority - ..ref.minimum_priority = minimum_priority - ..ref.maximum_priority = maximum_priority; -} - -typedef host_priority_info_data_t = host_priority_info; -typedef host_priority_info_t = ffi.Pointer; -typedef host_priv_t = mach_port_t; -typedef host_purgable_info_data_t = vm_purgeable_info; -typedef host_purgable_info_t = ffi.Pointer; - -final class host_sched_info extends ffi.Struct { - @integer_t() - external int min_timeout; - - @integer_t() - external int min_quantum; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int min_timeout, - required int min_quantum, - }) => $allocator() - ..ref.min_timeout = min_timeout - ..ref.min_quantum = min_quantum; -} - -typedef host_sched_info_data_t = host_sched_info; -typedef host_sched_info_t = ffi.Pointer; -typedef host_security_t = mach_port_t; -typedef host_t = mach_port_t; - -final class hostent extends ffi.Struct { - external ffi.Pointer h_name; - - external ffi.Pointer> h_aliases; - - @ffi.Int() - external int h_addrtype; - - @ffi.Int() - external int h_length; - - external ffi.Pointer> h_addr_list; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer h_name, - required ffi.Pointer> h_aliases, - required int h_addrtype, - required int h_length, - required ffi.Pointer> h_addr_list, - }) => $allocator() - ..ref.h_name = h_name - ..ref.h_aliases = h_aliases - ..ref.h_addrtype = h_addrtype - ..ref.h_length = h_length - ..ref.h_addr_list = h_addr_list; -} - -const int hourField = 4; - -const int hourMask = 16; - -const int hrHTMLRenderingLibNotInstalledErr = -5360; - -const int hrLeadingZ = 128; - -const int hrMiscellaneousExceptionErr = -5361; - -const int hrURLNotHandledErr = -5363; - -const int hrUnableToResizeHandleErr = -5362; - -typedef http_addr_t = _http_addr_u; - -final class http_addrlist_s extends ffi.Struct { - external ffi.Pointer next; - - external http_addr_t addr; -} - -typedef http_addrlist_t = http_addrlist_s; - -enum http_auth_e { - HTTP_AUTH_NONE(0), - HTTP_AUTH_BASIC(1), - HTTP_AUTH_MD5(2), - HTTP_AUTH_MD5_SESS(3), - HTTP_AUTH_MD5_INT(4), - HTTP_AUTH_MD5_SESS_INT(5), - HTTP_AUTH_NEGOTIATE(6); - - final int value; - const http_auth_e(this.value); - - static http_auth_e fromValue(int value) => switch (value) { - 0 => HTTP_AUTH_NONE, - 1 => HTTP_AUTH_BASIC, - 2 => HTTP_AUTH_MD5, - 3 => HTTP_AUTH_MD5_SESS, - 4 => HTTP_AUTH_MD5_INT, - 5 => HTTP_AUTH_MD5_SESS_INT, - 6 => HTTP_AUTH_NEGOTIATE, - _ => throw ArgumentError('Unknown value for http_auth_e: $value'), - }; -} - -final class http_credential_s extends ffi.Struct { - external ffi.Pointer data; - - @ffi.Size() - external int datalen; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer data, - required int datalen, - }) => $allocator() - ..ref.data = data - ..ref.datalen = datalen; -} - -typedef http_credential_t = http_credential_s; - -enum http_encoding_e { - HTTP_ENCODING_LENGTH(0), - HTTP_ENCODING_CHUNKED(1), - HTTP_ENCODING_FIELDS(2); - - final int value; - const http_encoding_e(this.value); - - static http_encoding_e fromValue(int value) => switch (value) { - 0 => HTTP_ENCODING_LENGTH, - 1 => HTTP_ENCODING_CHUNKED, - 2 => HTTP_ENCODING_FIELDS, - _ => throw ArgumentError('Unknown value for http_encoding_e: $value'), - }; -} - -enum http_encryption_e { - HTTP_ENCRYPTION_IF_REQUESTED(0), - HTTP_ENCRYPTION_NEVER(1), - HTTP_ENCRYPTION_REQUIRED(2), - HTTP_ENCRYPTION_ALWAYS(3); - - final int value; - const http_encryption_e(this.value); - - static http_encryption_e fromValue(int value) => switch (value) { - 0 => HTTP_ENCRYPTION_IF_REQUESTED, - 1 => HTTP_ENCRYPTION_NEVER, - 2 => HTTP_ENCRYPTION_REQUIRED, - 3 => HTTP_ENCRYPTION_ALWAYS, - _ => throw ArgumentError('Unknown value for http_encryption_e: $value'), - }; -} - -enum http_field_e { - HTTP_FIELD_UNKNOWN(-1), - HTTP_FIELD_ACCEPT_LANGUAGE(0), - HTTP_FIELD_ACCEPT_RANGES(1), - HTTP_FIELD_AUTHORIZATION(2), - HTTP_FIELD_CONNECTION(3), - HTTP_FIELD_CONTENT_ENCODING(4), - HTTP_FIELD_CONTENT_LANGUAGE(5), - HTTP_FIELD_CONTENT_LENGTH(6), - HTTP_FIELD_CONTENT_LOCATION(7), - HTTP_FIELD_CONTENT_MD5(8), - HTTP_FIELD_CONTENT_RANGE(9), - HTTP_FIELD_CONTENT_TYPE(10), - HTTP_FIELD_CONTENT_VERSION(11), - HTTP_FIELD_DATE(12), - HTTP_FIELD_HOST(13), - HTTP_FIELD_IF_MODIFIED_SINCE(14), - HTTP_FIELD_IF_UNMODIFIED_SINCE(15), - HTTP_FIELD_KEEP_ALIVE(16), - HTTP_FIELD_LAST_MODIFIED(17), - HTTP_FIELD_LINK(18), - HTTP_FIELD_LOCATION(19), - HTTP_FIELD_RANGE(20), - HTTP_FIELD_REFERER(21), - HTTP_FIELD_RETRY_AFTER(22), - HTTP_FIELD_TRANSFER_ENCODING(23), - HTTP_FIELD_UPGRADE(24), - HTTP_FIELD_USER_AGENT(25), - HTTP_FIELD_WWW_AUTHENTICATE(26), - HTTP_FIELD_ACCEPT_ENCODING(27), - HTTP_FIELD_ALLOW(28), - HTTP_FIELD_SERVER(29), - HTTP_FIELD_AUTHENTICATION_INFO(30), - HTTP_FIELD_MAX(31); - - final int value; - const http_field_e(this.value); - - static http_field_e fromValue(int value) => switch (value) { - -1 => HTTP_FIELD_UNKNOWN, - 0 => HTTP_FIELD_ACCEPT_LANGUAGE, - 1 => HTTP_FIELD_ACCEPT_RANGES, - 2 => HTTP_FIELD_AUTHORIZATION, - 3 => HTTP_FIELD_CONNECTION, - 4 => HTTP_FIELD_CONTENT_ENCODING, - 5 => HTTP_FIELD_CONTENT_LANGUAGE, - 6 => HTTP_FIELD_CONTENT_LENGTH, - 7 => HTTP_FIELD_CONTENT_LOCATION, - 8 => HTTP_FIELD_CONTENT_MD5, - 9 => HTTP_FIELD_CONTENT_RANGE, - 10 => HTTP_FIELD_CONTENT_TYPE, - 11 => HTTP_FIELD_CONTENT_VERSION, - 12 => HTTP_FIELD_DATE, - 13 => HTTP_FIELD_HOST, - 14 => HTTP_FIELD_IF_MODIFIED_SINCE, - 15 => HTTP_FIELD_IF_UNMODIFIED_SINCE, - 16 => HTTP_FIELD_KEEP_ALIVE, - 17 => HTTP_FIELD_LAST_MODIFIED, - 18 => HTTP_FIELD_LINK, - 19 => HTTP_FIELD_LOCATION, - 20 => HTTP_FIELD_RANGE, - 21 => HTTP_FIELD_REFERER, - 22 => HTTP_FIELD_RETRY_AFTER, - 23 => HTTP_FIELD_TRANSFER_ENCODING, - 24 => HTTP_FIELD_UPGRADE, - 25 => HTTP_FIELD_USER_AGENT, - 26 => HTTP_FIELD_WWW_AUTHENTICATE, - 27 => HTTP_FIELD_ACCEPT_ENCODING, - 28 => HTTP_FIELD_ALLOW, - 29 => HTTP_FIELD_SERVER, - 30 => HTTP_FIELD_AUTHENTICATION_INFO, - 31 => HTTP_FIELD_MAX, - _ => throw ArgumentError('Unknown value for http_field_e: $value'), - }; -} - -enum http_keepalive_e { - HTTP_KEEPALIVE_OFF(0), - HTTP_KEEPALIVE_ON(1); - - final int value; - const http_keepalive_e(this.value); - - static http_keepalive_e fromValue(int value) => switch (value) { - 0 => HTTP_KEEPALIVE_OFF, - 1 => HTTP_KEEPALIVE_ON, - _ => throw ArgumentError('Unknown value for http_keepalive_e: $value'), - }; -} - -enum http_state_e { - HTTP_STATE_ERROR(-1), - HTTP_STATE_WAITING(0), - HTTP_STATE_OPTIONS(1), - HTTP_STATE_GET(2), - HTTP_STATE_GET_SEND(3), - HTTP_STATE_HEAD(4), - HTTP_STATE_POST(5), - HTTP_STATE_POST_RECV(6), - HTTP_STATE_POST_SEND(7), - HTTP_STATE_PUT(8), - HTTP_STATE_PUT_RECV(9), - HTTP_STATE_DELETE(10), - HTTP_STATE_TRACE(11), - HTTP_STATE_CONNECT(12), - HTTP_STATE_STATUS(13), - HTTP_STATE_UNKNOWN_METHOD(14), - HTTP_STATE_UNKNOWN_VERSION(15); - - final int value; - const http_state_e(this.value); - - static http_state_e fromValue(int value) => switch (value) { - -1 => HTTP_STATE_ERROR, - 0 => HTTP_STATE_WAITING, - 1 => HTTP_STATE_OPTIONS, - 2 => HTTP_STATE_GET, - 3 => HTTP_STATE_GET_SEND, - 4 => HTTP_STATE_HEAD, - 5 => HTTP_STATE_POST, - 6 => HTTP_STATE_POST_RECV, - 7 => HTTP_STATE_POST_SEND, - 8 => HTTP_STATE_PUT, - 9 => HTTP_STATE_PUT_RECV, - 10 => HTTP_STATE_DELETE, - 11 => HTTP_STATE_TRACE, - 12 => HTTP_STATE_CONNECT, - 13 => HTTP_STATE_STATUS, - 14 => HTTP_STATE_UNKNOWN_METHOD, - 15 => HTTP_STATE_UNKNOWN_VERSION, - _ => throw ArgumentError('Unknown value for http_state_e: $value'), - }; -} - -enum http_status_e { - HTTP_STATUS_ERROR(-1), - HTTP_STATUS_NONE(0), - HTTP_STATUS_CONTINUE(100), - HTTP_STATUS_SWITCHING_PROTOCOLS(101), - HTTP_STATUS_OK(200), - HTTP_STATUS_CREATED(201), - HTTP_STATUS_ACCEPTED(202), - HTTP_STATUS_NOT_AUTHORITATIVE(203), - HTTP_STATUS_NO_CONTENT(204), - HTTP_STATUS_RESET_CONTENT(205), - HTTP_STATUS_PARTIAL_CONTENT(206), - HTTP_STATUS_MULTIPLE_CHOICES(300), - HTTP_STATUS_MOVED_PERMANENTLY(301), - HTTP_STATUS_FOUND(302), - HTTP_STATUS_SEE_OTHER(303), - HTTP_STATUS_NOT_MODIFIED(304), - HTTP_STATUS_USE_PROXY(305), - HTTP_STATUS_TEMPORARY_REDIRECT(307), - HTTP_STATUS_BAD_REQUEST(400), - HTTP_STATUS_UNAUTHORIZED(401), - HTTP_STATUS_PAYMENT_REQUIRED(402), - HTTP_STATUS_FORBIDDEN(403), - HTTP_STATUS_NOT_FOUND(404), - HTTP_STATUS_METHOD_NOT_ALLOWED(405), - HTTP_STATUS_NOT_ACCEPTABLE(406), - HTTP_STATUS_PROXY_AUTHENTICATION(407), - HTTP_STATUS_REQUEST_TIMEOUT(408), - HTTP_STATUS_CONFLICT(409), - HTTP_STATUS_GONE(410), - HTTP_STATUS_LENGTH_REQUIRED(411), - HTTP_STATUS_PRECONDITION(412), - HTTP_STATUS_REQUEST_TOO_LARGE(413), - HTTP_STATUS_URI_TOO_LONG(414), - HTTP_STATUS_UNSUPPORTED_MEDIATYPE(415), - HTTP_STATUS_REQUESTED_RANGE(416), - HTTP_STATUS_EXPECTATION_FAILED(417), - HTTP_STATUS_UPGRADE_REQUIRED(426), - HTTP_STATUS_SERVER_ERROR(500), - HTTP_STATUS_NOT_IMPLEMENTED(501), - HTTP_STATUS_BAD_GATEWAY(502), - HTTP_STATUS_SERVICE_UNAVAILABLE(503), - HTTP_STATUS_GATEWAY_TIMEOUT(504), - HTTP_STATUS_NOT_SUPPORTED(505), - HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED(1000), - HTTP_STATUS_CUPS_PKI_ERROR(1001), - HTTP_STATUS_CUPS_WEBIF_DISABLED(1002); - - final int value; - const http_status_e(this.value); - - static http_status_e fromValue(int value) => switch (value) { - -1 => HTTP_STATUS_ERROR, - 0 => HTTP_STATUS_NONE, - 100 => HTTP_STATUS_CONTINUE, - 101 => HTTP_STATUS_SWITCHING_PROTOCOLS, - 200 => HTTP_STATUS_OK, - 201 => HTTP_STATUS_CREATED, - 202 => HTTP_STATUS_ACCEPTED, - 203 => HTTP_STATUS_NOT_AUTHORITATIVE, - 204 => HTTP_STATUS_NO_CONTENT, - 205 => HTTP_STATUS_RESET_CONTENT, - 206 => HTTP_STATUS_PARTIAL_CONTENT, - 300 => HTTP_STATUS_MULTIPLE_CHOICES, - 301 => HTTP_STATUS_MOVED_PERMANENTLY, - 302 => HTTP_STATUS_FOUND, - 303 => HTTP_STATUS_SEE_OTHER, - 304 => HTTP_STATUS_NOT_MODIFIED, - 305 => HTTP_STATUS_USE_PROXY, - 307 => HTTP_STATUS_TEMPORARY_REDIRECT, - 400 => HTTP_STATUS_BAD_REQUEST, - 401 => HTTP_STATUS_UNAUTHORIZED, - 402 => HTTP_STATUS_PAYMENT_REQUIRED, - 403 => HTTP_STATUS_FORBIDDEN, - 404 => HTTP_STATUS_NOT_FOUND, - 405 => HTTP_STATUS_METHOD_NOT_ALLOWED, - 406 => HTTP_STATUS_NOT_ACCEPTABLE, - 407 => HTTP_STATUS_PROXY_AUTHENTICATION, - 408 => HTTP_STATUS_REQUEST_TIMEOUT, - 409 => HTTP_STATUS_CONFLICT, - 410 => HTTP_STATUS_GONE, - 411 => HTTP_STATUS_LENGTH_REQUIRED, - 412 => HTTP_STATUS_PRECONDITION, - 413 => HTTP_STATUS_REQUEST_TOO_LARGE, - 414 => HTTP_STATUS_URI_TOO_LONG, - 415 => HTTP_STATUS_UNSUPPORTED_MEDIATYPE, - 416 => HTTP_STATUS_REQUESTED_RANGE, - 417 => HTTP_STATUS_EXPECTATION_FAILED, - 426 => HTTP_STATUS_UPGRADE_REQUIRED, - 500 => HTTP_STATUS_SERVER_ERROR, - 501 => HTTP_STATUS_NOT_IMPLEMENTED, - 502 => HTTP_STATUS_BAD_GATEWAY, - 503 => HTTP_STATUS_SERVICE_UNAVAILABLE, - 504 => HTTP_STATUS_GATEWAY_TIMEOUT, - 505 => HTTP_STATUS_NOT_SUPPORTED, - 1000 => HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED, - 1001 => HTTP_STATUS_CUPS_PKI_ERROR, - 1002 => HTTP_STATUS_CUPS_WEBIF_DISABLED, - _ => throw ArgumentError('Unknown value for http_status_e: $value'), - }; -} - -typedef http_t = _http_s; -typedef http_timeout_cb_t = - ffi.Pointer>; -typedef http_timeout_cb_tFunction = - ffi.Int Function(ffi.Pointer http, ffi.Pointer user_data); -typedef Darthttp_timeout_cb_tFunction = - int Function(ffi.Pointer http, ffi.Pointer user_data); - -enum http_trust_e { - HTTP_TRUST_OK(0), - HTTP_TRUST_INVALID(1), - HTTP_TRUST_CHANGED(2), - HTTP_TRUST_EXPIRED(3), - HTTP_TRUST_RENEWED(4), - HTTP_TRUST_UNKNOWN(5); - - final int value; - const http_trust_e(this.value); - - static http_trust_e fromValue(int value) => switch (value) { - 0 => HTTP_TRUST_OK, - 1 => HTTP_TRUST_INVALID, - 2 => HTTP_TRUST_CHANGED, - 3 => HTTP_TRUST_EXPIRED, - 4 => HTTP_TRUST_RENEWED, - 5 => HTTP_TRUST_UNKNOWN, - _ => throw ArgumentError('Unknown value for http_trust_e: $value'), - }; -} - -enum http_uri_coding_e { - HTTP_URI_CODING_NONE(0), - HTTP_URI_CODING_USERNAME(1), - HTTP_URI_CODING_HOSTNAME(2), - HTTP_URI_CODING_RESOURCE(4), - HTTP_URI_CODING_MOST(7), - HTTP_URI_CODING_QUERY(8), - HTTP_URI_CODING_ALL(15), - HTTP_URI_CODING_RFC6874(16); - - final int value; - const http_uri_coding_e(this.value); - - static http_uri_coding_e fromValue(int value) => switch (value) { - 0 => HTTP_URI_CODING_NONE, - 1 => HTTP_URI_CODING_USERNAME, - 2 => HTTP_URI_CODING_HOSTNAME, - 4 => HTTP_URI_CODING_RESOURCE, - 7 => HTTP_URI_CODING_MOST, - 8 => HTTP_URI_CODING_QUERY, - 15 => HTTP_URI_CODING_ALL, - 16 => HTTP_URI_CODING_RFC6874, - _ => throw ArgumentError('Unknown value for http_uri_coding_e: $value'), - }; -} - -enum http_uri_status_e { - HTTP_URI_STATUS_OVERFLOW(-8), - HTTP_URI_STATUS_BAD_ARGUMENTS(-7), - HTTP_URI_STATUS_BAD_RESOURCE(-6), - HTTP_URI_STATUS_BAD_PORT(-5), - HTTP_URI_STATUS_BAD_HOSTNAME(-4), - HTTP_URI_STATUS_BAD_USERNAME(-3), - HTTP_URI_STATUS_BAD_SCHEME(-2), - HTTP_URI_STATUS_BAD_URI(-1), - HTTP_URI_STATUS_OK(0), - HTTP_URI_STATUS_MISSING_SCHEME(1), - HTTP_URI_STATUS_UNKNOWN_SCHEME(2), - HTTP_URI_STATUS_MISSING_RESOURCE(3); - - final int value; - const http_uri_status_e(this.value); - - static http_uri_status_e fromValue(int value) => switch (value) { - -8 => HTTP_URI_STATUS_OVERFLOW, - -7 => HTTP_URI_STATUS_BAD_ARGUMENTS, - -6 => HTTP_URI_STATUS_BAD_RESOURCE, - -5 => HTTP_URI_STATUS_BAD_PORT, - -4 => HTTP_URI_STATUS_BAD_HOSTNAME, - -3 => HTTP_URI_STATUS_BAD_USERNAME, - -2 => HTTP_URI_STATUS_BAD_SCHEME, - -1 => HTTP_URI_STATUS_BAD_URI, - 0 => HTTP_URI_STATUS_OK, - 1 => HTTP_URI_STATUS_MISSING_SCHEME, - 2 => HTTP_URI_STATUS_UNKNOWN_SCHEME, - 3 => HTTP_URI_STATUS_MISSING_RESOURCE, - _ => throw ArgumentError('Unknown value for http_uri_status_e: $value'), - }; -} - -enum http_version_e { - HTTP_VERSION_0_9(9), - HTTP_VERSION_1_0(100), - HTTP_VERSION_1_1(101); - - final int value; - const http_version_e(this.value); - - static http_version_e fromValue(int value) => switch (value) { - 9 => HTTP_VERSION_0_9, - 100 => HTTP_VERSION_1_0, - 101 => HTTP_VERSION_1_1, - _ => throw ArgumentError('Unknown value for http_version_e: $value'), - }; -} - -const int hwParamErr = -502; - -const int iIOAbort = -27; - -const int iIOAbortErr = -27; - -const int iMemFullErr = -108; - -const int icConfigInappropriateErr = -675; - -const int icConfigNotFoundErr = -674; - -const int icInternalErr = -669; - -const int icNoMoreWritersErr = -671; - -const int icNoPerm = 0; - -const int icNoURLErr = -673; - -const int icNothingToOverrideErr = -672; - -const int icPermErr = -667; - -const int icPrefDataErr = -668; - -const int icPrefNotFoundErr = -666; - -const int icProfileNotFoundErr = -676; - -const int icReadOnlyPerm = 1; - -const int icReadWritePerm = 2; - -const int icTooManyProfilesErr = -677; - -const int icTruncatedErr = -670; - -typedef id_t = __darwin_id_t; - -enum idtype_t { - P_ALL(0), - P_PID(1), - P_PGID(2); - - final int value; - const idtype_t(this.value); - - static idtype_t fromValue(int value) => switch (value) { - 0 => P_ALL, - 1 => P_PID, - 2 => P_PGID, - _ => throw ArgumentError('Unknown value for idtype_t: $value'), - }; -} - -const int illegalChannelOSErr = -2076; - -const int illegalControllerOSErr = -2080; - -const int illegalInstrumentOSErr = -2079; - -const int illegalKnobOSErr = -2077; - -const int illegalKnobValueOSErr = -2078; - -const int illegalNoteChannelOSErr = -2084; - -const int illegalPartOSErr = -2075; - -const int illegalScrapFlavorFlagsErr = -4997; - -const int illegalScrapFlavorSizeErr = -4999; - -const int illegalScrapFlavorTypeErr = -4998; - -const int illegalVoiceAllocationOSErr = -2074; - -final class imaxdiv_t extends ffi.Struct { - @intmax_t() - external int quot; - - @intmax_t() - external int rem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int quot, - required int rem, - }) => $allocator() - ..ref.quot = quot - ..ref.rem = rem; -} - -final class in6_addr extends ffi.Struct { - external UnnamedUnion$5 __u6_addr; -} - -typedef in6_addr_t = in6_addr; - -final class in6_pktinfo extends ffi.Struct { - external in6_addr ipi6_addr; - - @ffi.UnsignedInt() - external int ipi6_ifindex; -} - -final class in_addr extends ffi.Struct { - @in_addr_t() - external int s_addr; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int s_addr, - }) => $allocator()..ref.s_addr = s_addr; -} - -typedef in_addr_t = __uint32_t; - -final class in_pktinfo extends ffi.Struct { - @ffi.UnsignedInt() - external int ipi_ifindex; - - external in_addr ipi_spec_dst; - - external in_addr ipi_addr; -} - -typedef in_port_t = __uint16_t; - -const int incompatibleVoice = -245; - -const int initDev = 0; - -const int initIWMErr = -77; - -typedef ino64_t = __darwin_ino64_t; -typedef ino_t = __darwin_ino_t; - -const int inputOutOfBounds = -190; - -typedef instancetype = ffi.Pointer; -typedef Dartinstancetype = objc.ObjCObject; - -const int insufficientStackErr = -149; - -@Deprecated('Deprecated') -const int intArabic = 1; - -@Deprecated('Deprecated') -const int intEuropean = 4; - -@Deprecated('Deprecated') -const int intJapanese = 3; - -@Deprecated('Deprecated') -const int intOutputMask = 32768; - -@Deprecated('Deprecated') -const int intRoman = 2; - -@Deprecated('Deprecated') -const int intWestern = 0; - -typedef int_fast16_t = ffi.Int16; -typedef Dartint_fast16_t = int; -typedef int_fast32_t = ffi.Int32; -typedef Dartint_fast32_t = int; -typedef int_fast64_t = ffi.Int64; -typedef Dartint_fast64_t = int; -typedef int_fast8_t = ffi.Int8; -typedef Dartint_fast8_t = int; -typedef int_least16_t = ffi.Int16; -typedef Dartint_least16_t = int; -typedef int_least32_t = ffi.Int32; -typedef Dartint_least32_t = int; -typedef int_least64_t = ffi.Int64; -typedef Dartint_least64_t = int; -typedef int_least8_t = ffi.Int8; -typedef Dartint_least8_t = int; -typedef integer_t = ffi.Int; -typedef Dartinteger_t = int; - -const int internalComponentErr = -2070; - -const int internalQuickTimeError = -2034; - -const int internalScrapErr = -4988; - -const int interruptsMaskedErr = -624; - -@Deprecated('Deprecated') -const int intlCurrency = 219; - -typedef intmax_t = ffi.Long; -typedef Dartintmax_t = int; - -const int invalidAtomContainerErr = -2107; - -const int invalidAtomErr = -2106; - -const int invalidAtomTypeErr = -2108; - -const int invalidChunkCache = -2040; - -const int invalidChunkNum = -2038; - -const int invalidComponentID = -3000; - -const int invalidDataRef = -2012; - -const int invalidDataRefContainer = -2049; - -const int invalidDuration = -2014; - -const int invalidEditState = -2023; - -const int invalidFolderTypeErr = -4273; - -const int invalidHandler = -2013; - -const int invalidHotSpotIDErr = -30551; - -const int invalidIconRefErr = -2580; - -const int invalidImageIndexErr = -2068; - -const int invalidIndexErr = -20002; - -const int invalidMedia = -2008; - -const int invalidMovie = -2010; - -const int invalidNodeFormatErr = -30550; - -const int invalidNodeIDErr = -30544; - -const int invalidPickerType = -4000; - -const int invalidRect = -2036; - -const int invalidSampleDescIndex = -2039; - -const int invalidSampleDescription = -2041; - -const int invalidSampleNum = -2037; - -const int invalidSampleTable = -2011; - -const int invalidSpriteIDErr = -2069; - -const int invalidSpriteIndexErr = -2067; - -const int invalidSpritePropertyErr = -2065; - -const int invalidSpriteWorldPropertyErr = -2064; - -const int invalidTime = -2015; - -const int invalidTrack = -2009; - -const int invalidTranslationPathErr = -3025; - -const int invalidViewStateErr = -30545; - -const int ioDirFlg = 4; - -const int ioDirMask = 16; - -const int ioErr = -36; - -@Deprecated('Deprecated') -const int ioQType = 2; - -typedef io_buf_ptr_t = ffi.Pointer; -typedef io_connect_t = io_object_t; -typedef io_enumerator_t = io_object_t; -typedef io_ident_t = io_object_t; -typedef io_iterator_t = io_object_t; -typedef io_main_t = mach_port_t; -typedef io_object_t = mach_port_t; -typedef io_registry_entry_t = io_object_t; -typedef io_service_t = io_object_t; - -final class io_stat_entry extends ffi.Struct { - @ffi.Uint64() - external int count; - - @ffi.Uint64() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required int size, - }) => $allocator() - ..ref.count = count - ..ref.size = size; -} - -final class io_stat_info extends ffi.Struct { - external io_stat_entry disk_reads; - - @ffi.Array.multi([4]) - external ffi.Array io_priority; - - external io_stat_entry paging; - - external io_stat_entry metadata; - - external io_stat_entry total_io; -} - -typedef io_stat_info_t = ffi.Pointer; -typedef io_user_reference_t = ffi.Uint64; -typedef Dartio_user_reference_t = int; -typedef io_user_scalar_t = ffi.Uint64; -typedef Dartio_user_scalar_t = int; - -final class iovec extends ffi.Struct { - external ffi.Pointer iov_base; - - @ffi.Size() - external int iov_len; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer iov_base, - required int iov_len, - }) => $allocator() - ..ref.iov_base = iov_base - ..ref.iov_len = iov_len; -} - -final class ip extends ffi.Opaque {} - -final class ip6_mtuinfo extends ffi.Struct { - external sockaddr_in6 ip6m_addr; - - @ffi.Uint32() - external int ip6m_mtu; -} - -final class ip_mreq extends ffi.Struct { - external in_addr imr_multiaddr; - - external in_addr imr_interface; -} - -final class ip_mreq_source extends ffi.Struct { - external in_addr imr_multiaddr; - - external in_addr imr_sourceaddr; - - external in_addr imr_interface; -} - -final class ip_mreqn extends ffi.Struct { - external in_addr imr_multiaddr; - - external in_addr imr_address; - - @ffi.Int() - external int imr_ifindex; -} - -final class ip_opts extends ffi.Struct { - external in_addr ip_dst; - - @ffi.Array.multi([40]) - external ffi.Array ip_opts$1; -} - -final class ip_timestamp extends ffi.Opaque {} - -typedef ipc_eventlink_t = mach_port_t; - -final class ipc_info_name extends ffi.Struct { - @mach_port_name_t() - external int iin_name; - - @integer_t() - external int iin_collision; - - @mach_port_type_t() - external int iin_type; - - @mach_port_urefs_t() - external int iin_urefs; - - @natural_t() - external int iin_object; - - @natural_t() - external int iin_next; - - @natural_t() - external int iin_hash; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iin_name, - required int iin_collision, - required int iin_type, - required int iin_urefs, - required int iin_object, - required int iin_next, - required int iin_hash, - }) => $allocator() - ..ref.iin_name = iin_name - ..ref.iin_collision = iin_collision - ..ref.iin_type = iin_type - ..ref.iin_urefs = iin_urefs - ..ref.iin_object = iin_object - ..ref.iin_next = iin_next - ..ref.iin_hash = iin_hash; -} - -typedef ipc_info_name_array_t = ffi.Pointer; -typedef ipc_info_name_t = ipc_info_name; - -enum ipc_info_object_type_t { - IPC_OTYPE_NONE(0), - IPC_OTYPE_THREAD_CONTROL(1), - IPC_OTYPE_TASK_CONTROL(2), - IPC_OTYPE_HOST(3), - IPC_OTYPE_HOST_PRIV(4), - IPC_OTYPE_PROCESSOR(5), - IPC_OTYPE_PROCESSOR_SET(6), - IPC_OTYPE_PROCESSOR_SET_NAME(7), - IPC_OTYPE_TIMER(8), - IPC_OTYPE_PORT_SUBST_ONCE(9), - IPC_OTYPE_MIG(10), - IPC_OTYPE_MEMORY_OBJECT(11), - IPC_OTYPE_XMM_PAGER(12), - IPC_OTYPE_XMM_KERNEL(13), - IPC_OTYPE_XMM_REPLY(14), - IPC_OTYPE_UND_REPLY(15), - IPC_OTYPE_HOST_NOTIFY(16), - IPC_OTYPE_HOST_SECURITY(17), - IPC_OTYPE_LEDGER(18), - IPC_OTYPE_MAIN_DEVICE(19), - IPC_OTYPE_TASK_NAME(20), - IPC_OTYPE_SUBSYSTEM(21), - IPC_OTYPE_IO_DONE_QUEUE(22), - IPC_OTYPE_SEMAPHORE(23), - IPC_OTYPE_LOCK_SET(24), - IPC_OTYPE_CLOCK(25), - IPC_OTYPE_CLOCK_CTRL(26), - IPC_OTYPE_IOKIT_IDENT(27), - IPC_OTYPE_NAMED_ENTRY(28), - IPC_OTYPE_IOKIT_CONNECT(29), - IPC_OTYPE_IOKIT_OBJECT(30), - IPC_OTYPE_UPL(31), - IPC_OTYPE_MEM_OBJ_CONTROL(32), - IPC_OTYPE_AU_SESSIONPORT(33), - IPC_OTYPE_FILEPORT(34), - IPC_OTYPE_LABELH(35), - IPC_OTYPE_TASK_RESUME(36), - IPC_OTYPE_VOUCHER(37), - IPC_OTYPE_VOUCHER_ATTR_CONTROL(38), - IPC_OTYPE_WORK_INTERVAL(39), - IPC_OTYPE_UX_HANDLER(40), - IPC_OTYPE_UEXT_OBJECT(41), - IPC_OTYPE_ARCADE_REG(42), - IPC_OTYPE_EVENTLINK(43), - IPC_OTYPE_TASK_INSPECT(44), - IPC_OTYPE_TASK_READ(45), - IPC_OTYPE_THREAD_INSPECT(46), - IPC_OTYPE_THREAD_READ(47), - IPC_OTYPE_SUID_CRED(48), - IPC_OTYPE_HYPERVISOR(49), - IPC_OTYPE_TASK_ID_TOKEN(50), - IPC_OTYPE_TASK_FATAL(51), - IPC_OTYPE_KCDATA(52), - IPC_OTYPE_EXCLAVES_RESOURCE(53), - IPC_OTYPE_UNKNOWN(-1); - - final int value; - const ipc_info_object_type_t(this.value); - - static ipc_info_object_type_t fromValue(int value) => switch (value) { - 0 => IPC_OTYPE_NONE, - 1 => IPC_OTYPE_THREAD_CONTROL, - 2 => IPC_OTYPE_TASK_CONTROL, - 3 => IPC_OTYPE_HOST, - 4 => IPC_OTYPE_HOST_PRIV, - 5 => IPC_OTYPE_PROCESSOR, - 6 => IPC_OTYPE_PROCESSOR_SET, - 7 => IPC_OTYPE_PROCESSOR_SET_NAME, - 8 => IPC_OTYPE_TIMER, - 9 => IPC_OTYPE_PORT_SUBST_ONCE, - 10 => IPC_OTYPE_MIG, - 11 => IPC_OTYPE_MEMORY_OBJECT, - 12 => IPC_OTYPE_XMM_PAGER, - 13 => IPC_OTYPE_XMM_KERNEL, - 14 => IPC_OTYPE_XMM_REPLY, - 15 => IPC_OTYPE_UND_REPLY, - 16 => IPC_OTYPE_HOST_NOTIFY, - 17 => IPC_OTYPE_HOST_SECURITY, - 18 => IPC_OTYPE_LEDGER, - 19 => IPC_OTYPE_MAIN_DEVICE, - 20 => IPC_OTYPE_TASK_NAME, - 21 => IPC_OTYPE_SUBSYSTEM, - 22 => IPC_OTYPE_IO_DONE_QUEUE, - 23 => IPC_OTYPE_SEMAPHORE, - 24 => IPC_OTYPE_LOCK_SET, - 25 => IPC_OTYPE_CLOCK, - 26 => IPC_OTYPE_CLOCK_CTRL, - 27 => IPC_OTYPE_IOKIT_IDENT, - 28 => IPC_OTYPE_NAMED_ENTRY, - 29 => IPC_OTYPE_IOKIT_CONNECT, - 30 => IPC_OTYPE_IOKIT_OBJECT, - 31 => IPC_OTYPE_UPL, - 32 => IPC_OTYPE_MEM_OBJ_CONTROL, - 33 => IPC_OTYPE_AU_SESSIONPORT, - 34 => IPC_OTYPE_FILEPORT, - 35 => IPC_OTYPE_LABELH, - 36 => IPC_OTYPE_TASK_RESUME, - 37 => IPC_OTYPE_VOUCHER, - 38 => IPC_OTYPE_VOUCHER_ATTR_CONTROL, - 39 => IPC_OTYPE_WORK_INTERVAL, - 40 => IPC_OTYPE_UX_HANDLER, - 41 => IPC_OTYPE_UEXT_OBJECT, - 42 => IPC_OTYPE_ARCADE_REG, - 43 => IPC_OTYPE_EVENTLINK, - 44 => IPC_OTYPE_TASK_INSPECT, - 45 => IPC_OTYPE_TASK_READ, - 46 => IPC_OTYPE_THREAD_INSPECT, - 47 => IPC_OTYPE_THREAD_READ, - 48 => IPC_OTYPE_SUID_CRED, - 49 => IPC_OTYPE_HYPERVISOR, - 50 => IPC_OTYPE_TASK_ID_TOKEN, - 51 => IPC_OTYPE_TASK_FATAL, - 52 => IPC_OTYPE_KCDATA, - 53 => IPC_OTYPE_EXCLAVES_RESOURCE, - -1 => IPC_OTYPE_UNKNOWN, - _ => throw ArgumentError( - 'Unknown value for ipc_info_object_type_t: $value', - ), - }; -} - -final class ipc_info_port extends ffi.Struct { - @natural_t() - external int iip_port_object; - - @natural_t() - external int iip_receiver_object; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iip_port_object, - required int iip_receiver_object, - }) => $allocator() - ..ref.iip_port_object = iip_port_object - ..ref.iip_receiver_object = iip_receiver_object; -} - -typedef ipc_info_port_t = ipc_info_port; - -final class ipc_info_space extends ffi.Struct { - @natural_t() - external int iis_genno_mask; - - @natural_t() - external int iis_table_size; - - @natural_t() - external int iis_table_next; - - @natural_t() - external int iis_tree_size; - - @natural_t() - external int iis_tree_small; - - @natural_t() - external int iis_tree_hash; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iis_genno_mask, - required int iis_table_size, - required int iis_table_next, - required int iis_tree_size, - required int iis_tree_small, - required int iis_tree_hash, - }) => $allocator() - ..ref.iis_genno_mask = iis_genno_mask - ..ref.iis_table_size = iis_table_size - ..ref.iis_table_next = iis_table_next - ..ref.iis_tree_size = iis_tree_size - ..ref.iis_tree_small = iis_tree_small - ..ref.iis_tree_hash = iis_tree_hash; -} - -final class ipc_info_space_basic extends ffi.Struct { - @natural_t() - external int iisb_genno_mask; - - @natural_t() - external int iisb_table_size; - - @natural_t() - external int iisb_table_next; - - @natural_t() - external int iisb_table_inuse; - - @ffi.Array.multi([2]) - external ffi.Array iisb_reserved; -} - -typedef ipc_info_space_basic_t = ipc_info_space_basic; -typedef ipc_info_space_t = ipc_info_space; - -final class ipc_info_tree_name extends ffi.Struct { - external ipc_info_name_t iitn_name; - - @mach_port_name_t() - external int iitn_lchild; - - @mach_port_name_t() - external int iitn_rchild; -} - -typedef ipc_info_tree_name_array_t = ffi.Pointer; -typedef ipc_info_tree_name_t = ipc_info_tree_name; -typedef ipc_space_inspect_t = mach_port_t; -typedef ipc_space_port_t = ipc_space_t; -typedef ipc_space_read_t = mach_port_t; -typedef ipc_space_t = mach_port_t; -typedef ipc_voucher_attr_control_t = mach_port_t; -typedef ipc_voucher_attr_manager_t = mach_port_t; -typedef ipc_voucher_t = mach_voucher_t; -typedef ipp_attribute_t = _ipp_attribute_s; -typedef ipp_copycb_t = ffi.Pointer>; -typedef ipp_copycb_tFunction = - ffi.Int Function( - ffi.Pointer context, - ffi.Pointer dst, - ffi.Pointer attr, - ); -typedef Dartipp_copycb_tFunction = - int Function( - ffi.Pointer context, - ffi.Pointer dst, - ffi.Pointer attr, - ); - -enum ipp_dstate_e { - IPP_DSTATE_PENDING(3), - IPP_DSTATE_PROCESSING(5), - IPP_DSTATE_CANCELED(7), - IPP_DSTATE_ABORTED(8), - IPP_DSTATE_COMPLETED(9); - - final int value; - const ipp_dstate_e(this.value); - - static ipp_dstate_e fromValue(int value) => switch (value) { - 3 => IPP_DSTATE_PENDING, - 5 => IPP_DSTATE_PROCESSING, - 7 => IPP_DSTATE_CANCELED, - 8 => IPP_DSTATE_ABORTED, - 9 => IPP_DSTATE_COMPLETED, - _ => throw ArgumentError('Unknown value for ipp_dstate_e: $value'), - }; -} - -enum ipp_finishings_e { - IPP_FINISHINGS_NONE(3), - IPP_FINISHINGS_STAPLE(4), - IPP_FINISHINGS_PUNCH(5), - IPP_FINISHINGS_COVER(6), - IPP_FINISHINGS_BIND(7), - IPP_FINISHINGS_SADDLE_STITCH(8), - IPP_FINISHINGS_EDGE_STITCH(9), - IPP_FINISHINGS_FOLD(10), - IPP_FINISHINGS_TRIM(11), - IPP_FINISHINGS_BALE(12), - IPP_FINISHINGS_BOOKLET_MAKER(13), - IPP_FINISHINGS_JOG_OFFSET(14), - IPP_FINISHINGS_COAT(15), - IPP_FINISHINGS_LAMINATE(16), - IPP_FINISHINGS_STAPLE_TOP_LEFT(20), - IPP_FINISHINGS_STAPLE_BOTTOM_LEFT(21), - IPP_FINISHINGS_STAPLE_TOP_RIGHT(22), - IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT(23), - IPP_FINISHINGS_EDGE_STITCH_LEFT(24), - IPP_FINISHINGS_EDGE_STITCH_TOP(25), - IPP_FINISHINGS_EDGE_STITCH_RIGHT(26), - IPP_FINISHINGS_EDGE_STITCH_BOTTOM(27), - IPP_FINISHINGS_STAPLE_DUAL_LEFT(28), - IPP_FINISHINGS_STAPLE_DUAL_TOP(29), - IPP_FINISHINGS_STAPLE_DUAL_RIGHT(30), - IPP_FINISHINGS_STAPLE_DUAL_BOTTOM(31), - IPP_FINISHINGS_STAPLE_TRIPLE_LEFT(32), - IPP_FINISHINGS_STAPLE_TRIPLE_TOP(33), - IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT(34), - IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM(35), - IPP_FINISHINGS_BIND_LEFT(50), - IPP_FINISHINGS_BIND_TOP(51), - IPP_FINISHINGS_BIND_RIGHT(52), - IPP_FINISHINGS_BIND_BOTTOM(53), - IPP_FINISHINGS_TRIM_AFTER_PAGES(60), - IPP_FINISHINGS_TRIM_AFTER_DOCUMENTS(61), - IPP_FINISHINGS_TRIM_AFTER_COPIES(62), - IPP_FINISHINGS_TRIM_AFTER_JOB(63), - IPP_FINISHINGS_PUNCH_TOP_LEFT(70), - IPP_FINISHINGS_PUNCH_BOTTOM_LEFT(71), - IPP_FINISHINGS_PUNCH_TOP_RIGHT(72), - IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT(73), - IPP_FINISHINGS_PUNCH_DUAL_LEFT(74), - IPP_FINISHINGS_PUNCH_DUAL_TOP(75), - IPP_FINISHINGS_PUNCH_DUAL_RIGHT(76), - IPP_FINISHINGS_PUNCH_DUAL_BOTTOM(77), - IPP_FINISHINGS_PUNCH_TRIPLE_LEFT(78), - IPP_FINISHINGS_PUNCH_TRIPLE_TOP(79), - IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT(80), - IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM(81), - IPP_FINISHINGS_PUNCH_QUAD_LEFT(82), - IPP_FINISHINGS_PUNCH_QUAD_TOP(83), - IPP_FINISHINGS_PUNCH_QUAD_RIGHT(84), - IPP_FINISHINGS_PUNCH_QUAD_BOTTOM(85), - IPP_FINISHINGS_PUNCH_MULTIPLE_LEFT(86), - IPP_FINISHINGS_PUNCH_MULTIPLE_TOP(87), - IPP_FINISHINGS_PUNCH_MULTIPLE_RIGHT(88), - IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM(89), - IPP_FINISHINGS_FOLD_ACCORDION(90), - IPP_FINISHINGS_FOLD_DOUBLE_GATE(91), - IPP_FINISHINGS_FOLD_GATE(92), - IPP_FINISHINGS_FOLD_HALF(93), - IPP_FINISHINGS_FOLD_HALF_Z(94), - IPP_FINISHINGS_FOLD_LEFT_GATE(95), - IPP_FINISHINGS_FOLD_LETTER(96), - IPP_FINISHINGS_FOLD_PARALLEL(97), - IPP_FINISHINGS_FOLD_POSTER(98), - IPP_FINISHINGS_FOLD_RIGHT_GATE(99), - IPP_FINISHINGS_FOLD_Z(100), - IPP_FINISHINGS_FOLD_ENGINEERING_Z(101), - IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT(1073741894), - IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_LEFT(1073741895), - IPP_FINISHINGS_CUPS_PUNCH_TOP_RIGHT(1073741896), - IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_RIGHT(1073741897), - IPP_FINISHINGS_CUPS_PUNCH_DUAL_LEFT(1073741898), - IPP_FINISHINGS_CUPS_PUNCH_DUAL_TOP(1073741899), - IPP_FINISHINGS_CUPS_PUNCH_DUAL_RIGHT(1073741900), - IPP_FINISHINGS_CUPS_PUNCH_DUAL_BOTTOM(1073741901), - IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_LEFT(1073741902), - IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_TOP(1073741903), - IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_RIGHT(1073741904), - IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_BOTTOM(1073741905), - IPP_FINISHINGS_CUPS_PUNCH_QUAD_LEFT(1073741906), - IPP_FINISHINGS_CUPS_PUNCH_QUAD_TOP(1073741907), - IPP_FINISHINGS_CUPS_PUNCH_QUAD_RIGHT(1073741908), - IPP_FINISHINGS_CUPS_PUNCH_QUAD_BOTTOM(1073741909), - IPP_FINISHINGS_CUPS_FOLD_ACCORDION(1073741914), - IPP_FINISHINGS_CUPS_FOLD_DOUBLE_GATE(1073741915), - IPP_FINISHINGS_CUPS_FOLD_GATE(1073741916), - IPP_FINISHINGS_CUPS_FOLD_HALF(1073741917), - IPP_FINISHINGS_CUPS_FOLD_HALF_Z(1073741918), - IPP_FINISHINGS_CUPS_FOLD_LEFT_GATE(1073741919), - IPP_FINISHINGS_CUPS_FOLD_LETTER(1073741920), - IPP_FINISHINGS_CUPS_FOLD_PARALLEL(1073741921), - IPP_FINISHINGS_CUPS_FOLD_POSTER(1073741922), - IPP_FINISHINGS_CUPS_FOLD_RIGHT_GATE(1073741923), - IPP_FINISHINGS_CUPS_FOLD_Z(1073741924); - - final int value; - const ipp_finishings_e(this.value); - - static ipp_finishings_e fromValue(int value) => switch (value) { - 3 => IPP_FINISHINGS_NONE, - 4 => IPP_FINISHINGS_STAPLE, - 5 => IPP_FINISHINGS_PUNCH, - 6 => IPP_FINISHINGS_COVER, - 7 => IPP_FINISHINGS_BIND, - 8 => IPP_FINISHINGS_SADDLE_STITCH, - 9 => IPP_FINISHINGS_EDGE_STITCH, - 10 => IPP_FINISHINGS_FOLD, - 11 => IPP_FINISHINGS_TRIM, - 12 => IPP_FINISHINGS_BALE, - 13 => IPP_FINISHINGS_BOOKLET_MAKER, - 14 => IPP_FINISHINGS_JOG_OFFSET, - 15 => IPP_FINISHINGS_COAT, - 16 => IPP_FINISHINGS_LAMINATE, - 20 => IPP_FINISHINGS_STAPLE_TOP_LEFT, - 21 => IPP_FINISHINGS_STAPLE_BOTTOM_LEFT, - 22 => IPP_FINISHINGS_STAPLE_TOP_RIGHT, - 23 => IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT, - 24 => IPP_FINISHINGS_EDGE_STITCH_LEFT, - 25 => IPP_FINISHINGS_EDGE_STITCH_TOP, - 26 => IPP_FINISHINGS_EDGE_STITCH_RIGHT, - 27 => IPP_FINISHINGS_EDGE_STITCH_BOTTOM, - 28 => IPP_FINISHINGS_STAPLE_DUAL_LEFT, - 29 => IPP_FINISHINGS_STAPLE_DUAL_TOP, - 30 => IPP_FINISHINGS_STAPLE_DUAL_RIGHT, - 31 => IPP_FINISHINGS_STAPLE_DUAL_BOTTOM, - 32 => IPP_FINISHINGS_STAPLE_TRIPLE_LEFT, - 33 => IPP_FINISHINGS_STAPLE_TRIPLE_TOP, - 34 => IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT, - 35 => IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM, - 50 => IPP_FINISHINGS_BIND_LEFT, - 51 => IPP_FINISHINGS_BIND_TOP, - 52 => IPP_FINISHINGS_BIND_RIGHT, - 53 => IPP_FINISHINGS_BIND_BOTTOM, - 60 => IPP_FINISHINGS_TRIM_AFTER_PAGES, - 61 => IPP_FINISHINGS_TRIM_AFTER_DOCUMENTS, - 62 => IPP_FINISHINGS_TRIM_AFTER_COPIES, - 63 => IPP_FINISHINGS_TRIM_AFTER_JOB, - 70 => IPP_FINISHINGS_PUNCH_TOP_LEFT, - 71 => IPP_FINISHINGS_PUNCH_BOTTOM_LEFT, - 72 => IPP_FINISHINGS_PUNCH_TOP_RIGHT, - 73 => IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT, - 74 => IPP_FINISHINGS_PUNCH_DUAL_LEFT, - 75 => IPP_FINISHINGS_PUNCH_DUAL_TOP, - 76 => IPP_FINISHINGS_PUNCH_DUAL_RIGHT, - 77 => IPP_FINISHINGS_PUNCH_DUAL_BOTTOM, - 78 => IPP_FINISHINGS_PUNCH_TRIPLE_LEFT, - 79 => IPP_FINISHINGS_PUNCH_TRIPLE_TOP, - 80 => IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT, - 81 => IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM, - 82 => IPP_FINISHINGS_PUNCH_QUAD_LEFT, - 83 => IPP_FINISHINGS_PUNCH_QUAD_TOP, - 84 => IPP_FINISHINGS_PUNCH_QUAD_RIGHT, - 85 => IPP_FINISHINGS_PUNCH_QUAD_BOTTOM, - 86 => IPP_FINISHINGS_PUNCH_MULTIPLE_LEFT, - 87 => IPP_FINISHINGS_PUNCH_MULTIPLE_TOP, - 88 => IPP_FINISHINGS_PUNCH_MULTIPLE_RIGHT, - 89 => IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM, - 90 => IPP_FINISHINGS_FOLD_ACCORDION, - 91 => IPP_FINISHINGS_FOLD_DOUBLE_GATE, - 92 => IPP_FINISHINGS_FOLD_GATE, - 93 => IPP_FINISHINGS_FOLD_HALF, - 94 => IPP_FINISHINGS_FOLD_HALF_Z, - 95 => IPP_FINISHINGS_FOLD_LEFT_GATE, - 96 => IPP_FINISHINGS_FOLD_LETTER, - 97 => IPP_FINISHINGS_FOLD_PARALLEL, - 98 => IPP_FINISHINGS_FOLD_POSTER, - 99 => IPP_FINISHINGS_FOLD_RIGHT_GATE, - 100 => IPP_FINISHINGS_FOLD_Z, - 101 => IPP_FINISHINGS_FOLD_ENGINEERING_Z, - 1073741894 => IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT, - 1073741895 => IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_LEFT, - 1073741896 => IPP_FINISHINGS_CUPS_PUNCH_TOP_RIGHT, - 1073741897 => IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_RIGHT, - 1073741898 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_LEFT, - 1073741899 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_TOP, - 1073741900 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_RIGHT, - 1073741901 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_BOTTOM, - 1073741902 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_LEFT, - 1073741903 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_TOP, - 1073741904 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_RIGHT, - 1073741905 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_BOTTOM, - 1073741906 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_LEFT, - 1073741907 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_TOP, - 1073741908 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_RIGHT, - 1073741909 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_BOTTOM, - 1073741914 => IPP_FINISHINGS_CUPS_FOLD_ACCORDION, - 1073741915 => IPP_FINISHINGS_CUPS_FOLD_DOUBLE_GATE, - 1073741916 => IPP_FINISHINGS_CUPS_FOLD_GATE, - 1073741917 => IPP_FINISHINGS_CUPS_FOLD_HALF, - 1073741918 => IPP_FINISHINGS_CUPS_FOLD_HALF_Z, - 1073741919 => IPP_FINISHINGS_CUPS_FOLD_LEFT_GATE, - 1073741920 => IPP_FINISHINGS_CUPS_FOLD_LETTER, - 1073741921 => IPP_FINISHINGS_CUPS_FOLD_PARALLEL, - 1073741922 => IPP_FINISHINGS_CUPS_FOLD_POSTER, - 1073741923 => IPP_FINISHINGS_CUPS_FOLD_RIGHT_GATE, - 1073741924 => IPP_FINISHINGS_CUPS_FOLD_Z, - _ => throw ArgumentError('Unknown value for ipp_finishings_e: $value'), - }; -} - -typedef ipp_iocb_t = ffi.Pointer>; -typedef ipp_iocb_tFunction = - ssize_t Function( - ffi.Pointer context, - ffi.Pointer buffer, - ffi.Size bytes, - ); -typedef Dartipp_iocb_tFunction = - Dart__darwin_ssize_t Function( - ffi.Pointer context, - ffi.Pointer buffer, - int bytes, - ); - -enum ipp_jcollate_e { - IPP_JCOLLATE_UNCOLLATED_SHEETS(3), - IPP_JCOLLATE_COLLATED_DOCUMENTS(4), - IPP_JCOLLATE_UNCOLLATED_DOCUMENTS(5); - - final int value; - const ipp_jcollate_e(this.value); - - static ipp_jcollate_e fromValue(int value) => switch (value) { - 3 => IPP_JCOLLATE_UNCOLLATED_SHEETS, - 4 => IPP_JCOLLATE_COLLATED_DOCUMENTS, - 5 => IPP_JCOLLATE_UNCOLLATED_DOCUMENTS, - _ => throw ArgumentError('Unknown value for ipp_jcollate_e: $value'), - }; -} - -enum ipp_jstate_e { - IPP_JSTATE_PENDING(3), - IPP_JSTATE_HELD(4), - IPP_JSTATE_PROCESSING(5), - IPP_JSTATE_STOPPED(6), - IPP_JSTATE_CANCELED(7), - IPP_JSTATE_ABORTED(8), - IPP_JSTATE_COMPLETED(9); - - final int value; - const ipp_jstate_e(this.value); - - static ipp_jstate_e fromValue(int value) => switch (value) { - 3 => IPP_JSTATE_PENDING, - 4 => IPP_JSTATE_HELD, - 5 => IPP_JSTATE_PROCESSING, - 6 => IPP_JSTATE_STOPPED, - 7 => IPP_JSTATE_CANCELED, - 8 => IPP_JSTATE_ABORTED, - 9 => IPP_JSTATE_COMPLETED, - _ => throw ArgumentError('Unknown value for ipp_jstate_e: $value'), - }; -} - -enum ipp_op_e { - IPP_OP_CUPS_INVALID(-1), - IPP_OP_CUPS_NONE(0), - IPP_OP_PRINT_JOB(2), - IPP_OP_PRINT_URI(3), - IPP_OP_VALIDATE_JOB(4), - IPP_OP_CREATE_JOB(5), - IPP_OP_SEND_DOCUMENT(6), - IPP_OP_SEND_URI(7), - IPP_OP_CANCEL_JOB(8), - IPP_OP_GET_JOB_ATTRIBUTES(9), - IPP_OP_GET_JOBS(10), - IPP_OP_GET_PRINTER_ATTRIBUTES(11), - IPP_OP_HOLD_JOB(12), - IPP_OP_RELEASE_JOB(13), - IPP_OP_RESTART_JOB(14), - IPP_OP_PAUSE_PRINTER(16), - IPP_OP_RESUME_PRINTER(17), - IPP_OP_PURGE_JOBS(18), - IPP_OP_SET_PRINTER_ATTRIBUTES(19), - IPP_OP_SET_JOB_ATTRIBUTES(20), - IPP_OP_GET_PRINTER_SUPPORTED_VALUES(21), - IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS(22), - IPP_OP_CREATE_JOB_SUBSCRIPTIONS(23), - IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES(24), - IPP_OP_GET_SUBSCRIPTIONS(25), - IPP_OP_RENEW_SUBSCRIPTION(26), - IPP_OP_CANCEL_SUBSCRIPTION(27), - IPP_OP_GET_NOTIFICATIONS(28), - IPP_OP_SEND_NOTIFICATIONS(29), - IPP_OP_GET_RESOURCE_ATTRIBUTES(30), - IPP_OP_GET_RESOURCE_DATA(31), - IPP_OP_GET_RESOURCES(32), - IPP_OP_GET_PRINT_SUPPORT_FILES(33), - IPP_OP_ENABLE_PRINTER(34), - IPP_OP_DISABLE_PRINTER(35), - IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB(36), - IPP_OP_HOLD_NEW_JOBS(37), - IPP_OP_RELEASE_HELD_NEW_JOBS(38), - IPP_OP_DEACTIVATE_PRINTER(39), - IPP_OP_ACTIVATE_PRINTER(40), - IPP_OP_RESTART_PRINTER(41), - IPP_OP_SHUTDOWN_PRINTER(42), - IPP_OP_STARTUP_PRINTER(43), - IPP_OP_REPROCESS_JOB(44), - IPP_OP_CANCEL_CURRENT_JOB(45), - IPP_OP_SUSPEND_CURRENT_JOB(46), - IPP_OP_RESUME_JOB(47), - IPP_OP_PROMOTE_JOB(48), - IPP_OP_SCHEDULE_JOB_AFTER(49), - IPP_OP_CANCEL_DOCUMENT(51), - IPP_OP_GET_DOCUMENT_ATTRIBUTES(52), - IPP_OP_GET_DOCUMENTS(53), - IPP_OP_DELETE_DOCUMENT(54), - IPP_OP_SET_DOCUMENT_ATTRIBUTES(55), - IPP_OP_CANCEL_JOBS(56), - IPP_OP_CANCEL_MY_JOBS(57), - IPP_OP_RESUBMIT_JOB(58), - IPP_OP_CLOSE_JOB(59), - IPP_OP_IDENTIFY_PRINTER(60), - IPP_OP_VALIDATE_DOCUMENT(61), - IPP_OP_ADD_DOCUMENT_IMAGES(62), - IPP_OP_ACKNOWLEDGE_DOCUMENT(63), - IPP_OP_ACKNOWLEDGE_IDENTIFY_PRINTER(64), - IPP_OP_ACKNOWLEDGE_JOB(65), - IPP_OP_FETCH_DOCUMENT(66), - IPP_OP_FETCH_JOB(67), - IPP_OP_GET_OUTPUT_DEVICE_ATTRIBUTES(68), - IPP_OP_UPDATE_ACTIVE_JOBS(69), - IPP_OP_DEREGISTER_OUTPUT_DEVICE(70), - IPP_OP_UPDATE_DOCUMENT_STATUS(71), - IPP_OP_UPDATE_JOB_STATUS(72), - IPP_OP_UPDATE_OUTPUT_DEVICE_ATTRIBUTES(73), - IPP_OP_GET_NEXT_DOCUMENT_DATA(74), - IPP_OP_ALLOCATE_PRINTER_RESOURCES(75), - IPP_OP_CREATE_PRINTER(76), - IPP_OP_DEALLOCATE_PRINTER_RESOURCES(77), - IPP_OP_DELETE_PRINTER(78), - IPP_OP_GET_PRINTERS(79), - IPP_OP_SHUTDOWN_ONE_PRINTER(80), - IPP_OP_STARTUP_ONE_PRINTER(81), - IPP_OP_CANCEL_RESOURCE(82), - IPP_OP_CREATE_RESOURCE(83), - IPP_OP_INSTALL_RESOURCE(84), - IPP_OP_SEND_RESOURCE_DATA(85), - IPP_OP_SET_RESOURCE_ATTRIBUTES(86), - IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS(87), - IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS(88), - IPP_OP_DISABLE_ALL_PRINTERS(89), - IPP_OP_ENABLE_ALL_PRINTERS(90), - IPP_OP_GET_SYSTEM_ATTRIBUTES(91), - IPP_OP_GET_SYSTEM_SUPPORTED_VALUES(92), - IPP_OP_PAUSE_ALL_PRINTERS(93), - IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB(94), - IPP_OP_REGISTER_OUTPUT_DEVICE(95), - IPP_OP_RESTART_SYSTEM(96), - IPP_OP_RESUME_ALL_PRINTERS(97), - IPP_OP_SET_SYSTEM_ATTRIBUTES(98), - IPP_OP_SHUTDOWN_ALL_PRINTERS(99), - IPP_OP_STARTUP_ALL_PRINTERS(100), - IPP_OP_PRIVATE(16384), - IPP_OP_CUPS_GET_DEFAULT(16385), - IPP_OP_CUPS_GET_PRINTERS(16386), - IPP_OP_CUPS_ADD_MODIFY_PRINTER(16387), - IPP_OP_CUPS_DELETE_PRINTER(16388), - IPP_OP_CUPS_GET_CLASSES(16389), - IPP_OP_CUPS_ADD_MODIFY_CLASS(16390), - IPP_OP_CUPS_DELETE_CLASS(16391), - IPP_OP_CUPS_ACCEPT_JOBS(16392), - IPP_OP_CUPS_REJECT_JOBS(16393), - IPP_OP_CUPS_SET_DEFAULT(16394), - IPP_OP_CUPS_GET_DEVICES(16395), - IPP_OP_CUPS_GET_PPDS(16396), - IPP_OP_CUPS_MOVE_JOB(16397), - IPP_OP_CUPS_AUTHENTICATE_JOB(16398), - IPP_OP_CUPS_GET_PPD(16399), - IPP_OP_CUPS_GET_DOCUMENT(16423), - IPP_OP_CUPS_CREATE_LOCAL_PRINTER(16424); - - final int value; - const ipp_op_e(this.value); - - static ipp_op_e fromValue(int value) => switch (value) { - -1 => IPP_OP_CUPS_INVALID, - 0 => IPP_OP_CUPS_NONE, - 2 => IPP_OP_PRINT_JOB, - 3 => IPP_OP_PRINT_URI, - 4 => IPP_OP_VALIDATE_JOB, - 5 => IPP_OP_CREATE_JOB, - 6 => IPP_OP_SEND_DOCUMENT, - 7 => IPP_OP_SEND_URI, - 8 => IPP_OP_CANCEL_JOB, - 9 => IPP_OP_GET_JOB_ATTRIBUTES, - 10 => IPP_OP_GET_JOBS, - 11 => IPP_OP_GET_PRINTER_ATTRIBUTES, - 12 => IPP_OP_HOLD_JOB, - 13 => IPP_OP_RELEASE_JOB, - 14 => IPP_OP_RESTART_JOB, - 16 => IPP_OP_PAUSE_PRINTER, - 17 => IPP_OP_RESUME_PRINTER, - 18 => IPP_OP_PURGE_JOBS, - 19 => IPP_OP_SET_PRINTER_ATTRIBUTES, - 20 => IPP_OP_SET_JOB_ATTRIBUTES, - 21 => IPP_OP_GET_PRINTER_SUPPORTED_VALUES, - 22 => IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS, - 23 => IPP_OP_CREATE_JOB_SUBSCRIPTIONS, - 24 => IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES, - 25 => IPP_OP_GET_SUBSCRIPTIONS, - 26 => IPP_OP_RENEW_SUBSCRIPTION, - 27 => IPP_OP_CANCEL_SUBSCRIPTION, - 28 => IPP_OP_GET_NOTIFICATIONS, - 29 => IPP_OP_SEND_NOTIFICATIONS, - 30 => IPP_OP_GET_RESOURCE_ATTRIBUTES, - 31 => IPP_OP_GET_RESOURCE_DATA, - 32 => IPP_OP_GET_RESOURCES, - 33 => IPP_OP_GET_PRINT_SUPPORT_FILES, - 34 => IPP_OP_ENABLE_PRINTER, - 35 => IPP_OP_DISABLE_PRINTER, - 36 => IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB, - 37 => IPP_OP_HOLD_NEW_JOBS, - 38 => IPP_OP_RELEASE_HELD_NEW_JOBS, - 39 => IPP_OP_DEACTIVATE_PRINTER, - 40 => IPP_OP_ACTIVATE_PRINTER, - 41 => IPP_OP_RESTART_PRINTER, - 42 => IPP_OP_SHUTDOWN_PRINTER, - 43 => IPP_OP_STARTUP_PRINTER, - 44 => IPP_OP_REPROCESS_JOB, - 45 => IPP_OP_CANCEL_CURRENT_JOB, - 46 => IPP_OP_SUSPEND_CURRENT_JOB, - 47 => IPP_OP_RESUME_JOB, - 48 => IPP_OP_PROMOTE_JOB, - 49 => IPP_OP_SCHEDULE_JOB_AFTER, - 51 => IPP_OP_CANCEL_DOCUMENT, - 52 => IPP_OP_GET_DOCUMENT_ATTRIBUTES, - 53 => IPP_OP_GET_DOCUMENTS, - 54 => IPP_OP_DELETE_DOCUMENT, - 55 => IPP_OP_SET_DOCUMENT_ATTRIBUTES, - 56 => IPP_OP_CANCEL_JOBS, - 57 => IPP_OP_CANCEL_MY_JOBS, - 58 => IPP_OP_RESUBMIT_JOB, - 59 => IPP_OP_CLOSE_JOB, - 60 => IPP_OP_IDENTIFY_PRINTER, - 61 => IPP_OP_VALIDATE_DOCUMENT, - 62 => IPP_OP_ADD_DOCUMENT_IMAGES, - 63 => IPP_OP_ACKNOWLEDGE_DOCUMENT, - 64 => IPP_OP_ACKNOWLEDGE_IDENTIFY_PRINTER, - 65 => IPP_OP_ACKNOWLEDGE_JOB, - 66 => IPP_OP_FETCH_DOCUMENT, - 67 => IPP_OP_FETCH_JOB, - 68 => IPP_OP_GET_OUTPUT_DEVICE_ATTRIBUTES, - 69 => IPP_OP_UPDATE_ACTIVE_JOBS, - 70 => IPP_OP_DEREGISTER_OUTPUT_DEVICE, - 71 => IPP_OP_UPDATE_DOCUMENT_STATUS, - 72 => IPP_OP_UPDATE_JOB_STATUS, - 73 => IPP_OP_UPDATE_OUTPUT_DEVICE_ATTRIBUTES, - 74 => IPP_OP_GET_NEXT_DOCUMENT_DATA, - 75 => IPP_OP_ALLOCATE_PRINTER_RESOURCES, - 76 => IPP_OP_CREATE_PRINTER, - 77 => IPP_OP_DEALLOCATE_PRINTER_RESOURCES, - 78 => IPP_OP_DELETE_PRINTER, - 79 => IPP_OP_GET_PRINTERS, - 80 => IPP_OP_SHUTDOWN_ONE_PRINTER, - 81 => IPP_OP_STARTUP_ONE_PRINTER, - 82 => IPP_OP_CANCEL_RESOURCE, - 83 => IPP_OP_CREATE_RESOURCE, - 84 => IPP_OP_INSTALL_RESOURCE, - 85 => IPP_OP_SEND_RESOURCE_DATA, - 86 => IPP_OP_SET_RESOURCE_ATTRIBUTES, - 87 => IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS, - 88 => IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS, - 89 => IPP_OP_DISABLE_ALL_PRINTERS, - 90 => IPP_OP_ENABLE_ALL_PRINTERS, - 91 => IPP_OP_GET_SYSTEM_ATTRIBUTES, - 92 => IPP_OP_GET_SYSTEM_SUPPORTED_VALUES, - 93 => IPP_OP_PAUSE_ALL_PRINTERS, - 94 => IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB, - 95 => IPP_OP_REGISTER_OUTPUT_DEVICE, - 96 => IPP_OP_RESTART_SYSTEM, - 97 => IPP_OP_RESUME_ALL_PRINTERS, - 98 => IPP_OP_SET_SYSTEM_ATTRIBUTES, - 99 => IPP_OP_SHUTDOWN_ALL_PRINTERS, - 100 => IPP_OP_STARTUP_ALL_PRINTERS, - 16384 => IPP_OP_PRIVATE, - 16385 => IPP_OP_CUPS_GET_DEFAULT, - 16386 => IPP_OP_CUPS_GET_PRINTERS, - 16387 => IPP_OP_CUPS_ADD_MODIFY_PRINTER, - 16388 => IPP_OP_CUPS_DELETE_PRINTER, - 16389 => IPP_OP_CUPS_GET_CLASSES, - 16390 => IPP_OP_CUPS_ADD_MODIFY_CLASS, - 16391 => IPP_OP_CUPS_DELETE_CLASS, - 16392 => IPP_OP_CUPS_ACCEPT_JOBS, - 16393 => IPP_OP_CUPS_REJECT_JOBS, - 16394 => IPP_OP_CUPS_SET_DEFAULT, - 16395 => IPP_OP_CUPS_GET_DEVICES, - 16396 => IPP_OP_CUPS_GET_PPDS, - 16397 => IPP_OP_CUPS_MOVE_JOB, - 16398 => IPP_OP_CUPS_AUTHENTICATE_JOB, - 16399 => IPP_OP_CUPS_GET_PPD, - 16423 => IPP_OP_CUPS_GET_DOCUMENT, - 16424 => IPP_OP_CUPS_CREATE_LOCAL_PRINTER, - _ => throw ArgumentError('Unknown value for ipp_op_e: $value'), - }; -} - -enum ipp_orient_e { - IPP_ORIENT_PORTRAIT(3), - IPP_ORIENT_LANDSCAPE(4), - IPP_ORIENT_REVERSE_LANDSCAPE(5), - IPP_ORIENT_REVERSE_PORTRAIT(6), - IPP_ORIENT_NONE(7); - - final int value; - const ipp_orient_e(this.value); - - static ipp_orient_e fromValue(int value) => switch (value) { - 3 => IPP_ORIENT_PORTRAIT, - 4 => IPP_ORIENT_LANDSCAPE, - 5 => IPP_ORIENT_REVERSE_LANDSCAPE, - 6 => IPP_ORIENT_REVERSE_PORTRAIT, - 7 => IPP_ORIENT_NONE, - _ => throw ArgumentError('Unknown value for ipp_orient_e: $value'), - }; -} - -enum ipp_pstate_e { - IPP_PSTATE_IDLE(3), - IPP_PSTATE_PROCESSING(4), - IPP_PSTATE_STOPPED(5); - - final int value; - const ipp_pstate_e(this.value); - - static ipp_pstate_e fromValue(int value) => switch (value) { - 3 => IPP_PSTATE_IDLE, - 4 => IPP_PSTATE_PROCESSING, - 5 => IPP_PSTATE_STOPPED, - _ => throw ArgumentError('Unknown value for ipp_pstate_e: $value'), - }; -} - -enum ipp_quality_e { - IPP_QUALITY_DRAFT(3), - IPP_QUALITY_NORMAL(4), - IPP_QUALITY_HIGH(5); - - final int value; - const ipp_quality_e(this.value); - - static ipp_quality_e fromValue(int value) => switch (value) { - 3 => IPP_QUALITY_DRAFT, - 4 => IPP_QUALITY_NORMAL, - 5 => IPP_QUALITY_HIGH, - _ => throw ArgumentError('Unknown value for ipp_quality_e: $value'), - }; -} - -enum ipp_res_e { - IPP_RES_PER_INCH(3), - IPP_RES_PER_CM(4); - - final int value; - const ipp_res_e(this.value); - - static ipp_res_e fromValue(int value) => switch (value) { - 3 => IPP_RES_PER_INCH, - 4 => IPP_RES_PER_CM, - _ => throw ArgumentError('Unknown value for ipp_res_e: $value'), - }; -} - -enum ipp_rstate_e { - IPP_RSTATE_PENDING(3), - IPP_RSTATE_AVAILABLE(4), - IPP_RSTATE_INSTALLED(5), - IPP_RSTATE_CANCELED(6), - IPP_RSTATE_ABORTED(7); - - final int value; - const ipp_rstate_e(this.value); - - static ipp_rstate_e fromValue(int value) => switch (value) { - 3 => IPP_RSTATE_PENDING, - 4 => IPP_RSTATE_AVAILABLE, - 5 => IPP_RSTATE_INSTALLED, - 6 => IPP_RSTATE_CANCELED, - 7 => IPP_RSTATE_ABORTED, - _ => throw ArgumentError('Unknown value for ipp_rstate_e: $value'), - }; -} - -enum ipp_sstate_e { - IPP_SSTATE_IDLE(3), - IPP_SSTATE_PROCESSING(4), - IPP_SSTATE_STOPPED(5); - - final int value; - const ipp_sstate_e(this.value); - - static ipp_sstate_e fromValue(int value) => switch (value) { - 3 => IPP_SSTATE_IDLE, - 4 => IPP_SSTATE_PROCESSING, - 5 => IPP_SSTATE_STOPPED, - _ => throw ArgumentError('Unknown value for ipp_sstate_e: $value'), - }; -} - -enum ipp_state_e { - IPP_STATE_ERROR(-1), - IPP_STATE_IDLE(0), - IPP_STATE_HEADER(1), - IPP_STATE_ATTRIBUTE(2), - IPP_STATE_DATA(3); - - final int value; - const ipp_state_e(this.value); - - static ipp_state_e fromValue(int value) => switch (value) { - -1 => IPP_STATE_ERROR, - 0 => IPP_STATE_IDLE, - 1 => IPP_STATE_HEADER, - 2 => IPP_STATE_ATTRIBUTE, - 3 => IPP_STATE_DATA, - _ => throw ArgumentError('Unknown value for ipp_state_e: $value'), - }; -} - -enum ipp_status_e { - IPP_STATUS_CUPS_INVALID(-1), - IPP_STATUS_OK(0), - IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED(1), - IPP_STATUS_OK_CONFLICTING(2), - IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS(3), - IPP_STATUS_OK_IGNORED_NOTIFICATIONS(4), - IPP_STATUS_OK_TOO_MANY_EVENTS(5), - IPP_STATUS_OK_BUT_CANCEL_SUBSCRIPTION(6), - IPP_STATUS_OK_EVENTS_COMPLETE(7), - IPP_STATUS_REDIRECTION_OTHER_SITE(512), - IPP_STATUS_CUPS_SEE_OTHER(640), - IPP_STATUS_ERROR_BAD_REQUEST(1024), - IPP_STATUS_ERROR_FORBIDDEN(1025), - IPP_STATUS_ERROR_NOT_AUTHENTICATED(1026), - IPP_STATUS_ERROR_NOT_AUTHORIZED(1027), - IPP_STATUS_ERROR_NOT_POSSIBLE(1028), - IPP_STATUS_ERROR_TIMEOUT(1029), - IPP_STATUS_ERROR_NOT_FOUND(1030), - IPP_STATUS_ERROR_GONE(1031), - IPP_STATUS_ERROR_REQUEST_ENTITY(1032), - IPP_STATUS_ERROR_REQUEST_VALUE(1033), - IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED(1034), - IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES(1035), - IPP_STATUS_ERROR_URI_SCHEME(1036), - IPP_STATUS_ERROR_CHARSET(1037), - IPP_STATUS_ERROR_CONFLICTING(1038), - IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED(1039), - IPP_STATUS_ERROR_COMPRESSION_ERROR(1040), - IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR(1041), - IPP_STATUS_ERROR_DOCUMENT_ACCESS(1042), - IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE(1043), - IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS(1044), - IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS(1045), - IPP_STATUS_ERROR_IGNORED_ALL_NOTIFICATIONS(1046), - IPP_STATUS_ERROR_PRINT_SUPPORT_FILE_NOT_FOUND(1047), - IPP_STATUS_ERROR_DOCUMENT_PASSWORD(1048), - IPP_STATUS_ERROR_DOCUMENT_PERMISSION(1049), - IPP_STATUS_ERROR_DOCUMENT_SECURITY(1050), - IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE(1051), - IPP_STATUS_ERROR_ACCOUNT_INFO_NEEDED(1052), - IPP_STATUS_ERROR_ACCOUNT_CLOSED(1053), - IPP_STATUS_ERROR_ACCOUNT_LIMIT_REACHED(1054), - IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED(1055), - IPP_STATUS_ERROR_NOT_FETCHABLE(1056), - IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED(1180), - IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED(1181), - IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED(1182), - IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED(1183), - IPP_STATUS_ERROR_INTERNAL(1280), - IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED(1281), - IPP_STATUS_ERROR_SERVICE_UNAVAILABLE(1282), - IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED(1283), - IPP_STATUS_ERROR_DEVICE(1284), - IPP_STATUS_ERROR_TEMPORARY(1285), - IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS(1286), - IPP_STATUS_ERROR_BUSY(1287), - IPP_STATUS_ERROR_JOB_CANCELED(1288), - IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED(1289), - IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED(1290), - IPP_STATUS_ERROR_TOO_MANY_JOBS(1291), - IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS(1292), - IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED(4096), - IPP_STATUS_ERROR_CUPS_PKI(4097), - IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED(4098); - - final int value; - const ipp_status_e(this.value); - - static ipp_status_e fromValue(int value) => switch (value) { - -1 => IPP_STATUS_CUPS_INVALID, - 0 => IPP_STATUS_OK, - 1 => IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED, - 2 => IPP_STATUS_OK_CONFLICTING, - 3 => IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS, - 4 => IPP_STATUS_OK_IGNORED_NOTIFICATIONS, - 5 => IPP_STATUS_OK_TOO_MANY_EVENTS, - 6 => IPP_STATUS_OK_BUT_CANCEL_SUBSCRIPTION, - 7 => IPP_STATUS_OK_EVENTS_COMPLETE, - 512 => IPP_STATUS_REDIRECTION_OTHER_SITE, - 640 => IPP_STATUS_CUPS_SEE_OTHER, - 1024 => IPP_STATUS_ERROR_BAD_REQUEST, - 1025 => IPP_STATUS_ERROR_FORBIDDEN, - 1026 => IPP_STATUS_ERROR_NOT_AUTHENTICATED, - 1027 => IPP_STATUS_ERROR_NOT_AUTHORIZED, - 1028 => IPP_STATUS_ERROR_NOT_POSSIBLE, - 1029 => IPP_STATUS_ERROR_TIMEOUT, - 1030 => IPP_STATUS_ERROR_NOT_FOUND, - 1031 => IPP_STATUS_ERROR_GONE, - 1032 => IPP_STATUS_ERROR_REQUEST_ENTITY, - 1033 => IPP_STATUS_ERROR_REQUEST_VALUE, - 1034 => IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED, - 1035 => IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, - 1036 => IPP_STATUS_ERROR_URI_SCHEME, - 1037 => IPP_STATUS_ERROR_CHARSET, - 1038 => IPP_STATUS_ERROR_CONFLICTING, - 1039 => IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED, - 1040 => IPP_STATUS_ERROR_COMPRESSION_ERROR, - 1041 => IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR, - 1042 => IPP_STATUS_ERROR_DOCUMENT_ACCESS, - 1043 => IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE, - 1044 => IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS, - 1045 => IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS, - 1046 => IPP_STATUS_ERROR_IGNORED_ALL_NOTIFICATIONS, - 1047 => IPP_STATUS_ERROR_PRINT_SUPPORT_FILE_NOT_FOUND, - 1048 => IPP_STATUS_ERROR_DOCUMENT_PASSWORD, - 1049 => IPP_STATUS_ERROR_DOCUMENT_PERMISSION, - 1050 => IPP_STATUS_ERROR_DOCUMENT_SECURITY, - 1051 => IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE, - 1052 => IPP_STATUS_ERROR_ACCOUNT_INFO_NEEDED, - 1053 => IPP_STATUS_ERROR_ACCOUNT_CLOSED, - 1054 => IPP_STATUS_ERROR_ACCOUNT_LIMIT_REACHED, - 1055 => IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED, - 1056 => IPP_STATUS_ERROR_NOT_FETCHABLE, - 1180 => IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED, - 1181 => IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED, - 1182 => IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED, - 1183 => IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED, - 1280 => IPP_STATUS_ERROR_INTERNAL, - 1281 => IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED, - 1282 => IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, - 1283 => IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED, - 1284 => IPP_STATUS_ERROR_DEVICE, - 1285 => IPP_STATUS_ERROR_TEMPORARY, - 1286 => IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS, - 1287 => IPP_STATUS_ERROR_BUSY, - 1288 => IPP_STATUS_ERROR_JOB_CANCELED, - 1289 => IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED, - 1290 => IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED, - 1291 => IPP_STATUS_ERROR_TOO_MANY_JOBS, - 1292 => IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS, - 4096 => IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED, - 4097 => IPP_STATUS_ERROR_CUPS_PKI, - 4098 => IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED, - _ => throw ArgumentError('Unknown value for ipp_status_e: $value'), - }; -} - -typedef ipp_t = _ipp_s; - -enum ipp_tag_e { - IPP_TAG_CUPS_INVALID(-1), - IPP_TAG_ZERO(0), - IPP_TAG_OPERATION(1), - IPP_TAG_JOB(2), - IPP_TAG_END(3), - IPP_TAG_PRINTER(4), - IPP_TAG_UNSUPPORTED_GROUP(5), - IPP_TAG_SUBSCRIPTION(6), - IPP_TAG_EVENT_NOTIFICATION(7), - IPP_TAG_RESOURCE(8), - IPP_TAG_DOCUMENT(9), - IPP_TAG_SYSTEM(10), - IPP_TAG_UNSUPPORTED_VALUE(16), - IPP_TAG_DEFAULT(17), - IPP_TAG_UNKNOWN(18), - IPP_TAG_NOVALUE(19), - IPP_TAG_NOTSETTABLE(21), - IPP_TAG_DELETEATTR(22), - IPP_TAG_ADMINDEFINE(23), - IPP_TAG_INTEGER(33), - IPP_TAG_BOOLEAN(34), - IPP_TAG_ENUM(35), - IPP_TAG_STRING(48), - IPP_TAG_DATE(49), - IPP_TAG_RESOLUTION(50), - IPP_TAG_RANGE(51), - IPP_TAG_BEGIN_COLLECTION(52), - IPP_TAG_TEXTLANG(53), - IPP_TAG_NAMELANG(54), - IPP_TAG_END_COLLECTION(55), - IPP_TAG_TEXT(65), - IPP_TAG_NAME(66), - IPP_TAG_RESERVED_STRING(67), - IPP_TAG_KEYWORD(68), - IPP_TAG_URI(69), - IPP_TAG_URISCHEME(70), - IPP_TAG_CHARSET(71), - IPP_TAG_LANGUAGE(72), - IPP_TAG_MIMETYPE(73), - IPP_TAG_MEMBERNAME(74), - IPP_TAG_EXTENSION(127), - IPP_TAG_CUPS_MASK(2147483647), - IPP_TAG_CUPS_CONST(-2147483648); - - final int value; - const ipp_tag_e(this.value); - - static ipp_tag_e fromValue(int value) => switch (value) { - -1 => IPP_TAG_CUPS_INVALID, - 0 => IPP_TAG_ZERO, - 1 => IPP_TAG_OPERATION, - 2 => IPP_TAG_JOB, - 3 => IPP_TAG_END, - 4 => IPP_TAG_PRINTER, - 5 => IPP_TAG_UNSUPPORTED_GROUP, - 6 => IPP_TAG_SUBSCRIPTION, - 7 => IPP_TAG_EVENT_NOTIFICATION, - 8 => IPP_TAG_RESOURCE, - 9 => IPP_TAG_DOCUMENT, - 10 => IPP_TAG_SYSTEM, - 16 => IPP_TAG_UNSUPPORTED_VALUE, - 17 => IPP_TAG_DEFAULT, - 18 => IPP_TAG_UNKNOWN, - 19 => IPP_TAG_NOVALUE, - 21 => IPP_TAG_NOTSETTABLE, - 22 => IPP_TAG_DELETEATTR, - 23 => IPP_TAG_ADMINDEFINE, - 33 => IPP_TAG_INTEGER, - 34 => IPP_TAG_BOOLEAN, - 35 => IPP_TAG_ENUM, - 48 => IPP_TAG_STRING, - 49 => IPP_TAG_DATE, - 50 => IPP_TAG_RESOLUTION, - 51 => IPP_TAG_RANGE, - 52 => IPP_TAG_BEGIN_COLLECTION, - 53 => IPP_TAG_TEXTLANG, - 54 => IPP_TAG_NAMELANG, - 55 => IPP_TAG_END_COLLECTION, - 65 => IPP_TAG_TEXT, - 66 => IPP_TAG_NAME, - 67 => IPP_TAG_RESERVED_STRING, - 68 => IPP_TAG_KEYWORD, - 69 => IPP_TAG_URI, - 70 => IPP_TAG_URISCHEME, - 71 => IPP_TAG_CHARSET, - 72 => IPP_TAG_LANGUAGE, - 73 => IPP_TAG_MIMETYPE, - 74 => IPP_TAG_MEMBERNAME, - 127 => IPP_TAG_EXTENSION, - 2147483647 => IPP_TAG_CUPS_MASK, - -2147483648 => IPP_TAG_CUPS_CONST, - _ => throw ArgumentError('Unknown value for ipp_tag_e: $value'), - }; -} - -typedef ipp_uchar_t = ffi.UnsignedChar; -typedef Dartipp_uchar_t = int; - -final class ipv6_mreq extends ffi.Struct { - external in6_addr ipv6mr_multiaddr; - - @ffi.UnsignedInt() - external int ipv6mr_interface; -} - -const int italic = 2; - -final class itimerval extends ffi.Struct { - external timeval it_interval; - - external timeval it_value; -} - -const int itlcDisableKeyScriptSync = 3; - -const int itlcDisableKeyScriptSyncMask = 8; - -const int itlcDualCaret = 6; - -const int itlcShowIcon = 7; - -const int itlcSysDirection = 15; - -const int iuCurrentCurLang = -4; - -const int iuCurrentDefLang = -5; - -@Deprecated('Deprecated') -const int iuCurrentScript = -2; - -@Deprecated('Deprecated') -const int iuNumberPartsTable = 2; - -const int iuScriptCurLang = -6; - -const int iuScriptDefLang = -7; - -const int iuSystemCurLang = -2; - -const int iuSystemDefLang = -3; - -@Deprecated('Deprecated') -const int iuSystemScript = -1; - -@Deprecated('Deprecated') -const int iuUnTokenTable = 3; - -@Deprecated('Deprecated') -const int iuWhiteSpaceList = 4; - -@Deprecated('Deprecated') -const int iuWordSelectTable = 0; - -@Deprecated('Deprecated') -const int iuWordWrapTable = 1; - -const int k16BE555PixelFormat = 16; - -const int k16BE565PixelFormat = 1110783541; - -const int k16BitCardErr = -9084; - -const int k16LE5551PixelFormat = 892679473; - -const int k16LE555PixelFormat = 1278555445; - -const int k16LE565PixelFormat = 1278555701; - -const int k1IndexedGrayPixelFormat = 33; - -const int k1MonochromePixelFormat = 1; - -const int k24BGRPixelFormat = 842285639; - -const int k24RGBPixelFormat = 24; - -const int k2IndexedGrayPixelFormat = 34; - -const int k2IndexedPixelFormat = 2; - -const int k2vuyPixelFormat = 846624121; - -const int k32ABGRPixelFormat = 1094862674; - -const int k32ARGBPixelFormat = 32; - -const int k32BGRAPixelFormat = 1111970369; - -@Deprecated('Deprecated') -const int k32BitHeap = 1; - -const int k32RGBAPixelFormat = 1380401729; - -const int k4IndexedGrayPixelFormat = 36; - -const int k4IndexedPixelFormat = 4; - -@Deprecated('Deprecated') -const int k68kInterruptLevelMask = 7; - -const int k8IndexedGrayPixelFormat = 40; - -const int k8IndexedPixelFormat = 8; - -const int kAEAND = 1095648288; - -const int kAEAbout = 1633841013; - -const int kAEActivate = 1633907830; - -const int kAEAfter = 1634104421; - -const int kAEAliasSelection = 1935764585; - -const int kAEAll = 1634495520; - -const int kAEAllCaps = 1634493296; - -const int kAEAlwaysInteract = 48; - -const int kAEAnswer = 1634628466; - -const int kAEAny = 1634629920; - -const int kAEApplicationActivationExpected = 1633775716; - -const int kAEApplicationClass = 1634758764; - -const int kAEApplicationDied = 1868720500; - -const int kAEArrowAtEnd = 1634887022; - -const int kAEArrowAtStart = 1634890612; - -const int kAEArrowBothEnds = 1634886255; - -const int kAEAsk = 1634954016; - -const int kAEAutoDown = 1635087471; - -const int kAEBefore = 1650812527; - -const int kAEBeginTransaction = 1650812777; - -const int kAEBeginning = 1650945639; - -const int kAEBeginsWith = 1650947956; - -const int kAEBold = 1651469412; - -const int kAECanInteract = 32; - -const int kAECanSwitchLayer = 64; - -const int kAECaseSensEquals = 1668506993; - -const int kAECentered = 1667591796; - -const int kAEChangeView = 1986618743; - -const int kAEClone = 1668050798; - -const int kAEClose = 1668050803; - -const int kAECommandClass = 1668116068; - -const int kAECondensed = 1668247140; - -const int kAEContains = 1668247156; - -const int kAECopy = 1668247673; - -const int kAECoreSuite = 1668248165; - -const int kAECountElements = 1668183141; - -const int kAECreateElement = 1668441452; - -const int kAECreatePublisher = 1668314466; - -const int kAECut = 1668641824; - -const int kAEDataArray = 0; - -const int kAEDeactivate = 1684104052; - -const int kAEDebugPOSTHeader = 1; - -const int kAEDebugReplyHeader = 2; - -const int kAEDebugXMLDebugAll = -1; - -const int kAEDebugXMLRequest = 4; - -const int kAEDebugXMLResponse = 8; - -const int kAEDefaultTimeout = -1; - -const int kAEDelete = 1684368495; - -const int kAEDescArray = 3; - -const int kAEDescListFactorNone = 0; - -const int kAEDescListFactorType = 4; - -const int kAEDescListFactorTypeAndSize = 8; - -const int kAEDirectCall = 1; - -const int kAEDiskEvent = 1684632427; - -const int kAEDoNotAutomaticallyAddAnnotationsToEvent = 65536; - -const int kAEDoNotPromptForUserConsent = 131072; - -const int kAEDoObjectsExist = 1685022072; - -const int kAEDoScript = 1685025635; - -const int kAEDontExecute = 8192; - -const int kAEDontReconnect = 128; - -const int kAEDontRecord = 4096; - -const int kAEDown = 1685026670; - -const int kAEDrag = 1685217639; - -const int kAEDuplicateSelection = 1935963504; - -const int kAEEditGraphic = 1701079412; - -const int kAEEmptyTrash = 1701671028; - -const int kAEEnd = 1701733408; - -const int kAEEndTransaction = 1701733492; - -const int kAEEndsWith = 1701733491; - -const int kAEEquals = 1025515552; - -const int kAEExpanded = 1885698160; - -const int kAEFast = 1717662580; - -const int kAEFetchURL = 1179996748; - -const int kAEFinderEvents = 1179534418; - -const int kAEFirst = 1718186611; - -const int kAEFormulaProtect = 1718645359; - -const int kAEFullyJustified = 1718971500; - -const int kAEGetClassInfo = 1903125098; - -const int kAEGetData = 1734702180; - -const int kAEGetDataSize = 1685285242; - -const int kAEGetEventInfo = 1735681385; - -const int kAEGetInfoSelection = 1936289382; - -const int kAEGetPrivilegeSelection = 1936749174; - -const int kAEGetSuiteInfo = 1735684969; - -const int kAEGetURL = 1196773964; - -const int kAEGreaterThan = 1042292768; - -const int kAEGreaterThanEquals = 1044193312; - -const int kAEGrow = 1735552887; - -const int kAEHTTPProxyHostAttr = 2020111464; - -const int kAEHTTPProxyPortAttr = 2020111472; - -const int kAEHandleArray = 2; - -const int kAEHandleSimpleRanges = 32; - -const int kAEHiQuality = 1751740789; - -const int kAEHidden = 1751737454; - -const int kAEHighLevel = 1751738216; - -const int kAEHighPriority = 1; - -const int kAEIDoMarking = 4; - -const int kAEIDoMinimum = 0; - -const int kAEIDoWhose = 1; - -const int kAEISAction = 1264673652; - -const int kAEISActionPath = 1264676980; - -const int kAEISClientAddress = 1633969266; - -const int kAEISClientIP = 1264806256; - -const int kAEISContentType = 1668577648; - -const int kAEISFromUser = 1718775157; - -const int kAEISFullRequest = 1265005169; - -const int kAEISGetURL = 1735750252; - -const int kAEISHTTPSearchArgs = 1801875314; - -const int kAEISMethod = 1835365480; - -const int kAEISPassword = 1885434739; - -const int kAEISPostArgs = 1886352244; - -const int kAEISReferrer = 1919247986; - -const int kAEISScriptName = 1935896173; - -const int kAEISServerName = 1937141357; - -const int kAEISServerPort = 1937141876; - -const int kAEISUserAgent = 1097297524; - -const int kAEISUserName = 1970496882; - -const int kAEISWebStarSuite = 1465341885; - -const int kAEImageGraphic = 1768777586; - -const int kAEInfo = 11; - -const int kAEInternetSuite = 1735750252; - -const int kAEIsUniform = 1769174382; - -const int kAEItalic = 1769234796; - -const int kAEKeyClass = 1801812323; - -const int kAEKeyDescArray = 4; - -const int kAEKeyDown = 1801746286; - -const int kAELast = 1818325876; - -const int kAELeftJustified = 1818584692; - -const int kAELessThan = 1008738336; - -const int kAELessThanEquals = 1010638880; - -const int kAELocalProcess = 3; - -const int kAELogOut = 1819240303; - -const int kAELowercase = 1819244387; - -const int kAEMain = 0; - -const int kAEMakeObjectsVisible = 1836476787; - -const int kAEMenuClass = 1835363957; - -const int kAEMenuSelect = 1835559284; - -const int kAEMiddle = 1835623524; - -const int kAEMiscStandards = 1835627363; - -const int kAEModifiable = 1836016742; - -const int kAEMouseClass = 1836021107; - -const int kAEMouseDown = 1835300718; - -const int kAEMouseDownInBack = 1835295339; - -const int kAEMove = 1836021349; - -const int kAEMoved = 1836021349; - -const int kAENOT = 1313821728; - -const int kAENavigationKey = 1851881061; - -const int kAENeverInteract = 16; - -const int kAENext = 1852143732; - -const int kAENo = 1852776480; - -const int kAENoArrow = 1634889327; - -const int kAENoReply = 1; - -const int kAENonmodifiable = 1852665700; - -const int kAENormalPriority = 0; - -const int kAENotifyRecording = 1919247218; - -const int kAENotifyStartRecording = 1919247153; - -const int kAENotifyStopRecording = 1919247152; - -const int kAENullEvent = 1853189228; - -const int kAEOR = 1330782240; - -const int kAEOSAXSizeResource = 1869834618; - -const int kAEOpen = 1868853091; - -const int kAEOpenApplication = 1868656752; - -const int kAEOpenContents = 1868787566; - -const int kAEOpenDocuments = 1868853091; - -const int kAEOpenSelection = 1936683109; - -const int kAEOutline = 1869968492; - -const int kAEPackedArray = 1; - -const int kAEPageSetup = 1885827957; - -const int kAEPassSubDescs = 8; - -const int kAEPaste = 1885434740; - -const int kAEPlain = 1886151022; - -const int kAEPrevious = 1886545270; - -const int kAEPrint = 1885630307; - -const int kAEPrintDocuments = 1885630307; - -const int kAEPrintSelection = 1936749161; - -const int kAEPrintWindow = 1886873966; - -const int kAEProcessNonReplyEvents = 32768; - -const int kAEPromise = 1886547821; - -const int kAEPutAwaySelection = 1936749940; - -const int kAEQDAdMax = 1633971576; - -const int kAEQDAdMin = 1633971566; - -const int kAEQDAddOver = 1633969263; - -const int kAEQDAddPin = 1633969264; - -const int kAEQDBic = 1651073824; - -const int kAEQDBlend = 1651273316; - -const int kAEQDCopy = 1668315424; - -const int kAEQDNotBic = 1851943267; - -const int kAEQDNotCopy = 1852010617; - -const int kAEQDNotOr = 1853124466; - -const int kAEQDNotXor = 1853386610; - -const int kAEQDOr = 1869750304; - -const int kAEQDSubOver = 1937072751; - -const int kAEQDSubPin = 1937072752; - -const int kAEQDSupplementalSuite = 1902408560; - -const int kAEQDXor = 2020569632; - -const int kAEQueueReply = 2; - -const int kAEQuickdrawSuite = 1902408311; - -const int kAEQuitAll = 1903520097; - -const int kAEQuitApplication = 1903520116; - -const int kAEQuitPreserveState = 1937006964; - -const int kAEQuitReason = 2003335487; - -const int kAERPCClass = 1919968032; - -const int kAERawKey = 1919640953; - -const int kAEReallyLogOut = 1919706991; - -const int kAERedo = 1919247471; - -const int kAERegular = 1919248236; - -const int kAERemoteProcess = 4; - -const int kAEReopenApplication = 1918988400; - -const int kAEReplace = 1919970403; - -const int kAERequiredSuite = 1919250788; - -const int kAEResized = 1920166266; - -const int kAEResolveNestedLists = 16; - -const int kAERestart = 1919251316; - -const int kAEResume = 1920167269; - -const int kAERevealSelection = 1936876918; - -const int kAERevert = 1920365172; - -const int kAERightJustified = 1919379572; - -const int kAESOAPScheme = 1397702992; - -const int kAESameProcess = 2; - -const int kAESave = 1935767141; - -const int kAEScrapEvent = 1935897200; - -const int kAEScriptingSizeResource = 1935897466; - -const int kAESelect = 1936483188; - -const int kAESetData = 1936028772; - -const int kAESetPosition = 1886352238; - -const int kAEShadow = 1936220516; - -const int kAESharedScriptHandler = 2004050800; - -const int kAESharing = 13; - -const int kAEShowClipboard = 1936221036; - -const int kAEShowPreferences = 1886545254; - -const int kAEShowRestartDialog = 1920103284; - -const int kAEShowShutdownDialog = 1920164974; - -const int kAEShutDown = 1936225652; - -const int kAESleep = 1936483696; - -const int kAESmallCaps = 1936548720; - -const int kAESocks4Protocol = 4; - -const int kAESocks5Protocol = 5; - -const int kAESocksHostAttr = 2020829299; - -const int kAESocksPasswordAttr = 2020829303; - -const int kAESocksPortAttr = 2020829296; - -const int kAESocksProxyAttr = 2020831083; - -const int kAESocksUserAttr = 2020829301; - -const int kAESpecialClassProperties = 1665147681; - -const int kAEStartRecording = 1919247201; - -const int kAEStopRecording = 1919247203; - -const int kAEStoppedMoving = 1937010544; - -const int kAEStrikethrough = 1937011307; - -const int kAESubscript = 1935831907; - -const int kAESuperscript = 1936749411; - -const int kAESuspend = 1937077104; - -const int kAETableSuite = 1952607347; - -const int kAETerminologyExtension = 1634038885; - -const int kAETextSuite = 1413830740; - -const int kAETransactionTerminated = 1953788525; - -const int kAEUTApostrophe = 3; - -const int kAEUTChangesState = 12; - -const int kAEUTDirectParamIsReference = 9; - -const int kAEUTEnumListIsExclusive = 10; - -const int kAEUTEnumerated = 13; - -const int kAEUTEnumsAreTypes = 11; - -const int kAEUTFeminine = 2; - -const int kAEUTHasReturningParam = 31; - -const int kAEUTMasculine = 1; - -const int kAEUTNotDirectParamIsTarget = 8; - -const int kAEUTOptional = 15; - -const int kAEUTParamIsReference = 9; - -const int kAEUTParamIsTarget = 8; - -const int kAEUTPlural = 0; - -const int kAEUTPropertyIsReference = 9; - -const int kAEUTReadWrite = 12; - -const int kAEUTReplyIsReference = 9; - -const int kAEUTTightBindingFunction = 12; - -const int kAEUTlistOfItems = 14; - -const int kAEUnderline = 1970168940; - -const int kAEUndo = 1970168943; - -const int kAEUnknownSource = 0; - -const int kAEUp = 1970282528; - -const int kAEUpdate = 1970300020; - -const int kAEUseHTTPProxyAttr = 2020962418; - -const int kAEUseRelativeIterators = 64; - -const int kAEUseSocksAttr = 2020828019; - -const int kAEUserTerminology = 1634039156; - -const int kAEVirtualKey = 1801812323; - -const int kAEWaitReply = 3; - -const int kAEWakeUpEvent = 2002873189; - -const int kAEWantReceipt = 512; - -const int kAEWholeWordEquals = 2004313457; - -const int kAEWindowClass = 2003398244; - -const int kAEXMLRPCScheme = 1380991794; - -const int kAEYes = 2036691744; - -const int kAEZoom = 2054123373; - -const int kAEZoomIn = 7; - -const int kAEZoomOut = 8; - -const int kAFPExtendedFlagsAlternateAddressMask = 1; - -const int kAFPServerIcon = 1634103411; - -const int kAFPTagLengthDDP = 6; - -const int kAFPTagLengthIP = 6; - -const int kAFPTagLengthIPPort = 8; - -const int kAFPTagTypeDDP = 3; - -const int kAFPTagTypeDNS = 4; - -const int kAFPTagTypeIP = 1; - -const int kAFPTagTypeIPPort = 2; - -const int kALMDeferSwitchErr = -30043; - -const int kALMDuplicateModuleErr = -30045; - -const int kALMGroupNotFoundErr = -30048; - -const int kALMInstallationErr = -30044; - -const int kALMInternalErr = -30049; - -const int kALMLocationNotFoundErr = -30048; - -@Deprecated('Deprecated') -const int kALMLocationsFolderType = 1717660780; - -const int kALMModuleCommunicationErr = -30046; - -@Deprecated('Deprecated') -const int kALMModulesFolderType = 2002873451; - -const int kALMNoSuchModuleErr = -30047; - -@Deprecated('Deprecated') -const int kALMPreferencesFolderType = 1953655152; - -const int kALMRebootFlagsLevelErr = -30042; - -const int kANKRCurrentVersion = 0; - -@Deprecated('Deprecated') -const int kARMMountVol = 1; - -@Deprecated('Deprecated') -const int kARMMultVols = 8; - -@Deprecated('Deprecated') -const int kARMNoUI = 2; - -@Deprecated('Deprecated') -const int kARMSearch = 256; - -@Deprecated('Deprecated') -const int kARMSearchMore = 512; - -@Deprecated('Deprecated') -const int kARMSearchRelFirst = 1024; - -@Deprecated('Deprecated') -const int kARMTryFileIDFirst = 2048; - -const int kATSBoldQDStretch = 98304; - -const int kATSCubicCurveType = 1; - -const int kATSDeletedGlyphcode = 65535; - -const int kATSFlatDataUstlCurrentVersion = 2; - -const int kATSFlatDataUstlVersion0 = 0; - -const int kATSFlatDataUstlVersion1 = 1; - -const int kATSFlatDataUstlVersion2 = 2; - -const int kATSFlattenedFontSpecifierRawNameData = 1851878756; - -const int kATSFontAutoActivationAsk = 4; - -const int kATSFontAutoActivationDefault = 0; - -const int kATSFontAutoActivationDisabled = 1; - -const int kATSFontAutoActivationEnabled = 2; - -const int kATSFontContainerRefUnspecified = 0; - -const int kATSFontContextGlobal = 1; - -const int kATSFontContextLocal = 2; - -const int kATSFontContextUnspecified = 0; - -const int kATSFontFamilyRefUnspecified = 0; - -const int kATSFontFilterCurrentVersion = 0; - -const int kATSFontFormatUnspecified = 0; - -const int kATSFontRefUnspecified = 0; - -const int kATSGenerationUnspecified = 0; - -const int kATSGlyphInfoAppleReserved = 536608744; - -const int kATSGlyphInfoByteSizeMask = 7; - -const int kATSGlyphInfoHasImposedWidth = 16; - -const int kATSGlyphInfoIsAttachment = -2147483648; - -const int kATSGlyphInfoIsLTHanger = 1073741824; - -const int kATSGlyphInfoIsRBHanger = 536870912; - -const int kATSGlyphInfoIsWhiteSpace = 262144; - -const int kATSGlyphInfoTerminatorGlyph = 524288; - -const int kATSInvalidFontAccess = -982; - -const int kATSInvalidFontContainerAccess = -985; - -const int kATSInvalidFontFamilyAccess = -981; - -const int kATSInvalidFontTableAccess = -984; - -const int kATSInvalidGlyphAccess = -986; - -const int kATSItalicQDSkew = 16384; - -const int kATSIterationCompleted = -980; - -const int kATSIterationScopeModified = -983; - -const int kATSLineAppleReserved = -52428800; - -const int kATSLineApplyAntiAliasing = 2048; - -const int kATSLineBreakToNearestCharacter = 33554432; - -const int kATSLineDisableAllBaselineAdjustments = 524288; - -const int kATSLineDisableAllGlyphMorphing = 131072; - -const int kATSLineDisableAllJustification = 65536; - -const int kATSLineDisableAllKerningAdjustments = 262144; - -const int kATSLineDisableAllLayoutOperations = 2031616; - -const int kATSLineDisableAllTrackingAdjustments = 1048576; - -const int kATSLineDisableAutoAdjustDisplayPos = 16384; - -const int kATSLineDisableNegativeJustification = 8192; - -const int kATSLineFillOutToWidth = 256; - -const int kATSLineFractDisable = 64; - -const int kATSLineHasNoHangers = 2; - -const int kATSLineHasNoOpticalAlignment = 4; - -const int kATSLineIgnoreFontLeading = 1024; - -const int kATSLineImposeNoAngleForEnds = 128; - -const int kATSLineIsDisplayOnly = 1; - -const int kATSLineKeepSpacesOutOfMargin = 8; - -const int kATSLineLastNoJustification = 32; - -const int kATSLineNoAntiAliasing = 4096; - -const int kATSLineNoLayoutOptions = 0; - -const int kATSLineNoSpecialJustification = 16; - -const int kATSLineTabAdjustEnabled = 512; - -const int kATSLineUseDeviceMetrics = 16777216; - -const int kATSLineUseQDRendering = 32768; - -const int kATSNoTracking = -2147483648; - -const int kATSOptionFlagsActivateDisabled = 32; - -const int kATSOptionFlagsComposeFontPostScriptName = 1; - -const int kATSOptionFlagsDefault = 0; - -const int kATSOptionFlagsDefaultScope = 0; - -const int kATSOptionFlagsDoNotNotify = 128; - -const int kATSOptionFlagsIncludeDisabledMask = 128; - -const int kATSOptionFlagsIterateByPrecedenceMask = 32; - -const int kATSOptionFlagsIterationScopeMask = 28672; - -const int kATSOptionFlagsProcessSubdirectories = 64; - -const int kATSOptionFlagsRecordPersistently = 262144; - -const int kATSOptionFlagsRestrictedScope = 8192; - -const int kATSOptionFlagsUnRestrictedScope = 4096; - -const int kATSOptionFlagsUseDataFork = 768; - -const int kATSOptionFlagsUseDataForkAsResourceFork = 256; - -const int kATSOptionFlagsUseResourceFork = 512; - -const int kATSOtherCurveType = 3; - -const int kATSQuadCurveType = 2; - -const int kATSRadiansFactor = 1144; - -const int kATSStyleAppleReserved = -8; - -const int kATSStyleApplyAntiAliasing = 2; - -const int kATSStyleApplyHints = 0; - -const int kATSStyleNoAntiAliasing = 4; - -const int kATSStyleNoHinting = 1; - -const int kATSStyleNoOptions = 0; - -const int kATSUAfterWithStreamShiftTag = 268; - -const int kATSUAscentTag = 284; - -const int kATSUBackgroundCallback = 1; - -const int kATSUBackgroundColor = 0; - -const int kATSUBadStreamErr = -8902; - -const int kATSUBaselineClassTag = 274; - -const int kATSUBeforeWithStreamShiftTag = 267; - -const int kATSUBusyObjectErr = -8809; - -const int kATSUByCharacter = 0; - -const int kATSUByCharacterCluster = 3; - -const int kATSUByCluster = 1; - -const int kATSUByTypographicCluster = 1; - -const int kATSUByWord = 2; - -const int kATSUCGContextTag = 32767; - -const int kATSUCenterTab = 1; - -const int kATSUClearAll = -1; - -const int kATSUColorTag = 263; - -const int kATSUCoordinateOverflowErr = -8807; - -const int kATSUCrossStreamShiftTag = 269; - -const int kATSUDataStreamUnicodeStyledText = 1970500716; - -const int kATSUDecimalTab = 3; - -const int kATSUDecompositionFactorTag = 273; - -const int kATSUDefaultFontFallbacks = 0; - -const int kATSUDescentTag = 285; - -const int kATSUDirectDataAdvanceDeltaFixedArray = 0; - -const int kATSUDirectDataBaselineDeltaFixedArray = 1; - -const int kATSUDirectDataDeviceDeltaSInt16Array = 2; - -const int kATSUDirectDataLayoutRecordATSLayoutRecordCurrent = 100; - -const int kATSUDirectDataLayoutRecordATSLayoutRecordVersion1 = 100; - -const int kATSUDirectDataStyleIndexUInt16Array = 3; - -const int kATSUDirectDataStyleSettingATSUStyleSettingRefArray = 4; - -const int kATSUFlattenOptionNoOptionsMask = 0; - -const int kATSUFontMatrixTag = 289; - -const int kATSUFontTag = 261; - -const int kATSUFontsMatched = -8793; - -const int kATSUFontsNotMatched = -8794; - -const int kATSUForceHangingTag = 280; - -const int kATSUFromFollowingLayout = -3; - -const int kATSUFromPreviousLayout = -2; - -const int kATSUFromTextBeginning = -1; - -const int kATSUGlyphSelectorTag = 287; - -const int kATSUHangingInhibitFactorTag = 271; - -const int kATSUImposeWidthTag = 266; - -const int kATSUInvalidAttributeSizeErr = -8798; - -const int kATSUInvalidAttributeTagErr = -8799; - -const int kATSUInvalidAttributeValueErr = -8797; - -const int kATSUInvalidCacheErr = -8800; - -const int kATSUInvalidCallInsideCallbackErr = -8904; - -const int kATSUInvalidFontErr = -8796; - -const int kATSUInvalidFontFallbacksErr = -8900; - -const int kATSUInvalidFontID = 0; - -const int kATSUInvalidStyleErr = -8791; - -const int kATSUInvalidTextLayoutErr = -8790; - -const int kATSUInvalidTextRangeErr = -8792; - -const int kATSUKerningInhibitFactorTag = 272; - -const int kATSULangRegionTag = 264; - -const int kATSULanguageTag = 264; - -const int kATSULastErr = -8959; - -const int kATSULastResortOnlyFallback = 1; - -const int kATSULayoutOperationAppleReserved = -64; - -const int kATSULayoutOperationBaselineAdjustment = 8; - -const int kATSULayoutOperationCallbackStatusContinue = 1; - -const int kATSULayoutOperationCallbackStatusHandled = 0; - -const int kATSULayoutOperationJustification = 1; - -const int kATSULayoutOperationKerningAdjustment = 4; - -const int kATSULayoutOperationMorph = 2; - -const int kATSULayoutOperationNone = 0; - -const int kATSULayoutOperationOverrideTag = 15; - -const int kATSULayoutOperationPostLayoutAdjustment = 32; - -const int kATSULayoutOperationTrackingAdjustment = 16; - -const int kATSULeadingTag = 286; - -const int kATSULeftTab = 0; - -const int kATSULeftToRightBaseDirection = 0; - -const int kATSULineAscentTag = 8; - -const int kATSULineBaselineValuesTag = 6; - -const int kATSULineBreakInWord = -8808; - -const int kATSULineDecimalTabCharacterTag = 14; - -const int kATSULineDescentTag = 9; - -const int kATSULineDirectionTag = 3; - -const int kATSULineFlushFactorTag = 5; - -const int kATSULineFontFallbacksTag = 13; - -const int kATSULineHighlightCGColorTag = 17; - -const int kATSULineJustificationFactorTag = 4; - -const int kATSULineLangRegionTag = 10; - -const int kATSULineLanguageTag = 10; - -const int kATSULineLayoutOptionsTag = 7; - -const int kATSULineRotationTag = 2; - -const int kATSULineTextLocatorTag = 11; - -const int kATSULineTruncationTag = 12; - -const int kATSULineWidthTag = 1; - -const int kATSULowLevelErr = -8804; - -const int kATSUMaxATSUITagValue = 65535; - -const int kATSUMaxLineTag = 18; - -const int kATSUMaxStyleTag = 299; - -const int kATSUNoCaretAngleTag = 277; - -const int kATSUNoCorrespondingFontErr = -8795; - -const int kATSUNoFontCmapAvailableErr = -8805; - -const int kATSUNoFontNameErr = -8905; - -const int kATSUNoFontScalerAvailableErr = -8806; - -const int kATSUNoLigatureSplitTag = 276; - -const int kATSUNoOpticalAlignmentTag = 279; - -const int kATSUNoSelector = 65535; - -const int kATSUNoSpecialJustificationTag = 281; - -const int kATSUNoStyleRunsAssignedErr = -8802; - -const int kATSUNotSetErr = -8801; - -const int kATSUNumberTabTypes = 4; - -const int kATSUOutputBufferTooSmallErr = -8903; - -const int kATSUPriorityJustOverrideTag = 275; - -const int kATSUQDBoldfaceTag = 256; - -const int kATSUQDCondensedTag = 259; - -const int kATSUQDExtendedTag = 260; - -const int kATSUQDItalicTag = 257; - -const int kATSUQDUnderlineTag = 258; - -const int kATSUQuickDrawTextErr = -8803; - -const int kATSURGBAlphaColorTag = 288; - -const int kATSURightTab = 2; - -const int kATSURightToLeftBaseDirection = 1; - -const int kATSUSequentialFallbacksExclusive = 3; - -const int kATSUSequentialFallbacksPreferred = 2; - -const int kATSUSizeTag = 262; - -const int kATSUStronglyHorizontal = 0; - -const int kATSUStronglyVertical = 1; - -const int kATSUStyleContainedBy = 3; - -const int kATSUStyleContains = 1; - -const int kATSUStyleDoubleLineCount = 2; - -const int kATSUStyleDropShadowBlurOptionTag = 296; - -const int kATSUStyleDropShadowColorOptionTag = 298; - -const int kATSUStyleDropShadowOffsetOptionTag = 297; - -const int kATSUStyleDropShadowTag = 295; - -const int kATSUStyleEquals = 2; - -const int kATSUStyleRenderingOptionsTag = 283; - -const int kATSUStyleSingleLineCount = 1; - -const int kATSUStyleStrikeThroughColorOptionTag = 294; - -const int kATSUStyleStrikeThroughCountOptionTag = 293; - -const int kATSUStyleStrikeThroughTag = 292; - -const int kATSUStyleTextLocatorTag = 282; - -const int kATSUStyleUnderlineColorOptionTag = 291; - -const int kATSUStyleUnderlineCountOptionTag = 290; - -const int kATSUStyleUnequal = 0; - -const int kATSUSuppressCrossKerningTag = 278; - -const int kATSUToTextEnd = -1; - -const int kATSUTrackingTag = 270; - -const int kATSUTruncFeatNoSquishing = 8; - -const int kATSUTruncateEnd = 2; - -const int kATSUTruncateMiddle = 3; - -const int kATSUTruncateNone = 0; - -const int kATSUTruncateSpecificationMask = 7; - -const int kATSUTruncateStart = 1; - -const int kATSUUnFlattenOptionNoOptionsMask = 0; - -const int kATSUUnsupportedStreamFormatErr = -8901; - -const int kATSUUseGrafPortPenLoc = -1; - -const int kATSUUseLineControlWidth = 2147483647; - -const int kATSUVerticalCharacterTag = 265; - -const int kATSUseCaretOrigins = 0; - -const int kATSUseDeviceOrigins = 1; - -const int kATSUseFractionalOrigins = 2; - -const int kATSUseGlyphAdvance = 2147483647; - -const int kATSUseLineHeight = 2147483647; - -const int kATSUseOriginFlags = 3; - -const int kAXValueAXErrorType = 5; - -const int kAXValueCFRangeType = 4; - -const int kAXValueCGPointType = 1; - -const int kAXValueCGRectType = 3; - -const int kAXValueCGSizeType = 2; - -const int kAXValueIllegalType = 0; - -const int kAbbrevSquaredLigaturesOffSelector = 15; - -const int kAbbrevSquaredLigaturesOnSelector = 14; - -@Deprecated('Deprecated') -const int kAccessException = 3; - -const int kAccountKCItemAttr = 1633903476; - -const int kAddKCEvent = 3; - -const int kAddKCEventMask = 8; - -const int kAddressKCItemAttr = 1633969266; - -const int kAlertCautionBadgeIcon = 1667392615; - -const int kAlertCautionIcon = 1667331444; - -const int kAlertNoteIcon = 1852798053; - -const int kAlertStopIcon = 1937010544; - -const int kAliasBadgeIcon = 1633838183; - -const int kAlignAbsoluteCenter = 5; - -const int kAlignBottom = 3; - -const int kAlignBottomLeft = 11; - -const int kAlignBottomRight = 15; - -const int kAlignCenterBottom = 7; - -const int kAlignCenterLeft = 9; - -const int kAlignCenterRight = 13; - -const int kAlignCenterTop = 6; - -const int kAlignHorizontalCenter = 4; - -const int kAlignLeft = 8; - -const int kAlignNone = 0; - -const int kAlignRight = 12; - -const int kAlignTop = 2; - -const int kAlignTopLeft = 10; - -const int kAlignTopRight = 14; - -const int kAlignVerticalCenter = 1; - -const int kAllCapsSelector = 1; - -const int kAllLowerCaseSelector = 2; - -const int kAllPPDDomains = 1; - -const int kAllTypeFeaturesOffSelector = 1; - -const int kAllTypeFeaturesOnSelector = 0; - -const int kAllTypographicFeaturesType = 0; - -const int kAlreadySavedStateErr = -9105; - -const int kAltHalfWidthTextSelector = 6; - -const int kAltProportionalTextSelector = 5; - -const int kAlternateHorizKanaOffSelector = 1; - -const int kAlternateHorizKanaOnSelector = 0; - -const int kAlternateKanaType = 34; - -const int kAlternateVertKanaOffSelector = 3; - -const int kAlternateVertKanaOnSelector = 2; - -const int kAlwaysSendSubject = 8192; - -const int kAndConnections = 268435453; - -const int kAnnotationType = 24; - -const int kAnyAuthType = 0; - -@Deprecated('Deprecated') -const int kAnyComponentFlagsMask = 0; - -@Deprecated('Deprecated') -const int kAnyComponentManufacturer = 0; - -@Deprecated('Deprecated') -const int kAnyComponentSubType = 0; - -@Deprecated('Deprecated') -const int kAnyComponentType = 0; - -const int kAnyPort = 0; - -const int kAnyProtocol = 0; - -const int kAnyTransactionID = 0; - -const int kAppPackageAliasType = 1717661793; - -const int kAppearanceFolderIcon = 1634758770; - -@Deprecated('Deprecated') -const int kAppearanceFolderType = 1634758770; - -const int kAppleExtrasFolderIcon = 1634040004; - -@Deprecated('Deprecated') -const int kAppleExtrasFolderType = 1634040004; - -const int kAppleLogoIcon = 1667330156; - -const int kAppleLosslessFormatFlag_16BitSourceData = 1; - -const int kAppleLosslessFormatFlag_20BitSourceData = 2; - -const int kAppleLosslessFormatFlag_24BitSourceData = 3; - -const int kAppleLosslessFormatFlag_32BitSourceData = 4; - -@Deprecated('Deprecated') -const int kAppleManufacturer = 1634758764; - -const int kAppleMenuFolderAliasType = 1717657965; - -const int kAppleMenuFolderIcon = 1634561653; - -const int kAppleMenuFolderIconResource = -3982; - -@Deprecated('Deprecated') -const int kAppleMenuFolderType = 1634561653; - -const int kAppleMenuIcon = 1935765612; - -const int kAppleScriptBadgeIcon = 1935897200; - -@Deprecated('Deprecated') -const int kAppleShareAuthenticationFolderType = 1635087464; - -const int kAppleSharePasswordKCItemClass = 1634953328; - -@Deprecated('Deprecated') -const int kAppleShareSupportFolderType = 1936220530; - -const int kAppleTalkIcon = 1635019883; - -const int kAppleTalkZoneIcon = 1635023470; - -@Deprecated('Deprecated') -const int kAppleshareAutomountServerAliasesFolderType = 1936881348; - -const int kApplicationAliasType = 1633972848; - -const int kApplicationCPAliasType = 1633903728; - -const int kApplicationDAAliasType = 1633969264; - -const int kApplicationSupportFolderIcon = 1634956656; - -@Deprecated('Deprecated') -const int kApplicationSupportFolderType = 1634956656; - -@Deprecated('Deprecated') -const int kApplicationThreadID = 2; - -const int kApplicationsFolderIcon = 1634758771; - -@Deprecated('Deprecated') -const int kApplicationsFolderType = 1634758771; - -const int kAssistantsFolderIcon = 1634956484; - -@Deprecated('Deprecated') -const int kAssistantsFolderType = 1634956484; - -const int kAsteriskToMultiplyOffSelector = 3; - -const int kAsteriskToMultiplyOnSelector = 2; - -const int kAsyncEjectComplete = 6; - -const int kAsyncEjectInProgress = 5; - -const int kAsyncMountComplete = 2; - -const int kAsyncMountInProgress = 1; - -const int kAsyncUnmountComplete = 4; - -const int kAsyncUnmountInProgress = 3; - -const int kAttemptDupCardEntryErr = -9106; - -@Deprecated('Deprecated') -const int kAudioAlertSoundsFolderType = 1634497140; - -const int kAudioChannelLabel_Ambisonic_W = 200; - -const int kAudioChannelLabel_Ambisonic_X = 201; - -const int kAudioChannelLabel_Ambisonic_Y = 202; - -const int kAudioChannelLabel_Ambisonic_Z = 203; - -const int kAudioChannelLabel_BeginReserved = -268435456; - -const int kAudioChannelLabel_BinauralLeft = 208; - -const int kAudioChannelLabel_BinauralRight = 209; - -const int kAudioChannelLabel_Center = 3; - -const int kAudioChannelLabel_CenterBottom = 59; - -const int kAudioChannelLabel_CenterSurround = 9; - -const int kAudioChannelLabel_CenterSurroundDirect = 44; - -const int kAudioChannelLabel_CenterTopFront = 14; - -const int kAudioChannelLabel_CenterTopMiddle = 12; - -const int kAudioChannelLabel_CenterTopRear = 53; - -const int kAudioChannelLabel_ClickTrack = 304; - -const int kAudioChannelLabel_DialogCentricMix = 43; - -const int kAudioChannelLabel_Discrete = 400; - -const int kAudioChannelLabel_Discrete_0 = 65536; - -const int kAudioChannelLabel_Discrete_1 = 65537; - -const int kAudioChannelLabel_Discrete_10 = 65546; - -const int kAudioChannelLabel_Discrete_11 = 65547; - -const int kAudioChannelLabel_Discrete_12 = 65548; - -const int kAudioChannelLabel_Discrete_13 = 65549; - -const int kAudioChannelLabel_Discrete_14 = 65550; - -const int kAudioChannelLabel_Discrete_15 = 65551; - -const int kAudioChannelLabel_Discrete_2 = 65538; - -const int kAudioChannelLabel_Discrete_3 = 65539; - -const int kAudioChannelLabel_Discrete_4 = 65540; - -const int kAudioChannelLabel_Discrete_5 = 65541; - -const int kAudioChannelLabel_Discrete_6 = 65542; - -const int kAudioChannelLabel_Discrete_65535 = 131071; - -const int kAudioChannelLabel_Discrete_7 = 65543; - -const int kAudioChannelLabel_Discrete_8 = 65544; - -const int kAudioChannelLabel_Discrete_9 = 65545; - -const int kAudioChannelLabel_EndReserved = -2; - -const int kAudioChannelLabel_ForeignLanguage = 305; - -const int kAudioChannelLabel_HOA_ACN = 500; - -const int kAudioChannelLabel_HOA_ACN_0 = 131072; - -const int kAudioChannelLabel_HOA_ACN_1 = 131073; - -const int kAudioChannelLabel_HOA_ACN_10 = 131082; - -const int kAudioChannelLabel_HOA_ACN_11 = 131083; - -const int kAudioChannelLabel_HOA_ACN_12 = 131084; - -const int kAudioChannelLabel_HOA_ACN_13 = 131085; - -const int kAudioChannelLabel_HOA_ACN_14 = 131086; - -const int kAudioChannelLabel_HOA_ACN_15 = 131087; - -const int kAudioChannelLabel_HOA_ACN_2 = 131074; - -const int kAudioChannelLabel_HOA_ACN_3 = 131075; - -const int kAudioChannelLabel_HOA_ACN_4 = 131076; - -const int kAudioChannelLabel_HOA_ACN_5 = 131077; - -const int kAudioChannelLabel_HOA_ACN_6 = 131078; - -const int kAudioChannelLabel_HOA_ACN_65024 = 196096; - -const int kAudioChannelLabel_HOA_ACN_7 = 131079; - -const int kAudioChannelLabel_HOA_ACN_8 = 131080; - -const int kAudioChannelLabel_HOA_ACN_9 = 131081; - -const int kAudioChannelLabel_HOA_N3D = 196608; - -const int kAudioChannelLabel_HOA_SN3D = 131072; - -const int kAudioChannelLabel_Haptic = 45; - -const int kAudioChannelLabel_HeadphonesLeft = 301; - -const int kAudioChannelLabel_HeadphonesRight = 302; - -const int kAudioChannelLabel_HearingImpaired = 40; - -const int kAudioChannelLabel_LFE2 = 37; - -const int kAudioChannelLabel_LFE3 = 62; - -const int kAudioChannelLabel_LFEScreen = 4; - -const int kAudioChannelLabel_Left = 1; - -const int kAudioChannelLabel_LeftBackSurround = 63; - -const int kAudioChannelLabel_LeftBottom = 57; - -const int kAudioChannelLabel_LeftCenter = 7; - -const int kAudioChannelLabel_LeftEdgeOfScreen = 65; - -const int kAudioChannelLabel_LeftSideSurround = 55; - -const int kAudioChannelLabel_LeftSurround = 5; - -const int kAudioChannelLabel_LeftSurroundDirect = 10; - -const int kAudioChannelLabel_LeftTopFront = 13; - -const int kAudioChannelLabel_LeftTopMiddle = 49; - -const int kAudioChannelLabel_LeftTopRear = 52; - -const int kAudioChannelLabel_LeftTopSurround = 60; - -const int kAudioChannelLabel_LeftTotal = 38; - -const int kAudioChannelLabel_LeftWide = 35; - -const int kAudioChannelLabel_MS_Mid = 204; - -const int kAudioChannelLabel_MS_Side = 205; - -const int kAudioChannelLabel_Mono = 42; - -const int kAudioChannelLabel_Narration = 41; - -const int kAudioChannelLabel_Object = 262144; - -const int kAudioChannelLabel_RearSurroundLeft = 33; - -const int kAudioChannelLabel_RearSurroundRight = 34; - -const int kAudioChannelLabel_Right = 2; - -const int kAudioChannelLabel_RightBackSurround = 64; - -const int kAudioChannelLabel_RightBottom = 58; - -const int kAudioChannelLabel_RightCenter = 8; - -const int kAudioChannelLabel_RightEdgeOfScreen = 66; - -const int kAudioChannelLabel_RightSideSurround = 56; - -const int kAudioChannelLabel_RightSurround = 6; - -const int kAudioChannelLabel_RightSurroundDirect = 11; - -const int kAudioChannelLabel_RightTopFront = 15; - -const int kAudioChannelLabel_RightTopMiddle = 51; - -const int kAudioChannelLabel_RightTopRear = 54; - -const int kAudioChannelLabel_RightTopSurround = 61; - -const int kAudioChannelLabel_RightTotal = 39; - -const int kAudioChannelLabel_RightWide = 36; - -const int kAudioChannelLabel_TopBackCenter = 17; - -const int kAudioChannelLabel_TopBackLeft = 16; - -const int kAudioChannelLabel_TopBackRight = 18; - -const int kAudioChannelLabel_TopCenterSurround = 12; - -const int kAudioChannelLabel_Unknown = -1; - -const int kAudioChannelLabel_Unused = 0; - -const int kAudioChannelLabel_UseCoordinates = 100; - -const int kAudioChannelLabel_VerticalHeightCenter = 14; - -const int kAudioChannelLabel_VerticalHeightLeft = 13; - -const int kAudioChannelLabel_VerticalHeightRight = 15; - -const int kAudioChannelLabel_XY_X = 206; - -const int kAudioChannelLabel_XY_Y = 207; - -const int kAudioChannelLayoutTag_AAC_3_0 = 7471107; - -const int kAudioChannelLayoutTag_AAC_4_0 = 7602180; - -const int kAudioChannelLayoutTag_AAC_5_0 = 7864325; - -const int kAudioChannelLayoutTag_AAC_5_1 = 8126470; - -const int kAudioChannelLayoutTag_AAC_6_0 = 9240582; - -const int kAudioChannelLayoutTag_AAC_6_1 = 9306119; - -const int kAudioChannelLayoutTag_AAC_7_0 = 9371655; - -const int kAudioChannelLayoutTag_AAC_7_1 = 8323080; - -const int kAudioChannelLayoutTag_AAC_7_1_B = 11993096; - -const int kAudioChannelLayoutTag_AAC_7_1_C = 12058632; - -const int kAudioChannelLayoutTag_AAC_Octagonal = 9437192; - -const int kAudioChannelLayoutTag_AAC_Quadraphonic = 7077892; - -const int kAudioChannelLayoutTag_AC3_1_0_1 = 9764866; - -const int kAudioChannelLayoutTag_AC3_2_1_1 = 10027012; - -const int kAudioChannelLayoutTag_AC3_3_0 = 9830403; - -const int kAudioChannelLayoutTag_AC3_3_0_1 = 9961476; - -const int kAudioChannelLayoutTag_AC3_3_1 = 9895940; - -const int kAudioChannelLayoutTag_AC3_3_1_1 = 10092549; - -const int kAudioChannelLayoutTag_Ambisonic_B_Format = 7012356; - -const int kAudioChannelLayoutTag_Atmos_5_1_2 = 12713992; - -const int kAudioChannelLayoutTag_Atmos_5_1_4 = 12779530; - -const int kAudioChannelLayoutTag_Atmos_7_1_2 = 12845066; - -const int kAudioChannelLayoutTag_Atmos_7_1_4 = 12582924; - -const int kAudioChannelLayoutTag_Atmos_9_1_6 = 12648464; - -const int kAudioChannelLayoutTag_AudioUnit_4 = 7077892; - -const int kAudioChannelLayoutTag_AudioUnit_5 = 7143429; - -const int kAudioChannelLayoutTag_AudioUnit_5_0 = 7733253; - -const int kAudioChannelLayoutTag_AudioUnit_5_1 = 7929862; - -const int kAudioChannelLayoutTag_AudioUnit_6 = 7208966; - -const int kAudioChannelLayoutTag_AudioUnit_6_0 = 9109510; - -const int kAudioChannelLayoutTag_AudioUnit_6_1 = 8192007; - -const int kAudioChannelLayoutTag_AudioUnit_7_0 = 9175047; - -const int kAudioChannelLayoutTag_AudioUnit_7_0_Front = 9699335; - -const int kAudioChannelLayoutTag_AudioUnit_7_1 = 8388616; - -const int kAudioChannelLayoutTag_AudioUnit_7_1_Front = 8257544; - -const int kAudioChannelLayoutTag_AudioUnit_8 = 7274504; - -const int kAudioChannelLayoutTag_BeginReserved = -268435456; - -const int kAudioChannelLayoutTag_Binaural = 6946818; - -const int kAudioChannelLayoutTag_CICP_1 = 6553601; - -const int kAudioChannelLayoutTag_CICP_10 = 8650756; - -const int kAudioChannelLayoutTag_CICP_11 = 8192007; - -const int kAudioChannelLayoutTag_CICP_12 = 8388616; - -const int kAudioChannelLayoutTag_CICP_13 = 13369368; - -const int kAudioChannelLayoutTag_CICP_14 = 13434888; - -const int kAudioChannelLayoutTag_CICP_15 = 13500428; - -const int kAudioChannelLayoutTag_CICP_16 = 13565962; - -const int kAudioChannelLayoutTag_CICP_17 = 13631500; - -const int kAudioChannelLayoutTag_CICP_18 = 13697038; - -const int kAudioChannelLayoutTag_CICP_19 = 13762572; - -const int kAudioChannelLayoutTag_CICP_2 = 6619138; - -const int kAudioChannelLayoutTag_CICP_20 = 13828110; - -const int kAudioChannelLayoutTag_CICP_3 = 7405571; - -const int kAudioChannelLayoutTag_CICP_4 = 7536644; - -const int kAudioChannelLayoutTag_CICP_5 = 7667717; - -const int kAudioChannelLayoutTag_CICP_6 = 7929862; - -const int kAudioChannelLayoutTag_CICP_7 = 8323080; - -const int kAudioChannelLayoutTag_CICP_9 = 8585219; - -const int kAudioChannelLayoutTag_Cube = 7340040; - -const int kAudioChannelLayoutTag_DTS_3_1 = 11010052; - -const int kAudioChannelLayoutTag_DTS_4_1 = 11075589; - -const int kAudioChannelLayoutTag_DTS_6_0_A = 11141126; - -const int kAudioChannelLayoutTag_DTS_6_0_B = 11206662; - -const int kAudioChannelLayoutTag_DTS_6_0_C = 11272198; - -const int kAudioChannelLayoutTag_DTS_6_1_A = 11337735; - -const int kAudioChannelLayoutTag_DTS_6_1_B = 11403271; - -const int kAudioChannelLayoutTag_DTS_6_1_C = 11468807; - -const int kAudioChannelLayoutTag_DTS_6_1_D = 11927559; - -const int kAudioChannelLayoutTag_DTS_7_0 = 11534343; - -const int kAudioChannelLayoutTag_DTS_7_1 = 11599880; - -const int kAudioChannelLayoutTag_DTS_8_0_A = 11665416; - -const int kAudioChannelLayoutTag_DTS_8_0_B = 11730952; - -const int kAudioChannelLayoutTag_DTS_8_1_A = 11796489; - -const int kAudioChannelLayoutTag_DTS_8_1_B = 11862025; - -const int kAudioChannelLayoutTag_DVD_0 = 6553601; - -const int kAudioChannelLayoutTag_DVD_1 = 6619138; - -const int kAudioChannelLayoutTag_DVD_10 = 8912900; - -const int kAudioChannelLayoutTag_DVD_11 = 8978437; - -const int kAudioChannelLayoutTag_DVD_12 = 7929862; - -const int kAudioChannelLayoutTag_DVD_13 = 7536644; - -const int kAudioChannelLayoutTag_DVD_14 = 7667717; - -const int kAudioChannelLayoutTag_DVD_15 = 8912900; - -const int kAudioChannelLayoutTag_DVD_16 = 8978437; - -const int kAudioChannelLayoutTag_DVD_17 = 7929862; - -const int kAudioChannelLayoutTag_DVD_18 = 9043973; - -const int kAudioChannelLayoutTag_DVD_19 = 7733253; - -const int kAudioChannelLayoutTag_DVD_2 = 8585219; - -const int kAudioChannelLayoutTag_DVD_20 = 7995398; - -const int kAudioChannelLayoutTag_DVD_3 = 8650756; - -const int kAudioChannelLayoutTag_DVD_4 = 8716291; - -const int kAudioChannelLayoutTag_DVD_5 = 8781828; - -const int kAudioChannelLayoutTag_DVD_6 = 8847365; - -const int kAudioChannelLayoutTag_DVD_7 = 7405571; - -const int kAudioChannelLayoutTag_DVD_8 = 7536644; - -const int kAudioChannelLayoutTag_DVD_9 = 7667717; - -const int kAudioChannelLayoutTag_DiscreteInOrder = 9633792; - -const int kAudioChannelLayoutTag_EAC3_6_1_A = 10289159; - -const int kAudioChannelLayoutTag_EAC3_6_1_B = 10354695; - -const int kAudioChannelLayoutTag_EAC3_6_1_C = 10420231; - -const int kAudioChannelLayoutTag_EAC3_7_1_A = 10485768; - -const int kAudioChannelLayoutTag_EAC3_7_1_B = 10551304; - -const int kAudioChannelLayoutTag_EAC3_7_1_C = 10616840; - -const int kAudioChannelLayoutTag_EAC3_7_1_D = 10682376; - -const int kAudioChannelLayoutTag_EAC3_7_1_E = 10747912; - -const int kAudioChannelLayoutTag_EAC3_7_1_F = 10813448; - -const int kAudioChannelLayoutTag_EAC3_7_1_G = 10878984; - -const int kAudioChannelLayoutTag_EAC3_7_1_H = 10944520; - -const int kAudioChannelLayoutTag_EAC_6_0_A = 10158086; - -const int kAudioChannelLayoutTag_EAC_7_0_A = 10223623; - -const int kAudioChannelLayoutTag_Emagic_Default_7_1 = 8454152; - -const int kAudioChannelLayoutTag_EndReserved = -65537; - -const int kAudioChannelLayoutTag_HOA_ACN_N3D = 12517376; - -const int kAudioChannelLayoutTag_HOA_ACN_SN3D = 12451840; - -const int kAudioChannelLayoutTag_Hexagonal = 7208966; - -const int kAudioChannelLayoutTag_ITU_1_0 = 6553601; - -const int kAudioChannelLayoutTag_ITU_2_0 = 6619138; - -const int kAudioChannelLayoutTag_ITU_2_1 = 8585219; - -const int kAudioChannelLayoutTag_ITU_2_2 = 8650756; - -const int kAudioChannelLayoutTag_ITU_3_0 = 7405571; - -const int kAudioChannelLayoutTag_ITU_3_1 = 7536644; - -const int kAudioChannelLayoutTag_ITU_3_2 = 7667717; - -const int kAudioChannelLayoutTag_ITU_3_2_1 = 7929862; - -const int kAudioChannelLayoutTag_ITU_3_4_1 = 8388616; - -const int kAudioChannelLayoutTag_Logic_4_0_A = 7536644; - -const int kAudioChannelLayoutTag_Logic_4_0_B = 7602180; - -const int kAudioChannelLayoutTag_Logic_4_0_C = 12910596; - -const int kAudioChannelLayoutTag_Logic_5_0_A = 7667717; - -const int kAudioChannelLayoutTag_Logic_5_0_B = 7733253; - -const int kAudioChannelLayoutTag_Logic_5_0_C = 7798789; - -const int kAudioChannelLayoutTag_Logic_5_0_D = 7864325; - -const int kAudioChannelLayoutTag_Logic_5_1_A = 7929862; - -const int kAudioChannelLayoutTag_Logic_5_1_B = 7995398; - -const int kAudioChannelLayoutTag_Logic_5_1_C = 8060934; - -const int kAudioChannelLayoutTag_Logic_5_1_D = 8126470; - -const int kAudioChannelLayoutTag_Logic_6_0_A = 9240582; - -const int kAudioChannelLayoutTag_Logic_6_0_B = 12976134; - -const int kAudioChannelLayoutTag_Logic_6_0_C = 9109510; - -const int kAudioChannelLayoutTag_Logic_6_1_A = 9306119; - -const int kAudioChannelLayoutTag_Logic_6_1_B = 13041671; - -const int kAudioChannelLayoutTag_Logic_6_1_C = 8192007; - -const int kAudioChannelLayoutTag_Logic_6_1_D = 13107207; - -const int kAudioChannelLayoutTag_Logic_7_1_A = 8388616; - -const int kAudioChannelLayoutTag_Logic_7_1_B = 13172744; - -const int kAudioChannelLayoutTag_Logic_7_1_C = 8388616; - -const int kAudioChannelLayoutTag_Logic_7_1_SDDS_A = 8257544; - -const int kAudioChannelLayoutTag_Logic_7_1_SDDS_B = 8323080; - -const int kAudioChannelLayoutTag_Logic_7_1_SDDS_C = 8454152; - -const int kAudioChannelLayoutTag_Logic_Atmos_5_1_2 = 12713992; - -const int kAudioChannelLayoutTag_Logic_Atmos_5_1_4 = 12779530; - -const int kAudioChannelLayoutTag_Logic_Atmos_7_1_2 = 12845066; - -const int kAudioChannelLayoutTag_Logic_Atmos_7_1_4_A = 12582924; - -const int kAudioChannelLayoutTag_Logic_Atmos_7_1_4_B = 13238284; - -const int kAudioChannelLayoutTag_Logic_Atmos_7_1_6 = 13303822; - -const int kAudioChannelLayoutTag_Logic_Mono = 6553601; - -const int kAudioChannelLayoutTag_Logic_Quadraphonic = 7077892; - -const int kAudioChannelLayoutTag_Logic_Stereo = 6619138; - -const int kAudioChannelLayoutTag_MPEG_1_0 = 6553601; - -const int kAudioChannelLayoutTag_MPEG_2_0 = 6619138; - -const int kAudioChannelLayoutTag_MPEG_3_0_A = 7405571; - -const int kAudioChannelLayoutTag_MPEG_3_0_B = 7471107; - -const int kAudioChannelLayoutTag_MPEG_4_0_A = 7536644; - -const int kAudioChannelLayoutTag_MPEG_4_0_B = 7602180; - -const int kAudioChannelLayoutTag_MPEG_5_0_A = 7667717; - -const int kAudioChannelLayoutTag_MPEG_5_0_B = 7733253; - -const int kAudioChannelLayoutTag_MPEG_5_0_C = 7798789; - -const int kAudioChannelLayoutTag_MPEG_5_0_D = 7864325; - -const int kAudioChannelLayoutTag_MPEG_5_0_E = 14155781; - -const int kAudioChannelLayoutTag_MPEG_5_1_A = 7929862; - -const int kAudioChannelLayoutTag_MPEG_5_1_B = 7995398; - -const int kAudioChannelLayoutTag_MPEG_5_1_C = 8060934; - -const int kAudioChannelLayoutTag_MPEG_5_1_D = 8126470; - -const int kAudioChannelLayoutTag_MPEG_5_1_E = 14221318; - -const int kAudioChannelLayoutTag_MPEG_6_1_A = 8192007; - -const int kAudioChannelLayoutTag_MPEG_6_1_B = 14286855; - -const int kAudioChannelLayoutTag_MPEG_7_1_A = 8257544; - -const int kAudioChannelLayoutTag_MPEG_7_1_B = 8323080; - -const int kAudioChannelLayoutTag_MPEG_7_1_C = 8388616; - -const int kAudioChannelLayoutTag_MPEG_7_1_D = 14352392; - -const int kAudioChannelLayoutTag_MatrixStereo = 6750210; - -const int kAudioChannelLayoutTag_MidSide = 6815746; - -const int kAudioChannelLayoutTag_Mono = 6553601; - -const int kAudioChannelLayoutTag_Octagonal = 7274504; - -const int kAudioChannelLayoutTag_Ogg_3_0 = 9830403; - -const int kAudioChannelLayoutTag_Ogg_4_0 = 12124164; - -const int kAudioChannelLayoutTag_Ogg_5_0 = 13893637; - -const int kAudioChannelLayoutTag_Ogg_5_1 = 13959174; - -const int kAudioChannelLayoutTag_Ogg_6_1 = 14024711; - -const int kAudioChannelLayoutTag_Ogg_7_1 = 14090248; - -const int kAudioChannelLayoutTag_Pentagonal = 7143429; - -const int kAudioChannelLayoutTag_Quadraphonic = 7077892; - -const int kAudioChannelLayoutTag_SMPTE_DTV = 8519688; - -const int kAudioChannelLayoutTag_Stereo = 6619138; - -const int kAudioChannelLayoutTag_StereoHeadphones = 6684674; - -const int kAudioChannelLayoutTag_TMH_10_2_full = 9568277; - -const int kAudioChannelLayoutTag_TMH_10_2_std = 9502736; - -const int kAudioChannelLayoutTag_Unknown = -65536; - -const int kAudioChannelLayoutTag_UseChannelBitmap = 65536; - -const int kAudioChannelLayoutTag_UseChannelDescriptions = 0; - -const int kAudioChannelLayoutTag_WAVE_2_1 = 8716291; - -const int kAudioChannelLayoutTag_WAVE_3_0 = 7405571; - -const int kAudioChannelLayoutTag_WAVE_4_0_A = 8650756; - -const int kAudioChannelLayoutTag_WAVE_4_0_B = 12124164; - -const int kAudioChannelLayoutTag_WAVE_5_0_A = 7667717; - -const int kAudioChannelLayoutTag_WAVE_5_0_B = 12189701; - -const int kAudioChannelLayoutTag_WAVE_5_1_A = 7929862; - -const int kAudioChannelLayoutTag_WAVE_5_1_B = 12255238; - -const int kAudioChannelLayoutTag_WAVE_6_1 = 12320775; - -const int kAudioChannelLayoutTag_WAVE_7_1 = 12386312; - -const int kAudioChannelLayoutTag_XY = 6881282; - -@Deprecated('Deprecated') -const int kAudioComponentsFolderType = 1633906032; - -@Deprecated('Deprecated') -const int kAudioDigidesignFolderType = 1633970535; - -const int kAudioFormat60958AC3 = 1667326771; - -const int kAudioFormatAC3 = 1633889587; - -const int kAudioFormatAES3 = 1634038579; - -const int kAudioFormatALaw = 1634492791; - -const int kAudioFormatAMR = 1935764850; - -const int kAudioFormatAMR_WB = 1935767394; - -const int kAudioFormatAPAC = 1634754915; - -const int kAudioFormatAppleIMA4 = 1768775988; - -const int kAudioFormatAppleLossless = 1634492771; - -const int kAudioFormatAudible = 1096107074; - -const int kAudioFormatDVIIntelIMA = 1836253201; - -const int kAudioFormatEnhancedAC3 = 1700998451; - -const int kAudioFormatFLAC = 1718378851; - -const int kAudioFormatFlagIsAlignedHigh = 16; - -const int kAudioFormatFlagIsBigEndian = 2; - -const int kAudioFormatFlagIsFloat = 1; - -const int kAudioFormatFlagIsNonInterleaved = 32; - -const int kAudioFormatFlagIsNonMixable = 64; - -const int kAudioFormatFlagIsPacked = 8; - -const int kAudioFormatFlagIsSignedInteger = 4; - -const int kAudioFormatFlagsAreAllClear = -2147483648; - -@Deprecated('The concept of canonical formats is deprecated') -const int kAudioFormatFlagsAudioUnitCanonical = 41; - -@Deprecated('The concept of canonical formats is deprecated') -const int kAudioFormatFlagsCanonical = 9; - -const int kAudioFormatFlagsNativeEndian = 0; - -const int kAudioFormatFlagsNativeFloatPacked = 9; - -const int kAudioFormatLinearPCM = 1819304813; - -const int kAudioFormatMACE3 = 1296122675; - -const int kAudioFormatMACE6 = 1296122678; - -const int kAudioFormatMIDIStream = 1835623529; - -const int kAudioFormatMPEG4AAC = 1633772320; - -const int kAudioFormatMPEG4AAC_ELD = 1633772389; - -const int kAudioFormatMPEG4AAC_ELD_SBR = 1633772390; - -const int kAudioFormatMPEG4AAC_ELD_V2 = 1633772391; - -const int kAudioFormatMPEG4AAC_HE = 1633772392; - -const int kAudioFormatMPEG4AAC_HE_V2 = 1633772400; - -const int kAudioFormatMPEG4AAC_LD = 1633772396; - -const int kAudioFormatMPEG4AAC_Spatial = 1633772403; - -const int kAudioFormatMPEG4CELP = 1667591280; - -const int kAudioFormatMPEG4HVXC = 1752594531; - -const int kAudioFormatMPEG4TwinVQ = 1953986161; - -const int kAudioFormatMPEGD_USAC = 1970495843; - -const int kAudioFormatMPEGLayer1 = 778924081; - -const int kAudioFormatMPEGLayer2 = 778924082; - -const int kAudioFormatMPEGLayer3 = 778924083; - -const int kAudioFormatMicrosoftGSM = 1836253233; - -const int kAudioFormatOpus = 1869641075; - -const int kAudioFormatParameterValueStream = 1634760307; - -const int kAudioFormatQDesign = 1363430723; - -const int kAudioFormatQDesign2 = 1363430706; - -const int kAudioFormatQUALCOMM = 1365470320; - -const int kAudioFormatTimeCode = 1953066341; - -const int kAudioFormatULaw = 1970037111; - -const int kAudioFormatiLBC = 1768710755; - -@Deprecated('Deprecated') -const int kAudioPlugInsFolderType = 1634757735; - -@Deprecated('Deprecated') -const int kAudioPresetsFolderType = 1634759540; - -@Deprecated('Deprecated') -const int kAudioSoundBanksFolderType = 1650552427; - -@Deprecated('Deprecated') -const int kAudioSoundsFolderType = 1634954852; - -const double kAudioStreamAnyRate = 0.0; - -@Deprecated('Deprecated') -const int kAudioSupportFolderType = 1633970543; - -const int kAudioUnitProperty_SpeechChannel = 3331; - -const int kAudioUnitProperty_Voice = 3330; - -const int kAudioUnitSubType_SpeechSynthesis = 1953788784; - -@Deprecated('Deprecated') -const int kAudioVSTFolderType = 1635152756; - -const int kAudio_BadFilePathError = 561017960; - -const int kAudio_FileNotFoundError = -43; - -const int kAudio_FilePermissionError = -54; - -const int kAudio_MemFullError = -108; - -const int kAudio_NoError = 0; - -const int kAudio_ParamError = -50; - -const int kAudio_TooManyFilesOpenError = -42; - -const int kAudio_UnimplementedError = -4; - -const int kAuthTypeKCItemAttr = 1635023216; - -const int kAuthorizationFlagCanNotPreAuthorize = 1; - -const int kAutoGenerateReturnID = -1; - -@Deprecated('Deprecated') -const int kAutomatorWorkflowsFolderType = 1718382455; - -@Deprecated('Deprecated') -const int kAutosaveInformationFolderType = 1634951542; - -@Deprecated('Deprecated') -const int kBLibTag2 = 1112303970; - -const int kBSLNControlPointFormatNoMap = 2; - -const int kBSLNControlPointFormatWithMap = 3; - -const int kBSLNCurrentVersion = 65536; - -const int kBSLNDistanceFormatNoMap = 0; - -const int kBSLNDistanceFormatWithMap = 1; - -const int kBSLNHangingBaseline = 3; - -const int kBSLNIdeographicCenterBaseline = 1; - -const int kBSLNIdeographicHighBaseline = 5; - -const int kBSLNIdeographicLowBaseline = 2; - -const int kBSLNLastBaseline = 31; - -const int kBSLNMathBaseline = 4; - -const int kBSLNNoBaseline = 255; - -const int kBSLNNoBaselineOverride = 255; - -const int kBSLNNumBaselineClasses = 32; - -const int kBSLNRomanBaseline = 0; - -const int kBSLNTag = 1651731566; - -const int kBTBadCloseMask = 1; - -const int kBTBigKeysMask = 2; - -const int kBTHeaderNode = 1; - -const int kBTIndexNode = 0; - -const int kBTLeafNode = -1; - -const int kBTMapNode = 2; - -const int kBTVariableIndexKeysMask = 4; - -const int kBackwardArrowIcon = 1650553455; - -const int kBadAdapterErr = -9050; - -const int kBadArgLengthErr = -9063; - -const int kBadArgsErr = -9064; - -const int kBadAttributeErr = -9051; - -const int kBadBaseErr = -9052; - -const int kBadCISErr = -9066; - -const int kBadCustomIFIDErr = -9093; - -const int kBadDeviceErr = -9083; - -const int kBadEDCErr = -9053; - -const int kBadHandleErr = -9065; - -const int kBadIRQErr = -9054; - -const int kBadLinkErr = -9082; - -const int kBadOffsetErr = -9055; - -const int kBadPageErr = -9056; - -const int kBadSizeErr = -9057; - -const int kBadSocketErr = -9058; - -const int kBadSpeedErr = -9067; - -const int kBadTupleDataErr = -9092; - -const int kBadTypeErr = -9059; - -const int kBadVccErr = -9060; - -const int kBadVppErr = -9061; - -const int kBadWindowErr = -9062; - -const int kBig5_BasicVariant = 0; - -const int kBig5_DOSVariant = 3; - -const int kBig5_ETenVariant = 2; - -const int kBig5_StandardVariant = 1; - -@Deprecated('Deprecated') -const int kBlessedBusErrorBait = 1760651505; - -const int kBlessedFolder = 1651274598; - -@Deprecated('Deprecated') -const int kBootTimeStartupItemsFolderType = 1701671034; - -const int kBoxAnnotationSelector = 1; - -const int kBridgeSoftwareRunningCantSleep = -13038; - -const int kBurningIcon = 1651864174; - -const int kBusyErr = -9074; - -const int kByCommentView = 6; - -const int kByDateView = 3; - -const int kByIconView = 1; - -const int kByKindView = 5; - -const int kByLabelView = 7; - -const int kByNameView = 2; - -const int kBySizeView = 4; - -const int kBySmallIcon = 0; - -const int kByVersionView = 8; - -@Deprecated('Deprecated') -const int kCCRegisterCBit = 16; - -@Deprecated('Deprecated') -const int kCCRegisterNBit = 19; - -@Deprecated('Deprecated') -const int kCCRegisterVBit = 17; - -@Deprecated('Deprecated') -const int kCCRegisterXBit = 20; - -@Deprecated('Deprecated') -const int kCCRegisterZBit = 18; - -const int kCFBundleExecutableArchitectureARM64 = 16777228; - -const int kCFBundleExecutableArchitectureI386 = 7; - -const int kCFBundleExecutableArchitecturePPC = 18; - -const int kCFBundleExecutableArchitecturePPC64 = 16777234; - -const int kCFBundleExecutableArchitectureX86_64 = 16777223; - -const int kCFCalendarComponentsWrap = 1; - -const int kCFFileDescriptorReadCallBack = 1; - -const int kCFFileDescriptorWriteCallBack = 2; - -@Deprecated('Deprecated') -const int kCFM68kRTA = 16; - -const int kCFMessagePortBecameInvalidError = -5; - -const int kCFMessagePortIsInvalid = -3; - -const int kCFMessagePortReceiveTimeout = -2; - -const int kCFMessagePortSendTimeout = -1; - -const int kCFMessagePortSuccess = 0; - -const int kCFMessagePortTransportError = -4; - -const int kCFNotFound = -1; - -const int kCFNotificationDeliverImmediately = 1; - -const int kCFNotificationPostToAllSessions = 2; - -const int kCFPropertyListReadCorruptError = 3840; - -const int kCFPropertyListReadStreamError = 3842; - -const int kCFPropertyListReadUnknownVersionError = 3841; - -const int kCFPropertyListWriteStreamError = 3851; - -const int kCFSocketAutomaticallyReenableAcceptCallBack = 2; - -const int kCFSocketAutomaticallyReenableDataCallBack = 3; - -const int kCFSocketAutomaticallyReenableReadCallBack = 1; - -const int kCFSocketAutomaticallyReenableWriteCallBack = 8; - -const int kCFSocketCloseOnInvalidate = 128; - -const int kCFSocketLeaveErrors = 64; - -const int kCFStreamErrorSOCKS4IdConflict = 93; - -const int kCFStreamErrorSOCKS4IdentdFailed = 92; - -const int kCFStreamErrorSOCKS4RequestFailed = 91; - -const int kCFStreamErrorSOCKS4SubDomainResponse = 2; - -const int kCFStreamErrorSOCKS5BadResponseAddr = 1; - -const int kCFStreamErrorSOCKS5BadState = 2; - -const int kCFStreamErrorSOCKS5SubDomainMethod = 4; - -const int kCFStreamErrorSOCKS5SubDomainResponse = 5; - -const int kCFStreamErrorSOCKS5SubDomainUserPass = 3; - -const int kCFStreamErrorSOCKSSubDomainNone = 0; - -const int kCFStreamErrorSOCKSSubDomainVersionCode = 1; - -const int kCFStreamErrorSOCKSUnknownClientVersion = 3; - -const int kCFStringTokenizerAttributeLanguage = 131072; - -const int kCFStringTokenizerAttributeLatinTranscription = 65536; - -const int kCFStringTokenizerUnitLineBreak = 3; - -const int kCFStringTokenizerUnitParagraph = 2; - -const int kCFStringTokenizerUnitSentence = 1; - -const int kCFStringTokenizerUnitWord = 0; - -const int kCFStringTokenizerUnitWordBoundary = 4; - -const int kCFUserNotificationAlternateResponse = 1; - -const int kCFUserNotificationCancelResponse = 3; - -const int kCFUserNotificationCautionAlertLevel = 2; - -const int kCFUserNotificationDefaultResponse = 0; - -const int kCFUserNotificationNoDefaultButtonFlag = 32; - -const int kCFUserNotificationNoteAlertLevel = 1; - -const int kCFUserNotificationOtherResponse = 2; - -const int kCFUserNotificationPlainAlertLevel = 3; - -const int kCFUserNotificationStopAlertLevel = 0; - -const int kCFUserNotificationUseRadioButtonsFlag = 64; - -const int kCFXMLNodeCurrentVersion = 1; - -const int kCGBitmapByteOrder16Host = 4096; - -const int kCGBitmapByteOrder32Host = 8192; - -const int kCGFontIndexInvalid = 65535; - -const int kCGFontIndexMax = 65534; - -const int kCGGlyphMax = 65534; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRadeon8500ID = 136704; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRadeon9700ID = 137216; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRadeonID = 135680; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRadeonX1000ID = 137472; - -const int kCGLRendererATIRadeonX2000ID = 137728; - -const int kCGLRendererATIRadeonX3000ID = 137984; - -const int kCGLRendererATIRadeonX4000ID = 138240; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRage128ID = 135168; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRageProID = 136192; - -const int kCGLRendererAppleSWID = 132608; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererGeForce2MXID = 139264; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererGeForce3ID = 139776; - -const int kCGLRendererGeForce8xxxID = 140800; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererGeForceFXID = 140288; - -const int kCGLRendererGeForceID = 141056; - -const int kCGLRendererGenericFloatID = 132096; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererGenericID = 131584; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererIntel900ID = 147456; - -const int kCGLRendererIntelHD4000ID = 148480; - -const int kCGLRendererIntelHD5000ID = 148736; - -const int kCGLRendererIntelHDID = 148224; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererIntelX3100ID = 147968; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererMesa3DFXID = 262144; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererVTBladeXP2ID = 143360; - -const int kCJKItalicRomanOffSelector = 3; - -const int kCJKItalicRomanOnSelector = 2; - -const int kCJKItalicRomanSelector = 1; - -const int kCJKRomanSpacingType = 103; - -const int kCJKSymbolAltFiveSelector = 5; - -const int kCJKSymbolAltFourSelector = 4; - -const int kCJKSymbolAltOneSelector = 1; - -const int kCJKSymbolAltThreeSelector = 3; - -const int kCJKSymbolAltTwoSelector = 2; - -const int kCJKSymbolAlternativesType = 29; - -const int kCJKVerticalRomanCenteredSelector = 0; - -const int kCJKVerticalRomanHBaselineSelector = 1; - -const int kCJKVerticalRomanPlacementType = 31; - -const int kCMAudioCodecType_AAC_AudibleProtected = 1633771875; - -const int kCMAudioCodecType_AAC_LCProtected = 1885430115; - -const int kCMAudioFormatDescriptionMask_All = 15; - -const int kCMAudioFormatDescriptionMask_ChannelLayout = 4; - -const int kCMAudioFormatDescriptionMask_Extensions = 8; - -const int kCMAudioFormatDescriptionMask_MagicCookie = 2; - -const int kCMAudioFormatDescriptionMask_StreamBasicDescription = 1; - -const int kCMClosedCaptionFormatType_ATSC = 1635017571; - -const int kCMClosedCaptionFormatType_CEA608 = 1664495672; - -const int kCMClosedCaptionFormatType_CEA708 = 1664561208; - -const int kCMFormatDescriptionError_AllocationFailed = -12711; - -const int kCMFormatDescriptionError_InvalidParameter = -12710; - -const int kCMFormatDescriptionError_ValueNotAvailable = -12718; - -const int kCMMPEG2VideoProfile_HDV_1080i50 = 1751414323; - -const int kCMMPEG2VideoProfile_HDV_1080i60 = 1751414322; - -const int kCMMPEG2VideoProfile_HDV_1080p24 = 1751414326; - -const int kCMMPEG2VideoProfile_HDV_1080p25 = 1751414327; - -const int kCMMPEG2VideoProfile_HDV_1080p30 = 1751414328; - -const int kCMMPEG2VideoProfile_HDV_720p24 = 1751414324; - -const int kCMMPEG2VideoProfile_HDV_720p25 = 1751414325; - -const int kCMMPEG2VideoProfile_HDV_720p30 = 1751414321; - -const int kCMMPEG2VideoProfile_HDV_720p50 = 1751414369; - -const int kCMMPEG2VideoProfile_HDV_720p60 = 1751414329; - -const int kCMMPEG2VideoProfile_XDCAM_EX_1080i50_VBR35 = 2019849827; - -const int kCMMPEG2VideoProfile_XDCAM_EX_1080i60_VBR35 = 2019849826; - -const int kCMMPEG2VideoProfile_XDCAM_EX_1080p24_VBR35 = 2019849828; - -const int kCMMPEG2VideoProfile_XDCAM_EX_1080p25_VBR35 = 2019849829; - -const int kCMMPEG2VideoProfile_XDCAM_EX_1080p30_VBR35 = 2019849830; - -const int kCMMPEG2VideoProfile_XDCAM_EX_720p24_VBR35 = 2019849780; - -const int kCMMPEG2VideoProfile_XDCAM_EX_720p25_VBR35 = 2019849781; - -const int kCMMPEG2VideoProfile_XDCAM_EX_720p30_VBR35 = 2019849777; - -const int kCMMPEG2VideoProfile_XDCAM_EX_720p50_VBR35 = 2019849825; - -const int kCMMPEG2VideoProfile_XDCAM_EX_720p60_VBR35 = 2019849785; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_1080i50_CBR50 = 2019833187; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_1080i60_CBR50 = 2019833186; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p24_CBR50 = 2019833188; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p25_CBR50 = 2019833189; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p30_CBR50 = 2019833190; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_540p = 2019846194; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_720p24_CBR50 = 2019833140; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_720p25_CBR50 = 2019833141; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_720p30_CBR50 = 2019833137; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_720p50_CBR50 = 2019833185; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_720p60_CBR50 = 2019833145; - -const int kCMMPEG2VideoProfile_XDCAM_HD_1080i50_VBR35 = 2019849779; - -const int kCMMPEG2VideoProfile_XDCAM_HD_1080i60_VBR35 = 2019849778; - -const int kCMMPEG2VideoProfile_XDCAM_HD_1080p24_VBR35 = 2019849782; - -const int kCMMPEG2VideoProfile_XDCAM_HD_1080p25_VBR35 = 2019849783; - -const int kCMMPEG2VideoProfile_XDCAM_HD_1080p30_VBR35 = 2019849784; - -const int kCMMPEG2VideoProfile_XDCAM_HD_540p = 2019846244; - -const int kCMMPEG2VideoProfile_XF = 2019981873; - -const int kCMMediaType_Audio = 1936684398; - -const int kCMMediaType_AuxiliaryPicture = 1635088502; - -const int kCMMediaType_ClosedCaption = 1668047728; - -const int kCMMediaType_Metadata = 1835365473; - -const int kCMMediaType_Muxed = 1836415096; - -const int kCMMediaType_Subtitle = 1935832172; - -const int kCMMediaType_TaggedBufferGroup = 1952606066; - -const int kCMMediaType_Text = 1952807028; - -const int kCMMediaType_TimeCode = 1953325924; - -const int kCMMediaType_Video = 1986618469; - -const int kCMMetadataFormatType_Boxed = 1835360888; - -const int kCMMetadataFormatType_EMSG = 1701671783; - -const int kCMMetadataFormatType_ICY = 1768126752; - -const int kCMMetadataFormatType_ID3 = 1768174368; - -const int kCMMuxedStreamType_DV = 1685463072; - -const int kCMMuxedStreamType_EmbeddedDeviceScreenRecording = 1769173536; - -const int kCMMuxedStreamType_MPEG1System = 1836069235; - -const int kCMMuxedStreamType_MPEG2Program = 1836069488; - -const int kCMMuxedStreamType_MPEG2Transport = 1836069492; - -const int kCMPersistentTrackID_Invalid = 0; - -const int kCMPixelFormat_16BE555 = 16; - -const int kCMPixelFormat_16BE565 = 1110783541; - -const int kCMPixelFormat_16LE555 = 1278555445; - -const int kCMPixelFormat_16LE5551 = 892679473; - -const int kCMPixelFormat_16LE565 = 1278555701; - -const int kCMPixelFormat_24RGB = 24; - -const int kCMPixelFormat_32ARGB = 32; - -const int kCMPixelFormat_32BGRA = 1111970369; - -const int kCMPixelFormat_422YpCbCr10 = 1983000880; - -const int kCMPixelFormat_422YpCbCr16 = 1983000886; - -const int kCMPixelFormat_422YpCbCr8 = 846624121; - -const int kCMPixelFormat_422YpCbCr8_yuvs = 2037741171; - -const int kCMPixelFormat_4444YpCbCrA8 = 1983131704; - -const int kCMPixelFormat_444YpCbCr10 = 1983131952; - -const int kCMPixelFormat_444YpCbCr8 = 1983066168; - -const int kCMPixelFormat_8IndexedGray_WhiteIsZero = 40; - -const int kCMSubtitleFormatType_3GText = 1954034535; - -const int kCMSubtitleFormatType_WebVTT = 2004251764; - -const int kCMTaggedBufferGroupFormatType_TaggedBufferGroup = 1952606066; - -const int kCMTextDisplayFlag_allSubtitlesForced = -2147483648; - -const int kCMTextDisplayFlag_continuousKaraoke = 2048; - -const int kCMTextDisplayFlag_fillTextRegion = 262144; - -const int kCMTextDisplayFlag_forcedSubtitlesPresent = 1073741824; - -const int kCMTextDisplayFlag_obeySubtitleFormatting = 536870912; - -const int kCMTextDisplayFlag_scrollDirectionMask = 384; - -const int kCMTextDisplayFlag_scrollDirection_bottomToTop = 0; - -const int kCMTextDisplayFlag_scrollDirection_leftToRight = 384; - -const int kCMTextDisplayFlag_scrollDirection_rightToLeft = 128; - -const int kCMTextDisplayFlag_scrollDirection_topToBottom = 256; - -const int kCMTextDisplayFlag_scrollIn = 32; - -const int kCMTextDisplayFlag_scrollOut = 64; - -const int kCMTextDisplayFlag_writeTextVertically = 131072; - -const int kCMTextFormatType_3GText = 1954034535; - -const int kCMTextFormatType_QTText = 1952807028; - -const int kCMTextJustification_bottom_right = -1; - -const int kCMTextJustification_centered = 1; - -const int kCMTextJustification_left_top = 0; - -const int kCMTimeCodeFlag_24HourMax = 2; - -const int kCMTimeCodeFlag_DropFrame = 1; - -const int kCMTimeCodeFlag_NegTimesOK = 4; - -const int kCMTimeCodeFormatType_Counter32 = 1668166450; - -const int kCMTimeCodeFormatType_Counter64 = 1668167220; - -const int kCMTimeCodeFormatType_TimeCode32 = 1953325924; - -const int kCMTimeCodeFormatType_TimeCode64 = 1952658996; - -const int kCMVideoCodecType_422YpCbCr8 = 846624121; - -const int kCMVideoCodecType_AV1 = 1635135537; - -const int kCMVideoCodecType_Animation = 1919706400; - -const int kCMVideoCodecType_AppleProRes422 = 1634755438; - -const int kCMVideoCodecType_AppleProRes422HQ = 1634755432; - -const int kCMVideoCodecType_AppleProRes422LT = 1634755443; - -const int kCMVideoCodecType_AppleProRes422Proxy = 1634755439; - -const int kCMVideoCodecType_AppleProRes4444 = 1634743400; - -const int kCMVideoCodecType_AppleProRes4444XQ = 1634743416; - -const int kCMVideoCodecType_AppleProResRAW = 1634759278; - -const int kCMVideoCodecType_AppleProResRAWHQ = 1634759272; - -const int kCMVideoCodecType_Cinepak = 1668704612; - -const int kCMVideoCodecType_DVCNTSC = 1685480224; - -const int kCMVideoCodecType_DVCPAL = 1685480304; - -const int kCMVideoCodecType_DVCPROHD1080i50 = 1685481525; - -const int kCMVideoCodecType_DVCPROHD1080i60 = 1685481526; - -const int kCMVideoCodecType_DVCPROHD1080p25 = 1685481522; - -const int kCMVideoCodecType_DVCPROHD1080p30 = 1685481523; - -const int kCMVideoCodecType_DVCPROHD720p50 = 1685481585; - -const int kCMVideoCodecType_DVCPROHD720p60 = 1685481584; - -const int kCMVideoCodecType_DVCPro50NTSC = 1685468526; - -const int kCMVideoCodecType_DVCPro50PAL = 1685468528; - -const int kCMVideoCodecType_DVCProPAL = 1685483632; - -const int kCMVideoCodecType_DepthHEVC = 1684369512; - -const int kCMVideoCodecType_DisparityHEVC = 1684632424; - -const int kCMVideoCodecType_DolbyVisionHEVC = 1685481521; - -const int kCMVideoCodecType_H263 = 1748121139; - -const int kCMVideoCodecType_H264 = 1635148593; - -const int kCMVideoCodecType_HEVC = 1752589105; - -const int kCMVideoCodecType_HEVCWithAlpha = 1836415073; - -const int kCMVideoCodecType_JPEG = 1785750887; - -const int kCMVideoCodecType_JPEG_OpenDML = 1684890161; - -const int kCMVideoCodecType_JPEG_XL = 1786276963; - -const int kCMVideoCodecType_MPEG1Video = 1836069238; - -const int kCMVideoCodecType_MPEG2Video = 1836069494; - -const int kCMVideoCodecType_MPEG4Video = 1836070006; - -const int kCMVideoCodecType_SorensonVideo = 1398165809; - -const int kCMVideoCodecType_SorensonVideo3 = 1398165811; - -const int kCMVideoCodecType_VP9 = 1987063865; - -@Deprecated('Deprecated') -const int kCSAcceptAllComponentsMode = 0; - -@Deprecated('Deprecated') -const int kCSAcceptThreadSafeComponentsOnlyMode = 1; - -const int kCSDiskSpaceRecoveryOptionNoUI = 1; - -const int kCSIdentityAuthorityNotAccessibleErr = -2; - -const int kCSIdentityClassGroup = 2; - -const int kCSIdentityClassUser = 1; - -const int kCSIdentityCommitCompleted = 1; - -const int kCSIdentityDeletedErr = -4; - -const int kCSIdentityDuplicateFullNameErr = -6; - -const int kCSIdentityDuplicatePosixNameErr = -8; - -const int kCSIdentityFlagHidden = 1; - -const int kCSIdentityFlagNone = 0; - -const int kCSIdentityInvalidFullNameErr = -5; - -const int kCSIdentityInvalidPosixNameErr = -7; - -const int kCSIdentityPermissionErr = -3; - -const int kCSIdentityQueryEventErrorOccurred = 5; - -const int kCSIdentityQueryEventResultsAdded = 2; - -const int kCSIdentityQueryEventResultsChanged = 3; - -const int kCSIdentityQueryEventResultsRemoved = 4; - -const int kCSIdentityQueryEventSearchPhaseFinished = 1; - -const int kCSIdentityQueryGenerateUpdateEvents = 1; - -const int kCSIdentityQueryIncludeHiddenIdentities = 2; - -const int kCSIdentityQueryStringBeginsWith = 2; - -const int kCSIdentityQueryStringEquals = 1; - -const int kCSIdentityUnknownAuthorityErr = -1; - -@Deprecated('Deprecated') -const int kCStackBased = 1; - -const int kCTFontClassMaskShift = 28; - -const int kCTFontPriorityComputer = 30000; - -const int kCTFontPriorityDynamic = 50000; - -const int kCTFontPriorityNetwork = 20000; - -const int kCTFontPriorityProcess = 60000; - -const int kCTFontPrioritySystem = 10000; - -const int kCTFontPriorityUser = 40000; - -const int kCTFontTableAcnt = 1633906292; - -const int kCTFontTableAnkr = 1634626418; - -const int kCTFontTableAvar = 1635148146; - -const int kCTFontTableBASE = 1111577413; - -const int kCTFontTableBdat = 1650745716; - -const int kCTFontTableBhed = 1651008868; - -const int kCTFontTableBloc = 1651273571; - -const int kCTFontTableBsln = 1651731566; - -const int kCTFontTableCBDT = 1128416340; - -const int kCTFontTableCBLC = 1128418371; - -const int kCTFontTableCFF = 1128678944; - -const int kCTFontTableCFF2 = 1128678962; - -const int kCTFontTableCOLR = 1129270354; - -const int kCTFontTableCPAL = 1129333068; - -const int kCTFontTableCidg = 1667851367; - -const int kCTFontTableCmap = 1668112752; - -const int kCTFontTableCvar = 1668702578; - -const int kCTFontTableCvt = 1668707360; - -const int kCTFontTableDSIG = 1146308935; - -const int kCTFontTableEBDT = 1161970772; - -const int kCTFontTableEBLC = 1161972803; - -const int kCTFontTableEBSC = 1161974595; - -const int kCTFontTableFdsc = 1717859171; - -const int kCTFontTableFeat = 1717920116; - -const int kCTFontTableFmtx = 1718449272; - -const int kCTFontTableFond = 1718578788; - -const int kCTFontTableFpgm = 1718642541; - -const int kCTFontTableFvar = 1719034226; - -const int kCTFontTableGDEF = 1195656518; - -const int kCTFontTableGPOS = 1196445523; - -const int kCTFontTableGSUB = 1196643650; - -const int kCTFontTableGasp = 1734439792; - -const int kCTFontTableGlyf = 1735162214; - -const int kCTFontTableGvar = 1735811442; - -const int kCTFontTableHVAR = 1213612370; - -const int kCTFontTableHdmx = 1751412088; - -const int kCTFontTableHead = 1751474532; - -const int kCTFontTableHhea = 1751672161; - -const int kCTFontTableHmtx = 1752003704; - -const int kCTFontTableHsty = 1752396921; - -const int kCTFontTableJSTF = 1246975046; - -const int kCTFontTableJust = 1786082164; - -const int kCTFontTableKern = 1801810542; - -const int kCTFontTableKerx = 1801810552; - -const int kCTFontTableLTSH = 1280594760; - -const int kCTFontTableLcar = 1818452338; - -const int kCTFontTableLoca = 1819239265; - -const int kCTFontTableLtag = 1819566439; - -const int kCTFontTableMATH = 1296127048; - -const int kCTFontTableMERG = 1296388679; - -const int kCTFontTableMVAR = 1297498450; - -const int kCTFontTableMaxp = 1835104368; - -const int kCTFontTableMeta = 1835365473; - -const int kCTFontTableMort = 1836020340; - -const int kCTFontTableMorx = 1836020344; - -const int kCTFontTableName = 1851878757; - -const int kCTFontTableOS2 = 1330851634; - -const int kCTFontTableOpbd = 1869636196; - -const int kCTFontTablePCLT = 1346587732; - -const int kCTFontTablePost = 1886352244; - -const int kCTFontTablePrep = 1886545264; - -const int kCTFontTableProp = 1886547824; - -const int kCTFontTableSTAT = 1398030676; - -const int kCTFontTableSVG = 1398163232; - -const int kCTFontTableSbit = 1935829364; - -const int kCTFontTableSbix = 1935829368; - -const int kCTFontTableTrak = 1953653099; - -const int kCTFontTableVDMX = 1447316824; - -const int kCTFontTableVORG = 1448038983; - -const int kCTFontTableVVAR = 1448493394; - -const int kCTFontTableVhea = 1986553185; - -const int kCTFontTableVmtx = 1986884728; - -const int kCTFontTableXref = 2020762982; - -const int kCTFontTableZapf = 1516335206; - -const int kCTRunDelegateCurrentVersion = 1; - -const int kCTRunDelegateVersion1 = 1; - -const int kCTWritingDirectionEmbedding = 0; - -const int kCTWritingDirectionOverride = 2; - -const int kCUPSPPDDomain = 6; - -const int kCVPixelFormatType_128RGBAFloat = 1380410945; - -const int kCVPixelFormatType_14Bayer_BGGR = 1650943796; - -const int kCVPixelFormatType_14Bayer_GBRG = 1734505012; - -const int kCVPixelFormatType_14Bayer_GRBG = 1735549492; - -const int kCVPixelFormatType_14Bayer_RGGB = 1919379252; - -const int kCVPixelFormatType_16BE555 = 16; - -const int kCVPixelFormatType_16BE565 = 1110783541; - -const int kCVPixelFormatType_16Gray = 1647392359; - -const int kCVPixelFormatType_16LE555 = 1278555445; - -const int kCVPixelFormatType_16LE5551 = 892679473; - -const int kCVPixelFormatType_16LE565 = 1278555701; - -const int kCVPixelFormatType_16VersatileBayer = 1651519798; - -const int kCVPixelFormatType_1IndexedGray_WhiteIsZero = 33; - -const int kCVPixelFormatType_1Monochrome = 1; - -const int kCVPixelFormatType_24BGR = 842285639; - -const int kCVPixelFormatType_24RGB = 24; - -const int kCVPixelFormatType_2Indexed = 2; - -const int kCVPixelFormatType_2IndexedGray_WhiteIsZero = 34; - -const int kCVPixelFormatType_30RGB = 1378955371; - -const int kCVPixelFormatType_30RGBLEPackedWideGamut = 1999843442; - -const int kCVPixelFormatType_30RGBLE_8A_BiPlanar = 1647534392; - -const int kCVPixelFormatType_30RGB_r210 = 1915892016; - -const int kCVPixelFormatType_32ABGR = 1094862674; - -const int kCVPixelFormatType_32ARGB = 32; - -const int kCVPixelFormatType_32AlphaGray = 1647522401; - -const int kCVPixelFormatType_32BGRA = 1111970369; - -const int kCVPixelFormatType_32RGBA = 1380401729; - -const int kCVPixelFormatType_40ARGBLEWideGamut = 1999908961; - -const int kCVPixelFormatType_40ARGBLEWideGamutPremultiplied = 1999908973; - -const int kCVPixelFormatType_420YpCbCr10BiPlanarFullRange = 2019963440; - -const int kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = 2016686640; - -const int kCVPixelFormatType_420YpCbCr8BiPlanarFullRange = 875704422; - -const int kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = 875704438; - -const int kCVPixelFormatType_420YpCbCr8Planar = 2033463856; - -const int kCVPixelFormatType_420YpCbCr8PlanarFullRange = 1714696752; - -const int kCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar = 1982882104; - -const int kCVPixelFormatType_422YpCbCr10 = 1983000880; - -const int kCVPixelFormatType_422YpCbCr10BiPlanarFullRange = 2019963442; - -const int kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange = 2016686642; - -const int kCVPixelFormatType_422YpCbCr16 = 1983000886; - -const int kCVPixelFormatType_422YpCbCr16BiPlanarVideoRange = 1937125938; - -const int kCVPixelFormatType_422YpCbCr8 = 846624121; - -const int kCVPixelFormatType_422YpCbCr8BiPlanarFullRange = 875704934; - -const int kCVPixelFormatType_422YpCbCr8BiPlanarVideoRange = 875704950; - -const int kCVPixelFormatType_422YpCbCr8FullRange = 2037741158; - -const int kCVPixelFormatType_422YpCbCr8_yuvs = 2037741171; - -const int kCVPixelFormatType_422YpCbCr_4A_8BiPlanar = 1630697081; - -const int kCVPixelFormatType_4444AYpCbCr16 = 2033463606; - -const int kCVPixelFormatType_4444AYpCbCr8 = 2033463352; - -const int kCVPixelFormatType_4444AYpCbCrFloat = 1916036716; - -const int kCVPixelFormatType_4444YpCbCrA8 = 1983131704; - -const int kCVPixelFormatType_4444YpCbCrA8R = 1916022840; - -const int kCVPixelFormatType_444YpCbCr10 = 1983131952; - -const int kCVPixelFormatType_444YpCbCr10BiPlanarFullRange = 2019963956; - -const int kCVPixelFormatType_444YpCbCr10BiPlanarVideoRange = 2016687156; - -const int kCVPixelFormatType_444YpCbCr16BiPlanarVideoRange = 1937126452; - -const int kCVPixelFormatType_444YpCbCr16VideoRange_16A_TriPlanar = 1932812659; - -const int kCVPixelFormatType_444YpCbCr8 = 1983066168; - -const int kCVPixelFormatType_444YpCbCr8BiPlanarFullRange = 875836518; - -const int kCVPixelFormatType_444YpCbCr8BiPlanarVideoRange = 875836534; - -const int kCVPixelFormatType_48RGB = 1647589490; - -const int kCVPixelFormatType_4Indexed = 4; - -const int kCVPixelFormatType_4IndexedGray_WhiteIsZero = 36; - -const int kCVPixelFormatType_64ARGB = 1647719521; - -const int kCVPixelFormatType_64RGBAHalf = 1380411457; - -const int kCVPixelFormatType_64RGBALE = 1815491698; - -const int kCVPixelFormatType_64RGBA_DownscaledProResRAW = 1651521076; - -const int kCVPixelFormatType_8Indexed = 8; - -const int kCVPixelFormatType_8IndexedGray_WhiteIsZero = 40; - -const int kCVPixelFormatType_96VersatileBayerPacked12 = 1651798066; - -const int kCVPixelFormatType_ARGB2101010LEPacked = 1815162994; - -const int kCVPixelFormatType_DepthFloat16 = 1751410032; - -const int kCVPixelFormatType_DepthFloat32 = 1717855600; - -const int kCVPixelFormatType_DisparityFloat16 = 1751411059; - -const int kCVPixelFormatType_DisparityFloat32 = 1717856627; - -const int kCVPixelFormatType_Lossless_30RGBLEPackedWideGamut = 645346162; - -const int kCVPixelFormatType_Lossless_30RGBLE_8A_BiPlanar = 643969848; - -const int kCVPixelFormatType_Lossless_32BGRA = 641877825; - -const int kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarFullRange = - 645424688; - -const int kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarVideoRange = - 645428784; - -const int kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange = 641230384; - -const int kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange = 641234480; - -const int kCVPixelFormatType_Lossless_422YpCbCr10PackedBiPlanarVideoRange = - 645428786; - -const int kCVPixelFormatType_Lossless_64RGBAHalf = 642934849; - -const int kCVPixelFormatType_Lossy_32BGRA = 759318337; - -const int kCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange = - 762869296; - -const int kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarFullRange = 758670896; - -const int kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarVideoRange = 758674992; - -const int kCVPixelFormatType_Lossy_422YpCbCr10PackedBiPlanarVideoRange = - 762869298; - -const int kCVPixelFormatType_OneComponent10 = 1278226736; - -const int kCVPixelFormatType_OneComponent12 = 1278226738; - -const int kCVPixelFormatType_OneComponent16 = 1278226742; - -const int kCVPixelFormatType_OneComponent16Half = 1278226536; - -const int kCVPixelFormatType_OneComponent32Float = 1278226534; - -const int kCVPixelFormatType_OneComponent8 = 1278226488; - -const int kCVPixelFormatType_TwoComponent16 = 843264310; - -const int kCVPixelFormatType_TwoComponent16Half = 843264104; - -const int kCVPixelFormatType_TwoComponent32Float = 843264102; - -const int kCVPixelFormatType_TwoComponent8 = 843264056; - -const int kCVReturnAllocationFailed = -6662; - -const int kCVReturnDisplayLinkAlreadyRunning = -6671; - -const int kCVReturnDisplayLinkCallbacksNotSet = -6673; - -const int kCVReturnDisplayLinkNotRunning = -6672; - -const int kCVReturnError = -6660; - -const int kCVReturnFirst = -6660; - -const int kCVReturnInvalidArgument = -6661; - -const int kCVReturnInvalidDisplay = -6670; - -const int kCVReturnInvalidPixelBufferAttributes = -6682; - -const int kCVReturnInvalidPixelFormat = -6680; - -const int kCVReturnInvalidPoolAttributes = -6691; - -const int kCVReturnInvalidSize = -6681; - -const int kCVReturnLast = -6699; - -const int kCVReturnPixelBufferNotMetalCompatible = -6684; - -const int kCVReturnPixelBufferNotOpenGLCompatible = -6683; - -const int kCVReturnPoolAllocationFailed = -6690; - -const int kCVReturnRetry = -6692; - -const int kCVReturnSuccess = 0; - -const int kCVReturnUnsupported = -6663; - -const int kCVReturnWouldExceedAllocationThreshold = -6689; - -const int kCVVersatileBayer_BayerPattern_BGGR = 3; - -const int kCVVersatileBayer_BayerPattern_GBRG = 2; - -const int kCVVersatileBayer_BayerPattern_GRBG = 1; - -const int kCVVersatileBayer_BayerPattern_RGGB = 0; - -@Deprecated('Deprecated') -const int kCachedDataFolderType = 1667326824; - -@Deprecated('Deprecated') -const int kCallingConventionMask = 15; - -@Deprecated('Deprecated') -const int kCallingConventionPhase = 0; - -@Deprecated('Deprecated') -const int kCallingConventionWidth = 4; - -const int kCanonicalCompositionOffSelector = 1; - -const int kCanonicalCompositionOnSelector = 0; - -const int kCantConfigureCardErr = -9087; - -const int kCantReportProcessorTemperatureErr = -13013; - -@Deprecated('Deprecated') -const int kCarbonLibraryFolderType = 1667330658; - -const int kCardBusCardErr = -9085; - -const int kCardPowerOffErr = -9107; - -const int kCaseSensitiveLayoutOffSelector = 1; - -const int kCaseSensitiveLayoutOnSelector = 0; - -const int kCaseSensitiveLayoutType = 33; - -const int kCaseSensitiveSpacingOffSelector = 3; - -const int kCaseSensitiveSpacingOnSelector = 2; - -const int kCertSearchAny = 0; - -const int kCertSearchDecryptAllowed = 64; - -const int kCertSearchDecryptDisallowed = 128; - -const int kCertSearchDecryptIgnored = 0; - -const int kCertSearchDecryptMask = 192; - -const int kCertSearchEncryptAllowed = 16; - -const int kCertSearchEncryptDisallowed = 32; - -const int kCertSearchEncryptIgnored = 0; - -const int kCertSearchEncryptMask = 48; - -const int kCertSearchPrivKeyRequired = 4096; - -const int kCertSearchShift = 0; - -const int kCertSearchSigningAllowed = 1; - -const int kCertSearchSigningDisallowed = 2; - -const int kCertSearchSigningIgnored = 0; - -const int kCertSearchSigningMask = 3; - -const int kCertSearchUnwrapAllowed = 1024; - -const int kCertSearchUnwrapDisallowed = 2048; - -const int kCertSearchUnwrapIgnored = 0; - -const int kCertSearchUnwrapMask = 3072; - -const int kCertSearchVerifyAllowed = 4; - -const int kCertSearchVerifyDisallowed = 8; - -const int kCertSearchVerifyIgnored = 0; - -const int kCertSearchVerifyMask = 12; - -const int kCertSearchWrapAllowed = 256; - -const int kCertSearchWrapDisallowed = 512; - -const int kCertSearchWrapIgnored = 0; - -const int kCertSearchWrapMask = 768; - -const int kCertUsageAllAdd = 2147483392; - -const int kCertUsageDecryptAdd = 16384; - -const int kCertUsageDecryptAskAndAdd = 32768; - -const int kCertUsageEncryptAdd = 4096; - -const int kCertUsageEncryptAskAndAdd = 8192; - -const int kCertUsageKeyExchAdd = 65536; - -const int kCertUsageKeyExchAskAndAdd = 131072; - -const int kCertUsageRootAdd = 262144; - -const int kCertUsageRootAskAndAdd = 524288; - -const int kCertUsageSSLAdd = 1048576; - -const int kCertUsageSSLAskAndAdd = 2097152; - -const int kCertUsageShift = 8; - -const int kCertUsageSigningAdd = 256; - -const int kCertUsageSigningAskAndAdd = 512; - -const int kCertUsageVerifyAdd = 1024; - -const int kCertUsageVerifyAskAndAdd = 2048; - -const int kCertificateKCItemClass = 1667592820; - -const int kCharacterAlternativesType = 17; - -const int kCharacterShapeType = 20; - -@Deprecated('Deprecated') -const int kChewableItemsFolderType = 1718382196; - -const int kCircleAnnotationSelector = 3; - -const int kClassKCItemAttr = 1668047219; - -@Deprecated('Deprecated') -const int kClassicDesktopFolderType = 1935962987; - -@Deprecated('Deprecated') -const int kClassicDomain = -32762; - -@Deprecated('Deprecated') -const int kClassicPreferencesFolderType = 1668313702; - -const int kClientRequestDenied = -9102; - -const int kClipboardIcon = 1129072976; - -const int kClippingCreator = 1685217639; - -const int kClippingPictureType = 1668051056; - -const int kClippingPictureTypeIcon = 1668051056; - -const int kClippingSoundType = 1668051059; - -const int kClippingSoundTypeIcon = 1668051059; - -const int kClippingTextType = 1668051060; - -const int kClippingTextTypeIcon = 1668051060; - -const int kClippingUnknownType = 1668051061; - -const int kClippingUnknownTypeIcon = 1668051061; - -const int kCollateAttributesNotFoundErr = -29500; - -const int kCollateBufferTooSmall = -29506; - -const int kCollateInvalidChar = -29505; - -const int kCollateInvalidCollationRef = -29507; - -const int kCollateInvalidOptions = -29501; - -const int kCollateMissingUnicodeTableErr = -29502; - -const int kCollatePatternNotFoundErr = -29504; - -const int kCollateUnicodeConvertFailedErr = -29503; - -@Deprecated('Deprecated') -const int kCollectionAllAttributes = -1; - -@Deprecated('Deprecated') -const int kCollectionDefaultAttributes = 1073741824; - -@Deprecated('Deprecated') -const int kCollectionDontWantAttributes = 0; - -@Deprecated('Deprecated') -const int kCollectionDontWantData = 0; - -@Deprecated('Deprecated') -const int kCollectionDontWantId = 0; - -@Deprecated('Deprecated') -const int kCollectionDontWantIndex = 0; - -@Deprecated('Deprecated') -const int kCollectionDontWantSize = 0; - -@Deprecated('Deprecated') -const int kCollectionDontWantTag = 0; - -@Deprecated('Deprecated') -const int kCollectionLockBit = 31; - -@Deprecated('Deprecated') -const int kCollectionLockMask = -2147483648; - -@Deprecated('Deprecated') -const int kCollectionNoAttributes = 0; - -@Deprecated('Deprecated') -const int kCollectionPersistenceBit = 30; - -@Deprecated('Deprecated') -const int kCollectionPersistenceMask = 1073741824; - -@Deprecated('Deprecated') -const int kCollectionReserved0Bit = 16; - -@Deprecated('Deprecated') -const int kCollectionReserved0Mask = 65536; - -@Deprecated('Deprecated') -const int kCollectionReserved10Bit = 26; - -@Deprecated('Deprecated') -const int kCollectionReserved10Mask = 67108864; - -@Deprecated('Deprecated') -const int kCollectionReserved11Bit = 27; - -@Deprecated('Deprecated') -const int kCollectionReserved11Mask = 134217728; - -@Deprecated('Deprecated') -const int kCollectionReserved12Bit = 28; - -@Deprecated('Deprecated') -const int kCollectionReserved12Mask = 268435456; - -@Deprecated('Deprecated') -const int kCollectionReserved13Bit = 29; - -@Deprecated('Deprecated') -const int kCollectionReserved13Mask = 536870912; - -@Deprecated('Deprecated') -const int kCollectionReserved1Bit = 17; - -@Deprecated('Deprecated') -const int kCollectionReserved1Mask = 131072; - -@Deprecated('Deprecated') -const int kCollectionReserved2Bit = 18; - -@Deprecated('Deprecated') -const int kCollectionReserved2Mask = 262144; - -@Deprecated('Deprecated') -const int kCollectionReserved3Bit = 19; - -@Deprecated('Deprecated') -const int kCollectionReserved3Mask = 524288; - -@Deprecated('Deprecated') -const int kCollectionReserved4Bit = 20; - -@Deprecated('Deprecated') -const int kCollectionReserved4Mask = 1048576; - -@Deprecated('Deprecated') -const int kCollectionReserved5Bit = 21; - -@Deprecated('Deprecated') -const int kCollectionReserved5Mask = 2097152; - -@Deprecated('Deprecated') -const int kCollectionReserved6Bit = 22; - -@Deprecated('Deprecated') -const int kCollectionReserved6Mask = 4194304; - -@Deprecated('Deprecated') -const int kCollectionReserved7Bit = 23; - -@Deprecated('Deprecated') -const int kCollectionReserved7Mask = 8388608; - -@Deprecated('Deprecated') -const int kCollectionReserved8Bit = 24; - -@Deprecated('Deprecated') -const int kCollectionReserved8Mask = 16777216; - -@Deprecated('Deprecated') -const int kCollectionReserved9Bit = 25; - -@Deprecated('Deprecated') -const int kCollectionReserved9Mask = 33554432; - -@Deprecated('Deprecated') -const int kCollectionUser0Bit = 0; - -@Deprecated('Deprecated') -const int kCollectionUser0Mask = 1; - -@Deprecated('Deprecated') -const int kCollectionUser10Bit = 10; - -@Deprecated('Deprecated') -const int kCollectionUser10Mask = 1024; - -@Deprecated('Deprecated') -const int kCollectionUser11Bit = 11; - -@Deprecated('Deprecated') -const int kCollectionUser11Mask = 2048; - -@Deprecated('Deprecated') -const int kCollectionUser12Bit = 12; - -@Deprecated('Deprecated') -const int kCollectionUser12Mask = 4096; - -@Deprecated('Deprecated') -const int kCollectionUser13Bit = 13; - -@Deprecated('Deprecated') -const int kCollectionUser13Mask = 8192; - -@Deprecated('Deprecated') -const int kCollectionUser14Bit = 14; - -@Deprecated('Deprecated') -const int kCollectionUser14Mask = 16384; - -@Deprecated('Deprecated') -const int kCollectionUser15Bit = 15; - -@Deprecated('Deprecated') -const int kCollectionUser15Mask = 32768; - -@Deprecated('Deprecated') -const int kCollectionUser1Bit = 1; - -@Deprecated('Deprecated') -const int kCollectionUser1Mask = 2; - -@Deprecated('Deprecated') -const int kCollectionUser2Bit = 2; - -@Deprecated('Deprecated') -const int kCollectionUser2Mask = 4; - -@Deprecated('Deprecated') -const int kCollectionUser3Bit = 3; - -@Deprecated('Deprecated') -const int kCollectionUser3Mask = 8; - -@Deprecated('Deprecated') -const int kCollectionUser4Bit = 4; - -@Deprecated('Deprecated') -const int kCollectionUser4Mask = 16; - -@Deprecated('Deprecated') -const int kCollectionUser5Bit = 5; - -@Deprecated('Deprecated') -const int kCollectionUser5Mask = 32; - -@Deprecated('Deprecated') -const int kCollectionUser6Bit = 6; - -@Deprecated('Deprecated') -const int kCollectionUser6Mask = 64; - -@Deprecated('Deprecated') -const int kCollectionUser7Bit = 7; - -@Deprecated('Deprecated') -const int kCollectionUser7Mask = 128; - -@Deprecated('Deprecated') -const int kCollectionUser8Bit = 8; - -@Deprecated('Deprecated') -const int kCollectionUser8Mask = 256; - -@Deprecated('Deprecated') -const int kCollectionUser9Bit = 9; - -@Deprecated('Deprecated') -const int kCollectionUser9Mask = 512; - -@Deprecated('Deprecated') -const int kCollectionUserAttributes = 65535; - -const int kColor = 14; - -@Deprecated('Deprecated') -const int kColorPickersFolderType = 1668311922; - -const int kColorSyncAlphaInfoMask = 31; - -const int kColorSyncByteOrder16Big = 12288; - -const int kColorSyncByteOrder16Little = 4096; - -const int kColorSyncByteOrder32Big = 16384; - -const int kColorSyncByteOrder32Little = 8192; - -const int kColorSyncByteOrderDefault = 0; - -const int kColorSyncByteOrderMask = 28672; - -@Deprecated('Deprecated') -const int kColorSyncCMMFolderType = 1667460461; - -const int kColorSyncFolderIcon = 1886547814; - -@Deprecated('Deprecated') -const int kColorSyncFolderType = 1937337955; - -@Deprecated('Deprecated') -const int kColorSyncProfilesFolderType = 1886547814; - -@Deprecated('Deprecated') -const int kColorSyncScriptingFolderType = 1668506482; - -const int kCommentKCItemAttr = 1768123764; - -const int kCommonLigaturesOffSelector = 3; - -const int kCommonLigaturesOnSelector = 2; - -const int kCommonNameKCItemAttr = 1668161568; - -const int kCompatibilityCompositionOffSelector = 3; - -const int kCompatibilityCompositionOnSelector = 2; - -@Deprecated('Deprecated') -const int kComponentAliasResourceType = 1952999265; - -@Deprecated('Deprecated') -const int kComponentCanDoSelect = -3; - -@Deprecated('Deprecated') -const int kComponentCloseSelect = -2; - -@Deprecated('Deprecated') -const int kComponentDebugOption = 0; - -@Deprecated('Deprecated') -const int kComponentExecuteWiredActionSelect = -9; - -@Deprecated('Deprecated') -const int kComponentGetMPWorkFunctionSelect = -8; - -@Deprecated('Deprecated') -const int kComponentGetPublicResourceSelect = -10; - -@Deprecated('Deprecated') -const int kComponentOpenSelect = -1; - -@Deprecated('Deprecated') -const int kComponentRegisterSelect = -5; - -@Deprecated('Deprecated') -const int kComponentResourceType = 1953001063; - -@Deprecated('Deprecated') -const int kComponentTargetSelect = -6; - -@Deprecated('Deprecated') -const int kComponentUnregisterSelect = -7; - -@Deprecated('Deprecated') -const int kComponentVersionSelect = -4; - -@Deprecated('Deprecated') -const int kComponentsFolderType = 1668116580; - -@Deprecated('Deprecated') -const int kCompositionsFolderType = 1668116595; - -const int kComputerIcon = 1919905652; - -const int kConfigurationLockedErr = -9076; - -const int kConnSuite = 1835098979; - -const int kConnectToIcon = 1668178804; - -const int kConnectionAudioStreaming = 1635083379; - -const int kConnectionBlueGammaScale = 1650946915; - -const int kConnectionChanged = 1667788391; - -const int kConnectionCheckEnable = 1667591777; - -const int kConnectionColorDepthsSupported = 543322211; - -const int kConnectionColorMode = 1668904310; - -const int kConnectionColorModesSupported = 1668246642; - -const int kConnectionControllerColorDepth = 6582372; - -const int kConnectionControllerDepthsSupported = 6779492; - -const int kConnectionControllerDitherControl = 6775907; - -const int kConnectionDisplayFlags = 1684434023; - -const int kConnectionDisplayParameterCount = 1885564532; - -const int kConnectionDisplayParameters = 1885434477; - -const int kConnectionEnable = 1701732706; - -const int kConnectionEnableAudio = 1635083296; - -const int kConnectionFlags = 1718380403; - -const int kConnectionFlushParameters = 1718383987; - -const int kConnectionGammaScale = 1735615264; - -const int kConnectionGreenGammaScale = 1734832995; - -const int kConnectionHandleDisplayPortEvent = 1685088626; - -const int kConnectionIgnore = 6907762; - -const int kConnectionOverscan = 1869833070; - -const int kConnectionPanelTimingDisable = 1886284916; - -const int kConnectionPostWake = 1886871915; - -const int kConnectionPower = 1886353266; - -const int kConnectionProbe = 1886547810; - -const int kConnectionRedGammaScale = 1919382371; - -const int kConnectionStartOfFrameTime = 1936680564; - -const int kConnectionSupportsAppleSense = 1634954867; - -const int kConnectionSupportsHLDDCSense = 1751409763; - -const int kConnectionSupportsLLDDCSense = 1818518627; - -const int kConnectionSyncEnable = 1937337955; - -const int kConnectionSyncFlags = 1937335142; - -const int kConnectionVBLMultiplier = 1986161773; - -const int kConnectionVideoBest = 1986163572; - -const int kContainerAliasType = 1685221232; - -const int kContainerCDROMAliasType = 1667523698; - -const int kContainerFloppyAliasType = 1718382713; - -const int kContainerFolderAliasType = 1717858928; - -const int kContainerHardDiskAliasType = 1751413611; - -const int kContainerServerAliasType = 1936881266; - -const int kContainerTrashAliasType = 1953657704; - -const int kContextualAlternatesOffSelector = 1; - -const int kContextualAlternatesOnSelector = 0; - -const int kContextualAlternatesType = 36; - -const int kContextualLigaturesOffSelector = 19; - -const int kContextualLigaturesOnSelector = 18; - -const int kContextualMenuItemsFolderIcon = 1668116085; - -@Deprecated('Deprecated') -const int kContextualMenuItemsFolderType = 1668116085; - -const int kContextualSwashAlternatesOffSelector = 5; - -const int kContextualSwashAlternatesOnSelector = 4; - -const int kControlPanelDisabledFolderIcon = 1668575812; - -@Deprecated('Deprecated') -const int kControlPanelDisabledFolderType = 1668575812; - -const int kControlPanelFolderAliasType = 1717658484; - -const int kControlPanelFolderIcon = 1668575852; - -const int kControlPanelFolderIconResource = -3976; - -@Deprecated('Deprecated') -const int kControlPanelFolderType = 1668575852; - -const int kControlStripModulesFolderIcon = 1935963844; - -@Deprecated('Deprecated') -const int kControlStripModulesFolderType = 1935959414; - -@Deprecated('Deprecated') -const int kCooperativeThread = 1; - -const int kCoreEndianAppleEventManagerDomain = 1634039412; - -const int kCoreEndianResourceManagerDomain = 1920168547; - -const int kCoreEventClass = 1634039412; - -@Deprecated('Deprecated') -const int kCoreServicesFolderType = 1668510326; - -@Deprecated('Deprecated') -const int kCreateFolder = 1; - -@Deprecated('Deprecated') -const int kCreateFolderAtBoot = 2; - -@Deprecated('Deprecated') -const int kCreateFolderAtBootBit = 1; - -@Deprecated('Deprecated') -const int kCreateIfNeeded = 4; - -const int kCreationDateKCItemAttr = 1667522932; - -const int kCreatorKCItemAttr = 1668445298; - -@Deprecated('Deprecated') -const int kCurrentMixedModeStateRecord = 1; - -const int kCurrentProcess = 2; - -@Deprecated('Deprecated') -const int kCurrentThreadID = 1; - -const int kCurrentUserFolderLocation = 1668641638; - -@Deprecated('Deprecated') -const int kCurrentUserFolderType = 1668641650; - -@Deprecated('Deprecated') -const int kCurrentUserRemoteFolderLocation = 1920299878; - -@Deprecated('Deprecated') -const int kCurrentUserRemoteFolderType = 1920299890; - -const int kCursiveConnectionType = 2; - -const int kCursiveSelector = 2; - -const int kCustomBadgeResourceID = -16455; - -const int kCustomBadgeResourceType = 1650549863; - -const int kCustomBadgeResourceVersion = 0; - -const int kCustomIconKCItemAttr = 1668641641; - -const int kCustomIconResource = -16455; - -@Deprecated('Deprecated') -const int kD0DispatchedCStackBased = 9; - -@Deprecated('Deprecated') -const int kD0DispatchedPascalStackBased = 8; - -@Deprecated('Deprecated') -const int kD1DispatchedPascalStackBased = 12; - -const int kDMCantBlock = -6224; - -const int kDMDisplayAlreadyInstalledErr = -6230; - -const int kDMDisplayNotFoundErr = -6229; - -const int kDMDriverNotDisplayMgrAwareErr = -6228; - -const int kDMFoundErr = -6232; - -const int kDMGenErr = -6220; - -const int kDMMainDisplayCannotMoveErr = -6231; - -const int kDMMirroringBlocked = -6223; - -const int kDMMirroringNotOn = -6225; - -const int kDMMirroringOnAlready = -6221; - -const int kDMNoDeviceTableclothErr = -6231; - -const int kDMNotFoundErr = -6229; - -const int kDMSWNotInitializedErr = -6227; - -const int kDMWrongNumberOfDisplays = -6222; - -const int kDOSJapanesePalmVariant = 1; - -const int kDOSJapaneseStandardVariant = 0; - -const int kDSpConfirmSwitchWarning = -30448; - -const int kDSpContextAlreadyReservedErr = -30444; - -const int kDSpContextNotFoundErr = -30446; - -const int kDSpContextNotReservedErr = -30445; - -const int kDSpFrameRateNotReadyErr = -30447; - -const int kDSpInternalErr = -30449; - -const int kDSpInvalidAttributesErr = -30443; - -const int kDSpInvalidContextErr = -30442; - -const int kDSpNotInitializedErr = -30440; - -const int kDSpStereoContextErr = -30450; - -const int kDSpSystemSWTooOldErr = -30441; - -const int kDTPAbortJobErr = 128; - -const int kDTPHoldJobErr = -4200; - -const int kDTPStopQueueErr = -4201; - -const int kDTPThirdPartySupported = 4; - -const int kDTPTryAgainErr = -4202; - -const int kDataAccessKCEvent = 10; - -const int kDataAccessKCEventMask = 1024; - -@Deprecated('Deprecated') -const int kDataAlignmentException = 17; - -@Deprecated('Deprecated') -const int kDataBreakpointException = 11; - -const int kDecomposeDiacriticsSelector = 2; - -const int kDecorativeBordersSelector = 4; - -const int kDecryptKCItemAttr = 1684366194; - -const int kDefaultCJKRomanSelector = 2; - -const int kDefaultCMMSignature = 1634758764; - -const int kDefaultChangedKCEvent = 9; - -const int kDefaultChangedKCEventMask = 512; - -const int kDefaultLowerCaseSelector = 0; - -const int kDefaultUpperCaseSelector = 0; - -const int kDeleteAliasIcon = 1684106345; - -const int kDeleteKCEvent = 4; - -const int kDeleteKCEventMask = 16; - -const int kDescriptionKCItemAttr = 1684370275; - -const int kDesignComplexityType = 18; - -const int kDesignLevel1Selector = 0; - -const int kDesignLevel2Selector = 1; - -const int kDesignLevel3Selector = 2; - -const int kDesignLevel4Selector = 3; - -const int kDesignLevel5Selector = 4; - -@Deprecated('Deprecated') -const int kDesktopFolderType = 1684370283; - -const int kDesktopIcon = 1684370283; - -const int kDesktopIconResource = -3992; - -@Deprecated('Deprecated') -const int kDesktopPicturesFolderType = 1685352644; - -const int kDesktopPrinterAliasType = 1685352545; - -@Deprecated('Deprecated') -const int kDeveloperApplicationsFolderType = 1684107376; - -@Deprecated('Deprecated') -const int kDeveloperDocsFolderType = 1684303715; - -@Deprecated('Deprecated') -const int kDeveloperFolderType = 1684371046; - -@Deprecated('Deprecated') -const int kDeveloperHelpFolderType = 1684371048; - -const int kDeviceInitiatedWake = 18; - -const int kDeviceToPCS = 1; - -const int kDiacriticsType = 9; - -const int kDiagonalFractionsSelector = 2; - -const int kDiamondAnnotationSelector = 8; - -const int kDictionariesFolderType = 1684628340; - -const int kDingbatsSelector = 1; - -const int kDiphthongLigaturesOffSelector = 11; - -const int kDiphthongLigaturesOnSelector = 10; - -@Deprecated('Deprecated') -const int kDirectoryServicesFolderType = 1685287542; - -@Deprecated('Deprecated') -const int kDirectoryServicesPlugInsFolderType = 1685089383; - -@Deprecated('Deprecated') -const int kDispatchedParameterPhase = 8; - -@Deprecated('Deprecated') -const int kDispatchedSelectorSizePhase = 6; - -@Deprecated('Deprecated') -const int kDispatchedSelectorSizeWidth = 2; - -@Deprecated('Deprecated') -const int kDisplayExtensionsFolderType = 1685287020; - -const int kDisplayModeAcceleratorBackedFlag = 4194304; - -const int kDisplayModeAlwaysShowFlag = 8; - -const int kDisplayModeBuiltInFlag = 1024; - -const int kDisplayModeDefaultFlag = 4; - -const int kDisplayModeInterlacedFlag = 64; - -const int kDisplayModeNativeFlag = 33554432; - -const int kDisplayModeNeverShowFlag = 128; - -const int kDisplayModeNotGraphicsQualityFlag = 4096; - -const int kDisplayModeNotPresetFlag = 512; - -const int kDisplayModeNotResizeFlag = 16; - -const int kDisplayModeRequiresPanFlag = 32; - -const int kDisplayModeSafeFlag = 2; - -const int kDisplayModeSafetyFlags = 7; - -const int kDisplayModeSimulscanFlag = 256; - -const int kDisplayModeStretchedFlag = 2048; - -const int kDisplayModeTelevisionFlag = 1048576; - -const int kDisplayModeValidFlag = 1; - -const int kDisplayModeValidForAirPlayFlag = 16777216; - -const int kDisplayModeValidForHiResFlag = 8388608; - -const int kDisplayModeValidForMirroringFlag = 2097152; - -const int kDisplayModeValidateAgainstDisplay = 8192; - -const int kDisplayProductIDGeneric = 1815; - -const int kDisplaySubPixelConfigurationDelta = 1; - -const int kDisplaySubPixelConfigurationQuad = 4; - -const int kDisplaySubPixelConfigurationStripe = 2; - -const int kDisplaySubPixelConfigurationStripeOffset = 3; - -const int kDisplaySubPixelConfigurationUndefined = 0; - -const int kDisplaySubPixelLayoutBGR = 2; - -const int kDisplaySubPixelLayoutQuadGBL = 3; - -const int kDisplaySubPixelLayoutQuadGBR = 4; - -const int kDisplaySubPixelLayoutRGB = 1; - -const int kDisplaySubPixelLayoutUndefined = 0; - -const int kDisplaySubPixelShapeElliptical = 5; - -const int kDisplaySubPixelShapeOval = 4; - -const int kDisplaySubPixelShapeRectangular = 3; - -const int kDisplaySubPixelShapeRound = 1; - -const int kDisplaySubPixelShapeSquare = 2; - -const int kDisplaySubPixelShapeUndefined = 0; - -const int kDisplayTextSelector = 1; - -const int kDisplayVendorIDUnknown = 1970170734; - -const int kDoFolderActionEvent = 1718578273; - -@Deprecated('Deprecated') -const int kDocumentationFolderType = 1768842863; - -const int kDocumentsFolderIcon = 1685021555; - -@Deprecated('Deprecated') -const int kDocumentsFolderType = 1685021555; - -@Deprecated('Deprecated') -const int kDomainLibraryFolderType = 1684826466; - -@Deprecated('Deprecated') -const int kDomainTopLevelFolderType = 1685352304; - -@Deprecated('Deprecated') -const int kDontCreateFolder = 0; - -const int kDontFindAppBySignature = 16384; - -@Deprecated('Deprecated') -const int kDontPassSelector = 8; - -@Deprecated('Deprecated') -const int kDownloadsFolderType = 1685026670; - -const int kDozeDemand = 7; - -const int kDozeRequest = 9; - -const int kDozeToFullWakeUp = 20; - -const int kDozeWakeUp = 8; - -@Deprecated('Deprecated') -const int kDropBoxFolderType = 1685221232; - -const int kDropFolderAliasType = 1717658738; - -const int kDropFolderIcon = 1684172664; - -const int kDropFolderIconResource = -3979; - -const int kDropIconVariant = 1685221232; - -@Deprecated('Deprecated') -const int kDurationForever = 2147483647; - -@Deprecated('Deprecated') -const int kDurationImmediate = 0; - -@Deprecated('Deprecated') -const int kDurationMicrosecond = -1; - -@Deprecated('Deprecated') -const int kDurationMillisecond = 1; - -const int kEACCESErr = -3212; - -const int kEADDRINUSEErr = -3247; - -const int kEADDRNOTAVAILErr = -3248; - -const int kEAGAINErr = -3210; - -const int kEALREADYErr = -3236; - -const int kEBADFErr = -3208; - -const int kEBADMSGErr = -3272; - -const int kEBUSYErr = -3215; - -const int kECANCELErr = -3273; - -const int kECONNABORTEDErr = -3252; - -const int kECONNREFUSEDErr = -3260; - -const int kECONNRESETErr = -3253; - -const int kEDEADLKErr = -3234; - -const int kEDESTADDRREQErr = -3238; - -const int kEEXISTErr = -3216; - -const int kEFAULTErr = -3213; - -const int kEHOSTDOWNErr = -3263; - -const int kEHOSTUNREACHErr = -3264; - -const int kEINPROGRESSErr = -3276; - -const int kEINTRErr = -3203; - -const int kEINVALErr = -3221; - -const int kEIOErr = -3204; - -const int kEISCONNErr = -3255; - -const int kEMSGSIZEErr = -3239; - -const int kEMailKCItemAttr = 1835100524; - -const int kENETDOWNErr = -3249; - -const int kENETRESETErr = -3251; - -const int kENETUNREACHErr = -3250; - -const int kENOBUFSErr = -3254; - -const int kENODATAErr = -3275; - -const int kENODEVErr = -3218; - -const int kENOENTErr = -3201; - -const int kENOMEMErr = -3211; - -const int kENOMSGErr = -3278; - -const int kENOPROTOOPTErr = -3241; - -const int kENORSRCErr = -3202; - -const int kENOSRErr = -3271; - -const int kENOSTRErr = -3274; - -const int kENOTCONNErr = -3256; - -const int kENOTSOCKErr = -3237; - -const int kENOTTYErr = -3224; - -const int kENXIOErr = -3205; - -const int kEOPNOTSUPPErr = -3244; - -const int kEPERMErr = -3200; - -const int kEPIPEErr = -3231; - -const int kEPROTOErr = -3269; - -const int kEPROTONOSUPPORTErr = -3242; - -const int kEPROTOTYPEErr = -3240; - -const int kERANGEErr = -3233; - -const int kESHUTDOWNErr = -3257; - -const int kESOCKTNOSUPPORTErr = -3243; - -const int kESRCHErr = -3277; - -const int kETIMEDOUTErr = -3259; - -const int kETIMEErr = -3270; - -const int kETOOMANYREFSErr = -3258; - -const int kEUC_CN_BasicVariant = 0; - -const int kEUC_CN_DOSVariant = 1; - -const int kEUC_KR_BasicVariant = 0; - -const int kEUC_KR_DOSVariant = 1; - -const int kEWOULDBLOCKErr = -3234; - -@Deprecated('Deprecated') -const int kEditorsFolderType = 1868850532; - -const int kEjectMediaIcon = 1701471587; - -const int kEncryptKCItemAttr = 1701733234; - -const int kEncryptPassword = 3; - -const int kEndDateKCItemAttr = 1701077364; - -const int kEndOfSentence = 2; - -const int kEndOfWord = 1; - -const int kEngravedTextSelector = 2; - -const int kEnterIdle = 24; - -const int kEnterRun = 11; - -const int kEnterStandby = 10; - -const int kEveryKCEventMask = 65535; - -@Deprecated('Deprecated') -const int kExactMatchThread = 16; - -@Deprecated('Deprecated') -const int kExcludedMemoryException = 5; - -const int kExitIdle = 26; - -const int kExpertCharactersSelector = 10; - -const int kExponentsOffSelector = 9; - -const int kExponentsOnSelector = 8; - -const int kExportedFolderAliasType = 1717658996; - -const int kExtendedFlagHasCustomBadge = 256; - -const int kExtendedFlagHasRoutingInfo = 4; - -const int kExtendedFlagObjectIsBusy = 128; - -const int kExtendedFlagsAreInvalid = 32768; - -@Deprecated('Deprecated') -const int kExtensionDisabledFolderType = 1702392900; - -const int kExtensionFolderAliasType = 1717659000; - -@Deprecated('Deprecated') -const int kExtensionFolderType = 1702392942; - -const int kExtensionsDisabledFolderIcon = 1702392900; - -const int kExtensionsFolderIcon = 1702392942; - -const int kExtensionsFolderIconResource = -3973; - -const int kFAAttachCommand = 1635018337; - -const int kFAEditCommand = 1701078625; - -const int kFAFileParam = 1717657964; - -const int kFAIndexParam = 1768842360; - -const int kFARemoveCommand = 1919772257; - -const int kFAServerApp = 1936945782; - -const int kFASuiteCode = 1717658479; - -const int kFBCaccessCanceled = -30521; - -const int kFBCaccessorStoreFailed = -30515; - -const int kFBCaddDocFailed = -30516; - -const int kFBCallocFailed = -30502; - -const int kFBCanalysisNotAvailable = -30527; - -const int kFBCbadIndexFile = -30505; - -const int kFBCbadIndexFileVersion = -30528; - -const int kFBCbadParam = -30503; - -const int kFBCbadSearchSession = -30531; - -const int kFBCcommitFailed = -30509; - -const int kFBCcompactionFailed = -30506; - -const int kFBCdeletionFailed = -30510; - -const int kFBCfileNotIndexed = -30504; - -const int kFBCflushFailed = -30517; - -const int kFBCillegalSessionChange = -30526; - -const int kFBCindexCreationFailed = -30514; - -const int kFBCindexDiskIOFailed = -30530; - -const int kFBCindexFileDestroyed = -30522; - -const int kFBCindexNotAvailable = -30523; - -const int kFBCindexNotFound = -30518; - -const int kFBCindexingCanceled = -30520; - -const int kFBCindexingFailed = -30508; - -const int kFBCmergingFailed = -30513; - -const int kFBCmoveFailed = -30511; - -const int kFBCnoIndexesFound = -30501; - -const int kFBCnoSearchSession = -30519; - -const int kFBCnoSuchHit = -30532; - -const int kFBCsearchFailed = -30524; - -const int kFBCsomeFilesNotIndexed = -30525; - -const int kFBCsummarizationCanceled = -30529; - -const int kFBCtokenizationFailed = -30512; - -const int kFBCvTwinExceptionErr = -30500; - -const int kFBCvalidationFailed = -30507; - -const int kFMCurrentFilterFormat = 0; - -const int kFMFontCallbackFilterSelector = 5; - -const int kFMFontContainerAccessErr = -985; - -const int kFMFontContainerFilterSelector = 2; - -const int kFMFontDirectoryFilterSelector = 6; - -const int kFMFontFamilyCallbackFilterSelector = 4; - -const int kFMFontFileRefFilterSelector = 10; - -const int kFMFontTableAccessErr = -984; - -const int kFMFontTechnologyFilterSelector = 1; - -const int kFMGenerationFilterSelector = 3; - -const int kFMInvalidFontErr = -982; - -const int kFMInvalidFontFamilyErr = -981; - -const int kFMIterationCompleted = -980; - -const int kFMIterationScopeModifiedErr = -983; - -const int kFMPostScriptFontTechnology = 1954115633; - -const int kFMTrueTypeFontTechnology = 1953658213; - -const int kFNDirectoryModifiedMessage = 1; - -const int kFNNoImplicitAllSubscription = 1; - -const int kFNNotifyInBackground = 2; - -const int kFNSBadFlattenedSizeErr = -29587; - -const int kFNSBadProfileVersionErr = -29583; - -const int kFNSBadReferenceVersionErr = -29581; - -const int kFNSDuplicateReferenceErr = -29584; - -const int kFNSInsufficientDataErr = -29586; - -const int kFNSInvalidProfileErr = -29582; - -const int kFNSInvalidReferenceErr = -29580; - -const int kFNSMismatchErr = -29585; - -const int kFNSNameNotFoundErr = -29589; - -@Deprecated('Deprecated') -const int kFPUNotNeeded = 8; - -@Deprecated('Deprecated') -const int kFSAliasInfoFSInfo = 32; - -@Deprecated('Deprecated') -const int kFSAliasInfoFinderInfo = 4; - -@Deprecated('Deprecated') -const int kFSAliasInfoIDs = 16; - -@Deprecated('Deprecated') -const int kFSAliasInfoIsDirectory = 8; - -@Deprecated('Deprecated') -const int kFSAliasInfoNone = 0; - -@Deprecated('Deprecated') -const int kFSAliasInfoTargetCreateDate = 2; - -@Deprecated('Deprecated') -const int kFSAliasInfoVolumeCreateDate = 1; - -@Deprecated('Deprecated') -const int kFSAliasInfoVolumeFlags = 64; - -const int kFSAllocAllOrNothingMask = 1; - -const int kFSAllocContiguousMask = 2; - -const int kFSAllocDefaultFlags = 0; - -const int kFSAllocNoRoundUpMask = 4; - -const int kFSAllocReservedMask = 65528; - -const int kFSAllowConcurrentAsyncIOBit = 3; - -const int kFSAllowConcurrentAsyncIOMask = 8; - -const int kFSCatInfoAccessDate = 256; - -const int kFSCatInfoAllDates = 992; - -const int kFSCatInfoAttrMod = 128; - -const int kFSCatInfoBackupDate = 512; - -const int kFSCatInfoContentMod = 64; - -const int kFSCatInfoCreateDate = 32; - -const int kFSCatInfoDataSizes = 16384; - -const int kFSCatInfoFSFileSecurityRef = 4194304; - -const int kFSCatInfoFinderInfo = 2048; - -const int kFSCatInfoFinderXInfo = 4096; - -const int kFSCatInfoGettableInfo = 262143; - -const int kFSCatInfoNodeFlags = 2; - -const int kFSCatInfoNodeID = 16; - -const int kFSCatInfoNone = 0; - -const int kFSCatInfoParentDirID = 8; - -const int kFSCatInfoPermissions = 1024; - -const int kFSCatInfoReserved = -262144; - -const int kFSCatInfoRsrcSizes = 32768; - -const int kFSCatInfoSetOwnership = 1048576; - -const int kFSCatInfoSettableInfo = 8163; - -const int kFSCatInfoSharingFlags = 65536; - -const int kFSCatInfoTextEncoding = 1; - -const int kFSCatInfoUserAccess = 524288; - -const int kFSCatInfoUserPrivs = 131072; - -const int kFSCatInfoValence = 8192; - -const int kFSCatInfoVolume = 4; - -const int kFSEjectVolumeForceEject = 1; - -const int kFSEventStreamCreateDeviceState = 512; - -const int kFSEventStreamCreateFlagFileEvents = 16; - -const int kFSEventStreamCreateFlagFullHistory = 128; - -const int kFSEventStreamCreateFlagIgnoreSelf = 8; - -const int kFSEventStreamCreateFlagMarkSelf = 32; - -const int kFSEventStreamCreateFlagNoDefer = 2; - -const int kFSEventStreamCreateFlagNone = 0; - -const int kFSEventStreamCreateFlagUseCFTypes = 1; - -const int kFSEventStreamCreateFlagUseExtendedData = 64; - -const int kFSEventStreamCreateFlagWatchRoot = 4; - -const int kFSEventStreamCreateWithDocID = 256; - -const int kFSEventStreamEventFlagEventIdsWrapped = 8; - -const int kFSEventStreamEventFlagHistoryDone = 16; - -const int kFSEventStreamEventFlagItemChangeOwner = 16384; - -const int kFSEventStreamEventFlagItemCloned = 4194304; - -const int kFSEventStreamEventFlagItemCreated = 256; - -const int kFSEventStreamEventFlagItemFinderInfoMod = 8192; - -const int kFSEventStreamEventFlagItemInodeMetaMod = 1024; - -const int kFSEventStreamEventFlagItemIsDir = 131072; - -const int kFSEventStreamEventFlagItemIsFile = 65536; - -const int kFSEventStreamEventFlagItemIsHardlink = 1048576; - -const int kFSEventStreamEventFlagItemIsLastHardlink = 2097152; - -const int kFSEventStreamEventFlagItemIsSymlink = 262144; - -const int kFSEventStreamEventFlagItemModified = 4096; - -const int kFSEventStreamEventFlagItemRemoved = 512; - -const int kFSEventStreamEventFlagItemRenamed = 2048; - -const int kFSEventStreamEventFlagItemXattrMod = 32768; - -const int kFSEventStreamEventFlagKernelDropped = 4; - -const int kFSEventStreamEventFlagMount = 64; - -const int kFSEventStreamEventFlagMustScanSubDirs = 1; - -const int kFSEventStreamEventFlagNone = 0; - -const int kFSEventStreamEventFlagOwnEvent = 524288; - -const int kFSEventStreamEventFlagRootChanged = 32; - -const int kFSEventStreamEventFlagUnmount = 128; - -const int kFSEventStreamEventFlagUserDropped = 2; - -const int kFSEventStreamEventIdSinceNow = -1; - -const int kFSFileOperationDefaultOptions = 0; - -const int kFSFileOperationDoNotMoveAcrossVolumes = 4; - -const int kFSFileOperationOverwrite = 1; - -const int kFSFileOperationSkipPreflight = 8; - -const int kFSFileOperationSkipSourcePermissionErrors = 2; - -const int kFSForceReadBit = 6; - -const int kFSForceReadMask = 64; - -const int kFSInvalidVolumeRefNum = 0; - -const int kFSIterateDelete = 2; - -const int kFSIterateFlat = 0; - -const int kFSIterateReserved = -4; - -const int kFSIterateSubtree = 1; - -const int kFSKMountVersion = 1179863841; - -const int kFSMountServerMarkDoNotDisplay = 1; - -const int kFSMountServerMountOnMountDir = 4; - -const int kFSMountServerMountWithoutNotification = 2; - -const int kFSMountServerSuppressConnectionUI = 64; - -const int kFSNewLineBit = 7; - -const int kFSNewLineCharMask = 65280; - -const int kFSNewLineMask = 128; - -const int kFSNoCacheBit = 5; - -const int kFSNoCacheMask = 32; - -const int kFSNodeCopyProtectBit = 6; - -const int kFSNodeCopyProtectMask = 64; - -const int kFSNodeDataOpenBit = 3; - -const int kFSNodeDataOpenMask = 8; - -const int kFSNodeForkOpenBit = 7; - -const int kFSNodeForkOpenMask = 128; - -const int kFSNodeHardLinkBit = 8; - -const int kFSNodeHardLinkMask = 256; - -const int kFSNodeInSharedBit = 2; - -const int kFSNodeInSharedMask = 4; - -const int kFSNodeIsDirectoryBit = 4; - -const int kFSNodeIsDirectoryMask = 16; - -const int kFSNodeIsMountedBit = 3; - -const int kFSNodeIsMountedMask = 8; - -const int kFSNodeIsSharePointBit = 5; - -const int kFSNodeIsSharePointMask = 32; - -const int kFSNodeLockedBit = 0; - -const int kFSNodeLockedMask = 1; - -const int kFSNodeResOpenBit = 2; - -const int kFSNodeResOpenMask = 4; - -const int kFSOperationStageComplete = 3; - -const int kFSOperationStagePreflighting = 1; - -const int kFSOperationStageRunning = 2; - -const int kFSOperationStageUndefined = 0; - -const int kFSPathMakeRefDefaultOptions = 0; - -const int kFSPathMakeRefDoNotFollowLeafSymlink = 1; - -const int kFSPleaseCacheBit = 4; - -const int kFSPleaseCacheMask = 16; - -const int kFSRdVerifyBit = 6; - -const int kFSRdVerifyMask = 64; - -const int kFSReplaceObjectDefaultOptions = 0; - -const int kFSReplaceObjectDoNotCheckObjectWriteAccess = 16; - -const int kFSReplaceObjectPreservePermissionInfo = 8; - -const int kFSReplaceObjectReplaceMetadata = 1; - -const int kFSReplaceObjectReplacePermissionInfo = 4; - -const int kFSReplaceObjectSaveOriginalAsABackup = 2; - -const int kFSUnmountVolumeForceUnmount = 1; - -const int kFSVolFlagDefaultVolumeBit = 5; - -const int kFSVolFlagDefaultVolumeMask = 32; - -const int kFSVolFlagFilesOpenBit = 6; - -const int kFSVolFlagFilesOpenMask = 64; - -const int kFSVolFlagHardwareLockedBit = 7; - -const int kFSVolFlagHardwareLockedMask = 128; - -const int kFSVolFlagJournalingActiveBit = 14; - -const int kFSVolFlagJournalingActiveMask = 16384; - -const int kFSVolFlagSoftwareLockedBit = 15; - -const int kFSVolFlagSoftwareLockedMask = 32768; - -const int kFSVolInfoBackupDate = 4; - -const int kFSVolInfoBlocks = 128; - -const int kFSVolInfoCheckedDate = 8; - -const int kFSVolInfoCreateDate = 1; - -const int kFSVolInfoDataClump = 1024; - -const int kFSVolInfoDirCount = 32; - -const int kFSVolInfoDriveInfo = 32768; - -const int kFSVolInfoFSInfo = 16384; - -const int kFSVolInfoFileCount = 16; - -const int kFSVolInfoFinderInfo = 4096; - -const int kFSVolInfoFlags = 8192; - -const int kFSVolInfoGettableInfo = 65535; - -const int kFSVolInfoModDate = 2; - -const int kFSVolInfoNextAlloc = 256; - -const int kFSVolInfoNextID = 2048; - -const int kFSVolInfoNone = 0; - -const int kFSVolInfoRsrcClump = 512; - -const int kFSVolInfoSettableInfo = 12292; - -const int kFSVolInfoSizes = 64; - -const int kFTPServerIcon = 1718906995; - -const int kFavoriteItemsIcon = 1717663346; - -const int kFavoritesFolderIcon = 1717663347; - -@Deprecated('Deprecated') -const int kFavoritesFolderType = 1717663347; - -const int kFemale = 2; - -@Deprecated('Deprecated') -const int kFetchReference = 2; - -@Deprecated('Deprecated') -const int kFileSystemSupportFolderType = 1718843763; - -@Deprecated('Deprecated') -const int kFindByContentFolderType = 1717724006; - -@Deprecated('Deprecated') -const int kFindByContentIndexesFolderType = 1717724024; - -@Deprecated('Deprecated') -const int kFindByContentPluginsFolderType = 1717724016; - -@Deprecated('Deprecated') -const int kFindSupportFolderType = 1718510707; - -const int kFinderIcon = 1179534418; - -const int kFirstFailKCStopOn = 3; - -const int kFirstIOKitNotificationType = 100; - -const int kFirstMagicBusyFiletype = 1652193568; - -const int kFirstPassKCStopOn = 2; - -const int kFleuronsSelector = 3; - -@Deprecated('Deprecated') -const int kFloatingPointException = 13; - -const int kFloppyIconResource = -3998; - -const int kFolderActionCode = 1633907822; - -@Deprecated('Deprecated') -const int kFolderActionsFolderType = 1717662566; - -const int kFolderClosedEvent = 1717791855; - -@Deprecated('Deprecated') -const int kFolderCreatedAdminPrivs = 16; - -@Deprecated('Deprecated') -const int kFolderCreatedAdminPrivsBit = 4; - -@Deprecated('Deprecated') -const int kFolderCreatedInvisible = 4; - -@Deprecated('Deprecated') -const int kFolderCreatedInvisibleBit = 2; - -@Deprecated('Deprecated') -const int kFolderCreatedNameLocked = 8; - -@Deprecated('Deprecated') -const int kFolderCreatedNameLockedBit = 3; - -@Deprecated('Deprecated') -const int kFolderInLocalOrRemoteUserFolder = 160; - -@Deprecated('Deprecated') -const int kFolderInRemoteUserFolderIfAvailable = 128; - -@Deprecated('Deprecated') -const int kFolderInRemoteUserFolderIfAvailableBit = 7; - -@Deprecated('Deprecated') -const int kFolderInUserFolder = 32; - -@Deprecated('Deprecated') -const int kFolderInUserFolderBit = 5; - -const int kFolderItemsAddedEvent = 1718052212; - -const int kFolderItemsRemovedEvent = 1718382451; - -@Deprecated('Deprecated') -const int kFolderManagerFolderInMacOS9FolderIfMacOSXIsInstalledBit = 10; - -@Deprecated('Deprecated') -const int kFolderManagerFolderInMacOS9FolderIfMacOSXIsInstalledMask = 1024; - -@Deprecated('Deprecated') -const int kFolderManagerLastDomain = -32760; - -@Deprecated('Deprecated') -const int kFolderManagerNewlyCreatedFolderIsLocalizedBit = 12; - -@Deprecated('Deprecated') -const int -kFolderManagerNewlyCreatedFolderShouldHaveDotLocalizedCreatedWithinMask = 4096; - -@Deprecated('Deprecated') -const int kFolderManagerNotCreatedOnRemoteVolumesBit = 11; - -@Deprecated('Deprecated') -const int kFolderManagerNotCreatedOnRemoteVolumesMask = 2048; - -@Deprecated('Deprecated') -const int kFolderMustStayOnSameVolume = 512; - -@Deprecated('Deprecated') -const int kFolderMustStayOnSameVolumeBit = 9; - -@Deprecated('Deprecated') -const int kFolderNeverMatchedInIdentifyFolder = 256; - -@Deprecated('Deprecated') -const int kFolderNeverMatchedInIdentifyFolderBit = 8; - -const int kFolderOpenedEvent = 1718579310; - -@Deprecated('Deprecated') -const int kFolderTrackedByAlias = 64; - -@Deprecated('Deprecated') -const int kFolderTrackedByAliasBit = 6; - -const int kFolderWindowMovedEvent = 1718839674; - -const int kFontAlbanianLanguage = 36; - -const int kFontAmharicLanguage = 85; - -const int kFontAmharicScript = 28; - -const int kFontArabicLanguage = 12; - -const int kFontArabicScript = 4; - -const int kFontArmenianLanguage = 51; - -const int kFontArmenianScript = 24; - -const int kFontAssameseLanguage = 68; - -const int kFontAymaraLanguage = 134; - -const int kFontAzerbaijanArLanguage = 50; - -const int kFontAzerbaijaniLanguage = 49; - -const int kFontBasqueLanguage = 129; - -const int kFontBengaliLanguage = 67; - -const int kFontBengaliScript = 13; - -const int kFontBulgarianLanguage = 44; - -const int kFontBurmeseLanguage = 77; - -const int kFontBurmeseScript = 19; - -const int kFontByelorussianLanguage = 46; - -const int kFontCatalanLanguage = 130; - -const int kFontChewaLanguage = 92; - -const int kFontChineseScript = 2; - -@Deprecated('Deprecated') -const int kFontCollectionsFolderType = 1718510444; - -const int kFontCopyrightName = 0; - -const int kFontCroatianLanguage = 18; - -const int kFontCustom16BitScript = 2; - -const int kFontCustom816BitScript = 1; - -const int kFontCustom8BitScript = 0; - -const int kFontCustomPlatform = 4; - -const int kFontCyrillicScript = 7; - -const int kFontCzechLanguage = 38; - -const int kFontDanishLanguage = 7; - -const int kFontDescriptionName = 10; - -const int kFontDesignerName = 9; - -const int kFontDesignerURLName = 12; - -const int kFontDevanagariScript = 9; - -const int kFontDutchLanguage = 4; - -const int kFontDzongkhaLanguage = 137; - -const int kFontEastEuropeanRomanScript = 29; - -const int kFontEnglishLanguage = 0; - -const int kFontEsperantoLanguage = 94; - -const int kFontEstonianLanguage = 27; - -const int kFontEthiopicScript = 28; - -const int kFontExtendedArabicScript = 31; - -const int kFontFaeroeseLanguage = 30; - -const int kFontFamilyName = 1; - -const int kFontFarsiLanguage = 31; - -const int kFontFinnishLanguage = 13; - -const int kFontFlemishLanguage = 34; - -const int kFontFrenchLanguage = 1; - -const int kFontFullName = 4; - -const int kFontGallaLanguage = 87; - -const int kFontGeezScript = 28; - -const int kFontGeorgianLanguage = 52; - -const int kFontGeorgianScript = 23; - -const int kFontGermanLanguage = 2; - -const int kFontGreekLanguage = 14; - -const int kFontGreekScript = 6; - -const int kFontGuaraniLanguage = 133; - -const int kFontGujaratiLanguage = 69; - -const int kFontGujaratiScript = 11; - -const int kFontGurmukhiScript = 10; - -const int kFontHebrewLanguage = 10; - -const int kFontHebrewScript = 5; - -const int kFontHindiLanguage = 21; - -const int kFontHungarianLanguage = 26; - -const int kFontISO10646_1993Semantics = 2; - -const int kFontIcelandicLanguage = 15; - -const int kFontIndonesianLanguage = 81; - -const int kFontIrishLanguage = 35; - -const int kFontItalianLanguage = 3; - -const int kFontJapaneseLanguage = 11; - -const int kFontJapaneseScript = 1; - -const int kFontJavaneseRomLanguage = 138; - -const int kFontKannadaLanguage = 73; - -const int kFontKannadaScript = 16; - -const int kFontKashmiriLanguage = 61; - -const int kFontKazakhLanguage = 48; - -const int kFontKhmerLanguage = 78; - -const int kFontKhmerScript = 20; - -const int kFontKirghizLanguage = 54; - -const int kFontKoreanLanguage = 23; - -const int kFontKoreanScript = 3; - -const int kFontKurdishLanguage = 60; - -const int kFontLaoLanguage = 79; - -const int kFontLaotianScript = 22; - -const int kFontLappishLanguage = 29; - -const int kFontLastReservedName = 255; - -const int kFontLatinLanguage = 131; - -const int kFontLatvianLanguage = 28; - -const int kFontLettishLanguage = 28; - -const int kFontLicenseDescriptionName = 13; - -const int kFontLicenseInfoURLName = 14; - -const int kFontLithuanianLanguage = 24; - -const int kFontMacCompatibleFullName = 18; - -const int kFontMacedonianLanguage = 43; - -const int kFontMacintoshPlatform = 1; - -const int kFontMalagasyLanguage = 93; - -const int kFontMalayArabicLanguage = 84; - -const int kFontMalayRomanLanguage = 83; - -const int kFontMalayalamLanguage = 72; - -const int kFontMalayalamScript = 17; - -const int kFontMalteseLanguage = 16; - -const int kFontManufacturerName = 8; - -const int kFontMarathiLanguage = 66; - -const int kFontMicrosoftPlatform = 3; - -const int kFontMicrosoftStandardScript = 1; - -const int kFontMicrosoftSymbolScript = 0; - -const int kFontMicrosoftUCS4Script = 10; - -const int kFontMoldavianLanguage = 53; - -const int kFontMongolianCyrLanguage = 58; - -const int kFontMongolianLanguage = 57; - -const int kFontMongolianScript = 27; - -const int kFontNepaliLanguage = 64; - -const int kFontNoLanguage = -1; - -const int kFontNoLanguageCode = -1; - -const int kFontNoName = -1; - -const int kFontNoNameCode = -1; - -const int kFontNoPlatform = -1; - -const int kFontNoPlatformCode = -1; - -const int kFontNoScript = -1; - -const int kFontNoScriptCode = -1; - -const int kFontNorwegianLanguage = 9; - -const int kFontOriyaLanguage = 71; - -const int kFontOriyaScript = 12; - -const int kFontOromoLanguage = 87; - -const int kFontPashtoLanguage = 59; - -const int kFontPersianLanguage = 31; - -const int kFontPolishLanguage = 25; - -const int kFontPortugueseLanguage = 8; - -const int kFontPostScriptCIDName = 20; - -const int kFontPostscriptName = 6; - -const int kFontPreferredFamilyName = 16; - -const int kFontPreferredSubfamilyName = 17; - -const int kFontPunjabiLanguage = 70; - -const int kFontQuechuaLanguage = 132; - -const int kFontRSymbolScript = 8; - -const int kFontReservedPlatform = 2; - -const int kFontRomanScript = 0; - -const int kFontRomanianLanguage = 37; - -const int kFontRuandaLanguage = 90; - -const int kFontRundiLanguage = 91; - -const int kFontRussian = 7; - -const int kFontRussianLanguage = 32; - -const int kFontSaamiskLanguage = 29; - -const int kFontSampleTextName = 19; - -const int kFontSanskritLanguage = 65; - -const int kFontSerbianLanguage = 42; - -const int kFontSimpChineseLanguage = 33; - -const int kFontSimpleChineseScript = 25; - -const int kFontSindhiLanguage = 62; - -const int kFontSindhiScript = 31; - -const int kFontSinhaleseLanguage = 76; - -const int kFontSinhaleseScript = 18; - -const int kFontSlavicScript = 29; - -const int kFontSlovakLanguage = 39; - -const int kFontSlovenianLanguage = 40; - -const int kFontSomaliLanguage = 88; - -const int kFontSpanishLanguage = 6; - -const int kFontStyleName = 2; - -const int kFontSuitcaseIcon = 1179011404; - -const int kFontSundaneseRomLanguage = 139; - -const int kFontSwahiliLanguage = 89; - -const int kFontSwedishLanguage = 5; - -const int kFontTagalogLanguage = 82; - -const int kFontTajikiLanguage = 55; - -const int kFontTamilLanguage = 74; - -const int kFontTamilScript = 14; - -const int kFontTatarLanguage = 135; - -const int kFontTeluguLanguage = 75; - -const int kFontTeluguScript = 15; - -const int kFontThaiLanguage = 22; - -const int kFontThaiScript = 21; - -const int kFontTibetanLanguage = 63; - -const int kFontTibetanScript = 26; - -const int kFontTigrinyaLanguage = 86; - -const int kFontTradChineseLanguage = 19; - -const int kFontTrademarkName = 7; - -const int kFontTraditionalChineseScript = 2; - -const int kFontTurkishLanguage = 17; - -const int kFontTurkmenLanguage = 56; - -const int kFontUighurLanguage = 136; - -const int kFontUkrainianLanguage = 45; - -const int kFontUnicodeDefaultSemantics = 0; - -const int kFontUnicodePlatform = 0; - -const int kFontUnicodeV1_1Semantics = 1; - -const int kFontUnicodeV2_0BMPOnlySemantics = 3; - -const int kFontUnicodeV2_0FullCoverageSemantics = 4; - -const int kFontUnicodeV4_0VariationSequenceSemantics = 5; - -const int kFontUnicode_FullRepertoire = 6; - -const int kFontUninterpretedScript = 32; - -const int kFontUniqueName = 3; - -const int kFontUrduLanguage = 20; - -const int kFontUzbekLanguage = 47; - -const int kFontVendorURLName = 11; - -const int kFontVersionName = 5; - -const int kFontVietnameseLanguage = 80; - -const int kFontVietnameseScript = 30; - -const int kFontWelshLanguage = 128; - -const int kFontYiddishLanguage = 41; - -const int kFontsFolderIcon = 1718578804; - -const int kFontsFolderIconResource = -3968; - -@Deprecated('Deprecated') -const int kFontsFolderType = 1718578804; - -const int kForkInfoFlagsFileLockedBit = 5; - -const int kForkInfoFlagsFileLockedMask = 32; - -const int kForkInfoFlagsLargeFileBit = 3; - -const int kForkInfoFlagsLargeFileMask = 8; - -const int kForkInfoFlagsModifiedBit = 7; - -const int kForkInfoFlagsModifiedMask = 128; - -const int kForkInfoFlagsOwnClumpBit = 6; - -const int kForkInfoFlagsOwnClumpMask = 64; - -const int kForkInfoFlagsResourceBit = 1; - -const int kForkInfoFlagsResourceMask = 2; - -const int kForkInfoFlagsSharedWriteBit = 4; - -const int kForkInfoFlagsSharedWriteMask = 16; - -const int kForkInfoFlagsWriteBit = 0; - -const int kForkInfoFlagsWriteLockedBit = 2; - -const int kForkInfoFlagsWriteLockedMask = 4; - -const int kForkInfoFlagsWriteMask = 1; - -const int kFormInterrobangOffSelector = 7; - -const int kFormInterrobangOnSelector = 6; - -const int kForwardArrowIcon = 1717662319; - -@Deprecated('Deprecated') -const int kFourByteCode = 3; - -const int kFractionsType = 11; - -@Deprecated('Deprecated') -const int kFragmentIsPrepared = 0; - -@Deprecated('Deprecated') -const int kFragmentNeedsPreparing = 2; - -const int kFramebufferDisableAltivecAccess = 524288; - -const int kFramebufferSupportsCopybackCache = 65536; - -const int kFramebufferSupportsGammaCorrection = 262144; - -const int kFramebufferSupportsWritethruCache = 131072; - -@Deprecated('Deprecated') -const int kFrameworksFolderType = 1718772077; - -const int kFullTrashIcon = 1718907496; - -const int kFullTrashIconResource = -3984; - -const int kFullWidthCJKRomanSelector = 3; - -const int kFullWidthIdeographsSelector = 0; - -const int kFullWidthKanaSelector = 0; - -@Deprecated('Deprecated') -const int kGenEditorsFolderType = -999988119; - -const int kGeneralFailureErr = -9070; - -const int kGenericApplicationIcon = 1095782476; - -const int kGenericApplicationIconResource = -3996; - -const int kGenericCDROMIcon = 1667523698; - -const int kGenericCDROMIconResource = -3987; - -const int kGenericComponentIcon = 1953001063; - -const int kGenericControlPanelIcon = 1095782467; - -const int kGenericControlStripModuleIcon = 1935959414; - -const int kGenericDeskAccessoryIcon = 1095782468; - -const int kGenericDeskAccessoryIconResource = -3991; - -const int kGenericDocumentIcon = 1685021557; - -const int kGenericDocumentIconResource = -4000; - -const int kGenericEditionFileIcon = 1701082214; - -const int kGenericEditionFileIconResource = -3989; - -const int kGenericExtensionIcon = 1229867348; - -const int kGenericExtensionIconResource = -16415; - -const int kGenericFileServerIcon = 1936881266; - -const int kGenericFileServerIconResource = -3972; - -const int kGenericFloppyIcon = 1718382713; - -const int kGenericFolderIcon = 1718379634; - -const int kGenericFolderIconResource = -3999; - -const int kGenericFontIcon = 1717987692; - -const int kGenericFontScalerIcon = 1935895666; - -const int kGenericHardDiskIcon = 1751413611; - -const int kGenericHardDiskIconResource = -3995; - -const int kGenericIDiskIcon = 1768190827; - -const int kGenericKCItemAttr = 1734700641; - -const int kGenericMoverObjectIcon = 1836021362; - -const int kGenericMoverObjectIconResource = -3969; - -const int kGenericNetworkIcon = 1735288180; - -const int kGenericPCCardIcon = 1885564259; - -const int kGenericPasswordKCItemClass = 1734700656; - -const int kGenericPreferencesIcon = 1886545254; - -const int kGenericPreferencesIconResource = -3971; - -const int kGenericQueryDocumentIcon = 1902473849; - -const int kGenericQueryDocumentIconResource = -16506; - -const int kGenericRAMDiskIcon = 1918987620; - -const int kGenericRAMDiskIconResource = -3988; - -const int kGenericRemovableMediaIcon = 1919774582; - -const int kGenericSharedLibaryIcon = 1936223330; - -const int kGenericStationeryIcon = 1935961955; - -const int kGenericStationeryIconResource = -3985; - -const int kGenericSuitcaseIcon = 1937074548; - -const int kGenericSuitcaseIconResource = -3970; - -const int kGenericURLIcon = 1735750252; - -const int kGenericWORMIcon = 2003792493; - -const int kGenericWindowIcon = 1735879022; - -@Deprecated('Deprecated') -const int kGetDebugOption = 1; - -const int kGetPowerInfo = 21; - -const int kGetPowerLevel = 16; - -const int kGetSelectedText = 1735686260; - -const int kGetWakeOnNetInfo = 22; - -const int kGlyphCollectionAdobeCNS1 = 1; - -const int kGlyphCollectionAdobeGB1 = 2; - -const int kGlyphCollectionAdobeJapan1 = 3; - -const int kGlyphCollectionAdobeJapan2 = 4; - -const int kGlyphCollectionAdobeKorea1 = 5; - -const int kGlyphCollectionGID = 0; - -const int kGlyphCollectionUnspecified = 255; - -const int kGridIcon = 1735551332; - -const int kGroupID2Name = 2; - -const int kGroupIcon = 1735554416; - -const int kGroupName2ID = 4; - -const int kGuestUserIcon = 1735750514; - -const int kHFSAllocationFileID = 6; - -const int kHFSAttributeDataFileID = 13; - -const int kHFSAttributesFileID = 8; - -const int kHFSAutoCandidateBit = 11; - -const int kHFSAutoCandidateMask = 2048; - -const int kHFSBadBlockFileID = 5; - -const int kHFSBinaryCompare = 188; - -const int kHFSBogusExtentFileID = 15; - -const int kHFSBootVolumeInconsistentBit = 11; - -const int kHFSBootVolumeInconsistentMask = 2048; - -const int kHFSCaseFolding = 207; - -const int kHFSCatExpandedTimesBit = 12; - -const int kHFSCatExpandedTimesMask = 4096; - -const int kHFSCatalogFileID = 4; - -const int kHFSCatalogKeyMaximumLength = 37; - -const int kHFSCatalogKeyMinimumLength = 6; - -const int kHFSCatalogNodeIDsReusedBit = 12; - -const int kHFSCatalogNodeIDsReusedMask = 4096; - -const int kHFSContentProtectionBit = 30; - -const int kHFSContentProtectionMask = 1073741824; - -const int kHFSDoNotFastDevPinBit = 9; - -const int kHFSDoNotFastDevPinMask = 512; - -const int kHFSExpandedTimesBit = 29; - -const int kHFSExpandedTimesMask = 536870912; - -const int kHFSExtentDensity = 3; - -const int kHFSExtentKeyMaximumLength = 7; - -const int kHFSExtentsFileID = 3; - -const int kHFSFastDevCandidateBit = 10; - -const int kHFSFastDevCandidateMask = 1024; - -const int kHFSFastDevPinnedBit = 8; - -const int kHFSFastDevPinnedMask = 256; - -const int kHFSFileLockedBit = 0; - -const int kHFSFileLockedMask = 1; - -const int kHFSFileRecord = 512; - -const int kHFSFileThreadRecord = 1024; - -const int kHFSFirstUserCatalogNodeID = 16; - -const int kHFSFolderRecord = 256; - -const int kHFSFolderThreadRecord = 768; - -const int kHFSHasAttributesBit = 2; - -const int kHFSHasAttributesMask = 4; - -const int kHFSHasChildLinkBit = 6; - -const int kHFSHasChildLinkMask = 64; - -const int kHFSHasDateAddedBit = 7; - -const int kHFSHasDateAddedMask = 128; - -const int kHFSHasFolderCountBit = 4; - -const int kHFSHasFolderCountMask = 16; - -const int kHFSHasLinkChainBit = 5; - -const int kHFSHasLinkChainMask = 32; - -const int kHFSHasSecurityBit = 3; - -const int kHFSHasSecurityMask = 8; - -const int kHFSJMountVersion = 1212568394; - -const int kHFSMDBAttributesMask = 33664; - -const int kHFSMaxAttrNameLen = 127; - -const int kHFSMaxFileNameChars = 31; - -const int kHFSMaxVolumeNameChars = 27; - -const int kHFSPlusAttrExtents = 48; - -const int kHFSPlusAttrForkData = 32; - -const int kHFSPlusAttrInlineData = 16; - -const int kHFSPlusAttrMinNodeSize = 4096; - -const int kHFSPlusCatalogKeyMaximumLength = 516; - -const int kHFSPlusCatalogKeyMinimumLength = 6; - -const int kHFSPlusCatalogMinNodeSize = 4096; - -const int kHFSPlusCreator = 1751544619; - -const int kHFSPlusExtentDensity = 8; - -const int kHFSPlusExtentKeyMaximumLength = 10; - -const int kHFSPlusExtentMinNodeSize = 512; - -const int kHFSPlusFileRecord = 2; - -const int kHFSPlusFileThreadRecord = 4; - -const int kHFSPlusFolderRecord = 1; - -const int kHFSPlusFolderThreadRecord = 3; - -const int kHFSPlusMaxFileNameChars = 255; - -const int kHFSPlusMountVersion = 825241136; - -const int kHFSPlusSigWord = 18475; - -const int kHFSPlusVersion = 4; - -const int kHFSRepairCatalogFileID = 14; - -const int kHFSRootFolderID = 2; - -const int kHFSRootParentID = 1; - -const int kHFSSigWord = 16964; - -const int kHFSStartupFileID = 7; - -const int kHFSThreadExistsBit = 1; - -const int kHFSThreadExistsMask = 2; - -const int kHFSUnusedNodeFixBit = 31; - -const int kHFSUnusedNodeFixMask = -2147483648; - -const int kHFSUnusedNodesFixDate = -974183296; - -const int kHFSUnusedNodesFixExpandedDate = 1237939200; - -const int kHFSVolumeHardwareLockBit = 7; - -const int kHFSVolumeHardwareLockMask = 128; - -const int kHFSVolumeInconsistentBit = 14; - -const int kHFSVolumeInconsistentMask = 16384; - -const int kHFSVolumeJournaledBit = 13; - -const int kHFSVolumeJournaledMask = 8192; - -const int kHFSVolumeNoCacheRequiredBit = 10; - -const int kHFSVolumeNoCacheRequiredMask = 1024; - -const int kHFSVolumeSoftwareLockBit = 15; - -const int kHFSVolumeSoftwareLockMask = 32768; - -const int kHFSVolumeSparedBlocksBit = 9; - -const int kHFSVolumeSparedBlocksMask = 512; - -const int kHFSVolumeUnmountedBit = 8; - -const int kHFSVolumeUnmountedMask = 256; - -const int kHFSXSigWord = 18520; - -const int kHFSXVersion = 5; - -const int kHIDBadLogPhysValuesErr = -13942; - -const int kHIDBadLogicalMaximumErr = -13933; - -const int kHIDBadLogicalMinimumErr = -13934; - -const int kHIDBadParameterErr = -13938; - -const int kHIDBaseError = -13950; - -const int kHIDBufferTooSmallErr = -13948; - -const int kHIDDeviceNotReady = -13910; - -const int kHIDEndOfDescriptorErr = -13936; - -const int kHIDIncompatibleReportErr = -13943; - -const int kHIDInvalidPreparsedDataErr = -13944; - -const int kHIDInvalidRangePageErr = -13923; - -const int kHIDInvalidReportLengthErr = -13940; - -const int kHIDInvalidReportTypeErr = -13941; - -const int kHIDInvertedLogicalRangeErr = -13932; - -const int kHIDInvertedPhysicalRangeErr = -13931; - -const int kHIDInvertedUsageRangeErr = -13929; - -const int kHIDNotEnoughMemoryErr = -13937; - -const int kHIDNotValueArrayErr = -13945; - -const int kHIDNullPointerErr = -13939; - -const int kHIDNullStateErr = -13949; - -const int kHIDReportCountZeroErr = -13925; - -const int kHIDReportIDZeroErr = -13924; - -const int kHIDReportSizeZeroErr = -13926; - -const int kHIDSuccess = 0; - -const int kHIDUnmatchedDesignatorRangeErr = -13927; - -const int kHIDUnmatchedStringRangeErr = -13928; - -const int kHIDUnmatchedUsageRangeErr = -13930; - -const int kHIDUsageNotFoundErr = -13946; - -const int kHIDUsagePageZeroErr = -13935; - -const int kHIDValueOutOfRangeErr = -13947; - -const int kHIDVersionIncompatibleErr = -13909; - -const int kHIShapeEnumerateInit = 1; - -const int kHIShapeEnumerateRect = 2; - -const int kHIShapeEnumerateTerminate = 3; - -const int kHIShapeParseFromBottom = 1; - -const int kHIShapeParseFromBottomRight = 3; - -const int kHIShapeParseFromLeft = 0; - -const int kHIShapeParseFromRight = 2; - -const int kHIShapeParseFromTop = 0; - -const int kHIShapeParseFromTopLeft = 0; - -const int kHTTPServerIcon = 1752461427; - -const int kHalfWidthCJKRomanSelector = 0; - -const int kHalfWidthIdeographsSelector = 2; - -const int kHalfWidthTextSelector = 2; - -@Deprecated('Deprecated') -const int kHandleIsResourceBit = 5; - -@Deprecated('Deprecated') -const int kHandleIsResourceMask = 32; - -@Deprecated('Deprecated') -const int kHandleLockedBit = 7; - -@Deprecated('Deprecated') -const int kHandleLockedMask = 128; - -@Deprecated('Deprecated') -const int kHandlePurgeableBit = 6; - -@Deprecated('Deprecated') -const int kHandlePurgeableMask = 64; - -const int kHanjaToHangulAltOneSelector = 7; - -const int kHanjaToHangulAltThreeSelector = 9; - -const int kHanjaToHangulAltTwoSelector = 8; - -const int kHanjaToHangulSelector = 1; - -const int kHardLinkFileType = 1751936619; - -const int kHardwareCursorDescriptorMajorVersion = 1; - -const int kHardwareCursorDescriptorMinorVersion = 0; - -const int kHardwareCursorInfoMajorVersion = 1; - -const int kHardwareCursorInfoMinorVersion = 0; - -const int kHasBeenInited = 256; - -const int kHasBundle = 8192; - -const int kHasCustomIcon = 1024; - -const int kHasNoINITs = 128; - -const int kHebrewFigureSpaceVariant = 1; - -const int kHebrewStandardVariant = 0; - -const int kHelpFolderIcon = -999789456; - -@Deprecated('Deprecated') -const int kHelpFolderType = -999789456; - -const int kHelpIcon = 1751477360; - -const int kHelpIconResource = -20271; - -const int kHideDiacriticsSelector = 1; - -const int kHiraganaToKatakanaSelector = 2; - -const int kHistoricalLigaturesOffSelector = 21; - -const int kHistoricalLigaturesOnSelector = 20; - -const int kHojoCharactersSelector = 12; - -const int kHorizontalConstraint = 2; - -const int kHuge1BitMask = 1768122403; - -const int kHuge32BitData = 1768436530; - -const int kHuge4BitData = 1768122420; - -const int kHuge8BitData = 1768122424; - -const int kHuge8BitMask = 1748528491; - -const int kHyphenToEnDashOffSelector = 3; - -const int kHyphenToEnDashOnSelector = 2; - -const int kHyphenToMinusOffSelector = 1; - -const int kHyphenToMinusOnSelector = 0; - -const int kHyphensToEmDashOffSelector = 1; - -const int kHyphensToEmDashOnSelector = 0; - -const int kICAttrLockedBit = 0; - -const int kICAttrLockedMask = 1; - -const int kICAttrNoChange = -1; - -const int kICAttrVolatileBit = 1; - -const int kICAttrVolatileMask = 2; - -const int kICComponentInterfaceVersion = 262144; - -const int kICComponentInterfaceVersion0 = 0; - -const int kICComponentInterfaceVersion1 = 65536; - -const int kICComponentInterfaceVersion2 = 131072; - -const int kICComponentInterfaceVersion3 = 196608; - -const int kICComponentInterfaceVersion4 = 262144; - -const int kICComponentVersion = 0; - -const int kICCreator = 1229144432; - -const int kICEditPreferenceEvent = 1229144432; - -const int kICEditPreferenceEventClass = 1229144432; - -const int kICFileSpecHeaderSize = 106; - -const int kICFileType = 1229144432; - -const int kICMapBinaryBit = 0; - -const int kICMapBinaryMask = 1; - -const int kICMapDataForkBit = 2; - -const int kICMapDataForkMask = 4; - -const int kICMapFixedLength = 22; - -const int kICMapNotIncomingBit = 4; - -const int kICMapNotIncomingMask = 16; - -const int kICMapNotOutgoingBit = 5; - -const int kICMapNotOutgoingMask = 32; - -const int kICMapPostBit = 3; - -const int kICMapPostMask = 8; - -const int kICMapResourceForkBit = 1; - -const int kICMapResourceForkMask = 2; - -const int kICNilProfileID = 0; - -const int kICNoUserInteractionBit = 0; - -const int kICNoUserInteractionMask = 1; - -const int kICNumVersion = 1; - -const int kICServicesTCPBit = 0; - -const int kICServicesTCPMask = 1; - -const int kICServicesUDPBit = 1; - -const int kICServicesUDPMask = 2; - -const int kIOAnalogSetupExpected = 2; - -const int kIOAnalogSignalLevel_0700_0000 = 3; - -const int kIOAnalogSignalLevel_0700_0300 = 0; - -const int kIOAnalogSignalLevel_0714_0286 = 1; - -const int kIOAnalogSignalLevel_1000_0400 = 2; - -const int kIOAsyncCalloutCount = 3; - -const int kIOAsyncCalloutFuncIndex = 1; - -const int kIOAsyncCalloutRefconIndex = 2; - -const int kIOAsyncCompletionNotificationType = 150; - -const int kIOAsyncReservedCount = 1; - -const int kIOAsyncReservedIndex = 0; - -const int kIOBitsPerColorComponent10 = 4; - -const int kIOBitsPerColorComponent12 = 8; - -const int kIOBitsPerColorComponent16 = 16; - -const int kIOBitsPerColorComponent6 = 1; - -const int kIOBitsPerColorComponent8 = 2; - -const int kIOBitsPerColorComponentNotSupported = 0; - -const int kIOBuiltinPanelPowerAttribute = 1886284912; - -const int kIOCLUTPixels = 0; - -const int kIOCSyncDisable = 4; - -const int kIOCapturedAttribute = 1667330148; - -const int kIOClamshellStateAttribute = 1668047213; - -const int kIOColorimetryAdobeRGB = 8; - -const int kIOColorimetryBT2020 = 256; - -const int kIOColorimetryBT2100 = 512; - -const int kIOColorimetryBT601 = 64; - -const int kIOColorimetryBT709 = 128; - -const int kIOColorimetryDCIP3 = 4; - -const int kIOColorimetryNativeRGB = 1; - -const int kIOColorimetryNotSupported = 0; - -const int kIOColorimetryWGRGB = 32; - -const int kIOColorimetrysRGB = 2; - -const int kIOColorimetryxvYCC = 16; - -const int kIOConnectMethodVarOutputSize = -3; - -const int kIOConnectionBuiltIn = 2048; - -const int kIOConnectionStereoSync = 32768; - -const int kIOCopybackCache = 3; - -const int kIOCopybackInnerCache = 5; - -const int kIOCursorControlAttribute = 1668445027; - -const int kIODPEventAutomatedTestRequest = 257; - -const int kIODPEventContentProtection = 258; - -const int kIODPEventForceRetrain = 3; - -const int kIODPEventIdle = 2; - -const int kIODPEventMCCS = 259; - -const int kIODPEventRemoteControlCommandPending = 256; - -const int kIODPEventSinkSpecific = 260; - -const int kIODPEventStart = 1; - -const int kIODSCBlockPredEnable = 32; - -const int kIODefaultCache = 0; - -const int kIODefaultMemoryType = 0; - -const int kIODeferCLUTSetAttribute = 1986227316; - -const int kIODetailedTimingValid = -2147483648; - -const int kIODigitalSignal = 1; - -const int kIODisplayAssertionConnectType = 61074; - -const int kIODisplayColorMode = 1668904310; - -const int kIODisplayDitherAll = 255; - -const int kIODisplayDitherDefault = 128; - -const int kIODisplayDitherDisable = 0; - -const int kIODisplayDitherFrameRateControl = 4; - -const int kIODisplayDitherRGBShift = 0; - -const int kIODisplayDitherSpatial = 1; - -const int kIODisplayDitherTemporal = 2; - -const int kIODisplayDitherYCbCr422Shift = 16; - -const int kIODisplayDitherYCbCr444Shift = 8; - -const int kIODisplayModeIDBootProgrammable = -5; - -const int kIODisplayModeIDReservedBase = -2147483648; - -const int kIODisplayNeedsCEAUnderscan = 1; - -const int kIODisplayPowerStateMinUsable = 1; - -const int kIODisplayPowerStateOff = 0; - -const int kIODisplayPowerStateOn = 2; - -const int kIODisplayRGBColorComponentBits10 = 4; - -const int kIODisplayRGBColorComponentBits12 = 8; - -const int kIODisplayRGBColorComponentBits14 = 16; - -const int kIODisplayRGBColorComponentBits16 = 32; - -const int kIODisplayRGBColorComponentBits6 = 1; - -const int kIODisplayRGBColorComponentBits8 = 2; - -const int kIODisplayRGBColorComponentBitsUnknown = 0; - -const int kIODisplayYCbCr422ColorComponentBits10 = 262144; - -const int kIODisplayYCbCr422ColorComponentBits12 = 524288; - -const int kIODisplayYCbCr422ColorComponentBits14 = 1048576; - -const int kIODisplayYCbCr422ColorComponentBits16 = 2097152; - -const int kIODisplayYCbCr422ColorComponentBits6 = 65536; - -const int kIODisplayYCbCr422ColorComponentBits8 = 131072; - -const int kIODisplayYCbCr422ColorComponentBitsUnknown = 0; - -const int kIODisplayYCbCr444ColorComponentBits10 = 1024; - -const int kIODisplayYCbCr444ColorComponentBits12 = 2048; - -const int kIODisplayYCbCr444ColorComponentBits14 = 4096; - -const int kIODisplayYCbCr444ColorComponentBits16 = 8192; - -const int kIODisplayYCbCr444ColorComponentBits6 = 256; - -const int kIODisplayYCbCr444ColorComponentBits8 = 512; - -const int kIODisplayYCbCr444ColorComponentBitsUnknown = 0; - -const int kIODriverPowerAttribute = 1685090167; - -const int kIODynamicRangeDolbyNormalMode = 4; - -const int kIODynamicRangeDolbyTunnelMode = 8; - -const int kIODynamicRangeHDR10 = 2; - -const int kIODynamicRangeNotSupported = 0; - -const int kIODynamicRangeSDR = 1; - -const int kIODynamicRangeTraditionalGammaHDR = 16; - -const int kIODynamicRangeTraditionalGammaSDR = 32; - -const int kIOFBAVSignalTypeDP = 16; - -const int kIOFBAVSignalTypeDVI = 2; - -const int kIOFBAVSignalTypeHDMI = 8; - -const int kIOFBAVSignalTypeUnknown = 0; - -const int kIOFBAVSignalTypeVGA = 1; - -const int kIOFBBitRateHBR = 10; - -const int kIOFBBitRateHBR2 = 20; - -const int kIOFBBitRateRBR = 6; - -const int kIOFBBlueGammaScaleAttribute = 1735617634; - -const int kIOFBChangedInterruptType = 1667788391; - -const int kIOFBConnectInterruptType = 1684236576; - -const int kIOFBDisplayPortInterruptType = 1685088626; - -const int kIOFBDisplayPortLinkChangeInterruptType = 1685089387; - -const int kIOFBDisplayPortTrainingAttribute = 1685091425; - -const int kIOFBDisplayState = 1685288052; - -const int kIOFBDisplayState_AlreadyActive = 1; - -const int kIOFBDisplayState_Mask = 7; - -const int kIOFBDisplayState_PipelineBlack = 4; - -const int kIOFBDisplayState_RestoredProfile = 2; - -const int kIOFBFrameInterruptType = 1718772077; - -const int kIOFBGreenGammaScaleAttribute = 1735617639; - -const int kIOFBHBLInterruptType = 1751280672; - -const int kIOFBHDCPLimit_AllowAll = 0; - -const int kIOFBHDCPLimit_NoHDCP1x = 1; - -const int kIOFBHDCPLimit_NoHDCP20Type0 = 2; - -const int kIOFBHDCPLimit_NoHDCP20Type1 = 4; - -const int kIOFBHDRMetaDataAttribute = 1751413357; - -const int kIOFBLimitHDCPAttribute = 1751409520; - -const int kIOFBLimitHDCPStateAttribute = 1934115907; - -const int kIOFBLinkDownspreadMax = 1; - -const int kIOFBLinkDownspreadNone = 0; - -const int kIOFBLinkPreEmphasisLevel0 = 0; - -const int kIOFBLinkPreEmphasisLevel1 = 1; - -const int kIOFBLinkPreEmphasisLevel2 = 2; - -const int kIOFBLinkPreEmphasisLevel3 = 3; - -const int kIOFBLinkScramblerAlternate = 1; - -const int kIOFBLinkScramblerNormal = 0; - -const int kIOFBLinkVoltageLevel0 = 0; - -const int kIOFBLinkVoltageLevel1 = 1; - -const int kIOFBLinkVoltageLevel2 = 2; - -const int kIOFBLinkVoltageLevel3 = 3; - -const int kIOFBMCCSInterruptType = 1835230067; - -const int kIOFBNS_Dim = 3; - -const int kIOFBNS_DisplayStateMask = 3840; - -const int kIOFBNS_DisplayStateShift = 8; - -const int kIOFBNS_Doze = 2; - -const int kIOFBNS_GenerationMask = 2147418112; - -const int kIOFBNS_GenerationShift = 16; - -const int kIOFBNS_MessageMask = 15; - -const int kIOFBNS_Rendezvous = -2023406815; - -const int kIOFBNS_Sleep = 0; - -const int kIOFBNS_UnDim = 4; - -const int kIOFBNS_Wake = 1; - -const int kIOFBOfflineInterruptType = 1919249782; - -const int kIOFBOnlineInterruptType = 1633969184; - -const int kIOFBRedGammaScaleAttribute = 1735617650; - -const int kIOFBServerConnectType = 0; - -const int kIOFBSharedConnectType = 1; - -const int kIOFBStop = 1937010544; - -const int kIOFBSystemAperture = 0; - -const int kIOFBUserRequestProbe = 1; - -const int kIOFBVBLInterruptType = 1986161696; - -const int kIOFBVariableRefreshRate = 1987211839; - -const int kIOFBWakeInterruptType = 1987535211; - -const int kIOFixedCLUTPixels = 1; - -const int kIOGDiagnoseConnectType = 38744; - -const int kIOGDiagnoseGTraceType = 11452; - -const int kIOHSyncDisable = 1; - -const int kIOHardwareCursorAttribute = 1668445042; - -const int kIOHibernatePreviewActive = 1; - -const int kIOHibernatePreviewUpdates = 2; - -const int kIOInhibitCache = 1; - -const int kIOInterestCalloutCount = 4; - -const int kIOInterestCalloutFuncIndex = 1; - -const int kIOInterestCalloutRefconIndex = 2; - -const int kIOInterestCalloutServiceIndex = 3; - -const int kIOInterlacedCEATiming = 4; - -const int kIOKitNoticationMsgSizeMask = 3; - -const int kIOKitNoticationTypeMask = 4095; - -const int kIOKitNoticationTypeSizeAdjShift = 30; - -const int kIOMapAnywhere = 1; - -const int kIOMapCacheMask = 3840; - -const int kIOMapCacheShift = 8; - -const int kIOMapCopybackCache = 768; - -const int kIOMapCopybackInnerCache = 1280; - -const int kIOMapDefaultCache = 0; - -const int kIOMapGuardedLarge = -2147483648; - -const int kIOMapGuardedMask = -1073741824; - -const int kIOMapGuardedSmall = 1073741824; - -const int kIOMapInhibitCache = 256; - -const int kIOMapOverwrite = 536870912; - -const int kIOMapPostedCombinedReordered = 2304; - -const int kIOMapPostedReordered = 2048; - -const int kIOMapPostedWrite = 1536; - -const int kIOMapPrefault = 268435456; - -const int kIOMapReadOnly = 4096; - -const int kIOMapRealTimeCache = 1792; - -const int kIOMapReference = 33554432; - -const int kIOMapStatic = 16777216; - -const int kIOMapUnique = 67108864; - -const int kIOMapUserOptionsMask = 4095; - -const int kIOMapWriteCombineCache = 1024; - -const int kIOMapWriteThruCache = 512; - -const int kIOMatchingCalloutCount = 3; - -const int kIOMatchingCalloutFuncIndex = 1; - -const int kIOMatchingCalloutRefconIndex = 2; - -const int kIOMaxBusStall10usec = 10000; - -const int kIOMaxBusStall20usec = 20000; - -const int kIOMaxBusStall25usec = 25000; - -const int kIOMaxBusStall30usec = 30000; - -const int kIOMaxBusStall40usec = 40000; - -const int kIOMaxBusStall5usec = 5000; - -const int kIOMaxBusStallNone = 0; - -const int kIOMaxPixelBits = 64; - -const int kIOMirrorAttribute = 1835627122; - -const int kIOMirrorDefault = 1; - -const int kIOMirrorDefaultAttribute = 1836213350; - -const int kIOMirrorForced = 2; - -const int kIOMirrorHWClipped = 1073741824; - -const int kIOMirrorIsMirrored = 536870912; - -const int kIOMirrorIsPrimary = -2147483648; - -const int kIOMonoDirectPixels = 3; - -const int kIOMonoInverseDirectPixels = 4; - -const int kIOMultiAlignedTiming = 64; - -const int kIONTSCTiming = 8; - -const int kIONoSeparateSyncControl = 64; - -const int kIOPALTiming = 16; - -const int kIOPixelEncodingNotSupported = 0; - -const int kIOPixelEncodingRGB444 = 1; - -const int kIOPixelEncodingYCbCr420 = 8; - -const int kIOPixelEncodingYCbCr422 = 4; - -const int kIOPixelEncodingYCbCr444 = 2; - -const int kIOPostedCombinedReordered = 9; - -const int kIOPostedReordered = 8; - -const int kIOPostedWrite = 6; - -const int kIOPowerAttribute = 1886353266; - -const int kIOPowerStateAttribute = 1886876275; - -const int kIORGBDirectPixels = 2; - -const int kIORGBSignedDirectPixels = 5; - -const int kIORGBSignedFloatingPointPixels = 6; - -const int kIORangeBitsPerColorComponent10 = 4; - -const int kIORangeBitsPerColorComponent12 = 8; - -const int kIORangeBitsPerColorComponent16 = 16; - -const int kIORangeBitsPerColorComponent6 = 1; - -const int kIORangeBitsPerColorComponent8 = 2; - -const int kIORangeBitsPerColorComponentNotSupported = 0; - -const int kIORangeColorimetryAdobeRGB = 8; - -const int kIORangeColorimetryBT2020 = 256; - -const int kIORangeColorimetryBT2100 = 512; - -const int kIORangeColorimetryBT601 = 64; - -const int kIORangeColorimetryBT709 = 128; - -const int kIORangeColorimetryDCIP3 = 4; - -const int kIORangeColorimetryNativeRGB = 1; - -const int kIORangeColorimetryNotSupported = 0; - -const int kIORangeColorimetryWGRGB = 32; - -const int kIORangeColorimetrysRGB = 2; - -const int kIORangeColorimetryxvYCC = 16; - -const int kIORangeDynamicRangeDolbyNormalMode = 4; - -const int kIORangeDynamicRangeDolbyTunnelMode = 8; - -const int kIORangeDynamicRangeHDR10 = 2; - -const int kIORangeDynamicRangeNotSupported = 0; - -const int kIORangeDynamicRangeSDR = 1; - -const int kIORangeDynamicRangeTraditionalGammaHDR = 16; - -const int kIORangeDynamicRangeTraditionalGammaSDR = 32; - -const int kIORangePixelEncodingNotSupported = 0; - -const int kIORangePixelEncodingRGB444 = 1; - -const int kIORangePixelEncodingYCbCr420 = 8; - -const int kIORangePixelEncodingYCbCr422 = 4; - -const int kIORangePixelEncodingYCbCr444 = 2; - -const int kIORangeSupportsCompositeSync = 4; - -const int kIORangeSupportsInterlacedCEATiming = 4; - -const int kIORangeSupportsInterlacedCEATimingWithConfirm = 8; - -const int kIORangeSupportsMultiAlignedTiming = 64; - -const int kIORangeSupportsSeparateSyncs = 1; - -const int kIORangeSupportsSignal_0700_0000 = 8; - -const int kIORangeSupportsSignal_0700_0300 = 1; - -const int kIORangeSupportsSignal_0714_0286 = 2; - -const int kIORangeSupportsSignal_1000_0400 = 4; - -const int kIORangeSupportsSyncOnGreen = 2; - -const int kIORangeSupportsVRR = 16; - -const int kIORangeSupportsVSyncSerration = 8; - -const int kIORealTimeCache = 7; - -const int kIORegistryIterateParents = 2; - -const int kIORegistryIterateRecursively = 1; - -const int kIOScaleCanBorderInsetOnly = 64; - -const int kIOScaleCanDownSamplePixels = 4; - -const int kIOScaleCanRotate = 32; - -const int kIOScaleCanScaleInterlaced = 8; - -const int kIOScaleCanSupportInset = 16; - -const int kIOScaleCanUpSamplePixels = 2; - -const int kIOScaleInvertX = 32; - -const int kIOScaleInvertY = 64; - -const int kIOScaleRotate0 = 0; - -const int kIOScaleRotate180 = 96; - -const int kIOScaleRotate270 = 80; - -const int kIOScaleRotate90 = 48; - -const int kIOScaleRotateFlags = 240; - -const int kIOScaleStretchOnly = 1; - -const int kIOScaleStretchToFit = 1; - -const int kIOScaleSwapAxes = 16; - -const int kIOScalingInfoValid = 1073741824; - -const int kIOServiceInteractionAllowed = 1; - -const int kIOServiceMatchedNotificationType = 101; - -const int kIOServiceMessageNotificationType = 160; - -const int kIOServicePublishNotificationType = 100; - -const int kIOServiceTerminatedNotificationType = 102; - -const int kIOSurfaceCopybackCache = 3; - -const int kIOSurfaceCopybackInnerCache = 5; - -const int kIOSurfaceDefaultCache = 0; - -const int kIOSurfaceInhibitCache = 1; - -const int kIOSurfaceMapCacheShift = 8; - -const int kIOSurfaceMapCopybackCache = 768; - -const int kIOSurfaceMapCopybackInnerCache = 1280; - -const int kIOSurfaceMapDefaultCache = 0; - -const int kIOSurfaceMapInhibitCache = 256; - -const int kIOSurfaceMapWriteCombineCache = 1024; - -const int kIOSurfaceMapWriteThruCache = 512; - -const int kIOSurfaceWriteCombineCache = 4; - -const int kIOSurfaceWriteThruCache = 2; - -const int kIOSyncOnBlue = 8; - -const int kIOSyncOnGreen = 16; - -const int kIOSyncOnRed = 32; - -const int kIOSyncPositivePolarity = 1; - -const int kIOSystemPowerAttribute = 1936750450; - -const int kIOSystemStateSleepDescriptionHibernateStateHibernating = 1; - -const int kIOSystemStateSleepDescriptionHibernateStateInactive = 0; - -const int kIOSystemStateSleepDescriptionHibernateStateWakingFromHibernate = 2; - -const int kIOTimingIDAppleNTSC_FF = 232; - -const int kIOTimingIDAppleNTSC_FFconv = 236; - -const int kIOTimingIDAppleNTSC_ST = 230; - -const int kIOTimingIDAppleNTSC_STconv = 234; - -const int kIOTimingIDApplePAL_FF = 240; - -const int kIOTimingIDApplePAL_FFconv = 244; - -const int kIOTimingIDApplePAL_ST = 238; - -const int kIOTimingIDApplePAL_STconv = 242; - -const int kIOTimingIDApple_0x0_0hz_Offline = 550; - -const int kIOTimingIDApple_1024x768_75hz = 210; - -const int kIOTimingIDApple_1152x870_75hz = 220; - -const int kIOTimingIDApple_512x384_60hz = 130; - -const int kIOTimingIDApple_560x384_60hz = 135; - -const int kIOTimingIDApple_640x400_67hz = 145; - -const int kIOTimingIDApple_640x480_67hz = 140; - -const int kIOTimingIDApple_640x818_75hz = 165; - -const int kIOTimingIDApple_640x870_75hz = 160; - -const int kIOTimingIDApple_832x624_75hz = 170; - -const int kIOTimingIDApple_FixedRateLCD = 42; - -const int kIOTimingIDFilmRate_48hz = 410; - -const int kIOTimingIDGTF_640x480_120hz = 159; - -const int kIOTimingIDInvalid = 0; - -const int kIOTimingIDSMPTE240M_60hz = 400; - -const int kIOTimingIDSony_1600x1024_76hz = 500; - -const int kIOTimingIDSony_1920x1080_60hz = 510; - -const int kIOTimingIDSony_1920x1080_72hz = 520; - -const int kIOTimingIDSony_1920x1200_76hz = 540; - -const int kIOTimingIDVESA_1024x768_60hz = 190; - -const int kIOTimingIDVESA_1024x768_70hz = 200; - -const int kIOTimingIDVESA_1024x768_75hz = 204; - -const int kIOTimingIDVESA_1024x768_85hz = 208; - -const int kIOTimingIDVESA_1152x864_75hz = 215; - -const int kIOTimingIDVESA_1280x1024_60hz = 260; - -const int kIOTimingIDVESA_1280x1024_75hz = 262; - -const int kIOTimingIDVESA_1280x1024_85hz = 268; - -const int kIOTimingIDVESA_1280x960_60hz = 252; - -const int kIOTimingIDVESA_1280x960_75hz = 250; - -const int kIOTimingIDVESA_1280x960_85hz = 254; - -const int kIOTimingIDVESA_1360x768_60hz = 590; - -const int kIOTimingIDVESA_1600x1200_60hz = 280; - -const int kIOTimingIDVESA_1600x1200_65hz = 282; - -const int kIOTimingIDVESA_1600x1200_70hz = 284; - -const int kIOTimingIDVESA_1600x1200_75hz = 286; - -const int kIOTimingIDVESA_1600x1200_80hz = 288; - -const int kIOTimingIDVESA_1600x1200_85hz = 289; - -const int kIOTimingIDVESA_1792x1344_60hz = 296; - -const int kIOTimingIDVESA_1792x1344_75hz = 298; - -const int kIOTimingIDVESA_1856x1392_60hz = 300; - -const int kIOTimingIDVESA_1856x1392_75hz = 302; - -const int kIOTimingIDVESA_1920x1440_60hz = 304; - -const int kIOTimingIDVESA_1920x1440_75hz = 306; - -const int kIOTimingIDVESA_640x480_60hz = 150; - -const int kIOTimingIDVESA_640x480_72hz = 152; - -const int kIOTimingIDVESA_640x480_75hz = 154; - -const int kIOTimingIDVESA_640x480_85hz = 158; - -const int kIOTimingIDVESA_800x600_56hz = 180; - -const int kIOTimingIDVESA_800x600_60hz = 182; - -const int kIOTimingIDVESA_800x600_72hz = 184; - -const int kIOTimingIDVESA_800x600_75hz = 186; - -const int kIOTimingIDVESA_800x600_85hz = 188; - -const int kIOTimingIDVESA_848x480_60hz = 570; - -const int kIOTimingRangeV1 = 0; - -const int kIOTimingRangeV2 = 2; - -const int kIOTriStateSyncs = 128; - -const int kIOVRAMSaveAttribute = 1987212150; - -const int kIOVSyncDisable = 2; - -const int kIOWSAA_Accelerated = 1; - -const int kIOWSAA_DeferEnd = 512; - -const int kIOWSAA_DeferStart = 256; - -const int kIOWSAA_DriverOpen = 5; - -const int kIOWSAA_From_Accelerated = 2; - -const int kIOWSAA_Hibernate = 4; - -const int kIOWSAA_NonConsoleDevice = 1024; - -const int kIOWSAA_Reserved = -268435456; - -const int kIOWSAA_Sleep = 4; - -const int kIOWSAA_StateMask = 15; - -const int kIOWSAA_To_Accelerated = 3; - -const int kIOWSAA_Transactional = 16; - -const int kIOWSAA_Unaccelerated = 0; - -const int kIOWindowServerActiveAttribute = 2004054646; - -const int kIOWriteCombineCache = 4; - -const int kIOWriteThruCache = 2; - -const int kIPFileServerIcon = 1769173622; - -const int kISOLatin1MusicCDVariant = 1; - -const int kISOLatin1StandardVariant = 0; - -const int kISOLatinArabicExplicitOrderVariant = 2; - -const int kISOLatinArabicImplicitOrderVariant = 0; - -const int kISOLatinArabicVisualOrderVariant = 1; - -const int kISOLatinHebrewExplicitOrderVariant = 2; - -const int kISOLatinHebrewImplicitOrderVariant = 0; - -const int kISOLatinHebrewVisualOrderVariant = 1; - -@Deprecated('Deprecated') -const int kISSDownloadsFolderType = 1769173860; - -const int kISpBufferToSmallErr = -30422; - -const int kISpDeviceActiveErr = -30428; - -const int kISpDeviceInactiveErr = -30426; - -const int kISpElementInListErr = -30423; - -const int kISpElementNotInListErr = -30424; - -const int kISpInternalErr = -30420; - -const int kISpListBusyErr = -30429; - -const int kISpSystemActiveErr = -30427; - -const int kISpSystemInactiveErr = -30425; - -const int kISpSystemListErr = -30421; - -const int kIconFamilyType = 1768124019; - -const int kIconServices1024PixelDataARGB = 1768108336; - -const int kIconServices128PixelDataARGB = 1768108087; - -const int kIconServices16PixelDataARGB = 1768108084; - -const int kIconServices256PixelDataARGB = 1768108088; - -const int kIconServices32PixelDataARGB = 1768108085; - -const int kIconServices48PixelDataARGB = 1768108086; - -const int kIconServices512PixelDataARGB = 1768108089; - -const int kIconServicesCatalogInfoMask = 531550; - -const int kIconServicesNoBadgeFlag = 1; - -const int kIconServicesNormalUsageFlag = 0; - -const int kIconServicesUpdateIfNeededFlag = 2; - -const int kIdeographicAltFiveSelector = 5; - -const int kIdeographicAltFourSelector = 4; - -const int kIdeographicAltOneSelector = 1; - -const int kIdeographicAltThreeSelector = 3; - -const int kIdeographicAltTwoSelector = 2; - -const int kIdeographicAlternativesType = 30; - -const int kIdeographicSpacingType = 26; - -const int kIdleKCEvent = 0; - -const int kIdleKCEventMask = 1; - -const int kIllegalClockValueErr = -8852; - -@Deprecated('Deprecated') -const int kIllegalInstructionException = 1; - -const int kIlluminatedCapsSelector = 3; - -const int kImmediate = 0; - -@Deprecated('Deprecated') -const int kInDeferredTaskMask = 32; - -@Deprecated('Deprecated') -const int kInNestedInterruptMask = 128; - -@Deprecated('Deprecated') -const int kInSecondaryIntHandlerMask = 64; - -const int kInUseErr = -9077; - -@Deprecated('Deprecated') -const int kInVBLTaskMask = 16; - -@Deprecated('Deprecated') -const int kIndexFilesFolderType = 1768842360; - -const int kInequalityLigaturesOffSelector = 7; - -const int kInequalityLigaturesOnSelector = 6; - -const int kInferiorsSelector = 2; - -const int kInitialCapsAndSmallCapsSelector = 5; - -const int kInitialCapsSelector = 4; - -@Deprecated('Deprecated') -const int kInputManagersFolderType = 1768845428; - -@Deprecated('Deprecated') -const int kInputMethodsFolderType = 1768845414; - -@Deprecated('Deprecated') -const int kInstallerLogsFolderType = 1768712038; - -@Deprecated('Deprecated') -const int kInstallerReceiptsFolderType = 1919119476; - -@Deprecated('Deprecated') -const int kInstructionBreakpointException = 10; - -@Deprecated('Deprecated') -const int kIntegerException = 12; - -const int kInternationResourcesIcon = 1768319340; - -const int kInternationalResourcesIcon = 1768319340; - -const int kInternationalSymbolsSelector = 5; - -const int kInternetEventClass = 1196773964; - -const int kInternetFolderIcon = 1768846532; - -@Deprecated('Deprecated') -const int kInternetFolderType = 1768846532; - -const int kInternetLocationAFP = 1768710502; - -const int kInternetLocationAppleShareIcon = 1768710502; - -const int kInternetLocationAppleTalk = 1768710516; - -const int kInternetLocationAppleTalkZoneIcon = 1768710516; - -const int kInternetLocationCreator = 1685217639; - -const int kInternetLocationFTP = 1768711796; - -const int kInternetLocationFTPIcon = 1768711796; - -const int kInternetLocationFile = 1768711785; - -const int kInternetLocationFileIcon = 1768711785; - -const int kInternetLocationGeneric = 1768712037; - -const int kInternetLocationGenericIcon = 1768712037; - -const int kInternetLocationHTTP = 1768712308; - -const int kInternetLocationHTTPIcon = 1768712308; - -const int kInternetLocationMail = 1768713569; - -const int kInternetLocationMailIcon = 1768713569; - -const int kInternetLocationNNTP = 1768713847; - -const int kInternetLocationNSL = 1768713843; - -const int kInternetLocationNSLNeighborhoodIcon = 1768713843; - -const int kInternetLocationNewsIcon = 1768713847; - -const int kInternetPasswordKCItemClass = 1768842612; - -const int kInternetPlugInFolderIcon = -999398028; - -@Deprecated('Deprecated') -const int kInternetPlugInFolderType = -999398028; - -const int kInternetSearchSitesFolderIcon = 1769173862; - -@Deprecated('Deprecated') -const int kInternetSearchSitesFolderType = 1769173862; - -@Deprecated('Deprecated') -const int kInternetSitesFolderType = 1936290917; - -const int kInvalidCSClientErr = -9091; - -const int kInvalidDeviceNumber = -9089; - -const int kInvalidFont = 0; - -const int kInvalidFontFamily = -1; - -const int kInvalidGeneration = 0; - -const int kInvalidRegEntryErr = -9081; - -const int kInvertHighlighting = 0; - -const int kInvertedBoxAnnotationSelector = 9; - -const int kInvertedCircleAnnotationSelector = 4; - -const int kInvertedRoundedBoxAnnotationSelector = 10; - -const int kInvertingEncodedPixel = 4; - -const int kInvertingEncoding = 1; - -const int kInvertingEncodingShift = 2; - -const int kInvisibleKCItemAttr = 1768846953; - -const int kIsAlias = 32768; - -const int kIsInvisible = 16384; - -const int kIsOnDesk = 1; - -const int kIsShared = 64; - -const int kIsStationery = 2048; - -const int kIssuerKCItemAttr = 1769173877; - -const int kIssuerURLKCItemAttr = 1769304684; - -const int kItalicCJKRomanType = 32; - -const int kItemList = 1718383476; - -const int kJIJournalInFSMask = 1; - -const int kJIJournalNeedInitMask = 4; - -const int kJIJournalOnOtherDeviceMask = 2; - -const int kJIS1978CharactersSelector = 2; - -const int kJIS1983CharactersSelector = 3; - -const int kJIS1990CharactersSelector = 4; - -const int kJIS2004CharactersSelector = 11; - -const int kJUSTCurrentVersion = 65536; - -const int kJUSTKashidaPriority = 0; - -const int kJUSTLetterPriority = 2; - -const int kJUSTNullPriority = 3; - -const int kJUSTOverrideLimits = 16384; - -const int kJUSTOverridePriority = 32768; - -const int kJUSTOverrideUnlimited = 8192; - -const int kJUSTPriorityCount = 4; - -const int kJUSTPriorityMask = 3; - -const int kJUSTSpacePriority = 1; - -const int kJUSTStandardFormat = 0; - -const int kJUSTTag = 1786082164; - -const int kJUSTUnlimited = 4096; - -const int kJUSTnoGlyphcode = 65535; - -const int kJUSTpcConditionalAddAction = 2; - -const int kJUSTpcDecompositionAction = 0; - -const int kJUSTpcDuctilityAction = 4; - -const int kJUSTpcGlyphRepeatAddAction = 5; - -const int kJUSTpcGlyphStretchAction = 3; - -const int kJUSTpcUnconditionalAddAction = 1; - -const int kJapaneseBasicVariant = 2; - -const int kJapanesePostScriptPrintVariant = 4; - -const int kJapanesePostScriptScrnVariant = 3; - -const int kJapaneseStandardVariant = 0; - -const int kJapaneseStdNoVerticalsVariant = 1; - -const int kJapaneseVertAtKuPlusTenVariant = 5; - -const int kKCAuthTypeDPA = 1685086561; - -const int kKCAuthTypeDefault = 1684434036; - -const int kKCAuthTypeHTTPDigest = 1752462436; - -const int kKCAuthTypeMSN = 1836281441; - -const int kKCAuthTypeNTLM = 1853123693; - -const int kKCAuthTypeRPA = 1919967585; - -const int kKCProtocolTypeAFP = 1634103328; - -const int kKCProtocolTypeAppleTalk = 1635019883; - -const int kKCProtocolTypeFTP = 1718906912; - -const int kKCProtocolTypeFTPAccount = 1718906977; - -const int kKCProtocolTypeHTTP = 1752462448; - -const int kKCProtocolTypeIMAP = 1768776048; - -const int kKCProtocolTypeIRC = 1769104160; - -const int kKCProtocolTypeLDAP = 1818517872; - -const int kKCProtocolTypeNNTP = 1852732528; - -const int kKCProtocolTypePOP3 = 1886351411; - -const int kKCProtocolTypeSMTP = 1936553072; - -const int kKCProtocolTypeSOCKS = 1936685088; - -const int kKCProtocolTypeTelnet = 1952803950; - -const int kKERNCrossStream = 16384; - -const int kKERNCrossStreamResetNote = 2; - -const int kKERNCurrentVersion = 65536; - -const int kKERNFormatMask = 255; - -const int kKERNIndexArray = 3; - -const int kKERNLineEndKerning = 2; - -const int kKERNLineStart = 1; - -const int kKERNNoCrossKerning = 4; - -const int kKERNNoStakeNote = 1; - -const int kKERNNotApplied = 1; - -const int kKERNNotesRequested = 8; - -const int kKERNOrderedList = 0; - -const int kKERNResetCrossStream = 32768; - -const int kKERNSimpleArray = 2; - -const int kKERNStateTable = 1; - -const int kKERNTag = 1801810542; - -const int kKERNUnusedBits = 7936; - -const int kKERNVariation = 8192; - -const int kKERNVertical = 32768; - -const int kKERXActionOffsetMask = 16777215; - -const int kKERXActionTypeAnchorPoints = 1073741824; - -const int kKERXActionTypeControlPoints = 0; - -const int kKERXActionTypeCoordinates = -2147483648; - -const int kKERXActionTypeMask = -1073741824; - -const int kKERXControlPoint = 4; - -const int kKERXCrossStream = 1073741824; - -const int kKERXCrossStreamResetNote = 2; - -const int kKERXCurrentVersion = 131072; - -const int kKERXDescending = 268435456; - -const int kKERXFormatMask = 255; - -const int kKERXIndexArray = 6; - -const int kKERXLineEndKerning = 2; - -const int kKERXLineStart = 1; - -const int kKERXNoCrossKerning = 4; - -const int kKERXNoStakeNote = 1; - -const int kKERXNotApplied = 1; - -const int kKERXNotesRequested = 8; - -const int kKERXOrderedList = 0; - -const int kKERXResetCrossStream = 32768; - -const int kKERXSimpleArray = 2; - -const int kKERXStateTable = 1; - -const int kKERXTag = 1801810552; - -const int kKERXUnusedBits = 268435200; - -const int kKERXUnusedFlags = 1056964608; - -const int kKERXValuesAreLong = 1; - -const int kKERXVariation = 536870912; - -const int kKERXVertical = -2147483648; - -const int kKanaSpacingType = 25; - -const int kKanaToRomanizationSelector = 4; - -const int kKatakanaToHiraganaSelector = 3; - -const int kKeepArrangedIcon = 1634889319; - -@Deprecated('Deprecated') -const int kKernelExtensionsFolderType = 1801812084; - -const int kKeyboardLayoutIcon = 1801873772; - -@Deprecated('Deprecated') -const int kKeyboardLayoutsFolderType = 1802264953; - -@Deprecated('Deprecated') -const int kKeychainFolderType = 1801676910; - -const int kKeychainListChangedKCEvent = 11; - -const int kLCARCtlPointFormat = 1; - -const int kLCARCurrentVersion = 65536; - -const int kLCARLinearFormat = 0; - -const int kLCARTag = 1818452338; - -const int kLSAppDoesNotClaimTypeErr = -10820; - -const int kLSAppDoesNotSupportSchemeWarning = -10821; - -const int kLSAppInTrashErr = -10660; - -const int kLSApplicationNotFoundErr = -10814; - -const int kLSAttributeNotFoundErr = -10662; - -const int kLSAttributeNotSettableErr = -10663; - -const int kLSCannotSetInfoErr = -10823; - -const int kLSDataErr = -10817; - -const int kLSDataTooOldErr = -10816; - -const int kLSDataUnavailableErr = -10813; - -const int kLSExecutableIncorrectFormat = -10661; - -const int kLSGarbageCollectionUnsupportedErr = -10666; - -const int kLSIncompatibleApplicationVersionErr = -10664; - -const int kLSIncompatibleSystemVersionErr = -10825; - -@Deprecated('This option does nothing.') -const int kLSLaunchHasUntrustedContents = 4194304; - -@Deprecated('The Classic environment is no longer supported.') -const int kLSLaunchInClassic = 262144; - -const int kLSLaunchInProgressErr = -10818; - -@Deprecated('This option does nothing.') -const int kLSLaunchInhibitBGOnly = 128; - -@Deprecated('This option does nothing.') -const int kLSLaunchNoParams = 2048; - -@Deprecated('The Classic environment is no longer supported.') -const int kLSLaunchStartClassic = 131072; - -const int kLSMalformedLocErr = -10400; - -const int kLSMultipleSessionsNotSupportedErr = -10829; - -const int kLSNo32BitEnvironmentErr = -10386; - -const int kLSNoClassicEnvironmentErr = -10828; - -const int kLSNoExecutableErr = -10827; - -const int kLSNoLaunchPermissionErr = -10826; - -const int kLSNoRegistrationInfoErr = -10824; - -const int kLSNoRosettaEnvironmentErr = -10665; - -const int kLSNotAnApplicationErr = -10811; - -const int kLSNotInitializedErr = -10812; - -const int kLSNotRegisteredErr = -10819; - -const int kLSServerCommunicationErr = -10822; - -const int kLSSharedFileListDoNotMountVolumes = 2; - -const int kLSSharedFileListNoUserInteraction = 1; - -const int kLSUnknownCreator = 0; - -const int kLSUnknownErr = -10810; - -const int kLSUnknownType = 0; - -const int kLSUnknownTypeErr = -10815; - -const int kLTAGCurrentVersion = 1; - -const int kLabelKCItemAttr = 1818321516; - -const int kLanguageTagType = 39; - -const int kLarge1BitMask = 1229147683; - -const int kLarge32BitData = 1768698674; - -const int kLarge4BitData = 1768123444; - -const int kLarge4BitIconSize = 512; - -const int kLarge8BitData = 1768123448; - -const int kLarge8BitIconSize = 1024; - -const int kLarge8BitMask = 1815637355; - -const int kLargeIconSize = 256; - -@Deprecated('Deprecated') -const int kLastDomainConstant = -32760; - -const int kLastFeatureType = -1; - -const int kLastIOKitNotificationType = 199; - -const int kLastMagicBusyFiletype = 1652193599; - -const int kLaunchToGetTerminology = 32768; - -@Deprecated('Deprecated') -const int kLauncherItemsFolderType = 1818326382; - -const int kLetterCaseType = 3; - -@Deprecated('Deprecated') -const int kLibraryAssistantsFolderType = 1634956396; - -const int kLigaturesType = 1; - -const int kLineFinalSwashesOffSelector = 7; - -const int kLineFinalSwashesOnSelector = 6; - -const int kLineInitialSwashesOffSelector = 5; - -const int kLineInitialSwashesOnSelector = 4; - -const int kLinearPCMFormatFlagIsAlignedHigh = 16; - -const int kLinearPCMFormatFlagIsBigEndian = 2; - -const int kLinearPCMFormatFlagIsFloat = 1; - -const int kLinearPCMFormatFlagIsNonInterleaved = 32; - -const int kLinearPCMFormatFlagIsNonMixable = 64; - -const int kLinearPCMFormatFlagIsPacked = 8; - -const int kLinearPCMFormatFlagIsSignedInteger = 4; - -const int kLinearPCMFormatFlagsAreAllClear = -2147483648; - -const int kLinearPCMFormatFlagsSampleFractionMask = 8064; - -const int kLinearPCMFormatFlagsSampleFractionShift = 7; - -const int kLinguisticRearrangementOffSelector = 1; - -const int kLinguisticRearrangementOnSelector = 0; - -const int kLinguisticRearrangementType = 5; - -@Deprecated('Deprecated') -const int kLocalDomain = -32765; - -const int kLocalPPDDomain = 3; - -const int kLocaleAllPartsMask = 63; - -const int kLocaleAndVariantNameMask = 3; - -const int kLocaleLanguageMask = 1; - -const int kLocaleLanguageVariantMask = 2; - -const int kLocaleNameMask = 1; - -const int kLocaleOperationVariantNameMask = 2; - -const int kLocaleRegionMask = 16; - -const int kLocaleRegionVariantMask = 32; - -const int kLocaleScriptMask = 4; - -const int kLocaleScriptVariantMask = 8; - -const int kLocalesBufferTooSmallErr = -30001; - -const int kLocalesDefaultDisplayStatus = -30029; - -const int kLocalesFolderIcon = -999526557; - -@Deprecated('Deprecated') -const int kLocalesFolderType = -999526557; - -const int kLocalesTableFormatErr = -30002; - -const int kLockKCEvent = 1; - -const int kLockKCEventMask = 2; - -const int kLockedBadgeIcon = 1818387559; - -const int kLockedIcon = 1819239275; - -const int kLogosOffSelector = 7; - -const int kLogosOnSelector = 6; - -const int kLogsFolderType = 1819240307; - -const int kLowerCaseNumbersSelector = 0; - -const int kLowerCasePetiteCapsSelector = 2; - -const int kLowerCaseSmallCapsSelector = 1; - -const int kLowerCaseType = 37; - -@Deprecated('Deprecated') -const int kM68kISA = 0; - -@Deprecated('Deprecated') -const int kMIDIDriversFolderType = 1835623529; - -const int kMORTContextualType = 1; - -const int kMORTCoverDescending = 16384; - -const int kMORTCoverIgnoreVertical = 8192; - -const int kMORTCoverTypeMask = 15; - -const int kMORTCoverVertical = 32768; - -const int kMORTCurrInsertBefore = 2048; - -const int kMORTCurrInsertCountMask = 992; - -const int kMORTCurrInsertCountShift = 5; - -const int kMORTCurrInsertKashidaLike = 8192; - -const int kMORTCurrJustTableCountMask = 127; - -const int kMORTCurrJustTableCountShift = 0; - -const int kMORTCurrentVersion = 65536; - -const int kMORTDoInsertionsBefore = 128; - -const int kMORTInsertionType = 5; - -const int kMORTInsertionsCountMask = 63; - -const int kMORTIsSplitVowelPiece = 64; - -const int kMORTLigFormOffsetMask = 1073741823; - -const int kMORTLigFormOffsetShift = 2; - -const int kMORTLigLastAction = -2147483648; - -const int kMORTLigStoreLigature = 1073741824; - -const int kMORTLigatureType = 2; - -const int kMORTMarkInsertBefore = 1024; - -const int kMORTMarkInsertCountMask = 31; - -const int kMORTMarkInsertCountShift = 0; - -const int kMORTMarkInsertKashidaLike = 4096; - -const int kMORTMarkJustTableCountMask = 16256; - -const int kMORTMarkJustTableCountShift = 7; - -const int kMORTRearrangementType = 0; - -const int kMORTSwashType = 4; - -const int kMORTTag = 1836020340; - -const int kMORTraCDx = 6; - -const int kMORTraCDxA = 8; - -const int kMORTraCDxAB = 12; - -const int kMORTraCDxBA = 13; - -const int kMORTraDCx = 7; - -const int kMORTraDCxA = 9; - -const int kMORTraDCxAB = 14; - -const int kMORTraDCxBA = 15; - -const int kMORTraDx = 2; - -const int kMORTraDxA = 3; - -const int kMORTraDxAB = 10; - -const int kMORTraDxBA = 11; - -const int kMORTraNoAction = 0; - -const int kMORTraxA = 1; - -const int kMORTraxAB = 4; - -const int kMORTraxBA = 5; - -const int kMORXCoverDescending = 1073741824; - -const int kMORXCoverIgnoreVertical = 536870912; - -const int kMORXCoverLogicalOrder = 268435456; - -const int kMORXCoverTypeMask = 255; - -const int kMORXCoverVertical = -2147483648; - -const int kMORXCurrentVersion = 131072; - -const int kMORXTag = 1836020344; - -@Deprecated('Deprecated') -const int kMPAddressSpaceInfoVersion = 524289; - -@Deprecated('Deprecated') -const int kMPAllocate1024ByteAligned = 10; - -@Deprecated('Deprecated') -const int kMPAllocate16ByteAligned = 4; - -@Deprecated('Deprecated') -const int kMPAllocate32ByteAligned = 5; - -@Deprecated('Deprecated') -const int kMPAllocate4096ByteAligned = 12; - -@Deprecated('Deprecated') -const int kMPAllocate8ByteAligned = 3; - -@Deprecated('Deprecated') -const int kMPAllocateAltiVecAligned = 4; - -@Deprecated('Deprecated') -const int kMPAllocateClearMask = 1; - -@Deprecated('Deprecated') -const int kMPAllocateDefaultAligned = 0; - -@Deprecated('Deprecated') -const int kMPAllocateGloballyMask = 2; - -@Deprecated('Deprecated') -const int kMPAllocateInterlockAligned = 255; - -@Deprecated('Deprecated') -const int kMPAllocateMaxAlignment = 16; - -@Deprecated('Deprecated') -const int kMPAllocateNoCreateMask = 32; - -@Deprecated('Deprecated') -const int kMPAllocateNoGrowthMask = 16; - -@Deprecated('Deprecated') -const int kMPAllocateResidentMask = 4; - -@Deprecated('Deprecated') -const int kMPAllocateVMPageAligned = 254; - -@Deprecated('Deprecated') -const int kMPAllocateVMXAligned = 4; - -@Deprecated('Deprecated') -const int kMPAnyRemoteContext = 0; - -@Deprecated('Deprecated') -const int kMPAsyncInterruptRemoteContext = 3; - -const int kMPBlueBlockingErr = -29293; - -@Deprecated('Deprecated') -const int kMPCreateTaskNotDebuggableMask = 4; - -@Deprecated('Deprecated') -const int kMPCreateTaskSuspendedMask = 1; - -@Deprecated('Deprecated') -const int kMPCreateTaskTakesAllExceptionsMask = 2; - -@Deprecated('Deprecated') -const int kMPCreateTaskValidOptionsMask = 7; - -@Deprecated('Deprecated') -const int kMPCriticalRegionInfoVersion = 393217; - -const int kMPDeletedErr = -29295; - -@Deprecated('Deprecated') -const int kMPEventInfoVersion = 589825; - -@Deprecated('Deprecated') -const int kMPHighLevelDebugger = 536870912; - -const int kMPInsufficientResourcesErr = -29298; - -@Deprecated('Deprecated') -const int kMPInterruptRemoteContext = 2; - -const int kMPInvalidIDErr = -29299; - -const int kMPIterationEndErr = -29275; - -@Deprecated('Deprecated') -const int kMPLowLevelDebugger = 0; - -@Deprecated('Deprecated') -const int kMPMaxAllocSize = 1073741824; - -@Deprecated('Deprecated') -const int kMPMidLevelDebugger = 268435456; - -const int kMPNanokernelNeedsMemoryErr = -29294; - -@Deprecated('Deprecated') -const int kMPNoID = 0; - -@Deprecated('Deprecated') -const int kMPNotificationInfoVersion = 786433; - -@Deprecated('Deprecated') -const int kMPOwningProcessRemoteContext = 1; - -@Deprecated('Deprecated') -const int kMPPreserveTimerIDMask = 1; - -const int kMPPrivilegedErr = -29276; - -const int kMPProcessCreatedErr = -29288; - -const int kMPProcessTerminatedErr = -29289; - -@Deprecated('Deprecated') -const int kMPQueueInfoVersion = 262145; - -@Deprecated('Deprecated') -const int kMPSemaphoreInfoVersion = 327681; - -const int kMPTaskAbortedErr = -29297; - -@Deprecated('Deprecated') -const int kMPTaskBlocked = 0; - -const int kMPTaskBlockedErr = -29291; - -const int kMPTaskCreatedErr = -29290; - -@Deprecated('Deprecated') -const int kMPTaskInfoVersion = 3; - -@Deprecated('Deprecated') -const int kMPTaskPropagate = 0; - -@Deprecated('Deprecated') -const int kMPTaskPropagateMask = 1; - -@Deprecated('Deprecated') -const int kMPTaskReady = 1; - -@Deprecated('Deprecated') -const int kMPTaskResumeBranch = 2; - -@Deprecated('Deprecated') -const int kMPTaskResumeBranchMask = 4; - -@Deprecated('Deprecated') -const int kMPTaskResumeMask = 0; - -@Deprecated('Deprecated') -const int kMPTaskResumeStep = 1; - -@Deprecated('Deprecated') -const int kMPTaskResumeStepMask = 2; - -@Deprecated('Deprecated') -const int kMPTaskRunning = 2; - -@Deprecated('Deprecated') -const int kMPTaskState32BitMemoryException = 4; - -@Deprecated('Deprecated') -const int kMPTaskStateFPU = 1; - -@Deprecated('Deprecated') -const int kMPTaskStateMachine = 3; - -@Deprecated('Deprecated') -const int kMPTaskStateRegisters = 0; - -@Deprecated('Deprecated') -const int kMPTaskStateTaskInfo = 5; - -@Deprecated('Deprecated') -const int kMPTaskStateVectors = 2; - -const int kMPTaskStoppedErr = -29292; - -@Deprecated('Deprecated') -const int kMPTimeIsDeltaMask = 2; - -@Deprecated('Deprecated') -const int kMPTimeIsDurationMask = 4; - -const int kMPTimeoutErr = -29296; - -const int kMacArabicAlBayanVariant = 3; - -const int kMacArabicStandardVariant = 0; - -const int kMacArabicThuluthVariant = 2; - -const int kMacArabicTrueTypeVariant = 1; - -const int kMacCroatianCurrencySignVariant = 1; - -const int kMacCroatianDefaultVariant = 0; - -const int kMacCroatianEuroSignVariant = 2; - -const int kMacCyrillicCurrSignStdVariant = 1; - -const int kMacCyrillicCurrSignUkrVariant = 2; - -const int kMacCyrillicDefaultVariant = 0; - -const int kMacCyrillicEuroSignVariant = 3; - -const int kMacFarsiStandardVariant = 0; - -const int kMacFarsiTrueTypeVariant = 1; - -const int kMacGreekDefaultVariant = 0; - -const int kMacGreekEuroSignVariant = 2; - -const int kMacGreekNoEuroSignVariant = 1; - -const int kMacHebrewFigureSpaceVariant = 1; - -const int kMacHebrewStandardVariant = 0; - -const int kMacIcelandicStandardVariant = 0; - -const int kMacIcelandicStdCurrSignVariant = 2; - -const int kMacIcelandicStdDefaultVariant = 0; - -const int kMacIcelandicStdEuroSignVariant = 4; - -const int kMacIcelandicTTCurrSignVariant = 3; - -const int kMacIcelandicTTDefaultVariant = 1; - -const int kMacIcelandicTTEuroSignVariant = 5; - -const int kMacIcelandicTrueTypeVariant = 1; - -const int kMacJapaneseBasicVariant = 2; - -const int kMacJapanesePostScriptPrintVariant = 4; - -const int kMacJapanesePostScriptScrnVariant = 3; - -const int kMacJapaneseStandardVariant = 0; - -const int kMacJapaneseStdNoVerticalsVariant = 1; - -const int kMacJapaneseVertAtKuPlusTenVariant = 5; - -@Deprecated('Deprecated') -const int kMacMemoryMaximumMemoryManagerBlockSize = 2147483632; - -const int kMacOSReadMeFolderIcon = 1836020420; - -@Deprecated('Deprecated') -const int kMacOSReadMesFolderType = 1836020420; - -const int kMacRomanCurrencySignVariant = 1; - -const int kMacRomanDefaultVariant = 0; - -const int kMacRomanEuroSignVariant = 2; - -const int kMacRomanLatin1CroatianVariant = 8; - -const int kMacRomanLatin1DefaultVariant = 0; - -const int kMacRomanLatin1IcelandicVariant = 11; - -const int kMacRomanLatin1RomanianVariant = 14; - -const int kMacRomanLatin1StandardVariant = 2; - -const int kMacRomanLatin1TurkishVariant = 6; - -const int kMacRomanStandardVariant = 0; - -const int kMacRomanianCurrencySignVariant = 1; - -const int kMacRomanianDefaultVariant = 0; - -const int kMacRomanianEuroSignVariant = 2; - -const int kMacVT100CurrencySignVariant = 1; - -const int kMacVT100DefaultVariant = 0; - -const int kMacVT100EuroSignVariant = 2; - -const int kMachineNameStrID = -16395; - -const int kMagicBusyCreationDate = 1329266096; - -@Deprecated('Deprecated') -const int kMagicTemporaryItemsFolderType = 1836346736; - -const int kMale = 1; - -@Deprecated('Deprecated') -const int kManagedItemsFolderType = 1835101799; - -const int kMathSymbolsSelector = 6; - -const int kMathematicalExtrasType = 15; - -const int kMathematicalGreekOffSelector = 11; - -const int kMathematicalGreekOnSelector = 10; - -const int kMaxAsyncArgs = 16; - -const int kMaximumBlocksIn4GB = 8388607; - -const int kMicrosecondScale = 1000; - -const int kMillisecondScale = 1000000; - -const int kMini1BitMask = 1768123683; - -const int kMini4BitData = 1768123700; - -const int kMini8BitData = 1768123704; - -const int kModDateKCItemAttr = 1835295092; - -const int kModemOutOfMemory = -14000; - -const int kModemPreferencesMissing = -14001; - -const int kModemScriptMissing = -14002; - -@Deprecated('Deprecated') -const int kModemScriptsFolderType = -999461020; - -const int kMonospacedNumbersSelector = 0; - -const int kMonospacedTextSelector = 1; - -const int kMountedBadgeIcon = 1835164775; - -const int kMountedFolderAliasType = 1717661038; - -const int kMountedFolderIcon = 1835955300; - -const int kMountedFolderIconResource = -3977; - -@Deprecated('Deprecated') -const int kMovieDocumentsFolderType = 1835298659; - -@Deprecated('Deprecated') -const int kMultiprocessingFolderType = 1836087398; - -@Deprecated('Deprecated') -const int kMusicDocumentsFolderType = -1251709085; - -const int kNLCCharactersSelector = 13; - -const int kNSL68kContextNotSupported = -4170; - -const int kNSLBadClientInfoPtr = -4185; - -const int kNSLBadDataTypeErr = -4193; - -const int kNSLBadNetConnection = -4192; - -const int kNSLBadProtocolTypeErr = -4183; - -const int kNSLBadReferenceErr = -4195; - -const int kNSLBadServiceTypeErr = -4194; - -const int kNSLBadURLSyntax = -4172; - -const int kNSLBufferTooSmallForData = -4187; - -const int kNSLCannotContinueLookup = -4186; - -const int kNSLErrNullPtrError = -4176; - -const int kNSLInitializationFailed = -4200; - -const int kNSLInsufficientOTVer = -4197; - -const int kNSLInsufficientSysVer = -4198; - -const int kNSLInvalidPluginSpec = -4190; - -const int kNSLNoCarbonLib = -4173; - -const int kNSLNoContextAvailable = -4188; - -const int kNSLNoElementsInList = -4196; - -const int kNSLNoPluginsForSearch = -4179; - -const int kNSLNoPluginsFound = -4181; - -const int kNSLNoSupportForService = -4191; - -const int kNSLNotImplementedYet = -4175; - -const int kNSLNotInitialized = -4199; - -const int kNSLNullListPtr = -4184; - -const int kNSLNullNeighborhoodPtr = -4178; - -const int kNSLPluginLoadFailed = -4182; - -const int kNSLRequestBufferAlreadyInList = -4189; - -const int kNSLSchedulerError = -4171; - -const int kNSLSearchAlreadyInProgress = -4180; - -const int kNSLSomePluginsFailedToLoad = -4177; - -const int kNSLUILibraryNotAvailable = -4174; - -const int kNSpAddPlayerFailedErr = -30389; - -const int kNSpAddressInUseErr = -30380; - -const int kNSpAlreadyAdvertisingErr = -30374; - -const int kNSpAlreadyInitializedErr = -30361; - -const int kNSpCantBlockErr = -30398; - -const int kNSpConnectFailedErr = -30395; - -const int kNSpCreateGroupFailedErr = -30388; - -const int kNSpFeatureNotImplementedErr = -30381; - -const int kNSpFreeQExhaustedErr = -30378; - -const int kNSpGameTerminatedErr = -30394; - -const int kNSpHostFailedErr = -30365; - -const int kNSpInitializationFailedErr = -30360; - -const int kNSpInvalidAddressErr = -30377; - -const int kNSpInvalidDefinitionErr = -30390; - -const int kNSpInvalidGameRefErr = -30367; - -const int kNSpInvalidGroupIDErr = -30384; - -const int kNSpInvalidParameterErr = -30369; - -const int kNSpInvalidPlayerIDErr = -30383; - -const int kNSpInvalidProtocolListErr = -30392; - -const int kNSpInvalidProtocolRefErr = -30391; - -const int kNSpJoinFailedErr = -30399; - -const int kNSpMemAllocationErr = -30373; - -const int kNSpMessageTooBigErr = -30397; - -const int kNSpNameRequiredErr = -30382; - -const int kNSpNoGroupsErr = -30386; - -const int kNSpNoHostVolunteersErr = -30387; - -const int kNSpNoPlayersErr = -30385; - -const int kNSpNotAdvertisingErr = -30376; - -const int kNSpOTNotPresentErr = -30370; - -const int kNSpOTVersionTooOldErr = -30371; - -const int kNSpPipeFullErr = -30364; - -const int kNSpProtocolNotAvailableErr = -30366; - -const int kNSpRemovePlayerFailedErr = -30379; - -const int kNSpSendFailedErr = -30396; - -const int kNSpTimeoutErr = -30393; - -const int kNSpTopologyNotSupportedErr = -30362; - -const int kNameLocked = 4096; - -const int kNanosecondScale = 1; - -const int kNavCustomControlMessageFailedErr = -5697; - -const int kNavInvalidCustomControlMessageErr = -5698; - -const int kNavInvalidSystemConfigErr = -5696; - -const int kNavMissingKindStringErr = -5699; - -const int kNavWrongDialogClassErr = -5695; - -const int kNavWrongDialogStateErr = -5694; - -const int kNegativeKCItemAttr = 1852139361; - -@Deprecated('Deprecated') -const int kNetworkDomain = -32764; - -const int kNetworkPPDDomain = 4; - -const int kNeuter = 0; - -@Deprecated('Deprecated') -const int kNewDebugHeap = 4; - -const int kNewSizeParameter = 1718514554; - -@Deprecated('Deprecated') -const int kNewStyleHeap = 2; - -@Deprecated('Deprecated') -const int kNewSuspend = 1; - -const int kNextBody = 1; - -const int kNilOptions = 0; - -const int kNoAlternatesSelector = 0; - -const int kNoAnnotationSelector = 0; - -@Deprecated('Deprecated') -const int kNoByteCode = 0; - -const int kNoCJKItalicRomanSelector = 0; - -const int kNoCJKSymbolAlternativesSelector = 0; - -const int kNoCardBusCISErr = -9109; - -const int kNoCardEnablersFoundErr = -9099; - -const int kNoCardErr = -9071; - -const int kNoCardSevicesSocketsErr = -9080; - -const int kNoClientTableErr = -9097; - -const int kNoCompatibleNameErr = -9101; - -const int kNoConstraint = 0; - -const int kNoEnablerForCardErr = -9100; - -const int kNoEndingProsody = 1; - -const int kNoFilesIcon = 1852205420; - -const int kNoFolderIcon = 1852206180; - -const int kNoFractionsSelector = 0; - -const int kNoIOWindowRequestedErr = -9094; - -const int kNoIdeographicAlternativesSelector = 0; - -const int kNoMoreInterruptSlotsErr = -9096; - -const int kNoMoreItemsErr = -9078; - -const int kNoMoreTimerClientsErr = -9095; - -const int kNoOrnamentsSelector = 0; - -const int kNoProcess = 0; - -const int kNoRubyKanaSelector = 0; - -const int kNoSpeechInterrupt = 2; - -const int kNoStyleOptionsSelector = 0; - -const int kNoStylisticAlternatesSelector = 0; - -const int kNoSuchPowerSource = -13020; - -@Deprecated('Deprecated') -const int kNoThreadID = 0; - -const int kNoTimeOut = -2; - -const int kNoTransform = 0; - -const int kNoTransliterationSelector = 0; - -const int kNoUserAuthentication = 1; - -const int kNoWriteIcon = 1853321844; - -const int kNonFinalSwashesOffSelector = 9; - -const int kNonFinalSwashesOnSelector = 8; - -const int kNoneKCStopOn = 1; - -const int kNormalPositionSelector = 0; - -@Deprecated('Deprecated') -const int kNotPaged = 2; - -const int kNotReadyErr = -9103; - -const int kNotZVCapableErr = -9108; - -const int kNumberCaseType = 21; - -const int kNumberSpacingType = 6; - -const int kOPBDControlPointFormat = 1; - -const int kOPBDCurrentVersion = 65536; - -const int kOPBDDistanceFormat = 0; - -const int kOPBDTag = 1869636196; - -const int kOSAsyncCompleteMessageID = 57; - -const int kOSAsyncRef64Count = 8; - -const int kOSAsyncRef64Size = 64; - -const int kOSAsyncRefCount = 8; - -const int kOSAsyncRefSize = 32; - -const int kOSIZCodeInSharedLibraries = 11; - -const int kOSIZDontOpenResourceFile = 15; - -const int kOSIZOpenWithReadPermission = 13; - -const int kOSIZdontAcceptRemoteEvents = 14; - -const int kOSNotificationMessageID = 53; - -const int kOTAccessErr = -3152; - -const int kOTAddressBusyErr = -3172; - -const int kOTBadAddressErr = -3150; - -const int kOTBadConfigurationErr = -3282; - -const int kOTBadDataErr = -3159; - -const int kOTBadFlagErr = -3165; - -const int kOTBadNameErr = -3170; - -const int kOTBadOptionErr = -3151; - -const int kOTBadQLenErr = -3171; - -const int kOTBadReferenceErr = -3153; - -const int kOTBadSequenceErr = -3156; - -const int kOTBadSyncErr = -3179; - -const int kOTBufferOverflowErr = -3160; - -const int kOTCanceledErr = -3180; - -const int kOTClientNotInittedErr = -3279; - -const int kOTConfigurationChangedErr = -3283; - -const int kOTDuplicateFoundErr = -3216; - -const int kOTFlowErr = -3161; - -const int kOTIndOutErr = -3173; - -const int kOTLookErr = -3158; - -const int kOTNoAddressErr = -3154; - -const int kOTNoDataErr = -3162; - -const int kOTNoDisconnectErr = -3163; - -const int kOTNoError = 0; - -const int kOTNoReleaseErr = -3166; - -const int kOTNoStructureTypeErr = -3169; - -const int kOTNoUDErrErr = -3164; - -const int kOTNotFoundErr = -3201; - -const int kOTNotSupportedErr = -3167; - -const int kOTOutOfMemoryErr = -3211; - -const int kOTOutStateErr = -3155; - -const int kOTPortHasDiedErr = -3280; - -const int kOTPortLostConnection = -3285; - -const int kOTPortWasEjectedErr = -3281; - -const int kOTProtocolErr = -3178; - -const int kOTProviderMismatchErr = -3174; - -const int kOTQFullErr = -3177; - -const int kOTResAddressErr = -3176; - -const int kOTResQLenErr = -3175; - -const int kOTStateChangeErr = -3168; - -const int kOTSysErrorErr = -3157; - -const int kOTUserRequestedErr = -3284; - -const int kOffset2Pos = 1936994928; - -@Deprecated('Deprecated') -const int kOld68kRTA = 0; - -@Deprecated('Deprecated') -const int kOnAppropriateDisk = -32767; - -@Deprecated('Deprecated') -const int kOnSystemDisk = -32768; - -@Deprecated('Deprecated') -const int kOneByteCode = 1; - -@Deprecated('Deprecated') -const int kOpaqueAddressSpaceID = 8; - -@Deprecated('Deprecated') -const int kOpaqueAnyID = 0; - -@Deprecated('Deprecated') -const int kOpaqueAreaID = 11; - -@Deprecated('Deprecated') -const int kOpaqueCoherenceID = 10; - -@Deprecated('Deprecated') -const int kOpaqueConsoleID = 13; - -@Deprecated('Deprecated') -const int kOpaqueCpuID = 7; - -@Deprecated('Deprecated') -const int kOpaqueCriticalRegionID = 6; - -@Deprecated('Deprecated') -const int kOpaqueEventID = 9; - -@Deprecated('Deprecated') -const int kOpaqueNotificationID = 12; - -@Deprecated('Deprecated') -const int kOpaqueProcessID = 1; - -@Deprecated('Deprecated') -const int kOpaqueQueueID = 4; - -@Deprecated('Deprecated') -const int kOpaqueSemaphoreID = 5; - -@Deprecated('Deprecated') -const int kOpaqueTaskID = 2; - -@Deprecated('Deprecated') -const int kOpaqueTimerID = 3; - -@Deprecated('Deprecated') -const int kOpenDocEditorsFolderType = -999332762; - -@Deprecated('Deprecated') -const int kOpenDocFolderType = 1868853092; - -@Deprecated('Deprecated') -const int kOpenDocLibrariesFolderType = 1868852322; - -@Deprecated('Deprecated') -const int kOpenDocShellPlugInsFolderType = 1868854128; - -const int kOpenDropIconVariant = 1868853872; - -const int kOpenFolderIcon = 1868983396; - -const int kOpenFolderIconResource = -3997; - -const int kOpenIconVariant = 1869636974; - -const int kOrConnections = 268435454; - -const int kOrdinalsSelector = 3; - -const int kOrnamentSetsType = 16; - -const int kOutOfResourceErr = -9079; - -const int kOverlappingCharactersType = 13; - -const int kOwnedFolderIcon = 1870098020; - -const int kOwnedFolderIconResource = -3980; - -const int kOwnerID2Name = 1; - -const int kOwnerIcon = 1937077106; - -const int kOwnerName2ID = 3; - -const int kPCSToDevice = 2; - -const int kPCSToPCS = 3; - -@Deprecated('Deprecated') -const int kPEFAbsoluteExport = -2; - -@Deprecated('Deprecated') -const int kPEFCodeSection = 0; - -@Deprecated('Deprecated') -const int kPEFCodeSymbol = 0; - -@Deprecated('Deprecated') -const int kPEFConstantSection = 3; - -@Deprecated('Deprecated') -const int kPEFDataSymbol = 1; - -@Deprecated('Deprecated') -const int kPEFDebugSection = 5; - -@Deprecated('Deprecated') -const int kPEFExceptionSection = 7; - -@Deprecated('Deprecated') -const int kPEFExecDataSection = 6; - -@Deprecated('Deprecated') -const int kPEFExpSymClassShift = 24; - -@Deprecated('Deprecated') -const int kPEFExpSymMaxNameOffset = 16777215; - -@Deprecated('Deprecated') -const int kPEFExpSymNameOffsetMask = 16777215; - -@Deprecated('Deprecated') -const int kPEFFirstSectionHeaderOffset = 40; - -@Deprecated('Deprecated') -const int kPEFGlobalShare = 4; - -@Deprecated('Deprecated') -const int kPEFGlueSymbol = 4; - -@Deprecated('Deprecated') -const int kPEFHashLengthShift = 16; - -@Deprecated('Deprecated') -const int kPEFHashMaxLength = 65535; - -@Deprecated('Deprecated') -const int kPEFHashSlotFirstKeyMask = 262143; - -@Deprecated('Deprecated') -const int kPEFHashSlotMaxKeyIndex = 262143; - -@Deprecated('Deprecated') -const int kPEFHashSlotMaxSymbolCount = 16383; - -@Deprecated('Deprecated') -const int kPEFHashSlotSymCountShift = 18; - -@Deprecated('Deprecated') -const int kPEFHashValueMask = 65535; - -@Deprecated('Deprecated') -const int kPEFImpSymClassShift = 24; - -@Deprecated('Deprecated') -const int kPEFImpSymMaxNameOffset = 16777215; - -@Deprecated('Deprecated') -const int kPEFImpSymNameOffsetMask = 16777215; - -@Deprecated('Deprecated') -const int kPEFInitLibBeforeMask = 128; - -@Deprecated('Deprecated') -const int kPEFLoaderSection = 4; - -@Deprecated('Deprecated') -const int kPEFPackedDataSection = 2; - -@Deprecated('Deprecated') -const int kPEFPkDataBlock = 1; - -@Deprecated('Deprecated') -const int kPEFPkDataCount5Mask = 31; - -@Deprecated('Deprecated') -const int kPEFPkDataMaxCount5 = 31; - -@Deprecated('Deprecated') -const int kPEFPkDataOpcodeShift = 5; - -@Deprecated('Deprecated') -const int kPEFPkDataRepeat = 2; - -@Deprecated('Deprecated') -const int kPEFPkDataRepeatBlock = 3; - -@Deprecated('Deprecated') -const int kPEFPkDataRepeatZero = 4; - -@Deprecated('Deprecated') -const int kPEFPkDataVCountEndMask = 128; - -@Deprecated('Deprecated') -const int kPEFPkDataVCountMask = 127; - -@Deprecated('Deprecated') -const int kPEFPkDataVCountShift = 7; - -@Deprecated('Deprecated') -const int kPEFPkDataZero = 0; - -@Deprecated('Deprecated') -const int kPEFProcessShare = 1; - -@Deprecated('Deprecated') -const int kPEFProtectedShare = 5; - -@Deprecated('Deprecated') -const int kPEFReexportedImport = -3; - -@Deprecated('Deprecated') -const int kPEFRelocBasicOpcodeRange = 128; - -@Deprecated('Deprecated') -const int kPEFRelocBySectC = 32; - -@Deprecated('Deprecated') -const int kPEFRelocBySectD = 33; - -@Deprecated('Deprecated') -const int kPEFRelocBySectDWithSkip = 0; - -@Deprecated('Deprecated') -const int kPEFRelocImportRun = 37; - -@Deprecated('Deprecated') -const int kPEFRelocIncrPosition = 64; - -@Deprecated('Deprecated') -const int kPEFRelocIncrPositionMaxOffset = 4096; - -@Deprecated('Deprecated') -const int kPEFRelocLgByImport = 82; - -@Deprecated('Deprecated') -const int kPEFRelocLgByImportMaxIndex = 67108863; - -@Deprecated('Deprecated') -const int kPEFRelocLgBySectionSubopcode = 0; - -@Deprecated('Deprecated') -const int kPEFRelocLgRepeat = 88; - -@Deprecated('Deprecated') -const int kPEFRelocLgRepeatMaxChunkCount = 16; - -@Deprecated('Deprecated') -const int kPEFRelocLgRepeatMaxRepeatCount = 4194303; - -@Deprecated('Deprecated') -const int kPEFRelocLgSetOrBySection = 90; - -@Deprecated('Deprecated') -const int kPEFRelocLgSetOrBySectionMaxIndex = 4194303; - -@Deprecated('Deprecated') -const int kPEFRelocLgSetSectCSubopcode = 1; - -@Deprecated('Deprecated') -const int kPEFRelocLgSetSectDSubopcode = 2; - -@Deprecated('Deprecated') -const int kPEFRelocRunMaxRunLength = 512; - -@Deprecated('Deprecated') -const int kPEFRelocSetPosMaxOffset = 67108863; - -@Deprecated('Deprecated') -const int kPEFRelocSetPosition = 80; - -@Deprecated('Deprecated') -const int kPEFRelocSmByImport = 48; - -@Deprecated('Deprecated') -const int kPEFRelocSmBySection = 51; - -@Deprecated('Deprecated') -const int kPEFRelocSmIndexMaxIndex = 511; - -@Deprecated('Deprecated') -const int kPEFRelocSmRepeat = 72; - -@Deprecated('Deprecated') -const int kPEFRelocSmRepeatMaxChunkCount = 16; - -@Deprecated('Deprecated') -const int kPEFRelocSmRepeatMaxRepeatCount = 256; - -@Deprecated('Deprecated') -const int kPEFRelocSmSetSectC = 49; - -@Deprecated('Deprecated') -const int kPEFRelocSmSetSectD = 50; - -@Deprecated('Deprecated') -const int kPEFRelocTVector12 = 34; - -@Deprecated('Deprecated') -const int kPEFRelocTVector8 = 35; - -@Deprecated('Deprecated') -const int kPEFRelocUndefinedOpcode = 255; - -@Deprecated('Deprecated') -const int kPEFRelocVTable8 = 36; - -@Deprecated('Deprecated') -const int kPEFRelocWithSkipMaxRelocCount = 63; - -@Deprecated('Deprecated') -const int kPEFRelocWithSkipMaxSkipCount = 255; - -@Deprecated('Deprecated') -const int kPEFTOCSymbol = 3; - -@Deprecated('Deprecated') -const int kPEFTVectorSymbol = 2; - -@Deprecated('Deprecated') -const int kPEFTag1 = 1248819489; - -@Deprecated('Deprecated') -const int kPEFTag2 = 1885693542; - -@Deprecated('Deprecated') -const int kPEFTracebackSection = 8; - -@Deprecated('Deprecated') -const int kPEFUndefinedSymbol = 15; - -@Deprecated('Deprecated') -const int kPEFUnpackedDataSection = 1; - -@Deprecated('Deprecated') -const int kPEFVersion = 1; - -@Deprecated('Deprecated') -const int kPEFWeakImportLibMask = 64; - -@Deprecated('Deprecated') -const int kPEFWeakImportSymMask = 128; - -const int kPMAllocationFailure = -108; - -const int kPMBorderDoubleHairline = 2; - -const int kPMBorderDoubleThickline = 4; - -const int kPMBorderSingleHairline = 1; - -const int kPMBorderSingleThickline = 3; - -const int kPMCMYKColorSpaceModel = 3; - -const int kPMCVMSymbolNotFound = -9662; - -const int kPMCancel = 128; - -const int kPMCloseFailed = -9785; - -const int kPMCoverPageAfter = 3; - -const int kPMCoverPageBefore = 2; - -const int kPMCoverPageNone = 1; - -const int kPMCreateMessageFailed = -9620; - -const int kPMDeleteSubTicketFailed = -9585; - -const int kPMDestinationFax = 3; - -const int kPMDestinationFile = 2; - -const int kPMDestinationInvalid = 0; - -const int kPMDestinationPreview = 4; - -const int kPMDestinationPrinter = 1; - -const int kPMDestinationProcessPDF = 5; - -const int kPMDevNColorSpaceModel = 4; - -const int kPMDocumentNotFound = -9644; - -const int kPMDontSwitchPDEError = -9531; - -const int kPMDuplexNoTumble = 2; - -const int kPMDuplexNone = 1; - -const int kPMDuplexTumble = 3; - -const int kPMEditRequestFailed = -9544; - -const int kPMFeatureNotInstalled = -9533; - -const int kPMFileOrDirOperationFailed = -9634; - -const int kPMFontNameTooLong = -9704; - -const int kPMFontNotFound = -9703; - -const int kPMGeneralCGError = -9705; - -const int kPMGeneralError = -30870; - -const int kPMGrayColorSpaceModel = 1; - -const int kPMHideInlineItems = 0; - -const int kPMIOAttrNotAvailable = -9787; - -const int kPMIOMSymbolNotFound = -9661; - -const int kPMInternalError = -30870; - -const int kPMInvalidAllocator = -30890; - -const int kPMInvalidCVMContext = -9665; - -const int kPMInvalidCalibrationTarget = -30898; - -const int kPMInvalidConnection = -30887; - -const int kPMInvalidFileType = -30895; - -const int kPMInvalidIOMContext = -9664; - -const int kPMInvalidIndex = -30882; - -const int kPMInvalidItem = -30892; - -const int kPMInvalidJobID = -9666; - -const int kPMInvalidJobTemplate = -30885; - -const int kPMInvalidKey = -30888; - -const int kPMInvalidLookupSpec = -9542; - -const int kPMInvalidObject = -30896; - -const int kPMInvalidPBMRef = -9540; - -const int kPMInvalidPDEContext = -9530; - -const int kPMInvalidPMContext = -9663; - -const int kPMInvalidPageFormat = -30876; - -const int kPMInvalidPaper = -30897; - -const int kPMInvalidParameter = -50; - -const int kPMInvalidPreset = -30899; - -const int kPMInvalidPrintSession = -30879; - -const int kPMInvalidPrintSettings = -30875; - -const int kPMInvalidPrinter = -30880; - -const int kPMInvalidPrinterAddress = -9780; - -const int kPMInvalidPrinterInfo = -30886; - -const int kPMInvalidReply = -30894; - -const int kPMInvalidState = -9706; - -const int kPMInvalidSubTicket = -9584; - -const int kPMInvalidTicket = -30891; - -const int kPMInvalidType = -30893; - -const int kPMInvalidValue = -30889; - -const int kPMItemIsLocked = -9586; - -const int kPMJobBusy = -9642; - -const int kPMJobCanceled = -9643; - -const int kPMJobGetTicketBadFormatError = -9672; - -const int kPMJobGetTicketReadError = -9673; - -const int kPMJobManagerAborted = -9671; - -const int kPMJobNotFound = -9641; - -const int kPMJobStreamEndError = -9670; - -const int kPMJobStreamOpenFailed = -9668; - -const int kPMJobStreamReadFailed = -9669; - -const int kPMKeyNotFound = -9589; - -const int kPMKeyNotUnique = -9590; - -const int kPMKeyOrValueNotFound = -9623; - -const int kPMLandscape = 2; - -const int kPMLastErrorCodeToMakeMaintenanceOfThisListEasier = -9799; - -const int kPMLayoutBottomTopLeftRight = 7; - -const int kPMLayoutBottomTopRightLeft = 8; - -const int kPMLayoutLeftRightBottomTop = 2; - -const int kPMLayoutLeftRightTopBottom = 1; - -const int kPMLayoutRightLeftBottomTop = 4; - -const int kPMLayoutRightLeftTopBottom = 3; - -const int kPMLayoutTopBottomLeftRight = 5; - -const int kPMLayoutTopBottomRightLeft = 6; - -const int kPMMessagingError = -9624; - -const int kPMNoDefaultItem = -9500; - -const int kPMNoDefaultPrinter = -30872; - -const int kPMNoDefaultSettings = -9501; - -const int kPMNoError = 0; - -const int kPMNoPrinterJobID = -9667; - -const int kPMNoSelectedPrinters = -9541; - -const int kPMNoSuchEntry = -30874; - -const int kPMNotImplemented = -30873; - -const int kPMObjectInUse = -30881; - -const int kPMOpenFailed = -9781; - -const int kPMOutOfScope = -30871; - -const int kPMPMSymbolNotFound = -9660; - -const int kPMPaperTypeCoated = 2; - -const int kPMPaperTypeGlossy = 4; - -const int kPMPaperTypePlain = 1; - -const int kPMPaperTypePremium = 3; - -const int kPMPaperTypeTShirt = 6; - -const int kPMPaperTypeTransparency = 5; - -const int kPMPaperTypeUnknown = 0; - -const int kPMPermissionError = -9636; - -const int kPMPluginNotFound = -9701; - -const int kPMPluginRegisterationFailed = -9702; - -const int kPMPortrait = 1; - -const int kPMPrBrowserNoUI = -9545; - -const int kPMPrintAllPages = -1; - -const int kPMPrinterIdle = 3; - -const int kPMPrinterProcessing = 4; - -const int kPMPrinterStopped = 5; - -const int kPMQualityBest = 13; - -const int kPMQualityDraft = 4; - -const int kPMQualityHighest = 15; - -const int kPMQualityInkSaver = 1; - -const int kPMQualityLowest = 0; - -const int kPMQualityNormal = 8; - -const int kPMQualityPhoto = 11; - -const int kPMQueueAlreadyExists = -9639; - -const int kPMQueueJobFailed = -9640; - -const int kPMQueueNotFound = -9638; - -const int kPMRGBColorSpaceModel = 2; - -const int kPMReadFailed = -9782; - -const int kPMReadGotZeroData = -9788; - -const int kPMReverseLandscape = 4; - -const int kPMReversePortrait = 3; - -const int kPMScalingCenterOnImgArea = 6; - -const int kPMScalingCenterOnPaper = 5; - -const int kPMScalingPinBottomLeft = 3; - -const int kPMScalingPinBottomRight = 4; - -const int kPMScalingPinTopLeft = 1; - -const int kPMScalingPinTopRight = 2; - -const int kPMServerAlreadyRunning = -9631; - -const int kPMServerAttributeRestricted = -9633; - -const int kPMServerCommunicationFailed = -9621; - -const int kPMServerNotFound = -9630; - -const int kPMServerSuspended = -9632; - -const int kPMShowDefaultInlineItems = 32768; - -const int kPMShowInlineCopies = 1; - -const int kPMShowInlineOrientation = 8; - -const int kPMShowInlinePageRange = 2; - -const int kPMShowInlinePageRangeWithSelection = 64; - -const int kPMShowInlinePaperSize = 4; - -const int kPMShowInlineScale = 128; - -const int kPMShowPageAttributesPDE = 256; - -const int kPMSimplexTumble = 4; - -const int kPMStatusFailed = -9784; - -const int kPMStringConversionFailure = -30883; - -const int kPMSubTicketNotFound = -9583; - -const int kPMSyncRequestFailed = -9543; - -const int kPMTemplateIsLocked = -9588; - -const int kPMTicketIsLocked = -9587; - -const int kPMTicketTypeNotFound = -9580; - -const int kPMUnableToFindProcess = -9532; - -const int kPMUnexpectedImagingError = -9707; - -const int kPMUnknownColorSpaceModel = 0; - -const int kPMUnknownDataType = -9591; - -const int kPMUnknownMessage = -9637; - -const int kPMUnlocked = 0; - -const int kPMUnsupportedConnection = -9786; - -const int kPMUpdateTicketFailed = -9581; - -const int kPMUserOrGroupNotFound = -9635; - -const int kPMValidateTicketFailed = -9582; - -const int kPMValueOutOfRange = -30877; - -const int kPMWriteFailed = -9783; - -const int kPMXMLParseError = -30884; - -const int kPOSIXErrorBase = 100000; - -const int kPOSIXErrorE2BIG = 100007; - -const int kPOSIXErrorEACCES = 100013; - -const int kPOSIXErrorEADDRINUSE = 100048; - -const int kPOSIXErrorEADDRNOTAVAIL = 100049; - -const int kPOSIXErrorEAFNOSUPPORT = 100047; - -const int kPOSIXErrorEAGAIN = 100035; - -const int kPOSIXErrorEALREADY = 100037; - -const int kPOSIXErrorEAUTH = 100080; - -const int kPOSIXErrorEBADARCH = 100086; - -const int kPOSIXErrorEBADEXEC = 100085; - -const int kPOSIXErrorEBADF = 100009; - -const int kPOSIXErrorEBADMACHO = 100088; - -const int kPOSIXErrorEBADMSG = 100094; - -const int kPOSIXErrorEBADRPC = 100072; - -const int kPOSIXErrorEBUSY = 100016; - -const int kPOSIXErrorECANCELED = 100089; - -const int kPOSIXErrorECHILD = 100010; - -const int kPOSIXErrorECONNABORTED = 100053; - -const int kPOSIXErrorECONNREFUSED = 100061; - -const int kPOSIXErrorECONNRESET = 100054; - -const int kPOSIXErrorEDEADLK = 100011; - -const int kPOSIXErrorEDESTADDRREQ = 100039; - -const int kPOSIXErrorEDEVERR = 100083; - -const int kPOSIXErrorEDOM = 100033; - -const int kPOSIXErrorEDQUOT = 100069; - -const int kPOSIXErrorEEXIST = 100017; - -const int kPOSIXErrorEFAULT = 100014; - -const int kPOSIXErrorEFBIG = 100027; - -const int kPOSIXErrorEFTYPE = 100079; - -const int kPOSIXErrorEHOSTDOWN = 100064; - -const int kPOSIXErrorEHOSTUNREACH = 100065; - -const int kPOSIXErrorEIDRM = 100090; - -const int kPOSIXErrorEILSEQ = 100092; - -const int kPOSIXErrorEINPROGRESS = 100036; - -const int kPOSIXErrorEINTR = 100004; - -const int kPOSIXErrorEINVAL = 100022; - -const int kPOSIXErrorEIO = 100005; - -const int kPOSIXErrorEISCONN = 100056; - -const int kPOSIXErrorEISDIR = 100021; - -const int kPOSIXErrorELOOP = 100062; - -const int kPOSIXErrorEMFILE = 100024; - -const int kPOSIXErrorEMLINK = 100031; - -const int kPOSIXErrorEMSGSIZE = 100040; - -const int kPOSIXErrorEMULTIHOP = 100095; - -const int kPOSIXErrorENAMETOOLONG = 100063; - -const int kPOSIXErrorENEEDAUTH = 100081; - -const int kPOSIXErrorENETDOWN = 100050; - -const int kPOSIXErrorENETRESET = 100052; - -const int kPOSIXErrorENETUNREACH = 100051; - -const int kPOSIXErrorENFILE = 100023; - -const int kPOSIXErrorENOATTR = 100093; - -const int kPOSIXErrorENOBUFS = 100055; - -const int kPOSIXErrorENODATA = 100096; - -const int kPOSIXErrorENODEV = 100019; - -const int kPOSIXErrorENOENT = 100002; - -const int kPOSIXErrorENOEXEC = 100008; - -const int kPOSIXErrorENOLCK = 100077; - -const int kPOSIXErrorENOLINK = 100097; - -const int kPOSIXErrorENOMEM = 100012; - -const int kPOSIXErrorENOMSG = 100091; - -const int kPOSIXErrorENOPROTOOPT = 100042; - -const int kPOSIXErrorENOSPC = 100028; - -const int kPOSIXErrorENOSR = 100098; - -const int kPOSIXErrorENOSTR = 100099; - -const int kPOSIXErrorENOSYS = 100078; - -const int kPOSIXErrorENOTBLK = 100015; - -const int kPOSIXErrorENOTCONN = 100057; - -const int kPOSIXErrorENOTDIR = 100020; - -const int kPOSIXErrorENOTEMPTY = 100066; - -const int kPOSIXErrorENOTSOCK = 100038; - -const int kPOSIXErrorENOTSUP = 100045; - -const int kPOSIXErrorENOTTY = 100025; - -const int kPOSIXErrorENXIO = 100006; - -const int kPOSIXErrorEOPNOTSUPP = 100102; - -const int kPOSIXErrorEOVERFLOW = 100084; - -const int kPOSIXErrorEPERM = 100001; - -const int kPOSIXErrorEPFNOSUPPORT = 100046; - -const int kPOSIXErrorEPIPE = 100032; - -const int kPOSIXErrorEPROCLIM = 100067; - -const int kPOSIXErrorEPROCUNAVAIL = 100076; - -const int kPOSIXErrorEPROGMISMATCH = 100075; - -const int kPOSIXErrorEPROGUNAVAIL = 100074; - -const int kPOSIXErrorEPROTO = 100100; - -const int kPOSIXErrorEPROTONOSUPPORT = 100043; - -const int kPOSIXErrorEPROTOTYPE = 100041; - -const int kPOSIXErrorEPWROFF = 100082; - -const int kPOSIXErrorERANGE = 100034; - -const int kPOSIXErrorEREMOTE = 100071; - -const int kPOSIXErrorEROFS = 100030; - -const int kPOSIXErrorERPCMISMATCH = 100073; - -const int kPOSIXErrorESHLIBVERS = 100087; - -const int kPOSIXErrorESHUTDOWN = 100058; - -const int kPOSIXErrorESOCKTNOSUPPORT = 100044; - -const int kPOSIXErrorESPIPE = 100029; - -const int kPOSIXErrorESRCH = 100003; - -const int kPOSIXErrorESTALE = 100070; - -const int kPOSIXErrorETIME = 100101; - -const int kPOSIXErrorETIMEDOUT = 100060; - -const int kPOSIXErrorETOOMANYREFS = 100059; - -const int kPOSIXErrorETXTBSY = 100026; - -const int kPOSIXErrorEUSERS = 100068; - -const int kPOSIXErrorEXDEV = 100018; - -const int kPROPALDirectionClass = 2; - -const int kPROPANDirectionClass = 6; - -const int kPROPBNDirectionClass = 19; - -const int kPROPCSDirectionClass = 7; - -const int kPROPCanHangLTMask = 16384; - -const int kPROPCanHangRBMask = 8192; - -const int kPROPCurrentVersion = 196608; - -const int kPROPDirectionMask = 31; - -const int kPROPENDirectionClass = 3; - -const int kPROPESDirectionClass = 4; - -const int kPROPETDirectionClass = 5; - -const int kPROPIsFloaterMask = 32768; - -const int kPROPLDirectionClass = 0; - -const int kPROPLREDirectionClass = 13; - -const int kPROPLRODirectionClass = 14; - -const int kPROPNSMDirectionClass = 18; - -const int kPROPNumDirectionClasses = 20; - -const int kPROPONDirectionClass = 11; - -const int kPROPPDFDirectionClass = 17; - -const int kPROPPSDirectionClass = 8; - -const int kPROPPairOffsetMask = 3840; - -const int kPROPPairOffsetShift = 8; - -const int kPROPPairOffsetSign = 7; - -const int kPROPRDirectionClass = 1; - -const int kPROPRLEDirectionClass = 15; - -const int kPROPRLODirectionClass = 16; - -const int kPROPRightConnectMask = 128; - -const int kPROPSDirectionClass = 9; - -const int kPROPSENDirectionClass = 12; - -const int kPROPTag = 1886547824; - -const int kPROPUseRLPairMask = 4096; - -const int kPROPWSDirectionClass = 10; - -const int kPROPZeroReserved = 96; - -const int kPackageAliasType = 1718643553; - -@Deprecated('Deprecated') -const int kPageInMemory = 0; - -@Deprecated('Deprecated') -const int kPageOnDisk = 1; - -const int kParenthesisAnnotationSelector = 5; - -const int kPartiallyConnectedSelector = 1; - -@Deprecated('Deprecated') -const int kPascalStackBased = 0; - -const int kPassCallToChainErr = -9086; - -@Deprecated('Deprecated') -const int kPassSelector = 0; - -const int kPassword = 2; - -const int kPasswordChangedKCEvent = 6; - -const int kPasswordChangedKCEventMask = 64; - -const int kPathKCItemAttr = 1885434984; - -const int kPeriodAnnotationSelector = 6; - -const int kPeriodsToEllipsisOffSelector = 11; - -const int kPeriodsToEllipsisOnSelector = 10; - -const int kPiCharactersSelector = 2; - -@Deprecated('Deprecated') -const int kPictureDocumentsFolderType = 1885630307; - -const int kPlotIconRefNoImage = 2; - -const int kPlotIconRefNoMask = 4; - -const int kPlotIconRefNormalFlags = 0; - -const int kPolicyKCStopOn = 0; - -const int kPortKCItemAttr = 1886351988; - -const int kPos2Offset = 1882354548; - -const int kPostCardEventErr = -9088; - -const int kPowerHandlerExistsForDeviceErr = -13006; - -const int kPowerHandlerNotFoundForDeviceErr = -13007; - -const int kPowerHandlerNotFoundForProcErr = -13008; - -const int kPowerMgtMessageNotHandled = -13009; - -const int kPowerMgtRequestDenied = -13010; - -@Deprecated('Deprecated') -const int kPowerPCISA = 1; - -@Deprecated('Deprecated') -const int kPowerPCRTA = 0; - -@Deprecated('Deprecated') -const int kPreMacOS91AppleExtrasFolderType = -1939507004; - -@Deprecated('Deprecated') -const int kPreMacOS91ApplicationsFolderType = -1938788237; - -@Deprecated('Deprecated') -const int kPreMacOS91AssistantsFolderType = -1938590524; - -@Deprecated('Deprecated') -const int kPreMacOS91AutomountedServersFolderType = -1485670716; - -@Deprecated('Deprecated') -const int kPreMacOS91InstallerLogsFolderType = -1804834970; - -@Deprecated('Deprecated') -const int kPreMacOS91InternetFolderType = -1804700476; - -@Deprecated('Deprecated') -const int kPreMacOS91MacOSReadMesFolderType = -1250987324; - -@Deprecated('Deprecated') -const int kPreMacOS91StationeryFolderType = -1083935884; - -@Deprecated('Deprecated') -const int kPreMacOS91UtilitiesFolderType = -1619760700; - -@Deprecated('Deprecated') -const int kPreemptiveThread = 2; - -const int kPreferencePanesFolderType = 1886413166; - -const int kPreferencesFolderAliasType = 1717661798; - -const int kPreferencesFolderIcon = 1886545604; - -const int kPreferencesFolderIconResource = -3974; - -@Deprecated('Deprecated') -const int kPreferencesFolderType = 1886545254; - -const int kPreflightThenPause = 4; - -const int kPreventOverlapOffSelector = 1; - -const int kPreventOverlapOnSelector = 0; - -const int kPreviousBody = 2; - -const int kPrintMonitorDocsFolderAliasType = 1717661806; - -@Deprecated('Deprecated') -const int kPrintMonitorDocsFolderType = 1886547572; - -const int kPrintMonitorFolderIcon = 1886547572; - -const int kPrintMonitorFolderIconResource = -3975; - -const int kPrinterDescriptionFolderIcon = 1886413926; - -@Deprecated('Deprecated') -const int kPrinterDescriptionFolderType = 1886413926; - -const int kPrinterDriverFolderIcon = -999263644; - -@Deprecated('Deprecated') -const int kPrinterDriverFolderType = -999263644; - -@Deprecated('Deprecated') -const int kPrintersFolderType = 1768779890; - -@Deprecated('Deprecated') -const int kPrintingPlugInsFolderType = 1886415975; - -const int kPrivateFolderIcon = 1886549606; - -const int kPrivateFolderIconResource = -3994; - -@Deprecated('Deprecated') -const int kPrivateFrameworksFolderType = 1885762157; - -@Deprecated('Deprecated') -const int kPrivilegeViolationException = 8; - -@Deprecated('Deprecated') -const int kProcDescriptorIsAbsolute = 0; - -@Deprecated('Deprecated') -const int kProcDescriptorIsIndex = 32; - -@Deprecated('Deprecated') -const int kProcDescriptorIsProcPtr = 0; - -@Deprecated('Deprecated') -const int kProcDescriptorIsRelative = 1; - -const int kProcessDictionaryIncludeAllInformationMask = -1; - -const int kProcessTransformToBackgroundApplication = 2; - -const int kProcessTransformToForegroundApplication = 1; - -const int kProcessTransformToUIElementApplication = 4; - -const int kProcessorTempRoutineRequiresMPLib2 = -13014; - -const int kProportionalCJKRomanSelector = 1; - -const int kProportionalIdeographsSelector = 1; - -const int kProportionalKanaSelector = 1; - -const int kProportionalNumbersSelector = 1; - -const int kProportionalTextSelector = 0; - -const int kProtectedApplicationFolderIcon = 1885433968; - -const int kProtectedSystemFolderIcon = 1886615923; - -const int kProtocolKCItemAttr = 1886675820; - -const int kPublicFolderIcon = 1886741094; - -@Deprecated('Deprecated') -const int kPublicFolderType = 1886741090; - -const int kPublicKeyHashKCItemAttr = 1752198009; - -const int kQDCorruptPICTDataErr = -3954; - -const int kQDCursorAlreadyRegistered = -3952; - -const int kQDCursorNotRegistered = -3953; - -const int kQDNoColorHWCursorSupport = -3951; - -const int kQDNoPalette = -3950; - -const int kQTSSUnknownErr = -6150; - -const int kQuarterWidthNumbersSelector = 3; - -const int kQuarterWidthTextSelector = 4; - -const int kQuestionMarkIcon = 1903519091; - -@Deprecated('Deprecated') -const int kQuickLookFolderType = 1902928747; - -@Deprecated('Deprecated') -const int kQuickTimeComponentsFolderType = 2003004784; - -@Deprecated('Deprecated') -const int kQuickTimeExtensionsFolderType = 1903453560; - -const int kQuitAtNormalTimeMask = 2; - -const int kQuitBeforeFBAsQuitMask = 4; - -const int kQuitBeforeNormalTimeMask = 1; - -const int kQuitBeforeShellQuitsMask = 8; - -const int kQuitBeforeTerminatorAppQuitsMask = 16; - -const int kQuitNeverMask = 32; - -const int kQuitNotQuitDuringInstallMask = 256; - -const int kQuitNotQuitDuringLogoutMask = 512; - -const int kQuitOptionsMask = 127; - -const int kRAATalkInactive = -7134; - -const int kRACallBackFailed = -7138; - -const int kRAConfigurationDBInitErr = -7127; - -const int kRAConnectionCanceled = -7109; - -const int kRADuplicateIPAddr = -7137; - -const int kRAExtAuthenticationFailed = -7135; - -const int kRAIncompatiblePrefs = -7107; - -const int kRAInitOpenTransportFailed = -7122; - -const int kRAInstallationDamaged = -7113; - -const int kRAInternalError = -7112; - -const int kRAInvalidParameter = -7100; - -const int kRAInvalidPassword = -7111; - -const int kRAInvalidPort = -7101; - -const int kRAInvalidPortState = -7116; - -const int kRAInvalidSerialProtocol = -7117; - -const int kRAMissingResources = -7106; - -const int kRANCPRejectedbyPeer = -7136; - -const int kRANotConnected = -7108; - -const int kRANotEnabled = -7139; - -const int kRANotPrimaryInterface = -7126; - -const int kRANotSupported = -7105; - -const int kRAOutOfMemory = -7104; - -const int kRAPPPAuthenticationFailed = -7129; - -const int kRAPPPNegotiationFailed = -7130; - -const int kRAPPPPeerDisconnected = -7132; - -const int kRAPPPProtocolRejected = -7128; - -const int kRAPPPUserDisconnected = -7131; - -const int kRAPeerNotResponding = -7133; - -const int kRAPortBusy = -7114; - -const int kRAPortSetupFailed = -7103; - -const int kRARemoteAccessNotReady = -7123; - -const int kRAStartupFailed = -7102; - -const int kRATCPIPInactive = -7124; - -const int kRATCPIPNotConfigured = -7125; - -const int kRAUnknownPortState = -7115; - -const int kRAUnknownUser = -7110; - -const int kRAUserInteractionRequired = -7121; - -const int kRAUserLoginDisabled = -7118; - -const int kRAUserPwdChangeRequired = -7119; - -const int kRAUserPwdEntryRequired = -7120; - -const int kRareLigaturesOffSelector = 5; - -const int kRareLigaturesOnSelector = 4; - -const int kRdPermKCStatus = 2; - -const int kReadExtensionTermsMask = 32768; - -const int kReadFailureErr = -9068; - -@Deprecated('Deprecated') -const int kReadOnlyMemoryException = 6; - -@Deprecated('Deprecated') -const int kReadReference = 1; - -@Deprecated('Deprecated') -const int kReadyThreadState = 0; - -const int kRebusPicturesOffSelector = 9; - -const int kRebusPicturesOnSelector = 8; - -const int kRecentApplicationsFolderIcon = 1918988400; - -@Deprecated('Deprecated') -const int kRecentApplicationsFolderType = 1918988400; - -const int kRecentDocumentsFolderIcon = 1919184739; - -@Deprecated('Deprecated') -const int kRecentDocumentsFolderType = 1919184739; - -const int kRecentItemsIcon = 1919118964; - -const int kRecentServersFolderIcon = 1920168566; - -@Deprecated('Deprecated') -const int kRecentServersFolderType = 1920169586; - -const int kRedirectedRelativeFolder = 1920099692; - -const int kRedrawHighlighting = 1; - -@Deprecated('Deprecated') -const int kRegisterA0 = 4; - -@Deprecated('Deprecated') -const int kRegisterA1 = 5; - -@Deprecated('Deprecated') -const int kRegisterA2 = 6; - -@Deprecated('Deprecated') -const int kRegisterA3 = 7; - -@Deprecated('Deprecated') -const int kRegisterA4 = 12; - -@Deprecated('Deprecated') -const int kRegisterA5 = 13; - -@Deprecated('Deprecated') -const int kRegisterA6 = 14; - -@Deprecated('Deprecated') -const int kRegisterBased = 2; - -@Deprecated('Deprecated') -const int kRegisterD0 = 0; - -@Deprecated('Deprecated') -const int kRegisterD1 = 1; - -@Deprecated('Deprecated') -const int kRegisterD2 = 2; - -@Deprecated('Deprecated') -const int kRegisterD3 = 3; - -@Deprecated('Deprecated') -const int kRegisterD4 = 8; - -@Deprecated('Deprecated') -const int kRegisterD5 = 9; - -@Deprecated('Deprecated') -const int kRegisterD6 = 10; - -@Deprecated('Deprecated') -const int kRegisterD7 = 11; - -@Deprecated('Deprecated') -const int kRegisterParameterMask = 2147481600; - -@Deprecated('Deprecated') -const int kRegisterParameterPhase = 11; - -@Deprecated('Deprecated') -const int kRegisterParameterSizePhase = 0; - -@Deprecated('Deprecated') -const int kRegisterParameterSizeWidth = 2; - -@Deprecated('Deprecated') -const int kRegisterParameterWhichPhase = 2; - -@Deprecated('Deprecated') -const int kRegisterParameterWhichWidth = 3; - -@Deprecated('Deprecated') -const int kRegisterParameterWidth = 5; - -@Deprecated('Deprecated') -const int kRegisterResultLocationPhase = 6; - -@Deprecated('Deprecated') -const int kRegisterResultLocationWidth = 5; - -const int kRelativeFolder = 1919249510; - -const int kRequiredLigaturesOffSelector = 1; - -const int kRequiredLigaturesOnSelector = 0; - -@Deprecated('Deprecated') -const int kResFileNotOpened = -1; - -@Deprecated('Deprecated') -const int kResolveAliasFileNoUI = 1; - -@Deprecated('Deprecated') -const int kResolveAliasTryFileIDFirst = 2; - -@Deprecated('Deprecated') -const int kResultSizeMask = 48; - -@Deprecated('Deprecated') -const int kResultSizePhase = 4; - -@Deprecated('Deprecated') -const int kResultSizeWidth = 2; - -const int kReturnNextGroup = 2; - -const int kReturnNextUG = 3; - -const int kReturnNextUser = 1; - -const int kRightContainerArrowIcon = 1919115634; - -const int kRolloverIconVariant = 1870030194; - -const int kRomanNumeralAnnotationSelector = 7; - -const int kRomanizationToHiraganaSelector = 5; - -const int kRomanizationToKatakanaSelector = 6; - -const int kRootFolder = 1919906918; - -const int kRoundedBoxAnnotationSelector = 2; - -@Deprecated('Deprecated') -const int kRoutineDescriptorVersion = 7; - -@Deprecated('Deprecated') -const int kRoutineIsDispatchedDefaultRoutine = 16; - -@Deprecated('Deprecated') -const int kRoutineIsNotDispatchedDefaultRoutine = 0; - -const int kRoutingResourceID = 0; - -const int kRoutingResourceType = 1919907188; - -@Deprecated('Deprecated') -const int kRsrcChainAboveAllMaps = 4; - -@Deprecated('Deprecated') -const int kRsrcChainAboveApplicationMap = 2; - -@Deprecated('Deprecated') -const int kRsrcChainBelowApplicationMap = 1; - -@Deprecated('Deprecated') -const int kRsrcChainBelowSystemMap = 0; - -const int kRubyKanaOffSelector = 3; - -const int kRubyKanaOnSelector = 2; - -const int kRubyKanaSelector = 1; - -const int kRubyKanaType = 28; - -@Deprecated('Deprecated') -const int kRunningThreadState = 2; - -const int kSFNTLookupSegmentArray = 4; - -const int kSFNTLookupSegmentSingle = 2; - -const int kSFNTLookupSimpleArray = 0; - -const int kSFNTLookupSingleTable = 6; - -const int kSFNTLookupTrimmedArray = 8; - -const int kSFNTLookupVector = 10; - -const int kSKSearchOptionDefault = 0; - -const int kSKSearchOptionFindSimilar = 4; - -const int kSKSearchOptionNoRelevanceScores = 1; - -const int kSKSearchOptionSpaceMeansOR = 2; - -const int kSOAP1999Schema = 1936931129; - -const int kSOAP2001Schema = 1936928817; - -const int kSOCKS5NoAcceptableMethod = 255; - -const int kSSpCantInstallErr = -30342; - -const int kSSpInternalErr = -30340; - -const int kSSpParallelUpVectorErr = -30343; - -const int kSSpScaleToZeroErr = -30344; - -const int kSSpVersionErr = -30341; - -const int kSTClassDeletedGlyph = 2; - -const int kSTClassEndOfLine = 3; - -const int kSTClassEndOfText = 0; - -const int kSTClassOutOfBounds = 1; - -const int kSTKCrossStreamReset = 8192; - -const int kSTLigActionMask = 16383; - -const int kSTMarkEnd = 8192; - -const int kSTNoAdvance = 16384; - -const int kSTRearrVerbMask = 15; - -const int kSTSetMark = 32768; - -const int kSTXHasLigAction = 8192; - -const int kScientificInferiorsSelector = 4; - -const int kScreenSaversFolderType = 1935897198; - -const int kScriptCodeKCItemAttr = 1935897200; - -const int kScriptingAdditionsFolderIcon = -999070862; - -@Deprecated('Deprecated') -const int kScriptingAdditionsFolderType = -999070862; - -const int kScriptsFolderIcon = 1935897284; - -@Deprecated('Deprecated') -const int kScriptsFolderType = 1935897284; - -const int kSecCSAllowNetworkAccess = 65536; - -const int kSecCSBasicValidateOnly = 6; - -const int kSecCSCalculateCMSDigest = 64; - -const int kSecCSCheckAllArchitectures = 1; - -const int kSecCSCheckGatekeeperArchitectures = 65; - -const int kSecCSCheckNestedCode = 8; - -const int kSecCSContentInformation = 16; - -const int kSecCSDedicatedHost = 1; - -const int kSecCSDoNotValidateExecutable = 2; - -const int kSecCSDoNotValidateResources = 4; - -const int kSecCSDynamicInformation = 8; - -const int kSecCSFastExecutableValidation = 131072; - -const int kSecCSFullReport = 32; - -const int kSecCSGenerateGuestHash = 2; - -const int kSecCSInternalInformation = 1; - -const int kSecCSRequirementInformation = 4; - -const int kSecCSRestrictSidebandData = 512; - -const int kSecCSRestrictSymlinks = 128; - -const int kSecCSRestrictToAppLike = 256; - -const int kSecCSSigningInformation = 2; - -const int kSecCSSingleThreaded = 4096; - -const int kSecCSSkipResourceDirectory = 32; - -const int kSecCSStrictValidate = 16; - -const int kSecCSUseAllArchitectures = 1; - -const int kSecCSUseSoftwareSigningCert = 1024; - -const int kSecCSValidatePEH = 2048; - -const int kSecCertEncodingItemAttr = 1667591779; - -const int kSecCertTypeItemAttr = 1668577648; - -const int kSecHonorRoot = 256; - -const int kSecIssuerItemAttr = 1769173877; - -@Deprecated('No longer supported') -const int kSecKeyAlias = 2; - -@Deprecated('No longer supported') -const int kSecKeyAlwaysSensitive = 15; - -@Deprecated('No longer supported') -const int kSecKeyApplicationTag = 7; - -@Deprecated('No longer supported') -const int kSecKeyDecrypt = 19; - -@Deprecated('No longer supported') -const int kSecKeyDerive = 20; - -@Deprecated('No longer supported') -const int kSecKeyEffectiveKeySize = 11; - -@Deprecated('No longer supported') -const int kSecKeyEncrypt = 18; - -@Deprecated('No longer supported') -const int kSecKeyEndDate = 13; - -@Deprecated('No longer supported') -const int kSecKeyExtractable = 16; - -@Deprecated('No longer supported') -const int kSecKeyKeyClass = 0; - -@Deprecated('No longer supported') -const int kSecKeyKeyCreator = 8; - -@Deprecated('No longer supported') -const int kSecKeyKeySizeInBits = 10; - -@Deprecated('No longer supported') -const int kSecKeyKeyType = 9; - -@Deprecated('No longer supported') -const int kSecKeyLabel = 6; - -@Deprecated('No longer supported') -const int kSecKeyModifiable = 5; - -@Deprecated('No longer supported') -const int kSecKeyNeverExtractable = 17; - -@Deprecated('No longer supported') -const int kSecKeyPermanent = 3; - -@Deprecated('No longer supported') -const int kSecKeyPrintName = 1; - -@Deprecated('No longer supported') -const int kSecKeyPrivate = 4; - -@Deprecated('No longer supported') -const int kSecKeySensitive = 14; - -@Deprecated('No longer supported') -const int kSecKeySign = 21; - -@Deprecated('No longer supported') -const int kSecKeySignRecover = 23; - -@Deprecated('No longer supported') -const int kSecKeyStartDate = 12; - -@Deprecated('No longer supported') -const int kSecKeyUnwrap = 26; - -@Deprecated('No longer supported') -const int kSecKeyVerify = 22; - -@Deprecated('No longer supported') -const int kSecKeyVerifyRecover = 24; - -@Deprecated('No longer supported') -const int kSecKeyWrap = 25; - -const int kSecMatchBits = 3; - -const int kSecNoGuest = 0; - -const int kSecOptionReserved = 255; - -const int kSecPublicKeyHashItemAttr = 1752198009; - -const int kSecReadPermStatus = 2; - -const int kSecRevocationCRLMethod = 2; - -const int kSecRevocationNetworkAccessDisabled = 16; - -const int kSecRevocationOCSPMethod = 1; - -const int kSecRevocationPreferCRL = 4; - -const int kSecRevocationRequirePositiveResponse = 8; - -const int kSecRevocationUseAnyAvailableMethod = 3; - -const int kSecSerialNumberItemAttr = 1936614002; - -const int kSecSubjectItemAttr = 1937072746; - -const int kSecSubjectKeyIdentifierItemAttr = 1936419172; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorAbortInProgress = 19; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorAborted = 20; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorAttributeNotFound = 1; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidAlgorithm = 6; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidConnection = 15; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidInput = 10; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidInputDictionary = 5; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidLength = 7; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidOperation = 2; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidType = 8; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorMissingParameter = 14; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorMoreThanOneOutput = 4; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorNameAlreadyRegistered = 11; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorNotInitializedCorrectly = 3; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorUnsupportedAttribute = 12; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformInvalidArgument = 21; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformInvalidOverride = 17; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformOperationNotSupportedOnGroup = 13; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformTransformIsExecuting = 16; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformTransformIsNotRegistered = 18; - -const int kSecUnlockStateStatus = 1; - -const int kSecUseOnlyGID = 2; - -const int kSecUseOnlyUID = 1; - -const int kSecWritePermStatus = 4; - -const int kSecondScale = 1000000000; - -const int kSecurityDomainKCItemAttr = 1935961454; - -const int kSelectorAll1BitData = 16843009; - -const int kSelectorAll32BitData = 134219784; - -const int kSelectorAll4BitData = 33686018; - -const int kSelectorAll8BitData = 67372036; - -const int kSelectorAllAvailableData = -1; - -const int kSelectorAllHugeData = -16777216; - -const int kSelectorAllLargeData = 255; - -const int kSelectorAllMiniData = 16711680; - -const int kSelectorAllSmallData = 65280; - -const int kSelectorHuge1Bit = 16777216; - -const int kSelectorHuge32Bit = 134217728; - -const int kSelectorHuge4Bit = 33554432; - -const int kSelectorHuge8Bit = 67108864; - -const int kSelectorHuge8BitMask = 268435456; - -const int kSelectorLarge1Bit = 1; - -const int kSelectorLarge32Bit = 8; - -const int kSelectorLarge4Bit = 2; - -const int kSelectorLarge8Bit = 4; - -const int kSelectorLarge8BitMask = 16; - -const int kSelectorMini1Bit = 65536; - -const int kSelectorMini4Bit = 131072; - -const int kSelectorMini8Bit = 262144; - -const int kSelectorSmall1Bit = 256; - -const int kSelectorSmall32Bit = 2048; - -const int kSelectorSmall4Bit = 512; - -const int kSelectorSmall8Bit = 1024; - -const int kSelectorSmall8BitMask = 4096; - -@Deprecated('Deprecated') -const int kSelectorsAreIndexable = 1; - -@Deprecated('Deprecated') -const int kSelectorsAreNotIndexable = 0; - -const int kSerialNumberKCItemAttr = 1936614002; - -const int kServerKCItemAttr = 1936881266; - -const int kServiceKCItemAttr = 1937138533; - -@Deprecated('Deprecated') -const int kServicesFolderType = 1937138547; - -const int kSetCLUTByValue = 1; - -const int kSetCLUTImmediately = 2; - -const int kSetCLUTWithLuminance = 4; - -@Deprecated('Deprecated') -const int kSetDebugOption = 2; - -const int kSetFrontProcessCausedByUser = 2; - -const int kSetFrontProcessFrontWindowOnly = 1; - -const int kSetPowerLevel = 17; - -const int kSharedBadgeIcon = 1935828071; - -const int kSharedFolderAliasType = 1717662568; - -const int kSharedFolderIcon = 1936221804; - -const int kSharedFolderIconResource = -3978; - -const int kSharedLibrariesFolderIcon = -999528094; - -@Deprecated('Deprecated') -const int kSharedLibrariesFolderType = -999528094; - -@Deprecated('Deprecated') -const int kSharedUserDataFolderType = 1935958388; - -const int kSharingPrivsNotApplicableIcon = 1936223841; - -const int kSharingPrivsReadOnlyIcon = 1936224879; - -const int kSharingPrivsReadWriteIcon = 1936224887; - -const int kSharingPrivsUnknownIcon = 1936225643; - -const int kSharingPrivsWritableIcon = 2003986804; - -const int kShiftJIS_BasicVariant = 0; - -const int kShiftJIS_DOSVariant = 1; - -const int kShiftJIS_MusicCDVariant = 2; - -const int kShortcutIcon = 1936224884; - -const int kShowDiacriticsSelector = 0; - -const int kShowHideInputWindow = 1936222583; - -@Deprecated('Deprecated') -const int kShutdownFolderType = 1936221286; - -const int kShutdownItemsDisabledFolderIcon = 1936221252; - -@Deprecated('Deprecated') -const int kShutdownItemsDisabledFolderType = 1936221252; - -const int kShutdownItemsFolderIcon = 1936221286; - -const int kSignKCItemAttr = 1936287598; - -const int kSignatureKCItemAttr = 1936943463; - -const int kSimplifiedCharactersSelector = 1; - -const int kSlashToDivideOffSelector = 5; - -const int kSlashToDivideOnSelector = 4; - -const int kSlashedZeroOffSelector = 5; - -const int kSlashedZeroOnSelector = 4; - -const int kSleepDemand = 2; - -const int kSleepDeny = 5; - -const int kSleepNow = 6; - -const int kSleepRequest = 1; - -const int kSleepRevoke = 4; - -const int kSleepUnlock = 4; - -const int kSleepWakeUp = 3; - -const int kSmall1BitMask = 1768125219; - -const int kSmall32BitData = 1769157426; - -const int kSmall4BitData = 1768125236; - -const int kSmall4BitIconSize = 128; - -const int kSmall8BitData = 1768125240; - -const int kSmall8BitIconSize = 256; - -const int kSmall8BitMask = 1933077867; - -const int kSmallCapsSelector = 3; - -const int kSmallIconSize = 64; - -const int kSmartQuotesOffSelector = 9; - -const int kSmartQuotesOnSelector = 8; - -const int kSmartSwashType = 8; - -const int kSortAscendingIcon = 1634954852; - -const int kSortDescendingIcon = 1685286500; - -const int kSoundFileIcon = 1936091500; - -@Deprecated('Deprecated') -const int kSoundSetsFolderType = 1936614515; - -const int kSpeakableItemsFolder = 1936747369; - -@Deprecated('Deprecated') -const int kSpeakableItemsFolderType = 1936747369; - -@Deprecated('Deprecated') -const int kSpecialCase = 15; - -@Deprecated('Deprecated') -const int kSpecialCaseCaretHook = 0; - -@Deprecated('Deprecated') -const int kSpecialCaseDrawHook = 4; - -@Deprecated('Deprecated') -const int kSpecialCaseEOLHook = 1; - -@Deprecated('Deprecated') -const int kSpecialCaseGNEFilterProc = 11; - -@Deprecated('Deprecated') -const int kSpecialCaseHighHook = 0; - -@Deprecated('Deprecated') -const int kSpecialCaseHitTestHook = 5; - -@Deprecated('Deprecated') -const int kSpecialCaseMBarHook = 12; - -@Deprecated('Deprecated') -const int kSpecialCaseNWidthHook = 3; - -@Deprecated('Deprecated') -const int kSpecialCaseProtocolHandler = 7; - -@Deprecated('Deprecated') -const int kSpecialCaseSelectorMask = 1008; - -@Deprecated('Deprecated') -const int kSpecialCaseSelectorPhase = 4; - -@Deprecated('Deprecated') -const int kSpecialCaseSelectorWidth = 6; - -@Deprecated('Deprecated') -const int kSpecialCaseSocketListener = 8; - -@Deprecated('Deprecated') -const int kSpecialCaseTEDoText = 10; - -@Deprecated('Deprecated') -const int kSpecialCaseTEFindWord = 6; - -@Deprecated('Deprecated') -const int kSpecialCaseTERecalc = 9; - -@Deprecated('Deprecated') -const int kSpecialCaseTextWidthHook = 2; - -@Deprecated('Deprecated') -const int kSpecialCaseWidthHook = 2; - -const int kSpecialFolder = 1936745318; - -@Deprecated('Deprecated') -const int kSpeechFolderType = 1936745320; - -const int kSpeechGenerateTune = 1; - -const int kSpeechRelativeDuration = 4; - -const int kSpeechRelativePitch = 2; - -const int kSpeechShowSyllables = 8; - -@Deprecated('Deprecated') -const int kSpotlightImportersFolderType = 1936289136; - -@Deprecated('Deprecated') -const int kSpotlightMetadataCacheFolderType = 1935893352; - -@Deprecated('Deprecated') -const int kSpotlightSavedSearchesFolderType = 1936748404; - -const int kSquaredLigaturesOffSelector = 13; - -const int kSquaredLigaturesOnSelector = 12; - -@Deprecated('Deprecated') -const int kStackDispatchedPascalStackBased = 14; - -@Deprecated('Deprecated') -const int kStackOverflowException = 14; - -@Deprecated('Deprecated') -const int kStackParameterMask = -64; - -@Deprecated('Deprecated') -const int kStackParameterPhase = 6; - -@Deprecated('Deprecated') -const int kStackParameterWidth = 2; - -const int kStartDateKCItemAttr = 1935958388; - -const int kStartupFolderAliasType = 1717662580; - -const int kStartupFolderIconResource = -3981; - -@Deprecated('Deprecated') -const int kStartupFolderType = 1937011316; - -const int kStartupItemsDisabledFolderIcon = 1937011268; - -@Deprecated('Deprecated') -const int kStartupItemsDisabledFolderType = 1937011268; - -const int kStartupItemsFolderIcon = 1937011316; - -@Deprecated('Deprecated') -const int kStationeryFolderType = 1868854132; - -const int kStillIdle = 25; - -@Deprecated('Deprecated') -const int kStoppedThreadState = 1; - -const int kStyleOptionsType = 19; - -const int kStylisticAltEightOffSelector = 17; - -const int kStylisticAltEightOnSelector = 16; - -const int kStylisticAltEighteenOffSelector = 37; - -const int kStylisticAltEighteenOnSelector = 36; - -const int kStylisticAltElevenOffSelector = 23; - -const int kStylisticAltElevenOnSelector = 22; - -const int kStylisticAltFifteenOffSelector = 31; - -const int kStylisticAltFifteenOnSelector = 30; - -const int kStylisticAltFiveOffSelector = 11; - -const int kStylisticAltFiveOnSelector = 10; - -const int kStylisticAltFourOffSelector = 9; - -const int kStylisticAltFourOnSelector = 8; - -const int kStylisticAltFourteenOffSelector = 29; - -const int kStylisticAltFourteenOnSelector = 28; - -const int kStylisticAltNineOffSelector = 19; - -const int kStylisticAltNineOnSelector = 18; - -const int kStylisticAltNineteenOffSelector = 39; - -const int kStylisticAltNineteenOnSelector = 38; - -const int kStylisticAltOneOffSelector = 3; - -const int kStylisticAltOneOnSelector = 2; - -const int kStylisticAltSevenOffSelector = 15; - -const int kStylisticAltSevenOnSelector = 14; - -const int kStylisticAltSeventeenOffSelector = 35; - -const int kStylisticAltSeventeenOnSelector = 34; - -const int kStylisticAltSixOffSelector = 13; - -const int kStylisticAltSixOnSelector = 12; - -const int kStylisticAltSixteenOffSelector = 33; - -const int kStylisticAltSixteenOnSelector = 32; - -const int kStylisticAltTenOffSelector = 21; - -const int kStylisticAltTenOnSelector = 20; - -const int kStylisticAltThirteenOffSelector = 27; - -const int kStylisticAltThirteenOnSelector = 26; - -const int kStylisticAltThreeOffSelector = 7; - -const int kStylisticAltThreeOnSelector = 6; - -const int kStylisticAltTwelveOffSelector = 25; - -const int kStylisticAltTwelveOnSelector = 24; - -const int kStylisticAltTwentyOffSelector = 41; - -const int kStylisticAltTwentyOnSelector = 40; - -const int kStylisticAltTwoOffSelector = 5; - -const int kStylisticAltTwoOnSelector = 4; - -const int kStylisticAlternativesType = 35; - -const int kSubjectKCItemAttr = 1937072746; - -const int kSubstituteVerticalFormsOffSelector = 1; - -const int kSubstituteVerticalFormsOnSelector = 0; - -const int kSuperiorsSelector = 1; - -const int kSuspendDemand = 13; - -const int kSuspendRequest = 12; - -const int kSuspendRevoke = 14; - -const int kSuspendWakeToDoze = 23; - -const int kSuspendWakeUp = 15; - -const int kSwashAlternatesOffSelector = 3; - -const int kSwashAlternatesOnSelector = 2; - -const int kSymLinkCreator = 1919443312; - -const int kSymLinkFileType = 1936485995; - -const int kSymbolLigaturesOffSelector = 17; - -const int kSymbolLigaturesOnSelector = 16; - -const int kSysSWTooOld = -6226; - -@Deprecated('Deprecated') -const int kSystemControlPanelFolderType = 1935897708; - -@Deprecated('Deprecated') -const int kSystemDesktopFolderType = 1935962987; - -@Deprecated('Deprecated') -const int kSystemDomain = -32766; - -const int kSystemEventKCEventMask = 256; - -const int kSystemExtensionDisabledFolderIcon = 1835098948; - -@Deprecated('Deprecated') -const int kSystemExtensionDisabledFolderType = 1835098948; - -const int kSystemFolderAliasType = 1717662585; - -const int kSystemFolderIcon = 1835098995; - -const int kSystemFolderIconResource = -3983; - -@Deprecated('Deprecated') -const int kSystemFolderType = 1835098995; - -const int kSystemIconsCreator = 1835098995; - -const int kSystemKCEvent = 8; - -const int kSystemPPDDomain = 2; - -@Deprecated('Deprecated') -const int kSystemPreferencesFolderType = 1936749158; - -const int kSystemProcess = 1; - -@Deprecated('Deprecated') -const int kSystemResFile = 0; - -@Deprecated('Deprecated') -const int kSystemSoundsFolderType = 1936944740; - -const int kSystemSuitcaseIcon = 2054388083; - -@Deprecated('Deprecated') -const int kSystemTrashFolderType = 1937011315; - -const int kTECAddFallbackInterruptBit = 7; - -const int kTECAddFallbackInterruptMask = 128; - -const int kTECAddForceASCIIChangesBit = 4; - -const int kTECAddForceASCIIChangesMask = 16; - -const int kTECAddTextRunHeuristicsBit = 6; - -const int kTECAddTextRunHeuristicsMask = 64; - -const int kTECArrayFullErr = -8751; - -const int kTECAvailableEncodingsResType = 1668703598; - -const int kTECAvailableSniffersResType = 1668707174; - -const int kTECBadTextRunErr = -8752; - -const int kTECBufferBelowMinimumSizeErr = -8750; - -const int kTECChinesePluginSignature = 1887070319; - -const int kTECConversionInfoResType = 1668704614; - -const int kTECCorruptConverterErr = -8748; - -const int kTECDirectionErr = -8756; - -const int kTECDisableFallbacksBit = 16; - -const int kTECDisableFallbacksMask = 65536; - -const int kTECDisableLooseMappingsBit = 17; - -const int kTECDisableLooseMappingsMask = 131072; - -const int kTECFallbackTextLengthFixBit = 1; - -const int kTECFallbackTextLengthFixMask = 2; - -const int kTECGlobalsUnavailableErr = -8770; - -const int kTECIncompleteElementErr = -8755; - -const int kTECInfoCurrentFormat = 2; - -const int kTECInternetNameDefaultUsageMask = 0; - -const int kTECInternetNameStrictUsageMask = 1; - -const int kTECInternetNameTolerantUsageMask = 2; - -const int kTECInternetNamesResType = 1668705645; - -const int kTECItemUnavailableErr = -8771; - -const int kTECJapanesePluginSignature = 1886023790; - -const int kTECKeepInfoFixBit = 0; - -const int kTECKeepInfoFixMask = 1; - -const int kTECKoreanPluginSignature = 1886089074; - -const int kTECMailEncodingsResType = 1668705644; - -const int kTECMissingTableErr = -8745; - -const int kTECNeedFlushStatus = -8784; - -const int kTECNoConversionPathErr = -8749; - -const int kTECOutputBufferFullStatus = -8785; - -const int kTECPartialCharErr = -8753; - -const int kTECPluginCreator = 1701733238; - -const int kTECPluginDispatchTableCurrentVersion = 65538; - -const int kTECPluginDispatchTableVersion1 = 65536; - -const int kTECPluginDispatchTableVersion1_1 = 65537; - -const int kTECPluginDispatchTableVersion1_2 = 65538; - -const int kTECPluginManyToOne = 1836347247; - -const int kTECPluginOneToMany = 1869901677; - -const int kTECPluginOneToOne = 1869901679; - -const int kTECPluginSniffObj = 1936615782; - -const int kTECPluginType = 1701015655; - -const int kTECPreferredEncodingFixBit = 5; - -const int kTECPreferredEncodingFixMask = 32; - -const int kTECResourceID = 128; - -const int kTECSignature = 1701733238; - -const int kTECSubTextEncodingsResType = 1668707170; - -const int kTECTableChecksumErr = -8746; - -const int kTECTableFormatErr = -8747; - -const int kTECTextRunBitClearFixBit = 2; - -const int kTECTextRunBitClearFixMask = 4; - -const int kTECTextToUnicodeScanFixBit = 3; - -const int kTECTextToUnicodeScanFixMask = 8; - -const int kTECUnicodePluginSignature = 1886744169; - -const int kTECUnmappableElementErr = -8754; - -const int kTECUsedFallbacksStatus = -8783; - -const int kTECWebEncodingsResType = 1668708194; - -const int kTEC_MIBEnumDontCare = -1; - -@Deprecated('Deprecated') -const int kTMTaskActive = 32768; - -const int kTRAKCurrentVersion = 65536; - -const int kTRAKTag = 1953653099; - -const int kTRAKUniformFormat = 0; - -const int kTSMHiliteBlockFillText = 6; - -const int kTSMHiliteCaretPosition = 1; - -const int kTSMHiliteConvertedText = 4; - -const int kTSMHiliteNoHilite = 9; - -const int kTSMHiliteOutlineText = 7; - -const int kTSMHiliteRawText = 2; - -const int kTSMHiliteSelectedConvertedText = 5; - -const int kTSMHiliteSelectedRawText = 3; - -const int kTSMHiliteSelectedText = 8; - -const int kTSMInsideOfActiveInputArea = 3; - -const int kTSMInsideOfBody = 2; - -const int kTSMOutsideOfBody = 1; - -const int kTXNATSUIIsNotInstalledErr = -22016; - -const int kTXNAlreadyInitializedErr = -22012; - -const int kTXNAttributeTagInvalidForRunErr = -22009; - -const int kTXNBadDefaultFileTypeWarning = -22005; - -const int kTXNCannotAddFrameErr = -22001; - -const int kTXNCannotSetAutoIndentErr = -22006; - -const int kTXNCannotTurnTSMOffWhenUsingUnicodeErr = -22013; - -const int kTXNCopyNotAllowedInEchoModeErr = -22014; - -const int kTXNDataTypeNotAllowedErr = -22015; - -const int kTXNEndIterationErr = -22000; - -const int kTXNIllegalToCrossDataBoundariesErr = -22003; - -const int kTXNInvalidFrameIDErr = -22002; - -const int kTXNInvalidRunIndex = -22011; - -const int kTXNNoMatchErr = -22008; - -const int kTXNOutsideOfFrameErr = -22018; - -const int kTXNOutsideOfLineErr = -22017; - -const int kTXNRunIndexOutofBoundsErr = -22007; - -const int kTXNSomeOrAllTagsInvalidForRunErr = -22010; - -const int kTXNUserCanceledOperationErr = -22004; - -const int kTallCapsSelector = 5; - -@Deprecated('Deprecated') -const int kTaskCreationException = 16; - -@Deprecated('Deprecated') -const int kTaskTerminationException = 15; - -@Deprecated('Deprecated') -const int kTemporaryFolderType = 1952804208; - -@Deprecated('Deprecated') -const int kTemporaryItemsInCacheDataFolderType = 1987341680; - -@Deprecated('Deprecated') -const int kTemporaryItemsInUserDomainFolderType = 1952804209; - -const int kTextCenter = 1; - -const int kTextEncodingANSEL = 1537; - -const int kTextEncodingBaseName = 1; - -const int kTextEncodingBig5 = 2563; - -const int kTextEncodingBig5_E = 2569; - -const int kTextEncodingBig5_HKSCS_1999 = 2566; - -const int kTextEncodingCNS_11643_92_P1 = 1617; - -const int kTextEncodingCNS_11643_92_P2 = 1618; - -const int kTextEncodingCNS_11643_92_P3 = 1619; - -const int kTextEncodingDOSArabic = 1049; - -const int kTextEncodingDOSBalticRim = 1030; - -const int kTextEncodingDOSCanadianFrench = 1048; - -const int kTextEncodingDOSChineseSimplif = 1057; - -const int kTextEncodingDOSChineseTrad = 1059; - -const int kTextEncodingDOSCyrillic = 1043; - -const int kTextEncodingDOSGreek = 1029; - -const int kTextEncodingDOSGreek1 = 1041; - -const int kTextEncodingDOSGreek2 = 1052; - -const int kTextEncodingDOSHebrew = 1047; - -const int kTextEncodingDOSIcelandic = 1046; - -const int kTextEncodingDOSJapanese = 1056; - -const int kTextEncodingDOSKorean = 1058; - -const int kTextEncodingDOSLatin1 = 1040; - -const int kTextEncodingDOSLatin2 = 1042; - -const int kTextEncodingDOSLatinUS = 1024; - -const int kTextEncodingDOSNordic = 1050; - -const int kTextEncodingDOSPortuguese = 1045; - -const int kTextEncodingDOSRussian = 1051; - -const int kTextEncodingDOSThai = 1053; - -const int kTextEncodingDOSTurkish = 1044; - -const int kTextEncodingDefaultFormat = 0; - -const int kTextEncodingDefaultVariant = 0; - -const int kTextEncodingEBCDIC_CP037 = 3074; - -const int kTextEncodingEBCDIC_LatinCore = 3073; - -const int kTextEncodingEBCDIC_US = 3073; - -const int kTextEncodingEUC_CN = 2352; - -const int kTextEncodingEUC_JP = 2336; - -const int kTextEncodingEUC_KR = 2368; - -const int kTextEncodingEUC_TW = 2353; - -const int kTextEncodingFormatName = 3; - -const int kTextEncodingFullName = 0; - -const int kTextEncodingGBK_95 = 1585; - -const int kTextEncodingGB_18030_2000 = 1586; - -const int kTextEncodingGB_18030_2005 = 1586; - -const int kTextEncodingGB_2312_80 = 1584; - -const int kTextEncodingHZ_GB_2312 = 2565; - -const int kTextEncodingISO10646_1993 = 257; - -const int kTextEncodingISOLatin1 = 513; - -const int kTextEncodingISOLatin10 = 528; - -const int kTextEncodingISOLatin2 = 514; - -const int kTextEncodingISOLatin3 = 515; - -const int kTextEncodingISOLatin4 = 516; - -const int kTextEncodingISOLatin5 = 521; - -const int kTextEncodingISOLatin6 = 522; - -const int kTextEncodingISOLatin7 = 525; - -const int kTextEncodingISOLatin8 = 526; - -const int kTextEncodingISOLatin9 = 527; - -const int kTextEncodingISOLatinArabic = 518; - -const int kTextEncodingISOLatinCyrillic = 517; - -const int kTextEncodingISOLatinGreek = 519; - -const int kTextEncodingISOLatinHebrew = 520; - -const int kTextEncodingISO_2022_CN = 2096; - -const int kTextEncodingISO_2022_CN_EXT = 2097; - -const int kTextEncodingISO_2022_JP = 2080; - -const int kTextEncodingISO_2022_JP_1 = 2082; - -const int kTextEncodingISO_2022_JP_2 = 2081; - -const int kTextEncodingISO_2022_JP_3 = 2083; - -const int kTextEncodingISO_2022_KR = 2112; - -const int kTextEncodingJIS_C6226_78 = 1572; - -const int kTextEncodingJIS_X0201_76 = 1568; - -const int kTextEncodingJIS_X0208_83 = 1569; - -const int kTextEncodingJIS_X0208_90 = 1570; - -const int kTextEncodingJIS_X0212_90 = 1571; - -const int kTextEncodingJIS_X0213_MenKuTen = 1577; - -const int kTextEncodingKOI8_R = 2562; - -const int kTextEncodingKOI8_U = 2568; - -const int kTextEncodingKSC_5601_87 = 1600; - -const int kTextEncodingKSC_5601_92_Johab = 1601; - -const int kTextEncodingMacArabic = 4; - -const int kTextEncodingMacArmenian = 24; - -const int kTextEncodingMacBengali = 13; - -const int kTextEncodingMacBurmese = 19; - -const int kTextEncodingMacCeltic = 39; - -const int kTextEncodingMacCentralEurRoman = 29; - -const int kTextEncodingMacChineseSimp = 25; - -const int kTextEncodingMacChineseTrad = 2; - -const int kTextEncodingMacCroatian = 36; - -const int kTextEncodingMacCyrillic = 7; - -const int kTextEncodingMacDevanagari = 9; - -const int kTextEncodingMacDingbats = 34; - -const int kTextEncodingMacEastEurRoman = 29; - -const int kTextEncodingMacEthiopic = 28; - -const int kTextEncodingMacExtArabic = 31; - -const int kTextEncodingMacFarsi = 140; - -const int kTextEncodingMacGaelic = 40; - -const int kTextEncodingMacGeez = 28; - -const int kTextEncodingMacGeorgian = 23; - -const int kTextEncodingMacGreek = 6; - -const int kTextEncodingMacGujarati = 11; - -const int kTextEncodingMacGurmukhi = 10; - -const int kTextEncodingMacHFS = 255; - -const int kTextEncodingMacHebrew = 5; - -const int kTextEncodingMacIcelandic = 37; - -const int kTextEncodingMacInuit = 236; - -const int kTextEncodingMacJapanese = 1; - -const int kTextEncodingMacKannada = 16; - -const int kTextEncodingMacKeyboardGlyphs = 41; - -const int kTextEncodingMacKhmer = 20; - -const int kTextEncodingMacKorean = 3; - -const int kTextEncodingMacLaotian = 22; - -const int kTextEncodingMacMalayalam = 17; - -const int kTextEncodingMacMongolian = 27; - -const int kTextEncodingMacOriya = 12; - -const int kTextEncodingMacRSymbol = 8; - -const int kTextEncodingMacRoman = 0; - -const int kTextEncodingMacRomanLatin1 = 2564; - -const int kTextEncodingMacRomanian = 38; - -const int kTextEncodingMacSimpChinese = 25; - -const int kTextEncodingMacSinhalese = 18; - -const int kTextEncodingMacSymbol = 33; - -const int kTextEncodingMacTamil = 14; - -const int kTextEncodingMacTelugu = 15; - -const int kTextEncodingMacThai = 21; - -const int kTextEncodingMacTibetan = 26; - -const int kTextEncodingMacTradChinese = 2; - -const int kTextEncodingMacTurkish = 35; - -const int kTextEncodingMacUkrainian = 152; - -const int kTextEncodingMacUnicode = 126; - -const int kTextEncodingMacUninterp = 32; - -const int kTextEncodingMacVT100 = 252; - -const int kTextEncodingMacVietnamese = 30; - -const int kTextEncodingMultiRun = 4095; - -const int kTextEncodingNextStepJapanese = 2818; - -const int kTextEncodingNextStepLatin = 2817; - -const int kTextEncodingShiftJIS = 2561; - -const int kTextEncodingShiftJIS_X0213 = 1576; - -const int kTextEncodingShiftJIS_X0213_00 = 1576; - -const int kTextEncodingUS_ASCII = 1536; - -const int kTextEncodingUnicodeDefault = 256; - -const int kTextEncodingUnicodeV10_0 = 276; - -const int kTextEncodingUnicodeV11_0 = 277; - -const int kTextEncodingUnicodeV12_1 = 278; - -const int kTextEncodingUnicodeV13_0 = 279; - -const int kTextEncodingUnicodeV14_0 = 280; - -const int kTextEncodingUnicodeV15_0 = 281; - -const int kTextEncodingUnicodeV15_1 = 282; - -const int kTextEncodingUnicodeV1_1 = 257; - -const int kTextEncodingUnicodeV2_0 = 259; - -const int kTextEncodingUnicodeV2_1 = 259; - -const int kTextEncodingUnicodeV3_0 = 260; - -const int kTextEncodingUnicodeV3_1 = 261; - -const int kTextEncodingUnicodeV3_2 = 262; - -const int kTextEncodingUnicodeV4_0 = 264; - -const int kTextEncodingUnicodeV5_0 = 266; - -const int kTextEncodingUnicodeV5_1 = 267; - -const int kTextEncodingUnicodeV6_0 = 269; - -const int kTextEncodingUnicodeV6_1 = 270; - -const int kTextEncodingUnicodeV6_3 = 272; - -const int kTextEncodingUnicodeV7_0 = 273; - -const int kTextEncodingUnicodeV8_0 = 274; - -const int kTextEncodingUnicodeV9_0 = 275; - -const int kTextEncodingUnknown = 65535; - -const int kTextEncodingVISCII = 2567; - -const int kTextEncodingVariantName = 2; - -const int kTextEncodingWindowsANSI = 1280; - -const int kTextEncodingWindowsArabic = 1286; - -const int kTextEncodingWindowsBalticRim = 1287; - -const int kTextEncodingWindowsCyrillic = 1282; - -const int kTextEncodingWindowsGreek = 1283; - -const int kTextEncodingWindowsHebrew = 1285; - -const int kTextEncodingWindowsKoreanJohab = 1296; - -const int kTextEncodingWindowsLatin1 = 1280; - -const int kTextEncodingWindowsLatin2 = 1281; - -const int kTextEncodingWindowsLatin5 = 1284; - -const int kTextEncodingWindowsVietnamese = 1288; - -const int kTextEncodingsFolderIcon = -999004808; - -@Deprecated('Deprecated') -const int kTextEncodingsFolderType = -999004808; - -const int kTextFlushDefault = 0; - -const int kTextFlushLeft = -2; - -const int kTextFlushRight = -1; - -const int kTextLanguageDontCare = -128; - -const int kTextMalformedInputErr = -8739; - -const int kTextRegionDontCare = -128; - -const int kTextScriptDontCare = -128; - -const int kTextServiceClass = 1953724003; - -const int kTextSpacingType = 22; - -const int kTextToSpeechSynthType = 1953788771; - -const int kTextToSpeechVoiceBundleType = 1953789538; - -const int kTextToSpeechVoiceFileType = 1953789542; - -const int kTextToSpeechVoiceType = 1953789540; - -const int kTextUndefinedElementErr = -8740; - -const int kTextUnsupportedEncodingErr = -8738; - -@Deprecated('Deprecated') -const int kThemesFolderType = 1953000805; - -@Deprecated('Deprecated') -const int kThinkCStackBased = 5; - -const int kThirdWidthNumbersSelector = 2; - -const int kThirdWidthTextSelector = 3; - -const int kThumbnail32BitData = 1769222962; - -const int kThumbnail8BitMask = 1949855083; - -const int kTickScale = 10000000; - -const int kTileIconVariant = 1953066085; - -const int kTitlingCapsSelector = 4; - -const int kTooManyIOWindowsErr = -9104; - -const int kToolbarAdvancedIcon = 1952604534; - -const int kToolbarApplicationsFolderIcon = 1950445683; - -const int kToolbarCustomizeIcon = 1952675187; - -const int kToolbarDeleteIcon = 1952736620; - -const int kToolbarDesktopFolderIcon = 1950643051; - -const int kToolbarDocumentsFolderIcon = 1950642019; - -const int kToolbarDownloadsFolderIcon = 1950644078; - -const int kToolbarFavoritesIcon = 1952866678; - -const int kToolbarHomeIcon = 1953001325; - -const int kToolbarInfoIcon = 1952606574; - -const int kToolbarLabelsIcon = 1952607330; - -const int kToolbarLibraryFolderIcon = 1951164770; - -const int kToolbarMovieFolderIcon = 1951231862; - -const int kToolbarMusicFolderIcon = 1951233395; - -const int kToolbarPicturesFolderIcon = 1951426915; - -const int kToolbarPublicFolderIcon = 1951429986; - -const int kToolbarSitesFolderIcon = 1951626355; - -const int kToolbarUtilitiesFolderIcon = 1951757420; - -@Deprecated('Deprecated') -const int kTraceException = 9; - -const int kTraditionalAltFiveSelector = 9; - -const int kTraditionalAltFourSelector = 8; - -const int kTraditionalAltOneSelector = 5; - -const int kTraditionalAltThreeSelector = 7; - -const int kTraditionalAltTwoSelector = 6; - -const int kTraditionalCharactersSelector = 0; - -const int kTraditionalNamesCharactersSelector = 14; - -const int kTranscodingCompositionOffSelector = 5; - -const int kTranscodingCompositionOnSelector = 4; - -const int kTransformDisabled = 1; - -const int kTransformLabel1 = 256; - -const int kTransformLabel2 = 512; - -const int kTransformLabel3 = 768; - -const int kTransformLabel4 = 1024; - -const int kTransformLabel5 = 1280; - -const int kTransformLabel6 = 1536; - -const int kTransformLabel7 = 1792; - -const int kTransformNone = 0; - -const int kTransformOffline = 2; - -const int kTransformOpen = 3; - -const int kTransformSelected = 16384; - -const int kTransformSelectedDisabled = 16385; - -const int kTransformSelectedOffline = 16386; - -const int kTransformSelectedOpen = 16387; - -const int kTranslationDataTranslation = 1; - -const int kTranslationFileTranslation = 2; - -const int kTransliterationType = 23; - -const int kTransparentEncodedPixel = 1; - -const int kTransparentEncoding = 0; - -const int kTransparentEncodingShift = 0; - -@Deprecated('Deprecated') -const int kTrapException = 2; - -@Deprecated('Deprecated') -const int kTrashFolderType = 1953657704; - -const int kTrashIcon = 1953657704; - -const int kTrashIconResource = -3993; - -const int kTrueTypeFlatFontIcon = 1936092788; - -const int kTrueTypeFontIcon = 1952868716; - -const int kTrueTypeMultiFlatFontIcon = 1953784678; - -@Deprecated('Deprecated') -const int kTwoByteCode = 2; - -const int kTwoWayEncryptPassword = 6; - -const int kTypeKCItemAttr = 1954115685; - -const int kTypographicExtrasType = 14; - -const int kUAZoomFocusTypeInsertionPoint = 1; - -const int kUAZoomFocusTypeOther = 0; - -const int kUCBidiCatArabicNumber = 6; - -const int kUCBidiCatBlockSeparator = 8; - -const int kUCBidiCatBoundaryNeutral = 19; - -const int kUCBidiCatCommonNumberSeparator = 7; - -const int kUCBidiCatEuroNumber = 3; - -const int kUCBidiCatEuroNumberSeparator = 4; - -const int kUCBidiCatEuroNumberTerminator = 5; - -const int kUCBidiCatFirstStrongIsolate = 22; - -const int kUCBidiCatLeftRight = 1; - -const int kUCBidiCatLeftRightEmbedding = 13; - -const int kUCBidiCatLeftRightIsolate = 20; - -const int kUCBidiCatLeftRightOverride = 15; - -const int kUCBidiCatNonSpacingMark = 18; - -const int kUCBidiCatNotApplicable = 0; - -const int kUCBidiCatOtherNeutral = 11; - -const int kUCBidiCatPopDirectionalFormat = 17; - -const int kUCBidiCatPopDirectionalIsolate = 23; - -const int kUCBidiCatRightLeft = 2; - -const int kUCBidiCatRightLeftArabic = 12; - -const int kUCBidiCatRightLeftEmbedding = 14; - -const int kUCBidiCatRightLeftIsolate = 21; - -const int kUCBidiCatRightLeftOverride = 16; - -const int kUCBidiCatSegmentSeparator = 9; - -const int kUCBidiCatWhitespace = 10; - -const int kUCCharPropTypeBidiCategory = 3; - -const int kUCCharPropTypeCombiningClass = 2; - -const int kUCCharPropTypeDecimalDigitValue = 4; - -const int kUCCharPropTypeGenlCategory = 1; - -const int kUCCollateCaseInsensitiveMask = 8; - -const int kUCCollateComposeInsensitiveMask = 2; - -const int kUCCollateDiacritInsensitiveMask = 16; - -const int kUCCollateDigitsAsNumberMask = 131072; - -const int kUCCollateDigitsOverrideMask = 65536; - -const int kUCCollatePunctuationSignificantMask = 32768; - -const int kUCCollateStandardOptions = 6; - -const int kUCCollateTypeHFSExtended = 1; - -const int kUCCollateTypeMask = -16777216; - -const int kUCCollateTypeShiftBits = 24; - -const int kUCCollateTypeSourceMask = 255; - -const int kUCCollateWidthInsensitiveMask = 4; - -const int kUCGenlCatLetterLowercase = 15; - -const int kUCGenlCatLetterModifier = 17; - -const int kUCGenlCatLetterOther = 18; - -const int kUCGenlCatLetterTitlecase = 16; - -const int kUCGenlCatLetterUppercase = 14; - -const int kUCGenlCatMarkEnclosing = 7; - -const int kUCGenlCatMarkNonSpacing = 5; - -const int kUCGenlCatMarkSpacingCombining = 6; - -const int kUCGenlCatNumberDecimalDigit = 8; - -const int kUCGenlCatNumberLetter = 9; - -const int kUCGenlCatNumberOther = 10; - -const int kUCGenlCatOtherControl = 1; - -const int kUCGenlCatOtherFormat = 2; - -const int kUCGenlCatOtherNotAssigned = 0; - -const int kUCGenlCatOtherPrivateUse = 4; - -const int kUCGenlCatOtherSurrogate = 3; - -const int kUCGenlCatPunctClose = 23; - -const int kUCGenlCatPunctConnector = 20; - -const int kUCGenlCatPunctDash = 21; - -const int kUCGenlCatPunctFinalQuote = 25; - -const int kUCGenlCatPunctInitialQuote = 24; - -const int kUCGenlCatPunctOpen = 22; - -const int kUCGenlCatPunctOther = 26; - -const int kUCGenlCatSeparatorLine = 12; - -const int kUCGenlCatSeparatorParagraph = 13; - -const int kUCGenlCatSeparatorSpace = 11; - -const int kUCGenlCatSymbolCurrency = 29; - -const int kUCGenlCatSymbolMath = 28; - -const int kUCGenlCatSymbolModifier = 30; - -const int kUCGenlCatSymbolOther = 31; - -const int kUCHighSurrogateRangeEnd = 56319; - -const int kUCHighSurrogateRangeStart = 55296; - -const int kUCKeyActionAutoKey = 2; - -const int kUCKeyActionDisplay = 3; - -const int kUCKeyActionDown = 0; - -const int kUCKeyActionUp = 1; - -const int kUCKeyLayoutFeatureInfoFormat = 8193; - -const int kUCKeyLayoutHeaderFormat = 4098; - -const int kUCKeyModifiersToTableNumFormat = 12289; - -const int kUCKeyOutputGetIndexMask = 16383; - -const int kUCKeyOutputSequenceIndexMask = 32768; - -const int kUCKeyOutputStateIndexMask = 16384; - -const int kUCKeyOutputTestForIndexMask = 49152; - -const int kUCKeySequenceDataIndexFormat = 28673; - -const int kUCKeyStateEntryRangeFormat = 2; - -const int kUCKeyStateEntryTerminalFormat = 1; - -const int kUCKeyStateRecordsIndexFormat = 20481; - -const int kUCKeyStateTerminatorsFormat = 24577; - -const int kUCKeyToCharTableIndexFormat = 16385; - -const int kUCKeyTranslateNoDeadKeysBit = 0; - -const int kUCKeyTranslateNoDeadKeysMask = 1; - -const int kUCLowSurrogateRangeEnd = 57343; - -const int kUCLowSurrogateRangeStart = 56320; - -const int kUCOutputBufferTooSmall = -25340; - -const int kUCTSDirectionNext = 0; - -const int kUCTSDirectionPrevious = 1; - -const int kUCTSNoKeysAddedToObjectErr = -25342; - -const int kUCTSOptionsDataIsOrderedMask = 2; - -const int kUCTSOptionsNoneMask = 0; - -const int kUCTSOptionsReleaseStringMask = 1; - -const int kUCTSSearchListErr = -25343; - -const int kUCTextBreakCharMask = 1; - -const int kUCTextBreakClusterMask = 4; - -const int kUCTextBreakGoBackwardsMask = 2; - -const int kUCTextBreakIterateMask = 4; - -const int kUCTextBreakLeadingEdgeMask = 1; - -const int kUCTextBreakLineMask = 64; - -const int kUCTextBreakLocatorMissingType = -25341; - -const int kUCTextBreakParagraphMask = 256; - -const int kUCTextBreakWordMask = 16; - -const int kUCTokenNotFound = -25346; - -const int kUCTokenizerIterationFinished = -25344; - -const int kUCTokenizerUnknownLang = -25345; - -const int kUCTypeSelectMaxListSize = -1; - -const int kURL68kNotSupportedError = -30788; - -const int kURLAccessNotAvailableError = -30787; - -const int kURLAuthenticationError = -30776; - -const int kURLDestinationExistsError = -30772; - -const int kURLExtensionFailureError = -30785; - -const int kURLFileEmptyError = -30783; - -const int kURLInvalidCallError = -30781; - -const int kURLInvalidConfigurationError = -30786; - -const int kURLInvalidURLError = -30773; - -const int kURLInvalidURLReferenceError = -30770; - -const int kURLProgressAlreadyDisplayedError = -30771; - -const int kURLPropertyBufferTooSmallError = -30779; - -const int kURLPropertyNotYetKnownError = -30777; - -const int kURLServerBusyError = -30775; - -const int kURLUnknownPropertyError = -30778; - -const int kURLUnsettablePropertyError = -30780; - -const int kURLUnsupportedSchemeError = -30774; - -const int kUSBAbortedError = -6982; - -const int kUSBAlreadyOpenErr = -6991; - -const int kUSBBadDispatchTable = -6950; - -const int kUSBBitstufErr = -6914; - -const int kUSBBufOvrRunErr = -6904; - -const int kUSBBufUnderRunErr = -6903; - -const int kUSBCRCErr = -6915; - -const int kUSBCompletionError = -6984; - -const int kUSBDataToggleErr = -6913; - -const int kUSBDeviceBusy = -6977; - -const int kUSBDeviceDisconnected = -6972; - -const int kUSBDeviceErr = -6989; - -const int kUSBDeviceNotSuspended = -6973; - -const int kUSBDevicePowerProblem = -6976; - -const int kUSBDeviceSuspended = -6974; - -const int kUSBEndpointStallErr = -6912; - -const int kUSBFlagsError = -6983; - -const int kUSBIncorrectTypeErr = -6995; - -const int kUSBInternalErr = -6999; - -const int kUSBInternalReserved1 = -6960; - -const int kUSBInternalReserved10 = -6951; - -const int kUSBInternalReserved2 = -6959; - -const int kUSBInternalReserved3 = -6958; - -const int kUSBInternalReserved4 = -6957; - -const int kUSBInternalReserved5 = -6956; - -const int kUSBInternalReserved6 = -6955; - -const int kUSBInternalReserved7 = -6954; - -const int kUSBInternalReserved8 = -6953; - -const int kUSBInternalReserved9 = -6952; - -const int kUSBInvalidBuffer = -6975; - -const int kUSBLinkErr = -6916; - -const int kUSBNoBandwidthError = -6981; - -const int kUSBNoDelay = 0; - -const int kUSBNoDeviceErr = -6990; - -const int kUSBNoErr = 0; - -const int kUSBNoTran = 0; - -const int kUSBNotFound = -6987; - -const int kUSBNotHandled = -6987; - -const int kUSBNotRespondingErr = -6911; - -const int kUSBNotSent1Err = -6902; - -const int kUSBNotSent2Err = -6901; - -const int kUSBOutOfMemoryErr = -6988; - -const int kUSBOverRunErr = -6908; - -const int kUSBPBLengthError = -6985; - -const int kUSBPBVersionError = -6986; - -const int kUSBPIDCheckErr = -6910; - -const int kUSBPending = 1; - -const int kUSBPipeIdleError = -6980; - -const int kUSBPipeStalledError = -6979; - -const int kUSBPortDisabled = -6969; - -const int kUSBQueueAborted = -6970; - -const int kUSBQueueFull = -6948; - -const int kUSBRes1Err = -6906; - -const int kUSBRes2Err = -6905; - -const int kUSBRqErr = -6994; - -const int kUSBTimedOut = -6971; - -const int kUSBTooManyPipesErr = -6996; - -const int kUSBTooManyTransactionsErr = -6992; - -const int kUSBUnderRunErr = -6907; - -const int kUSBUnknownDeviceErr = -6998; - -const int kUSBUnknownInterfaceErr = -6978; - -const int kUSBUnknownNotification = -6949; - -const int kUSBUnknownPipeErr = -6997; - -const int kUSBUnknownRequestErr = -6993; - -const int kUSBWrongPIDErr = -6909; - -@Deprecated('Deprecated') -const int kUTCDefaultOptions = 0; - -const int kUTCOverflowErr = -8851; - -const int kUTCUnderflowErr = -8850; - -const int kUYVY422PixelFormat = 1431918169; - -const int kUnconnectedSelector = 0; - -const int kUnicode16BitFormat = 0; - -const int kUnicode32BitFormat = 3; - -const int kUnicodeByteOrderMark = 65279; - -const int kUnicodeCanonicalCompVariant = 3; - -const int kUnicodeCanonicalDecompVariant = 2; - -const int kUnicodeCollationClass = 1969450860; - -const int kUnicodeDecompositionType = 27; - -const int kUnicodeDefaultDirection = 0; - -const int kUnicodeDefaultDirectionMask = 0; - -const int kUnicodeDirectionalityBits = 2; - -const int kUnicodeDirectionalityMask = 12; - -const int kUnicodeFallbackCustomFirst = 3; - -const int kUnicodeFallbackCustomOnly = 1; - -const int kUnicodeFallbackDefaultFirst = 2; - -const int kUnicodeFallbackDefaultOnly = 0; - -const int kUnicodeFallbackInterruptSafeMask = 4; - -const int kUnicodeFallbackSequencingBits = 0; - -const int kUnicodeFallbackSequencingMask = 3; - -const int kUnicodeForceASCIIRangeBit = 9; - -const int kUnicodeForceASCIIRangeMask = 512; - -const int kUnicodeHFSPlusCompVariant = 9; - -const int kUnicodeHFSPlusDecompVariant = 8; - -const int kUnicodeKeepInfoBit = 1; - -const int kUnicodeKeepInfoMask = 2; - -const int kUnicodeKeepSameEncodingBit = 8; - -const int kUnicodeKeepSameEncodingMask = 256; - -const int kUnicodeLeftToRight = 1; - -const int kUnicodeLeftToRightMask = 4; - -const int kUnicodeLooseMappingsBit = 5; - -const int kUnicodeLooseMappingsMask = 32; - -const int kUnicodeMapLineFeedToReturnBit = 12; - -const int kUnicodeMapLineFeedToReturnMask = 4096; - -const int kUnicodeMatchOtherBaseBit = 3; - -const int kUnicodeMatchOtherBaseMask = 8; - -const int kUnicodeMatchOtherFormatBit = 5; - -const int kUnicodeMatchOtherFormatMask = 32; - -const int kUnicodeMatchOtherVariantBit = 4; - -const int kUnicodeMatchOtherVariantMask = 16; - -const int kUnicodeMatchUnicodeBaseBit = 0; - -const int kUnicodeMatchUnicodeBaseMask = 1; - -const int kUnicodeMatchUnicodeFormatBit = 2; - -const int kUnicodeMatchUnicodeFormatMask = 4; - -const int kUnicodeMatchUnicodeVariantBit = 1; - -const int kUnicodeMatchUnicodeVariantMask = 2; - -const int kUnicodeMaxDecomposedVariant = 2; - -const int kUnicodeNoCompatibilityVariant = 1; - -const int kUnicodeNoComposedVariant = 3; - -const int kUnicodeNoCorporateVariant = 4; - -const int kUnicodeNoHalfwidthCharsBit = 10; - -const int kUnicodeNoHalfwidthCharsMask = 1024; - -const int kUnicodeNoSubset = 0; - -const int kUnicodeNormalizationFormC = 3; - -const int kUnicodeNormalizationFormD = 5; - -const int kUnicodeNotAChar = 65535; - -const int kUnicodeNotFromInputMethod = 1970170221; - -const int kUnicodeObjectReplacement = 65532; - -const int kUnicodeReplacementChar = 65533; - -const int kUnicodeRightToLeft = 2; - -const int kUnicodeRightToLeftMask = 8; - -const int kUnicodeSCSUFormat = 8; - -const int kUnicodeStringUnterminatedBit = 6; - -const int kUnicodeStringUnterminatedMask = 64; - -const int kUnicodeSwappedByteOrderMark = 65534; - -const int kUnicodeTextBreakClass = 1969386091; - -const int kUnicodeTextRunBit = 7; - -const int kUnicodeTextRunHeuristicsBit = 11; - -const int kUnicodeTextRunHeuristicsMask = 2048; - -const int kUnicodeTextRunMask = 128; - -const int kUnicodeUTF16BEFormat = 4; - -const int kUnicodeUTF16Format = 0; - -const int kUnicodeUTF16LEFormat = 5; - -const int kUnicodeUTF32BEFormat = 6; - -const int kUnicodeUTF32Format = 3; - -const int kUnicodeUTF32LEFormat = 7; - -const int kUnicodeUTF7Format = 1; - -const int kUnicodeUTF8Format = 2; - -const int kUnicodeUseExternalEncodingFormBit = 13; - -const int kUnicodeUseExternalEncodingFormMask = 8192; - -const int kUnicodeUseFallbacksBit = 0; - -const int kUnicodeUseFallbacksMask = 1; - -const int kUnicodeUseHFSPlusMapping = 4; - -const int kUnicodeUseLatestMapping = -1; - -const int kUnicodeVerticalFormBit = 4; - -const int kUnicodeVerticalFormMask = 16; - -@Deprecated('Deprecated') -const int kUnknownException = 0; - -const int kUnknownFSObjectIcon = 1970169459; - -const int kUnknownType = 1061109567; - -const int kUnlockKCEvent = 2; - -const int kUnlockKCEventMask = 4; - -const int kUnlockStateKCStatus = 1; - -const int kUnlockedIcon = 1970037611; - -@Deprecated('Deprecated') -const int kUnmappedMemoryException = 4; - -@Deprecated('Deprecated') -const int kUnresolvablePageFaultException = 7; - -const int kUnsupportedCardErr = -9098; - -const int kUnsupportedFunctionErr = -9072; - -const int kUnsupportedModeErr = -9073; - -const int kUnsupportedVsErr = -9090; - -const int kUnwrapKCItemAttr = 1970173810; - -const int kUpdateActiveInputArea = 1970300020; - -const int kUpdateKCEvent = 5; - -const int kUpdateKCEventMask = 32; - -const int kUpperAndLowerCaseSelector = 0; - -const int kUpperCaseNumbersSelector = 1; - -const int kUpperCasePetiteCapsSelector = 2; - -const int kUpperCaseSmallCapsSelector = 1; - -const int kUpperCaseType = 38; - -const int kUseAtoB = 1; - -const int kUseBtoA = 2; - -const int kUseBtoB = 3; - -@Deprecated('Deprecated') -const int kUseCurrentISA = 0; - -@Deprecated('Deprecated') -const int kUseNativeISA = 4; - -@Deprecated('Deprecated') -const int kUsePremadeThread = 2; - -const int kUseProfileIntent = -1; - -const int kUseWidePositioning = 256; - -@Deprecated('Deprecated') -const int kUserDomain = -32763; - -const int kUserFolderIcon = 1969646692; - -const int kUserIDiskIcon = 1969517419; - -const int kUserIcon = 1970496882; - -const int kUserPPDDomain = 5; - -@Deprecated('Deprecated') -const int kUserSpecificTmpFolderType = 1970564464; - -const int kUsersFolderIcon = 1970500292; - -@Deprecated('Deprecated') -const int kUsersFolderType = 1970500211; - -const int kUtilitiesFolderIcon = 1970563524; - -@Deprecated('Deprecated') -const int kUtilitiesFolderType = 1970563524; - -const int kVCBFlagsHFSPlusAPIsBit = 4; - -const int kVCBFlagsHFSPlusAPIsMask = 16; - -const int kVCBFlagsHardwareGoneBit = 5; - -const int kVCBFlagsHardwareGoneMask = 32; - -const int kVCBFlagsIdleFlushBit = 3; - -const int kVCBFlagsIdleFlushMask = 8; - -const int kVCBFlagsVolumeDirtyBit = 15; - -const int kVCBFlagsVolumeDirtyMask = 32768; - -@Deprecated('Deprecated') -const int kVLibTag2 = 1447848290; - -@Deprecated('Deprecated') -const int kVariableLengthArray = 1; - -const int kVerifyKCItemAttr = 1986359913; - -const int kVerticalConstraint = 1; - -const int kVerticalFractionsSelector = 1; - -const int kVerticalPositionType = 10; - -const int kVerticalSubstitutionType = 4; - -const int kVoicesFolderIcon = 1719037795; - -@Deprecated('Deprecated') -const int kVoicesFolderType = 1719037795; - -const int kVolumeKCItemAttr = 1986817381; - -@Deprecated('Deprecated') -const int kVolumeRootFolderType = 1919905652; - -@Deprecated('Deprecated') -const int kVolumeSettingsFolderType = 1987274340; - -const int kWakeToDoze = 19; - -@Deprecated('Deprecated') -const int kWhereToEmptyTrashFolderType = 1701671028; - -const int kWidePosOffsetBit = 8; - -const int kWidgetsFolderType = 2003068788; - -const int kWindowsLatin1PalmVariant = 1; - -const int kWindowsLatin1StandardVariant = 0; - -const int kWordFinalSwashesOffSelector = 3; - -const int kWordFinalSwashesOnSelector = 2; - -const int kWordInitialSwashesOffSelector = 1; - -const int kWordInitialSwashesOnSelector = 0; - -const int kWorkgroupFolderIcon = 2003201124; - -const int kWrPermKCStatus = 4; - -const int kWrapKCItemAttr = 2003984752; - -const int kWriteFailureErr = -9069; - -const int kWriteProtectedErr = -9075; - -@Deprecated('Deprecated') -const int kWriteReference = 0; - -@Deprecated('Deprecated') -const int kX86ISA = 2; - -@Deprecated('Deprecated') -const int kX86RTA = 32; - -@Deprecated('Deprecated') -const int kXLibTag1 = -263364253; - -@Deprecated('Deprecated') -const int kXLibVersion = 1; - -const int kYUV211PixelFormat = 1496461617; - -const int kYUV411PixelFormat = 1496592689; - -const int kYUVSPixelFormat = 2037741171; - -const int kYUVUPixelFormat = 2037741173; - -const int kYVU9PixelFormat = 1498830137; - -const int kYVYU422PixelFormat = 1498831189; - -const int kadministratorUser = 1; - -final class kauth_ace extends ffi.Struct { - external guid_t ace_applicable; - - @u_int32_t() - external int ace_flags; - - @kauth_ace_rights_t() - external int ace_rights; -} - -typedef kauth_ace_rights_t = u_int32_t; -typedef kauth_ace_t = ffi.Pointer; - -final class kauth_acl extends ffi.Struct { - @u_int32_t() - external int acl_entrycount; - - @u_int32_t() - external int acl_flags; - - @ffi.Array.multi([1]) - external ffi.Array acl_ace; -} - -typedef kauth_acl_t = ffi.Pointer; - -final class kauth_cache_sizes extends ffi.Struct { - @u_int32_t() - external int kcs_group_size; - - @u_int32_t() - external int kcs_id_size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int kcs_group_size, - required int kcs_id_size, - }) => $allocator() - ..ref.kcs_group_size = kcs_group_size - ..ref.kcs_id_size = kcs_id_size; -} - -final class kauth_filesec extends ffi.Struct { - @u_int32_t() - external int fsec_magic; - - external guid_t fsec_owner; - - external guid_t fsec_group; - - external kauth_acl fsec_acl; -} - -typedef kauth_filesec_t = ffi.Pointer; - -final class kauth_identity_extlookup extends ffi.Struct { - @u_int32_t() - external int el_seqno; - - @u_int32_t() - external int el_result; - - @u_int32_t() - external int el_flags; - - @__darwin_pid_t() - external int el_info_pid; - - @u_int64_t() - external int el_extend; - - @u_int32_t() - external int el_info_reserved_1; - - @uid_t() - external int el_uid; - - external guid_t el_uguid; - - @u_int32_t() - external int el_uguid_valid; - - external ntsid_t el_usid; - - @u_int32_t() - external int el_usid_valid; - - @gid_t() - external int el_gid; - - external guid_t el_gguid; - - @u_int32_t() - external int el_gguid_valid; - - external ntsid_t el_gsid; - - @u_int32_t() - external int el_gsid_valid; - - @u_int32_t() - external int el_member_valid; - - @u_int32_t() - external int el_sup_grp_cnt; - - @ffi.Array.multi([16]) - external ffi.Array el_sup_groups; -} - -typedef kcdata_object_t = mach_port_t; -typedef kern_return_t = ffi.Int; -typedef Dartkern_return_t = int; - -const int kernelAlreadyFreeErr = -2421; - -const int kernelAsyncReceiveLimitErr = -2414; - -const int kernelAsyncSendLimitErr = -2413; - -const int kernelAttributeErr = -2412; - -const int kernelCanceledErr = -2402; - -const int kernelDeletePermissionErr = -2410; - -const int kernelExceptionErr = -2418; - -const int kernelExecutePermissionErr = -2409; - -const int kernelExecutionLevelErr = -2411; - -const int kernelIDErr = -2419; - -const int kernelInUseErr = -2416; - -const int kernelIncompleteErr = -2401; - -const int kernelObjectExistsErr = -2406; - -const int kernelOptionsErr = -2403; - -const int kernelPrivilegeErr = -2404; - -const int kernelReadPermissionErr = -2408; - -const int kernelReturnValueErr = -2422; - -const int kernelTerminatedErr = -2417; - -const int kernelTimeoutErr = -2415; - -const int kernelUnrecoverableErr = -2499; - -const int kernelUnsupportedErr = -2405; - -const int kernelWritePermissionErr = -2407; - -final class kernel_resource_sizes extends ffi.Struct { - @natural_t() - external int task; - - @natural_t() - external int thread; - - @natural_t() - external int port; - - @natural_t() - external int memory_region; - - @natural_t() - external int memory_object; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int task, - required int thread, - required int port, - required int memory_region, - required int memory_object, - }) => $allocator() - ..ref.task = task - ..ref.thread = thread - ..ref.port = port - ..ref.memory_region = memory_region - ..ref.memory_object = memory_object; -} - -typedef kernel_resource_sizes_data_t = kernel_resource_sizes; -typedef kernel_resource_sizes_t = ffi.Pointer; - -const int keyAEAdjustMarksProc = 1633970797; - -const int keyAEAngle = 1801547367; - -const int keyAEArcAngle = 1885434467; - -const int keyAEAttaching = 1098146664; - -const int keyAEBaseAddr = 1650549860; - -const int keyAEBestType = 1885500276; - -const int keyAEBgndColor = 1801610092; - -const int keyAEBgndPattern = 1801613428; - -const int keyAEBounds = 1885498980; - -const int keyAEBufferSize = 1651861094; - -const int keyAECellList = 1801677940; - -const int keyAEClassID = 1668041028; - -const int keyAEClauseOffsets = 1668047221; - -const int keyAEColor = 1668246642; - -const int keyAEColorTable = 1668052066; - -const int keyAECompOperator = 1919249519; - -const int keyAECompareProc = 1668116594; - -const int keyAEContainer = 1718775661; - -const int keyAECountProc = 1668247156; - -const int keyAECurrentPoint = 1668312947; - -const int keyAECurveHeight = 1801676900; - -const int keyAECurveWidth = 1801680740; - -const int keyAEDashStyle = 1885631348; - -const int keyAEData = 1684108385; - -const int keyAEDefaultType = 1684366964; - -const int keyAEDefinitionRect = 1885631092; - -const int keyAEDescType = 1685288048; - -const int keyAEDesiredClass = 2002873972; - -const int keyAEDestination = 1684370292; - -const int keyAEDoAntiAlias = 1634628705; - -const int keyAEDoDithered = 1734633844; - -const int keyAEDoRotate = 1801745012; - -const int keyAEDoScale = 1802724193; - -const int keyAEDoTranslate = 1802793569; - -const int keyAEDragging = 1651470188; - -const int keyAEEditionFileLoc = 1701605219; - -const int keyAEElements = 1701604723; - -const int keyAEEndPoint = 1885695588; - -const int keyAEEventClass = 1702257516; - -const int keyAEEventID = 1702261865; - -const int keyAEFile = 1801873772; - -const int keyAEFileType = 1718383728; - -const int keyAEFillColor = 1718379372; - -const int keyAEFillPattern = 1718382708; - -const int keyAEFixLength = 1718188140; - -const int keyAEFlipHorizontal = 1801873519; - -const int keyAEFlipVertical = 1801877108; - -const int keyAEFont = 1718578804; - -const int keyAEFormula = 1885761394; - -const int keyAEGetErrDescProc = 1768842339; - -const int keyAEGraphicObjects = 1735352947; - -const int keyAEHiliteRange = 1752329831; - -const int keyAEID = 1229201440; - -const int keyAEImageQuality = 1735488865; - -const int keyAEIndex = 1802069112; - -const int keyAEInsertHere = 1768846184; - -const int keyAEKeyData = 1936026724; - -const int keyAEKeyForm = 1718579821; - -const int keyAEKeyForms = 1801812326; - -const int keyAEKeyword = 1803122532; - -const int keyAELaunchedAsLogInItem = 1818716532; - -const int keyAELaunchedAsServiceItem = 1937140084; - -const int keyAELeftSide = 1802265958; - -const int keyAELevel = 1818588780; - -const int keyAELineArrow = 1634890351; - -const int keyAELogicalOperator = 1819240291; - -const int keyAELogicalTerms = 1952805485; - -const int keyAEMarkProc = 1835102827; - -const int keyAEMarkTokenProc = 1835755876; - -const int keyAEMoveView = 1836480119; - -const int keyAEName = 1886282093; - -const int keyAENewElementLoc = 1886283116; - -const int keyAENextBody = 1853383268; - -const int keyAEObject = 1802461802; - -const int keyAEObject1 = 1868720689; - -const int keyAEObject2 = 1868720690; - -const int keyAEObjectClass = 1802462060; - -const int keyAEOffStyles = 1868985204; - -const int keyAEOffset = 1868985204; - -const int keyAEOnStyles = 1869509492; - -const int keyAEPMTable = 1802530164; - -const int keyAEPOSTHeaderData = 1885889892; - -const int keyAEParamFlags = 1886217831; - -const int keyAEParameters = 1886547315; - -const int keyAEPenColor = 1886413676; - -const int keyAEPenPattern = 1886416993; - -const int keyAEPenWidth = 1886418788; - -const int keyAEPinRange = 1886286439; - -const int keyAEPixMapMinus = 1802530157; - -const int keyAEPixelDepth = 1885630580; - -const int keyAEPoint = 1735421811; - -const int keyAEPointList = 1886678132; - -const int keyAEPointSize = 1886679930; - -const int keyAEPosition = 1802530675; - -const int keyAEPropData = 1886545012; - -const int keyAEPropFlags = 1886545511; - -const int keyAEPropID = 1886547824; - -const int keyAEProperties = 1903194735; - -const int keyAEProperty = 1802531440; - -const int keyAEProtection = 1886417519; - -const int keyAERangeStart = 1937006962; - -const int keyAERangeStop = 1937010544; - -const int keyAERecorderCount = 1919247218; - -const int keyAERegionClass = 1919381091; - -const int keyAERenderAs = 1802659182; - -const int keyAEReplyHeaderData = 1919444324; - -const int keyAERequestedType = 1920235888; - -const int keyAERestoreAppState = 1920169071; - -const int keyAEResult = 757935405; - -const int keyAEResultInfo = 1920166254; - -const int keyAERotPoint = 1802663024; - -const int keyAERotation = 1886547828; - -const int keyAERowList = 1802660979; - -const int keyAESaveOptions = 1935767151; - -const int keyAEScale = 1886610284; - -const int keyAEScriptTag = 1886610292; - -const int keyAESearchText = 1937012852; - -const int keyAEServerInstance = 1936881257; - -const int keyAEShowWhere = 1936224119; - -const int keyAEStartAngle = 1885433447; - -const int keyAEStartPoint = 1886614640; - -const int keyAEStyles = 1802728569; - -const int keyAESuiteID = 1937074548; - -const int keyAETSMDocumentRefcon = 1919247971; - -const int keyAETSMEventRecord = 1952806516; - -const int keyAETSMEventRef = 1952806514; - -const int keyAETSMGlyphInfoArray = 1952934241; - -const int keyAETSMScriptTag = 1935895655; - -const int keyAETSMTextFMFont = 1802795117; - -const int keyAETSMTextFont = 1802795110; - -const int keyAETSMTextPointSize = 1802793075; - -const int keyAETest = 1802793844; - -const int keyAEText = 1802795124; - -const int keyAETextColor = 1886681187; - -const int keyAETextFont = 1886681190; - -const int keyAETextLineAscent = 1802789235; - -const int keyAETextLineHeight = 1802792040; - -const int keyAETextPointSize = 1886679155; - -const int keyAETextServiceEncoding = 1953719662; - -const int keyAETextServiceMacEncoding = 1953326446; - -const int keyAETextStyles = 1954050932; - -const int keyAETheData = 1801740660; - -const int keyAETheText = 1953002616; - -const int keyAETransferMode = 1886418029; - -const int keyAETranslation = 1886679667; - -const int keyAETryAsStructGraf = 1953460071; - -const int keyAEUniformStyles = 1970500716; - -const int keyAEUpdateOn = 1886744676; - -const int keyAEUpdateRange = 1969516135; - -const int keyAEUserTerm = 1970565741; - -const int keyAEVersion = 1986359923; - -const int keyAEWhoseRangeStart = 2004055154; - -const int keyAEWhoseRangeStop = 2004055152; - -const int keyAEWindow = 2003723383; - -const int keyAEWritingCode = 2003985252; - -const int keyAEXMLReplyData = 2020762992; - -const int keyAEXMLRequestData = 2020762993; - -const int keyAcceptTimeoutAttr = 1633907821; - -const int keyActualSenderAuditToken = 1633902964; - -const int keyAdditionalHTTPHeaders = 1634231652; - -const int keyAddressAttr = 1633969266; - -const int keyAppleEventAttributesAttr = 1635021938; - -const int keyCloseAllWindows = 1667331872; - -const int keyDirectObject = 757935405; - -const int keyDisableAuthenticationAttr = 1635087464; - -const int keyDisposeTokenProc = 2020896619; - -const int keyDriveNumber = 1685222947; - -const int keyErrorCode = 1701999139; - -const int keyErrorNumber = 1701999214; - -const int keyErrorString = 1701999219; - -const int keyEventClassAttr = 1702257516; - -const int keyEventIDAttr = 1702259044; - -const int keyEventSourceAttr = 1702064739; - -const int keyEvtDev = 7; - -const int keyHighLevelClass = 1751346291; - -const int keyHighLevelID = 1751737376; - -const int keyICEditPreferenceDestination = 1684370292; - -const int keyInteractLevelAttr = 1768846437; - -const int keyKey = 1801812256; - -const int keyKeyCode = 1668244581; - -const int keyKeyboard = 1801812322; - -const int keyLocalWhere = 1819764850; - -const int keyMenuID = 1835623456; - -const int keyMenuItem = 1835627629; - -const int keyMiscellaneous = 1718448995; - -const int keyMissedKeywordAttr = 1835627379; - -const int keyModifiers = 1836016755; - -const int keyNewBounds = 1851944548; - -const int keyOptionalKeywordAttr = 1869640811; - -const int keyOriginalAddressAttr = 1718775661; - -const int keyOriginalBounds = 1868721764; - -const int keyPreDispatch = 1885888867; - -const int keyProcessSerialNumber = 1886613024; - -const int keyRPCMethodName = 1835365480; - -const int keyRPCMethodParam = 1885434477; - -const int keyRPCMethodParamOrder = 795832932; - -const int keyReplyPortAttr = 1919250544; - -const int keyReplyRequestedAttr = 1919250545; - -const int keyReturnIDAttr = 1920231780; - -const int keySOAPAction = 1935762292; - -const int keySOAPMethodNameSpace = 1836281955; - -const int keySOAPMethodNameSpaceURI = 1836281973; - -const int keySOAPSMDNamespace = 1936944755; - -const int keySOAPSMDNamespaceURI = 1936944757; - -const int keySOAPSMDType = 1936946288; - -const int keySOAPSchemaVersion = 1936941928; - -const int keySOAPStructureMetaData = 796093796; - -const int keySelectProc = 1936026728; - -const int keySelection = 1718838636; - -const int keySenderApplescriptEntitlementsAttr = 1701737580; - -const int keySenderApplicationIdentifierEntitlementAttr = 1634297185; - -const int keySenderApplicationSandboxed = 1936946018; - -const int keySenderAuditTokenAttr = 1953459054; - -const int keySenderEGIDAttr = 1936157028; - -const int keySenderEUIDAttr = 1936025956; - -const int keySenderGIDAttr = 1734960243; - -const int keySenderPIDAttr = 1936746852; - -const int keySenderUIDAttr = 1969841267; - -const int keyTimeoutAttr = 1953066351; - -const int keyTransactionIDAttr = 1953653102; - -const int keyUserNameAttr = 1970168173; - -const int keyUserPasswordAttr = 1885434739; - -const int keyWhen = 2003330414; - -const int keyWhere = 2003330418; - -const int keyWindow = 1802989156; - -const int keyXMLDebuggingAttr = 2019844711; - -typedef key_t = __int32_t; - -const int kfullPrivileges = 458759; - -@Deprecated('Deprecated') -const int kiMovieFolderType = 1768779638; - -@Deprecated('Deprecated') -const int kiMoviePlugInsFolderType = 1768779881; - -@Deprecated('Deprecated') -const int kiMovieSoundEffectsFolderType = 1768780645; - -const int kioACAccessBlankAccessBit = 28; - -const int kioACAccessBlankAccessMask = 268435456; - -const int kioACAccessEveryoneReadBit = 17; - -const int kioACAccessEveryoneReadMask = 131072; - -const int kioACAccessEveryoneSearchBit = 16; - -const int kioACAccessEveryoneSearchMask = 65536; - -const int kioACAccessEveryoneWriteBit = 18; - -const int kioACAccessEveryoneWriteMask = 262144; - -const int kioACAccessGroupReadBit = 9; - -const int kioACAccessGroupReadMask = 512; - -const int kioACAccessGroupSearchBit = 8; - -const int kioACAccessGroupSearchMask = 256; - -const int kioACAccessGroupWriteBit = 10; - -const int kioACAccessGroupWriteMask = 1024; - -const int kioACAccessOwnerBit = 31; - -const int kioACAccessOwnerMask = -2147483648; - -const int kioACAccessOwnerReadBit = 1; - -const int kioACAccessOwnerReadMask = 2; - -const int kioACAccessOwnerSearchBit = 0; - -const int kioACAccessOwnerSearchMask = 1; - -const int kioACAccessOwnerWriteBit = 2; - -const int kioACAccessOwnerWriteMask = 4; - -const int kioACAccessUserReadBit = 25; - -const int kioACAccessUserReadMask = 33554432; - -const int kioACAccessUserSearchBit = 24; - -const int kioACAccessUserSearchMask = 16777216; - -const int kioACAccessUserWriteBit = 26; - -const int kioACAccessUserWriteMask = 67108864; - -const int kioACUserNoMakeChangesBit = 2; - -const int kioACUserNoMakeChangesMask = 4; - -const int kioACUserNoSeeFilesBit = 1; - -const int kioACUserNoSeeFilesMask = 2; - -const int kioACUserNoSeeFolderBit = 0; - -const int kioACUserNoSeeFolderMask = 1; - -const int kioACUserNotOwnerBit = 7; - -const int kioACUserNotOwnerMask = 128; - -const int kioFCBFileLockedBit = 13; - -const int kioFCBFileLockedMask = 8192; - -const int kioFCBLargeFileBit = 11; - -const int kioFCBLargeFileMask = 2048; - -const int kioFCBModifiedBit = 15; - -const int kioFCBModifiedMask = 32768; - -const int kioFCBOwnClumpBit = 14; - -const int kioFCBOwnClumpMask = 16384; - -const int kioFCBResourceBit = 9; - -const int kioFCBResourceMask = 512; - -const int kioFCBSharedWriteBit = 12; - -const int kioFCBSharedWriteMask = 4096; - -const int kioFCBWriteBit = 8; - -const int kioFCBWriteLockedBit = 10; - -const int kioFCBWriteLockedMask = 1024; - -const int kioFCBWriteMask = 256; - -const int kioFlAttribCopyProtBit = 6; - -const int kioFlAttribCopyProtMask = 64; - -const int kioFlAttribDataOpenBit = 3; - -const int kioFlAttribDataOpenMask = 8; - -const int kioFlAttribDirBit = 4; - -const int kioFlAttribDirMask = 16; - -const int kioFlAttribFileOpenBit = 7; - -const int kioFlAttribFileOpenMask = 128; - -const int kioFlAttribInSharedBit = 2; - -const int kioFlAttribInSharedMask = 4; - -const int kioFlAttribLockedBit = 0; - -const int kioFlAttribLockedMask = 1; - -const int kioFlAttribMountedBit = 3; - -const int kioFlAttribMountedMask = 8; - -const int kioFlAttribResOpenBit = 2; - -const int kioFlAttribResOpenMask = 4; - -const int kioFlAttribSharePointBit = 5; - -const int kioFlAttribSharePointMask = 32; - -const int kioVAtrbDefaultVolumeBit = 5; - -const int kioVAtrbDefaultVolumeMask = 32; - -const int kioVAtrbFilesOpenBit = 6; - -const int kioVAtrbFilesOpenMask = 64; - -const int kioVAtrbHardwareLockedBit = 7; - -const int kioVAtrbHardwareLockedMask = 128; - -const int kioVAtrbSoftwareLockedBit = 15; - -const int kioVAtrbSoftwareLockedMask = 32768; - -typedef kmod_args_t = ffi.Pointer; -typedef kmod_control_flavor_t = ffi.Int; -typedef Dartkmod_control_flavor_t = int; - -@ffi.Packed(4) -final class kmod_info extends ffi.Struct { - external ffi.Pointer next; - - @ffi.Int32() - external int info_version; - - @ffi.Uint32() - external int id; - - @ffi.Array.multi([64]) - external ffi.Array name; - - @ffi.Array.multi([64]) - external ffi.Array version; - - @ffi.Int32() - external int reference_count; - - external ffi.Pointer reference_list; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_size_t() - external int hdr_size; - - external ffi.Pointer start; - - external ffi.Pointer stop; -} - -final class kmod_info_32_v1 extends ffi.Struct { - @ffi.Uint32() - external int next_addr; - - @ffi.Int32() - external int info_version; - - @ffi.Uint32() - external int id; - - @ffi.Array.multi([64]) - external ffi.Array name; - - @ffi.Array.multi([64]) - external ffi.Array version; - - @ffi.Int32() - external int reference_count; - - @ffi.Uint32() - external int reference_list_addr; - - @ffi.Uint32() - external int address; - - @ffi.Uint32() - external int size; - - @ffi.Uint32() - external int hdr_size; - - @ffi.Uint32() - external int start_addr; - - @ffi.Uint32() - external int stop_addr; -} - -typedef kmod_info_32_v1_t = kmod_info_32_v1; - -@ffi.Packed(4) -final class kmod_info_64_v1 extends ffi.Struct { - @ffi.Uint64() - external int next_addr; - - @ffi.Int32() - external int info_version; - - @ffi.Uint32() - external int id; - - @ffi.Array.multi([64]) - external ffi.Array name; - - @ffi.Array.multi([64]) - external ffi.Array version; - - @ffi.Int32() - external int reference_count; - - @ffi.Uint64() - external int reference_list_addr; - - @ffi.Uint64() - external int address; - - @ffi.Uint64() - external int size; - - @ffi.Uint64() - external int hdr_size; - - @ffi.Uint64() - external int start_addr; - - @ffi.Uint64() - external int stop_addr; -} - -typedef kmod_info_64_v1_t = kmod_info_64_v1; -typedef kmod_info_array_t = ffi.Pointer; -typedef kmod_info_t = kmod_info; - -@ffi.Packed(4) -final class kmod_reference extends ffi.Struct { - external ffi.Pointer next; - - external ffi.Pointer info; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer next, - required ffi.Pointer info, - }) => $allocator() - ..ref.next = next - ..ref.info = info; -} - -typedef kmod_reference_t = kmod_reference; -typedef kmod_start_func_t = - ffi.NativeFunction< - kern_return_t Function( - ffi.Pointer ki, - ffi.Pointer data, - ) - >; -typedef kmod_stop_func_t = - ffi.NativeFunction< - kern_return_t Function( - ffi.Pointer ki, - ffi.Pointer data, - ) - >; -typedef kmod_t = ffi.Int; -typedef Dartkmod_t = int; - -const int knoGroup = 0; - -const int knoUser = 0; - -const int kownerPrivileges = 7; - -final class kr_policy_list_item extends ffi.Opaque {} - -const int laDictionaryNotOpenedErr = -6992; - -const int laDictionaryTooManyErr = -6994; - -const int laDictionaryUnknownErr = -6993; - -const int laEngineNotFoundErr = -7000; - -const int laEnvironmentBusyErr = -6985; - -const int laEnvironmentExistErr = -6987; - -const int laEnvironmentNotFoundErr = -6986; - -const int laFailAnalysisErr = -6990; - -const int laInvalidPathErr = -6988; - -const int laNoMoreMorphemeErr = -6989; - -const int laPropertyErr = -6999; - -const int laPropertyIsReadOnlyErr = -6997; - -const int laPropertyNotFoundErr = -6998; - -const int laPropertyUnknownErr = -6996; - -const int laPropertyValueErr = -6995; - -const int laTextOverFlowErr = -6991; - -const int laTooSmallBufferErr = -6984; - -typedef labelstr_t = ffi.Pointer; -@Deprecated('Deprecated') -const int langAfricaans = 141; - -@Deprecated('Deprecated') -const int langAfrikaans = 141; - -@Deprecated('Deprecated') -const int langAlbanian = 36; - -@Deprecated('Deprecated') -const int langAmharic = 85; - -@Deprecated('Deprecated') -const int langArabic = 12; - -@Deprecated('Deprecated') -const int langArmenian = 51; - -@Deprecated('Deprecated') -const int langAssamese = 68; - -@Deprecated('Deprecated') -const int langAymara = 134; - -@Deprecated('Deprecated') -const int langAzerbaijanAr = 50; - -@Deprecated('Deprecated') -const int langAzerbaijanRoman = 150; - -@Deprecated('Deprecated') -const int langAzerbaijani = 49; - -@Deprecated('Deprecated') -const int langBasque = 129; - -@Deprecated('Deprecated') -const int langBelorussian = 46; - -@Deprecated('Deprecated') -const int langBengali = 67; - -@Deprecated('Deprecated') -const int langBreton = 142; - -@Deprecated('Deprecated') -const int langBulgarian = 44; - -@Deprecated('Deprecated') -const int langBurmese = 77; - -@Deprecated('Deprecated') -const int langByelorussian = 46; - -@Deprecated('Deprecated') -const int langCatalan = 130; - -@Deprecated('Deprecated') -const int langChewa = 92; - -@Deprecated('Deprecated') -const int langChinese = 19; - -@Deprecated('Deprecated') -const int langCroatian = 18; - -@Deprecated('Deprecated') -const int langCzech = 38; - -@Deprecated('Deprecated') -const int langDanish = 7; - -@Deprecated('Deprecated') -const int langDutch = 4; - -@Deprecated('Deprecated') -const int langDzongkha = 137; - -@Deprecated('Deprecated') -const int langEnglish = 0; - -@Deprecated('Deprecated') -const int langEsperanto = 94; - -@Deprecated('Deprecated') -const int langEstonian = 27; - -@Deprecated('Deprecated') -const int langFaeroese = 30; - -@Deprecated('Deprecated') -const int langFaroese = 30; - -@Deprecated('Deprecated') -const int langFarsi = 31; - -@Deprecated('Deprecated') -const int langFinnish = 13; - -@Deprecated('Deprecated') -const int langFlemish = 34; - -@Deprecated('Deprecated') -const int langFrench = 1; - -@Deprecated('Deprecated') -const int langGalician = 140; - -@Deprecated('Deprecated') -const int langGalla = 87; - -@Deprecated('Deprecated') -const int langGeorgian = 52; - -@Deprecated('Deprecated') -const int langGerman = 2; - -@Deprecated('Deprecated') -const int langGreek = 14; - -@Deprecated('Deprecated') -const int langGreekAncient = 148; - -@Deprecated('Deprecated') -const int langGreekPoly = 148; - -@Deprecated('Deprecated') -const int langGreenlandic = 149; - -@Deprecated('Deprecated') -const int langGuarani = 133; - -@Deprecated('Deprecated') -const int langGujarati = 69; - -@Deprecated('Deprecated') -const int langHebrew = 10; - -@Deprecated('Deprecated') -const int langHindi = 21; - -@Deprecated('Deprecated') -const int langHungarian = 26; - -@Deprecated('Deprecated') -const int langIcelandic = 15; - -@Deprecated('Deprecated') -const int langIndonesian = 81; - -@Deprecated('Deprecated') -const int langInuktitut = 143; - -@Deprecated('Deprecated') -const int langIrish = 35; - -@Deprecated('Deprecated') -const int langIrishGaelic = 35; - -@Deprecated('Deprecated') -const int langIrishGaelicScript = 146; - -@Deprecated('Deprecated') -const int langItalian = 3; - -@Deprecated('Deprecated') -const int langJapanese = 11; - -@Deprecated('Deprecated') -const int langJavaneseRom = 138; - -@Deprecated('Deprecated') -const int langKannada = 73; - -@Deprecated('Deprecated') -const int langKashmiri = 61; - -@Deprecated('Deprecated') -const int langKazakh = 48; - -@Deprecated('Deprecated') -const int langKhmer = 78; - -@Deprecated('Deprecated') -const int langKinyarwanda = 90; - -@Deprecated('Deprecated') -const int langKirghiz = 54; - -@Deprecated('Deprecated') -const int langKorean = 23; - -@Deprecated('Deprecated') -const int langKurdish = 60; - -@Deprecated('Deprecated') -const int langLao = 79; - -@Deprecated('Deprecated') -const int langLappish = 29; - -@Deprecated('Deprecated') -const int langLapponian = 29; - -@Deprecated('Deprecated') -const int langLatin = 131; - -@Deprecated('Deprecated') -const int langLatvian = 28; - -@Deprecated('Deprecated') -const int langLettish = 28; - -@Deprecated('Deprecated') -const int langLithuanian = 24; - -@Deprecated('Deprecated') -const int langMacedonian = 43; - -@Deprecated('Deprecated') -const int langMalagasy = 93; - -@Deprecated('Deprecated') -const int langMalayArabic = 84; - -@Deprecated('Deprecated') -const int langMalayRoman = 83; - -@Deprecated('Deprecated') -const int langMalayalam = 72; - -@Deprecated('Deprecated') -const int langMalta = 16; - -@Deprecated('Deprecated') -const int langMaltese = 16; - -@Deprecated('Deprecated') -const int langManxGaelic = 145; - -@Deprecated('Deprecated') -const int langMarathi = 66; - -@Deprecated('Deprecated') -const int langMoldavian = 53; - -@Deprecated('Deprecated') -const int langMongolian = 57; - -@Deprecated('Deprecated') -const int langMongolianCyr = 58; - -@Deprecated('Deprecated') -const int langNepali = 64; - -@Deprecated('Deprecated') -const int langNorwegian = 9; - -@Deprecated('Deprecated') -const int langNyanja = 92; - -@Deprecated('Deprecated') -const int langNynorsk = 151; - -@Deprecated('Deprecated') -const int langOriya = 71; - -@Deprecated('Deprecated') -const int langOromo = 87; - -@Deprecated('Deprecated') -const int langPashto = 59; - -@Deprecated('Deprecated') -const int langPersian = 31; - -@Deprecated('Deprecated') -const int langPolish = 25; - -@Deprecated('Deprecated') -const int langPortugese = 8; - -@Deprecated('Deprecated') -const int langPortuguese = 8; - -@Deprecated('Deprecated') -const int langPunjabi = 70; - -@Deprecated('Deprecated') -const int langQuechua = 132; - -@Deprecated('Deprecated') -const int langRomanian = 37; - -@Deprecated('Deprecated') -const int langRuanda = 90; - -@Deprecated('Deprecated') -const int langRundi = 91; - -@Deprecated('Deprecated') -const int langRussian = 32; - -@Deprecated('Deprecated') -const int langSaamisk = 29; - -@Deprecated('Deprecated') -const int langSami = 29; - -@Deprecated('Deprecated') -const int langSanskrit = 65; - -@Deprecated('Deprecated') -const int langScottishGaelic = 144; - -@Deprecated('Deprecated') -const int langSerbian = 42; - -@Deprecated('Deprecated') -const int langSimpChinese = 33; - -@Deprecated('Deprecated') -const int langSindhi = 62; - -@Deprecated('Deprecated') -const int langSinhalese = 76; - -@Deprecated('Deprecated') -const int langSlovak = 39; - -@Deprecated('Deprecated') -const int langSlovenian = 40; - -@Deprecated('Deprecated') -const int langSomali = 88; - -@Deprecated('Deprecated') -const int langSpanish = 6; - -@Deprecated('Deprecated') -const int langSundaneseRom = 139; - -@Deprecated('Deprecated') -const int langSwahili = 89; - -@Deprecated('Deprecated') -const int langSwedish = 5; - -@Deprecated('Deprecated') -const int langTagalog = 82; - -@Deprecated('Deprecated') -const int langTajiki = 55; - -@Deprecated('Deprecated') -const int langTamil = 74; - -@Deprecated('Deprecated') -const int langTatar = 135; - -@Deprecated('Deprecated') -const int langTelugu = 75; - -@Deprecated('Deprecated') -const int langThai = 22; - -@Deprecated('Deprecated') -const int langTibetan = 63; - -@Deprecated('Deprecated') -const int langTigrinya = 86; - -@Deprecated('Deprecated') -const int langTongan = 147; - -@Deprecated('Deprecated') -const int langTradChinese = 19; - -@Deprecated('Deprecated') -const int langTurkish = 17; - -@Deprecated('Deprecated') -const int langTurkmen = 56; - -@Deprecated('Deprecated') -const int langUighur = 136; - -@Deprecated('Deprecated') -const int langUkrainian = 45; - -@Deprecated('Deprecated') -const int langUnspecified = 32767; - -@Deprecated('Deprecated') -const int langUrdu = 20; - -@Deprecated('Deprecated') -const int langUzbek = 47; - -@Deprecated('Deprecated') -const int langVietnamese = 80; - -@Deprecated('Deprecated') -const int langWelsh = 128; - -@Deprecated('Deprecated') -const int langYiddish = 41; - -@Deprecated('Deprecated') -const int langYugoslavian = 18; - -const int lapProtErr = -94; - -const int large1BitMask = 1229147683; - -const int large4BitData = 1768123444; - -const int large8BitData = 1768123448; - -const int lastDskErr = -64; - -const int launchAllow24Bit = 256; - -const int launchContinue = 16384; - -const int launchDontSwitch = 512; - -const int launchInhibitDaemon = 128; - -const int launchNoFileFlags = 2048; - -const int launchUseMinimum = 1024; - -typedef launch_data_dict_iterator_t = - ffi.Pointer>; -typedef launch_data_dict_iterator_tFunction = - ffi.Void Function( - launch_data_t lval, - ffi.Pointer key, - ffi.Pointer ctx, - ); -typedef Dartlaunch_data_dict_iterator_tFunction = - void Function( - launch_data_t lval, - ffi.Pointer key, - ffi.Pointer ctx, - ); -typedef launch_data_t = ffi.Pointer<_launch_data>; - -enum launch_data_type_t { - LAUNCH_DATA_DICTIONARY(1), - LAUNCH_DATA_ARRAY(2), - LAUNCH_DATA_FD(3), - LAUNCH_DATA_INTEGER(4), - LAUNCH_DATA_REAL(5), - LAUNCH_DATA_BOOL(6), - LAUNCH_DATA_STRING(7), - LAUNCH_DATA_OPAQUE(8), - LAUNCH_DATA_ERRNO(9), - LAUNCH_DATA_MACHPORT(10); - - final int value; - const launch_data_type_t(this.value); - - static launch_data_type_t fromValue(int value) => switch (value) { - 1 => LAUNCH_DATA_DICTIONARY, - 2 => LAUNCH_DATA_ARRAY, - 3 => LAUNCH_DATA_FD, - 4 => LAUNCH_DATA_INTEGER, - 5 => LAUNCH_DATA_REAL, - 6 => LAUNCH_DATA_BOOL, - 7 => LAUNCH_DATA_STRING, - 8 => LAUNCH_DATA_OPAQUE, - 9 => LAUNCH_DATA_ERRNO, - 10 => LAUNCH_DATA_MACHPORT, - _ => throw ArgumentError('Unknown value for launch_data_type_t: $value'), - }; -} - -final class lconv extends ffi.Struct { - external ffi.Pointer decimal_point; - - external ffi.Pointer thousands_sep; - - external ffi.Pointer grouping; - - external ffi.Pointer int_curr_symbol; - - external ffi.Pointer currency_symbol; - - external ffi.Pointer mon_decimal_point; - - external ffi.Pointer mon_thousands_sep; - - external ffi.Pointer mon_grouping; - - external ffi.Pointer positive_sign; - - external ffi.Pointer negative_sign; - - @ffi.Char() - external int int_frac_digits; - - @ffi.Char() - external int frac_digits; - - @ffi.Char() - external int p_cs_precedes; - - @ffi.Char() - external int p_sep_by_space; - - @ffi.Char() - external int n_cs_precedes; - - @ffi.Char() - external int n_sep_by_space; - - @ffi.Char() - external int p_sign_posn; - - @ffi.Char() - external int n_sign_posn; - - @ffi.Char() - external int int_p_cs_precedes; - - @ffi.Char() - external int int_n_cs_precedes; - - @ffi.Char() - external int int_p_sep_by_space; - - @ffi.Char() - external int int_n_sep_by_space; - - @ffi.Char() - external int int_p_sign_posn; - - @ffi.Char() - external int int_n_sign_posn; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer decimal_point, - required ffi.Pointer thousands_sep, - required ffi.Pointer grouping, - required ffi.Pointer int_curr_symbol, - required ffi.Pointer currency_symbol, - required ffi.Pointer mon_decimal_point, - required ffi.Pointer mon_thousands_sep, - required ffi.Pointer mon_grouping, - required ffi.Pointer positive_sign, - required ffi.Pointer negative_sign, - required int int_frac_digits, - required int frac_digits, - required int p_cs_precedes, - required int p_sep_by_space, - required int n_cs_precedes, - required int n_sep_by_space, - required int p_sign_posn, - required int n_sign_posn, - required int int_p_cs_precedes, - required int int_n_cs_precedes, - required int int_p_sep_by_space, - required int int_n_sep_by_space, - required int int_p_sign_posn, - required int int_n_sign_posn, - }) => $allocator() - ..ref.decimal_point = decimal_point - ..ref.thousands_sep = thousands_sep - ..ref.grouping = grouping - ..ref.int_curr_symbol = int_curr_symbol - ..ref.currency_symbol = currency_symbol - ..ref.mon_decimal_point = mon_decimal_point - ..ref.mon_thousands_sep = mon_thousands_sep - ..ref.mon_grouping = mon_grouping - ..ref.positive_sign = positive_sign - ..ref.negative_sign = negative_sign - ..ref.int_frac_digits = int_frac_digits - ..ref.frac_digits = frac_digits - ..ref.p_cs_precedes = p_cs_precedes - ..ref.p_sep_by_space = p_sep_by_space - ..ref.n_cs_precedes = n_cs_precedes - ..ref.n_sep_by_space = n_sep_by_space - ..ref.p_sign_posn = p_sign_posn - ..ref.n_sign_posn = n_sign_posn - ..ref.int_p_cs_precedes = int_p_cs_precedes - ..ref.int_n_cs_precedes = int_n_cs_precedes - ..ref.int_p_sep_by_space = int_p_sep_by_space - ..ref.int_n_sep_by_space = int_n_sep_by_space - ..ref.int_p_sign_posn = int_p_sign_posn - ..ref.int_n_sign_posn = int_n_sign_posn; -} - -final class ldiv_t extends ffi.Struct { - @ffi.Long() - external int quot; - - @ffi.Long() - external int rem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int quot, - required int rem, - }) => $allocator() - ..ref.quot = quot - ..ref.rem = rem; -} - -typedef ledger_amount_t = ffi.Int64; -typedef Dartledger_amount_t = int; -typedef ledger_array_t = ffi.Pointer; -typedef ledger_item_t = natural_t; -typedef ledger_port_array_t = ledger_array_t; -typedef ledger_port_t = ledger_t; -typedef ledger_t = mach_port_t; - -const int leftOverChars = 2; - -@Deprecated('Deprecated') -const int leftSingGuillemet = 220; - -const int limitReachedErr = -30549; - -final class linger extends ffi.Struct { - @ffi.Int() - external int l_onoff; - - @ffi.Int() - external int l_linger; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int l_onoff, - required int l_linger, - }) => $allocator() - ..ref.l_onoff = l_onoff - ..ref.l_linger = l_linger; -} - -final class lldiv_t extends ffi.Struct { - @ffi.LongLong() - external int quot; - - @ffi.LongLong() - external int rem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int quot, - required int rem, - }) => $allocator() - ..ref.quot = quot - ..ref.rem = rem; -} - -const int localOnlyErr = -905; - -typedef locale_t = ffi.Pointer<_xlocale>; - -const int lockPortBitsBadPortErr = -8984; - -const int lockPortBitsBadSurfaceErr = -8980; - -const int lockPortBitsSurfaceLostErr = -8985; - -const int lockPortBitsWindowClippedErr = -8983; - -const int lockPortBitsWindowMovedErr = -8981; - -const int lockPortBitsWindowResizedErr = -8982; - -const int lockPortBitsWrongGDeviceErr = -8991; - -typedef lock_set_port_t = lock_set_t; -typedef lock_set_t = mach_port_t; - -final class lockgroup_info extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array lockgroup_name; - - @ffi.Uint64() - external int lockgroup_attr; - - @ffi.Uint64() - external int lock_spin_cnt; - - @ffi.Uint64() - external int lock_spin_util_cnt; - - @ffi.Uint64() - external int lock_spin_held_cnt; - - @ffi.Uint64() - external int lock_spin_miss_cnt; - - @ffi.Uint64() - external int lock_spin_held_max; - - @ffi.Uint64() - external int lock_spin_held_cum; - - @ffi.Uint64() - external int lock_mtx_cnt; - - @ffi.Uint64() - external int lock_mtx_util_cnt; - - @ffi.Uint64() - external int lock_mtx_held_cnt; - - @ffi.Uint64() - external int lock_mtx_miss_cnt; - - @ffi.Uint64() - external int lock_mtx_wait_cnt; - - @ffi.Uint64() - external int lock_mtx_held_max; - - @ffi.Uint64() - external int lock_mtx_held_cum; - - @ffi.Uint64() - external int lock_mtx_wait_max; - - @ffi.Uint64() - external int lock_mtx_wait_cum; - - @ffi.Uint64() - external int lock_rw_cnt; - - @ffi.Uint64() - external int lock_rw_util_cnt; - - @ffi.Uint64() - external int lock_rw_held_cnt; - - @ffi.Uint64() - external int lock_rw_miss_cnt; - - @ffi.Uint64() - external int lock_rw_wait_cnt; - - @ffi.Uint64() - external int lock_rw_held_max; - - @ffi.Uint64() - external int lock_rw_held_cum; - - @ffi.Uint64() - external int lock_rw_wait_max; - - @ffi.Uint64() - external int lock_rw_wait_cum; -} - -typedef lockgroup_info_array_t = ffi.Pointer; -typedef lockgroup_info_t = lockgroup_info; - -@ffi.Packed(4) -final class log2phys extends ffi.Struct { - @ffi.UnsignedInt() - external int l2p_flags; - - @off_t() - external int l2p_contigbytes; - - @off_t() - external int l2p_devoffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int l2p_flags, - required int l2p_contigbytes, - required int l2p_devoffset, - }) => $allocator() - ..ref.l2p_flags = l2p_flags - ..ref.l2p_contigbytes = l2p_contigbytes - ..ref.l2p_devoffset = l2p_devoffset; -} - -const int longDate = 1; - -const int longDateFound = 1; - -const int longDay = 0; - -const int longMonth = 2; - -const int longWeek = 1; - -const int longYear = 3; - -const int mBarNFnd = -126; - -const int mFulErr = -41; - -const int macDev = 8; - -final class mach_core_details extends ffi.Struct { - @ffi.Uint64() - external int gzip_offset; - - @ffi.Uint64() - external int gzip_length; - - @ffi.Array.multi([16]) - external ffi.Array core_name; -} - -final class mach_core_details_v2 extends ffi.Struct { - @ffi.Uint64() - external int flags; - - @ffi.Uint64() - external int offset; - - @ffi.Uint64() - external int length; - - @ffi.Array.multi([16]) - external ffi.Array core_name; -} - -final class mach_core_fileheader extends ffi.Struct { - @ffi.Uint64() - external int signature; - - @ffi.Uint64() - external int log_offset; - - @ffi.Uint64() - external int log_length; - - @ffi.Uint64() - external int num_files; - - @ffi.Array.multi([16]) - external ffi.Array files; -} - -final class mach_core_fileheader_base extends ffi.Struct { - @ffi.Uint64() - external int signature; - - @ffi.Uint32() - external int version; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int signature, - required int version, - }) => $allocator() - ..ref.signature = signature - ..ref.version = version; -} - -final class mach_core_fileheader_v2 extends ffi.Opaque {} - -final class mach_dead_name_notification_t extends ffi.Struct { - external mach_msg_header_t not_header; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int not_port; - - external mach_msg_format_0_trailer_t trailer; -} - -typedef mach_error_fn_t = - ffi.Pointer>; -typedef mach_error_fn_tFunction = mach_error_t Function(); -typedef Dartmach_error_fn_tFunction = Dartkern_return_t Function(); -typedef mach_error_t = kern_return_t; -typedef mach_eventlink_t = mach_port_t; -typedef mach_exception_code_t = mach_exception_data_type_t; -typedef mach_exception_data_t = ffi.Pointer; -typedef mach_exception_data_type_t = ffi.Int64; -typedef Dartmach_exception_data_type_t = int; -typedef mach_exception_subcode_t = mach_exception_data_type_t; - -final class mach_memory_info$1 extends ffi.Struct { - @ffi.Uint64() - external int flags; - - @ffi.Uint64() - external int site; - - @ffi.Uint64() - external int size; - - @ffi.Uint64() - external int free$1; - - @ffi.Uint64() - external int largest; - - @ffi.Uint64() - external int collectable_bytes; - - @ffi.Uint64() - external int mapped; - - @ffi.Uint64() - external int peak; - - @ffi.Uint16() - external int tag; - - @ffi.Uint16() - external int zone; - - @ffi.Array.multi([2]) - external ffi.Array _resvA; - - @ffi.Array.multi([3]) - external ffi.Array _resv; - - @ffi.Array.multi([80]) - external ffi.Array name; -} - -typedef mach_memory_info_array_t = ffi.Pointer; -typedef mach_memory_info_t = mach_memory_info$1; - -final class mach_msg_audit_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - @mach_port_seqno_t() - external int msgh_seqno; - - external security_token_t msgh_sender; - - external audit_token_t msgh_audit; -} - -final class mach_msg_base_t extends ffi.Struct { - external mach_msg_header_t header; - - external mach_msg_body_t body; -} - -typedef mach_msg_bits_t = ffi.UnsignedInt; -typedef Dartmach_msg_bits_t = int; - -final class mach_msg_body_t extends ffi.Struct { - @mach_msg_size_t() - external int msgh_descriptor_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_descriptor_count, - }) => - $allocator() - ..ref.msgh_descriptor_count = msgh_descriptor_count; -} - -@ffi.Packed(4) -final class mach_msg_context_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - @mach_port_seqno_t() - external int msgh_seqno; - - external security_token_t msgh_sender; - - external audit_token_t msgh_audit; - - @mach_port_context_t() - external int msgh_context; -} - -typedef mach_msg_copy_options_t = ffi.UnsignedInt; -typedef Dartmach_msg_copy_options_t = int; - -final class mach_msg_descriptor_t extends ffi.Opaque {} - -typedef mach_msg_descriptor_type_t = ffi.UnsignedInt; -typedef Dartmach_msg_descriptor_type_t = int; - -final class mach_msg_empty_rcv_t extends ffi.Struct { - external mach_msg_header_t header; - - external mach_msg_trailer_t trailer; -} - -final class mach_msg_empty_send_t extends ffi.Struct { - external mach_msg_header_t header; -} - -final class mach_msg_empty_t extends ffi.Union { - external mach_msg_empty_send_t send$1; - - external mach_msg_empty_rcv_t rcv; -} - -typedef mach_msg_filter_id = ffi.Int; -typedef Dartmach_msg_filter_id = int; -typedef mach_msg_format_0_trailer_t = mach_msg_security_trailer_t; -typedef mach_msg_guard_flags_t = ffi.UnsignedInt; -typedef Dartmach_msg_guard_flags_t = int; - -final class mach_msg_guarded_port_descriptor32_t extends ffi.Opaque {} - -final class mach_msg_guarded_port_descriptor64_t extends ffi.Opaque {} - -final class mach_msg_guarded_port_descriptor_t extends ffi.Opaque {} - -final class mach_msg_header_t extends ffi.Struct { - @mach_msg_bits_t() - external int msgh_bits; - - @mach_msg_size_t() - external int msgh_size; - - @mach_port_t() - external int msgh_remote_port; - - @mach_port_t() - external int msgh_local_port; - - @mach_port_name_t() - external int msgh_voucher_port; - - @mach_msg_id_t() - external int msgh_id; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_bits, - required int msgh_size, - required int msgh_remote_port, - required int msgh_local_port, - required int msgh_voucher_port, - required int msgh_id, - }) => $allocator() - ..ref.msgh_bits = msgh_bits - ..ref.msgh_size = msgh_size - ..ref.msgh_remote_port = msgh_remote_port - ..ref.msgh_local_port = msgh_local_port - ..ref.msgh_voucher_port = msgh_voucher_port - ..ref.msgh_id = msgh_id; -} - -typedef mach_msg_id_t = integer_t; - -@ffi.Packed(4) -final class mach_msg_mac_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - @mach_port_seqno_t() - external int msgh_seqno; - - external security_token_t msgh_sender; - - external audit_token_t msgh_audit; - - @mach_port_context_t() - external int msgh_context; - - @mach_msg_filter_id() - external int msgh_ad; - - external msg_labels_t msgh_labels; -} - -typedef mach_msg_max_trailer_t = mach_msg_mac_trailer_t; - -final class mach_msg_ool_descriptor32_t extends ffi.Opaque {} - -final class mach_msg_ool_descriptor64_t extends ffi.Opaque {} - -final class mach_msg_ool_descriptor_t extends ffi.Opaque {} - -final class mach_msg_ool_ports_descriptor32_t extends ffi.Opaque {} - -final class mach_msg_ool_ports_descriptor64_t extends ffi.Opaque {} - -final class mach_msg_ool_ports_descriptor_t extends ffi.Opaque {} - -typedef mach_msg_option_t = integer_t; -typedef mach_msg_options_t = integer_t; - -final class mach_msg_port_descriptor_t extends ffi.Opaque {} - -typedef mach_msg_priority_t = ffi.UnsignedInt; -typedef Dartmach_msg_priority_t = int; -typedef mach_msg_return_t = kern_return_t; - -final class mach_msg_security_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - @mach_port_seqno_t() - external int msgh_seqno; - - external security_token_t msgh_sender; -} - -final class mach_msg_seqno_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - @mach_port_seqno_t() - external int msgh_seqno; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_trailer_type, - required int msgh_trailer_size, - required int msgh_seqno, - }) => $allocator() - ..ref.msgh_trailer_type = msgh_trailer_type - ..ref.msgh_trailer_size = msgh_trailer_size - ..ref.msgh_seqno = msgh_seqno; -} - -typedef mach_msg_size_t = natural_t; -typedef mach_msg_timeout_t = natural_t; -typedef mach_msg_trailer_info_t = ffi.Pointer; -typedef mach_msg_trailer_size_t = ffi.UnsignedInt; -typedef Dartmach_msg_trailer_size_t = int; - -final class mach_msg_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_trailer_type, - required int msgh_trailer_size, - }) => $allocator() - ..ref.msgh_trailer_type = msgh_trailer_type - ..ref.msgh_trailer_size = msgh_trailer_size; -} - -typedef mach_msg_trailer_type_t = ffi.UnsignedInt; -typedef Dartmach_msg_trailer_type_t = int; - -final class mach_msg_type_descriptor_t extends ffi.Opaque {} - -typedef mach_msg_type_name_t = ffi.UnsignedInt; -typedef Dartmach_msg_type_name_t = int; -typedef mach_msg_type_number_t = natural_t; -typedef mach_msg_type_size_t = natural_t; - -final class mach_no_senders_notification_t extends ffi.Struct { - external mach_msg_header_t not_header; - - external NDR_record_t NDR; - - @mach_msg_type_number_t() - external int not_count; - - external mach_msg_format_0_trailer_t trailer; -} - -typedef mach_port_array_t = ffi.Pointer; -typedef mach_port_context_t = vm_offset_t; - -final class mach_port_deleted_notification_t extends ffi.Struct { - external mach_msg_header_t not_header; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int not_port; - - external mach_msg_format_0_trailer_t trailer; -} - -typedef mach_port_delta_t = integer_t; - -final class mach_port_destroyed_notification_t extends ffi.Opaque {} - -typedef mach_port_flavor_t = ffi.Int; -typedef Dartmach_port_flavor_t = int; - -enum mach_port_guard_exception_codes { - kGUARD_EXC_NONE(0), - kGUARD_EXC_DESTROY(1), - kGUARD_EXC_MOD_REFS(2), - kGUARD_EXC_INVALID_OPTIONS(3), - kGUARD_EXC_SET_CONTEXT(4), - kGUARD_EXC_THREAD_SET_STATE(5), - kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE(6), - kGUARD_EXC_SERVICE_PORT_VIOLATION_FATAL(7), - kGUARD_EXC_UNGUARDED(8), - kGUARD_EXC_KOBJECT_REPLY_PORT_SEMANTICS(9), - kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS(10), - kGUARD_EXC_INCORRECT_GUARD(16), - kGUARD_EXC_IMMOVABLE(32), - kGUARD_EXC_STRICT_REPLY(64), - kGUARD_EXC_INVALID_NOTIFICATION_REQ(65), - kGUARD_EXC_INVALID_MPO_ENTITLEMENT(66), - kGUARD_EXC_DESCRIPTOR_VIOLATION(67), - kGUARD_EXC_MSG_FILTERED(128), - kGUARD_EXC_INVALID_RIGHT(256), - kGUARD_EXC_INVALID_NAME(512), - kGUARD_EXC_INVALID_VALUE(1024), - kGUARD_EXC_INVALID_ARGUMENT(2048), - kGUARD_EXC_RIGHT_EXISTS(4096), - kGUARD_EXC_KERN_NO_SPACE(8192), - kGUARD_EXC_KERN_FAILURE(16384), - kGUARD_EXC_KERN_RESOURCE(32768), - kGUARD_EXC_SEND_INVALID_REPLY(65536), - kGUARD_EXC_SEND_INVALID_VOUCHER(131072), - kGUARD_EXC_SEND_INVALID_RIGHT(262144), - kGUARD_EXC_RCV_INVALID_NAME(524288), - kGUARD_EXC_RCV_GUARDED_DESC(1048576), - kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL(1048577), - kGUARD_EXC_PROVISIONAL_REPLY_PORT(1048578), - kGUARD_EXC_OOL_PORT_ARRAY_CREATION(1048579), - kGUARD_EXC_MOVE_PROVISIONAL_REPLY_PORT(1048580), - kGUARD_EXC_REPLY_PORT_SINGLE_SO_RIGHT(1048581), - kGUARD_EXC_MOD_REFS_NON_FATAL(2097152), - kGUARD_EXC_IMMOVABLE_NON_FATAL(4194304); - - final int value; - const mach_port_guard_exception_codes(this.value); - - static mach_port_guard_exception_codes fromValue(int value) => - switch (value) { - 0 => kGUARD_EXC_NONE, - 1 => kGUARD_EXC_DESTROY, - 2 => kGUARD_EXC_MOD_REFS, - 3 => kGUARD_EXC_INVALID_OPTIONS, - 4 => kGUARD_EXC_SET_CONTEXT, - 5 => kGUARD_EXC_THREAD_SET_STATE, - 6 => kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE, - 7 => kGUARD_EXC_SERVICE_PORT_VIOLATION_FATAL, - 8 => kGUARD_EXC_UNGUARDED, - 9 => kGUARD_EXC_KOBJECT_REPLY_PORT_SEMANTICS, - 10 => kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS, - 16 => kGUARD_EXC_INCORRECT_GUARD, - 32 => kGUARD_EXC_IMMOVABLE, - 64 => kGUARD_EXC_STRICT_REPLY, - 65 => kGUARD_EXC_INVALID_NOTIFICATION_REQ, - 66 => kGUARD_EXC_INVALID_MPO_ENTITLEMENT, - 67 => kGUARD_EXC_DESCRIPTOR_VIOLATION, - 128 => kGUARD_EXC_MSG_FILTERED, - 256 => kGUARD_EXC_INVALID_RIGHT, - 512 => kGUARD_EXC_INVALID_NAME, - 1024 => kGUARD_EXC_INVALID_VALUE, - 2048 => kGUARD_EXC_INVALID_ARGUMENT, - 4096 => kGUARD_EXC_RIGHT_EXISTS, - 8192 => kGUARD_EXC_KERN_NO_SPACE, - 16384 => kGUARD_EXC_KERN_FAILURE, - 32768 => kGUARD_EXC_KERN_RESOURCE, - 65536 => kGUARD_EXC_SEND_INVALID_REPLY, - 131072 => kGUARD_EXC_SEND_INVALID_VOUCHER, - 262144 => kGUARD_EXC_SEND_INVALID_RIGHT, - 524288 => kGUARD_EXC_RCV_INVALID_NAME, - 1048576 => kGUARD_EXC_RCV_GUARDED_DESC, - 1048577 => kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL, - 1048578 => kGUARD_EXC_PROVISIONAL_REPLY_PORT, - 1048579 => kGUARD_EXC_OOL_PORT_ARRAY_CREATION, - 1048580 => kGUARD_EXC_MOVE_PROVISIONAL_REPLY_PORT, - 1048581 => kGUARD_EXC_REPLY_PORT_SINGLE_SO_RIGHT, - 2097152 => kGUARD_EXC_MOD_REFS_NON_FATAL, - 4194304 => kGUARD_EXC_IMMOVABLE_NON_FATAL, - _ => throw ArgumentError( - 'Unknown value for mach_port_guard_exception_codes: $value', - ), - }; -} - -final class mach_port_guard_info extends ffi.Struct { - @ffi.Uint64() - external int mpgi_guard; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mpgi_guard, - }) => $allocator()..ref.mpgi_guard = mpgi_guard; -} - -typedef mach_port_guard_info_t = mach_port_guard_info; - -final class mach_port_info_ext extends ffi.Struct { - external mach_port_status_t mpie_status; - - @mach_port_msgcount_t() - external int mpie_boost_cnt; - - @ffi.Array.multi([6]) - external ffi.Array reserved; -} - -typedef mach_port_info_ext_t = mach_port_info_ext; -typedef mach_port_info_t = ffi.Pointer; - -final class mach_port_limits extends ffi.Struct { - @mach_port_msgcount_t() - external int mpl_qlimit; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mpl_qlimit, - }) => $allocator()..ref.mpl_qlimit = mpl_qlimit; -} - -typedef mach_port_limits_t = mach_port_limits; -typedef mach_port_mscount_t = natural_t; -typedef mach_port_msgcount_t = natural_t; -typedef mach_port_name_array_t = ffi.Pointer; -typedef mach_port_name_t = natural_t; - -final class mach_port_options extends ffi.Struct { - @ffi.Uint32() - external int flags; - - external mach_port_limits_t mpl; - - external UnnamedUnion$4 unnamed; -} - -typedef mach_port_options_ptr_t = ffi.Pointer; -typedef mach_port_options_t = mach_port_options; - -final class mach_port_qos extends ffi.Opaque {} - -typedef mach_port_qos_t = mach_port_qos; -typedef mach_port_right_t = natural_t; -typedef mach_port_rights_t = natural_t; -typedef mach_port_seqno_t = natural_t; -typedef mach_port_srights_t = ffi.UnsignedInt; -typedef Dartmach_port_srights_t = int; - -final class mach_port_status extends ffi.Struct { - @mach_port_rights_t() - external int mps_pset; - - @mach_port_seqno_t() - external int mps_seqno; - - @mach_port_mscount_t() - external int mps_mscount; - - @mach_port_msgcount_t() - external int mps_qlimit; - - @mach_port_msgcount_t() - external int mps_msgcount; - - @mach_port_rights_t() - external int mps_sorights; - - @boolean_t() - external int mps_srights; - - @boolean_t() - external int mps_pdrequest; - - @boolean_t() - external int mps_nsrequest; - - @natural_t() - external int mps_flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mps_pset, - required int mps_seqno, - required int mps_mscount, - required int mps_qlimit, - required int mps_msgcount, - required int mps_sorights, - required int mps_srights, - required int mps_pdrequest, - required int mps_nsrequest, - required int mps_flags, - }) => $allocator() - ..ref.mps_pset = mps_pset - ..ref.mps_seqno = mps_seqno - ..ref.mps_mscount = mps_mscount - ..ref.mps_qlimit = mps_qlimit - ..ref.mps_msgcount = mps_msgcount - ..ref.mps_sorights = mps_sorights - ..ref.mps_srights = mps_srights - ..ref.mps_pdrequest = mps_pdrequest - ..ref.mps_nsrequest = mps_nsrequest - ..ref.mps_flags = mps_flags; -} - -typedef mach_port_status_t = mach_port_status; -typedef mach_port_t = __darwin_mach_port_t; -typedef mach_port_type_array_t = ffi.Pointer; -typedef mach_port_type_t = natural_t; -typedef mach_port_urefs_t = natural_t; - -final class mach_send_once_notification_t extends ffi.Struct { - external mach_msg_header_t not_header; - - external mach_msg_format_0_trailer_t trailer; -} - -final class mach_send_possible_notification_t extends ffi.Struct { - external mach_msg_header_t not_header; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int not_port; - - external mach_msg_format_0_trailer_t trailer; -} - -final class mach_service_port_info extends ffi.Struct { - @ffi.Array.multi([255]) - external ffi.Array mspi_string_name; - - @ffi.Uint8() - external int mspi_domain_type; -} - -typedef mach_service_port_info_data_t = mach_service_port_info; -typedef mach_service_port_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class mach_task_basic_info extends ffi.Struct { - @mach_vm_size_t() - external int virtual_size; - - @mach_vm_size_t() - external int resident_size; - - @mach_vm_size_t() - external int resident_size_max; - - external time_value_t user_time; - - external time_value_t system_time; - - @policy_t() - external int policy; - - @integer_t() - external int suspend_count; -} - -typedef mach_task_basic_info_data_t = mach_task_basic_info; -typedef mach_task_basic_info_t = ffi.Pointer; -typedef mach_task_flavor_t = ffi.UnsignedInt; -typedef Dartmach_task_flavor_t = int; -typedef mach_thread_flavor_t = ffi.UnsignedInt; -typedef Dartmach_thread_flavor_t = int; - -final class mach_timespec extends ffi.Struct { - @ffi.UnsignedInt() - external int tv_sec; - - @clock_res_t() - external int tv_nsec; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tv_sec, - required int tv_nsec, - }) => $allocator() - ..ref.tv_sec = tv_sec - ..ref.tv_nsec = tv_nsec; -} - -typedef mach_timespec_t = mach_timespec; -typedef mach_vm_address_t = ffi.Uint64; -typedef Dartmach_vm_address_t = int; - -@ffi.Packed(4) -final class mach_vm_info_region extends ffi.Struct { - @mach_vm_offset_t() - external int vir_start; - - @mach_vm_offset_t() - external int vir_end; - - @mach_vm_offset_t() - external int vir_object; - - @memory_object_offset_t() - external int vir_offset; - - @boolean_t() - external int vir_needs_copy; - - @vm_prot_t() - external int vir_protection; - - @vm_prot_t() - external int vir_max_protection; - - @vm_inherit_t() - external int vir_inheritance; - - @natural_t() - external int vir_wired_count; - - @natural_t() - external int vir_user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int vir_start, - required int vir_end, - required int vir_object, - required int vir_offset, - required int vir_needs_copy, - required int vir_protection, - required int vir_max_protection, - required int vir_inheritance, - required int vir_wired_count, - required int vir_user_wired_count, - }) => $allocator() - ..ref.vir_start = vir_start - ..ref.vir_end = vir_end - ..ref.vir_object = vir_object - ..ref.vir_offset = vir_offset - ..ref.vir_needs_copy = vir_needs_copy - ..ref.vir_protection = vir_protection - ..ref.vir_max_protection = vir_max_protection - ..ref.vir_inheritance = vir_inheritance - ..ref.vir_wired_count = vir_wired_count - ..ref.vir_user_wired_count = vir_user_wired_count; -} - -typedef mach_vm_info_region_t = mach_vm_info_region; -typedef mach_vm_offset_list_t = ffi.Pointer; -typedef mach_vm_offset_t = ffi.Uint64; -typedef Dartmach_vm_offset_t = int; - -final class mach_vm_range extends ffi.Struct { - @mach_vm_offset_t() - external int min_address; - - @mach_vm_offset_t() - external int max_address; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int min_address, - required int max_address, - }) => $allocator() - ..ref.min_address = min_address - ..ref.max_address = max_address; -} - -sealed class mach_vm_range_flags_t { - static const MACH_VM_RANGE_NONE = 0; -} - -enum mach_vm_range_flavor_t { - MACH_VM_RANGE_FLAVOR_INVALID(0), - MACH_VM_RANGE_FLAVOR_V1(1); - - final int value; - const mach_vm_range_flavor_t(this.value); - - static mach_vm_range_flavor_t fromValue(int value) => switch (value) { - 0 => MACH_VM_RANGE_FLAVOR_INVALID, - 1 => MACH_VM_RANGE_FLAVOR_V1, - _ => throw ArgumentError( - 'Unknown value for mach_vm_range_flavor_t: $value', - ), - }; -} - -typedef mach_vm_range_recipe_t = mach_vm_range_recipe_v1_t; - -final class mach_vm_range_recipe_v1_t extends ffi.Opaque {} - -typedef mach_vm_range_recipes_raw_t = ffi.Pointer; -typedef mach_vm_range_t = ffi.Pointer; - -enum mach_vm_range_tag_t { - MACH_VM_RANGE_DEFAULT(0), - MACH_VM_RANGE_DATA(1), - MACH_VM_RANGE_FIXED(2); - - final int value; - const mach_vm_range_tag_t(this.value); - - static mach_vm_range_tag_t fromValue(int value) => switch (value) { - 0 => MACH_VM_RANGE_DEFAULT, - 1 => MACH_VM_RANGE_DATA, - 2 => MACH_VM_RANGE_FIXED, - _ => throw ArgumentError('Unknown value for mach_vm_range_tag_t: $value'), - }; -} - -@ffi.Packed(4) -final class mach_vm_read_entry extends ffi.Struct { - @mach_vm_address_t() - external int address; - - @mach_vm_size_t() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int address, - required int size, - }) => $allocator() - ..ref.address = address - ..ref.size = size; -} - -typedef mach_vm_size_t = ffi.Uint64; -typedef Dartmach_vm_size_t = int; -typedef mach_voucher_attr_command_t = ffi.Uint32; -typedef Dartmach_voucher_attr_command_t = int; -typedef mach_voucher_attr_content_size_t = ffi.Uint32; -typedef Dartmach_voucher_attr_content_size_t = int; -typedef mach_voucher_attr_content_t = ffi.Pointer; -typedef mach_voucher_attr_control_flags_t = ffi.Uint32; -typedef Dartmach_voucher_attr_control_flags_t = int; -typedef mach_voucher_attr_control_t = mach_port_t; -typedef mach_voucher_attr_importance_refs = ffi.Uint32; -typedef Dartmach_voucher_attr_importance_refs = int; -typedef mach_voucher_attr_key_array_t = ffi.Pointer; -typedef mach_voucher_attr_key_t = ffi.Uint32; -typedef Dartmach_voucher_attr_key_t = int; -typedef mach_voucher_attr_manager_t = mach_port_t; -typedef mach_voucher_attr_raw_recipe_array_size_t = mach_msg_type_number_t; -typedef mach_voucher_attr_raw_recipe_array_t = mach_voucher_attr_raw_recipe_t; -typedef mach_voucher_attr_raw_recipe_size_t = mach_msg_type_number_t; -typedef mach_voucher_attr_raw_recipe_t = ffi.Pointer; -typedef mach_voucher_attr_recipe_command_array_t = - ffi.Pointer; -typedef mach_voucher_attr_recipe_command_t = ffi.Uint32; -typedef Dartmach_voucher_attr_recipe_command_t = int; - -final class mach_voucher_attr_recipe_data extends ffi.Opaque {} - -typedef mach_voucher_attr_recipe_data_t = mach_voucher_attr_recipe_data; -typedef mach_voucher_attr_recipe_size_t = mach_msg_type_number_t; -typedef mach_voucher_attr_recipe_t = - ffi.Pointer; -typedef mach_voucher_attr_value_flags_t = ffi.Uint32; -typedef Dartmach_voucher_attr_value_flags_t = int; -typedef mach_voucher_attr_value_handle_array_size_t = mach_msg_type_number_t; -typedef mach_voucher_attr_value_handle_array_t = - ffi.Pointer; -typedef mach_voucher_attr_value_handle_t = ffi.Uint64; -typedef Dartmach_voucher_attr_value_handle_t = int; -typedef mach_voucher_attr_value_reference_t = ffi.Uint32; -typedef Dartmach_voucher_attr_value_reference_t = int; -typedef mach_voucher_name_array_t = ffi.Pointer; -typedef mach_voucher_name_t = mach_port_name_t; -typedef mach_voucher_selector_t = ffi.Uint32; -typedef Dartmach_voucher_selector_t = int; -typedef mach_voucher_t = mach_port_t; -typedef mach_zone_info_array_t = ffi.Pointer; - -final class mach_zone_info_data extends ffi.Struct { - @ffi.Uint64() - external int mzi_count; - - @ffi.Uint64() - external int mzi_cur_size; - - @ffi.Uint64() - external int mzi_max_size; - - @ffi.Uint64() - external int mzi_elem_size; - - @ffi.Uint64() - external int mzi_alloc_size; - - @ffi.Uint64() - external int mzi_sum_size; - - @ffi.Uint64() - external int mzi_exhaustible; - - @ffi.Uint64() - external int mzi_collectable; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mzi_count, - required int mzi_cur_size, - required int mzi_max_size, - required int mzi_elem_size, - required int mzi_alloc_size, - required int mzi_sum_size, - required int mzi_exhaustible, - required int mzi_collectable, - }) => $allocator() - ..ref.mzi_count = mzi_count - ..ref.mzi_cur_size = mzi_cur_size - ..ref.mzi_max_size = mzi_max_size - ..ref.mzi_elem_size = mzi_elem_size - ..ref.mzi_alloc_size = mzi_alloc_size - ..ref.mzi_sum_size = mzi_sum_size - ..ref.mzi_exhaustible = mzi_exhaustible - ..ref.mzi_collectable = mzi_collectable; -} - -typedef mach_zone_info_t = mach_zone_info_data; - -final class mach_zone_name extends ffi.Struct { - @ffi.Array.multi([80]) - external ffi.Array mzn_name; -} - -typedef mach_zone_name_array_t = ffi.Pointer; -typedef mach_zone_name_t = mach_zone_name; -@Deprecated('Deprecated') -const int macron = 248; - -typedef malloc_type_id_t = ffi.UnsignedLongLong; -typedef Dartmalloc_type_id_t = int; -typedef malloc_zone_t = _malloc_zone_t; -@Deprecated('Deprecated') -const int mapChanged = 32; - -@Deprecated('Deprecated') -const int mapChangedBit = 5; - -@Deprecated('Deprecated') -const int mapCompact = 64; - -@Deprecated('Deprecated') -const int mapCompactBit = 6; - -const int mapReadErr = -199; - -@Deprecated('Deprecated') -const int mapReadOnly = 128; - -@Deprecated('Deprecated') -const int mapReadOnlyBit = 7; - -const int matrixErr = -2203; - -@Deprecated('Deprecated') -const int maxCountry = 108; - -const int maxDateField = 10; - -const int maxSizeToGrowTooSmall = -2027; - -typedef mcontext_t = ffi.Pointer<__darwin_mcontext64>; - -@Deprecated('Deprecated') -final class mds_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_HANDLE MdsHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ffi.Pointer OpenParameters, - ffi.Pointer hMds, - ) - > - > - DbOpen; - - external ffi.Pointer< - ffi.NativeFunction - > - DbClose; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_HANDLE MdsHandle, - ffi.Pointer NameList, - ) - > - > - GetDbNames; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer> DbName, - ) - > - > - GetDbNameFromHandle; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(MDS_HANDLE MdsHandle, CSSM_NAME_LIST_PTR NameList) - > - > - FreeNameList; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RecordType, - ffi.Pointer Attributes, - ffi.Pointer Data, - ffi.Pointer UniqueId, - ) - > - > - DataInsert; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer UniqueRecordIdentifier, - ) - > - > - DataDelete; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RecordType, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, - ffi.Pointer AttributesToBeModified, - ffi.Pointer DataToBeModified, - CSSM_DB_MODIFY_MODE ModifyMode, - ) - > - > - DataModify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer Query, - CSSM_HANDLE_PTR ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetFirst; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_HANDLE ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetNext; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(MDS_DB_HANDLE MdsDbHandle, CSSM_HANDLE ResultsHandle) - > - > - DataAbortQuery; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer UniqueRecord, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ) - > - > - DataGetFromUniqueRecordId; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, - ) - > - > - FreeUniqueRecord; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RelationID, - ffi.Pointer RelationName, - uint32 NumberOfAttributes, - ffi.Pointer pAttributeInfo, - uint32 NumberOfIndexes, - ffi.Pointer pIndexInfo, - ) - > - > - CreateRelation; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RelationID, - ) - > - > - DestroyRelation; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_HANDLE MdsHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ffi.Pointer OpenParameters, - ffi.Pointer hMds, - ) - > - > - DbOpen, - required ffi.Pointer< - ffi.NativeFunction - > - DbClose, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_HANDLE MdsHandle, - ffi.Pointer NameList, - ) - > - > - GetDbNames, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer> DbName, - ) - > - > - GetDbNameFromHandle, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(MDS_HANDLE MdsHandle, CSSM_NAME_LIST_PTR NameList) - > - > - FreeNameList, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RecordType, - ffi.Pointer Attributes, - ffi.Pointer Data, - ffi.Pointer UniqueId, - ) - > - > - DataInsert, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer UniqueRecordIdentifier, - ) - > - > - DataDelete, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RecordType, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, - ffi.Pointer AttributesToBeModified, - ffi.Pointer DataToBeModified, - CSSM_DB_MODIFY_MODE ModifyMode, - ) - > - > - DataModify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer Query, - CSSM_HANDLE_PTR ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetFirst, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_HANDLE ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetNext, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_HANDLE ResultsHandle, - ) - > - > - DataAbortQuery, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer UniqueRecord, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ) - > - > - DataGetFromUniqueRecordId, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, - ) - > - > - FreeUniqueRecord, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RelationID, - ffi.Pointer RelationName, - uint32 NumberOfAttributes, - ffi.Pointer pAttributeInfo, - uint32 NumberOfIndexes, - ffi.Pointer pIndexInfo, - ) - > - > - CreateRelation, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RelationID, - ) - > - > - DestroyRelation, - }) => $allocator() - ..ref.DbOpen = DbOpen - ..ref.DbClose = DbClose - ..ref.GetDbNames = GetDbNames - ..ref.GetDbNameFromHandle = GetDbNameFromHandle - ..ref.FreeNameList = FreeNameList - ..ref.DataInsert = DataInsert - ..ref.DataDelete = DataDelete - ..ref.DataModify = DataModify - ..ref.DataGetFirst = DataGetFirst - ..ref.DataGetNext = DataGetNext - ..ref.DataAbortQuery = DataAbortQuery - ..ref.DataGetFromUniqueRecordId = DataGetFromUniqueRecordId - ..ref.FreeUniqueRecord = FreeUniqueRecord - ..ref.CreateRelation = CreateRelation - ..ref.DestroyRelation = DestroyRelation; -} - -const int mdy = 0; - -const int mediaTypesDontMatch = -2018; - -const int memAZErr = -113; - -const int memAdrErr = -110; - -const int memBCErr = -115; - -const int memFragErr = -601; - -const int memFullErr = -108; - -const int memLockedErr = -117; - -const int memPCErr = -114; - -const int memPurErr = -112; - -const int memROZErr = -99; - -const int memROZError = -99; - -const int memROZWarn = -99; - -const int memSCErr = -116; - -const int memWZErr = -111; - -typedef mem_entry_name_port_t = mach_port_t; -typedef memory_object_array_t = ffi.Pointer; - -final class memory_object_attr_info extends ffi.Struct { - @memory_object_copy_strategy_t() - external int copy_strategy; - - @memory_object_cluster_size_t() - external int cluster_size; - - @boolean_t() - external int may_cache_object; - - @boolean_t() - external int temporary; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int copy_strategy, - required int cluster_size, - required int may_cache_object, - required int temporary, - }) => $allocator() - ..ref.copy_strategy = copy_strategy - ..ref.cluster_size = cluster_size - ..ref.may_cache_object = may_cache_object - ..ref.temporary = temporary; -} - -typedef memory_object_attr_info_data_t = memory_object_attr_info; -typedef memory_object_attr_info_t = ffi.Pointer; - -final class memory_object_behave_info extends ffi.Struct { - @memory_object_copy_strategy_t() - external int copy_strategy; - - @boolean_t() - external int temporary; - - @boolean_t() - external int invalidate; - - @boolean_t() - external int silent_overwrite; - - @boolean_t() - external int advisory_pageout; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int copy_strategy, - required int temporary, - required int invalidate, - required int silent_overwrite, - required int advisory_pageout, - }) => $allocator() - ..ref.copy_strategy = copy_strategy - ..ref.temporary = temporary - ..ref.invalidate = invalidate - ..ref.silent_overwrite = silent_overwrite - ..ref.advisory_pageout = advisory_pageout; -} - -typedef memory_object_behave_info_data_t = memory_object_behave_info; -typedef memory_object_behave_info_t = ffi.Pointer; -typedef memory_object_cluster_size_t = natural_t; -typedef memory_object_control_t = mach_port_t; -typedef memory_object_copy_strategy_t = ffi.Int; -typedef Dartmemory_object_copy_strategy_t = int; -typedef memory_object_default_t = mach_port_t; -typedef memory_object_fault_info_t = ffi.Pointer; -typedef memory_object_flavor_t = ffi.Int; -typedef Dartmemory_object_flavor_t = int; -typedef memory_object_info_t = ffi.Pointer; -typedef memory_object_name_t = mach_port_t; -typedef memory_object_offset_t = ffi.UnsignedLongLong; -typedef Dartmemory_object_offset_t = int; - -final class memory_object_perf_info extends ffi.Struct { - @memory_object_cluster_size_t() - external int cluster_size; - - @boolean_t() - external int may_cache; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cluster_size, - required int may_cache, - }) => $allocator() - ..ref.cluster_size = cluster_size - ..ref.may_cache = may_cache; -} - -typedef memory_object_perf_info_data_t = memory_object_perf_info; -typedef memory_object_perf_info_t = ffi.Pointer; -typedef memory_object_return_t = ffi.Int; -typedef Dartmemory_object_return_t = int; -typedef memory_object_size_t = ffi.UnsignedLongLong; -typedef Dartmemory_object_size_t = int; -typedef memory_object_t = mach_port_t; - -const int menuInvalidErr = -5623; - -const int menuItemNotFoundErr = -5622; - -const int menuNotFoundErr = -5620; - -const int menuPrgErr = 84; - -const int menuPropertyInvalid = -5603; - -const int menuPropertyInvalidErr = -5603; - -const int menuPropertyNotFoundErr = -5604; - -const int menuUsesSystemDefErr = -5621; - -const int midiDupIDErr = -260; - -const int midiInvalidCmdErr = -261; - -const int midiManagerAbsentOSErr = -2081; - -const int midiNameLenErr = -259; - -const int midiNoClientErr = -250; - -const int midiNoConErr = -257; - -const int midiNoPortErr = -251; - -const int midiTooManyConsErr = -253; - -const int midiTooManyPortsErr = -252; - -const int midiVConnectErr = -254; - -const int midiVConnectMade = -255; - -const int midiVConnectRmvd = -256; - -const int midiWriteErr = -258; - -typedef mig_impl_routine_t = - ffi.Pointer>; -typedef mig_impl_routine_tFunction = kern_return_t Function(); -typedef Dartmig_impl_routine_tFunction = Dartkern_return_t Function(); - -final class mig_reply_error_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -typedef mig_routine_arg_descriptor_t = ffi.Pointer; -typedef mig_routine_descriptor = routine_descriptor; -typedef mig_routine_descriptor_t = ffi.Pointer; -typedef mig_routine_t = mig_stub_routine_t; -typedef mig_server_routine_t = - ffi.Pointer>; -typedef mig_server_routine_tFunction = - mig_routine_t Function(ffi.Pointer InHeadP); -typedef mig_stub_routine_t = - ffi.Pointer>; -typedef mig_stub_routine_tFunction = - ffi.Void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ); -typedef Dartmig_stub_routine_tFunction = - void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ); - -final class mig_subsystem extends ffi.Struct { - external mig_server_routine_t server; - - @mach_msg_id_t() - external int start; - - @mach_msg_id_t() - external int end; - - @mach_msg_size_t() - external int maxsize; - - @vm_address_t() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array routine; -} - -typedef mig_subsystem_t = ffi.Pointer; - -final class mig_symtab extends ffi.Struct { - external ffi.Pointer ms_routine_name; - - @ffi.Int() - external int ms_routine_number; - - external ffi.Pointer> ms_routine; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer ms_routine_name, - required int ms_routine_number, - required ffi.Pointer> ms_routine, - }) => $allocator() - ..ref.ms_routine_name = ms_routine_name - ..ref.ms_routine_number = ms_routine_number - ..ref.ms_routine = ms_routine; -} - -typedef mig_symtab_t = mig_symtab; -@Deprecated('Deprecated') -const int minCountry = 0; - -const int minLeadingZ = 64; - -const int mini1BitMask = 1768123683; - -const int mini4BitData = 1768123700; - -const int mini8BitData = 1768123704; - -const int minuteField = 5; - -const int minuteMask = 32; - -const int missingRequiredParameterErr = -2063; - -const int mmInternalError = -2526; - -const int mntLdingZ = 64; - -const int mode32BitCompatible = 128; - -const int modeCanBackground = 4096; - -const int modeControlPanel = 524288; - -const int modeDeskAccessory = 131072; - -const int modeDisplayManagerAware = 4; - -const int modeDoesActivateOnFGSwitch = 2048; - -const int modeGetAppDiedMsg = 256; - -const int modeGetFrontClicks = 512; - -const int modeHighLevelEventAware = 64; - -const int modeLaunchDontSwitch = 262144; - -const int modeLiteral = 1280594508; - -const int modeLocalAndRemoteHLEvents = 32; - -const int modeMultiLaunch = 65536; - -const int modeNeedSuspendResume = 16384; - -const int modeNormal = 1313821261; - -const int modeOnlyBackground = 1024; - -const int modePhonemes = 1346916174; - -const int modeReserved = 16777216; - -const int modeStationeryAware = 16; - -const int modeText = 1413830740; - -const int modeTune = 1414876741; - -const int modeUseTextEditServices = 8; - -typedef mode_t = __darwin_mode_t; - -const int monthField = 2; - -const int monthMask = 4; - -const int mountedFolderIconResource = -3977; - -const int movieTextNotFoundErr = -2062; - -const int movieToolboxUninitialized = -2020; - -@Deprecated('Deprecated') -const int mpWorkFlagCopyWorkBlock = 4; - -@Deprecated('Deprecated') -const int mpWorkFlagDoCompletion = 2; - -@Deprecated('Deprecated') -const int mpWorkFlagDoWork = 1; - -@Deprecated('Deprecated') -const int mpWorkFlagDontBlock = 8; - -@Deprecated('Deprecated') -const int mpWorkFlagGetIsRunning = 64; - -@Deprecated('Deprecated') -const int mpWorkFlagGetProcessorCount = 16; - -sealed class mpo_flags_t { - static const MPO_PORT = 0; - static const MPO_SERVICE_PORT = 1024; - static const MPO_CONNECTION_PORT = 2048; - static const MPO_REPLY_PORT = 4096; - static const MPO_PROVISIONAL_REPLY_PORT = 16384; - static const MPO_EXCEPTION_PORT = 32768; - static const MPO_CONNECTION_PORT_WITH_PORT_ARRAY = 65536; -} - -final class msg_labels_t extends ffi.Struct { - @mach_port_name_t() - external int sender; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sender, - }) => $allocator()..ref.sender = sender; -} - -final class msghdr extends ffi.Struct { - external ffi.Pointer msg_name; - - @socklen_t() - external int msg_namelen; - - external ffi.Pointer msg_iov; - - @ffi.Int() - external int msg_iovlen; - - external ffi.Pointer msg_control; - - @socklen_t() - external int msg_controllen; - - @ffi.Int() - external int msg_flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer msg_name, - required int msg_namelen, - required ffi.Pointer msg_iov, - required int msg_iovlen, - required ffi.Pointer msg_control, - required int msg_controllen, - required int msg_flags, - }) => $allocator() - ..ref.msg_name = msg_name - ..ref.msg_namelen = msg_namelen - ..ref.msg_iov = msg_iov - ..ref.msg_iovlen = msg_iovlen - ..ref.msg_control = msg_control - ..ref.msg_controllen = msg_controllen - ..ref.msg_flags = msg_flags; -} - -const int multiplePublisherWrn = -460; - -const int myd = 3; - -typedef n_long = __uint32_t; -typedef n_short = __uint16_t; -typedef n_time = __uint32_t; - -const int nameFontTableTag = 1851878757; - -const int nameTypeErr = -902; - -typedef natural_t = __darwin_natural_t; - -const int nbpBuffOvr = -1024; - -const int nbpConfDiff = -1026; - -const int nbpDuplicate = -1027; - -const int nbpNISErr = -1029; - -const int nbpNoConfirm = -1025; - -const int nbpNotFound = -1028; - -const int needClearScrapErr = -100; - -const int negZcbFreeErr = 33; - -final class netent extends ffi.Struct { - external ffi.Pointer n_name; - - external ffi.Pointer> n_aliases; - - @ffi.Int() - external int n_addrtype; - - @ffi.Uint32() - external int n_net; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer n_name, - required ffi.Pointer> n_aliases, - required int n_addrtype, - required int n_net, - }) => $allocator() - ..ref.n_name = n_name - ..ref.n_aliases = n_aliases - ..ref.n_addrtype = n_addrtype - ..ref.n_net = n_net; -} - -const int networkErr = -925; - -const int newLineBit = 7; - -const int newLineCharMask = 65280; - -const int newLineMask = 128; - -const int nilHandleErr = -109; - -const int nilScrapFlavorDataErr = -4994; - -typedef nlink_t = __uint16_t; - -const int nmTypErr = -299; - -@Deprecated('Deprecated') -const int nmType = 8; - -const int noAdrMkErr = -67; - -const int noBridgeErr = -93; - -const int noCacheBit = 5; - -const int noCacheMask = 32; - -const int noCalls = 1; - -const int noCodecErr = -8961; - -const int noDMAErr = -2208; - -const int noDataArea = -1104; - -const int noDataHandler = -2007; - -const int noDefaultDataRef = -2051; - -const int noDefaultUserErr = -922; - -const int noDeviceForChannel = -9400; - -const int noDriveErr = -64; - -const int noDtaMkErr = -71; - -const int noErr = 0; - -const int noExportProcAvailableErr = -2089; - -const int noGlobalsErr = -904; - -const int noHardware = -200; - -const int noHardwareErr = -200; - -const int noHelpForItem = -4009; - -const int noIconDataAvailableErr = -2582; - -const int noInformErr = -926; - -const int noMMUErr = -626; - -const int noMPPErr = -3102; - -const int noMacDskErr = -57; - -const int noMachineNameErr = -913; - -const int noMaskFoundErr = -1000; - -const int noMediaHandler = -2006; - -const int noMemForPictPlaybackErr = -145; - -const int noMemoryNodeFailedInitialize = -30552; - -const int noMoreFolderDescErr = -4272; - -const int noMoreKeyColorsErr = -2205; - -const int noMoreRealTime = -212; - -const int noMovieFound = -2048; - -const int noNybErr = -66; - -const int noOutstandingHLE = -608; - -const int noPasteboardPromiseKeeperErr = -25136; - -const int noPathMappingErr = -2112; - -const int noPortErr = -903; - -const int noPrefAppErr = -3032; - -const int noRecordOfApp = -2020; - -const int noRelErr = -1101; - -const int noRequest = 2; - -const int noResponseErr = -915; - -const int noScrapErr = -100; - -const int noScrapPromiseKeeperErr = -4993; - -const int noSecuritySession = 0; - -const int noSendResp = -1103; - -const int noSessionErr = -908; - -const int noSoundTrackInMovieErr = -2055; - -const int noSourceTreeFoundErr = -2060; - -const int noSuchIconErr = -2581; - -const int noSuitableDisplaysErr = -1859; - -const int noSynthFound = -240; - -const int noThumbnailFoundErr = -8994; - -const int noToolboxNameErr = -914; - -const int noTranslationPathErr = -3030; - -const int noTypeErr = -102; - -const int noUserInteractionAllowed = -610; - -const int noUserNameErr = -911; - -const int noUserRecErr = -928; - -const int noUserRefErr = -924; - -const int noVideoTrackInMovieErr = -2054; - -const int nonDragOriginatorErr = -1862; - -const int nonGlyphID = 65535; - -const int nonMatchingEditState = -2024; - -const int normal = 0; - -const int notAFileErr = -1302; - -const int notAQTVRMovieErr = -30540; - -const int notARemountErr = -1308; - -const int notAllowedToSaveMovieErr = -2126; - -const int notAppropriateForClassic = -877; - -const int notBTree = -410; - -const int notEnoughBufferSpace = -207; - -const int notEnoughDataErr = -2149; - -const int notEnoughDiskSpaceToGrab = -9404; - -const int notEnoughHardware = -201; - -const int notEnoughHardwareErr = -201; - -const int notEnoughMemoryErr = -620; - -const int notEnoughMemoryToGrab = -9403; - -const int notExactMatrixErr = -2204; - -const int notExactSizeErr = -2206; - -const int notHeldErr = -621; - -const int notImplementedMusicOSErr = -2071; - -const int notInitErr = -900; - -const int notLeafAtomErr = -2102; - -const int notLockedErr = -623; - -const int notLoggedInErr = -923; - -const int notOpenErr = -28; - -const int notPasteboardOwnerErr = -25135; - -const int notRegisteredSectionErr = -452; - -const int notThePublisherWrn = -463; - -const int noteChannelNotAllocatedOSErr = -2085; - -typedef notify_port_t = mach_port_t; - -const int nrCallNotSupported = -2557; - -const int nrDataTruncatedErr = -2543; - -const int nrExitedIteratorScope = -2555; - -const int nrInvalidEntryIterationOp = -2552; - -const int nrInvalidNodeErr = -2538; - -const int nrIterationDone = -2554; - -const int nrLockedErr = -2536; - -const int nrNameErr = -2541; - -const int nrNotCreatedErr = -2540; - -const int nrNotEnoughMemoryErr = -2537; - -const int nrNotFoundErr = -2539; - -const int nrNotModifiedErr = -2547; - -const int nrNotSlotDeviceErr = -2542; - -const int nrOverrunErr = -2548; - -const int nrPathBufferTooSmall = -2551; - -const int nrPathNotFound = -2550; - -const int nrPowerErr = -2544; - -const int nrPowerSwitchAbortErr = -2545; - -const int nrPropertyAlreadyExists = -2553; - -const int nrResultCodeBase = -2549; - -const int nrTransactionAborted = -2556; - -const int nrTypeMismatchErr = -2546; - -const int nsDrvErr = -56; - -const int nsStackErr = -149; - -const int nsvErr = -35; - -@ffi.Packed(1) -final class ntsid_t extends ffi.Struct { - @u_int8_t() - external int sid_kind; - - @u_int8_t() - external int sid_authcount; - - @ffi.Array.multi([6]) - external ffi.Array sid_authority; - - @ffi.Array.multi([16]) - external ffi.Array sid_authorities; -} - -const int nulDev = 3; - -const int numberFormattingBadCurrencyPositionErr = -5211; - -const int numberFormattingBadFormatErr = -5207; - -const int numberFormattingBadNumberFormattingObjectErr = -5202; - -const int numberFormattingBadOptionsErr = -5208; - -const int numberFormattingBadTokenErr = -5209; - -const int numberFormattingDelimiterMissingErr = -5205; - -const int numberFormattingEmptyFormatErr = -5206; - -const int numberFormattingLiteralMissingErr = -5204; - -const int numberFormattingNotADigitErr = -5212; - -const int numberFormattingNotANumberErr = -5200; - -const int numberFormattingOverflowInDestinationErr = -5201; - -const int numberFormattingSpuriousCharErr = -5203; - -const int numberFormattingUnOrderedCurrencyRangeErr = -5210; - -const int numberFormattingUnOrdredCurrencyRangeErr = -5210; - -const int numberFortmattingNotADigitErr = -5212; - -final class objc_class extends ffi.Opaque {} - -final class objc_object extends ffi.Struct { - external ffi.Pointer isaAsInt; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer isa, - }) => $allocator()..ref.isaAsInt = isa; -} - -typedef objc_objectptr_t = ffi.Pointer; - -final class objc_selector extends ffi.Opaque {} - -typedef objc_zone_t = ffi.Pointer<_malloc_zone_t>; - -const int offLinErr = -65; - -typedef off_t = __darwin_off_t; -@Deprecated('Deprecated') -const int ogonek = 254; - -const int opWrErr = -49; - -final class opaqueCMFormatDescription extends ffi.Opaque {} - -const int openErr = -23; - -const int openFolderIconResource = -3997; - -const int os2FontTableTag = 1330851634; - -typedef os_block_t = ffi.Pointer; -typedef Dartos_block_t = objc.ObjCBlock; - -enum os_clockid_t { - OS_CLOCK_MACH_ABSOLUTE_TIME(32); - - final int value; - const os_clockid_t(this.value); - - static os_clockid_t fromValue(int value) => switch (value) { - 32 => OS_CLOCK_MACH_ABSOLUTE_TIME, - _ => throw ArgumentError('Unknown value for os_clockid_t: $value'), - }; -} - -typedef os_function_t = ffi.Pointer>; -typedef os_function_tFunction = ffi.Void Function(ffi.Pointer); -typedef Dartos_function_tFunction = void Function(ffi.Pointer); - -final class os_workgroup_attr_opaque_s extends ffi.Struct { - @ffi.Uint32() - external int sig; - - @ffi.Array.multi([60]) - external ffi.Array opaque; -} - -typedef os_workgroup_attr_s = os_workgroup_attr_opaque_s; -typedef os_workgroup_attr_t = ffi.Pointer; -typedef os_workgroup_index = ffi.Uint32; -typedef Dartos_workgroup_index = int; - -final class os_workgroup_interval_data_opaque_s extends ffi.Struct { - @ffi.Uint32() - external int sig; - - @ffi.Array.multi([56]) - external ffi.Array opaque; -} - -typedef os_workgroup_interval_data_s = os_workgroup_interval_data_opaque_s; -typedef os_workgroup_interval_data_t = - ffi.Pointer; -typedef os_workgroup_interval_t = ffi.Pointer; -typedef Dartos_workgroup_interval_t = OS_os_workgroup; - -final class os_workgroup_join_token_opaque_s extends ffi.Struct { - @ffi.Uint32() - external int sig; - - @ffi.Array.multi([36]) - external ffi.Array opaque; -} - -typedef os_workgroup_join_token_s = os_workgroup_join_token_opaque_s; -typedef os_workgroup_join_token_t = - ffi.Pointer; - -final class os_workgroup_max_parallel_threads_attr_s extends ffi.Opaque {} - -typedef os_workgroup_mpt_attr_s = os_workgroup_max_parallel_threads_attr_s; -typedef os_workgroup_mpt_attr_t = - ffi.Pointer; -typedef os_workgroup_parallel_t = ffi.Pointer; -typedef Dartos_workgroup_parallel_t = OS_os_workgroup; -typedef os_workgroup_t = ffi.Pointer; -typedef Dartos_workgroup_t = OS_os_workgroup; -typedef os_workgroup_working_arena_destructor_t = - ffi.Pointer< - ffi.NativeFunction - >; -typedef os_workgroup_working_arena_destructor_tFunction = - ffi.Void Function(ffi.Pointer); -typedef Dartos_workgroup_working_arena_destructor_tFunction = - void Function(ffi.Pointer); - -const int outline = 8; - -@Deprecated('Deprecated') -const int overDot = 250; - -const int ownedFolderIconResource = -3980; - -const int pATMachine = 1885434989; - -const int pATType = 1885434996; - -const int pATZone = 1885435002; - -const int pArcAngle = 1885434467; - -const int pBackgroundColor = 1885496172; - -const int pBackgroundPattern = 1885499508; - -const int pBestType = 1885500276; - -const int pBounds = 1885498980; - -const int pClass = 1885564019; - -const int pClipboard = 1885564009; - -const int pColor = 1668246642; - -const int pColorTable = 1668052066; - -const int pConduit = 1885564782; - -const int pContents = 1885564532; - -const int pCornerCurveHeight = 1885562980; - -const int pCornerCurveWidth = 1885566820; - -const int pDNS = 1885630067; - -const int pDNSForm = 1883524691; - -const int pDashStyle = 1885631348; - -const int pDefaultType = 1684366964; - -const int pDefinitionRect = 1885631092; - -const int pDeviceAddress = 1885632097; - -const int pDeviceType = 1885632116; - -const int pDottedDecimal = 1885958244; - -const int pEnabled = 1701732972; - -const int pEndPoint = 1885695588; - -const int pFTPKind = 1802071652; - -const int pFillColor = 1718379372; - -const int pFillPattern = 1718382708; - -const int pFont = 1718578804; - -const int pFormula = 1885761394; - -const int pGraphicObjects = 1735352947; - -const int pHasCloseBox = 1751346274; - -const int pHasTitleBar = 1886677364; - -const int pHost = 1213158228; - -const int pID = 1229201440; - -const int pIndex = 1885955192; - -const int pInsertionLoc = 1885957747; - -const int pIsFloating = 1769170540; - -const int pIsFrontProcess = 1885959014; - -const int pIsModal = 1886220132; - -const int pIsModified = 1768779620; - -const int pIsResizable = 1886548858; - -const int pIsStationeryPad = 1886613604; - -const int pIsZoomable = 1769175661; - -const int pIsZoomed = 1887073645; - -const int pItemNumber = 1769237870; - -const int pJustification = 1886024564; - -const int pKeyKind = 1802202724; - -const int pKeystrokeKey = 1800237927; - -const int pLineArrow = 1634890351; - -const int pMenuID = 1835952484; - -const int pModifiers = 1800236900; - -const int pName = 1886282093; - -const int pNetwork = 1886283124; - -const int pNewElementLoc = 1886283116; - -const int pNode = 1886285668; - -const int pPath = 1179930723; - -const int pPenColor = 1886413676; - -const int pPenPattern = 1886416993; - -const int pPenWidth = 1886418788; - -const int pPixelDepth = 1885630580; - -const int pPointList = 1886678132; - -const int pPointSize = 1886679930; - -const int pPort = 1886416754; - -const int pProtection = 1886417519; - -const int pProtocol = 1886417524; - -const int pRotation = 1886547828; - -const int pSCSIBus = 1886610274; - -const int pSCSILUN = 1886612597; - -const int pScale = 1886610284; - -const int pScheme = 1886745443; - -const int pScript = 1935896692; - -const int pScriptTag = 1886610292; - -const int pSelected = 1936026723; - -const int pSelection = 1936026725; - -const int pSocket = 1886613347; - -const int pStartAngle = 1885433447; - -const int pStartPoint = 1886614640; - -const int pTextColor = 1886681187; - -const int pTextEncoding = 1886681189; - -const int pTextFont = 1886681190; - -const int pTextItemDelimiters = 1954047084; - -const int pTextPointSize = 1886679155; - -const int pTextStyles = 1954050932; - -const int pTransferMode = 1886418029; - -const int pTranslation = 1886679667; - -const int pURL = 1884639820; - -const int pUniformStyles = 1970500716; - -const int pUpdateOn = 1886744676; - -const int pUserName = 1380021614; - -const int pUserPassword = 1380020343; - -const int pUserSelection = 1886745452; - -const int pVersion = 1986359923; - -const int pVisible = 1886808435; - -typedef page_address_array_t = ffi.Pointer; - -const int paramErr = -50; - -const int pasteDev = 12; - -const int pathNotVerifiedErr = -2113; - -const int pathTooLongErr = -2110; - -@Deprecated('Deprecated') -const int perThousand = 228; - -const int permErr = -54; - -const int pickerCantLive = -4006; - -const int pickerResourceError = -4002; - -const int pictInfoIDErr = -11001; - -const int pictInfoVerbErr = -11002; - -const int pictInfoVersionErr = -11000; - -const int pictureDataErr = -11005; - -typedef pid_t = __darwin_pid_t; - -const int pixMapTooDeepErr = -148; - -@Deprecated('Deprecated') -const int platform68k = 1; - -@Deprecated('Deprecated') -const int platformAIXppc = 1300; - -@Deprecated('Deprecated') -const int platformArm64NativeEntryPoint = 9; - -@Deprecated('Deprecated') -const int platformIA32NativeEntryPoint = 6; - -@Deprecated('Deprecated') -const int platformIRIXmips = 1000; - -@Deprecated('Deprecated') -const int platformInterpreted = 3; - -@Deprecated('Deprecated') -const int platformLinuxintel = 1201; - -@Deprecated('Deprecated') -const int platformLinuxppc = 1200; - -@Deprecated('Deprecated') -const int platformMacOSx86 = 1500; - -@Deprecated('Deprecated') -const int platformNeXT68k = 1403; - -@Deprecated('Deprecated') -const int platformNeXTIntel = 1400; - -@Deprecated('Deprecated') -const int platformNeXTppc = 1401; - -@Deprecated('Deprecated') -const int platformNeXTsparc = 1402; - -@Deprecated('Deprecated') -const int platformPowerPC = 2; - -@Deprecated('Deprecated') -const int platformPowerPC64NativeEntryPoint = 7; - -@Deprecated('Deprecated') -const int platformPowerPCNativeEntryPoint = 5; - -@Deprecated('Deprecated') -const int platformSunOSintel = 1101; - -@Deprecated('Deprecated') -const int platformSunOSsparc = 1100; - -@Deprecated('Deprecated') -const int platformWin32 = 4; - -@Deprecated('Deprecated') -const int platformX86_64NativeEntryPoint = 8; - -const int pleaseCacheBit = 4; - -const int pleaseCacheMask = 16; - -const int pmBusyErr = -13000; - -const int pmField = 10; - -const int pmMask = 1024; - -const int pmRecvEndErr = -13005; - -const int pmRecvStartErr = -13004; - -const int pmReplyTOErr = -13001; - -const int pmSendEndErr = -13003; - -const int pmSendStartErr = -13002; - -typedef pointer_t = vm_offset_t; -typedef policy_base_data_t = policy_bases; -typedef policy_base_t = ffi.Pointer; - -final class policy_bases extends ffi.Struct { - external policy_timeshare_base_data_t ts; - - external policy_rr_base_data_t rr; - - external policy_fifo_base_data_t fifo; -} - -final class policy_fifo_base extends ffi.Struct { - @integer_t() - external int base_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int base_priority, - }) => $allocator()..ref.base_priority = base_priority; -} - -typedef policy_fifo_base_data_t = policy_fifo_base; -typedef policy_fifo_base_t = ffi.Pointer; - -final class policy_fifo_info extends ffi.Struct { - @integer_t() - external int max_priority; - - @integer_t() - external int base_priority; - - @boolean_t() - external int depressed; - - @integer_t() - external int depress_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - required int base_priority, - required int depressed, - required int depress_priority, - }) => $allocator() - ..ref.max_priority = max_priority - ..ref.base_priority = base_priority - ..ref.depressed = depressed - ..ref.depress_priority = depress_priority; -} - -typedef policy_fifo_info_data_t = policy_fifo_info; -typedef policy_fifo_info_t = ffi.Pointer; - -final class policy_fifo_limit extends ffi.Struct { - @integer_t() - external int max_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - }) => $allocator()..ref.max_priority = max_priority; -} - -typedef policy_fifo_limit_data_t = policy_fifo_limit; -typedef policy_fifo_limit_t = ffi.Pointer; -typedef policy_info_data_t = policy_infos; -typedef policy_info_t = ffi.Pointer; - -final class policy_infos extends ffi.Struct { - external policy_timeshare_info_data_t ts; - - external policy_rr_info_data_t rr; - - external policy_fifo_info_data_t fifo; -} - -typedef policy_limit_data_t = policy_limits; -typedef policy_limit_t = ffi.Pointer; - -final class policy_limits extends ffi.Struct { - external policy_timeshare_limit_data_t ts; - - external policy_rr_limit_data_t rr; - - external policy_fifo_limit_data_t fifo; -} - -final class policy_rr_base extends ffi.Struct { - @integer_t() - external int base_priority; - - @integer_t() - external int quantum; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int base_priority, - required int quantum, - }) => $allocator() - ..ref.base_priority = base_priority - ..ref.quantum = quantum; -} - -typedef policy_rr_base_data_t = policy_rr_base; -typedef policy_rr_base_t = ffi.Pointer; - -final class policy_rr_info extends ffi.Struct { - @integer_t() - external int max_priority; - - @integer_t() - external int base_priority; - - @integer_t() - external int quantum; - - @boolean_t() - external int depressed; - - @integer_t() - external int depress_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - required int base_priority, - required int quantum, - required int depressed, - required int depress_priority, - }) => $allocator() - ..ref.max_priority = max_priority - ..ref.base_priority = base_priority - ..ref.quantum = quantum - ..ref.depressed = depressed - ..ref.depress_priority = depress_priority; -} - -typedef policy_rr_info_data_t = policy_rr_info; -typedef policy_rr_info_t = ffi.Pointer; - -final class policy_rr_limit extends ffi.Struct { - @integer_t() - external int max_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - }) => $allocator()..ref.max_priority = max_priority; -} - -typedef policy_rr_limit_data_t = policy_rr_limit; -typedef policy_rr_limit_t = ffi.Pointer; -typedef policy_t = ffi.Int; -typedef Dartpolicy_t = int; - -final class policy_timeshare_base extends ffi.Struct { - @integer_t() - external int base_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int base_priority, - }) => $allocator()..ref.base_priority = base_priority; -} - -typedef policy_timeshare_base_data_t = policy_timeshare_base; -typedef policy_timeshare_base_t = ffi.Pointer; - -final class policy_timeshare_info extends ffi.Struct { - @integer_t() - external int max_priority; - - @integer_t() - external int base_priority; - - @integer_t() - external int cur_priority; - - @boolean_t() - external int depressed; - - @integer_t() - external int depress_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - required int base_priority, - required int cur_priority, - required int depressed, - required int depress_priority, - }) => $allocator() - ..ref.max_priority = max_priority - ..ref.base_priority = base_priority - ..ref.cur_priority = cur_priority - ..ref.depressed = depressed - ..ref.depress_priority = depress_priority; -} - -typedef policy_timeshare_info_data_t = policy_timeshare_info; -typedef policy_timeshare_info_t = ffi.Pointer; - -final class policy_timeshare_limit extends ffi.Struct { - @integer_t() - external int max_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - }) => $allocator()..ref.max_priority = max_priority; -} - -typedef policy_timeshare_limit_data_t = policy_timeshare_limit; -typedef policy_timeshare_limit_t = ffi.Pointer; - -const int portClosedErr = -916; - -const int portInUse = -97; - -const int portNameExistsErr = -910; - -const int portNotCf = -98; - -const int portNotPwr = -96; - -const int posErr = -40; - -final class ppd_attr_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array name; - - @ffi.Array.multi([41]) - external ffi.Array spec; - - @ffi.Array.multi([81]) - external ffi.Array text; - - external ffi.Pointer value; -} - -typedef ppd_attr_t = ppd_attr_s; - -final class ppd_choice_s extends ffi.Struct { - @ffi.Char() - external int marked; - - @ffi.Array.multi([41]) - external ffi.Array choice; - - @ffi.Array.multi([81]) - external ffi.Array text; - - external ffi.Pointer code; - - external ffi.Pointer option; -} - -typedef ppd_choice_t = ppd_choice_s; - -enum ppd_conform_e { - PPD_CONFORM_RELAXED(0), - PPD_CONFORM_STRICT(1); - - final int value; - const ppd_conform_e(this.value); - - static ppd_conform_e fromValue(int value) => switch (value) { - 0 => PPD_CONFORM_RELAXED, - 1 => PPD_CONFORM_STRICT, - _ => throw ArgumentError('Unknown value for ppd_conform_e: $value'), - }; -} - -final class ppd_const_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array option1; - - @ffi.Array.multi([41]) - external ffi.Array choice1; - - @ffi.Array.multi([41]) - external ffi.Array option2; - - @ffi.Array.multi([41]) - external ffi.Array choice2; -} - -typedef ppd_const_t = ppd_const_s; - -final class ppd_coption_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array keyword; - - external ffi.Pointer option; - - @ffi.Int() - external int marked; - - external ffi.Pointer params; -} - -typedef ppd_coption_t = ppd_coption_s; - -final class ppd_cparam_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array name; - - @ffi.Array.multi([81]) - external ffi.Array text; - - @ffi.Int() - external int order; - - @ffi.Int() - external int typeAsInt; - - ppd_cptype_e get type => ppd_cptype_e.fromValue(typeAsInt); - set type(ppd_cptype_e value) => typeAsInt = value.value; - - external ppd_cplimit_t minimum; - - external ppd_cplimit_t maximum; - - external ppd_cpvalue_t current; -} - -typedef ppd_cparam_t = ppd_cparam_s; -typedef ppd_cplimit_t = ppd_cplimit_u; - -final class ppd_cplimit_u extends ffi.Union { - @ffi.Float() - external double custom_curve; - - @ffi.Int() - external int custom_int; - - @ffi.Float() - external double custom_invcurve; - - @ffi.Int() - external int custom_passcode; - - @ffi.Int() - external int custom_password; - - @ffi.Float() - external double custom_points; - - @ffi.Float() - external double custom_real; - - @ffi.Int() - external int custom_string; -} - -enum ppd_cptype_e { - PPD_CUSTOM_UNKNOWN(-1), - PPD_CUSTOM_CURVE(0), - PPD_CUSTOM_INT(1), - PPD_CUSTOM_INVCURVE(2), - PPD_CUSTOM_PASSCODE(3), - PPD_CUSTOM_PASSWORD(4), - PPD_CUSTOM_POINTS(5), - PPD_CUSTOM_REAL(6), - PPD_CUSTOM_STRING(7); - - final int value; - const ppd_cptype_e(this.value); - - static ppd_cptype_e fromValue(int value) => switch (value) { - -1 => PPD_CUSTOM_UNKNOWN, - 0 => PPD_CUSTOM_CURVE, - 1 => PPD_CUSTOM_INT, - 2 => PPD_CUSTOM_INVCURVE, - 3 => PPD_CUSTOM_PASSCODE, - 4 => PPD_CUSTOM_PASSWORD, - 5 => PPD_CUSTOM_POINTS, - 6 => PPD_CUSTOM_REAL, - 7 => PPD_CUSTOM_STRING, - _ => throw ArgumentError('Unknown value for ppd_cptype_e: $value'), - }; -} - -typedef ppd_cpvalue_t = ppd_cpvalue_u; - -final class ppd_cpvalue_u extends ffi.Union { - @ffi.Float() - external double custom_curve; - - @ffi.Int() - external int custom_int; - - @ffi.Float() - external double custom_invcurve; - - external ffi.Pointer custom_passcode; - - external ffi.Pointer custom_password; - - @ffi.Float() - external double custom_points; - - @ffi.Float() - external double custom_real; - - external ffi.Pointer custom_string; -} - -enum ppd_cs_e { - PPD_CS_CMYK(-4), - PPD_CS_CMY(-3), - PPD_CS_GRAY(1), - PPD_CS_RGB(3), - PPD_CS_RGBK(4), - PPD_CS_N(5); - - final int value; - const ppd_cs_e(this.value); - - static ppd_cs_e fromValue(int value) => switch (value) { - -4 => PPD_CS_CMYK, - -3 => PPD_CS_CMY, - 1 => PPD_CS_GRAY, - 3 => PPD_CS_RGB, - 4 => PPD_CS_RGBK, - 5 => PPD_CS_N, - _ => throw ArgumentError('Unknown value for ppd_cs_e: $value'), - }; -} - -final class ppd_emul_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array name; - - external ffi.Pointer start; - - external ffi.Pointer stop; -} - -typedef ppd_emul_t = ppd_emul_s; - -final class ppd_file_s extends ffi.Struct { - @ffi.Int() - external int language_level; - - @ffi.Int() - external int color_device; - - @ffi.Int() - external int variable_sizes; - - @ffi.Int() - external int accurate_screens; - - @ffi.Int() - external int contone_only; - - @ffi.Int() - external int landscape; - - @ffi.Int() - external int model_number; - - @ffi.Int() - external int manual_copies; - - @ffi.Int() - external int throughput; - - @ffi.Int() - external int colorspaceAsInt; - - ppd_cs_e get colorspace => ppd_cs_e.fromValue(colorspaceAsInt); - set colorspace(ppd_cs_e value) => colorspaceAsInt = value.value; - - external ffi.Pointer patches; - - @ffi.Int() - external int num_emulations; - - external ffi.Pointer emulations; - - external ffi.Pointer jcl_begin; - - external ffi.Pointer jcl_ps; - - external ffi.Pointer jcl_end; - - external ffi.Pointer lang_encoding; - - external ffi.Pointer lang_version; - - external ffi.Pointer modelname; - - external ffi.Pointer ttrasterizer; - - external ffi.Pointer manufacturer; - - external ffi.Pointer product; - - external ffi.Pointer nickname; - - external ffi.Pointer shortnickname; - - @ffi.Int() - external int num_groups; - - external ffi.Pointer groups; - - @ffi.Int() - external int num_sizes; - - external ffi.Pointer sizes; - - @ffi.Array.multi([2]) - external ffi.Array custom_min; - - @ffi.Array.multi([2]) - external ffi.Array custom_max; - - @ffi.Array.multi([4]) - external ffi.Array custom_margins; - - @ffi.Int() - external int num_consts; - - external ffi.Pointer consts; - - @ffi.Int() - external int num_fonts; - - external ffi.Pointer> fonts; - - @ffi.Int() - external int num_profiles; - - external ffi.Pointer profiles; - - @ffi.Int() - external int num_filters; - - external ffi.Pointer> filters; - - @ffi.Int() - external int flip_duplex; - - external ffi.Pointer protocols; - - external ffi.Pointer pcfilename; - - @ffi.Int() - external int num_attrs; - - @ffi.Int() - external int cur_attr; - - external ffi.Pointer> attrs; - - external ffi.Pointer sorted_attrs; - - external ffi.Pointer options; - - external ffi.Pointer coptions; - - external ffi.Pointer marked; - - external ffi.Pointer cups_uiconstraints; - - external ffi.Pointer<_ppd_cache_t> cache; -} - -typedef ppd_file_t = ppd_file_s; - -final class ppd_group_s extends ffi.Struct { - @ffi.Array.multi([40]) - external ffi.Array text; - - @ffi.Array.multi([41]) - external ffi.Array name; - - @ffi.Int() - external int num_options; - - external ffi.Pointer options; - - @ffi.Int() - external int num_subgroups; - - external ffi.Pointer subgroups; -} - -typedef ppd_group_t = ppd_group_s; - -final class ppd_option_s extends ffi.Struct { - @ffi.Char() - external int conflicted; - - @ffi.Array.multi([41]) - external ffi.Array keyword; - - @ffi.Array.multi([41]) - external ffi.Array defchoice; - - @ffi.Array.multi([81]) - external ffi.Array text; - - @ffi.UnsignedInt() - external int uiAsInt; - - ppd_ui_e get ui => ppd_ui_e.fromValue(uiAsInt); - set ui(ppd_ui_e value) => uiAsInt = value.value; - - @ffi.UnsignedInt() - external int sectionAsInt; - - ppd_section_e get section => ppd_section_e.fromValue(sectionAsInt); - set section(ppd_section_e value) => sectionAsInt = value.value; - - @ffi.Float() - external double order; - - @ffi.Int() - external int num_choices; - - external ffi.Pointer choices; -} - -typedef ppd_option_t = ppd_option_s; - -final class ppd_profile_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array resolution; - - @ffi.Array.multi([41]) - external ffi.Array media_type; - - @ffi.Float() - external double density; - - @ffi.Float() - external double gamma; - - @ffi.Array.multi([3, 3]) - external ffi.Array> matrix; -} - -typedef ppd_profile_t = ppd_profile_s; - -enum ppd_section_e { - PPD_ORDER_ANY(0), - PPD_ORDER_DOCUMENT(1), - PPD_ORDER_EXIT(2), - PPD_ORDER_JCL(3), - PPD_ORDER_PAGE(4), - PPD_ORDER_PROLOG(5); - - final int value; - const ppd_section_e(this.value); - - static ppd_section_e fromValue(int value) => switch (value) { - 0 => PPD_ORDER_ANY, - 1 => PPD_ORDER_DOCUMENT, - 2 => PPD_ORDER_EXIT, - 3 => PPD_ORDER_JCL, - 4 => PPD_ORDER_PAGE, - 5 => PPD_ORDER_PROLOG, - _ => throw ArgumentError('Unknown value for ppd_section_e: $value'), - }; -} - -final class ppd_size_s extends ffi.Struct { - @ffi.Int() - external int marked; - - @ffi.Array.multi([41]) - external ffi.Array name; - - @ffi.Float() - external double width; - - @ffi.Float() - external double length; - - @ffi.Float() - external double left; - - @ffi.Float() - external double bottom; - - @ffi.Float() - external double right; - - @ffi.Float() - external double top; -} - -typedef ppd_size_t = ppd_size_s; - -enum ppd_status_e { - PPD_OK(0), - PPD_FILE_OPEN_ERROR(1), - PPD_NULL_FILE(2), - PPD_ALLOC_ERROR(3), - PPD_MISSING_PPDADOBE4(4), - PPD_MISSING_VALUE(5), - PPD_INTERNAL_ERROR(6), - PPD_BAD_OPEN_GROUP(7), - PPD_NESTED_OPEN_GROUP(8), - PPD_BAD_OPEN_UI(9), - PPD_NESTED_OPEN_UI(10), - PPD_BAD_ORDER_DEPENDENCY(11), - PPD_BAD_UI_CONSTRAINTS(12), - PPD_MISSING_ASTERISK(13), - PPD_LINE_TOO_LONG(14), - PPD_ILLEGAL_CHARACTER(15), - PPD_ILLEGAL_MAIN_KEYWORD(16), - PPD_ILLEGAL_OPTION_KEYWORD(17), - PPD_ILLEGAL_TRANSLATION(18), - PPD_ILLEGAL_WHITESPACE(19), - PPD_BAD_CUSTOM_PARAM(20), - PPD_MISSING_OPTION_KEYWORD(21), - PPD_BAD_VALUE(22), - PPD_MISSING_CLOSE_GROUP(23), - PPD_BAD_CLOSE_UI(24), - PPD_MISSING_CLOSE_UI(25), - PPD_MAX_STATUS(26); - - final int value; - const ppd_status_e(this.value); - - static ppd_status_e fromValue(int value) => switch (value) { - 0 => PPD_OK, - 1 => PPD_FILE_OPEN_ERROR, - 2 => PPD_NULL_FILE, - 3 => PPD_ALLOC_ERROR, - 4 => PPD_MISSING_PPDADOBE4, - 5 => PPD_MISSING_VALUE, - 6 => PPD_INTERNAL_ERROR, - 7 => PPD_BAD_OPEN_GROUP, - 8 => PPD_NESTED_OPEN_GROUP, - 9 => PPD_BAD_OPEN_UI, - 10 => PPD_NESTED_OPEN_UI, - 11 => PPD_BAD_ORDER_DEPENDENCY, - 12 => PPD_BAD_UI_CONSTRAINTS, - 13 => PPD_MISSING_ASTERISK, - 14 => PPD_LINE_TOO_LONG, - 15 => PPD_ILLEGAL_CHARACTER, - 16 => PPD_ILLEGAL_MAIN_KEYWORD, - 17 => PPD_ILLEGAL_OPTION_KEYWORD, - 18 => PPD_ILLEGAL_TRANSLATION, - 19 => PPD_ILLEGAL_WHITESPACE, - 20 => PPD_BAD_CUSTOM_PARAM, - 21 => PPD_MISSING_OPTION_KEYWORD, - 22 => PPD_BAD_VALUE, - 23 => PPD_MISSING_CLOSE_GROUP, - 24 => PPD_BAD_CLOSE_UI, - 25 => PPD_MISSING_CLOSE_UI, - 26 => PPD_MAX_STATUS, - _ => throw ArgumentError('Unknown value for ppd_status_e: $value'), - }; -} - -enum ppd_ui_e { - PPD_UI_BOOLEAN(0), - PPD_UI_PICKONE(1), - PPD_UI_PICKMANY(2); - - final int value; - const ppd_ui_e(this.value); - - static ppd_ui_e fromValue(int value) => switch (value) { - 0 => PPD_UI_BOOLEAN, - 1 => PPD_UI_PICKONE, - 2 => PPD_UI_PICKMANY, - _ => throw ArgumentError('Unknown value for ppd_ui_e: $value'), - }; -} - -typedef ppnum_t = ffi.Uint32; -typedef Dartppnum_t = int; - -const int prInitErr = -88; - -const int prWrErr = -87; - -const int preferencesFolderIconResource = -3974; - -const int printMonitorFolderIconResource = -3975; - -const int printerStatusOpCodeNotSupportedErr = -25280; - -const int privateFolderIconResource = -3994; - -const int procNotFound = -600; - -final class proc_rlimit_control_wakeupmon extends ffi.Struct { - @ffi.Uint32() - external int wm_flags; - - @ffi.Int32() - external int wm_rate; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int wm_flags, - required int wm_rate, - }) => $allocator() - ..ref.wm_flags = wm_flags - ..ref.wm_rate = wm_rate; -} - -const int processStateIncorrectErr = -4991; - -typedef processor_array_t = ffi.Pointer; - -final class processor_basic_info extends ffi.Struct { - @cpu_type_t() - external int cpu_type; - - @cpu_subtype_t() - external int cpu_subtype; - - @boolean_t() - external int running; - - @ffi.Int() - external int slot_num; - - external UnnamedUnion$16 unnamed; -} - -typedef processor_basic_info_data_t = processor_basic_info; -typedef processor_basic_info_t = ffi.Pointer; - -final class processor_cpu_load_info extends ffi.Struct { - @ffi.Array.multi([4]) - external ffi.Array cpu_ticks; -} - -typedef processor_cpu_load_info_data_t = processor_cpu_load_info; -typedef processor_cpu_load_info_t = ffi.Pointer; - -final class processor_cpu_stat extends ffi.Struct { - @ffi.Uint32() - external int irq_ex_cnt; - - @ffi.Uint32() - external int ipi_cnt; - - @ffi.Uint32() - external int timer_cnt; - - @ffi.Uint32() - external int undef_ex_cnt; - - @ffi.Uint32() - external int unaligned_cnt; - - @ffi.Uint32() - external int vfp_cnt; - - @ffi.Uint32() - external int vfp_shortv_cnt; - - @ffi.Uint32() - external int data_ex_cnt; - - @ffi.Uint32() - external int instr_ex_cnt; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int irq_ex_cnt, - required int ipi_cnt, - required int timer_cnt, - required int undef_ex_cnt, - required int unaligned_cnt, - required int vfp_cnt, - required int vfp_shortv_cnt, - required int data_ex_cnt, - required int instr_ex_cnt, - }) => $allocator() - ..ref.irq_ex_cnt = irq_ex_cnt - ..ref.ipi_cnt = ipi_cnt - ..ref.timer_cnt = timer_cnt - ..ref.undef_ex_cnt = undef_ex_cnt - ..ref.unaligned_cnt = unaligned_cnt - ..ref.vfp_cnt = vfp_cnt - ..ref.vfp_shortv_cnt = vfp_shortv_cnt - ..ref.data_ex_cnt = data_ex_cnt - ..ref.instr_ex_cnt = instr_ex_cnt; -} - -@ffi.Packed(4) -final class processor_cpu_stat64 extends ffi.Struct { - @ffi.Uint64() - external int irq_ex_cnt; - - @ffi.Uint64() - external int ipi_cnt; - - @ffi.Uint64() - external int timer_cnt; - - @ffi.Uint64() - external int undef_ex_cnt; - - @ffi.Uint64() - external int unaligned_cnt; - - @ffi.Uint64() - external int vfp_cnt; - - @ffi.Uint64() - external int vfp_shortv_cnt; - - @ffi.Uint64() - external int data_ex_cnt; - - @ffi.Uint64() - external int instr_ex_cnt; - - @ffi.Uint64() - external int pmi_cnt; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int irq_ex_cnt, - required int ipi_cnt, - required int timer_cnt, - required int undef_ex_cnt, - required int unaligned_cnt, - required int vfp_cnt, - required int vfp_shortv_cnt, - required int data_ex_cnt, - required int instr_ex_cnt, - required int pmi_cnt, - }) => $allocator() - ..ref.irq_ex_cnt = irq_ex_cnt - ..ref.ipi_cnt = ipi_cnt - ..ref.timer_cnt = timer_cnt - ..ref.undef_ex_cnt = undef_ex_cnt - ..ref.unaligned_cnt = unaligned_cnt - ..ref.vfp_cnt = vfp_cnt - ..ref.vfp_shortv_cnt = vfp_shortv_cnt - ..ref.data_ex_cnt = data_ex_cnt - ..ref.instr_ex_cnt = instr_ex_cnt - ..ref.pmi_cnt = pmi_cnt; -} - -typedef processor_cpu_stat64_data_t = processor_cpu_stat64; -typedef processor_cpu_stat64_t = ffi.Pointer; -typedef processor_cpu_stat_data_t = processor_cpu_stat; -typedef processor_cpu_stat_t = ffi.Pointer; -typedef processor_flavor_t = ffi.Int; -typedef Dartprocessor_flavor_t = int; -typedef processor_info_array_t = ffi.Pointer; -typedef processor_info_t = ffi.Pointer; -typedef processor_port_array_t = processor_array_t; -typedef processor_port_t = processor_t; -typedef processor_set_array_t = ffi.Pointer; - -final class processor_set_basic_info extends ffi.Struct { - @ffi.Int() - external int processor_count; - - @ffi.Int() - external int default_policy; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int processor_count, - required int default_policy, - }) => $allocator() - ..ref.processor_count = processor_count - ..ref.default_policy = default_policy; -} - -typedef processor_set_basic_info_data_t = processor_set_basic_info; -typedef processor_set_basic_info_t = ffi.Pointer; -typedef processor_set_control_port_t = processor_set_t; -typedef processor_set_control_t = mach_port_t; -typedef processor_set_flavor_t = ffi.Int; -typedef Dartprocessor_set_flavor_t = int; -typedef processor_set_info_t = ffi.Pointer; - -final class processor_set_load_info extends ffi.Struct { - @ffi.Int() - external int task_count; - - @ffi.Int() - external int thread_count; - - @integer_t() - external int load_average; - - @integer_t() - external int mach_factor; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int task_count, - required int thread_count, - required int load_average, - required int mach_factor, - }) => $allocator() - ..ref.task_count = task_count - ..ref.thread_count = thread_count - ..ref.load_average = load_average - ..ref.mach_factor = mach_factor; -} - -typedef processor_set_load_info_data_t = processor_set_load_info; -typedef processor_set_load_info_t = ffi.Pointer; -typedef processor_set_name_array_t = ffi.Pointer; -typedef processor_set_name_port_array_t = processor_set_array_t; -typedef processor_set_name_port_t = processor_set_t; -typedef processor_set_name_t = processor_set_t; -typedef processor_set_port_t = processor_set_t; -typedef processor_set_t = mach_port_t; -typedef processor_t = mach_port_t; - -const int progressProcAborted = -2019; - -const int propertyNotSupportedByNodeErr = -30547; - -const int protocolErr = -603; - -final class protoent extends ffi.Struct { - external ffi.Pointer p_name; - - external ffi.Pointer> p_aliases; - - @ffi.Int() - external int p_proto; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer p_name, - required ffi.Pointer> p_aliases, - required int p_proto, - }) => $allocator() - ..ref.p_name = p_name - ..ref.p_aliases = p_aliases - ..ref.p_proto = p_proto; -} - -typedef pthread_attr_t = __darwin_pthread_attr_t; -typedef pthread_cond_t = __darwin_pthread_cond_t; -typedef pthread_condattr_t = __darwin_pthread_condattr_t; -typedef pthread_key_t = __darwin_pthread_key_t; -typedef pthread_mutex_t = __darwin_pthread_mutex_t; -typedef pthread_mutexattr_t = __darwin_pthread_mutexattr_t; -typedef pthread_once_t = __darwin_pthread_once_t; -typedef pthread_rwlock_t = __darwin_pthread_rwlock_t; -typedef pthread_rwlockattr_t = __darwin_pthread_rwlockattr_t; -typedef pthread_t = __darwin_pthread_t; -typedef ptrauth_extra_data_t = ffi.UnsignedLong; -typedef Dartptrauth_extra_data_t = int; -typedef ptrauth_generic_signature_t = ffi.UnsignedLong; -typedef Dartptrauth_generic_signature_t = int; - -enum ptrauth_key { - ptrauth_key_none(-1), - ptrauth_key_asia(0), - ptrauth_key_asib(1), - ptrauth_key_asda(2), - ptrauth_key_asdb(3); - - static const ptrauth_key_process_independent_code = ptrauth_key_asia; - static const ptrauth_key_process_dependent_code = ptrauth_key_asib; - static const ptrauth_key_process_independent_data = ptrauth_key_asda; - static const ptrauth_key_process_dependent_data = ptrauth_key_asdb; - static const ptrauth_key_return_address = ptrauth_key_asib; - static const ptrauth_key_function_pointer = ptrauth_key_asia; - static const ptrauth_key_frame_pointer = ptrauth_key_asdb; - static const ptrauth_key_block_function = ptrauth_key_asia; - static const ptrauth_key_cxx_vtable_pointer = ptrauth_key_asda; - static const ptrauth_key_method_list_pointer = ptrauth_key_asda; - static const ptrauth_key_objc_isa_pointer = ptrauth_key_asda; - static const ptrauth_key_objc_super_pointer = ptrauth_key_asda; - static const ptrauth_key_block_descriptor_pointer = ptrauth_key_asda; - static const ptrauth_key_objc_sel_pointer = ptrauth_key_asdb; - static const ptrauth_key_objc_class_ro_pointer = ptrauth_key_asda; - - final int value; - const ptrauth_key(this.value); - - static ptrauth_key fromValue(int value) => switch (value) { - -1 => ptrauth_key_none, - 0 => ptrauth_key_asia, - 1 => ptrauth_key_asib, - 2 => ptrauth_key_asda, - 3 => ptrauth_key_asdb, - _ => throw ArgumentError('Unknown value for ptrauth_key: $value'), - }; - - @override - String toString() { - if (this == ptrauth_key_asia) - return "ptrauth_key.ptrauth_key_asia, ptrauth_key.ptrauth_key_process_independent_code, ptrauth_key.ptrauth_key_function_pointer, ptrauth_key.ptrauth_key_block_function"; - if (this == ptrauth_key_asib) - return "ptrauth_key.ptrauth_key_asib, ptrauth_key.ptrauth_key_process_dependent_code, ptrauth_key.ptrauth_key_return_address"; - if (this == ptrauth_key_asda) - return "ptrauth_key.ptrauth_key_asda, ptrauth_key.ptrauth_key_process_independent_data, ptrauth_key.ptrauth_key_cxx_vtable_pointer, ptrauth_key.ptrauth_key_method_list_pointer, ptrauth_key.ptrauth_key_objc_isa_pointer, ptrauth_key.ptrauth_key_objc_super_pointer, ptrauth_key.ptrauth_key_block_descriptor_pointer, ptrauth_key.ptrauth_key_objc_class_ro_pointer"; - if (this == ptrauth_key_asdb) - return "ptrauth_key.ptrauth_key_asdb, ptrauth_key.ptrauth_key_process_dependent_data, ptrauth_key.ptrauth_key_frame_pointer, ptrauth_key.ptrauth_key_objc_sel_pointer"; - return super.toString(); - } -} - -typedef ptrdiff_t = ffi.Long; -typedef Dartptrdiff_t = int; - -final class pwg_map_s extends ffi.Struct { - external ffi.Pointer pwg; - - external ffi.Pointer ppd; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pwg, - required ffi.Pointer ppd, - }) => $allocator() - ..ref.pwg = pwg - ..ref.ppd = ppd; -} - -typedef pwg_map_t = pwg_map_s; - -final class pwg_media_s extends ffi.Struct { - external ffi.Pointer pwg; - - external ffi.Pointer legacy; - - external ffi.Pointer ppd; - - @ffi.Int() - external int width; - - @ffi.Int() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pwg, - required ffi.Pointer legacy, - required ffi.Pointer ppd, - required int width, - required int length, - }) => $allocator() - ..ref.pwg = pwg - ..ref.legacy = legacy - ..ref.ppd = ppd - ..ref.width = width - ..ref.length = length; -} - -typedef pwg_media_t = pwg_media_s; - -final class pwg_size_s extends ffi.Struct { - external pwg_map_t map; - - @ffi.Int() - external int width; - - @ffi.Int() - external int length; - - @ffi.Int() - external int left; - - @ffi.Int() - external int bottom; - - @ffi.Int() - external int right; - - @ffi.Int() - external int top; -} - -typedef pwg_size_t = pwg_size_s; - -const int qErr = -1; - -typedef qaddr_t = ffi.Pointer; - -const int qfcbNotCreatedErr = -2119; - -const int qfcbNotFoundErr = -2118; - -enum qos_class_t { - QOS_CLASS_USER_INTERACTIVE(33), - QOS_CLASS_USER_INITIATED(25), - QOS_CLASS_DEFAULT(21), - QOS_CLASS_UTILITY(17), - QOS_CLASS_BACKGROUND(9), - QOS_CLASS_UNSPECIFIED(0); - - final int value; - const qos_class_t(this.value); - - static qos_class_t fromValue(int value) => switch (value) { - 33 => QOS_CLASS_USER_INTERACTIVE, - 25 => QOS_CLASS_USER_INITIATED, - 21 => QOS_CLASS_DEFAULT, - 17 => QOS_CLASS_UTILITY, - 9 => QOS_CLASS_BACKGROUND, - 0 => QOS_CLASS_UNSPECIFIED, - _ => throw ArgumentError('Unknown value for qos_class_t: $value'), - }; -} - -const int qtActionNotHandledErr = -2157; - -const int qtNetworkAlreadyAllocatedErr = -2127; - -const int qtParamErr = -2202; - -const int qtXMLApplicationErr = -2159; - -const int qtXMLParseErr = -2158; - -const int qtmlDllEntryNotFoundErr = -2094; - -const int qtmlDllLoadErr = -2093; - -const int qtmlUninitialized = -2095; - -const int qtsAddressBusyErr = -5421; - -const int qtsBadDataErr = -5402; - -const int qtsBadSelectorErr = -5400; - -const int qtsBadStateErr = -5401; - -const int qtsConnectionFailedErr = -5420; - -const int qtsTimeoutErr = -5408; - -const int qtsTooMuchDataErr = -5406; - -const int qtsUnknownValueErr = -5407; - -const int qtsUnsupportedDataTypeErr = -5403; - -const int qtsUnsupportedFeatureErr = -5405; - -const int qtsUnsupportedRateErr = -5404; - -const int qtvrLibraryLoadErr = -30554; - -const int qtvrUninitialized = -30555; - -typedef quad_t = ffi.Int64; -typedef Dartquad_t = int; - -const int queueFull = -203; - -@Deprecated('Deprecated') -const int rAliasType = 1634494835; - -final class radvisory extends ffi.Struct { - @off_t() - external int ra_offset; - - @ffi.Int() - external int ra_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ra_offset, - required int ra_count, - }) => $allocator() - ..ref.ra_offset = ra_offset - ..ref.ra_count = ra_count; -} - -const int rcDBAsyncNotSupp = -809; - -const int rcDBBadAsyncPB = -810; - -const int rcDBBadDDEV = -808; - -const int rcDBBadSessID = -806; - -const int rcDBBadSessNum = -807; - -const int rcDBBadType = -803; - -const int rcDBBreak = -804; - -const int rcDBError = -802; - -const int rcDBExec = -805; - -const int rcDBNoHandler = -811; - -const int rcDBNull = -800; - -const int rcDBPackNotInited = -813; - -const int rcDBValue = -801; - -const int rcDBWrongVersion = -812; - -const int rcvrErr = -89; - -const int rdVerify = 64; - -const int rdVerifyBit = 6; - -const int rdVerifyMask = 64; - -const int readErr = -19; - -const int readQErr = -3105; - -@Deprecated('Deprecated') -const int readReference = 1; - -const int recNotFnd = -3108; - -const int recordDataTooBigErr = -20001; - -typedef reg64_t = ffi.Uint32; -typedef Dartreg64_t = int; -@Deprecated('Deprecated') -const int registerComponentAfterExisting = 4; - -@Deprecated('Deprecated') -const int registerComponentAliasesOnly = 8; - -@Deprecated('Deprecated') -const int registerComponentGlobal = 1; - -@Deprecated('Deprecated') -const int registerComponentNoDuplicates = 2; - -typedef registerSelectorType = ffi.UnsignedShort; -typedef DartregisterSelectorType = int; -typedef register_t = ffi.Int64; -typedef Dartregister_t = int; -typedef relop = ffi.Short; -typedef Dartrelop = int; - -const int reqAborted = -1105; - -const int reqFailed = -1096; - -const int requiredFlagsDontMatch = -4001; - -const int res1Field = 11; - -const int res2Field = 12; - -const int res3Field = 13; - -const int resAttrErr = -198; - -@Deprecated('Deprecated') -const int resChanged = 2; - -@Deprecated('Deprecated') -const int resChangedBit = 1; - -const int resFNotFound = -193; - -@Deprecated('Deprecated') -const int resLocked = 16; - -@Deprecated('Deprecated') -const int resLockedBit = 4; - -const int resNotFound = -192; - -@Deprecated('Deprecated') -const int resPreload = 4; - -@Deprecated('Deprecated') -const int resPreloadBit = 2; - -const int resProblem = -204; - -@Deprecated('Deprecated') -const int resProtected = 8; - -@Deprecated('Deprecated') -const int resProtectedBit = 3; - -@Deprecated('Deprecated') -const int resPurgeable = 32; - -@Deprecated('Deprecated') -const int resPurgeableBit = 5; - -@Deprecated('Deprecated') -const int resSysHeap = 64; - -@Deprecated('Deprecated') -const int resSysHeapBit = 6; - -@Deprecated('Deprecated') -const int resSysRefBit = 7; - -const int resourceInMemory = -188; - -const int retryComponentRegistrationErr = -3005; - -const int rfNumErr = -51; - -const int rgnOverflowErr = -147; - -const int rgnTooBigErr = -500; - -const int rgnTooBigError = -147; - -@Deprecated('Deprecated') -const int rightSingGuillemet = 221; - -@Deprecated('Deprecated') -const int ringMark = 251; - -typedef rlim_t = __uint64_t; - -final class rlimit extends ffi.Struct { - @rlim_t() - external int rlim_cur; - - @rlim_t() - external int rlim_max; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int rlim_cur, - required int rlim_max, - }) => $allocator() - ..ref.rlim_cur = rlim_cur - ..ref.rlim_max = rlim_max; -} - -const int rmvRefFailed = -197; - -const int rmvResFailed = -196; - -@Deprecated('Deprecated') -const int romanAppFond = 3; - -@Deprecated('Deprecated') -const int romanFlags = 7; - -@Deprecated('Deprecated') -const int romanSysFond = 16383; - -typedef routine_arg_descriptor = mach_msg_type_descriptor_t; -typedef routine_arg_descriptor_t = ffi.Pointer; -typedef routine_arg_offset = ffi.UnsignedInt; -typedef Dartroutine_arg_offset = int; -typedef routine_arg_size = ffi.UnsignedInt; -typedef Dartroutine_arg_size = int; -typedef routine_arg_type = ffi.UnsignedInt; -typedef Dartroutine_arg_type = int; - -final class routine_descriptor extends ffi.Struct { - external mig_impl_routine_t impl_routine; - - external mig_stub_routine_t stub_routine; - - @ffi.UnsignedInt() - external int argc; - - @ffi.UnsignedInt() - external int descr_count; - - external routine_arg_descriptor_t arg_descr; - - @ffi.UnsignedInt() - external int max_reply_msg; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required mig_impl_routine_t impl_routine, - required mig_stub_routine_t stub_routine, - required int argc, - required int descr_count, - required routine_arg_descriptor_t arg_descr, - required int max_reply_msg, - }) => $allocator() - ..ref.impl_routine = impl_routine - ..ref.stub_routine = stub_routine - ..ref.argc = argc - ..ref.descr_count = descr_count - ..ref.arg_descr = arg_descr - ..ref.max_reply_msg = max_reply_msg; -} - -typedef routine_descriptor_t = ffi.Pointer; - -const int routingNotFoundErr = -4275; - -final class rpc_routine_arg_descriptor extends ffi.Struct { - @routine_arg_type() - external int type; - - @routine_arg_size() - external int size; - - @routine_arg_size() - external int count; - - @routine_arg_offset() - external int offset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int type, - required int size, - required int count, - required int offset, - }) => $allocator() - ..ref.type = type - ..ref.size = size - ..ref.count = count - ..ref.offset = offset; -} - -typedef rpc_routine_arg_descriptor_t = ffi.Pointer; - -final class rpc_routine_descriptor extends ffi.Struct { - external mig_impl_routine_t impl_routine; - - external mig_stub_routine_t stub_routine; - - @ffi.UnsignedInt() - external int argc; - - @ffi.UnsignedInt() - external int descr_count; - - external rpc_routine_arg_descriptor_t arg_descr; - - @ffi.UnsignedInt() - external int max_reply_msg; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required mig_impl_routine_t impl_routine, - required mig_stub_routine_t stub_routine, - required int argc, - required int descr_count, - required rpc_routine_arg_descriptor_t arg_descr, - required int max_reply_msg, - }) => $allocator() - ..ref.impl_routine = impl_routine - ..ref.stub_routine = stub_routine - ..ref.argc = argc - ..ref.descr_count = descr_count - ..ref.arg_descr = arg_descr - ..ref.max_reply_msg = max_reply_msg; -} - -typedef rpc_routine_descriptor_t = ffi.Pointer; - -final class rpc_signature extends ffi.Struct { - external rpc_routine_descriptor rd; - - @ffi.Array.multi([1]) - external ffi.Array rad; -} - -final class rpc_subsystem extends ffi.Struct { - external ffi.Pointer reserved; - - @mach_msg_id_t() - external int start; - - @mach_msg_id_t() - external int end; - - @ffi.UnsignedInt() - external int maxsize; - - @vm_address_t() - external int base_addr; - - @ffi.Array.multi([1]) - external ffi.Array routine; - - @ffi.Array.multi([1]) - external ffi.Array arg_descriptor; -} - -typedef rpc_subsystem_t = ffi.Pointer; - -final class rpcent extends ffi.Struct { - external ffi.Pointer r_name; - - external ffi.Pointer> r_aliases; - - @ffi.Int() - external int r_number; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer r_name, - required ffi.Pointer> r_aliases, - required int r_number, - }) => $allocator() - ..ref.r_name = r_name - ..ref.r_aliases = r_aliases - ..ref.r_number = r_number; -} - -typedef rsize_t = __darwin_size_t; -typedef rune_t = __darwin_rune_t; - -final class rusage extends ffi.Struct { - external timeval ru_utime; - - external timeval ru_stime; - - @ffi.Long() - external int ru_maxrss; - - @ffi.Long() - external int ru_ixrss; - - @ffi.Long() - external int ru_idrss; - - @ffi.Long() - external int ru_isrss; - - @ffi.Long() - external int ru_minflt; - - @ffi.Long() - external int ru_majflt; - - @ffi.Long() - external int ru_nswap; - - @ffi.Long() - external int ru_inblock; - - @ffi.Long() - external int ru_oublock; - - @ffi.Long() - external int ru_msgsnd; - - @ffi.Long() - external int ru_msgrcv; - - @ffi.Long() - external int ru_nsignals; - - @ffi.Long() - external int ru_nvcsw; - - @ffi.Long() - external int ru_nivcsw; -} - -typedef rusage_info_current = rusage_info_v6; -typedef rusage_info_t = ffi.Pointer; - -final class rusage_info_v0 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; -} - -final class rusage_info_v1 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; -} - -final class rusage_info_v2 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; - - @ffi.Uint64() - external int ri_diskio_bytesread; - - @ffi.Uint64() - external int ri_diskio_byteswritten; -} - -final class rusage_info_v3 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; - - @ffi.Uint64() - external int ri_diskio_bytesread; - - @ffi.Uint64() - external int ri_diskio_byteswritten; - - @ffi.Uint64() - external int ri_cpu_time_qos_default; - - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; - - @ffi.Uint64() - external int ri_cpu_time_qos_background; - - @ffi.Uint64() - external int ri_cpu_time_qos_utility; - - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; - - @ffi.Uint64() - external int ri_billed_system_time; - - @ffi.Uint64() - external int ri_serviced_system_time; -} - -final class rusage_info_v4 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; - - @ffi.Uint64() - external int ri_diskio_bytesread; - - @ffi.Uint64() - external int ri_diskio_byteswritten; - - @ffi.Uint64() - external int ri_cpu_time_qos_default; - - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; - - @ffi.Uint64() - external int ri_cpu_time_qos_background; - - @ffi.Uint64() - external int ri_cpu_time_qos_utility; - - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; - - @ffi.Uint64() - external int ri_billed_system_time; - - @ffi.Uint64() - external int ri_serviced_system_time; - - @ffi.Uint64() - external int ri_logical_writes; - - @ffi.Uint64() - external int ri_lifetime_max_phys_footprint; - - @ffi.Uint64() - external int ri_instructions; - - @ffi.Uint64() - external int ri_cycles; - - @ffi.Uint64() - external int ri_billed_energy; - - @ffi.Uint64() - external int ri_serviced_energy; - - @ffi.Uint64() - external int ri_interval_max_phys_footprint; - - @ffi.Uint64() - external int ri_runnable_time; -} - -final class rusage_info_v5 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; - - @ffi.Uint64() - external int ri_diskio_bytesread; - - @ffi.Uint64() - external int ri_diskio_byteswritten; - - @ffi.Uint64() - external int ri_cpu_time_qos_default; - - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; - - @ffi.Uint64() - external int ri_cpu_time_qos_background; - - @ffi.Uint64() - external int ri_cpu_time_qos_utility; - - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; - - @ffi.Uint64() - external int ri_billed_system_time; - - @ffi.Uint64() - external int ri_serviced_system_time; - - @ffi.Uint64() - external int ri_logical_writes; - - @ffi.Uint64() - external int ri_lifetime_max_phys_footprint; - - @ffi.Uint64() - external int ri_instructions; - - @ffi.Uint64() - external int ri_cycles; - - @ffi.Uint64() - external int ri_billed_energy; - - @ffi.Uint64() - external int ri_serviced_energy; - - @ffi.Uint64() - external int ri_interval_max_phys_footprint; - - @ffi.Uint64() - external int ri_runnable_time; - - @ffi.Uint64() - external int ri_flags; -} - -final class rusage_info_v6 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; - - @ffi.Uint64() - external int ri_diskio_bytesread; - - @ffi.Uint64() - external int ri_diskio_byteswritten; - - @ffi.Uint64() - external int ri_cpu_time_qos_default; - - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; - - @ffi.Uint64() - external int ri_cpu_time_qos_background; - - @ffi.Uint64() - external int ri_cpu_time_qos_utility; - - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; - - @ffi.Uint64() - external int ri_billed_system_time; - - @ffi.Uint64() - external int ri_serviced_system_time; - - @ffi.Uint64() - external int ri_logical_writes; - - @ffi.Uint64() - external int ri_lifetime_max_phys_footprint; - - @ffi.Uint64() - external int ri_instructions; - - @ffi.Uint64() - external int ri_cycles; - - @ffi.Uint64() - external int ri_billed_energy; - - @ffi.Uint64() - external int ri_serviced_energy; - - @ffi.Uint64() - external int ri_interval_max_phys_footprint; - - @ffi.Uint64() - external int ri_runnable_time; - - @ffi.Uint64() - external int ri_flags; - - @ffi.Uint64() - external int ri_user_ptime; - - @ffi.Uint64() - external int ri_system_ptime; - - @ffi.Uint64() - external int ri_pinstructions; - - @ffi.Uint64() - external int ri_pcycles; - - @ffi.Uint64() - external int ri_energy_nj; - - @ffi.Uint64() - external int ri_penergy_nj; - - @ffi.Uint64() - external int ri_secure_time_in_system; - - @ffi.Uint64() - external int ri_secure_ptime_in_system; - - @ffi.Uint64() - external int ri_neural_footprint; - - @ffi.Uint64() - external int ri_lifetime_max_neural_footprint; - - @ffi.Uint64() - external int ri_interval_max_neural_footprint; - - @ffi.Array.multi([9]) - external ffi.Array ri_reserved; -} - -@Deprecated('Deprecated') -const int sIQType = 6; - -final class sa_endpoints extends ffi.Struct { - @ffi.UnsignedInt() - external int sae_srcif; - - external ffi.Pointer sae_srcaddr; - - @socklen_t() - external int sae_srcaddrlen; - - external ffi.Pointer sae_dstaddr; - - @socklen_t() - external int sae_dstaddrlen; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sae_srcif, - required ffi.Pointer sae_srcaddr, - required int sae_srcaddrlen, - required ffi.Pointer sae_dstaddr, - required int sae_dstaddrlen, - }) => $allocator() - ..ref.sae_srcif = sae_srcif - ..ref.sae_srcaddr = sae_srcaddr - ..ref.sae_srcaddrlen = sae_srcaddrlen - ..ref.sae_dstaddr = sae_dstaddr - ..ref.sae_dstaddrlen = sae_dstaddrlen; -} - -typedef sa_endpoints_t = sa_endpoints; -typedef sa_family_t = __uint8_t; -typedef sae_associd_t = __uint32_t; -typedef sae_connid_t = __uint32_t; - -const int sameFileErr = -1306; - -const int samplesAlreadyInMediaErr = -2059; - -const int scTypeNotFoundErr = -8971; - -const int scrapFlavorFlagsMismatchErr = -4995; - -const int scrapFlavorNotFoundErr = -102; - -const int scrapFlavorSizeMismatchErr = -4996; - -const int scrapPromiseNotKeptErr = -4992; - -const int scriptCurLang = -6; - -const int scriptDefLang = -7; - -const int sdmInitErr = 11; - -const int sdmJTInitErr = 10; - -const int sdmPRAMInitErr = 13; - -const int sdmPriInitErr = 14; - -const int sdmSRTInitErr = 12; - -const int seNoDB = -8; - -final class searchstate extends ffi.Opaque {} - -const int secLeadingZ = 32; - -typedef sec_certificate_t = ffi.Pointer; -typedef Dartsec_certificate_t = objc.NSObject; -typedef sec_identity_t = ffi.Pointer; -typedef Dartsec_identity_t = objc.NSObject; -typedef sec_object_t = ffi.Pointer; -typedef Dartsec_object_t = objc.NSObject; -typedef sec_protocol_challenge_complete_t = ffi.Pointer; -typedef Dartsec_protocol_challenge_complete_t = - objc.ObjCBlock; -typedef sec_protocol_challenge_t = ffi.Pointer; -typedef Dartsec_protocol_challenge_t = - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >; -typedef sec_protocol_key_update_complete_t = ffi.Pointer; -typedef Dartsec_protocol_key_update_complete_t = - objc.ObjCBlock; -typedef sec_protocol_key_update_t = ffi.Pointer; -typedef Dartsec_protocol_key_update_t = - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >; -typedef sec_protocol_metadata_t = ffi.Pointer; -typedef Dartsec_protocol_metadata_t = objc.NSObject; -typedef sec_protocol_options_t = ffi.Pointer; -typedef Dartsec_protocol_options_t = objc.NSObject; -typedef sec_protocol_pre_shared_key_selection_complete_t = - ffi.Pointer; -typedef Dartsec_protocol_pre_shared_key_selection_complete_t = - objc.ObjCBlock; -typedef sec_protocol_pre_shared_key_selection_t = - ffi.Pointer; -typedef Dartsec_protocol_pre_shared_key_selection_t = - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >; -typedef sec_protocol_verify_complete_t = ffi.Pointer; -typedef Dartsec_protocol_verify_complete_t = - objc.ObjCBlock; -typedef sec_protocol_verify_t = ffi.Pointer; -typedef Dartsec_protocol_verify_t = - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >; -typedef sec_trust_t = ffi.Pointer; -typedef Dartsec_trust_t = objc.NSObject; - -const int secondField = 6; - -const int secondMask = 64; - -const int sectNFErr = -81; - -final class security_token_t extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array val; -} - -const int seekErr = -80; - -typedef segsz_t = ffi.Int32; -typedef Dartsegsz_t = int; - -const int selectorNotSupportedByNodeErr = -30543; - -typedef semaphore_port_t = semaphore_t; -typedef semaphore_t = mach_port_t; - -const int sepNotConsistent = 64; - -const int sepNotIntlSep = 4; - -const int seqGrabInfoNotAvailable = -9407; - -final class servent extends ffi.Struct { - external ffi.Pointer s_name; - - external ffi.Pointer> s_aliases; - - @ffi.Int() - external int s_port; - - external ffi.Pointer s_proto; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer s_name, - required ffi.Pointer> s_aliases, - required int s_port, - required ffi.Pointer s_proto, - }) => $allocator() - ..ref.s_name = s_name - ..ref.s_aliases = s_aliases - ..ref.s_port = s_port - ..ref.s_proto = s_proto; -} - -const int sessClosedErr = -917; - -const int sessTableErr = -907; - -const int settingNotSupportedByNodeErr = -30548; - -final class sf_hdtr extends ffi.Struct { - external ffi.Pointer headers; - - @ffi.Int() - external int hdr_cnt; - - external ffi.Pointer trailers; - - @ffi.Int() - external int trl_cnt; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer headers, - required int hdr_cnt, - required ffi.Pointer trailers, - required int trl_cnt, - }) => $allocator() - ..ref.headers = headers - ..ref.hdr_cnt = hdr_cnt - ..ref.trailers = trailers - ..ref.trl_cnt = trl_cnt; -} - -@ffi.Packed(2) -final class sfntCMapEncoding extends ffi.Struct { - @UInt16() - external int platformID; - - @UInt16() - external int scriptID; - - @UInt32() - external int offset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int platformID, - required int scriptID, - required int offset, - }) => $allocator() - ..ref.platformID = platformID - ..ref.scriptID = scriptID - ..ref.offset = offset; -} - -@ffi.Packed(2) -final class sfntCMapExtendedSubHeader extends ffi.Struct { - @UInt16() - external int format; - - @UInt16() - external int reserved; - - @UInt32() - external int length; - - @UInt32() - external int language; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int format, - required int reserved, - required int length, - required int language, - }) => $allocator() - ..ref.format = format - ..ref.reserved = reserved - ..ref.length = length - ..ref.language = language; -} - -final class sfntCMapHeader extends ffi.Struct { - @UInt16() - external int version; - - @UInt16() - external int numTables; - - @ffi.Array.multi([1]) - external ffi.Array encoding; -} - -final class sfntCMapSubHeader extends ffi.Struct { - @UInt16() - external int format; - - @UInt16() - external int length; - - @UInt16() - external int languageID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int format, - required int length, - required int languageID, - }) => $allocator() - ..ref.format = format - ..ref.length = length - ..ref.languageID = languageID; -} - -@ffi.Packed(2) -final class sfntDescriptorHeader extends ffi.Struct { - @Fixed() - external int version; - - @SInt32() - external int descriptorCount; - - @ffi.Array.multi([1]) - external ffi.Array descriptor; -} - -@ffi.Packed(2) -final class sfntDirectory extends ffi.Struct { - @FourCharCode() - external int format; - - @UInt16() - external int numOffsets; - - @UInt16() - external int searchRange; - - @UInt16() - external int entrySelector; - - @UInt16() - external int rangeShift; - - @ffi.Array.multi([1]) - external ffi.Array table; -} - -@ffi.Packed(2) -final class sfntDirectoryEntry extends ffi.Struct { - @FourCharCode() - external int tableTag; - - @UInt32() - external int checkSum; - - @UInt32() - external int offset; - - @UInt32() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tableTag, - required int checkSum, - required int offset, - required int length, - }) => $allocator() - ..ref.tableTag = tableTag - ..ref.checkSum = checkSum - ..ref.offset = offset - ..ref.length = length; -} - -@ffi.Packed(2) -final class sfntFeatureHeader extends ffi.Struct { - @SInt32() - external int version; - - @UInt16() - external int featureNameCount; - - @UInt16() - external int featureSetCount; - - @SInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array names; - - @ffi.Array.multi([1]) - external ffi.Array settings; - - @ffi.Array.multi([1]) - external ffi.Array runs; -} - -@ffi.Packed(2) -final class sfntFeatureName extends ffi.Struct { - @UInt16() - external int featureType; - - @UInt16() - external int settingCount; - - @SInt32() - external int offsetToSettings; - - @UInt16() - external int featureFlags; - - @SInt16() - external int nameID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int featureType, - required int settingCount, - required int offsetToSettings, - required int featureFlags, - required int nameID, - }) => $allocator() - ..ref.featureType = featureType - ..ref.settingCount = settingCount - ..ref.offsetToSettings = offsetToSettings - ..ref.featureFlags = featureFlags - ..ref.nameID = nameID; -} - -@ffi.Packed(2) -final class sfntFontDescriptor extends ffi.Struct { - @FourCharCode() - external int name; - - @Fixed() - external int value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int name, - required int value, - }) => $allocator() - ..ref.name = name - ..ref.value = value; -} - -final class sfntFontFeatureSetting extends ffi.Struct { - @UInt16() - external int setting; - - @SInt16() - external int nameID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int setting, - required int nameID, - }) => $allocator() - ..ref.setting = setting - ..ref.nameID = nameID; -} - -final class sfntFontRunFeature extends ffi.Struct { - @UInt16() - external int featureType; - - @UInt16() - external int setting; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int featureType, - required int setting, - }) => $allocator() - ..ref.featureType = featureType - ..ref.setting = setting; -} - -@ffi.Packed(2) -final class sfntInstance extends ffi.Struct { - @SInt16() - external int nameID; - - @SInt16() - external int flags; - - @ffi.Array.multi([1]) - external ffi.Array coord; -} - -final class sfntNameHeader extends ffi.Struct { - @UInt16() - external int format; - - @UInt16() - external int count; - - @UInt16() - external int stringOffset; - - @ffi.Array.multi([1]) - external ffi.Array rec; -} - -final class sfntNameRecord extends ffi.Struct { - @UInt16() - external int platformID; - - @UInt16() - external int scriptID; - - @UInt16() - external int languageID; - - @UInt16() - external int nameID; - - @UInt16() - external int length; - - @UInt16() - external int offset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int platformID, - required int scriptID, - required int languageID, - required int nameID, - required int length, - required int offset, - }) => $allocator() - ..ref.platformID = platformID - ..ref.scriptID = scriptID - ..ref.languageID = languageID - ..ref.nameID = nameID - ..ref.length = length - ..ref.offset = offset; -} - -@ffi.Packed(2) -final class sfntVariationAxis extends ffi.Struct { - @FourCharCode() - external int axisTag; - - @Fixed() - external int minValue; - - @Fixed() - external int defaultValue; - - @Fixed() - external int maxValue; - - @SInt16() - external int flags; - - @SInt16() - external int nameID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int axisTag, - required int minValue, - required int defaultValue, - required int maxValue, - required int flags, - required int nameID, - }) => $allocator() - ..ref.axisTag = axisTag - ..ref.minValue = minValue - ..ref.defaultValue = defaultValue - ..ref.maxValue = maxValue - ..ref.flags = flags - ..ref.nameID = nameID; -} - -@ffi.Packed(2) -final class sfntVariationHeader extends ffi.Struct { - @Fixed() - external int version; - - @UInt16() - external int offsetToData; - - @UInt16() - external int countSizePairs; - - @UInt16() - external int axisCount; - - @UInt16() - external int axisSize; - - @UInt16() - external int instanceCount; - - @UInt16() - external int instanceSize; - - @ffi.Array.multi([1]) - external ffi.Array axis; - - @ffi.Array.multi([1]) - external ffi.Array instance; -} - -const int shadow = 16; - -const int sharedFolderIconResource = -3978; - -const int shortDate = 0; - -const int shutDownAlert = 42; - -const int siBadDeviceName = -228; - -const int siBadRefNum = -229; - -const int siBadSoundInDevice = -221; - -const int siDeviceBusyErr = -227; - -const int siHardDriveTooSlow = -224; - -const int siInitSDTblErr = 1; - -const int siInitSPTblErr = 3; - -const int siInitVBLQsErr = 2; - -const int siInputDeviceErr = -230; - -const int siInvalidCompression = -223; - -const int siInvalidSampleRate = -225; - -const int siInvalidSampleSize = -226; - -const int siNoBufferSpecified = -222; - -const int siNoSoundInHardware = -220; - -const int siUnknownInfoType = -231; - -const int siUnknownQuality = -232; - -const int siVBRCompressionNotSupported = -213; - -typedef sig_atomic_t = ffi.Int; -typedef Dartsig_atomic_t = int; -typedef sig_t = ffi.Pointer>; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); - -final class sigaction$1 extends ffi.Struct { - external __sigaction_u __sigaction_u$1; - - @sigset_t() - external int sa_mask; - - @ffi.Int() - external int sa_flags; -} - -final class sigevent extends ffi.Struct { - @ffi.Int() - external int sigev_notify; - - @ffi.Int() - external int sigev_signo; - - external sigval sigev_value; - - external ffi.Pointer> - sigev_notify_function; - - external ffi.Pointer sigev_notify_attributes; -} - -typedef siginfo_t = __siginfo; -typedef sigset_t = __darwin_sigset_t; - -final class sigstack extends ffi.Struct { - external ffi.Pointer ss_sp; - - @ffi.Int() - external int ss_onstack; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer ss_sp, - required int ss_onstack, - }) => $allocator() - ..ref.ss_sp = ss_sp - ..ref.ss_onstack = ss_onstack; -} - -final class sigval extends ffi.Union { - @ffi.Int() - external int sival_int; - - external ffi.Pointer sival_ptr; -} - -final class sigvec$1 extends ffi.Struct { - external ffi.Pointer> - sv_handler; - - @ffi.Int() - external int sv_mask; - - @ffi.Int() - external int sv_flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer> - sv_handler, - required int sv_mask, - required int sv_flags, - }) => $allocator() - ..ref.sv_handler = sv_handler - ..ref.sv_mask = sv_mask - ..ref.sv_flags = sv_flags; -} - -typedef sint16 = ffi.Int16; -typedef Dartsint16 = int; -typedef sint32 = ffi.Int32; -typedef Dartsint32 = int; -typedef sint64 = ffi.Int64; -typedef Dartsint64 = int; -typedef sint8 = ffi.Int8; -typedef Dartsint8 = int; - -const int sizeof_sfntCMapEncoding = 8; - -const int sizeof_sfntCMapExtendedSubHeader = 12; - -const int sizeof_sfntCMapHeader = 4; - -const int sizeof_sfntCMapSubHeader = 6; - -const int sizeof_sfntDescriptorHeader = 8; - -const int sizeof_sfntDirectory = 12; - -const int sizeof_sfntInstance = 4; - -const int sizeof_sfntNameHeader = 6; - -const int sizeof_sfntNameRecord = 12; - -const int sizeof_sfntVariationAxis = 20; - -const int sizeof_sfntVariationHeader = 16; - -const int sktClosedErr = -3109; - -const int sleepQType = 16; - -typedef sleep_type_t = ffi.Int; -typedef Dartsleep_type_t = int; - -const int slotNumErr = -360; - -const int slpQType = 16; - -@Deprecated('Deprecated') -const int smAllScripts = -3; - -@Deprecated('Deprecated') -const int smAmharic = 28; - -@Deprecated('Deprecated') -const int smArabic = 4; - -@Deprecated('Deprecated') -const int smArmenian = 24; - -const int smBLFieldBad = -309; - -const int smBadBoardId = -319; - -const int smBadRefId = -330; - -@Deprecated('Deprecated') -const int smBadScript = -2; - -@Deprecated('Deprecated') -const int smBadVerb = -1; - -const int smBadsList = -331; - -const int smBadsPtrErr = -346; - -@Deprecated('Deprecated') -const int smBengali = 13; - -const int smBlkMoveErr = -340; - -@Deprecated('Deprecated') -const int smBurmese = 19; - -const int smBusErrTO = -320; - -const int smByteLanesErr = -347; - -const int smCPUErr = -334; - -const int smCRCFail = -301; - -@Deprecated('Deprecated') -const int smCentralEuroRoman = 29; - -@Deprecated('Deprecated') -const int smChar1byte = 0; - -@Deprecated('Deprecated') -const int smChar2byte = 32768; - -@Deprecated('Deprecated') -const int smCharAscii = 1; - -@Deprecated('Deprecated') -const int smCharBidirect = 8; - -@Deprecated('Deprecated') -const int smCharBopomofo = 14; - -@Deprecated('Deprecated') -const int smCharContextualLR = 9; - -@Deprecated('Deprecated') -const int smCharEuro = 7; - -@Deprecated('Deprecated') -const int smCharExtAscii = 7; - -@Deprecated('Deprecated') -const int smCharFISGana = 3; - -@Deprecated('Deprecated') -const int smCharFISGreek = 5; - -@Deprecated('Deprecated') -const int smCharFISIdeo = 4; - -@Deprecated('Deprecated') -const int smCharFISKana = 2; - -@Deprecated('Deprecated') -const int smCharFISRussian = 6; - -@Deprecated('Deprecated') -const int smCharGanaKana = 15; - -@Deprecated('Deprecated') -const int smCharHangul = 12; - -@Deprecated('Deprecated') -const int smCharHiragana = 3; - -@Deprecated('Deprecated') -const int smCharHorizontal = 0; - -@Deprecated('Deprecated') -const int smCharIdeographic = 4; - -@Deprecated('Deprecated') -const int smCharJamo = 13; - -@Deprecated('Deprecated') -const int smCharKatakana = 2; - -@Deprecated('Deprecated') -const int smCharLeft = 0; - -@Deprecated('Deprecated') -const int smCharLower = 0; - -@Deprecated('Deprecated') -const int smCharNonContextualLR = 10; - -@Deprecated('Deprecated') -const int smCharPunct = 0; - -@Deprecated('Deprecated') -const int smCharRight = 8192; - -@Deprecated('Deprecated') -const int smCharTwoByteGreek = 5; - -@Deprecated('Deprecated') -const int smCharTwoByteRussian = 6; - -@Deprecated('Deprecated') -const int smCharUpper = 16384; - -@Deprecated('Deprecated') -const int smCharVertical = 4096; - -@Deprecated('Deprecated') -const int smChinese = 2; - -const int smCkStatusErr = -341; - -const int smCodeRevErr = -333; - -@Deprecated('Deprecated') -const int smCurrentScript = -2; - -@Deprecated('Deprecated') -const int smCyrillic = 7; - -@Deprecated('Deprecated') -const int smDevanagari = 9; - -const int smDisDrvrNamErr = -343; - -const int smDisabledSlot = -305; - -const int smDisposePErr = -312; - -@Deprecated('Deprecated') -const int smEastEurRoman = 29; - -const int smEmptySlot = -300; - -@Deprecated('Deprecated') -const int smEthiopic = 28; - -@Deprecated('Deprecated') -const int smExtArabic = 31; - -const int smFHBlkDispErr = -311; - -const int smFHBlockRdErr = -310; - -@Deprecated('Deprecated') -const int smFISClassLvl1 = 0; - -@Deprecated('Deprecated') -const int smFISClassLvl2 = 256; - -@Deprecated('Deprecated') -const int smFISClassUser = 512; - -@Deprecated('Deprecated') -const int smFirstByte = -1; - -@Deprecated('Deprecated') -const int smFondEnd = 49152; - -@Deprecated('Deprecated') -const int smFondStart = 16384; - -const int smFormatErr = -302; - -@Deprecated('Deprecated') -const int smGeez = 28; - -@Deprecated('Deprecated') -const int smGeorgian = 23; - -const int smGetDrvrNamErr = -342; - -const int smGetPRErr = -314; - -@Deprecated('Deprecated') -const int smGreek = 6; - -@Deprecated('Deprecated') -const int smGujarati = 11; - -@Deprecated('Deprecated') -const int smGurmukhi = 10; - -@Deprecated('Deprecated') -const int smHebrew = 5; - -@Deprecated('Deprecated') -const int smIdeographicLevel1 = 0; - -@Deprecated('Deprecated') -const int smIdeographicLevel2 = 256; - -@Deprecated('Deprecated') -const int smIdeographicUser = 512; - -const int smInitStatVErr = -316; - -const int smInitTblVErr = -317; - -@Deprecated('Deprecated') -const int smJamoBogJaeum = 256; - -@Deprecated('Deprecated') -const int smJamoBogMoeum = 768; - -@Deprecated('Deprecated') -const int smJamoJaeum = 0; - -@Deprecated('Deprecated') -const int smJamoMoeum = 512; - -@Deprecated('Deprecated') -const int smJapanese = 1; - -@Deprecated('Deprecated') -const int smKCHRCache = 38; - -@Deprecated('Deprecated') -const int smKanaHardOK = 512; - -@Deprecated('Deprecated') -const int smKanaSmall = 256; - -@Deprecated('Deprecated') -const int smKanaSoftOK = 768; - -@Deprecated('Deprecated') -const int smKannada = 16; - -@Deprecated('Deprecated') -const int smKeyDisableKybdSwitch = -12; - -@Deprecated('Deprecated') -const int smKeyDisableKybds = -6; - -@Deprecated('Deprecated') -const int smKeyEnableKybds = -7; - -@Deprecated('Deprecated') -const int smKeyForceKeyScriptBit = 7; - -@Deprecated('Deprecated') -const int smKeyForceKeyScriptMask = 128; - -@Deprecated('Deprecated') -const int smKeyNextInputMethod = -10; - -@Deprecated('Deprecated') -const int smKeyNextKybd = -4; - -@Deprecated('Deprecated') -const int smKeyNextScript = -1; - -@Deprecated('Deprecated') -const int smKeyRoman = -17; - -@Deprecated('Deprecated') -const int smKeyScript = 22; - -@Deprecated('Deprecated') -const int smKeySetDirLeftRight = -15; - -@Deprecated('Deprecated') -const int smKeySetDirRightLeft = -16; - -@Deprecated('Deprecated') -const int smKeySwapInputMethod = -11; - -@Deprecated('Deprecated') -const int smKeySwapKybd = -5; - -@Deprecated('Deprecated') -const int smKeySwapScript = -3; - -@Deprecated('Deprecated') -const int smKeySysScript = -2; - -@Deprecated('Deprecated') -const int smKeyToggleDirection = -9; - -@Deprecated('Deprecated') -const int smKeyToggleInline = -8; - -@Deprecated('Deprecated') -const int smKhmer = 20; - -@Deprecated('Deprecated') -const int smKlingon = 32; - -@Deprecated('Deprecated') -const int smKorean = 3; - -@Deprecated('Deprecated') -const int smLao = 22; - -@Deprecated('Deprecated') -const int smLaotian = 22; - -@Deprecated('Deprecated') -const int smLastByte = 1; - -@Deprecated('Deprecated') -const int smMalayalam = 17; - -@Deprecated('Deprecated') -const int smMaskAll = -1; - -@Deprecated('Deprecated') -const int smMaskAscii = 1; - -@Deprecated('Deprecated') -const int smMaskAscii1 = 4; - -@Deprecated('Deprecated') -const int smMaskAscii2 = 8; - -@Deprecated('Deprecated') -const int smMaskBopomofo2 = 1024; - -@Deprecated('Deprecated') -const int smMaskGana2 = 128; - -@Deprecated('Deprecated') -const int smMaskHangul2 = 256; - -@Deprecated('Deprecated') -const int smMaskJamo2 = 512; - -@Deprecated('Deprecated') -const int smMaskKana1 = 16; - -@Deprecated('Deprecated') -const int smMaskKana2 = 32; - -@Deprecated('Deprecated') -const int smMaskNative = 2; - -@Deprecated('Deprecated') -const int smMiddleByte = 2; - -@Deprecated('Deprecated') -const int smMongolian = 27; - -const int smNewPErr = -339; - -const int smNilsBlockErr = -336; - -const int smNoBoardId = -315; - -const int smNoBoardSRsrc = -313; - -const int smNoDir = -304; - -const int smNoGoodOpens = -349; - -const int smNoJmpTbl = -318; - -const int smNoMoresRsrcs = -344; - -const int smNosInfoArray = -306; - -@Deprecated('Deprecated') -const int smNotInstalled = 0; - -@Deprecated('Deprecated') -const int smNumberPartsTable = 2; - -const int smOffsetErr = -348; - -@Deprecated('Deprecated') -const int smOriya = 12; - -const int smPRAMInitErr = -292; - -const int smPriInitErr = -293; - -@Deprecated('Deprecated') -const int smPunctBlank = 768; - -@Deprecated('Deprecated') -const int smPunctGraphic = 1280; - -@Deprecated('Deprecated') -const int smPunctNormal = 0; - -@Deprecated('Deprecated') -const int smPunctNumber = 256; - -@Deprecated('Deprecated') -const int smPunctRepeat = 1024; - -@Deprecated('Deprecated') -const int smPunctSymbol = 512; - -@Deprecated('Deprecated') -const int smRSymbol = 8; - -const int smRecNotFnd = -351; - -@Deprecated('Deprecated') -const int smRegionCode = 40; - -const int smReservedErr = -332; - -const int smReservedSlot = -318; - -const int smResrvErr = -307; - -const int smRevisionErr = -303; - -@Deprecated('Deprecated') -const int smRoman = 0; - -@Deprecated('Deprecated') -const int smRussian = 7; - -const int smSDMInitErr = -290; - -const int smSRTInitErr = -291; - -const int smSRTOvrFlErr = -350; - -const int smSelOOBErr = -338; - -@Deprecated('Deprecated') -const int smSimpChinese = 25; - -@Deprecated('Deprecated') -const int smSindhi = 31; - -@Deprecated('Deprecated') -const int smSingleByte = 0; - -@Deprecated('Deprecated') -const int smSinhalese = 18; - -@Deprecated('Deprecated') -const int smSlavic = 29; - -const int smSlotOOBErr = -337; - -@Deprecated('Deprecated') -const int smSysScript = 18; - -@Deprecated('Deprecated') -const int smSystemScript = -1; - -@Deprecated('Deprecated') -const int smTamil = 14; - -@Deprecated('Deprecated') -const int smTelugu = 15; - -@Deprecated('Deprecated') -const int smThai = 21; - -@Deprecated('Deprecated') -const int smTibetan = 26; - -@Deprecated('Deprecated') -const int smTradChinese = 2; - -@Deprecated('Deprecated') -const int smTransAscii = 0; - -@Deprecated('Deprecated') -const int smTransAscii1 = 2; - -@Deprecated('Deprecated') -const int smTransAscii2 = 3; - -@Deprecated('Deprecated') -const int smTransBopomofo2 = 10; - -@Deprecated('Deprecated') -const int smTransCase = 254; - -@Deprecated('Deprecated') -const int smTransGana2 = 7; - -@Deprecated('Deprecated') -const int smTransHangul2 = 8; - -@Deprecated('Deprecated') -const int smTransHangulFormat = 2; - -@Deprecated('Deprecated') -const int smTransJamo2 = 9; - -@Deprecated('Deprecated') -const int smTransKana1 = 4; - -@Deprecated('Deprecated') -const int smTransKana2 = 5; - -@Deprecated('Deprecated') -const int smTransLower = 16384; - -@Deprecated('Deprecated') -const int smTransNative = 1; - -@Deprecated('Deprecated') -const int smTransPreDoubleByting = 1; - -@Deprecated('Deprecated') -const int smTransPreLowerCasing = 2; - -@Deprecated('Deprecated') -const int smTransRuleBaseFormat = 1; - -@Deprecated('Deprecated') -const int smTransSystem = 255; - -@Deprecated('Deprecated') -const int smTransUpper = 32768; - -const int smUnExBusErr = -308; - -@Deprecated('Deprecated') -const int smUnTokenTable = 3; - -const int smUnicodeScript = 126; - -@Deprecated('Deprecated') -const int smUninterp = 32; - -@Deprecated('Deprecated') -const int smUprHalfCharSet = 128; - -@Deprecated('Deprecated') -const int smVietnamese = 30; - -@Deprecated('Deprecated') -const int smWhiteSpaceList = 4; - -@Deprecated('Deprecated') -const int smWordSelectTable = 0; - -@Deprecated('Deprecated') -const int smWordWrapTable = 1; - -const int small1BitMask = 1768125219; - -const int small4BitData = 1768125236; - -const int small8BitData = 1768125240; - -const int smallDateBit = 31; - -@Deprecated('Deprecated') -const int smcClassMask = 3840; - -@Deprecated('Deprecated') -const int smcDoubleMask = 32768; - -@Deprecated('Deprecated') -const int smcOrientationMask = 4096; - -@Deprecated('Deprecated') -const int smcReserved = 240; - -@Deprecated('Deprecated') -const int smcRightMask = 8192; - -@Deprecated('Deprecated') -const int smcTypeMask = 15; - -@Deprecated('Deprecated') -const int smcUpperMask = 16384; - -@Deprecated('Deprecated') -const int smfDisableKeyScriptSync = 27; - -@Deprecated('Deprecated') -const int smfDisableKeyScriptSyncMask = 134217728; - -@Deprecated('Deprecated') -const int smfDualCaret = 30; - -@Deprecated('Deprecated') -const int smfNameTagEnab = 29; - -@Deprecated('Deprecated') -const int smfShowIcon = 31; - -@Deprecated('Deprecated') -const int smfUseAssocFontInfo = 28; - -const int smsGetDrvrErr = -345; - -const int smsPointerNil = -335; - -@Deprecated('Deprecated') -const int smsfAutoInit = 6; - -@Deprecated('Deprecated') -const int smsfB0Digits = 5; - -@Deprecated('Deprecated') -const int smsfContext = 3; - -@Deprecated('Deprecated') -const int smsfForms = 13; - -@Deprecated('Deprecated') -const int smsfIntellCP = 0; - -@Deprecated('Deprecated') -const int smsfLigatures = 14; - -@Deprecated('Deprecated') -const int smsfNatCase = 2; - -@Deprecated('Deprecated') -const int smsfNoForceFont = 4; - -@Deprecated('Deprecated') -const int smsfReverse = 15; - -@Deprecated('Deprecated') -const int smsfSingByte = 1; - -@Deprecated('Deprecated') -const int smsfSynchUnstyledTE = 8; - -@Deprecated('Deprecated') -const int smsfUnivExt = 7; - -const int soCharacterMode = 1667785074; - -const int soCommandDelimiter = 1684826477; - -const int soCurrentA5 = 1836663093; - -const int soCurrentVoice = 1668706168; - -const int soErrorCallBack = 1701995362; - -const int soErrors = 1701999215; - -const int soInputMode = 1768845428; - -const int soNumberMode = 1852662386; - -const int soOutputToAudioDevice = 1869635940; - -const int soOutputToExtAudioFile = 1869635960; - -const int soOutputToFileWithCFURL = 1869635942; - -const int soPhonemeCallBack = 1885889378; - -const int soPhonemeOptions = 1886351476; - -const int soPhonemeSymbols = 1885893497; - -const int soPitchBase = 1885495667; - -const int soPitchMod = 1886220132; - -const int soRate = 1918989413; - -const int soRecentSync = 1937337955; - -const int soRefCon = 1919247971; - -const int soReset = 1920165236; - -const int soSoundOutput = 1936614511; - -const int soSpeechDoneCallBack = 1935958882; - -const int soStatus = 1937006964; - -const int soSyncCallBack = 1937335138; - -const int soSynthExtension = 2020896356; - -const int soSynthType = 1986359923; - -const int soTextDoneCallBack = 1952736098; - -const int soVoiceDescription = 1768842863; - -const int soVoiceFile = 1718773094; - -const int soVolume = 1987013741; - -const int soWordCallBack = 2003067746; - -final class so_np_extensions extends ffi.Struct { - @u_int32_t() - external int npx_flags; - - @u_int32_t() - external int npx_mask; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int npx_flags, - required int npx_mask, - }) => $allocator() - ..ref.npx_flags = npx_flags - ..ref.npx_mask = npx_mask; -} - -final class sockaddr extends ffi.Struct { - @__uint8_t() - external int sa_len; - - @sa_family_t() - external int sa_family; - - @ffi.Array.multi([14]) - external ffi.Array sa_data; -} - -final class sockaddr_in extends ffi.Struct { - @__uint8_t() - external int sin_len; - - @sa_family_t() - external int sin_family; - - @in_port_t() - external int sin_port; - - external in_addr sin_addr; - - @ffi.Array.multi([8]) - external ffi.Array sin_zero; -} - -final class sockaddr_in6 extends ffi.Struct { - @__uint8_t() - external int sin6_len; - - @sa_family_t() - external int sin6_family; - - @in_port_t() - external int sin6_port; - - @__uint32_t() - external int sin6_flowinfo; - - external in6_addr sin6_addr; - - @__uint32_t() - external int sin6_scope_id; -} - -final class sockaddr_storage extends ffi.Struct { - @__uint8_t() - external int ss_len; - - @sa_family_t() - external int ss_family; - - @ffi.Array.multi([6]) - external ffi.Array __ss_pad1; - - @__int64_t() - external int __ss_align; - - @ffi.Array.multi([112]) - external ffi.Array __ss_pad2; -} - -final class sockaddr_un extends ffi.Struct { - @ffi.UnsignedChar() - external int sun_len; - - @sa_family_t() - external int sun_family; - - @ffi.Array.multi([104]) - external ffi.Array sun_path; -} - -typedef socklen_t = __darwin_socklen_t; - -final class sockproto extends ffi.Struct { - @__uint16_t() - external int sp_family; - - @__uint16_t() - external int sp_protocol; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sp_family, - required int sp_protocol, - }) => $allocator() - ..ref.sp_family = sp_family - ..ref.sp_protocol = sp_protocol; -} - -@Deprecated('Deprecated') -const int sortsAfter = 1; - -@Deprecated('Deprecated') -const int sortsBefore = -1; - -@Deprecated('Deprecated') -const int sortsEqual = 0; - -const int soundSupportNotAvailableErr = -2056; - -const int sourceNotFoundErr = -2061; - -const int spdAdjErr = -79; - -const int srcCopy = 0; - -typedef ssize_t = __darwin_ssize_t; -typedef stack_t = __darwin_sigaltstack; - -const int staleEditState = -2025; - -const int startupFolderIconResource = -3981; - -const int statusErr = -18; - -const int strUserBreak = -491; - -const int streamingNodeNotReadyErr = -30553; - -@Deprecated('Deprecated') -const int stringOverflow = 2; - -const int supDay = 1; - -const int supMonth = 4; - -const int supWeek = 2; - -const int supYear = 8; - -typedef suseconds_t = __darwin_suseconds_t; - -const int svAll1BitData = 16843009; - -const int svAll4BitData = 33686018; - -const int svAll8BitData = 67372036; - -const int svAllAvailableData = -1; - -const int svAllLargeData = 255; - -const int svAllMiniData = 16711680; - -const int svAllSmallData = 65280; - -const int svDisabled = -32640; - -const int svLarge1Bit = 1; - -const int svLarge4Bit = 2; - -const int svLarge8Bit = 4; - -const int svMini1Bit = 65536; - -const int svMini4Bit = 131072; - -const int svMini8Bit = 262144; - -const int svSmall1Bit = 256; - -const int svSmall4Bit = 512; - -const int svSmall8Bit = 1024; - -const int svTempDisable = -32768; - -typedef swblk_t = ffi.Int32; -typedef Dartswblk_t = int; -typedef sync_policy_t = ffi.Int; -typedef Dartsync_policy_t = int; - -const int synthNotReady = -242; - -const int synthOpenFailed = -241; - -const int synthesizerNotRespondingOSErr = -2082; - -const int synthesizerOSErr = -2083; - -typedef syscall_arg_t = u_int64_t; - -const int systemCurLang = -2; - -const int systemDefLang = -3; - -const int systemFolderIconResource = -3983; - -@ffi.Packed(4) -final class task_absolutetime_info extends ffi.Struct { - @ffi.Uint64() - external int total_user; - - @ffi.Uint64() - external int total_system; - - @ffi.Uint64() - external int threads_user; - - @ffi.Uint64() - external int threads_system; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int total_user, - required int total_system, - required int threads_user, - required int threads_system, - }) => $allocator() - ..ref.total_user = total_user - ..ref.total_system = total_system - ..ref.threads_user = threads_user - ..ref.threads_system = threads_system; -} - -typedef task_absolutetime_info_data_t = task_absolutetime_info; -typedef task_absolutetime_info_t = ffi.Pointer; - -final class task_affinity_tag_info extends ffi.Struct { - @integer_t() - external int set_count; - - @integer_t() - external int min; - - @integer_t() - external int max; - - @integer_t() - external int task_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int set_count, - required int min, - required int max, - required int task_count, - }) => $allocator() - ..ref.set_count = set_count - ..ref.min = min - ..ref.max = max - ..ref.task_count = task_count; -} - -typedef task_affinity_tag_info_data_t = task_affinity_tag_info; -typedef task_affinity_tag_info_t = ffi.Pointer; -typedef task_array_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_basic_info extends ffi.Struct { - @integer_t() - external int suspend_count; - - @vm_size_t() - external int virtual_size; - - @vm_size_t() - external int resident_size; - - external time_value_t user_time; - - external time_value_t system_time; - - @policy_t() - external int policy; -} - -final class task_basic_info_32 extends ffi.Struct { - @integer_t() - external int suspend_count; - - @natural_t() - external int virtual_size; - - @natural_t() - external int resident_size; - - external time_value_t user_time; - - external time_value_t system_time; - - @policy_t() - external int policy; -} - -typedef task_basic_info_32_data_t = task_basic_info_32; -typedef task_basic_info_32_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_basic_info_64 extends ffi.Struct { - @integer_t() - external int suspend_count; - - @mach_vm_size_t() - external int virtual_size; - - @mach_vm_size_t() - external int resident_size; - - external time_value_t user_time; - - external time_value_t system_time; - - @policy_t() - external int policy; -} - -@ffi.Packed(4) -final class task_basic_info_64_2 extends ffi.Struct { - @integer_t() - external int suspend_count; - - @mach_vm_size_t() - external int virtual_size; - - @mach_vm_size_t() - external int resident_size; - - external time_value_t user_time; - - external time_value_t system_time; - - @policy_t() - external int policy; -} - -typedef task_basic_info_64_2_data_t = task_basic_info_64_2; -typedef task_basic_info_64_2_t = ffi.Pointer; -typedef task_basic_info_64_data_t = task_basic_info_64; -typedef task_basic_info_64_t = ffi.Pointer; -typedef task_basic_info_data_t = task_basic_info; -typedef task_basic_info_t = ffi.Pointer; - -final class task_category_policy extends ffi.Struct { - @ffi.Int() - external int roleAsInt; - - task_role get role => task_role.fromValue(roleAsInt); - set role(task_role value) => roleAsInt = value.value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required task_role role, - }) => $allocator()..ref.role = role; -} - -typedef task_category_policy_data_t = task_category_policy; -typedef task_category_policy_t = ffi.Pointer; -typedef task_corpse_forking_behavior_t = ffi.Uint32; -typedef Darttask_corpse_forking_behavior_t = int; - -@ffi.Packed(4) -final class task_dyld_info extends ffi.Struct { - @mach_vm_address_t() - external int all_image_info_addr; - - @mach_vm_size_t() - external int all_image_info_size; - - @integer_t() - external int all_image_info_format; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int all_image_info_addr, - required int all_image_info_size, - required int all_image_info_format, - }) => $allocator() - ..ref.all_image_info_addr = all_image_info_addr - ..ref.all_image_info_size = all_image_info_size - ..ref.all_image_info_format = all_image_info_format; -} - -typedef task_dyld_info_data_t = task_dyld_info; -typedef task_dyld_info_t = ffi.Pointer; - -final class task_events_info extends ffi.Struct { - @integer_t() - external int faults; - - @integer_t() - external int pageins; - - @integer_t() - external int cow_faults; - - @integer_t() - external int messages_sent; - - @integer_t() - external int messages_received; - - @integer_t() - external int syscalls_mach; - - @integer_t() - external int syscalls_unix; - - @integer_t() - external int csw; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int faults, - required int pageins, - required int cow_faults, - required int messages_sent, - required int messages_received, - required int syscalls_mach, - required int syscalls_unix, - required int csw, - }) => $allocator() - ..ref.faults = faults - ..ref.pageins = pageins - ..ref.cow_faults = cow_faults - ..ref.messages_sent = messages_sent - ..ref.messages_received = messages_received - ..ref.syscalls_mach = syscalls_mach - ..ref.syscalls_unix = syscalls_unix - ..ref.csw = csw; -} - -typedef task_events_info_data_t = task_events_info; -typedef task_events_info_t = ffi.Pointer; -typedef task_exc_guard_behavior_t = ffi.Uint32; -typedef Darttask_exc_guard_behavior_t = int; - -@ffi.Packed(4) -final class task_extmod_info extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array task_uuid; - - external vm_extmod_statistics_data_t extmod_statistics; -} - -typedef task_extmod_info_data_t = task_extmod_info; -typedef task_extmod_info_t = ffi.Pointer; - -final class task_flags_info extends ffi.Struct { - @ffi.Uint32() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - }) => $allocator()..ref.flags = flags; -} - -typedef task_flags_info_data_t = task_flags_info; -typedef task_flags_info_t = ffi.Pointer; -typedef task_flavor_t = natural_t; -typedef task_id_token_t = mach_port_t; -typedef task_info_t = ffi.Pointer; - -final class task_inspect_basic_counts extends ffi.Struct { - @ffi.Uint64() - external int instructions; - - @ffi.Uint64() - external int cycles; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int instructions, - required int cycles, - }) => $allocator() - ..ref.instructions = instructions - ..ref.cycles = cycles; -} - -typedef task_inspect_basic_counts_data_t = task_inspect_basic_counts; -typedef task_inspect_basic_counts_t = ffi.Pointer; - -enum task_inspect_flavor { - TASK_INSPECT_BASIC_COUNTS(1); - - final int value; - const task_inspect_flavor(this.value); - - static task_inspect_flavor fromValue(int value) => switch (value) { - 1 => TASK_INSPECT_BASIC_COUNTS, - _ => throw ArgumentError('Unknown value for task_inspect_flavor: $value'), - }; -} - -typedef task_inspect_flavor_t = natural_t; -typedef task_inspect_info_t = ffi.Pointer; -typedef task_inspect_t = mach_port_t; - -final class task_ipc_space_policy_info extends ffi.Struct { - @ffi.Uint32() - external int space_policy; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int space_policy, - }) => - $allocator()..ref.space_policy = space_policy; -} - -typedef task_ipc_space_policy_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_kernelmemory_info extends ffi.Struct { - @ffi.Uint64() - external int total_palloc; - - @ffi.Uint64() - external int total_pfree; - - @ffi.Uint64() - external int total_salloc; - - @ffi.Uint64() - external int total_sfree; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int total_palloc, - required int total_pfree, - required int total_salloc, - required int total_sfree, - }) => $allocator() - ..ref.total_palloc = total_palloc - ..ref.total_pfree = total_pfree - ..ref.total_salloc = total_salloc - ..ref.total_sfree = total_sfree; -} - -typedef task_kernelmemory_info_data_t = task_kernelmemory_info; -typedef task_kernelmemory_info_t = ffi.Pointer; - -enum task_latency_qos { - LATENCY_QOS_TIER_UNSPECIFIED(0), - LATENCY_QOS_TIER_0(16711681), - LATENCY_QOS_TIER_1(16711682), - LATENCY_QOS_TIER_2(16711683), - LATENCY_QOS_TIER_3(16711684), - LATENCY_QOS_TIER_4(16711685), - LATENCY_QOS_TIER_5(16711686); - - final int value; - const task_latency_qos(this.value); - - static task_latency_qos fromValue(int value) => switch (value) { - 0 => LATENCY_QOS_TIER_UNSPECIFIED, - 16711681 => LATENCY_QOS_TIER_0, - 16711682 => LATENCY_QOS_TIER_1, - 16711683 => LATENCY_QOS_TIER_2, - 16711684 => LATENCY_QOS_TIER_3, - 16711685 => LATENCY_QOS_TIER_4, - 16711686 => LATENCY_QOS_TIER_5, - _ => throw ArgumentError('Unknown value for task_latency_qos: $value'), - }; -} - -typedef task_latency_qos_t = integer_t; -typedef task_name_t = mach_port_t; -typedef task_policy_flavor_t = natural_t; -typedef task_policy_get_t = mach_port_t; -typedef task_policy_set_t = mach_port_t; -typedef task_policy_t = ffi.Pointer; -typedef task_port_array_t = task_array_t; -typedef task_port_t = task_t; - -@ffi.Packed(4) -final class task_power_info extends ffi.Struct { - @ffi.Uint64() - external int total_user; - - @ffi.Uint64() - external int total_system; - - @ffi.Uint64() - external int task_interrupt_wakeups; - - @ffi.Uint64() - external int task_platform_idle_wakeups; - - @ffi.Uint64() - external int task_timer_wakeups_bin_1; - - @ffi.Uint64() - external int task_timer_wakeups_bin_2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int total_user, - required int total_system, - required int task_interrupt_wakeups, - required int task_platform_idle_wakeups, - required int task_timer_wakeups_bin_1, - required int task_timer_wakeups_bin_2, - }) => $allocator() - ..ref.total_user = total_user - ..ref.total_system = total_system - ..ref.task_interrupt_wakeups = task_interrupt_wakeups - ..ref.task_platform_idle_wakeups = task_platform_idle_wakeups - ..ref.task_timer_wakeups_bin_1 = task_timer_wakeups_bin_1 - ..ref.task_timer_wakeups_bin_2 = task_timer_wakeups_bin_2; -} - -typedef task_power_info_data_t = task_power_info; -typedef task_power_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_power_info_v2 extends ffi.Struct { - external task_power_info_data_t cpu_energy; - - external gpu_energy_data gpu_energy; - - @ffi.Uint64() - external int task_energy; - - @ffi.Uint64() - external int task_ptime; - - @ffi.Uint64() - external int task_pset_switches; -} - -typedef task_power_info_v2_data_t = task_power_info_v2; -typedef task_power_info_v2_t = ffi.Pointer; -typedef task_purgable_info_t = vm_purgeable_info; - -final class task_qos_policy extends ffi.Struct { - @task_latency_qos_t() - external int task_latency_qos_tier; - - @task_throughput_qos_t() - external int task_throughput_qos_tier; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int task_latency_qos_tier, - required int task_throughput_qos_tier, - }) => $allocator() - ..ref.task_latency_qos_tier = task_latency_qos_tier - ..ref.task_throughput_qos_tier = task_throughput_qos_tier; -} - -typedef task_qos_policy_t = ffi.Pointer; -typedef task_read_t = mach_port_t; - -enum task_role { - TASK_RENICED(-1), - TASK_UNSPECIFIED(0), - TASK_FOREGROUND_APPLICATION(1), - TASK_BACKGROUND_APPLICATION(2), - TASK_CONTROL_APPLICATION(3), - TASK_GRAPHICS_SERVER(4), - TASK_THROTTLE_APPLICATION(5), - TASK_NONUI_APPLICATION(6), - TASK_DEFAULT_APPLICATION(7), - TASK_DARWINBG_APPLICATION(8), - TASK_USER_INIT_APPLICATION(9); - - final int value; - const task_role(this.value); - - static task_role fromValue(int value) => switch (value) { - -1 => TASK_RENICED, - 0 => TASK_UNSPECIFIED, - 1 => TASK_FOREGROUND_APPLICATION, - 2 => TASK_BACKGROUND_APPLICATION, - 3 => TASK_CONTROL_APPLICATION, - 4 => TASK_GRAPHICS_SERVER, - 5 => TASK_THROTTLE_APPLICATION, - 6 => TASK_NONUI_APPLICATION, - 7 => TASK_DEFAULT_APPLICATION, - 8 => TASK_DARWINBG_APPLICATION, - 9 => TASK_USER_INIT_APPLICATION, - _ => throw ArgumentError('Unknown value for task_role: $value'), - }; -} - -final class task_security_config_info extends ffi.Struct { - @ffi.Uint32() - external int config; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int config, - }) => $allocator()..ref.config = config; -} - -typedef task_security_config_info_t = ffi.Pointer; -typedef task_special_port_t = ffi.Int; -typedef Darttask_special_port_t = int; -typedef task_suspension_token_t = mach_port_t; -typedef task_t = mach_port_t; - -final class task_thread_times_info extends ffi.Struct { - external time_value_t user_time; - - external time_value_t system_time; -} - -typedef task_thread_times_info_data_t = task_thread_times_info; -typedef task_thread_times_info_t = ffi.Pointer; - -enum task_throughput_qos { - THROUGHPUT_QOS_TIER_UNSPECIFIED(0), - THROUGHPUT_QOS_TIER_0(16646145), - THROUGHPUT_QOS_TIER_1(16646146), - THROUGHPUT_QOS_TIER_2(16646147), - THROUGHPUT_QOS_TIER_3(16646148), - THROUGHPUT_QOS_TIER_4(16646149), - THROUGHPUT_QOS_TIER_5(16646150); - - final int value; - const task_throughput_qos(this.value); - - static task_throughput_qos fromValue(int value) => switch (value) { - 0 => THROUGHPUT_QOS_TIER_UNSPECIFIED, - 16646145 => THROUGHPUT_QOS_TIER_0, - 16646146 => THROUGHPUT_QOS_TIER_1, - 16646147 => THROUGHPUT_QOS_TIER_2, - 16646148 => THROUGHPUT_QOS_TIER_3, - 16646149 => THROUGHPUT_QOS_TIER_4, - 16646150 => THROUGHPUT_QOS_TIER_5, - _ => throw ArgumentError('Unknown value for task_throughput_qos: $value'), - }; -} - -typedef task_throughput_qos_t = integer_t; - -@ffi.Packed(4) -final class task_trace_memory_info extends ffi.Struct { - @ffi.Uint64() - external int user_memory_address; - - @ffi.Uint64() - external int buffer_size; - - @ffi.Uint64() - external int mailbox_array_size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int user_memory_address, - required int buffer_size, - required int mailbox_array_size, - }) => $allocator() - ..ref.user_memory_address = user_memory_address - ..ref.buffer_size = buffer_size - ..ref.mailbox_array_size = mailbox_array_size; -} - -typedef task_trace_memory_info_data_t = task_trace_memory_info; -typedef task_trace_memory_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_vm_info extends ffi.Struct { - @mach_vm_size_t() - external int virtual_size; - - @integer_t() - external int region_count; - - @integer_t() - external int page_size; - - @mach_vm_size_t() - external int resident_size; - - @mach_vm_size_t() - external int resident_size_peak; - - @mach_vm_size_t() - external int device; - - @mach_vm_size_t() - external int device_peak; - - @mach_vm_size_t() - external int internal; - - @mach_vm_size_t() - external int internal_peak; - - @mach_vm_size_t() - external int external; - - @mach_vm_size_t() - external int external_peak; - - @mach_vm_size_t() - external int reusable; - - @mach_vm_size_t() - external int reusable_peak; - - @mach_vm_size_t() - external int purgeable_volatile_pmap; - - @mach_vm_size_t() - external int purgeable_volatile_resident; - - @mach_vm_size_t() - external int purgeable_volatile_virtual; - - @mach_vm_size_t() - external int compressed; - - @mach_vm_size_t() - external int compressed_peak; - - @mach_vm_size_t() - external int compressed_lifetime; - - @mach_vm_size_t() - external int phys_footprint; - - @mach_vm_address_t() - external int min_address; - - @mach_vm_address_t() - external int max_address; - - @ffi.Int64() - external int ledger_phys_footprint_peak; - - @ffi.Int64() - external int ledger_purgeable_nonvolatile; - - @ffi.Int64() - external int ledger_purgeable_novolatile_compressed; - - @ffi.Int64() - external int ledger_purgeable_volatile; - - @ffi.Int64() - external int ledger_purgeable_volatile_compressed; - - @ffi.Int64() - external int ledger_tag_network_nonvolatile; - - @ffi.Int64() - external int ledger_tag_network_nonvolatile_compressed; - - @ffi.Int64() - external int ledger_tag_network_volatile; - - @ffi.Int64() - external int ledger_tag_network_volatile_compressed; - - @ffi.Int64() - external int ledger_tag_media_footprint; - - @ffi.Int64() - external int ledger_tag_media_footprint_compressed; - - @ffi.Int64() - external int ledger_tag_media_nofootprint; - - @ffi.Int64() - external int ledger_tag_media_nofootprint_compressed; - - @ffi.Int64() - external int ledger_tag_graphics_footprint; - - @ffi.Int64() - external int ledger_tag_graphics_footprint_compressed; - - @ffi.Int64() - external int ledger_tag_graphics_nofootprint; - - @ffi.Int64() - external int ledger_tag_graphics_nofootprint_compressed; - - @ffi.Int64() - external int ledger_tag_neural_footprint; - - @ffi.Int64() - external int ledger_tag_neural_footprint_compressed; - - @ffi.Int64() - external int ledger_tag_neural_nofootprint; - - @ffi.Int64() - external int ledger_tag_neural_nofootprint_compressed; - - @ffi.Uint64() - external int limit_bytes_remaining; - - @integer_t() - external int decompressions; - - @ffi.Int64() - external int ledger_swapins; - - @ffi.Int64() - external int ledger_tag_neural_nofootprint_total; - - @ffi.Int64() - external int ledger_tag_neural_nofootprint_peak; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int virtual_size, - required int region_count, - required int page_size, - required int resident_size, - required int resident_size_peak, - required int device, - required int device_peak, - required int internal, - required int internal_peak, - required int external, - required int external_peak, - required int reusable, - required int reusable_peak, - required int purgeable_volatile_pmap, - required int purgeable_volatile_resident, - required int purgeable_volatile_virtual, - required int compressed, - required int compressed_peak, - required int compressed_lifetime, - required int phys_footprint, - required int min_address, - required int max_address, - required int ledger_phys_footprint_peak, - required int ledger_purgeable_nonvolatile, - required int ledger_purgeable_novolatile_compressed, - required int ledger_purgeable_volatile, - required int ledger_purgeable_volatile_compressed, - required int ledger_tag_network_nonvolatile, - required int ledger_tag_network_nonvolatile_compressed, - required int ledger_tag_network_volatile, - required int ledger_tag_network_volatile_compressed, - required int ledger_tag_media_footprint, - required int ledger_tag_media_footprint_compressed, - required int ledger_tag_media_nofootprint, - required int ledger_tag_media_nofootprint_compressed, - required int ledger_tag_graphics_footprint, - required int ledger_tag_graphics_footprint_compressed, - required int ledger_tag_graphics_nofootprint, - required int ledger_tag_graphics_nofootprint_compressed, - required int ledger_tag_neural_footprint, - required int ledger_tag_neural_footprint_compressed, - required int ledger_tag_neural_nofootprint, - required int ledger_tag_neural_nofootprint_compressed, - required int limit_bytes_remaining, - required int decompressions, - required int ledger_swapins, - required int ledger_tag_neural_nofootprint_total, - required int ledger_tag_neural_nofootprint_peak, - }) => $allocator() - ..ref.virtual_size = virtual_size - ..ref.region_count = region_count - ..ref.page_size = page_size - ..ref.resident_size = resident_size - ..ref.resident_size_peak = resident_size_peak - ..ref.device = device - ..ref.device_peak = device_peak - ..ref.internal = internal - ..ref.internal_peak = internal_peak - ..ref.external = external - ..ref.external_peak = external_peak - ..ref.reusable = reusable - ..ref.reusable_peak = reusable_peak - ..ref.purgeable_volatile_pmap = purgeable_volatile_pmap - ..ref.purgeable_volatile_resident = purgeable_volatile_resident - ..ref.purgeable_volatile_virtual = purgeable_volatile_virtual - ..ref.compressed = compressed - ..ref.compressed_peak = compressed_peak - ..ref.compressed_lifetime = compressed_lifetime - ..ref.phys_footprint = phys_footprint - ..ref.min_address = min_address - ..ref.max_address = max_address - ..ref.ledger_phys_footprint_peak = ledger_phys_footprint_peak - ..ref.ledger_purgeable_nonvolatile = ledger_purgeable_nonvolatile - ..ref.ledger_purgeable_novolatile_compressed = - ledger_purgeable_novolatile_compressed - ..ref.ledger_purgeable_volatile = ledger_purgeable_volatile - ..ref.ledger_purgeable_volatile_compressed = - ledger_purgeable_volatile_compressed - ..ref.ledger_tag_network_nonvolatile = ledger_tag_network_nonvolatile - ..ref.ledger_tag_network_nonvolatile_compressed = - ledger_tag_network_nonvolatile_compressed - ..ref.ledger_tag_network_volatile = ledger_tag_network_volatile - ..ref.ledger_tag_network_volatile_compressed = - ledger_tag_network_volatile_compressed - ..ref.ledger_tag_media_footprint = ledger_tag_media_footprint - ..ref.ledger_tag_media_footprint_compressed = - ledger_tag_media_footprint_compressed - ..ref.ledger_tag_media_nofootprint = ledger_tag_media_nofootprint - ..ref.ledger_tag_media_nofootprint_compressed = - ledger_tag_media_nofootprint_compressed - ..ref.ledger_tag_graphics_footprint = ledger_tag_graphics_footprint - ..ref.ledger_tag_graphics_footprint_compressed = - ledger_tag_graphics_footprint_compressed - ..ref.ledger_tag_graphics_nofootprint = ledger_tag_graphics_nofootprint - ..ref.ledger_tag_graphics_nofootprint_compressed = - ledger_tag_graphics_nofootprint_compressed - ..ref.ledger_tag_neural_footprint = ledger_tag_neural_footprint - ..ref.ledger_tag_neural_footprint_compressed = - ledger_tag_neural_footprint_compressed - ..ref.ledger_tag_neural_nofootprint = ledger_tag_neural_nofootprint - ..ref.ledger_tag_neural_nofootprint_compressed = - ledger_tag_neural_nofootprint_compressed - ..ref.limit_bytes_remaining = limit_bytes_remaining - ..ref.decompressions = decompressions - ..ref.ledger_swapins = ledger_swapins - ..ref.ledger_tag_neural_nofootprint_total = - ledger_tag_neural_nofootprint_total - ..ref.ledger_tag_neural_nofootprint_peak = - ledger_tag_neural_nofootprint_peak; -} - -typedef task_vm_info_data_t = task_vm_info; -typedef task_vm_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_wait_state_info extends ffi.Struct { - @ffi.Uint64() - external int total_wait_state_time; - - @ffi.Uint64() - external int total_wait_sfi_state_time; - - @ffi.Array.multi([4]) - external ffi.Array _reserved; -} - -typedef task_wait_state_info_data_t = task_wait_state_info; -typedef task_wait_state_info_t = ffi.Pointer; -typedef task_zone_info_array_t = ffi.Pointer; - -final class task_zone_info_data extends ffi.Struct { - @ffi.Uint64() - external int tzi_count; - - @ffi.Uint64() - external int tzi_cur_size; - - @ffi.Uint64() - external int tzi_max_size; - - @ffi.Uint64() - external int tzi_elem_size; - - @ffi.Uint64() - external int tzi_alloc_size; - - @ffi.Uint64() - external int tzi_sum_size; - - @ffi.Uint64() - external int tzi_exhaustible; - - @ffi.Uint64() - external int tzi_collectable; - - @ffi.Uint64() - external int tzi_caller_acct; - - @ffi.Uint64() - external int tzi_task_alloc; - - @ffi.Uint64() - external int tzi_task_free; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tzi_count, - required int tzi_cur_size, - required int tzi_max_size, - required int tzi_elem_size, - required int tzi_alloc_size, - required int tzi_sum_size, - required int tzi_exhaustible, - required int tzi_collectable, - required int tzi_caller_acct, - required int tzi_task_alloc, - required int tzi_task_free, - }) => $allocator() - ..ref.tzi_count = tzi_count - ..ref.tzi_cur_size = tzi_cur_size - ..ref.tzi_max_size = tzi_max_size - ..ref.tzi_elem_size = tzi_elem_size - ..ref.tzi_alloc_size = tzi_alloc_size - ..ref.tzi_sum_size = tzi_sum_size - ..ref.tzi_exhaustible = tzi_exhaustible - ..ref.tzi_collectable = tzi_collectable - ..ref.tzi_caller_acct = tzi_caller_acct - ..ref.tzi_task_alloc = tzi_task_alloc - ..ref.tzi_task_free = tzi_task_free; -} - -typedef task_zone_info_t = task_zone_info_data; -typedef tcp_cc = __uint32_t; - -final class tcp_connection_info extends ffi.Opaque {} - -typedef tcp_seq = __uint32_t; - -final class tcphdr extends ffi.Opaque {} - -const int teScrapSizeErr = -501; - -const int telAPattNotSupp = -10016; - -const int telAlreadyOpen = -10070; - -const int telAutoAnsNotOn = -10112; - -const int telBadAPattErr = -10015; - -const int telBadBearerType = -10058; - -const int telBadCAErr = -10003; - -const int telBadCodeResource = -10108; - -const int telBadDNDType = -10023; - -const int telBadDNErr = -10002; - -const int telBadDNType = -10050; - -const int telBadDisplayMode = -10062; - -const int telBadFeatureID = -10053; - -const int telBadFunction = -10091; - -const int telBadFwdType = -10054; - -const int telBadHTypeErr = -10010; - -const int telBadHandErr = -10004; - -const int telBadIndex = -10017; - -const int telBadIntExt = -10021; - -const int telBadIntercomID = -10052; - -const int telBadLevelErr = -10012; - -const int telBadPageID = -10051; - -const int telBadParkID = -10056; - -const int telBadPickupGroupID = -10055; - -const int telBadProcErr = -10005; - -const int telBadProcID = -10110; - -const int telBadRate = -10059; - -const int telBadSWErr = -10114; - -const int telBadSampleRate = -10115; - -const int telBadSelect = -10057; - -const int telBadStateErr = -10019; - -const int telBadTermErr = -10001; - -const int telBadVTypeErr = -10013; - -const int telCANotAcceptable = -10080; - -const int telCANotDeflectable = -10082; - -const int telCANotRejectable = -10081; - -const int telCAUnavail = -10006; - -const int telCBErr = -10046; - -const int telConfErr = -10042; - -const int telConfLimitErr = -10040; - -const int telConfLimitExceeded = -10047; - -const int telConfNoLimit = -10041; - -const int telConfRej = -10043; - -const int telDNDTypeNotSupp = -10024; - -const int telDNTypeNotSupp = -10060; - -const int telDetAlreadyOn = -10113; - -const int telDeviceNotFound = -10109; - -const int telDisplayModeNotSupp = -10063; - -const int telFeatActive = -10032; - -const int telFeatNotAvail = -10031; - -const int telFeatNotSub = -10030; - -const int telFeatNotSupp = -10033; - -const int telFwdTypeNotSupp = -10061; - -const int telGenericError = -1; - -const int telHTypeNotSupp = -10011; - -const int telIndexNotSupp = -10018; - -const int telInitFailed = -10107; - -const int telIntExtNotSupp = -10022; - -const int telNoCallbackRef = -10064; - -const int telNoCommFolder = -10106; - -const int telNoErr = 0; - -const int telNoMemErr = -10007; - -const int telNoOpenErr = -10008; - -const int telNoSuchTool = -10102; - -const int telNoTools = 8; - -const int telNotEnoughdspBW = -10116; - -const int telPBErr = -10090; - -const int telStateNotSupp = -10020; - -const int telStillNeeded = -10071; - -const int telTermNotOpen = -10072; - -const int telTransferErr = -10044; - -const int telTransferRej = -10045; - -const int telUnknownErr = -10103; - -const int telVTypeNotSupp = -10014; - -const int telValidateFailed = -10111; - -const int textParserBadParamErr = -5220; - -const int textParserBadParserObjectErr = -5223; - -const int textParserBadTextEncodingErr = -5227; - -const int textParserBadTextLanguageErr = -5226; - -const int textParserBadTokenValueErr = -5222; - -const int textParserNoMoreTextErr = -5225; - -const int textParserNoMoreTokensErr = -5229; - -const int textParserNoSuchTokenFoundErr = -5228; - -const int textParserObjectNotFoundErr = -5221; - -const int textParserParamErr = -5224; - -const int themeBadCursorIndexErr = -30565; - -const int themeBadTextColorErr = -30563; - -const int themeHasNoAccentsErr = -30564; - -const int themeInvalidBrushErr = -30560; - -const int themeMonitorDepthNotSupportedErr = -30567; - -const int themeNoAppropriateBrushErr = -30568; - -const int themeProcessNotRegisteredErr = -30562; - -const int themeProcessRegisteredErr = -30561; - -const int themeScriptFontNotFoundErr = -30566; - -const int threadBadAppContextErr = -616; - -const int threadNotFoundErr = -618; - -const int threadProtocolErr = -619; - -const int threadTooManyReqsErr = -617; - -typedef thread_act_array_t = ffi.Pointer; -typedef thread_act_port_array_t = thread_act_array_t; -typedef thread_act_port_t = thread_act_t; -typedef thread_act_t = mach_port_t; - -final class thread_affinity_policy extends ffi.Struct { - @integer_t() - external int affinity_tag; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int affinity_tag, - }) => $allocator()..ref.affinity_tag = affinity_tag; -} - -typedef thread_affinity_policy_data_t = thread_affinity_policy; -typedef thread_affinity_policy_t = ffi.Pointer; -typedef thread_array_t = ffi.Pointer; - -final class thread_background_policy extends ffi.Struct { - @integer_t() - external int priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int priority, - }) => $allocator()..ref.priority = priority; -} - -typedef thread_background_policy_data_t = thread_background_policy; -typedef thread_background_policy_t = ffi.Pointer; - -final class thread_basic_info extends ffi.Struct { - external time_value_t user_time; - - external time_value_t system_time; - - @integer_t() - external int cpu_usage; - - @policy_t() - external int policy; - - @integer_t() - external int run_state; - - @integer_t() - external int flags; - - @integer_t() - external int suspend_count; - - @integer_t() - external int sleep_time; -} - -typedef thread_basic_info_data_t = thread_basic_info; -typedef thread_basic_info_t = ffi.Pointer; - -final class thread_extended_info extends ffi.Struct { - @ffi.Uint64() - external int pth_user_time; - - @ffi.Uint64() - external int pth_system_time; - - @ffi.Int32() - external int pth_cpu_usage; - - @ffi.Int32() - external int pth_policy; - - @ffi.Int32() - external int pth_run_state; - - @ffi.Int32() - external int pth_flags; - - @ffi.Int32() - external int pth_sleep_time; - - @ffi.Int32() - external int pth_curpri; - - @ffi.Int32() - external int pth_priority; - - @ffi.Int32() - external int pth_maxpriority; - - @ffi.Array.multi([64]) - external ffi.Array pth_name; -} - -typedef thread_extended_info_data_t = thread_extended_info; -typedef thread_extended_info_t = ffi.Pointer; - -final class thread_extended_policy extends ffi.Struct { - @boolean_t() - external int timeshare; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int timeshare, - }) => $allocator()..ref.timeshare = timeshare; -} - -typedef thread_extended_policy_data_t = thread_extended_policy; -typedef thread_extended_policy_t = ffi.Pointer; -typedef thread_flavor_t = natural_t; - -final class thread_identifier_info extends ffi.Struct { - @ffi.Uint64() - external int thread_id; - - @ffi.Uint64() - external int thread_handle; - - @ffi.Uint64() - external int dispatch_qaddr; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int thread_id, - required int thread_handle, - required int dispatch_qaddr, - }) => $allocator() - ..ref.thread_id = thread_id - ..ref.thread_handle = thread_handle - ..ref.dispatch_qaddr = dispatch_qaddr; -} - -typedef thread_identifier_info_data_t = thread_identifier_info; -typedef thread_identifier_info_t = ffi.Pointer; -typedef thread_info_t = ffi.Pointer; -typedef thread_inspect_t = mach_port_t; - -final class thread_latency_qos_policy extends ffi.Struct { - @thread_latency_qos_t() - external int thread_latency_qos_tier; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int thread_latency_qos_tier, - }) => - $allocator() - ..ref.thread_latency_qos_tier = thread_latency_qos_tier; -} - -typedef thread_latency_qos_policy_data_t = thread_latency_qos_policy; -typedef thread_latency_qos_policy_t = ffi.Pointer; -typedef thread_latency_qos_t = integer_t; -typedef thread_policy_flavor_t = natural_t; -typedef thread_policy_t = ffi.Pointer; -typedef thread_port_array_t = thread_array_t; -typedef thread_port_t = thread_t; - -final class thread_precedence_policy extends ffi.Struct { - @integer_t() - external int importance; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int importance, - }) => $allocator()..ref.importance = importance; -} - -typedef thread_precedence_policy_data_t = thread_precedence_policy; -typedef thread_precedence_policy_t = ffi.Pointer; -typedef thread_read_t = mach_port_t; - -final class thread_standard_policy extends ffi.Struct { - @natural_t() - external int no_data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int no_data, - }) => $allocator()..ref.no_data = no_data; -} - -typedef thread_standard_policy_data_t = thread_standard_policy; -typedef thread_standard_policy_t = ffi.Pointer; -typedef thread_state_flavor_array_t = ffi.Pointer; -typedef thread_state_flavor_t = ffi.Int; -typedef Dartthread_state_flavor_t = int; -typedef thread_state_t = ffi.Pointer; -typedef thread_t = mach_port_t; - -final class thread_throughput_qos_policy extends ffi.Struct { - @thread_throughput_qos_t() - external int thread_throughput_qos_tier; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int thread_throughput_qos_tier, - }) => - $allocator() - ..ref.thread_throughput_qos_tier = thread_throughput_qos_tier; -} - -typedef thread_throughput_qos_policy_data_t = thread_throughput_qos_policy; -typedef thread_throughput_qos_policy_t = - ffi.Pointer; -typedef thread_throughput_qos_t = integer_t; - -final class thread_time_constraint_policy extends ffi.Struct { - @ffi.Uint32() - external int period; - - @ffi.Uint32() - external int computation; - - @ffi.Uint32() - external int constraint; - - @boolean_t() - external int preemptible; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int period, - required int computation, - required int constraint, - required int preemptible, - }) => $allocator() - ..ref.period = period - ..ref.computation = computation - ..ref.constraint = constraint - ..ref.preemptible = preemptible; -} - -typedef thread_time_constraint_policy_data_t = thread_time_constraint_policy; -typedef thread_time_constraint_policy_t = - ffi.Pointer; -@Deprecated('Deprecated') -const int tilde = 247; - -const int timeCycle12 = 255; - -const int timeCycle24 = 0; - -const int timeCycleZero = 1; - -const int timeNotInMedia = -2032; - -const int timeNotInTrack = -2031; - -const int timeNotInViewErr = -30546; - -typedef time_t = __darwin_time_t; - -final class time_value extends ffi.Struct { - @integer_t() - external int seconds; - - @integer_t() - external int microseconds; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int seconds, - required int microseconds, - }) => $allocator() - ..ref.seconds = seconds - ..ref.microseconds = microseconds; -} - -typedef time_value_t = time_value; - -final class timespec extends ffi.Struct { - @__darwin_time_t() - external int tv_sec; - - @ffi.Long() - external int tv_nsec; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tv_sec, - required int tv_nsec, - }) => $allocator() - ..ref.tv_sec = tv_sec - ..ref.tv_nsec = tv_nsec; -} - -final class timeval extends ffi.Struct { - @__darwin_time_t() - external int tv_sec; - - @__darwin_suseconds_t() - external int tv_usec; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tv_sec, - required int tv_usec, - }) => $allocator() - ..ref.tv_sec = tv_sec - ..ref.tv_usec = tv_usec; -} - -final class timeval64 extends ffi.Struct { - @__int64_t() - external int tv_sec; - - @__int64_t() - external int tv_usec; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tv_sec, - required int tv_usec, - }) => $allocator() - ..ref.tv_sec = tv_sec - ..ref.tv_usec = tv_usec; -} - -final class timezone extends ffi.Struct { - @ffi.Int() - external int tz_minuteswest; - - @ffi.Int() - external int tz_dsttime; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tz_minuteswest, - required int tz_dsttime, - }) => $allocator() - ..ref.tz_minuteswest = tz_minuteswest - ..ref.tz_dsttime = tz_dsttime; -} - -const int tk0BadErr = -76; - -enum tls_ciphersuite_group_t { - tls_ciphersuite_group_default(0), - tls_ciphersuite_group_compatibility(1), - tls_ciphersuite_group_legacy(2), - tls_ciphersuite_group_ats(3), - tls_ciphersuite_group_ats_compatibility(4); - - final int value; - const tls_ciphersuite_group_t(this.value); - - static tls_ciphersuite_group_t fromValue(int value) => switch (value) { - 0 => tls_ciphersuite_group_default, - 1 => tls_ciphersuite_group_compatibility, - 2 => tls_ciphersuite_group_legacy, - 3 => tls_ciphersuite_group_ats, - 4 => tls_ciphersuite_group_ats_compatibility, - _ => throw ArgumentError( - 'Unknown value for tls_ciphersuite_group_t: $value', - ), - }; -} - -enum tls_ciphersuite_t { - tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA(10), - tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA(47), - tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA(53), - tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256(156), - tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384(157), - tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256(60), - tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256(61), - tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA(-16376), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA(-16375), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA(-16374), - tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA(-16366), - tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA(-16365), - tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA(-16364), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256(-16349), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384(-16348), - tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256(-16345), - tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384(-16344), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256(-16341), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384(-16340), - tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256(-16337), - tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384(-16336), - tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256(-13144), - tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256(-13143), - tls_ciphersuite_AES_128_GCM_SHA256(4865), - tls_ciphersuite_AES_256_GCM_SHA384(4866), - tls_ciphersuite_CHACHA20_POLY1305_SHA256(4867); - - final int value; - const tls_ciphersuite_t(this.value); - - static tls_ciphersuite_t fromValue(int value) => switch (value) { - 10 => tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA, - 47 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA, - 53 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA, - 156 => tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256, - 157 => tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384, - 60 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256, - 61 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256, - -16376 => tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, - -16375 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, - -16374 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, - -16366 => tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, - -16365 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA, - -16364 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA, - -16349 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, - -16348 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, - -16345 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256, - -16344 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384, - -16341 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, - -16340 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, - -16337 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256, - -16336 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384, - -13144 => tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, - -13143 => tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, - 4865 => tls_ciphersuite_AES_128_GCM_SHA256, - 4866 => tls_ciphersuite_AES_256_GCM_SHA384, - 4867 => tls_ciphersuite_CHACHA20_POLY1305_SHA256, - _ => throw ArgumentError('Unknown value for tls_ciphersuite_t: $value'), - }; -} - -enum tls_protocol_version_t { - tls_protocol_version_TLSv10(769), - tls_protocol_version_TLSv11(770), - tls_protocol_version_TLSv12(771), - tls_protocol_version_TLSv13(772), - tls_protocol_version_DTLSv10(-257), - tls_protocol_version_DTLSv12(-259); - - final int value; - const tls_protocol_version_t(this.value); - - static tls_protocol_version_t fromValue(int value) => switch (value) { - 769 => tls_protocol_version_TLSv10, - 770 => tls_protocol_version_TLSv11, - 771 => tls_protocol_version_TLSv12, - 772 => tls_protocol_version_TLSv13, - -257 => tls_protocol_version_DTLSv10, - -259 => tls_protocol_version_DTLSv12, - _ => throw ArgumentError( - 'Unknown value for tls_protocol_version_t: $value', - ), - }; -} - -final class tm extends ffi.Struct { - @ffi.Int() - external int tm_sec; - - @ffi.Int() - external int tm_min; - - @ffi.Int() - external int tm_hour; - - @ffi.Int() - external int tm_mday; - - @ffi.Int() - external int tm_mon; - - @ffi.Int() - external int tm_year; - - @ffi.Int() - external int tm_wday; - - @ffi.Int() - external int tm_yday; - - @ffi.Int() - external int tm_isdst; - - @ffi.Long() - external int tm_gmtoff; - - external ffi.Pointer tm_zone; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tm_sec, - required int tm_min, - required int tm_hour, - required int tm_mday, - required int tm_mon, - required int tm_year, - required int tm_wday, - required int tm_yday, - required int tm_isdst, - required int tm_gmtoff, - required ffi.Pointer tm_zone, - }) => $allocator() - ..ref.tm_sec = tm_sec - ..ref.tm_min = tm_min - ..ref.tm_hour = tm_hour - ..ref.tm_mday = tm_mday - ..ref.tm_mon = tm_mon - ..ref.tm_year = tm_year - ..ref.tm_wday = tm_wday - ..ref.tm_yday = tm_yday - ..ref.tm_isdst = tm_isdst - ..ref.tm_gmtoff = tm_gmtoff - ..ref.tm_zone = tm_zone; -} - -const int tmfoErr = -42; - -const int tmwdoErr = -121; - -const int togChar12HourBit = 30; - -const int togCharZCycleBit = 29; - -const int togDelta12HourBit = 28; - -const int toggleBadChar = 4; - -const int toggleBadDelta = 3; - -const int toggleBadField = 2; - -const int toggleBadNum = 6; - -const int toggleErr3 = 7; - -const int toggleErr4 = 8; - -const int toggleErr5 = 9; - -const int toggleOK = 1; - -const int toggleOutOfRange = 7; - -const int toggleUndefined = 0; - -const int toggleUnknown = 5; - -const int tokDecPoint = 14; - -const int tokEMinus = 16; - -const int tokEPlus = 15; - -const int tokEscape = 13; - -const int tokLeadPlacer = 3; - -const int tokLeader = 4; - -const int tokLeftQuote = 1; - -const int tokMaxSymbols = 31; - -const int tokMinusSign = 9; - -const int tokNonLeader = 5; - -const int tokPercent = 7; - -const int tokPlusSign = 8; - -const int tokReserved = 11; - -const int tokRightQuote = 2; - -const int tokSeparator = 12; - -const int tokThousands = 10; - -const int tokZeroLead = 6; - -@Deprecated('Deprecated') -const int token1Quote = 52; - -@Deprecated('Deprecated') -const int token2Equal = 38; - -@Deprecated('Deprecated') -const int token2Quote = 51; - -@Deprecated('Deprecated') -const int tokenAlpha = 4; - -@Deprecated('Deprecated') -const int tokenAltNum = 11; - -@Deprecated('Deprecated') -const int tokenAltReal = 13; - -@Deprecated('Deprecated') -const int tokenAmpersand = 57; - -@Deprecated('Deprecated') -const int tokenAsterisk = 26; - -@Deprecated('Deprecated') -const int tokenAtSign = 58; - -@Deprecated('Deprecated') -const int tokenBackSlash = 30; - -@Deprecated('Deprecated') -const int tokenBar = 59; - -@Deprecated('Deprecated') -const int tokenCapPi = 66; - -@Deprecated('Deprecated') -const int tokenCarat = 55; - -@Deprecated('Deprecated') -const int tokenCaret = 55; - -@Deprecated('Deprecated') -const int tokenCenterDot = 78; - -@Deprecated('Deprecated') -const int tokenColon = 68; - -@Deprecated('Deprecated') -const int tokenColonEqual = 39; - -@Deprecated('Deprecated') -const int tokenComma = 45; - -@Deprecated('Deprecated') -const int tokenDivide = 27; - -@Deprecated('Deprecated') -const int tokenDollar = 70; - -@Deprecated('Deprecated') -const int tokenEllipsis = 77; - -@Deprecated('Deprecated') -const int tokenEmpty = -1; - -@Deprecated('Deprecated') -const int tokenEqual = 33; - -const int tokenErr = 33024; - -@Deprecated('Deprecated') -const int tokenEscape = 10; - -@Deprecated('Deprecated') -const int tokenExclam = 43; - -@Deprecated('Deprecated') -const int tokenExclamEqual = 42; - -@Deprecated('Deprecated') -const int tokenFraction = 72; - -@Deprecated('Deprecated') -const int tokenGreat = 32; - -@Deprecated('Deprecated') -const int tokenGreatEqual1 = 37; - -@Deprecated('Deprecated') -const int tokenGreatEqual2 = 36; - -@Deprecated('Deprecated') -const int tokenHash = 69; - -@Deprecated('Deprecated') -const int tokenInfinity = 67; - -@Deprecated('Deprecated') -const int tokenIntegral = 64; - -@Deprecated('Deprecated') -const int tokenIntl = 4; - -@Deprecated('Deprecated') -const int tokenIntlCurrency = 73; - -@Deprecated('Deprecated') -const int tokenLeft1Quote = 49; - -@Deprecated('Deprecated') -const int tokenLeft2Quote = 47; - -@Deprecated('Deprecated') -const int tokenLeftBracket = 18; - -@Deprecated('Deprecated') -const int tokenLeftComment = 7; - -@Deprecated('Deprecated') -const int tokenLeftCurly = 20; - -@Deprecated('Deprecated') -const int tokenLeftEnclose = 22; - -@Deprecated('Deprecated') -const int tokenLeftLit = 2; - -@Deprecated('Deprecated') -const int tokenLeftParen = 16; - -@Deprecated('Deprecated') -const int tokenLeftSingGuillemet = 74; - -@Deprecated('Deprecated') -const int tokenLess = 31; - -@Deprecated('Deprecated') -const int tokenLessEqual1 = 35; - -@Deprecated('Deprecated') -const int tokenLessEqual2 = 34; - -@Deprecated('Deprecated') -const int tokenLessGreat = 41; - -@Deprecated('Deprecated') -const int tokenLiteral = 9; - -@Deprecated('Deprecated') -const int tokenMicro = 65; - -@Deprecated('Deprecated') -const int tokenMinus = 25; - -@Deprecated('Deprecated') -const int tokenNewLine = 6; - -@Deprecated('Deprecated') -const int tokenNil = 127; - -@Deprecated('Deprecated') -const int tokenNoBreakSpace = 71; - -@Deprecated('Deprecated') -const int tokenNotEqual = 40; - -@Deprecated('Deprecated') -const int tokenNumeric = 5; - -@Deprecated('Deprecated') -const int tokenOK = 0; - -@Deprecated('Deprecated') -const int tokenOverflow = 1; - -@Deprecated('Deprecated') -const int tokenPerThousand = 76; - -@Deprecated('Deprecated') -const int tokenPercent = 54; - -@Deprecated('Deprecated') -const int tokenPeriod = 46; - -@Deprecated('Deprecated') -const int tokenPi = 61; - -@Deprecated('Deprecated') -const int tokenPlus = 24; - -@Deprecated('Deprecated') -const int tokenPlusMinus = 28; - -@Deprecated('Deprecated') -const int tokenQuestion = 60; - -@Deprecated('Deprecated') -const int tokenRealNum = 12; - -@Deprecated('Deprecated') -const int tokenReserve1 = 14; - -@Deprecated('Deprecated') -const int tokenReserve2 = 15; - -@Deprecated('Deprecated') -const int tokenRight1Quote = 50; - -@Deprecated('Deprecated') -const int tokenRight2Quote = 48; - -@Deprecated('Deprecated') -const int tokenRightBracket = 19; - -@Deprecated('Deprecated') -const int tokenRightComment = 8; - -@Deprecated('Deprecated') -const int tokenRightCurly = 21; - -@Deprecated('Deprecated') -const int tokenRightEnclose = 23; - -@Deprecated('Deprecated') -const int tokenRightLit = 3; - -@Deprecated('Deprecated') -const int tokenRightParen = 17; - -@Deprecated('Deprecated') -const int tokenRightSingGuillemet = 75; - -@Deprecated('Deprecated') -const int tokenRoot = 62; - -@Deprecated('Deprecated') -const int tokenSemicolon = 53; - -@Deprecated('Deprecated') -const int tokenSigma = 63; - -@Deprecated('Deprecated') -const int tokenSlash = 29; - -@Deprecated('Deprecated') -const int tokenTilda = 44; - -@Deprecated('Deprecated') -const int tokenTilde = 44; - -@Deprecated('Deprecated') -const int tokenUnderline = 56; - -@Deprecated('Deprecated') -const int tokenUnknown = 0; - -@Deprecated('Deprecated') -const int tokenWhite = 1; - -typedef token_t = au_token; - -const int tooManyReqs = -1097; - -const int tooManySeps = 32; - -const int tooManySkts = -1098; - -const int trackIDNotFound = -2029; - -const int trackNotInMovie = -2030; - -const int trashIconResource = -3993; - -const int true$ = 1; - -@Deprecated('Deprecated') -const int true32b = 1; - -const int tsmAlreadyRegisteredErr = -2503; - -const int tsmCantChangeForcedClassStateErr = -2530; - -const int tsmCantOpenComponentErr = -2509; - -const int tsmComponentAlreadyOpenErr = -2515; - -const int tsmComponentNoErr = 0; - -const int tsmComponentPropertyNotFoundErr = -2532; - -const int tsmComponentPropertyUnsupportedErr = -2531; - -const int tsmDefaultIsNotInputMethodErr = -2524; - -const int tsmDocNotActiveErr = -2507; - -const int tsmDocPropertyBufferTooSmallErr = -2529; - -const int tsmDocPropertyNotFoundErr = -2528; - -const int tsmDocumentOpenErr = -2511; - -const int tsmInputMethodIsOldErr = -2516; - -const int tsmInputMethodNotFoundErr = -2501; - -const int tsmInputModeChangeFailedErr = -2533; - -const int tsmInvalidContext = -2520; - -const int tsmInvalidDocIDErr = -2505; - -const int tsmNeverRegisteredErr = -2504; - -const int tsmNoHandler = -2521; - -const int tsmNoMoreTokens = -2522; - -const int tsmNoOpenTSErr = -2508; - -const int tsmNoStem = -2523; - -const int tsmNotAnAppErr = -2502; - -const int tsmScriptHasNoIMErr = -2517; - -const int tsmTSHasNoMenuErr = -2513; - -const int tsmTSMDocBusyErr = -2506; - -const int tsmTSNotOpenErr = -2514; - -const int tsmTextServiceNotFoundErr = -2510; - -const int tsmUnknownErr = -2519; - -const int tsmUnsupScriptLanguageErr = -2500; - -const int tsmUnsupportedTypeErr = -2518; - -const int tsmUseInputWindowErr = -2512; - -const int ttDisabled = 1; - -const int ttLabel1 = 256; - -const int ttLabel2 = 512; - -const int ttLabel3 = 768; - -const int ttLabel4 = 1024; - -const int ttLabel5 = 1280; - -const int ttLabel6 = 1536; - -const int ttLabel7 = 1792; - -const int ttNone = 0; - -const int ttOffline = 2; - -const int ttOpen = 3; - -const int ttSelected = 16384; - -const int ttSelectedDisabled = 16385; - -const int ttSelectedOffline = 16386; - -const int ttSelectedOpen = 16387; - -const int tuneParseOSErr = -2087; - -const int tunePlayerFullOSErr = -2086; - -const int twoSideErr = -78; - -const int type128BitFloatingPoint = 1818518124; - -const int typeAEList = 1818850164; - -const int typeAERecord = 1919247215; - -const int typeAEText = 1951684692; - -const int typeAbsoluteOrdinal = 1633842031; - -const int typeAlias = 1634494835; - -const int typeAppParameters = 1634758753; - -const int typeApplSignature = 1936287598; - -const int typeAppleEvent = 1634039412; - -const int typeApplicationBundleID = 1651863140; - -const int typeApplicationURL = 1634759276; - -const int typeArc = 1667330659; - -const int typeAuditToken = 1953459054; - -const int typeBest = 1650815860; - -const int typeBookmarkData = 1651339883; - -const int typeBoolean = 1651470188; - -const int typeCFAbsoluteTime = 1667654004; - -const int typeCFArrayRef = 1667654002; - -const int typeCFAttributedStringRef = 1667654003; - -const int typeCFBooleanRef = 1667658854; - -const int typeCFDictionaryRef = 1667654755; - -const int typeCFMutableArrayRef = 1667657057; - -const int typeCFMutableAttributedStringRef = 1667653985; - -const int typeCFMutableDictionaryRef = 1667657060; - -const int typeCFMutableStringRef = 1667657075; - -const int typeCFNumberRef = 1667657314; - -const int typeCFStringRef = 1667658612; - -const int typeCFTypeRef = 1667658873; - -const int typeCString = 1668510834; - -const int typeCell = 1667458412; - -const int typeCentimeters = 1668117618; - -const int typeChar = 1413830740; - -const int typeClassInfo = 1734569065; - -const int typeColorTable = 1668051572; - -const int typeColumn = 1667460972; - -const int typeCompDescriptor = 1668116580; - -const int typeComponentInstance = 1668116585; - -const int typeCubicCentimeter = 1667460468; - -const int typeCubicFeet = 1667655028; - -const int typeCubicInches = 1668639086; - -const int typeCubicMeters = 1668113780; - -const int typeCubicYards = 1668903524; - -const int typeCurrentContainer = 1667460724; - -const int typeDashStyle = 1952735603; - -const int typeData = 1952740449; - -const int typeDecimalStruct = 1684366189; - -const int typeDegreesC = 1684367203; - -const int typeDegreesF = 1684367206; - -const int typeDegreesK = 1684367211; - -const int typeDrawingArea = 1667527287; - -const int typeEPS = 1162892064; - -const int typeElemInfo = 1701603694; - -const int typeEncodedString = 1701733235; - -const int typeEnumerated = 1701737837; - -const int typeEnumeration = 1701737837; - -const int typeEventInfo = 1702259054; - -const int typeEventRecord = 1702261347; - -const int typeEventRef = 1702261350; - -const int typeFSRef = 1718841958; - -const int typeFalse = 1717660787; - -const int typeFeet = 1717921140; - -const int typeFileURL = 1718973036; - -const int typeFinderWindow = 1719101806; - -const int typeFixed = 1718188132; - -const int typeFixedPoint = 1718644340; - -const int typeFixedRectangle = 1718772596; - -const int typeGIF = 1195984486; - -const int typeGallons = 1734437998; - -const int typeGlyphInfoArray = 1735158113; - -const int typeGrams = 1735549293; - -const int typeGraphicLine = 1735158126; - -const int typeGraphicText = 1667724408; - -const int typeGroupedGraphic = 1668311395; - -const int typeHIMenu = 1836016234; - -const int typeHIWindow = 2003788394; - -const int typeIEEE32BitFloatingPoint = 1936289383; - -const int typeIEEE64BitFloatingPoint = 1685026146; - -const int typeISO8601DateTime = 1769172852; - -const int typeInches = 1768842088; - -const int typeIndexDescriptor = 1768842341; - -const int typeInsertionLoc = 1768846188; - -const int typeIntlText = 1769240692; - -const int typeIntlWritingCode = 1768846444; - -const int typeJPEG = 1246774599; - -const int typeKernelProcessID = 1802529124; - -const int typeKeyword = 1801812343; - -const int typeKilograms = 1801941613; - -const int typeKilometers = 1802335346; - -const int typeLiters = 1818850418; - -const int typeLogicalDescriptor = 1819240297; - -const int typeLongDateTime = 1818522656; - -const int typeLongFixed = 1818654820; - -const int typeLongFixedPoint = 1818652788; - -const int typeLongFixedRectangle = 1818653283; - -const int typeLongPoint = 1819307636; - -const int typeLongRectangle = 1819435892; - -const int typeLowLevelEventRecord = 1702261874; - -const int typeMachPort = 1886351988; - -const int typeMachineLoc = 1833725795; - -const int typeMeters = 1835365490; - -const int typeMiles = 1835625573; - -const int typeNull = 1853189228; - -const int typeOSLTokenList = 1869837420; - -const int typeObjectBeingExamined = 1702391150; - -const int typeObjectSpecifier = 1868720672; - -const int typeOffsetArray = 1868980601; - -const int typeOunces = 1870295840; - -const int typeOval = 1668249196; - -const int typePString = 1886614642; - -const int typeParamInfo = 1886218606; - -const int typePict = 1346978644; - -const int typePixMapMinus = 1953525101; - -const int typePixelMap = 1668311416; - -const int typePolygon = 1668310894; - -const int typePounds = 1818391328; - -const int typeProcessSerialNumber = 1886613024; - -const int typePropInfo = 1885957734; - -const int typeProperty = 1886547824; - -const int typePtr = 1886679584; - -const int typeQDPoint = 1363439732; - -const int typeQDRectangle = 1902408308; - -const int typeQDRegion = 1366452078; - -const int typeQuarts = 1903326323; - -const int typeRGB16 = 1953640758; - -const int typeRGB96 = 1953642806; - -const int typeRGBColor = 1666336578; - -const int typeRangeDescriptor = 1918987879; - -const int typeRectangle = 1668441443; - -const int typeRelativeDescriptor = 1919249440; - -const int typeReplyPortAttr = 1919250544; - -const int typeRotation = 1953656692; - -const int typeRoundedRectangle = 1668444771; - -const int typeRow = 1668444023; - -const int typeSInt16 = 1936224114; - -const int typeSInt32 = 1819242087; - -const int typeSInt64 = 1668246896; - -const int typeScrapStyles = 1937013100; - -const int typeScript = 1935896692; - -const int typeSectionH = 1936024436; - -const int typeSquareFeet = 1936811636; - -const int typeSquareKilometers = 1936812909; - -const int typeSquareMeters = 1936814701; - -const int typeSquareMiles = 1936813417; - -const int typeSquareYards = 1936816484; - -const int typeStyledText = 1398036564; - -const int typeStyledUnicodeText = 1937077368; - -const int typeSuiteInfo = 1937074542; - -const int typeTIFF = 1414088262; - -const int typeTable = 1668571756; - -const int typeText = 1413830740; - -const int typeTextRange = 1954050670; - -const int typeTextRangeArray = 1953653113; - -const int typeTextStyles = 1953723513; - -const int typeToken = 1953459045; - -const int typeTrue = 1953658213; - -const int typeType = 1954115685; - -const int typeUInt16 = 1970497650; - -const int typeUInt32 = 1835100014; - -const int typeUInt64 = 1969450861; - -const int typeUTF16ExternalRepresentation = 1970549046; - -const int typeUTF8Text = 1970562616; - -const int typeUnicodeText = 1970567284; - -const int typeVersion = 1986359923; - -const int typeWhoseDescriptor = 2003332979; - -const int typeWhoseRange = 2003988071; - -const int typeWildCard = 707406378; - -const int typeYards = 2036429412; - -typedef u_char = ffi.UnsignedChar; -typedef Dartu_char = int; -typedef u_int = ffi.UnsignedInt; -typedef Dartu_int = int; -typedef u_int16_t = ffi.UnsignedShort; -typedef Dartu_int16_t = int; -typedef u_int32_t = ffi.UnsignedInt; -typedef Dartu_int32_t = int; -typedef u_int64_t = ffi.UnsignedLongLong; -typedef Dartu_int64_t = int; -typedef u_int8_t = ffi.UnsignedChar; -typedef Dartu_int8_t = int; -typedef u_long = ffi.UnsignedLong; -typedef Dartu_long = int; -typedef u_quad_t = u_int64_t; -typedef u_short = ffi.UnsignedShort; -typedef Dartu_short = int; -typedef ucontext_t = __darwin_ucontext; -typedef uext_object_t = io_object_t; -typedef uid_t = __darwin_uid_t; -typedef uint = ffi.UnsignedInt; -typedef Dartuint = int; -typedef uint16 = ffi.Uint16; -typedef Dartuint16 = int; -typedef uint32 = ffi.Uint32; -typedef Dartuint32 = int; -typedef uint64 = ffi.Uint64; -typedef Dartuint64 = int; -typedef uint8 = ffi.Uint8; -typedef Dartuint8 = int; -typedef uint_fast16_t = ffi.Uint16; -typedef Dartuint_fast16_t = int; -typedef uint_fast32_t = ffi.Uint32; -typedef Dartuint_fast32_t = int; -typedef uint_fast64_t = ffi.Uint64; -typedef Dartuint_fast64_t = int; -typedef uint_fast8_t = ffi.Uint8; -typedef Dartuint_fast8_t = int; -typedef uint_least16_t = ffi.Uint16; -typedef Dartuint_least16_t = int; -typedef uint_least32_t = ffi.Uint32; -typedef Dartuint_least32_t = int; -typedef uint_least64_t = ffi.Uint64; -typedef Dartuint_least64_t = int; -typedef uint_least8_t = ffi.Uint8; -typedef Dartuint_least8_t = int; -typedef uintmax_t = ffi.UnsignedLong; -typedef Dartuintmax_t = int; - -const int underline = 4; - -const int undoDev = 9; - -typedef unichar = ffi.UnsignedShort; -typedef Dartunichar = int; - -const int unicodeBufErr = -8764; - -const int unicodeCharErr = -8763; - -const int unicodeChecksumErr = -8769; - -const int unicodeContextualErr = -8758; - -const int unicodeDirectionErr = -8759; - -const int unicodeElementErr = -8762; - -const int unicodeFallbacksErr = -8766; - -const int unicodeNoTableErr = -8768; - -const int unicodeNotFoundErr = -8761; - -const int unicodePartConvertErr = -8765; - -const int unicodeTableFormatErr = -8760; - -const int unicodeTextEncodingDataErr = -8757; - -const int unicodeVariantErr = -8767; - -const int unimpErr = -4; - -const int unitEmptyErr = -22; - -const int unitTblFullErr = -29; - -const int unknownFormatErr = -2114; - -const int unknownInsertModeErr = -20000; - -const int unresolvedComponentDLLErr = -3004; - -const int unsupportedAuxiliaryImportData = -2057; - -const int unsupportedForPlatformErr = -1858; - -const int unsupportedOSErr = -2096; - -const int unsupportedProcessorErr = -2097; - -const int updPixMemErr = -125; - -const int updateDev = 4; - -typedef upl_t = mach_port_t; -@Deprecated('Deprecated') -const int uppCallComponentCanDoProcInfo = 752; - -@Deprecated('Deprecated') -const int uppCallComponentCloseProcInfo = 1008; - -@Deprecated('Deprecated') -const int uppCallComponentGetMPWorkFunctionProcInfo = 4080; - -@Deprecated('Deprecated') -const int uppCallComponentGetPublicResourceProcInfo = 15344; - -@Deprecated('Deprecated') -const int uppCallComponentOpenProcInfo = 1008; - -@Deprecated('Deprecated') -const int uppCallComponentRegisterProcInfo = 240; - -@Deprecated('Deprecated') -const int uppCallComponentTargetProcInfo = 1008; - -@Deprecated('Deprecated') -const int uppCallComponentUnregisterProcInfo = 240; - -@Deprecated('Deprecated') -const int uppCallComponentVersionProcInfo = 240; - -@Deprecated('Deprecated') -const int uppComponentFunctionImplementedProcInfo = 752; - -@Deprecated('Deprecated') -const int uppComponentSetTargetProcInfo = 1008; - -@Deprecated('Deprecated') -const int uppGetComponentVersionProcInfo = 240; - -const int urlDataHFTPBadNameListErr = -2144; - -const int urlDataHFTPBadPasswordErr = -2136; - -const int urlDataHFTPBadUserErr = -2135; - -const int urlDataHFTPDataConnectionErr = -2138; - -const int urlDataHFTPFilenameErr = -2142; - -const int urlDataHFTPNeedPasswordErr = -2145; - -const int urlDataHFTPNoDirectoryErr = -2139; - -const int urlDataHFTPNoNetDriverErr = -2143; - -const int urlDataHFTPNoPasswordErr = -2146; - -const int urlDataHFTPPermissionsErr = -2141; - -const int urlDataHFTPProtocolErr = -2133; - -const int urlDataHFTPQuotaErr = -2140; - -const int urlDataHFTPServerDisconnectedErr = -2147; - -const int urlDataHFTPServerErr = -2137; - -const int urlDataHFTPShutdownErr = -2134; - -const int urlDataHFTPURLErr = -2148; - -const int urlDataHHTTPNoNetDriverErr = -2130; - -const int urlDataHHTTPProtocolErr = -2129; - -const int urlDataHHTTPRedirectErr = -2132; - -const int urlDataHHTTPURLErr = -2131; - -@Deprecated('Deprecated') -const int useATalk = 1; - -@Deprecated('Deprecated') -const int useAsync = 2; - -@Deprecated('Deprecated') -const int useExtClk = 3; - -@Deprecated('Deprecated') -const int useFree = 0; - -@Deprecated('Deprecated') -const int useMIDI = 4; - -typedef useconds_t = __darwin_useconds_t; - -const int userBreak = -490; - -const int userCanceledErr = -128; - -const int userDataItemNotFound = -2026; - -const int userRejectErr = -912; - -typedef user_addr_t = u_int64_t; -typedef user_long_t = ffi.Int64; -typedef Dartuser_long_t = int; -typedef user_off_t = ffi.Int64; -typedef Dartuser_off_t = int; -typedef user_size_t = u_int64_t; -typedef user_ssize_t = ffi.Int64; -typedef Dartuser_ssize_t = int; -typedef user_subsystem_t = ffi.Pointer; -typedef user_time_t = ffi.Int64; -typedef Dartuser_time_t = int; -typedef user_ulong_t = u_int64_t; -typedef ushort = ffi.UnsignedShort; -typedef Dartushort = int; - -const int vLckdErr = -46; - -const int vTypErr = -2; - -@Deprecated('Deprecated') -const int vType = 1; - -typedef va_list = __builtin_va_list; - -const int validDateFields = -1; - -const int validInstancesExist = -3001; - -const int variationFontTableTag = 1719034226; - -@Deprecated('Deprecated') -const int verAfrikaans = 102; - -@Deprecated('Deprecated') -const int verAlternateGr = 64; - -@Deprecated('Deprecated') -const int verArabia = 16; - -@Deprecated('Deprecated') -const int verArabic = 16; - -@Deprecated('Deprecated') -const int verArmenia = 84; - -@Deprecated('Deprecated') -const int verArmenian = 84; - -@Deprecated('Deprecated') -const int verAustralia = 15; - -@Deprecated('Deprecated') -const int verAustria = 92; - -@Deprecated('Deprecated') -const int verAustriaGerman = 92; - -@Deprecated('Deprecated') -const int verBelarus = 61; - -@Deprecated('Deprecated') -const int verBelgiumLux = 6; - -@Deprecated('Deprecated') -const int verBelgiumLuxPoint = 27; - -@Deprecated('Deprecated') -const int verBengali = 60; - -@Deprecated('Deprecated') -const int verBhutan = 83; - -@Deprecated('Deprecated') -const int verBrazil = 71; - -@Deprecated('Deprecated') -const int verBreton = 77; - -@Deprecated('Deprecated') -const int verBritain = 2; - -@Deprecated('Deprecated') -const int verBrittany = 77; - -@Deprecated('Deprecated') -const int verBulgaria = 72; - -@Deprecated('Deprecated') -const int verByeloRussian = 61; - -@Deprecated('Deprecated') -const int verCanadaComma = 28; - -@Deprecated('Deprecated') -const int verCanadaPoint = 29; - -@Deprecated('Deprecated') -const int verCatalonia = 73; - -@Deprecated('Deprecated') -const int verChina = 52; - -@Deprecated('Deprecated') -const int verCroatia = 68; - -@Deprecated('Deprecated') -const int verCyprus = 23; - -@Deprecated('Deprecated') -const int verCzech = 56; - -@Deprecated('Deprecated') -const int verDenmark = 9; - -@Deprecated('Deprecated') -const int verEastAsiaGeneric = 58; - -@Deprecated('Deprecated') -const int verEngCanada = 82; - -const int verErr = -84; - -@Deprecated('Deprecated') -const int verEsperanto = 103; - -@Deprecated('Deprecated') -const int verEstonia = 44; - -@Deprecated('Deprecated') -const int verFaeroeIsl = 47; - -@Deprecated('Deprecated') -const int verFarEastGeneric = 58; - -@Deprecated('Deprecated') -const int verFaroeIsl = 47; - -@Deprecated('Deprecated') -const int verFinland = 17; - -@Deprecated('Deprecated') -const int verFlemish = 6; - -@Deprecated('Deprecated') -const int verFlemishPoint = 27; - -@Deprecated('Deprecated') -const int verFrBelgium = 98; - -@Deprecated('Deprecated') -const int verFrBelgiumLux = 6; - -@Deprecated('Deprecated') -const int verFrCanada = 11; - -@Deprecated('Deprecated') -const int verFrSwiss = 18; - -@Deprecated('Deprecated') -const int verFrance = 1; - -@Deprecated('Deprecated') -const int verFrenchUniversal = 91; - -@Deprecated('Deprecated') -const int verGenericFE = 58; - -@Deprecated('Deprecated') -const int verGeorgia = 85; - -@Deprecated('Deprecated') -const int verGeorgian = 85; - -@Deprecated('Deprecated') -const int verGermanReformed = 70; - -@Deprecated('Deprecated') -const int verGermany = 3; - -@Deprecated('Deprecated') -const int verGrSwiss = 19; - -@Deprecated('Deprecated') -const int verGreece = 20; - -@Deprecated('Deprecated') -const int verGreeceAlt = 64; - -@Deprecated('Deprecated') -const int verGreecePoly = 40; - -@Deprecated('Deprecated') -const int verGreekAncient = 40; - -@Deprecated('Deprecated') -const int verGreenland = 107; - -@Deprecated('Deprecated') -const int verGujarati = 94; - -@Deprecated('Deprecated') -const int verHungary = 43; - -@Deprecated('Deprecated') -const int verIceland = 21; - -@Deprecated('Deprecated') -const int verIndia = 33; - -@Deprecated('Deprecated') -const int verIndiaHindi = 33; - -@Deprecated('Deprecated') -const int verIndiaUrdu = 96; - -@Deprecated('Deprecated') -const int verInternational = 37; - -@Deprecated('Deprecated') -const int verIran = 48; - -@Deprecated('Deprecated') -const int verIreland = 50; - -@Deprecated('Deprecated') -const int verIrelandEnglish = 108; - -@Deprecated('Deprecated') -const int verIrishGaelicScript = 81; - -@Deprecated('Deprecated') -const int verIsrael = 13; - -@Deprecated('Deprecated') -const int verItalianSwiss = 36; - -@Deprecated('Deprecated') -const int verItaly = 4; - -@Deprecated('Deprecated') -const int verJapan = 14; - -@Deprecated('Deprecated') -const int verKorea = 51; - -@Deprecated('Deprecated') -const int verLapland = 46; - -@Deprecated('Deprecated') -const int verLatvia = 45; - -@Deprecated('Deprecated') -const int verLithuania = 41; - -@Deprecated('Deprecated') -const int verMacedonia = 67; - -@Deprecated('Deprecated') -const int verMacedonian = 67; - -@Deprecated('Deprecated') -const int verMagyar = 59; - -@Deprecated('Deprecated') -const int verMalta = 22; - -@Deprecated('Deprecated') -const int verManxGaelic = 76; - -@Deprecated('Deprecated') -const int verMarathi = 104; - -@Deprecated('Deprecated') -const int verMultilingual = 74; - -@Deprecated('Deprecated') -const int verNepal = 106; - -@Deprecated('Deprecated') -const int verNetherlands = 5; - -@Deprecated('Deprecated') -const int verNetherlandsComma = 26; - -@Deprecated('Deprecated') -const int verNorway = 12; - -@Deprecated('Deprecated') -const int verNunavut = 78; - -@Deprecated('Deprecated') -const int verNynorsk = 101; - -@Deprecated('Deprecated') -const int verPakistan = 34; - -@Deprecated('Deprecated') -const int verPakistanUrdu = 34; - -@Deprecated('Deprecated') -const int verPoland = 42; - -@Deprecated('Deprecated') -const int verPortugal = 10; - -@Deprecated('Deprecated') -const int verPunjabi = 95; - -@Deprecated('Deprecated') -const int verRomania = 39; - -@Deprecated('Deprecated') -const int verRumania = 39; - -@Deprecated('Deprecated') -const int verRussia = 49; - -@Deprecated('Deprecated') -const int verSami = 46; - -@Deprecated('Deprecated') -const int verScottishGaelic = 75; - -@Deprecated('Deprecated') -const int verScriptGeneric = 55; - -@Deprecated('Deprecated') -const int verSerbia = 65; - -@Deprecated('Deprecated') -const int verSerbian = 65; - -@Deprecated('Deprecated') -const int verSingapore = 100; - -@Deprecated('Deprecated') -const int verSlovak = 57; - -@Deprecated('Deprecated') -const int verSlovenia = 66; - -@Deprecated('Deprecated') -const int verSlovenian = 66; - -@Deprecated('Deprecated') -const int verSpLatinAmerica = 86; - -@Deprecated('Deprecated') -const int verSpain = 8; - -@Deprecated('Deprecated') -const int verSweden = 7; - -@Deprecated('Deprecated') -const int verTaiwan = 53; - -@Deprecated('Deprecated') -const int verThailand = 54; - -@Deprecated('Deprecated') -const int verTibet = 105; - -@Deprecated('Deprecated') -const int verTibetan = 105; - -@Deprecated('Deprecated') -const int verTonga = 88; - -@Deprecated('Deprecated') -const int verTurkey = 24; - -@Deprecated('Deprecated') -const int verTurkishModified = 35; - -@Deprecated('Deprecated') -const int verUS = 0; - -@Deprecated('Deprecated') -const int verUkraine = 62; - -@Deprecated('Deprecated') -const int verUkrania = 62; - -const int verUnspecified = 32767; - -@Deprecated('Deprecated') -const int verUzbek = 99; - -@Deprecated('Deprecated') -const int verVietnam = 97; - -@Deprecated('Deprecated') -const int verWales = 79; - -@Deprecated('Deprecated') -const int verWelsh = 79; - -@Deprecated('Deprecated') -const int verYugoCroatian = 25; - -@Deprecated('Deprecated') -const int verYugoslavia = 25; - -@Deprecated('Deprecated') -const int vervariantDenmark = 32; - -@Deprecated('Deprecated') -const int vervariantNorway = 31; - -@Deprecated('Deprecated') -const int vervariantPortugal = 30; - -const int videoOutputInUseErr = -2090; - -enum virtual_memory_guard_exception_code_t { - kGUARD_EXC_DEALLOC_GAP(1), - kGUARD_EXC_RECLAIM_COPYIO_FAILURE(2), - kGUARD_EXC_RECLAIM_INDEX_FAILURE(4), - kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE(8), - kGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE(9), - kGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE(10), - kGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE(11), - kGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION(12), - kGUARD_EXC_SEC_ACCESS_FAULT(98), - kGUARD_EXC_SEC_ASYNC_ACCESS_FAULT(99), - kGUARD_EXC_SEC_COPY_DENIED(100), - kGUARD_EXC_SEC_SHARING_DENIED(101); - - final int value; - const virtual_memory_guard_exception_code_t(this.value); - - static virtual_memory_guard_exception_code_t fromValue(int value) => - switch (value) { - 1 => kGUARD_EXC_DEALLOC_GAP, - 2 => kGUARD_EXC_RECLAIM_COPYIO_FAILURE, - 4 => kGUARD_EXC_RECLAIM_INDEX_FAILURE, - 8 => kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE, - 9 => kGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE, - 10 => kGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE, - 11 => kGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE, - 12 => kGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION, - 98 => kGUARD_EXC_SEC_ACCESS_FAULT, - 99 => kGUARD_EXC_SEC_ASYNC_ACCESS_FAULT, - 100 => kGUARD_EXC_SEC_COPY_DENIED, - 101 => kGUARD_EXC_SEC_SHARING_DENIED, - _ => throw ArgumentError( - 'Unknown value for virtual_memory_guard_exception_code_t: $value', - ), - }; -} - -typedef vm32_address_t = ffi.Uint32; -typedef Dartvm32_address_t = int; -typedef vm32_object_id_t = ffi.Uint32; -typedef Dartvm32_object_id_t = int; -typedef vm32_offset_t = ffi.Uint32; -typedef Dartvm32_offset_t = int; -typedef vm32_size_t = ffi.Uint32; -typedef Dartvm32_size_t = int; - -const int vmAddressNotInFileViewErr = -647; - -const int vmBadDriver = -632; - -const int vmBusyBackingFileErr = -642; - -const int vmFileViewAccessErr = -645; - -const int vmInvalidBackingFileIDErr = -640; - -const int vmInvalidFileViewIDErr = -644; - -const int vmInvalidOwningProcessErr = -648; - -const int vmKernelMMUInitErr = -629; - -const int vmMappingPrivilegesErr = -641; - -const int vmMemLckdErr = -631; - -const int vmMorePhysicalThanVirtualErr = -628; - -const int vmNoMoreBackingFilesErr = -643; - -const int vmNoMoreFileViewsErr = -646; - -const int vmNoVectorErr = -633; - -const int vmOffErr = -630; - -typedef vm_address_t = vm_offset_t; -typedef vm_behavior_t = ffi.Int; -typedef Dartvm_behavior_t = int; - -final class vm_extmod_statistics extends ffi.Struct { - @ffi.Int64() - external int task_for_pid_count; - - @ffi.Int64() - external int task_for_pid_caller_count; - - @ffi.Int64() - external int thread_creation_count; - - @ffi.Int64() - external int thread_creation_caller_count; - - @ffi.Int64() - external int thread_set_state_count; - - @ffi.Int64() - external int thread_set_state_caller_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int task_for_pid_count, - required int task_for_pid_caller_count, - required int thread_creation_count, - required int thread_creation_caller_count, - required int thread_set_state_count, - required int thread_set_state_caller_count, - }) => $allocator() - ..ref.task_for_pid_count = task_for_pid_count - ..ref.task_for_pid_caller_count = task_for_pid_caller_count - ..ref.thread_creation_count = thread_creation_count - ..ref.thread_creation_caller_count = thread_creation_caller_count - ..ref.thread_set_state_count = thread_set_state_count - ..ref.thread_set_state_caller_count = thread_set_state_caller_count; -} - -typedef vm_extmod_statistics_data_t = vm_extmod_statistics; -typedef vm_extmod_statistics_t = ffi.Pointer; - -@ffi.Packed(4) -final class vm_info_object extends ffi.Struct { - @natural_t() - external int vio_object; - - @natural_t() - external int vio_size; - - @ffi.UnsignedInt() - external int vio_ref_count; - - @ffi.UnsignedInt() - external int vio_resident_page_count; - - @ffi.UnsignedInt() - external int vio_absent_count; - - @natural_t() - external int vio_copy; - - @natural_t() - external int vio_shadow; - - @natural_t() - external int vio_shadow_offset; - - @natural_t() - external int vio_paging_offset; - - @memory_object_copy_strategy_t() - external int vio_copy_strategy; - - @vm_offset_t() - external int vio_last_alloc; - - @ffi.UnsignedInt() - external int vio_paging_in_progress; - - @boolean_t() - external int vio_pager_created; - - @boolean_t() - external int vio_pager_initialized; - - @boolean_t() - external int vio_pager_ready; - - @boolean_t() - external int vio_can_persist; - - @boolean_t() - external int vio_internal; - - @boolean_t() - external int vio_temporary; - - @boolean_t() - external int vio_alive; - - @boolean_t() - external int vio_purgable; - - @boolean_t() - external int vio_purgable_volatile; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int vio_object, - required int vio_size, - required int vio_ref_count, - required int vio_resident_page_count, - required int vio_absent_count, - required int vio_copy, - required int vio_shadow, - required int vio_shadow_offset, - required int vio_paging_offset, - required int vio_copy_strategy, - required int vio_last_alloc, - required int vio_paging_in_progress, - required int vio_pager_created, - required int vio_pager_initialized, - required int vio_pager_ready, - required int vio_can_persist, - required int vio_internal, - required int vio_temporary, - required int vio_alive, - required int vio_purgable, - required int vio_purgable_volatile, - }) => $allocator() - ..ref.vio_object = vio_object - ..ref.vio_size = vio_size - ..ref.vio_ref_count = vio_ref_count - ..ref.vio_resident_page_count = vio_resident_page_count - ..ref.vio_absent_count = vio_absent_count - ..ref.vio_copy = vio_copy - ..ref.vio_shadow = vio_shadow - ..ref.vio_shadow_offset = vio_shadow_offset - ..ref.vio_paging_offset = vio_paging_offset - ..ref.vio_copy_strategy = vio_copy_strategy - ..ref.vio_last_alloc = vio_last_alloc - ..ref.vio_paging_in_progress = vio_paging_in_progress - ..ref.vio_pager_created = vio_pager_created - ..ref.vio_pager_initialized = vio_pager_initialized - ..ref.vio_pager_ready = vio_pager_ready - ..ref.vio_can_persist = vio_can_persist - ..ref.vio_internal = vio_internal - ..ref.vio_temporary = vio_temporary - ..ref.vio_alive = vio_alive - ..ref.vio_purgable = vio_purgable - ..ref.vio_purgable_volatile = vio_purgable_volatile; -} - -typedef vm_info_object_array_t = ffi.Pointer; -typedef vm_info_object_t = vm_info_object; - -final class vm_info_region extends ffi.Struct { - @natural_t() - external int vir_start; - - @natural_t() - external int vir_end; - - @natural_t() - external int vir_object; - - @natural_t() - external int vir_offset; - - @boolean_t() - external int vir_needs_copy; - - @vm_prot_t() - external int vir_protection; - - @vm_prot_t() - external int vir_max_protection; - - @vm_inherit_t() - external int vir_inheritance; - - @natural_t() - external int vir_wired_count; - - @natural_t() - external int vir_user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int vir_start, - required int vir_end, - required int vir_object, - required int vir_offset, - required int vir_needs_copy, - required int vir_protection, - required int vir_max_protection, - required int vir_inheritance, - required int vir_wired_count, - required int vir_user_wired_count, - }) => $allocator() - ..ref.vir_start = vir_start - ..ref.vir_end = vir_end - ..ref.vir_object = vir_object - ..ref.vir_offset = vir_offset - ..ref.vir_needs_copy = vir_needs_copy - ..ref.vir_protection = vir_protection - ..ref.vir_max_protection = vir_max_protection - ..ref.vir_inheritance = vir_inheritance - ..ref.vir_wired_count = vir_wired_count - ..ref.vir_user_wired_count = vir_user_wired_count; -} - -@ffi.Packed(4) -final class vm_info_region_64 extends ffi.Struct { - @natural_t() - external int vir_start; - - @natural_t() - external int vir_end; - - @natural_t() - external int vir_object; - - @memory_object_offset_t() - external int vir_offset; - - @boolean_t() - external int vir_needs_copy; - - @vm_prot_t() - external int vir_protection; - - @vm_prot_t() - external int vir_max_protection; - - @vm_inherit_t() - external int vir_inheritance; - - @natural_t() - external int vir_wired_count; - - @natural_t() - external int vir_user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int vir_start, - required int vir_end, - required int vir_object, - required int vir_offset, - required int vir_needs_copy, - required int vir_protection, - required int vir_max_protection, - required int vir_inheritance, - required int vir_wired_count, - required int vir_user_wired_count, - }) => $allocator() - ..ref.vir_start = vir_start - ..ref.vir_end = vir_end - ..ref.vir_object = vir_object - ..ref.vir_offset = vir_offset - ..ref.vir_needs_copy = vir_needs_copy - ..ref.vir_protection = vir_protection - ..ref.vir_max_protection = vir_max_protection - ..ref.vir_inheritance = vir_inheritance - ..ref.vir_wired_count = vir_wired_count - ..ref.vir_user_wired_count = vir_user_wired_count; -} - -typedef vm_info_region_64_t = vm_info_region_64; -typedef vm_info_region_t = vm_info_region; -typedef vm_inherit_t = ffi.UnsignedInt; -typedef Dartvm_inherit_t = int; -typedef vm_machine_attribute_t = ffi.UnsignedInt; -typedef Dartvm_machine_attribute_t = int; -typedef vm_machine_attribute_val_t = ffi.Int; -typedef Dartvm_machine_attribute_val_t = int; -typedef vm_map_address_t = ffi.Uint64; -typedef Dartvm_map_address_t = int; -typedef vm_map_inspect_t = mach_port_t; -typedef vm_map_offset_t = ffi.Uint64; -typedef Dartvm_map_offset_t = int; -typedef vm_map_read_t = mach_port_t; -typedef vm_map_size_t = ffi.Uint64; -typedef Dartvm_map_size_t = int; -typedef vm_map_t = mach_port_t; -typedef vm_named_entry_t = mach_port_t; -typedef vm_object_id_t = ffi.UnsignedLongLong; -typedef Dartvm_object_id_t = int; -typedef vm_object_offset_t = ffi.Uint64; -typedef Dartvm_object_offset_t = int; -typedef vm_object_size_t = ffi.Uint64; -typedef Dartvm_object_size_t = int; -typedef vm_offset_t = ffi.UintPtr; -typedef Dartvm_offset_t = int; - -final class vm_page_info_basic extends ffi.Struct { - @ffi.Int() - external int disposition; - - @ffi.Int() - external int ref_count; - - @vm_object_id_t() - external int object_id; - - @memory_object_offset_t() - external int offset; - - @ffi.Int() - external int depth; - - @ffi.Int() - external int __pad; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int disposition, - required int ref_count, - required int object_id, - required int offset, - required int depth, - required int $pad, - }) => $allocator() - ..ref.disposition = disposition - ..ref.ref_count = ref_count - ..ref.object_id = object_id - ..ref.offset = offset - ..ref.depth = depth - ..ref.__pad = $pad; -} - -typedef vm_page_info_basic_data_t = vm_page_info_basic; -typedef vm_page_info_basic_t = ffi.Pointer; -typedef vm_page_info_flavor_t = ffi.Int; -typedef Dartvm_page_info_flavor_t = int; -typedef vm_page_info_t = ffi.Pointer; -typedef vm_prot_t = ffi.Int; -typedef Dartvm_prot_t = int; -typedef vm_purgable_t = ffi.Int; -typedef Dartvm_purgable_t = int; - -final class vm_purgeable_info extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array fifo_data; - - external vm_purgeable_stat_t obsolete_data; - - @ffi.Array.multi([8]) - external ffi.Array lifo_data; -} - -typedef vm_purgeable_info_t = ffi.Pointer; - -final class vm_purgeable_stat extends ffi.Struct { - @ffi.Uint64() - external int count; - - @ffi.Uint64() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required int size, - }) => $allocator() - ..ref.count = count - ..ref.size = size; -} - -typedef vm_purgeable_stat_t = vm_purgeable_stat; - -@ffi.Packed(4) -final class vm_read_entry extends ffi.Struct { - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int address, - required int size, - }) => $allocator() - ..ref.address = address - ..ref.size = size; -} - -final class vm_region_basic_info extends ffi.Struct { - @vm_prot_t() - external int protection; - - @vm_prot_t() - external int max_protection; - - @vm_inherit_t() - external int inheritance; - - @boolean_t() - external int shared; - - @boolean_t() - external int reserved; - - @ffi.Uint32() - external int offset; - - @vm_behavior_t() - external int behavior; - - @ffi.UnsignedShort() - external int user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int max_protection, - required int inheritance, - required int shared, - required int reserved, - required int offset, - required int behavior, - required int user_wired_count, - }) => $allocator() - ..ref.protection = protection - ..ref.max_protection = max_protection - ..ref.inheritance = inheritance - ..ref.shared = shared - ..ref.reserved = reserved - ..ref.offset = offset - ..ref.behavior = behavior - ..ref.user_wired_count = user_wired_count; -} - -@ffi.Packed(4) -final class vm_region_basic_info_64 extends ffi.Struct { - @vm_prot_t() - external int protection; - - @vm_prot_t() - external int max_protection; - - @vm_inherit_t() - external int inheritance; - - @boolean_t() - external int shared; - - @boolean_t() - external int reserved; - - @memory_object_offset_t() - external int offset; - - @vm_behavior_t() - external int behavior; - - @ffi.UnsignedShort() - external int user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int max_protection, - required int inheritance, - required int shared, - required int reserved, - required int offset, - required int behavior, - required int user_wired_count, - }) => $allocator() - ..ref.protection = protection - ..ref.max_protection = max_protection - ..ref.inheritance = inheritance - ..ref.shared = shared - ..ref.reserved = reserved - ..ref.offset = offset - ..ref.behavior = behavior - ..ref.user_wired_count = user_wired_count; -} - -typedef vm_region_basic_info_64_t = ffi.Pointer; -typedef vm_region_basic_info_data_64_t = vm_region_basic_info_64; -typedef vm_region_basic_info_data_t = vm_region_basic_info; -typedef vm_region_basic_info_t = ffi.Pointer; - -final class vm_region_extended_info extends ffi.Struct { - @vm_prot_t() - external int protection; - - @ffi.UnsignedInt() - external int user_tag; - - @ffi.UnsignedInt() - external int pages_resident; - - @ffi.UnsignedInt() - external int pages_shared_now_private; - - @ffi.UnsignedInt() - external int pages_swapped_out; - - @ffi.UnsignedInt() - external int pages_dirtied; - - @ffi.UnsignedInt() - external int ref_count; - - @ffi.UnsignedShort() - external int shadow_depth; - - @ffi.UnsignedChar() - external int external_pager; - - @ffi.UnsignedChar() - external int share_mode; - - @ffi.UnsignedInt() - external int pages_reusable; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int user_tag, - required int pages_resident, - required int pages_shared_now_private, - required int pages_swapped_out, - required int pages_dirtied, - required int ref_count, - required int shadow_depth, - required int external_pager, - required int share_mode, - required int pages_reusable, - }) => $allocator() - ..ref.protection = protection - ..ref.user_tag = user_tag - ..ref.pages_resident = pages_resident - ..ref.pages_shared_now_private = pages_shared_now_private - ..ref.pages_swapped_out = pages_swapped_out - ..ref.pages_dirtied = pages_dirtied - ..ref.ref_count = ref_count - ..ref.shadow_depth = shadow_depth - ..ref.external_pager = external_pager - ..ref.share_mode = share_mode - ..ref.pages_reusable = pages_reusable; -} - -typedef vm_region_extended_info_data_t = vm_region_extended_info; -typedef vm_region_extended_info_t = ffi.Pointer; -typedef vm_region_flavor_t = ffi.Int; -typedef Dartvm_region_flavor_t = int; -typedef vm_region_info_64_t = ffi.Pointer; -typedef vm_region_info_t = ffi.Pointer; -typedef vm_region_recurse_info_64_t = ffi.Pointer; -typedef vm_region_recurse_info_t = ffi.Pointer; - -final class vm_region_submap_info extends ffi.Struct { - @vm_prot_t() - external int protection; - - @vm_prot_t() - external int max_protection; - - @vm_inherit_t() - external int inheritance; - - @ffi.Uint32() - external int offset; - - @ffi.UnsignedInt() - external int user_tag; - - @ffi.UnsignedInt() - external int pages_resident; - - @ffi.UnsignedInt() - external int pages_shared_now_private; - - @ffi.UnsignedInt() - external int pages_swapped_out; - - @ffi.UnsignedInt() - external int pages_dirtied; - - @ffi.UnsignedInt() - external int ref_count; - - @ffi.UnsignedShort() - external int shadow_depth; - - @ffi.UnsignedChar() - external int external_pager; - - @ffi.UnsignedChar() - external int share_mode; - - @boolean_t() - external int is_submap; - - @vm_behavior_t() - external int behavior; - - @vm32_object_id_t() - external int object_id; - - @ffi.UnsignedShort() - external int user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int max_protection, - required int inheritance, - required int offset, - required int user_tag, - required int pages_resident, - required int pages_shared_now_private, - required int pages_swapped_out, - required int pages_dirtied, - required int ref_count, - required int shadow_depth, - required int external_pager, - required int share_mode, - required int is_submap, - required int behavior, - required int object_id, - required int user_wired_count, - }) => $allocator() - ..ref.protection = protection - ..ref.max_protection = max_protection - ..ref.inheritance = inheritance - ..ref.offset = offset - ..ref.user_tag = user_tag - ..ref.pages_resident = pages_resident - ..ref.pages_shared_now_private = pages_shared_now_private - ..ref.pages_swapped_out = pages_swapped_out - ..ref.pages_dirtied = pages_dirtied - ..ref.ref_count = ref_count - ..ref.shadow_depth = shadow_depth - ..ref.external_pager = external_pager - ..ref.share_mode = share_mode - ..ref.is_submap = is_submap - ..ref.behavior = behavior - ..ref.object_id = object_id - ..ref.user_wired_count = user_wired_count; -} - -@ffi.Packed(4) -final class vm_region_submap_info_64 extends ffi.Struct { - @vm_prot_t() - external int protection; - - @vm_prot_t() - external int max_protection; - - @vm_inherit_t() - external int inheritance; - - @memory_object_offset_t() - external int offset; - - @ffi.UnsignedInt() - external int user_tag; - - @ffi.UnsignedInt() - external int pages_resident; - - @ffi.UnsignedInt() - external int pages_shared_now_private; - - @ffi.UnsignedInt() - external int pages_swapped_out; - - @ffi.UnsignedInt() - external int pages_dirtied; - - @ffi.UnsignedInt() - external int ref_count; - - @ffi.UnsignedShort() - external int shadow_depth; - - @ffi.UnsignedChar() - external int external_pager; - - @ffi.UnsignedChar() - external int share_mode; - - @boolean_t() - external int is_submap; - - @vm_behavior_t() - external int behavior; - - @vm32_object_id_t() - external int object_id; - - @ffi.UnsignedShort() - external int user_wired_count; - - @ffi.UnsignedShort() - external int flags; - - @ffi.UnsignedInt() - external int pages_reusable; - - @vm_object_id_t() - external int object_id_full; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int max_protection, - required int inheritance, - required int offset, - required int user_tag, - required int pages_resident, - required int pages_shared_now_private, - required int pages_swapped_out, - required int pages_dirtied, - required int ref_count, - required int shadow_depth, - required int external_pager, - required int share_mode, - required int is_submap, - required int behavior, - required int object_id, - required int user_wired_count, - required int flags, - required int pages_reusable, - required int object_id_full, - }) => $allocator() - ..ref.protection = protection - ..ref.max_protection = max_protection - ..ref.inheritance = inheritance - ..ref.offset = offset - ..ref.user_tag = user_tag - ..ref.pages_resident = pages_resident - ..ref.pages_shared_now_private = pages_shared_now_private - ..ref.pages_swapped_out = pages_swapped_out - ..ref.pages_dirtied = pages_dirtied - ..ref.ref_count = ref_count - ..ref.shadow_depth = shadow_depth - ..ref.external_pager = external_pager - ..ref.share_mode = share_mode - ..ref.is_submap = is_submap - ..ref.behavior = behavior - ..ref.object_id = object_id - ..ref.user_wired_count = user_wired_count - ..ref.flags = flags - ..ref.pages_reusable = pages_reusable - ..ref.object_id_full = object_id_full; -} - -typedef vm_region_submap_info_64_t = ffi.Pointer; -typedef vm_region_submap_info_data_64_t = vm_region_submap_info_64; -typedef vm_region_submap_info_data_t = vm_region_submap_info; -typedef vm_region_submap_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class vm_region_submap_short_info_64 extends ffi.Struct { - @vm_prot_t() - external int protection; - - @vm_prot_t() - external int max_protection; - - @vm_inherit_t() - external int inheritance; - - @memory_object_offset_t() - external int offset; - - @ffi.UnsignedInt() - external int user_tag; - - @ffi.UnsignedInt() - external int ref_count; - - @ffi.UnsignedShort() - external int shadow_depth; - - @ffi.UnsignedChar() - external int external_pager; - - @ffi.UnsignedChar() - external int share_mode; - - @boolean_t() - external int is_submap; - - @vm_behavior_t() - external int behavior; - - @vm32_object_id_t() - external int object_id; - - @ffi.UnsignedShort() - external int user_wired_count; - - @ffi.UnsignedShort() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int max_protection, - required int inheritance, - required int offset, - required int user_tag, - required int ref_count, - required int shadow_depth, - required int external_pager, - required int share_mode, - required int is_submap, - required int behavior, - required int object_id, - required int user_wired_count, - required int flags, - }) => $allocator() - ..ref.protection = protection - ..ref.max_protection = max_protection - ..ref.inheritance = inheritance - ..ref.offset = offset - ..ref.user_tag = user_tag - ..ref.ref_count = ref_count - ..ref.shadow_depth = shadow_depth - ..ref.external_pager = external_pager - ..ref.share_mode = share_mode - ..ref.is_submap = is_submap - ..ref.behavior = behavior - ..ref.object_id = object_id - ..ref.user_wired_count = user_wired_count - ..ref.flags = flags; -} - -typedef vm_region_submap_short_info_64_t = - ffi.Pointer; -typedef vm_region_submap_short_info_data_64_t = vm_region_submap_short_info_64; - -final class vm_region_top_info extends ffi.Struct { - @ffi.UnsignedInt() - external int obj_id; - - @ffi.UnsignedInt() - external int ref_count; - - @ffi.UnsignedInt() - external int private_pages_resident; - - @ffi.UnsignedInt() - external int shared_pages_resident; - - @ffi.UnsignedChar() - external int share_mode; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int obj_id, - required int ref_count, - required int private_pages_resident, - required int shared_pages_resident, - required int share_mode, - }) => $allocator() - ..ref.obj_id = obj_id - ..ref.ref_count = ref_count - ..ref.private_pages_resident = private_pages_resident - ..ref.shared_pages_resident = shared_pages_resident - ..ref.share_mode = share_mode; -} - -typedef vm_region_top_info_data_t = vm_region_top_info; -typedef vm_region_top_info_t = ffi.Pointer; -typedef vm_size_t = ffi.UintPtr; -typedef Dartvm_size_t = int; - -final class vm_statistics extends ffi.Struct { - @natural_t() - external int free_count; - - @natural_t() - external int active_count; - - @natural_t() - external int inactive_count; - - @natural_t() - external int wire_count; - - @natural_t() - external int zero_fill_count; - - @natural_t() - external int reactivations; - - @natural_t() - external int pageins; - - @natural_t() - external int pageouts; - - @natural_t() - external int faults; - - @natural_t() - external int cow_faults; - - @natural_t() - external int lookups; - - @natural_t() - external int hits; - - @natural_t() - external int purgeable_count; - - @natural_t() - external int purges; - - @natural_t() - external int speculative_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int free_count, - required int active_count, - required int inactive_count, - required int wire_count, - required int zero_fill_count, - required int reactivations, - required int pageins, - required int pageouts, - required int faults, - required int cow_faults, - required int lookups, - required int hits, - required int purgeable_count, - required int purges, - required int speculative_count, - }) => $allocator() - ..ref.free_count = free_count - ..ref.active_count = active_count - ..ref.inactive_count = inactive_count - ..ref.wire_count = wire_count - ..ref.zero_fill_count = zero_fill_count - ..ref.reactivations = reactivations - ..ref.pageins = pageins - ..ref.pageouts = pageouts - ..ref.faults = faults - ..ref.cow_faults = cow_faults - ..ref.lookups = lookups - ..ref.hits = hits - ..ref.purgeable_count = purgeable_count - ..ref.purges = purges - ..ref.speculative_count = speculative_count; -} - -final class vm_statistics64 extends ffi.Struct { - @natural_t() - external int free_count; - - @natural_t() - external int active_count; - - @natural_t() - external int inactive_count; - - @natural_t() - external int wire_count; - - @ffi.Uint64() - external int zero_fill_count; - - @ffi.Uint64() - external int reactivations; - - @ffi.Uint64() - external int pageins; - - @ffi.Uint64() - external int pageouts; - - @ffi.Uint64() - external int faults; - - @ffi.Uint64() - external int cow_faults; - - @ffi.Uint64() - external int lookups; - - @ffi.Uint64() - external int hits; - - @ffi.Uint64() - external int purges; - - @natural_t() - external int purgeable_count; - - @natural_t() - external int speculative_count; - - @ffi.Uint64() - external int decompressions; - - @ffi.Uint64() - external int compressions; - - @ffi.Uint64() - external int swapins; - - @ffi.Uint64() - external int swapouts; - - @natural_t() - external int compressor_page_count; - - @natural_t() - external int throttled_count; - - @natural_t() - external int external_page_count; - - @natural_t() - external int internal_page_count; - - @ffi.Uint64() - external int total_uncompressed_pages_in_compressor; - - @ffi.Uint64() - external int swapped_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int free_count, - required int active_count, - required int inactive_count, - required int wire_count, - required int zero_fill_count, - required int reactivations, - required int pageins, - required int pageouts, - required int faults, - required int cow_faults, - required int lookups, - required int hits, - required int purges, - required int purgeable_count, - required int speculative_count, - required int decompressions, - required int compressions, - required int swapins, - required int swapouts, - required int compressor_page_count, - required int throttled_count, - required int external_page_count, - required int internal_page_count, - required int total_uncompressed_pages_in_compressor, - required int swapped_count, - }) => $allocator() - ..ref.free_count = free_count - ..ref.active_count = active_count - ..ref.inactive_count = inactive_count - ..ref.wire_count = wire_count - ..ref.zero_fill_count = zero_fill_count - ..ref.reactivations = reactivations - ..ref.pageins = pageins - ..ref.pageouts = pageouts - ..ref.faults = faults - ..ref.cow_faults = cow_faults - ..ref.lookups = lookups - ..ref.hits = hits - ..ref.purges = purges - ..ref.purgeable_count = purgeable_count - ..ref.speculative_count = speculative_count - ..ref.decompressions = decompressions - ..ref.compressions = compressions - ..ref.swapins = swapins - ..ref.swapouts = swapouts - ..ref.compressor_page_count = compressor_page_count - ..ref.throttled_count = throttled_count - ..ref.external_page_count = external_page_count - ..ref.internal_page_count = internal_page_count - ..ref.total_uncompressed_pages_in_compressor = - total_uncompressed_pages_in_compressor - ..ref.swapped_count = swapped_count; -} - -typedef vm_statistics64_data_t = vm_statistics64; -typedef vm_statistics64_t = ffi.Pointer; -typedef vm_statistics_data_t = vm_statistics; -typedef vm_statistics_t = ffi.Pointer; -typedef vm_sync_t = ffi.UnsignedInt; -typedef Dartvm_sync_t = int; -typedef vm_task_entry_t = mach_port_t; - -const int voiceNotFound = -244; - -typedef voidPtr = ffi.Pointer; - -const int volGoneErr = -124; - -const int volMountChangedBit = 14; - -const int volMountChangedMask = 16384; - -const int volMountExtendedFlagsBit = 7; - -const int volMountExtendedFlagsMask = 128; - -const int volMountFSReservedMask = 255; - -const int volMountInteractBit = 15; - -const int volMountInteractMask = 32768; - -const int volMountNoLoginMsgFlagBit = 0; - -const int volMountNoLoginMsgFlagMask = 1; - -const int volMountSysReservedMask = 65280; - -const int volOffLinErr = -53; - -const int volOnLinErr = -55; - -const int volVMBusyErr = -1311; - -final class voucher_mach_msg_state_s extends ffi.Opaque {} - -typedef voucher_mach_msg_state_t = ffi.Pointer; - -const int wPrErr = -44; - -const int wackBadFileErr = -2115; - -const int wackBadMetaDataErr = -2117; - -const int wackForkNotFoundErr = -2116; - -final class wait$1 extends ffi.Opaque {} - -const int weekOfYearField = 9; - -const int weekOfYearMask = 512; - -const int wfFileNotFound = -2021; - -@ffi.Packed(2) -final class wide extends ffi.Struct { - @UInt32() - external int lo; - - @SInt32() - external int hi; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lo, - required int hi, - }) => $allocator() - ..ref.lo = lo - ..ref.hi = hi; -} - -const int windowAppModalStateAlreadyExistsErr = -5617; - -const int windowAttributeImmutableErr = -5612; - -const int windowAttributesConflictErr = -5613; - -const int windowGroupInvalidErr = -5616; - -const int windowManagerInternalErr = -5614; - -const int windowNoAppModalStateErr = -5618; - -const int windowWrongStateErr = -5615; - -typedef wint_t = __darwin_wint_t; - -const int wrPermErr = -61; - -const int wrUnderrun = -74; - -const int wrgVolTypErr = -123; - -const int writErr = -20; - -@Deprecated('Deprecated') -const int writeReference = 0; - -const int writingPastEnd = -189; - -const int wrongApplicationPlatform = -875; - -@Deprecated('Deprecated') -final class x509_validity extends ffi.Struct { - external CSSM_X509_TIME notBefore; - - external CSSM_X509_TIME notAfter; -} - -typedef xpc_activity_handler_t = ffi.Pointer; -typedef Dartxpc_activity_handler_t = - objc.ObjCBlock; -typedef xpc_activity_state_t = ffi.Long; -typedef Dartxpc_activity_state_t = int; -typedef xpc_activity_t = xpc_object_t; -typedef xpc_array_applier_t = ffi.Pointer; -typedef Dartxpc_array_applier_t = - objc.ObjCBlock; -typedef xpc_connection_handler_t = - ffi.Pointer>; -typedef xpc_connection_handler_tFunction = - ffi.Void Function(xpc_connection_t connection); -typedef Dartxpc_connection_handler_tFunction = - void Function(Dartxpc_object_t connection); -typedef xpc_connection_t = xpc_object_t; -typedef xpc_dictionary_applier_t = ffi.Pointer; -typedef Dartxpc_dictionary_applier_t = - objc.ObjCBlock, objc.NSObject)>; -typedef xpc_endpoint_t = xpc_object_t; -typedef xpc_finalizer_t = - ffi.Pointer>; -typedef xpc_finalizer_tFunction = - ffi.Void Function(ffi.Pointer value); -typedef Dartxpc_finalizer_tFunction = - void Function(ffi.Pointer value); -typedef xpc_handler_t = ffi.Pointer; -typedef Dartxpc_handler_t = objc.ObjCBlock; - -sealed class xpc_listener_create_flags_t { - static const XPC_LISTENER_CREATE_NONE = 0; - static const XPC_LISTENER_CREATE_INACTIVE = 1; - static const XPC_LISTENER_CREATE_FORCE_MACH = 2; - static const XPC_LISTENER_CREATE_FORCE_XPCSERVICE = 4; -} - -typedef xpc_listener_incoming_session_handler_t = - ffi.Pointer; -typedef Dartxpc_listener_incoming_session_handler_t = - objc.ObjCBlock; -typedef xpc_listener_t = ffi.Pointer; -typedef Dartxpc_listener_t = objc.NSObject; -typedef xpc_object_t = ffi.Pointer; -typedef Dartxpc_object_t = objc.NSObject; -typedef xpc_peer_requirement_t = ffi.Pointer; -typedef Dartxpc_peer_requirement_t = objc.NSObject; -typedef xpc_rich_error_t = xpc_object_t; -typedef xpc_session_cancel_handler_t = ffi.Pointer; -typedef Dartxpc_session_cancel_handler_t = - objc.ObjCBlock; - -sealed class xpc_session_create_flags_t { - static const XPC_SESSION_CREATE_NONE = 0; - static const XPC_SESSION_CREATE_INACTIVE = 1; - static const XPC_SESSION_CREATE_MACH_PRIVILEGED = 2; -} - -typedef xpc_session_incoming_message_handler_t = - ffi.Pointer; -typedef Dartxpc_session_incoming_message_handler_t = - objc.ObjCBlock; -typedef xpc_session_reply_handler_t = ffi.Pointer; -typedef Dartxpc_session_reply_handler_t = - objc.ObjCBlock; -typedef xpc_session_t = ffi.Pointer; -typedef Dartxpc_session_t = objc.NSObject; -typedef xpc_type_t = ffi.Pointer<_xpc_type_s>; - -const int ydm = 5; - -const int yearField = 1; - -const int yearMask = 2; - -const int ymd = 2; - -const int zeroCycle = 1; - -final class zone_btrecord extends ffi.Struct { - @ffi.Uint32() - external int ref_count; - - @ffi.Uint32() - external int operation_type; - - @ffi.Array.multi([15]) - external ffi.Array bt; -} - -typedef zone_btrecord_array_t = ffi.Pointer; -typedef zone_btrecord_t = zone_btrecord; - -final class zone_info extends ffi.Struct { - @integer_t() - external int zi_count; - - @vm_size_t() - external int zi_cur_size; - - @vm_size_t() - external int zi_max_size; - - @vm_size_t() - external int zi_elem_size; - - @vm_size_t() - external int zi_alloc_size; - - @integer_t() - external int zi_pageable; - - @integer_t() - external int zi_sleepable; - - @integer_t() - external int zi_exhaustible; - - @integer_t() - external int zi_collectable; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int zi_count, - required int zi_cur_size, - required int zi_max_size, - required int zi_elem_size, - required int zi_alloc_size, - required int zi_pageable, - required int zi_sleepable, - required int zi_exhaustible, - required int zi_collectable, - }) => $allocator() - ..ref.zi_count = zi_count - ..ref.zi_cur_size = zi_cur_size - ..ref.zi_max_size = zi_max_size - ..ref.zi_elem_size = zi_elem_size - ..ref.zi_alloc_size = zi_alloc_size - ..ref.zi_pageable = zi_pageable - ..ref.zi_sleepable = zi_sleepable - ..ref.zi_exhaustible = zi_exhaustible - ..ref.zi_collectable = zi_collectable; -} - -typedef zone_info_array_t = ffi.Pointer; -typedef zone_info_t = zone_info; - -final class zone_name extends ffi.Struct { - @ffi.Array.multi([80]) - external ffi.Array zn_name; -} - -typedef zone_name_array_t = ffi.Pointer; -typedef zone_name_t = zone_name; +late final _sel_settings = objc.registerName("settings"); +late final _sel_stop = objc.registerName("stop"); +late final _sel_updateMeters = objc.registerName("updateMeters"); +late final _sel_url = objc.registerName("url"); +late final _sel_volume = objc.registerName("volume"); +typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart.m b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart.m deleted file mode 100644 index 21c93bc6c1..0000000000 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart.m +++ /dev/null @@ -1,4102 +0,0 @@ -#include -#import -#import -#import - -#if !__has_feature(objc_arc) -#error "This file must be compiled with ARC enabled" -#endif - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wundeclared-selector" - -typedef struct { - int64_t version; - void* (*newWaiter)(void); - void (*awaitWaiter)(void*); - void* (*currentIsolate)(void); - void (*enterIsolate)(void*); - void (*exitIsolate)(void); - int64_t (*getMainPortId)(void); - bool (*getCurrentThreadOwnsIsolate)(int64_t); - void (*invokeListenerPortBlock)(int64_t port, void*); - void (*invokeBlockingPortBlock)(int64_t port, void*, void*); -} DOBJC_Context; - -id objc_retainBlock(id); - -#define BLOCKING_BLOCK_IMPL(ctx, TYPE, SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ - assert(ctx->version >= 1); \ - void* targetIsolate = ctx->currentIsolate(); \ - int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ - __block __weak TYPE weakSelfBlock = nil; \ - TYPE strongSelfBlock = [SIG { \ - void* currentIsolate = ctx->currentIsolate(); \ - bool mayEnterIsolate = \ - currentIsolate == NULL && \ - ctx->getCurrentThreadOwnsIsolate != NULL && \ - ctx->getCurrentThreadOwnsIsolate(targetPort); \ - if (currentIsolate == targetIsolate || mayEnterIsolate) { \ - if (mayEnterIsolate) { \ - ctx->enterIsolate(targetIsolate); \ - } \ - INVOKE_DIRECT; \ - if (mayEnterIsolate) { \ - ctx->exitIsolate(); \ - } \ - } else { \ - void* waiter = ctx->newWaiter(); \ - TYPE selfRetain = [weakSelfBlock copy]; \ - INVOKE_LISTENER; \ - ctx->awaitWaiter(waiter); \ - (void)selfRetain; \ - } \ - } copy]; \ - weakSelfBlock = strongSelfBlock; \ - return strongSelfBlock; - - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_AVAudioPlayerDelegate(void) { return @protocol(AVAudioPlayerDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_AVAudioSessionDelegate(void) { return @protocol(AVAudioSessionDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_CTAdaptiveImageProviding(void) { return @protocol(CTAdaptiveImageProviding); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSCacheDelegate(void) { return @protocol(NSCacheDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSConnectionDelegate(void) { return @protocol(NSConnectionDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSDecimalNumberBehaviors(void) { return @protocol(NSDecimalNumberBehaviors); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSDiscardableContent(void) { return @protocol(NSDiscardableContent); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSExtensionRequestHandling(void) { return @protocol(NSExtensionRequestHandling); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSFileManagerDelegate(void) { return @protocol(NSFileManagerDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSFilePresenter(void) { return @protocol(NSFilePresenter); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSKeyedArchiverDelegate(void) { return @protocol(NSKeyedArchiverDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSKeyedUnarchiverDelegate(void) { return @protocol(NSKeyedUnarchiverDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSLocking(void) { return @protocol(NSLocking); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSMachPortDelegate(void) { return @protocol(NSMachPortDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSMetadataQueryDelegate(void) { return @protocol(NSMetadataQueryDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSNetServiceBrowserDelegate(void) { return @protocol(NSNetServiceBrowserDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSNetServiceDelegate(void) { return @protocol(NSNetServiceDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSProgressReporting(void) { return @protocol(NSProgressReporting); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSSpellServerDelegate(void) { return @protocol(NSSpellServerDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLAuthenticationChallengeSender(void) { return @protocol(NSURLAuthenticationChallengeSender); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLConnectionDataDelegate(void) { return @protocol(NSURLConnectionDataDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLConnectionDelegate(void) { return @protocol(NSURLConnectionDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLConnectionDownloadDelegate(void) { return @protocol(NSURLConnectionDownloadDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLDownloadDelegate(void) { return @protocol(NSURLDownloadDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLHandleClient(void) { return @protocol(NSURLHandleClient); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLProtocolClient(void) { return @protocol(NSURLProtocolClient); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLSessionDataDelegate(void) { return @protocol(NSURLSessionDataDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLSessionDelegate(void) { return @protocol(NSURLSessionDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLSessionDownloadDelegate(void) { return @protocol(NSURLSessionDownloadDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLSessionStreamDelegate(void) { return @protocol(NSURLSessionStreamDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLSessionTaskDelegate(void) { return @protocol(NSURLSessionTaskDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSURLSessionWebSocketDelegate(void) { return @protocol(NSURLSessionWebSocketDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSUserActivityDelegate(void) { return @protocol(NSUserActivityDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSUserNotificationCenterDelegate(void) { return @protocol(NSUserNotificationCenterDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSXMLParserDelegate(void) { return @protocol(NSXMLParserDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSXPCListenerDelegate(void) { return @protocol(NSXPCListenerDelegate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_NSXPCProxyCreating(void) { return @protocol(NSXPCProxyCreating); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_data(void) { return @protocol(OS_dispatch_data); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_group(void) { return @protocol(OS_dispatch_group); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_io(void) { return @protocol(OS_dispatch_io); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_object(void) { return @protocol(OS_dispatch_object); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_queue(void) { return @protocol(OS_dispatch_queue); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_queue_attr(void) { return @protocol(OS_dispatch_queue_attr); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_queue_concurrent(void) { return @protocol(OS_dispatch_queue_concurrent); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_queue_global(void) { return @protocol(OS_dispatch_queue_global); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_queue_main(void) { return @protocol(OS_dispatch_queue_main); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_queue_serial(void) { return @protocol(OS_dispatch_queue_serial); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_queue_serial_executor(void) { return @protocol(OS_dispatch_queue_serial_executor); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_semaphore(void) { return @protocol(OS_dispatch_semaphore); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_source(void) { return @protocol(OS_dispatch_source); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_dispatch_workloop(void) { return @protocol(OS_dispatch_workloop); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_os_workgroup_interval(void) { return @protocol(OS_os_workgroup_interval); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_os_workgroup_parallel(void) { return @protocol(OS_os_workgroup_parallel); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_sec_certificate(void) { return @protocol(OS_sec_certificate); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_sec_identity(void) { return @protocol(OS_sec_identity); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_sec_object(void) { return @protocol(OS_sec_object); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_sec_protocol_metadata(void) { return @protocol(OS_sec_protocol_metadata); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_sec_protocol_options(void) { return @protocol(OS_sec_protocol_options); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_sec_trust(void) { return @protocol(OS_sec_trust); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_xpc_listener(void) { return @protocol(OS_xpc_listener); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_xpc_object(void) { return @protocol(OS_xpc_object); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_xpc_peer_requirement(void) { return @protocol(OS_xpc_peer_requirement); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_OS_xpc_session(void) { return @protocol(OS_xpc_session); } - -typedef struct CGImage * (^_ProtocolTrampoline)(void * sel, struct CGSize arg1, double arg2, struct CGPoint * arg3, struct CGSize * arg4); -__attribute__((visibility("default"))) __attribute__((used)) -struct CGImage * _1uu024u_protocolTrampoline_1p89e63(id target, void * sel, struct CGSize arg1, double arg2, struct CGPoint * arg3, struct CGSize * arg4) { - return ((_ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -typedef id (^_ProtocolTrampoline_1)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -id _1uu024u_protocolTrampoline_1mbt9g9(id target, void * sel) { - return ((_ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef id (^_ProtocolTrampoline_2)(void * sel, id arg1, struct _NSRange arg2, id arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -id _1uu024u_protocolTrampoline_19u921t(id target, void * sel, id arg1, struct _NSRange arg2, id arg3, id arg4) { - return ((_ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -typedef id (^_ProtocolTrampoline_3)(void * sel, id arg1, id arg2, id arg3); -__attribute__((visibility("default"))) __attribute__((used)) -id _1uu024u_protocolTrampoline_1yw2rcr(id target, void * sel, id arg1, id arg2, id arg3) { - return ((_ProtocolTrampoline_3)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -typedef id (^_ProtocolTrampoline_4)(void * sel, id arg1, id arg2, unsigned long arg3, uint64_t arg4, id arg5, id arg6, long * arg7); -__attribute__((visibility("default"))) __attribute__((used)) -id _1uu024u_protocolTrampoline_1chy5b9(id target, void * sel, id arg1, id arg2, unsigned long arg3, uint64_t arg4, id arg5, id arg6, long * arg7) { - return ((_ProtocolTrampoline_4)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5, arg6, arg7); -} - -typedef id (^_ProtocolTrampoline_5)(void * sel, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -id _1uu024u_protocolTrampoline_zi5eed(id target, void * sel, id arg1, id arg2) { - return ((_ProtocolTrampoline_5)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -typedef id (^_ProtocolTrampoline_6)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -id _1uu024u_protocolTrampoline_xr62hr(id target, void * sel, id arg1) { - return ((_ProtocolTrampoline_6)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef id (^_ProtocolTrampoline_7)(void * sel, struct objc_selector * arg1, NSCalculationError arg2, id arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -id _1uu024u_protocolTrampoline_738w24(id target, void * sel, struct objc_selector * arg1, NSCalculationError arg2, id arg3, id arg4) { - return ((_ProtocolTrampoline_7)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -typedef struct _NSRange (^_ProtocolTrampoline_8)(void * sel, id arg1, id arg2, id arg3, id * arg4); -__attribute__((visibility("default"))) __attribute__((used)) -struct _NSRange _1uu024u_protocolTrampoline_xsqx6i(id target, void * sel, id arg1, id arg2, id arg3, id * arg4) { - return ((_ProtocolTrampoline_8)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -typedef struct _NSRange (^_ProtocolTrampoline_9)(void * sel, id arg1, id arg2, id arg3, long * arg4, BOOL arg5); -__attribute__((visibility("default"))) __attribute__((used)) -struct _NSRange _1uu024u_protocolTrampoline_1j6oadz(id target, void * sel, id arg1, id arg2, id arg3, long * arg4, BOOL arg5) { - return ((_ProtocolTrampoline_9)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5); -} - -typedef NSRoundingMode (^_ProtocolTrampoline_10)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -NSRoundingMode _1uu024u_protocolTrampoline_5cb1bj(id target, void * sel) { - return ((_ProtocolTrampoline_10)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef struct OpaquePMPageFormat * (^_ProtocolTrampoline_11)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -struct OpaquePMPageFormat * _1uu024u_protocolTrampoline_1pm5t72(id target, void * sel) { - return ((_ProtocolTrampoline_11)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef struct OpaquePMPrintSession * (^_ProtocolTrampoline_12)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -struct OpaquePMPrintSession * _1uu024u_protocolTrampoline_1ch2rph(id target, void * sel) { - return ((_ProtocolTrampoline_12)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef struct OpaquePMPrintSettings * (^_ProtocolTrampoline_13)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -struct OpaquePMPrintSettings * _1uu024u_protocolTrampoline_1cwrrqo(id target, void * sel) { - return ((_ProtocolTrampoline_13)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef struct OpaquePMPrinter * (^_ProtocolTrampoline_14)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -struct OpaquePMPrinter * _1uu024u_protocolTrampoline_h8xvuu(id target, void * sel) { - return ((_ProtocolTrampoline_14)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef BOOL (^_ProtocolTrampoline_15)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _1uu024u_protocolTrampoline_e3qsqz(id target, void * sel) { - return ((_ProtocolTrampoline_15)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef BOOL (^_ProtocolTrampoline_16)(void * sel, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _1uu024u_protocolTrampoline_2n06mv(id target, void * sel, id arg1, id arg2) { - return ((_ProtocolTrampoline_16)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -typedef BOOL (^_ProtocolTrampoline_17)(void * sel, id * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _1uu024u_protocolTrampoline_jp3gca(id target, void * sel, id * arg1) { - return ((_ProtocolTrampoline_17)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef BOOL (^_ProtocolTrampoline_18)(void * sel, id arg1, id arg2, id arg3); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _1uu024u_protocolTrampoline_jk8du5(id target, void * sel, id arg1, id arg2, id arg3) { - return ((_ProtocolTrampoline_18)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -typedef BOOL (^_ProtocolTrampoline_19)(void * sel, id arg1, id arg2, id arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _1uu024u_protocolTrampoline_1em3l8z(id target, void * sel, id arg1, id arg2, id arg3, id arg4) { - return ((_ProtocolTrampoline_19)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -typedef BOOL (^_ProtocolTrampoline_20)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _1uu024u_protocolTrampoline_3su7tt(id target, void * sel, id arg1) { - return ((_ProtocolTrampoline_20)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef short (^_ProtocolTrampoline_21)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -short _1uu024u_protocolTrampoline_p984hf(id target, void * sel) { - return ((_ProtocolTrampoline_21)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1pl9qdv : NSObject -@property (copy) id block; - -@end -@implementation _1uu024u_BlockArgs_1pl9qdv -@end - -typedef void (^_ListenerTrampoline)(void); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _1uu024u_wrapListenerBlock_1pl9qdv( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline weakSelfBlock = nil; - _ListenerTrampoline strongSelfBlock = [^void() { - @autoreleasepool { - _1uu024u_BlockArgs_1pl9qdv* args = [[_1uu024u_BlockArgs_1pl9qdv alloc] init]; - args.block = weakSelfBlock; - - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline)(void * waiter); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _1uu024u_wrapBlockingBlock_1pl9qdv(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(), { - @autoreleasepool { - _1uu024u_BlockArgs_1pl9qdv* args = [[_1uu024u_BlockArgs_1pl9qdv alloc] init]; - args.block = weakSelfBlock; - - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1pl9qdv* args = [[_1uu024u_BlockArgs_1pl9qdv alloc] init]; - args.block = weakSelfBlock; - - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_115kkcp : NSObject -@property (copy) id block; -@property unsigned char arg0; -@property unsigned long long arg1; -@property struct __CFError * arg2; -@end -@implementation _1uu024u_BlockArgs_115kkcp -@end - -typedef void (^_ListenerTrampoline_1)(unsigned char arg0, unsigned long long arg1, struct __CFError * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _1uu024u_wrapListenerBlock_115kkcp( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_1 weakSelfBlock = nil; - _ListenerTrampoline_1 strongSelfBlock = [^void(unsigned char arg0, unsigned long long arg1, struct __CFError * arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_115kkcp* args = [[_1uu024u_BlockArgs_115kkcp alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_1)(void * waiter, unsigned char arg0, unsigned long long arg1, struct __CFError * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _1uu024u_wrapBlockingBlock_115kkcp(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_1, ^void(unsigned char arg0, unsigned long long arg1, struct __CFError * arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_115kkcp* args = [[_1uu024u_BlockArgs_115kkcp alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_115kkcp* args = [[_1uu024u_BlockArgs_115kkcp alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_9fms3g : NSObject -@property (copy) id block; -@property struct __CFArray * arg0; -@end -@implementation _1uu024u_BlockArgs_9fms3g -@end - -typedef void (^_ListenerTrampoline_2)(struct __CFArray * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _1uu024u_wrapListenerBlock_9fms3g( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_2 weakSelfBlock = nil; - _ListenerTrampoline_2 strongSelfBlock = [^void(struct __CFArray * arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_9fms3g* args = [[_1uu024u_BlockArgs_9fms3g alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_2)(void * waiter, struct __CFArray * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _1uu024u_wrapBlockingBlock_9fms3g(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_2, ^void(struct __CFArray * arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_9fms3g* args = [[_1uu024u_BlockArgs_9fms3g alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_9fms3g* args = [[_1uu024u_BlockArgs_9fms3g alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_15ghdzk : NSObject -@property (copy) id block; -@property struct __CFArray * arg0; -@property struct __CFError * arg1; -@end -@implementation _1uu024u_BlockArgs_15ghdzk -@end - -typedef void (^_ListenerTrampoline_3)(struct __CFArray * arg0, struct __CFError * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_3 _1uu024u_wrapListenerBlock_15ghdzk( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_3 weakSelfBlock = nil; - _ListenerTrampoline_3 strongSelfBlock = [^void(struct __CFArray * arg0, struct __CFError * arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_15ghdzk* args = [[_1uu024u_BlockArgs_15ghdzk alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_3)(void * waiter, struct __CFArray * arg0, struct __CFError * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_3 _1uu024u_wrapBlockingBlock_15ghdzk(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_3, ^void(struct __CFArray * arg0, struct __CFError * arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_15ghdzk* args = [[_1uu024u_BlockArgs_15ghdzk alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_15ghdzk* args = [[_1uu024u_BlockArgs_15ghdzk alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1kwz7d1 : NSObject -@property (copy) id block; -@property struct __CFError * arg0; -@end -@implementation _1uu024u_BlockArgs_1kwz7d1 -@end - -typedef void (^_ListenerTrampoline_4)(struct __CFError * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_4 _1uu024u_wrapListenerBlock_1kwz7d1( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_4 weakSelfBlock = nil; - _ListenerTrampoline_4 strongSelfBlock = [^void(struct __CFError * arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_1kwz7d1* args = [[_1uu024u_BlockArgs_1kwz7d1 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_4)(void * waiter, struct __CFError * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_4 _1uu024u_wrapBlockingBlock_1kwz7d1(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_4, ^void(struct __CFError * arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_1kwz7d1* args = [[_1uu024u_BlockArgs_1kwz7d1 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1kwz7d1* args = [[_1uu024u_BlockArgs_1kwz7d1 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1yrznn1 : NSObject -@property (copy) id block; -@property struct __CFError * arg0; -@property CGContentInfo * arg1; -@property CGBitmapParameters * arg2; -@end -@implementation _1uu024u_BlockArgs_1yrznn1 -@end - -typedef void (^_ListenerTrampoline_5)(struct __CFError * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_5 _1uu024u_wrapListenerBlock_1yrznn1( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_5 weakSelfBlock = nil; - _ListenerTrampoline_5 strongSelfBlock = [^void(struct __CFError * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_1yrznn1* args = [[_1uu024u_BlockArgs_1yrznn1 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_5)(void * waiter, struct __CFError * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_5 _1uu024u_wrapBlockingBlock_1yrznn1(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_5, ^void(struct __CFError * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_1yrznn1* args = [[_1uu024u_BlockArgs_1yrznn1 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1yrznn1* args = [[_1uu024u_BlockArgs_1yrznn1 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_tg5tbv : NSObject -@property (copy) id block; -@property struct __CFRunLoopObserver * arg0; -@property CFRunLoopActivity arg1; -@end -@implementation _1uu024u_BlockArgs_tg5tbv -@end - -typedef void (^_ListenerTrampoline_6)(struct __CFRunLoopObserver * arg0, CFRunLoopActivity arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_6 _1uu024u_wrapListenerBlock_tg5tbv( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_6 weakSelfBlock = nil; - _ListenerTrampoline_6 strongSelfBlock = [^void(struct __CFRunLoopObserver * arg0, CFRunLoopActivity arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_tg5tbv* args = [[_1uu024u_BlockArgs_tg5tbv alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_6)(void * waiter, struct __CFRunLoopObserver * arg0, CFRunLoopActivity arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_6 _1uu024u_wrapBlockingBlock_tg5tbv(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_6, ^void(struct __CFRunLoopObserver * arg0, CFRunLoopActivity arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_tg5tbv* args = [[_1uu024u_BlockArgs_tg5tbv alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_tg5tbv* args = [[_1uu024u_BlockArgs_tg5tbv alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1dqvvol : NSObject -@property (copy) id block; -@property struct __CFRunLoopTimer * arg0; -@end -@implementation _1uu024u_BlockArgs_1dqvvol -@end - -typedef void (^_ListenerTrampoline_7)(struct __CFRunLoopTimer * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_7 _1uu024u_wrapListenerBlock_1dqvvol( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_7 weakSelfBlock = nil; - _ListenerTrampoline_7 strongSelfBlock = [^void(struct __CFRunLoopTimer * arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_1dqvvol* args = [[_1uu024u_BlockArgs_1dqvvol alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_7)(void * waiter, struct __CFRunLoopTimer * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_7 _1uu024u_wrapBlockingBlock_1dqvvol(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_7, ^void(struct __CFRunLoopTimer * arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_1dqvvol* args = [[_1uu024u_BlockArgs_1dqvvol alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1dqvvol* args = [[_1uu024u_BlockArgs_1dqvvol alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_b3tf6o : NSObject -@property (copy) id block; -@property void * arg0; -@property struct __CFError * arg1; -@property unsigned char arg2; -@end -@implementation _1uu024u_BlockArgs_b3tf6o -@end - -typedef void (^_ListenerTrampoline_8)(void * arg0, struct __CFError * arg1, unsigned char arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_8 _1uu024u_wrapListenerBlock_b3tf6o( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_8 weakSelfBlock = nil; - _ListenerTrampoline_8 strongSelfBlock = [^void(void * arg0, struct __CFError * arg1, unsigned char arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_b3tf6o* args = [[_1uu024u_BlockArgs_b3tf6o alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_8)(void * waiter, void * arg0, struct __CFError * arg1, unsigned char arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_8 _1uu024u_wrapBlockingBlock_b3tf6o(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_8, ^void(void * arg0, struct __CFError * arg1, unsigned char arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_b3tf6o* args = [[_1uu024u_BlockArgs_b3tf6o alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_b3tf6o* args = [[_1uu024u_BlockArgs_b3tf6o alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_du1izn : NSObject -@property (copy) id block; -@property CGDisplayStreamFrameStatus arg0; -@property uint64_t arg1; -@property struct __IOSurface * arg2; -@property struct CGDisplayStreamUpdate * arg3; -@end -@implementation _1uu024u_BlockArgs_du1izn -@end - -typedef void (^_ListenerTrampoline_9)(CGDisplayStreamFrameStatus arg0, uint64_t arg1, struct __IOSurface * arg2, struct CGDisplayStreamUpdate * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_9 _1uu024u_wrapListenerBlock_du1izn( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_9 weakSelfBlock = nil; - _ListenerTrampoline_9 strongSelfBlock = [^void(CGDisplayStreamFrameStatus arg0, uint64_t arg1, struct __IOSurface * arg2, struct CGDisplayStreamUpdate * arg3) { - @autoreleasepool { - _1uu024u_BlockArgs_du1izn* args = [[_1uu024u_BlockArgs_du1izn alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_9)(void * waiter, CGDisplayStreamFrameStatus arg0, uint64_t arg1, struct __IOSurface * arg2, struct CGDisplayStreamUpdate * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_9 _1uu024u_wrapBlockingBlock_du1izn(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_9, ^void(CGDisplayStreamFrameStatus arg0, uint64_t arg1, struct __IOSurface * arg2, struct CGDisplayStreamUpdate * arg3), { - @autoreleasepool { - _1uu024u_BlockArgs_du1izn* args = [[_1uu024u_BlockArgs_du1izn alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_du1izn* args = [[_1uu024u_BlockArgs_du1izn alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1ctgxtl : NSObject -@property (copy) id block; -@property struct CGPathElement * arg0; -@end -@implementation _1uu024u_BlockArgs_1ctgxtl -@end - -typedef void (^_ListenerTrampoline_10)(struct CGPathElement * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_10 _1uu024u_wrapListenerBlock_1ctgxtl( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_10 weakSelfBlock = nil; - _ListenerTrampoline_10 strongSelfBlock = [^void(struct CGPathElement * arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_1ctgxtl* args = [[_1uu024u_BlockArgs_1ctgxtl alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_10)(void * waiter, struct CGPathElement * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_10 _1uu024u_wrapBlockingBlock_1ctgxtl(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_10, ^void(struct CGPathElement * arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_1ctgxtl* args = [[_1uu024u_BlockArgs_1ctgxtl alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1ctgxtl* args = [[_1uu024u_BlockArgs_1ctgxtl alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_rdj45r : NSObject -@property (copy) id block; -@property struct CGRenderingBufferProvider * arg0; -@property CGContentInfo * arg1; -@property CGBitmapParameters * arg2; -@end -@implementation _1uu024u_BlockArgs_rdj45r -@end - -typedef void (^_ListenerTrampoline_11)(struct CGRenderingBufferProvider * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_11 _1uu024u_wrapListenerBlock_rdj45r( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_11 weakSelfBlock = nil; - _ListenerTrampoline_11 strongSelfBlock = [^void(struct CGRenderingBufferProvider * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_rdj45r* args = [[_1uu024u_BlockArgs_rdj45r alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_11)(void * waiter, struct CGRenderingBufferProvider * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_11 _1uu024u_wrapBlockingBlock_rdj45r(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_11, ^void(struct CGRenderingBufferProvider * arg0, CGContentInfo * arg1, CGBitmapParameters * arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_rdj45r* args = [[_1uu024u_BlockArgs_rdj45r alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_rdj45r* args = [[_1uu024u_BlockArgs_rdj45r alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_pfv6jd : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property (strong) id arg1; -@end -@implementation _1uu024u_BlockArgs_pfv6jd -@end - -typedef void (^_ListenerTrampoline_12)(id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_12 _1uu024u_wrapListenerBlock_pfv6jd( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_12 weakSelfBlock = nil; - _ListenerTrampoline_12 strongSelfBlock = [^void(id arg0, id arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_pfv6jd* args = [[_1uu024u_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_12)(void * waiter, id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_12 _1uu024u_wrapBlockingBlock_pfv6jd(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_12, ^void(id arg0, id arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_pfv6jd* args = [[_1uu024u_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_pfv6jd* args = [[_1uu024u_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_xtuoz7 : NSObject -@property (copy) id block; -@property (strong) id arg0; -@end -@implementation _1uu024u_BlockArgs_xtuoz7 -@end - -typedef void (^_ListenerTrampoline_13)(id arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_13 _1uu024u_wrapListenerBlock_xtuoz7( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_13 weakSelfBlock = nil; - _ListenerTrampoline_13 strongSelfBlock = [^void(id arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_xtuoz7* args = [[_1uu024u_BlockArgs_xtuoz7 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_13)(void * waiter, id arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_13 _1uu024u_wrapBlockingBlock_xtuoz7(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_13, ^void(id arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_xtuoz7* args = [[_1uu024u_BlockArgs_xtuoz7 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_xtuoz7* args = [[_1uu024u_BlockArgs_xtuoz7 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_10ssdng : NSObject -@property (copy) id block; -@property NSBackgroundActivityResult arg0; -@end -@implementation _1uu024u_BlockArgs_10ssdng -@end - -typedef void (^_ListenerTrampoline_14)(NSBackgroundActivityResult arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_14 _1uu024u_wrapListenerBlock_10ssdng( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_14 weakSelfBlock = nil; - _ListenerTrampoline_14 strongSelfBlock = [^void(NSBackgroundActivityResult arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_10ssdng* args = [[_1uu024u_BlockArgs_10ssdng alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_14)(void * waiter, NSBackgroundActivityResult arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_14 _1uu024u_wrapBlockingBlock_10ssdng(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_14, ^void(NSBackgroundActivityResult arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_10ssdng* args = [[_1uu024u_BlockArgs_10ssdng alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_10ssdng* args = [[_1uu024u_BlockArgs_10ssdng alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_r8gdi7 : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@end -@implementation _1uu024u_BlockArgs_r8gdi7 -@end - -typedef void (^_ListenerTrampoline_15)(id arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_15 _1uu024u_wrapListenerBlock_r8gdi7( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_15 weakSelfBlock = nil; - _ListenerTrampoline_15 strongSelfBlock = [^void(id arg0, id arg1, id arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_r8gdi7* args = [[_1uu024u_BlockArgs_r8gdi7 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_15)(void * waiter, id arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_15 _1uu024u_wrapBlockingBlock_r8gdi7(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_15, ^void(id arg0, id arg1, id arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_r8gdi7* args = [[_1uu024u_BlockArgs_r8gdi7 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_r8gdi7* args = [[_1uu024u_BlockArgs_r8gdi7 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1a22wz : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property struct _NSRange arg1; -@property BOOL * arg2; -@end -@implementation _1uu024u_BlockArgs_1a22wz -@end - -typedef void (^_ListenerTrampoline_16)(id arg0, struct _NSRange arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_16 _1uu024u_wrapListenerBlock_1a22wz( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_16 weakSelfBlock = nil; - _ListenerTrampoline_16 strongSelfBlock = [^void(id arg0, struct _NSRange arg1, BOOL * arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_1a22wz* args = [[_1uu024u_BlockArgs_1a22wz alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_16)(void * waiter, id arg0, struct _NSRange arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_16 _1uu024u_wrapBlockingBlock_1a22wz(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_16, ^void(id arg0, struct _NSRange arg1, BOOL * arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_1a22wz* args = [[_1uu024u_BlockArgs_1a22wz alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1a22wz* args = [[_1uu024u_BlockArgs_1a22wz alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1b3bb6a : NSObject -@property (copy) id block; -@property (copy) id arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@end -@implementation _1uu024u_BlockArgs_1b3bb6a -@end - -typedef void (^_ListenerTrampoline_17)(id arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_17 _1uu024u_wrapListenerBlock_1b3bb6a( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_17 weakSelfBlock = nil; - _ListenerTrampoline_17 strongSelfBlock = [^void(id arg0, id arg1, id arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_1b3bb6a* args = [[_1uu024u_BlockArgs_1b3bb6a alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_17)(void * waiter, id arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_17 _1uu024u_wrapBlockingBlock_1b3bb6a(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_17, ^void(id arg0, id arg1, id arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_1b3bb6a* args = [[_1uu024u_BlockArgs_1b3bb6a alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1b3bb6a* args = [[_1uu024u_BlockArgs_1b3bb6a alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_lmc3p5 : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property struct _NSRange arg1; -@property struct _NSRange arg2; -@property BOOL * arg3; -@end -@implementation _1uu024u_BlockArgs_lmc3p5 -@end - -typedef void (^_ListenerTrampoline_18)(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_18 _1uu024u_wrapListenerBlock_lmc3p5( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_18 weakSelfBlock = nil; - _ListenerTrampoline_18 strongSelfBlock = [^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3) { - @autoreleasepool { - _1uu024u_BlockArgs_lmc3p5* args = [[_1uu024u_BlockArgs_lmc3p5 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_18)(void * waiter, id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_18 _1uu024u_wrapBlockingBlock_lmc3p5(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_18, ^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3), { - @autoreleasepool { - _1uu024u_BlockArgs_lmc3p5* args = [[_1uu024u_BlockArgs_lmc3p5 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_lmc3p5* args = [[_1uu024u_BlockArgs_lmc3p5 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_6jvo9y : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property NSMatchingFlags arg1; -@property BOOL * arg2; -@end -@implementation _1uu024u_BlockArgs_6jvo9y -@end - -typedef void (^_ListenerTrampoline_19)(id arg0, NSMatchingFlags arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_19 _1uu024u_wrapListenerBlock_6jvo9y( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_19 weakSelfBlock = nil; - _ListenerTrampoline_19 strongSelfBlock = [^void(id arg0, NSMatchingFlags arg1, BOOL * arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_6jvo9y* args = [[_1uu024u_BlockArgs_6jvo9y alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_19)(void * waiter, id arg0, NSMatchingFlags arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_19 _1uu024u_wrapBlockingBlock_6jvo9y(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_19, ^void(id arg0, NSMatchingFlags arg1, BOOL * arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_6jvo9y* args = [[_1uu024u_BlockArgs_6jvo9y alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_6jvo9y* args = [[_1uu024u_BlockArgs_6jvo9y alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_n8yd09 : NSObject -@property (copy) id block; -@property NSURLSessionAuthChallengeDisposition arg0; -@property (strong) id arg1; -@end -@implementation _1uu024u_BlockArgs_n8yd09 -@end - -typedef void (^_ListenerTrampoline_20)(NSURLSessionAuthChallengeDisposition arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_20 _1uu024u_wrapListenerBlock_n8yd09( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_20 weakSelfBlock = nil; - _ListenerTrampoline_20 strongSelfBlock = [^void(NSURLSessionAuthChallengeDisposition arg0, id arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_n8yd09* args = [[_1uu024u_BlockArgs_n8yd09 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_20)(void * waiter, NSURLSessionAuthChallengeDisposition arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_20 _1uu024u_wrapBlockingBlock_n8yd09(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_20, ^void(NSURLSessionAuthChallengeDisposition arg0, id arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_n8yd09* args = [[_1uu024u_BlockArgs_n8yd09 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_n8yd09* args = [[_1uu024u_BlockArgs_n8yd09 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1otpo83 : NSObject -@property (copy) id block; -@property NSURLSessionDelayedRequestDisposition arg0; -@property (strong) id arg1; -@end -@implementation _1uu024u_BlockArgs_1otpo83 -@end - -typedef void (^_ListenerTrampoline_21)(NSURLSessionDelayedRequestDisposition arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_21 _1uu024u_wrapListenerBlock_1otpo83( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_21 weakSelfBlock = nil; - _ListenerTrampoline_21 strongSelfBlock = [^void(NSURLSessionDelayedRequestDisposition arg0, id arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_1otpo83* args = [[_1uu024u_BlockArgs_1otpo83 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_21)(void * waiter, NSURLSessionDelayedRequestDisposition arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_21 _1uu024u_wrapBlockingBlock_1otpo83(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_21, ^void(NSURLSessionDelayedRequestDisposition arg0, id arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_1otpo83* args = [[_1uu024u_BlockArgs_1otpo83 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1otpo83* args = [[_1uu024u_BlockArgs_1otpo83 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_16sve1d : NSObject -@property (copy) id block; -@property NSURLSessionResponseDisposition arg0; -@end -@implementation _1uu024u_BlockArgs_16sve1d -@end - -typedef void (^_ListenerTrampoline_22)(NSURLSessionResponseDisposition arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_22 _1uu024u_wrapListenerBlock_16sve1d( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_22 weakSelfBlock = nil; - _ListenerTrampoline_22 strongSelfBlock = [^void(NSURLSessionResponseDisposition arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_16sve1d* args = [[_1uu024u_BlockArgs_16sve1d alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_22)(void * waiter, NSURLSessionResponseDisposition arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_22 _1uu024u_wrapBlockingBlock_16sve1d(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_22, ^void(NSURLSessionResponseDisposition arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_16sve1d* args = [[_1uu024u_BlockArgs_16sve1d alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_16sve1d* args = [[_1uu024u_BlockArgs_16sve1d alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_l3f29g : NSObject -@property (copy) id block; -@property int arg0; -@property AuthorizationItemSet * arg1; -@end -@implementation _1uu024u_BlockArgs_l3f29g -@end - -typedef void (^_ListenerTrampoline_23)(int arg0, AuthorizationItemSet * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_23 _1uu024u_wrapListenerBlock_l3f29g( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_23 weakSelfBlock = nil; - _ListenerTrampoline_23 strongSelfBlock = [^void(int arg0, AuthorizationItemSet * arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_l3f29g* args = [[_1uu024u_BlockArgs_l3f29g alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_23)(void * waiter, int arg0, AuthorizationItemSet * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_23 _1uu024u_wrapBlockingBlock_l3f29g(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_23, ^void(int arg0, AuthorizationItemSet * arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_l3f29g* args = [[_1uu024u_BlockArgs_l3f29g alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_l3f29g* args = [[_1uu024u_BlockArgs_l3f29g alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1rz4y3 : NSObject -@property (copy) id block; -@property struct __SecKey * arg0; -@property struct __SecKey * arg1; -@property struct __CFError * arg2; -@end -@implementation _1uu024u_BlockArgs_1rz4y3 -@end - -typedef void (^_ListenerTrampoline_24)(struct __SecKey * arg0, struct __SecKey * arg1, struct __CFError * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_24 _1uu024u_wrapListenerBlock_1rz4y3( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_24 weakSelfBlock = nil; - _ListenerTrampoline_24 strongSelfBlock = [^void(struct __SecKey * arg0, struct __SecKey * arg1, struct __CFError * arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_1rz4y3* args = [[_1uu024u_BlockArgs_1rz4y3 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_24)(void * waiter, struct __SecKey * arg0, struct __SecKey * arg1, struct __CFError * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_24 _1uu024u_wrapBlockingBlock_1rz4y3(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_24, ^void(struct __SecKey * arg0, struct __SecKey * arg1, struct __CFError * arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_1rz4y3* args = [[_1uu024u_BlockArgs_1rz4y3 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1rz4y3* args = [[_1uu024u_BlockArgs_1rz4y3 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_gwxhxt : NSObject -@property (copy) id block; -@property struct __SecTrust * arg0; -@property SecTrustResultType arg1; -@end -@implementation _1uu024u_BlockArgs_gwxhxt -@end - -typedef void (^_ListenerTrampoline_25)(struct __SecTrust * arg0, SecTrustResultType arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_25 _1uu024u_wrapListenerBlock_gwxhxt( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_25 weakSelfBlock = nil; - _ListenerTrampoline_25 strongSelfBlock = [^void(struct __SecTrust * arg0, SecTrustResultType arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_gwxhxt* args = [[_1uu024u_BlockArgs_gwxhxt alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_25)(void * waiter, struct __SecTrust * arg0, SecTrustResultType arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_25 _1uu024u_wrapBlockingBlock_gwxhxt(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_25, ^void(struct __SecTrust * arg0, SecTrustResultType arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_gwxhxt* args = [[_1uu024u_BlockArgs_gwxhxt alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_gwxhxt* args = [[_1uu024u_BlockArgs_gwxhxt alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_k73ff5 : NSObject -@property (copy) id block; -@property struct __SecTrust * arg0; -@property BOOL arg1; -@property struct __CFError * arg2; -@end -@implementation _1uu024u_BlockArgs_k73ff5 -@end - -typedef void (^_ListenerTrampoline_26)(struct __SecTrust * arg0, BOOL arg1, struct __CFError * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_26 _1uu024u_wrapListenerBlock_k73ff5( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_26 weakSelfBlock = nil; - _ListenerTrampoline_26 strongSelfBlock = [^void(struct __SecTrust * arg0, BOOL arg1, struct __CFError * arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_k73ff5* args = [[_1uu024u_BlockArgs_k73ff5 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_26)(void * waiter, struct __SecTrust * arg0, BOOL arg1, struct __CFError * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_26 _1uu024u_wrapBlockingBlock_k73ff5(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_26, ^void(struct __SecTrust * arg0, BOOL arg1, struct __CFError * arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_k73ff5* args = [[_1uu024u_BlockArgs_k73ff5 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_k73ff5* args = [[_1uu024u_BlockArgs_k73ff5 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_15f11yh : NSObject -@property (copy) id block; -@property uint16_t arg0; -@end -@implementation _1uu024u_BlockArgs_15f11yh -@end - -typedef void (^_ListenerTrampoline_27)(uint16_t arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_27 _1uu024u_wrapListenerBlock_15f11yh( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_27 weakSelfBlock = nil; - _ListenerTrampoline_27 strongSelfBlock = [^void(uint16_t arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_15f11yh* args = [[_1uu024u_BlockArgs_15f11yh alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_27)(void * waiter, uint16_t arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_27 _1uu024u_wrapBlockingBlock_15f11yh(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_27, ^void(uint16_t arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_15f11yh* args = [[_1uu024u_BlockArgs_15f11yh alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_15f11yh* args = [[_1uu024u_BlockArgs_15f11yh alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1s56lr9 : NSObject -@property (copy) id block; -@property BOOL arg0; -@end -@implementation _1uu024u_BlockArgs_1s56lr9 -@end - -typedef void (^_ListenerTrampoline_28)(BOOL arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_28 _1uu024u_wrapListenerBlock_1s56lr9( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_28 weakSelfBlock = nil; - _ListenerTrampoline_28 strongSelfBlock = [^void(BOOL arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_1s56lr9* args = [[_1uu024u_BlockArgs_1s56lr9 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_28)(void * waiter, BOOL arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_28 _1uu024u_wrapBlockingBlock_1s56lr9(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_28, ^void(BOOL arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_1s56lr9* args = [[_1uu024u_BlockArgs_1s56lr9 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1s56lr9* args = [[_1uu024u_BlockArgs_1s56lr9 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_hk7n97 : NSObject -@property (copy) id block; -@property BOOL arg0; -@property (strong) id arg1; -@end -@implementation _1uu024u_BlockArgs_hk7n97 -@end - -typedef void (^_ListenerTrampoline_29)(BOOL arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_29 _1uu024u_wrapListenerBlock_hk7n97( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_29 weakSelfBlock = nil; - _ListenerTrampoline_29 strongSelfBlock = [^void(BOOL arg0, id arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_hk7n97* args = [[_1uu024u_BlockArgs_hk7n97 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_29)(void * waiter, BOOL arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_29 _1uu024u_wrapBlockingBlock_hk7n97(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_29, ^void(BOOL arg0, id arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_hk7n97* args = [[_1uu024u_BlockArgs_hk7n97 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_hk7n97* args = [[_1uu024u_BlockArgs_hk7n97 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_og5b6y : NSObject -@property (copy) id block; -@property BOOL arg0; -@property (strong) id arg1; -@property int arg2; -@end -@implementation _1uu024u_BlockArgs_og5b6y -@end - -typedef void (^_ListenerTrampoline_30)(BOOL arg0, id arg1, int arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_30 _1uu024u_wrapListenerBlock_og5b6y( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_30 weakSelfBlock = nil; - _ListenerTrampoline_30 strongSelfBlock = [^void(BOOL arg0, id arg1, int arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_og5b6y* args = [[_1uu024u_BlockArgs_og5b6y alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_30)(void * waiter, BOOL arg0, id arg1, int arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_30 _1uu024u_wrapBlockingBlock_og5b6y(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_30, ^void(BOOL arg0, id arg1, int arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_og5b6y* args = [[_1uu024u_BlockArgs_og5b6y alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_og5b6y* args = [[_1uu024u_BlockArgs_og5b6y alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_18kzm6a : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property int arg1; -@end -@implementation _1uu024u_BlockArgs_18kzm6a -@end - -typedef void (^_ListenerTrampoline_31)(id arg0, int arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_31 _1uu024u_wrapListenerBlock_18kzm6a( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_31 weakSelfBlock = nil; - _ListenerTrampoline_31 strongSelfBlock = [^void(id arg0, int arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_18kzm6a* args = [[_1uu024u_BlockArgs_18kzm6a alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_31)(void * waiter, id arg0, int arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_31 _1uu024u_wrapBlockingBlock_18kzm6a(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_31, ^void(id arg0, int arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_18kzm6a* args = [[_1uu024u_BlockArgs_18kzm6a alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_18kzm6a* args = [[_1uu024u_BlockArgs_18kzm6a alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_132rcs6 : NSObject -@property (copy) id block; -@property double arg0; -@property long arg1; -@property BOOL arg2; -@property BOOL * arg3; -@end -@implementation _1uu024u_BlockArgs_132rcs6 -@end - -typedef void (^_ListenerTrampoline_32)(double arg0, long arg1, BOOL arg2, BOOL * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_32 _1uu024u_wrapListenerBlock_132rcs6( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_32 weakSelfBlock = nil; - _ListenerTrampoline_32 strongSelfBlock = [^void(double arg0, long arg1, BOOL arg2, BOOL * arg3) { - @autoreleasepool { - _1uu024u_BlockArgs_132rcs6* args = [[_1uu024u_BlockArgs_132rcs6 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_32)(void * waiter, double arg0, long arg1, BOOL arg2, BOOL * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_32 _1uu024u_wrapBlockingBlock_132rcs6(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_32, ^void(double arg0, long arg1, BOOL arg2, BOOL * arg3), { - @autoreleasepool { - _1uu024u_BlockArgs_132rcs6* args = [[_1uu024u_BlockArgs_132rcs6 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_132rcs6* args = [[_1uu024u_BlockArgs_132rcs6 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_9o8504 : NSObject -@property (copy) id block; -@property int arg0; -@end -@implementation _1uu024u_BlockArgs_9o8504 -@end - -typedef void (^_ListenerTrampoline_33)(int arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_33 _1uu024u_wrapListenerBlock_9o8504( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_33 weakSelfBlock = nil; - _ListenerTrampoline_33 strongSelfBlock = [^void(int arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_9o8504* args = [[_1uu024u_BlockArgs_9o8504 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_33)(void * waiter, int arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_33 _1uu024u_wrapBlockingBlock_9o8504(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_33, ^void(int arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_9o8504* args = [[_1uu024u_BlockArgs_9o8504 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_9o8504* args = [[_1uu024u_BlockArgs_9o8504 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_6enxqz : NSObject -@property (copy) id block; -@property size_t arg0; -@end -@implementation _1uu024u_BlockArgs_6enxqz -@end - -typedef void (^_ListenerTrampoline_34)(size_t arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_34 _1uu024u_wrapListenerBlock_6enxqz( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_34 weakSelfBlock = nil; - _ListenerTrampoline_34 strongSelfBlock = [^void(size_t arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_6enxqz* args = [[_1uu024u_BlockArgs_6enxqz alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_34)(void * waiter, size_t arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_34 _1uu024u_wrapBlockingBlock_6enxqz(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_34, ^void(size_t arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_6enxqz* args = [[_1uu024u_BlockArgs_6enxqz alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_6enxqz* args = [[_1uu024u_BlockArgs_6enxqz alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_11t2oft : NSObject -@property (copy) id block; -@property size_t arg0; -@property struct CGImage * arg1; -@property BOOL * arg2; -@end -@implementation _1uu024u_BlockArgs_11t2oft -@end - -typedef void (^_ListenerTrampoline_35)(size_t arg0, struct CGImage * arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_35 _1uu024u_wrapListenerBlock_11t2oft( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_35 weakSelfBlock = nil; - _ListenerTrampoline_35 strongSelfBlock = [^void(size_t arg0, struct CGImage * arg1, BOOL * arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_11t2oft* args = [[_1uu024u_BlockArgs_11t2oft alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_35)(void * waiter, size_t arg0, struct CGImage * arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_35 _1uu024u_wrapBlockingBlock_11t2oft(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_35, ^void(size_t arg0, struct CGImage * arg1, BOOL * arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_11t2oft* args = [[_1uu024u_BlockArgs_11t2oft alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_11t2oft* args = [[_1uu024u_BlockArgs_11t2oft alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_ovsamd : NSObject -@property (copy) id block; -@property void * arg0; -@end -@implementation _1uu024u_BlockArgs_ovsamd -@end - -typedef void (^_ListenerTrampoline_36)(void * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_36 _1uu024u_wrapListenerBlock_ovsamd( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_36 weakSelfBlock = nil; - _ListenerTrampoline_36 strongSelfBlock = [^void(void * arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_ovsamd* args = [[_1uu024u_BlockArgs_ovsamd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_36)(void * waiter, void * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_36 _1uu024u_wrapBlockingBlock_ovsamd(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_36, ^void(void * arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_ovsamd* args = [[_1uu024u_BlockArgs_ovsamd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_ovsamd* args = [[_1uu024u_BlockArgs_ovsamd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_22)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_ovsamd(id target, void * sel) { - return ((_ProtocolTrampoline_22)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_f167m6 : NSObject -@property (copy) id block; -@property (strong) id arg0; -@end -@implementation _1uu024u_BlockArgs_f167m6 -@end - -typedef void (^_ListenerTrampoline_37)(id arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_37 _1uu024u_wrapListenerBlock_f167m6( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_37 weakSelfBlock = nil; - _ListenerTrampoline_37 strongSelfBlock = [^void(id arg0) { - @autoreleasepool { - _1uu024u_BlockArgs_f167m6* args = [[_1uu024u_BlockArgs_f167m6 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_37)(void * waiter, id arg0); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_37 _1uu024u_wrapBlockingBlock_f167m6(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_37, ^void(id arg0), { - @autoreleasepool { - _1uu024u_BlockArgs_f167m6* args = [[_1uu024u_BlockArgs_f167m6 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_f167m6* args = [[_1uu024u_BlockArgs_f167m6 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_fjrv01 : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@end -@implementation _1uu024u_BlockArgs_fjrv01 -@end - -typedef void (^_ListenerTrampoline_38)(void * arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_38 _1uu024u_wrapListenerBlock_fjrv01( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_38 weakSelfBlock = nil; - _ListenerTrampoline_38 strongSelfBlock = [^void(void * arg0, id arg1, id arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_fjrv01* args = [[_1uu024u_BlockArgs_fjrv01 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_38)(void * waiter, void * arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_38 _1uu024u_wrapBlockingBlock_fjrv01(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_38, ^void(void * arg0, id arg1, id arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_fjrv01* args = [[_1uu024u_BlockArgs_fjrv01 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_fjrv01* args = [[_1uu024u_BlockArgs_fjrv01 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_23)(void * sel, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_fjrv01(id target, void * sel, id arg1, id arg2) { - return ((_ProtocolTrampoline_23)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_zzthnb : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property BOOL arg2; -@end -@implementation _1uu024u_BlockArgs_zzthnb -@end - -typedef void (^_ListenerTrampoline_39)(void * arg0, id arg1, BOOL arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_39 _1uu024u_wrapListenerBlock_zzthnb( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_39 weakSelfBlock = nil; - _ListenerTrampoline_39 strongSelfBlock = [^void(void * arg0, id arg1, BOOL arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_zzthnb* args = [[_1uu024u_BlockArgs_zzthnb alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_39)(void * waiter, void * arg0, id arg1, BOOL arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_39 _1uu024u_wrapBlockingBlock_zzthnb(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_39, ^void(void * arg0, id arg1, BOOL arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_zzthnb* args = [[_1uu024u_BlockArgs_zzthnb alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_zzthnb* args = [[_1uu024u_BlockArgs_zzthnb alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_24)(void * sel, id arg1, BOOL arg2); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_zzthnb(id target, void * sel, id arg1, BOOL arg2) { - return ((_ProtocolTrampoline_24)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_18v1jvf : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@end -@implementation _1uu024u_BlockArgs_18v1jvf -@end - -typedef void (^_ListenerTrampoline_40)(void * arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_40 _1uu024u_wrapListenerBlock_18v1jvf( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_40 weakSelfBlock = nil; - _ListenerTrampoline_40 strongSelfBlock = [^void(void * arg0, id arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_18v1jvf* args = [[_1uu024u_BlockArgs_18v1jvf alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_40)(void * waiter, void * arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_40 _1uu024u_wrapBlockingBlock_18v1jvf(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_40, ^void(void * arg0, id arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_18v1jvf* args = [[_1uu024u_BlockArgs_18v1jvf alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_18v1jvf* args = [[_1uu024u_BlockArgs_18v1jvf alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_25)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_18v1jvf(id target, void * sel, id arg1) { - return ((_ProtocolTrampoline_25)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1tz5yf : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property (strong) id arg3; -@end -@implementation _1uu024u_BlockArgs_1tz5yf -@end - -typedef void (^_ListenerTrampoline_41)(void * arg0, id arg1, id arg2, id arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_41 _1uu024u_wrapListenerBlock_1tz5yf( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_41 weakSelfBlock = nil; - _ListenerTrampoline_41 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3) { - @autoreleasepool { - _1uu024u_BlockArgs_1tz5yf* args = [[_1uu024u_BlockArgs_1tz5yf alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_41)(void * waiter, void * arg0, id arg1, id arg2, id arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_41 _1uu024u_wrapBlockingBlock_1tz5yf(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_41, ^void(void * arg0, id arg1, id arg2, id arg3), { - @autoreleasepool { - _1uu024u_BlockArgs_1tz5yf* args = [[_1uu024u_BlockArgs_1tz5yf alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1tz5yf* args = [[_1uu024u_BlockArgs_1tz5yf alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_26)(void * sel, id arg1, id arg2, id arg3); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_1tz5yf(id target, void * sel, id arg1, id arg2, id arg3) { - return ((_ProtocolTrampoline_26)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_8acz2h : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property BOOL arg3; -@end -@implementation _1uu024u_BlockArgs_8acz2h -@end - -typedef void (^_ListenerTrampoline_42)(void * arg0, id arg1, id arg2, BOOL arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_42 _1uu024u_wrapListenerBlock_8acz2h( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_42 weakSelfBlock = nil; - _ListenerTrampoline_42 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, BOOL arg3) { - @autoreleasepool { - _1uu024u_BlockArgs_8acz2h* args = [[_1uu024u_BlockArgs_8acz2h alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_42)(void * waiter, void * arg0, id arg1, id arg2, BOOL arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_42 _1uu024u_wrapBlockingBlock_8acz2h(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_42, ^void(void * arg0, id arg1, id arg2, BOOL arg3), { - @autoreleasepool { - _1uu024u_BlockArgs_8acz2h* args = [[_1uu024u_BlockArgs_8acz2h alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_8acz2h* args = [[_1uu024u_BlockArgs_8acz2h alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_27)(void * sel, id arg1, id arg2, BOOL arg3); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_8acz2h(id target, void * sel, id arg1, id arg2, BOOL arg3) { - return ((_ProtocolTrampoline_27)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1cn988u : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property unsigned long arg2; -@property (strong) id arg3; -@property (strong) id arg4; -@property (strong) id arg5; -@end -@implementation _1uu024u_BlockArgs_1cn988u -@end - -typedef void (^_ListenerTrampoline_43)(void * arg0, id arg1, unsigned long arg2, id arg3, id arg4, id arg5); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_43 _1uu024u_wrapListenerBlock_1cn988u( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_43 weakSelfBlock = nil; - _ListenerTrampoline_43 strongSelfBlock = [^void(void * arg0, id arg1, unsigned long arg2, id arg3, id arg4, id arg5) { - @autoreleasepool { - _1uu024u_BlockArgs_1cn988u* args = [[_1uu024u_BlockArgs_1cn988u alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_43)(void * waiter, void * arg0, id arg1, unsigned long arg2, id arg3, id arg4, id arg5); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_43 _1uu024u_wrapBlockingBlock_1cn988u(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_43, ^void(void * arg0, id arg1, unsigned long arg2, id arg3, id arg4, id arg5), { - @autoreleasepool { - _1uu024u_BlockArgs_1cn988u* args = [[_1uu024u_BlockArgs_1cn988u alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1cn988u* args = [[_1uu024u_BlockArgs_1cn988u alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_28)(void * sel, id arg1, unsigned long arg2, id arg3, id arg4, id arg5); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_1cn988u(id target, void * sel, id arg1, unsigned long arg2, id arg3, id arg4, id arg5) { - return ((_ProtocolTrampoline_28)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_zuf90e : NSObject -@property (copy) id block; -@property void * arg0; -@property unsigned long arg1; -@end -@implementation _1uu024u_BlockArgs_zuf90e -@end - -typedef void (^_ListenerTrampoline_44)(void * arg0, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_44 _1uu024u_wrapListenerBlock_zuf90e( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_44 weakSelfBlock = nil; - _ListenerTrampoline_44 strongSelfBlock = [^void(void * arg0, unsigned long arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_zuf90e* args = [[_1uu024u_BlockArgs_zuf90e alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_44)(void * waiter, void * arg0, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_44 _1uu024u_wrapBlockingBlock_zuf90e(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_44, ^void(void * arg0, unsigned long arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_zuf90e* args = [[_1uu024u_BlockArgs_zuf90e alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_zuf90e* args = [[_1uu024u_BlockArgs_zuf90e alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_29)(void * sel, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_zuf90e(id target, void * sel, unsigned long arg1) { - return ((_ProtocolTrampoline_29)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_15e9dqx : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property long arg2; -@property long arg3; -@property long arg4; -@end -@implementation _1uu024u_BlockArgs_15e9dqx -@end - -typedef void (^_ListenerTrampoline_45)(void * arg0, id arg1, long arg2, long arg3, long arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_45 _1uu024u_wrapListenerBlock_15e9dqx( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_45 weakSelfBlock = nil; - _ListenerTrampoline_45 strongSelfBlock = [^void(void * arg0, id arg1, long arg2, long arg3, long arg4) { - @autoreleasepool { - _1uu024u_BlockArgs_15e9dqx* args = [[_1uu024u_BlockArgs_15e9dqx alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_45)(void * waiter, void * arg0, id arg1, long arg2, long arg3, long arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_45 _1uu024u_wrapBlockingBlock_15e9dqx(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_45, ^void(void * arg0, id arg1, long arg2, long arg3, long arg4), { - @autoreleasepool { - _1uu024u_BlockArgs_15e9dqx* args = [[_1uu024u_BlockArgs_15e9dqx alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_15e9dqx* args = [[_1uu024u_BlockArgs_15e9dqx alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_30)(void * sel, id arg1, long arg2, long arg3, long arg4); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_15e9dqx(id target, void * sel, id arg1, long arg2, long arg3, long arg4) { - return ((_ProtocolTrampoline_30)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_9crvvv : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property long long arg2; -@property long long arg3; -@end -@implementation _1uu024u_BlockArgs_9crvvv -@end - -typedef void (^_ListenerTrampoline_46)(void * arg0, id arg1, long long arg2, long long arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_46 _1uu024u_wrapListenerBlock_9crvvv( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_46 weakSelfBlock = nil; - _ListenerTrampoline_46 strongSelfBlock = [^void(void * arg0, id arg1, long long arg2, long long arg3) { - @autoreleasepool { - _1uu024u_BlockArgs_9crvvv* args = [[_1uu024u_BlockArgs_9crvvv alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_46)(void * waiter, void * arg0, id arg1, long long arg2, long long arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_46 _1uu024u_wrapBlockingBlock_9crvvv(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_46, ^void(void * arg0, id arg1, long long arg2, long long arg3), { - @autoreleasepool { - _1uu024u_BlockArgs_9crvvv* args = [[_1uu024u_BlockArgs_9crvvv alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_9crvvv* args = [[_1uu024u_BlockArgs_9crvvv alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_31)(void * sel, id arg1, long long arg2, long long arg3); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_9crvvv(id target, void * sel, id arg1, long long arg2, long long arg3) { - return ((_ProtocolTrampoline_31)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1qf1qkl : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property long long arg2; -@property long long arg3; -@property long long arg4; -@end -@implementation _1uu024u_BlockArgs_1qf1qkl -@end - -typedef void (^_ListenerTrampoline_47)(void * arg0, id arg1, long long arg2, long long arg3, long long arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_47 _1uu024u_wrapListenerBlock_1qf1qkl( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_47 weakSelfBlock = nil; - _ListenerTrampoline_47 strongSelfBlock = [^void(void * arg0, id arg1, long long arg2, long long arg3, long long arg4) { - @autoreleasepool { - _1uu024u_BlockArgs_1qf1qkl* args = [[_1uu024u_BlockArgs_1qf1qkl alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_47)(void * waiter, void * arg0, id arg1, long long arg2, long long arg3, long long arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_47 _1uu024u_wrapBlockingBlock_1qf1qkl(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_47, ^void(void * arg0, id arg1, long long arg2, long long arg3, long long arg4), { - @autoreleasepool { - _1uu024u_BlockArgs_1qf1qkl* args = [[_1uu024u_BlockArgs_1qf1qkl alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1qf1qkl* args = [[_1uu024u_BlockArgs_1qf1qkl alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_32)(void * sel, id arg1, long long arg2, long long arg3, long long arg4); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_1qf1qkl(id target, void * sel, id arg1, long long arg2, long long arg3, long long arg4) { - return ((_ProtocolTrampoline_32)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_wy9lus : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property unsigned long arg2; -@end -@implementation _1uu024u_BlockArgs_wy9lus -@end - -typedef void (^_ListenerTrampoline_48)(void * arg0, id arg1, unsigned long arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_48 _1uu024u_wrapListenerBlock_wy9lus( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_48 weakSelfBlock = nil; - _ListenerTrampoline_48 strongSelfBlock = [^void(void * arg0, id arg1, unsigned long arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_wy9lus* args = [[_1uu024u_BlockArgs_wy9lus alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_48)(void * waiter, void * arg0, id arg1, unsigned long arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_48 _1uu024u_wrapBlockingBlock_wy9lus(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_48, ^void(void * arg0, id arg1, unsigned long arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_wy9lus* args = [[_1uu024u_BlockArgs_wy9lus alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_wy9lus* args = [[_1uu024u_BlockArgs_wy9lus alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_33)(void * sel, id arg1, unsigned long arg2); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_wy9lus(id target, void * sel, id arg1, unsigned long arg2) { - return ((_ProtocolTrampoline_33)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_34xzuf : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property long long arg3; -@end -@implementation _1uu024u_BlockArgs_34xzuf -@end - -typedef void (^_ListenerTrampoline_49)(void * arg0, id arg1, id arg2, long long arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_49 _1uu024u_wrapListenerBlock_34xzuf( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_49 weakSelfBlock = nil; - _ListenerTrampoline_49 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, long long arg3) { - @autoreleasepool { - _1uu024u_BlockArgs_34xzuf* args = [[_1uu024u_BlockArgs_34xzuf alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_49)(void * waiter, void * arg0, id arg1, id arg2, long long arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_49 _1uu024u_wrapBlockingBlock_34xzuf(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_49, ^void(void * arg0, id arg1, id arg2, long long arg3), { - @autoreleasepool { - _1uu024u_BlockArgs_34xzuf* args = [[_1uu024u_BlockArgs_34xzuf alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_34xzuf* args = [[_1uu024u_BlockArgs_34xzuf alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_34)(void * sel, id arg1, id arg2, long long arg3); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_34xzuf(id target, void * sel, id arg1, id arg2, long long arg3) { - return ((_ProtocolTrampoline_34)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1j7coyk : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property NSURLCacheStoragePolicy arg3; -@end -@implementation _1uu024u_BlockArgs_1j7coyk -@end - -typedef void (^_ListenerTrampoline_50)(void * arg0, id arg1, id arg2, NSURLCacheStoragePolicy arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_50 _1uu024u_wrapListenerBlock_1j7coyk( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_50 weakSelfBlock = nil; - _ListenerTrampoline_50 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, NSURLCacheStoragePolicy arg3) { - @autoreleasepool { - _1uu024u_BlockArgs_1j7coyk* args = [[_1uu024u_BlockArgs_1j7coyk alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_50)(void * waiter, void * arg0, id arg1, id arg2, NSURLCacheStoragePolicy arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_50 _1uu024u_wrapBlockingBlock_1j7coyk(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_50, ^void(void * arg0, id arg1, id arg2, NSURLCacheStoragePolicy arg3), { - @autoreleasepool { - _1uu024u_BlockArgs_1j7coyk* args = [[_1uu024u_BlockArgs_1j7coyk alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1j7coyk* args = [[_1uu024u_BlockArgs_1j7coyk alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_35)(void * sel, id arg1, id arg2, NSURLCacheStoragePolicy arg3); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_1j7coyk(id target, void * sel, id arg1, id arg2, NSURLCacheStoragePolicy arg3) { - return ((_ProtocolTrampoline_35)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_bklti2 : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property (copy) id arg3; -@end -@implementation _1uu024u_BlockArgs_bklti2 -@end - -typedef void (^_ListenerTrampoline_51)(void * arg0, id arg1, id arg2, id arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_51 _1uu024u_wrapListenerBlock_bklti2( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_51 weakSelfBlock = nil; - _ListenerTrampoline_51 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3) { - @autoreleasepool { - _1uu024u_BlockArgs_bklti2* args = [[_1uu024u_BlockArgs_bklti2 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_51)(void * waiter, void * arg0, id arg1, id arg2, id arg3); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_51 _1uu024u_wrapBlockingBlock_bklti2(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_51, ^void(void * arg0, id arg1, id arg2, id arg3), { - @autoreleasepool { - _1uu024u_BlockArgs_bklti2* args = [[_1uu024u_BlockArgs_bklti2 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_bklti2* args = [[_1uu024u_BlockArgs_bklti2 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_36)(void * sel, id arg1, id arg2, id arg3); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_bklti2(id target, void * sel, id arg1, id arg2, id arg3) { - return ((_ProtocolTrampoline_36)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_xx612k : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property (strong) id arg3; -@property (copy) id arg4; -@end -@implementation _1uu024u_BlockArgs_xx612k -@end - -typedef void (^_ListenerTrampoline_52)(void * arg0, id arg1, id arg2, id arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_52 _1uu024u_wrapListenerBlock_xx612k( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_52 weakSelfBlock = nil; - _ListenerTrampoline_52 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3, id arg4) { - @autoreleasepool { - _1uu024u_BlockArgs_xx612k* args = [[_1uu024u_BlockArgs_xx612k alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_52)(void * waiter, void * arg0, id arg1, id arg2, id arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_52 _1uu024u_wrapBlockingBlock_xx612k(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_52, ^void(void * arg0, id arg1, id arg2, id arg3, id arg4), { - @autoreleasepool { - _1uu024u_BlockArgs_xx612k* args = [[_1uu024u_BlockArgs_xx612k alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_xx612k* args = [[_1uu024u_BlockArgs_xx612k alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_37)(void * sel, id arg1, id arg2, id arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_xx612k(id target, void * sel, id arg1, id arg2, id arg3, id arg4) { - return ((_ProtocolTrampoline_37)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_ly2579 : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property int64_t arg3; -@property int64_t arg4; -@end -@implementation _1uu024u_BlockArgs_ly2579 -@end - -typedef void (^_ListenerTrampoline_53)(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_53 _1uu024u_wrapListenerBlock_ly2579( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_53 weakSelfBlock = nil; - _ListenerTrampoline_53 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4) { - @autoreleasepool { - _1uu024u_BlockArgs_ly2579* args = [[_1uu024u_BlockArgs_ly2579 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_53)(void * waiter, void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_53 _1uu024u_wrapBlockingBlock_ly2579(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_53, ^void(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4), { - @autoreleasepool { - _1uu024u_BlockArgs_ly2579* args = [[_1uu024u_BlockArgs_ly2579 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_ly2579* args = [[_1uu024u_BlockArgs_ly2579 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_38)(void * sel, id arg1, id arg2, int64_t arg3, int64_t arg4); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_ly2579(id target, void * sel, id arg1, id arg2, int64_t arg3, int64_t arg4) { - return ((_ProtocolTrampoline_38)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_h68abb : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property int64_t arg3; -@property int64_t arg4; -@property int64_t arg5; -@end -@implementation _1uu024u_BlockArgs_h68abb -@end - -typedef void (^_ListenerTrampoline_54)(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_54 _1uu024u_wrapListenerBlock_h68abb( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_54 weakSelfBlock = nil; - _ListenerTrampoline_54 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5) { - @autoreleasepool { - _1uu024u_BlockArgs_h68abb* args = [[_1uu024u_BlockArgs_h68abb alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_54)(void * waiter, void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_54 _1uu024u_wrapBlockingBlock_h68abb(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_54, ^void(void * arg0, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5), { - @autoreleasepool { - _1uu024u_BlockArgs_h68abb* args = [[_1uu024u_BlockArgs_h68abb alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_h68abb* args = [[_1uu024u_BlockArgs_h68abb alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_39)(void * sel, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_h68abb(id target, void * sel, id arg1, id arg2, int64_t arg3, int64_t arg4, int64_t arg5) { - return ((_ProtocolTrampoline_39)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_8jfq1p : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property (strong) id arg3; -@property (strong) id arg4; -@end -@implementation _1uu024u_BlockArgs_8jfq1p -@end - -typedef void (^_ListenerTrampoline_55)(void * arg0, id arg1, id arg2, id arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_55 _1uu024u_wrapListenerBlock_8jfq1p( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_55 weakSelfBlock = nil; - _ListenerTrampoline_55 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3, id arg4) { - @autoreleasepool { - _1uu024u_BlockArgs_8jfq1p* args = [[_1uu024u_BlockArgs_8jfq1p alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_55)(void * waiter, void * arg0, id arg1, id arg2, id arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_55 _1uu024u_wrapBlockingBlock_8jfq1p(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_55, ^void(void * arg0, id arg1, id arg2, id arg3, id arg4), { - @autoreleasepool { - _1uu024u_BlockArgs_8jfq1p* args = [[_1uu024u_BlockArgs_8jfq1p alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_8jfq1p* args = [[_1uu024u_BlockArgs_8jfq1p alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_40)(void * sel, id arg1, id arg2, id arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_8jfq1p(id target, void * sel, id arg1, id arg2, id arg3, id arg4) { - return ((_ProtocolTrampoline_40)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_jyim80 : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property int64_t arg3; -@property (copy) id arg4; -@end -@implementation _1uu024u_BlockArgs_jyim80 -@end - -typedef void (^_ListenerTrampoline_56)(void * arg0, id arg1, id arg2, int64_t arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_56 _1uu024u_wrapListenerBlock_jyim80( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_56 weakSelfBlock = nil; - _ListenerTrampoline_56 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, int64_t arg3, id arg4) { - @autoreleasepool { - _1uu024u_BlockArgs_jyim80* args = [[_1uu024u_BlockArgs_jyim80 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_56)(void * waiter, void * arg0, id arg1, id arg2, int64_t arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_56 _1uu024u_wrapBlockingBlock_jyim80(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_56, ^void(void * arg0, id arg1, id arg2, int64_t arg3, id arg4), { - @autoreleasepool { - _1uu024u_BlockArgs_jyim80* args = [[_1uu024u_BlockArgs_jyim80 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_jyim80* args = [[_1uu024u_BlockArgs_jyim80 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_41)(void * sel, id arg1, id arg2, int64_t arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_jyim80(id target, void * sel, id arg1, id arg2, int64_t arg3, id arg4) { - return ((_ProtocolTrampoline_41)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_l2g8ke : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property (strong) id arg3; -@property (strong) id arg4; -@property (copy) id arg5; -@end -@implementation _1uu024u_BlockArgs_l2g8ke -@end - -typedef void (^_ListenerTrampoline_57)(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_57 _1uu024u_wrapListenerBlock_l2g8ke( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_57 weakSelfBlock = nil; - _ListenerTrampoline_57 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5) { - @autoreleasepool { - _1uu024u_BlockArgs_l2g8ke* args = [[_1uu024u_BlockArgs_l2g8ke alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_57)(void * waiter, void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_57 _1uu024u_wrapBlockingBlock_l2g8ke(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_57, ^void(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5), { - @autoreleasepool { - _1uu024u_BlockArgs_l2g8ke* args = [[_1uu024u_BlockArgs_l2g8ke alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_l2g8ke* args = [[_1uu024u_BlockArgs_l2g8ke alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_42)(void * sel, id arg1, id arg2, id arg3, id arg4, id arg5); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_l2g8ke(id target, void * sel, id arg1, id arg2, id arg3, id arg4, id arg5) { - return ((_ProtocolTrampoline_42)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1lx650f : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property NSURLSessionWebSocketCloseCode arg3; -@property (strong) id arg4; -@end -@implementation _1uu024u_BlockArgs_1lx650f -@end - -typedef void (^_ListenerTrampoline_58)(void * arg0, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_58 _1uu024u_wrapListenerBlock_1lx650f( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_58 weakSelfBlock = nil; - _ListenerTrampoline_58 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4) { - @autoreleasepool { - _1uu024u_BlockArgs_1lx650f* args = [[_1uu024u_BlockArgs_1lx650f alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_58)(void * waiter, void * arg0, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_58 _1uu024u_wrapBlockingBlock_1lx650f(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_58, ^void(void * arg0, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4), { - @autoreleasepool { - _1uu024u_BlockArgs_1lx650f* args = [[_1uu024u_BlockArgs_1lx650f alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1lx650f* args = [[_1uu024u_BlockArgs_1lx650f alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_43)(void * sel, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_1lx650f(id target, void * sel, id arg1, id arg2, NSURLSessionWebSocketCloseCode arg3, id arg4) { - return ((_ProtocolTrampoline_43)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_jk1ljc : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (copy) id arg2; -@end -@implementation _1uu024u_BlockArgs_jk1ljc -@end - -typedef void (^_ListenerTrampoline_59)(void * arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_59 _1uu024u_wrapListenerBlock_jk1ljc( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_59 weakSelfBlock = nil; - _ListenerTrampoline_59 strongSelfBlock = [^void(void * arg0, id arg1, id arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_jk1ljc* args = [[_1uu024u_BlockArgs_jk1ljc alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_59)(void * waiter, void * arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_59 _1uu024u_wrapBlockingBlock_jk1ljc(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_59, ^void(void * arg0, id arg1, id arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_jk1ljc* args = [[_1uu024u_BlockArgs_jk1ljc alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_jk1ljc* args = [[_1uu024u_BlockArgs_jk1ljc alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_44)(void * sel, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_jk1ljc(id target, void * sel, id arg1, id arg2) { - return ((_ProtocolTrampoline_44)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_m09tr7 : NSObject -@property (copy) id block; -@property void * arg0; -@property (strong) id arg1; -@property (strong) id arg2; -@property (strong) id arg3; -@property (strong) id arg4; -@property (strong) id arg5; -@end -@implementation _1uu024u_BlockArgs_m09tr7 -@end - -typedef void (^_ListenerTrampoline_60)(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_60 _1uu024u_wrapListenerBlock_m09tr7( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_60 weakSelfBlock = nil; - _ListenerTrampoline_60 strongSelfBlock = [^void(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5) { - @autoreleasepool { - _1uu024u_BlockArgs_m09tr7* args = [[_1uu024u_BlockArgs_m09tr7 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_60)(void * waiter, void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_60 _1uu024u_wrapBlockingBlock_m09tr7(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_60, ^void(void * arg0, id arg1, id arg2, id arg3, id arg4, id arg5), { - @autoreleasepool { - _1uu024u_BlockArgs_m09tr7* args = [[_1uu024u_BlockArgs_m09tr7 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_m09tr7* args = [[_1uu024u_BlockArgs_m09tr7 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - args.arg3 = arg3; - args.arg4 = arg4; - args.arg5 = arg5; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_45)(void * sel, id arg1, id arg2, id arg3, id arg4, id arg5); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_m09tr7(id target, void * sel, id arg1, id arg2, id arg3, id arg4, id arg5) { - return ((_ProtocolTrampoline_45)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4, arg5); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_10lndml : NSObject -@property (copy) id block; -@property void * arg0; -@property BOOL arg1; -@end -@implementation _1uu024u_BlockArgs_10lndml -@end - -typedef void (^_ListenerTrampoline_61)(void * arg0, BOOL arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_61 _1uu024u_wrapListenerBlock_10lndml( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_61 weakSelfBlock = nil; - _ListenerTrampoline_61 strongSelfBlock = [^void(void * arg0, BOOL arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_10lndml* args = [[_1uu024u_BlockArgs_10lndml alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_61)(void * waiter, void * arg0, BOOL arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_61 _1uu024u_wrapBlockingBlock_10lndml(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_61, ^void(void * arg0, BOOL arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_10lndml* args = [[_1uu024u_BlockArgs_10lndml alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_10lndml* args = [[_1uu024u_BlockArgs_10lndml alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_46)(void * sel, BOOL arg1); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_10lndml(id target, void * sel, BOOL arg1) { - return ((_ProtocolTrampoline_46)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1037nh9 : NSObject -@property (copy) id block; -@property void * arg0; -@property void * arg1; -@end -@implementation _1uu024u_BlockArgs_1037nh9 -@end - -typedef void (^_ListenerTrampoline_62)(void * arg0, void * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_62 _1uu024u_wrapListenerBlock_1037nh9( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_62 weakSelfBlock = nil; - _ListenerTrampoline_62 strongSelfBlock = [^void(void * arg0, void * arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_1037nh9* args = [[_1uu024u_BlockArgs_1037nh9 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_62)(void * waiter, void * arg0, void * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_62 _1uu024u_wrapBlockingBlock_1037nh9(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_62, ^void(void * arg0, void * arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_1037nh9* args = [[_1uu024u_BlockArgs_1037nh9 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1037nh9* args = [[_1uu024u_BlockArgs_1037nh9 alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_47)(void * sel, void * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_1037nh9(id target, void * sel, void * arg1) { - return ((_ProtocolTrampoline_47)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_1l4hxwm : NSObject -@property (copy) id block; -@property void * arg0; -@property (copy) id arg1; -@end -@implementation _1uu024u_BlockArgs_1l4hxwm -@end - -typedef void (^_ListenerTrampoline_63)(void * arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_63 _1uu024u_wrapListenerBlock_1l4hxwm( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_63 weakSelfBlock = nil; - _ListenerTrampoline_63 strongSelfBlock = [^void(void * arg0, id arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_1l4hxwm* args = [[_1uu024u_BlockArgs_1l4hxwm alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_63)(void * waiter, void * arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_63 _1uu024u_wrapBlockingBlock_1l4hxwm(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_63, ^void(void * arg0, id arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_1l4hxwm* args = [[_1uu024u_BlockArgs_1l4hxwm alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_1l4hxwm* args = [[_1uu024u_BlockArgs_1l4hxwm alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef void (^_ProtocolTrampoline_48)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -void _1uu024u_protocolTrampoline_1l4hxwm(id target, void * sel, id arg1) { - return ((_ProtocolTrampoline_48)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_18qun1e : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property (strong) id arg1; -@property (copy) id arg2; -@end -@implementation _1uu024u_BlockArgs_18qun1e -@end - -typedef void (^_ListenerTrampoline_64)(id arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_64 _1uu024u_wrapListenerBlock_18qun1e( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_64 weakSelfBlock = nil; - _ListenerTrampoline_64 strongSelfBlock = [^void(id arg0, id arg1, id arg2) { - @autoreleasepool { - _1uu024u_BlockArgs_18qun1e* args = [[_1uu024u_BlockArgs_18qun1e alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_64)(void * waiter, id arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_64 _1uu024u_wrapBlockingBlock_18qun1e(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_64, ^void(id arg0, id arg1, id arg2), { - @autoreleasepool { - _1uu024u_BlockArgs_18qun1e* args = [[_1uu024u_BlockArgs_18qun1e alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_18qun1e* args = [[_1uu024u_BlockArgs_18qun1e alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - args.arg2 = arg2; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -__attribute__((visibility("default"))) -@interface _1uu024u_BlockArgs_o762yo : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property (copy) id arg1; -@end -@implementation _1uu024u_BlockArgs_o762yo -@end - -typedef void (^_ListenerTrampoline_65)(id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_65 _1uu024u_wrapListenerBlock_o762yo( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline_65 weakSelfBlock = nil; - _ListenerTrampoline_65 strongSelfBlock = [^void(id arg0, id arg1) { - @autoreleasepool { - _1uu024u_BlockArgs_o762yo* args = [[_1uu024u_BlockArgs_o762yo alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline_65)(void * waiter, id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_65 _1uu024u_wrapBlockingBlock_o762yo(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_65, ^void(id arg0, id arg1), { - @autoreleasepool { - _1uu024u_BlockArgs_o762yo* args = [[_1uu024u_BlockArgs_o762yo alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _1uu024u_BlockArgs_o762yo* args = [[_1uu024u_BlockArgs_o762yo alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} - -typedef id (^_ProtocolTrampoline_49)(void * sel, id arg1, id arg2 __attribute__((ns_consumed))); -__attribute__((visibility("default"))) __attribute__((used)) -id _1uu024u_protocolTrampoline_1p0fswn(id target, void * sel, id arg1, id arg2 __attribute__((ns_consumed))) { - return ((_ProtocolTrampoline_49)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -typedef id (^_ProtocolTrampoline_50)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -id _1uu024u_protocolTrampoline_wpy7aa(id target, void * sel, id arg1) { - return ((_ProtocolTrampoline_50)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef struct ppd_file_s * (^_ProtocolTrampoline_51)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -struct ppd_file_s * _1uu024u_protocolTrampoline_10vn635(id target, void * sel) { - return ((_ProtocolTrampoline_51)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_PDEPanel(void) { return @protocol(PDEPanel); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_PDEPlugIn(void) { return @protocol(PDEPlugIn); } - -__attribute__((visibility("default"))) __attribute__((used)) -Protocol* _1uu024u_PDEPlugInCallbackProtocol(void) { return @protocol(PDEPlugInCallbackProtocol); } -#undef BLOCKING_BLOCK_IMPL - -#pragma clang diagnostic pop diff --git a/pkgs/ffigen/example/objective_c/generate_code.dart b/pkgs/ffigen/example/objective_c/generate_code.dart index d49591b263..bc33d626c8 100644 --- a/pkgs/ffigen/example/objective_c/generate_code.dart +++ b/pkgs/ffigen/example/objective_c/generate_code.dart @@ -22,12 +22,22 @@ final config = FfiGenerator( // To tell FFIgen to generate Objective-C bindings, rather than C bindings, // set the objectiveC field to a non-null value. objectiveC: const ObjectiveC(), - enums: const Enums(silenceWarning: true), visitors: [ Visitor( + visitFunc: (node) => node.isIncluded = false, + visitStruct: (node) => node.isIncluded = false, + visitUnion: (node) => node.isIncluded = false, + visitEnum: (node) => node.isIncluded = false, + visitUnnamedEnumConstant: (node) => node.isIncluded = false, + visitGlobal: (node) => node.isIncluded = false, + visitMacro: (node) => node.isIncluded = false, + visitConstant: (node) => node.isIncluded = false, + visitTypealias: (node) => node.isIncluded = false, visitObjCInterface: (node) { if (node.name != 'AVAudioPlayer') node.isIncluded = false; }, + visitObjCCategory: (node) => node.isIncluded = false, + visitObjCProtocol: (node) => node.isIncluded = false, ), ], diff --git a/pkgs/ffigen/example/objective_c/play_audio.dart b/pkgs/ffigen/example/objective_c/play_audio.dart index 825ae15774..82686d5bd8 100644 --- a/pkgs/ffigen/example/objective_c/play_audio.dart +++ b/pkgs/ffigen/example/objective_c/play_audio.dart @@ -6,7 +6,7 @@ import 'dart:ffi'; import 'package:objective_c/objective_c.dart'; -import 'avf_audio_bindings.dart' hide Duration; +import 'avf_audio_bindings.dart'; const _dylibPath = '/System/Library/Frameworks/AVFAudio.framework/Versions/Current/AVFAudio'; diff --git a/pkgs/ffigen/example/shared_bindings/lib/generated/a_shared_b_gen.dart b/pkgs/ffigen/example/shared_bindings/lib/generated/a_shared_b_gen.dart index 44fa8e0c74..52838f927b 100644 --- a/pkgs/ffigen/example/shared_bindings/lib/generated/a_shared_b_gen.dart +++ b/pkgs/ffigen/example/shared_bindings/lib/generated/a_shared_b_gen.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:shared_bindings/generated/base_gen.dart' as imp$1; diff --git a/pkgs/ffigen/example/simple/generated_bindings.dart b/pkgs/ffigen/example/simple/generated_bindings.dart index f959b85bc8..3b59e3e210 100644 --- a/pkgs/ffigen/example/simple/generated_bindings.dart +++ b/pkgs/ffigen/example/simple/generated_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Bindings to `headers/example.h`. diff --git a/pkgs/ffigen/example/swift/swift_api_bindings.dart b/pkgs/ffigen/example/swift/swift_api_bindings.dart index 62d93c1757..71cab810fc 100644 --- a/pkgs/ffigen/example/swift/swift_api_bindings.dart +++ b/pkgs/ffigen/example/swift/swift_api_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; @@ -32,7 +32,7 @@ extension type SwiftClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [SwiftClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_SwiftClass, @@ -40,13 +40,13 @@ extension type SwiftClass._(objc.ObjCObject object$) /// alloc static SwiftClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_SwiftClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_SwiftClass, _sel_alloc); return SwiftClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static SwiftClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_SwiftClass, _sel_allocWithZone_, zone, @@ -56,7 +56,7 @@ extension type SwiftClass._(objc.ObjCObject object$) /// new static SwiftClass new$() { - final $ret = _objc_msgSend_zldla2(_class_SwiftClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_SwiftClass, _sel_new); return SwiftClass.fromPointer($ret, retain: false, release: true); } @@ -73,7 +73,7 @@ extension SwiftClass$Methods on SwiftClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -83,20 +83,20 @@ extension SwiftClass$Methods on SwiftClass { /// sayHello objc.NSString sayHello() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_sayHello); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_sayHello); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// setSomeField: set someField(int value) { final _$$ref = object$.ref; - _objc_msgSend_1whyqxt(_$$ref.pointer, _sel_setSomeField_, value); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setSomeField_, value); } /// someField int get someField { final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_someField); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_someField); } } @@ -110,85 +110,85 @@ final _class_SwiftClass = objc.getClass( _class_SwiftClass_raw, ).cast(), ); -final _objc_msgSend_18szuw0 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1whyqxt = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1hz7y9r = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_4sp4xj = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + int, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/lib/src/code_generator/func.dart b/pkgs/ffigen/lib/src/code_generator/func.dart index e2ab35e45c..2366258975 100644 --- a/pkgs/ffigen/lib/src/code_generator/func.dart +++ b/pkgs/ffigen/lib/src/code_generator/func.dart @@ -128,10 +128,16 @@ class Func extends LookUpBinding with HasLocalScope { final context = w.context; final cType = - _exposedFunctionTypealias?.getCType(context) ?? + _exposedFunctionTypealias?.getCType( + context, + writeArgumentNames: false, + ) ?? functionType.getCType(context, writeArgumentNames: false); final dartType = - _exposedFunctionTypealias?.getFfiDartType(context) ?? + _exposedFunctionTypealias?.getFfiDartType( + context, + writeArgumentNames: false, + ) ?? functionType.getFfiDartType(context, writeArgumentNames: false); final needsWrapper = !functionType.sameDartAndFfiDartType && !isInternal; diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart index 955d3cdc05..639b8e9d72 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart @@ -102,19 +102,14 @@ class ObjCBuiltInFunctions { (String, String) _methodSigId(Type returnType, List params) { final paramIds = []; for (final p in params) { - // The trampoline ID is based on getNativeType and toString of param. - // Objects and blocks both have `id` as native type, but need - // separate trampolines since they have different retain functions. - // So add retain function (if any) and type toString to param IDs. - final sigType = _methodSigType(p.type); - final retain = p.type.generateRetain('') ?? ''; - final nativeType = p.getNativeType(context, varName: retain); - paramIds.add('$nativeType:$sigType'); + paramIds.add( + p.getNativeType(context, varName: p.type.generateRetain('') ?? ''), + ); } - final sigRt = _methodSigType(returnType); - final retainRt = returnType.generateRetain('') ?? ''; - final nativeTypeRt = returnType.getNativeType(context, varName: retainRt); - final rt = '$nativeTypeRt:$sigRt'; + final rt = returnType.getNativeType( + context, + varName: returnType.generateRetain('') ?? '', + ); final id = '$rt,${paramIds.join(',')}'; return (id, fnvHash32(id).toRadixString(36)); } diff --git a/pkgs/ffigen/lib/src/code_generator/typealias.dart b/pkgs/ffigen/lib/src/code_generator/typealias.dart index 8c6d4bb94b..84e42bd34d 100644 --- a/pkgs/ffigen/lib/src/code_generator/typealias.dart +++ b/pkgs/ffigen/lib/src/code_generator/typealias.dart @@ -138,15 +138,22 @@ class Typealias extends BindingType { bool get isIncompleteCompound => type.isIncompleteCompound; @override - String getCType(Context context) => - generateBindings ? name : type.getCType(context); + String getCType(Context context, {bool writeArgumentNames = true}) { + if (generateBindings) { + return name; + } + if (type case final FunctionType f) { + return f.getCType(context, writeArgumentNames: writeArgumentNames); + } + return type.getCType(context); + } @override String getNativeType(Context context, {String varName = ''}) => type.getNativeType(context, varName: varName); @override - String getFfiDartType(Context context) { + String getFfiDartType(Context context, {bool writeArgumentNames = true}) { if (generateBindings) { if (_ffiDartAliasName != null) { return _ffiDartAliasName!.name; @@ -154,6 +161,9 @@ class Typealias extends BindingType { return name; } } + if (type case final FunctionType f) { + return f.getFfiDartType(context, writeArgumentNames: writeArgumentNames); + } return type.getFfiDartType(context); } diff --git a/pkgs/ffigen/lib/src/code_generator/writer.dart b/pkgs/ffigen/lib/src/code_generator/writer.dart index d9b1f12553..b9c8f1e199 100644 --- a/pkgs/ffigen/lib/src/code_generator/writer.dart +++ b/pkgs/ffigen/lib/src/code_generator/writer.dart @@ -83,7 +83,6 @@ class Writer { // unused imports. if (!_hasLintIgnore('unused_import')) 'unused_import', if (!_hasLintIgnore('unused_element')) 'unused_element', - if (!_hasLintIgnore('unused_field')) 'unused_field', if (!_hasLintIgnore('deprecated_member_use_from_same_package')) 'deprecated_member_use_from_same_package', ]; diff --git a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart index 7184f8ed32..6eb46d648c 100644 --- a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart +++ b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart @@ -6,7 +6,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Holds bindings to LibClang. diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index 88a2fed80d..a7a596de09 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -168,6 +168,7 @@ List _findObjectiveCSysroot() => [ List transformBindings(List rawBindings, Context context) { final config = context.config; + visit(context, CopyMethodsFromSuperTypesVisitation(), rawBindings); final rawNodes = rawBindings .map((b) => b.toPublicAstNode()) .nonNulls @@ -175,8 +176,6 @@ List transformBindings(List rawBindings, Context context) { for (final visitor in config.visitors) { visitor.visitAll(rawNodes); } - - visit(context, CopyMethodsFromSuperTypesVisitation(), rawBindings); visit(context, FixOverriddenMethodsVisitation(context), rawBindings); final applyConfigFiltersVisitation = ApplyConfigFiltersVisitation(context); diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index 430f78676d..419c813721 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -21,38 +21,26 @@ class ApplyConfigFiltersVisitation extends Visitation { } } - void _visitWithChildren(Binding node) { - _visitImpl(node); - if (directlyIncluded.contains(node)) { - node.visitChildren(visitor); - } - } - @override - void visitStruct(Struct node) => _visitWithChildren(node); + void visitStruct(Struct node) => _visitImpl(node); @override - void visitUnion(Union node) => _visitWithChildren(node); + void visitUnion(Union node) => _visitImpl(node); @override void visitEnumClass(EnumClass node) { if (node.isAnonymous) return; - _visitWithChildren(node); + _visitImpl(node); } @override void visitCppClass(CppClass node) { if (context.config.cpp == null) return; - _visitWithChildren(node); + _visitImpl(node); } @override - void visitFunc(Func node) { - _visitImpl(node); - if (directlyIncluded.contains(node)) { - visitor.visit(node.exposedFunctionTypealias); - } - } + void visitFunc(Func node) => _visitImpl(node); @override void visitMacroConstant(MacroConstant node) => _visitImpl(node); @@ -71,10 +59,8 @@ class ApplyConfigFiltersVisitation extends Visitation { // If this node is included, include all its super types. if (directlyIncluded.contains(node)) { - for (var t = node.superType; t != null; t = t.superType) { - if (!t.isObjCImport) { - if (!indirectlyIncluded.add(t)) break; - } + for (ObjCInterface? t = node; t != null; t = t.superType) { + if (!indirectlyIncluded.add(t)) break; } } } @@ -129,6 +115,9 @@ class ApplyConfigFiltersVisitation extends Visitation { @override void visitTypealias(Typealias node) { if (node.isAnonymous) return; - _visitWithChildren(node); + _visitImpl(node); + if (directlyIncluded.contains(node)) { + node.visitChildren(visitor); + } } } diff --git a/pkgs/ffigen/lib/src/visitor/find_symbols.dart b/pkgs/ffigen/lib/src/visitor/find_symbols.dart index d1f9acd2f7..d673ced1c0 100644 --- a/pkgs/ffigen/lib/src/visitor/find_symbols.dart +++ b/pkgs/ffigen/lib/src/visitor/find_symbols.dart @@ -64,14 +64,15 @@ class FindSymbolsVisitation extends Visitation { @override void visitTypealias(Typealias node) { - // If the typealias is not in the bindings, that means we're not generating - // bindings for it, so we shouldn't add its name to the scope. But we - // still need to visit its target type. Otherwise, if the target type is - // only referred to via this alias, then we won't visit it at all. - if (!bindings.contains(node)) { - visitor.visit(node.type); + // If the typealias is not in the bindings and not generating bindings, that + // means we're not generating bindings for it, so we shouldn't add its name + // to the scope. But we still need to visit its target type. Otherwise, if + // the target type is only referred to via this alias, then we won't visit + // it at all. + if (!bindings.contains(node) && !node.generateBindings) { + node.visitChildren(visitor); } else { - visitInsideScope(node, context.rootScope); + visitBinding(node); } } diff --git a/pkgs/ffigen/lib/src/visitor/list_bindings.dart b/pkgs/ffigen/lib/src/visitor/list_bindings.dart index f110f6e8ae..aed804ba9a 100644 --- a/pkgs/ffigen/lib/src/visitor/list_bindings.dart +++ b/pkgs/ffigen/lib/src/visitor/list_bindings.dart @@ -121,12 +121,12 @@ class ListBindingsVisitation extends Visitation { @override void visitTypealias(Typealias node) { - _visitImpl( - node, - config.typedefs.includeUnused - ? _IncludeBehavior.configOnly - : _IncludeBehavior.configAndTransitive, - ); + final behavior = node.isInternal + ? _IncludeBehavior.transitive + : (config.typedefs.includeUnused + ? _IncludeBehavior.configOnly + : _IncludeBehavior.configAndTransitive); + _visitImpl(node, behavior); // Objective C has some core typedefs that are important to keep. if (config.objectiveC != null && @@ -167,5 +167,8 @@ class MarkBindingsVisitation extends Visitation { void visitBinding(Binding node) { node.visitChildren(visitor); node.generateBindings = bindings.contains(node); + if (node is Func && node.generateBindings && node.exposedFunctionTypealias != null) { + node.exposedFunctionTypealias!.generateBindings = true; + } } } diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart index 52248ec020..1e22944bbd 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart index 3f6f8f6dab..2beabe40a0 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package const int test1 = 20; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart index 69ef1fa45b..a6b7fead8b 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// test line 1 diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart index 3289ee4203..f7148ceb93 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// test line 1 diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart index 82231ff3a4..a88b66d737 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart index 0aa3e3ddf3..589a16332f 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart index 480e7b3406..6798a818dc 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart index 7c2108492b..946e20e3b1 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('test') library; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart index ac6a813716..6fdfb1521d 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart index 8a8499f019..2b52949bcd 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart index 333b13b32f..595dab2f07 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('test') library; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart index 5ccc10a287..2620a9d703 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart @@ -7,7 +7,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class init_dylib$1 { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart index 27a73d8da4..6083b31c74 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('test') library; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart index 9eca91b1a2..5beed3d63e 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; final class NoPacking extends ffi.Struct { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart index 6af7d689c4..64e5565654 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; final class CollisionStruct extends ffi.Struct { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart index 91579ad559..d1318f9dab 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Just a test struct diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart index add35e9783..077f94c7a5 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings { diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart index 8cfbfca721..9b9f2c0720 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart @@ -5,7 +5,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; final class EmptyUnion extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart index 76645693fc..ea8b18bd04 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi$2; class Bindings { diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart index ba6e384add..b18a004065 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart @@ -3,7 +3,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class Bindings$1 { diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_type_name_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_type_name_collision_bindings.dart index ed9a45adcb..56615e2804 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_type_name_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_type_name_collision_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; final class A extends ffi.Struct { diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart index f3aa1b9475..3d07ddf33e 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; class NativeLibrary { diff --git a/pkgs/ffigen/test/example_tests/objective_c_example_test.dart b/pkgs/ffigen/test/example_tests/objective_c_example_test.dart index 4db32e5566..e67256a731 100644 --- a/pkgs/ffigen/test/example_tests/objective_c_example_test.dart +++ b/pkgs/ffigen/test/example_tests/objective_c_example_test.dart @@ -33,7 +33,7 @@ void main() { actual, contains('AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) {'), ); - expect(actual, contains('get duration {')); + expect(actual, contains('double get duration {')); expect(actual, contains('bool play() {')); return true; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_comment_markup_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_comment_markup_bindings.dart index 1d02c1dee3..2c7282ac43 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_comment_markup_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_comment_markup_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Comment Markup Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart index 0053eb5ddf..f7947f5dff 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Dart_Handle Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_enum_int_mimic_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_enum_int_mimic_bindings.dart index c5cf4f52fb..9053713bc0 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_enum_int_mimic_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_enum_int_mimic_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; const int ANONYMOUS1 = 0; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_forward_decl_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_forward_decl_bindings.dart index 62446719c9..fe2a76eeea 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_forward_decl_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_forward_decl_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Forward Declaration Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_functions_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_functions_bindings.dart index 486a2c1cac..8c57d76aa3 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_functions_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_functions_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Functions Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_imported_types_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_imported_types_bindings.dart index 86aa402bde..ed06a175d3 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_imported_types_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_imported_types_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Imported types test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart index cbf1a1979f..52c3240100 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Native Func Typedef Test. diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_opaque_dependencies_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_opaque_dependencies_bindings.dart index 365dfaefd1..cba416d5f9 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_opaque_dependencies_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_opaque_dependencies_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Opaque Dependencies Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_packed_structs_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_packed_structs_bindings.dart index 3fa6b2c2dc..930d5f6c3c 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_packed_structs_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_packed_structs_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; final class NormalStruct1 extends ffi.Struct { diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart index afe204d59c..23f64da8b3 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:meta/meta.dart' as meta; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_regress_384_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_regress_384_bindings.dart index 16489ff3ce..7b48d94533 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_regress_384_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_regress_384_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// https://github.com/dart-lang/ffigen/issues/384 diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart index 6794cb4d66..8843436dc8 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; typedef aaaa = ffff; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart index 6fe0cf0a6c..550cfc43c9 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; typedef ArithmeticOperation = diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart index edc474d868..7d2414c949 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart @@ -3,7 +3,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Typedef Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_unions_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_unions_bindings.dart index 0ce7d31ce1..aa073c20d0 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_unions_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_unions_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Unions Test diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_varargs_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_varargs_bindings.dart index ddeadb5005..18854d0c80 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_varargs_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_varargs_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// VarArgs Test diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart index 6380d3c8f2..b2e87d134f 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Bindings to Cjson. diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart index 65287ad0e5..35c30efc15 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Bindings to LibClang. diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart index b71bee0a77..d00b72bbf3 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; /// Bindings to SQLite. diff --git a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart index 843aec7385..b525bc09df 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart @@ -125,6 +125,8 @@ void main() { visitTypealias: (node) { if (!shouldIncludeNode('typedefs', node)) node.isIncluded = false; }, + visitMacro: (node) => node.isIncluded = false, + visitConstant: (node) => node.isIncluded = false, visitObjCInterface: (node) { if (!shouldIncludeNode('objcInterfaces', node)) { node.isIncluded = false; diff --git a/pkgs/ffigen/test/large_integration_tests/large_test.dart b/pkgs/ffigen/test/large_integration_tests/large_test.dart index d63e8b3c53..cd6364b0e5 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_test.dart @@ -178,6 +178,7 @@ void main() { ], include: (Uri header) => header.pathSegments.last == 'sqlite3.h', ), + structs: const Structs(dependencies: CompoundDependencies.full), visitors: [ Visitor( visitFunc: (node) { diff --git a/pkgs/ffigen/test/native_cpp_test/cpp_class_test_bindings.dart b/pkgs/ffigen/test/native_cpp_test/cpp_class_test_bindings.dart index 34aed95100..4f80f0da4b 100644 --- a/pkgs/ffigen/test/native_cpp_test/cpp_class_test_bindings.dart +++ b/pkgs/ffigen/test/native_cpp_test/cpp_class_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/cpp_test') library; diff --git a/pkgs/ffigen/test/native_cpp_test/memory_edge_cases_bindings.dart b/pkgs/ffigen/test/native_cpp_test/memory_edge_cases_bindings.dart index 494bd9a203..9d1d03434f 100644 --- a/pkgs/ffigen/test/native_cpp_test/memory_edge_cases_bindings.dart +++ b/pkgs/ffigen/test/native_cpp_test/memory_edge_cases_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/cpp_test') library; diff --git a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart index c61acbc12e..12fd500fb5 100644 --- a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -36,7 +36,7 @@ extension type ArcDtorTestObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ArcDtorTestObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ArcDtorTestObject, @@ -44,13 +44,13 @@ extension type ArcDtorTestObject._(objc.ObjCObject object$) /// alloc static ArcDtorTestObject alloc() { - final $ret = _objc_msgSend_zldla2(_class_ArcDtorTestObject, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_ArcDtorTestObject, _sel_alloc); return ArcDtorTestObject.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ArcDtorTestObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ArcDtorTestObject, _sel_allocWithZone_, zone, @@ -60,7 +60,7 @@ extension type ArcDtorTestObject._(objc.ObjCObject object$) /// new static ArcDtorTestObject new$() { - final $ret = _objc_msgSend_zldla2(_class_ArcDtorTestObject, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_ArcDtorTestObject, _sel_new); return ArcDtorTestObject.fromPointer($ret, retain: false, release: true); } @@ -77,7 +77,7 @@ extension ArcDtorTestObject$Methods on ArcDtorTestObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -90,7 +90,7 @@ extension ArcDtorTestObject$Methods on ArcDtorTestObject { required ffi.Pointer onMainThread, }) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1c8eosi( + final $ret = _objc_msgSend_b5hsh3( _$$ref.retainAndReturnPointer(), _sel_initWithCounters_onMainThread_, _dtorCounter, @@ -120,7 +120,7 @@ extension type ArcTestObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ArcTestObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ArcTestObject, @@ -128,19 +128,22 @@ extension type ArcTestObject._(objc.ObjCObject object$) /// alloc static ArcTestObject alloc() { - final $ret = _objc_msgSend_zldla2(_class_ArcTestObject, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_ArcTestObject, _sel_alloc); return ArcTestObject.fromPointer($ret, retain: false, release: true); } /// allocTheThing static ArcTestObject allocTheThing() { - final $ret = _objc_msgSend_zldla2(_class_ArcTestObject, _sel_allocTheThing); + final $ret = _objc_msgSend_151sglz( + _class_ArcTestObject, + _sel_allocTheThing, + ); return ArcTestObject.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ArcTestObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ArcTestObject, _sel_allocWithZone_, zone, @@ -151,7 +154,7 @@ extension type ArcTestObject._(objc.ObjCObject object$) /// consumeArg: static void consumeArg(ArcTestObject arg) { final _$$ref = arg.ref; - _objc_msgSend_1f0326b( + _objc_msgSend_4js6t( _class_ArcTestObject, _sel_consumeArg_, _$$ref.retainAndReturnPointer(), @@ -160,7 +163,7 @@ extension type ArcTestObject._(objc.ObjCObject object$) /// makeAndAutorelease: static ArcTestObject makeAndAutorelease(ffi.Pointer _counter) { - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _class_ArcTestObject, _sel_makeAndAutorelease_, _counter, @@ -170,13 +173,13 @@ extension type ArcTestObject._(objc.ObjCObject object$) /// new static ArcTestObject new$() { - final $ret = _objc_msgSend_zldla2(_class_ArcTestObject, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_ArcTestObject, _sel_new); return ArcTestObject.fromPointer($ret, retain: false, release: true); } /// newWithCounter: static ArcTestObject newWithCounter(ffi.Pointer _counter) { - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _class_ArcTestObject, _sel_newWithCounter_, _counter, @@ -192,35 +195,35 @@ extension ArcTestObject$Methods on ArcTestObject { /// assignedProperty ArcTestObject get assignedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_assignedProperty); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_assignedProperty); return ArcTestObject.fromPointer($ret, retain: true, release: true); } /// copiedProperty ArcTestObject get copiedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copiedProperty); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copiedProperty); return ArcTestObject.fromPointer($ret, retain: true, release: true); } /// copyMe ArcTestObject copyMe() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMe); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMe); return ArcTestObject.fromPointer($ret, retain: false, release: true); } /// copyMeAutorelease ArcTestObject copyMeAutorelease() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMeAutorelease); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMeAutorelease); return ArcTestObject.fromPointer($ret, retain: true, release: true); } /// copyMeConsumeSelf ArcTestObject copyMeConsumeSelf() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_copyMeConsumeSelf, ); @@ -230,14 +233,14 @@ extension ArcTestObject$Methods on ArcTestObject { /// copyMeNoRetain ArcTestObject copyMeNoRetain() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMeNoRetain); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMeNoRetain); return ArcTestObject.fromPointer($ret, retain: true, release: true); } /// copyWithZone: objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _$$ref.pointer, _sel_copyWithZone_, zone, @@ -248,7 +251,7 @@ extension ArcTestObject$Methods on ArcTestObject { /// dealloc void dealloc() { final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_dealloc); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); } /// init @@ -259,7 +262,7 @@ extension ArcTestObject$Methods on ArcTestObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -269,7 +272,7 @@ extension ArcTestObject$Methods on ArcTestObject { /// initWithCounter: ArcTestObject initWithCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _$$ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter, @@ -280,21 +283,21 @@ extension ArcTestObject$Methods on ArcTestObject { /// mutableCopyMe ArcTestObject mutableCopyMe() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_mutableCopyMe); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_mutableCopyMe); return ArcTestObject.fromPointer($ret, retain: false, release: true); } /// retainedProperty ArcTestObject get retainedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_retainedProperty); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_retainedProperty); return ArcTestObject.fromPointer($ret, retain: true, release: true); } /// returnsRetained ArcTestObject returnsRetained() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsRetained); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_returnsRetained); return ArcTestObject.fromPointer($ret, retain: false, release: true); } @@ -302,7 +305,7 @@ extension ArcTestObject$Methods on ArcTestObject { set assignedProperty(ArcTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setAssignedProperty_, _$$ref$1.pointer, @@ -313,7 +316,7 @@ extension ArcTestObject$Methods on ArcTestObject { set copiedProperty(ArcTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setCopiedProperty_, _$$ref$1.pointer, @@ -323,14 +326,14 @@ extension ArcTestObject$Methods on ArcTestObject { /// setCounter: void setCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_setCounter_, _counter); + _objc_msgSend_yhkuco(_$$ref.pointer, _sel_setCounter_, _counter); } /// setRetainedProperty: set retainedProperty(ArcTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setRetainedProperty_, _$$ref$1.pointer, @@ -358,14 +361,13 @@ final _class_ArcTestObject = objc.getClass( _class_ArcTestObject_raw, ).cast(), ); -final _objc_msgSend_1c8eosi = objc.msgSendPointer +final _objc_msgSend_129vhbw = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -374,30 +376,27 @@ final _objc_msgSend_1c8eosi = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1d1siln = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1f0326b = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -405,13 +404,13 @@ final _objc_msgSend_1f0326b = objc.msgSendPointer > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -428,30 +427,28 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1uw8y6v = objc.msgSendPointer +final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1vg1ydp = objc.msgSendPointer +final _objc_msgSend_4js6t = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -459,28 +456,32 @@ final _objc_msgSend_1vg1ydp = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_h9i570 = objc.msgSendPointer +final _objc_msgSend_b5hsh3 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -488,25 +489,27 @@ final _objc_msgSend_xbndyy = objc.msgSendPointer > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart index e0ea4e3b6c..3ae3ec75a3 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type BadMethodTestObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadMethodTestObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BadMethodTestObject, @@ -39,13 +39,13 @@ extension type BadMethodTestObject._(objc.ObjCObject object$) /// alloc static BadMethodTestObject alloc() { - final $ret = _objc_msgSend_zldla2(_class_BadMethodTestObject, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_BadMethodTestObject, _sel_alloc); return BadMethodTestObject.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadMethodTestObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BadMethodTestObject, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type BadMethodTestObject._(objc.ObjCObject object$) /// new static BadMethodTestObject new$() { - final $ret = _objc_msgSend_zldla2(_class_BadMethodTestObject, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BadMethodTestObject, _sel_new); return BadMethodTestObject.fromPointer($ret, retain: false, release: true); } @@ -67,19 +67,19 @@ extension BadMethodTestObject$Methods on BadMethodTestObject { /// bitFieldPointerParam: int bitFieldPointerParam(ffi.Pointer x) { final _$$ref = object$.ref; - return _objc_msgSend_17avkev(_$$ref.pointer, _sel_bitFieldPointerParam_, x); + return _objc_msgSend_zol7v(_$$ref.pointer, _sel_bitFieldPointerParam_, x); } /// bitFieldPointerReturn ffi.Pointer bitFieldPointerReturn() { final _$$ref = object$.ref; - return _objc_msgSend_12gs4be(_$$ref.pointer, _sel_bitFieldPointerReturn); + return _objc_msgSend_hic16b(_$$ref.pointer, _sel_bitFieldPointerReturn); } /// incompletePointerParam: int incompletePointerParam(ffi.Pointer x) { final _$$ref = object$.ref; - return _objc_msgSend_rhxydn( + return _objc_msgSend_1onbdcj( _$$ref.pointer, _sel_incompletePointerParam_, x, @@ -89,7 +89,7 @@ extension BadMethodTestObject$Methods on BadMethodTestObject { /// incompletePointerReturn ffi.Pointer incompletePointerReturn() { final _$$ref = object$.ref; - return _objc_msgSend_s9rz26(_$$ref.pointer, _sel_incompletePointerReturn); + return _objc_msgSend_17u7wb(_$$ref.pointer, _sel_incompletePointerReturn); } /// init @@ -100,7 +100,7 @@ extension BadMethodTestObject$Methods on BadMethodTestObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -122,117 +122,117 @@ final _class_BadMethodTestObject = objc.getClass( _class_BadMethodTestObject_raw, ).cast(), ); -final _objc_msgSend_12gs4be = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_17avkev = objc.msgSendPointer +final _objc_msgSend_17u7wb = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int64 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_rhxydn = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int64 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_s9rz26 = objc.msgSendPointer +final _objc_msgSend_1onbdcj = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int64 Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_hic16b = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_zol7v = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int64 Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart index 8f074b7ef7..ba2f1ffb2b 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type BadOverrideAunt._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideAunt]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideAunt, @@ -39,13 +39,13 @@ extension type BadOverrideAunt._(objc.ObjCObject object$) /// alloc static BadOverrideAunt alloc() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideAunt, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideAunt, _sel_alloc); return BadOverrideAunt.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadOverrideAunt allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BadOverrideAunt, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type BadOverrideAunt._(objc.ObjCObject object$) /// new static BadOverrideAunt new$() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideAunt, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideAunt, _sel_new); return BadOverrideAunt.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension BadOverrideAunt$Methods on BadOverrideAunt { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -100,7 +100,7 @@ extension type BadOverrideChild._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideChild]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideChild, @@ -108,13 +108,13 @@ extension type BadOverrideChild._(objc.ObjCObject object$) /// alloc static BadOverrideChild alloc() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideChild, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideChild, _sel_alloc); return BadOverrideChild.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadOverrideChild allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BadOverrideChild, _sel_allocWithZone_, zone, @@ -124,7 +124,7 @@ extension type BadOverrideChild._(objc.ObjCObject object$) /// new static BadOverrideChild new$() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideChild, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideChild, _sel_new); return BadOverrideChild.fromPointer($ret, retain: false, release: true); } @@ -136,7 +136,10 @@ extension BadOverrideChild$Methods on BadOverrideChild { /// contravariantReturn Polygon contravariantReturn() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_contravariantReturn); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_contravariantReturn, + ); return Polygon.fromPointer($ret, retain: true, release: true); } @@ -144,7 +147,7 @@ extension BadOverrideChild$Methods on BadOverrideChild { objc.NSString covariantArg(Rectangle rect) { final _$$ref = object$.ref; final _$$ref$1 = rect.ref; - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _$$ref.pointer, _sel_covariantArg_, _$$ref$1.pointer, @@ -160,7 +163,7 @@ extension BadOverrideChild$Methods on BadOverrideChild { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -170,7 +173,7 @@ extension BadOverrideChild$Methods on BadOverrideChild { /// methodVsGetter int get methodVsGetter { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_methodVsGetter); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_methodVsGetter); } } @@ -194,7 +197,7 @@ extension type BadOverrideGrandchild._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideGrandchild]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideGrandchild, @@ -202,7 +205,10 @@ extension type BadOverrideGrandchild._(objc.ObjCObject object$) /// alloc static BadOverrideGrandchild alloc() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideGrandchild, _sel_alloc); + final $ret = _objc_msgSend_151sglz( + _class_BadOverrideGrandchild, + _sel_alloc, + ); return BadOverrideGrandchild.fromPointer( $ret, retain: false, @@ -212,7 +218,7 @@ extension type BadOverrideGrandchild._(objc.ObjCObject object$) /// allocWithZone: static BadOverrideGrandchild allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BadOverrideGrandchild, _sel_allocWithZone_, zone, @@ -226,7 +232,7 @@ extension type BadOverrideGrandchild._(objc.ObjCObject object$) /// new static BadOverrideGrandchild new$() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideGrandchild, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideGrandchild, _sel_new); return BadOverrideGrandchild.fromPointer( $ret, retain: false, @@ -247,7 +253,7 @@ extension BadOverrideGrandchild$Methods on BadOverrideGrandchild { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -261,7 +267,7 @@ extension BadOverrideGrandchild$Methods on BadOverrideGrandchild { /// methodVsGetter int get methodVsGetter { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_methodVsGetter); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_methodVsGetter); } } @@ -285,7 +291,7 @@ extension type BadOverrideGrandparent._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideGrandparent]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideGrandparent, @@ -293,7 +299,7 @@ extension type BadOverrideGrandparent._(objc.ObjCObject object$) /// alloc static BadOverrideGrandparent alloc() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_BadOverrideGrandparent, _sel_alloc, ); @@ -306,7 +312,7 @@ extension type BadOverrideGrandparent._(objc.ObjCObject object$) /// allocWithZone: static BadOverrideGrandparent allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BadOverrideGrandparent, _sel_allocWithZone_, zone, @@ -320,7 +326,7 @@ extension type BadOverrideGrandparent._(objc.ObjCObject object$) /// new static BadOverrideGrandparent new$() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideGrandparent, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideGrandparent, _sel_new); return BadOverrideGrandparent.fromPointer( $ret, retain: false, @@ -341,7 +347,7 @@ extension BadOverrideGrandparent$Methods on BadOverrideGrandparent { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -373,7 +379,7 @@ extension type BadOverrideParent._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideParent]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideParent, @@ -381,13 +387,13 @@ extension type BadOverrideParent._(objc.ObjCObject object$) /// alloc static BadOverrideParent alloc() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideParent, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideParent, _sel_alloc); return BadOverrideParent.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadOverrideParent allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BadOverrideParent, _sel_allocWithZone_, zone, @@ -397,7 +403,7 @@ extension type BadOverrideParent._(objc.ObjCObject object$) /// new static BadOverrideParent new$() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideParent, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideParent, _sel_new); return BadOverrideParent.fromPointer($ret, retain: false, release: true); } @@ -409,7 +415,10 @@ extension BadOverrideParent$Methods on BadOverrideParent { /// contravariantReturn Polygon contravariantReturn() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_contravariantReturn); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_contravariantReturn, + ); return Polygon.fromPointer($ret, retain: true, release: true); } @@ -417,7 +426,7 @@ extension BadOverrideParent$Methods on BadOverrideParent { objc.NSString covariantArg(Polygon poly) { final _$$ref = object$.ref; final _$$ref$1 = poly.ref; - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _$$ref.pointer, _sel_covariantArg_, _$$ref$1.pointer, @@ -433,7 +442,7 @@ extension BadOverrideParent$Methods on BadOverrideParent { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -443,7 +452,7 @@ extension BadOverrideParent$Methods on BadOverrideParent { /// methodVsGetter int get methodVsGetter { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_methodVsGetter); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_methodVsGetter); } } @@ -467,7 +476,7 @@ extension type BadOverrideSibbling._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideSibbling]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideSibbling, @@ -475,13 +484,13 @@ extension type BadOverrideSibbling._(objc.ObjCObject object$) /// alloc static BadOverrideSibbling alloc() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideSibbling, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideSibbling, _sel_alloc); return BadOverrideSibbling.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadOverrideSibbling allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BadOverrideSibbling, _sel_allocWithZone_, zone, @@ -491,7 +500,7 @@ extension type BadOverrideSibbling._(objc.ObjCObject object$) /// new static BadOverrideSibbling new$() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideSibbling, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideSibbling, _sel_new); return BadOverrideSibbling.fromPointer($ret, retain: false, release: true); } @@ -508,7 +517,7 @@ extension BadOverrideSibbling$Methods on BadOverrideSibbling { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -518,7 +527,7 @@ extension BadOverrideSibbling$Methods on BadOverrideSibbling { /// methodVsGetter int get methodVsGetter { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_methodVsGetter); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_methodVsGetter); } } @@ -542,7 +551,7 @@ extension type BadOverrideUncle._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BadOverrideUncle]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BadOverrideUncle, @@ -550,13 +559,13 @@ extension type BadOverrideUncle._(objc.ObjCObject object$) /// alloc static BadOverrideUncle alloc() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideUncle, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideUncle, _sel_alloc); return BadOverrideUncle.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BadOverrideUncle allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BadOverrideUncle, _sel_allocWithZone_, zone, @@ -566,7 +575,7 @@ extension type BadOverrideUncle._(objc.ObjCObject object$) /// new static BadOverrideUncle new$() { - final $ret = _objc_msgSend_zldla2(_class_BadOverrideUncle, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BadOverrideUncle, _sel_new); return BadOverrideUncle.fromPointer($ret, retain: false, release: true); } @@ -583,7 +592,7 @@ extension BadOverrideUncle$Methods on BadOverrideUncle { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -593,7 +602,7 @@ extension BadOverrideUncle$Methods on BadOverrideUncle { /// methodVsGetter int methodVsGetter() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_methodVsGetter); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_methodVsGetter); } } @@ -617,7 +626,7 @@ extension type Polygon._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Polygon]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_Polygon, @@ -625,13 +634,13 @@ extension type Polygon._(objc.ObjCObject object$) /// alloc static Polygon alloc() { - final $ret = _objc_msgSend_zldla2(_class_Polygon, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Polygon, _sel_alloc); return Polygon.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Polygon allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_Polygon, _sel_allocWithZone_, zone, @@ -641,7 +650,7 @@ extension type Polygon._(objc.ObjCObject object$) /// new static Polygon new$() { - final $ret = _objc_msgSend_zldla2(_class_Polygon, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Polygon, _sel_new); return Polygon.fromPointer($ret, retain: false, release: true); } @@ -658,7 +667,7 @@ extension Polygon$Methods on Polygon { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -668,7 +677,7 @@ extension Polygon$Methods on Polygon { /// name objc.NSString name() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -693,7 +702,7 @@ extension type Rectangle._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Rectangle]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_Rectangle, @@ -701,13 +710,13 @@ extension type Rectangle._(objc.ObjCObject object$) /// alloc static Rectangle alloc() { - final $ret = _objc_msgSend_zldla2(_class_Rectangle, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Rectangle, _sel_alloc); return Rectangle.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Rectangle allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_Rectangle, _sel_allocWithZone_, zone, @@ -717,7 +726,7 @@ extension type Rectangle._(objc.ObjCObject object$) /// new static Rectangle new$() { - final $ret = _objc_msgSend_zldla2(_class_Rectangle, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Rectangle, _sel_new); return Rectangle.fromPointer($ret, retain: false, release: true); } @@ -734,7 +743,7 @@ extension Rectangle$Methods on Rectangle { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -744,7 +753,7 @@ extension Rectangle$Methods on Rectangle { /// name objc.NSString name() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -769,7 +778,7 @@ extension type Square._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Square]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_Square, @@ -777,13 +786,13 @@ extension type Square._(objc.ObjCObject object$) /// alloc static Square alloc() { - final $ret = _objc_msgSend_zldla2(_class_Square, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Square, _sel_alloc); return Square.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Square allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_Square, _sel_allocWithZone_, zone, @@ -793,7 +802,7 @@ extension type Square._(objc.ObjCObject object$) /// new static Square new$() { - final $ret = _objc_msgSend_zldla2(_class_Square, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Square, _sel_new); return Square.fromPointer($ret, retain: false, release: true); } @@ -810,7 +819,7 @@ extension Square$Methods on Square { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -820,7 +829,7 @@ extension Square$Methods on Square { /// name objc.NSString name() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -845,7 +854,7 @@ extension type Triangle._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Triangle]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_Triangle, @@ -853,13 +862,13 @@ extension type Triangle._(objc.ObjCObject object$) /// alloc static Triangle alloc() { - final $ret = _objc_msgSend_zldla2(_class_Triangle, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Triangle, _sel_alloc); return Triangle.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Triangle allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_Triangle, _sel_allocWithZone_, zone, @@ -869,7 +878,7 @@ extension type Triangle._(objc.ObjCObject object$) /// new static Triangle new$() { - final $ret = _objc_msgSend_zldla2(_class_Triangle, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Triangle, _sel_new); return Triangle.fromPointer($ret, retain: false, release: true); } @@ -886,7 +895,7 @@ extension Triangle$Methods on Triangle { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -896,7 +905,7 @@ extension Triangle$Methods on Triangle { /// name objc.NSString name() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -1003,25 +1012,25 @@ final _class_Triangle = objc.getClass( _class_Triangle_raw, ).cast(), ); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1ffzwv1 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -1029,13 +1038,13 @@ final _objc_msgSend_1ffzwv1 = objc.msgSendPointer > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -1052,29 +1061,28 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1sotr3r = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -1082,6 +1090,7 @@ final _objc_msgSend_zldla2 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart index 9ccff6b776..1854786c48 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -17,52 +17,44 @@ const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); ffi.Pointer, ) >() -external void _z0xonr_protocolTrampoline_10bdlnc( +external void _z0xonr_protocolTrampoline_18v1jvf( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); -@ffi.Native< - EmptyBlock Function(ffi.Pointer, ffi.Pointer) ->() -external EmptyBlock _z0xonr_protocolTrampoline_1ii2gzc( - ffi.Pointer target, - ffi.Pointer arg0, -); - @ffi.Native< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >() -external ffi.Pointer _z0xonr_protocolTrampoline_1jnam6p( +external ffi.Pointer _z0xonr_protocolTrampoline_1mbt9g9( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >() -external ffi.Pointer _z0xonr_protocolTrampoline_an4r6w( +external void _z0xonr_protocolTrampoline_6yc3kd( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); @ffi.Native< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >() -external void _z0xonr_protocolTrampoline_w57eou( +external ffi.Pointer _z0xonr_protocolTrampoline_cww6wh( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, @@ -75,12 +67,20 @@ external void _z0xonr_protocolTrampoline_w57eou( ffi.Pointer, ) >() -external ffi.Pointer _z0xonr_protocolTrampoline_y6co5m( +external ffi.Pointer _z0xonr_protocolTrampoline_xr62hr( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); +@ffi.Native< + EmptyBlock Function(ffi.Pointer, ffi.Pointer) +>() +external EmptyBlock _z0xonr_protocolTrampoline_zb0vvk( + ffi.Pointer target, + ffi.Pointer arg0, +); + @ffi.Native< ffi.Pointer Function( ffi.Int64, @@ -92,7 +92,7 @@ external ffi.Pointer _z0xonr_protocolTrampoline_y6co5m( >, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapBlockingBlock_10bdlnc( +external ffi.Pointer _z0xonr_wrapBlockingBlock_18v1jvf( int port, ffi.Pointer context, ffi.Pointer< @@ -112,7 +112,7 @@ external ffi.Pointer _z0xonr_wrapBlockingBlock_10bdlnc( >, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapBlockingBlock_h9i570( +external ffi.Pointer _z0xonr_wrapBlockingBlock_1pl9qdv( int port, ffi.Pointer context, ffi.Pointer< @@ -132,7 +132,7 @@ external ffi.Pointer _z0xonr_wrapBlockingBlock_h9i570( >, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapBlockingBlock_w57eou( +external ffi.Pointer _z0xonr_wrapBlockingBlock_6yc3kd( int port, ffi.Pointer context, ffi.Pointer< @@ -147,7 +147,7 @@ external ffi.Pointer _z0xonr_wrapBlockingBlock_w57eou( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapListenerBlock_10bdlnc( +external ffi.Pointer _z0xonr_wrapListenerBlock_18v1jvf( int port, ffi.Pointer context, ); @@ -158,7 +158,7 @@ external ffi.Pointer _z0xonr_wrapListenerBlock_10bdlnc( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapListenerBlock_h9i570( +external ffi.Pointer _z0xonr_wrapListenerBlock_1pl9qdv( int port, ffi.Pointer context, ); @@ -169,7 +169,7 @@ external ffi.Pointer _z0xonr_wrapListenerBlock_h9i570( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _z0xonr_wrapListenerBlock_w57eou( +external ffi.Pointer _z0xonr_wrapListenerBlock_6yc3kd( int port, ffi.Pointer context, ); @@ -200,7 +200,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BlockAnnotationTest]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BlockAnnotationTest, @@ -208,13 +208,13 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// alloc static BlockAnnotationTest alloc() { - final $ret = _objc_msgSend_zldla2(_class_BlockAnnotationTest, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_BlockAnnotationTest, _sel_alloc); return BlockAnnotationTest.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BlockAnnotationTest allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BlockAnnotationTest, _sel_allocWithZone_, zone, @@ -230,7 +230,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_wr1klv( + final $ret = _objc_msgSend_w08mvv( _class_BlockAnnotationTest, _sel_invokeBlockProducer_, _$$ref.pointer, @@ -243,7 +243,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock, EmptyObject)> block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, _sel_invokeConsumedObjectListenerAsync_, _$$ref.pointer, @@ -256,7 +256,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock, EmptyObject)> block, ) { final _$$ref = block.ref; - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_BlockAnnotationTest, _sel_invokeConsumedObjectListenerSync_, _$$ref.pointer, @@ -269,7 +269,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, _sel_invokeConsumedObjectReceiver_, _$$ref.pointer, @@ -282,7 +282,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock, EmptyObject)> block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, _sel_invokeObjectListenerAsync_, _$$ref.pointer, @@ -295,7 +295,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock, EmptyObject)> block, ) { final _$$ref = block.ref; - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_BlockAnnotationTest, _sel_invokeObjectListenerSync_, _$$ref.pointer, @@ -307,7 +307,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock)> block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, _sel_invokeObjectProducer_, _$$ref.pointer, @@ -321,7 +321,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, _sel_invokeObjectReceiver_, _$$ref.pointer, @@ -337,7 +337,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_wr1klv( + final $ret = _objc_msgSend_w08mvv( _class_BlockAnnotationTest, _sel_invokeRetainedBlockProducer_, _$$ref.pointer, @@ -350,7 +350,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock)> block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, _sel_invokeRetainedObjectProducer_, _$$ref.pointer, @@ -360,7 +360,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// new static BlockAnnotationTest new$() { - final $ret = _objc_msgSend_zldla2(_class_BlockAnnotationTest, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BlockAnnotationTest, _sel_new); return BlockAnnotationTest.fromPointer($ret, retain: false, release: true); } @@ -369,7 +369,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock Function(ffi.Pointer) > newBlockProducer() { - final $ret = _objc_msgSend_13wc3w1( + final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newBlockProducer, ); @@ -385,7 +385,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) EmptyObject Function(ffi.Pointer, EmptyObject) > newConsumedObjectReceiver() { - final $ret = _objc_msgSend_13wc3w1( + final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newConsumedObjectReceiver, ); @@ -399,7 +399,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// newObjectProducer static objc.ObjCBlock)> newObjectProducer() { - final $ret = _objc_msgSend_13wc3w1( + final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newObjectProducer, ); @@ -415,7 +415,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) EmptyObject Function(ffi.Pointer, EmptyObject) > newObjectReceiver() { - final $ret = _objc_msgSend_13wc3w1( + final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newObjectReceiver, ); @@ -431,7 +431,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) objc.ObjCBlock Function(ffi.Pointer) > newRetainedBlockProducer() { - final $ret = _objc_msgSend_13wc3w1( + final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newRetainedBlockProducer, ); @@ -445,7 +445,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// newRetainedObjectProducer static objc.ObjCBlock)> newRetainedObjectProducer() { - final $ret = _objc_msgSend_13wc3w1( + final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newRetainedObjectProducer, ); @@ -469,7 +469,7 @@ extension BlockAnnotationTest$Methods on BlockAnnotationTest { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -492,7 +492,7 @@ extension type BlockAnnotationTestProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [BlockAnnotationTestProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( + return _objc_msgSend_e3qsqz( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_BlockAnnotationTestProtocol, @@ -505,7 +505,7 @@ extension BlockAnnotationTestProtocol$Methods on BlockAnnotationTestProtocol { void listenConsumedObject(EmptyObject obj) { final _$$ref = object$.ref; final _$$ref$1 = obj.ref; - _objc_msgSend_1f0326b( + _objc_msgSend_4js6t( _$$ref.pointer, _sel_listenConsumedObject_, _$$ref$1.retainAndReturnPointer(), @@ -516,27 +516,27 @@ extension BlockAnnotationTestProtocol$Methods on BlockAnnotationTestProtocol { void listenObject(EmptyObject obj) { final _$$ref = object$.ref; final _$$ref$1 = obj.ref; - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_listenObject_, _$$ref$1.pointer); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_listenObject_, _$$ref$1.pointer); } /// produceBlock DartEmptyBlock produceBlock() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_produceBlock); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_produceBlock); return ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); } /// produceObject EmptyObject produceObject() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_produceObject); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_produceObject); return EmptyObject.fromPointer($ret, retain: true, release: true); } /// produceRetainedBlock DartEmptyBlock produceRetainedBlock() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1( + final $ret = _objc_msgSend_uwvaik( _$$ref.pointer, _sel_produceRetainedBlock, ); @@ -546,7 +546,7 @@ extension BlockAnnotationTestProtocol$Methods on BlockAnnotationTestProtocol { /// produceRetainedObject EmptyObject produceRetainedObject() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.pointer, _sel_produceRetainedObject, ); @@ -557,7 +557,7 @@ extension BlockAnnotationTestProtocol$Methods on BlockAnnotationTestProtocol { EmptyObject receiveConsumedObject(EmptyObject obj) { final _$$ref = object$.ref; final _$$ref$1 = obj.ref; - final $ret = _objc_msgSend_1icwge5( + final $ret = _objc_msgSend_1ploomx( _$$ref.pointer, _sel_receiveConsumedObject_, _$$ref$1.retainAndReturnPointer(), @@ -569,7 +569,7 @@ extension BlockAnnotationTestProtocol$Methods on BlockAnnotationTestProtocol { EmptyObject receiveObject(EmptyObject obj) { final _$$ref = object$.ref; final _$$ref$1 = obj.ref; - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _$$ref.pointer, _sel_receiveObject_, _$$ref$1.pointer, @@ -916,7 +916,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_10bdlnc) + >(_z0xonr_protocolTrampoline_6yc3kd) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -951,7 +951,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_w57eou) + >(_z0xonr_protocolTrampoline_18v1jvf) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -985,7 +985,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_1ii2gzc) + >(_z0xonr_protocolTrampoline_zb0vvk) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1010,7 +1010,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_1jnam6p) + >(_z0xonr_protocolTrampoline_1mbt9g9) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1035,7 +1035,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_1ii2gzc) + >(_z0xonr_protocolTrampoline_zb0vvk) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1061,7 +1061,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_1jnam6p) + >(_z0xonr_protocolTrampoline_1mbt9g9) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1088,7 +1088,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_y6co5m) + >(_z0xonr_protocolTrampoline_cww6wh) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1115,7 +1115,7 @@ interface class BlockAnnotationTestProtocol$Builder { ffi.Pointer, ) > - >(_z0xonr_protocolTrampoline_an4r6w) + >(_z0xonr_protocolTrampoline_xr62hr) .cast(), objc.getProtocolMethodSignature( _protocol_BlockAnnotationTestProtocol, @@ -1153,7 +1153,7 @@ extension type EmptyObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [EmptyObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_EmptyObject, @@ -1161,13 +1161,13 @@ extension type EmptyObject._(objc.ObjCObject object$) /// alloc static EmptyObject alloc() { - final $ret = _objc_msgSend_zldla2(_class_EmptyObject, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_EmptyObject, _sel_alloc); return EmptyObject.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static EmptyObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_EmptyObject, _sel_allocWithZone_, zone, @@ -1177,7 +1177,7 @@ extension type EmptyObject._(objc.ObjCObject object$) /// new static EmptyObject new$() { - final $ret = _objc_msgSend_zldla2(_class_EmptyObject, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_EmptyObject, _sel_new); return EmptyObject.fromPointer($ret, retain: false, release: true); } @@ -1194,7 +1194,7 @@ extension EmptyObject$Methods on EmptyObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -1222,7 +1222,7 @@ extension type NSThread._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NSThread]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_NSThread, @@ -1230,13 +1230,13 @@ extension type NSThread._(objc.ObjCObject object$) /// alloc static NSThread alloc() { - final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_alloc); return NSThread.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NSThread allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_NSThread, _sel_allocWithZone_, zone, @@ -1251,7 +1251,7 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_NSThread, _sel_callStackReturnAddresses, ); @@ -1265,13 +1265,13 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_callStackSymbols); + final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_callStackSymbols); return objc.NSArray.fromPointer($ret, retain: true, release: true); } /// currentThread static NSThread getCurrentThread() { - final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_currentThread); + final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_currentThread); return NSThread.fromPointer($ret, retain: true, release: true); } @@ -1283,7 +1283,7 @@ extension type NSThread._(objc.ObjCObject object$) }) { final _$$ref = toTarget.ref; final _$$ref$1 = withObject?.ref; - _objc_msgSend_1xnczpu( + _objc_msgSend_lzbvjm( _class_NSThread, _sel_detachNewThreadSelector_toTarget_withObject_, selector, @@ -1302,7 +1302,7 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_NSThread, _sel_detachNewThreadWithBlock_, _$$ref.pointer, @@ -1311,7 +1311,7 @@ extension type NSThread._(objc.ObjCObject object$) /// exit static void exit() { - _objc_msgSend_h9i570(_class_NSThread, _sel_exit); + _objc_msgSend_1pl9qdv(_class_NSThread, _sel_exit); } /// isMainThread @@ -1321,12 +1321,12 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_13h8okt(_class_NSThread, _sel_isMainThread); + return _objc_msgSend_91o635(_class_NSThread, _sel_isMainThread); } /// isMultiThreaded static bool isMultiThreaded() { - return _objc_msgSend_13h8okt(_class_NSThread, _sel_isMultiThreaded); + return _objc_msgSend_91o635(_class_NSThread, _sel_isMultiThreaded); } /// mainThread @@ -1336,41 +1336,37 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_mainThread); + final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_mainThread); return NSThread.fromPointer($ret, retain: true, release: true); } /// new static NSThread new$() { - final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_new); return NSThread.fromPointer($ret, retain: false, release: true); } /// setThreadPriority: static bool setThreadPriority(double p) { - return _objc_msgSend_6r70rc(_class_NSThread, _sel_setThreadPriority_, p); + return _objc_msgSend_18chyc(_class_NSThread, _sel_setThreadPriority_, p); } /// sleepForTimeInterval: static void sleepForTimeInterval(double ti) { - _objc_msgSend_q6vpml(_class_NSThread, _sel_sleepForTimeInterval_, ti); + _objc_msgSend_hwm8nu(_class_NSThread, _sel_sleepForTimeInterval_, ti); } /// sleepUntilDate: static void sleepUntilDate(objc.NSDate date) { final _$$ref = date.ref; - _objc_msgSend_1d1siln( - _class_NSThread, - _sel_sleepUntilDate_, - _$$ref.pointer, - ); + _objc_msgSend_xtuoz7(_class_NSThread, _sel_sleepUntilDate_, _$$ref.pointer); } /// threadPriority static double threadPriority$1() { return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_class_NSThread, _sel_threadPriority) - : _objc_msgSend_9pr6kk(_class_NSThread, _sel_threadPriority); + ? _objc_msgSend_1ukqyt8Fpret(_class_NSThread, _sel_threadPriority) + : _objc_msgSend_1ukqyt8(_class_NSThread, _sel_threadPriority); } /// Returns a new instance of NSThread constructed with the default `new` method. @@ -1386,7 +1382,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_cancel); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_cancel); } /// init @@ -1397,7 +1393,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -1413,7 +1409,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _$$ref.retainAndReturnPointer(), _sel_initWithBlock_, _$$ref$1.pointer, @@ -1435,7 +1431,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_4xjs7i( + final $ret = _objc_msgSend_1eldwyi( _$$ref.retainAndReturnPointer(), _sel_initWithTarget_selector_object_, _$$ref$1.pointer, @@ -1453,7 +1449,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isCancelled); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isCancelled); } /// isExecuting @@ -1464,7 +1460,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isExecuting); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isExecuting); } /// isFinished @@ -1475,7 +1471,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isFinished); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isFinished); } /// isMainThread @@ -1486,7 +1482,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isMainThread); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMainThread); } /// main @@ -1497,7 +1493,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_main); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_main); } /// name @@ -1508,7 +1504,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -1522,7 +1518,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - final $ret = _objc_msgSend_1r6doy1(_$$ref.pointer, _sel_qualityOfService); + final $ret = _objc_msgSend_oi8iq9(_$$ref.pointer, _sel_qualityOfService); return objc.NSQualityOfService.fromValue($ret); } @@ -1535,7 +1531,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setName_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -1550,7 +1546,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_bxtbje( + _objc_msgSend_n2da1l( _$$ref.pointer, _sel_setQualityOfService_, value.value, @@ -1565,7 +1561,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_rfcpxf(_$$ref.pointer, _sel_setStackSize_, value); + _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_setStackSize_, value); } /// setThreadPriority: @@ -1576,7 +1572,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - _objc_msgSend_q6vpml(_$$ref.pointer, _sel_setThreadPriority_, value); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setThreadPriority_, value); } /// stackSize @@ -1587,7 +1583,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_stackSize); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_stackSize); } /// start @@ -1598,13 +1594,13 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_start); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_start); } /// threadDictionary objc.NSMutableDictionary get threadDictionary { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_threadDictionary); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_threadDictionary); return objc.NSMutableDictionary.fromPointer( $ret, retain: true, @@ -1621,8 +1617,8 @@ extension NSThread$Methods on NSThread { macOS: (false, (10, 6, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_threadPriority) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_threadPriority); + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_threadPriority) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_threadPriority); } } @@ -2507,7 +2503,7 @@ abstract final class ObjCBlock_ffiVoid { }) { return objc.ObjCBlock( objc.newBlockPort( - _z0xonr_wrapListenerBlock_h9i570, + _z0xonr_wrapListenerBlock_1pl9qdv, (ffi.Pointer rawArgs) => fn(), keepIsolateAlive, ), @@ -2532,7 +2528,7 @@ abstract final class ObjCBlock_ffiVoid { }) { return objc.ObjCBlock( objc.newBlockingBlockPort( - _z0xonr_wrapBlockingBlock_h9i570, + _z0xonr_wrapBlockingBlock_1pl9qdv, (ffi.Pointer rawArgs) => fn(), keepIsolateAlive, ), @@ -2654,7 +2650,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_EmptyObject { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, EmptyObject) >( - objc.newBlockPort(_z0xonr_wrapListenerBlock_w57eou, ( + objc.newBlockPort(_z0xonr_wrapListenerBlock_18v1jvf, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1wgsnfr.fromPointer( @@ -2688,7 +2684,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_EmptyObject { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, EmptyObject) >( - objc.newBlockingBlockPort(_z0xonr_wrapBlockingBlock_w57eou, ( + objc.newBlockingBlockPort(_z0xonr_wrapBlockingBlock_18v1jvf, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1wgsnfr.fromPointer( @@ -2866,7 +2862,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_EmptyObject$1 { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.Consumed) >( - objc.newBlockPort(_z0xonr_wrapListenerBlock_10bdlnc, ( + objc.newBlockPort(_z0xonr_wrapListenerBlock_6yc3kd, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_o9cz58.fromPointer( @@ -2902,7 +2898,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_EmptyObject$1 { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.Consumed) >( - objc.newBlockingBlockPort(_z0xonr_wrapBlockingBlock_10bdlnc, ( + objc.newBlockingBlockPort(_z0xonr_wrapBlockingBlock_6yc3kd, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_o9cz58.fromPointer( @@ -3011,7 +3007,7 @@ extension type _BlockArgs_1wgsnfr._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1wgsnfr]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1wgsnfr, @@ -3021,12 +3017,12 @@ extension type _BlockArgs_1wgsnfr._(objc.ObjCObject object$) extension _BlockArgs_1wgsnfr$Methods on _BlockArgs_1wgsnfr { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); } EmptyObject get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); return EmptyObject.fromPointer($ret, retain: true, release: true); } } @@ -3050,7 +3046,7 @@ extension type _BlockArgs_ii17hk._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_ii17hk]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_ii17hk, @@ -3078,7 +3074,7 @@ extension type _BlockArgs_o9cz58._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_o9cz58]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_o9cz58, @@ -3088,12 +3084,12 @@ extension type _BlockArgs_o9cz58._(objc.ObjCObject object$) extension _BlockArgs_o9cz58$Methods on _BlockArgs_o9cz58 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); } EmptyObject get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); return EmptyObject.fromPointer($ret, retain: true, release: true); } } @@ -3127,69 +3123,71 @@ final _class_NSThread = objc.getClass( ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_w57eou', + symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_18v1jvf', ) external ffi.Pointer _class__BlockArgs_1wgsnfr_raw; final _class__BlockArgs_1wgsnfr = objc.getClass( - "_z0xonr_BlockArgs_w57eou", + "_z0xonr_BlockArgs_18v1jvf", () => ffi.Native.addressOf>( _class__BlockArgs_1wgsnfr_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_h9i570', + symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_1pl9qdv', ) external ffi.Pointer _class__BlockArgs_ii17hk_raw; final _class__BlockArgs_ii17hk = objc.getClass( - "_z0xonr_BlockArgs_h9i570", + "_z0xonr_BlockArgs_1pl9qdv", () => ffi.Native.addressOf>( _class__BlockArgs_ii17hk_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_10bdlnc', + symbol: 'OBJC_CLASS_\$__z0xonr_BlockArgs_6yc3kd', ) external ffi.Pointer _class__BlockArgs_o9cz58_raw; final _class__BlockArgs_o9cz58 = objc.getClass( - "_z0xonr_BlockArgs_10bdlnc", + "_z0xonr_BlockArgs_6yc3kd", () => ffi.Native.addressOf>( _class__BlockArgs_o9cz58_raw, ).cast(), ); -final _objc_msgSend_13h8okt = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_13wc3w1 = objc.msgSendPointer +final _objc_msgSend_18chyc = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Double, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, + double, ) >(); -final _objc_msgSend_1d1siln = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -3197,36 +3195,38 @@ final _objc_msgSend_1d1siln = objc.msgSendPointer > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1f0326b = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1ffzwv1 = objc.msgSendPointer +final _objc_msgSend_1eldwyi = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() @@ -3235,49 +3235,49 @@ final _objc_msgSend_1ffzwv1 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1i9r4xy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1icwge5 = objc.msgSendPointer +final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1ludlma = objc.msgSendPointer +final _objc_msgSend_1ploomx = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -3285,105 +3285,94 @@ final _objc_msgSend_1ludlma = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1r6doy1 = objc.msgSendPointer +final _objc_msgSend_1sotr3r = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1xnczpu = objc.msgSendPointer +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_3mxu14 = objc.msgSendPointer +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + double Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_441sd9 = objc.msgSendPointer +final _objc_msgSend_4js6t = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_4xjs7i = objc.msgSendPointer +final _objc_msgSend_6ex6p5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_6r70rc = objc.msgSendPointer +final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Double, ) > >() @@ -3391,46 +3380,49 @@ final _objc_msgSend_6r70rc = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, - double, ) >(); -final _objc_msgSend_9pr6kk = objc.msgSendPointer +final _objc_msgSend_e3qsqz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_9pr6kkFpret = objc.msgSendFpretPointer +final _objc_msgSend_f167m6 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_bxtbje = objc.msgSendPointer +final _objc_msgSend_hwm8nu = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + ffi.Double, ) > >() @@ -3438,30 +3430,37 @@ final _objc_msgSend_bxtbje = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - int, + double, ) >(); -final _objc_msgSend_eloak0 = objc.msgSendPointer +final _objc_msgSend_lzbvjm = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_h9i570 = objc.msgSendPointer +final _objc_msgSend_n2da1l = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() @@ -3469,49 +3468,47 @@ final _objc_msgSend_h9i570 = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_q6vpml = objc.msgSendPointer +final _objc_msgSend_nnxkei = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Double, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - double, + ffi.Pointer, ) >(); -final _objc_msgSend_rfcpxf = objc.msgSendPointer +final _objc_msgSend_oi8iq9 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_wr1klv = objc.msgSendPointer +final _objc_msgSend_uwvaik = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -3519,13 +3516,12 @@ final _objc_msgSend_wr1klv = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_wv523k = objc.msgSendPointer +final _objc_msgSend_w08mvv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -3533,16 +3529,16 @@ final _objc_msgSend_wv523k = objc.msgSendPointer > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -3550,23 +3546,23 @@ final _objc_msgSend_xbndyy = objc.msgSendPointer > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_xw2lbc = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.m b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.m index 3835d53ab6..7fff0cad3f 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.m @@ -61,44 +61,44 @@ typedef id (^_ProtocolTrampoline)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -id _z0xonr_protocolTrampoline_1ii2gzc(id target, void * sel) { +id _z0xonr_protocolTrampoline_zb0vvk(id target, void * sel) { return ((_ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } typedef id (^_ProtocolTrampoline_1)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -id _z0xonr_protocolTrampoline_1jnam6p(id target, void * sel) { +id _z0xonr_protocolTrampoline_1mbt9g9(id target, void * sel) { return ((_ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } typedef id (^_ProtocolTrampoline_2)(void * sel, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -id _z0xonr_protocolTrampoline_an4r6w(id target, void * sel, id arg1) { +id _z0xonr_protocolTrampoline_xr62hr(id target, void * sel, id arg1) { return ((_ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } typedef id (^_ProtocolTrampoline_3)(void * sel, id arg1 __attribute__((ns_consumed))); __attribute__((visibility("default"))) __attribute__((used)) -id _z0xonr_protocolTrampoline_y6co5m(id target, void * sel, id arg1 __attribute__((ns_consumed))) { +id _z0xonr_protocolTrampoline_cww6wh(id target, void * sel, id arg1 __attribute__((ns_consumed))) { return ((_ProtocolTrampoline_3)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } __attribute__((visibility("default"))) -@interface _z0xonr_BlockArgs_h9i570 : NSObject +@interface _z0xonr_BlockArgs_1pl9qdv : NSObject @property (copy) id block; @end -@implementation _z0xonr_BlockArgs_h9i570 +@implementation _z0xonr_BlockArgs_1pl9qdv @end typedef void (^_ListenerTrampoline)(void); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _z0xonr_wrapListenerBlock_h9i570( +_ListenerTrampoline _z0xonr_wrapListenerBlock_1pl9qdv( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline weakSelfBlock = nil; _ListenerTrampoline strongSelfBlock = [^void() { @autoreleasepool { - _z0xonr_BlockArgs_h9i570* args = [[_z0xonr_BlockArgs_h9i570 alloc] init]; + _z0xonr_BlockArgs_1pl9qdv* args = [[_z0xonr_BlockArgs_1pl9qdv alloc] init]; args.block = weakSelfBlock; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -110,18 +110,18 @@ _ListenerTrampoline _z0xonr_wrapListenerBlock_h9i570( typedef void (^_BlockingTrampoline)(void * waiter); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _z0xonr_wrapBlockingBlock_h9i570(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline _z0xonr_wrapBlockingBlock_1pl9qdv(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(), { @autoreleasepool { - _z0xonr_BlockArgs_h9i570* args = [[_z0xonr_BlockArgs_h9i570 alloc] init]; + _z0xonr_BlockArgs_1pl9qdv* args = [[_z0xonr_BlockArgs_1pl9qdv alloc] init]; args.block = weakSelfBlock; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _z0xonr_BlockArgs_h9i570* args = [[_z0xonr_BlockArgs_h9i570 alloc] init]; + _z0xonr_BlockArgs_1pl9qdv* args = [[_z0xonr_BlockArgs_1pl9qdv alloc] init]; args.block = weakSelfBlock; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -130,22 +130,22 @@ _ListenerTrampoline _z0xonr_wrapBlockingBlock_h9i570(int64_t port, DOBJC_Context } __attribute__((visibility("default"))) -@interface _z0xonr_BlockArgs_w57eou : NSObject +@interface _z0xonr_BlockArgs_18v1jvf : NSObject @property (copy) id block; @property void * arg0; @property (strong) id arg1; @end -@implementation _z0xonr_BlockArgs_w57eou +@implementation _z0xonr_BlockArgs_18v1jvf @end typedef void (^_ListenerTrampoline_1)(void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _z0xonr_wrapListenerBlock_w57eou( +_ListenerTrampoline_1 _z0xonr_wrapListenerBlock_18v1jvf( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_1 weakSelfBlock = nil; _ListenerTrampoline_1 strongSelfBlock = [^void(void * arg0, id arg1) { @autoreleasepool { - _z0xonr_BlockArgs_w57eou* args = [[_z0xonr_BlockArgs_w57eou alloc] init]; + _z0xonr_BlockArgs_18v1jvf* args = [[_z0xonr_BlockArgs_18v1jvf alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -158,11 +158,11 @@ _ListenerTrampoline_1 _z0xonr_wrapListenerBlock_w57eou( typedef void (^_BlockingTrampoline_1)(void * waiter, void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _z0xonr_wrapBlockingBlock_w57eou(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_1 _z0xonr_wrapBlockingBlock_18v1jvf(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_1, ^void(void * arg0, id arg1), { @autoreleasepool { - _z0xonr_BlockArgs_w57eou* args = [[_z0xonr_BlockArgs_w57eou alloc] init]; + _z0xonr_BlockArgs_18v1jvf* args = [[_z0xonr_BlockArgs_18v1jvf alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -170,7 +170,7 @@ _ListenerTrampoline_1 _z0xonr_wrapBlockingBlock_w57eou(int64_t port, DOBJC_Conte } }, { @autoreleasepool { - _z0xonr_BlockArgs_w57eou* args = [[_z0xonr_BlockArgs_w57eou alloc] init]; + _z0xonr_BlockArgs_18v1jvf* args = [[_z0xonr_BlockArgs_18v1jvf alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -181,27 +181,27 @@ _ListenerTrampoline_1 _z0xonr_wrapBlockingBlock_w57eou(int64_t port, DOBJC_Conte typedef void (^_ProtocolTrampoline_4)(void * sel, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -void _z0xonr_protocolTrampoline_w57eou(id target, void * sel, id arg1) { +void _z0xonr_protocolTrampoline_18v1jvf(id target, void * sel, id arg1) { return ((_ProtocolTrampoline_4)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } __attribute__((visibility("default"))) -@interface _z0xonr_BlockArgs_10bdlnc : NSObject +@interface _z0xonr_BlockArgs_6yc3kd : NSObject @property (copy) id block; @property void * arg0; @property (strong) id arg1; @end -@implementation _z0xonr_BlockArgs_10bdlnc +@implementation _z0xonr_BlockArgs_6yc3kd @end typedef void (^_ListenerTrampoline_2)(void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _z0xonr_wrapListenerBlock_10bdlnc( +_ListenerTrampoline_2 _z0xonr_wrapListenerBlock_6yc3kd( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_2 weakSelfBlock = nil; _ListenerTrampoline_2 strongSelfBlock = [^void(void * arg0, id arg1) { @autoreleasepool { - _z0xonr_BlockArgs_10bdlnc* args = [[_z0xonr_BlockArgs_10bdlnc alloc] init]; + _z0xonr_BlockArgs_6yc3kd* args = [[_z0xonr_BlockArgs_6yc3kd alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -214,11 +214,11 @@ _ListenerTrampoline_2 _z0xonr_wrapListenerBlock_10bdlnc( typedef void (^_BlockingTrampoline_2)(void * waiter, void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _z0xonr_wrapBlockingBlock_10bdlnc(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_2 _z0xonr_wrapBlockingBlock_6yc3kd(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_2, ^void(void * arg0, id arg1), { @autoreleasepool { - _z0xonr_BlockArgs_10bdlnc* args = [[_z0xonr_BlockArgs_10bdlnc alloc] init]; + _z0xonr_BlockArgs_6yc3kd* args = [[_z0xonr_BlockArgs_6yc3kd alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -226,7 +226,7 @@ _ListenerTrampoline_2 _z0xonr_wrapBlockingBlock_10bdlnc(int64_t port, DOBJC_Cont } }, { @autoreleasepool { - _z0xonr_BlockArgs_10bdlnc* args = [[_z0xonr_BlockArgs_10bdlnc alloc] init]; + _z0xonr_BlockArgs_6yc3kd* args = [[_z0xonr_BlockArgs_6yc3kd alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -237,7 +237,7 @@ _ListenerTrampoline_2 _z0xonr_wrapBlockingBlock_10bdlnc(int64_t port, DOBJC_Cont typedef void (^_ProtocolTrampoline_5)(void * sel, id arg1 __attribute__((ns_consumed))); __attribute__((visibility("default"))) __attribute__((used)) -void _z0xonr_protocolTrampoline_10bdlnc(id target, void * sel, id arg1 __attribute__((ns_consumed))) { +void _z0xonr_protocolTrampoline_6yc3kd(id target, void * sel, id arg1 __attribute__((ns_consumed))) { return ((_ProtocolTrampoline_5)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } #undef BLOCKING_BLOCK_IMPL diff --git a/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart index 9f125ce0f6..3dc34fbed9 100644 --- a/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -35,7 +35,7 @@ extension type BlockInheritTestBase._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BlockInheritTestBase]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BlockInheritTestBase, @@ -43,13 +43,13 @@ extension type BlockInheritTestBase._(objc.ObjCObject object$) /// alloc static BlockInheritTestBase alloc() { - final $ret = _objc_msgSend_zldla2(_class_BlockInheritTestBase, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_BlockInheritTestBase, _sel_alloc); return BlockInheritTestBase.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BlockInheritTestBase allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BlockInheritTestBase, _sel_allocWithZone_, zone, @@ -59,7 +59,7 @@ extension type BlockInheritTestBase._(objc.ObjCObject object$) /// new static BlockInheritTestBase new$() { - final $ret = _objc_msgSend_zldla2(_class_BlockInheritTestBase, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BlockInheritTestBase, _sel_new); return BlockInheritTestBase.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { bool acceptAnimal(Platypus platypus) { final _$$ref = object$.ref; final _$$ref$1 = platypus.ref; - return _objc_msgSend_xbndyy( + return _objc_msgSend_19nvye5( _$$ref.pointer, _sel_acceptAnimal_, _$$ref$1.pointer, @@ -82,7 +82,7 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { /// getAccepter DartAcceptPlatypus getAccepter() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_getAccepter); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_getAccepter); return ObjCBlock_bool_Platypus.fromPointer( $ret, retain: true, @@ -93,14 +93,14 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { /// getAnimal Mammal getAnimal() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_getAnimal); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_getAnimal); return Mammal.fromPointer($ret, retain: true, release: true); } /// getReturner DartReturnMammal getReturner() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_getReturner); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_getReturner); return ObjCBlock_Mammal.fromPointer($ret, retain: true, release: true); } @@ -112,7 +112,7 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -123,7 +123,7 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { bool invokeAccepter(DartAcceptMammal accepter) { final _$$ref = object$.ref; final _$$ref$1 = accepter.ref; - return _objc_msgSend_xgm4u7( + return _objc_msgSend_z0nr1o( _$$ref.pointer, _sel_invokeAccepter_, _$$ref$1.pointer, @@ -134,7 +134,7 @@ extension BlockInheritTestBase$Methods on BlockInheritTestBase { Mammal invokeReturner(DartReturnPlatypus returner) { final _$$ref = object$.ref; final _$$ref$1 = returner.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _$$ref.pointer, _sel_invokeReturner_, _$$ref$1.pointer, @@ -163,7 +163,7 @@ extension type BlockInheritTestChild._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BlockInheritTestChild]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BlockInheritTestChild, @@ -171,7 +171,10 @@ extension type BlockInheritTestChild._(objc.ObjCObject object$) /// alloc static BlockInheritTestChild alloc() { - final $ret = _objc_msgSend_zldla2(_class_BlockInheritTestChild, _sel_alloc); + final $ret = _objc_msgSend_151sglz( + _class_BlockInheritTestChild, + _sel_alloc, + ); return BlockInheritTestChild.fromPointer( $ret, retain: false, @@ -181,7 +184,7 @@ extension type BlockInheritTestChild._(objc.ObjCObject object$) /// allocWithZone: static BlockInheritTestChild allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BlockInheritTestChild, _sel_allocWithZone_, zone, @@ -195,7 +198,7 @@ extension type BlockInheritTestChild._(objc.ObjCObject object$) /// new static BlockInheritTestChild new$() { - final $ret = _objc_msgSend_zldla2(_class_BlockInheritTestChild, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BlockInheritTestChild, _sel_new); return BlockInheritTestChild.fromPointer( $ret, retain: false, @@ -212,7 +215,7 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { bool acceptAnimal(Mammal mammal) { final _$$ref = object$.ref; final _$$ref$1 = mammal.ref; - return _objc_msgSend_xbndyy( + return _objc_msgSend_19nvye5( _$$ref.pointer, _sel_acceptAnimal_, _$$ref$1.pointer, @@ -222,21 +225,21 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { /// getAccepter DartAcceptMammal getAccepter() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_getAccepter); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_getAccepter); return ObjCBlock_bool_Mammal.fromPointer($ret, retain: true, release: true); } /// getAnimal Platypus getAnimal() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_getAnimal); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_getAnimal); return Platypus.fromPointer($ret, retain: true, release: true); } /// getReturner DartReturnPlatypus getReturner() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_getReturner); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_getReturner); return ObjCBlock_Platypus.fromPointer($ret, retain: true, release: true); } @@ -248,7 +251,7 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -263,7 +266,7 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { bool invokeAccepter(DartAcceptPlatypus accepter) { final _$$ref = object$.ref; final _$$ref$1 = accepter.ref; - return _objc_msgSend_xgm4u7( + return _objc_msgSend_z0nr1o( _$$ref.pointer, _sel_invokeAccepter_, _$$ref$1.pointer, @@ -274,7 +277,7 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { Mammal invokeReturner(DartReturnMammal returner) { final _$$ref = object$.ref; final _$$ref$1 = returner.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _$$ref.pointer, _sel_invokeReturner_, _$$ref$1.pointer, @@ -303,7 +306,7 @@ extension type Mammal._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Mammal]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_Mammal, @@ -311,13 +314,13 @@ extension type Mammal._(objc.ObjCObject object$) /// alloc static Mammal alloc() { - final $ret = _objc_msgSend_zldla2(_class_Mammal, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Mammal, _sel_alloc); return Mammal.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Mammal allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_Mammal, _sel_allocWithZone_, zone, @@ -327,7 +330,7 @@ extension type Mammal._(objc.ObjCObject object$) /// new static Mammal new$() { - final $ret = _objc_msgSend_zldla2(_class_Mammal, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Mammal, _sel_new); return Mammal.fromPointer($ret, retain: false, release: true); } @@ -344,7 +347,7 @@ extension Mammal$Methods on Mammal { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -354,7 +357,7 @@ extension Mammal$Methods on Mammal { /// laysEggs bool laysEggs() { final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_laysEggs); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_laysEggs); } } @@ -789,7 +792,7 @@ extension type Platypus._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Platypus]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_Platypus, @@ -797,13 +800,13 @@ extension type Platypus._(objc.ObjCObject object$) /// alloc static Platypus alloc() { - final $ret = _objc_msgSend_zldla2(_class_Platypus, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Platypus, _sel_alloc); return Platypus.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Platypus allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_Platypus, _sel_allocWithZone_, zone, @@ -813,7 +816,7 @@ extension type Platypus._(objc.ObjCObject object$) /// new static Platypus new$() { - final $ret = _objc_msgSend_zldla2(_class_Platypus, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Platypus, _sel_new); return Platypus.fromPointer($ret, retain: false, release: true); } @@ -830,7 +833,7 @@ extension Platypus$Methods on Platypus { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -878,37 +881,39 @@ final _class_Platypus = objc.getClass( _class_Platypus_raw, ).cast(), ); -final _objc_msgSend_13h8okt = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_13wc3w1 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -925,70 +930,68 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1ludlma = objc.msgSendPointer +final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_nnxkei = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xgm4u7 = objc.msgSendPointer +final _objc_msgSend_uwvaik = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_z0nr1o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_acceptAnimal_ = objc.registerName("acceptAnimal:"); diff --git a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart index 354f7734f1..14de93cbb6 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -21,7 +21,7 @@ const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_1d1siln( +external ffi.Pointer _18tji2r_wrapBlockingBlock_1bqef4y( int port, ffi.Pointer context, ffi.Pointer< @@ -41,7 +41,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_1d1siln( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_1f6q4sj( +external ffi.Pointer _18tji2r_wrapBlockingBlock_1d9e4oe( int port, ffi.Pointer context, ffi.Pointer< @@ -61,7 +61,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_1f6q4sj( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_1vg1ydp( +external ffi.Pointer _18tji2r_wrapBlockingBlock_1pl9qdv( int port, ffi.Pointer context, ffi.Pointer< @@ -81,7 +81,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_1vg1ydp( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_1y99z5g( +external ffi.Pointer _18tji2r_wrapBlockingBlock_f167m6( int port, ffi.Pointer context, ffi.Pointer< @@ -101,7 +101,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_1y99z5g( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_h9i570( +external ffi.Pointer _18tji2r_wrapBlockingBlock_li50va( int port, ffi.Pointer context, ffi.Pointer< @@ -121,7 +121,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_h9i570( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_j5cnrc( +external ffi.Pointer _18tji2r_wrapBlockingBlock_ru30ue( int port, ffi.Pointer context, ffi.Pointer< @@ -141,7 +141,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_j5cnrc( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_mx4mc( +external ffi.Pointer _18tji2r_wrapBlockingBlock_xtuoz7( int port, ffi.Pointer context, ffi.Pointer< @@ -161,7 +161,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_mx4mc( >, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapBlockingBlock_wv523k( +external ffi.Pointer _18tji2r_wrapBlockingBlock_yhkuco( int port, ffi.Pointer context, ffi.Pointer< @@ -176,7 +176,7 @@ external ffi.Pointer _18tji2r_wrapBlockingBlock_wv523k( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_1d1siln( +external ffi.Pointer _18tji2r_wrapListenerBlock_1bqef4y( int port, ffi.Pointer context, ); @@ -187,7 +187,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_1d1siln( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_1f6q4sj( +external ffi.Pointer _18tji2r_wrapListenerBlock_1d9e4oe( int port, ffi.Pointer context, ); @@ -198,7 +198,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_1f6q4sj( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_1vg1ydp( +external ffi.Pointer _18tji2r_wrapListenerBlock_1pl9qdv( int port, ffi.Pointer context, ); @@ -209,7 +209,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_1vg1ydp( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_1y99z5g( +external ffi.Pointer _18tji2r_wrapListenerBlock_f167m6( int port, ffi.Pointer context, ); @@ -220,7 +220,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_1y99z5g( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_h9i570( +external ffi.Pointer _18tji2r_wrapListenerBlock_li50va( int port, ffi.Pointer context, ); @@ -231,7 +231,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_h9i570( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_j5cnrc( +external ffi.Pointer _18tji2r_wrapListenerBlock_ru30ue( int port, ffi.Pointer context, ); @@ -242,7 +242,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_j5cnrc( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_mx4mc( +external ffi.Pointer _18tji2r_wrapListenerBlock_xtuoz7( int port, ffi.Pointer context, ); @@ -253,7 +253,7 @@ external ffi.Pointer _18tji2r_wrapListenerBlock_mx4mc( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _18tji2r_wrapListenerBlock_wv523k( +external ffi.Pointer _18tji2r_wrapListenerBlock_yhkuco( int port, ffi.Pointer context, ); @@ -292,7 +292,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BlockTester]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BlockTester, @@ -300,13 +300,13 @@ extension type BlockTester._(objc.ObjCObject object$) /// alloc static BlockTester alloc() { - final $ret = _objc_msgSend_zldla2(_class_BlockTester, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_BlockTester, _sel_alloc); return BlockTester.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BlockTester allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BlockTester, _sel_allocWithZone_, zone, @@ -321,7 +321,7 @@ extension type BlockTester._(objc.ObjCObject object$) }) { final _$$ref = blockingBlock.ref; final _$$ref$1 = resultBlock.ref; - _objc_msgSend_5gexqg( + _objc_msgSend_18yul99( _class_BlockTester, _sel_blockingBlockTest_resultBlock_, _$$ref.pointer, @@ -333,12 +333,12 @@ extension type BlockTester._(objc.ObjCObject object$) static double callDoubleBlock(DartDoubleBlock block) { final _$$ref = block.ref; return objc.useMsgSendVariants - ? _objc_msgSend_1lhgxwoFpret( + ? _objc_msgSend_8mj2fvFpret( _class_BlockTester, _sel_callDoubleBlock_, _$$ref.pointer, ) - : _objc_msgSend_1lhgxwo( + : _objc_msgSend_8mj2fv( _class_BlockTester, _sel_callDoubleBlock_, _$$ref.pointer, @@ -349,12 +349,12 @@ extension type BlockTester._(objc.ObjCObject object$) static double callFloatBlock(DartFloatBlock block) { final _$$ref = block.ref; return objc.useMsgSendVariants - ? _objc_msgSend_y6ubniFpret( + ? _objc_msgSend_o8bnmsFpret( _class_BlockTester, _sel_callFloatBlock_, _$$ref.pointer, ) - : _objc_msgSend_y6ubni( + : _objc_msgSend_o8bnms( _class_BlockTester, _sel_callFloatBlock_, _$$ref.pointer, @@ -364,7 +364,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callListener: static void callListener(DartListenerBlock block) { final _$$ref = block.ref; - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_BlockTester, _sel_callListener_, _$$ref.pointer, @@ -377,7 +377,7 @@ extension type BlockTester._(objc.ObjCObject object$) required int x, }) { final _$$ref = block.ref; - _objc_msgSend_fv0mm3( + _objc_msgSend_po4t03( _class_BlockTester, _sel_callNSStringListener_x_, _$$ref.pointer, @@ -388,7 +388,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callNoTrampolineListener: static void callNoTrampolineListener(DartNoTrampolineListenerBlock block) { final _$$ref = block.ref; - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_BlockTester, _sel_callNoTrampolineListener_, _$$ref.pointer, @@ -398,7 +398,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callNullableListener: static void callNullableListener(DartNullableListenerBlock block) { final _$$ref = block.ref; - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_BlockTester, _sel_callNullableListener_, _$$ref.pointer, @@ -408,7 +408,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callNullableObjectBlock: static DummyObject? callNullableObjectBlock(DartNullableObjectBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockTester, _sel_callNullableObjectBlock_, _$$ref.pointer, @@ -423,7 +423,7 @@ extension type BlockTester._(objc.ObjCObject object$) objc.ObjCBlock block, ) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockTester, _sel_callNullableStringBlock_, _$$ref.pointer, @@ -436,7 +436,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callObjectBlock: static DummyObject callObjectBlock(DartObjectBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockTester, _sel_callObjectBlock_, _$$ref.pointer, @@ -447,7 +447,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callObjectListener: static void callObjectListener(DartObjectListenerBlock block) { final _$$ref = block.ref; - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_BlockTester, _sel_callObjectListener_, _$$ref.pointer, @@ -457,7 +457,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callOnNewThread: static NSThread callOnNewThread(DartVoidBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockTester, _sel_callOnNewThread_, _$$ref.pointer, @@ -468,7 +468,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callOnSameThread: static void callOnSameThread(DartVoidBlock block) { final _$$ref = block.ref; - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_BlockTester, _sel_callOnSameThread_, _$$ref.pointer, @@ -478,7 +478,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callOnSameThreadOutsideIsolate: static void callOnSameThreadOutsideIsolate(DartVoidBlock block) { final _$$ref = block.ref; - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_BlockTester, _sel_callOnSameThreadOutsideIsolate_, _$$ref.pointer, @@ -488,7 +488,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callSelectorBlock: static void callSelectorBlock(DartSelectorBlock block) { final _$$ref = block.ref; - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_BlockTester, _sel_callSelectorBlock_, _$$ref.pointer, @@ -498,7 +498,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callStructListener: static void callStructListener(DartStructListenerBlock block) { final _$$ref = block.ref; - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_BlockTester, _sel_callStructListener_, _$$ref.pointer, @@ -510,13 +510,13 @@ extension type BlockTester._(objc.ObjCObject object$) final _$$ref = block.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1tq0yezStret( + ? _objc_msgSend_1gew1vmStret( $ptr, _class_BlockTester, _sel_callVec4Block_, _$$ref.pointer, ) - : $ptr.ref = _objc_msgSend_1tq0yez( + : $ptr.ref = _objc_msgSend_1gew1vm( _class_BlockTester, _sel_callVec4Block_, _$$ref.pointer, @@ -531,7 +531,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// callWithBlockOnNewThread: static NSThread callWithBlockOnNewThread(DartListenerBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockTester, _sel_callWithBlockOnNewThread_, _$$ref.pointer, @@ -541,14 +541,14 @@ extension type BlockTester._(objc.ObjCObject object$) /// new static BlockTester new$() { - final $ret = _objc_msgSend_zldla2(_class_BlockTester, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BlockTester, _sel_new); return BlockTester.fromPointer($ret, retain: false, release: true); } /// newBlock:withMult: static DartIntBlock newBlock(DartBlockBlock block, {required int withMult}) { final _$$ref = block.ref; - final $ret = _objc_msgSend_haihhw( + final $ret = _objc_msgSend_jevgay( _class_BlockTester, _sel_newBlock_withMult_, _$$ref.pointer, @@ -563,7 +563,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// newBlockBlock: static DartBlockBlock newBlockBlock(int mult) { - final $ret = _objc_msgSend_1hl8uo( + final $ret = _objc_msgSend_w43bzz( _class_BlockTester, _sel_newBlockBlock_, mult, @@ -578,7 +578,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// newFromBlock: static BlockTester newFromBlock(DartIntBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockTester, _sel_newFromBlock_, _$$ref.pointer, @@ -589,7 +589,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// newFromListener: static BlockTester newFromListener(DartObjectListenerBlock block) { final _$$ref = block.ref; - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _class_BlockTester, _sel_newFromListener_, _$$ref.pointer, @@ -599,7 +599,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// newFromMultiplier: static BlockTester newFromMultiplier(int mult) { - final $ret = _objc_msgSend_18zkbft( + final $ret = _objc_msgSend_aclumu( _class_BlockTester, _sel_newFromMultiplier_, mult, @@ -609,7 +609,7 @@ extension type BlockTester._(objc.ObjCObject object$) /// setup: static void setup(ffi.Pointer apiData) { - _objc_msgSend_15is1z3(_class_BlockTester, _sel_setup_, apiData); + _objc_msgSend_ovsamd(_class_BlockTester, _sel_setup_, apiData); } /// Returns a new instance of BlockTester constructed with the default `new` method. @@ -620,13 +620,13 @@ extension BlockTester$Methods on BlockTester { /// call: int call(int x) { final _$$ref = object$.ref; - return _objc_msgSend_1jyzkwd(_$$ref.pointer, _sel_call_, x); + return _objc_msgSend_zo3bvx(_$$ref.pointer, _sel_call_, x); } /// getBlock DartIntBlock getBlock() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_getBlock); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_getBlock); return ObjCBlock_Int32_Int32.fromPointer( $ret, retain: false, @@ -642,7 +642,7 @@ extension BlockTester$Methods on BlockTester { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -653,7 +653,7 @@ extension BlockTester$Methods on BlockTester { void invokeAndReleaseListener(objc.ObjCObject? _$) { final _$$ref = object$.ref; final _$$ref$1 = _$?.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_invokeAndReleaseListener_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -663,7 +663,7 @@ extension BlockTester$Methods on BlockTester { /// invokeAndReleaseListenerOnNewThread void invokeAndReleaseListenerOnNewThread() { final _$$ref = object$.ref; - _objc_msgSend_h9i570( + _objc_msgSend_1pl9qdv( _$$ref.pointer, _sel_invokeAndReleaseListenerOnNewThread, ); @@ -672,7 +672,7 @@ extension BlockTester$Methods on BlockTester { /// pokeBlock void pokeBlock() { final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_pokeBlock); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pokeBlock); } } @@ -699,7 +699,7 @@ extension type DummyObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [DummyObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_DummyObject, @@ -707,13 +707,13 @@ extension type DummyObject._(objc.ObjCObject object$) /// alloc static DummyObject alloc() { - final $ret = _objc_msgSend_zldla2(_class_DummyObject, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_DummyObject, _sel_alloc); return DummyObject.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static DummyObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_DummyObject, _sel_allocWithZone_, zone, @@ -723,13 +723,13 @@ extension type DummyObject._(objc.ObjCObject object$) /// new static DummyObject new$() { - final $ret = _objc_msgSend_zldla2(_class_DummyObject, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_DummyObject, _sel_new); return DummyObject.fromPointer($ret, retain: false, release: true); } /// newWithCounter: static DummyObject newWithCounter(ffi.Pointer _counter) { - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _class_DummyObject, _sel_newWithCounter_, _counter, @@ -745,7 +745,7 @@ extension DummyObject$Methods on DummyObject { /// dealloc void dealloc() { final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_dealloc); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); } /// init @@ -756,7 +756,7 @@ extension DummyObject$Methods on DummyObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -766,7 +766,7 @@ extension DummyObject$Methods on DummyObject { /// initWithCounter: DummyObject initWithCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _$$ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter, @@ -777,7 +777,7 @@ extension DummyObject$Methods on DummyObject { /// setCounter: void setCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_setCounter_, _counter); + _objc_msgSend_yhkuco(_$$ref.pointer, _sel_setCounter_, _counter); } } @@ -814,7 +814,7 @@ extension type NSThread._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NSThread]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_NSThread, @@ -822,13 +822,13 @@ extension type NSThread._(objc.ObjCObject object$) /// alloc static NSThread alloc() { - final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_alloc); return NSThread.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NSThread allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_NSThread, _sel_allocWithZone_, zone, @@ -843,7 +843,7 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_NSThread, _sel_callStackReturnAddresses, ); @@ -857,13 +857,13 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_callStackSymbols); + final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_callStackSymbols); return objc.NSArray.fromPointer($ret, retain: true, release: true); } /// currentThread static NSThread getCurrentThread() { - final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_currentThread); + final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_currentThread); return NSThread.fromPointer($ret, retain: true, release: true); } @@ -875,7 +875,7 @@ extension type NSThread._(objc.ObjCObject object$) }) { final _$$ref = toTarget.ref; final _$$ref$1 = withObject?.ref; - _objc_msgSend_1xnczpu( + _objc_msgSend_lzbvjm( _class_NSThread, _sel_detachNewThreadSelector_toTarget_withObject_, selector, @@ -894,7 +894,7 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - _objc_msgSend_wv523k( + _objc_msgSend_f167m6( _class_NSThread, _sel_detachNewThreadWithBlock_, _$$ref.pointer, @@ -903,7 +903,7 @@ extension type NSThread._(objc.ObjCObject object$) /// exit static void exit() { - _objc_msgSend_h9i570(_class_NSThread, _sel_exit); + _objc_msgSend_1pl9qdv(_class_NSThread, _sel_exit); } /// isMainThread @@ -913,12 +913,12 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_13h8okt(_class_NSThread, _sel_isMainThread); + return _objc_msgSend_91o635(_class_NSThread, _sel_isMainThread); } /// isMultiThreaded static bool isMultiThreaded() { - return _objc_msgSend_13h8okt(_class_NSThread, _sel_isMultiThreaded); + return _objc_msgSend_91o635(_class_NSThread, _sel_isMultiThreaded); } /// mainThread @@ -928,41 +928,37 @@ extension type NSThread._(objc.ObjCObject object$) iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_mainThread); + final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_mainThread); return NSThread.fromPointer($ret, retain: true, release: true); } /// new static NSThread new$() { - final $ret = _objc_msgSend_zldla2(_class_NSThread, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_NSThread, _sel_new); return NSThread.fromPointer($ret, retain: false, release: true); } /// setThreadPriority: static bool setThreadPriority(double p) { - return _objc_msgSend_6r70rc(_class_NSThread, _sel_setThreadPriority_, p); + return _objc_msgSend_18chyc(_class_NSThread, _sel_setThreadPriority_, p); } /// sleepForTimeInterval: static void sleepForTimeInterval(double ti) { - _objc_msgSend_q6vpml(_class_NSThread, _sel_sleepForTimeInterval_, ti); + _objc_msgSend_hwm8nu(_class_NSThread, _sel_sleepForTimeInterval_, ti); } /// sleepUntilDate: static void sleepUntilDate(objc.NSDate date) { final _$$ref = date.ref; - _objc_msgSend_1d1siln( - _class_NSThread, - _sel_sleepUntilDate_, - _$$ref.pointer, - ); + _objc_msgSend_xtuoz7(_class_NSThread, _sel_sleepUntilDate_, _$$ref.pointer); } /// threadPriority static double threadPriority$1() { return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_class_NSThread, _sel_threadPriority) - : _objc_msgSend_9pr6kk(_class_NSThread, _sel_threadPriority); + ? _objc_msgSend_1ukqyt8Fpret(_class_NSThread, _sel_threadPriority) + : _objc_msgSend_1ukqyt8(_class_NSThread, _sel_threadPriority); } /// Returns a new instance of NSThread constructed with the default `new` method. @@ -978,7 +974,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_cancel); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_cancel); } /// init @@ -989,7 +985,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -1005,7 +1001,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_1ludlma( + final $ret = _objc_msgSend_nnxkei( _$$ref.retainAndReturnPointer(), _sel_initWithBlock_, _$$ref$1.pointer, @@ -1027,7 +1023,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_4xjs7i( + final $ret = _objc_msgSend_1eldwyi( _$$ref.retainAndReturnPointer(), _sel_initWithTarget_selector_object_, _$$ref$1.pointer, @@ -1045,7 +1041,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isCancelled); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isCancelled); } /// isExecuting @@ -1056,7 +1052,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isExecuting); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isExecuting); } /// isFinished @@ -1067,7 +1063,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isFinished); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isFinished); } /// isMainThread @@ -1078,7 +1074,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isMainThread); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMainThread); } /// main @@ -1089,7 +1085,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_main); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_main); } /// name @@ -1100,7 +1096,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_name); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_name); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -1114,7 +1110,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - final $ret = _objc_msgSend_1r6doy1(_$$ref.pointer, _sel_qualityOfService); + final $ret = _objc_msgSend_oi8iq9(_$$ref.pointer, _sel_qualityOfService); return objc.NSQualityOfService.fromValue($ret); } @@ -1127,7 +1123,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setName_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -1142,7 +1138,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0)), ); - _objc_msgSend_bxtbje( + _objc_msgSend_n2da1l( _$$ref.pointer, _sel_setQualityOfService_, value.value, @@ -1157,7 +1153,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_rfcpxf(_$$ref.pointer, _sel_setStackSize_, value); + _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_setStackSize_, value); } /// setThreadPriority: @@ -1168,7 +1164,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - _objc_msgSend_q6vpml(_$$ref.pointer, _sel_setThreadPriority_, value); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setThreadPriority_, value); } /// stackSize @@ -1179,7 +1175,7 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - return _objc_msgSend_3mxu14(_$$ref.pointer, _sel_stackSize); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_stackSize); } /// start @@ -1190,13 +1186,13 @@ extension NSThread$Methods on NSThread { iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0)), ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_start); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_start); } /// threadDictionary objc.NSMutableDictionary get threadDictionary { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_threadDictionary); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_threadDictionary); return objc.NSMutableDictionary.fromPointer( $ret, retain: true, @@ -1213,8 +1209,8 @@ extension NSThread$Methods on NSThread { macOS: (false, (10, 6, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_threadPriority) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_threadPriority); + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_threadPriority) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_threadPriority); } } @@ -2181,7 +2177,7 @@ abstract final class ObjCBlock_ffiVoid { }) { return objc.ObjCBlock( objc.newBlockPort( - _18tji2r_wrapListenerBlock_h9i570, + _18tji2r_wrapListenerBlock_1pl9qdv, (ffi.Pointer rawArgs) => fn(), keepIsolateAlive, ), @@ -2206,7 +2202,7 @@ abstract final class ObjCBlock_ffiVoid { }) { return objc.ObjCBlock( objc.newBlockingBlockPort( - _18tji2r_wrapBlockingBlock_h9i570, + _18tji2r_wrapBlockingBlock_1pl9qdv, (ffi.Pointer rawArgs) => fn(), keepIsolateAlive, ), @@ -2315,7 +2311,7 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_18tji2r_wrapListenerBlock_1d1siln, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_xtuoz7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1hqv45x.fromPointer( @@ -2346,7 +2342,7 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1d1siln, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_xtuoz7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1hqv45x.fromPointer( @@ -2488,7 +2484,7 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_18tji2r_wrapListenerBlock_1d1siln, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_xtuoz7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_te4g5k.fromPointer( @@ -2519,7 +2515,7 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1d1siln, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_xtuoz7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_te4g5k.fromPointer( @@ -2650,7 +2646,7 @@ abstract final class ObjCBlock_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_18tji2r_wrapListenerBlock_1f6q4sj, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_1bqef4y, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1liq3c0.fromPointer( @@ -2681,7 +2677,7 @@ abstract final class ObjCBlock_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1f6q4sj, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1bqef4y, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1liq3c0.fromPointer( @@ -2801,7 +2797,7 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockPort(_18tji2r_wrapListenerBlock_1vg1ydp, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_yhkuco, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_nge4yi.fromPointer( @@ -2832,7 +2828,7 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1vg1ydp, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_yhkuco, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_nge4yi.fromPointer( @@ -2983,7 +2979,7 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { return objc.ObjCBlock< ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) >( - objc.newBlockPort(_18tji2r_wrapListenerBlock_1y99z5g, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_li50va, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_bht217.fromPointer( @@ -3019,7 +3015,7 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { return objc.ObjCBlock< ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) >( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1y99z5g, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_li50va, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_bht217.fromPointer( @@ -3195,7 +3191,7 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { return objc.ObjCBlock< ffi.Void Function(objc.ObjCBlock) >( - objc.newBlockPort(_18tji2r_wrapListenerBlock_wv523k, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_f167m6, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_lgqwom.fromPointer( @@ -3228,7 +3224,7 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { return objc.ObjCBlock< ffi.Void Function(objc.ObjCBlock) >( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_wv523k, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_f167m6, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_lgqwom.fromPointer( @@ -3355,7 +3351,7 @@ abstract final class ObjCBlock_ffiVoid_NSString { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_18tji2r_wrapListenerBlock_1d1siln, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_xtuoz7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1vzvc26.fromPointer( @@ -3386,7 +3382,7 @@ abstract final class ObjCBlock_ffiVoid_NSString { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1d1siln, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_xtuoz7, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1vzvc26.fromPointer( @@ -3537,7 +3533,7 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_18tji2r_wrapListenerBlock_mx4mc, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_ru30ue, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_7ojdju.fromPointer( @@ -3568,7 +3564,7 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_mx4mc, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_ru30ue, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_7ojdju.fromPointer( @@ -3730,7 +3726,7 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockPort(_18tji2r_wrapListenerBlock_j5cnrc, ( + objc.newBlockPort(_18tji2r_wrapListenerBlock_1d9e4oe, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1b0erz1.fromPointer( @@ -3762,7 +3758,7 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { bool keepIsolateAlive = true, }) { return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_j5cnrc, ( + objc.newBlockingBlockPort(_18tji2r_wrapBlockingBlock_1d9e4oe, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1b0erz1.fromPointer( @@ -3912,7 +3908,7 @@ extension type _BlockArgs_1b0erz1._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1b0erz1]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1b0erz1, @@ -3922,7 +3918,7 @@ extension type _BlockArgs_1b0erz1._(objc.ObjCObject object$) extension _BlockArgs_1b0erz1$Methods on _BlockArgs_1b0erz1 { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1fen6hj(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1ovaulg(_$$ref.pointer, _sel_arg0); } } @@ -3945,7 +3941,7 @@ extension type _BlockArgs_1hqv45x._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1hqv45x]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1hqv45x, @@ -3955,7 +3951,7 @@ extension type _BlockArgs_1hqv45x._(objc.ObjCObject object$) extension _BlockArgs_1hqv45x$Methods on _BlockArgs_1hqv45x { DummyObject get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); return DummyObject.fromPointer($ret, retain: true, release: true); } } @@ -3979,7 +3975,7 @@ extension type _BlockArgs_1liq3c0._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1liq3c0]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1liq3c0, @@ -3989,7 +3985,7 @@ extension type _BlockArgs_1liq3c0._(objc.ObjCObject object$) extension _BlockArgs_1liq3c0$Methods on _BlockArgs_1liq3c0 { int get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_arg0); } } @@ -4012,7 +4008,7 @@ extension type _BlockArgs_1vzvc26._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1vzvc26]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1vzvc26, @@ -4022,7 +4018,7 @@ extension type _BlockArgs_1vzvc26._(objc.ObjCObject object$) extension _BlockArgs_1vzvc26$Methods on _BlockArgs_1vzvc26 { objc.NSString get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -4046,7 +4042,7 @@ extension type _BlockArgs_7ojdju._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_7ojdju]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_7ojdju, @@ -4058,8 +4054,8 @@ extension _BlockArgs_7ojdju$Methods on _BlockArgs_7ojdju { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_ksgj6Stret($ptr, _$$ref.pointer, _sel_arg0) - : $ptr.ref = _objc_msgSend_ksgj6(_$$ref.pointer, _sel_arg0); + ? _objc_msgSend_1oymdqcStret($ptr, _$$ref.pointer, _sel_arg0) + : $ptr.ref = _objc_msgSend_1oymdqc(_$$ref.pointer, _sel_arg0); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -4071,8 +4067,8 @@ extension _BlockArgs_7ojdju$Methods on _BlockArgs_7ojdju { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1ns26h5Stret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1ns26h5(_$$ref.pointer, _sel_arg1); + ? _objc_msgSend_o6r21bStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_o6r21b(_$$ref.pointer, _sel_arg1); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -4082,7 +4078,7 @@ extension _BlockArgs_7ojdju$Methods on _BlockArgs_7ojdju { objc.NSObject get arg2 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg2); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); return objc.NSObject.fromPointer($ret, retain: true, release: true); } } @@ -4106,7 +4102,7 @@ extension type _BlockArgs_bht217._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_bht217]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_bht217, @@ -4116,15 +4112,15 @@ extension type _BlockArgs_bht217._(objc.ObjCObject object$) extension _BlockArgs_bht217$Methods on _BlockArgs_bht217 { int get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_arg0); } Vec4 get arg1 { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1ns26h5Stret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1ns26h5(_$$ref.pointer, _sel_arg1); + ? _objc_msgSend_o6r21bStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_o6r21b(_$$ref.pointer, _sel_arg1); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -4134,7 +4130,7 @@ extension _BlockArgs_bht217$Methods on _BlockArgs_bht217 { ffi.Pointer get arg2 { final _$$ref = object$.ref; - return _objc_msgSend_59rf64(_$$ref.pointer, _sel_arg2); + return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_arg2); } } @@ -4157,7 +4153,7 @@ extension type _BlockArgs_ii17hk._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_ii17hk]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_ii17hk, @@ -4185,7 +4181,7 @@ extension type _BlockArgs_lgqwom._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_lgqwom]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_lgqwom, @@ -4195,7 +4191,7 @@ extension type _BlockArgs_lgqwom._(objc.ObjCObject object$) extension _BlockArgs_lgqwom$Methods on _BlockArgs_lgqwom { DartIntBlock get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_13wc3w1(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); return ObjCBlock_Int32_Int32.fromPointer($ret, retain: true, release: true); } } @@ -4219,7 +4215,7 @@ extension type _BlockArgs_nge4yi._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_nge4yi]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_nge4yi, @@ -4229,7 +4225,7 @@ extension type _BlockArgs_nge4yi._(objc.ObjCObject object$) extension _BlockArgs_nge4yi$Methods on _BlockArgs_nge4yi { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_8s7612(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_obqqme(_$$ref.pointer, _sel_arg0); } } @@ -4252,7 +4248,7 @@ extension type _BlockArgs_te4g5k._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_te4g5k]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_te4g5k, @@ -4262,7 +4258,7 @@ extension type _BlockArgs_te4g5k._(objc.ObjCObject object$) extension _BlockArgs_te4g5k$Methods on _BlockArgs_te4g5k { DummyObject? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : DummyObject.fromPointer($ret, retain: true, release: true); @@ -4298,173 +4294,177 @@ final _class_NSThread = objc.getClass( ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_j5cnrc', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1d9e4oe', ) external ffi.Pointer _class__BlockArgs_1b0erz1_raw; final _class__BlockArgs_1b0erz1 = objc.getClass( - "_18tji2r_BlockArgs_j5cnrc", + "_18tji2r_BlockArgs_1d9e4oe", () => ffi.Native.addressOf>( _class__BlockArgs_1b0erz1_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1d1siln', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_xtuoz7', ) external ffi.Pointer _class__BlockArgs_1hqv45x_raw; final _class__BlockArgs_1hqv45x = objc.getClass( - "_18tji2r_BlockArgs_1d1siln", + "_18tji2r_BlockArgs_xtuoz7", () => ffi.Native.addressOf>( _class__BlockArgs_1hqv45x_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1f6q4sj', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1bqef4y', ) external ffi.Pointer _class__BlockArgs_1liq3c0_raw; final _class__BlockArgs_1liq3c0 = objc.getClass( - "_18tji2r_BlockArgs_1f6q4sj", + "_18tji2r_BlockArgs_1bqef4y", () => ffi.Native.addressOf>( _class__BlockArgs_1liq3c0_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1d1siln', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_xtuoz7', ) external ffi.Pointer _class__BlockArgs_1vzvc26_raw; final _class__BlockArgs_1vzvc26 = objc.getClass( - "_18tji2r_BlockArgs_1d1siln", + "_18tji2r_BlockArgs_xtuoz7", () => ffi.Native.addressOf>( _class__BlockArgs_1vzvc26_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_mx4mc', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_ru30ue', ) external ffi.Pointer _class__BlockArgs_7ojdju_raw; final _class__BlockArgs_7ojdju = objc.getClass( - "_18tji2r_BlockArgs_mx4mc", + "_18tji2r_BlockArgs_ru30ue", () => ffi.Native.addressOf>( _class__BlockArgs_7ojdju_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1y99z5g', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_li50va', ) external ffi.Pointer _class__BlockArgs_bht217_raw; final _class__BlockArgs_bht217 = objc.getClass( - "_18tji2r_BlockArgs_1y99z5g", + "_18tji2r_BlockArgs_li50va", () => ffi.Native.addressOf>( _class__BlockArgs_bht217_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_h9i570', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1pl9qdv', ) external ffi.Pointer _class__BlockArgs_ii17hk_raw; final _class__BlockArgs_ii17hk = objc.getClass( - "_18tji2r_BlockArgs_h9i570", + "_18tji2r_BlockArgs_1pl9qdv", () => ffi.Native.addressOf>( _class__BlockArgs_ii17hk_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_wv523k', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_f167m6', ) external ffi.Pointer _class__BlockArgs_lgqwom_raw; final _class__BlockArgs_lgqwom = objc.getClass( - "_18tji2r_BlockArgs_wv523k", + "_18tji2r_BlockArgs_f167m6", () => ffi.Native.addressOf>( _class__BlockArgs_lgqwom_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1vg1ydp', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_yhkuco', ) external ffi.Pointer _class__BlockArgs_nge4yi_raw; final _class__BlockArgs_nge4yi = objc.getClass( - "_18tji2r_BlockArgs_1vg1ydp", + "_18tji2r_BlockArgs_yhkuco", () => ffi.Native.addressOf>( _class__BlockArgs_nge4yi_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_1d1siln', + symbol: 'OBJC_CLASS_\$__18tji2r_BlockArgs_xtuoz7', ) external ffi.Pointer _class__BlockArgs_te4g5k_raw; final _class__BlockArgs_te4g5k = objc.getClass( - "_18tji2r_BlockArgs_1d1siln", + "_18tji2r_BlockArgs_xtuoz7", () => ffi.Native.addressOf>( _class__BlockArgs_te4g5k_raw, ).cast(), ); -final _objc_msgSend_13h8okt = objc.msgSendPointer +final _objc_msgSend_129vhbw = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_13wc3w1 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_15is1z3 = objc.msgSendPointer +final _objc_msgSend_18chyc = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Double, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + double, ) >(); -final _objc_msgSend_18zkbft = objc.msgSendPointer +final _objc_msgSend_18yul99 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1d1siln = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -4472,97 +4472,102 @@ final _objc_msgSend_1d1siln = objc.msgSendPointer > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1fen6hj = objc.msgSendPointer +final _objc_msgSend_1eldwyi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1fuqfwb = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1hl8uo = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Int, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_1jyzkwd = objc.msgSendPointer +final _objc_msgSend_1gew1vm = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, ) > >() .asFunction< - int Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1lhgxwo = objc.msgSendPointer +final _objc_msgSend_1gew1vmStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -4570,66 +4575,65 @@ final _objc_msgSend_1lhgxwo = objc.msgSendPointer > >() .asFunction< - double Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1lhgxwoFpret = objc.msgSendFpretPointer +final _objc_msgSend_1i9r4xy = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - double Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1ludlma = objc.msgSendPointer +final _objc_msgSend_1ovaulg = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1ns26h5 = objc.msgSendPointer +final _objc_msgSend_1oymdqc = objc.msgSendPointer .cast< ffi.NativeFunction< - Vec4 Function( + Vec2 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - Vec4 Function( + Vec2 Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1ns26h5Stret = objc.msgSendStretPointer +final _objc_msgSend_1oymdqcStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) @@ -4637,358 +4641,351 @@ final _objc_msgSend_1ns26h5Stret = objc.msgSendStretPointer >() .asFunction< void Function( - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1r6doy1 = objc.msgSendPointer +final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1tq0yez = objc.msgSendPointer +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer .cast< ffi.NativeFunction< - Vec4 Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - Vec4 Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1tq0yezStret = objc.msgSendStretPointer +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( - ffi.Pointer, + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1uw8y6v = objc.msgSendPointer +final _objc_msgSend_8mj2fv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1vg1ydp = objc.msgSendPointer +final _objc_msgSend_8mj2fvFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1xnczpu = objc.msgSendPointer +final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_3mxu14 = objc.msgSendPointer +final _objc_msgSend_aclumu = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_4xjs7i = objc.msgSendPointer +final _objc_msgSend_f167m6 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_59rf64 = objc.msgSendPointer +final _objc_msgSend_hwm8nu = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Double, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + double, ) >(); -final _objc_msgSend_5gexqg = objc.msgSendPointer +final _objc_msgSend_jevgay = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_6r70rc = objc.msgSendPointer +final _objc_msgSend_lzbvjm = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Double, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - double, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_8s7612 = objc.msgSendPointer +final _objc_msgSend_n2da1l = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_9pr6kk = objc.msgSendPointer +final _objc_msgSend_nnxkei = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_9pr6kkFpret = objc.msgSendFpretPointer +final _objc_msgSend_o6r21b = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - double Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_bxtbje = objc.msgSendPointer +final _objc_msgSend_o6r21bStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Long, ) > >() .asFunction< void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_fv0mm3 = objc.msgSendPointer +final _objc_msgSend_o8bnms = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_h9i570 = objc.msgSendPointer +final _objc_msgSend_o8bnmsFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + double Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_haihhw = objc.msgSendPointer +final _objc_msgSend_obqqme = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Int, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int, ) >(); -final _objc_msgSend_ksgj6 = objc.msgSendPointer +final _objc_msgSend_oi8iq9 = objc.msgSendPointer .cast< ffi.NativeFunction< - Vec2 Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - Vec2 Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_ksgj6Stret = objc.msgSendStretPointer +final _objc_msgSend_ovsamd = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_q6vpml = objc.msgSendPointer +final _objc_msgSend_po4t03 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Double, + ffi.Pointer, + ffi.Int32, ) > >() @@ -4996,47 +4993,46 @@ final _objc_msgSend_q6vpml = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - double, + ffi.Pointer, + int, ) >(); -final _objc_msgSend_rfcpxf = objc.msgSendPointer +final _objc_msgSend_uwvaik = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_wv523k = objc.msgSendPointer +final _objc_msgSend_w43bzz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -5044,59 +5040,59 @@ final _objc_msgSend_xbndyy = objc.msgSendPointer > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_y6ubni = objc.msgSendPointer +final _objc_msgSend_xw2lbc = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - double Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_y6ubniFpret = objc.msgSendFpretPointer +final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - double Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_zo3bvx = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + int, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/block_test_bindings.m b/pkgs/ffigen/test/native_objc_test/block_test_bindings.m index df6586ec58..9dbe1c50b1 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/block_test_bindings.m @@ -57,21 +57,21 @@ __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_h9i570 : NSObject +@interface _18tji2r_BlockArgs_1pl9qdv : NSObject @property (copy) id block; @end -@implementation _18tji2r_BlockArgs_h9i570 +@implementation _18tji2r_BlockArgs_1pl9qdv @end typedef void (^_ListenerTrampoline)(void); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _18tji2r_wrapListenerBlock_h9i570( +_ListenerTrampoline _18tji2r_wrapListenerBlock_1pl9qdv( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline weakSelfBlock = nil; _ListenerTrampoline strongSelfBlock = [^void() { @autoreleasepool { - _18tji2r_BlockArgs_h9i570* args = [[_18tji2r_BlockArgs_h9i570 alloc] init]; + _18tji2r_BlockArgs_1pl9qdv* args = [[_18tji2r_BlockArgs_1pl9qdv alloc] init]; args.block = weakSelfBlock; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -83,18 +83,18 @@ _ListenerTrampoline _18tji2r_wrapListenerBlock_h9i570( typedef void (^_BlockingTrampoline)(void * waiter); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _18tji2r_wrapBlockingBlock_h9i570(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline _18tji2r_wrapBlockingBlock_1pl9qdv(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(), { @autoreleasepool { - _18tji2r_BlockArgs_h9i570* args = [[_18tji2r_BlockArgs_h9i570 alloc] init]; + _18tji2r_BlockArgs_1pl9qdv* args = [[_18tji2r_BlockArgs_1pl9qdv alloc] init]; args.block = weakSelfBlock; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_h9i570* args = [[_18tji2r_BlockArgs_h9i570 alloc] init]; + _18tji2r_BlockArgs_1pl9qdv* args = [[_18tji2r_BlockArgs_1pl9qdv alloc] init]; args.block = weakSelfBlock; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -103,21 +103,21 @@ _ListenerTrampoline _18tji2r_wrapBlockingBlock_h9i570(int64_t port, DOBJC_Contex } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_1d1siln : NSObject +@interface _18tji2r_BlockArgs_xtuoz7 : NSObject @property (copy) id block; @property (strong) id arg0; @end -@implementation _18tji2r_BlockArgs_1d1siln +@implementation _18tji2r_BlockArgs_xtuoz7 @end typedef void (^_ListenerTrampoline_1)(id arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _18tji2r_wrapListenerBlock_1d1siln( +_ListenerTrampoline_1 _18tji2r_wrapListenerBlock_xtuoz7( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_1 weakSelfBlock = nil; _ListenerTrampoline_1 strongSelfBlock = [^void(id arg0) { @autoreleasepool { - _18tji2r_BlockArgs_1d1siln* args = [[_18tji2r_BlockArgs_1d1siln alloc] init]; + _18tji2r_BlockArgs_xtuoz7* args = [[_18tji2r_BlockArgs_xtuoz7 alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -129,18 +129,18 @@ _ListenerTrampoline_1 _18tji2r_wrapListenerBlock_1d1siln( typedef void (^_BlockingTrampoline_1)(void * waiter, id arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _18tji2r_wrapBlockingBlock_1d1siln(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_1 _18tji2r_wrapBlockingBlock_xtuoz7(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_1, ^void(id arg0), { @autoreleasepool { - _18tji2r_BlockArgs_1d1siln* args = [[_18tji2r_BlockArgs_1d1siln alloc] init]; + _18tji2r_BlockArgs_xtuoz7* args = [[_18tji2r_BlockArgs_xtuoz7 alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_1d1siln* args = [[_18tji2r_BlockArgs_1d1siln alloc] init]; + _18tji2r_BlockArgs_xtuoz7* args = [[_18tji2r_BlockArgs_xtuoz7 alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -149,21 +149,21 @@ _ListenerTrampoline_1 _18tji2r_wrapBlockingBlock_1d1siln(int64_t port, DOBJC_Con } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_1f6q4sj : NSObject +@interface _18tji2r_BlockArgs_1bqef4y : NSObject @property (copy) id block; @property int32_t arg0; @end -@implementation _18tji2r_BlockArgs_1f6q4sj +@implementation _18tji2r_BlockArgs_1bqef4y @end typedef void (^_ListenerTrampoline_2)(int32_t arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _18tji2r_wrapListenerBlock_1f6q4sj( +_ListenerTrampoline_2 _18tji2r_wrapListenerBlock_1bqef4y( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_2 weakSelfBlock = nil; _ListenerTrampoline_2 strongSelfBlock = [^void(int32_t arg0) { @autoreleasepool { - _18tji2r_BlockArgs_1f6q4sj* args = [[_18tji2r_BlockArgs_1f6q4sj alloc] init]; + _18tji2r_BlockArgs_1bqef4y* args = [[_18tji2r_BlockArgs_1bqef4y alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -175,18 +175,18 @@ _ListenerTrampoline_2 _18tji2r_wrapListenerBlock_1f6q4sj( typedef void (^_BlockingTrampoline_2)(void * waiter, int32_t arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _18tji2r_wrapBlockingBlock_1f6q4sj(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_2 _18tji2r_wrapBlockingBlock_1bqef4y(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_2, ^void(int32_t arg0), { @autoreleasepool { - _18tji2r_BlockArgs_1f6q4sj* args = [[_18tji2r_BlockArgs_1f6q4sj alloc] init]; + _18tji2r_BlockArgs_1bqef4y* args = [[_18tji2r_BlockArgs_1bqef4y alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_1f6q4sj* args = [[_18tji2r_BlockArgs_1f6q4sj alloc] init]; + _18tji2r_BlockArgs_1bqef4y* args = [[_18tji2r_BlockArgs_1bqef4y alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -195,21 +195,21 @@ _ListenerTrampoline_2 _18tji2r_wrapBlockingBlock_1f6q4sj(int64_t port, DOBJC_Con } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_1vg1ydp : NSObject +@interface _18tji2r_BlockArgs_yhkuco : NSObject @property (copy) id block; @property int32_t * arg0; @end -@implementation _18tji2r_BlockArgs_1vg1ydp +@implementation _18tji2r_BlockArgs_yhkuco @end typedef void (^_ListenerTrampoline_3)(int32_t * arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_3 _18tji2r_wrapListenerBlock_1vg1ydp( +_ListenerTrampoline_3 _18tji2r_wrapListenerBlock_yhkuco( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_3 weakSelfBlock = nil; _ListenerTrampoline_3 strongSelfBlock = [^void(int32_t * arg0) { @autoreleasepool { - _18tji2r_BlockArgs_1vg1ydp* args = [[_18tji2r_BlockArgs_1vg1ydp alloc] init]; + _18tji2r_BlockArgs_yhkuco* args = [[_18tji2r_BlockArgs_yhkuco alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -221,18 +221,18 @@ _ListenerTrampoline_3 _18tji2r_wrapListenerBlock_1vg1ydp( typedef void (^_BlockingTrampoline_3)(void * waiter, int32_t * arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_3 _18tji2r_wrapBlockingBlock_1vg1ydp(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_3 _18tji2r_wrapBlockingBlock_yhkuco(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_3, ^void(int32_t * arg0), { @autoreleasepool { - _18tji2r_BlockArgs_1vg1ydp* args = [[_18tji2r_BlockArgs_1vg1ydp alloc] init]; + _18tji2r_BlockArgs_yhkuco* args = [[_18tji2r_BlockArgs_yhkuco alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_1vg1ydp* args = [[_18tji2r_BlockArgs_1vg1ydp alloc] init]; + _18tji2r_BlockArgs_yhkuco* args = [[_18tji2r_BlockArgs_yhkuco alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -241,23 +241,23 @@ _ListenerTrampoline_3 _18tji2r_wrapBlockingBlock_1vg1ydp(int64_t port, DOBJC_Con } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_1y99z5g : NSObject +@interface _18tji2r_BlockArgs_li50va : NSObject @property (copy) id block; @property int32_t arg0; @property Vec4 arg1; @property char * arg2; @end -@implementation _18tji2r_BlockArgs_1y99z5g +@implementation _18tji2r_BlockArgs_li50va @end typedef void (^_ListenerTrampoline_4)(int32_t arg0, Vec4 arg1, char * arg2); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_4 _18tji2r_wrapListenerBlock_1y99z5g( +_ListenerTrampoline_4 _18tji2r_wrapListenerBlock_li50va( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_4 weakSelfBlock = nil; _ListenerTrampoline_4 strongSelfBlock = [^void(int32_t arg0, Vec4 arg1, char * arg2) { @autoreleasepool { - _18tji2r_BlockArgs_1y99z5g* args = [[_18tji2r_BlockArgs_1y99z5g alloc] init]; + _18tji2r_BlockArgs_li50va* args = [[_18tji2r_BlockArgs_li50va alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -271,11 +271,11 @@ _ListenerTrampoline_4 _18tji2r_wrapListenerBlock_1y99z5g( typedef void (^_BlockingTrampoline_4)(void * waiter, int32_t arg0, Vec4 arg1, char * arg2); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_4 _18tji2r_wrapBlockingBlock_1y99z5g(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_4 _18tji2r_wrapBlockingBlock_li50va(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_4, ^void(int32_t arg0, Vec4 arg1, char * arg2), { @autoreleasepool { - _18tji2r_BlockArgs_1y99z5g* args = [[_18tji2r_BlockArgs_1y99z5g alloc] init]; + _18tji2r_BlockArgs_li50va* args = [[_18tji2r_BlockArgs_li50va alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -284,7 +284,7 @@ _ListenerTrampoline_4 _18tji2r_wrapBlockingBlock_1y99z5g(int64_t port, DOBJC_Con } }, { @autoreleasepool { - _18tji2r_BlockArgs_1y99z5g* args = [[_18tji2r_BlockArgs_1y99z5g alloc] init]; + _18tji2r_BlockArgs_li50va* args = [[_18tji2r_BlockArgs_li50va alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -295,21 +295,21 @@ _ListenerTrampoline_4 _18tji2r_wrapBlockingBlock_1y99z5g(int64_t port, DOBJC_Con } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_wv523k : NSObject +@interface _18tji2r_BlockArgs_f167m6 : NSObject @property (copy) id block; @property (copy) id arg0; @end -@implementation _18tji2r_BlockArgs_wv523k +@implementation _18tji2r_BlockArgs_f167m6 @end typedef void (^_ListenerTrampoline_5)(id arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_5 _18tji2r_wrapListenerBlock_wv523k( +_ListenerTrampoline_5 _18tji2r_wrapListenerBlock_f167m6( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_5 weakSelfBlock = nil; _ListenerTrampoline_5 strongSelfBlock = [^void(id arg0) { @autoreleasepool { - _18tji2r_BlockArgs_wv523k* args = [[_18tji2r_BlockArgs_wv523k alloc] init]; + _18tji2r_BlockArgs_f167m6* args = [[_18tji2r_BlockArgs_f167m6 alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -321,18 +321,18 @@ _ListenerTrampoline_5 _18tji2r_wrapListenerBlock_wv523k( typedef void (^_BlockingTrampoline_5)(void * waiter, id arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_5 _18tji2r_wrapBlockingBlock_wv523k(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_5 _18tji2r_wrapBlockingBlock_f167m6(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_5, ^void(id arg0), { @autoreleasepool { - _18tji2r_BlockArgs_wv523k* args = [[_18tji2r_BlockArgs_wv523k alloc] init]; + _18tji2r_BlockArgs_f167m6* args = [[_18tji2r_BlockArgs_f167m6 alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_wv523k* args = [[_18tji2r_BlockArgs_wv523k alloc] init]; + _18tji2r_BlockArgs_f167m6* args = [[_18tji2r_BlockArgs_f167m6 alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); @@ -341,23 +341,23 @@ _ListenerTrampoline_5 _18tji2r_wrapBlockingBlock_wv523k(int64_t port, DOBJC_Cont } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_mx4mc : NSObject +@interface _18tji2r_BlockArgs_ru30ue : NSObject @property (copy) id block; @property struct Vec2 arg0; @property Vec4 arg1; @property (strong) id arg2; @end -@implementation _18tji2r_BlockArgs_mx4mc +@implementation _18tji2r_BlockArgs_ru30ue @end typedef void (^_ListenerTrampoline_6)(struct Vec2 arg0, Vec4 arg1, id arg2); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_6 _18tji2r_wrapListenerBlock_mx4mc( +_ListenerTrampoline_6 _18tji2r_wrapListenerBlock_ru30ue( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_6 weakSelfBlock = nil; _ListenerTrampoline_6 strongSelfBlock = [^void(struct Vec2 arg0, Vec4 arg1, id arg2) { @autoreleasepool { - _18tji2r_BlockArgs_mx4mc* args = [[_18tji2r_BlockArgs_mx4mc alloc] init]; + _18tji2r_BlockArgs_ru30ue* args = [[_18tji2r_BlockArgs_ru30ue alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -371,11 +371,11 @@ _ListenerTrampoline_6 _18tji2r_wrapListenerBlock_mx4mc( typedef void (^_BlockingTrampoline_6)(void * waiter, struct Vec2 arg0, Vec4 arg1, id arg2); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_6 _18tji2r_wrapBlockingBlock_mx4mc(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_6 _18tji2r_wrapBlockingBlock_ru30ue(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_6, ^void(struct Vec2 arg0, Vec4 arg1, id arg2), { @autoreleasepool { - _18tji2r_BlockArgs_mx4mc* args = [[_18tji2r_BlockArgs_mx4mc alloc] init]; + _18tji2r_BlockArgs_ru30ue* args = [[_18tji2r_BlockArgs_ru30ue alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -384,7 +384,7 @@ _ListenerTrampoline_6 _18tji2r_wrapBlockingBlock_mx4mc(int64_t port, DOBJC_Conte } }, { @autoreleasepool { - _18tji2r_BlockArgs_mx4mc* args = [[_18tji2r_BlockArgs_mx4mc alloc] init]; + _18tji2r_BlockArgs_ru30ue* args = [[_18tji2r_BlockArgs_ru30ue alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -395,21 +395,21 @@ _ListenerTrampoline_6 _18tji2r_wrapBlockingBlock_mx4mc(int64_t port, DOBJC_Conte } __attribute__((visibility("default"))) -@interface _18tji2r_BlockArgs_j5cnrc : NSObject +@interface _18tji2r_BlockArgs_1d9e4oe : NSObject @property (copy) id block; @property struct objc_selector * arg0; @end -@implementation _18tji2r_BlockArgs_j5cnrc +@implementation _18tji2r_BlockArgs_1d9e4oe @end typedef void (^_ListenerTrampoline_7)(struct objc_selector * arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_7 _18tji2r_wrapListenerBlock_j5cnrc( +_ListenerTrampoline_7 _18tji2r_wrapListenerBlock_1d9e4oe( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_7 weakSelfBlock = nil; _ListenerTrampoline_7 strongSelfBlock = [^void(struct objc_selector * arg0) { @autoreleasepool { - _18tji2r_BlockArgs_j5cnrc* args = [[_18tji2r_BlockArgs_j5cnrc alloc] init]; + _18tji2r_BlockArgs_1d9e4oe* args = [[_18tji2r_BlockArgs_1d9e4oe alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -421,18 +421,18 @@ _ListenerTrampoline_7 _18tji2r_wrapListenerBlock_j5cnrc( typedef void (^_BlockingTrampoline_7)(void * waiter, struct objc_selector * arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_7 _18tji2r_wrapBlockingBlock_j5cnrc(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_7 _18tji2r_wrapBlockingBlock_1d9e4oe(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_7, ^void(struct objc_selector * arg0), { @autoreleasepool { - _18tji2r_BlockArgs_j5cnrc* args = [[_18tji2r_BlockArgs_j5cnrc alloc] init]; + _18tji2r_BlockArgs_1d9e4oe* args = [[_18tji2r_BlockArgs_1d9e4oe alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _18tji2r_BlockArgs_j5cnrc* args = [[_18tji2r_BlockArgs_j5cnrc alloc] init]; + _18tji2r_BlockArgs_1d9e4oe* args = [[_18tji2r_BlockArgs_1d9e4oe alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); diff --git a/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart index dbfa295207..463cd4713c 100644 --- a/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type Castaway._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Castaway]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_Castaway, @@ -39,13 +39,13 @@ extension type Castaway._(objc.ObjCObject object$) /// alloc static Castaway alloc() { - final $ret = _objc_msgSend_zldla2(_class_Castaway, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Castaway, _sel_alloc); return Castaway.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Castaway allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_Castaway, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type Castaway._(objc.ObjCObject object$) /// new static Castaway new$() { - final $ret = _objc_msgSend_zldla2(_class_Castaway, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Castaway, _sel_new); return Castaway.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension Castaway$Methods on Castaway { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -82,13 +82,13 @@ extension Castaway$Methods on Castaway { /// meAsInt int meAsInt() { final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_meAsInt); + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_meAsInt); } /// meAsNSObject objc.NSObject meAsNSObject() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_meAsNSObject); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_meAsNSObject); return objc.NSObject.fromPointer($ret, retain: true, release: true); } } @@ -101,13 +101,12 @@ final _class_Castaway = objc.getClass( _class_Castaway_raw, ).cast(), ); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -115,52 +114,53 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_dute2g = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int64 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_pysgoz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int64 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index 87999ee004..6d48048e5d 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -21,7 +21,7 @@ const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); >, ) >(isLeaf: true) -external ffi.Pointer _l3cf7j_wrapBlockingBlock_1k6sg8i( +external ffi.Pointer _l3cf7j_wrapBlockingBlock_pfv6jd( int port, ffi.Pointer context, ffi.Pointer< @@ -36,7 +36,7 @@ external ffi.Pointer _l3cf7j_wrapBlockingBlock_1k6sg8i( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _l3cf7j_wrapListenerBlock_1k6sg8i( +external ffi.Pointer _l3cf7j_wrapListenerBlock_pfv6jd( int port, ffi.Pointer context, ); @@ -46,12 +46,12 @@ extension CatImplementsProto on Thing { /// protoMethod int protoMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_protoMethod); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_protoMethod); } /// staticProtoMethod static int staticProtoMethod() { - return _objc_msgSend_1etqkvi(_class_Thing, _sel_staticProtoMethod); + return _objc_msgSend_1gcq84o(_class_Thing, _sel_staticProtoMethod); } } @@ -92,7 +92,7 @@ extension type ChildOfNSString._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ChildOfNSString]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ChildOfNSString, @@ -100,13 +100,13 @@ extension type ChildOfNSString._(objc.ObjCObject object$) /// alloc static ChildOfNSString alloc() { - final $ret = _objc_msgSend_zldla2(_class_ChildOfNSString, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_ChildOfNSString, _sel_alloc); return ChildOfNSString.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ChildOfNSString allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ChildOfNSString, _sel_allocWithZone_, zone, @@ -116,13 +116,13 @@ extension type ChildOfNSString._(objc.ObjCObject object$) /// new static ChildOfNSString new$() { - final $ret = _objc_msgSend_zldla2(_class_ChildOfNSString, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_ChildOfNSString, _sel_new); return ChildOfNSString.fromPointer($ret, retain: false, release: true); } /// supportsSecureCoding static bool getSupportsSecureCoding() { - return _objc_msgSend_13h8okt( + return _objc_msgSend_91o635( _class_ChildOfNSString, _sel_supportsSecureCoding, ); @@ -141,7 +141,7 @@ extension ChildOfNSString$Methods on ChildOfNSString { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -152,7 +152,7 @@ extension ChildOfNSString$Methods on ChildOfNSString { ChildOfNSString? initWithCoder(objc.NSCoder coder) { final _$$ref = object$.ref; final _$$ref$1 = coder.ref; - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _$$ref.retainAndReturnPointer(), _sel_initWithCoder_, _$$ref$1.pointer, @@ -183,7 +183,7 @@ extension type ChildOfThing._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ChildOfThing]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ChildOfThing, @@ -191,13 +191,13 @@ extension type ChildOfThing._(objc.ObjCObject object$) /// alloc static ChildOfThing alloc() { - final $ret = _objc_msgSend_zldla2(_class_ChildOfThing, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_ChildOfThing, _sel_alloc); return ChildOfThing.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ChildOfThing allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ChildOfThing, _sel_allocWithZone_, zone, @@ -207,7 +207,7 @@ extension type ChildOfThing._(objc.ObjCObject object$) /// anonymousCategoryStaticMethod static int anonymousCategoryStaticMethod() { - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_ChildOfThing, _sel_anonymousCategoryStaticMethod, ); @@ -215,7 +215,7 @@ extension type ChildOfThing._(objc.ObjCObject object$) /// new static ChildOfThing new$() { - final $ret = _objc_msgSend_zldla2(_class_ChildOfThing, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_ChildOfThing, _sel_new); return ChildOfThing.fromPointer($ret, retain: false, release: true); } @@ -232,7 +232,7 @@ extension ChildOfThing$Methods on ChildOfThing { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -242,7 +242,7 @@ extension ChildOfThing$Methods on ChildOfThing { /// instancetypeMethod ChildOfThing instancetypeMethod() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_instancetypeMethod); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_instancetypeMethod); return ChildOfThing.fromPointer($ret, retain: true, release: true); } } @@ -255,20 +255,20 @@ extension InterfaceOnBuiltInType on objc.NSString { /// instancetypeMethod objc.NSString instancetypeMethod() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_instancetypeMethod); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_instancetypeMethod); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// method objc.NSString method() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_method); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_method); return objc.NSString.fromPointer($ret, retain: true, release: true); } /// staticMethod static objc.NSString staticMethod() { - final $ret = _objc_msgSend_zldla2(_class_NSString, _sel_staticMethod); + final $ret = _objc_msgSend_151sglz(_class_NSString, _sel_staticMethod); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -278,13 +278,13 @@ extension Mul on Thing { /// mul:Y: int mul(int x, {required int Y}) { final _$$ref = object$.ref; - return _objc_msgSend_as7aj8(_$$ref.pointer, _sel_mul_Y_, x, Y); + return _objc_msgSend_1q0lyci(_$$ref.pointer, _sel_mul_Y_, x, Y); } /// someProperty int get someProperty { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_someProperty); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_someProperty); } } @@ -311,7 +311,7 @@ extension NSItemProvider on objc.NSURL { 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', ); } - final $ret = _objc_msgSend_1xx6l96( + final $ret = _objc_msgSend_16fy0up( _$$ref.pointer, _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, _$$ref$1.pointer, @@ -333,7 +333,7 @@ extension NSItemProvider on objc.NSURL { iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0)), ); - final $ret = _objc_msgSend_8ut1ht( + final $ret = _objc_msgSend_r0bo0s( _$$ref.pointer, _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, _$$ref$1.pointer, @@ -361,7 +361,7 @@ extension NSItemProvider on objc.NSURL { 'writableTypeIdentifiersForItemProvider', ); } - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.pointer, _sel_writableTypeIdentifiersForItemProvider, ); @@ -388,7 +388,7 @@ extension NSItemProvider on objc.NSURL { 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', ); } - final $ret = _objc_msgSend_1xx6l96( + final $ret = _objc_msgSend_16fy0up( _class_NSURL, _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, _$$ref.pointer, @@ -410,7 +410,7 @@ extension NSItemProvider on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1rz4muk( + final $ret = _objc_msgSend_1pnyuds( _class_NSURL, _sel_objectWithItemProviderData_typeIdentifier_error_, _$$ref.pointer, @@ -433,7 +433,7 @@ extension NSItemProvider on objc.NSURL { iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_NSURL, _sel_readableTypeIdentifiersForItemProvider, ); @@ -447,7 +447,7 @@ extension NSItemProvider on objc.NSURL { iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_NSURL, _sel_writableTypeIdentifiersForItemProvider, ); @@ -467,7 +467,7 @@ extension NSPromisedItems on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1tjz0jr( + final $ret = _objc_msgSend_1dom33q( _$$ref.pointer, _sel_checkPromisedItemIsReachableAndReturnError_, $err, @@ -493,7 +493,7 @@ extension NSPromisedItems on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1fh46zu( + final $ret = _objc_msgSend_1j9bhml( _$$ref.pointer, _sel_getPromisedItemResourceValue_forKey_error_, value, @@ -518,7 +518,7 @@ extension NSPromisedItems on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1a2vk5h( + final $ret = _objc_msgSend_1lhpu4m( _$$ref.pointer, _sel_promisedItemResourceValuesForKeys_error_, _$$ref$1.pointer, @@ -539,7 +539,7 @@ extension NSString on Thing { /// nsStringExtension int nsStringExtension() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_nsStringExtension); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_nsStringExtension); } } @@ -548,7 +548,7 @@ extension NSURLCategory on objc.NSURL { /// extensionMethod int extensionMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_extensionMethod); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_extensionMethod); } } @@ -563,7 +563,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1zbf08( + final $ret = _objc_msgSend_1t6aok9( _$$ref.pointer, _sel_URLHandleUsingCache_, shouldUseCache, @@ -586,7 +586,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_3lg6qb( + _objc_msgSend_6p7ndb( _$$ref.pointer, _sel_loadResourceDataNotifyingClient_usingCache_, _$$ref$1.pointer, @@ -604,7 +604,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _$$ref.pointer, _sel_propertyForKey_, _$$ref$1.pointer, @@ -623,7 +623,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1zbf08( + final $ret = _objc_msgSend_1t6aok9( _$$ref.pointer, _sel_resourceDataUsingCache_, shouldUseCache, @@ -644,7 +644,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_bltg3p( + return _objc_msgSend_1lsax7n( _$$ref.pointer, _sel_setProperty_forKey_, _$$ref$1.pointer, @@ -662,7 +662,7 @@ extension NSURLLoading on objc.NSURL { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_xbndyy( + return _objc_msgSend_19nvye5( _$$ref.pointer, _sel_setResourceData_, _$$ref$1.pointer, @@ -681,7 +681,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _$$ref.pointer, _sel_URLByAppendingPathComponent_, _$$ref$1.pointer, @@ -703,7 +703,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_umhdr9( + final $ret = _objc_msgSend_17amj0z( _$$ref.pointer, _sel_URLByAppendingPathComponent_isDirectory_, _$$ref$1.pointer, @@ -723,7 +723,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _$$ref.pointer, _sel_URLByAppendingPathExtension_, _$$ref$1.pointer, @@ -741,7 +741,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.pointer, _sel_URLByDeletingLastPathComponent, ); @@ -758,7 +758,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.pointer, _sel_URLByDeletingPathExtension, ); @@ -775,7 +775,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.pointer, _sel_URLByResolvingSymlinksInPath, ); @@ -792,7 +792,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.pointer, _sel_URLByStandardizingPath, ); @@ -811,7 +811,7 @@ extension NSURLPathUtilities on objc.NSURL { ); final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1tjz0jr( + final $ret = _objc_msgSend_1dom33q( _$$ref.pointer, _sel_checkResourceIsReachableAndReturnError_, $err, @@ -831,7 +831,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_lastPathComponent); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -845,7 +845,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathComponents); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); return $ret.address == 0 ? null : objc.NSArray.fromPointer($ret, retain: true, release: true); @@ -859,7 +859,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_pathExtension); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -873,7 +873,7 @@ extension NSURLPathUtilities on objc.NSURL { iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0)), ); - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _class_NSURL, _sel_fileURLWithPathComponents_, _$$ref.pointer, @@ -964,7 +964,7 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSError { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_l3cf7j_wrapListenerBlock_1k6sg8i, ( + objc.newBlockPort(_l3cf7j_wrapListenerBlock_pfv6jd, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_x5cg0.fromPointer( @@ -996,7 +996,7 @@ abstract final class ObjCBlock_ffiVoid_NSData_NSError { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_l3cf7j_wrapBlockingBlock_1k6sg8i, ( + objc.newBlockingBlockPort(_l3cf7j_wrapBlockingBlock_pfv6jd, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_x5cg0.fromPointer( @@ -1096,12 +1096,12 @@ extension StaticAndInstanceMethodsWithSameNameCategory on Thing { /// sameNameMethod int sameNameMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_sameNameMethod); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_sameNameMethod); } /// sameNameMethod static int sameNameMethod$1() { - return _objc_msgSend_1etqkvi(_class_Thing, _sel_sameNameMethod); + return _objc_msgSend_1gcq84o(_class_Thing, _sel_sameNameMethod); } } @@ -1110,12 +1110,12 @@ extension Sub on Thing { /// sub:Y: int sub(int x, {required int Y}) { final _$$ref = object$.ref; - return _objc_msgSend_as7aj8(_$$ref.pointer, _sel_sub_Y_, x, Y); + return _objc_msgSend_1q0lyci(_$$ref.pointer, _sel_sub_Y_, x, Y); } /// staticMethod static int staticMethod() { - return _objc_msgSend_1etqkvi(_class_Thing, _sel_staticMethod); + return _objc_msgSend_1gcq84o(_class_Thing, _sel_staticMethod); } } @@ -1139,7 +1139,7 @@ extension type Thing._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Thing]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_Thing, @@ -1147,19 +1147,19 @@ extension type Thing._(objc.ObjCObject object$) /// alloc static Thing alloc() { - final $ret = _objc_msgSend_zldla2(_class_Thing, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Thing, _sel_alloc); return Thing.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Thing allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5(_class_Thing, _sel_allocWithZone_, zone); + final $ret = _objc_msgSend_1cwp428(_class_Thing, _sel_allocWithZone_, zone); return Thing.fromPointer($ret, retain: false, release: true); } /// anonymousCategoryStaticMethod static int anonymousCategoryStaticMethod() { - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_Thing, _sel_anonymousCategoryStaticMethod, ); @@ -1167,7 +1167,7 @@ extension type Thing._(objc.ObjCObject object$) /// new static Thing new$() { - final $ret = _objc_msgSend_zldla2(_class_Thing, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Thing, _sel_new); return Thing.fromPointer($ret, retain: false, release: true); } @@ -1179,13 +1179,13 @@ extension Thing$Methods on Thing { /// add:Y: int add(int x, {required int Y}) { final _$$ref = object$.ref; - return _objc_msgSend_as7aj8(_$$ref.pointer, _sel_add_Y_, x, Y); + return _objc_msgSend_1q0lyci(_$$ref.pointer, _sel_add_Y_, x, Y); } /// anonymousCategoryMethod int anonymousCategoryMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_anonymousCategoryMethod); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_anonymousCategoryMethod); } /// init @@ -1196,7 +1196,7 @@ extension Thing$Methods on Thing { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -1206,7 +1206,7 @@ extension Thing$Methods on Thing { /// instancetypeMethod Thing instancetypeMethod() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_instancetypeMethod); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_instancetypeMethod); return Thing.fromPointer($ret, retain: true, release: true); } } @@ -1230,7 +1230,7 @@ extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_x5cg0, @@ -1240,7 +1240,7 @@ extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { objc.NSData? get arg0 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg0); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); return $ret.address == 0 ? null : objc.NSData.fromPointer($ret, retain: true, release: true); @@ -1248,7 +1248,7 @@ extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { objc.NSError? get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); return $ret.address == 0 ? null : objc.NSError.fromPointer($ret, retain: true, release: true); @@ -1300,38 +1300,21 @@ final _class_Thing = objc.getClass( ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__l3cf7j_BlockArgs_1k6sg8i', + symbol: 'OBJC_CLASS_\$__l3cf7j_BlockArgs_pfv6jd', ) external ffi.Pointer _class__BlockArgs_x5cg0_raw; final _class__BlockArgs_x5cg0 = objc.getClass( - "_l3cf7j_BlockArgs_1k6sg8i", + "_l3cf7j_BlockArgs_pfv6jd", () => ffi.Native.addressOf>( _class__BlockArgs_x5cg0_raw, ).cast(), ); -final _objc_msgSend_13h8okt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1a2vk5h = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, ) > >() @@ -1339,16 +1322,15 @@ final _objc_msgSend_1a2vk5h = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, ) >(); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_16fy0up = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -1356,15 +1338,17 @@ final _objc_msgSend_1etqkvi = objc.msgSendPointer int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1ffzwv1 = objc.msgSendPointer +final _objc_msgSend_17amj0z = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Bool, ) > >() @@ -1373,17 +1357,16 @@ final _objc_msgSend_1ffzwv1 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + bool, ) >(); -final _objc_msgSend_1fh46zu = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, ffi.Pointer, - ffi.Pointer>, ) > >() @@ -1391,12 +1374,10 @@ final _objc_msgSend_1fh46zu = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, ffi.Pointer, - ffi.Pointer>, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -1413,68 +1394,67 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1rz4muk = objc.msgSendPointer +final _objc_msgSend_1dom33q = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ffi.Pointer>, ) >(); -final _objc_msgSend_1tjz0jr = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, ) >(); -final _objc_msgSend_1xx6l96 = objc.msgSendPointer +final _objc_msgSend_1j9bhml = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ffi.Pointer, + ffi.Pointer>, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_1zbf08 = objc.msgSendPointer +final _objc_msgSend_1lhpu4m = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, + ffi.Pointer, + ffi.Pointer>, ) > >() @@ -1482,36 +1462,38 @@ final _objc_msgSend_1zbf08 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - bool, + ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_3lg6qb = objc.msgSendPointer +final _objc_msgSend_1lsax7n = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, + ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - bool, + ffi.Pointer, ) >(); -final _objc_msgSend_8ut1ht = objc.msgSendPointer +final _objc_msgSend_1pnyuds = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ) > >() @@ -1520,10 +1502,11 @@ final _objc_msgSend_8ut1ht = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ) >(); -final _objc_msgSend_as7aj8 = objc.msgSendPointer +final _objc_msgSend_1q0lyci = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Int32 Function( @@ -1542,51 +1525,65 @@ final _objc_msgSend_as7aj8 = objc.msgSendPointer int, ) >(); -final _objc_msgSend_bltg3p = objc.msgSendPointer +final _objc_msgSend_1sotr3r = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_umhdr9 = objc.msgSendPointer +final _objc_msgSend_1t6aok9 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool, ) > >() .asFunction< ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_6p7ndb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -1594,15 +1591,16 @@ final _objc_msgSend_xbndyy = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_r0bo0s = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() @@ -1610,6 +1608,8 @@ final _objc_msgSend_zldla2 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_URLByAppendingPathComponent_ = objc.registerName( diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m index fa815b6385..f0761e700f 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m @@ -58,22 +58,22 @@ __attribute__((visibility("default"))) -@interface _l3cf7j_BlockArgs_1k6sg8i : NSObject +@interface _l3cf7j_BlockArgs_pfv6jd : NSObject @property (copy) id block; @property (strong) id arg0; @property (strong) id arg1; @end -@implementation _l3cf7j_BlockArgs_1k6sg8i +@implementation _l3cf7j_BlockArgs_pfv6jd @end typedef void (^_ListenerTrampoline)(id arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _l3cf7j_wrapListenerBlock_1k6sg8i( +_ListenerTrampoline _l3cf7j_wrapListenerBlock_pfv6jd( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline weakSelfBlock = nil; _ListenerTrampoline strongSelfBlock = [^void(id arg0, id arg1) { @autoreleasepool { - _l3cf7j_BlockArgs_1k6sg8i* args = [[_l3cf7j_BlockArgs_1k6sg8i alloc] init]; + _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -86,11 +86,11 @@ _ListenerTrampoline _l3cf7j_wrapListenerBlock_1k6sg8i( typedef void (^_BlockingTrampoline)(void * waiter, id arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _l3cf7j_wrapBlockingBlock_1k6sg8i(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline _l3cf7j_wrapBlockingBlock_pfv6jd(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(id arg0, id arg1), { @autoreleasepool { - _l3cf7j_BlockArgs_1k6sg8i* args = [[_l3cf7j_BlockArgs_1k6sg8i alloc] init]; + _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -98,7 +98,7 @@ _ListenerTrampoline _l3cf7j_wrapBlockingBlock_1k6sg8i(int64_t port, DOBJC_Contex } }, { @autoreleasepool { - _l3cf7j_BlockArgs_1k6sg8i* args = [[_l3cf7j_BlockArgs_1k6sg8i alloc] init]; + _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; diff --git a/pkgs/ffigen/test/native_objc_test/deprecated_test.dart b/pkgs/ffigen/test/native_objc_test/deprecated_test.dart index e72046cfb2..d091091f06 100644 --- a/pkgs/ffigen/test/native_objc_test/deprecated_test.dart +++ b/pkgs/ffigen/test/native_objc_test/deprecated_test.dart @@ -108,6 +108,10 @@ String bindingsForVersion({Versions? iosVers, Versions? macosVers}) { node.isIncluded = false; } }, + visitGlobal: (node) => node.isIncluded = false, + visitMacro: (node) => node.isIncluded = false, + visitConstant: (node) => node.isIncluded = false, + visitTypealias: (node) => node.isIncluded = false, ), ], ).generate(logger: createTestLogger()); diff --git a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart index 90f8e78f63..624ad51faa 100644 --- a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -38,7 +38,7 @@ extension type EnumTestInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [EnumTestInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_EnumTestInterface, @@ -46,13 +46,13 @@ extension type EnumTestInterface._(objc.ObjCObject object$) /// alloc static EnumTestInterface alloc() { - final $ret = _objc_msgSend_zldla2(_class_EnumTestInterface, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_EnumTestInterface, _sel_alloc); return EnumTestInterface.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static EnumTestInterface allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_EnumTestInterface, _sel_allocWithZone_, zone, @@ -62,13 +62,13 @@ extension type EnumTestInterface._(objc.ObjCObject object$) /// new static EnumTestInterface new$() { - final $ret = _objc_msgSend_zldla2(_class_EnumTestInterface, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_EnumTestInterface, _sel_new); return EnumTestInterface.fromPointer($ret, retain: false, release: true); } /// useImportedNSEnum: static int useImportedNSEnum(objc.NSQualityOfService x) { - return _objc_msgSend_18lj9lc( + return _objc_msgSend_1y89lso( _class_EnumTestInterface, _sel_useImportedNSEnum_, x.value, @@ -77,7 +77,7 @@ extension type EnumTestInterface._(objc.ObjCObject object$) /// useImportedNSOptions: static int useImportedNSOptions(int x) { - return _objc_msgSend_1v2v0pc( + return _objc_msgSend_1cxnp8y( _class_EnumTestInterface, _sel_useImportedNSOptions_, x, @@ -97,7 +97,7 @@ extension EnumTestInterface$Methods on EnumTestInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -137,87 +137,87 @@ final _class_EnumTestInterface = objc.getClass( _class_EnumTestInterface_raw, ).cast(), ); -final _objc_msgSend_18lj9lc = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Long, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1v2v0pc = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cxnp8y = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1y89lso = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + int, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart index 32d011d200..342e32e50b 100644 --- a/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type ErrorMethodTestObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ErrorMethodTestObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ErrorMethodTestObject, @@ -39,7 +39,10 @@ extension type ErrorMethodTestObject._(objc.ObjCObject object$) /// alloc static ErrorMethodTestObject alloc() { - final $ret = _objc_msgSend_zldla2(_class_ErrorMethodTestObject, _sel_alloc); + final $ret = _objc_msgSend_151sglz( + _class_ErrorMethodTestObject, + _sel_alloc, + ); return ErrorMethodTestObject.fromPointer( $ret, retain: false, @@ -49,7 +52,7 @@ extension type ErrorMethodTestObject._(objc.ObjCObject object$) /// allocWithZone: static ErrorMethodTestObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ErrorMethodTestObject, _sel_allocWithZone_, zone, @@ -63,7 +66,7 @@ extension type ErrorMethodTestObject._(objc.ObjCObject object$) /// new static ErrorMethodTestObject new$() { - final $ret = _objc_msgSend_zldla2(_class_ErrorMethodTestObject, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_ErrorMethodTestObject, _sel_new); return ErrorMethodTestObject.fromPointer( $ret, retain: false, @@ -81,7 +84,7 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { final _$$ref = object$.ref; final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1d50bq7( + final $ret = _objc_msgSend_164wts2( _$$ref.pointer, _sel_errorMethodReturningBool_error_, isOk, @@ -99,7 +102,7 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { final _$$ref = object$.ref; final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1utlnmg( + final $ret = _objc_msgSend_28eabw( _$$ref.pointer, _sel_errorMethodReturningNullable_error_, isOk, @@ -122,7 +125,7 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -138,7 +141,7 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { final _$$ref = object$.ref; final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1d50bq7( + final $ret = _objc_msgSend_164wts2( _$$ref.pointer, _sel_nullableErrorMethod_error_, isOk, @@ -156,7 +159,7 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { final _$$ref = object$.ref; final $err = pkg_ffi.calloc>(); try { - final $ret = _objc_msgSend_1d50bq7( + final $ret = _objc_msgSend_164wts2( _$$ref.pointer, _sel_outErrorMethod_outError_, isOk, @@ -180,84 +183,82 @@ final _class_ErrorMethodTestObject = objc.getClass( _class_ErrorMethodTestObject_raw, ).cast(), ); -final _objc_msgSend_1d50bq7 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.Pointer>, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - bool, - ffi.Pointer>, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_164wts2 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Bool, + ffi.Pointer>, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + bool, + ffi.Pointer>, ) >(); -final _objc_msgSend_1utlnmg = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.Pointer>, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - bool, - ffi.Pointer>, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_28eabw = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Bool, + ffi.Pointer>, ) > >() @@ -265,6 +266,8 @@ final _objc_msgSend_zldla2 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + bool, + ffi.Pointer>, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart index 503046b45e..8bd3c48f48 100644 --- a/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type ClassThatWillFailToLoad._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ClassThatWillFailToLoad]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ClassThatWillFailToLoad, @@ -39,7 +39,7 @@ extension type ClassThatWillFailToLoad._(objc.ObjCObject object$) /// alloc static ClassThatWillFailToLoad alloc() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_ClassThatWillFailToLoad, _sel_alloc, ); @@ -52,7 +52,7 @@ extension type ClassThatWillFailToLoad._(objc.ObjCObject object$) /// allocWithZone: static ClassThatWillFailToLoad allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ClassThatWillFailToLoad, _sel_allocWithZone_, zone, @@ -66,7 +66,10 @@ extension type ClassThatWillFailToLoad._(objc.ObjCObject object$) /// new static ClassThatWillFailToLoad new$() { - final $ret = _objc_msgSend_zldla2(_class_ClassThatWillFailToLoad, _sel_new); + final $ret = _objc_msgSend_151sglz( + _class_ClassThatWillFailToLoad, + _sel_new, + ); return ClassThatWillFailToLoad.fromPointer( $ret, retain: false, @@ -82,7 +85,7 @@ extension ClassThatWillFailToLoad$Methods on ClassThatWillFailToLoad { /// get123 int get123() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_get123); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_get123); } /// init @@ -93,7 +96,7 @@ extension ClassThatWillFailToLoad$Methods on ClassThatWillFailToLoad { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -115,66 +118,66 @@ final _class_ClassThatWillFailToLoad = objc.getClass( _class_ClassThatWillFailToLoad_raw, ).cast(), ); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart index e2606147be..855bf1a850 100644 --- a/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type ForwardDeclaredClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ForwardDeclaredClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ForwardDeclaredClass, @@ -39,13 +39,13 @@ extension type ForwardDeclaredClass._(objc.ObjCObject object$) /// alloc static ForwardDeclaredClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_ForwardDeclaredClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_ForwardDeclaredClass, _sel_alloc); return ForwardDeclaredClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ForwardDeclaredClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ForwardDeclaredClass, _sel_allocWithZone_, zone, @@ -55,12 +55,12 @@ extension type ForwardDeclaredClass._(objc.ObjCObject object$) /// get123 static int get123() { - return _objc_msgSend_1etqkvi(_class_ForwardDeclaredClass, _sel_get123); + return _objc_msgSend_1gcq84o(_class_ForwardDeclaredClass, _sel_get123); } /// new static ForwardDeclaredClass new$() { - final $ret = _objc_msgSend_zldla2(_class_ForwardDeclaredClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_ForwardDeclaredClass, _sel_new); return ForwardDeclaredClass.fromPointer($ret, retain: false, release: true); } @@ -77,7 +77,7 @@ extension ForwardDeclaredClass$Methods on ForwardDeclaredClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -95,66 +95,66 @@ final _class_ForwardDeclaredClass = objc.getClass( _class_ForwardDeclaredClass_raw, ).cast(), ); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart index 4a397a7be6..579aa3cfee 100644 --- a/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; diff --git a/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart index 794bba55be..750eb425ce 100644 --- a/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; diff --git a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart index 41bb99241b..2afa773d54 100644 --- a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type BaseClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [BaseClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_BaseClass, @@ -39,13 +39,13 @@ extension type BaseClass._(objc.ObjCObject object$) /// alloc static BaseClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_BaseClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_alloc); return BaseClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static BaseClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_BaseClass, _sel_allocWithZone_, zone, @@ -55,13 +55,13 @@ extension type BaseClass._(objc.ObjCObject object$) /// create static BaseClass create() { - final $ret = _objc_msgSend_zldla2(_class_BaseClass, _sel_create); + final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_create); return BaseClass.fromPointer($ret, retain: true, release: true); } /// new static BaseClass new$() { - final $ret = _objc_msgSend_zldla2(_class_BaseClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_new); return BaseClass.fromPointer($ret, retain: false, release: true); } @@ -73,7 +73,7 @@ extension BaseClass$Methods on BaseClass { /// getSelf BaseClass getSelf() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_getSelf); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_getSelf); return BaseClass.fromPointer($ret, retain: true, release: true); } @@ -85,7 +85,7 @@ extension BaseClass$Methods on BaseClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -113,7 +113,7 @@ extension type ChildClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ChildClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ChildClass, @@ -121,13 +121,13 @@ extension type ChildClass._(objc.ObjCObject object$) /// alloc static ChildClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_ChildClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_ChildClass, _sel_alloc); return ChildClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ChildClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ChildClass, _sel_allocWithZone_, zone, @@ -137,13 +137,13 @@ extension type ChildClass._(objc.ObjCObject object$) /// create static ChildClass create() { - final $ret = _objc_msgSend_zldla2(_class_ChildClass, _sel_create); + final $ret = _objc_msgSend_151sglz(_class_ChildClass, _sel_create); return ChildClass.fromPointer($ret, retain: true, release: true); } /// new static ChildClass new$() { - final $ret = _objc_msgSend_zldla2(_class_ChildClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_ChildClass, _sel_new); return ChildClass.fromPointer($ret, retain: false, release: true); } @@ -155,13 +155,13 @@ extension ChildClass$Methods on ChildClass { /// field int get field { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_field); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_field); } /// getSelf ChildClass getSelf() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_getSelf); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_getSelf); return ChildClass.fromPointer($ret, retain: true, release: true); } @@ -173,7 +173,7 @@ extension ChildClass$Methods on ChildClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -183,7 +183,7 @@ extension ChildClass$Methods on ChildClass { /// setField: set field(int value) { final _$$ref = object$.ref; - _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setField_, value); + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setField_, value); } } @@ -205,83 +205,83 @@ final _class_ChildClass = objc.getClass( _class_ChildClass_raw, ).cast(), ); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1f6q4sj = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1bqef4y = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart index a1ee05957f..486f0fa35c 100644 --- a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type IsInstanceBaseClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [IsInstanceBaseClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_IsInstanceBaseClass, @@ -39,13 +39,13 @@ extension type IsInstanceBaseClass._(objc.ObjCObject object$) /// alloc static IsInstanceBaseClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_IsInstanceBaseClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_IsInstanceBaseClass, _sel_alloc); return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static IsInstanceBaseClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_IsInstanceBaseClass, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type IsInstanceBaseClass._(objc.ObjCObject object$) /// new static IsInstanceBaseClass new$() { - final $ret = _objc_msgSend_zldla2(_class_IsInstanceBaseClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_IsInstanceBaseClass, _sel_new); return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension IsInstanceBaseClass$Methods on IsInstanceBaseClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -100,7 +100,7 @@ extension type IsInstanceChildClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [IsInstanceChildClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_IsInstanceChildClass, @@ -108,13 +108,13 @@ extension type IsInstanceChildClass._(objc.ObjCObject object$) /// alloc static IsInstanceChildClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_IsInstanceChildClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_IsInstanceChildClass, _sel_alloc); return IsInstanceChildClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static IsInstanceChildClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_IsInstanceChildClass, _sel_allocWithZone_, zone, @@ -124,7 +124,7 @@ extension type IsInstanceChildClass._(objc.ObjCObject object$) /// new static IsInstanceChildClass new$() { - final $ret = _objc_msgSend_zldla2(_class_IsInstanceChildClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_IsInstanceChildClass, _sel_new); return IsInstanceChildClass.fromPointer($ret, retain: false, release: true); } @@ -141,7 +141,7 @@ extension IsInstanceChildClass$Methods on IsInstanceChildClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -169,7 +169,7 @@ extension type IsInstanceUnrelatedClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [IsInstanceUnrelatedClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_IsInstanceUnrelatedClass, @@ -177,7 +177,7 @@ extension type IsInstanceUnrelatedClass._(objc.ObjCObject object$) /// alloc static IsInstanceUnrelatedClass alloc() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_IsInstanceUnrelatedClass, _sel_alloc, ); @@ -190,7 +190,7 @@ extension type IsInstanceUnrelatedClass._(objc.ObjCObject object$) /// allocWithZone: static IsInstanceUnrelatedClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_IsInstanceUnrelatedClass, _sel_allocWithZone_, zone, @@ -204,7 +204,7 @@ extension type IsInstanceUnrelatedClass._(objc.ObjCObject object$) /// new static IsInstanceUnrelatedClass new$() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_IsInstanceUnrelatedClass, _sel_new, ); @@ -228,7 +228,7 @@ extension IsInstanceUnrelatedClass$Methods on IsInstanceUnrelatedClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -270,13 +270,12 @@ final _class_IsInstanceUnrelatedClass = objc.getClass( _class_IsInstanceUnrelatedClass_raw, ).cast(), ); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -284,10 +283,9 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -304,12 +302,13 @@ final _objc_msgSend_xbndyy = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -317,6 +316,7 @@ final _objc_msgSend_zldla2 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart index 9c2f73fdd7..fb2451e90b 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -21,7 +21,7 @@ const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); >, ) >(isLeaf: true) -external ffi.Pointer _rdx59v_wrapBlockingBlock_1f6q4sj( +external ffi.Pointer _rdx59v_wrapBlockingBlock_1bqef4y( int port, ffi.Pointer context, ffi.Pointer< @@ -36,7 +36,7 @@ external ffi.Pointer _rdx59v_wrapBlockingBlock_1f6q4sj( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _rdx59v_wrapListenerBlock_1f6q4sj( +external ffi.Pointer _rdx59v_wrapListenerBlock_1bqef4y( int port, ffi.Pointer context, ); @@ -99,7 +99,7 @@ abstract final class ObjCBlock_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockPort(_rdx59v_wrapListenerBlock_1f6q4sj, ( + objc.newBlockPort(_rdx59v_wrapListenerBlock_1bqef4y, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1liq3c0.fromPointer( @@ -130,7 +130,7 @@ abstract final class ObjCBlock_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock( - objc.newBlockingBlockPort(_rdx59v_wrapBlockingBlock_1f6q4sj, ( + objc.newBlockingBlockPort(_rdx59v_wrapBlockingBlock_1bqef4y, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1liq3c0.fromPointer( @@ -208,7 +208,7 @@ extension type Sendable._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Sendable]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_Sendable, @@ -216,13 +216,13 @@ extension type Sendable._(objc.ObjCObject object$) /// alloc static Sendable alloc() { - final $ret = _objc_msgSend_zldla2(_class_Sendable, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Sendable, _sel_alloc); return Sendable.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Sendable allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_Sendable, _sel_allocWithZone_, zone, @@ -233,7 +233,7 @@ extension type Sendable._(objc.ObjCObject object$) /// dummyMethodToForceGenerationOfListener static objc.ObjCBlock dummyMethodToForceGenerationOfListener() { - final $ret = _objc_msgSend_13wc3w1( + final $ret = _objc_msgSend_uwvaik( _class_Sendable, _sel_dummyMethodToForceGenerationOfListener, ); @@ -246,7 +246,7 @@ extension type Sendable._(objc.ObjCObject object$) /// new static Sendable new$() { - final $ret = _objc_msgSend_zldla2(_class_Sendable, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Sendable, _sel_new); return Sendable.fromPointer($ret, retain: false, release: true); } @@ -263,7 +263,7 @@ extension Sendable$Methods on Sendable { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -273,13 +273,13 @@ extension Sendable$Methods on Sendable { /// setValue: set value(int value) { final _$$ref = object$.ref; - _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setValue_, value); + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setValue_, value); } /// value int get value { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_value); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_value); } } @@ -302,7 +302,7 @@ extension type _BlockArgs_1liq3c0._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1liq3c0]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1liq3c0, @@ -312,7 +312,7 @@ extension type _BlockArgs_1liq3c0._(objc.ObjCObject object$) extension _BlockArgs_1liq3c0$Methods on _BlockArgs_1liq3c0 { int get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_arg0); } } @@ -325,46 +325,48 @@ final _class_Sendable = objc.getClass( ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__rdx59v_BlockArgs_1f6q4sj', + symbol: 'OBJC_CLASS_\$__rdx59v_BlockArgs_1bqef4y', ) external ffi.Pointer _class__BlockArgs_1liq3c0_raw; final _class__BlockArgs_1liq3c0 = objc.getClass( - "_rdx59v_BlockArgs_1f6q4sj", + "_rdx59v_BlockArgs_1bqef4y", () => ffi.Native.addressOf>( _class__BlockArgs_1liq3c0_raw, ).cast(), ); -final _objc_msgSend_13wc3w1 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1f6q4sj = objc.msgSendPointer +final _objc_msgSend_1bqef4y = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -381,7 +383,7 @@ final _objc_msgSend_1f6q4sj = objc.msgSendPointer int, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -398,34 +400,32 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_uwvaik = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.m b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.m index d467dddf1c..a88e58c524 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.m @@ -57,21 +57,21 @@ __attribute__((visibility("default"))) -@interface _rdx59v_BlockArgs_1f6q4sj : NSObject +@interface _rdx59v_BlockArgs_1bqef4y : NSObject @property (copy) id block; @property int32_t arg0; @end -@implementation _rdx59v_BlockArgs_1f6q4sj +@implementation _rdx59v_BlockArgs_1bqef4y @end typedef void (^_ListenerTrampoline)(int32_t arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _rdx59v_wrapListenerBlock_1f6q4sj( +_ListenerTrampoline _rdx59v_wrapListenerBlock_1bqef4y( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline weakSelfBlock = nil; _ListenerTrampoline strongSelfBlock = [^void(int32_t arg0) { @autoreleasepool { - _rdx59v_BlockArgs_1f6q4sj* args = [[_rdx59v_BlockArgs_1f6q4sj alloc] init]; + _rdx59v_BlockArgs_1bqef4y* args = [[_rdx59v_BlockArgs_1bqef4y alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); @@ -83,18 +83,18 @@ _ListenerTrampoline _rdx59v_wrapListenerBlock_1f6q4sj( typedef void (^_BlockingTrampoline)(void * waiter, int32_t arg0); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _rdx59v_wrapBlockingBlock_1f6q4sj(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline _rdx59v_wrapBlockingBlock_1bqef4y(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(int32_t arg0), { @autoreleasepool { - _rdx59v_BlockArgs_1f6q4sj* args = [[_rdx59v_BlockArgs_1f6q4sj alloc] init]; + _rdx59v_BlockArgs_1bqef4y* args = [[_rdx59v_BlockArgs_1bqef4y alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; directInvoke((__bridge_retained void*)args); } }, { @autoreleasepool { - _rdx59v_BlockArgs_1f6q4sj* args = [[_rdx59v_BlockArgs_1f6q4sj alloc] init]; + _rdx59v_BlockArgs_1bqef4y* args = [[_rdx59v_BlockArgs_1bqef4y alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); diff --git a/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart index 86ff7cf0fa..cb06d2dcb3 100644 --- a/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type LogSpamBaseClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [LogSpamBaseClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_LogSpamBaseClass, @@ -39,13 +39,13 @@ extension type LogSpamBaseClass._(objc.ObjCObject object$) /// alloc static LogSpamBaseClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_LogSpamBaseClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_LogSpamBaseClass, _sel_alloc); return LogSpamBaseClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static LogSpamBaseClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_LogSpamBaseClass, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type LogSpamBaseClass._(objc.ObjCObject object$) /// instancetypeMethod static LogSpamBaseClass instancetypeMethod() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_LogSpamBaseClass, _sel_instancetypeMethod, ); @@ -64,12 +64,12 @@ extension type LogSpamBaseClass._(objc.ObjCObject object$) /// matchingMethod static int matchingMethod() { - return _objc_msgSend_1etqkvi(_class_LogSpamBaseClass, _sel_matchingMethod); + return _objc_msgSend_1gcq84o(_class_LogSpamBaseClass, _sel_matchingMethod); } /// new static LogSpamBaseClass new$() { - final $ret = _objc_msgSend_zldla2(_class_LogSpamBaseClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_LogSpamBaseClass, _sel_new); return LogSpamBaseClass.fromPointer($ret, retain: false, release: true); } @@ -86,7 +86,7 @@ extension LogSpamBaseClass$Methods on LogSpamBaseClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -114,7 +114,7 @@ extension type LogSpamChildClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [LogSpamChildClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_LogSpamChildClass, @@ -122,13 +122,13 @@ extension type LogSpamChildClass._(objc.ObjCObject object$) /// alloc static LogSpamChildClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_LogSpamChildClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_LogSpamChildClass, _sel_alloc); return LogSpamChildClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static LogSpamChildClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_LogSpamChildClass, _sel_allocWithZone_, zone, @@ -138,7 +138,7 @@ extension type LogSpamChildClass._(objc.ObjCObject object$) /// instancetypeMethod static LogSpamChildClass instancetypeMethod() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_LogSpamChildClass, _sel_instancetypeMethod, ); @@ -147,12 +147,12 @@ extension type LogSpamChildClass._(objc.ObjCObject object$) /// matchingMethod static int matchingMethod() { - return _objc_msgSend_1etqkvi(_class_LogSpamChildClass, _sel_matchingMethod); + return _objc_msgSend_1gcq84o(_class_LogSpamChildClass, _sel_matchingMethod); } /// new static LogSpamChildClass new$() { - final $ret = _objc_msgSend_zldla2(_class_LogSpamChildClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_LogSpamChildClass, _sel_new); return LogSpamChildClass.fromPointer($ret, retain: false, release: true); } @@ -169,7 +169,7 @@ extension LogSpamChildClass$Methods on LogSpamChildClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -197,66 +197,66 @@ final _class_LogSpamChildClass = objc.getClass( _class_LogSpamChildClass_raw, ).cast(), ); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart index b223787fa2..d3464955d5 100644 --- a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -13,7 +13,7 @@ const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); @ffi.Native< instancetype Function(ffi.Pointer, ffi.Pointer) >() -external instancetype _n85dd5_protocolTrampoline_1jnam6p( +external instancetype _n85dd5_protocolTrampoline_1mbt9g9( ffi.Pointer target, ffi.Pointer arg0, ); @@ -38,44 +38,15 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [MethodFilteringTestInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_MethodFilteringTestInterface, ); - /// alloc - static MethodFilteringTestInterface alloc() { - final $ret = _objc_msgSend_zldla2( - _class_MethodFilteringTestInterface, - _sel_alloc, - ); - return MethodFilteringTestInterface.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static MethodFilteringTestInterface allocWithZone( - ffi.Pointer zone, - ) { - final $ret = _objc_msgSend_1h5ffc5( - _class_MethodFilteringTestInterface, - _sel_allocWithZone_, - zone, - ); - return MethodFilteringTestInterface.fromPointer( - $ret, - retain: false, - release: true, - ); - } - /// includedStaticMethod static MethodFilteringTestInterface includedStaticMethod() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_MethodFilteringTestInterface, _sel_includedStaticMethod, ); @@ -85,22 +56,6 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) release: true, ); } - - /// new - static MethodFilteringTestInterface new$() { - final $ret = _objc_msgSend_zldla2( - _class_MethodFilteringTestInterface, - _sel_new, - ); - return MethodFilteringTestInterface.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// Returns a new instance of MethodFilteringTestInterface constructed with the default `new` method. - MethodFilteringTestInterface() : this.as(new$().object$); } extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { @@ -110,7 +65,7 @@ extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { required int with$, }) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1drrbn4( + final $ret = _objc_msgSend_3hao97( _$$ref.pointer, _sel_includedInstanceMethod_with_, arg, @@ -126,28 +81,9 @@ extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { /// includedProperty objc.NSObject get includedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_includedProperty); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_includedProperty); return objc.NSObject.fromPointer($ret, retain: true, release: true); } - - /// init - MethodFilteringTestInterface init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'MethodFilteringTestInterface.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_zldla2( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return MethodFilteringTestInterface.fromPointer( - $ret, - retain: false, - release: true, - ); - } } /// MethodFilteringTestProtocol @@ -165,7 +101,7 @@ extension type MethodFilteringTestProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [MethodFilteringTestProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( + return _objc_msgSend_e3qsqz( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_MethodFilteringTestProtocol, @@ -177,7 +113,7 @@ extension MethodFilteringTestProtocol$Methods on MethodFilteringTestProtocol { /// includedProtocolMethod MethodFilteringTestProtocol includedProtocolMethod() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.pointer, _sel_includedProtocolMethod, ); @@ -244,7 +180,7 @@ interface class MethodFilteringTestProtocol$Builder { ffi.Pointer, ) > - >(_n85dd5_protocolTrampoline_1jnam6p) + >(_n85dd5_protocolTrampoline_1mbt9g9) .cast(), objc.getProtocolMethodSignature( _protocol_MethodFilteringTestProtocol, @@ -394,32 +330,12 @@ final _class_MethodFilteringTestInterface = objc.getClass( _class_MethodFilteringTestInterface_raw, ).cast(), ); -final _objc_msgSend_1drrbn4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -427,16 +343,15 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_441sd9 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -444,39 +359,43 @@ final _objc_msgSend_441sd9 = objc.msgSendPointer bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_3hao97 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, + ffi.Int32, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, + int, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_e3qsqz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); @ffi.Native Function()>( @@ -488,8 +407,6 @@ final _protocol_MethodFilteringTestProtocol = objc.getProtocol( "MethodFilteringTestProtocol", _protocol_MethodFilteringTestProtocol_raw, ); -late final _sel_alloc = objc.registerName("alloc"); -late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); late final _sel_includedInstanceMethod_with_ = objc.registerName( "includedInstanceMethod:with:", @@ -501,8 +418,6 @@ late final _sel_includedProtocolMethod = objc.registerName( late final _sel_includedStaticMethod = objc.registerName( "includedStaticMethod", ); -late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.m b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.m index 3ad2984bc1..986c3246cf 100644 --- a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.m @@ -61,7 +61,7 @@ typedef id (^_ProtocolTrampoline)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -id _n85dd5_protocolTrampoline_1jnam6p(id target, void * sel) { +id _n85dd5_protocolTrampoline_1mbt9g9(id target, void * sel) { return ((_ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } #undef BLOCKING_BLOCK_IMPL diff --git a/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart index af35e493f0..8071e21574 100644 --- a/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type MethodInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [MethodInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_MethodInterface, @@ -39,13 +39,13 @@ extension type MethodInterface._(objc.ObjCObject object$) /// alloc static MethodInterface alloc() { - final $ret = _objc_msgSend_zldla2(_class_MethodInterface, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_MethodInterface, _sel_alloc); return MethodInterface.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static MethodInterface allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_MethodInterface, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type MethodInterface._(objc.ObjCObject object$) /// instStaticSameName static int instStaticSameName$1() { - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_MethodInterface, _sel_instStaticSameName, ); @@ -63,34 +63,28 @@ extension type MethodInterface._(objc.ObjCObject object$) /// new static MethodInterface new$() { - final $ret = _objc_msgSend_zldla2(_class_MethodInterface, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_MethodInterface, _sel_new); return MethodInterface.fromPointer($ret, retain: false, release: true); } /// sub static int sub() { - return _objc_msgSend_1etqkvi(_class_MethodInterface, _sel_sub); + return _objc_msgSend_1gcq84o(_class_MethodInterface, _sel_sub); } /// sub: static int sub$1(int x) { - return _objc_msgSend_1jyzkwd(_class_MethodInterface, _sel_sub_, x); + return _objc_msgSend_zo3bvx(_class_MethodInterface, _sel_sub_, x); } /// sub:Y: static int sub$2(int x, {required int Y}) { - return _objc_msgSend_as7aj8(_class_MethodInterface, _sel_sub_Y_, x, Y); + return _objc_msgSend_1q0lyci(_class_MethodInterface, _sel_sub_Y_, x, Y); } /// sub:Y:Z: static int sub$3(int x, {required int Y, required int Z}) { - return _objc_msgSend_1vzbexb( - _class_MethodInterface, - _sel_sub_Y_Z_, - x, - Y, - Z, - ); + return _objc_msgSend_b9kbqv(_class_MethodInterface, _sel_sub_Y_Z_, x, Y, Z); } /// Returns a new instance of MethodInterface constructed with the default `new` method. @@ -103,8 +97,8 @@ extension MethodInterface$Methods on MethodInterface { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1ns26h5Stret($ptr, _$$ref.pointer, _sel_Vec4) - : $ptr.ref = _objc_msgSend_1ns26h5(_$$ref.pointer, _sel_Vec4); + ? _objc_msgSend_o6r21bStret($ptr, _$$ref.pointer, _sel_Vec4) + : $ptr.ref = _objc_msgSend_o6r21b(_$$ref.pointer, _sel_Vec4); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -115,41 +109,41 @@ extension MethodInterface$Methods on MethodInterface { /// add int add() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_add); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_add); } /// add: int add$1(int x) { final _$$ref = object$.ref; - return _objc_msgSend_1jyzkwd(_$$ref.pointer, _sel_add_, x); + return _objc_msgSend_zo3bvx(_$$ref.pointer, _sel_add_, x); } /// add:Y: int add$2(int x, {required int Y}) { final _$$ref = object$.ref; - return _objc_msgSend_as7aj8(_$$ref.pointer, _sel_add_Y_, x, Y); + return _objc_msgSend_1q0lyci(_$$ref.pointer, _sel_add_Y_, x, Y); } /// add:Y:Z: int add$3(int x, {required int Y, required int Z}) { final _$$ref = object$.ref; - return _objc_msgSend_1vzbexb(_$$ref.pointer, _sel_add_Y_Z_, x, Y, Z); + return _objc_msgSend_b9kbqv(_$$ref.pointer, _sel_add_Y_Z_, x, Y, Z); } /// addDoubles:Y: double addDoubles(double x, {required double Y}) { final _$$ref = object$.ref; return objc.useMsgSendVariants - ? _objc_msgSend_v4f59iFpret(_$$ref.pointer, _sel_addDoubles_Y_, x, Y) - : _objc_msgSend_v4f59i(_$$ref.pointer, _sel_addDoubles_Y_, x, Y); + ? _objc_msgSend_srsdcwFpret(_$$ref.pointer, _sel_addDoubles_Y_, x, Y) + : _objc_msgSend_srsdcw(_$$ref.pointer, _sel_addDoubles_Y_, x, Y); } /// addFloats:Y: double addFloats(double x, {required double Y}) { final _$$ref = object$.ref; return objc.useMsgSendVariants - ? _objc_msgSend_1738480Fpret(_$$ref.pointer, _sel_addFloats_Y_, x, Y) - : _objc_msgSend_1738480(_$$ref.pointer, _sel_addFloats_Y_, x, Y); + ? _objc_msgSend_sk7f6fFpret(_$$ref.pointer, _sel_addFloats_Y_, x, Y) + : _objc_msgSend_sk7f6f(_$$ref.pointer, _sel_addFloats_Y_, x, Y); } /// init @@ -160,7 +154,7 @@ extension MethodInterface$Methods on MethodInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -170,7 +164,7 @@ extension MethodInterface$Methods on MethodInterface { /// instStaticSameName int instStaticSameName() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_instStaticSameName); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_instStaticSameName); } /// twiddleVec4Components: @@ -178,13 +172,13 @@ extension MethodInterface$Methods on MethodInterface { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1ut2dfStret( + ? _objc_msgSend_ivr5s7Stret( $ptr, _$$ref.pointer, _sel_twiddleVec4Components_, v, ) - : $ptr.ref = _objc_msgSend_1ut2df( + : $ptr.ref = _objc_msgSend_ivr5s7( _$$ref.pointer, _sel_twiddleVec4Components_, v, @@ -233,45 +227,56 @@ final _class_MethodInterface = objc.getClass( _class_MethodInterface_raw, ).cast(), ); -final _objc_msgSend_1738480 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Float, - ffi.Float, ) > >() .asFunction< - double Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - double, - double, ) >(); -final _objc_msgSend_1738480Fpret = objc.msgSendFpretPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Float, - ffi.Float, + ffi.Pointer, ) > >() .asFunction< - double Function( + bool Function( ffi.Pointer, ffi.Pointer, - double, - double, + ffi.Pointer, ) >(); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Int32 Function( @@ -286,30 +291,34 @@ final _objc_msgSend_1etqkvi = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1q0lyci = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, + ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, + int, ) >(); -final _objc_msgSend_1jyzkwd = objc.msgSendPointer +final _objc_msgSend_b9kbqv = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ffi.Int32, + ffi.Int32, + ffi.Int32, ) > >() @@ -318,14 +327,17 @@ final _objc_msgSend_1jyzkwd = objc.msgSendPointer ffi.Pointer, ffi.Pointer, int, + int, + int, ) >(); -final _objc_msgSend_1ns26h5 = objc.msgSendPointer +final _objc_msgSend_ivr5s7 = objc.msgSendPointer .cast< ffi.NativeFunction< Vec4 Function( ffi.Pointer, ffi.Pointer, + Vec4, ) > >() @@ -333,15 +345,17 @@ final _objc_msgSend_1ns26h5 = objc.msgSendPointer Vec4 Function( ffi.Pointer, ffi.Pointer, + Vec4, ) >(); -final _objc_msgSend_1ns26h5Stret = objc.msgSendStretPointer +final _objc_msgSend_ivr5s7Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + Vec4, ) > >() @@ -350,15 +364,15 @@ final _objc_msgSend_1ns26h5Stret = objc.msgSendStretPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + Vec4, ) >(); -final _objc_msgSend_1ut2df = objc.msgSendPointer +final _objc_msgSend_o6r21b = objc.msgSendPointer .cast< ffi.NativeFunction< Vec4 Function( ffi.Pointer, ffi.Pointer, - Vec4, ) > >() @@ -366,17 +380,15 @@ final _objc_msgSend_1ut2df = objc.msgSendPointer Vec4 Function( ffi.Pointer, ffi.Pointer, - Vec4, ) >(); -final _objc_msgSend_1ut2dfStret = objc.msgSendStretPointer +final _objc_msgSend_o6r21bStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - Vec4, ) > >() @@ -385,50 +397,47 @@ final _objc_msgSend_1ut2dfStret = objc.msgSendStretPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - Vec4, ) >(); -final _objc_msgSend_1vzbexb = objc.msgSendPointer +final _objc_msgSend_sk7f6f = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Int32, + ffi.Float, + ffi.Float, ) > >() .asFunction< - int Function( + double Function( ffi.Pointer, ffi.Pointer, - int, - int, - int, + double, + double, ) >(); -final _objc_msgSend_as7aj8 = objc.msgSendPointer +final _objc_msgSend_sk7f6fFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32, + ffi.Float, + ffi.Float, ) > >() .asFunction< - int Function( + double Function( ffi.Pointer, ffi.Pointer, - int, - int, + double, + double, ) >(); -final _objc_msgSend_v4f59i = objc.msgSendPointer +final _objc_msgSend_srsdcw = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Double Function( @@ -447,7 +456,7 @@ final _objc_msgSend_v4f59i = objc.msgSendPointer double, ) >(); -final _objc_msgSend_v4f59iFpret = objc.msgSendFpretPointer +final _objc_msgSend_srsdcwFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< ffi.Double Function( @@ -466,36 +475,21 @@ final _objc_msgSend_v4f59iFpret = objc.msgSendFpretPointer double, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_zo3bvx = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + int, ) >(); late final _sel_Vec4 = objc.registerName("Vec4"); diff --git a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart index 3743aedecd..9ddfe020c2 100644 --- a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,29 +31,29 @@ extension type Foo._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Foo]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy(obj.ref.pointer, _sel_isKindOfClass_, _class_Foo); + : _objc_msgSend_19nvye5(obj.ref.pointer, _sel_isKindOfClass_, _class_Foo); /// alloc static Foo alloc() { - final $ret = _objc_msgSend_zldla2(_class_Foo, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Foo, _sel_alloc); return Foo.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Foo allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5(_class_Foo, _sel_allocWithZone_, zone); + final $ret = _objc_msgSend_1cwp428(_class_Foo, _sel_allocWithZone_, zone); return Foo.fromPointer($ret, retain: false, release: true); } /// makeFoo: static Foo makeFoo(double x) { - final $ret = _objc_msgSend_1qido3(_class_Foo, _sel_makeFoo_, x); + final $ret = _objc_msgSend_oa8mke(_class_Foo, _sel_makeFoo_, x); return Foo.fromPointer($ret, retain: true, release: true); } /// new static Foo new$() { - final $ret = _objc_msgSend_zldla2(_class_Foo, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Foo, _sel_new); return Foo.fromPointer($ret, retain: false, release: true); } @@ -65,20 +65,20 @@ extension Foo$Methods on Foo { /// boolVal bool get boolVal { final _$$ref = object$.ref; - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_boolVal); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_boolVal); } /// classVal objc.ObjCObject get classVal { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_classVal); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classVal); return objc.ObjCObject($ret, retain: true, release: true); } /// idVal objc.ObjCObject get idVal { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_idVal); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_idVal); return objc.ObjCObject($ret, retain: true, release: true); } @@ -90,7 +90,7 @@ extension Foo$Methods on Foo { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -100,14 +100,14 @@ extension Foo$Methods on Foo { /// intVal int get intVal { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_intVal); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_intVal); } /// multiply:withOtherFoo: int multiply(bool useIntVals, {required Foo withOtherFoo}) { final _$$ref = object$.ref; final _$$ref$1 = withOtherFoo.ref; - return _objc_msgSend_13w5pef( + return _objc_msgSend_1t47e0u( _$$ref.pointer, _sel_multiply_withOtherFoo_, useIntVals, @@ -118,59 +118,59 @@ extension Foo$Methods on Foo { /// objVal objc.NSObject get objVal { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_objVal); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_objVal); return objc.NSObject.fromPointer($ret, retain: true, release: true); } /// selVal ffi.Pointer get selVal { final _$$ref = object$.ref; - return _objc_msgSend_1fen6hj(_$$ref.pointer, _sel_selVal); + return _objc_msgSend_1ovaulg(_$$ref.pointer, _sel_selVal); } /// setBoolVal: set boolVal(bool value) { final _$$ref = object$.ref; - _objc_msgSend_1s4gila(_$$ref.pointer, _sel_setBoolVal_, value); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setBoolVal_, value); } /// setClassVal: set classVal(objc.ObjCObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setClassVal_, _$$ref$1.pointer); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setClassVal_, _$$ref$1.pointer); } /// setDoubleVal: void setDoubleVal(double x) { final _$$ref = object$.ref; - _objc_msgSend_q6vpml(_$$ref.pointer, _sel_setDoubleVal_, x); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setDoubleVal_, x); } /// setIdVal: set idVal(objc.ObjCObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setIdVal_, _$$ref$1.pointer); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setIdVal_, _$$ref$1.pointer); } /// setIntVal: set intVal(int value) { final _$$ref = object$.ref; - _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setIntVal_, value); + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setIntVal_, value); } /// setObjVal: set objVal(objc.NSObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setObjVal_, _$$ref$1.pointer); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setObjVal_, _$$ref$1.pointer); } /// setSelVal: set selVal(ffi.Pointer value) { final _$$ref = object$.ref; - _objc_msgSend_j5cnrc(_$$ref.pointer, _sel_setSelVal_, value); + _objc_msgSend_1d9e4oe(_$$ref.pointer, _sel_setSelVal_, value); } } @@ -182,47 +182,45 @@ final _class_Foo = objc.getClass( _class_Foo_raw, ).cast(), ); -final _objc_msgSend_13h8okt = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_13w5pef = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, ffi.Pointer, ) > >() .asFunction< - int Function( + bool Function( ffi.Pointer, ffi.Pointer, - bool, ffi.Pointer, ) >(); -final _objc_msgSend_1d1siln = objc.msgSendPointer +final _objc_msgSend_1bqef4y = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, ) > >() @@ -230,31 +228,33 @@ final _objc_msgSend_1d1siln = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1f6q4sj = objc.msgSendPointer +final _objc_msgSend_1d9e4oe = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, ) > >() @@ -262,93 +262,91 @@ final _objc_msgSend_1f6q4sj = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1fen6hj = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1ovaulg = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1qido3 = objc.msgSendPointer +final _objc_msgSend_1s56lr9 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Double, + ffi.Bool, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - double, + bool, ) >(); -final _objc_msgSend_1s4gila = objc.msgSendPointer +final _objc_msgSend_1t47e0u = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ffi.Bool, + ffi.Pointer, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, bool, + ffi.Pointer, ) >(); -final _objc_msgSend_j5cnrc = objc.msgSendPointer +final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_q6vpml = objc.msgSendPointer +final _objc_msgSend_hwm8nu = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -365,36 +363,38 @@ final _objc_msgSend_q6vpml = objc.msgSendPointer double, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_oa8mke = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Double, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + double, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/ns_range_test.dart b/pkgs/ffigen/test/native_objc_test/ns_range_test.dart index 8a062fe87f..cafdce7db0 100644 --- a/pkgs/ffigen/test/native_objc_test/ns_range_test.dart +++ b/pkgs/ffigen/test/native_objc_test/ns_range_test.dart @@ -47,14 +47,24 @@ void main() { ], ), objectiveC: const ObjectiveC(), - enums: const Enums(silenceWarning: true), visitors: [ Visitor( + visitFunc: (node) => node.isIncluded = false, + visitStruct: (node) => node.isIncluded = false, + visitUnion: (node) => node.isIncluded = false, + visitEnum: (node) => node.isIncluded = false, + visitUnnamedEnumConstant: (node) => node.isIncluded = false, + visitGlobal: (node) => node.isIncluded = false, + visitMacro: (node) => node.isIncluded = false, + visitConstant: (node) => node.isIncluded = false, + visitTypealias: (node) => node.isIncluded = false, visitObjCInterface: (node) { if (node.originalName != 'SFTranscriptionSegment') { node.isIncluded = false; } }, + visitObjCCategory: (node) => node.isIncluded = false, + visitObjCProtocol: (node) => node.isIncluded = false, ), ], ).generate(logger: createTestLogger()); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart index e6024cb01d..f808138798 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type NullableBase._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NullableBase]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_NullableBase, @@ -39,13 +39,13 @@ extension type NullableBase._(objc.ObjCObject object$) /// alloc static NullableBase alloc() { - final $ret = _objc_msgSend_zldla2(_class_NullableBase, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_NullableBase, _sel_alloc); return NullableBase.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NullableBase allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_NullableBase, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type NullableBase._(objc.ObjCObject object$) /// new static NullableBase new$() { - final $ret = _objc_msgSend_zldla2(_class_NullableBase, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_NullableBase, _sel_new); return NullableBase.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension NullableBase$Methods on NullableBase { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -83,7 +83,7 @@ extension NullableBase$Methods on NullableBase { bool nonNullArg(objc.NSObject x) { final _$$ref = object$.ref; final _$$ref$1 = x.ref; - return _objc_msgSend_xbndyy( + return _objc_msgSend_19nvye5( _$$ref.pointer, _sel_nonNullArg_, _$$ref$1.pointer, @@ -93,7 +93,7 @@ extension NullableBase$Methods on NullableBase { /// nonNullReturn objc.NSObject? nonNullReturn() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_nonNullReturn); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_nonNullReturn); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -103,7 +103,7 @@ extension NullableBase$Methods on NullableBase { bool nullableArg(objc.NSObject? x) { final _$$ref = object$.ref; final _$$ref$1 = x?.ref; - return _objc_msgSend_xbndyy( + return _objc_msgSend_19nvye5( _$$ref.pointer, _sel_nullableArg_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -113,7 +113,7 @@ extension NullableBase$Methods on NullableBase { /// nullableReturn: objc.NSObject? nullableReturn(bool r) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1zbf08(_$$ref.pointer, _sel_nullableReturn_, r); + final $ret = _objc_msgSend_1t6aok9(_$$ref.pointer, _sel_nullableReturn_, r); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -140,7 +140,7 @@ extension type NullableChild._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NullableChild]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_NullableChild, @@ -148,13 +148,13 @@ extension type NullableChild._(objc.ObjCObject object$) /// alloc static NullableChild alloc() { - final $ret = _objc_msgSend_zldla2(_class_NullableChild, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_NullableChild, _sel_alloc); return NullableChild.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NullableChild allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_NullableChild, _sel_allocWithZone_, zone, @@ -164,7 +164,7 @@ extension type NullableChild._(objc.ObjCObject object$) /// new static NullableChild new$() { - final $ret = _objc_msgSend_zldla2(_class_NullableChild, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_NullableChild, _sel_new); return NullableChild.fromPointer($ret, retain: false, release: true); } @@ -181,7 +181,7 @@ extension NullableChild$Methods on NullableChild { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -192,7 +192,7 @@ extension NullableChild$Methods on NullableChild { bool nonNullArg(objc.NSObject? x) { final _$$ref = object$.ref; final _$$ref$1 = x?.ref; - return _objc_msgSend_xbndyy( + return _objc_msgSend_19nvye5( _$$ref.pointer, _sel_nonNullArg_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -202,7 +202,7 @@ extension NullableChild$Methods on NullableChild { /// nonNullReturn objc.NSObject? nonNullReturn() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_nonNullReturn); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_nonNullReturn); return $ret.address == 0 ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); @@ -212,7 +212,7 @@ extension NullableChild$Methods on NullableChild { bool nullableArg(objc.NSObject x) { final _$$ref = object$.ref; final _$$ref$1 = x.ref; - return _objc_msgSend_xbndyy( + return _objc_msgSend_19nvye5( _$$ref.pointer, _sel_nullableArg_, _$$ref$1.pointer, @@ -222,7 +222,7 @@ extension NullableChild$Methods on NullableChild { /// nullableReturn: objc.NSObject nullableReturn(bool r) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1zbf08(_$$ref.pointer, _sel_nullableReturn_, r); + final $ret = _objc_msgSend_1t6aok9(_$$ref.pointer, _sel_nullableReturn_, r); return objc.NSObject.fromPointer($ret, retain: true, release: true); } } @@ -247,7 +247,7 @@ extension type NullableIntermediate._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NullableIntermediate]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_NullableIntermediate, @@ -255,13 +255,13 @@ extension type NullableIntermediate._(objc.ObjCObject object$) /// alloc static NullableIntermediate alloc() { - final $ret = _objc_msgSend_zldla2(_class_NullableIntermediate, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_NullableIntermediate, _sel_alloc); return NullableIntermediate.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NullableIntermediate allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_NullableIntermediate, _sel_allocWithZone_, zone, @@ -271,7 +271,7 @@ extension type NullableIntermediate._(objc.ObjCObject object$) /// new static NullableIntermediate new$() { - final $ret = _objc_msgSend_zldla2(_class_NullableIntermediate, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_NullableIntermediate, _sel_new); return NullableIntermediate.fromPointer($ret, retain: false, release: true); } @@ -288,7 +288,7 @@ extension NullableIntermediate$Methods on NullableIntermediate { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -326,13 +326,12 @@ final _class_NullableIntermediate = objc.getClass( _class_NullableIntermediate_raw, ).cast(), ); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -340,49 +339,49 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1zbf08 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - bool, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1t6aok9 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Bool, ) > >() @@ -390,6 +389,7 @@ final _objc_msgSend_zldla2 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + bool, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart index ce6face847..ba8f6f1664 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type NullableInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NullableInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_NullableInterface, @@ -39,13 +39,13 @@ extension type NullableInterface._(objc.ObjCObject object$) /// alloc static NullableInterface alloc() { - final $ret = _objc_msgSend_zldla2(_class_NullableInterface, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_NullableInterface, _sel_alloc); return NullableInterface.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NullableInterface allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_NullableInterface, _sel_allocWithZone_, zone, @@ -56,7 +56,7 @@ extension type NullableInterface._(objc.ObjCObject object$) /// isNullWithExplicitNonNullableNSObjectPtrArg: static bool isNullWithExplicitNonNullableNSObjectPtrArg(objc.NSObject x) { final _$$ref = x.ref; - return _objc_msgSend_xbndyy( + return _objc_msgSend_19nvye5( _class_NullableInterface, _sel_isNullWithExplicitNonNullableNSObjectPtrArg_, _$$ref.pointer, @@ -66,7 +66,7 @@ extension type NullableInterface._(objc.ObjCObject object$) /// isNullWithNotNullableNSObjectPtrArg: static bool isNullWithNotNullableNSObjectPtrArg(objc.NSObject x) { final _$$ref = x.ref; - return _objc_msgSend_xbndyy( + return _objc_msgSend_19nvye5( _class_NullableInterface, _sel_isNullWithNotNullableNSObjectPtrArg_, _$$ref.pointer, @@ -76,7 +76,7 @@ extension type NullableInterface._(objc.ObjCObject object$) /// isNullWithNullableNSObjectArg: static bool isNullWithNullableNSObjectArg(objc.NSObject? x) { final _$$ref = x?.ref; - return _objc_msgSend_xbndyy( + return _objc_msgSend_19nvye5( _class_NullableInterface, _sel_isNullWithNullableNSObjectArg_, _$$ref?.pointer ?? ffi.nullptr, @@ -92,7 +92,7 @@ extension type NullableInterface._(objc.ObjCObject object$) final _$$ref = x?.ref; final _$$ref$1 = y?.ref; final _$$ref$2 = z?.ref; - final $ret = _objc_msgSend_1mevadz( + final $ret = _objc_msgSend_11spmsz( _class_NullableInterface, _sel_multipleNullableArgs_y_z_, _$$ref?.pointer ?? ffi.nullptr, @@ -106,13 +106,13 @@ extension type NullableInterface._(objc.ObjCObject object$) /// new static NullableInterface new$() { - final $ret = _objc_msgSend_zldla2(_class_NullableInterface, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_NullableInterface, _sel_new); return NullableInterface.fromPointer($ret, retain: false, release: true); } /// returnNil: static objc.NSObject? returnNil(bool r) { - final $ret = _objc_msgSend_1zbf08( + final $ret = _objc_msgSend_1t6aok9( _class_NullableInterface, _sel_returnNil_, r, @@ -124,7 +124,7 @@ extension type NullableInterface._(objc.ObjCObject object$) /// returnNullableAlias: static objc.NSString? returnNullableAlias(bool r) { - final $ret = _objc_msgSend_1zbf08( + final $ret = _objc_msgSend_1t6aok9( _class_NullableInterface, _sel_returnNullableAlias_, r, @@ -147,7 +147,7 @@ extension NullableInterface$Methods on NullableInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -157,7 +157,7 @@ extension NullableInterface$Methods on NullableInterface { /// nullableObjectProperty objc.NSObject? get nullableObjectProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.pointer, _sel_nullableObjectProperty, ); @@ -170,7 +170,7 @@ extension NullableInterface$Methods on NullableInterface { set nullableObjectProperty(objc.NSObject? value) { final _$$ref = object$.ref; final _$$ref$1 = value?.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setNullableObjectProperty_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -188,30 +188,33 @@ final _class_NullableInterface = objc.getClass( _class_NullableInterface_raw, ).cast(), ); -final _objc_msgSend_1d1siln = objc.msgSendPointer +final _objc_msgSend_11spmsz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -219,37 +222,32 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1mevadz = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1zbf08 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, + ffi.Pointer, ) > >() @@ -257,39 +255,41 @@ final _objc_msgSend_1zbf08 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - bool, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1t6aok9 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Bool, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + bool, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart index 8c742e2dd1..c153f673a9 100644 --- a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [PropertyInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_PropertyInterface, @@ -39,13 +39,13 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// alloc static PropertyInterface alloc() { - final $ret = _objc_msgSend_zldla2(_class_PropertyInterface, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_PropertyInterface, _sel_alloc); return PropertyInterface.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static PropertyInterface allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_PropertyInterface, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// classReadOnlyProperty static int getClassReadOnlyProperty() { - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_PropertyInterface, _sel_classReadOnlyProperty, ); @@ -63,7 +63,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// classReadWriteProperty static int getClassReadWriteProperty() { - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_PropertyInterface, _sel_classReadWriteProperty, ); @@ -71,7 +71,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// instStaticSameName static int getInstStaticSameName$1() { - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_PropertyInterface, _sel_instStaticSameName, ); @@ -79,13 +79,13 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// new static PropertyInterface new$() { - final $ret = _objc_msgSend_zldla2(_class_PropertyInterface, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_PropertyInterface, _sel_new); return PropertyInterface.fromPointer($ret, retain: false, release: true); } /// regressGH1268 static objc.NSArray getRegressGH1268() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_PropertyInterface, _sel_regressGH1268, ); @@ -94,7 +94,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// regressGH436 static UndefinedTemplate getRegressGH436() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_PropertyInterface, _sel_regressGH436, ); @@ -103,7 +103,7 @@ extension type PropertyInterface._(objc.ObjCObject object$) /// setClassReadWriteProperty: static void setClassReadWriteProperty(int value) { - _objc_msgSend_1f6q4sj( + _objc_msgSend_1bqef4y( _class_PropertyInterface, _sel_setClassReadWriteProperty_, value, @@ -119,16 +119,16 @@ extension PropertyInterface$Methods on PropertyInterface { double get doubleProperty { final _$$ref = object$.ref; return objc.useMsgSendVariants - ? _objc_msgSend_9pr6kkFpret(_$$ref.pointer, _sel_doubleProperty) - : _objc_msgSend_9pr6kk(_$$ref.pointer, _sel_doubleProperty); + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_doubleProperty) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_doubleProperty); } /// floatProperty double get floatProperty { final _$$ref = object$.ref; return objc.useMsgSendVariants - ? _objc_msgSend_kh8q6eFpret(_$$ref.pointer, _sel_floatProperty) - : _objc_msgSend_kh8q6e(_$$ref.pointer, _sel_floatProperty); + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_floatProperty) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_floatProperty); } /// init @@ -139,7 +139,7 @@ extension PropertyInterface$Methods on PropertyInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -149,43 +149,43 @@ extension PropertyInterface$Methods on PropertyInterface { /// instStaticSameName int get instStaticSameName { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_instStaticSameName); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_instStaticSameName); } /// readOnlyProperty int get readOnlyProperty { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_readOnlyProperty); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_readOnlyProperty); } /// readWriteProperty int get readWriteProperty { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_readWriteProperty); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_readWriteProperty); } /// setDoubleProperty: set doubleProperty(double value) { final _$$ref = object$.ref; - _objc_msgSend_q6vpml(_$$ref.pointer, _sel_setDoubleProperty_, value); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setDoubleProperty_, value); } /// setFloatProperty: set floatProperty(double value) { final _$$ref = object$.ref; - _objc_msgSend_1gv17gn(_$$ref.pointer, _sel_setFloatProperty_, value); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setFloatProperty_, value); } /// setReadWriteProperty: set readWriteProperty(int value) { final _$$ref = object$.ref; - _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setReadWriteProperty_, value); + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setReadWriteProperty_, value); } /// setStructProperty: set structProperty(Vec4 value) { final _$$ref = object$.ref; - _objc_msgSend_19l0oqy(_$$ref.pointer, _sel_setStructProperty_, value); + _objc_msgSend_188ryij(_$$ref.pointer, _sel_setStructProperty_, value); } /// structProperty @@ -193,8 +193,8 @@ extension PropertyInterface$Methods on PropertyInterface { final _$$ref = object$.ref; final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_1ns26h5Stret($ptr, _$$ref.pointer, _sel_structProperty) - : $ptr.ref = _objc_msgSend_1ns26h5(_$$ref.pointer, _sel_structProperty); + ? _objc_msgSend_o6r21bStret($ptr, _$$ref.pointer, _sel_structProperty) + : $ptr.ref = _objc_msgSend_o6r21b(_$$ref.pointer, _sel_structProperty); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -256,62 +256,62 @@ final _class_PropertyInterface = objc.getClass( _class_PropertyInterface_raw, ).cast(), ); -final _objc_msgSend_19l0oqy = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - Vec4, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - Vec4, ) >(); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_188ryij = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + Vec4, ) > >() .asFunction< - int Function( + void Function( ffi.Pointer, ffi.Pointer, + Vec4, ) >(); -final _objc_msgSend_1f6q4sj = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1gv17gn = objc.msgSendPointer +final _objc_msgSend_1bqef4y = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Float, + ffi.Int32, ) > >() @@ -319,10 +319,10 @@ final _objc_msgSend_1gv17gn = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - double, + int, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -339,39 +339,37 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1ns26h5 = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - Vec4 Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - Vec4 Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1ns26h5Stret = objc.msgSendStretPointer +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Double Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - void Function( - ffi.Pointer, + double Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_9pr6kk = objc.msgSendPointer +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< ffi.Double Function( @@ -386,10 +384,10 @@ final _objc_msgSend_9pr6kk = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_9pr6kkFpret = objc.msgSendFpretPointer +final _objc_msgSend_2cgrxl = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Double Function( + ffi.Float Function( ffi.Pointer, ffi.Pointer, ) @@ -401,7 +399,7 @@ final _objc_msgSend_9pr6kkFpret = objc.msgSendFpretPointer ffi.Pointer, ) >(); -final _objc_msgSend_kh8q6e = objc.msgSendPointer +final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer .cast< ffi.NativeFunction< ffi.Float Function( @@ -416,68 +414,70 @@ final _objc_msgSend_kh8q6e = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_kh8q6eFpret = objc.msgSendFpretPointer +final _objc_msgSend_hwm8nu = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Float Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Double, ) > >() .asFunction< - double Function( + void Function( ffi.Pointer, ffi.Pointer, + double, ) >(); -final _objc_msgSend_q6vpml = objc.msgSendPointer +final _objc_msgSend_o6r21b = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, - ffi.Double, ) > >() .asFunction< - void Function( + Vec4 Function( ffi.Pointer, ffi.Pointer, - double, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_o6r21bStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_v5hmet = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Float, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + double, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart index bde5fa7fdc..d38bd0fd15 100644 --- a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -11,45 +11,30 @@ import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); @ffi.Native< - ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - SomeStruct, - ) ->() -external int _13hhotk_protocolTrampoline_1b21v9l( - ffi.Pointer target, - ffi.Pointer arg0, - SomeStruct arg1, -); - -@ffi.Native< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Double, ) >() -external ffi.Pointer _13hhotk_protocolTrampoline_1ig8rct( +external void _13hhotk_protocolTrampoline_18v1jvf( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, - double arg2, ); @ffi.Native< - instancetype Function(ffi.Pointer, ffi.Pointer) + ffi.Int32 Function(ffi.Pointer, ffi.Pointer) >() -external instancetype _13hhotk_protocolTrampoline_1jnam6p( +external int _13hhotk_protocolTrampoline_1d4mjzg( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer) + instancetype Function(ffi.Pointer, ffi.Pointer) >() -external int _13hhotk_protocolTrampoline_b3xgmd( +external instancetype _13hhotk_protocolTrampoline_1mbt9g9( ffi.Pointer target, ffi.Pointer arg0, ); @@ -61,7 +46,7 @@ external int _13hhotk_protocolTrampoline_b3xgmd( ffi.Int32, ) >() -external void _13hhotk_protocolTrampoline_strl0q( +external void _13hhotk_protocolTrampoline_1pbq496( ffi.Pointer target, ffi.Pointer arg0, int arg1, @@ -71,32 +56,28 @@ external void _13hhotk_protocolTrampoline_strl0q( ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Int32, - ffi.Int32, + SomeStruct, ) >() -external int _13hhotk_protocolTrampoline_vbq37t( +external int _13hhotk_protocolTrampoline_1pfwxcz( ffi.Pointer target, ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, - int arg4, + SomeStruct arg1, ); @ffi.Native< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Double, ) >() -external void _13hhotk_protocolTrampoline_w57eou( +external ffi.Pointer _13hhotk_protocolTrampoline_1s2pox8( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, + double arg2, ); @ffi.Native< @@ -106,12 +87,31 @@ external void _13hhotk_protocolTrampoline_w57eou( ffi.Pointer, ) >() -external void _13hhotk_protocolTrampoline_zzd4sa( +external void _13hhotk_protocolTrampoline_8r9qkg( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); +@ffi.Native< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Int32, + ffi.Int32, + ) +>() +external int _13hhotk_protocolTrampoline_ct0ie0( + ffi.Pointer target, + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, + int arg4, +); + @ffi.Native< ffi.Pointer Function( ffi.Int64, @@ -123,7 +123,7 @@ external void _13hhotk_protocolTrampoline_zzd4sa( >, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapBlockingBlock_strl0q( +external ffi.Pointer _13hhotk_wrapBlockingBlock_18v1jvf( int port, ffi.Pointer context, ffi.Pointer< @@ -143,7 +143,7 @@ external ffi.Pointer _13hhotk_wrapBlockingBlock_strl0q( >, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapBlockingBlock_w57eou( +external ffi.Pointer _13hhotk_wrapBlockingBlock_1pbq496( int port, ffi.Pointer context, ffi.Pointer< @@ -163,7 +163,7 @@ external ffi.Pointer _13hhotk_wrapBlockingBlock_w57eou( >, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapBlockingBlock_zzd4sa( +external ffi.Pointer _13hhotk_wrapBlockingBlock_8r9qkg( int port, ffi.Pointer context, ffi.Pointer< @@ -178,7 +178,7 @@ external ffi.Pointer _13hhotk_wrapBlockingBlock_zzd4sa( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapListenerBlock_strl0q( +external ffi.Pointer _13hhotk_wrapListenerBlock_18v1jvf( int port, ffi.Pointer context, ); @@ -189,7 +189,7 @@ external ffi.Pointer _13hhotk_wrapListenerBlock_strl0q( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapListenerBlock_w57eou( +external ffi.Pointer _13hhotk_wrapListenerBlock_1pbq496( int port, ffi.Pointer context, ); @@ -200,7 +200,7 @@ external ffi.Pointer _13hhotk_wrapListenerBlock_w57eou( ffi.Pointer, ) >(isLeaf: true) -external ffi.Pointer _13hhotk_wrapListenerBlock_zzd4sa( +external ffi.Pointer _13hhotk_wrapListenerBlock_8r9qkg( int port, ffi.Pointer context, ); @@ -241,7 +241,7 @@ extension type EmptyProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [EmptyProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( + return _objc_msgSend_e3qsqz( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_EmptyProtocol, @@ -312,7 +312,7 @@ extension type MyProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [MyProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( + return _objc_msgSend_e3qsqz( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_MyProtocol, @@ -330,14 +330,14 @@ extension MyProtocol$Methods on MyProtocol { 'disabledMethod', ); } - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_disabledMethod); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_disabledMethod); } /// instanceMethod:withDouble: objc.NSString instanceMethod(objc.NSString s, {required double withDouble}) { final _$$ref = object$.ref; final _$$ref$1 = s.ref; - final $ret = _objc_msgSend_1embdam( + final $ret = _objc_msgSend_6plvbo( _$$ref.pointer, _sel_instanceMethod_withDouble_, _$$ref$1.pointer, @@ -355,7 +355,7 @@ extension MyProtocol$Methods on MyProtocol { 'intPtrMethod:', ); } - _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_intPtrMethod_, ptr); + _objc_msgSend_yhkuco(_$$ref.pointer, _sel_intPtrMethod_, ptr); } /// objectMethod: @@ -368,7 +368,7 @@ extension MyProtocol$Methods on MyProtocol { 'objectMethod:', ); } - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); } /// optionalMethod: @@ -380,7 +380,7 @@ extension MyProtocol$Methods on MyProtocol { 'optionalMethod:', ); } - return _objc_msgSend_eu58sw(_$$ref.pointer, _sel_optionalMethod_, s); + return _objc_msgSend_lacj97(_$$ref.pointer, _sel_optionalMethod_, s); } /// voidMethod: @@ -392,7 +392,7 @@ extension MyProtocol$Methods on MyProtocol { 'voidMethod:', ); } - _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_voidMethod_, x); + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_voidMethod_, x); } } @@ -608,7 +608,7 @@ interface class MyProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_b3xgmd) + >(_13hhotk_protocolTrampoline_1d4mjzg) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -635,7 +635,7 @@ interface class MyProtocol$Builder { ffi.Double, ) > - >(_13hhotk_protocolTrampoline_1ig8rct) + >(_13hhotk_protocolTrampoline_1s2pox8) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -663,7 +663,7 @@ interface class MyProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_zzd4sa) + >(_13hhotk_protocolTrampoline_8r9qkg) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -701,7 +701,7 @@ interface class MyProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_w57eou) + >(_13hhotk_protocolTrampoline_18v1jvf) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -736,7 +736,7 @@ interface class MyProtocol$Builder { SomeStruct, ) > - >(_13hhotk_protocolTrampoline_1b21v9l) + >(_13hhotk_protocolTrampoline_1pfwxcz) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -763,7 +763,7 @@ interface class MyProtocol$Builder { ffi.Int32, ) > - >(_13hhotk_protocolTrampoline_strl0q) + >(_13hhotk_protocolTrampoline_1pbq496) .cast(), objc.getProtocolMethodSignature( _protocol_MyProtocol, @@ -1466,7 +1466,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock, ffi.Int32)>( - objc.newBlockPort(_13hhotk_wrapListenerBlock_strl0q, ( + objc.newBlockPort(_13hhotk_wrapListenerBlock_1pbq496, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1jgz5dp.fromPointer( @@ -1498,7 +1498,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_Int32 { bool keepIsolateAlive = true, }) { return objc.ObjCBlock, ffi.Int32)>( - objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_strl0q, ( + objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_1pbq496, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_1jgz5dp.fromPointer( @@ -1664,7 +1664,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_Int32$1 { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, ffi.Pointer) >( - objc.newBlockPort(_13hhotk_wrapListenerBlock_zzd4sa, ( + objc.newBlockPort(_13hhotk_wrapListenerBlock_8r9qkg, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_76xh3h.fromPointer( @@ -1700,7 +1700,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_Int32$1 { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, ffi.Pointer) >( - objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_zzd4sa, ( + objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_8r9qkg, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_76xh3h.fromPointer( @@ -1867,7 +1867,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSObject { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSObject) >( - objc.newBlockPort(_13hhotk_wrapListenerBlock_w57eou, ( + objc.newBlockPort(_13hhotk_wrapListenerBlock_18v1jvf, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_g8o2nj.fromPointer( @@ -1901,7 +1901,7 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSObject { return objc.ObjCBlock< ffi.Void Function(ffi.Pointer, objc.NSObject) >( - objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_w57eou, ( + objc.newBlockingBlockPort(_13hhotk_wrapBlockingBlock_18v1jvf, ( ffi.Pointer rawArgs, ) { final args = _BlockArgs_g8o2nj.fromPointer( @@ -2287,7 +2287,7 @@ extension type ObjCProtocolImpl._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ObjCProtocolImpl]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ObjCProtocolImpl, @@ -2295,13 +2295,13 @@ extension type ObjCProtocolImpl._(objc.ObjCObject object$) /// alloc static ObjCProtocolImpl alloc() { - final $ret = _objc_msgSend_zldla2(_class_ObjCProtocolImpl, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_ObjCProtocolImpl, _sel_alloc); return ObjCProtocolImpl.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ObjCProtocolImpl allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ObjCProtocolImpl, _sel_allocWithZone_, zone, @@ -2311,7 +2311,7 @@ extension type ObjCProtocolImpl._(objc.ObjCObject object$) /// new static ObjCProtocolImpl new$() { - final $ret = _objc_msgSend_zldla2(_class_ObjCProtocolImpl, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_ObjCProtocolImpl, _sel_new); return ObjCProtocolImpl.fromPointer($ret, retain: false, release: true); } @@ -2326,7 +2326,7 @@ extension type ObjCProtocolImpl._(objc.ObjCObject object$) 'optionalClassMethod', ); } - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_ObjCProtocolImpl, _sel_optionalClassMethod, ); @@ -2334,7 +2334,7 @@ extension type ObjCProtocolImpl._(objc.ObjCObject object$) /// requiredClassMethod static int requiredClassMethod() { - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_ObjCProtocolImpl, _sel_requiredClassMethod, ); @@ -2351,7 +2351,7 @@ extension type ObjCProtocolImpl._(objc.ObjCObject object$) 'unimplementedOtionalClassMethod', ); } - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_ObjCProtocolImpl, _sel_unimplementedOtionalClassMethod, ); @@ -2371,13 +2371,13 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'disabledMethod', ); } - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_disabledMethod); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_disabledMethod); } /// fooMethod int fooMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_fooMethod); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_fooMethod); } /// init @@ -2388,7 +2388,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -2399,7 +2399,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { objc.NSString instanceMethod(objc.NSString s, {required double withDouble}) { final _$$ref = object$.ref; final _$$ref$1 = s.ref; - final $ret = _objc_msgSend_1embdam( + final $ret = _objc_msgSend_6plvbo( _$$ref.pointer, _sel_instanceMethod_withDouble_, _$$ref$1.pointer, @@ -2417,7 +2417,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'intPtrMethod:', ); } - _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_intPtrMethod_, ptr); + _objc_msgSend_yhkuco(_$$ref.pointer, _sel_intPtrMethod_, ptr); } /// objectMethod: @@ -2430,7 +2430,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'objectMethod:', ); } - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); } /// optionalMethod: @@ -2442,13 +2442,13 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'optionalMethod:', ); } - return _objc_msgSend_eu58sw(_$$ref.pointer, _sel_optionalMethod_, s); + return _objc_msgSend_lacj97(_$$ref.pointer, _sel_optionalMethod_, s); } /// otherMethod:b:c:d: int otherMethod(int a, {required int b, required int c, required int d}) { final _$$ref = object$.ref; - return _objc_msgSend_15m3eka( + return _objc_msgSend_hv8ra8( _$$ref.pointer, _sel_otherMethod_b_c_d_, a, @@ -2467,7 +2467,10 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'returnsInstanceType', ); } - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsInstanceType); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_returnsInstanceType, + ); return $ret.address == 0 ? null : ObjCProtocolImpl.fromPointer($ret, retain: true, release: true); @@ -2482,7 +2485,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'returnsMyProtocol', ); } - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsMyProtocol); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_returnsMyProtocol); return MyProtocol.fromPointer($ret, retain: true, release: true); } @@ -2495,7 +2498,7 @@ extension ObjCProtocolImpl$Methods on ObjCProtocolImpl { 'voidMethod:', ); } - _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_voidMethod_, x); + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_voidMethod_, x); } } @@ -2519,7 +2522,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ObjCProtocolImplMissingMethod]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ObjCProtocolImplMissingMethod, @@ -2527,7 +2530,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) /// alloc static ObjCProtocolImplMissingMethod alloc() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_ObjCProtocolImplMissingMethod, _sel_alloc, ); @@ -2542,7 +2545,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) static ObjCProtocolImplMissingMethod allocWithZone( ffi.Pointer zone, ) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ObjCProtocolImplMissingMethod, _sel_allocWithZone_, zone, @@ -2556,7 +2559,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) /// new static ObjCProtocolImplMissingMethod new$() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_ObjCProtocolImplMissingMethod, _sel_new, ); @@ -2578,7 +2581,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) 'optionalClassMethod', ); } - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_ObjCProtocolImplMissingMethod, _sel_optionalClassMethod, ); @@ -2586,7 +2589,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) /// requiredClassMethod static int requiredClassMethod() { - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_ObjCProtocolImplMissingMethod, _sel_requiredClassMethod, ); @@ -2603,7 +2606,7 @@ extension type ObjCProtocolImplMissingMethod._(objc.ObjCObject object$) 'unimplementedOtionalClassMethod', ); } - return _objc_msgSend_1etqkvi( + return _objc_msgSend_1gcq84o( _class_ObjCProtocolImplMissingMethod, _sel_unimplementedOtionalClassMethod, ); @@ -2624,7 +2627,7 @@ extension ObjCProtocolImplMissingMethod$Methods 'disabledMethod', ); } - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_disabledMethod); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_disabledMethod); } /// init @@ -2635,7 +2638,7 @@ extension ObjCProtocolImplMissingMethod$Methods iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -2650,7 +2653,7 @@ extension ObjCProtocolImplMissingMethod$Methods objc.NSString instanceMethod(objc.NSString s, {required double withDouble}) { final _$$ref = object$.ref; final _$$ref$1 = s.ref; - final $ret = _objc_msgSend_1embdam( + final $ret = _objc_msgSend_6plvbo( _$$ref.pointer, _sel_instanceMethod_withDouble_, _$$ref$1.pointer, @@ -2668,7 +2671,7 @@ extension ObjCProtocolImplMissingMethod$Methods 'intPtrMethod:', ); } - _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_intPtrMethod_, ptr); + _objc_msgSend_yhkuco(_$$ref.pointer, _sel_intPtrMethod_, ptr); } /// objectMethod: @@ -2681,7 +2684,7 @@ extension ObjCProtocolImplMissingMethod$Methods 'objectMethod:', ); } - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_objectMethod_, _$$ref$1.pointer); } /// optionalMethod: @@ -2693,7 +2696,7 @@ extension ObjCProtocolImplMissingMethod$Methods 'optionalMethod:', ); } - return _objc_msgSend_eu58sw(_$$ref.pointer, _sel_optionalMethod_, s); + return _objc_msgSend_lacj97(_$$ref.pointer, _sel_optionalMethod_, s); } /// voidMethod: @@ -2705,7 +2708,7 @@ extension ObjCProtocolImplMissingMethod$Methods 'voidMethod:', ); } - _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_voidMethod_, x); + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_voidMethod_, x); } } @@ -2729,7 +2732,7 @@ extension type ProtocolConsumer._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [ProtocolConsumer]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_ProtocolConsumer, @@ -2737,13 +2740,13 @@ extension type ProtocolConsumer._(objc.ObjCObject object$) /// alloc static ProtocolConsumer alloc() { - final $ret = _objc_msgSend_zldla2(_class_ProtocolConsumer, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_ProtocolConsumer, _sel_alloc); return ProtocolConsumer.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static ProtocolConsumer allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_ProtocolConsumer, _sel_allocWithZone_, zone, @@ -2753,7 +2756,7 @@ extension type ProtocolConsumer._(objc.ObjCObject object$) /// new static ProtocolConsumer new$() { - final $ret = _objc_msgSend_zldla2(_class_ProtocolConsumer, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_ProtocolConsumer, _sel_new); return ProtocolConsumer.fromPointer($ret, retain: false, release: true); } @@ -2766,7 +2769,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { void callBlockingMethodOnRandomThread(MyProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_callBlockingMethodOnRandomThread_, _$$ref$1.pointer, @@ -2777,7 +2780,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { objc.NSString callInstanceMethod(SuperProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _$$ref.pointer, _sel_callInstanceMethod_, _$$ref$1.pointer, @@ -2789,7 +2792,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { void callMethodOnRandomThread(MyProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_callMethodOnRandomThread_, _$$ref$1.pointer, @@ -2800,7 +2803,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { int callOptionalMethod(MyProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - return _objc_msgSend_ml5svd( + return _objc_msgSend_fd28sq( _$$ref.pointer, _sel_callOptionalMethod_, _$$ref$1.pointer, @@ -2811,7 +2814,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { int callOtherMethod(SecondaryProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - return _objc_msgSend_ml5svd( + return _objc_msgSend_fd28sq( _$$ref.pointer, _sel_callOtherMethod_, _$$ref$1.pointer, @@ -2822,7 +2825,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { int callTwoMethods(MyProtocol protocol) { final _$$ref = object$.ref; final _$$ref$1 = protocol.ref; - return _objc_msgSend_ml5svd( + return _objc_msgSend_fd28sq( _$$ref.pointer, _sel_callTwoMethods_, _$$ref$1.pointer, @@ -2837,7 +2840,7 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -2860,7 +2863,7 @@ extension type SecondaryProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [SecondaryProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( + return _objc_msgSend_e3qsqz( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_SecondaryProtocol, @@ -2872,7 +2875,7 @@ extension SecondaryProtocol$Methods on SecondaryProtocol { /// otherMethod:b:c:d: int otherMethod(int a, {required int b, required int c, required int d}) { final _$$ref = object$.ref; - return _objc_msgSend_15m3eka( + return _objc_msgSend_hv8ra8( _$$ref.pointer, _sel_otherMethod_b_c_d_, a, @@ -2891,7 +2894,10 @@ extension SecondaryProtocol$Methods on SecondaryProtocol { 'returnsInstanceType', ); } - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsInstanceType); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_returnsInstanceType, + ); return $ret.address == 0 ? null : SecondaryProtocol.fromPointer($ret, retain: true, release: true); @@ -2906,7 +2912,7 @@ extension SecondaryProtocol$Methods on SecondaryProtocol { 'returnsMyProtocol', ); } - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsMyProtocol); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_returnsMyProtocol); return MyProtocol.fromPointer($ret, retain: true, release: true); } } @@ -2988,7 +2994,7 @@ interface class SecondaryProtocol$Builder { ffi.Int32, ) > - >(_13hhotk_protocolTrampoline_vbq37t) + >(_13hhotk_protocolTrampoline_ct0ie0) .cast(), objc.getProtocolMethodSignature( _protocol_SecondaryProtocol, @@ -3020,7 +3026,7 @@ interface class SecondaryProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_1jnam6p) + >(_13hhotk_protocolTrampoline_1mbt9g9) .cast(), objc.getProtocolMethodSignature( _protocol_SecondaryProtocol, @@ -3046,7 +3052,7 @@ interface class SecondaryProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_1jnam6p) + >(_13hhotk_protocolTrampoline_1mbt9g9) .cast(), objc.getProtocolMethodSignature( _protocol_SecondaryProtocol, @@ -3109,7 +3115,7 @@ extension type UnusedProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [UnusedProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( + return _objc_msgSend_e3qsqz( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_UnusedProtocol, @@ -3121,7 +3127,7 @@ extension UnusedProtocol$Methods on UnusedProtocol { /// someMethod int someMethod() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_someMethod); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_someMethod); } } @@ -3171,7 +3177,7 @@ interface class UnusedProtocol$Builder { ffi.Pointer, ) > - >(_13hhotk_protocolTrampoline_b3xgmd) + >(_13hhotk_protocolTrampoline_1d4mjzg) .cast(), objc.getProtocolMethodSignature( _protocol_UnusedProtocol, @@ -3204,7 +3210,7 @@ extension type _BlockArgs_1jgz5dp._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_1jgz5dp]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_1jgz5dp, @@ -3214,12 +3220,12 @@ extension type _BlockArgs_1jgz5dp._(objc.ObjCObject object$) extension _BlockArgs_1jgz5dp$Methods on _BlockArgs_1jgz5dp { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); } int get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_arg1); } } @@ -3242,7 +3248,7 @@ extension type _BlockArgs_76xh3h._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_76xh3h]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_76xh3h, @@ -3252,12 +3258,12 @@ extension type _BlockArgs_76xh3h._(objc.ObjCObject object$) extension _BlockArgs_76xh3h$Methods on _BlockArgs_76xh3h { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); } ffi.Pointer get arg1 { final _$$ref = object$.ref; - return _objc_msgSend_8s7612(_$$ref.pointer, _sel_arg1); + return _objc_msgSend_obqqme(_$$ref.pointer, _sel_arg1); } } @@ -3280,7 +3286,7 @@ extension type _BlockArgs_g8o2nj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [_BlockArgs_g8o2nj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class__BlockArgs_g8o2nj, @@ -3290,12 +3296,12 @@ extension type _BlockArgs_g8o2nj._(objc.ObjCObject object$) extension _BlockArgs_g8o2nj$Methods on _BlockArgs_g8o2nj { ffi.Pointer get arg0 { final _$$ref = object$.ref; - return _objc_msgSend_eloak0(_$$ref.pointer, _sel_arg0); + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); } objc.NSObject get arg1 { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_arg1); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); return objc.NSObject.fromPointer($ret, retain: true, release: true); } } @@ -3332,62 +3338,54 @@ final _class_ProtocolConsumer = objc.getClass( ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_strl0q', + symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_1pbq496', ) external ffi.Pointer _class__BlockArgs_1jgz5dp_raw; final _class__BlockArgs_1jgz5dp = objc.getClass( - "_13hhotk_BlockArgs_strl0q", + "_13hhotk_BlockArgs_1pbq496", () => ffi.Native.addressOf>( _class__BlockArgs_1jgz5dp_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_zzd4sa', + symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_8r9qkg', ) external ffi.Pointer _class__BlockArgs_76xh3h_raw; final _class__BlockArgs_76xh3h = objc.getClass( - "_13hhotk_BlockArgs_zzd4sa", + "_13hhotk_BlockArgs_8r9qkg", () => ffi.Native.addressOf>( _class__BlockArgs_76xh3h_raw, ).cast(), ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_w57eou', + symbol: 'OBJC_CLASS_\$__13hhotk_BlockArgs_18v1jvf', ) external ffi.Pointer _class__BlockArgs_g8o2nj_raw; final _class__BlockArgs_g8o2nj = objc.getClass( - "_13hhotk_BlockArgs_w57eou", + "_13hhotk_BlockArgs_18v1jvf", () => ffi.Native.addressOf>( _class__BlockArgs_g8o2nj_raw, ).cast(), ); -final _objc_msgSend_15m3eka = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Int32, - ffi.Int32, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, - int, - int, - int, ) >(); -final _objc_msgSend_1d1siln = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -3395,64 +3393,62 @@ final _objc_msgSend_1d1siln = objc.msgSendPointer > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1embdam = objc.msgSendPointer +final _objc_msgSend_1bqef4y = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Double, + ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - double, + int, ) >(); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1f6q4sj = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_1ffzwv1 = objc.msgSendPointer +final _objc_msgSend_1sotr3r = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -3469,41 +3465,41 @@ final _objc_msgSend_1ffzwv1 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_6ex6p5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1vg1ydp = objc.msgSendPointer +final _objc_msgSend_6plvbo = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Double, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + double, ) >(); -final _objc_msgSend_441sd9 = objc.msgSendPointer +final _objc_msgSend_e3qsqz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -3520,37 +3516,47 @@ final _objc_msgSend_441sd9 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_8s7612 = objc.msgSendPointer +final _objc_msgSend_fd28sq = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_eloak0 = objc.msgSendPointer +final _objc_msgSend_hv8ra8 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Int32, + ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + int, + int, + int, + int, ) >(); -final _objc_msgSend_eu58sw = objc.msgSendPointer +final _objc_msgSend_lacj97 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Int32 Function( @@ -3567,27 +3573,25 @@ final _objc_msgSend_eu58sw = objc.msgSendPointer SomeStruct, ) >(); -final _objc_msgSend_ml5svd = objc.msgSendPointer +final _objc_msgSend_obqqme = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -3595,25 +3599,27 @@ final _objc_msgSend_xbndyy = objc.msgSendPointer > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); @ffi.Native Function()>( diff --git a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.m b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.m index ae225207e4..21ddff9ebb 100644 --- a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.m @@ -64,45 +64,45 @@ typedef int32_t (^_ProtocolTrampoline)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -int32_t _13hhotk_protocolTrampoline_b3xgmd(id target, void * sel) { +int32_t _13hhotk_protocolTrampoline_1d4mjzg(id target, void * sel) { return ((_ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } typedef int32_t (^_ProtocolTrampoline_1)(void * sel, int32_t arg1, int32_t arg2, int32_t arg3, int32_t arg4); __attribute__((visibility("default"))) __attribute__((used)) -int32_t _13hhotk_protocolTrampoline_vbq37t(id target, void * sel, int32_t arg1, int32_t arg2, int32_t arg3, int32_t arg4) { +int32_t _13hhotk_protocolTrampoline_ct0ie0(id target, void * sel, int32_t arg1, int32_t arg2, int32_t arg3, int32_t arg4) { return ((_ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); } typedef int32_t (^_ProtocolTrampoline_2)(void * sel, SomeStruct arg1); __attribute__((visibility("default"))) __attribute__((used)) -int32_t _13hhotk_protocolTrampoline_1b21v9l(id target, void * sel, SomeStruct arg1) { +int32_t _13hhotk_protocolTrampoline_1pfwxcz(id target, void * sel, SomeStruct arg1) { return ((_ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } typedef id (^_ProtocolTrampoline_3)(void * sel, id arg1, double arg2); __attribute__((visibility("default"))) __attribute__((used)) -id _13hhotk_protocolTrampoline_1ig8rct(id target, void * sel, id arg1, double arg2) { +id _13hhotk_protocolTrampoline_1s2pox8(id target, void * sel, id arg1, double arg2) { return ((_ProtocolTrampoline_3)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); } __attribute__((visibility("default"))) -@interface _13hhotk_BlockArgs_strl0q : NSObject +@interface _13hhotk_BlockArgs_1pbq496 : NSObject @property (copy) id block; @property void * arg0; @property int32_t arg1; @end -@implementation _13hhotk_BlockArgs_strl0q +@implementation _13hhotk_BlockArgs_1pbq496 @end typedef void (^_ListenerTrampoline)(void * arg0, int32_t arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _13hhotk_wrapListenerBlock_strl0q( +_ListenerTrampoline _13hhotk_wrapListenerBlock_1pbq496( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline weakSelfBlock = nil; _ListenerTrampoline strongSelfBlock = [^void(void * arg0, int32_t arg1) { @autoreleasepool { - _13hhotk_BlockArgs_strl0q* args = [[_13hhotk_BlockArgs_strl0q alloc] init]; + _13hhotk_BlockArgs_1pbq496* args = [[_13hhotk_BlockArgs_1pbq496 alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -115,11 +115,11 @@ _ListenerTrampoline _13hhotk_wrapListenerBlock_strl0q( typedef void (^_BlockingTrampoline)(void * waiter, void * arg0, int32_t arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _13hhotk_wrapBlockingBlock_strl0q(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline _13hhotk_wrapBlockingBlock_1pbq496(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(void * arg0, int32_t arg1), { @autoreleasepool { - _13hhotk_BlockArgs_strl0q* args = [[_13hhotk_BlockArgs_strl0q alloc] init]; + _13hhotk_BlockArgs_1pbq496* args = [[_13hhotk_BlockArgs_1pbq496 alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -127,7 +127,7 @@ _ListenerTrampoline _13hhotk_wrapBlockingBlock_strl0q(int64_t port, DOBJC_Contex } }, { @autoreleasepool { - _13hhotk_BlockArgs_strl0q* args = [[_13hhotk_BlockArgs_strl0q alloc] init]; + _13hhotk_BlockArgs_1pbq496* args = [[_13hhotk_BlockArgs_1pbq496 alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -138,27 +138,27 @@ _ListenerTrampoline _13hhotk_wrapBlockingBlock_strl0q(int64_t port, DOBJC_Contex typedef void (^_ProtocolTrampoline_4)(void * sel, int32_t arg1); __attribute__((visibility("default"))) __attribute__((used)) -void _13hhotk_protocolTrampoline_strl0q(id target, void * sel, int32_t arg1) { +void _13hhotk_protocolTrampoline_1pbq496(id target, void * sel, int32_t arg1) { return ((_ProtocolTrampoline_4)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } __attribute__((visibility("default"))) -@interface _13hhotk_BlockArgs_zzd4sa : NSObject +@interface _13hhotk_BlockArgs_8r9qkg : NSObject @property (copy) id block; @property void * arg0; @property int32_t * arg1; @end -@implementation _13hhotk_BlockArgs_zzd4sa +@implementation _13hhotk_BlockArgs_8r9qkg @end typedef void (^_ListenerTrampoline_1)(void * arg0, int32_t * arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _13hhotk_wrapListenerBlock_zzd4sa( +_ListenerTrampoline_1 _13hhotk_wrapListenerBlock_8r9qkg( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_1 weakSelfBlock = nil; _ListenerTrampoline_1 strongSelfBlock = [^void(void * arg0, int32_t * arg1) { @autoreleasepool { - _13hhotk_BlockArgs_zzd4sa* args = [[_13hhotk_BlockArgs_zzd4sa alloc] init]; + _13hhotk_BlockArgs_8r9qkg* args = [[_13hhotk_BlockArgs_8r9qkg alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -171,11 +171,11 @@ _ListenerTrampoline_1 _13hhotk_wrapListenerBlock_zzd4sa( typedef void (^_BlockingTrampoline_1)(void * waiter, void * arg0, int32_t * arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_1 _13hhotk_wrapBlockingBlock_zzd4sa(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_1 _13hhotk_wrapBlockingBlock_8r9qkg(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_1, ^void(void * arg0, int32_t * arg1), { @autoreleasepool { - _13hhotk_BlockArgs_zzd4sa* args = [[_13hhotk_BlockArgs_zzd4sa alloc] init]; + _13hhotk_BlockArgs_8r9qkg* args = [[_13hhotk_BlockArgs_8r9qkg alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -183,7 +183,7 @@ _ListenerTrampoline_1 _13hhotk_wrapBlockingBlock_zzd4sa(int64_t port, DOBJC_Cont } }, { @autoreleasepool { - _13hhotk_BlockArgs_zzd4sa* args = [[_13hhotk_BlockArgs_zzd4sa alloc] init]; + _13hhotk_BlockArgs_8r9qkg* args = [[_13hhotk_BlockArgs_8r9qkg alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -194,27 +194,27 @@ _ListenerTrampoline_1 _13hhotk_wrapBlockingBlock_zzd4sa(int64_t port, DOBJC_Cont typedef void (^_ProtocolTrampoline_5)(void * sel, int32_t * arg1); __attribute__((visibility("default"))) __attribute__((used)) -void _13hhotk_protocolTrampoline_zzd4sa(id target, void * sel, int32_t * arg1) { +void _13hhotk_protocolTrampoline_8r9qkg(id target, void * sel, int32_t * arg1) { return ((_ProtocolTrampoline_5)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } __attribute__((visibility("default"))) -@interface _13hhotk_BlockArgs_w57eou : NSObject +@interface _13hhotk_BlockArgs_18v1jvf : NSObject @property (copy) id block; @property void * arg0; @property (strong) id arg1; @end -@implementation _13hhotk_BlockArgs_w57eou +@implementation _13hhotk_BlockArgs_18v1jvf @end typedef void (^_ListenerTrampoline_2)(void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _13hhotk_wrapListenerBlock_w57eou( +_ListenerTrampoline_2 _13hhotk_wrapListenerBlock_18v1jvf( int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { __block __weak _ListenerTrampoline_2 weakSelfBlock = nil; _ListenerTrampoline_2 strongSelfBlock = [^void(void * arg0, id arg1) { @autoreleasepool { - _13hhotk_BlockArgs_w57eou* args = [[_13hhotk_BlockArgs_w57eou alloc] init]; + _13hhotk_BlockArgs_18v1jvf* args = [[_13hhotk_BlockArgs_18v1jvf alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -227,11 +227,11 @@ _ListenerTrampoline_2 _13hhotk_wrapListenerBlock_w57eou( typedef void (^_BlockingTrampoline_2)(void * waiter, void * arg0, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline_2 _13hhotk_wrapBlockingBlock_w57eou(int64_t port, DOBJC_Context* ctx, +_ListenerTrampoline_2 _13hhotk_wrapBlockingBlock_18v1jvf(int64_t port, DOBJC_Context* ctx, void (*directInvoke)(void*)) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline_2, ^void(void * arg0, id arg1), { @autoreleasepool { - _13hhotk_BlockArgs_w57eou* args = [[_13hhotk_BlockArgs_w57eou alloc] init]; + _13hhotk_BlockArgs_18v1jvf* args = [[_13hhotk_BlockArgs_18v1jvf alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -239,7 +239,7 @@ _ListenerTrampoline_2 _13hhotk_wrapBlockingBlock_w57eou(int64_t port, DOBJC_Cont } }, { @autoreleasepool { - _13hhotk_BlockArgs_w57eou* args = [[_13hhotk_BlockArgs_w57eou alloc] init]; + _13hhotk_BlockArgs_18v1jvf* args = [[_13hhotk_BlockArgs_18v1jvf alloc] init]; args.block = weakSelfBlock; args.arg0 = arg0; args.arg1 = arg1; @@ -250,13 +250,13 @@ _ListenerTrampoline_2 _13hhotk_wrapBlockingBlock_w57eou(int64_t port, DOBJC_Cont typedef void (^_ProtocolTrampoline_6)(void * sel, id arg1); __attribute__((visibility("default"))) __attribute__((used)) -void _13hhotk_protocolTrampoline_w57eou(id target, void * sel, id arg1) { +void _13hhotk_protocolTrampoline_18v1jvf(id target, void * sel, id arg1) { return ((_ProtocolTrampoline_6)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); } typedef id (^_ProtocolTrampoline_7)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -id _13hhotk_protocolTrampoline_1jnam6p(id target, void * sel) { +id _13hhotk_protocolTrampoline_1mbt9g9(id target, void * sel) { return ((_ProtocolTrampoline_7)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } diff --git a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart index 60bee8c44a..79e372972b 100644 --- a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -36,7 +36,7 @@ extension type RefCountTestObject._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [RefCountTestObject]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_RefCountTestObject, @@ -44,13 +44,13 @@ extension type RefCountTestObject._(objc.ObjCObject object$) /// alloc static RefCountTestObject alloc() { - final $ret = _objc_msgSend_zldla2(_class_RefCountTestObject, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_RefCountTestObject, _sel_alloc); return RefCountTestObject.fromPointer($ret, retain: false, release: true); } /// allocTheThing static RefCountTestObject allocTheThing() { - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _class_RefCountTestObject, _sel_allocTheThing, ); @@ -59,7 +59,7 @@ extension type RefCountTestObject._(objc.ObjCObject object$) /// allocWithZone: static RefCountTestObject allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_RefCountTestObject, _sel_allocWithZone_, zone, @@ -70,7 +70,7 @@ extension type RefCountTestObject._(objc.ObjCObject object$) /// consumeArg: static void consumeArg(RefCountTestObject arg) { final _$$ref = arg.ref; - _objc_msgSend_1f0326b( + _objc_msgSend_4js6t( _class_RefCountTestObject, _sel_consumeArg_, _$$ref.retainAndReturnPointer(), @@ -81,7 +81,7 @@ extension type RefCountTestObject._(objc.ObjCObject object$) static RefCountTestObject makeAndAutorelease( ffi.Pointer _counter, ) { - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _class_RefCountTestObject, _sel_makeAndAutorelease_, _counter, @@ -91,13 +91,13 @@ extension type RefCountTestObject._(objc.ObjCObject object$) /// new static RefCountTestObject new$() { - final $ret = _objc_msgSend_zldla2(_class_RefCountTestObject, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_RefCountTestObject, _sel_new); return RefCountTestObject.fromPointer($ret, retain: false, release: true); } /// newWithCounter: static RefCountTestObject newWithCounter(ffi.Pointer _counter) { - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _class_RefCountTestObject, _sel_newWithCounter_, _counter, @@ -113,35 +113,35 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// assignedProperty RefCountTestObject get assignedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_assignedProperty); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_assignedProperty); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } /// copiedProperty RefCountTestObject get copiedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copiedProperty); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copiedProperty); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } /// copyMe RefCountTestObject copyMe() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMe); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMe); return RefCountTestObject.fromPointer($ret, retain: false, release: true); } /// copyMeAutorelease RefCountTestObject copyMeAutorelease() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMeAutorelease); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMeAutorelease); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } /// copyMeConsumeSelf RefCountTestObject copyMeConsumeSelf() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_copyMeConsumeSelf, ); @@ -151,14 +151,14 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// copyMeNoRetain RefCountTestObject copyMeNoRetain() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_copyMeNoRetain); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_copyMeNoRetain); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } /// copyWithZone: objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _$$ref.pointer, _sel_copyWithZone_, zone, @@ -169,7 +169,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// dealloc void dealloc() { final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_dealloc); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); } /// init @@ -180,7 +180,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -190,7 +190,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// initWithCounter: RefCountTestObject initWithCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _$$ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter, @@ -201,21 +201,21 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// mutableCopyMe RefCountTestObject mutableCopyMe() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_mutableCopyMe); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_mutableCopyMe); return RefCountTestObject.fromPointer($ret, retain: false, release: true); } /// retainedProperty RefCountTestObject get retainedProperty { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_retainedProperty); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_retainedProperty); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } /// returnsRetained RefCountTestObject returnsRetained() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_returnsRetained); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_returnsRetained); return RefCountTestObject.fromPointer($ret, retain: false, release: true); } @@ -223,7 +223,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { set assignedProperty(RefCountTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setAssignedProperty_, _$$ref$1.pointer, @@ -234,7 +234,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { set copiedProperty(RefCountTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setCopiedProperty_, _$$ref$1.pointer, @@ -244,14 +244,14 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// setCounter: void setCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - _objc_msgSend_1vg1ydp(_$$ref.pointer, _sel_setCounter_, _counter); + _objc_msgSend_yhkuco(_$$ref.pointer, _sel_setCounter_, _counter); } /// setRetainedProperty: set retainedProperty(RefCountTestObject value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setRetainedProperty_, _$$ref$1.pointer, @@ -261,7 +261,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { /// unownedReference RefCountTestObject unownedReference() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_unownedReference); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_unownedReference); return RefCountTestObject.fromPointer($ret, retain: true, release: true); } } @@ -286,7 +286,7 @@ extension type RefCounted._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [RefCounted]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_RefCounted, @@ -294,13 +294,13 @@ extension type RefCounted._(objc.ObjCObject object$) /// alloc static RefCounted alloc() { - final $ret = _objc_msgSend_zldla2(_class_RefCounted, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_RefCounted, _sel_alloc); return RefCounted.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static RefCounted allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_RefCounted, _sel_allocWithZone_, zone, @@ -310,7 +310,7 @@ extension type RefCounted._(objc.ObjCObject object$) /// new static RefCounted new$() { - final $ret = _objc_msgSend_zldla2(_class_RefCounted, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_RefCounted, _sel_new); return RefCounted.fromPointer($ret, retain: false, release: true); } @@ -327,7 +327,7 @@ extension RefCounted$Methods on RefCounted { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -337,13 +337,13 @@ extension RefCounted$Methods on RefCounted { /// meAsInt int meAsInt() { final _$$ref = object$.ref; - return _objc_msgSend_dute2g(_$$ref.pointer, _sel_meAsInt); + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_meAsInt); } /// refCount int get refCount { final _$$ref = object$.ref; - return _objc_msgSend_1if3gfg(_$$ref.pointer, _sel_refCount); + return _objc_msgSend_9qbz9w(_$$ref.pointer, _sel_refCount); } } @@ -367,96 +367,94 @@ final _class_RefCounted = objc.getClass( _class_RefCounted_raw, ).cast(), ); -final _objc_msgSend_1d1siln = objc.msgSendPointer +final _objc_msgSend_129vhbw = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1f0326b = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1if3gfg = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Uint64 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1uw8y6v = objc.msgSendPointer +final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1vg1ydp = objc.msgSendPointer +final _objc_msgSend_4js6t = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -464,13 +462,13 @@ final _objc_msgSend_1vg1ydp = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_dute2g = objc.msgSendPointer +final _objc_msgSend_9qbz9w = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int64 Function( + ffi.Uint64 Function( ffi.Pointer, ffi.Pointer, ) @@ -482,25 +480,25 @@ final _objc_msgSend_dute2g = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_h9i570 = objc.msgSendPointer +final _objc_msgSend_pysgoz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Int64 Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -508,25 +506,27 @@ final _objc_msgSend_xbndyy = objc.msgSendPointer > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart index a571ab370e..ea453eea06 100644 --- a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -33,7 +33,7 @@ extension type Renamed._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [Renamed]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_Renamed, @@ -41,13 +41,13 @@ extension type Renamed._(objc.ObjCObject object$) /// alloc static Renamed alloc() { - final $ret = _objc_msgSend_zldla2(_class_Renamed, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_Renamed, _sel_alloc); return Renamed.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static Renamed allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_Renamed, _sel_allocWithZone_, zone, @@ -57,7 +57,7 @@ extension type Renamed._(objc.ObjCObject object$) /// new static Renamed new$() { - final $ret = _objc_msgSend_zldla2(_class_Renamed, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_Renamed, _sel_new); return Renamed.fromPointer($ret, retain: false, release: true); } @@ -69,7 +69,7 @@ extension Renamed$Methods on Renamed { /// CollidingStructName int CollidingStructName$1() { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_CollidingStructName); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_CollidingStructName); } /// init @@ -80,7 +80,7 @@ extension Renamed$Methods on Renamed { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -90,13 +90,13 @@ extension Renamed$Methods on Renamed { /// property int get property { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_property); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_property); } /// renamedMethod:otherArg: int fooBarBaz(int x, {required int otherArg}) { final _$$ref = object$.ref; - return _objc_msgSend_as7aj8( + return _objc_msgSend_1q0lyci( _$$ref.pointer, _sel_renamedMethod_otherArg_, x, @@ -107,25 +107,25 @@ extension Renamed$Methods on Renamed { /// renamedProperty int get reProp { final _$$ref = object$.ref; - return _objc_msgSend_1etqkvi(_$$ref.pointer, _sel_renamedProperty); + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_renamedProperty); } /// setProperty: set property(int value) { final _$$ref = object$.ref; - _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setProperty_, value); + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setProperty_, value); } /// setRenamedProperty: set reProp(int value) { final _$$ref = object$.ref; - _objc_msgSend_1f6q4sj(_$$ref.pointer, _sel_setRenamedProperty_, value); + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setRenamedProperty_, value); } /// toString objc.NSString toString$1() { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_toString); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_toString); return objc.NSString.fromPointer($ret, retain: true, release: true); } } @@ -138,104 +138,104 @@ final _class_Renamed = objc.getClass( _class_Renamed_raw, ).cast(), ); -final _objc_msgSend_1etqkvi = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1f6q4sj = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_1bqef4y = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_as7aj8 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32, + ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1q0lyci = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, + ffi.Int32, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, + int, + int, ) >(); late final _sel_CollidingStructName = objc.registerName("CollidingStructName"); diff --git a/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart index 26a7187ca2..8dfee2df47 100644 --- a/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart @@ -3,7 +3,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -24,7 +24,7 @@ extension FutureAPICategoryMethods on objc.NSObject { iOS: (false, (1000, 0, 0)), macOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catFutureMethodBoth); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catFutureMethodBoth); } /// catFutureMethodIos @@ -35,7 +35,7 @@ extension FutureAPICategoryMethods on objc.NSObject { 'NSObject.catFutureMethodIos', iOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catFutureMethodIos); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catFutureMethodIos); } /// catFutureMethodMac @@ -46,7 +46,7 @@ extension FutureAPICategoryMethods on objc.NSObject { 'NSObject.catFutureMethodMac', macOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catFutureMethodMac); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catFutureMethodMac); } /// catUnavailableBoth @@ -57,7 +57,7 @@ extension FutureAPICategoryMethods on objc.NSObject { iOS: (true, null), macOS: (true, null), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catUnavailableBoth); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catUnavailableBoth); } /// catUnavailableIos @@ -67,7 +67,7 @@ extension FutureAPICategoryMethods on objc.NSObject { 'NSObject.catUnavailableIos', iOS: (true, null), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catUnavailableIos); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catUnavailableIos); } /// catUnavailableMac @@ -77,7 +77,7 @@ extension FutureAPICategoryMethods on objc.NSObject { 'NSObject.catUnavailableMac', macOS: (true, null), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_catUnavailableMac); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_catUnavailableMac); } } @@ -112,7 +112,7 @@ extension type FutureAPIInterface._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [FutureAPIInterface]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_FutureAPIInterface, @@ -120,13 +120,13 @@ extension type FutureAPIInterface._(objc.ObjCObject object$) /// alloc static FutureAPIInterface alloc() { - final $ret = _objc_msgSend_zldla2(_class_FutureAPIInterface, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_FutureAPIInterface, _sel_alloc); return FutureAPIInterface.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static FutureAPIInterface allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_FutureAPIInterface, _sel_allocWithZone_, zone, @@ -136,7 +136,7 @@ extension type FutureAPIInterface._(objc.ObjCObject object$) /// new static FutureAPIInterface new$() { - final $ret = _objc_msgSend_zldla2(_class_FutureAPIInterface, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_FutureAPIInterface, _sel_new); return FutureAPIInterface.fromPointer($ret, retain: false, release: true); } @@ -153,7 +153,7 @@ extension FutureAPIInterface$Methods on FutureAPIInterface { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -181,7 +181,7 @@ extension type FutureAPIMethods._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [FutureAPIMethods]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_FutureAPIMethods, @@ -189,13 +189,13 @@ extension type FutureAPIMethods._(objc.ObjCObject object$) /// alloc static FutureAPIMethods alloc() { - final $ret = _objc_msgSend_zldla2(_class_FutureAPIMethods, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_FutureAPIMethods, _sel_alloc); return FutureAPIMethods.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static FutureAPIMethods allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_FutureAPIMethods, _sel_allocWithZone_, zone, @@ -205,7 +205,7 @@ extension type FutureAPIMethods._(objc.ObjCObject object$) /// new static FutureAPIMethods new$() { - final $ret = _objc_msgSend_zldla2(_class_FutureAPIMethods, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_FutureAPIMethods, _sel_new); return FutureAPIMethods.fromPointer($ret, retain: false, release: true); } @@ -223,7 +223,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { iOS: (false, (1000, 0, 0)), macOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_futureMethodBoth); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_futureMethodBoth); } /// futureMethodIos @@ -234,7 +234,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { 'FutureAPIMethods.futureMethodIos', iOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_futureMethodIos); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_futureMethodIos); } /// futureMethodMac @@ -245,7 +245,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { 'FutureAPIMethods.futureMethodMac', macOS: (false, (1000, 0, 0)), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_futureMethodMac); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_futureMethodMac); } /// init @@ -256,7 +256,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -271,7 +271,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { iOS: (true, null), macOS: (true, null), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_unavailableBoth); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_unavailableBoth); } /// unavailableIos @@ -281,7 +281,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { 'FutureAPIMethods.unavailableIos', iOS: (true, null), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_unavailableIos); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_unavailableIos); } /// unavailableMac @@ -291,7 +291,7 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { 'FutureAPIMethods.unavailableMac', macOS: (true, null), ); - return _objc_msgSend_1bw3upc(_$$ref.pointer, _sel_unavailableMac); + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_unavailableMac); } } @@ -323,7 +323,7 @@ final _class_NSObject = objc.getClass( _class_NSObject_raw, ).cast(), ); -final _objc_msgSend_1bw3upc = objc.msgSendPointer +final _objc_msgSend_13yqbb6 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Int Function( @@ -338,13 +338,12 @@ final _objc_msgSend_1bw3upc = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -352,10 +351,9 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -372,12 +370,13 @@ final _objc_msgSend_xbndyy = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -385,6 +384,7 @@ final _objc_msgSend_zldla2 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart index 5a6a5757fe..1b66ae4d68 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -184,7 +184,7 @@ extension type NSColorPicker._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NSColorPicker]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_NSColorPicker, @@ -192,13 +192,13 @@ extension type NSColorPicker._(objc.ObjCObject object$) /// alloc static NSColorPicker alloc() { - final $ret = _objc_msgSend_zldla2(_class_NSColorPicker, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_alloc); return NSColorPicker.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NSColorPicker allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_NSColorPicker, _sel_allocWithZone_, zone, @@ -208,7 +208,7 @@ extension type NSColorPicker._(objc.ObjCObject object$) /// new static NSColorPicker new$() { - final $ret = _objc_msgSend_zldla2(_class_NSColorPicker, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_new); return NSColorPicker.fromPointer($ret, retain: false, release: true); } @@ -225,7 +225,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.alphaControlAddedOrRemoved:', iOS: (true, null), ); - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_alphaControlAddedOrRemoved_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -240,7 +240,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.attachColorList:', iOS: (true, null), ); - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_attachColorList_, _$$ref$1.pointer, @@ -254,7 +254,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.buttonToolTip', iOS: (true, null), ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_buttonToolTip); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_buttonToolTip); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -262,7 +262,7 @@ extension NSColorPicker$Methods on NSColorPicker { NSColorPanel get colorPanel { final _$$ref = object$.ref; objc.checkOsVersionInternal('NSColorPicker.colorPanel', iOS: (true, null)); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_colorPanel); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_colorPanel); return NSColorPanel.fromPointer($ret, retain: true, release: true); } @@ -274,7 +274,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.detachColorList:', iOS: (true, null), ); - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_detachColorList_, _$$ref$1.pointer, @@ -289,7 +289,7 @@ extension NSColorPicker$Methods on NSColorPicker { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -307,7 +307,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.initWithPickerMask:colorPanel:', iOS: (true, null), ); - final $ret = _objc_msgSend_1n14wj8( + final $ret = _objc_msgSend_vbc8p4( _$$ref.retainAndReturnPointer(), _sel_initWithPickerMask_colorPanel_, mask, @@ -330,7 +330,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.insertNewButtonImage:in:', iOS: (true, null), ); - _objc_msgSend_1k6sg8i( + _objc_msgSend_pfv6jd( _$$ref.pointer, _sel_insertNewButtonImage_in_, _$$ref$1.pointer, @@ -347,8 +347,8 @@ extension NSColorPicker$Methods on NSColorPicker { ); final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_wke702Stret($ptr, _$$ref.pointer, _sel_minContentSize) - : $ptr.ref = _objc_msgSend_wke702(_$$ref.pointer, _sel_minContentSize); + ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_minContentSize) + : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_minContentSize); final $finalizable = $ptr.cast().asTypedList( ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, @@ -363,7 +363,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.provideNewButtonImage', iOS: (true, null), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.pointer, _sel_provideNewButtonImage, ); @@ -374,7 +374,7 @@ extension NSColorPicker$Methods on NSColorPicker { void setMode(NSColorPanelMode mode) { final _$$ref = object$.ref; objc.checkOsVersionInternal('NSColorPicker.setMode:', iOS: (true, null)); - _objc_msgSend_1oo645y(_$$ref.pointer, _sel_setMode_, mode.value); + _objc_msgSend_190ea64(_$$ref.pointer, _sel_setMode_, mode.value); } /// viewSizeChanged: @@ -385,7 +385,7 @@ extension NSColorPicker$Methods on NSColorPicker { 'NSColorPicker.viewSizeChanged:', iOS: (true, null), ); - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_viewSizeChanged_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -519,7 +519,7 @@ extension type NSTextList._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [NSTextList]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_NSTextList, @@ -527,13 +527,13 @@ extension type NSTextList._(objc.ObjCObject object$) /// alloc static NSTextList alloc() { - final $ret = _objc_msgSend_zldla2(_class_NSTextList, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_alloc); return NSTextList.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static NSTextList allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_NSTextList, _sel_allocWithZone_, zone, @@ -543,13 +543,13 @@ extension type NSTextList._(objc.ObjCObject object$) /// new static NSTextList new$() { - final $ret = _objc_msgSend_zldla2(_class_NSTextList, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_new); return NSTextList.fromPointer($ret, retain: false, release: true); } /// supportsSecureCoding static bool getSupportsSecureCoding() { - return _objc_msgSend_13h8okt(_class_NSTextList, _sel_supportsSecureCoding); + return _objc_msgSend_91o635(_class_NSTextList, _sel_supportsSecureCoding); } /// Returns a new instance of NSTextList constructed with the default `new` method. @@ -561,7 +561,7 @@ extension NSTextList$Methods on NSTextList { void encodeWithCoder(objc.NSCoder coder) { final _$$ref = object$.ref; final _$$ref$1 = coder.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_encodeWithCoder_, _$$ref$1.pointer, @@ -576,7 +576,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -587,7 +587,7 @@ extension NSTextList$Methods on NSTextList { NSTextList? initWithCoder(objc.NSCoder coder) { final _$$ref = object$.ref; final _$$ref$1 = coder.ref; - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _$$ref.retainAndReturnPointer(), _sel_initWithCoder_, _$$ref$1.pointer, @@ -609,7 +609,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_1js796u( + final $ret = _objc_msgSend_1k4kd9s( _$$ref.retainAndReturnPointer(), _sel_initWithMarkerFormat_options_, _$$ref$1.pointer, @@ -631,7 +631,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (16, 0, 0)), macOS: (false, (13, 0, 0)), ); - final $ret = _objc_msgSend_7rct32( + final $ret = _objc_msgSend_1bh1vl9( _$$ref.retainAndReturnPointer(), _sel_initWithMarkerFormat_options_startingItemNumber_, _$$ref$1.pointer, @@ -649,7 +649,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (16, 0, 0)), macOS: (false, (13, 0, 0)), ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_isOrdered); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOrdered); } /// listOptions @@ -660,7 +660,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_1d5lbv5(_$$ref.pointer, _sel_listOptions); + return _objc_msgSend_exovb9(_$$ref.pointer, _sel_listOptions); } /// markerForItemNumber: @@ -671,7 +671,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_x76ogv( + final $ret = _objc_msgSend_qugqlf( _$$ref.pointer, _sel_markerForItemNumber_, itemNumber, @@ -687,7 +687,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_markerFormat); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_markerFormat); return objc.NSString.fromPointer($ret, retain: true, release: true); } @@ -699,7 +699,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - _objc_msgSend_1whyqxt(_$$ref.pointer, _sel_setStartingItemNumber_, value); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setStartingItemNumber_, value); } /// startingItemNumber @@ -710,7 +710,7 @@ extension NSTextList$Methods on NSTextList { iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)), ); - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_startingItemNumber); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_startingItemNumber); } } @@ -804,7 +804,7 @@ extension type UIPickerView._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [UIPickerView]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_UIPickerView, @@ -819,7 +819,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.dataSource', iOS: (false, (2, 0, 0)), ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_dataSource); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_dataSource); return $ret.address == 0 ? null : UIPickerViewDataSource.fromPointer($ret, retain: true, release: true); @@ -832,7 +832,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.delegate', iOS: (false, (2, 0, 0)), ); - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_delegate); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); return $ret.address == 0 ? null : UIPickerViewDelegate.fromPointer($ret, retain: true, release: true); @@ -842,7 +842,7 @@ extension UIPickerView$Methods on UIPickerView { void encodeWithCoder(objc.NSCoder coder) { final _$$ref = object$.ref; final _$$ref$1 = coder.ref; - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_encodeWithCoder_, _$$ref$1.pointer, @@ -853,7 +853,7 @@ extension UIPickerView$Methods on UIPickerView { UIPickerView? initWithCoder(objc.NSCoder coder) { final _$$ref = object$.ref; final _$$ref$1 = coder.ref; - final $ret = _objc_msgSend_1ffzwv1( + final $ret = _objc_msgSend_1sotr3r( _$$ref.retainAndReturnPointer(), _sel_initWithCoder_, _$$ref$1.pointer, @@ -870,7 +870,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.numberOfComponents', iOS: (false, (2, 0, 0)), ); - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_numberOfComponents); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfComponents); } /// numberOfRowsInComponent: @@ -880,7 +880,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.numberOfRowsInComponent:', iOS: (false, (2, 0, 0)), ); - return _objc_msgSend_fukx59( + return _objc_msgSend_12hwf9n( _$$ref.pointer, _sel_numberOfRowsInComponent_, component, @@ -894,7 +894,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.reloadAllComponents', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_h9i570(_$$ref.pointer, _sel_reloadAllComponents); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_reloadAllComponents); } /// reloadComponent: @@ -904,7 +904,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.reloadComponent:', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_1whyqxt(_$$ref.pointer, _sel_reloadComponent_, component); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_reloadComponent_, component); } /// rowSizeForComponent: @@ -916,13 +916,13 @@ extension UIPickerView$Methods on UIPickerView { ); final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_s28ih3Stret( + ? _objc_msgSend_17w0i2jStret( $ptr, _$$ref.pointer, _sel_rowSizeForComponent_, component, ) - : $ptr.ref = _objc_msgSend_s28ih3( + : $ptr.ref = _objc_msgSend_17w0i2j( _$$ref.pointer, _sel_rowSizeForComponent_, component, @@ -941,7 +941,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.selectRow:inComponent:animated:', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_wd02ck( + _objc_msgSend_cy4jud( _$$ref.pointer, _sel_selectRow_inComponent_animated_, row, @@ -957,7 +957,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.selectedRowInComponent:', iOS: (false, (2, 0, 0)), ); - return _objc_msgSend_fukx59( + return _objc_msgSend_12hwf9n( _$$ref.pointer, _sel_selectedRowInComponent_, component, @@ -972,7 +972,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.setDataSource:', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setDataSource_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -987,7 +987,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.setDelegate:', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_1d1siln( + _objc_msgSend_xtuoz7( _$$ref.pointer, _sel_setDelegate_, _$$ref$1?.pointer ?? ffi.nullptr, @@ -1002,7 +1002,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.setShowsSelectionIndicator:', iOS: (false, (2, 0, 0)), ); - _objc_msgSend_1s4gila( + _objc_msgSend_1s56lr9( _$$ref.pointer, _sel_setShowsSelectionIndicator_, value, @@ -1017,7 +1017,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.showsSelectionIndicator', iOS: (false, (2, 0, 0)), ); - return _objc_msgSend_13h8okt(_$$ref.pointer, _sel_showsSelectionIndicator); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_showsSelectionIndicator); } /// viewForRow:forComponent: @@ -1027,7 +1027,7 @@ extension UIPickerView$Methods on UIPickerView { 'UIPickerView.viewForRow:forComponent:', iOS: (false, (2, 0, 0)), ); - final $ret = _objc_msgSend_1krq8qw( + final $ret = _objc_msgSend_1nzyvs1( _$$ref.pointer, _sel_viewForRow_forComponent_, row, @@ -1101,103 +1101,109 @@ final _class_UIPickerView = objc.getClass( _class_UIPickerView_raw, ).cast(), ); -final _objc_msgSend_13h8okt = objc.msgSendPointer +final _objc_msgSend_12hwf9n = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_18szuw0 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1d1siln = objc.msgSendPointer +final _objc_msgSend_17w0i2j = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Long, ) > >() .asFunction< - void Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1d5lbv5 = objc.msgSendPointer +final _objc_msgSend_17w0i2jStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() .asFunction< - int Function( + void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_1ffzwv1 = objc.msgSendPointer +final _objc_msgSend_190ea64 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Long, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1js796u = objc.msgSendPointer +final _objc_msgSend_1bh1vl9 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -1205,6 +1211,7 @@ final _objc_msgSend_1js796u = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, + ffi.Long, ) > >() @@ -1214,54 +1221,49 @@ final _objc_msgSend_1js796u = objc.msgSendPointer ffi.Pointer, ffi.Pointer, int, + int, ) >(); -final _objc_msgSend_1k6sg8i = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1krq8qw = objc.msgSendPointer +final _objc_msgSend_1hz7y9r = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, - ffi.Long, - ffi.Long, ) > >() .asFunction< - ffi.Pointer Function( + int Function( ffi.Pointer, ffi.Pointer, - int, - int, ) >(); -final _objc_msgSend_1n14wj8 = objc.msgSendPointer +final _objc_msgSend_1k4kd9s = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.Pointer, + ffi.UnsignedLong, ) > >() @@ -1269,34 +1271,35 @@ final _objc_msgSend_1n14wj8 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, ffi.Pointer, + int, ) >(); -final _objc_msgSend_1oo645y = objc.msgSendPointer +final _objc_msgSend_1nzyvs1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Long, + ffi.Long, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int, + int, ) >(); -final _objc_msgSend_1s4gila = objc.msgSendPointer +final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Bool, ) > >() @@ -1304,16 +1307,15 @@ final _objc_msgSend_1s4gila = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - bool, ) >(); -final _objc_msgSend_1whyqxt = objc.msgSendPointer +final _objc_msgSend_1s56lr9 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + ffi.Bool, ) > >() @@ -1321,18 +1323,16 @@ final _objc_msgSend_1whyqxt = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, - int, + bool, ) >(); -final _objc_msgSend_7rct32 = objc.msgSendPointer +final _objc_msgSend_1sotr3r = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Long, ) > >() @@ -1341,31 +1341,28 @@ final _objc_msgSend_7rct32 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - int, ) >(); -final _objc_msgSend_fukx59 = objc.msgSendPointer +final _objc_msgSend_1vdfken = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, - ffi.Long, ) > >() .asFunction< - int Function( + objc.CGSize Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_h9i570 = objc.msgSendPointer +final _objc_msgSend_1vdfkenStret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) @@ -1373,14 +1370,15 @@ final _objc_msgSend_h9i570 = objc.msgSendPointer >() .asFunction< void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_s28ih3 = objc.msgSendPointer +final _objc_msgSend_4sp4xj = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.CGSize Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Long, @@ -1388,32 +1386,28 @@ final _objc_msgSend_s28ih3 = objc.msgSendPointer > >() .asFunction< - objc.CGSize Function( + void Function( ffi.Pointer, ffi.Pointer, int, ) >(); -final _objc_msgSend_s28ih3Stret = objc.msgSendStretPointer +final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Long, ) > >() .asFunction< - void Function( - ffi.Pointer, + bool Function( ffi.Pointer, ffi.Pointer, - int, ) >(); -final _objc_msgSend_wd02ck = objc.msgSendPointer +final _objc_msgSend_cy4jud = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( @@ -1434,39 +1428,41 @@ final _objc_msgSend_wd02ck = objc.msgSendPointer bool, ) >(); -final _objc_msgSend_wke702 = objc.msgSendPointer +final _objc_msgSend_exovb9 = objc.msgSendPointer .cast< ffi.NativeFunction< - objc.CGSize Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - objc.CGSize Function( + int Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_wke702Stret = objc.msgSendStretPointer +final _objc_msgSend_pfv6jd = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< void Function( - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_x76ogv = objc.msgSendPointer +final _objc_msgSend_qugqlf = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -1483,36 +1479,40 @@ final _objc_msgSend_x76ogv = objc.msgSendPointer int, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_vbc8p4 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + int, ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart index bd27900f30..41ff128938 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -223,7 +223,7 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [StaticFuncTestObj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_StaticFuncTestObj, @@ -231,13 +231,13 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// alloc static StaticFuncTestObj alloc() { - final $ret = _objc_msgSend_zldla2(_class_StaticFuncTestObj, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_StaticFuncTestObj, _sel_alloc); return StaticFuncTestObj.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static StaticFuncTestObj allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_StaticFuncTestObj, _sel_allocWithZone_, zone, @@ -247,13 +247,13 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// new static StaticFuncTestObj new$() { - final $ret = _objc_msgSend_zldla2(_class_StaticFuncTestObj, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_StaticFuncTestObj, _sel_new); return StaticFuncTestObj.fromPointer($ret, retain: false, release: true); } /// newWithCounter: static StaticFuncTestObj newWithCounter(ffi.Pointer _counter) { - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _class_StaticFuncTestObj, _sel_newWithCounter_, _counter, @@ -269,7 +269,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { /// dealloc void dealloc() { final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_dealloc); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); } /// init @@ -280,7 +280,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -290,7 +290,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { /// initWithCounter: StaticFuncTestObj initWithCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _$$ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter, @@ -309,13 +309,13 @@ final _class_StaticFuncTestObj = objc.getClass( _class_StaticFuncTestObj_raw, ).cast(), ); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_129vhbw = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -323,16 +323,15 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1uw8y6v = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -340,52 +339,53 @@ final _objc_msgSend_1uw8y6v = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_h9i570 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart index 9ab2889b7f..a4ea0b3383 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; @@ -304,7 +304,7 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [StaticFuncTestObj]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_StaticFuncTestObj, @@ -312,13 +312,13 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// alloc static StaticFuncTestObj alloc() { - final $ret = _objc_msgSend_zldla2(_class_StaticFuncTestObj, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_StaticFuncTestObj, _sel_alloc); return StaticFuncTestObj.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static StaticFuncTestObj allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_StaticFuncTestObj, _sel_allocWithZone_, zone, @@ -328,13 +328,13 @@ extension type StaticFuncTestObj._(objc.ObjCObject object$) /// new static StaticFuncTestObj new$() { - final $ret = _objc_msgSend_zldla2(_class_StaticFuncTestObj, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_StaticFuncTestObj, _sel_new); return StaticFuncTestObj.fromPointer($ret, retain: false, release: true); } /// newWithCounter: static StaticFuncTestObj newWithCounter(ffi.Pointer _counter) { - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _class_StaticFuncTestObj, _sel_newWithCounter_, _counter, @@ -350,7 +350,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { /// dealloc void dealloc() { final _$$ref = object$.ref; - _objc_msgSend_h9i570(_$$ref.pointer, _sel_dealloc); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_dealloc); } /// init @@ -361,7 +361,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -371,7 +371,7 @@ extension StaticFuncTestObj$Methods on StaticFuncTestObj { /// initWithCounter: StaticFuncTestObj initWithCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; - final $ret = _objc_msgSend_1uw8y6v( + final $ret = _objc_msgSend_129vhbw( _$$ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter, @@ -390,13 +390,13 @@ final _class_StaticFuncTestObj = objc.getClass( _class_StaticFuncTestObj_raw, ).cast(), ); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_129vhbw = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -404,16 +404,15 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1uw8y6v = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -421,52 +420,53 @@ final _objc_msgSend_1uw8y6v = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_h9i570 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart index f27886f85f..94a21fdc76 100644 --- a/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type StringUtil._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [StringUtil]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_StringUtil, @@ -39,13 +39,13 @@ extension type StringUtil._(objc.ObjCObject object$) /// alloc static StringUtil alloc() { - final $ret = _objc_msgSend_zldla2(_class_StringUtil, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_StringUtil, _sel_alloc); return StringUtil.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static StringUtil allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_StringUtil, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type StringUtil._(objc.ObjCObject object$) /// new static StringUtil new$() { - final $ret = _objc_msgSend_zldla2(_class_StringUtil, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_StringUtil, _sel_new); return StringUtil.fromPointer($ret, retain: false, release: true); } @@ -66,7 +66,7 @@ extension type StringUtil._(objc.ObjCObject object$) }) { final _$$ref = a.ref; final _$$ref$1 = with$.ref; - final $ret = _objc_msgSend_1oxgj58( + final $ret = _objc_msgSend_15qeuct( _class_StringUtil, _sel_strConcat_with_, _$$ref.pointer, @@ -88,7 +88,7 @@ extension StringUtil$Methods on StringUtil { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -106,13 +106,12 @@ final _class_StringUtil = objc.getClass( _class_StringUtil_raw, ).cast(), ); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() @@ -120,10 +119,9 @@ final _objc_msgSend_1h5ffc5 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1oxgj58 = objc.msgSendPointer +final _objc_msgSend_15qeuct = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -142,7 +140,7 @@ final _objc_msgSend_1oxgj58 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Bool Function( @@ -159,12 +157,13 @@ final _objc_msgSend_xbndyy = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() @@ -172,6 +171,7 @@ final _objc_msgSend_zldla2 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart index c8bd6dfeb0..eb4465ca4e 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/swift_class_test') library; @@ -13,7 +13,7 @@ const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); @ffi.Native< NSInteger Function(ffi.Pointer, ffi.Pointer) >() -external int _pyqkbm_protocolTrampoline_1er77tf( +external int _pyqkbm_protocolTrampoline_fai2e9( ffi.Pointer target, ffi.Pointer arg0, ); @@ -38,7 +38,7 @@ extension type MySwiftClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [MySwiftClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_MySwiftClass, @@ -46,13 +46,13 @@ extension type MySwiftClass._(objc.ObjCObject object$) /// alloc static MySwiftClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_MySwiftClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_MySwiftClass, _sel_alloc); return MySwiftClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static MySwiftClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_MySwiftClass, _sel_allocWithZone_, zone, @@ -62,7 +62,7 @@ extension type MySwiftClass._(objc.ObjCObject object$) /// new static MySwiftClass new$() { - final $ret = _objc_msgSend_zldla2(_class_MySwiftClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_MySwiftClass, _sel_new); return MySwiftClass.fromPointer($ret, retain: false, release: true); } @@ -74,7 +74,7 @@ extension MySwiftClass$Methods on MySwiftClass { /// getValue DartNSInteger getValue() { final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_getValue); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_getValue); } /// init @@ -85,7 +85,7 @@ extension MySwiftClass$Methods on MySwiftClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -95,7 +95,7 @@ extension MySwiftClass$Methods on MySwiftClass { /// setValueWithX: void setValueWithX(DartNSInteger x) { final _$$ref = object$.ref; - _objc_msgSend_1whyqxt(_$$ref.pointer, _sel_setValueWithX_, x); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setValueWithX_, x); } } @@ -114,7 +114,7 @@ extension type MySwiftProtocol._(objc.ObjCProtocol object$) /// Returns whether [obj] is an instance of [MySwiftProtocol]. static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_441sd9( + return _objc_msgSend_e3qsqz( obj.ref.pointer, _sel_conformsToProtocol_, _protocol_MySwiftProtocol, @@ -126,7 +126,7 @@ extension MySwiftProtocol$Methods on MySwiftProtocol { /// getValue DartNSInteger getValue() { final _$$ref = object$.ref; - return _objc_msgSend_18szuw0(_$$ref.pointer, _sel_getValue); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_getValue); } } @@ -176,7 +176,7 @@ interface class MySwiftProtocol$Builder { ffi.Pointer, ) > - >(_pyqkbm_protocolTrampoline_1er77tf) + >(_pyqkbm_protocolTrampoline_fai2e9) .cast(), objc.getProtocolMethodSignature( _protocol_MySwiftProtocol, @@ -303,102 +303,102 @@ final _class_MySwiftClass = objc.getClass( _class_MySwiftClass_raw, ).cast(), ); -final _objc_msgSend_18szuw0 = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Long Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1whyqxt = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - int, + ffi.Pointer, ) >(); -final _objc_msgSend_441sd9 = objc.msgSendPointer +final _objc_msgSend_1hz7y9r = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - bool Function( + int Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_4sp4xj = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Long, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + int, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_e3qsqz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); @ffi.Native Function()>( diff --git a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.m b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.m index 634e092dde..67bfe7c833 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.m @@ -61,7 +61,7 @@ typedef long (^_ProtocolTrampoline)(void * sel); __attribute__((visibility("default"))) __attribute__((used)) -long _pyqkbm_protocolTrampoline_1er77tf(id target, void * sel) { +long _pyqkbm_protocolTrampoline_fai2e9(id target, void * sel) { return ((_ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } #undef BLOCKING_BLOCK_IMPL diff --git a/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart b/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart index e208084f84..0e489c48ba 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart @@ -50,11 +50,22 @@ void main() { objectiveC: const ObjectiveC(), visitors: [ Visitor( + visitFunc: (node) => node.isIncluded = false, + visitStruct: (node) => node.isIncluded = false, + visitUnion: (node) => node.isIncluded = false, + visitEnum: (node) => node.isIncluded = false, + visitUnnamedEnumConstant: (node) => node.isIncluded = false, + visitGlobal: (node) => node.isIncluded = false, + visitMacro: (node) => node.isIncluded = false, + visitConstant: (node) => node.isIncluded = false, + visitTypealias: (node) => node.isIncluded = false, visitObjCInterface: (node) { if (node.originalName != 'Animal') { node.isIncluded = false; } }, + visitObjCCategory: (node) => node.isIncluded = false, + visitObjCProtocol: (node) => node.isIncluded = false, ), ], ).generate(logger: createTestLogger()); diff --git a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart index 1755fc2252..7b04acef7b 100644 --- a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/objc_test') library; @@ -31,7 +31,7 @@ extension type AnotherClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [AnotherClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_AnotherClass, @@ -39,13 +39,13 @@ extension type AnotherClass._(objc.ObjCObject object$) /// alloc static AnotherClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_AnotherClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_AnotherClass, _sel_alloc); return AnotherClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static AnotherClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_AnotherClass, _sel_allocWithZone_, zone, @@ -55,7 +55,7 @@ extension type AnotherClass._(objc.ObjCObject object$) /// new static AnotherClass new$() { - final $ret = _objc_msgSend_zldla2(_class_AnotherClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_AnotherClass, _sel_new); return AnotherClass.fromPointer($ret, retain: false, release: true); } @@ -72,7 +72,7 @@ extension AnotherClass$Methods on AnotherClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -82,7 +82,7 @@ extension AnotherClass$Methods on AnotherClass { /// property DartSomeClassPtr get property { final _$$ref = object$.ref; - final $ret = _objc_msgSend_zldla2(_$$ref.pointer, _sel_property); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_property); return SomeClass.fromPointer($ret, retain: true, release: true); } @@ -90,7 +90,7 @@ extension AnotherClass$Methods on AnotherClass { set property(DartSomeClassPtr value) { final _$$ref = object$.ref; final _$$ref$1 = value.ref; - _objc_msgSend_1d1siln(_$$ref.pointer, _sel_setProperty_, _$$ref$1.pointer); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setProperty_, _$$ref$1.pointer); } } @@ -114,7 +114,7 @@ extension type SomeClass._(objc.ObjCObject object$) /// Returns whether [obj] is an instance of [SomeClass]. static bool isA(objc.ObjCObject? obj) => obj == null ? false - : _objc_msgSend_xbndyy( + : _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, _class_SomeClass, @@ -122,13 +122,13 @@ extension type SomeClass._(objc.ObjCObject object$) /// alloc static SomeClass alloc() { - final $ret = _objc_msgSend_zldla2(_class_SomeClass, _sel_alloc); + final $ret = _objc_msgSend_151sglz(_class_SomeClass, _sel_alloc); return SomeClass.fromPointer($ret, retain: false, release: true); } /// allocWithZone: static SomeClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1h5ffc5( + final $ret = _objc_msgSend_1cwp428( _class_SomeClass, _sel_allocWithZone_, zone, @@ -138,7 +138,7 @@ extension type SomeClass._(objc.ObjCObject object$) /// new static SomeClass new$() { - final $ret = _objc_msgSend_zldla2(_class_SomeClass, _sel_new); + final $ret = _objc_msgSend_151sglz(_class_SomeClass, _sel_new); return SomeClass.fromPointer($ret, retain: false, release: true); } @@ -155,7 +155,7 @@ extension SomeClass$Methods on SomeClass { iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); - final $ret = _objc_msgSend_zldla2( + final $ret = _objc_msgSend_151sglz( _$$ref.retainAndReturnPointer(), _sel_init, ); @@ -183,70 +183,70 @@ final _class_SomeClass = objc.getClass( _class_SomeClass_raw, ).cast(), ); -final _objc_msgSend_1d1siln = objc.msgSendPointer +final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1h5ffc5 = objc.msgSendPointer +final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_xbndyy = objc.msgSendPointer +final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_zldla2 = objc.msgSendPointer +final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); late final _sel_alloc = objc.registerName("alloc"); diff --git a/pkgs/ffigen/test/native_test/_expected_native_test_bindings.dart b/pkgs/ffigen/test/native_test/_expected_native_test_bindings.dart index c85b802eb3..96d5b18820 100644 --- a/pkgs/ffigen/test/native_test/_expected_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_test/_expected_native_test_bindings.dart @@ -1,7 +1,7 @@ // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint, unused_import, unused_element, unused_field, deprecated_member_use_from_same_package +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package @ffi.DefaultAsset('package:ffigen/native_test') library; diff --git a/pkgs/ffigen/test/unit_tests/record_use_test.dart b/pkgs/ffigen/test/unit_tests/record_use_test.dart index 8444ccbde6..07e09f94af 100644 --- a/pkgs/ffigen/test/unit_tests/record_use_test.dart +++ b/pkgs/ffigen/test/unit_tests/record_use_test.dart @@ -31,7 +31,7 @@ void main() { output, contains( 'ignore_for_file: type=lint, unused_import, unused_element, ' - 'unused_field, deprecated_member_use_from_same_package', + 'deprecated_member_use_from_same_package', ), ); From 8e7fff0cd5ec25b98f14991fa281638eb5e3f237 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Tue, 11 Aug 2026 13:17:05 +1000 Subject: [PATCH 09/54] clean up --- .../lib/src/code_generator/binding.dart | 5 +- .../lib/src/code_generator/compound.dart | 1 + .../lib/src/code_generator/constant.dart | 3 + .../lib/src/code_generator/cpp_class.dart | 1 + .../lib/src/code_generator/enum_class.dart | 1 + pkgs/ffigen/lib/src/code_generator/func.dart | 1 + .../ffigen/lib/src/code_generator/global.dart | 1 + .../objc_built_in_functions.dart | 41 ++++++----- .../lib/src/code_generator/objc_category.dart | 1 + .../src/code_generator/objc_interface.dart | 31 ++++---- .../lib/src/code_generator/objc_methods.dart | 2 +- .../lib/src/code_generator/objc_protocol.dart | 1 + .../ffigen/lib/src/code_generator/struct.dart | 1 + pkgs/ffigen/lib/src/code_generator/type.dart | 1 + .../lib/src/code_generator/typealias.dart | 6 ++ pkgs/ffigen/lib/src/code_generator/union.dart | 2 + .../lib/src/config_provider/public_ast.dart | 2 +- .../lib/src/config_provider/yaml_config.dart | 72 +++++++++++-------- pkgs/ffigen/lib/src/header_parser/parser.dart | 18 +++++ .../ffigen/lib/src/visitor/list_bindings.dart | 8 ++- .../unit_tests/filtering_visitor_test.dart | 60 ++++++++-------- .../unit_tests/renaming_visitor_test.dart | 15 ++-- 22 files changed, 172 insertions(+), 102 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/binding.dart b/pkgs/ffigen/lib/src/code_generator/binding.dart index f72552bd93..40f9b17b49 100644 --- a/pkgs/ffigen/lib/src/code_generator/binding.dart +++ b/pkgs/ffigen/lib/src/code_generator/binding.dart @@ -39,7 +39,7 @@ abstract class Binding extends AstNode implements Declaration { bool generateBindings = true; /// Whether this binding is included by filter configuration. - bool isIncluded = true; + bool isIncluded; Binding({ required this.usr, @@ -47,6 +47,7 @@ abstract class Binding extends AstNode implements Declaration { required Symbol symbol, this.dartDoc, this.isInternal = false, + this.isIncluded = false, }) : _symbol = symbol { // Ideally isImported would be part of the Symbol constructor, but then we // wouldn't be able to use this.isObjCImport. @@ -92,6 +93,7 @@ abstract class LookUpBinding extends Binding { required super.symbol, super.dartDoc, super.isInternal, + super.isIncluded, }) : super( usr: usr ?? symbol.oldName, originalName: originalName ?? symbol.oldName, @@ -111,6 +113,7 @@ abstract class NoLookUpBinding extends Binding { required super.symbol, super.dartDoc, super.isInternal, + super.isIncluded, }) : super( usr: usr ?? symbol.oldName, originalName: originalName ?? symbol.oldName, diff --git a/pkgs/ffigen/lib/src/code_generator/compound.dart b/pkgs/ffigen/lib/src/code_generator/compound.dart index 451c322156..b8a26aa6bd 100644 --- a/pkgs/ffigen/lib/src/code_generator/compound.dart +++ b/pkgs/ffigen/lib/src/code_generator/compound.dart @@ -48,6 +48,7 @@ abstract class Compound extends BindingType with HasLocalScope { super.dartDoc, List? members, super.isInternal, + super.isIncluded, required this.context, String? nativeType, this.apiAvailability, diff --git a/pkgs/ffigen/lib/src/code_generator/constant.dart b/pkgs/ffigen/lib/src/code_generator/constant.dart index b8e875755f..77b4f7d772 100644 --- a/pkgs/ffigen/lib/src/code_generator/constant.dart +++ b/pkgs/ffigen/lib/src/code_generator/constant.dart @@ -41,6 +41,7 @@ class Constant extends NoLookUpBinding { required this.rawType, required this.rawValue, this.apiAvailability, + super.isIncluded, }) : super(symbol: Symbol(name, SymbolKind.field)); @override @@ -78,6 +79,7 @@ class UnnamedEnumConstant extends Constant { required super.rawType, required super.rawValue, super.apiAvailability, + super.isIncluded, }); @override @@ -98,6 +100,7 @@ class MacroConstant extends Constant { required super.rawType, required super.rawValue, super.apiAvailability, + super.isIncluded, }); @override diff --git a/pkgs/ffigen/lib/src/code_generator/cpp_class.dart b/pkgs/ffigen/lib/src/code_generator/cpp_class.dart index 2a32ecd3a6..6d900b879a 100644 --- a/pkgs/ffigen/lib/src/code_generator/cpp_class.dart +++ b/pkgs/ffigen/lib/src/code_generator/cpp_class.dart @@ -76,6 +76,7 @@ class CppClass extends BindingType with HasLocalScope { super.originalName, required super.name, super.dartDoc, + super.isIncluded, required this.context, required this.methods, required this.fields, diff --git a/pkgs/ffigen/lib/src/code_generator/enum_class.dart b/pkgs/ffigen/lib/src/code_generator/enum_class.dart index e47a5e9b9b..cb7899a741 100644 --- a/pkgs/ffigen/lib/src/code_generator/enum_class.dart +++ b/pkgs/ffigen/lib/src/code_generator/enum_class.dart @@ -70,6 +70,7 @@ class EnumClass extends BindingType with HasLocalScope { this.style = EnumStyle.dartEnum, this.isAnonymous = false, this.apiAvailability, + super.isIncluded, }) : nativeType = nativeType ?? intType, enumConstants = enumConstants ?? []; diff --git a/pkgs/ffigen/lib/src/code_generator/func.dart b/pkgs/ffigen/lib/src/code_generator/func.dart index 2366258975..6d13eca45c 100644 --- a/pkgs/ffigen/lib/src/code_generator/func.dart +++ b/pkgs/ffigen/lib/src/code_generator/func.dart @@ -82,6 +82,7 @@ class Func extends LookUpBinding with HasLocalScope { this.useNameForLookup = false, this.recordUse = false, super.isInternal, + super.isIncluded, this.loadFromNativeAsset = false, this.apiAvailability, }) : functionType = FunctionType( diff --git a/pkgs/ffigen/lib/src/code_generator/global.dart b/pkgs/ffigen/lib/src/code_generator/global.dart index 4142d38178..db89b2aca8 100644 --- a/pkgs/ffigen/lib/src/code_generator/global.dart +++ b/pkgs/ffigen/lib/src/code_generator/global.dart @@ -42,6 +42,7 @@ class Global extends LookUpBinding with HasLocalScope { this.exposeSymbolAddress = false, this.constant = false, this.loadFromNativeAsset = false, + super.isIncluded, }) : super(symbol: Symbol(name, SymbolKind.field)); @override diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart index 639b8e9d72..0a9b146ef4 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart @@ -300,7 +300,7 @@ class ObjCImport { class ObjCInternalGlobal extends NoLookUpBinding { final String Function() makeValue; - ObjCInternalGlobal(String name, this.makeValue) + ObjCInternalGlobal(String name, this.makeValue, {super.isIncluded}) : super( originalName: name, symbol: Symbol(name, SymbolKind.field), @@ -330,15 +330,19 @@ class ObjCClassGlobal extends NoLookUpBinding { final String symbolLookupName; final Symbol rawSymbol; - ObjCClassGlobal(String name, String originalName, String? module) - : lookupName = _makeLookupName(originalName, module), - symbolLookupName = _makeSymbolLookupName(originalName, module), - rawSymbol = Symbol('${name}_raw', SymbolKind.field), - super( - originalName: name, - symbol: Symbol(name, SymbolKind.field), - isInternal: true, - ); + ObjCClassGlobal( + String name, + String originalName, + String? module, { + super.isIncluded, + }) : lookupName = _makeLookupName(originalName, module), + symbolLookupName = _makeSymbolLookupName(originalName, module), + rawSymbol = Symbol('${name}_raw', SymbolKind.field), + super( + originalName: name, + symbol: Symbol(name, SymbolKind.field), + isInternal: true, + ); @override BindingString toBindingString(Writer w) { @@ -386,14 +390,15 @@ class ObjCProtocolGlobal extends NoLookUpBinding { String name, String originalName, String? module, - this.loaderSymbol, - ) : lookupName = _makeLookupName(originalName, module), - rawSymbol = Symbol('${name}_raw', SymbolKind.field), - super( - originalName: name, - symbol: Symbol(name, SymbolKind.field), - isInternal: true, - ); + this.loaderSymbol, { + super.isIncluded, + }) : lookupName = _makeLookupName(originalName, module), + rawSymbol = Symbol('${name}_raw', SymbolKind.field), + super( + originalName: name, + symbol: Symbol(name, SymbolKind.field), + isInternal: true, + ); @override bool get hasNativeHelperFunctions => true; diff --git a/pkgs/ffigen/lib/src/code_generator/objc_category.dart b/pkgs/ffigen/lib/src/code_generator/objc_category.dart index 05849795a7..fd2e3fbbad 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_category.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_category.dart @@ -30,6 +30,7 @@ class ObjCCategory extends NoLookUpBinding with ObjCMethods, HasLocalScope { super.dartDoc, required this.context, required this.apiAvailability, + super.isIncluded, }) : super(symbol: Symbol(name ?? originalName, SymbolKind.klass)); void addProtocol(ObjCProtocol? proto) { diff --git a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart index f2cce3fc93..b44bba75a9 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart @@ -40,6 +40,7 @@ class ObjCInterface extends BindingType with ObjCMethods, HasLocalScope { required this.apiAvailability, required this.context, super.isInternal = false, + super.isIncluded, }) : super( name: context.objCBuiltInFunctions.getBuiltInInterfaceName( @@ -77,22 +78,22 @@ class ObjCInterface extends BindingType with ObjCMethods, HasLocalScope { isInternal: true, ); for (final p in params) { - itf.addMethod( - ObjCMethod( - context: context, - originalName: p.originalName, - name: p.originalName, - kind: ObjCMethodKind.propertyGetter, - isClassMethod: false, - isOptional: false, - returnType: p.type, - params: const [], - family: null, - apiAvailability: ApiAvailability.all, - ownershipAttribute: ObjCMethodOwnership.notRetained, - consumesSelfAttribute: false, - ), + final method = ObjCMethod( + context: context, + originalName: p.originalName, + name: p.originalName, + kind: ObjCMethodKind.propertyGetter, + isClassMethod: false, + isOptional: false, + returnType: p.type, + params: const [], + family: null, + apiAvailability: ApiAvailability.all, + ownershipAttribute: ObjCMethodOwnership.notRetained, + consumesSelfAttribute: false, ); + method.isIncluded = true; + itf.addMethod(method); } return itf; } diff --git a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart index d43394773d..9fe5769aa6 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart @@ -212,7 +212,7 @@ class ObjCMethod extends AstNode with HasLocalScope { Symbol? protocolMethodName; ObjCMethods? parent; ObjCMethod? setter; - bool isIncluded = true; + bool isIncluded = false; @override void visitChildren(Visitor visitor, {bool omitMethodName = false}) { diff --git a/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart b/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart index eaf04f032a..ee16b8ffce 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart @@ -35,6 +35,7 @@ class ObjCProtocol extends BindingType with ObjCMethods, HasLocalScope { super.dartDoc, required this.apiAvailability, required this.context, + super.isIncluded, }) : loaderSymbol = Symbol( '_${context.objCBuiltInFunctions.libraryId}_$originalName', SymbolKind.method, diff --git a/pkgs/ffigen/lib/src/code_generator/struct.dart b/pkgs/ffigen/lib/src/code_generator/struct.dart index d232ba84fc..a4499d2961 100644 --- a/pkgs/ffigen/lib/src/code_generator/struct.dart +++ b/pkgs/ffigen/lib/src/code_generator/struct.dart @@ -41,6 +41,7 @@ class Struct extends Compound { super.dartDoc, super.members, super.isInternal, + super.isIncluded, required super.context, super.nativeType, super.apiAvailability, diff --git a/pkgs/ffigen/lib/src/code_generator/type.dart b/pkgs/ffigen/lib/src/code_generator/type.dart index 8e944371f6..faa7ce8a51 100644 --- a/pkgs/ffigen/lib/src/code_generator/type.dart +++ b/pkgs/ffigen/lib/src/code_generator/type.dart @@ -174,6 +174,7 @@ abstract class BindingType extends NoLookUpBinding implements Type { required String name, super.dartDoc, super.isInternal, + super.isIncluded, }) : super(symbol: Symbol(name, SymbolKind.klass)); @override diff --git a/pkgs/ffigen/lib/src/code_generator/typealias.dart b/pkgs/ffigen/lib/src/code_generator/typealias.dart index 84e42bd34d..e563932788 100644 --- a/pkgs/ffigen/lib/src/code_generator/typealias.dart +++ b/pkgs/ffigen/lib/src/code_generator/typealias.dart @@ -39,6 +39,7 @@ class Typealias extends BindingType { required Type type, bool genFfiDartType = false, bool isInternal = false, + bool isIncluded = false, }) { final funcType = _getFunctionTypeFromPointer(type); if (funcType != null) { @@ -49,6 +50,7 @@ class Typealias extends BindingType { type: funcType, genFfiDartType: genFfiDartType, isInternal: isInternal, + isIncluded: true, ), ), ); @@ -63,6 +65,7 @@ class Typealias extends BindingType { type: type, genFfiDartType: genFfiDartType, isInternal: isInternal, + isIncluded: isIncluded, ); } return Typealias._( @@ -73,6 +76,7 @@ class Typealias extends BindingType { type: type, genFfiDartType: genFfiDartType, isInternal: isInternal, + isIncluded: isIncluded, ); } @@ -91,6 +95,7 @@ class Typealias extends BindingType { bool genFfiDartType = false, super.isInternal, this.isAnonymous = false, + super.isIncluded, }) : _ffiDartAliasName = genFfiDartType ? Symbol('Dart$name', SymbolKind.klass) : null, @@ -258,6 +263,7 @@ class ObjCInstanceType extends Typealias { required super.type, super.genFfiDartType, super.isInternal, + super.isIncluded, }) : super._(); @override diff --git a/pkgs/ffigen/lib/src/code_generator/union.dart b/pkgs/ffigen/lib/src/code_generator/union.dart index c51754e1c8..1cbfa18658 100644 --- a/pkgs/ffigen/lib/src/code_generator/union.dart +++ b/pkgs/ffigen/lib/src/code_generator/union.dart @@ -38,6 +38,8 @@ class Union extends Compound { super.isIncomplete, super.dartDoc, super.members, + super.isInternal, + super.isIncluded, required super.context, super.nativeType, super.apiAvailability, diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index 7265dd26b5..db3347ed79 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -13,7 +13,7 @@ abstract class AstNode { void accept(Visitor visitor); - bool get isIncluded => true; + bool get isIncluded => false; set isIncluded(bool value) {} } diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index 410f6db307..3b1816bc7e 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -1340,8 +1340,8 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitFunc(public_ast.Func node) { - if (!config.functionDecl.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.functionDecl.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.functionDecl.rename(_decl(node)) case final rename?) { node.name = rename; @@ -1350,8 +1350,8 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitUnnamedEnumConstant(public_ast.UnnamedEnumConstant node) { - if (!config.unnamedEnumConstants.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.unnamedEnumConstants.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.unnamedEnumConstants.rename(_decl(node)) case final rename?) { node.name = rename; @@ -1360,8 +1360,8 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitStruct(public_ast.Struct node) { - if (!config.structDecl.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.structDecl.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.structDecl.rename(_decl(node)) case final rename?) { node.name = rename; @@ -1370,18 +1370,24 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitUnion(public_ast.Union node) { - if (!config.unionDecl.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.unionDecl.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.unionDecl.rename(_decl(node)) case final rename?) { node.name = rename; } } + @override + void visitCppClass(public_ast.CppClass node) { + node.isIncluded = true; + visitAll(node.methods); + } + @override void visitEnum(public_ast.EnumClass node) { - if (!config.enumClassDecl.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.enumClassDecl.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.enumClassDecl.rename(_decl(node)) case final rename?) { node.name = rename; @@ -1390,8 +1396,8 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitGlobal(public_ast.Global node) { - if (!config.globals.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.globals.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.globals.rename(_decl(node)) case final rename?) { node.name = rename; @@ -1400,8 +1406,8 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitConstant(public_ast.Constant node) { - if (!config.globals.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.globals.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.globals.rename(_decl(node)) case final rename?) { node.name = rename; @@ -1410,8 +1416,8 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitMacro(public_ast.MacroConstant node) { - if (!config.macroDecl.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.macroDecl.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.macroDecl.rename(_decl(node)) case final rename?) { node.name = rename; @@ -1420,8 +1426,8 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitTypealias(public_ast.Typealias node) { - if (!config.typedefs.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.typedefs.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.typedefs.rename(_decl(node)) case final rename?) { node.name = rename; @@ -1430,34 +1436,37 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitObjCInterface(public_ast.ObjCInterface node) { - if (!config.objcInterfaces.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.objcInterfaces.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (!node.isInternal) { if (config.objcInterfaces.rename(_decl(node)) case final rename?) { node.name = rename; } } + visitAll(node.methods); } @override void visitObjCProtocol(public_ast.ObjCProtocol node) { - if (!config.objcProtocols.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.objcProtocols.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.objcProtocols.rename(_decl(node)) case final rename?) { node.name = rename; } + visitAll(node.methods); } @override void visitObjCCategory(public_ast.ObjCCategory node) { - if (!config.objcCategories.shouldInclude(_decl(node))) { - node.isIncluded = false; + if (config.objcCategories.shouldInclude(_decl(node))) { + node.isIncluded = true; } if (config.objcCategories.rename(_decl(node)) case final rename?) { node.name = rename; } + visitAll(node.methods); } YamlDeclarationFilters? _getObjCDecl(public_ast.DeclNode node) { @@ -1473,13 +1482,18 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitObjCMethod(public_ast.ObjCMethod node) { - final decl = _getObjCDecl(node.parent); + final parent = node.parent; + if (parent is public_ast.ObjCInterface && parent.isInternal) { + node.isIncluded = true; + return; + } + final decl = _getObjCDecl(parent); if (decl != null) { - if (!decl.shouldIncludeMember(_decl(node.parent), node.originalName)) { - node.isIncluded = false; + if (decl.shouldIncludeMember(_decl(parent), node.originalName)) { + node.isIncluded = true; } - if (!node.isPropertySetter) { - if (decl.renameMember(_decl(node.parent), node.originalName) + if (node.isIncluded && !node.isPropertySetter) { + if (decl.renameMember(_decl(parent), node.originalName) case final rename?) { node.name = rename; } diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index a7a596de09..75d1044ab0 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -173,6 +173,24 @@ List transformBindings(List rawBindings, Context context) { .map((b) => b.toPublicAstNode()) .nonNulls .toList(); + if (!config.visitors.any((v) => v is YamlConfigAstVisitor)) { + for (final b in rawBindings) { + b.isIncluded = true; + if (b is ObjCInterface) { + for (final m in b.methods) { + m.isIncluded = true; + } + } else if (b is ObjCProtocol) { + for (final m in b.methods) { + m.isIncluded = true; + } + } else if (b is ObjCCategory) { + for (final m in b.methods) { + m.isIncluded = true; + } + } + } + } for (final visitor in config.visitors) { visitor.visitAll(rawNodes); } diff --git a/pkgs/ffigen/lib/src/visitor/list_bindings.dart b/pkgs/ffigen/lib/src/visitor/list_bindings.dart index aed804ba9a..0eef561d77 100644 --- a/pkgs/ffigen/lib/src/visitor/list_bindings.dart +++ b/pkgs/ffigen/lib/src/visitor/list_bindings.dart @@ -124,8 +124,8 @@ class ListBindingsVisitation extends Visitation { final behavior = node.isInternal ? _IncludeBehavior.transitive : (config.typedefs.includeUnused - ? _IncludeBehavior.configOnly - : _IncludeBehavior.configAndTransitive); + ? _IncludeBehavior.configOnly + : _IncludeBehavior.configAndTransitive); _visitImpl(node, behavior); // Objective C has some core typedefs that are important to keep. @@ -167,7 +167,9 @@ class MarkBindingsVisitation extends Visitation { void visitBinding(Binding node) { node.visitChildren(visitor); node.generateBindings = bindings.contains(node); - if (node is Func && node.generateBindings && node.exposedFunctionTypealias != null) { + if (node is Func && + node.generateBindings && + node.exposedFunctionTypealias != null) { node.exposedFunctionTypealias!.generateBindings = true; } } diff --git a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart index 215adbd873..abc957c8ac 100644 --- a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart +++ b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart @@ -19,99 +19,99 @@ final class FilteringVisitor extends public_ast.Visitor { @override void visitFunc(public_ast.Func node) { - if (node.originalName == 'excluded_func') { - node.isIncluded = false; + if (node.originalName != 'excluded_func') { + node.isIncluded = true; } } @override void visitStruct(public_ast.Struct node) { - if (node.originalName == 'excluded_struct') { - node.isIncluded = false; + if (node.originalName != 'excluded_struct') { + node.isIncluded = true; } } @override void visitUnion(public_ast.Union node) { - if (node.originalName == 'excluded_union') { - node.isIncluded = false; + if (node.originalName != 'excluded_union') { + node.isIncluded = true; } } @override void visitEnum(public_ast.EnumClass node) { - if (node.originalName == 'excluded_enum') { - node.isIncluded = false; + if (node.originalName != 'excluded_enum') { + node.isIncluded = true; } } @override void visitGlobal(public_ast.Global node) { - if (node.originalName == 'excluded_global') { - node.isIncluded = false; + if (node.originalName != 'excluded_global') { + node.isIncluded = true; } } @override void visitMacro(public_ast.MacroConstant node) { - if (node.originalName == 'EXCLUDED_MACRO') { - node.isIncluded = false; + if (node.originalName != 'EXCLUDED_MACRO') { + node.isIncluded = true; } } @override void visitTypealias(public_ast.Typealias node) { - if (node.originalName == 'excluded_typedef') { - node.isIncluded = false; + if (node.originalName != 'excluded_typedef') { + node.isIncluded = true; } } @override void visitObjCInterface(public_ast.ObjCInterface node) { - if (node.originalName == 'ExcludedInterface') { - node.isIncluded = false; + if (node.originalName != 'ExcludedInterface') { + node.isIncluded = true; } } @override void visitObjCProtocol(public_ast.ObjCProtocol node) { - if (node.originalName == 'ExcludedProtocol') { - node.isIncluded = false; + if (node.originalName != 'ExcludedProtocol') { + node.isIncluded = true; } } @override void visitObjCCategory(public_ast.ObjCCategory node) { - if (node.originalName == 'ExcludedCategory') { - node.isIncluded = false; + if (node.originalName != 'ExcludedCategory') { + node.isIncluded = true; } } @override void visitCppClass(public_ast.CppClass node) { - if (node.originalName == 'ExcludedCppClass') { - node.isIncluded = false; + if (node.originalName != 'ExcludedCppClass') { + node.isIncluded = true; } } @override void visitUnnamedEnumConstant(public_ast.UnnamedEnumConstant node) { - if (node.originalName == 'EXCLUDED_UNNAMED_ENUM') { - node.isIncluded = false; + if (node.originalName != 'EXCLUDED_UNNAMED_ENUM') { + node.isIncluded = true; } } @override void visitObjCMethod(public_ast.ObjCMethod node) { - if (node.originalName == 'excludedMethod') { - node.isIncluded = false; + if (node.originalName != 'excludedMethod') { + node.isIncluded = true; } } } void main() { group('FilteringVisitor Tests', () { - test('isIncluded defaults to true on Bindings and ObjCMethod', () { + test('isIncluded defaults to false on Bindings and ObjCMethod', () { final context = testContext( FfiGenerator(output: Output(dartFile: Uri.file('out.dart'))), ); @@ -121,7 +121,7 @@ void main() { originalName: 'my_func', returnType: voidType, ); - expect(func.isIncluded, isTrue); + expect(func.isIncluded, isFalse); final method = ObjCMethod( context: context, @@ -137,7 +137,7 @@ void main() { ownershipAttribute: null, consumesSelfAttribute: false, ); - expect(method.isIncluded, isTrue); + expect(method.isIncluded, isFalse); }); test('Custom Visitor setting isIncluded = false', () { @@ -436,5 +436,5 @@ final class TestCppMethod extends public_ast.CppMethod { TestCppMethod(super.parent, super.method); @override - bool isIncluded = true; + bool isIncluded = false; } diff --git a/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart b/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart index dc8f860d02..ee4f0dff32 100644 --- a/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart +++ b/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart @@ -140,6 +140,9 @@ void main() { )..addMethod(objcMethod); final rawBindings = [func, struct, enumClass, objcInterface]; + for (final b in rawBindings) { + b.isIncluded = true; + } final nodes = rawBindings .map((b) => b.toPublicAstNode()) .nonNulls @@ -486,10 +489,14 @@ objc-interfaces: }, ); - final nodes = [ - func, - struct, - ].map((b) => b.toPublicAstNode()).nonNulls.toList(); + final rawBindings = [func, struct]; + for (final b in rawBindings) { + b.isIncluded = true; + } + final nodes = rawBindings + .map((b) => b.toPublicAstNode()) + .nonNulls + .toList(); visitor.visitAll(nodes); expect(visitedFuncs, ['c_foo']); From a68e55f77718fc45ef87457a88c8dca54cbc9c97 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Tue, 11 Aug 2026 15:31:30 +1000 Subject: [PATCH 10/54] clean up --- pkgs/ffigen/example/add/tool/ffigen.dart | 6 +- .../example/objective_c/generate_code.dart | 16 +- .../lib/src/config_provider/config.dart | 206 ++++++++++++++++-- .../lib/src/config_provider/config_types.dart | 6 +- .../lib/src/config_provider/yaml_config.dart | 161 ++++++-------- .../exclude_all_by_default_test.dart | 3 - .../header_parser_tests/macros_config.yaml | 1 - .../large_objc_test.dart | 75 +++---- .../native_cpp_test/verify_bindings_test.dart | 21 +- .../native_objc_test/deprecated_test.dart | 94 +++----- .../test/native_objc_test/ns_range_test.dart | 18 +- .../swift_unavailable_test.dart | 18 +- .../native_objc_test/transitive_test.dart | 30 +-- 13 files changed, 334 insertions(+), 321 deletions(-) diff --git a/pkgs/ffigen/example/add/tool/ffigen.dart b/pkgs/ffigen/example/add/tool/ffigen.dart index d961c0ebbc..922843e0cf 100644 --- a/pkgs/ffigen/example/add/tool/ffigen.dart +++ b/pkgs/ffigen/example/add/tool/ffigen.dart @@ -10,11 +10,7 @@ FfiGenerator getConfig(Uri packageRoot) { output: Output(dartFile: packageRoot.resolve('lib/add.g.dart')), input: Input(entryPoints: [packageRoot.resolve('src/add.h')]), visitors: [ - Visitor( - visitFunc: (node) { - if (node.name != 'add') node.isIncluded = false; - }, - ), + Visitor(visitFunc: (node) => node.isIncluded = node.name == 'add'), ], ); } diff --git a/pkgs/ffigen/example/objective_c/generate_code.dart b/pkgs/ffigen/example/objective_c/generate_code.dart index bc33d626c8..6c58f20acc 100644 --- a/pkgs/ffigen/example/objective_c/generate_code.dart +++ b/pkgs/ffigen/example/objective_c/generate_code.dart @@ -24,20 +24,8 @@ final config = FfiGenerator( objectiveC: const ObjectiveC(), visitors: [ Visitor( - visitFunc: (node) => node.isIncluded = false, - visitStruct: (node) => node.isIncluded = false, - visitUnion: (node) => node.isIncluded = false, - visitEnum: (node) => node.isIncluded = false, - visitUnnamedEnumConstant: (node) => node.isIncluded = false, - visitGlobal: (node) => node.isIncluded = false, - visitMacro: (node) => node.isIncluded = false, - visitConstant: (node) => node.isIncluded = false, - visitTypealias: (node) => node.isIncluded = false, - visitObjCInterface: (node) { - if (node.name != 'AVAudioPlayer') node.isIncluded = false; - }, - visitObjCCategory: (node) => node.isIncluded = false, - visitObjCProtocol: (node) => node.isIncluded = false, + visitObjCInterface: (node) => + node.isIncluded = node.name == 'AVAudioPlayer', ), ], diff --git a/pkgs/ffigen/lib/src/config_provider/config.dart b/pkgs/ffigen/lib/src/config_provider/config.dart index fadf6d1d65..5c19e8a85b 100644 --- a/pkgs/ffigen/lib/src/config_provider/config.dart +++ b/pkgs/ffigen/lib/src/config_provider/config.dart @@ -105,15 +105,15 @@ final class FfiGenerator { const FfiGenerator({ this.input = const Input(), - this.enums = const Enums(), - this.functions = const Functions(), - this.globals = const Globals(), - this.macros = const Macros(), - this.structs = const Structs(), + this.enums = Enums.excludeAll, + this.functions = Functions.excludeAll, + this.globals = Globals.excludeAll, + this.macros = Macros.excludeAll, + this.structs = Structs.excludeAll, this.cpp, - this.typedefs = const Typedefs(), - this.unions = const Unions(), - this.unnamedEnums = const UnnamedEnums(), + this.typedefs = Typedefs.excludeAll, + this.unions = Unions.excludeAll, + this.unnamedEnums = UnnamedEnums.excludeAll, this.objectiveC, required this.output, this.visitors = const [], @@ -159,16 +159,67 @@ final class Input { /// Configuration for declarations. final class Declarations { + /// Whether to include the given declaration. + /// + /// ```dart + /// // This includes `Foo`, and nothing else: + /// include: (Declaration decl) => decl.originalName == 'Foo' + /// ``` + final bool Function(Declaration declaration) include; + + /// A function to pass to [include] that excludes all declarations. + static bool excludeAll(Declaration declaration) => false; + + /// A function to pass to [include] that includes all declarations. + static bool includeAll(Declaration declaration) => true; + + /// Returns a function to pass to [include] that includes all declarations + /// whose `originalName`s are in [names]. + static bool Function(Declaration) includeSet(Set names) => + (Declaration decl) => names.contains(decl.originalName); + + /// Whether the member of the declaration should be included. + /// + /// Only used for [Categories], [Interfaces], and [Protocols] methods and + /// properties. For Objective-C methods, this is the method selector, eg + /// `"arrayWithObjects:count:"`. + /// + /// Note that using [includeMember] to include a member of a class doesn't + /// affect whether the class is included. You'll also need to set [include] + /// for the class (this will be fixed in a future version of the API). + /// + /// ```dart + /// // This includes `Foo.bar`, and no other methods of `Foo`: + /// includeMember: (Declaration declaration, String member) => + /// ``` + // TODO(https://github.com/dart-lang/native/issues/2770): Merge with include. + final bool Function(Declaration declaration, String member) includeMember; + + /// A function to pass to [includeMember] that includes all members of all + /// declarations. + static bool includeAllMembers(Declaration declaration, String member) => true; + + /// A function to pass to [includeMember] that includes specific members. + /// + /// The map key is the declaration's `originalName`, and the value is the set + /// of member names to include. If the declaration is not in the map, all its + /// members are included. + static bool Function(Declaration, String) includeMemberSet( + Map> members, + ) => + (Declaration decl, String member) => + members[decl.originalName]?.contains(member) ?? true; + /// Whether the symbol address should be exposed for this declaration. /// /// The address is exposed as an FFI pointer. final bool Function(Declaration declaration) includeSymbolAddress; const Declarations({ - this.includeSymbolAddress = _includeSymbolAddressDefault, + this.include = excludeAll, + this.includeMember = includeAllMembers, + this.includeSymbolAddress = excludeAll, }); - - static bool _includeSymbolAddressDefault(Declaration declaration) => false; } /// Configuration for enum declarations. @@ -199,7 +250,18 @@ final class Enums extends Declarations { /// Whether to silence warning for enum integer type mimicking. final bool silenceWarning; - const Enums({this.style = _styleDefault, this.silenceWarning = false}); + const Enums({ + super.include, + this.style = _styleDefault, + this.silenceWarning = false, + }); + + static const excludeAll = Enums(include: Declarations.excludeAll); + + static const includeAll = Enums(include: Declarations.includeAll); + + static Enums includeSet(Set names) => + Enums(include: Declarations.includeSet(names)); } /// Configuration for how to generate enums. @@ -246,22 +308,44 @@ final class Functions extends Declarations { final Map> varArgs; const Functions({ + super.include, super.includeSymbolAddress, this.includeTypedef = _includeTypedefDefault, this.isLeaf = _isLeafDefault, this.recordUse = _recordUseDefault, this.varArgs = const >{}, }); + + static const excludeAll = Functions(include: Declarations.excludeAll); + + static const includeAll = Functions(include: Declarations.includeAll); + + static Functions includeSet(Set names) => + Functions(include: Declarations.includeSet(names)); } /// Configuration for globals. final class Globals extends Declarations { - const Globals({super.includeSymbolAddress}); + const Globals({super.include, super.includeSymbolAddress}); + + static const excludeAll = Globals(include: Declarations.excludeAll); + + static const includeAll = Globals(include: Declarations.includeAll); + + static Globals includeSet(Set names) => + Globals(include: Declarations.includeSet(names)); } /// Configuration for macros. final class Macros extends Declarations { - const Macros(); + const Macros({super.include}); + + static const excludeAll = Macros(include: Declarations.excludeAll); + + static const includeAll = Macros(include: Declarations.includeAll); + + static Macros includeSet(Set names) => + Macros(include: Declarations.includeSet(names)); } /// Configuration for struct declarations. @@ -275,9 +359,17 @@ final class Structs extends Declarations { static PackingValue? _packingOverrideDefault(Declaration declaration) => null; const Structs({ + super.include, this.dependencies = CompoundDependencies.opaque, this.packingOverride = _packingOverrideDefault, }); + + static const excludeAll = Structs(include: Declarations.excludeAll); + + static const includeAll = Structs(include: Declarations.includeAll); + + static Structs includeSet(Set names) => + Structs(include: Declarations.includeSet(names)); } /// Configuration for typedefs. @@ -290,14 +382,28 @@ final class Typedefs extends Declarations { final bool useSupportedTypedefs; const Typedefs({ + super.include, this.useSupportedTypedefs = true, this.includeUnused = false, }); + + static const Typedefs excludeAll = Typedefs(include: Declarations.excludeAll); + + static const Typedefs includeAll = Typedefs(include: Declarations.includeAll); + + static Typedefs includeSet(Set names) => + Typedefs(include: Declarations.includeSet(names)); } /// Configuration for C++ class declarations. final class CppClasses extends Declarations { - const CppClasses(); + const CppClasses({super.include}); + + static const excludeAll = CppClasses(include: Declarations.excludeAll); + static const includeAll = CppClasses(include: Declarations.includeAll); + + static CppClasses includeSet(Set names) => + CppClasses(include: Declarations.includeSet(names)); } /// Configuration for C++. @@ -305,7 +411,7 @@ final class Cpp { /// Declaration filters for C++ classes. final CppClasses classes; - const Cpp({this.classes = const CppClasses()}); + const Cpp({this.classes = CppClasses.excludeAll}); } /// Configuration for union declarations. @@ -313,12 +419,29 @@ final class Unions extends Declarations { /// Whether unions that are dependencies should be included. final CompoundDependencies dependencies; - const Unions({this.dependencies = CompoundDependencies.opaque}); + const Unions({ + super.include, + this.dependencies = CompoundDependencies.opaque, + }); + + static const excludeAll = Unions(include: Declarations.excludeAll); + + static const includeAll = Unions(include: Declarations.includeAll); + + static Unions includeSet(Set names) => + Unions(include: Declarations.includeSet(names)); } /// Configuration for unnamed enum constants. final class UnnamedEnums extends Declarations { - const UnnamedEnums(); + const UnnamedEnums({super.include}); + + static const excludeAll = UnnamedEnums(include: Declarations.excludeAll); + + static const includeAll = UnnamedEnums(include: Declarations.includeAll); + + static UnnamedEnums includeSet(Set names) => + UnnamedEnums(include: Declarations.includeSet(names)); } /// Configuration for Objective-C. @@ -345,9 +468,9 @@ final class ObjectiveC { final ExternalVersions externalVersions; const ObjectiveC({ - this.categories = const Categories(), - this.interfaces = const Interfaces(), - this.protocols = const Protocols(), + this.categories = Categories.excludeAll, + this.interfaces = Interfaces.excludeAll, + this.protocols = Protocols.excludeAll, this.externalVersions = const ExternalVersions(), @Deprecated('Only for internal use.') this.generateForPackageObjectiveC = false, @@ -362,7 +485,18 @@ final class Categories extends Declarations { /// transitively included categories will not be generated at all. final bool includeTransitive; - const Categories({this.includeTransitive = true}); + const Categories({ + super.include, + super.includeMember, + this.includeTransitive = true, + }); + + static const excludeAll = Categories(include: Declarations.excludeAll); + + static const includeAll = Categories(include: Declarations.includeAll); + + static Categories includeSet(Set names) => + Categories(include: Declarations.includeSet(names)); } /// Configuration for Objective-C interfaces. @@ -376,7 +510,19 @@ final class Interfaces extends Declarations { /// The module that the Objective-C interface belongs to. final String? Function(Declaration declaration) module; - const Interfaces({this.includeTransitive = false, this.module = noModule}); + const Interfaces({ + super.include, + super.includeMember, + this.includeTransitive = false, + this.module = noModule, + }); + + static const excludeAll = Interfaces(include: Declarations.excludeAll); + + static const includeAll = Interfaces(include: Declarations.includeAll); + + static Interfaces includeSet(Set names) => + Interfaces(include: Declarations.includeSet(names)); static String? noModule(Declaration declaration) => null; } @@ -392,7 +538,19 @@ final class Protocols extends Declarations { /// The module that the Objective-C protocol belongs to. final String? Function(Declaration declaration) module; - const Protocols({this.includeTransitive = false, this.module = noModule}); + const Protocols({ + super.include, + super.includeMember, + this.includeTransitive = false, + this.module = noModule, + }); + + static const excludeAll = Protocols(include: Declarations.excludeAll); + + static const includeAll = Protocols(include: Declarations.includeAll); + + static Protocols includeSet(Set names) => + Protocols(include: Declarations.includeSet(names)); static String? noModule(Declaration declaration) => null; } diff --git a/pkgs/ffigen/lib/src/config_provider/config_types.dart b/pkgs/ffigen/lib/src/config_provider/config_types.dart index daa0f78e4a..f66c79c544 100644 --- a/pkgs/ffigen/lib/src/config_provider/config_types.dart +++ b/pkgs/ffigen/lib/src/config_provider/config_types.dart @@ -147,7 +147,11 @@ final class YamlDeclarationFilters { _memberIncluder.shouldInclude(declaration.originalName, member); Declarations configAdapter() { - return Declarations(includeSymbolAddress: shouldIncludeSymbolAddress); + return Declarations( + include: shouldInclude, + includeSymbolAddress: shouldIncludeSymbolAddress, + includeMember: shouldIncludeMember, + ); } } diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index 3b1816bc7e..8582f2c802 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -67,59 +67,48 @@ final class YamlConfig { late Map> _varArgFunctions = {}; /// Declaration config for Functions. - YamlDeclarationFilters get functionDecl => _functionDecl ??= - declarationConfigExtractor(const {}, _excludeAllByDefault); - YamlDeclarationFilters? _functionDecl; + YamlDeclarationFilters get functionDecl => _functionDecl; + late YamlDeclarationFilters _functionDecl; /// Declaration config for Structs. - YamlDeclarationFilters get structDecl => _structDecl ??= - declarationConfigExtractor(const {}, _excludeAllByDefault); - YamlDeclarationFilters? _structDecl; + YamlDeclarationFilters get structDecl => _structDecl; + late YamlDeclarationFilters _structDecl; /// Declaration config for Unions. - YamlDeclarationFilters get unionDecl => - _unionDecl ??= declarationConfigExtractor(const {}, _excludeAllByDefault); - YamlDeclarationFilters? _unionDecl; + YamlDeclarationFilters get unionDecl => _unionDecl; + late YamlDeclarationFilters _unionDecl; /// Declaration config for Enums. - YamlDeclarationFilters get enumClassDecl => _enumClassDecl ??= - declarationConfigExtractor(const {}, _excludeAllByDefault); - YamlDeclarationFilters? _enumClassDecl; + YamlDeclarationFilters get enumClassDecl => _enumClassDecl; + late YamlDeclarationFilters _enumClassDecl; /// Declaration config for Unnamed enum constants. - YamlDeclarationFilters get unnamedEnumConstants => _unnamedEnumConstants ??= - declarationConfigExtractor(const {}, _excludeAllByDefault); - YamlDeclarationFilters? _unnamedEnumConstants; + YamlDeclarationFilters get unnamedEnumConstants => _unnamedEnumConstants; + late YamlDeclarationFilters _unnamedEnumConstants; /// Declaration config for Globals. - YamlDeclarationFilters get globals => - _globals ??= declarationConfigExtractor(const {}, _excludeAllByDefault); - YamlDeclarationFilters? _globals; + YamlDeclarationFilters get globals => _globals; + late YamlDeclarationFilters _globals; /// Declaration config for Macro constants. - YamlDeclarationFilters get macroDecl => - _macroDecl ??= declarationConfigExtractor(const {}, true); - YamlDeclarationFilters? _macroDecl; + YamlDeclarationFilters get macroDecl => _macroDecl; + late YamlDeclarationFilters _macroDecl; /// Declaration config for Typedefs. - YamlDeclarationFilters get typedefs => - _typedefs ??= declarationConfigExtractor(const {}, _excludeAllByDefault); - YamlDeclarationFilters? _typedefs; + YamlDeclarationFilters get typedefs => _typedefs; + late YamlDeclarationFilters _typedefs; /// Declaration config for Objective C interfaces. - YamlDeclarationFilters get objcInterfaces => _objcInterfaces ??= - declarationConfigExtractor(const {}, _excludeAllByDefault); - YamlDeclarationFilters? _objcInterfaces; + YamlDeclarationFilters get objcInterfaces => _objcInterfaces; + late YamlDeclarationFilters _objcInterfaces; /// Declaration config for Objective C protocols. - YamlDeclarationFilters get objcProtocols => _objcProtocols ??= - declarationConfigExtractor(const {}, _excludeAllByDefault); - YamlDeclarationFilters? _objcProtocols; + YamlDeclarationFilters get objcProtocols => _objcProtocols; + late YamlDeclarationFilters _objcProtocols; /// Declaration config for Objective C categories. - YamlDeclarationFilters get objcCategories => _objcCategories ??= - declarationConfigExtractor(const {}, _excludeAllByDefault); - YamlDeclarationFilters? _objcCategories; + YamlDeclarationFilters get objcCategories => _objcCategories; + late YamlDeclarationFilters _objcCategories; /// If enabled, the default behavior of all declaration filters is to exclude /// everything, rather than include everything. @@ -1274,17 +1263,20 @@ final class YamlConfig { ), ), functions: Functions( + include: functionDecl.shouldInclude, includeSymbolAddress: functionDecl.shouldIncludeSymbolAddress, varArgs: varArgFunctions, includeTypedef: shouldExposeFunctionTypedef, isLeaf: isLeafFunction, ), structs: Structs( + include: _structDecl.shouldInclude, dependencies: _structDependencies, packingOverride: (decl) => _structPackingOverride.getOverridenPackValue(decl.originalName), ), enums: Enums( + include: _enumClassDecl.shouldInclude, silenceWarning: silenceEnumWarning, style: (e, suggestedStyle) { if (suggestedStyle != null) return suggestedStyle; @@ -1294,13 +1286,18 @@ final class YamlConfig { }; }, ), - unions: Unions(dependencies: _unionDependencies), - unnamedEnums: const UnnamedEnums(), + unions: Unions( + include: _unionDecl.shouldInclude, + dependencies: _unionDependencies, + ), + unnamedEnums: UnnamedEnums(include: _unnamedEnumConstants.shouldInclude), globals: Globals( + include: globals.shouldInclude, includeSymbolAddress: globals.shouldIncludeSymbolAddress, ), - macros: const Macros(), + macros: Macros(include: macroDecl.shouldInclude), typedefs: Typedefs( + include: typedefs.shouldInclude, useSupportedTypedefs: useSupportedTypedefs, includeUnused: includeUnusedTypedefs, ), @@ -1308,14 +1305,20 @@ final class YamlConfig { objectiveC: language == Language.objc ? ObjectiveC( interfaces: Interfaces( + include: objcInterfaces.shouldInclude, + includeMember: objcInterfaces.shouldIncludeMember, includeTransitive: includeTransitiveObjCInterfaces, module: interfaceModule, ), protocols: Protocols( + include: objcProtocols.shouldInclude, + includeMember: objcProtocols.shouldIncludeMember, includeTransitive: includeTransitiveObjCProtocols, module: protocolModule, ), categories: Categories( + include: objcCategories.shouldInclude, + includeMember: objcCategories.shouldIncludeMember, includeTransitive: includeTransitiveObjCCategories, ), externalVersions: externalVersions, @@ -1340,9 +1343,7 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitFunc(public_ast.Func node) { - if (config.functionDecl.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.functionDecl.shouldInclude(_decl(node)); if (config.functionDecl.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1350,9 +1351,7 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitUnnamedEnumConstant(public_ast.UnnamedEnumConstant node) { - if (config.unnamedEnumConstants.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.unnamedEnumConstants.shouldInclude(_decl(node)); if (config.unnamedEnumConstants.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1360,9 +1359,7 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitStruct(public_ast.Struct node) { - if (config.structDecl.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.structDecl.shouldInclude(_decl(node)); if (config.structDecl.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1370,25 +1367,15 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitUnion(public_ast.Union node) { - if (config.unionDecl.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.unionDecl.shouldInclude(_decl(node)); if (config.unionDecl.rename(_decl(node)) case final rename?) { node.name = rename; } } - @override - void visitCppClass(public_ast.CppClass node) { - node.isIncluded = true; - visitAll(node.methods); - } - @override void visitEnum(public_ast.EnumClass node) { - if (config.enumClassDecl.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.enumClassDecl.shouldInclude(_decl(node)); if (config.enumClassDecl.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1396,9 +1383,7 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitGlobal(public_ast.Global node) { - if (config.globals.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.globals.shouldInclude(_decl(node)); if (config.globals.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1406,9 +1391,7 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitConstant(public_ast.Constant node) { - if (config.globals.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.globals.shouldInclude(_decl(node)); if (config.globals.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1416,9 +1399,7 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitMacro(public_ast.MacroConstant node) { - if (config.macroDecl.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.macroDecl.shouldInclude(_decl(node)); if (config.macroDecl.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1426,9 +1407,7 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitTypealias(public_ast.Typealias node) { - if (config.typedefs.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.typedefs.shouldInclude(_decl(node)); if (config.typedefs.rename(_decl(node)) case final rename?) { node.name = rename; } @@ -1436,37 +1415,26 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitObjCInterface(public_ast.ObjCInterface node) { - if (config.objcInterfaces.shouldInclude(_decl(node))) { - node.isIncluded = true; - } - if (!node.isInternal) { - if (config.objcInterfaces.rename(_decl(node)) case final rename?) { - node.name = rename; - } + node.isIncluded = config.objcInterfaces.shouldInclude(_decl(node)); + if (config.objcInterfaces.rename(_decl(node)) case final rename?) { + node.name = rename; } - visitAll(node.methods); } @override void visitObjCProtocol(public_ast.ObjCProtocol node) { - if (config.objcProtocols.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.objcProtocols.shouldInclude(_decl(node)); if (config.objcProtocols.rename(_decl(node)) case final rename?) { node.name = rename; } - visitAll(node.methods); } @override void visitObjCCategory(public_ast.ObjCCategory node) { - if (config.objcCategories.shouldInclude(_decl(node))) { - node.isIncluded = true; - } + node.isIncluded = config.objcCategories.shouldInclude(_decl(node)); if (config.objcCategories.rename(_decl(node)) case final rename?) { node.name = rename; } - visitAll(node.methods); } YamlDeclarationFilters? _getObjCDecl(public_ast.DeclNode node) { @@ -1482,21 +1450,16 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitObjCMethod(public_ast.ObjCMethod node) { - final parent = node.parent; - if (parent is public_ast.ObjCInterface && parent.isInternal) { - node.isIncluded = true; - return; - } - final decl = _getObjCDecl(parent); + if (node.isPropertySetter) return; + final decl = _getObjCDecl(node.parent); if (decl != null) { - if (decl.shouldIncludeMember(_decl(parent), node.originalName)) { - node.isIncluded = true; - } - if (node.isIncluded && !node.isPropertySetter) { - if (decl.renameMember(_decl(parent), node.originalName) - case final rename?) { - node.name = rename; - } + node.isIncluded = decl.shouldIncludeMember( + _decl(node.parent), + node.originalName, + ); + if (decl.renameMember(_decl(node.parent), node.originalName) + case final rename?) { + node.name = rename; } } } diff --git a/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart b/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart index baf5a5559c..5ff2b8cd1e 100644 --- a/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart +++ b/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart @@ -20,9 +20,6 @@ ${strings.excludeAllByDefault}: false ${strings.headers}: ${strings.entryPoints}: - '${absPath('test/config_tests/exclude_all_by_default.h')}' -${strings.macros}: - ${strings.include}: - - 'MACRO' '''); final library = parse(testContext(config)); diff --git a/pkgs/ffigen/test/header_parser_tests/macros_config.yaml b/pkgs/ffigen/test/header_parser_tests/macros_config.yaml index 1666750e8d..52fe199944 100644 --- a/pkgs/ffigen/test/header_parser_tests/macros_config.yaml +++ b/pkgs/ffigen/test/header_parser_tests/macros_config.yaml @@ -6,4 +6,3 @@ headers: - macros.h include-directives: - '**macros.h' -macros: {} diff --git a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart index b525bc09df..40e2c1084a 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart @@ -100,52 +100,31 @@ void main() { ), visitors: [ Visitor( - visitFunc: (node) { - if (!shouldIncludeNode('functionDecl', node)) { - node.isIncluded = false; - } - }, - visitStruct: (node) { - if (!shouldIncludeNode('structDecl', node)) node.isIncluded = false; - }, - visitUnion: (node) { - if (!shouldIncludeNode('unionDecl', node)) node.isIncluded = false; - }, - visitEnum: (node) { - if (!shouldIncludeNode('enums', node)) node.isIncluded = false; - }, - visitUnnamedEnumConstant: (node) { - if (!shouldIncludeNode('unnamedEnumConstants', node)) { - node.isIncluded = false; - } - }, - visitGlobal: (node) { - if (!shouldIncludeNode('globals', node)) node.isIncluded = false; - }, - visitTypealias: (node) { - if (!shouldIncludeNode('typedefs', node)) node.isIncluded = false; - }, + visitFunc: (node) => + node.isIncluded = shouldIncludeNode('functionDecl', node), + visitStruct: (node) => + node.isIncluded = shouldIncludeNode('structDecl', node), + visitUnion: (node) => + node.isIncluded = shouldIncludeNode('unionDecl', node), + visitEnum: (node) => + node.isIncluded = shouldIncludeNode('enums', node), + visitUnnamedEnumConstant: (node) => + node.isIncluded = shouldIncludeNode('unnamedEnumConstants', node), + visitGlobal: (node) => + node.isIncluded = shouldIncludeNode('globals', node), + visitTypealias: (node) => + node.isIncluded = shouldIncludeNode('typedefs', node), visitMacro: (node) => node.isIncluded = false, visitConstant: (node) => node.isIncluded = false, - visitObjCInterface: (node) { - if (!shouldIncludeNode('objcInterfaces', node)) { - node.isIncluded = false; - } - }, - visitObjCProtocol: (node) { - if (!shouldIncludeNode( - 'objcProtocols', - node, - forceIncludedProtocols, - )) { - node.isIncluded = false; - } - }, - visitObjCCategory: (node) { - if (!shouldIncludeNode('objcCategories', node)) { - node.isIncluded = false; - } - }, + visitObjCInterface: (node) => + node.isIncluded = shouldIncludeNode('objcInterfaces', node), + visitObjCProtocol: (node) => node.isIncluded = shouldIncludeNode( + 'objcProtocols', + node, + forceIncludedProtocols, + ), + visitObjCCategory: (node) => + node.isIncluded = shouldIncludeNode('objcCategories', node), visitObjCMethod: (node) { final kind = switch (node.parent) { ObjCInterface() => 'objcInterfaces', @@ -154,9 +133,11 @@ void main() { _ => null, }; if (kind != null) { - if (!randInclude('$kind.memb', node.parent, node.originalName)) { - node.isIncluded = false; - } + node.isIncluded = randInclude( + '$kind.memb', + node.parent, + node.originalName, + ); } }, ), diff --git a/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart b/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart index 6b6faa69f5..60876f03cf 100644 --- a/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart +++ b/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart @@ -47,14 +47,10 @@ void main() { cpp: const Cpp(), visitors: [ Visitor( - visitCppClass: (node) { - if (!{ - 'Animal', - 'FinalizerTestSubject', - }.contains(node.originalName)) { - node.isIncluded = false; - } - }, + visitCppClass: (node) => node.isIncluded = { + 'Animal', + 'FinalizerTestSubject', + }.contains(node.originalName), ), ], ), @@ -74,11 +70,10 @@ void main() { cpp: const Cpp(), visitors: [ Visitor( - visitCppClass: (node) { - if (!{'Node', 'NodeManager'}.contains(node.originalName)) { - node.isIncluded = false; - } - }, + visitCppClass: (node) => node.isIncluded = { + 'Node', + 'NodeManager', + }.contains(node.originalName), ), ], ), diff --git a/pkgs/ffigen/test/native_objc_test/deprecated_test.dart b/pkgs/ffigen/test/native_objc_test/deprecated_test.dart index d091091f06..e662d724b9 100644 --- a/pkgs/ffigen/test/native_objc_test/deprecated_test.dart +++ b/pkgs/ffigen/test/native_objc_test/deprecated_test.dart @@ -50,68 +50,38 @@ String bindingsForVersion({Versions? iosVers, Versions? macosVers}) { ), visitors: [ Visitor( - visitObjCInterface: (node) { - if (!{ - 'DeprecatedInterfaceMethods', - 'DeprecatedInterface', - }.contains(node.originalName)) { - node.isIncluded = false; - } - }, - visitObjCProtocol: (node) { - if (!{ - 'DeprecatedProtocolMethods', - 'DeprecatedProtocol', - }.contains(node.originalName)) { - node.isIncluded = false; - } - }, - visitObjCCategory: (node) { - if (!{ - 'DeprecatedCategoryMethods', - 'DeprecatedCategory', - }.contains(node.originalName)) { - node.isIncluded = false; - } - }, - visitFunc: (node) { - if (!{ - 'normalFunction', - 'deprecatedFunction', - }.contains(node.originalName)) { - node.isIncluded = false; - } - }, - visitStruct: (node) { - if (!{ - 'NormalStruct', - 'DeprecatedStruct', - }.contains(node.originalName)) { - node.isIncluded = false; - } - }, - visitUnion: (node) { - if (!{'NormalUnion', 'DeprecatedUnion'}.contains(node.originalName)) { - node.isIncluded = false; - } - }, - visitEnum: (node) { - if (!{'NormalEnum', 'DeprecatedEnum'}.contains(node.originalName)) { - node.isIncluded = false; - } - }, - visitUnnamedEnumConstant: (node) { - if (!{ - 'normalUnnamedEnum', - 'deprecatedUnnamedEnum', - }.contains(node.originalName)) { - node.isIncluded = false; - } - }, - visitGlobal: (node) => node.isIncluded = false, - visitMacro: (node) => node.isIncluded = false, - visitConstant: (node) => node.isIncluded = false, - visitTypealias: (node) => node.isIncluded = false, + visitObjCInterface: (node) => node.isIncluded = { + 'DeprecatedInterfaceMethods', + 'DeprecatedInterface', + }.contains(node.originalName), + visitObjCProtocol: (node) => node.isIncluded = { + 'DeprecatedProtocolMethods', + 'DeprecatedProtocol', + }.contains(node.originalName), + visitObjCCategory: (node) => node.isIncluded = { + 'DeprecatedCategoryMethods', + 'DeprecatedCategory', + }.contains(node.originalName), + visitFunc: (node) => node.isIncluded = { + 'normalFunction', + 'deprecatedFunction', + }.contains(node.originalName), + visitStruct: (node) => node.isIncluded = { + 'NormalStruct', + 'DeprecatedStruct', + }.contains(node.originalName), + visitUnion: (node) => node.isIncluded = { + 'NormalUnion', + 'DeprecatedUnion', + }.contains(node.originalName), + visitEnum: (node) => node.isIncluded = { + 'NormalEnum', + 'DeprecatedEnum', + }.contains(node.originalName), + visitUnnamedEnumConstant: (node) => node.isIncluded = { + 'normalUnnamedEnum', + 'deprecatedUnnamedEnum', + }.contains(node.originalName), ), ], ).generate(logger: createTestLogger()); diff --git a/pkgs/ffigen/test/native_objc_test/ns_range_test.dart b/pkgs/ffigen/test/native_objc_test/ns_range_test.dart index cafdce7db0..eb688006e5 100644 --- a/pkgs/ffigen/test/native_objc_test/ns_range_test.dart +++ b/pkgs/ffigen/test/native_objc_test/ns_range_test.dart @@ -49,22 +49,8 @@ void main() { objectiveC: const ObjectiveC(), visitors: [ Visitor( - visitFunc: (node) => node.isIncluded = false, - visitStruct: (node) => node.isIncluded = false, - visitUnion: (node) => node.isIncluded = false, - visitEnum: (node) => node.isIncluded = false, - visitUnnamedEnumConstant: (node) => node.isIncluded = false, - visitGlobal: (node) => node.isIncluded = false, - visitMacro: (node) => node.isIncluded = false, - visitConstant: (node) => node.isIncluded = false, - visitTypealias: (node) => node.isIncluded = false, - visitObjCInterface: (node) { - if (node.originalName != 'SFTranscriptionSegment') { - node.isIncluded = false; - } - }, - visitObjCCategory: (node) => node.isIncluded = false, - visitObjCProtocol: (node) => node.isIncluded = false, + visitObjCInterface: (node) => + node.isIncluded = node.originalName == 'SFTranscriptionSegment', ), ], ).generate(logger: createTestLogger()); diff --git a/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart b/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart index 0e489c48ba..a04804b204 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart @@ -50,22 +50,8 @@ void main() { objectiveC: const ObjectiveC(), visitors: [ Visitor( - visitFunc: (node) => node.isIncluded = false, - visitStruct: (node) => node.isIncluded = false, - visitUnion: (node) => node.isIncluded = false, - visitEnum: (node) => node.isIncluded = false, - visitUnnamedEnumConstant: (node) => node.isIncluded = false, - visitGlobal: (node) => node.isIncluded = false, - visitMacro: (node) => node.isIncluded = false, - visitConstant: (node) => node.isIncluded = false, - visitTypealias: (node) => node.isIncluded = false, - visitObjCInterface: (node) { - if (node.originalName != 'Animal') { - node.isIncluded = false; - } - }, - visitObjCCategory: (node) => node.isIncluded = false, - visitObjCProtocol: (node) => node.isIncluded = false, + visitObjCInterface: (node) => + node.isIncluded = node.originalName == 'Animal', ), ], ).generate(logger: createTestLogger()); diff --git a/pkgs/ffigen/test/native_objc_test/transitive_test.dart b/pkgs/ffigen/test/native_objc_test/transitive_test.dart index 79af1bf6ce..8352150495 100644 --- a/pkgs/ffigen/test/native_objc_test/transitive_test.dart +++ b/pkgs/ffigen/test/native_objc_test/transitive_test.dart @@ -58,26 +58,16 @@ String generate({ ), visitors: [ Visitor( - visitObjCInterface: (node) { - if (!{ - 'DirectlyIncluded', - 'DirectlyIncludedWithProtocol', - 'DirectlyIncludedIntForCat', - 'Bug2935DirectInterface', - }.contains(node.originalName)) { - node.isIncluded = false; - } - }, - visitObjCProtocol: (node) { - if (node.originalName != 'DirectlyIncludedProtocol') { - node.isIncluded = false; - } - }, - visitObjCCategory: (node) { - if (node.originalName != 'DirectlyIncludedCategory') { - node.isIncluded = false; - } - }, + visitObjCInterface: (node) => node.isIncluded = { + 'DirectlyIncluded', + 'DirectlyIncludedWithProtocol', + 'DirectlyIncludedIntForCat', + 'Bug2935DirectInterface', + }.contains(node.originalName), + visitObjCProtocol: (node) => + node.isIncluded = node.originalName == 'DirectlyIncludedProtocol', + visitObjCCategory: (node) => + node.isIncluded = node.originalName == 'DirectlyIncludedCategory', ), ], ).generate(logger: createTestLogger()); From 21c4256498c50c892034b4ffc0d75391437dcd4f Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 12:07:27 +1000 Subject: [PATCH 11/54] clean up --- .../lib/src/code_generator/cpp_class.dart | 2 + .../lib/src/config_provider/public_ast.dart | 34 ++---------- .../unit_tests/filtering_visitor_test.dart | 54 +++++++++++++++---- 3 files changed, 49 insertions(+), 41 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/cpp_class.dart b/pkgs/ffigen/lib/src/code_generator/cpp_class.dart index 6d900b879a..d468d36d58 100644 --- a/pkgs/ffigen/lib/src/code_generator/cpp_class.dart +++ b/pkgs/ffigen/lib/src/code_generator/cpp_class.dart @@ -25,6 +25,8 @@ class CppMethod extends AstNode with HasLocalScope { final bool isStatic; final CppMethodKind kind; + bool isIncluded = false; + CppMethod({ required this.name, required this.originalName, diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index db3347ed79..c0c3aaf375 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -12,9 +12,6 @@ abstract class AstNode { const AstNode(); void accept(Visitor visitor); - - bool get isIncluded => false; - set isIncluded(bool value) {} } /// Base class for AST nodes with a name. @@ -66,10 +63,8 @@ class Func extends DeclNode { @override set name(String value) => _func.symbol.oldName = value; - @override bool get isIncluded => _func.isIncluded; - @override set isIncluded(bool value) => _func.isIncluded = value; } @@ -104,10 +99,8 @@ class Struct extends DeclNode { bool get isInternal => _struct.isInternal; - @override bool get isIncluded => _struct.isIncluded; - @override set isIncluded(bool value) { if (_struct.isInternal) return; _struct.isIncluded = value; @@ -143,10 +136,8 @@ class Union extends DeclNode { @override set name(String value) => _union.symbol.oldName = value; - @override bool get isIncluded => _union.isIncluded; - @override set isIncluded(bool value) => _union.isIncluded = value; } @@ -179,10 +170,8 @@ class EnumClass extends DeclNode { @override set name(String value) => _enumClass.symbol.oldName = value; - @override bool get isIncluded => _enumClass.isIncluded; - @override set isIncluded(bool value) => _enumClass.isIncluded = value; } @@ -207,10 +196,8 @@ class Global extends DeclNode { @override set name(String value) => _global.symbol.oldName = value; - @override bool get isIncluded => _global.isIncluded; - @override set isIncluded(bool value) => _global.isIncluded = value; } @@ -235,10 +222,8 @@ class Constant extends DeclNode { @override set name(String value) => _constant.symbol.oldName = value; - @override bool get isIncluded => _constant.isIncluded; - @override set isIncluded(bool value) => _constant.isIncluded = value; } @@ -263,10 +248,8 @@ class MacroConstant extends DeclNode { @override set name(String value) => _macro.symbol.oldName = value; - @override bool get isIncluded => _macro.isIncluded; - @override set isIncluded(bool value) => _macro.isIncluded = value; } @@ -291,10 +274,8 @@ class Typealias extends DeclNode { @override set name(String value) => _typealias.symbol.oldName = value; - @override bool get isIncluded => _typealias.isIncluded; - @override set isIncluded(bool value) => _typealias.isIncluded = value; } @@ -327,10 +308,8 @@ class ObjCInterface extends DeclNode { @override set name(String value) => _interface.symbol.oldName = value; - @override bool get isIncluded => _interface.isIncluded; - @override set isIncluded(bool value) { if (_interface.isInternal) return; _interface.isIncluded = value; @@ -368,10 +347,8 @@ class ObjCProtocol extends DeclNode { @override set name(String value) => _protocol.symbol.oldName = value; - @override bool get isIncluded => _protocol.isIncluded; - @override set isIncluded(bool value) => _protocol.isIncluded = value; } @@ -407,10 +384,8 @@ class ObjCCategory extends DeclNode { @override set name(String value) => _category.symbol.oldName = value; - @override bool get isIncluded => _category.isIncluded; - @override set isIncluded(bool value) => _category.isIncluded = value; } @@ -443,10 +418,8 @@ class CppClass extends DeclNode { @override set name(String value) => _cppClass.symbol.oldName = value; - @override bool get isIncluded => _cppClass.isIncluded; - @override set isIncluded(bool value) => _cppClass.isIncluded = value; } @@ -545,6 +518,9 @@ class CppMethod extends NamedNode { @override set name(String value) => _method.name.oldName = value; + + bool get isIncluded => _method.isIncluded; + set isIncluded(bool value) => _method.isIncluded = value; } /// An Objective-C method declaration. @@ -586,10 +562,8 @@ class ObjCMethod extends NamedNode { /// Whether this method is a property setter. bool get isPropertySetter => _method.isPropertySetter; - @override bool get isIncluded => _method.isIncluded; - @override set isIncluded(bool value) { if (parent case final ObjCInterface itf when itf.isInternal) return; _method.isIncluded = value; @@ -617,9 +591,7 @@ class UnnamedEnumConstant extends DeclNode { @override set name(String value) => _constant.symbol.oldName = value; - @override bool get isIncluded => _constant.isIncluded; - @override set isIncluded(bool value) => _constant.isIncluded = value; } diff --git a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart index abc957c8ac..edba1345e8 100644 --- a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart +++ b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart @@ -107,6 +107,13 @@ final class FilteringVisitor extends public_ast.Visitor { node.isIncluded = true; } } + + @override + void visitCppMethod(public_ast.CppMethod node) { + if (node.originalName != 'excludedMethod') { + node.isIncluded = true; + } + } } void main() { @@ -359,8 +366,8 @@ structs: final cppClass = cppClassInternal.toPublicAstNode() as public_ast.CppClass; - final cppMethod = TestCppMethod(cppClass, cppMethodInternal); final objcMethod = objcInterface.methods.first; + final cppMethod = cppClass.methods.first; final testCases = <(String, public_ast.AstNode)>[ ('Func', func), @@ -371,8 +378,8 @@ structs: ('ObjCProtocol', objcProtocol), ('ObjCCategory', objcCategory), ('CppClass', cppClass), - ('CppMethod', cppMethod), ('ObjCMethod', objcMethod), + ('CppMethod', cppMethod), ]; for (final (name, node) in testCases) { @@ -393,7 +400,7 @@ structs: visitParam: visitedWhenIncluded.add, ); - node.isIncluded = true; + (node as dynamic).isIncluded = true; node.accept(visitorIncluded); expect( visitedWhenIncluded.length, @@ -419,7 +426,7 @@ structs: visitParam: visitedWhenExcluded.add, ); - node.isIncluded = false; + (node as dynamic).isIncluded = false; node.accept(visitorExcluded); expect( visitedWhenExcluded, @@ -429,12 +436,39 @@ structs: } }, ); - }); -} -final class TestCppMethod extends public_ast.CppMethod { - TestCppMethod(super.parent, super.method); + test('CppMethod.accept visits its parameters when isIncluded is true', () { + final context = testContext( + FfiGenerator(output: Output(dartFile: Uri.file('out.dart'))), + ); + + final cppMethodInternal = CppMethod( + name: Symbol('m1', SymbolKind.method), + originalName: 'm1', + returnType: voidType, + parameters: [Parameter(name: 'p1', type: intType)], + isConstant: false, + ); + final cppClassInternal = CppClass( + name: 'cppClass', + originalName: 'cppClass', + context: context, + methods: [cppMethodInternal], + fields: [], + ); + final cppClass = + cppClassInternal.toPublicAstNode() as public_ast.CppClass; + final cppMethod = cppClass.methods.first; + + final visited = []; + final visitor = public_ast.Visitor( + visitCppMethod: visited.add, + visitParam: visited.add, + ); - @override - bool isIncluded = false; + cppMethod.isIncluded = true; + cppMethod.accept(visitor); + expect(visited, [cppMethod, cppMethod.params.first]); + }); + }); } From 886635fde08cdca570a59b5e3505164ee2e2c96c Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 13:27:14 +1000 Subject: [PATCH 12/54] wip --- .../objective_c/avf_audio_bindings.dart | 308046 ++++++++++++++- .../example/swift/swift_api_bindings.dart | 24 - .../lib/src/code_generator/objc_methods.dart | 1 + .../lib/src/config_provider/public_ast.dart | 4 + .../lib/src/config_provider/yaml_config.dart | 2 +- .../lib/src/visitor/apply_config_filters.dart | 3 - .../native_objc_test/arc_test_bindings.dart | 57 - .../block_annotation_test_bindings.dart | 92 - .../native_objc_test/block_test_bindings.dart | 92 - .../category_test_bindings.dart | 1131 +- .../native_objc_test/category_test_bindings.m | 111 - .../inherited_instancetype_test_bindings.dart | 79 +- .../is_instance_test_bindings.dart | 42 +- .../isolate_test_bindings.dart | 24 - .../native_objc_test_bindings.dart | 113 - .../nullable_inheritance_test_bindings.dart | 42 +- .../nullable_test_bindings.dart | 31 - .../property_test_bindings.dart | 110 - .../ref_count_test_bindings.dart | 57 - .../rename_test_bindings.dart | 31 - .../sdk_variable_test_bindings.dart | 81 - .../typedef_test_bindings.dart | 25 - 22 files changed, 306976 insertions(+), 3222 deletions(-) delete mode 100644 pkgs/ffigen/test/native_objc_test/category_test_bindings.m diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index a5c0bfe631..db740e9a13 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -11,1213 +11,307091 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +@ffi.Native< + OSStatus Function( + AEEventClass, + AEEventID, + DescType, + ffi.Pointer, + Size, + SInt16, + SInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEBuildAppleEvent( + int theClass, + int theID, + int addressType, + ffi.Pointer addressData, + int addressLength, + int returnID, + int transactionID, + ffi.Pointer result, + ffi.Pointer error, + ffi.Pointer paramsFmt, +); -/// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include -/// AVAudioFormat in your config's objc-interfaces list. -/// -/// AVAudioFormat -extension type AVAudioFormat._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [AVAudioFormat] that points to the same underlying object as [other]. - AVAudioFormat.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioFormat', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEBuildDesc( + ffi.Pointer dst, + ffi.Pointer error, + ffi.Pointer src, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEBuildParameters( + ffi.Pointer event, + ffi.Pointer error, + ffi.Pointer format, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + DescType, + DescType, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AECallObjectAccessor( + int desiredClass, + ffi.Pointer containerToken, + int containerClass, + int keyForm, + ffi.Pointer keyData, + ffi.Pointer token, +); + +@ffi.Native)>() +external int AECheckIsRecord(ffi.Pointer theDesc); + +@ffi.Native< + OSErr Function(ffi.Pointer, DescType, ffi.Pointer) +>() +external int AECoerceDesc( + ffi.Pointer theAEDesc, + int toType, + ffi.Pointer result, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + Size, + DescType, + ffi.Pointer, + ) +>() +external int AECoercePtr( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + int toType, + ffi.Pointer result, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AECompareDesc( + ffi.Pointer desc1, + ffi.Pointer desc2, + ffi.Pointer resultP, +); + +@ffi.Native, ffi.Pointer)>() +external int AECountItems( + ffi.Pointer theAEDescList, + ffi.Pointer theCount, +); + +@ffi.Native< + OSErr Function( + AEEventClass, + AEEventID, + ffi.Pointer, + AEReturnID, + AETransactionID, + ffi.Pointer, + ) +>() +external int AECreateAppleEvent( + int theAEEventClass, + int theAEEventID, + ffi.Pointer target, + int returnID, + int transactionID, + ffi.Pointer result, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + Size, + ffi.Pointer, + ) +>() +external int AECreateDesc( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + ffi.Pointer result, +); + +@ffi.Native< + OSStatus Function( + OSType, + ffi.Pointer, + Size, + AEDisposeExternalUPP, + SRefCon, + ffi.Pointer, + ) +>() +external int AECreateDescFromExternalPtr( + int descriptorType, + ffi.Pointer dataPtr, + int dataLength, + AEDisposeExternalUPP disposeCallback, + SRefCon disposeRefcon, + ffi.Pointer theDesc, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, Size, Boolean, ffi.Pointer) +>() +external int AECreateList( + ffi.Pointer factoringPtr, + int factoredSize, + int isRecord, + ffi.Pointer resultList, +); + +@ffi.Native() +external AERemoteProcessResolverRef AECreateRemoteProcessResolver( + CFAllocatorRef allocator, + CFURLRef url, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEDecodeMessage( + ffi.Pointer header, + ffi.Pointer event, + ffi.Pointer reply, +); + +@ffi.Native, ffi.Long)>() +external int AEDeleteItem(ffi.Pointer theAEDescList, int index$1); + +@ffi.Native, AEKeyword)>() +external int AEDeleteParam( + ffi.Pointer theAppleEvent, + int theAEKeyword, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + AEEventClass, + AEEventID, + Boolean, + ) +>() +external int AEDeterminePermissionToAutomateTarget( + ffi.Pointer target, + int theAEEventClass, + int theAEEventID, + int askUserIfNeeded, +); + +@ffi.Native)>() +external int AEDisposeDesc(ffi.Pointer theAEDesc); + +@ffi.Native() +external void AEDisposeRemoteProcessResolver(AERemoteProcessResolverRef ref); + +@ffi.Native)>() +external int AEDisposeToken(ffi.Pointer theToken); + +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer) +>() +external int AEDuplicateDesc( + ffi.Pointer theAEDesc, + ffi.Pointer result, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, Ptr, Size, ffi.Pointer) +>() +external int AEFlattenDesc( + ffi.Pointer theAEDesc, + Ptr buffer, + int bufferSize, + ffi.Pointer actualSize, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEArrayType, + AEArrayDataPointer, + Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEGetArray( + ffi.Pointer theAEDescList, + int arrayType, + AEArrayDataPointer arrayPtr, + int maximumSize, + ffi.Pointer itemType, + ffi.Pointer itemSize, + ffi.Pointer itemCount, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + ) +>() +external int AEGetAttributeDesc( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int desiredType, + ffi.Pointer result, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Pointer, + ) +>() +external int AEGetAttributePtr( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int desiredType, + ffi.Pointer typeCode, + ffi.Pointer dataPtr, + int maximumSize, + ffi.Pointer actualSize, +); + +@ffi.Native< + OSErr Function( + DescType, + DescType, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + Boolean, + ) +>() +external int AEGetCoercionHandler( + int fromType, + int toType, + ffi.Pointer handler, + ffi.Pointer handlerRefcon, + ffi.Pointer fromTypeIsDesc, + int isSysHandler, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer, Size) +>() +external int AEGetDescData( + ffi.Pointer theAEDesc, + ffi.Pointer dataPtr, + int maximumSize, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer, Size, Size) +>() +external int AEGetDescDataRange( + ffi.Pointer dataDesc, + ffi.Pointer buffer, + int offset, + int length, +); + +@ffi.Native)>() +external int AEGetDescDataSize(ffi.Pointer theAEDesc); + +@ffi.Native< + OSErr Function( + AEEventClass, + AEEventID, + ffi.Pointer, + ffi.Pointer, + Boolean, + ) +>() +external int AEGetEventHandler( + int theAEEventClass, + int theAEEventID, + ffi.Pointer handler, + ffi.Pointer handlerRefcon, + int isSysHandler, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Long, + DescType, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AEGetNthDesc( + ffi.Pointer theAEDescList, + int index$1, + int desiredType, + ffi.Pointer theAEKeyword, + ffi.Pointer result, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Long, + DescType, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Pointer, + ) +>() +external int AEGetNthPtr( + ffi.Pointer theAEDescList, + int index$1, + int desiredType, + ffi.Pointer theAEKeyword, + ffi.Pointer typeCode, + ffi.Pointer dataPtr, + int maximumSize, + ffi.Pointer actualSize, +); + +@ffi.Native< + OSErr Function( + DescType, + DescType, + ffi.Pointer, + ffi.Pointer, + Boolean, + ) +>() +external int AEGetObjectAccessor( + int desiredClass, + int containerType, + ffi.Pointer accessor, + ffi.Pointer accessorRefcon, + int isSysHandler, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + ) +>() +external int AEGetParamDesc( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int desiredType, + ffi.Pointer result, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + ffi.Pointer, + Size, + ffi.Pointer, + ) +>() +external int AEGetParamPtr( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int desiredType, + ffi.Pointer actualType, + ffi.Pointer dataPtr, + int maximumSize, + ffi.Pointer actualSize, +); + +@ffi.Native() +external int AEGetRegisteredMachPort(); + +@ffi.Native< + OSErr Function(AEKeyword, ffi.Pointer, Boolean) +>() +external int AEGetSpecialHandler( + int functionClass, + ffi.Pointer handler, + int isSysHandler, +); + +@ffi.Native)>() +external void AEInitializeDesc(ffi.Pointer desc); + +@ffi.Native< + OSErr Function( + DescType, + DescType, + AECoercionHandlerUPP, + SRefCon, + Boolean, + Boolean, + ) +>() +external int AEInstallCoercionHandler( + int fromType, + int toType, + AECoercionHandlerUPP handler, + SRefCon handlerRefcon, + int fromTypeIsDesc, + int isSysHandler, +); + +@ffi.Native< + OSErr Function(AEEventClass, AEEventID, AEEventHandlerUPP, SRefCon, Boolean) +>() +external int AEInstallEventHandler( + int theAEEventClass, + int theAEEventID, + AEEventHandlerUPP handler, + SRefCon handlerRefcon, + int isSysHandler, +); + +@ffi.Native< + OSErr Function(DescType, DescType, OSLAccessorUPP, SRefCon, Boolean) +>() +external int AEInstallObjectAccessor( + int desiredClass, + int containerType, + OSLAccessorUPP theAccessor, + SRefCon accessorRefcon, + int isSysHandler, +); + +@ffi.Native() +external int AEInstallSpecialHandler( + int functionClass, + AEEventHandlerUPP handler, + int isSysHandler, +); + +@ffi.Native)>() +external int AEManagerInfo(int keyWord, ffi.Pointer result); + +@ffi.Native() +external int AEObjectInit(); + +@ffi.Native, ffi.Pointer)>() +external int AEPrintDescToHandle( + ffi.Pointer desc, + ffi.Pointer result, +); + +@ffi.Native)>() +external int AEProcessMessage(ffi.Pointer header); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEArrayType, + ffi.Pointer, + DescType, + Size, + ffi.Long, + ) +>() +external int AEPutArray( + ffi.Pointer theAEDescList, + int arrayType, + ffi.Pointer arrayPtr, + int itemType, + int itemSize, + int itemCount, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, AEKeyword, ffi.Pointer) +>() +external int AEPutAttributeDesc( + ffi.Pointer theAppleEvent, + int theAEKeyword, + ffi.Pointer theAEDesc, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + Size, + ) +>() +external int AEPutAttributePtr( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int typeCode, + ffi.Pointer dataPtr, + int dataSize, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Long, ffi.Pointer) +>() +external int AEPutDesc( + ffi.Pointer theAEDescList, + int index$1, + ffi.Pointer theAEDesc, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, AEKeyword, ffi.Pointer) +>() +external int AEPutParamDesc( + ffi.Pointer theAppleEvent, + int theAEKeyword, + ffi.Pointer theAEDesc, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + DescType, + ffi.Pointer, + Size, + ) +>() +external int AEPutParamPtr( + ffi.Pointer theAppleEvent, + int theAEKeyword, + int typeCode, + ffi.Pointer dataPtr, + int dataSize, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Long, + DescType, + ffi.Pointer, + Size, + ) +>() +external int AEPutPtr( + ffi.Pointer theAEDescList, + int index$1, + int typeCode, + ffi.Pointer dataPtr, + int dataSize, +); + +@ffi.Native< + CFArrayRef Function(AERemoteProcessResolverRef, ffi.Pointer) +>() +external CFArrayRef AERemoteProcessResolverGetProcesses( + AERemoteProcessResolverRef ref, + ffi.Pointer outError, +); + +@ffi.Native< + ffi.Void Function( + AERemoteProcessResolverRef, + CFRunLoopRef, + CFStringRef, + AERemoteProcessResolverCallback, + ffi.Pointer, + ) +>() +external void AERemoteProcessResolverScheduleWithRunLoop( + AERemoteProcessResolverRef ref, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, + AERemoteProcessResolverCallback callback, + ffi.Pointer ctx, +); + +@ffi.Native() +external int AERemoveCoercionHandler( + int fromType, + int toType, + AECoercionHandlerUPP handler, + int isSysHandler, +); + +@ffi.Native< + OSErr Function(AEEventClass, AEEventID, AEEventHandlerUPP, Boolean) +>() +external int AERemoveEventHandler( + int theAEEventClass, + int theAEEventID, + AEEventHandlerUPP handler, + int isSysHandler, +); + +@ffi.Native() +external int AERemoveObjectAccessor( + int desiredClass, + int containerType, + OSLAccessorUPP theAccessor, + int isSysHandler, +); + +@ffi.Native() +external int AERemoveSpecialHandler( + int functionClass, + AEEventHandlerUPP handler, + int isSysHandler, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + Size, + ffi.Pointer, + ) +>() +external int AEReplaceDescData( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + ffi.Pointer theAEDesc, +); + +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Short, ffi.Pointer) +>() +external int AEResolve( + ffi.Pointer objectSpecifier, + int callbackFlags, + ffi.Pointer theToken, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + AESendMode, + ffi.Long, + ) +>() +external int AESendMessage( + ffi.Pointer event, + ffi.Pointer reply, + int sendMode, + int timeOutInTicks, +); + +@ffi.Native< + OSErr Function( + OSLCompareUPP, + OSLCountUPP, + OSLDisposeTokenUPP, + OSLGetMarkTokenUPP, + OSLMarkUPP, + OSLAdjustMarksUPP, + OSLGetErrDescUPP, + ) +>() +external int AESetObjectCallbacks( + OSLCompareUPP myCompareProc, + OSLCountUPP myCountProc, + OSLDisposeTokenUPP myDisposeTokenProc, + OSLGetMarkTokenUPP myGetMarkTokenProc, + OSLMarkUPP myMarkProc, + OSLAdjustMarksUPP myAdjustMarksProc, + OSLGetErrDescUPP myGetErrDescProcPtr, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AESizeOfAttribute( + ffi.Pointer theAppleEvent, + int theAEKeyword, + ffi.Pointer typeCode, + ffi.Pointer dataSize, +); + +@ffi.Native)>() +external int AESizeOfFlattenedDesc(ffi.Pointer theAEDesc); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AESizeOfNthItem( + ffi.Pointer theAEDescList, + int index$1, + ffi.Pointer typeCode, + ffi.Pointer dataSize, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + AEKeyword, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AESizeOfParam( + ffi.Pointer theAppleEvent, + int theAEKeyword, + ffi.Pointer typeCode, + ffi.Pointer dataSize, +); + +@ffi.Native)>() +external int AEStreamClose(AEStreamRef ref, ffi.Pointer desc); + +@ffi.Native() +external int AEStreamCloseDesc(AEStreamRef ref); + +@ffi.Native() +external int AEStreamCloseList(AEStreamRef ref); + +@ffi.Native() +external int AEStreamCloseRecord(AEStreamRef ref); + +@ffi.Native< + AEStreamRef Function( + AEEventClass, + AEEventID, + DescType, + ffi.Pointer, + Size, + SInt16, + SInt32, + ) +>() +external AEStreamRef AEStreamCreateEvent( + int clazz, + int id, + int targetType, + ffi.Pointer targetData, + int targetLength, + int returnID, + int transactionID, +); + +@ffi.Native() +external AEStreamRef AEStreamOpen(); + +@ffi.Native() +external int AEStreamOpenDesc(AEStreamRef ref, int newType); + +@ffi.Native)>() +external AEStreamRef AEStreamOpenEvent(ffi.Pointer event); + +@ffi.Native() +external int AEStreamOpenKeyDesc(AEStreamRef ref, int key, int newType); + +@ffi.Native() +external int AEStreamOpenList(AEStreamRef ref); + +@ffi.Native() +external int AEStreamOpenRecord(AEStreamRef ref, int newType); + +@ffi.Native() +external int AEStreamOptionalParam(AEStreamRef ref, int key); + +@ffi.Native() +external int AEStreamSetRecordType(AEStreamRef ref, int newType); + +@ffi.Native)>() +external int AEStreamWriteAEDesc( + AEStreamRef ref, + ffi.Pointer desc, +); + +@ffi.Native, Size)>() +external int AEStreamWriteData( + AEStreamRef ref, + ffi.Pointer data, + int length, +); + +@ffi.Native< + OSStatus Function(AEStreamRef, DescType, ffi.Pointer, Size) +>() +external int AEStreamWriteDesc( + AEStreamRef ref, + int newType, + ffi.Pointer data, + int length, +); + +@ffi.Native() +external int AEStreamWriteKey(AEStreamRef ref, int key); + +@ffi.Native< + OSStatus Function( + AEStreamRef, + AEKeyword, + DescType, + ffi.Pointer, + Size, + ) +>() +external int AEStreamWriteKeyDesc( + AEStreamRef ref, + int key, + int newType, + ffi.Pointer data, + int length, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int AEUnflattenDesc( + ffi.Pointer buffer, + ffi.Pointer result, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Size, ffi.Pointer) +>() +external int AEUnflattenDescFromBytes( + ffi.Pointer buffer, + int bufferLen, + ffi.Pointer result, +); + +@ffi.Native>( + symbol: 'AVAudioBitRateStrategy_Constant', +) +external final ffi.Pointer +_AVAudioBitRateStrategy_Constant; + +objc.NSString get AVAudioBitRateStrategy_Constant => objc.NSString.fromPointer( + _AVAudioBitRateStrategy_Constant, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'AVAudioBitRateStrategy_LongTermAverage', +) +external final ffi.Pointer +_AVAudioBitRateStrategy_LongTermAverage; + +objc.NSString get AVAudioBitRateStrategy_LongTermAverage => + objc.NSString.fromPointer( + _AVAudioBitRateStrategy_LongTermAverage, + retain: true, + release: true, ); - } - /// Constructs a [AVAudioFormat] that wraps the given raw object pointer. - AVAudioFormat.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioFormat', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), +@ffi.Native>( + symbol: 'AVAudioBitRateStrategy_Variable', +) +external final ffi.Pointer +_AVAudioBitRateStrategy_Variable; + +objc.NSString get AVAudioBitRateStrategy_Variable => objc.NSString.fromPointer( + _AVAudioBitRateStrategy_Variable, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'AVAudioBitRateStrategy_VariableConstrained', +) +external final ffi.Pointer +_AVAudioBitRateStrategy_VariableConstrained; + +objc.NSString get AVAudioBitRateStrategy_VariableConstrained => + objc.NSString.fromPointer( + _AVAudioBitRateStrategy_VariableConstrained, + retain: true, + release: true, ); - } -} -/// AVAudioPlayer -extension type AVAudioPlayer._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioPlayer] that points to the same underlying object as [other]. - AVAudioPlayer.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioPlayer', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>(symbol: 'AVAudioFileTypeKey') +external final ffi.Pointer _AVAudioFileTypeKey; + +objc.NSString get AVAudioFileTypeKey => + objc.NSString.fromPointer(_AVAudioFileTypeKey, retain: true, release: true); + +@ffi.Native( + symbol: 'AVAudioSessionAvailableInputsChangeNotification', +) +external final NSNotificationName +_AVAudioSessionAvailableInputsChangeNotification; + +DartNSNotificationName get AVAudioSessionAvailableInputsChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionAvailableInputsChangeNotification, + retain: true, + release: true, ); - assert(isA(object$)); - } - /// Constructs a [AVAudioPlayer] that wraps the given raw object pointer. - AVAudioPlayer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioPlayer', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionCategoryAmbient') +external final AVAudioSessionCategory _AVAudioSessionCategoryAmbient; + +DartAVAudioSessionCategory get AVAudioSessionCategoryAmbient => + objc.NSString.fromPointer( + _AVAudioSessionCategoryAmbient, + retain: true, + release: true, ); - assert(isA(object$)); - } - /// Returns whether [obj] is an instance of [AVAudioPlayer]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_AVAudioPlayer, - ); +@ffi.Native( + symbol: 'AVAudioSessionCategoryAudioProcessing', +) +external final AVAudioSessionCategory _AVAudioSessionCategoryAudioProcessing; - /// alloc - static AVAudioPlayer alloc() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_alloc); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } +DartAVAudioSessionCategory get AVAudioSessionCategoryAudioProcessing => + objc.NSString.fromPointer( + _AVAudioSessionCategoryAudioProcessing, + retain: true, + release: true, + ); - /// allocWithZone: - static AVAudioPlayer allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_AVAudioPlayer, - _sel_allocWithZone_, - zone, +@ffi.Native(symbol: 'AVAudioSessionCategoryMultiRoute') +external final AVAudioSessionCategory _AVAudioSessionCategoryMultiRoute; + +DartAVAudioSessionCategory get AVAudioSessionCategoryMultiRoute => + objc.NSString.fromPointer( + _AVAudioSessionCategoryMultiRoute, + retain: true, + release: true, ); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - /// new - static AVAudioPlayer new$() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_new); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } +@ffi.Native( + symbol: 'AVAudioSessionCategoryPlayAndRecord', +) +external final AVAudioSessionCategory _AVAudioSessionCategoryPlayAndRecord; - /// Returns a new instance of AVAudioPlayer constructed with the default `new` method. - AVAudioPlayer() : this.as(new$().object$); -} +DartAVAudioSessionCategory get AVAudioSessionCategoryPlayAndRecord => + objc.NSString.fromPointer( + _AVAudioSessionCategoryPlayAndRecord, + retain: true, + release: true, + ); -extension AVAudioPlayer$Methods on AVAudioPlayer { - /// averagePowerForChannel: - double averagePowerForChannel(int channelNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.averagePowerForChannel:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionCategoryPlayback') +external final AVAudioSessionCategory _AVAudioSessionCategoryPlayback; + +DartAVAudioSessionCategory get AVAudioSessionCategoryPlayback => + objc.NSString.fromPointer( + _AVAudioSessionCategoryPlayback, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_65s5ywFpret( - _$$ref.pointer, - _sel_averagePowerForChannel_, - channelNumber, - ) - : _objc_msgSend_65s5yw( - _$$ref.pointer, - _sel_averagePowerForChannel_, - channelNumber, - ); - } - /// channelAssignments - objc.NSArray? get channelAssignments { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.channelAssignments', - iOS: (false, (7, 0, 0)), - macOS: (true, null), +@ffi.Native(symbol: 'AVAudioSessionCategoryRecord') +external final AVAudioSessionCategory _AVAudioSessionCategoryRecord; + +DartAVAudioSessionCategory get AVAudioSessionCategoryRecord => + objc.NSString.fromPointer( + _AVAudioSessionCategoryRecord, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_channelAssignments); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - /// currentDevice - objc.NSString? get currentDevice { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.currentDevice', - iOS: (true, null), - macOS: (false, (10, 13, 0)), +@ffi.Native(symbol: 'AVAudioSessionCategorySoloAmbient') +external final AVAudioSessionCategory _AVAudioSessionCategorySoloAmbient; + +DartAVAudioSessionCategory get AVAudioSessionCategorySoloAmbient => + objc.NSString.fromPointer( + _AVAudioSessionCategorySoloAmbient, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - /// currentTime - double get currentTime { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.currentTime', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native( + symbol: 'AVAudioSessionInterruptionNotification', +) +external final NSNotificationName _AVAudioSessionInterruptionNotification; + +DartNSNotificationName get AVAudioSessionInterruptionNotification => + objc.NSString.fromPointer( + _AVAudioSessionInterruptionNotification, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); - } - /// data - objc.NSData? get data { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.data', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionInterruptionOptionKey', +) +external final ffi.Pointer +_AVAudioSessionInterruptionOptionKey; + +objc.NSString get AVAudioSessionInterruptionOptionKey => + objc.NSString.fromPointer( + _AVAudioSessionInterruptionOptionKey, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - /// delegate - AVAudioPlayerDelegate? get delegate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.delegate', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionInterruptionReasonKey', +) +external final ffi.Pointer +_AVAudioSessionInterruptionReasonKey; + +objc.NSString get AVAudioSessionInterruptionReasonKey => + objc.NSString.fromPointer( + _AVAudioSessionInterruptionReasonKey, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); - return $ret.address == 0 - ? null - : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); - } - /// deviceCurrentTime - double get deviceCurrentTime { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.deviceCurrentTime', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionInterruptionTypeKey', +) +external final ffi.Pointer +_AVAudioSessionInterruptionTypeKey; + +objc.NSString get AVAudioSessionInterruptionTypeKey => + objc.NSString.fromPointer( + _AVAudioSessionInterruptionTypeKey, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); - } - /// duration - double get duration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.duration', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionInterruptionWasSuspendedKey', +) +external final ffi.Pointer +_AVAudioSessionInterruptionWasSuspendedKey; + +objc.NSString get AVAudioSessionInterruptionWasSuspendedKey => + objc.NSString.fromPointer( + _AVAudioSessionInterruptionWasSuspendedKey, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); - } - /// enableRate - bool get enableRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.enableRate', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), +@ffi.Native(symbol: 'AVAudioSessionLocationLower') +external AVAudioSessionLocation _AVAudioSessionLocationLower; + +DartAVAudioSessionLocation get AVAudioSessionLocationLower => + objc.NSString.fromPointer( + _AVAudioSessionLocationLower, + retain: true, + release: true, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); - } - /// format - AVAudioFormat get format { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.format', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), +set AVAudioSessionLocationLower(DartAVAudioSessionLocation value) { + objc.NSString.fromPointer( + _AVAudioSessionLocationLower, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionLocationLower = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionLocationUpper') +external AVAudioSessionLocation _AVAudioSessionLocationUpper; + +DartAVAudioSessionLocation get AVAudioSessionLocationUpper => + objc.NSString.fromPointer( + _AVAudioSessionLocationUpper, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); - return AVAudioFormat.fromPointer($ret, retain: true, release: true); - } - /// init - AVAudioPlayer init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), +set AVAudioSessionLocationUpper(DartAVAudioSessionLocation value) { + objc.NSString.fromPointer( + _AVAudioSessionLocationUpper, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionLocationUpper = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionMediaServicesWereLostNotification', +) +external final NSNotificationName +_AVAudioSessionMediaServicesWereLostNotification; + +DartNSNotificationName get AVAudioSessionMediaServicesWereLostNotification => + objc.NSString.fromPointer( + _AVAudioSessionMediaServicesWereLostNotification, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, + +@ffi.Native( + symbol: 'AVAudioSessionMediaServicesWereResetNotification', +) +external final NSNotificationName +_AVAudioSessionMediaServicesWereResetNotification; + +DartNSNotificationName get AVAudioSessionMediaServicesWereResetNotification => + objc.NSString.fromPointer( + _AVAudioSessionMediaServicesWereResetNotification, + retain: true, + release: true, ); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - /// initWithContentsOfURL:error: - AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithContentsOfURL:error:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native( + symbol: 'AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification', +) +external final NSNotificationName +_AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification; + +DartNSNotificationName +get AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification, + retain: true, + release: true, ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - /// initWithContentsOfURL:fileTypeHint:error: - AVAudioPlayer? initWithContentsOfURL$1( - objc.NSURL url, { - objc.NSString? fileTypeHint, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = fileTypeHint?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithContentsOfURL:fileTypeHint:error:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionMicrophoneInjectionIsAvailableKey', +) +external final ffi.Pointer +_AVAudioSessionMicrophoneInjectionIsAvailableKey; + +objc.NSString get AVAudioSessionMicrophoneInjectionIsAvailableKey => + objc.NSString.fromPointer( + _AVAudioSessionMicrophoneInjectionIsAvailableKey, + retain: true, + release: true, ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_fileTypeHint_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - /// initWithData:error: - AVAudioPlayer? initWithData(objc.NSData data) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithData:error:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithData_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } +@ffi.Native(symbol: 'AVAudioSessionModeDefault') +external final AVAudioSessionMode _AVAudioSessionModeDefault; - /// initWithData:fileTypeHint:error: - AVAudioPlayer? initWithData$1( - objc.NSData data, { - objc.NSString? fileTypeHint, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - final _$$ref$2 = fileTypeHint?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithData:fileTypeHint:error:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), +DartAVAudioSessionMode get AVAudioSessionModeDefault => + objc.NSString.fromPointer( + _AVAudioSessionModeDefault, + retain: true, + release: true, ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _$$ref.retainAndReturnPointer(), - _sel_initWithData_fileTypeHint_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - /// intendedSpatialExperience - CASpatialAudioExperience get intendedSpatialExperience { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.intendedSpatialExperience', - iOS: (true, null), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_intendedSpatialExperience, +@ffi.Native(symbol: 'AVAudioSessionModeGameChat') +external final AVAudioSessionMode _AVAudioSessionModeGameChat; + +DartAVAudioSessionMode get AVAudioSessionModeGameChat => + objc.NSString.fromPointer( + _AVAudioSessionModeGameChat, + retain: true, + release: true, ); - return CASpatialAudioExperience.fromPointer( - $ret, + +@ffi.Native(symbol: 'AVAudioSessionModeMeasurement') +external final AVAudioSessionMode _AVAudioSessionModeMeasurement; + +DartAVAudioSessionMode get AVAudioSessionModeMeasurement => + objc.NSString.fromPointer( + _AVAudioSessionModeMeasurement, retain: true, release: true, ); - } - /// isMeteringEnabled - bool get isMeteringEnabled { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.isMeteringEnabled', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeMoviePlayback') +external final AVAudioSessionMode _AVAudioSessionModeMoviePlayback; + +DartAVAudioSessionMode get AVAudioSessionModeMoviePlayback => + objc.NSString.fromPointer( + _AVAudioSessionModeMoviePlayback, + retain: true, + release: true, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); - } - /// isPlaying - bool get isPlaying { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.isPlaying', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeShortFormVideo') +external final AVAudioSessionMode _AVAudioSessionModeShortFormVideo; + +DartAVAudioSessionMode get AVAudioSessionModeShortFormVideo => + objc.NSString.fromPointer( + _AVAudioSessionModeShortFormVideo, + retain: true, + release: true, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); - } - /// numberOfChannels - int get numberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.numberOfChannels', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeSpokenAudio') +external final AVAudioSessionMode _AVAudioSessionModeSpokenAudio; + +DartAVAudioSessionMode get AVAudioSessionModeSpokenAudio => + objc.NSString.fromPointer( + _AVAudioSessionModeSpokenAudio, + retain: true, + release: true, ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfChannels); - } - /// numberOfLoops - int get numberOfLoops { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.numberOfLoops', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeVideoChat') +external final AVAudioSessionMode _AVAudioSessionModeVideoChat; + +DartAVAudioSessionMode get AVAudioSessionModeVideoChat => + objc.NSString.fromPointer( + _AVAudioSessionModeVideoChat, + retain: true, + release: true, ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); - } - /// pan - double get pan { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.pan', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeVideoRecording') +external final AVAudioSessionMode _AVAudioSessionModeVideoRecording; + +DartAVAudioSessionMode get AVAudioSessionModeVideoRecording => + objc.NSString.fromPointer( + _AVAudioSessionModeVideoRecording, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); - } - /// pause - void pause() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.pause', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeVoiceChat') +external final AVAudioSessionMode _AVAudioSessionModeVoiceChat; + +DartAVAudioSessionMode get AVAudioSessionModeVoiceChat => + objc.NSString.fromPointer( + _AVAudioSessionModeVoiceChat, + retain: true, + release: true, ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); - } - /// peakPowerForChannel: - double peakPowerForChannel(int channelNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.peakPowerForChannel:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionModeVoicePrompt') +external final AVAudioSessionMode _AVAudioSessionModeVoicePrompt; + +DartAVAudioSessionMode get AVAudioSessionModeVoicePrompt => + objc.NSString.fromPointer( + _AVAudioSessionModeVoicePrompt, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_65s5ywFpret( - _$$ref.pointer, - _sel_peakPowerForChannel_, - channelNumber, - ) - : _objc_msgSend_65s5yw( - _$$ref.pointer, - _sel_peakPowerForChannel_, - channelNumber, - ); - } - /// play - bool play() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.play', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native>( + symbol: 'AVAudioSessionMuteStateKey', +) +external final ffi.Pointer _AVAudioSessionMuteStateKey; + +objc.NSString get AVAudioSessionMuteStateKey => objc.NSString.fromPointer( + _AVAudioSessionMuteStateKey, + retain: true, + release: true, +); + +@ffi.Native(symbol: 'AVAudioSessionOrientationBack') +external AVAudioSessionOrientation _AVAudioSessionOrientationBack; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationBack => + objc.NSString.fromPointer( + _AVAudioSessionOrientationBack, + retain: true, + release: true, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); - } - /// playAtTime: - bool playAtTime(double time) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.playAtTime:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), +set AVAudioSessionOrientationBack(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationBack, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationBack = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionOrientationBottom', +) +external AVAudioSessionOrientation _AVAudioSessionOrientationBottom; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationBottom => + objc.NSString.fromPointer( + _AVAudioSessionOrientationBottom, + retain: true, + release: true, ); - return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time); - } - /// prepareToPlay - bool prepareToPlay() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.prepareToPlay', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +set AVAudioSessionOrientationBottom(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationBottom, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationBottom = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionOrientationFront') +external AVAudioSessionOrientation _AVAudioSessionOrientationFront; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationFront => + objc.NSString.fromPointer( + _AVAudioSessionOrientationFront, + retain: true, + release: true, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); - } - /// rate - double get rate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.rate', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), +set AVAudioSessionOrientationFront(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationFront, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationFront = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionOrientationLeft') +external AVAudioSessionOrientation _AVAudioSessionOrientationLeft; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationLeft => + objc.NSString.fromPointer( + _AVAudioSessionOrientationLeft, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); - } - /// setChannelAssignments: - set channelAssignments(objc.NSArray? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setChannelAssignments:', - iOS: (false, (7, 0, 0)), - macOS: (true, null), +set AVAudioSessionOrientationLeft(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationLeft, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationLeft = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionOrientationRight') +external AVAudioSessionOrientation _AVAudioSessionOrientationRight; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationRight => + objc.NSString.fromPointer( + _AVAudioSessionOrientationRight, + retain: true, + release: true, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setChannelAssignments_, - _$$ref$1?.pointer ?? ffi.nullptr, + +set AVAudioSessionOrientationRight(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationRight, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationRight = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionOrientationTop') +external AVAudioSessionOrientation _AVAudioSessionOrientationTop; + +DartAVAudioSessionOrientation get AVAudioSessionOrientationTop => + objc.NSString.fromPointer( + _AVAudioSessionOrientationTop, + retain: true, + release: true, ); - } - /// setCurrentDevice: - set currentDevice(objc.NSString? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setCurrentDevice:', - iOS: (true, null), - macOS: (false, (10, 13, 0)), +set AVAudioSessionOrientationTop(DartAVAudioSessionOrientation value) { + objc.NSString.fromPointer( + _AVAudioSessionOrientationTop, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionOrientationTop = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionOutputMuteStateChangeNotification', +) +external final NSNotificationName +_AVAudioSessionOutputMuteStateChangeNotification; + +DartNSNotificationName get AVAudioSessionOutputMuteStateChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionOutputMuteStateChangeNotification, + retain: true, + release: true, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setCurrentDevice_, - _$$ref$1?.pointer ?? ffi.nullptr, + +@ffi.Native( + symbol: 'AVAudioSessionPolarPatternCardioid', +) +external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternCardioid; + +DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternCardioid => + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternCardioid, + retain: true, + release: true, ); - } - /// setCurrentTime: - set currentTime(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setCurrentTime:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +set AVAudioSessionPolarPatternCardioid(DartAVAudioSessionPolarPattern value) { + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternCardioid, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionPolarPatternCardioid = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionPolarPatternOmnidirectional', +) +external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternOmnidirectional; + +DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternOmnidirectional => + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternOmnidirectional, + retain: true, + release: true, ); - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); - } - /// setDelegate: - set delegate(AVAudioPlayerDelegate? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setDelegate:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +set AVAudioSessionPolarPatternOmnidirectional( + DartAVAudioSessionPolarPattern value, +) { + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternOmnidirectional, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionPolarPatternOmnidirectional = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionPolarPatternStereo', +) +external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternStereo; + +DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternStereo => + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternStereo, + retain: true, + release: true, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setDelegate_, - _$$ref$1?.pointer ?? ffi.nullptr, + +set AVAudioSessionPolarPatternStereo(DartAVAudioSessionPolarPattern value) { + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternStereo, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionPolarPatternStereo = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'AVAudioSessionPolarPatternSubcardioid', +) +external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternSubcardioid; + +DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternSubcardioid => + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternSubcardioid, + retain: true, + release: true, ); - } - /// setEnableRate: - set enableRate(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setEnableRate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), +set AVAudioSessionPolarPatternSubcardioid( + DartAVAudioSessionPolarPattern value, +) { + objc.NSString.fromPointer( + _AVAudioSessionPolarPatternSubcardioid, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _AVAudioSessionPolarPatternSubcardioid = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'AVAudioSessionPortAVB') +external final AVAudioSessionPort _AVAudioSessionPortAVB; + +DartAVAudioSessionPort get AVAudioSessionPortAVB => objc.NSString.fromPointer( + _AVAudioSessionPortAVB, + retain: true, + release: true, +); + +@ffi.Native(symbol: 'AVAudioSessionPortAirPlay') +external final AVAudioSessionPort _AVAudioSessionPortAirPlay; + +DartAVAudioSessionPort get AVAudioSessionPortAirPlay => + objc.NSString.fromPointer( + _AVAudioSessionPortAirPlay, + retain: true, + release: true, ); - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); - } - /// setIntendedSpatialExperience: - set intendedSpatialExperience(CASpatialAudioExperience value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setIntendedSpatialExperience:', - iOS: (true, null), - macOS: (true, null), +@ffi.Native(symbol: 'AVAudioSessionPortBluetoothA2DP') +external final AVAudioSessionPort _AVAudioSessionPortBluetoothA2DP; + +DartAVAudioSessionPort get AVAudioSessionPortBluetoothA2DP => + objc.NSString.fromPointer( + _AVAudioSessionPortBluetoothA2DP, + retain: true, + release: true, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setIntendedSpatialExperience_, - _$$ref$1.pointer, + +@ffi.Native(symbol: 'AVAudioSessionPortBluetoothHFP') +external final AVAudioSessionPort _AVAudioSessionPortBluetoothHFP; + +DartAVAudioSessionPort get AVAudioSessionPortBluetoothHFP => + objc.NSString.fromPointer( + _AVAudioSessionPortBluetoothHFP, + retain: true, + release: true, ); - } - /// setMeteringEnabled: - set isMeteringEnabled(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setMeteringEnabled:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortBluetoothLE') +external final AVAudioSessionPort _AVAudioSessionPortBluetoothLE; + +DartAVAudioSessionPort get AVAudioSessionPortBluetoothLE => + objc.NSString.fromPointer( + _AVAudioSessionPortBluetoothLE, + retain: true, + release: true, ); - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setMeteringEnabled_, value); - } - /// setNumberOfLoops: - set numberOfLoops(int value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setNumberOfLoops:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortBuiltInMic') +external final AVAudioSessionPort _AVAudioSessionPortBuiltInMic; + +DartAVAudioSessionPort get AVAudioSessionPortBuiltInMic => + objc.NSString.fromPointer( + _AVAudioSessionPortBuiltInMic, + retain: true, + release: true, ); - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); - } - /// setPan: - set pan(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setPan:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortBuiltInReceiver') +external final AVAudioSessionPort _AVAudioSessionPortBuiltInReceiver; + +DartAVAudioSessionPort get AVAudioSessionPortBuiltInReceiver => + objc.NSString.fromPointer( + _AVAudioSessionPortBuiltInReceiver, + retain: true, + release: true, ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); - } - /// setRate: - set rate(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setRate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortBuiltInSpeaker') +external final AVAudioSessionPort _AVAudioSessionPortBuiltInSpeaker; + +DartAVAudioSessionPort get AVAudioSessionPortBuiltInSpeaker => + objc.NSString.fromPointer( + _AVAudioSessionPortBuiltInSpeaker, + retain: true, + release: true, ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); - } - /// setVolume: - set volume(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setVolume:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortCarAudio') +external final AVAudioSessionPort _AVAudioSessionPortCarAudio; + +DartAVAudioSessionPort get AVAudioSessionPortCarAudio => + objc.NSString.fromPointer( + _AVAudioSessionPortCarAudio, + retain: true, + release: true, ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); - } - /// setVolume:fadeDuration: - void setVolume(double volume, {required double fadeDuration}) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setVolume:fadeDuration:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), +@ffi.Native( + symbol: 'AVAudioSessionPortContinuityMicrophone', +) +external final AVAudioSessionPort _AVAudioSessionPortContinuityMicrophone; + +DartAVAudioSessionPort get AVAudioSessionPortContinuityMicrophone => + objc.NSString.fromPointer( + _AVAudioSessionPortContinuityMicrophone, + retain: true, + release: true, ); - _objc_msgSend_1p4uk9e( - _$$ref.pointer, - _sel_setVolume_fadeDuration_, - volume, - fadeDuration, + +@ffi.Native(symbol: 'AVAudioSessionPortDisplayPort') +external final AVAudioSessionPort _AVAudioSessionPortDisplayPort; + +DartAVAudioSessionPort get AVAudioSessionPortDisplayPort => + objc.NSString.fromPointer( + _AVAudioSessionPortDisplayPort, + retain: true, + release: true, ); - } - /// settings - objc.NSDictionary get settings { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.settings', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortFireWire') +external final AVAudioSessionPort _AVAudioSessionPortFireWire; + +DartAVAudioSessionPort get AVAudioSessionPortFireWire => + objc.NSString.fromPointer( + _AVAudioSessionPortFireWire, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_settings); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - /// stop - void stop() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.stop', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortHDMI') +external final AVAudioSessionPort _AVAudioSessionPortHDMI; + +DartAVAudioSessionPort get AVAudioSessionPortHDMI => objc.NSString.fromPointer( + _AVAudioSessionPortHDMI, + retain: true, + release: true, +); + +@ffi.Native(symbol: 'AVAudioSessionPortHeadphones') +external final AVAudioSessionPort _AVAudioSessionPortHeadphones; + +DartAVAudioSessionPort get AVAudioSessionPortHeadphones => + objc.NSString.fromPointer( + _AVAudioSessionPortHeadphones, + retain: true, + release: true, ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); - } - /// updateMeters - void updateMeters() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.updateMeters', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortHeadsetMic') +external final AVAudioSessionPort _AVAudioSessionPortHeadsetMic; + +DartAVAudioSessionPort get AVAudioSessionPortHeadsetMic => + objc.NSString.fromPointer( + _AVAudioSessionPortHeadsetMic, + retain: true, + release: true, ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); - } - /// url - objc.NSURL? get url { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.url', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortLineIn') +external final AVAudioSessionPort _AVAudioSessionPortLineIn; + +DartAVAudioSessionPort get AVAudioSessionPortLineIn => + objc.NSString.fromPointer( + _AVAudioSessionPortLineIn, + retain: true, + release: true, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - /// volume - double get volume { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.volume', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), +@ffi.Native(symbol: 'AVAudioSessionPortLineOut') +external final AVAudioSessionPort _AVAudioSessionPortLineOut; + +DartAVAudioSessionPort get AVAudioSessionPortLineOut => + objc.NSString.fromPointer( + _AVAudioSessionPortLineOut, + retain: true, + release: true, ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); - } -} -/// WARNING: AVAudioPlayerDelegate is a stub. To generate bindings for this class, include -/// AVAudioPlayerDelegate in your config's objc-protocols list. -/// -/// AVAudioPlayerDelegate -extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [AVAudioPlayerDelegate] that points to the same underlying object as [other]. - AVAudioPlayerDelegate.as(objc.ObjCObject other) : object$ = other; +@ffi.Native(symbol: 'AVAudioSessionPortPCI') +external final AVAudioSessionPort _AVAudioSessionPortPCI; - /// Constructs a [AVAudioPlayerDelegate] that wraps the given raw object pointer. - AVAudioPlayerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} +DartAVAudioSessionPort get AVAudioSessionPortPCI => objc.NSString.fromPointer( + _AVAudioSessionPortPCI, + retain: true, + release: true, +); -/// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include -/// CASpatialAudioExperience in your config's objc-interfaces list. -/// -/// CASpatialAudioExperience -extension type CASpatialAudioExperience._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [CASpatialAudioExperience] that points to the same underlying object as [other]. - CASpatialAudioExperience.as(objc.ObjCObject other) : object$ = other {} +@ffi.Native(symbol: 'AVAudioSessionPortThunderbolt') +external final AVAudioSessionPort _AVAudioSessionPortThunderbolt; - /// Constructs a [CASpatialAudioExperience] that wraps the given raw object pointer. - CASpatialAudioExperience.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} +DartAVAudioSessionPort get AVAudioSessionPortThunderbolt => + objc.NSString.fromPointer( + _AVAudioSessionPortThunderbolt, + retain: true, + release: true, + ); + +@ffi.Native(symbol: 'AVAudioSessionPortUSBAudio') +external final AVAudioSessionPort _AVAudioSessionPortUSBAudio; + +DartAVAudioSessionPort get AVAudioSessionPortUSBAudio => + objc.NSString.fromPointer( + _AVAudioSessionPortUSBAudio, + retain: true, + release: true, + ); + +@ffi.Native(symbol: 'AVAudioSessionPortVirtual') +external final AVAudioSessionPort _AVAudioSessionPortVirtual; + +DartAVAudioSessionPort get AVAudioSessionPortVirtual => + objc.NSString.fromPointer( + _AVAudioSessionPortVirtual, + retain: true, + release: true, + ); + +@ffi.Native( + symbol: 'AVAudioSessionRenderingCapabilitiesChangeNotification', +) +external final NSNotificationName +_AVAudioSessionRenderingCapabilitiesChangeNotification; + +DartNSNotificationName +get AVAudioSessionRenderingCapabilitiesChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionRenderingCapabilitiesChangeNotification, + retain: true, + release: true, + ); + +@ffi.Native( + symbol: 'AVAudioSessionRenderingModeChangeNotification', +) +external final NSNotificationName +_AVAudioSessionRenderingModeChangeNotification; + +DartNSNotificationName get AVAudioSessionRenderingModeChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionRenderingModeChangeNotification, + retain: true, + release: true, + ); @ffi.Native>( - symbol: 'OBJC_CLASS_\$_AVAudioPlayer', + symbol: 'AVAudioSessionRenderingModeNewRenderingModeKey', ) -external ffi.Pointer _class_AVAudioPlayer_raw; -final _class_AVAudioPlayer = objc.getClass( - "AVAudioPlayer", - () => ffi.Native.addressOf>( - _class_AVAudioPlayer_raw, - ).cast(), -); -final _objc_msgSend_151sglz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18chyc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1p4uk9e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - double, - ) - >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_4sp4xj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_65s5yw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_65s5ywFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_91o635 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_v5hmet = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_xw2lbc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_alloc = objc.registerName("alloc"); -late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); -late final _sel_averagePowerForChannel_ = objc.registerName( - "averagePowerForChannel:", +external final ffi.Pointer +_AVAudioSessionRenderingModeNewRenderingModeKey; + +objc.NSString get AVAudioSessionRenderingModeNewRenderingModeKey => + objc.NSString.fromPointer( + _AVAudioSessionRenderingModeNewRenderingModeKey, + retain: true, + release: true, + ); + +@ffi.Native(symbol: 'AVAudioSessionRouteChangeNotification') +external final NSNotificationName _AVAudioSessionRouteChangeNotification; + +DartNSNotificationName get AVAudioSessionRouteChangeNotification => + objc.NSString.fromPointer( + _AVAudioSessionRouteChangeNotification, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVAudioSessionRouteChangePreviousRouteKey', +) +external final ffi.Pointer +_AVAudioSessionRouteChangePreviousRouteKey; + +objc.NSString get AVAudioSessionRouteChangePreviousRouteKey => + objc.NSString.fromPointer( + _AVAudioSessionRouteChangePreviousRouteKey, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVAudioSessionRouteChangeReasonKey', +) +external final ffi.Pointer +_AVAudioSessionRouteChangeReasonKey; + +objc.NSString get AVAudioSessionRouteChangeReasonKey => + objc.NSString.fromPointer( + _AVAudioSessionRouteChangeReasonKey, + retain: true, + release: true, + ); + +@ffi.Native( + symbol: 'AVAudioSessionSilenceSecondaryAudioHintNotification', +) +external final NSNotificationName +_AVAudioSessionSilenceSecondaryAudioHintNotification; + +DartNSNotificationName +get AVAudioSessionSilenceSecondaryAudioHintNotification => + objc.NSString.fromPointer( + _AVAudioSessionSilenceSecondaryAudioHintNotification, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVAudioSessionSilenceSecondaryAudioHintTypeKey', +) +external final ffi.Pointer +_AVAudioSessionSilenceSecondaryAudioHintTypeKey; + +objc.NSString get AVAudioSessionSilenceSecondaryAudioHintTypeKey => + objc.NSString.fromPointer( + _AVAudioSessionSilenceSecondaryAudioHintTypeKey, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVAudioSessionSpatialAudioEnabledKey', +) +external final ffi.Pointer +_AVAudioSessionSpatialAudioEnabledKey; + +objc.NSString get AVAudioSessionSpatialAudioEnabledKey => + objc.NSString.fromPointer( + _AVAudioSessionSpatialAudioEnabledKey, + retain: true, + release: true, + ); + +@ffi.Native( + symbol: 'AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification', +) +external final NSNotificationName +_AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification; + +DartNSNotificationName +get AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification => + objc.NSString.fromPointer( + _AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification, + retain: true, + release: true, + ); + +@ffi.Native( + symbol: 'AVAudioSessionUserIntentToUnmuteOutputNotification', +) +external final NSNotificationName +_AVAudioSessionUserIntentToUnmuteOutputNotification; + +DartNSNotificationName get AVAudioSessionUserIntentToUnmuteOutputNotification => + objc.NSString.fromPointer( + _AVAudioSessionUserIntentToUnmuteOutputNotification, + retain: true, + release: true, + ); + +@ffi.Native>(symbol: 'AVChannelLayoutKey') +external final ffi.Pointer _AVChannelLayoutKey; + +objc.NSString get AVChannelLayoutKey => + objc.NSString.fromPointer(_AVChannelLayoutKey, retain: true, release: true); + +@ffi.Native>( + symbol: 'AVEncoderASPFrequencyKey', +) +external final ffi.Pointer _AVEncoderASPFrequencyKey; + +objc.NSString get AVEncoderASPFrequencyKey => objc.NSString.fromPointer( + _AVEncoderASPFrequencyKey, + retain: true, + release: true, ); -late final _sel_channelAssignments = objc.registerName("channelAssignments"); -late final _sel_currentDevice = objc.registerName("currentDevice"); -late final _sel_currentTime = objc.registerName("currentTime"); -late final _sel_data = objc.registerName("data"); -late final _sel_delegate = objc.registerName("delegate"); -late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); -late final _sel_duration = objc.registerName("duration"); -late final _sel_enableRate = objc.registerName("enableRate"); -late final _sel_format = objc.registerName("format"); -late final _sel_init = objc.registerName("init"); -late final _sel_initWithContentsOfURL_error_ = objc.registerName( - "initWithContentsOfURL:error:", + +@ffi.Native>( + symbol: 'AVEncoderAudioQualityForVBRKey', +) +external final ffi.Pointer _AVEncoderAudioQualityForVBRKey; + +objc.NSString get AVEncoderAudioQualityForVBRKey => objc.NSString.fromPointer( + _AVEncoderAudioQualityForVBRKey, + retain: true, + release: true, ); -late final _sel_initWithContentsOfURL_fileTypeHint_error_ = objc.registerName( - "initWithContentsOfURL:fileTypeHint:error:", + +@ffi.Native>( + symbol: 'AVEncoderAudioQualityKey', +) +external final ffi.Pointer _AVEncoderAudioQualityKey; + +objc.NSString get AVEncoderAudioQualityKey => objc.NSString.fromPointer( + _AVEncoderAudioQualityKey, + retain: true, + release: true, ); -late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); -late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( - "initWithData:fileTypeHint:error:", + +@ffi.Native>( + symbol: 'AVEncoderBitDepthHintKey', +) +external final ffi.Pointer _AVEncoderBitDepthHintKey; + +objc.NSString get AVEncoderBitDepthHintKey => objc.NSString.fromPointer( + _AVEncoderBitDepthHintKey, + retain: true, + release: true, ); -late final _sel_intendedSpatialExperience = objc.registerName( - "intendedSpatialExperience", + +@ffi.Native>(symbol: 'AVEncoderBitRateKey') +external final ffi.Pointer _AVEncoderBitRateKey; + +objc.NSString get AVEncoderBitRateKey => objc.NSString.fromPointer( + _AVEncoderBitRateKey, + retain: true, + release: true, ); -late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); -late final _sel_isPlaying = objc.registerName("isPlaying"); -late final _sel_new = objc.registerName("new"); -late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); -late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); -late final _sel_pan = objc.registerName("pan"); -late final _sel_pause = objc.registerName("pause"); -late final _sel_peakPowerForChannel_ = objc.registerName( - "peakPowerForChannel:", + +@ffi.Native>( + symbol: 'AVEncoderBitRatePerChannelKey', +) +external final ffi.Pointer _AVEncoderBitRatePerChannelKey; + +objc.NSString get AVEncoderBitRatePerChannelKey => objc.NSString.fromPointer( + _AVEncoderBitRatePerChannelKey, + retain: true, + release: true, ); -late final _sel_play = objc.registerName("play"); -late final _sel_playAtTime_ = objc.registerName("playAtTime:"); -late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); -late final _sel_rate = objc.registerName("rate"); -late final _sel_setChannelAssignments_ = objc.registerName( - "setChannelAssignments:", + +@ffi.Native>( + symbol: 'AVEncoderBitRateStrategyKey', +) +external final ffi.Pointer _AVEncoderBitRateStrategyKey; + +objc.NSString get AVEncoderBitRateStrategyKey => objc.NSString.fromPointer( + _AVEncoderBitRateStrategyKey, + retain: true, + release: true, ); -late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); -late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); -late final _sel_setDelegate_ = objc.registerName("setDelegate:"); -late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); -late final _sel_setIntendedSpatialExperience_ = objc.registerName( - "setIntendedSpatialExperience:", + +@ffi.Native>( + symbol: 'AVEncoderContentSourceKey', +) +external final ffi.Pointer _AVEncoderContentSourceKey; + +objc.NSString get AVEncoderContentSourceKey => objc.NSString.fromPointer( + _AVEncoderContentSourceKey, + retain: true, + release: true, ); -late final _sel_setMeteringEnabled_ = objc.registerName("setMeteringEnabled:"); -late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); -late final _sel_setPan_ = objc.registerName("setPan:"); -late final _sel_setRate_ = objc.registerName("setRate:"); -late final _sel_setVolume_ = objc.registerName("setVolume:"); -late final _sel_setVolume_fadeDuration_ = objc.registerName( - "setVolume:fadeDuration:", + +@ffi.Native>( + symbol: 'AVEncoderDynamicRangeControlConfigurationKey', +) +external final ffi.Pointer +_AVEncoderDynamicRangeControlConfigurationKey; + +objc.NSString get AVEncoderDynamicRangeControlConfigurationKey => + objc.NSString.fromPointer( + _AVEncoderDynamicRangeControlConfigurationKey, + retain: true, + release: true, + ); + +@ffi.Native>(symbol: 'AVFormatIDKey') +external final ffi.Pointer _AVFormatIDKey; + +objc.NSString get AVFormatIDKey => + objc.NSString.fromPointer(_AVFormatIDKey, retain: true, release: true); + +@ffi.Native>(symbol: 'AVLinearPCMBitDepthKey') +external final ffi.Pointer _AVLinearPCMBitDepthKey; + +objc.NSString get AVLinearPCMBitDepthKey => objc.NSString.fromPointer( + _AVLinearPCMBitDepthKey, + retain: true, + release: true, ); -late final _sel_settings = objc.registerName("settings"); -late final _sel_stop = objc.registerName("stop"); -late final _sel_updateMeters = objc.registerName("updateMeters"); -late final _sel_url = objc.registerName("url"); -late final _sel_volume = objc.registerName("volume"); -typedef instancetype = ffi.Pointer; -typedef Dartinstancetype = objc.ObjCObject; + +@ffi.Native>( + symbol: 'AVLinearPCMIsBigEndianKey', +) +external final ffi.Pointer _AVLinearPCMIsBigEndianKey; + +objc.NSString get AVLinearPCMIsBigEndianKey => objc.NSString.fromPointer( + _AVLinearPCMIsBigEndianKey, + retain: true, + release: true, +); + +@ffi.Native>(symbol: 'AVLinearPCMIsFloatKey') +external final ffi.Pointer _AVLinearPCMIsFloatKey; + +objc.NSString get AVLinearPCMIsFloatKey => objc.NSString.fromPointer( + _AVLinearPCMIsFloatKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'AVLinearPCMIsNonInterleaved', +) +external final ffi.Pointer _AVLinearPCMIsNonInterleaved; + +objc.NSString get AVLinearPCMIsNonInterleaved => objc.NSString.fromPointer( + _AVLinearPCMIsNonInterleaved, + retain: true, + release: true, +); + +@ffi.Native>(symbol: 'AVNumberOfChannelsKey') +external final ffi.Pointer _AVNumberOfChannelsKey; + +objc.NSString get AVNumberOfChannelsKey => objc.NSString.fromPointer( + _AVNumberOfChannelsKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'AVSampleRateConverterAlgorithmKey', +) +external final ffi.Pointer +_AVSampleRateConverterAlgorithmKey; + +objc.NSString get AVSampleRateConverterAlgorithmKey => + objc.NSString.fromPointer( + _AVSampleRateConverterAlgorithmKey, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVSampleRateConverterAlgorithm_Mastering', +) +external final ffi.Pointer +_AVSampleRateConverterAlgorithm_Mastering; + +objc.NSString get AVSampleRateConverterAlgorithm_Mastering => + objc.NSString.fromPointer( + _AVSampleRateConverterAlgorithm_Mastering, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVSampleRateConverterAlgorithm_MinimumPhase', +) +external final ffi.Pointer +_AVSampleRateConverterAlgorithm_MinimumPhase; + +objc.NSString get AVSampleRateConverterAlgorithm_MinimumPhase => + objc.NSString.fromPointer( + _AVSampleRateConverterAlgorithm_MinimumPhase, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVSampleRateConverterAlgorithm_Normal', +) +external final ffi.Pointer +_AVSampleRateConverterAlgorithm_Normal; + +objc.NSString get AVSampleRateConverterAlgorithm_Normal => + objc.NSString.fromPointer( + _AVSampleRateConverterAlgorithm_Normal, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'AVSampleRateConverterAudioQualityKey', +) +external final ffi.Pointer +_AVSampleRateConverterAudioQualityKey; + +objc.NSString get AVSampleRateConverterAudioQualityKey => + objc.NSString.fromPointer( + _AVSampleRateConverterAudioQualityKey, + retain: true, + release: true, + ); + +@ffi.Native>(symbol: 'AVSampleRateKey') +external final ffi.Pointer _AVSampleRateKey; + +objc.NSString get AVSampleRateKey => + objc.NSString.fromPointer(_AVSampleRateKey, retain: true, release: true); + +@Deprecated('Deprecated') +@ffi.Native() +external int AXAPIEnabled(); + +@ffi.Native() +external int AXIsProcessTrusted(); + +@ffi.Native() +external int AXIsProcessTrustedWithOptions(CFDictionaryRef options); + +@Deprecated('Deprecated') +@ffi.Native(symbol: 'AXMakeProcessTrusted') +external int _AXMakeProcessTrusted(CFStringRef executablePath); + +AXError AXMakeProcessTrusted(CFStringRef executablePath) { + return AXError.fromValue(_AXMakeProcessTrusted(executablePath)); +} + +@ffi.Native< + SInt32 Function( + AXObserverRef, + AXUIElementRef, + CFStringRef, + ffi.Pointer, + ) +>(symbol: 'AXObserverAddNotification') +external int _AXObserverAddNotification( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, + ffi.Pointer refcon, +); + +AXError AXObserverAddNotification( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, + ffi.Pointer refcon, +) { + return AXError.fromValue( + _AXObserverAddNotification(observer, element, notification, refcon), + ); +} + +@ffi.Native< + SInt32 Function(pid_t, AXObserverCallback, ffi.Pointer) +>(symbol: 'AXObserverCreate') +external int _AXObserverCreate( + int application, + AXObserverCallback callback, + ffi.Pointer outObserver, +); + +AXError AXObserverCreate( + Dart__int32_t application, + AXObserverCallback callback, + ffi.Pointer outObserver, +) { + return AXError.fromValue( + _AXObserverCreate(application, callback, outObserver), + ); +} + +@ffi.Native< + SInt32 Function(pid_t, AXObserverCallbackWithInfo, ffi.Pointer) +>(symbol: 'AXObserverCreateWithInfoCallback') +external int _AXObserverCreateWithInfoCallback( + int application, + AXObserverCallbackWithInfo callback, + ffi.Pointer outObserver, +); + +AXError AXObserverCreateWithInfoCallback( + Dart__int32_t application, + AXObserverCallbackWithInfo callback, + ffi.Pointer outObserver, +) { + return AXError.fromValue( + _AXObserverCreateWithInfoCallback(application, callback, outObserver), + ); +} + +@ffi.Native() +external CFRunLoopSourceRef AXObserverGetRunLoopSource(AXObserverRef observer); + +@ffi.Native() +external int AXObserverGetTypeID(); + +@ffi.Native( + symbol: 'AXObserverRemoveNotification', +) +external int _AXObserverRemoveNotification( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, +); + +AXError AXObserverRemoveNotification( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, +) { + return AXError.fromValue( + _AXObserverRemoveNotification(observer, element, notification), + ); +} + +@ffi.Native< + AXTextMarkerRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) +>() +external AXTextMarkerRef AXTextMarkerCreate( + CFAllocatorRef allocator, + ffi.Pointer bytes, + int length, +); + +@ffi.Native Function(AXTextMarkerRef)>() +external ffi.Pointer AXTextMarkerGetBytePtr( + AXTextMarkerRef theTextMarker, +); + +@ffi.Native() +external int AXTextMarkerGetLength(AXTextMarkerRef marker); + +@ffi.Native() +external int AXTextMarkerGetTypeID(); + +@ffi.Native() +external AXTextMarkerRef AXTextMarkerRangeCopyEndMarker( + AXTextMarkerRangeRef textMarkerRange, +); + +@ffi.Native() +external AXTextMarkerRef AXTextMarkerRangeCopyStartMarker( + AXTextMarkerRangeRef textMarkerRange, +); + +@ffi.Native< + AXTextMarkerRangeRef Function( + CFAllocatorRef, + AXTextMarkerRef, + AXTextMarkerRef, + ) +>() +external AXTextMarkerRangeRef AXTextMarkerRangeCreate( + CFAllocatorRef allocator, + AXTextMarkerRef startMarker, + AXTextMarkerRef endMarker, +); + +@ffi.Native< + AXTextMarkerRangeRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + ffi.Pointer, + CFIndex, + ) +>() +external AXTextMarkerRangeRef AXTextMarkerRangeCreateWithBytes( + CFAllocatorRef allocator, + ffi.Pointer startMarkerBytes, + int startMarkerLength, + ffi.Pointer endMarkerBytes, + int endMarkerLength, +); + +@ffi.Native() +external int AXTextMarkerRangeGetTypeID(); + +@ffi.Native< + SInt32 Function(AXUIElementRef, CFStringRef, ffi.Pointer) +>(symbol: 'AXUIElementCopyActionDescription') +external int _AXUIElementCopyActionDescription( + AXUIElementRef element, + CFStringRef action, + ffi.Pointer description, +); + +AXError AXUIElementCopyActionDescription( + AXUIElementRef element, + CFStringRef action, + ffi.Pointer description, +) { + return AXError.fromValue( + _AXUIElementCopyActionDescription(element, action, description), + ); +} + +@ffi.Native)>( + symbol: 'AXUIElementCopyActionNames', +) +external int _AXUIElementCopyActionNames( + AXUIElementRef element, + ffi.Pointer names, +); + +AXError AXUIElementCopyActionNames( + AXUIElementRef element, + ffi.Pointer names, +) { + return AXError.fromValue(_AXUIElementCopyActionNames(element, names)); +} + +@ffi.Native)>( + symbol: 'AXUIElementCopyAttributeNames', +) +external int _AXUIElementCopyAttributeNames( + AXUIElementRef element, + ffi.Pointer names, +); + +AXError AXUIElementCopyAttributeNames( + AXUIElementRef element, + ffi.Pointer names, +) { + return AXError.fromValue(_AXUIElementCopyAttributeNames(element, names)); +} + +@ffi.Native< + SInt32 Function(AXUIElementRef, CFStringRef, ffi.Pointer) +>(symbol: 'AXUIElementCopyAttributeValue') +external int _AXUIElementCopyAttributeValue( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer value, +); + +AXError AXUIElementCopyAttributeValue( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer value, +) { + return AXError.fromValue( + _AXUIElementCopyAttributeValue(element, attribute, value), + ); +} + +@ffi.Native< + SInt32 Function( + AXUIElementRef, + CFStringRef, + CFIndex, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'AXUIElementCopyAttributeValues') +external int _AXUIElementCopyAttributeValues( + AXUIElementRef element, + CFStringRef attribute, + int index$1, + int maxValues, + ffi.Pointer values, +); + +AXError AXUIElementCopyAttributeValues( + AXUIElementRef element, + CFStringRef attribute, + DartCFIndex index$1, + DartCFIndex maxValues, + ffi.Pointer values, +) { + return AXError.fromValue( + _AXUIElementCopyAttributeValues( + element, + attribute, + index$1, + maxValues, + values, + ), + ); +} + +@ffi.Native< + SInt32 Function( + AXUIElementRef, + ffi.Float, + ffi.Float, + ffi.Pointer, + ) +>(symbol: 'AXUIElementCopyElementAtPosition') +external int _AXUIElementCopyElementAtPosition( + AXUIElementRef application, + double x, + double y, + ffi.Pointer element, +); + +AXError AXUIElementCopyElementAtPosition( + AXUIElementRef application, + double x, + double y, + ffi.Pointer element, +) { + return AXError.fromValue( + _AXUIElementCopyElementAtPosition(application, x, y, element), + ); +} + +@ffi.Native< + SInt32 Function(AXUIElementRef, CFArrayRef, UInt32, ffi.Pointer) +>(symbol: 'AXUIElementCopyMultipleAttributeValues') +external int _AXUIElementCopyMultipleAttributeValues( + AXUIElementRef element, + CFArrayRef attributes, + int options, + ffi.Pointer values, +); + +AXError AXUIElementCopyMultipleAttributeValues( + AXUIElementRef element, + CFArrayRef attributes, + DartUInt32 options, + ffi.Pointer values, +) { + return AXError.fromValue( + _AXUIElementCopyMultipleAttributeValues( + element, + attributes, + options, + values, + ), + ); +} + +@ffi.Native)>( + symbol: 'AXUIElementCopyParameterizedAttributeNames', +) +external int _AXUIElementCopyParameterizedAttributeNames( + AXUIElementRef element, + ffi.Pointer names, +); + +AXError AXUIElementCopyParameterizedAttributeNames( + AXUIElementRef element, + ffi.Pointer names, +) { + return AXError.fromValue( + _AXUIElementCopyParameterizedAttributeNames(element, names), + ); +} + +@ffi.Native< + SInt32 Function( + AXUIElementRef, + CFStringRef, + CFTypeRef, + ffi.Pointer, + ) +>(symbol: 'AXUIElementCopyParameterizedAttributeValue') +external int _AXUIElementCopyParameterizedAttributeValue( + AXUIElementRef element, + CFStringRef parameterizedAttribute, + CFTypeRef parameter, + ffi.Pointer result, +); + +AXError AXUIElementCopyParameterizedAttributeValue( + AXUIElementRef element, + CFStringRef parameterizedAttribute, + CFTypeRef parameter, + ffi.Pointer result, +) { + return AXError.fromValue( + _AXUIElementCopyParameterizedAttributeValue( + element, + parameterizedAttribute, + parameter, + result, + ), + ); +} + +@ffi.Native() +external AXUIElementRef AXUIElementCreateApplication(int pid); + +@ffi.Native() +external AXUIElementRef AXUIElementCreateSystemWide(); + +@ffi.Native)>( + symbol: 'AXUIElementGetAttributeValueCount', +) +external int _AXUIElementGetAttributeValueCount( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer count, +); + +AXError AXUIElementGetAttributeValueCount( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer count, +) { + return AXError.fromValue( + _AXUIElementGetAttributeValueCount(element, attribute, count), + ); +} + +@ffi.Native)>( + symbol: 'AXUIElementGetPid', +) +external int _AXUIElementGetPid(AXUIElementRef element, ffi.Pointer pid); + +AXError AXUIElementGetPid(AXUIElementRef element, ffi.Pointer pid) { + return AXError.fromValue(_AXUIElementGetPid(element, pid)); +} + +@ffi.Native() +external int AXUIElementGetTypeID(); + +@ffi.Native)>( + symbol: 'AXUIElementIsAttributeSettable', +) +external int _AXUIElementIsAttributeSettable( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer settable, +); + +AXError AXUIElementIsAttributeSettable( + AXUIElementRef element, + CFStringRef attribute, + ffi.Pointer settable, +) { + return AXError.fromValue( + _AXUIElementIsAttributeSettable(element, attribute, settable), + ); +} + +@ffi.Native( + symbol: 'AXUIElementPerformAction', +) +external int _AXUIElementPerformAction( + AXUIElementRef element, + CFStringRef action, +); + +AXError AXUIElementPerformAction(AXUIElementRef element, CFStringRef action) { + return AXError.fromValue(_AXUIElementPerformAction(element, action)); +} + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'AXUIElementPostKeyboardEvent', +) +external int _AXUIElementPostKeyboardEvent( + AXUIElementRef application, + int keyChar, + int virtualKey, + int keyDown, +); + +AXError AXUIElementPostKeyboardEvent( + AXUIElementRef application, + DartCGCharCode keyChar, + DartCGKeyCode virtualKey, + DartBoolean keyDown, +) { + return AXError.fromValue( + _AXUIElementPostKeyboardEvent(application, keyChar, virtualKey, keyDown), + ); +} + +@ffi.Native( + symbol: 'AXUIElementSetAttributeValue', +) +external int _AXUIElementSetAttributeValue( + AXUIElementRef element, + CFStringRef attribute, + CFTypeRef value, +); + +AXError AXUIElementSetAttributeValue( + AXUIElementRef element, + CFStringRef attribute, + CFTypeRef value, +) { + return AXError.fromValue( + _AXUIElementSetAttributeValue(element, attribute, value), + ); +} + +@ffi.Native( + symbol: 'AXUIElementSetMessagingTimeout', +) +external int _AXUIElementSetMessagingTimeout( + AXUIElementRef element, + double timeoutInSeconds, +); + +AXError AXUIElementSetMessagingTimeout( + AXUIElementRef element, + double timeoutInSeconds, +) { + return AXError.fromValue( + _AXUIElementSetMessagingTimeout(element, timeoutInSeconds), + ); +} + +@ffi.Native)>( + symbol: 'AXValueCreate', +) +external AXValueRef _AXValueCreate(int theType, ffi.Pointer valuePtr); + +AXValueRef AXValueCreate(AXValueType theType, ffi.Pointer valuePtr) { + return _AXValueCreate(theType.value, valuePtr); +} + +@ffi.Native(symbol: 'AXValueGetType') +external int _AXValueGetType(AXValueRef value); + +AXValueType AXValueGetType(AXValueRef value) { + return AXValueType.fromValue(_AXValueGetType(value)); +} + +@ffi.Native() +external int AXValueGetTypeID(); + +@ffi.Native)>( + symbol: 'AXValueGetValue', +) +external int _AXValueGetValue( + AXValueRef value, + int theType, + ffi.Pointer valuePtr, +); + +DartBoolean AXValueGetValue( + AXValueRef value, + AXValueType theType, + ffi.Pointer valuePtr, +) { + return _AXValueGetValue(value, theType.value, valuePtr); +} + +@Deprecated('Deprecated') +@ffi.Native() +external int AbsoluteDeltaToDuration( + AbsoluteTime leftAbsoluteTime, + AbsoluteTime rightAbsoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Nanoseconds AbsoluteDeltaToNanoseconds( + AbsoluteTime leftAbsoluteTime, + AbsoluteTime rightAbsoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int AbsoluteToDuration(AbsoluteTime absoluteTime); + +@Deprecated('Deprecated') +@ffi.Native() +external Nanoseconds AbsoluteToNanoseconds(AbsoluteTime absoluteTime); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int AcquireIconRef(IconRef theIconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime AddAbsoluteToAbsolute( + AbsoluteTime absoluteTime1, + AbsoluteTime absoluteTime2, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int AddAtomic(int amount, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int AddAtomic16(int amount, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int AddAtomic8(int amount, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionTag, + SInt32, + SInt32, + ffi.Pointer, + ) +>() +external int AddCollectionItem( + Collection c, + int tag, + int id, + int itemSize, + ffi.Pointer itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int AddCollectionItemHdl( + Collection aCollection, + int tag, + int id, + Handle itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime AddDurationToAbsolute( + int duration, + AbsoluteTime absoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FolderType, + FolderDescFlags, + FolderClass, + FolderLocation, + OSType, + OSType, + ConstStrFileNameParam, + Boolean, + ) +>() +external int AddFolderDescriptor( + int foldType, + int flags, + int foldClass, + int foldLocation, + int badgeSignature, + int badgeType, + ConstStrFileNameParam name, + int replaceFlag, +); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime AddNanosecondsToAbsolute( + Nanoseconds nanoseconds, + AbsoluteTime absoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void AddResource( + Handle theData, + int theType, + int theID, + ConstStr255Param name, +); + +@ffi.Native< + OSStatus Function( + AuthorizationRef, + AuthorizationString, + ffi.Pointer>, + ) +>() +external int AuthorizationCopyInfo( + AuthorizationRef authorization, + AuthorizationString tag, + ffi.Pointer> info, +); + +@Deprecated('Deprecated') +@ffi.Native, UInt32)>() +external int AuthorizationCopyPrivilegedReference( + ffi.Pointer authorization, + int flags, +); + +@ffi.Native< + OSStatus Function( + AuthorizationRef, + ffi.Pointer, + ffi.Pointer, + UInt32, + ffi.Pointer>, + ) +>() +external int AuthorizationCopyRights( + AuthorizationRef authorization, + ffi.Pointer rights, + ffi.Pointer environment, + int flags, + ffi.Pointer> authorizedRights, +); + +@ffi.Native< + ffi.Void Function( + AuthorizationRef, + ffi.Pointer, + ffi.Pointer, + UInt32, + AuthorizationAsyncCallback, + ) +>(symbol: 'AuthorizationCopyRightsAsync') +external void _AuthorizationCopyRightsAsync( + AuthorizationRef authorization, + ffi.Pointer rights, + ffi.Pointer environment, + int flags, + AuthorizationAsyncCallback callbackBlock, +); + +void AuthorizationCopyRightsAsync( + AuthorizationRef authorization, + ffi.Pointer rights, + ffi.Pointer environment, + DartUInt32 flags, + DartAuthorizationAsyncCallback callbackBlock, +) { + final _$$ref = callbackBlock.ref; + return _AuthorizationCopyRightsAsync( + authorization, + rights, + environment, + flags, + _$$ref.pointer, + ); +} + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + UInt32, + ffi.Pointer, + ) +>() +external int AuthorizationCreate( + ffi.Pointer rights, + ffi.Pointer environment, + int flags, + ffi.Pointer authorization, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int AuthorizationCreateFromExternalForm( + ffi.Pointer extForm, + ffi.Pointer authorization, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + AuthorizationRef, + ffi.Pointer, + UInt32, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int AuthorizationExecuteWithPrivileges( + AuthorizationRef authorization, + ffi.Pointer pathToTool, + int options, + ffi.Pointer> arguments, + ffi.Pointer> communicationsPipe, +); + +@ffi.Native() +external int AuthorizationFree(AuthorizationRef authorization, int flags); + +@ffi.Native)>() +external int AuthorizationFreeItemSet(ffi.Pointer set); + +@ffi.Native< + OSStatus Function(AuthorizationRef, ffi.Pointer) +>() +external int AuthorizationMakeExternalForm( + AuthorizationRef authorization, + ffi.Pointer extForm, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int AuthorizationRightGet( + ffi.Pointer rightName, + ffi.Pointer rightDefinition, +); + +@ffi.Native)>() +external int AuthorizationRightRemove( + AuthorizationRef authRef, + ffi.Pointer rightName, +); + +@ffi.Native< + OSStatus Function( + AuthorizationRef, + ffi.Pointer, + CFTypeRef, + CFStringRef, + CFBundleRef, + CFStringRef, + ) +>() +external int AuthorizationRightSet( + AuthorizationRef authRef, + ffi.Pointer rightName, + CFTypeRef rightDefinition, + CFStringRef descriptionKey, + CFBundleRef bundle, + CFStringRef localeTableName, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int BatteryCount(); + +@Deprecated('Deprecated') +@ffi.Native() +external int BitAnd(int value1, int value2); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitAndAtomic(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitAndAtomic16(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitAndAtomic8(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Long)>() +external void BitClr(ffi.Pointer bytePtr, int bitNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int BitNot(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external int BitOr(int value1, int value2); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitOrAtomic(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitOrAtomic16(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitOrAtomic8(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Long)>() +external void BitSet(ffi.Pointer bytePtr, int bitNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int BitShift(int value, int count); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Long)>() +external int BitTst(ffi.Pointer bytePtr, int bitNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int BitXor(int value1, int value2); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitXorAtomic(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitXorAtomic16(int mask, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int BitXorAtomic8(int mask, ffi.Pointer address); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native< + CFAbsoluteTime Function(CFAbsoluteTime, CFTimeZoneRef, CFGregorianUnits) +>() +external double CFAbsoluteTimeAddGregorianUnits( + double at, + CFTimeZoneRef tz, + CFGregorianUnits units, +); + +@ffi.Native() +external double CFAbsoluteTimeGetCurrent(); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external int CFAbsoluteTimeGetDayOfWeek(double at, CFTimeZoneRef tz); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external int CFAbsoluteTimeGetDayOfYear(double at, CFTimeZoneRef tz); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native< + CFGregorianUnits Function( + CFAbsoluteTime, + CFAbsoluteTime, + CFTimeZoneRef, + CFOptionFlags, + ) +>() +external CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits( + double at1, + double at2, + CFTimeZoneRef tz, + int unitFlags, +); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external CFGregorianDate CFAbsoluteTimeGetGregorianDate( + double at, + CFTimeZoneRef tz, +); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external int CFAbsoluteTimeGetWeekOfYear(double at, CFTimeZoneRef tz); + +@ffi.Native< + ffi.Pointer Function(CFAllocatorRef, CFIndex, CFOptionFlags) +>() +external ffi.Pointer CFAllocatorAllocate( + CFAllocatorRef allocator, + int size, + int hint, +); + +@ffi.Native< + ffi.Pointer Function(CFAllocatorRef, CFIndex, CFOptionFlags) +>() +external ffi.Pointer CFAllocatorAllocateBytes( + CFAllocatorRef allocator, + int size, + int hint, +); + +@ffi.Native< + ffi.Pointer Function( + CFAllocatorRef, + CFIndex, + CFAllocatorTypeID, + CFOptionFlags, + ) +>() +external ffi.Pointer CFAllocatorAllocateTyped( + CFAllocatorRef allocator, + int size, + int descriptor, + int hint, +); + +@ffi.Native< + CFAllocatorRef Function(CFAllocatorRef, ffi.Pointer) +>() +external CFAllocatorRef CFAllocatorCreate( + CFAllocatorRef allocator, + ffi.Pointer context, +); + +@ffi.Native< + CFAllocatorRef Function(CFAllocatorRef, ffi.Pointer<_malloc_zone_t>) +>() +external CFAllocatorRef CFAllocatorCreateWithZone( + CFAllocatorRef allocator, + ffi.Pointer<_malloc_zone_t> zone, +); + +@ffi.Native)>() +external void CFAllocatorDeallocate( + CFAllocatorRef allocator, + ffi.Pointer ptr, +); + +@ffi.Native< + ffi.Void Function(CFAllocatorRef, ffi.Pointer) +>() +external void CFAllocatorGetContext( + CFAllocatorRef allocator, + ffi.Pointer context, +); + +@ffi.Native() +external CFAllocatorRef CFAllocatorGetDefault(); + +@ffi.Native() +external int CFAllocatorGetPreferredSizeForSize( + CFAllocatorRef allocator, + int size, + int hint, +); + +@ffi.Native() +external int CFAllocatorGetTypeID(); + +@ffi.Native< + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFOptionFlags, + ) +>() +external ffi.Pointer CFAllocatorReallocate( + CFAllocatorRef allocator, + ffi.Pointer ptr, + int newsize, + int hint, +); + +@ffi.Native< + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFOptionFlags, + ) +>() +external ffi.Pointer CFAllocatorReallocateBytes( + CFAllocatorRef allocator, + ffi.Pointer ptr, + int newsize, + int hint, +); + +@ffi.Native< + ffi.Pointer Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorTypeID, + CFOptionFlags, + ) +>() +external ffi.Pointer CFAllocatorReallocateTyped( + CFAllocatorRef allocator, + ffi.Pointer ptr, + int newsize, + int descriptor, + int hint, +); + +@ffi.Native() +external void CFAllocatorSetDefault(CFAllocatorRef allocator); + +@ffi.Native() +external void CFArrayAppendArray( + CFMutableArrayRef theArray, + CFArrayRef otherArray, + CFRange otherRange, +); + +@ffi.Native)>() +external void CFArrayAppendValue( + CFMutableArrayRef theArray, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFArrayRef, + CFRange, + CFArrayApplierFunction, + ffi.Pointer, + ) +>() +external void CFArrayApplyFunction( + CFArrayRef theArray, + CFRange range, + CFArrayApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native< + CFIndex Function( + CFArrayRef, + CFRange, + ffi.Pointer, + CFComparatorFunction, + ffi.Pointer, + ) +>() +external int CFArrayBSearchValues( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, + CFComparatorFunction comparator, + ffi.Pointer context, +); + +@ffi.Native)>() +external int CFArrayContainsValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, +); + +@ffi.Native< + CFArrayRef Function( + CFAllocatorRef, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ) +>() +external CFArrayRef CFArrayCreate( + CFAllocatorRef allocator, + ffi.Pointer> values, + int numValues, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFArrayRef CFArrayCreateCopy( + CFAllocatorRef allocator, + CFArrayRef theArray, +); + +@ffi.Native< + CFMutableArrayRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ) +>() +external CFMutableArrayRef CFArrayCreateMutable( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFMutableArrayRef CFArrayCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFArrayRef theArray, +); + +@ffi.Native() +external void CFArrayExchangeValuesAtIndices( + CFMutableArrayRef theArray, + int idx1, + int idx2, +); + +@ffi.Native() +external int CFArrayGetCount(CFArrayRef theArray); + +@ffi.Native)>() +external int CFArrayGetCountOfValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, +); + +@ffi.Native)>() +external int CFArrayGetFirstIndexOfValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, +); + +@ffi.Native)>() +external int CFArrayGetLastIndexOfValue( + CFArrayRef theArray, + CFRange range, + ffi.Pointer value, +); + +@ffi.Native() +external int CFArrayGetTypeID(); + +@ffi.Native Function(CFArrayRef, CFIndex)>() +external ffi.Pointer CFArrayGetValueAtIndex( + CFArrayRef theArray, + int idx, +); + +@ffi.Native< + ffi.Void Function(CFArrayRef, CFRange, ffi.Pointer>) +>() +external void CFArrayGetValues( + CFArrayRef theArray, + CFRange range, + ffi.Pointer> values, +); + +@ffi.Native< + ffi.Void Function(CFMutableArrayRef, CFIndex, ffi.Pointer) +>() +external void CFArrayInsertValueAtIndex( + CFMutableArrayRef theArray, + int idx, + ffi.Pointer value, +); + +@ffi.Native() +external void CFArrayRemoveAllValues(CFMutableArrayRef theArray); + +@ffi.Native() +external void CFArrayRemoveValueAtIndex(CFMutableArrayRef theArray, int idx); + +@ffi.Native< + ffi.Void Function( + CFMutableArrayRef, + CFRange, + ffi.Pointer>, + CFIndex, + ) +>() +external void CFArrayReplaceValues( + CFMutableArrayRef theArray, + CFRange range, + ffi.Pointer> newValues, + int newCount, +); + +@ffi.Native< + ffi.Void Function(CFMutableArrayRef, CFIndex, ffi.Pointer) +>() +external void CFArraySetValueAtIndex( + CFMutableArrayRef theArray, + int idx, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFMutableArrayRef, + CFRange, + CFComparatorFunction, + ffi.Pointer, + ) +>() +external void CFArraySortValues( + CFMutableArrayRef theArray, + CFRange range, + CFComparatorFunction comparator, + ffi.Pointer context, +); + +@ffi.Native() +external void CFAttributedStringBeginEditing(CFMutableAttributedStringRef aStr); + +@ffi.Native< + CFAttributedStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) +>() +external CFAttributedStringRef CFAttributedStringCreate( + CFAllocatorRef alloc, + CFStringRef str, + CFDictionaryRef attributes, +); + +@ffi.Native< + CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef) +>() +external CFAttributedStringRef CFAttributedStringCreateCopy( + CFAllocatorRef alloc, + CFAttributedStringRef aStr, +); + +@ffi.Native() +external CFMutableAttributedStringRef CFAttributedStringCreateMutable( + CFAllocatorRef alloc, + int maxLength, +); + +@ffi.Native< + CFMutableAttributedStringRef Function( + CFAllocatorRef, + CFIndex, + CFAttributedStringRef, + ) +>() +external CFMutableAttributedStringRef CFAttributedStringCreateMutableCopy( + CFAllocatorRef alloc, + int maxLength, + CFAttributedStringRef aStr, +); + +@ffi.Native< + CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef, CFRange) +>() +external CFAttributedStringRef CFAttributedStringCreateWithSubstring( + CFAllocatorRef alloc, + CFAttributedStringRef aStr, + CFRange range, +); + +@ffi.Native() +external void CFAttributedStringEndEditing(CFMutableAttributedStringRef aStr); + +@ffi.Native< + CFTypeRef Function( + CFAttributedStringRef, + CFIndex, + CFStringRef, + ffi.Pointer, + ) +>() +external CFTypeRef CFAttributedStringGetAttribute( + CFAttributedStringRef aStr, + int loc, + CFStringRef attrName, + ffi.Pointer effectiveRange, +); + +@ffi.Native< + CFTypeRef Function( + CFAttributedStringRef, + CFIndex, + CFStringRef, + CFRange, + ffi.Pointer, + ) +>() +external CFTypeRef CFAttributedStringGetAttributeAndLongestEffectiveRange( + CFAttributedStringRef aStr, + int loc, + CFStringRef attrName, + CFRange inRange, + ffi.Pointer longestEffectiveRange, +); + +@ffi.Native< + CFDictionaryRef Function(CFAttributedStringRef, CFIndex, ffi.Pointer) +>() +external CFDictionaryRef CFAttributedStringGetAttributes( + CFAttributedStringRef aStr, + int loc, + ffi.Pointer effectiveRange, +); + +@ffi.Native< + CFDictionaryRef Function( + CFAttributedStringRef, + CFIndex, + CFRange, + ffi.Pointer, + ) +>() +external CFDictionaryRef +CFAttributedStringGetAttributesAndLongestEffectiveRange( + CFAttributedStringRef aStr, + int loc, + CFRange inRange, + ffi.Pointer longestEffectiveRange, +); + +@ffi.Native< + ffi.Bool Function( + CFAttributedStringRef, + CFRange, + ffi.Int8, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CFAttributedStringGetBidiLevelsAndResolvedDirections( + CFAttributedStringRef attributedString, + CFRange range, + int baseDirection, + ffi.Pointer bidiLevels, + ffi.Pointer baseDirections, +); + +@ffi.Native() +external int CFAttributedStringGetLength(CFAttributedStringRef aStr); + +@ffi.Native() +external CFMutableStringRef CFAttributedStringGetMutableString( + CFMutableAttributedStringRef aStr, +); + +@ffi.Native< + ffi.Bool Function( + CFAttributedStringRef, + CFRange, + ffi.Int8, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CFAttributedStringGetStatisticalWritingDirections( + CFAttributedStringRef attributedString, + CFRange range, + int baseDirection, + ffi.Pointer bidiLevels, + ffi.Pointer baseDirections, +); + +@ffi.Native() +external CFStringRef CFAttributedStringGetString(CFAttributedStringRef aStr); + +@ffi.Native() +external int CFAttributedStringGetTypeID(); + +@ffi.Native< + ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) +>() +external void CFAttributedStringRemoveAttribute( + CFMutableAttributedStringRef aStr, + CFRange range, + CFStringRef attrName, +); + +@ffi.Native< + ffi.Void Function( + CFMutableAttributedStringRef, + CFRange, + CFAttributedStringRef, + ) +>() +external void CFAttributedStringReplaceAttributedString( + CFMutableAttributedStringRef aStr, + CFRange range, + CFAttributedStringRef replacement, +); + +@ffi.Native< + ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) +>() +external void CFAttributedStringReplaceString( + CFMutableAttributedStringRef aStr, + CFRange range, + CFStringRef replacement, +); + +@ffi.Native< + ffi.Void Function( + CFMutableAttributedStringRef, + CFRange, + CFStringRef, + CFTypeRef, + ) +>() +external void CFAttributedStringSetAttribute( + CFMutableAttributedStringRef aStr, + CFRange range, + CFStringRef attrName, + CFTypeRef value, +); + +@ffi.Native< + ffi.Void Function( + CFMutableAttributedStringRef, + CFRange, + CFDictionaryRef, + Boolean, + ) +>() +external void CFAttributedStringSetAttributes( + CFMutableAttributedStringRef aStr, + CFRange range, + CFDictionaryRef replacement, + int clearOtherAttributes, +); + +@ffi.Native() +external CFTypeRef CFAutorelease(CFTypeRef arg); + +@ffi.Native)>() +external void CFBagAddValue( + CFMutableBagRef theBag, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function(CFBagRef, CFBagApplierFunction, ffi.Pointer) +>() +external void CFBagApplyFunction( + CFBagRef theBag, + CFBagApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native)>() +external int CFBagContainsValue(CFBagRef theBag, ffi.Pointer value); + +@ffi.Native< + CFBagRef Function( + CFAllocatorRef, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ) +>() +external CFBagRef CFBagCreate( + CFAllocatorRef allocator, + ffi.Pointer> values, + int numValues, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFBagRef CFBagCreateCopy(CFAllocatorRef allocator, CFBagRef theBag); + +@ffi.Native< + CFMutableBagRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) +>() +external CFMutableBagRef CFBagCreateMutable( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFMutableBagRef CFBagCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFBagRef theBag, +); + +@ffi.Native() +external int CFBagGetCount(CFBagRef theBag); + +@ffi.Native)>() +external int CFBagGetCountOfValue(CFBagRef theBag, ffi.Pointer value); + +@ffi.Native() +external int CFBagGetTypeID(); + +@ffi.Native Function(CFBagRef, ffi.Pointer)>() +external ffi.Pointer CFBagGetValue( + CFBagRef theBag, + ffi.Pointer value, +); + +@ffi.Native< + Boolean Function( + CFBagRef, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CFBagGetValueIfPresent( + CFBagRef theBag, + ffi.Pointer candidate, + ffi.Pointer> value, +); + +@ffi.Native>)>() +external void CFBagGetValues( + CFBagRef theBag, + ffi.Pointer> values, +); + +@ffi.Native() +external void CFBagRemoveAllValues(CFMutableBagRef theBag); + +@ffi.Native)>() +external void CFBagRemoveValue( + CFMutableBagRef theBag, + ffi.Pointer value, +); + +@ffi.Native)>() +external void CFBagReplaceValue( + CFMutableBagRef theBag, + ffi.Pointer value, +); + +@ffi.Native)>() +external void CFBagSetValue( + CFMutableBagRef theBag, + ffi.Pointer value, +); + +@ffi.Native)>() +external void CFBinaryHeapAddValue( + CFBinaryHeapRef heap, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFBinaryHeapRef, + CFBinaryHeapApplierFunction, + ffi.Pointer, + ) +>() +external void CFBinaryHeapApplyFunction( + CFBinaryHeapRef heap, + CFBinaryHeapApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native)>() +external int CFBinaryHeapContainsValue( + CFBinaryHeapRef heap, + ffi.Pointer value, +); + +@ffi.Native< + CFBinaryHeapRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFBinaryHeapRef CFBinaryHeapCreate( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer callBacks, + ffi.Pointer compareContext, +); + +@ffi.Native< + CFBinaryHeapRef Function(CFAllocatorRef, CFIndex, CFBinaryHeapRef) +>() +external CFBinaryHeapRef CFBinaryHeapCreateCopy( + CFAllocatorRef allocator, + int capacity, + CFBinaryHeapRef heap, +); + +@ffi.Native() +external int CFBinaryHeapGetCount(CFBinaryHeapRef heap); + +@ffi.Native)>() +external int CFBinaryHeapGetCountOfValue( + CFBinaryHeapRef heap, + ffi.Pointer value, +); + +@ffi.Native Function(CFBinaryHeapRef)>() +external ffi.Pointer CFBinaryHeapGetMinimum(CFBinaryHeapRef heap); + +@ffi.Native< + Boolean Function(CFBinaryHeapRef, ffi.Pointer>) +>() +external int CFBinaryHeapGetMinimumIfPresent( + CFBinaryHeapRef heap, + ffi.Pointer> value, +); + +@ffi.Native() +external int CFBinaryHeapGetTypeID(); + +@ffi.Native< + ffi.Void Function(CFBinaryHeapRef, ffi.Pointer>) +>() +external void CFBinaryHeapGetValues( + CFBinaryHeapRef heap, + ffi.Pointer> values, +); + +@ffi.Native() +external void CFBinaryHeapRemoveAllValues(CFBinaryHeapRef heap); + +@ffi.Native() +external void CFBinaryHeapRemoveMinimumValue(CFBinaryHeapRef heap); + +@ffi.Native() +external int CFBitVectorContainsBit( + CFBitVectorRef bv, + CFRange range, + int value, +); + +@ffi.Native< + CFBitVectorRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) +>() +external CFBitVectorRef CFBitVectorCreate( + CFAllocatorRef allocator, + ffi.Pointer bytes, + int numBits, +); + +@ffi.Native() +external CFBitVectorRef CFBitVectorCreateCopy( + CFAllocatorRef allocator, + CFBitVectorRef bv, +); + +@ffi.Native() +external CFMutableBitVectorRef CFBitVectorCreateMutable( + CFAllocatorRef allocator, + int capacity, +); + +@ffi.Native< + CFMutableBitVectorRef Function(CFAllocatorRef, CFIndex, CFBitVectorRef) +>() +external CFMutableBitVectorRef CFBitVectorCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFBitVectorRef bv, +); + +@ffi.Native() +external void CFBitVectorFlipBitAtIndex(CFMutableBitVectorRef bv, int idx); + +@ffi.Native() +external void CFBitVectorFlipBits(CFMutableBitVectorRef bv, CFRange range); + +@ffi.Native() +external int CFBitVectorGetBitAtIndex(CFBitVectorRef bv, int idx); + +@ffi.Native)>() +external void CFBitVectorGetBits( + CFBitVectorRef bv, + CFRange range, + ffi.Pointer bytes, +); + +@ffi.Native() +external int CFBitVectorGetCount(CFBitVectorRef bv); + +@ffi.Native() +external int CFBitVectorGetCountOfBit( + CFBitVectorRef bv, + CFRange range, + int value, +); + +@ffi.Native() +external int CFBitVectorGetFirstIndexOfBit( + CFBitVectorRef bv, + CFRange range, + int value, +); + +@ffi.Native() +external int CFBitVectorGetLastIndexOfBit( + CFBitVectorRef bv, + CFRange range, + int value, +); + +@ffi.Native() +external int CFBitVectorGetTypeID(); + +@ffi.Native() +external void CFBitVectorSetAllBits(CFMutableBitVectorRef bv, int value); + +@ffi.Native() +external void CFBitVectorSetBitAtIndex( + CFMutableBitVectorRef bv, + int idx, + int value, +); + +@ffi.Native() +external void CFBitVectorSetBits( + CFMutableBitVectorRef bv, + CFRange range, + int value, +); + +@ffi.Native() +external void CFBitVectorSetCount(CFMutableBitVectorRef bv, int count); + +@ffi.Native() +external int CFBooleanGetTypeID(); + +@ffi.Native() +external int CFBooleanGetValue(CFBooleanRef boolean); + +@Deprecated( + 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', +) +@ffi.Native() +external void CFBundleCloseBundleResourceMap(CFBundleRef bundle, int refNum); + +@ffi.Native() +external CFURLRef CFBundleCopyAuxiliaryExecutableURL( + CFBundleRef bundle, + CFStringRef executableName, +); + +@ffi.Native() +external CFURLRef CFBundleCopyBuiltInPlugInsURL(CFBundleRef bundle); + +@ffi.Native() +external CFArrayRef CFBundleCopyBundleLocalizations(CFBundleRef bundle); + +@ffi.Native() +external CFURLRef CFBundleCopyBundleURL(CFBundleRef bundle); + +@ffi.Native() +external CFArrayRef CFBundleCopyExecutableArchitectures(CFBundleRef bundle); + +@ffi.Native() +external CFArrayRef CFBundleCopyExecutableArchitecturesForURL(CFURLRef url); + +@ffi.Native() +external CFURLRef CFBundleCopyExecutableURL(CFBundleRef bundle); + +@ffi.Native() +external CFDictionaryRef CFBundleCopyInfoDictionaryForURL(CFURLRef url); + +@ffi.Native() +external CFDictionaryRef CFBundleCopyInfoDictionaryInDirectory( + CFURLRef bundleURL, +); + +@ffi.Native() +external CFArrayRef CFBundleCopyLocalizationsForPreferences( + CFArrayRef locArray, + CFArrayRef prefArray, +); + +@ffi.Native() +external CFArrayRef CFBundleCopyLocalizationsForURL(CFURLRef url); + +@ffi.Native< + CFStringRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFStringRef CFBundleCopyLocalizedString( + CFBundleRef bundle, + CFStringRef key, + CFStringRef value, + CFStringRef tableName, +); + +@ffi.Native< + CFStringRef Function( + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFArrayRef, + ) +>() +external CFStringRef CFBundleCopyLocalizedStringForLocalizations( + CFBundleRef bundle, + CFStringRef key, + CFStringRef value, + CFStringRef tableName, + CFArrayRef localizations, +); + +@ffi.Native() +external CFArrayRef CFBundleCopyPreferredLocalizationsFromArray( + CFArrayRef locArray, +); + +@ffi.Native() +external CFURLRef CFBundleCopyPrivateFrameworksURL(CFBundleRef bundle); + +@ffi.Native< + CFURLRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFURLRef CFBundleCopyResourceURL( + CFBundleRef bundle, + CFStringRef resourceName, + CFStringRef resourceType, + CFStringRef subDirName, +); + +@ffi.Native< + CFURLRef Function( + CFBundleRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) +>() +external CFURLRef CFBundleCopyResourceURLForLocalization( + CFBundleRef bundle, + CFStringRef resourceName, + CFStringRef resourceType, + CFStringRef subDirName, + CFStringRef localizationName, +); + +@ffi.Native< + CFURLRef Function(CFURLRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFURLRef CFBundleCopyResourceURLInDirectory( + CFURLRef bundleURL, + CFStringRef resourceName, + CFStringRef resourceType, + CFStringRef subDirName, +); + +@ffi.Native() +external CFArrayRef CFBundleCopyResourceURLsOfType( + CFBundleRef bundle, + CFStringRef resourceType, + CFStringRef subDirName, +); + +@ffi.Native< + CFArrayRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFArrayRef CFBundleCopyResourceURLsOfTypeForLocalization( + CFBundleRef bundle, + CFStringRef resourceType, + CFStringRef subDirName, + CFStringRef localizationName, +); + +@ffi.Native() +external CFArrayRef CFBundleCopyResourceURLsOfTypeInDirectory( + CFURLRef bundleURL, + CFStringRef resourceType, + CFStringRef subDirName, +); + +@ffi.Native() +external CFURLRef CFBundleCopyResourcesDirectoryURL(CFBundleRef bundle); + +@ffi.Native() +external CFURLRef CFBundleCopySharedFrameworksURL(CFBundleRef bundle); + +@ffi.Native() +external CFURLRef CFBundleCopySharedSupportURL(CFBundleRef bundle); + +@ffi.Native() +external CFURLRef CFBundleCopySupportFilesDirectoryURL(CFBundleRef bundle); + +@ffi.Native() +external CFBundleRef CFBundleCreate( + CFAllocatorRef allocator, + CFURLRef bundleURL, +); + +@ffi.Native() +external CFArrayRef CFBundleCreateBundlesFromDirectory( + CFAllocatorRef allocator, + CFURLRef directoryURL, + CFStringRef bundleType, +); + +@ffi.Native() +external CFArrayRef CFBundleGetAllBundles(); + +@ffi.Native() +external CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID); + +@ffi.Native Function(CFBundleRef, CFStringRef)>() +external ffi.Pointer CFBundleGetDataPointerForName( + CFBundleRef bundle, + CFStringRef symbolName, +); + +@ffi.Native< + ffi.Void Function(CFBundleRef, CFArrayRef, ffi.Pointer>) +>() +external void CFBundleGetDataPointersForNames( + CFBundleRef bundle, + CFArrayRef symbolNames, + ffi.Pointer> stbl, +); + +@ffi.Native() +external CFStringRef CFBundleGetDevelopmentRegion(CFBundleRef bundle); + +@ffi.Native Function(CFBundleRef, CFStringRef)>() +external ffi.Pointer CFBundleGetFunctionPointerForName( + CFBundleRef bundle, + CFStringRef functionName, +); + +@ffi.Native< + ffi.Void Function(CFBundleRef, CFArrayRef, ffi.Pointer>) +>() +external void CFBundleGetFunctionPointersForNames( + CFBundleRef bundle, + CFArrayRef functionNames, + ffi.Pointer> ftbl, +); + +@ffi.Native() +external CFStringRef CFBundleGetIdentifier(CFBundleRef bundle); + +@ffi.Native() +external CFDictionaryRef CFBundleGetInfoDictionary(CFBundleRef bundle); + +@ffi.Native() +external CFDictionaryRef CFBundleGetLocalInfoDictionary(CFBundleRef bundle); + +@ffi.Native() +external CFBundleRef CFBundleGetMainBundle(); + +@ffi.Native< + ffi.Void Function(CFBundleRef, ffi.Pointer, ffi.Pointer) +>() +external void CFBundleGetPackageInfo( + CFBundleRef bundle, + ffi.Pointer packageType, + ffi.Pointer packageCreator, +); + +@ffi.Native< + Boolean Function(CFURLRef, ffi.Pointer, ffi.Pointer) +>() +external int CFBundleGetPackageInfoInDirectory( + CFURLRef url, + ffi.Pointer packageType, + ffi.Pointer packageCreator, +); + +@ffi.Native() +external CFPlugInRef CFBundleGetPlugIn(CFBundleRef bundle); + +@ffi.Native() +external int CFBundleGetTypeID(); + +@ffi.Native() +external CFTypeRef CFBundleGetValueForInfoDictionaryKey( + CFBundleRef bundle, + CFStringRef key, +); + +@ffi.Native() +external int CFBundleGetVersionNumber(CFBundleRef bundle); + +@ffi.Native() +external int CFBundleIsArchitectureLoadable(int arch); + +@ffi.Native() +external int CFBundleIsExecutableLoadable(CFBundleRef bundle); + +@ffi.Native() +external int CFBundleIsExecutableLoadableForURL(CFURLRef url); + +@ffi.Native() +external int CFBundleIsExecutableLoaded(CFBundleRef bundle); + +@ffi.Native() +external int CFBundleLoadExecutable(CFBundleRef bundle); + +@ffi.Native)>() +external int CFBundleLoadExecutableAndReturnError( + CFBundleRef bundle, + ffi.Pointer error, +); + +@Deprecated( + 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', +) +@ffi.Native< + SInt32 Function( + CFBundleRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CFBundleOpenBundleResourceFiles( + CFBundleRef bundle, + ffi.Pointer refNum, + ffi.Pointer localizedRefNum, +); + +@Deprecated( + 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', +) +@ffi.Native() +external int CFBundleOpenBundleResourceMap(CFBundleRef bundle); + +@ffi.Native)>() +external int CFBundlePreflightExecutable( + CFBundleRef bundle, + ffi.Pointer error, +); + +@ffi.Native() +external void CFBundleUnloadExecutable(CFBundleRef bundle); + +@ffi.Native< + Boolean Function( + CFCalendarRef, + ffi.Pointer, + CFOptionFlags, + ffi.Pointer, + ) +>() +external int CFCalendarAddComponents( + CFCalendarRef calendar, + ffi.Pointer at, + int options, + ffi.Pointer componentDesc, +); + +@ffi.Native< + Boolean Function( + CFCalendarRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CFCalendarComposeAbsoluteTime( + CFCalendarRef calendar, + ffi.Pointer at, + ffi.Pointer componentDesc, +); + +@ffi.Native() +external CFCalendarRef CFCalendarCopyCurrent(); + +@ffi.Native() +external CFLocaleRef CFCalendarCopyLocale(CFCalendarRef calendar); + +@ffi.Native() +external CFTimeZoneRef CFCalendarCopyTimeZone(CFCalendarRef calendar); + +@ffi.Native() +external CFCalendarRef CFCalendarCreateWithIdentifier( + CFAllocatorRef allocator, + CFCalendarIdentifier identifier, +); + +@ffi.Native< + Boolean Function(CFCalendarRef, CFAbsoluteTime, ffi.Pointer) +>() +external int CFCalendarDecomposeAbsoluteTime( + CFCalendarRef calendar, + double at, + ffi.Pointer componentDesc, +); + +@ffi.Native< + Boolean Function( + CFCalendarRef, + CFAbsoluteTime, + CFAbsoluteTime, + CFOptionFlags, + ffi.Pointer, + ) +>() +external int CFCalendarGetComponentDifference( + CFCalendarRef calendar, + double startingAT, + double resultAT, + int options, + ffi.Pointer componentDesc, +); + +@ffi.Native() +external int CFCalendarGetFirstWeekday(CFCalendarRef calendar); + +@ffi.Native() +external CFCalendarIdentifier CFCalendarGetIdentifier(CFCalendarRef calendar); + +@ffi.Native() +external CFRange CFCalendarGetMaximumRangeOfUnit( + CFCalendarRef calendar, + int unit, +); + +@ffi.Native() +external int CFCalendarGetMinimumDaysInFirstWeek(CFCalendarRef calendar); + +@ffi.Native() +external CFRange CFCalendarGetMinimumRangeOfUnit( + CFCalendarRef calendar, + int unit, +); + +@ffi.Native< + CFIndex Function(CFCalendarRef, CFOptionFlags, CFOptionFlags, CFAbsoluteTime) +>() +external int CFCalendarGetOrdinalityOfUnit( + CFCalendarRef calendar, + int smallerUnit, + int biggerUnit, + double at, +); + +@ffi.Native< + CFRange Function(CFCalendarRef, CFOptionFlags, CFOptionFlags, CFAbsoluteTime) +>() +external CFRange CFCalendarGetRangeOfUnit( + CFCalendarRef calendar, + int smallerUnit, + int biggerUnit, + double at, +); + +@ffi.Native< + Boolean Function( + CFCalendarRef, + CFOptionFlags, + CFAbsoluteTime, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CFCalendarGetTimeRangeOfUnit( + CFCalendarRef calendar, + int unit, + double at, + ffi.Pointer startp, + ffi.Pointer tip, +); + +@ffi.Native() +external int CFCalendarGetTypeID(); + +@ffi.Native() +external void CFCalendarSetFirstWeekday(CFCalendarRef calendar, int wkdy); + +@ffi.Native() +external void CFCalendarSetLocale(CFCalendarRef calendar, CFLocaleRef locale); + +@ffi.Native() +external void CFCalendarSetMinimumDaysInFirstWeek( + CFCalendarRef calendar, + int mwd, +); + +@ffi.Native() +external void CFCalendarSetTimeZone(CFCalendarRef calendar, CFTimeZoneRef tz); + +@ffi.Native() +external void CFCharacterSetAddCharactersInRange( + CFMutableCharacterSetRef theSet, + CFRange theRange, +); + +@ffi.Native() +external void CFCharacterSetAddCharactersInString( + CFMutableCharacterSetRef theSet, + CFStringRef theString, +); + +@ffi.Native() +external CFDataRef CFCharacterSetCreateBitmapRepresentation( + CFAllocatorRef alloc, + CFCharacterSetRef theSet, +); + +@ffi.Native() +external CFCharacterSetRef CFCharacterSetCreateCopy( + CFAllocatorRef alloc, + CFCharacterSetRef theSet, +); + +@ffi.Native() +external CFCharacterSetRef CFCharacterSetCreateInvertedSet( + CFAllocatorRef alloc, + CFCharacterSetRef theSet, +); + +@ffi.Native() +external CFMutableCharacterSetRef CFCharacterSetCreateMutable( + CFAllocatorRef alloc, +); + +@ffi.Native< + CFMutableCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef) +>() +external CFMutableCharacterSetRef CFCharacterSetCreateMutableCopy( + CFAllocatorRef alloc, + CFCharacterSetRef theSet, +); + +@ffi.Native() +external CFCharacterSetRef CFCharacterSetCreateWithBitmapRepresentation( + CFAllocatorRef alloc, + CFDataRef theData, +); + +@ffi.Native() +external CFCharacterSetRef CFCharacterSetCreateWithCharactersInRange( + CFAllocatorRef alloc, + CFRange theRange, +); + +@ffi.Native() +external CFCharacterSetRef CFCharacterSetCreateWithCharactersInString( + CFAllocatorRef alloc, + CFStringRef theString, +); + +@ffi.Native( + symbol: 'CFCharacterSetGetPredefined', +) +external CFCharacterSetRef _CFCharacterSetGetPredefined(int theSetIdentifier); + +CFCharacterSetRef CFCharacterSetGetPredefined( + CFCharacterSetPredefinedSet theSetIdentifier, +) { + return _CFCharacterSetGetPredefined(theSetIdentifier.value); +} + +@ffi.Native() +external int CFCharacterSetGetTypeID(); + +@ffi.Native() +external int CFCharacterSetHasMemberInPlane( + CFCharacterSetRef theSet, + int thePlane, +); + +@ffi.Native() +external void CFCharacterSetIntersect( + CFMutableCharacterSetRef theSet, + CFCharacterSetRef theOtherSet, +); + +@ffi.Native() +external void CFCharacterSetInvert(CFMutableCharacterSetRef theSet); + +@ffi.Native() +external int CFCharacterSetIsCharacterMember( + CFCharacterSetRef theSet, + int theChar, +); + +@ffi.Native() +external int CFCharacterSetIsLongCharacterMember( + CFCharacterSetRef theSet, + int theChar, +); + +@ffi.Native() +external int CFCharacterSetIsSupersetOfSet( + CFCharacterSetRef theSet, + CFCharacterSetRef theOtherset, +); + +@ffi.Native() +external void CFCharacterSetRemoveCharactersInRange( + CFMutableCharacterSetRef theSet, + CFRange theRange, +); + +@ffi.Native() +external void CFCharacterSetRemoveCharactersInString( + CFMutableCharacterSetRef theSet, + CFStringRef theString, +); + +@ffi.Native() +external void CFCharacterSetUnion( + CFMutableCharacterSetRef theSet, + CFCharacterSetRef theOtherSet, +); + +@ffi.Native() +external CFStringRef CFCopyDescription(CFTypeRef cf); + +@ffi.Native() +external CFURLRef CFCopyHomeDirectoryURL(); + +@ffi.Native() +external CFStringRef CFCopyTypeIDDescription(int type_id); + +@ffi.Native, CFIndex)>() +external void CFDataAppendBytes( + CFMutableDataRef theData, + ffi.Pointer bytes, + int length, +); + +@ffi.Native, CFIndex)>() +external CFDataRef CFDataCreate( + CFAllocatorRef allocator, + ffi.Pointer bytes, + int length, +); + +@ffi.Native() +external CFDataRef CFDataCreateCopy( + CFAllocatorRef allocator, + CFDataRef theData, +); + +@ffi.Native() +external CFMutableDataRef CFDataCreateMutable( + CFAllocatorRef allocator, + int capacity, +); + +@ffi.Native() +external CFMutableDataRef CFDataCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFDataRef theData, +); + +@ffi.Native< + CFDataRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorRef, + ) +>() +external CFDataRef CFDataCreateWithBytesNoCopy( + CFAllocatorRef allocator, + ffi.Pointer bytes, + int length, + CFAllocatorRef bytesDeallocator, +); + +@ffi.Native() +external void CFDataDeleteBytes(CFMutableDataRef theData, CFRange range); + +@ffi.Native() +external CFRange CFDataFind( + CFDataRef theData, + CFDataRef dataToFind, + CFRange searchRange, + int compareOptions, +); + +@ffi.Native Function(CFDataRef)>() +external ffi.Pointer CFDataGetBytePtr(CFDataRef theData); + +@ffi.Native)>() +external void CFDataGetBytes( + CFDataRef theData, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native() +external int CFDataGetLength(CFDataRef theData); + +@ffi.Native Function(CFMutableDataRef)>() +external ffi.Pointer CFDataGetMutableBytePtr(CFMutableDataRef theData); + +@ffi.Native() +external int CFDataGetTypeID(); + +@ffi.Native() +external void CFDataIncreaseLength(CFMutableDataRef theData, int extraLength); + +@ffi.Native< + ffi.Void Function(CFMutableDataRef, CFRange, ffi.Pointer, CFIndex) +>() +external void CFDataReplaceBytes( + CFMutableDataRef theData, + CFRange range, + ffi.Pointer newBytes, + int newLength, +); + +@ffi.Native() +external void CFDataSetLength(CFMutableDataRef theData, int length); + +@ffi.Native)>( + symbol: 'CFDateCompare', +) +external int _CFDateCompare( + CFDateRef theDate, + CFDateRef otherDate, + ffi.Pointer context, +); + +CFComparisonResult CFDateCompare( + CFDateRef theDate, + CFDateRef otherDate, + ffi.Pointer context, +) { + return CFComparisonResult.fromValue( + _CFDateCompare(theDate, otherDate, context), + ); +} + +@ffi.Native() +external CFDateRef CFDateCreate(CFAllocatorRef allocator, double at); + +@ffi.Native() +external CFTypeRef CFDateFormatterCopyProperty( + CFDateFormatterRef formatter, + CFDateFormatterKey key, +); + +@ffi.Native< + CFDateFormatterRef Function(CFAllocatorRef, CFLocaleRef, CFIndex, CFIndex) +>(symbol: 'CFDateFormatterCreate') +external CFDateFormatterRef _CFDateFormatterCreate( + CFAllocatorRef allocator, + CFLocaleRef locale, + int dateStyle, + int timeStyle, +); + +CFDateFormatterRef CFDateFormatterCreate( + CFAllocatorRef allocator, + CFLocaleRef locale, + CFDateFormatterStyle dateStyle, + CFDateFormatterStyle timeStyle, +) { + return _CFDateFormatterCreate( + allocator, + locale, + dateStyle.value, + timeStyle.value, + ); +} + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFOptionFlags, CFLocaleRef) +>() +external CFStringRef CFDateFormatterCreateDateFormatFromTemplate( + CFAllocatorRef allocator, + CFStringRef tmplate, + int options, + CFLocaleRef locale, +); + +@ffi.Native< + CFDateRef Function( + CFAllocatorRef, + CFDateFormatterRef, + CFStringRef, + ffi.Pointer, + ) +>() +external CFDateRef CFDateFormatterCreateDateFromString( + CFAllocatorRef allocator, + CFDateFormatterRef formatter, + CFStringRef string, + ffi.Pointer rangep, +); + +@ffi.Native() +external CFDateFormatterRef CFDateFormatterCreateISO8601Formatter( + CFAllocatorRef allocator, + int formatOptions, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, CFAbsoluteTime) +>() +external CFStringRef CFDateFormatterCreateStringWithAbsoluteTime( + CFAllocatorRef allocator, + CFDateFormatterRef formatter, + double at, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, CFDateRef) +>() +external CFStringRef CFDateFormatterCreateStringWithDate( + CFAllocatorRef allocator, + CFDateFormatterRef formatter, + CFDateRef date, +); + +@ffi.Native< + Boolean Function( + CFDateFormatterRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CFDateFormatterGetAbsoluteTimeFromString( + CFDateFormatterRef formatter, + CFStringRef string, + ffi.Pointer rangep, + ffi.Pointer atp, +); + +@ffi.Native( + symbol: 'CFDateFormatterGetDateStyle', +) +external int _CFDateFormatterGetDateStyle(CFDateFormatterRef formatter); + +CFDateFormatterStyle CFDateFormatterGetDateStyle(CFDateFormatterRef formatter) { + return CFDateFormatterStyle.fromValue( + _CFDateFormatterGetDateStyle(formatter), + ); +} + +@ffi.Native() +external CFStringRef CFDateFormatterGetFormat(CFDateFormatterRef formatter); + +@ffi.Native() +external CFLocaleRef CFDateFormatterGetLocale(CFDateFormatterRef formatter); + +@ffi.Native( + symbol: 'CFDateFormatterGetTimeStyle', +) +external int _CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter); + +CFDateFormatterStyle CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter) { + return CFDateFormatterStyle.fromValue( + _CFDateFormatterGetTimeStyle(formatter), + ); +} + +@ffi.Native() +external int CFDateFormatterGetTypeID(); + +@ffi.Native() +external void CFDateFormatterSetFormat( + CFDateFormatterRef formatter, + CFStringRef formatString, +); + +@ffi.Native() +external void CFDateFormatterSetProperty( + CFDateFormatterRef formatter, + CFStringRef key, + CFTypeRef value, +); + +@ffi.Native() +external double CFDateGetAbsoluteTime(CFDateRef theDate); + +@ffi.Native() +external double CFDateGetTimeIntervalSinceDate( + CFDateRef theDate, + CFDateRef otherDate, +); + +@ffi.Native() +external int CFDateGetTypeID(); + +@ffi.Native< + ffi.Void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFDictionaryAddValue( + CFMutableDictionaryRef theDict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFDictionaryRef, + CFDictionaryApplierFunction, + ffi.Pointer, + ) +>() +external void CFDictionaryApplyFunction( + CFDictionaryRef theDict, + CFDictionaryApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native)>() +external int CFDictionaryContainsKey( + CFDictionaryRef theDict, + ffi.Pointer key, +); + +@ffi.Native)>() +external int CFDictionaryContainsValue( + CFDictionaryRef theDict, + ffi.Pointer value, +); + +@ffi.Native< + CFDictionaryRef Function( + CFAllocatorRef, + ffi.Pointer>, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFDictionaryRef CFDictionaryCreate( + CFAllocatorRef allocator, + ffi.Pointer> keys, + ffi.Pointer> values, + int numValues, + ffi.Pointer keyCallBacks, + ffi.Pointer valueCallBacks, +); + +@ffi.Native() +external CFDictionaryRef CFDictionaryCreateCopy( + CFAllocatorRef allocator, + CFDictionaryRef theDict, +); + +@ffi.Native< + CFMutableDictionaryRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFMutableDictionaryRef CFDictionaryCreateMutable( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer keyCallBacks, + ffi.Pointer valueCallBacks, +); + +@ffi.Native< + CFMutableDictionaryRef Function(CFAllocatorRef, CFIndex, CFDictionaryRef) +>() +external CFMutableDictionaryRef CFDictionaryCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFDictionaryRef theDict, +); + +@ffi.Native() +external int CFDictionaryGetCount(CFDictionaryRef theDict); + +@ffi.Native)>() +external int CFDictionaryGetCountOfKey( + CFDictionaryRef theDict, + ffi.Pointer key, +); + +@ffi.Native)>() +external int CFDictionaryGetCountOfValue( + CFDictionaryRef theDict, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFDictionaryRef, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external void CFDictionaryGetKeysAndValues( + CFDictionaryRef theDict, + ffi.Pointer> keys, + ffi.Pointer> values, +); + +@ffi.Native() +external int CFDictionaryGetTypeID(); + +@ffi.Native< + ffi.Pointer Function(CFDictionaryRef, ffi.Pointer) +>() +external ffi.Pointer CFDictionaryGetValue( + CFDictionaryRef theDict, + ffi.Pointer key, +); + +@ffi.Native< + Boolean Function( + CFDictionaryRef, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CFDictionaryGetValueIfPresent( + CFDictionaryRef theDict, + ffi.Pointer key, + ffi.Pointer> value, +); + +@ffi.Native() +external void CFDictionaryRemoveAllValues(CFMutableDictionaryRef theDict); + +@ffi.Native)>() +external void CFDictionaryRemoveValue( + CFMutableDictionaryRef theDict, + ffi.Pointer key, +); + +@ffi.Native< + ffi.Void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFDictionaryReplaceValue( + CFMutableDictionaryRef theDict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function( + CFMutableDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFDictionarySetValue( + CFMutableDictionaryRef theDict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native() +external int CFEqual(CFTypeRef cf1, CFTypeRef cf2); + +@ffi.Native() +external CFStringRef CFErrorCopyDescription(CFErrorRef err); + +@ffi.Native() +external CFStringRef CFErrorCopyFailureReason(CFErrorRef err); + +@ffi.Native() +external CFStringRef CFErrorCopyRecoverySuggestion(CFErrorRef err); + +@ffi.Native() +external CFDictionaryRef CFErrorCopyUserInfo(CFErrorRef err); + +@ffi.Native< + CFErrorRef Function(CFAllocatorRef, CFErrorDomain, CFIndex, CFDictionaryRef) +>() +external CFErrorRef CFErrorCreate( + CFAllocatorRef allocator, + CFErrorDomain domain, + int code, + CFDictionaryRef userInfo, +); + +@ffi.Native< + CFErrorRef Function( + CFAllocatorRef, + CFErrorDomain, + CFIndex, + ffi.Pointer>, + ffi.Pointer>, + CFIndex, + ) +>() +external CFErrorRef CFErrorCreateWithUserInfoKeysAndValues( + CFAllocatorRef allocator, + CFErrorDomain domain, + int code, + ffi.Pointer> userInfoKeys, + ffi.Pointer> userInfoValues, + int numUserInfoValues, +); + +@ffi.Native() +external int CFErrorGetCode(CFErrorRef err); + +@ffi.Native() +external CFErrorDomain CFErrorGetDomain(CFErrorRef err); + +@ffi.Native() +external int CFErrorGetTypeID(); + +@Deprecated('Use NSURLSessionAPI for ftp requests') +@ffi.Native< + CFIndex Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + ffi.Pointer, + ) +>() +external int CFFTPCreateParsedResourceListing( + CFAllocatorRef alloc, + ffi.Pointer buffer, + int bufferLength, + ffi.Pointer parsed, +); + +@ffi.Native< + CFFileDescriptorRef Function( + CFAllocatorRef, + CFFileDescriptorNativeDescriptor, + Boolean, + CFFileDescriptorCallBack, + ffi.Pointer, + ) +>() +external CFFileDescriptorRef CFFileDescriptorCreate( + CFAllocatorRef allocator, + int fd, + int closeOnInvalidate, + CFFileDescriptorCallBack callout, + ffi.Pointer context, +); + +@ffi.Native< + CFRunLoopSourceRef Function(CFAllocatorRef, CFFileDescriptorRef, CFIndex) +>() +external CFRunLoopSourceRef CFFileDescriptorCreateRunLoopSource( + CFAllocatorRef allocator, + CFFileDescriptorRef f, + int order, +); + +@ffi.Native() +external void CFFileDescriptorDisableCallBacks( + CFFileDescriptorRef f, + int callBackTypes, +); + +@ffi.Native() +external void CFFileDescriptorEnableCallBacks( + CFFileDescriptorRef f, + int callBackTypes, +); + +@ffi.Native< + ffi.Void Function(CFFileDescriptorRef, ffi.Pointer) +>() +external void CFFileDescriptorGetContext( + CFFileDescriptorRef f, + ffi.Pointer context, +); + +@ffi.Native() +external int CFFileDescriptorGetNativeDescriptor(CFFileDescriptorRef f); + +@ffi.Native() +external int CFFileDescriptorGetTypeID(); + +@ffi.Native() +external void CFFileDescriptorInvalidate(CFFileDescriptorRef f); + +@ffi.Native() +external int CFFileDescriptorIsValid(CFFileDescriptorRef f); + +@ffi.Native() +external int CFFileSecurityClearProperties( + CFFileSecurityRef fileSec, + int clearPropertyMask, +); + +@ffi.Native)>() +external int CFFileSecurityCopyAccessControlList( + CFFileSecurityRef fileSec, + ffi.Pointer accessControlList, +); + +@ffi.Native)>() +external int CFFileSecurityCopyGroupUUID( + CFFileSecurityRef fileSec, + ffi.Pointer groupUUID, +); + +@ffi.Native)>() +external int CFFileSecurityCopyOwnerUUID( + CFFileSecurityRef fileSec, + ffi.Pointer ownerUUID, +); + +@ffi.Native() +external CFFileSecurityRef CFFileSecurityCreate(CFAllocatorRef allocator); + +@ffi.Native() +external CFFileSecurityRef CFFileSecurityCreateCopy( + CFAllocatorRef allocator, + CFFileSecurityRef fileSec, +); + +@ffi.Native)>() +external int CFFileSecurityGetGroup( + CFFileSecurityRef fileSec, + ffi.Pointer group, +); + +@ffi.Native)>() +external int CFFileSecurityGetMode( + CFFileSecurityRef fileSec, + ffi.Pointer mode, +); + +@ffi.Native)>() +external int CFFileSecurityGetOwner( + CFFileSecurityRef fileSec, + ffi.Pointer owner, +); + +@ffi.Native() +external int CFFileSecurityGetTypeID(); + +@ffi.Native() +external int CFFileSecuritySetAccessControlList( + CFFileSecurityRef fileSec, + acl_t accessControlList, +); + +@ffi.Native() +external int CFFileSecuritySetGroup(CFFileSecurityRef fileSec, int group); + +@ffi.Native() +external int CFFileSecuritySetGroupUUID( + CFFileSecurityRef fileSec, + CFUUIDRef groupUUID, +); + +@ffi.Native() +external int CFFileSecuritySetMode(CFFileSecurityRef fileSec, int mode); + +@ffi.Native() +external int CFFileSecuritySetOwner(CFFileSecurityRef fileSec, int owner); + +@ffi.Native() +external int CFFileSecuritySetOwnerUUID( + CFFileSecurityRef fileSec, + CFUUIDRef ownerUUID, +); + +@ffi.Native() +external CFAllocatorRef CFGetAllocator(CFTypeRef cf); + +@ffi.Native() +external int CFGetRetainCount(CFTypeRef cf); + +@ffi.Native() +external int CFGetTypeID(CFTypeRef cf); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external double CFGregorianDateGetAbsoluteTime( + CFGregorianDate gdate, + CFTimeZoneRef tz, +); + +@Deprecated('Use CFCalendar or NSCalendar API instead') +@ffi.Native() +external int CFGregorianDateIsValid(CFGregorianDate gdate, int unitFlags); + +@ffi.Native() +external int CFHTTPAuthenticationAppliesToRequest( + CFHTTPAuthenticationRef auth, + CFHTTPMessageRef request, +); + +@ffi.Native() +external CFArrayRef CFHTTPAuthenticationCopyDomains( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native() +external CFStringRef CFHTTPAuthenticationCopyMethod( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native() +external CFStringRef CFHTTPAuthenticationCopyRealm( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native< + CFHTTPAuthenticationRef Function(CFAllocatorRef, CFHTTPMessageRef) +>() +external CFHTTPAuthenticationRef CFHTTPAuthenticationCreateFromResponse( + CFAllocatorRef alloc, + CFHTTPMessageRef response, +); + +@ffi.Native() +external int CFHTTPAuthenticationGetTypeID(); + +@ffi.Native< + Boolean Function(CFHTTPAuthenticationRef, ffi.Pointer) +>() +external int CFHTTPAuthenticationIsValid( + CFHTTPAuthenticationRef auth, + ffi.Pointer error, +); + +@ffi.Native() +external int CFHTTPAuthenticationRequiresAccountDomain( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native() +external int CFHTTPAuthenticationRequiresOrderedRequests( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native() +external int CFHTTPAuthenticationRequiresUserNameAndPassword( + CFHTTPAuthenticationRef auth, +); + +@ffi.Native< + Boolean Function( + CFHTTPMessageRef, + CFHTTPMessageRef, + CFStringRef, + CFStringRef, + CFStringRef, + Boolean, + ) +>() +external int CFHTTPMessageAddAuthentication( + CFHTTPMessageRef request, + CFHTTPMessageRef authenticationFailureResponse, + CFStringRef username, + CFStringRef password, + CFStringRef authenticationScheme, + int forProxy, +); + +@ffi.Native, CFIndex)>() +external int CFHTTPMessageAppendBytes( + CFHTTPMessageRef message, + ffi.Pointer newBytes, + int numBytes, +); + +@ffi.Native< + Boolean Function( + CFHTTPMessageRef, + CFHTTPAuthenticationRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CFHTTPMessageApplyCredentialDictionary( + CFHTTPMessageRef request, + CFHTTPAuthenticationRef auth, + CFDictionaryRef dict, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function( + CFHTTPMessageRef, + CFHTTPAuthenticationRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external int CFHTTPMessageApplyCredentials( + CFHTTPMessageRef request, + CFHTTPAuthenticationRef auth, + CFStringRef username, + CFStringRef password, + ffi.Pointer error, +); + +@ffi.Native() +external CFDictionaryRef CFHTTPMessageCopyAllHeaderFields( + CFHTTPMessageRef message, +); + +@ffi.Native() +external CFDataRef CFHTTPMessageCopyBody(CFHTTPMessageRef message); + +@ffi.Native() +external CFStringRef CFHTTPMessageCopyHeaderFieldValue( + CFHTTPMessageRef message, + CFStringRef headerField, +); + +@ffi.Native() +external CFStringRef CFHTTPMessageCopyRequestMethod(CFHTTPMessageRef request); + +@ffi.Native() +external CFURLRef CFHTTPMessageCopyRequestURL(CFHTTPMessageRef request); + +@ffi.Native() +external CFStringRef CFHTTPMessageCopyResponseStatusLine( + CFHTTPMessageRef response, +); + +@ffi.Native() +external CFDataRef CFHTTPMessageCopySerializedMessage(CFHTTPMessageRef message); + +@ffi.Native() +external CFStringRef CFHTTPMessageCopyVersion(CFHTTPMessageRef message); + +@ffi.Native() +external CFHTTPMessageRef CFHTTPMessageCreateCopy( + CFAllocatorRef alloc, + CFHTTPMessageRef message, +); + +@ffi.Native() +external CFHTTPMessageRef CFHTTPMessageCreateEmpty( + CFAllocatorRef alloc, + int isRequest, +); + +@ffi.Native< + CFHTTPMessageRef Function(CFAllocatorRef, CFStringRef, CFURLRef, CFStringRef) +>() +external CFHTTPMessageRef CFHTTPMessageCreateRequest( + CFAllocatorRef alloc, + CFStringRef requestMethod, + CFURLRef url, + CFStringRef httpVersion, +); + +@ffi.Native< + CFHTTPMessageRef Function(CFAllocatorRef, CFIndex, CFStringRef, CFStringRef) +>() +external CFHTTPMessageRef CFHTTPMessageCreateResponse( + CFAllocatorRef alloc, + int statusCode, + CFStringRef statusDescription, + CFStringRef httpVersion, +); + +@ffi.Native() +external int CFHTTPMessageGetResponseStatusCode(CFHTTPMessageRef response); + +@ffi.Native() +external int CFHTTPMessageGetTypeID(); + +@ffi.Native() +external int CFHTTPMessageIsHeaderComplete(CFHTTPMessageRef message); + +@ffi.Native() +external int CFHTTPMessageIsRequest(CFHTTPMessageRef message); + +@ffi.Native() +external void CFHTTPMessageSetBody( + CFHTTPMessageRef message, + CFDataRef bodyData, +); + +@ffi.Native() +external void CFHTTPMessageSetHeaderFieldValue( + CFHTTPMessageRef message, + CFStringRef headerField, + CFStringRef value, +); + +@ffi.Native() +external int CFHash(CFTypeRef cf); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native( + symbol: 'CFHostCancelInfoResolution', +) +external void _CFHostCancelInfoResolution(CFHostRef theHost, int info); + +void CFHostCancelInfoResolution(CFHostRef theHost, CFHostInfoType info) { + return _CFHostCancelInfoResolution(theHost, info.value); +} + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external CFHostRef CFHostCreateCopy(CFAllocatorRef alloc, CFHostRef host); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external CFHostRef CFHostCreateWithAddress( + CFAllocatorRef allocator, + CFDataRef addr, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external CFHostRef CFHostCreateWithName( + CFAllocatorRef allocator, + CFStringRef hostname, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native)>() +external CFArrayRef CFHostGetAddressing( + CFHostRef theHost, + ffi.Pointer hasBeenResolved, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native)>() +external CFArrayRef CFHostGetNames( + CFHostRef theHost, + ffi.Pointer hasBeenResolved, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native)>() +external CFDataRef CFHostGetReachability( + CFHostRef theHost, + ffi.Pointer hasBeenResolved, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external int CFHostGetTypeID(); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external void CFHostScheduleWithRunLoop( + CFHostRef theHost, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native< + Boolean Function( + CFHostRef, + CFHostClientCallBack, + ffi.Pointer, + ) +>() +external int CFHostSetClient( + CFHostRef theHost, + CFHostClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native< + Boolean Function(CFHostRef, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'CFHostStartInfoResolution') +external int _CFHostStartInfoResolution( + CFHostRef theHost, + int info, + ffi.Pointer error, +); + +DartBoolean CFHostStartInfoResolution( + CFHostRef theHost, + CFHostInfoType info, + ffi.Pointer error, +) { + return _CFHostStartInfoResolution(theHost, info.value, error); +} + +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +@ffi.Native() +external void CFHostUnscheduleFromRunLoop( + CFHostRef theHost, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native() +external CFArrayRef CFLocaleCopyAvailableLocaleIdentifiers(); + +@ffi.Native() +external CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(); + +@ffi.Native() +external CFLocaleRef CFLocaleCopyCurrent(); + +@ffi.Native() +external CFStringRef CFLocaleCopyDisplayNameForPropertyValue( + CFLocaleRef displayLocale, + CFLocaleKey key, + CFStringRef value, +); + +@ffi.Native() +external CFArrayRef CFLocaleCopyISOCountryCodes(); + +@ffi.Native() +external CFArrayRef CFLocaleCopyISOCurrencyCodes(); + +@ffi.Native() +external CFArrayRef CFLocaleCopyISOLanguageCodes(); + +@ffi.Native() +external CFArrayRef CFLocaleCopyPreferredLanguages(); + +@ffi.Native() +external CFLocaleRef CFLocaleCreate( + CFAllocatorRef allocator, + CFLocaleIdentifier localeIdentifier, +); + +@ffi.Native() +external CFLocaleIdentifier CFLocaleCreateCanonicalLanguageIdentifierFromString( + CFAllocatorRef allocator, + CFStringRef localeIdentifier, +); + +@ffi.Native() +external CFLocaleIdentifier +CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes( + CFAllocatorRef allocator, + int lcode, + int rcode, +); + +@ffi.Native() +external CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromString( + CFAllocatorRef allocator, + CFStringRef localeIdentifier, +); + +@ffi.Native() +external CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier( + CFAllocatorRef allocator, + CFLocaleIdentifier localeID, +); + +@ffi.Native() +external CFLocaleRef CFLocaleCreateCopy( + CFAllocatorRef allocator, + CFLocaleRef locale, +); + +@ffi.Native() +external CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromComponents( + CFAllocatorRef allocator, + CFDictionaryRef dictionary, +); + +@ffi.Native() +external CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode( + CFAllocatorRef allocator, + int lcid, +); + +@ffi.Native() +external CFLocaleIdentifier CFLocaleGetIdentifier(CFLocaleRef locale); + +@ffi.Native( + symbol: 'CFLocaleGetLanguageCharacterDirection', +) +external int _CFLocaleGetLanguageCharacterDirection(CFStringRef isoLangCode); + +CFLocaleLanguageDirection CFLocaleGetLanguageCharacterDirection( + CFStringRef isoLangCode, +) { + return CFLocaleLanguageDirection.fromValue( + _CFLocaleGetLanguageCharacterDirection(isoLangCode), + ); +} + +@ffi.Native( + symbol: 'CFLocaleGetLanguageLineDirection', +) +external int _CFLocaleGetLanguageLineDirection(CFStringRef isoLangCode); + +CFLocaleLanguageDirection CFLocaleGetLanguageLineDirection( + CFStringRef isoLangCode, +) { + return CFLocaleLanguageDirection.fromValue( + _CFLocaleGetLanguageLineDirection(isoLangCode), + ); +} + +@ffi.Native() +external CFLocaleRef CFLocaleGetSystem(); + +@ffi.Native() +external int CFLocaleGetTypeID(); + +@ffi.Native() +external CFTypeRef CFLocaleGetValue(CFLocaleRef locale, CFLocaleKey key); + +@ffi.Native() +external int CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier( + CFLocaleIdentifier localeIdentifier, +); + +@ffi.Native< + CFMachPortRef Function( + CFAllocatorRef, + CFMachPortCallBack, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFMachPortRef CFMachPortCreate( + CFAllocatorRef allocator, + CFMachPortCallBack callout, + ffi.Pointer context, + ffi.Pointer shouldFreeInfo, +); + +@ffi.Native< + CFRunLoopSourceRef Function(CFAllocatorRef, CFMachPortRef, CFIndex) +>() +external CFRunLoopSourceRef CFMachPortCreateRunLoopSource( + CFAllocatorRef allocator, + CFMachPortRef port, + int order, +); + +@ffi.Native< + CFMachPortRef Function( + CFAllocatorRef, + mach_port_t, + CFMachPortCallBack, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFMachPortRef CFMachPortCreateWithPort( + CFAllocatorRef allocator, + int portNum, + CFMachPortCallBack callout, + ffi.Pointer context, + ffi.Pointer shouldFreeInfo, +); + +@ffi.Native)>() +external void CFMachPortGetContext( + CFMachPortRef port, + ffi.Pointer context, +); + +@ffi.Native() +external CFMachPortInvalidationCallBack CFMachPortGetInvalidationCallBack( + CFMachPortRef port, +); + +@ffi.Native() +external int CFMachPortGetPort(CFMachPortRef port); + +@ffi.Native() +external int CFMachPortGetTypeID(); + +@ffi.Native() +external void CFMachPortInvalidate(CFMachPortRef port); + +@ffi.Native() +external int CFMachPortIsValid(CFMachPortRef port); + +@ffi.Native() +external void CFMachPortSetInvalidationCallBack( + CFMachPortRef port, + CFMachPortInvalidationCallBack callout, +); + +@ffi.Native() +external CFTypeRef CFMakeCollectable(CFTypeRef cf); + +@ffi.Native< + CFMessagePortRef Function( + CFAllocatorRef, + CFStringRef, + CFMessagePortCallBack, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFMessagePortRef CFMessagePortCreateLocal( + CFAllocatorRef allocator, + CFStringRef name, + CFMessagePortCallBack callout, + ffi.Pointer context, + ffi.Pointer shouldFreeInfo, +); + +@ffi.Native() +external CFMessagePortRef CFMessagePortCreateRemote( + CFAllocatorRef allocator, + CFStringRef name, +); + +@ffi.Native< + CFRunLoopSourceRef Function(CFAllocatorRef, CFMessagePortRef, CFIndex) +>() +external CFRunLoopSourceRef CFMessagePortCreateRunLoopSource( + CFAllocatorRef allocator, + CFMessagePortRef local, + int order, +); + +@ffi.Native< + ffi.Void Function(CFMessagePortRef, ffi.Pointer) +>() +external void CFMessagePortGetContext( + CFMessagePortRef ms, + ffi.Pointer context, +); + +@ffi.Native() +external CFMessagePortInvalidationCallBack CFMessagePortGetInvalidationCallBack( + CFMessagePortRef ms, +); + +@ffi.Native() +external CFStringRef CFMessagePortGetName(CFMessagePortRef ms); + +@ffi.Native() +external int CFMessagePortGetTypeID(); + +@ffi.Native() +external void CFMessagePortInvalidate(CFMessagePortRef ms); + +@ffi.Native() +external int CFMessagePortIsRemote(CFMessagePortRef ms); + +@ffi.Native() +external int CFMessagePortIsValid(CFMessagePortRef ms); + +@ffi.Native< + SInt32 Function( + CFMessagePortRef, + SInt32, + CFDataRef, + CFTimeInterval, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ) +>() +external int CFMessagePortSendRequest( + CFMessagePortRef remote, + int msgid, + CFDataRef data, + double sendTimeout, + double rcvTimeout, + CFStringRef replyMode, + ffi.Pointer returnData, +); + +@ffi.Native( + symbol: 'CFMessagePortSetDispatchQueue', +) +external void _CFMessagePortSetDispatchQueue( + CFMessagePortRef ms, + dispatch_queue_t queue, +); + +void CFMessagePortSetDispatchQueue( + CFMessagePortRef ms, + Dartdispatch_queue_t queue, +) { + final _$$ref = queue.ref; + return _CFMessagePortSetDispatchQueue(ms, _$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function(CFMessagePortRef, CFMessagePortInvalidationCallBack) +>() +external void CFMessagePortSetInvalidationCallBack( + CFMessagePortRef ms, + CFMessagePortInvalidationCallBack callout, +); + +@ffi.Native() +external int CFMessagePortSetName(CFMessagePortRef ms, CFStringRef newName); + +@Deprecated('Deprecated') +@ffi.Native< + CFNetDiagnosticStatus Function(CFNetDiagnosticRef, ffi.Pointer) +>() +external int CFNetDiagnosticCopyNetworkStatusPassively( + CFNetDiagnosticRef details, + ffi.Pointer description, +); + +@Deprecated('Deprecated') +@ffi.Native< + CFNetDiagnosticRef Function(CFAllocatorRef, CFReadStreamRef, CFWriteStreamRef) +>() +external CFNetDiagnosticRef CFNetDiagnosticCreateWithStreams( + CFAllocatorRef alloc, + CFReadStreamRef readStream, + CFWriteStreamRef writeStream, +); + +@Deprecated('Deprecated') +@ffi.Native() +external CFNetDiagnosticRef CFNetDiagnosticCreateWithURL( + CFAllocatorRef alloc, + CFURLRef url, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CFNetDiagnosticDiagnoseProblemInteractively( + CFNetDiagnosticRef details, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void CFNetDiagnosticSetName( + CFNetDiagnosticRef details, + CFStringRef name, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + CFNetServiceBrowserRef Function( + CFAllocatorRef, + CFNetServiceBrowserClientCallBack, + ffi.Pointer, + ) +>() +external CFNetServiceBrowserRef CFNetServiceBrowserCreate( + CFAllocatorRef alloc, + CFNetServiceBrowserClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external int CFNetServiceBrowserGetTypeID(); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external void CFNetServiceBrowserInvalidate(CFNetServiceBrowserRef browser); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceBrowserRef, CFRunLoopRef, CFStringRef) +>() +external void CFNetServiceBrowserScheduleWithRunLoop( + CFNetServiceBrowserRef browser, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function(CFNetServiceBrowserRef, Boolean, ffi.Pointer) +>() +external int CFNetServiceBrowserSearchForDomains( + CFNetServiceBrowserRef browser, + int registrationDomains, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function( + CFNetServiceBrowserRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external int CFNetServiceBrowserSearchForServices( + CFNetServiceBrowserRef browser, + CFStringRef domain, + CFStringRef serviceType, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceBrowserRef, ffi.Pointer) +>() +external void CFNetServiceBrowserStopSearch( + CFNetServiceBrowserRef browser, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceBrowserRef, CFRunLoopRef, CFStringRef) +>() +external void CFNetServiceBrowserUnscheduleFromRunLoop( + CFNetServiceBrowserRef browser, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external void CFNetServiceCancel(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + CFNetServiceRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFStringRef, + SInt32, + ) +>() +external CFNetServiceRef CFNetServiceCreate( + CFAllocatorRef alloc, + CFStringRef domain, + CFStringRef serviceType, + CFStringRef name, + int port, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFNetServiceRef CFNetServiceCreateCopy( + CFAllocatorRef alloc, + CFNetServiceRef service, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFDictionaryRef CFNetServiceCreateDictionaryWithTXTData( + CFAllocatorRef alloc, + CFDataRef txtRecord, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFDataRef CFNetServiceCreateTXTDataWithDictionary( + CFAllocatorRef alloc, + CFDictionaryRef keyValuePairs, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFArrayRef CFNetServiceGetAddressing(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFStringRef CFNetServiceGetDomain(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFStringRef CFNetServiceGetName(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external int CFNetServiceGetPortNumber(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFDataRef CFNetServiceGetTXTData(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFStringRef CFNetServiceGetTargetHost(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external CFStringRef CFNetServiceGetType(CFNetServiceRef theService); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external int CFNetServiceGetTypeID(); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + CFNetServiceMonitorRef Function( + CFAllocatorRef, + CFNetServiceRef, + CFNetServiceMonitorClientCallBack, + ffi.Pointer, + ) +>() +external CFNetServiceMonitorRef CFNetServiceMonitorCreate( + CFAllocatorRef alloc, + CFNetServiceRef theService, + CFNetServiceMonitorClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external int CFNetServiceMonitorGetTypeID(); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external void CFNetServiceMonitorInvalidate(CFNetServiceMonitorRef monitor); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceMonitorRef, CFRunLoopRef, CFStringRef) +>() +external void CFNetServiceMonitorScheduleWithRunLoop( + CFNetServiceMonitorRef monitor, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function( + CFNetServiceMonitorRef, + ffi.UnsignedInt, + ffi.Pointer, + ) +>(symbol: 'CFNetServiceMonitorStart') +external int _CFNetServiceMonitorStart( + CFNetServiceMonitorRef monitor, + int recordType, + ffi.Pointer error, +); + +DartBoolean CFNetServiceMonitorStart( + CFNetServiceMonitorRef monitor, + CFNetServiceMonitorType recordType, + ffi.Pointer error, +) { + return _CFNetServiceMonitorStart(monitor, recordType.value, error); +} + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceMonitorRef, ffi.Pointer) +>() +external void CFNetServiceMonitorStop( + CFNetServiceMonitorRef monitor, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + ffi.Void Function(CFNetServiceMonitorRef, CFRunLoopRef, CFStringRef) +>() +external void CFNetServiceMonitorUnscheduleFromRunLoop( + CFNetServiceMonitorRef monitor, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CFNetServiceRegister( + CFNetServiceRef theService, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function(CFNetServiceRef, CFOptionFlags, ffi.Pointer) +>() +external int CFNetServiceRegisterWithOptions( + CFNetServiceRef theService, + int options, + ffi.Pointer error, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CFNetServiceResolve( + CFNetServiceRef theService, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function(CFNetServiceRef, CFTimeInterval, ffi.Pointer) +>() +external int CFNetServiceResolveWithTimeout( + CFNetServiceRef theService, + double timeout, + ffi.Pointer error, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external void CFNetServiceScheduleWithRunLoop( + CFNetServiceRef theService, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native< + Boolean Function( + CFNetServiceRef, + CFNetServiceClientCallBack, + ffi.Pointer, + ) +>() +external int CFNetServiceSetClient( + CFNetServiceRef theService, + CFNetServiceClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external int CFNetServiceSetTXTData( + CFNetServiceRef theService, + CFDataRef txtRecord, +); + +@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') +@ffi.Native() +external void CFNetServiceUnscheduleFromRunLoop( + CFNetServiceRef theService, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native< + CFArrayRef Function(CFStringRef, CFURLRef, ffi.Pointer) +>() +external CFArrayRef CFNetworkCopyProxiesForAutoConfigurationScript( + CFStringRef proxyAutoConfigurationScript, + CFURLRef targetURL, + ffi.Pointer error, +); + +@ffi.Native() +external CFArrayRef CFNetworkCopyProxiesForURL( + CFURLRef url, + CFDictionaryRef proxySettings, +); + +@ffi.Native() +external CFDictionaryRef CFNetworkCopySystemProxySettings(); + +@ffi.Native< + CFRunLoopSourceRef Function( + CFStringRef, + CFURLRef, + CFProxyAutoConfigurationResultCallback, + ffi.Pointer, + ) +>() +external CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationScript( + CFStringRef proxyAutoConfigurationScript, + CFURLRef targetURL, + CFProxyAutoConfigurationResultCallback cb, + ffi.Pointer clientContext, +); + +@ffi.Native< + CFRunLoopSourceRef Function( + CFURLRef, + CFURLRef, + CFProxyAutoConfigurationResultCallback, + ffi.Pointer, + ) +>() +external CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationURL( + CFURLRef proxyAutoConfigURL, + CFURLRef targetURL, + CFProxyAutoConfigurationResultCallback cb, + ffi.Pointer clientContext, +); + +@ffi.Native< + ffi.Void Function( + CFNotificationCenterRef, + ffi.Pointer, + CFNotificationCallback, + CFStringRef, + ffi.Pointer, + CFIndex, + ) +>(symbol: 'CFNotificationCenterAddObserver') +external void _CFNotificationCenterAddObserver( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationCallback callBack, + CFStringRef name, + ffi.Pointer object, + int suspensionBehavior, +); + +void CFNotificationCenterAddObserver( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationCallback callBack, + CFStringRef name, + ffi.Pointer object, + CFNotificationSuspensionBehavior suspensionBehavior, +) { + return _CFNotificationCenterAddObserver( + center, + observer, + callBack, + name, + object, + suspensionBehavior.value, + ); +} + +@ffi.Native() +external CFNotificationCenterRef CFNotificationCenterGetDarwinNotifyCenter(); + +@ffi.Native() +external CFNotificationCenterRef CFNotificationCenterGetDistributedCenter(); + +@ffi.Native() +external CFNotificationCenterRef CFNotificationCenterGetLocalCenter(); + +@ffi.Native() +external int CFNotificationCenterGetTypeID(); + +@ffi.Native< + ffi.Void Function( + CFNotificationCenterRef, + CFNotificationName, + ffi.Pointer, + CFDictionaryRef, + Boolean, + ) +>() +external void CFNotificationCenterPostNotification( + CFNotificationCenterRef center, + CFNotificationName name, + ffi.Pointer object, + CFDictionaryRef userInfo, + int deliverImmediately, +); + +@ffi.Native< + ffi.Void Function( + CFNotificationCenterRef, + CFNotificationName, + ffi.Pointer, + CFDictionaryRef, + CFOptionFlags, + ) +>() +external void CFNotificationCenterPostNotificationWithOptions( + CFNotificationCenterRef center, + CFNotificationName name, + ffi.Pointer object, + CFDictionaryRef userInfo, + int options, +); + +@ffi.Native)>() +external void CFNotificationCenterRemoveEveryObserver( + CFNotificationCenterRef center, + ffi.Pointer observer, +); + +@ffi.Native< + ffi.Void Function( + CFNotificationCenterRef, + ffi.Pointer, + CFNotificationName, + ffi.Pointer, + ) +>() +external void CFNotificationCenterRemoveObserver( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationName name, + ffi.Pointer object, +); + +@ffi.Native() +external int CFNullGetTypeID(); + +@ffi.Native)>( + symbol: 'CFNumberCompare', +) +external int _CFNumberCompare( + CFNumberRef number, + CFNumberRef otherNumber, + ffi.Pointer context, +); + +CFComparisonResult CFNumberCompare( + CFNumberRef number, + CFNumberRef otherNumber, + ffi.Pointer context, +) { + return CFComparisonResult.fromValue( + _CFNumberCompare(number, otherNumber, context), + ); +} + +@ffi.Native< + CFNumberRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) +>(symbol: 'CFNumberCreate') +external CFNumberRef _CFNumberCreate( + CFAllocatorRef allocator, + int theType, + ffi.Pointer valuePtr, +); + +CFNumberRef CFNumberCreate( + CFAllocatorRef allocator, + CFNumberType theType, + ffi.Pointer valuePtr, +) { + return _CFNumberCreate(allocator, theType.value, valuePtr); +} + +@ffi.Native() +external CFTypeRef CFNumberFormatterCopyProperty( + CFNumberFormatterRef formatter, + CFNumberFormatterKey key, +); + +@ffi.Native< + CFNumberFormatterRef Function(CFAllocatorRef, CFLocaleRef, CFIndex) +>(symbol: 'CFNumberFormatterCreate') +external CFNumberFormatterRef _CFNumberFormatterCreate( + CFAllocatorRef allocator, + CFLocaleRef locale, + int style, +); + +CFNumberFormatterRef CFNumberFormatterCreate( + CFAllocatorRef allocator, + CFLocaleRef locale, + CFNumberFormatterStyle style, +) { + return _CFNumberFormatterCreate(allocator, locale, style.value); +} + +@ffi.Native< + CFNumberRef Function( + CFAllocatorRef, + CFNumberFormatterRef, + CFStringRef, + ffi.Pointer, + CFOptionFlags, + ) +>() +external CFNumberRef CFNumberFormatterCreateNumberFromString( + CFAllocatorRef allocator, + CFNumberFormatterRef formatter, + CFStringRef string, + ffi.Pointer rangep, + int options, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFNumberFormatterRef, CFNumberRef) +>() +external CFStringRef CFNumberFormatterCreateStringWithNumber( + CFAllocatorRef allocator, + CFNumberFormatterRef formatter, + CFNumberRef number, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + CFNumberFormatterRef, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'CFNumberFormatterCreateStringWithValue') +external CFStringRef _CFNumberFormatterCreateStringWithValue( + CFAllocatorRef allocator, + CFNumberFormatterRef formatter, + int numberType, + ffi.Pointer valuePtr, +); + +CFStringRef CFNumberFormatterCreateStringWithValue( + CFAllocatorRef allocator, + CFNumberFormatterRef formatter, + CFNumberType numberType, + ffi.Pointer valuePtr, +) { + return _CFNumberFormatterCreateStringWithValue( + allocator, + formatter, + numberType.value, + valuePtr, + ); +} + +@ffi.Native< + Boolean Function(CFStringRef, ffi.Pointer, ffi.Pointer) +>() +external int CFNumberFormatterGetDecimalInfoForCurrencyCode( + CFStringRef currencyCode, + ffi.Pointer defaultFractionDigits, + ffi.Pointer roundingIncrement, +); + +@ffi.Native() +external CFStringRef CFNumberFormatterGetFormat(CFNumberFormatterRef formatter); + +@ffi.Native() +external CFLocaleRef CFNumberFormatterGetLocale(CFNumberFormatterRef formatter); + +@ffi.Native( + symbol: 'CFNumberFormatterGetStyle', +) +external int _CFNumberFormatterGetStyle(CFNumberFormatterRef formatter); + +CFNumberFormatterStyle CFNumberFormatterGetStyle( + CFNumberFormatterRef formatter, +) { + return CFNumberFormatterStyle.fromValue( + _CFNumberFormatterGetStyle(formatter), + ); +} + +@ffi.Native() +external int CFNumberFormatterGetTypeID(); + +@ffi.Native< + Boolean Function( + CFNumberFormatterRef, + CFStringRef, + ffi.Pointer, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'CFNumberFormatterGetValueFromString') +external int _CFNumberFormatterGetValueFromString( + CFNumberFormatterRef formatter, + CFStringRef string, + ffi.Pointer rangep, + int numberType, + ffi.Pointer valuePtr, +); + +DartBoolean CFNumberFormatterGetValueFromString( + CFNumberFormatterRef formatter, + CFStringRef string, + ffi.Pointer rangep, + CFNumberType numberType, + ffi.Pointer valuePtr, +) { + return _CFNumberFormatterGetValueFromString( + formatter, + string, + rangep, + numberType.value, + valuePtr, + ); +} + +@ffi.Native() +external void CFNumberFormatterSetFormat( + CFNumberFormatterRef formatter, + CFStringRef formatString, +); + +@ffi.Native< + ffi.Void Function(CFNumberFormatterRef, CFNumberFormatterKey, CFTypeRef) +>() +external void CFNumberFormatterSetProperty( + CFNumberFormatterRef formatter, + CFNumberFormatterKey key, + CFTypeRef value, +); + +@ffi.Native() +external int CFNumberGetByteSize(CFNumberRef number); + +@ffi.Native(symbol: 'CFNumberGetType') +external int _CFNumberGetType(CFNumberRef number); + +CFNumberType CFNumberGetType(CFNumberRef number) { + return CFNumberType.fromValue(_CFNumberGetType(number)); +} + +@ffi.Native() +external int CFNumberGetTypeID(); + +@ffi.Native)>( + symbol: 'CFNumberGetValue', +) +external int _CFNumberGetValue( + CFNumberRef number, + int theType, + ffi.Pointer valuePtr, +); + +DartBoolean CFNumberGetValue( + CFNumberRef number, + CFNumberType theType, + ffi.Pointer valuePtr, +) { + return _CFNumberGetValue(number, theType.value, valuePtr); +} + +@ffi.Native() +external int CFNumberIsFloatType(CFNumberRef number); + +@ffi.Native() +external void CFPlugInAddInstanceForFactory(CFUUIDRef factoryID); + +@ffi.Native() +external CFPlugInRef CFPlugInCreate( + CFAllocatorRef allocator, + CFURLRef plugInURL, +); + +@ffi.Native() +external CFArrayRef CFPlugInFindFactoriesForPlugInType(CFUUIDRef typeUUID); + +@ffi.Native() +external CFArrayRef CFPlugInFindFactoriesForPlugInTypeInPlugIn( + CFUUIDRef typeUUID, + CFPlugInRef plugIn, +); + +@ffi.Native() +external CFBundleRef CFPlugInGetBundle(CFPlugInRef plugIn); + +@ffi.Native() +external int CFPlugInGetTypeID(); + +@ffi.Native< + ffi.Pointer Function(CFAllocatorRef, CFUUIDRef, CFUUIDRef) +>() +external ffi.Pointer CFPlugInInstanceCreate( + CFAllocatorRef allocator, + CFUUIDRef factoryUUID, + CFUUIDRef typeUUID, +); + +@ffi.Native< + CFPlugInInstanceRef Function( + CFAllocatorRef, + CFIndex, + CFPlugInInstanceDeallocateInstanceDataFunction, + CFStringRef, + CFPlugInInstanceGetInterfaceFunction, + ) +>() +external CFPlugInInstanceRef CFPlugInInstanceCreateWithInstanceDataSize( + CFAllocatorRef allocator, + int instanceDataSize, + CFPlugInInstanceDeallocateInstanceDataFunction deallocateInstanceFunction, + CFStringRef factoryName, + CFPlugInInstanceGetInterfaceFunction getInterfaceFunction, +); + +@ffi.Native() +external CFStringRef CFPlugInInstanceGetFactoryName( + CFPlugInInstanceRef instance, +); + +@ffi.Native Function(CFPlugInInstanceRef)>() +external ffi.Pointer CFPlugInInstanceGetInstanceData( + CFPlugInInstanceRef instance, +); + +@ffi.Native< + Boolean Function( + CFPlugInInstanceRef, + CFStringRef, + ffi.Pointer>, + ) +>() +external int CFPlugInInstanceGetInterfaceFunctionTable( + CFPlugInInstanceRef instance, + CFStringRef interfaceName, + ffi.Pointer> ftbl, +); + +@ffi.Native() +external int CFPlugInInstanceGetTypeID(); + +@ffi.Native() +external int CFPlugInIsLoadOnDemand(CFPlugInRef plugIn); + +@ffi.Native() +external int CFPlugInRegisterFactoryFunction( + CFUUIDRef factoryUUID, + CFPlugInFactoryFunction func, +); + +@ffi.Native() +external int CFPlugInRegisterFactoryFunctionByName( + CFUUIDRef factoryUUID, + CFPlugInRef plugIn, + CFStringRef functionName, +); + +@ffi.Native() +external int CFPlugInRegisterPlugInType( + CFUUIDRef factoryUUID, + CFUUIDRef typeUUID, +); + +@ffi.Native() +external void CFPlugInRemoveInstanceForFactory(CFUUIDRef factoryID); + +@ffi.Native() +external void CFPlugInSetLoadOnDemand(CFPlugInRef plugIn, int flag); + +@ffi.Native() +external int CFPlugInUnregisterFactory(CFUUIDRef factoryUUID); + +@ffi.Native() +external int CFPlugInUnregisterPlugInType( + CFUUIDRef factoryUUID, + CFUUIDRef typeUUID, +); + +@ffi.Native() +external void CFPreferencesAddSuitePreferencesToApp( + CFStringRef applicationID, + CFStringRef suiteID, +); + +@ffi.Native() +external int CFPreferencesAppSynchronize(CFStringRef applicationID); + +@ffi.Native() +external int CFPreferencesAppValueIsForced( + CFStringRef key, + CFStringRef applicationID, +); + +@ffi.Native() +external CFPropertyListRef CFPreferencesCopyAppValue( + CFStringRef key, + CFStringRef applicationID, +); + +@Deprecated('Unsupported API') +@ffi.Native() +external CFArrayRef CFPreferencesCopyApplicationList( + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native() +external CFArrayRef CFPreferencesCopyKeyList( + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native< + CFDictionaryRef Function(CFArrayRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFDictionaryRef CFPreferencesCopyMultiple( + CFArrayRef keysToFetch, + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native< + CFPropertyListRef Function(CFStringRef, CFStringRef, CFStringRef, CFStringRef) +>() +external CFPropertyListRef CFPreferencesCopyValue( + CFStringRef key, + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native)>() +external int CFPreferencesGetAppBooleanValue( + CFStringRef key, + CFStringRef applicationID, + ffi.Pointer keyExistsAndHasValidFormat, +); + +@ffi.Native)>() +external int CFPreferencesGetAppIntegerValue( + CFStringRef key, + CFStringRef applicationID, + ffi.Pointer keyExistsAndHasValidFormat, +); + +@ffi.Native() +external void CFPreferencesRemoveSuitePreferencesFromApp( + CFStringRef applicationID, + CFStringRef suiteID, +); + +@ffi.Native() +external void CFPreferencesSetAppValue( + CFStringRef key, + CFPropertyListRef value, + CFStringRef applicationID, +); + +@ffi.Native< + ffi.Void Function( + CFDictionaryRef, + CFArrayRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) +>() +external void CFPreferencesSetMultiple( + CFDictionaryRef keysToSet, + CFArrayRef keysToRemove, + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native< + ffi.Void Function( + CFStringRef, + CFPropertyListRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) +>() +external void CFPreferencesSetValue( + CFStringRef key, + CFPropertyListRef value, + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native() +external int CFPreferencesSynchronize( + CFStringRef applicationID, + CFStringRef userName, + CFStringRef hostName, +); + +@ffi.Native< + CFDataRef Function( + CFAllocatorRef, + CFPropertyListRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ) +>(symbol: 'CFPropertyListCreateData') +external CFDataRef _CFPropertyListCreateData( + CFAllocatorRef allocator, + CFPropertyListRef propertyList, + int format, + int options, + ffi.Pointer error, +); + +CFDataRef CFPropertyListCreateData( + CFAllocatorRef allocator, + CFPropertyListRef propertyList, + CFPropertyListFormat format, + DartCFOptionFlags options, + ffi.Pointer error, +) { + return _CFPropertyListCreateData( + allocator, + propertyList, + format.value, + options, + error, + ); +} + +@ffi.Native< + CFPropertyListRef Function(CFAllocatorRef, CFPropertyListRef, CFOptionFlags) +>() +external CFPropertyListRef CFPropertyListCreateDeepCopy( + CFAllocatorRef allocator, + CFPropertyListRef propertyList, + int mutabilityOption, +); + +@Deprecated('Use CFPropertyListCreateWithStream instead.') +@ffi.Native< + CFPropertyListRef Function( + CFAllocatorRef, + CFReadStreamRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFPropertyListRef CFPropertyListCreateFromStream( + CFAllocatorRef allocator, + CFReadStreamRef stream, + int streamLength, + int mutabilityOption, + ffi.Pointer format, + ffi.Pointer errorString, +); + +@Deprecated('Use CFPropertyListCreateWithData instead.') +@ffi.Native< + CFPropertyListRef Function( + CFAllocatorRef, + CFDataRef, + CFOptionFlags, + ffi.Pointer, + ) +>() +external CFPropertyListRef CFPropertyListCreateFromXMLData( + CFAllocatorRef allocator, + CFDataRef xmlData, + int mutabilityOption, + ffi.Pointer errorString, +); + +@ffi.Native< + CFPropertyListRef Function( + CFAllocatorRef, + CFDataRef, + CFOptionFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFPropertyListRef CFPropertyListCreateWithData( + CFAllocatorRef allocator, + CFDataRef data, + int options, + ffi.Pointer format, + ffi.Pointer error, +); + +@ffi.Native< + CFPropertyListRef Function( + CFAllocatorRef, + CFReadStreamRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFPropertyListRef CFPropertyListCreateWithStream( + CFAllocatorRef allocator, + CFReadStreamRef stream, + int streamLength, + int options, + ffi.Pointer format, + ffi.Pointer error, +); + +@Deprecated('Use CFPropertyListCreateData instead.') +@ffi.Native() +external CFDataRef CFPropertyListCreateXMLData( + CFAllocatorRef allocator, + CFPropertyListRef propertyList, +); + +@ffi.Native( + symbol: 'CFPropertyListIsValid', +) +external int _CFPropertyListIsValid(CFPropertyListRef plist, int format); + +DartBoolean CFPropertyListIsValid( + CFPropertyListRef plist, + CFPropertyListFormat format, +) { + return _CFPropertyListIsValid(plist, format.value); +} + +@ffi.Native< + CFIndex Function( + CFPropertyListRef, + CFWriteStreamRef, + CFIndex, + CFOptionFlags, + ffi.Pointer, + ) +>(symbol: 'CFPropertyListWrite') +external int _CFPropertyListWrite( + CFPropertyListRef propertyList, + CFWriteStreamRef stream, + int format, + int options, + ffi.Pointer error, +); + +DartCFIndex CFPropertyListWrite( + CFPropertyListRef propertyList, + CFWriteStreamRef stream, + CFPropertyListFormat format, + DartCFOptionFlags options, + ffi.Pointer error, +) { + return _CFPropertyListWrite( + propertyList, + stream, + format.value, + options, + error, + ); +} + +@Deprecated('Use CFPropertyListWrite instead.') +@ffi.Native< + CFIndex Function( + CFPropertyListRef, + CFWriteStreamRef, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'CFPropertyListWriteToStream') +external int _CFPropertyListWriteToStream( + CFPropertyListRef propertyList, + CFWriteStreamRef stream, + int format, + ffi.Pointer errorString, +); + +DartCFIndex CFPropertyListWriteToStream( + CFPropertyListRef propertyList, + CFWriteStreamRef stream, + CFPropertyListFormat format, + ffi.Pointer errorString, +) { + return _CFPropertyListWriteToStream( + propertyList, + stream, + format.value, + errorString, + ); +} + +@ffi.Native() +external void CFReadStreamClose(CFReadStreamRef stream); + +@ffi.Native( + symbol: 'CFReadStreamCopyDispatchQueue', +) +external dispatch_queue_t _CFReadStreamCopyDispatchQueue( + CFReadStreamRef stream, +); + +Dartdispatch_queue_t CFReadStreamCopyDispatchQueue(CFReadStreamRef stream) { + return objc.NSObject.fromPointer( + _CFReadStreamCopyDispatchQueue(stream), + retain: true, + release: true, + ); +} + +@ffi.Native() +external CFErrorRef CFReadStreamCopyError(CFReadStreamRef stream); + +@ffi.Native() +external CFTypeRef CFReadStreamCopyProperty( + CFReadStreamRef stream, + CFStreamPropertyKey propertyName, +); + +@Deprecated('Use NSURLSession API for http requests') +@ffi.Native() +external CFReadStreamRef CFReadStreamCreateForHTTPRequest( + CFAllocatorRef alloc, + CFHTTPMessageRef request, +); + +@Deprecated('Use NSURLSession API for http requests') +@ffi.Native< + CFReadStreamRef Function(CFAllocatorRef, CFHTTPMessageRef, CFReadStreamRef) +>() +external CFReadStreamRef CFReadStreamCreateForStreamedHTTPRequest( + CFAllocatorRef alloc, + CFHTTPMessageRef requestHeaders, + CFReadStreamRef requestBody, +); + +@ffi.Native< + CFReadStreamRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorRef, + ) +>() +external CFReadStreamRef CFReadStreamCreateWithBytesNoCopy( + CFAllocatorRef alloc, + ffi.Pointer bytes, + int length, + CFAllocatorRef bytesDeallocator, +); + +@Deprecated('Use NSURLSessionAPI for ftp requests') +@ffi.Native() +external CFReadStreamRef CFReadStreamCreateWithFTPURL( + CFAllocatorRef alloc, + CFURLRef ftpURL, +); + +@ffi.Native() +external CFReadStreamRef CFReadStreamCreateWithFile( + CFAllocatorRef alloc, + CFURLRef fileURL, +); + +@ffi.Native< + ffi.Pointer Function(CFReadStreamRef, CFIndex, ffi.Pointer) +>() +external ffi.Pointer CFReadStreamGetBuffer( + CFReadStreamRef stream, + int maxBytesToRead, + ffi.Pointer numBytesRead, +); + +@ffi.Native() +external CFStreamError CFReadStreamGetError(CFReadStreamRef stream); + +@ffi.Native(symbol: 'CFReadStreamGetStatus') +external int _CFReadStreamGetStatus(CFReadStreamRef stream); + +CFStreamStatus CFReadStreamGetStatus(CFReadStreamRef stream) { + return CFStreamStatus.fromValue(_CFReadStreamGetStatus(stream)); +} + +@ffi.Native() +external int CFReadStreamGetTypeID(); + +@ffi.Native() +external int CFReadStreamHasBytesAvailable(CFReadStreamRef stream); + +@ffi.Native() +external int CFReadStreamOpen(CFReadStreamRef stream); + +@ffi.Native, CFIndex)>() +external int CFReadStreamRead( + CFReadStreamRef stream, + ffi.Pointer buffer, + int bufferLength, +); + +@ffi.Native() +external void CFReadStreamScheduleWithRunLoop( + CFReadStreamRef stream, + CFRunLoopRef runLoop, + CFRunLoopMode runLoopMode, +); + +@ffi.Native< + Boolean Function( + CFReadStreamRef, + CFOptionFlags, + CFReadStreamClientCallBack, + ffi.Pointer, + ) +>() +external int CFReadStreamSetClient( + CFReadStreamRef stream, + int streamEvents, + CFReadStreamClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@ffi.Native( + symbol: 'CFReadStreamSetDispatchQueue', +) +external void _CFReadStreamSetDispatchQueue( + CFReadStreamRef stream, + dispatch_queue_t q, +); + +void CFReadStreamSetDispatchQueue( + CFReadStreamRef stream, + Dartdispatch_queue_t q, +) { + final _$$ref = q.ref; + return _CFReadStreamSetDispatchQueue(stream, _$$ref.pointer); +} + +@ffi.Native() +external int CFReadStreamSetProperty( + CFReadStreamRef stream, + CFStreamPropertyKey propertyName, + CFTypeRef propertyValue, +); + +@ffi.Native() +external void CFReadStreamUnscheduleFromRunLoop( + CFReadStreamRef stream, + CFRunLoopRef runLoop, + CFRunLoopMode runLoopMode, +); + +@ffi.Native() +external void CFRelease(CFTypeRef cf); + +@ffi.Native() +external CFTypeRef CFRetain(CFTypeRef cf); + +@ffi.Native() +external void CFRunLoopAddCommonMode(CFRunLoopRef rl, CFRunLoopMode mode); + +@ffi.Native< + ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) +>() +external void CFRunLoopAddObserver( + CFRunLoopRef rl, + CFRunLoopObserverRef observer, + CFRunLoopMode mode, +); + +@ffi.Native< + ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) +>() +external void CFRunLoopAddSource( + CFRunLoopRef rl, + CFRunLoopSourceRef source, + CFRunLoopMode mode, +); + +@ffi.Native() +external void CFRunLoopAddTimer( + CFRunLoopRef rl, + CFRunLoopTimerRef timer, + CFRunLoopMode mode, +); + +@ffi.Native< + Boolean Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) +>() +external int CFRunLoopContainsObserver( + CFRunLoopRef rl, + CFRunLoopObserverRef observer, + CFRunLoopMode mode, +); + +@ffi.Native() +external int CFRunLoopContainsSource( + CFRunLoopRef rl, + CFRunLoopSourceRef source, + CFRunLoopMode mode, +); + +@ffi.Native() +external int CFRunLoopContainsTimer( + CFRunLoopRef rl, + CFRunLoopTimerRef timer, + CFRunLoopMode mode, +); + +@ffi.Native() +external CFArrayRef CFRunLoopCopyAllModes(CFRunLoopRef rl); + +@ffi.Native() +external CFRunLoopMode CFRunLoopCopyCurrentMode(CFRunLoopRef rl); + +@ffi.Native() +external CFRunLoopRef CFRunLoopGetCurrent(); + +@ffi.Native() +external CFRunLoopRef CFRunLoopGetMain(); + +@ffi.Native() +external double CFRunLoopGetNextTimerFireDate( + CFRunLoopRef rl, + CFRunLoopMode mode, +); + +@ffi.Native() +external int CFRunLoopGetTypeID(); + +@ffi.Native() +external int CFRunLoopIsWaiting(CFRunLoopRef rl); + +@ffi.Native< + CFRunLoopObserverRef Function( + CFAllocatorRef, + CFOptionFlags, + Boolean, + CFIndex, + CFRunLoopObserverCallBack, + ffi.Pointer, + ) +>() +external CFRunLoopObserverRef CFRunLoopObserverCreate( + CFAllocatorRef allocator, + int activities, + int repeats, + int order, + CFRunLoopObserverCallBack callout, + ffi.Pointer context, +); + +@ffi.Native< + CFRunLoopObserverRef Function( + CFAllocatorRef, + CFOptionFlags, + Boolean, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'CFRunLoopObserverCreateWithHandler') +external CFRunLoopObserverRef _CFRunLoopObserverCreateWithHandler( + CFAllocatorRef allocator, + int activities, + int repeats, + int order, + ffi.Pointer block, +); + +CFRunLoopObserverRef CFRunLoopObserverCreateWithHandler( + CFAllocatorRef allocator, + DartCFOptionFlags activities, + DartBoolean repeats, + DartCFIndex order, + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + block, +) { + final _$$ref = block.ref; + return _CFRunLoopObserverCreateWithHandler( + allocator, + activities, + repeats, + order, + _$$ref.pointer, + ); +} + +@ffi.Native() +external int CFRunLoopObserverDoesRepeat(CFRunLoopObserverRef observer); + +@ffi.Native() +external int CFRunLoopObserverGetActivities(CFRunLoopObserverRef observer); + +@ffi.Native< + ffi.Void Function(CFRunLoopObserverRef, ffi.Pointer) +>() +external void CFRunLoopObserverGetContext( + CFRunLoopObserverRef observer, + ffi.Pointer context, +); + +@ffi.Native() +external int CFRunLoopObserverGetOrder(CFRunLoopObserverRef observer); + +@ffi.Native() +external int CFRunLoopObserverGetTypeID(); + +@ffi.Native() +external void CFRunLoopObserverInvalidate(CFRunLoopObserverRef observer); + +@ffi.Native() +external int CFRunLoopObserverIsValid(CFRunLoopObserverRef observer); + +@ffi.Native< + ffi.Void Function(CFRunLoopRef, CFTypeRef, ffi.Pointer) +>(symbol: 'CFRunLoopPerformBlock') +external void _CFRunLoopPerformBlock( + CFRunLoopRef rl, + CFTypeRef mode, + ffi.Pointer block, +); + +void CFRunLoopPerformBlock( + CFRunLoopRef rl, + CFTypeRef mode, + objc.ObjCBlock block, +) { + final _$$ref = block.ref; + return _CFRunLoopPerformBlock(rl, mode, _$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) +>() +external void CFRunLoopRemoveObserver( + CFRunLoopRef rl, + CFRunLoopObserverRef observer, + CFRunLoopMode mode, +); + +@ffi.Native< + ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) +>() +external void CFRunLoopRemoveSource( + CFRunLoopRef rl, + CFRunLoopSourceRef source, + CFRunLoopMode mode, +); + +@ffi.Native() +external void CFRunLoopRemoveTimer( + CFRunLoopRef rl, + CFRunLoopTimerRef timer, + CFRunLoopMode mode, +); + +@ffi.Native() +external void CFRunLoopRun(); + +@ffi.Native( + symbol: 'CFRunLoopRunInMode', +) +external int _CFRunLoopRunInMode( + CFRunLoopMode mode, + double seconds, + int returnAfterSourceHandled, +); + +CFRunLoopRunResult CFRunLoopRunInMode( + CFRunLoopMode mode, + DartCFTimeInterval seconds, + DartBoolean returnAfterSourceHandled, +) { + return CFRunLoopRunResult.fromValue( + _CFRunLoopRunInMode(mode, seconds, returnAfterSourceHandled), + ); +} + +@ffi.Native< + CFRunLoopSourceRef Function( + CFAllocatorRef, + CFIndex, + ffi.Pointer, + ) +>() +external CFRunLoopSourceRef CFRunLoopSourceCreate( + CFAllocatorRef allocator, + int order, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Void Function(CFRunLoopSourceRef, ffi.Pointer) +>() +external void CFRunLoopSourceGetContext( + CFRunLoopSourceRef source, + ffi.Pointer context, +); + +@ffi.Native() +external int CFRunLoopSourceGetOrder(CFRunLoopSourceRef source); + +@ffi.Native() +external int CFRunLoopSourceGetTypeID(); + +@ffi.Native() +external void CFRunLoopSourceInvalidate(CFRunLoopSourceRef source); + +@ffi.Native() +external int CFRunLoopSourceIsValid(CFRunLoopSourceRef source); + +@ffi.Native() +external void CFRunLoopSourceSignal(CFRunLoopSourceRef source); + +@ffi.Native() +external void CFRunLoopStop(CFRunLoopRef rl); + +@ffi.Native< + CFRunLoopTimerRef Function( + CFAllocatorRef, + CFAbsoluteTime, + CFTimeInterval, + CFOptionFlags, + CFIndex, + CFRunLoopTimerCallBack, + ffi.Pointer, + ) +>() +external CFRunLoopTimerRef CFRunLoopTimerCreate( + CFAllocatorRef allocator, + double fireDate, + double interval, + int flags, + int order, + CFRunLoopTimerCallBack callout, + ffi.Pointer context, +); + +@ffi.Native< + CFRunLoopTimerRef Function( + CFAllocatorRef, + CFAbsoluteTime, + CFTimeInterval, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ) +>(symbol: 'CFRunLoopTimerCreateWithHandler') +external CFRunLoopTimerRef _CFRunLoopTimerCreateWithHandler( + CFAllocatorRef allocator, + double fireDate, + double interval, + int flags, + int order, + ffi.Pointer block, +); + +CFRunLoopTimerRef CFRunLoopTimerCreateWithHandler( + CFAllocatorRef allocator, + DartCFTimeInterval fireDate, + DartCFTimeInterval interval, + DartCFOptionFlags flags, + DartCFIndex order, + objc.ObjCBlock)> block, +) { + final _$$ref = block.ref; + return _CFRunLoopTimerCreateWithHandler( + allocator, + fireDate, + interval, + flags, + order, + _$$ref.pointer, + ); +} + +@ffi.Native() +external int CFRunLoopTimerDoesRepeat(CFRunLoopTimerRef timer); + +@ffi.Native< + ffi.Void Function(CFRunLoopTimerRef, ffi.Pointer) +>() +external void CFRunLoopTimerGetContext( + CFRunLoopTimerRef timer, + ffi.Pointer context, +); + +@ffi.Native() +external double CFRunLoopTimerGetInterval(CFRunLoopTimerRef timer); + +@ffi.Native() +external double CFRunLoopTimerGetNextFireDate(CFRunLoopTimerRef timer); + +@ffi.Native() +external int CFRunLoopTimerGetOrder(CFRunLoopTimerRef timer); + +@ffi.Native() +external double CFRunLoopTimerGetTolerance(CFRunLoopTimerRef timer); + +@ffi.Native() +external int CFRunLoopTimerGetTypeID(); + +@ffi.Native() +external void CFRunLoopTimerInvalidate(CFRunLoopTimerRef timer); + +@ffi.Native() +external int CFRunLoopTimerIsValid(CFRunLoopTimerRef timer); + +@ffi.Native() +external void CFRunLoopTimerSetNextFireDate( + CFRunLoopTimerRef timer, + double fireDate, +); + +@ffi.Native() +external void CFRunLoopTimerSetTolerance( + CFRunLoopTimerRef timer, + double tolerance, +); + +@ffi.Native() +external void CFRunLoopWakeUp(CFRunLoopRef rl); + +@ffi.Native)>() +external void CFSetAddValue( + CFMutableSetRef theSet, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Void Function(CFSetRef, CFSetApplierFunction, ffi.Pointer) +>() +external void CFSetApplyFunction( + CFSetRef theSet, + CFSetApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native)>() +external int CFSetContainsValue(CFSetRef theSet, ffi.Pointer value); + +@ffi.Native< + CFSetRef Function( + CFAllocatorRef, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ) +>() +external CFSetRef CFSetCreate( + CFAllocatorRef allocator, + ffi.Pointer> values, + int numValues, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFSetRef CFSetCreateCopy(CFAllocatorRef allocator, CFSetRef theSet); + +@ffi.Native< + CFMutableSetRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) +>() +external CFMutableSetRef CFSetCreateMutable( + CFAllocatorRef allocator, + int capacity, + ffi.Pointer callBacks, +); + +@ffi.Native() +external CFMutableSetRef CFSetCreateMutableCopy( + CFAllocatorRef allocator, + int capacity, + CFSetRef theSet, +); + +@ffi.Native() +external int CFSetGetCount(CFSetRef theSet); + +@ffi.Native)>() +external int CFSetGetCountOfValue(CFSetRef theSet, ffi.Pointer value); + +@ffi.Native() +external int CFSetGetTypeID(); + +@ffi.Native Function(CFSetRef, ffi.Pointer)>() +external ffi.Pointer CFSetGetValue( + CFSetRef theSet, + ffi.Pointer value, +); + +@ffi.Native< + Boolean Function( + CFSetRef, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CFSetGetValueIfPresent( + CFSetRef theSet, + ffi.Pointer candidate, + ffi.Pointer> value, +); + +@ffi.Native>)>() +external void CFSetGetValues( + CFSetRef theSet, + ffi.Pointer> values, +); + +@ffi.Native() +external void CFSetRemoveAllValues(CFMutableSetRef theSet); + +@ffi.Native)>() +external void CFSetRemoveValue( + CFMutableSetRef theSet, + ffi.Pointer value, +); + +@ffi.Native)>() +external void CFSetReplaceValue( + CFMutableSetRef theSet, + ffi.Pointer value, +); + +@ffi.Native)>() +external void CFSetSetValue( + CFMutableSetRef theSet, + ffi.Pointer value, +); + +@ffi.Native() +external void CFShow(CFTypeRef obj); + +@ffi.Native() +external void CFShowStr(CFStringRef str); + +@ffi.Native( + symbol: 'CFSocketConnectToAddress', +) +external int _CFSocketConnectToAddress( + CFSocketRef s, + CFDataRef address, + double timeout, +); + +CFSocketError CFSocketConnectToAddress( + CFSocketRef s, + CFDataRef address, + DartCFTimeInterval timeout, +) { + return CFSocketError.fromValue( + _CFSocketConnectToAddress(s, address, timeout), + ); +} + +@ffi.Native() +external CFDataRef CFSocketCopyAddress(CFSocketRef s); + +@ffi.Native() +external CFDataRef CFSocketCopyPeerAddress(CFSocketRef s); + +@ffi.Native< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CFSocketCopyRegisteredSocketSignature') +external int _CFSocketCopyRegisteredSocketSignature( + ffi.Pointer nameServerSignature, + double timeout, + CFStringRef name, + ffi.Pointer signature, + ffi.Pointer nameServerAddress, +); + +CFSocketError CFSocketCopyRegisteredSocketSignature( + ffi.Pointer nameServerSignature, + DartCFTimeInterval timeout, + CFStringRef name, + ffi.Pointer signature, + ffi.Pointer nameServerAddress, +) { + return CFSocketError.fromValue( + _CFSocketCopyRegisteredSocketSignature( + nameServerSignature, + timeout, + name, + signature, + nameServerAddress, + ), + ); +} + +@ffi.Native< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CFSocketCopyRegisteredValue') +external int _CFSocketCopyRegisteredValue( + ffi.Pointer nameServerSignature, + double timeout, + CFStringRef name, + ffi.Pointer value, + ffi.Pointer nameServerAddress, +); + +CFSocketError CFSocketCopyRegisteredValue( + ffi.Pointer nameServerSignature, + DartCFTimeInterval timeout, + CFStringRef name, + ffi.Pointer value, + ffi.Pointer nameServerAddress, +) { + return CFSocketError.fromValue( + _CFSocketCopyRegisteredValue( + nameServerSignature, + timeout, + name, + value, + nameServerAddress, + ), + ); +} + +@ffi.Native< + CFSocketRef Function( + CFAllocatorRef, + SInt32, + SInt32, + SInt32, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + ) +>() +external CFSocketRef CFSocketCreate( + CFAllocatorRef allocator, + int protocolFamily, + int socketType, + int protocol, + int callBackTypes, + CFSocketCallBack callout, + ffi.Pointer context, +); + +@ffi.Native< + CFSocketRef Function( + CFAllocatorRef, + ffi.Pointer, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + CFTimeInterval, + ) +>() +external CFSocketRef CFSocketCreateConnectedToSocketSignature( + CFAllocatorRef allocator, + ffi.Pointer signature, + int callBackTypes, + CFSocketCallBack callout, + ffi.Pointer context, + double timeout, +); + +@ffi.Native() +external CFRunLoopSourceRef CFSocketCreateRunLoopSource( + CFAllocatorRef allocator, + CFSocketRef s, + int order, +); + +@ffi.Native< + CFSocketRef Function( + CFAllocatorRef, + CFSocketNativeHandle, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + ) +>() +external CFSocketRef CFSocketCreateWithNative( + CFAllocatorRef allocator, + int sock, + int callBackTypes, + CFSocketCallBack callout, + ffi.Pointer context, +); + +@ffi.Native< + CFSocketRef Function( + CFAllocatorRef, + ffi.Pointer, + CFOptionFlags, + CFSocketCallBack, + ffi.Pointer, + ) +>() +external CFSocketRef CFSocketCreateWithSocketSignature( + CFAllocatorRef allocator, + ffi.Pointer signature, + int callBackTypes, + CFSocketCallBack callout, + ffi.Pointer context, +); + +@ffi.Native() +external void CFSocketDisableCallBacks(CFSocketRef s, int callBackTypes); + +@ffi.Native() +external void CFSocketEnableCallBacks(CFSocketRef s, int callBackTypes); + +@ffi.Native)>() +external void CFSocketGetContext( + CFSocketRef s, + ffi.Pointer context, +); + +@ffi.Native() +external int CFSocketGetDefaultNameRegistryPortNumber(); + +@ffi.Native() +external int CFSocketGetNative(CFSocketRef s); + +@ffi.Native() +external int CFSocketGetSocketFlags(CFSocketRef s); + +@ffi.Native() +external int CFSocketGetTypeID(); + +@ffi.Native() +external void CFSocketInvalidate(CFSocketRef s); + +@ffi.Native() +external int CFSocketIsValid(CFSocketRef s); + +@ffi.Native< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + ffi.Pointer, + ) +>(symbol: 'CFSocketRegisterSocketSignature') +external int _CFSocketRegisterSocketSignature( + ffi.Pointer nameServerSignature, + double timeout, + CFStringRef name, + ffi.Pointer signature, +); + +CFSocketError CFSocketRegisterSocketSignature( + ffi.Pointer nameServerSignature, + DartCFTimeInterval timeout, + CFStringRef name, + ffi.Pointer signature, +) { + return CFSocketError.fromValue( + _CFSocketRegisterSocketSignature( + nameServerSignature, + timeout, + name, + signature, + ), + ); +} + +@ffi.Native< + CFIndex Function( + ffi.Pointer, + CFTimeInterval, + CFStringRef, + CFPropertyListRef, + ) +>(symbol: 'CFSocketRegisterValue') +external int _CFSocketRegisterValue( + ffi.Pointer nameServerSignature, + double timeout, + CFStringRef name, + CFPropertyListRef value, +); + +CFSocketError CFSocketRegisterValue( + ffi.Pointer nameServerSignature, + DartCFTimeInterval timeout, + CFStringRef name, + CFPropertyListRef value, +) { + return CFSocketError.fromValue( + _CFSocketRegisterValue(nameServerSignature, timeout, name, value), + ); +} + +@ffi.Native< + CFIndex Function(CFSocketRef, CFDataRef, CFDataRef, CFTimeInterval) +>(symbol: 'CFSocketSendData') +external int _CFSocketSendData( + CFSocketRef s, + CFDataRef address, + CFDataRef data, + double timeout, +); + +CFSocketError CFSocketSendData( + CFSocketRef s, + CFDataRef address, + CFDataRef data, + DartCFTimeInterval timeout, +) { + return CFSocketError.fromValue(_CFSocketSendData(s, address, data, timeout)); +} + +@ffi.Native( + symbol: 'CFSocketSetAddress', +) +external int _CFSocketSetAddress(CFSocketRef s, CFDataRef address); + +CFSocketError CFSocketSetAddress(CFSocketRef s, CFDataRef address) { + return CFSocketError.fromValue(_CFSocketSetAddress(s, address)); +} + +@ffi.Native() +external void CFSocketSetDefaultNameRegistryPortNumber(int port); + +@ffi.Native() +external void CFSocketSetSocketFlags(CFSocketRef s, int flags); + +@ffi.Native< + CFIndex Function(ffi.Pointer, CFTimeInterval, CFStringRef) +>(symbol: 'CFSocketUnregister') +external int _CFSocketUnregister( + ffi.Pointer nameServerSignature, + double timeout, + CFStringRef name, +); + +CFSocketError CFSocketUnregister( + ffi.Pointer nameServerSignature, + DartCFTimeInterval timeout, + CFStringRef name, +) { + return CFSocketError.fromValue( + _CFSocketUnregister(nameServerSignature, timeout, name), + ); +} + +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>() +external void CFStreamCreateBoundPair( + CFAllocatorRef alloc, + ffi.Pointer readStream, + ffi.Pointer writeStream, + int transferBufferSize, +); + +@Deprecated('Use nw_connection_t in Network framework instead') +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStreamCreatePairWithPeerSocketSignature( + CFAllocatorRef alloc, + ffi.Pointer signature, + ffi.Pointer readStream, + ffi.Pointer writeStream, +); + +@Deprecated('Use nw_connection_t in Network framework instead') +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + CFSocketNativeHandle, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStreamCreatePairWithSocket( + CFAllocatorRef alloc, + int sock, + ffi.Pointer readStream, + ffi.Pointer writeStream, +); + +@Deprecated('Use Network framework instead') +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + CFHostRef, + SInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStreamCreatePairWithSocketToCFHost( + CFAllocatorRef alloc, + CFHostRef host, + int port, + ffi.Pointer readStream, + ffi.Pointer writeStream, +); + +@Deprecated('Use nw_connection_t in Network framework instead') +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + CFStringRef, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStreamCreatePairWithSocketToHost( + CFAllocatorRef alloc, + CFStringRef host, + int port, + ffi.Pointer readStream, + ffi.Pointer writeStream, +); + +@Deprecated('Use Network framework instead') +@ffi.Native< + ffi.Void Function( + CFAllocatorRef, + CFNetServiceRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStreamCreatePairWithSocketToNetService( + CFAllocatorRef alloc, + CFNetServiceRef service, + ffi.Pointer readStream, + ffi.Pointer writeStream, +); + +@ffi.Native() +external void CFStringAppend( + CFMutableStringRef theString, + CFStringRef appendedString, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFStringEncoding) +>() +external void CFStringAppendCString( + CFMutableStringRef theString, + ffi.Pointer cStr, + int encoding, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFIndex) +>() +external void CFStringAppendCharacters( + CFMutableStringRef theString, + ffi.Pointer chars, + int numChars, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef) +>() +external void CFStringAppendFormat( + CFMutableStringRef theString, + CFDictionaryRef formatOptions, + CFStringRef format, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef, va_list) +>() +external void CFStringAppendFormatAndArguments( + CFMutableStringRef theString, + CFDictionaryRef formatOptions, + CFStringRef format, + va_list arguments, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, ConstStr255Param, CFStringEncoding) +>() +external void CFStringAppendPascalString( + CFMutableStringRef theString, + ConstStr255Param pStr, + int encoding, +); + +@ffi.Native() +external void CFStringCapitalize( + CFMutableStringRef theString, + CFLocaleRef locale, +); + +@ffi.Native( + symbol: 'CFStringCompare', +) +external int _CFStringCompare( + CFStringRef theString1, + CFStringRef theString2, + int compareOptions, +); + +CFComparisonResult CFStringCompare( + CFStringRef theString1, + CFStringRef theString2, + DartCFOptionFlags compareOptions, +) { + return CFComparisonResult.fromValue( + _CFStringCompare(theString1, theString2, compareOptions), + ); +} + +@ffi.Native( + symbol: 'CFStringCompareWithOptions', +) +external int _CFStringCompareWithOptions( + CFStringRef theString1, + CFStringRef theString2, + CFRange rangeToCompare, + int compareOptions, +); + +CFComparisonResult CFStringCompareWithOptions( + CFStringRef theString1, + CFStringRef theString2, + CFRange rangeToCompare, + DartCFOptionFlags compareOptions, +) { + return CFComparisonResult.fromValue( + _CFStringCompareWithOptions( + theString1, + theString2, + rangeToCompare, + compareOptions, + ), + ); +} + +@ffi.Native< + CFIndex Function( + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + CFLocaleRef, + ) +>(symbol: 'CFStringCompareWithOptionsAndLocale') +external int _CFStringCompareWithOptionsAndLocale( + CFStringRef theString1, + CFStringRef theString2, + CFRange rangeToCompare, + int compareOptions, + CFLocaleRef locale, +); + +CFComparisonResult CFStringCompareWithOptionsAndLocale( + CFStringRef theString1, + CFStringRef theString2, + CFRange rangeToCompare, + DartCFOptionFlags compareOptions, + CFLocaleRef locale, +) { + return CFComparisonResult.fromValue( + _CFStringCompareWithOptionsAndLocale( + theString1, + theString2, + rangeToCompare, + compareOptions, + locale, + ), + ); +} + +@ffi.Native() +external CFStringRef CFStringConvertEncodingToIANACharSetName(int encoding); + +@ffi.Native() +external int CFStringConvertEncodingToNSStringEncoding(int encoding); + +@ffi.Native() +external int CFStringConvertEncodingToWindowsCodepage(int encoding); + +@ffi.Native() +external int CFStringConvertIANACharSetNameToEncoding(CFStringRef theString); + +@ffi.Native() +external int CFStringConvertNSStringEncodingToEncoding(int encoding); + +@ffi.Native() +external int CFStringConvertWindowsCodepageToEncoding(int codepage); + +@ffi.Native() +external CFArrayRef CFStringCreateArrayBySeparatingStrings( + CFAllocatorRef alloc, + CFStringRef theString, + CFStringRef separatorString, +); + +@ffi.Native< + CFArrayRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + ) +>() +external CFArrayRef CFStringCreateArrayWithFindResults( + CFAllocatorRef alloc, + CFStringRef theString, + CFStringRef stringToFind, + CFRange rangeToSearch, + int compareOptions, +); + +@ffi.Native() +external CFStringRef CFStringCreateByCombiningStrings( + CFAllocatorRef alloc, + CFArrayRef theArray, + CFStringRef separatorString, +); + +@ffi.Native() +external CFStringRef CFStringCreateCopy( + CFAllocatorRef alloc, + CFStringRef theString, +); + +@ffi.Native< + CFDataRef Function(CFAllocatorRef, CFStringRef, CFStringEncoding, UInt8) +>() +external CFDataRef CFStringCreateExternalRepresentation( + CFAllocatorRef alloc, + CFStringRef theString, + int encoding, + int lossByte, +); + +@ffi.Native() +external CFStringRef CFStringCreateFromExternalRepresentation( + CFAllocatorRef alloc, + CFDataRef data, + int encoding, +); + +@ffi.Native() +external CFMutableStringRef CFStringCreateMutable( + CFAllocatorRef alloc, + int maxLength, +); + +@ffi.Native() +external CFMutableStringRef CFStringCreateMutableCopy( + CFAllocatorRef alloc, + int maxLength, + CFStringRef theString, +); + +@ffi.Native< + CFMutableStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFIndex, + CFAllocatorRef, + ) +>() +external CFMutableStringRef CFStringCreateMutableWithExternalCharactersNoCopy( + CFAllocatorRef alloc, + ffi.Pointer chars, + int numChars, + int capacity, + CFAllocatorRef externalCharactersAllocator, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + CFDictionaryRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external CFStringRef CFStringCreateStringWithValidatedFormat( + CFAllocatorRef alloc, + CFDictionaryRef formatOptions, + CFStringRef validFormatSpecifiers, + CFStringRef format, + ffi.Pointer errorPtr, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + CFDictionaryRef, + CFStringRef, + CFStringRef, + va_list, + ffi.Pointer, + ) +>() +external CFStringRef CFStringCreateStringWithValidatedFormatAndArguments( + CFAllocatorRef alloc, + CFDictionaryRef formatOptions, + CFStringRef validFormatSpecifiers, + CFStringRef format, + va_list arguments, + ffi.Pointer errorPtr, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + Boolean, + ) +>() +external CFStringRef CFStringCreateWithBytes( + CFAllocatorRef alloc, + ffi.Pointer bytes, + int numBytes, + int encoding, + int isExternalRepresentation, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + Boolean, + CFAllocatorRef, + ) +>() +external CFStringRef CFStringCreateWithBytesNoCopy( + CFAllocatorRef alloc, + ffi.Pointer bytes, + int numBytes, + int encoding, + int isExternalRepresentation, + CFAllocatorRef contentsDeallocator, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFStringEncoding) +>() +external CFStringRef CFStringCreateWithCString( + CFAllocatorRef alloc, + ffi.Pointer cStr, + int encoding, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFStringEncoding, + CFAllocatorRef, + ) +>() +external CFStringRef CFStringCreateWithCStringNoCopy( + CFAllocatorRef alloc, + ffi.Pointer cStr, + int encoding, + CFAllocatorRef contentsDeallocator, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) +>() +external CFStringRef CFStringCreateWithCharacters( + CFAllocatorRef alloc, + ffi.Pointer chars, + int numChars, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFAllocatorRef, + ) +>() +external CFStringRef CFStringCreateWithCharactersNoCopy( + CFAllocatorRef alloc, + ffi.Pointer chars, + int numChars, + CFAllocatorRef contentsDeallocator, +); + +@ffi.Native)>() +external CFStringRef CFStringCreateWithFileSystemRepresentation( + CFAllocatorRef alloc, + ffi.Pointer buffer, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef) +>() +external CFStringRef CFStringCreateWithFormat( + CFAllocatorRef alloc, + CFDictionaryRef formatOptions, + CFStringRef format, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef, va_list) +>() +external CFStringRef CFStringCreateWithFormatAndArguments( + CFAllocatorRef alloc, + CFDictionaryRef formatOptions, + CFStringRef format, + va_list arguments, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, ConstStr255Param, CFStringEncoding) +>() +external CFStringRef CFStringCreateWithPascalString( + CFAllocatorRef alloc, + ConstStr255Param pStr, + int encoding, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + ConstStr255Param, + CFStringEncoding, + CFAllocatorRef, + ) +>() +external CFStringRef CFStringCreateWithPascalStringNoCopy( + CFAllocatorRef alloc, + ConstStr255Param pStr, + int encoding, + CFAllocatorRef contentsDeallocator, +); + +@ffi.Native() +external CFStringRef CFStringCreateWithSubstring( + CFAllocatorRef alloc, + CFStringRef str, + CFRange range, +); + +@ffi.Native() +external void CFStringDelete(CFMutableStringRef theString, CFRange range); + +@ffi.Native() +external CFRange CFStringFind( + CFStringRef theString, + CFStringRef stringToFind, + int compareOptions, +); + +@ffi.Native< + CFIndex Function( + CFMutableStringRef, + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + ) +>() +external int CFStringFindAndReplace( + CFMutableStringRef theString, + CFStringRef stringToFind, + CFStringRef replacementString, + CFRange rangeToSearch, + int compareOptions, +); + +@ffi.Native< + Boolean Function( + CFStringRef, + CFCharacterSetRef, + CFRange, + CFOptionFlags, + ffi.Pointer, + ) +>() +external int CFStringFindCharacterFromSet( + CFStringRef theString, + CFCharacterSetRef theSet, + CFRange rangeToSearch, + int searchOptions, + ffi.Pointer result, +); + +@ffi.Native< + Boolean Function( + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + ffi.Pointer, + ) +>() +external int CFStringFindWithOptions( + CFStringRef theString, + CFStringRef stringToFind, + CFRange rangeToSearch, + int searchOptions, + ffi.Pointer result, +); + +@ffi.Native< + Boolean Function( + CFStringRef, + CFStringRef, + CFRange, + CFOptionFlags, + CFLocaleRef, + ffi.Pointer, + ) +>() +external int CFStringFindWithOptionsAndLocale( + CFStringRef theString, + CFStringRef stringToFind, + CFRange rangeToSearch, + int searchOptions, + CFLocaleRef locale, + ffi.Pointer result, +); + +@ffi.Native() +external void CFStringFold( + CFMutableStringRef theString, + int theFlags, + CFLocaleRef theLocale, +); + +@ffi.Native< + CFIndex Function( + CFStringRef, + CFRange, + CFStringEncoding, + UInt8, + Boolean, + ffi.Pointer, + CFIndex, + ffi.Pointer, + ) +>() +external int CFStringGetBytes( + CFStringRef theString, + CFRange range, + int encoding, + int lossByte, + int isExternalRepresentation, + ffi.Pointer buffer, + int maxBufLen, + ffi.Pointer usedBufLen, +); + +@ffi.Native< + Boolean Function( + CFStringRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + ) +>() +external int CFStringGetCString( + CFStringRef theString, + ffi.Pointer buffer, + int bufferSize, + int encoding, +); + +@ffi.Native Function(CFStringRef, CFStringEncoding)>() +external ffi.Pointer CFStringGetCStringPtr( + CFStringRef theString, + int encoding, +); + +@ffi.Native() +external int CFStringGetCharacterAtIndex(CFStringRef theString, int idx); + +@ffi.Native)>() +external void CFStringGetCharacters( + CFStringRef theString, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native Function(CFStringRef)>() +external ffi.Pointer CFStringGetCharactersPtr(CFStringRef theString); + +@ffi.Native() +external double CFStringGetDoubleValue(CFStringRef str); + +@ffi.Native() +external int CFStringGetFastestEncoding(CFStringRef theString); + +@ffi.Native, CFIndex)>() +external int CFStringGetFileSystemRepresentation( + CFStringRef string, + ffi.Pointer buffer, + int maxBufLen, +); + +@ffi.Native< + CFIndex Function( + CFStringRef, + CFIndex, + CFRange, + CFOptionFlags, + CFLocaleRef, + ffi.Pointer, + ) +>() +external int CFStringGetHyphenationLocationBeforeIndex( + CFStringRef string, + int location, + CFRange limitRange, + int options, + CFLocaleRef locale, + ffi.Pointer character, +); + +@ffi.Native() +external int CFStringGetIntValue(CFStringRef str); + +@ffi.Native() +external int CFStringGetLength(CFStringRef theString); + +@ffi.Native< + ffi.Void Function( + CFStringRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStringGetLineBounds( + CFStringRef theString, + CFRange range, + ffi.Pointer lineBeginIndex, + ffi.Pointer lineEndIndex, + ffi.Pointer contentsEndIndex, +); + +@ffi.Native Function()>() +external ffi.Pointer CFStringGetListOfAvailableEncodings(); + +@ffi.Native() +external int CFStringGetMaximumSizeForEncoding(int length, int encoding); + +@ffi.Native() +external int CFStringGetMaximumSizeOfFileSystemRepresentation( + CFStringRef string, +); + +@ffi.Native() +external int CFStringGetMostCompatibleMacStringEncoding(int encoding); + +@ffi.Native() +external CFStringRef CFStringGetNameOfEncoding(int encoding); + +@ffi.Native< + ffi.Void Function( + CFStringRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CFStringGetParagraphBounds( + CFStringRef string, + CFRange range, + ffi.Pointer parBeginIndex, + ffi.Pointer parEndIndex, + ffi.Pointer contentsEndIndex, +); + +@ffi.Native< + Boolean Function(CFStringRef, StringPtr, CFIndex, CFStringEncoding) +>() +external int CFStringGetPascalString( + CFStringRef theString, + StringPtr buffer, + int bufferSize, + int encoding, +); + +@ffi.Native() +external ConstStringPtr CFStringGetPascalStringPtr( + CFStringRef theString, + int encoding, +); + +@ffi.Native() +external CFRange CFStringGetRangeOfComposedCharactersAtIndex( + CFStringRef theString, + int theIndex, +); + +@ffi.Native() +external int CFStringGetSmallestEncoding(CFStringRef theString); + +@ffi.Native() +external int CFStringGetSystemEncoding(); + +@ffi.Native() +external int CFStringGetTypeID(); + +@ffi.Native() +external int CFStringHasPrefix(CFStringRef theString, CFStringRef prefix); + +@ffi.Native() +external int CFStringHasSuffix(CFStringRef theString, CFStringRef suffix); + +@ffi.Native() +external void CFStringInsert( + CFMutableStringRef str, + int idx, + CFStringRef insertedStr, +); + +@ffi.Native() +external int CFStringIsEncodingAvailable(int encoding); + +@ffi.Native() +external int CFStringIsHyphenationAvailableForLocale(CFLocaleRef locale); + +@ffi.Native() +external void CFStringLowercase( + CFMutableStringRef theString, + CFLocaleRef locale, +); + +@ffi.Native( + symbol: 'CFStringNormalize', +) +external void _CFStringNormalize(CFMutableStringRef theString, int theForm); + +void CFStringNormalize( + CFMutableStringRef theString, + CFStringNormalizationForm theForm, +) { + return _CFStringNormalize(theString, theForm.value); +} + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, CFStringRef, CFIndex, CFIndex) +>() +external void CFStringPad( + CFMutableStringRef theString, + CFStringRef padString, + int length, + int indexIntoPad, +); + +@ffi.Native() +external void CFStringReplace( + CFMutableStringRef theString, + CFRange range, + CFStringRef replacement, +); + +@ffi.Native() +external void CFStringReplaceAll( + CFMutableStringRef theString, + CFStringRef replacement, +); + +@ffi.Native< + ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFIndex, CFIndex) +>() +external void CFStringSetExternalCharactersNoCopy( + CFMutableStringRef theString, + ffi.Pointer chars, + int length, + int capacity, +); + +@ffi.Native() +external int CFStringTokenizerAdvanceToNextToken( + CFStringTokenizerRef tokenizer, +); + +@ffi.Native() +external CFStringRef CFStringTokenizerCopyBestStringLanguage( + CFStringRef string, + CFRange range, +); + +@ffi.Native() +external CFTypeRef CFStringTokenizerCopyCurrentTokenAttribute( + CFStringTokenizerRef tokenizer, + int attribute, +); + +@ffi.Native< + CFStringTokenizerRef Function( + CFAllocatorRef, + CFStringRef, + CFRange, + CFOptionFlags, + CFLocaleRef, + ) +>() +external CFStringTokenizerRef CFStringTokenizerCreate( + CFAllocatorRef alloc, + CFStringRef string, + CFRange range, + int options, + CFLocaleRef locale, +); + +@ffi.Native< + CFIndex Function( + CFStringTokenizerRef, + ffi.Pointer, + CFIndex, + CFMutableArrayRef, + ) +>() +external int CFStringTokenizerGetCurrentSubTokens( + CFStringTokenizerRef tokenizer, + ffi.Pointer ranges, + int maxRangeLength, + CFMutableArrayRef derivedSubTokens, +); + +@ffi.Native() +external CFRange CFStringTokenizerGetCurrentTokenRange( + CFStringTokenizerRef tokenizer, +); + +@ffi.Native() +external int CFStringTokenizerGetTypeID(); + +@ffi.Native() +external int CFStringTokenizerGoToTokenAtIndex( + CFStringTokenizerRef tokenizer, + int index$1, +); + +@ffi.Native() +external void CFStringTokenizerSetString( + CFStringTokenizerRef tokenizer, + CFStringRef string, + CFRange range, +); + +@ffi.Native< + Boolean Function( + CFMutableStringRef, + ffi.Pointer, + CFStringRef, + Boolean, + ) +>() +external int CFStringTransform( + CFMutableStringRef string, + ffi.Pointer range, + CFStringRef transform, + int reverse, +); + +@ffi.Native() +external void CFStringTrim( + CFMutableStringRef theString, + CFStringRef trimString, +); + +@ffi.Native() +external void CFStringTrimWhitespace(CFMutableStringRef theString); + +@ffi.Native() +external void CFStringUppercase( + CFMutableStringRef theString, + CFLocaleRef locale, +); + +@ffi.Native() +external CFStringRef CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz, double at); + +@ffi.Native() +external CFDictionaryRef CFTimeZoneCopyAbbreviationDictionary(); + +@ffi.Native() +external CFTimeZoneRef CFTimeZoneCopyDefault(); + +@ffi.Native() +external CFArrayRef CFTimeZoneCopyKnownNames(); + +@ffi.Native( + symbol: 'CFTimeZoneCopyLocalizedName', +) +external CFStringRef _CFTimeZoneCopyLocalizedName( + CFTimeZoneRef tz, + int style, + CFLocaleRef locale, +); + +CFStringRef CFTimeZoneCopyLocalizedName( + CFTimeZoneRef tz, + CFTimeZoneNameStyle style, + CFLocaleRef locale, +) { + return _CFTimeZoneCopyLocalizedName(tz, style.value, locale); +} + +@ffi.Native() +external CFTimeZoneRef CFTimeZoneCopySystem(); + +@ffi.Native() +external CFTimeZoneRef CFTimeZoneCreate( + CFAllocatorRef allocator, + CFStringRef name, + CFDataRef data, +); + +@ffi.Native() +external CFTimeZoneRef CFTimeZoneCreateWithName( + CFAllocatorRef allocator, + CFStringRef name, + int tryAbbrev, +); + +@ffi.Native() +external CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT( + CFAllocatorRef allocator, + double ti, +); + +@ffi.Native() +external CFDataRef CFTimeZoneGetData(CFTimeZoneRef tz); + +@ffi.Native() +external double CFTimeZoneGetDaylightSavingTimeOffset( + CFTimeZoneRef tz, + double at, +); + +@ffi.Native() +external CFStringRef CFTimeZoneGetName(CFTimeZoneRef tz); + +@ffi.Native() +external double CFTimeZoneGetNextDaylightSavingTimeTransition( + CFTimeZoneRef tz, + double at, +); + +@ffi.Native() +external double CFTimeZoneGetSecondsFromGMT(CFTimeZoneRef tz, double at); + +@ffi.Native() +external int CFTimeZoneGetTypeID(); + +@ffi.Native() +external int CFTimeZoneIsDaylightSavingTime(CFTimeZoneRef tz, double at); + +@ffi.Native() +external void CFTimeZoneResetSystem(); + +@ffi.Native() +external void CFTimeZoneSetAbbreviationDictionary(CFDictionaryRef dict); + +@ffi.Native() +external void CFTimeZoneSetDefault(CFTimeZoneRef tz); + +@ffi.Native() +external void CFTreeAppendChild(CFTreeRef tree, CFTreeRef newChild); + +@ffi.Native< + ffi.Void Function(CFTreeRef, CFTreeApplierFunction, ffi.Pointer) +>() +external void CFTreeApplyFunctionToChildren( + CFTreeRef tree, + CFTreeApplierFunction applier, + ffi.Pointer context, +); + +@ffi.Native)>() +external CFTreeRef CFTreeCreate( + CFAllocatorRef allocator, + ffi.Pointer context, +); + +@ffi.Native() +external CFTreeRef CFTreeFindRoot(CFTreeRef tree); + +@ffi.Native() +external CFTreeRef CFTreeGetChildAtIndex(CFTreeRef tree, int idx); + +@ffi.Native() +external int CFTreeGetChildCount(CFTreeRef tree); + +@ffi.Native)>() +external void CFTreeGetChildren( + CFTreeRef tree, + ffi.Pointer children, +); + +@ffi.Native)>() +external void CFTreeGetContext( + CFTreeRef tree, + ffi.Pointer context, +); + +@ffi.Native() +external CFTreeRef CFTreeGetFirstChild(CFTreeRef tree); + +@ffi.Native() +external CFTreeRef CFTreeGetNextSibling(CFTreeRef tree); + +@ffi.Native() +external CFTreeRef CFTreeGetParent(CFTreeRef tree); + +@ffi.Native() +external int CFTreeGetTypeID(); + +@ffi.Native() +external void CFTreeInsertSibling(CFTreeRef tree, CFTreeRef newSibling); + +@ffi.Native() +external void CFTreePrependChild(CFTreeRef tree, CFTreeRef newChild); + +@ffi.Native() +external void CFTreeRemove(CFTreeRef tree); + +@ffi.Native() +external void CFTreeRemoveAllChildren(CFTreeRef tree); + +@ffi.Native)>() +external void CFTreeSetContext( + CFTreeRef tree, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Void Function(CFTreeRef, CFComparatorFunction, ffi.Pointer) +>() +external void CFTreeSortChildren( + CFTreeRef tree, + CFComparatorFunction comparator, + ffi.Pointer context, +); + +@ffi.Native() +external int CFURLCanBeDecomposed(CFURLRef anURL); + +@ffi.Native() +external void CFURLClearResourcePropertyCache(CFURLRef url); + +@ffi.Native() +external void CFURLClearResourcePropertyCacheForKey( + CFURLRef url, + CFStringRef key, +); + +@ffi.Native() +external CFURLRef CFURLCopyAbsoluteURL(CFURLRef relativeURL); + +@ffi.Native( + symbol: 'CFURLCopyFileSystemPath', +) +external CFStringRef _CFURLCopyFileSystemPath(CFURLRef anURL, int pathStyle); + +CFStringRef CFURLCopyFileSystemPath(CFURLRef anURL, CFURLPathStyle pathStyle) { + return _CFURLCopyFileSystemPath(anURL, pathStyle.value); +} + +@ffi.Native() +external CFStringRef CFURLCopyFragment( + CFURLRef anURL, + CFStringRef charactersToLeaveEscaped, +); + +@ffi.Native() +external CFStringRef CFURLCopyHostName(CFURLRef anURL); + +@ffi.Native() +external CFStringRef CFURLCopyLastPathComponent(CFURLRef url); + +@ffi.Native() +external CFStringRef CFURLCopyNetLocation(CFURLRef anURL); + +@Deprecated( + 'The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them.', +) +@ffi.Native() +external CFStringRef CFURLCopyParameterString( + CFURLRef anURL, + CFStringRef charactersToLeaveEscaped, +); + +@ffi.Native() +external CFStringRef CFURLCopyPassword(CFURLRef anURL); + +@ffi.Native() +external CFStringRef CFURLCopyPath(CFURLRef anURL); + +@ffi.Native() +external CFStringRef CFURLCopyPathExtension(CFURLRef url); + +@ffi.Native() +external CFStringRef CFURLCopyQueryString( + CFURLRef anURL, + CFStringRef charactersToLeaveEscaped, +); + +@ffi.Native< + CFDictionaryRef Function(CFURLRef, CFArrayRef, ffi.Pointer) +>() +external CFDictionaryRef CFURLCopyResourcePropertiesForKeys( + CFURLRef url, + CFArrayRef keys, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function( + CFURLRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CFURLCopyResourcePropertyForKey( + CFURLRef url, + CFStringRef key, + ffi.Pointer propertyValueTypeRefPtr, + ffi.Pointer error, +); + +@ffi.Native() +external CFStringRef CFURLCopyResourceSpecifier(CFURLRef anURL); + +@ffi.Native() +external CFStringRef CFURLCopyScheme(CFURLRef anURL); + +@ffi.Native)>() +external CFStringRef CFURLCopyStrictPath( + CFURLRef anURL, + ffi.Pointer isAbsolute, +); + +@ffi.Native() +external CFStringRef CFURLCopyUserName(CFURLRef anURL); + +@ffi.Native< + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + CFURLRef, + Boolean, + ) +>() +external CFURLRef CFURLCreateAbsoluteURLWithBytes( + CFAllocatorRef alloc, + ffi.Pointer relativeURLBytes, + int length, + int encoding, + CFURLRef baseURL, + int useCompatibilityMode, +); + +@ffi.Native< + CFDataRef Function( + CFAllocatorRef, + CFURLRef, + CFOptionFlags, + CFArrayRef, + CFURLRef, + ffi.Pointer, + ) +>() +external CFDataRef CFURLCreateBookmarkData( + CFAllocatorRef allocator, + CFURLRef url, + int options, + CFArrayRef resourcePropertiesToInclude, + CFURLRef relativeToURL, + ffi.Pointer error, +); + +@Deprecated( + 'The Carbon Alias Manager is deprecated. This function should only be used to convert Carbon AliasRecords to bookmark data.', +) +@ffi.Native() +external CFDataRef CFURLCreateBookmarkDataFromAliasRecord( + CFAllocatorRef allocatorRef, + CFDataRef aliasRecordDataRef, +); + +@ffi.Native< + CFDataRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) +>() +external CFDataRef CFURLCreateBookmarkDataFromFile( + CFAllocatorRef allocator, + CFURLRef fileURL, + ffi.Pointer errorRef, +); + +@ffi.Native< + CFURLRef Function( + CFAllocatorRef, + CFDataRef, + CFOptionFlags, + CFURLRef, + CFArrayRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFURLRef CFURLCreateByResolvingBookmarkData( + CFAllocatorRef allocator, + CFDataRef bookmark, + int options, + CFURLRef relativeToURL, + CFArrayRef resourcePropertiesToInclude, + ffi.Pointer isStale, + ffi.Pointer error, +); + +@ffi.Native() +external CFURLRef CFURLCreateCopyAppendingPathComponent( + CFAllocatorRef allocator, + CFURLRef url, + CFStringRef pathComponent, + int isDirectory, +); + +@ffi.Native() +external CFURLRef CFURLCreateCopyAppendingPathExtension( + CFAllocatorRef allocator, + CFURLRef url, + CFStringRef extension, +); + +@ffi.Native() +external CFURLRef CFURLCreateCopyDeletingLastPathComponent( + CFAllocatorRef allocator, + CFURLRef url, +); + +@ffi.Native() +external CFURLRef CFURLCreateCopyDeletingPathExtension( + CFAllocatorRef allocator, + CFURLRef url, +); + +@ffi.Native< + CFDataRef Function(CFAllocatorRef, CFURLRef, CFStringEncoding, Boolean) +>() +external CFDataRef CFURLCreateData( + CFAllocatorRef allocator, + CFURLRef url, + int encoding, + int escapeWhitespace, +); + +@Deprecated( + 'For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys.', +) +@ffi.Native< + Boolean Function( + CFAllocatorRef, + CFURLRef, + ffi.Pointer, + ffi.Pointer, + CFArrayRef, + ffi.Pointer, + ) +>() +external int CFURLCreateDataAndPropertiesFromResource( + CFAllocatorRef alloc, + CFURLRef url, + ffi.Pointer resourceData, + ffi.Pointer properties, + CFArrayRef desiredProperties, + ffi.Pointer errorCode, +); + +@ffi.Native< + CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) +>() +external CFURLRef CFURLCreateFilePathURL( + CFAllocatorRef allocator, + CFURLRef url, + ffi.Pointer error, +); + +@ffi.Native< + CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) +>() +external CFURLRef CFURLCreateFileReferenceURL( + CFAllocatorRef allocator, + CFURLRef url, + ffi.Pointer error, +); + +@Deprecated('Not supported') +@ffi.Native)>() +external CFURLRef CFURLCreateFromFSRef( + CFAllocatorRef allocator, + ffi.Pointer fsRef, +); + +@ffi.Native< + CFURLRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, Boolean) +>() +external CFURLRef CFURLCreateFromFileSystemRepresentation( + CFAllocatorRef allocator, + ffi.Pointer buffer, + int bufLen, + int isDirectory, +); + +@ffi.Native< + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + Boolean, + CFURLRef, + ) +>() +external CFURLRef CFURLCreateFromFileSystemRepresentationRelativeToBase( + CFAllocatorRef allocator, + ffi.Pointer buffer, + int bufLen, + int isDirectory, + CFURLRef baseURL, +); + +@Deprecated( + 'For file resource properties, use CFURLCopyResourcePropertyForKey.', +) +@ffi.Native< + CFTypeRef Function(CFAllocatorRef, CFURLRef, CFStringRef, ffi.Pointer) +>() +external CFTypeRef CFURLCreatePropertyFromResource( + CFAllocatorRef alloc, + CFURLRef url, + CFStringRef property, + ffi.Pointer errorCode, +); + +@ffi.Native() +external CFDictionaryRef CFURLCreateResourcePropertiesForKeysFromBookmarkData( + CFAllocatorRef allocator, + CFArrayRef resourcePropertiesToReturn, + CFDataRef bookmark, +); + +@ffi.Native() +external CFTypeRef CFURLCreateResourcePropertyForKeyFromBookmarkData( + CFAllocatorRef allocator, + CFStringRef resourcePropertyKey, + CFDataRef bookmark, +); + +@Deprecated( + 'Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid).', +) +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringEncoding, + ) +>() +external CFStringRef CFURLCreateStringByAddingPercentEscapes( + CFAllocatorRef allocator, + CFStringRef originalString, + CFStringRef charactersToLeaveUnescaped, + CFStringRef legalURLCharactersToBeEscaped, + int encoding, +); + +@ffi.Native() +external CFStringRef CFURLCreateStringByReplacingPercentEscapes( + CFAllocatorRef allocator, + CFStringRef originalString, + CFStringRef charactersToLeaveEscaped, +); + +@Deprecated( + 'Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding.', +) +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + CFStringRef, + CFStringRef, + CFStringEncoding, + ) +>() +external CFStringRef CFURLCreateStringByReplacingPercentEscapesUsingEncoding( + CFAllocatorRef allocator, + CFStringRef origString, + CFStringRef charsToLeaveEscaped, + int encoding, +); + +@ffi.Native< + CFURLRef Function( + CFAllocatorRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + CFURLRef, + ) +>() +external CFURLRef CFURLCreateWithBytes( + CFAllocatorRef allocator, + ffi.Pointer URLBytes, + int length, + int encoding, + CFURLRef baseURL, +); + +@ffi.Native( + symbol: 'CFURLCreateWithFileSystemPath', +) +external CFURLRef _CFURLCreateWithFileSystemPath( + CFAllocatorRef allocator, + CFStringRef filePath, + int pathStyle, + int isDirectory, +); + +CFURLRef CFURLCreateWithFileSystemPath( + CFAllocatorRef allocator, + CFStringRef filePath, + CFURLPathStyle pathStyle, + DartBoolean isDirectory, +) { + return _CFURLCreateWithFileSystemPath( + allocator, + filePath, + pathStyle.value, + isDirectory, + ); +} + +@ffi.Native< + CFURLRef Function(CFAllocatorRef, CFStringRef, CFIndex, Boolean, CFURLRef) +>(symbol: 'CFURLCreateWithFileSystemPathRelativeToBase') +external CFURLRef _CFURLCreateWithFileSystemPathRelativeToBase( + CFAllocatorRef allocator, + CFStringRef filePath, + int pathStyle, + int isDirectory, + CFURLRef baseURL, +); + +CFURLRef CFURLCreateWithFileSystemPathRelativeToBase( + CFAllocatorRef allocator, + CFStringRef filePath, + CFURLPathStyle pathStyle, + DartBoolean isDirectory, + CFURLRef baseURL, +) { + return _CFURLCreateWithFileSystemPathRelativeToBase( + allocator, + filePath, + pathStyle.value, + isDirectory, + baseURL, + ); +} + +@ffi.Native() +external CFURLRef CFURLCreateWithString( + CFAllocatorRef allocator, + CFStringRef URLString, + CFURLRef baseURL, +); + +@Deprecated('Use CFURLGetFileSystemRepresentation and removefile(3) instead.') +@ffi.Native)>() +external int CFURLDestroyResource(CFURLRef url, ffi.Pointer errorCode); + +@ffi.Native< + CFURLEnumeratorRef Function( + CFAllocatorRef, + CFURLRef, + CFOptionFlags, + CFArrayRef, + ) +>() +external CFURLEnumeratorRef CFURLEnumeratorCreateForDirectoryURL( + CFAllocatorRef alloc, + CFURLRef directoryURL, + int option, + CFArrayRef propertyKeys, +); + +@ffi.Native< + CFURLEnumeratorRef Function(CFAllocatorRef, CFOptionFlags, CFArrayRef) +>() +external CFURLEnumeratorRef CFURLEnumeratorCreateForMountedVolumes( + CFAllocatorRef alloc, + int option, + CFArrayRef propertyKeys, +); + +@ffi.Native() +external int CFURLEnumeratorGetDescendentLevel(CFURLEnumeratorRef enumerator); + +@ffi.Native< + CFIndex Function( + CFURLEnumeratorRef, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CFURLEnumeratorGetNextURL') +external int _CFURLEnumeratorGetNextURL( + CFURLEnumeratorRef enumerator, + ffi.Pointer url, + ffi.Pointer error, +); + +CFURLEnumeratorResult CFURLEnumeratorGetNextURL( + CFURLEnumeratorRef enumerator, + ffi.Pointer url, + ffi.Pointer error, +) { + return CFURLEnumeratorResult.fromValue( + _CFURLEnumeratorGetNextURL(enumerator, url, error), + ); +} + +@Deprecated('Use File System Events API instead') +@ffi.Native() +external int CFURLEnumeratorGetSourceDidChange(CFURLEnumeratorRef enumerator); + +@ffi.Native() +external int CFURLEnumeratorGetTypeID(); + +@ffi.Native() +external void CFURLEnumeratorSkipDescendents(CFURLEnumeratorRef enumerator); + +@ffi.Native() +external CFURLRef CFURLGetBaseURL(CFURLRef anURL); + +@ffi.Native)>( + symbol: 'CFURLGetByteRangeForComponent', +) +external CFRange _CFURLGetByteRangeForComponent( + CFURLRef url, + int component, + ffi.Pointer rangeIncludingSeparators, +); + +CFRange CFURLGetByteRangeForComponent( + CFURLRef url, + CFURLComponentType component, + ffi.Pointer rangeIncludingSeparators, +) { + return _CFURLGetByteRangeForComponent( + url, + component.value, + rangeIncludingSeparators, + ); +} + +@ffi.Native, CFIndex)>() +external int CFURLGetBytes( + CFURLRef url, + ffi.Pointer buffer, + int bufferLength, +); + +@Deprecated('Not supported') +@ffi.Native)>() +external int CFURLGetFSRef(CFURLRef url, ffi.Pointer fsRef); + +@ffi.Native, CFIndex)>() +external int CFURLGetFileSystemRepresentation( + CFURLRef url, + int resolveAgainstBase, + ffi.Pointer buffer, + int maxBufLen, +); + +@ffi.Native() +external int CFURLGetPortNumber(CFURLRef anURL); + +@ffi.Native() +external CFStringRef CFURLGetString(CFURLRef anURL); + +@ffi.Native() +external int CFURLGetTypeID(); + +@ffi.Native() +external int CFURLHasDirectoryPath(CFURLRef anURL); + +@ffi.Native() +external int CFURLIsFileReferenceURL(CFURLRef url); + +@ffi.Native)>() +external int CFURLResourceIsReachable( + CFURLRef url, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function(CFURLRef, CFDictionaryRef, ffi.Pointer) +>() +external int CFURLSetResourcePropertiesForKeys( + CFURLRef url, + CFDictionaryRef keyedPropertyValues, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function(CFURLRef, CFStringRef, CFTypeRef, ffi.Pointer) +>() +external int CFURLSetResourcePropertyForKey( + CFURLRef url, + CFStringRef key, + CFTypeRef propertyValue, + ffi.Pointer error, +); + +@ffi.Native() +external void CFURLSetTemporaryResourcePropertyForKey( + CFURLRef url, + CFStringRef key, + CFTypeRef propertyValue, +); + +@ffi.Native() +external int CFURLStartAccessingSecurityScopedResource(CFURLRef url); + +@ffi.Native() +external void CFURLStopAccessingSecurityScopedResource(CFURLRef url); + +@ffi.Native< + Boolean Function( + CFDataRef, + CFURLRef, + CFURLBookmarkFileCreationOptions, + ffi.Pointer, + ) +>() +external int CFURLWriteBookmarkDataToFile( + CFDataRef bookmarkRef, + CFURLRef fileURL, + int options, + ffi.Pointer errorRef, +); + +@Deprecated( + 'For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys.', +) +@ffi.Native< + Boolean Function(CFURLRef, CFDataRef, CFDictionaryRef, ffi.Pointer) +>() +external int CFURLWriteDataAndPropertiesToResource( + CFURLRef url, + CFDataRef dataToWrite, + CFDictionaryRef propertiesToWrite, + ffi.Pointer errorCode, +); + +@ffi.Native() +external CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc); + +@ffi.Native() +external CFUUIDRef CFUUIDCreateFromString( + CFAllocatorRef alloc, + CFStringRef uuidStr, +); + +@ffi.Native() +external CFUUIDRef CFUUIDCreateFromUUIDBytes( + CFAllocatorRef alloc, + CFUUIDBytes bytes, +); + +@ffi.Native() +external CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid); + +@ffi.Native< + CFUUIDRef Function( + CFAllocatorRef, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + ) +>() +external CFUUIDRef CFUUIDCreateWithBytes( + CFAllocatorRef alloc, + int byte0, + int byte1, + int byte2, + int byte3, + int byte4, + int byte5, + int byte6, + int byte7, + int byte8, + int byte9, + int byte10, + int byte11, + int byte12, + int byte13, + int byte14, + int byte15, +); + +@ffi.Native< + CFUUIDRef Function( + CFAllocatorRef, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + UInt8, + ) +>() +external CFUUIDRef CFUUIDGetConstantUUIDWithBytes( + CFAllocatorRef alloc, + int byte0, + int byte1, + int byte2, + int byte3, + int byte4, + int byte5, + int byte6, + int byte7, + int byte8, + int byte9, + int byte10, + int byte11, + int byte12, + int byte13, + int byte14, + int byte15, +); + +@ffi.Native() +external int CFUUIDGetTypeID(); + +@ffi.Native() +external CFUUIDBytes CFUUIDGetUUIDBytes(CFUUIDRef uuid); + +@ffi.Native() +external int CFUserNotificationCancel(CFUserNotificationRef userNotification); + +@ffi.Native< + CFUserNotificationRef Function( + CFAllocatorRef, + CFTimeInterval, + CFOptionFlags, + ffi.Pointer, + CFDictionaryRef, + ) +>() +external CFUserNotificationRef CFUserNotificationCreate( + CFAllocatorRef allocator, + double timeout, + int flags, + ffi.Pointer error, + CFDictionaryRef dictionary, +); + +@ffi.Native< + CFRunLoopSourceRef Function( + CFAllocatorRef, + CFUserNotificationRef, + CFUserNotificationCallBack, + CFIndex, + ) +>() +external CFRunLoopSourceRef CFUserNotificationCreateRunLoopSource( + CFAllocatorRef allocator, + CFUserNotificationRef userNotification, + CFUserNotificationCallBack callout, + int order, +); + +@ffi.Native< + SInt32 Function( + CFTimeInterval, + CFOptionFlags, + CFURLRef, + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external int CFUserNotificationDisplayAlert( + double timeout, + int flags, + CFURLRef iconURL, + CFURLRef soundURL, + CFURLRef localizationURL, + CFStringRef alertHeader, + CFStringRef alertMessage, + CFStringRef defaultButtonTitle, + CFStringRef alternateButtonTitle, + CFStringRef otherButtonTitle, + ffi.Pointer responseFlags, +); + +@ffi.Native< + SInt32 Function( + CFTimeInterval, + CFOptionFlags, + CFURLRef, + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + CFStringRef, + ) +>() +external int CFUserNotificationDisplayNotice( + double timeout, + int flags, + CFURLRef iconURL, + CFURLRef soundURL, + CFURLRef localizationURL, + CFStringRef alertHeader, + CFStringRef alertMessage, + CFStringRef defaultButtonTitle, +); + +@ffi.Native() +external CFDictionaryRef CFUserNotificationGetResponseDictionary( + CFUserNotificationRef userNotification, +); + +@ffi.Native() +external CFStringRef CFUserNotificationGetResponseValue( + CFUserNotificationRef userNotification, + CFStringRef key, + int idx, +); + +@ffi.Native() +external int CFUserNotificationGetTypeID(); + +@ffi.Native< + SInt32 Function( + CFUserNotificationRef, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int CFUserNotificationReceiveResponse( + CFUserNotificationRef userNotification, + double timeout, + ffi.Pointer responseFlags, +); + +@ffi.Native< + SInt32 Function( + CFUserNotificationRef, + CFTimeInterval, + CFOptionFlags, + CFDictionaryRef, + ) +>() +external int CFUserNotificationUpdate( + CFUserNotificationRef userNotification, + double timeout, + int flags, + CFDictionaryRef dictionary, +); + +@ffi.Native() +external int CFWriteStreamCanAcceptBytes(CFWriteStreamRef stream); + +@ffi.Native() +external void CFWriteStreamClose(CFWriteStreamRef stream); + +@ffi.Native( + symbol: 'CFWriteStreamCopyDispatchQueue', +) +external dispatch_queue_t _CFWriteStreamCopyDispatchQueue( + CFWriteStreamRef stream, +); + +Dartdispatch_queue_t CFWriteStreamCopyDispatchQueue(CFWriteStreamRef stream) { + return objc.NSObject.fromPointer( + _CFWriteStreamCopyDispatchQueue(stream), + retain: true, + release: true, + ); +} + +@ffi.Native() +external CFErrorRef CFWriteStreamCopyError(CFWriteStreamRef stream); + +@ffi.Native() +external CFTypeRef CFWriteStreamCopyProperty( + CFWriteStreamRef stream, + CFStreamPropertyKey propertyName, +); + +@ffi.Native() +external CFWriteStreamRef CFWriteStreamCreateWithAllocatedBuffers( + CFAllocatorRef alloc, + CFAllocatorRef bufferAllocator, +); + +@ffi.Native< + CFWriteStreamRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) +>() +external CFWriteStreamRef CFWriteStreamCreateWithBuffer( + CFAllocatorRef alloc, + ffi.Pointer buffer, + int bufferCapacity, +); + +@Deprecated('Use NSURLSessionAPI for ftp requests') +@ffi.Native() +external CFWriteStreamRef CFWriteStreamCreateWithFTPURL( + CFAllocatorRef alloc, + CFURLRef ftpURL, +); + +@ffi.Native() +external CFWriteStreamRef CFWriteStreamCreateWithFile( + CFAllocatorRef alloc, + CFURLRef fileURL, +); + +@ffi.Native() +external CFStreamError CFWriteStreamGetError(CFWriteStreamRef stream); + +@ffi.Native( + symbol: 'CFWriteStreamGetStatus', +) +external int _CFWriteStreamGetStatus(CFWriteStreamRef stream); + +CFStreamStatus CFWriteStreamGetStatus(CFWriteStreamRef stream) { + return CFStreamStatus.fromValue(_CFWriteStreamGetStatus(stream)); +} + +@ffi.Native() +external int CFWriteStreamGetTypeID(); + +@ffi.Native() +external int CFWriteStreamOpen(CFWriteStreamRef stream); + +@ffi.Native() +external void CFWriteStreamScheduleWithRunLoop( + CFWriteStreamRef stream, + CFRunLoopRef runLoop, + CFRunLoopMode runLoopMode, +); + +@ffi.Native< + Boolean Function( + CFWriteStreamRef, + CFOptionFlags, + CFWriteStreamClientCallBack, + ffi.Pointer, + ) +>() +external int CFWriteStreamSetClient( + CFWriteStreamRef stream, + int streamEvents, + CFWriteStreamClientCallBack clientCB, + ffi.Pointer clientContext, +); + +@ffi.Native( + symbol: 'CFWriteStreamSetDispatchQueue', +) +external void _CFWriteStreamSetDispatchQueue( + CFWriteStreamRef stream, + dispatch_queue_t q, +); + +void CFWriteStreamSetDispatchQueue( + CFWriteStreamRef stream, + Dartdispatch_queue_t q, +) { + final _$$ref = q.ref; + return _CFWriteStreamSetDispatchQueue(stream, _$$ref.pointer); +} + +@ffi.Native< + Boolean Function(CFWriteStreamRef, CFStreamPropertyKey, CFTypeRef) +>() +external int CFWriteStreamSetProperty( + CFWriteStreamRef stream, + CFStreamPropertyKey propertyName, + CFTypeRef propertyValue, +); + +@ffi.Native() +external void CFWriteStreamUnscheduleFromRunLoop( + CFWriteStreamRef stream, + CFRunLoopRef runLoop, + CFRunLoopMode runLoopMode, +); + +@ffi.Native, CFIndex)>() +external int CFWriteStreamWrite( + CFWriteStreamRef stream, + ffi.Pointer buffer, + int bufferLength, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) +>() +external CFStringRef CFXMLCreateStringByEscapingEntities( + CFAllocatorRef allocator, + CFStringRef string, + CFDictionaryRef entitiesDictionary, +); + +@ffi.Native< + CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) +>() +external CFStringRef CFXMLCreateStringByUnescapingEntities( + CFAllocatorRef allocator, + CFStringRef string, + CFDictionaryRef entitiesDictionary, +); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLNodeRef Function( + CFAllocatorRef, + CFIndex, + CFStringRef, + ffi.Pointer, + CFIndex, + ) +>(symbol: 'CFXMLNodeCreate') +external CFXMLNodeRef _CFXMLNodeCreate( + CFAllocatorRef alloc, + int xmlType, + CFStringRef dataString, + ffi.Pointer additionalInfoPtr, + int version, +); + +CFXMLNodeRef CFXMLNodeCreate( + CFAllocatorRef alloc, + CFXMLNodeTypeCode xmlType, + CFStringRef dataString, + ffi.Pointer additionalInfoPtr, + DartCFIndex version, +) { + return _CFXMLNodeCreate( + alloc, + xmlType.value, + dataString, + additionalInfoPtr, + version, + ); +} + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFXMLNodeRef CFXMLNodeCreateCopy( + CFAllocatorRef alloc, + CFXMLNodeRef origNode, +); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native Function(CFXMLNodeRef)>() +external ffi.Pointer CFXMLNodeGetInfoPtr(CFXMLNodeRef node); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFStringRef CFXMLNodeGetString(CFXMLNodeRef node); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native(symbol: 'CFXMLNodeGetTypeCode') +external int _CFXMLNodeGetTypeCode(CFXMLNodeRef node); + +CFXMLNodeTypeCode CFXMLNodeGetTypeCode(CFXMLNodeRef node) { + return CFXMLNodeTypeCode.fromValue(_CFXMLNodeGetTypeCode(node)); +} + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLNodeGetTypeID(); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLNodeGetVersion(CFXMLNodeRef node); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external void CFXMLParserAbort( + CFXMLParserRef parser, + int errorCode, + CFStringRef errorDescription, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFStringRef CFXMLParserCopyErrorDescription(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLParserRef Function( + CFAllocatorRef, + CFDataRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFXMLParserRef CFXMLParserCreate( + CFAllocatorRef allocator, + CFDataRef xmlData, + CFURLRef dataSource, + int parseOptions, + int versionOfNodes, + ffi.Pointer callBacks, + ffi.Pointer context, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLParserRef Function( + CFAllocatorRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CFXMLParserRef CFXMLParserCreateWithDataFromURL( + CFAllocatorRef allocator, + CFURLRef dataSource, + int parseOptions, + int versionOfNodes, + ffi.Pointer callBacks, + ffi.Pointer context, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + ffi.Void Function(CFXMLParserRef, ffi.Pointer) +>() +external void CFXMLParserGetCallBacks( + CFXMLParserRef parser, + ffi.Pointer callBacks, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + ffi.Void Function(CFXMLParserRef, ffi.Pointer) +>() +external void CFXMLParserGetContext( + CFXMLParserRef parser, + ffi.Pointer context, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native Function(CFXMLParserRef)>() +external ffi.Pointer CFXMLParserGetDocument(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLParserGetLineNumber(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLParserGetLocation(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFURLRef CFXMLParserGetSourceURL(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLParserGetStatusCode(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLParserGetTypeID(); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external int CFXMLParserParse(CFXMLParserRef parser); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLTreeRef Function( + CFAllocatorRef, + CFDataRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ) +>() +external CFXMLTreeRef CFXMLTreeCreateFromData( + CFAllocatorRef allocator, + CFDataRef xmlData, + CFURLRef dataSource, + int parseOptions, + int versionOfNodes, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLTreeRef Function( + CFAllocatorRef, + CFDataRef, + CFURLRef, + CFOptionFlags, + CFIndex, + ffi.Pointer, + ) +>() +external CFXMLTreeRef CFXMLTreeCreateFromDataWithError( + CFAllocatorRef allocator, + CFDataRef xmlData, + CFURLRef dataSource, + int parseOptions, + int versionOfNodes, + ffi.Pointer errorDict, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native< + CFXMLTreeRef Function(CFAllocatorRef, CFURLRef, CFOptionFlags, CFIndex) +>() +external CFXMLTreeRef CFXMLTreeCreateWithDataFromURL( + CFAllocatorRef allocator, + CFURLRef dataSource, + int parseOptions, + int versionOfNodes, +); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFXMLTreeRef CFXMLTreeCreateWithNode( + CFAllocatorRef allocator, + CFXMLNodeRef node, +); + +@Deprecated( + 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFDataRef CFXMLTreeCreateXMLData( + CFAllocatorRef allocator, + CFXMLTreeRef xmlTree, +); + +@Deprecated( + 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', +) +@ffi.Native() +external CFXMLNodeRef CFXMLTreeGetNode(CFXMLTreeRef xmlTree); + +@ffi.Native< + ffi.Int32 Function( + CGDisplayReservationInterval, + ffi.Pointer, + ) +>(symbol: 'CGAcquireDisplayFadeReservation') +external int _CGAcquireDisplayFadeReservation( + double seconds, + ffi.Pointer token, +); + +CGError CGAcquireDisplayFadeReservation( + DartCGDisplayReservationInterval seconds, + ffi.Pointer token, +) { + return CGError.fromValue(_CGAcquireDisplayFadeReservation(seconds, token)); +} + +@ffi.Native() +external CGAffineTransform CGAffineTransformConcat( + CGAffineTransform t1, + CGAffineTransform t2, +); + +@ffi.Native() +external CGAffineTransformComponents CGAffineTransformDecompose( + CGAffineTransform transform, +); + +@ffi.Native() +external bool CGAffineTransformEqualToTransform( + CGAffineTransform t1, + CGAffineTransform t2, +); + +@ffi.Native() +external final CGAffineTransform CGAffineTransformIdentity; + +@ffi.Native() +external CGAffineTransform CGAffineTransformInvert(CGAffineTransform t); + +@ffi.Native() +external bool CGAffineTransformIsIdentity(CGAffineTransform t); + +@ffi.Native< + CGAffineTransform Function( + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external CGAffineTransform CGAffineTransformMake( + double a, + double b, + double c, + double d, + double tx, + double ty, +); + +@ffi.Native() +external CGAffineTransform CGAffineTransformMakeRotation(double angle); + +@ffi.Native() +external CGAffineTransform CGAffineTransformMakeScale(double sx, double sy); + +@ffi.Native() +external CGAffineTransform CGAffineTransformMakeTranslation( + double tx, + double ty, +); + +@ffi.Native() +external CGAffineTransform CGAffineTransformMakeWithComponents( + CGAffineTransformComponents components, +); + +@ffi.Native() +external CGAffineTransform CGAffineTransformRotate( + CGAffineTransform t, + double angle, +); + +@ffi.Native() +external CGAffineTransform CGAffineTransformScale( + CGAffineTransform t, + double sx, + double sy, +); + +@ffi.Native() +external CGAffineTransform CGAffineTransformTranslate( + CGAffineTransform t, + double tx, + double ty, +); + +@ffi.Native< + OSStatus Function(CFURLRef, CFDictionaryRef, CGImageSourceAnimationBlock) +>(symbol: 'CGAnimateImageAtURLWithBlock') +external int _CGAnimateImageAtURLWithBlock( + CFURLRef url, + CFDictionaryRef options, + CGImageSourceAnimationBlock block, +); + +DartSInt32 CGAnimateImageAtURLWithBlock( + CFURLRef url, + CFDictionaryRef options, + DartCGImageSourceAnimationBlock block, +) { + final _$$ref = block.ref; + return _CGAnimateImageAtURLWithBlock(url, options, _$$ref.pointer); +} + +@ffi.Native< + OSStatus Function(CFDataRef, CFDictionaryRef, CGImageSourceAnimationBlock) +>(symbol: 'CGAnimateImageDataWithBlock') +external int _CGAnimateImageDataWithBlock( + CFDataRef data, + CFDictionaryRef options, + CGImageSourceAnimationBlock block, +); + +DartSInt32 CGAnimateImageDataWithBlock( + CFDataRef data, + CFDictionaryRef options, + DartCGImageSourceAnimationBlock block, +) { + final _$$ref = block.ref; + return _CGAnimateImageDataWithBlock(data, options, _$$ref.pointer); +} + +@ffi.Native( + symbol: 'CGAssociateMouseAndMouseCursorPosition', +) +external int _CGAssociateMouseAndMouseCursorPosition(int connected); + +CGError CGAssociateMouseAndMouseCursorPosition(Dartboolean_t connected) { + return CGError.fromValue(_CGAssociateMouseAndMouseCursorPosition(connected)); +} + +@ffi.Native)>( + symbol: 'CGBeginDisplayConfiguration', +) +external int _CGBeginDisplayConfiguration( + ffi.Pointer config, +); + +CGError CGBeginDisplayConfiguration(ffi.Pointer config) { + return CGError.fromValue(_CGBeginDisplayConfiguration(config)); +} + +@ffi.Native< + CGContextRef Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + CGColorSpaceRef, + ffi.Uint32, + ) +>() +external CGContextRef CGBitmapContextCreate( + ffi.Pointer data, + int width, + int height, + int bitsPerComponent, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, +); + +@ffi.Native< + CGContextRef Function( + ffi.Size, + ffi.Size, + CFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGBitmapContextCreateAdaptive') +external CGContextRef _CGBitmapContextCreateAdaptive( + int width, + int height, + CFDictionaryRef auxiliaryInfo, + ffi.Pointer onResolve, + ffi.Pointer onAllocate, + ffi.Pointer onFree, + ffi.Pointer onError, +); + +CGContextRef CGBitmapContextCreateAdaptive( + int width, + int height, + CFDictionaryRef auxiliaryInfo, + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >? + onResolve, + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >? + onAllocate, + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >? + onFree, + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >? + onError, +) { + final _$$ref = onResolve?.ref; + final _$$ref$1 = onAllocate?.ref; + final _$$ref$2 = onFree?.ref; + final _$$ref$3 = onError?.ref; + return _CGBitmapContextCreateAdaptive( + width, + height, + auxiliaryInfo, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native() +external CGImageRef CGBitmapContextCreateImage(CGContextRef context); + +@ffi.Native< + CGContextRef Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + CGColorSpaceRef, + ffi.Uint32, + CGBitmapContextReleaseDataCallback, + ffi.Pointer, + ) +>() +external CGContextRef CGBitmapContextCreateWithData( + ffi.Pointer data, + int width, + int height, + int bitsPerComponent, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, + CGBitmapContextReleaseDataCallback releaseCallback, + ffi.Pointer releaseInfo, +); + +@ffi.Native( + symbol: 'CGBitmapContextGetAlphaInfo', +) +external int _CGBitmapContextGetAlphaInfo(CGContextRef context); + +CGImageAlphaInfo CGBitmapContextGetAlphaInfo(CGContextRef context) { + return CGImageAlphaInfo.fromValue(_CGBitmapContextGetAlphaInfo(context)); +} + +@ffi.Native() +external int CGBitmapContextGetBitmapInfo(CGContextRef context); + +@ffi.Native() +external int CGBitmapContextGetBitsPerComponent(CGContextRef context); + +@ffi.Native() +external int CGBitmapContextGetBitsPerPixel(CGContextRef context); + +@ffi.Native() +external int CGBitmapContextGetBytesPerRow(CGContextRef context); + +@ffi.Native() +external CGColorSpaceRef CGBitmapContextGetColorSpace(CGContextRef context); + +@ffi.Native Function(CGContextRef)>() +external ffi.Pointer CGBitmapContextGetData(CGContextRef context); + +@ffi.Native() +external int CGBitmapContextGetHeight(CGContextRef context); + +@ffi.Native() +external int CGBitmapContextGetWidth(CGContextRef context); + +@ffi.Native( + symbol: 'CGCancelDisplayConfiguration', +) +external int _CGCancelDisplayConfiguration(CGDisplayConfigRef config); + +CGError CGCancelDisplayConfiguration(CGDisplayConfigRef config) { + return CGError.fromValue(_CGCancelDisplayConfiguration(config)); +} + +@ffi.Native(symbol: 'CGCaptureAllDisplays') +external int _CGCaptureAllDisplays(); + +CGError CGCaptureAllDisplays() { + return CGError.fromValue(_CGCaptureAllDisplays()); +} + +@ffi.Native( + symbol: 'CGCaptureAllDisplaysWithOptions', +) +external int _CGCaptureAllDisplaysWithOptions(int options); + +CGError CGCaptureAllDisplaysWithOptions(int options) { + return CGError.fromValue(_CGCaptureAllDisplaysWithOptions(options)); +} + +@ffi.Native< + ffi.Bool Function( + CGColorConversionInfoRef, + ffi.Size, + ffi.Size, + ffi.Pointer, + CGColorBufferFormat, + ffi.Pointer, + CGColorBufferFormat, + CFDictionaryRef, + ) +>() +external bool CGColorConversionInfoConvertData( + CGColorConversionInfoRef info, + int width, + int height, + ffi.Pointer dst_data, + CGColorBufferFormat dst_format, + ffi.Pointer src_data, + CGColorBufferFormat src_format, + CFDictionaryRef options, +); + +@ffi.Native< + CGColorConversionInfoRef Function(CGColorSpaceRef, CGColorSpaceRef) +>() +external CGColorConversionInfoRef CGColorConversionInfoCreate( + CGColorSpaceRef src, + CGColorSpaceRef dst, +); + +@ffi.Native< + CGColorConversionInfoRef Function( + CGColorSpaceRef, + ffi.Float, + CGColorSpaceRef, + ffi.Float, + ffi.Uint32, + CFDictionaryRef, + ffi.Pointer, + ) +>(symbol: 'CGColorConversionInfoCreateForToneMapping') +external CGColorConversionInfoRef _CGColorConversionInfoCreateForToneMapping( + CGColorSpaceRef from, + double source_headroom, + CGColorSpaceRef to, + double target_headroom, + int method, + CFDictionaryRef options, + ffi.Pointer error, +); + +CGColorConversionInfoRef CGColorConversionInfoCreateForToneMapping( + CGColorSpaceRef from, + double source_headroom, + CGColorSpaceRef to, + double target_headroom, + CGToneMapping method, + CFDictionaryRef options, + ffi.Pointer error, +) { + return _CGColorConversionInfoCreateForToneMapping( + from, + source_headroom, + to, + target_headroom, + method.value, + options, + error, + ); +} + +@ffi.Native< + CGColorConversionInfoRef Function( + CFDictionaryRef, + CGColorSpaceRef, + ffi.Uint32, + ffi.Int32, + ) +>(symbol: 'CGColorConversionInfoCreateFromList') +external CGColorConversionInfoRef _CGColorConversionInfoCreateFromList( + CFDictionaryRef options, + CGColorSpaceRef arg1, + int arg2, + int arg3, +); + +CGColorConversionInfoRef CGColorConversionInfoCreateFromList( + CFDictionaryRef options, + CGColorSpaceRef arg1, + CGColorConversionInfoTransformType arg2, + CGColorRenderingIntent arg3, +) { + return _CGColorConversionInfoCreateFromList( + options, + arg1, + arg2.value, + arg3.value, + ); +} + +@ffi.Native< + CGColorConversionInfoRef Function( + CFDictionaryRef, + CGColorSpaceRef, + ffi.Uint32, + ffi.Int32, + va_list, + ) +>(symbol: 'CGColorConversionInfoCreateFromListWithArguments') +external CGColorConversionInfoRef +_CGColorConversionInfoCreateFromListWithArguments( + CFDictionaryRef options, + CGColorSpaceRef arg1, + int arg2, + int arg3, + va_list arg4, +); + +CGColorConversionInfoRef CGColorConversionInfoCreateFromListWithArguments( + CFDictionaryRef options, + CGColorSpaceRef arg1, + CGColorConversionInfoTransformType arg2, + CGColorRenderingIntent arg3, + va_list arg4, +) { + return _CGColorConversionInfoCreateFromListWithArguments( + options, + arg1, + arg2.value, + arg3.value, + arg4, + ); +} + +@ffi.Native< + CGColorConversionInfoRef Function( + CGColorSpaceRef, + CGColorSpaceRef, + CFDictionaryRef, + ) +>() +external CGColorConversionInfoRef CGColorConversionInfoCreateWithOptions( + CGColorSpaceRef src, + CGColorSpaceRef dst, + CFDictionaryRef options, +); + +@ffi.Native() +external int CGColorConversionInfoGetTypeID(); + +@ffi.Native)>() +external CGColorRef CGColorCreate( + CGColorSpaceRef space, + ffi.Pointer components, +); + +@ffi.Native() +external CGColorRef CGColorCreateCopy(CGColorRef color); + +@ffi.Native< + CGColorRef Function(CGColorSpaceRef, ffi.Int32, CGColorRef, CFDictionaryRef) +>(symbol: 'CGColorCreateCopyByMatchingToColorSpace') +external CGColorRef _CGColorCreateCopyByMatchingToColorSpace( + CGColorSpaceRef arg0, + int intent, + CGColorRef color, + CFDictionaryRef options, +); + +CGColorRef CGColorCreateCopyByMatchingToColorSpace( + CGColorSpaceRef arg0, + CGColorRenderingIntent intent, + CGColorRef color, + CFDictionaryRef options, +) { + return _CGColorCreateCopyByMatchingToColorSpace( + arg0, + intent.value, + color, + options, + ); +} + +@ffi.Native() +external CGColorRef CGColorCreateCopyWithAlpha(CGColorRef color, double alpha); + +@ffi.Native() +external CGColorRef CGColorCreateGenericCMYK( + double cyan, + double magenta, + double yellow, + double black, + double alpha, +); + +@ffi.Native() +external CGColorRef CGColorCreateGenericGray(double gray, double alpha); + +@ffi.Native() +external CGColorRef CGColorCreateGenericGrayGamma2_2(double gray, double alpha); + +@ffi.Native() +external CGColorRef CGColorCreateGenericRGB( + double red, + double green, + double blue, + double alpha, +); + +@ffi.Native() +external CGColorRef CGColorCreateSRGB( + double red, + double green, + double blue, + double alpha, +); + +@ffi.Native< + CGColorRef Function( + ffi.Float, + CGColorSpaceRef, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external CGColorRef CGColorCreateWithContentHeadroom( + double headroom, + CGColorSpaceRef space, + double red, + double green, + double blue, + double alpha, +); + +@ffi.Native< + CGColorRef Function(CGColorSpaceRef, CGPatternRef, ffi.Pointer) +>() +external CGColorRef CGColorCreateWithPattern( + CGColorSpaceRef space, + CGPatternRef pattern, + ffi.Pointer components, +); + +@ffi.Native() +external bool CGColorEqualToColor(CGColorRef color1, CGColorRef color2); + +@ffi.Native() +external double CGColorGetAlpha(CGColorRef color); + +@ffi.Native() +external CGColorSpaceRef CGColorGetColorSpace(CGColorRef color); + +@ffi.Native Function(CGColorRef)>() +external ffi.Pointer CGColorGetComponents(CGColorRef color); + +@ffi.Native() +external CGColorRef CGColorGetConstantColor(CFStringRef colorName); + +@ffi.Native() +external double CGColorGetContentHeadroom(CGColorRef color); + +@ffi.Native() +external int CGColorGetNumberOfComponents(CGColorRef color); + +@ffi.Native() +external CGPatternRef CGColorGetPattern(CGColorRef color); + +@ffi.Native() +external int CGColorGetTypeID(); + +@ffi.Native() +external void CGColorRelease(CGColorRef color); + +@ffi.Native() +external CGColorRef CGColorRetain(CGColorRef color); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCopyBaseColorSpace(CGColorSpaceRef space); + +@ffi.Native() +external CFDataRef CGColorSpaceCopyICCData(CGColorSpaceRef space); + +@Deprecated('No longer supported') +@ffi.Native() +external CFDataRef CGColorSpaceCopyICCProfile(CGColorSpaceRef space); + +@ffi.Native() +external CFStringRef CGColorSpaceCopyName(CGColorSpaceRef space); + +@ffi.Native() +external CFPropertyListRef CGColorSpaceCopyPropertyList(CGColorSpaceRef space); + +@ffi.Native< + CGColorSpaceRef Function(ffi.Pointer, ffi.Pointer, CGFloat) +>() +external CGColorSpaceRef CGColorSpaceCreateCalibratedGray( + ffi.Pointer whitePoint, + ffi.Pointer blackPoint, + double gamma, +); + +@ffi.Native< + CGColorSpaceRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGColorSpaceRef CGColorSpaceCreateCalibratedRGB( + ffi.Pointer whitePoint, + ffi.Pointer blackPoint, + ffi.Pointer gamma, + ffi.Pointer matrix, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateCopyWithStandardRange( + CGColorSpaceRef s, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateDeviceCMYK(); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateDeviceGray(); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateDeviceRGB(); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateExtended(CGColorSpaceRef space); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateExtendedLinearized( + CGColorSpaceRef space, +); + +@ffi.Native< + CGColorSpaceRef Function( + ffi.Size, + ffi.Pointer, + CGDataProviderRef, + CGColorSpaceRef, + ) +>() +external CGColorSpaceRef CGColorSpaceCreateICCBased( + int nComponents, + ffi.Pointer range, + CGDataProviderRef profile, + CGColorSpaceRef alternate, +); + +@ffi.Native< + CGColorSpaceRef Function( + CGColorSpaceRef, + ffi.Size, + ffi.Pointer, + ) +>() +external CGColorSpaceRef CGColorSpaceCreateIndexed( + CGColorSpaceRef baseSpace, + int lastIndex, + ffi.Pointer colorTable, +); + +@ffi.Native< + CGColorSpaceRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGColorSpaceRef CGColorSpaceCreateLab( + ffi.Pointer whitePoint, + ffi.Pointer blackPoint, + ffi.Pointer range, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateLinearized(CGColorSpaceRef space); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreatePattern(CGColorSpaceRef baseSpace); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateWithColorSyncProfile( + ColorSyncProfileRef arg0, + CFDictionaryRef options, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateWithICCData(CFTypeRef data); + +@Deprecated('No longer supported') +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateWithICCProfile(CFDataRef data); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateWithName(CFStringRef name); + +@Deprecated('No longer supported') +@ffi.Native)>() +external CGColorSpaceRef CGColorSpaceCreateWithPlatformColorSpace( + ffi.Pointer ref, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceCreateWithPropertyList( + CFPropertyListRef plist, +); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceGetBaseColorSpace(CGColorSpaceRef space); + +@ffi.Native)>() +external void CGColorSpaceGetColorTable( + CGColorSpaceRef space, + ffi.Pointer table, +); + +@ffi.Native() +external int CGColorSpaceGetColorTableCount(CGColorSpaceRef space); + +@ffi.Native(symbol: 'CGColorSpaceGetModel') +external int _CGColorSpaceGetModel(CGColorSpaceRef space); + +CGColorSpaceModel CGColorSpaceGetModel(CGColorSpaceRef space) { + return CGColorSpaceModel.fromValue(_CGColorSpaceGetModel(space)); +} + +@ffi.Native() +external CFStringRef CGColorSpaceGetName(CGColorSpaceRef space); + +@ffi.Native() +external int CGColorSpaceGetNumberOfComponents(CGColorSpaceRef space); + +@ffi.Native() +external int CGColorSpaceGetTypeID(); + +@ffi.Native() +external bool CGColorSpaceIsHDR(CGColorSpaceRef arg0); + +@ffi.Native() +external bool CGColorSpaceIsHLGBased(CGColorSpaceRef s); + +@ffi.Native() +external bool CGColorSpaceIsPQBased(CGColorSpaceRef s); + +@ffi.Native() +external bool CGColorSpaceIsWideGamutRGB(CGColorSpaceRef arg0); + +@ffi.Native() +external void CGColorSpaceRelease(CGColorSpaceRef space); + +@ffi.Native() +external CGColorSpaceRef CGColorSpaceRetain(CGColorSpaceRef space); + +@ffi.Native() +external bool CGColorSpaceSupportsOutput(CGColorSpaceRef space); + +@ffi.Native() +external bool CGColorSpaceUsesExtendedRange(CGColorSpaceRef space); + +@ffi.Native() +external bool CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef arg0); + +@ffi.Native( + symbol: 'CGCompleteDisplayConfiguration', +) +external int _CGCompleteDisplayConfiguration( + CGDisplayConfigRef config, + int option, +); + +CGError CGCompleteDisplayConfiguration(CGDisplayConfigRef config, int option) { + return CGError.fromValue(_CGCompleteDisplayConfiguration(config, option)); +} + +@ffi.Native< + ffi.Int32 Function( + CGDisplayConfigRef, + CGDisplayFadeInterval, + CGDisplayFadeInterval, + ffi.Float, + ffi.Float, + ffi.Float, + ) +>(symbol: 'CGConfigureDisplayFadeEffect') +external int _CGConfigureDisplayFadeEffect( + CGDisplayConfigRef config, + double fadeOutSeconds, + double fadeInSeconds, + double fadeRed, + double fadeGreen, + double fadeBlue, +); + +CGError CGConfigureDisplayFadeEffect( + CGDisplayConfigRef config, + DartCGDisplayFadeInterval fadeOutSeconds, + DartCGDisplayFadeInterval fadeInSeconds, + double fadeRed, + double fadeGreen, + double fadeBlue, +) { + return CGError.fromValue( + _CGConfigureDisplayFadeEffect( + config, + fadeOutSeconds, + fadeInSeconds, + fadeRed, + fadeGreen, + fadeBlue, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function(CGDisplayConfigRef, CGDirectDisplayID, CGDirectDisplayID) +>(symbol: 'CGConfigureDisplayMirrorOfDisplay') +external int _CGConfigureDisplayMirrorOfDisplay( + CGDisplayConfigRef config, + int display, + int master, +); + +CGError CGConfigureDisplayMirrorOfDisplay( + CGDisplayConfigRef config, + DartCGDirectDisplayID display, + DartCGDirectDisplayID master, +) { + return CGError.fromValue( + _CGConfigureDisplayMirrorOfDisplay(config, display, master), + ); +} + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Int32 Function(CGDisplayConfigRef, CGDirectDisplayID, CFDictionaryRef) +>(symbol: 'CGConfigureDisplayMode') +external int _CGConfigureDisplayMode( + CGDisplayConfigRef config, + int display, + CFDictionaryRef mode, +); + +CGError CGConfigureDisplayMode( + CGDisplayConfigRef config, + DartCGDirectDisplayID display, + CFDictionaryRef mode, +) { + return CGError.fromValue(_CGConfigureDisplayMode(config, display, mode)); +} + +@ffi.Native< + ffi.Int32 Function( + CGDisplayConfigRef, + CGDirectDisplayID, + ffi.Int32, + ffi.Int32, + ) +>(symbol: 'CGConfigureDisplayOrigin') +external int _CGConfigureDisplayOrigin( + CGDisplayConfigRef config, + int display, + int x, + int y, +); + +CGError CGConfigureDisplayOrigin( + CGDisplayConfigRef config, + DartCGDirectDisplayID display, + int x, + int y, +) { + return CGError.fromValue(_CGConfigureDisplayOrigin(config, display, x, y)); +} + +@ffi.Native< + ffi.Int32 Function( + CGDisplayConfigRef, + CGDirectDisplayID, + boolean_t, + boolean_t, + ) +>(symbol: 'CGConfigureDisplayStereoOperation') +external int _CGConfigureDisplayStereoOperation( + CGDisplayConfigRef config, + int display, + int stereo, + int forceBlueLine, +); + +CGError CGConfigureDisplayStereoOperation( + CGDisplayConfigRef config, + DartCGDirectDisplayID display, + Dartboolean_t stereo, + Dartboolean_t forceBlueLine, +) { + return CGError.fromValue( + _CGConfigureDisplayStereoOperation(config, display, stereo, forceBlueLine), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGDisplayConfigRef, + CGDirectDisplayID, + CGDisplayModeRef, + CFDictionaryRef, + ) +>(symbol: 'CGConfigureDisplayWithDisplayMode') +external int _CGConfigureDisplayWithDisplayMode( + CGDisplayConfigRef config, + int display, + CGDisplayModeRef mode, + CFDictionaryRef options, +); + +CGError CGConfigureDisplayWithDisplayMode( + CGDisplayConfigRef config, + DartCGDirectDisplayID display, + CGDisplayModeRef mode, + CFDictionaryRef options, +) { + return CGError.fromValue( + _CGConfigureDisplayWithDisplayMode(config, display, mode, options), + ); +} + +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ffi.Int, + ) +>() +external void CGContextAddArc( + CGContextRef c, + double x, + double y, + double radius, + double startAngle, + double endAngle, + int clockwise, +); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextAddArcToPoint( + CGContextRef c, + double x1, + double y1$1, + double x2, + double y2, + double radius, +); + +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external void CGContextAddCurveToPoint( + CGContextRef c, + double cp1x, + double cp1y, + double cp2x, + double cp2y, + double x, + double y, +); + +@ffi.Native() +external void CGContextAddEllipseInRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native() +external void CGContextAddLineToPoint(CGContextRef c, double x, double y); + +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) +>() +external void CGContextAddLines( + CGContextRef c, + ffi.Pointer points, + int count, +); + +@ffi.Native() +external void CGContextAddPath(CGContextRef c, CGPathRef path); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextAddQuadCurveToPoint( + CGContextRef c, + double cpx, + double cpy, + double x, + double y, +); + +@ffi.Native() +external void CGContextAddRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) +>() +external void CGContextAddRects( + CGContextRef c, + ffi.Pointer rects, + int count, +); + +@ffi.Native)>() +external void CGContextBeginPage( + CGContextRef c, + ffi.Pointer mediaBox, +); + +@ffi.Native() +external void CGContextBeginPath(CGContextRef c); + +@ffi.Native() +external void CGContextBeginTransparencyLayer( + CGContextRef c, + CFDictionaryRef auxiliaryInfo, +); + +@ffi.Native() +external void CGContextBeginTransparencyLayerWithRect( + CGContextRef c, + objc.CGRect rect, + CFDictionaryRef auxInfo, +); + +@ffi.Native() +external void CGContextClearRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native() +external void CGContextClip(CGContextRef c); + +@ffi.Native() +external void CGContextClipToMask( + CGContextRef c, + objc.CGRect rect, + CGImageRef mask, +); + +@ffi.Native() +external void CGContextClipToRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) +>() +external void CGContextClipToRects( + CGContextRef c, + ffi.Pointer rects, + int count, +); + +@ffi.Native() +external void CGContextClosePath(CGContextRef c); + +@ffi.Native() +external void CGContextConcatCTM(CGContextRef c, CGAffineTransform transform); + +@ffi.Native() +external objc.CGPoint CGContextConvertPointToDeviceSpace( + CGContextRef c, + objc.CGPoint point, +); + +@ffi.Native() +external objc.CGPoint CGContextConvertPointToUserSpace( + CGContextRef c, + objc.CGPoint point, +); + +@ffi.Native() +external objc.CGRect CGContextConvertRectToDeviceSpace( + CGContextRef c, + objc.CGRect rect, +); + +@ffi.Native() +external objc.CGRect CGContextConvertRectToUserSpace( + CGContextRef c, + objc.CGRect rect, +); + +@ffi.Native() +external objc.CGSize CGContextConvertSizeToDeviceSpace( + CGContextRef c, + objc.CGSize size, +); + +@ffi.Native() +external objc.CGSize CGContextConvertSizeToUserSpace( + CGContextRef c, + objc.CGSize size, +); + +@ffi.Native() +external CGPathRef CGContextCopyPath(CGContextRef c); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGGradientRef, objc.CGPoint, CGFloat) +>() +external void CGContextDrawConicGradient( + CGContextRef c, + CGGradientRef gradient, + objc.CGPoint center, + double angle, +); + +@ffi.Native() +external void CGContextDrawImage( + CGContextRef c, + objc.CGRect rect, + CGImageRef image, +); + +@ffi.Native< + ffi.Bool Function( + CGContextRef, + objc.CGRect, + CGImageRef, + ffi.Uint32, + CFDictionaryRef, + ) +>(symbol: 'CGContextDrawImageApplyingToneMapping') +external bool _CGContextDrawImageApplyingToneMapping( + CGContextRef c, + objc.CGRect r, + CGImageRef image, + int method, + CFDictionaryRef options, +); + +bool CGContextDrawImageApplyingToneMapping( + CGContextRef c, + objc.CGRect r, + CGImageRef image, + CGToneMapping method, + CFDictionaryRef options, +) { + return _CGContextDrawImageApplyingToneMapping( + c, + r, + image, + method.value, + options, + ); +} + +@ffi.Native() +external void CGContextDrawLayerAtPoint( + CGContextRef context, + objc.CGPoint point, + CGLayerRef layer, +); + +@ffi.Native() +external void CGContextDrawLayerInRect( + CGContextRef context, + objc.CGRect rect, + CGLayerRef layer, +); + +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGGradientRef, + objc.CGPoint, + objc.CGPoint, + ffi.Uint32, + ) +>() +external void CGContextDrawLinearGradient( + CGContextRef c, + CGGradientRef gradient, + objc.CGPoint startPoint, + objc.CGPoint endPoint, + int options, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(CGContextRef, objc.CGRect, CGPDFDocumentRef, ffi.Int) +>() +external void CGContextDrawPDFDocument( + CGContextRef c, + objc.CGRect rect, + CGPDFDocumentRef document, + int page, +); + +@ffi.Native() +external void CGContextDrawPDFPage(CGContextRef c, CGPDFPageRef page); + +@ffi.Native( + symbol: 'CGContextDrawPath', +) +external void _CGContextDrawPath(CGContextRef c, int mode); + +void CGContextDrawPath(CGContextRef c, CGPathDrawingMode mode) { + return _CGContextDrawPath(c, mode.value); +} + +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGGradientRef, + objc.CGPoint, + CGFloat, + objc.CGPoint, + CGFloat, + ffi.Uint32, + ) +>() +external void CGContextDrawRadialGradient( + CGContextRef c, + CGGradientRef gradient, + objc.CGPoint startCenter, + double startRadius, + objc.CGPoint endCenter, + double endRadius, + int options, +); + +@ffi.Native() +external void CGContextDrawShading(CGContextRef c, CGShadingRef shading); + +@ffi.Native() +external void CGContextDrawTiledImage( + CGContextRef c, + objc.CGRect rect, + CGImageRef image, +); + +@ffi.Native() +external void CGContextEOClip(CGContextRef c); + +@ffi.Native() +external void CGContextEOFillPath(CGContextRef c); + +@ffi.Native() +external void CGContextEndPage(CGContextRef c); + +@ffi.Native() +external void CGContextEndTransparencyLayer(CGContextRef c); + +@ffi.Native() +external void CGContextFillEllipseInRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native() +external void CGContextFillPath(CGContextRef c); + +@ffi.Native() +external void CGContextFillRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) +>() +external void CGContextFillRects( + CGContextRef c, + ffi.Pointer rects, + int count, +); + +@ffi.Native() +external void CGContextFlush(CGContextRef c); + +@ffi.Native() +external CGAffineTransform CGContextGetCTM(CGContextRef c); + +@ffi.Native() +external objc.CGRect CGContextGetClipBoundingBox(CGContextRef c); + +@ffi.Native() +external CGContentToneMappingInfo CGContextGetContentToneMappingInfo( + CGContextRef c, +); + +@ffi.Native() +external double CGContextGetEDRTargetHeadroom(CGContextRef c); + +@ffi.Native( + symbol: 'CGContextGetInterpolationQuality', +) +external int _CGContextGetInterpolationQuality(CGContextRef c); + +CGInterpolationQuality CGContextGetInterpolationQuality(CGContextRef c) { + return CGInterpolationQuality.fromValue(_CGContextGetInterpolationQuality(c)); +} + +@ffi.Native() +external objc.CGRect CGContextGetPathBoundingBox(CGContextRef c); + +@ffi.Native() +external objc.CGPoint CGContextGetPathCurrentPoint(CGContextRef c); + +@ffi.Native() +external CGAffineTransform CGContextGetTextMatrix(CGContextRef c); + +@ffi.Native() +external objc.CGPoint CGContextGetTextPosition(CGContextRef c); + +@ffi.Native() +external int CGContextGetTypeID(); + +@ffi.Native() +external CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform( + CGContextRef c, +); + +@ffi.Native() +external bool CGContextIsPathEmpty(CGContextRef c); + +@ffi.Native() +external void CGContextMoveToPoint(CGContextRef c, double x, double y); + +@ffi.Native( + symbol: 'CGContextPathContainsPoint', +) +external bool _CGContextPathContainsPoint( + CGContextRef c, + objc.CGPoint point, + int mode, +); + +bool CGContextPathContainsPoint( + CGContextRef c, + objc.CGPoint point, + CGPathDrawingMode mode, +) { + return _CGContextPathContainsPoint(c, point, mode.value); +} + +@ffi.Native() +external void CGContextRelease(CGContextRef c); + +@ffi.Native() +external void CGContextReplacePathWithStrokedPath(CGContextRef c); + +@ffi.Native() +external void CGContextResetClip(CGContextRef c); + +@ffi.Native() +external void CGContextRestoreGState(CGContextRef c); + +@ffi.Native() +external CGContextRef CGContextRetain(CGContextRef c); + +@ffi.Native() +external void CGContextRotateCTM(CGContextRef c, double angle); + +@ffi.Native() +external void CGContextSaveGState(CGContextRef c); + +@ffi.Native() +external void CGContextScaleCTM(CGContextRef c, double sx, double sy); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, CGFloat, ffi.Int32) +>(symbol: 'CGContextSelectFont') +external void _CGContextSelectFont( + CGContextRef c, + ffi.Pointer name, + double size, + int textEncoding, +); + +void CGContextSelectFont( + CGContextRef c, + ffi.Pointer name, + DartCGFloat size, + CGTextEncoding textEncoding, +) { + return _CGContextSelectFont(c, name, size, textEncoding.value); +} + +@ffi.Native() +external void CGContextSetAllowsAntialiasing( + CGContextRef c, + bool allowsAntialiasing, +); + +@ffi.Native() +external void CGContextSetAllowsFontSmoothing( + CGContextRef c, + bool allowsFontSmoothing, +); + +@ffi.Native() +external void CGContextSetAllowsFontSubpixelPositioning( + CGContextRef c, + bool allowsFontSubpixelPositioning, +); + +@ffi.Native() +external void CGContextSetAllowsFontSubpixelQuantization( + CGContextRef c, + bool allowsFontSubpixelQuantization, +); + +@ffi.Native() +external void CGContextSetAlpha(CGContextRef c, double alpha); + +@ffi.Native( + symbol: 'CGContextSetBlendMode', +) +external void _CGContextSetBlendMode(CGContextRef c, int mode); + +void CGContextSetBlendMode(CGContextRef c, CGBlendMode mode) { + return _CGContextSetBlendMode(c, mode.value); +} + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextSetCMYKFillColor( + CGContextRef c, + double cyan, + double magenta, + double yellow, + double black, + double alpha, +); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextSetCMYKStrokeColor( + CGContextRef c, + double cyan, + double magenta, + double yellow, + double black, + double alpha, +); + +@ffi.Native() +external void CGContextSetCharacterSpacing(CGContextRef c, double spacing); + +@ffi.Native() +external void CGContextSetContentToneMappingInfo( + CGContextRef c, + CGContentToneMappingInfo info, +); + +@ffi.Native() +external bool CGContextSetEDRTargetHeadroom(CGContextRef c, double headroom); + +@ffi.Native)>() +external void CGContextSetFillColor( + CGContextRef c, + ffi.Pointer components, +); + +@ffi.Native() +external void CGContextSetFillColorSpace(CGContextRef c, CGColorSpaceRef space); + +@ffi.Native() +external void CGContextSetFillColorWithColor(CGContextRef c, CGColorRef color); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGPatternRef, ffi.Pointer) +>() +external void CGContextSetFillPattern( + CGContextRef c, + CGPatternRef pattern, + ffi.Pointer components, +); + +@ffi.Native() +external void CGContextSetFlatness(CGContextRef c, double flatness); + +@ffi.Native() +external void CGContextSetFont(CGContextRef c, CGFontRef font); + +@ffi.Native() +external void CGContextSetFontSize(CGContextRef c, double size); + +@ffi.Native() +external void CGContextSetGrayFillColor( + CGContextRef c, + double gray, + double alpha, +); + +@ffi.Native() +external void CGContextSetGrayStrokeColor( + CGContextRef c, + double gray, + double alpha, +); + +@ffi.Native( + symbol: 'CGContextSetInterpolationQuality', +) +external void _CGContextSetInterpolationQuality(CGContextRef c, int quality); + +void CGContextSetInterpolationQuality( + CGContextRef c, + CGInterpolationQuality quality, +) { + return _CGContextSetInterpolationQuality(c, quality.value); +} + +@ffi.Native( + symbol: 'CGContextSetLineCap', +) +external void _CGContextSetLineCap(CGContextRef c, int cap); + +void CGContextSetLineCap(CGContextRef c, CGLineCap cap) { + return _CGContextSetLineCap(c, cap.value); +} + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, ffi.Pointer, ffi.Size) +>() +external void CGContextSetLineDash( + CGContextRef c, + double phase, + ffi.Pointer lengths, + int count, +); + +@ffi.Native( + symbol: 'CGContextSetLineJoin', +) +external void _CGContextSetLineJoin(CGContextRef c, int join); + +void CGContextSetLineJoin(CGContextRef c, CGLineJoin join) { + return _CGContextSetLineJoin(c, join.value); +} + +@ffi.Native() +external void CGContextSetLineWidth(CGContextRef c, double width); + +@ffi.Native() +external void CGContextSetMiterLimit(CGContextRef c, double limit); + +@ffi.Native() +external void CGContextSetPatternPhase(CGContextRef c, objc.CGSize phase); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextSetRGBFillColor( + CGContextRef c, + double red, + double green, + double blue, + double alpha, +); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) +>() +external void CGContextSetRGBStrokeColor( + CGContextRef c, + double red, + double green, + double blue, + double alpha, +); + +@ffi.Native( + symbol: 'CGContextSetRenderingIntent', +) +external void _CGContextSetRenderingIntent(CGContextRef c, int intent); + +void CGContextSetRenderingIntent( + CGContextRef c, + CGColorRenderingIntent intent, +) { + return _CGContextSetRenderingIntent(c, intent.value); +} + +@ffi.Native() +external void CGContextSetShadow( + CGContextRef c, + objc.CGSize offset, + double blur, +); + +@ffi.Native() +external void CGContextSetShadowWithColor( + CGContextRef c, + objc.CGSize offset, + double blur, + CGColorRef color, +); + +@ffi.Native() +external void CGContextSetShouldAntialias(CGContextRef c, bool shouldAntialias); + +@ffi.Native() +external void CGContextSetShouldSmoothFonts( + CGContextRef c, + bool shouldSmoothFonts, +); + +@ffi.Native() +external void CGContextSetShouldSubpixelPositionFonts( + CGContextRef c, + bool shouldSubpixelPositionFonts, +); + +@ffi.Native() +external void CGContextSetShouldSubpixelQuantizeFonts( + CGContextRef c, + bool shouldSubpixelQuantizeFonts, +); + +@ffi.Native)>() +external void CGContextSetStrokeColor( + CGContextRef c, + ffi.Pointer components, +); + +@ffi.Native() +external void CGContextSetStrokeColorSpace( + CGContextRef c, + CGColorSpaceRef space, +); + +@ffi.Native() +external void CGContextSetStrokeColorWithColor( + CGContextRef c, + CGColorRef color, +); + +@ffi.Native< + ffi.Void Function(CGContextRef, CGPatternRef, ffi.Pointer) +>() +external void CGContextSetStrokePattern( + CGContextRef c, + CGPatternRef pattern, + ffi.Pointer components, +); + +@ffi.Native( + symbol: 'CGContextSetTextDrawingMode', +) +external void _CGContextSetTextDrawingMode(CGContextRef c, int mode); + +void CGContextSetTextDrawingMode(CGContextRef c, CGTextDrawingMode mode) { + return _CGContextSetTextDrawingMode(c, mode.value); +} + +@ffi.Native() +external void CGContextSetTextMatrix(CGContextRef c, CGAffineTransform t); + +@ffi.Native() +external void CGContextSetTextPosition(CGContextRef c, double x, double y); + +@Deprecated('No longer supported') +@ffi.Native, ffi.Size)>() +external void CGContextShowGlyphs( + CGContextRef c, + ffi.Pointer g, + int count, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGFloat, + CGFloat, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGContextShowGlyphsAtPoint( + CGContextRef c, + double x, + double y, + ffi.Pointer glyphs, + int count, +); + +@ffi.Native< + ffi.Void Function( + CGContextRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGContextShowGlyphsAtPositions( + CGContextRef c, + ffi.Pointer glyphs, + ffi.Pointer Lpositions, + int count, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + CGContextRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGContextShowGlyphsWithAdvances( + CGContextRef c, + ffi.Pointer glyphs, + ffi.Pointer advances, + int count, +); + +@Deprecated('No longer supported') +@ffi.Native, ffi.Size)>() +external void CGContextShowText( + CGContextRef c, + ffi.Pointer string, + int length, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + CGContextRef, + CGFloat, + CGFloat, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGContextShowTextAtPoint( + CGContextRef c, + double x, + double y, + ffi.Pointer string, + int length, +); + +@ffi.Native() +external void CGContextStrokeEllipseInRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native< + ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) +>() +external void CGContextStrokeLineSegments( + CGContextRef c, + ffi.Pointer points, + int count, +); + +@ffi.Native() +external void CGContextStrokePath(CGContextRef c); + +@ffi.Native() +external void CGContextStrokeRect(CGContextRef c, objc.CGRect rect); + +@ffi.Native() +external void CGContextStrokeRectWithWidth( + CGContextRef c, + objc.CGRect rect, + double width, +); + +@ffi.Native() +external void CGContextSynchronize(CGContextRef c); + +@ffi.Native() +external void CGContextSynchronizeAttributes(CGContextRef c); + +@ffi.Native() +external void CGContextTranslateCTM(CGContextRef c, double tx, double ty); + +@ffi.Native< + ffi.Bool Function( + ffi.Size, + ffi.Size, + ffi.Pointer, + CGColorDataFormat, + ffi.Pointer, + CGColorDataFormat, + CFDictionaryRef, + ) +>() +external bool CGConvertColorDataWithFormat( + int width, + int height, + ffi.Pointer dst_data, + CGColorDataFormat dst_format, + ffi.Pointer src_data, + CGColorDataFormat src_format, + CFDictionaryRef options, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int CGCursorIsDrawnInFramebuffer(); + +@Deprecated('No longer supported') +@ffi.Native() +external int CGCursorIsVisible(); + +@ffi.Native< + CGDataConsumerRef Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGDataConsumerRef CGDataConsumerCreate( + ffi.Pointer info, + ffi.Pointer cbks, +); + +@ffi.Native() +external CGDataConsumerRef CGDataConsumerCreateWithCFData( + CFMutableDataRef data, +); + +@ffi.Native() +external CGDataConsumerRef CGDataConsumerCreateWithURL(CFURLRef url); + +@ffi.Native() +external int CGDataConsumerGetTypeID(); + +@ffi.Native() +external void CGDataConsumerRelease(CGDataConsumerRef consumer); + +@ffi.Native() +external CGDataConsumerRef CGDataConsumerRetain(CGDataConsumerRef consumer); + +@ffi.Native() +external CFDataRef CGDataProviderCopyData(CGDataProviderRef provider); + +@ffi.Native< + CGDataProviderRef Function( + ffi.Pointer, + off_t, + ffi.Pointer, + ) +>() +external CGDataProviderRef CGDataProviderCreateDirect( + ffi.Pointer info, + int size, + ffi.Pointer callbacks, +); + +@ffi.Native< + CGDataProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGDataProviderRef CGDataProviderCreateSequential( + ffi.Pointer info, + ffi.Pointer callbacks, +); + +@ffi.Native() +external CGDataProviderRef CGDataProviderCreateWithCFData(CFDataRef data); + +@ffi.Native< + CGDataProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + CGDataProviderReleaseDataCallback, + ) +>() +external CGDataProviderRef CGDataProviderCreateWithData( + ffi.Pointer info, + ffi.Pointer data, + int size, + CGDataProviderReleaseDataCallback releaseData, +); + +@ffi.Native)>() +external CGDataProviderRef CGDataProviderCreateWithFilename( + ffi.Pointer filename, +); + +@ffi.Native() +external CGDataProviderRef CGDataProviderCreateWithURL(CFURLRef url); + +@ffi.Native Function(CGDataProviderRef)>() +external ffi.Pointer CGDataProviderGetInfo( + CGDataProviderRef provider, +); + +@ffi.Native() +external int CGDataProviderGetTypeID(); + +@ffi.Native() +external void CGDataProviderRelease(CGDataProviderRef provider); + +@ffi.Native() +external CGDataProviderRef CGDataProviderRetain(CGDataProviderRef provider); + +@ffi.Native Function(CGDirectDisplayID)>( + symbol: 'CGDirectDisplayCopyCurrentMetalDevice', +) +external ffi.Pointer +_CGDirectDisplayCopyCurrentMetalDevice(int display); + +MTLDevice? CGDirectDisplayCopyCurrentMetalDevice( + DartCGDirectDisplayID display, +) { + return _CGDirectDisplayCopyCurrentMetalDevice(display).address == 0 + ? null + : MTLDevice.fromPointer( + _CGDirectDisplayCopyCurrentMetalDevice(display), + retain: false, + release: true, + ); +} + +@Deprecated('No longer supported') +@ffi.Native() +external CFArrayRef CGDisplayAvailableModes(int dsp); + +@Deprecated('No longer supported') +@ffi.Native< + CFDictionaryRef Function( + CGDirectDisplayID, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>() +external CFDictionaryRef CGDisplayBestModeForParameters( + int display, + int bitsPerPixel, + int width, + int height, + ffi.Pointer exactMatch, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDictionaryRef Function( + CGDirectDisplayID, + ffi.Size, + ffi.Size, + ffi.Size, + CGRefreshRate, + ffi.Pointer, + ) +>() +external CFDictionaryRef CGDisplayBestModeForParametersAndRefreshRate( + int display, + int bitsPerPixel, + int width, + int height, + double refreshRate, + ffi.Pointer exactMatch, +); + +@ffi.Native() +external objc.CGRect CGDisplayBounds(int display); + +@ffi.Native(symbol: 'CGDisplayCapture') +external int _CGDisplayCapture(int display); + +CGError CGDisplayCapture(DartCGDirectDisplayID display) { + return CGError.fromValue(_CGDisplayCapture(display)); +} + +@ffi.Native( + symbol: 'CGDisplayCaptureWithOptions', +) +external int _CGDisplayCaptureWithOptions(int display, int options); + +CGError CGDisplayCaptureWithOptions( + DartCGDirectDisplayID display, + int options, +) { + return CGError.fromValue(_CGDisplayCaptureWithOptions(display, options)); +} + +@ffi.Native() +external CFArrayRef CGDisplayCopyAllDisplayModes( + int display, + CFDictionaryRef options, +); + +@ffi.Native() +external CGColorSpaceRef CGDisplayCopyColorSpace(int display); + +@ffi.Native() +external CGDisplayModeRef CGDisplayCopyDisplayMode(int display); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external CGImageRef CGDisplayCreateImage(int displayID); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external CGImageRef CGDisplayCreateImageForRect(int display, objc.CGRect rect); + +@ffi.Native() +external CFUUIDRef CGDisplayCreateUUIDFromDisplayID(int displayID); + +@Deprecated('No longer supported') +@ffi.Native() +external CFDictionaryRef CGDisplayCurrentMode(int display); + +@ffi.Native< + ffi.Int32 Function( + CGDisplayFadeReservationToken, + CGDisplayFadeInterval, + CGDisplayBlendFraction, + CGDisplayBlendFraction, + ffi.Float, + ffi.Float, + ffi.Float, + boolean_t, + ) +>(symbol: 'CGDisplayFade') +external int _CGDisplayFade( + int token, + double duration, + double startBlend, + double endBlend, + double redBlend, + double greenBlend, + double blueBlend, + int synchronous, +); + +CGError CGDisplayFade( + DartCGDisplayFadeReservationToken token, + DartCGDisplayFadeInterval duration, + DartCGDisplayBlendFraction startBlend, + DartCGDisplayBlendFraction endBlend, + double redBlend, + double greenBlend, + double blueBlend, + Dartboolean_t synchronous, +) { + return CGError.fromValue( + _CGDisplayFade( + token, + duration, + startBlend, + endBlend, + redBlend, + greenBlend, + blueBlend, + synchronous, + ), + ); +} + +@Deprecated('No longer supported') +@ffi.Native() +external int CGDisplayFadeOperationInProgress(); + +@ffi.Native() +external int CGDisplayGammaTableCapacity(int display); + +@ffi.Native() +external int CGDisplayGetDisplayIDFromUUID(CFUUIDRef uuid); + +@ffi.Native() +external CGContextRef CGDisplayGetDrawingContext(int display); + +@ffi.Native( + symbol: 'CGDisplayHideCursor', +) +external int _CGDisplayHideCursor(int display); + +CGError CGDisplayHideCursor(DartCGDirectDisplayID display) { + return CGError.fromValue(_CGDisplayHideCursor(display)); +} + +@ffi.Native() +external int CGDisplayIDToOpenGLDisplayMask(int display); + +@Deprecated('No longer supported') +@ffi.Native() +external int CGDisplayIOServicePort(int display); + +@ffi.Native() +external int CGDisplayIsActive(int display); + +@ffi.Native() +external int CGDisplayIsAlwaysInMirrorSet(int display); + +@ffi.Native() +external int CGDisplayIsAsleep(int display); + +@ffi.Native() +external int CGDisplayIsBuiltin(int display); + +@Deprecated('No longer supported') +@ffi.Native() +external int CGDisplayIsCaptured(int display); + +@ffi.Native() +external int CGDisplayIsInHWMirrorSet(int display); + +@ffi.Native() +external int CGDisplayIsInMirrorSet(int display); + +@ffi.Native() +external int CGDisplayIsMain(int display); + +@ffi.Native() +external int CGDisplayIsOnline(int display); + +@ffi.Native() +external int CGDisplayIsStereo(int display); + +@ffi.Native() +external int CGDisplayMirrorsDisplay(int display); + +@Deprecated('No longer supported') +@ffi.Native() +external CFStringRef CGDisplayModeCopyPixelEncoding(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetHeight(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetIODisplayModeID(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetIOFlags(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetPixelHeight(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetPixelWidth(CGDisplayModeRef mode); + +@ffi.Native() +external double CGDisplayModeGetRefreshRate(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModeGetTypeID(); + +@ffi.Native() +external int CGDisplayModeGetWidth(CGDisplayModeRef mode); + +@ffi.Native() +external bool CGDisplayModeIsUsableForDesktopGUI(CGDisplayModeRef mode); + +@ffi.Native() +external void CGDisplayModeRelease(CGDisplayModeRef mode); + +@ffi.Native() +external CGDisplayModeRef CGDisplayModeRetain(CGDisplayModeRef mode); + +@ffi.Native() +external int CGDisplayModelNumber(int display); + +@ffi.Native( + symbol: 'CGDisplayMoveCursorToPoint', +) +external int _CGDisplayMoveCursorToPoint(int display, objc.CGPoint point); + +CGError CGDisplayMoveCursorToPoint( + DartCGDirectDisplayID display, + objc.CGPoint point, +) { + return CGError.fromValue(_CGDisplayMoveCursorToPoint(display, point)); +} + +@ffi.Native() +external int CGDisplayPixelsHigh(int display); + +@ffi.Native() +external int CGDisplayPixelsWide(int display); + +@ffi.Native() +external int CGDisplayPrimaryDisplay(int display); + +@ffi.Native< + ffi.Int32 Function(CGDisplayReconfigurationCallBack, ffi.Pointer) +>(symbol: 'CGDisplayRegisterReconfigurationCallback') +external int _CGDisplayRegisterReconfigurationCallback( + CGDisplayReconfigurationCallBack callback, + ffi.Pointer userInfo, +); + +CGError CGDisplayRegisterReconfigurationCallback( + CGDisplayReconfigurationCallBack callback, + ffi.Pointer userInfo, +) { + return CGError.fromValue( + _CGDisplayRegisterReconfigurationCallback(callback, userInfo), + ); +} + +@ffi.Native(symbol: 'CGDisplayRelease') +external int _CGDisplayRelease(int display); + +CGError CGDisplayRelease(DartCGDirectDisplayID display) { + return CGError.fromValue(_CGDisplayRelease(display)); +} + +@ffi.Native< + ffi.Int32 Function(CGDisplayReconfigurationCallBack, ffi.Pointer) +>(symbol: 'CGDisplayRemoveReconfigurationCallback') +external int _CGDisplayRemoveReconfigurationCallback( + CGDisplayReconfigurationCallBack callback, + ffi.Pointer userInfo, +); + +CGError CGDisplayRemoveReconfigurationCallback( + CGDisplayReconfigurationCallBack callback, + ffi.Pointer userInfo, +) { + return CGError.fromValue( + _CGDisplayRemoveReconfigurationCallback(callback, userInfo), + ); +} + +@ffi.Native() +external void CGDisplayRestoreColorSyncSettings(); + +@ffi.Native() +external double CGDisplayRotation(int display); + +@ffi.Native() +external objc.CGSize CGDisplayScreenSize(int display); + +@ffi.Native() +external int CGDisplaySerialNumber(int display); + +@ffi.Native< + ffi.Int32 Function(CGDirectDisplayID, CGDisplayModeRef, CFDictionaryRef) +>(symbol: 'CGDisplaySetDisplayMode') +external int _CGDisplaySetDisplayMode( + int display, + CGDisplayModeRef mode, + CFDictionaryRef options, +); + +CGError CGDisplaySetDisplayMode( + DartCGDirectDisplayID display, + CGDisplayModeRef mode, + CFDictionaryRef options, +) { + return CGError.fromValue(_CGDisplaySetDisplayMode(display, mode, options)); +} + +@ffi.Native< + ffi.Int32 Function(CGDirectDisplayID, boolean_t, boolean_t, ffi.Uint32) +>(symbol: 'CGDisplaySetStereoOperation') +external int _CGDisplaySetStereoOperation( + int display, + int stereo, + int forceBlueLine, + int option, +); + +CGError CGDisplaySetStereoOperation( + DartCGDirectDisplayID display, + Dartboolean_t stereo, + Dartboolean_t forceBlueLine, + int option, +) { + return CGError.fromValue( + _CGDisplaySetStereoOperation(display, stereo, forceBlueLine, option), + ); +} + +@ffi.Native( + symbol: 'CGDisplayShowCursor', +) +external int _CGDisplayShowCursor(int display); + +CGError CGDisplayShowCursor(DartCGDirectDisplayID display) { + return CGError.fromValue(_CGDisplayShowCursor(display)); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + CGDisplayStreamRef Function( + CGDirectDisplayID, + ffi.Size, + ffi.Size, + ffi.Int32, + CFDictionaryRef, + CGDisplayStreamFrameAvailableHandler, + ) +>(symbol: 'CGDisplayStreamCreate') +external CGDisplayStreamRef _CGDisplayStreamCreate( + int display, + int outputWidth, + int outputHeight, + int pixelFormat, + CFDictionaryRef properties, + CGDisplayStreamFrameAvailableHandler handler, +); + +CGDisplayStreamRef CGDisplayStreamCreate( + DartCGDirectDisplayID display, + int outputWidth, + int outputHeight, + int pixelFormat, + CFDictionaryRef properties, + DartCGDisplayStreamFrameAvailableHandler? handler, +) { + final _$$ref = handler?.ref; + return _CGDisplayStreamCreate( + display, + outputWidth, + outputHeight, + pixelFormat, + properties, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + CGDisplayStreamRef Function( + CGDirectDisplayID, + ffi.Size, + ffi.Size, + ffi.Int32, + CFDictionaryRef, + dispatch_queue_t, + CGDisplayStreamFrameAvailableHandler, + ) +>(symbol: 'CGDisplayStreamCreateWithDispatchQueue') +external CGDisplayStreamRef _CGDisplayStreamCreateWithDispatchQueue( + int display, + int outputWidth, + int outputHeight, + int pixelFormat, + CFDictionaryRef properties, + dispatch_queue_t queue, + CGDisplayStreamFrameAvailableHandler handler, +); + +CGDisplayStreamRef CGDisplayStreamCreateWithDispatchQueue( + DartCGDirectDisplayID display, + int outputWidth, + int outputHeight, + int pixelFormat, + CFDictionaryRef properties, + Dartdispatch_queue_t queue, + DartCGDisplayStreamFrameAvailableHandler? handler, +) { + final _$$ref = queue.ref; + final _$$ref$1 = handler?.ref; + return _CGDisplayStreamCreateWithDispatchQueue( + display, + outputWidth, + outputHeight, + pixelFormat, + properties, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external CFRunLoopSourceRef CGDisplayStreamGetRunLoopSource( + CGDisplayStreamRef displayStream, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external int CGDisplayStreamGetTypeID(); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native( + symbol: 'CGDisplayStreamStart', +) +external int _CGDisplayStreamStart(CGDisplayStreamRef displayStream); + +CGError CGDisplayStreamStart(CGDisplayStreamRef displayStream) { + return CGError.fromValue(_CGDisplayStreamStart(displayStream)); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native( + symbol: 'CGDisplayStreamStop', +) +external int _CGDisplayStreamStop(CGDisplayStreamRef displayStream); + +CGError CGDisplayStreamStop(CGDisplayStreamRef displayStream) { + return CGError.fromValue(_CGDisplayStreamStop(displayStream)); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + CGDisplayStreamUpdateRef Function( + CGDisplayStreamUpdateRef, + CGDisplayStreamUpdateRef, + ) +>() +external CGDisplayStreamUpdateRef CGDisplayStreamUpdateCreateMergedUpdate( + CGDisplayStreamUpdateRef firstUpdate, + CGDisplayStreamUpdateRef secondUpdate, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external int CGDisplayStreamUpdateGetDropCount( + CGDisplayStreamUpdateRef updateRef, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + ffi.Void Function( + CGDisplayStreamUpdateRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CGDisplayStreamUpdateGetMovedRectsDelta( + CGDisplayStreamUpdateRef updateRef, + ffi.Pointer dx, + ffi.Pointer dy, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + ffi.Pointer Function( + CGDisplayStreamUpdateRef, + ffi.Int32, + ffi.Pointer, + ) +>(symbol: 'CGDisplayStreamUpdateGetRects') +external ffi.Pointer _CGDisplayStreamUpdateGetRects( + CGDisplayStreamUpdateRef updateRef, + int rectType, + ffi.Pointer rectCount, +); + +ffi.Pointer CGDisplayStreamUpdateGetRects( + CGDisplayStreamUpdateRef updateRef, + CGDisplayStreamUpdateRectType rectType, + ffi.Pointer rectCount, +) { + return _CGDisplayStreamUpdateGetRects(updateRef, rectType.value, rectCount); +} + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external int CGDisplayStreamUpdateGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGDisplaySwitchToMode', +) +external int _CGDisplaySwitchToMode(int display, CFDictionaryRef mode); + +CGError CGDisplaySwitchToMode( + DartCGDirectDisplayID display, + CFDictionaryRef mode, +) { + return CGError.fromValue(_CGDisplaySwitchToMode(display, mode)); +} + +@ffi.Native() +external int CGDisplayUnitNumber(int display); + +@ffi.Native() +external int CGDisplayUsesOpenGLAcceleration(int display); + +@ffi.Native() +external int CGDisplayVendorNumber(int display); + +@ffi.Native() +external CFDictionaryRef CGEXRToneMappingGammaGetDefaultOptions(); + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGEnableEventStateCombining', +) +external int _CGEnableEventStateCombining(int combineState); + +CGError CGEnableEventStateCombining(Dartboolean_t combineState) { + return CGError.fromValue(_CGEnableEventStateCombining(combineState)); +} + +@ffi.Native() +external void CGErrorSetCallback(CGErrorCallback callback); + +@ffi.Native() +external CGEventRef CGEventCreate(CGEventSourceRef source); + +@ffi.Native() +external CGEventRef CGEventCreateCopy(CGEventRef event); + +@ffi.Native() +external CFDataRef CGEventCreateData( + CFAllocatorRef allocator, + CGEventRef event, +); + +@ffi.Native() +external CGEventRef CGEventCreateFromData( + CFAllocatorRef allocator, + CFDataRef data, +); + +@ffi.Native() +external CGEventRef CGEventCreateKeyboardEvent( + CGEventSourceRef source, + int virtualKey, + bool keyDown, +); + +@ffi.Native< + CGEventRef Function(CGEventSourceRef, ffi.Uint32, objc.CGPoint, ffi.Uint32) +>(symbol: 'CGEventCreateMouseEvent') +external CGEventRef _CGEventCreateMouseEvent( + CGEventSourceRef source, + int mouseType, + objc.CGPoint mouseCursorPosition, + int mouseButton, +); + +CGEventRef CGEventCreateMouseEvent( + CGEventSourceRef source, + CGEventType mouseType, + objc.CGPoint mouseCursorPosition, + CGMouseButton mouseButton, +) { + return _CGEventCreateMouseEvent( + source, + mouseType.value, + mouseCursorPosition, + mouseButton.value, + ); +} + +@ffi.Native< + CGEventRef Function(CGEventSourceRef, ffi.Uint32, ffi.Uint32, ffi.Int32) +>(symbol: 'CGEventCreateScrollWheelEvent') +external CGEventRef _CGEventCreateScrollWheelEvent( + CGEventSourceRef source, + int units, + int wheelCount, + int wheel1, +); + +CGEventRef CGEventCreateScrollWheelEvent( + CGEventSourceRef source, + CGScrollEventUnit units, + int wheelCount, + int wheel1, +) { + return _CGEventCreateScrollWheelEvent( + source, + units.value, + wheelCount, + wheel1, + ); +} + +@ffi.Native< + CGEventRef Function( + CGEventSourceRef, + ffi.Uint32, + ffi.Uint32, + ffi.Int32, + ffi.Int32, + ffi.Int32, + ) +>(symbol: 'CGEventCreateScrollWheelEvent2') +external CGEventRef _CGEventCreateScrollWheelEvent2( + CGEventSourceRef source, + int units, + int wheelCount, + int wheel1, + int wheel2, + int wheel3, +); + +CGEventRef CGEventCreateScrollWheelEvent2( + CGEventSourceRef source, + CGScrollEventUnit units, + int wheelCount, + int wheel1, + int wheel2, + int wheel3, +) { + return _CGEventCreateScrollWheelEvent2( + source, + units.value, + wheelCount, + wheel1, + wheel2, + wheel3, + ); +} + +@ffi.Native() +external CGEventSourceRef CGEventCreateSourceFromEvent(CGEventRef event); + +@ffi.Native( + symbol: 'CGEventGetDoubleValueField', +) +external double _CGEventGetDoubleValueField(CGEventRef event, int field); + +double CGEventGetDoubleValueField(CGEventRef event, CGEventField field) { + return _CGEventGetDoubleValueField(event, field.value); +} + +@ffi.Native() +external int CGEventGetFlags(CGEventRef event); + +@ffi.Native( + symbol: 'CGEventGetIntegerValueField', +) +external int _CGEventGetIntegerValueField(CGEventRef event, int field); + +int CGEventGetIntegerValueField(CGEventRef event, CGEventField field) { + return _CGEventGetIntegerValueField(event, field.value); +} + +@ffi.Native() +external objc.CGPoint CGEventGetLocation(CGEventRef event); + +@ffi.Native() +external int CGEventGetTimestamp(CGEventRef event); + +@ffi.Native(symbol: 'CGEventGetType') +external int _CGEventGetType(CGEventRef event); + +CGEventType CGEventGetType(CGEventRef event) { + return CGEventType.fromValue(_CGEventGetType(event)); +} + +@ffi.Native() +external int CGEventGetTypeID(); + +@ffi.Native() +external objc.CGPoint CGEventGetUnflippedLocation(CGEventRef event); + +@ffi.Native< + ffi.Void Function( + CGEventRef, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CGEventKeyboardGetUnicodeString( + CGEventRef event, + int maxStringLength, + ffi.Pointer actualStringLength, + ffi.Pointer unicodeString, +); + +@ffi.Native)>() +external void CGEventKeyboardSetUnicodeString( + CGEventRef event, + int stringLength, + ffi.Pointer unicodeString, +); + +@ffi.Native(symbol: 'CGEventPost') +external void _CGEventPost(int tap, CGEventRef event); + +void CGEventPost(CGEventTapLocation tap, CGEventRef event) { + return _CGEventPost(tap.value, event); +} + +@ffi.Native, CGEventRef)>() +external void CGEventPostToPSN( + ffi.Pointer processSerialNumber, + CGEventRef event, +); + +@ffi.Native() +external void CGEventPostToPid(int pid, CGEventRef event); + +@ffi.Native( + symbol: 'CGEventSetDoubleValueField', +) +external void _CGEventSetDoubleValueField( + CGEventRef event, + int field, + double value, +); + +void CGEventSetDoubleValueField( + CGEventRef event, + CGEventField field, + double value, +) { + return _CGEventSetDoubleValueField(event, field.value, value); +} + +@ffi.Native() +external void CGEventSetFlags(CGEventRef event, int flags); + +@ffi.Native( + symbol: 'CGEventSetIntegerValueField', +) +external void _CGEventSetIntegerValueField( + CGEventRef event, + int field, + int value, +); + +void CGEventSetIntegerValueField( + CGEventRef event, + CGEventField field, + int value, +) { + return _CGEventSetIntegerValueField(event, field.value, value); +} + +@ffi.Native() +external void CGEventSetLocation(CGEventRef event, objc.CGPoint location); + +@ffi.Native() +external void CGEventSetSource(CGEventRef event, CGEventSourceRef source); + +@ffi.Native() +external void CGEventSetTimestamp(CGEventRef event, int timestamp); + +@ffi.Native(symbol: 'CGEventSetType') +external void _CGEventSetType(CGEventRef event, int type); + +void CGEventSetType(CGEventRef event, CGEventType type) { + return _CGEventSetType(event, type.value); +} + +@ffi.Native( + symbol: 'CGEventSourceButtonState', +) +external bool _CGEventSourceButtonState(int stateID, int button); + +bool CGEventSourceButtonState( + CGEventSourceStateID stateID, + CGMouseButton button, +) { + return _CGEventSourceButtonState(stateID.value, button.value); +} + +@ffi.Native( + symbol: 'CGEventSourceCounterForEventType', +) +external int _CGEventSourceCounterForEventType(int stateID, int eventType); + +int CGEventSourceCounterForEventType( + CGEventSourceStateID stateID, + CGEventType eventType, +) { + return _CGEventSourceCounterForEventType(stateID.value, eventType.value); +} + +@ffi.Native(symbol: 'CGEventSourceCreate') +external CGEventSourceRef _CGEventSourceCreate(int stateID); + +CGEventSourceRef CGEventSourceCreate(CGEventSourceStateID stateID) { + return _CGEventSourceCreate(stateID.value); +} + +@ffi.Native(symbol: 'CGEventSourceFlagsState') +external int _CGEventSourceFlagsState(int stateID); + +int CGEventSourceFlagsState(CGEventSourceStateID stateID) { + return _CGEventSourceFlagsState(stateID.value); +} + +@ffi.Native() +external int CGEventSourceGetKeyboardType(CGEventSourceRef source); + +@ffi.Native( + symbol: 'CGEventSourceGetLocalEventsFilterDuringSuppressionState', +) +external int _CGEventSourceGetLocalEventsFilterDuringSuppressionState( + CGEventSourceRef source, + int state, +); + +int CGEventSourceGetLocalEventsFilterDuringSuppressionState( + CGEventSourceRef source, + CGEventSuppressionState state, +) { + return _CGEventSourceGetLocalEventsFilterDuringSuppressionState( + source, + state.value, + ); +} + +@ffi.Native() +external double CGEventSourceGetLocalEventsSuppressionInterval( + CGEventSourceRef source, +); + +@ffi.Native() +external double CGEventSourceGetPixelsPerLine(CGEventSourceRef source); + +@ffi.Native( + symbol: 'CGEventSourceGetSourceStateID', +) +external int _CGEventSourceGetSourceStateID(CGEventSourceRef source); + +CGEventSourceStateID CGEventSourceGetSourceStateID(CGEventSourceRef source) { + return CGEventSourceStateID.fromValue(_CGEventSourceGetSourceStateID(source)); +} + +@ffi.Native() +external int CGEventSourceGetTypeID(); + +@ffi.Native() +external int CGEventSourceGetUserData(CGEventSourceRef source); + +@ffi.Native( + symbol: 'CGEventSourceKeyState', +) +external bool _CGEventSourceKeyState(int stateID, int key); + +bool CGEventSourceKeyState(CGEventSourceStateID stateID, DartCGKeyCode key) { + return _CGEventSourceKeyState(stateID.value, key); +} + +@ffi.Native( + symbol: 'CGEventSourceSecondsSinceLastEventType', +) +external double _CGEventSourceSecondsSinceLastEventType( + int stateID, + int eventType, +); + +DartCFTimeInterval CGEventSourceSecondsSinceLastEventType( + CGEventSourceStateID stateID, + CGEventType eventType, +) { + return _CGEventSourceSecondsSinceLastEventType( + stateID.value, + eventType.value, + ); +} + +@ffi.Native() +external void CGEventSourceSetKeyboardType( + CGEventSourceRef source, + int keyboardType, +); + +@ffi.Native( + symbol: 'CGEventSourceSetLocalEventsFilterDuringSuppressionState', +) +external void _CGEventSourceSetLocalEventsFilterDuringSuppressionState( + CGEventSourceRef source, + int filter, + int state, +); + +void CGEventSourceSetLocalEventsFilterDuringSuppressionState( + CGEventSourceRef source, + int filter, + CGEventSuppressionState state, +) { + return _CGEventSourceSetLocalEventsFilterDuringSuppressionState( + source, + filter, + state.value, + ); +} + +@ffi.Native() +external void CGEventSourceSetLocalEventsSuppressionInterval( + CGEventSourceRef source, + double seconds, +); + +@ffi.Native() +external void CGEventSourceSetPixelsPerLine( + CGEventSourceRef source, + double pixelsPerLine, +); + +@ffi.Native() +external void CGEventSourceSetUserData(CGEventSourceRef source, int userData); + +@ffi.Native< + CFMachPortRef Function( + ffi.Uint32, + ffi.Uint32, + ffi.Uint32, + CGEventMask, + CGEventTapCallBack, + ffi.Pointer, + ) +>(symbol: 'CGEventTapCreate') +external CFMachPortRef _CGEventTapCreate( + int tap, + int place, + int options, + int eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +); + +CFMachPortRef CGEventTapCreate( + CGEventTapLocation tap, + CGEventTapPlacement place, + CGEventTapOptions options, + DartCGEventMask eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +) { + return _CGEventTapCreate( + tap.value, + place.value, + options.value, + eventsOfInterest, + callback, + userInfo, + ); +} + +@ffi.Native< + CFMachPortRef Function( + ffi.Pointer, + ffi.Uint32, + ffi.Uint32, + CGEventMask, + CGEventTapCallBack, + ffi.Pointer, + ) +>(symbol: 'CGEventTapCreateForPSN') +external CFMachPortRef _CGEventTapCreateForPSN( + ffi.Pointer processSerialNumber, + int place, + int options, + int eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +); + +CFMachPortRef CGEventTapCreateForPSN( + ffi.Pointer processSerialNumber, + CGEventTapPlacement place, + CGEventTapOptions options, + DartCGEventMask eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +) { + return _CGEventTapCreateForPSN( + processSerialNumber, + place.value, + options.value, + eventsOfInterest, + callback, + userInfo, + ); +} + +@ffi.Native< + CFMachPortRef Function( + pid_t, + ffi.Uint32, + ffi.Uint32, + CGEventMask, + CGEventTapCallBack, + ffi.Pointer, + ) +>(symbol: 'CGEventTapCreateForPid') +external CFMachPortRef _CGEventTapCreateForPid( + int pid, + int place, + int options, + int eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +); + +CFMachPortRef CGEventTapCreateForPid( + Dart__int32_t pid, + CGEventTapPlacement place, + CGEventTapOptions options, + DartCGEventMask eventsOfInterest, + CGEventTapCallBack callback, + ffi.Pointer userInfo, +) { + return _CGEventTapCreateForPid( + pid, + place.value, + options.value, + eventsOfInterest, + callback, + userInfo, + ); +} + +@ffi.Native() +external void CGEventTapEnable(CFMachPortRef tap, bool enable); + +@ffi.Native() +external bool CGEventTapIsEnabled(CFMachPortRef tap); + +@ffi.Native() +external void CGEventTapPostEvent(CGEventTapProxy proxy, CGEventRef event); + +@ffi.Native( + symbol: 'CGFontCanCreatePostScriptSubset', +) +external bool _CGFontCanCreatePostScriptSubset(CGFontRef font, int format); + +bool CGFontCanCreatePostScriptSubset( + CGFontRef font, + CGFontPostScriptFormat format, +) { + return _CGFontCanCreatePostScriptSubset(font, format.value); +} + +@ffi.Native() +external CFStringRef CGFontCopyFullName(CGFontRef font); + +@ffi.Native() +external CFStringRef CGFontCopyGlyphNameForGlyph(CGFontRef font, int glyph); + +@ffi.Native() +external CFStringRef CGFontCopyPostScriptName(CGFontRef font); + +@ffi.Native() +external CFDataRef CGFontCopyTableForTag(CGFontRef font, int tag); + +@ffi.Native() +external CFArrayRef CGFontCopyTableTags(CGFontRef font); + +@ffi.Native() +external CFArrayRef CGFontCopyVariationAxes(CGFontRef font); + +@ffi.Native() +external CFDictionaryRef CGFontCopyVariations(CGFontRef font); + +@ffi.Native() +external CGFontRef CGFontCreateCopyWithVariations( + CGFontRef font, + CFDictionaryRef variations, +); + +@ffi.Native)>() +external CFDataRef CGFontCreatePostScriptEncoding( + CGFontRef font, + ffi.Pointer encoding, +); + +@ffi.Native< + CFDataRef Function( + CGFontRef, + CFStringRef, + ffi.Int32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'CGFontCreatePostScriptSubset') +external CFDataRef _CGFontCreatePostScriptSubset( + CGFontRef font, + CFStringRef subsetName, + int format, + ffi.Pointer glyphs, + int count, + ffi.Pointer encoding, +); + +CFDataRef CGFontCreatePostScriptSubset( + CGFontRef font, + CFStringRef subsetName, + CGFontPostScriptFormat format, + ffi.Pointer glyphs, + int count, + ffi.Pointer encoding, +) { + return _CGFontCreatePostScriptSubset( + font, + subsetName, + format.value, + glyphs, + count, + encoding, + ); +} + +@ffi.Native() +external CGFontRef CGFontCreateWithDataProvider(CGDataProviderRef provider); + +@ffi.Native() +external CGFontRef CGFontCreateWithFontName(CFStringRef name); + +@Deprecated('No longer supported') +@ffi.Native)>() +external CGFontRef CGFontCreateWithPlatformFont( + ffi.Pointer platformFontReference, +); + +@ffi.Native() +external int CGFontGetAscent(CGFontRef font); + +@ffi.Native() +external int CGFontGetCapHeight(CGFontRef font); + +@ffi.Native() +external int CGFontGetDescent(CGFontRef font); + +@ffi.Native() +external objc.CGRect CGFontGetFontBBox(CGFontRef font); + +@ffi.Native< + ffi.Bool Function( + CGFontRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external bool CGFontGetGlyphAdvances( + CGFontRef font, + ffi.Pointer glyphs, + int count, + ffi.Pointer advances, +); + +@ffi.Native< + ffi.Bool Function( + CGFontRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external bool CGFontGetGlyphBBoxes( + CGFontRef font, + ffi.Pointer glyphs, + int count, + ffi.Pointer bboxes, +); + +@ffi.Native() +external int CGFontGetGlyphWithGlyphName(CGFontRef font, CFStringRef name); + +@ffi.Native() +external double CGFontGetItalicAngle(CGFontRef font); + +@ffi.Native() +external int CGFontGetLeading(CGFontRef font); + +@ffi.Native() +external int CGFontGetNumberOfGlyphs(CGFontRef font); + +@ffi.Native() +external double CGFontGetStemV(CGFontRef font); + +@ffi.Native() +external int CGFontGetTypeID(); + +@ffi.Native() +external int CGFontGetUnitsPerEm(CGFontRef font); + +@ffi.Native() +external int CGFontGetXHeight(CGFontRef font); + +@ffi.Native() +external void CGFontRelease(CGFontRef font); + +@ffi.Native() +external CGFontRef CGFontRetain(CGFontRef font); + +@ffi.Native< + CGFunctionRef Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGFunctionRef CGFunctionCreate( + ffi.Pointer info, + int domainDimension, + ffi.Pointer domain, + int rangeDimension, + ffi.Pointer range, + ffi.Pointer callbacks, +); + +@ffi.Native() +external int CGFunctionGetTypeID(); + +@ffi.Native() +external void CGFunctionRelease(CGFunctionRef function); + +@ffi.Native() +external CGFunctionRef CGFunctionRetain(CGFunctionRef function); + +@ffi.Native< + ffi.Int32 Function( + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetActiveDisplayList') +external int _CGGetActiveDisplayList( + int maxDisplays, + ffi.Pointer activeDisplays, + ffi.Pointer displayCount, +); + +CGError CGGetActiveDisplayList( + int maxDisplays, + ffi.Pointer activeDisplays, + ffi.Pointer displayCount, +) { + return CGError.fromValue( + _CGGetActiveDisplayList(maxDisplays, activeDisplays, displayCount), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGDirectDisplayID, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetDisplayTransferByFormula') +external int _CGGetDisplayTransferByFormula( + int display, + ffi.Pointer redMin, + ffi.Pointer redMax, + ffi.Pointer redGamma, + ffi.Pointer greenMin, + ffi.Pointer greenMax, + ffi.Pointer greenGamma, + ffi.Pointer blueMin, + ffi.Pointer blueMax, + ffi.Pointer blueGamma, +); + +CGError CGGetDisplayTransferByFormula( + DartCGDirectDisplayID display, + ffi.Pointer redMin, + ffi.Pointer redMax, + ffi.Pointer redGamma, + ffi.Pointer greenMin, + ffi.Pointer greenMax, + ffi.Pointer greenGamma, + ffi.Pointer blueMin, + ffi.Pointer blueMax, + ffi.Pointer blueGamma, +) { + return CGError.fromValue( + _CGGetDisplayTransferByFormula( + display, + redMin, + redMax, + redGamma, + greenMin, + greenMax, + greenGamma, + blueMin, + blueMax, + blueGamma, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGDirectDisplayID, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetDisplayTransferByTable') +external int _CGGetDisplayTransferByTable( + int display, + int capacity, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, + ffi.Pointer sampleCount, +); + +CGError CGGetDisplayTransferByTable( + DartCGDirectDisplayID display, + int capacity, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, + ffi.Pointer sampleCount, +) { + return CGError.fromValue( + _CGGetDisplayTransferByTable( + display, + capacity, + redTable, + greenTable, + blueTable, + sampleCount, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGOpenGLDisplayMask, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetDisplaysWithOpenGLDisplayMask') +external int _CGGetDisplaysWithOpenGLDisplayMask( + int mask, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +); + +CGError CGGetDisplaysWithOpenGLDisplayMask( + DartCGOpenGLDisplayMask mask, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +) { + return CGError.fromValue( + _CGGetDisplaysWithOpenGLDisplayMask( + mask, + maxDisplays, + displays, + matchingDisplayCount, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function( + objc.CGPoint, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetDisplaysWithPoint') +external int _CGGetDisplaysWithPoint( + objc.CGPoint point, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +); + +CGError CGGetDisplaysWithPoint( + objc.CGPoint point, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +) { + return CGError.fromValue( + _CGGetDisplaysWithPoint(point, maxDisplays, displays, matchingDisplayCount), + ); +} + +@ffi.Native< + ffi.Int32 Function( + objc.CGRect, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetDisplaysWithRect') +external int _CGGetDisplaysWithRect( + objc.CGRect rect, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +); + +CGError CGGetDisplaysWithRect( + objc.CGRect rect, + int maxDisplays, + ffi.Pointer displays, + ffi.Pointer matchingDisplayCount, +) { + return CGError.fromValue( + _CGGetDisplaysWithRect(rect, maxDisplays, displays, matchingDisplayCount), + ); +} + +@ffi.Native< + ffi.Int32 Function( + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetEventTapList') +external int _CGGetEventTapList( + int maxNumberOfTaps, + ffi.Pointer tapList, + ffi.Pointer eventTapCount, +); + +CGError CGGetEventTapList( + int maxNumberOfTaps, + ffi.Pointer tapList, + ffi.Pointer eventTapCount, +) { + return CGError.fromValue( + _CGGetEventTapList(maxNumberOfTaps, tapList, eventTapCount), + ); +} + +@ffi.Native, ffi.Pointer)>() +external void CGGetLastMouseDelta( + ffi.Pointer deltaX, + ffi.Pointer deltaY, +); + +@ffi.Native< + ffi.Int32 Function( + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGGetOnlineDisplayList') +external int _CGGetOnlineDisplayList( + int maxDisplays, + ffi.Pointer onlineDisplays, + ffi.Pointer displayCount, +); + +CGError CGGetOnlineDisplayList( + int maxDisplays, + ffi.Pointer onlineDisplays, + ffi.Pointer displayCount, +) { + return CGError.fromValue( + _CGGetOnlineDisplayList(maxDisplays, onlineDisplays, displayCount), + ); +} + +@ffi.Native< + CGGradientRef Function( + CGColorSpaceRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external CGGradientRef CGGradientCreateWithColorComponents( + CGColorSpaceRef space, + ffi.Pointer components, + ffi.Pointer locations, + int count, +); + +@ffi.Native< + CGGradientRef Function(CGColorSpaceRef, CFArrayRef, ffi.Pointer) +>() +external CGGradientRef CGGradientCreateWithColors( + CGColorSpaceRef space, + CFArrayRef colors, + ffi.Pointer locations, +); + +@ffi.Native< + CGGradientRef Function( + ffi.Float, + CGColorSpaceRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external CGGradientRef CGGradientCreateWithContentHeadroom( + double headroom, + CGColorSpaceRef space, + ffi.Pointer components, + ffi.Pointer locations, + int count, +); + +@ffi.Native() +external double CGGradientGetContentHeadroom(CGGradientRef gradient); + +@ffi.Native() +external int CGGradientGetTypeID(); + +@ffi.Native() +external void CGGradientRelease(CGGradientRef gradient); + +@ffi.Native() +external CGGradientRef CGGradientRetain(CGGradientRef gradient); + +@ffi.Native() +external double CGImageCalculateContentAverageLightLevel(CGImageRef image); + +@ffi.Native() +external double CGImageCalculateContentHeadroom(CGImageRef image); + +@ffi.Native() +external bool CGImageContainsImageSpecificToneMappingMetadata(CGImageRef image); + +@ffi.Native< + CGImageRef Function( + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + CGColorSpaceRef, + ffi.Uint32, + CGDataProviderRef, + ffi.Pointer, + ffi.Bool, + ffi.Int32, + ) +>(symbol: 'CGImageCreate') +external CGImageRef _CGImageCreate( + int width, + int height, + int bitsPerComponent, + int bitsPerPixel, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, + CGDataProviderRef provider, + ffi.Pointer decode, + bool shouldInterpolate, + int intent, +); + +CGImageRef CGImageCreate( + int width, + int height, + int bitsPerComponent, + int bitsPerPixel, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, + CGDataProviderRef provider, + ffi.Pointer decode, + bool shouldInterpolate, + CGColorRenderingIntent intent, +) { + return _CGImageCreate( + width, + height, + bitsPerComponent, + bitsPerPixel, + bytesPerRow, + space, + bitmapInfo, + provider, + decode, + shouldInterpolate, + intent.value, + ); +} + +@ffi.Native() +external CGImageRef CGImageCreateCopy(CGImageRef image); + +@ffi.Native() +external CGImageRef CGImageCreateCopyWithCalculatedHDRStats(CGImageRef image); + +@ffi.Native() +external CGImageRef CGImageCreateCopyWithColorSpace( + CGImageRef image, + CGColorSpaceRef space, +); + +@ffi.Native() +external CGImageRef CGImageCreateCopyWithContentAverageLightLevel( + CGImageRef image, + double avll, +); + +@ffi.Native() +external CGImageRef CGImageCreateCopyWithContentHeadroom( + double headroom, + CGImageRef image, +); + +@ffi.Native< + CGImageRef Function( + ffi.Float, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + CGColorSpaceRef, + ffi.Uint32, + CGDataProviderRef, + ffi.Pointer, + ffi.Bool, + ffi.Int32, + ) +>(symbol: 'CGImageCreateWithContentHeadroom') +external CGImageRef _CGImageCreateWithContentHeadroom( + double headroom, + int width, + int height, + int bitsPerComponent, + int bitsPerPixel, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, + CGDataProviderRef provider, + ffi.Pointer decode, + bool shouldInterpolate, + int intent, +); + +CGImageRef CGImageCreateWithContentHeadroom( + double headroom, + int width, + int height, + int bitsPerComponent, + int bitsPerPixel, + int bytesPerRow, + CGColorSpaceRef space, + int bitmapInfo, + CGDataProviderRef provider, + ffi.Pointer decode, + bool shouldInterpolate, + CGColorRenderingIntent intent, +) { + return _CGImageCreateWithContentHeadroom( + headroom, + width, + height, + bitsPerComponent, + bitsPerPixel, + bytesPerRow, + space, + bitmapInfo, + provider, + decode, + shouldInterpolate, + intent.value, + ); +} + +@ffi.Native() +external CGImageRef CGImageCreateWithImageInRect( + CGImageRef image, + objc.CGRect rect, +); + +@ffi.Native< + CGImageRef Function( + CGDataProviderRef, + ffi.Pointer, + ffi.Bool, + ffi.Int32, + ) +>(symbol: 'CGImageCreateWithJPEGDataProvider') +external CGImageRef _CGImageCreateWithJPEGDataProvider( + CGDataProviderRef source, + ffi.Pointer decode, + bool shouldInterpolate, + int intent, +); + +CGImageRef CGImageCreateWithJPEGDataProvider( + CGDataProviderRef source, + ffi.Pointer decode, + bool shouldInterpolate, + CGColorRenderingIntent intent, +) { + return _CGImageCreateWithJPEGDataProvider( + source, + decode, + shouldInterpolate, + intent.value, + ); +} + +@ffi.Native() +external CGImageRef CGImageCreateWithMask(CGImageRef image, CGImageRef mask); + +@ffi.Native)>() +external CGImageRef CGImageCreateWithMaskingColors( + CGImageRef image, + ffi.Pointer components, +); + +@ffi.Native< + CGImageRef Function( + CGDataProviderRef, + ffi.Pointer, + ffi.Bool, + ffi.Int32, + ) +>(symbol: 'CGImageCreateWithPNGDataProvider') +external CGImageRef _CGImageCreateWithPNGDataProvider( + CGDataProviderRef source, + ffi.Pointer decode, + bool shouldInterpolate, + int intent, +); + +CGImageRef CGImageCreateWithPNGDataProvider( + CGDataProviderRef source, + ffi.Pointer decode, + bool shouldInterpolate, + CGColorRenderingIntent intent, +) { + return _CGImageCreateWithPNGDataProvider( + source, + decode, + shouldInterpolate, + intent.value, + ); +} + +@ffi.Native< + ffi.Void Function(CGImageDestinationRef, CFStringRef, CFDictionaryRef) +>() +external void CGImageDestinationAddAuxiliaryDataInfo( + CGImageDestinationRef idst, + CFStringRef auxiliaryImageDataType, + CFDictionaryRef auxiliaryDataInfoDictionary, +); + +@ffi.Native< + ffi.Void Function(CGImageDestinationRef, CGImageRef, CFDictionaryRef) +>() +external void CGImageDestinationAddImage( + CGImageDestinationRef idst, + CGImageRef image, + CFDictionaryRef properties, +); + +@ffi.Native< + ffi.Void Function( + CGImageDestinationRef, + CGImageRef, + CGImageMetadataRef, + CFDictionaryRef, + ) +>() +external void CGImageDestinationAddImageAndMetadata( + CGImageDestinationRef idst, + CGImageRef image, + CGImageMetadataRef metadata, + CFDictionaryRef options, +); + +@ffi.Native< + ffi.Void Function( + CGImageDestinationRef, + CGImageSourceRef, + ffi.Size, + CFDictionaryRef, + ) +>() +external void CGImageDestinationAddImageFromSource( + CGImageDestinationRef idst, + CGImageSourceRef isrc, + int index$1, + CFDictionaryRef properties, +); + +@ffi.Native< + ffi.Bool Function( + CGImageDestinationRef, + CGImageSourceRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external bool CGImageDestinationCopyImageSource( + CGImageDestinationRef idst, + CGImageSourceRef isrc, + CFDictionaryRef options, + ffi.Pointer err, +); + +@ffi.Native() +external CFArrayRef CGImageDestinationCopyTypeIdentifiers(); + +@ffi.Native< + CGImageDestinationRef Function( + CFMutableDataRef, + CFStringRef, + ffi.Size, + CFDictionaryRef, + ) +>() +external CGImageDestinationRef CGImageDestinationCreateWithData( + CFMutableDataRef data, + CFStringRef type, + int count, + CFDictionaryRef options, +); + +@ffi.Native< + CGImageDestinationRef Function( + CGDataConsumerRef, + CFStringRef, + ffi.Size, + CFDictionaryRef, + ) +>() +external CGImageDestinationRef CGImageDestinationCreateWithDataConsumer( + CGDataConsumerRef consumer, + CFStringRef type, + int count, + CFDictionaryRef options, +); + +@ffi.Native< + CGImageDestinationRef Function( + CFURLRef, + CFStringRef, + ffi.Size, + CFDictionaryRef, + ) +>() +external CGImageDestinationRef CGImageDestinationCreateWithURL( + CFURLRef url, + CFStringRef type, + int count, + CFDictionaryRef options, +); + +@ffi.Native() +external bool CGImageDestinationFinalize(CGImageDestinationRef idst); + +@ffi.Native() +external int CGImageDestinationGetTypeID(); + +@ffi.Native() +external void CGImageDestinationSetProperties( + CGImageDestinationRef idst, + CFDictionaryRef properties, +); + +@ffi.Native(symbol: 'CGImageGetAlphaInfo') +external int _CGImageGetAlphaInfo(CGImageRef image); + +CGImageAlphaInfo CGImageGetAlphaInfo(CGImageRef image) { + return CGImageAlphaInfo.fromValue(_CGImageGetAlphaInfo(image)); +} + +@ffi.Native() +external int CGImageGetBitmapInfo(CGImageRef image); + +@ffi.Native() +external int CGImageGetBitsPerComponent(CGImageRef image); + +@ffi.Native() +external int CGImageGetBitsPerPixel(CGImageRef image); + +@ffi.Native(symbol: 'CGImageGetByteOrderInfo') +external int _CGImageGetByteOrderInfo(CGImageRef image); + +CGImageByteOrderInfo CGImageGetByteOrderInfo(CGImageRef image) { + return CGImageByteOrderInfo.fromValue(_CGImageGetByteOrderInfo(image)); +} + +@ffi.Native() +external int CGImageGetBytesPerRow(CGImageRef image); + +@ffi.Native() +external CGColorSpaceRef CGImageGetColorSpace(CGImageRef image); + +@ffi.Native() +external double CGImageGetContentAverageLightLevel(CGImageRef image); + +@ffi.Native() +external double CGImageGetContentHeadroom(CGImageRef image); + +@ffi.Native() +external CGDataProviderRef CGImageGetDataProvider(CGImageRef image); + +@ffi.Native Function(CGImageRef)>() +external ffi.Pointer CGImageGetDecode(CGImageRef image); + +@ffi.Native() +external int CGImageGetHeight(CGImageRef image); + +@ffi.Native( + symbol: 'CGImageGetPixelFormatInfo', +) +external int _CGImageGetPixelFormatInfo(CGImageRef image); + +CGImagePixelFormatInfo CGImageGetPixelFormatInfo(CGImageRef image) { + return CGImagePixelFormatInfo.fromValue(_CGImageGetPixelFormatInfo(image)); +} + +@ffi.Native(symbol: 'CGImageGetRenderingIntent') +external int _CGImageGetRenderingIntent(CGImageRef image); + +CGColorRenderingIntent CGImageGetRenderingIntent(CGImageRef image) { + return CGColorRenderingIntent.fromValue(_CGImageGetRenderingIntent(image)); +} + +@ffi.Native() +external bool CGImageGetShouldInterpolate(CGImageRef image); + +@ffi.Native() +external int CGImageGetTypeID(); + +@ffi.Native() +external CFStringRef CGImageGetUTType(CGImageRef image); + +@ffi.Native() +external int CGImageGetWidth(CGImageRef image); + +@ffi.Native() +external bool CGImageIsMask(CGImageRef image); + +@ffi.Native< + CGImageRef Function( + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Size, + CGDataProviderRef, + ffi.Pointer, + ffi.Bool, + ) +>() +external CGImageRef CGImageMaskCreate( + int width, + int height, + int bitsPerComponent, + int bitsPerPixel, + int bytesPerRow, + CGDataProviderRef provider, + ffi.Pointer decode, + bool shouldInterpolate, +); + +@ffi.Native< + CFStringRef Function(CGImageMetadataRef, CGImageMetadataTagRef, CFStringRef) +>() +external CFStringRef CGImageMetadataCopyStringValueWithPath( + CGImageMetadataRef metadata, + CGImageMetadataTagRef parent, + CFStringRef path, +); + +@ffi.Native< + CGImageMetadataTagRef Function(CGImageMetadataRef, CFStringRef, CFStringRef) +>() +external CGImageMetadataTagRef CGImageMetadataCopyTagMatchingImageProperty( + CGImageMetadataRef metadata, + CFStringRef dictionaryName, + CFStringRef propertyName, +); + +@ffi.Native< + CGImageMetadataTagRef Function( + CGImageMetadataRef, + CGImageMetadataTagRef, + CFStringRef, + ) +>() +external CGImageMetadataTagRef CGImageMetadataCopyTagWithPath( + CGImageMetadataRef metadata, + CGImageMetadataTagRef parent, + CFStringRef path, +); + +@ffi.Native() +external CFArrayRef CGImageMetadataCopyTags(CGImageMetadataRef metadata); + +@ffi.Native() +external CGImageMetadataRef CGImageMetadataCreateFromXMPData(CFDataRef data); + +@ffi.Native() +external CGMutableImageMetadataRef CGImageMetadataCreateMutable(); + +@ffi.Native() +external CGMutableImageMetadataRef CGImageMetadataCreateMutableCopy( + CGImageMetadataRef metadata, +); + +@ffi.Native() +external CFDataRef CGImageMetadataCreateXMPData( + CGImageMetadataRef metadata, + CFDictionaryRef options, +); + +@ffi.Native< + ffi.Void Function( + CGImageMetadataRef, + CFStringRef, + CFDictionaryRef, + CGImageMetadataTagBlock, + ) +>(symbol: 'CGImageMetadataEnumerateTagsUsingBlock') +external void _CGImageMetadataEnumerateTagsUsingBlock( + CGImageMetadataRef metadata, + CFStringRef rootPath, + CFDictionaryRef options, + CGImageMetadataTagBlock block, +); + +void CGImageMetadataEnumerateTagsUsingBlock( + CGImageMetadataRef metadata, + CFStringRef rootPath, + CFDictionaryRef options, + DartCGImageMetadataTagBlock block, +) { + final _$$ref = block.ref; + return _CGImageMetadataEnumerateTagsUsingBlock( + metadata, + rootPath, + options, + _$$ref.pointer, + ); +} + +@ffi.Native() +external int CGImageMetadataGetTypeID(); + +@ffi.Native< + ffi.Bool Function( + CGMutableImageMetadataRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external bool CGImageMetadataRegisterNamespaceForPrefix( + CGMutableImageMetadataRef metadata, + CFStringRef xmlns, + CFStringRef prefix, + ffi.Pointer err, +); + +@ffi.Native< + ffi.Bool Function( + CGMutableImageMetadataRef, + CGImageMetadataTagRef, + CFStringRef, + ) +>() +external bool CGImageMetadataRemoveTagWithPath( + CGMutableImageMetadataRef metadata, + CGImageMetadataTagRef parent, + CFStringRef path, +); + +@ffi.Native< + ffi.Bool Function( + CGMutableImageMetadataRef, + CGImageMetadataTagRef, + CFStringRef, + CGImageMetadataTagRef, + ) +>() +external bool CGImageMetadataSetTagWithPath( + CGMutableImageMetadataRef metadata, + CGImageMetadataTagRef parent, + CFStringRef path, + CGImageMetadataTagRef tag, +); + +@ffi.Native< + ffi.Bool Function( + CGMutableImageMetadataRef, + CFStringRef, + CFStringRef, + CFTypeRef, + ) +>() +external bool CGImageMetadataSetValueMatchingImageProperty( + CGMutableImageMetadataRef metadata, + CFStringRef dictionaryName, + CFStringRef propertyName, + CFTypeRef value, +); + +@ffi.Native< + ffi.Bool Function( + CGMutableImageMetadataRef, + CGImageMetadataTagRef, + CFStringRef, + CFTypeRef, + ) +>() +external bool CGImageMetadataSetValueWithPath( + CGMutableImageMetadataRef metadata, + CGImageMetadataTagRef parent, + CFStringRef path, + CFTypeRef value, +); + +@ffi.Native() +external CFStringRef CGImageMetadataTagCopyName(CGImageMetadataTagRef tag); + +@ffi.Native() +external CFStringRef CGImageMetadataTagCopyNamespace(CGImageMetadataTagRef tag); + +@ffi.Native() +external CFStringRef CGImageMetadataTagCopyPrefix(CGImageMetadataTagRef tag); + +@ffi.Native() +external CFArrayRef CGImageMetadataTagCopyQualifiers(CGImageMetadataTagRef tag); + +@ffi.Native() +external CFTypeRef CGImageMetadataTagCopyValue(CGImageMetadataTagRef tag); + +@ffi.Native< + CGImageMetadataTagRef Function( + CFStringRef, + CFStringRef, + CFStringRef, + ffi.Int32, + CFTypeRef, + ) +>(symbol: 'CGImageMetadataTagCreate') +external CGImageMetadataTagRef _CGImageMetadataTagCreate( + CFStringRef xmlns, + CFStringRef prefix, + CFStringRef name, + int type, + CFTypeRef value, +); + +CGImageMetadataTagRef CGImageMetadataTagCreate( + CFStringRef xmlns, + CFStringRef prefix, + CFStringRef name, + CGImageMetadataType type, + CFTypeRef value, +) { + return _CGImageMetadataTagCreate(xmlns, prefix, name, type.value, value); +} + +@ffi.Native( + symbol: 'CGImageMetadataTagGetType', +) +external int _CGImageMetadataTagGetType(CGImageMetadataTagRef tag); + +CGImageMetadataType CGImageMetadataTagGetType(CGImageMetadataTagRef tag) { + return CGImageMetadataType.fromValue(_CGImageMetadataTagGetType(tag)); +} + +@ffi.Native() +external int CGImageMetadataTagGetTypeID(); + +@ffi.Native() +external void CGImageRelease(CGImageRef image); + +@ffi.Native() +external CGImageRef CGImageRetain(CGImageRef image); + +@ffi.Native() +external bool CGImageShouldToneMap(CGImageRef image); + +@ffi.Native() +external CFDictionaryRef CGImageSourceCopyAuxiliaryDataInfoAtIndex( + CGImageSourceRef isrc, + int index$1, + CFStringRef auxiliaryImageDataType, +); + +@ffi.Native< + CGImageMetadataRef Function(CGImageSourceRef, ffi.Size, CFDictionaryRef) +>() +external CGImageMetadataRef CGImageSourceCopyMetadataAtIndex( + CGImageSourceRef isrc, + int index$1, + CFDictionaryRef options, +); + +@ffi.Native() +external CFDictionaryRef CGImageSourceCopyProperties( + CGImageSourceRef isrc, + CFDictionaryRef options, +); + +@ffi.Native< + CFDictionaryRef Function(CGImageSourceRef, ffi.Size, CFDictionaryRef) +>() +external CFDictionaryRef CGImageSourceCopyPropertiesAtIndex( + CGImageSourceRef isrc, + int index$1, + CFDictionaryRef options, +); + +@ffi.Native() +external CFArrayRef CGImageSourceCopyTypeIdentifiers(); + +@ffi.Native() +external CGImageRef CGImageSourceCreateImageAtIndex( + CGImageSourceRef isrc, + int index$1, + CFDictionaryRef options, +); + +@ffi.Native() +external CGImageSourceRef CGImageSourceCreateIncremental( + CFDictionaryRef options, +); + +@ffi.Native() +external CGImageRef CGImageSourceCreateThumbnailAtIndex( + CGImageSourceRef isrc, + int index$1, + CFDictionaryRef options, +); + +@ffi.Native() +external CGImageSourceRef CGImageSourceCreateWithData( + CFDataRef data, + CFDictionaryRef options, +); + +@ffi.Native() +external CGImageSourceRef CGImageSourceCreateWithDataProvider( + CGDataProviderRef provider, + CFDictionaryRef options, +); + +@ffi.Native() +external CGImageSourceRef CGImageSourceCreateWithURL( + CFURLRef url, + CFDictionaryRef options, +); + +@ffi.Native() +external int CGImageSourceGetCount(CGImageSourceRef isrc); + +@ffi.Native() +external int CGImageSourceGetPrimaryImageIndex(CGImageSourceRef isrc); + +@ffi.Native( + symbol: 'CGImageSourceGetStatus', +) +external int _CGImageSourceGetStatus(CGImageSourceRef isrc); + +CGImageSourceStatus CGImageSourceGetStatus(CGImageSourceRef isrc) { + return CGImageSourceStatus.fromValue(_CGImageSourceGetStatus(isrc)); +} + +@ffi.Native( + symbol: 'CGImageSourceGetStatusAtIndex', +) +external int _CGImageSourceGetStatusAtIndex(CGImageSourceRef isrc, int index$1); + +CGImageSourceStatus CGImageSourceGetStatusAtIndex( + CGImageSourceRef isrc, + int index$1, +) { + return CGImageSourceStatus.fromValue( + _CGImageSourceGetStatusAtIndex(isrc, index$1), + ); +} + +@ffi.Native() +external CFStringRef CGImageSourceGetType(CGImageSourceRef isrc); + +@ffi.Native() +external int CGImageSourceGetTypeID(); + +@ffi.Native() +external void CGImageSourceRemoveCacheAtIndex( + CGImageSourceRef isrc, + int index$1, +); + +@ffi.Native() +external int CGImageSourceSetAllowableTypes(CFArrayRef allowableTypes); + +@ffi.Native() +external void CGImageSourceUpdateData( + CGImageSourceRef isrc, + CFDataRef data, + bool final$, +); + +@ffi.Native() +external void CGImageSourceUpdateDataProvider( + CGImageSourceRef isrc, + CGDataProviderRef provider, + bool final$, +); + +@Deprecated('No longer supported') +@ffi.Native(symbol: 'CGInhibitLocalEvents') +external int _CGInhibitLocalEvents(int inhibit); + +CGError CGInhibitLocalEvents(Dartboolean_t inhibit) { + return CGError.fromValue(_CGInhibitLocalEvents(inhibit)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGLChoosePixelFormat') +external int _CGLChoosePixelFormat( + ffi.Pointer attribs, + ffi.Pointer pix, + ffi.Pointer npix, +); + +_CGLError CGLChoosePixelFormat( + ffi.Pointer attribs, + ffi.Pointer pix, + ffi.Pointer npix, +) { + return _CGLError.fromValue(_CGLChoosePixelFormat(attribs, pix, npix)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native(symbol: 'CGLClearDrawable') +external int _CGLClearDrawable(CGLContextObj ctx); + +_CGLError CGLClearDrawable(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLClearDrawable(ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLCopyContext', +) +external int _CGLCopyContext(CGLContextObj src, CGLContextObj dst, int mask); + +_CGLError CGLCopyContext( + CGLContextObj src, + CGLContextObj dst, + DartGLbitfield mask, +) { + return _CGLError.fromValue(_CGLCopyContext(src, dst, mask)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLPixelFormatObj, + CGLContextObj, + ffi.Pointer, + ) +>(symbol: 'CGLCreateContext') +external int _CGLCreateContext( + CGLPixelFormatObj pix, + CGLContextObj share, + ffi.Pointer ctx, +); + +_CGLError CGLCreateContext( + CGLPixelFormatObj pix, + CGLContextObj share, + ffi.Pointer ctx, +) { + return _CGLError.fromValue(_CGLCreateContext(pix, share, ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + GLsizei, + GLsizei, + GLenum, + GLenum, + GLint, + ffi.Pointer, + ) +>(symbol: 'CGLCreatePBuffer') +external int _CGLCreatePBuffer( + int width, + int height, + int target, + int internalFormat, + int max_level, + ffi.Pointer pbuffer, +); + +_CGLError CGLCreatePBuffer( + DartGLsizei width, + DartGLsizei height, + DartGLenum target, + DartGLenum internalFormat, + DartGLint max_level, + ffi.Pointer pbuffer, +) { + return _CGLError.fromValue( + _CGLCreatePBuffer( + width, + height, + target, + internalFormat, + max_level, + pbuffer, + ), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLPBufferObj, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGLDescribePBuffer') +external int _CGLDescribePBuffer( + CGLPBufferObj obj, + ffi.Pointer width, + ffi.Pointer height, + ffi.Pointer target, + ffi.Pointer internalFormat, + ffi.Pointer mipmap, +); + +_CGLError CGLDescribePBuffer( + CGLPBufferObj obj, + ffi.Pointer width, + ffi.Pointer height, + ffi.Pointer target, + ffi.Pointer internalFormat, + ffi.Pointer mipmap, +) { + return _CGLError.fromValue( + _CGLDescribePBuffer(obj, width, height, target, internalFormat, mipmap), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLPixelFormatObj, + GLint, + ffi.UnsignedInt, + ffi.Pointer, + ) +>(symbol: 'CGLDescribePixelFormat') +external int _CGLDescribePixelFormat( + CGLPixelFormatObj pix, + int pix_num, + int attrib, + ffi.Pointer value, +); + +_CGLError CGLDescribePixelFormat( + CGLPixelFormatObj pix, + DartGLint pix_num, + _CGLPixelFormatAttribute attrib, + ffi.Pointer value, +) { + return _CGLError.fromValue( + _CGLDescribePixelFormat(pix, pix_num, attrib.value, value), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLRendererInfoObj, + GLint, + ffi.UnsignedInt, + ffi.Pointer, + ) +>(symbol: 'CGLDescribeRenderer') +external int _CGLDescribeRenderer( + CGLRendererInfoObj rend, + int rend_num, + int prop, + ffi.Pointer value, +); + +_CGLError CGLDescribeRenderer( + CGLRendererInfoObj rend, + DartGLint rend_num, + _CGLRendererProperty prop, + ffi.Pointer value, +) { + return _CGLError.fromValue( + _CGLDescribeRenderer(rend, rend_num, prop.value, value), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLDestroyContext', +) +external int _CGLDestroyContext(CGLContextObj ctx); + +_CGLError CGLDestroyContext(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLDestroyContext(ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLDestroyPBuffer', +) +external int _CGLDestroyPBuffer(CGLPBufferObj pbuffer); + +_CGLError CGLDestroyPBuffer(CGLPBufferObj pbuffer) { + return _CGLError.fromValue(_CGLDestroyPBuffer(pbuffer)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLDestroyPixelFormat', +) +external int _CGLDestroyPixelFormat(CGLPixelFormatObj pix); + +_CGLError CGLDestroyPixelFormat(CGLPixelFormatObj pix) { + return _CGLError.fromValue(_CGLDestroyPixelFormat(pix)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLDestroyRendererInfo', +) +external int _CGLDestroyRendererInfo(CGLRendererInfoObj rend); + +_CGLError CGLDestroyRendererInfo(CGLRendererInfoObj rend) { + return _CGLError.fromValue(_CGLDestroyRendererInfo(rend)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLDisable', +) +external int _CGLDisable(CGLContextObj ctx, int pname); + +_CGLError CGLDisable(CGLContextObj ctx, _CGLContextEnable pname) { + return _CGLError.fromValue(_CGLDisable(ctx, pname.value)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLEnable', +) +external int _CGLEnable(CGLContextObj ctx, int pname); + +_CGLError CGLEnable(CGLContextObj ctx, _CGLContextEnable pname) { + return _CGLError.fromValue(_CGLEnable(ctx, pname.value)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native Function(ffi.UnsignedInt)>( + symbol: 'CGLErrorString', +) +external ffi.Pointer _CGLErrorString(int error); + +ffi.Pointer CGLErrorString(_CGLError error) { + return _CGLErrorString(error.value); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native(symbol: 'CGLFlushDrawable') +external int _CGLFlushDrawable(CGLContextObj ctx); + +_CGLError CGLFlushDrawable(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLFlushDrawable(ctx)); +} + +@ffi.Native() +external int CGLGetContextRetainCount(CGLContextObj ctx); + +@ffi.Native() +external CGLContextObj CGLGetCurrentContext(); + +@ffi.Native() +external cl_device_id CGLGetDeviceFromGLRenderer(int rendererID); + +@ffi.Native)>( + symbol: 'CGLGetGlobalOption', +) +external int _CGLGetGlobalOption(int pname, ffi.Pointer params); + +_CGLError CGLGetGlobalOption( + _CGLGlobalOption pname, + ffi.Pointer params, +) { + return _CGLError.fromValue(_CGLGetGlobalOption(pname.value, params)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLContextObj, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>(symbol: 'CGLGetOffScreen') +external int _CGLGetOffScreen( + CGLContextObj ctx, + ffi.Pointer width, + ffi.Pointer height, + ffi.Pointer rowbytes, + ffi.Pointer> baseaddr, +); + +_CGLError CGLGetOffScreen( + CGLContextObj ctx, + ffi.Pointer width, + ffi.Pointer height, + ffi.Pointer rowbytes, + ffi.Pointer> baseaddr, +) { + return _CGLError.fromValue( + _CGLGetOffScreen(ctx, width, height, rowbytes, baseaddr), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native)>( + symbol: 'CGLGetOption', +) +external int _CGLGetOption(int pname, ffi.Pointer param); + +_CGLError CGLGetOption(_CGLGlobalOption pname, ffi.Pointer param) { + return _CGLError.fromValue(_CGLGetOption(pname.value, param)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLContextObj, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGLGetPBuffer') +external int _CGLGetPBuffer( + CGLContextObj ctx, + ffi.Pointer pbuffer, + ffi.Pointer face, + ffi.Pointer level, + ffi.Pointer screen, +); + +_CGLError CGLGetPBuffer( + CGLContextObj ctx, + ffi.Pointer pbuffer, + ffi.Pointer face, + ffi.Pointer level, + ffi.Pointer screen, +) { + return _CGLError.fromValue(_CGLGetPBuffer(ctx, pbuffer, face, level, screen)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CGLGetPBufferRetainCount(CGLPBufferObj pbuffer); + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'CGLGetParameter') +external int _CGLGetParameter( + CGLContextObj ctx, + int pname, + ffi.Pointer params, +); + +_CGLError CGLGetParameter( + CGLContextObj ctx, + _CGLContextParameter pname, + ffi.Pointer params, +) { + return _CGLError.fromValue(_CGLGetParameter(ctx, pname.value, params)); +} + +@ffi.Native() +external CGLPixelFormatObj CGLGetPixelFormat(CGLContextObj ctx); + +@ffi.Native() +external int CGLGetPixelFormatRetainCount(CGLPixelFormatObj pix); + +@ffi.Native() +external CGLShareGroupObj CGLGetShareGroup(CGLContextObj ctx); + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native, ffi.Pointer)>() +external void CGLGetVersion( + ffi.Pointer majorvers, + ffi.Pointer minorvers, +); + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native)>( + symbol: 'CGLGetVirtualScreen', +) +external int _CGLGetVirtualScreen(CGLContextObj ctx, ffi.Pointer screen); + +_CGLError CGLGetVirtualScreen(CGLContextObj ctx, ffi.Pointer screen) { + return _CGLError.fromValue(_CGLGetVirtualScreen(ctx, screen)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'CGLIsEnabled') +external int _CGLIsEnabled( + CGLContextObj ctx, + int pname, + ffi.Pointer enable, +); + +_CGLError CGLIsEnabled( + CGLContextObj ctx, + _CGLContextEnable pname, + ffi.Pointer enable, +) { + return _CGLError.fromValue(_CGLIsEnabled(ctx, pname.value, enable)); +} + +@ffi.Native(symbol: 'CGLLockContext') +external int _CGLLockContext(CGLContextObj ctx); + +_CGLError CGLLockContext(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLLockContext(ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + GLuint, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGLQueryRendererInfo') +external int _CGLQueryRendererInfo( + int display_mask, + ffi.Pointer rend, + ffi.Pointer nrend, +); + +_CGLError CGLQueryRendererInfo( + DartGLuint display_mask, + ffi.Pointer rend, + ffi.Pointer nrend, +) { + return _CGLError.fromValue(_CGLQueryRendererInfo(display_mask, rend, nrend)); +} + +@ffi.Native() +external void CGLReleaseContext(CGLContextObj ctx); + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CGLReleasePBuffer(CGLPBufferObj pbuffer); + +@ffi.Native() +external void CGLReleasePixelFormat(CGLPixelFormatObj pix); + +@ffi.Native() +external CGLContextObj CGLRetainContext(CGLContextObj ctx); + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CGLPBufferObj CGLRetainPBuffer(CGLPBufferObj pbuffer); + +@ffi.Native() +external CGLPixelFormatObj CGLRetainPixelFormat(CGLPixelFormatObj pix); + +@ffi.Native( + symbol: 'CGLSetCurrentContext', +) +external int _CGLSetCurrentContext(CGLContextObj ctx); + +_CGLError CGLSetCurrentContext(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLSetCurrentContext(ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native(symbol: 'CGLSetFullScreen') +external int _CGLSetFullScreen(CGLContextObj ctx); + +_CGLError CGLSetFullScreen(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLSetFullScreen(ctx)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLSetFullScreenOnDisplay', +) +external int _CGLSetFullScreenOnDisplay(CGLContextObj ctx, int display_mask); + +_CGLError CGLSetFullScreenOnDisplay( + CGLContextObj ctx, + DartGLuint display_mask, +) { + return _CGLError.fromValue(_CGLSetFullScreenOnDisplay(ctx, display_mask)); +} + +@ffi.Native)>( + symbol: 'CGLSetGlobalOption', +) +external int _CGLSetGlobalOption(int pname, ffi.Pointer params); + +_CGLError CGLSetGlobalOption( + _CGLGlobalOption pname, + ffi.Pointer params, +) { + return _CGLError.fromValue(_CGLSetGlobalOption(pname.value, params)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function( + CGLContextObj, + GLsizei, + GLsizei, + GLint, + ffi.Pointer, + ) +>(symbol: 'CGLSetOffScreen') +external int _CGLSetOffScreen( + CGLContextObj ctx, + int width, + int height, + int rowbytes, + ffi.Pointer baseaddr, +); + +_CGLError CGLSetOffScreen( + CGLContextObj ctx, + DartGLsizei width, + DartGLsizei height, + DartGLint rowbytes, + ffi.Pointer baseaddr, +) { + return _CGLError.fromValue( + _CGLSetOffScreen(ctx, width, height, rowbytes, baseaddr), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLSetOption', +) +external int _CGLSetOption(int pname, int param); + +_CGLError CGLSetOption(_CGLGlobalOption pname, DartGLint param) { + return _CGLError.fromValue(_CGLSetOption(pname.value, param)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function(CGLContextObj, CGLPBufferObj, GLenum, GLint, GLint) +>(symbol: 'CGLSetPBuffer') +external int _CGLSetPBuffer( + CGLContextObj ctx, + CGLPBufferObj pbuffer, + int face, + int level, + int screen, +); + +_CGLError CGLSetPBuffer( + CGLContextObj ctx, + CGLPBufferObj pbuffer, + DartGLenum face, + DartGLint level, + DartGLint screen, +) { + return _CGLError.fromValue(_CGLSetPBuffer(ctx, pbuffer, face, level, screen)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'CGLSetParameter') +external int _CGLSetParameter( + CGLContextObj ctx, + int pname, + ffi.Pointer params, +); + +_CGLError CGLSetParameter( + CGLContextObj ctx, + _CGLContextParameter pname, + ffi.Pointer params, +) { + return _CGLError.fromValue(_CGLSetParameter(ctx, pname.value, params)); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLSetVirtualScreen', +) +external int _CGLSetVirtualScreen(CGLContextObj ctx, int screen); + +_CGLError CGLSetVirtualScreen(CGLContextObj ctx, DartGLint screen) { + return _CGLError.fromValue(_CGLSetVirtualScreen(ctx, screen)); +} + +@ffi.Native< + ffi.UnsignedInt Function( + CGLContextObj, + GLenum, + GLenum, + GLsizei, + GLsizei, + GLenum, + GLenum, + IOSurfaceRef, + GLuint, + ) +>(symbol: 'CGLTexImageIOSurface2D') +external int _CGLTexImageIOSurface2D( + CGLContextObj ctx, + int target, + int internal_format, + int width, + int height, + int format, + int type, + IOSurfaceRef ioSurface, + int plane, +); + +_CGLError CGLTexImageIOSurface2D( + CGLContextObj ctx, + DartGLenum target, + DartGLenum internal_format, + DartGLsizei width, + DartGLsizei height, + DartGLenum format, + DartGLenum type, + IOSurfaceRef ioSurface, + DartGLuint plane, +) { + return _CGLError.fromValue( + _CGLTexImageIOSurface2D( + ctx, + target, + internal_format, + width, + height, + format, + type, + ioSurface, + plane, + ), + ); +} + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +@ffi.Native( + symbol: 'CGLTexImagePBuffer', +) +external int _CGLTexImagePBuffer( + CGLContextObj ctx, + CGLPBufferObj pbuffer, + int source, +); + +_CGLError CGLTexImagePBuffer( + CGLContextObj ctx, + CGLPBufferObj pbuffer, + DartGLenum source, +) { + return _CGLError.fromValue(_CGLTexImagePBuffer(ctx, pbuffer, source)); +} + +@ffi.Native(symbol: 'CGLUnlockContext') +external int _CGLUnlockContext(CGLContextObj ctx); + +_CGLError CGLUnlockContext(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLUnlockContext(ctx)); +} + +@ffi.Native(symbol: 'CGLUpdateContext') +external int _CGLUpdateContext(CGLContextObj ctx); + +_CGLError CGLUpdateContext(CGLContextObj ctx) { + return _CGLError.fromValue(_CGLUpdateContext(ctx)); +} + +@ffi.Native() +external CGLayerRef CGLayerCreateWithContext( + CGContextRef context, + objc.CGSize size, + CFDictionaryRef auxiliaryInfo, +); + +@ffi.Native() +external CGContextRef CGLayerGetContext(CGLayerRef layer); + +@ffi.Native() +external objc.CGSize CGLayerGetSize(CGLayerRef layer); + +@ffi.Native() +external int CGLayerGetTypeID(); + +@ffi.Native() +external void CGLayerRelease(CGLayerRef layer); + +@ffi.Native() +external CGLayerRef CGLayerRetain(CGLayerRef layer); + +@ffi.Native() +external int CGMainDisplayID(); + +@ffi.Native() +external int CGOpenGLDisplayMaskToDisplayID(int mask); + +@ffi.Native< + ffi.Void Function( + CGPDFArrayRef, + CGPDFArrayApplierBlock, + ffi.Pointer, + ) +>(symbol: 'CGPDFArrayApplyBlock') +external void _CGPDFArrayApplyBlock( + CGPDFArrayRef array, + CGPDFArrayApplierBlock block, + ffi.Pointer info, +); + +void CGPDFArrayApplyBlock( + CGPDFArrayRef array, + DartCGPDFArrayApplierBlock? block, + ffi.Pointer info, +) { + final _$$ref = block?.ref; + return _CGPDFArrayApplyBlock(array, _$$ref?.pointer ?? ffi.nullptr, info); +} + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetArray( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetBoolean( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native() +external int CGPDFArrayGetCount(CGPDFArrayRef array); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetDictionary( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetInteger( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer>) +>() +external bool CGPDFArrayGetName( + CGPDFArrayRef array, + int index$1, + ffi.Pointer> value, +); + +@ffi.Native() +external bool CGPDFArrayGetNull(CGPDFArrayRef array, int index$1); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetNumber( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetObject( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetStream( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) +>() +external bool CGPDFArrayGetString( + CGPDFArrayRef array, + int index$1, + ffi.Pointer value, +); + +@ffi.Native() +external CGPDFContentStreamRef CGPDFContentStreamCreateWithPage( + CGPDFPageRef page, +); + +@ffi.Native< + CGPDFContentStreamRef Function( + CGPDFStreamRef, + CGPDFDictionaryRef, + CGPDFContentStreamRef, + ) +>() +external CGPDFContentStreamRef CGPDFContentStreamCreateWithStream( + CGPDFStreamRef stream, + CGPDFDictionaryRef streamResources, + CGPDFContentStreamRef parent, +); + +@ffi.Native< + CGPDFObjectRef Function( + CGPDFContentStreamRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGPDFObjectRef CGPDFContentStreamGetResource( + CGPDFContentStreamRef cs, + ffi.Pointer category, + ffi.Pointer name, +); + +@ffi.Native() +external CFArrayRef CGPDFContentStreamGetStreams(CGPDFContentStreamRef cs); + +@ffi.Native() +external void CGPDFContentStreamRelease(CGPDFContentStreamRef cs); + +@ffi.Native() +external CGPDFContentStreamRef CGPDFContentStreamRetain( + CGPDFContentStreamRef cs, +); + +@ffi.Native() +external void CGPDFContextAddDestinationAtPoint( + CGContextRef context, + CFStringRef name, + objc.CGPoint point, +); + +@ffi.Native() +external void CGPDFContextAddDocumentMetadata( + CGContextRef context, + CFDataRef metadata, +); + +@ffi.Native() +external void CGPDFContextBeginPage( + CGContextRef context, + CFDictionaryRef pageInfo, +); + +@ffi.Native( + symbol: 'CGPDFContextBeginTag', +) +external void _CGPDFContextBeginTag( + CGContextRef context, + int tagType, + CFDictionaryRef tagProperties, +); + +void CGPDFContextBeginTag( + CGContextRef context, + CGPDFTagType tagType, + CFDictionaryRef tagProperties, +) { + return _CGPDFContextBeginTag(context, tagType.value, tagProperties); +} + +@ffi.Native() +external void CGPDFContextClose(CGContextRef context); + +@ffi.Native< + CGContextRef Function( + CGDataConsumerRef, + ffi.Pointer, + CFDictionaryRef, + ) +>() +external CGContextRef CGPDFContextCreate( + CGDataConsumerRef consumer, + ffi.Pointer mediaBox, + CFDictionaryRef auxiliaryInfo, +); + +@ffi.Native< + CGContextRef Function(CFURLRef, ffi.Pointer, CFDictionaryRef) +>() +external CGContextRef CGPDFContextCreateWithURL( + CFURLRef url, + ffi.Pointer mediaBox, + CFDictionaryRef auxiliaryInfo, +); + +@ffi.Native() +external void CGPDFContextEndPage(CGContextRef context); + +@ffi.Native() +external void CGPDFContextEndTag(CGContextRef context); + +@ffi.Native() +external void CGPDFContextSetDestinationForRect( + CGContextRef context, + CFStringRef name, + objc.CGRect rect, +); + +@ffi.Native() +external void CGPDFContextSetIDTree( + CGContextRef context, + CGPDFDictionaryRef IDTreeDictionary, +); + +@ffi.Native() +external void CGPDFContextSetOutline( + CGContextRef context, + CFDictionaryRef outline$1, +); + +@ffi.Native() +external void CGPDFContextSetPageTagStructureTree( + CGContextRef context, + CFDictionaryRef pageTagStructureTreeDictionary, +); + +@ffi.Native() +external void CGPDFContextSetParentTree( + CGContextRef context, + CGPDFDictionaryRef parentTreeDictionary, +); + +@ffi.Native() +external void CGPDFContextSetURLForRect( + CGContextRef context, + CFURLRef url, + objc.CGRect rect, +); + +@ffi.Native< + ffi.Void Function( + CGPDFDictionaryRef, + CGPDFDictionaryApplierBlock, + ffi.Pointer, + ) +>(symbol: 'CGPDFDictionaryApplyBlock') +external void _CGPDFDictionaryApplyBlock( + CGPDFDictionaryRef dict, + CGPDFDictionaryApplierBlock block, + ffi.Pointer info, +); + +void CGPDFDictionaryApplyBlock( + CGPDFDictionaryRef dict, + DartCGPDFDictionaryApplierBlock? block, + ffi.Pointer info, +) { + final _$$ref = block?.ref; + return _CGPDFDictionaryApplyBlock(dict, _$$ref?.pointer ?? ffi.nullptr, info); +} + +@ffi.Native< + ffi.Void Function( + CGPDFDictionaryRef, + CGPDFDictionaryApplierFunction, + ffi.Pointer, + ) +>() +external void CGPDFDictionaryApplyFunction( + CGPDFDictionaryRef dict, + CGPDFDictionaryApplierFunction function, + ffi.Pointer info, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetArray( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetBoolean( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native() +external int CGPDFDictionaryGetCount(CGPDFDictionaryRef dict); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetDictionary( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetInteger( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external bool CGPDFDictionaryGetName( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer> value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetNumber( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetObject( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetStream( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function( + CGPDFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool CGPDFDictionaryGetString( + CGPDFDictionaryRef dict, + ffi.Pointer key, + ffi.Pointer value, +); + +@ffi.Native() +external bool CGPDFDocumentAllowsCopying(CGPDFDocumentRef document); + +@ffi.Native() +external bool CGPDFDocumentAllowsPrinting(CGPDFDocumentRef document); + +@ffi.Native() +external CGPDFDocumentRef CGPDFDocumentCreateWithProvider( + CGDataProviderRef provider, +); + +@ffi.Native() +external CGPDFDocumentRef CGPDFDocumentCreateWithURL(CFURLRef url); + +@ffi.Native() +external int CGPDFDocumentGetAccessPermissions(CGPDFDocumentRef document); + +@Deprecated('No longer supported') +@ffi.Native() +external objc.CGRect CGPDFDocumentGetArtBox( + CGPDFDocumentRef document, + int page, +); + +@Deprecated('No longer supported') +@ffi.Native() +external objc.CGRect CGPDFDocumentGetBleedBox( + CGPDFDocumentRef document, + int page, +); + +@ffi.Native() +external CGPDFDictionaryRef CGPDFDocumentGetCatalog(CGPDFDocumentRef document); + +@Deprecated('No longer supported') +@ffi.Native() +external objc.CGRect CGPDFDocumentGetCropBox( + CGPDFDocumentRef document, + int page, +); + +@ffi.Native() +external CGPDFArrayRef CGPDFDocumentGetID(CGPDFDocumentRef document); + +@ffi.Native() +external CGPDFDictionaryRef CGPDFDocumentGetInfo(CGPDFDocumentRef document); + +@Deprecated('No longer supported') +@ffi.Native() +external objc.CGRect CGPDFDocumentGetMediaBox( + CGPDFDocumentRef document, + int page, +); + +@ffi.Native() +external int CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document); + +@ffi.Native() +external CFDictionaryRef CGPDFDocumentGetOutline(CGPDFDocumentRef document); + +@ffi.Native() +external CGPDFPageRef CGPDFDocumentGetPage( + CGPDFDocumentRef document, + int pageNumber, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int CGPDFDocumentGetRotationAngle(CGPDFDocumentRef document, int page); + +@Deprecated('No longer supported') +@ffi.Native() +external objc.CGRect CGPDFDocumentGetTrimBox( + CGPDFDocumentRef document, + int page, +); + +@ffi.Native() +external int CGPDFDocumentGetTypeID(); + +@ffi.Native< + ffi.Void Function( + CGPDFDocumentRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CGPDFDocumentGetVersion( + CGPDFDocumentRef document, + ffi.Pointer majorVersion, + ffi.Pointer minorVersion, +); + +@ffi.Native() +external bool CGPDFDocumentIsEncrypted(CGPDFDocumentRef document); + +@ffi.Native() +external bool CGPDFDocumentIsUnlocked(CGPDFDocumentRef document); + +@ffi.Native() +external void CGPDFDocumentRelease(CGPDFDocumentRef document); + +@ffi.Native() +external CGPDFDocumentRef CGPDFDocumentRetain(CGPDFDocumentRef document); + +@ffi.Native)>() +external bool CGPDFDocumentUnlockWithPassword( + CGPDFDocumentRef document, + ffi.Pointer password, +); + +@ffi.Native(symbol: 'CGPDFObjectGetType') +external int _CGPDFObjectGetType(CGPDFObjectRef object); + +CGPDFObjectType CGPDFObjectGetType(CGPDFObjectRef object) { + return CGPDFObjectType.fromValue(_CGPDFObjectGetType(object)); +} + +@ffi.Native< + ffi.Bool Function(CGPDFObjectRef, ffi.Int32, ffi.Pointer) +>(symbol: 'CGPDFObjectGetValue') +external bool _CGPDFObjectGetValue( + CGPDFObjectRef object, + int type, + ffi.Pointer value, +); + +bool CGPDFObjectGetValue( + CGPDFObjectRef object, + CGPDFObjectType type, + ffi.Pointer value, +) { + return _CGPDFObjectGetValue(object, type.value, value); +} + +@ffi.Native() +external CGPDFOperatorTableRef CGPDFOperatorTableCreate(); + +@ffi.Native() +external void CGPDFOperatorTableRelease(CGPDFOperatorTableRef table); + +@ffi.Native() +external CGPDFOperatorTableRef CGPDFOperatorTableRetain( + CGPDFOperatorTableRef table, +); + +@ffi.Native< + ffi.Void Function( + CGPDFOperatorTableRef, + ffi.Pointer, + CGPDFOperatorCallback, + ) +>() +external void CGPDFOperatorTableSetCallback( + CGPDFOperatorTableRef table, + ffi.Pointer name, + CGPDFOperatorCallback callback, +); + +@ffi.Native( + symbol: 'CGPDFPageGetBoxRect', +) +external objc.CGRect _CGPDFPageGetBoxRect(CGPDFPageRef page, int box); + +objc.CGRect CGPDFPageGetBoxRect(CGPDFPageRef page, CGPDFBox box) { + return _CGPDFPageGetBoxRect(page, box.value); +} + +@ffi.Native() +external CGPDFDictionaryRef CGPDFPageGetDictionary(CGPDFPageRef page); + +@ffi.Native() +external CGPDFDocumentRef CGPDFPageGetDocument(CGPDFPageRef page); + +@ffi.Native< + CGAffineTransform Function( + CGPDFPageRef, + ffi.Int32, + objc.CGRect, + ffi.Int, + ffi.Bool, + ) +>(symbol: 'CGPDFPageGetDrawingTransform') +external CGAffineTransform _CGPDFPageGetDrawingTransform( + CGPDFPageRef page, + int box, + objc.CGRect rect, + int rotate, + bool preserveAspectRatio, +); + +CGAffineTransform CGPDFPageGetDrawingTransform( + CGPDFPageRef page, + CGPDFBox box, + objc.CGRect rect, + int rotate, + bool preserveAspectRatio, +) { + return _CGPDFPageGetDrawingTransform( + page, + box.value, + rect, + rotate, + preserveAspectRatio, + ); +} + +@ffi.Native() +external int CGPDFPageGetPageNumber(CGPDFPageRef page); + +@ffi.Native() +external int CGPDFPageGetRotationAngle(CGPDFPageRef page); + +@ffi.Native() +external int CGPDFPageGetTypeID(); + +@ffi.Native() +external void CGPDFPageRelease(CGPDFPageRef page); + +@ffi.Native() +external CGPDFPageRef CGPDFPageRetain(CGPDFPageRef page); + +@ffi.Native< + CGPDFScannerRef Function( + CGPDFContentStreamRef, + CGPDFOperatorTableRef, + ffi.Pointer, + ) +>() +external CGPDFScannerRef CGPDFScannerCreate( + CGPDFContentStreamRef cs, + CGPDFOperatorTableRef table, + ffi.Pointer info, +); + +@ffi.Native() +external CGPDFContentStreamRef CGPDFScannerGetContentStream( + CGPDFScannerRef scanner, +); + +@ffi.Native)>() +external bool CGPDFScannerPopArray( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopBoolean( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFScannerRef, ffi.Pointer) +>() +external bool CGPDFScannerPopDictionary( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopInteger( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Bool Function(CGPDFScannerRef, ffi.Pointer>) +>() +external bool CGPDFScannerPopName( + CGPDFScannerRef scanner, + ffi.Pointer> value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopNumber( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopObject( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopStream( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native)>() +external bool CGPDFScannerPopString( + CGPDFScannerRef scanner, + ffi.Pointer value, +); + +@ffi.Native() +external void CGPDFScannerRelease(CGPDFScannerRef scanner); + +@ffi.Native() +external CGPDFScannerRef CGPDFScannerRetain(CGPDFScannerRef scanner); + +@ffi.Native() +external bool CGPDFScannerScan(CGPDFScannerRef scanner); + +@ffi.Native() +external void CGPDFScannerStop(CGPDFScannerRef s); + +@ffi.Native)>() +external CFDataRef CGPDFStreamCopyData( + CGPDFStreamRef stream, + ffi.Pointer format, +); + +@ffi.Native() +external CGPDFDictionaryRef CGPDFStreamGetDictionary(CGPDFStreamRef stream); + +@ffi.Native() +external CFDateRef CGPDFStringCopyDate(CGPDFStringRef string); + +@ffi.Native() +external CFStringRef CGPDFStringCopyTextString(CGPDFStringRef string); + +@ffi.Native Function(CGPDFStringRef)>() +external ffi.Pointer CGPDFStringGetBytePtr( + CGPDFStringRef string, +); + +@ffi.Native() +external int CGPDFStringGetLength(CGPDFStringRef string); + +@ffi.Native Function(ffi.Int32)>( + symbol: 'CGPDFTagTypeGetName', +) +external ffi.Pointer _CGPDFTagTypeGetName(int tagType); + +ffi.Pointer CGPDFTagTypeGetName(CGPDFTagType tagType) { + return _CGPDFTagTypeGetName(tagType.value); +} + +@ffi.Native() +external bool CGPSConverterAbort(CGPSConverterRef converter); + +@ffi.Native< + ffi.Bool Function( + CGPSConverterRef, + CGDataProviderRef, + CGDataConsumerRef, + CFDictionaryRef, + ) +>() +external bool CGPSConverterConvert( + CGPSConverterRef converter, + CGDataProviderRef provider, + CGDataConsumerRef consumer, + CFDictionaryRef options, +); + +@ffi.Native< + CGPSConverterRef Function( + ffi.Pointer, + ffi.Pointer, + CFDictionaryRef, + ) +>() +external CGPSConverterRef CGPSConverterCreate( + ffi.Pointer info, + ffi.Pointer callbacks, + CFDictionaryRef options, +); + +@ffi.Native() +external int CGPSConverterGetTypeID(); + +@ffi.Native() +external bool CGPSConverterIsConverting(CGPSConverterRef converter); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ffi.Bool, + ) +>() +external void CGPathAddArc( + CGMutablePathRef path, + ffi.Pointer m, + double x, + double y, + double radius, + double startAngle, + double endAngle, + bool clockwise, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddArcToPoint( + CGMutablePathRef path, + ffi.Pointer m, + double x1, + double y1$1, + double x2, + double y2, + double radius, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddCurveToPoint( + CGMutablePathRef path, + ffi.Pointer m, + double cp1x, + double cp1y, + double cp2x, + double cp2y, + double x, + double y, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + objc.CGRect, + ) +>() +external void CGPathAddEllipseInRect( + CGMutablePathRef path, + ffi.Pointer m, + objc.CGRect rect, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddLineToPoint( + CGMutablePathRef path, + ffi.Pointer m, + double x, + double y, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGPathAddLines( + CGMutablePathRef path, + ffi.Pointer m, + ffi.Pointer points, + int count, +); + +@ffi.Native< + ffi.Void Function(CGMutablePathRef, ffi.Pointer, CGPathRef) +>() +external void CGPathAddPath( + CGMutablePathRef path1, + ffi.Pointer m, + CGPathRef path2, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddQuadCurveToPoint( + CGMutablePathRef path, + ffi.Pointer m, + double cpx, + double cpy, + double x, + double y, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + objc.CGRect, + ) +>() +external void CGPathAddRect( + CGMutablePathRef path, + ffi.Pointer m, + objc.CGRect rect, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external void CGPathAddRects( + CGMutablePathRef path, + ffi.Pointer m, + ffi.Pointer rects, + int count, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddRelativeArc( + CGMutablePathRef path, + ffi.Pointer matrix, + double x, + double y, + double radius, + double startAngle, + double delta, +); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + objc.CGRect, + CGFloat, + CGFloat, + ) +>() +external void CGPathAddRoundedRect( + CGMutablePathRef path, + ffi.Pointer transform, + objc.CGRect rect, + double cornerWidth, + double cornerHeight, +); + +@ffi.Native< + ffi.Void Function(CGPathRef, ffi.Pointer, CGPathApplierFunction) +>() +external void CGPathApply( + CGPathRef path, + ffi.Pointer info, + CGPathApplierFunction function, +); + +@ffi.Native( + symbol: 'CGPathApplyWithBlock', +) +external void _CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock block); + +void CGPathApplyWithBlock(CGPathRef path, DartCGPathApplyBlock block) { + final _$$ref = block.ref; + return _CGPathApplyWithBlock(path, _$$ref.pointer); +} + +@ffi.Native() +external void CGPathCloseSubpath(CGMutablePathRef path); + +@ffi.Native< + ffi.Bool Function( + CGPathRef, + ffi.Pointer, + objc.CGPoint, + ffi.Bool, + ) +>() +external bool CGPathContainsPoint( + CGPathRef path, + ffi.Pointer m, + objc.CGPoint point, + bool eoFill, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopy(CGPathRef path); + +@ffi.Native< + CGPathRef Function( + CGPathRef, + ffi.Pointer, + CGFloat, + ffi.Pointer, + ffi.Size, + ) +>() +external CGPathRef CGPathCreateCopyByDashingPath( + CGPathRef path, + ffi.Pointer transform, + double phase, + ffi.Pointer lengths, + int count, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyByFlattening( + CGPathRef path, + double flatteningThreshold, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyByIntersectingPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyByNormalizing( + CGPathRef path, + bool evenOddFillRule, +); + +@ffi.Native< + CGPathRef Function( + CGPathRef, + ffi.Pointer, + CGFloat, + ffi.Int32, + ffi.Int32, + CGFloat, + ) +>(symbol: 'CGPathCreateCopyByStrokingPath') +external CGPathRef _CGPathCreateCopyByStrokingPath( + CGPathRef path, + ffi.Pointer transform, + double lineWidth, + int lineCap, + int lineJoin, + double miterLimit, +); + +CGPathRef CGPathCreateCopyByStrokingPath( + CGPathRef path, + ffi.Pointer transform, + DartCGFloat lineWidth, + CGLineCap lineCap, + CGLineJoin lineJoin, + DartCGFloat miterLimit, +) { + return _CGPathCreateCopyByStrokingPath( + path, + transform, + lineWidth, + lineCap.value, + lineJoin.value, + miterLimit, + ); +} + +@ffi.Native() +external CGPathRef CGPathCreateCopyBySubtractingPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyBySymmetricDifferenceOfPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native)>() +external CGPathRef CGPathCreateCopyByTransformingPath( + CGPathRef path, + ffi.Pointer transform, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyByUnioningPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyOfLineByIntersectingPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native() +external CGPathRef CGPathCreateCopyOfLineBySubtractingPath( + CGPathRef path, + CGPathRef maskPath, + bool evenOddFillRule, +); + +@ffi.Native() +external CGMutablePathRef CGPathCreateMutable(); + +@ffi.Native() +external CGMutablePathRef CGPathCreateMutableCopy(CGPathRef path); + +@ffi.Native< + CGMutablePathRef Function(CGPathRef, ffi.Pointer) +>() +external CGMutablePathRef CGPathCreateMutableCopyByTransformingPath( + CGPathRef path, + ffi.Pointer transform, +); + +@ffi.Native() +external CFArrayRef CGPathCreateSeparateComponents( + CGPathRef path, + bool evenOddFillRule, +); + +@ffi.Native)>() +external CGPathRef CGPathCreateWithEllipseInRect( + objc.CGRect rect, + ffi.Pointer transform, +); + +@ffi.Native)>() +external CGPathRef CGPathCreateWithRect( + objc.CGRect rect, + ffi.Pointer transform, +); + +@ffi.Native< + CGPathRef Function( + objc.CGRect, + CGFloat, + CGFloat, + ffi.Pointer, + ) +>() +external CGPathRef CGPathCreateWithRoundedRect( + objc.CGRect rect, + double cornerWidth, + double cornerHeight, + ffi.Pointer transform, +); + +@ffi.Native() +external bool CGPathEqualToPath(CGPathRef path1, CGPathRef path2); + +@ffi.Native() +external objc.CGRect CGPathGetBoundingBox(CGPathRef path); + +@ffi.Native() +external objc.CGPoint CGPathGetCurrentPoint(CGPathRef path); + +@ffi.Native() +external objc.CGRect CGPathGetPathBoundingBox(CGPathRef path); + +@ffi.Native() +external int CGPathGetTypeID(); + +@ffi.Native() +external bool CGPathIntersectsPath( + CGPathRef path1, + CGPathRef path2, + bool evenOddFillRule, +); + +@ffi.Native() +external bool CGPathIsEmpty(CGPathRef path); + +@ffi.Native)>() +external bool CGPathIsRect(CGPathRef path, ffi.Pointer rect); + +@ffi.Native< + ffi.Void Function( + CGMutablePathRef, + ffi.Pointer, + CGFloat, + CGFloat, + ) +>() +external void CGPathMoveToPoint( + CGMutablePathRef path, + ffi.Pointer m, + double x, + double y, +); + +@ffi.Native() +external void CGPathRelease(CGPathRef path); + +@ffi.Native() +external CGPathRef CGPathRetain(CGPathRef path); + +@ffi.Native< + CGPatternRef Function( + ffi.Pointer, + objc.CGRect, + CGAffineTransform, + CGFloat, + CGFloat, + ffi.Int32, + ffi.Bool, + ffi.Pointer, + ) +>(symbol: 'CGPatternCreate') +external CGPatternRef _CGPatternCreate( + ffi.Pointer info, + objc.CGRect bounds, + CGAffineTransform matrix, + double xStep, + double yStep, + int tiling, + bool isColored, + ffi.Pointer callbacks, +); + +CGPatternRef CGPatternCreate( + ffi.Pointer info, + objc.CGRect bounds, + CGAffineTransform matrix, + DartCGFloat xStep, + DartCGFloat yStep, + CGPatternTiling tiling, + bool isColored, + ffi.Pointer callbacks, +) { + return _CGPatternCreate( + info, + bounds, + matrix, + xStep, + yStep, + tiling.value, + isColored, + callbacks, + ); +} + +@ffi.Native() +external int CGPatternGetTypeID(); + +@ffi.Native() +external void CGPatternRelease(CGPatternRef pattern); + +@ffi.Native() +external CGPatternRef CGPatternRetain(CGPatternRef pattern); + +@ffi.Native() +external objc.CGPoint CGPointApplyAffineTransform( + objc.CGPoint point, + CGAffineTransform t, +); + +@ffi.Native() +external CFDictionaryRef CGPointCreateDictionaryRepresentation( + objc.CGPoint point, +); + +@ffi.Native() +external bool CGPointEqualToPoint(objc.CGPoint point1, objc.CGPoint point2); + +@ffi.Native)>() +external bool CGPointMakeWithDictionaryRepresentation( + CFDictionaryRef dict, + ffi.Pointer point, +); + +@ffi.Native() +external final objc.CGPoint CGPointZero; + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGPostKeyboardEvent', +) +external int _CGPostKeyboardEvent(int keyChar, int virtualKey, int keyDown); + +CGError CGPostKeyboardEvent( + DartCGCharCode keyChar, + DartCGKeyCode virtualKey, + Dartboolean_t keyDown, +) { + return CGError.fromValue(_CGPostKeyboardEvent(keyChar, virtualKey, keyDown)); +} + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Int32 Function(objc.CGPoint, boolean_t, CGButtonCount, boolean_t) +>(symbol: 'CGPostMouseEvent') +external int _CGPostMouseEvent( + objc.CGPoint mouseCursorPosition, + int updateMouseCursorPosition, + int buttonCount, + int mouseButtonDown, +); + +CGError CGPostMouseEvent( + objc.CGPoint mouseCursorPosition, + Dartboolean_t updateMouseCursorPosition, + DartCGButtonCount buttonCount, + Dartboolean_t mouseButtonDown, +) { + return CGError.fromValue( + _CGPostMouseEvent( + mouseCursorPosition, + updateMouseCursorPosition, + buttonCount, + mouseButtonDown, + ), + ); +} + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGPostScrollWheelEvent', +) +external int _CGPostScrollWheelEvent(int wheelCount, int wheel1); + +CGError CGPostScrollWheelEvent(DartCGWheelCount wheelCount, int wheel1) { + return CGError.fromValue(_CGPostScrollWheelEvent(wheelCount, wheel1)); +} + +@ffi.Native() +external bool CGPreflightListenEventAccess(); + +@ffi.Native() +external bool CGPreflightPostEventAccess(); + +@ffi.Native() +external bool CGPreflightScreenCaptureAccess(); + +@ffi.Native() +external objc.CGRect CGRectApplyAffineTransform( + objc.CGRect rect, + CGAffineTransform t, +); + +@ffi.Native() +external bool CGRectContainsPoint(objc.CGRect rect, objc.CGPoint point); + +@ffi.Native() +external bool CGRectContainsRect(objc.CGRect rect1, objc.CGRect rect2); + +@ffi.Native() +external CFDictionaryRef CGRectCreateDictionaryRepresentation(objc.CGRect arg0); + +@ffi.Native< + ffi.Void Function( + objc.CGRect, + ffi.Pointer, + ffi.Pointer, + CGFloat, + ffi.Uint32, + ) +>(symbol: 'CGRectDivide') +external void _CGRectDivide( + objc.CGRect rect, + ffi.Pointer slice, + ffi.Pointer remainder$1, + double amount, + int edge, +); + +void CGRectDivide( + objc.CGRect rect, + ffi.Pointer slice, + ffi.Pointer remainder$1, + DartCGFloat amount, + CGRectEdge edge, +) { + return _CGRectDivide(rect, slice, remainder$1, amount, edge.value); +} + +@ffi.Native() +external bool CGRectEqualToRect(objc.CGRect rect1, objc.CGRect rect2); + +@ffi.Native() +external double CGRectGetHeight(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMaxX(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMaxY(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMidX(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMidY(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMinX(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetMinY(objc.CGRect rect); + +@ffi.Native() +external double CGRectGetWidth(objc.CGRect rect); + +@ffi.Native() +external final objc.CGRect CGRectInfinite; + +@ffi.Native() +external objc.CGRect CGRectInset(objc.CGRect rect, double dx, double dy); + +@ffi.Native() +external objc.CGRect CGRectIntegral(objc.CGRect rect); + +@ffi.Native() +external objc.CGRect CGRectIntersection(objc.CGRect r1, objc.CGRect r2); + +@ffi.Native() +external bool CGRectIntersectsRect(objc.CGRect rect1, objc.CGRect rect2); + +@ffi.Native() +external bool CGRectIsEmpty(objc.CGRect rect); + +@ffi.Native() +external bool CGRectIsInfinite(objc.CGRect rect); + +@ffi.Native() +external bool CGRectIsNull(objc.CGRect rect); + +@ffi.Native)>() +external bool CGRectMakeWithDictionaryRepresentation( + CFDictionaryRef dict, + ffi.Pointer rect, +); + +@ffi.Native() +external final objc.CGRect CGRectNull; + +@ffi.Native() +external objc.CGRect CGRectOffset(objc.CGRect rect, double dx, double dy); + +@ffi.Native() +external objc.CGRect CGRectStandardize(objc.CGRect rect); + +@ffi.Native() +external objc.CGRect CGRectUnion(objc.CGRect r1, objc.CGRect r2); + +@ffi.Native() +external final objc.CGRect CGRectZero; + +@Deprecated('No longer supported') +@ffi.Native)>( + symbol: 'CGRegisterScreenRefreshCallback', +) +external int _CGRegisterScreenRefreshCallback( + CGScreenRefreshCallback callback, + ffi.Pointer userInfo, +); + +CGError CGRegisterScreenRefreshCallback( + CGScreenRefreshCallback callback, + ffi.Pointer userInfo, +) { + return CGError.fromValue( + _CGRegisterScreenRefreshCallback(callback, userInfo), + ); +} + +@ffi.Native(symbol: 'CGReleaseAllDisplays') +external int _CGReleaseAllDisplays(); + +CGError CGReleaseAllDisplays() { + return CGError.fromValue(_CGReleaseAllDisplays()); +} + +@ffi.Native( + symbol: 'CGReleaseDisplayFadeReservation', +) +external int _CGReleaseDisplayFadeReservation(int token); + +CGError CGReleaseDisplayFadeReservation( + DartCGDisplayFadeReservationToken token, +) { + return CGError.fromValue(_CGReleaseDisplayFadeReservation(token)); +} + +@Deprecated('No longer supported') +@ffi.Native)>() +external void CGReleaseScreenRefreshRects(ffi.Pointer rects); + +@ffi.Native Function(CGRenderingBufferProviderRef)>() +external ffi.Pointer CGRenderingBufferLockBytePtr( + CGRenderingBufferProviderRef provider, +); + +@ffi.Native< + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGRenderingBufferProviderCreate') +external CGRenderingBufferProviderRef _CGRenderingBufferProviderCreate( + ffi.Pointer info, + int size, + ffi.Pointer lockPointer, + ffi.Pointer unlockPointer, + ffi.Pointer releaseInfo, +); + +CGRenderingBufferProviderRef CGRenderingBufferProviderCreate( + ffi.Pointer info, + int size, + objc.ObjCBlock Function(ffi.Pointer)> + lockPointer, + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >? + unlockPointer, + objc.ObjCBlock)>? releaseInfo, +) { + final _$$ref = lockPointer.ref; + final _$$ref$1 = unlockPointer?.ref; + final _$$ref$2 = releaseInfo?.ref; + return _CGRenderingBufferProviderCreate( + info, + size, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native() +external CGRenderingBufferProviderRef CGRenderingBufferProviderCreateWithCFData( + CFMutableDataRef data, +); + +@ffi.Native() +external int CGRenderingBufferProviderGetSize( + CGRenderingBufferProviderRef provider, +); + +@ffi.Native() +external int CGRenderingBufferProviderGetTypeID(); + +@ffi.Native() +external void CGRenderingBufferUnlockBytePtr( + CGRenderingBufferProviderRef provider, +); + +@ffi.Native() +external bool CGRequestListenEventAccess(); + +@ffi.Native() +external bool CGRequestPostEventAccess(); + +@ffi.Native() +external bool CGRequestScreenCaptureAccess(); + +@ffi.Native() +external void CGRestorePermanentDisplayConfiguration(); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Int32 Function(CGScreenUpdateMoveCallback, ffi.Pointer) +>(symbol: 'CGScreenRegisterMoveCallback') +external int _CGScreenRegisterMoveCallback( + CGScreenUpdateMoveCallback callback, + ffi.Pointer userInfo, +); + +CGError CGScreenRegisterMoveCallback( + CGScreenUpdateMoveCallback callback, + ffi.Pointer userInfo, +) { + return CGError.fromValue(_CGScreenRegisterMoveCallback(callback, userInfo)); +} + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(CGScreenUpdateMoveCallback, ffi.Pointer) +>() +external void CGScreenUnregisterMoveCallback( + CGScreenUpdateMoveCallback callback, + ffi.Pointer userInfo, +); + +@ffi.Native() +external CFDictionaryRef CGSessionCopyCurrentDictionary(); + +@ffi.Native< + ffi.Int32 Function( + CGDirectDisplayID, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGSetDisplayTransferByByteTable') +external int _CGSetDisplayTransferByByteTable( + int display, + int tableSize, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, +); + +CGError CGSetDisplayTransferByByteTable( + DartCGDirectDisplayID display, + int tableSize, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, +) { + return CGError.fromValue( + _CGSetDisplayTransferByByteTable( + display, + tableSize, + redTable, + greenTable, + blueTable, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGDirectDisplayID, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + CGGammaValue, + ) +>(symbol: 'CGSetDisplayTransferByFormula') +external int _CGSetDisplayTransferByFormula( + int display, + double redMin, + double redMax, + double redGamma, + double greenMin, + double greenMax, + double greenGamma, + double blueMin, + double blueMax, + double blueGamma, +); + +CGError CGSetDisplayTransferByFormula( + DartCGDirectDisplayID display, + DartCGGammaValue redMin, + DartCGGammaValue redMax, + DartCGGammaValue redGamma, + DartCGGammaValue greenMin, + DartCGGammaValue greenMax, + DartCGGammaValue greenGamma, + DartCGGammaValue blueMin, + DartCGGammaValue blueMax, + DartCGGammaValue blueGamma, +) { + return CGError.fromValue( + _CGSetDisplayTransferByFormula( + display, + redMin, + redMax, + redGamma, + greenMin, + greenMax, + greenGamma, + blueMin, + blueMax, + blueGamma, + ), + ); +} + +@ffi.Native< + ffi.Int32 Function( + CGDirectDisplayID, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGSetDisplayTransferByTable') +external int _CGSetDisplayTransferByTable( + int display, + int tableSize, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, +); + +CGError CGSetDisplayTransferByTable( + DartCGDirectDisplayID display, + int tableSize, + ffi.Pointer redTable, + ffi.Pointer greenTable, + ffi.Pointer blueTable, +) { + return CGError.fromValue( + _CGSetDisplayTransferByTable( + display, + tableSize, + redTable, + greenTable, + blueTable, + ), + ); +} + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGSetLocalEventsFilterDuringSuppressionState', +) +external int _CGSetLocalEventsFilterDuringSuppressionState( + int filter, + int state, +); + +CGError CGSetLocalEventsFilterDuringSuppressionState( + int filter, + CGEventSuppressionState state, +) { + return CGError.fromValue( + _CGSetLocalEventsFilterDuringSuppressionState(filter, state.value), + ); +} + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'CGSetLocalEventsSuppressionInterval', +) +external int _CGSetLocalEventsSuppressionInterval(double seconds); + +CGError CGSetLocalEventsSuppressionInterval(DartCFTimeInterval seconds) { + return CGError.fromValue(_CGSetLocalEventsSuppressionInterval(seconds)); +} + +@ffi.Native< + CGShadingRef Function( + CGColorSpaceRef, + objc.CGPoint, + objc.CGPoint, + CGFunctionRef, + ffi.Bool, + ffi.Bool, + ) +>() +external CGShadingRef CGShadingCreateAxial( + CGColorSpaceRef space, + objc.CGPoint start, + objc.CGPoint end, + CGFunctionRef function, + bool extendStart, + bool extendEnd, +); + +@ffi.Native< + CGShadingRef Function( + ffi.Float, + CGColorSpaceRef, + objc.CGPoint, + objc.CGPoint, + CGFunctionRef, + ffi.Bool, + ffi.Bool, + ) +>() +external CGShadingRef CGShadingCreateAxialWithContentHeadroom( + double headroom, + CGColorSpaceRef space, + objc.CGPoint start, + objc.CGPoint end, + CGFunctionRef function, + bool extendStart, + bool extendEnd, +); + +@ffi.Native< + CGShadingRef Function( + CGColorSpaceRef, + objc.CGPoint, + CGFloat, + objc.CGPoint, + CGFloat, + CGFunctionRef, + ffi.Bool, + ffi.Bool, + ) +>() +external CGShadingRef CGShadingCreateRadial( + CGColorSpaceRef space, + objc.CGPoint start, + double startRadius, + objc.CGPoint end, + double endRadius, + CGFunctionRef function, + bool extendStart, + bool extendEnd, +); + +@ffi.Native< + CGShadingRef Function( + ffi.Float, + CGColorSpaceRef, + objc.CGPoint, + CGFloat, + objc.CGPoint, + CGFloat, + CGFunctionRef, + ffi.Bool, + ffi.Bool, + ) +>() +external CGShadingRef CGShadingCreateRadialWithContentHeadroom( + double headroom, + CGColorSpaceRef space, + objc.CGPoint start, + double startRadius, + objc.CGPoint end, + double endRadius, + CGFunctionRef function, + bool extendStart, + bool extendEnd, +); + +@ffi.Native() +external double CGShadingGetContentHeadroom(CGShadingRef shading); + +@ffi.Native() +external int CGShadingGetTypeID(); + +@ffi.Native() +external void CGShadingRelease(CGShadingRef shading); + +@ffi.Native() +external CGShadingRef CGShadingRetain(CGShadingRef shading); + +@ffi.Native() +external int CGShieldingWindowID(int display); + +@ffi.Native() +external int CGShieldingWindowLevel(); + +@ffi.Native() +external objc.CGSize CGSizeApplyAffineTransform( + objc.CGSize size, + CGAffineTransform t, +); + +@ffi.Native() +external CFDictionaryRef CGSizeCreateDictionaryRepresentation(objc.CGSize size); + +@ffi.Native() +external bool CGSizeEqualToSize(objc.CGSize size1, objc.CGSize size2); + +@ffi.Native)>() +external bool CGSizeMakeWithDictionaryRepresentation( + CFDictionaryRef dict, + ffi.Pointer size, +); + +@ffi.Native() +external final objc.CGSize CGSizeZero; + +@Deprecated('No longer supported') +@ffi.Native)>() +external void CGUnregisterScreenRefreshCallback( + CGScreenRefreshCallback callback, + ffi.Pointer userInfo, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Int32 Function( + ffi.Pointer>, + ffi.Pointer, + ) +>(symbol: 'CGWaitForScreenRefreshRects') +external int _CGWaitForScreenRefreshRects( + ffi.Pointer> rects, + ffi.Pointer count, +); + +CGError CGWaitForScreenRefreshRects( + ffi.Pointer> rects, + ffi.Pointer count, +) { + return CGError.fromValue(_CGWaitForScreenRefreshRects(rects, count)); +} + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Int32 Function( + ffi.Uint32, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CGWaitForScreenUpdateRects') +external int _CGWaitForScreenUpdateRects( + int requestedOperations, + ffi.Pointer currentOperation, + ffi.Pointer> rects, + ffi.Pointer rectCount, + ffi.Pointer delta, +); + +CGError CGWaitForScreenUpdateRects( + int requestedOperations, + ffi.Pointer currentOperation, + ffi.Pointer> rects, + ffi.Pointer rectCount, + ffi.Pointer delta, +) { + return CGError.fromValue( + _CGWaitForScreenUpdateRects( + requestedOperations, + currentOperation, + rects, + rectCount, + delta, + ), + ); +} + +@ffi.Native( + symbol: 'CGWarpMouseCursorPosition', +) +external int _CGWarpMouseCursorPosition(objc.CGPoint newCursorPosition); + +CGError CGWarpMouseCursorPosition(objc.CGPoint newCursorPosition) { + return CGError.fromValue(_CGWarpMouseCursorPosition(newCursorPosition)); +} + +@ffi.Native(symbol: 'CGWindowLevelForKey') +external int _CGWindowLevelForKey(int key); + +DartCGWindowLevel CGWindowLevelForKey(CGWindowLevelKey key) { + return _CGWindowLevelForKey(key.value); +} + +@ffi.Native() +external CFArrayRef CGWindowListCopyWindowInfo( + int option, + int relativeToWindow, +); + +@ffi.Native() +external CFArrayRef CGWindowListCreate(int option, int relativeToWindow); + +@ffi.Native() +external CFArrayRef CGWindowListCreateDescriptionFromArray( + CFArrayRef windowArray, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native< + CGImageRef Function(objc.CGRect, ffi.Uint32, CGWindowID, ffi.Uint32) +>() +external CGImageRef CGWindowListCreateImage( + objc.CGRect screenBounds, + int listOption, + int windowID, + int imageOption, +); + +@Deprecated('Please use ScreenCaptureKit instead.') +@ffi.Native() +external CGImageRef CGWindowListCreateImageFromArray( + objc.CGRect screenBounds, + CFArrayRef windowArray, + int imageOption, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFMachPortRef CGWindowServerCFMachPort(); + +@ffi.Native() +external CFMachPortRef CGWindowServerCreateServerPort(); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMAudioFormatDescriptionCreate( + CFAllocatorRef allocator, + ffi.Pointer asbd, + int layoutSize, + ffi.Pointer layout, + int magicCookieSize, + ffi.Pointer magicCookie, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CFArrayRef, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int CMAudioFormatDescriptionCreateSummary( + CFAllocatorRef allocator, + CFArrayRef formatDescriptionArray, + int flags, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + Boolean Function( + CMAudioFormatDescriptionRef, + CMAudioFormatDescriptionRef, + CMAudioFormatDescriptionMask, + ffi.Pointer, + ) +>() +external int CMAudioFormatDescriptionEqual( + CMAudioFormatDescriptionRef formatDescription, + CMAudioFormatDescriptionRef otherFormatDescription, + int equalityMask, + ffi.Pointer equalityMaskOut, +); + +@ffi.Native< + ffi.Pointer Function( + CMAudioFormatDescriptionRef, + ffi.Pointer, + ) +>() +external ffi.Pointer +CMAudioFormatDescriptionGetChannelLayout( + CMAudioFormatDescriptionRef desc, + ffi.Pointer sizeOut, +); + +@ffi.Native< + ffi.Pointer Function( + CMAudioFormatDescriptionRef, + ffi.Pointer, + ) +>() +external ffi.Pointer CMAudioFormatDescriptionGetFormatList( + CMAudioFormatDescriptionRef desc, + ffi.Pointer sizeOut, +); + +@ffi.Native< + ffi.Pointer Function( + CMAudioFormatDescriptionRef, + ffi.Pointer, + ) +>() +external ffi.Pointer CMAudioFormatDescriptionGetMagicCookie( + CMAudioFormatDescriptionRef desc, + ffi.Pointer sizeOut, +); + +@ffi.Native< + ffi.Pointer Function(CMAudioFormatDescriptionRef) +>() +external ffi.Pointer +CMAudioFormatDescriptionGetMostCompatibleFormat( + CMAudioFormatDescriptionRef desc, +); + +@ffi.Native< + ffi.Pointer Function(CMAudioFormatDescriptionRef) +>() +external ffi.Pointer +CMAudioFormatDescriptionGetRichestDecodableFormat( + CMAudioFormatDescriptionRef desc, +); + +@ffi.Native< + ffi.Pointer Function(CMAudioFormatDescriptionRef) +>() +external ffi.Pointer +CMAudioFormatDescriptionGetStreamBasicDescription( + CMAudioFormatDescriptionRef desc, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMediaType, + FourCharCode, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMFormatDescriptionCreate( + CFAllocatorRef allocator, + int mediaType, + int mediaSubType, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native() +external int CMFormatDescriptionEqual( + CMFormatDescriptionRef formatDescription, + CMFormatDescriptionRef otherFormatDescription, +); + +@ffi.Native< + Boolean Function( + CMFormatDescriptionRef, + CMFormatDescriptionRef, + CFTypeRef, + CFTypeRef, + ) +>() +external int CMFormatDescriptionEqualIgnoringExtensionKeys( + CMFormatDescriptionRef formatDescription, + CMFormatDescriptionRef otherFormatDescription, + CFTypeRef formatDescriptionExtensionKeysToIgnore, + CFTypeRef sampleDescriptionExtensionAtomKeysToIgnore, +); + +@ffi.Native() +external CFPropertyListRef CMFormatDescriptionGetExtension( + CMFormatDescriptionRef desc, + CFStringRef extensionKey, +); + +@ffi.Native() +external CFDictionaryRef CMFormatDescriptionGetExtensions( + CMFormatDescriptionRef desc, +); + +@ffi.Native() +external int CMFormatDescriptionGetMediaSubType(CMFormatDescriptionRef desc); + +@ffi.Native() +external int CMFormatDescriptionGetMediaType(CMFormatDescriptionRef desc); + +@ffi.Native() +external int CMFormatDescriptionGetTypeID(); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMetadataFormatDescriptionRef, + CMMetadataFormatDescriptionRef, + ffi.Pointer, + ) +>() +external int +CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions( + CFAllocatorRef allocator, + CMMetadataFormatDescriptionRef sourceDescription, + CMMetadataFormatDescriptionRef otherSourceDescription, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMetadataFormatType, + CFArrayRef, + ffi.Pointer, + ) +>() +external int CMMetadataFormatDescriptionCreateWithKeys( + CFAllocatorRef allocator, + int metadataType, + CFArrayRef keys, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMetadataFormatDescriptionRef, + CFArrayRef, + ffi.Pointer, + ) +>() +external int +CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications( + CFAllocatorRef allocator, + CMMetadataFormatDescriptionRef sourceDescription, + CFArrayRef metadataSpecifications, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMetadataFormatType, + CFArrayRef, + ffi.Pointer, + ) +>() +external int CMMetadataFormatDescriptionCreateWithMetadataSpecifications( + CFAllocatorRef allocator, + int metadataType, + CFArrayRef metadataSpecifications, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native() +external CFArrayRef CMMetadataFormatDescriptionGetIdentifiers( + CMMetadataFormatDescriptionRef desc, +); + +@ffi.Native() +external CFDictionaryRef CMMetadataFormatDescriptionGetKeyWithLocalID( + CMMetadataFormatDescriptionRef desc, + int localKeyID, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMMuxedStreamType, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMMuxedFormatDescriptionCreate( + CFAllocatorRef allocator, + int muxType, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native)>() +external int CMSDecoderCopyAllCerts( + CMSDecoderRef cmsDecoder, + ffi.Pointer certsOut, +); + +@ffi.Native)>() +external int CMSDecoderCopyContent( + CMSDecoderRef cmsDecoder, + ffi.Pointer contentOut, +); + +@ffi.Native)>() +external int CMSDecoderCopyDetachedContent( + CMSDecoderRef cmsDecoder, + ffi.Pointer detachedContentOut, +); + +@ffi.Native)>() +external int CMSDecoderCopyEncapsulatedContentType( + CMSDecoderRef cmsDecoder, + ffi.Pointer eContentTypeOut, +); + +@ffi.Native< + OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSDecoderCopySignerCert( + CMSDecoderRef cmsDecoder, + int signerIndex, + ffi.Pointer signerCertOut, +); + +@ffi.Native< + OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSDecoderCopySignerEmailAddress( + CMSDecoderRef cmsDecoder, + int signerIndex, + ffi.Pointer signerEmailAddressOut, +); + +@ffi.Native< + OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSDecoderCopySignerSigningTime( + CMSDecoderRef cmsDecoder, + int signerIndex, + ffi.Pointer signingTime, +); + +@ffi.Native< + OSStatus Function( + CMSDecoderRef, + ffi.Size, + CFTypeRef, + Boolean, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CMSDecoderCopySignerStatus( + CMSDecoderRef cmsDecoder, + int signerIndex, + CFTypeRef policyOrArray, + int evaluateSecTrust, + ffi.Pointer signerStatusOut, + ffi.Pointer secTrustOut, + ffi.Pointer certVerifyResultCodeOut, +); + +@ffi.Native< + OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSDecoderCopySignerTimestamp( + CMSDecoderRef cmsDecoder, + int signerIndex, + ffi.Pointer timestamp, +); + +@ffi.Native< + OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSDecoderCopySignerTimestampCertificates( + CMSDecoderRef cmsDecoder, + int signerIndex, + ffi.Pointer certificateRefs, +); + +@ffi.Native< + OSStatus Function( + CMSDecoderRef, + CFTypeRef, + ffi.Size, + ffi.Pointer, + ) +>() +external int CMSDecoderCopySignerTimestampWithPolicy( + CMSDecoderRef cmsDecoder, + CFTypeRef timeStampPolicy, + int signerIndex, + ffi.Pointer timestamp, +); + +@ffi.Native)>() +external int CMSDecoderCreate(ffi.Pointer cmsDecoderOut); + +@ffi.Native() +external int CMSDecoderFinalizeMessage(CMSDecoderRef cmsDecoder); + +@ffi.Native)>() +external int CMSDecoderGetNumSigners( + CMSDecoderRef cmsDecoder, + ffi.Pointer numSignersOut, +); + +@ffi.Native() +external int CMSDecoderGetTypeID(); + +@ffi.Native)>() +external int CMSDecoderIsContentEncrypted( + CMSDecoderRef cmsDecoder, + ffi.Pointer isEncryptedOut, +); + +@ffi.Native() +external int CMSDecoderSetDetachedContent( + CMSDecoderRef cmsDecoder, + CFDataRef detachedContent, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CMSDecoderSetSearchKeychain( + CMSDecoderRef cmsDecoder, + CFTypeRef keychainOrArray, +); + +@ffi.Native, ffi.Size)>() +external int CMSDecoderUpdateMessage( + CMSDecoderRef cmsDecoder, + ffi.Pointer msgBytes, + int msgBytesLen, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFTypeRef, + CFTypeRef, + ffi.Pointer, + Boolean, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external int CMSEncode( + CFTypeRef signers, + CFTypeRef recipients, + ffi.Pointer eContentType, + int detachedContent, + int signedAttributes, + ffi.Pointer content, + int contentLen, + ffi.Pointer encodedContentOut, +); + +@ffi.Native< + OSStatus Function( + CFTypeRef, + CFTypeRef, + CFTypeRef, + Boolean, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external int CMSEncodeContent( + CFTypeRef signers, + CFTypeRef recipients, + CFTypeRef eContentTypeOID, + int detachedContent, + int signedAttributes, + ffi.Pointer content, + int contentLen, + ffi.Pointer encodedContentOut, +); + +@ffi.Native() +external int CMSEncoderAddRecipients( + CMSEncoderRef cmsEncoder, + CFTypeRef recipientOrArray, +); + +@ffi.Native() +external int CMSEncoderAddSignedAttributes( + CMSEncoderRef cmsEncoder, + int signedAttributes, +); + +@ffi.Native() +external int CMSEncoderAddSigners( + CMSEncoderRef cmsEncoder, + CFTypeRef signerOrArray, +); + +@ffi.Native() +external int CMSEncoderAddSupportingCerts( + CMSEncoderRef cmsEncoder, + CFTypeRef certOrArray, +); + +@ffi.Native)>() +external int CMSEncoderCopyEncapsulatedContentType( + CMSEncoderRef cmsEncoder, + ffi.Pointer eContentTypeOut, +); + +@ffi.Native)>() +external int CMSEncoderCopyEncodedContent( + CMSEncoderRef cmsEncoder, + ffi.Pointer encodedContentOut, +); + +@ffi.Native)>() +external int CMSEncoderCopyRecipients( + CMSEncoderRef cmsEncoder, + ffi.Pointer recipientsOut, +); + +@ffi.Native< + OSStatus Function(CMSEncoderRef, ffi.Size, ffi.Pointer) +>() +external int CMSEncoderCopySignerTimestamp( + CMSEncoderRef cmsEncoder, + int signerIndex, + ffi.Pointer timestamp, +); + +@ffi.Native< + OSStatus Function( + CMSEncoderRef, + CFTypeRef, + ffi.Size, + ffi.Pointer, + ) +>() +external int CMSEncoderCopySignerTimestampWithPolicy( + CMSEncoderRef cmsEncoder, + CFTypeRef timeStampPolicy, + int signerIndex, + ffi.Pointer timestamp, +); + +@ffi.Native)>() +external int CMSEncoderCopySigners( + CMSEncoderRef cmsEncoder, + ffi.Pointer signersOut, +); + +@ffi.Native)>() +external int CMSEncoderCopySupportingCerts( + CMSEncoderRef cmsEncoder, + ffi.Pointer certsOut, +); + +@ffi.Native)>() +external int CMSEncoderCreate(ffi.Pointer cmsEncoderOut); + +@ffi.Native)>() +external int CMSEncoderGetCertificateChainMode( + CMSEncoderRef cmsEncoder, + ffi.Pointer chainModeOut, +); + +@ffi.Native)>() +external int CMSEncoderGetHasDetachedContent( + CMSEncoderRef cmsEncoder, + ffi.Pointer detachedContentOut, +); + +@ffi.Native() +external int CMSEncoderGetTypeID(); + +@ffi.Native( + symbol: 'CMSEncoderSetCertificateChainMode', +) +external int _CMSEncoderSetCertificateChainMode( + CMSEncoderRef cmsEncoder, + int chainMode, +); + +DartSInt32 CMSEncoderSetCertificateChainMode( + CMSEncoderRef cmsEncoder, + CMSCertificateChainMode chainMode, +) { + return _CMSEncoderSetCertificateChainMode(cmsEncoder, chainMode.value); +} + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CMSEncoderSetEncapsulatedContentType( + CMSEncoderRef cmsEncoder, + ffi.Pointer eContentType, +); + +@ffi.Native() +external int CMSEncoderSetEncapsulatedContentTypeOID( + CMSEncoderRef cmsEncoder, + CFTypeRef eContentTypeOID, +); + +@ffi.Native() +external int CMSEncoderSetHasDetachedContent( + CMSEncoderRef cmsEncoder, + int detachedContent, +); + +@ffi.Native() +external int CMSEncoderSetSignerAlgorithm( + CMSEncoderRef cmsEncoder, + CFStringRef digestAlgorithm, +); + +@ffi.Native, ffi.Size)>() +external int CMSEncoderUpdateContent( + CMSEncoderRef cmsEncoder, + ffi.Pointer content, + int contentLen, +); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CMTextFormatDescriptionGetDefaultStyle( + CMFormatDescriptionRef desc, + ffi.Pointer localFontIDOut, + ffi.Pointer boldOut, + ffi.Pointer italicOut, + ffi.Pointer underlineOut, + ffi.Pointer fontSizeOut, + ffi.Pointer colorComponentsOut, +); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + Boolean, + CGFloat, + ffi.Pointer, + ) +>() +external int CMTextFormatDescriptionGetDefaultTextBox( + CMFormatDescriptionRef desc, + int originIsAtTopLeft, + double heightOfTextTrack, + ffi.Pointer defaultTextBoxOut, +); + +@ffi.Native< + OSStatus Function(CMFormatDescriptionRef, ffi.Pointer) +>() +external int CMTextFormatDescriptionGetDisplayFlags( + CMFormatDescriptionRef desc, + ffi.Pointer displayFlagsOut, +); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + ffi.Uint16, + ffi.Pointer, + ) +>() +external int CMTextFormatDescriptionGetFontName( + CMFormatDescriptionRef desc, + int localFontID, + ffi.Pointer fontNameOut, +); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CMTextFormatDescriptionGetJustification( + CMFormatDescriptionRef desc, + ffi.Pointer horizontaJustificationlOut, + ffi.Pointer verticalJustificationOut, +); + +@ffi.Native() +external CMTime CMTimeAbsoluteValue(CMTime time$1); + +@ffi.Native() +external CMTime CMTimeAdd(CMTime lhs, CMTime rhs); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMTimeCodeFormatType, + CMTime, + ffi.Uint32, + ffi.Uint32, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMTimeCodeFormatDescriptionCreate( + CFAllocatorRef allocator, + int timeCodeFormatType, + CMTime frameDuration, + int frameQuanta, + int flags, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native() +external CMTime CMTimeCodeFormatDescriptionGetFrameDuration( + CMTimeCodeFormatDescriptionRef timeCodeFormatDescription, +); + +@ffi.Native() +external int CMTimeCodeFormatDescriptionGetFrameQuanta( + CMTimeCodeFormatDescriptionRef timeCodeFormatDescription, +); + +@ffi.Native() +external int CMTimeCodeFormatDescriptionGetTimeCodeFlags( + CMTimeCodeFormatDescriptionRef desc, +); + +@ffi.Native() +external int CMTimeCompare(CMTime time1, CMTime time2); + +@ffi.Native( + symbol: 'CMTimeConvertScale', +) +external CMTime _CMTimeConvertScale( + CMTime time$1, + int newTimescale, + int method, +); + +CMTime CMTimeConvertScale( + CMTime time$1, + int newTimescale, + CMTimeRoundingMethod method, +) { + return _CMTimeConvertScale(time$1, newTimescale, method.value); +} + +@ffi.Native() +external CFDictionaryRef CMTimeCopyAsDictionary( + CMTime time$1, + CFAllocatorRef allocator, +); + +@ffi.Native() +external CFStringRef CMTimeCopyDescription( + CFAllocatorRef allocator, + CMTime time$1, +); + +@ffi.Native() +external double CMTimeGetSeconds(CMTime time$1); + +@ffi.Native() +external CMTime CMTimeMake(int value, int timescale); + +@ffi.Native() +external CMTime CMTimeMakeFromDictionary( + CFDictionaryRef dictionaryRepresentation, +); + +@ffi.Native() +external CMTime CMTimeMakeWithEpoch(int value, int timescale, int epoch); + +@ffi.Native() +external CMTime CMTimeMakeWithSeconds(double seconds, int preferredTimescale); + +@ffi.Native() +external CMTime CMTimeMaximum(CMTime time1, CMTime time2); + +@ffi.Native() +external CMTime CMTimeMinimum(CMTime time1, CMTime time2); + +@ffi.Native() +external CMTime CMTimeMultiply(CMTime time$1, int multiplier); + +@ffi.Native() +external CMTime CMTimeMultiplyByFloat64(CMTime time$1, double multiplier); + +@ffi.Native() +external CMTime CMTimeMultiplyByRatio( + CMTime time$1, + int multiplier, + int divisor, +); + +@ffi.Native() +external void CMTimeShow(CMTime time$1); + +@ffi.Native() +external CMTime CMTimeSubtract(CMTime lhs, CMTime rhs); + +@ffi.Native< + OSStatus Function(CMVideoFormatDescriptionRef, ffi.Pointer) +>() +external int CMVideoFormatDescriptionCopyTagCollectionArray( + CMVideoFormatDescriptionRef formatDescription, + ffi.Pointer tagCollectionsOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CMVideoCodecType, + ffi.Int32, + ffi.Int32, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionCreate( + CFAllocatorRef allocator, + int codecType, + int width, + int height, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + CVImageBufferRef, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionCreateForImageBuffer( + CFAllocatorRef allocator, + CVImageBufferRef imageBuffer, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionCreateFromH264ParameterSets( + CFAllocatorRef allocator, + int parameterSetCount, + ffi.Pointer> parameterSetPointers, + ffi.Pointer parameterSetSizes, + int NALUnitHeaderLength, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native< + OSStatus Function( + CFAllocatorRef, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionCreateFromHEVCParameterSets( + CFAllocatorRef allocator, + int parameterSetCount, + ffi.Pointer> parameterSetPointers, + ffi.Pointer parameterSetSizes, + int NALUnitHeaderLength, + CFDictionaryRef extensions, + ffi.Pointer formatDescriptionOut, +); + +@ffi.Native() +external objc.CGRect CMVideoFormatDescriptionGetCleanAperture( + CMVideoFormatDescriptionRef videoDesc, + int originIsAtTopLeft, +); + +@ffi.Native() +external CMVideoDimensions CMVideoFormatDescriptionGetDimensions( + CMVideoFormatDescriptionRef videoDesc, +); + +@ffi.Native() +external CFArrayRef +CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers(); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionGetH264ParameterSetAtIndex( + CMFormatDescriptionRef videoDesc, + int parameterSetIndex, + ffi.Pointer> parameterSetPointerOut, + ffi.Pointer parameterSetSizeOut, + ffi.Pointer parameterSetCountOut, + ffi.Pointer NALUnitHeaderLengthOut, +); + +@ffi.Native< + OSStatus Function( + CMFormatDescriptionRef, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CMVideoFormatDescriptionGetHEVCParameterSetAtIndex( + CMFormatDescriptionRef videoDesc, + int parameterSetIndex, + ffi.Pointer> parameterSetPointerOut, + ffi.Pointer parameterSetSizeOut, + ffi.Pointer parameterSetCountOut, + ffi.Pointer NALUnitHeaderLengthOut, +); + +@ffi.Native< + objc.CGSize Function(CMVideoFormatDescriptionRef, Boolean, Boolean) +>() +external objc.CGSize CMVideoFormatDescriptionGetPresentationDimensions( + CMVideoFormatDescriptionRef videoDesc, + int usePixelAspectRatio, + int useCleanAperture, +); + +@ffi.Native() +external int CMVideoFormatDescriptionMatchesImageBuffer( + CMVideoFormatDescriptionRef desc, + CVImageBufferRef imageBuffer, +); + +@ffi.Native)>() +external int CSBackupIsItemExcluded( + CFURLRef item, + ffi.Pointer excludeByPath, +); + +@ffi.Native() +external int CSBackupSetItemExcluded( + CFURLRef item, + int exclude, + int excludeByPath, +); + +@Deprecated('Deprecated') +@ffi.Native() +external CFStringRef CSCopyMachineName(); + +@Deprecated('Deprecated') +@ffi.Native() +external CFStringRef CSCopyUserName(int useShortName); + +@ffi.Native() +external void CSDiskSpaceCancelRecovery(CFUUIDRef operationUUID); + +@ffi.Native() +external int CSDiskSpaceGetRecoveryEstimate(CFURLRef volumeURL); + +@ffi.Native< + ffi.Void Function( + CFURLRef, + UInt64, + CSDiskSpaceRecoveryOptions, + ffi.Pointer, + dispatch_queue_t, + CSDiskSpaceRecoveryCallback, + ) +>(symbol: 'CSDiskSpaceStartRecovery') +external void _CSDiskSpaceStartRecovery( + CFURLRef volumeURL, + int bytesNeeded, + int options, + ffi.Pointer outOperationUUID, + dispatch_queue_t callbackQueue, + CSDiskSpaceRecoveryCallback callback, +); + +void CSDiskSpaceStartRecovery( + CFURLRef volumeURL, + DartUInt64 bytesNeeded, + DartCSDiskSpaceRecoveryOptions options, + ffi.Pointer outOperationUUID, + Dartdispatch_queue_t callbackQueue, + DartCSDiskSpaceRecoveryCallback callback, +) { + final _$$ref = callbackQueue.ref; + final _$$ref$1 = callback.ref; + return _CSDiskSpaceStartRecovery( + volumeURL, + bytesNeeded, + options, + outOperationUUID, + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@Deprecated('Deprecated') +@ffi.Native() +external int CSGetComponentsThreadMode(); + +@ffi.Native() +external CSIdentityAuthorityRef CSGetDefaultIdentityAuthority(); + +@ffi.Native() +external CSIdentityAuthorityRef CSGetLocalIdentityAuthority(); + +@ffi.Native() +external CSIdentityAuthorityRef CSGetManagedIdentityAuthority(); + +@ffi.Native() +external void CSIdentityAddAlias(CSIdentityRef identity, CFStringRef alias); + +@ffi.Native() +external void CSIdentityAddMember(CSIdentityRef group, CSIdentityRef member); + +@ffi.Native() +external int CSIdentityAuthenticateUsingPassword( + CSIdentityRef user, + CFStringRef password, +); + +@ffi.Native() +external CFStringRef CSIdentityAuthorityCopyLocalizedName( + CSIdentityAuthorityRef authority, +); + +@ffi.Native() +external int CSIdentityAuthorityGetTypeID(); + +@ffi.Native< + Boolean Function(CSIdentityRef, AuthorizationRef, ffi.Pointer) +>() +external int CSIdentityCommit( + CSIdentityRef identity, + AuthorizationRef authorization, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function( + CSIdentityRef, + ffi.Pointer, + CFRunLoopRef, + CFStringRef, + AuthorizationRef, + ) +>() +external int CSIdentityCommitAsynchronously( + CSIdentityRef identity, + ffi.Pointer clientContext, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, + AuthorizationRef authorization, +); + +@ffi.Native< + CSIdentityRef Function( + CFAllocatorRef, + CSIdentityClass, + CFStringRef, + CFStringRef, + CSIdentityFlags, + CSIdentityAuthorityRef, + ) +>() +external CSIdentityRef CSIdentityCreate( + CFAllocatorRef allocator, + int identityClass, + CFStringRef fullName, + CFStringRef posixName, + int flags, + CSIdentityAuthorityRef authority, +); + +@ffi.Native() +external CSIdentityRef CSIdentityCreateCopy( + CFAllocatorRef allocator, + CSIdentityRef identity, +); + +@ffi.Native() +external CSIdentityQueryRef CSIdentityCreateGroupMembershipQuery( + CFAllocatorRef allocator, + CSIdentityRef group, +); + +@ffi.Native() +external CFDataRef CSIdentityCreatePersistentReference( + CFAllocatorRef allocator, + CSIdentityRef identity, +); + +@ffi.Native() +external void CSIdentityDelete(CSIdentityRef identity); + +@ffi.Native() +external CFArrayRef CSIdentityGetAliases(CSIdentityRef identity); + +@ffi.Native() +external CSIdentityAuthorityRef CSIdentityGetAuthority(CSIdentityRef identity); + +@ffi.Native() +external SecCertificateRef CSIdentityGetCertificate(CSIdentityRef user); + +@ffi.Native() +external int CSIdentityGetClass(CSIdentityRef identity); + +@ffi.Native() +external CFStringRef CSIdentityGetEmailAddress(CSIdentityRef identity); + +@ffi.Native() +external CFStringRef CSIdentityGetFullName(CSIdentityRef identity); + +@ffi.Native() +external CFDataRef CSIdentityGetImageData(CSIdentityRef identity); + +@ffi.Native() +external CFStringRef CSIdentityGetImageDataType(CSIdentityRef identity); + +@ffi.Native() +external CFURLRef CSIdentityGetImageURL(CSIdentityRef identity); + +@ffi.Native() +external int CSIdentityGetPosixID(CSIdentityRef identity); + +@ffi.Native() +external CFStringRef CSIdentityGetPosixName(CSIdentityRef identity); + +@ffi.Native() +external int CSIdentityGetTypeID(); + +@ffi.Native() +external CFUUIDRef CSIdentityGetUUID(CSIdentityRef identity); + +@ffi.Native() +external int CSIdentityIsCommitting(CSIdentityRef identity); + +@ffi.Native() +external int CSIdentityIsEnabled(CSIdentityRef user); + +@ffi.Native() +external int CSIdentityIsHidden(CSIdentityRef identity); + +@ffi.Native() +external int CSIdentityIsMemberOfGroup( + CSIdentityRef identity, + CSIdentityRef group, +); + +@ffi.Native() +external CFArrayRef CSIdentityQueryCopyResults(CSIdentityQueryRef query); + +@ffi.Native< + CSIdentityQueryRef Function( + CFAllocatorRef, + CSIdentityClass, + CSIdentityAuthorityRef, + ) +>() +external CSIdentityQueryRef CSIdentityQueryCreate( + CFAllocatorRef allocator, + int identityClass, + CSIdentityAuthorityRef authority, +); + +@ffi.Native() +external CSIdentityQueryRef CSIdentityQueryCreateForCurrentUser( + CFAllocatorRef allocator, +); + +@ffi.Native< + CSIdentityQueryRef Function( + CFAllocatorRef, + CFStringRef, + CSIdentityQueryStringComparisonMethod, + CSIdentityClass, + CSIdentityAuthorityRef, + ) +>() +external CSIdentityQueryRef CSIdentityQueryCreateForName( + CFAllocatorRef allocator, + CFStringRef name, + int comparisonMethod, + int identityClass, + CSIdentityAuthorityRef authority, +); + +@ffi.Native() +external CSIdentityQueryRef CSIdentityQueryCreateForPersistentReference( + CFAllocatorRef allocator, + CFDataRef referenceData, +); + +@ffi.Native< + CSIdentityQueryRef Function( + CFAllocatorRef, + id_t, + CSIdentityClass, + CSIdentityAuthorityRef, + ) +>() +external CSIdentityQueryRef CSIdentityQueryCreateForPosixID( + CFAllocatorRef allocator, + int posixID, + int identityClass, + CSIdentityAuthorityRef authority, +); + +@ffi.Native< + CSIdentityQueryRef Function(CFAllocatorRef, CFUUIDRef, CSIdentityAuthorityRef) +>() +external CSIdentityQueryRef CSIdentityQueryCreateForUUID( + CFAllocatorRef allocator, + CFUUIDRef uuid, + CSIdentityAuthorityRef authority, +); + +@ffi.Native< + Boolean Function( + CSIdentityQueryRef, + CSIdentityQueryFlags, + ffi.Pointer, + ) +>() +external int CSIdentityQueryExecute( + CSIdentityQueryRef query, + int flags, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function( + CSIdentityQueryRef, + CSIdentityQueryFlags, + ffi.Pointer, + CFRunLoopRef, + CFStringRef, + ) +>() +external int CSIdentityQueryExecuteAsynchronously( + CSIdentityQueryRef query, + int flags, + ffi.Pointer clientContext, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native() +external int CSIdentityQueryGetTypeID(); + +@ffi.Native() +external void CSIdentityQueryStop(CSIdentityQueryRef query); + +@ffi.Native() +external void CSIdentityRemoveAlias(CSIdentityRef identity, CFStringRef alias); + +@ffi.Native() +external void CSIdentityRemoveClient(CSIdentityRef identity); + +@ffi.Native() +external void CSIdentityRemoveMember(CSIdentityRef group, CSIdentityRef member); + +@ffi.Native() +external void CSIdentitySetCertificate( + CSIdentityRef user, + SecCertificateRef certificate, +); + +@ffi.Native() +external void CSIdentitySetEmailAddress( + CSIdentityRef identity, + CFStringRef emailAddress, +); + +@ffi.Native() +external void CSIdentitySetFullName( + CSIdentityRef identity, + CFStringRef fullName, +); + +@ffi.Native() +external void CSIdentitySetImageData( + CSIdentityRef identity, + CFDataRef imageData, + CFStringRef imageDataType, +); + +@ffi.Native() +external void CSIdentitySetImageURL(CSIdentityRef identity, CFURLRef url); + +@ffi.Native() +external void CSIdentitySetIsEnabled(CSIdentityRef user, int isEnabled); + +@ffi.Native() +external void CSIdentitySetPassword(CSIdentityRef user, CFStringRef password); + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ADC_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AD_CA_ISSUERS; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AD_CA_REPOSITORY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AD_OCSP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AD_TIME_STAMPING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_EPHEM; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_EPHEM_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID1_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID2_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID_ONEFLOW; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_ONE_FLOW; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_ONE_FLOW_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_PUB_NUMBER; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_STATIC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_DH_STATIC_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_MQV1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_MQV1_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_MQV2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ANSI_MQV2_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLEID_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLEID_SHARING_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_ASC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_ECDSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_CODE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_CODE_SIGNING_DEV; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_ICHAT_ENCRYPTION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_ICHAT_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_PASSBOOK_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_QA_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_RESOURCE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EKU_SYSTEM_IDENTITY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_AAI_INTERMEDIATE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ADC_APPLE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ADC_DEV_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLEID_INTERMEDIATE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLEID_SHARING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_CODE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_DEVELOPER_AUTHENTICATION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ESCROW_SERVICE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_INTERMEDIATE_MARKER; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ITMS_INTERMEDIATE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_MACAPPSTORE_RECEIPT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_PASSBOOK_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_PROVISIONING_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_SERVER_AUTHENTICATION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_SYSINT2_INTERMEDIATE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_WWDR_INTERMEDIATE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_FEE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_FEED; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_FEEDEXP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_FEE_MD5; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_FEE_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_ISIGN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_APPLEID_SHARING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_CODE_SIGN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_CODE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_CSR_GEN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_EAP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_ESCROW_SERVICE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_ICHAT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_IP_SEC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_LOCAL_CERT_GEN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_MACAPPSTORE_RECEIPT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_MOBILE_STORE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PACKAGE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PASSBOOK_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PCS_ESCROW_SERVICE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PKINIT_CLIENT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PKINIT_SERVER; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_PROVISIONING_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_QA_PROFILE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_RESOURCE_SIGN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION_CRL; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION_OCSP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_SMIME; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_SSL; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_SW_UPDATE_SIGNING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_TEST_MOBILE_STORE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_TP_TIMESTAMPING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_APPLE_X509_BASIC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AliasedEntryName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AuthorityInfoAccess; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AuthorityKeyIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_AuthorityRevocationList; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_BasicConstraints; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_BiometricInfo; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_BusinessCategory; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CACertificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CSSMKeyStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CertIssuer; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Certicom; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CerticomEllCurve; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CertificatePolicies; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CertificateRevocationList; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ChallengePassword; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ClientAuth; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveFacsimileTelephoneNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveInternationalISDNNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveOrganizationName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveOrganizationalUnitName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectivePhysicalDeliveryOfficeName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectivePostOfficeBox; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectivePostalAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectivePostalCode; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveStateProvinceName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveStreetAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveTelephoneNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveTelexNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CollectiveTelexTerminalIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CommonName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ContentType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CounterSignature; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CountryName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CrlDistributionPoints; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CrlNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CrlReason; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_CrossCertificatePair; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DES_CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DH; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DNQualifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EMAIL_ENCRYPT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EMAIL_SIGN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EXTENSION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_IDENTITY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_FETCH; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_LIST; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_REMOVE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_STORE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_EMAIL_ENCRYPT; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_EMAIL_SIGN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_IDENTITY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_SHARED_SERVICES; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_ASYNC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_HOSTNAME; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_IS_PENDING; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_PASSWORD; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_RENEW; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_USERNAME; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DSA_CMS; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DSA_JDK; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DeltaCrlIndicator; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Description; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DestinationIndicator; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DistinguishedName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_DomainComponent; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSHA224; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSHA256; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSHA384; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSHA512; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ECDSA_WithSpecified; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_EKU_IPSec; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_COMPLIANCE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_LIMIT_VALUE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_RETENTION; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_SSCD; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_EmailAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_EmailProtection; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_EnhancedSearchGuide; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ExtendedCertificateAttributes; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ExtendedKeyUsage; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ExtendedKeyUsageAny; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ExtendedUseCodeSigning; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_FacsimileTelephoneNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_GenerationQualifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_GivenName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_HoldInstructionCode; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_HouseIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_InhibitAnyPolicy; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Initials; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_InternationalISDNNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_InvalidityDate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_IssuerAltName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_IssuingDistributionPoint; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_IssuingDistributionPoints; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_AUTH_DATA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_DH_KEY_DATA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_KP_CLIENT_AUTH; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_KP_KDC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_RKEY_DATA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KeyUsage; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_KnowledgeInformation; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_LocalityName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MACAPPSTORE_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MACAPPSTORE_RECEIPT_CERT_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD2WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD4; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD4WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD5; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MD5WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MOBILE_STORE_SIGNING_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Member; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MessageDigest; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_MicrosoftSGC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Name; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_NameConstraints; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_NetscapeCertSequence; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_NetscapeCertType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_NetscapeSGC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OAEP_ID_PSPECIFIED; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OAEP_MGF1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OCSPSigning; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OID_QCS_SYNTAX_V1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OID_QCS_SYNTAX_V2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ObjectClass; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OrganizationName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_OrganizationalUnitName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Owner; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PDA_COUNTRY_CITIZEN; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PDA_COUNTRY_RESIDENCE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PDA_DATE_OF_BIRTH; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PDA_GENDER; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PDA_PLACE_OF_BIRTH; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_certBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_crlBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_keyBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd128BitRC2CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd128BitRC4; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd2Key3DESCBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd3Key3DESCBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd40BitRC4; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_pbewithSHAAnd40BitRC2CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_safeContentsBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_secretBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS12_shroudedKeyBag; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS3; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_DES_EDE3_CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_DIGEST_ALG; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_ENCRYPT_ALG; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_HMAC_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_PBES2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_PBKDF2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_PBMAC1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_RC2_CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_RC5_CBC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD2AndDES; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD2AndRC2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD5AndDES; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD5AndRC2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithSHA1AndDES; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS5_pbeWithSHA1AndRC2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_Data; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_DataWithAttributes; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_DigestedData; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_EncryptedData; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_EncryptedPrivateKeyInfo; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_EnvelopedData; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_SignedAndEnvelopedData; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS7_SignedData; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_CertTypes; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_CrlTypes; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_FriendlyName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_Id_Ct_TSTInfo; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_LocalKeyId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_SdsiCertificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_TimeStampToken; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_X509Certificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKCS9_X509Crl; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_ARCHIVE_CUTOFF; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_BASIC; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_CRL; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_NOCHECK; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_NONCE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_RESPONSE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PKIX_OCSP_SERVICE_LOCATOR; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PhysicalDeliveryOfficeName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PolicyConstraints; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PolicyMappings; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PostOfficeBox; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PostalAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PostalCode; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PreferredDeliveryMethod; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PresentationAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_PrivateKeyUsagePeriod; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ProtocolInformation; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_QC_Statements; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_QT_CPS; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_QT_UNOTICE; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_RSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_RSAWithOAEP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_RegisteredAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_RoleOccupant; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1WithDSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1WithDSA_CMS; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1WithDSA_JDK; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA1WithRSA_OIW; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA224; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA224WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA256; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA256WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA384; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA384WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA512; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SHA512WithRSA; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SearchGuide; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SeeAlso; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SerialNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ServerAuth; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SigningTime; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_StateProvinceName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_StreetAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectAltName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectDirectoryAttributes; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectEmailAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectInfoAccess; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectKeyIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectPicture; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SubjectSignatureBitmap; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_SupportedApplicationContext; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Surname; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_TEST_MOBILE_STORE_SIGNING_POLICY; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_TelephoneNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_TelexNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_TelexTerminalIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_TimeStamping; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_Title; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UniqueIdentifier; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UniqueMember; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UnstructuredAddress; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UnstructuredName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UseExemptions; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UserCertificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UserID; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_UserPassword; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLIssuerNameCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLIssuerNameLDAP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLIssuerStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLNextUpdate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLNumberOfRevokedCertEntries; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedCertificatesCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedCertificatesStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryRevocationDate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntrySerialNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CRLThisUpdate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CertificateIssuerUniqueId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1CertificateSubjectUniqueId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1IssuerName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1IssuerNameCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1IssuerNameLDAP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1IssuerNameStd; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SerialNumber; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1Signature; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithm; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithmParameters; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithmTBS; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SignatureCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SignatureStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectName; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectNameCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectNameLDAP; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectNameStd; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKey; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyAlgorithm; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyAlgorithmParameters; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1ValidityNotAfter; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1ValidityNotBefore; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V1Version; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLAllExtensionsCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLAllExtensionsStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLExtensionCritical; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLExtensionId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLExtensionType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLNumberOfExtensions; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryAllExtensionsCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryAllExtensionsStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionCritical; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionValue; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryNumberOfExtensions; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntrySingleExtensionCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntrySingleExtensionStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLSignedCrlCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLSignedCrlStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLSingleExtensionCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLSingleExtensionStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLTbsCertListCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLTbsCertListStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V2CRLVersion; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3Certificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionCritical; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionId; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionValue; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionsCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionsStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3CertificateNumberOfExtensions; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3SignedCertificate; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X509V3SignedCertificateCStruct; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_C_TwoCurve; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_EllCurve; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_FieldType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_PrimeCurve; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_PubKeyType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X9_62_SigType; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_X_121Address; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_ecPublicKey; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp112r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp112r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp128r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp128r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp160k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp160r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp160r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp192k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp192r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp224k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp224r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp256k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp256r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp384r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_secp521r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect113r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect113r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect131r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect131r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect163k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect163r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect163r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect193r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect193r2; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect233k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect233r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect239k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect283k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect283r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect409k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect409r1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect571k1; + +@ffi.Native() +external final SecAsn1Oid CSSMOID_sect571r1; + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_AC_HANDLE, + ffi.Pointer, + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TUPLEGROUP_PTR, + ) +>() +external int CSSM_AC_AuthCompute( + int ACHandle, + ffi.Pointer BaseAuthorizations, + ffi.Pointer Credentials, + int NumberOfRequestors, + ffi.Pointer Requestors, + ffi.Pointer RequestedAuthorizationPeriod, + ffi.Pointer RequestedAuthorization, + CSSM_TUPLEGROUP_PTR AuthorizationResult, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_AC_HANDLE, + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CSSM_AC_PassThrough( + int ACHandle, + int TPHandle, + int CLHandle, + int CCHandle, + ffi.Pointer DBList, + int PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_CL_CertAbortCache(int CLHandle, int CertHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_CL_CertAbortQuery(int CLHandle, int ResultsHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + CSSM_HANDLE_PTR, + ) +>() +external int CSSM_CL_CertCache( + int CLHandle, + ffi.Pointer Cert, + CSSM_HANDLE_PTR CertHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CertCreateTemplate( + int CLHandle, + int NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertDescribeFormat( + int CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGetAllFields( + int CLHandle, + ffi.Pointer Cert, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGetAllTemplateFields( + int CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_HANDLE, + ffi.Pointer, + CSSM_HANDLE_PTR, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGetFirstCachedFieldValue( + int CLHandle, + int CertHandle, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_HANDLE_PTR, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGetFirstFieldValue( + int CLHandle, + ffi.Pointer Cert, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGetKeyInfo( + int CLHandle, + ffi.Pointer Cert, + ffi.Pointer Key, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CertGetNextCachedFieldValue( + int CLHandle, + int ResultsHandle, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CertGetNextFieldValue( + int CLHandle, + int ResultsHandle, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CertGroupFromVerifiedBundle( + int CLHandle, + int CCHandle, + ffi.Pointer CertBundle, + ffi.Pointer SignerCert, + ffi.Pointer CertGroup, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CertGroupToSignedBundle( + int CLHandle, + int CCHandle, + ffi.Pointer CertGroupToBundle, + ffi.Pointer BundleInfo, + CSSM_DATA_PTR SignedBundle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CertSign( + int CLHandle, + int CCHandle, + ffi.Pointer CertTemplate, + ffi.Pointer SignScope, + int ScopeSize, + CSSM_DATA_PTR SignedCert, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + uint32, + ) +>() +external int CSSM_CL_CertVerify( + int CLHandle, + int CCHandle, + ffi.Pointer CertToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + int ScopeSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_CC_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CertVerifyWithKey( + int CLHandle, + int CCHandle, + ffi.Pointer CertToBeVerified, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_CL_CrlAbortCache(int CLHandle, int CrlHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_CL_CrlAbortQuery(int CLHandle, int ResultsHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CrlAddCert( + int CLHandle, + int CCHandle, + ffi.Pointer Cert, + int NumberOfFields, + ffi.Pointer CrlEntryFields, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + CSSM_HANDLE_PTR, + ) +>() +external int CSSM_CL_CrlCache( + int CLHandle, + ffi.Pointer Crl, + CSSM_HANDLE_PTR CrlHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CrlCreateTemplate( + int CLHandle, + int NumberOfFields, + ffi.Pointer CrlTemplate, + CSSM_DATA_PTR NewCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CrlDescribeFormat( + int CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CrlGetAllCachedRecordFields( + int CLHandle, + int CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer NumberOfFields, + ffi.Pointer CrlFields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CrlGetAllFields( + int CLHandle, + ffi.Pointer Crl, + ffi.Pointer NumberOfCrlFields, + ffi.Pointer CrlFields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_HANDLE_PTR, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CrlGetFirstCachedFieldValue( + int CLHandle, + int CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_HANDLE_PTR, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_CrlGetFirstFieldValue( + int CLHandle, + ffi.Pointer Crl, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CrlGetNextCachedFieldValue( + int CLHandle, + int ResultsHandle, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CrlGetNextFieldValue( + int CLHandle, + int ResultsHandle, + ffi.Pointer Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CrlRemoveCert( + int CLHandle, + ffi.Pointer Cert, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CrlSetFields( + int CLHandle, + int NumberOfFields, + ffi.Pointer CrlTemplate, + ffi.Pointer OldCrl, + CSSM_DATA_PTR ModifiedCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_CrlSign( + int CLHandle, + int CCHandle, + ffi.Pointer UnsignedCrl, + ffi.Pointer SignScope, + int ScopeSize, + CSSM_DATA_PTR SignedCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + uint32, + ) +>() +external int CSSM_CL_CrlVerify( + int CLHandle, + int CCHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + int ScopeSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_CC_HANDLE, ffi.Pointer) +>() +external int CSSM_CL_CrlVerifyWithKey( + int CLHandle, + int CCHandle, + ffi.Pointer CrlToBeVerified, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, ffi.Pointer, CSSM_DATA_PTR) +>() +external int CSSM_CL_FreeFieldValue( + int CLHandle, + ffi.Pointer CertOrCrlOid, + CSSM_DATA_PTR Value, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CL_HANDLE, uint32, ffi.Pointer) +>() +external int CSSM_CL_FreeFields( + int CLHandle, + int NumberOfFields, + ffi.Pointer Fields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + CSSM_HANDLE, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_CL_IsCertInCachedCrl( + int CLHandle, + ffi.Pointer Cert, + int CrlHandle, + ffi.Pointer CertFound, + CSSM_DATA_PTR CrlRecordIndex, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CL_IsCertInCrl( + int CLHandle, + ffi.Pointer Cert, + ffi.Pointer Crl, + ffi.Pointer CertFound, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + uint32, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CSSM_CL_PassThrough( + int CLHandle, + int CCHandle, + int PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_ChangeLoginAcl( + int CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_ChangeLoginOwner( + int CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + ffi.Pointer, + CSSM_PADDING, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateAsymmetricContext( + int CSPHandle, + int AlgorithmID, + ffi.Pointer AccessCred, + ffi.Pointer Key, + int Padding, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + CSSM_KEY_TYPE, + uint32, + ffi.Pointer, + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateDeriveKeyContext( + int CSPHandle, + int AlgorithmID, + int DeriveKeyType, + int DeriveKeyLengthInBits, + ffi.Pointer AccessCred, + ffi.Pointer BaseKey, + int IterationCount, + ffi.Pointer Salt, + ffi.Pointer Seed, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateDigestContext( + int CSPHandle, + int AlgorithmID, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateKeyGenContext( + int CSPHandle, + int AlgorithmID, + int KeySizeInBits, + ffi.Pointer Seed, + ffi.Pointer Salt, + ffi.Pointer StartDate, + ffi.Pointer EndDate, + ffi.Pointer Params, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateMacContext( + int CSPHandle, + int AlgorithmID, + ffi.Pointer Key, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreatePassThroughContext( + int CSPHandle, + ffi.Pointer Key, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + CSSM_SIZE, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateRandomGenContext( + int CSPHandle, + int AlgorithmID, + ffi.Pointer Seed, + int Length, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateSignatureContext( + int CSPHandle, + int AlgorithmID, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + CSSM_ENCRYPT_MODE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_PADDING, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_CreateSymmetricContext( + int CSPHandle, + int AlgorithmID, + int Mode, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer InitVector, + int Padding, + ffi.Pointer Reserved, + ffi.Pointer NewContextHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_GetLoginAcl( + int CSPHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CSP_HANDLE, CSSM_ACL_OWNER_PROTOTYPE_PTR) +>() +external int CSSM_CSP_GetLoginOwner( + int CSPHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ) +>() +external int CSSM_CSP_GetOperationalStatistics( + int CSPHandle, + ffi.Pointer Statistics, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_CSP_Login( + int CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer LoginName, + ffi.Pointer Reserved, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_CSP_Logout(int CSPHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CSP_HANDLE, ffi.Pointer, CSSM_KEY_PTR) +>() +external int CSSM_CSP_ObtainPrivateKeyFromPublicKey( + int CSPHandle, + ffi.Pointer PublicKey, + CSSM_KEY_PTR PrivateKey, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CSSM_CSP_PassThrough( + int CCHandle, + int PassThroughId, + ffi.Pointer InData, + ffi.Pointer> OutData, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_ChangeKeyAcl( + int CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ffi.Pointer Key, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_ChangeKeyOwner( + int CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer NewOwner, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + CSSM_DB_ACCESS_TYPE, + ffi.Pointer, + ) +>() +external int CSSM_DL_Authenticate( + CSSM_DL_DB_HANDLE DLDBHandle, + int AccessRequest, + ffi.Pointer AccessCred, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_ChangeDbAcl( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_ChangeDbOwner( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + CSSM_DB_RECORDTYPE, + ffi.Pointer, + uint32, + ffi.Pointer, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_DL_CreateRelation( + CSSM_DL_DB_HANDLE DLDBHandle, + int RelationID, + ffi.Pointer RelationName, + int NumberOfAttributes, + ffi.Pointer pAttributeInfo, + int NumberOfIndexes, + ffi.Pointer pIndexInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DL_DataAbortQuery( + CSSM_DL_DB_HANDLE DLDBHandle, + int ResultsHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_DL_DB_HANDLE, ffi.Pointer) +>() +external int CSSM_DL_DataDelete( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecordIdentifier, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + ffi.Pointer, + CSSM_HANDLE_PTR, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, + CSSM_DATA_PTR, + ffi.Pointer, + ) +>() +external int CSSM_DL_DataGetFirst( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer Query, + CSSM_HANDLE_PTR ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + ffi.Pointer, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, + CSSM_DATA_PTR, + ) +>() +external int CSSM_DL_DataGetFromUniqueRecordId( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecord, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + CSSM_HANDLE, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, + CSSM_DATA_PTR, + ffi.Pointer, + ) +>() +external int CSSM_DL_DataGetNext( + CSSM_DL_DB_HANDLE DLDBHandle, + int ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + CSSM_DB_RECORDTYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_DataInsert( + CSSM_DL_DB_HANDLE DLDBHandle, + int RecordType, + ffi.Pointer Attributes, + ffi.Pointer Data, + ffi.Pointer UniqueId, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + CSSM_DB_RECORDTYPE, + CSSM_DB_UNIQUE_RECORD_PTR, + ffi.Pointer, + ffi.Pointer, + CSSM_DB_MODIFY_MODE, + ) +>() +external int CSSM_DL_DataModify( + CSSM_DL_DB_HANDLE DLDBHandle, + int RecordType, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, + ffi.Pointer AttributesToBeModified, + ffi.Pointer DataToBeModified, + int ModifyMode, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DL_DbClose(CSSM_DL_DB_HANDLE DLDBHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_DB_ACCESS_TYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_DbCreate( + int DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer DBInfo, + int AccessRequest, + ffi.Pointer CredAndAclEntry, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_DbDelete( + int DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer AccessCred, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_DB_ACCESS_TYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_DbOpen( + int DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + int AccessRequest, + ffi.Pointer AccessCred, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DL_DestroyRelation( + CSSM_DL_DB_HANDLE DLDBHandle, + int RelationID, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DL_FreeNameList(int DLHandle, CSSM_NAME_LIST_PTR NameList); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_DL_DB_HANDLE, CSSM_DB_UNIQUE_RECORD_PTR) +>() +external int CSSM_DL_FreeUniqueRecord( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_DL_GetDbAcl( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_DL_DB_HANDLE, ffi.Pointer>) +>() +external int CSSM_DL_GetDbNameFromHandle( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> DbName, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_DL_HANDLE, ffi.Pointer) +>() +external int CSSM_DL_GetDbNames( + int DLHandle, + ffi.Pointer NameList, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_DL_DB_HANDLE, CSSM_ACL_OWNER_PROTOTYPE_PTR) +>() +external int CSSM_DL_GetDbOwner( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE, + uint32, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CSSM_DL_PassThrough( + CSSM_DL_DB_HANDLE DLDBHandle, + int PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_DecryptData( + int CCHandle, + ffi.Pointer CipherBufs, + int CipherBufCount, + CSSM_DATA_PTR ClearBufs, + int ClearBufCount, + ffi.Pointer bytesDecrypted, + CSSM_DATA_PTR RemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DecryptDataFinal(int CCHandle, CSSM_DATA_PTR RemData); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DecryptDataInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DecryptDataInitP(int CCHandle, int Privilege); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_DecryptDataP( + int CCHandle, + ffi.Pointer CipherBufs, + int CipherBufCount, + CSSM_DATA_PTR ClearBufs, + int ClearBufCount, + ffi.Pointer bytesDecrypted, + CSSM_DATA_PTR RemData, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_DecryptDataUpdate( + int CCHandle, + ffi.Pointer CipherBufs, + int CipherBufCount, + CSSM_DATA_PTR ClearBufs, + int ClearBufCount, + ffi.Pointer bytesDecrypted, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DeleteContext(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_DeleteContextAttributes( + int CCHandle, + int NumberOfAttributes, + ffi.Pointer ContextAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + CSSM_DATA_PTR, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + ) +>() +external int CSSM_DeriveKey( + int CCHandle, + CSSM_DATA_PTR Param, + int KeyUsage, + int KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR DerivedKey, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + ) +>() +external int CSSM_DigestData( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, + CSSM_DATA_PTR Digest, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_DigestDataClone( + int CCHandle, + ffi.Pointer ClonednewCCHandle, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DigestDataFinal(int CCHandle, CSSM_DATA_PTR Digest); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_DigestDataInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) +>() +external int CSSM_DigestDataUpdate( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_EncryptData( + int CCHandle, + ffi.Pointer ClearBufs, + int ClearBufCount, + CSSM_DATA_PTR CipherBufs, + int CipherBufCount, + ffi.Pointer bytesEncrypted, + CSSM_DATA_PTR RemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_EncryptDataFinal(int CCHandle, CSSM_DATA_PTR RemData); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_EncryptDataInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_EncryptDataInitP(int CCHandle, int Privilege); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_EncryptDataP( + int CCHandle, + ffi.Pointer ClearBufs, + int ClearBufCount, + CSSM_DATA_PTR CipherBufs, + int CipherBufCount, + ffi.Pointer bytesEncrypted, + CSSM_DATA_PTR RemData, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_EncryptDataUpdate( + int CCHandle, + ffi.Pointer ClearBufs, + int ClearBufCount, + CSSM_DATA_PTR CipherBufs, + int CipherBufCount, + ffi.Pointer bytesEncrypted, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_FreeContext(CSSM_CONTEXT_PTR Context); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + CSSM_KEY_PTR, + CSSM_BOOL, + ) +>() +external int CSSM_FreeKey( + int CSPHandle, + ffi.Pointer AccessCred, + CSSM_KEY_PTR KeyPtr, + int Delete, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GenerateAlgorithmParams( + int CCHandle, + int ParamBits, + CSSM_DATA_PTR Param, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + ) +>() +external int CSSM_GenerateKey( + int CCHandle, + int KeyUsage, + int KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR Key, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_GenerateKeyP( + int CCHandle, + int KeyUsage, + int KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR Key, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + uint32, + ffi.Pointer, + CSSM_KEY_PTR, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + ) +>() +external int CSSM_GenerateKeyPair( + int CCHandle, + int PublicKeyUsage, + int PublicKeyAttr, + ffi.Pointer PublicKeyLabel, + CSSM_KEY_PTR PublicKey, + int PrivateKeyUsage, + int PrivateKeyAttr, + ffi.Pointer PrivateKeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR PrivateKey, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + uint32, + ffi.Pointer, + CSSM_KEY_PTR, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_GenerateKeyPairP( + int CCHandle, + int PublicKeyUsage, + int PublicKeyAttr, + ffi.Pointer PublicKeyLabel, + CSSM_KEY_PTR PublicKey, + int PrivateKeyUsage, + int PrivateKeyAttr, + ffi.Pointer PrivateKeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR PrivateKey, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_DATA_PTR, + ) +>() +external int CSSM_GenerateMac( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, + CSSM_DATA_PTR Mac, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GenerateMacFinal(int CCHandle, CSSM_DATA_PTR Mac); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GenerateMacInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) +>() +external int CSSM_GenerateMacUpdate( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GenerateRandom(int CCHandle, CSSM_DATA_PTR RandomNumber); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_MODULE_HANDLE, CSSM_API_MEMORY_FUNCS_PTR) +>() +external int CSSM_GetAPIMemoryFunctions( + int AddInHandle, + CSSM_API_MEMORY_FUNCS_PTR AppMemoryFuncs, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer) +>() +external int CSSM_GetContext( + int CCHandle, + ffi.Pointer Context, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_GetContextAttribute( + ffi.Pointer Context, + int AttributeType, + ffi.Pointer ContextAttribute, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_GetKeyAcl( + int CSPHandle, + ffi.Pointer Key, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + ffi.Pointer, + CSSM_ACL_OWNER_PROTOTYPE_PTR, + ) +>() +external int CSSM_GetKeyOwner( + int CSPHandle, + ffi.Pointer Key, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GetModuleGUIDFromHandle( + int ModuleHandle, + CSSM_GUID_PTR ModuleGUID, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_GetPrivilege(ffi.Pointer Privilege); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_GetSubserviceUIDFromHandle( + int ModuleHandle, + CSSM_SUBSERVICE_UID_PTR SubserviceUID, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_ALGORITHMS, + ffi.Pointer, + ) +>() +external int CSSM_GetTimeValue( + int CSPHandle, + int TimeAlgorithm, + ffi.Pointer TimeData, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + CSSM_PRIVILEGE_SCOPE, + ffi.Pointer, + CSSM_KEY_HIERARCHY, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_Init( + ffi.Pointer Version, + int Scope, + ffi.Pointer CallerGuid, + int KeyHierarchy, + ffi.Pointer PvcPolicy, + ffi.Pointer Reserved, +); + +@Deprecated('Deprecated') +@ffi.Native, CSSM_KEY_HIERARCHY)>() +external int CSSM_Introduce(ffi.Pointer ModuleID, int KeyHierarchy); + +@Deprecated('Deprecated') +@ffi.Native, CSSM_GUID_PTR)>() +external int CSSM_ListAttachedModuleManagers( + ffi.Pointer NumberOfModuleManagers, + CSSM_GUID_PTR ModuleManagerGuids, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + uint32, + CSSM_SERVICE_TYPE, + CSSM_ATTACH_FLAGS, + CSSM_KEY_HIERARCHY, + ffi.Pointer, + uint32, + ffi.Pointer, + CSSM_MODULE_HANDLE_PTR, + ) +>() +external int CSSM_ModuleAttach( + ffi.Pointer ModuleGuid, + ffi.Pointer Version, + ffi.Pointer MemoryFuncs, + int SubserviceID, + int SubServiceType, + int AttachFlags, + int KeyHierarchy, + ffi.Pointer FunctionTable, + int NumFunctionTable, + ffi.Pointer Reserved, + CSSM_MODULE_HANDLE_PTR NewModuleHandle, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_ModuleDetach(int ModuleHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + CSSM_KEY_HIERARCHY, + CSSM_API_ModuleEventHandler, + ffi.Pointer, + ) +>() +external int CSSM_ModuleLoad( + ffi.Pointer ModuleGuid, + int KeyHierarchy, + CSSM_API_ModuleEventHandler AppNotifyCallback, + ffi.Pointer AppNotifyCallbackCtx, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + CSSM_API_ModuleEventHandler, + ffi.Pointer, + ) +>() +external int CSSM_ModuleUnload( + ffi.Pointer ModuleGuid, + CSSM_API_ModuleEventHandler AppNotifyCallback, + ffi.Pointer AppNotifyCallbackCtx, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CSP_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + CSSM_KEY_SIZE_PTR, + ) +>() +external int CSSM_QueryKeySizeInBits( + int CSPHandle, + int CCHandle, + ffi.Pointer Key, + CSSM_KEY_SIZE_PTR KeySize, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + CSSM_BOOL, + uint32, + CSSM_QUERY_SIZE_DATA_PTR, + ) +>() +external int CSSM_QuerySize( + int CCHandle, + int Encrypt, + int QuerySizeCount, + CSSM_QUERY_SIZE_DATA_PTR DataBlockSizes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_RetrieveCounter(int CSPHandle, CSSM_DATA_PTR Counter); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_RetrieveUniqueId(int CSPHandle, CSSM_DATA_PTR UniqueID$1); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_SetContext(int CCHandle, ffi.Pointer Context); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_SetPrivilege(int Privilege); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_ALGORITHMS, + CSSM_DATA_PTR, + ) +>() +external int CSSM_SignData( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, + int DigestAlgorithm, + CSSM_DATA_PTR Signature, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_SignDataFinal(int CCHandle, CSSM_DATA_PTR Signature); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_SignDataInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) +>() +external int CSSM_SignDataUpdate( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + ) +>() +external int CSSM_TP_ApplyCrlToDb( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer CrlToBeApplied, + ffi.Pointer SignerCertGroup, + ffi.Pointer ApplyCrlVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CertCreateTemplate( + int TPHandle, + int CLHandle, + int NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_CertGetAllTemplateFields( + int TPHandle, + int CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_CertGroupConstruct( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer DBList, + ffi.Pointer ConstructParams, + ffi.Pointer CertGroupFrag, + ffi.Pointer CertGroup, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_CertGroupPrune( + int TPHandle, + int CLHandle, + ffi.Pointer DBList, + ffi.Pointer OrderedCertGroup, + ffi.Pointer PrunedCertGroup, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_CertGroupToTupleGroup( + int TPHandle, + int CLHandle, + ffi.Pointer CertGroup, + ffi.Pointer TupleGroup, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + ) +>() +external int CSSM_TP_CertGroupVerify( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer CertGroupToBeVerified, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_TP_CertReclaimAbort(int TPHandle, int KeyCacheHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + uint32, + CSSM_LONG_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ) +>() +external int CSSM_TP_CertReclaimKey( + int TPHandle, + ffi.Pointer CertGroup, + int CertIndex, + int KeyCacheHandle, + int CSPHandle, + ffi.Pointer CredAndAclEntry, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CertRemoveFromCrlTemplate( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRemoved, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + CSSM_DATA_PTR NewCrlTemplate, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + CSSM_TP_CERTCHANGE_REASON, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CertRevoke( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRevoked, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + int Reason, + CSSM_DATA_PTR NewCrlTemplate, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CertSign( + int TPHandle, + int CLHandle, + int CCHandle, + ffi.Pointer CertTemplateToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCert, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_ConfirmCredResult( + int TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer Responses, + ffi.Pointer PreferredAuthority, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + uint32, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CrlCreateTemplate( + int TPHandle, + int CLHandle, + int NumberOfFields, + ffi.Pointer CrlFields, + CSSM_DATA_PTR NewCrlTemplate, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_CrlSign( + int TPHandle, + int CLHandle, + int CCHandle, + ffi.Pointer CrlToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCrl, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CSP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, + ) +>() +external int CSSM_TP_CrlVerify( + int TPHandle, + int CLHandle, + int CSPHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCertGroup, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + CSSM_TP_FORM_TYPE, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_FormRequest( + int TPHandle, + ffi.Pointer PreferredAuthority, + int FormType, + CSSM_DATA_PTR BlankForm, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_TP_FORM_TYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_ACCESS_CREDENTIALS_PTR, + ) +>() +external int CSSM_TP_FormSubmit( + int TPHandle, + int FormType, + ffi.Pointer Form, + ffi.Pointer ClearanceAuthority, + ffi.Pointer RepresentedAuthority, + CSSM_ACCESS_CREDENTIALS_PTR Credentials, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CSSM_TP_PassThrough( + int TPHandle, + int CLHandle, + int CCHandle, + ffi.Pointer DBList, + int PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_ReceiveConfirmation( + int TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer Responses, + ffi.Pointer ElapsedTime, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_RetrieveCredResult( + int TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer EstimatedTime, + ffi.Pointer ConfirmationRequired, + ffi.Pointer RetrieveOutput, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + ffi.Pointer, + CSSM_TP_AUTHORITY_REQUEST_TYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_DATA_PTR, + ) +>() +external int CSSM_TP_SubmitCredRequest( + int TPHandle, + ffi.Pointer PreferredAuthority, + int RequestType, + ffi.Pointer RequestInput, + ffi.Pointer CallerAuthContext, + ffi.Pointer EstimatedTime, + CSSM_DATA_PTR ReferenceIdentifier, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_TP_HANDLE, + CSSM_CL_HANDLE, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CSSM_TP_TupleGroupToCertGroup( + int TPHandle, + int CLHandle, + ffi.Pointer TupleGroup, + ffi.Pointer CertTemplates, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_Terminate(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_Unintroduce(ffi.Pointer ModuleID); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + CSSM_DATA_PTR, + ) +>() +external int CSSM_UnwrapKey( + int CCHandle, + ffi.Pointer PublicKey, + ffi.Pointer WrappedKey, + int KeyUsage, + int KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR UnwrappedKey, + CSSM_DATA_PTR DescriptiveData, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + uint32, + uint32, + ffi.Pointer, + ffi.Pointer, + CSSM_KEY_PTR, + CSSM_DATA_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_UnwrapKeyP( + int CCHandle, + ffi.Pointer PublicKey, + ffi.Pointer WrappedKey, + int KeyUsage, + int KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR UnwrappedKey, + CSSM_DATA_PTR DescriptiveData, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_UpdateContextAttributes( + int CCHandle, + int NumberOfAttributes, + ffi.Pointer ContextAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + CSSM_ALGORITHMS, + ffi.Pointer, + ) +>() +external int CSSM_VerifyData( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, + int DigestAlgorithm, + ffi.Pointer Signature, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_VerifyDataFinal( + int CCHandle, + ffi.Pointer Signature, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_VerifyDataInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) +>() +external int CSSM_VerifyDataUpdate( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_VerifyDevice( + int CSPHandle, + ffi.Pointer DeviceCert, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + uint32, + ffi.Pointer, + ) +>() +external int CSSM_VerifyMac( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, + ffi.Pointer Mac, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CSSM_VerifyMacFinal(int CCHandle, ffi.Pointer Mac); + +@Deprecated('Deprecated') +@ffi.Native() +external int CSSM_VerifyMacInit(int CCHandle); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) +>() +external int CSSM_VerifyMacUpdate( + int CCHandle, + ffi.Pointer DataBufs, + int DataBufCount, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_WRAP_KEY_PTR, + ) +>() +external int CSSM_WrapKey( + int CCHandle, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer DescriptiveData, + CSSM_WRAP_KEY_PTR WrappedKey, +); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + CSSM_CC_HANDLE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CSSM_WRAP_KEY_PTR, + CSSM_PRIVILEGE, + ) +>() +external int CSSM_WrapKeyP( + int CCHandle, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer DescriptiveData, + CSSM_WRAP_KEY_PTR WrappedKey, + int Privilege, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void CSSetComponentsThreadMode(int mode); + +@ffi.Native() +external CFArrayRef CTFontCollectionCopyExclusionDescriptors( + CTFontCollectionRef collection, +); + +@ffi.Native() +external CFArrayRef CTFontCollectionCopyFontAttribute( + CTFontCollectionRef collection, + CFStringRef attributeName, + int options, +); + +@ffi.Native() +external CFArrayRef CTFontCollectionCopyFontAttributes( + CTFontCollectionRef collection, + CFSetRef attributeNames, + int options, +); + +@ffi.Native() +external CFArrayRef CTFontCollectionCopyQueryDescriptors( + CTFontCollectionRef collection, +); + +@ffi.Native< + CTFontCollectionRef Function(CTFontCollectionRef, CFArrayRef, CFDictionaryRef) +>() +external CTFontCollectionRef CTFontCollectionCreateCopyWithFontDescriptors( + CTFontCollectionRef original, + CFArrayRef queryDescriptors, + CFDictionaryRef options, +); + +@ffi.Native() +external CTFontCollectionRef CTFontCollectionCreateFromAvailableFonts( + CFDictionaryRef options, +); + +@ffi.Native() +external CFArrayRef CTFontCollectionCreateMatchingFontDescriptors( + CTFontCollectionRef collection, +); + +@ffi.Native< + CFArrayRef Function(CTFontCollectionRef, CFStringRef, CFDictionaryRef) +>() +external CFArrayRef CTFontCollectionCreateMatchingFontDescriptorsForFamily( + CTFontCollectionRef collection, + CFStringRef familyName, + CFDictionaryRef options, +); + +@ffi.Native< + CFArrayRef Function( + CTFontCollectionRef, + CTFontCollectionSortDescriptorsCallback, + ffi.Pointer, + ) +>() +external CFArrayRef +CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback( + CTFontCollectionRef collection, + CTFontCollectionSortDescriptorsCallback sortCallback, + ffi.Pointer refCon, +); + +@ffi.Native() +external CFArrayRef CTFontCollectionCreateMatchingFontDescriptorsWithOptions( + CTFontCollectionRef collection, + CFDictionaryRef options, +); + +@ffi.Native() +external CTMutableFontCollectionRef CTFontCollectionCreateMutableCopy( + CTFontCollectionRef original, +); + +@ffi.Native() +external CTFontCollectionRef CTFontCollectionCreateWithFontDescriptors( + CFArrayRef queryDescriptors, + CFDictionaryRef options, +); + +@ffi.Native() +external int CTFontCollectionGetTypeID(); + +@ffi.Native() +external void CTFontCollectionSetExclusionDescriptors( + CTMutableFontCollectionRef collection, + CFArrayRef descriptors, +); + +@ffi.Native() +external void CTFontCollectionSetQueryDescriptors( + CTMutableFontCollectionRef collection, + CFArrayRef descriptors, +); + +@ffi.Native() +external CFTypeRef CTFontCopyAttribute(CTFontRef font, CFStringRef attribute); + +@ffi.Native() +external CFArrayRef CTFontCopyAvailableTables(CTFontRef font, int options); + +@ffi.Native() +external CFCharacterSetRef CTFontCopyCharacterSet(CTFontRef font); + +@ffi.Native() +external CFArrayRef CTFontCopyDefaultCascadeListForLanguages( + CTFontRef font, + CFArrayRef languagePrefList, +); + +@ffi.Native() +external CFStringRef CTFontCopyDisplayName(CTFontRef font); + +@ffi.Native() +external CFStringRef CTFontCopyFamilyName(CTFontRef font); + +@ffi.Native() +external CFArrayRef CTFontCopyFeatureSettings(CTFontRef font); + +@ffi.Native() +external CFArrayRef CTFontCopyFeatures(CTFontRef font); + +@ffi.Native() +external CTFontDescriptorRef CTFontCopyFontDescriptor(CTFontRef font); + +@ffi.Native() +external CFStringRef CTFontCopyFullName(CTFontRef font); + +@ffi.Native)>() +external CGFontRef CTFontCopyGraphicsFont( + CTFontRef font, + ffi.Pointer attributes, +); + +@ffi.Native< + CFStringRef Function(CTFontRef, CFStringRef, ffi.Pointer) +>() +external CFStringRef CTFontCopyLocalizedName( + CTFontRef font, + CFStringRef nameKey, + ffi.Pointer actualLanguage, +); + +@ffi.Native() +external CFStringRef CTFontCopyName(CTFontRef font, CFStringRef nameKey); + +@ffi.Native() +external CFStringRef CTFontCopyNameForGlyph(CTFontRef font, int glyph); + +@ffi.Native() +external CFStringRef CTFontCopyPostScriptName(CTFontRef font); + +@ffi.Native() +external CFArrayRef CTFontCopySupportedLanguages(CTFontRef font); + +@ffi.Native() +external CFDataRef CTFontCopyTable(CTFontRef font, int table, int options); + +@ffi.Native() +external CFDictionaryRef CTFontCopyTraits(CTFontRef font); + +@ffi.Native() +external CFDictionaryRef CTFontCopyVariation(CTFontRef font); + +@ffi.Native() +external CFArrayRef CTFontCopyVariationAxes(CTFontRef font); + +@ffi.Native< + CTFontRef Function( + CTFontRef, + CGFloat, + ffi.Pointer, + CTFontDescriptorRef, + ) +>() +external CTFontRef CTFontCreateCopyWithAttributes( + CTFontRef font, + double size, + ffi.Pointer matrix, + CTFontDescriptorRef attributes, +); + +@ffi.Native< + CTFontRef Function( + CTFontRef, + CGFloat, + ffi.Pointer, + CFStringRef, + ) +>() +external CTFontRef CTFontCreateCopyWithFamily( + CTFontRef font, + double size, + ffi.Pointer matrix, + CFStringRef family, +); + +@ffi.Native< + CTFontRef Function( + CTFontRef, + CGFloat, + ffi.Pointer, + ffi.Uint32, + ffi.Uint32, + ) +>() +external CTFontRef CTFontCreateCopyWithSymbolicTraits( + CTFontRef font, + double size, + ffi.Pointer matrix, + int symTraitValue, + int symTraitMask, +); + +@ffi.Native() +external CTFontRef CTFontCreateForString( + CTFontRef currentFont, + CFStringRef string, + CFRange range, +); + +@ffi.Native() +external CTFontRef CTFontCreateForStringWithLanguage( + CTFontRef currentFont, + CFStringRef string, + CFRange range, + CFStringRef language, +); + +@ffi.Native< + CGPathRef Function(CTFontRef, CGGlyph, ffi.Pointer) +>() +external CGPathRef CTFontCreatePathForGlyph( + CTFontRef font, + int glyph, + ffi.Pointer matrix, +); + +@ffi.Native( + symbol: 'CTFontCreateUIFontForLanguage', +) +external CTFontRef _CTFontCreateUIFontForLanguage( + int uiType, + double size, + CFStringRef language, +); + +CTFontRef CTFontCreateUIFontForLanguage( + CTFontUIFontType uiType, + DartCGFloat size, + CFStringRef language, +) { + return _CTFontCreateUIFontForLanguage(uiType.value, size, language); +} + +@ffi.Native< + CTFontRef Function( + CTFontDescriptorRef, + CGFloat, + ffi.Pointer, + ) +>() +external CTFontRef CTFontCreateWithFontDescriptor( + CTFontDescriptorRef descriptor, + double size, + ffi.Pointer matrix, +); + +@ffi.Native< + CTFontRef Function( + CTFontDescriptorRef, + CGFloat, + ffi.Pointer, + CFOptionFlags, + ) +>() +external CTFontRef CTFontCreateWithFontDescriptorAndOptions( + CTFontDescriptorRef descriptor, + double size, + ffi.Pointer matrix, + int options, +); + +@ffi.Native< + CTFontRef Function( + CGFontRef, + CGFloat, + ffi.Pointer, + CTFontDescriptorRef, + ) +>() +external CTFontRef CTFontCreateWithGraphicsFont( + CGFontRef graphicsFont, + double size, + ffi.Pointer matrix, + CTFontDescriptorRef attributes, +); + +@ffi.Native< + CTFontRef Function(CFStringRef, CGFloat, ffi.Pointer) +>() +external CTFontRef CTFontCreateWithName( + CFStringRef name, + double size, + ffi.Pointer matrix, +); + +@ffi.Native< + CTFontRef Function( + CFStringRef, + CGFloat, + ffi.Pointer, + CFOptionFlags, + ) +>() +external CTFontRef CTFontCreateWithNameAndOptions( + CFStringRef name, + double size, + ffi.Pointer matrix, + int options, +); + +@Deprecated('ATS is deprecated') +@ffi.Native< + CTFontRef Function( + ATSFontRef, + CGFloat, + ffi.Pointer, + CTFontDescriptorRef, + ) +>() +external CTFontRef CTFontCreateWithPlatformFont( + int platformFont, + double size, + ffi.Pointer matrix, + CTFontDescriptorRef attributes, +); + +@Deprecated('Quickdraw font references are deprecated') +@ffi.Native< + CTFontRef Function(ConstStr255Param, ffi.Int16, ffi.Uint8, CGFloat) +>() +external CTFontRef CTFontCreateWithQuickdrawInstance( + ConstStr255Param name, + int identifier, + int style, + double size, +); + +@ffi.Native() +external CFTypeRef CTFontDescriptorCopyAttribute( + CTFontDescriptorRef descriptor, + CFStringRef attribute, +); + +@ffi.Native() +external CFDictionaryRef CTFontDescriptorCopyAttributes( + CTFontDescriptorRef descriptor, +); + +@ffi.Native< + CFTypeRef Function(CTFontDescriptorRef, CFStringRef, ffi.Pointer) +>() +external CFTypeRef CTFontDescriptorCopyLocalizedAttribute( + CTFontDescriptorRef descriptor, + CFStringRef attribute, + ffi.Pointer language, +); + +@ffi.Native< + CTFontDescriptorRef Function(CTFontDescriptorRef, CFDictionaryRef) +>() +external CTFontDescriptorRef CTFontDescriptorCreateCopyWithAttributes( + CTFontDescriptorRef original, + CFDictionaryRef attributes, +); + +@ffi.Native() +external CTFontDescriptorRef CTFontDescriptorCreateCopyWithFamily( + CTFontDescriptorRef original, + CFStringRef family, +); + +@ffi.Native< + CTFontDescriptorRef Function(CTFontDescriptorRef, CFNumberRef, CFNumberRef) +>() +external CTFontDescriptorRef CTFontDescriptorCreateCopyWithFeature( + CTFontDescriptorRef original, + CFNumberRef featureTypeIdentifier, + CFNumberRef featureSelectorIdentifier, +); + +@ffi.Native< + CTFontDescriptorRef Function(CTFontDescriptorRef, ffi.Uint32, ffi.Uint32) +>() +external CTFontDescriptorRef CTFontDescriptorCreateCopyWithSymbolicTraits( + CTFontDescriptorRef original, + int symTraitValue, + int symTraitMask, +); + +@ffi.Native< + CTFontDescriptorRef Function(CTFontDescriptorRef, CFNumberRef, CGFloat) +>() +external CTFontDescriptorRef CTFontDescriptorCreateCopyWithVariation( + CTFontDescriptorRef original, + CFNumberRef variationIdentifier, + double variationValue, +); + +@ffi.Native() +external CTFontDescriptorRef CTFontDescriptorCreateMatchingFontDescriptor( + CTFontDescriptorRef descriptor, + CFSetRef mandatoryAttributes, +); + +@ffi.Native() +external CFArrayRef CTFontDescriptorCreateMatchingFontDescriptors( + CTFontDescriptorRef descriptor, + CFSetRef mandatoryAttributes, +); + +@ffi.Native() +external CTFontDescriptorRef CTFontDescriptorCreateWithAttributes( + CFDictionaryRef attributes, +); + +@ffi.Native() +external CTFontDescriptorRef CTFontDescriptorCreateWithNameAndSize( + CFStringRef name, + double size, +); + +@ffi.Native() +external int CTFontDescriptorGetTypeID(); + +@ffi.Native< + ffi.Bool Function(CFArrayRef, CFSetRef, CTFontDescriptorProgressHandler) +>(symbol: 'CTFontDescriptorMatchFontDescriptorsWithProgressHandler') +external bool _CTFontDescriptorMatchFontDescriptorsWithProgressHandler( + CFArrayRef descriptors, + CFSetRef mandatoryAttributes, + CTFontDescriptorProgressHandler progressBlock, +); + +bool CTFontDescriptorMatchFontDescriptorsWithProgressHandler( + CFArrayRef descriptors, + CFSetRef mandatoryAttributes, + DartCTFontDescriptorProgressHandler progressBlock, +) { + final _$$ref = progressBlock.ref; + return _CTFontDescriptorMatchFontDescriptorsWithProgressHandler( + descriptors, + mandatoryAttributes, + _$$ref.pointer, + ); +} + +@ffi.Native< + ffi.Void Function( + CTFontRef, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + CGContextRef, + ) +>() +external void CTFontDrawGlyphs( + CTFontRef font, + ffi.Pointer glyphs, + ffi.Pointer positions, + int count, + CGContextRef context, +); + +@ffi.Native< + ffi.Void Function( + CTFontRef, + ffi.Pointer, + objc.CGPoint, + CGContextRef, + ) +>(symbol: 'CTFontDrawImageFromAdaptiveImageProviderAtPoint') +external void _CTFontDrawImageFromAdaptiveImageProviderAtPoint( + CTFontRef font, + ffi.Pointer provider, + objc.CGPoint point, + CGContextRef context, +); + +void CTFontDrawImageFromAdaptiveImageProviderAtPoint( + CTFontRef font, + CTAdaptiveImageProviding provider, + objc.CGPoint point, + CGContextRef context, +) { + final _$$ref = provider.ref; + return _CTFontDrawImageFromAdaptiveImageProviderAtPoint( + font, + _$$ref.pointer, + point, + context, + ); +} + +@ffi.Native< + ffi.Double Function( + CTFontRef, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>(symbol: 'CTFontGetAdvancesForGlyphs') +external double _CTFontGetAdvancesForGlyphs( + CTFontRef font, + int orientation, + ffi.Pointer glyphs, + ffi.Pointer advances, + int count, +); + +double CTFontGetAdvancesForGlyphs( + CTFontRef font, + CTFontOrientation orientation, + ffi.Pointer glyphs, + ffi.Pointer advances, + DartCFIndex count, +) { + return _CTFontGetAdvancesForGlyphs( + font, + orientation.value, + glyphs, + advances, + count, + ); +} + +@ffi.Native() +external double CTFontGetAscent(CTFontRef font); + +@ffi.Native() +external objc.CGRect CTFontGetBoundingBox(CTFontRef font); + +@ffi.Native< + objc.CGRect Function( + CTFontRef, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>(symbol: 'CTFontGetBoundingRectsForGlyphs') +external objc.CGRect _CTFontGetBoundingRectsForGlyphs( + CTFontRef font, + int orientation, + ffi.Pointer glyphs, + ffi.Pointer boundingRects, + int count, +); + +objc.CGRect CTFontGetBoundingRectsForGlyphs( + CTFontRef font, + CTFontOrientation orientation, + ffi.Pointer glyphs, + ffi.Pointer boundingRects, + DartCFIndex count, +) { + return _CTFontGetBoundingRectsForGlyphs( + font, + orientation.value, + glyphs, + boundingRects, + count, + ); +} + +@ffi.Native() +external double CTFontGetCapHeight(CTFontRef font); + +@ffi.Native() +external double CTFontGetDescent(CTFontRef font); + +@ffi.Native() +external int CTFontGetGlyphCount(CTFontRef font); + +@ffi.Native() +external int CTFontGetGlyphWithName(CTFontRef font, CFStringRef glyphName); + +@ffi.Native< + ffi.Bool Function( + CTFontRef, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>() +external bool CTFontGetGlyphsForCharacters( + CTFontRef font, + ffi.Pointer characters, + ffi.Pointer glyphs, + int count, +); + +@ffi.Native() +external double CTFontGetLeading(CTFontRef font); + +@ffi.Native< + CFIndex Function(CTFontRef, CGGlyph, ffi.Pointer, CFIndex) +>() +external int CTFontGetLigatureCaretPositions( + CTFontRef font, + int glyph, + ffi.Pointer positions, + int maxPositions, +); + +@ffi.Native() +external CGAffineTransform CTFontGetMatrix(CTFontRef font); + +@ffi.Native< + objc.CGRect Function( + CTFontRef, + ffi.Pointer, + ffi.Pointer, + CFIndex, + CFOptionFlags, + ) +>() +external objc.CGRect CTFontGetOpticalBoundsForGlyphs( + CTFontRef font, + ffi.Pointer glyphs, + ffi.Pointer boundingRects, + int count, + int options, +); + +@Deprecated('ATS is deprecated') +@ffi.Native)>() +external int CTFontGetPlatformFont( + CTFontRef font, + ffi.Pointer attributes, +); + +@ffi.Native() +external double CTFontGetSize(CTFontRef font); + +@ffi.Native() +external double CTFontGetSlantAngle(CTFontRef font); + +@ffi.Native() +external int CTFontGetStringEncoding(CTFontRef font); + +@ffi.Native() +external int CTFontGetSymbolicTraits(CTFontRef font); + +@ffi.Native() +external int CTFontGetTypeID(); + +@ffi.Native)>( + symbol: 'CTFontGetTypographicBoundsForAdaptiveImageProvider', +) +external objc.CGRect _CTFontGetTypographicBoundsForAdaptiveImageProvider( + CTFontRef font, + ffi.Pointer provider, +); + +objc.CGRect CTFontGetTypographicBoundsForAdaptiveImageProvider( + CTFontRef font, + CTAdaptiveImageProviding? provider, +) { + final _$$ref = provider?.ref; + return _CTFontGetTypographicBoundsForAdaptiveImageProvider( + font, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native() +external double CTFontGetUnderlinePosition(CTFontRef font); + +@ffi.Native() +external double CTFontGetUnderlineThickness(CTFontRef font); + +@ffi.Native() +external int CTFontGetUnitsPerEm(CTFontRef font); + +@ffi.Native< + ffi.Void Function( + CTFontRef, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>() +external void CTFontGetVerticalTranslationsForGlyphs( + CTFontRef font, + ffi.Pointer glyphs, + ffi.Pointer translations, + int count, +); + +@ffi.Native() +external double CTFontGetXHeight(CTFontRef font); + +@ffi.Native() +external bool CTFontHasTable(CTFontRef font, int tag); + +@ffi.Native< + CFIndex Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CTFontManagerCompareFontFamilyNames') +external int _CTFontManagerCompareFontFamilyNames( + ffi.Pointer family1, + ffi.Pointer family2, + ffi.Pointer context, +); + +CFComparisonResult CTFontManagerCompareFontFamilyNames( + ffi.Pointer family1, + ffi.Pointer family2, + ffi.Pointer context, +) { + return CFComparisonResult.fromValue( + _CTFontManagerCompareFontFamilyNames(family1, family2, context), + ); +} + +@ffi.Native() +external CFArrayRef CTFontManagerCopyAvailableFontFamilyNames(); + +@ffi.Native() +external CFArrayRef CTFontManagerCopyAvailableFontURLs(); + +@ffi.Native() +external CFArrayRef CTFontManagerCopyAvailablePostScriptNames(); + +@ffi.Native( + symbol: 'CTFontManagerCopyRegisteredFontDescriptors', +) +external CFArrayRef _CTFontManagerCopyRegisteredFontDescriptors( + int scope, + bool enabled, +); + +CFArrayRef CTFontManagerCopyRegisteredFontDescriptors( + CTFontManagerScope scope, + bool enabled, +) { + return _CTFontManagerCopyRegisteredFontDescriptors(scope.value, enabled); +} + +@ffi.Native() +external CTFontDescriptorRef CTFontManagerCreateFontDescriptorFromData( + CFDataRef data, +); + +@ffi.Native() +external CFArrayRef CTFontManagerCreateFontDescriptorsFromData(CFDataRef data); + +@ffi.Native() +external CFArrayRef CTFontManagerCreateFontDescriptorsFromURL(CFURLRef fileURL); + +@Deprecated('This functionality will be removed in a future release') +@ffi.Native< + CFRunLoopSourceRef Function(CFIndex, ffi.Pointer) +>(symbol: 'CTFontManagerCreateFontRequestRunLoopSource') +external CFRunLoopSourceRef _CTFontManagerCreateFontRequestRunLoopSource( + int sourceOrder, + ffi.Pointer createMatchesCallback, +); + +CFRunLoopSourceRef CTFontManagerCreateFontRequestRunLoopSource( + DartCFIndex sourceOrder, + objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + > + createMatchesCallback, +) { + final _$$ref = createMatchesCallback.ref; + return _CTFontManagerCreateFontRequestRunLoopSource( + sourceOrder, + _$$ref.pointer, + ); +} + +@ffi.Native() +external void CTFontManagerEnableFontDescriptors( + CFArrayRef descriptors, + bool enable, +); + +@ffi.Native( + symbol: 'CTFontManagerGetAutoActivationSetting', +) +external int _CTFontManagerGetAutoActivationSetting( + CFStringRef bundleIdentifier, +); + +CTFontManagerAutoActivationSetting CTFontManagerGetAutoActivationSetting( + CFStringRef bundleIdentifier, +) { + return CTFontManagerAutoActivationSetting.fromValue( + _CTFontManagerGetAutoActivationSetting(bundleIdentifier), + ); +} + +@ffi.Native( + symbol: 'CTFontManagerGetScopeForURL', +) +external int _CTFontManagerGetScopeForURL(CFURLRef fontURL); + +CTFontManagerScope CTFontManagerGetScopeForURL(CFURLRef fontURL) { + return CTFontManagerScope.fromValue(_CTFontManagerGetScopeForURL(fontURL)); +} + +@ffi.Native() +external bool CTFontManagerIsSupportedFont(CFURLRef fontURL); + +@ffi.Native< + ffi.Void Function( + CFArrayRef, + ffi.Uint32, + ffi.Bool, + ffi.Pointer, + ) +>(symbol: 'CTFontManagerRegisterFontDescriptors') +external void _CTFontManagerRegisterFontDescriptors( + CFArrayRef fontDescriptors, + int scope, + bool enabled, + ffi.Pointer registrationHandler, +); + +void CTFontManagerRegisterFontDescriptors( + CFArrayRef fontDescriptors, + CTFontManagerScope scope, + bool enabled, + objc.ObjCBlock, ffi.Bool)>? + registrationHandler, +) { + final _$$ref = registrationHandler?.ref; + return _CTFontManagerRegisterFontDescriptors( + fontDescriptors, + scope.value, + enabled, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native< + ffi.Void Function( + CFArrayRef, + ffi.Uint32, + ffi.Bool, + ffi.Pointer, + ) +>(symbol: 'CTFontManagerRegisterFontURLs') +external void _CTFontManagerRegisterFontURLs( + CFArrayRef fontURLs, + int scope, + bool enabled, + ffi.Pointer registrationHandler, +); + +void CTFontManagerRegisterFontURLs( + CFArrayRef fontURLs, + CTFontManagerScope scope, + bool enabled, + objc.ObjCBlock, ffi.Bool)>? + registrationHandler, +) { + final _$$ref = registrationHandler?.ref; + return _CTFontManagerRegisterFontURLs( + fontURLs, + scope.value, + enabled, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native)>( + symbol: 'CTFontManagerRegisterFontsForURL', +) +external bool _CTFontManagerRegisterFontsForURL( + CFURLRef fontURL, + int scope, + ffi.Pointer error, +); + +bool CTFontManagerRegisterFontsForURL( + CFURLRef fontURL, + CTFontManagerScope scope, + ffi.Pointer error, +) { + return _CTFontManagerRegisterFontsForURL(fontURL, scope.value, error); +} + +@Deprecated('Deprecated') +@ffi.Native)>( + symbol: 'CTFontManagerRegisterFontsForURLs', +) +external bool _CTFontManagerRegisterFontsForURLs( + CFArrayRef fontURLs, + int scope, + ffi.Pointer errors, +); + +bool CTFontManagerRegisterFontsForURLs( + CFArrayRef fontURLs, + CTFontManagerScope scope, + ffi.Pointer errors, +) { + return _CTFontManagerRegisterFontsForURLs(fontURLs, scope.value, errors); +} + +@ffi.Native< + ffi.Void Function( + CFArrayRef, + CFBundleRef, + ffi.Uint32, + ffi.Bool, + ffi.Pointer, + ) +>(symbol: 'CTFontManagerRegisterFontsWithAssetNames') +external void _CTFontManagerRegisterFontsWithAssetNames( + CFArrayRef fontAssetNames, + CFBundleRef bundle, + int scope, + bool enabled, + ffi.Pointer registrationHandler, +); + +void CTFontManagerRegisterFontsWithAssetNames( + CFArrayRef fontAssetNames, + CFBundleRef bundle, + CTFontManagerScope scope, + bool enabled, + objc.ObjCBlock, ffi.Bool)>? + registrationHandler, +) { + final _$$ref = registrationHandler?.ref; + return _CTFontManagerRegisterFontsWithAssetNames( + fontAssetNames, + bundle, + scope.value, + enabled, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@Deprecated( + 'Use CTFontManagerCreateFontDescriptorsFromData or CTFontManagerRegisterFontsForURL', +) +@ffi.Native)>() +external bool CTFontManagerRegisterGraphicsFont( + CGFontRef font, + ffi.Pointer error, +); + +@ffi.Native)>( + symbol: 'CTFontManagerRequestFonts', +) +external void _CTFontManagerRequestFonts( + CFArrayRef fontDescriptors, + ffi.Pointer completionHandler, +); + +void CTFontManagerRequestFonts( + CFArrayRef fontDescriptors, + objc.ObjCBlock)> completionHandler, +) { + final _$$ref = completionHandler.ref; + return _CTFontManagerRequestFonts(fontDescriptors, _$$ref.pointer); +} + +@ffi.Native( + symbol: 'CTFontManagerSetAutoActivationSetting', +) +external void _CTFontManagerSetAutoActivationSetting( + CFStringRef bundleIdentifier, + int setting, +); + +void CTFontManagerSetAutoActivationSetting( + CFStringRef bundleIdentifier, + CTFontManagerAutoActivationSetting setting, +) { + return _CTFontManagerSetAutoActivationSetting( + bundleIdentifier, + setting.value, + ); +} + +@ffi.Native< + ffi.Void Function(CFArrayRef, ffi.Uint32, ffi.Pointer) +>(symbol: 'CTFontManagerUnregisterFontDescriptors') +external void _CTFontManagerUnregisterFontDescriptors( + CFArrayRef fontDescriptors, + int scope, + ffi.Pointer registrationHandler, +); + +void CTFontManagerUnregisterFontDescriptors( + CFArrayRef fontDescriptors, + CTFontManagerScope scope, + objc.ObjCBlock, ffi.Bool)>? + registrationHandler, +) { + final _$$ref = registrationHandler?.ref; + return _CTFontManagerUnregisterFontDescriptors( + fontDescriptors, + scope.value, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native< + ffi.Void Function(CFArrayRef, ffi.Uint32, ffi.Pointer) +>(symbol: 'CTFontManagerUnregisterFontURLs') +external void _CTFontManagerUnregisterFontURLs( + CFArrayRef fontURLs, + int scope, + ffi.Pointer registrationHandler, +); + +void CTFontManagerUnregisterFontURLs( + CFArrayRef fontURLs, + CTFontManagerScope scope, + objc.ObjCBlock, ffi.Bool)>? + registrationHandler, +) { + final _$$ref = registrationHandler?.ref; + return _CTFontManagerUnregisterFontURLs( + fontURLs, + scope.value, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native)>( + symbol: 'CTFontManagerUnregisterFontsForURL', +) +external bool _CTFontManagerUnregisterFontsForURL( + CFURLRef fontURL, + int scope, + ffi.Pointer error, +); + +bool CTFontManagerUnregisterFontsForURL( + CFURLRef fontURL, + CTFontManagerScope scope, + ffi.Pointer error, +) { + return _CTFontManagerUnregisterFontsForURL(fontURL, scope.value, error); +} + +@Deprecated('Deprecated') +@ffi.Native)>( + symbol: 'CTFontManagerUnregisterFontsForURLs', +) +external bool _CTFontManagerUnregisterFontsForURLs( + CFArrayRef fontURLs, + int scope, + ffi.Pointer errors, +); + +bool CTFontManagerUnregisterFontsForURLs( + CFArrayRef fontURLs, + CTFontManagerScope scope, + ffi.Pointer errors, +) { + return _CTFontManagerUnregisterFontsForURLs(fontURLs, scope.value, errors); +} + +@Deprecated('Use the API corresponding to the one used to register the font') +@ffi.Native)>() +external bool CTFontManagerUnregisterGraphicsFont( + CGFontRef font, + ffi.Pointer error, +); + +@ffi.Native() +external void CTFrameDraw(CTFrameRef frame, CGContextRef context); + +@ffi.Native() +external CFDictionaryRef CTFrameGetFrameAttributes(CTFrameRef frame); + +@ffi.Native)>() +external void CTFrameGetLineOrigins( + CTFrameRef frame, + CFRange range, + ffi.Pointer origins, +); + +@ffi.Native() +external CFArrayRef CTFrameGetLines(CTFrameRef frame); + +@ffi.Native() +external CGPathRef CTFrameGetPath(CTFrameRef frame); + +@ffi.Native() +external CFRange CTFrameGetStringRange(CTFrameRef frame); + +@ffi.Native() +external int CTFrameGetTypeID(); + +@ffi.Native() +external CFRange CTFrameGetVisibleStringRange(CTFrameRef frame); + +@ffi.Native< + CTFrameRef Function(CTFramesetterRef, CFRange, CGPathRef, CFDictionaryRef) +>() +external CTFrameRef CTFramesetterCreateFrame( + CTFramesetterRef framesetter, + CFRange stringRange, + CGPathRef path, + CFDictionaryRef frameAttributes, +); + +@ffi.Native() +external CTFramesetterRef CTFramesetterCreateWithAttributedString( + CFAttributedStringRef attrString, +); + +@ffi.Native() +external CTFramesetterRef CTFramesetterCreateWithTypesetter( + CTTypesetterRef typesetter, +); + +@ffi.Native() +external int CTFramesetterGetTypeID(); + +@ffi.Native() +external CTTypesetterRef CTFramesetterGetTypesetter( + CTFramesetterRef framesetter, +); + +@ffi.Native< + objc.CGSize Function( + CTFramesetterRef, + CFRange, + CFDictionaryRef, + objc.CGSize, + ffi.Pointer, + ) +>() +external objc.CGSize CTFramesetterSuggestFrameSizeWithConstraints( + CTFramesetterRef framesetter, + CFRange stringRange, + CFDictionaryRef frameAttributes, + objc.CGSize constraints, + ffi.Pointer fitRange, +); + +@Deprecated('Use -[NSProcessInfo operatingSystemVersion]') +@ffi.Native() +external int CTGetCoreTextVersion(); + +@ffi.Native( + symbol: 'CTGlyphInfoCreateWithCharacterIdentifier', +) +external CTGlyphInfoRef _CTGlyphInfoCreateWithCharacterIdentifier( + int cid, + int collection, + CFStringRef baseString, +); + +CTGlyphInfoRef CTGlyphInfoCreateWithCharacterIdentifier( + DartCGFontIndex cid, + CTCharacterCollection collection, + CFStringRef baseString, +) { + return _CTGlyphInfoCreateWithCharacterIdentifier( + cid, + collection.value, + baseString, + ); +} + +@ffi.Native() +external CTGlyphInfoRef CTGlyphInfoCreateWithGlyph( + int glyph, + CTFontRef font, + CFStringRef baseString, +); + +@ffi.Native() +external CTGlyphInfoRef CTGlyphInfoCreateWithGlyphName( + CFStringRef glyphName, + CTFontRef font, + CFStringRef baseString, +); + +@ffi.Native( + symbol: 'CTGlyphInfoGetCharacterCollection', +) +external int _CTGlyphInfoGetCharacterCollection(CTGlyphInfoRef glyphInfo); + +CTCharacterCollection CTGlyphInfoGetCharacterCollection( + CTGlyphInfoRef glyphInfo, +) { + return CTCharacterCollection.fromValue( + _CTGlyphInfoGetCharacterCollection(glyphInfo), + ); +} + +@ffi.Native() +external int CTGlyphInfoGetCharacterIdentifier(CTGlyphInfoRef glyphInfo); + +@ffi.Native() +external int CTGlyphInfoGetGlyph(CTGlyphInfoRef glyphInfo); + +@ffi.Native() +external CFStringRef CTGlyphInfoGetGlyphName(CTGlyphInfoRef glyphInfo); + +@ffi.Native() +external int CTGlyphInfoGetTypeID(); + +@ffi.Native() +external CTLineRef CTLineCreateJustifiedLine( + CTLineRef line, + double justificationFactor, + double justificationWidth, +); + +@ffi.Native( + symbol: 'CTLineCreateTruncatedLine', +) +external CTLineRef _CTLineCreateTruncatedLine( + CTLineRef line, + double width, + int truncationType, + CTLineRef truncationToken, +); + +CTLineRef CTLineCreateTruncatedLine( + CTLineRef line, + double width, + CTLineTruncationType truncationType, + CTLineRef truncationToken, +) { + return _CTLineCreateTruncatedLine( + line, + width, + truncationType.value, + truncationToken, + ); +} + +@ffi.Native() +external CTLineRef CTLineCreateWithAttributedString( + CFAttributedStringRef attrString, +); + +@ffi.Native() +external void CTLineDraw(CTLineRef line, CGContextRef context); + +@ffi.Native)>( + symbol: 'CTLineEnumerateCaretOffsets', +) +external void _CTLineEnumerateCaretOffsets( + CTLineRef line, + ffi.Pointer block, +); + +void CTLineEnumerateCaretOffsets( + CTLineRef line, + objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + block, +) { + final _$$ref = block.ref; + return _CTLineEnumerateCaretOffsets(line, _$$ref.pointer); +} + +@ffi.Native() +external objc.CGRect CTLineGetBoundsWithOptions(CTLineRef line, int options); + +@ffi.Native() +external int CTLineGetGlyphCount(CTLineRef line); + +@ffi.Native() +external CFArrayRef CTLineGetGlyphRuns(CTLineRef line); + +@ffi.Native() +external objc.CGRect CTLineGetImageBounds(CTLineRef line, CGContextRef context); + +@ffi.Native)>() +external double CTLineGetOffsetForStringIndex( + CTLineRef line, + int charIndex, + ffi.Pointer secondaryOffset, +); + +@ffi.Native() +external double CTLineGetPenOffsetForFlush( + CTLineRef line, + double flushFactor, + double flushWidth, +); + +@ffi.Native() +external int CTLineGetStringIndexForPosition( + CTLineRef line, + objc.CGPoint position, +); + +@ffi.Native() +external CFRange CTLineGetStringRange(CTLineRef line); + +@ffi.Native() +external double CTLineGetTrailingWhitespaceWidth(CTLineRef line); + +@ffi.Native() +external int CTLineGetTypeID(); + +@ffi.Native< + ffi.Double Function( + CTLineRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external double CTLineGetTypographicBounds( + CTLineRef line, + ffi.Pointer ascent, + ffi.Pointer descent, + ffi.Pointer leading, +); + +@ffi.Native< + CTParagraphStyleRef Function(ffi.Pointer, ffi.Size) +>() +external CTParagraphStyleRef CTParagraphStyleCreate( + ffi.Pointer settings, + int settingCount, +); + +@ffi.Native() +external CTParagraphStyleRef CTParagraphStyleCreateCopy( + CTParagraphStyleRef paragraphStyle, +); + +@ffi.Native() +external int CTParagraphStyleGetTypeID(); + +@ffi.Native< + ffi.Bool Function( + CTParagraphStyleRef, + ffi.Uint32, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'CTParagraphStyleGetValueForSpecifier') +external bool _CTParagraphStyleGetValueForSpecifier( + CTParagraphStyleRef paragraphStyle, + int spec, + int valueBufferSize, + ffi.Pointer valueBuffer, +); + +bool CTParagraphStyleGetValueForSpecifier( + CTParagraphStyleRef paragraphStyle, + CTParagraphStyleSpecifier spec, + int valueBufferSize, + ffi.Pointer valueBuffer, +) { + return _CTParagraphStyleGetValueForSpecifier( + paragraphStyle, + spec.value, + valueBufferSize, + valueBuffer, + ); +} + +@ffi.Native< + CTRubyAnnotationRef Function( + ffi.Uint8, + ffi.Uint8, + CGFloat, + ffi.Pointer, + ) +>(symbol: 'CTRubyAnnotationCreate') +external CTRubyAnnotationRef _CTRubyAnnotationCreate( + int alignment, + int overhang, + double sizeFactor, + ffi.Pointer text, +); + +CTRubyAnnotationRef CTRubyAnnotationCreate( + CTRubyAlignment alignment, + CTRubyOverhang overhang, + DartCGFloat sizeFactor, + ffi.Pointer text, +) { + return _CTRubyAnnotationCreate( + alignment.value, + overhang.value, + sizeFactor, + text, + ); +} + +@ffi.Native() +external CTRubyAnnotationRef CTRubyAnnotationCreateCopy( + CTRubyAnnotationRef rubyAnnotation, +); + +@ffi.Native< + CTRubyAnnotationRef Function( + ffi.Uint8, + ffi.Uint8, + ffi.Uint8, + CFStringRef, + CFDictionaryRef, + ) +>(symbol: 'CTRubyAnnotationCreateWithAttributes') +external CTRubyAnnotationRef _CTRubyAnnotationCreateWithAttributes( + int alignment, + int overhang, + int position, + CFStringRef string, + CFDictionaryRef attributes, +); + +CTRubyAnnotationRef CTRubyAnnotationCreateWithAttributes( + CTRubyAlignment alignment, + CTRubyOverhang overhang, + CTRubyPosition position, + CFStringRef string, + CFDictionaryRef attributes, +) { + return _CTRubyAnnotationCreateWithAttributes( + alignment.value, + overhang.value, + position.value, + string, + attributes, + ); +} + +@ffi.Native( + symbol: 'CTRubyAnnotationGetAlignment', +) +external int _CTRubyAnnotationGetAlignment(CTRubyAnnotationRef rubyAnnotation); + +CTRubyAlignment CTRubyAnnotationGetAlignment( + CTRubyAnnotationRef rubyAnnotation, +) { + return CTRubyAlignment.fromValue( + _CTRubyAnnotationGetAlignment(rubyAnnotation), + ); +} + +@ffi.Native( + symbol: 'CTRubyAnnotationGetOverhang', +) +external int _CTRubyAnnotationGetOverhang(CTRubyAnnotationRef rubyAnnotation); + +CTRubyOverhang CTRubyAnnotationGetOverhang(CTRubyAnnotationRef rubyAnnotation) { + return CTRubyOverhang.fromValue(_CTRubyAnnotationGetOverhang(rubyAnnotation)); +} + +@ffi.Native() +external double CTRubyAnnotationGetSizeFactor( + CTRubyAnnotationRef rubyAnnotation, +); + +@ffi.Native( + symbol: 'CTRubyAnnotationGetTextForPosition', +) +external CFStringRef _CTRubyAnnotationGetTextForPosition( + CTRubyAnnotationRef rubyAnnotation, + int position, +); + +CFStringRef CTRubyAnnotationGetTextForPosition( + CTRubyAnnotationRef rubyAnnotation, + CTRubyPosition position, +) { + return _CTRubyAnnotationGetTextForPosition(rubyAnnotation, position.value); +} + +@ffi.Native() +external int CTRubyAnnotationGetTypeID(); + +@ffi.Native< + CTRunDelegateRef Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external CTRunDelegateRef CTRunDelegateCreate( + ffi.Pointer callbacks, + ffi.Pointer refCon, +); + +@ffi.Native Function(CTRunDelegateRef)>() +external ffi.Pointer CTRunDelegateGetRefCon( + CTRunDelegateRef runDelegate, +); + +@ffi.Native() +external int CTRunDelegateGetTypeID(); + +@ffi.Native() +external void CTRunDraw(CTRunRef run, CGContextRef context, CFRange range); + +@ffi.Native)>() +external void CTRunGetAdvances( + CTRunRef run, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native Function(CTRunRef)>() +external ffi.Pointer CTRunGetAdvancesPtr(CTRunRef run); + +@ffi.Native() +external CFDictionaryRef CTRunGetAttributes(CTRunRef run); + +@ffi.Native< + ffi.Void Function( + CTRunRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CTRunGetBaseAdvancesAndOrigins( + CTRunRef runRef, + CFRange range, + ffi.Pointer advancesBuffer, + ffi.Pointer originsBuffer, +); + +@ffi.Native() +external int CTRunGetGlyphCount(CTRunRef run); + +@ffi.Native)>() +external void CTRunGetGlyphs( + CTRunRef run, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native Function(CTRunRef)>() +external ffi.Pointer CTRunGetGlyphsPtr(CTRunRef run); + +@ffi.Native() +external objc.CGRect CTRunGetImageBounds( + CTRunRef run, + CGContextRef context, + CFRange range, +); + +@ffi.Native)>() +external void CTRunGetPositions( + CTRunRef run, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native Function(CTRunRef)>() +external ffi.Pointer CTRunGetPositionsPtr(CTRunRef run); + +@ffi.Native() +external int CTRunGetStatus(CTRunRef run); + +@ffi.Native)>() +external void CTRunGetStringIndices( + CTRunRef run, + CFRange range, + ffi.Pointer buffer, +); + +@ffi.Native Function(CTRunRef)>() +external ffi.Pointer CTRunGetStringIndicesPtr(CTRunRef run); + +@ffi.Native() +external CFRange CTRunGetStringRange(CTRunRef run); + +@ffi.Native() +external CGAffineTransform CTRunGetTextMatrix(CTRunRef run); + +@ffi.Native() +external int CTRunGetTypeID(); + +@ffi.Native< + ffi.Double Function( + CTRunRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external double CTRunGetTypographicBounds( + CTRunRef run, + CFRange range, + ffi.Pointer ascent, + ffi.Pointer descent, + ffi.Pointer leading, +); + +@ffi.Native( + symbol: 'CTTextTabCreate', +) +external CTTextTabRef _CTTextTabCreate( + int alignment, + double location, + CFDictionaryRef options, +); + +CTTextTabRef CTTextTabCreate( + CTTextAlignment alignment, + double location, + CFDictionaryRef options, +) { + return _CTTextTabCreate(alignment.value, location, options); +} + +@ffi.Native(symbol: 'CTTextTabGetAlignment') +external int _CTTextTabGetAlignment(CTTextTabRef tab); + +CTTextAlignment CTTextTabGetAlignment(CTTextTabRef tab) { + return CTTextAlignment.fromValue(_CTTextTabGetAlignment(tab)); +} + +@ffi.Native() +external double CTTextTabGetLocation(CTTextTabRef tab); + +@ffi.Native() +external CFDictionaryRef CTTextTabGetOptions(CTTextTabRef tab); + +@ffi.Native() +external int CTTextTabGetTypeID(); + +@ffi.Native() +external CTLineRef CTTypesetterCreateLine( + CTTypesetterRef typesetter, + CFRange stringRange, +); + +@ffi.Native() +external CTLineRef CTTypesetterCreateLineWithOffset( + CTTypesetterRef typesetter, + CFRange stringRange, + double offset, +); + +@ffi.Native() +external CTTypesetterRef CTTypesetterCreateWithAttributedString( + CFAttributedStringRef string, +); + +@ffi.Native() +external CTTypesetterRef CTTypesetterCreateWithAttributedStringAndOptions( + CFAttributedStringRef string, + CFDictionaryRef options, +); + +@ffi.Native() +external int CTTypesetterGetTypeID(); + +@ffi.Native() +external int CTTypesetterSuggestClusterBreak( + CTTypesetterRef typesetter, + int startIndex, + double width, +); + +@ffi.Native< + CFIndex Function(CTTypesetterRef, CFIndex, ffi.Double, ffi.Double) +>() +external int CTTypesetterSuggestClusterBreakWithOffset( + CTTypesetterRef typesetter, + int startIndex, + double width, + double offset, +); + +@ffi.Native() +external int CTTypesetterSuggestLineBreak( + CTTypesetterRef typesetter, + int startIndex, + double width, +); + +@ffi.Native< + CFIndex Function(CTTypesetterRef, CFIndex, ffi.Double, ffi.Double) +>() +external int CTTypesetterSuggestLineBreakWithOffset( + CTTypesetterRef typesetter, + int startIndex, + double width, + double offset, +); + +@ffi.Native< + CFTypeRef Function(CVBufferRef, CFStringRef, ffi.Pointer) +>() +external CFTypeRef CVBufferCopyAttachment( + CVBufferRef buffer, + CFStringRef key, + ffi.Pointer attachmentMode, +); + +@ffi.Native( + symbol: 'CVBufferCopyAttachments', +) +external CFDictionaryRef _CVBufferCopyAttachments( + CVBufferRef buffer, + int attachmentMode, +); + +CFDictionaryRef CVBufferCopyAttachments( + CVBufferRef buffer, + CVAttachmentMode attachmentMode, +) { + return _CVBufferCopyAttachments(buffer, attachmentMode.value); +} + +@Deprecated('Deprecated') +@ffi.Native< + CFTypeRef Function(CVBufferRef, CFStringRef, ffi.Pointer) +>() +external CFTypeRef CVBufferGetAttachment( + CVBufferRef buffer, + CFStringRef key, + ffi.Pointer attachmentMode, +); + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'CVBufferGetAttachments', +) +external CFDictionaryRef _CVBufferGetAttachments( + CVBufferRef buffer, + int attachmentMode, +); + +CFDictionaryRef CVBufferGetAttachments( + CVBufferRef buffer, + CVAttachmentMode attachmentMode, +) { + return _CVBufferGetAttachments(buffer, attachmentMode.value); +} + +@ffi.Native() +external int CVBufferHasAttachment(CVBufferRef buffer, CFStringRef key); + +@ffi.Native() +external void CVBufferPropagateAttachments( + CVBufferRef sourceBuffer, + CVBufferRef destinationBuffer, +); + +@ffi.Native() +external void CVBufferRelease(CVBufferRef buffer); + +@ffi.Native() +external void CVBufferRemoveAllAttachments(CVBufferRef buffer); + +@ffi.Native() +external void CVBufferRemoveAttachment(CVBufferRef buffer, CFStringRef key); + +@ffi.Native() +external CVBufferRef CVBufferRetain(CVBufferRef buffer); + +@ffi.Native( + symbol: 'CVBufferSetAttachment', +) +external void _CVBufferSetAttachment( + CVBufferRef buffer, + CFStringRef key, + CFTypeRef value, + int attachmentMode, +); + +void CVBufferSetAttachment( + CVBufferRef buffer, + CFStringRef key, + CFTypeRef value, + CVAttachmentMode attachmentMode, +) { + return _CVBufferSetAttachment(buffer, key, value, attachmentMode.value); +} + +@ffi.Native( + symbol: 'CVBufferSetAttachments', +) +external void _CVBufferSetAttachments( + CVBufferRef buffer, + CFDictionaryRef theAttachments, + int attachmentMode, +); + +void CVBufferSetAttachments( + CVBufferRef buffer, + CFDictionaryRef theAttachments, + CVAttachmentMode attachmentMode, +) { + return _CVBufferSetAttachments(buffer, theAttachments, attachmentMode.value); +} + +@ffi.Native() +external int CVColorPrimariesGetIntegerCodePointForString( + CFStringRef colorPrimariesString, +); + +@ffi.Native() +external CFStringRef CVColorPrimariesGetStringForIntegerCodePoint( + int colorPrimariesCodePoint, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native)>() +external int CVDisplayLinkCreateWithActiveCGDisplays( + ffi.Pointer displayLinkOut, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function(CGDirectDisplayID, ffi.Pointer) +>() +external int CVDisplayLinkCreateWithCGDisplay( + int displayID, + ffi.Pointer displayLinkOut, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function( + ffi.Pointer, + CFIndex, + ffi.Pointer, + ) +>() +external int CVDisplayLinkCreateWithCGDisplays( + ffi.Pointer displayArray, + int count, + ffi.Pointer displayLinkOut, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function(CGOpenGLDisplayMask, ffi.Pointer) +>() +external int CVDisplayLinkCreateWithOpenGLDisplayMask( + int mask, + ffi.Pointer displayLinkOut, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external double CVDisplayLinkGetActualOutputVideoRefreshPeriod( + CVDisplayLinkRef displayLink, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkGetCurrentCGDisplay(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native)>() +external int CVDisplayLinkGetCurrentTime( + CVDisplayLinkRef displayLink, + ffi.Pointer outTime, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external CVTime CVDisplayLinkGetNominalOutputVideoRefreshPeriod( + CVDisplayLinkRef displayLink, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external CVTime CVDisplayLinkGetOutputVideoLatency( + CVDisplayLinkRef displayLink, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkGetTypeID(); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkIsRunning(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external void CVDisplayLinkRelease(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external CVDisplayLinkRef CVDisplayLinkRetain(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkSetCurrentCGDisplay( + CVDisplayLinkRef displayLink, + int displayID, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function(CVDisplayLinkRef, CGLContextObj, CGLPixelFormatObj) +>() +external int CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext( + CVDisplayLinkRef displayLink, + CGLContextObj cglContext, + CGLPixelFormatObj cglPixelFormat, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function( + CVDisplayLinkRef, + CVDisplayLinkOutputCallback, + ffi.Pointer, + ) +>() +external int CVDisplayLinkSetOutputCallback( + CVDisplayLinkRef displayLink, + CVDisplayLinkOutputCallback callback, + ffi.Pointer userInfo, +); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native( + symbol: 'CVDisplayLinkSetOutputHandler', +) +external int _CVDisplayLinkSetOutputHandler( + CVDisplayLinkRef displayLink, + CVDisplayLinkOutputHandler handler, +); + +DartCVReturn CVDisplayLinkSetOutputHandler( + CVDisplayLinkRef displayLink, + DartCVDisplayLinkOutputHandler handler, +) { + final _$$ref = handler.ref; + return _CVDisplayLinkSetOutputHandler(displayLink, _$$ref.pointer); +} + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkStart(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native() +external int CVDisplayLinkStop(CVDisplayLinkRef displayLink); + +@Deprecated( + 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', +) +@ffi.Native< + CVReturn Function( + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CVDisplayLinkTranslateTime( + CVDisplayLinkRef displayLink, + ffi.Pointer inTime, + ffi.Pointer outTime, +); + +@ffi.Native() +external int CVGetCurrentHostTime(); + +@ffi.Native() +external double CVGetHostClockFrequency(); + +@ffi.Native() +external int CVGetHostClockMinimumTimeDelta(); + +@ffi.Native() +external CGColorSpaceRef CVImageBufferCreateColorSpaceFromAttachments( + CFDictionaryRef attachments, +); + +@ffi.Native() +external objc.CGRect CVImageBufferGetCleanRect(CVImageBufferRef imageBuffer); + +@ffi.Native() +external CGColorSpaceRef CVImageBufferGetColorSpace( + CVImageBufferRef imageBuffer, +); + +@ffi.Native() +external objc.CGSize CVImageBufferGetDisplaySize(CVImageBufferRef imageBuffer); + +@ffi.Native() +external objc.CGSize CVImageBufferGetEncodedSize(CVImageBufferRef imageBuffer); + +@ffi.Native() +external int CVImageBufferIsFlipped(CVImageBufferRef imageBuffer); + +@ffi.Native() +external int CVIsCompressedPixelFormatAvailable(int pixelFormatType); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'CVMetalBufferCacheCreate') +external int _CVMetalBufferCacheCreate( + CFAllocatorRef allocator, + CFDictionaryRef cacheAttributes, + ffi.Pointer metalDevice, + ffi.Pointer cacheOut, +); + +DartCVReturn CVMetalBufferCacheCreate( + CFAllocatorRef allocator, + CFDictionaryRef cacheAttributes, + MTLDevice metalDevice, + ffi.Pointer cacheOut, +) { + final _$$ref = metalDevice.ref; + return _CVMetalBufferCacheCreate( + allocator, + cacheAttributes, + _$$ref.pointer, + cacheOut, + ); +} + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVMetalBufferCacheRef, + CVImageBufferRef, + ffi.Pointer, + ) +>() +external int CVMetalBufferCacheCreateBufferFromImage( + CFAllocatorRef allocator, + CVMetalBufferCacheRef bufferCache, + CVImageBufferRef imageBuffer, + ffi.Pointer bufferOut, +); + +@ffi.Native() +external void CVMetalBufferCacheFlush( + CVMetalBufferCacheRef bufferCache, + int options, +); + +@ffi.Native() +external int CVMetalBufferCacheGetTypeID(); + +@ffi.Native Function(CVMetalBufferRef)>( + symbol: 'CVMetalBufferGetBuffer', +) +external ffi.Pointer _CVMetalBufferGetBuffer( + CVMetalBufferRef buffer, +); + +MTLBuffer? CVMetalBufferGetBuffer(CVMetalBufferRef buffer) { + return _CVMetalBufferGetBuffer(buffer).address == 0 + ? null + : MTLBuffer.fromPointer( + _CVMetalBufferGetBuffer(buffer), + retain: true, + release: true, + ); +} + +@ffi.Native() +external int CVMetalBufferGetTypeID(); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CFDictionaryRef, + ffi.Pointer, + CFDictionaryRef, + ffi.Pointer, + ) +>(symbol: 'CVMetalTextureCacheCreate') +external int _CVMetalTextureCacheCreate( + CFAllocatorRef allocator, + CFDictionaryRef cacheAttributes, + ffi.Pointer metalDevice, + CFDictionaryRef textureAttributes, + ffi.Pointer cacheOut, +); + +DartCVReturn CVMetalTextureCacheCreate( + CFAllocatorRef allocator, + CFDictionaryRef cacheAttributes, + MTLDevice metalDevice, + CFDictionaryRef textureAttributes, + ffi.Pointer cacheOut, +) { + final _$$ref = metalDevice.ref; + return _CVMetalTextureCacheCreate( + allocator, + cacheAttributes, + _$$ref.pointer, + textureAttributes, + cacheOut, + ); +} + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVMetalTextureCacheRef, + CVImageBufferRef, + CFDictionaryRef, + NSUInteger, + ffi.Size, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'CVMetalTextureCacheCreateTextureFromImage') +external int _CVMetalTextureCacheCreateTextureFromImage( + CFAllocatorRef allocator, + CVMetalTextureCacheRef textureCache, + CVImageBufferRef sourceImage, + CFDictionaryRef textureAttributes, + int pixelFormat, + int width, + int height, + int planeIndex, + ffi.Pointer textureOut, +); + +DartCVReturn CVMetalTextureCacheCreateTextureFromImage( + CFAllocatorRef allocator, + CVMetalTextureCacheRef textureCache, + CVImageBufferRef sourceImage, + CFDictionaryRef textureAttributes, + MTLPixelFormat pixelFormat, + int width, + int height, + int planeIndex, + ffi.Pointer textureOut, +) { + return _CVMetalTextureCacheCreateTextureFromImage( + allocator, + textureCache, + sourceImage, + textureAttributes, + pixelFormat.value, + width, + height, + planeIndex, + textureOut, + ); +} + +@ffi.Native() +external void CVMetalTextureCacheFlush( + CVMetalTextureCacheRef textureCache, + int options, +); + +@ffi.Native() +external int CVMetalTextureCacheGetTypeID(); + +@ffi.Native< + ffi.Void Function( + CVMetalTextureRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CVMetalTextureGetCleanTexCoords( + CVMetalTextureRef image, + ffi.Pointer lowerLeft, + ffi.Pointer lowerRight, + ffi.Pointer upperRight, + ffi.Pointer upperLeft, +); + +@ffi.Native Function(CVMetalTextureRef)>( + symbol: 'CVMetalTextureGetTexture', +) +external ffi.Pointer _CVMetalTextureGetTexture( + CVMetalTextureRef image, +); + +MTLTexture? CVMetalTextureGetTexture(CVMetalTextureRef image) { + return _CVMetalTextureGetTexture(image).address == 0 + ? null + : MTLTexture.fromPointer( + _CVMetalTextureGetTexture(image), + retain: true, + release: true, + ); +} + +@ffi.Native() +external int CVMetalTextureGetTypeID(); + +@ffi.Native() +external int CVMetalTextureIsFlipped(CVMetalTextureRef image); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function(CVOpenGLBufferRef, CGLContextObj, GLenum, GLint, GLint) +>() +external int CVOpenGLBufferAttach( + CVOpenGLBufferRef openGLBuffer, + CGLContextObj cglContext, + int face, + int level, + int screen, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + ffi.Size, + ffi.Size, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVOpenGLBufferCreate( + CFAllocatorRef allocator, + int width, + int height, + CFDictionaryRef attributes, + ffi.Pointer bufferOut, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CFDictionaryRef CVOpenGLBufferGetAttributes( + CVOpenGLBufferRef openGLBuffer, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLBufferGetTypeID(); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CFDictionaryRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVOpenGLBufferPoolCreate( + CFAllocatorRef allocator, + CFDictionaryRef poolAttributes, + CFDictionaryRef openGLBufferAttributes, + ffi.Pointer poolOut, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVOpenGLBufferPoolRef, + ffi.Pointer, + ) +>() +external int CVOpenGLBufferPoolCreateOpenGLBuffer( + CFAllocatorRef allocator, + CVOpenGLBufferPoolRef openGLBufferPool, + ffi.Pointer openGLBufferOut, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CFDictionaryRef CVOpenGLBufferPoolGetAttributes( + CVOpenGLBufferPoolRef pool, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CFDictionaryRef CVOpenGLBufferPoolGetOpenGLBufferAttributes( + CVOpenGLBufferPoolRef pool, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLBufferPoolGetTypeID(); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CVOpenGLBufferPoolRelease(CVOpenGLBufferPoolRef openGLBufferPool); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CVOpenGLBufferPoolRef CVOpenGLBufferPoolRetain( + CVOpenGLBufferPoolRef openGLBufferPool, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CVOpenGLBufferRelease(CVOpenGLBufferRef buffer); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CVOpenGLBufferRef CVOpenGLBufferRetain(CVOpenGLBufferRef buffer); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CFDictionaryRef, + CGLContextObj, + CGLPixelFormatObj, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVOpenGLTextureCacheCreate( + CFAllocatorRef allocator, + CFDictionaryRef cacheAttributes, + CGLContextObj cglContext, + CGLPixelFormatObj cglPixelFormat, + CFDictionaryRef textureAttributes, + ffi.Pointer cacheOut, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVOpenGLTextureCacheRef, + CVImageBufferRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVOpenGLTextureCacheCreateTextureFromImage( + CFAllocatorRef allocator, + CVOpenGLTextureCacheRef textureCache, + CVImageBufferRef sourceImage, + CFDictionaryRef attributes, + ffi.Pointer textureOut, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CVOpenGLTextureCacheFlush( + CVOpenGLTextureCacheRef textureCache, + int options, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLTextureCacheGetTypeID(); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CVOpenGLTextureCacheRelease(CVOpenGLTextureCacheRef textureCache); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CVOpenGLTextureCacheRef CVOpenGLTextureCacheRetain( + CVOpenGLTextureCacheRef textureCache, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native< + ffi.Void Function( + CVOpenGLTextureRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CVOpenGLTextureGetCleanTexCoords( + CVOpenGLTextureRef image, + ffi.Pointer lowerLeft, + ffi.Pointer lowerRight, + ffi.Pointer upperRight, + ffi.Pointer upperLeft, +); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLTextureGetName(CVOpenGLTextureRef image); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLTextureGetTarget(CVOpenGLTextureRef image); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLTextureGetTypeID(); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external int CVOpenGLTextureIsFlipped(CVOpenGLTextureRef image); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external void CVOpenGLTextureRelease(CVOpenGLTextureRef texture); + +@Deprecated( + 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', +) +@ffi.Native() +external CVOpenGLTextureRef CVOpenGLTextureRetain(CVOpenGLTextureRef texture); + +@ffi.Native() +external CFDictionaryRef CVPixelBufferCopyCreationAttributes( + CVPixelBufferRef pixelBuffer, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + ffi.Size, + ffi.Size, + OSType, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferCreate( + CFAllocatorRef allocator, + int width, + int height, + int pixelFormatType, + CFDictionaryRef pixelBufferAttributes, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native< + CVReturn Function(CFAllocatorRef, CFArrayRef, ffi.Pointer) +>() +external int CVPixelBufferCreateResolvedAttributesDictionary( + CFAllocatorRef allocator, + CFArrayRef attributes, + ffi.Pointer resolvedDictionaryOut, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + ffi.Size, + ffi.Size, + OSType, + ffi.Pointer, + ffi.Size, + CVPixelBufferReleaseBytesCallback, + ffi.Pointer, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferCreateWithBytes( + CFAllocatorRef allocator, + int width, + int height, + int pixelFormatType, + ffi.Pointer baseAddress, + int bytesPerRow, + CVPixelBufferReleaseBytesCallback releaseCallback, + ffi.Pointer releaseRefCon, + CFDictionaryRef pixelBufferAttributes, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + IOSurfaceRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferCreateWithIOSurface( + CFAllocatorRef allocator, + IOSurfaceRef surface, + CFDictionaryRef pixelBufferAttributes, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + ffi.Size, + ffi.Size, + OSType, + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CVPixelBufferReleasePlanarBytesCallback, + ffi.Pointer, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferCreateWithPlanarBytes( + CFAllocatorRef allocator, + int width, + int height, + int pixelFormatType, + ffi.Pointer dataPtr, + int dataSize, + int numberOfPlanes, + ffi.Pointer> planeBaseAddress, + ffi.Pointer planeWidth, + ffi.Pointer planeHeight, + ffi.Pointer planeBytesPerRow, + CVPixelBufferReleasePlanarBytesCallback releaseCallback, + ffi.Pointer releaseRefCon, + CFDictionaryRef pixelBufferAttributes, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native() +external int CVPixelBufferFillExtendedPixels(CVPixelBufferRef pixelBuffer); + +@ffi.Native Function(CVPixelBufferRef)>() +external ffi.Pointer CVPixelBufferGetBaseAddress( + CVPixelBufferRef pixelBuffer, +); + +@ffi.Native Function(CVPixelBufferRef, ffi.Size)>() +external ffi.Pointer CVPixelBufferGetBaseAddressOfPlane( + CVPixelBufferRef pixelBuffer, + int planeIndex, +); + +@ffi.Native() +external int CVPixelBufferGetBytesPerRow(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetBytesPerRowOfPlane( + CVPixelBufferRef pixelBuffer, + int planeIndex, +); + +@ffi.Native() +external int CVPixelBufferGetDataSize(CVPixelBufferRef pixelBuffer); + +@ffi.Native< + ffi.Void Function( + CVPixelBufferRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void CVPixelBufferGetExtendedPixels( + CVPixelBufferRef pixelBuffer, + ffi.Pointer extraColumnsOnLeft, + ffi.Pointer extraColumnsOnRight, + ffi.Pointer extraRowsOnTop, + ffi.Pointer extraRowsOnBottom, +); + +@ffi.Native() +external int CVPixelBufferGetHeight(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetHeightOfPlane( + CVPixelBufferRef pixelBuffer, + int planeIndex, +); + +@ffi.Native() +external IOSurfaceRef CVPixelBufferGetIOSurface(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetPixelFormatType(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetPlaneCount(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetTypeID(); + +@ffi.Native() +external int CVPixelBufferGetWidth(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferGetWidthOfPlane( + CVPixelBufferRef pixelBuffer, + int planeIndex, +); + +@ffi.Native() +external int CVPixelBufferIsCompatibleWithAttributes( + CVPixelBufferRef pixelBuffer, + CFDictionaryRef attributes, +); + +@ffi.Native() +external int CVPixelBufferIsPlanar(CVPixelBufferRef pixelBuffer); + +@ffi.Native() +external int CVPixelBufferLockBaseAddress( + CVPixelBufferRef pixelBuffer, + int lockFlags, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CFDictionaryRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferPoolCreate( + CFAllocatorRef allocator, + CFDictionaryRef poolAttributes, + CFDictionaryRef pixelBufferAttributes, + ffi.Pointer poolOut, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVPixelBufferPoolRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferPoolCreatePixelBuffer( + CFAllocatorRef allocator, + CVPixelBufferPoolRef pixelBufferPool, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native< + CVReturn Function( + CFAllocatorRef, + CVPixelBufferPoolRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int CVPixelBufferPoolCreatePixelBufferWithAuxAttributes( + CFAllocatorRef allocator, + CVPixelBufferPoolRef pixelBufferPool, + CFDictionaryRef auxAttributes, + ffi.Pointer pixelBufferOut, +); + +@ffi.Native() +external void CVPixelBufferPoolFlush(CVPixelBufferPoolRef pool, int options); + +@ffi.Native() +external CFDictionaryRef CVPixelBufferPoolGetAttributes( + CVPixelBufferPoolRef pool, +); + +@ffi.Native() +external CFDictionaryRef CVPixelBufferPoolGetPixelBufferAttributes( + CVPixelBufferPoolRef pool, +); + +@ffi.Native() +external int CVPixelBufferPoolGetTypeID(); + +@ffi.Native() +external void CVPixelBufferPoolRelease(CVPixelBufferPoolRef pixelBufferPool); + +@ffi.Native() +external CVPixelBufferPoolRef CVPixelBufferPoolRetain( + CVPixelBufferPoolRef pixelBufferPool, +); + +@ffi.Native() +external void CVPixelBufferRelease(CVPixelBufferRef texture); + +@ffi.Native() +external CVPixelBufferRef CVPixelBufferRetain(CVPixelBufferRef texture); + +@ffi.Native() +external int CVPixelBufferUnlockBaseAddress( + CVPixelBufferRef pixelBuffer, + int unlockFlags, +); + +@ffi.Native() +external CFArrayRef CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes( + CFAllocatorRef allocator, +); + +@ffi.Native() +external CFDictionaryRef CVPixelFormatDescriptionCreateWithPixelFormatType( + CFAllocatorRef allocator, + int pixelFormat, +); + +@ffi.Native() +external void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType( + CFDictionaryRef description, + int pixelFormat, +); + +@ffi.Native() +external CFStringRef CVPixelFormatTypeCopyFourCharCodeString(int pixelFormat); + +@ffi.Native() +external int CVTransferFunctionGetIntegerCodePointForString( + CFStringRef transferFunctionString, +); + +@ffi.Native() +external CFStringRef CVTransferFunctionGetStringForIntegerCodePoint( + int transferFunctionCodePoint, +); + +@ffi.Native() +external int CVYCbCrMatrixGetIntegerCodePointForString( + CFStringRef yCbCrMatrixString, +); + +@ffi.Native() +external CFStringRef CVYCbCrMatrixGetStringForIntegerCodePoint( + int yCbCrMatrixCodePoint, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentCanDo(ComponentInstance ci, int ftnNumber); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentClose(ComponentInstance ci, ComponentInstance self); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CallComponentDispatch(ffi.Pointer cp); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + ffi.Pointer, + ComponentFunctionUPP, + ) +>() +external int CallComponentFunction( + ffi.Pointer params, + ComponentFunctionUPP func, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + Handle, + ffi.Pointer, + ComponentFunctionUPP, + ) +>() +external int CallComponentFunctionWithStorage( + Handle storage, + ffi.Pointer params, + ComponentFunctionUPP func, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + Handle, + ffi.Pointer, + ProcPtr, + ProcInfoType, + ) +>() +external int CallComponentFunctionWithStorageProcInfo( + Handle storage, + ffi.Pointer params, + ProcPtr func, + int funcProcInfo, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + ComponentInstance, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CallComponentGetMPWorkFunction( + ComponentInstance ci, + ffi.Pointer workFunction, + ffi.Pointer> refCon, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + ComponentInstance, + OSType, + SInt16, + ffi.Pointer, + ) +>() +external int CallComponentGetPublicResource( + ComponentInstance ci, + int resourceType, + int resourceID, + ffi.Pointer resource, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentOpen(ComponentInstance ci, ComponentInstance self); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentRegister(ComponentInstance ci); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentTarget( + ComponentInstance ci, + ComponentInstance target, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentUnregister(ComponentInstance ci); + +@Deprecated('Deprecated') +@ffi.Native() +external int CallComponentVersion(ComponentInstance ci); + +@Deprecated('Deprecated') +@ffi.Native() +external Component CaptureComponent( + Component capturedComponent, + Component capturingComponent, +); + +@ffi.Native() +external int ChangeTextToUnicodeInfo( + TextToUnicodeInfo ioTextToUnicodeInfo, + ConstUnicodeMappingPtr iUnicodeMapping, +); + +@ffi.Native() +external int ChangeUnicodeToTextInfo( + UnicodeToTextInfo ioUnicodeToTextInfo, + ConstUnicodeMappingPtr iUnicodeMapping, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void ChangedResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external Collection CloneCollection(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external int CloseComponent(ComponentInstance aComponentInstance); + +@Deprecated('Deprecated') +@ffi.Native() +external int CloseComponentResFile(int refnum); + +@Deprecated('Deprecated') +@ffi.Native() +external void CloseResFile(int refNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int CollectionTagExists(Collection c, int tag); + +@ffi.Native() +external int ColorSyncAPIVersion(); + +@ffi.Native() +external CFStringRef ColorSyncCMMCopyCMMIdentifier(ColorSyncCMMRef arg0); + +@ffi.Native() +external CFStringRef ColorSyncCMMCopyLocalizedName(ColorSyncCMMRef arg0); + +@ffi.Native() +external ColorSyncCMMRef ColorSyncCMMCreate(CFBundleRef cmmBundle); + +@ffi.Native() +external CFBundleRef ColorSyncCMMGetBundle(ColorSyncCMMRef arg0); + +@ffi.Native() +external int ColorSyncCMMGetTypeID(); + +@ffi.Native() +external CFTypeRef ColorSyncCreateCodeFragment( + CFArrayRef profileSequence, + CFDictionaryRef options, +); + +@ffi.Native() +external CFDictionaryRef ColorSyncDeviceCopyDeviceInfo( + CFStringRef deviceClass, + CFUUIDRef devID, +); + +@ffi.Native() +external bool ColorSyncDeviceSetCustomProfiles( + CFStringRef deviceClass, + CFUUIDRef deviceID, + CFDictionaryRef profileInfo, +); + +@ffi.Native< + ffi.Void Function( + ColorSyncDeviceProfileIterateCallback, + ffi.Pointer, + ) +>() +external void ColorSyncIterateDeviceProfiles( + ColorSyncDeviceProfileIterateCallback callBack, + ffi.Pointer userInfo, +); + +@ffi.Native< + ffi.Void Function(ColorSyncCMMIterateCallback, ffi.Pointer) +>() +external void ColorSyncIterateInstalledCMMs( + ColorSyncCMMIterateCallback callBack, + ffi.Pointer userInfo, +); + +@ffi.Native< + ffi.Void Function( + ColorSyncProfileIterateCallback, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void ColorSyncIterateInstalledProfiles( + ColorSyncProfileIterateCallback callBack, + ffi.Pointer seed, + ffi.Pointer userInfo, + ffi.Pointer error, +); + +@ffi.Native< + ffi.Void Function( + ColorSyncProfileIterateCallback, + ffi.Pointer, + ffi.Pointer, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external void ColorSyncIterateInstalledProfilesWithOptions( + ColorSyncProfileIterateCallback callBack, + ffi.Pointer seed, + ffi.Pointer userInfo, + CFDictionaryRef options, + ffi.Pointer error, +); + +@ffi.Native() +external bool ColorSyncProfileContainsTag( + ColorSyncProfileRef prof, + CFStringRef signature, +); + +@ffi.Native)>() +external CFDataRef ColorSyncProfileCopyData( + ColorSyncProfileRef prof, + ffi.Pointer error, +); + +@ffi.Native() +external CFStringRef ColorSyncProfileCopyDescriptionString( + ColorSyncProfileRef prof, +); + +@ffi.Native() +external CFDataRef ColorSyncProfileCopyHeader(ColorSyncProfileRef prof); + +@ffi.Native() +external CFDataRef ColorSyncProfileCopyTag( + ColorSyncProfileRef prof, + CFStringRef signature, +); + +@ffi.Native() +external CFArrayRef ColorSyncProfileCopyTagSignatures(ColorSyncProfileRef prof); + +@ffi.Native)>() +external ColorSyncProfileRef ColorSyncProfileCreate( + CFDataRef data, + ffi.Pointer error, +); + +@ffi.Native() +external ColorSyncProfileRef ColorSyncProfileCreateDeviceProfile( + CFStringRef deviceClass, + CFUUIDRef deviceID, + CFTypeRef profileID, +); + +@ffi.Native)>() +external CFDataRef ColorSyncProfileCreateDisplayTransferTablesFromVCGT( + ColorSyncProfileRef profile, + ffi.Pointer nSamplesPerChannel, +); + +@ffi.Native() +external ColorSyncProfileRef ColorSyncProfileCreateLink( + CFArrayRef profileInfo, + CFDictionaryRef options, +); + +@ffi.Native() +external ColorSyncMutableProfileRef ColorSyncProfileCreateMutable(); + +@ffi.Native() +external ColorSyncMutableProfileRef ColorSyncProfileCreateMutableCopy( + ColorSyncProfileRef prof, +); + +@ffi.Native() +external ColorSyncProfileRef ColorSyncProfileCreateWithDisplayID(int displayID); + +@ffi.Native() +external ColorSyncProfileRef ColorSyncProfileCreateWithName(CFStringRef name); + +@ffi.Native)>() +external ColorSyncProfileRef ColorSyncProfileCreateWithURL( + CFURLRef url, + ffi.Pointer error, +); + +@ffi.Native)>() +external double ColorSyncProfileEstimateGamma( + ColorSyncProfileRef prof, + ffi.Pointer error, +); + +@ffi.Native)>() +external double ColorSyncProfileEstimateGammaWithDisplayID( + int displayID, + ffi.Pointer error, +); + +@ffi.Native< + ffi.Bool Function( + ColorSyncProfileRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool ColorSyncProfileGetDisplayTransferFormulaFromVCGT( + ColorSyncProfileRef profile, + ffi.Pointer redMin, + ffi.Pointer redMax, + ffi.Pointer redGamma, + ffi.Pointer greenMin, + ffi.Pointer greenMax, + ffi.Pointer greenGamma, + ffi.Pointer blueMin, + ffi.Pointer blueMax, + ffi.Pointer blueGamma, +); + +@ffi.Native() +external ColorSyncMD5 ColorSyncProfileGetMD5(ColorSyncProfileRef prof); + +@ffi.Native() +external int ColorSyncProfileGetTypeID(); + +@ffi.Native)>() +external CFURLRef ColorSyncProfileGetURL( + ColorSyncProfileRef prof, + ffi.Pointer error, +); + +@ffi.Native< + ffi.Bool Function( + ColorSyncProfileRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>() +external bool ColorSyncProfileInstall( + ColorSyncProfileRef profile, + CFStringRef domain, + CFStringRef subpath, + ffi.Pointer error, +); + +@ffi.Native() +external bool ColorSyncProfileIsHLGBased(ColorSyncProfileRef arg0); + +@ffi.Native() +external bool ColorSyncProfileIsMatrixBased(ColorSyncProfileRef arg0); + +@ffi.Native() +external bool ColorSyncProfileIsPQBased(ColorSyncProfileRef arg0); + +@ffi.Native() +external bool ColorSyncProfileIsWideGamut(ColorSyncProfileRef arg0); + +@ffi.Native() +external void ColorSyncProfileRemoveTag( + ColorSyncMutableProfileRef prof, + CFStringRef signature, +); + +@ffi.Native() +external void ColorSyncProfileSetHeader( + ColorSyncMutableProfileRef prof, + CFDataRef header, +); + +@ffi.Native< + ffi.Void Function(ColorSyncMutableProfileRef, CFStringRef, CFDataRef) +>() +external void ColorSyncProfileSetTag( + ColorSyncMutableProfileRef prof, + CFStringRef signature, + CFDataRef data, +); + +@ffi.Native)>() +external bool ColorSyncProfileUninstall( + ColorSyncProfileRef profile, + ffi.Pointer error, +); + +@ffi.Native< + ffi.Bool Function( + ColorSyncProfileRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool ColorSyncProfileVerify( + ColorSyncProfileRef prof, + ffi.Pointer errors, + ffi.Pointer warnings, +); + +@ffi.Native() +external bool ColorSyncRegisterDevice( + CFStringRef deviceClass, + CFUUIDRef deviceID, + CFDictionaryRef deviceInfo, +); + +@ffi.Native< + ffi.Bool Function( + ColorSyncTransformRef, + ffi.Size, + ffi.Size, + ffi.Pointer, + ffi.UnsignedInt, + ColorSyncDataLayout, + ffi.Size, + ffi.Pointer, + ffi.UnsignedInt, + ColorSyncDataLayout, + ffi.Size, + CFDictionaryRef, + ) +>(symbol: 'ColorSyncTransformConvert') +external bool _ColorSyncTransformConvert( + ColorSyncTransformRef transform, + int width, + int height, + ffi.Pointer dst, + int dstDepth, + int dstLayout, + int dstBytesPerRow, + ffi.Pointer src, + int srcDepth, + int srcLayout, + int srcBytesPerRow, + CFDictionaryRef options, +); + +bool ColorSyncTransformConvert( + ColorSyncTransformRef transform, + int width, + int height, + ffi.Pointer dst, + ColorSyncDataDepth dstDepth, + DartColorSyncDataLayout dstLayout, + int dstBytesPerRow, + ffi.Pointer src, + ColorSyncDataDepth srcDepth, + DartColorSyncDataLayout srcLayout, + int srcBytesPerRow, + CFDictionaryRef options, +) { + return _ColorSyncTransformConvert( + transform, + width, + height, + dst, + dstDepth.value, + dstLayout, + dstBytesPerRow, + src, + srcDepth.value, + srcLayout, + srcBytesPerRow, + options, + ); +} + +@ffi.Native< + CFTypeRef Function(ColorSyncTransformRef, CFTypeRef, CFDictionaryRef) +>() +external CFTypeRef ColorSyncTransformCopyProperty( + ColorSyncTransformRef transform, + CFTypeRef key, + CFDictionaryRef options, +); + +@ffi.Native() +external ColorSyncTransformRef ColorSyncTransformCreate( + CFArrayRef profileSequence, + CFDictionaryRef options, +); + +@ffi.Native() +external CFArrayRef ColorSyncTransformGetProfileSequence( + ColorSyncTransformRef transform, +); + +@ffi.Native() +external int ColorSyncTransformGetTypeID(); + +@ffi.Native() +external void ColorSyncTransformSetProperty( + ColorSyncTransformRef transform, + CFTypeRef key, + CFTypeRef property, +); + +@ffi.Native() +external bool ColorSyncUnregisterDevice( + CFStringRef deviceClass, + CFUUIDRef deviceID, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CompareAndSwap( + int oldValue, + int newValue, + ffi.Pointer address, +); + +@Deprecated('Use NSImage or Core Graphics to composite images.') +@ffi.Native)>() +external int CompositeIconRef( + IconRef backgroundIconRef, + IconRef foregroundIconRef, + ffi.Pointer compositeIconRef, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int ContinueSpeech(SpeechChannel chan); + +@ffi.Native< + OSStatus Function( + TextToUnicodeInfo, + ConstStr255Param, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ConvertFromPStringToUnicode( + TextToUnicodeInfo iTextToUnicodeInfo, + ConstStr255Param iPascalStr, + int iOutputBufLen, + ffi.Pointer oUnicodeLen, + ffi.Pointer oUnicodeStr, +); + +@ffi.Native< + OSStatus Function( + TextToUnicodeInfo, + ByteCount, + ConstLogicalAddress, + OptionBits, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ConvertFromTextToUnicode( + TextToUnicodeInfo iTextToUnicodeInfo, + int iSourceLen, + ConstLogicalAddress iSourceStr, + int iControlFlags, + int iOffsetCount, + ffi.Pointer iOffsetArray, + ffi.Pointer oOffsetCount, + ffi.Pointer oOffsetArray, + int iOutputBufLen, + ffi.Pointer oSourceRead, + ffi.Pointer oUnicodeLen, + ffi.Pointer oUnicodeStr, +); + +@ffi.Native< + OSStatus Function( + UnicodeToTextInfo, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ConvertFromUnicodeToPString( + UnicodeToTextInfo iUnicodeToTextInfo, + int iUnicodeLen, + ffi.Pointer iUnicodeStr, + ffi.Pointer oPascalStr, +); + +@ffi.Native< + OSStatus Function( + UnicodeToTextRunInfo, + ByteCount, + ffi.Pointer, + OptionBits, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ByteCount, + ffi.Pointer, + ffi.Pointer, + LogicalAddress, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ConvertFromUnicodeToScriptCodeRun( + UnicodeToTextRunInfo iUnicodeToTextInfo, + int iUnicodeLen, + ffi.Pointer iUnicodeStr, + int iControlFlags, + int iOffsetCount, + ffi.Pointer iOffsetArray, + ffi.Pointer oOffsetCount, + ffi.Pointer oOffsetArray, + int iOutputBufLen, + ffi.Pointer oInputRead, + ffi.Pointer oOutputLen, + LogicalAddress oOutputStr, + int iScriptRunBufLen, + ffi.Pointer oScriptRunOutLen, + ffi.Pointer oScriptCodeRuns, +); + +@ffi.Native< + OSStatus Function( + UnicodeToTextInfo, + ByteCount, + ffi.Pointer, + OptionBits, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ByteCount, + ffi.Pointer, + ffi.Pointer, + LogicalAddress, + ) +>() +external int ConvertFromUnicodeToText( + UnicodeToTextInfo iUnicodeToTextInfo, + int iUnicodeLen, + ffi.Pointer iUnicodeStr, + int iControlFlags, + int iOffsetCount, + ffi.Pointer iOffsetArray, + ffi.Pointer oOffsetCount, + ffi.Pointer oOffsetArray, + int iOutputBufLen, + ffi.Pointer oInputRead, + ffi.Pointer oOutputLen, + LogicalAddress oOutputStr, +); + +@ffi.Native< + OSStatus Function( + UnicodeToTextRunInfo, + ByteCount, + ffi.Pointer, + OptionBits, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ByteCount, + ffi.Pointer, + ffi.Pointer, + LogicalAddress, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ConvertFromUnicodeToTextRun( + UnicodeToTextRunInfo iUnicodeToTextInfo, + int iUnicodeLen, + ffi.Pointer iUnicodeStr, + int iControlFlags, + int iOffsetCount, + ffi.Pointer iOffsetArray, + ffi.Pointer oOffsetCount, + ffi.Pointer oOffsetArray, + int iOutputBufLen, + ffi.Pointer oInputRead, + ffi.Pointer oOutputLen, + LogicalAddress oOutputStr, + int iEncodingRunBufLen, + ffi.Pointer oEncodingRunOutLen, + ffi.Pointer oEncodingRuns, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Collection CopyCollection( + Collection srcCollection, + Collection dstCollection, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(SpeechChannel, CFStringRef, ffi.Pointer) +>() +external int CopyPhonemesFromText( + SpeechChannel chan, + CFStringRef text, + ffi.Pointer phonemes, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int CopyProcessName( + ffi.Pointer psn, + ffi.Pointer name, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(SpeechChannel, CFStringRef, ffi.Pointer) +>() +external int CopySpeechProperty( + SpeechChannel chan, + CFStringRef property, + ffi.Pointer object, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + OSType, + OSType, + SInt16, + ffi.Pointer, + ByteCount, + Boolean, + ) +>() +external int CoreEndianFlipData( + int dataDomain, + int dataType, + int id, + ffi.Pointer data, + int dataLen, + int currentlyNative, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + OSType, + OSType, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int CoreEndianGetFlipper( + int dataDomain, + int dataType, + ffi.Pointer proc, + ffi.Pointer> refcon, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(OSType, OSType, CoreEndianFlipProc, ffi.Pointer) +>() +external int CoreEndianInstallFlipper( + int dataDomain, + int dataType, + CoreEndianFlipProc proc, + ffi.Pointer refcon, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int Count1Resources(int theType); + +@Deprecated('Deprecated') +@ffi.Native() +external int Count1Types(); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountCollectionItems(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountCollectionOwners(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountCollectionTags(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountComponentInstances(Component aComponent); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int CountComponents(ffi.Pointer looking); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountResources(int theType); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountTaggedCollectionItems(Collection c, int tag); + +@Deprecated('Deprecated') +@ffi.Native() +external int CountTypes(); + +@ffi.Native< + OSStatus Function(OptionBits, ConstUnicodeMappingPtr, ffi.Pointer) +>() +external int CountUnicodeMappings( + int iFilter, + ConstUnicodeMappingPtr iFindMapping, + ffi.Pointer oActualCount, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int CountVoices(ffi.Pointer numVoices); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + ffi.Pointer, + Boolean, + ffi.Pointer, + ) +>() +external int CreateCompDescriptor( + int comparisonOperator, + ffi.Pointer operand1, + ffi.Pointer operand2, + int disposeInputs, + ffi.Pointer theDescriptor, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + DescType, + Boolean, + ffi.Pointer, + ) +>() +external int CreateLogicalDescriptor( + ffi.Pointer theLogicalTerms, + int theLogicOperator, + int disposeInputs, + ffi.Pointer theDescriptor, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + DescType, + ffi.Pointer, + Boolean, + ffi.Pointer, + ) +>() +external int CreateObjSpecifier( + int desiredClass, + ffi.Pointer theContainer, + int keyForm, + ffi.Pointer keyData, + int disposeInputs, + ffi.Pointer objSpecifier, +); + +@ffi.Native)>() +external int CreateOffsetDescriptor( + int theOffset, + ffi.Pointer theDescriptor, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + Boolean, + ffi.Pointer, + ) +>() +external int CreateRangeDescriptor( + ffi.Pointer rangeStart, + ffi.Pointer rangeStop, + int disposeInputs, + ffi.Pointer theDescriptor, +); + +@ffi.Native< + TextEncoding Function( + TextEncodingBase, + TextEncodingVariant, + TextEncodingFormat, + ) +>() +external int CreateTextEncoding( + int encodingBase, + int encodingVariant, + int encodingFormat, +); + +@ffi.Native< + OSStatus Function(ConstUnicodeMappingPtr, ffi.Pointer) +>() +external int CreateTextToUnicodeInfo( + ConstUnicodeMappingPtr iUnicodeMapping, + ffi.Pointer oTextToUnicodeInfo, +); + +@ffi.Native)>() +external int CreateTextToUnicodeInfoByEncoding( + int iEncoding, + ffi.Pointer oTextToUnicodeInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CreateThreadPool(int threadStyle, int numToCreate, int stackSize); + +@ffi.Native< + OSStatus Function(ConstUnicodeMappingPtr, ffi.Pointer) +>() +external int CreateUnicodeToTextInfo( + ConstUnicodeMappingPtr iUnicodeMapping, + ffi.Pointer oUnicodeToTextInfo, +); + +@ffi.Native)>() +external int CreateUnicodeToTextInfoByEncoding( + int iEncoding, + ffi.Pointer oUnicodeToTextInfo, +); + +@ffi.Native< + OSStatus Function( + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CreateUnicodeToTextRunInfo( + int iNumberOfMappings, + ffi.Pointer iUnicodeMappings, + ffi.Pointer oUnicodeToTextInfo, +); + +@ffi.Native< + OSStatus Function( + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CreateUnicodeToTextRunInfoByEncoding( + int iNumberOfEncodings, + ffi.Pointer iEncodings, + ffi.Pointer oUnicodeToTextInfo, +); + +@ffi.Native< + OSStatus Function( + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int CreateUnicodeToTextRunInfoByScriptCode( + int iNumberOfScriptCodes, + ffi.Pointer iScripts, + ffi.Pointer oUnicodeToTextInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int CurResFile(); + +@Deprecated('No longer supported') +@ffi.Native() +external int CurrentProcessorSpeed(); + +@ffi.Native() +external DAApprovalSessionRef DAApprovalSessionCreate(CFAllocatorRef allocator); + +@ffi.Native() +external int DAApprovalSessionGetTypeID(); + +@ffi.Native< + ffi.Void Function(DAApprovalSessionRef, CFRunLoopRef, CFStringRef) +>() +external void DAApprovalSessionScheduleWithRunLoop( + DAApprovalSessionRef session, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native< + ffi.Void Function(DAApprovalSessionRef, CFRunLoopRef, CFStringRef) +>() +external void DAApprovalSessionUnscheduleFromRunLoop( + DAApprovalSessionRef session, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native() +external CFDictionaryRef DADiskCopyDescription(DADiskRef disk); + +@ffi.Native() +external int DADiskCopyIOMedia(DADiskRef disk); + +@ffi.Native() +external DADiskRef DADiskCopyWholeDisk(DADiskRef disk); + +@ffi.Native< + DADiskRef Function(CFAllocatorRef, DASessionRef, ffi.Pointer) +>() +external DADiskRef DADiskCreateFromBSDName( + CFAllocatorRef allocator, + DASessionRef session, + ffi.Pointer name, +); + +@ffi.Native() +external DADiskRef DADiskCreateFromIOMedia( + CFAllocatorRef allocator, + DASessionRef session, + int media, +); + +@ffi.Native() +external DADiskRef DADiskCreateFromVolumePath( + CFAllocatorRef allocator, + DASessionRef session, + CFURLRef path, +); + +@ffi.Native Function(DADiskRef)>() +external ffi.Pointer DADiskGetBSDName(DADiskRef disk); + +@ffi.Native() +external int DADiskGetTypeID(); + +@ffi.Native() +external DASessionRef DASessionCreate(CFAllocatorRef allocator); + +@ffi.Native() +external int DASessionGetTypeID(); + +@ffi.Native() +external void DASessionScheduleWithRunLoop( + DASessionRef session, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native( + symbol: 'DASessionSetDispatchQueue', +) +external void _DASessionSetDispatchQueue( + DASessionRef session, + dispatch_queue_t queue, +); + +void DASessionSetDispatchQueue( + DASessionRef session, + Dartdispatch_queue_t? queue, +) { + final _$$ref = queue?.ref; + return _DASessionSetDispatchQueue(session, _$$ref?.pointer ?? ffi.nullptr); +} + +@ffi.Native() +external void DASessionUnscheduleFromRunLoop( + DASessionRef session, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native() +external CFStringRef DCSCopyTextDefinition( + DCSDictionaryRef dictionary, + CFStringRef textString, + CFRange range, +); + +@ffi.Native() +external CFRange DCSGetTermRangeInString( + DCSDictionaryRef dictionary, + CFStringRef textString, + int offset, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) +>() +external void DebugAssert( + int componentSignature, + int options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + int lineNumber, + ffi.Pointer value, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DebugStr(ConstStr255Param debuggerMsg); + +@Deprecated('Deprecated') +@ffi.Native() +external void Debugger(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int DecrementAtomic(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int DecrementAtomic16(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int DecrementAtomic8(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) +>() +external void Delay(int numTicks, ffi.Pointer finalTicks); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function(ffi.Pointer, ComponentInstance) +>() +external int DelegateComponentCall( + ffi.Pointer originalParams, + ComponentInstance ci, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int DeleteGestaltValue(int selector); + +@Deprecated('Deprecated') +@ffi.Native() +external int Dequeue(QElemPtr qElement, QHdrPtr qHeader); + +@Deprecated('Deprecated') +@ffi.Native() +external void DetachResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external int DetachResourceFile(int refNum); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSVolumeRefNum, + OSType, + ffi.Pointer, + Boolean, + ffi.Pointer, + ) +>() +external int DetermineIfPathIsEnclosedByFolder( + int domainOrVRefNum, + int folderType, + ffi.Pointer utf8Path, + int pathIsRealPath, + ffi.Pointer outResult, +); + +@ffi.Native() +external void DisposeAECoerceDescUPP(AECoerceDescUPP userUPP); + +@ffi.Native() +external void DisposeAECoercePtrUPP(AECoercePtrUPP userUPP); + +@ffi.Native() +external void DisposeAEDisposeExternalUPP(AEDisposeExternalUPP userUPP); + +@ffi.Native() +external void DisposeAEEventHandlerUPP(AEEventHandlerUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeCollection(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeCollectionExceptionUPP(CollectionExceptionUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeCollectionFlattenUPP(CollectionFlattenUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeComponentFunctionUPP(ComponentFunctionUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeComponentMPWorkFunctionUPP( + ComponentMPWorkFunctionUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeComponentRoutineUPP(ComponentRoutineUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDebugAssertOutputHandlerUPP( + DebugAssertOutputHandlerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int DisposeDebugComponent(int componentSignature); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDebugComponentCallbackUPP( + DebugComponentCallbackUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDebuggerDisposeThreadUPP(DebuggerDisposeThreadUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDebuggerNewThreadUPP(DebuggerNewThreadUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDebuggerThreadSchedulerUPP( + DebuggerThreadSchedulerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeDeferredTaskUPP(DeferredTaskUPP userUPP); + +@Deprecated('No longer supported') +@ffi.Native() +external void DisposeExceptionHandlerUPP(ExceptionHandlerUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeFNSubscriptionUPP(FNSubscriptionUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeFSVolumeEjectUPP(FSVolumeEjectUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeFSVolumeMountUPP(FSVolumeMountUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeFSVolumeUnmountUPP(FSVolumeUnmountUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeFolderManagerNotificationUPP( + FolderManagerNotificationUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeGetMissingComponentResourceUPP( + GetMissingComponentResourceUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeHandle(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeIOCompletionUPP(IOCompletionUPP userUPP); + +@ffi.Native() +external void DisposeIconActionUPP(IconActionUPP userUPP); + +@ffi.Native() +external void DisposeIconGetterUPP(IconGetterUPP userUPP); + +@ffi.Native() +external void DisposeIndexToUCStringUPP(IndexToUCStringUPP userUPP); + +@Deprecated('No longer supported') +@ffi.Native() +external void DisposeKCCallbackUPP(KCCallbackUPP userUPP); + +@ffi.Native() +external void DisposeOSLAccessorUPP(OSLAccessorUPP userUPP); + +@ffi.Native() +external void DisposeOSLAdjustMarksUPP(OSLAdjustMarksUPP userUPP); + +@ffi.Native() +external void DisposeOSLCompareUPP(OSLCompareUPP userUPP); + +@ffi.Native() +external void DisposeOSLCountUPP(OSLCountUPP userUPP); + +@ffi.Native() +external void DisposeOSLDisposeTokenUPP(OSLDisposeTokenUPP userUPP); + +@ffi.Native() +external void DisposeOSLGetErrDescUPP(OSLGetErrDescUPP userUPP); + +@ffi.Native() +external void DisposeOSLGetMarkTokenUPP(OSLGetMarkTokenUPP userUPP); + +@ffi.Native() +external void DisposeOSLMarkUPP(OSLMarkUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposePtr(Ptr p); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeResErrUPP(ResErrUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeSelectorFunctionUPP(SelectorFunctionUPP userUPP); + +@Deprecated('No longer supported') +@ffi.Native() +external void DisposeSleepQUPP(SleepQUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int DisposeSpeechChannel(SpeechChannel chan); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechDoneUPP(SpeechDoneUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechErrorUPP(SpeechErrorUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechPhonemeUPP(SpeechPhonemeUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechSyncUPP(SpeechSyncUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechTextDoneUPP(SpeechTextDoneUPP userUPP); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void DisposeSpeechWordUPP(SpeechWordUPP userUPP); + +@ffi.Native)>() +external int DisposeTextToUnicodeInfo( + ffi.Pointer ioTextToUnicodeInfo, +); + +@Deprecated('Deprecated') +@ffi.Native, Boolean)>() +external int DisposeThread( + int threadToDump, + ffi.Pointer threadResult, + int recycleThread, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeThreadEntryUPP(ThreadEntryUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeThreadSchedulerUPP(ThreadSchedulerUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeThreadSwitchUPP(ThreadSwitchUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeThreadTerminationUPP(ThreadTerminationUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native() +external void DisposeTimerUPP(TimerUPP userUPP); + +@ffi.Native() +external void DisposeUnicodeToTextFallbackUPP(UnicodeToTextFallbackUPP userUPP); + +@ffi.Native)>() +external int DisposeUnicodeToTextInfo( + ffi.Pointer ioUnicodeToTextInfo, +); + +@ffi.Native)>() +external int DisposeUnicodeToTextRunInfo( + ffi.Pointer ioUnicodeToTextRunInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime DurationToAbsolute(int duration); + +@Deprecated('Deprecated') +@ffi.Native() +external Nanoseconds DurationToNanoseconds(int theDuration); + +@Deprecated('Deprecated') +@ffi.Native() +external void EmptyCollection(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external void EmptyHandle(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external void Enqueue(QElemPtr qElement, QHdrPtr qHeader); + +@Deprecated('Deprecated') +@ffi.Native() +external void ExitToShell(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FNGetDirectoryForSubscription( + FNSubscriptionRef subscription, + ffi.Pointer ref, +); + +@Deprecated('Deprecated') +@ffi.Native, FNMessage, OptionBits)>() +external int FNNotify(ffi.Pointer ref, int message, int flags); + +@Deprecated('Deprecated') +@ffi.Native() +external int FNNotifyAll(int message, int flags); + +@Deprecated('Deprecated') +@ffi.Native, FNMessage, OptionBits)>() +external int FNNotifyByPath(ffi.Pointer path, int message, int flags); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + FNSubscriptionUPP, + ffi.Pointer, + OptionBits, + ffi.Pointer, + ) +>() +external int FNSubscribe( + ffi.Pointer directoryRef, + FNSubscriptionUPP callback, + ffi.Pointer refcon, + int flags, + ffi.Pointer subscription, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + FNSubscriptionUPP, + ffi.Pointer, + OptionBits, + ffi.Pointer, + ) +>() +external int FNSubscribeByPath( + ffi.Pointer directoryPath, + FNSubscriptionUPP callback, + ffi.Pointer refcon, + int flags, + ffi.Pointer subscription, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FNUnsubscribe(FNSubscriptionRef subscription); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIORefNum, + FSAllocationFlags, + UInt16, + SInt64, + UInt64, + ffi.Pointer, + ) +>() +external int FSAllocateFork( + int forkRefNum, + int flags, + int positionMode, + int positionOffset, + int requestCount, + ffi.Pointer actualCount, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSCancelVolumeOperation(FSVolumeOperation volumeOp); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIterator, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ffi.Pointer, + ) +>() +external int FSCatalogSearch( + FSIterator iterator, + ffi.Pointer searchCriteria, + int maximumObjects, + ffi.Pointer actualObjects, + ffi.Pointer containerChanged, + int whichInfo, + ffi.Pointer catalogInfos, + ffi.Pointer refs, + FSSpecPtr specs, + ffi.Pointer names, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSCloseFork(int forkRefNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSCloseIterator(FSIterator iterator); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Pointer)>() +external int FSCompareFSRefs(ffi.Pointer ref1, ffi.Pointer ref2); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + AliasHandle, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSCopyAliasInfo( + AliasHandle inAlias, + ffi.Pointer targetName, + ffi.Pointer volumeName, + ffi.Pointer pathString, + ffi.Pointer whichInfo, + ffi.Pointer info, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSCopyDADiskForVolume(int vRefNum, ffi.Pointer disk); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSCopyDiskIDForVolume( + int vRefNum, + ffi.Pointer diskID, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + ffi.Pointer, + CFStringRef, + OptionBits, + FSFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSCopyObjectAsync( + FSFileOperationRef fileOp, + ffi.Pointer source, + ffi.Pointer destDir, + CFStringRef destName, + int flags, + FSFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + ffi.Pointer, + OptionBits, + ) +>() +external int FSCopyObjectSync( + ffi.Pointer source, + ffi.Pointer destDir, + CFStringRef destName, + ffi.Pointer target, + int options, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSCopyURLForVolume(int vRefNum, ffi.Pointer url); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ffi.Pointer, + ) +>() +external int FSCreateDirectoryUnicode( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int whichInfo, + ffi.Pointer catalogInfo, + ffi.Pointer newRef, + FSSpecPtr newSpec, + ffi.Pointer newDirID, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + SInt8, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSCreateFileAndOpenForkUnicode( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int whichInfo, + ffi.Pointer catalogInfo, + int forkNameLength, + ffi.Pointer forkName, + int permissions, + ffi.Pointer forkRefNum, + ffi.Pointer newRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ) +>() +external int FSCreateFileUnicode( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int whichInfo, + ffi.Pointer catalogInfo, + ffi.Pointer newRef, + FSSpecPtr newSpec, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer) +>() +external int FSCreateFork( + ffi.Pointer ref, + int forkNameLength, + ffi.Pointer forkName, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ) +>() +external void FSCreateResFile( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int whichInfo, + ffi.Pointer catalogInfo, + ffi.Pointer newRef, + FSSpecPtr newSpec, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ) +>() +external int FSCreateResourceFile( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int whichInfo, + ffi.Pointer catalogInfo, + int forkNameLength, + ffi.Pointer forkName, + ffi.Pointer newRef, + FSSpecPtr newSpec, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer, UInt32) +>() +external int FSCreateResourceFork( + ffi.Pointer ref, + int forkNameLength, + ffi.Pointer forkName, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external CFStringRef FSCreateStringFromHFSUniStr( + CFAllocatorRef alloc, + ffi.Pointer uniStr, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSCreateVolumeOperation(ffi.Pointer volumeOp); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer) +>() +external int FSDeleteFork( + ffi.Pointer ref, + int forkNameLength, + ffi.Pointer forkName, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSDeleteObject(ffi.Pointer ref); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSVolumeRefNum, + OSType, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSDetermineIfRefIsEnclosedByFolder( + int domainOrVRefNum, + int folderType, + ffi.Pointer inRef, + ffi.Pointer outResult, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSDisposeVolumeOperation(FSVolumeOperation volumeOp); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeRefNum, + OptionBits, + FSVolumeOperation, + ffi.Pointer, + FSVolumeEjectUPP, + CFRunLoopRef, + CFStringRef, + ) +>() +external int FSEjectVolumeAsync( + int vRefNum, + int flags, + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + FSVolumeEjectUPP callback, + CFRunLoopRef runloop, + CFStringRef runloopMode, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSEjectVolumeSync( + int vRefNum, + int flags, + ffi.Pointer dissenter, +); + +@ffi.Native() +external CFStringRef FSEventStreamCopyDescription( + ConstFSEventStreamRef streamRef, +); + +@ffi.Native() +external CFArrayRef FSEventStreamCopyPathsBeingWatched( + ConstFSEventStreamRef streamRef, +); + +@ffi.Native< + FSEventStreamRef Function( + CFAllocatorRef, + FSEventStreamCallback, + ffi.Pointer, + CFArrayRef, + FSEventStreamEventId, + CFTimeInterval, + FSEventStreamCreateFlags, + ) +>() +external FSEventStreamRef FSEventStreamCreate( + CFAllocatorRef allocator, + FSEventStreamCallback callback, + ffi.Pointer context, + CFArrayRef pathsToWatch, + int sinceWhen, + double latency, + int flags, +); + +@ffi.Native< + FSEventStreamRef Function( + CFAllocatorRef, + FSEventStreamCallback, + ffi.Pointer, + dev_t, + CFArrayRef, + FSEventStreamEventId, + CFTimeInterval, + FSEventStreamCreateFlags, + ) +>() +external FSEventStreamRef FSEventStreamCreateRelativeToDevice( + CFAllocatorRef allocator, + FSEventStreamCallback callback, + ffi.Pointer context, + int deviceToWatch, + CFArrayRef pathsToWatchRelativeToDevice, + int sinceWhen, + double latency, + int flags, +); + +@ffi.Native() +external int FSEventStreamFlushAsync(FSEventStreamRef streamRef); + +@ffi.Native() +external void FSEventStreamFlushSync(FSEventStreamRef streamRef); + +@ffi.Native() +external int FSEventStreamGetDeviceBeingWatched( + ConstFSEventStreamRef streamRef, +); + +@ffi.Native() +external int FSEventStreamGetLatestEventId(ConstFSEventStreamRef streamRef); + +@ffi.Native() +external void FSEventStreamInvalidate(FSEventStreamRef streamRef); + +@ffi.Native() +external void FSEventStreamRelease(FSEventStreamRef streamRef); + +@ffi.Native() +external void FSEventStreamRetain(FSEventStreamRef streamRef); + +@Deprecated('Use FSEventStreamSetDispatchQueue instead.') +@ffi.Native() +external void FSEventStreamScheduleWithRunLoop( + FSEventStreamRef streamRef, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native( + symbol: 'FSEventStreamSetDispatchQueue', +) +external void _FSEventStreamSetDispatchQueue( + FSEventStreamRef streamRef, + dispatch_queue_t q, +); + +void FSEventStreamSetDispatchQueue( + FSEventStreamRef streamRef, + Dartdispatch_queue_t? q, +) { + final _$$ref = q?.ref; + return _FSEventStreamSetDispatchQueue( + streamRef, + _$$ref?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native() +external int FSEventStreamSetExclusionPaths( + FSEventStreamRef streamRef, + CFArrayRef pathsToExclude, +); + +@ffi.Native() +external void FSEventStreamShow(ConstFSEventStreamRef streamRef); + +@ffi.Native() +external int FSEventStreamStart(FSEventStreamRef streamRef); + +@ffi.Native() +external void FSEventStreamStop(FSEventStreamRef streamRef); + +@Deprecated('Use FSEventStreamSetDispatchQueue instead.') +@ffi.Native() +external void FSEventStreamUnscheduleFromRunLoop( + FSEventStreamRef streamRef, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@ffi.Native() +external CFUUIDRef FSEventsCopyUUIDForDevice(int dev); + +@ffi.Native() +external int FSEventsGetCurrentEventId(); + +@ffi.Native() +external int FSEventsGetLastEventIdForDeviceBeforeTime(int dev, double time$1); + +@ffi.Native() +external int FSEventsPurgeEventsForDeviceUpToEventId(int dev, int eventId); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Pointer)>() +external int FSExchangeObjects( + ffi.Pointer ref, + ffi.Pointer destRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileOperationCancel(FSFileOperationRef fileOp); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int FSFileOperationCopyStatus( + FSFileOperationRef fileOp, + ffi.Pointer currentItem, + ffi.Pointer stage, + ffi.Pointer error, + ffi.Pointer statusDictionary, + ffi.Pointer> info, +); + +@Deprecated('Deprecated') +@ffi.Native() +external FSFileOperationRef FSFileOperationCreate(CFAllocatorRef alloc); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileOperationGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileOperationScheduleWithRunLoop( + FSFileOperationRef fileOp, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileOperationUnscheduleFromRunLoop( + FSFileOperationRef fileOp, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityCopyAccessControlList( + FSFileSecurityRef fileSec, + ffi.Pointer accessControlList, +); + +@Deprecated('Deprecated') +@ffi.Native() +external FSFileSecurityRef FSFileSecurityCreate(CFAllocatorRef alloc); + +@Deprecated('Deprecated') +@ffi.Native< + FSFileSecurityRef Function(CFAllocatorRef, ffi.Pointer) +>() +external FSFileSecurityRef FSFileSecurityCreateWithFSPermissionInfo( + CFAllocatorRef alloc, + ffi.Pointer permissions, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityGetGroup( + FSFileSecurityRef fileSec, + ffi.Pointer group, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityGetGroupUUID( + FSFileSecurityRef fileSec, + ffi.Pointer group, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityGetMode( + FSFileSecurityRef fileSec, + ffi.Pointer mode, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityGetOwner( + FSFileSecurityRef fileSec, + ffi.Pointer owner, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecurityGetOwnerUUID( + FSFileSecurityRef fileSec, + ffi.Pointer owner, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileSecurityGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native() +external FSFileSecurityRef FSFileSecurityRefCreateCopy( + CFAllocatorRef alloc, + FSFileSecurityRef fileSec, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileSecuritySetAccessControlList( + FSFileSecurityRef fileSec, + acl_t accessControlList, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileSecuritySetGroup(FSFileSecurityRef fileSec, int group); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecuritySetGroupUUID( + FSFileSecurityRef fileSec, + ffi.Pointer group, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileSecuritySetMode(FSFileSecurityRef fileSec, int mode); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFileSecuritySetOwner(FSFileSecurityRef fileSec, int owner); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSFileSecuritySetOwnerUUID( + FSFileSecurityRef fileSec, + ffi.Pointer owner, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(FSVolumeRefNum, OSType, Boolean, ffi.Pointer) +>() +external int FSFindFolder( + int vRefNum, + int folderType, + int createFolder, + ffi.Pointer foundRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFlushFork(int forkRefNum); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSFlushVolume(int vRefNum); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + AliasHandle, + Boolean, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSFollowFinderAlias( + ffi.Pointer fromFile, + AliasHandle alias, + int logon, + ffi.Pointer target, + ffi.Pointer wasChanged, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeOperation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int FSGetAsyncEjectStatus( + FSVolumeOperation volumeOp, + ffi.Pointer status, + ffi.Pointer volumeOpStatus, + ffi.Pointer volumeRefNum, + ffi.Pointer dissenter, + ffi.Pointer> clientData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeOperation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int FSGetAsyncMountStatus( + FSVolumeOperation volumeOp, + ffi.Pointer status, + ffi.Pointer volumeOpStatus, + ffi.Pointer mountedVolumeRefNum, + ffi.Pointer> clientData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeOperation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int FSGetAsyncUnmountStatus( + FSVolumeOperation volumeOp, + ffi.Pointer status, + ffi.Pointer volumeOpStatus, + ffi.Pointer volumeRefNum, + ffi.Pointer dissenter, + ffi.Pointer> clientData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ffi.Pointer, + ) +>() +external int FSGetCatalogInfo( + ffi.Pointer ref, + int whichInfo, + ffi.Pointer catalogInfo, + ffi.Pointer outName, + FSSpecPtr fsSpec, + ffi.Pointer parentRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIterator, + ItemCount, + ffi.Pointer, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ffi.Pointer, + FSSpecPtr, + ffi.Pointer, + ) +>() +external int FSGetCatalogInfoBulk( + FSIterator iterator, + int maximumObjects, + ffi.Pointer actualObjects, + ffi.Pointer containerChanged, + int whichInfo, + ffi.Pointer catalogInfos, + ffi.Pointer refs, + FSSpecPtr specs, + ffi.Pointer names, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetDataForkName(ffi.Pointer dataForkName); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIORefNum, + FSVolumeRefNum, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSGetForkCBInfo( + int desiredRefNum, + int volume, + ffi.Pointer iterator, + ffi.Pointer actualRefNum, + ffi.Pointer forkInfo, + ffi.Pointer ref, + ffi.Pointer outForkName, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetForkPosition(int forkRefNum, ffi.Pointer position); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetForkSize(int forkRefNum, ffi.Pointer forkSize); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetHFSUniStrFromString( + CFStringRef theString, + ffi.Pointer uniStr, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetResourceForkName(ffi.Pointer resourceForkName); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer, OptionBits) +>() +external int FSGetTemporaryDirectoryForReplaceObject( + ffi.Pointer originalObject, + ffi.Pointer temporaryDirectory, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetVolumeForDADisk( + DADiskRef disk, + ffi.Pointer vRefNum, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetVolumeForDiskID( + CFStringRef diskID, + ffi.Pointer vRefNum, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSVolumeRefNum, + ItemCount, + ffi.Pointer, + FSVolumeInfoBitmap, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSGetVolumeInfo( + int volume, + int volumeIndex, + ffi.Pointer actualVolume, + int whichInfo, + ffi.Pointer info, + ffi.Pointer volumeName, + ffi.Pointer rootDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(FSVolumeRefNum, BytePtr, ByteCount, ffi.Pointer) +>() +external int FSGetVolumeMountInfo( + int volume, + BytePtr buffer, + int bufferSize, + ffi.Pointer actualSize, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSGetVolumeMountInfoSize(int volume, ffi.Pointer size); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeRefNum, + ffi.Pointer, + ByteCount, + ) +>() +external int FSGetVolumeParms( + int volume, + ffi.Pointer buffer, + int bufferSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Pointer) +>() +external int FSIsAliasFile( + ffi.Pointer fileRef, + ffi.Pointer aliasFileFlag, + ffi.Pointer folderFlag, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSIsFSRefValid(ffi.Pointer ref); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSIterateForks( + ffi.Pointer ref, + ffi.Pointer forkIterator, + ffi.Pointer forkName, + ffi.Pointer forkSize, + ffi.Pointer forkPhysicalSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(FSIORefNum, UInt16, SInt64, UInt64, ffi.Pointer) +>() +external int FSLockRange( + int forkRefNum, + int positionMode, + int positionOffset, + int requestCount, + ffi.Pointer rangeStart, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + TextEncoding, + ffi.Pointer, + ) +>() +external int FSMakeFSRefUnicode( + ffi.Pointer parentRef, + int nameLength, + ffi.Pointer name, + int textEncodingHint, + ffi.Pointer newRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.UnsignedLong, + AliasHandle, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + FSAliasFilterProcPtr, + ffi.Pointer, + ) +>() +external int FSMatchAliasBulk( + ffi.Pointer fromFile, + int rulesMask, + AliasHandle inAlias, + ffi.Pointer aliasCount, + ffi.Pointer aliasList, + ffi.Pointer needsUpdate, + FSAliasFilterProcPtr aliasFilter, + ffi.Pointer yourDataPtr, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFStringRef, + CFURLRef, + FSVolumeOperation, + ffi.Pointer, + OptionBits, + FSVolumeMountUPP, + CFRunLoopRef, + CFStringRef, + ) +>() +external int FSMountLocalVolumeAsync( + CFStringRef diskID, + CFURLRef mountDir, + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + int flags, + FSVolumeMountUPP callback, + CFRunLoopRef runloop, + CFStringRef runloopMode, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFStringRef, + CFURLRef, + ffi.Pointer, + OptionBits, + ) +>() +external int FSMountLocalVolumeSync( + CFStringRef diskID, + CFURLRef mountDir, + ffi.Pointer mountedVolumeRefNum, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + FSVolumeOperation, + ffi.Pointer, + OptionBits, + FSVolumeMountUPP, + CFRunLoopRef, + CFStringRef, + ) +>() +external int FSMountServerVolumeAsync( + CFURLRef url, + CFURLRef mountDir, + CFStringRef user, + CFStringRef password, + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + int flags, + FSVolumeMountUPP callback, + CFRunLoopRef runloop, + CFStringRef runloopMode, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFURLRef, + CFURLRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + OptionBits, + ) +>() +external int FSMountServerVolumeSync( + CFURLRef url, + CFURLRef mountDir, + CFStringRef user, + CFStringRef password, + ffi.Pointer mountedVolumeRefNum, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Pointer) +>() +external int FSMoveObject( + ffi.Pointer ref, + ffi.Pointer destDirectory, + ffi.Pointer newRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + ffi.Pointer, + CFStringRef, + OptionBits, + FSFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSMoveObjectAsync( + FSFileOperationRef fileOp, + ffi.Pointer source, + ffi.Pointer destDir, + CFStringRef destName, + int flags, + FSFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + ffi.Pointer, + OptionBits, + ) +>() +external int FSMoveObjectSync( + ffi.Pointer source, + ffi.Pointer destDir, + CFStringRef destName, + ffi.Pointer target, + int options, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + OptionBits, + FSFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSMoveObjectToTrashAsync( + FSFileOperationRef fileOp, + ffi.Pointer source, + int flags, + FSFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer, OptionBits) +>() +external int FSMoveObjectToTrashSync( + ffi.Pointer source, + ffi.Pointer target, + int options, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSNewAlias( + ffi.Pointer fromFile, + ffi.Pointer target, + ffi.Pointer inAlias, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSNewAliasFromPath( + ffi.Pointer fromFilePath, + ffi.Pointer targetPath, + int flags, + ffi.Pointer inAlias, + ffi.Pointer isDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Pointer)>() +external int FSNewAliasMinimal( + ffi.Pointer target, + ffi.Pointer inAlias, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSNewAliasMinimalUnicode( + ffi.Pointer targetParentRef, + int targetNameLength, + ffi.Pointer targetName, + ffi.Pointer inAlias, + ffi.Pointer isDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSNewAliasUnicode( + ffi.Pointer fromFile, + ffi.Pointer targetParentRef, + int targetNameLength, + ffi.Pointer targetName, + ffi.Pointer inAlias, + ffi.Pointer isDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + SInt8, + ffi.Pointer, + ) +>() +external int FSOpenFork( + ffi.Pointer ref, + int forkNameLength, + ffi.Pointer forkName, + int permissions, + ffi.Pointer forkRefNum, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, FSIteratorFlags, ffi.Pointer) +>() +external int FSOpenIterator( + ffi.Pointer container, + int iteratorFlags, + ffi.Pointer iterator, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, SignedByte, ffi.Pointer) +>() +external int FSOpenOrphanResFile( + ffi.Pointer ref, + int permission, + ffi.Pointer refNum, +); + +@Deprecated('Deprecated') +@ffi.Native, SInt8)>() +external int FSOpenResFile(ffi.Pointer ref, int permission); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + SInt8, + ffi.Pointer, + ) +>() +external int FSOpenResourceFile( + ffi.Pointer ref, + int forkNameLength, + ffi.Pointer forkName, + int permissions, + ffi.Pointer refNum, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + ffi.Pointer, + CFStringRef, + OptionBits, + FSPathFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSPathCopyObjectAsync( + FSFileOperationRef fileOp, + ffi.Pointer sourcePath, + ffi.Pointer destDirPath, + CFStringRef destName, + int flags, + FSPathFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + ffi.Pointer>, + OptionBits, + ) +>() +external int FSPathCopyObjectSync( + ffi.Pointer sourcePath, + ffi.Pointer destDirPath, + CFStringRef destName, + ffi.Pointer> targetPath, + int options, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int FSPathFileOperationCopyStatus( + FSFileOperationRef fileOp, + ffi.Pointer> currentItem, + ffi.Pointer stage, + ffi.Pointer error, + ffi.Pointer statusDictionary, + ffi.Pointer> info, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + UInt32, + OptionBits, + ) +>() +external int FSPathGetTemporaryDirectoryForReplaceObject( + ffi.Pointer originalObjectPath, + ffi.Pointer temporaryDirectoryPath, + int maxPathSize, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSPathMakeRef( + ffi.Pointer path, + ffi.Pointer ref, + ffi.Pointer isDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSPathMakeRefWithOptions( + ffi.Pointer path, + int options, + ffi.Pointer ref, + ffi.Pointer isDirectory, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + ffi.Pointer, + CFStringRef, + OptionBits, + FSPathFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSPathMoveObjectAsync( + FSFileOperationRef fileOp, + ffi.Pointer sourcePath, + ffi.Pointer destDirPath, + CFStringRef destName, + int flags, + FSPathFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + ffi.Pointer>, + OptionBits, + ) +>() +external int FSPathMoveObjectSync( + ffi.Pointer sourcePath, + ffi.Pointer destDirPath, + CFStringRef destName, + ffi.Pointer> targetPath, + int options, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSFileOperationRef, + ffi.Pointer, + OptionBits, + FSPathFileOperationStatusProcPtr, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int FSPathMoveObjectToTrashAsync( + FSFileOperationRef fileOp, + ffi.Pointer sourcePath, + int flags, + FSPathFileOperationStatusProcPtr callback, + double statusChangeInterval, + ffi.Pointer clientContext, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer>, + OptionBits, + ) +>() +external int FSPathMoveObjectToTrashSync( + ffi.Pointer sourcePath, + ffi.Pointer> targetPath, + int options, +); + +@Deprecated( + 'Use NSFileManager\'s -replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: instead. WARNING: FSPathReplaceObject does not work correctly in sandboxed apps.', +) +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + CFStringRef, + ffi.Pointer, + OptionBits, + ) +>() +external int FSPathReplaceObject( + ffi.Pointer originalObjectPath, + ffi.Pointer replacementObjectPath, + CFStringRef newName, + CFStringRef temporaryName, + ffi.Pointer temporaryDirectoryPath, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIORefNum, + UInt16, + SInt64, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSReadFork( + int forkRefNum, + int positionMode, + int positionOffset, + int requestCount, + ffi.Pointer buffer, + ffi.Pointer actualCount, +); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Pointer, UInt32)>() +external int FSRefMakePath( + ffi.Pointer ref, + ffi.Pointer path, + int pathBufferSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + TextEncoding, + ffi.Pointer, + ) +>() +external int FSRenameUnicode( + ffi.Pointer ref, + int nameLength, + ffi.Pointer name, + int textEncodingHint, + ffi.Pointer newRef, +); + +@Deprecated( + 'Use NSFileManager\'s -replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: instead. WARNING: FSReplaceObject does not work correctly in sandboxed apps.', +) +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + CFStringRef, + CFStringRef, + ffi.Pointer, + OptionBits, + ffi.Pointer, + ) +>() +external int FSReplaceObject( + ffi.Pointer originalObject, + ffi.Pointer replacementObject, + CFStringRef newName, + CFStringRef temporaryName, + ffi.Pointer temporaryDirectory, + int flags, + ffi.Pointer resultObject, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + AliasHandle, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSResolveAlias( + ffi.Pointer fromFile, + AliasHandle alias, + ffi.Pointer target, + ffi.Pointer wasChanged, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + Boolean, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSResolveAliasFile( + ffi.Pointer theRef, + int resolveAliasChains, + ffi.Pointer targetIsFolder, + ffi.Pointer wasAliased, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + Boolean, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +>() +external int FSResolveAliasFileWithMountFlags( + ffi.Pointer theRef, + int resolveAliasChains, + ffi.Pointer targetIsFolder, + ffi.Pointer wasAliased, + int mountFlags, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + AliasHandle, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +>() +external int FSResolveAliasWithMountFlags( + ffi.Pointer fromFile, + AliasHandle inAlias, + ffi.Pointer target, + ffi.Pointer wasChanged, + int mountFlags, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSResolveNodeID(int volume, int nodeID, FSRefPtr newRef); + +@Deprecated('Deprecated') +@ffi.Native< + Boolean Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSResourceFileAlreadyOpen( + ffi.Pointer resourceFileRef, + ffi.Pointer inChain, + ffi.Pointer refNum, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + ) +>() +external int FSSetCatalogInfo( + ffi.Pointer ref, + int whichInfo, + ffi.Pointer catalogInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSSetForkPosition( + int forkRefNum, + int positionMode, + int positionOffset, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FSSetForkSize( + int forkRefNum, + int positionMode, + int positionOffset, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(FSVolumeRefNum, FSVolumeInfoBitmap, ffi.Pointer) +>() +external int FSSetVolumeInfo( + int volume, + int whichInfo, + ffi.Pointer info, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSUnlinkObject(ffi.Pointer ref); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(FSIORefNum, UInt16, SInt64, UInt64, ffi.Pointer) +>() +external int FSUnlockRange( + int forkRefNum, + int positionMode, + int positionOffset, + int requestCount, + ffi.Pointer rangeStart, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeRefNum, + OptionBits, + FSVolumeOperation, + ffi.Pointer, + FSVolumeUnmountUPP, + CFRunLoopRef, + CFStringRef, + ) +>() +external int FSUnmountVolumeAsync( + int vRefNum, + int flags, + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + FSVolumeUnmountUPP callback, + CFRunLoopRef runloop, + CFStringRef runloopMode, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSUnmountVolumeSync( + int vRefNum, + int flags, + ffi.Pointer dissenter, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + AliasHandle, + ffi.Pointer, + ) +>() +external int FSUpdateAlias( + ffi.Pointer fromFile, + ffi.Pointer target, + AliasHandle alias, + ffi.Pointer wasChanged, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int FSVolumeMount( + BytePtr buffer, + ffi.Pointer mountedVolume, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSIORefNum, + UInt16, + SInt64, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FSWriteFork( + int forkRefNum, + int positionMode, + int positionOffset, + int requestCount, + ffi.Pointer buffer, + ffi.Pointer actualCount, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + FSVolumeRefNum, + OSType, + Boolean, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int FindFolder( + int vRefNum, + int folderType, + int createFolder, + ffi.Pointer foundVRefNum, + ffi.Pointer foundDirID, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external Component FindNextComponent( + Component aComponent, + ffi.Pointer looking, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int Fix2Frac(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external int Fix2Long(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external double Fix2X(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external int FixATan2(int x, int y); + +@Deprecated('Deprecated') +@ffi.Native() +external int FixDiv(int x, int y); + +@Deprecated('Deprecated') +@ffi.Native() +external int FixMul(int a, int b); + +@Deprecated('Deprecated') +@ffi.Native() +external int FixRatio(int numer, int denom); + +@Deprecated('Deprecated') +@ffi.Native() +external int FixRound(int x); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(Collection, CollectionFlattenUPP, ffi.Pointer) +>() +external int FlattenCollection( + Collection c, + CollectionFlattenUPP flattenProc, + ffi.Pointer refCon, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int FlattenCollectionToHdl(Collection aCollection, Handle flattened); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionFlattenUPP, + ffi.Pointer, + SInt32, + SInt32, + ) +>() +external int FlattenPartialCollection( + Collection c, + CollectionFlattenUPP flattenProc, + ffi.Pointer refCon, + int whichAttributes, + int matchingAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int Frac2Fix(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external double Frac2X(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external int FracCos(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external int FracDiv(int x, int y); + +@Deprecated('Deprecated') +@ffi.Native() +external int FracMul(int x, int y); + +@Deprecated('Deprecated') +@ffi.Native() +external int FracSin(int x); + +@Deprecated('Deprecated') +@ffi.Native() +external int FracSqrt(int x); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int Gestalt(int selector, ffi.Pointer response); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle Get1IndResource(int theType, int itemIndex); + +@Deprecated('Deprecated') +@ffi.Native, ResourceIndex)>() +external void Get1IndType(ffi.Pointer theType, int itemIndex); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle Get1NamedResource(int theType, ConstStr255Param name); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle Get1Resource(int theType, int theID); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetAliasSize(AliasHandle alias); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetAliasSizeFromPtr(ffi.Pointer alias); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetAliasUserType(AliasHandle alias); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetAliasUserTypeFromPtr(ffi.Pointer alias); + +@Deprecated('No longer supported') +@ffi.Native() +external int GetCPUSpeed(); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetCollectionDefaultAttributes(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external CollectionExceptionUPP GetCollectionExceptionProc(Collection c); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionTag, + SInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetCollectionItem( + Collection c, + int tag, + int id, + ffi.Pointer itemSize, + ffi.Pointer itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetCollectionItemHdl( + Collection aCollection, + int tag, + int id, + Handle itemData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionTag, + SInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetCollectionItemInfo( + Collection c, + int tag, + int id, + ffi.Pointer itemIndex, + ffi.Pointer itemSize, + ffi.Pointer attributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetCollectionRetainCount(Collection c); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(Component, ffi.Pointer, SInt16, SInt16) +>() +external int GetComponentIndString( + Component aComponent, + ffi.Pointer theString, + int strListID, + int index$1, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Component, + ffi.Pointer, + Handle, + Handle, + Handle, + ) +>() +external int GetComponentInfo( + Component aComponent, + ffi.Pointer cd, + Handle componentName, + Handle componentInfo, + Handle componentIcon, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetComponentInstanceError(ComponentInstance aComponentInstance); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle GetComponentInstanceStorage( + ComponentInstance aComponentInstance, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetComponentListModSeed(); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(Component, ffi.Pointer, SInt16, SInt16) +>() +external int GetComponentPublicIndString( + Component aComponent, + ffi.Pointer theString, + int strListID, + int index$1, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetComponentPublicResource( + Component aComponent, + int resourceType, + int resourceID, + ffi.Pointer theResource, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + OSType, + SInt16, + SInt32, + ffi.Pointer, + GetMissingComponentResourceUPP, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetComponentPublicResourceList( + int resourceType, + int resourceID, + int flags, + ffi.Pointer cd, + GetMissingComponentResourceUPP missingProc, + ffi.Pointer refCon, + ffi.Pointer atomContainerPtr, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetComponentRefcon(Component aComponent); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetComponentResource( + Component aComponent, + int resType, + int resID, + ffi.Pointer theResource, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetComponentTypeModSeed(int componentType); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetCurrentProcess(ffi.Pointer pPSN); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetCurrentThread(ffi.Pointer currentThreadID); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native)>() +external int GetCustomIconsEnabled( + int vRefNum, + ffi.Pointer customIconsEnabled, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(UInt32, ffi.Pointer, ffi.Pointer) +>() +external int GetDebugComponentInfo( + int itemIndex, + ffi.Pointer componentSignature, + ffi.Pointer componentName, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + UInt32, + OSType, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetDebugOptionInfo( + int itemIndex, + int componentSignature, + ffi.Pointer optionSelectorNum, + ffi.Pointer optionName, + ffi.Pointer optionSetting, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetDefaultThreadStackSize( + int threadStyle, + ffi.Pointer stackSize, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + FSVolumeRefNum, + OSType, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetFolderNameUnicode( + int vRefNum, + int foldType, + ffi.Pointer foundVRefNum, + ffi.Pointer name, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(UInt32, ffi.Pointer, ffi.Pointer) +>() +external int GetFolderTypes( + int requestedTypeCount, + ffi.Pointer totalTypeCount, + ffi.Pointer theTypes, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetFrontProcess(ffi.Pointer pPSN); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetHandleSize(Handle h); + +@ffi.Native() +external int GetIconFamilyData( + IconFamilyHandle iconFamily, + int iconType, + Handle h, +); + +@Deprecated('Use -[NSWorkspace iconForFile:] instead.') +@ffi.Native)>() +external int GetIconRef( + int vRefNum, + int creator, + int iconType, + ffi.Pointer theIconRef, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native)>() +external int GetIconRefFromComponent( + Component inComponent, + ffi.Pointer outIconRef, +); + +@Deprecated('Use -[NSWorkspace iconForFile:] instead.') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + UniCharCount, + ffi.Pointer, + FSCatalogInfoBitmap, + ffi.Pointer, + IconServicesUsageFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetIconRefFromFileInfo( + ffi.Pointer inRef, + int inFileNameLength, + ffi.Pointer inFileName, + int inWhichInfo, + ffi.Pointer inCatalogInfo, + int inUsageFlags, + ffi.Pointer outIconRef, + ffi.Pointer outLabel, +); + +@Deprecated('Use -[NSWorkspace iconForFile:] instead.') +@ffi.Native< + OSErr Function(SInt16, SInt32, SInt32, SInt8, SInt8, ffi.Pointer) +>() +external int GetIconRefFromFolder( + int vRefNum, + int parentFolderID, + int folderID, + int attributes, + int accessPrivileges, + ffi.Pointer theIconRef, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native< + OSStatus Function(ffi.Pointer, Size, ffi.Pointer) +>() +external int GetIconRefFromIconFamilyPtr( + ffi.Pointer inIconFamilyPtr, + int inSize, + ffi.Pointer outIconRef, +); + +@Deprecated('Use -[NSWorkspace iconForFileType:] instead.') +@ffi.Native< + OSErr Function( + OSType, + OSType, + CFStringRef, + CFStringRef, + IconServicesUsageFlags, + ffi.Pointer, + ) +>() +external int GetIconRefFromTypeInfo( + int inCreator, + int inType, + CFStringRef inExtension, + CFStringRef inMIMEType, + int inUsageFlags, + ffi.Pointer outIconRef, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native)>() +external int GetIconRefOwners(IconRef theIconRef, ffi.Pointer owners); + +@ffi.Native)>() +external IconRef GetIconRefVariant( + IconRef inIconRef, + int inVariant, + ffi.Pointer outTransform, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle GetIndResource(int theType, int itemIndex); + +@Deprecated('Deprecated') +@ffi.Native, ResourceIndex)>() +external void GetIndType(ffi.Pointer theType, int itemIndex); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int GetIndVoice(int index$1, ffi.Pointer voice); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(Collection, SInt32, ffi.Pointer, ffi.Pointer) +>() +external int GetIndexedCollectionItem( + Collection c, + int itemIndex, + ffi.Pointer itemSize, + ffi.Pointer itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetIndexedCollectionItemHdl( + Collection aCollection, + int itemIndex, + Handle itemData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + SInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetIndexedCollectionItemInfo( + Collection c, + int itemIndex, + ffi.Pointer tag, + ffi.Pointer id, + ffi.Pointer itemSize, + ffi.Pointer attributes, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetIndexedCollectionTag( + Collection c, + int tagIndex, + ffi.Pointer tag, +); + +@ffi.Native Function(OSStatus)>() +external ffi.Pointer GetMacOSStatusCommentString(int err); + +@ffi.Native Function(OSStatus)>() +external ffi.Pointer GetMacOSStatusErrorString(int err); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetMaxResourceSize(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle GetNamedResource(int theType, ConstStr255Param name); + +@Deprecated('Deprecated') +@ffi.Native() +external Collection GetNewCollection(int collectionID); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle GetNextFOND(Handle fondHandle); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetNextProcess(ffi.Pointer pPSN); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetNextResourceFile( + int curRefNum, + ffi.Pointer nextRefNum, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int GetProcessBundleLocation( + ffi.Pointer psn, + ffi.Pointer location, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetProcessForPID(int pid, ffi.Pointer psn); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer) +>() +external int GetProcessInformation( + ffi.Pointer PSN, + ffi.Pointer info, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int GetProcessPID( + ffi.Pointer psn, + ffi.Pointer pid, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetPtrSize(Ptr p); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetResAttrs(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetResFileAttrs(int refNum); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + Handle, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void GetResInfo( + Handle theResource, + ffi.Pointer theID, + ffi.Pointer theType, + ffi.Pointer name, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle GetResource(int theType, int theID); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetResourceSizeOnDisk(Handle theResource); + +@ffi.Native< + OSStatus Function( + TextEncoding, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetScriptInfoFromTextEncoding( + int iEncoding, + ffi.Pointer oTextScriptID, + ffi.Pointer oTextLanguageID, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int GetScriptManagerVariable(int selector); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int GetSpeechInfo( + SpeechChannel chan, + int selector, + ffi.Pointer speechInfo, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int GetSpeechPitch(SpeechChannel chan, ffi.Pointer pitch); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int GetSpeechRate(SpeechChannel chan, ffi.Pointer rate); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionTag, + SInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetTaggedCollectionItem( + Collection c, + int tag, + int whichItem, + ffi.Pointer itemSize, + ffi.Pointer itemData, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Collection, + CollectionTag, + SInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int GetTaggedCollectionItemInfo( + Collection c, + int tag, + int whichItem, + ffi.Pointer id, + ffi.Pointer itemIndex, + ffi.Pointer itemSize, + ffi.Pointer attributes, +); + +@ffi.Native() +external int GetTextEncodingBase(int encoding); + +@ffi.Native() +external int GetTextEncodingFormat(int encoding); + +@ffi.Native< + OSStatus Function(ScriptCode, LangCode, RegionCode, ffi.Pointer) +>() +external int GetTextEncodingFromScriptInfo( + int iTextScriptID, + int iTextLanguageID, + int iTextRegionID, + ffi.Pointer oEncoding, +); + +@ffi.Native< + OSStatus Function( + TextEncoding, + TextEncodingNameSelector, + RegionCode, + TextEncoding, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + TextPtr, + ) +>() +external int GetTextEncodingName( + int iEncoding, + int iNamePartSelector, + int iPreferredRegion, + int iPreferredEncoding, + int iOutputBufLen, + ffi.Pointer oNameLength, + ffi.Pointer oActualRegion, + ffi.Pointer oActualEncoding, + TextPtr oEncodingName, +); + +@ffi.Native() +external int GetTextEncodingVariant(int encoding); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetThreadCurrentTaskRef(ffi.Pointer threadTRef); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetThreadState( + int threadToGet, + ffi.Pointer threadState, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetThreadStateGivenTaskRef( + ThreadTaskRef threadTRef, + int threadToGet, + ffi.Pointer threadState, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int GetTopResourceFile(ffi.Pointer refNum); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) +>() +external int GetVoiceDescription( + ffi.Pointer voice, + ffi.Pointer info, + int infoLength, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(ffi.Pointer, OSType, ffi.Pointer) +>() +external int GetVoiceInfo( + ffi.Pointer voice, + int selector, + ffi.Pointer voiceInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void HClrRBit(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external int HGetState(Handle h); + +@ffi.Native)>() +external int HIShapeContainsPoint( + HIShapeRef inShape, + ffi.Pointer inPoint, +); + +@ffi.Native() +external HIShapeRef HIShapeCreateCopy(HIShapeRef inShape); + +@ffi.Native() +external HIShapeRef HIShapeCreateDifference( + HIShapeRef inShape1, + HIShapeRef inShape2, +); + +@ffi.Native() +external HIShapeRef HIShapeCreateEmpty(); + +@ffi.Native() +external HIShapeRef HIShapeCreateIntersection( + HIShapeRef inShape1, + HIShapeRef inShape2, +); + +@ffi.Native() +external HIMutableShapeRef HIShapeCreateMutable(); + +@ffi.Native() +external HIMutableShapeRef HIShapeCreateMutableCopy(HIShapeRef inOrig); + +@ffi.Native)>() +external HIMutableShapeRef HIShapeCreateMutableWithRect( + ffi.Pointer inRect, +); + +@ffi.Native() +external HIShapeRef HIShapeCreateUnion( + HIShapeRef inShape1, + HIShapeRef inShape2, +); + +@ffi.Native() +external HIShapeRef HIShapeCreateWithQDRgn(RgnHandle inRgn); + +@ffi.Native)>() +external HIShapeRef HIShapeCreateWithRect(ffi.Pointer inRect); + +@ffi.Native() +external HIShapeRef HIShapeCreateXor(HIShapeRef inShape1, HIShapeRef inShape2); + +@ffi.Native() +external int HIShapeDifference( + HIShapeRef inShape1, + HIShapeRef inShape2, + HIMutableShapeRef outResult, +); + +@ffi.Native< + OSStatus Function( + HIShapeRef, + OptionBits, + HIShapeEnumerateProcPtr, + ffi.Pointer, + ) +>() +external int HIShapeEnumerate( + HIShapeRef inShape, + int inOptions, + HIShapeEnumerateProcPtr inProc, + ffi.Pointer inRefcon, +); + +@ffi.Native() +external int HIShapeGetAsQDRgn(HIShapeRef inShape, RgnHandle outRgn); + +@ffi.Native< + ffi.Pointer Function(HIShapeRef, ffi.Pointer) +>() +external ffi.Pointer HIShapeGetBounds( + HIShapeRef inShape, + ffi.Pointer outRect, +); + +@ffi.Native() +external int HIShapeGetTypeID(); + +@ffi.Native() +external int HIShapeInset(HIMutableShapeRef inShape, double inDX, double inDY); + +@ffi.Native() +external int HIShapeIntersect( + HIShapeRef inShape1, + HIShapeRef inShape2, + HIMutableShapeRef outResult, +); + +@ffi.Native)>() +external int HIShapeIntersectsRect( + HIShapeRef inShape, + ffi.Pointer inRect, +); + +@ffi.Native() +external int HIShapeIsEmpty(HIShapeRef inShape); + +@ffi.Native() +external int HIShapeIsRectangular(HIShapeRef inShape); + +@ffi.Native() +external int HIShapeOffset(HIMutableShapeRef inShape, double inDX, double inDY); + +@ffi.Native() +external int HIShapeReplacePathInCGContext( + HIShapeRef inShape, + CGContextRef inContext, +); + +@ffi.Native() +external int HIShapeSetEmpty(HIMutableShapeRef inShape); + +@ffi.Native() +external int HIShapeSetWithShape( + HIMutableShapeRef inDestShape, + HIShapeRef inSrcShape, +); + +@ffi.Native() +external int HIShapeUnion( + HIShapeRef inShape1, + HIShapeRef inShape2, + HIMutableShapeRef outResult, +); + +@ffi.Native)>() +external int HIShapeUnionWithRect( + HIMutableShapeRef inShape, + ffi.Pointer inRect, +); + +@ffi.Native() +external int HIShapeXor( + HIShapeRef inShape1, + HIShapeRef inShape2, + HIMutableShapeRef outResult, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void HLock(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external void HLockHi(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external void HSetRBit(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external void HSetState(Handle h, int flags); + +@Deprecated('Deprecated') +@ffi.Native() +external void HUnlock(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external int HandAndHand(Handle hand1, Handle hand2); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int HandToHand(ffi.Pointer theHndl); + +@Deprecated('Deprecated') +@ffi.Native() +external int HomeResFile(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICAddMapEntry( + ICInstance inst, + Handle entries, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, ICProfileID, ffi.Pointer) +>() +external int ICAddProfile( + ICInstance inst, + int prototypeID, + ffi.Pointer newID, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICBegin(ICInstance inst, int perm); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICCountMapEntries( + ICInstance inst, + Handle entries, + ffi.Pointer count, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICCountPref(ICInstance inst, ffi.Pointer count); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICCountProfiles(ICInstance inst, ffi.Pointer count); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, OSType, Handle, ffi.Pointer) +>() +external int ICCreateGURLEvent( + ICInstance inst, + int helperCreator, + Handle urlH, + ffi.Pointer theEvent, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICDeleteMapEntry(ICInstance inst, Handle entries, int pos); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICDeletePref(ICInstance inst, ConstStr255Param key); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICDeleteProfile(ICInstance inst, int thisID); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICEditPreferences(ICInstance inst, ConstStr255Param key); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICEnd(ICInstance inst); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, ConstStr255Param, ffi.Pointer, Handle) +>() +external int ICFindPrefHandle( + ICInstance inst, + ConstStr255Param key, + ffi.Pointer attr, + Handle prefh, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, Boolean, ffi.Pointer) +>() +external int ICGetConfigName( + ICInstance inst, + int longname, + ffi.Pointer name, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICGetCurrentProfile( + ICInstance inst, + ffi.Pointer currentID, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICGetDefaultPref( + ICInstance inst, + ConstStr255Param key, + Handle prefH, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + Handle, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ICGetIndMapEntry( + ICInstance inst, + Handle entries, + int index$1, + ffi.Pointer pos, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, ffi.Long, ffi.Pointer) +>() +external int ICGetIndPref( + ICInstance inst, + int index$1, + ffi.Pointer key, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICGetIndProfile( + ICInstance inst, + int index$1, + ffi.Pointer thisID, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, Handle, ffi.Long, ffi.Pointer) +>() +external int ICGetMapEntry( + ICInstance inst, + Handle entries, + int pos, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICGetPerm(ICInstance inst, ffi.Pointer perm); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + ConstStr255Param, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ICGetPref( + ICInstance inst, + ConstStr255Param key, + ffi.Pointer attr, + ffi.Pointer buf, + ffi.Pointer size, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + ConstStr255Param, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ICGetPrefHandle( + ICInstance inst, + ConstStr255Param key, + ffi.Pointer attr, + ffi.Pointer prefh, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, ICProfileID, ffi.Pointer) +>() +external int ICGetProfileName( + ICInstance inst, + int thisID, + ffi.Pointer name, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICGetSeed(ICInstance inst, ffi.Pointer seed); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICGetVersion( + ICInstance inst, + int whichVersion, + ffi.Pointer version, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + ConstStr255Param, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ICLaunchURL( + ICInstance inst, + ConstStr255Param hint, + ffi.Pointer data, + int len, + ffi.Pointer selStart, + ffi.Pointer selEnd, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + Handle, + ConstStr255Param, + ffi.Pointer, + ) +>() +external int ICMapEntriesFilename( + ICInstance inst, + Handle entries, + ConstStr255Param filename, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + Handle, + OSType, + OSType, + ConstStr255Param, + ffi.Pointer, + ) +>() +external int ICMapEntriesTypeCreator( + ICInstance inst, + Handle entries, + int fType, + int fCreator, + ConstStr255Param filename, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, ConstStr255Param, ffi.Pointer) +>() +external int ICMapFilename( + ICInstance inst, + ConstStr255Param filename, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + OSType, + OSType, + ConstStr255Param, + ffi.Pointer, + ) +>() +external int ICMapTypeCreator( + ICInstance inst, + int fType, + int fCreator, + ConstStr255Param filename, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + ConstStr255Param, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + Handle, + ) +>() +external int ICParseURL( + ICInstance inst, + ConstStr255Param hint, + ffi.Pointer data, + int len, + ffi.Pointer selStart, + ffi.Pointer selEnd, + Handle url, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ICSendGURLEvent(ICInstance inst, ffi.Pointer theEvent); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICSetCurrentProfile(ICInstance inst, int newID); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(ICInstance, Handle, ffi.Long, ffi.Pointer) +>() +external int ICSetMapEntry( + ICInstance inst, + Handle entries, + int pos, + ffi.Pointer entry, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ICInstance, + ConstStr255Param, + ICAttr, + ffi.Pointer, + ffi.Long, + ) +>() +external int ICSetPref( + ICInstance inst, + ConstStr255Param key, + int attr, + ffi.Pointer buf, + int size, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICSetPrefHandle( + ICInstance inst, + ConstStr255Param key, + int attr, + Handle prefh, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICSetProfileName( + ICInstance inst, + int thisID, + ConstStr255Param name, +); + +@Deprecated('Deprecated') +@ffi.Native, OSType)>() +external int ICStart(ffi.Pointer inst, int signature); + +@Deprecated('Deprecated') +@ffi.Native() +external int ICStop(ICInstance inst); + +@ffi.Native< + CFMutableDictionaryRef Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ) +>() +external CFMutableDictionaryRef IOBSDNameMatching( + int mainPort, + int options, + ffi.Pointer bsdName, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int IOCatalogueGetData( + int mainPort, + int flag, + ffi.Pointer> buffer, + ffi.Pointer size, +); + +@ffi.Native)>() +external int IOCatalogueModuleLoaded(int mainPort, ffi.Pointer name); + +@ffi.Native() +external int IOCatalogueReset(int mainPort, int flag); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ) +>() +external int IOCatalogueSendData( + int mainPort, + int flag, + ffi.Pointer buffer, + int size, +); + +@ffi.Native< + kern_return_t Function(mach_port_t, ffi.Uint32, ffi.Pointer) +>() +external int IOCatalogueTerminate( + int mainPort, + int flag, + ffi.Pointer description, +); + +@ffi.Native() +external int IOConnectAddClient(int connect$1, int client); + +@ffi.Native() +external int IOConnectAddRef(int connect$1); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + mach_port_t, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallAsyncMethod( + int connection, + int selector, + int wake_port, + ffi.Pointer reference, + int referenceCnt, + ffi.Pointer input, + int inputCnt, + ffi.Pointer inputStruct, + int inputStructCnt, + ffi.Pointer output, + ffi.Pointer outputCnt, + ffi.Pointer outputStruct, + ffi.Pointer outputStructCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + mach_port_t, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallAsyncScalarMethod( + int connection, + int selector, + int wake_port, + ffi.Pointer reference, + int referenceCnt, + ffi.Pointer input, + int inputCnt, + ffi.Pointer output, + ffi.Pointer outputCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + mach_port_t, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallAsyncStructMethod( + int connection, + int selector, + int wake_port, + ffi.Pointer reference, + int referenceCnt, + ffi.Pointer inputStruct, + int inputStructCnt, + ffi.Pointer outputStruct, + ffi.Pointer outputStructCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallMethod( + int connection, + int selector, + ffi.Pointer input, + int inputCnt, + ffi.Pointer inputStruct, + int inputStructCnt, + ffi.Pointer output, + ffi.Pointer outputCnt, + ffi.Pointer outputStruct, + ffi.Pointer outputStructCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallScalarMethod( + int connection, + int selector, + ffi.Pointer input, + int inputCnt, + ffi.Pointer output, + ffi.Pointer outputCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOConnectCallStructMethod( + int connection, + int selector, + ffi.Pointer inputStruct, + int inputStructCnt, + ffi.Pointer outputStruct, + ffi.Pointer outputStructCnt, +); + +@ffi.Native)>() +external int IOConnectGetService( + int connect$1, + ffi.Pointer service, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + task_port_t, + ffi.Pointer, + ffi.Pointer, + IOOptionBits, + ) +>() +external int IOConnectMapMemory( + int connect$1, + int memoryType, + int intoTask, + ffi.Pointer atAddress, + ffi.Pointer ofSize, + int options, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + task_port_t, + ffi.Pointer, + ffi.Pointer, + IOOptionBits, + ) +>() +external int IOConnectMapMemory64( + int connect$1, + int memoryType, + int intoTask, + ffi.Pointer atAddress, + ffi.Pointer ofSize, + int options, +); + +@ffi.Native() +external int IOConnectRelease(int connect$1); + +@ffi.Native() +external int IOConnectSetCFProperties(int connect$1, CFTypeRef properties); + +@ffi.Native() +external int IOConnectSetCFProperty( + int connect$1, + CFStringRef propertyName, + CFTypeRef property, +); + +@ffi.Native< + kern_return_t Function(io_connect_t, ffi.Uint32, mach_port_t, ffi.UintPtr) +>() +external int IOConnectSetNotificationPort( + int connect$1, + int type, + int port, + int reference, +); + +@ffi.Native() +external int IOConnectTrap0(int connect$1, int index$1); + +@ffi.Native() +external int IOConnectTrap1(int connect$1, int index$1, int p1); + +@ffi.Native< + kern_return_t Function(io_connect_t, ffi.Uint32, ffi.UintPtr, ffi.UintPtr) +>() +external int IOConnectTrap2(int connect$1, int index$1, int p1, int p2); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ) +>() +external int IOConnectTrap3(int connect$1, int index$1, int p1, int p2, int p3); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ) +>() +external int IOConnectTrap4( + int connect$1, + int index$1, + int p1, + int p2, + int p3, + int p4, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ) +>() +external int IOConnectTrap5( + int connect$1, + int index$1, + int p1, + int p2, + int p3, + int p4, + int p5, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.UintPtr, + ) +>() +external int IOConnectTrap6( + int connect$1, + int index$1, + int p1, + int p2, + int p3, + int p4, + int p5, + int p6, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + task_port_t, + mach_vm_address_t, + ) +>() +external int IOConnectUnmapMemory( + int connect$1, + int memoryType, + int fromTask, + int atAddress, +); + +@ffi.Native< + kern_return_t Function( + io_connect_t, + ffi.Uint32, + task_port_t, + mach_vm_address_t, + ) +>() +external int IOConnectUnmapMemory64( + int connect$1, + int memoryType, + int fromTask, + int atAddress, +); + +@ffi.Native)>() +external int IOCreateReceivePort( + int msgType, + ffi.Pointer recvPort, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void IODispatchCalloutFromMessage( + ffi.Pointer unused, + ffi.Pointer msg, + ffi.Pointer reference, +); + +@ffi.Native() +external int IOIteratorIsValid(int iterator); + +@ffi.Native() +external int IOIteratorNext(int iterator); + +@ffi.Native() +external void IOIteratorReset(int iterator); + +@ffi.Native)>() +external int IOKitGetBusyState(int mainPort, ffi.Pointer busyState); + +@ffi.Native)>() +external int IOKitWaitQuiet( + int mainPort, + ffi.Pointer waitTime, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + IOOptionBits, + ) +>() +external int IOKitWaitQuietWithOptions( + int mainPort, + ffi.Pointer waitTime, + int options, +); + +@ffi.Native)>() +external int IOMainPort(int bootstrapPort, ffi.Pointer mainPort); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IOMasterPort(int bootstrapPort, ffi.Pointer mainPort); + +@ffi.Native() +external IONotificationPortRef IONotificationPortCreate(int mainPort); + +@ffi.Native() +external void IONotificationPortDestroy(IONotificationPortRef notify); + +@ffi.Native() +external int IONotificationPortGetMachPort(IONotificationPortRef notify); + +@ffi.Native() +external CFRunLoopSourceRef IONotificationPortGetRunLoopSource( + IONotificationPortRef notify, +); + +@ffi.Native( + symbol: 'IONotificationPortSetDispatchQueue', +) +external void _IONotificationPortSetDispatchQueue( + IONotificationPortRef notify, + dispatch_queue_t queue, +); + +void IONotificationPortSetDispatchQueue( + IONotificationPortRef notify, + Dartdispatch_queue_t queue, +) { + final _$$ref = queue.ref; + return _IONotificationPortSetDispatchQueue(notify, _$$ref.pointer); +} + +@ffi.Native() +external int IONotificationPortSetImportanceReceiver( + IONotificationPortRef notify, +); + +@ffi.Native)>() +external int IOObjectConformsTo(int object, ffi.Pointer className); + +@ffi.Native() +external CFStringRef IOObjectCopyBundleIdentifierForClass( + CFStringRef classname, +); + +@ffi.Native() +external CFStringRef IOObjectCopyClass(int object); + +@ffi.Native() +external CFStringRef IOObjectCopySuperclassForClass(CFStringRef classname); + +@ffi.Native)>() +external int IOObjectGetClass(int object, ffi.Pointer className); + +@ffi.Native() +external int IOObjectGetKernelRetainCount(int object); + +@ffi.Native() +external int IOObjectGetRetainCount(int object); + +@ffi.Native() +external int IOObjectGetUserRetainCount(int object); + +@ffi.Native() +external int IOObjectIsEqualTo(int object, int anObject); + +@ffi.Native() +external int IOObjectRelease(int object); + +@ffi.Native() +external int IOObjectRetain(int object); + +@Deprecated('Deprecated') +@ffi.Native< + CFMutableDictionaryRef Function( + mach_port_t, + ffi.Uint32, + ffi.Pointer, + ) +>() +external CFMutableDictionaryRef IOOpenFirmwarePathMatching( + int mainPort, + int options, + ffi.Pointer path, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + IOOptionBits, + ffi.Pointer, + ) +>() +external int IORegistryCreateIterator( + int mainPort, + ffi.Pointer plane, + int options, + ffi.Pointer iterator, +); + +@ffi.Native() +external int IORegistryEntryCopyFromPath(int mainPort, CFStringRef path); + +@ffi.Native)>() +external CFStringRef IORegistryEntryCopyPath( + int entry, + ffi.Pointer plane, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + CFAllocatorRef, + IOOptionBits, + ) +>() +external int IORegistryEntryCreateCFProperties( + int entry, + ffi.Pointer properties, + CFAllocatorRef allocator, + int options, +); + +@ffi.Native< + CFTypeRef Function( + io_registry_entry_t, + CFStringRef, + CFAllocatorRef, + IOOptionBits, + ) +>() +external CFTypeRef IORegistryEntryCreateCFProperty( + int entry, + CFStringRef key, + CFAllocatorRef allocator, + int options, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + IOOptionBits, + ffi.Pointer, + ) +>() +external int IORegistryEntryCreateIterator( + int entry, + ffi.Pointer plane, + int options, + ffi.Pointer iterator, +); + +@ffi.Native)>() +external int IORegistryEntryFromPath(int mainPort, ffi.Pointer path); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetChildEntry( + int entry, + ffi.Pointer plane, + ffi.Pointer child, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetChildIterator( + int entry, + ffi.Pointer plane, + ffi.Pointer iterator, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetLocationInPlane( + int entry, + ffi.Pointer plane, + ffi.Pointer location, +); + +@ffi.Native< + kern_return_t Function(io_registry_entry_t, ffi.Pointer) +>() +external int IORegistryEntryGetName(int entry, ffi.Pointer name); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetNameInPlane( + int entry, + ffi.Pointer plane, + ffi.Pointer name, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetParentEntry( + int entry, + ffi.Pointer plane, + ffi.Pointer parent, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetParentIterator( + int entry, + ffi.Pointer plane, + ffi.Pointer iterator, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetPath( + int entry, + ffi.Pointer plane, + ffi.Pointer path, +); + +@ffi.Native< + kern_return_t Function( + io_registry_entry_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IORegistryEntryGetProperty( + int entry, + ffi.Pointer propertyName, + ffi.Pointer buffer, + ffi.Pointer size, +); + +@ffi.Native< + kern_return_t Function(io_registry_entry_t, ffi.Pointer) +>() +external int IORegistryEntryGetRegistryEntryID( + int entry, + ffi.Pointer entryID, +); + +@ffi.Native() +external CFMutableDictionaryRef IORegistryEntryIDMatching(int entryID); + +@ffi.Native)>() +external int IORegistryEntryInPlane(int entry, ffi.Pointer plane); + +@ffi.Native< + CFTypeRef Function( + io_registry_entry_t, + ffi.Pointer, + CFStringRef, + CFAllocatorRef, + IOOptionBits, + ) +>() +external CFTypeRef IORegistryEntrySearchCFProperty( + int entry, + ffi.Pointer plane, + CFStringRef key, + CFAllocatorRef allocator, + int options, +); + +@ffi.Native() +external int IORegistryEntrySetCFProperties(int entry, CFTypeRef properties); + +@ffi.Native< + kern_return_t Function(io_registry_entry_t, CFStringRef, CFTypeRef) +>() +external int IORegistryEntrySetCFProperty( + int entry, + CFStringRef propertyName, + CFTypeRef property, +); + +@ffi.Native() +external int IORegistryGetRootEntry(int mainPort); + +@ffi.Native() +external int IORegistryIteratorEnterEntry(int iterator); + +@ffi.Native() +external int IORegistryIteratorExitEntry(int iterator); + +@ffi.Native< + kern_return_t Function( + IONotificationPortRef, + io_service_t, + ffi.Pointer, + IOServiceInterestCallback, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOServiceAddInterestNotification( + IONotificationPortRef notifyPort, + int service, + ffi.Pointer interestType, + IOServiceInterestCallback callback, + ffi.Pointer refCon, + ffi.Pointer notification, +); + +@ffi.Native< + kern_return_t Function( + IONotificationPortRef, + ffi.Pointer, + CFDictionaryRef, + IOServiceMatchingCallback, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOServiceAddMatchingNotification( + IONotificationPortRef notifyPort, + ffi.Pointer notificationType, + CFDictionaryRef matching, + IOServiceMatchingCallback callback, + ffi.Pointer refCon, + ffi.Pointer notification, +); + +@Deprecated('Deprecated') +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + CFDictionaryRef, + mach_port_t, + ffi.UintPtr, + ffi.Pointer, + ) +>() +external int IOServiceAddNotification( + int mainPort, + ffi.Pointer notificationType, + CFDictionaryRef matching, + int wakePort, + int reference, + ffi.Pointer notification, +); + +@ffi.Native() +external int IOServiceAuthorize(int service, int options); + +@ffi.Native() +external int IOServiceClose(int connect$1); + +@ffi.Native)>() +external int IOServiceGetBusyState( + int service, + ffi.Pointer busyState, +); + +@ffi.Native() +external int IOServiceGetMatchingService( + int mainPort, + CFDictionaryRef matching, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int IOServiceGetMatchingServices( + int mainPort, + CFDictionaryRef matching, + ffi.Pointer existing, +); + +@ffi.Native< + kern_return_t Function(io_service_t, CFDictionaryRef, ffi.Pointer) +>() +external int IOServiceMatchPropertyTable( + int service, + CFDictionaryRef matching, + ffi.Pointer matches, +); + +@ffi.Native)>() +external CFMutableDictionaryRef IOServiceMatching(ffi.Pointer name); + +@ffi.Native)>() +external CFMutableDictionaryRef IOServiceNameMatching( + ffi.Pointer name, +); + +@Deprecated('Deprecated') +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int IOServiceOFPathToBSDName( + int mainPort, + ffi.Pointer openFirmwarePath, + ffi.Pointer bsdName, +); + +@ffi.Native< + kern_return_t Function( + io_service_t, + task_port_t, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int IOServiceOpen( + int service, + int owningTask, + int type, + ffi.Pointer connect$1, +); + +@ffi.Native() +external int IOServiceOpenAsFileDescriptor(int service, int oflag); + +@ffi.Native() +external int IOServiceRequestProbe(int service, int options); + +@ffi.Native< + kern_return_t Function(io_service_t, ffi.Pointer) +>() +external int IOServiceWaitQuiet( + int service, + ffi.Pointer waitTime, +); + +@ffi.Native() +external int IOSurfaceAlignProperty(CFStringRef property, int value); + +@ffi.Native() +external int IOSurfaceAllowsPixelSizeCasting(IOSurfaceRef buffer); + +@ffi.Native() +external CFDictionaryRef IOSurfaceCopyAllValues(IOSurfaceRef buffer); + +@ffi.Native() +external CFTypeRef IOSurfaceCopyValue(IOSurfaceRef buffer, CFStringRef key); + +@ffi.Native() +external IOSurfaceRef IOSurfaceCreate(CFDictionaryRef properties); + +@ffi.Native() +external int IOSurfaceCreateMachPort(IOSurfaceRef buffer); + +@ffi.Native( + symbol: 'IOSurfaceCreateXPCObject', +) +external xpc_object_t _IOSurfaceCreateXPCObject(IOSurfaceRef aSurface); + +Dartxpc_object_t IOSurfaceCreateXPCObject(IOSurfaceRef aSurface) { + return objc.NSObject.fromPointer( + _IOSurfaceCreateXPCObject(aSurface), + retain: false, + release: true, + ); +} + +@ffi.Native() +external void IOSurfaceDecrementUseCount(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetAllocSize(IOSurfaceRef buffer); + +@ffi.Native Function(IOSurfaceRef)>() +external ffi.Pointer IOSurfaceGetBaseAddress(IOSurfaceRef buffer); + +@ffi.Native Function(IOSurfaceRef, ffi.Size)>() +external ffi.Pointer IOSurfaceGetBaseAddressOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetBitDepthOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +); + +@ffi.Native() +external int IOSurfaceGetBitOffsetOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +); + +@ffi.Native() +external int IOSurfaceGetBytesPerElement(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetBytesPerElementOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetBytesPerRow(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetBytesPerRowOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetElementHeight(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetElementHeightOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetElementWidth(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetElementWidthOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetHeight(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetHeightOfPlane(IOSurfaceRef buffer, int planeIndex); + +@ffi.Native() +external int IOSurfaceGetID(IOSurfaceRef buffer); + +@ffi.Native( + symbol: 'IOSurfaceGetNameOfComponentOfPlane', +) +external int _IOSurfaceGetNameOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +); + +IOSurfaceComponentName IOSurfaceGetNameOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +) { + return IOSurfaceComponentName.fromValue( + _IOSurfaceGetNameOfComponentOfPlane(buffer, planeIndex, componentIndex), + ); +} + +@ffi.Native() +external int IOSurfaceGetNumberOfComponentsOfPlane( + IOSurfaceRef buffer, + int planeIndex, +); + +@ffi.Native() +external int IOSurfaceGetPixelFormat(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetPlaneCount(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetPropertyAlignment(CFStringRef property); + +@ffi.Native() +external int IOSurfaceGetPropertyMaximum(CFStringRef property); + +@ffi.Native( + symbol: 'IOSurfaceGetRangeOfComponentOfPlane', +) +external int _IOSurfaceGetRangeOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +); + +IOSurfaceComponentRange IOSurfaceGetRangeOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +) { + return IOSurfaceComponentRange.fromValue( + _IOSurfaceGetRangeOfComponentOfPlane(buffer, planeIndex, componentIndex), + ); +} + +@ffi.Native() +external int IOSurfaceGetSeed(IOSurfaceRef buffer); + +@ffi.Native(symbol: 'IOSurfaceGetSubsampling') +external int _IOSurfaceGetSubsampling(IOSurfaceRef buffer); + +IOSurfaceSubsampling IOSurfaceGetSubsampling(IOSurfaceRef buffer) { + return IOSurfaceSubsampling.fromValue(_IOSurfaceGetSubsampling(buffer)); +} + +@ffi.Native() +external int IOSurfaceGetTypeID(); + +@ffi.Native( + symbol: 'IOSurfaceGetTypeOfComponentOfPlane', +) +external int _IOSurfaceGetTypeOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +); + +IOSurfaceComponentType IOSurfaceGetTypeOfComponentOfPlane( + IOSurfaceRef buffer, + int planeIndex, + int componentIndex, +) { + return IOSurfaceComponentType.fromValue( + _IOSurfaceGetTypeOfComponentOfPlane(buffer, planeIndex, componentIndex), + ); +} + +@ffi.Native() +external int IOSurfaceGetUseCount(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetWidth(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceGetWidthOfPlane(IOSurfaceRef buffer, int planeIndex); + +@ffi.Native() +external void IOSurfaceIncrementUseCount(IOSurfaceRef buffer); + +@ffi.Native() +external int IOSurfaceIsInUse(IOSurfaceRef buffer); + +@ffi.Native< + kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) +>() +external int IOSurfaceLock( + IOSurfaceRef buffer, + int options, + ffi.Pointer seed, +); + +@ffi.Native() +external IOSurfaceRef IOSurfaceLookup(int csid); + +@ffi.Native() +external IOSurfaceRef IOSurfaceLookupFromMachPort(int port); + +@ffi.Native( + symbol: 'IOSurfaceLookupFromXPCObject', +) +external IOSurfaceRef _IOSurfaceLookupFromXPCObject(xpc_object_t xobj); + +IOSurfaceRef IOSurfaceLookupFromXPCObject(Dartxpc_object_t xobj) { + final _$$ref = xobj.ref; + return _IOSurfaceLookupFromXPCObject(_$$ref.pointer); +} + +@ffi.Native() +external void IOSurfaceRemoveAllValues(IOSurfaceRef buffer); + +@ffi.Native() +external void IOSurfaceRemoveValue(IOSurfaceRef buffer, CFStringRef key); + +@ffi.Native< + kern_return_t Function(IOSurfaceRef, task_id_token_t, ffi.Int, ffi.Uint32) +>() +external int IOSurfaceSetOwnershipIdentity( + IOSurfaceRef buffer, + int task_id_token, + int newLedgerTag, + int newLedgerOptions, +); + +@ffi.Native< + kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) +>() +external int IOSurfaceSetPurgeable( + IOSurfaceRef buffer, + int newState, + ffi.Pointer oldState, +); + +@ffi.Native() +external void IOSurfaceSetValue( + IOSurfaceRef buffer, + CFStringRef key, + CFTypeRef value, +); + +@ffi.Native() +external void IOSurfaceSetValues( + IOSurfaceRef buffer, + CFDictionaryRef keysAndValues, +); + +@ffi.Native< + kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) +>() +external int IOSurfaceUnlock( + IOSurfaceRef buffer, + int options, + ffi.Pointer seed, +); + +@ffi.Native< + Boolean Function( + ffi.Pointer, + ffi.Pointer, + IconAlignmentType, + IconServicesUsageFlags, + IconRef, + ) +>() +external int IconRefContainsCGPoint( + ffi.Pointer testPt, + ffi.Pointer iconRect, + int align, + int iconServicesUsageFlags, + IconRef theIconRef, +); + +@ffi.Native< + Boolean Function( + ffi.Pointer, + ffi.Pointer, + IconAlignmentType, + IconServicesUsageFlags, + IconRef, + ) +>() +external int IconRefIntersectsCGRect( + ffi.Pointer testRect, + ffi.Pointer iconRect, + int align, + int iconServicesUsageFlags, + IconRef theIconRef, +); + +@ffi.Native< + HIShapeRef Function( + ffi.Pointer, + IconAlignmentType, + IconServicesUsageFlags, + IconRef, + ) +>() +external HIShapeRef IconRefToHIShape( + ffi.Pointer iconRect, + int align, + int iconServicesUsageFlags, + IconRef theIconRef, +); + +@ffi.Native< + OSErr Function(IconRef, IconSelectorValue, ffi.Pointer) +>() +external int IconRefToIconFamily( + IconRef theIconRef, + int whichIcons, + ffi.Pointer iconFamily, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IdentifyFolder( + int vRefNum, + int dirID, + ffi.Pointer foldType, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IncrementAtomic(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IncrementAtomic16(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IncrementAtomic8(ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native() +external void InsTime(QElemPtr tmTaskPtr); + +@Deprecated('Deprecated') +@ffi.Native() +external void InsXTime(QElemPtr tmTaskPtr); + +@Deprecated('Deprecated') +@ffi.Native() +external int InsertResourceFile(int refNum, int where); + +@Deprecated('Deprecated') +@ffi.Native() +external void InstallDebugAssertOutputHandler( + DebugAssertOutputHandlerUPP handler, +); + +@Deprecated('No longer support') +@ffi.Native() +external ExceptionHandlerTPP InstallExceptionHandler( + ExceptionHandlerTPP theHandler, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int InstallTimeTask(QElemPtr tmTaskPtr); + +@Deprecated('Deprecated') +@ffi.Native() +external int InstallXTimeTask(QElemPtr tmTaskPtr); + +@Deprecated('Deprecated') +@ffi.Native() +external int InvalidateFolderDescriptorCache(int vRefNum, int dirID); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + DescType, + SRefCon, + ffi.Pointer, + AECoerceDescUPP, + ) +>() +external int InvokeAECoerceDescUPP( + ffi.Pointer fromDesc, + int toType, + SRefCon handlerRefcon, + ffi.Pointer toDesc, + AECoerceDescUPP userUPP, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + Size, + DescType, + SRefCon, + ffi.Pointer, + AECoercePtrUPP, + ) +>() +external int InvokeAECoercePtrUPP( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + int toType, + SRefCon handlerRefcon, + ffi.Pointer result, + AECoercePtrUPP userUPP, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, Size, SRefCon, AEDisposeExternalUPP) +>() +external void InvokeAEDisposeExternalUPP( + ffi.Pointer dataPtr, + int dataLength, + SRefCon refcon, + AEDisposeExternalUPP userUPP, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + SRefCon, + AEEventHandlerUPP, + ) +>() +external int InvokeAEEventHandlerUPP( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + SRefCon handlerRefcon, + AEEventHandlerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int InvokeCollectionExceptionUPP( + Collection c, + int status, + CollectionExceptionUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + SInt32, + ffi.Pointer, + ffi.Pointer, + CollectionFlattenUPP, + ) +>() +external int InvokeCollectionFlattenUPP( + int size, + ffi.Pointer data, + ffi.Pointer refCon, + CollectionFlattenUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + ffi.Pointer, + ComponentMPWorkFunctionHeaderRecordPtr, + ComponentMPWorkFunctionUPP, + ) +>() +external int InvokeComponentMPWorkFunctionUPP( + ffi.Pointer globalRefCon, + ComponentMPWorkFunctionHeaderRecordPtr header, + ComponentMPWorkFunctionUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentResult Function( + ffi.Pointer, + Handle, + ComponentRoutineUPP, + ) +>() +external int InvokeComponentRoutineUPP( + ffi.Pointer cp, + Handle componentStorage, + ComponentRoutineUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ConstStr255Param, + DebugAssertOutputHandlerUPP, + ) +>() +external void InvokeDebugAssertOutputHandlerUPP( + int componentSignature, + int options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + int lineNumber, + ffi.Pointer value, + ConstStr255Param outputMsg, + DebugAssertOutputHandlerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + SInt32, + UInt32, + ffi.Pointer, + DebugComponentCallbackUPP, + ) +>() +external void InvokeDebugComponentCallbackUPP( + int optionSelectorNum, + int command, + ffi.Pointer optionSetting, + DebugComponentCallbackUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeDebuggerDisposeThreadUPP( + int threadDeleted, + DebuggerDisposeThreadUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeDebuggerNewThreadUPP( + int threadCreated, + DebuggerNewThreadUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ThreadID Function(SchedulerInfoRecPtr, DebuggerThreadSchedulerUPP) +>() +external int InvokeDebuggerThreadSchedulerUPP( + SchedulerInfoRecPtr schedulerInfo, + DebuggerThreadSchedulerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeDeferredTaskUPP(int dtParam, DeferredTaskUPP userUPP); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function(ffi.Pointer, ExceptionHandlerUPP) +>() +external int InvokeExceptionHandlerUPP( + ffi.Pointer theException, + ExceptionHandlerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + FNMessage, + OptionBits, + ffi.Pointer, + FNSubscriptionRef, + FNSubscriptionUPP, + ) +>() +external void InvokeFNSubscriptionUPP( + int message, + int flags, + ffi.Pointer refcon, + FNSubscriptionRef subscription, + FNSubscriptionUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + FSVolumeOperation, + ffi.Pointer, + OSStatus, + FSVolumeRefNum, + pid_t, + FSVolumeEjectUPP, + ) +>() +external void InvokeFSVolumeEjectUPP( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + FSVolumeEjectUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + FSVolumeOperation, + ffi.Pointer, + OSStatus, + FSVolumeRefNum, + FSVolumeMountUPP, + ) +>() +external void InvokeFSVolumeMountUPP( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + int err, + int mountedVolumeRefNum, + FSVolumeMountUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + FSVolumeOperation, + ffi.Pointer, + OSStatus, + FSVolumeRefNum, + pid_t, + FSVolumeUnmountUPP, + ) +>() +external void InvokeFSVolumeUnmountUPP( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + FSVolumeUnmountUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + OSType, + ffi.Pointer, + ffi.Pointer, + FolderManagerNotificationUPP, + ) +>() +external int InvokeFolderManagerNotificationUPP( + int message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + FolderManagerNotificationUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + Component, + OSType, + SInt16, + ffi.Pointer, + ffi.Pointer, + GetMissingComponentResourceUPP, + ) +>() +external int InvokeGetMissingComponentResourceUPP( + Component c, + int resType, + int resID, + ffi.Pointer refCon, + ffi.Pointer resource, + GetMissingComponentResourceUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeIOCompletionUPP( + ParmBlkPtr paramBlock, + IOCompletionUPP userUPP, +); + +@ffi.Native< + OSErr Function( + ResType, + ffi.Pointer, + ffi.Pointer, + IconActionUPP, + ) +>() +external int InvokeIconActionUPP( + int theType, + ffi.Pointer theIcon, + ffi.Pointer yourDataPtr, + IconActionUPP userUPP, +); + +@ffi.Native, IconGetterUPP)>() +external Handle InvokeIconGetterUPP( + int theType, + ffi.Pointer yourDataPtr, + IconGetterUPP userUPP, +); + +@ffi.Native< + Boolean Function( + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + IndexToUCStringUPP, + ) +>() +external int InvokeIndexToUCStringUPP( + int index$1, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer outString, + ffi.Pointer tsOptions, + IndexToUCStringUPP userUPP, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + KCEvent, + ffi.Pointer, + ffi.Pointer, + KCCallbackUPP, + ) +>() +external int InvokeKCCallbackUPP( + int keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + KCCallbackUPP userUPP, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + DescType, + DescType, + ffi.Pointer, + ffi.Pointer, + SRefCon, + OSLAccessorUPP, + ) +>() +external int InvokeOSLAccessorUPP( + int desiredClass, + ffi.Pointer container, + int containerClass, + int form, + ffi.Pointer selectionData, + ffi.Pointer value, + SRefCon accessorRefcon, + OSLAccessorUPP userUPP, +); + +@ffi.Native< + OSErr Function( + ffi.Long, + ffi.Long, + ffi.Pointer, + OSLAdjustMarksUPP, + ) +>() +external int InvokeOSLAdjustMarksUPP( + int newStart, + int newStop, + ffi.Pointer markToken, + OSLAdjustMarksUPP userUPP, +); + +@ffi.Native< + OSErr Function( + DescType, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + OSLCompareUPP, + ) +>() +external int InvokeOSLCompareUPP( + int oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + OSLCompareUPP userUPP, +); + +@ffi.Native< + OSErr Function( + DescType, + DescType, + ffi.Pointer, + ffi.Pointer, + OSLCountUPP, + ) +>() +external int InvokeOSLCountUPP( + int desiredType, + int containerClass, + ffi.Pointer container, + ffi.Pointer result, + OSLCountUPP userUPP, +); + +@ffi.Native, OSLDisposeTokenUPP)>() +external int InvokeOSLDisposeTokenUPP( + ffi.Pointer unneededToken, + OSLDisposeTokenUPP userUPP, +); + +@ffi.Native< + OSErr Function(ffi.Pointer>, OSLGetErrDescUPP) +>() +external int InvokeOSLGetErrDescUPP( + ffi.Pointer> appDescPtr, + OSLGetErrDescUPP userUPP, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + DescType, + ffi.Pointer, + OSLGetMarkTokenUPP, + ) +>() +external int InvokeOSLGetMarkTokenUPP( + ffi.Pointer dContainerToken, + int containerClass, + ffi.Pointer result, + OSLGetMarkTokenUPP userUPP, +); + +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + OSLMarkUPP, + ) +>() +external int InvokeOSLMarkUPP( + ffi.Pointer dToken, + ffi.Pointer markToken, + int index$1, + OSLMarkUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeResErrUPP(int thErr, ResErrUPP userUPP); + +@Deprecated('Deprecated') +@ffi.Native, SelectorFunctionUPP)>() +external int InvokeSelectorFunctionUPP( + int selector, + ffi.Pointer response, + SelectorFunctionUPP userUPP, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int InvokeSleepQUPP( + int message, + SleepQRecPtr qRecPtr, + SleepQUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void InvokeSpeechDoneUPP( + SpeechChannel chan, + SRefCon refCon, + SpeechDoneUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + ffi.Void Function(SpeechChannel, SRefCon, OSErr, ffi.Long, SpeechErrorUPP) +>() +external void InvokeSpeechErrorUPP( + SpeechChannel chan, + SRefCon refCon, + int theError, + int bytePos, + SpeechErrorUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + ffi.Void Function(SpeechChannel, SRefCon, SInt16, SpeechPhonemeUPP) +>() +external void InvokeSpeechPhonemeUPP( + SpeechChannel chan, + SRefCon refCon, + int phonemeOpcode, + SpeechPhonemeUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external void InvokeSpeechSyncUPP( + SpeechChannel chan, + SRefCon refCon, + int syncMessage, + SpeechSyncUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + ffi.Void Function( + SpeechChannel, + SRefCon, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + SpeechTextDoneUPP, + ) +>() +external void InvokeSpeechTextDoneUPP( + SpeechChannel chan, + SRefCon refCon, + ffi.Pointer> nextBuf, + ffi.Pointer byteLen, + ffi.Pointer controlFlags, + SpeechTextDoneUPP userUPP, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + ffi.Void Function( + SpeechChannel, + SRefCon, + ffi.UnsignedLong, + UInt16, + SpeechWordUPP, + ) +>() +external void InvokeSpeechWordUPP( + SpeechChannel chan, + SRefCon refCon, + int wordPos, + int wordLen, + SpeechWordUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native, ThreadEntryUPP)>() +external voidPtr InvokeThreadEntryUPP( + ffi.Pointer threadParam, + ThreadEntryUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int InvokeThreadSchedulerUPP( + SchedulerInfoRecPtr schedulerInfo, + ThreadSchedulerUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(ThreadID, ffi.Pointer, ThreadSwitchUPP) +>() +external void InvokeThreadSwitchUPP( + int threadBeingSwitched, + ffi.Pointer switchProcParam, + ThreadSwitchUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(ThreadID, ffi.Pointer, ThreadTerminationUPP) +>() +external void InvokeThreadTerminationUPP( + int threadTerminated, + ffi.Pointer terminationProcParam, + ThreadTerminationUPP userUPP, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void InvokeTimerUPP(TMTaskPtr tmTaskPtr, TimerUPP userUPP); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ByteCount, + ffi.Pointer, + TextPtr, + ByteCount, + ffi.Pointer, + LogicalAddress, + ConstUnicodeMappingPtr, + UnicodeToTextFallbackUPP, + ) +>() +external int InvokeUnicodeToTextFallbackUPP( + ffi.Pointer iSrcUniStr, + int iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + TextPtr oDestStr, + int iDestStrLen, + ffi.Pointer oDestConvLen, + LogicalAddress iInfoPtr, + ConstUnicodeMappingPtr iUnicodeMappingPtr, + UnicodeToTextFallbackUPP userUPP, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int IsDataAvailableInIconRef(int inIconKind, IconRef inIconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external int IsHandleValid(Handle h); + +@Deprecated('Deprecated') +@ffi.Native() +external int IsHeapValid(); + +@Deprecated('Use NSImage or Core Graphics to composite images.') +@ffi.Native< + OSErr Function(IconRef, ffi.Pointer, ffi.Pointer) +>() +external int IsIconRefComposite( + IconRef compositeIconRef, + ffi.Pointer backgroundIconRef, + ffi.Pointer foregroundIconRef, +); + +@ffi.Native() +external int IsIconRefMaskEmpty(IconRef iconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external int IsMetric(); + +@Deprecated('Deprecated') +@ffi.Native() +external int IsPointerValid(Ptr p); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int IsProcessVisible(ffi.Pointer psn); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int IsValidIconRef(IconRef theIconRef); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function(KCCallbackUPP, KCEventMask, ffi.Pointer) +>() +external int KCAddCallback( + KCCallbackUPP callbackProc, + int eventMask, + ffi.Pointer userContext, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCCopyItem( + KCItemRef item, + KCRef destKeychain, + ffi.Pointer copy, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCCountKeychains(); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCDeleteItem(KCItemRef item); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer>, + ConstStringPtr, + ConstStringPtr, + ConstStringPtr, + ConstStringPtr, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCFindAppleSharePassword( + ffi.Pointer> serverSignature, + ConstStringPtr serverAddress, + ConstStringPtr serverName, + ConstStringPtr volumeName, + ConstStringPtr accountName, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + KCRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCFindFirstItem( + KCRef keychain, + ffi.Pointer attrList, + ffi.Pointer search, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ConstStringPtr, + ConstStringPtr, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCFindGenericPassword( + ConstStringPtr serviceName, + ConstStringPtr accountName, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ConstStringPtr, + ConstStringPtr, + ConstStringPtr, + UInt16, + OSType, + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCFindInternetPassword( + ConstStringPtr serverName, + ConstStringPtr securityDomain, + ConstStringPtr accountName, + int port, + int protocol, + int authType, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ConstStringPtr, + ConstStringPtr, + ConstStringPtr, + ConstStringPtr, + UInt16, + OSType, + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCFindInternetPasswordWithPath( + ConstStringPtr serverName, + ConstStringPtr securityDomain, + ConstStringPtr accountName, + ConstStringPtr path, + int port, + int protocol, + int authType, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCFindNextItem(KCSearchRef search, ffi.Pointer item); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function(KCItemRef, ffi.Pointer, ffi.Pointer) +>() +external int KCGetAttribute( + KCItemRef item, + ffi.Pointer attr, + ffi.Pointer actualLength, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + KCItemRef, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCGetData( + KCItemRef item, + int maxLength, + ffi.Pointer data, + ffi.Pointer actualLength, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCGetDefaultKeychain(ffi.Pointer keychain); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCGetIndKeychain(int index$1, ffi.Pointer keychain); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCGetKeychain(KCItemRef item, ffi.Pointer keychain); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCGetKeychainManagerVersion(ffi.Pointer returnVers); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCGetKeychainName(KCRef keychain, StringPtr keychainName); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCGetStatus(KCRef keychain, ffi.Pointer keychainStatus); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCIsInteractionAllowed(); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCLock(KCRef keychain); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCMakeAliasFromKCRef( + KCRef keychain, + ffi.Pointer keychainAlias, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCMakeKCRefFromAlias( + AliasHandle keychainAlias, + ffi.Pointer keychain, +); + +@Deprecated('No longer supported') +@ffi.Native, ffi.Pointer)>() +external int KCMakeKCRefFromFSRef( + ffi.Pointer keychainFSRef, + ffi.Pointer keychain, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + KCItemClass, + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int KCNewItem( + int itemClass, + int itemCreator, + int length, + ffi.Pointer data, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCReleaseItem(ffi.Pointer item); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCReleaseKeychain(ffi.Pointer keychain); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCReleaseSearch(ffi.Pointer search); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCRemoveCallback(KCCallbackUPP callbackProc); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCSetAttribute(KCItemRef item, ffi.Pointer attr); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int KCSetData(KCItemRef item, int length, ffi.Pointer data); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCSetDefaultKeychain(KCRef keychain); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCSetInteractionAllowed(int state); + +@Deprecated('No longer supported') +@ffi.Native() +external int KCUpdateItem(KCItemRef item); + +@ffi.Native() +external final audit_token_t KERNEL_AUDIT_TOKEN; + +@ffi.Native() +external final security_token_t KERNEL_SECURITY_TOKEN; + +@Deprecated('Deprecated') +@ffi.Native)>() +external int KillProcess(ffi.Pointer inProcess); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetApFontID(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetBootDrive(); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr LMGetIntlSpec(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetMemErr(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetResErr(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetResLoad(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetSysFontSize(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetSysMap(); + +@Deprecated('Deprecated') +@ffi.Native() +external int LMGetTmpResLoad(); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetApFontID(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetBootDrive(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetIntlSpec(Ptr value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetMemErr(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetResErr(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetResLoad(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetSysFontFam(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetSysFontSize(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetSysMap(int value); + +@Deprecated('Deprecated') +@ffi.Native() +external void LMSetTmpResLoad(int value); + +@Deprecated('Use LSCanURLAcceptURL instead.') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + OptionBits, + OptionBits, + ffi.Pointer, + ) +>() +external int LSCanRefAcceptItem( + ffi.Pointer inItemFSRef, + ffi.Pointer inTargetRef, + int inRoleMask, + int inFlags, + ffi.Pointer outAcceptsItem, +); + +@ffi.Native< + OSStatus Function( + CFURLRef, + CFURLRef, + OptionBits, + OptionBits, + ffi.Pointer, + ) +>() +external int LSCanURLAcceptURL( + CFURLRef inItemURL, + CFURLRef inTargetURL, + int inRoleMask, + int inFlags, + ffi.Pointer outAcceptsItem, +); + +@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenURL:] instead.') +@ffi.Native() +external CFArrayRef LSCopyAllHandlersForURLScheme(CFStringRef inURLScheme); + +@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenContentType:] instead.') +@ffi.Native() +external CFArrayRef LSCopyAllRoleHandlersForContentType( + CFStringRef inContentType, + int inRole, +); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') +@ffi.Native)>() +external int LSCopyApplicationForMIMEType( + CFStringRef inMIMEType, + int inRoleMask, + ffi.Pointer outAppURL, +); + +@Deprecated( + 'Use -[NSWorkspace URLsForApplicationsWithBundleIdentifier:] instead.', +) +@ffi.Native)>() +external CFArrayRef LSCopyApplicationURLsForBundleIdentifier( + CFStringRef inBundleIdentifier, + ffi.Pointer outError, +); + +@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenURL:] instead.') +@ffi.Native() +external CFArrayRef LSCopyApplicationURLsForURL(CFURLRef inURL, int inRoleMask); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') +@ffi.Native< + CFURLRef Function(CFStringRef, OptionBits, ffi.Pointer) +>() +external CFURLRef LSCopyDefaultApplicationURLForContentType( + CFStringRef inContentType, + int inRoleMask, + ffi.Pointer outError, +); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenURL:] instead.') +@ffi.Native)>() +external CFURLRef LSCopyDefaultApplicationURLForURL( + CFURLRef inURL, + int inRoleMask, + ffi.Pointer outError, +); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenURL:] instead.') +@ffi.Native() +external CFStringRef LSCopyDefaultHandlerForURLScheme(CFStringRef inURLScheme); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') +@ffi.Native() +external CFStringRef LSCopyDefaultRoleHandlerForContentType( + CFStringRef inContentType, + int inRole, +); + +@Deprecated( + 'Use the URL resource property kCFURLLocalizedNameKey or NSURLLocalizedNameKey instead.', +) +@ffi.Native, ffi.Pointer)>() +external int LSCopyDisplayNameForRef( + ffi.Pointer inRef, + ffi.Pointer outDisplayName, +); + +@Deprecated( + 'Use the URL resource property kCFURLLocalizedNameKey or NSURLLocalizedNameKey instead.', +) +@ffi.Native)>() +external int LSCopyDisplayNameForURL( + CFURLRef inURL, + ffi.Pointer outDisplayName, +); + +@Deprecated( + 'Use CFURLCopyResourcePropertyForKey or -[NSURL getResourceValue:forKey:error:] instead.', +) +@ffi.Native< + OSStatus Function( + ffi.Pointer, + OptionBits, + CFStringRef, + ffi.Pointer, + ) +>() +external int LSCopyItemAttribute( + ffi.Pointer inItem, + int inRoles, + CFStringRef inAttributeName, + ffi.Pointer outValue, +); + +@Deprecated( + 'Use CFURLCopyResourcePropertiesForKeys or -[NSURL resourceValuesForKeys:error:] instead.', +) +@ffi.Native< + OSStatus Function( + ffi.Pointer, + OptionBits, + CFArrayRef, + ffi.Pointer, + ) +>() +external int LSCopyItemAttributes( + ffi.Pointer inItem, + int inRoles, + CFArrayRef inAttributeNames, + ffi.Pointer outValues, +); + +@Deprecated('Use URL resource properties instead.') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + OptionBits, + ffi.Pointer, + ) +>() +external int LSCopyItemInfoForRef( + ffi.Pointer inItemRef, + int inWhichInfo, + ffi.Pointer outItemInfo, +); + +@Deprecated('Use URL resource properties instead.') +@ffi.Native< + OSStatus Function(CFURLRef, OptionBits, ffi.Pointer) +>() +external int LSCopyItemInfoForURL( + CFURLRef inURL, + int inWhichInfo, + ffi.Pointer outItemInfo, +); + +@Deprecated('Use UTTypeCopyDescription instead.') +@ffi.Native)>() +external int LSCopyKindStringForMIMEType( + CFStringRef inMIMEType, + ffi.Pointer outKindString, +); + +@Deprecated( + 'Use the URL resource property kCFURLLocalizedTypeDescriptionKey or NSURLLocalizedTypeDescriptionKey instead.', +) +@ffi.Native, ffi.Pointer)>() +external int LSCopyKindStringForRef( + ffi.Pointer inFSRef, + ffi.Pointer outKindString, +); + +@Deprecated('Use UTTypeCopyDescription instead.') +@ffi.Native< + OSStatus Function(OSType, OSType, CFStringRef, ffi.Pointer) +>() +external int LSCopyKindStringForTypeInfo( + int inType, + int inCreator, + CFStringRef inExtension, + ffi.Pointer outKindString, +); + +@Deprecated( + 'Use the URL resource property kCFURLLocalizedTypeDescriptionKey or NSURLLocalizedTypeDescriptionKey instead.', +) +@ffi.Native)>() +external int LSCopyKindStringForURL( + CFURLRef inURL, + ffi.Pointer outKindString, +); + +@Deprecated('Use LSCopyApplicationURLsForBundleIdentifier instead.') +@ffi.Native< + OSStatus Function( + OSType, + CFStringRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSFindApplicationForInfo( + int inCreator, + CFStringRef inBundleID, + CFStringRef inName, + ffi.Pointer outAppRef, + ffi.Pointer outAppURL, +); + +@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') +@ffi.Native< + OSStatus Function( + OSType, + OSType, + CFStringRef, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSGetApplicationForInfo( + int inType, + int inCreator, + CFStringRef inExtension, + int inRoleMask, + ffi.Pointer outAppRef, + ffi.Pointer outAppURL, +); + +@Deprecated('Use LSCopyDefaultApplicationURLForURL instead.') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSGetApplicationForItem( + ffi.Pointer inItemRef, + int inRoleMask, + ffi.Pointer outAppRef, + ffi.Pointer outAppURL, +); + +@Deprecated('Use LSCopyDefaultApplicationURLForURL instead.') +@ffi.Native< + OSStatus Function( + CFURLRef, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSGetApplicationForURL( + CFURLRef inURL, + int inRoleMask, + ffi.Pointer outAppRef, + ffi.Pointer outAppURL, +); + +@Deprecated( + 'Use CFURLCopyPathExtension(), -[NSURL pathExtension], or -[NSString pathExtension] instead.', +) +@ffi.Native< + OSStatus Function( + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSGetExtensionInfo( + int inNameLen, + ffi.Pointer inNameBuffer, + ffi.Pointer outExtStartIndex, +); + +@Deprecated('Creator codes are deprecated on OS X.') +@ffi.Native() +external int LSGetHandlerOptionsForContentType(CFStringRef inContentType); + +@Deprecated( + 'Use -[NSWorkspace launchApplicationAtURL:options:configuration:error:] instead.', +) +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSOpenApplication( + ffi.Pointer appParams, + ffi.Pointer outPSN, +); + +@ffi.Native)>() +external int LSOpenCFURLRef( + CFURLRef inURL, + ffi.Pointer outLaunchedURL, +); + +@Deprecated('Use LSOpenCFURLRef or -[NSWorkspace openURL:] instead.') +@ffi.Native, ffi.Pointer)>() +external int LSOpenFSRef( + ffi.Pointer inRef, + ffi.Pointer outLaunchedRef, +); + +@Deprecated('Use LSOpenFromURLSpec or NSWorkspace instead.') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int LSOpenFromRefSpec( + ffi.Pointer inLaunchSpec, + ffi.Pointer outLaunchedRef, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int LSOpenFromURLSpec( + ffi.Pointer inLaunchSpec, + ffi.Pointer outLaunchedURL, +); + +@Deprecated('Use NSWorkspace instead.') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + CFIndex, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>() +external int LSOpenItemsWithRole( + ffi.Pointer inItems, + int inItemCount, + int inRole, + ffi.Pointer inAEParam, + ffi.Pointer inAppParams, + ffi.Pointer outPSNs, + int inMaxPSNCount, +); + +@Deprecated('Use NSWorkspace instead.') +@ffi.Native< + OSStatus Function( + CFArrayRef, + OptionBits, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + CFIndex, + ) +>() +external int LSOpenURLsWithRole( + CFArrayRef inURLs, + int inRole, + ffi.Pointer inAEParam, + ffi.Pointer inAppParams, + ffi.Pointer outPSNs, + int inMaxPSNCount, +); + +@Deprecated('Use LSRegisterURL instead.') +@ffi.Native, Boolean)>() +external int LSRegisterFSRef(ffi.Pointer inRef, int inUpdate); + +@ffi.Native() +external int LSRegisterURL(CFURLRef inURL, int inUpdate); + +@Deprecated( + 'Use -[NSWorkspace setDefaultApplicationAtURL:toOpenURLsWithScheme:completionHandler:] instead.', +) +@ffi.Native() +external int LSSetDefaultHandlerForURLScheme( + CFStringRef inURLScheme, + CFStringRef inHandlerBundleID, +); + +@Deprecated( + 'Use -[NSWorkspace setDefaultApplicationAtURL:toOpenContentType:completionHandler:] instead.', +) +@ffi.Native() +external int LSSetDefaultRoleHandlerForContentType( + CFStringRef inContentType, + int inRole, + CFStringRef inHandlerBundleID, +); + +@Deprecated( + 'Use the URL resource property kCFURLHasHiddenExtensionKey or NSURLHasHiddenExtensionKey instead.', +) +@ffi.Native, Boolean)>() +external int LSSetExtensionHiddenForRef(ffi.Pointer inRef, int inHide); + +@Deprecated( + 'Use the URL resource property kCFURLHasHiddenExtensionKey or NSURLHasHiddenExtensionKey instead.', +) +@ffi.Native() +external int LSSetExtensionHiddenForURL(CFURLRef inURL, int inHide); + +@Deprecated('Creator codes are deprecated on OS X.') +@ffi.Native() +external int LSSetHandlerOptionsForContentType( + CFStringRef inContentType, + int inOptions, +); + +@Deprecated( + 'Use CFURLSetResourcePropertyForKey or -[NSURL setResourceValue:forKey:error:] instead.', +) +@ffi.Native< + OSStatus Function(ffi.Pointer, OptionBits, CFStringRef, CFTypeRef) +>() +external int LSSetItemAttribute( + ffi.Pointer inItem, + int inRoles, + CFStringRef inAttributeName, + CFTypeRef inValue, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + LSSharedFileListRef, + CFRunLoopRef, + CFStringRef, + LSSharedFileListChangedProcPtr, + ffi.Pointer, + ) +>() +external void LSSharedFileListAddObserver( + LSSharedFileListRef inList, + CFRunLoopRef inRunloop, + CFStringRef inRunloopMode, + LSSharedFileListChangedProcPtr callback, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFTypeRef LSSharedFileListCopyProperty( + LSSharedFileListRef inList, + CFStringRef inPropertyName, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external CFArrayRef LSSharedFileListCopySnapshot( + LSSharedFileListRef inList, + ffi.Pointer outSnapshotSeed, +); + +@Deprecated('No longer supported') +@ffi.Native< + LSSharedFileListRef Function(CFAllocatorRef, CFStringRef, CFTypeRef) +>() +external LSSharedFileListRef LSSharedFileListCreate( + CFAllocatorRef inAllocator, + CFStringRef inListType, + CFTypeRef listOptions, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListGetSeedValue(LSSharedFileListRef inList); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native< + LSSharedFileListItemRef Function( + LSSharedFileListRef, + LSSharedFileListItemRef, + CFStringRef, + IconRef, + ffi.Pointer, + CFDictionaryRef, + CFArrayRef, + ) +>() +external LSSharedFileListItemRef LSSharedFileListInsertItemFSRef( + LSSharedFileListRef inList, + LSSharedFileListItemRef insertAfterThisItem, + CFStringRef inDisplayName, + IconRef inIconRef, + ffi.Pointer inFSRef, + CFDictionaryRef inPropertiesToSet, + CFArrayRef inPropertiesToClear, +); + +@Deprecated('No longer supported') +@ffi.Native< + LSSharedFileListItemRef Function( + LSSharedFileListRef, + LSSharedFileListItemRef, + CFStringRef, + IconRef, + CFURLRef, + CFDictionaryRef, + CFArrayRef, + ) +>() +external LSSharedFileListItemRef LSSharedFileListInsertItemURL( + LSSharedFileListRef inList, + LSSharedFileListItemRef insertAfterThisItem, + CFStringRef inDisplayName, + IconRef inIconRef, + CFURLRef inURL, + CFDictionaryRef inPropertiesToSet, + CFArrayRef inPropertiesToClear, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFStringRef LSSharedFileListItemCopyDisplayName( + LSSharedFileListItemRef inItem, +); + +@Deprecated('No longer supported') +@ffi.Native() +external IconRef LSSharedFileListItemCopyIconRef( + LSSharedFileListItemRef inItem, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFTypeRef LSSharedFileListItemCopyProperty( + LSSharedFileListItemRef inItem, + CFStringRef inPropertyName, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFURLRef Function( + LSSharedFileListItemRef, + LSSharedFileListResolutionFlags, + ffi.Pointer, + ) +>() +external CFURLRef LSSharedFileListItemCopyResolvedURL( + LSSharedFileListItemRef inItem, + int inFlags, + ffi.Pointer outError, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListItemGetID(LSSharedFileListItemRef inItem); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListItemGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + LSSharedFileListRef, + LSSharedFileListItemRef, + LSSharedFileListItemRef, + ) +>() +external int LSSharedFileListItemMove( + LSSharedFileListRef inList, + LSSharedFileListItemRef inItem, + LSSharedFileListItemRef inMoveAfterItem, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListItemRemove( + LSSharedFileListRef inList, + LSSharedFileListItemRef inItem, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LSSharedFileListItemRef, + LSSharedFileListResolutionFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LSSharedFileListItemResolve( + LSSharedFileListItemRef inItem, + int inFlags, + ffi.Pointer outURL, + ffi.Pointer outRef, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function(LSSharedFileListItemRef, CFStringRef, CFTypeRef) +>() +external int LSSharedFileListItemSetProperty( + LSSharedFileListItemRef inItem, + CFStringRef inPropertyName, + CFTypeRef inPropertyData, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListRemoveAllItems(LSSharedFileListRef inList); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + LSSharedFileListRef, + CFRunLoopRef, + CFStringRef, + LSSharedFileListChangedProcPtr, + ffi.Pointer, + ) +>() +external void LSSharedFileListRemoveObserver( + LSSharedFileListRef inList, + CFRunLoopRef inRunloop, + CFStringRef inRunloopMode, + LSSharedFileListChangedProcPtr callback, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListSetAuthorization( + LSSharedFileListRef inList, + AuthorizationRef inAuthorization, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int LSSharedFileListSetProperty( + LSSharedFileListRef inList, + CFStringRef inPropertyName, + CFTypeRef inPropertyData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int LaunchApplication(LaunchPBPtr LaunchParams); + +@Deprecated('Deprecated') +@ffi.Native() +external void LoadResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + LocaleNameMask, + ffi.Pointer, + ) +>() +external int LocaleCountNames( + LocaleRef locale, + int opVariant, + int nameMask, + ffi.Pointer nameCount, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + LocaleNameMask, + ItemCount, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleGetIndName( + LocaleRef locale, + int opVariant, + int nameMask, + int nameIndex, + int maxNameLen, + ffi.Pointer actualNameLen, + ffi.Pointer displayName, + ffi.Pointer displayLocale, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + LocaleNameMask, + LocaleRef, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleGetName( + LocaleRef locale, + int opVariant, + int nameMask, + LocaleRef displayLocale, + int maxNameLen, + ffi.Pointer actualNameLen, + ffi.Pointer displayName, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int LocaleOperationCountLocales( + int opClass, + ffi.Pointer localeCount, +); + +@ffi.Native)>() +external int LocaleOperationCountNames( + int opClass, + ffi.Pointer nameCount, +); + +@ffi.Native< + OSStatus Function( + LocaleOperationClass, + ItemCount, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleOperationGetIndName( + int opClass, + int nameIndex, + int maxNameLen, + ffi.Pointer actualNameLen, + ffi.Pointer displayName, + ffi.Pointer displayLocale, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LocaleOperationClass, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleOperationGetLocales( + int opClass, + int maxLocaleCount, + ffi.Pointer actualLocaleCount, + ffi.Pointer localeVariantList, +); + +@ffi.Native< + OSStatus Function( + LocaleOperationClass, + LocaleRef, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleOperationGetName( + int opClass, + LocaleRef displayLocale, + int maxNameLen, + ffi.Pointer actualNameLen, + ffi.Pointer displayName, +); + +@ffi.Native)>() +external int LocaleRefFromLangOrRegionCode( + int lang, + int region, + ffi.Pointer locale, +); + +@ffi.Native, ffi.Pointer)>() +external int LocaleRefFromLocaleString( + ffi.Pointer localeString, + ffi.Pointer locale, +); + +@ffi.Native< + OSStatus Function(LocaleRef, LocalePartMask, ByteCount, ffi.Pointer) +>() +external int LocaleRefGetPartString( + LocaleRef locale, + int partMask, + int maxStringLen, + ffi.Pointer partString, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int LocaleStringToLangAndRegionCodes( + ffi.Pointer localeString, + ffi.Pointer lang, + ffi.Pointer region, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int Long2Fix(int x); + +@ffi.Native() +external CFArrayRef MDCopyLabelKinds(); + +@ffi.Native() +external MDLabelRef MDCopyLabelWithUUID(CFUUIDRef labelUUID); + +@ffi.Native() +external CFArrayRef MDCopyLabelsMatchingExpression( + CFStringRef simpleQueryString, +); + +@ffi.Native() +external CFArrayRef MDCopyLabelsWithKind(CFStringRef kind); + +@ffi.Native() +external CFTypeRef MDItemCopyAttribute(MDItemRef item, CFStringRef name); + +@ffi.Native() +external CFDictionaryRef MDItemCopyAttributeList(MDItemRef item); + +@ffi.Native() +external CFArrayRef MDItemCopyAttributeNames(MDItemRef item); + +@ffi.Native() +external CFDictionaryRef MDItemCopyAttributes(MDItemRef item, CFArrayRef names); + +@ffi.Native() +external CFArrayRef MDItemCopyLabels(MDItemRef item); + +@ffi.Native() +external MDItemRef MDItemCreate(CFAllocatorRef allocator, CFStringRef path); + +@ffi.Native() +external MDItemRef MDItemCreateWithURL(CFAllocatorRef allocator, CFURLRef url); + +@ffi.Native)>( + symbol: 'MDItemGetCacheFileDescriptors', +) +external void _MDItemGetCacheFileDescriptors( + CFArrayRef items, + ffi.Pointer completionHandler, +); + +void MDItemGetCacheFileDescriptors( + CFArrayRef items, + objc.ObjCBlock)> completionHandler, +) { + final _$$ref = completionHandler.ref; + return _MDItemGetCacheFileDescriptors(items, _$$ref.pointer); +} + +@ffi.Native() +external int MDItemGetTypeID(); + +@ffi.Native() +external int MDItemRemoveLabel(MDItemRef item, MDLabelRef label); + +@ffi.Native() +external int MDItemSetLabel(MDItemRef item, MDLabelRef label); + +@ffi.Native() +external CFArrayRef MDItemsCopyAttributes(CFArrayRef items, CFArrayRef names); + +@ffi.Native() +external CFArrayRef MDItemsCreateWithURLs( + CFAllocatorRef allocator, + CFArrayRef urls, +); + +@ffi.Native() +external CFTypeRef MDLabelCopyAttribute(MDLabelRef label, CFStringRef name); + +@ffi.Native() +external CFStringRef MDLabelCopyAttributeName(MDLabelRef label); + +@ffi.Native< + MDLabelRef Function(CFAllocatorRef, CFStringRef, CFStringRef, ffi.UnsignedInt) +>(symbol: 'MDLabelCreate') +external MDLabelRef _MDLabelCreate( + CFAllocatorRef allocator, + CFStringRef displayName, + CFStringRef kind, + int domain, +); + +MDLabelRef MDLabelCreate( + CFAllocatorRef allocator, + CFStringRef displayName, + CFStringRef kind, + MDLabelDomain domain, +) { + return _MDLabelCreate(allocator, displayName, kind, domain.value); +} + +@ffi.Native() +external int MDLabelDelete(MDLabelRef label); + +@ffi.Native() +external int MDLabelGetTypeID(); + +@ffi.Native() +external int MDLabelSetAttributes(MDLabelRef label, CFDictionaryRef attrs); + +@ffi.Native() +external CFStringRef MDQueryCopyQueryString(MDQueryRef query); + +@ffi.Native() +external CFArrayRef MDQueryCopySortingAttributes(MDQueryRef query); + +@ffi.Native() +external CFArrayRef MDQueryCopyValueListAttributes(MDQueryRef query); + +@ffi.Native() +external CFArrayRef MDQueryCopyValuesOfAttribute( + MDQueryRef query, + CFStringRef name, +); + +@ffi.Native< + MDQueryRef Function(CFAllocatorRef, CFStringRef, CFArrayRef, CFArrayRef) +>() +external MDQueryRef MDQueryCreate( + CFAllocatorRef allocator, + CFStringRef queryString, + CFArrayRef valueListAttrs, + CFArrayRef sortingAttrs, +); + +@ffi.Native< + MDQueryRef Function( + CFAllocatorRef, + CFStringRef, + CFArrayRef, + CFArrayRef, + CFArrayRef, + ) +>() +external MDQueryRef MDQueryCreateForItems( + CFAllocatorRef allocator, + CFStringRef queryString, + CFArrayRef valueListAttrs, + CFArrayRef sortingAttrs, + CFArrayRef items, +); + +@ffi.Native< + MDQueryRef Function( + CFAllocatorRef, + MDQueryRef, + CFStringRef, + CFArrayRef, + CFArrayRef, + ) +>() +external MDQueryRef MDQueryCreateSubset( + CFAllocatorRef allocator, + MDQueryRef query, + CFStringRef queryString, + CFArrayRef valueListAttrs, + CFArrayRef sortingAttrs, +); + +@ffi.Native() +external void MDQueryDisableUpdates(MDQueryRef query); + +@ffi.Native() +external void MDQueryEnableUpdates(MDQueryRef query); + +@ffi.Native() +external int MDQueryExecute(MDQueryRef query, int optionFlags); + +@ffi.Native Function(MDQueryRef, CFStringRef, CFIndex)>() +external ffi.Pointer MDQueryGetAttributeValueOfResultAtIndex( + MDQueryRef query, + CFStringRef name, + int idx, +); + +@ffi.Native() +external MDQueryBatchingParams MDQueryGetBatchingParameters(MDQueryRef query); + +@ffi.Native() +external int MDQueryGetCountOfResultsWithAttributeValue( + MDQueryRef query, + CFStringRef name, + CFTypeRef value, +); + +@ffi.Native)>() +external int MDQueryGetIndexOfResult( + MDQueryRef query, + ffi.Pointer result, +); + +@ffi.Native Function(MDQueryRef, CFIndex)>() +external ffi.Pointer MDQueryGetResultAtIndex( + MDQueryRef query, + int idx, +); + +@ffi.Native() +external int MDQueryGetResultCount(MDQueryRef query); + +@ffi.Native() +external int MDQueryGetSortOptionFlagsForAttribute( + MDQueryRef query, + CFStringRef fieldName, +); + +@ffi.Native() +external int MDQueryGetTypeID(); + +@ffi.Native() +external int MDQueryIsGatheringComplete(MDQueryRef query); + +@ffi.Native() +external void MDQuerySetBatchingParameters( + MDQueryRef query, + MDQueryBatchingParams params, +); + +@ffi.Native< + ffi.Void Function( + MDQueryRef, + MDQueryCreateResultFunction, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void MDQuerySetCreateResultFunction( + MDQueryRef query, + MDQueryCreateResultFunction func, + ffi.Pointer context, + ffi.Pointer cb, +); + +@ffi.Native< + ffi.Void Function( + MDQueryRef, + MDQueryCreateValueFunction, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void MDQuerySetCreateValueFunction( + MDQueryRef query, + MDQueryCreateValueFunction func, + ffi.Pointer context, + ffi.Pointer cb, +); + +@ffi.Native( + symbol: 'MDQuerySetDispatchQueue', +) +external void _MDQuerySetDispatchQueue( + MDQueryRef query, + dispatch_queue_t queue, +); + +void MDQuerySetDispatchQueue(MDQueryRef query, Dartdispatch_queue_t queue) { + final _$$ref = queue.ref; + return _MDQuerySetDispatchQueue(query, _$$ref.pointer); +} + +@ffi.Native() +external void MDQuerySetMaxCount(MDQueryRef query, int size); + +@ffi.Native() +external void MDQuerySetSearchScope( + MDQueryRef query, + CFArrayRef scopeDirectories, + int scopeOptions, +); + +@ffi.Native< + ffi.Void Function( + MDQueryRef, + MDQuerySortComparatorFunction, + ffi.Pointer, + ) +>() +external void MDQuerySetSortComparator( + MDQueryRef query, + MDQuerySortComparatorFunction comparator, + ffi.Pointer context, +); + +@ffi.Native)>( + symbol: 'MDQuerySetSortComparatorBlock', +) +external void _MDQuerySetSortComparatorBlock( + MDQueryRef query, + ffi.Pointer comparator, +); + +void MDQuerySetSortComparatorBlock( + MDQueryRef query, + objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + > + comparator, +) { + final _$$ref = comparator.ref; + return _MDQuerySetSortComparatorBlock(query, _$$ref.pointer); +} + +@ffi.Native() +external int MDQuerySetSortOptionFlagsForAttribute( + MDQueryRef query, + CFStringRef fieldName, + int flags, +); + +@ffi.Native() +external int MDQuerySetSortOrder(MDQueryRef query, CFArrayRef sortingAttrs); + +@ffi.Native() +external void MDQueryStop(MDQueryRef query); + +@Deprecated('Deprecated') +@ffi.Native< + CSSM_RETURN Function( + ffi.Pointer, + ffi.Pointer, + MDS_FUNCS_PTR, + ffi.Pointer, + ) +>() +external int MDS_Initialize( + ffi.Pointer pCallerGuid, + ffi.Pointer pMemoryFunctions, + MDS_FUNCS_PTR pDlFunctions, + ffi.Pointer hMds, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int MDS_Install(int MdsHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int MDS_Terminate(int MdsHandle); + +@Deprecated('Deprecated') +@ffi.Native() +external int MDS_Uninstall(int MdsHandle); + +@ffi.Native() +external CFArrayRef MDSchemaCopyAllAttributes(); + +@ffi.Native() +external CFDictionaryRef MDSchemaCopyAttributesForContentType( + CFStringRef contentTypeUTI, +); + +@ffi.Native() +external CFStringRef MDSchemaCopyDisplayDescriptionForAttribute( + CFStringRef name, +); + +@ffi.Native() +external CFStringRef MDSchemaCopyDisplayNameForAttribute(CFStringRef name); + +@ffi.Native() +external CFDictionaryRef MDSchemaCopyMetaAttributesForAttribute( + CFStringRef name, +); + +@Deprecated('Use malloc()') +@ffi.Native() +external LogicalAddress MPAllocate(int size); + +@Deprecated('Use aligned_alloc()') +@ffi.Native() +external LogicalAddress MPAllocateAligned(int size, int alignment, int options); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPAllocateTaskStorageIndex( + ffi.Pointer taskIndex, +); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function(MPTimerID, ffi.Pointer, OptionBits) +>() +external int MPArmTimer( + MPTimerID timerID, + ffi.Pointer expirationTime, + int options, +); + +@Deprecated('Use bzero()') +@ffi.Native() +external void MPBlockClear(LogicalAddress address, int size); + +@Deprecated('Use memcpy()') +@ffi.Native() +external void MPBlockCopy( + LogicalAddress source, + LogicalAddress destination, + int size, +); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCancelTimer( + MPTimerID timerID, + ffi.Pointer timeRemaining, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPCauseNotification(MPNotificationID notificationID); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCreateCriticalRegion( + ffi.Pointer criticalRegion, +); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCreateEvent(ffi.Pointer event); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCreateNotification(ffi.Pointer notificationID); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCreateQueue(ffi.Pointer queue); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + MPSemaphoreCount, + MPSemaphoreCount, + ffi.Pointer, + ) +>() +external int MPCreateSemaphore( + int maximumValue, + int initialValue, + ffi.Pointer semaphore, +); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + TaskProc, + ffi.Pointer, + ByteCount, + MPQueueID, + ffi.Pointer, + ffi.Pointer, + MPTaskOptions, + ffi.Pointer, + ) +>() +external int MPCreateTask( + TaskProc entryPoint, + ffi.Pointer parameter, + int stackSize, + MPQueueID notifyQueue, + ffi.Pointer terminationParameter1, + ffi.Pointer terminationParameter2, + int options, + ffi.Pointer task, +); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPCreateTimer(ffi.Pointer timerID); + +@Deprecated('Use libDispatch') +@ffi.Native() +external MPTaskID MPCurrentTaskID(); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeallocateTaskStorageIndex(int taskIndex); + +@Deprecated('Use libDispatch') +@ffi.Native)>() +external int MPDelayUntil(ffi.Pointer expirationTime); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteCriticalRegion(MPCriticalRegionID criticalRegion); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteEvent(MPEventID event); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteNotification(MPNotificationID notificationID); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteQueue(MPQueueID queue); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteSemaphore(MPSemaphoreID semaphore); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPDeleteTimer(MPTimerID timerID); + +@Deprecated('No longer supported.') +@ffi.Native() +external int MPDisposeTaskException(MPTaskID task, int action); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPEnterCriticalRegion( + MPCriticalRegionID criticalRegion, + int timeout, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external void MPExit(int status); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPExitCriticalRegion(MPCriticalRegionID criticalRegion); + +@Deprecated('No longer supported.') +@ffi.Native< + OSStatus Function(MPTaskID, MPTaskStateKind, ffi.Pointer) +>() +external int MPExtractTaskState( + MPTaskID task, + int kind, + ffi.Pointer info, +); + +@Deprecated('Use free()') +@ffi.Native() +external void MPFree(LogicalAddress object); + +@Deprecated('Use malloc_size()') +@ffi.Native() +external int MPGetAllocatedBlockSize(LogicalAddress object); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int MPGetNextCpuID( + MPCoherenceID owningCoherenceID, + ffi.Pointer cpuID, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int MPGetNextTaskID( + MPProcessID owningProcessID, + ffi.Pointer taskID, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external TaskStorageValue MPGetTaskStorageValue(int taskIndex); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + MPNotificationID, + MPOpaqueID, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int MPModifyNotification( + MPNotificationID notificationID, + MPOpaqueID anID, + ffi.Pointer notifyParam1, + ffi.Pointer notifyParam2, + ffi.Pointer notifyParam3, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + MPNotificationID, + MPOpaqueIDClass, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int MPModifyNotificationParameters( + MPNotificationID notificationID, + int kind, + ffi.Pointer notifyParam1, + ffi.Pointer notifyParam2, + ffi.Pointer notifyParam3, +); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + MPQueueID, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int MPNotifyQueue( + MPQueueID queue, + ffi.Pointer param1, + ffi.Pointer param2, + ffi.Pointer param3, +); + +@Deprecated('Use sysctl(hw.ncpu)') +@ffi.Native() +external int MPProcessors(); + +@Deprecated('Use sysctl(hw.activecpu)') +@ffi.Native() +external int MPProcessorsScheduled(); + +@Deprecated('No longer supported.') +@ffi.Native() +external int MPRegisterDebugger(MPQueueID queue, int level); + +@Deprecated('Use libDispatch') +@ffi.Native< + ffi.Pointer Function( + MPRemoteProcedure, + ffi.Pointer, + MPRemoteContext, + ) +>() +external ffi.Pointer MPRemoteCall( + MPRemoteProcedure remoteProc, + ffi.Pointer parameter, + int context, +); + +@Deprecated('No longer supported.') +@ffi.Native< + ffi.Pointer Function( + MPRemoteProcedure, + ffi.Pointer, + MPRemoteContext, + ) +>() +external ffi.Pointer MPRemoteCallCFM( + MPRemoteProcedure remoteProc, + ffi.Pointer parameter, + int context, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSetEvent(MPEventID event, int flags); + +@Deprecated('No longer supported.') +@ffi.Native() +external int MPSetExceptionHandler(MPTaskID task, MPQueueID exceptionQ); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSetQueueReserve(MPQueueID queue, int count); + +@Deprecated('No longer supported.') +@ffi.Native< + OSStatus Function(MPTaskID, MPTaskStateKind, ffi.Pointer) +>() +external int MPSetTaskState( + MPTaskID task, + int kind, + ffi.Pointer info, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSetTaskStorageValue(int taskIndex, TaskStorageValue value); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSetTaskType(MPTaskID task, int taskType); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSetTaskWeight(MPTaskID task, int weight); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + MPTimerID, + MPOpaqueID, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int MPSetTimerNotify( + MPTimerID timerID, + MPOpaqueID anID, + ffi.Pointer notifyParam1, + ffi.Pointer notifyParam2, + ffi.Pointer notifyParam3, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPSignalSemaphore(MPSemaphoreID semaphore); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPTaskIsPreemptive(MPTaskID taskID); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPTerminateTask(MPTaskID task, int terminationStatus); + +@Deprecated('No longer supported.') +@ffi.Native() +external int MPThrowException(MPTaskID task, int kind); + +@Deprecated('No longer supported.') +@ffi.Native() +external int MPUnregisterDebugger(MPQueueID queue); + +@Deprecated('Use libDispatch') +@ffi.Native, Duration)>() +external int MPWaitForEvent( + MPEventID event, + ffi.Pointer flags, + int timeout, +); + +@Deprecated('Use libDispatch') +@ffi.Native< + OSStatus Function( + MPQueueID, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + Duration, + ) +>() +external int MPWaitOnQueue( + MPQueueID queue, + ffi.Pointer> param1, + ffi.Pointer> param2, + ffi.Pointer> param3, + int timeout, +); + +@Deprecated('Use libDispatch') +@ffi.Native() +external int MPWaitOnSemaphore(MPSemaphoreID semaphore, int timeout); + +@Deprecated('Use libDispatch') +@ffi.Native() +external void MPYield(); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int MakeVoiceSpec(int creator, int id, ffi.Pointer voice); + +@Deprecated('No longer supported') +@ffi.Native() +external int MaximumProcessorSpeed(); + +@Deprecated('Deprecated') +@ffi.Native() +external int MemError(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void Microseconds(ffi.Pointer microTickCount); + +@Deprecated('No longer supported') +@ffi.Native() +external int MinimumProcessorSpeed(); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Long Function( + Handle, + ffi.Long, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Long, + ) +>() +external int Munger( + Handle h, + int offset, + ffi.Pointer ptr1, + int len1, + ffi.Pointer ptr2, + int len2, +); + +@ffi.Native() +external NDR_record_t NDR_record; + +@ffi.Native>(symbol: 'NSAMPMDesignation') +external ffi.Pointer _NSAMPMDesignation; + +objc.NSString get NSAMPMDesignation => + objc.NSString.fromPointer(_NSAMPMDesignation, retain: true, release: true); + +set NSAMPMDesignation(objc.NSString value) { + objc.NSString.fromPointer( + _NSAMPMDesignation, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAMPMDesignation = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSAllHashTableObjects') +external ffi.Pointer _NSAllHashTableObjects( + ffi.Pointer table, +); + +objc.NSArray NSAllHashTableObjects(NSHashTable table) { + final _$$ref = table.ref; + return objc.NSArray.fromPointer( + _NSAllHashTableObjects(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSAllMapTableKeys') +external ffi.Pointer _NSAllMapTableKeys( + ffi.Pointer table, +); + +objc.NSArray NSAllMapTableKeys(NSMapTable table) { + final _$$ref = table.ref; + return objc.NSArray.fromPointer( + _NSAllMapTableKeys(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSAllMapTableValues') +external ffi.Pointer _NSAllMapTableValues( + ffi.Pointer table, +); + +objc.NSArray NSAllMapTableValues(NSMapTable table) { + final _$$ref = table.ref; + return objc.NSArray.fromPointer( + _NSAllMapTableValues(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native Function(NSUInteger, NSUInteger)>() +external ffi.Pointer NSAllocateCollectable(int size, int options); + +@ffi.Native Function(NSUInteger)>() +external ffi.Pointer NSAllocateMemoryPages(int bytes); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) +>(symbol: 'NSAllocateObject') +external ffi.Pointer _NSAllocateObject( + ffi.Pointer aClass, + int extraBytes, + ffi.Pointer zone, +); + +objc.ObjCObject NSAllocateObject( + objc.ObjCObject aClass, + DartNSUInteger extraBytes, + ffi.Pointer zone, +) { + final _$$ref = aClass.ref; + return objc.ObjCObject( + _NSAllocateObject(_$$ref.pointer, extraBytes, zone), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'NSAlternateDescriptionAttributeName', +) +external NSAttributedStringKey _NSAlternateDescriptionAttributeName; + +DartNSAttributedStringKey get NSAlternateDescriptionAttributeName => + objc.NSString.fromPointer( + _NSAlternateDescriptionAttributeName, + retain: true, + release: true, + ); + +set NSAlternateDescriptionAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSAlternateDescriptionAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAlternateDescriptionAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSAppleEventManagerWillProcessFirstEventNotification', +) +external NSNotificationName +_NSAppleEventManagerWillProcessFirstEventNotification; + +DartNSNotificationName +get NSAppleEventManagerWillProcessFirstEventNotification => + objc.NSString.fromPointer( + _NSAppleEventManagerWillProcessFirstEventNotification, + retain: true, + release: true, + ); + +set NSAppleEventManagerWillProcessFirstEventNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSAppleEventManagerWillProcessFirstEventNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleEventManagerWillProcessFirstEventNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native() +external final double NSAppleEventTimeOutDefault; + +@ffi.Native() +external final double NSAppleEventTimeOutNone; + +@ffi.Native>( + symbol: 'NSAppleScriptErrorAppName', +) +external ffi.Pointer _NSAppleScriptErrorAppName; + +objc.NSString get NSAppleScriptErrorAppName => objc.NSString.fromPointer( + _NSAppleScriptErrorAppName, + retain: true, + release: true, +); + +set NSAppleScriptErrorAppName(objc.NSString value) { + objc.NSString.fromPointer( + _NSAppleScriptErrorAppName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleScriptErrorAppName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSAppleScriptErrorBriefMessage', +) +external ffi.Pointer _NSAppleScriptErrorBriefMessage; + +objc.NSString get NSAppleScriptErrorBriefMessage => objc.NSString.fromPointer( + _NSAppleScriptErrorBriefMessage, + retain: true, + release: true, +); + +set NSAppleScriptErrorBriefMessage(objc.NSString value) { + objc.NSString.fromPointer( + _NSAppleScriptErrorBriefMessage, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleScriptErrorBriefMessage = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSAppleScriptErrorMessage', +) +external ffi.Pointer _NSAppleScriptErrorMessage; + +objc.NSString get NSAppleScriptErrorMessage => objc.NSString.fromPointer( + _NSAppleScriptErrorMessage, + retain: true, + release: true, +); + +set NSAppleScriptErrorMessage(objc.NSString value) { + objc.NSString.fromPointer( + _NSAppleScriptErrorMessage, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleScriptErrorMessage = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSAppleScriptErrorNumber', +) +external ffi.Pointer _NSAppleScriptErrorNumber; + +objc.NSString get NSAppleScriptErrorNumber => objc.NSString.fromPointer( + _NSAppleScriptErrorNumber, + retain: true, + release: true, +); + +set NSAppleScriptErrorNumber(objc.NSString value) { + objc.NSString.fromPointer( + _NSAppleScriptErrorNumber, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleScriptErrorNumber = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSAppleScriptErrorRange') +external ffi.Pointer _NSAppleScriptErrorRange; + +objc.NSString get NSAppleScriptErrorRange => objc.NSString.fromPointer( + _NSAppleScriptErrorRange, + retain: true, + release: true, +); + +set NSAppleScriptErrorRange(objc.NSString value) { + objc.NSString.fromPointer( + _NSAppleScriptErrorRange, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAppleScriptErrorRange = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSArgumentDomain') +external ffi.Pointer _NSArgumentDomain; + +objc.NSString get NSArgumentDomain => + objc.NSString.fromPointer(_NSArgumentDomain, retain: true, release: true); + +set NSArgumentDomain(objc.NSString value) { + objc.NSString.fromPointer( + _NSArgumentDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSArgumentDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSAssertionHandlerKey') +external ffi.Pointer _NSAssertionHandlerKey; + +objc.NSString get NSAssertionHandlerKey => objc.NSString.fromPointer( + _NSAssertionHandlerKey, + retain: true, + release: true, +); + +set NSAssertionHandlerKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSAssertionHandlerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAssertionHandlerKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSAverageKeyValueOperator') +external NSKeyValueOperator _NSAverageKeyValueOperator; + +DartNSKeyValueOperator get NSAverageKeyValueOperator => + objc.NSString.fromPointer( + _NSAverageKeyValueOperator, + retain: true, + release: true, + ); + +set NSAverageKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSAverageKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSAverageKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSBuddhistCalendar') +external ffi.Pointer _NSBuddhistCalendar; + +objc.NSString get NSBuddhistCalendar => + objc.NSString.fromPointer(_NSBuddhistCalendar, retain: true, release: true); + +set NSBuddhistCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSBuddhistCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSBuddhistCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSBundleDidLoadNotification') +external NSNotificationName _NSBundleDidLoadNotification; + +DartNSNotificationName get NSBundleDidLoadNotification => + objc.NSString.fromPointer( + _NSBundleDidLoadNotification, + retain: true, + release: true, + ); + +set NSBundleDidLoadNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSBundleDidLoadNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSBundleDidLoadNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final double NSBundleResourceRequestLoadingPriorityUrgent; + +@ffi.Native( + symbol: 'NSBundleResourceRequestLowDiskSpaceNotification', +) +external NSNotificationName _NSBundleResourceRequestLowDiskSpaceNotification; + +DartNSNotificationName get NSBundleResourceRequestLowDiskSpaceNotification => + objc.NSString.fromPointer( + _NSBundleResourceRequestLowDiskSpaceNotification, + retain: true, + release: true, + ); + +set NSBundleResourceRequestLowDiskSpaceNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSBundleResourceRequestLowDiskSpaceNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSBundleResourceRequestLowDiskSpaceNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarDayChangedNotification') +external NSNotificationName _NSCalendarDayChangedNotification; + +DartNSNotificationName get NSCalendarDayChangedNotification => + objc.NSString.fromPointer( + _NSCalendarDayChangedNotification, + retain: true, + release: true, + ); + +set NSCalendarDayChangedNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSCalendarDayChangedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarDayChangedNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierBangla') +external NSCalendarIdentifier _NSCalendarIdentifierBangla; + +DartNSCalendarIdentifier get NSCalendarIdentifierBangla => + objc.NSString.fromPointer( + _NSCalendarIdentifierBangla, + retain: true, + release: true, + ); + +set NSCalendarIdentifierBangla(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierBangla, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierBangla = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierBuddhist') +external NSCalendarIdentifier _NSCalendarIdentifierBuddhist; + +DartNSCalendarIdentifier get NSCalendarIdentifierBuddhist => + objc.NSString.fromPointer( + _NSCalendarIdentifierBuddhist, + retain: true, + release: true, + ); + +set NSCalendarIdentifierBuddhist(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierBuddhist, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierBuddhist = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierChinese') +external NSCalendarIdentifier _NSCalendarIdentifierChinese; + +DartNSCalendarIdentifier get NSCalendarIdentifierChinese => + objc.NSString.fromPointer( + _NSCalendarIdentifierChinese, + retain: true, + release: true, + ); + +set NSCalendarIdentifierChinese(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierChinese, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierChinese = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierCoptic') +external NSCalendarIdentifier _NSCalendarIdentifierCoptic; + +DartNSCalendarIdentifier get NSCalendarIdentifierCoptic => + objc.NSString.fromPointer( + _NSCalendarIdentifierCoptic, + retain: true, + release: true, + ); + +set NSCalendarIdentifierCoptic(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierCoptic, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierCoptic = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierDangi') +external NSCalendarIdentifier _NSCalendarIdentifierDangi; + +DartNSCalendarIdentifier get NSCalendarIdentifierDangi => + objc.NSString.fromPointer( + _NSCalendarIdentifierDangi, + retain: true, + release: true, + ); + +set NSCalendarIdentifierDangi(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierDangi, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierDangi = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSCalendarIdentifierEthiopicAmeteAlem', +) +external NSCalendarIdentifier _NSCalendarIdentifierEthiopicAmeteAlem; + +DartNSCalendarIdentifier get NSCalendarIdentifierEthiopicAmeteAlem => + objc.NSString.fromPointer( + _NSCalendarIdentifierEthiopicAmeteAlem, + retain: true, + release: true, + ); + +set NSCalendarIdentifierEthiopicAmeteAlem(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierEthiopicAmeteAlem, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierEthiopicAmeteAlem = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSCalendarIdentifierEthiopicAmeteMihret', +) +external NSCalendarIdentifier _NSCalendarIdentifierEthiopicAmeteMihret; + +DartNSCalendarIdentifier get NSCalendarIdentifierEthiopicAmeteMihret => + objc.NSString.fromPointer( + _NSCalendarIdentifierEthiopicAmeteMihret, + retain: true, + release: true, + ); + +set NSCalendarIdentifierEthiopicAmeteMihret(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierEthiopicAmeteMihret, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierEthiopicAmeteMihret = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierGregorian') +external NSCalendarIdentifier _NSCalendarIdentifierGregorian; + +DartNSCalendarIdentifier get NSCalendarIdentifierGregorian => + objc.NSString.fromPointer( + _NSCalendarIdentifierGregorian, + retain: true, + release: true, + ); + +set NSCalendarIdentifierGregorian(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierGregorian, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierGregorian = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierGujarati') +external NSCalendarIdentifier _NSCalendarIdentifierGujarati; + +DartNSCalendarIdentifier get NSCalendarIdentifierGujarati => + objc.NSString.fromPointer( + _NSCalendarIdentifierGujarati, + retain: true, + release: true, + ); + +set NSCalendarIdentifierGujarati(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierGujarati, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierGujarati = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierHebrew') +external NSCalendarIdentifier _NSCalendarIdentifierHebrew; + +DartNSCalendarIdentifier get NSCalendarIdentifierHebrew => + objc.NSString.fromPointer( + _NSCalendarIdentifierHebrew, + retain: true, + release: true, + ); + +set NSCalendarIdentifierHebrew(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierHebrew, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierHebrew = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierISO8601') +external NSCalendarIdentifier _NSCalendarIdentifierISO8601; + +DartNSCalendarIdentifier get NSCalendarIdentifierISO8601 => + objc.NSString.fromPointer( + _NSCalendarIdentifierISO8601, + retain: true, + release: true, + ); + +set NSCalendarIdentifierISO8601(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierISO8601, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierISO8601 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierIndian') +external NSCalendarIdentifier _NSCalendarIdentifierIndian; + +DartNSCalendarIdentifier get NSCalendarIdentifierIndian => + objc.NSString.fromPointer( + _NSCalendarIdentifierIndian, + retain: true, + release: true, + ); + +set NSCalendarIdentifierIndian(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierIndian, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierIndian = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierIslamic') +external NSCalendarIdentifier _NSCalendarIdentifierIslamic; + +DartNSCalendarIdentifier get NSCalendarIdentifierIslamic => + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamic, + retain: true, + release: true, + ); + +set NSCalendarIdentifierIslamic(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamic, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierIslamic = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierIslamicCivil') +external NSCalendarIdentifier _NSCalendarIdentifierIslamicCivil; + +DartNSCalendarIdentifier get NSCalendarIdentifierIslamicCivil => + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicCivil, + retain: true, + release: true, + ); + +set NSCalendarIdentifierIslamicCivil(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicCivil, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierIslamicCivil = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierIslamicTabular') +external NSCalendarIdentifier _NSCalendarIdentifierIslamicTabular; + +DartNSCalendarIdentifier get NSCalendarIdentifierIslamicTabular => + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicTabular, + retain: true, + release: true, + ); + +set NSCalendarIdentifierIslamicTabular(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicTabular, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierIslamicTabular = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSCalendarIdentifierIslamicUmmAlQura', +) +external NSCalendarIdentifier _NSCalendarIdentifierIslamicUmmAlQura; + +DartNSCalendarIdentifier get NSCalendarIdentifierIslamicUmmAlQura => + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicUmmAlQura, + retain: true, + release: true, + ); + +set NSCalendarIdentifierIslamicUmmAlQura(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierIslamicUmmAlQura, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierIslamicUmmAlQura = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierJapanese') +external NSCalendarIdentifier _NSCalendarIdentifierJapanese; + +DartNSCalendarIdentifier get NSCalendarIdentifierJapanese => + objc.NSString.fromPointer( + _NSCalendarIdentifierJapanese, + retain: true, + release: true, + ); + +set NSCalendarIdentifierJapanese(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierJapanese, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierJapanese = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierKannada') +external NSCalendarIdentifier _NSCalendarIdentifierKannada; + +DartNSCalendarIdentifier get NSCalendarIdentifierKannada => + objc.NSString.fromPointer( + _NSCalendarIdentifierKannada, + retain: true, + release: true, + ); + +set NSCalendarIdentifierKannada(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierKannada, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierKannada = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierMalayalam') +external NSCalendarIdentifier _NSCalendarIdentifierMalayalam; + +DartNSCalendarIdentifier get NSCalendarIdentifierMalayalam => + objc.NSString.fromPointer( + _NSCalendarIdentifierMalayalam, + retain: true, + release: true, + ); + +set NSCalendarIdentifierMalayalam(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierMalayalam, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierMalayalam = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierMarathi') +external NSCalendarIdentifier _NSCalendarIdentifierMarathi; + +DartNSCalendarIdentifier get NSCalendarIdentifierMarathi => + objc.NSString.fromPointer( + _NSCalendarIdentifierMarathi, + retain: true, + release: true, + ); + +set NSCalendarIdentifierMarathi(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierMarathi, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierMarathi = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierOdia') +external NSCalendarIdentifier _NSCalendarIdentifierOdia; + +DartNSCalendarIdentifier get NSCalendarIdentifierOdia => + objc.NSString.fromPointer( + _NSCalendarIdentifierOdia, + retain: true, + release: true, + ); + +set NSCalendarIdentifierOdia(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierOdia, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierOdia = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierPersian') +external NSCalendarIdentifier _NSCalendarIdentifierPersian; + +DartNSCalendarIdentifier get NSCalendarIdentifierPersian => + objc.NSString.fromPointer( + _NSCalendarIdentifierPersian, + retain: true, + release: true, + ); + +set NSCalendarIdentifierPersian(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierPersian, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierPersian = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierRepublicOfChina') +external NSCalendarIdentifier _NSCalendarIdentifierRepublicOfChina; + +DartNSCalendarIdentifier get NSCalendarIdentifierRepublicOfChina => + objc.NSString.fromPointer( + _NSCalendarIdentifierRepublicOfChina, + retain: true, + release: true, + ); + +set NSCalendarIdentifierRepublicOfChina(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierRepublicOfChina, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierRepublicOfChina = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierTamil') +external NSCalendarIdentifier _NSCalendarIdentifierTamil; + +DartNSCalendarIdentifier get NSCalendarIdentifierTamil => + objc.NSString.fromPointer( + _NSCalendarIdentifierTamil, + retain: true, + release: true, + ); + +set NSCalendarIdentifierTamil(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierTamil, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierTamil = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierTelugu') +external NSCalendarIdentifier _NSCalendarIdentifierTelugu; + +DartNSCalendarIdentifier get NSCalendarIdentifierTelugu => + objc.NSString.fromPointer( + _NSCalendarIdentifierTelugu, + retain: true, + release: true, + ); + +set NSCalendarIdentifierTelugu(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierTelugu, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierTelugu = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierVietnamese') +external NSCalendarIdentifier _NSCalendarIdentifierVietnamese; + +DartNSCalendarIdentifier get NSCalendarIdentifierVietnamese => + objc.NSString.fromPointer( + _NSCalendarIdentifierVietnamese, + retain: true, + release: true, + ); + +set NSCalendarIdentifierVietnamese(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierVietnamese, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierVietnamese = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCalendarIdentifierVikram') +external NSCalendarIdentifier _NSCalendarIdentifierVikram; + +DartNSCalendarIdentifier get NSCalendarIdentifierVikram => + objc.NSString.fromPointer( + _NSCalendarIdentifierVikram, + retain: true, + release: true, + ); + +set NSCalendarIdentifierVikram(DartNSCalendarIdentifier value) { + objc.NSString.fromPointer( + _NSCalendarIdentifierVikram, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCalendarIdentifierVikram = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCharacterConversionException') +external NSExceptionName _NSCharacterConversionException; + +DartNSExceptionName get NSCharacterConversionException => + objc.NSString.fromPointer( + _NSCharacterConversionException, + retain: true, + release: true, + ); + +set NSCharacterConversionException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSCharacterConversionException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCharacterConversionException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSChineseCalendar') +external ffi.Pointer _NSChineseCalendar; + +objc.NSString get NSChineseCalendar => + objc.NSString.fromPointer(_NSChineseCalendar, retain: true, release: true); + +set NSChineseCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSChineseCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSChineseCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSClassDescriptionNeededForClassNotification', +) +external NSNotificationName _NSClassDescriptionNeededForClassNotification; + +DartNSNotificationName get NSClassDescriptionNeededForClassNotification => + objc.NSString.fromPointer( + _NSClassDescriptionNeededForClassNotification, + retain: true, + release: true, + ); + +set NSClassDescriptionNeededForClassNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSClassDescriptionNeededForClassNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSClassDescriptionNeededForClassNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSClassFromString') +external ffi.Pointer _NSClassFromString( + ffi.Pointer aClassName, +); + +objc.ObjCObject? NSClassFromString(objc.NSString aClassName) { + final _$$ref = aClassName.ref; + return _NSClassFromString(_$$ref.pointer).address == 0 + ? null + : objc.ObjCObject( + _NSClassFromString(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSCocoaErrorDomain') +external NSErrorDomain _NSCocoaErrorDomain; + +DartNSErrorDomain get NSCocoaErrorDomain => + objc.NSString.fromPointer(_NSCocoaErrorDomain, retain: true, release: true); + +set NSCocoaErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSCocoaErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCocoaErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSCompareHashTables') +external bool _NSCompareHashTables( + ffi.Pointer table1, + ffi.Pointer table2, +); + +bool NSCompareHashTables(NSHashTable table1, NSHashTable table2) { + final _$$ref = table1.ref; + final _$$ref$1 = table2.ref; + return _NSCompareHashTables(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSCompareMapTables') +external bool _NSCompareMapTables( + ffi.Pointer table1, + ffi.Pointer table2, +); + +bool NSCompareMapTables(NSMapTable table1, NSMapTable table2) { + final _$$ref = table1.ref; + final _$$ref$1 = table2.ref; + return _NSCompareMapTables(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native>( + symbol: 'NSConnectionDidDieNotification', +) +external ffi.Pointer _NSConnectionDidDieNotification; + +objc.NSString get NSConnectionDidDieNotification => objc.NSString.fromPointer( + _NSConnectionDidDieNotification, + retain: true, + release: true, +); + +set NSConnectionDidDieNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSConnectionDidDieNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSConnectionDidDieNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSConnectionDidInitializeNotification', +) +external ffi.Pointer +_NSConnectionDidInitializeNotification; + +objc.NSString get NSConnectionDidInitializeNotification => + objc.NSString.fromPointer( + _NSConnectionDidInitializeNotification, + retain: true, + release: true, + ); + +set NSConnectionDidInitializeNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSConnectionDidInitializeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSConnectionDidInitializeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSConnectionReplyMode') +external ffi.Pointer _NSConnectionReplyMode; + +objc.NSString get NSConnectionReplyMode => objc.NSString.fromPointer( + _NSConnectionReplyMode, + retain: true, + release: true, +); + +set NSConnectionReplyMode(objc.NSString value) { + objc.NSString.fromPointer( + _NSConnectionReplyMode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSConnectionReplyMode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external bool NSContainsRect(NSRect aRect, NSRect bRect); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSCopyHashTableWithZone') +external ffi.Pointer _NSCopyHashTableWithZone( + ffi.Pointer table, + ffi.Pointer zone, +); + +NSHashTable NSCopyHashTableWithZone( + NSHashTable table, + ffi.Pointer zone, +) { + final _$$ref = table.ref; + return NSHashTable.fromPointer( + _NSCopyHashTableWithZone(_$$ref.pointer, zone), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSCopyMapTableWithZone') +external ffi.Pointer _NSCopyMapTableWithZone( + ffi.Pointer table, + ffi.Pointer zone, +); + +NSMapTable NSCopyMapTableWithZone(NSMapTable table, ffi.Pointer zone) { + final _$$ref = table.ref; + return NSMapTable.fromPointer( + _NSCopyMapTableWithZone(_$$ref.pointer, zone), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, NSUInteger) +>() +external void NSCopyMemoryPages( + ffi.Pointer source, + ffi.Pointer dest, + int bytes, +); + +@Deprecated('Not supported') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) +>(symbol: 'NSCopyObject') +external ffi.Pointer _NSCopyObject( + ffi.Pointer object, + int extraBytes, + ffi.Pointer zone, +); + +objc.ObjCObject NSCopyObject( + objc.ObjCObject object, + DartNSUInteger extraBytes, + ffi.Pointer zone, +) { + final _$$ref = object.ref; + return objc.ObjCObject( + _NSCopyObject(_$$ref.pointer, extraBytes, zone), + retain: true, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'NSCountHashTable', +) +external int _NSCountHashTable(ffi.Pointer table); + +DartNSUInteger NSCountHashTable(NSHashTable table) { + final _$$ref = table.ref; + return _NSCountHashTable(_$$ref.pointer); +} + +@ffi.Native(symbol: 'NSCountKeyValueOperator') +external NSKeyValueOperator _NSCountKeyValueOperator; + +DartNSKeyValueOperator get NSCountKeyValueOperator => objc.NSString.fromPointer( + _NSCountKeyValueOperator, + retain: true, + release: true, +); + +set NSCountKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSCountKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCountKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSCountMapTable', +) +external int _NSCountMapTable(ffi.Pointer table); + +DartNSUInteger NSCountMapTable(NSMapTable table) { + final _$$ref = table.ref; + return _NSCountMapTable(_$$ref.pointer); +} + +@ffi.Native< + ffi.Pointer Function(NSHashTableCallBacks, NSUInteger) +>(symbol: 'NSCreateHashTable') +external ffi.Pointer _NSCreateHashTable( + NSHashTableCallBacks callBacks, + int capacity, +); + +NSHashTable NSCreateHashTable( + NSHashTableCallBacks callBacks, + DartNSUInteger capacity, +) { + return NSHashTable.fromPointer( + _NSCreateHashTable(callBacks, capacity), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + NSHashTableCallBacks, + NSUInteger, + ffi.Pointer, + ) +>(symbol: 'NSCreateHashTableWithZone') +external ffi.Pointer _NSCreateHashTableWithZone( + NSHashTableCallBacks callBacks, + int capacity, + ffi.Pointer zone, +); + +NSHashTable NSCreateHashTableWithZone( + NSHashTableCallBacks callBacks, + DartNSUInteger capacity, + ffi.Pointer zone, +) { + return NSHashTable.fromPointer( + _NSCreateHashTableWithZone(callBacks, capacity, zone), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + NSMapTableKeyCallBacks, + NSMapTableValueCallBacks, + NSUInteger, + ) +>(symbol: 'NSCreateMapTable') +external ffi.Pointer _NSCreateMapTable( + NSMapTableKeyCallBacks keyCallBacks, + NSMapTableValueCallBacks valueCallBacks, + int capacity, +); + +NSMapTable NSCreateMapTable( + NSMapTableKeyCallBacks keyCallBacks, + NSMapTableValueCallBacks valueCallBacks, + DartNSUInteger capacity, +) { + return NSMapTable.fromPointer( + _NSCreateMapTable(keyCallBacks, valueCallBacks, capacity), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + NSMapTableKeyCallBacks, + NSMapTableValueCallBacks, + NSUInteger, + ffi.Pointer, + ) +>(symbol: 'NSCreateMapTableWithZone') +external ffi.Pointer _NSCreateMapTableWithZone( + NSMapTableKeyCallBacks keyCallBacks, + NSMapTableValueCallBacks valueCallBacks, + int capacity, + ffi.Pointer zone, +); + +NSMapTable NSCreateMapTableWithZone( + NSMapTableKeyCallBacks keyCallBacks, + NSMapTableValueCallBacks valueCallBacks, + DartNSUInteger capacity, + ffi.Pointer zone, +) { + return NSMapTable.fromPointer( + _NSCreateMapTableWithZone(keyCallBacks, valueCallBacks, capacity, zone), + retain: false, + release: true, + ); +} + +@ffi.Native Function(NSUInteger, NSUInteger, ffi.Bool)>() +external ffi.Pointer NSCreateZone( + int startSize, + int granularity, + bool canFree, +); + +@ffi.Native>(symbol: 'NSCurrencySymbol') +external ffi.Pointer _NSCurrencySymbol; + +objc.NSString get NSCurrencySymbol => + objc.NSString.fromPointer(_NSCurrencySymbol, retain: true, release: true); + +set NSCurrencySymbol(objc.NSString value) { + objc.NSString.fromPointer( + _NSCurrencySymbol, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCurrencySymbol = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSCurrentLocaleDidChangeNotification') +external NSNotificationName _NSCurrentLocaleDidChangeNotification; + +DartNSNotificationName get NSCurrentLocaleDidChangeNotification => + objc.NSString.fromPointer( + _NSCurrentLocaleDidChangeNotification, + retain: true, + release: true, + ); + +set NSCurrentLocaleDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSCurrentLocaleDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSCurrentLocaleDidChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSDateFormatString') +external ffi.Pointer _NSDateFormatString; + +objc.NSString get NSDateFormatString => + objc.NSString.fromPointer(_NSDateFormatString, retain: true, release: true); + +set NSDateFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSDateFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDateFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSDateTimeOrdering') +external ffi.Pointer _NSDateTimeOrdering; + +objc.NSString get NSDateTimeOrdering => + objc.NSString.fromPointer(_NSDateTimeOrdering, retain: true, release: true); + +set NSDateTimeOrdering(objc.NSString value) { + objc.NSString.fromPointer( + _NSDateTimeOrdering, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDateTimeOrdering = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native, NSUInteger)>() +external void NSDeallocateMemoryPages(ffi.Pointer ptr, int bytes); + +@ffi.Native)>( + symbol: 'NSDeallocateObject', +) +external void _NSDeallocateObject(ffi.Pointer object); + +void NSDeallocateObject(objc.ObjCObject object) { + final _$$ref = object.ref; + return _NSDeallocateObject(_$$ref.pointer); +} + +@ffi.Native(symbol: 'NSDebugDescriptionErrorKey') +external NSErrorUserInfoKey _NSDebugDescriptionErrorKey; + +DartNSErrorUserInfoKey get NSDebugDescriptionErrorKey => + objc.NSString.fromPointer( + _NSDebugDescriptionErrorKey, + retain: true, + release: true, + ); + +set NSDebugDescriptionErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSDebugDescriptionErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDebugDescriptionErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>(symbol: 'NSDecimalAdd') +external int _NSDecimalAdd( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + int roundingMode, +); + +NSCalculationError NSDecimalAdd( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalAdd(result, leftOperand, rightOperand, roundingMode.value), + ); +} + +@ffi.Native)>() +external void NSDecimalCompact(ffi.Pointer number); + +@ffi.Native, ffi.Pointer)>( + symbol: 'NSDecimalCompare', +) +external int _NSDecimalCompare( + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, +); + +objc.NSComparisonResult NSDecimalCompare( + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, +) { + return objc.NSComparisonResult.fromValue( + _NSDecimalCompare(leftOperand, rightOperand), + ); +} + +@ffi.Native, ffi.Pointer)>() +external void NSDecimalCopy( + ffi.Pointer destination, + ffi.Pointer source, +); + +@ffi.Native>(symbol: 'NSDecimalDigits') +external ffi.Pointer _NSDecimalDigits; + +objc.NSString get NSDecimalDigits => + objc.NSString.fromPointer(_NSDecimalDigits, retain: true, release: true); + +set NSDecimalDigits(objc.NSString value) { + objc.NSString.fromPointer( + _NSDecimalDigits, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalDigits = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>(symbol: 'NSDecimalDivide') +external int _NSDecimalDivide( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + int roundingMode, +); + +NSCalculationError NSDecimalDivide( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalDivide(result, leftOperand, rightOperand, roundingMode.value), + ); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>(symbol: 'NSDecimalMultiply') +external int _NSDecimalMultiply( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + int roundingMode, +); + +NSCalculationError NSDecimalMultiply( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalMultiply(result, leftOperand, rightOperand, roundingMode.value), + ); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Short, + NSUInteger, + ) +>(symbol: 'NSDecimalMultiplyByPowerOf10') +external int _NSDecimalMultiplyByPowerOf10( + ffi.Pointer result, + ffi.Pointer number, + int power, + int roundingMode, +); + +NSCalculationError NSDecimalMultiplyByPowerOf10( + ffi.Pointer result, + ffi.Pointer number, + int power, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalMultiplyByPowerOf10(result, number, power, roundingMode.value), + ); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>(symbol: 'NSDecimalNormalize') +external int _NSDecimalNormalize( + ffi.Pointer number1, + ffi.Pointer number2, + int roundingMode, +); + +NSCalculationError NSDecimalNormalize( + ffi.Pointer number1, + ffi.Pointer number2, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalNormalize(number1, number2, roundingMode.value), + ); +} + +@ffi.Native(symbol: 'NSDecimalNumberDivideByZeroException') +external NSExceptionName _NSDecimalNumberDivideByZeroException; + +DartNSExceptionName get NSDecimalNumberDivideByZeroException => + objc.NSString.fromPointer( + _NSDecimalNumberDivideByZeroException, + retain: true, + release: true, + ); + +set NSDecimalNumberDivideByZeroException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSDecimalNumberDivideByZeroException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalNumberDivideByZeroException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDecimalNumberExactnessException') +external NSExceptionName _NSDecimalNumberExactnessException; + +DartNSExceptionName get NSDecimalNumberExactnessException => + objc.NSString.fromPointer( + _NSDecimalNumberExactnessException, + retain: true, + release: true, + ); + +set NSDecimalNumberExactnessException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSDecimalNumberExactnessException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalNumberExactnessException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDecimalNumberOverflowException') +external NSExceptionName _NSDecimalNumberOverflowException; + +DartNSExceptionName get NSDecimalNumberOverflowException => + objc.NSString.fromPointer( + _NSDecimalNumberOverflowException, + retain: true, + release: true, + ); + +set NSDecimalNumberOverflowException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSDecimalNumberOverflowException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalNumberOverflowException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDecimalNumberUnderflowException') +external NSExceptionName _NSDecimalNumberUnderflowException; + +DartNSExceptionName get NSDecimalNumberUnderflowException => + objc.NSString.fromPointer( + _NSDecimalNumberUnderflowException, + retain: true, + release: true, + ); + +set NSDecimalNumberUnderflowException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSDecimalNumberUnderflowException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalNumberUnderflowException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSUInteger, + ) +>(symbol: 'NSDecimalPower') +external int _NSDecimalPower( + ffi.Pointer result, + ffi.Pointer number, + int power, + int roundingMode, +); + +NSCalculationError NSDecimalPower( + ffi.Pointer result, + ffi.Pointer number, + DartNSUInteger power, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalPower(result, number, power, roundingMode.value), + ); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + NSUInteger, + ) +>(symbol: 'NSDecimalRound') +external void _NSDecimalRound( + ffi.Pointer result, + ffi.Pointer number, + int scale, + int roundingMode, +); + +void NSDecimalRound( + ffi.Pointer result, + ffi.Pointer number, + DartNSInteger scale, + NSRoundingMode roundingMode, +) { + return _NSDecimalRound(result, number, scale, roundingMode.value); +} + +@ffi.Native>(symbol: 'NSDecimalSeparator') +external ffi.Pointer _NSDecimalSeparator; + +objc.NSString get NSDecimalSeparator => + objc.NSString.fromPointer(_NSDecimalSeparator, retain: true, release: true); + +set NSDecimalSeparator(objc.NSString value) { + objc.NSString.fromPointer( + _NSDecimalSeparator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDecimalSeparator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSDecimalString') +external ffi.Pointer _NSDecimalString( + ffi.Pointer dcm, + ffi.Pointer locale, +); + +objc.NSString NSDecimalString( + ffi.Pointer dcm, + objc.ObjCObject? locale, +) { + final _$$ref = locale?.ref; + return objc.NSString.fromPointer( + _NSDecimalString(dcm, _$$ref?.pointer ?? ffi.nullptr), + retain: true, + release: true, + ); +} + +@ffi.Native< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>(symbol: 'NSDecimalSubtract') +external int _NSDecimalSubtract( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + int roundingMode, +); + +NSCalculationError NSDecimalSubtract( + ffi.Pointer result, + ffi.Pointer leftOperand, + ffi.Pointer rightOperand, + NSRoundingMode roundingMode, +) { + return NSCalculationError.fromValue( + _NSDecimalSubtract(result, leftOperand, rightOperand, roundingMode.value), + ); +} + +@ffi.Native)>( + symbol: 'NSDecrementExtraRefCountWasZero', +) +external bool _NSDecrementExtraRefCountWasZero( + ffi.Pointer object, +); + +bool NSDecrementExtraRefCountWasZero(objc.ObjCObject object) { + final _$$ref = object.ref; + return _NSDecrementExtraRefCountWasZero(_$$ref.pointer); +} + +@ffi.Native Function()>() +external ffi.Pointer NSDefaultMallocZone(); + +@ffi.Native(symbol: 'NSDefaultRunLoopMode') +external NSRunLoopMode _NSDefaultRunLoopMode; + +DartNSRunLoopMode get NSDefaultRunLoopMode => objc.NSString.fromPointer( + _NSDefaultRunLoopMode, + retain: true, + release: true, +); + +set NSDefaultRunLoopMode(DartNSRunLoopMode value) { + objc.NSString.fromPointer( + _NSDefaultRunLoopMode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDefaultRunLoopMode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDestinationInvalidException') +external NSExceptionName _NSDestinationInvalidException; + +DartNSExceptionName get NSDestinationInvalidException => + objc.NSString.fromPointer( + _NSDestinationInvalidException, + retain: true, + release: true, + ); + +set NSDestinationInvalidException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSDestinationInvalidException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDestinationInvalidException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDidBecomeSingleThreadedNotification') +external NSNotificationName _NSDidBecomeSingleThreadedNotification; + +DartNSNotificationName get NSDidBecomeSingleThreadedNotification => + objc.NSString.fromPointer( + _NSDidBecomeSingleThreadedNotification, + retain: true, + release: true, + ); + +set NSDidBecomeSingleThreadedNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSDidBecomeSingleThreadedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDidBecomeSingleThreadedNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSDistinctUnionOfArraysKeyValueOperator', +) +external NSKeyValueOperator _NSDistinctUnionOfArraysKeyValueOperator; + +DartNSKeyValueOperator get NSDistinctUnionOfArraysKeyValueOperator => + objc.NSString.fromPointer( + _NSDistinctUnionOfArraysKeyValueOperator, + retain: true, + release: true, + ); + +set NSDistinctUnionOfArraysKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSDistinctUnionOfArraysKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDistinctUnionOfArraysKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSDistinctUnionOfObjectsKeyValueOperator', +) +external NSKeyValueOperator _NSDistinctUnionOfObjectsKeyValueOperator; + +DartNSKeyValueOperator get NSDistinctUnionOfObjectsKeyValueOperator => + objc.NSString.fromPointer( + _NSDistinctUnionOfObjectsKeyValueOperator, + retain: true, + release: true, + ); + +set NSDistinctUnionOfObjectsKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSDistinctUnionOfObjectsKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDistinctUnionOfObjectsKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSDistinctUnionOfSetsKeyValueOperator') +external NSKeyValueOperator _NSDistinctUnionOfSetsKeyValueOperator; + +DartNSKeyValueOperator get NSDistinctUnionOfSetsKeyValueOperator => + objc.NSString.fromPointer( + _NSDistinctUnionOfSetsKeyValueOperator, + retain: true, + release: true, + ); + +set NSDistinctUnionOfSetsKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSDistinctUnionOfSetsKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSDistinctUnionOfSetsKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Void Function( + NSRect, + ffi.Pointer, + ffi.Pointer, + CGFloat, + NSUInteger, + ) +>(symbol: 'NSDivideRect') +external void _NSDivideRect( + NSRect inRect, + ffi.Pointer slice, + ffi.Pointer rem, + double amount, + int edge, +); + +void NSDivideRect( + NSRect inRect, + ffi.Pointer slice, + ffi.Pointer rem, + DartCGFloat amount, + NSRectEdge edge, +) { + return _NSDivideRect(inRect, slice, rem, amount, edge.value); +} + +@ffi.Native>( + symbol: 'NSEarlierTimeDesignations', +) +external ffi.Pointer _NSEarlierTimeDesignations; + +objc.NSString get NSEarlierTimeDesignations => objc.NSString.fromPointer( + _NSEarlierTimeDesignations, + retain: true, + release: true, +); + +set NSEarlierTimeDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSEarlierTimeDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSEarlierTimeDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external bool NSEdgeInsetsEqual( + objc.NSEdgeInsets aInsets, + objc.NSEdgeInsets bInsets, +); + +@ffi.Native() +external final objc.NSEdgeInsets NSEdgeInsetsZero; + +@ffi.Native)>() +external void NSEndHashTableEnumeration( + ffi.Pointer enumerator, +); + +@ffi.Native)>() +external void NSEndMapTableEnumeration(ffi.Pointer enumerator); + +@ffi.Native)>( + symbol: 'NSEnumerateHashTable', +) +external NSHashEnumerator _NSEnumerateHashTable( + ffi.Pointer table, +); + +NSHashEnumerator NSEnumerateHashTable(NSHashTable table) { + final _$$ref = table.ref; + return _NSEnumerateHashTable(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'NSEnumerateMapTable', +) +external NSMapEnumerator _NSEnumerateMapTable( + ffi.Pointer table, +); + +NSMapEnumerator NSEnumerateMapTable(NSMapTable table) { + final _$$ref = table.ref; + return _NSEnumerateMapTable(_$$ref.pointer); +} + +@ffi.Native() +external bool NSEqualPoints(NSPoint aPoint, NSPoint bPoint); + +@ffi.Native() +external bool NSEqualRects(NSRect aRect, NSRect bRect); + +@ffi.Native() +external bool NSEqualSizes(NSSize aSize, NSSize bSize); + +@ffi.Native>( + symbol: 'NSErrorFailingURLStringKey', +) +external ffi.Pointer _NSErrorFailingURLStringKey; + +objc.NSString get NSErrorFailingURLStringKey => objc.NSString.fromPointer( + _NSErrorFailingURLStringKey, + retain: true, + release: true, +); + +set NSErrorFailingURLStringKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSErrorFailingURLStringKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSErrorFailingURLStringKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionHostDidBecomeActiveNotification', +) +external ffi.Pointer +_NSExtensionHostDidBecomeActiveNotification; + +objc.NSString get NSExtensionHostDidBecomeActiveNotification => + objc.NSString.fromPointer( + _NSExtensionHostDidBecomeActiveNotification, + retain: true, + release: true, + ); + +set NSExtensionHostDidBecomeActiveNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionHostDidBecomeActiveNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionHostDidBecomeActiveNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionHostDidEnterBackgroundNotification', +) +external ffi.Pointer +_NSExtensionHostDidEnterBackgroundNotification; + +objc.NSString get NSExtensionHostDidEnterBackgroundNotification => + objc.NSString.fromPointer( + _NSExtensionHostDidEnterBackgroundNotification, + retain: true, + release: true, + ); + +set NSExtensionHostDidEnterBackgroundNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionHostDidEnterBackgroundNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionHostDidEnterBackgroundNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionHostWillEnterForegroundNotification', +) +external ffi.Pointer +_NSExtensionHostWillEnterForegroundNotification; + +objc.NSString get NSExtensionHostWillEnterForegroundNotification => + objc.NSString.fromPointer( + _NSExtensionHostWillEnterForegroundNotification, + retain: true, + release: true, + ); + +set NSExtensionHostWillEnterForegroundNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionHostWillEnterForegroundNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionHostWillEnterForegroundNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionHostWillResignActiveNotification', +) +external ffi.Pointer +_NSExtensionHostWillResignActiveNotification; + +objc.NSString get NSExtensionHostWillResignActiveNotification => + objc.NSString.fromPointer( + _NSExtensionHostWillResignActiveNotification, + retain: true, + release: true, + ); + +set NSExtensionHostWillResignActiveNotification(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionHostWillResignActiveNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionHostWillResignActiveNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionItemAttachmentsKey', +) +external ffi.Pointer _NSExtensionItemAttachmentsKey; + +objc.NSString get NSExtensionItemAttachmentsKey => objc.NSString.fromPointer( + _NSExtensionItemAttachmentsKey, + retain: true, + release: true, +); + +set NSExtensionItemAttachmentsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionItemAttachmentsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionItemAttachmentsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionItemAttributedContentTextKey', +) +external ffi.Pointer +_NSExtensionItemAttributedContentTextKey; + +objc.NSString get NSExtensionItemAttributedContentTextKey => + objc.NSString.fromPointer( + _NSExtensionItemAttributedContentTextKey, + retain: true, + release: true, + ); + +set NSExtensionItemAttributedContentTextKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionItemAttributedContentTextKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionItemAttributedContentTextKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionItemAttributedTitleKey', +) +external ffi.Pointer _NSExtensionItemAttributedTitleKey; + +objc.NSString get NSExtensionItemAttributedTitleKey => + objc.NSString.fromPointer( + _NSExtensionItemAttributedTitleKey, + retain: true, + release: true, + ); + +set NSExtensionItemAttributedTitleKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionItemAttributedTitleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionItemAttributedTitleKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionItemsAndErrorsKey', +) +external ffi.Pointer _NSExtensionItemsAndErrorsKey; + +objc.NSString get NSExtensionItemsAndErrorsKey => objc.NSString.fromPointer( + _NSExtensionItemsAndErrorsKey, + retain: true, + release: true, +); + +set NSExtensionItemsAndErrorsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionItemsAndErrorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionItemsAndErrorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionJavaScriptFinalizeArgumentKey', +) +external ffi.Pointer +_NSExtensionJavaScriptFinalizeArgumentKey; + +objc.NSString get NSExtensionJavaScriptFinalizeArgumentKey => + objc.NSString.fromPointer( + _NSExtensionJavaScriptFinalizeArgumentKey, + retain: true, + release: true, + ); + +set NSExtensionJavaScriptFinalizeArgumentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionJavaScriptFinalizeArgumentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionJavaScriptFinalizeArgumentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSExtensionJavaScriptPreprocessingResultsKey', +) +external ffi.Pointer +_NSExtensionJavaScriptPreprocessingResultsKey; + +objc.NSString get NSExtensionJavaScriptPreprocessingResultsKey => + objc.NSString.fromPointer( + _NSExtensionJavaScriptPreprocessingResultsKey, + retain: true, + release: true, + ); + +set NSExtensionJavaScriptPreprocessingResultsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSExtensionJavaScriptPreprocessingResultsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSExtensionJavaScriptPreprocessingResultsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSExtraRefCount', +) +external int _NSExtraRefCount(ffi.Pointer object); + +DartNSUInteger NSExtraRefCount(objc.ObjCObject object) { + final _$$ref = object.ref; + return _NSExtraRefCount(_$$ref.pointer); +} + +@ffi.Native>( + symbol: 'NSFTPPropertyActiveTransferModeKey', +) +external final ffi.Pointer +_NSFTPPropertyActiveTransferModeKey; + +objc.NSString get NSFTPPropertyActiveTransferModeKey => + objc.NSString.fromPointer( + _NSFTPPropertyActiveTransferModeKey, + retain: true, + release: true, + ); + +@ffi.Native>(symbol: 'NSFTPPropertyFTPProxy') +external final ffi.Pointer _NSFTPPropertyFTPProxy; + +objc.NSString get NSFTPPropertyFTPProxy => objc.NSString.fromPointer( + _NSFTPPropertyFTPProxy, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSFTPPropertyFileOffsetKey', +) +external final ffi.Pointer _NSFTPPropertyFileOffsetKey; + +objc.NSString get NSFTPPropertyFileOffsetKey => objc.NSString.fromPointer( + _NSFTPPropertyFileOffsetKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSFTPPropertyUserLoginKey', +) +external final ffi.Pointer _NSFTPPropertyUserLoginKey; + +objc.NSString get NSFTPPropertyUserLoginKey => objc.NSString.fromPointer( + _NSFTPPropertyUserLoginKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSFTPPropertyUserPasswordKey', +) +external final ffi.Pointer _NSFTPPropertyUserPasswordKey; + +objc.NSString get NSFTPPropertyUserPasswordKey => objc.NSString.fromPointer( + _NSFTPPropertyUserPasswordKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSFailedAuthenticationException', +) +external ffi.Pointer _NSFailedAuthenticationException; + +objc.NSString get NSFailedAuthenticationException => objc.NSString.fromPointer( + _NSFailedAuthenticationException, + retain: true, + release: true, +); + +set NSFailedAuthenticationException(objc.NSString value) { + objc.NSString.fromPointer( + _NSFailedAuthenticationException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFailedAuthenticationException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileAppendOnly') +external NSFileAttributeKey _NSFileAppendOnly; + +DartNSFileAttributeKey get NSFileAppendOnly => + objc.NSString.fromPointer(_NSFileAppendOnly, retain: true, release: true); + +set NSFileAppendOnly(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileAppendOnly, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileAppendOnly = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileBusy') +external NSFileAttributeKey _NSFileBusy; + +DartNSFileAttributeKey get NSFileBusy => + objc.NSString.fromPointer(_NSFileBusy, retain: true, release: true); + +set NSFileBusy(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileBusy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileBusy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileCreationDate') +external NSFileAttributeKey _NSFileCreationDate; + +DartNSFileAttributeKey get NSFileCreationDate => + objc.NSString.fromPointer(_NSFileCreationDate, retain: true, release: true); + +set NSFileCreationDate(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileCreationDate, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileCreationDate = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileDeviceIdentifier') +external NSFileAttributeKey _NSFileDeviceIdentifier; + +DartNSFileAttributeKey get NSFileDeviceIdentifier => objc.NSString.fromPointer( + _NSFileDeviceIdentifier, + retain: true, + release: true, +); + +set NSFileDeviceIdentifier(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileDeviceIdentifier, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileDeviceIdentifier = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileExtensionHidden') +external NSFileAttributeKey _NSFileExtensionHidden; + +DartNSFileAttributeKey get NSFileExtensionHidden => objc.NSString.fromPointer( + _NSFileExtensionHidden, + retain: true, + release: true, +); + +set NSFileExtensionHidden(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileExtensionHidden, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileExtensionHidden = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileGroupOwnerAccountID') +external NSFileAttributeKey _NSFileGroupOwnerAccountID; + +DartNSFileAttributeKey get NSFileGroupOwnerAccountID => + objc.NSString.fromPointer( + _NSFileGroupOwnerAccountID, + retain: true, + release: true, + ); + +set NSFileGroupOwnerAccountID(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileGroupOwnerAccountID, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileGroupOwnerAccountID = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileGroupOwnerAccountName') +external NSFileAttributeKey _NSFileGroupOwnerAccountName; + +DartNSFileAttributeKey get NSFileGroupOwnerAccountName => + objc.NSString.fromPointer( + _NSFileGroupOwnerAccountName, + retain: true, + release: true, + ); + +set NSFileGroupOwnerAccountName(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileGroupOwnerAccountName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileGroupOwnerAccountName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileHFSCreatorCode') +external NSFileAttributeKey _NSFileHFSCreatorCode; + +DartNSFileAttributeKey get NSFileHFSCreatorCode => objc.NSString.fromPointer( + _NSFileHFSCreatorCode, + retain: true, + release: true, +); + +set NSFileHFSCreatorCode(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileHFSCreatorCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHFSCreatorCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileHFSTypeCode') +external NSFileAttributeKey _NSFileHFSTypeCode; + +DartNSFileAttributeKey get NSFileHFSTypeCode => + objc.NSString.fromPointer(_NSFileHFSTypeCode, retain: true, release: true); + +set NSFileHFSTypeCode(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileHFSTypeCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHFSTypeCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSFileHandleConnectionAcceptedNotification', +) +external NSNotificationName _NSFileHandleConnectionAcceptedNotification; + +DartNSNotificationName get NSFileHandleConnectionAcceptedNotification => + objc.NSString.fromPointer( + _NSFileHandleConnectionAcceptedNotification, + retain: true, + release: true, + ); + +set NSFileHandleConnectionAcceptedNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSFileHandleConnectionAcceptedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleConnectionAcceptedNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileHandleDataAvailableNotification') +external NSNotificationName _NSFileHandleDataAvailableNotification; + +DartNSNotificationName get NSFileHandleDataAvailableNotification => + objc.NSString.fromPointer( + _NSFileHandleDataAvailableNotification, + retain: true, + release: true, + ); + +set NSFileHandleDataAvailableNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSFileHandleDataAvailableNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleDataAvailableNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSFileHandleNotificationDataItem', +) +external ffi.Pointer _NSFileHandleNotificationDataItem; + +objc.NSString get NSFileHandleNotificationDataItem => objc.NSString.fromPointer( + _NSFileHandleNotificationDataItem, + retain: true, + release: true, +); + +set NSFileHandleNotificationDataItem(objc.NSString value) { + objc.NSString.fromPointer( + _NSFileHandleNotificationDataItem, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleNotificationDataItem = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSFileHandleNotificationFileHandleItem', +) +external ffi.Pointer +_NSFileHandleNotificationFileHandleItem; + +objc.NSString get NSFileHandleNotificationFileHandleItem => + objc.NSString.fromPointer( + _NSFileHandleNotificationFileHandleItem, + retain: true, + release: true, + ); + +set NSFileHandleNotificationFileHandleItem(objc.NSString value) { + objc.NSString.fromPointer( + _NSFileHandleNotificationFileHandleItem, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleNotificationFileHandleItem = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSFileHandleNotificationMonitorModes', +) +external ffi.Pointer _NSFileHandleNotificationMonitorModes; + +objc.NSString get NSFileHandleNotificationMonitorModes => + objc.NSString.fromPointer( + _NSFileHandleNotificationMonitorModes, + retain: true, + release: true, + ); + +set NSFileHandleNotificationMonitorModes(objc.NSString value) { + objc.NSString.fromPointer( + _NSFileHandleNotificationMonitorModes, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleNotificationMonitorModes = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileHandleOperationException') +external NSExceptionName _NSFileHandleOperationException; + +DartNSExceptionName get NSFileHandleOperationException => + objc.NSString.fromPointer( + _NSFileHandleOperationException, + retain: true, + release: true, + ); + +set NSFileHandleOperationException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSFileHandleOperationException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleOperationException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSFileHandleReadCompletionNotification', +) +external NSNotificationName _NSFileHandleReadCompletionNotification; + +DartNSNotificationName get NSFileHandleReadCompletionNotification => + objc.NSString.fromPointer( + _NSFileHandleReadCompletionNotification, + retain: true, + release: true, + ); + +set NSFileHandleReadCompletionNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSFileHandleReadCompletionNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleReadCompletionNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSFileHandleReadToEndOfFileCompletionNotification', +) +external NSNotificationName _NSFileHandleReadToEndOfFileCompletionNotification; + +DartNSNotificationName get NSFileHandleReadToEndOfFileCompletionNotification => + objc.NSString.fromPointer( + _NSFileHandleReadToEndOfFileCompletionNotification, + retain: true, + release: true, + ); + +set NSFileHandleReadToEndOfFileCompletionNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSFileHandleReadToEndOfFileCompletionNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileHandleReadToEndOfFileCompletionNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileImmutable') +external NSFileAttributeKey _NSFileImmutable; + +DartNSFileAttributeKey get NSFileImmutable => + objc.NSString.fromPointer(_NSFileImmutable, retain: true, release: true); + +set NSFileImmutable(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileImmutable, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileImmutable = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSFileManagerUnmountDissentingProcessIdentifierErrorKey', +) +external ffi.Pointer +_NSFileManagerUnmountDissentingProcessIdentifierErrorKey; + +objc.NSString get NSFileManagerUnmountDissentingProcessIdentifierErrorKey => + objc.NSString.fromPointer( + _NSFileManagerUnmountDissentingProcessIdentifierErrorKey, + retain: true, + release: true, + ); + +set NSFileManagerUnmountDissentingProcessIdentifierErrorKey( + objc.NSString value, +) { + objc.NSString.fromPointer( + _NSFileManagerUnmountDissentingProcessIdentifierErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileManagerUnmountDissentingProcessIdentifierErrorKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileModificationDate') +external NSFileAttributeKey _NSFileModificationDate; + +DartNSFileAttributeKey get NSFileModificationDate => objc.NSString.fromPointer( + _NSFileModificationDate, + retain: true, + release: true, +); + +set NSFileModificationDate(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileModificationDate, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileModificationDate = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileOwnerAccountID') +external NSFileAttributeKey _NSFileOwnerAccountID; + +DartNSFileAttributeKey get NSFileOwnerAccountID => objc.NSString.fromPointer( + _NSFileOwnerAccountID, + retain: true, + release: true, +); + +set NSFileOwnerAccountID(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileOwnerAccountID, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileOwnerAccountID = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileOwnerAccountName') +external NSFileAttributeKey _NSFileOwnerAccountName; + +DartNSFileAttributeKey get NSFileOwnerAccountName => objc.NSString.fromPointer( + _NSFileOwnerAccountName, + retain: true, + release: true, +); + +set NSFileOwnerAccountName(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileOwnerAccountName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileOwnerAccountName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFilePathErrorKey') +external NSErrorUserInfoKey _NSFilePathErrorKey; + +DartNSErrorUserInfoKey get NSFilePathErrorKey => + objc.NSString.fromPointer(_NSFilePathErrorKey, retain: true, release: true); + +set NSFilePathErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSFilePathErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFilePathErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFilePosixPermissions') +external NSFileAttributeKey _NSFilePosixPermissions; + +DartNSFileAttributeKey get NSFilePosixPermissions => objc.NSString.fromPointer( + _NSFilePosixPermissions, + retain: true, + release: true, +); + +set NSFilePosixPermissions(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFilePosixPermissions, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFilePosixPermissions = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileProtectionComplete') +external NSFileProtectionType _NSFileProtectionComplete; + +DartNSFileProtectionType get NSFileProtectionComplete => + objc.NSString.fromPointer( + _NSFileProtectionComplete, + retain: true, + release: true, + ); + +set NSFileProtectionComplete(DartNSFileProtectionType value) { + objc.NSString.fromPointer( + _NSFileProtectionComplete, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionComplete = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileProtectionCompleteUnlessOpen') +external NSFileProtectionType _NSFileProtectionCompleteUnlessOpen; + +DartNSFileProtectionType get NSFileProtectionCompleteUnlessOpen => + objc.NSString.fromPointer( + _NSFileProtectionCompleteUnlessOpen, + retain: true, + release: true, + ); + +set NSFileProtectionCompleteUnlessOpen(DartNSFileProtectionType value) { + objc.NSString.fromPointer( + _NSFileProtectionCompleteUnlessOpen, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionCompleteUnlessOpen = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSFileProtectionCompleteUntilFirstUserAuthentication', +) +external NSFileProtectionType +_NSFileProtectionCompleteUntilFirstUserAuthentication; + +DartNSFileProtectionType +get NSFileProtectionCompleteUntilFirstUserAuthentication => + objc.NSString.fromPointer( + _NSFileProtectionCompleteUntilFirstUserAuthentication, + retain: true, + release: true, + ); + +set NSFileProtectionCompleteUntilFirstUserAuthentication( + DartNSFileProtectionType value, +) { + objc.NSString.fromPointer( + _NSFileProtectionCompleteUntilFirstUserAuthentication, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionCompleteUntilFirstUserAuthentication = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSFileProtectionCompleteWhenUserInactive', +) +external NSFileProtectionType _NSFileProtectionCompleteWhenUserInactive; + +DartNSFileProtectionType get NSFileProtectionCompleteWhenUserInactive => + objc.NSString.fromPointer( + _NSFileProtectionCompleteWhenUserInactive, + retain: true, + release: true, + ); + +set NSFileProtectionCompleteWhenUserInactive(DartNSFileProtectionType value) { + objc.NSString.fromPointer( + _NSFileProtectionCompleteWhenUserInactive, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionCompleteWhenUserInactive = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileProtectionKey') +external NSFileAttributeKey _NSFileProtectionKey; + +DartNSFileAttributeKey get NSFileProtectionKey => objc.NSString.fromPointer( + _NSFileProtectionKey, + retain: true, + release: true, +); + +set NSFileProtectionKey(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileProtectionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileProtectionNone') +external NSFileProtectionType _NSFileProtectionNone; + +DartNSFileProtectionType get NSFileProtectionNone => objc.NSString.fromPointer( + _NSFileProtectionNone, + retain: true, + release: true, +); + +set NSFileProtectionNone(DartNSFileProtectionType value) { + objc.NSString.fromPointer( + _NSFileProtectionNone, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileProtectionNone = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileReferenceCount') +external NSFileAttributeKey _NSFileReferenceCount; + +DartNSFileAttributeKey get NSFileReferenceCount => objc.NSString.fromPointer( + _NSFileReferenceCount, + retain: true, + release: true, +); + +set NSFileReferenceCount(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileReferenceCount, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileReferenceCount = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSize') +external NSFileAttributeKey _NSFileSize; + +DartNSFileAttributeKey get NSFileSize => + objc.NSString.fromPointer(_NSFileSize, retain: true, release: true); + +set NSFileSize(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSize, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSize = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemFileNumber') +external NSFileAttributeKey _NSFileSystemFileNumber; + +DartNSFileAttributeKey get NSFileSystemFileNumber => objc.NSString.fromPointer( + _NSFileSystemFileNumber, + retain: true, + release: true, +); + +set NSFileSystemFileNumber(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemFileNumber, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemFileNumber = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemFreeNodes') +external NSFileAttributeKey _NSFileSystemFreeNodes; + +DartNSFileAttributeKey get NSFileSystemFreeNodes => objc.NSString.fromPointer( + _NSFileSystemFreeNodes, + retain: true, + release: true, +); + +set NSFileSystemFreeNodes(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemFreeNodes, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemFreeNodes = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemFreeSize') +external NSFileAttributeKey _NSFileSystemFreeSize; + +DartNSFileAttributeKey get NSFileSystemFreeSize => objc.NSString.fromPointer( + _NSFileSystemFreeSize, + retain: true, + release: true, +); + +set NSFileSystemFreeSize(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemFreeSize, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemFreeSize = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemNodes') +external NSFileAttributeKey _NSFileSystemNodes; + +DartNSFileAttributeKey get NSFileSystemNodes => + objc.NSString.fromPointer(_NSFileSystemNodes, retain: true, release: true); + +set NSFileSystemNodes(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemNodes, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemNodes = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemNumber') +external NSFileAttributeKey _NSFileSystemNumber; + +DartNSFileAttributeKey get NSFileSystemNumber => + objc.NSString.fromPointer(_NSFileSystemNumber, retain: true, release: true); + +set NSFileSystemNumber(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemNumber, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemNumber = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileSystemSize') +external NSFileAttributeKey _NSFileSystemSize; + +DartNSFileAttributeKey get NSFileSystemSize => + objc.NSString.fromPointer(_NSFileSystemSize, retain: true, release: true); + +set NSFileSystemSize(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileSystemSize, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileSystemSize = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileType') +external NSFileAttributeKey _NSFileType; + +DartNSFileAttributeKey get NSFileType => + objc.NSString.fromPointer(_NSFileType, retain: true, release: true); + +set NSFileType(DartNSFileAttributeKey value) { + objc.NSString.fromPointer( + _NSFileType, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileType = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeBlockSpecial') +external NSFileAttributeType _NSFileTypeBlockSpecial; + +DartNSFileAttributeType get NSFileTypeBlockSpecial => objc.NSString.fromPointer( + _NSFileTypeBlockSpecial, + retain: true, + release: true, +); + +set NSFileTypeBlockSpecial(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeBlockSpecial, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeBlockSpecial = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeCharacterSpecial') +external NSFileAttributeType _NSFileTypeCharacterSpecial; + +DartNSFileAttributeType get NSFileTypeCharacterSpecial => + objc.NSString.fromPointer( + _NSFileTypeCharacterSpecial, + retain: true, + release: true, + ); + +set NSFileTypeCharacterSpecial(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeCharacterSpecial, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeCharacterSpecial = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeDirectory') +external NSFileAttributeType _NSFileTypeDirectory; + +DartNSFileAttributeType get NSFileTypeDirectory => objc.NSString.fromPointer( + _NSFileTypeDirectory, + retain: true, + release: true, +); + +set NSFileTypeDirectory(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeDirectory, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeDirectory = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native Function(OSType)>( + symbol: 'NSFileTypeForHFSTypeCode', +) +external ffi.Pointer _NSFileTypeForHFSTypeCode( + int hfsFileTypeCode, +); + +objc.NSString NSFileTypeForHFSTypeCode(DartUInt32 hfsFileTypeCode) { + return objc.NSString.fromPointer( + _NSFileTypeForHFSTypeCode(hfsFileTypeCode), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSFileTypeRegular') +external NSFileAttributeType _NSFileTypeRegular; + +DartNSFileAttributeType get NSFileTypeRegular => + objc.NSString.fromPointer(_NSFileTypeRegular, retain: true, release: true); + +set NSFileTypeRegular(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeRegular, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeRegular = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeSocket') +external NSFileAttributeType _NSFileTypeSocket; + +DartNSFileAttributeType get NSFileTypeSocket => + objc.NSString.fromPointer(_NSFileTypeSocket, retain: true, release: true); + +set NSFileTypeSocket(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeSocket, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeSocket = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeSymbolicLink') +external NSFileAttributeType _NSFileTypeSymbolicLink; + +DartNSFileAttributeType get NSFileTypeSymbolicLink => objc.NSString.fromPointer( + _NSFileTypeSymbolicLink, + retain: true, + release: true, +); + +set NSFileTypeSymbolicLink(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeSymbolicLink, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeSymbolicLink = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSFileTypeUnknown') +external NSFileAttributeType _NSFileTypeUnknown; + +DartNSFileAttributeType get NSFileTypeUnknown => + objc.NSString.fromPointer(_NSFileTypeUnknown, retain: true, release: true); + +set NSFileTypeUnknown(DartNSFileAttributeType value) { + objc.NSString.fromPointer( + _NSFileTypeUnknown, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSFileTypeUnknown = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external double NSFoundationVersionNumber; + +@ffi.Native)>( + symbol: 'NSFreeHashTable', +) +external void _NSFreeHashTable(ffi.Pointer table); + +void NSFreeHashTable(NSHashTable table) { + final _$$ref = table.ref; + return _NSFreeHashTable(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'NSFreeMapTable', +) +external void _NSFreeMapTable(ffi.Pointer table); + +void NSFreeMapTable(NSMapTable table) { + final _$$ref = table.ref; + return _NSFreeMapTable(_$$ref.retainAndReturnPointer()); +} + +@ffi.Native Function()>( + symbol: 'NSFullUserName', +) +external ffi.Pointer _NSFullUserName(); + +objc.NSString NSFullUserName() { + return objc.NSString.fromPointer( + _NSFullUserName(), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSGenericException') +external NSExceptionName _NSGenericException; + +DartNSExceptionName get NSGenericException => + objc.NSString.fromPointer(_NSGenericException, retain: true, release: true); + +set NSGenericException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSGenericException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGenericException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer NSGetSizeAndAlignment( + ffi.Pointer typePtr$1, + ffi.Pointer sizep, + ffi.Pointer alignp, +); + +@ffi.Native Function()>() +external ffi.Pointer +NSGetUncaughtExceptionHandler(); + +@ffi.Native>(symbol: 'NSGlobalDomain') +external ffi.Pointer _NSGlobalDomain; + +objc.NSString get NSGlobalDomain => + objc.NSString.fromPointer(_NSGlobalDomain, retain: true, release: true); + +set NSGlobalDomain(objc.NSString value) { + objc.NSString.fromPointer( + _NSGlobalDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGlobalDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSGrammarCorrections') +external ffi.Pointer _NSGrammarCorrections; + +objc.NSString get NSGrammarCorrections => objc.NSString.fromPointer( + _NSGrammarCorrections, + retain: true, + release: true, +); + +set NSGrammarCorrections(objc.NSString value) { + objc.NSString.fromPointer( + _NSGrammarCorrections, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGrammarCorrections = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSGrammarRange') +external ffi.Pointer _NSGrammarRange; + +objc.NSString get NSGrammarRange => + objc.NSString.fromPointer(_NSGrammarRange, retain: true, release: true); + +set NSGrammarRange(objc.NSString value) { + objc.NSString.fromPointer( + _NSGrammarRange, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGrammarRange = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSGrammarUserDescription', +) +external ffi.Pointer _NSGrammarUserDescription; + +objc.NSString get NSGrammarUserDescription => objc.NSString.fromPointer( + _NSGrammarUserDescription, + retain: true, + release: true, +); + +set NSGrammarUserDescription(objc.NSString value) { + objc.NSString.fromPointer( + _NSGrammarUserDescription, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGrammarUserDescription = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSGregorianCalendar') +external ffi.Pointer _NSGregorianCalendar; + +objc.NSString get NSGregorianCalendar => objc.NSString.fromPointer( + _NSGregorianCalendar, + retain: true, + release: true, +); + +set NSGregorianCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSGregorianCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSGregorianCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSHFSTypeCodeFromFileType', +) +external int _NSHFSTypeCodeFromFileType( + ffi.Pointer fileTypeString, +); + +DartUInt32 NSHFSTypeCodeFromFileType(objc.NSString fileTypeString) { + final _$$ref = fileTypeString.ref; + return _NSHFSTypeCodeFromFileType(_$$ref.pointer); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSHFSTypeOfFile') +external ffi.Pointer _NSHFSTypeOfFile( + ffi.Pointer fullFilePath, +); + +objc.NSString NSHFSTypeOfFile(objc.NSString fullFilePath) { + final _$$ref = fullFilePath.ref; + return objc.NSString.fromPointer( + _NSHFSTypeOfFile(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSHTTPCookieComment') +external NSHTTPCookiePropertyKey _NSHTTPCookieComment; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieComment => + objc.NSString.fromPointer( + _NSHTTPCookieComment, + retain: true, + release: true, + ); + +set NSHTTPCookieComment(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieComment, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieComment = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieCommentURL') +external NSHTTPCookiePropertyKey _NSHTTPCookieCommentURL; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieCommentURL => + objc.NSString.fromPointer( + _NSHTTPCookieCommentURL, + retain: true, + release: true, + ); + +set NSHTTPCookieCommentURL(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieCommentURL, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieCommentURL = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieDiscard') +external NSHTTPCookiePropertyKey _NSHTTPCookieDiscard; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieDiscard => + objc.NSString.fromPointer( + _NSHTTPCookieDiscard, + retain: true, + release: true, + ); + +set NSHTTPCookieDiscard(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieDiscard, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieDiscard = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieDomain') +external NSHTTPCookiePropertyKey _NSHTTPCookieDomain; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieDomain => + objc.NSString.fromPointer(_NSHTTPCookieDomain, retain: true, release: true); + +set NSHTTPCookieDomain(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieExpires') +external NSHTTPCookiePropertyKey _NSHTTPCookieExpires; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieExpires => + objc.NSString.fromPointer( + _NSHTTPCookieExpires, + retain: true, + release: true, + ); + +set NSHTTPCookieExpires(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieExpires, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieExpires = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSHTTPCookieManagerAcceptPolicyChangedNotification', +) +external NSNotificationName _NSHTTPCookieManagerAcceptPolicyChangedNotification; + +DartNSNotificationName get NSHTTPCookieManagerAcceptPolicyChangedNotification => + objc.NSString.fromPointer( + _NSHTTPCookieManagerAcceptPolicyChangedNotification, + retain: true, + release: true, + ); + +set NSHTTPCookieManagerAcceptPolicyChangedNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSHTTPCookieManagerAcceptPolicyChangedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieManagerAcceptPolicyChangedNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSHTTPCookieManagerCookiesChangedNotification', +) +external NSNotificationName _NSHTTPCookieManagerCookiesChangedNotification; + +DartNSNotificationName get NSHTTPCookieManagerCookiesChangedNotification => + objc.NSString.fromPointer( + _NSHTTPCookieManagerCookiesChangedNotification, + retain: true, + release: true, + ); + +set NSHTTPCookieManagerCookiesChangedNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSHTTPCookieManagerCookiesChangedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieManagerCookiesChangedNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieMaximumAge') +external NSHTTPCookiePropertyKey _NSHTTPCookieMaximumAge; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieMaximumAge => + objc.NSString.fromPointer( + _NSHTTPCookieMaximumAge, + retain: true, + release: true, + ); + +set NSHTTPCookieMaximumAge(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieMaximumAge, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieMaximumAge = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieName') +external NSHTTPCookiePropertyKey _NSHTTPCookieName; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieName => + objc.NSString.fromPointer(_NSHTTPCookieName, retain: true, release: true); + +set NSHTTPCookieName(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieOriginURL') +external NSHTTPCookiePropertyKey _NSHTTPCookieOriginURL; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieOriginURL => + objc.NSString.fromPointer( + _NSHTTPCookieOriginURL, + retain: true, + release: true, + ); + +set NSHTTPCookieOriginURL(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieOriginURL, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieOriginURL = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookiePath') +external NSHTTPCookiePropertyKey _NSHTTPCookiePath; + +DartNSHTTPCookiePropertyKey get NSHTTPCookiePath => + objc.NSString.fromPointer(_NSHTTPCookiePath, retain: true, release: true); + +set NSHTTPCookiePath(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookiePath, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookiePath = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookiePort') +external NSHTTPCookiePropertyKey _NSHTTPCookiePort; + +DartNSHTTPCookiePropertyKey get NSHTTPCookiePort => + objc.NSString.fromPointer(_NSHTTPCookiePort, retain: true, release: true); + +set NSHTTPCookiePort(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookiePort, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookiePort = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieSameSiteLax') +external NSHTTPCookieStringPolicy _NSHTTPCookieSameSiteLax; + +DartNSHTTPCookieStringPolicy get NSHTTPCookieSameSiteLax => + objc.NSString.fromPointer( + _NSHTTPCookieSameSiteLax, + retain: true, + release: true, + ); + +set NSHTTPCookieSameSiteLax(DartNSHTTPCookieStringPolicy value) { + objc.NSString.fromPointer( + _NSHTTPCookieSameSiteLax, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieSameSiteLax = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieSameSitePolicy') +external NSHTTPCookiePropertyKey _NSHTTPCookieSameSitePolicy; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieSameSitePolicy => + objc.NSString.fromPointer( + _NSHTTPCookieSameSitePolicy, + retain: true, + release: true, + ); + +set NSHTTPCookieSameSitePolicy(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieSameSitePolicy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieSameSitePolicy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieSameSiteStrict') +external NSHTTPCookieStringPolicy _NSHTTPCookieSameSiteStrict; + +DartNSHTTPCookieStringPolicy get NSHTTPCookieSameSiteStrict => + objc.NSString.fromPointer( + _NSHTTPCookieSameSiteStrict, + retain: true, + release: true, + ); + +set NSHTTPCookieSameSiteStrict(DartNSHTTPCookieStringPolicy value) { + objc.NSString.fromPointer( + _NSHTTPCookieSameSiteStrict, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieSameSiteStrict = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieSecure') +external NSHTTPCookiePropertyKey _NSHTTPCookieSecure; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieSecure => + objc.NSString.fromPointer(_NSHTTPCookieSecure, retain: true, release: true); + +set NSHTTPCookieSecure(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieSecure, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieSecure = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieSetByJavaScript') +external NSHTTPCookiePropertyKey _NSHTTPCookieSetByJavaScript; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieSetByJavaScript => + objc.NSString.fromPointer( + _NSHTTPCookieSetByJavaScript, + retain: true, + release: true, + ); + +set NSHTTPCookieSetByJavaScript(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieSetByJavaScript, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieSetByJavaScript = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieValue') +external NSHTTPCookiePropertyKey _NSHTTPCookieValue; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieValue => + objc.NSString.fromPointer(_NSHTTPCookieValue, retain: true, release: true); + +set NSHTTPCookieValue(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieValue, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieValue = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHTTPCookieVersion') +external NSHTTPCookiePropertyKey _NSHTTPCookieVersion; + +DartNSHTTPCookiePropertyKey get NSHTTPCookieVersion => + objc.NSString.fromPointer( + _NSHTTPCookieVersion, + retain: true, + release: true, + ); + +set NSHTTPCookieVersion(DartNSHTTPCookiePropertyKey value) { + objc.NSString.fromPointer( + _NSHTTPCookieVersion, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHTTPCookieVersion = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSHTTPPropertyErrorPageDataKey', +) +external final ffi.Pointer _NSHTTPPropertyErrorPageDataKey; + +objc.NSString get NSHTTPPropertyErrorPageDataKey => objc.NSString.fromPointer( + _NSHTTPPropertyErrorPageDataKey, + retain: true, + release: true, +); + +@ffi.Native>(symbol: 'NSHTTPPropertyHTTPProxy') +external final ffi.Pointer _NSHTTPPropertyHTTPProxy; + +objc.NSString get NSHTTPPropertyHTTPProxy => objc.NSString.fromPointer( + _NSHTTPPropertyHTTPProxy, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSHTTPPropertyRedirectionHeadersKey', +) +external final ffi.Pointer +_NSHTTPPropertyRedirectionHeadersKey; + +objc.NSString get NSHTTPPropertyRedirectionHeadersKey => + objc.NSString.fromPointer( + _NSHTTPPropertyRedirectionHeadersKey, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'NSHTTPPropertyServerHTTPVersionKey', +) +external final ffi.Pointer +_NSHTTPPropertyServerHTTPVersionKey; + +objc.NSString get NSHTTPPropertyServerHTTPVersionKey => + objc.NSString.fromPointer( + _NSHTTPPropertyServerHTTPVersionKey, + retain: true, + release: true, + ); + +@ffi.Native>( + symbol: 'NSHTTPPropertyStatusCodeKey', +) +external final ffi.Pointer _NSHTTPPropertyStatusCodeKey; + +objc.NSString get NSHTTPPropertyStatusCodeKey => objc.NSString.fromPointer( + _NSHTTPPropertyStatusCodeKey, + retain: true, + release: true, +); + +@ffi.Native>( + symbol: 'NSHTTPPropertyStatusReasonKey', +) +external final ffi.Pointer _NSHTTPPropertyStatusReasonKey; + +objc.NSString get NSHTTPPropertyStatusReasonKey => objc.NSString.fromPointer( + _NSHTTPPropertyStatusReasonKey, + retain: true, + release: true, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSHashGet') +external ffi.Pointer _NSHashGet( + ffi.Pointer table, + ffi.Pointer pointer, +); + +ffi.Pointer NSHashGet( + NSHashTable table, + ffi.Pointer pointer, +) { + final _$$ref = table.ref; + return _NSHashGet(_$$ref.pointer, pointer); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSHashInsert') +external void _NSHashInsert( + ffi.Pointer table, + ffi.Pointer pointer, +); + +void NSHashInsert(NSHashTable table, ffi.Pointer pointer) { + final _$$ref = table.ref; + return _NSHashInsert(_$$ref.pointer, pointer); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSHashInsertIfAbsent') +external ffi.Pointer _NSHashInsertIfAbsent( + ffi.Pointer table, + ffi.Pointer pointer, +); + +ffi.Pointer NSHashInsertIfAbsent( + NSHashTable table, + ffi.Pointer pointer, +) { + final _$$ref = table.ref; + return _NSHashInsertIfAbsent(_$$ref.pointer, pointer); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSHashInsertKnownAbsent') +external void _NSHashInsertKnownAbsent( + ffi.Pointer table, + ffi.Pointer pointer, +); + +void NSHashInsertKnownAbsent(NSHashTable table, ffi.Pointer pointer) { + final _$$ref = table.ref; + return _NSHashInsertKnownAbsent(_$$ref.pointer, pointer); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSHashRemove') +external void _NSHashRemove( + ffi.Pointer table, + ffi.Pointer pointer, +); + +void NSHashRemove(NSHashTable table, ffi.Pointer pointer) { + final _$$ref = table.ref; + return _NSHashRemove(_$$ref.pointer, pointer); +} + +@ffi.Native>(symbol: 'NSHebrewCalendar') +external ffi.Pointer _NSHebrewCalendar; + +objc.NSString get NSHebrewCalendar => + objc.NSString.fromPointer(_NSHebrewCalendar, retain: true, release: true); + +set NSHebrewCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSHebrewCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHebrewCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSHelpAnchorErrorKey') +external NSErrorUserInfoKey _NSHelpAnchorErrorKey; + +DartNSErrorUserInfoKey get NSHelpAnchorErrorKey => objc.NSString.fromPointer( + _NSHelpAnchorErrorKey, + retain: true, + release: true, +); + +set NSHelpAnchorErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSHelpAnchorErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHelpAnchorErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native Function()>( + symbol: 'NSHomeDirectory', +) +external ffi.Pointer _NSHomeDirectory(); + +objc.NSString NSHomeDirectory() { + return objc.NSString.fromPointer( + _NSHomeDirectory(), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSHomeDirectoryForUser') +external ffi.Pointer _NSHomeDirectoryForUser( + ffi.Pointer userName, +); + +objc.NSString? NSHomeDirectoryForUser(objc.NSString? userName) { + final _$$ref = userName?.ref; + return _NSHomeDirectoryForUser(_$$ref?.pointer ?? ffi.nullptr).address == 0 + ? null + : objc.NSString.fromPointer( + _NSHomeDirectoryForUser(_$$ref?.pointer ?? ffi.nullptr), + retain: true, + release: true, + ); +} + +@ffi.Native>(symbol: 'NSHourNameDesignations') +external ffi.Pointer _NSHourNameDesignations; + +objc.NSString get NSHourNameDesignations => objc.NSString.fromPointer( + _NSHourNameDesignations, + retain: true, + release: true, +); + +set NSHourNameDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSHourNameDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSHourNameDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSISO8601Calendar') +external ffi.Pointer _NSISO8601Calendar; + +objc.NSString get NSISO8601Calendar => + objc.NSString.fromPointer(_NSISO8601Calendar, retain: true, release: true); + +set NSISO8601Calendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSISO8601Calendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSISO8601Calendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSImageURLAttributeName') +external NSAttributedStringKey _NSImageURLAttributeName; + +DartNSAttributedStringKey get NSImageURLAttributeName => + objc.NSString.fromPointer( + _NSImageURLAttributeName, + retain: true, + release: true, + ); + +set NSImageURLAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSImageURLAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSImageURLAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInconsistentArchiveException') +external NSExceptionName _NSInconsistentArchiveException; + +DartNSExceptionName get NSInconsistentArchiveException => + objc.NSString.fromPointer( + _NSInconsistentArchiveException, + retain: true, + release: true, + ); + +set NSInconsistentArchiveException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInconsistentArchiveException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInconsistentArchiveException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSIncrementExtraRefCount', +) +external void _NSIncrementExtraRefCount( + ffi.Pointer object, +); + +void NSIncrementExtraRefCount(objc.ObjCObject object) { + final _$$ref = object.ref; + return _NSIncrementExtraRefCount(_$$ref.pointer); +} + +@ffi.Native>(symbol: 'NSIndianCalendar') +external ffi.Pointer _NSIndianCalendar; + +objc.NSString get NSIndianCalendar => + objc.NSString.fromPointer(_NSIndianCalendar, retain: true, release: true); + +set NSIndianCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSIndianCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSIndianCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInflectionAgreementArgumentAttributeName', +) +external NSAttributedStringKey _NSInflectionAgreementArgumentAttributeName; + +DartNSAttributedStringKey get NSInflectionAgreementArgumentAttributeName => + objc.NSString.fromPointer( + _NSInflectionAgreementArgumentAttributeName, + retain: true, + release: true, + ); + +set NSInflectionAgreementArgumentAttributeName( + DartNSAttributedStringKey value, +) { + objc.NSString.fromPointer( + _NSInflectionAgreementArgumentAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionAgreementArgumentAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInflectionAgreementConceptAttributeName', +) +external NSAttributedStringKey _NSInflectionAgreementConceptAttributeName; + +DartNSAttributedStringKey get NSInflectionAgreementConceptAttributeName => + objc.NSString.fromPointer( + _NSInflectionAgreementConceptAttributeName, + retain: true, + release: true, + ); + +set NSInflectionAgreementConceptAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSInflectionAgreementConceptAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionAgreementConceptAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInflectionAlternativeAttributeName', +) +external NSAttributedStringKey _NSInflectionAlternativeAttributeName; + +DartNSAttributedStringKey get NSInflectionAlternativeAttributeName => + objc.NSString.fromPointer( + _NSInflectionAlternativeAttributeName, + retain: true, + release: true, + ); + +set NSInflectionAlternativeAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSInflectionAlternativeAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionAlternativeAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInflectionConceptsKey', +) +external NSAttributedStringFormattingContextKey _NSInflectionConceptsKey; + +DartNSAttributedStringFormattingContextKey get NSInflectionConceptsKey => + objc.NSString.fromPointer( + _NSInflectionConceptsKey, + retain: true, + release: true, + ); + +set NSInflectionConceptsKey(DartNSAttributedStringFormattingContextKey value) { + objc.NSString.fromPointer( + _NSInflectionConceptsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionConceptsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInflectionReferentConceptAttributeName', +) +external NSAttributedStringKey _NSInflectionReferentConceptAttributeName; + +DartNSAttributedStringKey get NSInflectionReferentConceptAttributeName => + objc.NSString.fromPointer( + _NSInflectionReferentConceptAttributeName, + retain: true, + release: true, + ); + +set NSInflectionReferentConceptAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSInflectionReferentConceptAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionReferentConceptAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInflectionRuleAttributeName') +external NSAttributedStringKey _NSInflectionRuleAttributeName; + +DartNSAttributedStringKey get NSInflectionRuleAttributeName => + objc.NSString.fromPointer( + _NSInflectionRuleAttributeName, + retain: true, + release: true, + ); + +set NSInflectionRuleAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSInflectionRuleAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInflectionRuleAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSInlinePresentationIntentAttributeName', +) +external NSAttributedStringKey _NSInlinePresentationIntentAttributeName; + +DartNSAttributedStringKey get NSInlinePresentationIntentAttributeName => + objc.NSString.fromPointer( + _NSInlinePresentationIntentAttributeName, + retain: true, + release: true, + ); + +set NSInlinePresentationIntentAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSInlinePresentationIntentAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInlinePresentationIntentAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external NSRect NSInsetRect(NSRect aRect, double dX, double dY); + +@ffi.Native() +external final NSHashTableCallBacks NSIntHashCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSIntMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSIntMapValueCallBacks; + +@ffi.Native() +external final NSHashTableCallBacks NSIntegerHashCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSIntegerMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSIntegerMapValueCallBacks; + +@ffi.Native() +external NSRect NSIntegralRect(NSRect aRect); + +@ffi.Native() +external NSRect NSIntegralRectWithOptions(NSRect aRect, int opts); + +@ffi.Native(symbol: 'NSInternalInconsistencyException') +external NSExceptionName _NSInternalInconsistencyException; + +DartNSExceptionName get NSInternalInconsistencyException => + objc.NSString.fromPointer( + _NSInternalInconsistencyException, + retain: true, + release: true, + ); + +set NSInternalInconsistencyException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInternalInconsistencyException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInternalInconsistencyException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSInternationalCurrencyString', +) +external ffi.Pointer _NSInternationalCurrencyString; + +objc.NSString get NSInternationalCurrencyString => objc.NSString.fromPointer( + _NSInternationalCurrencyString, + retain: true, + release: true, +); + +set NSInternationalCurrencyString(objc.NSString value) { + objc.NSString.fromPointer( + _NSInternationalCurrencyString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInternationalCurrencyString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external NSRange NSIntersectionRange(NSRange range1, NSRange range2); + +@ffi.Native() +external NSRect NSIntersectionRect(NSRect aRect, NSRect bRect); + +@ffi.Native() +external bool NSIntersectsRect(NSRect aRect, NSRect bRect); + +@ffi.Native(symbol: 'NSInvalidArchiveOperationException') +external NSExceptionName _NSInvalidArchiveOperationException; + +DartNSExceptionName get NSInvalidArchiveOperationException => + objc.NSString.fromPointer( + _NSInvalidArchiveOperationException, + retain: true, + release: true, + ); + +set NSInvalidArchiveOperationException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvalidArchiveOperationException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvalidArchiveOperationException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvalidArgumentException') +external NSExceptionName _NSInvalidArgumentException; + +DartNSExceptionName get NSInvalidArgumentException => objc.NSString.fromPointer( + _NSInvalidArgumentException, + retain: true, + release: true, +); + +set NSInvalidArgumentException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvalidArgumentException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvalidArgumentException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvalidReceivePortException') +external NSExceptionName _NSInvalidReceivePortException; + +DartNSExceptionName get NSInvalidReceivePortException => + objc.NSString.fromPointer( + _NSInvalidReceivePortException, + retain: true, + release: true, + ); + +set NSInvalidReceivePortException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvalidReceivePortException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvalidReceivePortException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvalidSendPortException') +external NSExceptionName _NSInvalidSendPortException; + +DartNSExceptionName get NSInvalidSendPortException => objc.NSString.fromPointer( + _NSInvalidSendPortException, + retain: true, + release: true, +); + +set NSInvalidSendPortException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvalidSendPortException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvalidSendPortException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvalidUnarchiveOperationException') +external NSExceptionName _NSInvalidUnarchiveOperationException; + +DartNSExceptionName get NSInvalidUnarchiveOperationException => + objc.NSString.fromPointer( + _NSInvalidUnarchiveOperationException, + retain: true, + release: true, + ); + +set NSInvalidUnarchiveOperationException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvalidUnarchiveOperationException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvalidUnarchiveOperationException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvocationOperationCancelledException') +external NSExceptionName _NSInvocationOperationCancelledException; + +DartNSExceptionName get NSInvocationOperationCancelledException => + objc.NSString.fromPointer( + _NSInvocationOperationCancelledException, + retain: true, + release: true, + ); + +set NSInvocationOperationCancelledException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvocationOperationCancelledException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvocationOperationCancelledException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSInvocationOperationVoidResultException') +external NSExceptionName _NSInvocationOperationVoidResultException; + +DartNSExceptionName get NSInvocationOperationVoidResultException => + objc.NSString.fromPointer( + _NSInvocationOperationVoidResultException, + retain: true, + release: true, + ); + +set NSInvocationOperationVoidResultException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSInvocationOperationVoidResultException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSInvocationOperationVoidResultException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external bool NSIsEmptyRect(NSRect aRect); + +@ffi.Native(symbol: 'NSIsNilTransformerName') +external NSValueTransformerName _NSIsNilTransformerName; + +DartNSValueTransformerName get NSIsNilTransformerName => + objc.NSString.fromPointer( + _NSIsNilTransformerName, + retain: true, + release: true, + ); + +set NSIsNilTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSIsNilTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSIsNilTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSIsNotNilTransformerName') +external NSValueTransformerName _NSIsNotNilTransformerName; + +DartNSValueTransformerName get NSIsNotNilTransformerName => + objc.NSString.fromPointer( + _NSIsNotNilTransformerName, + retain: true, + release: true, + ); + +set NSIsNotNilTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSIsNotNilTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSIsNotNilTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSIslamicCalendar') +external ffi.Pointer _NSIslamicCalendar; + +objc.NSString get NSIslamicCalendar => + objc.NSString.fromPointer(_NSIslamicCalendar, retain: true, release: true); + +set NSIslamicCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSIslamicCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSIslamicCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSIslamicCivilCalendar') +external ffi.Pointer _NSIslamicCivilCalendar; + +objc.NSString get NSIslamicCivilCalendar => objc.NSString.fromPointer( + _NSIslamicCivilCalendar, + retain: true, + release: true, +); + +set NSIslamicCivilCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSIslamicCivilCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSIslamicCivilCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSItemProviderErrorDomain', +) +external ffi.Pointer _NSItemProviderErrorDomain; + +objc.NSString get NSItemProviderErrorDomain => objc.NSString.fromPointer( + _NSItemProviderErrorDomain, + retain: true, + release: true, +); + +set NSItemProviderErrorDomain(objc.NSString value) { + objc.NSString.fromPointer( + _NSItemProviderErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSItemProviderErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSItemProviderPreferredImageSizeKey', +) +external ffi.Pointer _NSItemProviderPreferredImageSizeKey; + +objc.NSString get NSItemProviderPreferredImageSizeKey => + objc.NSString.fromPointer( + _NSItemProviderPreferredImageSizeKey, + retain: true, + release: true, + ); + +set NSItemProviderPreferredImageSizeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSItemProviderPreferredImageSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSItemProviderPreferredImageSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSJapaneseCalendar') +external ffi.Pointer _NSJapaneseCalendar; + +objc.NSString get NSJapaneseCalendar => + objc.NSString.fromPointer(_NSJapaneseCalendar, retain: true, release: true); + +set NSJapaneseCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSJapaneseCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSJapaneseCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSKeyValueChangeIndexesKey') +external NSKeyValueChangeKey _NSKeyValueChangeIndexesKey; + +DartNSKeyValueChangeKey get NSKeyValueChangeIndexesKey => + objc.NSString.fromPointer( + _NSKeyValueChangeIndexesKey, + retain: true, + release: true, + ); + +set NSKeyValueChangeIndexesKey(DartNSKeyValueChangeKey value) { + objc.NSString.fromPointer( + _NSKeyValueChangeIndexesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyValueChangeIndexesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSKeyValueChangeKindKey') +external NSKeyValueChangeKey _NSKeyValueChangeKindKey; + +DartNSKeyValueChangeKey get NSKeyValueChangeKindKey => + objc.NSString.fromPointer( + _NSKeyValueChangeKindKey, + retain: true, + release: true, + ); + +set NSKeyValueChangeKindKey(DartNSKeyValueChangeKey value) { + objc.NSString.fromPointer( + _NSKeyValueChangeKindKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyValueChangeKindKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSKeyValueChangeNewKey') +external NSKeyValueChangeKey _NSKeyValueChangeNewKey; + +DartNSKeyValueChangeKey get NSKeyValueChangeNewKey => objc.NSString.fromPointer( + _NSKeyValueChangeNewKey, + retain: true, + release: true, +); + +set NSKeyValueChangeNewKey(DartNSKeyValueChangeKey value) { + objc.NSString.fromPointer( + _NSKeyValueChangeNewKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyValueChangeNewKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSKeyValueChangeNotificationIsPriorKey', +) +external NSKeyValueChangeKey _NSKeyValueChangeNotificationIsPriorKey; + +DartNSKeyValueChangeKey get NSKeyValueChangeNotificationIsPriorKey => + objc.NSString.fromPointer( + _NSKeyValueChangeNotificationIsPriorKey, + retain: true, + release: true, + ); + +set NSKeyValueChangeNotificationIsPriorKey(DartNSKeyValueChangeKey value) { + objc.NSString.fromPointer( + _NSKeyValueChangeNotificationIsPriorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyValueChangeNotificationIsPriorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSKeyValueChangeOldKey') +external NSKeyValueChangeKey _NSKeyValueChangeOldKey; + +DartNSKeyValueChangeKey get NSKeyValueChangeOldKey => objc.NSString.fromPointer( + _NSKeyValueChangeOldKey, + retain: true, + release: true, +); + +set NSKeyValueChangeOldKey(DartNSKeyValueChangeKey value) { + objc.NSString.fromPointer( + _NSKeyValueChangeOldKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyValueChangeOldKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSKeyedArchiveRootObjectKey', +) +external ffi.Pointer _NSKeyedArchiveRootObjectKey; + +objc.NSString get NSKeyedArchiveRootObjectKey => objc.NSString.fromPointer( + _NSKeyedArchiveRootObjectKey, + retain: true, + release: true, +); + +set NSKeyedArchiveRootObjectKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSKeyedArchiveRootObjectKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyedArchiveRootObjectKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSKeyedUnarchiveFromDataTransformerName', +) +external NSValueTransformerName _NSKeyedUnarchiveFromDataTransformerName; + +DartNSValueTransformerName get NSKeyedUnarchiveFromDataTransformerName => + objc.NSString.fromPointer( + _NSKeyedUnarchiveFromDataTransformerName, + retain: true, + release: true, + ); + +set NSKeyedUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSKeyedUnarchiveFromDataTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSKeyedUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLanguageIdentifierAttributeName') +external NSAttributedStringKey _NSLanguageIdentifierAttributeName; + +DartNSAttributedStringKey get NSLanguageIdentifierAttributeName => + objc.NSString.fromPointer( + _NSLanguageIdentifierAttributeName, + retain: true, + release: true, + ); + +set NSLanguageIdentifierAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSLanguageIdentifierAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLanguageIdentifierAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSLaterTimeDesignations') +external ffi.Pointer _NSLaterTimeDesignations; + +objc.NSString get NSLaterTimeDesignations => objc.NSString.fromPointer( + _NSLaterTimeDesignations, + retain: true, + release: true, +); + +set NSLaterTimeDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSLaterTimeDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLaterTimeDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagAdjective') +external NSLinguisticTag _NSLinguisticTagAdjective; + +DartNSLinguisticTag get NSLinguisticTagAdjective => objc.NSString.fromPointer( + _NSLinguisticTagAdjective, + retain: true, + release: true, +); + +set NSLinguisticTagAdjective(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagAdjective, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagAdjective = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagAdverb') +external NSLinguisticTag _NSLinguisticTagAdverb; + +DartNSLinguisticTag get NSLinguisticTagAdverb => objc.NSString.fromPointer( + _NSLinguisticTagAdverb, + retain: true, + release: true, +); + +set NSLinguisticTagAdverb(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagAdverb, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagAdverb = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagClassifier') +external NSLinguisticTag _NSLinguisticTagClassifier; + +DartNSLinguisticTag get NSLinguisticTagClassifier => objc.NSString.fromPointer( + _NSLinguisticTagClassifier, + retain: true, + release: true, +); + +set NSLinguisticTagClassifier(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagClassifier, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagClassifier = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagCloseParenthesis') +external NSLinguisticTag _NSLinguisticTagCloseParenthesis; + +DartNSLinguisticTag get NSLinguisticTagCloseParenthesis => + objc.NSString.fromPointer( + _NSLinguisticTagCloseParenthesis, + retain: true, + release: true, + ); + +set NSLinguisticTagCloseParenthesis(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagCloseParenthesis, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagCloseParenthesis = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagCloseQuote') +external NSLinguisticTag _NSLinguisticTagCloseQuote; + +DartNSLinguisticTag get NSLinguisticTagCloseQuote => objc.NSString.fromPointer( + _NSLinguisticTagCloseQuote, + retain: true, + release: true, +); + +set NSLinguisticTagCloseQuote(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagCloseQuote, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagCloseQuote = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagConjunction') +external NSLinguisticTag _NSLinguisticTagConjunction; + +DartNSLinguisticTag get NSLinguisticTagConjunction => objc.NSString.fromPointer( + _NSLinguisticTagConjunction, + retain: true, + release: true, +); + +set NSLinguisticTagConjunction(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagConjunction, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagConjunction = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagDash') +external NSLinguisticTag _NSLinguisticTagDash; + +DartNSLinguisticTag get NSLinguisticTagDash => objc.NSString.fromPointer( + _NSLinguisticTagDash, + retain: true, + release: true, +); + +set NSLinguisticTagDash(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagDash, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagDash = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagDeterminer') +external NSLinguisticTag _NSLinguisticTagDeterminer; + +DartNSLinguisticTag get NSLinguisticTagDeterminer => objc.NSString.fromPointer( + _NSLinguisticTagDeterminer, + retain: true, + release: true, +); + +set NSLinguisticTagDeterminer(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagDeterminer, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagDeterminer = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagIdiom') +external NSLinguisticTag _NSLinguisticTagIdiom; + +DartNSLinguisticTag get NSLinguisticTagIdiom => objc.NSString.fromPointer( + _NSLinguisticTagIdiom, + retain: true, + release: true, +); + +set NSLinguisticTagIdiom(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagIdiom, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagIdiom = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagInterjection') +external NSLinguisticTag _NSLinguisticTagInterjection; + +DartNSLinguisticTag get NSLinguisticTagInterjection => + objc.NSString.fromPointer( + _NSLinguisticTagInterjection, + retain: true, + release: true, + ); + +set NSLinguisticTagInterjection(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagInterjection, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagInterjection = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagNoun') +external NSLinguisticTag _NSLinguisticTagNoun; + +DartNSLinguisticTag get NSLinguisticTagNoun => objc.NSString.fromPointer( + _NSLinguisticTagNoun, + retain: true, + release: true, +); + +set NSLinguisticTagNoun(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagNoun, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagNoun = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagNumber') +external NSLinguisticTag _NSLinguisticTagNumber; + +DartNSLinguisticTag get NSLinguisticTagNumber => objc.NSString.fromPointer( + _NSLinguisticTagNumber, + retain: true, + release: true, +); + +set NSLinguisticTagNumber(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagNumber, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagNumber = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOpenParenthesis') +external NSLinguisticTag _NSLinguisticTagOpenParenthesis; + +DartNSLinguisticTag get NSLinguisticTagOpenParenthesis => + objc.NSString.fromPointer( + _NSLinguisticTagOpenParenthesis, + retain: true, + release: true, + ); + +set NSLinguisticTagOpenParenthesis(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOpenParenthesis, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOpenParenthesis = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOpenQuote') +external NSLinguisticTag _NSLinguisticTagOpenQuote; + +DartNSLinguisticTag get NSLinguisticTagOpenQuote => objc.NSString.fromPointer( + _NSLinguisticTagOpenQuote, + retain: true, + release: true, +); + +set NSLinguisticTagOpenQuote(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOpenQuote, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOpenQuote = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOrganizationName') +external NSLinguisticTag _NSLinguisticTagOrganizationName; + +DartNSLinguisticTag get NSLinguisticTagOrganizationName => + objc.NSString.fromPointer( + _NSLinguisticTagOrganizationName, + retain: true, + release: true, + ); + +set NSLinguisticTagOrganizationName(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOrganizationName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOrganizationName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOther') +external NSLinguisticTag _NSLinguisticTagOther; + +DartNSLinguisticTag get NSLinguisticTagOther => objc.NSString.fromPointer( + _NSLinguisticTagOther, + retain: true, + release: true, +); + +set NSLinguisticTagOther(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOther, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOther = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOtherPunctuation') +external NSLinguisticTag _NSLinguisticTagOtherPunctuation; + +DartNSLinguisticTag get NSLinguisticTagOtherPunctuation => + objc.NSString.fromPointer( + _NSLinguisticTagOtherPunctuation, + retain: true, + release: true, + ); + +set NSLinguisticTagOtherPunctuation(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOtherPunctuation, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOtherPunctuation = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOtherWhitespace') +external NSLinguisticTag _NSLinguisticTagOtherWhitespace; + +DartNSLinguisticTag get NSLinguisticTagOtherWhitespace => + objc.NSString.fromPointer( + _NSLinguisticTagOtherWhitespace, + retain: true, + release: true, + ); + +set NSLinguisticTagOtherWhitespace(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOtherWhitespace, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOtherWhitespace = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagOtherWord') +external NSLinguisticTag _NSLinguisticTagOtherWord; + +DartNSLinguisticTag get NSLinguisticTagOtherWord => objc.NSString.fromPointer( + _NSLinguisticTagOtherWord, + retain: true, + release: true, +); + +set NSLinguisticTagOtherWord(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagOtherWord, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagOtherWord = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagParagraphBreak') +external NSLinguisticTag _NSLinguisticTagParagraphBreak; + +DartNSLinguisticTag get NSLinguisticTagParagraphBreak => + objc.NSString.fromPointer( + _NSLinguisticTagParagraphBreak, + retain: true, + release: true, + ); + +set NSLinguisticTagParagraphBreak(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagParagraphBreak, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagParagraphBreak = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagParticle') +external NSLinguisticTag _NSLinguisticTagParticle; + +DartNSLinguisticTag get NSLinguisticTagParticle => objc.NSString.fromPointer( + _NSLinguisticTagParticle, + retain: true, + release: true, +); + +set NSLinguisticTagParticle(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagParticle, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagParticle = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagPersonalName') +external NSLinguisticTag _NSLinguisticTagPersonalName; + +DartNSLinguisticTag get NSLinguisticTagPersonalName => + objc.NSString.fromPointer( + _NSLinguisticTagPersonalName, + retain: true, + release: true, + ); + +set NSLinguisticTagPersonalName(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagPersonalName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagPersonalName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagPlaceName') +external NSLinguisticTag _NSLinguisticTagPlaceName; + +DartNSLinguisticTag get NSLinguisticTagPlaceName => objc.NSString.fromPointer( + _NSLinguisticTagPlaceName, + retain: true, + release: true, +); + +set NSLinguisticTagPlaceName(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagPlaceName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagPlaceName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagPreposition') +external NSLinguisticTag _NSLinguisticTagPreposition; + +DartNSLinguisticTag get NSLinguisticTagPreposition => objc.NSString.fromPointer( + _NSLinguisticTagPreposition, + retain: true, + release: true, +); + +set NSLinguisticTagPreposition(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagPreposition, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagPreposition = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagPronoun') +external NSLinguisticTag _NSLinguisticTagPronoun; + +DartNSLinguisticTag get NSLinguisticTagPronoun => objc.NSString.fromPointer( + _NSLinguisticTagPronoun, + retain: true, + release: true, +); + +set NSLinguisticTagPronoun(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagPronoun, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagPronoun = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagPunctuation') +external NSLinguisticTag _NSLinguisticTagPunctuation; + +DartNSLinguisticTag get NSLinguisticTagPunctuation => objc.NSString.fromPointer( + _NSLinguisticTagPunctuation, + retain: true, + release: true, +); + +set NSLinguisticTagPunctuation(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagPunctuation, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagPunctuation = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeLanguage') +external NSLinguisticTagScheme _NSLinguisticTagSchemeLanguage; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeLanguage => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLanguage, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeLanguage(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLanguage, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeLanguage = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeLemma') +external NSLinguisticTagScheme _NSLinguisticTagSchemeLemma; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeLemma => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLemma, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeLemma(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLemma, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeLemma = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeLexicalClass') +external NSLinguisticTagScheme _NSLinguisticTagSchemeLexicalClass; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeLexicalClass => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLexicalClass, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeLexicalClass(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeLexicalClass, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeLexicalClass = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeNameType') +external NSLinguisticTagScheme _NSLinguisticTagSchemeNameType; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeNameType => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeNameType, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeNameType(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeNameType, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeNameType = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSLinguisticTagSchemeNameTypeOrLexicalClass', +) +external NSLinguisticTagScheme _NSLinguisticTagSchemeNameTypeOrLexicalClass; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeNameTypeOrLexicalClass => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeNameTypeOrLexicalClass, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeNameTypeOrLexicalClass( + DartNSLinguisticTagScheme value, +) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeNameTypeOrLexicalClass, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeNameTypeOrLexicalClass = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeScript') +external NSLinguisticTagScheme _NSLinguisticTagSchemeScript; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeScript => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeScript, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeScript(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeScript, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeScript = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSchemeTokenType') +external NSLinguisticTagScheme _NSLinguisticTagSchemeTokenType; + +DartNSLinguisticTagScheme get NSLinguisticTagSchemeTokenType => + objc.NSString.fromPointer( + _NSLinguisticTagSchemeTokenType, + retain: true, + release: true, + ); + +set NSLinguisticTagSchemeTokenType(DartNSLinguisticTagScheme value) { + objc.NSString.fromPointer( + _NSLinguisticTagSchemeTokenType, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSchemeTokenType = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagSentenceTerminator') +external NSLinguisticTag _NSLinguisticTagSentenceTerminator; + +DartNSLinguisticTag get NSLinguisticTagSentenceTerminator => + objc.NSString.fromPointer( + _NSLinguisticTagSentenceTerminator, + retain: true, + release: true, + ); + +set NSLinguisticTagSentenceTerminator(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagSentenceTerminator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagSentenceTerminator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagVerb') +external NSLinguisticTag _NSLinguisticTagVerb; + +DartNSLinguisticTag get NSLinguisticTagVerb => objc.NSString.fromPointer( + _NSLinguisticTagVerb, + retain: true, + release: true, +); + +set NSLinguisticTagVerb(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagVerb, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagVerb = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagWhitespace') +external NSLinguisticTag _NSLinguisticTagWhitespace; + +DartNSLinguisticTag get NSLinguisticTagWhitespace => objc.NSString.fromPointer( + _NSLinguisticTagWhitespace, + retain: true, + release: true, +); + +set NSLinguisticTagWhitespace(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagWhitespace, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagWhitespace = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagWord') +external NSLinguisticTag _NSLinguisticTagWord; + +DartNSLinguisticTag get NSLinguisticTagWord => objc.NSString.fromPointer( + _NSLinguisticTagWord, + retain: true, + release: true, +); + +set NSLinguisticTagWord(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagWord, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagWord = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLinguisticTagWordJoiner') +external NSLinguisticTag _NSLinguisticTagWordJoiner; + +DartNSLinguisticTag get NSLinguisticTagWordJoiner => objc.NSString.fromPointer( + _NSLinguisticTagWordJoiner, + retain: true, + release: true, +); + +set NSLinguisticTagWordJoiner(DartNSLinguisticTag value) { + objc.NSString.fromPointer( + _NSLinguisticTagWordJoiner, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLinguisticTagWordJoiner = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSListItemDelimiterAttributeName') +external NSAttributedStringKey _NSListItemDelimiterAttributeName; + +DartNSAttributedStringKey get NSListItemDelimiterAttributeName => + objc.NSString.fromPointer( + _NSListItemDelimiterAttributeName, + retain: true, + release: true, + ); + +set NSListItemDelimiterAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSListItemDelimiterAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSListItemDelimiterAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSLoadedClasses') +external ffi.Pointer _NSLoadedClasses; + +objc.NSString get NSLoadedClasses => + objc.NSString.fromPointer(_NSLoadedClasses, retain: true, release: true); + +set NSLoadedClasses(objc.NSString value) { + objc.NSString.fromPointer( + _NSLoadedClasses, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLoadedClasses = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSLocalNotificationCenterType', +) +external NSDistributedNotificationCenterType _NSLocalNotificationCenterType; + +DartNSDistributedNotificationCenterType get NSLocalNotificationCenterType => + objc.NSString.fromPointer( + _NSLocalNotificationCenterType, + retain: true, + release: true, + ); + +set NSLocalNotificationCenterType( + DartNSDistributedNotificationCenterType value, +) { + objc.NSString.fromPointer( + _NSLocalNotificationCenterType, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalNotificationCenterType = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleAlternateQuotationBeginDelimiterKey') +external NSLocaleKey _NSLocaleAlternateQuotationBeginDelimiterKey; + +DartNSLocaleKey get NSLocaleAlternateQuotationBeginDelimiterKey => + objc.NSString.fromPointer( + _NSLocaleAlternateQuotationBeginDelimiterKey, + retain: true, + release: true, + ); + +set NSLocaleAlternateQuotationBeginDelimiterKey(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleAlternateQuotationBeginDelimiterKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleAlternateQuotationBeginDelimiterKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleAlternateQuotationEndDelimiterKey') +external NSLocaleKey _NSLocaleAlternateQuotationEndDelimiterKey; + +DartNSLocaleKey get NSLocaleAlternateQuotationEndDelimiterKey => + objc.NSString.fromPointer( + _NSLocaleAlternateQuotationEndDelimiterKey, + retain: true, + release: true, + ); + +set NSLocaleAlternateQuotationEndDelimiterKey(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleAlternateQuotationEndDelimiterKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleAlternateQuotationEndDelimiterKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCalendar') +external NSLocaleKey _NSLocaleCalendar; + +DartNSLocaleKey get NSLocaleCalendar => + objc.NSString.fromPointer(_NSLocaleCalendar, retain: true, release: true); + +set NSLocaleCalendar(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCollationIdentifier') +external NSLocaleKey _NSLocaleCollationIdentifier; + +DartNSLocaleKey get NSLocaleCollationIdentifier => objc.NSString.fromPointer( + _NSLocaleCollationIdentifier, + retain: true, + release: true, +); + +set NSLocaleCollationIdentifier(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCollationIdentifier, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCollationIdentifier = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCollatorIdentifier') +external NSLocaleKey _NSLocaleCollatorIdentifier; + +DartNSLocaleKey get NSLocaleCollatorIdentifier => objc.NSString.fromPointer( + _NSLocaleCollatorIdentifier, + retain: true, + release: true, +); + +set NSLocaleCollatorIdentifier(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCollatorIdentifier, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCollatorIdentifier = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCountryCode') +external NSLocaleKey _NSLocaleCountryCode; + +DartNSLocaleKey get NSLocaleCountryCode => objc.NSString.fromPointer( + _NSLocaleCountryCode, + retain: true, + release: true, +); + +set NSLocaleCountryCode(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCountryCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCountryCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCurrencyCode') +external NSLocaleKey _NSLocaleCurrencyCode; + +DartNSLocaleKey get NSLocaleCurrencyCode => objc.NSString.fromPointer( + _NSLocaleCurrencyCode, + retain: true, + release: true, +); + +set NSLocaleCurrencyCode(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCurrencyCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCurrencyCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleCurrencySymbol') +external NSLocaleKey _NSLocaleCurrencySymbol; + +DartNSLocaleKey get NSLocaleCurrencySymbol => objc.NSString.fromPointer( + _NSLocaleCurrencySymbol, + retain: true, + release: true, +); + +set NSLocaleCurrencySymbol(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleCurrencySymbol, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleCurrencySymbol = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleDecimalSeparator') +external NSLocaleKey _NSLocaleDecimalSeparator; + +DartNSLocaleKey get NSLocaleDecimalSeparator => objc.NSString.fromPointer( + _NSLocaleDecimalSeparator, + retain: true, + release: true, +); + +set NSLocaleDecimalSeparator(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleDecimalSeparator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleDecimalSeparator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleExemplarCharacterSet') +external NSLocaleKey _NSLocaleExemplarCharacterSet; + +DartNSLocaleKey get NSLocaleExemplarCharacterSet => objc.NSString.fromPointer( + _NSLocaleExemplarCharacterSet, + retain: true, + release: true, +); + +set NSLocaleExemplarCharacterSet(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleExemplarCharacterSet, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleExemplarCharacterSet = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleGroupingSeparator') +external NSLocaleKey _NSLocaleGroupingSeparator; + +DartNSLocaleKey get NSLocaleGroupingSeparator => objc.NSString.fromPointer( + _NSLocaleGroupingSeparator, + retain: true, + release: true, +); + +set NSLocaleGroupingSeparator(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleGroupingSeparator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleGroupingSeparator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleIdentifier') +external NSLocaleKey _NSLocaleIdentifier; + +DartNSLocaleKey get NSLocaleIdentifier => + objc.NSString.fromPointer(_NSLocaleIdentifier, retain: true, release: true); + +set NSLocaleIdentifier(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleIdentifier, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleIdentifier = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleLanguageCode') +external NSLocaleKey _NSLocaleLanguageCode; + +DartNSLocaleKey get NSLocaleLanguageCode => objc.NSString.fromPointer( + _NSLocaleLanguageCode, + retain: true, + release: true, +); + +set NSLocaleLanguageCode(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleLanguageCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleLanguageCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleMeasurementSystem') +external NSLocaleKey _NSLocaleMeasurementSystem; + +DartNSLocaleKey get NSLocaleMeasurementSystem => objc.NSString.fromPointer( + _NSLocaleMeasurementSystem, + retain: true, + release: true, +); + +set NSLocaleMeasurementSystem(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleMeasurementSystem, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleMeasurementSystem = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleQuotationBeginDelimiterKey') +external NSLocaleKey _NSLocaleQuotationBeginDelimiterKey; + +DartNSLocaleKey get NSLocaleQuotationBeginDelimiterKey => + objc.NSString.fromPointer( + _NSLocaleQuotationBeginDelimiterKey, + retain: true, + release: true, + ); + +set NSLocaleQuotationBeginDelimiterKey(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleQuotationBeginDelimiterKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleQuotationBeginDelimiterKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleQuotationEndDelimiterKey') +external NSLocaleKey _NSLocaleQuotationEndDelimiterKey; + +DartNSLocaleKey get NSLocaleQuotationEndDelimiterKey => + objc.NSString.fromPointer( + _NSLocaleQuotationEndDelimiterKey, + retain: true, + release: true, + ); + +set NSLocaleQuotationEndDelimiterKey(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleQuotationEndDelimiterKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleQuotationEndDelimiterKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleScriptCode') +external NSLocaleKey _NSLocaleScriptCode; + +DartNSLocaleKey get NSLocaleScriptCode => + objc.NSString.fromPointer(_NSLocaleScriptCode, retain: true, release: true); + +set NSLocaleScriptCode(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleScriptCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleScriptCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleUsesMetricSystem') +external NSLocaleKey _NSLocaleUsesMetricSystem; + +DartNSLocaleKey get NSLocaleUsesMetricSystem => objc.NSString.fromPointer( + _NSLocaleUsesMetricSystem, + retain: true, + release: true, +); + +set NSLocaleUsesMetricSystem(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleUsesMetricSystem, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleUsesMetricSystem = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocaleVariantCode') +external NSLocaleKey _NSLocaleVariantCode; + +DartNSLocaleKey get NSLocaleVariantCode => objc.NSString.fromPointer( + _NSLocaleVariantCode, + retain: true, + release: true, +); + +set NSLocaleVariantCode(DartNSLocaleKey value) { + objc.NSString.fromPointer( + _NSLocaleVariantCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocaleVariantCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocalizedDescriptionKey') +external NSErrorUserInfoKey _NSLocalizedDescriptionKey; + +DartNSErrorUserInfoKey get NSLocalizedDescriptionKey => + objc.NSString.fromPointer( + _NSLocalizedDescriptionKey, + retain: true, + release: true, + ); + +set NSLocalizedDescriptionKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSLocalizedDescriptionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedDescriptionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocalizedFailureErrorKey') +external NSErrorUserInfoKey _NSLocalizedFailureErrorKey; + +DartNSErrorUserInfoKey get NSLocalizedFailureErrorKey => + objc.NSString.fromPointer( + _NSLocalizedFailureErrorKey, + retain: true, + release: true, + ); + +set NSLocalizedFailureErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSLocalizedFailureErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedFailureErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocalizedFailureReasonErrorKey') +external NSErrorUserInfoKey _NSLocalizedFailureReasonErrorKey; + +DartNSErrorUserInfoKey get NSLocalizedFailureReasonErrorKey => + objc.NSString.fromPointer( + _NSLocalizedFailureReasonErrorKey, + retain: true, + release: true, + ); + +set NSLocalizedFailureReasonErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSLocalizedFailureReasonErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedFailureReasonErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSLocalizedNumberFormatAttributeName', +) +external NSAttributedStringKey _NSLocalizedNumberFormatAttributeName; + +DartNSAttributedStringKey get NSLocalizedNumberFormatAttributeName => + objc.NSString.fromPointer( + _NSLocalizedNumberFormatAttributeName, + retain: true, + release: true, + ); + +set NSLocalizedNumberFormatAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSLocalizedNumberFormatAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedNumberFormatAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocalizedRecoveryOptionsErrorKey') +external NSErrorUserInfoKey _NSLocalizedRecoveryOptionsErrorKey; + +DartNSErrorUserInfoKey get NSLocalizedRecoveryOptionsErrorKey => + objc.NSString.fromPointer( + _NSLocalizedRecoveryOptionsErrorKey, + retain: true, + release: true, + ); + +set NSLocalizedRecoveryOptionsErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSLocalizedRecoveryOptionsErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedRecoveryOptionsErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSLocalizedRecoverySuggestionErrorKey') +external NSErrorUserInfoKey _NSLocalizedRecoverySuggestionErrorKey; + +DartNSErrorUserInfoKey get NSLocalizedRecoverySuggestionErrorKey => + objc.NSString.fromPointer( + _NSLocalizedRecoverySuggestionErrorKey, + retain: true, + release: true, + ); + +set NSLocalizedRecoverySuggestionErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSLocalizedRecoverySuggestionErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSLocalizedRecoverySuggestionErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSLog', +) +external void _NSLog(ffi.Pointer format); + +void NSLog(objc.NSString format) { + final _$$ref = format.ref; + return _NSLog(_$$ref.pointer); +} + +@ffi.Native() +external int NSLogPageSize(); + +@ffi.Native, va_list)>( + symbol: 'NSLogv', +) +external void _NSLogv(ffi.Pointer format, va_list args); + +void NSLogv(objc.NSString format, va_list args) { + final _$$ref = format.ref; + return _NSLogv(_$$ref.pointer, args); +} + +@ffi.Native(symbol: 'NSMachErrorDomain') +external NSErrorDomain _NSMachErrorDomain; + +DartNSErrorDomain get NSMachErrorDomain => + objc.NSString.fromPointer(_NSMachErrorDomain, retain: true, release: true); + +set NSMachErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSMachErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMachErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSMallocException') +external NSExceptionName _NSMallocException; + +DartNSExceptionName get NSMallocException => + objc.NSString.fromPointer(_NSMallocException, retain: true, release: true); + +set NSMallocException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSMallocException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMallocException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSMapGet') +external ffi.Pointer _NSMapGet( + ffi.Pointer table, + ffi.Pointer key, +); + +ffi.Pointer NSMapGet(NSMapTable table, ffi.Pointer key) { + final _$$ref = table.ref; + return _NSMapGet(_$$ref.pointer, key); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSMapInsert') +external void _NSMapInsert( + ffi.Pointer table, + ffi.Pointer key, + ffi.Pointer value, +); + +void NSMapInsert( + NSMapTable table, + ffi.Pointer key, + ffi.Pointer value, +) { + final _$$ref = table.ref; + return _NSMapInsert(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSMapInsertIfAbsent') +external ffi.Pointer _NSMapInsertIfAbsent( + ffi.Pointer table, + ffi.Pointer key, + ffi.Pointer value, +); + +ffi.Pointer NSMapInsertIfAbsent( + NSMapTable table, + ffi.Pointer key, + ffi.Pointer value, +) { + final _$$ref = table.ref; + return _NSMapInsertIfAbsent(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'NSMapInsertKnownAbsent') +external void _NSMapInsertKnownAbsent( + ffi.Pointer table, + ffi.Pointer key, + ffi.Pointer value, +); + +void NSMapInsertKnownAbsent( + NSMapTable table, + ffi.Pointer key, + ffi.Pointer value, +) { + final _$$ref = table.ref; + return _NSMapInsertKnownAbsent(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) +>(symbol: 'NSMapMember') +external bool _NSMapMember( + ffi.Pointer table, + ffi.Pointer key, + ffi.Pointer> originalKey, + ffi.Pointer> value, +); + +bool NSMapMember( + NSMapTable table, + ffi.Pointer key, + ffi.Pointer> originalKey, + ffi.Pointer> value, +) { + final _$$ref = table.ref; + return _NSMapMember(_$$ref.pointer, key, originalKey, value); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSMapRemove') +external void _NSMapRemove( + ffi.Pointer table, + ffi.Pointer key, +); + +void NSMapRemove(NSMapTable table, ffi.Pointer key) { + final _$$ref = table.ref; + return _NSMapRemove(_$$ref.pointer, key); +} + +@ffi.Native( + symbol: 'NSMarkdownSourcePositionAttributeName', +) +external NSAttributedStringKey _NSMarkdownSourcePositionAttributeName; + +DartNSAttributedStringKey get NSMarkdownSourcePositionAttributeName => + objc.NSString.fromPointer( + _NSMarkdownSourcePositionAttributeName, + retain: true, + release: true, + ); + +set NSMarkdownSourcePositionAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSMarkdownSourcePositionAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMarkdownSourcePositionAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSMaximumKeyValueOperator') +external NSKeyValueOperator _NSMaximumKeyValueOperator; + +DartNSKeyValueOperator get NSMaximumKeyValueOperator => + objc.NSString.fromPointer( + _NSMaximumKeyValueOperator, + retain: true, + release: true, + ); + +set NSMaximumKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSMaximumKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMaximumKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAcquisitionMakeKey', +) +external ffi.Pointer _NSMetadataItemAcquisitionMakeKey; + +objc.NSString get NSMetadataItemAcquisitionMakeKey => objc.NSString.fromPointer( + _NSMetadataItemAcquisitionMakeKey, + retain: true, + release: true, +); + +set NSMetadataItemAcquisitionMakeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAcquisitionMakeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAcquisitionMakeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAcquisitionModelKey', +) +external ffi.Pointer _NSMetadataItemAcquisitionModelKey; + +objc.NSString get NSMetadataItemAcquisitionModelKey => + objc.NSString.fromPointer( + _NSMetadataItemAcquisitionModelKey, + retain: true, + release: true, + ); + +set NSMetadataItemAcquisitionModelKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAcquisitionModelKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAcquisitionModelKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemAlbumKey') +external ffi.Pointer _NSMetadataItemAlbumKey; + +objc.NSString get NSMetadataItemAlbumKey => objc.NSString.fromPointer( + _NSMetadataItemAlbumKey, + retain: true, + release: true, +); + +set NSMetadataItemAlbumKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAlbumKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAlbumKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAltitudeKey', +) +external ffi.Pointer _NSMetadataItemAltitudeKey; + +objc.NSString get NSMetadataItemAltitudeKey => objc.NSString.fromPointer( + _NSMetadataItemAltitudeKey, + retain: true, + release: true, +); + +set NSMetadataItemAltitudeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAltitudeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAltitudeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemApertureKey', +) +external ffi.Pointer _NSMetadataItemApertureKey; + +objc.NSString get NSMetadataItemApertureKey => objc.NSString.fromPointer( + _NSMetadataItemApertureKey, + retain: true, + release: true, +); + +set NSMetadataItemApertureKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemApertureKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemApertureKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAppleLoopDescriptorsKey', +) +external ffi.Pointer +_NSMetadataItemAppleLoopDescriptorsKey; + +objc.NSString get NSMetadataItemAppleLoopDescriptorsKey => + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopDescriptorsKey, + retain: true, + release: true, + ); + +set NSMetadataItemAppleLoopDescriptorsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopDescriptorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAppleLoopDescriptorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAppleLoopsKeyFilterTypeKey', +) +external ffi.Pointer +_NSMetadataItemAppleLoopsKeyFilterTypeKey; + +objc.NSString get NSMetadataItemAppleLoopsKeyFilterTypeKey => + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsKeyFilterTypeKey, + retain: true, + release: true, + ); + +set NSMetadataItemAppleLoopsKeyFilterTypeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsKeyFilterTypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAppleLoopsKeyFilterTypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAppleLoopsLoopModeKey', +) +external ffi.Pointer _NSMetadataItemAppleLoopsLoopModeKey; + +objc.NSString get NSMetadataItemAppleLoopsLoopModeKey => + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsLoopModeKey, + retain: true, + release: true, + ); + +set NSMetadataItemAppleLoopsLoopModeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsLoopModeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAppleLoopsLoopModeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAppleLoopsRootKeyKey', +) +external ffi.Pointer _NSMetadataItemAppleLoopsRootKeyKey; + +objc.NSString get NSMetadataItemAppleLoopsRootKeyKey => + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsRootKeyKey, + retain: true, + release: true, + ); + +set NSMetadataItemAppleLoopsRootKeyKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAppleLoopsRootKeyKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAppleLoopsRootKeyKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemApplicationCategoriesKey', +) +external ffi.Pointer +_NSMetadataItemApplicationCategoriesKey; + +objc.NSString get NSMetadataItemApplicationCategoriesKey => + objc.NSString.fromPointer( + _NSMetadataItemApplicationCategoriesKey, + retain: true, + release: true, + ); + +set NSMetadataItemApplicationCategoriesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemApplicationCategoriesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemApplicationCategoriesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAttributeChangeDateKey', +) +external ffi.Pointer _NSMetadataItemAttributeChangeDateKey; + +objc.NSString get NSMetadataItemAttributeChangeDateKey => + objc.NSString.fromPointer( + _NSMetadataItemAttributeChangeDateKey, + retain: true, + release: true, + ); + +set NSMetadataItemAttributeChangeDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAttributeChangeDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAttributeChangeDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudiencesKey', +) +external ffi.Pointer _NSMetadataItemAudiencesKey; + +objc.NSString get NSMetadataItemAudiencesKey => objc.NSString.fromPointer( + _NSMetadataItemAudiencesKey, + retain: true, + release: true, +); + +set NSMetadataItemAudiencesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudiencesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudiencesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudioBitRateKey', +) +external ffi.Pointer _NSMetadataItemAudioBitRateKey; + +objc.NSString get NSMetadataItemAudioBitRateKey => objc.NSString.fromPointer( + _NSMetadataItemAudioBitRateKey, + retain: true, + release: true, +); + +set NSMetadataItemAudioBitRateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudioBitRateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudioBitRateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudioChannelCountKey', +) +external ffi.Pointer _NSMetadataItemAudioChannelCountKey; + +objc.NSString get NSMetadataItemAudioChannelCountKey => + objc.NSString.fromPointer( + _NSMetadataItemAudioChannelCountKey, + retain: true, + release: true, + ); + +set NSMetadataItemAudioChannelCountKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudioChannelCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudioChannelCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudioEncodingApplicationKey', +) +external ffi.Pointer +_NSMetadataItemAudioEncodingApplicationKey; + +objc.NSString get NSMetadataItemAudioEncodingApplicationKey => + objc.NSString.fromPointer( + _NSMetadataItemAudioEncodingApplicationKey, + retain: true, + release: true, + ); + +set NSMetadataItemAudioEncodingApplicationKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudioEncodingApplicationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudioEncodingApplicationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudioSampleRateKey', +) +external ffi.Pointer _NSMetadataItemAudioSampleRateKey; + +objc.NSString get NSMetadataItemAudioSampleRateKey => objc.NSString.fromPointer( + _NSMetadataItemAudioSampleRateKey, + retain: true, + release: true, +); + +set NSMetadataItemAudioSampleRateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudioSampleRateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudioSampleRateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAudioTrackNumberKey', +) +external ffi.Pointer _NSMetadataItemAudioTrackNumberKey; + +objc.NSString get NSMetadataItemAudioTrackNumberKey => + objc.NSString.fromPointer( + _NSMetadataItemAudioTrackNumberKey, + retain: true, + release: true, + ); + +set NSMetadataItemAudioTrackNumberKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAudioTrackNumberKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAudioTrackNumberKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAuthorAddressesKey', +) +external ffi.Pointer _NSMetadataItemAuthorAddressesKey; + +objc.NSString get NSMetadataItemAuthorAddressesKey => objc.NSString.fromPointer( + _NSMetadataItemAuthorAddressesKey, + retain: true, + release: true, +); + +set NSMetadataItemAuthorAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAuthorAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAuthorAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAuthorEmailAddressesKey', +) +external ffi.Pointer +_NSMetadataItemAuthorEmailAddressesKey; + +objc.NSString get NSMetadataItemAuthorEmailAddressesKey => + objc.NSString.fromPointer( + _NSMetadataItemAuthorEmailAddressesKey, + retain: true, + release: true, + ); + +set NSMetadataItemAuthorEmailAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAuthorEmailAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAuthorEmailAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemAuthorsKey', +) +external ffi.Pointer _NSMetadataItemAuthorsKey; + +objc.NSString get NSMetadataItemAuthorsKey => objc.NSString.fromPointer( + _NSMetadataItemAuthorsKey, + retain: true, + release: true, +); + +set NSMetadataItemAuthorsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemAuthorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemAuthorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemBitsPerSampleKey', +) +external ffi.Pointer _NSMetadataItemBitsPerSampleKey; + +objc.NSString get NSMetadataItemBitsPerSampleKey => objc.NSString.fromPointer( + _NSMetadataItemBitsPerSampleKey, + retain: true, + release: true, +); + +set NSMetadataItemBitsPerSampleKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemBitsPerSampleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemBitsPerSampleKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCFBundleIdentifierKey', +) +external ffi.Pointer _NSMetadataItemCFBundleIdentifierKey; + +objc.NSString get NSMetadataItemCFBundleIdentifierKey => + objc.NSString.fromPointer( + _NSMetadataItemCFBundleIdentifierKey, + retain: true, + release: true, + ); + +set NSMetadataItemCFBundleIdentifierKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCFBundleIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCFBundleIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCameraOwnerKey', +) +external ffi.Pointer _NSMetadataItemCameraOwnerKey; + +objc.NSString get NSMetadataItemCameraOwnerKey => objc.NSString.fromPointer( + _NSMetadataItemCameraOwnerKey, + retain: true, + release: true, +); + +set NSMetadataItemCameraOwnerKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCameraOwnerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCameraOwnerKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemCityKey') +external ffi.Pointer _NSMetadataItemCityKey; + +objc.NSString get NSMetadataItemCityKey => objc.NSString.fromPointer( + _NSMetadataItemCityKey, + retain: true, + release: true, +); + +set NSMetadataItemCityKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemCodecsKey') +external ffi.Pointer _NSMetadataItemCodecsKey; + +objc.NSString get NSMetadataItemCodecsKey => objc.NSString.fromPointer( + _NSMetadataItemCodecsKey, + retain: true, + release: true, +); + +set NSMetadataItemCodecsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCodecsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCodecsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemColorSpaceKey', +) +external ffi.Pointer _NSMetadataItemColorSpaceKey; + +objc.NSString get NSMetadataItemColorSpaceKey => objc.NSString.fromPointer( + _NSMetadataItemColorSpaceKey, + retain: true, + release: true, +); + +set NSMetadataItemColorSpaceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemColorSpaceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemColorSpaceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCommentKey', +) +external ffi.Pointer _NSMetadataItemCommentKey; + +objc.NSString get NSMetadataItemCommentKey => objc.NSString.fromPointer( + _NSMetadataItemCommentKey, + retain: true, + release: true, +); + +set NSMetadataItemCommentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCommentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCommentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemComposerKey', +) +external ffi.Pointer _NSMetadataItemComposerKey; + +objc.NSString get NSMetadataItemComposerKey => objc.NSString.fromPointer( + _NSMetadataItemComposerKey, + retain: true, + release: true, +); + +set NSMetadataItemComposerKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemComposerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemComposerKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContactKeywordsKey', +) +external ffi.Pointer _NSMetadataItemContactKeywordsKey; + +objc.NSString get NSMetadataItemContactKeywordsKey => objc.NSString.fromPointer( + _NSMetadataItemContactKeywordsKey, + retain: true, + release: true, +); + +set NSMetadataItemContactKeywordsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContactKeywordsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContactKeywordsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContentCreationDateKey', +) +external ffi.Pointer _NSMetadataItemContentCreationDateKey; + +objc.NSString get NSMetadataItemContentCreationDateKey => + objc.NSString.fromPointer( + _NSMetadataItemContentCreationDateKey, + retain: true, + release: true, + ); + +set NSMetadataItemContentCreationDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContentCreationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContentCreationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContentModificationDateKey', +) +external ffi.Pointer +_NSMetadataItemContentModificationDateKey; + +objc.NSString get NSMetadataItemContentModificationDateKey => + objc.NSString.fromPointer( + _NSMetadataItemContentModificationDateKey, + retain: true, + release: true, + ); + +set NSMetadataItemContentModificationDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContentModificationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContentModificationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContentTypeKey', +) +external ffi.Pointer _NSMetadataItemContentTypeKey; + +objc.NSString get NSMetadataItemContentTypeKey => objc.NSString.fromPointer( + _NSMetadataItemContentTypeKey, + retain: true, + release: true, +); + +set NSMetadataItemContentTypeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContentTypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContentTypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContentTypeTreeKey', +) +external ffi.Pointer _NSMetadataItemContentTypeTreeKey; + +objc.NSString get NSMetadataItemContentTypeTreeKey => objc.NSString.fromPointer( + _NSMetadataItemContentTypeTreeKey, + retain: true, + release: true, +); + +set NSMetadataItemContentTypeTreeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContentTypeTreeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContentTypeTreeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemContributorsKey', +) +external ffi.Pointer _NSMetadataItemContributorsKey; + +objc.NSString get NSMetadataItemContributorsKey => objc.NSString.fromPointer( + _NSMetadataItemContributorsKey, + retain: true, + release: true, +); + +set NSMetadataItemContributorsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemContributorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemContributorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCopyrightKey', +) +external ffi.Pointer _NSMetadataItemCopyrightKey; + +objc.NSString get NSMetadataItemCopyrightKey => objc.NSString.fromPointer( + _NSMetadataItemCopyrightKey, + retain: true, + release: true, +); + +set NSMetadataItemCopyrightKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCopyrightKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCopyrightKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCountryKey', +) +external ffi.Pointer _NSMetadataItemCountryKey; + +objc.NSString get NSMetadataItemCountryKey => objc.NSString.fromPointer( + _NSMetadataItemCountryKey, + retain: true, + release: true, +); + +set NSMetadataItemCountryKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCountryKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCountryKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCoverageKey', +) +external ffi.Pointer _NSMetadataItemCoverageKey; + +objc.NSString get NSMetadataItemCoverageKey => objc.NSString.fromPointer( + _NSMetadataItemCoverageKey, + retain: true, + release: true, +); + +set NSMetadataItemCoverageKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCoverageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCoverageKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemCreatorKey', +) +external ffi.Pointer _NSMetadataItemCreatorKey; + +objc.NSString get NSMetadataItemCreatorKey => objc.NSString.fromPointer( + _NSMetadataItemCreatorKey, + retain: true, + release: true, +); + +set NSMetadataItemCreatorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemCreatorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemCreatorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDateAddedKey', +) +external ffi.Pointer _NSMetadataItemDateAddedKey; + +objc.NSString get NSMetadataItemDateAddedKey => objc.NSString.fromPointer( + _NSMetadataItemDateAddedKey, + retain: true, + release: true, +); + +set NSMetadataItemDateAddedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDateAddedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDateAddedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDeliveryTypeKey', +) +external ffi.Pointer _NSMetadataItemDeliveryTypeKey; + +objc.NSString get NSMetadataItemDeliveryTypeKey => objc.NSString.fromPointer( + _NSMetadataItemDeliveryTypeKey, + retain: true, + release: true, +); + +set NSMetadataItemDeliveryTypeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDeliveryTypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDeliveryTypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDescriptionKey', +) +external ffi.Pointer _NSMetadataItemDescriptionKey; + +objc.NSString get NSMetadataItemDescriptionKey => objc.NSString.fromPointer( + _NSMetadataItemDescriptionKey, + retain: true, + release: true, +); + +set NSMetadataItemDescriptionKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDescriptionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDescriptionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDirectorKey', +) +external ffi.Pointer _NSMetadataItemDirectorKey; + +objc.NSString get NSMetadataItemDirectorKey => objc.NSString.fromPointer( + _NSMetadataItemDirectorKey, + retain: true, + release: true, +); + +set NSMetadataItemDirectorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDirectorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDirectorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDisplayNameKey', +) +external ffi.Pointer _NSMetadataItemDisplayNameKey; + +objc.NSString get NSMetadataItemDisplayNameKey => objc.NSString.fromPointer( + _NSMetadataItemDisplayNameKey, + retain: true, + release: true, +); + +set NSMetadataItemDisplayNameKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDisplayNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDisplayNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDownloadedDateKey', +) +external ffi.Pointer _NSMetadataItemDownloadedDateKey; + +objc.NSString get NSMetadataItemDownloadedDateKey => objc.NSString.fromPointer( + _NSMetadataItemDownloadedDateKey, + retain: true, + release: true, +); + +set NSMetadataItemDownloadedDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDownloadedDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDownloadedDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDueDateKey', +) +external ffi.Pointer _NSMetadataItemDueDateKey; + +objc.NSString get NSMetadataItemDueDateKey => objc.NSString.fromPointer( + _NSMetadataItemDueDateKey, + retain: true, + release: true, +); + +set NSMetadataItemDueDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDueDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDueDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemDurationSecondsKey', +) +external ffi.Pointer _NSMetadataItemDurationSecondsKey; + +objc.NSString get NSMetadataItemDurationSecondsKey => objc.NSString.fromPointer( + _NSMetadataItemDurationSecondsKey, + retain: true, + release: true, +); + +set NSMetadataItemDurationSecondsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemDurationSecondsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemDurationSecondsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemEXIFGPSVersionKey', +) +external ffi.Pointer _NSMetadataItemEXIFGPSVersionKey; + +objc.NSString get NSMetadataItemEXIFGPSVersionKey => objc.NSString.fromPointer( + _NSMetadataItemEXIFGPSVersionKey, + retain: true, + release: true, +); + +set NSMetadataItemEXIFGPSVersionKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemEXIFGPSVersionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemEXIFGPSVersionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemEXIFVersionKey', +) +external ffi.Pointer _NSMetadataItemEXIFVersionKey; + +objc.NSString get NSMetadataItemEXIFVersionKey => objc.NSString.fromPointer( + _NSMetadataItemEXIFVersionKey, + retain: true, + release: true, +); + +set NSMetadataItemEXIFVersionKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemEXIFVersionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemEXIFVersionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemEditorsKey', +) +external ffi.Pointer _NSMetadataItemEditorsKey; + +objc.NSString get NSMetadataItemEditorsKey => objc.NSString.fromPointer( + _NSMetadataItemEditorsKey, + retain: true, + release: true, +); + +set NSMetadataItemEditorsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemEditorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemEditorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemEmailAddressesKey', +) +external ffi.Pointer _NSMetadataItemEmailAddressesKey; + +objc.NSString get NSMetadataItemEmailAddressesKey => objc.NSString.fromPointer( + _NSMetadataItemEmailAddressesKey, + retain: true, + release: true, +); + +set NSMetadataItemEmailAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemEmailAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemEmailAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemEncodingApplicationsKey', +) +external ffi.Pointer +_NSMetadataItemEncodingApplicationsKey; + +objc.NSString get NSMetadataItemEncodingApplicationsKey => + objc.NSString.fromPointer( + _NSMetadataItemEncodingApplicationsKey, + retain: true, + release: true, + ); + +set NSMetadataItemEncodingApplicationsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemEncodingApplicationsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemEncodingApplicationsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExecutableArchitecturesKey', +) +external ffi.Pointer +_NSMetadataItemExecutableArchitecturesKey; + +objc.NSString get NSMetadataItemExecutableArchitecturesKey => + objc.NSString.fromPointer( + _NSMetadataItemExecutableArchitecturesKey, + retain: true, + release: true, + ); + +set NSMetadataItemExecutableArchitecturesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExecutableArchitecturesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExecutableArchitecturesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExecutablePlatformKey', +) +external ffi.Pointer _NSMetadataItemExecutablePlatformKey; + +objc.NSString get NSMetadataItemExecutablePlatformKey => + objc.NSString.fromPointer( + _NSMetadataItemExecutablePlatformKey, + retain: true, + release: true, + ); + +set NSMetadataItemExecutablePlatformKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExecutablePlatformKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExecutablePlatformKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExposureModeKey', +) +external ffi.Pointer _NSMetadataItemExposureModeKey; + +objc.NSString get NSMetadataItemExposureModeKey => objc.NSString.fromPointer( + _NSMetadataItemExposureModeKey, + retain: true, + release: true, +); + +set NSMetadataItemExposureModeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExposureModeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExposureModeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExposureProgramKey', +) +external ffi.Pointer _NSMetadataItemExposureProgramKey; + +objc.NSString get NSMetadataItemExposureProgramKey => objc.NSString.fromPointer( + _NSMetadataItemExposureProgramKey, + retain: true, + release: true, +); + +set NSMetadataItemExposureProgramKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExposureProgramKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExposureProgramKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExposureTimeSecondsKey', +) +external ffi.Pointer _NSMetadataItemExposureTimeSecondsKey; + +objc.NSString get NSMetadataItemExposureTimeSecondsKey => + objc.NSString.fromPointer( + _NSMetadataItemExposureTimeSecondsKey, + retain: true, + release: true, + ); + +set NSMetadataItemExposureTimeSecondsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExposureTimeSecondsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExposureTimeSecondsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemExposureTimeStringKey', +) +external ffi.Pointer _NSMetadataItemExposureTimeStringKey; + +objc.NSString get NSMetadataItemExposureTimeStringKey => + objc.NSString.fromPointer( + _NSMetadataItemExposureTimeStringKey, + retain: true, + release: true, + ); + +set NSMetadataItemExposureTimeStringKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemExposureTimeStringKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemExposureTimeStringKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFNumberKey', +) +external ffi.Pointer _NSMetadataItemFNumberKey; + +objc.NSString get NSMetadataItemFNumberKey => objc.NSString.fromPointer( + _NSMetadataItemFNumberKey, + retain: true, + release: true, +); + +set NSMetadataItemFNumberKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFNumberKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFNumberKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFSContentChangeDateKey', +) +external ffi.Pointer _NSMetadataItemFSContentChangeDateKey; + +objc.NSString get NSMetadataItemFSContentChangeDateKey => + objc.NSString.fromPointer( + _NSMetadataItemFSContentChangeDateKey, + retain: true, + release: true, + ); + +set NSMetadataItemFSContentChangeDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFSContentChangeDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFSContentChangeDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFSCreationDateKey', +) +external ffi.Pointer _NSMetadataItemFSCreationDateKey; + +objc.NSString get NSMetadataItemFSCreationDateKey => objc.NSString.fromPointer( + _NSMetadataItemFSCreationDateKey, + retain: true, + release: true, +); + +set NSMetadataItemFSCreationDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFSCreationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFSCreationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemFSNameKey') +external ffi.Pointer _NSMetadataItemFSNameKey; + +objc.NSString get NSMetadataItemFSNameKey => objc.NSString.fromPointer( + _NSMetadataItemFSNameKey, + retain: true, + release: true, +); + +set NSMetadataItemFSNameKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFSNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFSNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemFSSizeKey') +external ffi.Pointer _NSMetadataItemFSSizeKey; + +objc.NSString get NSMetadataItemFSSizeKey => objc.NSString.fromPointer( + _NSMetadataItemFSSizeKey, + retain: true, + release: true, +); + +set NSMetadataItemFSSizeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFSSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFSSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFinderCommentKey', +) +external ffi.Pointer _NSMetadataItemFinderCommentKey; + +objc.NSString get NSMetadataItemFinderCommentKey => objc.NSString.fromPointer( + _NSMetadataItemFinderCommentKey, + retain: true, + release: true, +); + +set NSMetadataItemFinderCommentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFinderCommentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFinderCommentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFlashOnOffKey', +) +external ffi.Pointer _NSMetadataItemFlashOnOffKey; + +objc.NSString get NSMetadataItemFlashOnOffKey => objc.NSString.fromPointer( + _NSMetadataItemFlashOnOffKey, + retain: true, + release: true, +); + +set NSMetadataItemFlashOnOffKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFlashOnOffKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFlashOnOffKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFocalLength35mmKey', +) +external ffi.Pointer _NSMetadataItemFocalLength35mmKey; + +objc.NSString get NSMetadataItemFocalLength35mmKey => objc.NSString.fromPointer( + _NSMetadataItemFocalLength35mmKey, + retain: true, + release: true, +); + +set NSMetadataItemFocalLength35mmKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFocalLength35mmKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFocalLength35mmKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemFocalLengthKey', +) +external ffi.Pointer _NSMetadataItemFocalLengthKey; + +objc.NSString get NSMetadataItemFocalLengthKey => objc.NSString.fromPointer( + _NSMetadataItemFocalLengthKey, + retain: true, + release: true, +); + +set NSMetadataItemFocalLengthKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFocalLengthKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFocalLengthKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemFontsKey') +external ffi.Pointer _NSMetadataItemFontsKey; + +objc.NSString get NSMetadataItemFontsKey => objc.NSString.fromPointer( + _NSMetadataItemFontsKey, + retain: true, + release: true, +); + +set NSMetadataItemFontsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemFontsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemFontsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSAreaInformationKey', +) +external ffi.Pointer _NSMetadataItemGPSAreaInformationKey; + +objc.NSString get NSMetadataItemGPSAreaInformationKey => + objc.NSString.fromPointer( + _NSMetadataItemGPSAreaInformationKey, + retain: true, + release: true, + ); + +set NSMetadataItemGPSAreaInformationKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSAreaInformationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSAreaInformationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemGPSDOPKey') +external ffi.Pointer _NSMetadataItemGPSDOPKey; + +objc.NSString get NSMetadataItemGPSDOPKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDOPKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDOPKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDOPKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDOPKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDateStampKey', +) +external ffi.Pointer _NSMetadataItemGPSDateStampKey; + +objc.NSString get NSMetadataItemGPSDateStampKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDateStampKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDateStampKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDateStampKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDateStampKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDestBearingKey', +) +external ffi.Pointer _NSMetadataItemGPSDestBearingKey; + +objc.NSString get NSMetadataItemGPSDestBearingKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDestBearingKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDestBearingKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDestBearingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDestBearingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDestDistanceKey', +) +external ffi.Pointer _NSMetadataItemGPSDestDistanceKey; + +objc.NSString get NSMetadataItemGPSDestDistanceKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDestDistanceKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDestDistanceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDestDistanceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDestDistanceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDestLatitudeKey', +) +external ffi.Pointer _NSMetadataItemGPSDestLatitudeKey; + +objc.NSString get NSMetadataItemGPSDestLatitudeKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDestLatitudeKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDestLatitudeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDestLatitudeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDestLatitudeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDestLongitudeKey', +) +external ffi.Pointer _NSMetadataItemGPSDestLongitudeKey; + +objc.NSString get NSMetadataItemGPSDestLongitudeKey => + objc.NSString.fromPointer( + _NSMetadataItemGPSDestLongitudeKey, + retain: true, + release: true, + ); + +set NSMetadataItemGPSDestLongitudeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDestLongitudeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDestLongitudeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSDifferentalKey', +) +external ffi.Pointer _NSMetadataItemGPSDifferentalKey; + +objc.NSString get NSMetadataItemGPSDifferentalKey => objc.NSString.fromPointer( + _NSMetadataItemGPSDifferentalKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSDifferentalKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSDifferentalKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSDifferentalKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSMapDatumKey', +) +external ffi.Pointer _NSMetadataItemGPSMapDatumKey; + +objc.NSString get NSMetadataItemGPSMapDatumKey => objc.NSString.fromPointer( + _NSMetadataItemGPSMapDatumKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSMapDatumKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSMapDatumKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSMapDatumKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSMeasureModeKey', +) +external ffi.Pointer _NSMetadataItemGPSMeasureModeKey; + +objc.NSString get NSMetadataItemGPSMeasureModeKey => objc.NSString.fromPointer( + _NSMetadataItemGPSMeasureModeKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSMeasureModeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSMeasureModeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSMeasureModeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSProcessingMethodKey', +) +external ffi.Pointer _NSMetadataItemGPSProcessingMethodKey; + +objc.NSString get NSMetadataItemGPSProcessingMethodKey => + objc.NSString.fromPointer( + _NSMetadataItemGPSProcessingMethodKey, + retain: true, + release: true, + ); + +set NSMetadataItemGPSProcessingMethodKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSProcessingMethodKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSProcessingMethodKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSStatusKey', +) +external ffi.Pointer _NSMetadataItemGPSStatusKey; + +objc.NSString get NSMetadataItemGPSStatusKey => objc.NSString.fromPointer( + _NSMetadataItemGPSStatusKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSStatusKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSStatusKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSStatusKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemGPSTrackKey', +) +external ffi.Pointer _NSMetadataItemGPSTrackKey; + +objc.NSString get NSMetadataItemGPSTrackKey => objc.NSString.fromPointer( + _NSMetadataItemGPSTrackKey, + retain: true, + release: true, +); + +set NSMetadataItemGPSTrackKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGPSTrackKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGPSTrackKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemGenreKey') +external ffi.Pointer _NSMetadataItemGenreKey; + +objc.NSString get NSMetadataItemGenreKey => objc.NSString.fromPointer( + _NSMetadataItemGenreKey, + retain: true, + release: true, +); + +set NSMetadataItemGenreKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemGenreKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemGenreKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemHasAlphaChannelKey', +) +external ffi.Pointer _NSMetadataItemHasAlphaChannelKey; + +objc.NSString get NSMetadataItemHasAlphaChannelKey => objc.NSString.fromPointer( + _NSMetadataItemHasAlphaChannelKey, + retain: true, + release: true, +); + +set NSMetadataItemHasAlphaChannelKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemHasAlphaChannelKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemHasAlphaChannelKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemHeadlineKey', +) +external ffi.Pointer _NSMetadataItemHeadlineKey; + +objc.NSString get NSMetadataItemHeadlineKey => objc.NSString.fromPointer( + _NSMetadataItemHeadlineKey, + retain: true, + release: true, +); + +set NSMetadataItemHeadlineKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemHeadlineKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemHeadlineKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemISOSpeedKey', +) +external ffi.Pointer _NSMetadataItemISOSpeedKey; + +objc.NSString get NSMetadataItemISOSpeedKey => objc.NSString.fromPointer( + _NSMetadataItemISOSpeedKey, + retain: true, + release: true, +); + +set NSMetadataItemISOSpeedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemISOSpeedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemISOSpeedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemIdentifierKey', +) +external ffi.Pointer _NSMetadataItemIdentifierKey; + +objc.NSString get NSMetadataItemIdentifierKey => objc.NSString.fromPointer( + _NSMetadataItemIdentifierKey, + retain: true, + release: true, +); + +set NSMetadataItemIdentifierKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemImageDirectionKey', +) +external ffi.Pointer _NSMetadataItemImageDirectionKey; + +objc.NSString get NSMetadataItemImageDirectionKey => objc.NSString.fromPointer( + _NSMetadataItemImageDirectionKey, + retain: true, + release: true, +); + +set NSMetadataItemImageDirectionKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemImageDirectionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemImageDirectionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemInformationKey', +) +external ffi.Pointer _NSMetadataItemInformationKey; + +objc.NSString get NSMetadataItemInformationKey => objc.NSString.fromPointer( + _NSMetadataItemInformationKey, + retain: true, + release: true, +); + +set NSMetadataItemInformationKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemInformationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemInformationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemInstantMessageAddressesKey', +) +external ffi.Pointer +_NSMetadataItemInstantMessageAddressesKey; + +objc.NSString get NSMetadataItemInstantMessageAddressesKey => + objc.NSString.fromPointer( + _NSMetadataItemInstantMessageAddressesKey, + retain: true, + release: true, + ); + +set NSMetadataItemInstantMessageAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemInstantMessageAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemInstantMessageAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemInstructionsKey', +) +external ffi.Pointer _NSMetadataItemInstructionsKey; + +objc.NSString get NSMetadataItemInstructionsKey => objc.NSString.fromPointer( + _NSMetadataItemInstructionsKey, + retain: true, + release: true, +); + +set NSMetadataItemInstructionsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemInstructionsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemInstructionsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemIsApplicationManagedKey', +) +external ffi.Pointer +_NSMetadataItemIsApplicationManagedKey; + +objc.NSString get NSMetadataItemIsApplicationManagedKey => + objc.NSString.fromPointer( + _NSMetadataItemIsApplicationManagedKey, + retain: true, + release: true, + ); + +set NSMetadataItemIsApplicationManagedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemIsApplicationManagedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemIsApplicationManagedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemIsGeneralMIDISequenceKey', +) +external ffi.Pointer +_NSMetadataItemIsGeneralMIDISequenceKey; + +objc.NSString get NSMetadataItemIsGeneralMIDISequenceKey => + objc.NSString.fromPointer( + _NSMetadataItemIsGeneralMIDISequenceKey, + retain: true, + release: true, + ); + +set NSMetadataItemIsGeneralMIDISequenceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemIsGeneralMIDISequenceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemIsGeneralMIDISequenceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemIsLikelyJunkKey', +) +external ffi.Pointer _NSMetadataItemIsLikelyJunkKey; + +objc.NSString get NSMetadataItemIsLikelyJunkKey => objc.NSString.fromPointer( + _NSMetadataItemIsLikelyJunkKey, + retain: true, + release: true, +); + +set NSMetadataItemIsLikelyJunkKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemIsLikelyJunkKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemIsLikelyJunkKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemIsUbiquitousKey', +) +external ffi.Pointer _NSMetadataItemIsUbiquitousKey; + +objc.NSString get NSMetadataItemIsUbiquitousKey => objc.NSString.fromPointer( + _NSMetadataItemIsUbiquitousKey, + retain: true, + release: true, +); + +set NSMetadataItemIsUbiquitousKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemIsUbiquitousKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemIsUbiquitousKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemKeySignatureKey', +) +external ffi.Pointer _NSMetadataItemKeySignatureKey; + +objc.NSString get NSMetadataItemKeySignatureKey => objc.NSString.fromPointer( + _NSMetadataItemKeySignatureKey, + retain: true, + release: true, +); + +set NSMetadataItemKeySignatureKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemKeySignatureKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemKeySignatureKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemKeywordsKey', +) +external ffi.Pointer _NSMetadataItemKeywordsKey; + +objc.NSString get NSMetadataItemKeywordsKey => objc.NSString.fromPointer( + _NSMetadataItemKeywordsKey, + retain: true, + release: true, +); + +set NSMetadataItemKeywordsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemKeywordsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemKeywordsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemKindKey') +external ffi.Pointer _NSMetadataItemKindKey; + +objc.NSString get NSMetadataItemKindKey => objc.NSString.fromPointer( + _NSMetadataItemKindKey, + retain: true, + release: true, +); + +set NSMetadataItemKindKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemKindKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemKindKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLanguagesKey', +) +external ffi.Pointer _NSMetadataItemLanguagesKey; + +objc.NSString get NSMetadataItemLanguagesKey => objc.NSString.fromPointer( + _NSMetadataItemLanguagesKey, + retain: true, + release: true, +); + +set NSMetadataItemLanguagesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLanguagesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLanguagesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLastUsedDateKey', +) +external ffi.Pointer _NSMetadataItemLastUsedDateKey; + +objc.NSString get NSMetadataItemLastUsedDateKey => objc.NSString.fromPointer( + _NSMetadataItemLastUsedDateKey, + retain: true, + release: true, +); + +set NSMetadataItemLastUsedDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLastUsedDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLastUsedDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLatitudeKey', +) +external ffi.Pointer _NSMetadataItemLatitudeKey; + +objc.NSString get NSMetadataItemLatitudeKey => objc.NSString.fromPointer( + _NSMetadataItemLatitudeKey, + retain: true, + release: true, +); + +set NSMetadataItemLatitudeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLatitudeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLatitudeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLayerNamesKey', +) +external ffi.Pointer _NSMetadataItemLayerNamesKey; + +objc.NSString get NSMetadataItemLayerNamesKey => objc.NSString.fromPointer( + _NSMetadataItemLayerNamesKey, + retain: true, + release: true, +); + +set NSMetadataItemLayerNamesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLayerNamesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLayerNamesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLensModelKey', +) +external ffi.Pointer _NSMetadataItemLensModelKey; + +objc.NSString get NSMetadataItemLensModelKey => objc.NSString.fromPointer( + _NSMetadataItemLensModelKey, + retain: true, + release: true, +); + +set NSMetadataItemLensModelKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLensModelKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLensModelKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLongitudeKey', +) +external ffi.Pointer _NSMetadataItemLongitudeKey; + +objc.NSString get NSMetadataItemLongitudeKey => objc.NSString.fromPointer( + _NSMetadataItemLongitudeKey, + retain: true, + release: true, +); + +set NSMetadataItemLongitudeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLongitudeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLongitudeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemLyricistKey', +) +external ffi.Pointer _NSMetadataItemLyricistKey; + +objc.NSString get NSMetadataItemLyricistKey => objc.NSString.fromPointer( + _NSMetadataItemLyricistKey, + retain: true, + release: true, +); + +set NSMetadataItemLyricistKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemLyricistKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemLyricistKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMaxApertureKey', +) +external ffi.Pointer _NSMetadataItemMaxApertureKey; + +objc.NSString get NSMetadataItemMaxApertureKey => objc.NSString.fromPointer( + _NSMetadataItemMaxApertureKey, + retain: true, + release: true, +); + +set NSMetadataItemMaxApertureKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMaxApertureKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMaxApertureKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMediaTypesKey', +) +external ffi.Pointer _NSMetadataItemMediaTypesKey; + +objc.NSString get NSMetadataItemMediaTypesKey => objc.NSString.fromPointer( + _NSMetadataItemMediaTypesKey, + retain: true, + release: true, +); + +set NSMetadataItemMediaTypesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMediaTypesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMediaTypesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMeteringModeKey', +) +external ffi.Pointer _NSMetadataItemMeteringModeKey; + +objc.NSString get NSMetadataItemMeteringModeKey => objc.NSString.fromPointer( + _NSMetadataItemMeteringModeKey, + retain: true, + release: true, +); + +set NSMetadataItemMeteringModeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMeteringModeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMeteringModeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMusicalGenreKey', +) +external ffi.Pointer _NSMetadataItemMusicalGenreKey; + +objc.NSString get NSMetadataItemMusicalGenreKey => objc.NSString.fromPointer( + _NSMetadataItemMusicalGenreKey, + retain: true, + release: true, +); + +set NSMetadataItemMusicalGenreKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMusicalGenreKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMusicalGenreKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMusicalInstrumentCategoryKey', +) +external ffi.Pointer +_NSMetadataItemMusicalInstrumentCategoryKey; + +objc.NSString get NSMetadataItemMusicalInstrumentCategoryKey => + objc.NSString.fromPointer( + _NSMetadataItemMusicalInstrumentCategoryKey, + retain: true, + release: true, + ); + +set NSMetadataItemMusicalInstrumentCategoryKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMusicalInstrumentCategoryKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMusicalInstrumentCategoryKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemMusicalInstrumentNameKey', +) +external ffi.Pointer +_NSMetadataItemMusicalInstrumentNameKey; + +objc.NSString get NSMetadataItemMusicalInstrumentNameKey => + objc.NSString.fromPointer( + _NSMetadataItemMusicalInstrumentNameKey, + retain: true, + release: true, + ); + +set NSMetadataItemMusicalInstrumentNameKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemMusicalInstrumentNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemMusicalInstrumentNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemNamedLocationKey', +) +external ffi.Pointer _NSMetadataItemNamedLocationKey; + +objc.NSString get NSMetadataItemNamedLocationKey => objc.NSString.fromPointer( + _NSMetadataItemNamedLocationKey, + retain: true, + release: true, +); + +set NSMetadataItemNamedLocationKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemNamedLocationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemNamedLocationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemNumberOfPagesKey', +) +external ffi.Pointer _NSMetadataItemNumberOfPagesKey; + +objc.NSString get NSMetadataItemNumberOfPagesKey => objc.NSString.fromPointer( + _NSMetadataItemNumberOfPagesKey, + retain: true, + release: true, +); + +set NSMetadataItemNumberOfPagesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemNumberOfPagesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemNumberOfPagesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemOrganizationsKey', +) +external ffi.Pointer _NSMetadataItemOrganizationsKey; + +objc.NSString get NSMetadataItemOrganizationsKey => objc.NSString.fromPointer( + _NSMetadataItemOrganizationsKey, + retain: true, + release: true, +); + +set NSMetadataItemOrganizationsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemOrganizationsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemOrganizationsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemOrientationKey', +) +external ffi.Pointer _NSMetadataItemOrientationKey; + +objc.NSString get NSMetadataItemOrientationKey => objc.NSString.fromPointer( + _NSMetadataItemOrientationKey, + retain: true, + release: true, +); + +set NSMetadataItemOrientationKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemOrientationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemOrientationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemOriginalFormatKey', +) +external ffi.Pointer _NSMetadataItemOriginalFormatKey; + +objc.NSString get NSMetadataItemOriginalFormatKey => objc.NSString.fromPointer( + _NSMetadataItemOriginalFormatKey, + retain: true, + release: true, +); + +set NSMetadataItemOriginalFormatKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemOriginalFormatKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemOriginalFormatKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemOriginalSourceKey', +) +external ffi.Pointer _NSMetadataItemOriginalSourceKey; + +objc.NSString get NSMetadataItemOriginalSourceKey => objc.NSString.fromPointer( + _NSMetadataItemOriginalSourceKey, + retain: true, + release: true, +); + +set NSMetadataItemOriginalSourceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemOriginalSourceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemOriginalSourceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPageHeightKey', +) +external ffi.Pointer _NSMetadataItemPageHeightKey; + +objc.NSString get NSMetadataItemPageHeightKey => objc.NSString.fromPointer( + _NSMetadataItemPageHeightKey, + retain: true, + release: true, +); + +set NSMetadataItemPageHeightKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPageHeightKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPageHeightKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPageWidthKey', +) +external ffi.Pointer _NSMetadataItemPageWidthKey; + +objc.NSString get NSMetadataItemPageWidthKey => objc.NSString.fromPointer( + _NSMetadataItemPageWidthKey, + retain: true, + release: true, +); + +set NSMetadataItemPageWidthKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPageWidthKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPageWidthKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemParticipantsKey', +) +external ffi.Pointer _NSMetadataItemParticipantsKey; + +objc.NSString get NSMetadataItemParticipantsKey => objc.NSString.fromPointer( + _NSMetadataItemParticipantsKey, + retain: true, + release: true, +); + +set NSMetadataItemParticipantsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemParticipantsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemParticipantsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemPathKey') +external ffi.Pointer _NSMetadataItemPathKey; + +objc.NSString get NSMetadataItemPathKey => objc.NSString.fromPointer( + _NSMetadataItemPathKey, + retain: true, + release: true, +); + +set NSMetadataItemPathKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPathKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPathKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPerformersKey', +) +external ffi.Pointer _NSMetadataItemPerformersKey; + +objc.NSString get NSMetadataItemPerformersKey => objc.NSString.fromPointer( + _NSMetadataItemPerformersKey, + retain: true, + release: true, +); + +set NSMetadataItemPerformersKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPerformersKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPerformersKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPhoneNumbersKey', +) +external ffi.Pointer _NSMetadataItemPhoneNumbersKey; + +objc.NSString get NSMetadataItemPhoneNumbersKey => objc.NSString.fromPointer( + _NSMetadataItemPhoneNumbersKey, + retain: true, + release: true, +); + +set NSMetadataItemPhoneNumbersKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPhoneNumbersKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPhoneNumbersKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPixelCountKey', +) +external ffi.Pointer _NSMetadataItemPixelCountKey; + +objc.NSString get NSMetadataItemPixelCountKey => objc.NSString.fromPointer( + _NSMetadataItemPixelCountKey, + retain: true, + release: true, +); + +set NSMetadataItemPixelCountKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPixelCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPixelCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPixelHeightKey', +) +external ffi.Pointer _NSMetadataItemPixelHeightKey; + +objc.NSString get NSMetadataItemPixelHeightKey => objc.NSString.fromPointer( + _NSMetadataItemPixelHeightKey, + retain: true, + release: true, +); + +set NSMetadataItemPixelHeightKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPixelHeightKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPixelHeightKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPixelWidthKey', +) +external ffi.Pointer _NSMetadataItemPixelWidthKey; + +objc.NSString get NSMetadataItemPixelWidthKey => objc.NSString.fromPointer( + _NSMetadataItemPixelWidthKey, + retain: true, + release: true, +); + +set NSMetadataItemPixelWidthKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPixelWidthKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPixelWidthKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemProducerKey', +) +external ffi.Pointer _NSMetadataItemProducerKey; + +objc.NSString get NSMetadataItemProducerKey => objc.NSString.fromPointer( + _NSMetadataItemProducerKey, + retain: true, + release: true, +); + +set NSMetadataItemProducerKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemProducerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemProducerKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemProfileNameKey', +) +external ffi.Pointer _NSMetadataItemProfileNameKey; + +objc.NSString get NSMetadataItemProfileNameKey => objc.NSString.fromPointer( + _NSMetadataItemProfileNameKey, + retain: true, + release: true, +); + +set NSMetadataItemProfileNameKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemProfileNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemProfileNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemProjectsKey', +) +external ffi.Pointer _NSMetadataItemProjectsKey; + +objc.NSString get NSMetadataItemProjectsKey => objc.NSString.fromPointer( + _NSMetadataItemProjectsKey, + retain: true, + release: true, +); + +set NSMetadataItemProjectsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemProjectsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemProjectsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemPublishersKey', +) +external ffi.Pointer _NSMetadataItemPublishersKey; + +objc.NSString get NSMetadataItemPublishersKey => objc.NSString.fromPointer( + _NSMetadataItemPublishersKey, + retain: true, + release: true, +); + +set NSMetadataItemPublishersKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemPublishersKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemPublishersKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRecipientAddressesKey', +) +external ffi.Pointer _NSMetadataItemRecipientAddressesKey; + +objc.NSString get NSMetadataItemRecipientAddressesKey => + objc.NSString.fromPointer( + _NSMetadataItemRecipientAddressesKey, + retain: true, + release: true, + ); + +set NSMetadataItemRecipientAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRecipientAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRecipientAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRecipientEmailAddressesKey', +) +external ffi.Pointer +_NSMetadataItemRecipientEmailAddressesKey; + +objc.NSString get NSMetadataItemRecipientEmailAddressesKey => + objc.NSString.fromPointer( + _NSMetadataItemRecipientEmailAddressesKey, + retain: true, + release: true, + ); + +set NSMetadataItemRecipientEmailAddressesKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRecipientEmailAddressesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRecipientEmailAddressesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRecipientsKey', +) +external ffi.Pointer _NSMetadataItemRecipientsKey; + +objc.NSString get NSMetadataItemRecipientsKey => objc.NSString.fromPointer( + _NSMetadataItemRecipientsKey, + retain: true, + release: true, +); + +set NSMetadataItemRecipientsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRecipientsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRecipientsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRecordingDateKey', +) +external ffi.Pointer _NSMetadataItemRecordingDateKey; + +objc.NSString get NSMetadataItemRecordingDateKey => objc.NSString.fromPointer( + _NSMetadataItemRecordingDateKey, + retain: true, + release: true, +); + +set NSMetadataItemRecordingDateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRecordingDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRecordingDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRecordingYearKey', +) +external ffi.Pointer _NSMetadataItemRecordingYearKey; + +objc.NSString get NSMetadataItemRecordingYearKey => objc.NSString.fromPointer( + _NSMetadataItemRecordingYearKey, + retain: true, + release: true, +); + +set NSMetadataItemRecordingYearKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRecordingYearKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRecordingYearKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemRedEyeOnOffKey', +) +external ffi.Pointer _NSMetadataItemRedEyeOnOffKey; + +objc.NSString get NSMetadataItemRedEyeOnOffKey => objc.NSString.fromPointer( + _NSMetadataItemRedEyeOnOffKey, + retain: true, + release: true, +); + +set NSMetadataItemRedEyeOnOffKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRedEyeOnOffKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRedEyeOnOffKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemResolutionHeightDPIKey', +) +external ffi.Pointer _NSMetadataItemResolutionHeightDPIKey; + +objc.NSString get NSMetadataItemResolutionHeightDPIKey => + objc.NSString.fromPointer( + _NSMetadataItemResolutionHeightDPIKey, + retain: true, + release: true, + ); + +set NSMetadataItemResolutionHeightDPIKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemResolutionHeightDPIKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemResolutionHeightDPIKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemResolutionWidthDPIKey', +) +external ffi.Pointer _NSMetadataItemResolutionWidthDPIKey; + +objc.NSString get NSMetadataItemResolutionWidthDPIKey => + objc.NSString.fromPointer( + _NSMetadataItemResolutionWidthDPIKey, + retain: true, + release: true, + ); + +set NSMetadataItemResolutionWidthDPIKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemResolutionWidthDPIKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemResolutionWidthDPIKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemRightsKey') +external ffi.Pointer _NSMetadataItemRightsKey; + +objc.NSString get NSMetadataItemRightsKey => objc.NSString.fromPointer( + _NSMetadataItemRightsKey, + retain: true, + release: true, +); + +set NSMetadataItemRightsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemRightsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemRightsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemSecurityMethodKey', +) +external ffi.Pointer _NSMetadataItemSecurityMethodKey; + +objc.NSString get NSMetadataItemSecurityMethodKey => objc.NSString.fromPointer( + _NSMetadataItemSecurityMethodKey, + retain: true, + release: true, +); + +set NSMetadataItemSecurityMethodKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemSecurityMethodKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemSecurityMethodKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemSpeedKey') +external ffi.Pointer _NSMetadataItemSpeedKey; + +objc.NSString get NSMetadataItemSpeedKey => objc.NSString.fromPointer( + _NSMetadataItemSpeedKey, + retain: true, + release: true, +); + +set NSMetadataItemSpeedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemSpeedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemSpeedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemStarRatingKey', +) +external ffi.Pointer _NSMetadataItemStarRatingKey; + +objc.NSString get NSMetadataItemStarRatingKey => objc.NSString.fromPointer( + _NSMetadataItemStarRatingKey, + retain: true, + release: true, +); + +set NSMetadataItemStarRatingKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemStarRatingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemStarRatingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemStateOrProvinceKey', +) +external ffi.Pointer _NSMetadataItemStateOrProvinceKey; + +objc.NSString get NSMetadataItemStateOrProvinceKey => objc.NSString.fromPointer( + _NSMetadataItemStateOrProvinceKey, + retain: true, + release: true, +); + +set NSMetadataItemStateOrProvinceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemStateOrProvinceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemStateOrProvinceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemStreamableKey', +) +external ffi.Pointer _NSMetadataItemStreamableKey; + +objc.NSString get NSMetadataItemStreamableKey => objc.NSString.fromPointer( + _NSMetadataItemStreamableKey, + retain: true, + release: true, +); + +set NSMetadataItemStreamableKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemStreamableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemStreamableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemSubjectKey', +) +external ffi.Pointer _NSMetadataItemSubjectKey; + +objc.NSString get NSMetadataItemSubjectKey => objc.NSString.fromPointer( + _NSMetadataItemSubjectKey, + retain: true, + release: true, +); + +set NSMetadataItemSubjectKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemSubjectKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemSubjectKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemTempoKey') +external ffi.Pointer _NSMetadataItemTempoKey; + +objc.NSString get NSMetadataItemTempoKey => objc.NSString.fromPointer( + _NSMetadataItemTempoKey, + retain: true, + release: true, +); + +set NSMetadataItemTempoKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTempoKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTempoKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemTextContentKey', +) +external ffi.Pointer _NSMetadataItemTextContentKey; + +objc.NSString get NSMetadataItemTextContentKey => objc.NSString.fromPointer( + _NSMetadataItemTextContentKey, + retain: true, + release: true, +); + +set NSMetadataItemTextContentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTextContentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTextContentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemThemeKey') +external ffi.Pointer _NSMetadataItemThemeKey; + +objc.NSString get NSMetadataItemThemeKey => objc.NSString.fromPointer( + _NSMetadataItemThemeKey, + retain: true, + release: true, +); + +set NSMetadataItemThemeKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemThemeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemThemeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemTimeSignatureKey', +) +external ffi.Pointer _NSMetadataItemTimeSignatureKey; + +objc.NSString get NSMetadataItemTimeSignatureKey => objc.NSString.fromPointer( + _NSMetadataItemTimeSignatureKey, + retain: true, + release: true, +); + +set NSMetadataItemTimeSignatureKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTimeSignatureKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTimeSignatureKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemTimestampKey', +) +external ffi.Pointer _NSMetadataItemTimestampKey; + +objc.NSString get NSMetadataItemTimestampKey => objc.NSString.fromPointer( + _NSMetadataItemTimestampKey, + retain: true, + release: true, +); + +set NSMetadataItemTimestampKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTimestampKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTimestampKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemTitleKey') +external ffi.Pointer _NSMetadataItemTitleKey; + +objc.NSString get NSMetadataItemTitleKey => objc.NSString.fromPointer( + _NSMetadataItemTitleKey, + retain: true, + release: true, +); + +set NSMetadataItemTitleKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTitleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTitleKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemTotalBitRateKey', +) +external ffi.Pointer _NSMetadataItemTotalBitRateKey; + +objc.NSString get NSMetadataItemTotalBitRateKey => objc.NSString.fromPointer( + _NSMetadataItemTotalBitRateKey, + retain: true, + release: true, +); + +set NSMetadataItemTotalBitRateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemTotalBitRateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemTotalBitRateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMetadataItemURLKey') +external ffi.Pointer _NSMetadataItemURLKey; + +objc.NSString get NSMetadataItemURLKey => objc.NSString.fromPointer( + _NSMetadataItemURLKey, + retain: true, + release: true, +); + +set NSMetadataItemURLKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemURLKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemURLKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemVersionKey', +) +external ffi.Pointer _NSMetadataItemVersionKey; + +objc.NSString get NSMetadataItemVersionKey => objc.NSString.fromPointer( + _NSMetadataItemVersionKey, + retain: true, + release: true, +); + +set NSMetadataItemVersionKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemVersionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemVersionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemVideoBitRateKey', +) +external ffi.Pointer _NSMetadataItemVideoBitRateKey; + +objc.NSString get NSMetadataItemVideoBitRateKey => objc.NSString.fromPointer( + _NSMetadataItemVideoBitRateKey, + retain: true, + release: true, +); + +set NSMetadataItemVideoBitRateKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemVideoBitRateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemVideoBitRateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemWhereFromsKey', +) +external ffi.Pointer _NSMetadataItemWhereFromsKey; + +objc.NSString get NSMetadataItemWhereFromsKey => objc.NSString.fromPointer( + _NSMetadataItemWhereFromsKey, + retain: true, + release: true, +); + +set NSMetadataItemWhereFromsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemWhereFromsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemWhereFromsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataItemWhiteBalanceKey', +) +external ffi.Pointer _NSMetadataItemWhiteBalanceKey; + +objc.NSString get NSMetadataItemWhiteBalanceKey => objc.NSString.fromPointer( + _NSMetadataItemWhiteBalanceKey, + retain: true, + release: true, +); + +set NSMetadataItemWhiteBalanceKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataItemWhiteBalanceKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataItemWhiteBalanceKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope', +) +external ffi.Pointer +_NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope; + +objc.NSString get NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope => + objc.NSString.fromPointer( + _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, + retain: true, + release: true, + ); + +set NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope( + objc.NSString value, +) { + objc.NSString.fromPointer( + _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSMetadataQueryDidFinishGatheringNotification', +) +external NSNotificationName _NSMetadataQueryDidFinishGatheringNotification; + +DartNSNotificationName get NSMetadataQueryDidFinishGatheringNotification => + objc.NSString.fromPointer( + _NSMetadataQueryDidFinishGatheringNotification, + retain: true, + release: true, + ); + +set NSMetadataQueryDidFinishGatheringNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSMetadataQueryDidFinishGatheringNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryDidFinishGatheringNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSMetadataQueryDidStartGatheringNotification', +) +external NSNotificationName _NSMetadataQueryDidStartGatheringNotification; + +DartNSNotificationName get NSMetadataQueryDidStartGatheringNotification => + objc.NSString.fromPointer( + _NSMetadataQueryDidStartGatheringNotification, + retain: true, + release: true, + ); + +set NSMetadataQueryDidStartGatheringNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSMetadataQueryDidStartGatheringNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryDidStartGatheringNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSMetadataQueryDidUpdateNotification') +external NSNotificationName _NSMetadataQueryDidUpdateNotification; + +DartNSNotificationName get NSMetadataQueryDidUpdateNotification => + objc.NSString.fromPointer( + _NSMetadataQueryDidUpdateNotification, + retain: true, + release: true, + ); + +set NSMetadataQueryDidUpdateNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSMetadataQueryDidUpdateNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryDidUpdateNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSMetadataQueryGatheringProgressNotification', +) +external NSNotificationName _NSMetadataQueryGatheringProgressNotification; + +DartNSNotificationName get NSMetadataQueryGatheringProgressNotification => + objc.NSString.fromPointer( + _NSMetadataQueryGatheringProgressNotification, + retain: true, + release: true, + ); + +set NSMetadataQueryGatheringProgressNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSMetadataQueryGatheringProgressNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryGatheringProgressNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryIndexedLocalComputerScope', +) +external ffi.Pointer +_NSMetadataQueryIndexedLocalComputerScope; + +objc.NSString get NSMetadataQueryIndexedLocalComputerScope => + objc.NSString.fromPointer( + _NSMetadataQueryIndexedLocalComputerScope, + retain: true, + release: true, + ); + +set NSMetadataQueryIndexedLocalComputerScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryIndexedLocalComputerScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryIndexedLocalComputerScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryIndexedNetworkScope', +) +external ffi.Pointer _NSMetadataQueryIndexedNetworkScope; + +objc.NSString get NSMetadataQueryIndexedNetworkScope => + objc.NSString.fromPointer( + _NSMetadataQueryIndexedNetworkScope, + retain: true, + release: true, + ); + +set NSMetadataQueryIndexedNetworkScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryIndexedNetworkScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryIndexedNetworkScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryLocalComputerScope', +) +external ffi.Pointer _NSMetadataQueryLocalComputerScope; + +objc.NSString get NSMetadataQueryLocalComputerScope => + objc.NSString.fromPointer( + _NSMetadataQueryLocalComputerScope, + retain: true, + release: true, + ); + +set NSMetadataQueryLocalComputerScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryLocalComputerScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryLocalComputerScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryNetworkScope', +) +external ffi.Pointer _NSMetadataQueryNetworkScope; + +objc.NSString get NSMetadataQueryNetworkScope => objc.NSString.fromPointer( + _NSMetadataQueryNetworkScope, + retain: true, + release: true, +); + +set NSMetadataQueryNetworkScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryNetworkScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryNetworkScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryResultContentRelevanceAttribute', +) +external ffi.Pointer +_NSMetadataQueryResultContentRelevanceAttribute; + +objc.NSString get NSMetadataQueryResultContentRelevanceAttribute => + objc.NSString.fromPointer( + _NSMetadataQueryResultContentRelevanceAttribute, + retain: true, + release: true, + ); + +set NSMetadataQueryResultContentRelevanceAttribute(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryResultContentRelevanceAttribute, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryResultContentRelevanceAttribute = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUbiquitousDataScope', +) +external ffi.Pointer _NSMetadataQueryUbiquitousDataScope; + +objc.NSString get NSMetadataQueryUbiquitousDataScope => + objc.NSString.fromPointer( + _NSMetadataQueryUbiquitousDataScope, + retain: true, + release: true, + ); + +set NSMetadataQueryUbiquitousDataScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUbiquitousDataScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUbiquitousDataScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUbiquitousDocumentsScope', +) +external ffi.Pointer +_NSMetadataQueryUbiquitousDocumentsScope; + +objc.NSString get NSMetadataQueryUbiquitousDocumentsScope => + objc.NSString.fromPointer( + _NSMetadataQueryUbiquitousDocumentsScope, + retain: true, + release: true, + ); + +set NSMetadataQueryUbiquitousDocumentsScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUbiquitousDocumentsScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUbiquitousDocumentsScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUpdateAddedItemsKey', +) +external ffi.Pointer _NSMetadataQueryUpdateAddedItemsKey; + +objc.NSString get NSMetadataQueryUpdateAddedItemsKey => + objc.NSString.fromPointer( + _NSMetadataQueryUpdateAddedItemsKey, + retain: true, + release: true, + ); + +set NSMetadataQueryUpdateAddedItemsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUpdateAddedItemsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUpdateAddedItemsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUpdateChangedItemsKey', +) +external ffi.Pointer _NSMetadataQueryUpdateChangedItemsKey; + +objc.NSString get NSMetadataQueryUpdateChangedItemsKey => + objc.NSString.fromPointer( + _NSMetadataQueryUpdateChangedItemsKey, + retain: true, + release: true, + ); + +set NSMetadataQueryUpdateChangedItemsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUpdateChangedItemsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUpdateChangedItemsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUpdateRemovedItemsKey', +) +external ffi.Pointer _NSMetadataQueryUpdateRemovedItemsKey; + +objc.NSString get NSMetadataQueryUpdateRemovedItemsKey => + objc.NSString.fromPointer( + _NSMetadataQueryUpdateRemovedItemsKey, + retain: true, + release: true, + ); + +set NSMetadataQueryUpdateRemovedItemsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUpdateRemovedItemsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUpdateRemovedItemsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataQueryUserHomeScope', +) +external ffi.Pointer _NSMetadataQueryUserHomeScope; + +objc.NSString get NSMetadataQueryUserHomeScope => objc.NSString.fromPointer( + _NSMetadataQueryUserHomeScope, + retain: true, + release: true, +); + +set NSMetadataQueryUserHomeScope(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataQueryUserHomeScope, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataQueryUserHomeScope = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemContainerDisplayNameKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemContainerDisplayNameKey; + +objc.NSString get NSMetadataUbiquitousItemContainerDisplayNameKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemContainerDisplayNameKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemContainerDisplayNameKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemContainerDisplayNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemContainerDisplayNameKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadRequestedKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadRequestedKey; + +objc.NSString get NSMetadataUbiquitousItemDownloadRequestedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadRequestedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadRequestedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadRequestedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadRequestedKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadingErrorKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadingErrorKey; + +objc.NSString get NSMetadataUbiquitousItemDownloadingErrorKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingErrorKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadingErrorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadingErrorKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadingStatusCurrent', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadingStatusCurrent; + +objc.NSString get NSMetadataUbiquitousItemDownloadingStatusCurrent => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusCurrent, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadingStatusCurrent(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusCurrent, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadingStatusCurrent = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadingStatusDownloaded', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadingStatusDownloaded; + +objc.NSString get NSMetadataUbiquitousItemDownloadingStatusDownloaded => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusDownloaded, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadingStatusDownloaded(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusDownloaded, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadingStatusDownloaded = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadingStatusKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadingStatusKey; + +objc.NSString get NSMetadataUbiquitousItemDownloadingStatusKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadingStatusKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadingStatusKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemDownloadingStatusNotDownloaded', +) +external ffi.Pointer +_NSMetadataUbiquitousItemDownloadingStatusNotDownloaded; + +objc.NSString get NSMetadataUbiquitousItemDownloadingStatusNotDownloaded => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemDownloadingStatusNotDownloaded( + objc.NSString value, +) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemHasUnresolvedConflictsKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemHasUnresolvedConflictsKey; + +objc.NSString get NSMetadataUbiquitousItemHasUnresolvedConflictsKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemHasUnresolvedConflictsKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemHasUnresolvedConflictsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemHasUnresolvedConflictsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemHasUnresolvedConflictsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsDownloadedKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemIsDownloadedKey; + +objc.NSString get NSMetadataUbiquitousItemIsDownloadedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsDownloadedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsDownloadedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsDownloadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsDownloadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsDownloadingKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemIsDownloadingKey; + +objc.NSString get NSMetadataUbiquitousItemIsDownloadingKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsDownloadingKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsDownloadingKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsDownloadingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsDownloadingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsExternalDocumentKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemIsExternalDocumentKey; + +objc.NSString get NSMetadataUbiquitousItemIsExternalDocumentKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsExternalDocumentKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsExternalDocumentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsExternalDocumentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsExternalDocumentKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsSharedKey', +) +external ffi.Pointer _NSMetadataUbiquitousItemIsSharedKey; + +objc.NSString get NSMetadataUbiquitousItemIsSharedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsSharedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsSharedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsSharedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsSharedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsUploadedKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemIsUploadedKey; + +objc.NSString get NSMetadataUbiquitousItemIsUploadedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsUploadedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsUploadedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsUploadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsUploadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemIsUploadingKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemIsUploadingKey; + +objc.NSString get NSMetadataUbiquitousItemIsUploadingKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsUploadingKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemIsUploadingKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemIsUploadingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemIsUploadingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemPercentDownloadedKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemPercentDownloadedKey; + +objc.NSString get NSMetadataUbiquitousItemPercentDownloadedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemPercentDownloadedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemPercentDownloadedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemPercentDownloadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemPercentDownloadedKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemPercentUploadedKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemPercentUploadedKey; + +objc.NSString get NSMetadataUbiquitousItemPercentUploadedKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemPercentUploadedKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemPercentUploadedKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemPercentUploadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemPercentUploadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemURLInLocalContainerKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemURLInLocalContainerKey; + +objc.NSString get NSMetadataUbiquitousItemURLInLocalContainerKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemURLInLocalContainerKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemURLInLocalContainerKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemURLInLocalContainerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemURLInLocalContainerKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousItemUploadingErrorKey', +) +external ffi.Pointer +_NSMetadataUbiquitousItemUploadingErrorKey; + +objc.NSString get NSMetadataUbiquitousItemUploadingErrorKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemUploadingErrorKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousItemUploadingErrorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousItemUploadingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousItemUploadingErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey; + +objc.NSString get NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey( + objc.NSString value, +) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemCurrentUserRoleKey', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemCurrentUserRoleKey; + +objc.NSString get NSMetadataUbiquitousSharedItemCurrentUserRoleKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemCurrentUserRoleKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemCurrentUserRoleKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemCurrentUserRoleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemCurrentUserRoleKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey; + +objc.NSString +get NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey( + objc.NSString value, +) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemOwnerNameComponentsKey', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemOwnerNameComponentsKey; + +objc.NSString get NSMetadataUbiquitousSharedItemOwnerNameComponentsKey => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemOwnerNameComponentsKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemPermissionsReadOnly', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemPermissionsReadOnly; + +objc.NSString get NSMetadataUbiquitousSharedItemPermissionsReadOnly => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemPermissionsReadOnly, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemPermissionsReadOnly(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemPermissionsReadOnly, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemPermissionsReadOnly = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemPermissionsReadWrite', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemPermissionsReadWrite; + +objc.NSString get NSMetadataUbiquitousSharedItemPermissionsReadWrite => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemPermissionsReadWrite, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemPermissionsReadWrite(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemPermissionsReadWrite, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemPermissionsReadWrite = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemRoleOwner', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemRoleOwner; + +objc.NSString get NSMetadataUbiquitousSharedItemRoleOwner => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemRoleOwner, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemRoleOwner(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemRoleOwner, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemRoleOwner = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSMetadataUbiquitousSharedItemRoleParticipant', +) +external ffi.Pointer +_NSMetadataUbiquitousSharedItemRoleParticipant; + +objc.NSString get NSMetadataUbiquitousSharedItemRoleParticipant => + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemRoleParticipant, + retain: true, + release: true, + ); + +set NSMetadataUbiquitousSharedItemRoleParticipant(objc.NSString value) { + objc.NSString.fromPointer( + _NSMetadataUbiquitousSharedItemRoleParticipant, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMetadataUbiquitousSharedItemRoleParticipant = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSMinimumKeyValueOperator') +external NSKeyValueOperator _NSMinimumKeyValueOperator; + +DartNSKeyValueOperator get NSMinimumKeyValueOperator => + objc.NSString.fromPointer( + _NSMinimumKeyValueOperator, + retain: true, + release: true, + ); + +set NSMinimumKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSMinimumKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMinimumKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSMonthNameArray') +external ffi.Pointer _NSMonthNameArray; + +objc.NSString get NSMonthNameArray => + objc.NSString.fromPointer(_NSMonthNameArray, retain: true, release: true); + +set NSMonthNameArray(objc.NSString value) { + objc.NSString.fromPointer( + _NSMonthNameArray, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMonthNameArray = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSMorphologyAttributeName') +external NSAttributedStringKey _NSMorphologyAttributeName; + +DartNSAttributedStringKey get NSMorphologyAttributeName => + objc.NSString.fromPointer( + _NSMorphologyAttributeName, + retain: true, + release: true, + ); + +set NSMorphologyAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSMorphologyAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMorphologyAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external bool NSMouseInRect(NSPoint aPoint, NSRect aRect, bool flipped); + +@ffi.Native(symbol: 'NSMultipleUnderlyingErrorsKey') +external NSErrorUserInfoKey _NSMultipleUnderlyingErrorsKey; + +DartNSErrorUserInfoKey get NSMultipleUnderlyingErrorsKey => + objc.NSString.fromPointer( + _NSMultipleUnderlyingErrorsKey, + retain: true, + release: true, + ); + +set NSMultipleUnderlyingErrorsKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSMultipleUnderlyingErrorsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSMultipleUnderlyingErrorsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSNegateBooleanTransformerName') +external NSValueTransformerName _NSNegateBooleanTransformerName; + +DartNSValueTransformerName get NSNegateBooleanTransformerName => + objc.NSString.fromPointer( + _NSNegateBooleanTransformerName, + retain: true, + release: true, + ); + +set NSNegateBooleanTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSNegateBooleanTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNegateBooleanTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSNegativeCurrencyFormatString', +) +external ffi.Pointer _NSNegativeCurrencyFormatString; + +objc.NSString get NSNegativeCurrencyFormatString => objc.NSString.fromPointer( + _NSNegativeCurrencyFormatString, + retain: true, + release: true, +); + +set NSNegativeCurrencyFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSNegativeCurrencyFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNegativeCurrencyFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSNetServicesErrorCode') +external ffi.Pointer _NSNetServicesErrorCode; + +objc.NSString get NSNetServicesErrorCode => objc.NSString.fromPointer( + _NSNetServicesErrorCode, + retain: true, + release: true, +); + +set NSNetServicesErrorCode(objc.NSString value) { + objc.NSString.fromPointer( + _NSNetServicesErrorCode, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNetServicesErrorCode = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSNetServicesErrorDomain') +external NSErrorDomain _NSNetServicesErrorDomain; + +DartNSErrorDomain get NSNetServicesErrorDomain => objc.NSString.fromPointer( + _NSNetServicesErrorDomain, + retain: true, + release: true, +); + +set NSNetServicesErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSNetServicesErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNetServicesErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSNextDayDesignations') +external ffi.Pointer _NSNextDayDesignations; + +objc.NSString get NSNextDayDesignations => objc.NSString.fromPointer( + _NSNextDayDesignations, + retain: true, + release: true, +); + +set NSNextDayDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSNextDayDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNextDayDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer NSNextHashEnumeratorItem( + ffi.Pointer enumerator, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external bool NSNextMapEnumeratorPair( + ffi.Pointer enumerator, + ffi.Pointer> key, + ffi.Pointer> value, +); + +@ffi.Native>( + symbol: 'NSNextNextDayDesignations', +) +external ffi.Pointer _NSNextNextDayDesignations; + +objc.NSString get NSNextNextDayDesignations => objc.NSString.fromPointer( + _NSNextNextDayDesignations, + retain: true, + release: true, +); + +set NSNextNextDayDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSNextNextDayDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSNextNextDayDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final NSHashTableCallBacks NSNonOwnedPointerHashCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSNonOwnedPointerMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSNonOwnedPointerMapValueCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks; + +@ffi.Native() +external final NSHashTableCallBacks NSNonRetainedObjectHashCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSNonRetainedObjectMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSNonRetainedObjectMapValueCallBacks; + +@ffi.Native(symbol: 'NSOSStatusErrorDomain') +external NSErrorDomain _NSOSStatusErrorDomain; + +DartNSErrorDomain get NSOSStatusErrorDomain => objc.NSString.fromPointer( + _NSOSStatusErrorDomain, + retain: true, + release: true, +); + +set NSOSStatusErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSOSStatusErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSOSStatusErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final NSHashTableCallBacks NSObjectHashCallBacks; + +@ffi.Native(symbol: 'NSObjectInaccessibleException') +external NSExceptionName _NSObjectInaccessibleException; + +DartNSExceptionName get NSObjectInaccessibleException => + objc.NSString.fromPointer( + _NSObjectInaccessibleException, + retain: true, + release: true, + ); + +set NSObjectInaccessibleException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSObjectInaccessibleException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSObjectInaccessibleException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final NSMapTableKeyCallBacks NSObjectMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSObjectMapValueCallBacks; + +@ffi.Native(symbol: 'NSObjectNotAvailableException') +external NSExceptionName _NSObjectNotAvailableException; + +DartNSExceptionName get NSObjectNotAvailableException => + objc.NSString.fromPointer( + _NSObjectNotAvailableException, + retain: true, + release: true, + ); + +set NSObjectNotAvailableException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSObjectNotAvailableException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSObjectNotAvailableException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external NSRect NSOffsetRect(NSRect aRect, double dX, double dY); + +@ffi.Native(symbol: 'NSOldStyleException') +external NSExceptionName _NSOldStyleException; + +DartNSExceptionName get NSOldStyleException => objc.NSString.fromPointer( + _NSOldStyleException, + retain: true, + release: true, +); + +set NSOldStyleException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSOldStyleException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSOldStyleException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native Function()>( + symbol: 'NSOpenStepRootDirectory', +) +external ffi.Pointer _NSOpenStepRootDirectory(); + +objc.NSString NSOpenStepRootDirectory() { + return objc.NSString.fromPointer( + _NSOpenStepRootDirectory(), + retain: true, + release: true, + ); +} + +@ffi.Native>( + symbol: 'NSOperationNotSupportedForKeyException', +) +external ffi.Pointer +_NSOperationNotSupportedForKeyException; + +objc.NSString get NSOperationNotSupportedForKeyException => + objc.NSString.fromPointer( + _NSOperationNotSupportedForKeyException, + retain: true, + release: true, + ); + +set NSOperationNotSupportedForKeyException(objc.NSString value) { + objc.NSString.fromPointer( + _NSOperationNotSupportedForKeyException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSOperationNotSupportedForKeyException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final NSHashTableCallBacks NSOwnedObjectIdentityHashCallBacks; + +@ffi.Native() +external final NSHashTableCallBacks NSOwnedPointerHashCallBacks; + +@ffi.Native() +external final NSMapTableKeyCallBacks NSOwnedPointerMapKeyCallBacks; + +@ffi.Native() +external final NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks; + +@ffi.Native(symbol: 'NSPOSIXErrorDomain') +external NSErrorDomain _NSPOSIXErrorDomain; + +DartNSErrorDomain get NSPOSIXErrorDomain => + objc.NSString.fromPointer(_NSPOSIXErrorDomain, retain: true, release: true); + +set NSPOSIXErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSPOSIXErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPOSIXErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external int NSPageSize(); + +@ffi.Native(symbol: 'NSParseErrorException') +external NSExceptionName _NSParseErrorException; + +DartNSExceptionName get NSParseErrorException => objc.NSString.fromPointer( + _NSParseErrorException, + retain: true, + release: true, +); + +set NSParseErrorException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSParseErrorException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSParseErrorException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSPersianCalendar') +external ffi.Pointer _NSPersianCalendar; + +objc.NSString get NSPersianCalendar => + objc.NSString.fromPointer(_NSPersianCalendar, retain: true, release: true); + +set NSPersianCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersianCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersianCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentDelimiter', +) +external ffi.Pointer _NSPersonNameComponentDelimiter; + +objc.NSString get NSPersonNameComponentDelimiter => objc.NSString.fromPointer( + _NSPersonNameComponentDelimiter, + retain: true, + release: true, +); + +set NSPersonNameComponentDelimiter(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentDelimiter, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentDelimiter = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentFamilyName', +) +external ffi.Pointer _NSPersonNameComponentFamilyName; + +objc.NSString get NSPersonNameComponentFamilyName => objc.NSString.fromPointer( + _NSPersonNameComponentFamilyName, + retain: true, + release: true, +); + +set NSPersonNameComponentFamilyName(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentFamilyName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentFamilyName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentGivenName', +) +external ffi.Pointer _NSPersonNameComponentGivenName; + +objc.NSString get NSPersonNameComponentGivenName => objc.NSString.fromPointer( + _NSPersonNameComponentGivenName, + retain: true, + release: true, +); + +set NSPersonNameComponentGivenName(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentGivenName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentGivenName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentKey', +) +external ffi.Pointer _NSPersonNameComponentKey; + +objc.NSString get NSPersonNameComponentKey => objc.NSString.fromPointer( + _NSPersonNameComponentKey, + retain: true, + release: true, +); + +set NSPersonNameComponentKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentMiddleName', +) +external ffi.Pointer _NSPersonNameComponentMiddleName; + +objc.NSString get NSPersonNameComponentMiddleName => objc.NSString.fromPointer( + _NSPersonNameComponentMiddleName, + retain: true, + release: true, +); + +set NSPersonNameComponentMiddleName(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentMiddleName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentMiddleName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentNickname', +) +external ffi.Pointer _NSPersonNameComponentNickname; + +objc.NSString get NSPersonNameComponentNickname => objc.NSString.fromPointer( + _NSPersonNameComponentNickname, + retain: true, + release: true, +); + +set NSPersonNameComponentNickname(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentNickname, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentNickname = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentPrefix', +) +external ffi.Pointer _NSPersonNameComponentPrefix; + +objc.NSString get NSPersonNameComponentPrefix => objc.NSString.fromPointer( + _NSPersonNameComponentPrefix, + retain: true, + release: true, +); + +set NSPersonNameComponentPrefix(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentPrefix, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentPrefix = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPersonNameComponentSuffix', +) +external ffi.Pointer _NSPersonNameComponentSuffix; + +objc.NSString get NSPersonNameComponentSuffix => objc.NSString.fromPointer( + _NSPersonNameComponentSuffix, + retain: true, + release: true, +); + +set NSPersonNameComponentSuffix(objc.NSString value) { + objc.NSString.fromPointer( + _NSPersonNameComponentSuffix, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPersonNameComponentSuffix = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSPointFromString', +) +external NSPoint _NSPointFromString(ffi.Pointer aString); + +NSPoint NSPointFromString(objc.NSString aString) { + final _$$ref = aString.ref; + return _NSPointFromString(_$$ref.pointer); +} + +@ffi.Native() +external bool NSPointInRect(NSPoint aPoint, NSRect aRect); + +@ffi.Native() +external final NSHashTableCallBacks NSPointerToStructHashCallBacks; + +@ffi.Native(symbol: 'NSPortDidBecomeInvalidNotification') +external NSNotificationName _NSPortDidBecomeInvalidNotification; + +DartNSNotificationName get NSPortDidBecomeInvalidNotification => + objc.NSString.fromPointer( + _NSPortDidBecomeInvalidNotification, + retain: true, + release: true, + ); + +set NSPortDidBecomeInvalidNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSPortDidBecomeInvalidNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPortDidBecomeInvalidNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSPortReceiveException') +external NSExceptionName _NSPortReceiveException; + +DartNSExceptionName get NSPortReceiveException => objc.NSString.fromPointer( + _NSPortReceiveException, + retain: true, + release: true, +); + +set NSPortReceiveException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSPortReceiveException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPortReceiveException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSPortSendException') +external NSExceptionName _NSPortSendException; + +DartNSExceptionName get NSPortSendException => objc.NSString.fromPointer( + _NSPortSendException, + retain: true, + release: true, +); + +set NSPortSendException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSPortSendException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPortSendException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSPortTimeoutException') +external NSExceptionName _NSPortTimeoutException; + +DartNSExceptionName get NSPortTimeoutException => objc.NSString.fromPointer( + _NSPortTimeoutException, + retain: true, + release: true, +); + +set NSPortTimeoutException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSPortTimeoutException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPortTimeoutException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSPositiveCurrencyFormatString', +) +external ffi.Pointer _NSPositiveCurrencyFormatString; + +objc.NSString get NSPositiveCurrencyFormatString => objc.NSString.fromPointer( + _NSPositiveCurrencyFormatString, + retain: true, + release: true, +); + +set NSPositiveCurrencyFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSPositiveCurrencyFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPositiveCurrencyFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSPresentationIntentAttributeName') +external NSAttributedStringKey _NSPresentationIntentAttributeName; + +DartNSAttributedStringKey get NSPresentationIntentAttributeName => + objc.NSString.fromPointer( + _NSPresentationIntentAttributeName, + retain: true, + release: true, + ); + +set NSPresentationIntentAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSPresentationIntentAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPresentationIntentAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSPriorDayDesignations') +external ffi.Pointer _NSPriorDayDesignations; + +objc.NSString get NSPriorDayDesignations => objc.NSString.fromPointer( + _NSPriorDayDesignations, + retain: true, + release: true, +); + +set NSPriorDayDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSPriorDayDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSPriorDayDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProcessInfoPowerStateDidChangeNotification', +) +external NSNotificationName _NSProcessInfoPowerStateDidChangeNotification; + +DartNSNotificationName get NSProcessInfoPowerStateDidChangeNotification => + objc.NSString.fromPointer( + _NSProcessInfoPowerStateDidChangeNotification, + retain: true, + release: true, + ); + +set NSProcessInfoPowerStateDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSProcessInfoPowerStateDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProcessInfoPowerStateDidChangeNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProcessInfoThermalStateDidChangeNotification', +) +external NSNotificationName _NSProcessInfoThermalStateDidChangeNotification; + +DartNSNotificationName get NSProcessInfoThermalStateDidChangeNotification => + objc.NSString.fromPointer( + _NSProcessInfoThermalStateDidChangeNotification, + retain: true, + release: true, + ); + +set NSProcessInfoThermalStateDidChangeNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSProcessInfoThermalStateDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProcessInfoThermalStateDidChangeNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressEstimatedTimeRemainingKey', +) +external NSProgressUserInfoKey _NSProgressEstimatedTimeRemainingKey; + +DartNSProgressUserInfoKey get NSProgressEstimatedTimeRemainingKey => + objc.NSString.fromPointer( + _NSProgressEstimatedTimeRemainingKey, + retain: true, + release: true, + ); + +set NSProgressEstimatedTimeRemainingKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressEstimatedTimeRemainingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressEstimatedTimeRemainingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileAnimationImageKey') +external NSProgressUserInfoKey _NSProgressFileAnimationImageKey; + +DartNSProgressUserInfoKey get NSProgressFileAnimationImageKey => + objc.NSString.fromPointer( + _NSProgressFileAnimationImageKey, + retain: true, + release: true, + ); + +set NSProgressFileAnimationImageKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileAnimationImageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileAnimationImageKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileAnimationImageOriginalRectKey', +) +external NSProgressUserInfoKey _NSProgressFileAnimationImageOriginalRectKey; + +DartNSProgressUserInfoKey get NSProgressFileAnimationImageOriginalRectKey => + objc.NSString.fromPointer( + _NSProgressFileAnimationImageOriginalRectKey, + retain: true, + release: true, + ); + +set NSProgressFileAnimationImageOriginalRectKey( + DartNSProgressUserInfoKey value, +) { + objc.NSString.fromPointer( + _NSProgressFileAnimationImageOriginalRectKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileAnimationImageOriginalRectKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileCompletedCountKey') +external NSProgressUserInfoKey _NSProgressFileCompletedCountKey; + +DartNSProgressUserInfoKey get NSProgressFileCompletedCountKey => + objc.NSString.fromPointer( + _NSProgressFileCompletedCountKey, + retain: true, + release: true, + ); + +set NSProgressFileCompletedCountKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileCompletedCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileCompletedCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileIconKey') +external NSProgressUserInfoKey _NSProgressFileIconKey; + +DartNSProgressUserInfoKey get NSProgressFileIconKey => + objc.NSString.fromPointer( + _NSProgressFileIconKey, + retain: true, + release: true, + ); + +set NSProgressFileIconKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileIconKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileIconKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindCopying', +) +external NSProgressFileOperationKind _NSProgressFileOperationKindCopying; + +DartNSProgressFileOperationKind get NSProgressFileOperationKindCopying => + objc.NSString.fromPointer( + _NSProgressFileOperationKindCopying, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindCopying(DartNSProgressFileOperationKind value) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindCopying, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindCopying = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindDecompressingAfterDownloading', +) +external NSProgressFileOperationKind +_NSProgressFileOperationKindDecompressingAfterDownloading; + +DartNSProgressFileOperationKind +get NSProgressFileOperationKindDecompressingAfterDownloading => + objc.NSString.fromPointer( + _NSProgressFileOperationKindDecompressingAfterDownloading, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindDecompressingAfterDownloading( + DartNSProgressFileOperationKind value, +) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindDecompressingAfterDownloading, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindDecompressingAfterDownloading = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindDownloading', +) +external NSProgressFileOperationKind _NSProgressFileOperationKindDownloading; + +DartNSProgressFileOperationKind get NSProgressFileOperationKindDownloading => + objc.NSString.fromPointer( + _NSProgressFileOperationKindDownloading, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindDownloading( + DartNSProgressFileOperationKind value, +) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindDownloading, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindDownloading = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindDuplicating', +) +external NSProgressFileOperationKind _NSProgressFileOperationKindDuplicating; + +DartNSProgressFileOperationKind get NSProgressFileOperationKindDuplicating => + objc.NSString.fromPointer( + _NSProgressFileOperationKindDuplicating, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindDuplicating( + DartNSProgressFileOperationKind value, +) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindDuplicating, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindDuplicating = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileOperationKindKey') +external NSProgressUserInfoKey _NSProgressFileOperationKindKey; + +DartNSProgressUserInfoKey get NSProgressFileOperationKindKey => + objc.NSString.fromPointer( + _NSProgressFileOperationKindKey, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindReceiving', +) +external NSProgressFileOperationKind _NSProgressFileOperationKindReceiving; + +DartNSProgressFileOperationKind get NSProgressFileOperationKindReceiving => + objc.NSString.fromPointer( + _NSProgressFileOperationKindReceiving, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindReceiving( + DartNSProgressFileOperationKind value, +) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindReceiving, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindReceiving = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSProgressFileOperationKindUploading', +) +external NSProgressFileOperationKind _NSProgressFileOperationKindUploading; + +DartNSProgressFileOperationKind get NSProgressFileOperationKindUploading => + objc.NSString.fromPointer( + _NSProgressFileOperationKindUploading, + retain: true, + release: true, + ); + +set NSProgressFileOperationKindUploading( + DartNSProgressFileOperationKind value, +) { + objc.NSString.fromPointer( + _NSProgressFileOperationKindUploading, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileOperationKindUploading = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileTotalCountKey') +external NSProgressUserInfoKey _NSProgressFileTotalCountKey; + +DartNSProgressUserInfoKey get NSProgressFileTotalCountKey => + objc.NSString.fromPointer( + _NSProgressFileTotalCountKey, + retain: true, + release: true, + ); + +set NSProgressFileTotalCountKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileTotalCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileTotalCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressFileURLKey') +external NSProgressUserInfoKey _NSProgressFileURLKey; + +DartNSProgressUserInfoKey get NSProgressFileURLKey => objc.NSString.fromPointer( + _NSProgressFileURLKey, + retain: true, + release: true, +); + +set NSProgressFileURLKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressFileURLKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressFileURLKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressKindFile') +external NSProgressKind _NSProgressKindFile; + +DartNSProgressKind get NSProgressKindFile => + objc.NSString.fromPointer(_NSProgressKindFile, retain: true, release: true); + +set NSProgressKindFile(DartNSProgressKind value) { + objc.NSString.fromPointer( + _NSProgressKindFile, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressKindFile = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSProgressThroughputKey') +external NSProgressUserInfoKey _NSProgressThroughputKey; + +DartNSProgressUserInfoKey get NSProgressThroughputKey => + objc.NSString.fromPointer( + _NSProgressThroughputKey, + retain: true, + release: true, + ); + +set NSProgressThroughputKey(DartNSProgressUserInfoKey value) { + objc.NSString.fromPointer( + _NSProgressThroughputKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSProgressThroughputKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSProtocolFromString') +external ffi.Pointer _NSProtocolFromString( + ffi.Pointer namestr, +); + +objc.Protocol? NSProtocolFromString(objc.NSString namestr) { + final _$$ref = namestr.ref; + return _NSProtocolFromString(_$$ref.pointer).address == 0 + ? null + : objc.Protocol.fromPointer( + _NSProtocolFromString(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSRangeException') +external NSExceptionName _NSRangeException; + +DartNSExceptionName get NSRangeException => + objc.NSString.fromPointer(_NSRangeException, retain: true, release: true); + +set NSRangeException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSRangeException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSRangeException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSRangeFromString', +) +external NSRange _NSRangeFromString(ffi.Pointer aString); + +NSRange NSRangeFromString(objc.NSString aString) { + final _$$ref = aString.ref; + return _NSRangeFromString(_$$ref.pointer); +} + +@Deprecated('Use NSProcessInfo instead') +@ffi.Native() +external int NSRealMemoryAvailable(); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, NSUInteger, NSUInteger) +>() +external ffi.Pointer NSReallocateCollectable( + ffi.Pointer ptr, + int size, + int options, +); + +@ffi.Native(symbol: 'NSRecoveryAttempterErrorKey') +external NSErrorUserInfoKey _NSRecoveryAttempterErrorKey; + +DartNSErrorUserInfoKey get NSRecoveryAttempterErrorKey => + objc.NSString.fromPointer( + _NSRecoveryAttempterErrorKey, + retain: true, + release: true, + ); + +set NSRecoveryAttempterErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSRecoveryAttempterErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSRecoveryAttempterErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSRectFromString', +) +external NSRect _NSRectFromString(ffi.Pointer aString); + +NSRect NSRectFromString(objc.NSString aString) { + final _$$ref = aString.ref; + return _NSRectFromString(_$$ref.pointer); +} + +@ffi.Native)>() +external void NSRecycleZone(ffi.Pointer zone); + +@ffi.Native>(symbol: 'NSRegistrationDomain') +external ffi.Pointer _NSRegistrationDomain; + +objc.NSString get NSRegistrationDomain => objc.NSString.fromPointer( + _NSRegistrationDomain, + retain: true, + release: true, +); + +set NSRegistrationDomain(objc.NSString value) { + objc.NSString.fromPointer( + _NSRegistrationDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSRegistrationDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSReplacementIndexAttributeName') +external NSAttributedStringKey _NSReplacementIndexAttributeName; + +DartNSAttributedStringKey get NSReplacementIndexAttributeName => + objc.NSString.fromPointer( + _NSReplacementIndexAttributeName, + retain: true, + release: true, + ); + +set NSReplacementIndexAttributeName(DartNSAttributedStringKey value) { + objc.NSString.fromPointer( + _NSReplacementIndexAttributeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSReplacementIndexAttributeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSRepublicOfChinaCalendar', +) +external ffi.Pointer _NSRepublicOfChinaCalendar; + +objc.NSString get NSRepublicOfChinaCalendar => objc.NSString.fromPointer( + _NSRepublicOfChinaCalendar, + retain: true, + release: true, +); + +set NSRepublicOfChinaCalendar(objc.NSString value) { + objc.NSString.fromPointer( + _NSRepublicOfChinaCalendar, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSRepublicOfChinaCalendar = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native)>( + symbol: 'NSResetHashTable', +) +external void _NSResetHashTable(ffi.Pointer table); + +void NSResetHashTable(NSHashTable table) { + final _$$ref = table.ref; + return _NSResetHashTable(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'NSResetMapTable', +) +external void _NSResetMapTable(ffi.Pointer table); + +void NSResetMapTable(NSMapTable table) { + final _$$ref = table.ref; + return _NSResetMapTable(_$$ref.pointer); +} + +@ffi.Native() +external int NSRoundDownToMultipleOfPageSize(int bytes); + +@ffi.Native() +external int NSRoundUpToMultipleOfPageSize(int bytes); + +@ffi.Native(symbol: 'NSRunLoopCommonModes') +external NSRunLoopMode _NSRunLoopCommonModes; + +DartNSRunLoopMode get NSRunLoopCommonModes => objc.NSString.fromPointer( + _NSRunLoopCommonModes, + retain: true, + release: true, +); + +set NSRunLoopCommonModes(DartNSRunLoopMode value) { + objc.NSString.fromPointer( + _NSRunLoopCommonModes, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSRunLoopCommonModes = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(NSUInteger, NSUInteger, ffi.Bool) +>(symbol: 'NSSearchPathForDirectoriesInDomains') +external ffi.Pointer _NSSearchPathForDirectoriesInDomains( + int directory, + int domainMask, + bool expandTilde, +); + +objc.NSArray NSSearchPathForDirectoriesInDomains( + NSSearchPathDirectory directory, + DartNSUInteger domainMask, + bool expandTilde, +) { + return objc.NSArray.fromPointer( + _NSSearchPathForDirectoriesInDomains( + directory.value, + domainMask, + expandTilde, + ), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'NSSecureUnarchiveFromDataTransformerName', +) +external NSValueTransformerName _NSSecureUnarchiveFromDataTransformerName; + +DartNSValueTransformerName get NSSecureUnarchiveFromDataTransformerName => + objc.NSString.fromPointer( + _NSSecureUnarchiveFromDataTransformerName, + retain: true, + release: true, + ); + +set NSSecureUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSSecureUnarchiveFromDataTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSSecureUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSSelectorFromString') +external ffi.Pointer _NSSelectorFromString( + ffi.Pointer aSelectorName, +); + +ffi.Pointer NSSelectorFromString( + objc.NSString aSelectorName, +) { + final _$$ref = aSelectorName.ref; + return _NSSelectorFromString(_$$ref.pointer); +} + +@ffi.Native)>() +external void NSSetUncaughtExceptionHandler( + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSSetZoneName') +external void _NSSetZoneName( + ffi.Pointer zone, + ffi.Pointer name, +); + +void NSSetZoneName(ffi.Pointer zone, objc.NSString name) { + final _$$ref = name.ref; + return _NSSetZoneName(zone, _$$ref.pointer); +} + +@ffi.Native>(symbol: 'NSShortDateFormatString') +external ffi.Pointer _NSShortDateFormatString; + +objc.NSString get NSShortDateFormatString => objc.NSString.fromPointer( + _NSShortDateFormatString, + retain: true, + release: true, +); + +set NSShortDateFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSShortDateFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSShortDateFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSShortMonthNameArray') +external ffi.Pointer _NSShortMonthNameArray; + +objc.NSString get NSShortMonthNameArray => objc.NSString.fromPointer( + _NSShortMonthNameArray, + retain: true, + release: true, +); + +set NSShortMonthNameArray(objc.NSString value) { + objc.NSString.fromPointer( + _NSShortMonthNameArray, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSShortMonthNameArray = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSShortTimeDateFormatString', +) +external ffi.Pointer _NSShortTimeDateFormatString; + +objc.NSString get NSShortTimeDateFormatString => objc.NSString.fromPointer( + _NSShortTimeDateFormatString, + retain: true, + release: true, +); + +set NSShortTimeDateFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSShortTimeDateFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSShortTimeDateFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSShortWeekDayNameArray') +external ffi.Pointer _NSShortWeekDayNameArray; + +objc.NSString get NSShortWeekDayNameArray => objc.NSString.fromPointer( + _NSShortWeekDayNameArray, + retain: true, + release: true, +); + +set NSShortWeekDayNameArray(objc.NSString value) { + objc.NSString.fromPointer( + _NSShortWeekDayNameArray, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSShortWeekDayNameArray = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'NSShouldRetainWithZone') +external bool _NSShouldRetainWithZone( + ffi.Pointer anObject, + ffi.Pointer requestedZone, +); + +bool NSShouldRetainWithZone( + objc.ObjCObject anObject, + ffi.Pointer requestedZone, +) { + final _$$ref = anObject.ref; + return _NSShouldRetainWithZone(_$$ref.pointer, requestedZone); +} + +@ffi.Native)>( + symbol: 'NSSizeFromString', +) +external NSSize _NSSizeFromString(ffi.Pointer aString); + +NSSize NSSizeFromString(objc.NSString aString) { + final _$$ref = aString.ref; + return _NSSizeFromString(_$$ref.pointer); +} + +@ffi.Native(symbol: 'NSStreamDataWrittenToMemoryStreamKey') +external NSStreamPropertyKey _NSStreamDataWrittenToMemoryStreamKey; + +DartNSStreamPropertyKey get NSStreamDataWrittenToMemoryStreamKey => + objc.NSString.fromPointer( + _NSStreamDataWrittenToMemoryStreamKey, + retain: true, + release: true, + ); + +set NSStreamDataWrittenToMemoryStreamKey(DartNSStreamPropertyKey value) { + objc.NSString.fromPointer( + _NSStreamDataWrittenToMemoryStreamKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamDataWrittenToMemoryStreamKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamFileCurrentOffsetKey') +external NSStreamPropertyKey _NSStreamFileCurrentOffsetKey; + +DartNSStreamPropertyKey get NSStreamFileCurrentOffsetKey => + objc.NSString.fromPointer( + _NSStreamFileCurrentOffsetKey, + retain: true, + release: true, + ); + +set NSStreamFileCurrentOffsetKey(DartNSStreamPropertyKey value) { + objc.NSString.fromPointer( + _NSStreamFileCurrentOffsetKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamFileCurrentOffsetKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamNetworkServiceType') +external NSStreamPropertyKey _NSStreamNetworkServiceType; + +DartNSStreamPropertyKey get NSStreamNetworkServiceType => + objc.NSString.fromPointer( + _NSStreamNetworkServiceType, + retain: true, + release: true, + ); + +set NSStreamNetworkServiceType(DartNSStreamPropertyKey value) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceType, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceType = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamNetworkServiceTypeBackground', +) +external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeBackground; + +DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeBackground => + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeBackground, + retain: true, + release: true, + ); + +set NSStreamNetworkServiceTypeBackground( + DartNSStreamNetworkServiceTypeValue value, +) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeBackground, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceTypeBackground = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamNetworkServiceTypeCallSignaling', +) +external NSStreamNetworkServiceTypeValue +_NSStreamNetworkServiceTypeCallSignaling; + +DartNSStreamNetworkServiceTypeValue +get NSStreamNetworkServiceTypeCallSignaling => objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeCallSignaling, + retain: true, + release: true, +); + +set NSStreamNetworkServiceTypeCallSignaling( + DartNSStreamNetworkServiceTypeValue value, +) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeCallSignaling, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceTypeCallSignaling = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamNetworkServiceTypeVideo', +) +external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVideo; + +DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVideo => + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVideo, + retain: true, + release: true, + ); + +set NSStreamNetworkServiceTypeVideo(DartNSStreamNetworkServiceTypeValue value) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVideo, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceTypeVideo = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamNetworkServiceTypeVoIP', +) +external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVoIP; + +DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVoIP => + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVoIP, + retain: true, + release: true, + ); + +set NSStreamNetworkServiceTypeVoIP(DartNSStreamNetworkServiceTypeValue value) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVoIP, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceTypeVoIP = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamNetworkServiceTypeVoice', +) +external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVoice; + +DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVoice => + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVoice, + retain: true, + release: true, + ); + +set NSStreamNetworkServiceTypeVoice(DartNSStreamNetworkServiceTypeValue value) { + objc.NSString.fromPointer( + _NSStreamNetworkServiceTypeVoice, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamNetworkServiceTypeVoice = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSOCKSErrorDomain') +external NSErrorDomain _NSStreamSOCKSErrorDomain; + +DartNSErrorDomain get NSStreamSOCKSErrorDomain => objc.NSString.fromPointer( + _NSStreamSOCKSErrorDomain, + retain: true, + release: true, +); + +set NSStreamSOCKSErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSStreamSOCKSErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSOCKSProxyConfigurationKey') +external NSStreamPropertyKey _NSStreamSOCKSProxyConfigurationKey; + +DartNSStreamPropertyKey get NSStreamSOCKSProxyConfigurationKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyConfigurationKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyConfigurationKey(DartNSStreamPropertyKey value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyConfigurationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyConfigurationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSOCKSProxyHostKey', +) +external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyHostKey; + +DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyHostKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyHostKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyHostKey(DartNSStreamSOCKSProxyConfiguration value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyHostKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyHostKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSOCKSProxyPasswordKey', +) +external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyPasswordKey; + +DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyPasswordKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyPasswordKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyPasswordKey(DartNSStreamSOCKSProxyConfiguration value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyPasswordKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyPasswordKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSOCKSProxyPortKey', +) +external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyPortKey; + +DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyPortKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyPortKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyPortKey(DartNSStreamSOCKSProxyConfiguration value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyPortKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyPortKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSOCKSProxyUserKey', +) +external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyUserKey; + +DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyUserKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyUserKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyUserKey(DartNSStreamSOCKSProxyConfiguration value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyUserKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyUserKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSOCKSProxyVersion4') +external NSStreamSOCKSProxyVersion _NSStreamSOCKSProxyVersion4; + +DartNSStreamSOCKSProxyVersion get NSStreamSOCKSProxyVersion4 => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersion4, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyVersion4(DartNSStreamSOCKSProxyVersion value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersion4, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyVersion4 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSOCKSProxyVersion5') +external NSStreamSOCKSProxyVersion _NSStreamSOCKSProxyVersion5; + +DartNSStreamSOCKSProxyVersion get NSStreamSOCKSProxyVersion5 => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersion5, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyVersion5(DartNSStreamSOCKSProxyVersion value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersion5, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyVersion5 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSOCKSProxyVersionKey', +) +external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyVersionKey; + +DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyVersionKey => + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersionKey, + retain: true, + release: true, + ); + +set NSStreamSOCKSProxyVersionKey(DartNSStreamSOCKSProxyConfiguration value) { + objc.NSString.fromPointer( + _NSStreamSOCKSProxyVersionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSOCKSProxyVersionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSocketSSLErrorDomain') +external NSErrorDomain _NSStreamSocketSSLErrorDomain; + +DartNSErrorDomain get NSStreamSocketSSLErrorDomain => objc.NSString.fromPointer( + _NSStreamSocketSSLErrorDomain, + retain: true, + release: true, +); + +set NSStreamSocketSSLErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSStreamSocketSSLErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSSLErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStreamSocketSecurityLevelKey') +external NSStreamPropertyKey _NSStreamSocketSecurityLevelKey; + +DartNSStreamPropertyKey get NSStreamSocketSecurityLevelKey => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelKey, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelKey(DartNSStreamPropertyKey value) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSocketSecurityLevelNegotiatedSSL', +) +external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelNegotiatedSSL; + +DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelNegotiatedSSL => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelNegotiatedSSL, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelNegotiatedSSL( + DartNSStreamSocketSecurityLevel value, +) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelNegotiatedSSL, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelNegotiatedSSL = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSocketSecurityLevelNone', +) +external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelNone; + +DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelNone => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelNone, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelNone(DartNSStreamSocketSecurityLevel value) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelNone, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelNone = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSocketSecurityLevelSSLv2', +) +external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelSSLv2; + +DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelSSLv2 => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelSSLv2, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelSSLv2(DartNSStreamSocketSecurityLevel value) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelSSLv2, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelSSLv2 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSocketSecurityLevelSSLv3', +) +external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelSSLv3; + +DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelSSLv3 => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelSSLv3, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelSSLv3(DartNSStreamSocketSecurityLevel value) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelSSLv3, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelSSLv3 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStreamSocketSecurityLevelTLSv1', +) +external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelTLSv1; + +DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelTLSv1 => + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelTLSv1, + retain: true, + release: true, + ); + +set NSStreamSocketSecurityLevelTLSv1(DartNSStreamSocketSecurityLevel value) { + objc.NSString.fromPointer( + _NSStreamSocketSecurityLevelTLSv1, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStreamSocketSecurityLevelTLSv1 = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionAllowLossyKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionAllowLossyKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionAllowLossyKey => objc.NSString.fromPointer( + _NSStringEncodingDetectionAllowLossyKey, + retain: true, + release: true, +); + +set NSStringEncodingDetectionAllowLossyKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionAllowLossyKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionAllowLossyKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionDisallowedEncodingsKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionDisallowedEncodingsKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionDisallowedEncodingsKey => + objc.NSString.fromPointer( + _NSStringEncodingDetectionDisallowedEncodingsKey, + retain: true, + release: true, + ); + +set NSStringEncodingDetectionDisallowedEncodingsKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionDisallowedEncodingsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionDisallowedEncodingsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionFromWindowsKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionFromWindowsKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionFromWindowsKey => objc.NSString.fromPointer( + _NSStringEncodingDetectionFromWindowsKey, + retain: true, + release: true, +); + +set NSStringEncodingDetectionFromWindowsKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionFromWindowsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionFromWindowsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionLikelyLanguageKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionLikelyLanguageKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionLikelyLanguageKey => objc.NSString.fromPointer( + _NSStringEncodingDetectionLikelyLanguageKey, + retain: true, + release: true, +); + +set NSStringEncodingDetectionLikelyLanguageKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionLikelyLanguageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionLikelyLanguageKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionLossySubstitutionKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionLossySubstitutionKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionLossySubstitutionKey => objc.NSString.fromPointer( + _NSStringEncodingDetectionLossySubstitutionKey, + retain: true, + release: true, +); + +set NSStringEncodingDetectionLossySubstitutionKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionLossySubstitutionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionLossySubstitutionKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionSuggestedEncodingsKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionSuggestedEncodingsKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionSuggestedEncodingsKey => objc.NSString.fromPointer( + _NSStringEncodingDetectionSuggestedEncodingsKey, + retain: true, + release: true, +); + +set NSStringEncodingDetectionSuggestedEncodingsKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionSuggestedEncodingsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionSuggestedEncodingsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSStringEncodingDetectionUseOnlySuggestedEncodingsKey', +) +external NSStringEncodingDetectionOptionsKey +_NSStringEncodingDetectionUseOnlySuggestedEncodingsKey; + +DartNSStringEncodingDetectionOptionsKey +get NSStringEncodingDetectionUseOnlySuggestedEncodingsKey => + objc.NSString.fromPointer( + _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey, + retain: true, + release: true, + ); + +set NSStringEncodingDetectionUseOnlySuggestedEncodingsKey( + DartNSStringEncodingDetectionOptionsKey value, +) { + objc.NSString.fromPointer( + _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringEncodingErrorKey') +external NSErrorUserInfoKey _NSStringEncodingErrorKey; + +DartNSErrorUserInfoKey get NSStringEncodingErrorKey => + objc.NSString.fromPointer( + _NSStringEncodingErrorKey, + retain: true, + release: true, + ); + +set NSStringEncodingErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSStringEncodingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringEncodingErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSStringFromClass') +external ffi.Pointer _NSStringFromClass( + ffi.Pointer aClass, +); + +objc.NSString NSStringFromClass(objc.ObjCObject aClass) { + final _$$ref = aClass.ref; + return objc.NSString.fromPointer( + _NSStringFromClass(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSStringFromHashTable') +external ffi.Pointer _NSStringFromHashTable( + ffi.Pointer table, +); + +objc.NSString NSStringFromHashTable(NSHashTable table) { + final _$$ref = table.ref; + return objc.NSString.fromPointer( + _NSStringFromHashTable(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSStringFromMapTable') +external ffi.Pointer _NSStringFromMapTable( + ffi.Pointer table, +); + +objc.NSString NSStringFromMapTable(NSMapTable table) { + final _$$ref = table.ref; + return objc.NSString.fromPointer( + _NSStringFromMapTable(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native Function(NSPoint)>( + symbol: 'NSStringFromPoint', +) +external ffi.Pointer _NSStringFromPoint(NSPoint aPoint); + +objc.NSString NSStringFromPoint(NSPoint aPoint) { + return objc.NSString.fromPointer( + _NSStringFromPoint(aPoint), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSStringFromProtocol') +external ffi.Pointer _NSStringFromProtocol( + ffi.Pointer proto, +); + +objc.NSString NSStringFromProtocol(objc.Protocol proto) { + final _$$ref = proto.ref; + return objc.NSString.fromPointer( + _NSStringFromProtocol(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native Function(NSRange)>( + symbol: 'NSStringFromRange', +) +external ffi.Pointer _NSStringFromRange(NSRange range); + +objc.NSString NSStringFromRange(NSRange range) { + return objc.NSString.fromPointer( + _NSStringFromRange(range), + retain: true, + release: true, + ); +} + +@ffi.Native Function(NSRect)>( + symbol: 'NSStringFromRect', +) +external ffi.Pointer _NSStringFromRect(NSRect aRect); + +objc.NSString NSStringFromRect(NSRect aRect) { + return objc.NSString.fromPointer( + _NSStringFromRect(aRect), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NSStringFromSelector') +external ffi.Pointer _NSStringFromSelector( + ffi.Pointer aSelector, +); + +objc.NSString NSStringFromSelector(ffi.Pointer aSelector) { + return objc.NSString.fromPointer( + _NSStringFromSelector(aSelector), + retain: true, + release: true, + ); +} + +@ffi.Native Function(NSSize)>( + symbol: 'NSStringFromSize', +) +external ffi.Pointer _NSStringFromSize(NSSize aSize); + +objc.NSString NSStringFromSize(NSSize aSize) { + return objc.NSString.fromPointer( + _NSStringFromSize(aSize), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSStringTransformFullwidthToHalfwidth') +external NSStringTransform _NSStringTransformFullwidthToHalfwidth; + +DartNSStringTransform get NSStringTransformFullwidthToHalfwidth => + objc.NSString.fromPointer( + _NSStringTransformFullwidthToHalfwidth, + retain: true, + release: true, + ); + +set NSStringTransformFullwidthToHalfwidth(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformFullwidthToHalfwidth, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformFullwidthToHalfwidth = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformHiraganaToKatakana') +external NSStringTransform _NSStringTransformHiraganaToKatakana; + +DartNSStringTransform get NSStringTransformHiraganaToKatakana => + objc.NSString.fromPointer( + _NSStringTransformHiraganaToKatakana, + retain: true, + release: true, + ); + +set NSStringTransformHiraganaToKatakana(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformHiraganaToKatakana, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformHiraganaToKatakana = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToArabic') +external NSStringTransform _NSStringTransformLatinToArabic; + +DartNSStringTransform get NSStringTransformLatinToArabic => + objc.NSString.fromPointer( + _NSStringTransformLatinToArabic, + retain: true, + release: true, + ); + +set NSStringTransformLatinToArabic(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToArabic, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToArabic = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToCyrillic') +external NSStringTransform _NSStringTransformLatinToCyrillic; + +DartNSStringTransform get NSStringTransformLatinToCyrillic => + objc.NSString.fromPointer( + _NSStringTransformLatinToCyrillic, + retain: true, + release: true, + ); + +set NSStringTransformLatinToCyrillic(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToCyrillic, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToCyrillic = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToGreek') +external NSStringTransform _NSStringTransformLatinToGreek; + +DartNSStringTransform get NSStringTransformLatinToGreek => + objc.NSString.fromPointer( + _NSStringTransformLatinToGreek, + retain: true, + release: true, + ); + +set NSStringTransformLatinToGreek(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToGreek, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToGreek = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToHangul') +external NSStringTransform _NSStringTransformLatinToHangul; + +DartNSStringTransform get NSStringTransformLatinToHangul => + objc.NSString.fromPointer( + _NSStringTransformLatinToHangul, + retain: true, + release: true, + ); + +set NSStringTransformLatinToHangul(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToHangul, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToHangul = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToHebrew') +external NSStringTransform _NSStringTransformLatinToHebrew; + +DartNSStringTransform get NSStringTransformLatinToHebrew => + objc.NSString.fromPointer( + _NSStringTransformLatinToHebrew, + retain: true, + release: true, + ); + +set NSStringTransformLatinToHebrew(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToHebrew, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToHebrew = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToHiragana') +external NSStringTransform _NSStringTransformLatinToHiragana; + +DartNSStringTransform get NSStringTransformLatinToHiragana => + objc.NSString.fromPointer( + _NSStringTransformLatinToHiragana, + retain: true, + release: true, + ); + +set NSStringTransformLatinToHiragana(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToHiragana, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToHiragana = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToKatakana') +external NSStringTransform _NSStringTransformLatinToKatakana; + +DartNSStringTransform get NSStringTransformLatinToKatakana => + objc.NSString.fromPointer( + _NSStringTransformLatinToKatakana, + retain: true, + release: true, + ); + +set NSStringTransformLatinToKatakana(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToKatakana, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToKatakana = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformLatinToThai') +external NSStringTransform _NSStringTransformLatinToThai; + +DartNSStringTransform get NSStringTransformLatinToThai => + objc.NSString.fromPointer( + _NSStringTransformLatinToThai, + retain: true, + release: true, + ); + +set NSStringTransformLatinToThai(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformLatinToThai, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformLatinToThai = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformMandarinToLatin') +external NSStringTransform _NSStringTransformMandarinToLatin; + +DartNSStringTransform get NSStringTransformMandarinToLatin => + objc.NSString.fromPointer( + _NSStringTransformMandarinToLatin, + retain: true, + release: true, + ); + +set NSStringTransformMandarinToLatin(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformMandarinToLatin, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformMandarinToLatin = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformStripCombiningMarks') +external NSStringTransform _NSStringTransformStripCombiningMarks; + +DartNSStringTransform get NSStringTransformStripCombiningMarks => + objc.NSString.fromPointer( + _NSStringTransformStripCombiningMarks, + retain: true, + release: true, + ); + +set NSStringTransformStripCombiningMarks(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformStripCombiningMarks, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformStripCombiningMarks = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformStripDiacritics') +external NSStringTransform _NSStringTransformStripDiacritics; + +DartNSStringTransform get NSStringTransformStripDiacritics => + objc.NSString.fromPointer( + _NSStringTransformStripDiacritics, + retain: true, + release: true, + ); + +set NSStringTransformStripDiacritics(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformStripDiacritics, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformStripDiacritics = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformToLatin') +external NSStringTransform _NSStringTransformToLatin; + +DartNSStringTransform get NSStringTransformToLatin => objc.NSString.fromPointer( + _NSStringTransformToLatin, + retain: true, + release: true, +); + +set NSStringTransformToLatin(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformToLatin, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformToLatin = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformToUnicodeName') +external NSStringTransform _NSStringTransformToUnicodeName; + +DartNSStringTransform get NSStringTransformToUnicodeName => + objc.NSString.fromPointer( + _NSStringTransformToUnicodeName, + retain: true, + release: true, + ); + +set NSStringTransformToUnicodeName(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformToUnicodeName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformToUnicodeName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSStringTransformToXMLHex') +external NSStringTransform _NSStringTransformToXMLHex; + +DartNSStringTransform get NSStringTransformToXMLHex => + objc.NSString.fromPointer( + _NSStringTransformToXMLHex, + retain: true, + release: true, + ); + +set NSStringTransformToXMLHex(DartNSStringTransform value) { + objc.NSString.fromPointer( + _NSStringTransformToXMLHex, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSStringTransformToXMLHex = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSSumKeyValueOperator') +external NSKeyValueOperator _NSSumKeyValueOperator; + +DartNSKeyValueOperator get NSSumKeyValueOperator => objc.NSString.fromPointer( + _NSSumKeyValueOperator, + retain: true, + release: true, +); + +set NSSumKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSSumKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSSumKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSSystemClockDidChangeNotification') +external NSNotificationName _NSSystemClockDidChangeNotification; + +DartNSNotificationName get NSSystemClockDidChangeNotification => + objc.NSString.fromPointer( + _NSSystemClockDidChangeNotification, + retain: true, + release: true, + ); + +set NSSystemClockDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSSystemClockDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSSystemClockDidChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSSystemTimeZoneDidChangeNotification') +external NSNotificationName _NSSystemTimeZoneDidChangeNotification; + +DartNSNotificationName get NSSystemTimeZoneDidChangeNotification => + objc.NSString.fromPointer( + _NSSystemTimeZoneDidChangeNotification, + retain: true, + release: true, + ); + +set NSSystemTimeZoneDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSSystemTimeZoneDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSSystemTimeZoneDidChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTaskDidTerminateNotification') +external NSNotificationName _NSTaskDidTerminateNotification; + +DartNSNotificationName get NSTaskDidTerminateNotification => + objc.NSString.fromPointer( + _NSTaskDidTerminateNotification, + retain: true, + release: true, + ); + +set NSTaskDidTerminateNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSTaskDidTerminateNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTaskDidTerminateNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native Function()>( + symbol: 'NSTemporaryDirectory', +) +external ffi.Pointer _NSTemporaryDirectory(); + +objc.NSString NSTemporaryDirectory() { + return objc.NSString.fromPointer( + _NSTemporaryDirectory(), + retain: true, + release: true, + ); +} + +@ffi.Native(symbol: 'NSTextCheckingAirlineKey') +external NSTextCheckingKey _NSTextCheckingAirlineKey; + +DartNSTextCheckingKey get NSTextCheckingAirlineKey => objc.NSString.fromPointer( + _NSTextCheckingAirlineKey, + retain: true, + release: true, +); + +set NSTextCheckingAirlineKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingAirlineKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingAirlineKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingCityKey') +external NSTextCheckingKey _NSTextCheckingCityKey; + +DartNSTextCheckingKey get NSTextCheckingCityKey => objc.NSString.fromPointer( + _NSTextCheckingCityKey, + retain: true, + release: true, +); + +set NSTextCheckingCityKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingCityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingCityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingCountryKey') +external NSTextCheckingKey _NSTextCheckingCountryKey; + +DartNSTextCheckingKey get NSTextCheckingCountryKey => objc.NSString.fromPointer( + _NSTextCheckingCountryKey, + retain: true, + release: true, +); + +set NSTextCheckingCountryKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingCountryKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingCountryKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingFlightKey') +external NSTextCheckingKey _NSTextCheckingFlightKey; + +DartNSTextCheckingKey get NSTextCheckingFlightKey => objc.NSString.fromPointer( + _NSTextCheckingFlightKey, + retain: true, + release: true, +); + +set NSTextCheckingFlightKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingFlightKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingFlightKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingJobTitleKey') +external NSTextCheckingKey _NSTextCheckingJobTitleKey; + +DartNSTextCheckingKey get NSTextCheckingJobTitleKey => + objc.NSString.fromPointer( + _NSTextCheckingJobTitleKey, + retain: true, + release: true, + ); + +set NSTextCheckingJobTitleKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingJobTitleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingJobTitleKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingNameKey') +external NSTextCheckingKey _NSTextCheckingNameKey; + +DartNSTextCheckingKey get NSTextCheckingNameKey => objc.NSString.fromPointer( + _NSTextCheckingNameKey, + retain: true, + release: true, +); + +set NSTextCheckingNameKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingOrganizationKey') +external NSTextCheckingKey _NSTextCheckingOrganizationKey; + +DartNSTextCheckingKey get NSTextCheckingOrganizationKey => + objc.NSString.fromPointer( + _NSTextCheckingOrganizationKey, + retain: true, + release: true, + ); + +set NSTextCheckingOrganizationKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingOrganizationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingOrganizationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingPhoneKey') +external NSTextCheckingKey _NSTextCheckingPhoneKey; + +DartNSTextCheckingKey get NSTextCheckingPhoneKey => objc.NSString.fromPointer( + _NSTextCheckingPhoneKey, + retain: true, + release: true, +); + +set NSTextCheckingPhoneKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingPhoneKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingPhoneKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingStateKey') +external NSTextCheckingKey _NSTextCheckingStateKey; + +DartNSTextCheckingKey get NSTextCheckingStateKey => objc.NSString.fromPointer( + _NSTextCheckingStateKey, + retain: true, + release: true, +); + +set NSTextCheckingStateKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingStateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingStateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingStreetKey') +external NSTextCheckingKey _NSTextCheckingStreetKey; + +DartNSTextCheckingKey get NSTextCheckingStreetKey => objc.NSString.fromPointer( + _NSTextCheckingStreetKey, + retain: true, + release: true, +); + +set NSTextCheckingStreetKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingStreetKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingStreetKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSTextCheckingZIPKey') +external NSTextCheckingKey _NSTextCheckingZIPKey; + +DartNSTextCheckingKey get NSTextCheckingZIPKey => objc.NSString.fromPointer( + _NSTextCheckingZIPKey, + retain: true, + release: true, +); + +set NSTextCheckingZIPKey(DartNSTextCheckingKey value) { + objc.NSString.fromPointer( + _NSTextCheckingZIPKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTextCheckingZIPKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSThisDayDesignations') +external ffi.Pointer _NSThisDayDesignations; + +objc.NSString get NSThisDayDesignations => objc.NSString.fromPointer( + _NSThisDayDesignations, + retain: true, + release: true, +); + +set NSThisDayDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSThisDayDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSThisDayDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSThousandsSeparator') +external ffi.Pointer _NSThousandsSeparator; + +objc.NSString get NSThousandsSeparator => objc.NSString.fromPointer( + _NSThousandsSeparator, + retain: true, + release: true, +); + +set NSThousandsSeparator(objc.NSString value) { + objc.NSString.fromPointer( + _NSThousandsSeparator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSThousandsSeparator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSThreadWillExitNotification') +external NSNotificationName _NSThreadWillExitNotification; + +DartNSNotificationName get NSThreadWillExitNotification => + objc.NSString.fromPointer( + _NSThreadWillExitNotification, + retain: true, + release: true, + ); + +set NSThreadWillExitNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSThreadWillExitNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSThreadWillExitNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSThumbnail1024x1024SizeKey') +external NSURLThumbnailDictionaryItem _NSThumbnail1024x1024SizeKey; + +DartNSURLThumbnailDictionaryItem get NSThumbnail1024x1024SizeKey => + objc.NSString.fromPointer( + _NSThumbnail1024x1024SizeKey, + retain: true, + release: true, + ); + +set NSThumbnail1024x1024SizeKey(DartNSURLThumbnailDictionaryItem value) { + objc.NSString.fromPointer( + _NSThumbnail1024x1024SizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSThumbnail1024x1024SizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSTimeDateFormatString') +external ffi.Pointer _NSTimeDateFormatString; + +objc.NSString get NSTimeDateFormatString => objc.NSString.fromPointer( + _NSTimeDateFormatString, + retain: true, + release: true, +); + +set NSTimeDateFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSTimeDateFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTimeDateFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSTimeFormatString') +external ffi.Pointer _NSTimeFormatString; + +objc.NSString get NSTimeFormatString => + objc.NSString.fromPointer(_NSTimeFormatString, retain: true, release: true); + +set NSTimeFormatString(objc.NSString value) { + objc.NSString.fromPointer( + _NSTimeFormatString, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSTimeFormatString = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLAddedToDirectoryDateKey') +external NSURLResourceKey _NSURLAddedToDirectoryDateKey; + +DartNSURLResourceKey get NSURLAddedToDirectoryDateKey => + objc.NSString.fromPointer( + _NSURLAddedToDirectoryDateKey, + retain: true, + release: true, + ); + +set NSURLAddedToDirectoryDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLAddedToDirectoryDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAddedToDirectoryDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLApplicationIsScriptableKey') +external NSURLResourceKey _NSURLApplicationIsScriptableKey; + +DartNSURLResourceKey get NSURLApplicationIsScriptableKey => + objc.NSString.fromPointer( + _NSURLApplicationIsScriptableKey, + retain: true, + release: true, + ); + +set NSURLApplicationIsScriptableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLApplicationIsScriptableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLApplicationIsScriptableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLAttributeModificationDateKey') +external NSURLResourceKey _NSURLAttributeModificationDateKey; + +DartNSURLResourceKey get NSURLAttributeModificationDateKey => + objc.NSString.fromPointer( + _NSURLAttributeModificationDateKey, + retain: true, + release: true, + ); + +set NSURLAttributeModificationDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLAttributeModificationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAttributeModificationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodClientCertificate', +) +external ffi.Pointer +_NSURLAuthenticationMethodClientCertificate; + +objc.NSString get NSURLAuthenticationMethodClientCertificate => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodClientCertificate, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodClientCertificate(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodClientCertificate, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodClientCertificate = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodDefault', +) +external ffi.Pointer _NSURLAuthenticationMethodDefault; + +objc.NSString get NSURLAuthenticationMethodDefault => objc.NSString.fromPointer( + _NSURLAuthenticationMethodDefault, + retain: true, + release: true, +); + +set NSURLAuthenticationMethodDefault(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodDefault, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodDefault = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodHTMLForm', +) +external ffi.Pointer _NSURLAuthenticationMethodHTMLForm; + +objc.NSString get NSURLAuthenticationMethodHTMLForm => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTMLForm, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodHTMLForm(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTMLForm, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodHTMLForm = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodHTTPBasic', +) +external ffi.Pointer _NSURLAuthenticationMethodHTTPBasic; + +objc.NSString get NSURLAuthenticationMethodHTTPBasic => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTTPBasic, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodHTTPBasic(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTTPBasic, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodHTTPBasic = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodHTTPDigest', +) +external ffi.Pointer _NSURLAuthenticationMethodHTTPDigest; + +objc.NSString get NSURLAuthenticationMethodHTTPDigest => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTTPDigest, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodHTTPDigest(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodHTTPDigest, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodHTTPDigest = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodNTLM', +) +external ffi.Pointer _NSURLAuthenticationMethodNTLM; + +objc.NSString get NSURLAuthenticationMethodNTLM => objc.NSString.fromPointer( + _NSURLAuthenticationMethodNTLM, + retain: true, + release: true, +); + +set NSURLAuthenticationMethodNTLM(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodNTLM, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodNTLM = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodNegotiate', +) +external ffi.Pointer _NSURLAuthenticationMethodNegotiate; + +objc.NSString get NSURLAuthenticationMethodNegotiate => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodNegotiate, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodNegotiate(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodNegotiate, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodNegotiate = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLAuthenticationMethodServerTrust', +) +external ffi.Pointer _NSURLAuthenticationMethodServerTrust; + +objc.NSString get NSURLAuthenticationMethodServerTrust => + objc.NSString.fromPointer( + _NSURLAuthenticationMethodServerTrust, + retain: true, + release: true, + ); + +set NSURLAuthenticationMethodServerTrust(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLAuthenticationMethodServerTrust, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLAuthenticationMethodServerTrust = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLCanonicalPathKey') +external NSURLResourceKey _NSURLCanonicalPathKey; + +DartNSURLResourceKey get NSURLCanonicalPathKey => objc.NSString.fromPointer( + _NSURLCanonicalPathKey, + retain: true, + release: true, +); + +set NSURLCanonicalPathKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLCanonicalPathKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLCanonicalPathKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLContentAccessDateKey') +external NSURLResourceKey _NSURLContentAccessDateKey; + +DartNSURLResourceKey get NSURLContentAccessDateKey => objc.NSString.fromPointer( + _NSURLContentAccessDateKey, + retain: true, + release: true, +); + +set NSURLContentAccessDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLContentAccessDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLContentAccessDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLContentModificationDateKey') +external NSURLResourceKey _NSURLContentModificationDateKey; + +DartNSURLResourceKey get NSURLContentModificationDateKey => + objc.NSString.fromPointer( + _NSURLContentModificationDateKey, + retain: true, + release: true, + ); + +set NSURLContentModificationDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLContentModificationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLContentModificationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLContentTypeKey') +external NSURLResourceKey _NSURLContentTypeKey; + +DartNSURLResourceKey get NSURLContentTypeKey => objc.NSString.fromPointer( + _NSURLContentTypeKey, + retain: true, + release: true, +); + +set NSURLContentTypeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLContentTypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLContentTypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLCreationDateKey') +external NSURLResourceKey _NSURLCreationDateKey; + +DartNSURLResourceKey get NSURLCreationDateKey => objc.NSString.fromPointer( + _NSURLCreationDateKey, + retain: true, + release: true, +); + +set NSURLCreationDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLCreationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLCreationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLCredentialStorageChangedNotification', +) +external NSNotificationName _NSURLCredentialStorageChangedNotification; + +DartNSNotificationName get NSURLCredentialStorageChangedNotification => + objc.NSString.fromPointer( + _NSURLCredentialStorageChangedNotification, + retain: true, + release: true, + ); + +set NSURLCredentialStorageChangedNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSURLCredentialStorageChangedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLCredentialStorageChangedNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLCredentialStorageRemoveSynchronizableCredentials', +) +external ffi.Pointer +_NSURLCredentialStorageRemoveSynchronizableCredentials; + +objc.NSString get NSURLCredentialStorageRemoveSynchronizableCredentials => + objc.NSString.fromPointer( + _NSURLCredentialStorageRemoveSynchronizableCredentials, + retain: true, + release: true, + ); + +set NSURLCredentialStorageRemoveSynchronizableCredentials(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLCredentialStorageRemoveSynchronizableCredentials, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLCredentialStorageRemoveSynchronizableCredentials = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLCustomIconKey') +external NSURLResourceKey _NSURLCustomIconKey; + +DartNSURLResourceKey get NSURLCustomIconKey => + objc.NSString.fromPointer(_NSURLCustomIconKey, retain: true, release: true); + +set NSURLCustomIconKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLCustomIconKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLCustomIconKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLDirectoryEntryCountKey') +external NSURLResourceKey _NSURLDirectoryEntryCountKey; + +DartNSURLResourceKey get NSURLDirectoryEntryCountKey => + objc.NSString.fromPointer( + _NSURLDirectoryEntryCountKey, + retain: true, + release: true, + ); + +set NSURLDirectoryEntryCountKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLDirectoryEntryCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLDirectoryEntryCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLDocumentIdentifierKey') +external NSURLResourceKey _NSURLDocumentIdentifierKey; + +DartNSURLResourceKey get NSURLDocumentIdentifierKey => + objc.NSString.fromPointer( + _NSURLDocumentIdentifierKey, + retain: true, + release: true, + ); + +set NSURLDocumentIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLDocumentIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLDocumentIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLEffectiveIconKey') +external NSURLResourceKey _NSURLEffectiveIconKey; + +DartNSURLResourceKey get NSURLEffectiveIconKey => objc.NSString.fromPointer( + _NSURLEffectiveIconKey, + retain: true, + release: true, +); + +set NSURLEffectiveIconKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLEffectiveIconKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLEffectiveIconKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLErrorBackgroundTaskCancelledReasonKey', +) +external ffi.Pointer +_NSURLErrorBackgroundTaskCancelledReasonKey; + +objc.NSString get NSURLErrorBackgroundTaskCancelledReasonKey => + objc.NSString.fromPointer( + _NSURLErrorBackgroundTaskCancelledReasonKey, + retain: true, + release: true, + ); + +set NSURLErrorBackgroundTaskCancelledReasonKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLErrorBackgroundTaskCancelledReasonKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorBackgroundTaskCancelledReasonKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLErrorDomain') +external NSErrorDomain _NSURLErrorDomain; + +DartNSErrorDomain get NSURLErrorDomain => + objc.NSString.fromPointer(_NSURLErrorDomain, retain: true, release: true); + +set NSURLErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSURLErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLErrorFailingURLErrorKey', +) +external ffi.Pointer _NSURLErrorFailingURLErrorKey; + +objc.NSString get NSURLErrorFailingURLErrorKey => objc.NSString.fromPointer( + _NSURLErrorFailingURLErrorKey, + retain: true, + release: true, +); + +set NSURLErrorFailingURLErrorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLErrorFailingURLErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorFailingURLErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLErrorFailingURLPeerTrustErrorKey', +) +external ffi.Pointer +_NSURLErrorFailingURLPeerTrustErrorKey; + +objc.NSString get NSURLErrorFailingURLPeerTrustErrorKey => + objc.NSString.fromPointer( + _NSURLErrorFailingURLPeerTrustErrorKey, + retain: true, + release: true, + ); + +set NSURLErrorFailingURLPeerTrustErrorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLErrorFailingURLPeerTrustErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorFailingURLPeerTrustErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLErrorFailingURLStringErrorKey', +) +external ffi.Pointer _NSURLErrorFailingURLStringErrorKey; + +objc.NSString get NSURLErrorFailingURLStringErrorKey => + objc.NSString.fromPointer( + _NSURLErrorFailingURLStringErrorKey, + retain: true, + release: true, + ); + +set NSURLErrorFailingURLStringErrorKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLErrorFailingURLStringErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorFailingURLStringErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLErrorKey') +external NSErrorUserInfoKey _NSURLErrorKey; + +DartNSErrorUserInfoKey get NSURLErrorKey => + objc.NSString.fromPointer(_NSURLErrorKey, retain: true, release: true); + +set NSURLErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSURLErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLErrorNetworkUnavailableReasonKey') +external NSErrorUserInfoKey _NSURLErrorNetworkUnavailableReasonKey; + +DartNSErrorUserInfoKey get NSURLErrorNetworkUnavailableReasonKey => + objc.NSString.fromPointer( + _NSURLErrorNetworkUnavailableReasonKey, + retain: true, + release: true, + ); + +set NSURLErrorNetworkUnavailableReasonKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSURLErrorNetworkUnavailableReasonKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLErrorNetworkUnavailableReasonKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileAllocatedSizeKey') +external NSURLResourceKey _NSURLFileAllocatedSizeKey; + +DartNSURLResourceKey get NSURLFileAllocatedSizeKey => objc.NSString.fromPointer( + _NSURLFileAllocatedSizeKey, + retain: true, + release: true, +); + +set NSURLFileAllocatedSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileAllocatedSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileAllocatedSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileContentIdentifierKey') +external NSURLResourceKey _NSURLFileContentIdentifierKey; + +DartNSURLResourceKey get NSURLFileContentIdentifierKey => + objc.NSString.fromPointer( + _NSURLFileContentIdentifierKey, + retain: true, + release: true, + ); + +set NSURLFileContentIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileContentIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileContentIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileIdentifierKey') +external NSURLResourceKey _NSURLFileIdentifierKey; + +DartNSURLResourceKey get NSURLFileIdentifierKey => objc.NSString.fromPointer( + _NSURLFileIdentifierKey, + retain: true, + release: true, +); + +set NSURLFileIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileProtectionComplete') +external NSURLFileProtectionType _NSURLFileProtectionComplete; + +DartNSURLFileProtectionType get NSURLFileProtectionComplete => + objc.NSString.fromPointer( + _NSURLFileProtectionComplete, + retain: true, + release: true, + ); + +set NSURLFileProtectionComplete(DartNSURLFileProtectionType value) { + objc.NSString.fromPointer( + _NSURLFileProtectionComplete, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionComplete = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLFileProtectionCompleteUnlessOpen', +) +external NSURLFileProtectionType _NSURLFileProtectionCompleteUnlessOpen; + +DartNSURLFileProtectionType get NSURLFileProtectionCompleteUnlessOpen => + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteUnlessOpen, + retain: true, + release: true, + ); + +set NSURLFileProtectionCompleteUnlessOpen(DartNSURLFileProtectionType value) { + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteUnlessOpen, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionCompleteUnlessOpen = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLFileProtectionCompleteUntilFirstUserAuthentication', +) +external NSURLFileProtectionType +_NSURLFileProtectionCompleteUntilFirstUserAuthentication; + +DartNSURLFileProtectionType +get NSURLFileProtectionCompleteUntilFirstUserAuthentication => + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteUntilFirstUserAuthentication, + retain: true, + release: true, + ); + +set NSURLFileProtectionCompleteUntilFirstUserAuthentication( + DartNSURLFileProtectionType value, +) { + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteUntilFirstUserAuthentication, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionCompleteUntilFirstUserAuthentication = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLFileProtectionCompleteWhenUserInactive', +) +external NSURLFileProtectionType _NSURLFileProtectionCompleteWhenUserInactive; + +DartNSURLFileProtectionType get NSURLFileProtectionCompleteWhenUserInactive => + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteWhenUserInactive, + retain: true, + release: true, + ); + +set NSURLFileProtectionCompleteWhenUserInactive( + DartNSURLFileProtectionType value, +) { + objc.NSString.fromPointer( + _NSURLFileProtectionCompleteWhenUserInactive, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionCompleteWhenUserInactive = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileProtectionKey') +external NSURLResourceKey _NSURLFileProtectionKey; + +DartNSURLResourceKey get NSURLFileProtectionKey => objc.NSString.fromPointer( + _NSURLFileProtectionKey, + retain: true, + release: true, +); + +set NSURLFileProtectionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileProtectionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileProtectionNone') +external NSURLFileProtectionType _NSURLFileProtectionNone; + +DartNSURLFileProtectionType get NSURLFileProtectionNone => + objc.NSString.fromPointer( + _NSURLFileProtectionNone, + retain: true, + release: true, + ); + +set NSURLFileProtectionNone(DartNSURLFileProtectionType value) { + objc.NSString.fromPointer( + _NSURLFileProtectionNone, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileProtectionNone = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceIdentifierKey') +external NSURLResourceKey _NSURLFileResourceIdentifierKey; + +DartNSURLResourceKey get NSURLFileResourceIdentifierKey => + objc.NSString.fromPointer( + _NSURLFileResourceIdentifierKey, + retain: true, + release: true, + ); + +set NSURLFileResourceIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileResourceIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeBlockSpecial') +external NSURLFileResourceType _NSURLFileResourceTypeBlockSpecial; + +DartNSURLFileResourceType get NSURLFileResourceTypeBlockSpecial => + objc.NSString.fromPointer( + _NSURLFileResourceTypeBlockSpecial, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeBlockSpecial(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeBlockSpecial, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeBlockSpecial = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLFileResourceTypeCharacterSpecial', +) +external NSURLFileResourceType _NSURLFileResourceTypeCharacterSpecial; + +DartNSURLFileResourceType get NSURLFileResourceTypeCharacterSpecial => + objc.NSString.fromPointer( + _NSURLFileResourceTypeCharacterSpecial, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeCharacterSpecial(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeCharacterSpecial, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeCharacterSpecial = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeDirectory') +external NSURLFileResourceType _NSURLFileResourceTypeDirectory; + +DartNSURLFileResourceType get NSURLFileResourceTypeDirectory => + objc.NSString.fromPointer( + _NSURLFileResourceTypeDirectory, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeDirectory(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeDirectory, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeDirectory = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeKey') +external NSURLResourceKey _NSURLFileResourceTypeKey; + +DartNSURLResourceKey get NSURLFileResourceTypeKey => objc.NSString.fromPointer( + _NSURLFileResourceTypeKey, + retain: true, + release: true, +); + +set NSURLFileResourceTypeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeNamedPipe') +external NSURLFileResourceType _NSURLFileResourceTypeNamedPipe; + +DartNSURLFileResourceType get NSURLFileResourceTypeNamedPipe => + objc.NSString.fromPointer( + _NSURLFileResourceTypeNamedPipe, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeNamedPipe(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeNamedPipe, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeNamedPipe = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeRegular') +external NSURLFileResourceType _NSURLFileResourceTypeRegular; + +DartNSURLFileResourceType get NSURLFileResourceTypeRegular => + objc.NSString.fromPointer( + _NSURLFileResourceTypeRegular, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeRegular(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeRegular, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeRegular = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeSocket') +external NSURLFileResourceType _NSURLFileResourceTypeSocket; + +DartNSURLFileResourceType get NSURLFileResourceTypeSocket => + objc.NSString.fromPointer( + _NSURLFileResourceTypeSocket, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeSocket(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeSocket, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeSocket = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeSymbolicLink') +external NSURLFileResourceType _NSURLFileResourceTypeSymbolicLink; + +DartNSURLFileResourceType get NSURLFileResourceTypeSymbolicLink => + objc.NSString.fromPointer( + _NSURLFileResourceTypeSymbolicLink, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeSymbolicLink(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeSymbolicLink, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeSymbolicLink = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileResourceTypeUnknown') +external NSURLFileResourceType _NSURLFileResourceTypeUnknown; + +DartNSURLFileResourceType get NSURLFileResourceTypeUnknown => + objc.NSString.fromPointer( + _NSURLFileResourceTypeUnknown, + retain: true, + release: true, + ); + +set NSURLFileResourceTypeUnknown(DartNSURLFileResourceType value) { + objc.NSString.fromPointer( + _NSURLFileResourceTypeUnknown, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileResourceTypeUnknown = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSURLFileScheme') +external ffi.Pointer _NSURLFileScheme; + +objc.NSString get NSURLFileScheme => + objc.NSString.fromPointer(_NSURLFileScheme, retain: true, release: true); + +set NSURLFileScheme(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLFileScheme, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileScheme = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileSecurityKey') +external NSURLResourceKey _NSURLFileSecurityKey; + +DartNSURLResourceKey get NSURLFileSecurityKey => objc.NSString.fromPointer( + _NSURLFileSecurityKey, + retain: true, + release: true, +); + +set NSURLFileSecurityKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileSecurityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileSecurityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLFileSizeKey') +external NSURLResourceKey _NSURLFileSizeKey; + +DartNSURLResourceKey get NSURLFileSizeKey => + objc.NSString.fromPointer(_NSURLFileSizeKey, retain: true, release: true); + +set NSURLFileSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLFileSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLFileSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLGenerationIdentifierKey') +external NSURLResourceKey _NSURLGenerationIdentifierKey; + +DartNSURLResourceKey get NSURLGenerationIdentifierKey => + objc.NSString.fromPointer( + _NSURLGenerationIdentifierKey, + retain: true, + release: true, + ); + +set NSURLGenerationIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLGenerationIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLGenerationIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLHasHiddenExtensionKey') +external NSURLResourceKey _NSURLHasHiddenExtensionKey; + +DartNSURLResourceKey get NSURLHasHiddenExtensionKey => + objc.NSString.fromPointer( + _NSURLHasHiddenExtensionKey, + retain: true, + release: true, + ); + +set NSURLHasHiddenExtensionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLHasHiddenExtensionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLHasHiddenExtensionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsAliasFileKey') +external NSURLResourceKey _NSURLIsAliasFileKey; + +DartNSURLResourceKey get NSURLIsAliasFileKey => objc.NSString.fromPointer( + _NSURLIsAliasFileKey, + retain: true, + release: true, +); + +set NSURLIsAliasFileKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsAliasFileKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsAliasFileKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsApplicationKey') +external NSURLResourceKey _NSURLIsApplicationKey; + +DartNSURLResourceKey get NSURLIsApplicationKey => objc.NSString.fromPointer( + _NSURLIsApplicationKey, + retain: true, + release: true, +); + +set NSURLIsApplicationKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsApplicationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsApplicationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsDirectoryKey') +external NSURLResourceKey _NSURLIsDirectoryKey; + +DartNSURLResourceKey get NSURLIsDirectoryKey => objc.NSString.fromPointer( + _NSURLIsDirectoryKey, + retain: true, + release: true, +); + +set NSURLIsDirectoryKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsDirectoryKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsDirectoryKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsExcludedFromBackupKey') +external NSURLResourceKey _NSURLIsExcludedFromBackupKey; + +DartNSURLResourceKey get NSURLIsExcludedFromBackupKey => + objc.NSString.fromPointer( + _NSURLIsExcludedFromBackupKey, + retain: true, + release: true, + ); + +set NSURLIsExcludedFromBackupKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsExcludedFromBackupKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsExcludedFromBackupKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsExecutableKey') +external NSURLResourceKey _NSURLIsExecutableKey; + +DartNSURLResourceKey get NSURLIsExecutableKey => objc.NSString.fromPointer( + _NSURLIsExecutableKey, + retain: true, + release: true, +); + +set NSURLIsExecutableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsExecutableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsExecutableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsHiddenKey') +external NSURLResourceKey _NSURLIsHiddenKey; + +DartNSURLResourceKey get NSURLIsHiddenKey => + objc.NSString.fromPointer(_NSURLIsHiddenKey, retain: true, release: true); + +set NSURLIsHiddenKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsHiddenKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsHiddenKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsMountTriggerKey') +external NSURLResourceKey _NSURLIsMountTriggerKey; + +DartNSURLResourceKey get NSURLIsMountTriggerKey => objc.NSString.fromPointer( + _NSURLIsMountTriggerKey, + retain: true, + release: true, +); + +set NSURLIsMountTriggerKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsMountTriggerKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsMountTriggerKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsPackageKey') +external NSURLResourceKey _NSURLIsPackageKey; + +DartNSURLResourceKey get NSURLIsPackageKey => + objc.NSString.fromPointer(_NSURLIsPackageKey, retain: true, release: true); + +set NSURLIsPackageKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsPackageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsPackageKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsPurgeableKey') +external NSURLResourceKey _NSURLIsPurgeableKey; + +DartNSURLResourceKey get NSURLIsPurgeableKey => objc.NSString.fromPointer( + _NSURLIsPurgeableKey, + retain: true, + release: true, +); + +set NSURLIsPurgeableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsPurgeableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsPurgeableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsReadableKey') +external NSURLResourceKey _NSURLIsReadableKey; + +DartNSURLResourceKey get NSURLIsReadableKey => + objc.NSString.fromPointer(_NSURLIsReadableKey, retain: true, release: true); + +set NSURLIsReadableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsReadableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsReadableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsRegularFileKey') +external NSURLResourceKey _NSURLIsRegularFileKey; + +DartNSURLResourceKey get NSURLIsRegularFileKey => objc.NSString.fromPointer( + _NSURLIsRegularFileKey, + retain: true, + release: true, +); + +set NSURLIsRegularFileKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsRegularFileKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsRegularFileKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsSparseKey') +external NSURLResourceKey _NSURLIsSparseKey; + +DartNSURLResourceKey get NSURLIsSparseKey => + objc.NSString.fromPointer(_NSURLIsSparseKey, retain: true, release: true); + +set NSURLIsSparseKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsSparseKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsSparseKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsSymbolicLinkKey') +external NSURLResourceKey _NSURLIsSymbolicLinkKey; + +DartNSURLResourceKey get NSURLIsSymbolicLinkKey => objc.NSString.fromPointer( + _NSURLIsSymbolicLinkKey, + retain: true, + release: true, +); + +set NSURLIsSymbolicLinkKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsSymbolicLinkKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsSymbolicLinkKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsSystemImmutableKey') +external NSURLResourceKey _NSURLIsSystemImmutableKey; + +DartNSURLResourceKey get NSURLIsSystemImmutableKey => objc.NSString.fromPointer( + _NSURLIsSystemImmutableKey, + retain: true, + release: true, +); + +set NSURLIsSystemImmutableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsSystemImmutableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsSystemImmutableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsUbiquitousItemKey') +external NSURLResourceKey _NSURLIsUbiquitousItemKey; + +DartNSURLResourceKey get NSURLIsUbiquitousItemKey => objc.NSString.fromPointer( + _NSURLIsUbiquitousItemKey, + retain: true, + release: true, +); + +set NSURLIsUbiquitousItemKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsUbiquitousItemKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsUbiquitousItemKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsUserImmutableKey') +external NSURLResourceKey _NSURLIsUserImmutableKey; + +DartNSURLResourceKey get NSURLIsUserImmutableKey => objc.NSString.fromPointer( + _NSURLIsUserImmutableKey, + retain: true, + release: true, +); + +set NSURLIsUserImmutableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsUserImmutableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsUserImmutableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsVolumeKey') +external NSURLResourceKey _NSURLIsVolumeKey; + +DartNSURLResourceKey get NSURLIsVolumeKey => + objc.NSString.fromPointer(_NSURLIsVolumeKey, retain: true, release: true); + +set NSURLIsVolumeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsVolumeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsVolumeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLIsWritableKey') +external NSURLResourceKey _NSURLIsWritableKey; + +DartNSURLResourceKey get NSURLIsWritableKey => + objc.NSString.fromPointer(_NSURLIsWritableKey, retain: true, release: true); + +set NSURLIsWritableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLIsWritableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLIsWritableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLKeysOfUnsetValuesKey') +external NSURLResourceKey _NSURLKeysOfUnsetValuesKey; + +DartNSURLResourceKey get NSURLKeysOfUnsetValuesKey => objc.NSString.fromPointer( + _NSURLKeysOfUnsetValuesKey, + retain: true, + release: true, +); + +set NSURLKeysOfUnsetValuesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLKeysOfUnsetValuesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLKeysOfUnsetValuesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLabelColorKey') +external NSURLResourceKey _NSURLLabelColorKey; + +DartNSURLResourceKey get NSURLLabelColorKey => + objc.NSString.fromPointer(_NSURLLabelColorKey, retain: true, release: true); + +set NSURLLabelColorKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLabelColorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLabelColorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLabelNumberKey') +external NSURLResourceKey _NSURLLabelNumberKey; + +DartNSURLResourceKey get NSURLLabelNumberKey => objc.NSString.fromPointer( + _NSURLLabelNumberKey, + retain: true, + release: true, +); + +set NSURLLabelNumberKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLabelNumberKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLabelNumberKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLinkCountKey') +external NSURLResourceKey _NSURLLinkCountKey; + +DartNSURLResourceKey get NSURLLinkCountKey => + objc.NSString.fromPointer(_NSURLLinkCountKey, retain: true, release: true); + +set NSURLLinkCountKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLinkCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLinkCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLocalizedLabelKey') +external NSURLResourceKey _NSURLLocalizedLabelKey; + +DartNSURLResourceKey get NSURLLocalizedLabelKey => objc.NSString.fromPointer( + _NSURLLocalizedLabelKey, + retain: true, + release: true, +); + +set NSURLLocalizedLabelKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLocalizedLabelKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLocalizedLabelKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLocalizedNameKey') +external NSURLResourceKey _NSURLLocalizedNameKey; + +DartNSURLResourceKey get NSURLLocalizedNameKey => objc.NSString.fromPointer( + _NSURLLocalizedNameKey, + retain: true, + release: true, +); + +set NSURLLocalizedNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLocalizedNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLocalizedNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLLocalizedTypeDescriptionKey') +external NSURLResourceKey _NSURLLocalizedTypeDescriptionKey; + +DartNSURLResourceKey get NSURLLocalizedTypeDescriptionKey => + objc.NSString.fromPointer( + _NSURLLocalizedTypeDescriptionKey, + retain: true, + release: true, + ); + +set NSURLLocalizedTypeDescriptionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLLocalizedTypeDescriptionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLLocalizedTypeDescriptionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLMayHaveExtendedAttributesKey') +external NSURLResourceKey _NSURLMayHaveExtendedAttributesKey; + +DartNSURLResourceKey get NSURLMayHaveExtendedAttributesKey => + objc.NSString.fromPointer( + _NSURLMayHaveExtendedAttributesKey, + retain: true, + release: true, + ); + +set NSURLMayHaveExtendedAttributesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLMayHaveExtendedAttributesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLMayHaveExtendedAttributesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLMayShareFileContentKey') +external NSURLResourceKey _NSURLMayShareFileContentKey; + +DartNSURLResourceKey get NSURLMayShareFileContentKey => + objc.NSString.fromPointer( + _NSURLMayShareFileContentKey, + retain: true, + release: true, + ); + +set NSURLMayShareFileContentKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLMayShareFileContentKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLMayShareFileContentKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLNameKey') +external NSURLResourceKey _NSURLNameKey; + +DartNSURLResourceKey get NSURLNameKey => + objc.NSString.fromPointer(_NSURLNameKey, retain: true, release: true); + +set NSURLNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLParentDirectoryURLKey') +external NSURLResourceKey _NSURLParentDirectoryURLKey; + +DartNSURLResourceKey get NSURLParentDirectoryURLKey => + objc.NSString.fromPointer( + _NSURLParentDirectoryURLKey, + retain: true, + release: true, + ); + +set NSURLParentDirectoryURLKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLParentDirectoryURLKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLParentDirectoryURLKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLPathKey') +external NSURLResourceKey _NSURLPathKey; + +DartNSURLResourceKey get NSURLPathKey => + objc.NSString.fromPointer(_NSURLPathKey, retain: true, release: true); + +set NSURLPathKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLPathKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLPathKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLPreferredIOBlockSizeKey') +external NSURLResourceKey _NSURLPreferredIOBlockSizeKey; + +DartNSURLResourceKey get NSURLPreferredIOBlockSizeKey => + objc.NSString.fromPointer( + _NSURLPreferredIOBlockSizeKey, + retain: true, + release: true, + ); + +set NSURLPreferredIOBlockSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLPreferredIOBlockSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLPreferredIOBlockSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSURLProtectionSpaceFTP') +external ffi.Pointer _NSURLProtectionSpaceFTP; + +objc.NSString get NSURLProtectionSpaceFTP => objc.NSString.fromPointer( + _NSURLProtectionSpaceFTP, + retain: true, + release: true, +); + +set NSURLProtectionSpaceFTP(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceFTP, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceFTP = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceFTPProxy', +) +external ffi.Pointer _NSURLProtectionSpaceFTPProxy; + +objc.NSString get NSURLProtectionSpaceFTPProxy => objc.NSString.fromPointer( + _NSURLProtectionSpaceFTPProxy, + retain: true, + release: true, +); + +set NSURLProtectionSpaceFTPProxy(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceFTPProxy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceFTPProxy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceHTTP', +) +external ffi.Pointer _NSURLProtectionSpaceHTTP; + +objc.NSString get NSURLProtectionSpaceHTTP => objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTP, + retain: true, + release: true, +); + +set NSURLProtectionSpaceHTTP(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTP, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceHTTP = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceHTTPProxy', +) +external ffi.Pointer _NSURLProtectionSpaceHTTPProxy; + +objc.NSString get NSURLProtectionSpaceHTTPProxy => objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPProxy, + retain: true, + release: true, +); + +set NSURLProtectionSpaceHTTPProxy(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPProxy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceHTTPProxy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceHTTPS', +) +external ffi.Pointer _NSURLProtectionSpaceHTTPS; + +objc.NSString get NSURLProtectionSpaceHTTPS => objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPS, + retain: true, + release: true, +); + +set NSURLProtectionSpaceHTTPS(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPS, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceHTTPS = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceHTTPSProxy', +) +external ffi.Pointer _NSURLProtectionSpaceHTTPSProxy; + +objc.NSString get NSURLProtectionSpaceHTTPSProxy => objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPSProxy, + retain: true, + release: true, +); + +set NSURLProtectionSpaceHTTPSProxy(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceHTTPSProxy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceHTTPSProxy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLProtectionSpaceSOCKSProxy', +) +external ffi.Pointer _NSURLProtectionSpaceSOCKSProxy; + +objc.NSString get NSURLProtectionSpaceSOCKSProxy => objc.NSString.fromPointer( + _NSURLProtectionSpaceSOCKSProxy, + retain: true, + release: true, +); + +set NSURLProtectionSpaceSOCKSProxy(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLProtectionSpaceSOCKSProxy, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLProtectionSpaceSOCKSProxy = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLQuarantinePropertiesKey') +external NSURLResourceKey _NSURLQuarantinePropertiesKey; + +DartNSURLResourceKey get NSURLQuarantinePropertiesKey => + objc.NSString.fromPointer( + _NSURLQuarantinePropertiesKey, + retain: true, + release: true, + ); + +set NSURLQuarantinePropertiesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLQuarantinePropertiesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLQuarantinePropertiesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSURLSessionDownloadTaskResumeData', +) +external ffi.Pointer _NSURLSessionDownloadTaskResumeData; + +objc.NSString get NSURLSessionDownloadTaskResumeData => + objc.NSString.fromPointer( + _NSURLSessionDownloadTaskResumeData, + retain: true, + release: true, + ); + +set NSURLSessionDownloadTaskResumeData(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLSessionDownloadTaskResumeData, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLSessionDownloadTaskResumeData = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final double NSURLSessionTaskPriorityDefault; + +@ffi.Native() +external final double NSURLSessionTaskPriorityHigh; + +@ffi.Native() +external final double NSURLSessionTaskPriorityLow; + +@ffi.Native() +external final int NSURLSessionTransferSizeUnknown; + +@ffi.Native>( + symbol: 'NSURLSessionUploadTaskResumeData', +) +external ffi.Pointer _NSURLSessionUploadTaskResumeData; + +objc.NSString get NSURLSessionUploadTaskResumeData => objc.NSString.fromPointer( + _NSURLSessionUploadTaskResumeData, + retain: true, + release: true, +); + +set NSURLSessionUploadTaskResumeData(objc.NSString value) { + objc.NSString.fromPointer( + _NSURLSessionUploadTaskResumeData, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLSessionUploadTaskResumeData = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLTagNamesKey') +external NSURLResourceKey _NSURLTagNamesKey; + +DartNSURLResourceKey get NSURLTagNamesKey => + objc.NSString.fromPointer(_NSURLTagNamesKey, retain: true, release: true); + +set NSURLTagNamesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLTagNamesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLTagNamesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLThumbnailDictionaryKey') +external NSURLResourceKey _NSURLThumbnailDictionaryKey; + +DartNSURLResourceKey get NSURLThumbnailDictionaryKey => + objc.NSString.fromPointer( + _NSURLThumbnailDictionaryKey, + retain: true, + release: true, + ); + +set NSURLThumbnailDictionaryKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLThumbnailDictionaryKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLThumbnailDictionaryKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLThumbnailKey') +external NSURLResourceKey _NSURLThumbnailKey; + +DartNSURLResourceKey get NSURLThumbnailKey => + objc.NSString.fromPointer(_NSURLThumbnailKey, retain: true, release: true); + +set NSURLThumbnailKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLThumbnailKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLThumbnailKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLTotalFileAllocatedSizeKey') +external NSURLResourceKey _NSURLTotalFileAllocatedSizeKey; + +DartNSURLResourceKey get NSURLTotalFileAllocatedSizeKey => + objc.NSString.fromPointer( + _NSURLTotalFileAllocatedSizeKey, + retain: true, + release: true, + ); + +set NSURLTotalFileAllocatedSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLTotalFileAllocatedSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLTotalFileAllocatedSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLTotalFileSizeKey') +external NSURLResourceKey _NSURLTotalFileSizeKey; + +DartNSURLResourceKey get NSURLTotalFileSizeKey => objc.NSString.fromPointer( + _NSURLTotalFileSizeKey, + retain: true, + release: true, +); + +set NSURLTotalFileSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLTotalFileSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLTotalFileSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLTypeIdentifierKey') +external NSURLResourceKey _NSURLTypeIdentifierKey; + +DartNSURLResourceKey get NSURLTypeIdentifierKey => objc.NSString.fromPointer( + _NSURLTypeIdentifierKey, + retain: true, + release: true, +); + +set NSURLTypeIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLTypeIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLTypeIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemContainerDisplayNameKey', +) +external NSURLResourceKey _NSURLUbiquitousItemContainerDisplayNameKey; + +DartNSURLResourceKey get NSURLUbiquitousItemContainerDisplayNameKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemContainerDisplayNameKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemContainerDisplayNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemContainerDisplayNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemContainerDisplayNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadRequestedKey') +external NSURLResourceKey _NSURLUbiquitousItemDownloadRequestedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemDownloadRequestedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadRequestedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemDownloadRequestedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadRequestedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadRequestedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadingErrorKey') +external NSURLResourceKey _NSURLUbiquitousItemDownloadingErrorKey; + +DartNSURLResourceKey get NSURLUbiquitousItemDownloadingErrorKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingErrorKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemDownloadingErrorKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadingErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemDownloadingStatusCurrent', +) +external NSURLUbiquitousItemDownloadingStatus +_NSURLUbiquitousItemDownloadingStatusCurrent; + +DartNSURLUbiquitousItemDownloadingStatus +get NSURLUbiquitousItemDownloadingStatusCurrent => objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusCurrent, + retain: true, + release: true, +); + +set NSURLUbiquitousItemDownloadingStatusCurrent( + DartNSURLUbiquitousItemDownloadingStatus value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusCurrent, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadingStatusCurrent = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemDownloadingStatusDownloaded', +) +external NSURLUbiquitousItemDownloadingStatus +_NSURLUbiquitousItemDownloadingStatusDownloaded; + +DartNSURLUbiquitousItemDownloadingStatus +get NSURLUbiquitousItemDownloadingStatusDownloaded => objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusDownloaded, + retain: true, + release: true, +); + +set NSURLUbiquitousItemDownloadingStatusDownloaded( + DartNSURLUbiquitousItemDownloadingStatus value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusDownloaded, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadingStatusDownloaded = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadingStatusKey') +external NSURLResourceKey _NSURLUbiquitousItemDownloadingStatusKey; + +DartNSURLResourceKey get NSURLUbiquitousItemDownloadingStatusKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemDownloadingStatusKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadingStatusKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemDownloadingStatusNotDownloaded', +) +external NSURLUbiquitousItemDownloadingStatus +_NSURLUbiquitousItemDownloadingStatusNotDownloaded; + +DartNSURLUbiquitousItemDownloadingStatus +get NSURLUbiquitousItemDownloadingStatusNotDownloaded => + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusNotDownloaded, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemDownloadingStatusNotDownloaded( + DartNSURLUbiquitousItemDownloadingStatus value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemDownloadingStatusNotDownloaded, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemDownloadingStatusNotDownloaded = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemHasUnresolvedConflictsKey', +) +external NSURLResourceKey _NSURLUbiquitousItemHasUnresolvedConflictsKey; + +DartNSURLResourceKey get NSURLUbiquitousItemHasUnresolvedConflictsKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemHasUnresolvedConflictsKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemHasUnresolvedConflictsKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemHasUnresolvedConflictsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemHasUnresolvedConflictsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsDownloadedKey') +external NSURLResourceKey _NSURLUbiquitousItemIsDownloadedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsDownloadedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsDownloadedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsDownloadedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsDownloadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsDownloadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsDownloadingKey') +external NSURLResourceKey _NSURLUbiquitousItemIsDownloadingKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsDownloadingKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsDownloadingKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsDownloadingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsDownloadingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsDownloadingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemIsExcludedFromSyncKey', +) +external NSURLResourceKey _NSURLUbiquitousItemIsExcludedFromSyncKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsExcludedFromSyncKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsExcludedFromSyncKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsExcludedFromSyncKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsExcludedFromSyncKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsExcludedFromSyncKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsSharedKey') +external NSURLResourceKey _NSURLUbiquitousItemIsSharedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsSharedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsSharedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsSharedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsSharedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsSharedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsSyncPausedKey') +external NSURLResourceKey _NSURLUbiquitousItemIsSyncPausedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsSyncPausedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsSyncPausedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsSyncPausedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsSyncPausedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsSyncPausedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsUploadedKey') +external NSURLResourceKey _NSURLUbiquitousItemIsUploadedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsUploadedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsUploadedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsUploadedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsUploadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsUploadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemIsUploadingKey') +external NSURLResourceKey _NSURLUbiquitousItemIsUploadingKey; + +DartNSURLResourceKey get NSURLUbiquitousItemIsUploadingKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsUploadingKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemIsUploadingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemIsUploadingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemIsUploadingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemPercentDownloadedKey') +external NSURLResourceKey _NSURLUbiquitousItemPercentDownloadedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemPercentDownloadedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemPercentDownloadedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemPercentDownloadedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemPercentDownloadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemPercentDownloadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemPercentUploadedKey') +external NSURLResourceKey _NSURLUbiquitousItemPercentUploadedKey; + +DartNSURLResourceKey get NSURLUbiquitousItemPercentUploadedKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemPercentUploadedKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemPercentUploadedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemPercentUploadedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemPercentUploadedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousItemSupportedSyncControlsKey', +) +external NSURLResourceKey _NSURLUbiquitousItemSupportedSyncControlsKey; + +DartNSURLResourceKey get NSURLUbiquitousItemSupportedSyncControlsKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemSupportedSyncControlsKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemSupportedSyncControlsKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemSupportedSyncControlsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemSupportedSyncControlsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLUbiquitousItemUploadingErrorKey') +external NSURLResourceKey _NSURLUbiquitousItemUploadingErrorKey; + +DartNSURLResourceKey get NSURLUbiquitousItemUploadingErrorKey => + objc.NSString.fromPointer( + _NSURLUbiquitousItemUploadingErrorKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousItemUploadingErrorKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousItemUploadingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousItemUploadingErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemCurrentUserPermissionsKey', +) +external NSURLResourceKey _NSURLUbiquitousSharedItemCurrentUserPermissionsKey; + +DartNSURLResourceKey get NSURLUbiquitousSharedItemCurrentUserPermissionsKey => + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemCurrentUserPermissionsKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousSharedItemCurrentUserPermissionsKey( + DartNSURLResourceKey value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemCurrentUserPermissionsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemCurrentUserPermissionsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemCurrentUserRoleKey', +) +external NSURLResourceKey _NSURLUbiquitousSharedItemCurrentUserRoleKey; + +DartNSURLResourceKey get NSURLUbiquitousSharedItemCurrentUserRoleKey => + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemCurrentUserRoleKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousSharedItemCurrentUserRoleKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemCurrentUserRoleKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemCurrentUserRoleKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey', +) +external NSURLResourceKey +_NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey; + +DartNSURLResourceKey +get NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey => + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey( + DartNSURLResourceKey value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemOwnerNameComponentsKey', +) +external NSURLResourceKey _NSURLUbiquitousSharedItemOwnerNameComponentsKey; + +DartNSURLResourceKey get NSURLUbiquitousSharedItemOwnerNameComponentsKey => + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemOwnerNameComponentsKey, + retain: true, + release: true, + ); + +set NSURLUbiquitousSharedItemOwnerNameComponentsKey( + DartNSURLResourceKey value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemOwnerNameComponentsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemOwnerNameComponentsKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemPermissionsReadOnly', +) +external NSURLUbiquitousSharedItemPermissions +_NSURLUbiquitousSharedItemPermissionsReadOnly; + +DartNSURLUbiquitousSharedItemPermissions +get NSURLUbiquitousSharedItemPermissionsReadOnly => objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemPermissionsReadOnly, + retain: true, + release: true, +); + +set NSURLUbiquitousSharedItemPermissionsReadOnly( + DartNSURLUbiquitousSharedItemPermissions value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemPermissionsReadOnly, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemPermissionsReadOnly = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemPermissionsReadWrite', +) +external NSURLUbiquitousSharedItemPermissions +_NSURLUbiquitousSharedItemPermissionsReadWrite; + +DartNSURLUbiquitousSharedItemPermissions +get NSURLUbiquitousSharedItemPermissionsReadWrite => objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemPermissionsReadWrite, + retain: true, + release: true, +); + +set NSURLUbiquitousSharedItemPermissionsReadWrite( + DartNSURLUbiquitousSharedItemPermissions value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemPermissionsReadWrite, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemPermissionsReadWrite = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemRoleOwner', +) +external NSURLUbiquitousSharedItemRole _NSURLUbiquitousSharedItemRoleOwner; + +DartNSURLUbiquitousSharedItemRole get NSURLUbiquitousSharedItemRoleOwner => + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemRoleOwner, + retain: true, + release: true, + ); + +set NSURLUbiquitousSharedItemRoleOwner( + DartNSURLUbiquitousSharedItemRole value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemRoleOwner, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemRoleOwner = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLUbiquitousSharedItemRoleParticipant', +) +external NSURLUbiquitousSharedItemRole +_NSURLUbiquitousSharedItemRoleParticipant; + +DartNSURLUbiquitousSharedItemRole +get NSURLUbiquitousSharedItemRoleParticipant => objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemRoleParticipant, + retain: true, + release: true, +); + +set NSURLUbiquitousSharedItemRoleParticipant( + DartNSURLUbiquitousSharedItemRole value, +) { + objc.NSString.fromPointer( + _NSURLUbiquitousSharedItemRoleParticipant, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLUbiquitousSharedItemRoleParticipant = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeAvailableCapacityForImportantUsageKey', +) +external NSURLResourceKey _NSURLVolumeAvailableCapacityForImportantUsageKey; + +DartNSURLResourceKey get NSURLVolumeAvailableCapacityForImportantUsageKey => + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityForImportantUsageKey, + retain: true, + release: true, + ); + +set NSURLVolumeAvailableCapacityForImportantUsageKey( + DartNSURLResourceKey value, +) { + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityForImportantUsageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeAvailableCapacityForImportantUsageKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeAvailableCapacityForOpportunisticUsageKey', +) +external NSURLResourceKey _NSURLVolumeAvailableCapacityForOpportunisticUsageKey; + +DartNSURLResourceKey get NSURLVolumeAvailableCapacityForOpportunisticUsageKey => + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityForOpportunisticUsageKey, + retain: true, + release: true, + ); + +set NSURLVolumeAvailableCapacityForOpportunisticUsageKey( + DartNSURLResourceKey value, +) { + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityForOpportunisticUsageKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeAvailableCapacityForOpportunisticUsageKey = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeAvailableCapacityKey') +external NSURLResourceKey _NSURLVolumeAvailableCapacityKey; + +DartNSURLResourceKey get NSURLVolumeAvailableCapacityKey => + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityKey, + retain: true, + release: true, + ); + +set NSURLVolumeAvailableCapacityKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeAvailableCapacityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeAvailableCapacityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeCreationDateKey') +external NSURLResourceKey _NSURLVolumeCreationDateKey; + +DartNSURLResourceKey get NSURLVolumeCreationDateKey => + objc.NSString.fromPointer( + _NSURLVolumeCreationDateKey, + retain: true, + release: true, + ); + +set NSURLVolumeCreationDateKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeCreationDateKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeCreationDateKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIdentifierKey') +external NSURLResourceKey _NSURLVolumeIdentifierKey; + +DartNSURLResourceKey get NSURLVolumeIdentifierKey => objc.NSString.fromPointer( + _NSURLVolumeIdentifierKey, + retain: true, + release: true, +); + +set NSURLVolumeIdentifierKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIdentifierKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIdentifierKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsAutomountedKey') +external NSURLResourceKey _NSURLVolumeIsAutomountedKey; + +DartNSURLResourceKey get NSURLVolumeIsAutomountedKey => + objc.NSString.fromPointer( + _NSURLVolumeIsAutomountedKey, + retain: true, + release: true, + ); + +set NSURLVolumeIsAutomountedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsAutomountedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsAutomountedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsBrowsableKey') +external NSURLResourceKey _NSURLVolumeIsBrowsableKey; + +DartNSURLResourceKey get NSURLVolumeIsBrowsableKey => objc.NSString.fromPointer( + _NSURLVolumeIsBrowsableKey, + retain: true, + release: true, +); + +set NSURLVolumeIsBrowsableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsBrowsableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsBrowsableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsEjectableKey') +external NSURLResourceKey _NSURLVolumeIsEjectableKey; + +DartNSURLResourceKey get NSURLVolumeIsEjectableKey => objc.NSString.fromPointer( + _NSURLVolumeIsEjectableKey, + retain: true, + release: true, +); + +set NSURLVolumeIsEjectableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsEjectableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsEjectableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsEncryptedKey') +external NSURLResourceKey _NSURLVolumeIsEncryptedKey; + +DartNSURLResourceKey get NSURLVolumeIsEncryptedKey => objc.NSString.fromPointer( + _NSURLVolumeIsEncryptedKey, + retain: true, + release: true, +); + +set NSURLVolumeIsEncryptedKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsEncryptedKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsEncryptedKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsInternalKey') +external NSURLResourceKey _NSURLVolumeIsInternalKey; + +DartNSURLResourceKey get NSURLVolumeIsInternalKey => objc.NSString.fromPointer( + _NSURLVolumeIsInternalKey, + retain: true, + release: true, +); + +set NSURLVolumeIsInternalKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsInternalKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsInternalKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsJournalingKey') +external NSURLResourceKey _NSURLVolumeIsJournalingKey; + +DartNSURLResourceKey get NSURLVolumeIsJournalingKey => + objc.NSString.fromPointer( + _NSURLVolumeIsJournalingKey, + retain: true, + release: true, + ); + +set NSURLVolumeIsJournalingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsJournalingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsJournalingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsLocalKey') +external NSURLResourceKey _NSURLVolumeIsLocalKey; + +DartNSURLResourceKey get NSURLVolumeIsLocalKey => objc.NSString.fromPointer( + _NSURLVolumeIsLocalKey, + retain: true, + release: true, +); + +set NSURLVolumeIsLocalKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsLocalKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsLocalKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsReadOnlyKey') +external NSURLResourceKey _NSURLVolumeIsReadOnlyKey; + +DartNSURLResourceKey get NSURLVolumeIsReadOnlyKey => objc.NSString.fromPointer( + _NSURLVolumeIsReadOnlyKey, + retain: true, + release: true, +); + +set NSURLVolumeIsReadOnlyKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsReadOnlyKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsReadOnlyKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsRemovableKey') +external NSURLResourceKey _NSURLVolumeIsRemovableKey; + +DartNSURLResourceKey get NSURLVolumeIsRemovableKey => objc.NSString.fromPointer( + _NSURLVolumeIsRemovableKey, + retain: true, + release: true, +); + +set NSURLVolumeIsRemovableKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsRemovableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsRemovableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeIsRootFileSystemKey') +external NSURLResourceKey _NSURLVolumeIsRootFileSystemKey; + +DartNSURLResourceKey get NSURLVolumeIsRootFileSystemKey => + objc.NSString.fromPointer( + _NSURLVolumeIsRootFileSystemKey, + retain: true, + release: true, + ); + +set NSURLVolumeIsRootFileSystemKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeIsRootFileSystemKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeIsRootFileSystemKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeLocalizedFormatDescriptionKey', +) +external NSURLResourceKey _NSURLVolumeLocalizedFormatDescriptionKey; + +DartNSURLResourceKey get NSURLVolumeLocalizedFormatDescriptionKey => + objc.NSString.fromPointer( + _NSURLVolumeLocalizedFormatDescriptionKey, + retain: true, + release: true, + ); + +set NSURLVolumeLocalizedFormatDescriptionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeLocalizedFormatDescriptionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeLocalizedFormatDescriptionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeLocalizedNameKey') +external NSURLResourceKey _NSURLVolumeLocalizedNameKey; + +DartNSURLResourceKey get NSURLVolumeLocalizedNameKey => + objc.NSString.fromPointer( + _NSURLVolumeLocalizedNameKey, + retain: true, + release: true, + ); + +set NSURLVolumeLocalizedNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeLocalizedNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeLocalizedNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeMaximumFileSizeKey') +external NSURLResourceKey _NSURLVolumeMaximumFileSizeKey; + +DartNSURLResourceKey get NSURLVolumeMaximumFileSizeKey => + objc.NSString.fromPointer( + _NSURLVolumeMaximumFileSizeKey, + retain: true, + release: true, + ); + +set NSURLVolumeMaximumFileSizeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeMaximumFileSizeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeMaximumFileSizeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeMountFromLocationKey') +external NSURLResourceKey _NSURLVolumeMountFromLocationKey; + +DartNSURLResourceKey get NSURLVolumeMountFromLocationKey => + objc.NSString.fromPointer( + _NSURLVolumeMountFromLocationKey, + retain: true, + release: true, + ); + +set NSURLVolumeMountFromLocationKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeMountFromLocationKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeMountFromLocationKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeNameKey') +external NSURLResourceKey _NSURLVolumeNameKey; + +DartNSURLResourceKey get NSURLVolumeNameKey => + objc.NSString.fromPointer(_NSURLVolumeNameKey, retain: true, release: true); + +set NSURLVolumeNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeResourceCountKey') +external NSURLResourceKey _NSURLVolumeResourceCountKey; + +DartNSURLResourceKey get NSURLVolumeResourceCountKey => + objc.NSString.fromPointer( + _NSURLVolumeResourceCountKey, + retain: true, + release: true, + ); + +set NSURLVolumeResourceCountKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeResourceCountKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeResourceCountKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSubtypeKey') +external NSURLResourceKey _NSURLVolumeSubtypeKey; + +DartNSURLResourceKey get NSURLVolumeSubtypeKey => objc.NSString.fromPointer( + _NSURLVolumeSubtypeKey, + retain: true, + release: true, +); + +set NSURLVolumeSubtypeKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSubtypeKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSubtypeKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsAccessPermissionsKey') +external NSURLResourceKey _NSURLVolumeSupportsAccessPermissionsKey; + +DartNSURLResourceKey get NSURLVolumeSupportsAccessPermissionsKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsAccessPermissionsKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsAccessPermissionsKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsAccessPermissionsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsAccessPermissionsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeSupportsAdvisoryFileLockingKey', +) +external NSURLResourceKey _NSURLVolumeSupportsAdvisoryFileLockingKey; + +DartNSURLResourceKey get NSURLVolumeSupportsAdvisoryFileLockingKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsAdvisoryFileLockingKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsAdvisoryFileLockingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsAdvisoryFileLockingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsAdvisoryFileLockingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeSupportsCasePreservedNamesKey', +) +external NSURLResourceKey _NSURLVolumeSupportsCasePreservedNamesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsCasePreservedNamesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsCasePreservedNamesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsCasePreservedNamesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsCasePreservedNamesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsCasePreservedNamesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeSupportsCaseSensitiveNamesKey', +) +external NSURLResourceKey _NSURLVolumeSupportsCaseSensitiveNamesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsCaseSensitiveNamesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsCaseSensitiveNamesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsCaseSensitiveNamesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsCaseSensitiveNamesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsCaseSensitiveNamesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsCompressionKey') +external NSURLResourceKey _NSURLVolumeSupportsCompressionKey; + +DartNSURLResourceKey get NSURLVolumeSupportsCompressionKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsCompressionKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsCompressionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsCompressionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsCompressionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsExclusiveRenamingKey') +external NSURLResourceKey _NSURLVolumeSupportsExclusiveRenamingKey; + +DartNSURLResourceKey get NSURLVolumeSupportsExclusiveRenamingKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsExclusiveRenamingKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsExclusiveRenamingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsExclusiveRenamingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsExclusiveRenamingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsExtendedSecurityKey') +external NSURLResourceKey _NSURLVolumeSupportsExtendedSecurityKey; + +DartNSURLResourceKey get NSURLVolumeSupportsExtendedSecurityKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsExtendedSecurityKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsExtendedSecurityKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsExtendedSecurityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsExtendedSecurityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsFileCloningKey') +external NSURLResourceKey _NSURLVolumeSupportsFileCloningKey; + +DartNSURLResourceKey get NSURLVolumeSupportsFileCloningKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsFileCloningKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsFileCloningKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsFileCloningKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsFileCloningKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsFileProtectionKey') +external NSURLResourceKey _NSURLVolumeSupportsFileProtectionKey; + +DartNSURLResourceKey get NSURLVolumeSupportsFileProtectionKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsFileProtectionKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsFileProtectionKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsFileProtectionKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsFileProtectionKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsHardLinksKey') +external NSURLResourceKey _NSURLVolumeSupportsHardLinksKey; + +DartNSURLResourceKey get NSURLVolumeSupportsHardLinksKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsHardLinksKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsHardLinksKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsHardLinksKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsHardLinksKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsImmutableFilesKey') +external NSURLResourceKey _NSURLVolumeSupportsImmutableFilesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsImmutableFilesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsImmutableFilesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsImmutableFilesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsImmutableFilesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsImmutableFilesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsJournalingKey') +external NSURLResourceKey _NSURLVolumeSupportsJournalingKey; + +DartNSURLResourceKey get NSURLVolumeSupportsJournalingKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsJournalingKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsJournalingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsJournalingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsJournalingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsPersistentIDsKey') +external NSURLResourceKey _NSURLVolumeSupportsPersistentIDsKey; + +DartNSURLResourceKey get NSURLVolumeSupportsPersistentIDsKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsPersistentIDsKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsPersistentIDsKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsPersistentIDsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsPersistentIDsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsRenamingKey') +external NSURLResourceKey _NSURLVolumeSupportsRenamingKey; + +DartNSURLResourceKey get NSURLVolumeSupportsRenamingKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsRenamingKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsRenamingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsRenamingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsRenamingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSURLVolumeSupportsRootDirectoryDatesKey', +) +external NSURLResourceKey _NSURLVolumeSupportsRootDirectoryDatesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsRootDirectoryDatesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsRootDirectoryDatesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsRootDirectoryDatesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsRootDirectoryDatesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsRootDirectoryDatesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsSparseFilesKey') +external NSURLResourceKey _NSURLVolumeSupportsSparseFilesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsSparseFilesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsSparseFilesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsSparseFilesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsSparseFilesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsSparseFilesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsSwapRenamingKey') +external NSURLResourceKey _NSURLVolumeSupportsSwapRenamingKey; + +DartNSURLResourceKey get NSURLVolumeSupportsSwapRenamingKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsSwapRenamingKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsSwapRenamingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsSwapRenamingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsSwapRenamingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsSymbolicLinksKey') +external NSURLResourceKey _NSURLVolumeSupportsSymbolicLinksKey; + +DartNSURLResourceKey get NSURLVolumeSupportsSymbolicLinksKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsSymbolicLinksKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsSymbolicLinksKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsSymbolicLinksKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsSymbolicLinksKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsVolumeSizesKey') +external NSURLResourceKey _NSURLVolumeSupportsVolumeSizesKey; + +DartNSURLResourceKey get NSURLVolumeSupportsVolumeSizesKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsVolumeSizesKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsVolumeSizesKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsVolumeSizesKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsVolumeSizesKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeSupportsZeroRunsKey') +external NSURLResourceKey _NSURLVolumeSupportsZeroRunsKey; + +DartNSURLResourceKey get NSURLVolumeSupportsZeroRunsKey => + objc.NSString.fromPointer( + _NSURLVolumeSupportsZeroRunsKey, + retain: true, + release: true, + ); + +set NSURLVolumeSupportsZeroRunsKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeSupportsZeroRunsKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeSupportsZeroRunsKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeTotalCapacityKey') +external NSURLResourceKey _NSURLVolumeTotalCapacityKey; + +DartNSURLResourceKey get NSURLVolumeTotalCapacityKey => + objc.NSString.fromPointer( + _NSURLVolumeTotalCapacityKey, + retain: true, + release: true, + ); + +set NSURLVolumeTotalCapacityKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeTotalCapacityKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeTotalCapacityKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeTypeNameKey') +external NSURLResourceKey _NSURLVolumeTypeNameKey; + +DartNSURLResourceKey get NSURLVolumeTypeNameKey => objc.NSString.fromPointer( + _NSURLVolumeTypeNameKey, + retain: true, + release: true, +); + +set NSURLVolumeTypeNameKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeTypeNameKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeTypeNameKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeURLForRemountingKey') +external NSURLResourceKey _NSURLVolumeURLForRemountingKey; + +DartNSURLResourceKey get NSURLVolumeURLForRemountingKey => + objc.NSString.fromPointer( + _NSURLVolumeURLForRemountingKey, + retain: true, + release: true, + ); + +set NSURLVolumeURLForRemountingKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeURLForRemountingKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeURLForRemountingKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeURLKey') +external NSURLResourceKey _NSURLVolumeURLKey; + +DartNSURLResourceKey get NSURLVolumeURLKey => + objc.NSString.fromPointer(_NSURLVolumeURLKey, retain: true, release: true); + +set NSURLVolumeURLKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeURLKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeURLKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSURLVolumeUUIDStringKey') +external NSURLResourceKey _NSURLVolumeUUIDStringKey; + +DartNSURLResourceKey get NSURLVolumeUUIDStringKey => objc.NSString.fromPointer( + _NSURLVolumeUUIDStringKey, + retain: true, + release: true, +); + +set NSURLVolumeUUIDStringKey(DartNSURLResourceKey value) { + objc.NSString.fromPointer( + _NSURLVolumeUUIDStringKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSURLVolumeUUIDStringKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSUbiquitousKeyValueStoreChangeReasonKey', +) +external ffi.Pointer +_NSUbiquitousKeyValueStoreChangeReasonKey; + +objc.NSString get NSUbiquitousKeyValueStoreChangeReasonKey => + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreChangeReasonKey, + retain: true, + release: true, + ); + +set NSUbiquitousKeyValueStoreChangeReasonKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreChangeReasonKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousKeyValueStoreChangeReasonKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSUbiquitousKeyValueStoreChangedKeysKey', +) +external ffi.Pointer +_NSUbiquitousKeyValueStoreChangedKeysKey; + +objc.NSString get NSUbiquitousKeyValueStoreChangedKeysKey => + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreChangedKeysKey, + retain: true, + release: true, + ); + +set NSUbiquitousKeyValueStoreChangedKeysKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreChangedKeysKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousKeyValueStoreChangedKeysKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUbiquitousKeyValueStoreDidChangeExternallyNotification', +) +external NSNotificationName +_NSUbiquitousKeyValueStoreDidChangeExternallyNotification; + +DartNSNotificationName +get NSUbiquitousKeyValueStoreDidChangeExternallyNotification => + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreDidChangeExternallyNotification, + retain: true, + release: true, + ); + +set NSUbiquitousKeyValueStoreDidChangeExternallyNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSUbiquitousKeyValueStoreDidChangeExternallyNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousKeyValueStoreDidChangeExternallyNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUbiquitousUserDefaultsCompletedInitialSyncNotification', +) +external NSNotificationName +_NSUbiquitousUserDefaultsCompletedInitialSyncNotification; + +DartNSNotificationName +get NSUbiquitousUserDefaultsCompletedInitialSyncNotification => + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsCompletedInitialSyncNotification, + retain: true, + release: true, + ); + +set NSUbiquitousUserDefaultsCompletedInitialSyncNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsCompletedInitialSyncNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousUserDefaultsCompletedInitialSyncNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUbiquitousUserDefaultsDidChangeAccountsNotification', +) +external NSNotificationName +_NSUbiquitousUserDefaultsDidChangeAccountsNotification; + +DartNSNotificationName +get NSUbiquitousUserDefaultsDidChangeAccountsNotification => + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsDidChangeAccountsNotification, + retain: true, + release: true, + ); + +set NSUbiquitousUserDefaultsDidChangeAccountsNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsDidChangeAccountsNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousUserDefaultsDidChangeAccountsNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUbiquitousUserDefaultsNoCloudAccountNotification', +) +external NSNotificationName _NSUbiquitousUserDefaultsNoCloudAccountNotification; + +DartNSNotificationName get NSUbiquitousUserDefaultsNoCloudAccountNotification => + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsNoCloudAccountNotification, + retain: true, + release: true, + ); + +set NSUbiquitousUserDefaultsNoCloudAccountNotification( + DartNSNotificationName value, +) { + objc.NSString.fromPointer( + _NSUbiquitousUserDefaultsNoCloudAccountNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquitousUserDefaultsNoCloudAccountNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUbiquityIdentityDidChangeNotification', +) +external NSNotificationName _NSUbiquityIdentityDidChangeNotification; + +DartNSNotificationName get NSUbiquityIdentityDidChangeNotification => + objc.NSString.fromPointer( + _NSUbiquityIdentityDidChangeNotification, + retain: true, + release: true, + ); + +set NSUbiquityIdentityDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUbiquityIdentityDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUbiquityIdentityDidChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUnarchiveFromDataTransformerName', +) +external NSValueTransformerName _NSUnarchiveFromDataTransformerName; + +DartNSValueTransformerName get NSUnarchiveFromDataTransformerName => + objc.NSString.fromPointer( + _NSUnarchiveFromDataTransformerName, + retain: true, + release: true, + ); + +set NSUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { + objc.NSString.fromPointer( + _NSUnarchiveFromDataTransformerName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUndefinedKeyException') +external NSExceptionName _NSUndefinedKeyException; + +DartNSExceptionName get NSUndefinedKeyException => objc.NSString.fromPointer( + _NSUndefinedKeyException, + retain: true, + release: true, +); + +set NSUndefinedKeyException(DartNSExceptionName value) { + objc.NSString.fromPointer( + _NSUndefinedKeyException, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndefinedKeyException = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUnderlyingErrorKey') +external NSErrorUserInfoKey _NSUnderlyingErrorKey; + +DartNSErrorUserInfoKey get NSUnderlyingErrorKey => objc.NSString.fromPointer( + _NSUnderlyingErrorKey, + retain: true, + release: true, +); + +set NSUnderlyingErrorKey(DartNSErrorUserInfoKey value) { + objc.NSString.fromPointer( + _NSUnderlyingErrorKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUnderlyingErrorKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUndoManagerCheckpointNotification') +external NSNotificationName _NSUndoManagerCheckpointNotification; + +DartNSNotificationName get NSUndoManagerCheckpointNotification => + objc.NSString.fromPointer( + _NSUndoManagerCheckpointNotification, + retain: true, + release: true, + ); + +set NSUndoManagerCheckpointNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerCheckpointNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerCheckpointNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerDidCloseUndoGroupNotification', +) +external NSNotificationName _NSUndoManagerDidCloseUndoGroupNotification; + +DartNSNotificationName get NSUndoManagerDidCloseUndoGroupNotification => + objc.NSString.fromPointer( + _NSUndoManagerDidCloseUndoGroupNotification, + retain: true, + release: true, + ); + +set NSUndoManagerDidCloseUndoGroupNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerDidCloseUndoGroupNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerDidCloseUndoGroupNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerDidOpenUndoGroupNotification', +) +external NSNotificationName _NSUndoManagerDidOpenUndoGroupNotification; + +DartNSNotificationName get NSUndoManagerDidOpenUndoGroupNotification => + objc.NSString.fromPointer( + _NSUndoManagerDidOpenUndoGroupNotification, + retain: true, + release: true, + ); + +set NSUndoManagerDidOpenUndoGroupNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerDidOpenUndoGroupNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerDidOpenUndoGroupNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerDidRedoChangeNotification', +) +external NSNotificationName _NSUndoManagerDidRedoChangeNotification; + +DartNSNotificationName get NSUndoManagerDidRedoChangeNotification => + objc.NSString.fromPointer( + _NSUndoManagerDidRedoChangeNotification, + retain: true, + release: true, + ); + +set NSUndoManagerDidRedoChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerDidRedoChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerDidRedoChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerDidUndoChangeNotification', +) +external NSNotificationName _NSUndoManagerDidUndoChangeNotification; + +DartNSNotificationName get NSUndoManagerDidUndoChangeNotification => + objc.NSString.fromPointer( + _NSUndoManagerDidUndoChangeNotification, + retain: true, + release: true, + ); + +set NSUndoManagerDidUndoChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerDidUndoChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerDidUndoChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSUndoManagerGroupIsDiscardableKey', +) +external ffi.Pointer _NSUndoManagerGroupIsDiscardableKey; + +objc.NSString get NSUndoManagerGroupIsDiscardableKey => + objc.NSString.fromPointer( + _NSUndoManagerGroupIsDiscardableKey, + retain: true, + release: true, + ); + +set NSUndoManagerGroupIsDiscardableKey(objc.NSString value) { + objc.NSString.fromPointer( + _NSUndoManagerGroupIsDiscardableKey, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerGroupIsDiscardableKey = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerWillCloseUndoGroupNotification', +) +external NSNotificationName _NSUndoManagerWillCloseUndoGroupNotification; + +DartNSNotificationName get NSUndoManagerWillCloseUndoGroupNotification => + objc.NSString.fromPointer( + _NSUndoManagerWillCloseUndoGroupNotification, + retain: true, + release: true, + ); + +set NSUndoManagerWillCloseUndoGroupNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerWillCloseUndoGroupNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerWillCloseUndoGroupNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerWillRedoChangeNotification', +) +external NSNotificationName _NSUndoManagerWillRedoChangeNotification; + +DartNSNotificationName get NSUndoManagerWillRedoChangeNotification => + objc.NSString.fromPointer( + _NSUndoManagerWillRedoChangeNotification, + retain: true, + release: true, + ); + +set NSUndoManagerWillRedoChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerWillRedoChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerWillRedoChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUndoManagerWillUndoChangeNotification', +) +external NSNotificationName _NSUndoManagerWillUndoChangeNotification; + +DartNSNotificationName get NSUndoManagerWillUndoChangeNotification => + objc.NSString.fromPointer( + _NSUndoManagerWillUndoChangeNotification, + retain: true, + release: true, + ); + +set NSUndoManagerWillUndoChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUndoManagerWillUndoChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUndoManagerWillUndoChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUnionOfArraysKeyValueOperator') +external NSKeyValueOperator _NSUnionOfArraysKeyValueOperator; + +DartNSKeyValueOperator get NSUnionOfArraysKeyValueOperator => + objc.NSString.fromPointer( + _NSUnionOfArraysKeyValueOperator, + retain: true, + release: true, + ); + +set NSUnionOfArraysKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSUnionOfArraysKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUnionOfArraysKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUnionOfObjectsKeyValueOperator') +external NSKeyValueOperator _NSUnionOfObjectsKeyValueOperator; + +DartNSKeyValueOperator get NSUnionOfObjectsKeyValueOperator => + objc.NSString.fromPointer( + _NSUnionOfObjectsKeyValueOperator, + retain: true, + release: true, + ); + +set NSUnionOfObjectsKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSUnionOfObjectsKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUnionOfObjectsKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUnionOfSetsKeyValueOperator') +external NSKeyValueOperator _NSUnionOfSetsKeyValueOperator; + +DartNSKeyValueOperator get NSUnionOfSetsKeyValueOperator => + objc.NSString.fromPointer( + _NSUnionOfSetsKeyValueOperator, + retain: true, + release: true, + ); + +set NSUnionOfSetsKeyValueOperator(DartNSKeyValueOperator value) { + objc.NSString.fromPointer( + _NSUnionOfSetsKeyValueOperator, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUnionOfSetsKeyValueOperator = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external NSRange NSUnionRange(NSRange range1, NSRange range2); + +@ffi.Native() +external NSRect NSUnionRect(NSRect aRect, NSRect bRect); + +@ffi.Native>( + symbol: 'NSUserActivityTypeBrowsingWeb', +) +external ffi.Pointer _NSUserActivityTypeBrowsingWeb; + +objc.NSString get NSUserActivityTypeBrowsingWeb => objc.NSString.fromPointer( + _NSUserActivityTypeBrowsingWeb, + retain: true, + release: true, +); + +set NSUserActivityTypeBrowsingWeb(objc.NSString value) { + objc.NSString.fromPointer( + _NSUserActivityTypeBrowsingWeb, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUserActivityTypeBrowsingWeb = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSUserDefaultsDidChangeNotification') +external NSNotificationName _NSUserDefaultsDidChangeNotification; + +DartNSNotificationName get NSUserDefaultsDidChangeNotification => + objc.NSString.fromPointer( + _NSUserDefaultsDidChangeNotification, + retain: true, + release: true, + ); + +set NSUserDefaultsDidChangeNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUserDefaultsDidChangeNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUserDefaultsDidChangeNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native( + symbol: 'NSUserDefaultsSizeLimitExceededNotification', +) +external NSNotificationName _NSUserDefaultsSizeLimitExceededNotification; + +DartNSNotificationName get NSUserDefaultsSizeLimitExceededNotification => + objc.NSString.fromPointer( + _NSUserDefaultsSizeLimitExceededNotification, + retain: true, + release: true, + ); + +set NSUserDefaultsSizeLimitExceededNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSUserDefaultsSizeLimitExceededNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUserDefaultsSizeLimitExceededNotification = _$$ref + .retainAndReturnPointer(); +} + +@ffi.Native Function()>(symbol: 'NSUserName') +external ffi.Pointer _NSUserName(); + +objc.NSString NSUserName() { + return objc.NSString.fromPointer(_NSUserName(), retain: true, release: true); +} + +@ffi.Native>( + symbol: 'NSUserNotificationDefaultSoundName', +) +external ffi.Pointer _NSUserNotificationDefaultSoundName; + +objc.NSString get NSUserNotificationDefaultSoundName => + objc.NSString.fromPointer( + _NSUserNotificationDefaultSoundName, + retain: true, + release: true, + ); + +set NSUserNotificationDefaultSoundName(objc.NSString value) { + objc.NSString.fromPointer( + _NSUserNotificationDefaultSoundName, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSUserNotificationDefaultSoundName = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSWeekDayNameArray') +external ffi.Pointer _NSWeekDayNameArray; + +objc.NSString get NSWeekDayNameArray => + objc.NSString.fromPointer(_NSWeekDayNameArray, retain: true, release: true); + +set NSWeekDayNameArray(objc.NSString value) { + objc.NSString.fromPointer( + _NSWeekDayNameArray, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSWeekDayNameArray = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSWillBecomeMultiThreadedNotification') +external NSNotificationName _NSWillBecomeMultiThreadedNotification; + +DartNSNotificationName get NSWillBecomeMultiThreadedNotification => + objc.NSString.fromPointer( + _NSWillBecomeMultiThreadedNotification, + retain: true, + release: true, + ); + +set NSWillBecomeMultiThreadedNotification(DartNSNotificationName value) { + objc.NSString.fromPointer( + _NSWillBecomeMultiThreadedNotification, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSWillBecomeMultiThreadedNotification = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: 'NSXMLParserErrorDomain') +external NSErrorDomain _NSXMLParserErrorDomain; + +DartNSErrorDomain get NSXMLParserErrorDomain => objc.NSString.fromPointer( + _NSXMLParserErrorDomain, + retain: true, + release: true, +); + +set NSXMLParserErrorDomain(DartNSErrorDomain value) { + objc.NSString.fromPointer( + _NSXMLParserErrorDomain, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSXMLParserErrorDomain = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSYearMonthWeekDesignations', +) +external ffi.Pointer _NSYearMonthWeekDesignations; + +objc.NSString get NSYearMonthWeekDesignations => objc.NSString.fromPointer( + _NSYearMonthWeekDesignations, + retain: true, + release: true, +); + +set NSYearMonthWeekDesignations(objc.NSString value) { + objc.NSString.fromPointer( + _NSYearMonthWeekDesignations, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _NSYearMonthWeekDesignations = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external final NSPoint NSZeroPoint; + +@ffi.Native() +external final NSRect NSZeroRect; + +@ffi.Native() +external final NSSize NSZeroSize; + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, NSUInteger, NSUInteger) +>() +external ffi.Pointer NSZoneCalloc( + ffi.Pointer zone, + int numElems, + int byteSize, +); + +@ffi.Native, ffi.Pointer)>() +external void NSZoneFree(ffi.Pointer zone, ffi.Pointer ptr); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer NSZoneFromPointer(ffi.Pointer ptr); + +@ffi.Native Function(ffi.Pointer, NSUInteger)>() +external ffi.Pointer NSZoneMalloc(ffi.Pointer zone, int size); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'NSZoneName', +) +external ffi.Pointer _NSZoneName(ffi.Pointer zone); + +objc.NSString NSZoneName(ffi.Pointer zone) { + return objc.NSString.fromPointer( + _NSZoneName(zone), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>() +external ffi.Pointer NSZoneRealloc( + ffi.Pointer zone, + ffi.Pointer ptr, + int size, +); + +@Deprecated('Not supported') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'NXReadNSObjectFromCoder') +external ffi.Pointer _NXReadNSObjectFromCoder( + ffi.Pointer decoder, +); + +objc.NSObject? NXReadNSObjectFromCoder(objc.NSCoder decoder) { + final _$$ref = decoder.ref; + return _NXReadNSObjectFromCoder(_$$ref.pointer).address == 0 + ? null + : objc.NSObject.fromPointer( + _NXReadNSObjectFromCoder(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime NanosecondsToAbsolute(Nanoseconds nanoseconds); + +@Deprecated('Deprecated') +@ffi.Native() +external int NanosecondsToDuration(Nanoseconds theNanoseconds); + +@ffi.Native< + OSStatus Function( + TextEncoding, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int NearestMacTextEncodings( + int generalEncoding, + ffi.Pointer bestMacEncoding, + ffi.Pointer alternateMacEncoding, +); + +@ffi.Native() +external AECoerceDescUPP NewAECoerceDescUPP(AECoerceDescProcPtr userRoutine); + +@ffi.Native() +external AECoercePtrUPP NewAECoercePtrUPP(AECoercePtrProcPtr userRoutine); + +@ffi.Native() +external AEDisposeExternalUPP NewAEDisposeExternalUPP( + AEDisposeExternalProcPtr userRoutine, +); + +@ffi.Native() +external AEEventHandlerUPP NewAEEventHandlerUPP( + AEEventHandlerProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Collection NewCollection(); + +@Deprecated('Deprecated') +@ffi.Native() +external CollectionExceptionUPP NewCollectionExceptionUPP( + CollectionExceptionProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external CollectionFlattenUPP NewCollectionFlattenUPP( + CollectionFlattenProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external ComponentFunctionUPP NewComponentFunctionUPP( + ProcPtr userRoutine, + int procInfo, +); + +@Deprecated('Deprecated') +@ffi.Native< + ComponentMPWorkFunctionUPP Function(ComponentMPWorkFunctionProcPtr) +>() +external ComponentMPWorkFunctionUPP NewComponentMPWorkFunctionUPP( + ComponentMPWorkFunctionProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external ComponentRoutineUPP NewComponentRoutineUPP( + ComponentRoutineProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native< + DebugAssertOutputHandlerUPP Function(DebugAssertOutputHandlerProcPtr) +>() +external DebugAssertOutputHandlerUPP NewDebugAssertOutputHandlerUPP( + DebugAssertOutputHandlerProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(OSType, ConstStr255Param, DebugComponentCallbackUPP) +>() +external int NewDebugComponent( + int componentSignature, + ConstStr255Param componentName, + DebugComponentCallbackUPP componentCallback, +); + +@Deprecated('Deprecated') +@ffi.Native() +external DebugComponentCallbackUPP NewDebugComponentCallbackUPP( + DebugComponentCallbackProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int NewDebugOption( + int componentSignature, + int optionSelectorNum, + ConstStr255Param optionName, +); + +@Deprecated('Deprecated') +@ffi.Native() +external DebuggerDisposeThreadUPP NewDebuggerDisposeThreadUPP( + DebuggerDisposeThreadProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external DebuggerNewThreadUPP NewDebuggerNewThreadUPP( + DebuggerNewThreadProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native< + DebuggerThreadSchedulerUPP Function(DebuggerThreadSchedulerProcPtr) +>() +external DebuggerThreadSchedulerUPP NewDebuggerThreadSchedulerUPP( + DebuggerThreadSchedulerProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external DeferredTaskUPP NewDeferredTaskUPP(DeferredTaskProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle NewEmptyHandle(); + +@Deprecated('No longer supported') +@ffi.Native() +external ExceptionHandlerUPP NewExceptionHandlerUPP( + ExceptionHandlerProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external FNSubscriptionUPP NewFNSubscriptionUPP( + FNSubscriptionProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external FSVolumeEjectUPP NewFSVolumeEjectUPP(FSVolumeEjectProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external FSVolumeMountUPP NewFSVolumeMountUPP(FSVolumeMountProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external FSVolumeUnmountUPP NewFSVolumeUnmountUPP( + FSVolumeUnmountProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native< + FolderManagerNotificationUPP Function(FolderManagerNotificationProcPtr) +>() +external FolderManagerNotificationUPP NewFolderManagerNotificationUPP( + FolderManagerNotificationProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int NewGestaltValue(int selector, int newValue); + +@Deprecated('Deprecated') +@ffi.Native< + GetMissingComponentResourceUPP Function(GetMissingComponentResourceProcPtr) +>() +external GetMissingComponentResourceUPP NewGetMissingComponentResourceUPP( + GetMissingComponentResourceProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle NewHandle(int byteCount); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle NewHandleClear(int byteCount); + +@Deprecated('Deprecated') +@ffi.Native() +external IOCompletionUPP NewIOCompletionUPP(IOCompletionProcPtr userRoutine); + +@ffi.Native() +external IconActionUPP NewIconActionUPP(IconActionProcPtr userRoutine); + +@ffi.Native() +external IconGetterUPP NewIconGetterUPP(IconGetterProcPtr userRoutine); + +@ffi.Native() +external IndexToUCStringUPP NewIndexToUCStringUPP( + IndexToUCStringProcPtr userRoutine, +); + +@Deprecated('No longer supported') +@ffi.Native() +external KCCallbackUPP NewKCCallbackUPP(KCCallbackProcPtr userRoutine); + +@ffi.Native() +external OSLAccessorUPP NewOSLAccessorUPP(OSLAccessorProcPtr userRoutine); + +@ffi.Native() +external OSLAdjustMarksUPP NewOSLAdjustMarksUPP( + OSLAdjustMarksProcPtr userRoutine, +); + +@ffi.Native() +external OSLCompareUPP NewOSLCompareUPP(OSLCompareProcPtr userRoutine); + +@ffi.Native() +external OSLCountUPP NewOSLCountUPP(OSLCountProcPtr userRoutine); + +@ffi.Native() +external OSLDisposeTokenUPP NewOSLDisposeTokenUPP( + OSLDisposeTokenProcPtr userRoutine, +); + +@ffi.Native() +external OSLGetErrDescUPP NewOSLGetErrDescUPP(OSLGetErrDescProcPtr userRoutine); + +@ffi.Native() +external OSLGetMarkTokenUPP NewOSLGetMarkTokenUPP( + OSLGetMarkTokenProcPtr userRoutine, +); + +@ffi.Native() +external OSLMarkUPP NewOSLMarkUPP(OSLMarkProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr NewPtr(int byteCount); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr NewPtrClear(int byteCount); + +@Deprecated('Deprecated') +@ffi.Native() +external ResErrUPP NewResErrUPP(ResErrProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external SelectorFunctionUPP NewSelectorFunctionUPP( + SelectorFunctionProcPtr userRoutine, +); + +@Deprecated('No longer supported') +@ffi.Native() +external SleepQUPP NewSleepQUPP(SleepQProcPtr userRoutine); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer) +>() +external int NewSpeechChannel( + ffi.Pointer voice, + ffi.Pointer chan, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechDoneUPP NewSpeechDoneUPP(SpeechDoneProcPtr userRoutine); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechErrorUPP NewSpeechErrorUPP(SpeechErrorProcPtr userRoutine); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechPhonemeUPP NewSpeechPhonemeUPP(SpeechPhonemeProcPtr userRoutine); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechSyncUPP NewSpeechSyncUPP(SpeechSyncProcPtr userRoutine); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechTextDoneUPP NewSpeechTextDoneUPP( + SpeechTextDoneProcPtr userRoutine, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external SpeechWordUPP NewSpeechWordUPP(SpeechWordProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ThreadStyle, + ThreadEntryTPP, + ffi.Pointer, + Size, + ThreadOptions, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int NewThread( + int threadStyle, + ThreadEntryTPP threadEntry, + ffi.Pointer threadParam, + int stackSize, + int options, + ffi.Pointer> threadResult, + ffi.Pointer threadMade, +); + +@Deprecated('Deprecated') +@ffi.Native() +external ThreadEntryUPP NewThreadEntryUPP(ThreadEntryProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external ThreadSchedulerUPP NewThreadSchedulerUPP( + ThreadSchedulerProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external ThreadSwitchUPP NewThreadSwitchUPP(ThreadSwitchProcPtr userRoutine); + +@Deprecated('Deprecated') +@ffi.Native() +external ThreadTerminationUPP NewThreadTerminationUPP( + ThreadTerminationProcPtr userRoutine, +); + +@Deprecated('Deprecated') +@ffi.Native() +external TimerUPP NewTimerUPP(TimerProcPtr userRoutine); + +@ffi.Native() +external UnicodeToTextFallbackUPP NewUnicodeToTextFallbackUPP( + UnicodeToTextFallbackProcPtr userRoutine, +); + +@Deprecated( + 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicAdd32(int __theAmount, ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_add() from instead') +@ffi.Native)>() +external int OSAtomicAdd32Barrier( + int __theAmount, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', +) +@ffi.Native< + ffi.Int64 Function(ffi.Int64, ffi.Pointer) +>() +external int OSAtomicAdd64( + int __theAmount, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_add() from instead') +@ffi.Native< + ffi.Int64 Function(ffi.Int64, ffi.Pointer) +>() +external int OSAtomicAdd64Barrier( + int __theAmount, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_and_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicAnd32(int __theMask, ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_and() from instead') +@ffi.Native)>() +external int OSAtomicAnd32Barrier( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_and_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicAnd32Orig( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_and() from instead') +@ffi.Native)>() +external int OSAtomicAnd32OrigBarrier( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external bool OSAtomicCompareAndSwap32( + int __oldValue, + int __newValue, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_compare_exchange_strong() from instead') +@ffi.Native)>() +external bool OSAtomicCompareAndSwap32Barrier( + int __oldValue, + int __newValue, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', +) +@ffi.Native< + ffi.Bool Function( + ffi.Int64, + ffi.Int64, + ffi.Pointer, + ) +>() +external bool OSAtomicCompareAndSwap64( + int __oldValue, + int __newValue, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_compare_exchange_strong() from instead') +@ffi.Native< + ffi.Bool Function( + ffi.Int64, + ffi.Int64, + ffi.Pointer, + ) +>() +external bool OSAtomicCompareAndSwap64Barrier( + int __oldValue, + int __newValue, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', +) +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external bool OSAtomicCompareAndSwapPtr( + ffi.Pointer __oldValue, + ffi.Pointer __newValue, + ffi.Pointer> __theValue, +); + +@Deprecated('Use atomic_compare_exchange_strong() from instead') +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external bool OSAtomicCompareAndSwapPtrBarrier( + ffi.Pointer __oldValue, + ffi.Pointer __newValue, + ffi.Pointer> __theValue, +); + +@Deprecated( + 'Use atomic_fetch_sub_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicDecrement32(ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_sub() from instead') +@ffi.Native)>() +external int OSAtomicDecrement32Barrier(ffi.Pointer __theValue); + +@Deprecated( + 'Use atomic_fetch_sub_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicDecrement64( + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_sub() from instead') +@ffi.Native)>() +external int OSAtomicDecrement64Barrier( + ffi.Pointer __theValue, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Size) +>() +external ffi.Pointer OSAtomicDequeue( + ffi.Pointer __list, + int __offset, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external void OSAtomicEnqueue( + ffi.Pointer __list, + ffi.Pointer __new, + int __offset, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Size) +>() +external ffi.Pointer OSAtomicFifoDequeue( + ffi.Pointer __list, + int __offset, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external void OSAtomicFifoEnqueue( + ffi.Pointer __list, + ffi.Pointer __new, + int __offset, +); + +@Deprecated( + 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicIncrement32(ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_add() from instead') +@ffi.Native)>() +external int OSAtomicIncrement32Barrier(ffi.Pointer __theValue); + +@Deprecated( + 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicIncrement64( + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_add() from instead') +@ffi.Native)>() +external int OSAtomicIncrement64Barrier( + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_or_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicOr32(int __theMask, ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_or() from instead') +@ffi.Native)>() +external int OSAtomicOr32Barrier( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_or_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicOr32Orig( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_or() from instead') +@ffi.Native)>() +external int OSAtomicOr32OrigBarrier( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_xor_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicXor32(int __theMask, ffi.Pointer __theValue); + +@Deprecated('Use atomic_fetch_xor() from instead') +@ffi.Native)>() +external int OSAtomicXor32Barrier( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated( + 'Use atomic_fetch_xor_explicit(memory_order_relaxed) from instead', +) +@ffi.Native)>() +external int OSAtomicXor32Orig( + int __theMask, + ffi.Pointer __theValue, +); + +@Deprecated('Use atomic_fetch_xor() from instead') +@ffi.Native)>() +external int OSAtomicXor32OrigBarrier( + int __theMask, + ffi.Pointer __theValue, +); + +@ffi.Native< + kern_return_t Function( + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int OSGetNotificationFromMessage( + ffi.Pointer msg, + int index$1, + ffi.Pointer type, + ffi.Pointer reference, + ffi.Pointer> content, + ffi.Pointer size, +); + +@Deprecated('Use atomic_thread_fence() from instead') +@ffi.Native() +external void OSMemoryBarrier(); + +@Deprecated('Use os_unfair_lock_lock() from instead') +@ffi.Native)>() +external void OSSpinLockLock(ffi.Pointer __lock); + +@Deprecated('Use os_unfair_lock_trylock() from instead') +@ffi.Native)>() +external bool OSSpinLockTry(ffi.Pointer __lock); + +@Deprecated('Use os_unfair_lock_unlock() from instead') +@ffi.Native)>() +external void OSSpinLockUnlock(ffi.Pointer __lock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int OpenAComponent( + Component aComponent, + ffi.Pointer ci, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int OpenAComponentResFile( + Component aComponent, + ffi.Pointer resRef, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int OpenADefaultComponent( + int componentType, + int componentSubType, + ffi.Pointer ci, +); + +@Deprecated('Deprecated') +@ffi.Native() +external ComponentInstance OpenComponent(Component aComponent); + +@Deprecated('Deprecated') +@ffi.Native() +external int OpenComponentResFile(Component aComponent); + +@Deprecated('Deprecated') +@ffi.Native() +external ComponentInstance OpenDefaultComponent( + int componentType, + int componentSubType, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int OverrideIconRef(IconRef oldIconRef, IconRef newIconRef); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBAllocateForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBAllocateForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCatalogSearchAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCatalogSearchSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCloseForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCloseForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCloseIteratorAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCloseIteratorSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCompareFSRefsAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCompareFSRefsSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCreateDirectoryUnicodeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCreateDirectoryUnicodeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external void PBCreateFileAndOpenForkUnicodeAsync( + FSRefForkIOParamPtr paramBlock, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBCreateFileAndOpenForkUnicodeSync(FSRefForkIOParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCreateFileUnicodeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCreateFileUnicodeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBCreateForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBCreateForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBDeleteForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBDeleteForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBDeleteObjectAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBDeleteObjectSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBExchangeObjectsAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBExchangeObjectsSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFSCopyFileAsync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFSCopyFileSync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFSResolveNodeIDAsync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFSResolveNodeIDSync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBFlushForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBFlushForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFlushVolumeAsync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBFlushVolumeSync(FSRefParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetCatalogInfoAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetCatalogInfoBulkAsync( + ffi.Pointer paramBlock, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetCatalogInfoBulkSync( + ffi.Pointer paramBlock, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetCatalogInfoSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetForkCBInfoAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetForkCBInfoSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetForkPositionAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetForkPositionSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetForkSizeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetForkSizeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBGetVolumeInfoAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBGetVolumeInfoSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBIterateForksAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBIterateForksSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBMakeFSRefUnicodeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBMakeFSRefUnicodeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBMoveObjectAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBMoveObjectSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBOpenForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBOpenForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBOpenIteratorAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBOpenIteratorSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBReadForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBReadForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBRenameUnicodeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBRenameUnicodeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBSetCatalogInfoAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBSetCatalogInfoSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBSetForkPositionAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBSetForkPositionSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBSetForkSizeAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBSetForkSizeSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBSetVolumeInfoAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBSetVolumeInfoSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBUnlinkObjectAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBUnlinkObjectSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void PBWriteForkAsync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int PBWriteForkSync(ffi.Pointer paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBXLockRangeAsync(FSRangeLockParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBXLockRangeSync(FSRangeLockParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBXUnlockRangeAsync(FSRangeLockParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PBXUnlockRangeSync(FSRangeLockParamPtr paramBlock); + +@Deprecated('Deprecated') +@ffi.Native() +external int PLpos(ConstStr255Param str1, ConstStr255Param searchStr); + +@Deprecated('Deprecated') +@ffi.Native() +external StringPtr PLstrcat(StringPtr str, ConstStr255Param append); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr PLstrchr(ConstStr255Param str1, int ch1); + +@Deprecated('Deprecated') +@ffi.Native() +external int PLstrcmp(ConstStr255Param str1, ConstStr255Param str2); + +@Deprecated('Deprecated') +@ffi.Native() +external StringPtr PLstrcpy(StringPtr dest, ConstStr255Param source); + +@Deprecated('Deprecated') +@ffi.Native() +external int PLstrlen(ConstStr255Param str); + +@Deprecated('Deprecated') +@ffi.Native() +external StringPtr PLstrncat(StringPtr str1, ConstStr255Param append, int num); + +@Deprecated('Deprecated') +@ffi.Native() +external int PLstrncmp(ConstStr255Param str1, ConstStr255Param str2, int num); + +@Deprecated('Deprecated') +@ffi.Native() +external StringPtr PLstrncpy(StringPtr dest, ConstStr255Param source, int num); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr PLstrpbrk(ConstStr255Param str1, ConstStr255Param charSet); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr PLstrrchr(ConstStr255Param str1, int ch1); + +@Deprecated('Deprecated') +@ffi.Native() +external int PLstrspn(ConstStr255Param str1, ConstStr255Param charSet); + +@Deprecated('Deprecated') +@ffi.Native() +external Ptr PLstrstr(ConstStr255Param str1, ConstStr255Param searchStr); + +@ffi.Native() +external CGImageRef PMCGImageCreateWithEPSDataProvider( + CGDataProviderRef epsDataProvider, + CGImageRef epsPreview, +); + +@ffi.Native)>() +external int PMCopyAvailablePPDs(int domain, ffi.Pointer ppds); + +@ffi.Native)>() +external int PMCopyLocalizedPPD( + CFURLRef ppd, + ffi.Pointer localizedPPD, +); + +@ffi.Native)>() +external int PMCopyPPDData(CFURLRef ppd, ffi.Pointer data); + +@ffi.Native() +external int PMCopyPageFormat(PMPageFormat formatSrc, PMPageFormat formatDest); + +@ffi.Native() +external int PMCopyPrintSettings( + PMPrintSettings settingSrc, + PMPrintSettings settingDest, +); + +@ffi.Native)>() +external int PMCreateGenericPrinter(ffi.Pointer printer); + +@ffi.Native)>() +external int PMCreatePageFormat(ffi.Pointer pageFormat); + +@ffi.Native, PMPaper)>() +external int PMCreatePageFormatWithPMPaper( + ffi.Pointer pageFormat, + PMPaper paper, +); + +@ffi.Native)>() +external int PMCreatePrintSettings(ffi.Pointer printSettings); + +@ffi.Native)>() +external int PMCreateSession(ffi.Pointer printSession); + +@ffi.Native)>() +external int PMGetAdjustedPageRect( + PMPageFormat pageFormat, + ffi.Pointer pageRect, +); + +@ffi.Native)>() +external int PMGetAdjustedPaperRect( + PMPageFormat pageFormat, + ffi.Pointer paperRect, +); + +@ffi.Native)>() +external int PMGetCollate( + PMPrintSettings printSettings, + ffi.Pointer collate, +); + +@ffi.Native)>() +external int PMGetCopies( + PMPrintSettings printSettings, + ffi.Pointer copies, +); + +@ffi.Native)>() +external int PMGetDuplex( + PMPrintSettings printSettings, + ffi.Pointer duplexSetting, +); + +@ffi.Native)>() +external int PMGetFirstPage( + PMPrintSettings printSettings, + ffi.Pointer first, +); + +@ffi.Native)>() +external int PMGetLastPage( + PMPrintSettings printSettings, + ffi.Pointer last, +); + +@ffi.Native)>() +external int PMGetOrientation( + PMPageFormat pageFormat, + ffi.Pointer orientation, +); + +@ffi.Native< + OSStatus Function( + PMPageFormat, + OSType, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int PMGetPageFormatExtendedData( + PMPageFormat pageFormat, + int dataID, + ffi.Pointer size, + ffi.Pointer extendedData, +); + +@ffi.Native)>() +external int PMGetPageFormatPaper( + PMPageFormat format, + ffi.Pointer paper, +); + +@ffi.Native< + OSStatus Function(PMPrintSettings, ffi.Pointer, ffi.Pointer) +>() +external int PMGetPageRange( + PMPrintSettings printSettings, + ffi.Pointer minPage, + ffi.Pointer maxPage, +); + +@ffi.Native)>() +external int PMGetScale(PMPageFormat pageFormat, ffi.Pointer scale); + +@ffi.Native)>() +external int PMGetUnadjustedPageRect( + PMPageFormat pageFormat, + ffi.Pointer pageRect, +); + +@ffi.Native)>() +external int PMGetUnadjustedPaperRect( + PMPageFormat pageFormat, + ffi.Pointer paperRect, +); + +@ffi.Native< + OSStatus Function(PMPageFormat, ffi.Pointer, ffi.UnsignedInt) +>(symbol: 'PMPageFormatCreateDataRepresentation') +external int _PMPageFormatCreateDataRepresentation( + PMPageFormat pageFormat, + ffi.Pointer data, + int format, +); + +DartSInt32 PMPageFormatCreateDataRepresentation( + PMPageFormat pageFormat, + ffi.Pointer data, + PMDataFormat format, +) { + return _PMPageFormatCreateDataRepresentation(pageFormat, data, format.value); +} + +@ffi.Native)>() +external int PMPageFormatCreateWithDataRepresentation( + CFDataRef data, + ffi.Pointer pageFormat, +); + +@ffi.Native)>() +external int PMPageFormatGetPrinterID( + PMPageFormat pageFormat, + ffi.Pointer printerID, +); + +@ffi.Native< + OSStatus Function( + PMPrinter, + CFStringRef, + CFStringRef, + ffi.Double, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int PMPaperCreateCustom( + PMPrinter printer, + CFStringRef id, + CFStringRef name, + double width, + double height, + ffi.Pointer margins, + ffi.Pointer paperP, +); + +@ffi.Native)>() +external int PMPaperCreateLocalizedName( + PMPaper paper, + PMPrinter printer, + ffi.Pointer paperName, +); + +@ffi.Native)>() +external int PMPaperGetHeight( + PMPaper paper, + ffi.Pointer paperHeight, +); + +@ffi.Native)>() +external int PMPaperGetID(PMPaper paper, ffi.Pointer paperID); + +@ffi.Native)>() +external int PMPaperGetMargins( + PMPaper paper, + ffi.Pointer paperMargins, +); + +@ffi.Native)>() +external int PMPaperGetPPDPaperName( + PMPaper paper, + ffi.Pointer paperName, +); + +@ffi.Native)>() +external int PMPaperGetPrinterID( + PMPaper paper, + ffi.Pointer printerID, +); + +@ffi.Native)>() +external int PMPaperGetWidth(PMPaper paper, ffi.Pointer paperWidth); + +@ffi.Native() +external int PMPaperIsCustom(PMPaper paper); + +@ffi.Native)>() +external int PMPresetCopyName(PMPreset preset, ffi.Pointer name); + +@ffi.Native< + OSStatus Function(PMPreset, PMPrintSession, ffi.Pointer) +>() +external int PMPresetCreatePrintSettings( + PMPreset preset, + PMPrintSession session, + ffi.Pointer printSettings, +); + +@ffi.Native)>() +external int PMPresetGetAttributes( + PMPreset preset, + ffi.Pointer attributes, +); + +@ffi.Native)>() +external int PMPrintSettingsCopyAsDictionary( + PMPrintSettings printSettings, + ffi.Pointer settingsDictionary, +); + +@ffi.Native)>() +external int PMPrintSettingsCopyKeys( + PMPrintSettings printSettings, + ffi.Pointer settingsKeys, +); + +@ffi.Native< + OSStatus Function(PMPrintSettings, ffi.Pointer, ffi.UnsignedInt) +>(symbol: 'PMPrintSettingsCreateDataRepresentation') +external int _PMPrintSettingsCreateDataRepresentation( + PMPrintSettings printSettings, + ffi.Pointer data, + int format, +); + +DartSInt32 PMPrintSettingsCreateDataRepresentation( + PMPrintSettings printSettings, + ffi.Pointer data, + PMDataFormat format, +) { + return _PMPrintSettingsCreateDataRepresentation( + printSettings, + data, + format.value, + ); +} + +@ffi.Native)>() +external int PMPrintSettingsCreateWithDataRepresentation( + CFDataRef data, + ffi.Pointer printSettings, +); + +@ffi.Native)>() +external int PMPrintSettingsGetJobName( + PMPrintSettings printSettings, + ffi.Pointer name, +); + +@ffi.Native< + OSStatus Function(PMPrintSettings, CFStringRef, ffi.Pointer) +>() +external int PMPrintSettingsGetValue( + PMPrintSettings printSettings, + CFStringRef key, + ffi.Pointer value, +); + +@ffi.Native() +external int PMPrintSettingsSetJobName( + PMPrintSettings printSettings, + CFStringRef name, +); + +@ffi.Native< + OSStatus Function(PMPrintSettings, CFStringRef, CFTypeRef, Boolean) +>() +external int PMPrintSettingsSetValue( + PMPrintSettings printSettings, + CFStringRef key, + CFTypeRef value, + int locked, +); + +@ffi.Native< + OSStatus Function(PMPrintSettings, ffi.Pointer>) +>() +external int PMPrintSettingsToOptions( + PMPrintSettings settings, + ffi.Pointer> options, +); + +@ffi.Native< + OSStatus Function( + PMPrintSettings, + PMPrinter, + PMPageFormat, + ffi.Pointer>, + ) +>() +external int PMPrintSettingsToOptionsWithPrinterAndPageFormat( + PMPrintSettings settings, + PMPrinter printer, + PMPageFormat pageFormat, + ffi.Pointer> options, +); + +@ffi.Native)>() +external int PMPrinterCopyDescriptionURL( + PMPrinter printer, + CFStringRef descriptionType, + ffi.Pointer fileURL, +); + +@ffi.Native)>() +external int PMPrinterCopyDeviceURI( + PMPrinter printer, + ffi.Pointer deviceURI, +); + +@ffi.Native)>() +external int PMPrinterCopyHostName( + PMPrinter printer, + ffi.Pointer hostNameP, +); + +@ffi.Native)>() +external int PMPrinterCopyPresets( + PMPrinter printer, + ffi.Pointer presetList, +); + +@ffi.Native)>() +external int PMPrinterCopyState( + PMPrinter printer, + ffi.Pointer stateDict, +); + +@ffi.Native() +external PMPrinter PMPrinterCreateFromPrinterID(CFStringRef printerID); + +@ffi.Native< + OSStatus Function(PMPrinter, ffi.Pointer, ffi.Pointer) +>() +external int PMPrinterGetCommInfo( + PMPrinter printer, + ffi.Pointer supportsControlCharRangeP, + ffi.Pointer supportsEightBitP, +); + +@ffi.Native)>() +external int PMPrinterGetDriverCreator( + PMPrinter printer, + ffi.Pointer creator, +); + +@ffi.Native)>() +external int PMPrinterGetDriverReleaseInfo( + PMPrinter printer, + ffi.Pointer release, +); + +@ffi.Native() +external CFStringRef PMPrinterGetID(PMPrinter printer); + +@ffi.Native)>() +external int PMPrinterGetIndexedPrinterResolution( + PMPrinter printer, + int index$1, + ffi.Pointer resolutionP, +); + +@ffi.Native)>() +external int PMPrinterGetLanguageInfo( + PMPrinter printer, + ffi.Pointer info, +); + +@ffi.Native() +external CFStringRef PMPrinterGetLocation(PMPrinter printer); + +@ffi.Native)>() +external int PMPrinterGetMakeAndModelName( + PMPrinter printer, + ffi.Pointer makeAndModel, +); + +@ffi.Native< + OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) +>() +external int PMPrinterGetMimeTypes( + PMPrinter printer, + PMPrintSettings settings, + ffi.Pointer mimeTypes, +); + +@ffi.Native() +external CFStringRef PMPrinterGetName(PMPrinter printer); + +@ffi.Native< + OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) +>() +external int PMPrinterGetOutputResolution( + PMPrinter printer, + PMPrintSettings printSettings, + ffi.Pointer resolutionP, +); + +@ffi.Native)>() +external int PMPrinterGetPaperList( + PMPrinter printer, + ffi.Pointer paperList, +); + +@ffi.Native)>() +external int PMPrinterGetPrinterResolutionCount( + PMPrinter printer, + ffi.Pointer countP, +); + +@ffi.Native)>() +external int PMPrinterGetState( + PMPrinter printer, + ffi.Pointer state, +); + +@ffi.Native() +external int PMPrinterIsDefault(PMPrinter printer); + +@ffi.Native() +external int PMPrinterIsFavorite(PMPrinter printer); + +@ffi.Native() +external int PMPrinterIsPostScriptCapable(PMPrinter printer); + +@ffi.Native)>() +external int PMPrinterIsPostScriptPrinter( + PMPrinter printer, + ffi.Pointer isPSPrinter, +); + +@ffi.Native)>() +external int PMPrinterIsRemote( + PMPrinter printer, + ffi.Pointer isRemoteP, +); + +@ffi.Native< + OSStatus Function( + PMPrinter, + PMPrintSettings, + PMPageFormat, + CFStringRef, + CFURLRef, + ) +>() +external int PMPrinterPrintWithFile( + PMPrinter printer, + PMPrintSettings settings, + PMPageFormat format, + CFStringRef mimeType, + CFURLRef fileURL, +); + +@ffi.Native< + OSStatus Function( + PMPrinter, + PMPrintSettings, + PMPageFormat, + CFStringRef, + CGDataProviderRef, + ) +>() +external int PMPrinterPrintWithProvider( + PMPrinter printer, + PMPrintSettings settings, + PMPageFormat format, + CFStringRef mimeType, + CGDataProviderRef provider, +); + +@ffi.Native< + OSStatus Function(PMPrinter, CFStringRef, CFStringRef, CFDictionaryRef) +>() +external int PMPrinterSendCommand( + PMPrinter printer, + CFStringRef commandString, + CFStringRef jobTitle, + CFDictionaryRef options, +); + +@ffi.Native() +external int PMPrinterSetDefault(PMPrinter printer); + +@ffi.Native< + OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) +>() +external int PMPrinterSetOutputResolution( + PMPrinter printer, + PMPrintSettings printSettings, + ffi.Pointer resolutionP, +); + +@ffi.Native< + OSStatus Function( + PMPrinter, + PMPrintSettings, + PMPageFormat, + CFStringRef, + CFURLRef, + CFURLRef, + ) +>() +external int PMPrinterWritePostScriptToURL( + PMPrinter printer, + PMPrintSettings settings, + PMPageFormat format, + CFStringRef mimeType, + CFURLRef sourceFileURL, + CFURLRef destinationFileURL, +); + +@ffi.Native() +external int PMRelease(PMObject object); + +@ffi.Native() +external int PMRetain(PMObject object); + +@ffi.Native)>() +external int PMServerCreatePrinterList( + PMServer server, + ffi.Pointer printerList, +); + +@ffi.Native() +external int PMServerLaunchPrinterBrowser( + PMServer server, + CFDictionaryRef options, +); + +@ffi.Native() +external int PMSessionBeginCGDocumentNoDialog( + PMPrintSession printSession, + PMPrintSettings printSettings, + PMPageFormat pageFormat, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPageFormat, ffi.Pointer) +>() +external int PMSessionBeginPageNoDialog( + PMPrintSession printSession, + PMPageFormat pageFormat, + ffi.Pointer pageFrame, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) +>() +external int PMSessionCopyDestinationFormat( + PMPrintSession printSession, + PMPrintSettings printSettings, + ffi.Pointer destFormatP, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) +>() +external int PMSessionCopyDestinationLocation( + PMPrintSession printSession, + PMPrintSettings printSettings, + ffi.Pointer destLocationP, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMDestinationType, ffi.Pointer) +>() +external int PMSessionCopyOutputFormatList( + PMPrintSession printSession, + int destType, + ffi.Pointer documentFormatP, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPrinter, ffi.Pointer) +>() +external int PMSessionCreatePageFormatList( + PMPrintSession printSession, + PMPrinter printer, + ffi.Pointer pageFormatList, +); + +@ffi.Native< + OSStatus Function( + PMPrintSession, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int PMSessionCreatePrinterList( + PMPrintSession printSession, + ffi.Pointer printerList, + ffi.Pointer currentIndex, + ffi.Pointer currentPrinter, +); + +@ffi.Native() +external int PMSessionDefaultPageFormat( + PMPrintSession printSession, + PMPageFormat pageFormat, +); + +@ffi.Native() +external int PMSessionDefaultPrintSettings( + PMPrintSession printSession, + PMPrintSettings printSettings, +); + +@ffi.Native() +external int PMSessionEndDocumentNoDialog(PMPrintSession printSession); + +@ffi.Native() +external int PMSessionEndPageNoDialog(PMPrintSession printSession); + +@ffi.Native() +external int PMSessionError(PMPrintSession printSession); + +@ffi.Native)>() +external int PMSessionGetCGGraphicsContext( + PMPrintSession printSession, + ffi.Pointer context, +); + +@ffi.Native)>() +external int PMSessionGetCurrentPrinter( + PMPrintSession printSession, + ffi.Pointer currentPrinter, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, CFStringRef, ffi.Pointer) +>() +external int PMSessionGetDataFromSession( + PMPrintSession printSession, + CFStringRef key, + ffi.Pointer data, +); + +@ffi.Native< + OSStatus Function( + PMPrintSession, + PMPrintSettings, + ffi.Pointer, + ) +>() +external int PMSessionGetDestinationType( + PMPrintSession printSession, + PMPrintSettings printSettings, + ffi.Pointer destTypeP, +); + +@ffi.Native() +external int PMSessionSetCurrentPMPrinter( + PMPrintSession session, + PMPrinter printer, +); + +@ffi.Native() +external int PMSessionSetDataInSession( + PMPrintSession printSession, + CFStringRef key, + CFTypeRef data, +); + +@ffi.Native< + OSStatus Function( + PMPrintSession, + PMPrintSettings, + PMDestinationType, + CFStringRef, + CFURLRef, + ) +>() +external int PMSessionSetDestination( + PMPrintSession printSession, + PMPrintSettings printSettings, + int destType, + CFStringRef destFormat, + CFURLRef destLocation, +); + +@ffi.Native() +external int PMSessionSetError(PMPrintSession printSession, int printError); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPageFormat, ffi.Pointer) +>() +external int PMSessionValidatePageFormat( + PMPrintSession printSession, + PMPageFormat pageFormat, + ffi.Pointer changed, +); + +@ffi.Native< + OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) +>() +external int PMSessionValidatePrintSettings( + PMPrintSession printSession, + PMPrintSettings printSettings, + ffi.Pointer changed, +); + +@ffi.Native() +external int PMSetCollate(PMPrintSettings printSettings, int collate); + +@ffi.Native() +external int PMSetCopies(PMPrintSettings printSettings, int copies, int lock); + +@ffi.Native() +external int PMSetDuplex(PMPrintSettings printSettings, int duplexSetting); + +@ffi.Native() +external int PMSetFirstPage(PMPrintSettings printSettings, int first, int lock); + +@ffi.Native() +external int PMSetLastPage(PMPrintSettings printSettings, int last, int lock); + +@ffi.Native() +external int PMSetOrientation( + PMPageFormat pageFormat, + int orientation, + int lock, +); + +@ffi.Native< + OSStatus Function(PMPageFormat, OSType, UInt32, ffi.Pointer) +>() +external int PMSetPageFormatExtendedData( + PMPageFormat pageFormat, + int dataID, + int size, + ffi.Pointer extendedData, +); + +@ffi.Native() +external int PMSetPageRange( + PMPrintSettings printSettings, + int minPage, + int maxPage, +); + +@ffi.Native() +external int PMSetScale(PMPageFormat pageFormat, double scale); + +@ffi.Native)>() +external int PMWorkflowCopyItems(ffi.Pointer workflowItems); + +@ffi.Native< + OSStatus Function(CFURLRef, CFStringRef, ffi.Pointer, CFURLRef) +>() +external int PMWorkflowSubmitPDFWithOptions( + CFURLRef workflowItem, + CFStringRef title, + ffi.Pointer options, + CFURLRef pdfFile, +); + +@ffi.Native() +external int PMWorkflowSubmitPDFWithSettings( + CFURLRef workflowItem, + PMPrintSettings settings, + CFURLRef pdfFile, +); + +@ffi.Native() +external int PasteboardClear(PasteboardRef inPasteboard); + +@ffi.Native< + OSStatus Function( + PasteboardRef, + PasteboardItemID, + CFStringRef, + ffi.Pointer, + ) +>() +external int PasteboardCopyItemFlavorData( + PasteboardRef inPasteboard, + PasteboardItemID inItem, + CFStringRef inFlavorType, + ffi.Pointer outData, +); + +@ffi.Native< + OSStatus Function(PasteboardRef, PasteboardItemID, ffi.Pointer) +>() +external int PasteboardCopyItemFlavors( + PasteboardRef inPasteboard, + PasteboardItemID inItem, + ffi.Pointer outFlavorTypes, +); + +@ffi.Native)>() +external int PasteboardCopyName( + PasteboardRef inPasteboard, + ffi.Pointer outName, +); + +@ffi.Native)>() +external int PasteboardCopyPasteLocation( + PasteboardRef inPasteboard, + ffi.Pointer outPasteLocation, +); + +@ffi.Native)>() +external int PasteboardCreate( + CFStringRef inName, + ffi.Pointer outPasteboard, +); + +@ffi.Native)>() +external int PasteboardGetItemCount( + PasteboardRef inPasteboard, + ffi.Pointer outItemCount, +); + +@ffi.Native< + OSStatus Function( + PasteboardRef, + PasteboardItemID, + CFStringRef, + ffi.Pointer, + ) +>() +external int PasteboardGetItemFlavorFlags( + PasteboardRef inPasteboard, + PasteboardItemID inItem, + CFStringRef inFlavorType, + ffi.Pointer outFlags, +); + +@ffi.Native< + OSStatus Function(PasteboardRef, CFIndex, ffi.Pointer) +>() +external int PasteboardGetItemIdentifier( + PasteboardRef inPasteboard, + int inIndex, + ffi.Pointer outItem, +); + +@ffi.Native() +external int PasteboardGetTypeID(); + +@ffi.Native< + OSStatus Function( + PasteboardRef, + PasteboardItemID, + CFStringRef, + CFDataRef, + OptionBits, + ) +>() +external int PasteboardPutItemFlavor( + PasteboardRef inPasteboard, + PasteboardItemID inItem, + CFStringRef inFlavorType, + CFDataRef inData, + int inFlags, +); + +@ffi.Native() +external int PasteboardResolvePromises(PasteboardRef inPasteboard); + +@ffi.Native() +external int PasteboardSetPasteLocation( + PasteboardRef inPasteboard, + CFURLRef inPasteLocation, +); + +@ffi.Native< + OSStatus Function( + PasteboardRef, + PasteboardPromiseKeeperProcPtr, + ffi.Pointer, + ) +>() +external int PasteboardSetPromiseKeeper( + PasteboardRef inPasteboard, + PasteboardPromiseKeeperProcPtr inPromiseKeeper, + ffi.Pointer inContext, +); + +@ffi.Native() +external int PasteboardSynchronize(PasteboardRef inPasteboard); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int PauseSpeechAt(SpeechChannel chan, int whereToPause); + +@ffi.Native< + OSStatus Function( + CGContextRef, + ffi.Pointer, + IconAlignmentType, + IconTransformType, + ffi.Pointer, + PlotIconRefFlags, + IconRef, + ) +>() +external int PlotIconRefInContext( + CGContextRef inContext, + ffi.Pointer inRect, + int inAlign, + int inTransform, + ffi.Pointer inLabelColor, + int inFlags, + IconRef inIconRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void PrimeTime(QElemPtr tmTaskPtr, int count); + +@Deprecated('Deprecated') +@ffi.Native() +external int PrimeTimeTask(QElemPtr tmTaskPtr, int count); + +@Deprecated('Deprecated') +@ffi.Native< + CFDictionaryRef Function(ffi.Pointer, UInt32) +>() +external CFDictionaryRef ProcessInformationCopyDictionary( + ffi.Pointer PSN, + int infoToReturn, +); + +@Deprecated('Deprecated') +@ffi.Native, Handle, ffi.Long)>() +external int PtrAndHand(ffi.Pointer ptr1, Handle hand2, int size); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Long) +>() +external int PtrToHand( + ffi.Pointer srcPtr, + ffi.Pointer dstHndl, + int size, +); + +@Deprecated('Deprecated') +@ffi.Native, Handle, ffi.Long)>() +external int PtrToXHand(ffi.Pointer srcPtr, Handle dstHndl, int size); + +@Deprecated('Deprecated') +@ffi.Native() +external void PurgeCollection( + Collection c, + int whichAttributes, + int matchingAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void PurgeCollectionTag(Collection c, int tag); + +@ffi.Native< + OSStatus Function( + OptionBits, + ConstUnicodeMappingPtr, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int QueryUnicodeMappings( + int iFilter, + ConstUnicodeMappingPtr iFindMapping, + int iMaxCount, + ffi.Pointer oActualCount, + ffi.Pointer oReturnedMappings, +); + +@Deprecated('Use -[NSWorkspace iconForFile:] instead.') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int ReadIconFromFSRef( + ffi.Pointer ref, + ffi.Pointer iconFamily, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void ReadLocation(ffi.Pointer loc); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(Handle, ffi.Long, ffi.Pointer, ffi.Long) +>() +external void ReadPartialResource( + Handle theResource, + int offset, + ffi.Pointer buffer, + int count, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void ReallocateHandle(Handle h, int byteCount); + +@Deprecated('Deprecated') +@ffi.Native() +external Handle RecoverHandle(Ptr p); + +@Deprecated('Deprecated') +@ffi.Native< + Component Function( + ffi.Pointer, + ComponentRoutineUPP, + SInt16, + Handle, + Handle, + Handle, + ) +>() +external Component RegisterComponent( + ffi.Pointer cd, + ComponentRoutineUPP componentEntryPoint, + int global, + Handle componentName, + Handle componentInfo, + Handle componentIcon, +); + +@Deprecated('Deprecated') +@ffi.Native, SInt16)>() +external int RegisterComponentFileRef(ffi.Pointer ref, int global); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + SInt16, + ffi.Pointer, + UInt32, + ) +>() +external int RegisterComponentFileRefEntries( + ffi.Pointer ref, + int global, + ffi.Pointer toRegister, + int registerCount, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Component RegisterComponentResource( + ComponentResourceHandle cr, + int global, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int RegisterComponentResourceFile(int resRefNum, int global); + +@Deprecated( + 'You do not need to register .icns files to use them with -[NSImage initWithContentsOfURL:].', +) +@ffi.Native< + OSStatus Function(OSType, OSType, ffi.Pointer, ffi.Pointer) +>() +external int RegisterIconRefFromFSRef( + int creator, + int iconType, + ffi.Pointer iconFile, + ffi.Pointer theIconRef, +); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native< + OSErr Function(OSType, OSType, IconFamilyHandle, ffi.Pointer) +>() +external int RegisterIconRefFromIconFamily( + int creator, + int iconType, + IconFamilyHandle iconFamily, + ffi.Pointer theIconRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ReleaseCollection(Collection c); + +@Deprecated('Deprecated') +@ffi.Native() +external int ReleaseFolder(int vRefNum, int folderType); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int ReleaseIconRef(IconRef theIconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external void ReleaseResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external int RemoveCollectionItem(Collection c, int tag, int id); + +@Deprecated('Deprecated') +@ffi.Native() +external int RemoveFolderDescriptor(int foldType); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int RemoveIconRefOverride(IconRef theIconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external int RemoveIndexedCollectionItem(Collection c, int itemIndex); + +@Deprecated('Deprecated') +@ffi.Native() +external void RemoveResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external int RemoveTimeTask(QElemPtr tmTaskPtr); + +@Deprecated('Deprecated') +@ffi.Native() +external int ReplaceGestaltValue(int selector, int replacementValue); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ReplaceIndexedCollectionItem( + Collection c, + int itemIndex, + int itemSize, + ffi.Pointer itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ReplaceIndexedCollectionItemHdl( + Collection aCollection, + int itemIndex, + Handle itemData, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ResError(); + +@ffi.Native() +external int ResetTextToUnicodeInfo(TextToUnicodeInfo ioTextToUnicodeInfo); + +@ffi.Native() +external int ResetUnicodeToTextInfo(UnicodeToTextInfo ioUnicodeToTextInfo); + +@ffi.Native() +external int ResetUnicodeToTextRunInfo( + UnicodeToTextRunInfo ioUnicodeToTextRunInfo, +); + +@Deprecated('Deprecated') +@ffi.Native() +external Component ResolveComponentAlias(Component aComponent); + +@ffi.Native() +external int ResolveDefaultTextEncoding(int encoding); + +@Deprecated('Deprecated') +@ffi.Native() +external int RetainCollection(Collection c); + +@ffi.Native< + OSStatus Function( + TextEncoding, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int RevertTextEncodingToScriptInfo( + int iEncoding, + ffi.Pointer oTextScriptID, + ffi.Pointer oTextLanguageID, + ffi.Pointer oTextFontname, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void RmvTime(QElemPtr tmTaskPtr); + +@ffi.Native() +external int S64Absolute(int value); + +@ffi.Native() +external CFURLRef SKDocumentCopyURL(SKDocumentRef inDocument); + +@ffi.Native() +external SKDocumentRef SKDocumentCreate( + CFStringRef inScheme, + SKDocumentRef inParent, + CFStringRef inName, +); + +@ffi.Native() +external SKDocumentRef SKDocumentCreateWithURL(CFURLRef inURL); + +@ffi.Native() +external CFStringRef SKDocumentGetName(SKDocumentRef inDocument); + +@ffi.Native() +external SKDocumentRef SKDocumentGetParent(SKDocumentRef inDocument); + +@ffi.Native() +external CFStringRef SKDocumentGetSchemeName(SKDocumentRef inDocument); + +@ffi.Native() +external int SKDocumentGetTypeID(); + +@ffi.Native() +external int SKIndexAddDocument( + SKIndexRef inIndex, + SKDocumentRef inDocument, + CFStringRef inMIMETypeHint, + int inCanReplace, +); + +@ffi.Native() +external int SKIndexAddDocumentWithText( + SKIndexRef inIndex, + SKDocumentRef inDocument, + CFStringRef inDocumentText, + int inCanReplace, +); + +@ffi.Native() +external void SKIndexClose(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexCompact(SKIndexRef inIndex); + +@ffi.Native() +external SKDocumentRef SKIndexCopyDocumentForDocumentID( + SKIndexRef inIndex, + int inDocumentID, +); + +@ffi.Native() +external CFArrayRef SKIndexCopyDocumentIDArrayForTermID( + SKIndexRef inIndex, + int inTermID, +); + +@ffi.Native() +external CFDictionaryRef SKIndexCopyDocumentProperties( + SKIndexRef inIndex, + SKDocumentRef inDocument, +); + +@ffi.Native< + ffi.Void Function( + SKIndexRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void SKIndexCopyDocumentRefsForDocumentIDs( + SKIndexRef inIndex, + int inCount, + ffi.Pointer inDocumentIDsArray, + ffi.Pointer outDocumentRefsArray, +); + +@ffi.Native< + ffi.Void Function( + SKIndexRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void SKIndexCopyDocumentURLsForDocumentIDs( + SKIndexRef inIndex, + int inCount, + ffi.Pointer inDocumentIDsArray, + ffi.Pointer outDocumentURLsArray, +); + +@ffi.Native< + ffi.Void Function( + SKIndexRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void SKIndexCopyInfoForDocumentIDs( + SKIndexRef inIndex, + int inCount, + ffi.Pointer inDocumentIDsArray, + ffi.Pointer outNamesArray, + ffi.Pointer outParentIDsArray, +); + +@ffi.Native() +external CFArrayRef SKIndexCopyTermIDArrayForDocumentID( + SKIndexRef inIndex, + int inDocumentID, +); + +@ffi.Native() +external CFStringRef SKIndexCopyTermStringForTermID( + SKIndexRef inIndex, + int inTermID, +); + +@ffi.Native< + SKIndexRef Function( + CFMutableDataRef, + CFStringRef, + ffi.UnsignedInt, + CFDictionaryRef, + ) +>(symbol: 'SKIndexCreateWithMutableData') +external SKIndexRef _SKIndexCreateWithMutableData( + CFMutableDataRef inData, + CFStringRef inIndexName, + int inIndexType, + CFDictionaryRef inAnalysisProperties, +); + +SKIndexRef SKIndexCreateWithMutableData( + CFMutableDataRef inData, + CFStringRef inIndexName, + SKIndexType inIndexType, + CFDictionaryRef inAnalysisProperties, +) { + return _SKIndexCreateWithMutableData( + inData, + inIndexName, + inIndexType.value, + inAnalysisProperties, + ); +} + +@ffi.Native< + SKIndexRef Function(CFURLRef, CFStringRef, ffi.UnsignedInt, CFDictionaryRef) +>(symbol: 'SKIndexCreateWithURL') +external SKIndexRef _SKIndexCreateWithURL( + CFURLRef inURL, + CFStringRef inIndexName, + int inIndexType, + CFDictionaryRef inAnalysisProperties, +); + +SKIndexRef SKIndexCreateWithURL( + CFURLRef inURL, + CFStringRef inIndexName, + SKIndexType inIndexType, + CFDictionaryRef inAnalysisProperties, +) { + return _SKIndexCreateWithURL( + inURL, + inIndexName, + inIndexType.value, + inAnalysisProperties, + ); +} + +@ffi.Native() +external SKDocumentRef SKIndexDocumentIteratorCopyNext( + SKIndexDocumentIteratorRef inIterator, +); + +@ffi.Native() +external SKIndexDocumentIteratorRef SKIndexDocumentIteratorCreate( + SKIndexRef inIndex, + SKDocumentRef inParentDocument, +); + +@ffi.Native() +external int SKIndexDocumentIteratorGetTypeID(); + +@ffi.Native() +external int SKIndexFlush(SKIndexRef inIndex); + +@ffi.Native() +external CFDictionaryRef SKIndexGetAnalysisProperties(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexGetDocumentCount(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexGetDocumentID(SKIndexRef inIndex, SKDocumentRef inDocument); + +@ffi.Native( + symbol: 'SKIndexGetDocumentState', +) +external int _SKIndexGetDocumentState( + SKIndexRef inIndex, + SKDocumentRef inDocument, +); + +SKDocumentIndexState SKIndexGetDocumentState( + SKIndexRef inIndex, + SKDocumentRef inDocument, +) { + return SKDocumentIndexState.fromValue( + _SKIndexGetDocumentState(inIndex, inDocument), + ); +} + +@ffi.Native() +external int SKIndexGetDocumentTermCount(SKIndexRef inIndex, int inDocumentID); + +@ffi.Native() +external int SKIndexGetDocumentTermFrequency( + SKIndexRef inIndex, + int inDocumentID, + int inTermID, +); + +@ffi.Native(symbol: 'SKIndexGetIndexType') +external int _SKIndexGetIndexType(SKIndexRef inIndex); + +SKIndexType SKIndexGetIndexType(SKIndexRef inIndex) { + return SKIndexType.fromValue(_SKIndexGetIndexType(inIndex)); +} + +@ffi.Native() +external int SKIndexGetMaximumBytesBeforeFlush(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexGetMaximumDocumentID(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexGetMaximumTermID(SKIndexRef inIndex); + +@ffi.Native() +external int SKIndexGetTermDocumentCount(SKIndexRef inIndex, int inTermID); + +@ffi.Native() +external int SKIndexGetTermIDForTermString( + SKIndexRef inIndex, + CFStringRef inTermString, +); + +@ffi.Native() +external int SKIndexGetTypeID(); + +@ffi.Native() +external int SKIndexMoveDocument( + SKIndexRef inIndex, + SKDocumentRef inDocument, + SKDocumentRef inNewParent, +); + +@ffi.Native() +external SKIndexRef SKIndexOpenWithData( + CFDataRef inData, + CFStringRef inIndexName, +); + +@ffi.Native() +external SKIndexRef SKIndexOpenWithMutableData( + CFMutableDataRef inData, + CFStringRef inIndexName, +); + +@ffi.Native() +external SKIndexRef SKIndexOpenWithURL( + CFURLRef inURL, + CFStringRef inIndexName, + int inWriteAccess, +); + +@ffi.Native() +external int SKIndexRemoveDocument( + SKIndexRef inIndex, + SKDocumentRef inDocument, +); + +@ffi.Native() +external int SKIndexRenameDocument( + SKIndexRef inIndex, + SKDocumentRef inDocument, + CFStringRef inNewName, +); + +@ffi.Native() +external void SKIndexSetDocumentProperties( + SKIndexRef inIndex, + SKDocumentRef inDocument, + CFDictionaryRef inProperties, +); + +@ffi.Native() +external void SKIndexSetMaximumBytesBeforeFlush( + SKIndexRef inIndex, + int inBytesForUpdate, +); + +@ffi.Native() +external void SKLoadDefaultExtractorPlugIns(); + +@ffi.Native() +external void SKSearchCancel(SKSearchRef inSearch); + +@ffi.Native() +external SKSearchRef SKSearchCreate( + SKIndexRef inIndex, + CFStringRef inQuery, + int inSearchOptions, +); + +@ffi.Native< + Boolean Function( + SKSearchRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + CFTimeInterval, + ffi.Pointer, + ) +>() +external int SKSearchFindMatches( + SKSearchRef inSearch, + int inMaximumCount, + ffi.Pointer outDocumentIDsArray, + ffi.Pointer outScoresArray, + double maximumTime, + ffi.Pointer outFoundCount, +); + +@ffi.Native() +external int SKSearchGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native() +external CFArrayRef SKSearchGroupCopyIndexes(SKSearchGroupRef inSearchGroup); + +@Deprecated('No longer supported') +@ffi.Native() +external SKSearchGroupRef SKSearchGroupCreate(CFArrayRef inArrayOfInIndexes); + +@Deprecated('No longer supported') +@ffi.Native() +external int SKSearchGroupGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native() +external CFArrayRef SKSearchResultsCopyMatchingTerms( + SKSearchResultsRef inSearchResults, + int inItem, +); + +@Deprecated('No longer supported') +@ffi.Native< + SKSearchResultsRef Function( + SKSearchGroupRef, + CFArrayRef, + CFIndex, + ffi.Pointer, + SKSearchResultsFilterCallBack, + ) +>() +external SKSearchResultsRef SKSearchResultsCreateWithDocuments( + SKSearchGroupRef inSearchGroup, + CFArrayRef inExampleDocuments, + int inMaxFoundDocuments, + ffi.Pointer inContext, + SKSearchResultsFilterCallBack inFilterCallBack, +); + +@Deprecated('No longer supported') +@ffi.Native< + SKSearchResultsRef Function( + SKSearchGroupRef, + CFStringRef, + ffi.UnsignedInt, + CFIndex, + ffi.Pointer, + SKSearchResultsFilterCallBack, + ) +>(symbol: 'SKSearchResultsCreateWithQuery') +external SKSearchResultsRef _SKSearchResultsCreateWithQuery( + SKSearchGroupRef inSearchGroup, + CFStringRef inQuery, + int inSearchType, + int inMaxFoundDocuments, + ffi.Pointer inContext, + SKSearchResultsFilterCallBack inFilterCallBack, +); + +SKSearchResultsRef SKSearchResultsCreateWithQuery( + SKSearchGroupRef inSearchGroup, + CFStringRef inQuery, + SKSearchType inSearchType, + DartCFIndex inMaxFoundDocuments, + ffi.Pointer inContext, + SKSearchResultsFilterCallBack inFilterCallBack, +) { + return _SKSearchResultsCreateWithQuery( + inSearchGroup, + inQuery, + inSearchType.value, + inMaxFoundDocuments, + inContext, + inFilterCallBack, + ); +} + +@Deprecated('No longer supported') +@ffi.Native() +external int SKSearchResultsGetCount(SKSearchResultsRef inSearchResults); + +@Deprecated('No longer supported') +@ffi.Native< + CFIndex Function( + SKSearchResultsRef, + CFRange, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SKSearchResultsGetInfoInRange( + SKSearchResultsRef inSearchResults, + CFRange inRange, + ffi.Pointer outDocumentsArray, + ffi.Pointer outIndexesArray, + ffi.Pointer outScoresArray, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int SKSearchResultsGetTypeID(); + +@ffi.Native() +external CFStringRef SKSummaryCopyParagraphAtIndex(SKSummaryRef summary, int i); + +@ffi.Native() +external CFStringRef SKSummaryCopyParagraphSummaryString( + SKSummaryRef summary, + int numParagraphs, +); + +@ffi.Native() +external CFStringRef SKSummaryCopySentenceAtIndex(SKSummaryRef summary, int i); + +@ffi.Native() +external CFStringRef SKSummaryCopySentenceSummaryString( + SKSummaryRef summary, + int numSentences, +); + +@ffi.Native() +external SKSummaryRef SKSummaryCreateWithString(CFStringRef inString); + +@ffi.Native() +external int SKSummaryGetParagraphCount(SKSummaryRef summary); + +@ffi.Native< + CFIndex Function( + SKSummaryRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SKSummaryGetParagraphSummaryInfo( + SKSummaryRef summary, + int numParagraphsInSummary, + ffi.Pointer outRankOrderOfParagraphs, + ffi.Pointer outParagraphIndexOfParagraphs, +); + +@ffi.Native() +external int SKSummaryGetSentenceCount(SKSummaryRef summary); + +@ffi.Native< + CFIndex Function( + SKSummaryRef, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SKSummaryGetSentenceSummaryInfo( + SKSummaryRef summary, + int numSentencesInSummary, + ffi.Pointer outRankOrderOfSentences, + ffi.Pointer outSentenceIndexOfSentences, + ffi.Pointer outParagraphIndexOfSentences, +); + +@ffi.Native() +external int SKSummaryGetTypeID(); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native, ffi.Size)>() +external int SSLAddDistinguishedName( + SSLContextRef context, + ffi.Pointer derDN, + int derDNLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLClose(SSLContextRef context); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLContextGetTypeID(); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyALPNProtocols( + SSLContextRef context, + ffi.Pointer protocols, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyCertificateAuthorities( + SSLContextRef context, + ffi.Pointer certificates, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyDistinguishedNames( + SSLContextRef context, + ffi.Pointer names, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyPeerCertificates( + SSLContextRef context, + ffi.Pointer certs, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyPeerTrust( + SSLContextRef context, + ffi.Pointer trust, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Pointer) +>() +external int SSLCopyRequestedPeerName( + SSLContextRef context, + ffi.Pointer peerName, + ffi.Pointer peerNameLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyRequestedPeerNameLength( + SSLContextRef ctx, + ffi.Pointer peerNameLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLCopyTrustedRoots( + SSLContextRef context, + ffi.Pointer trustedRoots, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + SSLContextRef Function(CFAllocatorRef, ffi.UnsignedInt, ffi.UnsignedInt) +>(symbol: 'SSLCreateContext') +external SSLContextRef _SSLCreateContext( + CFAllocatorRef alloc, + int protocolSide, + int connectionType, +); + +SSLContextRef SSLCreateContext( + CFAllocatorRef alloc, + SSLProtocolSide protocolSide, + SSLConnectionType connectionType, +) { + return _SSLCreateContext(alloc, protocolSide.value, connectionType.value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLDisposeContext(SSLContextRef context); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetAllowsAnyRoot( + SSLContextRef context, + ffi.Pointer anyRoot, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetAllowsExpiredCerts( + SSLContextRef context, + ffi.Pointer allowsExpired, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetAllowsExpiredRoots( + SSLContextRef context, + ffi.Pointer allowsExpired, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetBufferedReadSize( + SSLContextRef context, + ffi.Pointer bufferSize, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetClientCertificateState( + SSLContextRef context, + ffi.Pointer clientState, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetConnection( + SSLContextRef context, + ffi.Pointer connection, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetDatagramWriteSize( + SSLContextRef dtlsContext, + ffi.Pointer bufSize, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int SSLGetDiffieHellmanParams( + SSLContextRef context, + ffi.Pointer> dhParams, + ffi.Pointer dhParamsLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetEnableCertVerify( + SSLContextRef context, + ffi.Pointer enableVerify, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SSLGetEnabledCiphers( + SSLContextRef context, + ffi.Pointer ciphers, + ffi.Pointer numCiphers, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetMaxDatagramRecordSize( + SSLContextRef dtlsContext, + ffi.Pointer maxSize, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetNegotiatedCipher( + SSLContextRef context, + ffi.Pointer cipherSuite, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetNegotiatedProtocolVersion( + SSLContextRef context, + ffi.Pointer protocol, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetNumberEnabledCiphers( + SSLContextRef context, + ffi.Pointer numCiphers, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetNumberSupportedCiphers( + SSLContextRef context, + ffi.Pointer numCiphers, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Pointer) +>() +external int SSLGetPeerDomainName( + SSLContextRef context, + ffi.Pointer peerName, + ffi.Pointer peerNameLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetPeerDomainNameLength( + SSLContextRef context, + ffi.Pointer peerNameLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int SSLGetPeerID( + SSLContextRef context, + ffi.Pointer> peerID, + ffi.Pointer peerIDLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetProtocolVersion( + SSLContextRef context, + ffi.Pointer protocol, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function(SSLContextRef, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'SSLGetProtocolVersionEnabled') +external int _SSLGetProtocolVersionEnabled( + SSLContextRef context, + int protocol, + ffi.Pointer enable, +); + +DartSInt32 SSLGetProtocolVersionEnabled( + SSLContextRef context, + SSLProtocol protocol, + ffi.Pointer enable, +) { + return _SSLGetProtocolVersionEnabled(context, protocol.value, enable); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetProtocolVersionMax( + SSLContextRef context, + ffi.Pointer maxVersion, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetProtocolVersionMin( + SSLContextRef context, + ffi.Pointer minVersion, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetRsaBlinding( + SSLContextRef context, + ffi.Pointer blinding, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function(SSLContextRef, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'SSLGetSessionOption') +external int _SSLGetSessionOption( + SSLContextRef context, + int option, + ffi.Pointer value, +); + +DartSInt32 SSLGetSessionOption( + SSLContextRef context, + SSLSessionOption option, + ffi.Pointer value, +) { + return _SSLGetSessionOption(context, option.value, value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLGetSessionState( + SSLContextRef context, + ffi.Pointer state, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SSLGetSupportedCiphers( + SSLContextRef context, + ffi.Pointer ciphers, + ffi.Pointer numCiphers, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLHandshake(SSLContextRef context); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native)>() +external int SSLNewContext(int isServer, ffi.Pointer contextPtr); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLReHandshake(SSLContextRef context); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external int SSLRead( + SSLContextRef context, + ffi.Pointer data, + int dataLength, + ffi.Pointer processed, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetALPNProtocols(SSLContextRef context, CFArrayRef protocols); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetAllowsAnyRoot(SSLContextRef context, int anyRoot); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetAllowsExpiredCerts(SSLContextRef context, int allowsExpired); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetAllowsExpiredRoots(SSLContextRef context, int allowsExpired); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetCertificate(SSLContextRef context, CFArrayRef certRefs); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetCertificateAuthorities( + SSLContextRef context, + CFTypeRef certificateOrArray, + int replaceExisting, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetClientSideAuthenticate', +) +external int _SSLSetClientSideAuthenticate(SSLContextRef context, int auth); + +DartSInt32 SSLSetClientSideAuthenticate( + SSLContextRef context, + SSLAuthenticate auth, +) { + return _SSLSetClientSideAuthenticate(context, auth.value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetConnection( + SSLContextRef context, + SSLConnectionRef connection, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native, ffi.Size)>() +external int SSLSetDatagramHelloCookie( + SSLContextRef dtlsContext, + ffi.Pointer cookie, + int cookieLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native, ffi.Size)>() +external int SSLSetDiffieHellmanParams( + SSLContextRef context, + ffi.Pointer dhParams, + int dhParamsLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetEnableCertVerify(SSLContextRef context, int enableVerify); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size) +>() +external int SSLSetEnabledCiphers( + SSLContextRef context, + ffi.Pointer ciphers, + int numCiphers, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetEncryptionCertificate( + SSLContextRef context, + CFArrayRef certRefs, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetError(SSLContextRef context, int status); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetIOFuncs( + SSLContextRef context, + SSLReadFunc readFunc, + SSLWriteFunc writeFunc, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetMaxDatagramRecordSize( + SSLContextRef dtlsContext, + int maxSize, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetOCSPResponse(SSLContextRef context, CFDataRef response); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native, ffi.Size)>() +external int SSLSetPeerDomainName( + SSLContextRef context, + ffi.Pointer peerName, + int peerNameLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native, ffi.Size)>() +external int SSLSetPeerID( + SSLContextRef context, + ffi.Pointer peerID, + int peerIDLen, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetProtocolVersion', +) +external int _SSLSetProtocolVersion(SSLContextRef context, int version); + +DartSInt32 SSLSetProtocolVersion(SSLContextRef context, SSLProtocol version) { + return _SSLSetProtocolVersion(context, version.value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetProtocolVersionEnabled', +) +external int _SSLSetProtocolVersionEnabled( + SSLContextRef context, + int protocol, + int enable, +); + +DartSInt32 SSLSetProtocolVersionEnabled( + SSLContextRef context, + SSLProtocol protocol, + DartBoolean enable, +) { + return _SSLSetProtocolVersionEnabled(context, protocol.value, enable); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetProtocolVersionMax', +) +external int _SSLSetProtocolVersionMax(SSLContextRef context, int maxVersion); + +DartSInt32 SSLSetProtocolVersionMax( + SSLContextRef context, + SSLProtocol maxVersion, +) { + return _SSLSetProtocolVersionMax(context, maxVersion.value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetProtocolVersionMin', +) +external int _SSLSetProtocolVersionMin(SSLContextRef context, int minVersion); + +DartSInt32 SSLSetProtocolVersionMin( + SSLContextRef context, + SSLProtocol minVersion, +) { + return _SSLSetProtocolVersionMin(context, minVersion.value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetRsaBlinding(SSLContextRef context, int blinding); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetSessionConfig(SSLContextRef context, CFStringRef config); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native( + symbol: 'SSLSetSessionOption', +) +external int _SSLSetSessionOption(SSLContextRef context, int option, int value); + +DartSInt32 SSLSetSessionOption( + SSLContextRef context, + SSLSessionOption option, + DartBoolean value, +) { + return _SSLSetSessionOption(context, option.value, value); +} + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetSessionTicketsEnabled(SSLContextRef context, int enabled); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native() +external int SSLSetTrustedRoots( + SSLContextRef context, + CFArrayRef trustedRoots, + int replaceExisting, +); + +@Deprecated('No longer supported. Use Network.framework.') +@ffi.Native< + OSStatus Function( + SSLContextRef, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external int SSLWrite( + SSLContextRef context, + ffi.Pointer data, + int dataLength, + ffi.Pointer processed, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SameProcess( + ffi.Pointer PSN1, + ffi.Pointer PSN2, + ffi.Pointer result, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external CFArrayRef SecACLCopyAuthorizations(SecACLRef acl); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecACLRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecACLCopyContents( + SecACLRef acl, + ffi.Pointer applicationList, + ffi.Pointer description, + ffi.Pointer promptSelector, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecACLRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecACLCopySimpleContents( + SecACLRef acl, + ffi.Pointer applicationList, + ffi.Pointer description, + ffi.Pointer promptSelector, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecAccessRef, + CFArrayRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecACLCreateFromSimpleContents( + SecAccessRef access$1, + CFArrayRef applicationList, + CFStringRef description, + ffi.Pointer promptSelector, + ffi.Pointer newAcl, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecAccessRef, + CFArrayRef, + CFStringRef, + uint16, + ffi.Pointer, + ) +>() +external int SecACLCreateWithSimpleContents( + SecAccessRef access$1, + CFArrayRef applicationList, + CFStringRef description, + int promptSelector, + ffi.Pointer newAcl, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecACLRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecACLGetAuthorizations( + SecACLRef acl, + ffi.Pointer tags, + ffi.Pointer tagCount, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecACLGetTypeID(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecACLRemove(SecACLRef aclRef); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function(SecACLRef, ffi.Pointer, uint32) +>() +external int SecACLSetAuthorizations( + SecACLRef acl, + ffi.Pointer tags, + int tagCount, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecACLSetContents( + SecACLRef acl, + CFArrayRef applicationList, + CFStringRef description, + int promptSelector, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecACLRef, + CFArrayRef, + CFStringRef, + ffi.Pointer, + ) +>() +external int SecACLSetSimpleContents( + SecACLRef acl, + CFArrayRef applicationList, + CFStringRef description, + ffi.Pointer promptSelector, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecACLUpdateAuthorizations( + SecACLRef acl, + CFArrayRef authorizations, +); + +@ffi.Native< + SecAccessControlRef Function( + CFAllocatorRef, + CFTypeRef, + CFOptionFlags, + ffi.Pointer, + ) +>() +external SecAccessControlRef SecAccessControlCreateWithFlags( + CFAllocatorRef allocator, + CFTypeRef protection, + int flags, + ffi.Pointer error, +); + +@ffi.Native() +external int SecAccessControlGetTypeID(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecAccessCopyACLList( + SecAccessRef accessRef, + ffi.Pointer aclList, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external CFArrayRef SecAccessCopyMatchingACLList( + SecAccessRef accessRef, + CFTypeRef authorizationTag, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecAccessRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecAccessCopyOwnerAndACL( + SecAccessRef accessRef, + ffi.Pointer userId, + ffi.Pointer groupId, + ffi.Pointer ownerType, + ffi.Pointer aclList, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecAccessRef, + CSSM_ACL_AUTHORIZATION_TAG, + ffi.Pointer, + ) +>() +external int SecAccessCopySelectedACLList( + SecAccessRef accessRef, + int action, + ffi.Pointer aclList, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(CFStringRef, CFArrayRef, ffi.Pointer) +>() +external int SecAccessCreate( + CFStringRef descriptor, + CFArrayRef trustedlist, + ffi.Pointer accessRef, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + uint32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecAccessCreateFromOwnerAndACL( + ffi.Pointer owner, + int aclCount, + ffi.Pointer acls, + ffi.Pointer accessRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + SecAccessRef Function( + uid_t, + gid_t, + SecAccessOwnerType, + CFArrayRef, + ffi.Pointer, + ) +>() +external SecAccessRef SecAccessCreateWithOwnerAndACL( + int userId, + int groupId, + int ownerType, + CFArrayRef acls, + ffi.Pointer error, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecAccessRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecAccessGetOwnerAndACL( + SecAccessRef accessRef, + ffi.Pointer owner, + ffi.Pointer aclCount, + ffi.Pointer acls, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecAccessGetTypeID(); + +@ffi.Native< + ffi.Void Function( + CFStringRef, + CFStringRef, + CFStringRef, + ffi.Pointer, + ) +>(symbol: 'SecAddSharedWebCredential') +external void _SecAddSharedWebCredential( + CFStringRef fqdn, + CFStringRef account, + CFStringRef password, + ffi.Pointer completionHandler, +); + +void SecAddSharedWebCredential( + CFStringRef fqdn, + CFStringRef account, + CFStringRef password, + objc.ObjCBlock)> completionHandler, +) { + final _$$ref = completionHandler.ref; + return _SecAddSharedWebCredential(fqdn, account, password, _$$ref.pointer); +} + +@ffi.Native() +external int SecCertificateAddToKeychain( + SecCertificateRef certificate, + SecKeychainRef keychain, +); + +@ffi.Native)>() +external int SecCertificateCopyCommonName( + SecCertificateRef certificate, + ffi.Pointer commonName, +); + +@ffi.Native() +external CFDataRef SecCertificateCopyData(SecCertificateRef certificate); + +@ffi.Native)>() +external int SecCertificateCopyEmailAddresses( + SecCertificateRef certificate, + ffi.Pointer emailAddresses, +); + +@ffi.Native() +external SecKeyRef SecCertificateCopyKey(SecCertificateRef certificate); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + SecCertificateRef, + ffi.Pointer, + ) +>() +external CFStringRef SecCertificateCopyLongDescription( + CFAllocatorRef alloc, + SecCertificateRef certificate, + ffi.Pointer error, +); + +@Deprecated( + 'SecCertificateCopyNormalizedIssuerContent is deprecated. Use SecCertificateCopyNormalizedIssuerSequence instead.', +) +@ffi.Native)>() +external CFDataRef SecCertificateCopyNormalizedIssuerContent( + SecCertificateRef certificate, + ffi.Pointer error, +); + +@ffi.Native() +external CFDataRef SecCertificateCopyNormalizedIssuerSequence( + SecCertificateRef certificate, +); + +@Deprecated( + 'SecCertificateCopyNormalizedSubjectContent is deprecated. Use SecCertificateCopyNormalizedSubjectSequence instead.', +) +@ffi.Native)>() +external CFDataRef SecCertificateCopyNormalizedSubjectContent( + SecCertificateRef certificate, + ffi.Pointer error, +); + +@ffi.Native() +external CFDataRef SecCertificateCopyNormalizedSubjectSequence( + SecCertificateRef certificate, +); + +@ffi.Native() +external CFDateRef SecCertificateCopyNotValidAfterDate( + SecCertificateRef certificate, +); + +@ffi.Native() +external CFDateRef SecCertificateCopyNotValidBeforeDate( + SecCertificateRef certificate, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(CFStringRef, uint32, ffi.Pointer) +>() +external int SecCertificateCopyPreference( + CFStringRef name, + int keyUsage, + ffi.Pointer certificate, +); + +@ffi.Native() +external SecCertificateRef SecCertificateCopyPreferred( + CFStringRef name, + CFArrayRef keyUsage, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecCertificateCopyPublicKey( + SecCertificateRef certificate, + ffi.Pointer key, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external CFDataRef SecCertificateCopySerialNumber( + SecCertificateRef certificate, + ffi.Pointer error, +); + +@ffi.Native)>() +external CFDataRef SecCertificateCopySerialNumberData( + SecCertificateRef certificate, + ffi.Pointer error, +); + +@ffi.Native< + CFStringRef Function( + CFAllocatorRef, + SecCertificateRef, + ffi.Pointer, + ) +>() +external CFStringRef SecCertificateCopyShortDescription( + CFAllocatorRef alloc, + SecCertificateRef certificate, + ffi.Pointer error, +); + +@ffi.Native() +external CFStringRef SecCertificateCopySubjectSummary( + SecCertificateRef certificate, +); + +@ffi.Native< + CFDictionaryRef Function( + SecCertificateRef, + CFArrayRef, + ffi.Pointer, + ) +>() +external CFDictionaryRef SecCertificateCopyValues( + SecCertificateRef certificate, + CFArrayRef keys, + ffi.Pointer error, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + CSSM_CERT_TYPE, + CSSM_CERT_ENCODING, + ffi.Pointer, + ) +>() +external int SecCertificateCreateFromData( + ffi.Pointer data, + int type, + int encoding, + ffi.Pointer certificate, +); + +@ffi.Native() +external SecCertificateRef SecCertificateCreateWithData( + CFAllocatorRef allocator, + CFDataRef data, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecCertificateRef, ffi.Pointer>) +>() +external int SecCertificateGetAlgorithmID( + SecCertificateRef certificate, + ffi.Pointer> algid, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecCertificateGetCLHandle( + SecCertificateRef certificate, + ffi.Pointer clHandle, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecCertificateGetData( + SecCertificateRef certificate, + CSSM_DATA_PTR data, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecCertificateRef, ffi.Pointer>) +>() +external int SecCertificateGetIssuer( + SecCertificateRef certificate, + ffi.Pointer> issuer, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecCertificateRef, ffi.Pointer>) +>() +external int SecCertificateGetSubject( + SecCertificateRef certificate, + ffi.Pointer> subject, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecCertificateGetType( + SecCertificateRef certificate, + ffi.Pointer certificateType, +); + +@ffi.Native() +external int SecCertificateGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecCertificateRef, CFStringRef, uint32, CFDateRef) +>() +external int SecCertificateSetPreference( + SecCertificateRef certificate, + CFStringRef name, + int keyUsage, + CFDateRef date, +); + +@ffi.Native() +external int SecCertificateSetPreferred( + SecCertificateRef certificate, + CFStringRef name, + CFArrayRef keyUsage, +); + +@ffi.Native() +external int SecCodeCheckValidity( + SecCodeRef code, + int flags, + SecRequirementRef requirement, +); + +@ffi.Native< + OSStatus Function( + SecCodeRef, + ffi.Uint32, + SecRequirementRef, + ffi.Pointer, + ) +>() +external int SecCodeCheckValidityWithErrors( + SecCodeRef code, + int flags, + SecRequirementRef requirement, + ffi.Pointer errors, +); + +@ffi.Native< + OSStatus Function( + SecStaticCodeRef, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int SecCodeCopyDesignatedRequirement( + SecStaticCodeRef code, + int flags, + ffi.Pointer requirement, +); + +@ffi.Native< + OSStatus Function( + SecCodeRef, + CFDictionaryRef, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int SecCodeCopyGuestWithAttributes( + SecCodeRef host, + CFDictionaryRef attributes, + int flags, + ffi.Pointer guest, +); + +@ffi.Native< + OSStatus Function(SecCodeRef, ffi.Uint32, ffi.Pointer) +>() +external int SecCodeCopyHost( + SecCodeRef guest, + int flags, + ffi.Pointer host, +); + +@ffi.Native< + OSStatus Function(SecStaticCodeRef, ffi.Uint32, ffi.Pointer) +>() +external int SecCodeCopyPath( + SecStaticCodeRef staticCode, + int flags, + ffi.Pointer path, +); + +@ffi.Native)>() +external int SecCodeCopySelf(int flags, ffi.Pointer self); + +@ffi.Native< + OSStatus Function(SecStaticCodeRef, ffi.Uint32, ffi.Pointer) +>() +external int SecCodeCopySigningInformation( + SecStaticCodeRef code, + int flags, + ffi.Pointer information, +); + +@ffi.Native< + OSStatus Function(SecCodeRef, ffi.Uint32, ffi.Pointer) +>() +external int SecCodeCopyStaticCode( + SecCodeRef code, + int flags, + ffi.Pointer staticCode, +); + +@ffi.Native< + OSStatus Function(xpc_object_t, ffi.Uint32, ffi.Pointer) +>(symbol: 'SecCodeCreateWithXPCMessage') +external int _SecCodeCreateWithXPCMessage( + xpc_object_t message, + int flags, + ffi.Pointer target, +); + +DartSInt32 SecCodeCreateWithXPCMessage( + Dartxpc_object_t message, + int flags, + ffi.Pointer target, +) { + final _$$ref = message.ref; + return _SecCodeCreateWithXPCMessage(_$$ref.pointer, flags, target); +} + +@ffi.Native() +external int SecCodeGetTypeID(); + +@ffi.Native() +external int SecCodeMapMemory(SecStaticCodeRef code, int flags); + +@ffi.Native< + OSStatus Function(SecStaticCodeRef, CFStringRef, CFDataRef, ffi.Uint32) +>() +external int SecCodeValidateFileResource( + SecStaticCodeRef code, + CFStringRef relativePath, + CFDataRef fileData, + int flags, +); + +@ffi.Native)>() +external CFStringRef SecCopyErrorMessageString( + int status, + ffi.Pointer reserved, +); + +@ffi.Native() +external CFStringRef SecCreateSharedWebCredentialPassword(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecDecodeTransformCreate( + CFTypeRef DecodeType, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecDecryptTransformCreate( + SecKeyRef keyRef, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external int SecDecryptTransformGetTypeID(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + SecTransformRef Function(CFTypeRef, CFIndex, ffi.Pointer) +>() +external SecTransformRef SecDigestTransformCreate( + CFTypeRef digestType, + int digestLength, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external int SecDigestTransformGetTypeID(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecEncodeTransformCreate( + CFTypeRef encodeType, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecEncryptTransformCreate( + SecKeyRef keyRef, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external int SecEncryptTransformGetTypeID(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external int SecGroupTransformGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + SecGuestRef, + ffi.Uint32, + CFURLRef, + CFDictionaryRef, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int SecHostCreateGuest( + int host, + int status, + CFURLRef path, + CFDictionaryRef attributes, + int flags, + ffi.Pointer newGuest, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecHostRemoveGuest(int host, int guest, int flags); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecHostSelectGuest(int guestRef, int flags); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecHostSelectedGuest(int flags, ffi.Pointer guestRef); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecGuestRef, ffi.Uint32, CFDictionaryRef, ffi.Uint32) +>() +external int SecHostSetGuestStatus( + int guestRef, + int status, + CFDictionaryRef attributes, + int flags, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecHostSetHostingPort(int hostingPort, int flags); + +@ffi.Native)>() +external int SecIdentityCopyCertificate( + SecIdentityRef identityRef, + ffi.Pointer certificateRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFStringRef, + CSSM_KEYUSE, + CFArrayRef, + ffi.Pointer, + ) +>() +external int SecIdentityCopyPreference( + CFStringRef name, + int keyUsage, + CFArrayRef validIssuers, + ffi.Pointer identity, +); + +@ffi.Native() +external SecIdentityRef SecIdentityCopyPreferred( + CFStringRef name, + CFArrayRef keyUsage, + CFArrayRef validIssuers, +); + +@ffi.Native)>() +external int SecIdentityCopyPrivateKey( + SecIdentityRef identityRef, + ffi.Pointer privateKeyRef, +); + +@ffi.Native< + OSStatus Function( + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecIdentityCopySystemIdentity( + CFStringRef domain, + ffi.Pointer idRef, + ffi.Pointer actualDomain, +); + +@ffi.Native< + SecIdentityRef Function(CFAllocatorRef, SecCertificateRef, SecKeyRef) +>() +external SecIdentityRef SecIdentityCreate( + CFAllocatorRef allocator, + SecCertificateRef certificate, + SecKeyRef privateKey, +); + +@ffi.Native< + OSStatus Function(CFTypeRef, SecCertificateRef, ffi.Pointer) +>() +external int SecIdentityCreateWithCertificate( + CFTypeRef keychainOrArray, + SecCertificateRef certificateRef, + ffi.Pointer identityRef, +); + +@ffi.Native() +external int SecIdentityGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecIdentitySearchRef, ffi.Pointer) +>() +external int SecIdentitySearchCopyNext( + SecIdentitySearchRef searchRef, + ffi.Pointer identity, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(CFTypeRef, CSSM_KEYUSE, ffi.Pointer) +>() +external int SecIdentitySearchCreate( + CFTypeRef keychainOrArray, + int keyUsage, + ffi.Pointer searchRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecIdentitySearchGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecIdentitySetPreference( + SecIdentityRef identity, + CFStringRef name, + int keyUsage, +); + +@ffi.Native() +external int SecIdentitySetPreferred( + SecIdentityRef identity, + CFStringRef name, + CFArrayRef keyUsage, +); + +@ffi.Native() +external int SecIdentitySetSystemIdentity( + CFStringRef domain, + SecIdentityRef idRef, +); + +@ffi.Native)>() +external int SecItemAdd( + CFDictionaryRef attributes, + ffi.Pointer result, +); + +@ffi.Native)>() +external int SecItemCopyMatching( + CFDictionaryRef query, + ffi.Pointer result, +); + +@ffi.Native() +external int SecItemDelete(CFDictionaryRef query); + +@ffi.Native< + OSStatus Function( + CFTypeRef, + ffi.Uint32, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'SecItemExport') +external int _SecItemExport( + CFTypeRef secItemOrArray, + int outputFormat, + int flags, + ffi.Pointer keyParams, + ffi.Pointer exportedData, +); + +DartSInt32 SecItemExport( + CFTypeRef secItemOrArray, + SecExternalFormat outputFormat, + int flags, + ffi.Pointer keyParams, + ffi.Pointer exportedData, +) { + return _SecItemExport( + secItemOrArray, + outputFormat.value, + flags, + keyParams, + exportedData, + ); +} + +@ffi.Native< + OSStatus Function( + CFDataRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + SecKeychainRef, + ffi.Pointer, + ) +>() +external int SecItemImport( + CFDataRef importedData, + CFStringRef fileNameOrExtension, + ffi.Pointer inputFormat, + ffi.Pointer itemType, + int flags, + ffi.Pointer keyParams, + SecKeychainRef importKeychain, + ffi.Pointer outItems, +); + +@ffi.Native() +external int SecItemUpdate( + CFDictionaryRef query, + CFDictionaryRef attributesToUpdate, +); + +@ffi.Native() +external CFDictionaryRef SecKeyCopyAttributes(SecKeyRef key); + +@ffi.Native)>() +external CFDataRef SecKeyCopyExternalRepresentation( + SecKeyRef key, + ffi.Pointer error, +); + +@ffi.Native< + CFDataRef Function( + SecKeyRef, + SecKeyAlgorithm, + SecKeyRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external CFDataRef SecKeyCopyKeyExchangeResult( + SecKeyRef privateKey, + SecKeyAlgorithm algorithm, + SecKeyRef publicKey, + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@ffi.Native() +external SecKeyRef SecKeyCopyPublicKey(SecKeyRef key); + +@ffi.Native< + CFDataRef Function( + SecKeyRef, + SecKeyAlgorithm, + CFDataRef, + ffi.Pointer, + ) +>() +external CFDataRef SecKeyCreateDecryptedData( + SecKeyRef key, + SecKeyAlgorithm algorithm, + CFDataRef ciphertext, + ffi.Pointer error, +); + +@ffi.Native< + CFDataRef Function( + SecKeyRef, + SecKeyAlgorithm, + CFDataRef, + ffi.Pointer, + ) +>() +external CFDataRef SecKeyCreateEncryptedData( + SecKeyRef key, + SecKeyAlgorithm algorithm, + CFDataRef plaintext, + ffi.Pointer error, +); + +@Deprecated('No longer supported') +@ffi.Native< + SecKeyRef Function(CFDictionaryRef, CFDataRef, ffi.Pointer) +>() +external SecKeyRef SecKeyCreateFromData( + CFDictionaryRef parameters, + CFDataRef keyData, + ffi.Pointer error, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecKeychainRef, + CSSM_ALGORITHMS, + uint32, + CSSM_CC_HANDLE, + CSSM_KEYUSE, + uint32, + CSSM_KEYUSE, + uint32, + SecAccessRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecKeyCreatePair( + SecKeychainRef keychainRef, + int algorithm, + int keySizeInBits, + int contextHandle, + int publicKeyUsage, + int publicKeyAttr, + int privateKeyUsage, + int privateKeyAttr, + SecAccessRef initialAccess, + ffi.Pointer publicKey, + ffi.Pointer privateKey, +); + +@ffi.Native)>() +external SecKeyRef SecKeyCreateRandomKey( + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@ffi.Native< + CFDataRef Function( + SecKeyRef, + SecKeyAlgorithm, + CFDataRef, + ffi.Pointer, + ) +>() +external CFDataRef SecKeyCreateSignature( + SecKeyRef key, + SecKeyAlgorithm algorithm, + CFDataRef dataToSign, + ffi.Pointer error, +); + +@ffi.Native< + SecKeyRef Function(CFDataRef, CFDictionaryRef, ffi.Pointer) +>() +external SecKeyRef SecKeyCreateWithData( + CFDataRef keyData, + CFDictionaryRef attributes, + ffi.Pointer error, +); + +@Deprecated('No longer supported') +@ffi.Native< + SecKeyRef Function(CFStringRef, CFDictionaryRef, ffi.Pointer) +>() +external SecKeyRef SecKeyDeriveFromPassword( + CFStringRef password, + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecKeychainRef, + CSSM_ALGORITHMS, + uint32, + CSSM_CC_HANDLE, + CSSM_KEYUSE, + uint32, + SecAccessRef, + ffi.Pointer, + ) +>() +external int SecKeyGenerate( + SecKeychainRef keychainRef, + int algorithm, + int keySizeInBits, + int contextHandle, + int keyUsage, + int keyAttr, + SecAccessRef initialAccess, + ffi.Pointer keyRef, +); + +@Deprecated('Use SecKeyCreateRandomKey') +@ffi.Native< + OSStatus Function( + CFDictionaryRef, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecKeyGeneratePair( + CFDictionaryRef parameters, + ffi.Pointer publicKey, + ffi.Pointer privateKey, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(CFDictionaryRef, dispatch_queue_t, SecKeyGeneratePairBlock) +>(symbol: 'SecKeyGeneratePairAsync') +external void _SecKeyGeneratePairAsync( + CFDictionaryRef parameters, + dispatch_queue_t deliveryQueue, + SecKeyGeneratePairBlock result, +); + +void SecKeyGeneratePairAsync( + CFDictionaryRef parameters, + Dartdispatch_queue_t deliveryQueue, + DartSecKeyGeneratePairBlock result, +) { + final _$$ref = deliveryQueue.ref; + final _$$ref$1 = result.ref; + return _SecKeyGeneratePairAsync(parameters, _$$ref.pointer, _$$ref$1.pointer); +} + +@Deprecated('No longer supported') +@ffi.Native)>() +external SecKeyRef SecKeyGenerateSymmetric( + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@ffi.Native() +external int SecKeyGetBlockSize(SecKeyRef key); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecKeyGetCSPHandle( + SecKeyRef keyRef, + ffi.Pointer cspHandle, +); + +@Deprecated('Deprecated') +@ffi.Native>)>() +external int SecKeyGetCSSMKey( + SecKeyRef key, + ffi.Pointer> cssmKey, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + SecKeyRef, + CSSM_ACL_AUTHORIZATION_TAG, + uint32, + ffi.Pointer>, + ) +>(symbol: 'SecKeyGetCredentials') +external int _SecKeyGetCredentials( + SecKeyRef keyRef, + int operation, + int credentialType, + ffi.Pointer> outCredentials, +); + +DartSInt32 SecKeyGetCredentials( + SecKeyRef keyRef, + Dartsint32 operation, + SecCredentialType credentialType, + ffi.Pointer> outCredentials, +) { + return _SecKeyGetCredentials( + keyRef, + operation, + credentialType.value, + outCredentials, + ); +} + +@ffi.Native() +external int SecKeyGetTypeID(); + +@ffi.Native( + symbol: 'SecKeyIsAlgorithmSupported', +) +external int _SecKeyIsAlgorithmSupported( + SecKeyRef key, + int operation, + SecKeyAlgorithm algorithm, +); + +DartBoolean SecKeyIsAlgorithmSupported( + SecKeyRef key, + SecKeyOperationType operation, + SecKeyAlgorithm algorithm, +) { + return _SecKeyIsAlgorithmSupported(key, operation.value, algorithm); +} + +@Deprecated('No longer supported') +@ffi.Native< + SecKeyRef Function( + ffi.Pointer, + SecKeyRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external SecKeyRef SecKeyUnwrapSymmetric( + ffi.Pointer keyToUnwrap, + SecKeyRef unwrappingKey, + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@ffi.Native< + Boolean Function( + SecKeyRef, + SecKeyAlgorithm, + CFDataRef, + CFDataRef, + ffi.Pointer, + ) +>() +external int SecKeyVerifySignature( + SecKeyRef key, + SecKeyAlgorithm algorithm, + CFDataRef signedData, + CFDataRef signature, + ffi.Pointer error, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDataRef Function( + SecKeyRef, + SecKeyRef, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external CFDataRef SecKeyWrapSymmetric( + SecKeyRef keyToWrap, + SecKeyRef wrappingKey, + CFDictionaryRef parameters, + ffi.Pointer error, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainCallback, UInt32, ffi.Pointer) +>() +external int SecKeychainAddCallback( + SecKeychainCallback callbackFunction, + int eventMask, + ffi.Pointer userContext, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainRef, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecKeychainAddGenericPassword( + SecKeychainRef keychain, + int serviceNameLength, + ffi.Pointer serviceName, + int accountNameLength, + ffi.Pointer accountName, + int passwordLength, + ffi.Pointer passwordData, + ffi.Pointer itemRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainRef, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt16, + FourCharCode, + FourCharCode, + UInt32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'SecKeychainAddInternetPassword') +external int _SecKeychainAddInternetPassword( + SecKeychainRef keychain, + int serverNameLength, + ffi.Pointer serverName, + int securityDomainLength, + ffi.Pointer securityDomain, + int accountNameLength, + ffi.Pointer accountName, + int pathLength, + ffi.Pointer path, + int port, + int protocol, + int authenticationType, + int passwordLength, + ffi.Pointer passwordData, + ffi.Pointer itemRef, +); + +DartSInt32 SecKeychainAddInternetPassword( + SecKeychainRef keychain, + DartUInt32 serverNameLength, + ffi.Pointer serverName, + DartUInt32 securityDomainLength, + ffi.Pointer securityDomain, + DartUInt32 accountNameLength, + ffi.Pointer accountName, + DartUInt32 pathLength, + ffi.Pointer path, + DartUInt16 port, + SecProtocolType protocol, + SecAuthenticationType authenticationType, + DartUInt32 passwordLength, + ffi.Pointer passwordData, + ffi.Pointer itemRef, +) { + return _SecKeychainAddInternetPassword( + keychain, + serverNameLength, + serverName, + securityDomainLength, + securityDomain, + accountNameLength, + accountName, + pathLength, + path, + port, + protocol.value, + authenticationType.value, + passwordLength, + passwordData, + itemRef, + ); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainRef, + UInt32, + ffi.Pointer>, + ) +>() +external int SecKeychainAttributeInfoForItemID( + SecKeychainRef keychain, + int itemID, + ffi.Pointer> info, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainCopyAccess( + SecKeychainRef keychain, + ffi.Pointer access$1, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainCopyDefault(ffi.Pointer keychain); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>( + symbol: 'SecKeychainCopyDomainDefault', +) +external int _SecKeychainCopyDomainDefault( + int domain, + ffi.Pointer keychain, +); + +DartSInt32 SecKeychainCopyDomainDefault( + SecPreferencesDomain domain, + ffi.Pointer keychain, +) { + return _SecKeychainCopyDomainDefault(domain.value, keychain); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>( + symbol: 'SecKeychainCopyDomainSearchList', +) +external int _SecKeychainCopyDomainSearchList( + int domain, + ffi.Pointer searchList, +); + +DartSInt32 SecKeychainCopyDomainSearchList( + SecPreferencesDomain domain, + ffi.Pointer searchList, +) { + return _SecKeychainCopyDomainSearchList(domain.value, searchList); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainCopySearchList(ffi.Pointer searchList); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainRef, ffi.Pointer) +>() +external int SecKeychainCopySettings( + SecKeychainRef keychain, + ffi.Pointer outSettings, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + UInt32, + ffi.Pointer, + Boolean, + SecAccessRef, + ffi.Pointer, + ) +>() +external int SecKeychainCreate( + ffi.Pointer pathName, + int passwordLength, + ffi.Pointer password, + int promptUser, + SecAccessRef initialAccess, + ffi.Pointer keychain, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainDelete(SecKeychainRef keychainOrArray); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + CFTypeRef, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int SecKeychainFindGenericPassword( + CFTypeRef keychainOrArray, + int serviceNameLength, + ffi.Pointer serviceName, + int accountNameLength, + ffi.Pointer accountName, + ffi.Pointer passwordLength, + ffi.Pointer> passwordData, + ffi.Pointer itemRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + CFTypeRef, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt32, + ffi.Pointer, + UInt16, + FourCharCode, + FourCharCode, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>(symbol: 'SecKeychainFindInternetPassword') +external int _SecKeychainFindInternetPassword( + CFTypeRef keychainOrArray, + int serverNameLength, + ffi.Pointer serverName, + int securityDomainLength, + ffi.Pointer securityDomain, + int accountNameLength, + ffi.Pointer accountName, + int pathLength, + ffi.Pointer path, + int port, + int protocol, + int authenticationType, + ffi.Pointer passwordLength, + ffi.Pointer> passwordData, + ffi.Pointer itemRef, +); + +DartSInt32 SecKeychainFindInternetPassword( + CFTypeRef keychainOrArray, + DartUInt32 serverNameLength, + ffi.Pointer serverName, + DartUInt32 securityDomainLength, + ffi.Pointer securityDomain, + DartUInt32 accountNameLength, + ffi.Pointer accountName, + DartUInt32 pathLength, + ffi.Pointer path, + DartUInt16 port, + SecProtocolType protocol, + SecAuthenticationType authenticationType, + ffi.Pointer passwordLength, + ffi.Pointer> passwordData, + ffi.Pointer itemRef, +) { + return _SecKeychainFindInternetPassword( + keychainOrArray, + serverNameLength, + serverName, + securityDomainLength, + securityDomain, + accountNameLength, + accountName, + pathLength, + path, + port, + protocol.value, + authenticationType.value, + passwordLength, + passwordData, + itemRef, + ); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainFreeAttributeInfo( + ffi.Pointer info, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecKeychainGetCSPHandle( + SecKeychainRef keychain, + ffi.Pointer cspHandle, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecKeychainGetDLDBHandle( + SecKeychainRef keychain, + ffi.Pointer dldbHandle, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainRef, ffi.Pointer, ffi.Pointer) +>() +external int SecKeychainGetPath( + SecKeychainRef keychain, + ffi.Pointer ioPathLength, + ffi.Pointer pathName, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainGetPreferenceDomain( + ffi.Pointer domain, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainGetStatus( + SecKeychainRef keychain, + ffi.Pointer keychainStatus, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainGetTypeID(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainGetUserInteractionAllowed(ffi.Pointer state); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainGetVersion(ffi.Pointer returnVers); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainItemCopyAccess( + SecKeychainItemRef itemRef, + ffi.Pointer access$1, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int SecKeychainItemCopyAttributesAndData( + SecKeychainItemRef itemRef, + ffi.Pointer info, + ffi.Pointer itemClass, + ffi.Pointer> attrList, + ffi.Pointer length, + ffi.Pointer> outData, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int SecKeychainItemCopyContent( + SecKeychainItemRef itemRef, + ffi.Pointer itemClass, + ffi.Pointer attrList, + ffi.Pointer length, + ffi.Pointer> outData, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainItemCopyFromPersistentReference( + CFDataRef persistentItemRef, + ffi.Pointer itemRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainItemRef, ffi.Pointer) +>() +external int SecKeychainItemCopyKeychain( + SecKeychainItemRef itemRef, + ffi.Pointer keychainRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + SecKeychainRef, + SecAccessRef, + ffi.Pointer, + ) +>() +external int SecKeychainItemCreateCopy( + SecKeychainItemRef itemRef, + SecKeychainRef destKeychainRef, + SecAccessRef initialAccess, + ffi.Pointer itemCopy, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + FourCharCode, + ffi.Pointer, + UInt32, + ffi.Pointer, + SecKeychainRef, + SecAccessRef, + ffi.Pointer, + ) +>(symbol: 'SecKeychainItemCreateFromContent') +external int _SecKeychainItemCreateFromContent( + int itemClass, + ffi.Pointer attrList, + int length, + ffi.Pointer data, + SecKeychainRef keychainRef, + SecAccessRef initialAccess, + ffi.Pointer itemRef, +); + +DartSInt32 SecKeychainItemCreateFromContent( + SecItemClass itemClass, + ffi.Pointer attrList, + DartUInt32 length, + ffi.Pointer data, + SecKeychainRef keychainRef, + SecAccessRef initialAccess, + ffi.Pointer itemRef, +) { + return _SecKeychainItemCreateFromContent( + itemClass.value, + attrList, + length, + data, + keychainRef, + initialAccess, + itemRef, + ); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native)>() +external int SecKeychainItemCreatePersistentReference( + SecKeychainItemRef itemRef, + ffi.Pointer persistentItemRef, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainItemDelete(SecKeychainItemRef itemRef); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFTypeRef, + ffi.Uint32, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'SecKeychainItemExport') +external int _SecKeychainItemExport( + CFTypeRef keychainItemOrArray, + int outputFormat, + int flags, + ffi.Pointer keyParams, + ffi.Pointer exportedData, +); + +DartSInt32 SecKeychainItemExport( + CFTypeRef keychainItemOrArray, + SecExternalFormat outputFormat, + int flags, + ffi.Pointer keyParams, + ffi.Pointer exportedData, +) { + return _SecKeychainItemExport( + keychainItemOrArray, + outputFormat.value, + flags, + keyParams, + exportedData, + ); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecKeychainItemFreeAttributesAndData( + ffi.Pointer attrList, + ffi.Pointer data, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecKeychainItemFreeContent( + ffi.Pointer attrList, + ffi.Pointer data, +); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function(SecKeychainItemRef, ffi.Pointer) +>() +external int SecKeychainItemGetDLDBHandle( + SecKeychainItemRef keyItemRef, + ffi.Pointer dldbHandle, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainItemGetTypeID(); + +@Deprecated('CSSM is not supported') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + ffi.Pointer>, + ) +>() +external int SecKeychainItemGetUniqueRecordID( + SecKeychainItemRef itemRef, + ffi.Pointer> uniqueRecordID, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CFDataRef, + CFStringRef, + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ffi.Pointer, + SecKeychainRef, + ffi.Pointer, + ) +>() +external int SecKeychainItemImport( + CFDataRef importedData, + CFStringRef fileNameOrExtension, + ffi.Pointer inputFormat, + ffi.Pointer itemType, + int flags, + ffi.Pointer keyParams, + SecKeychainRef importKeychain, + ffi.Pointer outItems, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + ffi.Pointer, + UInt32, + ffi.Pointer, + ) +>() +external int SecKeychainItemModifyAttributesAndData( + SecKeychainItemRef itemRef, + ffi.Pointer attrList, + int length, + ffi.Pointer data, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + SecKeychainItemRef, + ffi.Pointer, + UInt32, + ffi.Pointer, + ) +>() +external int SecKeychainItemModifyContent( + SecKeychainItemRef itemRef, + ffi.Pointer attrList, + int length, + ffi.Pointer data, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainItemSetAccess( + SecKeychainItemRef itemRef, + SecAccessRef access$1, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainLock(SecKeychainRef keychain); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainLockAll(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int SecKeychainOpen( + ffi.Pointer pathName, + ffi.Pointer keychain, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainRemoveCallback(SecKeychainCallback callbackFunction); + +@Deprecated('SecKeychainSearch is not supported') +@ffi.Native< + OSStatus Function(SecKeychainSearchRef, ffi.Pointer) +>() +external int SecKeychainSearchCopyNext( + SecKeychainSearchRef searchRef, + ffi.Pointer itemRef, +); + +@Deprecated('SecKeychainSearch is not supported') +@ffi.Native< + OSStatus Function( + CFTypeRef, + FourCharCode, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'SecKeychainSearchCreateFromAttributes') +external int _SecKeychainSearchCreateFromAttributes( + CFTypeRef keychainOrArray, + int itemClass, + ffi.Pointer attrList, + ffi.Pointer searchRef, +); + +DartSInt32 SecKeychainSearchCreateFromAttributes( + CFTypeRef keychainOrArray, + SecItemClass itemClass, + ffi.Pointer attrList, + ffi.Pointer searchRef, +) { + return _SecKeychainSearchCreateFromAttributes( + keychainOrArray, + itemClass.value, + attrList, + searchRef, + ); +} + +@Deprecated('SecKeychainSearch is not supported') +@ffi.Native() +external int SecKeychainSearchGetTypeID(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainSetAccess( + SecKeychainRef keychain, + SecAccessRef access$1, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainSetDefault(SecKeychainRef keychain); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native( + symbol: 'SecKeychainSetDomainDefault', +) +external int _SecKeychainSetDomainDefault(int domain, SecKeychainRef keychain); + +DartSInt32 SecKeychainSetDomainDefault( + SecPreferencesDomain domain, + SecKeychainRef keychain, +) { + return _SecKeychainSetDomainDefault(domain.value, keychain); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native( + symbol: 'SecKeychainSetDomainSearchList', +) +external int _SecKeychainSetDomainSearchList(int domain, CFArrayRef searchList); + +DartSInt32 SecKeychainSetDomainSearchList( + SecPreferencesDomain domain, + CFArrayRef searchList, +) { + return _SecKeychainSetDomainSearchList(domain.value, searchList); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native( + symbol: 'SecKeychainSetPreferenceDomain', +) +external int _SecKeychainSetPreferenceDomain(int domain); + +DartSInt32 SecKeychainSetPreferenceDomain(SecPreferencesDomain domain) { + return _SecKeychainSetPreferenceDomain(domain.value); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainSetSearchList(CFArrayRef searchList); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainRef, ffi.Pointer) +>() +external int SecKeychainSetSettings( + SecKeychainRef keychain, + ffi.Pointer newSettings, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecKeychainSetUserInteractionAllowed(int state); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecKeychainRef, UInt32, ffi.Pointer, Boolean) +>() +external int SecKeychainUnlock( + SecKeychainRef keychain, + int passwordLength, + ffi.Pointer password, + int usePassword, +); + +@ffi.Native< + OSStatus Function(CFDataRef, CFDictionaryRef, ffi.Pointer) +>() +external int SecPKCS12Import( + CFDataRef pkcs12_data, + CFDictionaryRef options, + ffi.Pointer items, +); + +@ffi.Native() +external CFDictionaryRef SecPolicyCopyProperties(SecPolicyRef policyRef); + +@ffi.Native() +external SecPolicyRef SecPolicyCreateBasicX509(); + +@ffi.Native() +external SecPolicyRef SecPolicyCreateRevocation(int revocationFlags); + +@ffi.Native() +external SecPolicyRef SecPolicyCreateSSL(int server, CFStringRef hostname); + +@Deprecated('Deprecated') +@ffi.Native() +external SecPolicyRef SecPolicyCreateWithOID(CFTypeRef policyOID); + +@ffi.Native() +external SecPolicyRef SecPolicyCreateWithProperties( + CFTypeRef policyIdentifier, + CFDictionaryRef properties, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecPolicyGetOID( + SecPolicyRef policyRef, + ffi.Pointer oid, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecPolicyGetTPHandle( + SecPolicyRef policyRef, + ffi.Pointer tpHandle, +); + +@ffi.Native() +external int SecPolicyGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecPolicyGetValue( + SecPolicyRef policyRef, + ffi.Pointer value, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecPolicySearchCopyNext( + SecPolicySearchRef searchRef, + ffi.Pointer policyRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + CSSM_CERT_TYPE, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecPolicySearchCreate( + int certType, + ffi.Pointer policyOID, + ffi.Pointer value, + ffi.Pointer searchRef, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecPolicySearchGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecPolicySetProperties( + SecPolicyRef policyRef, + CFDictionaryRef properties, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecPolicySetValue( + SecPolicyRef policyRef, + ffi.Pointer value, +); + +@ffi.Native)>() +external int SecRandomCopyBytes( + SecRandomRef rnd, + int count, + ffi.Pointer bytes, +); + +@Deprecated( + 'Use ASAuthorizationController to make an ASAuthorizationPasswordRequest (AuthenticationServices framework)', +) +@ffi.Native< + ffi.Void Function(CFStringRef, CFStringRef, ffi.Pointer) +>(symbol: 'SecRequestSharedWebCredential') +external void _SecRequestSharedWebCredential( + CFStringRef fqdn, + CFStringRef account, + ffi.Pointer completionHandler, +); + +void SecRequestSharedWebCredential( + CFStringRef fqdn, + CFStringRef account, + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + completionHandler, +) { + final _$$ref = completionHandler.ref; + return _SecRequestSharedWebCredential(fqdn, account, _$$ref.pointer); +} + +@ffi.Native< + OSStatus Function(SecRequirementRef, ffi.Uint32, ffi.Pointer) +>() +external int SecRequirementCopyData( + SecRequirementRef requirement, + int flags, + ffi.Pointer data, +); + +@ffi.Native< + OSStatus Function(SecRequirementRef, ffi.Uint32, ffi.Pointer) +>() +external int SecRequirementCopyString( + SecRequirementRef requirement, + int flags, + ffi.Pointer text, +); + +@ffi.Native< + OSStatus Function(CFDataRef, ffi.Uint32, ffi.Pointer) +>() +external int SecRequirementCreateWithData( + CFDataRef data, + int flags, + ffi.Pointer requirement, +); + +@ffi.Native< + OSStatus Function(CFStringRef, ffi.Uint32, ffi.Pointer) +>() +external int SecRequirementCreateWithString( + CFStringRef text, + int flags, + ffi.Pointer requirement, +); + +@ffi.Native< + OSStatus Function( + CFStringRef, + ffi.Uint32, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecRequirementCreateWithStringAndErrors( + CFStringRef text, + int flags, + ffi.Pointer errors, + ffi.Pointer requirement, +); + +@ffi.Native() +external int SecRequirementGetTypeID(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecSignTransformCreate( + SecKeyRef key, + ffi.Pointer error, +); + +@ffi.Native< + OSStatus Function(SecStaticCodeRef, ffi.Uint32, SecRequirementRef) +>() +external int SecStaticCodeCheckValidity( + SecStaticCodeRef staticCode, + int flags, + SecRequirementRef requirement, +); + +@ffi.Native< + OSStatus Function( + SecStaticCodeRef, + ffi.Uint32, + SecRequirementRef, + ffi.Pointer, + ) +>() +external int SecStaticCodeCheckValidityWithErrors( + SecStaticCodeRef staticCode, + int flags, + SecRequirementRef requirement, + ffi.Pointer errors, +); + +@ffi.Native< + OSStatus Function(CFURLRef, ffi.Uint32, ffi.Pointer) +>() +external int SecStaticCodeCreateWithPath( + CFURLRef path, + int flags, + ffi.Pointer staticCode, +); + +@ffi.Native< + OSStatus Function( + CFURLRef, + ffi.Uint32, + CFDictionaryRef, + ffi.Pointer, + ) +>() +external int SecStaticCodeCreateWithPathAndAttributes( + CFURLRef path, + int flags, + CFDictionaryRef attributes, + ffi.Pointer staticCode, +); + +@ffi.Native() +external int SecStaticCodeGetTypeID(); + +@ffi.Native)>() +external CFStringRef SecTaskCopySigningIdentifier( + SecTaskRef task, + ffi.Pointer error, +); + +@ffi.Native< + CFTypeRef Function(SecTaskRef, CFStringRef, ffi.Pointer) +>() +external CFTypeRef SecTaskCopyValueForEntitlement( + SecTaskRef task, + CFStringRef entitlement, + ffi.Pointer error, +); + +@ffi.Native< + CFDictionaryRef Function(SecTaskRef, CFArrayRef, ffi.Pointer) +>() +external CFDictionaryRef SecTaskCopyValuesForEntitlements( + SecTaskRef task, + CFArrayRef entitlements, + ffi.Pointer error, +); + +@ffi.Native() +external SecTaskRef SecTaskCreateFromSelf(CFAllocatorRef allocator); + +@ffi.Native() +external SecTaskRef SecTaskCreateWithAuditToken( + CFAllocatorRef allocator, + audit_token_t token, +); + +@ffi.Native() +external int SecTaskGetCodeSignStatus(SecTaskRef task); + +@ffi.Native() +external int SecTaskGetTypeID(); + +@Deprecated('Deprecated') +@ffi.Native< + CFTypeRef Function( + SecTransformImplementationRef, + SecTransformStringOrAttributeRef, + CFIndex, + ) +>(symbol: 'SecTranformCustomGetAttribute') +external CFTypeRef _SecTranformCustomGetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + int type, +); + +CFTypeRef SecTranformCustomGetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + SecTransformMetaAttributeType type, +) { + return _SecTranformCustomGetAttribute(ref, attribute, type.value); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + SecGroupTransformRef Function( + SecTransformRef, + CFStringRef, + SecTransformRef, + CFStringRef, + SecGroupTransformRef, + ffi.Pointer, + ) +>() +external SecGroupTransformRef SecTransformConnectTransforms( + SecTransformRef sourceTransformRef, + CFStringRef sourceAttributeName, + SecTransformRef destinationTransformRef, + CFStringRef destinationAttributeName, + SecGroupTransformRef group, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external CFDictionaryRef SecTransformCopyExternalRepresentation( + SecTransformRef transformRef, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external SecTransformRef SecTransformCreate( + CFStringRef name, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + SecTransformRef Function(CFDictionaryRef, ffi.Pointer) +>() +external SecTransformRef SecTransformCreateFromExternalRepresentation( + CFDictionaryRef dictionary, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external SecGroupTransformRef SecTransformCreateGroupTransform(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external SecTransformRef SecTransformCreateReadTransformWithReadStream( + CFReadStreamRef inputStream, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFTypeRef Function( + SecTransformImplementationRef, + SecTransformStringOrAttributeRef, + CFIndex, + ) +>(symbol: 'SecTransformCustomGetAttribute') +external CFTypeRef _SecTransformCustomGetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + int type, +); + +CFTypeRef SecTransformCustomGetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + SecTransformMetaAttributeType type, +) { + return _SecTransformCustomGetAttribute(ref, attribute, type.value); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFTypeRef Function( + SecTransformImplementationRef, + SecTransformStringOrAttributeRef, + CFIndex, + CFTypeRef, + ) +>(symbol: 'SecTransformCustomSetAttribute') +external CFTypeRef _SecTransformCustomSetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + int type, + CFTypeRef value, +); + +CFTypeRef SecTransformCustomSetAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + SecTransformMetaAttributeType type, + CFTypeRef value, +) { + return _SecTransformCustomSetAttribute(ref, attribute, type.value, value); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native)>() +external CFTypeRef SecTransformExecute( + SecTransformRef transformRef, + ffi.Pointer errorRef, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + ffi.Void Function(SecTransformRef, dispatch_queue_t, SecMessageBlock) +>(symbol: 'SecTransformExecuteAsync') +external void _SecTransformExecuteAsync( + SecTransformRef transformRef, + dispatch_queue_t deliveryQueue, + SecMessageBlock deliveryBlock, +); + +void SecTransformExecuteAsync( + SecTransformRef transformRef, + Dartdispatch_queue_t deliveryQueue, + DartSecMessageBlock deliveryBlock, +) { + final _$$ref = deliveryQueue.ref; + final _$$ref$1 = deliveryBlock.ref; + return _SecTransformExecuteAsync( + transformRef, + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external SecTransformRef SecTransformFindByName( + SecGroupTransformRef transform, + CFStringRef name, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external CFTypeRef SecTransformGetAttribute( + SecTransformRef transformRef, + CFStringRef key, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external int SecTransformGetTypeID(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native() +external CFTypeRef SecTransformNoData(); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFTypeRef Function( + SecTransformImplementationRef, + SecTransformStringOrAttributeRef, + CFTypeRef, + ) +>() +external CFTypeRef SecTransformPushbackAttribute( + SecTransformImplementationRef ref, + SecTransformStringOrAttributeRef attribute, + CFTypeRef value, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + Boolean Function(CFStringRef, SecTransformCreateFP, ffi.Pointer) +>() +external int SecTransformRegister( + CFStringRef uniqueName, + SecTransformCreateFP createTransformFunction, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + Boolean Function( + SecTransformRef, + CFStringRef, + CFTypeRef, + ffi.Pointer, + ) +>() +external int SecTransformSetAttribute( + SecTransformRef transformRef, + CFStringRef key, + CFTypeRef value, + ffi.Pointer error, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFErrorRef Function( + SecTransformImplementationRef, + CFStringRef, + SecTransformStringOrAttributeRef, + SecTransformAttributeActionBlock, + ) +>(symbol: 'SecTransformSetAttributeAction') +external CFErrorRef _SecTransformSetAttributeAction( + SecTransformImplementationRef ref, + CFStringRef action, + SecTransformStringOrAttributeRef attribute, + SecTransformAttributeActionBlock newAction, +); + +CFErrorRef SecTransformSetAttributeAction( + SecTransformImplementationRef ref, + CFStringRef action, + SecTransformStringOrAttributeRef attribute, + DartSecTransformAttributeActionBlock newAction, +) { + final _$$ref = newAction.ref; + return _SecTransformSetAttributeAction( + ref, + action, + attribute, + _$$ref.pointer, + ); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFErrorRef Function( + SecTransformImplementationRef, + CFStringRef, + SecTransformDataBlock, + ) +>(symbol: 'SecTransformSetDataAction') +external CFErrorRef _SecTransformSetDataAction( + SecTransformImplementationRef ref, + CFStringRef action, + SecTransformDataBlock newAction, +); + +CFErrorRef SecTransformSetDataAction( + SecTransformImplementationRef ref, + CFStringRef action, + DartSecTransformDataBlock newAction, +) { + final _$$ref = newAction.ref; + return _SecTransformSetDataAction(ref, action, _$$ref.pointer); +} + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + CFErrorRef Function( + SecTransformImplementationRef, + CFStringRef, + SecTransformActionBlock, + ) +>(symbol: 'SecTransformSetTransformAction') +external CFErrorRef _SecTransformSetTransformAction( + SecTransformImplementationRef ref, + CFStringRef action, + SecTransformActionBlock newAction, +); + +CFErrorRef SecTransformSetTransformAction( + SecTransformImplementationRef ref, + CFStringRef action, + DartSecTransformActionBlock newAction, +) { + final _$$ref = newAction.ref; + return _SecTransformSetTransformAction(ref, action, _$$ref.pointer); +} + +@ffi.Native)>() +external int SecTrustCopyAnchorCertificates(ffi.Pointer anchors); + +@ffi.Native() +external CFArrayRef SecTrustCopyCertificateChain(SecTrustRef trust); + +@ffi.Native)>() +external int SecTrustCopyCustomAnchorCertificates( + SecTrustRef trust, + ffi.Pointer anchors, +); + +@ffi.Native() +external CFDataRef SecTrustCopyExceptions(SecTrustRef trust); + +@ffi.Native() +external SecKeyRef SecTrustCopyKey(SecTrustRef trust); + +@ffi.Native)>() +external int SecTrustCopyPolicies( + SecTrustRef trust, + ffi.Pointer policies, +); + +@Deprecated('Deprecated') +@ffi.Native() +external CFArrayRef SecTrustCopyProperties(SecTrustRef trust); + +@Deprecated('Deprecated') +@ffi.Native() +external SecKeyRef SecTrustCopyPublicKey(SecTrustRef trust); + +@ffi.Native() +external CFDictionaryRef SecTrustCopyResult(SecTrustRef trust); + +@ffi.Native)>() +external int SecTrustCreateWithCertificates( + CFTypeRef certificates, + CFTypeRef policies, + ffi.Pointer trust, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecTrustEvaluate( + SecTrustRef trust, + ffi.Pointer result, +); + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'SecTrustEvaluateAsync', +) +external int _SecTrustEvaluateAsync( + SecTrustRef trust, + dispatch_queue_t queue, + SecTrustCallback result, +); + +DartSInt32 SecTrustEvaluateAsync( + SecTrustRef trust, + Dartdispatch_queue_t? queue, + DartSecTrustCallback result, +) { + final _$$ref = queue?.ref; + final _$$ref$1 = result.ref; + return _SecTrustEvaluateAsync( + trust, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + OSStatus Function(SecTrustRef, dispatch_queue_t, SecTrustWithErrorCallback) +>(symbol: 'SecTrustEvaluateAsyncWithError') +external int _SecTrustEvaluateAsyncWithError( + SecTrustRef trust, + dispatch_queue_t queue, + SecTrustWithErrorCallback result, +); + +DartSInt32 SecTrustEvaluateAsyncWithError( + SecTrustRef trust, + Dartdispatch_queue_t queue, + DartSecTrustWithErrorCallback result, +) { + final _$$ref = queue.ref; + final _$$ref$1 = result.ref; + return _SecTrustEvaluateAsyncWithError( + trust, + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native)>() +external bool SecTrustEvaluateWithError( + SecTrustRef trust, + ffi.Pointer error, +); + +@Deprecated('Deprecated') +@ffi.Native() +external SecCertificateRef SecTrustGetCertificateAtIndex( + SecTrustRef trust, + int ix, +); + +@ffi.Native() +external int SecTrustGetCertificateCount(SecTrustRef trust); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function(SecTrustRef, ffi.Pointer) +>() +external int SecTrustGetCssmResult( + SecTrustRef trust, + ffi.Pointer result, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecTrustGetCssmResultCode( + SecTrustRef trust, + ffi.Pointer resultCode, +); + +@ffi.Native)>() +external int SecTrustGetNetworkFetchAllowed( + SecTrustRef trust, + ffi.Pointer allowFetch, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + SecTrustRef, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int SecTrustGetResult( + SecTrustRef trustRef, + ffi.Pointer result, + ffi.Pointer certChain, + ffi.Pointer> statusChain, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SecTrustGetTPHandle( + SecTrustRef trust, + ffi.Pointer handle, +); + +@ffi.Native)>() +external int SecTrustGetTrustResult( + SecTrustRef trust, + ffi.Pointer result, +); + +@ffi.Native() +external int SecTrustGetTypeID(); + +@ffi.Native() +external double SecTrustGetVerifyTime(SecTrustRef trust); + +@ffi.Native() +external int SecTrustSetAnchorCertificates( + SecTrustRef trust, + CFArrayRef anchorCertificates, +); + +@ffi.Native() +external int SecTrustSetAnchorCertificatesOnly( + SecTrustRef trust, + int anchorCertificatesOnly, +); + +@ffi.Native() +external bool SecTrustSetExceptions(SecTrustRef trust, CFDataRef exceptions); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecTrustSetKeychains(SecTrustRef trust, CFTypeRef keychainOrArray); + +@ffi.Native() +external int SecTrustSetNetworkFetchAllowed(SecTrustRef trust, int allowFetch); + +@ffi.Native() +external int SecTrustSetOCSPResponse(SecTrustRef trust, CFTypeRef responseData); + +@ffi.Native() +external int SecTrustSetOptions(SecTrustRef trustRef, int options); + +@Deprecated('Deprecated') +@ffi.Native() +external int SecTrustSetParameters( + SecTrustRef trustRef, + int action, + CFDataRef actionData, +); + +@ffi.Native() +external int SecTrustSetPolicies(SecTrustRef trust, CFTypeRef policies); + +@ffi.Native() +external int SecTrustSetSignedCertificateTimestamps( + SecTrustRef trust, + CFArrayRef sctArray, +); + +@ffi.Native() +external int SecTrustSetVerifyDate(SecTrustRef trust, CFDateRef verifyDate); + +@ffi.Native)>( + symbol: 'SecTrustSettingsCopyCertificates', +) +external int _SecTrustSettingsCopyCertificates( + int domain, + ffi.Pointer certArray, +); + +DartSInt32 SecTrustSettingsCopyCertificates( + SecTrustSettingsDomain domain, + ffi.Pointer certArray, +) { + return _SecTrustSettingsCopyCertificates(domain.value, certArray); +} + +@ffi.Native< + OSStatus Function(SecCertificateRef, ffi.Uint32, ffi.Pointer) +>(symbol: 'SecTrustSettingsCopyModificationDate') +external int _SecTrustSettingsCopyModificationDate( + SecCertificateRef certRef, + int domain, + ffi.Pointer modificationDate, +); + +DartSInt32 SecTrustSettingsCopyModificationDate( + SecCertificateRef certRef, + SecTrustSettingsDomain domain, + ffi.Pointer modificationDate, +) { + return _SecTrustSettingsCopyModificationDate( + certRef, + domain.value, + modificationDate, + ); +} + +@ffi.Native< + OSStatus Function(SecCertificateRef, ffi.Uint32, ffi.Pointer) +>(symbol: 'SecTrustSettingsCopyTrustSettings') +external int _SecTrustSettingsCopyTrustSettings( + SecCertificateRef certRef, + int domain, + ffi.Pointer trustSettings, +); + +DartSInt32 SecTrustSettingsCopyTrustSettings( + SecCertificateRef certRef, + SecTrustSettingsDomain domain, + ffi.Pointer trustSettings, +) { + return _SecTrustSettingsCopyTrustSettings( + certRef, + domain.value, + trustSettings, + ); +} + +@ffi.Native)>( + symbol: 'SecTrustSettingsCreateExternalRepresentation', +) +external int _SecTrustSettingsCreateExternalRepresentation( + int domain, + ffi.Pointer trustSettings, +); + +DartSInt32 SecTrustSettingsCreateExternalRepresentation( + SecTrustSettingsDomain domain, + ffi.Pointer trustSettings, +) { + return _SecTrustSettingsCreateExternalRepresentation( + domain.value, + trustSettings, + ); +} + +@ffi.Native( + symbol: 'SecTrustSettingsImportExternalRepresentation', +) +external int _SecTrustSettingsImportExternalRepresentation( + int domain, + CFDataRef trustSettings, +); + +DartSInt32 SecTrustSettingsImportExternalRepresentation( + SecTrustSettingsDomain domain, + CFDataRef trustSettings, +) { + return _SecTrustSettingsImportExternalRepresentation( + domain.value, + trustSettings, + ); +} + +@ffi.Native( + symbol: 'SecTrustSettingsRemoveTrustSettings', +) +external int _SecTrustSettingsRemoveTrustSettings( + SecCertificateRef certRef, + int domain, +); + +DartSInt32 SecTrustSettingsRemoveTrustSettings( + SecCertificateRef certRef, + SecTrustSettingsDomain domain, +) { + return _SecTrustSettingsRemoveTrustSettings(certRef, domain.value); +} + +@ffi.Native( + symbol: 'SecTrustSettingsSetTrustSettings', +) +external int _SecTrustSettingsSetTrustSettings( + SecCertificateRef certRef, + int domain, + CFTypeRef trustSettingsDictOrArray, +); + +DartSInt32 SecTrustSettingsSetTrustSettings( + SecCertificateRef certRef, + SecTrustSettingsDomain domain, + CFTypeRef trustSettingsDictOrArray, +) { + return _SecTrustSettingsSetTrustSettings( + certRef, + domain.value, + trustSettingsDictOrArray, + ); +} + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function(SecTrustedApplicationRef, ffi.Pointer) +>() +external int SecTrustedApplicationCopyData( + SecTrustedApplicationRef appRef, + ffi.Pointer data, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SecTrustedApplicationCreateFromPath( + ffi.Pointer path, + ffi.Pointer app, +); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecTrustedApplicationGetTypeID(); + +@Deprecated('SecKeychain is deprecated') +@ffi.Native() +external int SecTrustedApplicationSetData( + SecTrustedApplicationRef appRef, + CFDataRef data, +); + +@Deprecated('SecTransform is no longer supported') +@ffi.Native< + SecTransformRef Function(SecKeyRef, CFDataRef, ffi.Pointer) +>() +external SecTransformRef SecVerifyTransformCreate( + SecKeyRef key, + CFDataRef signature, + ffi.Pointer error, +); + +@ffi.Native() +external int SessionCreate(int flags, int attributes); + +@ffi.Native< + OSStatus Function( + SecuritySessionId, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int SessionGetInfo( + int session, + ffi.Pointer sessionId, + ffi.Pointer attributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetAliasUserType(AliasHandle alias, int userType); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetAliasUserTypeWithPtr(AliasPtr alias, int userType); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetCollectionDefaultAttributes( + Collection c, + int whichAttributes, + int newAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetCollectionExceptionProc( + Collection c, + CollectionExceptionUPP exceptionProc, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetCollectionItemInfo( + Collection c, + int tag, + int id, + int whichAttributes, + int newAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetComponentInstanceError( + ComponentInstance aComponentInstance, + int theError, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetComponentInstanceStorage( + ComponentInstance aComponentInstance, + Handle theStorage, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetComponentRefcon(Component aComponent, int theRefcon); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int SetCustomIconsEnabled(int vRefNum, int enableCustomIcons); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetDebugOptionValue( + int componentSignature, + int optionSelectorNum, + int newOptionSetting, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function( + DebuggerNewThreadTPP, + DebuggerDisposeThreadTPP, + DebuggerThreadSchedulerTPP, + ) +>() +external int SetDebuggerNotificationProcs( + DebuggerNewThreadTPP notifyNewThread, + DebuggerDisposeThreadTPP notifyDisposeThread, + DebuggerThreadSchedulerTPP notifyThreadScheduler, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetDefaultComponent(Component aComponent, int flags); + +@ffi.Native< + OSStatus Function( + UnicodeToTextInfo, + UnicodeToTextFallbackUPP, + OptionBits, + LogicalAddress, + ) +>() +external int SetFallbackUnicodeToText( + UnicodeToTextInfo iUnicodeToTextInfo, + UnicodeToTextFallbackUPP iFallback, + int iControlFlags, + LogicalAddress iInfoPtr, +); + +@ffi.Native< + OSStatus Function( + UnicodeToTextRunInfo, + UnicodeToTextFallbackUPP, + OptionBits, + LogicalAddress, + ) +>() +external int SetFallbackUnicodeToTextRun( + UnicodeToTextRunInfo iUnicodeToTextRunInfo, + UnicodeToTextFallbackUPP iFallback, + int iControlFlags, + LogicalAddress iInfoPtr, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int SetFrontProcess(ffi.Pointer pPSN); + +@Deprecated('Deprecated') +@ffi.Native, OptionBits)>() +external int SetFrontProcessWithOptions( + ffi.Pointer inProcess, + int inOptions, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetGestaltValue(int selector, int newValue); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetHandleSize(Handle h, int newSize); + +@ffi.Native() +external int SetIconFamilyData( + IconFamilyHandle iconFamily, + int iconType, + Handle h, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetIndexedCollectionItemInfo( + Collection c, + int itemIndex, + int whichAttributes, + int newAttributes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetPtrSize(Ptr p, int newSize); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResAttrs(Handle theResource, int attrs); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResFileAttrs(int refNum, int attrs); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResInfo(Handle theResource, int theID, ConstStr255Param name); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResLoad(int load); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResPurge(int install); + +@Deprecated('Deprecated') +@ffi.Native() +external void SetResourceSize(Handle theResource, int newSize); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetScriptManagerVariable(int selector, int param); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native)>() +external int SetSpeechInfo( + SpeechChannel chan, + int selector, + ffi.Pointer speechInfo, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SetSpeechPitch(SpeechChannel chan, int pitch); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SetSpeechProperty( + SpeechChannel chan, + CFStringRef property, + CFTypeRef object, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SetSpeechRate(SpeechChannel chan, int rate); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetThreadReadyGivenTaskRef( + ThreadTaskRef threadTRef, + int threadToSet, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetThreadScheduler(ThreadSchedulerTPP threadScheduler); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetThreadState(int threadToSet, int newState, int suggestedThread); + +@Deprecated('Deprecated') +@ffi.Native() +external int SetThreadStateEndCritical( + int threadToSet, + int newState, + int suggestedThread, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ThreadID, ThreadSwitchTPP, ffi.Pointer, Boolean) +>() +external int SetThreadSwitcher( + int thread, + ThreadSwitchTPP threadSwitcher, + ffi.Pointer switchProcParam, + int inOrOut, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(ThreadID, ThreadTerminationTPP, ffi.Pointer) +>() +external int SetThreadTerminator( + int thread, + ThreadTerminationTPP threadTerminator, + ffi.Pointer terminationProcParam, +); + +@Deprecated('Deprecated') +@ffi.Native, Boolean)>() +external int ShowHideProcess(ffi.Pointer psn, int visible); + +@Deprecated('No longer supported') +@ffi.Native() +external void SleepQInstall(SleepQRecPtr qRecPtr); + +@Deprecated('No longer supported') +@ffi.Native() +external void SleepQRemove(SleepQRecPtr qRecPtr); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(SpeechChannel, ffi.Pointer, ffi.UnsignedLong, SInt32) +>() +external int SpeakBuffer( + SpeechChannel chan, + ffi.Pointer textBuf, + int textBytes, + int controlFlags, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeakCFString( + SpeechChannel chan, + CFStringRef aString, + CFDictionaryRef options, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeakString(ConstStr255Param textToBeSpoken); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function(SpeechChannel, ffi.Pointer, ffi.UnsignedLong) +>() +external int SpeakText( + SpeechChannel chan, + ffi.Pointer textBuf, + int textBytes, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeechBusy(); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeechBusySystemWide(); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external NumVersion SpeechManagerVersion(); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeechSynthesisRegisterModuleURL(CFURLRef url); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int SpeechSynthesisUnregisterModuleURL(CFURLRef url); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int StopSpeech(SpeechChannel chan); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int StopSpeechAt(SpeechChannel chan, int whereToStop); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime SubAbsoluteFromAbsolute( + AbsoluteTime leftAbsoluteTime, + AbsoluteTime rightAbsoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime SubDurationFromAbsolute( + int duration, + AbsoluteTime absoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime SubNanosecondsFromAbsolute( + Nanoseconds nanoseconds, + AbsoluteTime absoluteTime, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void SysBreak(); + +@Deprecated('Deprecated') +@ffi.Native() +external void SysBreakFunc(ConstStr255Param debuggerMsg); + +@Deprecated('Deprecated') +@ffi.Native() +external void SysBreakStr(ConstStr255Param debuggerMsg); + +@Deprecated('Deprecated') +@ffi.Native() +external void SysError(int errorCode); + +@ffi.Native() +external int TECClearConverterContextInfo(TECObjectRef encodingConverter); + +@ffi.Native() +external int TECClearSnifferContextInfo(TECSnifferObjectRef encodingSniffer); + +@ffi.Native< + OSStatus Function( + TECObjectRef, + ConstTextPtr, + ByteCount, + ffi.Pointer, + TextPtr, + ByteCount, + ffi.Pointer, + ) +>() +external int TECConvertText( + TECObjectRef encodingConverter, + ConstTextPtr inputBuffer, + int inputBufferLength, + ffi.Pointer actualInputLength, + TextPtr outputBuffer, + int outputBufferLength, + ffi.Pointer actualOutputLength, +); + +@ffi.Native< + OSStatus Function( + TECObjectRef, + ConstTextPtr, + ByteCount, + ffi.Pointer, + TextPtr, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECConvertTextToMultipleEncodings( + TECObjectRef encodingConverter, + ConstTextPtr inputBuffer, + int inputBufferLength, + ffi.Pointer actualInputLength, + TextPtr outputBuffer, + int outputBufferLength, + ffi.Pointer actualOutputLength, + ffi.Pointer outEncodingsBuffer, + int maxOutEncodingRuns, + ffi.Pointer actualOutEncodingRuns, +); + +@ffi.Native< + OSStatus Function( + TextEncoding, + TECInternetNameUsageMask, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int TECCopyTextEncodingInternetNameAndMIB( + int textEncoding, + int usage, + ffi.Pointer encodingNamePtr, + ffi.Pointer mibEnumPtr, +); + +@ffi.Native)>() +external int TECCountAvailableSniffers( + ffi.Pointer numberOfEncodings, +); + +@ffi.Native)>() +external int TECCountAvailableTextEncodings( + ffi.Pointer numberEncodings, +); + +@ffi.Native)>() +external int TECCountDestinationTextEncodings( + int inputEncoding, + ffi.Pointer numberOfEncodings, +); + +@ffi.Native)>() +external int TECCountDirectTextEncodingConversions( + ffi.Pointer numberOfEncodings, +); + +@ffi.Native)>() +external int TECCountMailTextEncodings( + int locale, + ffi.Pointer numberEncodings, +); + +@ffi.Native)>() +external int TECCountSubTextEncodings( + int inputEncoding, + ffi.Pointer numberOfEncodings, +); + +@ffi.Native)>() +external int TECCountWebTextEncodings( + int locale, + ffi.Pointer numberEncodings, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, TextEncoding, TextEncoding) +>() +external int TECCreateConverter( + ffi.Pointer newEncodingConverter, + int inputEncoding, + int outputEncoding, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ItemCount, + ) +>() +external int TECCreateConverterFromPath( + ffi.Pointer newEncodingConverter, + ffi.Pointer inPath, + int inEncodings, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + TextEncoding, + ItemCount, + ffi.Pointer, + ) +>() +external int TECCreateOneToManyConverter( + ffi.Pointer newEncodingConverter, + int inputEncoding, + int numOutputEncodings, + ffi.Pointer outputEncodings, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ItemCount, + ) +>() +external int TECCreateSniffer( + ffi.Pointer encodingSniffer, + ffi.Pointer testEncodings, + int numTextEncodings, +); + +@ffi.Native() +external int TECDisposeConverter(TECObjectRef newEncodingConverter); + +@ffi.Native() +external int TECDisposeSniffer(TECSnifferObjectRef encodingSniffer); + +@ffi.Native< + OSStatus Function( + TECObjectRef, + TextPtr, + ByteCount, + ffi.Pointer, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECFlushMultipleEncodings( + TECObjectRef encodingConverter, + TextPtr outputBuffer, + int outputBufferLength, + ffi.Pointer actualOutputLength, + ffi.Pointer outEncodingsBuffer, + int maxOutEncodingRuns, + ffi.Pointer actualOutEncodingRuns, +); + +@ffi.Native< + OSStatus Function(TECObjectRef, TextPtr, ByteCount, ffi.Pointer) +>() +external int TECFlushText( + TECObjectRef encodingConverter, + TextPtr outputBuffer, + int outputBufferLength, + ffi.Pointer actualOutputLength, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetAvailableSniffers( + ffi.Pointer availableSniffers, + int maxAvailableSniffers, + ffi.Pointer actualAvailableSniffers, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetAvailableTextEncodings( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, +); + +@ffi.Native< + OSStatus Function( + TextEncoding, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetDestinationTextEncodings( + int inputEncoding, + ffi.Pointer destinationEncodings, + int maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetDirectTextEncodingConversions( + ffi.Pointer availableConversions, + int maxAvailableConversions, + ffi.Pointer actualAvailableConversions, +); + +@ffi.Native< + OSStatus Function(TECObjectRef, ffi.Pointer, ffi.Pointer) +>() +external int TECGetEncodingList( + TECObjectRef encodingConverter, + ffi.Pointer numEncodings, + ffi.Pointer encodingList, +); + +@ffi.Native)>() +external int TECGetInfo(ffi.Pointer tecInfo); + +@ffi.Native< + OSStatus Function( + RegionCode, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetMailTextEncodings( + int locale, + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, +); + +@ffi.Native< + OSStatus Function( + TextEncoding, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetSubTextEncodings( + int inputEncoding, + ffi.Pointer subEncodings, + int maxSubEncodings, + ffi.Pointer actualSubEncodings, +); + +@ffi.Native, ConstStr255Param)>() +external int TECGetTextEncodingFromInternetName( + ffi.Pointer textEncoding, + ConstStr255Param encodingName, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + TECInternetNameUsageMask, + CFStringRef, + SInt32, + ) +>() +external int TECGetTextEncodingFromInternetNameOrMIB( + ffi.Pointer textEncodingPtr, + int usage, + CFStringRef encodingName, + int mibEnum, +); + +@ffi.Native)>() +external int TECGetTextEncodingInternetName( + int textEncoding, + ffi.Pointer encodingName, +); + +@ffi.Native< + OSStatus Function( + RegionCode, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ) +>() +external int TECGetWebTextEncodings( + int locale, + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, +); + +@ffi.Native() +external int TECSetBasicOptions( + TECObjectRef encodingConverter, + int controlFlags, +); + +@ffi.Native< + OSStatus Function( + TECSnifferObjectRef, + ConstTextPtr, + ByteCount, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ItemCount, + ) +>() +external int TECSniffTextEncoding( + TECSnifferObjectRef encodingSniffer, + ConstTextPtr inputBuffer, + int inputBufferLength, + ffi.Pointer testEncodings, + int numTextEncodings, + ffi.Pointer numErrsArray, + int maxErrs, + ffi.Pointer numFeaturesArray, + int maxFeatures, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int TaskLevel(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external Handle TempNewHandle(int logicalSize, ffi.Pointer resultCode); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int TestAndClear(int bit, ffi.Pointer address); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int TestAndSet(int bit, ffi.Pointer address); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native< + OSErr Function( + SpeechChannel, + ffi.Pointer, + ffi.UnsignedLong, + Handle, + ffi.Pointer, + ) +>() +external int TextToPhonemes( + SpeechChannel chan, + ffi.Pointer textBuf, + int textBytes, + Handle phonemeBuf, + ffi.Pointer phonemeBytes, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ThreadBeginCritical(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int ThreadCurrentStackSpace( + int thread, + ffi.Pointer freeStack, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int ThreadEndCritical(); + +@Deprecated('Deprecated') +@ffi.Native() +external int TickCount(); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ProcessApplicationTransformState, + ) +>() +external int TransformProcessType( + ffi.Pointer psn, + int transformState, +); + +@ffi.Native)>() +external int TranslationCopyDestinationType( + TranslationRef inTranslation, + ffi.Pointer outDestinationType, +); + +@ffi.Native)>() +external int TranslationCopySourceType( + TranslationRef inTranslation, + ffi.Pointer outSourceType, +); + +@ffi.Native< + OSStatus Function( + CFStringRef, + CFStringRef, + TranslationFlags, + ffi.Pointer, + ) +>() +external int TranslationCreate( + CFStringRef inSourceType, + CFStringRef inDestinationType, + int inTranslationFlags, + ffi.Pointer outTranslation, +); + +@ffi.Native< + OSStatus Function( + CFArrayRef, + TranslationFlags, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int TranslationCreateWithSourceArray( + CFArrayRef inSourceTypes, + int inTranslationFlags, + ffi.Pointer outDestinationTypes, + ffi.Pointer outTranslations, +); + +@ffi.Native)>() +external int TranslationGetTranslationFlags( + TranslationRef inTranslation, + ffi.Pointer outTranslationFlags, +); + +@ffi.Native() +external int TranslationGetTypeID(); + +@ffi.Native< + OSStatus Function(TranslationRef, CFDataRef, ffi.Pointer) +>() +external int TranslationPerformForData( + TranslationRef inTranslation, + CFDataRef inSourceData, + ffi.Pointer outDestinationData, +); + +@ffi.Native< + OSStatus Function( + TranslationRef, + ffi.Pointer, + ffi.Pointer, + CFStringRef, + ffi.Pointer, + ) +>() +external int TranslationPerformForFile( + TranslationRef inTranslation, + ffi.Pointer inSourceFile, + ffi.Pointer inDestinationDirectory, + CFStringRef inDestinationName, + ffi.Pointer outTranslatedFile, +); + +@ffi.Native< + OSStatus Function(TranslationRef, CFURLRef, CFURLRef, ffi.Pointer) +>() +external int TranslationPerformForURL( + TranslationRef inTranslation, + CFURLRef inSourceURL, + CFURLRef inDestinationURL, + ffi.Pointer outTranslatedURL, +); + +@ffi.Native< + OSStatus Function( + ConstTextToUnicodeInfo, + ByteCount, + ConstLogicalAddress, + ByteCount, + ffi.Pointer, + ) +>() +external int TruncateForTextToUnicode( + ConstTextToUnicodeInfo iTextToUnicodeInfo, + int iSourceLen, + ConstLogicalAddress iSourceStr, + int iMaxLen, + ffi.Pointer oTruncatedLen, +); + +@ffi.Native< + OSStatus Function( + ConstUnicodeToTextInfo, + ByteCount, + ffi.Pointer, + OptionBits, + ByteCount, + ffi.Pointer, + ) +>() +external int TruncateForUnicodeToText( + ConstUnicodeToTextInfo iUnicodeToTextInfo, + int iSourceLen, + ffi.Pointer iSourceStr, + int iControlFlags, + int iMaxLen, + ffi.Pointer oTruncatedLen, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int U64Compare(int left, int right); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + UAZoomChangeFocusType, + ) +>() +external int UAZoomChangeFocus( + ffi.Pointer inRect, + ffi.Pointer inHighlightRect, + int inType, +); + +@ffi.Native() +external int UAZoomEnabled(); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ItemCount, + ffi.Pointer, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCCompareCollationKeys( + ffi.Pointer key1Ptr, + int key1Length, + ffi.Pointer key2Ptr, + int key2Length, + ffi.Pointer equivalent, + ffi.Pointer order, +); + +@ffi.Native< + OSStatus Function( + CollatorRef, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCCompareText( + CollatorRef collatorRef, + ffi.Pointer text1Ptr, + int text1Length, + ffi.Pointer text2Ptr, + int text2Length, + ffi.Pointer equivalent, + ffi.Pointer order, +); + +@ffi.Native< + OSStatus Function( + UCCollateOptions, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCCompareTextDefault( + int options, + ffi.Pointer text1Ptr, + int text1Length, + ffi.Pointer text2Ptr, + int text2Length, + ffi.Pointer equivalent, + ffi.Pointer order, +); + +@ffi.Native< + OSStatus Function( + UCCollateOptions, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCCompareTextNoLocale( + int options, + ffi.Pointer text1Ptr, + int text1Length, + ffi.Pointer text2Ptr, + int text2Length, + ffi.Pointer equivalent, + ffi.Pointer order, +); + +@ffi.Native)>() +external int UCConvertCFAbsoluteTimeToLongDateTime( + double iCFTime, + ffi.Pointer oLongDate, +); + +@ffi.Native)>() +external int UCConvertCFAbsoluteTimeToSeconds( + double iCFTime, + ffi.Pointer oSeconds, +); + +@ffi.Native)>() +external int UCConvertCFAbsoluteTimeToUTCDateTime( + double iCFTime, + ffi.Pointer oUTCDate, +); + +@ffi.Native)>() +external int UCConvertLongDateTimeToCFAbsoluteTime( + int iLongTime, + ffi.Pointer oCFTime, +); + +@ffi.Native)>() +external int UCConvertSecondsToCFAbsoluteTime( + int iSeconds, + ffi.Pointer oCFTime, +); + +@ffi.Native< + OSStatus Function(ffi.Pointer, ffi.Pointer) +>() +external int UCConvertUTCDateTimeToCFAbsoluteTime( + ffi.Pointer iUTCDate, + ffi.Pointer oCFTime, +); + +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + UCCollateOptions, + ffi.Pointer, + ) +>() +external int UCCreateCollator( + LocaleRef locale, + int opVariant, + int options, + ffi.Pointer collatorRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + UCTextBreakType, + ffi.Pointer, + ) +>() +external int UCCreateTextBreakLocator( + LocaleRef locale, + int opVariant, + int breakTypes, + ffi.Pointer breakRef, +); + +@ffi.Native)>() +external int UCDisposeCollator(ffi.Pointer collatorRef); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int UCDisposeTextBreakLocator( + ffi.Pointer breakRef, +); + +@Deprecated('Deprecated') +@ffi.Native< + OSStatus Function( + TextBreakLocatorRef, + UCTextBreakType, + UCTextBreakOptions, + ffi.Pointer, + UniCharCount, + UniCharArrayOffset, + ffi.Pointer, + ) +>() +external int UCFindTextBreak( + TextBreakLocatorRef breakRef, + int breakType, + int options, + ffi.Pointer textPtr, + int textLength, + int startOffset, + ffi.Pointer breakOffset, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + UniCharCount, + UCCharPropertyType, + ffi.Pointer, + ) +>() +external int UCGetCharProperty( + ffi.Pointer charPtr, + int textLength, + int propType, + ffi.Pointer propValue, +); + +@ffi.Native< + OSStatus Function( + CollatorRef, + ffi.Pointer, + UniCharCount, + ItemCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCGetCollationKey( + CollatorRef collatorRef, + ffi.Pointer textPtr, + int textLength, + int maxKeySize, + ffi.Pointer actualKeySize, + ffi.Pointer collationKey, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + UInt16, + UInt16, + UInt32, + UInt32, + OptionBits, + ffi.Pointer, + UniCharCount, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int UCKeyTranslate( + ffi.Pointer keyLayoutPtr, + int virtualKeyCode, + int keyAction, + int modifierKeyState, + int keyboardType, + int keyTranslateOptions, + ffi.Pointer deadKeyState, + int maxStringLength, + ffi.Pointer actualStringLength, + ffi.Pointer unicodeString, +); + +@ffi.Native< + OSStatus Function( + UCTypeSelectRef, + CFStringRef, + ffi.Double, + ffi.Pointer, + ) +>() +external int UCTypeSelectAddKeyToSelector( + UCTypeSelectRef inRef, + CFStringRef inText, + double inEventTime, + ffi.Pointer updateFlag, +); + +@ffi.Native< + OSStatus Function( + UCTypeSelectRef, + CFStringRef, + ffi.Pointer, + ) +>() +external int UCTypeSelectCompare( + UCTypeSelectRef ref, + CFStringRef inText, + ffi.Pointer result, +); + +@ffi.Native< + OSStatus Function( + LocaleRef, + LocaleOperationVariant, + UCCollateOptions, + ffi.Pointer, + ) +>() +external int UCTypeSelectCreateSelector( + LocaleRef locale, + int opVariant, + int options, + ffi.Pointer newSelector, +); + +@ffi.Native< + OSStatus Function( + UCTypeSelectRef, + UInt32, + ffi.Pointer, + ffi.Pointer, + IndexToUCStringUPP, + ffi.Pointer, + ) +>() +external int UCTypeSelectFindItem( + UCTypeSelectRef ref, + int listSize, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + IndexToUCStringUPP userUPP, + ffi.Pointer closestItem, +); + +@ffi.Native() +external int UCTypeSelectFlushSelectorData(UCTypeSelectRef ref); + +@ffi.Native)>() +external int UCTypeSelectReleaseSelector(ffi.Pointer ref); + +@ffi.Native< + OSStatus Function( + UCTypeSelectRef, + CFStringRef, + UCTSWalkDirection, + UInt32, + ffi.Pointer, + ffi.Pointer, + IndexToUCStringUPP, + ffi.Pointer, + ) +>() +external int UCTypeSelectWalkList( + UCTypeSelectRef ref, + CFStringRef currSelect, + int direction, + int listSize, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + IndexToUCStringUPP userUPP, + ffi.Pointer closestItem, +); + +@ffi.Native() +external int UCTypeSelectWouldResetBuffer( + UCTypeSelectRef inRef, + CFStringRef inText, + double inEventTime, +); + +@Deprecated('HFS type codes are obsolete.') +@ffi.Native() +external CFStringRef UTCreateStringForOSType(int inOSType); + +@Deprecated('HFS type codes are obsolete.') +@ffi.Native() +external int UTGetOSTypeFromString(CFStringRef inString); + +@Deprecated('Use -[UTType conformsToType:] instead.') +@ffi.Native() +external int UTTypeConformsTo(CFStringRef inUTI, CFStringRef inConformsToUTI); + +@Deprecated('Use the UTType class instead.') +@ffi.Native() +external CFArrayRef UTTypeCopyAllTagsWithClass( + CFStringRef inUTI, + CFStringRef inTagClass, +); + +@Deprecated('Use the UTType class instead.') +@ffi.Native() +external CFDictionaryRef UTTypeCopyDeclaration(CFStringRef inUTI); + +@Deprecated('Deprecated') +@ffi.Native() +external CFURLRef UTTypeCopyDeclaringBundleURL(CFStringRef inUTI); + +@Deprecated('Use UTType.localizedDescription instead.') +@ffi.Native() +external CFStringRef UTTypeCopyDescription(CFStringRef inUTI); + +@Deprecated('Use the UTType class instead.') +@ffi.Native() +external CFStringRef UTTypeCopyPreferredTagWithClass( + CFStringRef inUTI, + CFStringRef inTagClass, +); + +@Deprecated('Use the UTType class instead.') +@ffi.Native() +external CFArrayRef UTTypeCreateAllIdentifiersForTag( + CFStringRef inTagClass, + CFStringRef inTag, + CFStringRef inConformingToUTI, +); + +@Deprecated('Use the UTType class instead.') +@ffi.Native() +external CFStringRef UTTypeCreatePreferredIdentifierForTag( + CFStringRef inTagClass, + CFStringRef inTag, + CFStringRef inConformingToUTI, +); + +@Deprecated('Use -[UTType isEqual:] instead.') +@ffi.Native() +external int UTTypeEqual(CFStringRef inUTI1, CFStringRef inUTI2); + +@Deprecated('Use UTType.declared instead.') +@ffi.Native() +external int UTTypeIsDeclared(CFStringRef inUTI); + +@Deprecated('Use UTType.dynamic instead.') +@ffi.Native() +external int UTTypeIsDynamic(CFStringRef inUTI); + +@ffi.Array.multi([16]) +@ffi.Native>() +external final ffi.Pointer UUID_NULL; + +@Deprecated('Deprecated') +@ffi.Native() +external int UncaptureComponent(Component aComponent); + +@Deprecated('Deprecated') +@ffi.Native< + OSErr Function(Collection, CollectionFlattenUPP, ffi.Pointer) +>() +external int UnflattenCollection( + Collection c, + CollectionFlattenUPP flattenProc, + ffi.Pointer refCon, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int UnflattenCollectionFromHdl( + Collection aCollection, + Handle flattened, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int Unique1ID(int theType); + +@Deprecated('Deprecated') +@ffi.Native() +external int UniqueID(int theType); + +@Deprecated('Deprecated') +@ffi.Native() +external int UnregisterComponent(Component aComponent); + +@Deprecated('You do not need to unregister icons.') +@ffi.Native() +external int UnregisterIconRef(int creator, int iconType); + +@Deprecated('Deprecated') +@ffi.Native< + UnsignedFixed Function(UnsignedFixed, UnsignedFixed, UnsignedFixed) +>() +external int UnsignedFixedMulDiv(int value, int multiplier, int divisor); + +@Deprecated('Deprecated') +@ffi.Native() +external AbsoluteTime UpTime(); + +@Deprecated( + 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', +) +@ffi.Native() +external int UpdateIconRef(IconRef theIconRef); + +@Deprecated('Deprecated') +@ffi.Native() +external void UpdateResFile(int refNum); + +@Deprecated('No longer supported') +@ffi.Native() +external int UpdateSystemActivity(int activity); + +@ffi.Native< + OSStatus Function( + ScriptCode, + LangCode, + RegionCode, + ConstStr255Param, + ffi.Pointer, + ) +>() +external int UpgradeScriptInfoToTextEncoding( + int iTextScriptID, + int iTextLanguageID, + int iRegionID, + ConstStr255Param iTextFontname, + ffi.Pointer oEncoding, +); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int UseDictionary(SpeechChannel chan, Handle dictionary); + +@Deprecated('Deprecated') +@ffi.Native() +external void UseResFile(int refNum); + +@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') +@ffi.Native() +external int UseSpeechDictionary( + SpeechChannel chan, + CFDictionaryRef speechDictionary, +); + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'WSGetCFTypeIDFromWSTypeID', +) +external int _WSGetCFTypeIDFromWSTypeID(int typeID); + +DartCFTypeID WSGetCFTypeIDFromWSTypeID(WSTypeID typeID) { + return _WSGetCFTypeIDFromWSTypeID(typeID.value); +} + +@Deprecated('No longer supported') +@ffi.Native( + symbol: 'WSGetWSTypeIDFromCFType', +) +external int _WSGetWSTypeIDFromCFType(CFTypeRef ref); + +WSTypeID WSGetWSTypeIDFromCFType(CFTypeRef ref) { + return WSTypeID.fromValue(_WSGetWSTypeIDFromCFType(ref)); +} + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + WSMethodInvocationRef, + CFStringRef, + CFStringRef, + WSMethodInvocationDeserializationProcPtr, + ffi.Pointer, + ) +>() +external void WSMethodInvocationAddDeserializationOverride( + WSMethodInvocationRef invocation, + CFStringRef typeNamespace, + CFStringRef typeName, + WSMethodInvocationDeserializationProcPtr deserializationProc, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + WSMethodInvocationRef, + CFTypeID, + WSMethodInvocationSerializationProcPtr, + ffi.Pointer, + ) +>() +external void WSMethodInvocationAddSerializationOverride( + WSMethodInvocationRef invocation, + int objType, + WSMethodInvocationSerializationProcPtr serializationProc, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDictionaryRef Function(WSMethodInvocationRef, ffi.Pointer) +>() +external CFDictionaryRef WSMethodInvocationCopyParameters( + WSMethodInvocationRef invocation, + ffi.Pointer parameterOrder, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFTypeRef WSMethodInvocationCopyProperty( + WSMethodInvocationRef invocation, + CFStringRef propertyName, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFDataRef WSMethodInvocationCopySerialization( + WSMethodInvocationRef invocation, +); + +@Deprecated('No longer supported') +@ffi.Native< + WSMethodInvocationRef Function(CFURLRef, CFStringRef, CFStringRef) +>() +external WSMethodInvocationRef WSMethodInvocationCreate( + CFURLRef url, + CFStringRef methodName, + CFStringRef protocol, +); + +@Deprecated('No longer supported') +@ffi.Native() +external WSMethodInvocationRef WSMethodInvocationCreateFromSerialization( + CFDataRef contract, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int WSMethodInvocationGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native() +external CFDictionaryRef WSMethodInvocationInvoke( + WSMethodInvocationRef invocation, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(WSMethodInvocationRef, CFRunLoopRef, CFStringRef) +>() +external void WSMethodInvocationScheduleWithRunLoop( + WSMethodInvocationRef invocation, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + WSMethodInvocationRef, + WSMethodInvocationCallBackProcPtr, + ffi.Pointer, + ) +>() +external void WSMethodInvocationSetCallBack( + WSMethodInvocationRef invocation, + WSMethodInvocationCallBackProcPtr clientCB, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(WSMethodInvocationRef, CFDictionaryRef, CFArrayRef) +>() +external void WSMethodInvocationSetParameters( + WSMethodInvocationRef invocation, + CFDictionaryRef parameters, + CFArrayRef parameterOrder, +); + +@Deprecated('No longer supported') +@ffi.Native() +external void WSMethodInvocationSetProperty( + WSMethodInvocationRef invocation, + CFStringRef propertyName, + CFTypeRef propertyValue, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function(WSMethodInvocationRef, CFRunLoopRef, CFStringRef) +>() +external void WSMethodInvocationUnscheduleFromRunLoop( + WSMethodInvocationRef invocation, + CFRunLoopRef runLoop, + CFStringRef runLoopMode, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int WSMethodResultIsFault(CFDictionaryRef methodResult); + +@Deprecated('No longer supported') +@ffi.Native< + CFDataRef Function(WSProtocolHandlerRef, CFDictionaryRef, CFDictionaryRef) +>() +external CFDataRef WSProtocolHandlerCopyFaultDocument( + WSProtocolHandlerRef ref, + CFDictionaryRef methodContext, + CFDictionaryRef faultDict, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFTypeRef WSProtocolHandlerCopyProperty( + WSProtocolHandlerRef ref, + CFStringRef propertyName, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDictionaryRef Function(WSProtocolHandlerRef, CFStringRef, CFDataRef) +>() +external CFDictionaryRef WSProtocolHandlerCopyReplyDictionary( + WSProtocolHandlerRef ref, + CFStringRef methodName, + CFDataRef data, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDataRef Function(WSProtocolHandlerRef, CFDictionaryRef, CFTypeRef) +>() +external CFDataRef WSProtocolHandlerCopyReplyDocument( + WSProtocolHandlerRef ref, + CFDictionaryRef methodContext, + CFTypeRef resultValue, +); + +@Deprecated('No longer supported') +@ffi.Native() +external CFDictionaryRef WSProtocolHandlerCopyRequestDictionary( + WSProtocolHandlerRef ref, + CFDataRef data, +); + +@Deprecated('No longer supported') +@ffi.Native< + CFDataRef Function( + WSProtocolHandlerRef, + CFStringRef, + CFDictionaryRef, + CFArrayRef, + CFDictionaryRef, + ) +>() +external CFDataRef WSProtocolHandlerCopyRequestDocument( + WSProtocolHandlerRef ref, + CFStringRef methodName, + CFDictionaryRef methodParams, + CFArrayRef methodParamOrder, + CFDictionaryRef methodExtras, +); + +@Deprecated('No longer supported') +@ffi.Native() +external WSProtocolHandlerRef WSProtocolHandlerCreate( + CFAllocatorRef allocator, + CFStringRef protocol, +); + +@Deprecated('No longer supported') +@ffi.Native() +external int WSProtocolHandlerGetTypeID(); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + WSProtocolHandlerRef, + CFStringRef, + CFStringRef, + WSProtocolHandlerDeserializationProcPtr, + ffi.Pointer, + ) +>() +external void WSProtocolHandlerSetDeserializationOverride( + WSProtocolHandlerRef protocol, + CFStringRef typeNamespace, + CFStringRef typeName, + WSProtocolHandlerDeserializationProcPtr deserializationProc, + ffi.Pointer context, +); + +@Deprecated('No longer supported') +@ffi.Native() +external void WSProtocolHandlerSetProperty( + WSProtocolHandlerRef ref, + CFStringRef propertyName, + CFTypeRef propertyValue, +); + +@Deprecated('No longer supported') +@ffi.Native< + ffi.Void Function( + WSProtocolHandlerRef, + CFTypeID, + WSProtocolHandlerSerializationProcPtr, + ffi.Pointer, + ) +>() +external void WSProtocolHandlerSetSerializationOverride( + WSProtocolHandlerRef protocol, + int objType, + WSProtocolHandlerSerializationProcPtr serializationProc, + ffi.Pointer context, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int WakeUpProcess(ffi.Pointer PSN); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() +external ffi.Pointer WideAdd( + ffi.Pointer target, + ffi.Pointer source, +); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer, SInt32)>() +external ffi.Pointer WideBitShift(ffi.Pointer target, int shift); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Pointer)>() +external int WideCompare(ffi.Pointer target, ffi.Pointer source); + +@Deprecated('Deprecated') +@ffi.Native, SInt32, ffi.Pointer)>() +external int WideDivide( + ffi.Pointer dividend, + int divisor, + ffi.Pointer remainder$1, +); + +@Deprecated('Deprecated') +@ffi.Native Function(SInt32, SInt32, ffi.Pointer)>() +external ffi.Pointer WideMultiply( + int multiplicand, + int multiplier, + ffi.Pointer target, +); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer WideNegate(ffi.Pointer target); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer, SInt32)>() +external ffi.Pointer WideShift(ffi.Pointer target, int shift); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int WideSquareRoot(ffi.Pointer source); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() +external ffi.Pointer WideSubtract( + ffi.Pointer target, + ffi.Pointer source, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, SInt32, ffi.Pointer) +>() +external ffi.Pointer WideWideDivide( + ffi.Pointer dividend, + int divisor, + ffi.Pointer remainder$1, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(Handle, ffi.Long, ffi.Pointer, ffi.Long) +>() +external void WritePartialResource( + Handle theResource, + int offset, + ffi.Pointer buffer, + int count, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void WriteResource(Handle theResource); + +@Deprecated('Deprecated') +@ffi.Native() +external int X2Fix(double x); + +@Deprecated('Deprecated') +@ffi.Native() +external int X2Frac(double x); + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_ALLOW_BATTERY; + +@ffi.Native(symbol: 'XPC_ACTIVITY_CHECK_IN') +external xpc_object_t _XPC_ACTIVITY_CHECK_IN; + +Dartxpc_object_t get XPC_ACTIVITY_CHECK_IN => objc.NSObject.fromPointer( + _XPC_ACTIVITY_CHECK_IN, + retain: true, + release: true, +); + +set XPC_ACTIVITY_CHECK_IN(Dartxpc_object_t value) { + objc.NSObject.fromPointer( + _XPC_ACTIVITY_CHECK_IN, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + _XPC_ACTIVITY_CHECK_IN = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_DELAY; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_GRACE_PERIOD; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_INTERVAL; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_15_MIN; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_1_DAY; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_1_HOUR; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_1_MIN; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_30_MIN; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_4_HOURS; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_5_MIN; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_7_DAYS; + +@ffi.Native() +external final int XPC_ACTIVITY_INTERVAL_8_HOURS; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_PREVENT_DEVICE_SLEEP; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_PRIORITY; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_PRIORITY_MAINTENANCE; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_PRIORITY_UTILITY; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_REPEATING; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_REQUIRE_BATTERY_LEVEL; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_REQUIRE_HDD_SPINNING; + +@ffi.Native>() +external ffi.Pointer XPC_ACTIVITY_REQUIRE_SCREEN_SLEEP; + +@Deprecated('Deprecated') +@ffi.Native() +external int YieldToAnyThread(); + +@Deprecated('Deprecated') +@ffi.Native() +external int YieldToThread(int suggestedThread); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_1037nh9( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) +>() +external void _1uu024u_protocolTrampoline_10lndml( + ffi.Pointer target, + ffi.Pointer arg0, + bool arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_10vn635( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + NSInteger, + NSInteger, + ) +>() +external void _1uu024u_protocolTrampoline_15e9dqx( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_18v1jvf( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_19u921t( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + PMPrintSession Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external PMPrintSession _1uu024u_protocolTrampoline_1ch2rph( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSTextCheckingTypes, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_1chy5b9( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_1cn988u( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native< + PMPrintSettings Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external PMPrintSettings _1uu024u_protocolTrampoline_1cwrrqo( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _1uu024u_protocolTrampoline_1em3l8z( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) +>() +external NSRange _1uu024u_protocolTrampoline_1j6oadz( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + bool arg5, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>() +external void _1uu024u_protocolTrampoline_1j7coyk( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_1l4hxwm( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_1lx650f( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_1mbt9g9( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_1p0fswn( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + CGFloat, + ffi.Pointer, + ffi.Pointer, + ) +>() +external CGImageRef _1uu024u_protocolTrampoline_1p89e63( + ffi.Pointer target, + ffi.Pointer arg0, + objc.CGSize arg1, + double arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + PMPageFormat Function(ffi.Pointer, ffi.Pointer) +>() +external PMPageFormat _1uu024u_protocolTrampoline_1pm5t72( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) +>() +external void _1uu024u_protocolTrampoline_1qf1qkl( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_1tz5yf( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_1yw2rcr( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _1uu024u_protocolTrampoline_2n06mv( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) +>() +external void _1uu024u_protocolTrampoline_34xzuf( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _1uu024u_protocolTrampoline_3su7tt( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + NSUInteger Function(ffi.Pointer, ffi.Pointer) +>() +external int _1uu024u_protocolTrampoline_5cb1bj( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_738w24( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) +>() +external void _1uu024u_protocolTrampoline_8acz2h( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_8jfq1p( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ) +>() +external void _1uu024u_protocolTrampoline_9crvvv( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_bklti2( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>() +external bool _1uu024u_protocolTrampoline_e3qsqz( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_fjrv01( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) +>() +external void _1uu024u_protocolTrampoline_h68abb( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, +); + +@ffi.Native< + PMPrinter Function(ffi.Pointer, ffi.Pointer) +>() +external PMPrinter _1uu024u_protocolTrampoline_h8xvuu( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_jk1ljc( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _1uu024u_protocolTrampoline_jk8du5( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external bool _1uu024u_protocolTrampoline_jp3gca( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer> arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_jyim80( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_l2g8ke( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) +>() +external void _1uu024u_protocolTrampoline_ly2579( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_m09tr7( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void _1uu024u_protocolTrampoline_ovsamd( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Short Function(ffi.Pointer, ffi.Pointer) +>() +external int _1uu024u_protocolTrampoline_p984hf( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_wpy7aa( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>() +external void _1uu024u_protocolTrampoline_wy9lus( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_xr62hr( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external NSRange _1uu024u_protocolTrampoline_xsqx6i( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _1uu024u_protocolTrampoline_xx612k( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _1uu024u_protocolTrampoline_zi5eed( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) +>() +external void _1uu024u_protocolTrampoline_zuf90e( + ffi.Pointer target, + ffi.Pointer arg0, + int arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) +>() +external void _1uu024u_protocolTrampoline_zzthnb( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + bool arg2, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1037nh9( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_10lndml( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_10ssdng( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_115kkcp( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_11t2oft( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_132rcs6( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_15e9dqx( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_15f11yh( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_15ghdzk( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_16sve1d( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_18kzm6a( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_18qun1e( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_18v1jvf( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1a22wz( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1b3bb6a( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1cn988u( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1ctgxtl( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1dqvvol( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1j7coyk( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1kwz7d1( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1l4hxwm( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1lx650f( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1otpo83( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1pl9qdv( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1qf1qkl( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1rz4y3( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1s56lr9( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1tz5yf( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_1yrznn1( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_34xzuf( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_6enxqz( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_6jvo9y( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_8acz2h( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_8jfq1p( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_9crvvv( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_9fms3g( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_9o8504( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_b3tf6o( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_bklti2( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_du1izn( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_f167m6( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_fjrv01( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_gwxhxt( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_h68abb( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_hk7n97( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_jk1ljc( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_jyim80( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_k73ff5( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_l2g8ke( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_l3f29g( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_lmc3p5( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_ly2579( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_m09tr7( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_n8yd09( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_o762yo( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_og5b6y( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_ovsamd( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_pfv6jd( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_r8gdi7( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_rdj45r( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_tg5tbv( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_wy9lus( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_xtuoz7( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_xx612k( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_zuf90e( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapBlockingBlock_zzthnb( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1037nh9( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_10lndml( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_10ssdng( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_115kkcp( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_11t2oft( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_132rcs6( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_15e9dqx( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_15f11yh( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_15ghdzk( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_16sve1d( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_18kzm6a( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_18qun1e( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_18v1jvf( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1a22wz( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1b3bb6a( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1cn988u( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1ctgxtl( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1dqvvol( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1j7coyk( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1kwz7d1( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1l4hxwm( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1lx650f( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1otpo83( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1pl9qdv( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1qf1qkl( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1rz4y3( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1s56lr9( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1tz5yf( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_1yrznn1( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_34xzuf( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_6enxqz( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_6jvo9y( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_8acz2h( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_8jfq1p( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_9crvvv( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_9fms3g( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_9o8504( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_b3tf6o( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_bklti2( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_du1izn( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_f167m6( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_fjrv01( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_gwxhxt( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_h68abb( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_hk7n97( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_jk1ljc( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_jyim80( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_k73ff5( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_l2g8ke( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_l3f29g( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_lmc3p5( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_ly2579( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_m09tr7( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_n8yd09( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_o762yo( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_og5b6y( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_ovsamd( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_pfv6jd( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_r8gdi7( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_rdj45r( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_tg5tbv( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_wy9lus( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_xtuoz7( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_xx612k( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_zuf90e( + int port, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _1uu024u_wrapListenerBlock_zzthnb( + int port, + ffi.Pointer context, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer _Block_copy(ffi.Pointer aBlock); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external void _Block_object_assign( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native, ffi.Int)>() +external void _Block_object_dispose(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external void _Block_release(ffi.Pointer aBlock); + +@ffi.Native>() +external ffi.Pointer<_RuneLocale> _CurrentRuneLocale; + +@ffi.Native<_RuneLocale>() +external _RuneLocale _DefaultRuneLocale; + +@ffi.Native() +external void _Exit(int arg0); + +@ffi.Native() +external final fenv_t _FE_DFL_DISABLE_DENORMS_ENV; + +@ffi.Native() +external final fenv_t _FE_DFL_ENV; + +@Deprecated('No longer useful (always true)') +@ffi.Native() +external int _MPIsFullyInitialized(); + +@Deprecated('Use libDispatch') +@ffi.Native< + Boolean Function(ffi.Pointer, UInt32, UInt32, UInt32, UInt32) +>() +external int _MPLibraryIsCompatible( + ffi.Pointer versionCString, + int major, + int minor, + int release, + int revision, +); + +@Deprecated('No longer useful') +@ffi.Native< + ffi.Void Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _MPLibraryVersion( + ffi.Pointer> versionCString, + ffi.Pointer major, + ffi.Pointer minor, + ffi.Pointer release, + ffi.Pointer revision, +); + +@ffi.Array.multi([32]) +@ffi.Native>>() +external ffi.Array> _NSConcreteGlobalBlock; + +@ffi.Array.multi([32]) +@ffi.Native>>() +external ffi.Array> _NSConcreteStackBlock; + +@ffi.Native() +external CFRange __CFRangeMake(int loc, int len); + +@ffi.Native)>() +external CFStringRef __CFStringMakeConstantString(ffi.Pointer cStr); + +@ffi.Native() +external CFDictionaryRef __MDItemCopyAttributesEllipsis1(MDItemRef item); + +@ffi.Native() +external int ___runetype(int arg0); + +@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() +external int ___tolower(int arg0); + +@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() +external int ___toupper(int arg0); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external void __assert_rtn( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native() +external double __cospi(double arg0); + +@ffi.Native() +external double __cospif(double arg0); + +@ffi.Native, ffi.Int)>() +external int __darwin_check_fd_set_overflow( + int arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native Function()>() +external ffi.Pointer __error(); + +@ffi.Native() +external double __exp10(double arg0); + +@ffi.Native() +external double __exp10f(double arg0); + +@ffi.Native() +external int __fpclassifyd(double arg0); + +@ffi.Native() +external int __fpclassifyf(double arg0); + +@ffi.Native() +external int __maskrune(int arg0, int arg1); + +@ffi.Native() +external int __math_errhandling(); + +@ffi.Native() +external int __mb_cur_max; + +@ffi.Native<__double2 Function(ffi.Double)>() +external __double2 __sincos_stret(double arg0); + +@ffi.Native<__float2 Function(ffi.Float)>() +external __float2 __sincosf_stret(double arg0); + +@ffi.Native<__double2 Function(ffi.Double)>() +external __double2 __sincospi_stret(double arg0); + +@ffi.Native<__float2 Function(ffi.Float)>() +external __float2 __sincospif_stret(double arg0); + +@ffi.Native() +external double __sinpi(double arg0); + +@ffi.Native() +external double __sinpif(double arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Size, + ffi.Pointer, + ) +>() +external int __snprintf_chk( + ffi.Pointer arg0, + int __maxlen, + int arg2, + int arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Size, + ffi.Pointer, + ) +>() +external int __sprintf_chk( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native)>() +external int __srget(ffi.Pointer arg0); + +@ffi.Native>() +external ffi.Pointer __stderrp; + +@ffi.Native>() +external ffi.Pointer __stdinp; + +@ffi.Native>() +external ffi.Pointer __stdoutp; + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) +>() +external int __svfscanf( + ffi.Pointer arg0, + ffi.Pointer arg1, + va_list arg2, +); + +@ffi.Native)>() +external int __swbuf(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external double __tanpi(double arg0); + +@ffi.Native() +external double __tanpif(double arg0); + +@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() +external int __tolower(int arg0); + +@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() +external int __toupper(int arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Size, + ffi.Pointer, + va_list, + ) +>() +external int __vsnprintf_chk( + ffi.Pointer arg0, + int __maxlen, + int arg2, + int arg3, + ffi.Pointer arg4, + va_list arg5, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Size, + ffi.Pointer, + va_list, + ) +>() +external int __vsprintf_chk( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + va_list arg4, +); + +@ffi.Native(symbol: '_dispatch_data_destructor_free') +external dispatch_block_t __dispatch_data_destructor_free; + +Dartdispatch_block_t get _dispatch_data_destructor_free => + ObjCBlock_ffiVoid.fromPointer( + __dispatch_data_destructor_free, + retain: true, + release: true, + ); + +set _dispatch_data_destructor_free(Dartdispatch_block_t value) { + ObjCBlock_ffiVoid.fromPointer( + __dispatch_data_destructor_free, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + __dispatch_data_destructor_free = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native(symbol: '_dispatch_data_destructor_munmap') +external dispatch_block_t __dispatch_data_destructor_munmap; + +Dartdispatch_block_t get _dispatch_data_destructor_munmap => + ObjCBlock_ffiVoid.fromPointer( + __dispatch_data_destructor_munmap, + retain: true, + release: true, + ); + +set _dispatch_data_destructor_munmap(Dartdispatch_block_t value) { + ObjCBlock_ffiVoid.fromPointer( + __dispatch_data_destructor_munmap, + retain: false, + release: true, + ).ref.release(); + final _$$ref = value.ref; + __dispatch_data_destructor_munmap = _$$ref.retainAndReturnPointer(); +} + +@ffi.Native() +external dispatch_data_s _dispatch_data_empty; + +@ffi.Native() +external dispatch_queue_s _dispatch_main_q; + +@ffi.Native() +external dispatch_queue_attr_s _dispatch_queue_attr_concurrent; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_data_add; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_data_or; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_data_replace; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_mach_recv; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_mach_send; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_memorypressure; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_proc; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_read; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_signal; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_timer; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_vnode; + +@ffi.Native() +external final dispatch_source_type_s _dispatch_source_type_write; + +@ffi.Native() +external void _exit(int arg0); + +@ffi.Native)>() +external int _host_page_size(int host, ffi.Pointer out_page_size); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_right_t, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_port_allocate_trap( + int target, + int right, + ffi.Pointer name, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_port_construct_trap( + int target, + ffi.Pointer options, + int context, + ffi.Pointer name, +); + +@ffi.Native() +external int _kernelrpc_mach_port_deallocate_trap(int target, int name); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_name_t, + mach_port_delta_t, + ffi.Uint64, + ) +>() +external int _kernelrpc_mach_port_destruct_trap( + int target, + int name, + int srdelta, + int guard, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) +>() +external int _kernelrpc_mach_port_extract_member_trap( + int target, + int name, + int pset, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_name_t, + mach_port_flavor_t, + mach_port_info_t, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_port_get_attributes_trap( + int target, + int name, + int flavor, + mach_port_info_t port_info_out, + ffi.Pointer port_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_name_t, + ffi.Uint64, + boolean_t, + ) +>() +external int _kernelrpc_mach_port_guard_trap( + int target, + int name, + int guard, + int strict, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) +>() +external int _kernelrpc_mach_port_insert_member_trap( + int target, + int name, + int pset, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_name_t, + mach_port_name_t, + mach_msg_type_name_t, + ) +>() +external int _kernelrpc_mach_port_insert_right_trap( + int target, + int name, + int poly, + int polyPoly, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_port_name_t, + mach_port_right_t, + mach_port_delta_t, + ) +>() +external int _kernelrpc_mach_port_mod_refs_trap( + int target, + int name, + int right, + int delta, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) +>() +external int _kernelrpc_mach_port_move_member_trap( + int target, + int member, + int after, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_msg_id_t, + mach_port_mscount_t, + mach_port_name_t, + mach_msg_type_name_t, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_port_request_notification_trap( + int task, + int name, + int msgid, + int sync$1, + int notify, + int notifyPoly, + ffi.Pointer previous, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_port_type_trap( + int task, + int name, + ffi.Pointer ptype, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, mach_port_name_t, ffi.Uint64) +>() +external int _kernelrpc_mach_port_unguard_trap(int target, int name, int guard); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Pointer, + mach_vm_size_t, + ffi.Int, + ) +>() +external int _kernelrpc_mach_vm_allocate_trap( + int target, + ffi.Pointer addr, + int size, + int flags, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, mach_vm_address_t, mach_vm_size_t) +>() +external int _kernelrpc_mach_vm_deallocate_trap( + int target, + int address, + int size, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Pointer, + mach_vm_size_t, + mach_vm_offset_t, + ffi.Int, + vm_prot_t, + ) +>() +external int _kernelrpc_mach_vm_map_trap( + int target, + ffi.Pointer address, + int size, + int mask, + int flags, + int cur_protection, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_vm_address_t, + mach_vm_size_t, + boolean_t, + vm_prot_t, + ) +>() +external int _kernelrpc_mach_vm_protect_trap( + int target, + int address, + int size, + int set_maximum, + int new_protection, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_vm_offset_t, + vm_purgable_t, + ffi.Pointer, + ) +>() +external int _kernelrpc_mach_vm_purgable_control_trap( + int target, + int address, + int control, + ffi.Pointer state, +); + +@ffi.Native, ffi.Int)>() +external void _longjmp(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int _setjmp(ffi.Pointer arg0); + +@ffi.Native<_xpc_bool_s>() +external final _xpc_bool_s _xpc_bool_false; + +@ffi.Native<_xpc_bool_s>() +external final _xpc_bool_s _xpc_bool_true; + +@ffi.Native<_xpc_dictionary_s>() +external final _xpc_dictionary_s _xpc_error_connection_interrupted; + +@ffi.Native<_xpc_dictionary_s>() +external final _xpc_dictionary_s _xpc_error_connection_invalid; + +@ffi.Native>() +external ffi.Pointer _xpc_error_key_description; + +@ffi.Native<_xpc_dictionary_s>() +external final _xpc_dictionary_s _xpc_error_peer_code_signing_requirement; + +@ffi.Native<_xpc_dictionary_s>() +external final _xpc_dictionary_s _xpc_error_termination_imminent; + +@ffi.Native>() +external ffi.Pointer _xpc_event_key_name; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_activity; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_array; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_bool; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_connection; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_data; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_date; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_dictionary; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_double; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_endpoint; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_error; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_fd; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_int64; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_null; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_rich_error; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_session; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_shmem; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_string; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_uint64; + +@ffi.Native<_xpc_type_s>() +external final _xpc_type_s _xpc_type_uuid; + +@ffi.Native)>() +external int a64l(ffi.Pointer arg0); + +@ffi.Native() +external void abort(); + +@ffi.Native() +external int abs(int arg0); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int accept( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native, ffi.Int)>() +external int access(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + uid_t, + ) +>() +external int accessx_np( + ffi.Pointer arg0, + int __sz, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native)>() +external int acct(ffi.Pointer arg0); + +@ffi.Native( + symbol: 'acl_add_flag_np', +) +external int _acl_add_flag_np(acl_flagset_t flagset_d, int flag); + +int acl_add_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { + return _acl_add_flag_np(flagset_d, flag.value); +} + +@ffi.Native( + symbol: 'acl_add_perm', +) +external int _acl_add_perm(acl_permset_t permset_d, int perm); + +int acl_add_perm(acl_permset_t permset_d, acl_perm_t perm) { + return _acl_add_perm(permset_d, perm.value); +} + +@ffi.Native)>() +external int acl_calc_mask(ffi.Pointer acl_p); + +@ffi.Native() +external int acl_clear_flags_np(acl_flagset_t flagset_d); + +@ffi.Native() +external int acl_clear_perms(acl_permset_t permset_d); + +@ffi.Native() +external int acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d); + +@ffi.Native, acl_t, ssize_t)>() +external int acl_copy_ext(ffi.Pointer buf_p, acl_t acl, int size); + +@ffi.Native, acl_t, ssize_t)>() +external int acl_copy_ext_native( + ffi.Pointer buf_p, + acl_t acl, + int size, +); + +@ffi.Native)>() +external acl_t acl_copy_int(ffi.Pointer buf_p); + +@ffi.Native)>() +external acl_t acl_copy_int_native(ffi.Pointer buf_p); + +@ffi.Native, ffi.Pointer)>() +external int acl_create_entry( + ffi.Pointer acl_p, + ffi.Pointer entry_p, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int acl_create_entry_np( + ffi.Pointer acl_p, + ffi.Pointer entry_p, + int entry_index, +); + +@ffi.Native)>() +external int acl_delete_def_file(ffi.Pointer path_p); + +@ffi.Native() +external int acl_delete_entry(acl_t acl, acl_entry_t entry_d); + +@ffi.Native( + symbol: 'acl_delete_flag_np', +) +external int _acl_delete_flag_np(acl_flagset_t flagset_d, int flag); + +int acl_delete_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { + return _acl_delete_flag_np(flagset_d, flag.value); +} + +@ffi.Native( + symbol: 'acl_delete_perm', +) +external int _acl_delete_perm(acl_permset_t permset_d, int perm); + +int acl_delete_perm(acl_permset_t permset_d, acl_perm_t perm) { + return _acl_delete_perm(permset_d, perm.value); +} + +@ffi.Native() +external acl_t acl_dup(acl_t acl); + +@ffi.Native)>() +external int acl_free(ffi.Pointer obj_p); + +@ffi.Native)>() +external acl_t acl_from_text(ffi.Pointer buf_p); + +@ffi.Native)>() +external int acl_get_entry( + acl_t acl, + int entry_id, + ffi.Pointer entry_p, +); + +@ffi.Native() +external acl_t acl_get_fd(int fd); + +@ffi.Native(symbol: 'acl_get_fd_np') +external acl_t _acl_get_fd_np(int fd, int type); + +acl_t acl_get_fd_np(int fd, acl_type_t type) { + return _acl_get_fd_np(fd, type.value); +} + +@ffi.Native, ffi.UnsignedInt)>( + symbol: 'acl_get_file', +) +external acl_t _acl_get_file(ffi.Pointer path_p, int type); + +acl_t acl_get_file(ffi.Pointer path_p, acl_type_t type) { + return _acl_get_file(path_p, type.value); +} + +@ffi.Native( + symbol: 'acl_get_flag_np', +) +external int _acl_get_flag_np(acl_flagset_t flagset_d, int flag); + +int acl_get_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { + return _acl_get_flag_np(flagset_d, flag.value); +} + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int acl_get_flagset_np( + ffi.Pointer obj_p, + ffi.Pointer flagset_p, +); + +@ffi.Native, ffi.UnsignedInt)>( + symbol: 'acl_get_link_np', +) +external acl_t _acl_get_link_np(ffi.Pointer path_p, int type); + +acl_t acl_get_link_np(ffi.Pointer path_p, acl_type_t type) { + return _acl_get_link_np(path_p, type.value); +} + +@ffi.Native( + symbol: 'acl_get_perm_np', +) +external int _acl_get_perm_np(acl_permset_t permset_d, int perm); + +int acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm) { + return _acl_get_perm_np(permset_d, perm.value); +} + +@ffi.Native)>() +external int acl_get_permset( + acl_entry_t entry_d, + ffi.Pointer permset_p, +); + +@ffi.Native)>() +external int acl_get_permset_mask_np( + acl_entry_t entry_d, + ffi.Pointer mask_p, +); + +@ffi.Native Function(acl_entry_t)>() +external ffi.Pointer acl_get_qualifier(acl_entry_t entry_d); + +@ffi.Native)>() +external int acl_get_tag_type( + acl_entry_t entry_d, + ffi.Pointer tag_type_p, +); + +@ffi.Native() +external acl_t acl_init(int count); + +@ffi.Native)>() +external int acl_maximal_permset_mask_np( + ffi.Pointer mask_p, +); + +@ffi.Native() +external int acl_set_fd(int fd, acl_t acl); + +@ffi.Native( + symbol: 'acl_set_fd_np', +) +external int _acl_set_fd_np(int fd, acl_t acl, int acl_type); + +int acl_set_fd_np(int fd, acl_t acl, acl_type_t acl_type) { + return _acl_set_fd_np(fd, acl, acl_type.value); +} + +@ffi.Native, ffi.UnsignedInt, acl_t)>( + symbol: 'acl_set_file', +) +external int _acl_set_file(ffi.Pointer path_p, int type, acl_t acl); + +int acl_set_file(ffi.Pointer path_p, acl_type_t type, acl_t acl) { + return _acl_set_file(path_p, type.value, acl); +} + +@ffi.Native, acl_flagset_t)>() +external int acl_set_flagset_np( + ffi.Pointer obj_p, + acl_flagset_t flagset_d, +); + +@ffi.Native, ffi.UnsignedInt, acl_t)>( + symbol: 'acl_set_link_np', +) +external int _acl_set_link_np( + ffi.Pointer path_p, + int type, + acl_t acl, +); + +int acl_set_link_np(ffi.Pointer path_p, acl_type_t type, acl_t acl) { + return _acl_set_link_np(path_p, type.value, acl); +} + +@ffi.Native() +external int acl_set_permset(acl_entry_t entry_d, acl_permset_t permset_d); + +@ffi.Native() +external int acl_set_permset_mask_np(acl_entry_t entry_d, int mask); + +@ffi.Native)>() +external int acl_set_qualifier( + acl_entry_t entry_d, + ffi.Pointer tag_qualifier_p, +); + +@ffi.Native( + symbol: 'acl_set_tag_type', +) +external int _acl_set_tag_type(acl_entry_t entry_d, int tag_type); + +int acl_set_tag_type(acl_entry_t entry_d, acl_tag_t tag_type) { + return _acl_set_tag_type(entry_d, tag_type.value); +} + +@ffi.Native() +external int acl_size(acl_t acl); + +@ffi.Native Function(acl_t, ffi.Pointer)>() +external ffi.Pointer acl_to_text( + acl_t acl, + ffi.Pointer len_p, +); + +@ffi.Native() +external int acl_valid(acl_t acl); + +@ffi.Native( + symbol: 'acl_valid_fd_np', +) +external int _acl_valid_fd_np(int fd, int type, acl_t acl); + +int acl_valid_fd_np(int fd, acl_type_t type, acl_t acl) { + return _acl_valid_fd_np(fd, type.value, acl); +} + +@ffi.Native, ffi.UnsignedInt, acl_t)>( + symbol: 'acl_valid_file_np', +) +external int _acl_valid_file_np( + ffi.Pointer path, + int type, + acl_t acl, +); + +int acl_valid_file_np(ffi.Pointer path, acl_type_t type, acl_t acl) { + return _acl_valid_file_np(path, type.value, acl); +} + +@ffi.Native, ffi.UnsignedInt, acl_t)>( + symbol: 'acl_valid_link_np', +) +external int _acl_valid_link_np( + ffi.Pointer path, + int type, + acl_t acl, +); + +int acl_valid_link_np(ffi.Pointer path, acl_type_t type, acl_t acl) { + return _acl_valid_link_np(path, type.value, acl); +} + +@ffi.Native() +external double acos(double arg0); + +@ffi.Native() +external double acosf(double arg0); + +@ffi.Native() +external double acosh(double arg0); + +@ffi.Native() +external double acoshf(double arg0); + +@ffi.Native< + kern_return_t Function( + thread_read_t, + ffi.Int, + thread_state_t, + ffi.Pointer, + ) +>() +external int act_get_state( + int target_act, + int flavor, + thread_state_t old_state, + ffi.Pointer old_stateCnt, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + ffi.Int, + thread_state_t, + mach_msg_type_number_t, + ) +>() +external int act_set_state( + int target_act, + int flavor, + thread_state_t new_state, + int new_stateCnt, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.UnsignedLong, + ffi.UnsignedInt, + ) +>() +external int add_profil( + ffi.Pointer arg0, + int __bufsiz, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer addr2ascii( + int arg0, + ffi.Pointer arg1, + int __size, + ffi.Pointer arg3, +); + +@ffi.Native, ffi.Pointer)>() +external int adjtime(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external int alarm(int arg0); + +@ffi.Native Function(ffi.Size, ffi.Size)>() +external ffi.Pointer aligned_alloc(int __alignment, int __size); + +@ffi.Native Function(ffi.Size)>() +external ffi.Pointer alloca(int __size); + +@Deprecated('Deprecated') +@ffi.Native() +external double annuity(double rate, double periods); + +@ffi.Native() +external int arc4random(); + +@Deprecated('use arc4random_stir') +@ffi.Native, ffi.Int)>() +external void arc4random_addrandom( + ffi.Pointer arg0, + int __datlen, +); + +@ffi.Native, ffi.Size)>() +external void arc4random_buf(ffi.Pointer __buf, int __nbytes); + +@ffi.Native() +external void arc4random_stir(); + +@ffi.Native() +external int arc4random_uniform(int __upper_bound); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int ascii2addr( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer asctime(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer asctime_r( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external double asin(double arg0); + +@ffi.Native() +external double asinf(double arg0); + +@ffi.Native() +external double asinh(double arg0); + +@ffi.Native() +external double asinhf(double arg0); + +@ffi.Native< + ffi.Int Function(ffi.Pointer>, ffi.Pointer) +>() +external int asprintf( + ffi.Pointer> arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer>) +>() +external int at_quick_exit( + ffi.Pointer> arg0, +); + +@ffi.Native() +external double atan(double arg0); + +@ffi.Native() +external double atan2(double arg0, double arg1); + +@ffi.Native() +external double atan2f(double arg0, double arg1); + +@ffi.Native() +external double atanf(double arg0); + +@ffi.Native() +external double atanh(double arg0); + +@ffi.Native() +external double atanhf(double arg0); + +@ffi.Native< + ffi.Int Function(ffi.Pointer>) +>() +external int atexit(ffi.Pointer> arg0); + +@ffi.Native)>( + symbol: 'atexit_b', +) +external int _atexit_b(ffi.Pointer arg0); + +int atexit_b(objc.ObjCBlock arg0) { + final _$$ref = arg0.ref; + return _atexit_b(_$$ref.pointer); +} + +@ffi.Native)>() +external double atof(ffi.Pointer arg0); + +@ffi.Native)>() +external int atoi(ffi.Pointer arg0); + +@ffi.Native)>() +external int atol(ffi.Pointer arg0); + +@ffi.Native)>() +external int atoll(ffi.Pointer arg0); + +@Deprecated('audit is deprecated') +@ffi.Native, ffi.Int)>() +external int audit(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int audit_session_join(int port); + +@ffi.Native)>() +external int audit_session_port( + int asid, + ffi.Pointer portname, +); + +@ffi.Native() +external int audit_session_self(); + +@Deprecated('audit is deprecated') +@ffi.Native)>() +external int auditctl(ffi.Pointer arg0); + +@Deprecated('audit is deprecated') +@ffi.Native, ffi.Int)>() +external int auditon(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int bcmp( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __n, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external void bcopy( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __n, +); + +@ffi.Native, socklen_t)>() +external int bind(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native)>() +external int bindresvport(int arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external int bindresvport_sa(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external int bootstrap_port; + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer brk(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer> Function( + ffi.Int, + ffi.Pointer>, + ) +>() +external ffi.Pointer> bsd_signal( + int arg0, + ffi.Pointer> arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) +>() +external ffi.Pointer bsearch( + ffi.Pointer __key, + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'bsearch_b') +external ffi.Pointer _bsearch_b( + ffi.Pointer __key, + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer __compar, +); + +ffi.Pointer bsearch_b( + ffi.Pointer __key, + ffi.Pointer __base, + int __nel, + int __width, + objc.ObjCBlock, ffi.Pointer)> + __compar, +) { + final _$$ref = __compar.ref; + return _bsearch_b(__key, __base, __nel, __width, _$$ref.pointer); +} + +@ffi.Native, ffi.Size)>() +external void bzero(ffi.Pointer arg0, int __n); + +@ffi.Native Function(ffi.Size, ffi.Size)>() +external ffi.Pointer calloc(int __count, int __size); + +@ffi.Native() +external double cbrt(double arg0); + +@ffi.Native() +external double cbrtf(double arg0); + +@ffi.Native() +external double ceil(double arg0); + +@ffi.Native() +external double ceilf(double arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer cgetcap( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native() +external int cgetclose(); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int cgetent( + ffi.Pointer> arg0, + ffi.Pointer> arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int cgetfirst( + ffi.Pointer> arg0, + ffi.Pointer> arg1, +); + +@ffi.Native, ffi.Pointer)>() +external int cgetmatch(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int cgetnext( + ffi.Pointer> arg0, + ffi.Pointer> arg1, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cgetnum( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native)>() +external int cgetset(ffi.Pointer arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int cgetstr( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int cgetustr( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, +); + +@ffi.Native)>() +external int chdir(ffi.Pointer arg0); + +@ffi.Native, uid_t, gid_t)>() +external int chown(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native)>() +external int chroot(ffi.Pointer arg0); + +@ffi.Native)>() +external void clearerr(ffi.Pointer arg0); + +@ffi.Native() +external int clock(); + +@ffi.Native)>() +external int clock_get_res(int arg0, ffi.Pointer arg1); + +@ffi.Native)>( + symbol: 'clock_getres', +) +external int _clock_getres(int __clock_id, ffi.Pointer __res); + +int clock_getres(clockid_t __clock_id, ffi.Pointer __res) { + return _clock_getres(__clock_id.value, __res); +} + +@ffi.Native)>( + symbol: 'clock_gettime', +) +external int _clock_gettime(int __clock_id, ffi.Pointer __tp); + +int clock_gettime(clockid_t __clock_id, ffi.Pointer __tp) { + return _clock_gettime(__clock_id.value, __tp); +} + +@ffi.Native<__uint64_t Function(ffi.UnsignedInt)>( + symbol: 'clock_gettime_nsec_np', +) +external int _clock_gettime_nsec_np(int __clock_id); + +Dart__uint64_t clock_gettime_nsec_np(clockid_t __clock_id) { + return _clock_gettime_nsec_np(__clock_id.value); +} + +@ffi.Native< + kern_return_t Function( + clock_ctrl_t, + clock_flavor_t, + clock_attr_t, + mach_msg_type_number_t, + ) +>() +external int clock_set_attributes( + int clock_ctrl, + int flavor, + clock_attr_t clock_attr, + int clock_attrCnt, +); + +@ffi.Native() +external int clock_set_res(int arg0, int arg1); + +@ffi.Native() +external int clock_set_time(int clock_ctrl, mach_timespec_t new_time); + +@ffi.Native)>( + symbol: 'clock_settime', +) +external int _clock_settime(int __clock_id, ffi.Pointer __tp); + +int clock_settime(clockid_t __clock_id, ffi.Pointer __tp) { + return _clock_settime(__clock_id.value, __tp); +} + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Int, + mach_timespec_t, + ffi.Pointer, + ) +>() +external int clock_sleep( + int arg0, + int arg1, + mach_timespec_t arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + sleep_type_t, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>() +external int clock_sleep_trap( + int clock_name, + int sleep_type, + int sleep_sec, + int sleep_nsec, + ffi.Pointer wakeup_time, +); + +@ffi.Native() +external int close(int arg0); + +@Deprecated('Deprecated') +@ffi.Native() +external double compound(double rate, double periods); + +@ffi.Native, ffi.Size)>() +external int confstr(int arg0, ffi.Pointer arg1, int __len); + +@ffi.Native, socklen_t)>() +external int connect(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + sae_associd_t, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int connectx( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ffi.Pointer arg4, + int arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, +); + +@ffi.Native() +external double copysign(double arg0, double arg1); + +@ffi.Native() +external double copysignf(double arg0, double arg1); + +@ffi.Native() +external double cos(double arg0); + +@ffi.Native() +external double cosf(double arg0); + +@ffi.Native() +external double cosh(double arg0); + +@ffi.Native() +external double coshf(double arg0); + +@ffi.Native, mode_t)>() +external int creat(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer crypt( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native Function(CSSM_ALGORITHMS)>() +external ffi.Pointer cssmAlgToOid(int algId); + +@ffi.Native< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>() +external bool cssmOidToAlg( + ffi.Pointer oid, + ffi.Pointer alg, +); + +@ffi.Native, CSSM_RETURN)>() +external void cssmPerror(ffi.Pointer how, int error); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ctermid(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ctermid_r(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ctime(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer ctime_r( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsAddDest( + ffi.Pointer name, + ffi.Pointer instance, + int num_dests, + ffi.Pointer> dests, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsAddDestMediaOptions( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + int flags, + ffi.Pointer size, + int num_options, + ffi.Pointer> options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsAddIntegerOption( + ffi.Pointer name, + int value, + int num_options, + ffi.Pointer> options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsAddOption( + ffi.Pointer name, + ffi.Pointer value, + int num_options, + ffi.Pointer> options, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int cupsArrayAdd(ffi.Pointer a, ffi.Pointer e); + +@ffi.Native)>() +external void cupsArrayClear(ffi.Pointer a); + +@ffi.Native)>() +external int cupsArrayCount(ffi.Pointer a); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayCurrent(ffi.Pointer a); + +@ffi.Native)>() +external void cupsArrayDelete(ffi.Pointer a); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayDup(ffi.Pointer a); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsArrayFind( + ffi.Pointer a, + ffi.Pointer e, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayFirst(ffi.Pointer a); + +@ffi.Native)>() +external int cupsArrayGetIndex(ffi.Pointer a); + +@ffi.Native)>() +external int cupsArrayGetInsert(ffi.Pointer a); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int) +>() +external ffi.Pointer cupsArrayIndex( + ffi.Pointer a, + int n, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int cupsArrayInsert( + ffi.Pointer a, + ffi.Pointer e, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayLast(ffi.Pointer a); + +@ffi.Native< + ffi.Pointer Function(cups_array_func_t, ffi.Pointer) +>() +external ffi.Pointer cupsArrayNew( + cups_array_func_t f, + ffi.Pointer d, +); + +@ffi.Native< + ffi.Pointer Function( + cups_array_func_t, + ffi.Pointer, + cups_ahash_func_t, + ffi.Int, + ) +>() +external ffi.Pointer cupsArrayNew2( + cups_array_func_t f, + ffi.Pointer d, + cups_ahash_func_t h, + int hsize, +); + +@ffi.Native< + ffi.Pointer Function( + cups_array_func_t, + ffi.Pointer, + cups_ahash_func_t, + ffi.Int, + cups_acopy_func_t, + cups_afree_func_t, + ) +>() +external ffi.Pointer cupsArrayNew3( + cups_array_func_t f, + ffi.Pointer d, + cups_ahash_func_t h, + int hsize, + cups_acopy_func_t cf, + cups_afree_func_t ff, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayNext(ffi.Pointer a); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayPrev(ffi.Pointer a); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int cupsArrayRemove( + ffi.Pointer a, + ffi.Pointer e, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayRestore(ffi.Pointer a); + +@ffi.Native)>() +external int cupsArraySave(ffi.Pointer a); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsArrayUserData(ffi.Pointer a); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>(symbol: 'cupsCancelDestJob') +external int _cupsCancelDestJob( + ffi.Pointer http, + ffi.Pointer dest, + int job_id, +); + +ipp_status_e cupsCancelDestJob( + ffi.Pointer http, + ffi.Pointer dest, + int job_id, +) { + return ipp_status_e.fromValue(_cupsCancelDestJob(http, dest, job_id)); +} + +@ffi.Native, ffi.Int)>() +external int cupsCancelJob(ffi.Pointer name, int job_id); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int) +>(symbol: 'cupsCancelJob2') +external int _cupsCancelJob2( + ffi.Pointer http, + ffi.Pointer name, + int job_id, + int purge, +); + +ipp_status_e cupsCancelJob2( + ffi.Pointer http, + ffi.Pointer name, + int job_id, + int purge, +) { + return ipp_status_e.fromValue(_cupsCancelJob2(http, name, job_id, purge)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsCheckDestSupported( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + ffi.Pointer option, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'cupsCloseDestJob') +external int _cupsCloseDestJob( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int job_id, +); + +ipp_status_e cupsCloseDestJob( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int job_id, +) { + return ipp_status_e.fromValue(_cupsCloseDestJob(http, dest, info, job_id)); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + cups_dest_cb_t, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsConnectDest( + ffi.Pointer dest, + int flags, + int msec, + ffi.Pointer cancel, + ffi.Pointer resource, + int resourcesize, + cups_dest_cb_t cb, + ffi.Pointer user_data, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + cups_dest_block_t, + ) +>(symbol: 'cupsConnectDestBlock') +external ffi.Pointer _cupsConnectDestBlock( + ffi.Pointer dest, + int flags, + int msec, + ffi.Pointer cancel, + ffi.Pointer resource, + int resourcesize, + cups_dest_block_t block, +); + +ffi.Pointer cupsConnectDestBlock( + ffi.Pointer dest, + int flags, + int msec, + ffi.Pointer cancel, + ffi.Pointer resource, + int resourcesize, + Dartcups_dest_block_t block, +) { + final _$$ref = block.ref; + return _cupsConnectDestBlock( + dest, + flags, + msec, + cancel, + resource, + resourcesize, + _$$ref.pointer, + ); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsCopyDest( + ffi.Pointer dest, + int num_dests, + ffi.Pointer> dests, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int cupsCopyDestConflicts( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int num_options, + ffi.Pointer options, + ffi.Pointer new_option, + ffi.Pointer new_value, + ffi.Pointer num_conflicts, + ffi.Pointer> conflicts, + ffi.Pointer num_resolved, + ffi.Pointer> resolved, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsCopyDestInfo( + ffi.Pointer http, + ffi.Pointer dest, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'cupsCreateDestJob') +external int _cupsCreateDestJob( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + ffi.Pointer job_id, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +ipp_status_e cupsCreateDestJob( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + ffi.Pointer job_id, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +) { + return ipp_status_e.fromValue( + _cupsCreateDestJob(http, dest, info, job_id, title, num_options, options), + ); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int cupsCreateJob( + ffi.Pointer http, + ffi.Pointer name, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsDoAuthentication( + ffi.Pointer http, + ffi.Pointer method, + ffi.Pointer resource, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsDoFileRequest( + ffi.Pointer http, + ffi.Pointer request, + ffi.Pointer resource, + ffi.Pointer filename, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ) +>() +external ffi.Pointer cupsDoIORequest( + ffi.Pointer http, + ffi.Pointer request, + ffi.Pointer resource, + int infile, + int outfile, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsDoRequest( + ffi.Pointer http, + ffi.Pointer request, + ffi.Pointer resource, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'cupsEncodeOption') +external ffi.Pointer _cupsEncodeOption( + ffi.Pointer ipp, + int group_tag, + ffi.Pointer name, + ffi.Pointer value, +); + +ffi.Pointer cupsEncodeOption( + ffi.Pointer ipp, + ipp_tag_e group_tag, + ffi.Pointer name, + ffi.Pointer value, +) { + return _cupsEncodeOption(ipp, group_tag.value, name, value); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external void cupsEncodeOptions( + ffi.Pointer ipp, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'cupsEncodeOptions2') +external void _cupsEncodeOptions2( + ffi.Pointer ipp, + int num_options, + ffi.Pointer options, + int group_tag, +); + +void cupsEncodeOptions2( + ffi.Pointer ipp, + int num_options, + ffi.Pointer options, + ipp_tag_e group_tag, +) { + return _cupsEncodeOptions2(ipp, num_options, options, group_tag.value); +} + +@ffi.Native(symbol: 'cupsEncryption') +external int _cupsEncryption(); + +http_encryption_e cupsEncryption() { + return http_encryption_e.fromValue(_cupsEncryption()); +} + +@ffi.Native< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Int, + ffi.Pointer, + cups_ptype_t, + cups_ptype_t, + cups_dest_cb_t, + ffi.Pointer, + ) +>() +external int cupsEnumDests( + int flags, + int msec, + ffi.Pointer cancel, + int type, + int mask, + cups_dest_cb_t cb, + ffi.Pointer user_data, +); + +@ffi.Native< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Int, + ffi.Pointer, + cups_ptype_t, + cups_ptype_t, + cups_dest_block_t, + ) +>(symbol: 'cupsEnumDestsBlock') +external int _cupsEnumDestsBlock( + int flags, + int msec, + ffi.Pointer cancel, + int type, + int mask, + cups_dest_block_t block, +); + +int cupsEnumDestsBlock( + int flags, + int msec, + ffi.Pointer cancel, + Dartcups_ptype_t type, + Dartcups_ptype_t mask, + Dartcups_dest_block_t block, +) { + final _$$ref = block.ref; + return _cupsEnumDestsBlock(flags, msec, cancel, type, mask, _$$ref.pointer); +} + +@ffi.Native)>() +external int cupsFileClose(ffi.Pointer fp); + +@ffi.Native)>() +external int cupsFileCompression(ffi.Pointer fp); + +@ffi.Native)>() +external int cupsFileEOF(ffi.Pointer fp); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer cupsFileFind( + ffi.Pointer filename, + ffi.Pointer path, + int executable, + ffi.Pointer buffer, + int bufsize, +); + +@ffi.Native)>() +external int cupsFileFlush(ffi.Pointer fp); + +@ffi.Native)>() +external int cupsFileGetChar(ffi.Pointer fp); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsFileGetConf( + ffi.Pointer fp, + ffi.Pointer buf, + int buflen, + ffi.Pointer> value, + ffi.Pointer linenum, +); + +@ffi.Native< + ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int cupsFileGetLine( + ffi.Pointer fp, + ffi.Pointer buf, + int buflen, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer cupsFileGets( + ffi.Pointer fp, + ffi.Pointer buf, + int buflen, +); + +@ffi.Native, ffi.Int)>() +external int cupsFileLock(ffi.Pointer fp, int block); + +@ffi.Native)>() +external int cupsFileNumber(ffi.Pointer fp); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsFileOpen( + ffi.Pointer filename, + ffi.Pointer mode, +); + +@ffi.Native Function(ffi.Int, ffi.Pointer)>() +external ffi.Pointer cupsFileOpenFd( + int fd, + ffi.Pointer mode, +); + +@ffi.Native)>() +external int cupsFilePeekChar(ffi.Pointer fp); + +@ffi.Native, ffi.Pointer)>() +external int cupsFilePrintf( + ffi.Pointer fp, + ffi.Pointer format, +); + +@ffi.Native, ffi.Int)>() +external int cupsFilePutChar(ffi.Pointer fp, int c); + +@ffi.Native< + ssize_t Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsFilePutConf( + ffi.Pointer fp, + ffi.Pointer directive, + ffi.Pointer value, +); + +@ffi.Native, ffi.Pointer)>() +external int cupsFilePuts(ffi.Pointer fp, ffi.Pointer s); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int cupsFileRead( + ffi.Pointer fp, + ffi.Pointer buf, + int bytes, +); + +@ffi.Native)>() +external int cupsFileRewind(ffi.Pointer fp); + +@ffi.Native, off_t)>() +external int cupsFileSeek(ffi.Pointer fp, int pos); + +@ffi.Native Function()>() +external ffi.Pointer cupsFileStderr(); + +@ffi.Native Function()>() +external ffi.Pointer cupsFileStdin(); + +@ffi.Native Function()>() +external ffi.Pointer cupsFileStdout(); + +@ffi.Native)>() +external int cupsFileTell(ffi.Pointer fp); + +@ffi.Native)>() +external int cupsFileUnlock(ffi.Pointer fp); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int cupsFileWrite( + ffi.Pointer fp, + ffi.Pointer buf, + int bytes, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsFindDestDefault( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + ffi.Pointer option, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsFindDestReady( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + ffi.Pointer option, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsFindDestSupported( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + ffi.Pointer option, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'cupsFinishDestDocument') +external int _cupsFinishDestDocument( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, +); + +ipp_status_e cupsFinishDestDocument( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, +) { + return ipp_status_e.fromValue(_cupsFinishDestDocument(http, dest, info)); +} + +@ffi.Native, ffi.Pointer)>( + symbol: 'cupsFinishDocument', +) +external int _cupsFinishDocument( + ffi.Pointer http, + ffi.Pointer name, +); + +ipp_status_e cupsFinishDocument( + ffi.Pointer http, + ffi.Pointer name, +) { + return ipp_status_e.fromValue(_cupsFinishDocument(http, name)); +} + +@ffi.Native)>() +external void cupsFreeDestInfo(ffi.Pointer dinfo); + +@ffi.Native)>() +external void cupsFreeDests(int num_dests, ffi.Pointer dests); + +@ffi.Native)>() +external void cupsFreeJobs(int num_jobs, ffi.Pointer jobs); + +@ffi.Native)>() +external void cupsFreeOptions( + int num_options, + ffi.Pointer options, +); + +@Deprecated('Use cupsEnumDests instead.') +@ffi.Native>>)>() +external int cupsGetClasses( + ffi.Pointer>> classes, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int cupsGetConflicts( + ffi.Pointer ppd, + ffi.Pointer option, + ffi.Pointer choice, + ffi.Pointer> options, +); + +@ffi.Native Function()>() +external ffi.Pointer cupsGetDefault(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsGetDefault2(ffi.Pointer http); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsGetDest( + ffi.Pointer name, + ffi.Pointer instance, + int num_dests, + ffi.Pointer dests, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external int cupsGetDestMediaByIndex( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + int n, + int flags, + ffi.Pointer size, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external int cupsGetDestMediaByName( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + ffi.Pointer media, + int flags, + ffi.Pointer size, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external int cupsGetDestMediaBySize( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + int width, + int length, + int flags, + ffi.Pointer size, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int cupsGetDestMediaCount( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + int flags, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external int cupsGetDestMediaDefault( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer dinfo, + int flags, + ffi.Pointer size, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsGetDestWithURI( + ffi.Pointer name, + ffi.Pointer uri, +); + +@ffi.Native>)>() +external int cupsGetDests(ffi.Pointer> dests); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer>) +>() +external int cupsGetDests2( + ffi.Pointer http, + ffi.Pointer> dests, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>(symbol: 'cupsGetFd') +external int _cupsGetFd( + ffi.Pointer http, + ffi.Pointer resource, + int fd, +); + +http_status_e cupsGetFd( + ffi.Pointer http, + ffi.Pointer resource, + int fd, +) { + return http_status_e.fromValue(_cupsGetFd(http, resource, fd)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'cupsGetFile') +external int _cupsGetFile( + ffi.Pointer http, + ffi.Pointer resource, + ffi.Pointer filename, +); + +http_status_e cupsGetFile( + ffi.Pointer http, + ffi.Pointer resource, + ffi.Pointer filename, +) { + return http_status_e.fromValue(_cupsGetFile(http, resource, filename)); +} + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int cupsGetIntegerOption( + ffi.Pointer name, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Int, + ) +>() +external int cupsGetJobs( + ffi.Pointer> jobs, + ffi.Pointer name, + int myjobs, + int whichjobs, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Int, + ) +>() +external int cupsGetJobs2( + ffi.Pointer http, + ffi.Pointer> jobs, + ffi.Pointer name, + int myjobs, + int whichjobs, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsGetNamedDest( + ffi.Pointer http, + ffi.Pointer name, + ffi.Pointer instance, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsGetOption( + ffi.Pointer name, + int num_options, + ffi.Pointer options, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsGetPPD(ffi.Pointer name); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer cupsGetPPD2( + ffi.Pointer http, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'cupsGetPPD3') +external int _cupsGetPPD3( + ffi.Pointer http, + ffi.Pointer name, + ffi.Pointer modtime, + ffi.Pointer buffer, + int bufsize, +); + +http_status_e cupsGetPPD3( + ffi.Pointer http, + ffi.Pointer name, + ffi.Pointer modtime, + ffi.Pointer buffer, + int bufsize, +) { + return http_status_e.fromValue( + _cupsGetPPD3(http, name, modtime, buffer, bufsize), + ); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsGetPassword(ffi.Pointer prompt); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsGetPassword2( + ffi.Pointer prompt, + ffi.Pointer http, + ffi.Pointer method, + ffi.Pointer resource, +); + +@Deprecated('Use cupsEnumDests instead.') +@ffi.Native>>)>() +external int cupsGetPrinters( + ffi.Pointer>> printers, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer cupsGetResponse( + ffi.Pointer http, + ffi.Pointer resource, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer cupsGetServerPPD( + ffi.Pointer http, + ffi.Pointer name, +); + +@ffi.Native< + ssize_t Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) +>() +external int cupsHashData( + ffi.Pointer algorithm, + ffi.Pointer data, + int datalen, + ffi.Pointer hash, + int hashsize, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer cupsHashString( + ffi.Pointer hash, + int hashsize, + ffi.Pointer buffer, + int bufsize, +); + +@ffi.Native Function()>() +external ffi.Pointer cupsLangDefault(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsLangEncoding(ffi.Pointer lang); + +@ffi.Native() +external void cupsLangFlush(); + +@ffi.Native)>() +external void cupsLangFree(ffi.Pointer lang); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer cupsLangGet(ffi.Pointer language); + +@ffi.Native(symbol: 'cupsLastError') +external int _cupsLastError(); + +ipp_status_e cupsLastError() { + return ipp_status_e.fromValue(_cupsLastError()); +} + +@ffi.Native Function()>() +external ffi.Pointer cupsLastErrorString(); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsLocalizeDestMedia( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int flags, + ffi.Pointer size, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsLocalizeDestOption( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + ffi.Pointer option, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer cupsLocalizeDestValue( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + ffi.Pointer option, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + time_t, + ) +>() +external int cupsMakeServerCredentials( + ffi.Pointer path, + ffi.Pointer common_name, + int num_alt_names, + ffi.Pointer> alt_names, + int expiration_date, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int cupsMarkOptions( + ffi.Pointer ppd, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer cupsNotifySubject( + ffi.Pointer lang, + ffi.Pointer event, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer cupsNotifyText( + ffi.Pointer lang, + ffi.Pointer event, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsParseOptions( + ffi.Pointer arg, + int num_options, + ffi.Pointer> options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int cupsPrintFile( + ffi.Pointer name, + ffi.Pointer filename, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int cupsPrintFile2( + ffi.Pointer http, + ffi.Pointer name, + ffi.Pointer filename, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int cupsPrintFiles( + ffi.Pointer name, + int num_files, + ffi.Pointer> files, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int cupsPrintFiles2( + ffi.Pointer http, + ffi.Pointer name, + int num_files, + ffi.Pointer> files, + ffi.Pointer title, + int num_options, + ffi.Pointer options, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>(symbol: 'cupsPutFd') +external int _cupsPutFd( + ffi.Pointer http, + ffi.Pointer resource, + int fd, +); + +http_status_e cupsPutFd( + ffi.Pointer http, + ffi.Pointer resource, + int fd, +) { + return http_status_e.fromValue(_cupsPutFd(http, resource, fd)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'cupsPutFile') +external int _cupsPutFile( + ffi.Pointer http, + ffi.Pointer resource, + ffi.Pointer filename, +); + +http_status_e cupsPutFile( + ffi.Pointer http, + ffi.Pointer resource, + ffi.Pointer filename, +) { + return http_status_e.fromValue(_cupsPutFile(http, resource, filename)); +} + +@ffi.Native)>() +external void cupsRasterClose(ffi.Pointer r); + +@ffi.Native Function()>() +external ffi.Pointer cupsRasterErrorString(); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsRasterInitPWGHeader( + ffi.Pointer h, + ffi.Pointer media, + ffi.Pointer type, + int xdpi, + int ydpi, + ffi.Pointer sides, + ffi.Pointer sheet_back, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + cups_interpret_cb_t, + ) +>() +external int cupsRasterInterpretPPD( + ffi.Pointer h, + ffi.Pointer ppd, + int num_options, + ffi.Pointer options, + cups_interpret_cb_t func, +); + +@ffi.Native Function(ffi.Int, ffi.UnsignedInt)>( + symbol: 'cupsRasterOpen', +) +external ffi.Pointer _cupsRasterOpen(int fd, int mode); + +ffi.Pointer cupsRasterOpen(int fd, cups_mode_e mode) { + return _cupsRasterOpen(fd, mode.value); +} + +@ffi.Native< + ffi.Pointer Function( + cups_raster_iocb_t, + ffi.Pointer, + ffi.UnsignedInt, + ) +>(symbol: 'cupsRasterOpenIO') +external ffi.Pointer _cupsRasterOpenIO( + cups_raster_iocb_t iocb, + ffi.Pointer ctx, + int mode, +); + +ffi.Pointer cupsRasterOpenIO( + cups_raster_iocb_t iocb, + ffi.Pointer ctx, + cups_mode_e mode, +) { + return _cupsRasterOpenIO(iocb, ctx, mode.value); +} + +@Deprecated('Use cupsRasterReadHeader2 instead.') +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsRasterReadHeader( + ffi.Pointer r, + ffi.Pointer h, +); + +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsRasterReadHeader2( + ffi.Pointer r, + ffi.Pointer h, +); + +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int cupsRasterReadPixels( + ffi.Pointer r, + ffi.Pointer p, + int len, +); + +@Deprecated('Use cupsRasterWriteHeader2 instead.') +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsRasterWriteHeader( + ffi.Pointer r, + ffi.Pointer h, +); + +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external int cupsRasterWriteHeader2( + ffi.Pointer r, + ffi.Pointer h, +); + +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int cupsRasterWritePixels( + ffi.Pointer r, + ffi.Pointer p, + int len, +); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int cupsReadResponseData( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsRemoveDest( + ffi.Pointer name, + ffi.Pointer instance, + int num_dests, + ffi.Pointer> dests, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external int cupsRemoveOption( + ffi.Pointer name, + int num_options, + ffi.Pointer> options, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int cupsResolveConflicts( + ffi.Pointer ppd, + ffi.Pointer option, + ffi.Pointer choice, + ffi.Pointer num_options, + ffi.Pointer> options, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'cupsSendRequest') +external int _cupsSendRequest( + ffi.Pointer http, + ffi.Pointer request, + ffi.Pointer resource, + int length, +); + +http_status_e cupsSendRequest( + ffi.Pointer http, + ffi.Pointer request, + ffi.Pointer resource, + int length, +) { + return http_status_e.fromValue( + _cupsSendRequest(http, request, resource, length), + ); +} + +@ffi.Native Function()>() +external ffi.Pointer cupsServer(); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + bearer_token_callback_t, + ffi.Pointer, + ) +>() +external void cupsSetBearerTokenCB( + ffi.Pointer http, + bearer_token_callback_t cb, + ffi.Pointer user_data, +); + +@ffi.Native)>() +external void cupsSetClientCertCB( + cups_client_cert_cb_t cb, + ffi.Pointer user_data, +); + +@ffi.Native)>() +external int cupsSetCredentials(ffi.Pointer certs); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external void cupsSetDefaultDest( + ffi.Pointer name, + ffi.Pointer instance, + int num_dests, + ffi.Pointer dests, +); + +@ffi.Native)>() +external void cupsSetDests(int num_dests, ffi.Pointer dests); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int cupsSetDests2( + ffi.Pointer http, + int num_dests, + ffi.Pointer dests, +); + +@ffi.Native(symbol: 'cupsSetEncryption') +external void _cupsSetEncryption(int e); + +void cupsSetEncryption(http_encryption_e e) { + return _cupsSetEncryption(e.value); +} + +@ffi.Native() +external void cupsSetPasswordCB(cups_password_cb_t cb); + +@ffi.Native)>() +external void cupsSetPasswordCB2( + cups_password_cb2_t cb, + ffi.Pointer user_data, +); + +@ffi.Native)>() +external void cupsSetServer(ffi.Pointer server); + +@ffi.Native)>() +external void cupsSetServerCertCB( + cups_server_cert_cb_t cb, + ffi.Pointer user_data, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int cupsSetServerCredentials( + ffi.Pointer path, + ffi.Pointer common_name, + int auto_create, +); + +@ffi.Native)>() +external void cupsSetUser(ffi.Pointer user); + +@ffi.Native)>() +external void cupsSetUserAgent(ffi.Pointer user_agent); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'cupsStartDestDocument') +external int _cupsStartDestDocument( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int job_id, + ffi.Pointer docname, + ffi.Pointer format, + int num_options, + ffi.Pointer options, + int last_document, +); + +http_status_e cupsStartDestDocument( + ffi.Pointer http, + ffi.Pointer dest, + ffi.Pointer info, + int job_id, + ffi.Pointer docname, + ffi.Pointer format, + int num_options, + ffi.Pointer options, + int last_document, +) { + return http_status_e.fromValue( + _cupsStartDestDocument( + http, + dest, + info, + job_id, + docname, + format, + num_options, + options, + last_document, + ), + ); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'cupsStartDocument') +external int _cupsStartDocument( + ffi.Pointer http, + ffi.Pointer name, + int job_id, + ffi.Pointer docname, + ffi.Pointer format, + int last_document, +); + +http_status_e cupsStartDocument( + ffi.Pointer http, + ffi.Pointer name, + int job_id, + ffi.Pointer docname, + ffi.Pointer format, + int last_document, +) { + return http_status_e.fromValue( + _cupsStartDocument(http, name, job_id, docname, format, last_document), + ); +} + +@ffi.Native, ffi.Int)>() +external int cupsTempFd(ffi.Pointer filename, int len); + +@Deprecated('Use cupsTempFd or cupsTempFile2 instead.') +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer cupsTempFile( + ffi.Pointer filename, + int len, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer cupsTempFile2( + ffi.Pointer filename, + int len, +); + +@ffi.Native Function()>() +external ffi.Pointer cupsUser(); + +@ffi.Native Function()>() +external ffi.Pointer cupsUserAgent(); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>(symbol: 'cupsWriteRequestData') +external int _cupsWriteRequestData( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +http_status_e cupsWriteRequestData( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +) { + return http_status_e.fromValue(_cupsWriteRequestData(http, buffer, length)); +} + +@Deprecated('Use posix_spawn APIs instead.') +@ffi.Native() +external int daemon(int arg0, int arg1); + +@ffi.Native() +external int daylight; + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Int, + ffi.Pointer, + ) +>() +external int debug_control_port_for_pid( + int target_tport, + int pid, + ffi.Pointer t, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external double dec2f(ffi.Pointer d); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int dec2l(ffi.Pointer d); + +@Deprecated('Deprecated') +@ffi.Native)>() +external double dec2num(ffi.Pointer d); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int dec2s(ffi.Pointer d); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void dec2str( + ffi.Pointer f, + ffi.Pointer d, + ffi.Pointer s, +); + +@ffi.Native Function(dev_t, mode_t)>() +external ffi.Pointer devname(int arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function(dev_t, mode_t, ffi.Pointer, ffi.Int) +>() +external ffi.Pointer devname_r( + int arg0, + int arg1, + ffi.Pointer buf, + int len, +); + +@ffi.Native() +external double difftime(int arg0, int arg1); + +@ffi.Native() +external int disconnectx(int arg0, int arg1, int arg2); + +@ffi.Native(symbol: 'dispatch_activate') +external void _dispatch_activate(dispatch_object_t object); + +void dispatch_activate(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_activate(_$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function(dispatch_time_t, dispatch_queue_t, dispatch_block_t) +>(symbol: 'dispatch_after') +external void _dispatch_after( + int when, + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_after( + Dartdispatch_time_t when, + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_after(when, _$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_time_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_after_f') +external void _dispatch_after_f( + int when, + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_after_f( + Dartdispatch_time_t when, + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_after_f(when, _$$ref.pointer, context, work); +} + +@ffi.Native() +external int dispatch_allow_send_signals(int preserve_signum); + +@ffi.Native< + ffi.Void Function(ffi.Size, dispatch_queue_t, ffi.Pointer) +>(symbol: 'dispatch_apply') +external void _dispatch_apply( + int iterations, + dispatch_queue_t queue, + ffi.Pointer block, +); + +void dispatch_apply( + int iterations, + Dartdispatch_queue_t? queue, + objc.ObjCBlock block, +) { + final _$$ref = queue?.ref; + final _$$ref$1 = block.ref; + return _dispatch_apply( + iterations, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Void Function( + ffi.Size, + dispatch_queue_t, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer context, ffi.Size iteration) + > + >, + ) +>(symbol: 'dispatch_apply_f') +external void _dispatch_apply_f( + int iterations, + dispatch_queue_t queue, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer context, ffi.Size iteration) + > + > + work, +); + +void dispatch_apply_f( + int iterations, + Dartdispatch_queue_t? queue, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer context, ffi.Size iteration) + > + > + work, +) { + final _$$ref = queue?.ref; + return _dispatch_apply_f( + iterations, + _$$ref?.pointer ?? ffi.nullptr, + context, + work, + ); +} + +@ffi.Native( + symbol: 'dispatch_assert_queue', +) +external void _dispatch_assert_queue(dispatch_queue_t queue); + +void dispatch_assert_queue(Dartdispatch_queue_t queue) { + final _$$ref = queue.ref; + return _dispatch_assert_queue(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_assert_queue_barrier', +) +external void _dispatch_assert_queue_barrier(dispatch_queue_t queue); + +void dispatch_assert_queue_barrier(Dartdispatch_queue_t queue) { + final _$$ref = queue.ref; + return _dispatch_assert_queue_barrier(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_assert_queue_not', +) +external void _dispatch_assert_queue_not(dispatch_queue_t queue); + +void dispatch_assert_queue_not(Dartdispatch_queue_t queue) { + final _$$ref = queue.ref; + return _dispatch_assert_queue_not(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_async', +) +external void _dispatch_async(dispatch_queue_t queue, dispatch_block_t block); + +void dispatch_async(Dartdispatch_queue_t queue, Dartdispatch_block_t block) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_async(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'dispatch_async_and_wait', +) +external void _dispatch_async_and_wait( + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_async_and_wait( + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_async_and_wait(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_async_and_wait_f') +external void _dispatch_async_and_wait_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_async_and_wait_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_async_and_wait_f(_$$ref.pointer, context, work); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_async_f') +external void _dispatch_async_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_async_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_async_f(_$$ref.pointer, context, work); +} + +@ffi.Native( + symbol: 'dispatch_barrier_async', +) +external void _dispatch_barrier_async( + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_barrier_async( + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_barrier_async(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'dispatch_barrier_async_and_wait', +) +external void _dispatch_barrier_async_and_wait( + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_barrier_async_and_wait( + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_barrier_async_and_wait(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_barrier_async_and_wait_f') +external void _dispatch_barrier_async_and_wait_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_barrier_async_and_wait_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_barrier_async_and_wait_f(_$$ref.pointer, context, work); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_barrier_async_f') +external void _dispatch_barrier_async_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_barrier_async_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_barrier_async_f(_$$ref.pointer, context, work); +} + +@ffi.Native( + symbol: 'dispatch_barrier_sync', +) +external void _dispatch_barrier_sync( + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_barrier_sync( + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_barrier_sync(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_barrier_sync_f') +external void _dispatch_barrier_sync_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_barrier_sync_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_barrier_sync_f(_$$ref.pointer, context, work); +} + +@ffi.Native( + symbol: 'dispatch_block_cancel', +) +external void _dispatch_block_cancel(dispatch_block_t block); + +void dispatch_block_cancel(Dartdispatch_block_t block) { + final _$$ref = block.ref; + return _dispatch_block_cancel(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_block_create', +) +external dispatch_block_t _dispatch_block_create( + int flags, + dispatch_block_t block, +); + +Dartdispatch_block_t dispatch_block_create( + int flags, + Dartdispatch_block_t block, +) { + final _$$ref = block.ref; + return ObjCBlock_ffiVoid.fromPointer( + _dispatch_block_create(flags, _$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_block_t Function( + ffi.UnsignedLong, + ffi.UnsignedInt, + ffi.Int, + dispatch_block_t, + ) +>(symbol: 'dispatch_block_create_with_qos_class') +external dispatch_block_t _dispatch_block_create_with_qos_class( + int flags, + int qos_class, + int relative_priority, + dispatch_block_t block, +); + +Dartdispatch_block_t dispatch_block_create_with_qos_class( + int flags, + qos_class_t qos_class, + int relative_priority, + Dartdispatch_block_t block, +) { + final _$$ref = block.ref; + return ObjCBlock_ffiVoid.fromPointer( + _dispatch_block_create_with_qos_class( + flags, + qos_class.value, + relative_priority, + _$$ref.pointer, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Void Function(dispatch_block_t, dispatch_queue_t, dispatch_block_t) +>(symbol: 'dispatch_block_notify') +external void _dispatch_block_notify( + dispatch_block_t block, + dispatch_queue_t queue, + dispatch_block_t notification_block, +); + +void dispatch_block_notify( + Dartdispatch_block_t block, + Dartdispatch_queue_t queue, + Dartdispatch_block_t notification_block, +) { + final _$$ref = block.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = notification_block.ref; + return _dispatch_block_notify( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native( + symbol: 'dispatch_block_perform', +) +external void _dispatch_block_perform(int flags, dispatch_block_t block); + +void dispatch_block_perform(int flags, Dartdispatch_block_t block) { + final _$$ref = block.ref; + return _dispatch_block_perform(flags, _$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_block_testcancel', +) +external int _dispatch_block_testcancel(dispatch_block_t block); + +int dispatch_block_testcancel(Dartdispatch_block_t block) { + final _$$ref = block.ref; + return _dispatch_block_testcancel(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_block_wait', +) +external int _dispatch_block_wait(dispatch_block_t block, int timeout); + +int dispatch_block_wait( + Dartdispatch_block_t block, + Dartdispatch_time_t timeout, +) { + final _$$ref = block.ref; + return _dispatch_block_wait(_$$ref.pointer, timeout); +} + +@ffi.Native( + symbol: 'dispatch_data_apply', +) +external bool _dispatch_data_apply( + dispatch_data_t data, + dispatch_data_applier_t applier, +); + +bool dispatch_data_apply( + Dartdispatch_data_t data, + Dartdispatch_data_applier_t applier, +) { + final _$$ref = data.ref; + final _$$ref$1 = applier.ref; + return _dispatch_data_apply(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + dispatch_data_t Function(dispatch_data_t, ffi.Size, ffi.Pointer) +>(symbol: 'dispatch_data_copy_region') +external dispatch_data_t _dispatch_data_copy_region( + dispatch_data_t data, + int location, + ffi.Pointer offset_ptr, +); + +Dartdispatch_data_t dispatch_data_copy_region( + Dartdispatch_data_t data, + int location, + ffi.Pointer offset_ptr, +) { + final _$$ref = data.ref; + return objc.NSObject.fromPointer( + _dispatch_data_copy_region(_$$ref.pointer, location, offset_ptr), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_data_t Function( + ffi.Pointer, + ffi.Size, + dispatch_queue_t, + dispatch_block_t, + ) +>(symbol: 'dispatch_data_create') +external dispatch_data_t _dispatch_data_create( + ffi.Pointer buffer, + int size, + dispatch_queue_t queue, + dispatch_block_t destructor, +); + +Dartdispatch_data_t dispatch_data_create( + ffi.Pointer buffer, + int size, + Dartdispatch_queue_t? queue, + Dartdispatch_block_t? destructor, +) { + final _$$ref = queue?.ref; + final _$$ref$1 = destructor?.ref; + return objc.NSObject.fromPointer( + _dispatch_data_create( + buffer, + size, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_data_create_concat', +) +external dispatch_data_t _dispatch_data_create_concat( + dispatch_data_t data1, + dispatch_data_t data2, +); + +Dartdispatch_data_t dispatch_data_create_concat( + Dartdispatch_data_t data1, + Dartdispatch_data_t data2, +) { + final _$$ref = data1.ref; + final _$$ref$1 = data2.ref; + return objc.NSObject.fromPointer( + _dispatch_data_create_concat(_$$ref.pointer, _$$ref$1.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_data_t Function( + dispatch_data_t, + ffi.Pointer>, + ffi.Pointer, + ) +>(symbol: 'dispatch_data_create_map') +external dispatch_data_t _dispatch_data_create_map( + dispatch_data_t data, + ffi.Pointer> buffer_ptr, + ffi.Pointer size_ptr, +); + +Dartdispatch_data_t dispatch_data_create_map( + Dartdispatch_data_t data, + ffi.Pointer> buffer_ptr, + ffi.Pointer size_ptr, +) { + final _$$ref = data.ref; + return objc.NSObject.fromPointer( + _dispatch_data_create_map(_$$ref.pointer, buffer_ptr, size_ptr), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_data_create_subrange', +) +external dispatch_data_t _dispatch_data_create_subrange( + dispatch_data_t data, + int offset, + int length, +); + +Dartdispatch_data_t dispatch_data_create_subrange( + Dartdispatch_data_t data, + int offset, + int length, +) { + final _$$ref = data.ref; + return objc.NSObject.fromPointer( + _dispatch_data_create_subrange(_$$ref.pointer, offset, length), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_data_get_size', +) +external int _dispatch_data_get_size(dispatch_data_t data); + +int dispatch_data_get_size(Dartdispatch_data_t data) { + final _$$ref = data.ref; + return _dispatch_data_get_size(_$$ref.pointer); +} + +@Deprecated('unsupported interface') +@ffi.Native)>( + symbol: 'dispatch_debug', +) +external void _dispatch_debug( + dispatch_object_t object, + ffi.Pointer message, +); + +void dispatch_debug( + Dartdispatch_object_t object, + ffi.Pointer message, +) { + final _$$ref = object.ref; + return _dispatch_debug(_$$ref.pointer, message); +} + +@Deprecated('unsupported interface') +@ffi.Native< + ffi.Void Function(dispatch_object_t, ffi.Pointer, va_list) +>(symbol: 'dispatch_debugv') +external void _dispatch_debugv( + dispatch_object_t object, + ffi.Pointer message, + va_list ap, +); + +void dispatch_debugv( + Dartdispatch_object_t object, + ffi.Pointer message, + va_list ap, +) { + final _$$ref = object.ref; + return _dispatch_debugv(_$$ref.pointer, message, ap); +} + +@ffi.Native Function(dispatch_object_t)>( + symbol: 'dispatch_get_context', +) +external ffi.Pointer _dispatch_get_context(dispatch_object_t object); + +ffi.Pointer dispatch_get_context(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_get_context(_$$ref.pointer); +} + +@Deprecated('unsupported interface') +@ffi.Native(symbol: 'dispatch_get_current_queue') +external dispatch_queue_t _dispatch_get_current_queue(); + +Dartdispatch_queue_t dispatch_get_current_queue() { + return objc.NSObject.fromPointer( + _dispatch_get_current_queue(), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_get_global_queue', +) +external dispatch_queue_global_t _dispatch_get_global_queue( + int identifier, + int flags, +); + +Dartdispatch_queue_global_t dispatch_get_global_queue( + int identifier, + int flags, +) { + return objc.NSObject.fromPointer( + _dispatch_get_global_queue(identifier, flags), + retain: true, + release: true, + ); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer dispatch_get_specific(ffi.Pointer key); + +@ffi.Native< + ffi.Void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t) +>(symbol: 'dispatch_group_async') +external void _dispatch_group_async( + dispatch_group_t group, + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_group_async( + Dartdispatch_group_t group, + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = group.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = block.ref; + return _dispatch_group_async( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native< + ffi.Void Function( + dispatch_group_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_group_async_f') +external void _dispatch_group_async_f( + dispatch_group_t group, + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_group_async_f( + Dartdispatch_group_t group, + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = group.ref; + final _$$ref$1 = queue.ref; + return _dispatch_group_async_f( + _$$ref.pointer, + _$$ref$1.pointer, + context, + work, + ); +} + +@ffi.Native(symbol: 'dispatch_group_create') +external dispatch_group_t _dispatch_group_create(); + +Dartdispatch_group_t dispatch_group_create() { + return objc.NSObject.fromPointer( + _dispatch_group_create(), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'dispatch_group_enter') +external void _dispatch_group_enter(dispatch_group_t group); + +void dispatch_group_enter(Dartdispatch_group_t group) { + final _$$ref = group.ref; + return _dispatch_group_enter(_$$ref.pointer); +} + +@ffi.Native(symbol: 'dispatch_group_leave') +external void _dispatch_group_leave(dispatch_group_t group); + +void dispatch_group_leave(Dartdispatch_group_t group) { + final _$$ref = group.ref; + return _dispatch_group_leave(_$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t) +>(symbol: 'dispatch_group_notify') +external void _dispatch_group_notify( + dispatch_group_t group, + dispatch_queue_t queue, + dispatch_block_t block, +); + +void dispatch_group_notify( + Dartdispatch_group_t group, + Dartdispatch_queue_t queue, + Dartdispatch_block_t block, +) { + final _$$ref = group.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = block.ref; + return _dispatch_group_notify( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native< + ffi.Void Function( + dispatch_group_t, + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_group_notify_f') +external void _dispatch_group_notify_f( + dispatch_group_t group, + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_group_notify_f( + Dartdispatch_group_t group, + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = group.ref; + final _$$ref$1 = queue.ref; + return _dispatch_group_notify_f( + _$$ref.pointer, + _$$ref$1.pointer, + context, + work, + ); +} + +@ffi.Native( + symbol: 'dispatch_group_wait', +) +external int _dispatch_group_wait(dispatch_group_t group, int timeout); + +int dispatch_group_wait( + Dartdispatch_group_t group, + Dartdispatch_time_t timeout, +) { + final _$$ref = group.ref; + return _dispatch_group_wait(_$$ref.pointer, timeout); +} + +@ffi.Native( + symbol: 'dispatch_io_barrier', +) +external void _dispatch_io_barrier( + dispatch_io_t channel, + dispatch_block_t barrier, +); + +void dispatch_io_barrier( + Dartdispatch_io_t channel, + Dartdispatch_block_t barrier, +) { + final _$$ref = channel.ref; + final _$$ref$1 = barrier.ref; + return _dispatch_io_barrier(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'dispatch_io_close', +) +external void _dispatch_io_close(dispatch_io_t channel, int flags); + +void dispatch_io_close( + Dartdispatch_io_t channel, + Dartdispatch_io_close_flags_t flags, +) { + final _$$ref = channel.ref; + return _dispatch_io_close(_$$ref.pointer, flags); +} + +@ffi.Native< + dispatch_io_t Function( + dispatch_io_type_t, + dispatch_fd_t, + dispatch_queue_t, + ffi.Pointer, + ) +>(symbol: 'dispatch_io_create') +external dispatch_io_t _dispatch_io_create( + int type, + int fd, + dispatch_queue_t queue, + ffi.Pointer cleanup_handler, +); + +Dartdispatch_io_t dispatch_io_create( + Dartdispatch_io_type_t type, + Dartdispatch_fd_t fd, + Dartdispatch_queue_t queue, + objc.ObjCBlock cleanup_handler, +) { + final _$$ref = queue.ref; + final _$$ref$1 = cleanup_handler.ref; + return objc.NSObject.fromPointer( + _dispatch_io_create(type, fd, _$$ref.pointer, _$$ref$1.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_io_t Function( + dispatch_io_type_t, + dispatch_io_t, + dispatch_queue_t, + ffi.Pointer, + ) +>(symbol: 'dispatch_io_create_with_io') +external dispatch_io_t _dispatch_io_create_with_io( + int type, + dispatch_io_t io, + dispatch_queue_t queue, + ffi.Pointer cleanup_handler, +); + +Dartdispatch_io_t dispatch_io_create_with_io( + Dartdispatch_io_type_t type, + Dartdispatch_io_t io, + Dartdispatch_queue_t queue, + objc.ObjCBlock cleanup_handler, +) { + final _$$ref = io.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = cleanup_handler.ref; + return objc.NSObject.fromPointer( + _dispatch_io_create_with_io( + type, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_io_t Function( + dispatch_io_type_t, + ffi.Pointer, + ffi.Int, + mode_t, + dispatch_queue_t, + ffi.Pointer, + ) +>(symbol: 'dispatch_io_create_with_path') +external dispatch_io_t _dispatch_io_create_with_path( + int type, + ffi.Pointer path, + int oflag, + int mode, + dispatch_queue_t queue, + ffi.Pointer cleanup_handler, +); + +Dartdispatch_io_t dispatch_io_create_with_path( + Dartdispatch_io_type_t type, + ffi.Pointer path, + int oflag, + Dart__uint16_t mode, + Dartdispatch_queue_t queue, + objc.ObjCBlock cleanup_handler, +) { + final _$$ref = queue.ref; + final _$$ref$1 = cleanup_handler.ref; + return objc.NSObject.fromPointer( + _dispatch_io_create_with_path( + type, + path, + oflag, + mode, + _$$ref.pointer, + _$$ref$1.pointer, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_io_get_descriptor', +) +external int _dispatch_io_get_descriptor(dispatch_io_t channel); + +Dartdispatch_fd_t dispatch_io_get_descriptor(Dartdispatch_io_t channel) { + final _$$ref = channel.ref; + return _dispatch_io_get_descriptor(_$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_io_t, + off_t, + ffi.Size, + dispatch_queue_t, + dispatch_io_handler_t, + ) +>(symbol: 'dispatch_io_read') +external void _dispatch_io_read( + dispatch_io_t channel, + int offset, + int length, + dispatch_queue_t queue, + dispatch_io_handler_t io_handler, +); + +void dispatch_io_read( + Dartdispatch_io_t channel, + Dart__int64_t offset, + int length, + Dartdispatch_queue_t queue, + Dartdispatch_io_handler_t io_handler, +) { + final _$$ref = channel.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = io_handler.ref; + return _dispatch_io_read( + _$$ref.pointer, + offset, + length, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native( + symbol: 'dispatch_io_set_high_water', +) +external void _dispatch_io_set_high_water( + dispatch_io_t channel, + int high_water, +); + +void dispatch_io_set_high_water(Dartdispatch_io_t channel, int high_water) { + final _$$ref = channel.ref; + return _dispatch_io_set_high_water(_$$ref.pointer, high_water); +} + +@ffi.Native< + ffi.Void Function(dispatch_io_t, ffi.Uint64, dispatch_io_interval_flags_t) +>(symbol: 'dispatch_io_set_interval') +external void _dispatch_io_set_interval( + dispatch_io_t channel, + int interval, + int flags, +); + +void dispatch_io_set_interval( + Dartdispatch_io_t channel, + int interval, + Dartdispatch_io_interval_flags_t flags, +) { + final _$$ref = channel.ref; + return _dispatch_io_set_interval(_$$ref.pointer, interval, flags); +} + +@ffi.Native( + symbol: 'dispatch_io_set_low_water', +) +external void _dispatch_io_set_low_water(dispatch_io_t channel, int low_water); + +void dispatch_io_set_low_water(Dartdispatch_io_t channel, int low_water) { + final _$$ref = channel.ref; + return _dispatch_io_set_low_water(_$$ref.pointer, low_water); +} + +@ffi.Native< + ffi.Void Function( + dispatch_io_t, + off_t, + dispatch_data_t, + dispatch_queue_t, + dispatch_io_handler_t, + ) +>(symbol: 'dispatch_io_write') +external void _dispatch_io_write( + dispatch_io_t channel, + int offset, + dispatch_data_t data, + dispatch_queue_t queue, + dispatch_io_handler_t io_handler, +); + +void dispatch_io_write( + Dartdispatch_io_t channel, + Dart__int64_t offset, + Dartdispatch_data_t data, + Dartdispatch_queue_t queue, + Dartdispatch_io_handler_t io_handler, +) { + final _$$ref = channel.ref; + final _$$ref$1 = data.ref; + final _$$ref$2 = queue.ref; + final _$$ref$3 = io_handler.ref; + return _dispatch_io_write( + _$$ref.pointer, + offset, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); +} + +@ffi.Native() +external void dispatch_main(); + +@ffi.Native, dispatch_block_t)>( + symbol: 'dispatch_once', +) +external void _dispatch_once( + ffi.Pointer predicate, + dispatch_block_t block, +); + +void dispatch_once( + ffi.Pointer predicate, + Dartdispatch_block_t block, +) { + final _$$ref = block.ref; + return _dispatch_once(predicate, _$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + dispatch_function_t, + ) +>() +external void dispatch_once_f( + ffi.Pointer predicate, + ffi.Pointer context, + dispatch_function_t function, +); + +@ffi.Native( + symbol: 'dispatch_queue_attr_make_initially_inactive', +) +external dispatch_queue_attr_t _dispatch_queue_attr_make_initially_inactive( + dispatch_queue_attr_t attr, +); + +Dartdispatch_queue_attr_t dispatch_queue_attr_make_initially_inactive( + Dartdispatch_queue_attr_t? attr, +) { + final _$$ref = attr?.ref; + return objc.NSObject.fromPointer( + _dispatch_queue_attr_make_initially_inactive( + _$$ref?.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); +} + +@ffi.Native< + dispatch_queue_attr_t Function(dispatch_queue_attr_t, ffi.UnsignedLong) +>(symbol: 'dispatch_queue_attr_make_with_autorelease_frequency') +external dispatch_queue_attr_t +_dispatch_queue_attr_make_with_autorelease_frequency( + dispatch_queue_attr_t attr, + int frequency, +); + +Dartdispatch_queue_attr_t dispatch_queue_attr_make_with_autorelease_frequency( + Dartdispatch_queue_attr_t? attr, + dispatch_autorelease_frequency_t frequency, +) { + final _$$ref = attr?.ref; + return objc.NSObject.fromPointer( + _dispatch_queue_attr_make_with_autorelease_frequency( + _$$ref?.pointer ?? ffi.nullptr, + frequency.value, + ), + retain: true, + release: true, + ); +} + +@ffi.Native< + dispatch_queue_attr_t Function( + dispatch_queue_attr_t, + ffi.UnsignedInt, + ffi.Int, + ) +>(symbol: 'dispatch_queue_attr_make_with_qos_class') +external dispatch_queue_attr_t _dispatch_queue_attr_make_with_qos_class( + dispatch_queue_attr_t attr, + int qos_class, + int relative_priority, +); + +Dartdispatch_queue_attr_t dispatch_queue_attr_make_with_qos_class( + Dartdispatch_queue_attr_t? attr, + qos_class_t qos_class, + int relative_priority, +) { + final _$$ref = attr?.ref; + return objc.NSObject.fromPointer( + _dispatch_queue_attr_make_with_qos_class( + _$$ref?.pointer ?? ffi.nullptr, + qos_class.value, + relative_priority, + ), + retain: true, + release: true, + ); +} + +@ffi.Native< + dispatch_queue_t Function(ffi.Pointer, dispatch_queue_attr_t) +>(symbol: 'dispatch_queue_create') +external dispatch_queue_t _dispatch_queue_create( + ffi.Pointer label, + dispatch_queue_attr_t attr, +); + +Dartdispatch_queue_t dispatch_queue_create( + ffi.Pointer label, + Dartdispatch_queue_attr_t? attr, +) { + final _$$ref = attr?.ref; + return objc.NSObject.fromPointer( + _dispatch_queue_create(label, _$$ref?.pointer ?? ffi.nullptr), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_queue_t Function( + ffi.Pointer, + dispatch_queue_attr_t, + dispatch_queue_t, + ) +>(symbol: 'dispatch_queue_create_with_target') +external dispatch_queue_t _dispatch_queue_create_with_target( + ffi.Pointer label, + dispatch_queue_attr_t attr, + dispatch_queue_t target, +); + +Dartdispatch_queue_t dispatch_queue_create_with_target( + ffi.Pointer label, + Dartdispatch_queue_attr_t? attr, + Dartdispatch_queue_t? target, +) { + final _$$ref = attr?.ref; + final _$$ref$1 = target?.ref; + return objc.NSObject.fromPointer( + _dispatch_queue_create_with_target( + label, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ), + retain: false, + release: true, + ); +} + +@ffi.Native Function(dispatch_queue_t)>( + symbol: 'dispatch_queue_get_label', +) +external ffi.Pointer _dispatch_queue_get_label( + dispatch_queue_t queue, +); + +ffi.Pointer dispatch_queue_get_label(Dartdispatch_queue_t? queue) { + final _$$ref = queue?.ref; + return _dispatch_queue_get_label(_$$ref?.pointer ?? ffi.nullptr); +} + +@ffi.Native)>( + symbol: 'dispatch_queue_get_qos_class', +) +external int _dispatch_queue_get_qos_class( + dispatch_queue_t queue, + ffi.Pointer relative_priority_ptr, +); + +qos_class_t dispatch_queue_get_qos_class( + Dartdispatch_queue_t queue, + ffi.Pointer relative_priority_ptr, +) { + final _$$ref = queue.ref; + return qos_class_t.fromValue( + _dispatch_queue_get_qos_class(_$$ref.pointer, relative_priority_ptr), + ); +} + +@ffi.Native< + ffi.Pointer Function(dispatch_queue_t, ffi.Pointer) +>(symbol: 'dispatch_queue_get_specific') +external ffi.Pointer _dispatch_queue_get_specific( + dispatch_queue_t queue, + ffi.Pointer key, +); + +ffi.Pointer dispatch_queue_get_specific( + Dartdispatch_queue_t queue, + ffi.Pointer key, +) { + final _$$ref = queue.ref; + return _dispatch_queue_get_specific(_$$ref.pointer, key); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_queue_set_specific') +external void _dispatch_queue_set_specific( + dispatch_queue_t queue, + ffi.Pointer key, + ffi.Pointer context, + dispatch_function_t destructor, +); + +void dispatch_queue_set_specific( + Dartdispatch_queue_t queue, + ffi.Pointer key, + ffi.Pointer context, + dispatch_function_t destructor, +) { + final _$$ref = queue.ref; + return _dispatch_queue_set_specific(_$$ref.pointer, key, context, destructor); +} + +@ffi.Native< + ffi.Void Function( + dispatch_fd_t, + ffi.Size, + dispatch_queue_t, + ffi.Pointer, + ) +>(symbol: 'dispatch_read') +external void _dispatch_read( + int fd, + int length, + dispatch_queue_t queue, + ffi.Pointer handler, +); + +void dispatch_read( + Dartdispatch_fd_t fd, + int length, + Dartdispatch_queue_t queue, + objc.ObjCBlock handler, +) { + final _$$ref = queue.ref; + final _$$ref$1 = handler.ref; + return _dispatch_read(fd, length, _$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native(symbol: 'dispatch_release') +external void _dispatch_release(dispatch_object_t object); + +void dispatch_release(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_release(_$$ref.pointer); +} + +@ffi.Native(symbol: 'dispatch_resume') +external void _dispatch_resume(dispatch_object_t object); + +void dispatch_resume(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_resume(_$$ref.pointer); +} + +@ffi.Native(symbol: 'dispatch_retain') +external void _dispatch_retain(dispatch_object_t object); + +void dispatch_retain(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_retain(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_semaphore_create', +) +external dispatch_semaphore_t _dispatch_semaphore_create(int value); + +Dartdispatch_semaphore_t dispatch_semaphore_create(int value) { + return objc.NSObject.fromPointer( + _dispatch_semaphore_create(value), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_semaphore_signal', +) +external int _dispatch_semaphore_signal(dispatch_semaphore_t dsema); + +int dispatch_semaphore_signal(Dartdispatch_semaphore_t dsema) { + final _$$ref = dsema.ref; + return _dispatch_semaphore_signal(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_semaphore_wait', +) +external int _dispatch_semaphore_wait(dispatch_semaphore_t dsema, int timeout); + +int dispatch_semaphore_wait( + Dartdispatch_semaphore_t dsema, + Dartdispatch_time_t timeout, +) { + final _$$ref = dsema.ref; + return _dispatch_semaphore_wait(_$$ref.pointer, timeout); +} + +@ffi.Native)>( + symbol: 'dispatch_set_context', +) +external void _dispatch_set_context( + dispatch_object_t object, + ffi.Pointer context, +); + +void dispatch_set_context( + Dartdispatch_object_t object, + ffi.Pointer context, +) { + final _$$ref = object.ref; + return _dispatch_set_context(_$$ref.pointer, context); +} + +@ffi.Native( + symbol: 'dispatch_set_finalizer_f', +) +external void _dispatch_set_finalizer_f( + dispatch_object_t object, + dispatch_function_t finalizer, +); + +void dispatch_set_finalizer_f( + Dartdispatch_object_t object, + dispatch_function_t finalizer, +) { + final _$$ref = object.ref; + return _dispatch_set_finalizer_f(_$$ref.pointer, finalizer); +} + +@ffi.Native( + symbol: 'dispatch_set_qos_class_floor', +) +external void _dispatch_set_qos_class_floor( + dispatch_object_t object, + int qos_class, + int relative_priority, +); + +void dispatch_set_qos_class_floor( + Dartdispatch_object_t object, + qos_class_t qos_class, + int relative_priority, +) { + final _$$ref = object.ref; + return _dispatch_set_qos_class_floor( + _$$ref.pointer, + qos_class.value, + relative_priority, + ); +} + +@ffi.Native( + symbol: 'dispatch_set_target_queue', +) +external void _dispatch_set_target_queue( + dispatch_object_t object, + dispatch_queue_t queue, +); + +void dispatch_set_target_queue( + Dartdispatch_object_t object, + Dartdispatch_queue_t? queue, +) { + final _$$ref = object.ref; + final _$$ref$1 = queue?.ref; + return _dispatch_set_target_queue( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native( + symbol: 'dispatch_source_cancel', +) +external void _dispatch_source_cancel(dispatch_source_t source); + +void dispatch_source_cancel(Dartdispatch_source_t source) { + final _$$ref = source.ref; + return _dispatch_source_cancel(_$$ref.pointer); +} + +@ffi.Native< + dispatch_source_t Function( + dispatch_source_type_t, + ffi.UintPtr, + ffi.UintPtr, + dispatch_queue_t, + ) +>(symbol: 'dispatch_source_create') +external dispatch_source_t _dispatch_source_create( + dispatch_source_type_t type, + int handle, + int mask, + dispatch_queue_t queue, +); + +Dartdispatch_source_t dispatch_source_create( + dispatch_source_type_t type, + int handle, + int mask, + Dartdispatch_queue_t? queue, +) { + final _$$ref = queue?.ref; + return objc.NSObject.fromPointer( + _dispatch_source_create(type, handle, mask, _$$ref?.pointer ?? ffi.nullptr), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_source_get_data', +) +external int _dispatch_source_get_data(dispatch_source_t source); + +int dispatch_source_get_data(Dartdispatch_source_t source) { + final _$$ref = source.ref; + return _dispatch_source_get_data(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_source_get_handle', +) +external int _dispatch_source_get_handle(dispatch_source_t source); + +int dispatch_source_get_handle(Dartdispatch_source_t source) { + final _$$ref = source.ref; + return _dispatch_source_get_handle(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_source_get_mask', +) +external int _dispatch_source_get_mask(dispatch_source_t source); + +int dispatch_source_get_mask(Dartdispatch_source_t source) { + final _$$ref = source.ref; + return _dispatch_source_get_mask(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_source_merge_data', +) +external void _dispatch_source_merge_data(dispatch_source_t source, int value); + +void dispatch_source_merge_data(Dartdispatch_source_t source, int value) { + final _$$ref = source.ref; + return _dispatch_source_merge_data(_$$ref.pointer, value); +} + +@ffi.Native( + symbol: 'dispatch_source_set_cancel_handler', +) +external void _dispatch_source_set_cancel_handler( + dispatch_source_t source, + dispatch_block_t handler, +); + +void dispatch_source_set_cancel_handler( + Dartdispatch_source_t source, + Dartdispatch_block_t? handler, +) { + final _$$ref = source.ref; + final _$$ref$1 = handler?.ref; + return _dispatch_source_set_cancel_handler( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native( + symbol: 'dispatch_source_set_cancel_handler_f', +) +external void _dispatch_source_set_cancel_handler_f( + dispatch_source_t source, + dispatch_function_t handler, +); + +void dispatch_source_set_cancel_handler_f( + Dartdispatch_source_t source, + dispatch_function_t handler, +) { + final _$$ref = source.ref; + return _dispatch_source_set_cancel_handler_f(_$$ref.pointer, handler); +} + +@ffi.Native( + symbol: 'dispatch_source_set_event_handler', +) +external void _dispatch_source_set_event_handler( + dispatch_source_t source, + dispatch_block_t handler, +); + +void dispatch_source_set_event_handler( + Dartdispatch_source_t source, + Dartdispatch_block_t? handler, +) { + final _$$ref = source.ref; + final _$$ref$1 = handler?.ref; + return _dispatch_source_set_event_handler( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native( + symbol: 'dispatch_source_set_event_handler_f', +) +external void _dispatch_source_set_event_handler_f( + dispatch_source_t source, + dispatch_function_t handler, +); + +void dispatch_source_set_event_handler_f( + Dartdispatch_source_t source, + dispatch_function_t handler, +) { + final _$$ref = source.ref; + return _dispatch_source_set_event_handler_f(_$$ref.pointer, handler); +} + +@ffi.Native( + symbol: 'dispatch_source_set_registration_handler', +) +external void _dispatch_source_set_registration_handler( + dispatch_source_t source, + dispatch_block_t handler, +); + +void dispatch_source_set_registration_handler( + Dartdispatch_source_t source, + Dartdispatch_block_t? handler, +) { + final _$$ref = source.ref; + final _$$ref$1 = handler?.ref; + return _dispatch_source_set_registration_handler( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native( + symbol: 'dispatch_source_set_registration_handler_f', +) +external void _dispatch_source_set_registration_handler_f( + dispatch_source_t source, + dispatch_function_t handler, +); + +void dispatch_source_set_registration_handler_f( + Dartdispatch_source_t source, + dispatch_function_t handler, +) { + final _$$ref = source.ref; + return _dispatch_source_set_registration_handler_f(_$$ref.pointer, handler); +} + +@ffi.Native< + ffi.Void Function(dispatch_source_t, dispatch_time_t, ffi.Uint64, ffi.Uint64) +>(symbol: 'dispatch_source_set_timer') +external void _dispatch_source_set_timer( + dispatch_source_t source, + int start, + int interval, + int leeway, +); + +void dispatch_source_set_timer( + Dartdispatch_source_t source, + Dartdispatch_time_t start, + int interval, + int leeway, +) { + final _$$ref = source.ref; + return _dispatch_source_set_timer(_$$ref.pointer, start, interval, leeway); +} + +@ffi.Native( + symbol: 'dispatch_source_testcancel', +) +external int _dispatch_source_testcancel(dispatch_source_t source); + +int dispatch_source_testcancel(Dartdispatch_source_t source) { + final _$$ref = source.ref; + return _dispatch_source_testcancel(_$$ref.pointer); +} + +@ffi.Native(symbol: 'dispatch_suspend') +external void _dispatch_suspend(dispatch_object_t object); + +void dispatch_suspend(Dartdispatch_object_t object) { + final _$$ref = object.ref; + return _dispatch_suspend(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'dispatch_sync', +) +external void _dispatch_sync(dispatch_queue_t queue, dispatch_block_t block); + +void dispatch_sync(Dartdispatch_queue_t queue, Dartdispatch_block_t block) { + final _$$ref = queue.ref; + final _$$ref$1 = block.ref; + return _dispatch_sync(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_queue_t, + ffi.Pointer, + dispatch_function_t, + ) +>(symbol: 'dispatch_sync_f') +external void _dispatch_sync_f( + dispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +); + +void dispatch_sync_f( + Dartdispatch_queue_t queue, + ffi.Pointer context, + dispatch_function_t work, +) { + final _$$ref = queue.ref; + return _dispatch_sync_f(_$$ref.pointer, context, work); +} + +@ffi.Native() +external int dispatch_time(int when, int delta); + +@ffi.Native, ffi.Int64)>() +external int dispatch_walltime(ffi.Pointer when, int delta); + +@ffi.Native)>( + symbol: 'dispatch_workloop_create', +) +external dispatch_workloop_t _dispatch_workloop_create( + ffi.Pointer label, +); + +Dartdispatch_workloop_t dispatch_workloop_create(ffi.Pointer label) { + return objc.NSObject.fromPointer( + _dispatch_workloop_create(label), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'dispatch_workloop_create_inactive', +) +external dispatch_workloop_t _dispatch_workloop_create_inactive( + ffi.Pointer label, +); + +Dartdispatch_workloop_t dispatch_workloop_create_inactive( + ffi.Pointer label, +) { + return objc.NSObject.fromPointer( + _dispatch_workloop_create_inactive(label), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'dispatch_workloop_set_autorelease_frequency', +) +external void _dispatch_workloop_set_autorelease_frequency( + dispatch_workloop_t workloop, + int frequency, +); + +void dispatch_workloop_set_autorelease_frequency( + Dartdispatch_workloop_t workloop, + dispatch_autorelease_frequency_t frequency, +) { + final _$$ref = workloop.ref; + return _dispatch_workloop_set_autorelease_frequency( + _$$ref.pointer, + frequency.value, + ); +} + +@ffi.Native( + symbol: 'dispatch_workloop_set_os_workgroup', +) +external void _dispatch_workloop_set_os_workgroup( + dispatch_workloop_t workloop, + os_workgroup_t workgroup, +); + +void dispatch_workloop_set_os_workgroup( + Dartdispatch_workloop_t workloop, + Dartos_workgroup_t workgroup, +) { + final _$$ref = workloop.ref; + final _$$ref$1 = workgroup.ref; + return _dispatch_workloop_set_os_workgroup(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + dispatch_fd_t, + dispatch_data_t, + dispatch_queue_t, + ffi.Pointer, + ) +>(symbol: 'dispatch_write') +external void _dispatch_write( + int fd, + dispatch_data_t data, + dispatch_queue_t queue, + ffi.Pointer handler, +); + +void dispatch_write( + Dartdispatch_fd_t fd, + Dartdispatch_data_t data, + Dartdispatch_queue_t queue, + objc.ObjCBlock handler, +) { + final _$$ref = data.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = handler.ref; + return _dispatch_write( + fd, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native() +external div_t div(int arg0, int arg1); + +@ffi.Native)>() +external int dprintf(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external double drand48(); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void dtox80(ffi.Pointer x, ffi.Pointer x80); + +@ffi.Native() +external int dup(int arg0); + +@ffi.Native() +external int dup2(int arg0, int arg1); + +@ffi.Native() +external locale_t duplocale(locale_t arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Double, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ecvt( + double arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native, ffi.Int)>() +external void encrypt(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external void endhostent(); + +@ffi.Native() +external void endnetent(); + +@ffi.Native() +external void endnetgrent(); + +@ffi.Native() +external void endprotoent(); + +@ffi.Native() +external void endrpcent(); + +@ffi.Native() +external void endservent(); + +@ffi.Native() +external void endusershell(); + +@ffi.Native)>() +external double erand48(ffi.Pointer arg0); + +@ffi.Native() +external double erf(double arg0); + +@ffi.Native() +external double erfc(double arg0); + +@ffi.Native() +external double erfcf(double arg0); + +@ffi.Native() +external double erff(double arg0); + +@ffi.Native() +external int etap_trace_thread(int target_act, int trace_status); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int exchangedata( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native, ffi.Pointer)>() +external int execl(ffi.Pointer __path, ffi.Pointer __arg0); + +@ffi.Native, ffi.Pointer)>() +external int execle(ffi.Pointer __path, ffi.Pointer __arg0); + +@ffi.Native, ffi.Pointer)>() +external int execlp(ffi.Pointer __file, ffi.Pointer __arg0); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer>) +>() +external int execv( + ffi.Pointer __path, + ffi.Pointer> __argv, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int execvP( + ffi.Pointer __file, + ffi.Pointer __searchpath, + ffi.Pointer> __argv, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int execve( + ffi.Pointer __file, + ffi.Pointer> __argv, + ffi.Pointer> __envp, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer>) +>() +external int execvp( + ffi.Pointer __file, + ffi.Pointer> __argv, +); + +@ffi.Native() +external void exit(int arg0); + +@ffi.Native() +external double exp(double arg0); + +@ffi.Native() +external double exp2(double arg0); + +@ffi.Native() +external double exp2f(double arg0); + +@ffi.Native() +external double expf(double arg0); + +@ffi.Native() +external double expm1(double arg0); + +@ffi.Native() +external double expm1f(double arg0); + +@ffi.Native() +external double fabs(double arg0); + +@ffi.Native() +external double fabsf(double arg0); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) +>() +external int faccessat( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, +); + +@ffi.Native() +external int fchdir(int arg0); + +@ffi.Native() +external int fchown(int arg0, int arg1, int arg2); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, uid_t, gid_t, ffi.Int) +>() +external int fchownat( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, +); + +@ffi.Native)>() +external int fclose(ffi.Pointer arg0); + +@ffi.Native() +external int fcntl(int arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.Double, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer fcvt( + double arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native() +external double fdim(double arg0, double arg1); + +@ffi.Native() +external double fdimf(double arg0, double arg1); + +@ffi.Native Function(ffi.Int, ffi.Pointer)>() +external ffi.Pointer fdopen(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external int feclearexcept(int arg0); + +@ffi.Native)>() +external int fegetenv(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int fegetexceptflag(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int fegetround(); + +@ffi.Native)>() +external int feholdexcept(ffi.Pointer arg0); + +@ffi.Native)>() +external int feof(ffi.Pointer arg0); + +@ffi.Native() +external int feraiseexcept(int arg0); + +@ffi.Native)>() +external int ferror(ffi.Pointer arg0); + +@ffi.Native)>() +external int fesetenv(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int fesetexceptflag(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int fesetround(int arg0); + +@ffi.Native() +external int fetestexcept(int arg0); + +@ffi.Native)>() +external int feupdateenv(ffi.Pointer arg0); + +@ffi.Native Function(ffi.UnsignedLong)>() +external ffi.Pointer fflagstostr(int arg0); + +@ffi.Native)>() +external int fflush(ffi.Pointer arg0); + +@ffi.Native() +external int ffs(int arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int ffsctl(int arg0, int arg1, ffi.Pointer arg2, int arg3); + +@ffi.Native() +external int ffsl(int arg0); + +@ffi.Native() +external int ffsll(int arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) +>() +external int fgetattrlist( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, + int arg4, +); + +@ffi.Native)>() +external int fgetc(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer fgetln( + ffi.Pointer arg0, + ffi.Pointer __len, +); + +@ffi.Native, ffi.Pointer)>() +external int fgetpos(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer fgets( + ffi.Pointer arg0, + int __size, + ffi.Pointer arg2, +); + +@ffi.Native)>() +external int fileno(ffi.Pointer arg0); + +@ffi.Native() +external filesec_t filesec_dup(filesec_t arg0); + +@ffi.Native() +external void filesec_free(filesec_t arg0); + +@ffi.Native< + ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'filesec_get_property') +external int _filesec_get_property( + filesec_t arg0, + int arg1, + ffi.Pointer arg2, +); + +int filesec_get_property( + filesec_t arg0, + filesec_property_t arg1, + ffi.Pointer arg2, +) { + return _filesec_get_property(arg0, arg1.value, arg2); +} + +@ffi.Native() +external filesec_t filesec_init(); + +@ffi.Native)>( + symbol: 'filesec_query_property', +) +external int _filesec_query_property( + filesec_t arg0, + int arg1, + ffi.Pointer arg2, +); + +int filesec_query_property( + filesec_t arg0, + filesec_property_t arg1, + ffi.Pointer arg2, +) { + return _filesec_query_property(arg0, arg1.value, arg2); +} + +@ffi.Native< + ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) +>(symbol: 'filesec_set_property') +external int _filesec_set_property( + filesec_t arg0, + int arg1, + ffi.Pointer arg2, +); + +int filesec_set_property( + filesec_t arg0, + filesec_property_t arg1, + ffi.Pointer arg2, +) { + return _filesec_set_property(arg0, arg1.value, arg2); +} + +@ffi.Native( + symbol: 'filesec_unset_property', +) +external int _filesec_unset_property(filesec_t arg0, int arg1); + +int filesec_unset_property(filesec_t arg0, filesec_property_t arg1) { + return _filesec_unset_property(arg0, arg1.value); +} + +@ffi.Native() +external int flock(int arg0, int arg1); + +@ffi.Native)>() +external void flockfile(ffi.Pointer arg0); + +@ffi.Native() +external double floor(double arg0); + +@ffi.Native() +external double floorf(double arg0); + +@ffi.Native() +external int fls(int arg0); + +@ffi.Native() +external int flsl(int arg0); + +@ffi.Native() +external int flsll(int arg0); + +@ffi.Native() +external double fma(double arg0, double arg1, double arg2); + +@ffi.Native() +external double fmaf(double arg0, double arg1, double arg2); + +@ffi.Native() +external double fmax(double arg0, double arg1); + +@ffi.Native() +external double fmaxf(double arg0, double arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ) +>() +external ffi.Pointer fmemopen( + ffi.Pointer __buf, + int __size, + ffi.Pointer __mode, +); + +@ffi.Native() +external double fmin(double arg0, double arg1); + +@ffi.Native() +external double fminf(double arg0, double arg1); + +@ffi.Native() +external double fmod(double arg0, double arg1); + +@ffi.Native() +external double fmodf(double arg0, double arg1); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer fmtcheck( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer fopen( + ffi.Pointer __filename, + ffi.Pointer __mode, +); + +@ffi.Native() +external int fork(); + +@ffi.Native() +external int fpathconf(int arg0, int arg1); + +@ffi.Native, ffi.Pointer)>() +external int fprintf(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external int fpurge(ffi.Pointer arg0); + +@ffi.Native)>() +external int fputc(int arg0, ffi.Pointer arg1); + +@ffi.Native, ffi.Pointer)>() +external int fputs(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>() +external int fread( + ffi.Pointer __ptr, + int __size, + int __nitems, + ffi.Pointer __stream, +); + +@ffi.Native, ffi.Size)>() +external int freadlink(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native)>() +external void free(ffi.Pointer arg0); + +@ffi.Native)>() +external void freeaddrinfo(ffi.Pointer arg0); + +@ffi.Native)>() +external void freehostent(ffi.Pointer arg0); + +@ffi.Native() +external int freelocale(locale_t arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer freopen( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native)>() +external double frexp(double arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external double frexpf(double arg0, ffi.Pointer arg1); + +@ffi.Native, ffi.Pointer)>() +external int fscanf(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int fsctl( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native, ffi.Long, ffi.Int)>() +external int fseek(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native, off_t, ffi.Int)>() +external int fseeko(ffi.Pointer __stream, int __offset, int __whence); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) +>() +external int fsetattrlist( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, + int arg4, +); + +@ffi.Native, ffi.Pointer)>() +external int fsetpos(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external int fsync(int arg0); + +@ffi.Native() +external int fsync_volume_np(int arg0, int arg1); + +@ffi.Native)>() +external int ftell(ffi.Pointer arg0); + +@ffi.Native)>() +external int ftello(ffi.Pointer __stream); + +@ffi.Native() +external int ftruncate(int arg0, int arg1); + +@ffi.Native)>() +external int ftrylockfile(ffi.Pointer arg0); + +@ffi.Native)>() +external void funlockfile(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + >, + ffi.Pointer< + ffi.NativeFunction< + fpos_t Function(ffi.Pointer, fpos_t, ffi.Int) + > + >, + ffi.Pointer)>>, + ) +>() +external ffi.Pointer funopen( + ffi.Pointer arg0, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + arg1, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + arg2, + ffi.Pointer< + ffi.NativeFunction, fpos_t, ffi.Int)> + > + arg3, + ffi.Pointer)>> arg4, +); + +@ffi.Native)>() +external int futimes(int arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>() +external int fwrite( + ffi.Pointer __ptr, + int __size, + int __nitems, + ffi.Pointer __stream, +); + +@ffi.Native() +external final CSSM_GUID gGuidAppleCSP; + +@ffi.Native() +external final CSSM_GUID gGuidAppleCSPDL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleDotMacDL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleDotMacTP; + +@ffi.Native() +external final CSSM_GUID gGuidAppleFileDL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleLDAPDL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleSdCSPDL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleX509CL; + +@ffi.Native() +external final CSSM_GUID gGuidAppleX509TP; + +@ffi.Native() +external final CSSM_GUID gGuidCssm; + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer gai_strerror(int arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Double, ffi.Int, ffi.Pointer) +>() +external ffi.Pointer gcvt( + double arg0, + int arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int getaddrinfo( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) +>() +external int getattrlist( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, + int arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedLong, + ) +>() +external int getattrlistat( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + int arg4, + int arg5, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Uint64, + ) +>() +external int getattrlistbulk( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int getaudit(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int getaudit_addr(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int getauid(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer getbsize( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native)>() +external int getc(ffi.Pointer arg0); + +@ffi.Native)>() +external int getc_unlocked(ffi.Pointer arg0); + +@ffi.Native() +external int getchar(); + +@ffi.Native() +external int getchar_unlocked(); + +@ffi.Native Function(ffi.Pointer, ffi.Size)>() +external ffi.Pointer getcwd(ffi.Pointer arg0, int __size); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getdate(ffi.Pointer arg0); + +@ffi.Native() +external int getdate_err; + +@ffi.Native< + ssize_t Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int getdelim( + ffi.Pointer> __linep, + ffi.Pointer __linecapp, + int __delimiter, + ffi.Pointer __stream, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int getdirentriesattr( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, + ffi.Pointer arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + int arg7, +); + +@ffi.Native, ffi.Int)>() +external int getdomainname(ffi.Pointer arg0, int __namelen); + +@ffi.Native() +external int getdtablesize(); + +@ffi.Native() +external int getegid(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getenv(ffi.Pointer arg0); + +@ffi.Native() +external int geteuid(); + +@ffi.Native() +external int getgid(); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int getgrouplist( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer __ngroups, +); + +@ffi.Native)>() +external int getgroups(int __gidsetsize, ffi.Pointer arg1); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, socklen_t, ffi.Int) +>() +external ffi.Pointer gethostbyaddr( + ffi.Pointer arg0, + int arg1, + int arg2, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer gethostbyname(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer gethostbyname2( + ffi.Pointer arg0, + int arg1, +); + +@ffi.Native Function()>() +external ffi.Pointer gethostent(); + +@ffi.Native() +external int gethostid(); + +@ffi.Native, ffi.Size)>() +external int gethostname(ffi.Pointer arg0, int __namelen); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int gethostuuid( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int getiopolicy_np(int arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer getipnodebyaddr( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer getipnodebyname( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + in_addr, + in_addr, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int getipv4sourcefilter( + int arg0, + in_addr arg1, + in_addr arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native)>() +external int getitimer(int arg0, ffi.Pointer arg1); + +@ffi.Native< + ssize_t Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int getline( + ffi.Pointer> __linep, + ffi.Pointer __linecapp, + ffi.Pointer __stream, +); + +@ffi.Native, ffi.Int)>() +external int getloadavg(ffi.Pointer arg0, int __nelem); + +@ffi.Native Function()>() +external ffi.Pointer getlogin(); + +@ffi.Native, ffi.Size)>() +external int getlogin_r(ffi.Pointer arg0, int __namelen); + +@ffi.Native, mode_t)>() +external int getmode(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + socklen_t, + ffi.Pointer, + socklen_t, + ffi.Pointer, + socklen_t, + ffi.Int, + ) +>() +external int getnameinfo( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + int arg5, + int arg6, +); + +@ffi.Native Function(ffi.Uint32, ffi.Int)>() +external ffi.Pointer getnetbyaddr(int arg0, int arg1); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getnetbyname(ffi.Pointer arg0); + +@ffi.Native Function()>() +external ffi.Pointer getnetent(); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int getnetgrent( + ffi.Pointer> arg0, + ffi.Pointer> arg1, + ffi.Pointer> arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int getopt( + int __argc, + ffi.Pointer> arg1, + ffi.Pointer arg2, +); + +@ffi.Native() +external int getpagesize(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getpass(ffi.Pointer arg0); + +@ffi.Native, ffi.Pointer)>() +external int getpeereid( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int getpeername( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native() +external int getpgid(int arg0); + +@ffi.Native() +external int getpgrp(); + +@ffi.Native() +external int getpid(); + +@ffi.Native() +external int getppid(); + +@ffi.Native() +external int getpriority(int arg0, int arg1); + +@ffi.Native Function()>() +external ffi.Pointer getprogname(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getprotobyname(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer getprotobynumber(int arg0); + +@ffi.Native Function()>() +external ffi.Pointer getprotoent(); + +@ffi.Native)>() +external int getrlimit(int arg0, ffi.Pointer arg1); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getrpcbyname(ffi.Pointer name); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer getrpcbynumber(int number); + +@ffi.Native Function()>() +external ffi.Pointer getrpcent(); + +@ffi.Native)>() +external int getrusage(int arg0, ffi.Pointer arg1); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of gets(3), it is highly recommended that you use fgets(3) instead.', +) +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer gets(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer getservbyname( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native Function(ffi.Int, ffi.Pointer)>() +external ffi.Pointer getservbyport( + int arg0, + ffi.Pointer arg1, +); + +@ffi.Native Function()>() +external ffi.Pointer getservent(); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int getsgroups_np( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int getsid(int arg0); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int getsockname( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int getsockopt( + int arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Uint32, + ffi.Pointer, + socklen_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int getsourcefilter( + int arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external int getsubopt( + ffi.Pointer> arg0, + ffi.Pointer> arg1, + ffi.Pointer> arg2, +); + +@ffi.Native, ffi.Pointer)>() +external int gettimeofday( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int getuid(); + +@ffi.Native Function()>() +external ffi.Pointer getusershell(); + +@ffi.Native)>() +external int getw(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer getwd(ffi.Pointer arg0); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int getwgroups_np( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer gmtime(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() +external ffi.Pointer gmtime_r( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int grantpt(int arg0); + +@ffi.Native() +external int h_errno; + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) +>() +external int heapsort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'heapsort_b') +external int _heapsort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer __compar, +); + +int heapsort_b( + ffi.Pointer __base, + int __nel, + int __width, + objc.ObjCBlock, ffi.Pointer)> + __compar, +) { + final _$$ref = __compar.ref; + return _heapsort_b(__base, __nel, __width, _$$ref.pointer); +} + +@ffi.Native)>() +external void herror(ffi.Pointer arg0); + +@ffi.Native)>() +external int host_check_multiuser_mode( + int host, + ffi.Pointer multiuser_mode, +); + +@ffi.Native< + kern_return_t Function( + host_t, + mach_voucher_attr_raw_recipe_array_t, + mach_msg_type_number_t, + ffi.Pointer, + ) +>() +external int host_create_mach_voucher( + int host, + mach_voucher_attr_raw_recipe_array_t recipes, + int recipesCnt, + ffi.Pointer voucher, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_voucher_attr_raw_recipe_array_t, + ffi.Int, + ffi.Pointer, + ) +>() +external int host_create_mach_voucher_trap( + int host, + mach_voucher_attr_raw_recipe_array_t recipes, + int recipes_size, + ffi.Pointer voucher, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + ffi.Pointer, + memory_object_cluster_size_t, + ) +>() +external int host_default_memory_manager( + int host_priv, + ffi.Pointer default_manager, + int cluster_size, +); + +@ffi.Native)>() +external int host_get_UNDServer(int host, ffi.Pointer server); + +@ffi.Native)>() +external int host_get_atm_diagnostic_flag( + int host, + ffi.Pointer diagnostic_flag, +); + +@ffi.Native)>() +external int host_get_boot_info(int host_priv, ffi.Pointer boot_info); + +@ffi.Native< + kern_return_t Function(host_priv_t, clock_id_t, ffi.Pointer) +>() +external int host_get_clock_control( + int host_priv, + int clock_id, + ffi.Pointer clock_ctrl, +); + +@ffi.Native< + kern_return_t Function(host_t, clock_id_t, ffi.Pointer) +>() +external int host_get_clock_service( + int host, + int clock_id, + ffi.Pointer clock_serv, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + exception_mask_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int host_get_exception_ports( + int host_priv, + int exception_mask, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlers, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native)>() +external int host_get_io_main(int host, ffi.Pointer io_main); + +@ffi.Native)>() +external int host_get_multiuser_config_flags( + int host, + ffi.Pointer multiuser_flags, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>() +external int host_get_special_port( + int host_priv, + int node, + int which, + ffi.Pointer port, +); + +@ffi.Native< + kern_return_t Function( + host_t, + host_flavor_t, + host_info_t, + ffi.Pointer, + ) +>() +external int host_info( + int host, + int flavor, + host_info_t host_info_out, + ffi.Pointer host_info_outCnt, +); + +@ffi.Native)>() +external int host_kernel_version( + int host, + ffi.Pointer kernel_version, +); + +@ffi.Native< + kern_return_t Function( + host_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_lockgroup_info( + int host, + ffi.Pointer lockgroup_info$1, + ffi.Pointer lockgroup_infoCnt, +); + +@ffi.Native)>() +external int host_page_size(int arg0, ffi.Pointer arg1); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + host_flavor_t, + host_info_t, + ffi.Pointer, + ) +>() +external int host_priv_statistics( + int host_priv, + int flavor, + host_info_t host_info_out, + ffi.Pointer host_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + host_t, + processor_flavor_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_processor_info( + int host, + int flavor, + ffi.Pointer out_processor_count, + ffi.Pointer out_processor_info, + ffi.Pointer out_processor_infoCnt, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + processor_set_name_t, + ffi.Pointer, + ) +>() +external int host_processor_set_priv( + int host_priv, + int set_name, + ffi.Pointer set, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_processor_sets( + int host_priv, + ffi.Pointer processor_sets, + ffi.Pointer processor_setsCnt, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_processors( + int host_priv, + ffi.Pointer out_processor_list, + ffi.Pointer out_processor_listCnt, +); + +@ffi.Native() +external int host_reboot(int host_priv, int options); + +@ffi.Native< + kern_return_t Function( + host_t, + mach_voucher_attr_manager_t, + mach_voucher_attr_value_handle_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_register_mach_voucher_attr_manager( + int host, + int attr_manager, + int default_value, + ffi.Pointer new_key, + ffi.Pointer new_attr_control, +); + +@ffi.Native< + kern_return_t Function( + host_t, + mach_voucher_attr_manager_t, + mach_voucher_attr_value_handle_t, + mach_voucher_attr_key_t, + ffi.Pointer, + ) +>() +external int host_register_well_known_mach_voucher_attr_manager( + int host, + int attr_manager, + int default_value, + int key, + ffi.Pointer new_attr_control, +); + +@ffi.Native() +external int host_request_notification( + int host, + int notify_type, + int notify_port, +); + +@ffi.Native< + kern_return_t Function( + host_security_t, + task_t, + security_token_t, + audit_token_t, + host_t, + ledger_array_t, + mach_msg_type_number_t, + boolean_t, + ffi.Pointer, + ) +>() +external int host_security_create_task_token( + int host_security, + int parent_task, + security_token_t sec_token, + audit_token_t audit_token, + int host, + ledger_array_t ledgers, + int ledgersCnt, + int inherit_memory, + ffi.Pointer child_task, +); + +@ffi.Native< + kern_return_t Function( + host_security_t, + task_t, + security_token_t, + audit_token_t, + host_t, + ) +>() +external int host_security_set_task_token( + int host_security, + int target_task, + security_token_t sec_token, + audit_token_t audit_token, + int host, +); + +@ffi.Native() +external int host_set_UNDServer(int host, int server); + +@ffi.Native() +external int host_set_atm_diagnostic_flag(int host, int diagnostic_flag); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + ) +>() +external int host_set_exception_ports( + int host_priv, + int exception_mask, + int new_port, + int behavior, + int new_flavor, +); + +@ffi.Native() +external int host_set_multiuser_config_flags( + int host_priv, + int multiuser_flags, +); + +@ffi.Native() +external int host_set_special_port(int host_priv, int which, int port); + +@ffi.Native< + kern_return_t Function( + host_t, + host_flavor_t, + host_info_t, + ffi.Pointer, + ) +>() +external int host_statistics( + int host_priv, + int flavor, + host_info_t host_info_out, + ffi.Pointer host_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + host_t, + host_flavor_t, + host_info64_t, + ffi.Pointer, + ) +>() +external int host_statistics64( + int host_priv, + int flavor, + host_info64_t host_info64_out, + ffi.Pointer host_info64_outCnt, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int host_swap_exception_ports( + int host_priv, + int exception_mask, + int new_port, + int behavior, + int new_flavor, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlerss, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + host_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int host_virtual_physical_table_info( + int host, + ffi.Pointer info, + ffi.Pointer infoCnt, +); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer hstrerror(int arg0); + +@ffi.Native Function(ffi.Int, ffi.Int)>() +external ffi.Pointer httpAcceptConnection(int fd, int blocking); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int httpAddCredential( + ffi.Pointer credentials, + ffi.Pointer data, + int datalen, +); + +@ffi.Native)>() +external int httpAddrAny(ffi.Pointer addr); + +@ffi.Native, ffi.Int)>() +external int httpAddrClose(ffi.Pointer addr, int fd); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer httpAddrConnect( + ffi.Pointer addrlist, + ffi.Pointer sock, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer httpAddrConnect2( + ffi.Pointer addrlist, + ffi.Pointer sock, + int msec, + ffi.Pointer cancel, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>() +external ffi.Pointer httpAddrCopyList( + ffi.Pointer src, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int httpAddrEqual( + ffi.Pointer addr1, + ffi.Pointer addr2, +); + +@ffi.Native)>() +external int httpAddrFamily(ffi.Pointer addr); + +@ffi.Native)>() +external void httpAddrFreeList(ffi.Pointer addrlist); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer httpAddrGetList( + ffi.Pointer hostname, + int family, + ffi.Pointer service, +); + +@ffi.Native)>() +external int httpAddrLength(ffi.Pointer addr); + +@ffi.Native, ffi.Int)>() +external int httpAddrListen(ffi.Pointer addr, int port); + +@ffi.Native)>() +external int httpAddrLocalhost(ffi.Pointer addr); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer httpAddrLookup( + ffi.Pointer addr, + ffi.Pointer name, + int namelen, +); + +@ffi.Native)>() +external int httpAddrPort(ffi.Pointer addr); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer httpAddrString( + ffi.Pointer addr, + ffi.Pointer s, + int slen, +); + +@ffi.Native< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'httpAssembleURI') +external int _httpAssembleURI( + int encoding, + ffi.Pointer uri, + int urilen, + ffi.Pointer scheme, + ffi.Pointer username, + ffi.Pointer host, + int port, + ffi.Pointer resource, +); + +http_uri_status_e httpAssembleURI( + http_uri_coding_e encoding, + ffi.Pointer uri, + int urilen, + ffi.Pointer scheme, + ffi.Pointer username, + ffi.Pointer host, + int port, + ffi.Pointer resource, +) { + return http_uri_status_e.fromValue( + _httpAssembleURI( + encoding.value, + uri, + urilen, + scheme, + username, + host, + port, + resource, + ), + ); +} + +@ffi.Native< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'httpAssembleURIf') +external int _httpAssembleURIf( + int encoding, + ffi.Pointer uri, + int urilen, + ffi.Pointer scheme, + ffi.Pointer username, + ffi.Pointer host, + int port, + ffi.Pointer resourcef, +); + +http_uri_status_e httpAssembleURIf( + http_uri_coding_e encoding, + ffi.Pointer uri, + int urilen, + ffi.Pointer scheme, + ffi.Pointer username, + ffi.Pointer host, + int port, + ffi.Pointer resourcef, +) { + return http_uri_status_e.fromValue( + _httpAssembleURIf( + encoding.value, + uri, + urilen, + scheme, + username, + host, + port, + resourcef, + ), + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer httpAssembleUUID( + ffi.Pointer server, + int port, + ffi.Pointer name, + int number, + ffi.Pointer buffer, + int bufsize, +); + +@ffi.Native, ffi.Int)>() +external void httpBlocking(ffi.Pointer http, int b); + +@ffi.Native)>() +external int httpCheck(ffi.Pointer http); + +@ffi.Native)>() +external void httpClearCookie(ffi.Pointer http); + +@ffi.Native)>() +external void httpClearFields(ffi.Pointer http); + +@ffi.Native)>() +external void httpClose(ffi.Pointer http); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int httpCompareCredentials( + ffi.Pointer cred1, + ffi.Pointer cred2, +); + +@Deprecated('Use httpConnect2 instead.') +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer httpConnect(ffi.Pointer host, int port); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.UnsignedInt, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'httpConnect2') +external ffi.Pointer _httpConnect2( + ffi.Pointer host, + int port, + ffi.Pointer addrlist, + int family, + int encryption, + int blocking, + int msec, + ffi.Pointer cancel, +); + +ffi.Pointer httpConnect2( + ffi.Pointer host, + int port, + ffi.Pointer addrlist, + int family, + http_encryption_e encryption, + int blocking, + int msec, + ffi.Pointer cancel, +) { + return _httpConnect2( + host, + port, + addrlist, + family, + encryption.value, + blocking, + msec, + cancel, + ); +} + +@Deprecated('Use httpConnect2 instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.UnsignedInt) +>(symbol: 'httpConnectEncrypt') +external ffi.Pointer _httpConnectEncrypt( + ffi.Pointer host, + int port, + int encryption, +); + +ffi.Pointer httpConnectEncrypt( + ffi.Pointer host, + int port, + http_encryption_e encryption, +) { + return _httpConnectEncrypt(host, port, encryption.value); +} + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer>) +>() +external int httpCopyCredentials( + ffi.Pointer http, + ffi.Pointer> credentials, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int httpCredentialsAreValidForName( + ffi.Pointer credentials, + ffi.Pointer common_name, +); + +@ffi.Native)>() +external int httpCredentialsGetExpiration( + ffi.Pointer credentials, +); + +@ffi.Native< + ffi.UnsignedInt Function(ffi.Pointer, ffi.Pointer) +>(symbol: 'httpCredentialsGetTrust') +external int _httpCredentialsGetTrust( + ffi.Pointer credentials, + ffi.Pointer common_name, +); + +http_trust_e httpCredentialsGetTrust( + ffi.Pointer credentials, + ffi.Pointer common_name, +) { + return http_trust_e.fromValue( + _httpCredentialsGetTrust(credentials, common_name), + ); +} + +@ffi.Native< + ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int httpCredentialsString( + ffi.Pointer credentials, + ffi.Pointer buffer, + int bufsize, +); + +@Deprecated('Use httpDecode64_2 instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer httpDecode64( + ffi.Pointer out, + ffi.Pointer in$, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer httpDecode64_2( + ffi.Pointer out, + ffi.Pointer outlen, + ffi.Pointer in$, +); + +@ffi.Native, ffi.Pointer)>() +external int httpDelete(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native)>() +external int httpDeleteCredentials(ffi.Pointer common_name); + +@Deprecated('Use httpEncode64_2 instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer httpEncode64( + ffi.Pointer out, + ffi.Pointer in$, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer httpEncode64_2( + ffi.Pointer out, + int outlen, + ffi.Pointer in$, + int inlen, +); + +@ffi.Native, ffi.UnsignedInt)>( + symbol: 'httpEncryption', +) +external int _httpEncryption(ffi.Pointer http, int e); + +int httpEncryption(ffi.Pointer http, http_encryption_e e) { + return _httpEncryption(http, e.value); +} + +@ffi.Native)>() +external int httpError(ffi.Pointer http); + +@ffi.Native)>(symbol: 'httpFieldValue') +external int _httpFieldValue(ffi.Pointer name); + +http_field_e httpFieldValue(ffi.Pointer name) { + return http_field_e.fromValue(_httpFieldValue(name)); +} + +@ffi.Native)>() +external void httpFlush(ffi.Pointer http); + +@ffi.Native)>() +external int httpFlushWrite(ffi.Pointer http); + +@ffi.Native)>() +external void httpFreeCredentials(ffi.Pointer certs); + +@ffi.Native, ffi.Pointer)>() +external int httpGet(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native)>() +external int httpGetActivity(ffi.Pointer http); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer httpGetAddress(ffi.Pointer http); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer httpGetAuthString(ffi.Pointer http); + +@ffi.Native)>() +external int httpGetBlocking(ffi.Pointer http); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer httpGetContentEncoding(ffi.Pointer http); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer httpGetCookie(ffi.Pointer http); + +@ffi.Native Function(time_t)>() +external ffi.Pointer httpGetDateString(int t); + +@ffi.Native< + ffi.Pointer Function(time_t, ffi.Pointer, ffi.Int) +>() +external ffi.Pointer httpGetDateString2( + int t, + ffi.Pointer s, + int slen, +); + +@ffi.Native)>() +external int httpGetDateTime(ffi.Pointer s); + +@ffi.Native)>( + symbol: 'httpGetEncryption', +) +external int _httpGetEncryption(ffi.Pointer http); + +http_encryption_e httpGetEncryption(ffi.Pointer http) { + return http_encryption_e.fromValue(_httpGetEncryption(http)); +} + +@ffi.Native)>(symbol: 'httpGetExpect') +external int _httpGetExpect(ffi.Pointer http); + +http_status_e httpGetExpect(ffi.Pointer http) { + return http_status_e.fromValue(_httpGetExpect(http)); +} + +@ffi.Native)>() +external int httpGetFd(ffi.Pointer http); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>( + symbol: 'httpGetField', +) +external ffi.Pointer _httpGetField( + ffi.Pointer http, + int field, +); + +ffi.Pointer httpGetField( + ffi.Pointer http, + http_field_e field, +) { + return _httpGetField(http, field.value); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer httpGetHostByName(ffi.Pointer name); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer httpGetHostname( + ffi.Pointer http, + ffi.Pointer s, + int slen, +); + +@ffi.Native)>( + symbol: 'httpGetKeepAlive', +) +external int _httpGetKeepAlive(ffi.Pointer http); + +http_keepalive_e httpGetKeepAlive(ffi.Pointer http) { + return http_keepalive_e.fromValue(_httpGetKeepAlive(http)); +} + +@Deprecated('Use httpGetLength2 instead.') +@ffi.Native)>() +external int httpGetLength(ffi.Pointer http); + +@ffi.Native)>() +external int httpGetLength2(ffi.Pointer http); + +@ffi.Native)>() +external int httpGetPending(ffi.Pointer http); + +@ffi.Native)>() +external int httpGetReady(ffi.Pointer http); + +@ffi.Native)>() +external int httpGetRemaining(ffi.Pointer http); + +@ffi.Native)>(symbol: 'httpGetState') +external int _httpGetState(ffi.Pointer http); + +http_state_e httpGetState(ffi.Pointer http) { + return http_state_e.fromValue(_httpGetState(http)); +} + +@ffi.Native)>(symbol: 'httpGetStatus') +external int _httpGetStatus(ffi.Pointer http); + +http_status_e httpGetStatus(ffi.Pointer http) { + return http_status_e.fromValue(_httpGetStatus(http)); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'httpGetSubField') +external ffi.Pointer _httpGetSubField( + ffi.Pointer http, + int field, + ffi.Pointer name, + ffi.Pointer value, +); + +ffi.Pointer httpGetSubField( + ffi.Pointer http, + http_field_e field, + ffi.Pointer name, + ffi.Pointer value, +) { + return _httpGetSubField(http, field.value, name, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'httpGetSubField2') +external ffi.Pointer _httpGetSubField2( + ffi.Pointer http, + int field, + ffi.Pointer name, + ffi.Pointer value, + int valuelen, +); + +ffi.Pointer httpGetSubField2( + ffi.Pointer http, + http_field_e field, + ffi.Pointer name, + ffi.Pointer value, + int valuelen, +) { + return _httpGetSubField2(http, field.value, name, value, valuelen); +} + +@ffi.Native)>( + symbol: 'httpGetVersion', +) +external int _httpGetVersion(ffi.Pointer http); + +http_version_e httpGetVersion(ffi.Pointer http) { + return http_version_e.fromValue(_httpGetVersion(http)); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer httpGets( + ffi.Pointer line, + int length, + ffi.Pointer http, +); + +@ffi.Native, ffi.Pointer)>() +external int httpHead(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native() +external void httpInitialize(); + +@ffi.Native)>() +external int httpIsChunked(ffi.Pointer http); + +@ffi.Native)>() +external int httpIsEncrypted(ffi.Pointer http); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int httpLoadCredentials( + ffi.Pointer path, + ffi.Pointer> credentials, + ffi.Pointer common_name, +); + +@Deprecated('Use cupsDoAuth or cupsHashData instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer httpMD5( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@Deprecated('Use cupsDoAuth or cupsHashData instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer httpMD5Final( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@Deprecated('Use cupsHashString instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer httpMD5String( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native, ffi.Pointer)>() +external int httpOptions(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int httpPeek( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native, ffi.Pointer)>() +external int httpPost(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native, ffi.Pointer)>() +external int httpPrintf(ffi.Pointer http, ffi.Pointer format); + +@ffi.Native, ffi.Pointer)>() +external int httpPut(ffi.Pointer http, ffi.Pointer uri); + +@Deprecated('Use httpRead2 instead.') +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int httpRead( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int httpRead2( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>(symbol: 'httpReadRequest') +external int _httpReadRequest( + ffi.Pointer http, + ffi.Pointer resource, + int resourcelen, +); + +http_state_e httpReadRequest( + ffi.Pointer http, + ffi.Pointer resource, + int resourcelen, +) { + return http_state_e.fromValue(_httpReadRequest(http, resource, resourcelen)); +} + +@Deprecated('Use httpReconnect2 instead.') +@ffi.Native)>() +external int httpReconnect(ffi.Pointer http); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int httpReconnect2( + ffi.Pointer http, + int msec, + ffi.Pointer cancel, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer httpResolveHostname( + ffi.Pointer http, + ffi.Pointer buffer, + int bufsize, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int httpSaveCredentials( + ffi.Pointer path, + ffi.Pointer credentials, + ffi.Pointer common_name, +); + +@Deprecated('Use httpSeparateURI instead.') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void httpSeparate( + ffi.Pointer uri, + ffi.Pointer method, + ffi.Pointer username, + ffi.Pointer host, + ffi.Pointer port, + ffi.Pointer resource, +); + +@Deprecated('Use httpSeparateURI instead.') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external void httpSeparate2( + ffi.Pointer uri, + ffi.Pointer method, + int methodlen, + ffi.Pointer username, + int usernamelen, + ffi.Pointer host, + int hostlen, + ffi.Pointer port, + ffi.Pointer resource, + int resourcelen, +); + +@ffi.Native< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'httpSeparateURI') +external int _httpSeparateURI( + int decoding, + ffi.Pointer uri, + ffi.Pointer scheme, + int schemelen, + ffi.Pointer username, + int usernamelen, + ffi.Pointer host, + int hostlen, + ffi.Pointer port, + ffi.Pointer resource, + int resourcelen, +); + +http_uri_status_e httpSeparateURI( + http_uri_coding_e decoding, + ffi.Pointer uri, + ffi.Pointer scheme, + int schemelen, + ffi.Pointer username, + int usernamelen, + ffi.Pointer host, + int hostlen, + ffi.Pointer port, + ffi.Pointer resource, + int resourcelen, +) { + return http_uri_status_e.fromValue( + _httpSeparateURI( + decoding.value, + uri, + scheme, + schemelen, + username, + usernamelen, + host, + hostlen, + port, + resource, + resourcelen, + ), + ); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void httpSetAuthString( + ffi.Pointer http, + ffi.Pointer scheme, + ffi.Pointer data, +); + +@ffi.Native, ffi.Pointer)>() +external void httpSetCookie( + ffi.Pointer http, + ffi.Pointer cookie, +); + +@ffi.Native, ffi.Pointer)>() +external int httpSetCredentials( + ffi.Pointer http, + ffi.Pointer certs, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>(symbol: 'httpSetDefaultField') +external void _httpSetDefaultField( + ffi.Pointer http, + int field, + ffi.Pointer value, +); + +void httpSetDefaultField( + ffi.Pointer http, + http_field_e field, + ffi.Pointer value, +) { + return _httpSetDefaultField(http, field.value, value); +} + +@ffi.Native, ffi.Int)>( + symbol: 'httpSetExpect', +) +external void _httpSetExpect(ffi.Pointer http, int expect); + +void httpSetExpect(ffi.Pointer http, http_status_e expect) { + return _httpSetExpect(http, expect.value); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>(symbol: 'httpSetField') +external void _httpSetField( + ffi.Pointer http, + int field, + ffi.Pointer value, +); + +void httpSetField( + ffi.Pointer http, + http_field_e field, + ffi.Pointer value, +) { + return _httpSetField(http, field.value, value); +} + +@ffi.Native, ffi.UnsignedInt)>( + symbol: 'httpSetKeepAlive', +) +external void _httpSetKeepAlive(ffi.Pointer http, int keep_alive); + +void httpSetKeepAlive(ffi.Pointer http, http_keepalive_e keep_alive) { + return _httpSetKeepAlive(http, keep_alive.value); +} + +@ffi.Native, ffi.Size)>() +external void httpSetLength(ffi.Pointer http, int length); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Double, + http_timeout_cb_t, + ffi.Pointer, + ) +>() +external void httpSetTimeout( + ffi.Pointer http, + double timeout, + http_timeout_cb_t cb, + ffi.Pointer user_data, +); + +@ffi.Native)>() +external void httpShutdown(ffi.Pointer http); + +@ffi.Native Function(ffi.Int)>(symbol: 'httpStateString') +external ffi.Pointer _httpStateString(int state); + +ffi.Pointer httpStateString(http_state_e state) { + return _httpStateString(state.value); +} + +@ffi.Native Function(ffi.Int)>(symbol: 'httpStatus') +external ffi.Pointer _httpStatus(int status); + +ffi.Pointer httpStatus(http_status_e status) { + return _httpStatus(status.value); +} + +@ffi.Native, ffi.Pointer)>() +external int httpTrace(ffi.Pointer http, ffi.Pointer uri); + +@ffi.Native Function(ffi.Int)>( + symbol: 'httpURIStatusString', +) +external ffi.Pointer _httpURIStatusString(int status); + +ffi.Pointer httpURIStatusString(http_uri_status_e status) { + return _httpURIStatusString(status.value); +} + +@ffi.Native)>(symbol: 'httpUpdate') +external int _httpUpdate(ffi.Pointer http); + +http_status_e httpUpdate(ffi.Pointer http) { + return http_status_e.fromValue(_httpUpdate(http)); +} + +@ffi.Native, ffi.Int)>() +external int httpWait(ffi.Pointer http, int msec); + +@Deprecated('Use httpWrite2 instead.') +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int httpWrite( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int httpWrite2( + ffi.Pointer http, + ffi.Pointer buffer, + int length, +); + +@ffi.Native, ffi.Int)>( + symbol: 'httpWriteResponse', +) +external int _httpWriteResponse(ffi.Pointer http, int status); + +http_state_e httpWriteResponse(ffi.Pointer http, http_status_e status) { + return http_state_e.fromValue(_httpWriteResponse(http, status.value)); +} + +@ffi.Native() +external double hypot(double arg0, double arg1); + +@ffi.Native() +external double hypotf(double arg0, double arg1); + +@ffi.Native() +external int ilogb(double arg0); + +@ffi.Native() +external int ilogbf(double arg0); + +@ffi.Native() +external int imaxabs(int j); + +@ffi.Native() +external imaxdiv_t imaxdiv(int __numer, int __denom); + +@ffi.Native() +external final in6_addr in6addr_any; + +@ffi.Native() +external final in6_addr in6addr_linklocal_allnodes; + +@ffi.Native() +external final in6_addr in6addr_linklocal_allrouters; + +@ffi.Native() +external final in6_addr in6addr_linklocal_allv2routers; + +@ffi.Native() +external final in6_addr in6addr_loopback; + +@ffi.Native() +external final in6_addr in6addr_nodelocal_allnodes; + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer index(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + socklen_t, + ffi.Int, + __uint8_t, + socklen_t, + __uint8_t, + ffi.Pointer>, + ) +>() +external int inet6_opt_append( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, + int arg4, + int arg5, + ffi.Pointer> arg6, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + socklen_t, + ffi.Int, + __uint8_t, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int inet6_opt_find( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, + ffi.Pointer arg4, + ffi.Pointer> arg5, +); + +@ffi.Native, socklen_t, ffi.Int)>() +external int inet6_opt_finish(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + socklen_t, + ) +>() +external int inet6_opt_get_val( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native, socklen_t)>() +external int inet6_opt_init(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + socklen_t, + ffi.Int, + ffi.Pointer<__uint8_t>, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external int inet6_opt_next( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer<__uint8_t> arg3, + ffi.Pointer arg4, + ffi.Pointer> arg5, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + socklen_t, + ) +>() +external int inet6_opt_set_val( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native< + ffi.Pointer<__uint8_t> Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Int, + ) +>() +external ffi.Pointer<__uint8_t> inet6_option_alloc( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer<__uint8_t>, + ffi.Int, + ffi.Int, + ) +>() +external int inet6_option_append( + ffi.Pointer arg0, + ffi.Pointer<__uint8_t> arg1, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int inet6_option_find( + ffi.Pointer arg0, + ffi.Pointer> arg1, + int arg2, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int inet6_option_init( + ffi.Pointer arg0, + ffi.Pointer> arg1, + int arg2, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer>) +>() +external int inet6_option_next( + ffi.Pointer arg0, + ffi.Pointer> arg1, +); + +@ffi.Native() +external int inet6_option_space(int arg0); + +@ffi.Native, ffi.Pointer)>() +external int inet6_rth_add( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer inet6_rth_getaddr( + ffi.Pointer arg0, + int arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + socklen_t, + ffi.Int, + ffi.Int, + ) +>() +external ffi.Pointer inet6_rth_init( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native, ffi.Pointer)>() +external int inet6_rth_reverse( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native)>() +external int inet6_rth_segments(ffi.Pointer arg0); + +@ffi.Native() +external int inet6_rth_space(int arg0, int arg1); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt) +>() +external int inet6_rthdr_add( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer inet6_rthdr_getaddr( + ffi.Pointer arg0, + int arg1, +); + +@ffi.Native, ffi.Int)>() +external int inet6_rthdr_getflags(ffi.Pointer arg0, int arg1); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer inet6_rthdr_init( + ffi.Pointer arg0, + int arg1, +); + +@ffi.Native, ffi.UnsignedInt)>() +external int inet6_rthdr_lasthop(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int inet6_rthdr_segments(ffi.Pointer arg0); + +@ffi.Native() +external int inet6_rthdr_space(int arg0, int arg1); + +@ffi.Native)>() +external int inet_addr(ffi.Pointer arg0); + +@ffi.Native, ffi.Pointer)>() +external int inet_aton(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external int inet_lnaof(in_addr arg0); + +@ffi.Native() +external in_addr inet_makeaddr(int arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + __darwin_size_t, + ) +>() +external ffi.Pointer inet_net_ntop( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + int __size, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + __darwin_size_t, + ) +>() +external int inet_net_pton( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __size, +); + +@ffi.Native< + ffi.Pointer Function( + in_addr_t, + ffi.Pointer, + __darwin_size_t, + ) +>() +external ffi.Pointer inet_neta( + int arg0, + ffi.Pointer arg1, + int __size, +); + +@ffi.Native() +external int inet_netof(in_addr arg0); + +@ffi.Native)>() +external int inet_network(ffi.Pointer arg0); + +@ffi.Native< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external int inet_nsap_addr( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __maxlen, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer inet_nsap_ntoa( + int __binlen, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native Function(in_addr)>() +external ffi.Pointer inet_ntoa(in_addr arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + socklen_t, + ) +>() +external ffi.Pointer inet_ntop( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __size, +); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int inet_pton( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native, ffi.Int)>() +external int initgroups(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Pointer Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer initstate( + int arg0, + ffi.Pointer arg1, + int __size, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int innetgr( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Char, + ) +>(symbol: 'ippAddBoolean') +external ffi.Pointer _ippAddBoolean( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int value, +); + +ffi.Pointer ippAddBoolean( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int value, +) { + return _ippAddBoolean(ipp, group.value, name, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'ippAddBooleans') +external ffi.Pointer _ippAddBooleans( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int num_values, + ffi.Pointer values, +); + +ffi.Pointer ippAddBooleans( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int num_values, + ffi.Pointer values, +) { + return _ippAddBooleans(ipp, group.value, name, num_values, values); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddCollection') +external ffi.Pointer _ippAddCollection( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + ffi.Pointer value, +); + +ffi.Pointer ippAddCollection( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + ffi.Pointer value, +) { + return _ippAddCollection(ipp, group.value, name, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>(symbol: 'ippAddCollections') +external ffi.Pointer _ippAddCollections( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int num_values, + ffi.Pointer> values, +); + +ffi.Pointer ippAddCollections( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int num_values, + ffi.Pointer> values, +) { + return _ippAddCollections(ipp, group.value, name, num_values, values); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddDate') +external ffi.Pointer _ippAddDate( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + ffi.Pointer value, +); + +ffi.Pointer ippAddDate( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + ffi.Pointer value, +) { + return _ippAddDate(ipp, group.value, name, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'ippAddInteger') +external ffi.Pointer _ippAddInteger( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + int value, +); + +ffi.Pointer ippAddInteger( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + int value, +) { + return _ippAddInteger(ipp, group.value, value_tag.value, name, value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'ippAddIntegers') +external ffi.Pointer _ippAddIntegers( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + int num_values, + ffi.Pointer values, +); + +ffi.Pointer ippAddIntegers( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + int num_values, + ffi.Pointer values, +) { + return _ippAddIntegers( + ipp, + group.value, + value_tag.value, + name, + num_values, + values, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'ippAddOctetString') +external ffi.Pointer _ippAddOctetString( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + ffi.Pointer data, + int datalen, +); + +ffi.Pointer ippAddOctetString( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + ffi.Pointer data, + int datalen, +) { + return _ippAddOctetString(ipp, group.value, name, data, datalen); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>(symbol: 'ippAddOutOfBand') +external ffi.Pointer _ippAddOutOfBand( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, +); + +ffi.Pointer ippAddOutOfBand( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, +) { + return _ippAddOutOfBand(ipp, group.value, value_tag.value, name); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Int, + ) +>(symbol: 'ippAddRange') +external ffi.Pointer _ippAddRange( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int lower, + int upper, +); + +ffi.Pointer ippAddRange( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int lower, + int upper, +) { + return _ippAddRange(ipp, group.value, name, lower, upper); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddRanges') +external ffi.Pointer _ippAddRanges( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int num_values, + ffi.Pointer lower, + ffi.Pointer upper, +); + +ffi.Pointer ippAddRanges( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int num_values, + ffi.Pointer lower, + ffi.Pointer upper, +) { + return _ippAddRanges(ipp, group.value, name, num_values, lower, upper); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ffi.Int, + ) +>(symbol: 'ippAddResolution') +external ffi.Pointer _ippAddResolution( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int units, + int xres, + int yres, +); + +ffi.Pointer ippAddResolution( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + ipp_res_e units, + int xres, + int yres, +) { + return _ippAddResolution(ipp, group.value, name, units.value, xres, yres); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddResolutions') +external ffi.Pointer _ippAddResolutions( + ffi.Pointer ipp, + int group, + ffi.Pointer name, + int num_values, + int units, + ffi.Pointer xres, + ffi.Pointer yres, +); + +ffi.Pointer ippAddResolutions( + ffi.Pointer ipp, + ipp_tag_e group, + ffi.Pointer name, + int num_values, + ipp_res_e units, + ffi.Pointer xres, + ffi.Pointer yres, +) { + return _ippAddResolutions( + ipp, + group.value, + name, + num_values, + units.value, + xres, + yres, + ); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippAddSeparator(ffi.Pointer ipp); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddString') +external ffi.Pointer _ippAddString( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer value, +); + +ffi.Pointer ippAddString( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer value, +) { + return _ippAddString( + ipp, + group.value, + value_tag.value, + name, + language, + value, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippAddStringf') +external ffi.Pointer _ippAddStringf( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer format, +); + +ffi.Pointer ippAddStringf( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer format, +) { + return _ippAddStringf( + ipp, + group.value, + value_tag.value, + name, + language, + format, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + va_list, + ) +>(symbol: 'ippAddStringfv') +external ffi.Pointer _ippAddStringfv( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer format, + va_list ap, +); + +ffi.Pointer ippAddStringfv( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + ffi.Pointer language, + ffi.Pointer format, + va_list ap, +) { + return _ippAddStringfv( + ipp, + group.value, + value_tag.value, + name, + language, + format, + ap, + ); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer>, + ) +>(symbol: 'ippAddStrings') +external ffi.Pointer _ippAddStrings( + ffi.Pointer ipp, + int group, + int value_tag, + ffi.Pointer name, + int num_values, + ffi.Pointer language, + ffi.Pointer> values, +); + +ffi.Pointer ippAddStrings( + ffi.Pointer ipp, + ipp_tag_e group, + ipp_tag_e value_tag, + ffi.Pointer name, + int num_values, + ffi.Pointer language, + ffi.Pointer> values, +) { + return _ippAddStrings( + ipp, + group.value, + value_tag.value, + name, + num_values, + language, + values, + ); +} + +@ffi.Native< + ffi.Size Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external int ippAttributeString( + ffi.Pointer attr, + ffi.Pointer buffer, + int bufsize, +); + +@ffi.Native, ffi.Int)>() +external int ippContainsInteger(ffi.Pointer attr, int value); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int ippContainsString( + ffi.Pointer attr, + ffi.Pointer value, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external ffi.Pointer ippCopyAttribute( + ffi.Pointer dst, + ffi.Pointer attr, + int quickcopy, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ipp_copycb_t, + ffi.Pointer, + ) +>() +external int ippCopyAttributes( + ffi.Pointer dst, + ffi.Pointer src, + int quickcopy, + ipp_copycb_t cb, + ffi.Pointer context, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippCreateRequestedArray( + ffi.Pointer request, +); + +@ffi.Native)>() +external int ippDateToTime(ffi.Pointer date); + +@ffi.Native)>() +external void ippDelete(ffi.Pointer ipp); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void ippDeleteAttribute( + ffi.Pointer ipp, + ffi.Pointer attr, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Int, + ) +>() +external int ippDeleteValues( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + int count, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer ippEnumString( + ffi.Pointer attrname, + int enumvalue, +); + +@ffi.Native, ffi.Pointer)>() +external int ippEnumValue( + ffi.Pointer attrname, + ffi.Pointer enumstring, +); + +@ffi.Native Function(ffi.Int)>(symbol: 'ippErrorString') +external ffi.Pointer _ippErrorString(int error); + +ffi.Pointer ippErrorString(ipp_status_e error) { + return _ippErrorString(error.value); +} + +@ffi.Native)>(symbol: 'ippErrorValue') +external int _ippErrorValue(ffi.Pointer name); + +ipp_status_e ippErrorValue(ffi.Pointer name) { + return ipp_status_e.fromValue(_ippErrorValue(name)); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'ippFindAttribute') +external ffi.Pointer _ippFindAttribute( + ffi.Pointer ipp, + ffi.Pointer name, + int value_tag, +); + +ffi.Pointer ippFindAttribute( + ffi.Pointer ipp, + ffi.Pointer name, + ipp_tag_e value_tag, +) { + return _ippFindAttribute(ipp, name, value_tag.value); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>(symbol: 'ippFindNextAttribute') +external ffi.Pointer _ippFindNextAttribute( + ffi.Pointer ipp, + ffi.Pointer name, + int value_tag, +); + +ffi.Pointer ippFindNextAttribute( + ffi.Pointer ipp, + ffi.Pointer name, + ipp_tag_e value_tag, +) { + return _ippFindNextAttribute(ipp, name, value_tag.value); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippFirstAttribute(ffi.Pointer ipp); + +@ffi.Native, ffi.Int)>() +external int ippGetBoolean(ffi.Pointer attr, int element); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int) +>() +external ffi.Pointer ippGetCollection( + ffi.Pointer attr, + int element, +); + +@ffi.Native)>() +external int ippGetCount(ffi.Pointer attr); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int) +>() +external ffi.Pointer ippGetDate( + ffi.Pointer attr, + int element, +); + +@ffi.Native)>( + symbol: 'ippGetGroupTag', +) +external int _ippGetGroupTag(ffi.Pointer attr); + +ipp_tag_e ippGetGroupTag(ffi.Pointer attr) { + return ipp_tag_e.fromValue(_ippGetGroupTag(attr)); +} + +@ffi.Native, ffi.Int)>() +external int ippGetInteger(ffi.Pointer attr, int element); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippGetName(ffi.Pointer attr); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external ffi.Pointer ippGetOctetString( + ffi.Pointer attr, + int element, + ffi.Pointer datalen, +); + +@ffi.Native)>(symbol: 'ippGetOperation') +external int _ippGetOperation(ffi.Pointer ipp); + +ipp_op_e ippGetOperation(ffi.Pointer ipp) { + return ipp_op_e.fromValue(_ippGetOperation(ipp)); +} + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int ippGetRange( + ffi.Pointer attr, + int element, + ffi.Pointer upper, +); + +@ffi.Native)>() +external int ippGetRequestId(ffi.Pointer ipp); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ippGetResolution( + ffi.Pointer attr, + int element, + ffi.Pointer yres, + ffi.Pointer units, +); + +@ffi.Native)>(symbol: 'ippGetState') +external int _ippGetState(ffi.Pointer ipp); + +ipp_state_e ippGetState(ffi.Pointer ipp) { + return ipp_state_e.fromValue(_ippGetState(ipp)); +} + +@ffi.Native)>(symbol: 'ippGetStatusCode') +external int _ippGetStatusCode(ffi.Pointer ipp); + +ipp_status_e ippGetStatusCode(ffi.Pointer ipp) { + return ipp_status_e.fromValue(_ippGetStatusCode(ipp)); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) +>() +external ffi.Pointer ippGetString( + ffi.Pointer attr, + int element, + ffi.Pointer> language, +); + +@ffi.Native)>( + symbol: 'ippGetValueTag', +) +external int _ippGetValueTag(ffi.Pointer attr); + +ipp_tag_e ippGetValueTag(ffi.Pointer attr) { + return ipp_tag_e.fromValue(_ippGetValueTag(attr)); +} + +@ffi.Native, ffi.Pointer)>() +external int ippGetVersion(ffi.Pointer ipp, ffi.Pointer minor); + +@ffi.Native)>() +external int ippLength(ffi.Pointer ipp); + +@ffi.Native Function()>() +external ffi.Pointer ippNew(); + +@ffi.Native Function(ffi.Int)>(symbol: 'ippNewRequest') +external ffi.Pointer _ippNewRequest(int op); + +ffi.Pointer ippNewRequest(ipp_op_e op) { + return _ippNewRequest(op.value); +} + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippNewResponse(ffi.Pointer request); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ippNextAttribute(ffi.Pointer ipp); + +@ffi.Native Function(ffi.Int)>(symbol: 'ippOpString') +external ffi.Pointer _ippOpString(int op); + +ffi.Pointer ippOpString(ipp_op_e op) { + return _ippOpString(op.value); +} + +@ffi.Native)>(symbol: 'ippOpValue') +external int _ippOpValue(ffi.Pointer name); + +ipp_op_e ippOpValue(ffi.Pointer name) { + return ipp_op_e.fromValue(_ippOpValue(name)); +} + +@ffi.Native() +external int ippPort(); + +@ffi.Native, ffi.Pointer)>( + symbol: 'ippRead', +) +external int _ippRead(ffi.Pointer http, ffi.Pointer ipp); + +ipp_state_e ippRead(ffi.Pointer http, ffi.Pointer ipp) { + return ipp_state_e.fromValue(_ippRead(http, ipp)); +} + +@ffi.Native)>( + symbol: 'ippReadFile', +) +external int _ippReadFile(int fd, ffi.Pointer ipp); + +ipp_state_e ippReadFile(int fd, ffi.Pointer ipp) { + return ipp_state_e.fromValue(_ippReadFile(fd, ipp)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ipp_iocb_t, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippReadIO') +external int _ippReadIO( + ffi.Pointer src, + ipp_iocb_t cb, + int blocking, + ffi.Pointer parent, + ffi.Pointer ipp, +); + +ipp_state_e ippReadIO( + ffi.Pointer src, + ipp_iocb_t cb, + int blocking, + ffi.Pointer parent, + ffi.Pointer ipp, +) { + return ipp_state_e.fromValue(_ippReadIO(src, cb, blocking, parent, ipp)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Int, + ) +>() +external int ippSetBoolean( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + int boolvalue, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ) +>() +external int ippSetCollection( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer colvalue, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ) +>() +external int ippSetDate( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer datevalue, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>(symbol: 'ippSetGroupTag') +external int _ippSetGroupTag( + ffi.Pointer ipp, + ffi.Pointer> attr, + int group_tag, +); + +int ippSetGroupTag( + ffi.Pointer ipp, + ffi.Pointer> attr, + ipp_tag_e group_tag, +) { + return _ippSetGroupTag(ipp, attr, group_tag.value); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Int, + ) +>() +external int ippSetInteger( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + int intvalue, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int ippSetName( + ffi.Pointer ipp, + ffi.Pointer> attr, + ffi.Pointer name, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>() +external int ippSetOctetString( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer data, + int datalen, +); + +@ffi.Native, ffi.Int)>( + symbol: 'ippSetOperation', +) +external int _ippSetOperation(ffi.Pointer ipp, int op); + +int ippSetOperation(ffi.Pointer ipp, ipp_op_e op) { + return _ippSetOperation(ipp, op.value); +} + +@ffi.Native() +external void ippSetPort(int p); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Int, + ffi.Int, + ) +>() +external int ippSetRange( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + int lowervalue, + int uppervalue, +); + +@ffi.Native, ffi.Int)>() +external int ippSetRequestId(ffi.Pointer ipp, int request_id); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.UnsignedInt, + ffi.Int, + ffi.Int, + ) +>(symbol: 'ippSetResolution') +external int _ippSetResolution( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + int unitsvalue, + int xresvalue, + int yresvalue, +); + +int ippSetResolution( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ipp_res_e unitsvalue, + int xresvalue, + int yresvalue, +) { + return _ippSetResolution( + ipp, + attr, + element, + unitsvalue.value, + xresvalue, + yresvalue, + ); +} + +@ffi.Native, ffi.Int)>( + symbol: 'ippSetState', +) +external int _ippSetState(ffi.Pointer ipp, int state); + +int ippSetState(ffi.Pointer ipp, ipp_state_e state) { + return _ippSetState(ipp, state.value); +} + +@ffi.Native, ffi.Int)>( + symbol: 'ippSetStatusCode', +) +external int _ippSetStatusCode(ffi.Pointer ipp, int status); + +int ippSetStatusCode(ffi.Pointer ipp, ipp_status_e status) { + return _ippSetStatusCode(ipp, status.value); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ) +>() +external int ippSetString( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer strvalue, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ) +>() +external int ippSetStringf( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer format, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + va_list, + ) +>() +external int ippSetStringfv( + ffi.Pointer ipp, + ffi.Pointer> attr, + int element, + ffi.Pointer format, + va_list ap, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>(symbol: 'ippSetValueTag') +external int _ippSetValueTag( + ffi.Pointer ipp, + ffi.Pointer> attr, + int value_tag, +); + +int ippSetValueTag( + ffi.Pointer ipp, + ffi.Pointer> attr, + ipp_tag_e value_tag, +) { + return _ippSetValueTag(ipp, attr, value_tag.value); +} + +@ffi.Native, ffi.Int, ffi.Int)>() +external int ippSetVersion(ffi.Pointer ipp, int major, int minor); + +@ffi.Native Function(ffi.Int)>(symbol: 'ippStateString') +external ffi.Pointer _ippStateString(int state); + +ffi.Pointer ippStateString(ipp_state_e state) { + return _ippStateString(state.value); +} + +@ffi.Native Function(ffi.Int)>(symbol: 'ippTagString') +external ffi.Pointer _ippTagString(int tag); + +ffi.Pointer ippTagString(ipp_tag_e tag) { + return _ippTagString(tag.value); +} + +@ffi.Native)>(symbol: 'ippTagValue') +external int _ippTagValue(ffi.Pointer name); + +ipp_tag_e ippTagValue(ffi.Pointer name) { + return ipp_tag_e.fromValue(_ippTagValue(name)); +} + +@ffi.Native Function(time_t)>() +external ffi.Pointer ippTimeToDate(int t); + +@ffi.Native)>() +external int ippValidateAttribute(ffi.Pointer attr); + +@ffi.Native)>() +external int ippValidateAttributes(ffi.Pointer ipp); + +@ffi.Native, ffi.Pointer)>( + symbol: 'ippWrite', +) +external int _ippWrite(ffi.Pointer http, ffi.Pointer ipp); + +ipp_state_e ippWrite(ffi.Pointer http, ffi.Pointer ipp) { + return ipp_state_e.fromValue(_ippWrite(http, ipp)); +} + +@ffi.Native)>( + symbol: 'ippWriteFile', +) +external int _ippWriteFile(int fd, ffi.Pointer ipp); + +ipp_state_e ippWriteFile(int fd, ffi.Pointer ipp) { + return ipp_state_e.fromValue(_ippWriteFile(fd, ipp)); +} + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ipp_iocb_t, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'ippWriteIO') +external int _ippWriteIO( + ffi.Pointer dst, + ipp_iocb_t cb, + int blocking, + ffi.Pointer parent, + ffi.Pointer ipp, +); + +ipp_state_e ippWriteIO( + ffi.Pointer dst, + ipp_iocb_t cb, + int blocking, + ffi.Pointer parent, + ffi.Pointer ipp, +) { + return ipp_state_e.fromValue(_ippWriteIO(dst, cb, blocking, parent, ipp)); +} + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Int Function( + ffi.UnsignedLong, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int iruserok( + int arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int iruserok_sa( + ffi.Pointer arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native() +external int isatty(int arg0); + +@ffi.Native() +external int issetugid(); + +@ffi.Native() +external double j0(double arg0); + +@ffi.Native() +external double j1(double arg0); + +@ffi.Native() +external double jn(int arg0, double arg1); + +@ffi.Native)>() +external int jrand48(ffi.Pointer arg0); + +@ffi.Native() +external final CFStringRef kAERemoteProcessNameKey; + +@ffi.Native() +external final CFStringRef kAERemoteProcessProcessIDKey; + +@ffi.Native() +external final CFStringRef kAERemoteProcessURLKey; + +@ffi.Native() +external final CFStringRef kAERemoteProcessUserIDKey; + +@ffi.Native() +external CFStringRef kAXAttachmentTextAttribute; + +@ffi.Native() +external CFStringRef kAXAutocorrectedTextAttribute; + +@ffi.Native() +external CFStringRef kAXBackgroundColorTextAttribute; + +@ffi.Native() +external CFStringRef kAXFontFamilyKey; + +@ffi.Native() +external CFStringRef kAXFontNameKey; + +@ffi.Native() +external CFStringRef kAXFontSizeKey; + +@ffi.Native() +external CFStringRef kAXFontTextAttribute; + +@ffi.Native() +external CFStringRef kAXForegoundColorTextAttribute; + +@ffi.Native() +external CFStringRef kAXForegroundColorTextAttribute; + +@ffi.Native() +external CFStringRef kAXLinkTextAttribute; + +@ffi.Native() +external CFStringRef kAXListItemIndexTextAttribute; + +@ffi.Native() +external CFStringRef kAXListItemLevelTextAttribute; + +@ffi.Native() +external CFStringRef kAXListItemPrefixTextAttribute; + +@ffi.Native() +external CFStringRef kAXMarkedMisspelledTextAttribute; + +@ffi.Native() +external CFStringRef kAXMisspelledTextAttribute; + +@ffi.Native() +external CFStringRef kAXNaturalLanguageTextAttribute; + +@ffi.Native() +external CFStringRef kAXReplacementStringTextAttribute; + +@ffi.Native() +external CFStringRef kAXShadowTextAttribute; + +@ffi.Native() +external CFStringRef kAXStrikethroughColorTextAttribute; + +@ffi.Native() +external CFStringRef kAXStrikethroughTextAttribute; + +@ffi.Native() +external CFStringRef kAXSuperscriptTextAttribute; + +@ffi.Native() +external CFStringRef kAXTrustedCheckOptionPrompt; + +@ffi.Native() +external CFStringRef kAXUnderlineColorTextAttribute; + +@ffi.Native() +external CFStringRef kAXUnderlineTextAttribute; + +@ffi.Native() +external CFStringRef kAXVisibleNameKey; + +@ffi.Native() +external final double kCFAbsoluteTimeIntervalSince1904; + +@ffi.Native() +external final double kCFAbsoluteTimeIntervalSince1970; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorDefault; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorMalloc; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorMallocZone; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorNull; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorSystemDefault; + +@ffi.Native() +external final CFAllocatorRef kCFAllocatorUseContext; + +@ffi.Native() +external final CFCalendarIdentifier kCFBanglaCalendar; + +@ffi.Native() +external final CFBooleanRef kCFBooleanFalse; + +@ffi.Native() +external final CFBooleanRef kCFBooleanTrue; + +@ffi.Native() +external final CFCalendarIdentifier kCFBuddhistCalendar; + +@ffi.Native() +external final CFStringRef kCFBundleDevelopmentRegionKey; + +@ffi.Native() +external final CFStringRef kCFBundleExecutableKey; + +@ffi.Native() +external final CFStringRef kCFBundleIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFBundleInfoDictionaryVersionKey; + +@ffi.Native() +external final CFStringRef kCFBundleLocalizationsKey; + +@ffi.Native() +external final CFStringRef kCFBundleNameKey; + +@ffi.Native() +external final CFStringRef kCFBundleVersionKey; + +@ffi.Native() +external final CFCalendarIdentifier kCFChineseCalendar; + +@ffi.Native() +external final CFBagCallBacks kCFCopyStringBagCallBacks; + +@ffi.Native() +external final CFDictionaryKeyCallBacks kCFCopyStringDictionaryKeyCallBacks; + +@ffi.Native() +external final CFSetCallBacks kCFCopyStringSetCallBacks; + +@ffi.Native() +external double kCFCoreFoundationVersionNumber; + +@ffi.Native() +external CFStringRef kCFDNSServiceFailureKey; + +@ffi.Native() +external final CFCalendarIdentifier kCFDangiCalendar; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterAMSymbol; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterCalendar; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterCalendarName; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterDefaultDate; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterDefaultFormat; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterDoesRelativeDateFormattingKey; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterEraSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterGregorianStartDate; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterIsLenient; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterLongEraSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterPMSymbol; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterQuarterSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortQuarterSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortStandaloneMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortStandaloneQuarterSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortStandaloneWeekdaySymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterShortWeekdaySymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterStandaloneMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterStandaloneQuarterSymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterStandaloneWeekdaySymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterTimeZone; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterTwoDigitStartDate; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterVeryShortMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey +kCFDateFormatterVeryShortStandaloneMonthSymbols; + +@ffi.Native() +external final CFDateFormatterKey +kCFDateFormatterVeryShortStandaloneWeekdaySymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterVeryShortWeekdaySymbols; + +@ffi.Native() +external final CFDateFormatterKey kCFDateFormatterWeekdaySymbols; + +@ffi.Native() +external final CFStringRef kCFErrorDescriptionKey; + +@ffi.Native() +external CFStringRef kCFErrorDomainCFNetwork; + +@ffi.Native() +external final CFStringRef kCFErrorDomainCGImageMetadata; + +@ffi.Native() +external final CFErrorDomain kCFErrorDomainCocoa; + +@ffi.Native() +external final CFErrorDomain kCFErrorDomainMach; + +@ffi.Native() +external final CFErrorDomain kCFErrorDomainOSStatus; + +@ffi.Native() +external final CFErrorDomain kCFErrorDomainPOSIX; + +@ffi.Native() +external CFStringRef kCFErrorDomainWinSock; + +@ffi.Native() +external final CFStringRef kCFErrorFilePathKey; + +@ffi.Native() +external final CFStringRef kCFErrorLocalizedDescriptionKey; + +@ffi.Native() +external final CFStringRef kCFErrorLocalizedFailureKey; + +@ffi.Native() +external final CFStringRef kCFErrorLocalizedFailureReasonKey; + +@ffi.Native() +external final CFStringRef kCFErrorLocalizedRecoverySuggestionKey; + +@ffi.Native() +external final CFStringRef kCFErrorURLKey; + +@ffi.Native() +external final CFStringRef kCFErrorUnderlyingErrorKey; + +@ffi.Native() +external CFStringRef kCFFTPResourceGroup; + +@ffi.Native() +external CFStringRef kCFFTPResourceLink; + +@ffi.Native() +external CFStringRef kCFFTPResourceModDate; + +@ffi.Native() +external CFStringRef kCFFTPResourceMode; + +@ffi.Native() +external CFStringRef kCFFTPResourceName; + +@ffi.Native() +external CFStringRef kCFFTPResourceOwner; + +@ffi.Native() +external CFStringRef kCFFTPResourceSize; + +@ffi.Native() +external CFStringRef kCFFTPResourceType; + +@ffi.Native() +external CFStringRef kCFFTPStatusCodeKey; + +@ffi.Native() +external CFStringRef kCFGetAddrInfoFailureKey; + +@ffi.Native() +external final CFCalendarIdentifier kCFGregorianCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFGujaratiCalendar; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationAccountDomain; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationPassword; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeBasic; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeDigest; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeKerberos; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeNTLM; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeNegotiate; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeNegotiate2; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationSchemeXMobileMeAuthToken; + +@ffi.Native() +external CFStringRef kCFHTTPAuthenticationUsername; + +@ffi.Native() +external CFStringRef kCFHTTPVersion1_0; + +@ffi.Native() +external CFStringRef kCFHTTPVersion1_1; + +@ffi.Native() +external CFStringRef kCFHTTPVersion2_0; + +@ffi.Native() +external CFStringRef kCFHTTPVersion3_0; + +@ffi.Native() +external final CFCalendarIdentifier kCFHebrewCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFISO8601Calendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFIndianCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFIslamicCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFIslamicCivilCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFIslamicTabularCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFJapaneseCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFKannadaCalendar; + +@ffi.Native() +external final CFLocaleKey kCFLocaleAlternateQuotationBeginDelimiterKey; + +@ffi.Native() +external final CFLocaleKey kCFLocaleAlternateQuotationEndDelimiterKey; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCalendar; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCalendarIdentifier; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCollationIdentifier; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCollatorIdentifier; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCountryCode; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCurrencyCode; + +@ffi.Native() +external final CFLocaleKey kCFLocaleCurrencySymbol; + +@ffi.Native() +external final CFNotificationName kCFLocaleCurrentLocaleDidChangeNotification; + +@ffi.Native() +external final CFLocaleKey kCFLocaleDecimalSeparator; + +@ffi.Native() +external final CFLocaleKey kCFLocaleExemplarCharacterSet; + +@ffi.Native() +external final CFLocaleKey kCFLocaleGroupingSeparator; + +@ffi.Native() +external final CFLocaleKey kCFLocaleIdentifier; + +@ffi.Native() +external final CFLocaleKey kCFLocaleLanguageCode; + +@ffi.Native() +external final CFLocaleKey kCFLocaleMeasurementSystem; + +@ffi.Native() +external final CFLocaleKey kCFLocaleQuotationBeginDelimiterKey; + +@ffi.Native() +external final CFLocaleKey kCFLocaleQuotationEndDelimiterKey; + +@ffi.Native() +external final CFLocaleKey kCFLocaleScriptCode; + +@ffi.Native() +external final CFLocaleKey kCFLocaleUsesMetricSystem; + +@ffi.Native() +external final CFLocaleKey kCFLocaleVariantCode; + +@ffi.Native() +external final CFCalendarIdentifier kCFMalayalamCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFMarathiCalendar; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesExceptionsList; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesExcludeSimpleHostnames; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesFTPEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesFTPPassive; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesFTPPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesFTPProxy; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesGopherEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesGopherPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesGopherProxy; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPProxy; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPSEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPSPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesHTTPSProxy; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesProxyAutoConfigEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesProxyAutoConfigJavaScript; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesProxyAutoConfigURLString; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesProxyAutoDiscoveryEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesRTSPEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesRTSPPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesRTSPProxy; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesSOCKSEnable; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesSOCKSPort; + +@ffi.Native() +external CFStringRef kCFNetworkProxiesSOCKSProxy; + +@ffi.Native() +external final CFNullRef kCFNull; + +@ffi.Native() +external final CFNumberFormatterKey +kCFNumberFormatterAlwaysShowDecimalSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterCurrencyCode; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterCurrencyDecimalSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterCurrencyGroupingSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterCurrencySymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterDecimalSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterDefaultFormat; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterExponentSymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterFormatWidth; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterGroupingSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterGroupingSize; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterInfinitySymbol; + +@ffi.Native() +external final CFNumberFormatterKey +kCFNumberFormatterInternationalCurrencySymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterIsLenient; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMaxFractionDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMaxIntegerDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMaxSignificantDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMinFractionDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMinGroupingDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMinIntegerDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMinSignificantDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMinusSign; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterMultiplier; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterNaNSymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterNegativePrefix; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterNegativeSuffix; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPaddingCharacter; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPaddingPosition; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPerMillSymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPercentSymbol; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPlusSign; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPositivePrefix; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterPositiveSuffix; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterRoundingIncrement; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterRoundingMode; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterSecondaryGroupingSize; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterUseGroupingSeparator; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterUseSignificantDigits; + +@ffi.Native() +external final CFNumberFormatterKey kCFNumberFormatterZeroSymbol; + +@ffi.Native() +external final CFNumberRef kCFNumberNaN; + +@ffi.Native() +external final CFNumberRef kCFNumberNegativeInfinity; + +@ffi.Native() +external final CFNumberRef kCFNumberPositiveInfinity; + +@ffi.Native() +external final CFCalendarIdentifier kCFOdiaCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFPersianCalendar; + +@ffi.Native() +external final CFStringRef kCFPlugInDynamicRegisterFunctionKey; + +@ffi.Native() +external final CFStringRef kCFPlugInDynamicRegistrationKey; + +@ffi.Native() +external final CFStringRef kCFPlugInFactoriesKey; + +@ffi.Native() +external final CFStringRef kCFPlugInTypesKey; + +@ffi.Native() +external final CFStringRef kCFPlugInUnloadFunctionKey; + +@ffi.Native() +external CFStringRef kCFPreferencesAnyApplication; + +@ffi.Native() +external CFStringRef kCFPreferencesAnyHost; + +@ffi.Native() +external CFStringRef kCFPreferencesAnyUser; + +@ffi.Native() +external CFStringRef kCFPreferencesCurrentApplication; + +@ffi.Native() +external CFStringRef kCFPreferencesCurrentHost; + +@ffi.Native() +external CFStringRef kCFPreferencesCurrentUser; + +@ffi.Native() +external CFStringRef kCFProxyAutoConfigurationHTTPResponseKey; + +@ffi.Native() +external CFStringRef kCFProxyAutoConfigurationJavaScriptKey; + +@ffi.Native() +external CFStringRef kCFProxyAutoConfigurationURLKey; + +@ffi.Native() +external CFStringRef kCFProxyHostNameKey; + +@ffi.Native() +external CFStringRef kCFProxyPasswordKey; + +@ffi.Native() +external CFStringRef kCFProxyPortNumberKey; + +@ffi.Native() +external CFStringRef kCFProxyTypeAutoConfigurationJavaScript; + +@ffi.Native() +external CFStringRef kCFProxyTypeAutoConfigurationURL; + +@ffi.Native() +external CFStringRef kCFProxyTypeFTP; + +@ffi.Native() +external CFStringRef kCFProxyTypeHTTP; + +@ffi.Native() +external CFStringRef kCFProxyTypeHTTPS; + +@ffi.Native() +external CFStringRef kCFProxyTypeKey; + +@ffi.Native() +external CFStringRef kCFProxyTypeNone; + +@ffi.Native() +external CFStringRef kCFProxyTypeSOCKS; + +@ffi.Native() +external CFStringRef kCFProxyUsernameKey; + +@ffi.Native() +external final CFCalendarIdentifier kCFRepublicOfChinaCalendar; + +@ffi.Native() +external final CFRunLoopMode kCFRunLoopCommonModes; + +@ffi.Native() +external final CFRunLoopMode kCFRunLoopDefaultMode; + +@ffi.Native() +external CFStringRef kCFSOCKSNegotiationMethodKey; + +@ffi.Native() +external CFStringRef kCFSOCKSStatusCodeKey; + +@ffi.Native() +external CFStringRef kCFSOCKSVersionKey; + +@ffi.Native() +external final CFStringRef kCFSocketCommandKey; + +@ffi.Native() +external final CFStringRef kCFSocketErrorKey; + +@ffi.Native() +external final CFStringRef kCFSocketNameKey; + +@ffi.Native() +external final CFStringRef kCFSocketRegisterCommand; + +@ffi.Native() +external final CFStringRef kCFSocketResultKey; + +@ffi.Native() +external final CFStringRef kCFSocketRetrieveCommand; + +@ffi.Native() +external final CFStringRef kCFSocketValueKey; + +@ffi.Native() +external final int kCFStreamErrorDomainFTP; + +@ffi.Native() +external final int kCFStreamErrorDomainHTTP; + +@ffi.Native() +external final int kCFStreamErrorDomainMach; + +@ffi.Native() +external final int kCFStreamErrorDomainNetDB; + +@ffi.Native() +external final int kCFStreamErrorDomainNetServices; + +@ffi.Native() +external final int kCFStreamErrorDomainSOCKS; + +@ffi.Native() +external final int kCFStreamErrorDomainSSL; + +@ffi.Native() +external final int kCFStreamErrorDomainSystemConfiguration; + +@ffi.Native() +external final int kCFStreamErrorDomainWinSock; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceType; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeAVStreaming; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeBackground; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeCallSignaling; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeResponsiveAV; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeResponsiveData; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeVideo; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeVoIP; + +@ffi.Native() +external CFStringRef kCFStreamNetworkServiceTypeVoice; + +@ffi.Native() +external CFStringRef kCFStreamPropertyAllowConstrainedNetworkAccess; + +@ffi.Native() +external CFStringRef kCFStreamPropertyAllowExpensiveNetworkAccess; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertyAppendToFile; + +@ffi.Native() +external CFStringRef kCFStreamPropertyConnectionIsCellular; + +@ffi.Native() +external CFStringRef kCFStreamPropertyConnectionIsExpensive; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertyDataWritten; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPAttemptPersistentConnection; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPFetchResourceInfo; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPFileTransferOffset; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPPassword; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPProxy; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPProxyHost; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPProxyPassword; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPProxyPort; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPProxyUser; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPResourceSize; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPUsePassiveMode; + +@ffi.Native() +external CFStringRef kCFStreamPropertyFTPUserName; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertyFileCurrentOffset; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPAttemptPersistentConnection; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPFinalRequest; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPFinalURL; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPProxy; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPProxyHost; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPProxyPort; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPRequestBytesWrittenCount; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPResponseHeader; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPSProxyHost; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPSProxyPort; + +@ffi.Native() +external CFStringRef kCFStreamPropertyHTTPShouldAutoredirect; + +@ffi.Native() +external CFStringRef kCFStreamPropertyNoCellular; + +@ffi.Native() +external CFStringRef kCFStreamPropertyProxyLocalBypass; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSPassword; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSProxy; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSProxyHost; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSProxyPort; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSUser; + +@ffi.Native() +external CFStringRef kCFStreamPropertySOCKSVersion; + +@ffi.Native() +external CFStringRef kCFStreamPropertySSLContext; + +@ffi.Native() +external CFStringRef kCFStreamPropertySSLPeerCertificates; + +@ffi.Native() +external CFStringRef kCFStreamPropertySSLPeerTrust; + +@ffi.Native() +external CFStringRef kCFStreamPropertySSLSettings; + +@ffi.Native() +external CFStringRef kCFStreamPropertyShouldCloseNativeSocket; + +@ffi.Native() +external CFStringRef kCFStreamPropertySocketExtendedBackgroundIdleMode; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertySocketNativeHandle; + +@ffi.Native() +external CFStringRef kCFStreamPropertySocketRemoteHost; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertySocketRemoteHostName; + +@ffi.Native() +external CFStringRef kCFStreamPropertySocketRemoteNetService; + +@ffi.Native() +external final CFStreamPropertyKey kCFStreamPropertySocketRemotePortNumber; + +@ffi.Native() +external CFStringRef kCFStreamPropertySocketSecurityLevel; + +@ffi.Native() +external CFStringRef kCFStreamSSLAllowsAnyRoot; + +@ffi.Native() +external CFStringRef kCFStreamSSLAllowsExpiredCertificates; + +@ffi.Native() +external CFStringRef kCFStreamSSLAllowsExpiredRoots; + +@ffi.Native() +external CFStringRef kCFStreamSSLCertificates; + +@ffi.Native() +external CFStringRef kCFStreamSSLIsServer; + +@ffi.Native() +external CFStringRef kCFStreamSSLLevel; + +@ffi.Native() +external CFStringRef kCFStreamSSLPeerName; + +@ffi.Native() +external CFStringRef kCFStreamSSLValidatesCertificateChain; + +@ffi.Native() +external CFStringRef kCFStreamSocketSOCKSVersion4; + +@ffi.Native() +external CFStringRef kCFStreamSocketSOCKSVersion5; + +@ffi.Native() +external CFStringRef kCFStreamSocketSecurityLevelNegotiatedSSL; + +@ffi.Native() +external CFStringRef kCFStreamSocketSecurityLevelNone; + +@ffi.Native() +external CFStringRef kCFStreamSocketSecurityLevelSSLv2; + +@ffi.Native() +external CFStringRef kCFStreamSocketSecurityLevelSSLv3; + +@ffi.Native() +external CFStringRef kCFStreamSocketSecurityLevelTLSv1; + +@ffi.Native() +external final CFBinaryHeapCallBacks kCFStringBinaryHeapCallBacks; + +@ffi.Native() +external final CFStringRef kCFStringTransformFullwidthHalfwidth; + +@ffi.Native() +external final CFStringRef kCFStringTransformHiraganaKatakana; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinArabic; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinCyrillic; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinGreek; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinHangul; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinHebrew; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinHiragana; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinKatakana; + +@ffi.Native() +external final CFStringRef kCFStringTransformLatinThai; + +@ffi.Native() +external final CFStringRef kCFStringTransformMandarinLatin; + +@ffi.Native() +external final CFStringRef kCFStringTransformStripCombiningMarks; + +@ffi.Native() +external final CFStringRef kCFStringTransformStripDiacritics; + +@ffi.Native() +external final CFStringRef kCFStringTransformToLatin; + +@ffi.Native() +external final CFStringRef kCFStringTransformToUnicodeName; + +@ffi.Native() +external final CFStringRef kCFStringTransformToXMLHex; + +@ffi.Native() +external final CFCalendarIdentifier kCFTamilCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFTeluguCalendar; + +@ffi.Native() +external final CFNotificationName +kCFTimeZoneSystemTimeZoneDidChangeNotification; + +@ffi.Native() +external final CFArrayCallBacks kCFTypeArrayCallBacks; + +@ffi.Native() +external final CFBagCallBacks kCFTypeBagCallBacks; + +@ffi.Native() +external final CFDictionaryKeyCallBacks kCFTypeDictionaryKeyCallBacks; + +@ffi.Native() +external final CFDictionaryValueCallBacks kCFTypeDictionaryValueCallBacks; + +@ffi.Native() +external final CFSetCallBacks kCFTypeSetCallBacks; + +@ffi.Native() +external final CFStringRef kCFURLAddedToDirectoryDateKey; + +@ffi.Native() +external final CFStringRef kCFURLApplicationIsScriptableKey; + +@ffi.Native() +external final CFStringRef kCFURLAttributeModificationDateKey; + +@ffi.Native() +external final CFStringRef kCFURLCanonicalPathKey; + +@ffi.Native() +external final CFStringRef kCFURLContentAccessDateKey; + +@ffi.Native() +external final CFStringRef kCFURLContentModificationDateKey; + +@ffi.Native() +external final CFStringRef kCFURLCreationDateKey; + +@ffi.Native() +external final CFStringRef kCFURLCustomIconKey; + +@ffi.Native() +external final CFStringRef kCFURLDirectoryEntryCountKey; + +@ffi.Native() +external final CFStringRef kCFURLDocumentIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLEffectiveIconKey; + +@ffi.Native() +external CFStringRef kCFURLErrorFailingURLErrorKey; + +@ffi.Native() +external CFStringRef kCFURLErrorFailingURLStringErrorKey; + +@ffi.Native() +external final CFStringRef kCFURLFileAllocatedSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLFileContentIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLFileDirectoryContents; + +@ffi.Native() +external final CFStringRef kCFURLFileExists; + +@ffi.Native() +external final CFStringRef kCFURLFileIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLFileLastModificationTime; + +@ffi.Native() +external final CFStringRef kCFURLFileLength; + +@ffi.Native() +external final CFStringRef kCFURLFileOwnerID; + +@ffi.Native() +external final CFStringRef kCFURLFilePOSIXMode; + +@ffi.Native() +external final CFStringRef kCFURLFileProtectionComplete; + +@ffi.Native() +external final CFStringRef kCFURLFileProtectionCompleteUnlessOpen; + +@ffi.Native() +external final CFStringRef +kCFURLFileProtectionCompleteUntilFirstUserAuthentication; + +@ffi.Native() +external final CFStringRef kCFURLFileProtectionCompleteWhenUserInactive; + +@ffi.Native() +external final CFStringRef kCFURLFileProtectionKey; + +@ffi.Native() +external final CFStringRef kCFURLFileProtectionNone; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeBlockSpecial; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeCharacterSpecial; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeDirectory; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeKey; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeNamedPipe; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeRegular; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeSocket; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeSymbolicLink; + +@ffi.Native() +external final CFStringRef kCFURLFileResourceTypeUnknown; + +@ffi.Native() +external final CFStringRef kCFURLFileSecurityKey; + +@ffi.Native() +external final CFStringRef kCFURLFileSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLGenerationIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLHTTPStatusCode; + +@ffi.Native() +external final CFStringRef kCFURLHTTPStatusLine; + +@ffi.Native() +external final CFStringRef kCFURLHasHiddenExtensionKey; + +@ffi.Native() +external final CFStringRef kCFURLIsAliasFileKey; + +@ffi.Native() +external final CFStringRef kCFURLIsApplicationKey; + +@ffi.Native() +external final CFStringRef kCFURLIsDirectoryKey; + +@ffi.Native() +external final CFStringRef kCFURLIsExcludedFromBackupKey; + +@ffi.Native() +external final CFStringRef kCFURLIsExecutableKey; + +@ffi.Native() +external final CFStringRef kCFURLIsHiddenKey; + +@ffi.Native() +external final CFStringRef kCFURLIsMountTriggerKey; + +@ffi.Native() +external final CFStringRef kCFURLIsPackageKey; + +@ffi.Native() +external final CFStringRef kCFURLIsPurgeableKey; + +@ffi.Native() +external final CFStringRef kCFURLIsReadableKey; + +@ffi.Native() +external final CFStringRef kCFURLIsRegularFileKey; + +@ffi.Native() +external final CFStringRef kCFURLIsSparseKey; + +@ffi.Native() +external final CFStringRef kCFURLIsSymbolicLinkKey; + +@ffi.Native() +external final CFStringRef kCFURLIsSystemImmutableKey; + +@ffi.Native() +external final CFStringRef kCFURLIsUbiquitousItemKey; + +@ffi.Native() +external final CFStringRef kCFURLIsUserImmutableKey; + +@ffi.Native() +external final CFStringRef kCFURLIsVolumeKey; + +@ffi.Native() +external final CFStringRef kCFURLIsWritableKey; + +@ffi.Native() +external final CFStringRef kCFURLKeysOfUnsetValuesKey; + +@ffi.Native() +external final CFStringRef kCFURLLabelColorKey; + +@ffi.Native() +external final CFStringRef kCFURLLabelNumberKey; + +@ffi.Native() +external final CFStringRef kCFURLLinkCountKey; + +@ffi.Native() +external final CFStringRef kCFURLLocalizedLabelKey; + +@ffi.Native() +external final CFStringRef kCFURLLocalizedNameKey; + +@ffi.Native() +external final CFStringRef kCFURLLocalizedTypeDescriptionKey; + +@ffi.Native() +external final CFStringRef kCFURLMayHaveExtendedAttributesKey; + +@ffi.Native() +external final CFStringRef kCFURLMayShareFileContentKey; + +@ffi.Native() +external final CFStringRef kCFURLNameKey; + +@ffi.Native() +external final CFStringRef kCFURLParentDirectoryURLKey; + +@ffi.Native() +external final CFStringRef kCFURLPathKey; + +@ffi.Native() +external final CFStringRef kCFURLPreferredIOBlockSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLQuarantinePropertiesKey; + +@ffi.Native() +external final CFStringRef kCFURLTagNamesKey; + +@ffi.Native() +external final CFStringRef kCFURLTotalFileAllocatedSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLTotalFileSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLTypeIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemDownloadingErrorKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemDownloadingStatusCurrent; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemDownloadingStatusDownloaded; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemDownloadingStatusKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemDownloadingStatusNotDownloaded; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemHasUnresolvedConflictsKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsDownloadedKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsDownloadingKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsExcludedFromSyncKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsSyncPausedKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsUploadedKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemIsUploadingKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemPercentDownloadedKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemPercentUploadedKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemSupportedSyncControlsKey; + +@ffi.Native() +external final CFStringRef kCFURLUbiquitousItemUploadingErrorKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeAvailableCapacityForImportantUsageKey; + +@ffi.Native() +external final CFStringRef +kCFURLVolumeAvailableCapacityForOpportunisticUsageKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeAvailableCapacityKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeCreationDateKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIdentifierKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsAutomountedKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsBrowsableKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsEjectableKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsEncryptedKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsInternalKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsJournalingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsLocalKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsReadOnlyKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsRemovableKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeIsRootFileSystemKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeLocalizedFormatDescriptionKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeLocalizedNameKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeMaximumFileSizeKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeMountFromLocationKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeNameKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeResourceCountKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSubtypeKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsAccessPermissionsKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsAdvisoryFileLockingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsCasePreservedNamesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsCaseSensitiveNamesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsCompressionKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsExclusiveRenamingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsExtendedSecurityKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsFileCloningKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsFileProtectionKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsHardLinksKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsImmutableFilesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsJournalingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsPersistentIDsKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsRenamingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsRootDirectoryDatesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsSparseFilesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsSwapRenamingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsSymbolicLinksKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsVolumeSizesKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeSupportsZeroRunsKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeTotalCapacityKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeTypeNameKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeURLForRemountingKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeURLKey; + +@ffi.Native() +external final CFStringRef kCFURLVolumeUUIDStringKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationAlertHeaderKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationAlertMessageKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationAlertTopMostKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationAlternateButtonTitleKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationCheckBoxTitlesKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationDefaultButtonTitleKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationIconURLKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationKeyboardTypesKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationLocalizationURLKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationOtherButtonTitleKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationPopUpSelectionKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationPopUpTitlesKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationProgressIndicatorValueKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationSoundURLKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationTextFieldTitlesKey; + +@ffi.Native() +external final CFStringRef kCFUserNotificationTextFieldValuesKey; + +@ffi.Native() +external final CFCalendarIdentifier kCFVietnameseCalendar; + +@ffi.Native() +external final CFCalendarIdentifier kCFVikramCalendar; + +@ffi.Native() +external final CFStringRef kCFXMLTreeErrorDescription; + +@ffi.Native() +external final CFStringRef kCFXMLTreeErrorLineNumber; + +@ffi.Native() +external final CFStringRef kCFXMLTreeErrorLocation; + +@ffi.Native() +external final CFStringRef kCFXMLTreeErrorStatusCode; + +@ffi.Native() +external CFStringRef kCGAdaptiveMaximumBitDepth; + +@ffi.Native() +external CFStringRef kCGColorBlack; + +@ffi.Native() +external CFStringRef kCGColorClear; + +@ffi.Native() +external CFStringRef kCGColorConversionBlackPointCompensation; + +@ffi.Native() +external CFStringRef kCGColorConversionTRCSize; + +@ffi.Native() +external CFStringRef kCGColorSpaceACESCGLinear; + +@ffi.Native() +external CFStringRef kCGColorSpaceAdobeRGB1998; + +@ffi.Native() +external CFStringRef kCGColorSpaceCoreMedia709; + +@ffi.Native() +external CFStringRef kCGColorSpaceDCIP3; + +@ffi.Native() +external CFStringRef kCGColorSpaceDisplayP3; + +@ffi.Native() +external CFStringRef kCGColorSpaceDisplayP3_HLG; + +@ffi.Native() +external CFStringRef kCGColorSpaceDisplayP3_PQ; + +@ffi.Native() +external CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedDisplayP3; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedGray; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedITUR_2020; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedLinearDisplayP3; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedLinearGray; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedLinearITUR_2020; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedLinearSRGB; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedRange; + +@ffi.Native() +external CFStringRef kCGColorSpaceExtendedSRGB; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericCMYK; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericGray; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericGrayGamma2_2; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericLab; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericRGB; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericRGBLinear; + +@ffi.Native() +external CFStringRef kCGColorSpaceGenericXYZ; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2020; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2020_HLG; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2020_PQ; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2020_sRGBGamma; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2100_HLG; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_2100_PQ; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_709; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_709_HLG; + +@ffi.Native() +external CFStringRef kCGColorSpaceITUR_709_PQ; + +@ffi.Native() +external CFStringRef kCGColorSpaceLinearDisplayP3; + +@ffi.Native() +external CFStringRef kCGColorSpaceLinearGray; + +@ffi.Native() +external CFStringRef kCGColorSpaceLinearITUR_2020; + +@ffi.Native() +external CFStringRef kCGColorSpaceLinearSRGB; + +@ffi.Native() +external CFStringRef kCGColorSpaceROMMRGB; + +@ffi.Native() +external CFStringRef kCGColorSpaceSRGB; + +@ffi.Native() +external CFStringRef kCGColorWhite; + +@ffi.Native() +external CFStringRef kCGComputeHDRStats; + +@ffi.Native() +external CFStringRef kCGContentAverageLightLevel; + +@ffi.Native() +external CFStringRef kCGContentAverageLightLevelNits; + +@ffi.Native() +external double kCGDefaultHDRImageContentHeadroom; + +@ffi.Native() +external CFStringRef kCGDisplayShowDuplicateLowResolutionModes; + +@ffi.Native() +external CFStringRef kCGDisplayStreamColorSpace; + +@ffi.Native() +external CFStringRef kCGDisplayStreamDestinationRect; + +@ffi.Native() +external CFStringRef kCGDisplayStreamMinimumFrameTime; + +@ffi.Native() +external CFStringRef kCGDisplayStreamPreserveAspectRatio; + +@ffi.Native() +external CFStringRef kCGDisplayStreamQueueDepth; + +@ffi.Native() +external CFStringRef kCGDisplayStreamShowCursor; + +@ffi.Native() +external CFStringRef kCGDisplayStreamSourceRect; + +@ffi.Native() +external CFStringRef kCGDisplayStreamYCbCrMatrix; + +@ffi.Native() +external CFStringRef kCGDisplayStreamYCbCrMatrix_ITU_R_601_4; + +@ffi.Native() +external CFStringRef kCGDisplayStreamYCbCrMatrix_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCGDisplayStreamYCbCrMatrix_SMPTE_240M_1995; + +@ffi.Native() +external CFStringRef kCGDynamicRangeConstrained; + +@ffi.Native() +external CFStringRef kCGDynamicRangeHigh; + +@ffi.Native() +external CFStringRef kCGDynamicRangeStandard; + +@ffi.Native() +external CFStringRef kCGEXRToneMappingGammaDefog; + +@ffi.Native() +external CFStringRef kCGEXRToneMappingGammaExposure; + +@ffi.Native() +external CFStringRef kCGEXRToneMappingGammaKneeHigh; + +@ffi.Native() +external CFStringRef kCGEXRToneMappingGammaKneeLow; + +@ffi.Native() +external CFStringRef kCGFontVariationAxisDefaultValue; + +@ffi.Native() +external CFStringRef kCGFontVariationAxisMaxValue; + +@ffi.Native() +external CFStringRef kCGFontVariationAxisMinValue; + +@ffi.Native() +external CFStringRef kCGFontVariationAxisName; + +@ffi.Native() +external CFStringRef kCGImageAnimationDelayTime; + +@ffi.Native() +external CFStringRef kCGImageAnimationLoopCount; + +@ffi.Native() +external CFStringRef kCGImageAnimationStartIndex; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataInfoColorSpace; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataInfoData; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataInfoDataDescription; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataInfoMetadata; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeDepth; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeDisparity; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeHDRGainMap; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeISOGainMap; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypePortraitEffectsMatte; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationGlassesMatte; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationHairMatte; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationSkinMatte; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationSkyMatte; + +@ffi.Native() +external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationTeethMatte; + +@ffi.Native() +external CFStringRef kCGImageDestinationBackgroundColor; + +@ffi.Native() +external CFStringRef kCGImageDestinationDateTime; + +@ffi.Native() +external CFStringRef kCGImageDestinationEmbedThumbnail; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeAlternateColorSpace; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeBaseColorSpace; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeBaseIsSDR; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeBasePixelFormatRequest; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeGainMapPixelFormatRequest; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeGainMapSubsampleFactor; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeGenerateGainMapWithBaseImage; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeIsBaseImage; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeRequest; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeRequestOptions; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeToISOGainmap; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeToISOHDR; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeToSDR; + +@ffi.Native() +external CFStringRef kCGImageDestinationEncodeTonemapMode; + +@ffi.Native() +external CFStringRef kCGImageDestinationImageMaxPixelSize; + +@ffi.Native() +external CFStringRef kCGImageDestinationLossyCompressionQuality; + +@ffi.Native() +external CFStringRef kCGImageDestinationMergeMetadata; + +@ffi.Native() +external CFStringRef kCGImageDestinationMetadata; + +@ffi.Native() +external CFStringRef kCGImageDestinationOptimizeColorForSharing; + +@ffi.Native() +external CFStringRef kCGImageDestinationOrientation; + +@ffi.Native() +external CFStringRef kCGImageDestinationPreserveGainMap; + +@ffi.Native() +external final CFStringRef kCGImageMetadataEnumerateRecursively; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceDublinCore; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceExif; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceExifAux; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceExifEX; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceIPTCCore; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceIPTCExtension; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespacePhotoshop; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceTIFF; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceXMPBasic; + +@ffi.Native() +external CFStringRef kCGImageMetadataNamespaceXMPRights; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixDublinCore; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixExif; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixExifAux; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixExifEX; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixIPTCCore; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixIPTCExtension; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixPhotoshop; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixTIFF; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixXMPBasic; + +@ffi.Native() +external CFStringRef kCGImageMetadataPrefixXMPRights; + +@ffi.Native() +external CFStringRef kCGImageMetadataShouldExcludeGPS; + +@ffi.Native() +external CFStringRef kCGImageMetadataShouldExcludeXMP; + +@ffi.Native() +external CFStringRef kCGImageProperty8BIMDictionary; + +@ffi.Native() +external CFStringRef kCGImageProperty8BIMLayerNames; + +@ffi.Native() +external CFStringRef kCGImageProperty8BIMVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGCanvasPixelHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGCanvasPixelWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGFrameInfoArray; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGLoopCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyAPNGUnclampedDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyASTCBlockSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyASTCBlockSize4x4; + +@ffi.Native() +external CFStringRef kCGImagePropertyASTCBlockSize8x8; + +@ffi.Native() +external CFStringRef kCGImagePropertyASTCEncoder; + +@ffi.Native() +external CFStringRef kCGImagePropertyAVISDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyAuxiliaryData; + +@ffi.Native() +external CFStringRef kCGImagePropertyAuxiliaryDataType; + +@ffi.Native() +external CFStringRef kCGImagePropertyBCEncoder; + +@ffi.Native() +external CFStringRef kCGImagePropertyBCFormat; + +@ffi.Native() +external CFStringRef kCGImagePropertyBytesPerRow; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFCameraSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFContinuousDrive; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFFirmware; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFFlashExposureComp; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFFocusMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFImageFileName; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFImageName; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFImageSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFLensMaxMM; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFLensMinMM; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFLensModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFMeasuredEV; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFMeteringMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFOwnerName; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFRecordID; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFReleaseMethod; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFReleaseTiming; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFSelfTimingTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFShootingMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyCIFFWhiteBalanceIndex; + +@ffi.Native() +external CFStringRef kCGImagePropertyColorModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyColorModelCMYK; + +@ffi.Native() +external CFStringRef kCGImagePropertyColorModelGray; + +@ffi.Native() +external CFStringRef kCGImagePropertyColorModelLab; + +@ffi.Native() +external CFStringRef kCGImagePropertyColorModelRGB; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGActiveArea; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAnalogBalance; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAntiAliasStrength; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAsShotICCProfile; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAsShotNeutral; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAsShotPreProfileMatrix; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAsShotProfileName; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGAsShotWhiteXY; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBackwardVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBaselineExposure; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBaselineExposureOffset; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBaselineNoise; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBaselineSharpness; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBayerGreenSplit; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBestQualityScale; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBlackLevel; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBlackLevelDeltaH; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBlackLevelDeltaV; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGBlackLevelRepeatDim; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCFALayout; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCFAPlaneColor; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCalibrationIlluminant1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCalibrationIlluminant2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCameraCalibration1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCameraCalibration2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCameraCalibrationSignature; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCameraSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGChromaBlurRadius; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGColorMatrix1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGColorMatrix2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGColorimetricReference; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCurrentICCProfile; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGCurrentPreProfileMatrix; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDefaultBlackRender; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDefaultCropOrigin; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDefaultCropSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDefaultScale; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDefaultUserCrop; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGExtraCameraProfiles; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGFixVignetteRadial; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGForwardMatrix1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGForwardMatrix2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGLensInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGLinearResponseLimit; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGLinearizationTable; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGLocalizedCameraModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGMakerNoteSafety; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGMaskedAreas; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGNewRawImageDigest; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGNoiseProfile; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGNoiseReductionApplied; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOpcodeList1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOpcodeList2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOpcodeList3; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalBestQualityFinalSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalDefaultCropSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalDefaultFinalSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalRawFileData; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalRawFileDigest; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGOriginalRawFileName; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewApplicationName; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewApplicationVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewColorSpace; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewDateTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewSettingsDigest; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPreviewSettingsName; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGPrivateData; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileCalibrationSignature; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileCopyright; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileEmbedPolicy; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileHueSatMapData1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileHueSatMapData2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileHueSatMapDims; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileHueSatMapEncoding; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileLookTableData; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileLookTableDims; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileLookTableEncoding; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileName; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGProfileToneCurve; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGRawDataUniqueID; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGRawImageDigest; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGRawToPreviewGain; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGReductionMatrix1; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGReductionMatrix2; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGRowInterleaveFactor; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGShadowScale; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGSubTileBlockSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGUniqueCameraModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGWarpFisheye; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGWarpRectilinear; + +@ffi.Native() +external CFStringRef kCGImagePropertyDNGWhiteLevel; + +@ffi.Native() +external CFStringRef kCGImagePropertyDPIHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyDPIWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyDepth; + +@ffi.Native() +external CFStringRef kCGImagePropertyEncoder; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifApertureValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxFirmware; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxFlashCompensation; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxImageNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxLensID; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxLensInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxLensModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxLensSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxOwnerName; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifAuxSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifBodySerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifBrightnessValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifCFAPattern; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifCameraOwnerName; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifColorSpace; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifComponentsConfiguration; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifCompositeImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifCompressedBitsPerPixel; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifContrast; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifCustomRendered; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifDateTimeDigitized; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifDateTimeOriginal; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifDeviceSettingDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifDigitalZoomRatio; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifExposureBiasValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifExposureIndex; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifExposureMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifExposureProgram; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifExposureTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFileSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFlash; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFlashEnergy; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFlashPixVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFocalLenIn35mmFilm; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFocalLength; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFocalPlaneResolutionUnit; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFocalPlaneXResolution; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifFocalPlaneYResolution; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifGainControl; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifGamma; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifISOSpeed; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifISOSpeedLatitudeyyy; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifISOSpeedLatitudezzz; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifISOSpeedRatings; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifImageUniqueID; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifLensMake; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifLensModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifLensSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifLensSpecification; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifLightSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifMakerNote; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifMaxApertureValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifMeteringMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifOECF; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifOffsetTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifOffsetTimeDigitized; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifOffsetTimeOriginal; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifPixelXDimension; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifPixelYDimension; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifRecommendedExposureIndex; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifRelatedSoundFile; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSaturation; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSceneCaptureType; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSceneType; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSensingMethod; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSensitivityType; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSharpness; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifShutterSpeedValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSourceExposureTimesOfCompositeImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSourceImageNumberOfCompositeImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSpatialFrequencyResponse; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSpectralSensitivity; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifStandardOutputSensitivity; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubjectArea; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubjectDistRange; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubjectDistance; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubjectLocation; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubsecTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubsecTimeDigitized; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubsecTimeOrginal; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifSubsecTimeOriginal; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifUserComment; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyExifWhiteBalance; + +@ffi.Native() +external CFStringRef kCGImagePropertyFileContentsDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyFileSize; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFCanvasPixelHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFCanvasPixelWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFFrameInfoArray; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFHasGlobalColorMap; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFImageColorMap; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFLoopCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyGIFUnclampedDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSAltitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSAltitudeRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSAreaInformation; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDOP; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDateStamp; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestBearing; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestBearingRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestDistance; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestDistanceRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestLatitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestLatitudeRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestLongitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDestLongitudeRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSDifferental; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSHPositioningError; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSImgDirection; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSImgDirectionRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSLatitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSLatitudeRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSLongitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSLongitudeRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSMapDatum; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSMeasureMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSProcessingMethod; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSSatellites; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSSpeed; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSSpeedRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSStatus; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSTimeStamp; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSTrack; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSTrackRef; + +@ffi.Native() +external CFStringRef kCGImagePropertyGPSVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageBaseline; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageDisparityAdjustment; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIndexLeft; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIndexMonoscopic; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIndexRight; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIsAlternateImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIsLeftImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIsMonoscopicImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageIsRightImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImageStereoAggressors; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupImagesAlternate; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupIndex; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupMonoscopicImageLocation; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupType; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupTypeAlternate; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroupTypeStereoPair; + +@ffi.Native() +external CFStringRef kCGImagePropertyGroups; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSCanvasPixelHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSCanvasPixelWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSFrameInfoArray; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSLoopCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEICSUnclampedDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyHEIFDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyHasAlpha; + +@ffi.Native() +external CFStringRef kCGImagePropertyHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCActionAdvised; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCByline; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCBylineTitle; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCaptionAbstract; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCategory; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCity; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContact; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoAddress; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoCity; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoCountry; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoEmails; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoPhones; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoPostalCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoStateProvince; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContactInfoWebURLs; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContentLocationCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCContentLocationName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCopyrightNotice; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCountryPrimaryLocationCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCountryPrimaryLocationName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCreatorContactInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCCredit; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCDateCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCDigitalCreationDate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCDigitalCreationTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCEditStatus; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCEditorialUpdate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExpirationDate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExpirationTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAboutCvTerm; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAboutCvTermCvId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAboutCvTermId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAboutCvTermName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAboutCvTermRefinedAbout; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAddlModelInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCircaDateCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkContentDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkContributionDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightNotice; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightOwnerID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightOwnerName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCreator; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkCreatorID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkDateCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkLicensorID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkLicensorName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkOrObject; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkPhysicalDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkSourceInvURL; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkSourceInventoryNo; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkStylePeriod; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtArtworkTitle; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAudioBitrate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAudioBitrateMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtAudioChannelCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCircaDateCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContainerFormat; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContainerFormatIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContainerFormatName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContributor; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContributorIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContributorName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtContributorRole; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtControlledVocabularyTerm; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCopyrightYear; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCreator; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCreatorIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCreatorName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtCreatorRole; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreen; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegion; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionD; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionH; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionText; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionUnit; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionW; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionX; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionY; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDigitalImageGUID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDigitalSourceFileType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDigitalSourceType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDopesheet; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDopesheetLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDopesheetLinkLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtDopesheetLinkLinkQualifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEmbdEncRightsExpr; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExpr; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprLangID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEpisode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEpisodeIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEpisodeName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEpisodeNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtEvent; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtExternalMetadataLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtFeedIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtGenre; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtGenreCvId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtGenreCvTermId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtGenreCvTermName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtGenreCvTermRefinedAbout; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtHeadline; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtIPTCLastEdited; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLinkedEncRightsExpr; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExpr; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExprLangID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExprType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationCity; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationCountryCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationCountryName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationGPSAltitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationGPSLatitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationGPSLongitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationLocationId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationLocationName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationProvinceState; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationShown; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationSublocation; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtLocationWorldRegion; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtMaxAvailHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtMaxAvailWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtModelAge; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtOrganisationInImageCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtOrganisationInImageName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonHeard; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonHeardIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonHeardName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageCharacteristic; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermCvId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermRefinedAbout; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPersonInImageWDetails; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtProductInImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtProductInImageDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtProductInImageGTIN; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtProductInImageName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPublicationEvent; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPublicationEventDate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPublicationEventIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtPublicationEventName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRating; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRatingRegion; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionCity; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionCountryCode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionCountryName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSAltitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSLatitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSLongitude; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionLocationId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionLocationName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionProvinceState; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionSublocation; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingRegionWorldRegion; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingScaleMaxValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingScaleMinValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingSourceLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingValue; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRatingValueLogoLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRegistryEntryRole; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRegistryID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRegistryItemID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtRegistryOrganisationID; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtReleaseReady; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeason; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeasonIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeasonName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeasonNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeries; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeriesIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSeriesName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtShownEvent; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtShownEventIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtShownEventName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtStorylineIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtStreamReady; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtStylePeriod; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSupplyChainSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSupplyChainSourceIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtSupplyChainSourceName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTemporalCoverage; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTemporalCoverageFrom; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTemporalCoverageTo; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTranscript; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTranscriptLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTranscriptLinkLink; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtTranscriptLinkLinkQualifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoBitrate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoBitrateMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoDisplayAspectRatio; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoEncodingProfile; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoShotType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoShotTypeIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoShotTypeName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVideoStreamsCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtVisualColor; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtWorkflowTag; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermId; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermRefinedAbout; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCFixtureIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCHeadline; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCImageOrientation; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCImageType; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCKeywords; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCLanguageIdentifier; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCObjectAttributeReference; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCObjectCycle; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCObjectName; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCObjectTypeReference; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCOriginalTransmissionReference; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCOriginatingProgram; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCProgramVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCProvinceState; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCReferenceDate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCReferenceNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCReferenceService; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCReleaseDate; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCReleaseTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCRightsUsageTerms; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCScene; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCSpecialInstructions; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCStarRating; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCSubLocation; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCSubjectReference; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCSupplementalCategory; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCTimeCreated; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCUrgency; + +@ffi.Native() +external CFStringRef kCGImagePropertyIPTCWriterEditor; + +@ffi.Native() +external CFStringRef kCGImagePropertyImageCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyImageIndex; + +@ffi.Native() +external CFStringRef kCGImagePropertyImages; + +@ffi.Native() +external CFStringRef kCGImagePropertyIsFloat; + +@ffi.Native() +external CFStringRef kCGImagePropertyIsIndexed; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFDensityUnit; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFIsProgressive; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFVersion; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFXDensity; + +@ffi.Native() +external CFStringRef kCGImagePropertyJFIFYDensity; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerAppleDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonAspectRatioInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonCameraSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonContinuousDrive; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonFirmware; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonFlashExposureComp; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonImageSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonLensModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerCanonOwnerName; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerFujiDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerMinoltaDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonCameraSerialNumber; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonColorMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonDigitalZoom; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonFlashExposureComp; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonFlashSetting; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonFocusDistance; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonFocusMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonISOSelection; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonISOSetting; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonImageAdjustment; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonLensAdapter; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonLensInfo; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonLensType; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonQuality; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonSharpenMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonShootingMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonShutterCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerNikonWhiteBalanceMode; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerOlympusDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyMakerPentaxDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyNamedColorSpace; + +@ffi.Native() +external CFStringRef kCGImagePropertyOpenEXRAspectRatio; + +@ffi.Native() +external CFStringRef kCGImagePropertyOpenEXRCompression; + +@ffi.Native() +external CFStringRef kCGImagePropertyOpenEXRDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyOrientation; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGAuthor; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGChromaticities; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGComment; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGCompressionFilter; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGCopyright; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGCreationTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGDisclaimer; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGGamma; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGInterlaceType; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGModificationTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGPixelsAspectRatio; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGSoftware; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGSource; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGTitle; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGTransparency; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGWarning; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGXPixelsPerMeter; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGYPixelsPerMeter; + +@ffi.Native() +external CFStringRef kCGImagePropertyPNGsRGBIntent; + +@ffi.Native() +external CFStringRef kCGImagePropertyPVREncoder; + +@ffi.Native() +external CFStringRef kCGImagePropertyPixelFormat; + +@ffi.Native() +external CFStringRef kCGImagePropertyPixelHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyPixelWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyPrimaryImage; + +@ffi.Native() +external CFStringRef kCGImagePropertyProfileName; + +@ffi.Native() +external CFStringRef kCGImagePropertyRawDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyTGACompression; + +@ffi.Native() +external CFStringRef kCGImagePropertyTGADictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFArtist; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFCompression; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFCopyright; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFDateTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFDocumentName; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFHostComputer; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFImageDescription; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFMake; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFModel; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFOrientation; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFPhotometricInterpretation; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFPrimaryChromaticities; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFResolutionUnit; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFSoftware; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFTileLength; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFTileWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFTransferFunction; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFWhitePoint; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFXPosition; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFXResolution; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFYPosition; + +@ffi.Native() +external CFStringRef kCGImagePropertyTIFFYResolution; + +@ffi.Native() +external CFStringRef kCGImagePropertyThumbnailImages; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPCanvasPixelHeight; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPCanvasPixelWidth; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPDictionary; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPFrameInfoArray; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPLoopCount; + +@ffi.Native() +external CFStringRef kCGImagePropertyWebPUnclampedDelayTime; + +@ffi.Native() +external CFStringRef kCGImagePropertyWidth; + +@ffi.Native() +external CFStringRef kCGImageProviderPreferredTileHeight; + +@ffi.Native() +external CFStringRef kCGImageProviderPreferredTileWidth; + +@ffi.Native() +external CFStringRef kCGImageSourceCreateThumbnailFromImageAlways; + +@ffi.Native() +external CFStringRef kCGImageSourceCreateThumbnailFromImageIfAbsent; + +@ffi.Native() +external CFStringRef kCGImageSourceCreateThumbnailWithTransform; + +@ffi.Native() +external CFStringRef kCGImageSourceDecodeRequest; + +@ffi.Native() +external CFStringRef kCGImageSourceDecodeRequestOptions; + +@ffi.Native() +external CFStringRef kCGImageSourceDecodeToHDR; + +@ffi.Native() +external CFStringRef kCGImageSourceDecodeToSDR; + +@ffi.Native() +external CFStringRef kCGImageSourceGenerateImageSpecificLumaScaling; + +@ffi.Native() +external CFStringRef kCGImageSourceShouldAllowFloat; + +@ffi.Native() +external CFStringRef kCGImageSourceShouldCache; + +@ffi.Native() +external CFStringRef kCGImageSourceShouldCacheImmediately; + +@ffi.Native() +external CFStringRef kCGImageSourceSubsampleFactor; + +@ffi.Native() +external CFStringRef kCGImageSourceThumbnailMaxPixelSize; + +@ffi.Native() +external CFStringRef kCGImageSourceTypeIdentifierHint; + +@ffi.Native() +external CFStringRef kCGPDFContextAccessPermissions; + +@ffi.Native() +external CFStringRef kCGPDFContextAllowsCopying; + +@ffi.Native() +external CFStringRef kCGPDFContextAllowsPrinting; + +@ffi.Native() +external CFStringRef kCGPDFContextArtBox; + +@ffi.Native() +external CFStringRef kCGPDFContextAuthor; + +@ffi.Native() +external CFStringRef kCGPDFContextBleedBox; + +@ffi.Native() +external CFStringRef kCGPDFContextCreateLinearizedPDF; + +@ffi.Native() +external CFStringRef kCGPDFContextCreatePDFA; + +@ffi.Native() +external CFStringRef kCGPDFContextCreator; + +@ffi.Native() +external CFStringRef kCGPDFContextCropBox; + +@ffi.Native() +external CFStringRef kCGPDFContextEncryptionKeyLength; + +@ffi.Native() +external CFStringRef kCGPDFContextKeywords; + +@ffi.Native() +external CFStringRef kCGPDFContextMediaBox; + +@ffi.Native() +external CFStringRef kCGPDFContextOutputIntent; + +@ffi.Native() +external CFStringRef kCGPDFContextOutputIntents; + +@ffi.Native() +external CFStringRef kCGPDFContextOwnerPassword; + +@ffi.Native() +external CFStringRef kCGPDFContextSubject; + +@ffi.Native() +external CFStringRef kCGPDFContextTitle; + +@ffi.Native() +external CFStringRef kCGPDFContextTrimBox; + +@ffi.Native() +external CFStringRef kCGPDFContextUserPassword; + +@ffi.Native() +external CFStringRef kCGPDFOutlineChildren; + +@ffi.Native() +external CFStringRef kCGPDFOutlineDestination; + +@ffi.Native() +external CFStringRef kCGPDFOutlineDestinationRect; + +@ffi.Native() +external CFStringRef kCGPDFOutlineTitle; + +@ffi.Native() +external final CGPDFTagProperty kCGPDFTagPropertyActualText; + +@ffi.Native() +external final CGPDFTagProperty kCGPDFTagPropertyAlternativeText; + +@ffi.Native() +external final CGPDFTagProperty kCGPDFTagPropertyLanguageText; + +@ffi.Native() +external final CGPDFTagProperty kCGPDFTagPropertyTitleText; + +@ffi.Native() +external CFStringRef kCGPDFXDestinationOutputProfile; + +@ffi.Native() +external CFStringRef kCGPDFXInfo; + +@ffi.Native() +external CFStringRef kCGPDFXOutputCondition; + +@ffi.Native() +external CFStringRef kCGPDFXOutputConditionIdentifier; + +@ffi.Native() +external CFStringRef kCGPDFXOutputIntentSubtype; + +@ffi.Native() +external CFStringRef kCGPDFXRegistryName; + +@ffi.Native() +external CFStringRef kCGPreferredDynamicRange; + +@ffi.Native() +external CFStringRef kCGSkipBoostToHDR; + +@ffi.Native() +external CFStringRef kCGUse100nitsHLGOOTF; + +@ffi.Native() +external CFStringRef kCGUseBT1886ForCoreVideoGamma; + +@ffi.Native() +external CFStringRef kCGUseLegacyHDREcosystem; + +@ffi.Native() +external CFStringRef kCGWindowAlpha; + +@ffi.Native() +external CFStringRef kCGWindowBackingLocationVideoMemory; + +@ffi.Native() +external CFStringRef kCGWindowBounds; + +@ffi.Native() +external CFStringRef kCGWindowIsOnscreen; + +@ffi.Native() +external CFStringRef kCGWindowLayer; + +@ffi.Native() +external CFStringRef kCGWindowMemoryUsage; + +@ffi.Native() +external CFStringRef kCGWindowName; + +@ffi.Native() +external CFStringRef kCGWindowNumber; + +@ffi.Native() +external CFStringRef kCGWindowOwnerName; + +@ffi.Native() +external CFStringRef kCGWindowOwnerPID; + +@ffi.Native() +external CFStringRef kCGWindowSharingState; + +@ffi.Native() +external CFStringRef kCGWindowStoreType; + +@ffi.Native() +external CFStringRef kCGWindowWorkspace; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionAlphaChannelMode_PremultipliedAlpha; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionAlphaChannelMode_StraightAlpha; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibrationExtrinsicOriginSource_StereoCameraSystemBaseline; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibrationLensAlgorithmKind_ParametricLens; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibrationLensDomain_Color; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Left; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Mono; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Right; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_ExtrinsicOrientationQuaternion; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_ExtrinsicOriginSource; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_IntrinsicMatrix; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_IntrinsicMatrixProjectionOffset; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_IntrinsicMatrixReferenceDimensions; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_LensAlgorithmKind; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_LensDistortions; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_LensDomain; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialX; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialY; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_LensIdentifier; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_LensRole; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionCameraCalibration_RadialAngleLimit; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_Bottom; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_BottomLeft; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_Center; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_DV420; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_Left; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_Top; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionChromaLocation_TopLeft; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_DCI_P3; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_EBU_3213; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_P22; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_P3_D65; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionColorPrimaries_SMPTE_C; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionConformsToMPEG2VideoProfile; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtensionKey_MetadataKeyTable; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_AlphaChannelMode; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_AlternativeTransferCharacteristics; + +@ffi.Native() +external final CFStringRef +kCMFormatDescriptionExtension_AmbientViewingEnvironment; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_AuxiliaryTypeInfo; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_BitsPerComponent; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_BytesPerRow; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_CameraCalibrationDataLensCollection; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ChromaLocationBottomField; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ChromaLocationTopField; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_CleanAperture; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ColorPrimaries; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ContainsAlphaChannel; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ContentColorVolume; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ContentLightLevelInfo; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_ConvertedFromExternalSphericalTags; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_Depth; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_FieldCount; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_FieldDetail; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_FormatName; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_FullRangeVideo; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_GammaLevel; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_HasAdditionalViews; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_HasLeftStereoEyeView; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_HasRightStereoEyeView; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_HeroEye; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_HorizontalDisparityAdjustment; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_HorizontalFieldOfView; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ICCProfile; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_LogTransferFunction; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_MasteringDisplayColorVolume; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_OriginalCompressionSettings; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_PixelAspectRatio; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ProjectionKind; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_ProtectedContentOriginalFormat; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_RevisionLevel; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionExtension_SampleDescriptionExtensionAtoms; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_SpatialQuality; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_StereoCameraBaseline; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_TemporalQuality; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_TransferFunction; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_Vendor; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_VerbatimISOSampleEntry; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_VerbatimImageDescription; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_VerbatimSampleDescription; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_Version; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_ViewPackingKind; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionExtension_YCbCrMatrix; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionFieldDetail_SpatialFirstLineEarly; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionFieldDetail_SpatialFirstLineLate; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionFieldDetail_TemporalBottomFirst; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionFieldDetail_TemporalTopFirst; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionHeroEye_Left; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionHeroEye_Right; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureHeight; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureHeightRational; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureHorizontalOffset; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionKey_CleanApertureHorizontalOffsetRational; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureVerticalOffset; + +@ffi.Native() +external CFStringRef +kCMFormatDescriptionKey_CleanApertureVerticalOffsetRational; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureWidth; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_CleanApertureWidthRational; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionLogTransferFunction_AppleLog; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionProjectionKind_AppleImmersiveVideo; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionProjectionKind_Equirectangular; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionProjectionKind_HalfEquirectangular; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionProjectionKind_ParametricImmersive; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionProjectionKind_Rectilinear; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_2100_HLG; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_Linear; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_240M_1995; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_ST_2084_PQ; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_ST_428_1; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_UseGamma; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionTransferFunction_sRGB; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionVendor_Apple; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionViewPackingKind_OverUnder; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionViewPackingKind_SideBySide; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_601_4; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCMFormatDescriptionYCbCrMatrix_SMPTE_240M_1995; + +@ffi.Native() +external CFStringRef kCMMApplyTransformProcName; + +@ffi.Native() +external CFStringRef kCMMCreateTransformPropertyProcName; + +@ffi.Native() +external CFStringRef kCMMInitializeLinkProfileProcName; + +@ffi.Native() +external CFStringRef kCMMInitializeTransformProcName; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_ConformingDataTypes; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_DataType; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_DataTypeNamespace; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_LanguageTag; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_LocalID; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_Namespace; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_SetupData; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_StructuralDependency; + +@ffi.Native() +external CFStringRef kCMMetadataFormatDescriptionKey_Value; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescriptionMetadataSpecificationKey_DataType; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescriptionMetadataSpecificationKey_ExtendedLanguageTag; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescriptionMetadataSpecificationKey_SetupData; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescriptionMetadataSpecificationKey_StructuralDependency; + +@ffi.Native() +external CFStringRef +kCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInvalidFlag; + +@ffi.Native() +external CFStringRef kCMSEncoderDigestAlgorithmSHA1; + +@ffi.Native() +external CFStringRef kCMSEncoderDigestAlgorithmSHA256; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionColor_Alpha; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionColor_Blue; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionColor_Green; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionColor_Red; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_BackgroundColor; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_DefaultFontName; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_DefaultStyle; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_DefaultTextBox; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_DisplayFlags; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_FontTable; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_HorizontalJustification; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_TextJustification; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionExtension_VerticalJustification; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionRect_Bottom; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionRect_Left; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionRect_Right; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionRect_Top; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_Ascent; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_EndChar; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_Font; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_FontFace; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_FontSize; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_ForegroundColor; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_Height; + +@ffi.Native() +external CFStringRef kCMTextFormatDescriptionStyle_StartChar; + +@ffi.Native() +external CFStringRef kCMTimeCodeFormatDescriptionExtension_SourceReferenceName; + +@ffi.Native() +external CFStringRef kCMTimeCodeFormatDescriptionKey_LangCode; + +@ffi.Native() +external CFStringRef kCMTimeCodeFormatDescriptionKey_Value; + +@ffi.Native() +external CFStringRef kCMTimeEpochKey; + +@ffi.Native() +external CFStringRef kCMTimeFlagsKey; + +@ffi.Native() +external final CMTime kCMTimeIndefinite; + +@ffi.Native() +external final CMTime kCMTimeInvalid; + +@ffi.Native() +external final CMTime kCMTimeNegativeInfinity; + +@ffi.Native() +external final CMTime kCMTimePositiveInfinity; + +@ffi.Native() +external CFStringRef kCMTimeScaleKey; + +@ffi.Native() +external CFStringRef kCMTimeValueKey; + +@ffi.Native() +external final CMTime kCMTimeZero; + +@ffi.Native() +external final CFStringRef kCSIdentityErrorDomain; + +@ffi.Native() +external final CFStringRef kCSIdentityGeneratePosixName; + +@ffi.Native() +external CFStringRef kCTAdaptiveImageProviderAttributeName; + +@ffi.Native() +external CFStringRef kCTBackgroundColorAttributeName; + +@ffi.Native() +external CFStringRef kCTBaselineClassAttributeName; + +@ffi.Native() +external CFStringRef kCTBaselineClassHanging; + +@ffi.Native() +external CFStringRef kCTBaselineClassIdeographicCentered; + +@ffi.Native() +external CFStringRef kCTBaselineClassIdeographicHigh; + +@ffi.Native() +external CFStringRef kCTBaselineClassIdeographicLow; + +@ffi.Native() +external CFStringRef kCTBaselineClassMath; + +@ffi.Native() +external CFStringRef kCTBaselineClassRoman; + +@ffi.Native() +external CFStringRef kCTBaselineInfoAttributeName; + +@ffi.Native() +external CFStringRef kCTBaselineOffsetAttributeName; + +@ffi.Native() +external CFStringRef kCTBaselineOriginalFont; + +@ffi.Native() +external CFStringRef kCTBaselineReferenceFont; + +@ffi.Native() +external CFStringRef kCTBaselineReferenceInfoAttributeName; + +@ffi.Native() +external CFStringRef kCTCharacterShapeAttributeName; + +@ffi.Native() +external CFStringRef kCTFontAttributeName; + +@ffi.Native() +external CFStringRef kCTFontBaselineAdjustAttribute; + +@ffi.Native() +external CFStringRef kCTFontCascadeListAttribute; + +@ffi.Native() +external CFStringRef kCTFontCharacterSetAttribute; + +@ffi.Native() +external CFStringRef kCTFontCollectionDisallowAutoActivationOption; + +@ffi.Native() +external CFStringRef kCTFontCollectionIncludeDisabledFontsOption; + +@ffi.Native() +external CFStringRef kCTFontCollectionRemoveDuplicatesOption; + +@ffi.Native() +external CFStringRef kCTFontCopyrightNameKey; + +@ffi.Native() +external CFStringRef kCTFontDescriptionNameKey; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingCurrentAssetSize; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingDescriptors; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingError; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingPercentage; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingResult; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingSourceDescriptor; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingTotalAssetSize; + +@ffi.Native() +external CFStringRef kCTFontDescriptorMatchingTotalDownloadedSize; + +@ffi.Native() +external CFStringRef kCTFontDesignerNameKey; + +@ffi.Native() +external CFStringRef kCTFontDesignerURLNameKey; + +@ffi.Native() +external CFStringRef kCTFontDisplayNameAttribute; + +@ffi.Native() +external CFStringRef kCTFontDownloadableAttribute; + +@ffi.Native() +external CFStringRef kCTFontDownloadedAttribute; + +@ffi.Native() +external CFStringRef kCTFontEnabledAttribute; + +@ffi.Native() +external CFStringRef kCTFontFamilyNameAttribute; + +@ffi.Native() +external CFStringRef kCTFontFamilyNameKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSampleTextKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSelectorDefaultKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSelectorIdentifierKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSelectorNameKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSelectorSettingKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureSettingsAttribute; + +@ffi.Native() +external CFStringRef kCTFontFeatureTooltipTextKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureTypeExclusiveKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureTypeIdentifierKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureTypeNameKey; + +@ffi.Native() +external CFStringRef kCTFontFeatureTypeSelectorsKey; + +@ffi.Native() +external CFStringRef kCTFontFeaturesAttribute; + +@ffi.Native() +external CFStringRef kCTFontFixedAdvanceAttribute; + +@ffi.Native() +external CFStringRef kCTFontFormatAttribute; + +@ffi.Native() +external CFStringRef kCTFontFullNameKey; + +@ffi.Native() +external CFStringRef kCTFontLanguagesAttribute; + +@ffi.Native() +external CFStringRef kCTFontLicenseNameKey; + +@ffi.Native() +external CFStringRef kCTFontLicenseURLNameKey; + +@ffi.Native() +external CFStringRef kCTFontMacintoshEncodingsAttribute; + +@ffi.Native() +external CFStringRef kCTFontManagerBundleIdentifier; + +@ffi.Native() +external CFStringRef kCTFontManagerErrorDomain; + +@ffi.Native() +external CFStringRef kCTFontManagerErrorFontAssetNameKey; + +@ffi.Native() +external CFStringRef kCTFontManagerErrorFontDescriptorsKey; + +@ffi.Native() +external CFStringRef kCTFontManagerErrorFontURLsKey; + +@ffi.Native() +external CFStringRef kCTFontManagerRegisteredFontsChangedNotification; + +@ffi.Native() +external CFStringRef kCTFontManufacturerNameKey; + +@ffi.Native() +external CFStringRef kCTFontMatrixAttribute; + +@ffi.Native() +external CFStringRef kCTFontNameAttribute; + +@ffi.Native() +external CFStringRef kCTFontOpenTypeFeatureTag; + +@ffi.Native() +external CFStringRef kCTFontOpenTypeFeatureValue; + +@ffi.Native() +external CFStringRef kCTFontOpticalSizeAttribute; + +@ffi.Native() +external CFStringRef kCTFontOrientationAttribute; + +@ffi.Native() +external CFStringRef kCTFontPostScriptCIDNameKey; + +@ffi.Native() +external CFStringRef kCTFontPostScriptNameKey; + +@ffi.Native() +external CFStringRef kCTFontPriorityAttribute; + +@ffi.Native() +external CFStringRef kCTFontRegistrationScopeAttribute; + +@ffi.Native() +external CFStringRef kCTFontRegistrationUserInfoAttribute; + +@ffi.Native() +external CFStringRef kCTFontSampleTextNameKey; + +@ffi.Native() +external CFStringRef kCTFontSizeAttribute; + +@ffi.Native() +external CFStringRef kCTFontSlantTrait; + +@ffi.Native() +external CFStringRef kCTFontStyleNameAttribute; + +@ffi.Native() +external CFStringRef kCTFontStyleNameKey; + +@ffi.Native() +external CFStringRef kCTFontSubFamilyNameKey; + +@ffi.Native() +external CFStringRef kCTFontSymbolicTrait; + +@ffi.Native() +external CFStringRef kCTFontTrademarkNameKey; + +@ffi.Native() +external CFStringRef kCTFontTraitsAttribute; + +@ffi.Native() +external CFStringRef kCTFontURLAttribute; + +@ffi.Native() +external CFStringRef kCTFontUniqueNameKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAttribute; + +@ffi.Native() +external CFStringRef kCTFontVariationAxesAttribute; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisDefaultValueKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisHiddenKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisIdentifierKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisMaximumValueKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisMinimumValueKey; + +@ffi.Native() +external CFStringRef kCTFontVariationAxisNameKey; + +@ffi.Native() +external CFStringRef kCTFontVendorURLNameKey; + +@ffi.Native() +external CFStringRef kCTFontVersionNameKey; + +@ffi.Native() +external CFStringRef kCTFontWeightTrait; + +@ffi.Native() +external CFStringRef kCTFontWidthTrait; + +@ffi.Native() +external CFStringRef kCTForegroundColorAttributeName; + +@ffi.Native() +external CFStringRef kCTForegroundColorFromContextAttributeName; + +@ffi.Native() +external CFStringRef kCTFrameClippingPathsAttributeName; + +@ffi.Native() +external CFStringRef kCTFramePathClippingPathAttributeName; + +@ffi.Native() +external CFStringRef kCTFramePathFillRuleAttributeName; + +@ffi.Native() +external CFStringRef kCTFramePathWidthAttributeName; + +@ffi.Native() +external CFStringRef kCTFrameProgressionAttributeName; + +@ffi.Native() +external CFStringRef kCTGlyphInfoAttributeName; + +@ffi.Native() +external CFStringRef kCTHorizontalInVerticalFormsAttributeName; + +@ffi.Native() +external CFStringRef kCTKernAttributeName; + +@ffi.Native() +external CFStringRef kCTLanguageAttributeName; + +@ffi.Native() +external CFStringRef kCTLigatureAttributeName; + +@ffi.Native() +external CFStringRef kCTParagraphStyleAttributeName; + +@ffi.Native() +external CFStringRef kCTRubyAnnotationAttributeName; + +@ffi.Native() +external CFStringRef kCTRubyAnnotationScaleToFitAttributeName; + +@ffi.Native() +external CFStringRef kCTRubyAnnotationSizeFactorAttributeName; + +@ffi.Native() +external CFStringRef kCTRunDelegateAttributeName; + +@ffi.Native() +external CFStringRef kCTStrokeColorAttributeName; + +@ffi.Native() +external CFStringRef kCTStrokeWidthAttributeName; + +@ffi.Native() +external CFStringRef kCTSuperscriptAttributeName; + +@ffi.Native() +external CFStringRef kCTTabColumnTerminatorsAttributeName; + +@ffi.Native() +external CFStringRef kCTTrackingAttributeName; + +@ffi.Native() +external CFStringRef kCTTypesetterOptionAllowUnboundedLayout; + +@ffi.Native() +external CFStringRef kCTTypesetterOptionDisableBidiProcessing; + +@ffi.Native() +external CFStringRef kCTTypesetterOptionForcedEmbeddingLevel; + +@ffi.Native() +external CFStringRef kCTUnderlineColorAttributeName; + +@ffi.Native() +external CFStringRef kCTUnderlineStyleAttributeName; + +@ffi.Native() +external CFStringRef kCTVerticalFormsAttributeName; + +@ffi.Native() +external CFStringRef kCTWritingDirectionAttributeName; + +@ffi.Native() +external CFStringRef kCVBufferMovieTimeKey; + +@ffi.Native() +external CFStringRef kCVBufferNonPropagatedAttachmentsKey; + +@ffi.Native() +external CFStringRef kCVBufferPropagatedAttachmentsKey; + +@ffi.Native() +external CFStringRef kCVBufferTimeScaleKey; + +@ffi.Native() +external CFStringRef kCVBufferTimeValueKey; + +@ffi.Native() +external CFStringRef kCVImageBufferAlphaChannelIsOpaque; + +@ffi.Native() +external CFStringRef kCVImageBufferAlphaChannelModeKey; + +@ffi.Native() +external CFStringRef kCVImageBufferAlphaChannelMode_PremultipliedAlpha; + +@ffi.Native() +external CFStringRef kCVImageBufferAlphaChannelMode_StraightAlpha; + +@ffi.Native() +external final CFStringRef kCVImageBufferAmbientViewingEnvironmentKey; + +@ffi.Native() +external CFStringRef kCVImageBufferCGColorSpaceKey; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocationBottomFieldKey; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocationTopFieldKey; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_Bottom; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_BottomLeft; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_Center; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_DV420; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_Left; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_Top; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaLocation_TopLeft; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaSubsamplingKey; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaSubsampling_411; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaSubsampling_420; + +@ffi.Native() +external CFStringRef kCVImageBufferChromaSubsampling_422; + +@ffi.Native() +external CFStringRef kCVImageBufferCleanApertureHeightKey; + +@ffi.Native() +external CFStringRef kCVImageBufferCleanApertureHorizontalOffsetKey; + +@ffi.Native() +external CFStringRef kCVImageBufferCleanApertureKey; + +@ffi.Native() +external CFStringRef kCVImageBufferCleanApertureVerticalOffsetKey; + +@ffi.Native() +external CFStringRef kCVImageBufferCleanApertureWidthKey; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimariesKey; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_DCI_P3; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_EBU_3213; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_P22; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_P3_D65; + +@ffi.Native() +external CFStringRef kCVImageBufferColorPrimaries_SMPTE_C; + +@ffi.Native() +external CFStringRef kCVImageBufferContentLightLevelInfoKey; + +@ffi.Native() +external CFStringRef kCVImageBufferDisplayDimensionsKey; + +@ffi.Native() +external CFStringRef kCVImageBufferDisplayHeightKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangleKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangleStereoLeftKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangleStereoRightKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey; + +@ffi.Native() +external final CFStringRef +kCVImageBufferDisplayMaskRectangle_RectangleHeightKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleLeftKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleTopKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleWidthKey; + +@ffi.Native() +external final CFStringRef +kCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey; + +@ffi.Native() +external final CFStringRef +kCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey; + +@ffi.Native() +external final CFStringRef +kCVImageBufferDisplayMaskRectangle_RightEdgePointsKey; + +@ffi.Native() +external CFStringRef kCVImageBufferDisplayWidthKey; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldCountKey; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldDetailKey; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldDetailSpatialFirstLineEarly; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldDetailSpatialFirstLineLate; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldDetailTemporalBottomFirst; + +@ffi.Native() +external CFStringRef kCVImageBufferFieldDetailTemporalTopFirst; + +@ffi.Native() +external CFStringRef kCVImageBufferGammaLevelKey; + +@ffi.Native() +external CFStringRef kCVImageBufferICCProfileKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferLogTransferFunctionKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferLogTransferFunction_AppleLog; + +@ffi.Native() +external final CFStringRef kCVImageBufferLogTransferFunction_AppleLog2; + +@ffi.Native() +external CFStringRef kCVImageBufferMasteringDisplayColorVolumeKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPixelAspectRatioHorizontalSpacingKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPixelAspectRatioKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPixelAspectRatioVerticalSpacingKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPostDecodeProcessingFrameMetadataKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPostDecodeProcessingSequenceMetadataKey; + +@ffi.Native() +external CFStringRef kCVImageBufferPreferredCleanApertureKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferRegionOfInterestKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferSceneIlluminationKey; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunctionKey; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_EBU_3213; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_ITU_R_2100_HLG; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_ITU_R_709_2; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_Linear; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_SMPTE_240M_1995; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_SMPTE_C; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_SMPTE_ST_428_1; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_UseGamma; + +@ffi.Native() +external CFStringRef kCVImageBufferTransferFunction_sRGB; + +@ffi.Native() +external CFStringRef kCVImageBufferYCbCrMatrixKey; + +@ffi.Native() +external final CFStringRef kCVImageBufferYCbCrMatrix_DCI_P3; + +@ffi.Native() +external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_2020; + +@ffi.Native() +external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_601_4; + +@ffi.Native() +external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_709_2; + +@ffi.Native() +external final CFStringRef kCVImageBufferYCbCrMatrix_P3_D65; + +@ffi.Native() +external CFStringRef kCVImageBufferYCbCrMatrix_SMPTE_240M_1995; + +@ffi.Native() +external final CVTime kCVIndefiniteTime; + +@ffi.Native() +external CFStringRef kCVMetalBufferCacheMaximumBufferAgeKey; + +@ffi.Native() +external CFStringRef kCVMetalTextureCacheMaximumTextureAgeKey; + +@ffi.Native() +external CFStringRef kCVMetalTextureStorageMode; + +@ffi.Native() +external CFStringRef kCVMetalTextureUsage; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferHeight; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferInternalFormat; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferMaximumMipmapLevel; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferPoolMaximumBufferAgeKey; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferPoolMinimumBufferCountKey; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferTarget; + +@ffi.Native() +external CFStringRef kCVOpenGLBufferWidth; + +@ffi.Native() +external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeAutomatic; + +@ffi.Native() +external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeBestPerformance; + +@ffi.Native() +external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeHighestQuality; + +@ffi.Native() +external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferBytesPerRowAlignmentKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferCGBitmapContextCompatibilityKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferCGImageCompatibilityKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferExtendedPixelsBottomKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferExtendedPixelsLeftKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferExtendedPixelsRightKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferExtendedPixelsTopKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferHeightKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferIOSurfaceOpenGLESFBOCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferIOSurfaceOpenGLESTextureCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferIOSurfacePropertiesKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferIOSurfacePurgeableKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferMemoryAllocatorKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferMetalCompatibilityKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferOpenGLCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferOpenGLESCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferOpenGLESTextureCacheCompatibilityKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferOpenGLTextureCacheCompatibilityKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferPixelFormatTypeKey; + +@ffi.Native() +external final CFStringRef kCVPixelBufferPlaneAlignmentKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferPoolAllocationThresholdKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferPoolFreeBufferNotification; + +@ffi.Native() +external CFStringRef kCVPixelBufferPoolMaximumBufferAgeKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferPoolMinimumBufferCountKey; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_BlackLevel; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_ColorMatrix; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_GainFactor; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_MetadataExtension; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_RecommendedCrop; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_SenselSitingOffsets; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceCCT; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor; + +@ffi.Native() +external CFStringRef kCVPixelBufferProResRAWKey_WhiteLevel; + +@ffi.Native() +external CFStringRef kCVPixelBufferVersatileBayerKey_BayerPattern; + +@ffi.Native() +external final CFStringRef kCVPixelBufferWidthKey; + +@ffi.Native() +external CFStringRef kCVPixelFormatBitsPerBlock; + +@ffi.Native() +external final CFStringRef kCVPixelFormatBitsPerComponent; + +@ffi.Native() +external CFStringRef kCVPixelFormatBlackBlock; + +@ffi.Native() +external CFStringRef kCVPixelFormatBlockHeight; + +@ffi.Native() +external CFStringRef kCVPixelFormatBlockHorizontalAlignment; + +@ffi.Native() +external CFStringRef kCVPixelFormatBlockVerticalAlignment; + +@ffi.Native() +external CFStringRef kCVPixelFormatBlockWidth; + +@ffi.Native() +external final CFStringRef kCVPixelFormatCGBitmapContextCompatibility; + +@ffi.Native() +external CFStringRef kCVPixelFormatCGBitmapInfo; + +@ffi.Native() +external final CFStringRef kCVPixelFormatCGImageCompatibility; + +@ffi.Native() +external CFStringRef kCVPixelFormatCodecType; + +@ffi.Native() +external CFStringRef kCVPixelFormatComponentRange; + +@ffi.Native() +external CFStringRef kCVPixelFormatComponentRange_FullRange; + +@ffi.Native() +external CFStringRef kCVPixelFormatComponentRange_VideoRange; + +@ffi.Native() +external CFStringRef kCVPixelFormatComponentRange_WideRange; + +@ffi.Native() +external CFStringRef kCVPixelFormatConstant; + +@ffi.Native() +external CFStringRef kCVPixelFormatContainsAlpha; + +@ffi.Native() +external CFStringRef kCVPixelFormatContainsGrayscale; + +@ffi.Native() +external CFStringRef kCVPixelFormatContainsRGB; + +@ffi.Native() +external final CFStringRef kCVPixelFormatContainsSenselArray; + +@ffi.Native() +external CFStringRef kCVPixelFormatContainsYCbCr; + +@ffi.Native() +external CFStringRef kCVPixelFormatFillExtendedPixelsCallback; + +@ffi.Native() +external CFStringRef kCVPixelFormatFourCC; + +@ffi.Native() +external CFStringRef kCVPixelFormatHorizontalSubsampling; + +@ffi.Native() +external CFStringRef kCVPixelFormatName; + +@ffi.Native() +external final CFStringRef kCVPixelFormatOpenGLCompatibility; + +@ffi.Native() +external CFStringRef kCVPixelFormatOpenGLESCompatibility; + +@ffi.Native() +external CFStringRef kCVPixelFormatOpenGLFormat; + +@ffi.Native() +external CFStringRef kCVPixelFormatOpenGLInternalFormat; + +@ffi.Native() +external CFStringRef kCVPixelFormatOpenGLType; + +@ffi.Native() +external CFStringRef kCVPixelFormatPlanes; + +@ffi.Native() +external final CFStringRef kCVPixelFormatQDCompatibility; + +@ffi.Native() +external CFStringRef kCVPixelFormatVerticalSubsampling; + +@ffi.Native() +external final CVTime kCVZeroTime; + +@ffi.Native() +external CFStringRef kColorSyncACESCGLinearProfile; + +@ffi.Native() +external CFStringRef kColorSyncAdobeRGB1998Profile; + +@ffi.Native() +external CFStringRef kColorSyncBestQuality; + +@ffi.Native() +external CFStringRef kColorSyncBlackPointCompensation; + +@ffi.Native() +external CFStringRef kColorSyncCameraDeviceClass; + +@ffi.Native() +external CFStringRef kColorSyncConversion1DLut; + +@ffi.Native() +external CFStringRef kColorSyncConversion3DLut; + +@ffi.Native() +external CFStringRef kColorSyncConversionBPC; + +@ffi.Native() +external CFStringRef kColorSyncConversionChannelID; + +@ffi.Native() +external CFStringRef kColorSyncConversionGridPoints; + +@ffi.Native() +external CFStringRef kColorSyncConversionInpChan; + +@ffi.Native() +external CFStringRef kColorSyncConversionMatrix; + +@ffi.Native() +external CFStringRef kColorSyncConversionNDLut; + +@ffi.Native() +external CFStringRef kColorSyncConversionOutChan; + +@ffi.Native() +external CFStringRef kColorSyncConversionParamCurve0; + +@ffi.Native() +external CFStringRef kColorSyncConversionParamCurve1; + +@ffi.Native() +external CFStringRef kColorSyncConversionParamCurve2; + +@ffi.Native() +external CFStringRef kColorSyncConversionParamCurve3; + +@ffi.Native() +external CFStringRef kColorSyncConversionParamCurve4; + +@ffi.Native() +external CFStringRef kColorSyncConvertQuality; + +@ffi.Native() +external CFStringRef kColorSyncConvertUseExtendedRange; + +@ffi.Native() +external CFStringRef kColorSyncCustomProfiles; + +@ffi.Native() +external CFStringRef kColorSyncDCIP3Profile; + +@ffi.Native() +external CFStringRef kColorSyncDeviceClass; + +@ffi.Native() +external CFStringRef kColorSyncDeviceDefaultProfileID; + +@ffi.Native() +external CFStringRef kColorSyncDeviceDescription; + +@ffi.Native() +external CFStringRef kColorSyncDeviceDescriptions; + +@ffi.Native() +external CFStringRef kColorSyncDeviceHostScope; + +@ffi.Native() +external CFStringRef kColorSyncDeviceID; + +@ffi.Native() +external CFStringRef kColorSyncDeviceModeDescription; + +@ffi.Native() +external CFStringRef kColorSyncDeviceModeDescriptions; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfileID; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfileIsCurrent; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfileIsDefault; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfileIsFactory; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfileURL; + +@ffi.Native() +external CFStringRef kColorSyncDeviceProfilesNotification; + +@ffi.Native() +external CFStringRef kColorSyncDeviceRegisteredNotification; + +@ffi.Native() +external CFStringRef kColorSyncDeviceUnregisteredNotification; + +@ffi.Native() +external CFStringRef kColorSyncDeviceUserScope; + +@ffi.Native() +external CFStringRef kColorSyncDisplayDeviceClass; + +@ffi.Native() +external CFStringRef kColorSyncDisplayDeviceProfilesNotification; + +@ffi.Native() +external CFStringRef kColorSyncDisplayP3Profile; + +@ffi.Native() +external CFStringRef kColorSyncDraftQuality; + +@ffi.Native() +external CFStringRef kColorSyncExtendedRange; + +@ffi.Native() +external CFStringRef kColorSyncFactoryProfiles; + +@ffi.Native() +external CFStringRef kColorSyncFixedPointRange; + +@ffi.Native() +external CFStringRef kColorSyncGenericCMYKProfile; + +@ffi.Native() +external CFStringRef kColorSyncGenericGrayGamma22Profile; + +@ffi.Native() +external CFStringRef kColorSyncGenericGrayProfile; + +@ffi.Native() +external CFStringRef kColorSyncGenericLabProfile; + +@ffi.Native() +external CFStringRef kColorSyncGenericRGBProfile; + +@ffi.Native() +external CFStringRef kColorSyncGenericXYZProfile; + +@ffi.Native() +external CFStringRef kColorSyncHDRDerivative; + +@ffi.Native() +external CFStringRef kColorSyncHLGDerivative; + +@ffi.Native() +external CFStringRef kColorSyncITUR2020Profile; + +@ffi.Native() +external CFStringRef kColorSyncITUR709Profile; + +@ffi.Native() +external CFStringRef kColorSyncNormalQuality; + +@ffi.Native() +external CFStringRef kColorSyncPQDerivative; + +@ffi.Native() +external CFStringRef kColorSyncPreferredCMM; + +@ffi.Native() +external CFStringRef kColorSyncPrinterDeviceClass; + +@ffi.Native() +external CFStringRef kColorSyncProfile; + +@ffi.Native() +external CFStringRef kColorSyncProfileCacheSeed; + +@ffi.Native() +external CFStringRef kColorSyncProfileClass; + +@ffi.Native() +external CFStringRef kColorSyncProfileColorSpace; + +@ffi.Native() +external CFStringRef kColorSyncProfileComputerDomain; + +@ffi.Native() +external CFStringRef kColorSyncProfileDescription; + +@ffi.Native() +external CFStringRef kColorSyncProfileHeader; + +@ffi.Native() +external CFStringRef kColorSyncProfileHostScope; + +@ffi.Native() +external CFStringRef kColorSyncProfileIsValid; + +@ffi.Native() +external CFStringRef kColorSyncProfileMD5Digest; + +@ffi.Native() +external CFStringRef kColorSyncProfilePCS; + +@ffi.Native() +external CFStringRef kColorSyncProfileRepositoryChangeNotification; + +@ffi.Native() +external CFStringRef kColorSyncProfileURL; + +@ffi.Native() +external CFStringRef kColorSyncProfileUserDomain; + +@ffi.Native() +external CFStringRef kColorSyncProfileUserScope; + +@ffi.Native() +external CFStringRef kColorSyncROMMRGBProfile; + +@ffi.Native() +external CFStringRef kColorSyncRegistrationUpdateWindowServer; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntent; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntentAbsolute; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntentPerceptual; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntentRelative; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntentSaturation; + +@ffi.Native() +external CFStringRef kColorSyncRenderingIntentUseProfileHeader; + +@ffi.Native() +external CFStringRef kColorSyncSRGBProfile; + +@ffi.Native() +external CFStringRef kColorSyncScannerDeviceClass; + +@ffi.Native() +external CFStringRef kColorSyncSigAToB0Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigAToB1Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigAToB2Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigAbstractClass; + +@ffi.Native() +external CFStringRef kColorSyncSigBToA0Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigBToA1Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigBToA2Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigBlueColorantTag; + +@ffi.Native() +external CFStringRef kColorSyncSigBlueTRCTag; + +@ffi.Native() +external CFStringRef kColorSyncSigCmykData; + +@ffi.Native() +external CFStringRef kColorSyncSigColorSpaceClass; + +@ffi.Native() +external CFStringRef kColorSyncSigCopyrightTag; + +@ffi.Native() +external CFStringRef kColorSyncSigDeviceMfgDescTag; + +@ffi.Native() +external CFStringRef kColorSyncSigDeviceModelDescTag; + +@ffi.Native() +external CFStringRef kColorSyncSigDisplayClass; + +@ffi.Native() +external CFStringRef kColorSyncSigGamutTag; + +@ffi.Native() +external CFStringRef kColorSyncSigGrayData; + +@ffi.Native() +external CFStringRef kColorSyncSigGrayTRCTag; + +@ffi.Native() +external CFStringRef kColorSyncSigGreenColorantTag; + +@ffi.Native() +external CFStringRef kColorSyncSigGreenTRCTag; + +@ffi.Native() +external CFStringRef kColorSyncSigInputClass; + +@ffi.Native() +external CFStringRef kColorSyncSigLabData; + +@ffi.Native() +external CFStringRef kColorSyncSigLinkClass; + +@ffi.Native() +external CFStringRef kColorSyncSigMediaBlackPointTag; + +@ffi.Native() +external CFStringRef kColorSyncSigMediaWhitePointTag; + +@ffi.Native() +external CFStringRef kColorSyncSigNamedColor2Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigNamedColorClass; + +@ffi.Native() +external CFStringRef kColorSyncSigOutputClass; + +@ffi.Native() +external CFStringRef kColorSyncSigPreview0Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigPreview1Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigPreview2Tag; + +@ffi.Native() +external CFStringRef kColorSyncSigProfileDescriptionTag; + +@ffi.Native() +external CFStringRef kColorSyncSigProfileSequenceDescTag; + +@ffi.Native() +external CFStringRef kColorSyncSigRedColorantTag; + +@ffi.Native() +external CFStringRef kColorSyncSigRedTRCTag; + +@ffi.Native() +external CFStringRef kColorSyncSigRgbData; + +@ffi.Native() +external CFStringRef kColorSyncSigTechnologyTag; + +@ffi.Native() +external CFStringRef kColorSyncSigViewingCondDescTag; + +@ffi.Native() +external CFStringRef kColorSyncSigViewingConditionsTag; + +@ffi.Native() +external CFStringRef kColorSyncSigXYZData; + +@ffi.Native() +external CFStringRef kColorSyncTransformCodeFragmentMD5; + +@ffi.Native() +external CFStringRef kColorSyncTransformCodeFragmentType; + +@ffi.Native() +external CFStringRef kColorSyncTransformCreator; + +@ffi.Native() +external CFStringRef kColorSyncTransformDeviceToDevice; + +@ffi.Native() +external CFStringRef kColorSyncTransformDeviceToPCS; + +@ffi.Native() +external CFStringRef kColorSyncTransformDstSpace; + +@ffi.Native() +external CFStringRef kColorSyncTransformFullConversionData; + +@ffi.Native() +external CFStringRef kColorSyncTransformGamutCheck; + +@ffi.Native() +external CFStringRef kColorSyncTransformInfo; + +@ffi.Native() +external CFStringRef kColorSyncTransformPCSToDevice; + +@ffi.Native() +external CFStringRef kColorSyncTransformPCSToPCS; + +@ffi.Native() +external CFStringRef kColorSyncTransformParametricConversionData; + +@ffi.Native() +external CFStringRef kColorSyncTransformProfileSequnce; + +@ffi.Native() +external CFStringRef kColorSyncTransformSimplifiedConversionData; + +@ffi.Native() +external CFStringRef kColorSyncTransformSrcSpace; + +@ffi.Native() +external CFStringRef kColorSyncTransformTag; + +@ffi.Native() +external CFStringRef kColorSyncTransformUseITU709OETF; + +@ffi.Native() +external CFStringRef kColorSyncWaitForCacheReply; + +@ffi.Native() +external CFStringRef kColorSyncWebSafeColorsProfile; + +@ffi.Native() +external CFStringRef kDADiskDescriptionBusNameKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionBusPathKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceGUIDKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceInternalKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceModelKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDevicePathKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceProtocolKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceRevisionKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceTDMLockedKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceUnitKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionDeviceVendorKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionFSKitPrefix; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaBSDMajorKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaBSDMinorKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaBSDNameKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaBSDUnitKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaBlockSizeKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaContentKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaEjectableKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaEncryptedKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaEncryptionDetailKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaIconKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaKindKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaLeafKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaNameKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaPathKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaRemovableKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaSizeKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaTypeKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaUUIDKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaWholeKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionMediaWritableKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionRepairRunningKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeKindKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeMountableKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeNameKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeNetworkKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumePathKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeTypeKey; + +@ffi.Native() +external CFStringRef kDADiskDescriptionVolumeUUIDKey; + +@ffi.Native() +external final CFStringRef kFSOperationBytesCompleteKey; + +@ffi.Native() +external final CFStringRef kFSOperationBytesRemainingKey; + +@ffi.Native() +external final CFStringRef kFSOperationObjectsCompleteKey; + +@ffi.Native() +external final CFStringRef kFSOperationObjectsRemainingKey; + +@ffi.Native() +external final CFStringRef kFSOperationThroughputKey; + +@ffi.Native() +external final CFStringRef kFSOperationTotalBytesKey; + +@ffi.Native() +external final CFStringRef kFSOperationTotalObjectsKey; + +@ffi.Native() +external final CFStringRef kFSOperationTotalUserVisibleObjectsKey; + +@ffi.Native() +external final CFStringRef kFSOperationUserVisibleObjectsCompleteKey; + +@ffi.Native() +external final CFStringRef kFSOperationUserVisibleObjectsRemainingKey; + +@ffi.Native() +external CFStringRef kIIOCameraExtrinsics_CoordinateSystemID; + +@ffi.Native() +external CFStringRef kIIOCameraExtrinsics_Position; + +@ffi.Native() +external CFStringRef kIIOCameraExtrinsics_Rotation; + +@ffi.Native() +external CFStringRef kIIOCameraModelType_GenericPinhole; + +@ffi.Native() +external CFStringRef kIIOCameraModelType_SimplifiedPinhole; + +@ffi.Native() +external CFStringRef kIIOCameraModel_Intrinsics; + +@ffi.Native() +external CFStringRef kIIOCameraModel_ModelType; + +@ffi.Native() +external CFStringRef kIIOMetadata_CameraExtrinsicsKey; + +@ffi.Native() +external CFStringRef kIIOMetadata_CameraModelKey; + +@ffi.Native() +external CFStringRef kIIOMonoscopicImageLocation_Center; + +@ffi.Native() +external CFStringRef kIIOMonoscopicImageLocation_Left; + +@ffi.Native() +external CFStringRef kIIOMonoscopicImageLocation_Right; + +@ffi.Native() +external CFStringRef kIIOMonoscopicImageLocation_Unspecified; + +@ffi.Native() +external CFStringRef kIIOStereoAggressors_Severity; + +@ffi.Native() +external CFStringRef kIIOStereoAggressors_SubTypeURI; + +@ffi.Native() +external CFStringRef kIIOStereoAggressors_Type; + +@ffi.Native() +external final int kIOMainPortDefault; + +@ffi.Native() +external final int kIOMasterPortDefault; + +@ffi.Native() +external CFStringRef kIOSurfaceAllocSize; + +@ffi.Native() +external CFStringRef kIOSurfaceBytesPerElement; + +@ffi.Native() +external CFStringRef kIOSurfaceBytesPerRow; + +@ffi.Native() +external CFStringRef kIOSurfaceCacheMode; + +@ffi.Native() +external CFStringRef kIOSurfaceColorSpace; + +@ffi.Native() +external CFStringRef kIOSurfaceContentHeadroom; + +@ffi.Native() +external CFStringRef kIOSurfaceElementHeight; + +@ffi.Native() +external CFStringRef kIOSurfaceElementWidth; + +@ffi.Native() +external CFStringRef kIOSurfaceHeight; + +@ffi.Native() +external CFStringRef kIOSurfaceICCProfile; + +@ffi.Native() +external CFStringRef kIOSurfaceIsGlobal; + +@ffi.Native() +external CFStringRef kIOSurfaceName; + +@ffi.Native() +external CFStringRef kIOSurfaceOffset; + +@ffi.Native() +external CFStringRef kIOSurfacePixelFormat; + +@ffi.Native() +external CFStringRef kIOSurfacePixelSizeCastingAllowed; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneBase; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneBitsPerElement; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneBytesPerElement; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneBytesPerRow; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneComponentBitDepths; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneComponentBitOffsets; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneComponentNames; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneComponentRanges; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneComponentTypes; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneElementHeight; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneElementWidth; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneHeight; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneInfo; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneOffset; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneSize; + +@ffi.Native() +external CFStringRef kIOSurfacePlaneWidth; + +@ffi.Native() +external CFStringRef kIOSurfaceSubsampling; + +@ffi.Native() +external CFStringRef kIOSurfaceWidth; + +@ffi.Native() +external final CFStringRef kLSItemContentType; + +@ffi.Native() +external final CFStringRef kLSItemDisplayKind; + +@ffi.Native() +external final CFStringRef kLSItemDisplayName; + +@ffi.Native() +external final CFStringRef kLSItemExtension; + +@ffi.Native() +external final CFStringRef kLSItemExtensionIsHidden; + +@ffi.Native() +external final CFStringRef kLSItemFileCreator; + +@ffi.Native() +external final CFStringRef kLSItemFileType; + +@ffi.Native() +external final CFStringRef kLSItemIsInvisible; + +@ffi.Native() +external final CFStringRef kLSItemQuarantineProperties; + +@ffi.Native() +external final CFStringRef kLSItemRoleHandlerDisplayName; + +@ffi.Native() +external CFStringRef kLSQuarantineAgentBundleIdentifierKey; + +@ffi.Native() +external CFStringRef kLSQuarantineAgentNameKey; + +@ffi.Native() +external CFStringRef kLSQuarantineDataURLKey; + +@ffi.Native() +external CFStringRef kLSQuarantineOriginURLKey; + +@ffi.Native() +external CFStringRef kLSQuarantineTimeStampKey; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeCalendarEventAttachment; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeEmailAttachment; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeInstantMessageAttachment; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeKey; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeOtherAttachment; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeOtherDownload; + +@ffi.Native() +external CFStringRef kLSQuarantineTypeWebDownload; + +@ffi.Native() +external CFStringRef kLSSharedFileListFavoriteItems; + +@ffi.Native() +external CFStringRef kLSSharedFileListFavoriteVolumes; + +@ffi.Native() +external CFStringRef kLSSharedFileListGlobalLoginItems; + +@ffi.Native() +external LSSharedFileListItemRef kLSSharedFileListItemBeforeFirst; + +@ffi.Native() +external CFStringRef kLSSharedFileListItemHidden; + +@ffi.Native() +external LSSharedFileListItemRef kLSSharedFileListItemLast; + +@ffi.Native() +external CFStringRef kLSSharedFileListLoginItemHidden; + +@ffi.Native() +external CFStringRef kLSSharedFileListRecentApplicationItems; + +@ffi.Native() +external CFStringRef kLSSharedFileListRecentDocumentItems; + +@ffi.Native() +external CFStringRef kLSSharedFileListRecentItemsMaxAmount; + +@ffi.Native() +external CFStringRef kLSSharedFileListRecentServerItems; + +@ffi.Native() +external CFStringRef kLSSharedFileListSessionLoginItems; + +@ffi.Native() +external CFStringRef kLSSharedFileListVolumesComputerVisible; + +@ffi.Native() +external CFStringRef kLSSharedFileListVolumesIDiskVisible; + +@ffi.Native() +external CFStringRef kLSSharedFileListVolumesNetworkVisible; + +@ffi.Native() +external final CFStringRef kMDAttributeAllValues; + +@ffi.Native() +external final CFStringRef kMDAttributeDisplayValues; + +@ffi.Native() +external final CFStringRef kMDAttributeMultiValued; + +@ffi.Native() +external final CFStringRef kMDAttributeName; + +@ffi.Native() +external final CFStringRef kMDAttributeReadOnlyValues; + +@ffi.Native() +external final CFStringRef kMDAttributeType; + +@ffi.Native() +external final CFStringRef kMDExporterAvaliable; + +@ffi.Native() +external final CFStringRef kMDItemAcquisitionMake; + +@ffi.Native() +external final CFStringRef kMDItemAcquisitionModel; + +@ffi.Native() +external final CFStringRef kMDItemAlbum; + +@ffi.Native() +external final CFStringRef kMDItemAltitude; + +@ffi.Native() +external final CFStringRef kMDItemAperture; + +@ffi.Native() +external final CFStringRef kMDItemAppleLoopDescriptors; + +@ffi.Native() +external final CFStringRef kMDItemAppleLoopsKeyFilterType; + +@ffi.Native() +external final CFStringRef kMDItemAppleLoopsLoopMode; + +@ffi.Native() +external final CFStringRef kMDItemAppleLoopsRootKey; + +@ffi.Native() +external final CFStringRef kMDItemApplicationCategories; + +@ffi.Native() +external final CFStringRef kMDItemAttributeChangeDate; + +@ffi.Native() +external final CFStringRef kMDItemAudiences; + +@ffi.Native() +external final CFStringRef kMDItemAudioBitRate; + +@ffi.Native() +external final CFStringRef kMDItemAudioChannelCount; + +@ffi.Native() +external final CFStringRef kMDItemAudioEncodingApplication; + +@ffi.Native() +external final CFStringRef kMDItemAudioSampleRate; + +@ffi.Native() +external final CFStringRef kMDItemAudioTrackNumber; + +@ffi.Native() +external final CFStringRef kMDItemAuthorAddresses; + +@ffi.Native() +external final CFStringRef kMDItemAuthorEmailAddresses; + +@ffi.Native() +external final CFStringRef kMDItemAuthors; + +@ffi.Native() +external final CFStringRef kMDItemBitsPerSample; + +@ffi.Native() +external final CFStringRef kMDItemCFBundleIdentifier; + +@ffi.Native() +external final CFStringRef kMDItemCameraOwner; + +@ffi.Native() +external final CFStringRef kMDItemCity; + +@ffi.Native() +external final CFStringRef kMDItemCodecs; + +@ffi.Native() +external final CFStringRef kMDItemColorSpace; + +@ffi.Native() +external final CFStringRef kMDItemComment; + +@ffi.Native() +external final CFStringRef kMDItemComposer; + +@ffi.Native() +external final CFStringRef kMDItemContactKeywords; + +@ffi.Native() +external final CFStringRef kMDItemContentCreationDate; + +@ffi.Native() +external final CFStringRef kMDItemContentModificationDate; + +@ffi.Native() +external final CFStringRef kMDItemContentType; + +@ffi.Native() +external final CFStringRef kMDItemContentTypeTree; + +@ffi.Native() +external final CFStringRef kMDItemContributors; + +@ffi.Native() +external final CFStringRef kMDItemCopyright; + +@ffi.Native() +external final CFStringRef kMDItemCountry; + +@ffi.Native() +external final CFStringRef kMDItemCoverage; + +@ffi.Native() +external final CFStringRef kMDItemCreator; + +@ffi.Native() +external final CFStringRef kMDItemDateAdded; + +@ffi.Native() +external final CFStringRef kMDItemDeliveryType; + +@ffi.Native() +external final CFStringRef kMDItemDescription; + +@ffi.Native() +external final CFStringRef kMDItemDirector; + +@ffi.Native() +external final CFStringRef kMDItemDisplayName; + +@ffi.Native() +external final CFStringRef kMDItemDownloadedDate; + +@ffi.Native() +external final CFStringRef kMDItemDueDate; + +@ffi.Native() +external final CFStringRef kMDItemDurationSeconds; + +@ffi.Native() +external final CFStringRef kMDItemEXIFGPSVersion; + +@ffi.Native() +external final CFStringRef kMDItemEXIFVersion; + +@ffi.Native() +external final CFStringRef kMDItemEditors; + +@ffi.Native() +external final CFStringRef kMDItemEmailAddresses; + +@ffi.Native() +external final CFStringRef kMDItemEncodingApplications; + +@ffi.Native() +external final CFStringRef kMDItemExecutableArchitectures; + +@ffi.Native() +external final CFStringRef kMDItemExecutablePlatform; + +@ffi.Native() +external final CFStringRef kMDItemExposureMode; + +@ffi.Native() +external final CFStringRef kMDItemExposureProgram; + +@ffi.Native() +external final CFStringRef kMDItemExposureTimeSeconds; + +@ffi.Native() +external final CFStringRef kMDItemExposureTimeString; + +@ffi.Native() +external final CFStringRef kMDItemFNumber; + +@ffi.Native() +external final CFStringRef kMDItemFSContentChangeDate; + +@ffi.Native() +external final CFStringRef kMDItemFSCreationDate; + +@ffi.Native() +external final CFStringRef kMDItemFSExists; + +@ffi.Native() +external final CFStringRef kMDItemFSHasCustomIcon; + +@ffi.Native() +external final CFStringRef kMDItemFSInvisible; + +@ffi.Native() +external final CFStringRef kMDItemFSIsExtensionHidden; + +@ffi.Native() +external final CFStringRef kMDItemFSIsReadable; + +@ffi.Native() +external final CFStringRef kMDItemFSIsStationery; + +@ffi.Native() +external final CFStringRef kMDItemFSIsWriteable; + +@ffi.Native() +external final CFStringRef kMDItemFSLabel; + +@ffi.Native() +external final CFStringRef kMDItemFSName; + +@ffi.Native() +external final CFStringRef kMDItemFSNodeCount; + +@ffi.Native() +external final CFStringRef kMDItemFSOwnerGroupID; + +@ffi.Native() +external final CFStringRef kMDItemFSOwnerUserID; + +@ffi.Native() +external final CFStringRef kMDItemFSSize; + +@ffi.Native() +external final CFStringRef kMDItemFinderComment; + +@ffi.Native() +external final CFStringRef kMDItemFlashOnOff; + +@ffi.Native() +external final CFStringRef kMDItemFocalLength; + +@ffi.Native() +external final CFStringRef kMDItemFocalLength35mm; + +@ffi.Native() +external final CFStringRef kMDItemFonts; + +@ffi.Native() +external final CFStringRef kMDItemGPSAreaInformation; + +@ffi.Native() +external final CFStringRef kMDItemGPSDOP; + +@ffi.Native() +external final CFStringRef kMDItemGPSDateStamp; + +@ffi.Native() +external final CFStringRef kMDItemGPSDestBearing; + +@ffi.Native() +external final CFStringRef kMDItemGPSDestDistance; + +@ffi.Native() +external final CFStringRef kMDItemGPSDestLatitude; + +@ffi.Native() +external final CFStringRef kMDItemGPSDestLongitude; + +@ffi.Native() +external final CFStringRef kMDItemGPSDifferental; + +@ffi.Native() +external final CFStringRef kMDItemGPSMapDatum; + +@ffi.Native() +external final CFStringRef kMDItemGPSMeasureMode; + +@ffi.Native() +external final CFStringRef kMDItemGPSProcessingMethod; + +@ffi.Native() +external final CFStringRef kMDItemGPSStatus; + +@ffi.Native() +external final CFStringRef kMDItemGPSTrack; + +@ffi.Native() +external final CFStringRef kMDItemGenre; + +@ffi.Native() +external final CFStringRef kMDItemHTMLContent; + +@ffi.Native() +external final CFStringRef kMDItemHasAlphaChannel; + +@ffi.Native() +external final CFStringRef kMDItemHeadline; + +@ffi.Native() +external final CFStringRef kMDItemISOSpeed; + +@ffi.Native() +external final CFStringRef kMDItemIdentifier; + +@ffi.Native() +external final CFStringRef kMDItemImageDirection; + +@ffi.Native() +external final CFStringRef kMDItemInformation; + +@ffi.Native() +external final CFStringRef kMDItemInstantMessageAddresses; + +@ffi.Native() +external final CFStringRef kMDItemInstructions; + +@ffi.Native() +external final CFStringRef kMDItemIsApplicationManaged; + +@ffi.Native() +external final CFStringRef kMDItemIsGeneralMIDISequence; + +@ffi.Native() +external final CFStringRef kMDItemIsLikelyJunk; + +@ffi.Native() +external final CFStringRef kMDItemKeySignature; + +@ffi.Native() +external final CFStringRef kMDItemKeywords; + +@ffi.Native() +external final CFStringRef kMDItemKind; + +@ffi.Native() +external final CFStringRef kMDItemLabelID; + +@ffi.Native() +external final CFStringRef kMDItemLabelIcon; + +@ffi.Native() +external final CFStringRef kMDItemLabelKind; + +@ffi.Native() +external final CFStringRef kMDItemLabelUUID; + +@ffi.Native() +external final CFStringRef kMDItemLanguages; + +@ffi.Native() +external final CFStringRef kMDItemLastUsedDate; + +@ffi.Native() +external final CFStringRef kMDItemLatitude; + +@ffi.Native() +external final CFStringRef kMDItemLayerNames; + +@ffi.Native() +external final CFStringRef kMDItemLensModel; + +@ffi.Native() +external final CFStringRef kMDItemLongitude; + +@ffi.Native() +external final CFStringRef kMDItemLyricist; + +@ffi.Native() +external final CFStringRef kMDItemMaxAperture; + +@ffi.Native() +external final CFStringRef kMDItemMediaExtensions; + +@ffi.Native() +external final CFStringRef kMDItemMediaTypes; + +@ffi.Native() +external final CFStringRef kMDItemMeteringMode; + +@ffi.Native() +external final CFStringRef kMDItemMusicalGenre; + +@ffi.Native() +external final CFStringRef kMDItemMusicalInstrumentCategory; + +@ffi.Native() +external final CFStringRef kMDItemMusicalInstrumentName; + +@ffi.Native() +external final CFStringRef kMDItemNamedLocation; + +@ffi.Native() +external final CFStringRef kMDItemNumberOfPages; + +@ffi.Native() +external final CFStringRef kMDItemOrganizations; + +@ffi.Native() +external final CFStringRef kMDItemOrientation; + +@ffi.Native() +external final CFStringRef kMDItemOriginalFormat; + +@ffi.Native() +external final CFStringRef kMDItemOriginalSource; + +@ffi.Native() +external final CFStringRef kMDItemPageHeight; + +@ffi.Native() +external final CFStringRef kMDItemPageWidth; + +@ffi.Native() +external final CFStringRef kMDItemParticipants; + +@ffi.Native() +external final CFStringRef kMDItemPath; + +@ffi.Native() +external final CFStringRef kMDItemPerformers; + +@ffi.Native() +external final CFStringRef kMDItemPhoneNumbers; + +@ffi.Native() +external final CFStringRef kMDItemPixelCount; + +@ffi.Native() +external final CFStringRef kMDItemPixelHeight; + +@ffi.Native() +external final CFStringRef kMDItemPixelWidth; + +@ffi.Native() +external final CFStringRef kMDItemProducer; + +@ffi.Native() +external final CFStringRef kMDItemProfileName; + +@ffi.Native() +external final CFStringRef kMDItemProjects; + +@ffi.Native() +external final CFStringRef kMDItemPublishers; + +@ffi.Native() +external final CFStringRef kMDItemRecipientAddresses; + +@ffi.Native() +external final CFStringRef kMDItemRecipientEmailAddresses; + +@ffi.Native() +external final CFStringRef kMDItemRecipients; + +@ffi.Native() +external final CFStringRef kMDItemRecordingDate; + +@ffi.Native() +external final CFStringRef kMDItemRecordingYear; + +@ffi.Native() +external final CFStringRef kMDItemRedEyeOnOff; + +@ffi.Native() +external final CFStringRef kMDItemResolutionHeightDPI; + +@ffi.Native() +external final CFStringRef kMDItemResolutionWidthDPI; + +@ffi.Native() +external final CFStringRef kMDItemRights; + +@ffi.Native() +external final CFStringRef kMDItemSecurityMethod; + +@ffi.Native() +external final CFStringRef kMDItemSpeed; + +@ffi.Native() +external final CFStringRef kMDItemStarRating; + +@ffi.Native() +external final CFStringRef kMDItemStateOrProvince; + +@ffi.Native() +external final CFStringRef kMDItemStreamable; + +@ffi.Native() +external final CFStringRef kMDItemSubject; + +@ffi.Native() +external final CFStringRef kMDItemSupportFileType; + +@ffi.Native() +external final CFStringRef kMDItemTempo; + +@ffi.Native() +external final CFStringRef kMDItemTextContent; + +@ffi.Native() +external final CFStringRef kMDItemTheme; + +@ffi.Native() +external final CFStringRef kMDItemTimeSignature; + +@ffi.Native() +external final CFStringRef kMDItemTimestamp; + +@ffi.Native() +external final CFStringRef kMDItemTitle; + +@ffi.Native() +external final CFStringRef kMDItemTotalBitRate; + +@ffi.Native() +external final CFStringRef kMDItemURL; + +@ffi.Native() +external final CFStringRef kMDItemVersion; + +@ffi.Native() +external final CFStringRef kMDItemVideoBitRate; + +@ffi.Native() +external final CFStringRef kMDItemWhereFroms; + +@ffi.Native() +external final CFStringRef kMDItemWhiteBalance; + +@ffi.Native() +external final CFStringRef kMDItemXMPCredit; + +@ffi.Native() +external final CFStringRef kMDItemXMPDigitalSourceType; + +@ffi.Native() +external final CFStringRef kMDLabelAddedNotification; + +@ffi.Native() +external CFStringRef kMDLabelBundleURL; + +@ffi.Native() +external final CFStringRef kMDLabelChangedNotification; + +@ffi.Native() +external CFStringRef kMDLabelContentChangeDate; + +@ffi.Native() +external CFStringRef kMDLabelDisplayName; + +@ffi.Native() +external CFStringRef kMDLabelIconData; + +@ffi.Native() +external CFStringRef kMDLabelIconUUID; + +@ffi.Native() +external CFStringRef kMDLabelIsMutuallyExclusiveSetMember; + +@ffi.Native() +external CFStringRef kMDLabelKind; + +@ffi.Native() +external CFStringRef kMDLabelKindIsMutuallyExclusiveSetKey; + +@ffi.Native() +external CFStringRef kMDLabelKindVisibilityKey; + +@ffi.Native() +external final CFStringRef kMDLabelRemovedNotification; + +@ffi.Native() +external CFStringRef kMDLabelSetsFinderColor; + +@ffi.Native() +external CFStringRef kMDLabelUUID; + +@ffi.Native() +external CFStringRef kMDLabelVisibility; + +@ffi.Native() +external CFStringRef kMDPrivateVisibility; + +@ffi.Native() +external CFStringRef kMDPublicVisibility; + +@ffi.Native() +external final CFStringRef kMDQueryDidFinishNotification; + +@ffi.Native() +external final CFStringRef kMDQueryDidUpdateNotification; + +@ffi.Native() +external final CFStringRef kMDQueryProgressNotification; + +@ffi.Native() +external final CFStringRef kMDQueryResultContentRelevance; + +@ffi.Native() +external final CFStringRef kMDQueryScopeAllIndexed; + +@ffi.Native() +external final CFStringRef kMDQueryScopeComputer; + +@ffi.Native() +external final CFStringRef kMDQueryScopeComputerIndexed; + +@ffi.Native() +external final CFStringRef kMDQueryScopeHome; + +@ffi.Native() +external final CFStringRef kMDQueryScopeNetwork; + +@ffi.Native() +external final CFStringRef kMDQueryScopeNetworkIndexed; + +@ffi.Native() +external final CFStringRef kMDQueryUpdateAddedItems; + +@ffi.Native() +external final CFStringRef kMDQueryUpdateChangedItems; + +@ffi.Native() +external final CFStringRef kMDQueryUpdateRemovedItems; + +@ffi.Native() +external final CFStringRef kSKEndTermChars; + +@ffi.Native() +external final CFStringRef kSKLanguageTypes; + +@ffi.Native() +external final CFStringRef kSKMaximumTerms; + +@ffi.Native() +external final CFStringRef kSKMinTermLength; + +@ffi.Native() +external final CFStringRef kSKProximityIndexing; + +@ffi.Native() +external final CFStringRef kSKStartTermChars; + +@ffi.Native() +external final CFStringRef kSKStopWords; + +@ffi.Native() +external final CFStringRef kSKSubstitutions; + +@ffi.Native() +external final CFStringRef kSKTermChars; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_3DES_fallback; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_ATSv1; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_ATSv1_noPFS; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_RC4_fallback; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_TLSv1_3DES_fallback; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_TLSv1_RC4_fallback; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_TLSv1_fallback; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_anonymous; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_default; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_legacy; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_legacy_DHE; + +@ffi.Native() +external CFStringRef kSSLSessionConfig_standard; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationAny; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationChangeACL; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationChangeOwner; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationDecrypt; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationDelete; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationDerive; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationEncrypt; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationExportClear; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationExportWrapped; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationGenKey; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationImportClear; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationImportWrapped; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationIntegrity; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainCreate; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainDelete; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainItemDelete; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainItemInsert; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainItemModify; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationKeychainItemRead; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationLogin; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationMAC; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationPartitionID; + +@ffi.Native() +external CFStringRef kSecACLAuthorizationSign; + +@ffi.Native() +external CFStringRef kSecAttrAccess; + +@ffi.Native() +external CFStringRef kSecAttrAccessControl; + +@ffi.Native() +external CFStringRef kSecAttrAccessGroup; + +@ffi.Native() +external CFStringRef kSecAttrAccessGroupToken; + +@ffi.Native() +external CFStringRef kSecAttrAccessible; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleAfterFirstUnlock; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleAlways; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleAlwaysThisDeviceOnly; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleWhenUnlocked; + +@ffi.Native() +external CFStringRef kSecAttrAccessibleWhenUnlockedThisDeviceOnly; + +@ffi.Native() +external CFStringRef kSecAttrAccount; + +@ffi.Native() +external CFStringRef kSecAttrApplicationLabel; + +@ffi.Native() +external CFStringRef kSecAttrApplicationTag; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationType; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeDPA; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeDefault; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeHTMLForm; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeHTTPBasic; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeHTTPDigest; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeMSN; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeNTLM; + +@ffi.Native() +external CFStringRef kSecAttrAuthenticationTypeRPA; + +@ffi.Native() +external CFStringRef kSecAttrCanDecrypt; + +@ffi.Native() +external CFStringRef kSecAttrCanDerive; + +@ffi.Native() +external CFStringRef kSecAttrCanEncrypt; + +@ffi.Native() +external CFStringRef kSecAttrCanSign; + +@ffi.Native() +external CFStringRef kSecAttrCanUnwrap; + +@ffi.Native() +external CFStringRef kSecAttrCanVerify; + +@ffi.Native() +external CFStringRef kSecAttrCanWrap; + +@ffi.Native() +external CFStringRef kSecAttrCertificateEncoding; + +@ffi.Native() +external CFStringRef kSecAttrCertificateType; + +@ffi.Native() +external CFStringRef kSecAttrComment; + +@ffi.Native() +external CFStringRef kSecAttrCreationDate; + +@ffi.Native() +external CFStringRef kSecAttrCreator; + +@ffi.Native() +external CFStringRef kSecAttrDescription; + +@ffi.Native() +external CFStringRef kSecAttrEffectiveKeySize; + +@ffi.Native() +external CFStringRef kSecAttrGeneric; + +@ffi.Native() +external CFStringRef kSecAttrIsExtractable; + +@ffi.Native() +external CFStringRef kSecAttrIsInvisible; + +@ffi.Native() +external CFStringRef kSecAttrIsNegative; + +@ffi.Native() +external CFStringRef kSecAttrIsPermanent; + +@ffi.Native() +external CFStringRef kSecAttrIsSensitive; + +@ffi.Native() +external CFStringRef kSecAttrIssuer; + +@ffi.Native() +external CFStringRef kSecAttrKeyClass; + +@ffi.Native() +external CFStringRef kSecAttrKeyClassPrivate; + +@ffi.Native() +external CFStringRef kSecAttrKeyClassPublic; + +@ffi.Native() +external CFStringRef kSecAttrKeyClassSymmetric; + +@ffi.Native() +external CFStringRef kSecAttrKeySizeInBits; + +@ffi.Native() +external CFStringRef kSecAttrKeyType; + +@ffi.Native() +external CFStringRef kSecAttrKeyType3DES; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeAES; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeCAST; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeDES; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeDSA; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeEC; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeECDSA; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeECSECPrimeRandom; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeRC2; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeRC4; + +@ffi.Native() +external CFStringRef kSecAttrKeyTypeRSA; + +@ffi.Native() +external CFStringRef kSecAttrLabel; + +@ffi.Native() +external CFStringRef kSecAttrModificationDate; + +@ffi.Native() +external CFStringRef kSecAttrPRF; + +@ffi.Native() +external CFStringRef kSecAttrPRFHmacAlgSHA1; + +@ffi.Native() +external CFStringRef kSecAttrPRFHmacAlgSHA224; + +@ffi.Native() +external CFStringRef kSecAttrPRFHmacAlgSHA256; + +@ffi.Native() +external CFStringRef kSecAttrPRFHmacAlgSHA384; + +@ffi.Native() +external CFStringRef kSecAttrPRFHmacAlgSHA512; + +@ffi.Native() +external CFStringRef kSecAttrPath; + +@ffi.Native() +external CFStringRef kSecAttrPersistantReference; + +@ffi.Native() +external CFStringRef kSecAttrPersistentReference; + +@ffi.Native() +external CFStringRef kSecAttrPort; + +@ffi.Native() +external CFStringRef kSecAttrProtocol; + +@ffi.Native() +external CFStringRef kSecAttrProtocolAFP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolAppleTalk; + +@ffi.Native() +external CFStringRef kSecAttrProtocolDAAP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolEPPC; + +@ffi.Native() +external CFStringRef kSecAttrProtocolFTP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolFTPAccount; + +@ffi.Native() +external CFStringRef kSecAttrProtocolFTPProxy; + +@ffi.Native() +external CFStringRef kSecAttrProtocolFTPS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolHTTP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolHTTPProxy; + +@ffi.Native() +external CFStringRef kSecAttrProtocolHTTPS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolHTTPSProxy; + +@ffi.Native() +external CFStringRef kSecAttrProtocolIMAP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolIMAPS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolIPP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolIRC; + +@ffi.Native() +external CFStringRef kSecAttrProtocolIRCS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolLDAP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolLDAPS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolNNTP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolNNTPS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolPOP3; + +@ffi.Native() +external CFStringRef kSecAttrProtocolPOP3S; + +@ffi.Native() +external CFStringRef kSecAttrProtocolRTSP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolRTSPProxy; + +@ffi.Native() +external CFStringRef kSecAttrProtocolSMB; + +@ffi.Native() +external CFStringRef kSecAttrProtocolSMTP; + +@ffi.Native() +external CFStringRef kSecAttrProtocolSOCKS; + +@ffi.Native() +external CFStringRef kSecAttrProtocolSSH; + +@ffi.Native() +external CFStringRef kSecAttrProtocolTelnet; + +@ffi.Native() +external CFStringRef kSecAttrProtocolTelnetS; + +@ffi.Native() +external CFStringRef kSecAttrPublicKeyHash; + +@ffi.Native() +external CFStringRef kSecAttrRounds; + +@ffi.Native() +external CFStringRef kSecAttrSalt; + +@ffi.Native() +external CFStringRef kSecAttrSecurityDomain; + +@ffi.Native() +external CFStringRef kSecAttrSerialNumber; + +@ffi.Native() +external CFStringRef kSecAttrServer; + +@ffi.Native() +external CFStringRef kSecAttrService; + +@ffi.Native() +external CFStringRef kSecAttrSubject; + +@ffi.Native() +external CFStringRef kSecAttrSubjectKeyID; + +@ffi.Native() +external CFStringRef kSecAttrSyncViewHint; + +@ffi.Native() +external CFStringRef kSecAttrSynchronizable; + +@ffi.Native() +external CFStringRef kSecAttrSynchronizableAny; + +@ffi.Native() +external CFStringRef kSecAttrTokenID; + +@ffi.Native() +external CFStringRef kSecAttrTokenIDSecureEnclave; + +@ffi.Native() +external CFStringRef kSecAttrType; + +@ffi.Native() +external CFStringRef kSecBase32Encoding; + +@ffi.Native() +external CFStringRef kSecBase64Encoding; + +@ffi.Native() +external CFStringRef kSecCFErrorArchitecture; + +@ffi.Native() +external CFStringRef kSecCFErrorGuestAttributes; + +@ffi.Native() +external CFStringRef kSecCFErrorInfoPlist; + +@ffi.Native() +external CFStringRef kSecCFErrorPath; + +@ffi.Native() +external CFStringRef kSecCFErrorPattern; + +@ffi.Native() +external CFStringRef kSecCFErrorRequirementSyntax; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceAdded; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceAltered; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceMissing; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceRecursive; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceSeal; + +@ffi.Native() +external CFStringRef kSecCFErrorResourceSideband; + +@ffi.Native() +external CFStringRef kSecClass; + +@ffi.Native() +external CFStringRef kSecClassCertificate; + +@ffi.Native() +external CFStringRef kSecClassGenericPassword; + +@ffi.Native() +external CFStringRef kSecClassIdentity; + +@ffi.Native() +external CFStringRef kSecClassInternetPassword; + +@ffi.Native() +external CFStringRef kSecClassKey; + +@ffi.Native() +external CFStringRef kSecCodeAttributeArchitecture; + +@ffi.Native() +external CFStringRef kSecCodeAttributeBundleVersion; + +@ffi.Native() +external CFStringRef kSecCodeAttributeSubarchitecture; + +@ffi.Native() +external CFStringRef kSecCodeAttributeUniversalFileOffset; + +@ffi.Native() +external CFStringRef kSecCodeInfoCMS; + +@ffi.Native() +external CFStringRef kSecCodeInfoCdHashes; + +@ffi.Native() +external CFStringRef kSecCodeInfoCertificates; + +@ffi.Native() +external CFStringRef kSecCodeInfoChangedFiles; + +@ffi.Native() +external CFStringRef kSecCodeInfoDefaultDesignatedLightweightCodeRequirement; + +@ffi.Native() +external CFStringRef kSecCodeInfoDesignatedRequirement; + +@ffi.Native() +external CFStringRef kSecCodeInfoDigestAlgorithm; + +@ffi.Native() +external CFStringRef kSecCodeInfoDigestAlgorithms; + +@ffi.Native() +external CFStringRef kSecCodeInfoEntitlements; + +@ffi.Native() +external CFStringRef kSecCodeInfoEntitlementsDict; + +@ffi.Native() +external CFStringRef kSecCodeInfoFlags; + +@ffi.Native() +external CFStringRef kSecCodeInfoFormat; + +@ffi.Native() +external CFStringRef kSecCodeInfoIdentifier; + +@ffi.Native() +external CFStringRef kSecCodeInfoImplicitDesignatedRequirement; + +@ffi.Native() +external CFStringRef kSecCodeInfoMainExecutable; + +@ffi.Native() +external CFStringRef kSecCodeInfoPList; + +@ffi.Native() +external CFStringRef kSecCodeInfoPlatformIdentifier; + +@ffi.Native() +external CFStringRef kSecCodeInfoRequirementData; + +@ffi.Native() +external CFStringRef kSecCodeInfoRequirements; + +@ffi.Native() +external CFStringRef kSecCodeInfoRuntimeVersion; + +@ffi.Native() +external CFStringRef kSecCodeInfoSource; + +@ffi.Native() +external CFStringRef kSecCodeInfoStapledNotarizationTicket; + +@ffi.Native() +external CFStringRef kSecCodeInfoStatus; + +@ffi.Native() +external CFStringRef kSecCodeInfoTeamIdentifier; + +@ffi.Native() +external CFStringRef kSecCodeInfoTime; + +@ffi.Native() +external CFStringRef kSecCodeInfoTimestamp; + +@ffi.Native() +external CFStringRef kSecCodeInfoTrust; + +@ffi.Native() +external CFStringRef kSecCodeInfoUnique; + +@ffi.Native() +external CFStringRef kSecCompressionRatio; + +@ffi.Native() +external CFStringRef kSecDecodeTypeAttribute; + +@ffi.Native() +external CFStringRef kSecDigestHMACKeyAttribute; + +@ffi.Native() +external CFStringRef kSecDigestHMACMD5; + +@ffi.Native() +external CFStringRef kSecDigestHMACSHA1; + +@ffi.Native() +external CFStringRef kSecDigestHMACSHA2; + +@ffi.Native() +external CFStringRef kSecDigestLengthAttribute; + +@ffi.Native() +external CFStringRef kSecDigestMD2; + +@ffi.Native() +external CFStringRef kSecDigestMD4; + +@ffi.Native() +external CFStringRef kSecDigestMD5; + +@ffi.Native() +external CFStringRef kSecDigestSHA1; + +@ffi.Native() +external CFStringRef kSecDigestSHA2; + +@ffi.Native() +external CFStringRef kSecDigestTypeAttribute; + +@ffi.Native() +external CFStringRef kSecEncodeLineLengthAttribute; + +@ffi.Native() +external CFStringRef kSecEncodeTypeAttribute; + +@ffi.Native() +external CFStringRef kSecEncryptKey; + +@ffi.Native() +external CFStringRef kSecEncryptionMode; + +@ffi.Native() +external CFStringRef kSecGuestAttributeArchitecture; + +@ffi.Native() +external CFStringRef kSecGuestAttributeAudit; + +@ffi.Native() +external CFStringRef kSecGuestAttributeCanonical; + +@ffi.Native() +external CFStringRef kSecGuestAttributeDynamicCode; + +@ffi.Native() +external CFStringRef kSecGuestAttributeDynamicCodeInfoPlist; + +@ffi.Native() +external CFStringRef kSecGuestAttributeHash; + +@ffi.Native() +external CFStringRef kSecGuestAttributeMachPort; + +@ffi.Native() +external CFStringRef kSecGuestAttributePid; + +@ffi.Native() +external CFStringRef kSecGuestAttributeSubarchitecture; + +@ffi.Native() +external CFStringRef kSecIVKey; + +@ffi.Native() +external CFStringRef kSecIdentityDomainDefault; + +@ffi.Native() +external CFStringRef kSecIdentityDomainKerberosKDC; + +@ffi.Native() +external CFStringRef kSecImportExportAccess; + +@ffi.Native() +external CFStringRef kSecImportExportKeychain; + +@ffi.Native() +external CFStringRef kSecImportExportPassphrase; + +@ffi.Native() +external CFStringRef kSecImportItemCertChain; + +@ffi.Native() +external CFStringRef kSecImportItemIdentity; + +@ffi.Native() +external CFStringRef kSecImportItemKeyID; + +@ffi.Native() +external CFStringRef kSecImportItemLabel; + +@ffi.Native() +external CFStringRef kSecImportItemTrust; + +@ffi.Native() +external CFStringRef kSecImportToMemoryOnly; + +@ffi.Native() +external CFStringRef kSecInputIsAttributeName; + +@ffi.Native() +external final CFStringRef kSecInputIsDigest; + +@ffi.Native() +external CFStringRef kSecInputIsPlainText; + +@ffi.Native() +external CFStringRef kSecInputIsRaw; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactor; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandard; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureRFC4754; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA224AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA256AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA384AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA512AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA1AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorX963SHA224AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorX963SHA256AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorX963SHA384AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionCofactorX963SHA512AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA224AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA384AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA512AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA1AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardX963SHA224AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardX963SHA256AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardX963SHA384AESGCM; + +@ffi.Native() +external SecKeyAlgorithm +kSecKeyAlgorithmECIESEncryptionStandardX963SHA512AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512AESGCM; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionPKCS1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionRaw; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15Raw; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA1; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA224; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA256; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA384; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA512; + +@ffi.Native() +external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureRaw; + +@ffi.Native() +external CFStringRef kSecKeyAttributeName; + +@ffi.Native() +external SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterRequestedSize; + +@ffi.Native() +external SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterSharedInfo; + +@ffi.Native() +external CFStringRef kSecLineLength64; + +@ffi.Native() +external CFStringRef kSecLineLength76; + +@ffi.Native() +external CFStringRef kSecMatchCaseInsensitive; + +@ffi.Native() +external CFStringRef kSecMatchDiacriticInsensitive; + +@ffi.Native() +external CFStringRef kSecMatchEmailAddressIfPresent; + +@ffi.Native() +external CFStringRef kSecMatchHostOrSubdomainOfHost; + +@ffi.Native() +external CFStringRef kSecMatchIssuers; + +@ffi.Native() +external CFStringRef kSecMatchItemList; + +@ffi.Native() +external CFStringRef kSecMatchLimit; + +@ffi.Native() +external CFStringRef kSecMatchLimitAll; + +@ffi.Native() +external CFStringRef kSecMatchLimitOne; + +@ffi.Native() +external CFStringRef kSecMatchPolicy; + +@ffi.Native() +external CFStringRef kSecMatchSearchList; + +@ffi.Native() +external CFStringRef kSecMatchSubjectContains; + +@ffi.Native() +external CFStringRef kSecMatchSubjectEndsWith; + +@ffi.Native() +external CFStringRef kSecMatchSubjectStartsWith; + +@ffi.Native() +external CFStringRef kSecMatchSubjectWholeString; + +@ffi.Native() +external CFStringRef kSecMatchTrustedOnly; + +@ffi.Native() +external CFStringRef kSecMatchValidOnDate; + +@ffi.Native() +external CFStringRef kSecMatchWidthInsensitive; + +@ffi.Native() +external CFStringRef kSecModeCBCKey; + +@ffi.Native() +external CFStringRef kSecModeCFBKey; + +@ffi.Native() +external CFStringRef kSecModeECBKey; + +@ffi.Native() +external CFStringRef kSecModeNoneKey; + +@ffi.Native() +external CFStringRef kSecModeOFBKey; + +@ffi.Native() +external CFStringRef kSecOAEPEncodingParametersAttributeName; + +@ffi.Native() +external CFStringRef kSecOAEPMGF1DigestAlgorithmAttributeName; + +@ffi.Native() +external CFStringRef kSecOAEPMessageLengthAttributeName; + +@ffi.Native() +external CFStringRef kSecOIDADC_CERT_POLICY; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_CERT_POLICY; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_CODE_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_CODE_SIGNING_DEV; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_ICHAT_ENCRYPTION; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_ICHAT_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_RESOURCE_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EKU_SYSTEM_IDENTITY; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_AAI_INTERMEDIATE; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_ADC_APPLE_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_ADC_DEV_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_APPLEID_INTERMEDIATE; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_APPLE_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_CODE_SIGNING; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_INTERMEDIATE_MARKER; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_ITMS_INTERMEDIATE; + +@ffi.Native() +external CFStringRef kSecOIDAPPLE_EXTENSION_WWDR_INTERMEDIATE; + +@ffi.Native() +external CFStringRef kSecOIDAuthorityInfoAccess; + +@ffi.Native() +external CFStringRef kSecOIDAuthorityKeyIdentifier; + +@ffi.Native() +external CFStringRef kSecOIDBasicConstraints; + +@ffi.Native() +external CFStringRef kSecOIDBiometricInfo; + +@ffi.Native() +external CFStringRef kSecOIDCSSMKeyStruct; + +@ffi.Native() +external CFStringRef kSecOIDCertIssuer; + +@ffi.Native() +external CFStringRef kSecOIDCertificatePolicies; + +@ffi.Native() +external CFStringRef kSecOIDClientAuth; + +@ffi.Native() +external CFStringRef kSecOIDCollectiveStateProvinceName; + +@ffi.Native() +external CFStringRef kSecOIDCollectiveStreetAddress; + +@ffi.Native() +external CFStringRef kSecOIDCommonName; + +@ffi.Native() +external CFStringRef kSecOIDCountryName; + +@ffi.Native() +external CFStringRef kSecOIDCrlDistributionPoints; + +@ffi.Native() +external CFStringRef kSecOIDCrlNumber; + +@ffi.Native() +external CFStringRef kSecOIDCrlReason; + +@ffi.Native() +external CFStringRef kSecOIDDOTMAC_CERT_EMAIL_ENCRYPT; + +@ffi.Native() +external CFStringRef kSecOIDDOTMAC_CERT_EMAIL_SIGN; + +@ffi.Native() +external CFStringRef kSecOIDDOTMAC_CERT_EXTENSION; + +@ffi.Native() +external CFStringRef kSecOIDDOTMAC_CERT_IDENTITY; + +@ffi.Native() +external CFStringRef kSecOIDDOTMAC_CERT_POLICY; + +@ffi.Native() +external CFStringRef kSecOIDDeltaCrlIndicator; + +@ffi.Native() +external CFStringRef kSecOIDDescription; + +@ffi.Native() +external CFStringRef kSecOIDEKU_IPSec; + +@ffi.Native() +external CFStringRef kSecOIDEmailAddress; + +@ffi.Native() +external CFStringRef kSecOIDEmailProtection; + +@ffi.Native() +external CFStringRef kSecOIDExtendedKeyUsage; + +@ffi.Native() +external CFStringRef kSecOIDExtendedKeyUsageAny; + +@ffi.Native() +external CFStringRef kSecOIDExtendedUseCodeSigning; + +@ffi.Native() +external CFStringRef kSecOIDGivenName; + +@ffi.Native() +external CFStringRef kSecOIDHoldInstructionCode; + +@ffi.Native() +external CFStringRef kSecOIDInvalidityDate; + +@ffi.Native() +external CFStringRef kSecOIDIssuerAltName; + +@ffi.Native() +external CFStringRef kSecOIDIssuingDistributionPoint; + +@ffi.Native() +external CFStringRef kSecOIDIssuingDistributionPoints; + +@ffi.Native() +external CFStringRef kSecOIDKERBv5_PKINIT_KP_CLIENT_AUTH; + +@ffi.Native() +external CFStringRef kSecOIDKERBv5_PKINIT_KP_KDC; + +@ffi.Native() +external CFStringRef kSecOIDKeyUsage; + +@ffi.Native() +external CFStringRef kSecOIDLocalityName; + +@ffi.Native() +external CFStringRef kSecOIDMS_NTPrincipalName; + +@ffi.Native() +external CFStringRef kSecOIDMicrosoftSGC; + +@ffi.Native() +external CFStringRef kSecOIDNameConstraints; + +@ffi.Native() +external CFStringRef kSecOIDNetscapeCertSequence; + +@ffi.Native() +external CFStringRef kSecOIDNetscapeCertType; + +@ffi.Native() +external CFStringRef kSecOIDNetscapeSGC; + +@ffi.Native() +external CFStringRef kSecOIDOCSPSigning; + +@ffi.Native() +external CFStringRef kSecOIDOrganizationName; + +@ffi.Native() +external CFStringRef kSecOIDOrganizationalUnitName; + +@ffi.Native() +external CFStringRef kSecOIDPolicyConstraints; + +@ffi.Native() +external CFStringRef kSecOIDPolicyMappings; + +@ffi.Native() +external CFStringRef kSecOIDPrivateKeyUsagePeriod; + +@ffi.Native() +external CFStringRef kSecOIDQC_Statements; + +@ffi.Native() +external CFStringRef kSecOIDSRVName; + +@ffi.Native() +external CFStringRef kSecOIDSerialNumber; + +@ffi.Native() +external CFStringRef kSecOIDServerAuth; + +@ffi.Native() +external CFStringRef kSecOIDStateProvinceName; + +@ffi.Native() +external CFStringRef kSecOIDStreetAddress; + +@ffi.Native() +external CFStringRef kSecOIDSubjectAltName; + +@ffi.Native() +external CFStringRef kSecOIDSubjectDirectoryAttributes; + +@ffi.Native() +external CFStringRef kSecOIDSubjectEmailAddress; + +@ffi.Native() +external CFStringRef kSecOIDSubjectInfoAccess; + +@ffi.Native() +external CFStringRef kSecOIDSubjectKeyIdentifier; + +@ffi.Native() +external CFStringRef kSecOIDSubjectPicture; + +@ffi.Native() +external CFStringRef kSecOIDSubjectSignatureBitmap; + +@ffi.Native() +external CFStringRef kSecOIDSurname; + +@ffi.Native() +external CFStringRef kSecOIDTimeStamping; + +@ffi.Native() +external CFStringRef kSecOIDTitle; + +@ffi.Native() +external CFStringRef kSecOIDUseExemptions; + +@ffi.Native() +external CFStringRef kSecOIDX509V1CertificateIssuerUniqueId; + +@ffi.Native() +external CFStringRef kSecOIDX509V1CertificateSubjectUniqueId; + +@ffi.Native() +external CFStringRef kSecOIDX509V1IssuerName; + +@ffi.Native() +external CFStringRef kSecOIDX509V1IssuerNameCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V1IssuerNameLDAP; + +@ffi.Native() +external CFStringRef kSecOIDX509V1IssuerNameStd; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SerialNumber; + +@ffi.Native() +external CFStringRef kSecOIDX509V1Signature; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SignatureAlgorithm; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SignatureAlgorithmParameters; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SignatureAlgorithmTBS; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SignatureCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SignatureStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectName; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectNameCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectNameLDAP; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectNameStd; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectPublicKey; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectPublicKeyAlgorithm; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectPublicKeyAlgorithmParameters; + +@ffi.Native() +external CFStringRef kSecOIDX509V1SubjectPublicKeyCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V1ValidityNotAfter; + +@ffi.Native() +external CFStringRef kSecOIDX509V1ValidityNotBefore; + +@ffi.Native() +external CFStringRef kSecOIDX509V1Version; + +@ffi.Native() +external CFStringRef kSecOIDX509V3Certificate; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionCritical; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionId; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionType; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionValue; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionsCStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateExtensionsStruct; + +@ffi.Native() +external CFStringRef kSecOIDX509V3CertificateNumberOfExtensions; + +@ffi.Native() +external CFStringRef kSecOIDX509V3SignedCertificate; + +@ffi.Native() +external CFStringRef kSecOIDX509V3SignedCertificateCStruct; + +@ffi.Native() +external CFStringRef kSecPaddingKey; + +@ffi.Native() +external CFStringRef kSecPaddingNoneKey; + +@ffi.Native() +external CFStringRef kSecPaddingOAEPKey; + +@ffi.Native() +external CFStringRef kSecPaddingPKCS1Key; + +@ffi.Native() +external CFStringRef kSecPaddingPKCS5Key; + +@ffi.Native() +external CFStringRef kSecPaddingPKCS7Key; + +@ffi.Native() +external CFStringRef kSecPolicyAppleCodeSigning; + +@ffi.Native() +external CFStringRef kSecPolicyAppleEAP; + +@ffi.Native() +external CFStringRef kSecPolicyAppleEAPClient; + +@ffi.Native() +external CFStringRef kSecPolicyAppleEAPServer; + +@ffi.Native() +external CFStringRef kSecPolicyAppleIDValidation; + +@ffi.Native() +external CFStringRef kSecPolicyAppleIPSecClient; + +@ffi.Native() +external CFStringRef kSecPolicyAppleIPSecServer; + +@ffi.Native() +external CFStringRef kSecPolicyAppleIPsec; + +@ffi.Native() +external CFStringRef kSecPolicyApplePKINITClient; + +@ffi.Native() +external CFStringRef kSecPolicyApplePKINITServer; + +@ffi.Native() +external CFStringRef kSecPolicyApplePassbookSigning; + +@ffi.Native() +external CFStringRef kSecPolicyApplePayIssuerEncryption; + +@ffi.Native() +external CFStringRef kSecPolicyAppleRevocation; + +@ffi.Native() +external CFStringRef kSecPolicyAppleSMIME; + +@ffi.Native() +external CFStringRef kSecPolicyAppleSSL; + +@ffi.Native() +external CFStringRef kSecPolicyAppleSSLClient; + +@ffi.Native() +external CFStringRef kSecPolicyAppleSSLServer; + +@ffi.Native() +external CFStringRef kSecPolicyAppleTimeStamping; + +@ffi.Native() +external CFStringRef kSecPolicyAppleX509Basic; + +@ffi.Native() +external CFStringRef kSecPolicyAppleiChat; + +@ffi.Native() +external CFStringRef kSecPolicyClient; + +@ffi.Native() +external CFStringRef kSecPolicyKU_CRLSign; + +@ffi.Native() +external CFStringRef kSecPolicyKU_DataEncipherment; + +@ffi.Native() +external CFStringRef kSecPolicyKU_DecipherOnly; + +@ffi.Native() +external CFStringRef kSecPolicyKU_DigitalSignature; + +@ffi.Native() +external CFStringRef kSecPolicyKU_EncipherOnly; + +@ffi.Native() +external CFStringRef kSecPolicyKU_KeyAgreement; + +@ffi.Native() +external CFStringRef kSecPolicyKU_KeyCertSign; + +@ffi.Native() +external CFStringRef kSecPolicyKU_KeyEncipherment; + +@ffi.Native() +external CFStringRef kSecPolicyKU_NonRepudiation; + +@ffi.Native() +external CFStringRef kSecPolicyMacAppStoreReceipt; + +@ffi.Native() +external CFStringRef kSecPolicyName; + +@ffi.Native() +external CFStringRef kSecPolicyOid; + +@ffi.Native() +external CFStringRef kSecPolicyRevocationFlags; + +@ffi.Native() +external CFStringRef kSecPolicyTeamIdentifier; + +@ffi.Native() +external CFStringRef kSecPrivateKeyAttrs; + +@ffi.Native() +external CFStringRef kSecPropertyKeyLabel; + +@ffi.Native() +external CFStringRef kSecPropertyKeyLocalizedLabel; + +@ffi.Native() +external CFStringRef kSecPropertyKeyType; + +@ffi.Native() +external CFStringRef kSecPropertyKeyValue; + +@ffi.Native() +external CFStringRef kSecPropertyTypeArray; + +@ffi.Native() +external CFStringRef kSecPropertyTypeData; + +@ffi.Native() +external CFStringRef kSecPropertyTypeDate; + +@ffi.Native() +external CFStringRef kSecPropertyTypeError; + +@ffi.Native() +external CFStringRef kSecPropertyTypeNumber; + +@ffi.Native() +external CFStringRef kSecPropertyTypeSection; + +@ffi.Native() +external CFStringRef kSecPropertyTypeString; + +@ffi.Native() +external CFStringRef kSecPropertyTypeSuccess; + +@ffi.Native() +external CFStringRef kSecPropertyTypeTitle; + +@ffi.Native() +external CFStringRef kSecPropertyTypeURL; + +@ffi.Native() +external CFStringRef kSecPropertyTypeWarning; + +@ffi.Native() +external CFStringRef kSecPublicKeyAttrs; + +@ffi.Native() +external SecRandomRef kSecRandomDefault; + +@ffi.Native() +external CFStringRef kSecReturnAttributes; + +@ffi.Native() +external CFStringRef kSecReturnData; + +@ffi.Native() +external CFStringRef kSecReturnPersistentRef; + +@ffi.Native() +external CFStringRef kSecReturnRef; + +@ffi.Native() +external CFStringRef kSecSharedPassword; + +@ffi.Native() +external final CFStringRef kSecSignatureAttributeName; + +@ffi.Native() +external CFStringRef kSecTransformAbortAttributeName; + +@ffi.Native() +external CFStringRef kSecTransformAbortOriginatorKey; + +@ffi.Native() +external CFStringRef kSecTransformActionAttributeNotification; + +@ffi.Native() +external CFStringRef kSecTransformActionAttributeValidation; + +@ffi.Native() +external CFStringRef kSecTransformActionCanExecute; + +@ffi.Native() +external CFStringRef kSecTransformActionExternalizeExtraData; + +@ffi.Native() +external CFStringRef kSecTransformActionFinalize; + +@ffi.Native() +external CFStringRef kSecTransformActionInternalizeExtraData; + +@ffi.Native() +external CFStringRef kSecTransformActionProcessData; + +@ffi.Native() +external CFStringRef kSecTransformActionStartingExecution; + +@ffi.Native() +external CFStringRef kSecTransformDebugAttributeName; + +@ffi.Native() +external CFStringRef kSecTransformErrorDomain; + +@ffi.Native() +external CFStringRef kSecTransformInputAttributeName; + +@ffi.Native() +external CFStringRef kSecTransformOutputAttributeName; + +@ffi.Native() +external CFStringRef kSecTransformPreviousErrorKey; + +@ffi.Native() +external CFStringRef kSecTransformTransformName; + +@ffi.Native() +external CFStringRef kSecTrustCertificateTransparency; + +@ffi.Native() +external CFStringRef kSecTrustCertificateTransparencyWhiteList; + +@ffi.Native() +external CFStringRef kSecTrustEvaluationDate; + +@ffi.Native() +external CFStringRef kSecTrustExtendedValidation; + +@ffi.Native() +external CFStringRef kSecTrustOrganizationName; + +@ffi.Native() +external CFStringRef kSecTrustQCStatements; + +@ffi.Native() +external CFStringRef kSecTrustQWACValidation; + +@ffi.Native() +external CFStringRef kSecTrustResultValue; + +@ffi.Native() +external CFStringRef kSecTrustRevocationChecked; + +@ffi.Native() +external CFStringRef kSecTrustRevocationValidUntilDate; + +@ffi.Native() +external CFStringRef kSecUseAuthenticationContext; + +@ffi.Native() +external CFStringRef kSecUseAuthenticationUI; + +@ffi.Native() +external CFStringRef kSecUseAuthenticationUIAllow; + +@ffi.Native() +external CFStringRef kSecUseAuthenticationUIFail; + +@ffi.Native() +external CFStringRef kSecUseAuthenticationUISkip; + +@ffi.Native() +external CFStringRef kSecUseDataProtectionKeychain; + +@ffi.Native() +external CFStringRef kSecUseItemList; + +@ffi.Native() +external CFStringRef kSecUseKeychain; + +@ffi.Native() +external CFStringRef kSecUseNoAuthenticationUI; + +@ffi.Native() +external CFStringRef kSecUseOperationPrompt; + +@ffi.Native() +external CFStringRef kSecUseUserIndependentKeychain; + +@ffi.Native() +external CFStringRef kSecValueData; + +@ffi.Native() +external CFStringRef kSecValuePersistentRef; + +@ffi.Native() +external CFStringRef kSecValueRef; + +@ffi.Native() +external CFStringRef kSecZLibEncoding; + +@ffi.Native() +external CFStringRef kSpeechAudioGraphProperty; + +@ffi.Native() +external CFStringRef kSpeechAudioOutputFormatProperty; + +@ffi.Native() +external CFStringRef kSpeechAudioUnitProperty; + +@ffi.Native() +external CFStringRef kSpeechCharacterModeProperty; + +@ffi.Native() +external CFStringRef kSpeechCommandDelimiterProperty; + +@ffi.Native() +external CFStringRef kSpeechCommandPrefix; + +@ffi.Native() +external CFStringRef kSpeechCommandSuffix; + +@ffi.Native() +external CFStringRef kSpeechCurrentVoiceProperty; + +@ffi.Native() +external CFStringRef kSpeechDictionaryAbbreviations; + +@ffi.Native() +external CFStringRef kSpeechDictionaryEntryPhonemes; + +@ffi.Native() +external CFStringRef kSpeechDictionaryEntrySpelling; + +@ffi.Native() +external CFStringRef kSpeechDictionaryLocaleIdentifier; + +@ffi.Native() +external CFStringRef kSpeechDictionaryModificationDate; + +@ffi.Native() +external CFStringRef kSpeechDictionaryPronunciations; + +@ffi.Native() +external CFStringRef kSpeechErrorCFCallBack; + +@ffi.Native() +external CFStringRef kSpeechErrorCallbackCharacterOffset; + +@ffi.Native() +external CFStringRef kSpeechErrorCallbackSpokenString; + +@ffi.Native() +external CFStringRef kSpeechErrorCount; + +@ffi.Native() +external CFStringRef kSpeechErrorNewest; + +@ffi.Native() +external CFStringRef kSpeechErrorNewestCharacterOffset; + +@ffi.Native() +external CFStringRef kSpeechErrorOldest; + +@ffi.Native() +external CFStringRef kSpeechErrorOldestCharacterOffset; + +@ffi.Native() +external CFStringRef kSpeechErrorsProperty; + +@ffi.Native() +external CFStringRef kSpeechInputModeProperty; + +@ffi.Native() +external CFStringRef kSpeechModeLiteral; + +@ffi.Native() +external CFStringRef kSpeechModeNormal; + +@ffi.Native() +external CFStringRef kSpeechModePhoneme; + +@ffi.Native() +external CFStringRef kSpeechModeText; + +@ffi.Native() +external CFStringRef kSpeechModeTune; + +@ffi.Native() +external CFStringRef kSpeechNoEndingProsody; + +@ffi.Native() +external CFStringRef kSpeechNoSpeechInterrupt; + +@ffi.Native() +external CFStringRef kSpeechNumberModeProperty; + +@ffi.Native() +external CFStringRef kSpeechOutputChannelMapProperty; + +@ffi.Native() +external CFStringRef kSpeechOutputToAudioDeviceProperty; + +@ffi.Native() +external CFStringRef kSpeechOutputToExtAudioFileProperty; + +@ffi.Native() +external CFStringRef kSpeechOutputToFileDescriptorProperty; + +@ffi.Native() +external CFStringRef kSpeechOutputToFileURLProperty; + +@ffi.Native() +external CFStringRef kSpeechPhonemeCallBack; + +@ffi.Native() +external CFStringRef kSpeechPhonemeInfoExample; + +@ffi.Native() +external CFStringRef kSpeechPhonemeInfoHiliteEnd; + +@ffi.Native() +external CFStringRef kSpeechPhonemeInfoHiliteStart; + +@ffi.Native() +external CFStringRef kSpeechPhonemeInfoOpcode; + +@ffi.Native() +external CFStringRef kSpeechPhonemeInfoSymbol; + +@ffi.Native() +external CFStringRef kSpeechPhonemeOptionsProperty; + +@ffi.Native() +external CFStringRef kSpeechPhonemeSymbolsProperty; + +@ffi.Native() +external CFStringRef kSpeechPitchBaseProperty; + +@ffi.Native() +external CFStringRef kSpeechPitchModProperty; + +@ffi.Native() +external CFStringRef kSpeechPreflightThenPause; + +@ffi.Native() +external CFStringRef kSpeechRateProperty; + +@ffi.Native() +external CFStringRef kSpeechRecentSyncProperty; + +@ffi.Native() +external CFStringRef kSpeechRefConProperty; + +@ffi.Native() +external CFStringRef kSpeechResetProperty; + +@ffi.Native() +external CFStringRef kSpeechSpeechDoneCallBack; + +@ffi.Native() +external CFStringRef kSpeechStatusNumberOfCharactersLeft; + +@ffi.Native() +external CFStringRef kSpeechStatusOutputBusy; + +@ffi.Native() +external CFStringRef kSpeechStatusOutputPaused; + +@ffi.Native() +external CFStringRef kSpeechStatusPhonemeCode; + +@ffi.Native() +external CFStringRef kSpeechStatusProperty; + +@ffi.Native() +external CFStringRef kSpeechSyncCallBack; + +@ffi.Native() +external CFStringRef kSpeechSynthExtensionProperty; + +@ffi.Native() +external CFStringRef kSpeechSynthesizerInfoIdentifier; + +@ffi.Native() +external CFStringRef kSpeechSynthesizerInfoManufacturer; + +@ffi.Native() +external CFStringRef kSpeechSynthesizerInfoProperty; + +@ffi.Native() +external CFStringRef kSpeechSynthesizerInfoVersion; + +@ffi.Native() +external CFStringRef kSpeechTextDoneCallBack; + +@ffi.Native() +external CFStringRef kSpeechVoiceCreator; + +@ffi.Native() +external CFStringRef kSpeechVoiceID; + +@ffi.Native() +external CFStringRef kSpeechVolumeProperty; + +@ffi.Native() +external CFStringRef kSpeechWordCFCallBack; + +@ffi.Native() +external CFStringRef kUTExportedTypeDeclarationsKey; + +@ffi.Native() +external CFStringRef kUTImportedTypeDeclarationsKey; + +@ffi.Native() +external CFStringRef kUTTagClassFilenameExtension; + +@ffi.Native() +external CFStringRef kUTTagClassMIMEType; + +@ffi.Native() +external CFStringRef kUTTagClassNSPboardType; + +@ffi.Native() +external CFStringRef kUTTagClassOSType; + +@ffi.Native() +external CFStringRef kUTType3DContent; + +@ffi.Native() +external CFStringRef kUTTypeAVIMovie; + +@ffi.Native() +external CFStringRef kUTTypeAliasFile; + +@ffi.Native() +external CFStringRef kUTTypeAliasRecord; + +@ffi.Native() +external CFStringRef kUTTypeAppleICNS; + +@ffi.Native() +external CFStringRef kUTTypeAppleProtectedMPEG4Audio; + +@ffi.Native() +external CFStringRef kUTTypeAppleProtectedMPEG4Video; + +@ffi.Native() +external CFStringRef kUTTypeAppleScript; + +@ffi.Native() +external CFStringRef kUTTypeApplication; + +@ffi.Native() +external CFStringRef kUTTypeApplicationBundle; + +@ffi.Native() +external CFStringRef kUTTypeApplicationFile; + +@ffi.Native() +external CFStringRef kUTTypeArchive; + +@ffi.Native() +external CFStringRef kUTTypeAssemblyLanguageSource; + +@ffi.Native() +external CFStringRef kUTTypeAudio; + +@ffi.Native() +external CFStringRef kUTTypeAudioInterchangeFileFormat; + +@ffi.Native() +external CFStringRef kUTTypeAudiovisualContent; + +@ffi.Native() +external CFStringRef kUTTypeBMP; + +@ffi.Native() +external CFStringRef kUTTypeBinaryPropertyList; + +@ffi.Native() +external CFStringRef kUTTypeBookmark; + +@ffi.Native() +external CFStringRef kUTTypeBundle; + +@ffi.Native() +external CFStringRef kUTTypeBzip2Archive; + +@ffi.Native() +external CFStringRef kUTTypeCHeader; + +@ffi.Native() +external CFStringRef kUTTypeCPlusPlusHeader; + +@ffi.Native() +external CFStringRef kUTTypeCPlusPlusSource; + +@ffi.Native() +external CFStringRef kUTTypeCSource; + +@ffi.Native() +external CFStringRef kUTTypeCalendarEvent; + +@ffi.Native() +external CFStringRef kUTTypeCommaSeparatedText; + +@ffi.Native() +external CFStringRef kUTTypeCompositeContent; + +@ffi.Native() +external CFStringRef kUTTypeConformsToKey; + +@ffi.Native() +external CFStringRef kUTTypeContact; + +@ffi.Native() +external CFStringRef kUTTypeContent; + +@ffi.Native() +external CFStringRef kUTTypeData; + +@ffi.Native() +external CFStringRef kUTTypeDatabase; + +@ffi.Native() +external CFStringRef kUTTypeDelimitedText; + +@ffi.Native() +external CFStringRef kUTTypeDescriptionKey; + +@ffi.Native() +external CFStringRef kUTTypeDirectory; + +@ffi.Native() +external CFStringRef kUTTypeDiskImage; + +@ffi.Native() +external CFStringRef kUTTypeElectronicPublication; + +@ffi.Native() +external CFStringRef kUTTypeEmailMessage; + +@ffi.Native() +external CFStringRef kUTTypeExecutable; + +@ffi.Native() +external CFStringRef kUTTypeFileURL; + +@ffi.Native() +external CFStringRef kUTTypeFlatRTFD; + +@ffi.Native() +external CFStringRef kUTTypeFolder; + +@ffi.Native() +external CFStringRef kUTTypeFont; + +@ffi.Native() +external CFStringRef kUTTypeFramework; + +@ffi.Native() +external CFStringRef kUTTypeGIF; + +@ffi.Native() +external CFStringRef kUTTypeGNUZipArchive; + +@ffi.Native() +external CFStringRef kUTTypeHTML; + +@ffi.Native() +external CFStringRef kUTTypeICO; + +@ffi.Native() +external CFStringRef kUTTypeIconFileKey; + +@ffi.Native() +external CFStringRef kUTTypeIdentifierKey; + +@ffi.Native() +external CFStringRef kUTTypeImage; + +@ffi.Native() +external CFStringRef kUTTypeInkText; + +@ffi.Native() +external CFStringRef kUTTypeInternetLocation; + +@ffi.Native() +external CFStringRef kUTTypeItem; + +@ffi.Native() +external CFStringRef kUTTypeJPEG; + +@ffi.Native() +external CFStringRef kUTTypeJPEG2000; + +@ffi.Native() +external CFStringRef kUTTypeJSON; + +@ffi.Native() +external CFStringRef kUTTypeJavaArchive; + +@ffi.Native() +external CFStringRef kUTTypeJavaClass; + +@ffi.Native() +external CFStringRef kUTTypeJavaScript; + +@ffi.Native() +external CFStringRef kUTTypeJavaSource; + +@ffi.Native() +external CFStringRef kUTTypeLivePhoto; + +@ffi.Native() +external CFStringRef kUTTypeLog; + +@ffi.Native() +external CFStringRef kUTTypeM3UPlaylist; + +@ffi.Native() +external CFStringRef kUTTypeMIDIAudio; + +@ffi.Native() +external CFStringRef kUTTypeMP3; + +@ffi.Native() +external CFStringRef kUTTypeMPEG; + +@ffi.Native() +external CFStringRef kUTTypeMPEG2TransportStream; + +@ffi.Native() +external CFStringRef kUTTypeMPEG2Video; + +@ffi.Native() +external CFStringRef kUTTypeMPEG4; + +@ffi.Native() +external CFStringRef kUTTypeMPEG4Audio; + +@ffi.Native() +external CFStringRef kUTTypeMessage; + +@ffi.Native() +external CFStringRef kUTTypeMountPoint; + +@ffi.Native() +external CFStringRef kUTTypeMovie; + +@ffi.Native() +external CFStringRef kUTTypeOSAScript; + +@ffi.Native() +external CFStringRef kUTTypeOSAScriptBundle; + +@ffi.Native() +external CFStringRef kUTTypeObjectiveCPlusPlusSource; + +@ffi.Native() +external CFStringRef kUTTypeObjectiveCSource; + +@ffi.Native() +external CFStringRef kUTTypePDF; + +@ffi.Native() +external CFStringRef kUTTypePHPScript; + +@ffi.Native() +external CFStringRef kUTTypePICT; + +@ffi.Native() +external CFStringRef kUTTypePKCS12; + +@ffi.Native() +external CFStringRef kUTTypePNG; + +@ffi.Native() +external CFStringRef kUTTypePackage; + +@ffi.Native() +external CFStringRef kUTTypePerlScript; + +@ffi.Native() +external CFStringRef kUTTypePlainText; + +@ffi.Native() +external CFStringRef kUTTypePlaylist; + +@ffi.Native() +external CFStringRef kUTTypePluginBundle; + +@ffi.Native() +external CFStringRef kUTTypePresentation; + +@ffi.Native() +external CFStringRef kUTTypePropertyList; + +@ffi.Native() +external CFStringRef kUTTypePythonScript; + +@ffi.Native() +external CFStringRef kUTTypeQuickLookGenerator; + +@ffi.Native() +external CFStringRef kUTTypeQuickTimeImage; + +@ffi.Native() +external CFStringRef kUTTypeQuickTimeMovie; + +@ffi.Native() +external CFStringRef kUTTypeRTF; + +@ffi.Native() +external CFStringRef kUTTypeRTFD; + +@ffi.Native() +external CFStringRef kUTTypeRawImage; + +@ffi.Native() +external CFStringRef kUTTypeReferenceURLKey; + +@ffi.Native() +external CFStringRef kUTTypeResolvable; + +@ffi.Native() +external CFStringRef kUTTypeRubyScript; + +@ffi.Native() +external CFStringRef kUTTypeScalableVectorGraphics; + +@ffi.Native() +external CFStringRef kUTTypeScript; + +@ffi.Native() +external CFStringRef kUTTypeShellScript; + +@ffi.Native() +external CFStringRef kUTTypeSourceCode; + +@ffi.Native() +external CFStringRef kUTTypeSpotlightImporter; + +@ffi.Native() +external CFStringRef kUTTypeSpreadsheet; + +@ffi.Native() +external CFStringRef kUTTypeSwiftSource; + +@ffi.Native() +external CFStringRef kUTTypeSymLink; + +@ffi.Native() +external CFStringRef kUTTypeSystemPreferencesPane; + +@ffi.Native() +external CFStringRef kUTTypeTIFF; + +@ffi.Native() +external CFStringRef kUTTypeTXNTextAndMultimediaData; + +@ffi.Native() +external CFStringRef kUTTypeTabSeparatedText; + +@ffi.Native() +external CFStringRef kUTTypeTagSpecificationKey; + +@ffi.Native() +external CFStringRef kUTTypeText; + +@ffi.Native() +external CFStringRef kUTTypeToDoItem; + +@ffi.Native() +external CFStringRef kUTTypeURL; + +@ffi.Native() +external CFStringRef kUTTypeURLBookmarkData; + +@ffi.Native() +external CFStringRef kUTTypeUTF16ExternalPlainText; + +@ffi.Native() +external CFStringRef kUTTypeUTF16PlainText; + +@ffi.Native() +external CFStringRef kUTTypeUTF8PlainText; + +@ffi.Native() +external CFStringRef kUTTypeUTF8TabSeparatedText; + +@ffi.Native() +external CFStringRef kUTTypeUnixExecutable; + +@ffi.Native() +external CFStringRef kUTTypeVCard; + +@ffi.Native() +external CFStringRef kUTTypeVersionKey; + +@ffi.Native() +external CFStringRef kUTTypeVideo; + +@ffi.Native() +external CFStringRef kUTTypeVolume; + +@ffi.Native() +external CFStringRef kUTTypeWaveformAudio; + +@ffi.Native() +external CFStringRef kUTTypeWebArchive; + +@ffi.Native() +external CFStringRef kUTTypeWindowsExecutable; + +@ffi.Native() +external CFStringRef kUTTypeX509Certificate; + +@ffi.Native() +external CFStringRef kUTTypeXML; + +@ffi.Native() +external CFStringRef kUTTypeXMLPropertyList; + +@ffi.Native() +external CFStringRef kUTTypeXPCService; + +@ffi.Native() +external CFStringRef kUTTypeZipArchive; + +@ffi.Native() +external CFStringRef kWSDebugIncomingBody; + +@ffi.Native() +external CFStringRef kWSDebugIncomingHeaders; + +@ffi.Native() +external CFStringRef kWSDebugOutgoingBody; + +@ffi.Native() +external CFStringRef kWSDebugOutgoingHeaders; + +@ffi.Native() +external CFStringRef kWSFaultCode; + +@ffi.Native() +external CFStringRef kWSFaultExtra; + +@ffi.Native() +external CFStringRef kWSFaultString; + +@ffi.Native() +external CFStringRef kWSHTTPExtraHeaders; + +@ffi.Native() +external CFStringRef kWSHTTPFollowsRedirects; + +@ffi.Native() +external CFStringRef kWSHTTPMessage; + +@ffi.Native() +external CFStringRef kWSHTTPProxy; + +@ffi.Native() +external CFStringRef kWSHTTPResponseMessage; + +@ffi.Native() +external CFStringRef kWSHTTPVersion; + +@ffi.Native() +external CFStringRef kWSMethodInvocationResult; + +@ffi.Native() +external CFStringRef kWSMethodInvocationResultParameterName; + +@ffi.Native() +external CFStringRef kWSMethodInvocationTimeoutValue; + +@ffi.Native() +external CFStringRef kWSNetworkStreamFaultString; + +@ffi.Native() +external CFStringRef kWSRecordNamespaceURI; + +@ffi.Native() +external CFStringRef kWSRecordParameterOrder; + +@ffi.Native() +external CFStringRef kWSRecordType; + +@ffi.Native() +external CFStringRef kWSSOAP1999Protocol; + +@ffi.Native() +external CFStringRef kWSSOAP2001Protocol; + +@ffi.Native() +external CFStringRef kWSSOAPBodyEncodingStyle; + +@ffi.Native() +external CFStringRef kWSSOAPMessageHeaders; + +@ffi.Native() +external CFStringRef kWSSOAPMethodNamespaceURI; + +@ffi.Native() +external CFStringRef kWSSOAPStyleDoc; + +@ffi.Native() +external CFStringRef kWSSOAPStyleRPC; + +@ffi.Native() +external CFStringRef kWSStreamErrorDomain; + +@ffi.Native() +external CFStringRef kWSStreamErrorError; + +@ffi.Native() +external CFStringRef kWSStreamErrorMessage; + +@ffi.Native() +external CFStringRef kWSXMLRPCProtocol; + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kcfindapplesharepassword( + ffi.Pointer> serverSignature, + ffi.Pointer serverAddress, + ffi.Pointer serverName, + ffi.Pointer volumeName, + ffi.Pointer accountName, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kcfindgenericpassword( + ffi.Pointer serviceName, + ffi.Pointer accountName, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + UInt16, + OSType, + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kcfindinternetpassword( + ffi.Pointer serverName, + ffi.Pointer securityDomain, + ffi.Pointer accountName, + int port, + int protocol, + int authType, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + UInt16, + OSType, + OSType, + UInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kcfindinternetpasswordwithpath( + ffi.Pointer serverName, + ffi.Pointer securityDomain, + ffi.Pointer accountName, + ffi.Pointer path, + int port, + int protocol, + int authType, + int maxLength, + ffi.Pointer passwordData, + ffi.Pointer actualLength, + ffi.Pointer item, +); + +@Deprecated('No longer supported') +@ffi.Native)>() +external int kcgetkeychainname( + KCRef keychain, + ffi.Pointer keychainName, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + ffi.Uint32, + vm_offset_t, + mach_msg_type_number_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kext_request( + int host_priv, + int user_log_flags, + int request_data, + int request_dataCnt, + ffi.Pointer response_data, + ffi.Pointer response_dataCnt, + ffi.Pointer log_data, + ffi.Pointer log_dataCnt, + ffi.Pointer op_result, +); + +@ffi.Native() +external int kill(int arg0, int arg1); + +@ffi.Native() +external int killpg(int arg0, int arg1); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + kmod_t, + kmod_control_flavor_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kmod_control( + int host_priv, + int module, + int flavor, + ffi.Pointer data, + ffi.Pointer dataCnt, +); + +@ffi.Native< + kern_return_t Function(host_priv_t, vm_address_t, ffi.Pointer) +>() +external int kmod_create(int host_priv, int info, ffi.Pointer module); + +@ffi.Native() +external int kmod_destroy(int host_priv, int module); + +@ffi.Native< + kern_return_t Function( + host_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int kmod_get_info( + int host, + ffi.Pointer modules, + ffi.Pointer modulesCnt, +); + +@ffi.Native Function(ffi.Long)>() +external ffi.Pointer l64a(int arg0); + +@ffi.Native() +external int labs(int arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) +>() +external int launch_activate_socket( + ffi.Pointer name, + ffi.Pointer> fds, + ffi.Pointer cnt, +); + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'launch_data_alloc', +) +external launch_data_t _launch_data_alloc(int type); + +launch_data_t launch_data_alloc(launch_data_type_t type) { + return _launch_data_alloc(type.value); +} + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_array_get_count(launch_data_t larray); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_array_get_index( + launch_data_t larray, + int idx, +); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_array_set_index( + launch_data_t larray, + launch_data_t lval, + int idx, +); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_copy(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_dict_get_count(launch_data_t ldict); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Bool Function(launch_data_t, launch_data_t, ffi.Pointer) +>() +external bool launch_data_dict_insert( + launch_data_t ldict, + launch_data_t lval, + ffi.Pointer key, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + launch_data_t, + launch_data_dict_iterator_t, + ffi.Pointer, + ) +>() +external void launch_data_dict_iterate( + launch_data_t ldict, + launch_data_dict_iterator_t iterator, + ffi.Pointer ctx, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external launch_data_t launch_data_dict_lookup( + launch_data_t ldict, + ffi.Pointer key, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external bool launch_data_dict_remove( + launch_data_t ldict, + ffi.Pointer key, +); + +@Deprecated('Deprecated') +@ffi.Native() +external void launch_data_free(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_get_bool(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_get_errno(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_get_fd(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_get_integer(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_get_machport(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native Function(launch_data_t)>() +external ffi.Pointer launch_data_get_opaque(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_data_get_opaque_size(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native() +external double launch_data_get_real(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native Function(launch_data_t)>() +external ffi.Pointer launch_data_get_string(launch_data_t ld); + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'launch_data_get_type', +) +external int _launch_data_get_type(launch_data_t ld); + +launch_data_type_t launch_data_get_type(launch_data_t ld) { + return launch_data_type_t.fromValue(_launch_data_get_type(ld)); +} + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_new_bool(bool val); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_new_fd(int fd); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_new_integer(int val); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_new_machport(int val); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Size)>() +external launch_data_t launch_data_new_opaque( + ffi.Pointer bytes, + int sz, +); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_data_new_real(double val); + +@Deprecated('Deprecated') +@ffi.Native)>() +external launch_data_t launch_data_new_string(ffi.Pointer val); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_set_bool(launch_data_t ld, bool val); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_set_fd(launch_data_t ld, int fd); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_set_integer(launch_data_t ld, int val); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_set_machport(launch_data_t ld, int mp); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Size)>() +external bool launch_data_set_opaque( + launch_data_t ld, + ffi.Pointer bytes, + int sz, +); + +@Deprecated('Deprecated') +@ffi.Native() +external bool launch_data_set_real(launch_data_t ld, double val); + +@Deprecated('Deprecated') +@ffi.Native)>() +external bool launch_data_set_string( + launch_data_t ld, + ffi.Pointer val, +); + +@Deprecated('Deprecated') +@ffi.Native() +external int launch_get_fd(); + +@Deprecated('Deprecated') +@ffi.Native() +external launch_data_t launch_msg(launch_data_t request); + +@ffi.Native, uid_t, gid_t)>() +external int lchown(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native)>() +external void lcong48(ffi.Pointer arg0); + +@ffi.Native() +external double ldexp(double arg0, int arg1); + +@ffi.Native() +external double ldexpf(double arg0, int arg1); + +@ffi.Native() +external ldiv_t ldiv(int arg0, int arg1); + +@ffi.Native() +external double lgamma(double arg0); + +@ffi.Native() +external double lgammaf(double arg0); + +@ffi.Native, ffi.Pointer)>() +external int link(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ) +>() +external int linkat( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + int arg4, +); + +@ffi.Native() +external int listen(int arg0, int arg1); + +@ffi.Native() +external int llabs(int arg0); + +@ffi.Native() +external lldiv_t lldiv(int arg0, int arg1); + +@ffi.Native() +external int llrint(double arg0); + +@ffi.Native() +external int llrintf(double arg0); + +@ffi.Native() +external int llround(double arg0); + +@ffi.Native() +external int llroundf(double arg0); + +@ffi.Native Function()>() +external ffi.Pointer localeconv(); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer localtime(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() +external ffi.Pointer localtime_r( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + kern_return_t Function(task_t, ffi.Pointer, ffi.Int, ffi.Int) +>() +external int lock_set_create( + int task, + ffi.Pointer new_lock_set, + int n_ulocks, + int policy, +); + +@ffi.Native() +external int lock_set_destroy(int task, int lock_set); + +@ffi.Native() +external int lockf(int arg0, int arg1, int arg2); + +@ffi.Native() +external double log(double arg0); + +@ffi.Native() +external double log10(double arg0); + +@ffi.Native() +external double log10f(double arg0); + +@ffi.Native() +external double log1p(double arg0); + +@ffi.Native() +external double log1pf(double arg0); + +@ffi.Native() +external double log2(double arg0); + +@ffi.Native() +external double log2f(double arg0); + +@ffi.Native() +external double logb(double arg0); + +@ffi.Native() +external double logbf(double arg0); + +@ffi.Native() +external double logf(double arg0); + +@ffi.Native, ffi.Int)>() +external void longjmp(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external void longjmperror(); + +@ffi.Native() +external int lrand48(); + +@ffi.Native() +external int lrint(double arg0); + +@ffi.Native() +external int lrintf(double arg0); + +@ffi.Native() +external int lround(double arg0); + +@ffi.Native() +external int lroundf(double arg0); + +@ffi.Native() +external int lseek(int arg0, int arg1, int arg2); + +@ffi.Native, ffi.Pointer)>() +external int lutimes(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native, mach_error_t)>() +external void mach_error(ffi.Pointer str, int error_value); + +@ffi.Native Function(mach_error_t)>() +external ffi.Pointer mach_error_string(int error_value); + +@ffi.Native Function(mach_error_t)>() +external ffi.Pointer mach_error_type(int error_value); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, ffi.Int, ffi.Pointer) +>() +external int mach_generate_activity_id( + int target, + int count, + ffi.Pointer activity_id, +); + +@ffi.Native() +external int mach_host_self(); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_offset_t, + vm_prot_t, + ffi.Pointer, + mem_entry_name_port_t, + ) +>() +external int mach_make_memory_entry( + int target_task, + ffi.Pointer size, + int offset, + int permission, + ffi.Pointer object_handle, + int parent_entry, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + memory_object_offset_t, + vm_prot_t, + ffi.Pointer, + mem_entry_name_port_t, + ) +>() +external int mach_make_memory_entry_64( + int target_task, + ffi.Pointer size, + int offset, + int permission, + ffi.Pointer object_handle, + int parent_entry, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_memory_info( + int host, + ffi.Pointer names, + ffi.Pointer namesCnt, + ffi.Pointer info, + ffi.Pointer infoCnt, + ffi.Pointer memory_info, + ffi.Pointer memory_infoCnt, +); + +@ffi.Native< + kern_return_t Function( + host_t, + boolean_t, + vm_size_t, + vm_prot_t, + memory_object_t, + ffi.Pointer, + ) +>() +external int mach_memory_object_memory_entry( + int host, + int internal, + int size, + int permission, + int pager, + ffi.Pointer entry_handle, +); + +@ffi.Native< + kern_return_t Function( + host_t, + boolean_t, + memory_object_size_t, + vm_prot_t, + memory_object_t, + ffi.Pointer, + ) +>() +external int mach_memory_object_memory_entry_64( + int host, + int internal, + int size, + int permission, + int pager, + ffi.Pointer entry_handle, +); + +@ffi.Native< + mach_msg_return_t Function( + ffi.Pointer, + mach_msg_option_t, + mach_msg_size_t, + mach_msg_size_t, + mach_port_name_t, + mach_msg_timeout_t, + mach_port_name_t, + ) +>() +external int mach_msg( + ffi.Pointer msg, + int option, + int send_size, + int rcv_size, + int rcv_name, + int timeout, + int notify, +); + +@ffi.Native)>() +external void mach_msg_destroy(ffi.Pointer arg0); + +@ffi.Native< + mach_msg_return_t Function( + ffi.Pointer, + mach_msg_option_t, + mach_msg_size_t, + mach_msg_size_t, + mach_port_name_t, + mach_msg_timeout_t, + mach_port_name_t, + ffi.Pointer, + mach_msg_size_t, + ) +>() +external int mach_msg_overwrite( + ffi.Pointer msg, + int option, + int send_size, + int rcv_size, + int rcv_name, + int timeout, + int notify, + ffi.Pointer rcv_msg, + int rcv_limit, +); + +@ffi.Native)>() +external int mach_msg_receive(ffi.Pointer arg0); + +@ffi.Native)>() +external int mach_msg_send(ffi.Pointer arg0); + +@ffi.Native< + mach_msg_return_t Function( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >, + mach_msg_size_t, + mach_port_t, + mach_msg_options_t, + ) +>() +external int mach_msg_server( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native< + mach_msg_return_t Function( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >, + mach_msg_size_t, + mach_port_t, + mach_msg_options_t, + ) +>() +external int mach_msg_server_importance( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native< + mach_msg_return_t Function( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >, + mach_msg_size_t, + mach_port_t, + mach_msg_options_t, + ) +>() +external int mach_msg_server_once( + ffi.Pointer< + ffi.NativeFunction< + boolean_t Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_right_t, + ffi.Pointer, + ) +>() +external int mach_port_allocate( + int task, + int right, + ffi.Pointer name, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_right_t, + mach_port_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_allocate_full( + int task, + int right, + int proto, + ffi.Pointer qos, + ffi.Pointer name, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_right_t, mach_port_name_t) +>() +external int mach_port_allocate_name(int task, int right, int name); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_right_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_allocate_qos( + int task, + int right, + ffi.Pointer qos, + ffi.Pointer name, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_flavor_t, + mach_port_info_t, + mach_msg_type_number_t, + ) +>() +external int mach_port_assert_attributes( + int task, + int name, + int flavor, + mach_port_info_t info, + int infoCnt, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_options_ptr_t, + mach_port_context_t, + ffi.Pointer, + ) +>() +external int mach_port_construct( + int task, + mach_port_options_ptr_t options, + int context, + ffi.Pointer name, +); + +@ffi.Native() +external int mach_port_deallocate(int task, int name); + +@Deprecated( + 'Inherently unsafe API: instead manage rights with mach_port_destruct(), mach_port_deallocate() or mach_port_mod_refs()', +) +@ffi.Native() +external int mach_port_destroy(int task, int name); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_delta_t, + mach_port_context_t, + ) +>() +external int mach_port_destruct(int task, int name, int srdelta, int guard); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_dnrequest_info( + int task, + int name, + ffi.Pointer dnr_total, + ffi.Pointer dnr_used, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) +>() +external int mach_port_extract_member(int task, int name, int pset); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_msg_type_name_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_extract_right( + int task, + int name, + int msgt_name, + ffi.Pointer poly, + ffi.Pointer polyPoly, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + mach_port_flavor_t, + mach_port_info_t, + ffi.Pointer, + ) +>() +external int mach_port_get_attributes( + int task, + int name, + int flavor, + mach_port_info_t port_info_out, + ffi.Pointer port_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int mach_port_get_context( + int task, + int name, + ffi.Pointer context, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_right_t, + ffi.Pointer, + ) +>() +external int mach_port_get_refs( + int task, + int name, + int right, + ffi.Pointer refs, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int mach_port_get_service_port_info( + int task, + int name, + ffi.Pointer sp_info_out, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_get_set_status( + int task, + int name, + ffi.Pointer members, + ffi.Pointer membersCnt, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int mach_port_get_srights( + int task, + int name, + ffi.Pointer srights, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_context_t, + boolean_t, + ) +>() +external int mach_port_guard(int task, int name, int guard, int strict); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_context_t, + ffi.Uint64, + ) +>() +external int mach_port_guard_with_flags( + int task, + int name, + int guard, + int flags, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) +>() +external int mach_port_insert_member(int task, int name, int pset); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_t, + mach_msg_type_name_t, + ) +>() +external int mach_port_insert_right(int task, int name, int poly, int polyPoly); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int mach_port_is_connection_for_service( + int task, + int connection_port, + int service_port, + ffi.Pointer filter_policy_id, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_kernel_object( + int task, + int name, + ffi.Pointer object_type, + ffi.Pointer object_addr, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_kobject( + int task, + int name, + ffi.Pointer object_type, + ffi.Pointer object_addr, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + mach_port_name_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_kobject_description( + int task, + int name, + ffi.Pointer object_type, + ffi.Pointer object_addr, + ffi.Pointer description, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_right_t, + mach_port_delta_t, + ) +>() +external int mach_port_mod_refs(int task, int name, int right, int delta); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) +>() +external int mach_port_move_member(int task, int member, int after); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_names( + int task, + ffi.Pointer names, + ffi.Pointer namesCnt, + ffi.Pointer types, + ffi.Pointer typesCnt, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_msg_trailer_type_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + mach_msg_trailer_info_t, + ffi.Pointer, + ) +>() +external int mach_port_peek( + int task, + int name, + int trailer_type, + ffi.Pointer request_seqnop, + ffi.Pointer msg_sizep, + ffi.Pointer msg_idp, + mach_msg_trailer_info_t trailer_infop, + ffi.Pointer trailer_infopCnt, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) +>() +external int mach_port_rename(int task, int old_name, int new_name); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_msg_id_t, + mach_port_mscount_t, + mach_port_t, + mach_msg_type_name_t, + ffi.Pointer, + ) +>() +external int mach_port_request_notification( + int task, + int name, + int msgid, + int sync$1, + int notify, + int notifyPoly, + ffi.Pointer previous, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_flavor_t, + mach_port_info_t, + mach_msg_type_number_t, + ) +>() +external int mach_port_set_attributes( + int task, + int name, + int flavor, + mach_port_info_t port_info, + int port_infoCnt, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_context_t) +>() +external int mach_port_set_context(int task, int name, int context); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_mscount_t) +>() +external int mach_port_set_mscount(int task, int name, int mscount); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_seqno_t) +>() +external int mach_port_set_seqno(int task, int name, int seqno); + +@ffi.Native< + kern_return_t Function( + ipc_space_inspect_t, + ffi.Pointer, + ) +>() +external int mach_port_space_basic_info( + int task, + ffi.Pointer basic_info, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_read_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_port_space_info( + int space, + ffi.Pointer space_info, + ffi.Pointer table_info, + ffi.Pointer table_infoCnt, + ffi.Pointer tree_info, + ffi.Pointer tree_infoCnt, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + mach_port_context_t, + mach_port_context_t, + ) +>() +external int mach_port_swap_guard( + int task, + int name, + int old_guard, + int new_guard, +); + +@ffi.Native< + kern_return_t Function( + ipc_space_t, + mach_port_name_t, + ffi.Pointer, + ) +>() +external int mach_port_type( + int task, + int name, + ffi.Pointer ptype, +); + +@ffi.Native< + kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_context_t) +>() +external int mach_port_unguard(int task, int name, int guard); + +@ffi.Native< + kern_return_t Function( + task_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_ports_lookup( + int target_task, + ffi.Pointer init_port_set, + ffi.Pointer init_port_setCnt, +); + +@ffi.Native< + kern_return_t Function(task_t, mach_port_array_t, mach_msg_type_number_t) +>() +external int mach_ports_register( + int target_task, + mach_port_array_t init_port_set, + int init_port_setCnt, +); + +@ffi.Native() +external int mach_task_is_self(int task); + +@ffi.Native() +external int mach_task_self_; + +@ffi.Native() +external int mach_thread_self(); + +@ffi.Native)>() +external int mach_vm_reclaim_update_kernel_accounting_trap( + int target_tport, + ffi.Pointer bytes_reclaimed, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + vm_address_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_vm_region_info( + int task, + int address, + ffi.Pointer region, + ffi.Pointer objects, + ffi.Pointer objectsCnt, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + vm_address_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_vm_region_info_64( + int task, + int address, + ffi.Pointer region, + ffi.Pointer objects, + ffi.Pointer objectsCnt, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + vm_map_t, + mach_vm_address_t, + mach_vm_size_t, + vm_prot_t, + ) +>() +external int mach_vm_wire( + int host_priv, + int task, + int address, + int size, + int desired_access, +); + +@ffi.Native() +external int mach_voucher_deallocate(int voucher); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + mach_voucher_attr_key_t, + mach_voucher_attr_raw_recipe_t, + ffi.Pointer, + ) +>() +external int mach_voucher_extract_attr_recipe_trap( + int voucher_name, + int key, + mach_voucher_attr_raw_recipe_t recipe, + ffi.Pointer recipe_size, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int mach_zone_info( + int host, + ffi.Pointer names, + ffi.Pointer namesCnt, + ffi.Pointer info, + ffi.Pointer infoCnt, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + mach_zone_name_t, + ffi.Pointer, + ) +>() +external int mach_zone_info_for_zone( + int host, + mach_zone_name_t name, + ffi.Pointer info, +); + +@ffi.Native() +external int macx_backing_store_recovery(int pid); + +@ffi.Native() +external int macx_backing_store_suspend(int suspend); + +@ffi.Native() +external int macx_swapoff(int filename, int flags); + +@ffi.Native() +external int macx_swapon(int filename, int flags, int size, int priority); + +@ffi.Native() +external int macx_triggers( + int hi_water, + int low_water, + int flags, + int alert_port, +); + +@ffi.Native, ffi.Size, ffi.Int)>() +external int madvise(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native Function(ffi.Size)>() +external ffi.Pointer malloc(int __size); + +@ffi.Native< + ffi.Pointer Function(ffi.Size, ffi.Size, malloc_type_id_t) +>() +external ffi.Pointer malloc_type_aligned_alloc( + int alignment, + int size, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Size, ffi.Size, malloc_type_id_t) +>() +external ffi.Pointer malloc_type_calloc( + int count, + int size, + int type_id, +); + +@ffi.Native, malloc_type_id_t)>() +external void malloc_type_free(ffi.Pointer ptr, int type_id); + +@ffi.Native Function(ffi.Size, malloc_type_id_t)>() +external ffi.Pointer malloc_type_malloc(int size, int type_id); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Size, + ffi.Size, + malloc_type_id_t, + ) +>() +external int malloc_type_posix_memalign( + ffi.Pointer> memptr, + int alignment, + int size, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_realloc( + ffi.Pointer ptr, + int size, + int type_id, +); + +@ffi.Native Function(ffi.Size, malloc_type_id_t)>() +external ffi.Pointer malloc_type_valloc(int size, int type_id); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_zone_calloc( + ffi.Pointer zone, + int count, + int size, + int type_id, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + malloc_type_id_t, + ) +>() +external void malloc_type_zone_free( + ffi.Pointer zone, + ffi.Pointer ptr, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_zone_malloc( + ffi.Pointer zone, + int size, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_zone_memalign( + ffi.Pointer zone, + int alignment, + int size, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_zone_realloc( + ffi.Pointer zone, + ffi.Pointer ptr, + int size, + int type_id, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + malloc_type_id_t, + ) +>() +external ffi.Pointer malloc_type_zone_valloc( + ffi.Pointer zone, + int size, + int type_id, +); + +@ffi.Native, ffi.Size)>() +external int mblen(ffi.Pointer __s, int __n); + +@ffi.Native< + ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int mbstowcs( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __n, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int mbtowc( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __n, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Size, + ) +>() +external ffi.Pointer memccpy( + ffi.Pointer __dst, + ffi.Pointer __src, + int __c, + int __n, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Size) +>() +external ffi.Pointer memchr( + ffi.Pointer __s, + int __c, + int __n, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int memcmp( + ffi.Pointer __s1, + ffi.Pointer __s2, + int __n, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer memcpy( + ffi.Pointer __dst, + ffi.Pointer __src, + int __n, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer memmem( + ffi.Pointer __big, + int __big_len, + ffi.Pointer __little, + int __little_len, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer memmove( + ffi.Pointer __dst, + ffi.Pointer __src, + int __len, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Size) +>() +external ffi.Pointer memset( + ffi.Pointer __b, + int __c, + int __len, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external void memset_pattern16( + ffi.Pointer __b, + ffi.Pointer __pattern16, + int __len, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external void memset_pattern4( + ffi.Pointer __b, + ffi.Pointer __pattern4, + int __len, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external void memset_pattern8( + ffi.Pointer __b, + ffi.Pointer __pattern8, + int __len, +); + +@ffi.Native< + errno_t Function(ffi.Pointer, rsize_t, ffi.Int, rsize_t) +>() +external int memset_s(ffi.Pointer __s, int __smax, int __c, int __n); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) +>() +external int mergesort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'mergesort_b') +external int _mergesort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer __compar, +); + +int mergesort_b( + ffi.Pointer __base, + int __nel, + int __width, + objc.ObjCBlock, ffi.Pointer)> + __compar, +) { + final _$$ref = __compar.ref; + return _mergesort_b(__base, __nel, __width, _$$ref.pointer); +} + +@ffi.Native, vm_size_t)>() +external void mig_allocate(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external void mig_dealloc_reply_port(int reply_port); + +@ffi.Native() +external void mig_deallocate(int arg0, int arg1); + +@ffi.Native() +external int mig_get_reply_port(); + +@ffi.Native() +external void mig_put_reply_port(int reply_port); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external void mig_reply_setup( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int mig_strncpy( + ffi.Pointer dest, + ffi.Pointer src, + int len, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int mig_strncpy_zerofill( + ffi.Pointer dest, + ffi.Pointer src, + int len, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Pointer) +>() +external int mincore( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +); + +@ffi.Native, ffi.Size, ffi.Int)>() +external int minherit(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer mkdtemp(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Int, ffi.Pointer)>() +external ffi.Pointer mkdtempat_np( + int dfd, + ffi.Pointer path, +); + +@ffi.Native, mode_t, dev_t)>() +external int mknod(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native, ffi.Int)>() +external int mkostemp(ffi.Pointer path, int oflags); + +@ffi.Native, ffi.Int, ffi.Int)>() +external int mkostemps(ffi.Pointer path, int slen, int oflags); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) +>() +external int mkostempsat_np( + int dfd, + ffi.Pointer path, + int slen, + int oflags, +); + +@ffi.Native, mode_t)>() +external int mkpath_np(ffi.Pointer path, int omode); + +@ffi.Native, mode_t)>() +external int mkpathat_np(int dfd, ffi.Pointer path, int omode); + +@ffi.Native)>() +external int mkstemp(ffi.Pointer arg0); + +@ffi.Native, ffi.Int, ffi.Int)>() +external int mkstemp_dprotected_np( + ffi.Pointer path, + int dpclass, + int dpflags, +); + +@ffi.Native, ffi.Int)>() +external int mkstemps(ffi.Pointer arg0, int arg1); + +@ffi.Native, ffi.Int)>() +external int mkstempsat_np(int dfd, ffi.Pointer path, int slen); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.', +) +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer mktemp(ffi.Pointer arg0); + +@ffi.Native)>() +external int mktime(ffi.Pointer arg0); + +@ffi.Native, ffi.Size)>() +external int mlock(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int mlockall(int arg0); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Int, + ffi.Int, + off_t, + ) +>() +external ffi.Pointer mmap( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, + int arg4, + int arg5, +); + +@ffi.Native)>() +external double modf(double arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external double modff(double arg0, ffi.Pointer arg1); + +@ffi.Native, ffi.Size, ffi.Int)>() +external int mprotect(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native() +external int mrand48(); + +@ffi.Native, ffi.Size, ffi.Int)>() +external int msync(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native, ffi.Size)>() +external int munlock(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int munlockall(); + +@ffi.Native, ffi.Size)>() +external int munmap(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external double nan(ffi.Pointer arg0); + +@ffi.Native)>() +external double nanf(ffi.Pointer arg0); + +@ffi.Native, ffi.Pointer)>() +external int nanosleep( + ffi.Pointer __rqtp, + ffi.Pointer __rmtp, +); + +@ffi.Native() +external double nearbyint(double arg0); + +@ffi.Native() +external double nearbyintf(double arg0); + +@ffi.Native, locale_t)>() +external locale_t newlocale( + int arg0, + ffi.Pointer arg1, + locale_t arg2, +); + +@ffi.Native() +external double nextafter(double arg0, double arg1); + +@ffi.Native() +external double nextafterf(double arg0, double arg1); + +@ffi.Native)>() +external int nfssvc(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external int nice(int arg0); + +@ffi.Native)>() +external int nrand48(ffi.Pointer arg0); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function(ffi.Pointer, double_t, ffi.Pointer) +>() +external void num2dec(ffi.Pointer f, double x, ffi.Pointer d); + +@Deprecated('Deprecated') +@ffi.Native)>() +external void numtostring(int theNum, ffi.Pointer theString); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'object_getClassName', +) +external ffi.Pointer _object_getClassName( + ffi.Pointer obj, +); + +ffi.Pointer object_getClassName(objc.ObjCObject? obj) { + final _$$ref = obj?.ref; + return _object_getClassName(_$$ref?.pointer ?? ffi.nullptr); +} + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'object_getIndexedIvars', +) +external ffi.Pointer _object_getIndexedIvars( + ffi.Pointer obj, +); + +ffi.Pointer object_getIndexedIvars(objc.ObjCObject? obj) { + final _$$ref = obj?.ref; + return _object_getIndexedIvars(_$$ref?.pointer ?? ffi.nullptr); +} + +@ffi.Native() +external final DERItem oidAdCAIssuer; + +@ffi.Native() +external final DERItem oidAdOCSP; + +@ffi.Native() +external final DERItem oidAnsip384r1; + +@ffi.Native() +external final DERItem oidAnsip521r1; + +@ffi.Native() +external final DERItem oidAnyExtendedKeyUsage; + +@ffi.Native() +external final DERItem oidAnyPolicy; + +@ffi.Native() +external final DERItem oidAuthorityInfoAccess; + +@ffi.Native() +external final DERItem oidAuthorityKeyIdentifier; + +@ffi.Native() +external final DERItem oidBasicConstraints; + +@ffi.Native() +external final DERItem oidCertificatePolicies; + +@ffi.Native() +external final DERItem oidCommonName; + +@ffi.Native() +external final DERItem oidCountryName; + +@ffi.Native() +external final DERItem oidCrlDistributionPoints; + +@ffi.Native() +external final DERItem oidDescription; + +@ffi.Native() +external final DERItem oidEcPrime192v1; + +@ffi.Native() +external final DERItem oidEcPrime256v1; + +@ffi.Native() +external final DERItem oidEcPubKey; + +@ffi.Native() +external final DERItem oidEmailAddress; + +@ffi.Native() +external final DERItem oidEntrustVersInfo; + +@ffi.Native() +external final DERItem oidExtendedKeyUsage; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageClientAuth; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageCodeSigning; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageEmailProtection; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageIPSec; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageMicrosoftSGC; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageNetscapeSGC; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageOCSPSigning; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageServerAuth; + +@ffi.Native() +external final DERItem oidExtendedKeyUsageTimeStamping; + +@ffi.Native() +external final DERItem oidFee; + +@ffi.Native() +external final DERItem oidFriendlyName; + +@ffi.Native() +external final DERItem oidGoogleEmbeddedSignedCertificateTimestamp; + +@ffi.Native() +external final DERItem oidGoogleOCSPSignedCertificateTimestamp; + +@ffi.Native() +external final DERItem oidInhibitAnyPolicy; + +@ffi.Native() +external final DERItem oidIssuerAltName; + +@ffi.Native() +external final DERItem oidKeyUsage; + +@ffi.Native() +external final DERItem oidLocalKeyId; + +@ffi.Native() +external final DERItem oidLocalityName; + +@ffi.Native() +external final DERItem oidMSNTPrincipalName; + +@ffi.Native() +external final DERItem oidMd2; + +@ffi.Native() +external final DERItem oidMd2Rsa; + +@ffi.Native() +external final DERItem oidMd4; + +@ffi.Native() +external final DERItem oidMd4Rsa; + +@ffi.Native() +external final DERItem oidMd5; + +@ffi.Native() +external final DERItem oidMd5Fee; + +@ffi.Native() +external final DERItem oidMd5Rsa; + +@ffi.Native() +external final DERItem oidNameConstraints; + +@ffi.Native() +external final DERItem oidNetscapeCertType; + +@ffi.Native() +external final DERItem oidOrganizationName; + +@ffi.Native() +external final DERItem oidOrganizationalUnitName; + +@ffi.Native() +external final DERItem oidPolicyConstraints; + +@ffi.Native() +external final DERItem oidPolicyMappings; + +@ffi.Native() +external final DERItem oidPrivateKeyUsagePeriod; + +@ffi.Native() +external final DERItem oidQtCps; + +@ffi.Native() +external final DERItem oidQtUNotice; + +@ffi.Native() +external final DERItem oidRsa; + +@ffi.Native() +external final DERItem oidSha1; + +@ffi.Native() +external final DERItem oidSha1Dsa; + +@ffi.Native() +external final DERItem oidSha1DsaCommonOIW; + +@ffi.Native() +external final DERItem oidSha1DsaOIW; + +@ffi.Native() +external final DERItem oidSha1Ecdsa; + +@ffi.Native() +external final DERItem oidSha1Fee; + +@ffi.Native() +external final DERItem oidSha1Rsa; + +@ffi.Native() +external final DERItem oidSha1RsaOIW; + +@ffi.Native() +external final DERItem oidSha224; + +@ffi.Native() +external final DERItem oidSha224Ecdsa; + +@ffi.Native() +external final DERItem oidSha224Rsa; + +@ffi.Native() +external final DERItem oidSha256; + +@ffi.Native() +external final DERItem oidSha256Ecdsa; + +@ffi.Native() +external final DERItem oidSha256Rsa; + +@ffi.Native() +external final DERItem oidSha384; + +@ffi.Native() +external final DERItem oidSha384Ecdsa; + +@ffi.Native() +external final DERItem oidSha384Rsa; + +@ffi.Native() +external final DERItem oidSha512; + +@ffi.Native() +external final DERItem oidSha512Ecdsa; + +@ffi.Native() +external final DERItem oidSha512Rsa; + +@ffi.Native() +external final DERItem oidStateOrProvinceName; + +@ffi.Native() +external final DERItem oidSubjectAltName; + +@ffi.Native() +external final DERItem oidSubjectInfoAccess; + +@ffi.Native() +external final DERItem oidSubjectKeyIdentifier; + +@ffi.Native, ffi.Int)>() +external int open(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int, ffi.Int) +>() +external int open_dprotected_np( + ffi.Pointer arg0, + int arg1, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer>, + ffi.Pointer, + ) +>() +external ffi.Pointer open_memstream( + ffi.Pointer> __bufp, + ffi.Pointer __sizep, +); + +@ffi.Native, ffi.Int)>() +external int openat(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) +>() +external int openat_authenticated_np( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int, ffi.Int) +>() +external int openat_dprotected_np( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, +); + +@ffi.Native, ffi.Int, filesec_t)>() +external int openx_np(ffi.Pointer arg0, int arg1, filesec_t arg2); + +@ffi.Native>() +external ffi.Pointer optarg; + +@ffi.Native() +external int opterr; + +@ffi.Native() +external int optind; + +@ffi.Native() +external int optopt; + +@ffi.Native() +external int optreset; + +@ffi.Native)>() +external void os_release(ffi.Pointer object); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer os_retain(ffi.Pointer object); + +@ffi.Native(symbol: 'os_workgroup_cancel') +external void _os_workgroup_cancel(os_workgroup_t wg); + +void os_workgroup_cancel(Dartos_workgroup_t wg) { + final _$$ref = wg.ref; + return _os_workgroup_cancel(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'os_workgroup_copy_port', +) +external int _os_workgroup_copy_port( + os_workgroup_t wg, + ffi.Pointer mach_port_out, +); + +int os_workgroup_copy_port( + Dartos_workgroup_t wg, + ffi.Pointer mach_port_out, +) { + final _$$ref = wg.ref; + return _os_workgroup_copy_port(_$$ref.pointer, mach_port_out); +} + +@ffi.Native, mach_port_t)>( + symbol: 'os_workgroup_create_with_port', +) +external os_workgroup_t _os_workgroup_create_with_port( + ffi.Pointer name, + int mach_port, +); + +Dartos_workgroup_t? os_workgroup_create_with_port( + ffi.Pointer name, + Dart__darwin_natural_t mach_port, +) { + return _os_workgroup_create_with_port(name, mach_port).address == 0 + ? null + : OS_os_workgroup.fromPointer( + _os_workgroup_create_with_port(name, mach_port), + retain: false, + release: true, + ); +} + +@ffi.Native, os_workgroup_t)>( + symbol: 'os_workgroup_create_with_workgroup', +) +external os_workgroup_t _os_workgroup_create_with_workgroup( + ffi.Pointer name, + os_workgroup_t wg, +); + +Dartos_workgroup_t? os_workgroup_create_with_workgroup( + ffi.Pointer name, + Dartos_workgroup_t wg, +) { + final _$$ref = wg.ref; + return _os_workgroup_create_with_workgroup(name, _$$ref.pointer).address == 0 + ? null + : OS_os_workgroup.fromPointer( + _os_workgroup_create_with_workgroup(name, _$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function( + os_workgroup_t, + ffi.Pointer, + ) +>(symbol: 'os_workgroup_get_working_arena') +external ffi.Pointer _os_workgroup_get_working_arena( + os_workgroup_t wg, + ffi.Pointer index_out, +); + +ffi.Pointer os_workgroup_get_working_arena( + Dartos_workgroup_t wg, + ffi.Pointer index_out, +) { + final _$$ref = wg.ref; + return _os_workgroup_get_working_arena(_$$ref.pointer, index_out); +} + +@ffi.Native< + ffi.Int Function(os_workgroup_interval_t, os_workgroup_interval_data_t) +>(symbol: 'os_workgroup_interval_finish') +external int _os_workgroup_interval_finish( + os_workgroup_interval_t wg, + os_workgroup_interval_data_t data, +); + +int os_workgroup_interval_finish( + Dartos_workgroup_interval_t wg, + os_workgroup_interval_data_t data, +) { + final _$$ref = wg.ref; + return _os_workgroup_interval_finish(_$$ref.pointer, data); +} + +@ffi.Native< + ffi.Int Function( + os_workgroup_interval_t, + ffi.Uint64, + ffi.Uint64, + os_workgroup_interval_data_t, + ) +>(symbol: 'os_workgroup_interval_start') +external int _os_workgroup_interval_start( + os_workgroup_interval_t wg, + int start, + int deadline, + os_workgroup_interval_data_t data, +); + +int os_workgroup_interval_start( + Dartos_workgroup_interval_t wg, + int start, + int deadline, + os_workgroup_interval_data_t data, +) { + final _$$ref = wg.ref; + return _os_workgroup_interval_start(_$$ref.pointer, start, deadline, data); +} + +@ffi.Native< + ffi.Int Function( + os_workgroup_interval_t, + ffi.Uint64, + os_workgroup_interval_data_t, + ) +>(symbol: 'os_workgroup_interval_update') +external int _os_workgroup_interval_update( + os_workgroup_interval_t wg, + int deadline, + os_workgroup_interval_data_t data, +); + +int os_workgroup_interval_update( + Dartos_workgroup_interval_t wg, + int deadline, + os_workgroup_interval_data_t data, +) { + final _$$ref = wg.ref; + return _os_workgroup_interval_update(_$$ref.pointer, deadline, data); +} + +@ffi.Native( + symbol: 'os_workgroup_join', +) +external int _os_workgroup_join( + os_workgroup_t wg, + os_workgroup_join_token_t token_out, +); + +int os_workgroup_join( + Dartos_workgroup_t wg, + os_workgroup_join_token_t token_out, +) { + final _$$ref = wg.ref; + return _os_workgroup_join(_$$ref.pointer, token_out); +} + +@ffi.Native( + symbol: 'os_workgroup_leave', +) +external void _os_workgroup_leave( + os_workgroup_t wg, + os_workgroup_join_token_t token, +); + +void os_workgroup_leave( + Dartos_workgroup_t wg, + os_workgroup_join_token_t token, +) { + final _$$ref = wg.ref; + return _os_workgroup_leave(_$$ref.pointer, token); +} + +@ffi.Native( + symbol: 'os_workgroup_max_parallel_threads', +) +external int _os_workgroup_max_parallel_threads( + os_workgroup_t wg, + os_workgroup_mpt_attr_t attr, +); + +int os_workgroup_max_parallel_threads( + Dartos_workgroup_t wg, + os_workgroup_mpt_attr_t attr, +) { + final _$$ref = wg.ref; + return _os_workgroup_max_parallel_threads(_$$ref.pointer, attr); +} + +@ffi.Native< + os_workgroup_parallel_t Function(ffi.Pointer, os_workgroup_attr_t) +>(symbol: 'os_workgroup_parallel_create') +external os_workgroup_parallel_t _os_workgroup_parallel_create( + ffi.Pointer name, + os_workgroup_attr_t attr, +); + +Dartos_workgroup_parallel_t? os_workgroup_parallel_create( + ffi.Pointer name, + os_workgroup_attr_t attr, +) { + return _os_workgroup_parallel_create(name, attr).address == 0 + ? null + : OS_os_workgroup.fromPointer( + _os_workgroup_parallel_create(name, attr), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Int Function( + os_workgroup_t, + ffi.Pointer, + ffi.Uint32, + os_workgroup_working_arena_destructor_t, + ) +>(symbol: 'os_workgroup_set_working_arena') +external int _os_workgroup_set_working_arena( + os_workgroup_t wg, + ffi.Pointer arena, + int max_workers, + os_workgroup_working_arena_destructor_t destructor, +); + +int os_workgroup_set_working_arena( + Dartos_workgroup_t wg, + ffi.Pointer arena, + int max_workers, + os_workgroup_working_arena_destructor_t destructor, +) { + final _$$ref = wg.ref; + return _os_workgroup_set_working_arena( + _$$ref.pointer, + arena, + max_workers, + destructor, + ); +} + +@ffi.Native( + symbol: 'os_workgroup_testcancel', +) +external bool _os_workgroup_testcancel(os_workgroup_t wg); + +bool os_workgroup_testcancel(Dartos_workgroup_t wg) { + final _$$ref = wg.ref; + return _os_workgroup_testcancel(_$$ref.pointer); +} + +@ffi.Native)>() +external void panic(ffi.Pointer arg0); + +@ffi.Native() +external void panic_init(int arg0); + +@ffi.Native, ffi.Int)>() +external int pathconf(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int pause(); + +@ffi.Native)>() +external int pclose(ffi.Pointer arg0); + +@ffi.Native)>() +external void perror(ffi.Pointer arg0); + +@ffi.Native)>() +external void pfctlinput(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external final double pi; + +@ffi.Native)>() +external int pid_for_task(int t, ffi.Pointer x); + +@ffi.Native)>() +external int pipe(ffi.Pointer arg0); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer popen( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int posix2time(int arg0); + +@ffi.Native, ffi.Size, ffi.Int)>() +external int posix_madvise(ffi.Pointer arg0, int arg1, int arg2); + +@ffi.Native< + ffi.Int Function(ffi.Pointer>, ffi.Size, ffi.Size) +>() +external int posix_memalign( + ffi.Pointer> __memptr, + int __alignment, + int __size, +); + +@ffi.Native() +external int posix_openpt(int arg0); + +@ffi.Native() +external double pow(double arg0, double arg1); + +@ffi.Native() +external double powf(double arg0, double arg1); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native)>() +external void ppdClose(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer>>, + ) +>(symbol: 'ppdCollect') +external int _ppdCollect( + ffi.Pointer ppd, + int section, + ffi.Pointer>> choices, +); + +int ppdCollect( + ffi.Pointer ppd, + ppd_section_e section, + ffi.Pointer>> choices, +) { + return _ppdCollect(ppd, section.value, choices); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Float, + ffi.Pointer>>, + ) +>(symbol: 'ppdCollect2') +external int _ppdCollect2( + ffi.Pointer ppd, + int section, + double min_order, + ffi.Pointer>> choices, +); + +int ppdCollect2( + ffi.Pointer ppd, + ppd_section_e section, + double min_order, + ffi.Pointer>> choices, +) { + return _ppdCollect2(ppd, section.value, min_order, choices); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native)>() +external int ppdConflicts(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt) +>(symbol: 'ppdEmit') +external int _ppdEmit( + ffi.Pointer ppd, + ffi.Pointer fp, + int section, +); + +int ppdEmit( + ffi.Pointer ppd, + ffi.Pointer fp, + ppd_section_e section, +) { + return _ppdEmit(ppd, fp, section.value); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ffi.Float, + ) +>(symbol: 'ppdEmitAfterOrder') +external int _ppdEmitAfterOrder( + ffi.Pointer ppd, + ffi.Pointer fp, + int section, + int limit, + double min_order, +); + +int ppdEmitAfterOrder( + ffi.Pointer ppd, + ffi.Pointer fp, + ppd_section_e section, + int limit, + double min_order, +) { + return _ppdEmitAfterOrder(ppd, fp, section.value, limit, min_order); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.UnsignedInt) +>(symbol: 'ppdEmitFd') +external int _ppdEmitFd(ffi.Pointer ppd, int fd, int section); + +int ppdEmitFd(ffi.Pointer ppd, int fd, ppd_section_e section) { + return _ppdEmitFd(ppd, fd, section.value); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ppdEmitJCL( + ffi.Pointer ppd, + ffi.Pointer fp, + int job_id, + ffi.Pointer user, + ffi.Pointer title, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native, ffi.Pointer)>() +external int ppdEmitJCLEnd(ffi.Pointer ppd, ffi.Pointer fp); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Float, + ) +>(symbol: 'ppdEmitString') +external ffi.Pointer _ppdEmitString( + ffi.Pointer ppd, + int section, + double min_order, +); + +ffi.Pointer ppdEmitString( + ffi.Pointer ppd, + ppd_section_e section, + double min_order, +) { + return _ppdEmitString(ppd, section.value, min_order); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.UnsignedInt)>( + symbol: 'ppdErrorString', +) +external ffi.Pointer _ppdErrorString(int status); + +ffi.Pointer ppdErrorString(ppd_status_e status) { + return _ppdErrorString(status.value); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindAttr( + ffi.Pointer ppd, + ffi.Pointer name, + ffi.Pointer spec, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindChoice( + ffi.Pointer o, + ffi.Pointer option, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindCustomOption( + ffi.Pointer ppd, + ffi.Pointer keyword, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindCustomParam( + ffi.Pointer opt, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindMarkedChoice( + ffi.Pointer ppd, + ffi.Pointer keyword, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindNextAttr( + ffi.Pointer ppd, + ffi.Pointer name, + ffi.Pointer spec, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdFindOption( + ffi.Pointer ppd, + ffi.Pointer keyword, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdFirstCustomParam( + ffi.Pointer opt, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdFirstOption(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ppdInstallableConflict( + ffi.Pointer ppd, + ffi.Pointer option, + ffi.Pointer choice, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ppdIsMarked( + ffi.Pointer ppd, + ffi.Pointer keyword, + ffi.Pointer option, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native)>( + symbol: 'ppdLastError', +) +external int _ppdLastError(ffi.Pointer line); + +ppd_status_e ppdLastError(ffi.Pointer line) { + return ppd_status_e.fromValue(_ppdLastError(line)); +} + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native)>() +external int ppdLocalize(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdLocalizeAttr( + ffi.Pointer ppd, + ffi.Pointer keyword, + ffi.Pointer spec, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer ppdLocalizeIPPReason( + ffi.Pointer ppd, + ffi.Pointer reason, + ffi.Pointer scheme, + ffi.Pointer buffer, + int bufsize, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer ppdLocalizeMarkerName( + ffi.Pointer ppd, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native)>() +external void ppdMarkDefaults(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ppdMarkOption( + ffi.Pointer ppd, + ffi.Pointer keyword, + ffi.Pointer option, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdNextCustomParam( + ffi.Pointer opt, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdNextOption(ffi.Pointer ppd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdOpen(ffi.Pointer fp); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdOpen2(ffi.Pointer fp); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer ppdOpenFd(int fd); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer ppdOpenFile(ffi.Pointer filename); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Float Function(ffi.Pointer, ffi.Pointer) +>() +external double ppdPageLength( + ffi.Pointer ppd, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer ppdPageSize( + ffi.Pointer ppd, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ppdPageSizeLimits( + ffi.Pointer ppd, + ffi.Pointer minimum, + ffi.Pointer maximum, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native< + ffi.Float Function(ffi.Pointer, ffi.Pointer) +>() +external double ppdPageWidth( + ffi.Pointer ppd, + ffi.Pointer name, +); + +@Deprecated('Use cupsCopyDestInfo and friends instead.') +@ffi.Native(symbol: 'ppdSetConformance') +external void _ppdSetConformance(int c); + +void ppdSetConformance(ppd_conform_e c) { + return _ppdSetConformance(c.value); +} + +@ffi.Native, ffi.Size, off_t)>() +external int pread( + int __fd, + ffi.Pointer __buf, + int __nbyte, + int __offset, +); + +@ffi.Native)>() +external int printf(ffi.Pointer arg0); + +@ffi.Native() +external int processor_assign(int processor, int new_set, int wait$2); + +@ffi.Native< + kern_return_t Function(processor_t, processor_info_t, mach_msg_type_number_t) +>() +external int processor_control( + int processor, + processor_info_t processor_cmd, + int processor_cmdCnt, +); + +@ffi.Native() +external int processor_exit(int processor); + +@ffi.Native< + kern_return_t Function(processor_t, ffi.Pointer) +>() +external int processor_get_assignment( + int processor, + ffi.Pointer assigned_set, +); + +@ffi.Native< + kern_return_t Function( + processor_t, + processor_flavor_t, + ffi.Pointer, + processor_info_t, + ffi.Pointer, + ) +>() +external int processor_info( + int processor, + int flavor, + ffi.Pointer host, + processor_info_t processor_info_out, + ffi.Pointer processor_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + host_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int processor_set_create( + int host, + ffi.Pointer new_set, + ffi.Pointer new_name, +); + +@ffi.Native)>() +external int processor_set_default( + int host, + ffi.Pointer default_set, +); + +@ffi.Native() +external int processor_set_destroy(int set); + +@ffi.Native< + kern_return_t Function( + processor_set_name_t, + ffi.Int, + ffi.Pointer, + processor_set_info_t, + ffi.Pointer, + ) +>() +external int processor_set_info( + int set_name, + int flavor, + ffi.Pointer host, + processor_set_info_t info_out, + ffi.Pointer info_outCnt, +); + +@ffi.Native() +external int processor_set_max_priority( + int processor_set, + int max_priority, + int change_threads, +); + +@ffi.Native< + kern_return_t Function( + processor_set_t, + processor_set_flavor_t, + processor_set_info_t, + mach_msg_type_number_t, + boolean_t, + ) +>() +external int processor_set_policy_control( + int pset, + int flavor, + processor_set_info_t policy_info, + int policy_infoCnt, + int change, +); + +@ffi.Native() +external int processor_set_policy_disable( + int processor_set, + int policy, + int change_threads, +); + +@ffi.Native() +external int processor_set_policy_enable(int processor_set, int policy); + +@ffi.Native< + kern_return_t Function( + processor_set_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int processor_set_stack_usage( + int pset, + ffi.Pointer ltotal, + ffi.Pointer space, + ffi.Pointer resident, + ffi.Pointer maxusage, + ffi.Pointer maxstack, +); + +@ffi.Native< + kern_return_t Function( + processor_set_name_t, + processor_set_flavor_t, + processor_set_info_t, + ffi.Pointer, + ) +>() +external int processor_set_statistics( + int pset, + int flavor, + processor_set_info_t info_out, + ffi.Pointer info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + processor_set_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int processor_set_tasks( + int processor_set, + ffi.Pointer task_list, + ffi.Pointer task_listCnt, +); + +@ffi.Native< + kern_return_t Function( + processor_set_t, + mach_task_flavor_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int processor_set_tasks_with_flavor( + int processor_set, + int flavor, + ffi.Pointer task_list, + ffi.Pointer task_listCnt, +); + +@ffi.Native< + kern_return_t Function( + processor_set_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int processor_set_threads( + int processor_set, + ffi.Pointer thread_list, + ffi.Pointer thread_listCnt, +); + +@ffi.Native() +external int processor_start(int processor); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.UnsignedLong, + ffi.UnsignedInt, + ) +>() +external int profil( + ffi.Pointer arg0, + int __bufsiz, + int arg2, + int arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int pselect( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native)>() +external void psignal(int arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) +>() +external void psort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'psort_b') +external void _psort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer __compar, +); + +void psort_b( + ffi.Pointer __base, + int __nel, + int __width, + objc.ObjCBlock, ffi.Pointer)> + __compar, +) { + final _$$ref = __compar.ref; + return _psort_b(__base, __nel, __width, _$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) +>() +external void psort_r( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer arg3, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + __compar, +); + +@ffi.Native, ffi.Pointer)>() +external int pthread_getugid_np( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int pthread_kill(pthread_t arg0, int arg1); + +@Deprecated( + 'Use of per-thread security contexts is error-prone and discouraged.', +) +@ffi.Native() +external int pthread_setugid_np(int arg0, int arg1); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int pthread_sigmask( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer ptsname(int arg0); + +@ffi.Native, ffi.Size)>() +external int ptsname_r(int fildes, ffi.Pointer buffer, int buflen); + +@ffi.Native)>() +external int putc(int arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external int putc_unlocked(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external int putchar(int arg0); + +@ffi.Native() +external int putchar_unlocked(int arg0); + +@ffi.Native)>() +external int putenv(ffi.Pointer arg0); + +@ffi.Native)>() +external int puts(ffi.Pointer arg0); + +@ffi.Native)>() +external int putw(int arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) +>() +external int pwgFormatSizeName( + ffi.Pointer keyword, + int keysize, + ffi.Pointer prefix, + ffi.Pointer name, + int width, + int length, + ffi.Pointer units, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int pwgInitSize( + ffi.Pointer size, + ffi.Pointer job, + ffi.Pointer margins_set, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer pwgMediaForLegacy( + ffi.Pointer legacy, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer pwgMediaForPPD(ffi.Pointer ppd); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer pwgMediaForPWG(ffi.Pointer pwg); + +@ffi.Native Function(ffi.Int, ffi.Int)>() +external ffi.Pointer pwgMediaForSize(int width, int length); + +@ffi.Native, ffi.Size, off_t)>() +external int pwrite( + int __fd, + ffi.Pointer __buf, + int __nbyte, + int __offset, +); + +@ffi.Native(symbol: 'qos_class_main') +external int _qos_class_main(); + +qos_class_t qos_class_main() { + return qos_class_t.fromValue(_qos_class_main()); +} + +@ffi.Native(symbol: 'qos_class_self') +external int _qos_class_self(); + +qos_class_t qos_class_self() { + return qos_class_t.fromValue(_qos_class_self()); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >, + ) +>() +external void qsort( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + __compar, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ) +>(symbol: 'qsort_b') +external void _qsort_b( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer __compar, +); + +void qsort_b( + ffi.Pointer __base, + int __nel, + int __width, + objc.ObjCBlock, ffi.Pointer)> + __compar, +) { + final _$$ref = __compar.ref; + return _qsort_b(__base, __nel, __width, _$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + ffi.Size, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) +>() +external void qsort_r( + ffi.Pointer __base, + int __nel, + int __width, + ffi.Pointer arg3, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + __compar, +); + +@ffi.Native() +external void quick_exit(int arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int radixsort( + ffi.Pointer> __base, + int __nel, + ffi.Pointer __table, + int __endbyte, +); + +@ffi.Native() +external int raise(int arg0); + +@ffi.Native() +external int rand(); + +@ffi.Native)>() +external int rand_r(ffi.Pointer arg0); + +@ffi.Native() +external int random(); + +@Deprecated('Deprecated') +@ffi.Native)>() +external double randomx(ffi.Pointer x); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int rcmd( + ffi.Pointer> arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external int rcmd_af( + ffi.Pointer> arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + int arg6, +); + +@ffi.Native, ffi.Size)>() +external int read(int arg0, ffi.Pointer arg1, int __nbyte); + +@ffi.Native< + ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int readlink( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __bufsize, +); + +@ffi.Native< + ssize_t Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external int readlinkat( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, +); + +@ffi.Native Function(ffi.Pointer, ffi.Size)>() +external ffi.Pointer realloc(ffi.Pointer __ptr, int __size); + +@ffi.Native Function(ffi.Pointer, ffi.Size)>() +external ffi.Pointer reallocf( + ffi.Pointer __ptr, + int __size, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer realpath( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int reboot(int arg0); + +@ffi.Native< + ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size, ffi.Int) +>() +external int recv(int arg0, ffi.Pointer arg1, int arg2, int arg3); + +@ffi.Native< + ssize_t Function( + ffi.Int, + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int recvfrom( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, +); + +@ffi.Native, ffi.Int)>() +external int recvmsg(int arg0, ffi.Pointer arg1, int arg2); + +@Deprecated('Deprecated') +@ffi.Native() +external int relation(double x, double y); + +@ffi.Native() +external double remainder(double arg0, double arg1); + +@ffi.Native() +external double remainderf(double arg0, double arg1); + +@ffi.Native)>() +external int remove(ffi.Pointer arg0); + +@ffi.Native)>() +external double remquo(double arg0, double arg1, ffi.Pointer arg2); + +@ffi.Native)>() +external double remquof(double arg0, double arg1, ffi.Pointer arg2); + +@ffi.Native, ffi.Pointer)>() +external int rename(ffi.Pointer __old, ffi.Pointer __new); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) +>() +external int renameat( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int renameatx_np( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + int arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int renamex_np( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native)>() +external int revoke(ffi.Pointer arg0); + +@ffi.Native)>() +external void rewind(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer rindex(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external double rint(double arg0); + +@ffi.Native() +external double rintf(double arg0); + +@ffi.Native)>() +external int rmdir(ffi.Pointer arg0); + +@ffi.Native() +external double round(double arg0); + +@ffi.Native() +external double roundf(double arg0); + +@ffi.Native)>() +external int rpmatch(ffi.Pointer arg0); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int rresvport(ffi.Pointer arg0); + +@Deprecated('Deprecated') +@ffi.Native, ffi.Int)>() +external int rresvport_af(ffi.Pointer arg0, int arg1); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int ruserok( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@Deprecated('Deprecated') +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer sbrk(int arg0); + +@ffi.Native() +external double scalb(double arg0, double arg1); + +@ffi.Native() +external double scalbln(double arg0, int arg1); + +@ffi.Native() +external double scalblnf(double arg0, int arg1); + +@ffi.Native() +external double scalbn(double arg0, int arg1); + +@ffi.Native() +external double scalbnf(double arg0, int arg1); + +@ffi.Native)>() +external int scanf(ffi.Pointer arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) +>() +external int searchfs( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ffi.Pointer arg5, +); + +@ffi.Native( + symbol: 'sec_certificate_copy_ref', +) +external SecCertificateRef _sec_certificate_copy_ref( + sec_certificate_t certificate, +); + +SecCertificateRef sec_certificate_copy_ref(Dartsec_certificate_t certificate) { + final _$$ref = certificate.ref; + return _sec_certificate_copy_ref(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'sec_certificate_create', +) +external sec_certificate_t _sec_certificate_create( + SecCertificateRef certificate, +); + +Dartsec_certificate_t? sec_certificate_create(SecCertificateRef certificate) { + return _sec_certificate_create(certificate).address == 0 + ? null + : objc.NSObject.fromPointer( + _sec_certificate_create(certificate), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'sec_identity_access_certificates', +) +external bool _sec_identity_access_certificates( + sec_identity_t identity, + ffi.Pointer handler, +); + +bool sec_identity_access_certificates( + Dartsec_identity_t identity, + objc.ObjCBlock handler, +) { + final _$$ref = identity.ref; + final _$$ref$1 = handler.ref; + return _sec_identity_access_certificates(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'sec_identity_copy_certificates_ref', +) +external CFArrayRef _sec_identity_copy_certificates_ref( + sec_identity_t identity, +); + +CFArrayRef sec_identity_copy_certificates_ref(Dartsec_identity_t identity) { + final _$$ref = identity.ref; + return _sec_identity_copy_certificates_ref(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'sec_identity_copy_ref', +) +external SecIdentityRef _sec_identity_copy_ref(sec_identity_t identity); + +SecIdentityRef sec_identity_copy_ref(Dartsec_identity_t identity) { + final _$$ref = identity.ref; + return _sec_identity_copy_ref(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'sec_identity_create', +) +external sec_identity_t _sec_identity_create(SecIdentityRef identity); + +Dartsec_identity_t? sec_identity_create(SecIdentityRef identity) { + return _sec_identity_create(identity).address == 0 + ? null + : objc.NSObject.fromPointer( + _sec_identity_create(identity), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'sec_identity_create_with_certificates', +) +external sec_identity_t _sec_identity_create_with_certificates( + SecIdentityRef identity, + CFArrayRef certificates, +); + +Dartsec_identity_t? sec_identity_create_with_certificates( + SecIdentityRef identity, + CFArrayRef certificates, +) { + return _sec_identity_create_with_certificates( + identity, + certificates, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _sec_identity_create_with_certificates(identity, certificates), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) +>(symbol: 'sec_protocol_metadata_access_distinguished_names') +external bool _sec_protocol_metadata_access_distinguished_names( + sec_protocol_metadata_t metadata, + ffi.Pointer handler, +); + +bool sec_protocol_metadata_access_distinguished_names( + Dartsec_protocol_metadata_t metadata, + objc.ObjCBlock handler, +) { + final _$$ref = metadata.ref; + final _$$ref$1 = handler.ref; + return _sec_protocol_metadata_access_distinguished_names( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) +>(symbol: 'sec_protocol_metadata_access_ocsp_response') +external bool _sec_protocol_metadata_access_ocsp_response( + sec_protocol_metadata_t metadata, + ffi.Pointer handler, +); + +bool sec_protocol_metadata_access_ocsp_response( + Dartsec_protocol_metadata_t metadata, + objc.ObjCBlock handler, +) { + final _$$ref = metadata.ref; + final _$$ref$1 = handler.ref; + return _sec_protocol_metadata_access_ocsp_response( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) +>(symbol: 'sec_protocol_metadata_access_peer_certificate_chain') +external bool _sec_protocol_metadata_access_peer_certificate_chain( + sec_protocol_metadata_t metadata, + ffi.Pointer handler, +); + +bool sec_protocol_metadata_access_peer_certificate_chain( + Dartsec_protocol_metadata_t metadata, + objc.ObjCBlock handler, +) { + final _$$ref = metadata.ref; + final _$$ref$1 = handler.ref; + return _sec_protocol_metadata_access_peer_certificate_chain( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) +>(symbol: 'sec_protocol_metadata_access_pre_shared_keys') +external bool _sec_protocol_metadata_access_pre_shared_keys( + sec_protocol_metadata_t metadata, + ffi.Pointer handler, +); + +bool sec_protocol_metadata_access_pre_shared_keys( + Dartsec_protocol_metadata_t metadata, + objc.ObjCBlock handler, +) { + final _$$ref = metadata.ref; + final _$$ref$1 = handler.ref; + return _sec_protocol_metadata_access_pre_shared_keys( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) +>(symbol: 'sec_protocol_metadata_access_supported_signature_algorithms') +external bool _sec_protocol_metadata_access_supported_signature_algorithms( + sec_protocol_metadata_t metadata, + ffi.Pointer handler, +); + +bool sec_protocol_metadata_access_supported_signature_algorithms( + Dartsec_protocol_metadata_t metadata, + objc.ObjCBlock handler, +) { + final _$$ref = metadata.ref; + final _$$ref$1 = handler.ref; + return _sec_protocol_metadata_access_supported_signature_algorithms( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) +>(symbol: 'sec_protocol_metadata_challenge_parameters_are_equal') +external bool _sec_protocol_metadata_challenge_parameters_are_equal( + sec_protocol_metadata_t metadataA, + sec_protocol_metadata_t metadataB, +); + +bool sec_protocol_metadata_challenge_parameters_are_equal( + Dartsec_protocol_metadata_t metadataA, + Dartsec_protocol_metadata_t metadataB, +) { + final _$$ref = metadataA.ref; + final _$$ref$1 = metadataB.ref; + return _sec_protocol_metadata_challenge_parameters_are_equal( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native Function(sec_protocol_metadata_t)>( + symbol: 'sec_protocol_metadata_copy_negotiated_protocol', +) +external ffi.Pointer _sec_protocol_metadata_copy_negotiated_protocol( + sec_protocol_metadata_t metadata, +); + +ffi.Pointer sec_protocol_metadata_copy_negotiated_protocol( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_copy_negotiated_protocol(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'sec_protocol_metadata_copy_peer_public_key', +) +external dispatch_data_t _sec_protocol_metadata_copy_peer_public_key( + sec_protocol_metadata_t metadata, +); + +Dartdispatch_data_t? sec_protocol_metadata_copy_peer_public_key( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_copy_peer_public_key(_$$ref.pointer).address == + 0 + ? null + : objc.NSObject.fromPointer( + _sec_protocol_metadata_copy_peer_public_key(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native Function(sec_protocol_metadata_t)>( + symbol: 'sec_protocol_metadata_copy_server_name', +) +external ffi.Pointer _sec_protocol_metadata_copy_server_name( + sec_protocol_metadata_t metadata, +); + +ffi.Pointer sec_protocol_metadata_copy_server_name( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_copy_server_name(_$$ref.pointer); +} + +@ffi.Native< + dispatch_data_t Function( + sec_protocol_metadata_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'sec_protocol_metadata_create_secret') +external dispatch_data_t _sec_protocol_metadata_create_secret( + sec_protocol_metadata_t metadata, + int label_len, + ffi.Pointer label, + int exporter_length, +); + +Dartdispatch_data_t? sec_protocol_metadata_create_secret( + Dartsec_protocol_metadata_t metadata, + int label_len, + ffi.Pointer label, + int exporter_length, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_create_secret( + _$$ref.pointer, + label_len, + label, + exporter_length, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _sec_protocol_metadata_create_secret( + _$$ref.pointer, + label_len, + label, + exporter_length, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + dispatch_data_t Function( + sec_protocol_metadata_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'sec_protocol_metadata_create_secret_with_context') +external dispatch_data_t _sec_protocol_metadata_create_secret_with_context( + sec_protocol_metadata_t metadata, + int label_len, + ffi.Pointer label, + int context_len, + ffi.Pointer context, + int exporter_length, +); + +Dartdispatch_data_t? sec_protocol_metadata_create_secret_with_context( + Dartsec_protocol_metadata_t metadata, + int label_len, + ffi.Pointer label, + int context_len, + ffi.Pointer context, + int exporter_length, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_create_secret_with_context( + _$$ref.pointer, + label_len, + label, + context_len, + context, + exporter_length, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _sec_protocol_metadata_create_secret_with_context( + _$$ref.pointer, + label_len, + label, + context_len, + context, + exporter_length, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_metadata_get_early_data_accepted', +) +external bool _sec_protocol_metadata_get_early_data_accepted( + sec_protocol_metadata_t metadata, +); + +bool sec_protocol_metadata_get_early_data_accepted( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_get_early_data_accepted(_$$ref.pointer); +} + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'sec_protocol_metadata_get_negotiated_ciphersuite', +) +external int _sec_protocol_metadata_get_negotiated_ciphersuite( + sec_protocol_metadata_t metadata, +); + +DartSSLCipherSuite sec_protocol_metadata_get_negotiated_ciphersuite( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_get_negotiated_ciphersuite(_$$ref.pointer); +} + +@Deprecated('Deprecated') +@ffi.Native Function(sec_protocol_metadata_t)>( + symbol: 'sec_protocol_metadata_get_negotiated_protocol', +) +external ffi.Pointer _sec_protocol_metadata_get_negotiated_protocol( + sec_protocol_metadata_t metadata, +); + +ffi.Pointer sec_protocol_metadata_get_negotiated_protocol( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_get_negotiated_protocol(_$$ref.pointer); +} + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'sec_protocol_metadata_get_negotiated_protocol_version', +) +external int _sec_protocol_metadata_get_negotiated_protocol_version( + sec_protocol_metadata_t metadata, +); + +SSLProtocol sec_protocol_metadata_get_negotiated_protocol_version( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return SSLProtocol.fromValue( + _sec_protocol_metadata_get_negotiated_protocol_version(_$$ref.pointer), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_metadata_get_negotiated_tls_ciphersuite', +) +external int _sec_protocol_metadata_get_negotiated_tls_ciphersuite( + sec_protocol_metadata_t metadata, +); + +tls_ciphersuite_t sec_protocol_metadata_get_negotiated_tls_ciphersuite( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return tls_ciphersuite_t.fromValue( + _sec_protocol_metadata_get_negotiated_tls_ciphersuite(_$$ref.pointer), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_metadata_get_negotiated_tls_protocol_version', +) +external int _sec_protocol_metadata_get_negotiated_tls_protocol_version( + sec_protocol_metadata_t metadata, +); + +tls_protocol_version_t +sec_protocol_metadata_get_negotiated_tls_protocol_version( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return tls_protocol_version_t.fromValue( + _sec_protocol_metadata_get_negotiated_tls_protocol_version(_$$ref.pointer), + ); +} + +@Deprecated('Deprecated') +@ffi.Native Function(sec_protocol_metadata_t)>( + symbol: 'sec_protocol_metadata_get_server_name', +) +external ffi.Pointer _sec_protocol_metadata_get_server_name( + sec_protocol_metadata_t metadata, +); + +ffi.Pointer sec_protocol_metadata_get_server_name( + Dartsec_protocol_metadata_t metadata, +) { + final _$$ref = metadata.ref; + return _sec_protocol_metadata_get_server_name(_$$ref.pointer); +} + +@ffi.Native< + ffi.Bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) +>(symbol: 'sec_protocol_metadata_peers_are_equal') +external bool _sec_protocol_metadata_peers_are_equal( + sec_protocol_metadata_t metadataA, + sec_protocol_metadata_t metadataB, +); + +bool sec_protocol_metadata_peers_are_equal( + Dartsec_protocol_metadata_t metadataA, + Dartsec_protocol_metadata_t metadataB, +) { + final _$$ref = metadataA.ref; + final _$$ref$1 = metadataB.ref; + return _sec_protocol_metadata_peers_are_equal( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native< + ffi.Void Function(sec_protocol_options_t, dispatch_data_t, dispatch_data_t) +>(symbol: 'sec_protocol_options_add_pre_shared_key') +external void _sec_protocol_options_add_pre_shared_key( + sec_protocol_options_t options, + dispatch_data_t psk, + dispatch_data_t psk_identity, +); + +void sec_protocol_options_add_pre_shared_key( + Dartsec_protocol_options_t options, + Dartdispatch_data_t psk, + Dartdispatch_data_t psk_identity, +) { + final _$$ref = options.ref; + final _$$ref$1 = psk.ref; + final _$$ref$2 = psk_identity.ref; + return _sec_protocol_options_add_pre_shared_key( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native)>( + symbol: 'sec_protocol_options_add_tls_application_protocol', +) +external void _sec_protocol_options_add_tls_application_protocol( + sec_protocol_options_t options, + ffi.Pointer application_protocol, +); + +void sec_protocol_options_add_tls_application_protocol( + Dartsec_protocol_options_t options, + ffi.Pointer application_protocol, +) { + final _$$ref = options.ref; + return _sec_protocol_options_add_tls_application_protocol( + _$$ref.pointer, + application_protocol, + ); +} + +@Deprecated('Use sec_protocol_options_append_tls_ciphersuite') +@ffi.Native( + symbol: 'sec_protocol_options_add_tls_ciphersuite', +) +external void _sec_protocol_options_add_tls_ciphersuite( + sec_protocol_options_t options, + int ciphersuite, +); + +void sec_protocol_options_add_tls_ciphersuite( + Dartsec_protocol_options_t options, + DartSSLCipherSuite ciphersuite, +) { + final _$$ref = options.ref; + return _sec_protocol_options_add_tls_ciphersuite(_$$ref.pointer, ciphersuite); +} + +@Deprecated('Use sec_protocol_options_append_tls_ciphersuite_group') +@ffi.Native( + symbol: 'sec_protocol_options_add_tls_ciphersuite_group', +) +external void _sec_protocol_options_add_tls_ciphersuite_group( + sec_protocol_options_t options, + int group, +); + +void sec_protocol_options_add_tls_ciphersuite_group( + Dartsec_protocol_options_t options, + SSLCiphersuiteGroup group, +) { + final _$$ref = options.ref; + return _sec_protocol_options_add_tls_ciphersuite_group( + _$$ref.pointer, + group.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_append_tls_ciphersuite', +) +external void _sec_protocol_options_append_tls_ciphersuite( + sec_protocol_options_t options, + int ciphersuite, +); + +void sec_protocol_options_append_tls_ciphersuite( + Dartsec_protocol_options_t options, + tls_ciphersuite_t ciphersuite, +) { + final _$$ref = options.ref; + return _sec_protocol_options_append_tls_ciphersuite( + _$$ref.pointer, + ciphersuite.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_append_tls_ciphersuite_group', +) +external void _sec_protocol_options_append_tls_ciphersuite_group( + sec_protocol_options_t options, + int group, +); + +void sec_protocol_options_append_tls_ciphersuite_group( + Dartsec_protocol_options_t options, + tls_ciphersuite_group_t group, +) { + final _$$ref = options.ref; + return _sec_protocol_options_append_tls_ciphersuite_group( + _$$ref.pointer, + group.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_are_equal', +) +external bool _sec_protocol_options_are_equal( + sec_protocol_options_t optionsA, + sec_protocol_options_t optionsB, +); + +bool sec_protocol_options_are_equal( + Dartsec_protocol_options_t optionsA, + Dartsec_protocol_options_t optionsB, +) { + final _$$ref = optionsA.ref; + final _$$ref$1 = optionsB.ref; + return _sec_protocol_options_are_equal(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_default_max_dtls_protocol_version', +) +external int _sec_protocol_options_get_default_max_dtls_protocol_version(); + +tls_protocol_version_t +sec_protocol_options_get_default_max_dtls_protocol_version() { + return tls_protocol_version_t.fromValue( + _sec_protocol_options_get_default_max_dtls_protocol_version(), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_default_max_tls_protocol_version', +) +external int _sec_protocol_options_get_default_max_tls_protocol_version(); + +tls_protocol_version_t +sec_protocol_options_get_default_max_tls_protocol_version() { + return tls_protocol_version_t.fromValue( + _sec_protocol_options_get_default_max_tls_protocol_version(), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_default_min_dtls_protocol_version', +) +external int _sec_protocol_options_get_default_min_dtls_protocol_version(); + +tls_protocol_version_t +sec_protocol_options_get_default_min_dtls_protocol_version() { + return tls_protocol_version_t.fromValue( + _sec_protocol_options_get_default_min_dtls_protocol_version(), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_default_min_tls_protocol_version', +) +external int _sec_protocol_options_get_default_min_tls_protocol_version(); + +tls_protocol_version_t +sec_protocol_options_get_default_min_tls_protocol_version() { + return tls_protocol_version_t.fromValue( + _sec_protocol_options_get_default_min_tls_protocol_version(), + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_enable_encrypted_client_hello', +) +external bool _sec_protocol_options_get_enable_encrypted_client_hello( + sec_protocol_options_t options, +); + +bool sec_protocol_options_get_enable_encrypted_client_hello( + Dartsec_protocol_options_t options, +) { + final _$$ref = options.ref; + return _sec_protocol_options_get_enable_encrypted_client_hello( + _$$ref.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_get_quic_use_legacy_codepoint', +) +external bool _sec_protocol_options_get_quic_use_legacy_codepoint( + sec_protocol_options_t options, +); + +bool sec_protocol_options_get_quic_use_legacy_codepoint( + Dartsec_protocol_options_t options, +) { + final _$$ref = options.ref; + return _sec_protocol_options_get_quic_use_legacy_codepoint(_$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_challenge_t, + dispatch_queue_t, + ) +>(symbol: 'sec_protocol_options_set_challenge_block') +external void _sec_protocol_options_set_challenge_block( + sec_protocol_options_t options, + sec_protocol_challenge_t challenge_block, + dispatch_queue_t challenge_queue, +); + +void sec_protocol_options_set_challenge_block( + Dartsec_protocol_options_t options, + Dartsec_protocol_challenge_t challenge_block, + Dartdispatch_queue_t challenge_queue, +) { + final _$$ref = options.ref; + final _$$ref$1 = challenge_block.ref; + final _$$ref$2 = challenge_queue.ref; + return _sec_protocol_options_set_challenge_block( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_enable_encrypted_client_hello', +) +external void _sec_protocol_options_set_enable_encrypted_client_hello( + sec_protocol_options_t options, + bool enable_encrypted_client_hello, +); + +void sec_protocol_options_set_enable_encrypted_client_hello( + Dartsec_protocol_options_t options, + bool enable_encrypted_client_hello, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_enable_encrypted_client_hello( + _$$ref.pointer, + enable_encrypted_client_hello, + ); +} + +@ffi.Native< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_key_update_t, + dispatch_queue_t, + ) +>(symbol: 'sec_protocol_options_set_key_update_block') +external void _sec_protocol_options_set_key_update_block( + sec_protocol_options_t options, + sec_protocol_key_update_t key_update_block, + dispatch_queue_t key_update_queue, +); + +void sec_protocol_options_set_key_update_block( + Dartsec_protocol_options_t options, + Dartsec_protocol_key_update_t key_update_block, + Dartdispatch_queue_t key_update_queue, +) { + final _$$ref = options.ref; + final _$$ref$1 = key_update_block.ref; + final _$$ref$2 = key_update_queue.ref; + return _sec_protocol_options_set_key_update_block( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_local_identity', +) +external void _sec_protocol_options_set_local_identity( + sec_protocol_options_t options, + sec_identity_t identity, +); + +void sec_protocol_options_set_local_identity( + Dartsec_protocol_options_t options, + Dartsec_identity_t identity, +) { + final _$$ref = options.ref; + final _$$ref$1 = identity.ref; + return _sec_protocol_options_set_local_identity( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_max_tls_protocol_version', +) +external void _sec_protocol_options_set_max_tls_protocol_version( + sec_protocol_options_t options, + int version, +); + +void sec_protocol_options_set_max_tls_protocol_version( + Dartsec_protocol_options_t options, + tls_protocol_version_t version, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_max_tls_protocol_version( + _$$ref.pointer, + version.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_min_tls_protocol_version', +) +external void _sec_protocol_options_set_min_tls_protocol_version( + sec_protocol_options_t options, + int version, +); + +void sec_protocol_options_set_min_tls_protocol_version( + Dartsec_protocol_options_t options, + tls_protocol_version_t version, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_min_tls_protocol_version( + _$$ref.pointer, + version.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_peer_authentication_optional', +) +external void _sec_protocol_options_set_peer_authentication_optional( + sec_protocol_options_t options, + bool peer_authentication_optional, +); + +void sec_protocol_options_set_peer_authentication_optional( + Dartsec_protocol_options_t options, + bool peer_authentication_optional, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_peer_authentication_optional( + _$$ref.pointer, + peer_authentication_optional, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_peer_authentication_required', +) +external void _sec_protocol_options_set_peer_authentication_required( + sec_protocol_options_t options, + bool peer_authentication_required, +); + +void sec_protocol_options_set_peer_authentication_required( + Dartsec_protocol_options_t options, + bool peer_authentication_required, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_peer_authentication_required( + _$$ref.pointer, + peer_authentication_required, + ); +} + +@ffi.Native< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_pre_shared_key_selection_t, + dispatch_queue_t, + ) +>(symbol: 'sec_protocol_options_set_pre_shared_key_selection_block') +external void _sec_protocol_options_set_pre_shared_key_selection_block( + sec_protocol_options_t options, + sec_protocol_pre_shared_key_selection_t psk_selection_block, + dispatch_queue_t psk_selection_queue, +); + +void sec_protocol_options_set_pre_shared_key_selection_block( + Dartsec_protocol_options_t options, + Dartsec_protocol_pre_shared_key_selection_t psk_selection_block, + Dartdispatch_queue_t psk_selection_queue, +) { + final _$$ref = options.ref; + final _$$ref$1 = psk_selection_block.ref; + final _$$ref$2 = psk_selection_queue.ref; + return _sec_protocol_options_set_pre_shared_key_selection_block( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_quic_use_legacy_codepoint', +) +external void _sec_protocol_options_set_quic_use_legacy_codepoint( + sec_protocol_options_t options, + bool quic_use_legacy_codepoint, +); + +void sec_protocol_options_set_quic_use_legacy_codepoint( + Dartsec_protocol_options_t options, + bool quic_use_legacy_codepoint, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_quic_use_legacy_codepoint( + _$$ref.pointer, + quic_use_legacy_codepoint, + ); +} + +@Deprecated('DHE ciphersuites are no longer supported') +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_diffie_hellman_parameters', +) +external void _sec_protocol_options_set_tls_diffie_hellman_parameters( + sec_protocol_options_t options, + dispatch_data_t params, +); + +void sec_protocol_options_set_tls_diffie_hellman_parameters( + Dartsec_protocol_options_t options, + Dartdispatch_data_t params, +) { + final _$$ref = options.ref; + final _$$ref$1 = params.ref; + return _sec_protocol_options_set_tls_diffie_hellman_parameters( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_false_start_enabled', +) +external void _sec_protocol_options_set_tls_false_start_enabled( + sec_protocol_options_t options, + bool false_start_enabled, +); + +void sec_protocol_options_set_tls_false_start_enabled( + Dartsec_protocol_options_t options, + bool false_start_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_false_start_enabled( + _$$ref.pointer, + false_start_enabled, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_is_fallback_attempt', +) +external void _sec_protocol_options_set_tls_is_fallback_attempt( + sec_protocol_options_t options, + bool is_fallback_attempt, +); + +void sec_protocol_options_set_tls_is_fallback_attempt( + Dartsec_protocol_options_t options, + bool is_fallback_attempt, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_is_fallback_attempt( + _$$ref.pointer, + is_fallback_attempt, + ); +} + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_max_version', +) +external void _sec_protocol_options_set_tls_max_version( + sec_protocol_options_t options, + int version, +); + +void sec_protocol_options_set_tls_max_version( + Dartsec_protocol_options_t options, + SSLProtocol version, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_max_version( + _$$ref.pointer, + version.value, + ); +} + +@Deprecated('Deprecated') +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_min_version', +) +external void _sec_protocol_options_set_tls_min_version( + sec_protocol_options_t options, + int version, +); + +void sec_protocol_options_set_tls_min_version( + Dartsec_protocol_options_t options, + SSLProtocol version, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_min_version( + _$$ref.pointer, + version.value, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_ocsp_enabled', +) +external void _sec_protocol_options_set_tls_ocsp_enabled( + sec_protocol_options_t options, + bool ocsp_enabled, +); + +void sec_protocol_options_set_tls_ocsp_enabled( + Dartsec_protocol_options_t options, + bool ocsp_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_ocsp_enabled( + _$$ref.pointer, + ocsp_enabled, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_pre_shared_key_identity_hint', +) +external void _sec_protocol_options_set_tls_pre_shared_key_identity_hint( + sec_protocol_options_t options, + dispatch_data_t psk_identity_hint, +); + +void sec_protocol_options_set_tls_pre_shared_key_identity_hint( + Dartsec_protocol_options_t options, + Dartdispatch_data_t psk_identity_hint, +) { + final _$$ref = options.ref; + final _$$ref$1 = psk_identity_hint.ref; + return _sec_protocol_options_set_tls_pre_shared_key_identity_hint( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_renegotiation_enabled', +) +external void _sec_protocol_options_set_tls_renegotiation_enabled( + sec_protocol_options_t options, + bool renegotiation_enabled, +); + +void sec_protocol_options_set_tls_renegotiation_enabled( + Dartsec_protocol_options_t options, + bool renegotiation_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_renegotiation_enabled( + _$$ref.pointer, + renegotiation_enabled, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_resumption_enabled', +) +external void _sec_protocol_options_set_tls_resumption_enabled( + sec_protocol_options_t options, + bool resumption_enabled, +); + +void sec_protocol_options_set_tls_resumption_enabled( + Dartsec_protocol_options_t options, + bool resumption_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_resumption_enabled( + _$$ref.pointer, + resumption_enabled, + ); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_sct_enabled', +) +external void _sec_protocol_options_set_tls_sct_enabled( + sec_protocol_options_t options, + bool sct_enabled, +); + +void sec_protocol_options_set_tls_sct_enabled( + Dartsec_protocol_options_t options, + bool sct_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_sct_enabled(_$$ref.pointer, sct_enabled); +} + +@ffi.Native)>( + symbol: 'sec_protocol_options_set_tls_server_name', +) +external void _sec_protocol_options_set_tls_server_name( + sec_protocol_options_t options, + ffi.Pointer server_name, +); + +void sec_protocol_options_set_tls_server_name( + Dartsec_protocol_options_t options, + ffi.Pointer server_name, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_server_name(_$$ref.pointer, server_name); +} + +@ffi.Native( + symbol: 'sec_protocol_options_set_tls_tickets_enabled', +) +external void _sec_protocol_options_set_tls_tickets_enabled( + sec_protocol_options_t options, + bool tickets_enabled, +); + +void sec_protocol_options_set_tls_tickets_enabled( + Dartsec_protocol_options_t options, + bool tickets_enabled, +) { + final _$$ref = options.ref; + return _sec_protocol_options_set_tls_tickets_enabled( + _$$ref.pointer, + tickets_enabled, + ); +} + +@ffi.Native< + ffi.Void Function( + sec_protocol_options_t, + sec_protocol_verify_t, + dispatch_queue_t, + ) +>(symbol: 'sec_protocol_options_set_verify_block') +external void _sec_protocol_options_set_verify_block( + sec_protocol_options_t options, + sec_protocol_verify_t verify_block, + dispatch_queue_t verify_block_queue, +); + +void sec_protocol_options_set_verify_block( + Dartsec_protocol_options_t options, + Dartsec_protocol_verify_t verify_block, + Dartdispatch_queue_t verify_block_queue, +) { + final _$$ref = options.ref; + final _$$ref$1 = verify_block.ref; + final _$$ref$2 = verify_block_queue.ref; + return _sec_protocol_options_set_verify_block( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native)>() +external void sec_release(ffi.Pointer obj); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer sec_retain(ffi.Pointer obj); + +@ffi.Native(symbol: 'sec_trust_copy_ref') +external SecTrustRef _sec_trust_copy_ref(sec_trust_t trust); + +SecTrustRef sec_trust_copy_ref(Dartsec_trust_t trust) { + final _$$ref = trust.ref; + return _sec_trust_copy_ref(_$$ref.pointer); +} + +@ffi.Native(symbol: 'sec_trust_create') +external sec_trust_t _sec_trust_create(SecTrustRef trust); + +Dartsec_trust_t? sec_trust_create(SecTrustRef trust) { + return _sec_trust_create(trust).address == 0 + ? null + : objc.NSObject.fromPointer( + _sec_trust_create(trust), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>() +external ffi.Pointer seed48( + ffi.Pointer arg0, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer sel_getName(ffi.Pointer sel); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer sel_getUid(ffi.Pointer str); + +@ffi.Native)>() +external bool sel_isMapped(ffi.Pointer sel); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer sel_registerName( + ffi.Pointer str, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int select( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +); + +@ffi.Native< + kern_return_t Function(task_t, ffi.Pointer, ffi.Int, ffi.Int) +>() +external int semaphore_create( + int task, + ffi.Pointer semaphore, + int policy, + int value, +); + +@ffi.Native() +external int semaphore_destroy(int task, int semaphore); + +@ffi.Native() +external int semaphore_signal(int semaphore); + +@ffi.Native() +external int semaphore_signal_all(int semaphore); + +@ffi.Native() +external int semaphore_signal_thread(int semaphore, int thread); + +@ffi.Native() +external int semaphore_timedwait(int semaphore, mach_timespec_t wait_time); + +@ffi.Native() +external int semaphore_timedwait_signal( + int wait_semaphore, + int signal_semaphore, + mach_timespec_t wait_time, +); + +@ffi.Native() +external int semaphore_wait(int semaphore); + +@ffi.Native() +external int semaphore_wait_signal(int wait_semaphore, int signal_semaphore); + +@ffi.Native< + ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size, ffi.Int) +>() +external int send(int arg0, ffi.Pointer arg1, int arg2, int arg3); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Int, + off_t, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) +>() +external int sendfile( + int arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + int arg5, +); + +@ffi.Native, ffi.Int)>() +external int sendmsg(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native< + ssize_t Function( + ffi.Int, + ffi.Pointer, + ffi.Size, + ffi.Int, + ffi.Pointer, + socklen_t, + ) +>() +external int sendto( + int arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ffi.Pointer arg4, + int arg5, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.UnsignedInt, + ) +>() +external int setattrlist( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int __attrBufSize, + int arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ffi.Uint32, + ) +>() +external int setattrlistat( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + int arg4, + int arg5, +); + +@Deprecated('Deprecated') +@ffi.Native)>() +external int setaudit(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int setaudit_addr(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int setauid(ffi.Pointer arg0); + +@ffi.Native, ffi.Pointer)>() +external void setbuf(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external void setbuffer( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __size, +); + +@ffi.Native, ffi.Int)>() +external int setdomainname(ffi.Pointer arg0, int __namelen); + +@ffi.Native() +external int setegid(int arg0); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) +>() +external int setenv( + ffi.Pointer __name, + ffi.Pointer __value, + int __overwrite, +); + +@ffi.Native() +external int seteuid(int arg0); + +@ffi.Native() +external int setgid(int arg0); + +@ffi.Native)>() +external int setgroups(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external void sethostent(int arg0); + +@ffi.Native() +external void sethostid(int arg0); + +@ffi.Native, ffi.Int)>() +external int sethostname(ffi.Pointer arg0, int __namelen); + +@ffi.Native() +external int setiopolicy_np(int arg0, int arg1, int arg2); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + in_addr, + in_addr, + ffi.Uint32, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int setipv4sourcefilter( + int arg0, + in_addr arg1, + in_addr arg2, + int arg3, + int arg4, + ffi.Pointer arg5, +); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int setitimer( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native)>() +external int setjmp(ffi.Pointer arg0); + +@ffi.Native)>() +external void setkey(ffi.Pointer arg0); + +@ffi.Native)>() +external int setlinebuf(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Int, ffi.Pointer)>() +external ffi.Pointer setlocale(int arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external int setlogin(ffi.Pointer arg0); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer setmode(ffi.Pointer arg0); + +@ffi.Native() +external void setnetent(int arg0); + +@ffi.Native)>() +external void setnetgrent(ffi.Pointer arg0); + +@ffi.Native() +external int setpgid(int arg0, int arg1); + +@ffi.Native() +external int setpgrp(); + +@ffi.Native() +external int setpriority(int arg0, int arg1, int arg2); + +@ffi.Native)>() +external void setprogname(ffi.Pointer arg0); + +@ffi.Native() +external void setprotoent(int arg0); + +@ffi.Native() +external int setregid(int arg0, int arg1); + +@ffi.Native() +external int setreuid(int arg0, int arg1); + +@ffi.Native() +external int setrgid(int arg0); + +@ffi.Native)>() +external int setrlimit(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external void setrpcent(int stayopen); + +@ffi.Native() +external int setruid(int arg0); + +@ffi.Native() +external void setservent(int arg0); + +@ffi.Native)>() +external int setsgroups_np(int arg0, ffi.Pointer arg1); + +@ffi.Native() +external int setsid(); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer, socklen_t) +>() +external int setsockopt( + int arg0, + int arg1, + int arg2, + ffi.Pointer arg3, + int arg4, +); + +@ffi.Native< + ffi.Int Function( + ffi.Int, + ffi.Uint32, + ffi.Pointer, + socklen_t, + ffi.Uint32, + ffi.Uint32, + ffi.Pointer, + ) +>() +external int setsourcefilter( + int arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ffi.Pointer arg6, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer setstate(ffi.Pointer arg0); + +@ffi.Native, ffi.Pointer)>() +external int settimeofday( + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native() +external int setuid(int arg0); + +@ffi.Native() +external void setusershell(); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Size) +>() +external int setvbuf( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int __size, +); + +@ffi.Native)>() +external int setwgroups_np(int arg0, ffi.Pointer arg1); + +@ffi.Native, ffi.Int)>() +external int shm_open(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int shm_unlink(ffi.Pointer arg0); + +@ffi.Native() +external int shutdown(int arg0, int arg1); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int sigaction( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native, ffi.Int)>() +external int sigaddset(ffi.Pointer arg0, int arg1); + +@ffi.Native, ffi.Pointer)>() +external int sigaltstack(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external int sigblock(int arg0); + +@ffi.Native, ffi.Int)>() +external int sigdelset(ffi.Pointer arg0, int arg1); + +@ffi.Native)>() +external int sigemptyset(ffi.Pointer arg0); + +@ffi.Native)>() +external int sigfillset(ffi.Pointer arg0); + +@ffi.Native() +external int sighold(int arg0); + +@ffi.Native() +external int sigignore(int arg0); + +@ffi.Native() +external int siginterrupt(int arg0, int arg1); + +@ffi.Native, ffi.Int)>() +external int sigismember(ffi.Pointer arg0, int arg1); + +@ffi.Native, ffi.Int)>() +external void siglongjmp(ffi.Pointer arg0, int arg1); + +@ffi.Native< + ffi.Pointer> Function( + ffi.Int, + ffi.Pointer>, + ) +>() +external ffi.Pointer> signal( + int arg0, + ffi.Pointer> arg1, +); + +@ffi.Native() +external int signgam; + +@ffi.Native() +external int sigpause(int arg0); + +@ffi.Native)>() +external int sigpending(ffi.Pointer arg0); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int sigprocmask( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native() +external int sigrelse(int arg0); + +@ffi.Native< + ffi.Pointer> Function( + ffi.Int, + ffi.Pointer>, + ) +>() +external ffi.Pointer> sigset( + int arg0, + ffi.Pointer> arg1, +); + +@ffi.Native, ffi.Int)>() +external int sigsetjmp(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external int sigsetmask(int arg0); + +@ffi.Native)>() +external int sigsuspend(ffi.Pointer arg0); + +@ffi.Native< + ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) +>() +external int sigvec( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native, ffi.Pointer)>() +external int sigwait(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external double sin(double arg0); + +@ffi.Native() +external double sinf(double arg0); + +@ffi.Native() +external double sinh(double arg0); + +@ffi.Native() +external double sinhf(double arg0); + +@ffi.Native() +external int sleep(int arg0); + +@ffi.Native< + ffi.Void Function( + cpu_type_t, + cpu_subtype_t, + ffi.Pointer>, + ffi.Pointer>, + ) +>() +external void slot_name( + int arg0, + int arg1, + ffi.Pointer> arg2, + ffi.Pointer> arg3, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Pointer) +>() +external int snprintf( + ffi.Pointer __str, + int __size, + ffi.Pointer __format, +); + +@ffi.Native() +external int sockatmark(int arg0); + +@ffi.Native() +external int socket(int arg0, int arg1, int arg2); + +@ffi.Native)>() +external int socketpair( + int arg0, + int arg1, + int arg2, + ffi.Pointer arg3, +); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.', +) +@ffi.Native, ffi.Pointer)>() +external int sprintf(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native() +external double sqrt(double arg0); + +@ffi.Native() +external double sqrtf(double arg0); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ) +>() +external int sradixsort( + ffi.Pointer> __base, + int __nel, + ffi.Pointer __table, + int __endbyte, +); + +@ffi.Native() +external void srand(int arg0); + +@ffi.Native() +external void srand48(int arg0); + +@ffi.Native() +external void sranddev(); + +@ffi.Native() +external void srandom(int arg0); + +@ffi.Native() +external void srandomdev(); + +@ffi.Native, ffi.Pointer)>() +external int sscanf(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer stpcpy( + ffi.Pointer __dst, + ffi.Pointer __src, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer stpncpy( + ffi.Pointer __dst, + ffi.Pointer __src, + int __n, +); + +@Deprecated('Deprecated') +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void str2dec( + ffi.Pointer s, + ffi.Pointer ix, + ffi.Pointer d, + ffi.Pointer vp, +); + +@ffi.Native, ffi.Pointer)>() +external int strcasecmp(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strcasestr( + ffi.Pointer __big, + ffi.Pointer __little, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strcat( + ffi.Pointer __s1, + ffi.Pointer __s2, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer strchr(ffi.Pointer __s, int __c); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer strchrnul(ffi.Pointer __s, int __c); + +@ffi.Native, ffi.Pointer)>() +external int strcmp(ffi.Pointer __s1, ffi.Pointer __s2); + +@ffi.Native, ffi.Pointer)>() +external int strcoll(ffi.Pointer __s1, ffi.Pointer __s2); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strcpy( + ffi.Pointer __dst, + ffi.Pointer __src, +); + +@ffi.Native< + ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) +>() +external int strcspn( + ffi.Pointer __s, + ffi.Pointer __charset, +); + +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer strdup(ffi.Pointer __s1); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer strerror(int __errnum); + +@ffi.Native, ffi.Size)>() +external int strerror_r( + int __errnum, + ffi.Pointer __strerrbuf, + int __buflen, +); + +@ffi.Native< + ffi.Size Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int strftime( + ffi.Pointer arg0, + int __maxsize, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external int strlcat( + ffi.Pointer __dst, + ffi.Pointer __source, + int __size, +); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external int strlcpy( + ffi.Pointer __dst, + ffi.Pointer __source, + int __size, +); + +@ffi.Native)>() +external int strlen(ffi.Pointer __s); + +@ffi.Native)>() +external void strmode(int __mode, ffi.Pointer __bp); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int strncasecmp( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer strncat( + ffi.Pointer __s1, + ffi.Pointer __s2, + int __n, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int strncmp( + ffi.Pointer __s1, + ffi.Pointer __s2, + int __n, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer strncpy( + ffi.Pointer __dst, + ffi.Pointer __src, + int __n, +); + +@ffi.Native Function(ffi.Pointer, ffi.Size)>() +external ffi.Pointer strndup(ffi.Pointer __s1, int __n); + +@ffi.Native, ffi.Size)>() +external int strnlen(ffi.Pointer __s1, int __n); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external ffi.Pointer strnstr( + ffi.Pointer __big, + ffi.Pointer __little, + int __len, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strpbrk( + ffi.Pointer __s, + ffi.Pointer __charset, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer strptime( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native Function(ffi.Pointer, ffi.Int)>() +external ffi.Pointer strrchr(ffi.Pointer __s, int __c); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer>, + ffi.Pointer, + ) +>() +external ffi.Pointer strsep( + ffi.Pointer> __stringp, + ffi.Pointer __delim, +); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer strsignal(int __sig); + +@ffi.Native, ffi.Size)>() +external int strsignal_r( + int __sig, + ffi.Pointer __strsignalbuf, + int __buflen, +); + +@ffi.Native< + ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) +>() +external int strspn(ffi.Pointer __s, ffi.Pointer __charset); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strstr( + ffi.Pointer __big, + ffi.Pointer __little, +); + +@ffi.Native< + ffi.Double Function(ffi.Pointer, ffi.Pointer>) +>() +external double strtod( + ffi.Pointer arg0, + ffi.Pointer> arg1, +); + +@ffi.Native< + ffi.Float Function(ffi.Pointer, ffi.Pointer>) +>() +external double strtof( + ffi.Pointer arg0, + ffi.Pointer> arg1, +); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int strtofflags( + ffi.Pointer> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + intmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoimax( + ffi.Pointer __nptr, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer strtok( + ffi.Pointer __str, + ffi.Pointer __sep, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external ffi.Pointer strtok_r( + ffi.Pointer __str, + ffi.Pointer __sep, + ffi.Pointer> __lasts, +); + +@ffi.Native< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtol( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoll( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.LongLong Function( + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.Pointer>, + ) +>() +external int strtonum( + ffi.Pointer __numstr, + int __minval, + int __maxval, + ffi.Pointer> __errstrp, +); + +@ffi.Native< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoq( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoul( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoull( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + uintmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtoumax( + ffi.Pointer __nptr, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int strtouq( + ffi.Pointer __str, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>() +external int strxfrm( + ffi.Pointer __s1, + ffi.Pointer __s2, + int __n, +); + +@ffi.Native>() +external ffi.Pointer suboptarg; + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ssize_t) +>() +external void swab( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __len, +); + +@ffi.Native)>() +external int swapon(ffi.Pointer arg0); + +@ffi.Native() +external int swtch(); + +@ffi.Native() +external int swtch_pri(int pri); + +@ffi.Native, ffi.Pointer)>() +external int symlink(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int symlinkat( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +); + +@ffi.Native() +external void sync(); + +@ffi.Native, ffi.Int)>() +external int sync_volume_np(ffi.Pointer arg0, int arg1); + +@ffi.Native>>() +external ffi.Pointer> sys_errlist; + +@ffi.Native() +external final int sys_nerr; + +@ffi.Array.multi([32]) +@ffi.Native>>() +external ffi.Array> sys_siglist; + +@ffi.Array.multi([32]) +@ffi.Native>>() +external ffi.Array> sys_signame; + +@Deprecated( + 'syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost().', +) +@ffi.Native() +external int syscall(int arg0); + +@ffi.Native() +external int sysconf(int arg0); + +@ffi.Native)>() +external int system(ffi.Pointer arg0); + +@ffi.Native() +external double tan(double arg0); + +@ffi.Native() +external double tanf(double arg0); + +@ffi.Native() +external double tanh(double arg0); + +@ffi.Native() +external double tanhf(double arg0); + +@ffi.Native() +external int task_assign(int task, int new_set, int assign_threads); + +@ffi.Native() +external int task_assign_default(int task, int assign_threads); + +@ffi.Native< + kern_return_t Function( + task_t, + ledger_array_t, + mach_msg_type_number_t, + boolean_t, + ffi.Pointer, + ) +>() +external int task_create( + int target_task, + ledger_array_t ledgers, + int ledgersCnt, + int inherit_memory, + ffi.Pointer child_task, +); + +@ffi.Native)>() +external int task_create_identity_token( + int task, + ffi.Pointer token, +); + +@ffi.Native() +external int task_dyld_process_info_notify_deregister( + int target_task, + int notify, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_array_t, ffi.Pointer) +>() +external int task_dyld_process_info_notify_get( + mach_port_name_array_t names_addr, + ffi.Pointer names_count_addr, +); + +@ffi.Native() +external int task_dyld_process_info_notify_register( + int target_task, + int notify, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Int, + ffi.Pointer, + ) +>() +external int task_for_pid( + int target_tport, + int pid, + ffi.Pointer t, +); + +@ffi.Native)>() +external int task_generate_corpse( + int task, + ffi.Pointer corpse_task_port, +); + +@ffi.Native< + kern_return_t Function(task_inspect_t, ffi.Pointer) +>() +external int task_get_assignment( + int task, + ffi.Pointer assigned_set, +); + +@ffi.Native< + kern_return_t Function( + task_read_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_get_dyld_image_infos( + int task, + ffi.Pointer dyld_images, + ffi.Pointer dyld_imagesCnt, +); + +@ffi.Native< + kern_return_t Function( + task_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_get_emulation_vector( + int task, + ffi.Pointer vector_start, + ffi.Pointer emulation_vector, + ffi.Pointer emulation_vectorCnt, +); + +@ffi.Native< + kern_return_t Function(task_inspect_t, ffi.Pointer) +>() +external int task_get_exc_guard_behavior( + int task, + ffi.Pointer behavior, +); + +@ffi.Native< + kern_return_t Function( + task_t, + exception_mask_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int task_get_exception_ports( + int task, + int exception_mask, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlers, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + exception_mask_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_info_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int task_get_exception_ports_info( + int port, + int exception_mask, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_info_array_t old_handlers_info, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + task_read_t, + mach_voucher_selector_t, + ffi.Pointer, + ) +>() +external int task_get_mach_voucher( + int task, + int which, + ffi.Pointer voucher, +); + +@ffi.Native< + kern_return_t Function(task_inspect_t, ffi.Int, ffi.Pointer) +>() +external int task_get_special_port( + int task, + int which_port, + ffi.Pointer special_port, +); + +@ffi.Native< + kern_return_t Function( + task_read_t, + thread_state_flavor_t, + thread_state_t, + ffi.Pointer, + ) +>() +external int task_get_state( + int task, + int flavor, + thread_state_t old_state, + ffi.Pointer old_stateCnt, +); + +@ffi.Native< + kern_return_t Function( + task_id_token_t, + task_flavor_t, + ffi.Pointer, + ) +>() +external int task_identity_token_get_task_port( + int token, + int flavor, + ffi.Pointer task_port, +); + +@ffi.Native< + kern_return_t Function( + task_name_t, + task_flavor_t, + task_info_t, + ffi.Pointer, + ) +>() +external int task_info( + int target_task, + int flavor, + task_info_t task_info_out, + ffi.Pointer task_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + task_inspect_t, + task_inspect_flavor_t, + task_inspect_info_t, + ffi.Pointer, + ) +>() +external int task_inspect( + int task, + int flavor, + task_inspect_info_t info_out, + ffi.Pointer info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + task_t, + task_read_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_map_corpse_info( + int task, + int corspe_task, + ffi.Pointer kcd_addr_begin, + ffi.Pointer kcd_size, +); + +@ffi.Native< + kern_return_t Function( + task_t, + task_read_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_map_corpse_info_64( + int task, + int corspe_task, + ffi.Pointer kcd_addr_begin, + ffi.Pointer kcd_size, +); + +@ffi.Native< + kern_return_t Function( + task_t, + kcdata_object_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_map_kcdata_object_64( + int task, + int kcdata_object, + ffi.Pointer kcd_addr_begin, + ffi.Pointer kcd_size, +); + +@ffi.Native< + kern_return_t Function( + mach_port_name_t, + ffi.Int, + ffi.Pointer, + ) +>() +external int task_name_for_pid( + int target_tport, + int pid, + ffi.Pointer tn, +); + +@ffi.Native< + kern_return_t Function( + task_t, + policy_t, + policy_base_t, + mach_msg_type_number_t, + boolean_t, + boolean_t, + ) +>() +external int task_policy( + int task, + int policy, + policy_base_t base, + int baseCnt, + int set_limit, + int change, +); + +@ffi.Native< + kern_return_t Function( + task_policy_get_t, + task_policy_flavor_t, + task_policy_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_policy_get( + int task, + int flavor, + task_policy_t policy_info, + ffi.Pointer policy_infoCnt, + ffi.Pointer get_default, +); + +@ffi.Native< + kern_return_t Function( + task_policy_set_t, + task_policy_flavor_t, + task_policy_t, + mach_msg_type_number_t, + ) +>() +external int task_policy_set( + int task, + int flavor, + task_policy_t policy_info, + int policy_infoCnt, +); + +@ffi.Native< + kern_return_t Function(task_inspect_t, ffi.Pointer) +>() +external int task_purgable_info( + int task, + ffi.Pointer stats, +); + +@ffi.Native< + kern_return_t Function(task_t, ffi.Pointer) +>() +external int task_register_dyld_get_process_state( + int task, + ffi.Pointer dyld_process_state, +); + +@ffi.Native< + kern_return_t Function( + task_t, + dyld_kernel_image_info_array_t, + mach_msg_type_number_t, + ) +>() +external int task_register_dyld_image_infos( + int task, + dyld_kernel_image_info_array_t dyld_images, + int dyld_imagesCnt, +); + +@ffi.Native() +external int task_register_dyld_set_dyld_state(int task, int dyld_state); + +@ffi.Native< + kern_return_t Function(task_t, dyld_kernel_image_info_t, boolean_t, boolean_t) +>() +external int task_register_dyld_shared_cache_image_info( + int task, + dyld_kernel_image_info_t dyld_cache_image, + int no_cache, + int private_cache, +); + +@ffi.Native< + kern_return_t Function( + task_t, + ffi.Uint32, + exception_mask_t, + exception_behavior_t, + thread_state_flavor_t, + mach_port_t, + ) +>() +external int task_register_hardened_exception_handler( + int task, + int signed_pc_key, + int exceptions_allowed, + int behaviors_allowed, + int flavors_allowed, + int new_exception_port, +); + +@ffi.Native() +external int task_resume(int target_task); + +@ffi.Native() +external int task_resume2(int suspend_token); + +@ffi.Native() +external int task_sample(int task, int reply); + +@ffi.Native() +external int task_self_trap(); + +@ffi.Native() +external int task_set_corpse_forking_behavior(int task, int behavior); + +@ffi.Native() +external int task_set_emulation( + int target_port, + int routine_entry_pt, + int routine_number, +); + +@ffi.Native< + kern_return_t Function( + task_t, + ffi.Int, + emulation_vector_t, + mach_msg_type_number_t, + ) +>() +external int task_set_emulation_vector( + int task, + int vector_start, + emulation_vector_t emulation_vector, + int emulation_vectorCnt, +); + +@ffi.Native() +external int task_set_exc_guard_behavior(int task, int behavior); + +@ffi.Native< + kern_return_t Function( + task_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + ) +>() +external int task_set_exception_ports( + int task, + int exception_mask, + int new_port, + int behavior, + int new_flavor, +); + +@ffi.Native< + kern_return_t Function( + task_t, + task_flavor_t, + task_info_t, + mach_msg_type_number_t, + ) +>() +external int task_set_info( + int target_task, + int flavor, + task_info_t task_info_in, + int task_info_inCnt, +); + +@ffi.Native() +external int task_set_mach_voucher(int task, int voucher); + +@ffi.Native)>() +external int task_set_phys_footprint_limit( + int task, + int new_limit, + ffi.Pointer old_limit, +); + +@ffi.Native< + kern_return_t Function( + task_t, + processor_set_t, + policy_t, + policy_base_t, + mach_msg_type_number_t, + policy_limit_t, + mach_msg_type_number_t, + boolean_t, + ) +>() +external int task_set_policy( + int task, + int pset, + int policy, + policy_base_t base, + int baseCnt, + policy_limit_t limit, + int limitCnt, + int change, +); + +@ffi.Native() +external int task_set_port_space(int task, int table_entries); + +@ffi.Native() +external int task_set_ras_pc(int target_task, int basepc, int boundspc); + +@ffi.Native() +external int task_set_special_port(int task, int which_port, int special_port); + +@ffi.Native< + kern_return_t Function( + task_t, + thread_state_flavor_t, + thread_state_t, + mach_msg_type_number_t, + ) +>() +external int task_set_state( + int task, + int flavor, + thread_state_t new_state, + int new_stateCnt, +); + +@ffi.Native() +external int task_suspend(int target_task); + +@ffi.Native< + kern_return_t Function(task_read_t, ffi.Pointer) +>() +external int task_suspend2( + int target_task, + ffi.Pointer suspend_token, +); + +@ffi.Native< + kern_return_t Function( + task_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int task_swap_exception_ports( + int task, + int exception_mask, + int new_port, + int behavior, + int new_flavor, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlers, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function(task_t, ipc_voucher_t, ffi.Pointer) +>() +external int task_swap_mach_voucher( + int task, + int new_voucher, + ffi.Pointer old_voucher, +); + +@ffi.Native() +external int task_terminate(int target_task); + +@ffi.Native() +external int task_test_async_upcall_propagation( + int task, + int port, + int qos, + int iotier, +); + +@ffi.Native() +external int task_test_sync_upcall(int task, int port); + +@ffi.Native< + kern_return_t Function( + task_inspect_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_threads( + int target_task, + ffi.Pointer act_list, + ffi.Pointer act_listCnt, +); + +@ffi.Native< + kern_return_t Function( + task_t, + dyld_kernel_image_info_array_t, + mach_msg_type_number_t, + ) +>() +external int task_unregister_dyld_image_infos( + int task, + dyld_kernel_image_info_array_t dyld_images, + int dyld_imagesCnt, +); + +@ffi.Native() +external int task_wire(int target_task, int must_wire); + +@ffi.Native< + kern_return_t Function( + task_inspect_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int task_zone_info( + int target_task, + ffi.Pointer names, + ffi.Pointer namesCnt, + ffi.Pointer info, + ffi.Pointer infoCnt, +); + +@ffi.Native() +external int tcgetpgrp(int arg0); + +@ffi.Native() +external int tcsetpgrp(int arg0, int arg1); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead.', +) +@ffi.Native< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) +>() +external ffi.Pointer tempnam( + ffi.Pointer __dir, + ffi.Pointer __prefix, +); + +@ffi.Native() +external double tgamma(double arg0); + +@ffi.Native() +external double tgammaf(double arg0); + +@ffi.Native() +external int thread_abort(int target_act); + +@ffi.Native() +external int thread_abort_safely(int target_act); + +@ffi.Native< + kern_return_t Function( + thread_t, + mach_port_t, + exception_mask_t, + exception_behavior_t, + thread_state_flavor_t, + ) +>() +external int thread_adopt_exception_handler( + int thread, + int exc_port, + int exc_mask, + int behavior_mask, + int flavor_mask, +); + +@ffi.Native() +external int thread_assign(int thread, int new_set); + +@ffi.Native() +external int thread_assign_default(int thread); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + ffi.Int, + thread_state_flavor_t, + thread_state_t, + mach_msg_type_number_t, + thread_state_t, + ffi.Pointer, + ) +>() +external int thread_convert_thread_state( + int thread, + int direction, + int flavor, + thread_state_t in_state, + int in_stateCnt, + thread_state_t out_state, + ffi.Pointer out_stateCnt, +); + +@ffi.Native)>() +external int thread_create( + int parent_task, + ffi.Pointer child_act, +); + +@ffi.Native< + kern_return_t Function( + task_t, + thread_state_flavor_t, + thread_state_t, + mach_msg_type_number_t, + ffi.Pointer, + ) +>() +external int thread_create_running( + int parent_task, + int flavor, + thread_state_t new_state, + int new_stateCnt, + ffi.Pointer child_act, +); + +@ffi.Native() +external int thread_depress_abort(int thread); + +@ffi.Native< + kern_return_t Function(thread_inspect_t, ffi.Pointer) +>() +external int thread_get_assignment( + int thread, + ffi.Pointer assigned_set, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + exception_mask_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int thread_get_exception_ports( + int thread, + int exception_mask, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlers, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + mach_port_t, + exception_mask_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_info_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int thread_get_exception_ports_info( + int port, + int exception_mask, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_info_array_t old_handlers_info, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + thread_read_t, + mach_voucher_selector_t, + ffi.Pointer, + ) +>() +external int thread_get_mach_voucher( + int thr_act, + int which, + ffi.Pointer voucher, +); + +@ffi.Native< + kern_return_t Function(thread_inspect_t, ffi.Int, ffi.Pointer) +>() +external int thread_get_special_port( + int thr_act, + int which_port, + ffi.Pointer special_port, +); + +@ffi.Native< + kern_return_t Function( + thread_read_t, + thread_state_flavor_t, + thread_state_t, + ffi.Pointer, + ) +>() +external int thread_get_state( + int target_act, + int flavor, + thread_state_t old_state, + ffi.Pointer old_stateCnt, +); + +@ffi.Native< + kern_return_t Function( + thread_inspect_t, + thread_flavor_t, + thread_info_t, + ffi.Pointer, + ) +>() +external int thread_info( + int target_act, + int flavor, + thread_info_t thread_info_out, + ffi.Pointer thread_info_outCnt, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + policy_t, + policy_base_t, + mach_msg_type_number_t, + boolean_t, + ) +>() +external int thread_policy( + int thr_act, + int policy, + policy_base_t base, + int baseCnt, + int set_limit, +); + +@ffi.Native< + kern_return_t Function( + thread_inspect_t, + thread_policy_flavor_t, + thread_policy_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int thread_policy_get( + int thread, + int flavor, + thread_policy_t policy_info, + ffi.Pointer policy_infoCnt, + ffi.Pointer get_default, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + thread_policy_flavor_t, + thread_policy_t, + mach_msg_type_number_t, + ) +>() +external int thread_policy_set( + int thread, + int flavor, + thread_policy_t policy_info, + int policy_infoCnt, +); + +@ffi.Native() +external int thread_resume(int target_act); + +@ffi.Native() +external int thread_sample(int thread, int reply); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + ) +>() +external int thread_set_exception_ports( + int thread, + int exception_mask, + int new_port, + int behavior, + int new_flavor, +); + +@ffi.Native() +external int thread_set_mach_voucher(int thr_act, int voucher); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + processor_set_t, + policy_t, + policy_base_t, + mach_msg_type_number_t, + policy_limit_t, + mach_msg_type_number_t, + ) +>() +external int thread_set_policy( + int thr_act, + int pset, + int policy, + policy_base_t base, + int baseCnt, + policy_limit_t limit, + int limitCnt, +); + +@ffi.Native() +external int thread_set_special_port( + int thr_act, + int which_port, + int special_port, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + thread_state_flavor_t, + thread_state_t, + mach_msg_type_number_t, + ) +>() +external int thread_set_state( + int target_act, + int flavor, + thread_state_t new_state, + int new_stateCnt, +); + +@ffi.Native() +external int thread_suspend(int target_act); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + exception_mask_t, + mach_port_t, + exception_behavior_t, + thread_state_flavor_t, + exception_mask_array_t, + ffi.Pointer, + exception_handler_array_t, + exception_behavior_array_t, + exception_flavor_array_t, + ) +>() +external int thread_swap_exception_ports( + int thread, + int exception_mask, + int new_port, + int behavior, + int new_flavor, + exception_mask_array_t masks, + ffi.Pointer masksCnt, + exception_handler_array_t old_handlers, + exception_behavior_array_t old_behaviors, + exception_flavor_array_t old_flavors, +); + +@ffi.Native< + kern_return_t Function( + thread_act_t, + ipc_voucher_t, + ffi.Pointer, + ) +>() +external int thread_swap_mach_voucher( + int thr_act, + int new_voucher, + ffi.Pointer old_voucher, +); + +@ffi.Native< + kern_return_t Function(mach_port_name_t, ffi.Int, mach_msg_timeout_t) +>() +external int thread_switch(int thread_name, int option, int option_time); + +@ffi.Native() +external int thread_terminate(int target_act); + +@ffi.Native() +external int thread_wire(int host_priv, int thread, int wired); + +@ffi.Native)>() +external int time(ffi.Pointer arg0); + +@ffi.Native() +external int time2posix(int arg0); + +@ffi.Native)>() +external int timegm(ffi.Pointer arg0); + +@ffi.Native)>() +external int timelocal(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int timespec_get(ffi.Pointer ts, int base); + +@ffi.Native(symbol: 'timezone') +external int timezone$1; + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int timingsafe_bcmp( + ffi.Pointer __b1, + ffi.Pointer __b2, + int __len, +); + +@ffi.Native Function()>() +external ffi.Pointer tmpfile(); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.', +) +@ffi.Native Function(ffi.Pointer)>() +external ffi.Pointer tmpnam(ffi.Pointer arg0); + +@ffi.Native() +external double trunc(double arg0); + +@ffi.Native, off_t)>() +external int truncate(ffi.Pointer arg0, int arg1); + +@ffi.Native() +external double truncf(double arg0); + +@ffi.Native Function(ffi.Int)>() +external ffi.Pointer ttyname(int arg0); + +@ffi.Native, ffi.Size)>() +external int ttyname_r(int arg0, ffi.Pointer arg1, int __len); + +@ffi.Native() +external int ttyslot(); + +@ffi.Native>>() +external ffi.Pointer> tzname; + +@ffi.Native() +external void tzset(); + +@ffi.Native() +external void tzsetwall(); + +@ffi.Native() +external int ualarm(int arg0, int arg1); + +@ffi.Native)>() +external int undelete(ffi.Pointer arg0); + +@ffi.Native)>() +external int ungetc(int arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external int unlink(ffi.Pointer arg0); + +@ffi.Native, ffi.Int)>() +external int unlinkat(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native() +external int unlockpt(int arg0); + +@ffi.Native)>() +external int unsetenv(ffi.Pointer arg0); + +@ffi.Native)>() +external int unwhiteout(ffi.Pointer arg0); + +@ffi.Native() +external locale_t uselocale(locale_t arg0); + +@ffi.Native() +external int usleep(int arg0); + +@ffi.Native, ffi.Pointer)>() +external int utimes(ffi.Pointer arg0, ffi.Pointer arg1); + +@ffi.Native)>() +external void uuid_clear(ffi.Pointer uu); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int uuid_compare( + ffi.Pointer uu1, + ffi.Pointer uu2, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external void uuid_copy( + ffi.Pointer dst, + ffi.Pointer src, +); + +@ffi.Native)>() +external void uuid_generate(ffi.Pointer out); + +@ffi.Native)>() +external void uuid_generate_random(ffi.Pointer out); + +@ffi.Native)>() +external void uuid_generate_time(ffi.Pointer out); + +@ffi.Native)>() +external int uuid_is_null(ffi.Pointer uu); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer) +>() +external int uuid_parse( + ffi.Pointer in$, + ffi.Pointer uu, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void uuid_unparse( + ffi.Pointer uu, + ffi.Pointer out, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void uuid_unparse_lower( + ffi.Pointer uu, + ffi.Pointer out, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void uuid_unparse_upper( + ffi.Pointer uu, + ffi.Pointer out, +); + +@ffi.Native< + OSStatus Function( + AEEventClass, + AEEventID, + DescType, + ffi.Pointer, + Size, + SInt16, + SInt32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + va_list, + ) +>() +external int vAEBuildAppleEvent( + int theClass, + int theID, + int addressType, + ffi.Pointer addressData, + int addressLength, + int returnID, + int transactionID, + ffi.Pointer resultEvt, + ffi.Pointer error, + ffi.Pointer paramsFmt, + va_list args, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + va_list, + ) +>() +external int vAEBuildDesc( + ffi.Pointer dst, + ffi.Pointer error, + ffi.Pointer src, + va_list args, +); + +@ffi.Native< + OSStatus Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + va_list, + ) +>() +external int vAEBuildParameters( + ffi.Pointer event, + ffi.Pointer error, + ffi.Pointer format, + va_list args, +); + +@ffi.Native Function(ffi.Size)>() +external ffi.Pointer valloc(int __size); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer>, + ffi.Pointer, + va_list, + ) +>() +external int vasprintf( + ffi.Pointer> arg0, + ffi.Pointer arg1, + va_list arg2, +); + +@ffi.Native, va_list)>() +external int vdprintf(int arg0, ffi.Pointer arg1, va_list arg2); + +@Deprecated('Use posix_spawn or fork') +@ffi.Native() +external int vfork(); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) +>() +external int vfprintf( + ffi.Pointer arg0, + ffi.Pointer arg1, + va_list arg2, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) +>() +external int vfscanf( + ffi.Pointer __stream, + ffi.Pointer __format, + va_list arg2, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_size_t, + ffi.Int, + ) +>() +external int vm_allocate( + int target_task, + ffi.Pointer address, + int size, + int flags, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + vm_map_t, + ffi.Pointer, + vm_size_t, + ffi.Int, + ) +>() +external int vm_allocate_cpm( + int host_priv, + int task, + ffi.Pointer address, + int size, + int flags, +); + +@ffi.Native< + kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_behavior_t) +>() +external int vm_behavior_set( + int target_task, + int address, + int size, + int new_behavior, +); + +@ffi.Native< + kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_address_t) +>() +external int vm_copy( + int target_task, + int source_address, + int size, + int dest_address, +); + +@ffi.Native() +external int vm_deallocate(int target_task, int address, int size); + +@ffi.Native< + kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_inherit_t) +>() +external int vm_inherit( + int target_task, + int address, + int size, + int new_inheritance, +); + +@ffi.Native() +external int vm_kernel_page_mask; + +@ffi.Native() +external int vm_kernel_page_shift; + +@ffi.Native() +external int vm_kernel_page_size; + +@ffi.Native< + kern_return_t Function( + vm_map_t, + vm_address_t, + vm_size_t, + vm_machine_attribute_t, + ffi.Pointer, + ) +>() +external int vm_machine_attribute( + int target_task, + int address, + int size, + int attribute, + ffi.Pointer value, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_size_t, + vm_address_t, + ffi.Int, + mem_entry_name_port_t, + vm_offset_t, + boolean_t, + vm_prot_t, + vm_prot_t, + vm_inherit_t, + ) +>() +external int vm_map( + int target_task, + ffi.Pointer address, + int size, + int mask, + int flags, + int object, + int offset, + int copy, + int cur_protection, + int max_protection, + int inheritance, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_size_t, + vm_address_t, + ffi.Int, + mem_entry_name_port_t, + memory_object_offset_t, + boolean_t, + vm_prot_t, + vm_prot_t, + vm_inherit_t, + ) +>() +external int vm_map_64( + int target_task, + ffi.Pointer address, + int size, + int mask, + int flags, + int object, + int offset, + int copy, + int cur_protection, + int max_protection, + int inheritance, +); + +@ffi.Native() +external int vm_map_exec_lockdown(int target_task); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + vm_offset_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int vm_map_page_query( + int target_map, + int offset, + ffi.Pointer disposition, + ffi.Pointer ref_count, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int vm_mapped_pages_info( + int task, + ffi.Pointer pages, + ffi.Pointer pagesCnt, +); + +@ffi.Native< + kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_sync_t) +>() +external int vm_msync(int target_task, int address, int size, int sync_flags); + +@ffi.Native() +external int vm_page_mask; + +@ffi.Native() +external int vm_page_shift; + +@ffi.Native() +external int vm_page_size; + +@ffi.Native< + kern_return_t Function( + vm_map_t, + vm_address_t, + vm_size_t, + boolean_t, + vm_prot_t, + ) +>() +external int vm_protect( + int target_task, + int address, + int size, + int set_maximum, + int new_protection, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + vm_address_t, + vm_purgable_t, + ffi.Pointer, + ) +>() +external int vm_purgable_control( + int target_task, + int address, + int control, + ffi.Pointer state, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + vm_address_t, + vm_size_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int vm_read( + int target_task, + int address, + int size, + ffi.Pointer data, + ffi.Pointer dataCnt, +); + +@ffi.Native< + kern_return_t Function(vm_map_read_t, ffi.Pointer, natural_t) +>() +external int vm_read_list( + int target_task, + ffi.Pointer data_list, + int count, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + vm_address_t, + vm_size_t, + vm_address_t, + ffi.Pointer, + ) +>() +external int vm_read_overwrite( + int target_task, + int address, + int size, + int data, + ffi.Pointer outsize, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + ffi.Pointer, + ffi.Pointer, + vm_region_flavor_t, + vm_region_info_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int vm_region( + int target_task, + ffi.Pointer address, + ffi.Pointer size, + int flavor, + vm_region_info_t info, + ffi.Pointer infoCnt, + ffi.Pointer object_name, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + ffi.Pointer, + ffi.Pointer, + vm_region_flavor_t, + vm_region_info_t, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int vm_region_64( + int target_task, + ffi.Pointer address, + ffi.Pointer size, + int flavor, + vm_region_info_t info, + ffi.Pointer infoCnt, + ffi.Pointer object_name, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + vm_region_recurse_info_t, + ffi.Pointer, + ) +>() +external int vm_region_recurse( + int target_task, + ffi.Pointer address, + ffi.Pointer size, + ffi.Pointer nesting_depth, + vm_region_recurse_info_t info, + ffi.Pointer infoCnt, +); + +@ffi.Native< + kern_return_t Function( + vm_map_read_t, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + vm_region_recurse_info_t, + ffi.Pointer, + ) +>() +external int vm_region_recurse_64( + int target_task, + ffi.Pointer address, + ffi.Pointer size, + ffi.Pointer nesting_depth, + vm_region_recurse_info_t info, + ffi.Pointer infoCnt, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_size_t, + vm_address_t, + ffi.Int, + vm_map_t, + vm_address_t, + boolean_t, + ffi.Pointer, + ffi.Pointer, + vm_inherit_t, + ) +>() +external int vm_remap( + int target_task, + ffi.Pointer target_address, + int size, + int mask, + int flags, + int src_task, + int src_address, + int copy, + ffi.Pointer cur_protection, + ffi.Pointer max_protection, + int inheritance, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + ffi.Pointer, + vm_size_t, + vm_address_t, + ffi.Int, + vm_map_read_t, + vm_address_t, + boolean_t, + ffi.Pointer, + ffi.Pointer, + vm_inherit_t, + ) +>() +external int vm_remap_new( + int target_task, + ffi.Pointer target_address, + int size, + int mask, + int flags, + int src_task, + int src_address, + int copy, + ffi.Pointer cur_protection, + ffi.Pointer max_protection, + int inheritance, +); + +@ffi.Native< + kern_return_t Function(ffi.Pointer, ffi.Pointer) +>() +external int vm_stats( + ffi.Pointer info, + ffi.Pointer count, +); + +@ffi.Native< + kern_return_t Function( + host_priv_t, + vm_map_t, + vm_address_t, + vm_size_t, + vm_prot_t, + ) +>() +external int vm_wire( + int host_priv, + int task, + int address, + int size, + int desired_access, +); + +@ffi.Native< + kern_return_t Function( + vm_map_t, + vm_address_t, + vm_offset_t, + mach_msg_type_number_t, + ) +>() +external int vm_write(int target_task, int address, int data, int dataCnt); + +@ffi.Native)>() +external voucher_mach_msg_state_t voucher_mach_msg_adopt( + ffi.Pointer msg, +); + +@ffi.Native)>() +external void voucher_mach_msg_clear(ffi.Pointer msg); + +@ffi.Native() +external void voucher_mach_msg_revert(voucher_mach_msg_state_t state); + +@ffi.Native)>() +external int voucher_mach_msg_set(ffi.Pointer msg); + +@ffi.Native, va_list)>() +external int vprintf(ffi.Pointer arg0, va_list arg1); + +@ffi.Native< + ffi.Pointer< + ffi.NativeFunction, va_list)> + > +>() +external ffi.Pointer< + ffi.NativeFunction, va_list)> +> +vprintf_stderr_func; + +@ffi.Native, va_list)>() +external int vscanf(ffi.Pointer __format, va_list arg1); + +@ffi.Native< + ffi.Int Function( + ffi.Pointer, + ffi.Size, + ffi.Pointer, + va_list, + ) +>() +external int vsnprintf( + ffi.Pointer __str, + int __size, + ffi.Pointer __format, + va_list arg3, +); + +@Deprecated( + 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead.', +) +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) +>() +external int vsprintf( + ffi.Pointer arg0, + ffi.Pointer arg1, + va_list arg2, +); + +@ffi.Native< + ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) +>() +external int vsscanf( + ffi.Pointer __str, + ffi.Pointer __format, + va_list arg2, +); + +@ffi.Native)>() +external int wait(ffi.Pointer arg0); + +@ffi.Native< + pid_t Function(ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int wait3( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + pid_t Function(pid_t, ffi.Pointer, ffi.Int, ffi.Pointer) +>() +external int wait4( + int arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Int Function(ffi.UnsignedInt, id_t, ffi.Pointer, ffi.Int) +>(symbol: 'waitid') +external int _waitid(int arg0, int arg1, ffi.Pointer arg2, int arg3); + +int waitid( + idtype_t arg0, + Dart__uint32_t arg1, + ffi.Pointer arg2, + int arg3, +) { + return _waitid(arg0.value, arg1, arg2, arg3); +} + +@ffi.Native, ffi.Int)>() +external int waitpid(int arg0, ffi.Pointer arg1, int arg2); + +@ffi.Native< + intmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int wcstoimax( + ffi.Pointer __nptr, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native< + ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) +>() +external int wcstombs( + ffi.Pointer arg0, + ffi.Pointer arg1, + int __n, +); + +@ffi.Native< + uintmax_t Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ) +>() +external int wcstoumax( + ffi.Pointer __nptr, + ffi.Pointer> __endptr, + int __base, +); + +@ffi.Native, ffi.WChar)>() +external int wctomb(ffi.Pointer arg0, int arg1); + +@ffi.Native, ffi.Size)>() +external int write(int __fd, ffi.Pointer __buf, int __nbyte); + +@Deprecated('Deprecated') +@ffi.Native)>() +external double x80tod(ffi.Pointer x80); + +@ffi.Native( + symbol: 'xpc_activity_copy_criteria', +) +external xpc_object_t _xpc_activity_copy_criteria(xpc_activity_t activity); + +Dartxpc_object_t? xpc_activity_copy_criteria(Dartxpc_object_t activity) { + final _$$ref = activity.ref; + return _xpc_activity_copy_criteria(_$$ref.pointer).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_activity_copy_criteria(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_activity_get_state', +) +external int _xpc_activity_get_state(xpc_activity_t activity); + +Dartxpc_activity_state_t xpc_activity_get_state(Dartxpc_object_t activity) { + final _$$ref = activity.ref; + return _xpc_activity_get_state(_$$ref.pointer); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, xpc_object_t, xpc_activity_handler_t) +>(symbol: 'xpc_activity_register') +external void _xpc_activity_register( + ffi.Pointer identifier, + xpc_object_t criteria, + xpc_activity_handler_t handler, +); + +void xpc_activity_register( + ffi.Pointer identifier, + Dartxpc_object_t criteria, + Dartxpc_activity_handler_t handler, +) { + final _$$ref = criteria.ref; + final _$$ref$1 = handler.ref; + return _xpc_activity_register(identifier, _$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_activity_set_criteria', +) +external void _xpc_activity_set_criteria( + xpc_activity_t activity, + xpc_object_t criteria, +); + +void xpc_activity_set_criteria( + Dartxpc_object_t activity, + Dartxpc_object_t criteria, +) { + final _$$ref = activity.ref; + final _$$ref$1 = criteria.ref; + return _xpc_activity_set_criteria(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_activity_set_state', +) +external bool _xpc_activity_set_state(xpc_activity_t activity, int state); + +bool xpc_activity_set_state( + Dartxpc_object_t activity, + Dartxpc_activity_state_t state, +) { + final _$$ref = activity.ref; + return _xpc_activity_set_state(_$$ref.pointer, state); +} + +@ffi.Native( + symbol: 'xpc_activity_should_defer', +) +external bool _xpc_activity_should_defer(xpc_activity_t activity); + +bool xpc_activity_should_defer(Dartxpc_object_t activity) { + final _$$ref = activity.ref; + return _xpc_activity_should_defer(_$$ref.pointer); +} + +@ffi.Native)>() +external void xpc_activity_unregister(ffi.Pointer identifier); + +@ffi.Native( + symbol: 'xpc_array_append_value', +) +external void _xpc_array_append_value(xpc_object_t xarray, xpc_object_t value); + +void xpc_array_append_value(Dartxpc_object_t xarray, Dartxpc_object_t value) { + final _$$ref = xarray.ref; + final _$$ref$1 = value.ref; + return _xpc_array_append_value(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_array_apply', +) +external bool _xpc_array_apply( + xpc_object_t xarray, + xpc_array_applier_t applier, +); + +bool xpc_array_apply(Dartxpc_object_t xarray, Dartxpc_array_applier_t applier) { + final _$$ref = xarray.ref; + final _$$ref$1 = applier.ref; + return _xpc_array_apply(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native, ffi.Size)>( + symbol: 'xpc_array_create', +) +external xpc_object_t _xpc_array_create( + ffi.Pointer objects, + int count, +); + +Dartxpc_object_t xpc_array_create( + ffi.Pointer objects, + int count, +) { + return objc.NSObject.fromPointer( + _xpc_array_create(objects, count), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_array_create_connection', +) +external xpc_connection_t _xpc_array_create_connection( + xpc_object_t xarray, + int index$1, +); + +Dartxpc_object_t? xpc_array_create_connection( + Dartxpc_object_t xarray, + int index$1, +) { + final _$$ref = xarray.ref; + return _xpc_array_create_connection(_$$ref.pointer, index$1).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_array_create_connection(_$$ref.pointer, index$1), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_array_create_empty') +external xpc_object_t _xpc_array_create_empty(); + +Dartxpc_object_t xpc_array_create_empty() { + return objc.NSObject.fromPointer( + _xpc_array_create_empty(), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_array_dup_fd', +) +external int _xpc_array_dup_fd(xpc_object_t xarray, int index$1); + +int xpc_array_dup_fd(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_dup_fd(_$$ref.pointer, index$1); +} + +@ffi.Native( + symbol: 'xpc_array_get_array', +) +external xpc_object_t _xpc_array_get_array(xpc_object_t xarray, int index$1); + +Dartxpc_object_t? xpc_array_get_array(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_array(_$$ref.pointer, index$1).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_array_get_array(_$$ref.pointer, index$1), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_array_get_bool', +) +external bool _xpc_array_get_bool(xpc_object_t xarray, int index$1); + +bool xpc_array_get_bool(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_bool(_$$ref.pointer, index$1); +} + +@ffi.Native(symbol: 'xpc_array_get_count') +external int _xpc_array_get_count(xpc_object_t xarray); + +int xpc_array_get_count(Dartxpc_object_t xarray) { + final _$$ref = xarray.ref; + return _xpc_array_get_count(_$$ref.pointer); +} + +@ffi.Native< + ffi.Pointer Function(xpc_object_t, ffi.Size, ffi.Pointer) +>(symbol: 'xpc_array_get_data') +external ffi.Pointer _xpc_array_get_data( + xpc_object_t xarray, + int index$1, + ffi.Pointer length, +); + +ffi.Pointer xpc_array_get_data( + Dartxpc_object_t xarray, + int index$1, + ffi.Pointer length, +) { + final _$$ref = xarray.ref; + return _xpc_array_get_data(_$$ref.pointer, index$1, length); +} + +@ffi.Native( + symbol: 'xpc_array_get_date', +) +external int _xpc_array_get_date(xpc_object_t xarray, int index$1); + +int xpc_array_get_date(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_date(_$$ref.pointer, index$1); +} + +@ffi.Native( + symbol: 'xpc_array_get_dictionary', +) +external xpc_object_t _xpc_array_get_dictionary( + xpc_object_t xarray, + int index$1, +); + +Dartxpc_object_t? xpc_array_get_dictionary( + Dartxpc_object_t xarray, + int index$1, +) { + final _$$ref = xarray.ref; + return _xpc_array_get_dictionary(_$$ref.pointer, index$1).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_array_get_dictionary(_$$ref.pointer, index$1), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_array_get_double', +) +external double _xpc_array_get_double(xpc_object_t xarray, int index$1); + +double xpc_array_get_double(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_double(_$$ref.pointer, index$1); +} + +@ffi.Native( + symbol: 'xpc_array_get_int64', +) +external int _xpc_array_get_int64(xpc_object_t xarray, int index$1); + +int xpc_array_get_int64(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_int64(_$$ref.pointer, index$1); +} + +@ffi.Native Function(xpc_object_t, ffi.Size)>( + symbol: 'xpc_array_get_string', +) +external ffi.Pointer _xpc_array_get_string( + xpc_object_t xarray, + int index$1, +); + +ffi.Pointer xpc_array_get_string( + Dartxpc_object_t xarray, + int index$1, +) { + final _$$ref = xarray.ref; + return _xpc_array_get_string(_$$ref.pointer, index$1); +} + +@ffi.Native( + symbol: 'xpc_array_get_uint64', +) +external int _xpc_array_get_uint64(xpc_object_t xarray, int index$1); + +int xpc_array_get_uint64(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return _xpc_array_get_uint64(_$$ref.pointer, index$1); +} + +@ffi.Native Function(xpc_object_t, ffi.Size)>( + symbol: 'xpc_array_get_uuid', +) +external ffi.Pointer _xpc_array_get_uuid( + xpc_object_t xarray, + int index$1, +); + +ffi.Pointer xpc_array_get_uuid( + Dartxpc_object_t xarray, + int index$1, +) { + final _$$ref = xarray.ref; + return _xpc_array_get_uuid(_$$ref.pointer, index$1); +} + +@ffi.Native( + symbol: 'xpc_array_get_value', +) +external xpc_object_t _xpc_array_get_value(xpc_object_t xarray, int index$1); + +Dartxpc_object_t xpc_array_get_value(Dartxpc_object_t xarray, int index$1) { + final _$$ref = xarray.ref; + return objc.NSObject.fromPointer( + _xpc_array_get_value(_$$ref.pointer, index$1), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_array_set_bool', +) +external void _xpc_array_set_bool(xpc_object_t xarray, int index$1, bool value); + +void xpc_array_set_bool(Dartxpc_object_t xarray, int index$1, bool value) { + final _$$ref = xarray.ref; + return _xpc_array_set_bool(_$$ref.pointer, index$1, value); +} + +@ffi.Native( + symbol: 'xpc_array_set_connection', +) +external void _xpc_array_set_connection( + xpc_object_t xarray, + int index$1, + xpc_connection_t connection, +); + +void xpc_array_set_connection( + Dartxpc_object_t xarray, + int index$1, + Dartxpc_object_t connection, +) { + final _$$ref = xarray.ref; + final _$$ref$1 = connection.ref; + return _xpc_array_set_connection(_$$ref.pointer, index$1, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Size, ffi.Pointer, ffi.Size) +>(symbol: 'xpc_array_set_data') +external void _xpc_array_set_data( + xpc_object_t xarray, + int index$1, + ffi.Pointer bytes, + int length, +); + +void xpc_array_set_data( + Dartxpc_object_t xarray, + int index$1, + ffi.Pointer bytes, + int length, +) { + final _$$ref = xarray.ref; + return _xpc_array_set_data(_$$ref.pointer, index$1, bytes, length); +} + +@ffi.Native( + symbol: 'xpc_array_set_date', +) +external void _xpc_array_set_date(xpc_object_t xarray, int index$1, int value); + +void xpc_array_set_date(Dartxpc_object_t xarray, int index$1, int value) { + final _$$ref = xarray.ref; + return _xpc_array_set_date(_$$ref.pointer, index$1, value); +} + +@ffi.Native( + symbol: 'xpc_array_set_double', +) +external void _xpc_array_set_double( + xpc_object_t xarray, + int index$1, + double value, +); + +void xpc_array_set_double(Dartxpc_object_t xarray, int index$1, double value) { + final _$$ref = xarray.ref; + return _xpc_array_set_double(_$$ref.pointer, index$1, value); +} + +@ffi.Native( + symbol: 'xpc_array_set_fd', +) +external void _xpc_array_set_fd(xpc_object_t xarray, int index$1, int fd); + +void xpc_array_set_fd(Dartxpc_object_t xarray, int index$1, int fd) { + final _$$ref = xarray.ref; + return _xpc_array_set_fd(_$$ref.pointer, index$1, fd); +} + +@ffi.Native( + symbol: 'xpc_array_set_int64', +) +external void _xpc_array_set_int64(xpc_object_t xarray, int index$1, int value); + +void xpc_array_set_int64(Dartxpc_object_t xarray, int index$1, int value) { + final _$$ref = xarray.ref; + return _xpc_array_set_int64(_$$ref.pointer, index$1, value); +} + +@ffi.Native)>( + symbol: 'xpc_array_set_string', +) +external void _xpc_array_set_string( + xpc_object_t xarray, + int index$1, + ffi.Pointer string, +); + +void xpc_array_set_string( + Dartxpc_object_t xarray, + int index$1, + ffi.Pointer string, +) { + final _$$ref = xarray.ref; + return _xpc_array_set_string(_$$ref.pointer, index$1, string); +} + +@ffi.Native( + symbol: 'xpc_array_set_uint64', +) +external void _xpc_array_set_uint64( + xpc_object_t xarray, + int index$1, + int value, +); + +void xpc_array_set_uint64(Dartxpc_object_t xarray, int index$1, int value) { + final _$$ref = xarray.ref; + return _xpc_array_set_uint64(_$$ref.pointer, index$1, value); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Size, ffi.Pointer) +>(symbol: 'xpc_array_set_uuid') +external void _xpc_array_set_uuid( + xpc_object_t xarray, + int index$1, + ffi.Pointer uuid, +); + +void xpc_array_set_uuid( + Dartxpc_object_t xarray, + int index$1, + ffi.Pointer uuid, +) { + final _$$ref = xarray.ref; + return _xpc_array_set_uuid(_$$ref.pointer, index$1, uuid); +} + +@ffi.Native( + symbol: 'xpc_array_set_value', +) +external void _xpc_array_set_value( + xpc_object_t xarray, + int index$1, + xpc_object_t value, +); + +void xpc_array_set_value( + Dartxpc_object_t xarray, + int index$1, + Dartxpc_object_t value, +) { + final _$$ref = xarray.ref; + final _$$ref$1 = value.ref; + return _xpc_array_set_value(_$$ref.pointer, index$1, _$$ref$1.pointer); +} + +@ffi.Native(symbol: 'xpc_bool_create') +external xpc_object_t _xpc_bool_create(bool value); + +Dartxpc_object_t xpc_bool_create(bool value) { + return objc.NSObject.fromPointer( + _xpc_bool_create(value), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_bool_get_value') +external bool _xpc_bool_get_value(xpc_object_t xbool); + +bool xpc_bool_get_value(Dartxpc_object_t xbool) { + final _$$ref = xbool.ref; + return _xpc_bool_get_value(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_activate', +) +external void _xpc_connection_activate(xpc_connection_t connection); + +void xpc_connection_activate(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_activate(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_cancel', +) +external void _xpc_connection_cancel(xpc_connection_t connection); + +void xpc_connection_cancel(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_cancel(_$$ref.pointer); +} + +@ffi.Native Function(xpc_connection_t)>( + symbol: 'xpc_connection_copy_invalidation_reason', +) +external ffi.Pointer _xpc_connection_copy_invalidation_reason( + xpc_connection_t connection, +); + +ffi.Pointer xpc_connection_copy_invalidation_reason( + Dartxpc_object_t connection, +) { + final _$$ref = connection.ref; + return _xpc_connection_copy_invalidation_reason(_$$ref.pointer); +} + +@ffi.Native, dispatch_queue_t)>( + symbol: 'xpc_connection_create', +) +external xpc_connection_t _xpc_connection_create( + ffi.Pointer name, + dispatch_queue_t targetq, +); + +Dartxpc_object_t xpc_connection_create( + ffi.Pointer name, + Dartdispatch_queue_t? targetq, +) { + final _$$ref = targetq?.ref; + return objc.NSObject.fromPointer( + _xpc_connection_create(name, _$$ref?.pointer ?? ffi.nullptr), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_create_from_endpoint', +) +external xpc_connection_t _xpc_connection_create_from_endpoint( + xpc_endpoint_t endpoint, +); + +Dartxpc_object_t xpc_connection_create_from_endpoint( + Dartxpc_object_t endpoint, +) { + final _$$ref = endpoint.ref; + return objc.NSObject.fromPointer( + _xpc_connection_create_from_endpoint(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_connection_t Function(ffi.Pointer, dispatch_queue_t, ffi.Uint64) +>(symbol: 'xpc_connection_create_mach_service') +external xpc_connection_t _xpc_connection_create_mach_service( + ffi.Pointer name, + dispatch_queue_t targetq, + int flags, +); + +Dartxpc_object_t xpc_connection_create_mach_service( + ffi.Pointer name, + Dartdispatch_queue_t? targetq, + int flags, +) { + final _$$ref = targetq?.ref; + return objc.NSObject.fromPointer( + _xpc_connection_create_mach_service( + name, + _$$ref?.pointer ?? ffi.nullptr, + flags, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_get_asid', +) +external int _xpc_connection_get_asid(xpc_connection_t connection); + +Dart__int32_t xpc_connection_get_asid(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_asid(_$$ref.pointer); +} + +@ffi.Native Function(xpc_connection_t)>( + symbol: 'xpc_connection_get_context', +) +external ffi.Pointer _xpc_connection_get_context( + xpc_connection_t connection, +); + +ffi.Pointer xpc_connection_get_context(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_context(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_connection_get_egid') +external int _xpc_connection_get_egid(xpc_connection_t connection); + +Dart__uint32_t xpc_connection_get_egid(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_egid(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_connection_get_euid') +external int _xpc_connection_get_euid(xpc_connection_t connection); + +Dart__uint32_t xpc_connection_get_euid(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_euid(_$$ref.pointer); +} + +@ffi.Native Function(xpc_connection_t)>( + symbol: 'xpc_connection_get_name', +) +external ffi.Pointer _xpc_connection_get_name( + xpc_connection_t connection, +); + +ffi.Pointer xpc_connection_get_name(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_name(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_connection_get_pid') +external int _xpc_connection_get_pid(xpc_connection_t connection); + +Dart__int32_t xpc_connection_get_pid(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_get_pid(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_resume', +) +external void _xpc_connection_resume(xpc_connection_t connection); + +void xpc_connection_resume(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_resume(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_send_barrier', +) +external void _xpc_connection_send_barrier( + xpc_connection_t connection, + dispatch_block_t barrier, +); + +void xpc_connection_send_barrier( + Dartxpc_object_t connection, + Dartdispatch_block_t barrier, +) { + final _$$ref = connection.ref; + final _$$ref$1 = barrier.ref; + return _xpc_connection_send_barrier(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_send_message', +) +external void _xpc_connection_send_message( + xpc_connection_t connection, + xpc_object_t message, +); + +void xpc_connection_send_message( + Dartxpc_object_t connection, + Dartxpc_object_t message, +) { + final _$$ref = connection.ref; + final _$$ref$1 = message.ref; + return _xpc_connection_send_message(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + xpc_connection_t, + xpc_object_t, + dispatch_queue_t, + xpc_handler_t, + ) +>(symbol: 'xpc_connection_send_message_with_reply') +external void _xpc_connection_send_message_with_reply( + xpc_connection_t connection, + xpc_object_t message, + dispatch_queue_t replyq, + xpc_handler_t handler, +); + +void xpc_connection_send_message_with_reply( + Dartxpc_object_t connection, + Dartxpc_object_t message, + Dartdispatch_queue_t? replyq, + Dartxpc_handler_t handler, +) { + final _$$ref = connection.ref; + final _$$ref$1 = message.ref; + final _$$ref$2 = replyq?.ref; + final _$$ref$3 = handler.ref; + return _xpc_connection_send_message_with_reply( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3.pointer, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_send_message_with_reply_sync', +) +external xpc_object_t _xpc_connection_send_message_with_reply_sync( + xpc_connection_t connection, + xpc_object_t message, +); + +Dartxpc_object_t xpc_connection_send_message_with_reply_sync( + Dartxpc_object_t connection, + Dartxpc_object_t message, +) { + final _$$ref = connection.ref; + final _$$ref$1 = message.ref; + return objc.NSObject.fromPointer( + _xpc_connection_send_message_with_reply_sync( + _$$ref.pointer, + _$$ref$1.pointer, + ), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_connection_set_context', +) +external void _xpc_connection_set_context( + xpc_connection_t connection, + ffi.Pointer context, +); + +void xpc_connection_set_context( + Dartxpc_object_t connection, + ffi.Pointer context, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_context(_$$ref.pointer, context); +} + +@ffi.Native( + symbol: 'xpc_connection_set_event_handler', +) +external void _xpc_connection_set_event_handler( + xpc_connection_t connection, + xpc_handler_t handler, +); + +void xpc_connection_set_event_handler( + Dartxpc_object_t connection, + Dartxpc_handler_t handler, +) { + final _$$ref = connection.ref; + final _$$ref$1 = handler.ref; + return _xpc_connection_set_event_handler(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_connection_set_finalizer_f', +) +external void _xpc_connection_set_finalizer_f( + xpc_connection_t connection, + xpc_finalizer_t finalizer, +); + +void xpc_connection_set_finalizer_f( + Dartxpc_object_t connection, + xpc_finalizer_t finalizer, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_finalizer_f(_$$ref.pointer, finalizer); +} + +@ffi.Native)>( + symbol: 'xpc_connection_set_peer_code_signing_requirement', +) +external int _xpc_connection_set_peer_code_signing_requirement( + xpc_connection_t connection, + ffi.Pointer requirement, +); + +int xpc_connection_set_peer_code_signing_requirement( + Dartxpc_object_t connection, + ffi.Pointer requirement, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_peer_code_signing_requirement( + _$$ref.pointer, + requirement, + ); +} + +@ffi.Native)>( + symbol: 'xpc_connection_set_peer_entitlement_exists_requirement', +) +external int _xpc_connection_set_peer_entitlement_exists_requirement( + xpc_connection_t connection, + ffi.Pointer entitlement, +); + +int xpc_connection_set_peer_entitlement_exists_requirement( + Dartxpc_object_t connection, + ffi.Pointer entitlement, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_peer_entitlement_exists_requirement( + _$$ref.pointer, + entitlement, + ); +} + +@ffi.Native< + ffi.Int Function(xpc_connection_t, ffi.Pointer, xpc_object_t) +>(symbol: 'xpc_connection_set_peer_entitlement_matches_value_requirement') +external int _xpc_connection_set_peer_entitlement_matches_value_requirement( + xpc_connection_t connection, + ffi.Pointer entitlement, + xpc_object_t value, +); + +int xpc_connection_set_peer_entitlement_matches_value_requirement( + Dartxpc_object_t connection, + ffi.Pointer entitlement, + Dartxpc_object_t value, +) { + final _$$ref = connection.ref; + final _$$ref$1 = value.ref; + return _xpc_connection_set_peer_entitlement_matches_value_requirement( + _$$ref.pointer, + entitlement, + _$$ref$1.pointer, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_set_peer_lightweight_code_requirement', +) +external int _xpc_connection_set_peer_lightweight_code_requirement( + xpc_connection_t connection, + xpc_object_t lwcr, +); + +int xpc_connection_set_peer_lightweight_code_requirement( + Dartxpc_object_t connection, + Dartxpc_object_t lwcr, +) { + final _$$ref = connection.ref; + final _$$ref$1 = lwcr.ref; + return _xpc_connection_set_peer_lightweight_code_requirement( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native)>( + symbol: 'xpc_connection_set_peer_platform_identity_requirement', +) +external int _xpc_connection_set_peer_platform_identity_requirement( + xpc_connection_t connection, + ffi.Pointer signing_identifier, +); + +int xpc_connection_set_peer_platform_identity_requirement( + Dartxpc_object_t connection, + ffi.Pointer signing_identifier, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_peer_platform_identity_requirement( + _$$ref.pointer, + signing_identifier, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_set_peer_requirement', +) +external void _xpc_connection_set_peer_requirement( + xpc_connection_t connection, + xpc_peer_requirement_t peer_requirement, +); + +void xpc_connection_set_peer_requirement( + Dartxpc_object_t connection, + Dartxpc_peer_requirement_t peer_requirement, +) { + final _$$ref = connection.ref; + final _$$ref$1 = peer_requirement.ref; + return _xpc_connection_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native)>( + symbol: 'xpc_connection_set_peer_team_identity_requirement', +) +external int _xpc_connection_set_peer_team_identity_requirement( + xpc_connection_t connection, + ffi.Pointer signing_identifier, +); + +int xpc_connection_set_peer_team_identity_requirement( + Dartxpc_object_t connection, + ffi.Pointer signing_identifier, +) { + final _$$ref = connection.ref; + return _xpc_connection_set_peer_team_identity_requirement( + _$$ref.pointer, + signing_identifier, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_set_target_queue', +) +external void _xpc_connection_set_target_queue( + xpc_connection_t connection, + dispatch_queue_t targetq, +); + +void xpc_connection_set_target_queue( + Dartxpc_object_t connection, + Dartdispatch_queue_t? targetq, +) { + final _$$ref = connection.ref; + final _$$ref$1 = targetq?.ref; + return _xpc_connection_set_target_queue( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native( + symbol: 'xpc_connection_suspend', +) +external void _xpc_connection_suspend(xpc_connection_t connection); + +void xpc_connection_suspend(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return _xpc_connection_suspend(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_copy') +external xpc_object_t _xpc_copy(xpc_object_t object); + +Dartxpc_object_t? xpc_copy(Dartxpc_object_t object) { + final _$$ref = object.ref; + return _xpc_copy(_$$ref.pointer).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_copy(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native Function(xpc_object_t)>( + symbol: 'xpc_copy_description', +) +external ffi.Pointer _xpc_copy_description(xpc_object_t object); + +ffi.Pointer xpc_copy_description(Dartxpc_object_t object) { + final _$$ref = object.ref; + return _xpc_copy_description(_$$ref.pointer); +} + +@ffi.Native, ffi.Size)>( + symbol: 'xpc_data_create', +) +external xpc_object_t _xpc_data_create(ffi.Pointer bytes, int length); + +Dartxpc_object_t xpc_data_create(ffi.Pointer bytes, int length) { + return objc.NSObject.fromPointer( + _xpc_data_create(bytes, length), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_data_create_with_dispatch_data', +) +external xpc_object_t _xpc_data_create_with_dispatch_data( + dispatch_data_t ddata, +); + +Dartxpc_object_t xpc_data_create_with_dispatch_data(Dartdispatch_data_t ddata) { + final _$$ref = ddata.ref; + return objc.NSObject.fromPointer( + _xpc_data_create_with_dispatch_data(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Size Function(xpc_object_t, ffi.Pointer, ffi.Size, ffi.Size) +>(symbol: 'xpc_data_get_bytes') +external int _xpc_data_get_bytes( + xpc_object_t xdata, + ffi.Pointer buffer, + int off, + int length, +); + +int xpc_data_get_bytes( + Dartxpc_object_t xdata, + ffi.Pointer buffer, + int off, + int length, +) { + final _$$ref = xdata.ref; + return _xpc_data_get_bytes(_$$ref.pointer, buffer, off, length); +} + +@ffi.Native Function(xpc_object_t)>( + symbol: 'xpc_data_get_bytes_ptr', +) +external ffi.Pointer _xpc_data_get_bytes_ptr(xpc_object_t xdata); + +ffi.Pointer xpc_data_get_bytes_ptr(Dartxpc_object_t xdata) { + final _$$ref = xdata.ref; + return _xpc_data_get_bytes_ptr(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_data_get_length') +external int _xpc_data_get_length(xpc_object_t xdata); + +int xpc_data_get_length(Dartxpc_object_t xdata) { + final _$$ref = xdata.ref; + return _xpc_data_get_length(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_date_create') +external xpc_object_t _xpc_date_create(int interval); + +Dartxpc_object_t xpc_date_create(int interval) { + return objc.NSObject.fromPointer( + _xpc_date_create(interval), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_date_create_from_current') +external xpc_object_t _xpc_date_create_from_current(); + +Dartxpc_object_t xpc_date_create_from_current() { + return objc.NSObject.fromPointer( + _xpc_date_create_from_current(), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_date_get_value') +external int _xpc_date_get_value(xpc_object_t xdate); + +int xpc_date_get_value(Dartxpc_object_t xdate) { + final _$$ref = xdate.ref; + return _xpc_date_get_value(_$$ref.pointer); +} + +@ffi.Native Function()>() +external ffi.Pointer xpc_debugger_api_misuse_info(); + +@ffi.Native( + symbol: 'xpc_dictionary_apply', +) +external bool _xpc_dictionary_apply( + xpc_object_t xdict, + xpc_dictionary_applier_t applier, +); + +bool xpc_dictionary_apply( + Dartxpc_object_t xdict, + Dartxpc_dictionary_applier_t applier, +) { + final _$$ref = xdict.ref; + final _$$ref$1 = applier.ref; + return _xpc_dictionary_apply(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_copy_mach_send', +) +external int _xpc_dictionary_copy_mach_send( + xpc_object_t xdict, + ffi.Pointer key, +); + +Dart__darwin_natural_t xpc_dictionary_copy_mach_send( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_copy_mach_send(_$$ref.pointer, key); +} + +@ffi.Native< + xpc_object_t Function( + ffi.Pointer>, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'xpc_dictionary_create') +external xpc_object_t _xpc_dictionary_create( + ffi.Pointer> keys, + ffi.Pointer values, + int count, +); + +Dartxpc_object_t xpc_dictionary_create( + ffi.Pointer> keys, + ffi.Pointer values, + int count, +) { + return objc.NSObject.fromPointer( + _xpc_dictionary_create(keys, values, count), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_create_connection', +) +external xpc_connection_t _xpc_dictionary_create_connection( + xpc_object_t xdict, + ffi.Pointer key, +); + +Dartxpc_object_t? xpc_dictionary_create_connection( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_create_connection(_$$ref.pointer, key).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_create_connection(_$$ref.pointer, key), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_dictionary_create_empty') +external xpc_object_t _xpc_dictionary_create_empty(); + +Dartxpc_object_t xpc_dictionary_create_empty() { + return objc.NSObject.fromPointer( + _xpc_dictionary_create_empty(), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_dictionary_create_reply', +) +external xpc_object_t _xpc_dictionary_create_reply(xpc_object_t original); + +Dartxpc_object_t? xpc_dictionary_create_reply(Dartxpc_object_t original) { + final _$$ref = original.ref; + return _xpc_dictionary_create_reply(_$$ref.pointer).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_create_reply(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_dup_fd', +) +external int _xpc_dictionary_dup_fd( + xpc_object_t xdict, + ffi.Pointer key, +); + +int xpc_dictionary_dup_fd(Dartxpc_object_t xdict, ffi.Pointer key) { + final _$$ref = xdict.ref; + return _xpc_dictionary_dup_fd(_$$ref.pointer, key); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_array', +) +external xpc_object_t _xpc_dictionary_get_array( + xpc_object_t xdict, + ffi.Pointer key, +); + +Dartxpc_object_t? xpc_dictionary_get_array( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_array(_$$ref.pointer, key).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_get_array(_$$ref.pointer, key), + retain: true, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_bool', +) +external bool _xpc_dictionary_get_bool( + xpc_object_t xdict, + ffi.Pointer key, +); + +bool xpc_dictionary_get_bool( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_bool(_$$ref.pointer, key); +} + +@ffi.Native(symbol: 'xpc_dictionary_get_count') +external int _xpc_dictionary_get_count(xpc_object_t xdict); + +int xpc_dictionary_get_count(Dartxpc_object_t xdict) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_count(_$$ref.pointer); +} + +@ffi.Native< + ffi.Pointer Function( + xpc_object_t, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'xpc_dictionary_get_data') +external ffi.Pointer _xpc_dictionary_get_data( + xpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer length, +); + +ffi.Pointer xpc_dictionary_get_data( + Dartxpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer length, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_data(_$$ref.pointer, key, length); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_date', +) +external int _xpc_dictionary_get_date( + xpc_object_t xdict, + ffi.Pointer key, +); + +int xpc_dictionary_get_date(Dartxpc_object_t xdict, ffi.Pointer key) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_date(_$$ref.pointer, key); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_dictionary', +) +external xpc_object_t _xpc_dictionary_get_dictionary( + xpc_object_t xdict, + ffi.Pointer key, +); + +Dartxpc_object_t? xpc_dictionary_get_dictionary( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_dictionary(_$$ref.pointer, key).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_get_dictionary(_$$ref.pointer, key), + retain: true, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_double', +) +external double _xpc_dictionary_get_double( + xpc_object_t xdict, + ffi.Pointer key, +); + +double xpc_dictionary_get_double( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_double(_$$ref.pointer, key); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_int64', +) +external int _xpc_dictionary_get_int64( + xpc_object_t xdict, + ffi.Pointer key, +); + +int xpc_dictionary_get_int64( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_int64(_$$ref.pointer, key); +} + +@ffi.Native( + symbol: 'xpc_dictionary_get_remote_connection', +) +external xpc_connection_t _xpc_dictionary_get_remote_connection( + xpc_object_t xdict, +); + +Dartxpc_object_t? xpc_dictionary_get_remote_connection(Dartxpc_object_t xdict) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_remote_connection(_$$ref.pointer).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_get_remote_connection(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native< + ffi.Pointer Function(xpc_object_t, ffi.Pointer) +>(symbol: 'xpc_dictionary_get_string') +external ffi.Pointer _xpc_dictionary_get_string( + xpc_object_t xdict, + ffi.Pointer key, +); + +ffi.Pointer xpc_dictionary_get_string( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_string(_$$ref.pointer, key); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_uint64', +) +external int _xpc_dictionary_get_uint64( + xpc_object_t xdict, + ffi.Pointer key, +); + +int xpc_dictionary_get_uint64( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_uint64(_$$ref.pointer, key); +} + +@ffi.Native< + ffi.Pointer Function(xpc_object_t, ffi.Pointer) +>(symbol: 'xpc_dictionary_get_uuid') +external ffi.Pointer _xpc_dictionary_get_uuid( + xpc_object_t xdict, + ffi.Pointer key, +); + +ffi.Pointer xpc_dictionary_get_uuid( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_uuid(_$$ref.pointer, key); +} + +@ffi.Native)>( + symbol: 'xpc_dictionary_get_value', +) +external xpc_object_t _xpc_dictionary_get_value( + xpc_object_t xdict, + ffi.Pointer key, +); + +Dartxpc_object_t? xpc_dictionary_get_value( + Dartxpc_object_t xdict, + ffi.Pointer key, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_get_value(_$$ref.pointer, key).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_dictionary_get_value(_$$ref.pointer, key), + retain: true, + release: true, + ); +} + +@ffi.Native, ffi.Bool)>( + symbol: 'xpc_dictionary_set_bool', +) +external void _xpc_dictionary_set_bool( + xpc_object_t xdict, + ffi.Pointer key, + bool value, +); + +void xpc_dictionary_set_bool( + Dartxpc_object_t xdict, + ffi.Pointer key, + bool value, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_bool(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Pointer, xpc_connection_t) +>(symbol: 'xpc_dictionary_set_connection') +external void _xpc_dictionary_set_connection( + xpc_object_t xdict, + ffi.Pointer key, + xpc_connection_t connection, +); + +void xpc_dictionary_set_connection( + Dartxpc_object_t xdict, + ffi.Pointer key, + Dartxpc_object_t connection, +) { + final _$$ref = xdict.ref; + final _$$ref$1 = connection.ref; + return _xpc_dictionary_set_connection(_$$ref.pointer, key, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function( + xpc_object_t, + ffi.Pointer, + ffi.Pointer, + ffi.Size, + ) +>(symbol: 'xpc_dictionary_set_data') +external void _xpc_dictionary_set_data( + xpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer bytes, + int length, +); + +void xpc_dictionary_set_data( + Dartxpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer bytes, + int length, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_data(_$$ref.pointer, key, bytes, length); +} + +@ffi.Native, ffi.Int64)>( + symbol: 'xpc_dictionary_set_date', +) +external void _xpc_dictionary_set_date( + xpc_object_t xdict, + ffi.Pointer key, + int value, +); + +void xpc_dictionary_set_date( + Dartxpc_object_t xdict, + ffi.Pointer key, + int value, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_date(_$$ref.pointer, key, value); +} + +@ffi.Native, ffi.Double)>( + symbol: 'xpc_dictionary_set_double', +) +external void _xpc_dictionary_set_double( + xpc_object_t xdict, + ffi.Pointer key, + double value, +); + +void xpc_dictionary_set_double( + Dartxpc_object_t xdict, + ffi.Pointer key, + double value, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_double(_$$ref.pointer, key, value); +} + +@ffi.Native, ffi.Int)>( + symbol: 'xpc_dictionary_set_fd', +) +external void _xpc_dictionary_set_fd( + xpc_object_t xdict, + ffi.Pointer key, + int fd, +); + +void xpc_dictionary_set_fd( + Dartxpc_object_t xdict, + ffi.Pointer key, + int fd, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_fd(_$$ref.pointer, key, fd); +} + +@ffi.Native, ffi.Int64)>( + symbol: 'xpc_dictionary_set_int64', +) +external void _xpc_dictionary_set_int64( + xpc_object_t xdict, + ffi.Pointer key, + int value, +); + +void xpc_dictionary_set_int64( + Dartxpc_object_t xdict, + ffi.Pointer key, + int value, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_int64(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Pointer, mach_port_t) +>(symbol: 'xpc_dictionary_set_mach_send') +external void _xpc_dictionary_set_mach_send( + xpc_object_t xdict, + ffi.Pointer key, + int p, +); + +void xpc_dictionary_set_mach_send( + Dartxpc_object_t xdict, + ffi.Pointer key, + Dart__darwin_natural_t p, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_mach_send(_$$ref.pointer, key, p); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Pointer, ffi.Pointer) +>(symbol: 'xpc_dictionary_set_string') +external void _xpc_dictionary_set_string( + xpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer string, +); + +void xpc_dictionary_set_string( + Dartxpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer string, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_string(_$$ref.pointer, key, string); +} + +@ffi.Native, ffi.Uint64)>( + symbol: 'xpc_dictionary_set_uint64', +) +external void _xpc_dictionary_set_uint64( + xpc_object_t xdict, + ffi.Pointer key, + int value, +); + +void xpc_dictionary_set_uint64( + Dartxpc_object_t xdict, + ffi.Pointer key, + int value, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_uint64(_$$ref.pointer, key, value); +} + +@ffi.Native< + ffi.Void Function( + xpc_object_t, + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'xpc_dictionary_set_uuid') +external void _xpc_dictionary_set_uuid( + xpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer uuid, +); + +void xpc_dictionary_set_uuid( + Dartxpc_object_t xdict, + ffi.Pointer key, + ffi.Pointer uuid, +) { + final _$$ref = xdict.ref; + return _xpc_dictionary_set_uuid(_$$ref.pointer, key, uuid); +} + +@ffi.Native< + ffi.Void Function(xpc_object_t, ffi.Pointer, xpc_object_t) +>(symbol: 'xpc_dictionary_set_value') +external void _xpc_dictionary_set_value( + xpc_object_t xdict, + ffi.Pointer key, + xpc_object_t value, +); + +void xpc_dictionary_set_value( + Dartxpc_object_t xdict, + ffi.Pointer key, + Dartxpc_object_t? value, +) { + final _$$ref = xdict.ref; + final _$$ref$1 = value?.ref; + return _xpc_dictionary_set_value( + _$$ref.pointer, + key, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native(symbol: 'xpc_double_create') +external xpc_object_t _xpc_double_create(double value); + +Dartxpc_object_t xpc_double_create(double value) { + return objc.NSObject.fromPointer( + _xpc_double_create(value), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_double_get_value') +external double _xpc_double_get_value(xpc_object_t xdouble); + +double xpc_double_get_value(Dartxpc_object_t xdouble) { + final _$$ref = xdouble.ref; + return _xpc_double_get_value(_$$ref.pointer); +} + +@ffi.Native( + symbol: 'xpc_endpoint_create', +) +external xpc_endpoint_t _xpc_endpoint_create(xpc_connection_t connection); + +Dartxpc_object_t xpc_endpoint_create(Dartxpc_object_t connection) { + final _$$ref = connection.ref; + return objc.NSObject.fromPointer( + _xpc_endpoint_create(_$$ref.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_equal') +external bool _xpc_equal(xpc_object_t object1, xpc_object_t object2); + +bool xpc_equal(Dartxpc_object_t object1, Dartxpc_object_t object2) { + final _$$ref = object1.ref; + final _$$ref$1 = object2.ref; + return _xpc_equal(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native(symbol: 'xpc_fd_create') +external xpc_object_t _xpc_fd_create(int fd); + +Dartxpc_object_t? xpc_fd_create(int fd) { + return _xpc_fd_create(fd).address == 0 + ? null + : objc.NSObject.fromPointer( + _xpc_fd_create(fd), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_fd_dup') +external int _xpc_fd_dup(xpc_object_t xfd); + +int xpc_fd_dup(Dartxpc_object_t xfd) { + final _$$ref = xfd.ref; + return _xpc_fd_dup(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_get_type') +external xpc_type_t _xpc_get_type(xpc_object_t object); + +xpc_type_t xpc_get_type(Dartxpc_object_t object) { + final _$$ref = object.ref; + return _xpc_get_type(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_hash') +external int _xpc_hash(xpc_object_t object); + +int xpc_hash(Dartxpc_object_t object) { + final _$$ref = object.ref; + return _xpc_hash(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_int64_create') +external xpc_object_t _xpc_int64_create(int value); + +Dartxpc_object_t xpc_int64_create(int value) { + return objc.NSObject.fromPointer( + _xpc_int64_create(value), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_int64_get_value') +external int _xpc_int64_get_value(xpc_object_t xint); + +int xpc_int64_get_value(Dartxpc_object_t xint) { + final _$$ref = xint.ref; + return _xpc_int64_get_value(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'xpc_listener_activate', +) +external bool _xpc_listener_activate( + xpc_listener_t listener, + ffi.Pointer error_out, +); + +bool xpc_listener_activate( + Dartxpc_listener_t listener, + ffi.Pointer error_out, +) { + final _$$ref = listener.ref; + return _xpc_listener_activate(_$$ref.pointer, error_out); +} + +@ffi.Native(symbol: 'xpc_listener_cancel') +external void _xpc_listener_cancel(xpc_listener_t listener); + +void xpc_listener_cancel(Dartxpc_listener_t listener) { + final _$$ref = listener.ref; + return _xpc_listener_cancel(_$$ref.pointer); +} + +@ffi.Native Function(xpc_listener_t)>( + symbol: 'xpc_listener_copy_description', +) +external ffi.Pointer _xpc_listener_copy_description( + xpc_listener_t listener, +); + +ffi.Pointer xpc_listener_copy_description( + Dartxpc_listener_t listener, +) { + final _$$ref = listener.ref; + return _xpc_listener_copy_description(_$$ref.pointer); +} + +@ffi.Native< + xpc_listener_t Function( + ffi.Pointer, + dispatch_queue_t, + ffi.Uint64, + xpc_listener_incoming_session_handler_t, + ffi.Pointer, + ) +>(symbol: 'xpc_listener_create') +external xpc_listener_t _xpc_listener_create( + ffi.Pointer service, + dispatch_queue_t target_queue, + int flags, + xpc_listener_incoming_session_handler_t incoming_session_handler, + ffi.Pointer error_out, +); + +Dartxpc_listener_t? xpc_listener_create( + ffi.Pointer service, + Dartdispatch_queue_t? target_queue, + int flags, + Dartxpc_listener_incoming_session_handler_t incoming_session_handler, + ffi.Pointer error_out, +) { + final _$$ref = target_queue?.ref; + final _$$ref$1 = incoming_session_handler.ref; + return _xpc_listener_create( + service, + _$$ref?.pointer ?? ffi.nullptr, + flags, + _$$ref$1.pointer, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_listener_create( + service, + _$$ref?.pointer ?? ffi.nullptr, + flags, + _$$ref$1.pointer, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_listener_reject_peer', +) +external void _xpc_listener_reject_peer( + xpc_session_t peer, + ffi.Pointer reason, +); + +void xpc_listener_reject_peer( + Dartxpc_session_t peer, + ffi.Pointer reason, +) { + final _$$ref = peer.ref; + return _xpc_listener_reject_peer(_$$ref.pointer, reason); +} + +@ffi.Native)>( + symbol: 'xpc_listener_set_peer_code_signing_requirement', +) +external int _xpc_listener_set_peer_code_signing_requirement( + xpc_listener_t listener, + ffi.Pointer requirement, +); + +int xpc_listener_set_peer_code_signing_requirement( + Dartxpc_listener_t listener, + ffi.Pointer requirement, +) { + final _$$ref = listener.ref; + return _xpc_listener_set_peer_code_signing_requirement( + _$$ref.pointer, + requirement, + ); +} + +@ffi.Native( + symbol: 'xpc_listener_set_peer_requirement', +) +external void _xpc_listener_set_peer_requirement( + xpc_listener_t listener, + xpc_peer_requirement_t requirement, +); + +void xpc_listener_set_peer_requirement( + Dartxpc_listener_t listener, + Dartxpc_peer_requirement_t requirement, +) { + final _$$ref = listener.ref; + final _$$ref$1 = requirement.ref; + return _xpc_listener_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native() +external void xpc_main(xpc_connection_handler_t handler); + +@ffi.Native(symbol: 'xpc_null_create') +external xpc_object_t _xpc_null_create(); + +Dartxpc_object_t xpc_null_create() { + return objc.NSObject.fromPointer( + _xpc_null_create(), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_peer_requirement_t Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'xpc_peer_requirement_create_entitlement_exists') +external xpc_peer_requirement_t _xpc_peer_requirement_create_entitlement_exists( + ffi.Pointer entitlement, + ffi.Pointer error_out, +); + +Dartxpc_peer_requirement_t? xpc_peer_requirement_create_entitlement_exists( + ffi.Pointer entitlement, + ffi.Pointer error_out, +) { + return _xpc_peer_requirement_create_entitlement_exists( + entitlement, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_peer_requirement_create_entitlement_exists( + entitlement, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_peer_requirement_t Function( + ffi.Pointer, + xpc_object_t, + ffi.Pointer, + ) +>(symbol: 'xpc_peer_requirement_create_entitlement_matches_value') +external xpc_peer_requirement_t +_xpc_peer_requirement_create_entitlement_matches_value( + ffi.Pointer entitlement, + xpc_object_t value, + ffi.Pointer error_out, +); + +Dartxpc_peer_requirement_t? +xpc_peer_requirement_create_entitlement_matches_value( + ffi.Pointer entitlement, + Dartxpc_object_t value, + ffi.Pointer error_out, +) { + final _$$ref = value.ref; + return _xpc_peer_requirement_create_entitlement_matches_value( + entitlement, + _$$ref.pointer, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_peer_requirement_create_entitlement_matches_value( + entitlement, + _$$ref.pointer, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_peer_requirement_t Function(xpc_object_t, ffi.Pointer) +>(symbol: 'xpc_peer_requirement_create_lwcr') +external xpc_peer_requirement_t _xpc_peer_requirement_create_lwcr( + xpc_object_t lwcr, + ffi.Pointer error_out, +); + +Dartxpc_peer_requirement_t? xpc_peer_requirement_create_lwcr( + Dartxpc_object_t lwcr, + ffi.Pointer error_out, +) { + final _$$ref = lwcr.ref; + return _xpc_peer_requirement_create_lwcr(_$$ref.pointer, error_out).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_peer_requirement_create_lwcr(_$$ref.pointer, error_out), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_peer_requirement_t Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'xpc_peer_requirement_create_platform_identity') +external xpc_peer_requirement_t _xpc_peer_requirement_create_platform_identity( + ffi.Pointer signing_identifier, + ffi.Pointer error_out, +); + +Dartxpc_peer_requirement_t? xpc_peer_requirement_create_platform_identity( + ffi.Pointer signing_identifier, + ffi.Pointer error_out, +) { + return _xpc_peer_requirement_create_platform_identity( + signing_identifier, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_peer_requirement_create_platform_identity( + signing_identifier, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_peer_requirement_t Function( + ffi.Pointer, + ffi.Pointer, + ) +>(symbol: 'xpc_peer_requirement_create_team_identity') +external xpc_peer_requirement_t _xpc_peer_requirement_create_team_identity( + ffi.Pointer signing_identifier, + ffi.Pointer error_out, +); + +Dartxpc_peer_requirement_t? xpc_peer_requirement_create_team_identity( + ffi.Pointer signing_identifier, + ffi.Pointer error_out, +) { + return _xpc_peer_requirement_create_team_identity( + signing_identifier, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_peer_requirement_create_team_identity( + signing_identifier, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Bool Function( + xpc_peer_requirement_t, + xpc_object_t, + ffi.Pointer, + ) +>(symbol: 'xpc_peer_requirement_match_received_message') +external bool _xpc_peer_requirement_match_received_message( + xpc_peer_requirement_t peer_requirement, + xpc_object_t message, + ffi.Pointer error_out, +); + +bool xpc_peer_requirement_match_received_message( + Dartxpc_peer_requirement_t peer_requirement, + Dartxpc_object_t message, + ffi.Pointer error_out, +) { + final _$$ref = peer_requirement.ref; + final _$$ref$1 = message.ref; + return _xpc_peer_requirement_match_received_message( + _$$ref.pointer, + _$$ref$1.pointer, + error_out, + ); +} + +@ffi.Native(symbol: 'xpc_release') +external void _xpc_release(xpc_object_t object); + +void xpc_release(Dartxpc_object_t object) { + final _$$ref = object.ref; + return _xpc_release(_$$ref.pointer); +} + +@ffi.Native(symbol: 'xpc_retain') +external xpc_object_t _xpc_retain(xpc_object_t object); + +Dartxpc_object_t xpc_retain(Dartxpc_object_t object) { + final _$$ref = object.ref; + return objc.NSObject.fromPointer( + _xpc_retain(_$$ref.pointer), + retain: true, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_rich_error_can_retry', +) +external bool _xpc_rich_error_can_retry(xpc_rich_error_t error); + +bool xpc_rich_error_can_retry(Dartxpc_object_t error) { + final _$$ref = error.ref; + return _xpc_rich_error_can_retry(_$$ref.pointer); +} + +@ffi.Native Function(xpc_rich_error_t)>( + symbol: 'xpc_rich_error_copy_description', +) +external ffi.Pointer _xpc_rich_error_copy_description( + xpc_rich_error_t error, +); + +ffi.Pointer xpc_rich_error_copy_description(Dartxpc_object_t error) { + final _$$ref = error.ref; + return _xpc_rich_error_copy_description(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'xpc_session_activate', +) +external bool _xpc_session_activate( + xpc_session_t session, + ffi.Pointer error_out, +); + +bool xpc_session_activate( + Dartxpc_session_t session, + ffi.Pointer error_out, +) { + final _$$ref = session.ref; + return _xpc_session_activate(_$$ref.pointer, error_out); +} + +@ffi.Native(symbol: 'xpc_session_cancel') +external void _xpc_session_cancel(xpc_session_t session); + +void xpc_session_cancel(Dartxpc_session_t session) { + final _$$ref = session.ref; + return _xpc_session_cancel(_$$ref.pointer); +} + +@ffi.Native Function(xpc_session_t)>( + symbol: 'xpc_session_copy_description', +) +external ffi.Pointer _xpc_session_copy_description( + xpc_session_t session, +); + +ffi.Pointer xpc_session_copy_description(Dartxpc_session_t session) { + final _$$ref = session.ref; + return _xpc_session_copy_description(_$$ref.pointer); +} + +@ffi.Native< + xpc_session_t Function( + ffi.Pointer, + dispatch_queue_t, + ffi.Uint64, + ffi.Pointer, + ) +>(symbol: 'xpc_session_create_mach_service') +external xpc_session_t _xpc_session_create_mach_service( + ffi.Pointer mach_service, + dispatch_queue_t target_queue, + int flags, + ffi.Pointer error_out, +); + +Dartxpc_session_t? xpc_session_create_mach_service( + ffi.Pointer mach_service, + Dartdispatch_queue_t? target_queue, + int flags, + ffi.Pointer error_out, +) { + final _$$ref = target_queue?.ref; + return _xpc_session_create_mach_service( + mach_service, + _$$ref?.pointer ?? ffi.nullptr, + flags, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_session_create_mach_service( + mach_service, + _$$ref?.pointer ?? ffi.nullptr, + flags, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native< + xpc_session_t Function( + ffi.Pointer, + dispatch_queue_t, + ffi.Uint64, + ffi.Pointer, + ) +>(symbol: 'xpc_session_create_xpc_service') +external xpc_session_t _xpc_session_create_xpc_service( + ffi.Pointer name, + dispatch_queue_t target_queue, + int flags, + ffi.Pointer error_out, +); + +Dartxpc_session_t? xpc_session_create_xpc_service( + ffi.Pointer name, + Dartdispatch_queue_t? target_queue, + int flags, + ffi.Pointer error_out, +) { + final _$$ref = target_queue?.ref; + return _xpc_session_create_xpc_service( + name, + _$$ref?.pointer ?? ffi.nullptr, + flags, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_session_create_xpc_service( + name, + _$$ref?.pointer ?? ffi.nullptr, + flags, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_session_send_message', +) +external xpc_rich_error_t _xpc_session_send_message( + xpc_session_t session, + xpc_object_t message, +); + +Dartxpc_object_t? xpc_session_send_message( + Dartxpc_session_t session, + Dartxpc_object_t message, +) { + final _$$ref = session.ref; + final _$$ref$1 = message.ref; + return _xpc_session_send_message(_$$ref.pointer, _$$ref$1.pointer).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_session_send_message(_$$ref.pointer, _$$ref$1.pointer), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Void Function(xpc_session_t, xpc_object_t, xpc_session_reply_handler_t) +>(symbol: 'xpc_session_send_message_with_reply_async') +external void _xpc_session_send_message_with_reply_async( + xpc_session_t session, + xpc_object_t message, + xpc_session_reply_handler_t reply_handler, +); + +void xpc_session_send_message_with_reply_async( + Dartxpc_session_t session, + Dartxpc_object_t message, + Dartxpc_session_reply_handler_t reply_handler, +) { + final _$$ref = session.ref; + final _$$ref$1 = message.ref; + final _$$ref$2 = reply_handler.ref; + return _xpc_session_send_message_with_reply_async( + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); +} + +@ffi.Native< + xpc_object_t Function( + xpc_session_t, + xpc_object_t, + ffi.Pointer, + ) +>(symbol: 'xpc_session_send_message_with_reply_sync') +external xpc_object_t _xpc_session_send_message_with_reply_sync( + xpc_session_t session, + xpc_object_t message, + ffi.Pointer error_out, +); + +Dartxpc_object_t? xpc_session_send_message_with_reply_sync( + Dartxpc_session_t session, + Dartxpc_object_t message, + ffi.Pointer error_out, +) { + final _$$ref = session.ref; + final _$$ref$1 = message.ref; + return _xpc_session_send_message_with_reply_sync( + _$$ref.pointer, + _$$ref$1.pointer, + error_out, + ).address == + 0 + ? null + : objc.NSObject.fromPointer( + _xpc_session_send_message_with_reply_sync( + _$$ref.pointer, + _$$ref$1.pointer, + error_out, + ), + retain: false, + release: true, + ); +} + +@ffi.Native( + symbol: 'xpc_session_set_cancel_handler', +) +external void _xpc_session_set_cancel_handler( + xpc_session_t session, + xpc_session_cancel_handler_t cancel_handler, +); + +void xpc_session_set_cancel_handler( + Dartxpc_session_t session, + Dartxpc_session_cancel_handler_t cancel_handler, +) { + final _$$ref = session.ref; + final _$$ref$1 = cancel_handler.ref; + return _xpc_session_set_cancel_handler(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native< + ffi.Void Function(xpc_session_t, xpc_session_incoming_message_handler_t) +>(symbol: 'xpc_session_set_incoming_message_handler') +external void _xpc_session_set_incoming_message_handler( + xpc_session_t session, + xpc_session_incoming_message_handler_t handler, +); + +void xpc_session_set_incoming_message_handler( + Dartxpc_session_t session, + Dartxpc_session_incoming_message_handler_t handler, +) { + final _$$ref = session.ref; + final _$$ref$1 = handler.ref; + return _xpc_session_set_incoming_message_handler( + _$$ref.pointer, + _$$ref$1.pointer, + ); +} + +@ffi.Native)>( + symbol: 'xpc_session_set_peer_code_signing_requirement', +) +external int _xpc_session_set_peer_code_signing_requirement( + xpc_session_t session, + ffi.Pointer requirement, +); + +int xpc_session_set_peer_code_signing_requirement( + Dartxpc_session_t session, + ffi.Pointer requirement, +) { + final _$$ref = session.ref; + return _xpc_session_set_peer_code_signing_requirement( + _$$ref.pointer, + requirement, + ); +} + +@ffi.Native( + symbol: 'xpc_session_set_peer_requirement', +) +external void _xpc_session_set_peer_requirement( + xpc_session_t session, + xpc_peer_requirement_t requirement, +); + +void xpc_session_set_peer_requirement( + Dartxpc_session_t session, + Dartxpc_peer_requirement_t requirement, +) { + final _$$ref = session.ref; + final _$$ref$1 = requirement.ref; + return _xpc_session_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); +} + +@ffi.Native( + symbol: 'xpc_session_set_target_queue', +) +external void _xpc_session_set_target_queue( + xpc_session_t session, + dispatch_queue_t target_queue, +); + +void xpc_session_set_target_queue( + Dartxpc_session_t session, + Dartdispatch_queue_t? target_queue, +) { + final _$$ref = session.ref; + final _$$ref$1 = target_queue?.ref; + return _xpc_session_set_target_queue( + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); +} + +@ffi.Native< + ffi.Void Function(ffi.Pointer, dispatch_queue_t, xpc_handler_t) +>(symbol: 'xpc_set_event_stream_handler') +external void _xpc_set_event_stream_handler( + ffi.Pointer stream, + dispatch_queue_t targetq, + xpc_handler_t handler, +); + +void xpc_set_event_stream_handler( + ffi.Pointer stream, + Dartdispatch_queue_t? targetq, + Dartxpc_handler_t handler, +) { + final _$$ref = targetq?.ref; + final _$$ref$1 = handler.ref; + return _xpc_set_event_stream_handler( + stream, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1.pointer, + ); +} + +@ffi.Native, ffi.Size)>( + symbol: 'xpc_shmem_create', +) +external xpc_object_t _xpc_shmem_create( + ffi.Pointer region, + int length, +); + +Dartxpc_object_t xpc_shmem_create(ffi.Pointer region, int length) { + return objc.NSObject.fromPointer( + _xpc_shmem_create(region, length), + retain: false, + release: true, + ); +} + +@ffi.Native< + ffi.Size Function(xpc_object_t, ffi.Pointer>) +>(symbol: 'xpc_shmem_map') +external int _xpc_shmem_map( + xpc_object_t xshmem, + ffi.Pointer> region, +); + +int xpc_shmem_map( + Dartxpc_object_t xshmem, + ffi.Pointer> region, +) { + final _$$ref = xshmem.ref; + return _xpc_shmem_map(_$$ref.pointer, region); +} + +@ffi.Native)>( + symbol: 'xpc_string_create', +) +external xpc_object_t _xpc_string_create(ffi.Pointer string); + +Dartxpc_object_t xpc_string_create(ffi.Pointer string) { + return objc.NSObject.fromPointer( + _xpc_string_create(string), + retain: false, + release: true, + ); +} + +@ffi.Native)>( + symbol: 'xpc_string_create_with_format', +) +external xpc_object_t _xpc_string_create_with_format(ffi.Pointer fmt); + +Dartxpc_object_t xpc_string_create_with_format(ffi.Pointer fmt) { + return objc.NSObject.fromPointer( + _xpc_string_create_with_format(fmt), + retain: false, + release: true, + ); +} + +@ffi.Native, va_list)>( + symbol: 'xpc_string_create_with_format_and_arguments', +) +external xpc_object_t _xpc_string_create_with_format_and_arguments( + ffi.Pointer fmt, + va_list ap, +); + +Dartxpc_object_t xpc_string_create_with_format_and_arguments( + ffi.Pointer fmt, + va_list ap, +) { + return objc.NSObject.fromPointer( + _xpc_string_create_with_format_and_arguments(fmt, ap), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_string_get_length') +external int _xpc_string_get_length(xpc_object_t xstring); + +int xpc_string_get_length(Dartxpc_object_t xstring) { + final _$$ref = xstring.ref; + return _xpc_string_get_length(_$$ref.pointer); +} + +@ffi.Native Function(xpc_object_t)>( + symbol: 'xpc_string_get_string_ptr', +) +external ffi.Pointer _xpc_string_get_string_ptr(xpc_object_t xstring); + +ffi.Pointer xpc_string_get_string_ptr(Dartxpc_object_t xstring) { + final _$$ref = xstring.ref; + return _xpc_string_get_string_ptr(_$$ref.pointer); +} + +@ffi.Native() +external void xpc_transaction_begin(); + +@ffi.Native() +external void xpc_transaction_end(); + +@ffi.Native Function(xpc_type_t)>() +external ffi.Pointer xpc_type_get_name(xpc_type_t type); + +@ffi.Native(symbol: 'xpc_uint64_create') +external xpc_object_t _xpc_uint64_create(int value); + +Dartxpc_object_t xpc_uint64_create(int value) { + return objc.NSObject.fromPointer( + _xpc_uint64_create(value), + retain: false, + release: true, + ); +} + +@ffi.Native(symbol: 'xpc_uint64_get_value') +external int _xpc_uint64_get_value(xpc_object_t xuint); + +int xpc_uint64_get_value(Dartxpc_object_t xuint) { + final _$$ref = xuint.ref; + return _xpc_uint64_get_value(_$$ref.pointer); +} + +@ffi.Native)>( + symbol: 'xpc_uuid_create', +) +external xpc_object_t _xpc_uuid_create(ffi.Pointer uuid); + +Dartxpc_object_t xpc_uuid_create(ffi.Pointer uuid) { + return objc.NSObject.fromPointer( + _xpc_uuid_create(uuid), + retain: false, + release: true, + ); +} + +@ffi.Native Function(xpc_object_t)>( + symbol: 'xpc_uuid_get_bytes', +) +external ffi.Pointer _xpc_uuid_get_bytes(xpc_object_t xuuid); + +ffi.Pointer xpc_uuid_get_bytes(Dartxpc_object_t xuuid) { + final _$$ref = xuuid.ref; + return _xpc_uuid_get_bytes(_$$ref.pointer); +} + +@ffi.Native() +external double y0(double arg0); + +@ffi.Native() +external double y1(double arg0); + +@ffi.Native() +external double yn(int arg0, double arg1); + +const int AAPNotCreatedErr = -2120; + +const int AAPNotFoundErr = -2121; + +const int ACE2Type = 1094927666; + +const int ACE8Type = 1094927672; + +typedef AEAddressDesc = objc.AEDesc; + +final class AEArrayData extends ffi.Union { + @ffi.Array.multi([1]) + external ffi.Array kAEDataArray$1; + + @ffi.Array.multi([1]) + external ffi.Array kAEPackedArray$1; + + @ffi.Array.multi([1]) + external ffi.Array kAEHandleArray$1; + + @ffi.Array.multi([1]) + external ffi.Array kAEDescArray$1; + + @ffi.Array.multi([1]) + external ffi.Array kAEKeyDescArray$1; +} + +typedef AEArrayDataPointer = ffi.Pointer; +typedef AEArrayType = SInt8; + +@ffi.Packed(2) +final class AEBuildError extends ffi.Struct { + @AEBuildErrorCode() + external int fError; + + @UInt32() + external int fErrorPos; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fError, + required int fErrorPos, + }) => $allocator() + ..ref.fError = fError + ..ref.fErrorPos = fErrorPos; +} + +typedef AEBuildErrorCode = UInt32; +typedef AECoerceDescProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + ffi.Pointer fromDesc, + DescType toType, + SRefCon handlerRefcon, + ffi.Pointer toDesc, + ) + > + >; +typedef AECoerceDescUPP = AECoerceDescProcPtr; +typedef AECoercePtrProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + DescType typeCode, + ffi.Pointer dataPtr, + Size dataSize, + DescType toType, + SRefCon handlerRefcon, + ffi.Pointer result, + ) + > + >; +typedef AECoercePtrUPP = AECoercePtrProcPtr; +typedef AECoercionHandlerUPP = AECoerceDescUPP; +typedef AEDataStorage = ffi.Pointer; +typedef AEDataStorageType = ffi.Pointer; +typedef AEDescList = objc.AEDesc; +typedef AEDescPtr = ffi.Pointer; +typedef AEDisposeExternalProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer dataPtr, + Size dataLength, + SRefCon refcon, + ) + > + >; +typedef AEDisposeExternalUPP = AEDisposeExternalProcPtr; +typedef AEEventClass = FourCharCode; +typedef AEEventHandlerProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + SRefCon handlerRefcon, + ) + > + >; +typedef AEEventHandlerUPP = AEEventHandlerProcPtr; +typedef AEEventID = FourCharCode; +typedef AEEventSource = SInt8; + +@ffi.Packed(2) +final class AEKeyDesc extends ffi.Struct { + @AEKeyword() + external int descKey; + + external objc.AEDesc descContent; +} + +typedef AEKeyword = FourCharCode; +typedef AERecord = AEDescList; + +final class AERemoteProcessResolver extends ffi.Opaque {} + +typedef AERemoteProcessResolverCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + AERemoteProcessResolverRef ref, + ffi.Pointer info, + ) + > + >; + +@ffi.Packed(2) +final class AERemoteProcessResolverContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef AERemoteProcessResolverRef = ffi.Pointer; +typedef AEReturnID = SInt16; +typedef AESendMode = SInt32; +typedef AESendPriority = SInt16; +typedef AEStreamRef = ffi.Pointer; +typedef AETransactionID = SInt32; + +final class AFPAlternateAddress extends ffi.Struct { + @UInt8() + external int fVersion; + + @UInt8() + external int fAddressCount; + + @ffi.Array.multi([1]) + external ffi.Array fAddressList; +} + +final class AFPTagData extends ffi.Struct { + @UInt8() + external int fLength; + + @UInt8() + external int fType; + + @ffi.Array.multi([1]) + external ffi.Array fData; +} + +@ffi.Packed(2) +final class AFPVolMountInfo extends ffi.Struct { + @SInt16() + external int length; + + @VolumeType() + external int media; + + @SInt16() + external int flags; + + @SInt8() + external int nbpInterval; + + @SInt8() + external int nbpCount; + + @SInt16() + external int uamType; + + @SInt16() + external int zoneNameOffset; + + @SInt16() + external int serverNameOffset; + + @SInt16() + external int volNameOffset; + + @SInt16() + external int userNameOffset; + + @SInt16() + external int userPasswordOffset; + + @SInt16() + external int volPasswordOffset; + + @ffi.Array.multi([144]) + external ffi.Array AFPData; +} + +typedef AFPVolMountInfoPtr = ffi.Pointer; + +@ffi.Packed(2) +final class AFPXVolMountInfo extends ffi.Struct { + @SInt16() + external int length; + + @VolumeType() + external int media; + + @SInt16() + external int flags; + + @SInt8() + external int nbpInterval; + + @SInt8() + external int nbpCount; + + @SInt16() + external int uamType; + + @SInt16() + external int zoneNameOffset; + + @SInt16() + external int serverNameOffset; + + @SInt16() + external int volNameOffset; + + @SInt16() + external int userNameOffset; + + @SInt16() + external int userPasswordOffset; + + @SInt16() + external int volPasswordOffset; + + @SInt16() + external int extendedFlags; + + @SInt16() + external int uamNameOffset; + + @SInt16() + external int alternateAddressOffset; + + @ffi.Array.multi([176]) + external ffi.Array AFPData; +} + +typedef AFPXVolMountInfoPtr = ffi.Pointer; + +const int AIFCID = 1095321155; + +const int AIFCVersion1 = -1568648896; + +const int AIFFID = 1095321158; + +final class AIFFLoop extends ffi.Struct { + @SInt16() + external int playMode; + + @MarkerIdType() + external int beginLoop; + + @MarkerIdType() + external int endLoop; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int playMode, + required int beginLoop, + required int endLoop, + }) => $allocator() + ..ref.playMode = playMode + ..ref.beginLoop = beginLoop + ..ref.endLoop = endLoop; +} + +final class ALMXGlyphEntry extends ffi.Struct { + @SInt16() + external int GlyphIndexOffset; + + @SInt16() + external int HorizontalAdvance; + + @SInt16() + external int XOffsetToHOrigin; + + @SInt16() + external int VerticalAdvance; + + @SInt16() + external int YOffsetToVOrigin; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int GlyphIndexOffset, + required int HorizontalAdvance, + required int XOffsetToHOrigin, + required int VerticalAdvance, + required int YOffsetToVOrigin, + }) => $allocator() + ..ref.GlyphIndexOffset = GlyphIndexOffset + ..ref.HorizontalAdvance = HorizontalAdvance + ..ref.XOffsetToHOrigin = XOffsetToHOrigin + ..ref.VerticalAdvance = VerticalAdvance + ..ref.YOffsetToVOrigin = YOffsetToVOrigin; +} + +@ffi.Packed(2) +final class ALMXHeader extends ffi.Struct { + @Fixed() + external int Version; + + @UInt16() + external int Flags; + + @UInt16() + external int NMasters; + + @UInt16() + external int FirstGlyph; + + @UInt16() + external int LastGlyph; + + external SFNTLookupTable lookup; +} + +const int ASDBadForkErr = -2123; + +const int ASDBadHeaderErr = -2122; + +const int ASDEntryNotFoundErr = -2124; + +typedef ATSCubicClosePathProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function(ffi.Pointer callBackDataPtr) + > + >; +typedef ATSCubicClosePathUPP = ATSCubicClosePathProcPtr; +typedef ATSCubicCurveToProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer pt3, + ffi.Pointer callBackDataPtr, + ) + > + >; +typedef ATSCubicCurveToUPP = ATSCubicCurveToProcPtr; +typedef ATSCubicLineToProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ) + > + >; +typedef ATSCubicLineToUPP = ATSCubicLineToProcPtr; +typedef ATSCubicMoveToProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ) + > + >; +typedef ATSCubicMoveToUPP = ATSCubicMoveToProcPtr; +typedef ATSCurveType = UInt16; + +@ffi.Packed(2) +final class ATSFlatDataFontNameDataHeader extends ffi.Struct { + @ATSFlatDataFontSpeciferType() + external int nameSpecifierType; + + @UInt32() + external int nameSpecifierSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nameSpecifierType, + required int nameSpecifierSize, + }) => $allocator() + ..ref.nameSpecifierType = nameSpecifierType + ..ref.nameSpecifierSize = nameSpecifierSize; +} + +@ffi.Packed(2) +final class ATSFlatDataFontSpecRawNameData extends ffi.Struct { + @FontNameCode() + external int fontNameType; + + @FontPlatformCode() + external int fontNamePlatform; + + @FontScriptCode() + external int fontNameScript; + + @FontLanguageCode() + external int fontNameLanguage; + + @UInt32() + external int fontNameLength; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fontNameType, + required int fontNamePlatform, + required int fontNameScript, + required int fontNameLanguage, + required int fontNameLength, + }) => $allocator() + ..ref.fontNameType = fontNameType + ..ref.fontNamePlatform = fontNamePlatform + ..ref.fontNameScript = fontNameScript + ..ref.fontNameLanguage = fontNameLanguage + ..ref.fontNameLength = fontNameLength; +} + +@ffi.Packed(2) +final class ATSFlatDataFontSpecRawNameDataHeader extends ffi.Struct { + @UInt32() + external int numberOfFlattenedNames; + + @ffi.Array.multi([1]) + external ffi.Array nameDataArray; +} + +typedef ATSFlatDataFontSpeciferType = UInt32; + +@ffi.Packed(2) +final class ATSFlatDataLayoutControlsDataHeader extends ffi.Struct { + @UInt32() + external int numberOfLayoutControls; + + @ffi.Array.multi([1]) + external ffi.Array controlArray; +} + +@ffi.Packed(2) +final class ATSFlatDataLineInfoData extends ffi.Struct { + @UInt32() + external int lineLength; + + @UInt32() + external int numberOfLineControls; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lineLength, + required int numberOfLineControls, + }) => $allocator() + ..ref.lineLength = lineLength + ..ref.numberOfLineControls = numberOfLineControls; +} + +@ffi.Packed(2) +final class ATSFlatDataLineInfoHeader extends ffi.Struct { + @UInt32() + external int numberOfLines; + + @ffi.Array.multi([1]) + external ffi.Array lineInfoArray; +} + +@ffi.Packed(2) +final class ATSFlatDataMainHeaderBlock extends ffi.Struct { + @UInt32() + external int version; + + @UInt32() + external int sizeOfDataBlock; + + @UInt32() + external int offsetToTextLayouts; + + @UInt32() + external int offsetToStyleRuns; + + @UInt32() + external int offsetToStyleList; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int sizeOfDataBlock, + required int offsetToTextLayouts, + required int offsetToStyleRuns, + required int offsetToStyleList, + }) => $allocator() + ..ref.version = version + ..ref.sizeOfDataBlock = sizeOfDataBlock + ..ref.offsetToTextLayouts = offsetToTextLayouts + ..ref.offsetToStyleRuns = offsetToStyleRuns + ..ref.offsetToStyleList = offsetToStyleList; +} + +final class ATSFlatDataStyleListFeatureData extends ffi.Struct { + @ATSUFontFeatureType() + external int theFeatureType; + + @ATSUFontFeatureSelector() + external int theFeatureSelector; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int theFeatureType, + required int theFeatureSelector, + }) => $allocator() + ..ref.theFeatureType = theFeatureType + ..ref.theFeatureSelector = theFeatureSelector; +} + +@ffi.Packed(2) +final class ATSFlatDataStyleListHeader extends ffi.Struct { + @UInt32() + external int numberOfStyles; + + @ffi.Array.multi([1]) + external ffi.Array styleDataArray; +} + +@ffi.Packed(2) +final class ATSFlatDataStyleListStyleDataHeader extends ffi.Struct { + @UInt32() + external int sizeOfStyleInfo; + + @UInt32() + external int numberOfSetAttributes; + + @UInt32() + external int numberOfSetFeatures; + + @UInt32() + external int numberOfSetVariations; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sizeOfStyleInfo, + required int numberOfSetAttributes, + required int numberOfSetFeatures, + required int numberOfSetVariations, + }) => $allocator() + ..ref.sizeOfStyleInfo = sizeOfStyleInfo + ..ref.numberOfSetAttributes = numberOfSetAttributes + ..ref.numberOfSetFeatures = numberOfSetFeatures + ..ref.numberOfSetVariations = numberOfSetVariations; +} + +@ffi.Packed(2) +final class ATSFlatDataStyleListVariationData extends ffi.Struct { + @ATSUFontVariationAxis() + external int theVariationAxis; + + @ATSUFontVariationValue() + external int theVariationValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int theVariationAxis, + required int theVariationValue, + }) => $allocator() + ..ref.theVariationAxis = theVariationAxis + ..ref.theVariationValue = theVariationValue; +} + +@ffi.Packed(2) +final class ATSFlatDataStyleRunDataHeader extends ffi.Struct { + @UInt32() + external int numberOfStyleRuns; + + @ffi.Array.multi([1]) + external ffi.Array styleRunArray; +} + +@ffi.Packed(2) +final class ATSFlatDataTextLayoutDataHeader extends ffi.Struct { + @UInt32() + external int sizeOfLayoutData; + + @UInt32() + external int textLayoutLength; + + @UInt32() + external int offsetToLayoutControls; + + @UInt32() + external int offsetToLineInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sizeOfLayoutData, + required int textLayoutLength, + required int offsetToLayoutControls, + required int offsetToLineInfo, + }) => $allocator() + ..ref.sizeOfLayoutData = sizeOfLayoutData + ..ref.textLayoutLength = textLayoutLength + ..ref.offsetToLayoutControls = offsetToLayoutControls + ..ref.offsetToLineInfo = offsetToLineInfo; +} + +@ffi.Packed(2) +final class ATSFlatDataTextLayoutHeader extends ffi.Struct { + @UInt32() + external int numFlattenedTextLayouts; + + @ffi.Array.multi([1]) + external ffi.Array flattenedTextLayouts; +} + +typedef ATSFontApplierFunction = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function(ATSFontRef iFont, ffi.Pointer iRefCon) + > + >; +typedef ATSFontAutoActivationSetting = UInt32; +typedef ATSFontContainerRef = UInt32; +typedef ATSFontContext = UInt32; +typedef ATSFontFamilyApplierFunction = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ATSFontFamilyRef iFamily, + ffi.Pointer iRefCon, + ) + > + >; +typedef ATSFontFamilyIterator = ffi.Pointer; + +final class ATSFontFamilyIterator_ extends ffi.Opaque {} + +typedef ATSFontFamilyRef = UInt32; + +@ffi.Packed(2) +final class ATSFontFilter extends ffi.Struct { + @UInt32() + external int version; + + @ffi.UnsignedInt() + external int filterSelectorAsInt; + + ATSFontFilterSelector get filterSelector => + ATSFontFilterSelector.fromValue(filterSelectorAsInt); + set filterSelector(ATSFontFilterSelector value) => + filterSelectorAsInt = value.value; + + external UnnamedUnion$6 filter; +} + +enum ATSFontFilterSelector { + kATSFontFilterSelectorUnspecified(0), + kATSFontFilterSelectorGeneration(3), + kATSFontFilterSelectorFontFamily(7), + kATSFontFilterSelectorFontFamilyApplierFunction(8), + kATSFontFilterSelectorFontApplierFunction(9), + kATSFileReferenceFilterSelector(10); + + final int value; + const ATSFontFilterSelector(this.value); + + static ATSFontFilterSelector fromValue(int value) => switch (value) { + 0 => kATSFontFilterSelectorUnspecified, + 3 => kATSFontFilterSelectorGeneration, + 7 => kATSFontFilterSelectorFontFamily, + 8 => kATSFontFilterSelectorFontFamilyApplierFunction, + 9 => kATSFontFilterSelectorFontApplierFunction, + 10 => kATSFileReferenceFilterSelector, + _ => throw ArgumentError('Unknown value for ATSFontFilterSelector: $value'), + }; +} + +typedef ATSFontFormat = UInt32; +typedef ATSFontIterator = ffi.Pointer; + +final class ATSFontIterator_ extends ffi.Opaque {} + +@ffi.Packed(2) +final class ATSFontMetrics extends ffi.Struct { + @UInt32() + external int version; + + @CGFloat() + external double ascent; + + @CGFloat() + external double descent; + + @CGFloat() + external double leading; + + @CGFloat() + external double avgAdvanceWidth; + + @CGFloat() + external double maxAdvanceWidth; + + @CGFloat() + external double minLeftSideBearing; + + @CGFloat() + external double minRightSideBearing; + + @CGFloat() + external double stemWidth; + + @CGFloat() + external double stemHeight; + + @CGFloat() + external double capHeight; + + @CGFloat() + external double xHeight; + + @CGFloat() + external double italicAngle; + + @CGFloat() + external double underlinePosition; + + @CGFloat() + external double underlineThickness; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required double ascent, + required double descent, + required double leading, + required double avgAdvanceWidth, + required double maxAdvanceWidth, + required double minLeftSideBearing, + required double minRightSideBearing, + required double stemWidth, + required double stemHeight, + required double capHeight, + required double xHeight, + required double italicAngle, + required double underlinePosition, + required double underlineThickness, + }) => $allocator() + ..ref.version = version + ..ref.ascent = ascent + ..ref.descent = descent + ..ref.leading = leading + ..ref.avgAdvanceWidth = avgAdvanceWidth + ..ref.maxAdvanceWidth = maxAdvanceWidth + ..ref.minLeftSideBearing = minLeftSideBearing + ..ref.minRightSideBearing = minRightSideBearing + ..ref.stemWidth = stemWidth + ..ref.stemHeight = stemHeight + ..ref.capHeight = capHeight + ..ref.xHeight = xHeight + ..ref.italicAngle = italicAngle + ..ref.underlinePosition = underlinePosition + ..ref.underlineThickness = underlineThickness; +} + +typedef ATSFontNotificationInfoRef = ffi.Pointer; + +final class ATSFontNotificationInfoRef_ extends ffi.Opaque {} + +typedef ATSFontNotificationRef = ffi.Pointer; + +final class ATSFontNotificationRef_ extends ffi.Opaque {} + +enum ATSFontNotifyAction { + kATSFontNotifyActionFontsChanged(1), + kATSFontNotifyActionDirectoriesChanged(2); + + final int value; + const ATSFontNotifyAction(this.value); + + static ATSFontNotifyAction fromValue(int value) => switch (value) { + 1 => kATSFontNotifyActionFontsChanged, + 2 => kATSFontNotifyActionDirectoriesChanged, + _ => throw ArgumentError('Unknown value for ATSFontNotifyAction: $value'), + }; +} + +enum ATSFontNotifyOption { + kATSFontNotifyOptionDefault(0), + kATSFontNotifyOptionReceiveWhileSuspended(1); + + final int value; + const ATSFontNotifyOption(this.value); + + static ATSFontNotifyOption fromValue(int value) => switch (value) { + 0 => kATSFontNotifyOptionDefault, + 1 => kATSFontNotifyOptionReceiveWhileSuspended, + _ => throw ArgumentError('Unknown value for ATSFontNotifyOption: $value'), + }; +} + +typedef ATSFontQueryCallback = + ffi.Pointer< + ffi.NativeFunction< + CFPropertyListRef Function( + ffi.UnsignedInt msgid, + CFPropertyListRef data, + ffi.Pointer refCon, + ) + > + >; + +enum ATSFontQueryMessageID { + kATSQueryActivateFontMessage(1635021665); + + final int value; + const ATSFontQueryMessageID(this.value); + + static ATSFontQueryMessageID fromValue(int value) => switch (value) { + 1635021665 => kATSQueryActivateFontMessage, + _ => throw ArgumentError('Unknown value for ATSFontQueryMessageID: $value'), + }; +} + +@ffi.Packed(2) +final class ATSFontQuerySourceContext extends ffi.Struct { + @UInt32() + external int version; + + external ffi.Pointer refCon; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer refCon, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + }) => $allocator() + ..ref.version = version + ..ref.refCon = refCon + ..ref.retain = retain + ..ref.release = release; +} + +typedef ATSFontRef = UInt32; +typedef ATSFontSize = CGFloat; +typedef ATSGeneration = UInt32; + +@ffi.Packed(2) +final class ATSGlyphIdealMetrics extends ffi.Struct { + external ATSPoint advance; + + external ATSPoint sideBearing; + + external ATSPoint otherSideBearing; +} + +typedef ATSGlyphInfoFlags = UInt32; +typedef ATSGlyphRef = UInt16; + +@ffi.Packed(2) +final class ATSGlyphScreenMetrics extends ffi.Struct { + external ATSPoint deviceAdvance; + + external ATSPoint topLeft; + + @UInt32() + external int height; + + @UInt32() + external int width; + + external ATSPoint sideBearing; + + external ATSPoint otherSideBearing; +} + +@ffi.Packed(2) +final class ATSJustWidthDeltaEntryOverride extends ffi.Struct { + @Fixed() + external int beforeGrowLimit; + + @Fixed() + external int beforeShrinkLimit; + + @Fixed() + external int afterGrowLimit; + + @Fixed() + external int afterShrinkLimit; + + @JustificationFlags() + external int growFlags; + + @JustificationFlags() + external int shrinkFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int beforeGrowLimit, + required int beforeShrinkLimit, + required int afterGrowLimit, + required int afterShrinkLimit, + required int growFlags, + required int shrinkFlags, + }) => $allocator() + ..ref.beforeGrowLimit = beforeGrowLimit + ..ref.beforeShrinkLimit = beforeShrinkLimit + ..ref.afterGrowLimit = afterGrowLimit + ..ref.afterShrinkLimit = afterShrinkLimit + ..ref.growFlags = growFlags + ..ref.shrinkFlags = shrinkFlags; +} + +@ffi.Packed(2) +final class ATSLayoutRecord extends ffi.Struct { + @ATSGlyphRef() + external int glyphID; + + @ATSGlyphInfoFlags() + external int flags; + + @ByteCount() + external int originalOffset; + + @Fixed() + external int realPos; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int glyphID, + required int flags, + required int originalOffset, + required int realPos, + }) => $allocator() + ..ref.glyphID = glyphID + ..ref.flags = flags + ..ref.originalOffset = originalOffset + ..ref.realPos = realPos; +} + +typedef ATSLineLayoutOptions = UInt32; +typedef ATSNotificationCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ATSFontNotificationInfoRef info, + ffi.Pointer refCon, + ) + > + >; +typedef ATSOptionFlags = OptionBits; +typedef ATSPoint = objc.CGPoint; +typedef ATSQuadraticClosePathProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function(ffi.Pointer callBackDataPtr) + > + >; +typedef ATSQuadraticClosePathUPP = ATSQuadraticClosePathProcPtr; +typedef ATSQuadraticCurveProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer pt1, + ffi.Pointer controlPt, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ) + > + >; +typedef ATSQuadraticCurveUPP = ATSQuadraticCurveProcPtr; +typedef ATSQuadraticLineProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ) + > + >; +typedef ATSQuadraticLineUPP = ATSQuadraticLineProcPtr; +typedef ATSQuadraticNewPathProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function(ffi.Pointer callBackDataPtr) + > + >; +typedef ATSQuadraticNewPathUPP = ATSQuadraticNewPathProcPtr; +typedef ATSStyleRenderingOptions = UInt32; + +final class ATSTrapezoid extends ffi.Struct { + external FixedPoint upperLeft; + + external FixedPoint upperRight; + + external FixedPoint lowerRight; + + external FixedPoint lowerLeft; +} + +@ffi.Packed(2) +final class ATSUAttributeInfo extends ffi.Struct { + @ATSUAttributeTag() + external int fTag; + + @ByteCount() + external int fValueSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fTag, + required int fValueSize, + }) => $allocator() + ..ref.fTag = fTag + ..ref.fValueSize = fValueSize; +} + +typedef ATSUAttributeTag = UInt32; +typedef ATSUAttributeValuePtr = ffi.Pointer; +typedef ATSUBackgroundColor = ATSURGBAlphaColor; + +final class ATSUBackgroundData extends ffi.Union { + external ATSUBackgroundColor backgroundColor; + + external RedrawBackgroundUPP backgroundUPP; +} + +typedef ATSUBackgroundDataType = UInt32; + +@ffi.Packed(2) +final class ATSUCaret extends ffi.Struct { + @Fixed() + external int fX; + + @Fixed() + external int fY; + + @Fixed() + external int fDeltaX; + + @Fixed() + external int fDeltaY; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fX, + required int fY, + required int fDeltaX, + required int fDeltaY, + }) => $allocator() + ..ref.fX = fX + ..ref.fY = fY + ..ref.fDeltaX = fDeltaX + ..ref.fDeltaY = fDeltaY; +} + +typedef ATSUCursorMovementType = UInt16; + +@ffi.Packed(2) +final class ATSUCurvePath extends ffi.Struct { + @UInt32() + external int vectors; + + @ffi.Array.multi([1]) + external ffi.Array controlBits; + + @ffi.Array.multi([1]) + external ffi.Array vector; +} + +@ffi.Packed(2) +final class ATSUCurvePaths extends ffi.Struct { + @UInt32() + external int contours; + + @ffi.Array.multi([1]) + external ffi.Array contour; +} + +typedef ATSUDirectDataSelector = UInt32; +typedef ATSUFlattenStyleRunOptions = UInt32; +typedef ATSUFlattenedDataStreamFormat = UInt32; +typedef ATSUFontFallbackMethod = UInt16; +typedef ATSUFontFallbacks = ffi.Pointer; +typedef ATSUFontFeatureSelector = UInt16; +typedef ATSUFontFeatureType = UInt16; +typedef ATSUFontID = FMFont; +typedef ATSUFontVariationAxis = FourCharCode; +typedef ATSUFontVariationValue = Fixed; + +@ffi.Packed(2) +final class ATSUGlyphInfo extends ffi.Struct { + @GlyphID() + external int glyphID; + + @UInt16() + external int reserved; + + @UInt32() + external int layoutFlags; + + @UniCharArrayOffset() + external int charIndex; + + external ATSUStyle style; + + @Float32() + external double deltaY; + + @Float32() + external double idealX; + + @SInt16() + external int screenX; + + @SInt16() + external int caretX; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int glyphID, + required int reserved, + required int layoutFlags, + required int charIndex, + required ATSUStyle style, + required double deltaY, + required double idealX, + required int screenX, + required int caretX, + }) => $allocator() + ..ref.glyphID = glyphID + ..ref.reserved = reserved + ..ref.layoutFlags = layoutFlags + ..ref.charIndex = charIndex + ..ref.style = style + ..ref.deltaY = deltaY + ..ref.idealX = idealX + ..ref.screenX = screenX + ..ref.caretX = caretX; +} + +@ffi.Packed(2) +final class ATSUGlyphInfoArray extends ffi.Struct { + external ATSUTextLayout layout; + + @ItemCount() + external int numGlyphs; + + @ffi.Array.multi([1]) + external ffi.Array glyphs; +} + +final class ATSUGlyphSelector extends ffi.Struct { + @GlyphCollection() + external int collection; + + @GlyphID() + external int glyphID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int collection, + required int glyphID, + }) => $allocator() + ..ref.collection = collection + ..ref.glyphID = glyphID; +} + +typedef ATSUHighlightMethod = UInt32; +typedef ATSULayoutOperationCallbackStatus = UInt32; +typedef ATSULayoutOperationSelector = UInt32; +typedef ATSULineTruncation = UInt32; + +@ffi.Packed(2) +final class ATSURGBAlphaColor extends ffi.Struct { + @ffi.Float() + external double red; + + @ffi.Float() + external double green; + + @ffi.Float() + external double blue; + + @ffi.Float() + external double alpha; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double red, + required double green, + required double blue, + required double alpha, + }) => $allocator() + ..ref.red = red + ..ref.green = green + ..ref.blue = blue + ..ref.alpha = alpha; +} + +typedef ATSUStyle = ffi.Pointer; +typedef ATSUStyleComparison = UInt16; +typedef ATSUStyleLineCountType = UInt16; + +@ffi.Packed(2) +final class ATSUStyleRunInfo extends ffi.Struct { + @UInt32() + external int runLength; + + @UInt32() + external int styleObjectIndex; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int runLength, + required int styleObjectIndex, + }) => $allocator() + ..ref.runLength = runLength + ..ref.styleObjectIndex = styleObjectIndex; +} + +typedef ATSUStyleSettingRef = ffi.Pointer; + +@ffi.Packed(2) +final class ATSUTab extends ffi.Struct { + @ATSUTextMeasurement() + external int tabPosition; + + @ATSUTabType() + external int tabType; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tabPosition, + required int tabType, + }) => $allocator() + ..ref.tabPosition = tabPosition + ..ref.tabType = tabType; +} + +typedef ATSUTabType = UInt16; +typedef ATSUTextLayout = ffi.Pointer; +typedef ATSUTextMeasurement = Fixed; +typedef ATSUUnFlattenStyleRunOptions = UInt32; + +@ffi.Packed(2) +final class ATSUUnhighlightData extends ffi.Struct { + @ATSUBackgroundDataType() + external int dataType; + + external ATSUBackgroundData unhighlightData; +} + +typedef ATSUVerticalCharacterType = UInt16; + +final class AVAudio3DAngularOrientation extends ffi.Struct { + @ffi.Float() + external double yaw; + + @ffi.Float() + external double pitch; + + @ffi.Float() + external double roll; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double yaw, + required double pitch, + required double roll, + }) => $allocator() + ..ref.yaw = yaw + ..ref.pitch = pitch + ..ref.roll = roll; +} + +final class AVAudio3DPoint extends ffi.Struct { + @ffi.Float() + external double x; + + @ffi.Float() + external double y; + + @ffi.Float() + external double z; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double x, + required double y, + required double z, + }) => $allocator() + ..ref.x = x + ..ref.y = y + ..ref.z = z; +} + +typedef AVAudio3DVector = AVAudio3DPoint; + +final class AVAudio3DVectorOrientation extends ffi.Struct { + external AVAudio3DVector forward; + + external AVAudio3DVector up; +} + +typedef AVAudioChannelCount = ffi.Uint32; +typedef DartAVAudioChannelCount = int; + +enum AVAudioCommonFormat { + AVAudioOtherFormat(0), + AVAudioPCMFormatFloat32(1), + AVAudioPCMFormatFloat64(2), + AVAudioPCMFormatInt16(3), + AVAudioPCMFormatInt32(4); + + final int value; + const AVAudioCommonFormat(this.value); + + static AVAudioCommonFormat fromValue(int value) => switch (value) { + 0 => AVAudioOtherFormat, + 1 => AVAudioPCMFormatFloat32, + 2 => AVAudioPCMFormatFloat64, + 3 => AVAudioPCMFormatInt16, + 4 => AVAudioPCMFormatInt32, + _ => throw ArgumentError('Unknown value for AVAudioCommonFormat: $value'), + }; +} + +enum AVAudioContentSource { + AVAudioContentSource_Unspecified(-1), + AVAudioContentSource_Reserved(0), + AVAudioContentSource_AppleCapture_Traditional(1), + AVAudioContentSource_AppleCapture_Spatial(2), + AVAudioContentSource_AppleCapture_Spatial_Enhanced(3), + AVAudioContentSource_AppleMusic_Traditional(4), + AVAudioContentSource_AppleMusic_Spatial(5), + AVAudioContentSource_AppleAV_Traditional_Offline(6), + AVAudioContentSource_AppleAV_Spatial_Offline(7), + AVAudioContentSource_AppleAV_Traditional_Live(8), + AVAudioContentSource_AppleAV_Spatial_Live(9), + AVAudioContentSource_ApplePassthrough(10), + AVAudioContentSource_Capture_Traditional(33), + AVAudioContentSource_Capture_Spatial(34), + AVAudioContentSource_Capture_Spatial_Enhanced(35), + AVAudioContentSource_Music_Traditional(36), + AVAudioContentSource_Music_Spatial(37), + AVAudioContentSource_AV_Traditional_Offline(38), + AVAudioContentSource_AV_Spatial_Offline(39), + AVAudioContentSource_AV_Traditional_Live(40), + AVAudioContentSource_AV_Spatial_Live(41), + AVAudioContentSource_Passthrough(42); + + final int value; + const AVAudioContentSource(this.value); + + static AVAudioContentSource fromValue(int value) => switch (value) { + -1 => AVAudioContentSource_Unspecified, + 0 => AVAudioContentSource_Reserved, + 1 => AVAudioContentSource_AppleCapture_Traditional, + 2 => AVAudioContentSource_AppleCapture_Spatial, + 3 => AVAudioContentSource_AppleCapture_Spatial_Enhanced, + 4 => AVAudioContentSource_AppleMusic_Traditional, + 5 => AVAudioContentSource_AppleMusic_Spatial, + 6 => AVAudioContentSource_AppleAV_Traditional_Offline, + 7 => AVAudioContentSource_AppleAV_Spatial_Offline, + 8 => AVAudioContentSource_AppleAV_Traditional_Live, + 9 => AVAudioContentSource_AppleAV_Spatial_Live, + 10 => AVAudioContentSource_ApplePassthrough, + 33 => AVAudioContentSource_Capture_Traditional, + 34 => AVAudioContentSource_Capture_Spatial, + 35 => AVAudioContentSource_Capture_Spatial_Enhanced, + 36 => AVAudioContentSource_Music_Traditional, + 37 => AVAudioContentSource_Music_Spatial, + 38 => AVAudioContentSource_AV_Traditional_Offline, + 39 => AVAudioContentSource_AV_Spatial_Offline, + 40 => AVAudioContentSource_AV_Traditional_Live, + 41 => AVAudioContentSource_AV_Spatial_Live, + 42 => AVAudioContentSource_Passthrough, + _ => throw ArgumentError('Unknown value for AVAudioContentSource: $value'), + }; +} + +enum AVAudioDynamicRangeControlConfiguration { + AVAudioDynamicRangeControlConfiguration_None(0), + AVAudioDynamicRangeControlConfiguration_Music(1), + AVAudioDynamicRangeControlConfiguration_Speech(2), + AVAudioDynamicRangeControlConfiguration_Movie(3), + AVAudioDynamicRangeControlConfiguration_Capture(4); + + final int value; + const AVAudioDynamicRangeControlConfiguration(this.value); + + static AVAudioDynamicRangeControlConfiguration fromValue(int value) => + switch (value) { + 0 => AVAudioDynamicRangeControlConfiguration_None, + 1 => AVAudioDynamicRangeControlConfiguration_Music, + 2 => AVAudioDynamicRangeControlConfiguration_Speech, + 3 => AVAudioDynamicRangeControlConfiguration_Movie, + 4 => AVAudioDynamicRangeControlConfiguration_Capture, + _ => throw ArgumentError( + 'Unknown value for AVAudioDynamicRangeControlConfiguration: $value', + ), + }; +} + +/// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include +/// AVAudioFormat in your config's objc-interfaces list. +/// +/// AVAudioFormat +extension type AVAudioFormat._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [AVAudioFormat] that points to the same underlying object as [other]. + AVAudioFormat.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioFormat', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } + + /// Constructs a [AVAudioFormat] that wraps the given raw object pointer. + AVAudioFormat.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioFormat', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } +} + +typedef AVAudioFrameCount = ffi.Uint32; +typedef DartAVAudioFrameCount = int; +typedef AVAudioFramePosition = ffi.Int64; +typedef DartAVAudioFramePosition = int; +typedef AVAudioInteger = ffi.Long; +typedef DartAVAudioInteger = int; +typedef AVAudioNodeBus = NSUInteger; +typedef AVAudioNodeCompletionHandler = ffi.Pointer; +typedef DartAVAudioNodeCompletionHandler = objc.ObjCBlock; +typedef AVAudioPacketCount = ffi.Uint32; +typedef DartAVAudioPacketCount = int; + +/// AVAudioPlayer +extension type AVAudioPlayer._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioPlayer] that points to the same underlying object as [other]. + AVAudioPlayer.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioPlayer', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + assert(isA(object$)); + } + + /// Constructs a [AVAudioPlayer] that wraps the given raw object pointer. + AVAudioPlayer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioPlayer', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [AVAudioPlayer]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_AVAudioPlayer, + ); + + /// alloc + static AVAudioPlayer alloc() { + final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_alloc); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// allocWithZone: + static AVAudioPlayer allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_AVAudioPlayer, + _sel_allocWithZone_, + zone, + ); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// new + static AVAudioPlayer new$() { + final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_new); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// Returns a new instance of AVAudioPlayer constructed with the default `new` method. + AVAudioPlayer() : this.as(new$().object$); +} + +extension AVAudioPlayer$Methods on AVAudioPlayer { + /// averagePowerForChannel: + double averagePowerForChannel(DartNSUInteger channelNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.averagePowerForChannel:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_65s5ywFpret( + _$$ref.pointer, + _sel_averagePowerForChannel_, + channelNumber, + ) + : _objc_msgSend_65s5yw( + _$$ref.pointer, + _sel_averagePowerForChannel_, + channelNumber, + ); + } + + /// channelAssignments + objc.NSArray? get channelAssignments { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.channelAssignments', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_channelAssignments); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// currentDevice + objc.NSString? get currentDevice { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.currentDevice', + iOS: (true, null), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// currentTime + DartNSTimeInterval get currentTime { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.currentTime', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); + } + + /// data + objc.NSData? get data { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.data', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// delegate + AVAudioPlayerDelegate? get delegate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.delegate', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); + return $ret.address == 0 + ? null + : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); + } + + /// deviceCurrentTime + DartNSTimeInterval get deviceCurrentTime { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.deviceCurrentTime', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); + } + + /// duration + DartNSTimeInterval get duration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.duration', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); + } + + /// enableRate + bool get enableRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.enableRate', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); + } + + /// format + AVAudioFormat get format { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.format', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); + return AVAudioFormat.fromPointer($ret, retain: true, release: true); + } + + /// init + AVAudioPlayer init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL:error: + AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithContentsOfURL:error:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithContentsOfURL:fileTypeHint:error: + AVAudioPlayer? initWithContentsOfURL$1( + objc.NSURL url, { + objc.NSString? fileTypeHint, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = fileTypeHint?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithContentsOfURL:fileTypeHint:error:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_fileTypeHint_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithData:error: + AVAudioPlayer? initWithData(objc.NSData data) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithData:error:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithData_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithData:fileTypeHint:error: + AVAudioPlayer? initWithData$1( + objc.NSData data, { + objc.NSString? fileTypeHint, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + final _$$ref$2 = fileTypeHint?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithData:fileTypeHint:error:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.retainAndReturnPointer(), + _sel_initWithData_fileTypeHint_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// intendedSpatialExperience + CASpatialAudioExperience get intendedSpatialExperience { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.intendedSpatialExperience', + iOS: (true, null), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_intendedSpatialExperience, + ); + return CASpatialAudioExperience.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// isMeteringEnabled + bool get isMeteringEnabled { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.isMeteringEnabled', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); + } + + /// isPlaying + bool get isPlaying { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.isPlaying', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); + } + + /// numberOfChannels + DartNSUInteger get numberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.numberOfChannels', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfChannels); + } + + /// numberOfLoops + DartNSInteger get numberOfLoops { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.numberOfLoops', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); + } + + /// pan + double get pan { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.pan', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); + } + + /// pause + void pause$1() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.pause', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); + } + + /// peakPowerForChannel: + double peakPowerForChannel(DartNSUInteger channelNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.peakPowerForChannel:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_65s5ywFpret( + _$$ref.pointer, + _sel_peakPowerForChannel_, + channelNumber, + ) + : _objc_msgSend_65s5yw( + _$$ref.pointer, + _sel_peakPowerForChannel_, + channelNumber, + ); + } + + /// play + bool play() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.play', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); + } + + /// playAtTime: + bool playAtTime(DartNSTimeInterval time$1) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.playAtTime:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time$1); + } + + /// prepareToPlay + bool prepareToPlay() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.prepareToPlay', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); + } + + /// rate + double get rate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.rate', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); + } + + /// setChannelAssignments: + set channelAssignments(objc.NSArray? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setChannelAssignments:', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setChannelAssignments_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setCurrentDevice: + set currentDevice(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setCurrentDevice:', + iOS: (true, null), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setCurrentDevice_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setCurrentTime: + set currentTime(DartNSTimeInterval value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setCurrentTime:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); + } + + /// setDelegate: + set delegate(AVAudioPlayerDelegate? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setDelegate:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setDelegate_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setEnableRate: + set enableRate(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setEnableRate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); + } + + /// setIntendedSpatialExperience: + set intendedSpatialExperience(CASpatialAudioExperience value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setIntendedSpatialExperience:', + iOS: (true, null), + macOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setIntendedSpatialExperience_, + _$$ref$1.pointer, + ); + } + + /// setMeteringEnabled: + set isMeteringEnabled(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setMeteringEnabled:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setMeteringEnabled_, value); + } + + /// setNumberOfLoops: + set numberOfLoops(DartNSInteger value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setNumberOfLoops:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); + } + + /// setPan: + set pan(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setPan:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); + } + + /// setRate: + set rate(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setRate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); + } + + /// setVolume: + set volume(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setVolume:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); + } + + /// setVolume:fadeDuration: + void setVolume(double volume, {required DartNSTimeInterval fadeDuration}) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setVolume:fadeDuration:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + _objc_msgSend_1p4uk9e( + _$$ref.pointer, + _sel_setVolume_fadeDuration_, + volume, + fadeDuration, + ); + } + + /// settings + objc.NSDictionary get settings { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.settings', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_settings); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// stop + void stop() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.stop', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); + } + + /// updateMeters + void updateMeters() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.updateMeters', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); + } + + /// url + objc.NSURL? get url { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.url', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// volume + double get volume { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.volume', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); + } +} + +/// AVAudioPlayerDelegate +extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [AVAudioPlayerDelegate] that points to the same underlying object as [other]. + AVAudioPlayerDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [AVAudioPlayerDelegate] that wraps the given raw object pointer. + AVAudioPlayerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [AVAudioPlayerDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_AVAudioPlayerDelegate, + ); + } +} + +extension AVAudioPlayerDelegate$Methods on AVAudioPlayerDelegate { + /// audioPlayerDecodeErrorDidOccur:error: + void audioPlayerDecodeErrorDidOccur( + AVAudioPlayer player, { + objc.NSError? error, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = player.ref; + final _$$ref$2 = error?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_audioPlayerDecodeErrorDidOccur_error_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioPlayerDelegate', + 'audioPlayerDecodeErrorDidOccur:error:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_audioPlayerDecodeErrorDidOccur_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// audioPlayerDidFinishPlaying:successfully: + void audioPlayerDidFinishPlaying( + AVAudioPlayer player, { + required bool successfully, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = player.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_audioPlayerDidFinishPlaying_successfully_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioPlayerDelegate', + 'audioPlayerDidFinishPlaying:successfully:', + ); + } + _objc_msgSend_6p7ndb( + _$$ref.pointer, + _sel_audioPlayerDidFinishPlaying_successfully_, + _$$ref$1.pointer, + successfully, + ); + } +} + +interface class AVAudioPlayerDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_AVAudioPlayerDelegate.cast()); + + /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioPlayerDelegate implement({ + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioPlayerDelegate', + ); + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implement(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implement(builder, audioPlayerDidFinishPlaying_successfully_); + builder.addProtocol($protocol); + return AVAudioPlayerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implement(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implement(builder, audioPlayerDidFinishPlaying_successfully_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioPlayerDelegate implementAsListener({ + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioPlayerDelegate', + ); + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implementAsListener(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implementAsListener( + builder, + audioPlayerDidFinishPlaying_successfully_, + ); + builder.addProtocol($protocol); + return AVAudioPlayerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implementAsListener(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implementAsListener( + builder, + audioPlayerDidFinishPlaying_successfully_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioPlayerDelegate implementAsBlocking({ + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioPlayerDelegate', + ); + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implementAsBlocking(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implementAsBlocking( + builder, + audioPlayerDidFinishPlaying_successfully_, + ); + builder.addProtocol($protocol); + return AVAudioPlayerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(AVAudioPlayer, objc.NSError?)? + audioPlayerDecodeErrorDidOccur_error_, + void Function(AVAudioPlayer, bool)? + audioPlayerDidFinishPlaying_successfully_, + bool $keepIsolateAlive = true, + }) { + AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ + .implementAsBlocking(builder, audioPlayerDecodeErrorDidOccur_error_); + AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ + .implementAsBlocking( + builder, + audioPlayerDidFinishPlaying_successfully_, + ); + builder.addProtocol($protocol); + } + + /// audioPlayerDecodeErrorDidOccur:error: + static final audioPlayerDecodeErrorDidOccur_error_ = + objc.ObjCProtocolListenableMethod< + void Function(AVAudioPlayer, objc.NSError?) + >( + _protocol_AVAudioPlayerDelegate, + _sel_audioPlayerDecodeErrorDidOccur_error_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioPlayerDelegate, + _sel_audioPlayerDecodeErrorDidOccur_error_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(AVAudioPlayer, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.fromFunction( + ( + ffi.Pointer _, + AVAudioPlayer arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(AVAudioPlayer, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.listener( + ( + ffi.Pointer _, + AVAudioPlayer arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(AVAudioPlayer, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.blocking( + ( + ffi.Pointer _, + AVAudioPlayer arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// audioPlayerDidFinishPlaying:successfully: + static final audioPlayerDidFinishPlaying_successfully_ = + objc.ObjCProtocolListenableMethod( + _protocol_AVAudioPlayerDelegate, + _sel_audioPlayerDidFinishPlaying_successfully_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_zzthnb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioPlayerDelegate, + _sel_audioPlayerDidFinishPlaying_successfully_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(AVAudioPlayer, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.fromFunction( + (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => + func(arg1, arg2), + ), + (void Function(AVAudioPlayer, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.listener( + (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => + func(arg1, arg2), + ), + (void Function(AVAudioPlayer, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.blocking( + (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => + func(arg1, arg2), + ), + ); +} + +enum AVAudioQuality { + AVAudioQualityMin(0), + AVAudioQualityLow(32), + AVAudioQualityMedium(64), + AVAudioQualityHigh(96), + AVAudioQualityMax(127); + + final int value; + const AVAudioQuality(this.value); + + static AVAudioQuality fromValue(int value) => switch (value) { + 0 => AVAudioQualityMin, + 32 => AVAudioQualityLow, + 64 => AVAudioQualityMedium, + 96 => AVAudioQualityHigh, + 127 => AVAudioQualityMax, + _ => throw ArgumentError('Unknown value for AVAudioQuality: $value'), + }; +} + +/// WARNING: AVAudioSession is a stub. To generate bindings for this class, include +/// AVAudioSession in your config's objc-interfaces list. +/// +/// AVAudioSession +extension type AVAudioSession._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioSession] that points to the same underlying object as [other]. + AVAudioSession.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioSession', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + } + + /// Constructs a [AVAudioSession] that wraps the given raw object pointer. + AVAudioSession.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioSession', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + } +} + +sealed class AVAudioSessionActivationOptions { + static const AVAudioSessionActivationOptionNone = 0; +} + +typedef AVAudioSessionCategory = ffi.Pointer; +typedef DartAVAudioSessionCategory = objc.NSString; + +sealed class AVAudioSessionCategoryOptions { + static const AVAudioSessionCategoryOptionMixWithOthers = 1; + static const AVAudioSessionCategoryOptionDuckOthers = 2; + static const AVAudioSessionCategoryOptionAllowBluetooth = 4; + static const AVAudioSessionCategoryOptionAllowBluetoothHFP = 4; + static const AVAudioSessionCategoryOptionDefaultToSpeaker = 8; + static const AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers = + 17; + static const AVAudioSessionCategoryOptionAllowBluetoothA2DP = 32; + static const AVAudioSessionCategoryOptionAllowAirPlay = 64; + static const AVAudioSessionCategoryOptionOverrideMutedMicrophoneInterruption = + 128; + static const AVAudioSessionCategoryOptionBluetoothHighQualityRecording = + 524288; +} + +/// WARNING: AVAudioSessionDataSourceDescription is a stub. To generate bindings for this class, include +/// AVAudioSessionDataSourceDescription in your config's objc-interfaces list. +/// +/// AVAudioSessionDataSourceDescription +extension type AVAudioSessionDataSourceDescription._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioSessionDataSourceDescription] that points to the same underlying object as [other]. + AVAudioSessionDataSourceDescription.as(objc.ObjCObject other) + : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioSessionDataSourceDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } + + /// Constructs a [AVAudioSessionDataSourceDescription] that wraps the given raw object pointer. + AVAudioSessionDataSourceDescription.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioSessionDataSourceDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } +} + +/// AVAudioSessionDelegate +@Deprecated('No longer supported') +extension type AVAudioSessionDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [AVAudioSessionDelegate] that points to the same underlying object as [other]. + AVAudioSessionDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [AVAudioSessionDelegate] that wraps the given raw object pointer. + AVAudioSessionDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [AVAudioSessionDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_AVAudioSessionDelegate, + ); + } +} + +extension AVAudioSessionDelegate$Methods on AVAudioSessionDelegate { + /// beginInterruption + @Deprecated('No longer supported') + void beginInterruption() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSessionDelegate.beginInterruption', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_beginInterruption)) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioSessionDelegate', + 'beginInterruption', + ); + } + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_beginInterruption); + } + + /// endInterruption + @Deprecated('No longer supported') + void endInterruption() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSessionDelegate.endInterruption', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_endInterruption)) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioSessionDelegate', + 'endInterruption', + ); + } + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endInterruption); + } + + /// endInterruptionWithFlags: + void endInterruptionWithFlags(DartNSUInteger flags) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSessionDelegate.endInterruptionWithFlags:', + iOS: (false, (4, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_endInterruptionWithFlags_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioSessionDelegate', + 'endInterruptionWithFlags:', + ); + } + _objc_msgSend_1i9r4xy( + _$$ref.pointer, + _sel_endInterruptionWithFlags_, + flags, + ); + } + + /// inputIsAvailableChanged: + @Deprecated('No longer supported') + void inputIsAvailableChanged(bool isInputAvailable) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSessionDelegate.inputIsAvailableChanged:', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_inputIsAvailableChanged_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'AVAudioSessionDelegate', + 'inputIsAvailableChanged:', + ); + } + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_inputIsAvailableChanged_, + isInputAvailable, + ); + } +} + +interface class AVAudioSessionDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_AVAudioSessionDelegate.cast()); + + /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioSessionDelegate implement({ + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioSessionDelegate', + ); + AVAudioSessionDelegate$Builder.beginInterruption.implement( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implement( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_.implement( + builder, + endInterruptionWithFlags_, + ); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implement( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + return AVAudioSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + AVAudioSessionDelegate$Builder.beginInterruption.implement( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implement( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_.implement( + builder, + endInterruptionWithFlags_, + ); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implement( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioSessionDelegate implementAsListener({ + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioSessionDelegate', + ); + AVAudioSessionDelegate$Builder.beginInterruption.implementAsListener( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implementAsListener( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ + .implementAsListener(builder, endInterruptionWithFlags_); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsListener( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + return AVAudioSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + AVAudioSessionDelegate$Builder.beginInterruption.implementAsListener( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implementAsListener( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ + .implementAsListener(builder, endInterruptionWithFlags_); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsListener( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static AVAudioSessionDelegate implementAsBlocking({ + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'AVAudioSessionDelegate', + ); + AVAudioSessionDelegate$Builder.beginInterruption.implementAsBlocking( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implementAsBlocking( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ + .implementAsBlocking(builder, endInterruptionWithFlags_); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsBlocking( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + return AVAudioSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function()? beginInterruption, + void Function()? endInterruption, + void Function(DartNSUInteger)? endInterruptionWithFlags_, + void Function(bool)? inputIsAvailableChanged_, + bool $keepIsolateAlive = true, + }) { + AVAudioSessionDelegate$Builder.beginInterruption.implementAsBlocking( + builder, + beginInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruption.implementAsBlocking( + builder, + endInterruption, + ); + AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ + .implementAsBlocking(builder, endInterruptionWithFlags_); + AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsBlocking( + builder, + inputIsAvailableChanged_, + ); + builder.addProtocol($protocol); + } + + /// beginInterruption + static final beginInterruption = + objc.ObjCProtocolListenableMethod( + _protocol_AVAudioSessionDelegate, + _sel_beginInterruption, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioSessionDelegate, + _sel_beginInterruption, + isRequired: false, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// endInterruption + static final endInterruption = + objc.ObjCProtocolListenableMethod( + _protocol_AVAudioSessionDelegate, + _sel_endInterruption, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioSessionDelegate, + _sel_endInterruption, + isRequired: false, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// endInterruptionWithFlags: + static final endInterruptionWithFlags_ = + objc.ObjCProtocolListenableMethod( + _protocol_AVAudioSessionDelegate, + _sel_endInterruptionWithFlags_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >(_1uu024u_protocolTrampoline_zuf90e) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioSessionDelegate, + _sel_endInterruptionWithFlags_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUInteger.fromFunction( + (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), + ), + (void Function(DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUInteger.listener( + (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), + ), + (void Function(DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUInteger.blocking( + (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), + ), + ); + + /// inputIsAvailableChanged: + static final inputIsAvailableChanged_ = + objc.ObjCProtocolListenableMethod( + _protocol_AVAudioSessionDelegate, + _sel_inputIsAvailableChanged_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_10lndml) + .cast(), + objc.getProtocolMethodSignature( + _protocol_AVAudioSessionDelegate, + _sel_inputIsAvailableChanged_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(bool) func) => + ObjCBlock_ffiVoid_ffiVoid_bool.fromFunction( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.listener( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.blocking( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + ); +} + +/// AVAudioSessionDeprecated +extension AVAudioSessionDeprecated on AVAudioSession { + /// currentHardwareInputNumberOfChannels + @Deprecated('Deprecated') + DartNSInteger get currentHardwareInputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.currentHardwareInputNumberOfChannels', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_currentHardwareInputNumberOfChannels, + ); + } + + /// currentHardwareOutputNumberOfChannels + @Deprecated('Deprecated') + DartNSInteger get currentHardwareOutputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.currentHardwareOutputNumberOfChannels', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_currentHardwareOutputNumberOfChannels, + ); + } + + /// currentHardwareSampleRate + @Deprecated('Deprecated') + double get currentHardwareSampleRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.currentHardwareSampleRate', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + _$$ref.pointer, + _sel_currentHardwareSampleRate, + ) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentHardwareSampleRate); + } + + /// delegate + @Deprecated('No longer supported') + AVAudioSessionDelegate? get delegate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.delegate', + iOS: (false, (4, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); + return $ret.address == 0 + ? null + : AVAudioSessionDelegate.fromPointer($ret, retain: true, release: true); + } + + /// inputIsAvailable + @Deprecated('Deprecated') + bool get inputIsAvailable { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputIsAvailable', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_inputIsAvailable); + } + + /// preferredHardwareSampleRate + @Deprecated('Deprecated') + double get preferredHardwareSampleRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredHardwareSampleRate', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + _$$ref.pointer, + _sel_preferredHardwareSampleRate, + ) + : _objc_msgSend_1ukqyt8( + _$$ref.pointer, + _sel_preferredHardwareSampleRate, + ); + } + + /// setActive:withFlags:error: + @Deprecated('Deprecated') + bool setActive(bool active, {required DartNSInteger withFlags}) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setActive:withFlags:error:', + iOS: (false, (4, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_tpnpd0( + _$$ref.pointer, + _sel_setActive_withFlags_error_, + active, + withFlags, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setDelegate: + @Deprecated('No longer supported') + set delegate(AVAudioSessionDelegate? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setDelegate:', + iOS: (false, (4, 0, 0)), + macOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setDelegate_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setPreferredHardwareSampleRate:error: + @Deprecated('Deprecated') + bool setPreferredHardwareSampleRate(double sampleRate) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredHardwareSampleRate:error:', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_xhvge5( + _$$ref.pointer, + _sel_setPreferredHardwareSampleRate_error_, + sampleRate, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +enum AVAudioSessionErrorCode { + AVAudioSessionErrorCodeNone(0), + AVAudioSessionErrorCodeMediaServicesFailed(1836282486), + AVAudioSessionErrorCodeIsBusy(560030580), + AVAudioSessionErrorCodeIncompatibleCategory(560161140), + AVAudioSessionErrorCodeCannotInterruptOthers(560557684), + AVAudioSessionErrorCodeMissingEntitlement(1701737535), + AVAudioSessionErrorCodeSiriIsRecording(1936290409), + AVAudioSessionErrorCodeCannotStartPlaying(561015905), + AVAudioSessionErrorCodeCannotStartRecording(561145187), + AVAudioSessionErrorCodeBadParam(-50), + AVAudioSessionErrorCodeInsufficientPriority(561017449), + AVAudioSessionErrorCodeResourceNotAvailable(561145203), + AVAudioSessionErrorCodeUnspecified(2003329396), + AVAudioSessionErrorCodeExpiredSession(561210739), + AVAudioSessionErrorCodeSessionNotActive(1768841571); + + final int value; + const AVAudioSessionErrorCode(this.value); + + static AVAudioSessionErrorCode fromValue(int value) => switch (value) { + 0 => AVAudioSessionErrorCodeNone, + 1836282486 => AVAudioSessionErrorCodeMediaServicesFailed, + 560030580 => AVAudioSessionErrorCodeIsBusy, + 560161140 => AVAudioSessionErrorCodeIncompatibleCategory, + 560557684 => AVAudioSessionErrorCodeCannotInterruptOthers, + 1701737535 => AVAudioSessionErrorCodeMissingEntitlement, + 1936290409 => AVAudioSessionErrorCodeSiriIsRecording, + 561015905 => AVAudioSessionErrorCodeCannotStartPlaying, + 561145187 => AVAudioSessionErrorCodeCannotStartRecording, + -50 => AVAudioSessionErrorCodeBadParam, + 561017449 => AVAudioSessionErrorCodeInsufficientPriority, + 561145203 => AVAudioSessionErrorCodeResourceNotAvailable, + 2003329396 => AVAudioSessionErrorCodeUnspecified, + 561210739 => AVAudioSessionErrorCodeExpiredSession, + 1768841571 => AVAudioSessionErrorCodeSessionNotActive, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionErrorCode: $value', + ), + }; +} + +@Deprecated('Deprecated') +const int AVAudioSessionErrorInsufficientPriority = 561017449; + +/// AVAudioSessionHardwareConfiguration +extension AVAudioSessionHardwareConfiguration on AVAudioSession { + /// IOBufferDuration + DartNSTimeInterval get IOBufferDuration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.IOBufferDuration', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_IOBufferDuration) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_IOBufferDuration); + } + + /// inputDataSource + AVAudioSessionDataSourceDescription? get inputDataSource { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputDataSource', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_inputDataSource); + return $ret.address == 0 + ? null + : AVAudioSessionDataSourceDescription.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// inputDataSources + objc.NSArray? get inputDataSources { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputDataSources', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_inputDataSources); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// inputGain + double get inputGain { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputGain', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_inputGain) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_inputGain); + } + + /// inputLatency + DartNSTimeInterval get inputLatency { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputLatency', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_inputLatency) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_inputLatency); + } + + /// inputNumberOfChannels + DartNSInteger get inputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputNumberOfChannels', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_inputNumberOfChannels); + } + + /// inputOrientation + AVAudioStereoOrientation get inputOrientation { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.inputOrientation', + iOS: (false, (14, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_1n4ndiq(_$$ref.pointer, _sel_inputOrientation); + return AVAudioStereoOrientation.fromValue($ret); + } + + /// isInputAvailable + bool get isInputAvailable { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.isInputAvailable', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isInputAvailable); + } + + /// isInputGainSettable + bool get isInputGainSettable { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.isInputGainSettable', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isInputGainSettable); + } + + /// maximumInputNumberOfChannels + DartNSInteger get maximumInputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.maximumInputNumberOfChannels', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_maximumInputNumberOfChannels, + ); + } + + /// maximumOutputNumberOfChannels + DartNSInteger get maximumOutputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.maximumOutputNumberOfChannels', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_maximumOutputNumberOfChannels, + ); + } + + /// outputDataSource + AVAudioSessionDataSourceDescription? get outputDataSource { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.outputDataSource', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_outputDataSource); + return $ret.address == 0 + ? null + : AVAudioSessionDataSourceDescription.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// outputDataSources + objc.NSArray? get outputDataSources { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.outputDataSources', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_outputDataSources); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// outputLatency + DartNSTimeInterval get outputLatency { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.outputLatency', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_outputLatency) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_outputLatency); + } + + /// outputNumberOfChannels + DartNSInteger get outputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.outputNumberOfChannels', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_outputNumberOfChannels); + } + + /// preferredIOBufferDuration + DartNSTimeInterval get preferredIOBufferDuration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredIOBufferDuration', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + _$$ref.pointer, + _sel_preferredIOBufferDuration, + ) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_preferredIOBufferDuration); + } + + /// preferredInputNumberOfChannels + DartNSInteger get preferredInputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredInputNumberOfChannels', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_preferredInputNumberOfChannels, + ); + } + + /// preferredInputOrientation + AVAudioStereoOrientation get preferredInputOrientation { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredInputOrientation', + iOS: (false, (14, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_1n4ndiq( + _$$ref.pointer, + _sel_preferredInputOrientation, + ); + return AVAudioStereoOrientation.fromValue($ret); + } + + /// preferredOutputNumberOfChannels + DartNSInteger get preferredOutputNumberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredOutputNumberOfChannels', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_1hz7y9r( + _$$ref.pointer, + _sel_preferredOutputNumberOfChannels, + ); + } + + /// preferredSampleRate + double get preferredSampleRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredSampleRate', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_preferredSampleRate) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_preferredSampleRate); + } + + /// sampleRate + double get sampleRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.sampleRate', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_sampleRate) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_sampleRate); + } + + /// setInputDataSource:error: + bool setInputDataSource(AVAudioSessionDataSourceDescription? dataSource) { + final _$$ref = object$.ref; + final _$$ref$1 = dataSource?.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setInputDataSource:error:', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_setInputDataSource_error_, + _$$ref$1?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setInputGain:error: + bool setInputGain(double gain) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setInputGain:error:', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1c1ssyi( + _$$ref.pointer, + _sel_setInputGain_error_, + gain, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setOutputDataSource:error: + bool setOutputDataSource(AVAudioSessionDataSourceDescription? dataSource) { + final _$$ref = object$.ref; + final _$$ref$1 = dataSource?.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setOutputDataSource:error:', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_setOutputDataSource_error_, + _$$ref$1?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPreferredIOBufferDuration:error: + bool setPreferredIOBufferDuration(DartNSTimeInterval duration) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredIOBufferDuration:error:', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_xhvge5( + _$$ref.pointer, + _sel_setPreferredIOBufferDuration_error_, + duration, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPreferredInputNumberOfChannels:error: + bool setPreferredInputNumberOfChannels(DartNSInteger count) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredInputNumberOfChannels:error:', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_165e55c( + _$$ref.pointer, + _sel_setPreferredInputNumberOfChannels_error_, + count, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPreferredInputOrientation:error: + bool setPreferredInputOrientation(AVAudioStereoOrientation orientation) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredInputOrientation:error:', + iOS: (false, (14, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1db3yj( + _$$ref.pointer, + _sel_setPreferredInputOrientation_error_, + orientation.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPreferredOutputNumberOfChannels:error: + bool setPreferredOutputNumberOfChannels(DartNSInteger count) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredOutputNumberOfChannels:error:', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_165e55c( + _$$ref.pointer, + _sel_setPreferredOutputNumberOfChannels_error_, + count, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPreferredSampleRate:error: + bool setPreferredSampleRate(double sampleRate) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredSampleRate:error:', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_xhvge5( + _$$ref.pointer, + _sel_setPreferredSampleRate_error_, + sampleRate, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// supportedOutputChannelLayouts + objc.NSArray get supportedOutputChannelLayouts { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.supportedOutputChannelLayouts', + iOS: (false, (17, 2, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_supportedOutputChannelLayouts, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +enum AVAudioSessionIOType { + AVAudioSessionIOTypeNotSpecified(0), + AVAudioSessionIOTypeAggregated(1); + + final int value; + const AVAudioSessionIOType(this.value); + + static AVAudioSessionIOType fromValue(int value) => switch (value) { + 0 => AVAudioSessionIOTypeNotSpecified, + 1 => AVAudioSessionIOTypeAggregated, + _ => throw ArgumentError('Unknown value for AVAudioSessionIOType: $value'), + }; +} + +@Deprecated('Deprecated') +const int AVAudioSessionInterruptionFlags_ShouldResume = 1; + +sealed class AVAudioSessionInterruptionOptions { + static const AVAudioSessionInterruptionOptionShouldResume = 1; +} + +enum AVAudioSessionInterruptionReason { + AVAudioSessionInterruptionReasonDefault(0), + AVAudioSessionInterruptionReasonAppWasSuspended(1), + AVAudioSessionInterruptionReasonBuiltInMicMuted(2), + AVAudioSessionInterruptionReasonRouteDisconnected(4); + + final int value; + const AVAudioSessionInterruptionReason(this.value); + + static AVAudioSessionInterruptionReason fromValue(int value) => + switch (value) { + 0 => AVAudioSessionInterruptionReasonDefault, + 1 => AVAudioSessionInterruptionReasonAppWasSuspended, + 2 => AVAudioSessionInterruptionReasonBuiltInMicMuted, + 4 => AVAudioSessionInterruptionReasonRouteDisconnected, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionInterruptionReason: $value', + ), + }; +} + +enum AVAudioSessionInterruptionType { + AVAudioSessionInterruptionTypeBegan(1), + AVAudioSessionInterruptionTypeEnded(0); + + final int value; + const AVAudioSessionInterruptionType(this.value); + + static AVAudioSessionInterruptionType fromValue(int value) => switch (value) { + 1 => AVAudioSessionInterruptionTypeBegan, + 0 => AVAudioSessionInterruptionTypeEnded, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionInterruptionType: $value', + ), + }; +} + +typedef AVAudioSessionLocation = ffi.Pointer; +typedef DartAVAudioSessionLocation = objc.NSString; + +enum AVAudioSessionMicrophoneInjectionMode { + AVAudioSessionMicrophoneInjectionModeNone(0), + AVAudioSessionMicrophoneInjectionModeSpokenAudio(1); + + final int value; + const AVAudioSessionMicrophoneInjectionMode(this.value); + + static AVAudioSessionMicrophoneInjectionMode fromValue(int value) => + switch (value) { + 0 => AVAudioSessionMicrophoneInjectionModeNone, + 1 => AVAudioSessionMicrophoneInjectionModeSpokenAudio, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionMicrophoneInjectionMode: $value', + ), + }; +} + +typedef AVAudioSessionMode = ffi.Pointer; +typedef DartAVAudioSessionMode = objc.NSString; +typedef AVAudioSessionOrientation = ffi.Pointer; +typedef DartAVAudioSessionOrientation = objc.NSString; +typedef AVAudioSessionPolarPattern = ffi.Pointer; +typedef DartAVAudioSessionPolarPattern = objc.NSString; +typedef AVAudioSessionPort = ffi.Pointer; +typedef DartAVAudioSessionPort = objc.NSString; + +/// WARNING: AVAudioSessionPortDescription is a stub. To generate bindings for this class, include +/// AVAudioSessionPortDescription in your config's objc-interfaces list. +/// +/// AVAudioSessionPortDescription +extension type AVAudioSessionPortDescription._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioSessionPortDescription] that points to the same underlying object as [other]. + AVAudioSessionPortDescription.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioSessionPortDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } + + /// Constructs a [AVAudioSessionPortDescription] that wraps the given raw object pointer. + AVAudioSessionPortDescription.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioSessionPortDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } +} + +/// WARNING: AVAudioSessionPortExtensionBluetoothMicrophone is a stub. To generate bindings for this class, include +/// AVAudioSessionPortExtensionBluetoothMicrophone in your config's objc-interfaces list. +/// +/// AVAudioSessionPortExtensionBluetoothMicrophone +extension type AVAudioSessionPortExtensionBluetoothMicrophone._( + objc.ObjCObject object$ +) implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioSessionPortExtensionBluetoothMicrophone] that points to the same underlying object as [other]. + AVAudioSessionPortExtensionBluetoothMicrophone.as(objc.ObjCObject other) + : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioSessionPortExtensionBluetoothMicrophone', + iOS: (false, (26, 0, 0)), + macOS: (true, null), + ); + } + + /// Constructs a [AVAudioSessionPortExtensionBluetoothMicrophone] that wraps the given raw object pointer. + AVAudioSessionPortExtensionBluetoothMicrophone.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioSessionPortExtensionBluetoothMicrophone', + iOS: (false, (26, 0, 0)), + macOS: (true, null), + ); + } +} + +enum AVAudioSessionPortOverride { + AVAudioSessionPortOverrideNone(0), + AVAudioSessionPortOverrideSpeaker(1936747378); + + final int value; + const AVAudioSessionPortOverride(this.value); + + static AVAudioSessionPortOverride fromValue(int value) => switch (value) { + 0 => AVAudioSessionPortOverrideNone, + 1936747378 => AVAudioSessionPortOverrideSpeaker, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionPortOverride: $value', + ), + }; +} + +enum AVAudioSessionPromptStyle { + AVAudioSessionPromptStyleNone(1852796517), + AVAudioSessionPromptStyleShort(1936224884), + AVAudioSessionPromptStyleNormal(1852992876); + + final int value; + const AVAudioSessionPromptStyle(this.value); + + static AVAudioSessionPromptStyle fromValue(int value) => switch (value) { + 1852796517 => AVAudioSessionPromptStyleNone, + 1936224884 => AVAudioSessionPromptStyleShort, + 1852992876 => AVAudioSessionPromptStyleNormal, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionPromptStyle: $value', + ), + }; +} + +enum AVAudioSessionRecordPermission { + AVAudioSessionRecordPermissionUndetermined(1970168948), + AVAudioSessionRecordPermissionDenied(1684369017), + AVAudioSessionRecordPermissionGranted(1735552628); + + final int value; + const AVAudioSessionRecordPermission(this.value); + + static AVAudioSessionRecordPermission fromValue(int value) => switch (value) { + 1970168948 => AVAudioSessionRecordPermissionUndetermined, + 1684369017 => AVAudioSessionRecordPermissionDenied, + 1735552628 => AVAudioSessionRecordPermissionGranted, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionRecordPermission: $value', + ), + }; +} + +enum AVAudioSessionRenderingMode { + AVAudioSessionRenderingModeNotApplicable(0), + AVAudioSessionRenderingModeMonoStereo(1), + AVAudioSessionRenderingModeSurround(2), + AVAudioSessionRenderingModeSpatialAudio(3), + AVAudioSessionRenderingModeDolbyAudio(4), + AVAudioSessionRenderingModeDolbyAtmos(5); + + final int value; + const AVAudioSessionRenderingMode(this.value); + + static AVAudioSessionRenderingMode fromValue(int value) => switch (value) { + 0 => AVAudioSessionRenderingModeNotApplicable, + 1 => AVAudioSessionRenderingModeMonoStereo, + 2 => AVAudioSessionRenderingModeSurround, + 3 => AVAudioSessionRenderingModeSpatialAudio, + 4 => AVAudioSessionRenderingModeDolbyAudio, + 5 => AVAudioSessionRenderingModeDolbyAtmos, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionRenderingMode: $value', + ), + }; +} + +enum AVAudioSessionRouteChangeReason { + AVAudioSessionRouteChangeReasonUnknown(0), + AVAudioSessionRouteChangeReasonNewDeviceAvailable(1), + AVAudioSessionRouteChangeReasonOldDeviceUnavailable(2), + AVAudioSessionRouteChangeReasonCategoryChange(3), + AVAudioSessionRouteChangeReasonOverride(4), + AVAudioSessionRouteChangeReasonWakeFromSleep(6), + AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory(7), + AVAudioSessionRouteChangeReasonRouteConfigurationChange(8); + + final int value; + const AVAudioSessionRouteChangeReason(this.value); + + static AVAudioSessionRouteChangeReason fromValue(int value) => + switch (value) { + 0 => AVAudioSessionRouteChangeReasonUnknown, + 1 => AVAudioSessionRouteChangeReasonNewDeviceAvailable, + 2 => AVAudioSessionRouteChangeReasonOldDeviceUnavailable, + 3 => AVAudioSessionRouteChangeReasonCategoryChange, + 4 => AVAudioSessionRouteChangeReasonOverride, + 6 => AVAudioSessionRouteChangeReasonWakeFromSleep, + 7 => AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory, + 8 => AVAudioSessionRouteChangeReasonRouteConfigurationChange, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionRouteChangeReason: $value', + ), + }; +} + +/// WARNING: AVAudioSessionRouteDescription is a stub. To generate bindings for this class, include +/// AVAudioSessionRouteDescription in your config's objc-interfaces list. +/// +/// AVAudioSessionRouteDescription +extension type AVAudioSessionRouteDescription._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioSessionRouteDescription] that points to the same underlying object as [other]. + AVAudioSessionRouteDescription.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioSessionRouteDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } + + /// Constructs a [AVAudioSessionRouteDescription] that wraps the given raw object pointer. + AVAudioSessionRouteDescription.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioSessionRouteDescription', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + } +} + +enum AVAudioSessionRouteSharingPolicy { + AVAudioSessionRouteSharingPolicyDefault(0), + AVAudioSessionRouteSharingPolicyLongFormAudio(1), + AVAudioSessionRouteSharingPolicyIndependent(2), + AVAudioSessionRouteSharingPolicyLongFormVideo(3); + + static const AVAudioSessionRouteSharingPolicyLongForm = + AVAudioSessionRouteSharingPolicyLongFormAudio; + + final int value; + const AVAudioSessionRouteSharingPolicy(this.value); + + static AVAudioSessionRouteSharingPolicy fromValue(int value) => + switch (value) { + 0 => AVAudioSessionRouteSharingPolicyDefault, + 1 => AVAudioSessionRouteSharingPolicyLongFormAudio, + 2 => AVAudioSessionRouteSharingPolicyIndependent, + 3 => AVAudioSessionRouteSharingPolicyLongFormVideo, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionRouteSharingPolicy: $value', + ), + }; + + @override + String toString() { + if (this == AVAudioSessionRouteSharingPolicyLongFormAudio) + return "AVAudioSessionRouteSharingPolicy.AVAudioSessionRouteSharingPolicyLongFormAudio, AVAudioSessionRouteSharingPolicy.AVAudioSessionRouteSharingPolicyLongForm"; + return super.toString(); + } +} + +@Deprecated('Deprecated') +const int AVAudioSessionSetActiveFlags_NotifyOthersOnDeactivation = 1; + +sealed class AVAudioSessionSetActiveOptions { + static const AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation = 1; +} + +enum AVAudioSessionSilenceSecondaryAudioHintType { + AVAudioSessionSilenceSecondaryAudioHintTypeBegin(1), + AVAudioSessionSilenceSecondaryAudioHintTypeEnd(0); + + final int value; + const AVAudioSessionSilenceSecondaryAudioHintType(this.value); + + static AVAudioSessionSilenceSecondaryAudioHintType fromValue( + int value, + ) => switch (value) { + 1 => AVAudioSessionSilenceSecondaryAudioHintTypeBegin, + 0 => AVAudioSessionSilenceSecondaryAudioHintTypeEnd, + _ => throw ArgumentError( + 'Unknown value for AVAudioSessionSilenceSecondaryAudioHintType: $value', + ), + }; +} + +enum AVAudioStereoOrientation { + AVAudioStereoOrientationNone(0), + AVAudioStereoOrientationPortrait(1), + AVAudioStereoOrientationPortraitUpsideDown(2), + AVAudioStereoOrientationLandscapeRight(3), + AVAudioStereoOrientationLandscapeLeft(4); + + final int value; + const AVAudioStereoOrientation(this.value); + + static AVAudioStereoOrientation fromValue(int value) => switch (value) { + 0 => AVAudioStereoOrientationNone, + 1 => AVAudioStereoOrientationPortrait, + 2 => AVAudioStereoOrientationPortraitUpsideDown, + 3 => AVAudioStereoOrientationLandscapeRight, + 4 => AVAudioStereoOrientationLandscapeLeft, + _ => throw ArgumentError( + 'Unknown value for AVAudioStereoOrientation: $value', + ), + }; +} + +typedef AVAudioUInteger = ffi.UnsignedLong; +typedef DartAVAudioUInteger = int; +typedef AVMusicTimeStamp = ffi.Double; +typedef DartAVMusicTimeStamp = double; + +sealed class AXCopyMultipleAttributeOptions { + static const kAXCopyMultipleAttributeOptionStopOnError = 1; +} + +enum AXError { + kAXErrorSuccess(0), + kAXErrorFailure(-25200), + kAXErrorIllegalArgument(-25201), + kAXErrorInvalidUIElement(-25202), + kAXErrorInvalidUIElementObserver(-25203), + kAXErrorCannotComplete(-25204), + kAXErrorAttributeUnsupported(-25205), + kAXErrorActionUnsupported(-25206), + kAXErrorNotificationUnsupported(-25207), + kAXErrorNotImplemented(-25208), + kAXErrorNotificationAlreadyRegistered(-25209), + kAXErrorNotificationNotRegistered(-25210), + kAXErrorAPIDisabled(-25211), + kAXErrorNoValue(-25212), + kAXErrorParameterizedAttributeUnsupported(-25213), + kAXErrorNotEnoughPrecision(-25214); + + final int value; + const AXError(this.value); + + static AXError fromValue(int value) => switch (value) { + 0 => kAXErrorSuccess, + -25200 => kAXErrorFailure, + -25201 => kAXErrorIllegalArgument, + -25202 => kAXErrorInvalidUIElement, + -25203 => kAXErrorInvalidUIElementObserver, + -25204 => kAXErrorCannotComplete, + -25205 => kAXErrorAttributeUnsupported, + -25206 => kAXErrorActionUnsupported, + -25207 => kAXErrorNotificationUnsupported, + -25208 => kAXErrorNotImplemented, + -25209 => kAXErrorNotificationAlreadyRegistered, + -25210 => kAXErrorNotificationNotRegistered, + -25211 => kAXErrorAPIDisabled, + -25212 => kAXErrorNoValue, + -25213 => kAXErrorParameterizedAttributeUnsupported, + -25214 => kAXErrorNotEnoughPrecision, + _ => throw ArgumentError('Unknown value for AXError: $value'), + }; +} + +sealed class AXMenuItemModifiers { + static const kAXMenuItemModifierNone = 0; + static const kAXMenuItemModifierShift = 1; + static const kAXMenuItemModifierOption = 2; + static const kAXMenuItemModifierControl = 4; + static const kAXMenuItemModifierNoCommand = 8; +} + +typedef AXObserverCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, + ffi.Pointer refcon, + ) + > + >; +typedef AXObserverCallbackWithInfo = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + AXObserverRef observer, + AXUIElementRef element, + CFStringRef notification, + CFDictionaryRef info, + ffi.Pointer refcon, + ) + > + >; +typedef AXObserverRef = ffi.Pointer<__AXObserver>; + +enum AXPriority { + kAXPriorityLow(10), + kAXPriorityMedium(50), + kAXPriorityHigh(90); + + final int value; + const AXPriority(this.value); + + static AXPriority fromValue(int value) => switch (value) { + 10 => kAXPriorityLow, + 50 => kAXPriorityMedium, + 90 => kAXPriorityHigh, + _ => throw ArgumentError('Unknown value for AXPriority: $value'), + }; +} + +typedef AXTextMarkerRangeRef = ffi.Pointer<__AXTextMarkerRange>; +typedef AXTextMarkerRef = ffi.Pointer<__AXTextMarker>; +typedef AXUIElementRef = ffi.Pointer<__AXUIElement>; + +enum AXUnderlineStyle { + kAXUnderlineStyleNone(0), + kAXUnderlineStyleSingle(1), + kAXUnderlineStyleThick(2), + kAXUnderlineStyleDouble(9); + + final int value; + const AXUnderlineStyle(this.value); + + static AXUnderlineStyle fromValue(int value) => switch (value) { + 0 => kAXUnderlineStyleNone, + 1 => kAXUnderlineStyleSingle, + 2 => kAXUnderlineStyleThick, + 9 => kAXUnderlineStyleDouble, + _ => throw ArgumentError('Unknown value for AXUnderlineStyle: $value'), + }; +} + +typedef AXValueRef = ffi.Pointer<__AXValue>; + +enum AXValueType { + kAXValueTypeCGPoint(1), + kAXValueTypeCGSize(2), + kAXValueTypeCGRect(3), + kAXValueTypeCFRange(4), + kAXValueTypeAXError(5), + kAXValueTypeIllegal(0); + + final int value; + const AXValueType(this.value); + + static AXValueType fromValue(int value) => switch (value) { + 1 => kAXValueTypeCGPoint, + 2 => kAXValueTypeCGSize, + 3 => kAXValueTypeCGRect, + 4 => kAXValueTypeCFRange, + 5 => kAXValueTypeAXError, + 0 => kAXValueTypeIllegal, + _ => throw ArgumentError('Unknown value for AXValueType: $value'), + }; +} + +typedef AbsoluteTime = UnsignedWide; + +/// Activation +extension Activation on AVAudioSession { + /// activateWithOptions:completionHandler: + void activateWithOptions( + DartNSUInteger options, { + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = completionHandler.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.activateWithOptions:completionHandler:', + iOS: (true, null), + macOS: (true, null), + ); + _objc_msgSend_ivnkdn( + _$$ref.pointer, + _sel_activateWithOptions_completionHandler_, + options, + _$$ref$1.pointer, + ); + } + + /// setActive:error: + bool setActive(bool active) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setActive:error:', + iOS: (false, (3, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_164wts2( + _$$ref.pointer, + _sel_setActive_error_, + active, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setActive:withOptions:error: + bool setActive$1(bool active, {required DartNSUInteger withOptions}) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setActive:withOptions:error:', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1nqw6vl( + _$$ref.pointer, + _sel_setActive_withOptions_error_, + active, + withOptions, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +typedef AliasHandle = ffi.Pointer; +typedef AliasInfoType = ffi.Short; +typedef DartAliasInfoType = int; +typedef AliasPtr = ffi.Pointer; + +final class AliasRecord extends ffi.Struct { + @ffi.Array.multi([6]) + external ffi.Array hidden; +} + +final class AnchorPoint extends ffi.Struct { + @SInt16() + external int x; + + @SInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +@ffi.Packed(2) +final class AnchorPointTable extends ffi.Struct { + @UInt32() + external int nPoints; + + @ffi.Array.multi([1]) + external ffi.Array points; +} + +@ffi.Packed(2) +final class AnkrTable extends ffi.Struct { + @UInt16() + external int version; + + @UInt16() + external int flags; + + @UInt32() + external int lookupTableOffset; + + @UInt32() + external int anchorPointTableOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int flags, + required int lookupTableOffset, + required int anchorPointTableOffset, + }) => $allocator() + ..ref.version = version + ..ref.flags = flags + ..ref.lookupTableOffset = lookupTableOffset + ..ref.anchorPointTableOffset = anchorPointTableOffset; +} + +const int AnnotationID = 1095650895; + +@ffi.Packed(2) +final class AppParameters extends ffi.Struct { + external UnnamedStruct theMsgEvent; + + @UInt32() + external int eventRefCon; + + @UInt32() + external int messageLength; +} + +typedef AppParametersPtr = ffi.Pointer; +typedef AppleEvent = AERecord; +typedef AppleEventPtr = ffi.Pointer; + +const int AppleShareMediaType = 1634103405; + +@ffi.Packed(2) +final class ApplicationSpecificChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @OSType() + external int applicationSignature; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef ApplicationSpecificChunkPtr = ffi.Pointer; + +const int ApplicationSpecificID = 1095782476; + +typedef AreaID = ffi.Pointer; + +final class AsscEntry extends ffi.Struct { + @SInt16() + external int fontSize; + + @SInt16() + external int fontStyle; + + @SInt16() + external int fontID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fontSize, + required int fontStyle, + required int fontID, + }) => $allocator() + ..ref.fontSize = fontSize + ..ref.fontStyle = fontStyle + ..ref.fontID = fontID; +} + +final class AudioBuffer extends ffi.Struct { + @UInt32() + external int mNumberChannels; + + @UInt32() + external int mDataByteSize; + + external ffi.Pointer mData; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mNumberChannels, + required int mDataByteSize, + required ffi.Pointer mData, + }) => $allocator() + ..ref.mNumberChannels = mNumberChannels + ..ref.mDataByteSize = mDataByteSize + ..ref.mData = mData; +} + +final class AudioBufferList extends ffi.Struct { + @UInt32() + external int mNumberBuffers; + + @ffi.Array.multi([1]) + external ffi.Array mBuffers; +} + +sealed class AudioChannelBitmap { + static const kAudioChannelBit_Left = 1; + static const kAudioChannelBit_Right = 2; + static const kAudioChannelBit_Center = 4; + static const kAudioChannelBit_LFEScreen = 8; + static const kAudioChannelBit_LeftSurround = 16; + static const kAudioChannelBit_RightSurround = 32; + static const kAudioChannelBit_LeftCenter = 64; + static const kAudioChannelBit_RightCenter = 128; + static const kAudioChannelBit_CenterSurround = 256; + static const kAudioChannelBit_LeftSurroundDirect = 512; + static const kAudioChannelBit_RightSurroundDirect = 1024; + static const kAudioChannelBit_TopCenterSurround = 2048; + static const kAudioChannelBit_VerticalHeightLeft = 4096; + static const kAudioChannelBit_VerticalHeightCenter = 8192; + static const kAudioChannelBit_VerticalHeightRight = 16384; + static const kAudioChannelBit_TopBackLeft = 32768; + static const kAudioChannelBit_TopBackCenter = 65536; + static const kAudioChannelBit_TopBackRight = 131072; + static const kAudioChannelBit_LeftTopFront = 4096; + static const kAudioChannelBit_CenterTopFront = 8192; + static const kAudioChannelBit_RightTopFront = 16384; + static const kAudioChannelBit_LeftTopMiddle = 2097152; + static const kAudioChannelBit_CenterTopMiddle = 2048; + static const kAudioChannelBit_RightTopMiddle = 8388608; + static const kAudioChannelBit_LeftTopRear = 16777216; + static const kAudioChannelBit_CenterTopRear = 33554432; + static const kAudioChannelBit_RightTopRear = 67108864; +} + +enum AudioChannelCoordinateIndex { + kAudioChannelCoordinates_LeftRight(0), + kAudioChannelCoordinates_BackFront(1), + kAudioChannelCoordinates_DownUp(2); + + static const kAudioChannelCoordinates_Azimuth = + kAudioChannelCoordinates_LeftRight; + static const kAudioChannelCoordinates_Elevation = + kAudioChannelCoordinates_BackFront; + static const kAudioChannelCoordinates_Distance = + kAudioChannelCoordinates_DownUp; + + final int value; + const AudioChannelCoordinateIndex(this.value); + + static AudioChannelCoordinateIndex fromValue(int value) => switch (value) { + 0 => kAudioChannelCoordinates_LeftRight, + 1 => kAudioChannelCoordinates_BackFront, + 2 => kAudioChannelCoordinates_DownUp, + _ => throw ArgumentError( + 'Unknown value for AudioChannelCoordinateIndex: $value', + ), + }; + + @override + String toString() { + if (this == kAudioChannelCoordinates_LeftRight) + return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_LeftRight, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Azimuth"; + if (this == kAudioChannelCoordinates_BackFront) + return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_BackFront, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Elevation"; + if (this == kAudioChannelCoordinates_DownUp) + return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_DownUp, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Distance"; + return super.toString(); + } +} + +final class AudioChannelDescription extends ffi.Struct { + @AudioChannelLabel() + external int mChannelLabel; + + @UInt32() + external int mChannelFlags; + + @ffi.Array.multi([3]) + external ffi.Array mCoordinates; +} + +sealed class AudioChannelFlags { + static const kAudioChannelFlags_AllOff = 0; + static const kAudioChannelFlags_RectangularCoordinates = 1; + static const kAudioChannelFlags_SphericalCoordinates = 2; + static const kAudioChannelFlags_Meters = 4; +} + +typedef AudioChannelLabel = UInt32; + +final class AudioChannelLayout extends ffi.Struct { + @AudioChannelLayoutTag() + external int mChannelLayoutTag; + + @UInt32() + external int mChannelBitmap; + + @UInt32() + external int mNumberChannelDescriptions; + + @ffi.Array.multi([1]) + external ffi.Array mChannelDescriptions; +} + +typedef AudioChannelLayoutTag = UInt32; + +final class AudioClassDescription extends ffi.Struct { + @OSType() + external int mType; + + @OSType() + external int mSubType; + + @OSType() + external int mManufacturer; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mType, + required int mSubType, + required int mManufacturer, + }) => $allocator() + ..ref.mType = mType + ..ref.mSubType = mSubType + ..ref.mManufacturer = mManufacturer; +} + +typedef AudioFormatFlags = UInt32; +typedef AudioFormatID = UInt32; + +final class AudioFormatListItem extends ffi.Struct { + external AudioStreamBasicDescription mASBD; + + @AudioChannelLayoutTag() + external int mChannelLayoutTag; +} + +@ffi.Packed(2) +final class AudioRecordingChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @ffi.Array.multi([24]) + external ffi.Array AESChannelStatus; +} + +typedef AudioRecordingChunkPtr = ffi.Pointer; + +const int AudioRecordingID = 1095062340; + +typedef AudioSampleType = Float32; +typedef AudioSessionID = ffi.Uint32; +typedef DartAudioSessionID = int; + +final class AudioStreamBasicDescription extends ffi.Struct { + @Float64() + external double mSampleRate; + + @AudioFormatID() + external int mFormatID; + + @AudioFormatFlags() + external int mFormatFlags; + + @UInt32() + external int mBytesPerPacket; + + @UInt32() + external int mFramesPerPacket; + + @UInt32() + external int mBytesPerFrame; + + @UInt32() + external int mChannelsPerFrame; + + @UInt32() + external int mBitsPerChannel; + + @UInt32() + external int mReserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double mSampleRate, + required int mFormatID, + required int mFormatFlags, + required int mBytesPerPacket, + required int mFramesPerPacket, + required int mBytesPerFrame, + required int mChannelsPerFrame, + required int mBitsPerChannel, + required int mReserved, + }) => $allocator() + ..ref.mSampleRate = mSampleRate + ..ref.mFormatID = mFormatID + ..ref.mFormatFlags = mFormatFlags + ..ref.mBytesPerPacket = mBytesPerPacket + ..ref.mFramesPerPacket = mFramesPerPacket + ..ref.mBytesPerFrame = mBytesPerFrame + ..ref.mChannelsPerFrame = mChannelsPerFrame + ..ref.mBitsPerChannel = mBitsPerChannel + ..ref.mReserved = mReserved; +} + +final class AudioStreamPacketDependencyDescription extends ffi.Struct { + @UInt32() + external int mIsIndependentlyDecodable; + + @UInt32() + external int mPreRollCount; + + @UInt32() + external int mFlags; + + @UInt32() + external int mReserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mIsIndependentlyDecodable, + required int mPreRollCount, + required int mFlags, + required int mReserved, + }) => $allocator() + ..ref.mIsIndependentlyDecodable = mIsIndependentlyDecodable + ..ref.mPreRollCount = mPreRollCount + ..ref.mFlags = mFlags + ..ref.mReserved = mReserved; +} + +final class AudioStreamPacketDescription extends ffi.Struct { + @SInt64() + external int mStartOffset; + + @UInt32() + external int mVariableFramesInPacket; + + @UInt32() + external int mDataByteSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mStartOffset, + required int mVariableFramesInPacket, + required int mDataByteSize, + }) => $allocator() + ..ref.mStartOffset = mStartOffset + ..ref.mVariableFramesInPacket = mVariableFramesInPacket + ..ref.mDataByteSize = mDataByteSize; +} + +final class AudioTimeStamp extends ffi.Struct { + @Float64() + external double mSampleTime; + + @UInt64() + external int mHostTime; + + @Float64() + external double mRateScalar; + + @UInt64() + external int mWordClockTime; + + external SMPTETime mSMPTETime; + + @UInt32() + external int mFlags; + + @UInt32() + external int mReserved; +} + +sealed class AudioTimeStampFlags { + static const kAudioTimeStampNothingValid = 0; + static const kAudioTimeStampSampleTimeValid = 1; + static const kAudioTimeStampHostTimeValid = 2; + static const kAudioTimeStampRateScalarValid = 4; + static const kAudioTimeStampWordClockTimeValid = 8; + static const kAudioTimeStampSMPTETimeValid = 16; + static const kAudioTimeStampSampleHostTimeValid = 3; +} + +typedef AudioUnitSampleType = Float32; + +final class AudioValueRange extends ffi.Struct { + @Float64() + external double mMinimum; + + @Float64() + external double mMaximum; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double mMinimum, + required double mMaximum, + }) => $allocator() + ..ref.mMinimum = mMinimum + ..ref.mMaximum = mMaximum; +} + +final class AudioValueTranslation extends ffi.Struct { + external ffi.Pointer mInputData; + + @UInt32() + external int mInputDataSize; + + external ffi.Pointer mOutputData; + + @UInt32() + external int mOutputDataSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer mInputData, + required int mInputDataSize, + required ffi.Pointer mOutputData, + required int mOutputDataSize, + }) => $allocator() + ..ref.mInputData = mInputData + ..ref.mInputDataSize = mInputDataSize + ..ref.mOutputData = mOutputData + ..ref.mOutputDataSize = mOutputDataSize; +} + +const int AuthorID = 1096111176; + +typedef AuthorizationAsyncCallback = ffi.Pointer; +typedef DartAuthorizationAsyncCallback = + objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >; +typedef AuthorizationEnvironment = AuthorizationItemSet; + +final class AuthorizationExternalForm extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array bytes; +} + +sealed class AuthorizationFlags { + static const kAuthorizationFlagDefaults = 0; + static const kAuthorizationFlagInteractionAllowed = 1; + static const kAuthorizationFlagExtendRights = 2; + static const kAuthorizationFlagPartialRights = 4; + static const kAuthorizationFlagDestroyRights = 8; + static const kAuthorizationFlagPreAuthorize = 16; + static const kAuthorizationFlagSkipInternalAuth = 512; + static const kAuthorizationFlagNoData = 1048576; +} + +final class AuthorizationItem extends ffi.Struct { + external AuthorizationString name; + + @ffi.Size() + external int valueLength; + + external ffi.Pointer value; + + @UInt32() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required AuthorizationString name, + required int valueLength, + required ffi.Pointer value, + required int flags, + }) => $allocator() + ..ref.name = name + ..ref.valueLength = valueLength + ..ref.value = value + ..ref.flags = flags; +} + +final class AuthorizationItemSet extends ffi.Struct { + @UInt32() + external int count; + + external ffi.Pointer items; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required ffi.Pointer items, + }) => $allocator() + ..ref.count = count + ..ref.items = items; +} + +final class AuthorizationOpaqueRef extends ffi.Opaque {} + +typedef AuthorizationRef = ffi.Pointer; +typedef AuthorizationRights = AuthorizationItemSet; +typedef AuthorizationString = ffi.Pointer; + +@ffi.Packed(2) +final class BTHeaderRec extends ffi.Struct { + @u_int16_t() + external int treeDepth; + + @u_int32_t() + external int rootNode; + + @u_int32_t() + external int leafRecords; + + @u_int32_t() + external int firstLeafNode; + + @u_int32_t() + external int lastLeafNode; + + @u_int16_t() + external int nodeSize; + + @u_int16_t() + external int maxKeyLength; + + @u_int32_t() + external int totalNodes; + + @u_int32_t() + external int freeNodes; + + @u_int16_t() + external int reserved1; + + @u_int32_t() + external int clumpSize; + + @u_int8_t() + external int btreeType; + + @u_int8_t() + external int keyCompareType; + + @u_int32_t() + external int attributes; + + @ffi.Array.multi([16]) + external ffi.Array reserved3; +} + +@ffi.Packed(2) +final class BTNodeDescriptor extends ffi.Struct { + @u_int32_t() + external int fLink; + + @u_int32_t() + external int bLink; + + @ffi.Int8() + external int kind; + + @u_int8_t() + external int height; + + @u_int16_t() + external int numRecords; + + @u_int16_t() + external int reserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fLink, + required int bLink, + required int kind, + required int height, + required int numRecords, + required int reserved, + }) => $allocator() + ..ref.fLink = fLink + ..ref.bLink = bLink + ..ref.kind = kind + ..ref.height = height + ..ref.numRecords = numRecords + ..ref.reserved = reserved; +} + +final class BTreeKey extends ffi.Union { + @u_int8_t() + external int length8; + + @u_int16_t() + external int length16; + + @ffi.Array.multi([522]) + external ffi.Array rawData; +} + +enum BTreeKeyLimits { + kMaxKeyLength(520); + + final int value; + const BTreeKeyLimits(this.value); + + static BTreeKeyLimits fromValue(int value) => switch (value) { + 520 => kMaxKeyLength, + _ => throw ArgumentError('Unknown value for BTreeKeyLimits: $value'), + }; +} + +@ffi.Packed(2) +final class BigEndianFixed extends ffi.Struct { + @Fixed() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BigEndianLong extends ffi.Struct { + @ffi.Long() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BigEndianOSType extends ffi.Struct { + @OSType() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => $allocator()..ref.bigEndianValue = bigEndianValue; +} + +final class BigEndianShort extends ffi.Struct { + @ffi.Short() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BigEndianUInt32 extends ffi.Struct { + @UInt32() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BigEndianUnsignedFixed extends ffi.Struct { + @UnsignedFixed() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => + $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BigEndianUnsignedLong extends ffi.Struct { + @ffi.UnsignedLong() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => + $allocator()..ref.bigEndianValue = bigEndianValue; +} + +final class BigEndianUnsignedShort extends ffi.Struct { + @ffi.UnsignedShort() + external int bigEndianValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int bigEndianValue, + }) => + $allocator()..ref.bigEndianValue = bigEndianValue; +} + +@ffi.Packed(2) +final class BitMap extends ffi.Struct { + external Ptr baseAddr; + + @ffi.Short() + external int rowBytes; + + external Rect bounds; +} + +typedef BitMapHandle = ffi.Pointer; +typedef BitMapPtr = ffi.Pointer; + +/// BluetoothMicrophoneExtension +extension BluetoothMicrophoneExtension on AVAudioSessionPortDescription { + /// bluetoothMicrophoneExtension + AVAudioSessionPortExtensionBluetoothMicrophone? + get bluetoothMicrophoneExtension { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSessionPortDescription.bluetoothMicrophoneExtension', + iOS: (false, (26, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_bluetoothMicrophoneExtension, + ); + return $ret.address == 0 + ? null + : AVAudioSessionPortExtensionBluetoothMicrophone.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +typedef Boolean = ffi.UnsignedChar; +typedef DartBoolean = int; +typedef BslnBaselineClass = UInt32; + +final class BslnFormat0Part extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array deltas; +} + +final class BslnFormat1Part extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array deltas; + + external SFNTLookupTable mappingData; +} + +final class BslnFormat2Part extends ffi.Struct { + @UInt16() + external int stdGlyph; + + @ffi.Array.multi([32]) + external ffi.Array ctlPoints; +} + +final class BslnFormat3Part extends ffi.Struct { + @UInt16() + external int stdGlyph; + + @ffi.Array.multi([32]) + external ffi.Array ctlPoints; + + external SFNTLookupTable mappingData; +} + +final class BslnFormatUnion extends ffi.Union { + external BslnFormat0Part fmt0Part; + + external BslnFormat1Part fmt1Part; + + external BslnFormat2Part fmt2Part; + + external BslnFormat3Part fmt3Part; +} + +@ffi.Packed(2) +final class BslnTable extends ffi.Struct { + @Fixed() + external int version; + + @BslnTableFormat() + external int format; + + @UInt16() + external int defaultBaseline; + + external BslnFormatUnion parts; +} + +typedef BslnTableFormat = UInt16; +typedef BslnTablePtr = ffi.Pointer; +typedef Byte = UInt8; +typedef ByteCount = ffi.UnsignedLong; +typedef DartByteCount = int; +typedef ByteOffset = ffi.UnsignedLong; +typedef DartByteOffset = int; +typedef BytePtr = ffi.Pointer; + +/// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include +/// CASpatialAudioExperience in your config's objc-interfaces list. +/// +/// CASpatialAudioExperience +extension type CASpatialAudioExperience._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [CASpatialAudioExperience] that points to the same underlying object as [other]. + CASpatialAudioExperience.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [CASpatialAudioExperience] that wraps the given raw object pointer. + CASpatialAudioExperience.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +const int CDEFNFnd = 88; + +typedef CE_AccessDescription = __CE_AccessDescription; +typedef CE_AuthorityInfoAccess = __CE_AuthorityInfoAccess; +typedef CE_AuthorityKeyID = __CE_AuthorityKeyID; +typedef CE_BasicConstraints = __CE_BasicConstraints; +typedef CE_CRLDistPointsSyntax = __CE_CRLDistPointsSyntax; +typedef CE_CRLDistributionPoint = __CE_CRLDistributionPoint; +typedef CE_CertPolicies = __CE_CertPolicies; +typedef CE_CrlDistReasonFlags = uint8; +typedef CE_CrlNumber = uint32; +typedef CE_CrlReason = uint32; + +final class CE_Data extends ffi.Union { + external CE_AuthorityKeyID authorityKeyID; + + external CE_SubjectKeyID subjectKeyID; + + @CE_KeyUsage() + external int keyUsage; + + external CE_GeneralNames subjectAltName; + + external CE_GeneralNames issuerAltName; + + external CE_ExtendedKeyUsage extendedKeyUsage; + + external CE_BasicConstraints basicConstraints; + + external CE_CertPolicies certPolicies; + + @CE_NetscapeCertType() + external int netscapeCertType; + + @CE_CrlNumber() + external int crlNumber; + + @CE_DeltaCrl() + external int deltaCrl; + + @CE_CrlReason() + external int crlReason; + + external CE_CRLDistPointsSyntax crlDistPoints; + + external CE_IssuingDistributionPoint issuingDistPoint; + + external CE_AuthorityInfoAccess authorityInfoAccess; + + external CE_QC_Statements qualifiedCertStatements; + + external CE_NameConstraints nameConstraints; + + external CE_PolicyMappings policyMappings; + + external CE_PolicyConstraints policyConstraints; + + @CE_InhibitAnyPolicy() + external int inhibitAnyPolicy; + + external SecAsn1Item rawData; +} + +typedef CE_DataAndType = __CE_DataAndType; +typedef CE_DeltaCrl = uint32; +typedef CE_DistributionPointName = __CE_DistributionPointName; +typedef CE_ExtendedKeyUsage = __CE_ExtendedKeyUsage; +typedef CE_GeneralName = __CE_GeneralName; +typedef CE_GeneralNames = __CE_GeneralNames; +typedef CE_GeneralSubtree = __CE_GeneralSubtree; +typedef CE_GeneralSubtrees = __CE_GeneralSubtrees; +typedef CE_InhibitAnyPolicy = uint32; +typedef CE_IssuingDistributionPoint = __CE_IssuingDistributionPoint; +typedef CE_KeyUsage = uint16; +typedef CE_NameConstraints = __CE_NameConstraints; +typedef CE_NameRegistrationAuthorities = CE_GeneralNames; +typedef CE_NetscapeCertType = uint16; +typedef CE_OtherName = __CE_OtherName; +typedef CE_PolicyConstraints = __CE_PolicyConstraints; +typedef CE_PolicyInformation = __CE_PolicyInformation; +typedef CE_PolicyMapping = __CE_PolicyMapping; +typedef CE_PolicyMappings = __CE_PolicyMappings; +typedef CE_PolicyQualifierInfo = __CE_PolicyQualifierInfo; +typedef CE_QC_Statement = __CE_QC_Statement; +typedef CE_QC_Statements = __CE_QC_Statements; +typedef CE_SemanticsInformation = __CE_SemanticsInformation; +typedef CE_SubjectKeyID = SecAsn1Item; +typedef CFAbsoluteTime = CFTimeInterval; +typedef CFAllocatorAllocateCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFIndex allocSize, + CFOptionFlags hint, + ffi.Pointer info, + ) + > + >; + +final class CFAllocatorContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + external CFAllocatorAllocateCallBack allocate; + + external CFAllocatorReallocateCallBack reallocate; + + external CFAllocatorDeallocateCallBack deallocate; + + external CFAllocatorPreferredSizeCallBack preferredSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + required CFAllocatorAllocateCallBack allocate, + required CFAllocatorReallocateCallBack reallocate, + required CFAllocatorDeallocateCallBack deallocate, + required CFAllocatorPreferredSizeCallBack preferredSize, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.allocate = allocate + ..ref.reallocate = reallocate + ..ref.deallocate = deallocate + ..ref.preferredSize = preferredSize; +} + +typedef CFAllocatorCopyDescriptionCallBack = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef CFAllocatorDeallocateCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info) + > + >; +typedef CFAllocatorPreferredSizeCallBack = + ffi.Pointer< + ffi.NativeFunction< + CFIndex Function( + CFIndex size, + CFOptionFlags hint, + ffi.Pointer info, + ) + > + >; +typedef CFAllocatorReallocateCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer ptr, + CFIndex newsize, + CFOptionFlags hint, + ffi.Pointer info, + ) + > + >; +typedef CFAllocatorRef = ffi.Pointer<__CFAllocator>; +typedef CFAllocatorReleaseCallBack = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef CFAllocatorRetainCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + >; +typedef CFAllocatorTypeID = ffi.UnsignedLongLong; +typedef DartCFAllocatorTypeID = int; +typedef CFArrayApplierFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ) + > + >; + +final class CFArrayCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFArrayRetainCallBack retain; + + external CFArrayReleaseCallBack release; + + external CFArrayCopyDescriptionCallBack copyDescription; + + external CFArrayEqualCallBack equal; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFArrayRetainCallBack retain, + required CFArrayReleaseCallBack release, + required CFArrayCopyDescriptionCallBack copyDescription, + required CFArrayEqualCallBack equal, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal; +} + +typedef CFArrayCopyDescriptionCallBack = + ffi.Pointer< + ffi.NativeFunction value)> + >; +typedef CFArrayEqualCallBack = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ) + > + >; +typedef CFArrayRef = ffi.Pointer<__CFArray>; +typedef CFArrayReleaseCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value) + > + >; +typedef CFArrayRetainCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ) + > + >; +typedef CFAttributedStringRef = ffi.Pointer<__CFAttributedString>; +typedef CFBagApplierFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ) + > + >; + +final class CFBagCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFBagRetainCallBack retain; + + external CFBagReleaseCallBack release; + + external CFBagCopyDescriptionCallBack copyDescription; + + external CFBagEqualCallBack equal; + + external CFBagHashCallBack hash; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFBagRetainCallBack retain, + required CFBagReleaseCallBack release, + required CFBagCopyDescriptionCallBack copyDescription, + required CFBagEqualCallBack equal, + required CFBagHashCallBack hash, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal + ..ref.hash = hash; +} + +typedef CFBagCopyDescriptionCallBack = + ffi.Pointer< + ffi.NativeFunction value)> + >; +typedef CFBagEqualCallBack = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ) + > + >; +typedef CFBagHashCallBack = + ffi.Pointer< + ffi.NativeFunction value)> + >; +typedef CFBagRef = ffi.Pointer<__CFBag>; +typedef CFBagReleaseCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value) + > + >; +typedef CFBagRetainCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ) + > + >; +typedef CFBinaryHeapApplierFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer val, + ffi.Pointer context, + ) + > + >; + +final class CFBinaryHeapCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer ptr, + ) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer ptr) + > + > + release; + + external ffi.Pointer< + ffi.NativeFunction ptr)> + > + copyDescription; + + external ffi.Pointer< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer ptr1, + ffi.Pointer ptr2, + ffi.Pointer context, + ) + > + > + compare; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer ptr, + ) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer ptr) + > + > + release, + required ffi.Pointer< + ffi.NativeFunction ptr)> + > + copyDescription, + required ffi.Pointer< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer ptr1, + ffi.Pointer ptr2, + ffi.Pointer context, + ) + > + > + compare, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.compare = compare; +} + +final class CFBinaryHeapCompareContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFBinaryHeapRef = ffi.Pointer<__CFBinaryHeap>; +typedef CFBit = UInt32; +typedef CFBitVectorRef = ffi.Pointer<__CFBitVector>; +typedef CFBooleanRef = ffi.Pointer<__CFBoolean>; +typedef CFBundleRef = ffi.Pointer<__CFBundle>; +typedef CFBundleRefNum = ffi.Int; +typedef DartCFBundleRefNum = int; +typedef CFByteOrder = CFIndex; +typedef CFCalendarIdentifier = CFStringRef; +typedef CFCalendarRef = ffi.Pointer<__CFCalendar>; + +sealed class CFCalendarUnit { + static const kCFCalendarUnitEra = 2; + static const kCFCalendarUnitYear = 4; + static const kCFCalendarUnitMonth = 8; + static const kCFCalendarUnitDay = 16; + static const kCFCalendarUnitHour = 32; + static const kCFCalendarUnitMinute = 64; + static const kCFCalendarUnitSecond = 128; + static const kCFCalendarUnitWeek = 256; + static const kCFCalendarUnitWeekday = 512; + static const kCFCalendarUnitWeekdayOrdinal = 1024; + static const kCFCalendarUnitQuarter = 2048; + static const kCFCalendarUnitWeekOfMonth = 4096; + static const kCFCalendarUnitWeekOfYear = 8192; + static const kCFCalendarUnitYearForWeekOfYear = 16384; + static const kCFCalendarUnitDayOfYear = 65536; +} + +enum CFCharacterSetPredefinedSet { + kCFCharacterSetControl(1), + kCFCharacterSetWhitespace(2), + kCFCharacterSetWhitespaceAndNewline(3), + kCFCharacterSetDecimalDigit(4), + kCFCharacterSetLetter(5), + kCFCharacterSetLowercaseLetter(6), + kCFCharacterSetUppercaseLetter(7), + kCFCharacterSetNonBase(8), + kCFCharacterSetDecomposable(9), + kCFCharacterSetAlphaNumeric(10), + kCFCharacterSetPunctuation(11), + kCFCharacterSetCapitalizedLetter(13), + kCFCharacterSetSymbol(14), + kCFCharacterSetNewline(15), + kCFCharacterSetIllegal(12); + + final int value; + const CFCharacterSetPredefinedSet(this.value); + + static CFCharacterSetPredefinedSet fromValue(int value) => switch (value) { + 1 => kCFCharacterSetControl, + 2 => kCFCharacterSetWhitespace, + 3 => kCFCharacterSetWhitespaceAndNewline, + 4 => kCFCharacterSetDecimalDigit, + 5 => kCFCharacterSetLetter, + 6 => kCFCharacterSetLowercaseLetter, + 7 => kCFCharacterSetUppercaseLetter, + 8 => kCFCharacterSetNonBase, + 9 => kCFCharacterSetDecomposable, + 10 => kCFCharacterSetAlphaNumeric, + 11 => kCFCharacterSetPunctuation, + 13 => kCFCharacterSetCapitalizedLetter, + 14 => kCFCharacterSetSymbol, + 15 => kCFCharacterSetNewline, + 12 => kCFCharacterSetIllegal, + _ => throw ArgumentError( + 'Unknown value for CFCharacterSetPredefinedSet: $value', + ), + }; +} + +typedef CFCharacterSetRef = ffi.Pointer<__CFCharacterSet>; +typedef CFComparatorFunction = + ffi.Pointer< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ) + > + >; + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef CFDataRef = ffi.Pointer<__CFData>; + +sealed class CFDataSearchFlags { + static const kCFDataSearchBackwards = 1; + static const kCFDataSearchAnchored = 2; +} + +typedef CFDateFormatterKey = CFStringRef; +typedef CFDateFormatterRef = ffi.Pointer<__CFDateFormatter>; + +enum CFDateFormatterStyle { + kCFDateFormatterNoStyle(0), + kCFDateFormatterShortStyle(1), + kCFDateFormatterMediumStyle(2), + kCFDateFormatterLongStyle(3), + kCFDateFormatterFullStyle(4); + + final int value; + const CFDateFormatterStyle(this.value); + + static CFDateFormatterStyle fromValue(int value) => switch (value) { + 0 => kCFDateFormatterNoStyle, + 1 => kCFDateFormatterShortStyle, + 2 => kCFDateFormatterMediumStyle, + 3 => kCFDateFormatterLongStyle, + 4 => kCFDateFormatterFullStyle, + _ => throw ArgumentError('Unknown value for CFDateFormatterStyle: $value'), + }; +} + +typedef CFDateRef = ffi.Pointer<__CFDate>; +typedef CFDictionaryApplierFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ) + > + >; +typedef CFDictionaryCopyDescriptionCallBack = + ffi.Pointer< + ffi.NativeFunction value)> + >; +typedef CFDictionaryEqualCallBack = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ) + > + >; +typedef CFDictionaryHashCallBack = + ffi.Pointer< + ffi.NativeFunction value)> + >; + +final class CFDictionaryKeyCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFDictionaryRetainCallBack retain; + + external CFDictionaryReleaseCallBack release; + + external CFDictionaryCopyDescriptionCallBack copyDescription; + + external CFDictionaryEqualCallBack equal; + + external CFDictionaryHashCallBack hash; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFDictionaryRetainCallBack retain, + required CFDictionaryReleaseCallBack release, + required CFDictionaryCopyDescriptionCallBack copyDescription, + required CFDictionaryEqualCallBack equal, + required CFDictionaryHashCallBack hash, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal + ..ref.hash = hash; +} + +typedef CFDictionaryRef = ffi.Pointer<__CFDictionary>; +typedef CFDictionaryReleaseCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value) + > + >; +typedef CFDictionaryRetainCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ) + > + >; + +final class CFDictionaryValueCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFDictionaryRetainCallBack retain; + + external CFDictionaryReleaseCallBack release; + + external CFDictionaryCopyDescriptionCallBack copyDescription; + + external CFDictionaryEqualCallBack equal; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFDictionaryRetainCallBack retain, + required CFDictionaryReleaseCallBack release, + required CFDictionaryCopyDescriptionCallBack copyDescription, + required CFDictionaryEqualCallBack equal, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal; +} + +typedef CFErrorDomain = CFStringRef; +typedef CFErrorRef = ffi.Pointer<__CFError>; +typedef CFFileDescriptorCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFFileDescriptorRef f, + CFOptionFlags callBackTypes, + ffi.Pointer info, + ) + > + >; + +final class CFFileDescriptorContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFFileDescriptorNativeDescriptor = ffi.Int; +typedef DartCFFileDescriptorNativeDescriptor = int; +typedef CFFileDescriptorRef = ffi.Pointer<__CFFileDescriptor>; + +sealed class CFFileSecurityClearOptions { + static const kCFFileSecurityClearOwner = 1; + static const kCFFileSecurityClearGroup = 2; + static const kCFFileSecurityClearMode = 4; + static const kCFFileSecurityClearOwnerUUID = 8; + static const kCFFileSecurityClearGroupUUID = 16; + static const kCFFileSecurityClearAccessControlList = 32; +} + +typedef CFFileSecurityRef = ffi.Pointer<__CFFileSecurity>; + +final class CFGregorianDate extends ffi.Struct { + @SInt32() + external int year; + + @SInt8() + external int month; + + @SInt8() + external int day; + + @SInt8() + external int hour; + + @SInt8() + external int minute; + + @ffi.Double() + external double second; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int year, + required int month, + required int day, + required int hour, + required int minute, + required double second, + }) => $allocator() + ..ref.year = year + ..ref.month = month + ..ref.day = day + ..ref.hour = hour + ..ref.minute = minute + ..ref.second = second; +} + +sealed class CFGregorianUnitFlags { + static const kCFGregorianUnitsYears = 1; + static const kCFGregorianUnitsMonths = 2; + static const kCFGregorianUnitsDays = 4; + static const kCFGregorianUnitsHours = 8; + static const kCFGregorianUnitsMinutes = 16; + static const kCFGregorianUnitsSeconds = 32; + static const kCFGregorianAllUnits = 16777215; +} + +final class CFGregorianUnits extends ffi.Struct { + @SInt32() + external int years; + + @SInt32() + external int months; + + @SInt32() + external int days; + + @SInt32() + external int hours; + + @SInt32() + external int minutes; + + @ffi.Double() + external double seconds; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int years, + required int months, + required int days, + required int hours, + required int minutes, + required double seconds, + }) => $allocator() + ..ref.years = years + ..ref.months = months + ..ref.days = days + ..ref.hours = hours + ..ref.minutes = minutes + ..ref.seconds = seconds; +} + +typedef CFHTTPAuthenticationRef = ffi.Pointer<_CFHTTPAuthentication>; +typedef CFHTTPMessageRef = ffi.Pointer<__CFHTTPMessage>; +typedef CFHashCode = ffi.UnsignedLong; +typedef DartCFHashCode = int; +typedef CFHostClientCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFHostRef theHost, + ffi.UnsignedInt typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ) + > + >; + +@ffi.Packed(2) +final class CFHostClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +enum CFHostInfoType { + kCFHostAddresses(0), + kCFHostNames(1), + kCFHostReachability(2); + + final int value; + const CFHostInfoType(this.value); + + static CFHostInfoType fromValue(int value) => switch (value) { + 0 => kCFHostAddresses, + 1 => kCFHostNames, + 2 => kCFHostReachability, + _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), + }; +} + +typedef CFHostRef = ffi.Pointer<__CFHost>; + +sealed class CFISO8601DateFormatOptions { + static const kCFISO8601DateFormatWithYear = 1; + static const kCFISO8601DateFormatWithMonth = 2; + static const kCFISO8601DateFormatWithWeekOfYear = 4; + static const kCFISO8601DateFormatWithDay = 16; + static const kCFISO8601DateFormatWithTime = 32; + static const kCFISO8601DateFormatWithTimeZone = 64; + static const kCFISO8601DateFormatWithSpaceBetweenDateAndTime = 128; + static const kCFISO8601DateFormatWithDashSeparatorInDate = 256; + static const kCFISO8601DateFormatWithColonSeparatorInTime = 512; + static const kCFISO8601DateFormatWithColonSeparatorInTimeZone = 1024; + static const kCFISO8601DateFormatWithFractionalSeconds = 2048; + static const kCFISO8601DateFormatWithFullDate = 275; + static const kCFISO8601DateFormatWithFullTime = 1632; + static const kCFISO8601DateFormatWithInternetDateTime = 1907; +} + +typedef CFIndex = ffi.Long; +typedef DartCFIndex = int; +typedef CFLocaleIdentifier = CFStringRef; +typedef CFLocaleKey = CFStringRef; + +enum CFLocaleLanguageDirection { + kCFLocaleLanguageDirectionUnknown(0), + kCFLocaleLanguageDirectionLeftToRight(1), + kCFLocaleLanguageDirectionRightToLeft(2), + kCFLocaleLanguageDirectionTopToBottom(3), + kCFLocaleLanguageDirectionBottomToTop(4); + + final int value; + const CFLocaleLanguageDirection(this.value); + + static CFLocaleLanguageDirection fromValue(int value) => switch (value) { + 0 => kCFLocaleLanguageDirectionUnknown, + 1 => kCFLocaleLanguageDirectionLeftToRight, + 2 => kCFLocaleLanguageDirectionRightToLeft, + 3 => kCFLocaleLanguageDirectionTopToBottom, + 4 => kCFLocaleLanguageDirectionBottomToTop, + _ => throw ArgumentError( + 'Unknown value for CFLocaleLanguageDirection: $value', + ), + }; +} + +typedef CFLocaleRef = ffi.Pointer<__CFLocale>; +typedef CFMachPortCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFMachPortRef port, + ffi.Pointer msg, + CFIndex size, + ffi.Pointer info, + ) + > + >; + +final class CFMachPortContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFMachPortInvalidationCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFMachPortRef port, ffi.Pointer info) + > + >; +typedef CFMachPortRef = ffi.Pointer<__CFMachPort>; +typedef CFMessagePortCallBack = + ffi.Pointer< + ffi.NativeFunction< + CFDataRef Function( + CFMessagePortRef local, + SInt32 msgid, + CFDataRef data, + ffi.Pointer info, + ) + > + >; + +final class CFMessagePortContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFMessagePortInvalidationCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFMessagePortRef ms, ffi.Pointer info) + > + >; +typedef CFMessagePortRef = ffi.Pointer<__CFMessagePort>; +typedef CFMutableArrayRef = ffi.Pointer<__CFArray>; +typedef CFMutableAttributedStringRef = ffi.Pointer<__CFAttributedString>; +typedef CFMutableBagRef = ffi.Pointer<__CFBag>; +typedef CFMutableBitVectorRef = ffi.Pointer<__CFBitVector>; +typedef CFMutableCharacterSetRef = ffi.Pointer<__CFCharacterSet>; +typedef CFMutableDataRef = ffi.Pointer<__CFData>; +typedef CFMutableDictionaryRef = ffi.Pointer<__CFDictionary>; +typedef CFMutableSetRef = ffi.Pointer<__CFSet>; +typedef CFMutableStringRef = ffi.Pointer; +typedef CFNetDiagnosticRef = ffi.Pointer<__CFNetDiagnostic>; +typedef CFNetDiagnosticStatus = CFIndex; + +@Deprecated('Deprecated') +enum CFNetDiagnosticStatusValues { + kCFNetDiagnosticNoErr(0), + kCFNetDiagnosticErr(-66560), + kCFNetDiagnosticConnectionUp(-66559), + kCFNetDiagnosticConnectionIndeterminate(-66558), + kCFNetDiagnosticConnectionDown(-66557); + + final int value; + const CFNetDiagnosticStatusValues(this.value); + + static CFNetDiagnosticStatusValues fromValue(int value) => switch (value) { + 0 => kCFNetDiagnosticNoErr, + -66560 => kCFNetDiagnosticErr, + -66559 => kCFNetDiagnosticConnectionUp, + -66558 => kCFNetDiagnosticConnectionIndeterminate, + -66557 => kCFNetDiagnosticConnectionDown, + _ => throw ArgumentError( + 'Unknown value for CFNetDiagnosticStatusValues: $value', + ), + }; +} + +typedef CFNetServiceBrowserClientCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFNetServiceBrowserRef browser, + CFOptionFlags flags, + CFTypeRef domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ) + > + >; + +sealed class CFNetServiceBrowserFlags { + static const kCFNetServiceFlagMoreComing = 1; + static const kCFNetServiceFlagIsDomain = 2; + static const kCFNetServiceFlagIsDefault = 4; + static const kCFNetServiceFlagIsRegistrationDomain = 4; + static const kCFNetServiceFlagRemove = 8; +} + +typedef CFNetServiceBrowserRef = ffi.Pointer<__CFNetServiceBrowser>; +typedef CFNetServiceClientCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFNetServiceRef theService, + ffi.Pointer error, + ffi.Pointer info, + ) + > + >; + +@ffi.Packed(2) +final class CFNetServiceClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFNetServiceMonitorClientCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFNetServiceMonitorRef theMonitor, + CFNetServiceRef theService, + ffi.UnsignedInt typeInfo, + CFDataRef rdata, + ffi.Pointer error, + ffi.Pointer info, + ) + > + >; +typedef CFNetServiceMonitorRef = ffi.Pointer<__CFNetServiceMonitor>; + +enum CFNetServiceMonitorType { + kCFNetServiceMonitorTXT(1); + + final int value; + const CFNetServiceMonitorType(this.value); + + static CFNetServiceMonitorType fromValue(int value) => switch (value) { + 1 => kCFNetServiceMonitorTXT, + _ => throw ArgumentError( + 'Unknown value for CFNetServiceMonitorType: $value', + ), + }; +} + +typedef CFNetServiceRef = ffi.Pointer<__CFNetService>; + +sealed class CFNetServiceRegisterFlags { + static const kCFNetServiceFlagNoAutoRename = 1; +} + +enum CFNetServicesError { + kCFNetServicesErrorUnknown(-72000), + kCFNetServicesErrorCollision(-72001), + kCFNetServicesErrorNotFound(-72002), + kCFNetServicesErrorInProgress(-72003), + kCFNetServicesErrorBadArgument(-72004), + kCFNetServicesErrorCancel(-72005), + kCFNetServicesErrorInvalid(-72006), + kCFNetServicesErrorTimeout(-72007), + kCFNetServicesErrorMissingRequiredConfiguration(-72008); + + final int value; + const CFNetServicesError(this.value); + + static CFNetServicesError fromValue(int value) => switch (value) { + -72000 => kCFNetServicesErrorUnknown, + -72001 => kCFNetServicesErrorCollision, + -72002 => kCFNetServicesErrorNotFound, + -72003 => kCFNetServicesErrorInProgress, + -72004 => kCFNetServicesErrorBadArgument, + -72005 => kCFNetServicesErrorCancel, + -72006 => kCFNetServicesErrorInvalid, + -72007 => kCFNetServicesErrorTimeout, + -72008 => kCFNetServicesErrorMissingRequiredConfiguration, + _ => throw ArgumentError('Unknown value for CFNetServicesError: $value'), + }; +} + +enum CFNetworkErrors { + kCFHostErrorHostNotFound(1), + kCFHostErrorUnknown(2), + kCFSOCKSErrorUnknownClientVersion(100), + kCFSOCKSErrorUnsupportedServerVersion(101), + kCFSOCKS4ErrorRequestFailed(110), + kCFSOCKS4ErrorIdentdFailed(111), + kCFSOCKS4ErrorIdConflict(112), + kCFSOCKS4ErrorUnknownStatusCode(113), + kCFSOCKS5ErrorBadState(120), + kCFSOCKS5ErrorBadResponseAddr(121), + kCFSOCKS5ErrorBadCredentials(122), + kCFSOCKS5ErrorUnsupportedNegotiationMethod(123), + kCFSOCKS5ErrorNoAcceptableMethod(124), + kCFFTPErrorUnexpectedStatusCode(200), + kCFErrorHTTPAuthenticationTypeUnsupported(300), + kCFErrorHTTPBadCredentials(301), + kCFErrorHTTPConnectionLost(302), + kCFErrorHTTPParseFailure(303), + kCFErrorHTTPRedirectionLoopDetected(304), + kCFErrorHTTPBadURL(305), + kCFErrorHTTPProxyConnectionFailure(306), + kCFErrorHTTPBadProxyCredentials(307), + kCFErrorPACFileError(308), + kCFErrorPACFileAuth(309), + kCFErrorHTTPSProxyConnectionFailure(310), + kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod(311), + kCFURLErrorBackgroundSessionInUseByAnotherProcess(-996), + kCFURLErrorBackgroundSessionWasDisconnected(-997), + kCFURLErrorUnknown(-998), + kCFURLErrorCancelled(-999), + kCFURLErrorBadURL(-1000), + kCFURLErrorTimedOut(-1001), + kCFURLErrorUnsupportedURL(-1002), + kCFURLErrorCannotFindHost(-1003), + kCFURLErrorCannotConnectToHost(-1004), + kCFURLErrorNetworkConnectionLost(-1005), + kCFURLErrorDNSLookupFailed(-1006), + kCFURLErrorHTTPTooManyRedirects(-1007), + kCFURLErrorResourceUnavailable(-1008), + kCFURLErrorNotConnectedToInternet(-1009), + kCFURLErrorRedirectToNonExistentLocation(-1010), + kCFURLErrorBadServerResponse(-1011), + kCFURLErrorUserCancelledAuthentication(-1012), + kCFURLErrorUserAuthenticationRequired(-1013), + kCFURLErrorZeroByteResource(-1014), + kCFURLErrorCannotDecodeRawData(-1015), + kCFURLErrorCannotDecodeContentData(-1016), + kCFURLErrorCannotParseResponse(-1017), + kCFURLErrorInternationalRoamingOff(-1018), + kCFURLErrorCallIsActive(-1019), + kCFURLErrorDataNotAllowed(-1020), + kCFURLErrorRequestBodyStreamExhausted(-1021), + kCFURLErrorAppTransportSecurityRequiresSecureConnection(-1022), + kCFURLErrorFileDoesNotExist(-1100), + kCFURLErrorFileIsDirectory(-1101), + kCFURLErrorNoPermissionsToReadFile(-1102), + kCFURLErrorDataLengthExceedsMaximum(-1103), + kCFURLErrorFileOutsideSafeArea(-1104), + kCFURLErrorSecureConnectionFailed(-1200), + kCFURLErrorServerCertificateHasBadDate(-1201), + kCFURLErrorServerCertificateUntrusted(-1202), + kCFURLErrorServerCertificateHasUnknownRoot(-1203), + kCFURLErrorServerCertificateNotYetValid(-1204), + kCFURLErrorClientCertificateRejected(-1205), + kCFURLErrorClientCertificateRequired(-1206), + kCFURLErrorCannotLoadFromNetwork(-2000), + kCFURLErrorCannotCreateFile(-3000), + kCFURLErrorCannotOpenFile(-3001), + kCFURLErrorCannotCloseFile(-3002), + kCFURLErrorCannotWriteToFile(-3003), + kCFURLErrorCannotRemoveFile(-3004), + kCFURLErrorCannotMoveFile(-3005), + kCFURLErrorDownloadDecodingFailedMidStream(-3006), + kCFURLErrorDownloadDecodingFailedToComplete(-3007), + kCFHTTPCookieCannotParseCookieFile(-4000), + kCFNetServiceErrorUnknown(-72000), + kCFNetServiceErrorCollision(-72001), + kCFNetServiceErrorNotFound(-72002), + kCFNetServiceErrorInProgress(-72003), + kCFNetServiceErrorBadArgument(-72004), + kCFNetServiceErrorCancel(-72005), + kCFNetServiceErrorInvalid(-72006), + kCFNetServiceErrorTimeout(-72007), + kCFNetServiceErrorDNSServiceFailure(-73000); + + final int value; + const CFNetworkErrors(this.value); + + static CFNetworkErrors fromValue(int value) => switch (value) { + 1 => kCFHostErrorHostNotFound, + 2 => kCFHostErrorUnknown, + 100 => kCFSOCKSErrorUnknownClientVersion, + 101 => kCFSOCKSErrorUnsupportedServerVersion, + 110 => kCFSOCKS4ErrorRequestFailed, + 111 => kCFSOCKS4ErrorIdentdFailed, + 112 => kCFSOCKS4ErrorIdConflict, + 113 => kCFSOCKS4ErrorUnknownStatusCode, + 120 => kCFSOCKS5ErrorBadState, + 121 => kCFSOCKS5ErrorBadResponseAddr, + 122 => kCFSOCKS5ErrorBadCredentials, + 123 => kCFSOCKS5ErrorUnsupportedNegotiationMethod, + 124 => kCFSOCKS5ErrorNoAcceptableMethod, + 200 => kCFFTPErrorUnexpectedStatusCode, + 300 => kCFErrorHTTPAuthenticationTypeUnsupported, + 301 => kCFErrorHTTPBadCredentials, + 302 => kCFErrorHTTPConnectionLost, + 303 => kCFErrorHTTPParseFailure, + 304 => kCFErrorHTTPRedirectionLoopDetected, + 305 => kCFErrorHTTPBadURL, + 306 => kCFErrorHTTPProxyConnectionFailure, + 307 => kCFErrorHTTPBadProxyCredentials, + 308 => kCFErrorPACFileError, + 309 => kCFErrorPACFileAuth, + 310 => kCFErrorHTTPSProxyConnectionFailure, + 311 => kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod, + -996 => kCFURLErrorBackgroundSessionInUseByAnotherProcess, + -997 => kCFURLErrorBackgroundSessionWasDisconnected, + -998 => kCFURLErrorUnknown, + -999 => kCFURLErrorCancelled, + -1000 => kCFURLErrorBadURL, + -1001 => kCFURLErrorTimedOut, + -1002 => kCFURLErrorUnsupportedURL, + -1003 => kCFURLErrorCannotFindHost, + -1004 => kCFURLErrorCannotConnectToHost, + -1005 => kCFURLErrorNetworkConnectionLost, + -1006 => kCFURLErrorDNSLookupFailed, + -1007 => kCFURLErrorHTTPTooManyRedirects, + -1008 => kCFURLErrorResourceUnavailable, + -1009 => kCFURLErrorNotConnectedToInternet, + -1010 => kCFURLErrorRedirectToNonExistentLocation, + -1011 => kCFURLErrorBadServerResponse, + -1012 => kCFURLErrorUserCancelledAuthentication, + -1013 => kCFURLErrorUserAuthenticationRequired, + -1014 => kCFURLErrorZeroByteResource, + -1015 => kCFURLErrorCannotDecodeRawData, + -1016 => kCFURLErrorCannotDecodeContentData, + -1017 => kCFURLErrorCannotParseResponse, + -1018 => kCFURLErrorInternationalRoamingOff, + -1019 => kCFURLErrorCallIsActive, + -1020 => kCFURLErrorDataNotAllowed, + -1021 => kCFURLErrorRequestBodyStreamExhausted, + -1022 => kCFURLErrorAppTransportSecurityRequiresSecureConnection, + -1100 => kCFURLErrorFileDoesNotExist, + -1101 => kCFURLErrorFileIsDirectory, + -1102 => kCFURLErrorNoPermissionsToReadFile, + -1103 => kCFURLErrorDataLengthExceedsMaximum, + -1104 => kCFURLErrorFileOutsideSafeArea, + -1200 => kCFURLErrorSecureConnectionFailed, + -1201 => kCFURLErrorServerCertificateHasBadDate, + -1202 => kCFURLErrorServerCertificateUntrusted, + -1203 => kCFURLErrorServerCertificateHasUnknownRoot, + -1204 => kCFURLErrorServerCertificateNotYetValid, + -1205 => kCFURLErrorClientCertificateRejected, + -1206 => kCFURLErrorClientCertificateRequired, + -2000 => kCFURLErrorCannotLoadFromNetwork, + -3000 => kCFURLErrorCannotCreateFile, + -3001 => kCFURLErrorCannotOpenFile, + -3002 => kCFURLErrorCannotCloseFile, + -3003 => kCFURLErrorCannotWriteToFile, + -3004 => kCFURLErrorCannotRemoveFile, + -3005 => kCFURLErrorCannotMoveFile, + -3006 => kCFURLErrorDownloadDecodingFailedMidStream, + -3007 => kCFURLErrorDownloadDecodingFailedToComplete, + -4000 => kCFHTTPCookieCannotParseCookieFile, + -72000 => kCFNetServiceErrorUnknown, + -72001 => kCFNetServiceErrorCollision, + -72002 => kCFNetServiceErrorNotFound, + -72003 => kCFNetServiceErrorInProgress, + -72004 => kCFNetServiceErrorBadArgument, + -72005 => kCFNetServiceErrorCancel, + -72006 => kCFNetServiceErrorInvalid, + -72007 => kCFNetServiceErrorTimeout, + -73000 => kCFNetServiceErrorDNSServiceFailure, + _ => throw ArgumentError('Unknown value for CFNetworkErrors: $value'), + }; +} + +typedef CFNotificationCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFNotificationCenterRef center, + ffi.Pointer observer, + CFNotificationName name, + ffi.Pointer object, + CFDictionaryRef userInfo, + ) + > + >; +typedef CFNotificationCenterRef = ffi.Pointer<__CFNotificationCenter>; +typedef CFNotificationName = CFStringRef; + +enum CFNotificationSuspensionBehavior { + CFNotificationSuspensionBehaviorDrop(1), + CFNotificationSuspensionBehaviorCoalesce(2), + CFNotificationSuspensionBehaviorHold(3), + CFNotificationSuspensionBehaviorDeliverImmediately(4); + + final int value; + const CFNotificationSuspensionBehavior(this.value); + + static CFNotificationSuspensionBehavior fromValue(int value) => + switch (value) { + 1 => CFNotificationSuspensionBehaviorDrop, + 2 => CFNotificationSuspensionBehaviorCoalesce, + 3 => CFNotificationSuspensionBehaviorHold, + 4 => CFNotificationSuspensionBehaviorDeliverImmediately, + _ => throw ArgumentError( + 'Unknown value for CFNotificationSuspensionBehavior: $value', + ), + }; +} + +typedef CFNullRef = ffi.Pointer<__CFNull>; +typedef CFNumberFormatterKey = CFStringRef; + +sealed class CFNumberFormatterOptionFlags { + static const kCFNumberFormatterParseIntegersOnly = 1; +} + +enum CFNumberFormatterPadPosition { + kCFNumberFormatterPadBeforePrefix(0), + kCFNumberFormatterPadAfterPrefix(1), + kCFNumberFormatterPadBeforeSuffix(2), + kCFNumberFormatterPadAfterSuffix(3); + + final int value; + const CFNumberFormatterPadPosition(this.value); + + static CFNumberFormatterPadPosition fromValue(int value) => switch (value) { + 0 => kCFNumberFormatterPadBeforePrefix, + 1 => kCFNumberFormatterPadAfterPrefix, + 2 => kCFNumberFormatterPadBeforeSuffix, + 3 => kCFNumberFormatterPadAfterSuffix, + _ => throw ArgumentError( + 'Unknown value for CFNumberFormatterPadPosition: $value', + ), + }; +} + +typedef CFNumberFormatterRef = ffi.Pointer<__CFNumberFormatter>; + +enum CFNumberFormatterRoundingMode { + kCFNumberFormatterRoundCeiling(0), + kCFNumberFormatterRoundFloor(1), + kCFNumberFormatterRoundDown(2), + kCFNumberFormatterRoundUp(3), + kCFNumberFormatterRoundHalfEven(4), + kCFNumberFormatterRoundHalfDown(5), + kCFNumberFormatterRoundHalfUp(6); + + final int value; + const CFNumberFormatterRoundingMode(this.value); + + static CFNumberFormatterRoundingMode fromValue(int value) => switch (value) { + 0 => kCFNumberFormatterRoundCeiling, + 1 => kCFNumberFormatterRoundFloor, + 2 => kCFNumberFormatterRoundDown, + 3 => kCFNumberFormatterRoundUp, + 4 => kCFNumberFormatterRoundHalfEven, + 5 => kCFNumberFormatterRoundHalfDown, + 6 => kCFNumberFormatterRoundHalfUp, + _ => throw ArgumentError( + 'Unknown value for CFNumberFormatterRoundingMode: $value', + ), + }; +} + +enum CFNumberFormatterStyle { + kCFNumberFormatterNoStyle(0), + kCFNumberFormatterDecimalStyle(1), + kCFNumberFormatterCurrencyStyle(2), + kCFNumberFormatterPercentStyle(3), + kCFNumberFormatterScientificStyle(4), + kCFNumberFormatterSpellOutStyle(5), + kCFNumberFormatterOrdinalStyle(6), + kCFNumberFormatterCurrencyISOCodeStyle(8), + kCFNumberFormatterCurrencyPluralStyle(9), + kCFNumberFormatterCurrencyAccountingStyle(10); + + final int value; + const CFNumberFormatterStyle(this.value); + + static CFNumberFormatterStyle fromValue(int value) => switch (value) { + 0 => kCFNumberFormatterNoStyle, + 1 => kCFNumberFormatterDecimalStyle, + 2 => kCFNumberFormatterCurrencyStyle, + 3 => kCFNumberFormatterPercentStyle, + 4 => kCFNumberFormatterScientificStyle, + 5 => kCFNumberFormatterSpellOutStyle, + 6 => kCFNumberFormatterOrdinalStyle, + 8 => kCFNumberFormatterCurrencyISOCodeStyle, + 9 => kCFNumberFormatterCurrencyPluralStyle, + 10 => kCFNumberFormatterCurrencyAccountingStyle, + _ => throw ArgumentError( + 'Unknown value for CFNumberFormatterStyle: $value', + ), + }; +} + +typedef CFNumberRef = ffi.Pointer<__CFNumber>; + +enum CFNumberType { + kCFNumberSInt8Type(1), + kCFNumberSInt16Type(2), + kCFNumberSInt32Type(3), + kCFNumberSInt64Type(4), + kCFNumberFloat32Type(5), + kCFNumberFloat64Type(6), + kCFNumberCharType(7), + kCFNumberShortType(8), + kCFNumberIntType(9), + kCFNumberLongType(10), + kCFNumberLongLongType(11), + kCFNumberFloatType(12), + kCFNumberDoubleType(13), + kCFNumberCFIndexType(14), + kCFNumberNSIntegerType(15), + kCFNumberCGFloatType(16); + + static const kCFNumberMaxType = kCFNumberCGFloatType; + + final int value; + const CFNumberType(this.value); + + static CFNumberType fromValue(int value) => switch (value) { + 1 => kCFNumberSInt8Type, + 2 => kCFNumberSInt16Type, + 3 => kCFNumberSInt32Type, + 4 => kCFNumberSInt64Type, + 5 => kCFNumberFloat32Type, + 6 => kCFNumberFloat64Type, + 7 => kCFNumberCharType, + 8 => kCFNumberShortType, + 9 => kCFNumberIntType, + 10 => kCFNumberLongType, + 11 => kCFNumberLongLongType, + 12 => kCFNumberFloatType, + 13 => kCFNumberDoubleType, + 14 => kCFNumberCFIndexType, + 15 => kCFNumberNSIntegerType, + 16 => kCFNumberCGFloatType, + _ => throw ArgumentError('Unknown value for CFNumberType: $value'), + }; + + @override + String toString() { + if (this == kCFNumberCGFloatType) + return "CFNumberType.kCFNumberCGFloatType, CFNumberType.kCFNumberMaxType"; + return super.toString(); + } +} + +typedef CFOptionFlags = ffi.UnsignedLong; +typedef DartCFOptionFlags = int; +typedef CFPlugInDynamicRegisterFunction = + ffi.Pointer>; +typedef CFPlugInFactoryFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef allocator, + CFUUIDRef typeUUID, + ) + > + >; +typedef CFPlugInInstanceDeallocateInstanceDataFunction = + ffi.Pointer< + ffi.NativeFunction instanceData)> + >; +typedef CFPlugInInstanceGetInterfaceFunction = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + CFPlugInInstanceRef instance, + CFStringRef interfaceName, + ffi.Pointer> ftbl, + ) + > + >; +typedef CFPlugInInstanceRef = ffi.Pointer<__CFPlugInInstance>; +typedef CFPlugInRef = ffi.Pointer<__CFBundle>; +typedef CFPlugInUnloadFunction = + ffi.Pointer>; + +enum CFPropertyListFormat { + kCFPropertyListOpenStepFormat(1), + kCFPropertyListXMLFormat_v1_0(100), + kCFPropertyListBinaryFormat_v1_0(200); + + final int value; + const CFPropertyListFormat(this.value); + + static CFPropertyListFormat fromValue(int value) => switch (value) { + 1 => kCFPropertyListOpenStepFormat, + 100 => kCFPropertyListXMLFormat_v1_0, + 200 => kCFPropertyListBinaryFormat_v1_0, + _ => throw ArgumentError('Unknown value for CFPropertyListFormat: $value'), + }; +} + +sealed class CFPropertyListMutabilityOptions { + static const kCFPropertyListImmutable = 0; + static const kCFPropertyListMutableContainers = 1; + static const kCFPropertyListMutableContainersAndLeaves = 2; +} + +typedef CFPropertyListRef = CFTypeRef; +typedef CFProxyAutoConfigurationResultCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer client, + CFArrayRef proxyList, + CFErrorRef error, + ) + > + >; + +final class CFRange extends ffi.Struct { + @CFIndex() + external int location; + + @CFIndex() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int location, + required int length, + }) => $allocator() + ..ref.location = location + ..ref.length = length; +} + +typedef CFReadStreamClientCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFReadStreamRef stream, + CFOptionFlags type, + ffi.Pointer clientCallBackInfo, + ) + > + >; +typedef CFReadStreamRef = ffi.Pointer<__CFReadStream>; + +sealed class CFRunLoopActivity { + static const kCFRunLoopEntry = 1; + static const kCFRunLoopBeforeTimers = 2; + static const kCFRunLoopBeforeSources = 4; + static const kCFRunLoopBeforeWaiting = 32; + static const kCFRunLoopAfterWaiting = 64; + static const kCFRunLoopExit = 128; + static const kCFRunLoopAllActivities = 268435455; +} + +typedef CFRunLoopMode = CFStringRef; +typedef CFRunLoopObserverCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFRunLoopObserverRef observer, + CFOptionFlags activity, + ffi.Pointer info, + ) + > + >; + +final class CFRunLoopObserverContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFRunLoopObserverRef = ffi.Pointer<__CFRunLoopObserver>; +typedef CFRunLoopRef = ffi.Pointer; + +enum CFRunLoopRunResult { + kCFRunLoopRunFinished(1), + kCFRunLoopRunStopped(2), + kCFRunLoopRunTimedOut(3), + kCFRunLoopRunHandledSource(4); + + final int value; + const CFRunLoopRunResult(this.value); + + static CFRunLoopRunResult fromValue(int value) => switch (value) { + 1 => kCFRunLoopRunFinished, + 2 => kCFRunLoopRunStopped, + 3 => kCFRunLoopRunTimedOut, + 4 => kCFRunLoopRunHandledSource, + _ => throw ArgumentError('Unknown value for CFRunLoopRunResult: $value'), + }; +} + +final class CFRunLoopSourceContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + external ffi.Pointer< + ffi.NativeFunction< + Boolean Function(ffi.Pointer info1, ffi.Pointer info2) + > + > + equal; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + hash; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + CFRunLoopRef rl, + CFRunLoopMode mode, + ) + > + > + schedule; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + CFRunLoopRef rl, + CFRunLoopMode mode, + ) + > + > + cancel; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + perform; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + required ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ffi.Pointer info1, + ffi.Pointer info2, + ) + > + > + equal, + required ffi.Pointer< + ffi.NativeFunction info)> + > + hash, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + CFRunLoopRef rl, + CFRunLoopMode mode, + ) + > + > + schedule, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + CFRunLoopRef rl, + CFRunLoopMode mode, + ) + > + > + cancel, + required ffi.Pointer< + ffi.NativeFunction info)> + > + perform, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal + ..ref.hash = hash + ..ref.schedule = schedule + ..ref.cancel = cancel + ..ref.perform = perform; +} + +final class CFRunLoopSourceContext1 extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + external ffi.Pointer< + ffi.NativeFunction< + Boolean Function(ffi.Pointer info1, ffi.Pointer info2) + > + > + equal; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + hash; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + getPort; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer msg, + CFIndex size, + CFAllocatorRef allocator, + ffi.Pointer info, + ) + > + > + perform; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + required ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ffi.Pointer info1, + ffi.Pointer info2, + ) + > + > + equal, + required ffi.Pointer< + ffi.NativeFunction info)> + > + hash, + required ffi.Pointer< + ffi.NativeFunction info)> + > + getPort, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer msg, + CFIndex size, + CFAllocatorRef allocator, + ffi.Pointer info, + ) + > + > + perform, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal + ..ref.hash = hash + ..ref.getPort = getPort + ..ref.perform = perform; +} + +typedef CFRunLoopSourceRef = ffi.Pointer<__CFRunLoopSource>; +typedef CFRunLoopTimerCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopTimerRef timer, ffi.Pointer info) + > + >; + +final class CFRunLoopTimerContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFRunLoopTimerRef = ffi.Pointer<__CFRunLoopTimer>; +typedef CFSetApplierFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ) + > + >; + +final class CFSetCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFSetRetainCallBack retain; + + external CFSetReleaseCallBack release; + + external CFSetCopyDescriptionCallBack copyDescription; + + external CFSetEqualCallBack equal; + + external CFSetHashCallBack hash; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFSetRetainCallBack retain, + required CFSetReleaseCallBack release, + required CFSetCopyDescriptionCallBack copyDescription, + required CFSetEqualCallBack equal, + required CFSetHashCallBack hash, + }) => $allocator() + ..ref.version = version + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.equal = equal + ..ref.hash = hash; +} + +typedef CFSetCopyDescriptionCallBack = + ffi.Pointer< + ffi.NativeFunction value)> + >; +typedef CFSetEqualCallBack = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ffi.Pointer value1, + ffi.Pointer value2, + ) + > + >; +typedef CFSetHashCallBack = + ffi.Pointer< + ffi.NativeFunction value)> + >; +typedef CFSetRef = ffi.Pointer<__CFSet>; +typedef CFSetReleaseCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value) + > + >; +typedef CFSetRetainCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFAllocatorRef allocator, + ffi.Pointer value, + ) + > + >; +typedef CFSocketCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFSocketRef s, + CFOptionFlags type, + CFDataRef address, + ffi.Pointer data, + ffi.Pointer info, + ) + > + >; + +sealed class CFSocketCallBackType { + static const kCFSocketNoCallBack = 0; + static const kCFSocketReadCallBack = 1; + static const kCFSocketAcceptCallBack = 2; + static const kCFSocketDataCallBack = 3; + static const kCFSocketConnectCallBack = 4; + static const kCFSocketWriteCallBack = 8; +} + +final class CFSocketContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +enum CFSocketError { + kCFSocketSuccess(0), + kCFSocketError(-1), + kCFSocketTimeout(-2); + + final int value; + const CFSocketError(this.value); + + static CFSocketError fromValue(int value) => switch (value) { + 0 => kCFSocketSuccess, + -1 => kCFSocketError, + -2 => kCFSocketTimeout, + _ => throw ArgumentError('Unknown value for CFSocketError: $value'), + }; +} + +typedef CFSocketNativeHandle = ffi.Int; +typedef DartCFSocketNativeHandle = int; +typedef CFSocketRef = ffi.Pointer<__CFSocket>; + +final class CFSocketSignature extends ffi.Struct { + @SInt32() + external int protocolFamily; + + @SInt32() + external int socketType; + + @SInt32() + external int protocol; + + external CFDataRef address; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protocolFamily, + required int socketType, + required int protocol, + required CFDataRef address, + }) => $allocator() + ..ref.protocolFamily = protocolFamily + ..ref.socketType = socketType + ..ref.protocol = protocol + ..ref.address = address; +} + +final class CFStreamClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + release; + + external ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction info)> + > + release, + required ffi.Pointer< + ffi.NativeFunction info)> + > + copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +final class CFStreamError extends ffi.Struct { + @CFIndex() + external int domain; + + @SInt32() + external int error; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int domain, + required int error, + }) => $allocator() + ..ref.domain = domain + ..ref.error = error; +} + +enum CFStreamErrorDomain { + kCFStreamErrorDomainCustom(-1), + kCFStreamErrorDomainPOSIX(1), + kCFStreamErrorDomainMacOSStatus(2); + + final int value; + const CFStreamErrorDomain(this.value); + + static CFStreamErrorDomain fromValue(int value) => switch (value) { + -1 => kCFStreamErrorDomainCustom, + 1 => kCFStreamErrorDomainPOSIX, + 2 => kCFStreamErrorDomainMacOSStatus, + _ => throw ArgumentError('Unknown value for CFStreamErrorDomain: $value'), + }; +} + +enum CFStreamErrorHTTP { + kCFStreamErrorHTTPParseFailure(-1), + kCFStreamErrorHTTPRedirectionLoop(-2), + kCFStreamErrorHTTPBadURL(-3); + + final int value; + const CFStreamErrorHTTP(this.value); + + static CFStreamErrorHTTP fromValue(int value) => switch (value) { + -1 => kCFStreamErrorHTTPParseFailure, + -2 => kCFStreamErrorHTTPRedirectionLoop, + -3 => kCFStreamErrorHTTPBadURL, + _ => throw ArgumentError('Unknown value for CFStreamErrorHTTP: $value'), + }; +} + +enum CFStreamErrorHTTPAuthentication { + kCFStreamErrorHTTPAuthenticationTypeUnsupported(-1000), + kCFStreamErrorHTTPAuthenticationBadUserName(-1001), + kCFStreamErrorHTTPAuthenticationBadPassword(-1002); + + final int value; + const CFStreamErrorHTTPAuthentication(this.value); + + static CFStreamErrorHTTPAuthentication fromValue(int value) => + switch (value) { + -1000 => kCFStreamErrorHTTPAuthenticationTypeUnsupported, + -1001 => kCFStreamErrorHTTPAuthenticationBadUserName, + -1002 => kCFStreamErrorHTTPAuthenticationBadPassword, + _ => throw ArgumentError( + 'Unknown value for CFStreamErrorHTTPAuthentication: $value', + ), + }; +} + +sealed class CFStreamEventType { + static const kCFStreamEventNone = 0; + static const kCFStreamEventOpenCompleted = 1; + static const kCFStreamEventHasBytesAvailable = 2; + static const kCFStreamEventCanAcceptBytes = 4; + static const kCFStreamEventErrorOccurred = 8; + static const kCFStreamEventEndEncountered = 16; +} + +typedef CFStreamPropertyKey = CFStringRef; + +enum CFStreamStatus { + kCFStreamStatusNotOpen(0), + kCFStreamStatusOpening(1), + kCFStreamStatusOpen(2), + kCFStreamStatusReading(3), + kCFStreamStatusWriting(4), + kCFStreamStatusAtEnd(5), + kCFStreamStatusClosed(6), + kCFStreamStatusError(7); + + final int value; + const CFStreamStatus(this.value); + + static CFStreamStatus fromValue(int value) => switch (value) { + 0 => kCFStreamStatusNotOpen, + 1 => kCFStreamStatusOpening, + 2 => kCFStreamStatusOpen, + 3 => kCFStreamStatusReading, + 4 => kCFStreamStatusWriting, + 5 => kCFStreamStatusAtEnd, + 6 => kCFStreamStatusClosed, + 7 => kCFStreamStatusError, + _ => throw ArgumentError('Unknown value for CFStreamStatus: $value'), + }; +} + +enum CFStringBuiltInEncodings { + kCFStringEncodingMacRoman(0), + kCFStringEncodingWindowsLatin1(1280), + kCFStringEncodingISOLatin1(513), + kCFStringEncodingNextStepLatin(2817), + kCFStringEncodingASCII(1536), + kCFStringEncodingUnicode(256), + kCFStringEncodingUTF8(134217984), + kCFStringEncodingNonLossyASCII(3071), + kCFStringEncodingUTF16BE(268435712), + kCFStringEncodingUTF16LE(335544576), + kCFStringEncodingUTF32(201326848), + kCFStringEncodingUTF32BE(402653440), + kCFStringEncodingUTF32LE(469762304); + + static const kCFStringEncodingUTF16 = kCFStringEncodingUnicode; + + final int value; + const CFStringBuiltInEncodings(this.value); + + static CFStringBuiltInEncodings fromValue(int value) => switch (value) { + 0 => kCFStringEncodingMacRoman, + 1280 => kCFStringEncodingWindowsLatin1, + 513 => kCFStringEncodingISOLatin1, + 2817 => kCFStringEncodingNextStepLatin, + 1536 => kCFStringEncodingASCII, + 256 => kCFStringEncodingUnicode, + 134217984 => kCFStringEncodingUTF8, + 3071 => kCFStringEncodingNonLossyASCII, + 268435712 => kCFStringEncodingUTF16BE, + 335544576 => kCFStringEncodingUTF16LE, + 201326848 => kCFStringEncodingUTF32, + 402653440 => kCFStringEncodingUTF32BE, + 469762304 => kCFStringEncodingUTF32LE, + _ => throw ArgumentError( + 'Unknown value for CFStringBuiltInEncodings: $value', + ), + }; + + @override + String toString() { + if (this == kCFStringEncodingUnicode) + return "CFStringBuiltInEncodings.kCFStringEncodingUnicode, CFStringBuiltInEncodings.kCFStringEncodingUTF16"; + return super.toString(); + } +} + +sealed class CFStringCompareFlags { + static const kCFCompareCaseInsensitive = 1; + static const kCFCompareBackwards = 4; + static const kCFCompareAnchored = 8; + static const kCFCompareNonliteral = 16; + static const kCFCompareLocalized = 32; + static const kCFCompareNumerically = 64; + static const kCFCompareDiacriticInsensitive = 128; + static const kCFCompareWidthInsensitive = 256; + static const kCFCompareForcedOrdering = 512; +} + +typedef CFStringEncoding = UInt32; + +enum CFStringEncodings { + kCFStringEncodingMacJapanese(1), + kCFStringEncodingMacChineseTrad(2), + kCFStringEncodingMacKorean(3), + kCFStringEncodingMacArabic(4), + kCFStringEncodingMacHebrew(5), + kCFStringEncodingMacGreek(6), + kCFStringEncodingMacCyrillic(7), + kCFStringEncodingMacDevanagari(9), + kCFStringEncodingMacGurmukhi(10), + kCFStringEncodingMacGujarati(11), + kCFStringEncodingMacOriya(12), + kCFStringEncodingMacBengali(13), + kCFStringEncodingMacTamil(14), + kCFStringEncodingMacTelugu(15), + kCFStringEncodingMacKannada(16), + kCFStringEncodingMacMalayalam(17), + kCFStringEncodingMacSinhalese(18), + kCFStringEncodingMacBurmese(19), + kCFStringEncodingMacKhmer(20), + kCFStringEncodingMacThai(21), + kCFStringEncodingMacLaotian(22), + kCFStringEncodingMacGeorgian(23), + kCFStringEncodingMacArmenian(24), + kCFStringEncodingMacChineseSimp(25), + kCFStringEncodingMacTibetan(26), + kCFStringEncodingMacMongolian(27), + kCFStringEncodingMacEthiopic(28), + kCFStringEncodingMacCentralEurRoman(29), + kCFStringEncodingMacVietnamese(30), + kCFStringEncodingMacExtArabic(31), + kCFStringEncodingMacSymbol(33), + kCFStringEncodingMacDingbats(34), + kCFStringEncodingMacTurkish(35), + kCFStringEncodingMacCroatian(36), + kCFStringEncodingMacIcelandic(37), + kCFStringEncodingMacRomanian(38), + kCFStringEncodingMacCeltic(39), + kCFStringEncodingMacGaelic(40), + kCFStringEncodingMacFarsi(140), + kCFStringEncodingMacUkrainian(152), + kCFStringEncodingMacInuit(236), + kCFStringEncodingMacVT100(252), + kCFStringEncodingMacHFS(255), + kCFStringEncodingISOLatin2(514), + kCFStringEncodingISOLatin3(515), + kCFStringEncodingISOLatin4(516), + kCFStringEncodingISOLatinCyrillic(517), + kCFStringEncodingISOLatinArabic(518), + kCFStringEncodingISOLatinGreek(519), + kCFStringEncodingISOLatinHebrew(520), + kCFStringEncodingISOLatin5(521), + kCFStringEncodingISOLatin6(522), + kCFStringEncodingISOLatinThai(523), + kCFStringEncodingISOLatin7(525), + kCFStringEncodingISOLatin8(526), + kCFStringEncodingISOLatin9(527), + kCFStringEncodingISOLatin10(528), + kCFStringEncodingDOSLatinUS(1024), + kCFStringEncodingDOSGreek(1029), + kCFStringEncodingDOSBalticRim(1030), + kCFStringEncodingDOSLatin1(1040), + kCFStringEncodingDOSGreek1(1041), + kCFStringEncodingDOSLatin2(1042), + kCFStringEncodingDOSCyrillic(1043), + kCFStringEncodingDOSTurkish(1044), + kCFStringEncodingDOSPortuguese(1045), + kCFStringEncodingDOSIcelandic(1046), + kCFStringEncodingDOSHebrew(1047), + kCFStringEncodingDOSCanadianFrench(1048), + kCFStringEncodingDOSArabic(1049), + kCFStringEncodingDOSNordic(1050), + kCFStringEncodingDOSRussian(1051), + kCFStringEncodingDOSGreek2(1052), + kCFStringEncodingDOSThai(1053), + kCFStringEncodingDOSJapanese(1056), + kCFStringEncodingDOSChineseSimplif(1057), + kCFStringEncodingDOSKorean(1058), + kCFStringEncodingDOSChineseTrad(1059), + kCFStringEncodingWindowsLatin2(1281), + kCFStringEncodingWindowsCyrillic(1282), + kCFStringEncodingWindowsGreek(1283), + kCFStringEncodingWindowsLatin5(1284), + kCFStringEncodingWindowsHebrew(1285), + kCFStringEncodingWindowsArabic(1286), + kCFStringEncodingWindowsBalticRim(1287), + kCFStringEncodingWindowsVietnamese(1288), + kCFStringEncodingWindowsKoreanJohab(1296), + kCFStringEncodingANSEL(1537), + kCFStringEncodingJIS_X0201_76(1568), + kCFStringEncodingJIS_X0208_83(1569), + kCFStringEncodingJIS_X0208_90(1570), + kCFStringEncodingJIS_X0212_90(1571), + kCFStringEncodingJIS_C6226_78(1572), + kCFStringEncodingShiftJIS_X0213(1576), + kCFStringEncodingShiftJIS_X0213_MenKuTen(1577), + kCFStringEncodingGB_2312_80(1584), + kCFStringEncodingGBK_95(1585), + kCFStringEncodingGB_18030_2000(1586), + kCFStringEncodingKSC_5601_87(1600), + kCFStringEncodingKSC_5601_92_Johab(1601), + kCFStringEncodingCNS_11643_92_P1(1617), + kCFStringEncodingCNS_11643_92_P2(1618), + kCFStringEncodingCNS_11643_92_P3(1619), + kCFStringEncodingISO_2022_JP(2080), + kCFStringEncodingISO_2022_JP_2(2081), + kCFStringEncodingISO_2022_JP_1(2082), + kCFStringEncodingISO_2022_JP_3(2083), + kCFStringEncodingISO_2022_CN(2096), + kCFStringEncodingISO_2022_CN_EXT(2097), + kCFStringEncodingISO_2022_KR(2112), + kCFStringEncodingEUC_JP(2336), + kCFStringEncodingEUC_CN(2352), + kCFStringEncodingEUC_TW(2353), + kCFStringEncodingEUC_KR(2368), + kCFStringEncodingShiftJIS(2561), + kCFStringEncodingKOI8_R(2562), + kCFStringEncodingBig5(2563), + kCFStringEncodingMacRomanLatin1(2564), + kCFStringEncodingHZ_GB_2312(2565), + kCFStringEncodingBig5_HKSCS_1999(2566), + kCFStringEncodingVISCII(2567), + kCFStringEncodingKOI8_U(2568), + kCFStringEncodingBig5_E(2569), + kCFStringEncodingNextStepJapanese(2818), + kCFStringEncodingEBCDIC_US(3073), + kCFStringEncodingEBCDIC_CP037(3074), + kCFStringEncodingUTF7(67109120), + kCFStringEncodingUTF7_IMAP(2576); + + static const kCFStringEncodingShiftJIS_X0213_00 = + kCFStringEncodingShiftJIS_X0213; + + final int value; + const CFStringEncodings(this.value); + + static CFStringEncodings fromValue(int value) => switch (value) { + 1 => kCFStringEncodingMacJapanese, + 2 => kCFStringEncodingMacChineseTrad, + 3 => kCFStringEncodingMacKorean, + 4 => kCFStringEncodingMacArabic, + 5 => kCFStringEncodingMacHebrew, + 6 => kCFStringEncodingMacGreek, + 7 => kCFStringEncodingMacCyrillic, + 9 => kCFStringEncodingMacDevanagari, + 10 => kCFStringEncodingMacGurmukhi, + 11 => kCFStringEncodingMacGujarati, + 12 => kCFStringEncodingMacOriya, + 13 => kCFStringEncodingMacBengali, + 14 => kCFStringEncodingMacTamil, + 15 => kCFStringEncodingMacTelugu, + 16 => kCFStringEncodingMacKannada, + 17 => kCFStringEncodingMacMalayalam, + 18 => kCFStringEncodingMacSinhalese, + 19 => kCFStringEncodingMacBurmese, + 20 => kCFStringEncodingMacKhmer, + 21 => kCFStringEncodingMacThai, + 22 => kCFStringEncodingMacLaotian, + 23 => kCFStringEncodingMacGeorgian, + 24 => kCFStringEncodingMacArmenian, + 25 => kCFStringEncodingMacChineseSimp, + 26 => kCFStringEncodingMacTibetan, + 27 => kCFStringEncodingMacMongolian, + 28 => kCFStringEncodingMacEthiopic, + 29 => kCFStringEncodingMacCentralEurRoman, + 30 => kCFStringEncodingMacVietnamese, + 31 => kCFStringEncodingMacExtArabic, + 33 => kCFStringEncodingMacSymbol, + 34 => kCFStringEncodingMacDingbats, + 35 => kCFStringEncodingMacTurkish, + 36 => kCFStringEncodingMacCroatian, + 37 => kCFStringEncodingMacIcelandic, + 38 => kCFStringEncodingMacRomanian, + 39 => kCFStringEncodingMacCeltic, + 40 => kCFStringEncodingMacGaelic, + 140 => kCFStringEncodingMacFarsi, + 152 => kCFStringEncodingMacUkrainian, + 236 => kCFStringEncodingMacInuit, + 252 => kCFStringEncodingMacVT100, + 255 => kCFStringEncodingMacHFS, + 514 => kCFStringEncodingISOLatin2, + 515 => kCFStringEncodingISOLatin3, + 516 => kCFStringEncodingISOLatin4, + 517 => kCFStringEncodingISOLatinCyrillic, + 518 => kCFStringEncodingISOLatinArabic, + 519 => kCFStringEncodingISOLatinGreek, + 520 => kCFStringEncodingISOLatinHebrew, + 521 => kCFStringEncodingISOLatin5, + 522 => kCFStringEncodingISOLatin6, + 523 => kCFStringEncodingISOLatinThai, + 525 => kCFStringEncodingISOLatin7, + 526 => kCFStringEncodingISOLatin8, + 527 => kCFStringEncodingISOLatin9, + 528 => kCFStringEncodingISOLatin10, + 1024 => kCFStringEncodingDOSLatinUS, + 1029 => kCFStringEncodingDOSGreek, + 1030 => kCFStringEncodingDOSBalticRim, + 1040 => kCFStringEncodingDOSLatin1, + 1041 => kCFStringEncodingDOSGreek1, + 1042 => kCFStringEncodingDOSLatin2, + 1043 => kCFStringEncodingDOSCyrillic, + 1044 => kCFStringEncodingDOSTurkish, + 1045 => kCFStringEncodingDOSPortuguese, + 1046 => kCFStringEncodingDOSIcelandic, + 1047 => kCFStringEncodingDOSHebrew, + 1048 => kCFStringEncodingDOSCanadianFrench, + 1049 => kCFStringEncodingDOSArabic, + 1050 => kCFStringEncodingDOSNordic, + 1051 => kCFStringEncodingDOSRussian, + 1052 => kCFStringEncodingDOSGreek2, + 1053 => kCFStringEncodingDOSThai, + 1056 => kCFStringEncodingDOSJapanese, + 1057 => kCFStringEncodingDOSChineseSimplif, + 1058 => kCFStringEncodingDOSKorean, + 1059 => kCFStringEncodingDOSChineseTrad, + 1281 => kCFStringEncodingWindowsLatin2, + 1282 => kCFStringEncodingWindowsCyrillic, + 1283 => kCFStringEncodingWindowsGreek, + 1284 => kCFStringEncodingWindowsLatin5, + 1285 => kCFStringEncodingWindowsHebrew, + 1286 => kCFStringEncodingWindowsArabic, + 1287 => kCFStringEncodingWindowsBalticRim, + 1288 => kCFStringEncodingWindowsVietnamese, + 1296 => kCFStringEncodingWindowsKoreanJohab, + 1537 => kCFStringEncodingANSEL, + 1568 => kCFStringEncodingJIS_X0201_76, + 1569 => kCFStringEncodingJIS_X0208_83, + 1570 => kCFStringEncodingJIS_X0208_90, + 1571 => kCFStringEncodingJIS_X0212_90, + 1572 => kCFStringEncodingJIS_C6226_78, + 1576 => kCFStringEncodingShiftJIS_X0213, + 1577 => kCFStringEncodingShiftJIS_X0213_MenKuTen, + 1584 => kCFStringEncodingGB_2312_80, + 1585 => kCFStringEncodingGBK_95, + 1586 => kCFStringEncodingGB_18030_2000, + 1600 => kCFStringEncodingKSC_5601_87, + 1601 => kCFStringEncodingKSC_5601_92_Johab, + 1617 => kCFStringEncodingCNS_11643_92_P1, + 1618 => kCFStringEncodingCNS_11643_92_P2, + 1619 => kCFStringEncodingCNS_11643_92_P3, + 2080 => kCFStringEncodingISO_2022_JP, + 2081 => kCFStringEncodingISO_2022_JP_2, + 2082 => kCFStringEncodingISO_2022_JP_1, + 2083 => kCFStringEncodingISO_2022_JP_3, + 2096 => kCFStringEncodingISO_2022_CN, + 2097 => kCFStringEncodingISO_2022_CN_EXT, + 2112 => kCFStringEncodingISO_2022_KR, + 2336 => kCFStringEncodingEUC_JP, + 2352 => kCFStringEncodingEUC_CN, + 2353 => kCFStringEncodingEUC_TW, + 2368 => kCFStringEncodingEUC_KR, + 2561 => kCFStringEncodingShiftJIS, + 2562 => kCFStringEncodingKOI8_R, + 2563 => kCFStringEncodingBig5, + 2564 => kCFStringEncodingMacRomanLatin1, + 2565 => kCFStringEncodingHZ_GB_2312, + 2566 => kCFStringEncodingBig5_HKSCS_1999, + 2567 => kCFStringEncodingVISCII, + 2568 => kCFStringEncodingKOI8_U, + 2569 => kCFStringEncodingBig5_E, + 2818 => kCFStringEncodingNextStepJapanese, + 3073 => kCFStringEncodingEBCDIC_US, + 3074 => kCFStringEncodingEBCDIC_CP037, + 67109120 => kCFStringEncodingUTF7, + 2576 => kCFStringEncodingUTF7_IMAP, + _ => throw ArgumentError('Unknown value for CFStringEncodings: $value'), + }; + + @override + String toString() { + if (this == kCFStringEncodingShiftJIS_X0213) + return "CFStringEncodings.kCFStringEncodingShiftJIS_X0213, CFStringEncodings.kCFStringEncodingShiftJIS_X0213_00"; + return super.toString(); + } +} + +final class CFStringInlineBuffer extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array buffer; + + external CFStringRef theString; + + external ffi.Pointer directUniCharBuffer; + + external ffi.Pointer directCStringBuffer; + + external CFRange rangeToBuffer; + + @CFIndex() + external int bufferedRangeStart; + + @CFIndex() + external int bufferedRangeEnd; +} + +enum CFStringNormalizationForm { + kCFStringNormalizationFormD(0), + kCFStringNormalizationFormKD(1), + kCFStringNormalizationFormC(2), + kCFStringNormalizationFormKC(3); + + final int value; + const CFStringNormalizationForm(this.value); + + static CFStringNormalizationForm fromValue(int value) => switch (value) { + 0 => kCFStringNormalizationFormD, + 1 => kCFStringNormalizationFormKD, + 2 => kCFStringNormalizationFormC, + 3 => kCFStringNormalizationFormKC, + _ => throw ArgumentError( + 'Unknown value for CFStringNormalizationForm: $value', + ), + }; +} + +typedef CFStringRef = ffi.Pointer; +typedef CFStringTokenizerRef = ffi.Pointer<__CFStringTokenizer>; + +sealed class CFStringTokenizerTokenType { + static const kCFStringTokenizerTokenNone = 0; + static const kCFStringTokenizerTokenNormal = 1; + static const kCFStringTokenizerTokenHasSubTokensMask = 2; + static const kCFStringTokenizerTokenHasDerivedSubTokensMask = 4; + static const kCFStringTokenizerTokenHasHasNumbersMask = 8; + static const kCFStringTokenizerTokenHasNonLettersMask = 16; + static const kCFStringTokenizerTokenIsCJWordMask = 32; +} + +final class CFSwappedFloat32 extends ffi.Struct { + @ffi.Uint32() + external int v; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + }) => $allocator()..ref.v = v; +} + +final class CFSwappedFloat64 extends ffi.Struct { + @ffi.Uint64() + external int v; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + }) => $allocator()..ref.v = v; +} + +typedef CFTimeInterval = ffi.Double; +typedef DartCFTimeInterval = double; + +enum CFTimeZoneNameStyle { + kCFTimeZoneNameStyleStandard(0), + kCFTimeZoneNameStyleShortStandard(1), + kCFTimeZoneNameStyleDaylightSaving(2), + kCFTimeZoneNameStyleShortDaylightSaving(3), + kCFTimeZoneNameStyleGeneric(4), + kCFTimeZoneNameStyleShortGeneric(5); + + final int value; + const CFTimeZoneNameStyle(this.value); + + static CFTimeZoneNameStyle fromValue(int value) => switch (value) { + 0 => kCFTimeZoneNameStyleStandard, + 1 => kCFTimeZoneNameStyleShortStandard, + 2 => kCFTimeZoneNameStyleDaylightSaving, + 3 => kCFTimeZoneNameStyleShortDaylightSaving, + 4 => kCFTimeZoneNameStyleGeneric, + 5 => kCFTimeZoneNameStyleShortGeneric, + _ => throw ArgumentError('Unknown value for CFTimeZoneNameStyle: $value'), + }; +} + +typedef CFTimeZoneRef = ffi.Pointer<__CFTimeZone>; +typedef CFTreeApplierFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ) + > + >; + +final class CFTreeContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFTreeRetainCallBack retain; + + external CFTreeReleaseCallBack release; + + external CFTreeCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFTreeRetainCallBack retain, + required CFTreeReleaseCallBack release, + required CFTreeCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFTreeCopyDescriptionCallBack = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef CFTreeRef = ffi.Pointer<__CFTree>; +typedef CFTreeReleaseCallBack = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef CFTreeRetainCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + >; +typedef CFTypeID = ffi.UnsignedLong; +typedef DartCFTypeID = int; +typedef CFTypeRef = ffi.Pointer; + +sealed class CFURLBookmarkCreationOptions { + static const kCFURLBookmarkCreationMinimalBookmarkMask = 512; + static const kCFURLBookmarkCreationSuitableForBookmarkFile = 1024; + static const kCFURLBookmarkCreationWithSecurityScope = 2048; + static const kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; + static const kCFURLBookmarkCreationWithoutImplicitSecurityScope = 536870912; + static const kCFURLBookmarkCreationPreferFileIDResolutionMask = 256; +} + +typedef CFURLBookmarkFileCreationOptions = CFOptionFlags; + +sealed class CFURLBookmarkResolutionOptions { + static const kCFURLBookmarkResolutionWithoutUIMask = 256; + static const kCFURLBookmarkResolutionWithoutMountingMask = 512; + static const kCFURLBookmarkResolutionWithSecurityScope = 1024; + static const kCFURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; + static const kCFBookmarkResolutionWithoutUIMask = 256; + static const kCFBookmarkResolutionWithoutMountingMask = 512; +} + +enum CFURLComponentType { + kCFURLComponentScheme(1), + kCFURLComponentNetLocation(2), + kCFURLComponentPath(3), + kCFURLComponentResourceSpecifier(4), + kCFURLComponentUser(5), + kCFURLComponentPassword(6), + kCFURLComponentUserInfo(7), + kCFURLComponentHost(8), + kCFURLComponentPort(9), + kCFURLComponentParameterString(10), + kCFURLComponentQuery(11), + kCFURLComponentFragment(12); + + final int value; + const CFURLComponentType(this.value); + + static CFURLComponentType fromValue(int value) => switch (value) { + 1 => kCFURLComponentScheme, + 2 => kCFURLComponentNetLocation, + 3 => kCFURLComponentPath, + 4 => kCFURLComponentResourceSpecifier, + 5 => kCFURLComponentUser, + 6 => kCFURLComponentPassword, + 7 => kCFURLComponentUserInfo, + 8 => kCFURLComponentHost, + 9 => kCFURLComponentPort, + 10 => kCFURLComponentParameterString, + 11 => kCFURLComponentQuery, + 12 => kCFURLComponentFragment, + _ => throw ArgumentError('Unknown value for CFURLComponentType: $value'), + }; +} + +sealed class CFURLEnumeratorOptions { + static const kCFURLEnumeratorDefaultBehavior = 0; + static const kCFURLEnumeratorDescendRecursively = 1; + static const kCFURLEnumeratorSkipInvisibles = 2; + static const kCFURLEnumeratorGenerateFileReferenceURLs = 4; + static const kCFURLEnumeratorSkipPackageContents = 8; + static const kCFURLEnumeratorIncludeDirectoriesPreOrder = 16; + static const kCFURLEnumeratorIncludeDirectoriesPostOrder = 32; + static const kCFURLEnumeratorGenerateRelativePathURLs = 64; +} + +typedef CFURLEnumeratorRef = ffi.Pointer<__CFURLEnumerator>; + +enum CFURLEnumeratorResult { + kCFURLEnumeratorSuccess(1), + kCFURLEnumeratorEnd(2), + kCFURLEnumeratorError(3), + kCFURLEnumeratorDirectoryPostOrderSuccess(4); + + final int value; + const CFURLEnumeratorResult(this.value); + + static CFURLEnumeratorResult fromValue(int value) => switch (value) { + 1 => kCFURLEnumeratorSuccess, + 2 => kCFURLEnumeratorEnd, + 3 => kCFURLEnumeratorError, + 4 => kCFURLEnumeratorDirectoryPostOrderSuccess, + _ => throw ArgumentError('Unknown value for CFURLEnumeratorResult: $value'), + }; +} + +@Deprecated('Use CFError codes instead') +enum CFURLError { + kCFURLUnknownError(-10), + kCFURLUnknownSchemeError(-11), + kCFURLResourceNotFoundError(-12), + kCFURLResourceAccessViolationError(-13), + kCFURLRemoteHostUnavailableError(-14), + kCFURLImproperArgumentsError(-15), + kCFURLUnknownPropertyKeyError(-16), + kCFURLPropertyKeyUnavailableError(-17), + kCFURLTimeoutError(-18); + + final int value; + const CFURLError(this.value); + + static CFURLError fromValue(int value) => switch (value) { + -10 => kCFURLUnknownError, + -11 => kCFURLUnknownSchemeError, + -12 => kCFURLResourceNotFoundError, + -13 => kCFURLResourceAccessViolationError, + -14 => kCFURLRemoteHostUnavailableError, + -15 => kCFURLImproperArgumentsError, + -16 => kCFURLUnknownPropertyKeyError, + -17 => kCFURLPropertyKeyUnavailableError, + -18 => kCFURLTimeoutError, + _ => throw ArgumentError('Unknown value for CFURLError: $value'), + }; +} + +enum CFURLPathStyle { + kCFURLPOSIXPathStyle(0), + kCFURLHFSPathStyle(1), + kCFURLWindowsPathStyle(2); + + final int value; + const CFURLPathStyle(this.value); + + static CFURLPathStyle fromValue(int value) => switch (value) { + 0 => kCFURLPOSIXPathStyle, + 1 => kCFURLHFSPathStyle, + 2 => kCFURLWindowsPathStyle, + _ => throw ArgumentError('Unknown value for CFURLPathStyle: $value'), + }; +} + +typedef CFURLRef = ffi.Pointer<__CFURL>; + +final class CFUUIDBytes extends ffi.Struct { + @UInt8() + external int byte0; + + @UInt8() + external int byte1; + + @UInt8() + external int byte2; + + @UInt8() + external int byte3; + + @UInt8() + external int byte4; + + @UInt8() + external int byte5; + + @UInt8() + external int byte6; + + @UInt8() + external int byte7; + + @UInt8() + external int byte8; + + @UInt8() + external int byte9; + + @UInt8() + external int byte10; + + @UInt8() + external int byte11; + + @UInt8() + external int byte12; + + @UInt8() + external int byte13; + + @UInt8() + external int byte14; + + @UInt8() + external int byte15; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int byte0, + required int byte1, + required int byte2, + required int byte3, + required int byte4, + required int byte5, + required int byte6, + required int byte7, + required int byte8, + required int byte9, + required int byte10, + required int byte11, + required int byte12, + required int byte13, + required int byte14, + required int byte15, + }) => $allocator() + ..ref.byte0 = byte0 + ..ref.byte1 = byte1 + ..ref.byte2 = byte2 + ..ref.byte3 = byte3 + ..ref.byte4 = byte4 + ..ref.byte5 = byte5 + ..ref.byte6 = byte6 + ..ref.byte7 = byte7 + ..ref.byte8 = byte8 + ..ref.byte9 = byte9 + ..ref.byte10 = byte10 + ..ref.byte11 = byte11 + ..ref.byte12 = byte12 + ..ref.byte13 = byte13 + ..ref.byte14 = byte14 + ..ref.byte15 = byte15; +} + +typedef CFUUIDRef = ffi.Pointer<__CFUUID>; +typedef CFUserNotificationCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFUserNotificationRef userNotification, + CFOptionFlags responseFlags, + ) + > + >; +typedef CFUserNotificationRef = ffi.Pointer<__CFUserNotification>; +typedef CFWriteStreamClientCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFWriteStreamRef stream, + CFOptionFlags type, + ffi.Pointer clientCallBackInfo, + ) + > + >; +typedef CFWriteStreamRef = ffi.Pointer<__CFWriteStream>; + +final class CFXMLAttributeDeclarationInfo extends ffi.Struct { + external CFStringRef attributeName; + + external CFStringRef typeString; + + external CFStringRef defaultString; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFStringRef attributeName, + required CFStringRef typeString, + required CFStringRef defaultString, + }) => $allocator() + ..ref.attributeName = attributeName + ..ref.typeString = typeString + ..ref.defaultString = defaultString; +} + +final class CFXMLAttributeListDeclarationInfo extends ffi.Struct { + @CFIndex() + external int numberOfAttributes; + + external ffi.Pointer attributes; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfAttributes, + required ffi.Pointer attributes, + }) => $allocator() + ..ref.numberOfAttributes = numberOfAttributes + ..ref.attributes = attributes; +} + +final class CFXMLDocumentInfo extends ffi.Struct { + external CFURLRef sourceURL; + + @CFStringEncoding() + external int encoding; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFURLRef sourceURL, + required int encoding, + }) => $allocator() + ..ref.sourceURL = sourceURL + ..ref.encoding = encoding; +} + +final class CFXMLDocumentTypeInfo extends ffi.Struct { + external CFXMLExternalID externalID; +} + +final class CFXMLElementInfo extends ffi.Struct { + external CFDictionaryRef attributes; + + external CFArrayRef attributeOrder; + + @Boolean() + external int isEmpty; + + @ffi.Array.multi([3]) + external ffi.Array _reserved; +} + +final class CFXMLElementTypeDeclarationInfo extends ffi.Struct { + external CFStringRef contentDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFStringRef contentDescription, + }) => + $allocator() + ..ref.contentDescription = contentDescription; +} + +final class CFXMLEntityInfo extends ffi.Struct { + @CFIndex() + external int entityTypeAsInt; + + CFXMLEntityTypeCode get entityType => + CFXMLEntityTypeCode.fromValue(entityTypeAsInt); + set entityType(CFXMLEntityTypeCode value) => entityTypeAsInt = value.value; + + external CFStringRef replacementText; + + external CFXMLExternalID entityID; + + external CFStringRef notationName; +} + +final class CFXMLEntityReferenceInfo extends ffi.Struct { + @CFIndex() + external int entityTypeAsInt; + + CFXMLEntityTypeCode get entityType => + CFXMLEntityTypeCode.fromValue(entityTypeAsInt); + set entityType(CFXMLEntityTypeCode value) => entityTypeAsInt = value.value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFXMLEntityTypeCode entityType, + }) => $allocator()..ref.entityType = entityType; +} + +enum CFXMLEntityTypeCode { + kCFXMLEntityTypeParameter(0), + kCFXMLEntityTypeParsedInternal(1), + kCFXMLEntityTypeParsedExternal(2), + kCFXMLEntityTypeUnparsed(3), + kCFXMLEntityTypeCharacter(4); + + final int value; + const CFXMLEntityTypeCode(this.value); + + static CFXMLEntityTypeCode fromValue(int value) => switch (value) { + 0 => kCFXMLEntityTypeParameter, + 1 => kCFXMLEntityTypeParsedInternal, + 2 => kCFXMLEntityTypeParsedExternal, + 3 => kCFXMLEntityTypeUnparsed, + 4 => kCFXMLEntityTypeCharacter, + _ => throw ArgumentError('Unknown value for CFXMLEntityTypeCode: $value'), + }; +} + +final class CFXMLExternalID extends ffi.Struct { + external CFURLRef systemID; + + external CFStringRef publicID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFURLRef systemID, + required CFStringRef publicID, + }) => $allocator() + ..ref.systemID = systemID + ..ref.publicID = publicID; +} + +typedef CFXMLNodeRef = ffi.Pointer<__CFXMLNode>; + +enum CFXMLNodeTypeCode { + kCFXMLNodeTypeDocument(1), + kCFXMLNodeTypeElement(2), + kCFXMLNodeTypeAttribute(3), + kCFXMLNodeTypeProcessingInstruction(4), + kCFXMLNodeTypeComment(5), + kCFXMLNodeTypeText(6), + kCFXMLNodeTypeCDATASection(7), + kCFXMLNodeTypeDocumentFragment(8), + kCFXMLNodeTypeEntity(9), + kCFXMLNodeTypeEntityReference(10), + kCFXMLNodeTypeDocumentType(11), + kCFXMLNodeTypeWhitespace(12), + kCFXMLNodeTypeNotation(13), + kCFXMLNodeTypeElementTypeDeclaration(14), + kCFXMLNodeTypeAttributeListDeclaration(15); + + final int value; + const CFXMLNodeTypeCode(this.value); + + static CFXMLNodeTypeCode fromValue(int value) => switch (value) { + 1 => kCFXMLNodeTypeDocument, + 2 => kCFXMLNodeTypeElement, + 3 => kCFXMLNodeTypeAttribute, + 4 => kCFXMLNodeTypeProcessingInstruction, + 5 => kCFXMLNodeTypeComment, + 6 => kCFXMLNodeTypeText, + 7 => kCFXMLNodeTypeCDATASection, + 8 => kCFXMLNodeTypeDocumentFragment, + 9 => kCFXMLNodeTypeEntity, + 10 => kCFXMLNodeTypeEntityReference, + 11 => kCFXMLNodeTypeDocumentType, + 12 => kCFXMLNodeTypeWhitespace, + 13 => kCFXMLNodeTypeNotation, + 14 => kCFXMLNodeTypeElementTypeDeclaration, + 15 => kCFXMLNodeTypeAttributeListDeclaration, + _ => throw ArgumentError('Unknown value for CFXMLNodeTypeCode: $value'), + }; +} + +final class CFXMLNotationInfo extends ffi.Struct { + external CFXMLExternalID externalID; +} + +typedef CFXMLParserAddChildCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFXMLParserRef parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, + ) + > + >; + +final class CFXMLParserCallBacks extends ffi.Struct { + @CFIndex() + external int version; + + external CFXMLParserCreateXMLStructureCallBack createXMLStructure; + + external CFXMLParserAddChildCallBack addChild; + + external CFXMLParserEndXMLStructureCallBack endXMLStructure; + + external CFXMLParserResolveExternalEntityCallBack resolveExternalEntity; + + external CFXMLParserHandleErrorCallBack handleError; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFXMLParserCreateXMLStructureCallBack createXMLStructure, + required CFXMLParserAddChildCallBack addChild, + required CFXMLParserEndXMLStructureCallBack endXMLStructure, + required CFXMLParserResolveExternalEntityCallBack resolveExternalEntity, + required CFXMLParserHandleErrorCallBack handleError, + }) => $allocator() + ..ref.version = version + ..ref.createXMLStructure = createXMLStructure + ..ref.addChild = addChild + ..ref.endXMLStructure = endXMLStructure + ..ref.resolveExternalEntity = resolveExternalEntity + ..ref.handleError = handleError; +} + +final class CFXMLParserContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFXMLParserRetainCallBack retain; + + external CFXMLParserReleaseCallBack release; + + external CFXMLParserCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFXMLParserRetainCallBack retain, + required CFXMLParserReleaseCallBack release, + required CFXMLParserCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef CFXMLParserCopyDescriptionCallBack = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef CFXMLParserCreateXMLStructureCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CFXMLParserRef parser, + CFXMLNodeRef nodeDesc, + ffi.Pointer info, + ) + > + >; +typedef CFXMLParserEndXMLStructureCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFXMLParserRef parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ) + > + >; +typedef CFXMLParserHandleErrorCallBack = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + CFXMLParserRef parser, + CFIndex error, + ffi.Pointer info, + ) + > + >; + +sealed class CFXMLParserOptions { + static const kCFXMLParserValidateDocument = 1; + static const kCFXMLParserSkipMetaData = 2; + static const kCFXMLParserReplacePhysicalEntities = 4; + static const kCFXMLParserSkipWhitespace = 8; + static const kCFXMLParserResolveExternalEntities = 16; + static const kCFXMLParserAddImpliedAttributes = 32; + static const kCFXMLParserAllOptions = 16777215; + static const kCFXMLParserNoOptions = 0; +} + +typedef CFXMLParserRef = ffi.Pointer<__CFXMLParser>; +typedef CFXMLParserReleaseCallBack = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef CFXMLParserResolveExternalEntityCallBack = + ffi.Pointer< + ffi.NativeFunction< + CFDataRef Function( + CFXMLParserRef parser, + ffi.Pointer extID, + ffi.Pointer info, + ) + > + >; +typedef CFXMLParserRetainCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + >; + +sealed class CFXMLParserStatusCode { + static const kCFXMLStatusParseNotBegun = -2; + static const kCFXMLStatusParseInProgress = -1; + static const kCFXMLStatusParseSuccessful = 0; + static const kCFXMLErrorUnexpectedEOF = 1; + static const kCFXMLErrorUnknownEncoding = 2; + static const kCFXMLErrorEncodingConversionFailure = 3; + static const kCFXMLErrorMalformedProcessingInstruction = 4; + static const kCFXMLErrorMalformedDTD = 5; + static const kCFXMLErrorMalformedName = 6; + static const kCFXMLErrorMalformedCDSect = 7; + static const kCFXMLErrorMalformedCloseTag = 8; + static const kCFXMLErrorMalformedStartTag = 9; + static const kCFXMLErrorMalformedDocument = 10; + static const kCFXMLErrorElementlessDocument = 11; + static const kCFXMLErrorMalformedComment = 12; + static const kCFXMLErrorMalformedCharacterReference = 13; + static const kCFXMLErrorMalformedParsedCharacterData = 14; + static const kCFXMLErrorNoData = 15; +} + +final class CFXMLProcessingInstructionInfo extends ffi.Struct { + external CFStringRef dataString; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFStringRef dataString, + }) => + $allocator()..ref.dataString = dataString; +} + +typedef CFXMLTreeRef = CFTreeRef; + +final class CGAffineTransform extends ffi.Struct { + @CGFloat() + external double a; + + @CGFloat() + external double b; + + @CGFloat() + external double c; + + @CGFloat() + external double d; + + @CGFloat() + external double tx; + + @CGFloat() + external double ty; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double a, + required double b, + required double c, + required double d, + required double tx, + required double ty, + }) => $allocator() + ..ref.a = a + ..ref.b = b + ..ref.c = c + ..ref.d = d + ..ref.tx = tx + ..ref.ty = ty; +} + +final class CGAffineTransformComponents extends ffi.Struct { + external objc.CGSize scale; + + @CGFloat() + external double horizontalShear; + + @CGFloat() + external double rotation; + + external CGVector translation; +} + +typedef CGBitmapContextReleaseDataCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer releaseInfo, + ffi.Pointer data, + ) + > + >; + +sealed class CGBitmapInfo { + static const kCGBitmapAlphaInfoMask = 31; + static const kCGBitmapComponentInfoMask = 3840; + static const kCGBitmapByteOrderInfoMask = 28672; + static const kCGBitmapPixelFormatInfoMask = 983040; + static const kCGBitmapFloatInfoMask = 3840; + static const kCGBitmapByteOrderMask = 28672; + static const kCGBitmapFloatComponents = 256; + static const kCGBitmapByteOrderDefault = 0; + static const kCGBitmapByteOrder16Little = 4096; + static const kCGBitmapByteOrder32Little = 8192; + static const kCGBitmapByteOrder16Big = 12288; + static const kCGBitmapByteOrder32Big = 16384; +} + +enum CGBitmapLayout { + kCGBitmapLayoutAlphaOnly(0), + kCGBitmapLayoutGray(1), + kCGBitmapLayoutGrayAlpha(2), + kCGBitmapLayoutRGBA(3), + kCGBitmapLayoutARGB(4), + kCGBitmapLayoutRGBX(5), + kCGBitmapLayoutXRGB(6), + kCGBitmapLayoutBGRA(7), + kCGBitmapLayoutBGRX(8), + kCGBitmapLayoutABGR(9), + kCGBitmapLayoutXBGR(10), + kCGBitmapLayoutCMYK(11); + + final int value; + const CGBitmapLayout(this.value); + + static CGBitmapLayout fromValue(int value) => switch (value) { + 0 => kCGBitmapLayoutAlphaOnly, + 1 => kCGBitmapLayoutGray, + 2 => kCGBitmapLayoutGrayAlpha, + 3 => kCGBitmapLayoutRGBA, + 4 => kCGBitmapLayoutARGB, + 5 => kCGBitmapLayoutRGBX, + 6 => kCGBitmapLayoutXRGB, + 7 => kCGBitmapLayoutBGRA, + 8 => kCGBitmapLayoutBGRX, + 9 => kCGBitmapLayoutABGR, + 10 => kCGBitmapLayoutXBGR, + 11 => kCGBitmapLayoutCMYK, + _ => throw ArgumentError('Unknown value for CGBitmapLayout: $value'), + }; +} + +final class CGBitmapParameters extends ffi.Struct { + @ffi.Size() + external int width; + + @ffi.Size() + external int height; + + @ffi.Size() + external int bytesPerPixel; + + @ffi.Size() + external int alignedBytesPerRow; + + @ffi.Uint32() + external int componentAsInt; + + CGComponent get component => CGComponent.fromValue(componentAsInt); + set component(CGComponent value) => componentAsInt = value.value; + + @ffi.Uint32() + external int layoutAsInt; + + CGBitmapLayout get layout => CGBitmapLayout.fromValue(layoutAsInt); + set layout(CGBitmapLayout value) => layoutAsInt = value.value; + + @ffi.Uint32() + external int formatAsInt; + + CGImagePixelFormatInfo get format => + CGImagePixelFormatInfo.fromValue(formatAsInt); + set format(CGImagePixelFormatInfo value) => formatAsInt = value.value; + + external CGColorSpaceRef colorSpace; + + @ffi.Bool() + external bool hasPremultipliedAlpha; + + @CFByteOrder() + external int byteOrder; + + @ffi.Float() + external double edrTargetHeadroom; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int width, + required int height, + required int bytesPerPixel, + required int alignedBytesPerRow, + required CGComponent component, + required CGBitmapLayout layout, + required CGImagePixelFormatInfo format, + required CGColorSpaceRef colorSpace, + required bool hasPremultipliedAlpha, + required int byteOrder, + required double edrTargetHeadroom, + }) => $allocator() + ..ref.width = width + ..ref.height = height + ..ref.bytesPerPixel = bytesPerPixel + ..ref.alignedBytesPerRow = alignedBytesPerRow + ..ref.component = component + ..ref.layout = layout + ..ref.format = format + ..ref.colorSpace = colorSpace + ..ref.hasPremultipliedAlpha = hasPremultipliedAlpha + ..ref.byteOrder = byteOrder + ..ref.edrTargetHeadroom = edrTargetHeadroom; +} + +enum CGBlendMode { + kCGBlendModeNormal(0), + kCGBlendModeMultiply(1), + kCGBlendModeScreen(2), + kCGBlendModeOverlay(3), + kCGBlendModeDarken(4), + kCGBlendModeLighten(5), + kCGBlendModeColorDodge(6), + kCGBlendModeColorBurn(7), + kCGBlendModeSoftLight(8), + kCGBlendModeHardLight(9), + kCGBlendModeDifference(10), + kCGBlendModeExclusion(11), + kCGBlendModeHue(12), + kCGBlendModeSaturation(13), + kCGBlendModeColor(14), + kCGBlendModeLuminosity(15), + kCGBlendModeClear(16), + kCGBlendModeCopy(17), + kCGBlendModeSourceIn(18), + kCGBlendModeSourceOut(19), + kCGBlendModeSourceAtop(20), + kCGBlendModeDestinationOver(21), + kCGBlendModeDestinationIn(22), + kCGBlendModeDestinationOut(23), + kCGBlendModeDestinationAtop(24), + kCGBlendModeXOR(25), + kCGBlendModePlusDarker(26), + kCGBlendModePlusLighter(27); + + final int value; + const CGBlendMode(this.value); + + static CGBlendMode fromValue(int value) => switch (value) { + 0 => kCGBlendModeNormal, + 1 => kCGBlendModeMultiply, + 2 => kCGBlendModeScreen, + 3 => kCGBlendModeOverlay, + 4 => kCGBlendModeDarken, + 5 => kCGBlendModeLighten, + 6 => kCGBlendModeColorDodge, + 7 => kCGBlendModeColorBurn, + 8 => kCGBlendModeSoftLight, + 9 => kCGBlendModeHardLight, + 10 => kCGBlendModeDifference, + 11 => kCGBlendModeExclusion, + 12 => kCGBlendModeHue, + 13 => kCGBlendModeSaturation, + 14 => kCGBlendModeColor, + 15 => kCGBlendModeLuminosity, + 16 => kCGBlendModeClear, + 17 => kCGBlendModeCopy, + 18 => kCGBlendModeSourceIn, + 19 => kCGBlendModeSourceOut, + 20 => kCGBlendModeSourceAtop, + 21 => kCGBlendModeDestinationOver, + 22 => kCGBlendModeDestinationIn, + 23 => kCGBlendModeDestinationOut, + 24 => kCGBlendModeDestinationAtop, + 25 => kCGBlendModeXOR, + 26 => kCGBlendModePlusDarker, + 27 => kCGBlendModePlusLighter, + _ => throw ArgumentError('Unknown value for CGBlendMode: $value'), + }; +} + +typedef CGButtonCount = ffi.Uint32; +typedef DartCGButtonCount = int; + +sealed class CGCaptureOptions { + static const kCGCaptureNoOptions = 0; + static const kCGCaptureNoFill = 1; +} + +typedef CGCharCode = ffi.Uint16; +typedef DartCGCharCode = int; + +final class CGColor extends ffi.Opaque {} + +final class CGColorBufferFormat extends ffi.Struct { + @ffi.Uint32() + external int version; + + @ffi.Uint32() + external int bitmapInfo; + + @ffi.Size() + external int bitsPerComponent; + + @ffi.Size() + external int bitsPerPixel; + + @ffi.Size() + external int bytesPerRow; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int bitmapInfo, + required int bitsPerComponent, + required int bitsPerPixel, + required int bytesPerRow, + }) => $allocator() + ..ref.version = version + ..ref.bitmapInfo = bitmapInfo + ..ref.bitsPerComponent = bitsPerComponent + ..ref.bitsPerPixel = bitsPerPixel + ..ref.bytesPerRow = bytesPerRow; +} + +final class CGColorConversionInfo extends ffi.Opaque {} + +typedef CGColorConversionInfoRef = ffi.Pointer; + +enum CGColorConversionInfoTransformType { + kCGColorConversionTransformFromSpace(0), + kCGColorConversionTransformToSpace(1), + kCGColorConversionTransformApplySpace(2); + + final int value; + const CGColorConversionInfoTransformType(this.value); + + static CGColorConversionInfoTransformType fromValue(int value) => + switch (value) { + 0 => kCGColorConversionTransformFromSpace, + 1 => kCGColorConversionTransformToSpace, + 2 => kCGColorConversionTransformApplySpace, + _ => throw ArgumentError( + 'Unknown value for CGColorConversionInfoTransformType: $value', + ), + }; +} + +final class CGColorDataFormat extends ffi.Struct { + @ffi.Uint32() + external int version; + + external CFTypeRef colorspace_info; + + @ffi.Uint32() + external int bitmap_info; + + @ffi.Size() + external int bits_per_component; + + @ffi.Size() + external int bytes_per_row; + + @ffi.Int32() + external int intentAsInt; + + CGColorRenderingIntent get intent => + CGColorRenderingIntent.fromValue(intentAsInt); + set intent(CGColorRenderingIntent value) => intentAsInt = value.value; + + external ffi.Pointer decode; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CFTypeRef colorspace_info, + required int bitmap_info, + required int bits_per_component, + required int bytes_per_row, + required CGColorRenderingIntent intent, + required ffi.Pointer decode, + }) => $allocator() + ..ref.version = version + ..ref.colorspace_info = colorspace_info + ..ref.bitmap_info = bitmap_info + ..ref.bits_per_component = bits_per_component + ..ref.bytes_per_row = bytes_per_row + ..ref.intent = intent + ..ref.decode = decode; +} + +sealed class CGColorModel { + static const kCGColorModelNoColorant = 0; + static const kCGColorModelGray = 1; + static const kCGColorModelRGB = 2; + static const kCGColorModelCMYK = 4; + static const kCGColorModelLab = 8; + static const kCGColorModelDeviceN = 16; +} + +typedef CGColorRef = ffi.Pointer; + +enum CGColorRenderingIntent { + kCGRenderingIntentDefault(0), + kCGRenderingIntentAbsoluteColorimetric(1), + kCGRenderingIntentRelativeColorimetric(2), + kCGRenderingIntentPerceptual(3), + kCGRenderingIntentSaturation(4); + + final int value; + const CGColorRenderingIntent(this.value); + + static CGColorRenderingIntent fromValue(int value) => switch (value) { + 0 => kCGRenderingIntentDefault, + 1 => kCGRenderingIntentAbsoluteColorimetric, + 2 => kCGRenderingIntentRelativeColorimetric, + 3 => kCGRenderingIntentPerceptual, + 4 => kCGRenderingIntentSaturation, + _ => throw ArgumentError( + 'Unknown value for CGColorRenderingIntent: $value', + ), + }; +} + +final class CGColorSpace extends ffi.Opaque {} + +enum CGColorSpaceModel { + kCGColorSpaceModelUnknown(-1), + kCGColorSpaceModelMonochrome(0), + kCGColorSpaceModelRGB(1), + kCGColorSpaceModelCMYK(2), + kCGColorSpaceModelLab(3), + kCGColorSpaceModelDeviceN(4), + kCGColorSpaceModelIndexed(5), + kCGColorSpaceModelPattern(6), + kCGColorSpaceModelXYZ(7); + + final int value; + const CGColorSpaceModel(this.value); + + static CGColorSpaceModel fromValue(int value) => switch (value) { + -1 => kCGColorSpaceModelUnknown, + 0 => kCGColorSpaceModelMonochrome, + 1 => kCGColorSpaceModelRGB, + 2 => kCGColorSpaceModelCMYK, + 3 => kCGColorSpaceModelLab, + 4 => kCGColorSpaceModelDeviceN, + 5 => kCGColorSpaceModelIndexed, + 6 => kCGColorSpaceModelPattern, + 7 => kCGColorSpaceModelXYZ, + _ => throw ArgumentError('Unknown value for CGColorSpaceModel: $value'), + }; +} + +typedef CGColorSpaceRef = ffi.Pointer; + +enum CGComponent { + kCGComponentUnknown(0), + kCGComponentInteger8Bit(1), + kCGComponentInteger10Bit(6), + kCGComponentInteger16Bit(2), + kCGComponentInteger32Bit(3), + kCGComponentFloat16Bit(5), + kCGComponentFloat32Bit(4); + + final int value; + const CGComponent(this.value); + + static CGComponent fromValue(int value) => switch (value) { + 0 => kCGComponentUnknown, + 1 => kCGComponentInteger8Bit, + 6 => kCGComponentInteger10Bit, + 2 => kCGComponentInteger16Bit, + 3 => kCGComponentInteger32Bit, + 5 => kCGComponentFloat16Bit, + 4 => kCGComponentFloat32Bit, + _ => throw ArgumentError('Unknown value for CGComponent: $value'), + }; +} + +sealed class CGConfigureOption { + static const kCGConfigureForAppOnly = 0; + static const kCGConfigureForSession = 1; + static const kCGConfigurePermanently = 2; +} + +final class CGContentInfo extends ffi.Struct { + @ffi.Uint32() + external int deepestImageComponentAsInt; + + CGComponent get deepestImageComponent => + CGComponent.fromValue(deepestImageComponentAsInt); + set deepestImageComponent(CGComponent value) => + deepestImageComponentAsInt = value.value; + + @ffi.Uint32() + external int contentColorModels; + + @ffi.Bool() + external bool hasWideGamut; + + @ffi.Bool() + external bool hasTransparency; + + @ffi.Float() + external double largestContentHeadroom; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CGComponent deepestImageComponent, + required int contentColorModels, + required bool hasWideGamut, + required bool hasTransparency, + required double largestContentHeadroom, + }) => $allocator() + ..ref.deepestImageComponent = deepestImageComponent + ..ref.contentColorModels = contentColorModels + ..ref.hasWideGamut = hasWideGamut + ..ref.hasTransparency = hasTransparency + ..ref.largestContentHeadroom = largestContentHeadroom; +} + +final class CGContentToneMappingInfo extends ffi.Struct { + @ffi.Uint32() + external int methodAsInt; + + CGToneMapping get method => CGToneMapping.fromValue(methodAsInt); + set method(CGToneMapping value) => methodAsInt = value.value; + + external CFDictionaryRef options; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CGToneMapping method, + required CFDictionaryRef options, + }) => $allocator() + ..ref.method = method + ..ref.options = options; +} + +final class CGContext extends ffi.Opaque {} + +typedef CGContextRef = ffi.Pointer; + +final class CGDataConsumer extends ffi.Opaque {} + +final class CGDataConsumerCallbacks extends ffi.Struct { + external CGDataConsumerPutBytesCallback putBytes; + + external CGDataConsumerReleaseInfoCallback releaseConsumer; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CGDataConsumerPutBytesCallback putBytes, + required CGDataConsumerReleaseInfoCallback releaseConsumer, + }) => $allocator() + ..ref.putBytes = putBytes + ..ref.releaseConsumer = releaseConsumer; +} + +typedef CGDataConsumerPutBytesCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + ffi.Size count, + ) + > + >; +typedef CGDataConsumerRef = ffi.Pointer; +typedef CGDataConsumerReleaseInfoCallback = + ffi.Pointer< + ffi.NativeFunction info)> + >; + +final class CGDataProvider extends ffi.Opaque {} + +final class CGDataProviderDirectCallbacks extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external CGDataProviderGetBytePointerCallback getBytePointer; + + external CGDataProviderReleaseBytePointerCallback releaseBytePointer; + + external CGDataProviderGetBytesAtPositionCallback getBytesAtPosition; + + external CGDataProviderReleaseInfoCallback releaseInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CGDataProviderGetBytePointerCallback getBytePointer, + required CGDataProviderReleaseBytePointerCallback releaseBytePointer, + required CGDataProviderGetBytesAtPositionCallback getBytesAtPosition, + required CGDataProviderReleaseInfoCallback releaseInfo, + }) => $allocator() + ..ref.version = version + ..ref.getBytePointer = getBytePointer + ..ref.releaseBytePointer = releaseBytePointer + ..ref.getBytesAtPosition = getBytesAtPosition + ..ref.releaseInfo = releaseInfo; +} + +typedef CGDataProviderGetBytePointerCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + >; +typedef CGDataProviderGetBytesAtPositionCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + off_t pos, + ffi.Size cnt, + ) + > + >; +typedef CGDataProviderGetBytesCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + ffi.Size count, + ) + > + >; +typedef CGDataProviderRef = ffi.Pointer; +typedef CGDataProviderReleaseBytePointerCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer pointer, + ) + > + >; +typedef CGDataProviderReleaseDataCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer data, + ffi.Size size, + ) + > + >; +typedef CGDataProviderReleaseInfoCallback = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef CGDataProviderRewindCallback = + ffi.Pointer< + ffi.NativeFunction info)> + >; + +final class CGDataProviderSequentialCallbacks extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external CGDataProviderGetBytesCallback getBytes; + + external CGDataProviderSkipForwardCallback skipForward; + + external CGDataProviderRewindCallback rewind$1; + + external CGDataProviderReleaseInfoCallback releaseInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CGDataProviderGetBytesCallback getBytes, + required CGDataProviderSkipForwardCallback skipForward, + required CGDataProviderRewindCallback rewind$1, + required CGDataProviderReleaseInfoCallback releaseInfo, + }) => $allocator() + ..ref.version = version + ..ref.getBytes = getBytes + ..ref.skipForward = skipForward + ..ref.rewind$1 = rewind$1 + ..ref.releaseInfo = releaseInfo; +} + +typedef CGDataProviderSkipForwardCallback = + ffi.Pointer< + ffi.NativeFunction< + off_t Function(ffi.Pointer info, off_t count) + > + >; + +final class CGDeviceColor extends ffi.Struct { + @ffi.Float() + external double red; + + @ffi.Float() + external double green; + + @ffi.Float() + external double blue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double red, + required double green, + required double blue, + }) => $allocator() + ..ref.red = red + ..ref.green = green + ..ref.blue = blue; +} + +typedef CGDirectDisplayID = ffi.Uint32; +typedef DartCGDirectDisplayID = int; +typedef CGDisplayBlendFraction = ffi.Float; +typedef DartCGDisplayBlendFraction = double; + +sealed class CGDisplayChangeSummaryFlags { + static const kCGDisplayBeginConfigurationFlag = 1; + static const kCGDisplayMovedFlag = 2; + static const kCGDisplaySetMainFlag = 4; + static const kCGDisplaySetModeFlag = 8; + static const kCGDisplayAddFlag = 16; + static const kCGDisplayRemoveFlag = 32; + static const kCGDisplayEnabledFlag = 256; + static const kCGDisplayDisabledFlag = 512; + static const kCGDisplayMirrorFlag = 1024; + static const kCGDisplayUnMirrorFlag = 2048; + static const kCGDisplayDesktopShapeChangedFlag = 4096; +} + +typedef CGDisplayConfigRef = ffi.Pointer<_CGDisplayConfigRef>; +typedef CGDisplayCount = ffi.Uint32; +typedef DartCGDisplayCount = int; +typedef CGDisplayFadeInterval = ffi.Float; +typedef DartCGDisplayFadeInterval = double; +typedef CGDisplayFadeReservationToken = ffi.Uint32; +typedef DartCGDisplayFadeReservationToken = int; + +final class CGDisplayMode extends ffi.Opaque {} + +typedef CGDisplayModeRef = ffi.Pointer; +typedef CGDisplayReconfigurationCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CGDirectDisplayID display, + ffi.Uint32 flags, + ffi.Pointer userInfo, + ) + > + >; +typedef CGDisplayReservationInterval = ffi.Float; +typedef DartCGDisplayReservationInterval = double; + +final class CGDisplayStream extends ffi.Opaque {} + +typedef CGDisplayStreamFrameAvailableHandler = ffi.Pointer; +typedef DartCGDisplayStreamFrameAvailableHandler = + objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >; + +enum CGDisplayStreamFrameStatus { + kCGDisplayStreamFrameStatusFrameComplete(0), + kCGDisplayStreamFrameStatusFrameIdle(1), + kCGDisplayStreamFrameStatusFrameBlank(2), + kCGDisplayStreamFrameStatusStopped(3); + + final int value; + const CGDisplayStreamFrameStatus(this.value); + + static CGDisplayStreamFrameStatus fromValue(int value) => switch (value) { + 0 => kCGDisplayStreamFrameStatusFrameComplete, + 1 => kCGDisplayStreamFrameStatusFrameIdle, + 2 => kCGDisplayStreamFrameStatusFrameBlank, + 3 => kCGDisplayStreamFrameStatusStopped, + _ => throw ArgumentError( + 'Unknown value for CGDisplayStreamFrameStatus: $value', + ), + }; +} + +typedef CGDisplayStreamRef = ffi.Pointer; + +final class CGDisplayStreamUpdate extends ffi.Opaque {} + +enum CGDisplayStreamUpdateRectType { + kCGDisplayStreamUpdateRefreshedRects(0), + kCGDisplayStreamUpdateMovedRects(1), + kCGDisplayStreamUpdateDirtyRects(2), + kCGDisplayStreamUpdateReducedDirtyRects(3); + + final int value; + const CGDisplayStreamUpdateRectType(this.value); + + static CGDisplayStreamUpdateRectType fromValue(int value) => switch (value) { + 0 => kCGDisplayStreamUpdateRefreshedRects, + 1 => kCGDisplayStreamUpdateMovedRects, + 2 => kCGDisplayStreamUpdateDirtyRects, + 3 => kCGDisplayStreamUpdateReducedDirtyRects, + _ => throw ArgumentError( + 'Unknown value for CGDisplayStreamUpdateRectType: $value', + ), + }; +} + +typedef CGDisplayStreamUpdateRef = ffi.Pointer; + +enum CGError { + kCGErrorSuccess(0), + kCGErrorFailure(1000), + kCGErrorIllegalArgument(1001), + kCGErrorInvalidConnection(1002), + kCGErrorInvalidContext(1003), + kCGErrorCannotComplete(1004), + kCGErrorNotImplemented(1006), + kCGErrorRangeCheck(1007), + kCGErrorTypeCheck(1008), + kCGErrorInvalidOperation(1010), + kCGErrorNoneAvailable(1011); + + final int value; + const CGError(this.value); + + static CGError fromValue(int value) => switch (value) { + 0 => kCGErrorSuccess, + 1000 => kCGErrorFailure, + 1001 => kCGErrorIllegalArgument, + 1002 => kCGErrorInvalidConnection, + 1003 => kCGErrorInvalidContext, + 1004 => kCGErrorCannotComplete, + 1006 => kCGErrorNotImplemented, + 1007 => kCGErrorRangeCheck, + 1008 => kCGErrorTypeCheck, + 1010 => kCGErrorInvalidOperation, + 1011 => kCGErrorNoneAvailable, + _ => throw ArgumentError('Unknown value for CGError: $value'), + }; +} + +typedef CGErrorCallback = ffi.Pointer>; + +enum CGEventField { + kCGMouseEventNumber(0), + kCGMouseEventClickState(1), + kCGMouseEventPressure(2), + kCGMouseEventButtonNumber(3), + kCGMouseEventDeltaX(4), + kCGMouseEventDeltaY(5), + kCGMouseEventInstantMouser(6), + kCGMouseEventSubtype(7), + kCGKeyboardEventAutorepeat(8), + kCGKeyboardEventKeycode(9), + kCGKeyboardEventKeyboardType(10), + kCGScrollWheelEventDeltaAxis1(11), + kCGScrollWheelEventDeltaAxis2(12), + kCGScrollWheelEventDeltaAxis3(13), + kCGScrollWheelEventFixedPtDeltaAxis1(93), + kCGScrollWheelEventFixedPtDeltaAxis2(94), + kCGScrollWheelEventFixedPtDeltaAxis3(95), + kCGScrollWheelEventPointDeltaAxis1(96), + kCGScrollWheelEventPointDeltaAxis2(97), + kCGScrollWheelEventPointDeltaAxis3(98), + kCGScrollWheelEventScrollPhase(99), + kCGScrollWheelEventScrollCount(100), + kCGScrollWheelEventMomentumPhase(123), + kCGScrollWheelEventInstantMouser(14), + kCGTabletEventPointX(15), + kCGTabletEventPointY(16), + kCGTabletEventPointZ(17), + kCGTabletEventPointButtons(18), + kCGTabletEventPointPressure(19), + kCGTabletEventTiltX(20), + kCGTabletEventTiltY(21), + kCGTabletEventRotation(22), + kCGTabletEventTangentialPressure(23), + kCGTabletEventDeviceID(24), + kCGTabletEventVendor1(25), + kCGTabletEventVendor2(26), + kCGTabletEventVendor3(27), + kCGTabletProximityEventVendorID(28), + kCGTabletProximityEventTabletID(29), + kCGTabletProximityEventPointerID(30), + kCGTabletProximityEventDeviceID(31), + kCGTabletProximityEventSystemTabletID(32), + kCGTabletProximityEventVendorPointerType(33), + kCGTabletProximityEventVendorPointerSerialNumber(34), + kCGTabletProximityEventVendorUniqueID(35), + kCGTabletProximityEventCapabilityMask(36), + kCGTabletProximityEventPointerType(37), + kCGTabletProximityEventEnterProximity(38), + kCGEventTargetProcessSerialNumber(39), + kCGEventTargetUnixProcessID(40), + kCGEventSourceUnixProcessID(41), + kCGEventSourceUserData(42), + kCGEventSourceUserID(43), + kCGEventSourceGroupID(44), + kCGEventSourceStateID(45), + kCGScrollWheelEventIsContinuous(88), + kCGMouseEventWindowUnderMousePointer(91), + kCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent(92), + kCGEventUnacceleratedPointerMovementX(170), + kCGEventUnacceleratedPointerMovementY(171), + kCGScrollWheelEventMomentumOptionPhase(173), + kCGScrollWheelEventAcceleratedDeltaAxis1(176), + kCGScrollWheelEventAcceleratedDeltaAxis2(175), + kCGScrollWheelEventRawDeltaAxis1(178), + kCGScrollWheelEventRawDeltaAxis2(177); + + final int value; + const CGEventField(this.value); + + static CGEventField fromValue(int value) => switch (value) { + 0 => kCGMouseEventNumber, + 1 => kCGMouseEventClickState, + 2 => kCGMouseEventPressure, + 3 => kCGMouseEventButtonNumber, + 4 => kCGMouseEventDeltaX, + 5 => kCGMouseEventDeltaY, + 6 => kCGMouseEventInstantMouser, + 7 => kCGMouseEventSubtype, + 8 => kCGKeyboardEventAutorepeat, + 9 => kCGKeyboardEventKeycode, + 10 => kCGKeyboardEventKeyboardType, + 11 => kCGScrollWheelEventDeltaAxis1, + 12 => kCGScrollWheelEventDeltaAxis2, + 13 => kCGScrollWheelEventDeltaAxis3, + 93 => kCGScrollWheelEventFixedPtDeltaAxis1, + 94 => kCGScrollWheelEventFixedPtDeltaAxis2, + 95 => kCGScrollWheelEventFixedPtDeltaAxis3, + 96 => kCGScrollWheelEventPointDeltaAxis1, + 97 => kCGScrollWheelEventPointDeltaAxis2, + 98 => kCGScrollWheelEventPointDeltaAxis3, + 99 => kCGScrollWheelEventScrollPhase, + 100 => kCGScrollWheelEventScrollCount, + 123 => kCGScrollWheelEventMomentumPhase, + 14 => kCGScrollWheelEventInstantMouser, + 15 => kCGTabletEventPointX, + 16 => kCGTabletEventPointY, + 17 => kCGTabletEventPointZ, + 18 => kCGTabletEventPointButtons, + 19 => kCGTabletEventPointPressure, + 20 => kCGTabletEventTiltX, + 21 => kCGTabletEventTiltY, + 22 => kCGTabletEventRotation, + 23 => kCGTabletEventTangentialPressure, + 24 => kCGTabletEventDeviceID, + 25 => kCGTabletEventVendor1, + 26 => kCGTabletEventVendor2, + 27 => kCGTabletEventVendor3, + 28 => kCGTabletProximityEventVendorID, + 29 => kCGTabletProximityEventTabletID, + 30 => kCGTabletProximityEventPointerID, + 31 => kCGTabletProximityEventDeviceID, + 32 => kCGTabletProximityEventSystemTabletID, + 33 => kCGTabletProximityEventVendorPointerType, + 34 => kCGTabletProximityEventVendorPointerSerialNumber, + 35 => kCGTabletProximityEventVendorUniqueID, + 36 => kCGTabletProximityEventCapabilityMask, + 37 => kCGTabletProximityEventPointerType, + 38 => kCGTabletProximityEventEnterProximity, + 39 => kCGEventTargetProcessSerialNumber, + 40 => kCGEventTargetUnixProcessID, + 41 => kCGEventSourceUnixProcessID, + 42 => kCGEventSourceUserData, + 43 => kCGEventSourceUserID, + 44 => kCGEventSourceGroupID, + 45 => kCGEventSourceStateID, + 88 => kCGScrollWheelEventIsContinuous, + 91 => kCGMouseEventWindowUnderMousePointer, + 92 => kCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent, + 170 => kCGEventUnacceleratedPointerMovementX, + 171 => kCGEventUnacceleratedPointerMovementY, + 173 => kCGScrollWheelEventMomentumOptionPhase, + 176 => kCGScrollWheelEventAcceleratedDeltaAxis1, + 175 => kCGScrollWheelEventAcceleratedDeltaAxis2, + 178 => kCGScrollWheelEventRawDeltaAxis1, + 177 => kCGScrollWheelEventRawDeltaAxis2, + _ => throw ArgumentError('Unknown value for CGEventField: $value'), + }; +} + +sealed class CGEventFilterMask { + static const kCGEventFilterMaskPermitLocalMouseEvents = 1; + static const kCGEventFilterMaskPermitLocalKeyboardEvents = 2; + static const kCGEventFilterMaskPermitSystemDefinedEvents = 4; +} + +sealed class CGEventFlags { + static const kCGEventFlagMaskAlphaShift = 65536; + static const kCGEventFlagMaskShift = 131072; + static const kCGEventFlagMaskControl = 262144; + static const kCGEventFlagMaskAlternate = 524288; + static const kCGEventFlagMaskCommand = 1048576; + static const kCGEventFlagMaskHelp = 4194304; + static const kCGEventFlagMaskSecondaryFn = 8388608; + static const kCGEventFlagMaskNumericPad = 2097152; + static const kCGEventFlagMaskNonCoalesced = 256; +} + +typedef CGEventMask = ffi.Uint64; +typedef DartCGEventMask = int; + +enum CGEventMouseSubtype { + kCGEventMouseSubtypeDefault(0), + kCGEventMouseSubtypeTabletPoint(1), + kCGEventMouseSubtypeTabletProximity(2); + + final int value; + const CGEventMouseSubtype(this.value); + + static CGEventMouseSubtype fromValue(int value) => switch (value) { + 0 => kCGEventMouseSubtypeDefault, + 1 => kCGEventMouseSubtypeTabletPoint, + 2 => kCGEventMouseSubtypeTabletProximity, + _ => throw ArgumentError('Unknown value for CGEventMouseSubtype: $value'), + }; +} + +typedef CGEventRef = ffi.Pointer<__CGEvent>; +typedef CGEventSourceKeyboardType = ffi.Uint32; +typedef DartCGEventSourceKeyboardType = int; +typedef CGEventSourceRef = ffi.Pointer<__CGEventSource>; + +enum CGEventSourceStateID { + kCGEventSourceStatePrivate(-1), + kCGEventSourceStateCombinedSessionState(0), + kCGEventSourceStateHIDSystemState(1); + + final int value; + const CGEventSourceStateID(this.value); + + static CGEventSourceStateID fromValue(int value) => switch (value) { + -1 => kCGEventSourceStatePrivate, + 0 => kCGEventSourceStateCombinedSessionState, + 1 => kCGEventSourceStateHIDSystemState, + _ => throw ArgumentError('Unknown value for CGEventSourceStateID: $value'), + }; +} + +enum CGEventSuppressionState { + kCGEventSuppressionStateSuppressionInterval(0), + kCGEventSuppressionStateRemoteMouseDrag(1), + kCGNumberOfEventSuppressionStates(2); + + final int value; + const CGEventSuppressionState(this.value); + + static CGEventSuppressionState fromValue(int value) => switch (value) { + 0 => kCGEventSuppressionStateSuppressionInterval, + 1 => kCGEventSuppressionStateRemoteMouseDrag, + 2 => kCGNumberOfEventSuppressionStates, + _ => throw ArgumentError( + 'Unknown value for CGEventSuppressionState: $value', + ), + }; +} + +typedef CGEventTapCallBack = + ffi.Pointer< + ffi.NativeFunction< + CGEventRef Function( + CGEventTapProxy proxy, + ffi.Uint32 type, + CGEventRef event, + ffi.Pointer userInfo, + ) + > + >; +typedef CGEventTapInformation = __CGEventTapInformation; + +enum CGEventTapLocation { + kCGHIDEventTap(0), + kCGSessionEventTap(1), + kCGAnnotatedSessionEventTap(2); + + final int value; + const CGEventTapLocation(this.value); + + static CGEventTapLocation fromValue(int value) => switch (value) { + 0 => kCGHIDEventTap, + 1 => kCGSessionEventTap, + 2 => kCGAnnotatedSessionEventTap, + _ => throw ArgumentError('Unknown value for CGEventTapLocation: $value'), + }; +} + +enum CGEventTapOptions { + kCGEventTapOptionDefault(0), + kCGEventTapOptionListenOnly(1); + + final int value; + const CGEventTapOptions(this.value); + + static CGEventTapOptions fromValue(int value) => switch (value) { + 0 => kCGEventTapOptionDefault, + 1 => kCGEventTapOptionListenOnly, + _ => throw ArgumentError('Unknown value for CGEventTapOptions: $value'), + }; +} + +enum CGEventTapPlacement { + kCGHeadInsertEventTap(0), + kCGTailAppendEventTap(1); + + final int value; + const CGEventTapPlacement(this.value); + + static CGEventTapPlacement fromValue(int value) => switch (value) { + 0 => kCGHeadInsertEventTap, + 1 => kCGTailAppendEventTap, + _ => throw ArgumentError('Unknown value for CGEventTapPlacement: $value'), + }; +} + +typedef CGEventTapProxy = ffi.Pointer<__CGEventTapProxy>; +typedef CGEventTimestamp = ffi.Uint64; +typedef DartCGEventTimestamp = int; + +enum CGEventType { + kCGEventNull(0), + kCGEventLeftMouseDown(1), + kCGEventLeftMouseUp(2), + kCGEventRightMouseDown(3), + kCGEventRightMouseUp(4), + kCGEventMouseMoved(5), + kCGEventLeftMouseDragged(6), + kCGEventRightMouseDragged(7), + kCGEventKeyDown(10), + kCGEventKeyUp(11), + kCGEventFlagsChanged(12), + kCGEventScrollWheel(22), + kCGEventTabletPointer(23), + kCGEventTabletProximity(24), + kCGEventOtherMouseDown(25), + kCGEventOtherMouseUp(26), + kCGEventOtherMouseDragged(27), + kCGEventTapDisabledByTimeout(-2), + kCGEventTapDisabledByUserInput(-1); + + final int value; + const CGEventType(this.value); + + static CGEventType fromValue(int value) => switch (value) { + 0 => kCGEventNull, + 1 => kCGEventLeftMouseDown, + 2 => kCGEventLeftMouseUp, + 3 => kCGEventRightMouseDown, + 4 => kCGEventRightMouseUp, + 5 => kCGEventMouseMoved, + 6 => kCGEventLeftMouseDragged, + 7 => kCGEventRightMouseDragged, + 10 => kCGEventKeyDown, + 11 => kCGEventKeyUp, + 12 => kCGEventFlagsChanged, + 22 => kCGEventScrollWheel, + 23 => kCGEventTabletPointer, + 24 => kCGEventTabletProximity, + 25 => kCGEventOtherMouseDown, + 26 => kCGEventOtherMouseUp, + 27 => kCGEventOtherMouseDragged, + -2 => kCGEventTapDisabledByTimeout, + -1 => kCGEventTapDisabledByUserInput, + _ => throw ArgumentError('Unknown value for CGEventType: $value'), + }; +} + +typedef CGFloat = ffi.Double; +typedef DartCGFloat = double; + +final class CGFont extends ffi.Opaque {} + +typedef CGFontIndex = ffi.UnsignedShort; +typedef DartCGFontIndex = int; + +enum CGFontPostScriptFormat { + kCGFontPostScriptFormatType1(1), + kCGFontPostScriptFormatType3(3), + kCGFontPostScriptFormatType42(42); + + final int value; + const CGFontPostScriptFormat(this.value); + + static CGFontPostScriptFormat fromValue(int value) => switch (value) { + 1 => kCGFontPostScriptFormatType1, + 3 => kCGFontPostScriptFormatType3, + 42 => kCGFontPostScriptFormatType42, + _ => throw ArgumentError( + 'Unknown value for CGFontPostScriptFormat: $value', + ), + }; +} + +typedef CGFontRef = ffi.Pointer; + +final class CGFunction extends ffi.Opaque {} + +final class CGFunctionCallbacks extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external CGFunctionEvaluateCallback evaluate; + + external CGFunctionReleaseInfoCallback releaseInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CGFunctionEvaluateCallback evaluate, + required CGFunctionReleaseInfoCallback releaseInfo, + }) => $allocator() + ..ref.version = version + ..ref.evaluate = evaluate + ..ref.releaseInfo = releaseInfo; +} + +typedef CGFunctionEvaluateCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer in$, + ffi.Pointer out, + ) + > + >; +typedef CGFunctionRef = ffi.Pointer; +typedef CGFunctionReleaseInfoCallback = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef CGGammaValue = ffi.Float; +typedef DartCGGammaValue = double; + +enum CGGesturePhase { + kCGGesturePhaseNone(0), + kCGGesturePhaseBegan(1), + kCGGesturePhaseChanged(2), + kCGGesturePhaseEnded(4), + kCGGesturePhaseCancelled(8), + kCGGesturePhaseMayBegin(128); + + final int value; + const CGGesturePhase(this.value); + + static CGGesturePhase fromValue(int value) => switch (value) { + 0 => kCGGesturePhaseNone, + 1 => kCGGesturePhaseBegan, + 2 => kCGGesturePhaseChanged, + 4 => kCGGesturePhaseEnded, + 8 => kCGGesturePhaseCancelled, + 128 => kCGGesturePhaseMayBegin, + _ => throw ArgumentError('Unknown value for CGGesturePhase: $value'), + }; +} + +typedef CGGlyph = CGFontIndex; + +enum CGGlyphDeprecatedEnum { + CGGlyphMin(0), + CGGlyphMax(1); + + final int value; + const CGGlyphDeprecatedEnum(this.value); + + static CGGlyphDeprecatedEnum fromValue(int value) => switch (value) { + 0 => CGGlyphMin, + 1 => CGGlyphMax, + _ => throw ArgumentError('Unknown value for CGGlyphDeprecatedEnum: $value'), + }; +} + +final class CGGradient extends ffi.Opaque {} + +sealed class CGGradientDrawingOptions { + static const kCGGradientDrawsBeforeStartLocation = 1; + static const kCGGradientDrawsAfterEndLocation = 2; +} + +typedef CGGradientRef = ffi.Pointer; + +final class CGImage extends ffi.Opaque {} + +enum CGImageAlphaInfo { + kCGImageAlphaNone(0), + kCGImageAlphaPremultipliedLast(1), + kCGImageAlphaPremultipliedFirst(2), + kCGImageAlphaLast(3), + kCGImageAlphaFirst(4), + kCGImageAlphaNoneSkipLast(5), + kCGImageAlphaNoneSkipFirst(6), + kCGImageAlphaOnly(7); + + final int value; + const CGImageAlphaInfo(this.value); + + static CGImageAlphaInfo fromValue(int value) => switch (value) { + 0 => kCGImageAlphaNone, + 1 => kCGImageAlphaPremultipliedLast, + 2 => kCGImageAlphaPremultipliedFirst, + 3 => kCGImageAlphaLast, + 4 => kCGImageAlphaFirst, + 5 => kCGImageAlphaNoneSkipLast, + 6 => kCGImageAlphaNoneSkipFirst, + 7 => kCGImageAlphaOnly, + _ => throw ArgumentError('Unknown value for CGImageAlphaInfo: $value'), + }; +} + +enum CGImageAnimationStatus { + kCGImageAnimationStatus_ParameterError(-22140), + kCGImageAnimationStatus_CorruptInputImage(-22141), + kCGImageAnimationStatus_UnsupportedFormat(-22142), + kCGImageAnimationStatus_IncompleteInputImage(-22143), + kCGImageAnimationStatus_AllocationFailure(-22144); + + final int value; + const CGImageAnimationStatus(this.value); + + static CGImageAnimationStatus fromValue(int value) => switch (value) { + -22140 => kCGImageAnimationStatus_ParameterError, + -22141 => kCGImageAnimationStatus_CorruptInputImage, + -22142 => kCGImageAnimationStatus_UnsupportedFormat, + -22143 => kCGImageAnimationStatus_IncompleteInputImage, + -22144 => kCGImageAnimationStatus_AllocationFailure, + _ => throw ArgumentError( + 'Unknown value for CGImageAnimationStatus: $value', + ), + }; +} + +enum CGImageByteOrderInfo { + kCGImageByteOrderMask(28672), + kCGImageByteOrderDefault(0), + kCGImageByteOrder16Little(4096), + kCGImageByteOrder32Little(8192), + kCGImageByteOrder16Big(12288), + kCGImageByteOrder32Big(16384); + + static const kCGImageByteOrder16Host = kCGImageByteOrder16Little; + static const kCGImageByteOrder32Host = kCGImageByteOrder32Little; + + final int value; + const CGImageByteOrderInfo(this.value); + + static CGImageByteOrderInfo fromValue(int value) => switch (value) { + 28672 => kCGImageByteOrderMask, + 0 => kCGImageByteOrderDefault, + 4096 => kCGImageByteOrder16Little, + 8192 => kCGImageByteOrder32Little, + 12288 => kCGImageByteOrder16Big, + 16384 => kCGImageByteOrder32Big, + _ => throw ArgumentError('Unknown value for CGImageByteOrderInfo: $value'), + }; + + @override + String toString() { + if (this == kCGImageByteOrder16Little) + return "CGImageByteOrderInfo.kCGImageByteOrder16Little, CGImageByteOrderInfo.kCGImageByteOrder16Host"; + if (this == kCGImageByteOrder32Little) + return "CGImageByteOrderInfo.kCGImageByteOrder32Little, CGImageByteOrderInfo.kCGImageByteOrder32Host"; + return super.toString(); + } +} + +enum CGImageComponentInfo { + kCGImageComponentInteger(0), + kCGImageComponentFloat(256); + + final int value; + const CGImageComponentInfo(this.value); + + static CGImageComponentInfo fromValue(int value) => switch (value) { + 0 => kCGImageComponentInteger, + 256 => kCGImageComponentFloat, + _ => throw ArgumentError('Unknown value for CGImageComponentInfo: $value'), + }; +} + +final class CGImageDestination extends ffi.Opaque {} + +typedef CGImageDestinationRef = ffi.Pointer; + +final class CGImageMetadata extends ffi.Opaque {} + +enum CGImageMetadataErrors { + kCGImageMetadataErrorUnknown(0), + kCGImageMetadataErrorUnsupportedFormat(1), + kCGImageMetadataErrorBadArgument(2), + kCGImageMetadataErrorConflictingArguments(3), + kCGImageMetadataErrorPrefixConflict(4); + + final int value; + const CGImageMetadataErrors(this.value); + + static CGImageMetadataErrors fromValue(int value) => switch (value) { + 0 => kCGImageMetadataErrorUnknown, + 1 => kCGImageMetadataErrorUnsupportedFormat, + 2 => kCGImageMetadataErrorBadArgument, + 3 => kCGImageMetadataErrorConflictingArguments, + 4 => kCGImageMetadataErrorPrefixConflict, + _ => throw ArgumentError('Unknown value for CGImageMetadataErrors: $value'), + }; +} + +typedef CGImageMetadataRef = ffi.Pointer; + +final class CGImageMetadataTag extends ffi.Opaque {} + +typedef CGImageMetadataTagBlock = ffi.Pointer; +typedef DartCGImageMetadataTagBlock = + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >; +typedef CGImageMetadataTagRef = ffi.Pointer; + +enum CGImageMetadataType { + kCGImageMetadataTypeInvalid(-1), + kCGImageMetadataTypeDefault(0), + kCGImageMetadataTypeString(1), + kCGImageMetadataTypeArrayUnordered(2), + kCGImageMetadataTypeArrayOrdered(3), + kCGImageMetadataTypeAlternateArray(4), + kCGImageMetadataTypeAlternateText(5), + kCGImageMetadataTypeStructure(6); + + final int value; + const CGImageMetadataType(this.value); + + static CGImageMetadataType fromValue(int value) => switch (value) { + -1 => kCGImageMetadataTypeInvalid, + 0 => kCGImageMetadataTypeDefault, + 1 => kCGImageMetadataTypeString, + 2 => kCGImageMetadataTypeArrayUnordered, + 3 => kCGImageMetadataTypeArrayOrdered, + 4 => kCGImageMetadataTypeAlternateArray, + 5 => kCGImageMetadataTypeAlternateText, + 6 => kCGImageMetadataTypeStructure, + _ => throw ArgumentError('Unknown value for CGImageMetadataType: $value'), + }; +} + +enum CGImagePixelFormatInfo { + kCGImagePixelFormatMask(983040), + kCGImagePixelFormatPacked(0), + kCGImagePixelFormatRGB555(65536), + kCGImagePixelFormatRGB565(131072), + kCGImagePixelFormatRGB101010(196608), + kCGImagePixelFormatRGBCIF10(262144); + + final int value; + const CGImagePixelFormatInfo(this.value); + + static CGImagePixelFormatInfo fromValue(int value) => switch (value) { + 983040 => kCGImagePixelFormatMask, + 0 => kCGImagePixelFormatPacked, + 65536 => kCGImagePixelFormatRGB555, + 131072 => kCGImagePixelFormatRGB565, + 196608 => kCGImagePixelFormatRGB101010, + 262144 => kCGImagePixelFormatRGBCIF10, + _ => throw ArgumentError( + 'Unknown value for CGImagePixelFormatInfo: $value', + ), + }; +} + +enum CGImagePropertyOrientation { + kCGImagePropertyOrientationUp(1), + kCGImagePropertyOrientationUpMirrored(2), + kCGImagePropertyOrientationDown(3), + kCGImagePropertyOrientationDownMirrored(4), + kCGImagePropertyOrientationLeftMirrored(5), + kCGImagePropertyOrientationRight(6), + kCGImagePropertyOrientationRightMirrored(7), + kCGImagePropertyOrientationLeft(8); + + final int value; + const CGImagePropertyOrientation(this.value); + + static CGImagePropertyOrientation fromValue(int value) => switch (value) { + 1 => kCGImagePropertyOrientationUp, + 2 => kCGImagePropertyOrientationUpMirrored, + 3 => kCGImagePropertyOrientationDown, + 4 => kCGImagePropertyOrientationDownMirrored, + 5 => kCGImagePropertyOrientationLeftMirrored, + 6 => kCGImagePropertyOrientationRight, + 7 => kCGImagePropertyOrientationRightMirrored, + 8 => kCGImagePropertyOrientationLeft, + _ => throw ArgumentError( + 'Unknown value for CGImagePropertyOrientation: $value', + ), + }; +} + +enum CGImagePropertyTGACompression { + kCGImageTGACompressionNone(0), + kCGImageTGACompressionRLE(1); + + final int value; + const CGImagePropertyTGACompression(this.value); + + static CGImagePropertyTGACompression fromValue(int value) => switch (value) { + 0 => kCGImageTGACompressionNone, + 1 => kCGImageTGACompressionRLE, + _ => throw ArgumentError( + 'Unknown value for CGImagePropertyTGACompression: $value', + ), + }; +} + +typedef CGImageRef = ffi.Pointer; + +final class CGImageSource extends ffi.Opaque {} + +typedef CGImageSourceAnimationBlock = ffi.Pointer; +typedef DartCGImageSourceAnimationBlock = + objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >; +typedef CGImageSourceRef = ffi.Pointer; + +enum CGImageSourceStatus { + kCGImageStatusUnexpectedEOF(-5), + kCGImageStatusInvalidData(-4), + kCGImageStatusUnknownType(-3), + kCGImageStatusReadingHeader(-2), + kCGImageStatusIncomplete(-1), + kCGImageStatusComplete(0); + + final int value; + const CGImageSourceStatus(this.value); + + static CGImageSourceStatus fromValue(int value) => switch (value) { + -5 => kCGImageStatusUnexpectedEOF, + -4 => kCGImageStatusInvalidData, + -3 => kCGImageStatusUnknownType, + -2 => kCGImageStatusReadingHeader, + -1 => kCGImageStatusIncomplete, + 0 => kCGImageStatusComplete, + _ => throw ArgumentError('Unknown value for CGImageSourceStatus: $value'), + }; +} + +enum CGInterpolationQuality { + kCGInterpolationDefault(0), + kCGInterpolationNone(1), + kCGInterpolationLow(2), + kCGInterpolationMedium(4), + kCGInterpolationHigh(3); + + final int value; + const CGInterpolationQuality(this.value); + + static CGInterpolationQuality fromValue(int value) => switch (value) { + 0 => kCGInterpolationDefault, + 1 => kCGInterpolationNone, + 2 => kCGInterpolationLow, + 4 => kCGInterpolationMedium, + 3 => kCGInterpolationHigh, + _ => throw ArgumentError( + 'Unknown value for CGInterpolationQuality: $value', + ), + }; +} + +typedef CGKeyCode = ffi.Uint16; +typedef DartCGKeyCode = int; + +enum CGLCPContextPriorityRequest { + kCGLCPContextPriorityRequestHigh(0), + kCGLCPContextPriorityRequestNormal(1), + kCGLCPContextPriorityRequestLow(2); + + final int value; + const CGLCPContextPriorityRequest(this.value); + + static CGLCPContextPriorityRequest fromValue(int value) => switch (value) { + 0 => kCGLCPContextPriorityRequestHigh, + 1 => kCGLCPContextPriorityRequestNormal, + 2 => kCGLCPContextPriorityRequestLow, + _ => throw ArgumentError( + 'Unknown value for CGLCPContextPriorityRequest: $value', + ), + }; +} + +typedef CGLContextObj = ffi.Pointer<_CGLContextObject>; +typedef CGLPBufferObj = ffi.Pointer<_CGLPBufferObject>; +typedef CGLPixelFormatObj = ffi.Pointer<_CGLPixelFormatObject>; +typedef CGLRendererInfoObj = ffi.Pointer<_CGLRendererInfoObject>; +typedef CGLShareGroupObj = ffi.Pointer; + +final class CGLShareGroupRec extends ffi.Opaque {} + +final class CGLayer extends ffi.Opaque {} + +typedef CGLayerRef = ffi.Pointer; + +enum CGLineCap { + kCGLineCapButt(0), + kCGLineCapRound(1), + kCGLineCapSquare(2); + + final int value; + const CGLineCap(this.value); + + static CGLineCap fromValue(int value) => switch (value) { + 0 => kCGLineCapButt, + 1 => kCGLineCapRound, + 2 => kCGLineCapSquare, + _ => throw ArgumentError('Unknown value for CGLineCap: $value'), + }; +} + +enum CGLineJoin { + kCGLineJoinMiter(0), + kCGLineJoinRound(1), + kCGLineJoinBevel(2); + + final int value; + const CGLineJoin(this.value); + + static CGLineJoin fromValue(int value) => switch (value) { + 0 => kCGLineJoinMiter, + 1 => kCGLineJoinRound, + 2 => kCGLineJoinBevel, + _ => throw ArgumentError('Unknown value for CGLineJoin: $value'), + }; +} + +enum CGMomentumScrollPhase { + kCGMomentumScrollPhaseNone(0), + kCGMomentumScrollPhaseBegin(1), + kCGMomentumScrollPhaseContinue(2), + kCGMomentumScrollPhaseEnd(3); + + final int value; + const CGMomentumScrollPhase(this.value); + + static CGMomentumScrollPhase fromValue(int value) => switch (value) { + 0 => kCGMomentumScrollPhaseNone, + 1 => kCGMomentumScrollPhaseBegin, + 2 => kCGMomentumScrollPhaseContinue, + 3 => kCGMomentumScrollPhaseEnd, + _ => throw ArgumentError('Unknown value for CGMomentumScrollPhase: $value'), + }; +} + +enum CGMouseButton { + kCGMouseButtonLeft(0), + kCGMouseButtonRight(1), + kCGMouseButtonCenter(2); + + final int value; + const CGMouseButton(this.value); + + static CGMouseButton fromValue(int value) => switch (value) { + 0 => kCGMouseButtonLeft, + 1 => kCGMouseButtonRight, + 2 => kCGMouseButtonCenter, + _ => throw ArgumentError('Unknown value for CGMouseButton: $value'), + }; +} + +typedef CGMutableImageMetadataRef = ffi.Pointer; +typedef CGMutablePathRef = ffi.Pointer; +typedef CGOpenGLDisplayMask = ffi.Uint32; +typedef DartCGOpenGLDisplayMask = int; + +sealed class CGPDFAccessPermissions { + static const kCGPDFAllowsLowQualityPrinting = 1; + static const kCGPDFAllowsHighQualityPrinting = 2; + static const kCGPDFAllowsDocumentChanges = 4; + static const kCGPDFAllowsDocumentAssembly = 8; + static const kCGPDFAllowsContentCopying = 16; + static const kCGPDFAllowsContentAccessibility = 32; + static const kCGPDFAllowsCommenting = 64; + static const kCGPDFAllowsFormFieldEntry = 128; +} + +final class CGPDFArray extends ffi.Opaque {} + +typedef CGPDFArrayApplierBlock = ffi.Pointer; +typedef DartCGPDFArrayApplierBlock = + objc.ObjCBlock< + ffi.Bool Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + >; +typedef CGPDFArrayRef = ffi.Pointer; +typedef CGPDFBoolean = ffi.UnsignedChar; +typedef DartCGPDFBoolean = int; + +enum CGPDFBox { + kCGPDFMediaBox(0), + kCGPDFCropBox(1), + kCGPDFBleedBox(2), + kCGPDFTrimBox(3), + kCGPDFArtBox(4); + + final int value; + const CGPDFBox(this.value); + + static CGPDFBox fromValue(int value) => switch (value) { + 0 => kCGPDFMediaBox, + 1 => kCGPDFCropBox, + 2 => kCGPDFBleedBox, + 3 => kCGPDFTrimBox, + 4 => kCGPDFArtBox, + _ => throw ArgumentError('Unknown value for CGPDFBox: $value'), + }; +} + +final class CGPDFContentStream extends ffi.Opaque {} + +typedef CGPDFContentStreamRef = ffi.Pointer; + +enum CGPDFDataFormat { + CGPDFDataFormatRaw(0), + CGPDFDataFormatJPEGEncoded(1), + CGPDFDataFormatJPEG2000(2); + + final int value; + const CGPDFDataFormat(this.value); + + static CGPDFDataFormat fromValue(int value) => switch (value) { + 0 => CGPDFDataFormatRaw, + 1 => CGPDFDataFormatJPEGEncoded, + 2 => CGPDFDataFormatJPEG2000, + _ => throw ArgumentError('Unknown value for CGPDFDataFormat: $value'), + }; +} + +final class CGPDFDictionary extends ffi.Opaque {} + +typedef CGPDFDictionaryApplierBlock = ffi.Pointer; +typedef DartCGPDFDictionaryApplierBlock = + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >; +typedef CGPDFDictionaryApplierFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer key, + CGPDFObjectRef value, + ffi.Pointer info, + ) + > + >; +typedef CGPDFDictionaryRef = ffi.Pointer; + +final class CGPDFDocument extends ffi.Opaque {} + +typedef CGPDFDocumentRef = ffi.Pointer; +typedef CGPDFInteger = ffi.Long; +typedef DartCGPDFInteger = int; + +final class CGPDFObject extends ffi.Opaque {} + +typedef CGPDFObjectRef = ffi.Pointer; + +enum CGPDFObjectType { + kCGPDFObjectTypeNull(1), + kCGPDFObjectTypeBoolean(2), + kCGPDFObjectTypeInteger(3), + kCGPDFObjectTypeReal(4), + kCGPDFObjectTypeName(5), + kCGPDFObjectTypeString(6), + kCGPDFObjectTypeArray(7), + kCGPDFObjectTypeDictionary(8), + kCGPDFObjectTypeStream(9); + + final int value; + const CGPDFObjectType(this.value); + + static CGPDFObjectType fromValue(int value) => switch (value) { + 1 => kCGPDFObjectTypeNull, + 2 => kCGPDFObjectTypeBoolean, + 3 => kCGPDFObjectTypeInteger, + 4 => kCGPDFObjectTypeReal, + 5 => kCGPDFObjectTypeName, + 6 => kCGPDFObjectTypeString, + 7 => kCGPDFObjectTypeArray, + 8 => kCGPDFObjectTypeDictionary, + 9 => kCGPDFObjectTypeStream, + _ => throw ArgumentError('Unknown value for CGPDFObjectType: $value'), + }; +} + +typedef CGPDFOperatorCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CGPDFScannerRef scanner, ffi.Pointer info) + > + >; + +final class CGPDFOperatorTable extends ffi.Opaque {} + +typedef CGPDFOperatorTableRef = ffi.Pointer; + +final class CGPDFPage extends ffi.Opaque {} + +typedef CGPDFPageRef = ffi.Pointer; +typedef CGPDFReal = CGFloat; + +final class CGPDFScanner extends ffi.Opaque {} + +typedef CGPDFScannerRef = ffi.Pointer; + +final class CGPDFStream extends ffi.Opaque {} + +typedef CGPDFStreamRef = ffi.Pointer; + +final class CGPDFString extends ffi.Opaque {} + +typedef CGPDFStringRef = ffi.Pointer; +typedef CGPDFTagProperty = CFStringRef; + +enum CGPDFTagType { + CGPDFTagTypeDocument(100), + CGPDFTagTypePart(101), + CGPDFTagTypeArt(102), + CGPDFTagTypeSection(103), + CGPDFTagTypeDiv(104), + CGPDFTagTypeBlockQuote(105), + CGPDFTagTypeCaption(106), + CGPDFTagTypeTOC(107), + CGPDFTagTypeTOCI(108), + CGPDFTagTypeIndex(109), + CGPDFTagTypeNonStructure(110), + CGPDFTagTypePrivate(111), + CGPDFTagTypeParagraph(200), + CGPDFTagTypeHeader(201), + CGPDFTagTypeHeader1(202), + CGPDFTagTypeHeader2(203), + CGPDFTagTypeHeader3(204), + CGPDFTagTypeHeader4(205), + CGPDFTagTypeHeader5(206), + CGPDFTagTypeHeader6(207), + CGPDFTagTypeList(300), + CGPDFTagTypeListItem(301), + CGPDFTagTypeLabel(302), + CGPDFTagTypeListBody(303), + CGPDFTagTypeTable(400), + CGPDFTagTypeTableRow(401), + CGPDFTagTypeTableHeaderCell(402), + CGPDFTagTypeTableDataCell(403), + CGPDFTagTypeTableHeader(404), + CGPDFTagTypeTableBody(405), + CGPDFTagTypeTableFooter(406), + CGPDFTagTypeSpan(500), + CGPDFTagTypeQuote(501), + CGPDFTagTypeNote(502), + CGPDFTagTypeReference(503), + CGPDFTagTypeBibliography(504), + CGPDFTagTypeCode(505), + CGPDFTagTypeLink(506), + CGPDFTagTypeAnnotation(507), + CGPDFTagTypeRuby(600), + CGPDFTagTypeRubyBaseText(601), + CGPDFTagTypeRubyAnnotationText(602), + CGPDFTagTypeRubyPunctuation(603), + CGPDFTagTypeWarichu(604), + CGPDFTagTypeWarichuText(605), + CGPDFTagTypeWarichuPunctiation(606), + CGPDFTagTypeFigure(700), + CGPDFTagTypeFormula(701), + CGPDFTagTypeForm(702), + CGPDFTagTypeObject(800); + + final int value; + const CGPDFTagType(this.value); + + static CGPDFTagType fromValue(int value) => switch (value) { + 100 => CGPDFTagTypeDocument, + 101 => CGPDFTagTypePart, + 102 => CGPDFTagTypeArt, + 103 => CGPDFTagTypeSection, + 104 => CGPDFTagTypeDiv, + 105 => CGPDFTagTypeBlockQuote, + 106 => CGPDFTagTypeCaption, + 107 => CGPDFTagTypeTOC, + 108 => CGPDFTagTypeTOCI, + 109 => CGPDFTagTypeIndex, + 110 => CGPDFTagTypeNonStructure, + 111 => CGPDFTagTypePrivate, + 200 => CGPDFTagTypeParagraph, + 201 => CGPDFTagTypeHeader, + 202 => CGPDFTagTypeHeader1, + 203 => CGPDFTagTypeHeader2, + 204 => CGPDFTagTypeHeader3, + 205 => CGPDFTagTypeHeader4, + 206 => CGPDFTagTypeHeader5, + 207 => CGPDFTagTypeHeader6, + 300 => CGPDFTagTypeList, + 301 => CGPDFTagTypeListItem, + 302 => CGPDFTagTypeLabel, + 303 => CGPDFTagTypeListBody, + 400 => CGPDFTagTypeTable, + 401 => CGPDFTagTypeTableRow, + 402 => CGPDFTagTypeTableHeaderCell, + 403 => CGPDFTagTypeTableDataCell, + 404 => CGPDFTagTypeTableHeader, + 405 => CGPDFTagTypeTableBody, + 406 => CGPDFTagTypeTableFooter, + 500 => CGPDFTagTypeSpan, + 501 => CGPDFTagTypeQuote, + 502 => CGPDFTagTypeNote, + 503 => CGPDFTagTypeReference, + 504 => CGPDFTagTypeBibliography, + 505 => CGPDFTagTypeCode, + 506 => CGPDFTagTypeLink, + 507 => CGPDFTagTypeAnnotation, + 600 => CGPDFTagTypeRuby, + 601 => CGPDFTagTypeRubyBaseText, + 602 => CGPDFTagTypeRubyAnnotationText, + 603 => CGPDFTagTypeRubyPunctuation, + 604 => CGPDFTagTypeWarichu, + 605 => CGPDFTagTypeWarichuText, + 606 => CGPDFTagTypeWarichuPunctiation, + 700 => CGPDFTagTypeFigure, + 701 => CGPDFTagTypeFormula, + 702 => CGPDFTagTypeForm, + 800 => CGPDFTagTypeObject, + _ => throw ArgumentError('Unknown value for CGPDFTagType: $value'), + }; +} + +final class CGPSConverter extends ffi.Opaque {} + +typedef CGPSConverterBeginDocumentCallback = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef CGPSConverterBeginPageCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + ffi.Size pageNumber, + CFDictionaryRef pageInfo, + ) + > + >; + +final class CGPSConverterCallbacks extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external CGPSConverterBeginDocumentCallback beginDocument; + + external CGPSConverterEndDocumentCallback endDocument; + + external CGPSConverterBeginPageCallback beginPage; + + external CGPSConverterEndPageCallback endPage; + + external CGPSConverterProgressCallback noteProgress; + + external CGPSConverterMessageCallback noteMessage; + + external CGPSConverterReleaseInfoCallback releaseInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CGPSConverterBeginDocumentCallback beginDocument, + required CGPSConverterEndDocumentCallback endDocument, + required CGPSConverterBeginPageCallback beginPage, + required CGPSConverterEndPageCallback endPage, + required CGPSConverterProgressCallback noteProgress, + required CGPSConverterMessageCallback noteMessage, + required CGPSConverterReleaseInfoCallback releaseInfo, + }) => $allocator() + ..ref.version = version + ..ref.beginDocument = beginDocument + ..ref.endDocument = endDocument + ..ref.beginPage = beginPage + ..ref.endPage = endPage + ..ref.noteProgress = noteProgress + ..ref.noteMessage = noteMessage + ..ref.releaseInfo = releaseInfo; +} + +typedef CGPSConverterEndDocumentCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer info, ffi.Bool success) + > + >; +typedef CGPSConverterEndPageCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + ffi.Size pageNumber, + CFDictionaryRef pageInfo, + ) + > + >; +typedef CGPSConverterMessageCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer info, CFStringRef message) + > + >; +typedef CGPSConverterProgressCallback = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef CGPSConverterRef = ffi.Pointer; +typedef CGPSConverterReleaseInfoCallback = + ffi.Pointer< + ffi.NativeFunction info)> + >; + +final class CGPath extends ffi.Opaque {} + +typedef CGPathApplierFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer element, + ) + > + >; +typedef CGPathApplyBlock = ffi.Pointer; +typedef DartCGPathApplyBlock = + objc.ObjCBlock)>; + +enum CGPathDrawingMode { + kCGPathFill(0), + kCGPathEOFill(1), + kCGPathStroke(2), + kCGPathFillStroke(3), + kCGPathEOFillStroke(4); + + final int value; + const CGPathDrawingMode(this.value); + + static CGPathDrawingMode fromValue(int value) => switch (value) { + 0 => kCGPathFill, + 1 => kCGPathEOFill, + 2 => kCGPathStroke, + 3 => kCGPathFillStroke, + 4 => kCGPathEOFillStroke, + _ => throw ArgumentError('Unknown value for CGPathDrawingMode: $value'), + }; +} + +final class CGPathElement extends ffi.Struct { + @ffi.Int32() + external int typeAsInt; + + CGPathElementType get type => CGPathElementType.fromValue(typeAsInt); + set type(CGPathElementType value) => typeAsInt = value.value; + + external ffi.Pointer points; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CGPathElementType type, + required ffi.Pointer points, + }) => $allocator() + ..ref.type = type + ..ref.points = points; +} + +enum CGPathElementType { + kCGPathElementMoveToPoint(0), + kCGPathElementAddLineToPoint(1), + kCGPathElementAddQuadCurveToPoint(2), + kCGPathElementAddCurveToPoint(3), + kCGPathElementCloseSubpath(4); + + final int value; + const CGPathElementType(this.value); + + static CGPathElementType fromValue(int value) => switch (value) { + 0 => kCGPathElementMoveToPoint, + 1 => kCGPathElementAddLineToPoint, + 2 => kCGPathElementAddQuadCurveToPoint, + 3 => kCGPathElementAddCurveToPoint, + 4 => kCGPathElementCloseSubpath, + _ => throw ArgumentError('Unknown value for CGPathElementType: $value'), + }; +} + +typedef CGPathRef = ffi.Pointer; + +final class CGPattern extends ffi.Opaque {} + +final class CGPatternCallbacks extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external CGPatternDrawPatternCallback drawPattern; + + external CGPatternReleaseInfoCallback releaseInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CGPatternDrawPatternCallback drawPattern, + required CGPatternReleaseInfoCallback releaseInfo, + }) => $allocator() + ..ref.version = version + ..ref.drawPattern = drawPattern + ..ref.releaseInfo = releaseInfo; +} + +typedef CGPatternDrawPatternCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer info, CGContextRef context) + > + >; +typedef CGPatternRef = ffi.Pointer; +typedef CGPatternReleaseInfoCallback = + ffi.Pointer< + ffi.NativeFunction info)> + >; + +enum CGPatternTiling { + kCGPatternTilingNoDistortion(0), + kCGPatternTilingConstantSpacingMinimalDistortion(1), + kCGPatternTilingConstantSpacing(2); + + final int value; + const CGPatternTiling(this.value); + + static CGPatternTiling fromValue(int value) => switch (value) { + 0 => kCGPatternTilingNoDistortion, + 1 => kCGPatternTilingConstantSpacingMinimalDistortion, + 2 => kCGPatternTilingConstantSpacing, + _ => throw ArgumentError('Unknown value for CGPatternTiling: $value'), + }; +} + +typedef CGRectCount = ffi.Uint32; +typedef DartCGRectCount = int; + +enum CGRectEdge { + CGRectMinXEdge(0), + CGRectMinYEdge(1), + CGRectMaxXEdge(2), + CGRectMaxYEdge(3); + + final int value; + const CGRectEdge(this.value); + + static CGRectEdge fromValue(int value) => switch (value) { + 0 => CGRectMinXEdge, + 1 => CGRectMinYEdge, + 2 => CGRectMaxXEdge, + 3 => CGRectMaxYEdge, + _ => throw ArgumentError('Unknown value for CGRectEdge: $value'), + }; +} + +typedef CGRefreshRate = ffi.Double; +typedef DartCGRefreshRate = double; + +final class CGRenderingBufferProvider extends ffi.Opaque {} + +typedef CGRenderingBufferProviderRef = ffi.Pointer; +typedef CGScreenRefreshCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Uint32 count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ) + > + >; +typedef CGScreenUpdateMoveCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CGScreenUpdateMoveDelta delta, + ffi.Size count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ) + > + >; + +final class CGScreenUpdateMoveDelta extends ffi.Struct { + @ffi.Int32() + external int dX; + + @ffi.Int32() + external int dY; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int dX, + required int dY, + }) => $allocator() + ..ref.dX = dX + ..ref.dY = dY; +} + +sealed class CGScreenUpdateOperation { + static const kCGScreenUpdateOperationRefresh = 0; + static const kCGScreenUpdateOperationMove = 1; + static const kCGScreenUpdateOperationReducedDirtyRectangleCount = -2147483648; +} + +enum CGScrollEventUnit { + kCGScrollEventUnitPixel(0), + kCGScrollEventUnitLine(1); + + final int value; + const CGScrollEventUnit(this.value); + + static CGScrollEventUnit fromValue(int value) => switch (value) { + 0 => kCGScrollEventUnitPixel, + 1 => kCGScrollEventUnitLine, + _ => throw ArgumentError('Unknown value for CGScrollEventUnit: $value'), + }; +} + +enum CGScrollPhase { + kCGScrollPhaseBegan(1), + kCGScrollPhaseChanged(2), + kCGScrollPhaseEnded(4), + kCGScrollPhaseCancelled(8), + kCGScrollPhaseMayBegin(128); + + final int value; + const CGScrollPhase(this.value); + + static CGScrollPhase fromValue(int value) => switch (value) { + 1 => kCGScrollPhaseBegan, + 2 => kCGScrollPhaseChanged, + 4 => kCGScrollPhaseEnded, + 8 => kCGScrollPhaseCancelled, + 128 => kCGScrollPhaseMayBegin, + _ => throw ArgumentError('Unknown value for CGScrollPhase: $value'), + }; +} + +final class CGShading extends ffi.Opaque {} + +typedef CGShadingRef = ffi.Pointer; + +enum CGTextDrawingMode { + kCGTextFill(0), + kCGTextStroke(1), + kCGTextFillStroke(2), + kCGTextInvisible(3), + kCGTextFillClip(4), + kCGTextStrokeClip(5), + kCGTextFillStrokeClip(6), + kCGTextClip(7); + + final int value; + const CGTextDrawingMode(this.value); + + static CGTextDrawingMode fromValue(int value) => switch (value) { + 0 => kCGTextFill, + 1 => kCGTextStroke, + 2 => kCGTextFillStroke, + 3 => kCGTextInvisible, + 4 => kCGTextFillClip, + 5 => kCGTextStrokeClip, + 6 => kCGTextFillStrokeClip, + 7 => kCGTextClip, + _ => throw ArgumentError('Unknown value for CGTextDrawingMode: $value'), + }; +} + +@Deprecated('No longer supported') +enum CGTextEncoding { + kCGEncodingFontSpecific(0), + kCGEncodingMacRoman(1); + + final int value; + const CGTextEncoding(this.value); + + static CGTextEncoding fromValue(int value) => switch (value) { + 0 => kCGEncodingFontSpecific, + 1 => kCGEncodingMacRoman, + _ => throw ArgumentError('Unknown value for CGTextEncoding: $value'), + }; +} + +enum CGToneMapping { + kCGToneMappingDefault(0), + kCGToneMappingImageSpecificLumaScaling(1), + kCGToneMappingReferenceWhiteBased(2), + kCGToneMappingITURecommended(3), + kCGToneMappingEXRGamma(4), + kCGToneMappingNone(5); + + final int value; + const CGToneMapping(this.value); + + static CGToneMapping fromValue(int value) => switch (value) { + 0 => kCGToneMappingDefault, + 1 => kCGToneMappingImageSpecificLumaScaling, + 2 => kCGToneMappingReferenceWhiteBased, + 3 => kCGToneMappingITURecommended, + 4 => kCGToneMappingEXRGamma, + 5 => kCGToneMappingNone, + _ => throw ArgumentError('Unknown value for CGToneMapping: $value'), + }; +} + +final class CGVector extends ffi.Struct { + @CGFloat() + external double dx; + + @CGFloat() + external double dy; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double dx, + required double dy, + }) => $allocator() + ..ref.dx = dx + ..ref.dy = dy; +} + +typedef CGWheelCount = ffi.Uint32; +typedef DartCGWheelCount = int; + +enum CGWindowBackingType { + kCGBackingStoreRetained(0), + kCGBackingStoreNonretained(1), + kCGBackingStoreBuffered(2); + + final int value; + const CGWindowBackingType(this.value); + + static CGWindowBackingType fromValue(int value) => switch (value) { + 0 => kCGBackingStoreRetained, + 1 => kCGBackingStoreNonretained, + 2 => kCGBackingStoreBuffered, + _ => throw ArgumentError('Unknown value for CGWindowBackingType: $value'), + }; +} + +typedef CGWindowID = ffi.Uint32; +typedef DartCGWindowID = int; + +sealed class CGWindowImageOption { + static const kCGWindowImageDefault = 0; + static const kCGWindowImageBoundsIgnoreFraming = 1; + static const kCGWindowImageShouldBeOpaque = 2; + static const kCGWindowImageOnlyShadows = 4; + static const kCGWindowImageBestResolution = 8; + static const kCGWindowImageNominalResolution = 16; +} + +typedef CGWindowLevel = ffi.Int32; +typedef DartCGWindowLevel = int; + +enum CGWindowLevelKey { + kCGBaseWindowLevelKey(0), + kCGMinimumWindowLevelKey(1), + kCGDesktopWindowLevelKey(2), + kCGBackstopMenuLevelKey(3), + kCGNormalWindowLevelKey(4), + kCGFloatingWindowLevelKey(5), + kCGTornOffMenuWindowLevelKey(6), + kCGDockWindowLevelKey(7), + kCGMainMenuWindowLevelKey(8), + kCGStatusWindowLevelKey(9), + kCGModalPanelWindowLevelKey(10), + kCGPopUpMenuWindowLevelKey(11), + kCGDraggingWindowLevelKey(12), + kCGScreenSaverWindowLevelKey(13), + kCGMaximumWindowLevelKey(14), + kCGOverlayWindowLevelKey(15), + kCGHelpWindowLevelKey(16), + kCGUtilityWindowLevelKey(17), + kCGDesktopIconWindowLevelKey(18), + kCGCursorWindowLevelKey(19), + kCGAssistiveTechHighWindowLevelKey(20), + kCGNumberOfWindowLevelKeys(21); + + final int value; + const CGWindowLevelKey(this.value); + + static CGWindowLevelKey fromValue(int value) => switch (value) { + 0 => kCGBaseWindowLevelKey, + 1 => kCGMinimumWindowLevelKey, + 2 => kCGDesktopWindowLevelKey, + 3 => kCGBackstopMenuLevelKey, + 4 => kCGNormalWindowLevelKey, + 5 => kCGFloatingWindowLevelKey, + 6 => kCGTornOffMenuWindowLevelKey, + 7 => kCGDockWindowLevelKey, + 8 => kCGMainMenuWindowLevelKey, + 9 => kCGStatusWindowLevelKey, + 10 => kCGModalPanelWindowLevelKey, + 11 => kCGPopUpMenuWindowLevelKey, + 12 => kCGDraggingWindowLevelKey, + 13 => kCGScreenSaverWindowLevelKey, + 14 => kCGMaximumWindowLevelKey, + 15 => kCGOverlayWindowLevelKey, + 16 => kCGHelpWindowLevelKey, + 17 => kCGUtilityWindowLevelKey, + 18 => kCGDesktopIconWindowLevelKey, + 19 => kCGCursorWindowLevelKey, + 20 => kCGAssistiveTechHighWindowLevelKey, + 21 => kCGNumberOfWindowLevelKeys, + _ => throw ArgumentError('Unknown value for CGWindowLevelKey: $value'), + }; +} + +sealed class CGWindowListOption { + static const kCGWindowListOptionAll = 0; + static const kCGWindowListOptionOnScreenOnly = 1; + static const kCGWindowListOptionOnScreenAboveWindow = 2; + static const kCGWindowListOptionOnScreenBelowWindow = 4; + static const kCGWindowListOptionIncludingWindow = 8; + static const kCGWindowListExcludeDesktopElements = 16; +} + +enum CGWindowSharingType { + kCGWindowSharingNone(0), + kCGWindowSharingReadOnly(1), + kCGWindowSharingReadWrite(2); + + final int value; + const CGWindowSharingType(this.value); + + static CGWindowSharingType fromValue(int value) => switch (value) { + 0 => kCGWindowSharingNone, + 1 => kCGWindowSharingReadOnly, + 2 => kCGWindowSharingReadWrite, + _ => throw ArgumentError('Unknown value for CGWindowSharingType: $value'), + }; +} + +typedef CGrafPort = GrafPort; +typedef CGrafPtr = GrafPtr; + +@ffi.Packed(2) +final class CM2Header extends ffi.Struct { + @UInt32() + external int size; + + @OSType() + external int CMMType; + + @UInt32() + external int profileVersion; + + @OSType() + external int profileClass; + + @OSType() + external int dataColorSpace; + + @OSType() + external int profileConnectionSpace; + + external CMDateTime dateTime; + + @OSType() + external int CS2profileSignature; + + @OSType() + external int platform; + + @UInt32() + external int flags; + + @OSType() + external int deviceManufacturer; + + @UInt32() + external int deviceModel; + + @ffi.Array.multi([2]) + external ffi.Array deviceAttributes; + + @UInt32() + external int renderingIntent; + + external CMFixedXYZColor white; + + @OSType() + external int creator; + + @ffi.Array.multi([44]) + external ffi.Array reserved; +} + +final class CM2Profile extends ffi.Struct { + external CM2Header header; + + external CMTagElemTable tagTable; + + @ffi.Array.multi([1]) + external ffi.Array elemData; +} + +typedef CM2ProfileHandle = ffi.Pointer>; +typedef CM2ProfilePtr = ffi.Pointer; + +@ffi.Packed(2) +final class CM4Header extends ffi.Struct { + @UInt32() + external int size; + + @OSType() + external int CMMType; + + @UInt32() + external int profileVersion; + + @OSType() + external int profileClass; + + @OSType() + external int dataColorSpace; + + @OSType() + external int profileConnectionSpace; + + external CMDateTime dateTime; + + @OSType() + external int CS2profileSignature; + + @OSType() + external int platform; + + @UInt32() + external int flags; + + @OSType() + external int deviceManufacturer; + + @UInt32() + external int deviceModel; + + @ffi.Array.multi([2]) + external ffi.Array deviceAttributes; + + @UInt32() + external int renderingIntent; + + external CMFixedXYZColor white; + + @OSType() + external int creator; + + @ffi.Array.multi([16]) + external ffi.Array digest; + + @ffi.Array.multi([28]) + external ffi.Array reserved; +} + +@ffi.Packed(2) +final class CMAdaptationMatrixType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([9]) + external ffi.Array adaptationMatrix; +} + +final class CMAppleProfileHeader extends ffi.Union { + external CM2Header cm2; + + external CM4Header cm4; +} + +typedef CMAudioCodecType = FourCharCode; +typedef CMAudioFormatDescriptionMask = ffi.Uint32; +typedef DartCMAudioFormatDescriptionMask = int; +typedef CMAudioFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMBaseClassVersion = ffi.UintPtr; +typedef DartCMBaseClassVersion = int; + +final class CMBitmap extends ffi.Struct { + external ffi.Pointer image; + + @ffi.Size() + external int width; + + @ffi.Size() + external int height; + + @ffi.Size() + external int rowBytes; + + @ffi.Size() + external int pixelSize; + + @CMBitmapColorSpace() + external int space; + + @UInt32() + external int user1; + + @UInt32() + external int user2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer image, + required int width, + required int height, + required int rowBytes, + required int pixelSize, + required int space, + required int user1, + required int user2, + }) => $allocator() + ..ref.image = image + ..ref.width = width + ..ref.height = height + ..ref.rowBytes = rowBytes + ..ref.pixelSize = pixelSize + ..ref.space = space + ..ref.user1 = user1 + ..ref.user2 = user2; +} + +typedef CMBitmapCallBackProcPtr = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function(SInt32 progress, ffi.Pointer refCon) + > + >; +typedef CMBitmapCallBackUPP = CMBitmapCallBackProcPtr; +typedef CMBitmapColorSpace = UInt32; + +final class CMBufferLocation extends ffi.Struct { + external ffi.Pointer buffer; + + @UInt32() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer buffer, + required int size, + }) => $allocator() + ..ref.buffer = buffer + ..ref.size = size; +} + +final class CMCMYColor extends ffi.Struct { + @UInt16() + external int cyan; + + @UInt16() + external int magenta; + + @UInt16() + external int yellow; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cyan, + required int magenta, + required int yellow, + }) => $allocator() + ..ref.cyan = cyan + ..ref.magenta = magenta + ..ref.yellow = yellow; +} + +final class CMCMYKColor extends ffi.Struct { + @UInt16() + external int cyan; + + @UInt16() + external int magenta; + + @UInt16() + external int yellow; + + @UInt16() + external int black; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cyan, + required int magenta, + required int yellow, + required int black, + }) => $allocator() + ..ref.cyan = cyan + ..ref.magenta = magenta + ..ref.yellow = yellow + ..ref.black = black; +} + +typedef CMChromaticAdaptation = UInt32; +typedef CMClosedCaptionFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMClosedCaptionFormatType = FourCharCode; + +final class CMColor extends ffi.Union { + external CMRGBColor rgb; + + external CMHSVColor hsv; + + external CMHLSColor hls; + + external CMXYZColor XYZ; + + external CMLabColor Lab; + + external CMLuvColor Luv; + + external CMYxyColor Yxy; + + external CMCMYKColor cmyk; + + external CMCMYColor cmy; + + external CMGrayColor gray; + + external CMMultichannel5Color mc5; + + external CMMultichannel6Color mc6; + + external CMMultichannel7Color mc7; + + external CMMultichannel8Color mc8; + + external CMNamedColor namedColor; +} + +typedef CMConcatCallBackProcPtr = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function(SInt32 progress, ffi.Pointer refCon) + > + >; +typedef CMConcatCallBackUPP = CMConcatCallBackProcPtr; + +final class CMConcatProfileSet extends ffi.Struct { + @UInt16() + external int keyIndex; + + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array profileSet; +} + +@ffi.Packed(2) +final class CMCurveType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int countValue; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +@ffi.Packed(2) +final class CMDataType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int dataFlag; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +final class CMDateTime extends ffi.Struct { + @UInt16() + external int year; + + @UInt16() + external int month; + + @UInt16() + external int dayOfTheMonth; + + @UInt16() + external int hours; + + @UInt16() + external int minutes; + + @UInt16() + external int seconds; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int year, + required int month, + required int dayOfTheMonth, + required int hours, + required int minutes, + required int seconds, + }) => $allocator() + ..ref.year = year + ..ref.month = month + ..ref.dayOfTheMonth = dayOfTheMonth + ..ref.hours = hours + ..ref.minutes = minutes + ..ref.seconds = seconds; +} + +@ffi.Packed(2) +final class CMDateTimeType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + external CMDateTime dateTime; +} + +typedef CMDeviceClass = OSType; +typedef CMDeviceID = UInt32; + +final class CMDeviceInfo extends ffi.Struct { + @UInt32() + external int dataVersion; + + @CMDeviceClass() + external int deviceClass; + + @CMDeviceID() + external int deviceID; + + external CMDeviceScope deviceScope; + + @CMDeviceState() + external int deviceState; + + @CMDeviceProfileID() + external int defaultProfileID; + + external ffi.Pointer deviceName; + + @UInt32() + external int profileCount; + + @UInt32() + external int reserved; +} + +typedef CMDeviceInfoPtr = ffi.Pointer; + +final class CMDeviceProfileArray extends ffi.Struct { + @UInt32() + external int profileCount; + + @ffi.Array.multi([1]) + external ffi.Array profiles; +} + +typedef CMDeviceProfileArrayPtr = ffi.Pointer; +typedef CMDeviceProfileID = UInt32; + +final class CMDeviceProfileInfo extends ffi.Struct { + @UInt32() + external int dataVersion; + + @CMDeviceProfileID() + external int profileID; + + external CMProfileLocation profileLoc; + + external CFDictionaryRef profileName; + + @UInt32() + external int reserved; +} + +typedef CMDeviceProfileScope = CMDeviceScope; + +final class CMDeviceScope extends ffi.Struct { + external CFStringRef deviceUser; + + external CFStringRef deviceHost; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFStringRef deviceUser, + required CFStringRef deviceHost, + }) => $allocator() + ..ref.deviceUser = deviceUser + ..ref.deviceHost = deviceHost; +} + +typedef CMDeviceState = UInt32; +typedef CMDisplayIDType = UInt32; + +@ffi.Packed(2) +final class CMFixedXYColor extends ffi.Struct { + @Fixed() + external int x; + + @Fixed() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +@ffi.Packed(2) +final class CMFixedXYZColor extends ffi.Struct { + @Fixed() + external int X; + + @Fixed() + external int Y; + + @Fixed() + external int Z; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int X, + required int Y, + required int Z, + }) => $allocator() + ..ref.X = X + ..ref.Y = Y + ..ref.Z = Z; +} + +typedef CMFlattenProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + SInt32 command, + ffi.Pointer size, + ffi.Pointer data, + ffi.Pointer refCon, + ) + > + >; +typedef CMFlattenUPP = CMFlattenProcPtr; + +final class CMFloatBitmap extends ffi.Struct { + @ffi.UnsignedLong() + external int version; + + @ffi.Array.multi([16]) + external ffi.Array> buffers; + + @ffi.Size() + external int height; + + @ffi.Size() + external int width; + + @ptrdiff_t() + external int rowStride; + + @ptrdiff_t() + external int colStride; + + @OSType() + external int space; + + @ffi.UnsignedInt() + external int flagsAsInt; + + CMFloatBitmapFlags get flags => CMFloatBitmapFlags.fromValue(flagsAsInt); + set flags(CMFloatBitmapFlags value) => flagsAsInt = value.value; +} + +enum CMFloatBitmapFlags { + kCMFloatBitmapFlagsNone(0), + kCMFloatBitmapFlagsAlpha(1), + kCMFloatBitmapFlagsAlphaPremul(2), + kCMFloatBitmapFlagsRangeClipped(4); + + final int value; + const CMFloatBitmapFlags(this.value); + + static CMFloatBitmapFlags fromValue(int value) => switch (value) { + 0 => kCMFloatBitmapFlagsNone, + 1 => kCMFloatBitmapFlagsAlpha, + 2 => kCMFloatBitmapFlagsAlphaPremul, + 4 => kCMFloatBitmapFlagsRangeClipped, + _ => throw ArgumentError('Unknown value for CMFloatBitmapFlags: $value'), + }; +} + +typedef CMFormatDescriptionRef = ffi.Pointer; + +final class CMGrayColor extends ffi.Struct { + @UInt16() + external int gray; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int gray, + }) => $allocator()..ref.gray = gray; +} + +final class CMHLSColor extends ffi.Struct { + @UInt16() + external int hue; + + @UInt16() + external int lightness; + + @UInt16() + external int saturation; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int hue, + required int lightness, + required int saturation, + }) => $allocator() + ..ref.hue = hue + ..ref.lightness = lightness + ..ref.saturation = saturation; +} + +final class CMHSVColor extends ffi.Struct { + @UInt16() + external int hue; + + @UInt16() + external int saturation; + + @UInt16() + external int value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int hue, + required int saturation, + required int value, + }) => $allocator() + ..ref.hue = hue + ..ref.saturation = saturation + ..ref.value = value; +} + +final class CMHandleLocation extends ffi.Struct { + external Handle h; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required Handle h, + }) => $allocator()..ref.h = h; +} + +@ffi.Packed(2) +final class CMIntentCRDVMSize extends ffi.Struct { + @UInt32() + external int renderingIntent; + + @UInt32() + external int VMSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int renderingIntent, + required int VMSize, + }) => $allocator() + ..ref.renderingIntent = renderingIntent + ..ref.VMSize = VMSize; +} + +typedef CMItemCount = CFIndex; +typedef CMItemIndex = CFIndex; +typedef CMIterateDeviceInfoProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + ffi.Pointer deviceInfo, + ffi.Pointer refCon, + ) + > + >; +typedef CMIterateDeviceProfileProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + ffi.Pointer deviceInfo, + ffi.Pointer profileInfo, + ffi.Pointer refCon, + ) + > + >; + +final class CMLabColor extends ffi.Struct { + @UInt16() + external int L; + + @UInt16() + external int a; + + @UInt16() + external int b; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int L, + required int a, + required int b, + }) => $allocator() + ..ref.L = L + ..ref.a = a + ..ref.b = b; +} + +typedef CMLabToLabProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer L, + ffi.Pointer a, + ffi.Pointer b, + ffi.Pointer refcon, + ) + > + >; + +@ffi.Packed(2) +final class CMLut16Type extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt8() + external int inputChannels; + + @UInt8() + external int outputChannels; + + @UInt8() + external int gridPoints; + + @UInt8() + external int reserved2; + + @ffi.Array.multi([3, 3]) + external ffi.Array> matrix; + + @UInt16() + external int inputTableEntries; + + @UInt16() + external int outputTableEntries; + + @ffi.Array.multi([1]) + external ffi.Array inputTable; +} + +@ffi.Packed(2) +final class CMLut8Type extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt8() + external int inputChannels; + + @UInt8() + external int outputChannels; + + @UInt8() + external int gridPoints; + + @UInt8() + external int reserved2; + + @ffi.Array.multi([3, 3]) + external ffi.Array> matrix; + + @ffi.Array.multi([1]) + external ffi.Array inputTable; +} + +final class CMLuvColor extends ffi.Struct { + @UInt16() + external int L; + + @UInt16() + external int u; + + @UInt16() + external int v; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int L, + required int u, + required int v, + }) => $allocator() + ..ref.L = L + ..ref.u = u + ..ref.v = v; +} + +typedef CMMApplyTransformProc = + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ColorSyncTransformRef transform, + ffi.Size width, + ffi.Size height, + ffi.Size dstPlanes, + ffi.Pointer> dst, + ffi.UnsignedInt dstDepth, + ColorSyncDataLayout dstFormat, + ffi.Size dstBytesPerRow, + ffi.Size srcPlanes, + ffi.Pointer> src, + ffi.UnsignedInt srcDepth, + ColorSyncDataLayout srcFormat, + ffi.Size srcBytesPerRow, + CFDictionaryRef options, + ) + > + >; +typedef CMMCreateTransformPropertyProc = + ffi.Pointer< + ffi.NativeFunction< + CFTypeRef Function( + ColorSyncTransformRef transform, + CFTypeRef key, + CFDictionaryRef options, + ) + > + >; + +final class CMMInfo extends ffi.Struct { + @ffi.Size() + external int dataSize; + + @OSType() + external int CMMType; + + @OSType() + external int CMMMfr; + + @UInt32() + external int CMMVersion; + + @ffi.Array.multi([32]) + external ffi.Array ASCIIName; + + @ffi.Array.multi([256]) + external ffi.Array ASCIIDesc; + + @UniCharCount() + external int UniCodeNameCount; + + @ffi.Array.multi([32]) + external ffi.Array UniCodeName; + + @UniCharCount() + external int UniCodeDescCount; + + @ffi.Array.multi([256]) + external ffi.Array UniCodeDesc; +} + +typedef CMMInitializeLinkProfileProc = + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ColorSyncMutableProfileRef, + CFArrayRef, + CFDictionaryRef, + ) + > + >; +typedef CMMInitializeTransformProc = + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ColorSyncTransformRef, CFArrayRef, CFDictionaryRef) + > + >; +typedef CMMIterateProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ) + > + >; +typedef CMMIterateUPP = CMMIterateProcPtr; + +@ffi.Packed(2) +final class CMMakeAndModel extends ffi.Struct { + @OSType() + external int manufacturer; + + @UInt32() + external int model; + + @UInt32() + external int serialNumber; + + @UInt32() + external int manufactureDate; + + @UInt32() + external int reserved1; + + @UInt32() + external int reserved2; + + @UInt32() + external int reserved3; + + @UInt32() + external int reserved4; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int manufacturer, + required int model, + required int serialNumber, + required int manufactureDate, + required int reserved1, + required int reserved2, + required int reserved3, + required int reserved4, + }) => $allocator() + ..ref.manufacturer = manufacturer + ..ref.model = model + ..ref.serialNumber = serialNumber + ..ref.manufactureDate = manufactureDate + ..ref.reserved1 = reserved1 + ..ref.reserved2 = reserved2 + ..ref.reserved3 = reserved3 + ..ref.reserved4 = reserved4; +} + +@ffi.Packed(2) +final class CMMakeAndModelType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + external CMMakeAndModel makeAndModel; +} + +@ffi.Packed(2) +final class CMMeasurementType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int standardObserver; + + external CMFixedXYZColor backingXYZ; + + @UInt32() + external int geometry; + + @UInt32() + external int flare; + + @UInt32() + external int illuminant; +} + +typedef CMMediaType = FourCharCode; +typedef CMMetadataFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMMetadataFormatType = FourCharCode; + +final class CMMultiFunctCLUTType extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array gridPoints; + + @UInt8() + external int entrySize; + + @ffi.Array.multi([3]) + external ffi.Array reserved; + + @ffi.Array.multi([2]) + external ffi.Array data; +} + +typedef CMMultiFunctLutA2BType = CMMultiFunctLutType; +typedef CMMultiFunctLutB2AType = CMMultiFunctLutType; + +@ffi.Packed(2) +final class CMMultiFunctLutType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt8() + external int inputChannels; + + @UInt8() + external int outputChannels; + + @UInt16() + external int reserved2; + + @UInt32() + external int offsetBcurves; + + @UInt32() + external int offsetMatrix; + + @UInt32() + external int offsetMcurves; + + @UInt32() + external int offsetCLUT; + + @UInt32() + external int offsetAcurves; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +@ffi.Packed(2) +final class CMMultiLocalizedUniCodeEntryRec extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array languageCode; + + @ffi.Array.multi([2]) + external ffi.Array regionCode; + + @UInt32() + external int textLength; + + @UInt32() + external int textOffset; +} + +@ffi.Packed(2) +final class CMMultiLocalizedUniCodeType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int entryCount; + + @UInt32() + external int entrySize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int typeDescriptor, + required int reserved, + required int entryCount, + required int entrySize, + }) => $allocator() + ..ref.typeDescriptor = typeDescriptor + ..ref.reserved = reserved + ..ref.entryCount = entryCount + ..ref.entrySize = entrySize; +} + +final class CMMultichannel5Color extends ffi.Struct { + @ffi.Array.multi([5]) + external ffi.Array components; +} + +final class CMMultichannel6Color extends ffi.Struct { + @ffi.Array.multi([6]) + external ffi.Array components; +} + +final class CMMultichannel7Color extends ffi.Struct { + @ffi.Array.multi([7]) + external ffi.Array components; +} + +final class CMMultichannel8Color extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array components; +} + +typedef CMMuxedFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMMuxedStreamType = FourCharCode; + +final class CMNamedColor extends ffi.Struct { + @UInt32() + external int namedColorIndex; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int namedColorIndex, + }) => $allocator()..ref.namedColorIndex = namedColorIndex; +} + +final class CMNamedColor2EntryType extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array rootName; + + @ffi.Array.multi([3]) + external ffi.Array PCSColorCoords; + + @ffi.Array.multi([1]) + external ffi.Array DeviceColorCoords; +} + +@ffi.Packed(2) +final class CMNamedColor2Type extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int vendorFlag; + + @UInt32() + external int count; + + @UInt32() + external int deviceChannelCount; + + @ffi.Array.multi([32]) + external ffi.Array prefixName; + + @ffi.Array.multi([32]) + external ffi.Array suffixName; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +@ffi.Packed(2) +final class CMNamedColorType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int vendorFlag; + + @UInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array prefixName; +} + +@ffi.Packed(2) +final class CMNativeDisplayInfo extends ffi.Struct { + @UInt32() + external int dataSize; + + external CMFixedXYColor redPhosphor; + + external CMFixedXYColor greenPhosphor; + + external CMFixedXYColor bluePhosphor; + + external CMFixedXYColor whitePoint; + + @Fixed() + external int redGammaValue; + + @Fixed() + external int greenGammaValue; + + @Fixed() + external int blueGammaValue; + + @UInt16() + external int gammaChannels; + + @UInt16() + external int gammaEntryCount; + + @UInt16() + external int gammaEntrySize; + + @ffi.Array.multi([1]) + external ffi.Array gammaData; +} + +@ffi.Packed(2) +final class CMNativeDisplayInfoType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + external CMNativeDisplayInfo nativeDisplayInfo; +} + +@ffi.Packed(2) +final class CMPS2CRDVMSizeType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array intentCRD; +} + +@ffi.Packed(2) +final class CMParametricCurveType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt16() + external int functionType; + + @UInt16() + external int reserved2; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +final class CMPathLocation extends ffi.Struct { + @ffi.Array.multi([1024]) + external ffi.Array path; +} + +typedef CMPersistentTrackID = ffi.Int32; +typedef DartCMPersistentTrackID = int; +typedef CMPixelFormatType = FourCharCode; + +final class CMProfLoc extends ffi.Union { + external CMHandleLocation handleLoc; + + external CMPathLocation pathLoc; + + external CMBufferLocation bufferLoc; +} + +final class CMProfileIterateData extends ffi.Struct { + @UInt32() + external int dataVersion; + + external CM2Header header; + + @ScriptCode() + external int code; + + @ffi.Array.multi([256]) + external ffi.Array name; + + external CMProfileLocation location; + + @UniCharCount() + external int uniCodeNameCount; + + external ffi.Pointer uniCodeName; + + external ffi.Pointer asciiName; + + external ffi.Pointer makeAndModel; + + external ffi.Pointer> digest; +} + +typedef CMProfileIterateProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ) + > + >; +typedef CMProfileIterateUPP = CMProfileIterateProcPtr; + +final class CMProfileLocation extends ffi.Struct { + @ffi.Short() + external int locType; + + external CMProfLoc u; +} + +typedef CMProfileMD5Ptr = ffi.Pointer>; +typedef CMProfileRef = ffi.Pointer; + +@ffi.Packed(2) +final class CMProfileSequenceDescType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +final class CMRGBColor extends ffi.Struct { + @UInt16() + external int red; + + @UInt16() + external int green; + + @UInt16() + external int blue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int red, + required int green, + required int blue, + }) => $allocator() + ..ref.red = red + ..ref.green = green + ..ref.blue = blue; +} + +@ffi.Packed(2) +final class CMS15Fixed16ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +enum CMSCertificateChainMode { + kCMSCertificateNone(0), + kCMSCertificateSignerOnly(1), + kCMSCertificateChain(2), + kCMSCertificateChainWithRoot(3), + kCMSCertificateChainWithRootOrFail(4); + + final int value; + const CMSCertificateChainMode(this.value); + + static CMSCertificateChainMode fromValue(int value) => switch (value) { + 0 => kCMSCertificateNone, + 1 => kCMSCertificateSignerOnly, + 2 => kCMSCertificateChain, + 3 => kCMSCertificateChainWithRoot, + 4 => kCMSCertificateChainWithRootOrFail, + _ => throw ArgumentError( + 'Unknown value for CMSCertificateChainMode: $value', + ), + }; +} + +typedef CMSDecoderRef = ffi.Pointer<_CMSDecoder>; +typedef CMSEncoderRef = ffi.Pointer<_CMSEncoder>; + +sealed class CMSSignedAttributes { + static const kCMSAttrNone = 0; + static const kCMSAttrSmimeCapabilities = 1; + static const kCMSAttrSmimeEncryptionKeyPrefs = 2; + static const kCMSAttrSmimeMSEncryptionKeyPrefs = 4; + static const kCMSAttrSigningTime = 8; + static const kCMSAttrAppleCodesigningHashAgility = 16; + static const kCMSAttrAppleCodesigningHashAgilityV2 = 32; + static const kCMSAttrAppleExpirationTime = 64; +} + +enum CMSSignerStatus { + kCMSSignerUnsigned(0), + kCMSSignerValid(1), + kCMSSignerNeedsDetachedContent(2), + kCMSSignerInvalidSignature(3), + kCMSSignerInvalidCert(4), + kCMSSignerInvalidIndex(5); + + final int value; + const CMSSignerStatus(this.value); + + static CMSSignerStatus fromValue(int value) => switch (value) { + 0 => kCMSSignerUnsigned, + 1 => kCMSSignerValid, + 2 => kCMSSignerNeedsDetachedContent, + 3 => kCMSSignerInvalidSignature, + 4 => kCMSSignerInvalidCert, + 5 => kCMSSignerInvalidIndex, + _ => throw ArgumentError('Unknown value for CMSSignerStatus: $value'), + }; +} + +@ffi.Packed(2) +final class CMScreeningChannelRec extends ffi.Struct { + @Fixed() + external int frequency; + + @Fixed() + external int angle; + + @UInt32() + external int spotFunction; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int frequency, + required int angle, + required int spotFunction, + }) => $allocator() + ..ref.frequency = frequency + ..ref.angle = angle + ..ref.spotFunction = spotFunction; +} + +@ffi.Packed(2) +final class CMScreeningType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int screeningFlag; + + @UInt32() + external int channelCount; + + @ffi.Array.multi([1]) + external ffi.Array channelInfo; +} + +@ffi.Packed(2) +final class CMSignatureType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @OSType() + external int signature; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int typeDescriptor, + required int reserved, + required int signature, + }) => $allocator() + ..ref.typeDescriptor = typeDescriptor + ..ref.reserved = reserved + ..ref.signature = signature; +} + +typedef CMStructVersion = ffi.UintPtr; +typedef DartCMStructVersion = int; +typedef CMSubtitleFormatType = FourCharCode; + +@ffi.Packed(2) +final class CMTagElemTable extends ffi.Struct { + @UInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array tagList; +} + +@ffi.Packed(2) +final class CMTagRecord extends ffi.Struct { + @OSType() + external int tag; + + @UInt32() + external int elementOffset; + + @UInt32() + external int elementSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tag, + required int elementOffset, + required int elementSize, + }) => $allocator() + ..ref.tag = tag + ..ref.elementOffset = elementOffset + ..ref.elementSize = elementSize; +} + +typedef CMTaggedBufferGroupFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMTaggedBufferGroupFormatType = FourCharCode; + +@ffi.Packed(2) +final class CMTextDescriptionType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int ASCIICount; + + @ffi.Array.multi([2]) + external ffi.Array ASCIIName; +} + +typedef CMTextDisplayFlags = ffi.Uint32; +typedef DartCMTextDisplayFlags = int; +typedef CMTextFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMTextFormatType = FourCharCode; +typedef CMTextJustificationValue = ffi.Int8; +typedef DartCMTextJustificationValue = int; + +@ffi.Packed(2) +final class CMTextType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array text; +} + +@ffi.Packed(4) +final class CMTime extends ffi.Struct { + @CMTimeValue() + external int value; + + @CMTimeScale() + external int timescale; + + @ffi.Uint32() + external int flags; + + @CMTimeEpoch() + external int epoch; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int value, + required int timescale, + required int flags, + required int epoch, + }) => $allocator() + ..ref.value = value + ..ref.timescale = timescale + ..ref.flags = flags + ..ref.epoch = epoch; +} + +typedef CMTimeCodeFormatDescriptionRef = CMFormatDescriptionRef; +typedef CMTimeCodeFormatType = FourCharCode; +typedef CMTimeEpoch = ffi.Int64; +typedef DartCMTimeEpoch = int; + +sealed class CMTimeFlags { + static const kCMTimeFlags_Valid = 1; + static const kCMTimeFlags_HasBeenRounded = 2; + static const kCMTimeFlags_PositiveInfinity = 4; + static const kCMTimeFlags_NegativeInfinity = 8; + static const kCMTimeFlags_Indefinite = 16; + static const kCMTimeFlags_ImpliedValueFlagsMask = 28; +} + +enum CMTimeRoundingMethod { + kCMTimeRoundingMethod_RoundHalfAwayFromZero(1), + kCMTimeRoundingMethod_RoundTowardZero(2), + kCMTimeRoundingMethod_RoundAwayFromZero(3), + kCMTimeRoundingMethod_QuickTime(4), + kCMTimeRoundingMethod_RoundTowardPositiveInfinity(5), + kCMTimeRoundingMethod_RoundTowardNegativeInfinity(6); + + static const kCMTimeRoundingMethod_Default = + kCMTimeRoundingMethod_RoundHalfAwayFromZero; + + final int value; + const CMTimeRoundingMethod(this.value); + + static CMTimeRoundingMethod fromValue(int value) => switch (value) { + 1 => kCMTimeRoundingMethod_RoundHalfAwayFromZero, + 2 => kCMTimeRoundingMethod_RoundTowardZero, + 3 => kCMTimeRoundingMethod_RoundAwayFromZero, + 4 => kCMTimeRoundingMethod_QuickTime, + 5 => kCMTimeRoundingMethod_RoundTowardPositiveInfinity, + 6 => kCMTimeRoundingMethod_RoundTowardNegativeInfinity, + _ => throw ArgumentError('Unknown value for CMTimeRoundingMethod: $value'), + }; + + @override + String toString() { + if (this == kCMTimeRoundingMethod_RoundHalfAwayFromZero) + return "CMTimeRoundingMethod.kCMTimeRoundingMethod_RoundHalfAwayFromZero, CMTimeRoundingMethod.kCMTimeRoundingMethod_Default"; + return super.toString(); + } +} + +typedef CMTimeScale = ffi.Int32; +typedef DartCMTimeScale = int; +typedef CMTimeValue = ffi.Int64; +typedef DartCMTimeValue = int; + +@ffi.Packed(2) +final class CMU16Fixed16ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +@ffi.Packed(2) +final class CMUInt16ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +@ffi.Packed(2) +final class CMUInt32ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +@ffi.Packed(2) +final class CMUInt64ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +@ffi.Packed(2) +final class CMUInt8ArrayType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +@ffi.Packed(2) +final class CMUcrBgType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @UInt32() + external int ucrCount; + + @ffi.Array.multi([1]) + external ffi.Array ucrValues; +} + +@ffi.Packed(2) +final class CMUnicodeTextType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array text; +} + +@ffi.Packed(2) +final class CMVideoCardGamma extends ffi.Struct { + @UInt32() + external int tagType; + + external UnnamedUnion$7 u; +} + +@ffi.Packed(2) +final class CMVideoCardGammaFormula extends ffi.Struct { + @Fixed() + external int redGamma; + + @Fixed() + external int redMin; + + @Fixed() + external int redMax; + + @Fixed() + external int greenGamma; + + @Fixed() + external int greenMin; + + @Fixed() + external int greenMax; + + @Fixed() + external int blueGamma; + + @Fixed() + external int blueMin; + + @Fixed() + external int blueMax; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int redGamma, + required int redMin, + required int redMax, + required int greenGamma, + required int greenMin, + required int greenMax, + required int blueGamma, + required int blueMin, + required int blueMax, + }) => $allocator() + ..ref.redGamma = redGamma + ..ref.redMin = redMin + ..ref.redMax = redMax + ..ref.greenGamma = greenGamma + ..ref.greenMin = greenMin + ..ref.greenMax = greenMax + ..ref.blueGamma = blueGamma + ..ref.blueMin = blueMin + ..ref.blueMax = blueMax; +} + +final class CMVideoCardGammaTable extends ffi.Struct { + @UInt16() + external int channels; + + @UInt16() + external int entryCount; + + @UInt16() + external int entrySize; + + @ffi.Array.multi([1]) + external ffi.Array data; +} + +@ffi.Packed(2) +final class CMVideoCardGammaType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + external CMVideoCardGamma gamma; +} + +typedef CMVideoCodecType = FourCharCode; + +final class CMVideoDimensions extends ffi.Struct { + @ffi.Int32() + external int width; + + @ffi.Int32() + external int height; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int width, + required int height, + }) => $allocator() + ..ref.width = width + ..ref.height = height; +} + +typedef CMVideoFormatDescriptionRef = CMFormatDescriptionRef; + +@ffi.Packed(2) +final class CMViewingConditionsType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + external CMFixedXYZColor illuminant; + + external CMFixedXYZColor surround; + + @UInt32() + external int stdIlluminant; +} + +typedef CMWorldRef = ffi.Pointer; + +final class CMXYZColor extends ffi.Struct { + @CMXYZComponent() + external int X; + + @CMXYZComponent() + external int Y; + + @CMXYZComponent() + external int Z; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int X, + required int Y, + required int Z, + }) => $allocator() + ..ref.X = X + ..ref.Y = Y + ..ref.Z = Z; +} + +typedef CMXYZComponent = UInt16; + +@ffi.Packed(2) +final class CMXYZType extends ffi.Struct { + @OSType() + external int typeDescriptor; + + @UInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array XYZ; +} + +final class CMYxyColor extends ffi.Struct { + @UInt16() + external int capY; + + @UInt16() + external int x; + + @UInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int capY, + required int x, + required int y, + }) => $allocator() + ..ref.capY = capY + ..ref.x = x + ..ref.y = y; +} + +@ffi.Packed(2) +final class CQDProcs extends ffi.Struct { + external QDTextUPP textProc; + + external QDLineUPP lineProc; + + external QDRectUPP rectProc; + + external QDRRectUPP rRectProc; + + external QDOvalUPP ovalProc; + + external QDArcUPP arcProc; + + external QDPolyUPP polyProc; + + external QDRgnUPP rgnProc; + + external QDBitsUPP bitsProc; + + external QDCommentUPP commentProc; + + external QDTxMeasUPP txMeasProc; + + external QDGetPicUPP getPicProc; + + external QDPutPicUPP putPicProc; + + external QDOpcodeUPP opcodeProc; + + external UniversalProcPtr newProc1; + + external QDStdGlyphsUPP glyphsProc; + + external QDPrinterStatusUPP printerStatusProc; + + external UniversalProcPtr newProc4; + + external UniversalProcPtr newProc5; + + external UniversalProcPtr newProc6; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QDTextUPP textProc, + required QDLineUPP lineProc, + required QDRectUPP rectProc, + required QDRRectUPP rRectProc, + required QDOvalUPP ovalProc, + required QDArcUPP arcProc, + required QDPolyUPP polyProc, + required QDRgnUPP rgnProc, + required QDBitsUPP bitsProc, + required QDCommentUPP commentProc, + required QDTxMeasUPP txMeasProc, + required QDGetPicUPP getPicProc, + required QDPutPicUPP putPicProc, + required QDOpcodeUPP opcodeProc, + required UniversalProcPtr newProc1, + required QDStdGlyphsUPP glyphsProc, + required QDPrinterStatusUPP printerStatusProc, + required UniversalProcPtr newProc4, + required UniversalProcPtr newProc5, + required UniversalProcPtr newProc6, + }) => $allocator() + ..ref.textProc = textProc + ..ref.lineProc = lineProc + ..ref.rectProc = rectProc + ..ref.rRectProc = rRectProc + ..ref.ovalProc = ovalProc + ..ref.arcProc = arcProc + ..ref.polyProc = polyProc + ..ref.rgnProc = rgnProc + ..ref.bitsProc = bitsProc + ..ref.commentProc = commentProc + ..ref.txMeasProc = txMeasProc + ..ref.getPicProc = getPicProc + ..ref.putPicProc = putPicProc + ..ref.opcodeProc = opcodeProc + ..ref.newProc1 = newProc1 + ..ref.glyphsProc = glyphsProc + ..ref.printerStatusProc = printerStatusProc + ..ref.newProc4 = newProc4 + ..ref.newProc5 = newProc5 + ..ref.newProc6 = newProc6; +} + +typedef CQDProcsPtr = ffi.Pointer; +typedef CSComponentsThreadMode = UInt32; +typedef CSDiskSpaceRecoveryCallback = ffi.Pointer; +typedef DartCSDiskSpaceRecoveryCallback = + objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >; +typedef CSDiskSpaceRecoveryOptions = ffi.Int; +typedef DartCSDiskSpaceRecoveryOptions = int; +typedef CSIdentityAuthorityRef = ffi.Pointer<__CSIdentityAuthority>; +typedef CSIdentityClass = CFIndex; + +@ffi.Packed(2) +final class CSIdentityClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + external CSIdentityStatusUpdatedCallback statusUpdated; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + required CSIdentityStatusUpdatedCallback statusUpdated, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription + ..ref.statusUpdated = statusUpdated; +} + +typedef CSIdentityFlags = CFOptionFlags; + +@ffi.Packed(2) +final class CSIdentityQueryClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retainInfo; + + external CFAllocatorReleaseCallBack releaseInfo; + + external CFAllocatorCopyDescriptionCallBack copyInfoDescription; + + external CSIdentityQueryReceiveEventCallback receiveEvent; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retainInfo, + required CFAllocatorReleaseCallBack releaseInfo, + required CFAllocatorCopyDescriptionCallBack copyInfoDescription, + required CSIdentityQueryReceiveEventCallback receiveEvent, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retainInfo = retainInfo + ..ref.releaseInfo = releaseInfo + ..ref.copyInfoDescription = copyInfoDescription + ..ref.receiveEvent = receiveEvent; +} + +typedef CSIdentityQueryEvent = CFIndex; +typedef CSIdentityQueryFlags = CFOptionFlags; +typedef CSIdentityQueryReceiveEventCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CSIdentityQueryRef query, + CSIdentityQueryEvent event, + CFArrayRef identities, + CFErrorRef error, + ffi.Pointer info, + ) + > + >; +typedef CSIdentityQueryRef = ffi.Pointer<__CSIdentityQuery>; +typedef CSIdentityQueryStringComparisonMethod = CFIndex; +typedef CSIdentityRef = ffi.Pointer<__CSIdentity>; +typedef CSIdentityStatusUpdatedCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CSIdentityRef identity, + CFIndex status, + CFErrorRef error, + ffi.Pointer info, + ) + > + >; + +const int CSSMERR_AC_DEVICE_FAILED = -2147405595; + +const int CSSMERR_AC_DEVICE_RESET = -2147405596; + +const int CSSMERR_AC_FUNCTION_FAILED = -2147405814; + +const int CSSMERR_AC_FUNCTION_NOT_IMPLEMENTED = -2147405817; + +const int CSSMERR_AC_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147405597; + +const int CSSMERR_AC_INTERNAL_ERROR = -2147405823; + +const int CSSMERR_AC_INVALID_BASE_ACLS = -2147405567; + +const int CSSMERR_AC_INVALID_CL_HANDLE = -2147405742; + +const int CSSMERR_AC_INVALID_CONTEXT_HANDLE = -2147405760; + +const int CSSMERR_AC_INVALID_DATA = -2147405754; + +const int CSSMERR_AC_INVALID_DB_HANDLE = -2147405750; + +const int CSSMERR_AC_INVALID_DB_LIST = -2147405748; + +const int CSSMERR_AC_INVALID_DB_LIST_POINTER = -2147405747; + +const int CSSMERR_AC_INVALID_DL_HANDLE = -2147405743; + +const int CSSMERR_AC_INVALID_ENCODING = -2147405565; + +const int CSSMERR_AC_INVALID_INPUT_POINTER = -2147405819; + +const int CSSMERR_AC_INVALID_OUTPUT_POINTER = -2147405818; + +const int CSSMERR_AC_INVALID_PASSTHROUGH_ID = -2147405738; + +const int CSSMERR_AC_INVALID_POINTER = -2147405820; + +const int CSSMERR_AC_INVALID_REQUESTOR = -2147405563; + +const int CSSMERR_AC_INVALID_REQUEST_DESCRIPTOR = -2147405562; + +const int CSSMERR_AC_INVALID_TP_HANDLE = -2147405741; + +const int CSSMERR_AC_INVALID_TUPLE_CREDENTIALS = -2147405566; + +const int CSSMERR_AC_INVALID_VALIDITY_PERIOD = -2147405564; + +const int CSSMERR_AC_IN_DARK_WAKE = -2147405594; + +const int CSSMERR_AC_MDS_ERROR = -2147405821; + +const int CSSMERR_AC_MEMORY_ERROR = -2147405822; + +const int CSSMERR_AC_NO_USER_INTERACTION = -2147405600; + +const int CSSMERR_AC_OS_ACCESS_DENIED = -2147405815; + +const int CSSMERR_AC_SELF_CHECK_FAILED = -2147405816; + +const int CSSMERR_AC_SERVICE_NOT_AVAILABLE = -2147405598; + +const int CSSMERR_AC_USER_CANCELED = -2147405599; + +const int CSSMERR_APPLEDL_DISK_FULL = -2147412991; + +const int CSSMERR_APPLEDL_FILE_TOO_BIG = -2147412989; + +const int CSSMERR_APPLEDL_INCOMPATIBLE_DATABASE_BLOB = -2147412986; + +const int CSSMERR_APPLEDL_INCOMPATIBLE_KEY_BLOB = -2147412985; + +const int CSSMERR_APPLEDL_INVALID_DATABASE_BLOB = -2147412988; + +const int CSSMERR_APPLEDL_INVALID_KEY_BLOB = -2147412987; + +const int CSSMERR_APPLEDL_INVALID_OPEN_PARAMETERS = -2147412992; + +const int CSSMERR_APPLEDL_QUOTA_EXCEEDED = -2147412990; + +const int CSSMERR_APPLETP_BAD_CERT_FROM_ISSUER = -2147408873; + +const int CSSMERR_APPLETP_CA_PIN_MISMATCH = -2147408836; + +const int CSSMERR_APPLETP_CERT_NOT_FOUND_FROM_ISSUER = -2147408874; + +const int CSSMERR_APPLETP_CODE_SIGN_DEVELOPMENT = -2147408845; + +const int CSSMERR_APPLETP_CRL_BAD_URI = -2147408881; + +const int CSSMERR_APPLETP_CRL_EXPIRED = -2147408885; + +const int CSSMERR_APPLETP_CRL_INVALID_ANCHOR_CERT = -2147408877; + +const int CSSMERR_APPLETP_CRL_NOT_FOUND = -2147408883; + +const int CSSMERR_APPLETP_CRL_NOT_TRUSTED = -2147408878; + +const int CSSMERR_APPLETP_CRL_NOT_VALID_YET = -2147408884; + +const int CSSMERR_APPLETP_CRL_POLICY_FAIL = -2147408876; + +const int CSSMERR_APPLETP_CRL_SERVER_DOWN = -2147408882; + +const int CSSMERR_APPLETP_CS_BAD_CERT_CHAIN_LENGTH = -2147408849; + +const int CSSMERR_APPLETP_CS_BAD_PATH_LENGTH = -2147408847; + +const int CSSMERR_APPLETP_CS_NO_BASIC_CONSTRAINTS = -2147408848; + +const int CSSMERR_APPLETP_CS_NO_EXTENDED_KEY_USAGE = -2147408846; + +const int CSSMERR_APPLETP_EXT_KEYUSAGE_NOT_CRITICAL = -2147408838; + +const int CSSMERR_APPLETP_HOSTNAME_MISMATCH = -2147408896; + +const int CSSMERR_APPLETP_IDENTIFIER_MISSING = -2147408837; + +const int CSSMERR_APPLETP_IDP_FAIL = -2147408875; + +const int CSSMERR_APPLETP_INCOMPLETE_REVOCATION_CHECK = -2147408861; + +const int CSSMERR_APPLETP_INVALID_AUTHORITY_ID = -2147408892; + +const int CSSMERR_APPLETP_INVALID_CA = -2147408893; + +const int CSSMERR_APPLETP_INVALID_EMPTY_SUBJECT = -2147408841; + +const int CSSMERR_APPLETP_INVALID_EXTENDED_KEY_USAGE = -2147408889; + +const int CSSMERR_APPLETP_INVALID_ID_LINKAGE = -2147408888; + +const int CSSMERR_APPLETP_INVALID_KEY_USAGE = -2147408890; + +const int CSSMERR_APPLETP_INVALID_ROOT = -2147408886; + +const int CSSMERR_APPLETP_INVALID_SUBJECT_ID = -2147408891; + +const int CSSMERR_APPLETP_LEAF_PIN_MISMATCH = -2147408835; + +const int CSSMERR_APPLETP_MISSING_REQUIRED_EXTENSION = -2147408839; + +const int CSSMERR_APPLETP_NETWORK_FAILURE = -2147408860; + +const int CSSMERR_APPLETP_NO_BASIC_CONSTRAINTS = -2147408894; + +const int CSSMERR_APPLETP_OCSP_BAD_REQUEST = -2147408864; + +const int CSSMERR_APPLETP_OCSP_BAD_RESPONSE = -2147408865; + +const int CSSMERR_APPLETP_OCSP_INVALID_ANCHOR_CERT = -2147408858; + +const int CSSMERR_APPLETP_OCSP_NONCE_MISMATCH = -2147408850; + +const int CSSMERR_APPLETP_OCSP_NOT_TRUSTED = -2147408859; + +const int CSSMERR_APPLETP_OCSP_NO_SIGNER = -2147408856; + +const int CSSMERR_APPLETP_OCSP_RESP_INTERNAL_ERR = -2147408854; + +const int CSSMERR_APPLETP_OCSP_RESP_MALFORMED_REQ = -2147408855; + +const int CSSMERR_APPLETP_OCSP_RESP_SIG_REQUIRED = -2147408852; + +const int CSSMERR_APPLETP_OCSP_RESP_TRY_LATER = -2147408853; + +const int CSSMERR_APPLETP_OCSP_RESP_UNAUTHORIZED = -2147408851; + +const int CSSMERR_APPLETP_OCSP_SIG_ERROR = -2147408857; + +const int CSSMERR_APPLETP_OCSP_STATUS_UNRECOGNIZED = -2147408862; + +const int CSSMERR_APPLETP_OCSP_UNAVAILABLE = -2147408863; + +const int CSSMERR_APPLETP_PATH_LEN_CONSTRAINT = -2147408887; + +const int CSSMERR_APPLETP_RS_BAD_CERT_CHAIN_LENGTH = -2147408844; + +const int CSSMERR_APPLETP_RS_BAD_EXTENDED_KEY_USAGE = -2147408843; + +const int CSSMERR_APPLETP_SMIME_BAD_EXT_KEY_USE = -2147408871; + +const int CSSMERR_APPLETP_SMIME_BAD_KEY_USE = -2147408870; + +const int CSSMERR_APPLETP_SMIME_EMAIL_ADDRS_NOT_FOUND = -2147408872; + +const int CSSMERR_APPLETP_SMIME_KEYUSAGE_NOT_CRITICAL = -2147408869; + +const int CSSMERR_APPLETP_SMIME_NO_EMAIL_ADDRS = -2147408868; + +const int CSSMERR_APPLETP_SMIME_SUBJ_ALT_NAME_NOT_CRIT = -2147408867; + +const int CSSMERR_APPLETP_SSL_BAD_EXT_KEY_USE = -2147408866; + +const int CSSMERR_APPLETP_TRUST_SETTING_DENY = -2147408842; + +const int CSSMERR_APPLETP_UNKNOWN_CERT_EXTEN = -2147408880; + +const int CSSMERR_APPLETP_UNKNOWN_CRITICAL_EXTEN = -2147408895; + +const int CSSMERR_APPLETP_UNKNOWN_CRL_EXTEN = -2147408879; + +const int CSSMERR_APPLETP_UNKNOWN_QUAL_CERT_STATEMENT = -2147408840; + +const int CSSMERR_APPLE_DOTMAC_CSR_VERIFY_FAIL = -2147408785; + +const int CSSMERR_APPLE_DOTMAC_FAILED_CONSISTENCY_CHECK = -2147408784; + +const int CSSMERR_APPLE_DOTMAC_NO_REQ_PENDING = -2147408786; + +const int CSSMERR_APPLE_DOTMAC_REQ_IS_PENDING = -2147408787; + +const int CSSMERR_APPLE_DOTMAC_REQ_QUEUED = -2147408796; + +const int CSSMERR_APPLE_DOTMAC_REQ_REDIRECT = -2147408795; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ALREADY_EXIST = -2147408789; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_AUTH = -2147408792; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ERR = -2147408794; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_NOT_AVAIL = -2147408790; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_PARAM = -2147408793; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_SERVICE_ERROR = -2147408788; + +const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_UNIMPL = -2147408791; + +const int CSSMERR_CL_CRL_ALREADY_SIGNED = -2147411897; + +const int CSSMERR_CL_DEVICE_FAILED = -2147411739; + +const int CSSMERR_CL_DEVICE_RESET = -2147411740; + +const int CSSMERR_CL_FUNCTION_FAILED = -2147411958; + +const int CSSMERR_CL_FUNCTION_NOT_IMPLEMENTED = -2147411961; + +const int CSSMERR_CL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147411741; + +const int CSSMERR_CL_INTERNAL_ERROR = -2147411967; + +const int CSSMERR_CL_INVALID_BUNDLE_INFO = -2147411708; + +const int CSSMERR_CL_INVALID_BUNDLE_POINTER = -2147411711; + +const int CSSMERR_CL_INVALID_CACHE_HANDLE = -2147411710; + +const int CSSMERR_CL_INVALID_CERTGROUP_POINTER = -2147411902; + +const int CSSMERR_CL_INVALID_CERT_POINTER = -2147411901; + +const int CSSMERR_CL_INVALID_CONTEXT_HANDLE = -2147411904; + +const int CSSMERR_CL_INVALID_CRL_INDEX = -2147411707; + +const int CSSMERR_CL_INVALID_CRL_POINTER = -2147411900; + +const int CSSMERR_CL_INVALID_DATA = -2147411898; + +const int CSSMERR_CL_INVALID_FIELD_POINTER = -2147411899; + +const int CSSMERR_CL_INVALID_INPUT_POINTER = -2147411963; + +const int CSSMERR_CL_INVALID_NUMBER_OF_FIELDS = -2147411896; + +const int CSSMERR_CL_INVALID_OUTPUT_POINTER = -2147411962; + +const int CSSMERR_CL_INVALID_PASSTHROUGH_ID = -2147411882; + +const int CSSMERR_CL_INVALID_POINTER = -2147411964; + +const int CSSMERR_CL_INVALID_RESULTS_HANDLE = -2147411709; + +const int CSSMERR_CL_INVALID_SCOPE = -2147411706; + +const int CSSMERR_CL_IN_DARK_WAKE = -2147411738; + +const int CSSMERR_CL_MDS_ERROR = -2147411965; + +const int CSSMERR_CL_MEMORY_ERROR = -2147411966; + +const int CSSMERR_CL_NO_FIELD_VALUES = -2147411705; + +const int CSSMERR_CL_NO_USER_INTERACTION = -2147411744; + +const int CSSMERR_CL_OS_ACCESS_DENIED = -2147411959; + +const int CSSMERR_CL_SCOPE_NOT_SUPPORTED = -2147411704; + +const int CSSMERR_CL_SELF_CHECK_FAILED = -2147411960; + +const int CSSMERR_CL_SERVICE_NOT_AVAILABLE = -2147411742; + +const int CSSMERR_CL_UNKNOWN_FORMAT = -2147411890; + +const int CSSMERR_CL_UNKNOWN_TAG = -2147411889; + +const int CSSMERR_CL_USER_CANCELED = -2147411743; + +const int CSSMERR_CL_VERIFICATION_FAILURE = -2147411895; + +const int CSSMERR_CSPDL_APPLE_DL_CONVERSION_ERROR = -2147415035; + +const int CSSMERR_CSP_ACL_ADD_FAILED = -2147416010; + +const int CSSMERR_CSP_ACL_BASE_CERTS_NOT_SUPPORTED = -2147416025; + +const int CSSMERR_CSP_ACL_CHALLENGE_CALLBACK_FAILED = -2147416019; + +const int CSSMERR_CSP_ACL_CHANGE_FAILED = -2147416015; + +const int CSSMERR_CSP_ACL_DELETE_FAILED = -2147416012; + +const int CSSMERR_CSP_ACL_ENTRY_TAG_NOT_FOUND = -2147416017; + +const int CSSMERR_CSP_ACL_REPLACE_FAILED = -2147416011; + +const int CSSMERR_CSP_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147416021; + +const int CSSMERR_CSP_ALGID_MISMATCH = -2147415789; + +const int CSSMERR_CSP_ALREADY_LOGGED_IN = -2147415726; + +const int CSSMERR_CSP_APPLE_ADD_APPLICATION_ACL_SUBJECT = -2147415040; + +const int CSSMERR_CSP_APPLE_INVALID_KEY_END_DATE = -2147415036; + +const int CSSMERR_CSP_APPLE_INVALID_KEY_START_DATE = -2147415037; + +const int CSSMERR_CSP_APPLE_PUBLIC_KEY_INCOMPLETE = -2147415039; + +const int CSSMERR_CSP_APPLE_SIGNATURE_MISMATCH = -2147415038; + +const int CSSMERR_CSP_APPLE_SSLv2_ROLLBACK = -2147415034; + +const int CSSMERR_CSP_ATTACH_HANDLE_BUSY = -2147415802; + +const int CSSMERR_CSP_BLOCK_SIZE_MISMATCH = -2147415731; + +const int CSSMERR_CSP_CRYPTO_DATA_CALLBACK_FAILED = -2147415722; + +const int CSSMERR_CSP_DEVICE_ERROR = -2147415804; + +const int CSSMERR_CSP_DEVICE_FAILED = -2147415835; + +const int CSSMERR_CSP_DEVICE_MEMORY_ERROR = -2147415803; + +const int CSSMERR_CSP_DEVICE_RESET = -2147415836; + +const int CSSMERR_CSP_DEVICE_VERIFY_FAILED = -2147415728; + +const int CSSMERR_CSP_FUNCTION_FAILED = -2147416054; + +const int CSSMERR_CSP_FUNCTION_NOT_IMPLEMENTED = -2147416057; + +const int CSSMERR_CSP_INPUT_LENGTH_ERROR = -2147415807; + +const int CSSMERR_CSP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147415837; + +const int CSSMERR_CSP_INTERNAL_ERROR = -2147416063; + +const int CSSMERR_CSP_INVALID_ACCESS_CREDENTIALS = -2147416027; + +const int CSSMERR_CSP_INVALID_ACL_BASE_CERTS = -2147416026; + +const int CSSMERR_CSP_INVALID_ACL_CHALLENGE_CALLBACK = -2147416020; + +const int CSSMERR_CSP_INVALID_ACL_EDIT_MODE = -2147416016; + +const int CSSMERR_CSP_INVALID_ACL_ENTRY_TAG = -2147416018; + +const int CSSMERR_CSP_INVALID_ACL_SUBJECT_VALUE = -2147416022; + +const int CSSMERR_CSP_INVALID_ALGORITHM = -2147415759; + +const int CSSMERR_CSP_INVALID_ATTR_ACCESS_CREDENTIALS = -2147415678; + +const int CSSMERR_CSP_INVALID_ATTR_ALG_PARAMS = -2147415704; + +const int CSSMERR_CSP_INVALID_ATTR_BASE = -2147415686; + +const int CSSMERR_CSP_INVALID_ATTR_BLOCK_SIZE = -2147415738; + +const int CSSMERR_CSP_INVALID_ATTR_DL_DB_HANDLE = -2147415680; + +const int CSSMERR_CSP_INVALID_ATTR_EFFECTIVE_BITS = -2147415696; + +const int CSSMERR_CSP_INVALID_ATTR_END_DATE = -2147415692; + +const int CSSMERR_CSP_INVALID_ATTR_INIT_VECTOR = -2147415752; + +const int CSSMERR_CSP_INVALID_ATTR_ITERATION_COUNT = -2147415682; + +const int CSSMERR_CSP_INVALID_ATTR_KEY = -2147415754; + +const int CSSMERR_CSP_INVALID_ATTR_KEY_LENGTH = -2147415740; + +const int CSSMERR_CSP_INVALID_ATTR_KEY_TYPE = -2147415700; + +const int CSSMERR_CSP_INVALID_ATTR_LABEL = -2147415702; + +const int CSSMERR_CSP_INVALID_ATTR_MODE = -2147415698; + +const int CSSMERR_CSP_INVALID_ATTR_OUTPUT_SIZE = -2147415708; + +const int CSSMERR_CSP_INVALID_ATTR_PADDING = -2147415748; + +const int CSSMERR_CSP_INVALID_ATTR_PASSPHRASE = -2147415742; + +const int CSSMERR_CSP_INVALID_ATTR_PRIME = -2147415688; + +const int CSSMERR_CSP_INVALID_ATTR_PRIVATE_KEY_FORMAT = -2147415674; + +const int CSSMERR_CSP_INVALID_ATTR_PUBLIC_KEY_FORMAT = -2147415676; + +const int CSSMERR_CSP_INVALID_ATTR_RANDOM = -2147415746; + +const int CSSMERR_CSP_INVALID_ATTR_ROUNDS = -2147415706; + +const int CSSMERR_CSP_INVALID_ATTR_SALT = -2147415750; + +const int CSSMERR_CSP_INVALID_ATTR_SEED = -2147415744; + +const int CSSMERR_CSP_INVALID_ATTR_START_DATE = -2147415694; + +const int CSSMERR_CSP_INVALID_ATTR_SUBPRIME = -2147415684; + +const int CSSMERR_CSP_INVALID_ATTR_SYMMETRIC_KEY_FORMAT = -2147415672; + +const int CSSMERR_CSP_INVALID_ATTR_VERSION = -2147415690; + +const int CSSMERR_CSP_INVALID_ATTR_WRAPPED_KEY_FORMAT = -2147415670; + +const int CSSMERR_CSP_INVALID_CONTEXT = -2147415760; + +const int CSSMERR_CSP_INVALID_CONTEXT_HANDLE = -2147416000; + +const int CSSMERR_CSP_INVALID_CRYPTO_DATA = -2147415976; + +const int CSSMERR_CSP_INVALID_DATA = -2147415994; + +const int CSSMERR_CSP_INVALID_DATA_COUNT = -2147415768; + +const int CSSMERR_CSP_INVALID_DIGEST_ALGORITHM = -2147415723; + +const int CSSMERR_CSP_INVALID_INPUT_POINTER = -2147416059; + +const int CSSMERR_CSP_INVALID_INPUT_VECTOR = -2147415766; + +const int CSSMERR_CSP_INVALID_KEY = -2147415792; + +const int CSSMERR_CSP_INVALID_KEYATTR_MASK = -2147415780; + +const int CSSMERR_CSP_INVALID_KEYUSAGE_MASK = -2147415782; + +const int CSSMERR_CSP_INVALID_KEY_CLASS = -2147415790; + +const int CSSMERR_CSP_INVALID_KEY_FORMAT = -2147415776; + +const int CSSMERR_CSP_INVALID_KEY_LABEL = -2147415778; + +const int CSSMERR_CSP_INVALID_KEY_POINTER = -2147415783; + +const int CSSMERR_CSP_INVALID_KEY_REFERENCE = -2147415791; + +const int CSSMERR_CSP_INVALID_LOGIN_NAME = -2147415727; + +const int CSSMERR_CSP_INVALID_NEW_ACL_ENTRY = -2147416014; + +const int CSSMERR_CSP_INVALID_NEW_ACL_OWNER = -2147416013; + +const int CSSMERR_CSP_INVALID_OUTPUT_POINTER = -2147416058; + +const int CSSMERR_CSP_INVALID_OUTPUT_VECTOR = -2147415765; + +const int CSSMERR_CSP_INVALID_PASSTHROUGH_ID = -2147415978; + +const int CSSMERR_CSP_INVALID_POINTER = -2147416060; + +const int CSSMERR_CSP_INVALID_SAMPLE_VALUE = -2147416024; + +const int CSSMERR_CSP_INVALID_SIGNATURE = -2147415733; + +const int CSSMERR_CSP_IN_DARK_WAKE = -2147415834; + +const int CSSMERR_CSP_KEY_BLOB_TYPE_INCORRECT = -2147415787; + +const int CSSMERR_CSP_KEY_HEADER_INCONSISTENT = -2147415786; + +const int CSSMERR_CSP_KEY_LABEL_ALREADY_EXISTS = -2147415724; + +const int CSSMERR_CSP_KEY_USAGE_INCORRECT = -2147415788; + +const int CSSMERR_CSP_MDS_ERROR = -2147416061; + +const int CSSMERR_CSP_MEMORY_ERROR = -2147416062; + +const int CSSMERR_CSP_MISSING_ATTR_ACCESS_CREDENTIALS = -2147415677; + +const int CSSMERR_CSP_MISSING_ATTR_ALG_PARAMS = -2147415703; + +const int CSSMERR_CSP_MISSING_ATTR_BASE = -2147415685; + +const int CSSMERR_CSP_MISSING_ATTR_BLOCK_SIZE = -2147415737; + +const int CSSMERR_CSP_MISSING_ATTR_DL_DB_HANDLE = -2147415679; + +const int CSSMERR_CSP_MISSING_ATTR_EFFECTIVE_BITS = -2147415695; + +const int CSSMERR_CSP_MISSING_ATTR_END_DATE = -2147415691; + +const int CSSMERR_CSP_MISSING_ATTR_INIT_VECTOR = -2147415751; + +const int CSSMERR_CSP_MISSING_ATTR_ITERATION_COUNT = -2147415681; + +const int CSSMERR_CSP_MISSING_ATTR_KEY = -2147415753; + +const int CSSMERR_CSP_MISSING_ATTR_KEY_LENGTH = -2147415739; + +const int CSSMERR_CSP_MISSING_ATTR_KEY_TYPE = -2147415699; + +const int CSSMERR_CSP_MISSING_ATTR_LABEL = -2147415701; + +const int CSSMERR_CSP_MISSING_ATTR_MODE = -2147415697; + +const int CSSMERR_CSP_MISSING_ATTR_OUTPUT_SIZE = -2147415707; + +const int CSSMERR_CSP_MISSING_ATTR_PADDING = -2147415747; + +const int CSSMERR_CSP_MISSING_ATTR_PASSPHRASE = -2147415741; + +const int CSSMERR_CSP_MISSING_ATTR_PRIME = -2147415687; + +const int CSSMERR_CSP_MISSING_ATTR_PRIVATE_KEY_FORMAT = -2147415673; + +const int CSSMERR_CSP_MISSING_ATTR_PUBLIC_KEY_FORMAT = -2147415675; + +const int CSSMERR_CSP_MISSING_ATTR_RANDOM = -2147415745; + +const int CSSMERR_CSP_MISSING_ATTR_ROUNDS = -2147415705; + +const int CSSMERR_CSP_MISSING_ATTR_SALT = -2147415749; + +const int CSSMERR_CSP_MISSING_ATTR_SEED = -2147415743; + +const int CSSMERR_CSP_MISSING_ATTR_START_DATE = -2147415693; + +const int CSSMERR_CSP_MISSING_ATTR_SUBPRIME = -2147415683; + +const int CSSMERR_CSP_MISSING_ATTR_SYMMETRIC_KEY_FORMAT = -2147415671; + +const int CSSMERR_CSP_MISSING_ATTR_VERSION = -2147415689; + +const int CSSMERR_CSP_MISSING_ATTR_WRAPPED_KEY_FORMAT = -2147415669; + +const int CSSMERR_CSP_NOT_LOGGED_IN = -2147415801; + +const int CSSMERR_CSP_NO_USER_INTERACTION = -2147415840; + +const int CSSMERR_CSP_OBJECT_ACL_NOT_SUPPORTED = -2147416029; + +const int CSSMERR_CSP_OBJECT_ACL_REQUIRED = -2147416028; + +const int CSSMERR_CSP_OBJECT_MANIP_AUTH_DENIED = -2147416030; + +const int CSSMERR_CSP_OBJECT_USE_AUTH_DENIED = -2147416031; + +const int CSSMERR_CSP_OPERATION_AUTH_DENIED = -2147416032; + +const int CSSMERR_CSP_OS_ACCESS_DENIED = -2147416055; + +const int CSSMERR_CSP_OUTPUT_LENGTH_ERROR = -2147415806; + +const int CSSMERR_CSP_PRIVATE_KEY_ALREADY_EXISTS = -2147415725; + +const int CSSMERR_CSP_PRIVATE_KEY_NOT_FOUND = -2147415730; + +const int CSSMERR_CSP_PRIVILEGE_NOT_GRANTED = -2147415989; + +const int CSSMERR_CSP_PRIVILEGE_NOT_SUPPORTED = -2147415805; + +const int CSSMERR_CSP_PUBLIC_KEY_INCONSISTENT = -2147415729; + +const int CSSMERR_CSP_QUERY_SIZE_UNKNOWN = -2147415732; + +const int CSSMERR_CSP_SAMPLE_VALUE_NOT_SUPPORTED = -2147416023; + +const int CSSMERR_CSP_SELF_CHECK_FAILED = -2147416056; + +const int CSSMERR_CSP_SERVICE_NOT_AVAILABLE = -2147415838; + +const int CSSMERR_CSP_STAGED_OPERATION_IN_PROGRESS = -2147415736; + +const int CSSMERR_CSP_STAGED_OPERATION_NOT_STARTED = -2147415735; + +const int CSSMERR_CSP_UNSUPPORTED_KEYATTR_MASK = -2147415779; + +const int CSSMERR_CSP_UNSUPPORTED_KEYUSAGE_MASK = -2147415781; + +const int CSSMERR_CSP_UNSUPPORTED_KEY_FORMAT = -2147415785; + +const int CSSMERR_CSP_UNSUPPORTED_KEY_LABEL = -2147415777; + +const int CSSMERR_CSP_UNSUPPORTED_KEY_SIZE = -2147415784; + +const int CSSMERR_CSP_USER_CANCELED = -2147415839; + +const int CSSMERR_CSP_VECTOR_OF_BUFS_UNSUPPORTED = -2147415767; + +const int CSSMERR_CSP_VERIFY_FAILED = -2147415734; + +const int CSSMERR_CSSM_ADDIN_AUTHENTICATE_FAILED = -2147417828; + +const int CSSMERR_CSSM_ADDIN_LOAD_FAILED = -2147417834; + +const int CSSMERR_CSSM_ADDIN_UNLOAD_FAILED = -2147417832; + +const int CSSMERR_CSSM_ATTRIBUTE_NOT_IN_CONTEXT = -2147417822; + +const int CSSMERR_CSSM_BUFFER_TOO_SMALL = -2147417824; + +const int CSSMERR_CSSM_DEVICE_FAILED = -2147417883; + +const int CSSMERR_CSSM_DEVICE_RESET = -2147417884; + +const int CSSMERR_CSSM_EMM_AUTHENTICATE_FAILED = -2147417829; + +const int CSSMERR_CSSM_EMM_LOAD_FAILED = -2147417836; + +const int CSSMERR_CSSM_EMM_UNLOAD_FAILED = -2147417835; + +const int CSSMERR_CSSM_EVENT_NOTIFICATION_CALLBACK_NOT_FOUND = -2147417819; + +const int CSSMERR_CSSM_FUNCTION_FAILED = -2147418102; + +const int CSSMERR_CSSM_FUNCTION_INTEGRITY_FAIL = -2147417851; + +const int CSSMERR_CSSM_FUNCTION_NOT_IMPLEMENTED = -2147418105; + +const int CSSMERR_CSSM_INCOMPATIBLE_VERSION = -2147418047; + +const int CSSMERR_CSSM_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147417885; + +const int CSSMERR_CSSM_INTERNAL_ERROR = -2147418111; + +const int CSSMERR_CSSM_INVALID_ADDIN_FUNCTION_TABLE = -2147417830; + +const int CSSMERR_CSSM_INVALID_ADDIN_HANDLE = -2147417855; + +const int CSSMERR_CSSM_INVALID_ATTRIBUTE = -2147417823; + +const int CSSMERR_CSSM_INVALID_CONTEXT_HANDLE = -2147418048; + +const int CSSMERR_CSSM_INVALID_GUID = -2147418100; + +const int CSSMERR_CSSM_INVALID_HANDLE_USAGE = -2147417853; + +const int CSSMERR_CSSM_INVALID_INPUT_POINTER = -2147418107; + +const int CSSMERR_CSSM_INVALID_KEY_HIERARCHY = -2147417833; + +const int CSSMERR_CSSM_INVALID_OUTPUT_POINTER = -2147418106; + +const int CSSMERR_CSSM_INVALID_POINTER = -2147418108; + +const int CSSMERR_CSSM_INVALID_PVC = -2147417837; + +const int CSSMERR_CSSM_INVALID_SERVICE_MASK = -2147417827; + +const int CSSMERR_CSSM_INVALID_SUBSERVICEID = -2147417825; + +const int CSSMERR_CSSM_IN_DARK_WAKE = -2147417882; + +const int CSSMERR_CSSM_LIB_REF_NOT_FOUND = -2147417831; + +const int CSSMERR_CSSM_MDS_ERROR = -2147418109; + +const int CSSMERR_CSSM_MEMORY_ERROR = -2147418110; + +const int CSSMERR_CSSM_MODULE_MANAGER_INITIALIZE_FAIL = -2147417821; + +const int CSSMERR_CSSM_MODULE_MANAGER_NOT_FOUND = -2147417820; + +const int CSSMERR_CSSM_MODULE_MANIFEST_VERIFY_FAILED = -2147418101; + +const int CSSMERR_CSSM_MODULE_NOT_LOADED = -2147417826; + +const int CSSMERR_CSSM_NOT_INITIALIZED = -2147417854; + +const int CSSMERR_CSSM_NO_USER_INTERACTION = -2147417888; + +const int CSSMERR_CSSM_OS_ACCESS_DENIED = -2147418103; + +const int CSSMERR_CSSM_PRIVILEGE_NOT_GRANTED = -2147418037; + +const int CSSMERR_CSSM_PVC_ALREADY_CONFIGURED = -2147417838; + +const int CSSMERR_CSSM_PVC_REFERENT_NOT_FOUND = -2147417852; + +const int CSSMERR_CSSM_SCOPE_NOT_SUPPORTED = -2147417839; + +const int CSSMERR_CSSM_SELF_CHECK_FAILED = -2147418104; + +const int CSSMERR_CSSM_SERVICE_NOT_AVAILABLE = -2147417886; + +const int CSSMERR_CSSM_USER_CANCELED = -2147417887; + +const int CSSMERR_DL_ACL_ADD_FAILED = -2147413962; + +const int CSSMERR_DL_ACL_BASE_CERTS_NOT_SUPPORTED = -2147413977; + +const int CSSMERR_DL_ACL_CHALLENGE_CALLBACK_FAILED = -2147413971; + +const int CSSMERR_DL_ACL_CHANGE_FAILED = -2147413967; + +const int CSSMERR_DL_ACL_DELETE_FAILED = -2147413964; + +const int CSSMERR_DL_ACL_ENTRY_TAG_NOT_FOUND = -2147413969; + +const int CSSMERR_DL_ACL_REPLACE_FAILED = -2147413963; + +const int CSSMERR_DL_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147413973; + +const int CSSMERR_DL_DATABASE_CORRUPT = -2147413759; + +const int CSSMERR_DL_DATASTORE_ALREADY_EXISTS = -2147413736; + +const int CSSMERR_DL_DATASTORE_DOESNOT_EXIST = -2147413737; + +const int CSSMERR_DL_DATASTORE_IS_OPEN = -2147413734; + +const int CSSMERR_DL_DB_LOCKED = -2147413735; + +const int CSSMERR_DL_DEVICE_FAILED = -2147413787; + +const int CSSMERR_DL_DEVICE_RESET = -2147413788; + +const int CSSMERR_DL_ENDOFDATA = -2147413715; + +const int CSSMERR_DL_FIELD_SPECIFIED_MULTIPLE = -2147413742; + +const int CSSMERR_DL_FUNCTION_FAILED = -2147414006; + +const int CSSMERR_DL_FUNCTION_NOT_IMPLEMENTED = -2147414009; + +const int CSSMERR_DL_INCOMPATIBLE_FIELD_FORMAT = -2147413741; + +const int CSSMERR_DL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147413789; + +const int CSSMERR_DL_INTERNAL_ERROR = -2147414015; + +const int CSSMERR_DL_INVALID_ACCESS_CREDENTIALS = -2147413979; + +const int CSSMERR_DL_INVALID_ACCESS_REQUEST = -2147413724; + +const int CSSMERR_DL_INVALID_ACL_BASE_CERTS = -2147413978; + +const int CSSMERR_DL_INVALID_ACL_CHALLENGE_CALLBACK = -2147413972; + +const int CSSMERR_DL_INVALID_ACL_EDIT_MODE = -2147413968; + +const int CSSMERR_DL_INVALID_ACL_ENTRY_TAG = -2147413970; + +const int CSSMERR_DL_INVALID_ACL_SUBJECT_VALUE = -2147413974; + +const int CSSMERR_DL_INVALID_CL_HANDLE = -2147413934; + +const int CSSMERR_DL_INVALID_CSP_HANDLE = -2147413936; + +const int CSSMERR_DL_INVALID_DB_HANDLE = -2147413942; + +const int CSSMERR_DL_INVALID_DB_LIST_POINTER = -2147413939; + +const int CSSMERR_DL_INVALID_DB_LOCATION = -2147413725; + +const int CSSMERR_DL_INVALID_DB_NAME = -2147413738; + +const int CSSMERR_DL_INVALID_DL_HANDLE = -2147413935; + +const int CSSMERR_DL_INVALID_FIELD_NAME = -2147413750; + +const int CSSMERR_DL_INVALID_INDEX_INFO = -2147413723; + +const int CSSMERR_DL_INVALID_INPUT_POINTER = -2147414011; + +const int CSSMERR_DL_INVALID_MODIFY_MODE = -2147413718; + +const int CSSMERR_DL_INVALID_NETWORK_ADDR = -2147413929; + +const int CSSMERR_DL_INVALID_NEW_ACL_ENTRY = -2147413966; + +const int CSSMERR_DL_INVALID_NEW_ACL_OWNER = -2147413965; + +const int CSSMERR_DL_INVALID_NEW_OWNER = -2147413721; + +const int CSSMERR_DL_INVALID_OPEN_PARAMETERS = -2147413717; + +const int CSSMERR_DL_INVALID_OUTPUT_POINTER = -2147414010; + +const int CSSMERR_DL_INVALID_PARSING_MODULE = -2147413740; + +const int CSSMERR_DL_INVALID_PASSTHROUGH_ID = -2147413930; + +const int CSSMERR_DL_INVALID_POINTER = -2147414012; + +const int CSSMERR_DL_INVALID_QUERY = -2147413714; + +const int CSSMERR_DL_INVALID_RECORDTYPE = -2147413751; + +const int CSSMERR_DL_INVALID_RECORD_INDEX = -2147413752; + +const int CSSMERR_DL_INVALID_RECORD_UID = -2147413720; + +const int CSSMERR_DL_INVALID_RESULTS_HANDLE = -2147413726; + +const int CSSMERR_DL_INVALID_SAMPLE_VALUE = -2147413976; + +const int CSSMERR_DL_INVALID_SELECTION_TAG = -2147413722; + +const int CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA = -2147413719; + +const int CSSMERR_DL_INVALID_VALUE = -2147413713; + +const int CSSMERR_DL_IN_DARK_WAKE = -2147413786; + +const int CSSMERR_DL_MDS_ERROR = -2147414013; + +const int CSSMERR_DL_MEMORY_ERROR = -2147414014; + +const int CSSMERR_DL_MISSING_VALUE = -2147413732; + +const int CSSMERR_DL_MULTIPLE_VALUES_UNSUPPORTED = -2147413712; + +const int CSSMERR_DL_NO_USER_INTERACTION = -2147413792; + +const int CSSMERR_DL_OBJECT_ACL_NOT_SUPPORTED = -2147413981; + +const int CSSMERR_DL_OBJECT_ACL_REQUIRED = -2147413980; + +const int CSSMERR_DL_OBJECT_MANIP_AUTH_DENIED = -2147413982; + +const int CSSMERR_DL_OBJECT_USE_AUTH_DENIED = -2147413983; + +const int CSSMERR_DL_OPERATION_AUTH_DENIED = -2147413984; + +const int CSSMERR_DL_OS_ACCESS_DENIED = -2147414007; + +const int CSSMERR_DL_RECORD_MODIFIED = -2147413716; + +const int CSSMERR_DL_RECORD_NOT_FOUND = -2147413733; + +const int CSSMERR_DL_SAMPLE_VALUE_NOT_SUPPORTED = -2147413975; + +const int CSSMERR_DL_SELF_CHECK_FAILED = -2147414008; + +const int CSSMERR_DL_SERVICE_NOT_AVAILABLE = -2147413790; + +const int CSSMERR_DL_STALE_UNIQUE_RECORD = -2147413711; + +const int CSSMERR_DL_UNSUPPORTED_FIELD_FORMAT = -2147413749; + +const int CSSMERR_DL_UNSUPPORTED_INDEX_INFO = -2147413748; + +const int CSSMERR_DL_UNSUPPORTED_LOCALITY = -2147413747; + +const int CSSMERR_DL_UNSUPPORTED_NUM_ATTRIBUTES = -2147413746; + +const int CSSMERR_DL_UNSUPPORTED_NUM_INDEXES = -2147413745; + +const int CSSMERR_DL_UNSUPPORTED_NUM_RECORDTYPES = -2147413744; + +const int CSSMERR_DL_UNSUPPORTED_NUM_SELECTION_PREDS = -2147413729; + +const int CSSMERR_DL_UNSUPPORTED_OPERATOR = -2147413727; + +const int CSSMERR_DL_UNSUPPORTED_QUERY = -2147413731; + +const int CSSMERR_DL_UNSUPPORTED_QUERY_LIMITS = -2147413730; + +const int CSSMERR_DL_UNSUPPORTED_RECORDTYPE = -2147413743; + +const int CSSMERR_DL_USER_CANCELED = -2147413791; + +const int CSSMERR_TP_AUTHENTICATION_FAILED = -2147409657; + +const int CSSMERR_TP_CERTGROUP_INCOMPLETE = -2147409656; + +const int CSSMERR_TP_CERTIFICATE_CANT_OPERATE = -2147409655; + +const int CSSMERR_TP_CERT_EXPIRED = -2147409654; + +const int CSSMERR_TP_CERT_NOT_VALID_YET = -2147409653; + +const int CSSMERR_TP_CERT_REVOKED = -2147409652; + +const int CSSMERR_TP_CERT_SUSPENDED = -2147409651; + +const int CSSMERR_TP_CRL_ALREADY_SIGNED = -2147409849; + +const int CSSMERR_TP_DEVICE_FAILED = -2147409691; + +const int CSSMERR_TP_DEVICE_RESET = -2147409692; + +const int CSSMERR_TP_FUNCTION_FAILED = -2147409910; + +const int CSSMERR_TP_FUNCTION_NOT_IMPLEMENTED = -2147409913; + +const int CSSMERR_TP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147409693; + +const int CSSMERR_TP_INSUFFICIENT_CREDENTIALS = -2147409650; + +const int CSSMERR_TP_INTERNAL_ERROR = -2147409919; + +const int CSSMERR_TP_INVALID_ACTION = -2147409649; + +const int CSSMERR_TP_INVALID_ACTION_DATA = -2147409648; + +const int CSSMERR_TP_INVALID_ANCHOR_CERT = -2147409646; + +const int CSSMERR_TP_INVALID_AUTHORITY = -2147409645; + +const int CSSMERR_TP_INVALID_CALLBACK = -2147409625; + +const int CSSMERR_TP_INVALID_CALLERAUTH_CONTEXT_POINTER = -2147409663; + +const int CSSMERR_TP_INVALID_CERTGROUP = -2147409660; + +const int CSSMERR_TP_INVALID_CERTGROUP_POINTER = -2147409854; + +const int CSSMERR_TP_INVALID_CERTIFICATE = -2147409643; + +const int CSSMERR_TP_INVALID_CERT_AUTHORITY = -2147409642; + +const int CSSMERR_TP_INVALID_CERT_POINTER = -2147409853; + +const int CSSMERR_TP_INVALID_CL_HANDLE = -2147409838; + +const int CSSMERR_TP_INVALID_CONTEXT_HANDLE = -2147409856; + +const int CSSMERR_TP_INVALID_CRL = -2147409638; + +const int CSSMERR_TP_INVALID_CRLGROUP = -2147409659; + +const int CSSMERR_TP_INVALID_CRLGROUP_POINTER = -2147409658; + +const int CSSMERR_TP_INVALID_CRL_AUTHORITY = -2147409641; + +const int CSSMERR_TP_INVALID_CRL_ENCODING = -2147409640; + +const int CSSMERR_TP_INVALID_CRL_POINTER = -2147409852; + +const int CSSMERR_TP_INVALID_CRL_TYPE = -2147409639; + +const int CSSMERR_TP_INVALID_CSP_HANDLE = -2147409840; + +const int CSSMERR_TP_INVALID_DATA = -2147409850; + +const int CSSMERR_TP_INVALID_DB_HANDLE = -2147409846; + +const int CSSMERR_TP_INVALID_DB_LIST = -2147409844; + +const int CSSMERR_TP_INVALID_DB_LIST_POINTER = -2147409843; + +const int CSSMERR_TP_INVALID_DL_HANDLE = -2147409839; + +const int CSSMERR_TP_INVALID_FIELD_POINTER = -2147409851; + +const int CSSMERR_TP_INVALID_FORM_TYPE = -2147409637; + +const int CSSMERR_TP_INVALID_ID = -2147409636; + +const int CSSMERR_TP_INVALID_IDENTIFIER = -2147409635; + +const int CSSMERR_TP_INVALID_IDENTIFIER_POINTER = -2147409662; + +const int CSSMERR_TP_INVALID_INDEX = -2147409634; + +const int CSSMERR_TP_INVALID_INPUT_POINTER = -2147409915; + +const int CSSMERR_TP_INVALID_KEYCACHE_HANDLE = -2147409661; + +const int CSSMERR_TP_INVALID_NAME = -2147409633; + +const int CSSMERR_TP_INVALID_NETWORK_ADDR = -2147409833; + +const int CSSMERR_TP_INVALID_NUMBER_OF_FIELDS = -2147409848; + +const int CSSMERR_TP_INVALID_OUTPUT_POINTER = -2147409914; + +const int CSSMERR_TP_INVALID_PASSTHROUGH_ID = -2147409834; + +const int CSSMERR_TP_INVALID_POINTER = -2147409916; + +const int CSSMERR_TP_INVALID_POLICY_IDENTIFIERS = -2147409632; + +const int CSSMERR_TP_INVALID_REASON = -2147409630; + +const int CSSMERR_TP_INVALID_REQUEST_INPUTS = -2147409629; + +const int CSSMERR_TP_INVALID_RESPONSE_VECTOR = -2147409628; + +const int CSSMERR_TP_INVALID_SIGNATURE = -2147409627; + +const int CSSMERR_TP_INVALID_STOP_ON_POLICY = -2147409626; + +const int CSSMERR_TP_INVALID_TIMESTRING = -2147409631; + +const int CSSMERR_TP_INVALID_TUPLE = -2147409624; + +const int CSSMERR_TP_INVALID_TUPLEGROUP = -2147409614; + +const int CSSMERR_TP_INVALID_TUPLEGROUP_POINTER = -2147409615; + +const int CSSMERR_TP_IN_DARK_WAKE = -2147409690; + +const int CSSMERR_TP_MDS_ERROR = -2147409917; + +const int CSSMERR_TP_MEMORY_ERROR = -2147409918; + +const int CSSMERR_TP_NOT_SIGNER = -2147409623; + +const int CSSMERR_TP_NOT_TRUSTED = -2147409622; + +const int CSSMERR_TP_NO_DEFAULT_AUTHORITY = -2147409621; + +const int CSSMERR_TP_NO_USER_INTERACTION = -2147409696; + +const int CSSMERR_TP_OS_ACCESS_DENIED = -2147409911; + +const int CSSMERR_TP_REJECTED_FORM = -2147409620; + +const int CSSMERR_TP_REQUEST_LOST = -2147409619; + +const int CSSMERR_TP_REQUEST_REJECTED = -2147409618; + +const int CSSMERR_TP_SELF_CHECK_FAILED = -2147409912; + +const int CSSMERR_TP_SERVICE_NOT_AVAILABLE = -2147409694; + +const int CSSMERR_TP_UNKNOWN_FORMAT = -2147409842; + +const int CSSMERR_TP_UNKNOWN_TAG = -2147409841; + +const int CSSMERR_TP_UNSUPPORTED_ADDR_TYPE = -2147409617; + +const int CSSMERR_TP_UNSUPPORTED_SERVICE = -2147409616; + +const int CSSMERR_TP_USER_CANCELED = -2147409695; + +const int CSSMERR_TP_VERIFICATION_FAILURE = -2147409847; + +const int CSSMERR_TP_VERIFY_ACTION_FAILED = -2147409644; + +typedef CSSM_ACCESS_CREDENTIALS = cssm_access_credentials; +typedef CSSM_ACCESS_CREDENTIALS_PTR = ffi.Pointer; + +const int CSSM_ACL_AUTHORIZATION_ANY = 1; + +const int CSSM_ACL_AUTHORIZATION_CHANGE_ACL = 65536; + +const int CSSM_ACL_AUTHORIZATION_CHANGE_OWNER = 65537; + +const int CSSM_ACL_AUTHORIZATION_DBS_CREATE = 22; + +const int CSSM_ACL_AUTHORIZATION_DBS_DELETE = 23; + +const int CSSM_ACL_AUTHORIZATION_DB_DELETE = 17; + +const int CSSM_ACL_AUTHORIZATION_DB_INSERT = 19; + +const int CSSM_ACL_AUTHORIZATION_DB_MODIFY = 20; + +const int CSSM_ACL_AUTHORIZATION_DB_READ = 21; + +const int CSSM_ACL_AUTHORIZATION_DECRYPT = 24; + +const int CSSM_ACL_AUTHORIZATION_DELETE = 25; + +const int CSSM_ACL_AUTHORIZATION_DERIVE = 28; + +const int CSSM_ACL_AUTHORIZATION_ENCRYPT = 35; + +const int CSSM_ACL_AUTHORIZATION_EXPORT_CLEAR = 37; + +const int CSSM_ACL_AUTHORIZATION_EXPORT_WRAPPED = 38; + +const int CSSM_ACL_AUTHORIZATION_GENKEY = 41; + +const int CSSM_ACL_AUTHORIZATION_IMPORT_CLEAR = 47; + +const int CSSM_ACL_AUTHORIZATION_IMPORT_WRAPPED = 48; + +const int CSSM_ACL_AUTHORIZATION_INTEGRITY = 65539; + +const int CSSM_ACL_AUTHORIZATION_LOGIN = 57; + +const int CSSM_ACL_AUTHORIZATION_MAC = 59; + +const int CSSM_ACL_AUTHORIZATION_PARTITION_ID = 65538; + +const int CSSM_ACL_AUTHORIZATION_PREAUTH_BASE = 16842752; + +const int CSSM_ACL_AUTHORIZATION_PREAUTH_END = 16908288; + +const int CSSM_ACL_AUTHORIZATION_SIGN = 115; + +typedef CSSM_ACL_AUTHORIZATION_TAG = sint32; + +const int CSSM_ACL_AUTHORIZATION_TAG_VENDOR_DEFINED_START = 65536; + +const int CSSM_ACL_CODE_SIGNATURE_INVALID = 0; + +const int CSSM_ACL_CODE_SIGNATURE_OSX = 1; + +typedef CSSM_ACL_EDIT = cssm_acl_edit; +typedef CSSM_ACL_EDIT_MODE = uint32; + +const int CSSM_ACL_EDIT_MODE_ADD = 1; + +const int CSSM_ACL_EDIT_MODE_DELETE = 2; + +const int CSSM_ACL_EDIT_MODE_REPLACE = 3; + +typedef CSSM_ACL_EDIT_PTR = ffi.Pointer; +typedef CSSM_ACL_ENTRY_INFO = cssm_acl_entry_info; +typedef CSSM_ACL_ENTRY_INFO_PTR = ffi.Pointer; +typedef CSSM_ACL_ENTRY_INPUT = cssm_acl_entry_input; +typedef CSSM_ACL_ENTRY_INPUT_PTR = ffi.Pointer; +typedef CSSM_ACL_ENTRY_PROTOTYPE = cssm_acl_entry_prototype; +typedef CSSM_ACL_ENTRY_PROTOTYPE_PTR = ffi.Pointer; +typedef CSSM_ACL_HANDLE = CSSM_HANDLE; + +const int CSSM_ACL_KEYCHAIN_PROMPT_CURRENT_VERSION = 257; + +const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID = 64; + +const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID_ACT = 128; + +const int CSSM_ACL_KEYCHAIN_PROMPT_REQUIRE_PASSPHRASE = 1; + +typedef CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR = cssm_acl_keychain_prompt_selector; + +const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED = 16; + +const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED_ACT = 32; + +const int CSSM_ACL_MATCH_BITS = 3; + +const int CSSM_ACL_MATCH_GID = 2; + +const int CSSM_ACL_MATCH_HONOR_ROOT = 256; + +const int CSSM_ACL_MATCH_UID = 1; + +typedef CSSM_ACL_OWNER_PROTOTYPE = cssm_acl_owner_prototype; +typedef CSSM_ACL_OWNER_PROTOTYPE_PTR = ffi.Pointer; + +const int CSSM_ACL_PREAUTH_TRACKING_AUTHORIZED = -2147483648; + +const int CSSM_ACL_PREAUTH_TRACKING_BLOCKED = 0; + +const int CSSM_ACL_PREAUTH_TRACKING_COUNT_MASK = 255; + +typedef CSSM_ACL_PREAUTH_TRACKING_STATE = uint32; + +const int CSSM_ACL_PREAUTH_TRACKING_UNKNOWN = 1073741824; + +const int CSSM_ACL_PROCESS_SELECTOR_CURRENT_VERSION = 257; + +typedef CSSM_ACL_PROCESS_SUBJECT_SELECTOR = cssm_acl_process_subject_selector; +typedef CSSM_ACL_SUBJECT_CALLBACK = + ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer SubjectRequest, + CSSM_LIST_PTR SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ) + > + >; +typedef CSSM_ACL_SUBJECT_TYPE = sint32; + +const int CSSM_ACL_SUBJECT_TYPE_ANY = 1; + +const int CSSM_ACL_SUBJECT_TYPE_ASYMMETRIC_KEY = 65547; + +const int CSSM_ACL_SUBJECT_TYPE_BIOMETRIC = 8; + +const int CSSM_ACL_SUBJECT_TYPE_CODE_SIGNATURE = 116; + +const int CSSM_ACL_SUBJECT_TYPE_COMMENT = 12; + +const int CSSM_ACL_SUBJECT_TYPE_EXT_PAM_NAME = 78; + +const int CSSM_ACL_SUBJECT_TYPE_HASHED_SUBJECT = 44; + +const int CSSM_ACL_SUBJECT_TYPE_KEYCHAIN_PROMPT = 65536; + +const int CSSM_ACL_SUBJECT_TYPE_LOGIN_NAME = 58; + +const int CSSM_ACL_SUBJECT_TYPE_PARTITION = 65548; + +const int CSSM_ACL_SUBJECT_TYPE_PASSWORD = 79; + +const int CSSM_ACL_SUBJECT_TYPE_PREAUTH = 65545; + +const int CSSM_ACL_SUBJECT_TYPE_PREAUTH_SOURCE = 65546; + +const int CSSM_ACL_SUBJECT_TYPE_PROCESS = 65539; + +const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_BIOMETRIC = 83; + +const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_PASSWORD = 84; + +const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_BIOMETRIC = 86; + +const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_PASSWORD = 87; + +const int CSSM_ACL_SUBJECT_TYPE_PUBLIC_KEY = 89; + +const int CSSM_ACL_SUBJECT_TYPE_SYMMETRIC_KEY = 65541; + +const int CSSM_ACL_SUBJECT_TYPE_THRESHOLD = 123; + +typedef CSSM_ACL_VALIDITY_PERIOD = cssm_acl_validity_period; +typedef CSSM_ACL_VALIDITY_PERIOD_PTR = ffi.Pointer; + +const int CSSM_AC_BASE_AC_ERROR = -2147405568; + +const int CSSM_AC_BASE_ERROR = -2147405824; + +typedef CSSM_AC_HANDLE = CSSM_MODULE_HANDLE; + +const int CSSM_AC_PRIVATE_ERROR = -2147404800; + +const int CSSM_ADDR_CUSTOM = 1; + +const int CSSM_ADDR_NAME = 4; + +const int CSSM_ADDR_NONE = 0; + +const int CSSM_ADDR_SOCKADDR = 3; + +const int CSSM_ADDR_URL = 2; + +const int CSSM_ALGCLASS_ASYMMETRIC = 8; + +const int CSSM_ALGCLASS_CUSTOM = 1; + +const int CSSM_ALGCLASS_DERIVEKEY = 10; + +const int CSSM_ALGCLASS_DIGEST = 4; + +const int CSSM_ALGCLASS_KEYGEN = 9; + +const int CSSM_ALGCLASS_MAC = 7; + +const int CSSM_ALGCLASS_NONE = 0; + +const int CSSM_ALGCLASS_RANDOMGEN = 5; + +const int CSSM_ALGCLASS_SIGNATURE = 2; + +const int CSSM_ALGCLASS_SYMMETRIC = 3; + +const int CSSM_ALGCLASS_UNIQUEGEN = 6; + +const int CSSM_ALGID_3DES = 77; + +const int CSSM_ALGID_3DES_1KEY = 20; + +const int CSSM_ALGID_3DES_1KEY_EEE = 19; + +const int CSSM_ALGID_3DES_2KEY = 18; + +const int CSSM_ALGID_3DES_2KEY_EDE = 18; + +const int CSSM_ALGID_3DES_2KEY_EEE = 21; + +const int CSSM_ALGID_3DES_3KEY = 17; + +const int CSSM_ALGID_3DES_3KEY_EDE = 17; + +const int CSSM_ALGID_3DES_3KEY_EEE = 20; + +const int CSSM_ALGID_AES = -2147483647; + +const int CSSM_ALGID_APPLE_YARROW = -2147483648; + +const int CSSM_ALGID_ASC = -2147483641; + +const int CSSM_ALGID_BATON = 72; + +const int CSSM_ALGID_BLOWFISH = 28; + +const int CSSM_ALGID_CAST = 27; + +const int CSSM_ALGID_CAST3 = 53; + +const int CSSM_ALGID_CAST5 = 54; + +const int CSSM_ALGID_CDMF = 52; + +const int CSSM_ALGID_CRAB = 41; + +const int CSSM_ALGID_CUSTOM = 1; + +const int CSSM_ALGID_ConcatBaseAndData = 58; + +const int CSSM_ALGID_ConcatBaseAndKey = 56; + +const int CSSM_ALGID_ConcatDataAndBase = 59; + +const int CSSM_ALGID_ConcatKeyAndBase = 57; + +const int CSSM_ALGID_DES = 14; + +const int CSSM_ALGID_DESRandom = 50; + +const int CSSM_ALGID_DESX = 15; + +const int CSSM_ALGID_DH = 2; + +const int CSSM_ALGID_DSA = 43; + +const int CSSM_ALGID_DSA_BSAFE = 83; + +const int CSSM_ALGID_ECAES = 90; + +const int CSSM_ALGID_ECC = 93; + +const int CSSM_ALGID_ECDH = 84; + +const int CSSM_ALGID_ECDH_X963_KDF = -2147483619; + +const int CSSM_ALGID_ECDSA = 73; + +const int CSSM_ALGID_ECDSA_SPECIFIED = -2147483620; + +const int CSSM_ALGID_ECES = 89; + +const int CSSM_ALGID_ECMQV = 85; + +const int CSSM_ALGID_ECNRA = 87; + +const int CSSM_ALGID_ENTROPY_DEFAULT = -2147483631; + +const int CSSM_ALGID_ElGamal = 46; + +const int CSSM_ALGID_ExtractFromKey = 61; + +const int CSSM_ALGID_FASTHASH = 76; + +const int CSSM_ALGID_FEAL = 32; + +const int CSSM_ALGID_FEE = -2147483646; + +const int CSSM_ALGID_FEED = -2147483643; + +const int CSSM_ALGID_FEEDEXP = -2147483642; + +const int CSSM_ALGID_FEE_MD5 = -2147483645; + +const int CSSM_ALGID_FEE_SHA1 = -2147483644; + +const int CSSM_ALGID_FIPS186Random = 92; + +const int CSSM_ALGID_FortezzaTimestamp = 80; + +const int CSSM_ALGID_GOST = 39; + +const int CSSM_ALGID_GenericSecret = 55; + +const int CSSM_ALGID_HAVAL = 10; + +const int CSSM_ALGID_HAVAL3 = 98; + +const int CSSM_ALGID_HAVAL4 = 99; + +const int CSSM_ALGID_HAVAL5 = 100; + +const int CSSM_ALGID_IBCHASH = 12; + +const int CSSM_ALGID_IDEA = 22; + +const int CSSM_ALGID_IntelPlatformRandom = 96; + +const int CSSM_ALGID_JUNIPER = 75; + +const int CSSM_ALGID_KEA = 4; + +const int CSSM_ALGID_KEYCHAIN_KEY = -2147483639; + +const int CSSM_ALGID_KHAFRE = 37; + +const int CSSM_ALGID_KHUFU = 36; + +const int CSSM_ALGID_LAST = 2147483647; + +const int CSSM_ALGID_LOKI = 35; + +const int CSSM_ALGID_LUCIFER = 30; + +const int CSSM_ALGID_MADRYGA = 31; + +const int CSSM_ALGID_MAYFLY = 74; + +const int CSSM_ALGID_MD2 = 5; + +const int CSSM_ALGID_MD2Random = 47; + +const int CSSM_ALGID_MD2WithRSA = 45; + +const int CSSM_ALGID_MD4 = 6; + +const int CSSM_ALGID_MD5 = 7; + +const int CSSM_ALGID_MD5HMAC = 102; + +const int CSSM_ALGID_MD5Random = 48; + +const int CSSM_ALGID_MD5WithRSA = 44; + +const int CSSM_ALGID_MMB = 38; + +const int CSSM_ALGID_MQV = 94; + +const int CSSM_ALGID_NHASH = 9; + +const int CSSM_ALGID_NONE = 0; + +const int CSSM_ALGID_NRA = 95; + +const int CSSM_ALGID_OPENSSH1 = -2147483625; + +const int CSSM_ALGID_PBE_OPENSSL_MD5 = -2147483635; + +const int CSSM_ALGID_PH = 3; + +const int CSSM_ALGID_PKCS12_PBE_ENCR = -2147483638; + +const int CSSM_ALGID_PKCS12_PBE_MAC = -2147483637; + +const int CSSM_ALGID_PKCS12_SHA1_PBE = 86; + +const int CSSM_ALGID_PKCS5_PBKDF1_MD2 = 68; + +const int CSSM_ALGID_PKCS5_PBKDF1_MD5 = 67; + +const int CSSM_ALGID_PKCS5_PBKDF1_SHA1 = 69; + +const int CSSM_ALGID_PKCS5_PBKDF2 = 103; + +const int CSSM_ALGID_RC2 = 23; + +const int CSSM_ALGID_RC4 = 25; + +const int CSSM_ALGID_RC5 = 24; + +const int CSSM_ALGID_RDES = 16; + +const int CSSM_ALGID_REDOC = 33; + +const int CSSM_ALGID_REDOC3 = 34; + +const int CSSM_ALGID_RIPEMAC = 13; + +const int CSSM_ALGID_RIPEMD = 11; + +const int CSSM_ALGID_RSA = 42; + +const int CSSM_ALGID_RUNNING_COUNTER = 104; + +const int CSSM_ALGID_SAFER = 40; + +const int CSSM_ALGID_SEAL = 26; + +const int CSSM_ALGID_SECURE_PASSPHRASE = -2147483636; + +const int CSSM_ALGID_SHA1 = 8; + +const int CSSM_ALGID_SHA1HMAC = 91; + +const int CSSM_ALGID_SHA1HMAC_LEGACY = -2147483640; + +const int CSSM_ALGID_SHA1WithDSA = 81; + +const int CSSM_ALGID_SHA1WithECDSA = 82; + +const int CSSM_ALGID_SHA1WithECNRA = 88; + +const int CSSM_ALGID_SHA1WithRSA = 51; + +const int CSSM_ALGID_SHA224 = -2147483630; + +const int CSSM_ALGID_SHA224WithECDSA = -2147483624; + +const int CSSM_ALGID_SHA224WithRSA = -2147483629; + +const int CSSM_ALGID_SHA256 = -2147483634; + +const int CSSM_ALGID_SHA256WithECDSA = -2147483623; + +const int CSSM_ALGID_SHA256WithRSA = -2147483628; + +const int CSSM_ALGID_SHA384 = -2147483633; + +const int CSSM_ALGID_SHA384WithECDSA = -2147483622; + +const int CSSM_ALGID_SHA384WithRSA = -2147483627; + +const int CSSM_ALGID_SHA512 = -2147483632; + +const int CSSM_ALGID_SHA512WithECDSA = -2147483621; + +const int CSSM_ALGID_SHA512WithRSA = -2147483626; + +const int CSSM_ALGID_SHARandom = 49; + +const int CSSM_ALGID_SKIPJACK = 29; + +const int CSSM_ALGID_SSL3KeyAndMacDerive = 64; + +const int CSSM_ALGID_SSL3MD5 = 78; + +const int CSSM_ALGID_SSL3MD5_MAC = 65; + +@Deprecated('Deprecated') +const int CSSM_ALGID_SSL3MasterDerive = 63; + +@Deprecated('Deprecated') +const int CSSM_ALGID_SSL3PreMasterGen = 62; + +const int CSSM_ALGID_SSL3PrePrimaryGen = 62; + +const int CSSM_ALGID_SSL3PrimaryDerive = 63; + +const int CSSM_ALGID_SSL3SHA1 = 79; + +const int CSSM_ALGID_SSL3SHA1_MAC = 66; + +const int CSSM_ALGID_TIGER = 101; + +const int CSSM_ALGID_UTC = 97; + +const int CSSM_ALGID_VENDOR_DEFINED = -2147483648; + +const int CSSM_ALGID_WrapLynks = 70; + +const int CSSM_ALGID_WrapSET_OAEP = 71; + +const int CSSM_ALGID_XORBaseAndData = 60; + +const int CSSM_ALGID__FIRST_UNUSED = -2147483618; + +const int CSSM_ALGMODE_BC = 14; + +const int CSSM_ALGMODE_CBC = 4; + +const int CSSM_ALGMODE_CBC128 = 36; + +const int CSSM_ALGMODE_CBC64 = 25; + +const int CSSM_ALGMODE_CBCC = 16; + +const int CSSM_ALGMODE_CBCPD = 20; + +const int CSSM_ALGMODE_CBCPadIV8 = 6; + +const int CSSM_ALGMODE_CBC_IV8 = 5; + +const int CSSM_ALGMODE_CFB = 7; + +const int CSSM_ALGMODE_CFB16 = 29; + +const int CSSM_ALGMODE_CFB32 = 28; + +const int CSSM_ALGMODE_CFB8 = 30; + +const int CSSM_ALGMODE_CFBPadIV8 = 9; + +const int CSSM_ALGMODE_CFB_IV8 = 8; + +const int CSSM_ALGMODE_COUNTER = 13; + +const int CSSM_ALGMODE_CUSTOM = 1; + +const int CSSM_ALGMODE_ECB = 2; + +const int CSSM_ALGMODE_ECB128 = 34; + +const int CSSM_ALGMODE_ECB64 = 24; + +const int CSSM_ALGMODE_ECB96 = 35; + +const int CSSM_ALGMODE_ECBPad = 3; + +const int CSSM_ALGMODE_ISO_9796 = 41; + +const int CSSM_ALGMODE_LAST = 2147483647; + +const int CSSM_ALGMODE_NONE = 0; + +const int CSSM_ALGMODE_OAEP_HASH = 37; + +const int CSSM_ALGMODE_OFB = 10; + +const int CSSM_ALGMODE_OFB64 = 26; + +const int CSSM_ALGMODE_OFBNLF = 17; + +const int CSSM_ALGMODE_OFBPadIV8 = 12; + +const int CSSM_ALGMODE_OFB_IV8 = 11; + +const int CSSM_ALGMODE_PBC = 18; + +const int CSSM_ALGMODE_PCBC = 15; + +const int CSSM_ALGMODE_PFB = 19; + +const int CSSM_ALGMODE_PKCS1_EME_OAEP = 39; + +const int CSSM_ALGMODE_PKCS1_EME_V15 = 38; + +const int CSSM_ALGMODE_PKCS1_EMSA_V15 = 40; + +const int CSSM_ALGMODE_PRIVATE_KEY = 22; + +const int CSSM_ALGMODE_PRIVATE_WRAP = 32; + +const int CSSM_ALGMODE_PUBLIC_KEY = 21; + +const int CSSM_ALGMODE_RELAYX = 33; + +const int CSSM_ALGMODE_SHUFFLE = 23; + +const int CSSM_ALGMODE_VENDOR_DEFINED = -2147483648; + +const int CSSM_ALGMODE_WRAP = 31; + +const int CSSM_ALGMODE_X9_31 = 42; + +typedef CSSM_ALGORITHMS = uint32; +typedef CSSM_API_MEMORY_FUNCS = CSSM_MEMORY_FUNCS; +typedef CSSM_API_MEMORY_FUNCS_PTR = ffi.Pointer; +typedef CSSM_API_ModuleEventHandler = + ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + uint32 SubserviceId, + CSSM_SERVICE_TYPE ServiceType, + CSSM_MODULE_EVENT EventType, + ) + > + >; + +const int CSSM_APPLECSPDL_DB_CHANGE_PASSWORD = 5; + +typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS = + cssm_applecspdl_db_change_password_parameters; +typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS_PTR = + ffi.Pointer; + +const int CSSM_APPLECSPDL_DB_GET_HANDLE = 6; + +const int CSSM_APPLECSPDL_DB_GET_SETTINGS = 2; + +const int CSSM_APPLECSPDL_DB_IS_LOCKED = 4; + +typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS = + cssm_applecspdl_db_is_locked_parameters; +typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS_PTR = + ffi.Pointer; + +const int CSSM_APPLECSPDL_DB_LOCK = 0; + +typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS = + cssm_applecspdl_db_settings_parameters; +typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS_PTR = + ffi.Pointer; + +const int CSSM_APPLECSPDL_DB_SET_SETTINGS = 3; + +const int CSSM_APPLECSPDL_DB_UNLOCK = 1; + +const int CSSM_APPLECSP_KEYDIGEST = 256; + +const int CSSM_APPLECSP_PUBKEY = 257; + +typedef CSSM_APPLEDL_OPEN_PARAMETERS = cssm_appledl_open_parameters; +typedef CSSM_APPLEDL_OPEN_PARAMETERS_PTR = + ffi.Pointer; + +const int CSSM_APPLEDL_OPEN_PARAMETERS_VERSION = 1; + +const int CSSM_APPLEFILEDL_COMMIT = 1; + +const int CSSM_APPLEFILEDL_DELETE_FILE = 6; + +const int CSSM_APPLEFILEDL_MAKE_BACKUP = 4; + +const int CSSM_APPLEFILEDL_MAKE_COPY = 5; + +const int CSSM_APPLEFILEDL_ROLLBACK = 2; + +const int CSSM_APPLEFILEDL_TAKE_FILE_LOCK = 3; + +const int CSSM_APPLEFILEDL_TOGGLE_AUTOCOMMIT = 0; + +const int CSSM_APPLESCPDL_CSP_GET_KEYHANDLE = 7; + +const int CSSM_APPLEX509CL_OBTAIN_CSR = 0; + +const int CSSM_APPLEX509CL_VERIFY_CSR = 1; + +final class CSSM_APPLE_CL_CSR_REQUEST extends ffi.Struct { + external CSSM_X509_NAME_PTR subjectNameX509; + + @CSSM_ALGORITHMS() + external int signatureAlg; + + external SecAsn1Oid signatureOid; + + @CSSM_CSP_HANDLE() + external int cspHand; + + external ffi.Pointer subjectPublicKey; + + external ffi.Pointer subjectPrivateKey; + + external ffi.Pointer challengeString; +} + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_10 = 10; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_11 = 11; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_12 = 12; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_13 = 13; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_14 = 14; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_15 = 15; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_16 = 16; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_17 = 17; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_18 = 18; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_19 = 19; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_20 = 20; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_21 = 21; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_22 = 22; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_23 = 23; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_24 = 24; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_25 = 25; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_26 = 26; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_27 = 27; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_28 = 28; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_8 = 8; + +const int CSSM_APPLE_PRIVATE_CSPDL_CODE_9 = 9; + +final class CSSM_APPLE_TP_ACTION_DATA extends ffi.Struct { + @uint32() + external int Version; + + @CSSM_APPLE_TP_ACTION_FLAGS() + external int ActionFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Version, + required int ActionFlags, + }) => $allocator() + ..ref.Version = Version + ..ref.ActionFlags = ActionFlags; +} + +typedef CSSM_APPLE_TP_ACTION_FLAGS = uint32; + +final class CSSM_APPLE_TP_CERT_REQUEST extends ffi.Struct { + @CSSM_CSP_HANDLE() + external int cspHand; + + @CSSM_CL_HANDLE() + external int clHand; + + @uint32() + external int serialNumber; + + @uint32() + external int numSubjectNames; + + external ffi.Pointer subjectNames; + + @uint32() + external int numIssuerNames; + + external ffi.Pointer issuerNames; + + external CSSM_X509_NAME_PTR issuerNameX509; + + external ffi.Pointer certPublicKey; + + external ffi.Pointer issuerPrivateKey; + + @CSSM_ALGORITHMS() + external int signatureAlg; + + external SecAsn1Oid signatureOid; + + @uint32() + external int notBefore; + + @uint32() + external int notAfter; + + @uint32() + external int numExtensions; + + external ffi.Pointer extensions; + + external ffi.Pointer challengeString; +} + +final class CSSM_APPLE_TP_CRL_OPTIONS extends ffi.Struct { + @uint32() + external int Version; + + @CSSM_APPLE_TP_CRL_OPT_FLAGS() + external int CrlFlags; + + external CSSM_DL_DB_HANDLE_PTR crlStore; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Version, + required int CrlFlags, + required CSSM_DL_DB_HANDLE_PTR crlStore, + }) => $allocator() + ..ref.Version = Version + ..ref.CrlFlags = CrlFlags + ..ref.crlStore = crlStore; +} + +typedef CSSM_APPLE_TP_CRL_OPT_FLAGS = uint32; + +final class CSSM_APPLE_TP_NAME_OID extends ffi.Struct { + external ffi.Pointer string; + + external ffi.Pointer oid; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer string, + required ffi.Pointer oid, + }) => $allocator() + ..ref.string = string + ..ref.oid = oid; +} + +final class CSSM_APPLE_TP_SMIME_OPTIONS extends ffi.Struct { + @uint32() + external int Version; + + @CE_KeyUsage() + external int IntendedUsage; + + @uint32() + external int SenderEmailLen; + + external ffi.Pointer SenderEmail; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Version, + required int IntendedUsage, + required int SenderEmailLen, + required ffi.Pointer SenderEmail, + }) => $allocator() + ..ref.Version = Version + ..ref.IntendedUsage = IntendedUsage + ..ref.SenderEmailLen = SenderEmailLen + ..ref.SenderEmail = SenderEmail; +} + +final class CSSM_APPLE_TP_SSL_OPTIONS extends ffi.Struct { + @uint32() + external int Version; + + @uint32() + external int ServerNameLen; + + external ffi.Pointer ServerName; + + @uint32() + external int Flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Version, + required int ServerNameLen, + required ffi.Pointer ServerName, + required int Flags, + }) => $allocator() + ..ref.Version = Version + ..ref.ServerNameLen = ServerNameLen + ..ref.ServerName = ServerName + ..ref.Flags = Flags; +} + +const int CSSM_APPLE_UNLOCK_TYPE_KEYBAG = 3; + +const int CSSM_APPLE_UNLOCK_TYPE_KEY_DIRECT = 1; + +const int CSSM_APPLE_UNLOCK_TYPE_WRAPPED_PRIVATE = 2; + +const int CSSM_ASC_OPTIMIZE_ASCII = 5; + +const int CSSM_ASC_OPTIMIZE_DEFAULT = 0; + +const int CSSM_ASC_OPTIMIZE_SECURITY = 2; + +const int CSSM_ASC_OPTIMIZE_SIZE = 1; + +const int CSSM_ASC_OPTIMIZE_TIME = 3; + +const int CSSM_ASC_OPTIMIZE_TIME_SIZE = 4; + +typedef CSSM_ATTACH_FLAGS = uint32; + +const int CSSM_ATTACH_READ_ONLY = 1; + +const int CSSM_ATTRIBUTE_ACCESS_CREDENTIALS = -2147483612; + +const int CSSM_ATTRIBUTE_ALERT_TITLE = 545259527; + +const int CSSM_ATTRIBUTE_ALG_ID = 268435485; + +const int CSSM_ATTRIBUTE_ALG_PARAMS = 536870928; + +const int CSSM_ATTRIBUTE_ASC_OPTIMIZATION = 276824067; + +const int CSSM_ATTRIBUTE_BASE = 536870939; + +const int CSSM_ATTRIBUTE_BLOCK_SIZE = 268435468; + +const int CSSM_ATTRIBUTE_CSP_HANDLE = 268435490; + +const int CSSM_ATTRIBUTE_CUSTOM = 536870913; + +const int CSSM_ATTRIBUTE_DATA_ACCESS_CREDENTIALS = -2147483648; + +const int CSSM_ATTRIBUTE_DATA_CRYPTO_DATA = 805306368; + +const int CSSM_ATTRIBUTE_DATA_CSSM_DATA = 536870912; + +const int CSSM_ATTRIBUTE_DATA_DATE = 1610612736; + +const int CSSM_ATTRIBUTE_DATA_DL_DB_HANDLE = 33554432; + +const int CSSM_ATTRIBUTE_DATA_KEY = 1073741824; + +const int CSSM_ATTRIBUTE_DATA_KR_PROFILE = 50331648; + +const int CSSM_ATTRIBUTE_DATA_NONE = 0; + +const int CSSM_ATTRIBUTE_DATA_RANGE = 1879048192; + +const int CSSM_ATTRIBUTE_DATA_STRING = 1342177280; + +const int CSSM_ATTRIBUTE_DATA_UINT32 = 268435456; + +const int CSSM_ATTRIBUTE_DATA_VERSION = 16777216; + +const int CSSM_ATTRIBUTE_DESCRIPTION = 1342177282; + +const int CSSM_ATTRIBUTE_DL_DB_HANDLE = 33554467; + +const int CSSM_ATTRIBUTE_EFFECTIVE_BITS = 268435476; + +const int CSSM_ATTRIBUTE_END_DATE = 1610612758; + +const int CSSM_ATTRIBUTE_FEE_CURVE_TYPE = 276824066; + +const int CSSM_ATTRIBUTE_FEE_PRIME_TYPE = 276824065; + +const int CSSM_ATTRIBUTE_INIT_VECTOR = 536870916; + +const int CSSM_ATTRIBUTE_ITERATION_COUNT = 268435486; + +const int CSSM_ATTRIBUTE_IV_SIZE = 268435471; + +const int CSSM_ATTRIBUTE_KEY = 1073741827; + +const int CSSM_ATTRIBUTE_KEYATTR = 268435480; + +const int CSSM_ATTRIBUTE_KEYUSAGE = 268435479; + +const int CSSM_ATTRIBUTE_KEY_LENGTH = 268435466; + +const int CSSM_ATTRIBUTE_KEY_LENGTH_RANGE = 1879048203; + +const int CSSM_ATTRIBUTE_KEY_TYPE = 268435474; + +const int CSSM_ATTRIBUTE_KRPROFILE_LOCAL = 50331680; + +const int CSSM_ATTRIBUTE_KRPROFILE_REMOTE = 50331681; + +const int CSSM_ATTRIBUTE_LABEL = 536870929; + +const int CSSM_ATTRIBUTE_MODE = 268435475; + +const int CSSM_ATTRIBUTE_NONE = 0; + +const int CSSM_ATTRIBUTE_OUTPUT_SIZE = 268435469; + +const int CSSM_ATTRIBUTE_PADDING = 268435462; + +const int CSSM_ATTRIBUTE_PARAM_KEY = 1082130437; + +const int CSSM_ATTRIBUTE_PASSPHRASE = 805306377; + +const int CSSM_ATTRIBUTE_PRIME = 536870938; + +const int CSSM_ATTRIBUTE_PRIVATE_KEY_FORMAT = 268435494; + +const int CSSM_ATTRIBUTE_PROMPT = 545259526; + +const int CSSM_ATTRIBUTE_PUBLIC_KEY = 1082130432; + +const int CSSM_ATTRIBUTE_PUBLIC_KEY_FORMAT = 268435493; + +const int CSSM_ATTRIBUTE_RANDOM = 536870919; + +const int CSSM_ATTRIBUTE_ROUNDS = 268435470; + +const int CSSM_ATTRIBUTE_ROUNDS_RANGE = 1879048223; + +const int CSSM_ATTRIBUTE_RSA_BLINDING = 276824068; + +const int CSSM_ATTRIBUTE_SALT = 536870917; + +const int CSSM_ATTRIBUTE_SEED = 805306376; + +const int CSSM_ATTRIBUTE_START_DATE = 1610612757; + +const int CSSM_ATTRIBUTE_SUBPRIME = 536870940; + +const int CSSM_ATTRIBUTE_SYMMETRIC_KEY_FORMAT = 268435495; + +typedef CSSM_ATTRIBUTE_TYPE = uint32; + +const int CSSM_ATTRIBUTE_TYPE_MASK = -16777216; + +const int CSSM_ATTRIBUTE_VENDOR_DEFINED = 8388608; + +const int CSSM_ATTRIBUTE_VERIFY_PASSPHRASE = 276824072; + +const int CSSM_ATTRIBUTE_VERSION = 16777241; + +const int CSSM_ATTRIBUTE_WRAPPED_KEY_FORMAT = 268435496; + +typedef CSSM_AUTHORIZATIONGROUP = cssm_authorizationgroup; +typedef CSSM_AUTHORIZATIONGROUP_PTR = ffi.Pointer; +typedef CSSM_BASE_CERTS = cssm_base_certs; +typedef CSSM_BASE_CERTS_PTR = ffi.Pointer; + +const int CSSM_BASE_ERROR = -2147418112; + +typedef CSSM_BER_TAG = uint8; +typedef CSSM_BITMASK = uint32; +typedef CSSM_BOOL = sint32; +typedef CSSM_CALLBACK = + ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DATA_PTR OutData, + ffi.Pointer CallerCtx, + ) + > + >; +typedef CSSM_CALLOC = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + uint32 num, + CSSM_SIZE size, + ffi.Pointer allocref, + ) + > + >; +typedef CSSM_CC_HANDLE = CSSM_LONG_HANDLE; +typedef CSSM_CERTGROUP = cssm_certgroup; + +const int CSSM_CERTGROUP_CERT_PAIR = 3; + +const int CSSM_CERTGROUP_DATA = 0; + +const int CSSM_CERTGROUP_ENCODED_CERT = 1; + +const int CSSM_CERTGROUP_PARSED_CERT = 2; + +typedef CSSM_CERTGROUP_PTR = ffi.Pointer; +typedef CSSM_CERTGROUP_TYPE = uint32; +typedef CSSM_CERTGROUP_TYPE_PTR = ffi.Pointer; + +const int CSSM_CERT_ACL_ENTRY = 12; + +typedef CSSM_CERT_BUNDLE = cssm_cert_bundle; + +const int CSSM_CERT_BUNDLE_CUSTOM = 1; + +typedef CSSM_CERT_BUNDLE_ENCODING = uint32; + +const int CSSM_CERT_BUNDLE_ENCODING_BER = 2; + +const int CSSM_CERT_BUNDLE_ENCODING_CUSTOM = 1; + +const int CSSM_CERT_BUNDLE_ENCODING_DER = 3; + +const int CSSM_CERT_BUNDLE_ENCODING_PGP = 5; + +const int CSSM_CERT_BUNDLE_ENCODING_SEXPR = 4; + +const int CSSM_CERT_BUNDLE_ENCODING_UNKNOWN = 0; + +typedef CSSM_CERT_BUNDLE_HEADER = cssm_cert_bundle_header; +typedef CSSM_CERT_BUNDLE_HEADER_PTR = ffi.Pointer; + +const int CSSM_CERT_BUNDLE_LAST = 32767; + +const int CSSM_CERT_BUNDLE_PFX = 5; + +const int CSSM_CERT_BUNDLE_PGP_KEYRING = 7; + +const int CSSM_CERT_BUNDLE_PKCS12 = 4; + +const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_DATA = 2; + +const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_ENVELOPED_DATA = 3; + +typedef CSSM_CERT_BUNDLE_PTR = ffi.Pointer; + +const int CSSM_CERT_BUNDLE_SPKI_SEQUENCE = 6; + +typedef CSSM_CERT_BUNDLE_TYPE = uint32; + +const int CSSM_CERT_BUNDLE_UNKNOWN = 0; + +typedef CSSM_CERT_ENCODING = uint32; + +const int CSSM_CERT_ENCODING_BER = 2; + +const int CSSM_CERT_ENCODING_CUSTOM = 1; + +const int CSSM_CERT_ENCODING_DER = 3; + +const int CSSM_CERT_ENCODING_LAST = 32767; + +const int CSSM_CERT_ENCODING_MULTIPLE = 32766; + +const int CSSM_CERT_ENCODING_NDR = 4; + +const int CSSM_CERT_ENCODING_PGP = 6; + +typedef CSSM_CERT_ENCODING_PTR = ffi.Pointer; + +const int CSSM_CERT_ENCODING_SEXPR = 5; + +const int CSSM_CERT_ENCODING_UNKNOWN = 0; + +const int CSSM_CERT_Intel = 8; + +const int CSSM_CERT_LAST = 32767; + +const int CSSM_CERT_MULTIPLE = 32766; + +typedef CSSM_CERT_PAIR = cssm_cert_pair; +typedef CSSM_CERT_PAIR_PTR = ffi.Pointer; +typedef CSSM_CERT_PARSE_FORMAT = uint32; + +const int CSSM_CERT_PARSE_FORMAT_COMPLEX = 3; + +const int CSSM_CERT_PARSE_FORMAT_CUSTOM = 1; + +const int CSSM_CERT_PARSE_FORMAT_LAST = 32767; + +const int CSSM_CERT_PARSE_FORMAT_MULTIPLE = 32766; + +const int CSSM_CERT_PARSE_FORMAT_NONE = 0; + +const int CSSM_CERT_PARSE_FORMAT_OID_NAMED = 4; + +typedef CSSM_CERT_PARSE_FORMAT_PTR = ffi.Pointer; + +const int CSSM_CERT_PARSE_FORMAT_SEXPR = 2; + +const int CSSM_CERT_PARSE_FORMAT_TUPLE = 5; + +const int CSSM_CERT_PGP = 4; + +const int CSSM_CERT_SDSIv1 = 6; + +const int CSSM_CERT_SPKI = 5; + +const int CSSM_CERT_STATUS_EXPIRED = 1; + +const int CSSM_CERT_STATUS_IS_FROM_NET = 32; + +const int CSSM_CERT_STATUS_IS_IN_ANCHORS = 8; + +const int CSSM_CERT_STATUS_IS_IN_INPUT_CERTS = 4; + +const int CSSM_CERT_STATUS_IS_ROOT = 16; + +const int CSSM_CERT_STATUS_NOT_VALID_YET = 2; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_DENY = 1024; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_ADMIN = 128; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_SYSTEM = 256; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_USER = 64; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_IGNORED_ERROR = 2048; + +const int CSSM_CERT_STATUS_TRUST_SETTINGS_TRUST = 512; + +const int CSSM_CERT_TUPLE = 11; + +typedef CSSM_CERT_TYPE = uint32; +typedef CSSM_CERT_TYPE_PTR = ffi.Pointer; + +const int CSSM_CERT_UNKNOWN = 0; + +const int CSSM_CERT_X9_ATTRIBUTE = 10; + +const int CSSM_CERT_X_509_ATTRIBUTE = 9; + +const int CSSM_CERT_X_509v1 = 1; + +const int CSSM_CERT_X_509v2 = 2; + +const int CSSM_CERT_X_509v3 = 3; + +typedef CSSM_CHALLENGE_CALLBACK = + ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer Challenge, + CSSM_SAMPLEGROUP_PTR Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ) + > + >; + +const int CSSM_CL_BASE_CL_ERROR = -2147411712; + +const int CSSM_CL_BASE_ERROR = -2147411968; + +const int CSSM_CL_CUSTOM_CERT_BUNDLE_TYPE = 32768; + +const int CSSM_CL_CUSTOM_CERT_ENCODING = 32768; + +const int CSSM_CL_CUSTOM_CERT_PARSE_FORMAT = 32768; + +const int CSSM_CL_CUSTOM_CERT_TYPE = 32768; + +const int CSSM_CL_CUSTOM_CRL_PARSE_FORMAT = 32768; + +typedef CSSM_CL_HANDLE = CSSM_MODULE_HANDLE; + +const int CSSM_CL_PRIVATE_ERROR = -2147410944; + +const int CSSM_CL_TEMPLATE_INTERMEDIATE_CERT = 1; + +const int CSSM_CL_TEMPLATE_PKIX_CERTTEMPLATE = 2; + +typedef CSSM_CL_TEMPLATE_TYPE = uint32; +typedef CSSM_CONTEXT = cssm_context; +typedef CSSM_CONTEXT_ATTRIBUTE = cssm_context_attribute; +typedef CSSM_CONTEXT_ATTRIBUTE_PTR = ffi.Pointer; +typedef CSSM_CONTEXT_EVENT = uint32; + +const int CSSM_CONTEXT_EVENT_CREATE = 1; + +const int CSSM_CONTEXT_EVENT_DELETE = 2; + +const int CSSM_CONTEXT_EVENT_UPDATE = 3; + +typedef CSSM_CONTEXT_PTR = ffi.Pointer; +typedef CSSM_CONTEXT_TYPE = uint32; +typedef CSSM_CRLGROUP = cssm_crlgroup; + +const int CSSM_CRLGROUP_CRL_PAIR = 3; + +const int CSSM_CRLGROUP_DATA = 0; + +const int CSSM_CRLGROUP_ENCODED_CRL = 1; + +const int CSSM_CRLGROUP_PARSED_CRL = 2; + +typedef CSSM_CRLGROUP_PTR = ffi.Pointer; +typedef CSSM_CRLGROUP_TYPE = uint32; +typedef CSSM_CRLGROUP_TYPE_PTR = ffi.Pointer; +typedef CSSM_CRL_ENCODING = uint32; + +const int CSSM_CRL_ENCODING_BER = 2; + +const int CSSM_CRL_ENCODING_BLOOM = 4; + +const int CSSM_CRL_ENCODING_CUSTOM = 1; + +const int CSSM_CRL_ENCODING_DER = 3; + +const int CSSM_CRL_ENCODING_MULTIPLE = 32766; + +typedef CSSM_CRL_ENCODING_PTR = ffi.Pointer; + +const int CSSM_CRL_ENCODING_SEXPR = 5; + +const int CSSM_CRL_ENCODING_UNKNOWN = 0; + +typedef CSSM_CRL_PAIR = cssm_crl_pair; +typedef CSSM_CRL_PAIR_PTR = ffi.Pointer; +typedef CSSM_CRL_PARSE_FORMAT = uint32; + +const int CSSM_CRL_PARSE_FORMAT_COMPLEX = 3; + +const int CSSM_CRL_PARSE_FORMAT_CUSTOM = 1; + +const int CSSM_CRL_PARSE_FORMAT_LAST = 32767; + +const int CSSM_CRL_PARSE_FORMAT_MULTIPLE = 32766; + +const int CSSM_CRL_PARSE_FORMAT_NONE = 0; + +const int CSSM_CRL_PARSE_FORMAT_OID_NAMED = 4; + +typedef CSSM_CRL_PARSE_FORMAT_PTR = ffi.Pointer; + +const int CSSM_CRL_PARSE_FORMAT_SEXPR = 2; + +const int CSSM_CRL_PARSE_FORMAT_TUPLE = 5; + +typedef CSSM_CRL_TYPE = uint32; + +const int CSSM_CRL_TYPE_MULTIPLE = 32766; + +typedef CSSM_CRL_TYPE_PTR = ffi.Pointer; + +const int CSSM_CRL_TYPE_SPKI = 3; + +const int CSSM_CRL_TYPE_UNKNOWN = 0; + +const int CSSM_CRL_TYPE_X_509v1 = 1; + +const int CSSM_CRL_TYPE_X_509v2 = 2; + +typedef CSSM_CRYPTO_DATA = cssm_crypto_data; +typedef CSSM_CRYPTO_DATA_PTR = ffi.Pointer; +typedef CSSM_CSPTYPE = uint32; + +const int CSSM_CSP_BASE_CSP_ERROR = -2147415808; + +const int CSSM_CSP_BASE_ERROR = -2147416064; + +typedef CSSM_CSP_FLAGS = uint32; +typedef CSSM_CSP_HANDLE = CSSM_MODULE_HANDLE; + +const int CSSM_CSP_HARDWARE = 2; + +const int CSSM_CSP_HYBRID = 3; + +typedef CSSM_CSP_OPERATIONAL_STATISTICS = cssm_csp_operational_statistics; +typedef CSSM_CSP_OPERATIONAL_STATISTICS_PTR = + ffi.Pointer; + +const int CSSM_CSP_PRIVATE_ERROR = -2147415040; + +const int CSSM_CSP_RDR_EXISTS = 2; + +const int CSSM_CSP_RDR_HW = 4; + +const int CSSM_CSP_RDR_TOKENPRESENT = 1; + +typedef CSSM_CSP_READER_FLAGS = uint32; + +const int CSSM_CSP_SOFTWARE = 1; + +const int CSSM_CSP_STORES_CERTIFICATES = 134217728; + +const int CSSM_CSP_STORES_GENERIC = 268435456; + +const int CSSM_CSP_STORES_PRIVATE_KEYS = 16777216; + +const int CSSM_CSP_STORES_PUBLIC_KEYS = 33554432; + +const int CSSM_CSP_STORES_SESSION_KEYS = 67108864; + +const int CSSM_CSP_TOK_CLOCK_EXISTS = 64; + +const int CSSM_CSP_TOK_LOGIN_REQUIRED = 4; + +const int CSSM_CSP_TOK_PRIVATE_KEY_PASSWORD = 4194304; + +const int CSSM_CSP_TOK_PROT_AUTHENTICATION = 256; + +const int CSSM_CSP_TOK_RNG = 1; + +const int CSSM_CSP_TOK_SESSION_KEY_PASSWORD = 2097152; + +const int CSSM_CSP_TOK_USER_PIN_EXPIRED = 1048576; + +const int CSSM_CSP_TOK_USER_PIN_INITIALIZED = 8; + +const int CSSM_CSP_TOK_WRITE_PROTECTED = 2; + +const int CSSM_CSSM_BASE_CSSM_ERROR = -2147417840; + +const int CSSM_CSSM_BASE_ERROR = -2147418112; + +const int CSSM_CSSM_PRIVATE_ERROR = -2147417088; + +const int CSSM_CUSTOM_COMMON_ERROR_EXTENT = 224; + +typedef CSSM_DATA_PTR = ffi.Pointer; +typedef CSSM_DATE = cssm_date; +typedef CSSM_DATE_PTR = ffi.Pointer; +typedef CSSM_DBINFO = cssm_dbinfo; +typedef CSSM_DBINFO_PTR = ffi.Pointer; + +const int CSSM_DB_ACCESS_PRIVILEGED = 4; + +const int CSSM_DB_ACCESS_READ = 1; + +const int CSSM_DB_ACCESS_RESET = 65536; + +typedef CSSM_DB_ACCESS_TYPE = uint32; +typedef CSSM_DB_ACCESS_TYPE_PTR = ffi.Pointer; + +const int CSSM_DB_ACCESS_WRITE = 2; + +const int CSSM_DB_AND = 1; + +typedef CSSM_DB_ATTRIBUTE_DATA = cssm_db_attribute_data; +typedef CSSM_DB_ATTRIBUTE_DATA_PTR = ffi.Pointer; +typedef CSSM_DB_ATTRIBUTE_FORMAT = uint32; + +const int CSSM_DB_ATTRIBUTE_FORMAT_BIG_NUM = 3; + +const int CSSM_DB_ATTRIBUTE_FORMAT_BLOB = 6; + +const int CSSM_DB_ATTRIBUTE_FORMAT_COMPLEX = 8; + +const int CSSM_DB_ATTRIBUTE_FORMAT_MULTI_UINT32 = 7; + +typedef CSSM_DB_ATTRIBUTE_FORMAT_PTR = ffi.Pointer; + +const int CSSM_DB_ATTRIBUTE_FORMAT_REAL = 4; + +const int CSSM_DB_ATTRIBUTE_FORMAT_SINT32 = 1; + +const int CSSM_DB_ATTRIBUTE_FORMAT_STRING = 0; + +const int CSSM_DB_ATTRIBUTE_FORMAT_TIME_DATE = 5; + +const int CSSM_DB_ATTRIBUTE_FORMAT_UINT32 = 2; + +typedef CSSM_DB_ATTRIBUTE_INFO = cssm_db_attribute_info; +typedef CSSM_DB_ATTRIBUTE_INFO_PTR = ffi.Pointer; + +const int CSSM_DB_ATTRIBUTE_NAME_AS_INTEGER = 2; + +const int CSSM_DB_ATTRIBUTE_NAME_AS_OID = 1; + +const int CSSM_DB_ATTRIBUTE_NAME_AS_STRING = 0; + +typedef CSSM_DB_ATTRIBUTE_NAME_FORMAT = uint32; +typedef CSSM_DB_ATTRIBUTE_NAME_FORMAT_PTR = ffi.Pointer; + +const int CSSM_DB_CERT_USE_OWNER = 4; + +const int CSSM_DB_CERT_USE_PRIVACY = 32; + +const int CSSM_DB_CERT_USE_REVOKED = 8; + +const int CSSM_DB_CERT_USE_SIGNING = 16; + +const int CSSM_DB_CERT_USE_SYSTEM = 2; + +const int CSSM_DB_CERT_USE_TRUSTED = 1; + +typedef CSSM_DB_CONJUNCTIVE = uint32; +typedef CSSM_DB_CONJUNCTIVE_PTR = ffi.Pointer; + +const int CSSM_DB_CONTAINS = 4; + +const int CSSM_DB_CONTAINS_FINAL_SUBSTRING = 6; + +const int CSSM_DB_CONTAINS_INITIAL_SUBSTRING = 5; + +const int CSSM_DB_DATASTORES_UNKNOWN = -1; + +const int CSSM_DB_EQUAL = 0; + +const int CSSM_DB_FILESYSTEMSCAN_MODE = 1; + +const int CSSM_DB_GREATER_THAN = 3; + +typedef CSSM_DB_HANDLE = CSSM_MODULE_HANDLE; +typedef CSSM_DB_INDEXED_DATA_LOCATION = uint32; +typedef CSSM_DB_INDEX_INFO = cssm_db_index_info; +typedef CSSM_DB_INDEX_INFO_PTR = ffi.Pointer; + +const int CSSM_DB_INDEX_NONUNIQUE = 1; + +const int CSSM_DB_INDEX_ON_ATTRIBUTE = 1; + +const int CSSM_DB_INDEX_ON_RECORD = 2; + +const int CSSM_DB_INDEX_ON_UNKNOWN = 0; + +typedef CSSM_DB_INDEX_TYPE = uint32; + +const int CSSM_DB_INDEX_UNIQUE = 0; + +const int CSSM_DB_LESS_THAN = 2; + +const int CSSM_DB_MODIFY_ATTRIBUTE_ADD = 1; + +const int CSSM_DB_MODIFY_ATTRIBUTE_DELETE = 2; + +const int CSSM_DB_MODIFY_ATTRIBUTE_NONE = 0; + +const int CSSM_DB_MODIFY_ATTRIBUTE_REPLACE = 3; + +typedef CSSM_DB_MODIFY_MODE = uint32; + +const int CSSM_DB_NONE = 0; + +const int CSSM_DB_NOT_EQUAL = 1; + +typedef CSSM_DB_OPERATOR = uint32; +typedef CSSM_DB_OPERATOR_PTR = ffi.Pointer; + +const int CSSM_DB_OR = 2; + +typedef CSSM_DB_PARSING_MODULE_INFO = cssm_db_parsing_module_info; +typedef CSSM_DB_PARSING_MODULE_INFO_PTR = + ffi.Pointer; +typedef CSSM_DB_RECORDTYPE = uint32; + +const int CSSM_DB_RECORDTYPE_APP_DEFINED_END = -1; + +const int CSSM_DB_RECORDTYPE_APP_DEFINED_START = -2147483648; + +const int CSSM_DB_RECORDTYPE_OPEN_GROUP_END = 18; + +const int CSSM_DB_RECORDTYPE_OPEN_GROUP_START = 10; + +const int CSSM_DB_RECORDTYPE_SCHEMA_END = 4; + +const int CSSM_DB_RECORDTYPE_SCHEMA_START = 0; + +typedef CSSM_DB_RECORD_ATTRIBUTE_DATA = cssm_db_record_attribute_data; +typedef CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR = + ffi.Pointer; +typedef CSSM_DB_RECORD_ATTRIBUTE_INFO = cssm_db_record_attribute_info; +typedef CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR = + ffi.Pointer; +typedef CSSM_DB_RECORD_INDEX_INFO = cssm_db_record_index_info; +typedef CSSM_DB_RECORD_INDEX_INFO_PTR = ffi.Pointer; +typedef CSSM_DB_RETRIEVAL_MODES = uint32; +typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO = cssm_db_schema_attribute_info; +typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO_PTR = + ffi.Pointer; +typedef CSSM_DB_SCHEMA_INDEX_INFO = cssm_db_schema_index_info; +typedef CSSM_DB_SCHEMA_INDEX_INFO_PTR = ffi.Pointer; + +const int CSSM_DB_TRANSACTIONAL_MODE = 0; + +typedef CSSM_DB_UNIQUE_RECORD = cssm_db_unique_record; +typedef CSSM_DB_UNIQUE_RECORD_PTR = ffi.Pointer; +typedef CSSM_DLTYPE = uint32; +typedef CSSM_DLTYPE_PTR = ffi.Pointer; + +const int CSSM_DL_BASE_DL_ERROR = -2147413760; + +const int CSSM_DL_BASE_ERROR = -2147414016; + +const int CSSM_DL_CUSTOM = 1; + +typedef CSSM_DL_CUSTOM_ATTRIBUTES = ffi.Pointer; +typedef CSSM_DL_DB_HANDLE = cssm_dl_db_handle; +typedef CSSM_DL_DB_HANDLE_PTR = ffi.Pointer; +typedef CSSM_DL_DB_LIST = cssm_dl_db_list; +typedef CSSM_DL_DB_LIST_PTR = ffi.Pointer; + +const int CSSM_DL_DB_RECORD_ALL_KEYS = 18; + +const int CSSM_DL_DB_RECORD_ANY = 10; + +const int CSSM_DL_DB_RECORD_APPLESHARE_PASSWORD = -2147483646; + +const int CSSM_DL_DB_RECORD_CERT = 11; + +const int CSSM_DL_DB_RECORD_CRL = 12; + +const int CSSM_DL_DB_RECORD_EXTENDED_ATTRIBUTE = -2147479548; + +const int CSSM_DL_DB_RECORD_GENERIC = 14; + +const int CSSM_DL_DB_RECORD_GENERIC_PASSWORD = -2147483648; + +const int CSSM_DL_DB_RECORD_INTERNET_PASSWORD = -2147483647; + +const int CSSM_DL_DB_RECORD_METADATA = -2147450880; + +const int CSSM_DL_DB_RECORD_POLICY = 13; + +const int CSSM_DL_DB_RECORD_PRIVATE_KEY = 16; + +const int CSSM_DL_DB_RECORD_PUBLIC_KEY = 15; + +const int CSSM_DL_DB_RECORD_SYMMETRIC_KEY = 17; + +const int CSSM_DL_DB_RECORD_UNLOCK_REFERRAL = -2147479549; + +const int CSSM_DL_DB_RECORD_USER_TRUST = -2147479551; + +const int CSSM_DL_DB_RECORD_X509_CERTIFICATE = -2147479552; + +const int CSSM_DL_DB_RECORD_X509_CRL = -2147479550; + +const int CSSM_DL_DB_SCHEMA_ATTRIBUTES = 2; + +const int CSSM_DL_DB_SCHEMA_INDEXES = 1; + +const int CSSM_DL_DB_SCHEMA_INFO = 0; + +const int CSSM_DL_DB_SCHEMA_PARSING_MODULE = 3; + +const int CSSM_DL_FFS = 5; + +typedef CSSM_DL_FFS_ATTRIBUTES = ffi.Pointer; +typedef CSSM_DL_HANDLE = CSSM_MODULE_HANDLE; + +const int CSSM_DL_LDAP = 2; + +typedef CSSM_DL_LDAP_ATTRIBUTES = ffi.Pointer; + +const int CSSM_DL_MEMORY = 6; + +const int CSSM_DL_ODBC = 3; + +typedef CSSM_DL_ODBC_ATTRIBUTES = ffi.Pointer; + +const int CSSM_DL_PKCS11 = 4; + +typedef CSSM_DL_PKCS11_ATTRIBUTE = ffi.Pointer; +typedef CSSM_DL_PKCS11_ATTRIBUTE_PTR = ffi.Pointer; + +const int CSSM_DL_PRIVATE_ERROR = -2147412992; + +const int CSSM_DL_REMOTEDIR = 7; + +const int CSSM_DL_UNKNOWN = 0; + +const int CSSM_ELAPSED_TIME_COMPLETE = -2; + +const int CSSM_ELAPSED_TIME_UNKNOWN = -1; + +typedef CSSM_ENCODED_CERT = cssm_encoded_cert; +typedef CSSM_ENCODED_CERT_PTR = ffi.Pointer; +typedef CSSM_ENCODED_CRL = cssm_encoded_crl; +typedef CSSM_ENCODED_CRL_PTR = ffi.Pointer; +typedef CSSM_ENCRYPT_MODE = uint32; + +const int CSSM_ERRCODE_ACL_ADD_FAILED = 54; + +const int CSSM_ERRCODE_ACL_BASE_CERTS_NOT_SUPPORTED = 39; + +const int CSSM_ERRCODE_ACL_CHALLENGE_CALLBACK_FAILED = 45; + +const int CSSM_ERRCODE_ACL_CHANGE_FAILED = 49; + +const int CSSM_ERRCODE_ACL_DELETE_FAILED = 52; + +const int CSSM_ERRCODE_ACL_ENTRY_TAG_NOT_FOUND = 47; + +const int CSSM_ERRCODE_ACL_REPLACE_FAILED = 53; + +const int CSSM_ERRCODE_ACL_SUBJECT_TYPE_NOT_SUPPORTED = 43; + +const int CSSM_ERRCODE_CRL_ALREADY_SIGNED = 71; + +const int CSSM_ERRCODE_DEVICE_FAILED = 229; + +const int CSSM_ERRCODE_DEVICE_RESET = 228; + +const int CSSM_ERRCODE_FUNCTION_FAILED = 10; + +const int CSSM_ERRCODE_FUNCTION_NOT_IMPLEMENTED = 7; + +const int CSSM_ERRCODE_INCOMPATIBLE_VERSION = 65; + +const int CSSM_ERRCODE_INSUFFICIENT_CLIENT_IDENTIFICATION = 227; + +const int CSSM_ERRCODE_INTERNAL_ERROR = 1; + +const int CSSM_ERRCODE_INVALID_ACCESS_CREDENTIALS = 37; + +const int CSSM_ERRCODE_INVALID_ACL_BASE_CERTS = 38; + +const int CSSM_ERRCODE_INVALID_ACL_CHALLENGE_CALLBACK = 44; + +const int CSSM_ERRCODE_INVALID_ACL_EDIT_MODE = 48; + +const int CSSM_ERRCODE_INVALID_ACL_ENTRY_TAG = 46; + +const int CSSM_ERRCODE_INVALID_ACL_SUBJECT_VALUE = 42; + +const int CSSM_ERRCODE_INVALID_AC_HANDLE = 85; + +const int CSSM_ERRCODE_INVALID_CERTGROUP_POINTER = 66; + +const int CSSM_ERRCODE_INVALID_CERT_POINTER = 67; + +const int CSSM_ERRCODE_INVALID_CL_HANDLE = 82; + +const int CSSM_ERRCODE_INVALID_CONTEXT_HANDLE = 64; + +const int CSSM_ERRCODE_INVALID_CRL_POINTER = 68; + +const int CSSM_ERRCODE_INVALID_CRYPTO_DATA = 88; + +const int CSSM_ERRCODE_INVALID_CSP_HANDLE = 80; + +const int CSSM_ERRCODE_INVALID_DATA = 70; + +const int CSSM_ERRCODE_INVALID_DB_HANDLE = 74; + +const int CSSM_ERRCODE_INVALID_DB_LIST = 76; + +const int CSSM_ERRCODE_INVALID_DB_LIST_POINTER = 77; + +const int CSSM_ERRCODE_INVALID_DL_HANDLE = 81; + +const int CSSM_ERRCODE_INVALID_FIELD_POINTER = 69; + +const int CSSM_ERRCODE_INVALID_GUID = 12; + +const int CSSM_ERRCODE_INVALID_INPUT_POINTER = 5; + +const int CSSM_ERRCODE_INVALID_KR_HANDLE = 84; + +const int CSSM_ERRCODE_INVALID_NETWORK_ADDR = 87; + +const int CSSM_ERRCODE_INVALID_NEW_ACL_ENTRY = 50; + +const int CSSM_ERRCODE_INVALID_NEW_ACL_OWNER = 51; + +const int CSSM_ERRCODE_INVALID_NUMBER_OF_FIELDS = 72; + +const int CSSM_ERRCODE_INVALID_OUTPUT_POINTER = 6; + +const int CSSM_ERRCODE_INVALID_PASSTHROUGH_ID = 86; + +const int CSSM_ERRCODE_INVALID_POINTER = 4; + +const int CSSM_ERRCODE_INVALID_SAMPLE_VALUE = 40; + +const int CSSM_ERRCODE_INVALID_TP_HANDLE = 83; + +const int CSSM_ERRCODE_IN_DARK_WAKE = 230; + +const int CSSM_ERRCODE_MDS_ERROR = 3; + +const int CSSM_ERRCODE_MEMORY_ERROR = 2; + +const int CSSM_ERRCODE_MODULE_MANIFEST_VERIFY_FAILED = 11; + +const int CSSM_ERRCODE_NO_USER_INTERACTION = 224; + +const int CSSM_ERRCODE_OBJECT_ACL_NOT_SUPPORTED = 35; + +const int CSSM_ERRCODE_OBJECT_ACL_REQUIRED = 36; + +const int CSSM_ERRCODE_OBJECT_MANIP_AUTH_DENIED = 34; + +const int CSSM_ERRCODE_OBJECT_USE_AUTH_DENIED = 33; + +const int CSSM_ERRCODE_OPERATION_AUTH_DENIED = 32; + +const int CSSM_ERRCODE_OS_ACCESS_DENIED = 9; + +const int CSSM_ERRCODE_PRIVILEGE_NOT_GRANTED = 75; + +const int CSSM_ERRCODE_SAMPLE_VALUE_NOT_SUPPORTED = 41; + +const int CSSM_ERRCODE_SELF_CHECK_FAILED = 8; + +const int CSSM_ERRCODE_SERVICE_NOT_AVAILABLE = 226; + +const int CSSM_ERRCODE_UNKNOWN_FORMAT = 78; + +const int CSSM_ERRCODE_UNKNOWN_TAG = 79; + +const int CSSM_ERRCODE_USER_CANCELED = 225; + +const int CSSM_ERRCODE_VERIFICATION_FAILURE = 73; + +const int CSSM_ERRORCODE_COMMON_EXTENT = 256; + +const int CSSM_ERRORCODE_CUSTOM_OFFSET = 1024; + +const int CSSM_ERRORCODE_MODULE_EXTENT = 2048; + +const int CSSM_ESTIMATED_TIME_UNKNOWN = -1; + +typedef CSSM_EVIDENCE = cssm_evidence; +typedef CSSM_EVIDENCE_FORM = uint32; + +const int CSSM_EVIDENCE_FORM_APPLE_CERTGROUP = -2147483647; + +const int CSSM_EVIDENCE_FORM_APPLE_CERT_INFO = -2147483646; + +const int CSSM_EVIDENCE_FORM_APPLE_HEADER = -2147483648; + +const int CSSM_EVIDENCE_FORM_CERT = 1; + +const int CSSM_EVIDENCE_FORM_CERT_ID = 3; + +const int CSSM_EVIDENCE_FORM_CRL = 2; + +const int CSSM_EVIDENCE_FORM_CRL_ID = 4; + +const int CSSM_EVIDENCE_FORM_CRL_NEXTTIME = 7; + +const int CSSM_EVIDENCE_FORM_CRL_THISTIME = 6; + +const int CSSM_EVIDENCE_FORM_POLICYINFO = 8; + +const int CSSM_EVIDENCE_FORM_TUPLEGROUP = 9; + +const int CSSM_EVIDENCE_FORM_UNSPECIFIC = 0; + +const int CSSM_EVIDENCE_FORM_VERIFIER_TIME = 5; + +typedef CSSM_EVIDENCE_PTR = ffi.Pointer; + +const int CSSM_FALSE = 0; + +const int CSSM_FEE_CURVE_TYPE_ANSI_X9_62 = 3; + +const int CSSM_FEE_CURVE_TYPE_DEFAULT = 0; + +const int CSSM_FEE_CURVE_TYPE_MONTGOMERY = 1; + +const int CSSM_FEE_CURVE_TYPE_WEIERSTRASS = 2; + +const int CSSM_FEE_PRIME_TYPE_DEFAULT = 0; + +const int CSSM_FEE_PRIME_TYPE_FEE = 2; + +const int CSSM_FEE_PRIME_TYPE_GENERAL = 3; + +const int CSSM_FEE_PRIME_TYPE_MERSENNE = 1; + +typedef CSSM_FIELD = cssm_field; +typedef CSSM_FIELDGROUP = cssm_fieldgroup; +typedef CSSM_FIELDGROUP_PTR = ffi.Pointer; + +const int CSSM_FIELDVALUE_COMPLEX_DATA_TYPE = -1; + +typedef CSSM_FIELD_PTR = ffi.Pointer; +typedef CSSM_FREE = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ) + > + >; +typedef CSSM_FUNC_NAME_ADDR = cssm_func_name_addr; +typedef CSSM_FUNC_NAME_ADDR_PTR = ffi.Pointer; +typedef CSSM_GUID = cssm_guid; +typedef CSSM_GUID_PTR = ffi.Pointer; +typedef CSSM_HANDLE = CSSM_INTPTR; +typedef CSSM_HANDLE_PTR = ffi.Pointer; +typedef CSSM_HEADERVERSION = uint32; + +const int CSSM_HINT_ADDRESS_APP = 1; + +const int CSSM_HINT_ADDRESS_SP = 2; + +const int CSSM_HINT_NONE = 0; + +typedef CSSM_INTPTR = ffi.IntPtr; +typedef DartCSSM_INTPTR = int; + +const int CSSM_INVALID_HANDLE = 0; + +typedef CSSM_KEA_DERIVE_PARAMS = cssm_kea_derive_params; +typedef CSSM_KEA_DERIVE_PARAMS_PTR = ffi.Pointer; +typedef CSSM_KEY = cssm_key; + +const int CSSM_KEYATTR_ALWAYS_SENSITIVE = 16; + +const int CSSM_KEYATTR_EXTRACTABLE = 32; + +typedef CSSM_KEYATTR_FLAGS = uint32; + +const int CSSM_KEYATTR_MODIFIABLE = 4; + +const int CSSM_KEYATTR_NEVER_EXTRACTABLE = 64; + +const int CSSM_KEYATTR_PARTIAL = 65536; + +const int CSSM_KEYATTR_PERMANENT = 1; + +const int CSSM_KEYATTR_PRIVATE = 2; + +const int CSSM_KEYATTR_PUBLIC_KEY_ENCRYPT = 131072; + +const int CSSM_KEYATTR_RETURN_DATA = 268435456; + +const int CSSM_KEYATTR_RETURN_DEFAULT = 0; + +const int CSSM_KEYATTR_RETURN_NONE = 1073741824; + +const int CSSM_KEYATTR_RETURN_REF = 536870912; + +const int CSSM_KEYATTR_SENSITIVE = 8; + +typedef CSSM_KEYBLOB_FORMAT = uint32; + +const int CSSM_KEYBLOB_OTHER = -1; + +const int CSSM_KEYBLOB_RAW = 0; + +const int CSSM_KEYBLOB_RAW_FORMAT_BSAFE = 6; + +const int CSSM_KEYBLOB_RAW_FORMAT_CCA = 9; + +const int CSSM_KEYBLOB_RAW_FORMAT_FIPS186 = 5; + +const int CSSM_KEYBLOB_RAW_FORMAT_MSCAPI = 3; + +const int CSSM_KEYBLOB_RAW_FORMAT_NONE = 0; + +const int CSSM_KEYBLOB_RAW_FORMAT_OCTET_STRING = 12; + +const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH = -2147483647; + +const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH2 = -2147483645; + +const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSL = -2147483646; + +const int CSSM_KEYBLOB_RAW_FORMAT_OTHER = -1; + +const int CSSM_KEYBLOB_RAW_FORMAT_PGP = 4; + +const int CSSM_KEYBLOB_RAW_FORMAT_PKCS1 = 1; + +const int CSSM_KEYBLOB_RAW_FORMAT_PKCS3 = 2; + +const int CSSM_KEYBLOB_RAW_FORMAT_PKCS8 = 10; + +const int CSSM_KEYBLOB_RAW_FORMAT_SPKI = 11; + +const int CSSM_KEYBLOB_RAW_FORMAT_VENDOR_DEFINED = -2147483648; + +const int CSSM_KEYBLOB_RAW_FORMAT_X509 = -2147483648; + +const int CSSM_KEYBLOB_REFERENCE = 2; + +const int CSSM_KEYBLOB_REF_FORMAT_INTEGER = 0; + +const int CSSM_KEYBLOB_REF_FORMAT_OTHER = -1; + +const int CSSM_KEYBLOB_REF_FORMAT_SPKI = 2; + +const int CSSM_KEYBLOB_REF_FORMAT_STRING = 1; + +typedef CSSM_KEYBLOB_TYPE = uint32; + +const int CSSM_KEYBLOB_WRAPPED = 3; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_APPLE_CUSTOM = 100; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_MSCAPI = 3; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_NONE = 0; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSH1 = 102; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSL = 101; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_OTHER = -1; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS7 = 2; + +const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS8 = 1; + +typedef CSSM_KEYCLASS = uint32; + +const int CSSM_KEYCLASS_OTHER = -1; + +const int CSSM_KEYCLASS_PRIVATE_KEY = 1; + +const int CSSM_KEYCLASS_PUBLIC_KEY = 0; + +const int CSSM_KEYCLASS_SECRET_PART = 3; + +const int CSSM_KEYCLASS_SESSION_KEY = 2; + +typedef CSSM_KEYHEADER = cssm_keyheader; +typedef CSSM_KEYHEADER_PTR = ffi.Pointer; + +const int CSSM_KEYHEADER_VERSION = 2; + +typedef CSSM_KEYUSE = uint32; + +const int CSSM_KEYUSE_ANY = -2147483648; + +const int CSSM_KEYUSE_DECRYPT = 2; + +const int CSSM_KEYUSE_DERIVE = 256; + +const int CSSM_KEYUSE_ENCRYPT = 1; + +const int CSSM_KEYUSE_SIGN = 4; + +const int CSSM_KEYUSE_SIGN_RECOVER = 16; + +const int CSSM_KEYUSE_UNWRAP = 128; + +const int CSSM_KEYUSE_VERIFY = 8; + +const int CSSM_KEYUSE_VERIFY_RECOVER = 32; + +const int CSSM_KEYUSE_WRAP = 64; + +typedef CSSM_KEY_HIERARCHY = CSSM_BITMASK; + +const int CSSM_KEY_HIERARCHY_EXPORT = 2; + +const int CSSM_KEY_HIERARCHY_INTEG = 1; + +const int CSSM_KEY_HIERARCHY_NONE = 0; + +typedef CSSM_KEY_PTR = ffi.Pointer; +typedef CSSM_KEY_SIZE = cssm_key_size; +typedef CSSM_KEY_SIZE_PTR = ffi.Pointer; +typedef CSSM_KEY_TYPE = CSSM_ALGORITHMS; +typedef CSSM_KRSP_HANDLE = uint32; +typedef CSSM_KRSUBSERVICE = cssm_krsubservice; +typedef CSSM_KRSUBSERVICE_PTR = ffi.Pointer; + +const int CSSM_KR_BASE_ERROR = -2147407872; + +typedef CSSM_KR_NAME = cssm_kr_name; +typedef CSSM_KR_POLICY_FLAGS = uint32; +typedef CSSM_KR_POLICY_INFO = cssm_kr_policy_info; +typedef CSSM_KR_POLICY_INFO_PTR = ffi.Pointer; +typedef CSSM_KR_POLICY_LIST_ITEM = cssm_kr_policy_list_item; +typedef CSSM_KR_POLICY_LIST_ITEM_PTR = ffi.Pointer; +typedef CSSM_KR_POLICY_TYPE = uint32; + +const int CSSM_KR_PRIVATE_ERROR = -2147406848; + +typedef CSSM_KR_PROFILE = cssm_kr_profile; +typedef CSSM_KR_PROFILE_PTR = ffi.Pointer; +typedef CSSM_KR_WRAPPEDPRODUCT_INFO = cssm_kr_wrappedproductinfo; +typedef CSSM_KR_WRAPPEDPRODUCT_INFO_PTR = + ffi.Pointer; +typedef CSSM_LIST = cssm_list; +typedef CSSM_LIST_ELEMENT = cssm_list_element; + +const int CSSM_LIST_ELEMENT_DATUM = 0; + +typedef CSSM_LIST_ELEMENT_PTR = ffi.Pointer; + +const int CSSM_LIST_ELEMENT_SUBLIST = 1; + +typedef CSSM_LIST_ELEMENT_TYPE = uint32; +typedef CSSM_LIST_ELEMENT_TYPE_PTR = ffi.Pointer; + +const int CSSM_LIST_ELEMENT_WORDID = 2; + +typedef CSSM_LIST_PTR = ffi.Pointer; +typedef CSSM_LIST_TYPE = uint32; + +const int CSSM_LIST_TYPE_CUSTOM = 1; + +typedef CSSM_LIST_TYPE_PTR = ffi.Pointer; + +const int CSSM_LIST_TYPE_SEXPR = 2; + +const int CSSM_LIST_TYPE_UNKNOWN = 0; + +typedef CSSM_LONG_HANDLE = uint64; +typedef CSSM_LONG_HANDLE_PTR = ffi.Pointer; +typedef CSSM_MALLOC = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CSSM_SIZE size, + ffi.Pointer allocref, + ) + > + >; +typedef CSSM_MANAGER_EVENT_NOTIFICATION = cssm_manager_event_notification; +typedef CSSM_MANAGER_EVENT_NOTIFICATION_PTR = + ffi.Pointer; +typedef CSSM_MANAGER_EVENT_TYPES = uint32; +typedef CSSM_MANAGER_REGISTRATION_INFO = cssm_manager_registration_info; +typedef CSSM_MANAGER_REGISTRATION_INFO_PTR = + ffi.Pointer; + +const int CSSM_MDS_BASE_ERROR = -2147414016; + +const int CSSM_MDS_PRIVATE_ERROR = -2147412992; + +typedef CSSM_MEMORY_FUNCS = cssm_memory_funcs; +typedef CSSM_MEMORY_FUNCS_PTR = ffi.Pointer; +typedef CSSM_MODULE_EVENT = uint32; +typedef CSSM_MODULE_EVENT_PTR = ffi.Pointer; +typedef CSSM_MODULE_FUNCS = cssm_module_funcs; +typedef CSSM_MODULE_FUNCS_PTR = ffi.Pointer; +typedef CSSM_MODULE_HANDLE = CSSM_HANDLE; +typedef CSSM_MODULE_HANDLE_PTR = ffi.Pointer; + +const int CSSM_MODULE_STRING_SIZE = 64; + +typedef CSSM_NAME_LIST = cssm_name_list; +typedef CSSM_NAME_LIST_PTR = ffi.Pointer; +typedef CSSM_NET_ADDRESS = cssm_net_address; +typedef CSSM_NET_ADDRESS_PTR = ffi.Pointer; +typedef CSSM_NET_ADDRESS_TYPE = uint32; +typedef CSSM_NET_PROTOCOL = uint32; + +const int CSSM_NET_PROTO_CMP = 10; + +const int CSSM_NET_PROTO_CMPS = 11; + +const int CSSM_NET_PROTO_CUSTOM = 1; + +const int CSSM_NET_PROTO_FTP = 7; + +const int CSSM_NET_PROTO_FTPS = 8; + +const int CSSM_NET_PROTO_LDAP = 3; + +const int CSSM_NET_PROTO_LDAPNS = 5; + +const int CSSM_NET_PROTO_LDAPS = 4; + +const int CSSM_NET_PROTO_NONE = 0; + +const int CSSM_NET_PROTO_OCSP = 9; + +const int CSSM_NET_PROTO_UNSPECIFIED = 2; + +const int CSSM_NET_PROTO_X500DAP = 6; + +const int CSSM_NOTIFY_FAULT = 3; + +const int CSSM_NOTIFY_INSERT = 1; + +const int CSSM_NOTIFY_REMOVE = 2; + +typedef CSSM_OID_PTR = ffi.Pointer; + +const int CSSM_OK = 0; + +typedef CSSM_PADDING = uint32; + +const int CSSM_PADDING_ALTERNATE = 4; + +const int CSSM_PADDING_APPLE_SSLv2 = -2147483648; + +const int CSSM_PADDING_CIPHERSTEALING = 8; + +const int CSSM_PADDING_CUSTOM = 1; + +const int CSSM_PADDING_FF = 5; + +const int CSSM_PADDING_NONE = 0; + +const int CSSM_PADDING_ONE = 3; + +const int CSSM_PADDING_PKCS1 = 10; + +const int CSSM_PADDING_PKCS5 = 6; + +const int CSSM_PADDING_PKCS7 = 7; + +const int CSSM_PADDING_RANDOM = 9; + +const int CSSM_PADDING_SIGRAW = 11; + +const int CSSM_PADDING_VENDOR_DEFINED = -2147483648; + +const int CSSM_PADDING_ZERO = 2; + +typedef CSSM_PARSED_CERT = cssm_parsed_cert; +typedef CSSM_PARSED_CERT_PTR = ffi.Pointer; +typedef CSSM_PARSED_CRL = cssm_parsed_crl; +typedef CSSM_PARSED_CRL_PTR = ffi.Pointer; +typedef CSSM_PKCS1_OAEP_PARAMS = cssm_pkcs1_oaep_params; +typedef CSSM_PKCS1_OAEP_PARAMS_PTR = ffi.Pointer; +typedef CSSM_PKCS5_PBKDF1_PARAMS = cssm_pkcs5_pbkdf1_params; +typedef CSSM_PKCS5_PBKDF1_PARAMS_PTR = ffi.Pointer; +typedef CSSM_PKCS5_PBKDF2_PARAMS = cssm_pkcs5_pbkdf2_params; +typedef CSSM_PKCS5_PBKDF2_PARAMS_PTR = ffi.Pointer; +typedef CSSM_PKCS5_PBKDF2_PRF = uint32; + +const int CSSM_PKCS5_PBKDF2_PRF_HMAC_SHA1 = 0; + +typedef CSSM_PKCS_OAEP_MGF = uint32; + +const int CSSM_PKCS_OAEP_MGF1_MD5 = 2; + +const int CSSM_PKCS_OAEP_MGF1_SHA1 = 1; + +const int CSSM_PKCS_OAEP_MGF_NONE = 0; + +typedef CSSM_PKCS_OAEP_PSOURCE = uint32; + +const int CSSM_PKCS_OAEP_PSOURCE_NONE = 0; + +const int CSSM_PKCS_OAEP_PSOURCE_Pspecified = 1; + +typedef CSSM_PRIVILEGE = uint64; +typedef CSSM_PRIVILEGE_SCOPE = uint32; + +const int CSSM_PRIVILEGE_SCOPE_NONE = 0; + +const int CSSM_PRIVILEGE_SCOPE_PROCESS = 1; + +const int CSSM_PRIVILEGE_SCOPE_THREAD = 2; + +typedef CSSM_PROC_ADDR = ffi.Pointer>; +typedef CSSM_PROC_ADDR_PTR = ffi.Pointer; + +const int CSSM_PVC_APP = 1; + +typedef CSSM_PVC_MODE = CSSM_BITMASK; + +const int CSSM_PVC_NONE = 0; + +const int CSSM_PVC_SP = 2; + +typedef CSSM_QUERY = cssm_query; +typedef CSSM_QUERY_FLAGS = uint32; +typedef CSSM_QUERY_LIMITS = cssm_query_limits; +typedef CSSM_QUERY_LIMITS_PTR = ffi.Pointer; +typedef CSSM_QUERY_PTR = ffi.Pointer; + +const int CSSM_QUERY_RETURN_DATA = 1; + +const int CSSM_QUERY_SIZELIMIT_NONE = 0; + +typedef CSSM_QUERY_SIZE_DATA = cssm_query_size_data; +typedef CSSM_QUERY_SIZE_DATA_PTR = ffi.Pointer; + +const int CSSM_QUERY_TIMELIMIT_NONE = 0; + +typedef CSSM_RANGE = cssm_range; +typedef CSSM_RANGE_PTR = ffi.Pointer; +typedef CSSM_REALLOC = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer memblock, + CSSM_SIZE size, + ffi.Pointer allocref, + ) + > + >; +typedef CSSM_RESOURCE_CONTROL_CONTEXT = cssm_resource_control_context; +typedef CSSM_RESOURCE_CONTROL_CONTEXT_PTR = + ffi.Pointer; +typedef CSSM_RETURN = sint32; +typedef CSSM_SAMPLE = cssm_sample; +typedef CSSM_SAMPLEGROUP = cssm_samplegroup; +typedef CSSM_SAMPLEGROUP_PTR = ffi.Pointer; +typedef CSSM_SAMPLE_PTR = ffi.Pointer; +typedef CSSM_SAMPLE_TYPE = CSSM_WORDID_TYPE; + +const int CSSM_SAMPLE_TYPE_ASYMMETRIC_KEY = 65547; + +const int CSSM_SAMPLE_TYPE_BIOMETRIC = 8; + +const int CSSM_SAMPLE_TYPE_COMMENT = 12; + +const int CSSM_SAMPLE_TYPE_HASHED_PASSWORD = 43; + +const int CSSM_SAMPLE_TYPE_KEYBAG_KEY = 65549; + +const int CSSM_SAMPLE_TYPE_KEYCHAIN_CHANGE_LOCK = 65538; + +const int CSSM_SAMPLE_TYPE_KEYCHAIN_LOCK = 65537; + +const int CSSM_SAMPLE_TYPE_KEYCHAIN_PROMPT = 65536; + +const int CSSM_SAMPLE_TYPE_PASSWORD = 79; + +const int CSSM_SAMPLE_TYPE_PREAUTH = 65545; + +const int CSSM_SAMPLE_TYPE_PROCESS = 65539; + +const int CSSM_SAMPLE_TYPE_PROMPTED_BIOMETRIC = 83; + +const int CSSM_SAMPLE_TYPE_PROMPTED_PASSWORD = 84; + +const int CSSM_SAMPLE_TYPE_PROTECTED_BIOMETRIC = 86; + +const int CSSM_SAMPLE_TYPE_PROTECTED_PASSWORD = 87; + +const int CSSM_SAMPLE_TYPE_RETRY_ID = 85; + +const int CSSM_SAMPLE_TYPE_SIGNED_NONCE = 117; + +const int CSSM_SAMPLE_TYPE_SIGNED_SECRET = 118; + +const int CSSM_SAMPLE_TYPE_SYMMETRIC_KEY = 65541; + +const int CSSM_SAMPLE_TYPE_THRESHOLD = 123; + +typedef CSSM_SC_FLAGS = uint32; +typedef CSSM_SELECTION_PREDICATE = cssm_selection_predicate; +typedef CSSM_SELECTION_PREDICATE_PTR = ffi.Pointer; + +const int CSSM_SERVICE_AC = 32; + +const int CSSM_SERVICE_CL = 8; + +const int CSSM_SERVICE_CSP = 2; + +const int CSSM_SERVICE_CSSM = 1; + +const int CSSM_SERVICE_DL = 4; + +const int CSSM_SERVICE_KR = 64; + +typedef CSSM_SERVICE_MASK = uint32; + +const int CSSM_SERVICE_TP = 16; + +typedef CSSM_SERVICE_TYPE = CSSM_SERVICE_MASK; +typedef CSSM_SIZE = ffi.Size; +typedef DartCSSM_SIZE = int; +typedef CSSM_SPI_AC_FUNCS = cssm_spi_ac_funcs; +typedef CSSM_SPI_AC_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SPI_CL_FUNCS = cssm_spi_cl_funcs; +typedef CSSM_SPI_CL_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SPI_CSP_FUNCS = cssm_spi_csp_funcs; +typedef CSSM_SPI_CSP_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SPI_DL_FUNCS = cssm_spi_dl_funcs; +typedef CSSM_SPI_DL_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SPI_KR_FUNCS = cssm_spi_kr_funcs; +typedef CSSM_SPI_KR_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SPI_ModuleEventHandler = + ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + uint32 SubserviceId, + CSSM_SERVICE_TYPE ServiceType, + CSSM_MODULE_EVENT EventType, + ) + > + >; +typedef CSSM_SPI_TP_FUNCS = cssm_spi_tp_funcs; +typedef CSSM_SPI_TP_FUNCS_PTR = ffi.Pointer; +typedef CSSM_STATE_FUNCS = cssm_state_funcs; +typedef CSSM_STATE_FUNCS_PTR = ffi.Pointer; +typedef CSSM_SUBSERVICE_UID = cssm_subservice_uid; +typedef CSSM_SUBSERVICE_UID_PTR = ffi.Pointer; +typedef CSSM_TIMESTRING = ffi.Pointer; +typedef CSSM_TP_ACTION = uint32; + +const int CSSM_TP_ACTION_ALLOW_EXPIRED = 1; + +const int CSSM_TP_ACTION_ALLOW_EXPIRED_ROOT = 8; + +const int CSSM_TP_ACTION_CRL_SUFFICIENT = 4; + +const int CSSM_TP_ACTION_DEFAULT = 0; + +const int CSSM_TP_ACTION_FETCH_CERT_FROM_NET = 4; + +const int CSSM_TP_ACTION_FETCH_CRL_FROM_NET = 2; + +const int CSSM_TP_ACTION_IMPLICIT_ANCHORS = 64; + +const int CSSM_TP_ACTION_LEAF_IS_CA = 2; + +const int CSSM_TP_ACTION_REQUIRE_CRL_IF_PRESENT = 8; + +const int CSSM_TP_ACTION_REQUIRE_CRL_PER_CERT = 1; + +const int CSSM_TP_ACTION_REQUIRE_REV_PER_CERT = 16; + +const int CSSM_TP_ACTION_TRUST_SETTINGS = 32; + +typedef CSSM_TP_APPLE_CERT_STATUS = uint32; + +final class CSSM_TP_APPLE_EVIDENCE_HEADER extends ffi.Struct { + @uint32() + external int Version; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Version, + }) => $allocator()..ref.Version = Version; +} + +@Deprecated('Deprecated') +final class CSSM_TP_APPLE_EVIDENCE_INFO extends ffi.Struct { + @CSSM_TP_APPLE_CERT_STATUS() + external int StatusBits; + + @uint32() + external int NumStatusCodes; + + external ffi.Pointer StatusCodes; + + @uint32() + external int Index; + + external CSSM_DL_DB_HANDLE DlDbHandle; + + external CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord; +} + +typedef CSSM_TP_AUTHORITY_ID = cssm_tp_authority_id; +typedef CSSM_TP_AUTHORITY_ID_PTR = ffi.Pointer; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTISSUE = 1; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTNOTARIZE = 6; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTRESUME = 4; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTREVOKE = 2; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTSUSPEND = 3; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTUSERECOVER = 7; + +const int CSSM_TP_AUTHORITY_REQUEST_CERTVERIFY = 5; + +const int CSSM_TP_AUTHORITY_REQUEST_CRLISSUE = 256; + +typedef CSSM_TP_AUTHORITY_REQUEST_TYPE = uint32; +typedef CSSM_TP_AUTHORITY_REQUEST_TYPE_PTR = ffi.Pointer; + +const int CSSM_TP_BASE_ERROR = -2147409920; + +const int CSSM_TP_BASE_TP_ERROR = -2147409664; + +typedef CSSM_TP_CALLERAUTH_CONTEXT = cssm_tp_callerauth_context; +typedef CSSM_TP_CALLERAUTH_CONTEXT_PTR = + ffi.Pointer; +typedef CSSM_TP_CERTCHANGE_ACTION = uint32; + +const int CSSM_TP_CERTCHANGE_HOLD = 2; + +typedef CSSM_TP_CERTCHANGE_INPUT = cssm_tp_certchange_input; +typedef CSSM_TP_CERTCHANGE_INPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTCHANGE_NONE = 0; + +const int CSSM_TP_CERTCHANGE_NOT_AUTHORIZED = 5; + +const int CSSM_TP_CERTCHANGE_OK = 1; + +const int CSSM_TP_CERTCHANGE_OKWITHNEWTIME = 2; + +typedef CSSM_TP_CERTCHANGE_OUTPUT = cssm_tp_certchange_output; +typedef CSSM_TP_CERTCHANGE_OUTPUT_PTR = ffi.Pointer; +typedef CSSM_TP_CERTCHANGE_REASON = uint32; + +const int CSSM_TP_CERTCHANGE_REASON_AFFILIATIONCHANGE = 4; + +const int CSSM_TP_CERTCHANGE_REASON_CACOMPROMISE = 2; + +const int CSSM_TP_CERTCHANGE_REASON_CEASEOPERATION = 3; + +const int CSSM_TP_CERTCHANGE_REASON_HOLDRELEASE = 7; + +const int CSSM_TP_CERTCHANGE_REASON_KEYCOMPROMISE = 1; + +const int CSSM_TP_CERTCHANGE_REASON_SUPERCEDED = 5; + +const int CSSM_TP_CERTCHANGE_REASON_SUSPECTEDCOMPROMISE = 6; + +const int CSSM_TP_CERTCHANGE_REASON_UNKNOWN = 0; + +const int CSSM_TP_CERTCHANGE_REJECTED = 4; + +const int CSSM_TP_CERTCHANGE_RELEASE = 3; + +const int CSSM_TP_CERTCHANGE_REVOKE = 1; + +typedef CSSM_TP_CERTCHANGE_STATUS = uint32; + +const int CSSM_TP_CERTCHANGE_STATUS_UNKNOWN = 0; + +const int CSSM_TP_CERTCHANGE_WRONGCA = 3; + +typedef CSSM_TP_CERTISSUE_INPUT = cssm_tp_certissue_input; +typedef CSSM_TP_CERTISSUE_INPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTISSUE_NOT_AUTHORIZED = 5; + +const int CSSM_TP_CERTISSUE_OK = 1; + +const int CSSM_TP_CERTISSUE_OKWITHCERTMODS = 2; + +const int CSSM_TP_CERTISSUE_OKWITHSERVICEMODS = 3; + +typedef CSSM_TP_CERTISSUE_OUTPUT = cssm_tp_certissue_output; +typedef CSSM_TP_CERTISSUE_OUTPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTISSUE_REJECTED = 4; + +typedef CSSM_TP_CERTISSUE_STATUS = uint32; + +const int CSSM_TP_CERTISSUE_STATUS_UNKNOWN = 0; + +const int CSSM_TP_CERTISSUE_WILL_BE_REVOKED = 6; + +typedef CSSM_TP_CERTNOTARIZE_INPUT = cssm_tp_certnotarize_input; +typedef CSSM_TP_CERTNOTARIZE_INPUT_PTR = + ffi.Pointer; + +const int CSSM_TP_CERTNOTARIZE_NOT_AUTHORIZED = 5; + +const int CSSM_TP_CERTNOTARIZE_OK = 1; + +const int CSSM_TP_CERTNOTARIZE_OKWITHOUTFIELDS = 2; + +const int CSSM_TP_CERTNOTARIZE_OKWITHSERVICEMODS = 3; + +typedef CSSM_TP_CERTNOTARIZE_OUTPUT = cssm_tp_certnotarize_output; +typedef CSSM_TP_CERTNOTARIZE_OUTPUT_PTR = + ffi.Pointer; + +const int CSSM_TP_CERTNOTARIZE_REJECTED = 4; + +typedef CSSM_TP_CERTNOTARIZE_STATUS = uint32; + +const int CSSM_TP_CERTNOTARIZE_STATUS_UNKNOWN = 0; + +typedef CSSM_TP_CERTRECLAIM_INPUT = cssm_tp_certreclaim_input; +typedef CSSM_TP_CERTRECLAIM_INPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTRECLAIM_NOMATCH = 2; + +const int CSSM_TP_CERTRECLAIM_NOT_AUTHORIZED = 4; + +const int CSSM_TP_CERTRECLAIM_OK = 1; + +typedef CSSM_TP_CERTRECLAIM_OUTPUT = cssm_tp_certreclaim_output; +typedef CSSM_TP_CERTRECLAIM_OUTPUT_PTR = + ffi.Pointer; + +const int CSSM_TP_CERTRECLAIM_REJECTED = 3; + +typedef CSSM_TP_CERTRECLAIM_STATUS = uint32; + +const int CSSM_TP_CERTRECLAIM_STATUS_UNKNOWN = 0; + +const int CSSM_TP_CERTVERIFY_EXPIRED = 5; + +typedef CSSM_TP_CERTVERIFY_INPUT = cssm_tp_certverify_input; +typedef CSSM_TP_CERTVERIFY_INPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTVERIFY_INVALID = 2; + +const int CSSM_TP_CERTVERIFY_INVALID_AUTHORITY = 7; + +const int CSSM_TP_CERTVERIFY_INVALID_BASIC_CONSTRAINTS = 13; + +const int CSSM_TP_CERTVERIFY_INVALID_CERTGROUP = 10; + +const int CSSM_TP_CERTVERIFY_INVALID_CERT_VALUE = 9; + +const int CSSM_TP_CERTVERIFY_INVALID_CRL_DIST_PT = 14; + +const int CSSM_TP_CERTVERIFY_INVALID_NAME_TREE = 15; + +const int CSSM_TP_CERTVERIFY_INVALID_POLICY = 11; + +const int CSSM_TP_CERTVERIFY_INVALID_POLICY_IDS = 12; + +const int CSSM_TP_CERTVERIFY_INVALID_SIGNATURE = 8; + +const int CSSM_TP_CERTVERIFY_NOT_VALID_YET = 6; + +typedef CSSM_TP_CERTVERIFY_OUTPUT = cssm_tp_certverify_output; +typedef CSSM_TP_CERTVERIFY_OUTPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CERTVERIFY_REVOKED = 3; + +typedef CSSM_TP_CERTVERIFY_STATUS = uint32; + +const int CSSM_TP_CERTVERIFY_SUSPENDED = 4; + +const int CSSM_TP_CERTVERIFY_UNKNOWN = 0; + +const int CSSM_TP_CERTVERIFY_UNKNOWN_CRITICAL_EXT = 16; + +const int CSSM_TP_CERTVERIFY_VALID = 1; + +const int CSSM_TP_CERT_DIR_UPDATE = 8; + +const int CSSM_TP_CERT_NOTIFY_RENEW = 4; + +const int CSSM_TP_CERT_PUBLISH = 2; + +const int CSSM_TP_CONFIRM_ACCEPT = 1; + +const int CSSM_TP_CONFIRM_REJECT = 2; + +typedef CSSM_TP_CONFIRM_RESPONSE = cssm_tp_confirm_response; +typedef CSSM_TP_CONFIRM_RESPONSE_PTR = ffi.Pointer; +typedef CSSM_TP_CONFIRM_STATUS = uint32; +typedef CSSM_TP_CONFIRM_STATUS_PTR = ffi.Pointer; + +const int CSSM_TP_CONFIRM_STATUS_UNKNOWN = 0; + +typedef CSSM_TP_CRLISSUE_INPUT = cssm_tp_crlissue_input; +typedef CSSM_TP_CRLISSUE_INPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CRLISSUE_INVALID_DOMAIN = 3; + +const int CSSM_TP_CRLISSUE_NOT_AUTHORIZED = 6; + +const int CSSM_TP_CRLISSUE_NOT_CURRENT = 2; + +const int CSSM_TP_CRLISSUE_OK = 1; + +typedef CSSM_TP_CRLISSUE_OUTPUT = cssm_tp_crlissue_output; +typedef CSSM_TP_CRLISSUE_OUTPUT_PTR = ffi.Pointer; + +const int CSSM_TP_CRLISSUE_REJECTED = 5; + +typedef CSSM_TP_CRLISSUE_STATUS = uint32; + +const int CSSM_TP_CRLISSUE_STATUS_UNKNOWN = 0; + +const int CSSM_TP_CRLISSUE_UNKNOWN_IDENTIFIER = 4; + +const int CSSM_TP_CRL_DISTRIBUTE = 16; + +typedef CSSM_TP_FORM_TYPE = uint32; + +const int CSSM_TP_FORM_TYPE_GENERIC = 0; + +const int CSSM_TP_FORM_TYPE_REGISTRATION = 1; + +typedef CSSM_TP_HANDLE = CSSM_MODULE_HANDLE; + +const int CSSM_TP_KEY_ARCHIVE = 1; + +typedef CSSM_TP_POLICYINFO = cssm_tp_policyinfo; +typedef CSSM_TP_POLICYINFO_PTR = ffi.Pointer; + +const int CSSM_TP_PRIVATE_ERROR = -2147408896; + +typedef CSSM_TP_REQUEST_SET = cssm_tp_request_set; +typedef CSSM_TP_REQUEST_SET_PTR = ffi.Pointer; +typedef CSSM_TP_RESULT_SET = cssm_tp_result_set; +typedef CSSM_TP_RESULT_SET_PTR = ffi.Pointer; +typedef CSSM_TP_SERVICES = uint32; +typedef CSSM_TP_STOP_ON = uint32; + +const int CSSM_TP_STOP_ON_FIRST_FAIL = 3; + +const int CSSM_TP_STOP_ON_FIRST_PASS = 2; + +const int CSSM_TP_STOP_ON_NONE = 1; + +const int CSSM_TP_STOP_ON_POLICY = 0; + +typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACK = + ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE ModuleHandle, + ffi.Pointer CallerCtx, + CSSM_DATA_PTR VerifiedCert, + ) + > + >; +typedef CSSM_TP_VERIFY_CONTEXT = cssm_tp_verify_context; +typedef CSSM_TP_VERIFY_CONTEXT_PTR = ffi.Pointer; +typedef CSSM_TP_VERIFY_CONTEXT_RESULT = cssm_tp_verify_context_result; +typedef CSSM_TP_VERIFY_CONTEXT_RESULT_PTR = + ffi.Pointer; + +const int CSSM_TRUE = 1; + +@Deprecated('Deprecated') +final class CSSM_TUPLE extends ffi.Struct { + external CSSM_LIST Issuer; + + external CSSM_LIST Subject; + + @CSSM_BOOL() + external int Delegate; + + external CSSM_LIST AuthorizationTag; + + external CSSM_LIST ValidityPeriod; +} + +typedef CSSM_TUPLEGROUP = cssm_tuplegroup; +typedef CSSM_TUPLEGROUP_PTR = ffi.Pointer; +typedef CSSM_TUPLE_PTR = ffi.Pointer; +typedef CSSM_UPCALLS = cssm_upcalls; +typedef CSSM_UPCALLS_CALLOC = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CSSM_HANDLE AddInHandle, + ffi.Size num, + ffi.Size size, + ) + > + >; +typedef CSSM_UPCALLS_FREE = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CSSM_HANDLE AddInHandle, + ffi.Pointer memblock, + ) + > + >; +typedef CSSM_UPCALLS_MALLOC = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(CSSM_HANDLE AddInHandle, ffi.Size size) + > + >; +typedef CSSM_UPCALLS_PTR = ffi.Pointer; +typedef CSSM_UPCALLS_REALLOC = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CSSM_HANDLE AddInHandle, + ffi.Pointer memblock, + ffi.Size size, + ) + > + >; + +const int CSSM_USEE_AUTHENTICATION = 6; + +const int CSSM_USEE_DOMESTIC = 1; + +const int CSSM_USEE_FINANCIAL = 2; + +const int CSSM_USEE_INSURANCE = 9; + +const int CSSM_USEE_KEYEXCH = 7; + +const int CSSM_USEE_KRENT = 4; + +const int CSSM_USEE_KRLE = 3; + +const int CSSM_USEE_LAST = 255; + +const int CSSM_USEE_MEDICAL = 8; + +const int CSSM_USEE_NONE = 0; + +const int CSSM_USEE_SSL = 5; + +typedef CSSM_USEE_TAG = CSSM_PRIVILEGE; + +const int CSSM_USEE_WEAK = 10; + +const int CSSM_VALUE_NOT_AVAILABLE = -1; + +typedef CSSM_VERSION = cssm_version; +typedef CSSM_VERSION_PTR = ffi.Pointer; + +const int CSSM_WORDID_A = 2; + +const int CSSM_WORDID_ACL = 3; + +const int CSSM_WORDID_ALPHA = 4; + +const int CSSM_WORDID_ASYMMETRIC_KEY = 65547; + +const int CSSM_WORDID_B = 5; + +const int CSSM_WORDID_BER = 6; + +const int CSSM_WORDID_BINARY = 7; + +const int CSSM_WORDID_BIOMETRIC = 8; + +const int CSSM_WORDID_C = 9; + +const int CSSM_WORDID_CANCELED = 10; + +const int CSSM_WORDID_CERT = 11; + +const int CSSM_WORDID_COMMENT = 12; + +const int CSSM_WORDID_CRL = 13; + +const int CSSM_WORDID_CUSTOM = 14; + +const int CSSM_WORDID_D = 15; + +const int CSSM_WORDID_DATE = 16; + +const int CSSM_WORDID_DBS_CREATE = 22; + +const int CSSM_WORDID_DBS_DELETE = 23; + +const int CSSM_WORDID_DB_DELETE = 17; + +const int CSSM_WORDID_DB_EXEC_STORED_QUERY = 18; + +const int CSSM_WORDID_DB_INSERT = 19; + +const int CSSM_WORDID_DB_MODIFY = 20; + +const int CSSM_WORDID_DB_READ = 21; + +const int CSSM_WORDID_DECRYPT = 24; + +const int CSSM_WORDID_DELETE = 25; + +const int CSSM_WORDID_DELTA_CRL = 26; + +const int CSSM_WORDID_DER = 27; + +const int CSSM_WORDID_DERIVE = 28; + +const int CSSM_WORDID_DISPLAY = 29; + +const int CSSM_WORDID_DO = 30; + +const int CSSM_WORDID_DSA = 31; + +const int CSSM_WORDID_DSA_SHA1 = 32; + +const int CSSM_WORDID_E = 33; + +const int CSSM_WORDID_ELGAMAL = 34; + +const int CSSM_WORDID_ENCRYPT = 35; + +const int CSSM_WORDID_ENTRY = 36; + +const int CSSM_WORDID_EXPORT_CLEAR = 37; + +const int CSSM_WORDID_EXPORT_WRAPPED = 38; + +const int CSSM_WORDID_G = 39; + +const int CSSM_WORDID_GE = 40; + +const int CSSM_WORDID_GENKEY = 41; + +const int CSSM_WORDID_HASH = 42; + +const int CSSM_WORDID_HASHED_PASSWORD = 43; + +const int CSSM_WORDID_HASHED_SUBJECT = 44; + +const int CSSM_WORDID_HAVAL = 45; + +const int CSSM_WORDID_IBCHASH = 46; + +const int CSSM_WORDID_IMPORT_CLEAR = 47; + +const int CSSM_WORDID_IMPORT_WRAPPED = 48; + +const int CSSM_WORDID_INTEL = 49; + +const int CSSM_WORDID_ISSUER = 50; + +const int CSSM_WORDID_ISSUER_INFO = 51; + +const int CSSM_WORDID_KEA = 53; + +const int CSSM_WORDID_KEY = 65543; + +const int CSSM_WORDID_KEYBAG_KEY = 65549; + +const int CSSM_WORDID_KEYCHAIN_CHANGE_LOCK = 65538; + +const int CSSM_WORDID_KEYCHAIN_LOCK = 65537; + +const int CSSM_WORDID_KEYCHAIN_PROMPT = 65536; + +const int CSSM_WORDID_KEYHOLDER = 54; + +const int CSSM_WORDID_K_OF_N = 52; + +const int CSSM_WORDID_L = 55; + +const int CSSM_WORDID_LE = 56; + +const int CSSM_WORDID_LOGIN = 57; + +const int CSSM_WORDID_LOGIN_NAME = 58; + +const int CSSM_WORDID_MAC = 59; + +const int CSSM_WORDID_MD2 = 60; + +const int CSSM_WORDID_MD2WITHRSA = 61; + +const int CSSM_WORDID_MD4 = 62; + +const int CSSM_WORDID_MD5 = 63; + +const int CSSM_WORDID_MD5WITHRSA = 64; + +const int CSSM_WORDID_N = 65; + +const int CSSM_WORDID_NAME = 66; + +const int CSSM_WORDID_NDR = 67; + +const int CSSM_WORDID_NHASH = 68; + +const int CSSM_WORDID_NOT_AFTER = 69; + +const int CSSM_WORDID_NOT_BEFORE = 70; + +const int CSSM_WORDID_NULL = 71; + +const int CSSM_WORDID_NUMERIC = 72; + +const int CSSM_WORDID_OBJECT_HASH = 73; + +const int CSSM_WORDID_ONE_TIME = 74; + +const int CSSM_WORDID_ONLINE = 75; + +const int CSSM_WORDID_OWNER = 76; + +const int CSSM_WORDID_P = 77; + +const int CSSM_WORDID_PAM_NAME = 78; + +const int CSSM_WORDID_PARTITION = 65548; + +const int CSSM_WORDID_PASSWORD = 79; + +const int CSSM_WORDID_PGP = 80; + +const int CSSM_WORDID_PIN = 65544; + +const int CSSM_WORDID_PREAUTH = 65545; + +const int CSSM_WORDID_PREAUTH_SOURCE = 65546; + +const int CSSM_WORDID_PREFIX = 81; + +const int CSSM_WORDID_PRIVATE_KEY = 82; + +const int CSSM_WORDID_PROCESS = 65539; + +const int CSSM_WORDID_PROMPTED_BIOMETRIC = 83; + +const int CSSM_WORDID_PROMPTED_PASSWORD = 84; + +const int CSSM_WORDID_PROPAGATE = 85; + +const int CSSM_WORDID_PROTECTED_BIOMETRIC = 86; + +const int CSSM_WORDID_PROTECTED_PASSWORD = 87; + +const int CSSM_WORDID_PROTECTED_PIN = 88; + +const int CSSM_WORDID_PUBLIC_KEY = 89; + +const int CSSM_WORDID_PUBLIC_KEY_FROM_CERT = 90; + +const int CSSM_WORDID_Q = 91; + +const int CSSM_WORDID_RANGE = 92; + +const int CSSM_WORDID_REVAL = 93; + +const int CSSM_WORDID_RIPEMAC = 94; + +const int CSSM_WORDID_RIPEMD = 95; + +const int CSSM_WORDID_RIPEMD160 = 96; + +const int CSSM_WORDID_RSA = 97; + +const int CSSM_WORDID_RSA_ISO9796 = 98; + +const int CSSM_WORDID_RSA_PKCS = 99; + +const int CSSM_WORDID_RSA_PKCS1 = 102; + +const int CSSM_WORDID_RSA_PKCS1_MD5 = 103; + +const int CSSM_WORDID_RSA_PKCS1_SHA1 = 104; + +const int CSSM_WORDID_RSA_PKCS1_SIG = 105; + +const int CSSM_WORDID_RSA_PKCS_MD5 = 100; + +const int CSSM_WORDID_RSA_PKCS_SHA1 = 101; + +const int CSSM_WORDID_RSA_RAW = 106; + +const int CSSM_WORDID_SDSIV1 = 107; + +const int CSSM_WORDID_SEQUENCE = 108; + +const int CSSM_WORDID_SET = 109; + +const int CSSM_WORDID_SEXPR = 110; + +const int CSSM_WORDID_SHA1 = 111; + +const int CSSM_WORDID_SHA1WITHDSA = 112; + +const int CSSM_WORDID_SHA1WITHECDSA = 113; + +const int CSSM_WORDID_SHA1WITHRSA = 114; + +const int CSSM_WORDID_SIGN = 115; + +const int CSSM_WORDID_SIGNATURE = 116; + +const int CSSM_WORDID_SIGNED_NONCE = 117; + +const int CSSM_WORDID_SIGNED_SECRET = 118; + +const int CSSM_WORDID_SPKI = 119; + +const int CSSM_WORDID_SUBJECT = 120; + +const int CSSM_WORDID_SUBJECT_INFO = 121; + +const int CSSM_WORDID_SYMMETRIC_KEY = 65541; + +const int CSSM_WORDID_SYSTEM = 65542; + +const int CSSM_WORDID_TAG = 122; + +const int CSSM_WORDID_THRESHOLD = 123; + +const int CSSM_WORDID_TIME = 124; + +typedef CSSM_WORDID_TYPE = sint32; + +const int CSSM_WORDID_URI = 125; + +const int CSSM_WORDID_VENDOR_END = 2147418112; + +const int CSSM_WORDID_VENDOR_START = 65536; + +const int CSSM_WORDID_VERSION = 126; + +const int CSSM_WORDID_X509V1 = 128; + +const int CSSM_WORDID_X509V2 = 129; + +const int CSSM_WORDID_X509V3 = 130; + +const int CSSM_WORDID_X509_ATTRIBUTE = 127; + +const int CSSM_WORDID_X9_ATTRIBUTE = 131; + +const int CSSM_WORDID__FIRST_UNUSED = 65550; + +const int CSSM_WORDID__NLU_ = 0; + +const int CSSM_WORDID__RESERVED_1 = 65540; + +const int CSSM_WORDID__STAR_ = 1; + +const int CSSM_WORDID__UNK_ = -1; + +typedef CSSM_WRAP_KEY = CSSM_KEY; +typedef CSSM_WRAP_KEY_PTR = ffi.Pointer; +typedef CSSM_X509EXT_BASICCONSTRAINTS = cssm_x509ext_basicConstraints; +typedef CSSM_X509EXT_BASICCONSTRAINTS_PTR = + ffi.Pointer; +typedef CSSM_X509EXT_PAIR = cssm_x509ext_pair; +typedef CSSM_X509EXT_PAIR_PTR = ffi.Pointer; +typedef CSSM_X509EXT_POLICYINFO = cssm_x509ext_policyInfo; +typedef CSSM_X509EXT_POLICYINFO_PTR = ffi.Pointer; +typedef CSSM_X509EXT_POLICYQUALIFIERINFO = cssm_x509ext_policyQualifierInfo; +typedef CSSM_X509EXT_POLICYQUALIFIERINFO_PTR = + ffi.Pointer; +typedef CSSM_X509EXT_POLICYQUALIFIERS = cssm_x509ext_policyQualifiers; +typedef CSSM_X509EXT_POLICYQUALIFIERS_PTR = + ffi.Pointer; +typedef CSSM_X509EXT_TAGandVALUE = cssm_x509_extensionTagAndValue; +typedef CSSM_X509EXT_TAGandVALUE_PTR = + ffi.Pointer; +typedef CSSM_X509_ALGORITHM_IDENTIFIER_PTR = ffi.Pointer; +typedef CSSM_X509_EXTENSION = cssm_x509_extension; +typedef CSSM_X509_EXTENSIONS = cssm_x509_extensions; +typedef CSSM_X509_EXTENSIONS_PTR = ffi.Pointer; +typedef CSSM_X509_EXTENSION_PTR = ffi.Pointer; +typedef CSSM_X509_NAME = cssm_x509_name; +typedef CSSM_X509_NAME_PTR = ffi.Pointer; +typedef CSSM_X509_OPTION = CSSM_BOOL; +typedef CSSM_X509_RDN = cssm_x509_rdn; +typedef CSSM_X509_RDN_PTR = ffi.Pointer; +typedef CSSM_X509_REVOKED_CERT_ENTRY = cssm_x509_revoked_cert_entry; +typedef CSSM_X509_REVOKED_CERT_ENTRY_PTR = + ffi.Pointer; +typedef CSSM_X509_REVOKED_CERT_LIST = cssm_x509_revoked_cert_list; +typedef CSSM_X509_REVOKED_CERT_LIST_PTR = + ffi.Pointer; +typedef CSSM_X509_SIGNATURE = cssm_x509_signature; +typedef CSSM_X509_SIGNATURE_PTR = ffi.Pointer; +typedef CSSM_X509_SIGNED_CERTIFICATE = cssm_x509_signed_certificate; +typedef CSSM_X509_SIGNED_CERTIFICATE_PTR = + ffi.Pointer; +typedef CSSM_X509_SIGNED_CRL = cssm_x509_signed_crl; +typedef CSSM_X509_SIGNED_CRL_PTR = ffi.Pointer; +typedef CSSM_X509_SUBJECT_PUBLIC_KEY_INFO_PTR = ffi.Pointer; +typedef CSSM_X509_TBS_CERTIFICATE = cssm_x509_tbs_certificate; +typedef CSSM_X509_TBS_CERTIFICATE_PTR = ffi.Pointer; +typedef CSSM_X509_TBS_CERTLIST = cssm_x509_tbs_certlist; +typedef CSSM_X509_TBS_CERTLIST_PTR = ffi.Pointer; +typedef CSSM_X509_TIME = cssm_x509_time; +typedef CSSM_X509_TIME_PTR = ffi.Pointer; +typedef CSSM_X509_TYPE_VALUE_PAIR = cssm_x509_type_value_pair; +typedef CSSM_X509_TYPE_VALUE_PAIR_PTR = ffi.Pointer; +typedef CSSM_X509_VALIDITY = x509_validity; +typedef CSSM_X509_VALIDITY_PTR = ffi.Pointer; + +const int CS_MAX_PATH = 1024; + +/// CTAdaptiveImageProviding +extension type CTAdaptiveImageProviding._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [CTAdaptiveImageProviding] that points to the same underlying object as [other]. + CTAdaptiveImageProviding.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [CTAdaptiveImageProviding] that wraps the given raw object pointer. + CTAdaptiveImageProviding.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [CTAdaptiveImageProviding]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_CTAdaptiveImageProviding, + ); + } +} + +extension CTAdaptiveImageProviding$Methods on CTAdaptiveImageProviding { + /// imageForProposedSize:scaleFactor:imageOffset:imageSize: + CGImageRef imageForProposedSize( + objc.CGSize proposedSize, { + required DartCGFloat scaleFactor, + required ffi.Pointer imageOffset, + required ffi.Pointer imageSize, + }) { + final _$$ref = object$.ref; + return _objc_msgSend_wep107( + _$$ref.pointer, + _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, + proposedSize, + scaleFactor, + imageOffset, + imageSize, + ); + } +} + +interface class CTAdaptiveImageProviding$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_CTAdaptiveImageProviding.cast()); + + /// Builds an object that implements the CTAdaptiveImageProviding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static CTAdaptiveImageProviding implement({ + required CGImageRef Function( + objc.CGSize, + DartCGFloat, + ffi.Pointer, + ffi.Pointer, + ) + imageForProposedSize_scaleFactor_imageOffset_imageSize_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'CTAdaptiveImageProviding', + ); + CTAdaptiveImageProviding$Builder + .imageForProposedSize_scaleFactor_imageOffset_imageSize_ + .implement( + builder, + imageForProposedSize_scaleFactor_imageOffset_imageSize_, + ); + builder.addProtocol($protocol); + return CTAdaptiveImageProviding.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the CTAdaptiveImageProviding protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required CGImageRef Function( + objc.CGSize, + DartCGFloat, + ffi.Pointer, + ffi.Pointer, + ) + imageForProposedSize_scaleFactor_imageOffset_imageSize_, + bool $keepIsolateAlive = true, + }) { + CTAdaptiveImageProviding$Builder + .imageForProposedSize_scaleFactor_imageOffset_imageSize_ + .implement( + builder, + imageForProposedSize_scaleFactor_imageOffset_imageSize_, + ); + builder.addProtocol($protocol); + } + + /// imageForProposedSize:scaleFactor:imageOffset:imageSize: + static final imageForProposedSize_scaleFactor_imageOffset_imageSize_ = + objc.ObjCProtocolMethod< + CGImageRef Function( + objc.CGSize, + DartCGFloat, + ffi.Pointer, + ffi.Pointer, + ) + >( + _protocol_CTAdaptiveImageProviding, + _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, + ffi.Native.addressOf< + ffi.NativeFunction< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + CGFloat, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1p89e63) + .cast(), + objc.getProtocolMethodSignature( + _protocol_CTAdaptiveImageProviding, + _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, + isRequired: true, + isInstanceMethod: true, + ), + ( + CGImageRef Function( + objc.CGSize, + DartCGFloat, + ffi.Pointer, + ffi.Pointer, + ) + func, + ) => + ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize.fromFunction( + ( + ffi.Pointer _, + objc.CGSize arg1, + DartCGFloat arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); +} + +enum CTCharacterCollection { + kCTCharacterCollectionIdentityMapping(0), + kCTCharacterCollectionAdobeCNS1(1), + kCTCharacterCollectionAdobeGB1(2), + kCTCharacterCollectionAdobeJapan1(3), + kCTCharacterCollectionAdobeJapan2(4), + kCTCharacterCollectionAdobeKorea1(5); + + static const kCTIdentityMappingCharacterCollection = + kCTCharacterCollectionIdentityMapping; + static const kCTAdobeCNS1CharacterCollection = + kCTCharacterCollectionAdobeCNS1; + static const kCTAdobeGB1CharacterCollection = kCTCharacterCollectionAdobeGB1; + static const kCTAdobeJapan1CharacterCollection = + kCTCharacterCollectionAdobeJapan1; + static const kCTAdobeJapan2CharacterCollection = + kCTCharacterCollectionAdobeJapan2; + static const kCTAdobeKorea1CharacterCollection = + kCTCharacterCollectionAdobeKorea1; + + final int value; + const CTCharacterCollection(this.value); + + static CTCharacterCollection fromValue(int value) => switch (value) { + 0 => kCTCharacterCollectionIdentityMapping, + 1 => kCTCharacterCollectionAdobeCNS1, + 2 => kCTCharacterCollectionAdobeGB1, + 3 => kCTCharacterCollectionAdobeJapan1, + 4 => kCTCharacterCollectionAdobeJapan2, + 5 => kCTCharacterCollectionAdobeKorea1, + _ => throw ArgumentError('Unknown value for CTCharacterCollection: $value'), + }; + + @override + String toString() { + if (this == kCTCharacterCollectionIdentityMapping) + return "CTCharacterCollection.kCTCharacterCollectionIdentityMapping, CTCharacterCollection.kCTIdentityMappingCharacterCollection"; + if (this == kCTCharacterCollectionAdobeCNS1) + return "CTCharacterCollection.kCTCharacterCollectionAdobeCNS1, CTCharacterCollection.kCTAdobeCNS1CharacterCollection"; + if (this == kCTCharacterCollectionAdobeGB1) + return "CTCharacterCollection.kCTCharacterCollectionAdobeGB1, CTCharacterCollection.kCTAdobeGB1CharacterCollection"; + if (this == kCTCharacterCollectionAdobeJapan1) + return "CTCharacterCollection.kCTCharacterCollectionAdobeJapan1, CTCharacterCollection.kCTAdobeJapan1CharacterCollection"; + if (this == kCTCharacterCollectionAdobeJapan2) + return "CTCharacterCollection.kCTCharacterCollectionAdobeJapan2, CTCharacterCollection.kCTAdobeJapan2CharacterCollection"; + if (this == kCTCharacterCollectionAdobeKorea1) + return "CTCharacterCollection.kCTCharacterCollectionAdobeKorea1, CTCharacterCollection.kCTAdobeKorea1CharacterCollection"; + return super.toString(); + } +} + +sealed class CTFontCollectionCopyOptions { + static const kCTFontCollectionCopyDefaultOptions = 0; + static const kCTFontCollectionCopyUnique = 1; + static const kCTFontCollectionCopyStandardSort = 2; +} + +typedef CTFontCollectionRef = ffi.Pointer<__CTFontCollection>; +typedef CTFontCollectionSortDescriptorsCallback = + ffi.Pointer< + ffi.NativeFunction< + CFIndex Function( + CTFontDescriptorRef first, + CTFontDescriptorRef second, + ffi.Pointer refCon, + ) + > + >; + +enum CTFontDescriptorMatchingState { + kCTFontDescriptorMatchingDidBegin(0), + kCTFontDescriptorMatchingDidFinish(1), + kCTFontDescriptorMatchingWillBeginQuerying(2), + kCTFontDescriptorMatchingStalled(3), + kCTFontDescriptorMatchingWillBeginDownloading(4), + kCTFontDescriptorMatchingDownloading(5), + kCTFontDescriptorMatchingDidFinishDownloading(6), + kCTFontDescriptorMatchingDidMatch(7), + kCTFontDescriptorMatchingDidFailWithError(8); + + final int value; + const CTFontDescriptorMatchingState(this.value); + + static CTFontDescriptorMatchingState fromValue(int value) => switch (value) { + 0 => kCTFontDescriptorMatchingDidBegin, + 1 => kCTFontDescriptorMatchingDidFinish, + 2 => kCTFontDescriptorMatchingWillBeginQuerying, + 3 => kCTFontDescriptorMatchingStalled, + 4 => kCTFontDescriptorMatchingWillBeginDownloading, + 5 => kCTFontDescriptorMatchingDownloading, + 6 => kCTFontDescriptorMatchingDidFinishDownloading, + 7 => kCTFontDescriptorMatchingDidMatch, + 8 => kCTFontDescriptorMatchingDidFailWithError, + _ => throw ArgumentError( + 'Unknown value for CTFontDescriptorMatchingState: $value', + ), + }; +} + +typedef CTFontDescriptorProgressHandler = ffi.Pointer; +typedef DartCTFontDescriptorProgressHandler = + objc.ObjCBlock)>; +typedef CTFontDescriptorRef = ffi.Pointer<__CTFontDescriptor>; + +enum CTFontFormat { + kCTFontFormatUnrecognized(0), + kCTFontFormatOpenTypePostScript(1), + kCTFontFormatOpenTypeTrueType(2), + kCTFontFormatTrueType(3), + kCTFontFormatPostScript(4), + kCTFontFormatBitmap(5); + + final int value; + const CTFontFormat(this.value); + + static CTFontFormat fromValue(int value) => switch (value) { + 0 => kCTFontFormatUnrecognized, + 1 => kCTFontFormatOpenTypePostScript, + 2 => kCTFontFormatOpenTypeTrueType, + 3 => kCTFontFormatTrueType, + 4 => kCTFontFormatPostScript, + 5 => kCTFontFormatBitmap, + _ => throw ArgumentError('Unknown value for CTFontFormat: $value'), + }; +} + +enum CTFontManagerAutoActivationSetting { + kCTFontManagerAutoActivationDefault(0), + kCTFontManagerAutoActivationDisabled(1), + kCTFontManagerAutoActivationEnabled(2), + kCTFontManagerAutoActivationPromptUser(3); + + final int value; + const CTFontManagerAutoActivationSetting(this.value); + + static CTFontManagerAutoActivationSetting fromValue(int value) => + switch (value) { + 0 => kCTFontManagerAutoActivationDefault, + 1 => kCTFontManagerAutoActivationDisabled, + 2 => kCTFontManagerAutoActivationEnabled, + 3 => kCTFontManagerAutoActivationPromptUser, + _ => throw ArgumentError( + 'Unknown value for CTFontManagerAutoActivationSetting: $value', + ), + }; +} + +enum CTFontManagerError { + kCTFontManagerErrorFileNotFound(101), + kCTFontManagerErrorInsufficientPermissions(102), + kCTFontManagerErrorUnrecognizedFormat(103), + kCTFontManagerErrorInvalidFontData(104), + kCTFontManagerErrorAlreadyRegistered(105), + kCTFontManagerErrorExceededResourceLimit(106), + kCTFontManagerErrorAssetNotFound(107), + kCTFontManagerErrorNotRegistered(201), + kCTFontManagerErrorInUse(202), + kCTFontManagerErrorSystemRequired(203), + kCTFontManagerErrorRegistrationFailed(301), + kCTFontManagerErrorMissingEntitlement(302), + kCTFontManagerErrorInsufficientInfo(303), + kCTFontManagerErrorCancelledByUser(304), + kCTFontManagerErrorDuplicatedName(305), + kCTFontManagerErrorInvalidFilePath(306), + kCTFontManagerErrorUnsupportedScope(307); + + final int value; + const CTFontManagerError(this.value); + + static CTFontManagerError fromValue(int value) => switch (value) { + 101 => kCTFontManagerErrorFileNotFound, + 102 => kCTFontManagerErrorInsufficientPermissions, + 103 => kCTFontManagerErrorUnrecognizedFormat, + 104 => kCTFontManagerErrorInvalidFontData, + 105 => kCTFontManagerErrorAlreadyRegistered, + 106 => kCTFontManagerErrorExceededResourceLimit, + 107 => kCTFontManagerErrorAssetNotFound, + 201 => kCTFontManagerErrorNotRegistered, + 202 => kCTFontManagerErrorInUse, + 203 => kCTFontManagerErrorSystemRequired, + 301 => kCTFontManagerErrorRegistrationFailed, + 302 => kCTFontManagerErrorMissingEntitlement, + 303 => kCTFontManagerErrorInsufficientInfo, + 304 => kCTFontManagerErrorCancelledByUser, + 305 => kCTFontManagerErrorDuplicatedName, + 306 => kCTFontManagerErrorInvalidFilePath, + 307 => kCTFontManagerErrorUnsupportedScope, + _ => throw ArgumentError('Unknown value for CTFontManagerError: $value'), + }; +} + +enum CTFontManagerScope { + kCTFontManagerScopeNone(0), + kCTFontManagerScopeProcess(1), + kCTFontManagerScopePersistent(2), + kCTFontManagerScopeSession(3); + + static const kCTFontManagerScopeUser = kCTFontManagerScopePersistent; + + final int value; + const CTFontManagerScope(this.value); + + static CTFontManagerScope fromValue(int value) => switch (value) { + 0 => kCTFontManagerScopeNone, + 1 => kCTFontManagerScopeProcess, + 2 => kCTFontManagerScopePersistent, + 3 => kCTFontManagerScopeSession, + _ => throw ArgumentError('Unknown value for CTFontManagerScope: $value'), + }; + + @override + String toString() { + if (this == kCTFontManagerScopePersistent) + return "CTFontManagerScope.kCTFontManagerScopePersistent, CTFontManagerScope.kCTFontManagerScopeUser"; + return super.toString(); + } +} + +sealed class CTFontOptions { + static const kCTFontOptionsDefault = 0; + static const kCTFontOptionsPreventAutoActivation = 1; + static const kCTFontOptionsPreventAutoDownload = 2; + static const kCTFontOptionsPreferSystemFont = 4; +} + +enum CTFontOrientation { + kCTFontOrientationDefault(0), + kCTFontOrientationHorizontal(1), + kCTFontOrientationVertical(2); + + static const kCTFontDefaultOrientation = kCTFontOrientationDefault; + static const kCTFontHorizontalOrientation = kCTFontOrientationHorizontal; + static const kCTFontVerticalOrientation = kCTFontOrientationVertical; + + final int value; + const CTFontOrientation(this.value); + + static CTFontOrientation fromValue(int value) => switch (value) { + 0 => kCTFontOrientationDefault, + 1 => kCTFontOrientationHorizontal, + 2 => kCTFontOrientationVertical, + _ => throw ArgumentError('Unknown value for CTFontOrientation: $value'), + }; + + @override + String toString() { + if (this == kCTFontOrientationDefault) + return "CTFontOrientation.kCTFontOrientationDefault, CTFontOrientation.kCTFontDefaultOrientation"; + if (this == kCTFontOrientationHorizontal) + return "CTFontOrientation.kCTFontOrientationHorizontal, CTFontOrientation.kCTFontHorizontalOrientation"; + if (this == kCTFontOrientationVertical) + return "CTFontOrientation.kCTFontOrientationVertical, CTFontOrientation.kCTFontVerticalOrientation"; + return super.toString(); + } +} + +typedef CTFontPriority = ffi.Uint32; +typedef DartCTFontPriority = int; +typedef CTFontRef = ffi.Pointer<__CTFont>; + +sealed class CTFontStylisticClass { + static const kCTFontClassUnknown = 0; + static const kCTFontClassOldStyleSerifs = 268435456; + static const kCTFontClassTransitionalSerifs = 536870912; + static const kCTFontClassModernSerifs = 805306368; + static const kCTFontClassClarendonSerifs = 1073741824; + static const kCTFontClassSlabSerifs = 1342177280; + static const kCTFontClassFreeformSerifs = 1879048192; + static const kCTFontClassSansSerif = -2147483648; + static const kCTFontClassOrnamentals = -1879048192; + static const kCTFontClassScripts = -1610612736; + static const kCTFontClassSymbolic = -1073741824; + static const kCTFontUnknownClass = 0; + static const kCTFontOldStyleSerifsClass = 268435456; + static const kCTFontTransitionalSerifsClass = 536870912; + static const kCTFontModernSerifsClass = 805306368; + static const kCTFontClarendonSerifsClass = 1073741824; + static const kCTFontSlabSerifsClass = 1342177280; + static const kCTFontFreeformSerifsClass = 1879048192; + static const kCTFontSansSerifClass = -2147483648; + static const kCTFontOrnamentalsClass = -1879048192; + static const kCTFontScriptsClass = -1610612736; + static const kCTFontSymbolicClass = -1073741824; +} + +sealed class CTFontSymbolicTraits { + static const kCTFontTraitItalic = 1; + static const kCTFontTraitBold = 2; + static const kCTFontTraitExpanded = 32; + static const kCTFontTraitCondensed = 64; + static const kCTFontTraitMonoSpace = 1024; + static const kCTFontTraitVertical = 2048; + static const kCTFontTraitUIOptimized = 4096; + static const kCTFontTraitColorGlyphs = 8192; + static const kCTFontTraitComposite = 16384; + static const kCTFontTraitClassMask = -268435456; + static const kCTFontItalicTrait = 1; + static const kCTFontBoldTrait = 2; + static const kCTFontExpandedTrait = 32; + static const kCTFontCondensedTrait = 64; + static const kCTFontMonoSpaceTrait = 1024; + static const kCTFontVerticalTrait = 2048; + static const kCTFontUIOptimizedTrait = 4096; + static const kCTFontColorGlyphsTrait = 8192; + static const kCTFontCompositeTrait = 16384; + static const kCTFontClassMaskTrait = -268435456; +} + +sealed class CTFontTableOptions { + static const kCTFontTableOptionNoOptions = 0; + static const kCTFontTableOptionExcludeSynthetic = 1; +} + +typedef CTFontTableTag = FourCharCode; + +enum CTFontUIFontType { + kCTFontUIFontNone(-1), + kCTFontUIFontUser(0), + kCTFontUIFontUserFixedPitch(1), + kCTFontUIFontSystem(2), + kCTFontUIFontEmphasizedSystem(3), + kCTFontUIFontSmallSystem(4), + kCTFontUIFontSmallEmphasizedSystem(5), + kCTFontUIFontMiniSystem(6), + kCTFontUIFontMiniEmphasizedSystem(7), + kCTFontUIFontViews(8), + kCTFontUIFontApplication(9), + kCTFontUIFontLabel(10), + kCTFontUIFontMenuTitle(11), + kCTFontUIFontMenuItem(12), + kCTFontUIFontMenuItemMark(13), + kCTFontUIFontMenuItemCmdKey(14), + kCTFontUIFontWindowTitle(15), + kCTFontUIFontPushButton(16), + kCTFontUIFontUtilityWindowTitle(17), + kCTFontUIFontAlertHeader(18), + kCTFontUIFontSystemDetail(19), + kCTFontUIFontEmphasizedSystemDetail(20), + kCTFontUIFontToolbar(21), + kCTFontUIFontSmallToolbar(22), + kCTFontUIFontMessage(23), + kCTFontUIFontPalette(24), + kCTFontUIFontToolTip(25), + kCTFontUIFontControlContent(26); + + static const kCTFontNoFontType = kCTFontUIFontNone; + static const kCTFontUserFontType = kCTFontUIFontUser; + static const kCTFontUserFixedPitchFontType = kCTFontUIFontUserFixedPitch; + static const kCTFontSystemFontType = kCTFontUIFontSystem; + static const kCTFontEmphasizedSystemFontType = kCTFontUIFontEmphasizedSystem; + static const kCTFontSmallSystemFontType = kCTFontUIFontSmallSystem; + static const kCTFontSmallEmphasizedSystemFontType = + kCTFontUIFontSmallEmphasizedSystem; + static const kCTFontMiniSystemFontType = kCTFontUIFontMiniSystem; + static const kCTFontMiniEmphasizedSystemFontType = + kCTFontUIFontMiniEmphasizedSystem; + static const kCTFontViewsFontType = kCTFontUIFontViews; + static const kCTFontApplicationFontType = kCTFontUIFontApplication; + static const kCTFontLabelFontType = kCTFontUIFontLabel; + static const kCTFontMenuTitleFontType = kCTFontUIFontMenuTitle; + static const kCTFontMenuItemFontType = kCTFontUIFontMenuItem; + static const kCTFontMenuItemMarkFontType = kCTFontUIFontMenuItemMark; + static const kCTFontMenuItemCmdKeyFontType = kCTFontUIFontMenuItemCmdKey; + static const kCTFontWindowTitleFontType = kCTFontUIFontWindowTitle; + static const kCTFontPushButtonFontType = kCTFontUIFontPushButton; + static const kCTFontUtilityWindowTitleFontType = + kCTFontUIFontUtilityWindowTitle; + static const kCTFontAlertHeaderFontType = kCTFontUIFontAlertHeader; + static const kCTFontSystemDetailFontType = kCTFontUIFontSystemDetail; + static const kCTFontEmphasizedSystemDetailFontType = + kCTFontUIFontEmphasizedSystemDetail; + static const kCTFontToolbarFontType = kCTFontUIFontToolbar; + static const kCTFontSmallToolbarFontType = kCTFontUIFontSmallToolbar; + static const kCTFontMessageFontType = kCTFontUIFontMessage; + static const kCTFontPaletteFontType = kCTFontUIFontPalette; + static const kCTFontToolTipFontType = kCTFontUIFontToolTip; + static const kCTFontControlContentFontType = kCTFontUIFontControlContent; + + final int value; + const CTFontUIFontType(this.value); + + static CTFontUIFontType fromValue(int value) => switch (value) { + -1 => kCTFontUIFontNone, + 0 => kCTFontUIFontUser, + 1 => kCTFontUIFontUserFixedPitch, + 2 => kCTFontUIFontSystem, + 3 => kCTFontUIFontEmphasizedSystem, + 4 => kCTFontUIFontSmallSystem, + 5 => kCTFontUIFontSmallEmphasizedSystem, + 6 => kCTFontUIFontMiniSystem, + 7 => kCTFontUIFontMiniEmphasizedSystem, + 8 => kCTFontUIFontViews, + 9 => kCTFontUIFontApplication, + 10 => kCTFontUIFontLabel, + 11 => kCTFontUIFontMenuTitle, + 12 => kCTFontUIFontMenuItem, + 13 => kCTFontUIFontMenuItemMark, + 14 => kCTFontUIFontMenuItemCmdKey, + 15 => kCTFontUIFontWindowTitle, + 16 => kCTFontUIFontPushButton, + 17 => kCTFontUIFontUtilityWindowTitle, + 18 => kCTFontUIFontAlertHeader, + 19 => kCTFontUIFontSystemDetail, + 20 => kCTFontUIFontEmphasizedSystemDetail, + 21 => kCTFontUIFontToolbar, + 22 => kCTFontUIFontSmallToolbar, + 23 => kCTFontUIFontMessage, + 24 => kCTFontUIFontPalette, + 25 => kCTFontUIFontToolTip, + 26 => kCTFontUIFontControlContent, + _ => throw ArgumentError('Unknown value for CTFontUIFontType: $value'), + }; + + @override + String toString() { + if (this == kCTFontUIFontNone) + return "CTFontUIFontType.kCTFontUIFontNone, CTFontUIFontType.kCTFontNoFontType"; + if (this == kCTFontUIFontUser) + return "CTFontUIFontType.kCTFontUIFontUser, CTFontUIFontType.kCTFontUserFontType"; + if (this == kCTFontUIFontUserFixedPitch) + return "CTFontUIFontType.kCTFontUIFontUserFixedPitch, CTFontUIFontType.kCTFontUserFixedPitchFontType"; + if (this == kCTFontUIFontSystem) + return "CTFontUIFontType.kCTFontUIFontSystem, CTFontUIFontType.kCTFontSystemFontType"; + if (this == kCTFontUIFontEmphasizedSystem) + return "CTFontUIFontType.kCTFontUIFontEmphasizedSystem, CTFontUIFontType.kCTFontEmphasizedSystemFontType"; + if (this == kCTFontUIFontSmallSystem) + return "CTFontUIFontType.kCTFontUIFontSmallSystem, CTFontUIFontType.kCTFontSmallSystemFontType"; + if (this == kCTFontUIFontSmallEmphasizedSystem) + return "CTFontUIFontType.kCTFontUIFontSmallEmphasizedSystem, CTFontUIFontType.kCTFontSmallEmphasizedSystemFontType"; + if (this == kCTFontUIFontMiniSystem) + return "CTFontUIFontType.kCTFontUIFontMiniSystem, CTFontUIFontType.kCTFontMiniSystemFontType"; + if (this == kCTFontUIFontMiniEmphasizedSystem) + return "CTFontUIFontType.kCTFontUIFontMiniEmphasizedSystem, CTFontUIFontType.kCTFontMiniEmphasizedSystemFontType"; + if (this == kCTFontUIFontViews) + return "CTFontUIFontType.kCTFontUIFontViews, CTFontUIFontType.kCTFontViewsFontType"; + if (this == kCTFontUIFontApplication) + return "CTFontUIFontType.kCTFontUIFontApplication, CTFontUIFontType.kCTFontApplicationFontType"; + if (this == kCTFontUIFontLabel) + return "CTFontUIFontType.kCTFontUIFontLabel, CTFontUIFontType.kCTFontLabelFontType"; + if (this == kCTFontUIFontMenuTitle) + return "CTFontUIFontType.kCTFontUIFontMenuTitle, CTFontUIFontType.kCTFontMenuTitleFontType"; + if (this == kCTFontUIFontMenuItem) + return "CTFontUIFontType.kCTFontUIFontMenuItem, CTFontUIFontType.kCTFontMenuItemFontType"; + if (this == kCTFontUIFontMenuItemMark) + return "CTFontUIFontType.kCTFontUIFontMenuItemMark, CTFontUIFontType.kCTFontMenuItemMarkFontType"; + if (this == kCTFontUIFontMenuItemCmdKey) + return "CTFontUIFontType.kCTFontUIFontMenuItemCmdKey, CTFontUIFontType.kCTFontMenuItemCmdKeyFontType"; + if (this == kCTFontUIFontWindowTitle) + return "CTFontUIFontType.kCTFontUIFontWindowTitle, CTFontUIFontType.kCTFontWindowTitleFontType"; + if (this == kCTFontUIFontPushButton) + return "CTFontUIFontType.kCTFontUIFontPushButton, CTFontUIFontType.kCTFontPushButtonFontType"; + if (this == kCTFontUIFontUtilityWindowTitle) + return "CTFontUIFontType.kCTFontUIFontUtilityWindowTitle, CTFontUIFontType.kCTFontUtilityWindowTitleFontType"; + if (this == kCTFontUIFontAlertHeader) + return "CTFontUIFontType.kCTFontUIFontAlertHeader, CTFontUIFontType.kCTFontAlertHeaderFontType"; + if (this == kCTFontUIFontSystemDetail) + return "CTFontUIFontType.kCTFontUIFontSystemDetail, CTFontUIFontType.kCTFontSystemDetailFontType"; + if (this == kCTFontUIFontEmphasizedSystemDetail) + return "CTFontUIFontType.kCTFontUIFontEmphasizedSystemDetail, CTFontUIFontType.kCTFontEmphasizedSystemDetailFontType"; + if (this == kCTFontUIFontToolbar) + return "CTFontUIFontType.kCTFontUIFontToolbar, CTFontUIFontType.kCTFontToolbarFontType"; + if (this == kCTFontUIFontSmallToolbar) + return "CTFontUIFontType.kCTFontUIFontSmallToolbar, CTFontUIFontType.kCTFontSmallToolbarFontType"; + if (this == kCTFontUIFontMessage) + return "CTFontUIFontType.kCTFontUIFontMessage, CTFontUIFontType.kCTFontMessageFontType"; + if (this == kCTFontUIFontPalette) + return "CTFontUIFontType.kCTFontUIFontPalette, CTFontUIFontType.kCTFontPaletteFontType"; + if (this == kCTFontUIFontToolTip) + return "CTFontUIFontType.kCTFontUIFontToolTip, CTFontUIFontType.kCTFontToolTipFontType"; + if (this == kCTFontUIFontControlContent) + return "CTFontUIFontType.kCTFontUIFontControlContent, CTFontUIFontType.kCTFontControlContentFontType"; + return super.toString(); + } +} + +enum CTFramePathFillRule { + kCTFramePathFillEvenOdd(0), + kCTFramePathFillWindingNumber(1); + + final int value; + const CTFramePathFillRule(this.value); + + static CTFramePathFillRule fromValue(int value) => switch (value) { + 0 => kCTFramePathFillEvenOdd, + 1 => kCTFramePathFillWindingNumber, + _ => throw ArgumentError('Unknown value for CTFramePathFillRule: $value'), + }; +} + +enum CTFrameProgression { + kCTFrameProgressionTopToBottom(0), + kCTFrameProgressionRightToLeft(1), + kCTFrameProgressionLeftToRight(2); + + final int value; + const CTFrameProgression(this.value); + + static CTFrameProgression fromValue(int value) => switch (value) { + 0 => kCTFrameProgressionTopToBottom, + 1 => kCTFrameProgressionRightToLeft, + 2 => kCTFrameProgressionLeftToRight, + _ => throw ArgumentError('Unknown value for CTFrameProgression: $value'), + }; +} + +typedef CTFrameRef = ffi.Pointer<__CTFrame>; +typedef CTFramesetterRef = ffi.Pointer<__CTFramesetter>; +typedef CTGlyphInfoRef = ffi.Pointer<__CTGlyphInfo>; + +sealed class CTLineBoundsOptions { + static const kCTLineBoundsExcludeTypographicLeading = 1; + static const kCTLineBoundsExcludeTypographicShifts = 2; + static const kCTLineBoundsUseHangingPunctuation = 4; + static const kCTLineBoundsUseGlyphPathBounds = 8; + static const kCTLineBoundsUseOpticalBounds = 16; + static const kCTLineBoundsIncludeLanguageExtents = 32; +} + +enum CTLineBreakMode { + kCTLineBreakByWordWrapping(0), + kCTLineBreakByCharWrapping(1), + kCTLineBreakByClipping(2), + kCTLineBreakByTruncatingHead(3), + kCTLineBreakByTruncatingTail(4), + kCTLineBreakByTruncatingMiddle(5); + + final int value; + const CTLineBreakMode(this.value); + + static CTLineBreakMode fromValue(int value) => switch (value) { + 0 => kCTLineBreakByWordWrapping, + 1 => kCTLineBreakByCharWrapping, + 2 => kCTLineBreakByClipping, + 3 => kCTLineBreakByTruncatingHead, + 4 => kCTLineBreakByTruncatingTail, + 5 => kCTLineBreakByTruncatingMiddle, + _ => throw ArgumentError('Unknown value for CTLineBreakMode: $value'), + }; +} + +typedef CTLineRef = ffi.Pointer<__CTLine>; + +enum CTLineTruncationType { + kCTLineTruncationStart(0), + kCTLineTruncationEnd(1), + kCTLineTruncationMiddle(2); + + final int value; + const CTLineTruncationType(this.value); + + static CTLineTruncationType fromValue(int value) => switch (value) { + 0 => kCTLineTruncationStart, + 1 => kCTLineTruncationEnd, + 2 => kCTLineTruncationMiddle, + _ => throw ArgumentError('Unknown value for CTLineTruncationType: $value'), + }; +} + +typedef CTMutableFontCollectionRef = ffi.Pointer<__CTFontCollection>; +typedef CTParagraphStyleRef = ffi.Pointer<__CTParagraphStyle>; + +final class CTParagraphStyleSetting extends ffi.Struct { + @ffi.Uint32() + external int specAsInt; + + CTParagraphStyleSpecifier get spec => + CTParagraphStyleSpecifier.fromValue(specAsInt); + set spec(CTParagraphStyleSpecifier value) => specAsInt = value.value; + + @ffi.Size() + external int valueSize; + + external ffi.Pointer value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CTParagraphStyleSpecifier spec, + required int valueSize, + required ffi.Pointer value, + }) => $allocator() + ..ref.spec = spec + ..ref.valueSize = valueSize + ..ref.value = value; +} + +enum CTParagraphStyleSpecifier { + kCTParagraphStyleSpecifierAlignment(0), + kCTParagraphStyleSpecifierFirstLineHeadIndent(1), + kCTParagraphStyleSpecifierHeadIndent(2), + kCTParagraphStyleSpecifierTailIndent(3), + kCTParagraphStyleSpecifierTabStops(4), + kCTParagraphStyleSpecifierDefaultTabInterval(5), + kCTParagraphStyleSpecifierLineBreakMode(6), + kCTParagraphStyleSpecifierLineHeightMultiple(7), + kCTParagraphStyleSpecifierMaximumLineHeight(8), + kCTParagraphStyleSpecifierMinimumLineHeight(9), + kCTParagraphStyleSpecifierLineSpacing(10), + kCTParagraphStyleSpecifierParagraphSpacing(11), + kCTParagraphStyleSpecifierParagraphSpacingBefore(12), + kCTParagraphStyleSpecifierBaseWritingDirection(13), + kCTParagraphStyleSpecifierMaximumLineSpacing(14), + kCTParagraphStyleSpecifierMinimumLineSpacing(15), + kCTParagraphStyleSpecifierLineSpacingAdjustment(16), + kCTParagraphStyleSpecifierLineBoundsOptions(17), + kCTParagraphStyleSpecifierCount(18); + + final int value; + const CTParagraphStyleSpecifier(this.value); + + static CTParagraphStyleSpecifier fromValue(int value) => switch (value) { + 0 => kCTParagraphStyleSpecifierAlignment, + 1 => kCTParagraphStyleSpecifierFirstLineHeadIndent, + 2 => kCTParagraphStyleSpecifierHeadIndent, + 3 => kCTParagraphStyleSpecifierTailIndent, + 4 => kCTParagraphStyleSpecifierTabStops, + 5 => kCTParagraphStyleSpecifierDefaultTabInterval, + 6 => kCTParagraphStyleSpecifierLineBreakMode, + 7 => kCTParagraphStyleSpecifierLineHeightMultiple, + 8 => kCTParagraphStyleSpecifierMaximumLineHeight, + 9 => kCTParagraphStyleSpecifierMinimumLineHeight, + 10 => kCTParagraphStyleSpecifierLineSpacing, + 11 => kCTParagraphStyleSpecifierParagraphSpacing, + 12 => kCTParagraphStyleSpecifierParagraphSpacingBefore, + 13 => kCTParagraphStyleSpecifierBaseWritingDirection, + 14 => kCTParagraphStyleSpecifierMaximumLineSpacing, + 15 => kCTParagraphStyleSpecifierMinimumLineSpacing, + 16 => kCTParagraphStyleSpecifierLineSpacingAdjustment, + 17 => kCTParagraphStyleSpecifierLineBoundsOptions, + 18 => kCTParagraphStyleSpecifierCount, + _ => throw ArgumentError( + 'Unknown value for CTParagraphStyleSpecifier: $value', + ), + }; +} + +enum CTRubyAlignment { + kCTRubyAlignmentInvalid(-1), + kCTRubyAlignmentAuto(0), + kCTRubyAlignmentStart(1), + kCTRubyAlignmentCenter(2), + kCTRubyAlignmentEnd(3), + kCTRubyAlignmentDistributeLetter(4), + kCTRubyAlignmentDistributeSpace(5), + kCTRubyAlignmentLineEdge(6); + + final int value; + const CTRubyAlignment(this.value); + + static CTRubyAlignment fromValue(int value) => switch (value) { + -1 => kCTRubyAlignmentInvalid, + 0 => kCTRubyAlignmentAuto, + 1 => kCTRubyAlignmentStart, + 2 => kCTRubyAlignmentCenter, + 3 => kCTRubyAlignmentEnd, + 4 => kCTRubyAlignmentDistributeLetter, + 5 => kCTRubyAlignmentDistributeSpace, + 6 => kCTRubyAlignmentLineEdge, + _ => throw ArgumentError('Unknown value for CTRubyAlignment: $value'), + }; +} + +typedef CTRubyAnnotationRef = ffi.Pointer<__CTRubyAnnotation>; + +enum CTRubyOverhang { + kCTRubyOverhangInvalid(-1), + kCTRubyOverhangAuto(0), + kCTRubyOverhangStart(1), + kCTRubyOverhangEnd(2), + kCTRubyOverhangNone(3); + + final int value; + const CTRubyOverhang(this.value); + + static CTRubyOverhang fromValue(int value) => switch (value) { + -1 => kCTRubyOverhangInvalid, + 0 => kCTRubyOverhangAuto, + 1 => kCTRubyOverhangStart, + 2 => kCTRubyOverhangEnd, + 3 => kCTRubyOverhangNone, + _ => throw ArgumentError('Unknown value for CTRubyOverhang: $value'), + }; +} + +enum CTRubyPosition { + kCTRubyPositionBefore(0), + kCTRubyPositionAfter(1), + kCTRubyPositionInterCharacter(2), + kCTRubyPositionInline(3), + kCTRubyPositionCount(4); + + final int value; + const CTRubyPosition(this.value); + + static CTRubyPosition fromValue(int value) => switch (value) { + 0 => kCTRubyPositionBefore, + 1 => kCTRubyPositionAfter, + 2 => kCTRubyPositionInterCharacter, + 3 => kCTRubyPositionInline, + 4 => kCTRubyPositionCount, + _ => throw ArgumentError('Unknown value for CTRubyPosition: $value'), + }; +} + +final class CTRunDelegateCallbacks extends ffi.Struct { + @CFIndex() + external int version; + + external CTRunDelegateDeallocateCallback dealloc; + + external CTRunDelegateGetAscentCallback getAscent; + + external CTRunDelegateGetDescentCallback getDescent; + + external CTRunDelegateGetWidthCallback getWidth; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CTRunDelegateDeallocateCallback dealloc, + required CTRunDelegateGetAscentCallback getAscent, + required CTRunDelegateGetDescentCallback getDescent, + required CTRunDelegateGetWidthCallback getWidth, + }) => $allocator() + ..ref.version = version + ..ref.dealloc = dealloc + ..ref.getAscent = getAscent + ..ref.getDescent = getDescent + ..ref.getWidth = getWidth; +} + +typedef CTRunDelegateDeallocateCallback = + ffi.Pointer< + ffi.NativeFunction refCon)> + >; +typedef CTRunDelegateGetAscentCallback = + ffi.Pointer< + ffi.NativeFunction refCon)> + >; +typedef CTRunDelegateGetDescentCallback = + ffi.Pointer< + ffi.NativeFunction refCon)> + >; +typedef CTRunDelegateGetWidthCallback = + ffi.Pointer< + ffi.NativeFunction refCon)> + >; +typedef CTRunDelegateRef = ffi.Pointer<__CTRunDelegate>; +typedef CTRunRef = ffi.Pointer<__CTRun>; + +sealed class CTRunStatus { + static const kCTRunStatusNoStatus = 0; + static const kCTRunStatusRightToLeft = 1; + static const kCTRunStatusNonMonotonic = 2; + static const kCTRunStatusHasNonIdentityMatrix = 4; +} + +enum CTTextAlignment { + kCTTextAlignmentLeft(0), + kCTTextAlignmentRight(1), + kCTTextAlignmentCenter(2), + kCTTextAlignmentJustified(3), + kCTTextAlignmentNatural(4); + + static const kCTLeftTextAlignment = kCTTextAlignmentLeft; + static const kCTRightTextAlignment = kCTTextAlignmentRight; + static const kCTCenterTextAlignment = kCTTextAlignmentCenter; + static const kCTJustifiedTextAlignment = kCTTextAlignmentJustified; + static const kCTNaturalTextAlignment = kCTTextAlignmentNatural; + + final int value; + const CTTextAlignment(this.value); + + static CTTextAlignment fromValue(int value) => switch (value) { + 0 => kCTTextAlignmentLeft, + 1 => kCTTextAlignmentRight, + 2 => kCTTextAlignmentCenter, + 3 => kCTTextAlignmentJustified, + 4 => kCTTextAlignmentNatural, + _ => throw ArgumentError('Unknown value for CTTextAlignment: $value'), + }; + + @override + String toString() { + if (this == kCTTextAlignmentLeft) + return "CTTextAlignment.kCTTextAlignmentLeft, CTTextAlignment.kCTLeftTextAlignment"; + if (this == kCTTextAlignmentRight) + return "CTTextAlignment.kCTTextAlignmentRight, CTTextAlignment.kCTRightTextAlignment"; + if (this == kCTTextAlignmentCenter) + return "CTTextAlignment.kCTTextAlignmentCenter, CTTextAlignment.kCTCenterTextAlignment"; + if (this == kCTTextAlignmentJustified) + return "CTTextAlignment.kCTTextAlignmentJustified, CTTextAlignment.kCTJustifiedTextAlignment"; + if (this == kCTTextAlignmentNatural) + return "CTTextAlignment.kCTTextAlignmentNatural, CTTextAlignment.kCTNaturalTextAlignment"; + return super.toString(); + } +} + +typedef CTTextTabRef = ffi.Pointer<__CTTextTab>; +typedef CTTypesetterRef = ffi.Pointer<__CTTypesetter>; + +sealed class CTUnderlineStyle { + static const kCTUnderlineStyleNone = 0; + static const kCTUnderlineStyleSingle = 1; + static const kCTUnderlineStyleThick = 2; + static const kCTUnderlineStyleDouble = 9; +} + +sealed class CTUnderlineStyleModifiers { + static const kCTUnderlinePatternSolid = 0; + static const kCTUnderlinePatternDot = 256; + static const kCTUnderlinePatternDash = 512; + static const kCTUnderlinePatternDashDot = 768; + static const kCTUnderlinePatternDashDotDot = 1024; +} + +enum CTWritingDirection { + kCTWritingDirectionNatural(-1), + kCTWritingDirectionLeftToRight(0), + kCTWritingDirectionRightToLeft(1); + + final int value; + const CTWritingDirection(this.value); + + static CTWritingDirection fromValue(int value) => switch (value) { + -1 => kCTWritingDirectionNatural, + 0 => kCTWritingDirectionLeftToRight, + 1 => kCTWritingDirectionRightToLeft, + _ => throw ArgumentError('Unknown value for CTWritingDirection: $value'), + }; +} + +typedef CTabHandle = ffi.Pointer; +typedef CTabPtr = ffi.Pointer; + +enum CVAttachmentMode { + kCVAttachmentMode_ShouldNotPropagate(0), + kCVAttachmentMode_ShouldPropagate(1); + + final int value; + const CVAttachmentMode(this.value); + + static CVAttachmentMode fromValue(int value) => switch (value) { + 0 => kCVAttachmentMode_ShouldNotPropagate, + 1 => kCVAttachmentMode_ShouldPropagate, + _ => throw ArgumentError('Unknown value for CVAttachmentMode: $value'), + }; +} + +typedef CVBufferRef = ffi.Pointer<__CVBuffer>; +typedef CVDisplayLinkOutputCallback = + ffi.Pointer< + ffi.NativeFunction< + CVReturn Function( + CVDisplayLinkRef displayLink, + ffi.Pointer inNow, + ffi.Pointer inOutputTime, + CVOptionFlags flagsIn, + ffi.Pointer flagsOut, + ffi.Pointer displayLinkContext, + ) + > + >; +typedef CVDisplayLinkOutputHandler = ffi.Pointer; +typedef DartCVDisplayLinkOutputHandler = + objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + >; +typedef CVDisplayLinkRef = ffi.Pointer<__CVDisplayLink>; +typedef CVFillExtendedPixelsCallBack = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + CVPixelBufferRef pixelBuffer, + ffi.Pointer refCon, + ) + > + >; + +final class CVFillExtendedPixelsCallBackData extends ffi.Struct { + @CFIndex() + external int version; + + external CVFillExtendedPixelsCallBack fillCallBack; + + external ffi.Pointer refCon; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required CVFillExtendedPixelsCallBack fillCallBack, + required ffi.Pointer refCon, + }) => $allocator() + ..ref.version = version + ..ref.fillCallBack = fillCallBack + ..ref.refCon = refCon; +} + +typedef CVImageBufferRef = CVBufferRef; +typedef CVMetalBufferCacheRef = ffi.Pointer<__CVMetalBufferCache>; +typedef CVMetalBufferRef = CVBufferRef; +typedef CVMetalTextureCacheRef = ffi.Pointer<__CVMetalTextureCache>; +typedef CVMetalTextureRef = CVImageBufferRef; +typedef CVOpenGLBufferPoolRef = ffi.Pointer<__CVOpenGLBufferPool>; +typedef CVOpenGLBufferRef = CVImageBufferRef; +typedef CVOpenGLTextureCacheRef = ffi.Pointer<__CVOpenGLTextureCache>; +typedef CVOpenGLTextureRef = CVImageBufferRef; +typedef CVOptionFlags = ffi.Uint64; +typedef DartCVOptionFlags = int; + +sealed class CVPixelBufferLockFlags { + static const kCVPixelBufferLock_ReadOnly = 1; +} + +sealed class CVPixelBufferPoolFlushFlags { + static const kCVPixelBufferPoolFlushExcessBuffers = 1; +} + +typedef CVPixelBufferPoolRef = ffi.Pointer<__CVPixelBufferPool>; +typedef CVPixelBufferRef = CVImageBufferRef; +typedef CVPixelBufferReleaseBytesCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer releaseRefCon, + ffi.Pointer baseAddress, + ) + > + >; +typedef CVPixelBufferReleasePlanarBytesCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer releaseRefCon, + ffi.Pointer dataPtr, + ffi.Size dataSize, + ffi.Size numberOfPlanes, + ffi.Pointer> planeAddresses, + ) + > + >; + +final class CVPlanarComponentInfo extends ffi.Struct { + @ffi.Int32() + external int offset; + + @ffi.Uint32() + external int rowBytes; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int rowBytes, + }) => $allocator() + ..ref.offset = offset + ..ref.rowBytes = rowBytes; +} + +final class CVPlanarPixelBufferInfo extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array componentInfo; +} + +final class CVPlanarPixelBufferInfo_YCbCrBiPlanar extends ffi.Struct { + external CVPlanarComponentInfo componentInfoY; + + external CVPlanarComponentInfo componentInfoCbCr; +} + +final class CVPlanarPixelBufferInfo_YCbCrPlanar extends ffi.Struct { + external CVPlanarComponentInfo componentInfoY; + + external CVPlanarComponentInfo componentInfoCb; + + external CVPlanarComponentInfo componentInfoCr; +} + +typedef CVReturn = ffi.Int32; +typedef DartCVReturn = int; + +final class CVSMPTETime extends ffi.Struct { + @SInt16() + external int subframes; + + @SInt16() + external int subframeDivisor; + + @UInt32() + external int counter; + + @UInt32() + external int type; + + @UInt32() + external int flags; + + @SInt16() + external int hours; + + @SInt16() + external int minutes; + + @SInt16() + external int seconds; + + @SInt16() + external int frames; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int subframes, + required int subframeDivisor, + required int counter, + required int type, + required int flags, + required int hours, + required int minutes, + required int seconds, + required int frames, + }) => $allocator() + ..ref.subframes = subframes + ..ref.subframeDivisor = subframeDivisor + ..ref.counter = counter + ..ref.type = type + ..ref.flags = flags + ..ref.hours = hours + ..ref.minutes = minutes + ..ref.seconds = seconds + ..ref.frames = frames; +} + +sealed class CVSMPTETimeFlags { + static const kCVSMPTETimeValid = 1; + static const kCVSMPTETimeRunning = 2; +} + +enum CVSMPTETimeType { + kCVSMPTETimeType24(0), + kCVSMPTETimeType25(1), + kCVSMPTETimeType30Drop(2), + kCVSMPTETimeType30(3), + kCVSMPTETimeType2997(4), + kCVSMPTETimeType2997Drop(5), + kCVSMPTETimeType60(6), + kCVSMPTETimeType5994(7); + + final int value; + const CVSMPTETimeType(this.value); + + static CVSMPTETimeType fromValue(int value) => switch (value) { + 0 => kCVSMPTETimeType24, + 1 => kCVSMPTETimeType25, + 2 => kCVSMPTETimeType30Drop, + 3 => kCVSMPTETimeType30, + 4 => kCVSMPTETimeType2997, + 5 => kCVSMPTETimeType2997Drop, + 6 => kCVSMPTETimeType60, + 7 => kCVSMPTETimeType5994, + _ => throw ArgumentError('Unknown value for CVSMPTETimeType: $value'), + }; +} + +final class CVTime extends ffi.Struct { + @ffi.Int64() + external int timeValue; + + @ffi.Int32() + external int timeScale; + + @ffi.Int32() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int timeValue, + required int timeScale, + required int flags, + }) => $allocator() + ..ref.timeValue = timeValue + ..ref.timeScale = timeScale + ..ref.flags = flags; +} + +sealed class CVTimeFlags { + static const kCVTimeIsIndefinite = 1; +} + +final class CVTimeStamp extends ffi.Struct { + @ffi.Uint32() + external int version; + + @ffi.Int32() + external int videoTimeScale; + + @ffi.Int64() + external int videoTime; + + @ffi.Uint64() + external int hostTime; + + @ffi.Double() + external double rateScalar; + + @ffi.Int64() + external int videoRefreshPeriod; + + external CVSMPTETime smpteTime; + + @ffi.Uint64() + external int flags; + + @ffi.Uint64() + external int reserved; +} + +sealed class CVTimeStampFlags { + static const kCVTimeStampVideoTimeValid = 1; + static const kCVTimeStampHostTimeValid = 2; + static const kCVTimeStampSMPTETimeValid = 4; + static const kCVTimeStampVideoRefreshPeriodValid = 8; + static const kCVTimeStampRateScalarValid = 16; + static const kCVTimeStampTopField = 65536; + static const kCVTimeStampBottomField = 131072; + static const kCVTimeStampVideoHostTimeValid = 3; + static const kCVTimeStampIsInterlaced = 196608; +} + +typedef CallingConventionType = ffi.UnsignedShort; +typedef DartCallingConventionType = int; + +const int CantDecompress = -186; + +@ffi.Packed(2) +final class CatPositionRec extends ffi.Struct { + @SInt32() + external int initialize; + + @ffi.Array.multi([6]) + external ffi.Array priv; +} + +typedef CharParameter = ffi.Short; +typedef DartCharParameter = int; + +@ffi.Packed(2) +final class ChunkHeader extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ckID, + required int ckSize, + }) => $allocator() + ..ref.ckID = ckID + ..ref.ckSize = ckSize; +} + +typedef CollatorRef = ffi.Pointer; +typedef Collection = ffi.Pointer; +typedef CollectionExceptionProcPtr = + ffi.Pointer>; +typedef CollectionExceptionUPP = CollectionExceptionProcPtr; +typedef CollectionFlattenProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + SInt32 size, + ffi.Pointer data, + ffi.Pointer refCon, + ) + > + >; +typedef CollectionFlattenUPP = CollectionFlattenProcPtr; +typedef CollectionTag = FourCharCode; +typedef ColorComplementProcPtr = + ffi.Pointer< + ffi.NativeFunction rgb)> + >; +typedef ColorComplementUPP = ColorComplementProcPtr; +typedef ColorSearchProcPtr = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ffi.Pointer rgb, + ffi.Pointer position, + ) + > + >; +typedef ColorSearchUPP = ColorSearchProcPtr; + +final class ColorSpec extends ffi.Struct { + @ffi.Short() + external int value; + + external RGBColor rgb; +} + +typedef ColorSpecPtr = ffi.Pointer; + +enum ColorSyncAlphaInfo { + kColorSyncAlphaNone(0), + kColorSyncAlphaPremultipliedLast(1), + kColorSyncAlphaPremultipliedFirst(2), + kColorSyncAlphaLast(3), + kColorSyncAlphaFirst(4), + kColorSyncAlphaNoneSkipLast(5), + kColorSyncAlphaNoneSkipFirst(6); + + final int value; + const ColorSyncAlphaInfo(this.value); + + static ColorSyncAlphaInfo fromValue(int value) => switch (value) { + 0 => kColorSyncAlphaNone, + 1 => kColorSyncAlphaPremultipliedLast, + 2 => kColorSyncAlphaPremultipliedFirst, + 3 => kColorSyncAlphaLast, + 4 => kColorSyncAlphaFirst, + 5 => kColorSyncAlphaNoneSkipLast, + 6 => kColorSyncAlphaNoneSkipFirst, + _ => throw ArgumentError('Unknown value for ColorSyncAlphaInfo: $value'), + }; +} + +final class ColorSyncCMM extends ffi.Opaque {} + +typedef ColorSyncCMMIterateCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ColorSyncCMMRef cmm, ffi.Pointer userInfo) + > + >; +typedef ColorSyncCMMRef = ffi.Pointer; + +enum ColorSyncDataDepth { + kColorSync1BitGamut(1), + kColorSync8BitInteger(2), + kColorSync16BitInteger(3), + kColorSync16BitFloat(4), + kColorSync32BitInteger(5), + kColorSync32BitNamedColorIndex(6), + kColorSync32BitFloat(7), + kColorSync10BitInteger(8); + + final int value; + const ColorSyncDataDepth(this.value); + + static ColorSyncDataDepth fromValue(int value) => switch (value) { + 1 => kColorSync1BitGamut, + 2 => kColorSync8BitInteger, + 3 => kColorSync16BitInteger, + 4 => kColorSync16BitFloat, + 5 => kColorSync32BitInteger, + 6 => kColorSync32BitNamedColorIndex, + 7 => kColorSync32BitFloat, + 8 => kColorSync10BitInteger, + _ => throw ArgumentError('Unknown value for ColorSyncDataDepth: $value'), + }; +} + +typedef ColorSyncDataLayout = ffi.Uint32; +typedef DartColorSyncDataLayout = int; +typedef ColorSyncDeviceProfileIterateCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + CFDictionaryRef colorSyncDeviceProfileInfo, + ffi.Pointer userInfo, + ) + > + >; + +final class ColorSyncMD5 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array digest; +} + +typedef ColorSyncMutableProfileRef = ffi.Pointer; + +final class ColorSyncProfile extends ffi.Opaque {} + +typedef ColorSyncProfileIterateCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + CFDictionaryRef profileInfo, + ffi.Pointer userInfo, + ) + > + >; +typedef ColorSyncProfileRef = ffi.Pointer; + +final class ColorSyncTransform extends ffi.Opaque {} + +typedef ColorSyncTransformRef = ffi.Pointer; + +@ffi.Packed(2) +final class ColorTable extends ffi.Struct { + @SInt32() + external int ctSeed; + + @ffi.Short() + external int ctFlags; + + @ffi.Short() + external int ctSize; + + @ffi.Array.multi([1]) + external ffi.Array ctTable; +} + +@ffi.Packed(2) +final class Comment extends ffi.Struct { + @UInt32() + external int timeStamp; + + @MarkerIdType() + external int marker; + + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array text; +} + +const int CommentID = 1129270612; + +@ffi.Packed(2) +final class CommentsChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt16() + external int numComments; + + @ffi.Array.multi([1]) + external ffi.Array comments; +} + +typedef CommentsChunkPtr = ffi.Pointer; + +@ffi.Packed(2) +final class CommonChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @SInt16() + external int numChannels; + + @UInt32() + external int numSampleFrames; + + @SInt16() + external int sampleSize; + + external extended80 sampleRate; +} + +typedef CommonChunkPtr = ffi.Pointer; + +const int CommonID = 1129270605; + +typedef CompTimeValue = wide; +typedef Component = ffi.Pointer; + +final class ComponentAliasResource extends ffi.Struct { + external ComponentResource cr; + + external ComponentDescription aliasCD; +} + +@ffi.Packed(2) +final class ComponentDescription extends ffi.Struct { + @OSType() + external int componentType; + + @OSType() + external int componentSubType; + + @OSType() + external int componentManufacturer; + + @UInt32() + external int componentFlags; + + @UInt32() + external int componentFlagsMask; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int componentType, + required int componentSubType, + required int componentManufacturer, + required int componentFlags, + required int componentFlagsMask, + }) => $allocator() + ..ref.componentType = componentType + ..ref.componentSubType = componentSubType + ..ref.componentManufacturer = componentManufacturer + ..ref.componentFlags = componentFlags + ..ref.componentFlagsMask = componentFlagsMask; +} + +typedef ComponentFunctionUPP = UniversalProcPtr; +typedef ComponentInstance = ffi.Pointer; + +@ffi.Packed(2) +final class ComponentInstanceRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +@ffi.Packed(2) +final class ComponentMPWorkFunctionHeaderRecord extends ffi.Struct { + @UInt32() + external int headerSize; + + @UInt32() + external int recordSize; + + @UInt32() + external int workFlags; + + @UInt16() + external int processorCount; + + @UInt8() + external int unused; + + @UInt8() + external int isRunning; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int headerSize, + required int recordSize, + required int workFlags, + required int processorCount, + required int unused, + required int isRunning, + }) => $allocator() + ..ref.headerSize = headerSize + ..ref.recordSize = recordSize + ..ref.workFlags = workFlags + ..ref.processorCount = processorCount + ..ref.unused = unused + ..ref.isRunning = isRunning; +} + +typedef ComponentMPWorkFunctionHeaderRecordPtr = + ffi.Pointer; +typedef ComponentMPWorkFunctionProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ComponentResult Function( + ffi.Pointer globalRefCon, + ComponentMPWorkFunctionHeaderRecordPtr header, + ) + > + >; +typedef ComponentMPWorkFunctionUPP = ComponentMPWorkFunctionProcPtr; + +@ffi.Packed(2) +final class ComponentParameters extends ffi.Struct { + @UInt8() + external int flags; + + @UInt8() + external int paramSize; + + @SInt16() + external int what; + + @UInt32() + external int padding; + + @ffi.Array.multi([1]) + external ffi.Array params; +} + +@ffi.Packed(2) +final class ComponentPlatformInfo extends ffi.Struct { + @SInt32() + external int componentFlags; + + external ResourceSpec component; + + @SInt16() + external int platformType; +} + +@ffi.Packed(2) +final class ComponentPlatformInfoArray extends ffi.Struct { + @SInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array platformArray; +} + +@ffi.Packed(2) +final class ComponentRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +final class ComponentResource extends ffi.Struct { + external ComponentDescription cd; + + external ResourceSpec component; + + external ResourceSpec componentName; + + external ResourceSpec componentInfo; + + external ResourceSpec componentIcon; +} + +@ffi.Packed(2) +final class ComponentResourceExtension extends ffi.Struct { + @SInt32() + external int componentVersion; + + @SInt32() + external int componentRegisterFlags; + + @SInt16() + external int componentIconFamily; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int componentVersion, + required int componentRegisterFlags, + required int componentIconFamily, + }) => $allocator() + ..ref.componentVersion = componentVersion + ..ref.componentRegisterFlags = componentRegisterFlags + ..ref.componentIconFamily = componentIconFamily; +} + +typedef ComponentResourceHandle = ffi.Pointer; +typedef ComponentResourcePtr = ffi.Pointer; +typedef ComponentResult = SInt32; +typedef ComponentRoutineProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ComponentResult Function( + ffi.Pointer cp, + Handle componentStorage, + ) + > + >; +typedef ComponentRoutineUPP = ComponentRoutineProcPtr; +typedef ConstATSUAttributeValuePtr = ffi.Pointer; +typedef ConstFSEventStreamRef = ffi.Pointer<__FSEventStream>; +typedef ConstFSSpecPtr = ffi.Pointer; +typedef ConstHFSUniStr255Param = ffi.Pointer; +typedef ConstLogicalAddress = ffi.Pointer; +typedef ConstScriptCodeRunPtr = ffi.Pointer; +typedef ConstStr15Param = ffi.Pointer; +typedef ConstStr255Param = ffi.Pointer; +typedef ConstStr27Param = ffi.Pointer; +typedef ConstStr31Param = ffi.Pointer; +typedef ConstStr32Param = ffi.Pointer; +typedef ConstStr63Param = ffi.Pointer; +typedef ConstStrFileNameParam = ConstStr63Param; +typedef ConstStringPtr = ffi.Pointer; +typedef ConstTextEncodingRunPtr = ffi.Pointer; +typedef ConstTextPtr = ffi.Pointer; +typedef ConstTextToUnicodeInfo = TextToUnicodeInfo; +typedef ConstUniCharArrayPtr = ffi.Pointer; +typedef ConstUnicodeMappingPtr = ffi.Pointer; +typedef ConstUnicodeToTextInfo = UnicodeToTextInfo; + +@ffi.Packed(2) +final class ContainerChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt32() + external int formType; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ckID, + required int ckSize, + required int formType, + }) => $allocator() + ..ref.ckID = ckID + ..ref.ckSize = ckSize + ..ref.formType = formType; +} + +const int CopyrightID = 677587232; + +typedef CoreEndianFlipProc = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + OSType dataDomain, + OSType dataType, + SInt16 id, + ffi.Pointer dataPtr, + ByteCount dataSize, + Boolean currentlyNative, + ffi.Pointer refcon, + ) + > + >; + +@ffi.Packed(2) +final class CustomBadgeResource extends ffi.Struct { + @SInt16() + external int version; + + @SInt16() + external int customBadgeResourceID; + + @OSType() + external int customBadgeType; + + @OSType() + external int customBadgeCreator; + + @OSType() + external int windowBadgeType; + + @OSType() + external int windowBadgeCreator; + + @OSType() + external int overrideType; + + @OSType() + external int overrideCreator; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int customBadgeResourceID, + required int customBadgeType, + required int customBadgeCreator, + required int windowBadgeType, + required int windowBadgeCreator, + required int overrideType, + required int overrideCreator, + }) => $allocator() + ..ref.version = version + ..ref.customBadgeResourceID = customBadgeResourceID + ..ref.customBadgeType = customBadgeType + ..ref.customBadgeCreator = customBadgeCreator + ..ref.windowBadgeType = windowBadgeType + ..ref.windowBadgeCreator = windowBadgeCreator + ..ref.overrideType = overrideType + ..ref.overrideCreator = overrideCreator; +} + +typedef CustomBadgeResourceHandle = ffi.Pointer; +typedef CustomBadgeResourcePtr = ffi.Pointer; +typedef DAApprovalSessionRef = ffi.Pointer<__DASession>; +typedef DADiskRef = ffi.Pointer<__DADisk>; +typedef DASessionRef = ffi.Pointer<__DASession>; +typedef DCSDictionaryRef = ffi.Pointer<__DCSDictionary>; +typedef DERByte = ffi.Uint8; +typedef DartDERByte = int; +typedef DERInt = ffi.Uint32; +typedef DartDERInt = int; + +final class DERItem extends ffi.Struct { + external ffi.Pointer data; + + @DERSize() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer data, + required int length, + }) => $allocator() + ..ref.data = data + ..ref.length = length; +} + +typedef DERLong = ffi.Uint64; +typedef DartDERLong = int; +typedef DERShort = ffi.Uint16; +typedef DartDERShort = int; +typedef DERSignedInt = ffi.Int32; +typedef DartDERSignedInt = int; +typedef DERSignedLong = ffi.Int64; +typedef DartDERSignedLong = int; +typedef DERSize = ffi.Size; +typedef DartDERSize = int; +typedef DERTag = DERLong; + +const int DISPATCH_WALLTIME_NOW = -2; + +final class DInfo extends ffi.Struct { + external Rect frRect; + + @UInt16() + external int frFlags; + + external Point frLocation; + + @SInt16() + external int frView; +} + +@ffi.Packed(2) +final class DXInfo extends ffi.Struct { + external Point frScroll; + + @SInt32() + external int frOpenChain; + + @SInt8() + external int frScript; + + @SInt8() + external int frXFlags; + + @SInt16() + external int frComment; + + @SInt32() + external int frPutAway; +} + +typedef DateCachePtr = ffi.Pointer; + +final class DateCacheRecord extends ffi.Struct { + @ffi.Array.multi([256]) + external ffi.Array hidden; +} + +typedef DateDelta = SInt8; +typedef DateForm = SInt8; +typedef DateOrders = SInt8; + +final class DateTimeRec extends ffi.Struct { + @ffi.Short() + external int year; + + @ffi.Short() + external int month; + + @ffi.Short() + external int day; + + @ffi.Short() + external int hour; + + @ffi.Short() + external int minute; + + @ffi.Short() + external int second; + + @ffi.Short() + external int dayOfWeek; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int year, + required int month, + required int day, + required int hour, + required int minute, + required int second, + required int dayOfWeek, + }) => $allocator() + ..ref.year = year + ..ref.month = month + ..ref.day = day + ..ref.hour = hour + ..ref.minute = minute + ..ref.second = second + ..ref.dayOfWeek = dayOfWeek; +} + +typedef DebugAssertOutputHandlerProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + OSType componentSignature, + UInt32 options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + ffi.Long lineNumber, + ffi.Pointer value, + ConstStr255Param outputMsg, + ) + > + >; +typedef DebugAssertOutputHandlerUPP = DebugAssertOutputHandlerProcPtr; +typedef DebugComponentCallbackProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + SInt32 optionSelectorNum, + UInt32 command, + ffi.Pointer optionSetting, + ) + > + >; +typedef DebugComponentCallbackUPP = DebugComponentCallbackProcPtr; +typedef DebuggerDisposeThreadProcPtr = + ffi.Pointer>; +typedef DebuggerDisposeThreadTPP = DebuggerDisposeThreadUPP; +typedef DebuggerDisposeThreadUPP = DebuggerDisposeThreadProcPtr; +typedef DebuggerNewThreadProcPtr = + ffi.Pointer>; +typedef DebuggerNewThreadTPP = DebuggerNewThreadUPP; +typedef DebuggerNewThreadUPP = DebuggerNewThreadProcPtr; +typedef DebuggerThreadSchedulerProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef DebuggerThreadSchedulerTPP = DebuggerThreadSchedulerUPP; +typedef DebuggerThreadSchedulerUPP = DebuggerThreadSchedulerProcPtr; + +final class DeferredTask extends ffi.Opaque {} + +typedef DeferredTaskProcPtr = + ffi.Pointer>; +typedef DeferredTaskPtr = ffi.Pointer; +typedef DeferredTaskUPP = DeferredTaskProcPtr; + +final class DelimiterInfo extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array startDelimiter; + + @ffi.Array.multi([2]) + external ffi.Array endDelimiter; +} + +typedef DescType = ResType; +typedef DialogPtr = ffi.Pointer; +typedef DragConstraint = UInt16; +typedef DragGrayRgnProcPtr = + ffi.Pointer>; +typedef DragGrayRgnUPP = DragGrayRgnProcPtr; +typedef Duration = SInt32; + +const int EQUALTO = 2; + +enum EvCmd { + EVNOP(0), + EVHIDE(1), + EVSHOW(2), + EVMOVE(3), + EVLEVEL(4); + + final int value; + const EvCmd(this.value); + + static EvCmd fromValue(int value) => switch (value) { + 0 => EVNOP, + 1 => EVHIDE, + 2 => EVSHOW, + 3 => EVMOVE, + 4 => EVLEVEL, + _ => throw ArgumentError('Unknown value for EvCmd: $value'), + }; +} + +typedef ExceptionHandler = ExceptionHandlerTPP; +typedef ExceptionHandlerProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function(ffi.Pointer theException) + > + >; +typedef ExceptionHandlerTPP = ExceptionHandlerUPP; +typedef ExceptionHandlerUPP = ExceptionHandlerProcPtr; + +final class ExceptionInfo extends ffi.Union { + external ffi.Pointer memoryInfo; +} + +final class ExceptionInformation extends ffi.Struct { + @ExceptionKind() + external int theKind; + + external ffi.Pointer machineState; + + external ffi.Pointer registerImage; + + external ffi.Pointer FPUImage; + + external ExceptionInfo info; + + external ffi.Pointer vectorImage; +} + +final class ExceptionInformationPowerPC extends ffi.Struct { + @ExceptionKind() + external int theKind; + + external ffi.Pointer machineState; + + external ffi.Pointer registerImage; + + external ffi.Pointer FPUImage; + + external ExceptionInfo info; + + external ffi.Pointer vectorImage; +} + +typedef ExceptionKind = ffi.UnsignedLong; +typedef DartExceptionKind = int; + +@ffi.Packed(2) +final class ExtCommonChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @SInt16() + external int numChannels; + + @UInt32() + external int numSampleFrames; + + @SInt16() + external int sampleSize; + + external extended80 sampleRate; + + @UInt32() + external int compressionType; + + @ffi.Array.multi([1]) + external ffi.Array compressionName; +} + +typedef ExtCommonChunkPtr = ffi.Pointer; + +@ffi.Packed(2) +final class ExtComponentResource extends ffi.Struct { + external ComponentDescription cd; + + external ResourceSpec component; + + external ResourceSpec componentName; + + external ResourceSpec componentInfo; + + external ResourceSpec componentIcon; + + @SInt32() + external int componentVersion; + + @SInt32() + external int componentRegisterFlags; + + @SInt16() + external int componentIconFamily; + + @SInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array platformArray; +} + +typedef ExtComponentResourceHandle = ffi.Pointer; +typedef ExtComponentResourcePtr = ffi.Pointer; + +@ffi.Packed(2) +final class ExtendedFileInfo extends ffi.Struct { + @ffi.Array.multi([4]) + external ffi.Array reserved1; + + @UInt16() + external int extendedFinderFlags; + + @SInt16() + external int reserved2; + + @SInt32() + external int putAwayFolderID; +} + +@ffi.Packed(2) +final class ExtendedFolderInfo extends ffi.Struct { + external Point scrollPosition; + + @SInt32() + external int reserved1; + + @UInt16() + external int extendedFinderFlags; + + @SInt16() + external int reserved2; + + @SInt32() + external int putAwayFolderID; +} + +typedef FILE = __sFILE; + +@ffi.Packed(2) +final class FInfo extends ffi.Struct { + @OSType() + external int fdType; + + @OSType() + external int fdCreator; + + @UInt16() + external int fdFlags; + + external Point fdLocation; + + @SInt16() + external int fdFldr; +} + +typedef FMFilterSelector = UInt32; +typedef FMFont = UInt32; +typedef FMFontFamily = SInt16; + +final class FMFontFamilyInstance extends ffi.Struct { + @FMFontFamily() + external int fontFamily; + + @FMFontStyle() + external int fontStyle; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fontFamily, + required int fontStyle, + }) => $allocator() + ..ref.fontFamily = fontFamily + ..ref.fontStyle = fontStyle; +} + +@ffi.Packed(2) +final class FMFontFamilyInstanceIterator extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array reserved; +} + +@ffi.Packed(2) +final class FMFontFamilyIterator extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array reserved; +} + +@ffi.Packed(2) +final class FMFontIterator extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array reserved; +} + +typedef FMFontSize = SInt16; +typedef FMFontStyle = SInt16; +typedef FMGeneration = UInt32; + +final class FMInput extends ffi.Struct { + @ffi.Short() + external int family; + + @ffi.Short() + external int size; + + @Style() + external int face; + + @Boolean() + external int needBits; + + @ffi.Short() + external int device; + + external Point numer; + + external Point denom; +} + +typedef FNMessage = UInt32; +typedef FNSubscriptionProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + FNMessage message, + OptionBits flags, + ffi.Pointer refcon, + FNSubscriptionRef subscription, + ) + > + >; +typedef FNSubscriptionRef = ffi.Pointer; +typedef FNSubscriptionUPP = FNSubscriptionProcPtr; + +const int FORMID = 1179603533; + +final class FPUInformation extends ffi.Struct { + external ffi.Pointer __unusedFPUInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedFPUInformationField, + }) => + $allocator() + ..ref.__unusedFPUInformationField = $unusedFPUInformationField; +} + +final class FPUInformationPowerPC extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array Registers; + + @ffi.UnsignedLong() + external int FPSCR; + + @ffi.UnsignedLong() + external int Reserved; +} + +typedef FSAliasFilterProcPtr = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + Ptr myDataPtr, + ) + > + >; + +@ffi.Packed(2) +final class FSAliasInfo extends ffi.Struct { + external UTCDateTime volumeCreateDate; + + external UTCDateTime targetCreateDate; + + @OSType() + external int fileType; + + @OSType() + external int fileCreator; + + @UInt32() + external int parentDirID; + + @UInt32() + external int nodeID; + + @UInt16() + external int filesystemID; + + @UInt16() + external int signature; + + @Boolean() + external int volumeIsBootVolume; + + @Boolean() + external int volumeIsAutomounted; + + @Boolean() + external int volumeIsEjectable; + + @Boolean() + external int volumeHasPersistentFileIDs; + + @Boolean() + external int isDirectory; +} + +typedef FSAliasInfoBitmap = UInt32; +typedef FSAliasInfoPtr = ffi.Pointer; +typedef FSAllocationFlags = UInt16; + +@ffi.Packed(2) +final class FSCatalogBulkParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + @Boolean() + external int containerChanged; + + @UInt8() + external int reserved; + + @FSIteratorFlags() + external int iteratorFlags; + + external FSIterator iterator; + + external ffi.Pointer container; + + @ItemCount() + external int maximumItems; + + @ItemCount() + external int actualItems; + + @FSCatalogInfoBitmap() + external int whichInfo; + + external ffi.Pointer catalogInfo; + + external ffi.Pointer refs; + + external FSSpecPtr specs; + + external ffi.Pointer names; + + external ffi.Pointer searchParams; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required int containerChanged, + required int reserved, + required int iteratorFlags, + required FSIterator iterator, + required ffi.Pointer container, + required int maximumItems, + required int actualItems, + required int whichInfo, + required ffi.Pointer catalogInfo, + required ffi.Pointer refs, + required FSSpecPtr specs, + required ffi.Pointer names, + required ffi.Pointer searchParams, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.containerChanged = containerChanged + ..ref.reserved = reserved + ..ref.iteratorFlags = iteratorFlags + ..ref.iterator = iterator + ..ref.container = container + ..ref.maximumItems = maximumItems + ..ref.actualItems = actualItems + ..ref.whichInfo = whichInfo + ..ref.catalogInfo = catalogInfo + ..ref.refs = refs + ..ref.specs = specs + ..ref.names = names + ..ref.searchParams = searchParams; +} + +typedef FSCatalogBulkParamPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FSCatalogInfo extends ffi.Struct { + @UInt16() + external int nodeFlags; + + @FSVolumeRefNum() + external int volume; + + @UInt32() + external int parentDirID; + + @UInt32() + external int nodeID; + + @UInt8() + external int sharingFlags; + + @UInt8() + external int userPrivileges; + + @UInt8() + external int reserved1; + + @UInt8() + external int reserved2; + + external UTCDateTime createDate; + + external UTCDateTime contentModDate; + + external UTCDateTime attributeModDate; + + external UTCDateTime accessDate; + + external UTCDateTime backupDate; + + external FSPermissionInfo permissions; + + @ffi.Array.multi([16]) + external ffi.Array finderInfo; + + @ffi.Array.multi([16]) + external ffi.Array extFinderInfo; + + @UInt64() + external int dataLogicalSize; + + @UInt64() + external int dataPhysicalSize; + + @UInt64() + external int rsrcLogicalSize; + + @UInt64() + external int rsrcPhysicalSize; + + @UInt32() + external int valence; + + @TextEncoding() + external int textEncodingHint; +} + +typedef FSCatalogInfoBitmap = UInt32; +typedef FSCatalogInfoPtr = ffi.Pointer; +typedef FSEjectStatus = UInt32; +typedef FSEventStreamCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ConstFSEventStreamRef streamRef, + ffi.Pointer clientCallBackInfo, + ffi.Size numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ) + > + >; + +@ffi.Packed(2) +final class FSEventStreamContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef FSEventStreamCreateFlags = UInt32; +typedef FSEventStreamEventFlags = UInt32; +typedef FSEventStreamEventId = UInt64; +typedef FSEventStreamRef = ffi.Pointer<__FSEventStream>; + +@ffi.Packed(2) +final class FSFileOperationClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external CFAllocatorRetainCallBack retain; + + external CFAllocatorReleaseCallBack release; + + external CFAllocatorCopyDescriptionCallBack copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required CFAllocatorRetainCallBack retain, + required CFAllocatorReleaseCallBack release, + required CFAllocatorCopyDescriptionCallBack copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef FSFileOperationRef = ffi.Pointer<__FSFileOperation>; +typedef FSFileOperationStage = UInt32; +typedef FSFileOperationStatusProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + FSFileOperationRef fileOp, + ffi.Pointer currentItem, + FSFileOperationStage stage, + OSStatus error, + CFDictionaryRef statusDictionary, + ffi.Pointer info, + ) + > + >; +typedef FSFileSecurityRef = ffi.Pointer<__FSFileSecurity>; + +@ffi.Packed(2) +final class FSForkCBInfoParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + @FSIORefNum() + external int desiredRefNum; + + @FSVolumeRefNum() + external int volumeRefNum; + + @FSIORefNum() + external int iterator; + + @FSVolumeRefNum() + external int actualRefNum; + + external ffi.Pointer ref; + + external ffi.Pointer forkInfo; + + external ffi.Pointer forkName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required int desiredRefNum, + required int volumeRefNum, + required int iterator, + required int actualRefNum, + required ffi.Pointer ref, + required ffi.Pointer forkInfo, + required ffi.Pointer forkName, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.desiredRefNum = desiredRefNum + ..ref.volumeRefNum = volumeRefNum + ..ref.iterator = iterator + ..ref.actualRefNum = actualRefNum + ..ref.ref = ref + ..ref.forkInfo = forkInfo + ..ref.forkName = forkName; +} + +typedef FSForkCBInfoParamPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FSForkIOParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + external ffi.Pointer reserved1; + + @SInt16() + external int reserved2; + + @FSIORefNum() + external int forkRefNum; + + @UInt8() + external int reserved3; + + @SInt8() + external int permissions; + + external ffi.Pointer ref; + + external Ptr buffer; + + @UInt32() + external int requestCount; + + @UInt32() + external int actualCount; + + @UInt16() + external int positionMode; + + @SInt64() + external int positionOffset; + + @FSAllocationFlags() + external int allocationFlags; + + @UInt64() + external int allocationAmount; + + @UniCharCount() + external int forkNameLength; + + external ffi.Pointer forkName; + + external CatPositionRec forkIterator; + + external ffi.Pointer outForkName; +} + +typedef FSForkIOParamPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FSForkInfo extends ffi.Struct { + @FSForkInfoFlags() + external int flags; + + @SInt8() + external int permissions; + + @FSVolumeRefNum() + external int volume; + + @UInt32() + external int reserved2; + + @UInt32() + external int nodeID; + + @UInt32() + external int forkID; + + @UInt64() + external int currentPosition; + + @UInt64() + external int logicalEOF; + + @UInt64() + external int physicalEOF; + + @UInt64() + external int process; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int permissions, + required int volume, + required int reserved2, + required int nodeID, + required int forkID, + required int currentPosition, + required int logicalEOF, + required int physicalEOF, + required int process, + }) => $allocator() + ..ref.flags = flags + ..ref.permissions = permissions + ..ref.volume = volume + ..ref.reserved2 = reserved2 + ..ref.nodeID = nodeID + ..ref.forkID = forkID + ..ref.currentPosition = currentPosition + ..ref.logicalEOF = logicalEOF + ..ref.physicalEOF = physicalEOF + ..ref.process = process; +} + +typedef FSForkInfoFlags = UInt8; +typedef FSForkInfoPtr = ffi.Pointer; +typedef FSIORefNum = ffi.Int; +typedef DartFSIORefNum = int; +typedef FSIterator = ffi.Pointer; +typedef FSIteratorFlags = OptionBits; +typedef FSMountStatus = UInt32; +typedef FSPathFileOperationStatusProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + FSFileOperationRef fileOp, + ffi.Pointer currentItem, + FSFileOperationStage stage, + OSStatus error, + CFDictionaryRef statusDictionary, + ffi.Pointer info, + ) + > + >; + +@ffi.Packed(2) +final class FSPermissionInfo extends ffi.Struct { + @UInt32() + external int userID; + + @UInt32() + external int groupID; + + @UInt8() + external int reserved1; + + @UInt8() + external int userAccess; + + @UInt16() + external int mode; + + external FSFileSecurityRef fileSec; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int userID, + required int groupID, + required int reserved1, + required int userAccess, + required int mode, + required FSFileSecurityRef fileSec, + }) => $allocator() + ..ref.userID = userID + ..ref.groupID = groupID + ..ref.reserved1 = reserved1 + ..ref.userAccess = userAccess + ..ref.mode = mode + ..ref.fileSec = fileSec; +} + +@ffi.Packed(2) +final class FSRangeLockParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + @FSIORefNum() + external int forkRefNum; + + @UInt64() + external int requestCount; + + @UInt16() + external int positionMode; + + @SInt64() + external int positionOffset; + + @UInt64() + external int rangeStart; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required int forkRefNum, + required int requestCount, + required int positionMode, + required int positionOffset, + required int rangeStart, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.forkRefNum = forkRefNum + ..ref.requestCount = requestCount + ..ref.positionMode = positionMode + ..ref.positionOffset = positionOffset + ..ref.rangeStart = rangeStart; +} + +typedef FSRangeLockParamPtr = ffi.Pointer; + +final class FSRef extends ffi.Struct { + @ffi.Array.multi([80]) + external ffi.Array hidden; +} + +@ffi.Packed(2) +final class FSRefForkIOParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + external ffi.Pointer parentRef; + + @UniCharCount() + external int nameLength; + + external ffi.Pointer name; + + @FSCatalogInfoBitmap() + external int whichInfo; + + external ffi.Pointer catInfo; + + @UniCharCount() + external int forkNameLength; + + external ffi.Pointer forkName; + + @SInt8() + external int permissions; + + @UInt8() + external int reserved1; + + @FSIORefNum() + external int forkRefNum; + + external ffi.Pointer newRef; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required ffi.Pointer parentRef, + required int nameLength, + required ffi.Pointer name, + required int whichInfo, + required ffi.Pointer catInfo, + required int forkNameLength, + required ffi.Pointer forkName, + required int permissions, + required int reserved1, + required int forkRefNum, + required ffi.Pointer newRef, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.parentRef = parentRef + ..ref.nameLength = nameLength + ..ref.name = name + ..ref.whichInfo = whichInfo + ..ref.catInfo = catInfo + ..ref.forkNameLength = forkNameLength + ..ref.forkName = forkName + ..ref.permissions = permissions + ..ref.reserved1 = reserved1 + ..ref.forkRefNum = forkRefNum + ..ref.newRef = newRef; +} + +typedef FSRefForkIOParamPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FSRefParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + external ConstStringPtr ioNamePtr; + + @FSVolumeRefNum() + external int ioVRefNum; + + @SInt16() + external int reserved1; + + @UInt8() + external int reserved2; + + @UInt8() + external int reserved3; + + external ffi.Pointer ref; + + @FSCatalogInfoBitmap() + external int whichInfo; + + external ffi.Pointer catInfo; + + @UniCharCount() + external int nameLength; + + external ffi.Pointer name; + + @UInt32() + external int ioDirID; + + external FSSpecPtr spec; + + external ffi.Pointer parentRef; + + external ffi.Pointer newRef; + + @TextEncoding() + external int textEncodingHint; + + external ffi.Pointer outName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required ConstStringPtr ioNamePtr, + required int ioVRefNum, + required int reserved1, + required int reserved2, + required int reserved3, + required ffi.Pointer ref, + required int whichInfo, + required ffi.Pointer catInfo, + required int nameLength, + required ffi.Pointer name, + required int ioDirID, + required FSSpecPtr spec, + required ffi.Pointer parentRef, + required ffi.Pointer newRef, + required int textEncodingHint, + required ffi.Pointer outName, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.ioNamePtr = ioNamePtr + ..ref.ioVRefNum = ioVRefNum + ..ref.reserved1 = reserved1 + ..ref.reserved2 = reserved2 + ..ref.reserved3 = reserved3 + ..ref.ref = ref + ..ref.whichInfo = whichInfo + ..ref.catInfo = catInfo + ..ref.nameLength = nameLength + ..ref.name = name + ..ref.ioDirID = ioDirID + ..ref.spec = spec + ..ref.parentRef = parentRef + ..ref.newRef = newRef + ..ref.textEncodingHint = textEncodingHint + ..ref.outName = outName; +} + +typedef FSRefParamPtr = ffi.Pointer; +typedef FSRefPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FSSearchParams extends ffi.Struct { + @Duration() + external int searchTime; + + @OptionBits() + external int searchBits; + + @UniCharCount() + external int searchNameLength; + + external ffi.Pointer searchName; + + external ffi.Pointer searchInfo1; + + external ffi.Pointer searchInfo2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int searchTime, + required int searchBits, + required int searchNameLength, + required ffi.Pointer searchName, + required ffi.Pointer searchInfo1, + required ffi.Pointer searchInfo2, + }) => $allocator() + ..ref.searchTime = searchTime + ..ref.searchBits = searchBits + ..ref.searchNameLength = searchNameLength + ..ref.searchName = searchName + ..ref.searchInfo1 = searchInfo1 + ..ref.searchInfo2 = searchInfo2; +} + +typedef FSSearchParamsPtr = ffi.Pointer; + +final class FSSpec extends ffi.Struct { + @ffi.Array.multi([70]) + external ffi.Array hidden; +} + +typedef FSSpecArrayPtr = FSSpecPtr; +typedef FSSpecHandle = ffi.Pointer; +typedef FSSpecPtr = ffi.Pointer; +typedef FSUnmountStatus = UInt32; +typedef FSVolumeEjectProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + OSStatus err, + FSVolumeRefNum volumeRefNum, + pid_t dissenter, + ) + > + >; +typedef FSVolumeEjectUPP = FSVolumeEjectProcPtr; + +@ffi.Packed(2) +final class FSVolumeInfo extends ffi.Struct { + external UTCDateTime createDate; + + external UTCDateTime modifyDate; + + external UTCDateTime backupDate; + + external UTCDateTime checkedDate; + + @UInt32() + external int fileCount; + + @UInt32() + external int folderCount; + + @UInt64() + external int totalBytes; + + @UInt64() + external int freeBytes; + + @UInt32() + external int blockSize; + + @UInt32() + external int totalBlocks; + + @UInt32() + external int freeBlocks; + + @UInt32() + external int nextAllocation; + + @UInt32() + external int rsrcClumpSize; + + @UInt32() + external int dataClumpSize; + + @UInt32() + external int nextCatalogID; + + @ffi.Array.multi([32]) + external ffi.Array finderInfo; + + @UInt16() + external int flags; + + @UInt16() + external int filesystemID; + + @UInt16() + external int signature; + + @UInt16() + external int driveNumber; + + @FSIORefNum() + external int driverRefNum; +} + +typedef FSVolumeInfoBitmap = UInt32; + +@ffi.Packed(2) +final class FSVolumeInfoParam extends ffi.Struct { + external QElemPtr qLink; + + @SInt16() + external int qType; + + @SInt16() + external int ioTrap; + + external Ptr ioCmdAddr; + + external IOCompletionUPP ioCompletion; + + @OSErr() + external int ioResult; + + external StringPtr ioNamePtr; + + @FSVolumeRefNum() + external int ioVRefNum; + + @UInt32() + external int volumeIndex; + + @FSVolumeInfoBitmap() + external int whichInfo; + + external ffi.Pointer volumeInfo; + + external ffi.Pointer volumeName; + + external ffi.Pointer ref; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required int ioTrap, + required Ptr ioCmdAddr, + required IOCompletionUPP ioCompletion, + required int ioResult, + required StringPtr ioNamePtr, + required int ioVRefNum, + required int volumeIndex, + required int whichInfo, + required ffi.Pointer volumeInfo, + required ffi.Pointer volumeName, + required ffi.Pointer ref, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.ioTrap = ioTrap + ..ref.ioCmdAddr = ioCmdAddr + ..ref.ioCompletion = ioCompletion + ..ref.ioResult = ioResult + ..ref.ioNamePtr = ioNamePtr + ..ref.ioVRefNum = ioVRefNum + ..ref.volumeIndex = volumeIndex + ..ref.whichInfo = whichInfo + ..ref.volumeInfo = volumeInfo + ..ref.volumeName = volumeName + ..ref.ref = ref; +} + +typedef FSVolumeInfoParamPtr = ffi.Pointer; +typedef FSVolumeInfoPtr = ffi.Pointer; +typedef FSVolumeMountProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + OSStatus err, + FSVolumeRefNum mountedVolumeRefNum, + ) + > + >; +typedef FSVolumeMountUPP = FSVolumeMountProcPtr; +typedef FSVolumeOperation = ffi.Pointer; +typedef FSVolumeRefNum = SInt16; +typedef FSVolumeUnmountProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + FSVolumeOperation volumeOp, + ffi.Pointer clientData, + OSStatus err, + FSVolumeRefNum volumeRefNum, + pid_t dissenter, + ) + > + >; +typedef FSVolumeUnmountUPP = FSVolumeUnmountProcPtr; + +final class FVector extends ffi.Struct { + @ffi.Short() + external int start; + + @ffi.Short() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int start, + required int length, + }) => $allocator() + ..ref.start = start + ..ref.length = length; +} + +@ffi.Packed(2) +final class FXInfo extends ffi.Struct { + @SInt16() + external int fdIconID; + + @ffi.Array.multi([3]) + external ffi.Array fdReserved; + + @SInt8() + external int fdScript; + + @SInt8() + external int fdXFlags; + + @SInt16() + external int fdComment; + + @SInt32() + external int fdPutAway; +} + +@ffi.Packed(2) +final class FamRec extends ffi.Struct { + @SInt16() + external int ffFlags; + + @SInt16() + external int ffFamID; + + @SInt16() + external int ffFirstChar; + + @SInt16() + external int ffLastChar; + + @SInt16() + external int ffAscent; + + @SInt16() + external int ffDescent; + + @SInt16() + external int ffLeading; + + @SInt16() + external int ffWidMax; + + @SInt32() + external int ffWTabOff; + + @SInt32() + external int ffKernOff; + + @SInt32() + external int ffStylOff; + + @ffi.Array.multi([9]) + external ffi.Array ffProperty; + + @ffi.Array.multi([2]) + external ffi.Array ffIntl; + + @SInt16() + external int ffVersion; +} + +@ffi.Packed(2) +final class FileInfo extends ffi.Struct { + @OSType() + external int fileType; + + @OSType() + external int fileCreator; + + @UInt16() + external int finderFlags; + + external Point location; + + @UInt16() + external int reservedField; +} + +typedef Fixed = SInt32; + +@ffi.Packed(2) +final class FixedPoint extends ffi.Struct { + @Fixed() + external int x; + + @Fixed() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +typedef FixedPtr = ffi.Pointer; + +@ffi.Packed(2) +final class FixedRect extends ffi.Struct { + @Fixed() + external int left; + + @Fixed() + external int top; + + @Fixed() + external int right; + + @Fixed() + external int bottom; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int left, + required int top, + required int right, + required int bottom, + }) => $allocator() + ..ref.left = left + ..ref.top = top + ..ref.right = right + ..ref.bottom = bottom; +} + +typedef Float32 = ffi.Float; +typedef DartFloat32 = double; + +@ffi.Packed(2) +final class Float32Point extends ffi.Struct { + @Float32() + external double x; + + @Float32() + external double y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double x, + required double y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +typedef Float64 = ffi.Double; +typedef DartFloat64 = double; + +final class Float80 extends ffi.Struct { + @SInt16() + external int exp$1; + + @ffi.Array.multi([4]) + external ffi.Array man; +} + +final class Float96 extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array exp$1; + + @ffi.Array.multi([4]) + external ffi.Array man; +} + +@ffi.Packed(2) +final class FndrDirInfo extends ffi.Struct { + external UnnamedStruct$5 frRect; + + @ffi.UnsignedShort() + external int frFlags; + + external UnnamedStruct$6 frLocation; + + @ffi.Int16() + external int opaque; +} + +@ffi.Packed(2) +final class FndrExtendedDirInfo extends ffi.Struct { + @u_int32_t() + external int document_id; + + @u_int32_t() + external int date_added; + + @u_int16_t() + external int extended_flags; + + @u_int16_t() + external int reserved3; + + @u_int32_t() + external int write_gen_counter; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int document_id, + required int date_added, + required int extended_flags, + required int reserved3, + required int write_gen_counter, + }) => $allocator() + ..ref.document_id = document_id + ..ref.date_added = date_added + ..ref.extended_flags = extended_flags + ..ref.reserved3 = reserved3 + ..ref.write_gen_counter = write_gen_counter; +} + +@ffi.Packed(2) +final class FndrExtendedFileInfo extends ffi.Struct { + @u_int32_t() + external int document_id; + + @u_int32_t() + external int date_added; + + @u_int16_t() + external int extended_flags; + + @u_int16_t() + external int reserved2; + + @u_int32_t() + external int write_gen_counter; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int document_id, + required int date_added, + required int extended_flags, + required int reserved2, + required int write_gen_counter, + }) => $allocator() + ..ref.document_id = document_id + ..ref.date_added = date_added + ..ref.extended_flags = extended_flags + ..ref.reserved2 = reserved2 + ..ref.write_gen_counter = write_gen_counter; +} + +@ffi.Packed(2) +final class FndrFileInfo extends ffi.Struct { + @u_int32_t() + external int fdType; + + @u_int32_t() + external int fdCreator; + + @u_int16_t() + external int fdFlags; + + external UnnamedStruct$7 fdLocation; + + @ffi.Int16() + external int opaque; +} + +@ffi.Packed(2) +final class FndrOpaqueInfo extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array opaque; +} + +typedef FolderClass = OSType; + +@ffi.Packed(2) +final class FolderDesc extends ffi.Struct { + @Size() + external int descSize; + + @FolderType() + external int foldType; + + @FolderDescFlags() + external int flags; + + @FolderClass() + external int foldClass; + + @FolderType() + external int foldLocation; + + @OSType() + external int badgeSignature; + + @OSType() + external int badgeType; + + @UInt32() + external int reserved; + + @ffi.Array.multi([64]) + external ffi.Array name; +} + +typedef FolderDescFlags = UInt32; +typedef FolderDescPtr = ffi.Pointer; + +final class FolderInfo extends ffi.Struct { + external Rect windowBounds; + + @UInt16() + external int finderFlags; + + external Point location; + + @UInt16() + external int reservedField; +} + +typedef FolderLocation = OSType; +typedef FolderManagerNotificationProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + OSType message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ) + > + >; +typedef FolderManagerNotificationUPP = FolderManagerNotificationProcPtr; + +@ffi.Packed(2) +final class FolderRouting extends ffi.Struct { + @Size() + external int descSize; + + @OSType() + external int fileType; + + @FolderType() + external int routeFromFolder; + + @FolderType() + external int routeToFolder; + + @RoutingFlags() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int descSize, + required int fileType, + required int routeFromFolder, + required int routeToFolder, + required int flags, + }) => $allocator() + ..ref.descSize = descSize + ..ref.fileType = fileType + ..ref.routeFromFolder = routeFromFolder + ..ref.routeToFolder = routeToFolder + ..ref.flags = flags; +} + +typedef FolderRoutingPtr = ffi.Pointer; +typedef FolderType = OSType; + +final class FontAssoc extends ffi.Struct { + @SInt16() + external int numAssoc; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numAssoc, + }) => $allocator()..ref.numAssoc = numAssoc; +} + +final class FontInfo extends ffi.Struct { + @ffi.Short() + external int ascent; + + @ffi.Short() + external int descent; + + @ffi.Short() + external int widMax; + + @ffi.Short() + external int leading; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ascent, + required int descent, + required int widMax, + required int leading, + }) => $allocator() + ..ref.ascent = ascent + ..ref.descent = descent + ..ref.widMax = widMax + ..ref.leading = leading; +} + +typedef FontLanguageCode = UInt32; +typedef FontNameCode = UInt32; +typedef FontPlatformCode = UInt32; + +final class FontRec extends ffi.Struct { + @SInt16() + external int fontType; + + @SInt16() + external int firstChar; + + @SInt16() + external int lastChar; + + @SInt16() + external int widMax; + + @SInt16() + external int kernMax; + + @SInt16() + external int nDescent; + + @SInt16() + external int fRectWidth; + + @SInt16() + external int fRectHeight; + + @UInt16() + external int owTLoc; + + @SInt16() + external int ascent; + + @SInt16() + external int descent; + + @SInt16() + external int leading; + + @SInt16() + external int rowWords; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fontType, + required int firstChar, + required int lastChar, + required int widMax, + required int kernMax, + required int nDescent, + required int fRectWidth, + required int fRectHeight, + required int owTLoc, + required int ascent, + required int descent, + required int leading, + required int rowWords, + }) => $allocator() + ..ref.fontType = fontType + ..ref.firstChar = firstChar + ..ref.lastChar = lastChar + ..ref.widMax = widMax + ..ref.kernMax = kernMax + ..ref.nDescent = nDescent + ..ref.fRectWidth = fRectWidth + ..ref.fRectHeight = fRectHeight + ..ref.owTLoc = owTLoc + ..ref.ascent = ascent + ..ref.descent = descent + ..ref.leading = leading + ..ref.rowWords = rowWords; +} + +typedef FontRecHdl = ffi.Pointer; +typedef FontRecPtr = ffi.Pointer; +typedef FontScriptCode = UInt32; + +@ffi.Packed(2) +final class FontVariation extends ffi.Struct { + @FourCharCode() + external int name; + + @Fixed() + external int value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int name, + required int value, + }) => $allocator() + ..ref.name = name + ..ref.value = value; +} + +typedef FormatClass = SInt8; +typedef FormatResultType = SInt8; +typedef FormatStatus = ffi.Short; +typedef DartFormatStatus = int; + +@ffi.Packed(2) +final class FormatVersionChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt32() + external int timestamp; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ckID, + required int ckSize, + required int timestamp, + }) => $allocator() + ..ref.ckID = ckID + ..ref.ckSize = ckSize + ..ref.timestamp = timestamp; +} + +typedef FormatVersionChunkPtr = ffi.Pointer; + +const int FormatVersionID = 1180058962; + +const int ForwardBackwardLooping = 2; + +const int ForwardLooping = 1; + +typedef FourCharCode = UInt32; +typedef Fract = SInt32; +typedef FractPtr = ffi.Pointer; +typedef GDHandle = ffi.Pointer; +typedef GDPtr = ffi.Pointer; + +@ffi.Packed(2) +final class GDevice extends ffi.Struct { + @ffi.Short() + external int gdRefNum; + + @ffi.Short() + external int gdID; + + @ffi.Short() + external int gdType; + + external Handle gdITable; + + @ffi.Short() + external int gdResPref; + + external Handle gdSearchProc; + + external Handle gdCompProc; + + @ffi.Short() + external int gdFlags; + + external PixMapHandle gdPMap; + + @SInt32() + external int gdRefCon; + + external GDHandle gdNextGD; + + external Rect gdRect; + + @SInt32() + external int gdMode; + + @ffi.Short() + external int gdCCBytes; + + @ffi.Short() + external int gdCCDepth; + + external Handle gdCCXData; + + external Handle gdCCXMask; + + external Handle gdExt; +} + +typedef GLbitfield = ffi.Uint32; +typedef DartGLbitfield = int; +typedef GLboolean = ffi.Uint8; +typedef DartGLboolean = int; +typedef GLbyte = ffi.Int8; +typedef DartGLbyte = int; +typedef GLchar = ffi.Char; +typedef DartGLchar = int; +typedef GLcharARB = ffi.Char; +typedef DartGLcharARB = int; +typedef GLclampd = ffi.Double; +typedef DartGLclampd = double; +typedef GLclampf = ffi.Float; +typedef DartGLclampf = double; +typedef GLdouble = ffi.Double; +typedef DartGLdouble = double; +typedef GLenum = ffi.Uint32; +typedef DartGLenum = int; +typedef GLfixed = ffi.Int32; +typedef DartGLfixed = int; +typedef GLfloat = ffi.Float; +typedef DartGLfloat = double; +typedef GLhalf = ffi.Uint16; +typedef DartGLhalf = int; +typedef GLhalfARB = ffi.Uint16; +typedef DartGLhalfARB = int; +typedef GLhandleARB = ffi.Pointer; +typedef GLint = ffi.Int32; +typedef DartGLint = int; +typedef GLint64 = ffi.Int64; +typedef DartGLint64 = int; +typedef GLint64EXT = ffi.Int64; +typedef DartGLint64EXT = int; +typedef GLintptr = ffi.IntPtr; +typedef DartGLintptr = int; +typedef GLintptrARB = ffi.IntPtr; +typedef DartGLintptrARB = int; +typedef GLshort = ffi.Int16; +typedef DartGLshort = int; +typedef GLsizei = ffi.Int32; +typedef DartGLsizei = int; +typedef GLsizeiptr = ffi.IntPtr; +typedef DartGLsizeiptr = int; +typedef GLsizeiptrARB = ffi.IntPtr; +typedef DartGLsizeiptrARB = int; +typedef GLsync = ffi.Pointer<__GLsync>; +typedef GLubyte = ffi.Uint8; +typedef DartGLubyte = int; +typedef GLuint = ffi.Uint32; +typedef DartGLuint = int; +typedef GLuint64 = ffi.Uint64; +typedef DartGLuint64 = int; +typedef GLuint64EXT = ffi.Uint64; +typedef DartGLuint64EXT = int; +typedef GLushort = ffi.Uint16; +typedef DartGLushort = int; +typedef GLvoid = ffi.Void; +typedef DartGLvoid = void; + +const int GREATERTHAN = 0; + +typedef GWorldFlags = ffi.UnsignedLong; +typedef DartGWorldFlags = int; +typedef GWorldPtr = CGrafPtr; +typedef GetMissingComponentResourceProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + Component c, + OSType resType, + SInt16 resID, + ffi.Pointer refCon, + ffi.Pointer resource, + ) + > + >; +typedef GetMissingComponentResourceUPP = GetMissingComponentResourceProcPtr; + +@ffi.Packed(2) +final class GetVolParmsInfoBuffer extends ffi.Struct { + @SInt16() + external int vMVersion; + + @SInt32() + external int vMAttrib; + + external Handle vMLocalHand; + + @SInt32() + external int vMServerAdr; + + @SInt32() + external int vMVolumeGrade; + + @SInt16() + external int vMForeignPrivID; + + @SInt32() + external int vMExtendedAttributes; + + external ffi.Pointer vMDeviceID; + + @UniCharCount() + external int vMMaxNameLength; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int vMVersion, + required int vMAttrib, + required Handle vMLocalHand, + required int vMServerAdr, + required int vMVolumeGrade, + required int vMForeignPrivID, + required int vMExtendedAttributes, + required ffi.Pointer vMDeviceID, + required int vMMaxNameLength, + }) => $allocator() + ..ref.vMVersion = vMVersion + ..ref.vMAttrib = vMAttrib + ..ref.vMLocalHand = vMLocalHand + ..ref.vMServerAdr = vMServerAdr + ..ref.vMVolumeGrade = vMVolumeGrade + ..ref.vMForeignPrivID = vMForeignPrivID + ..ref.vMExtendedAttributes = vMExtendedAttributes + ..ref.vMDeviceID = vMDeviceID + ..ref.vMMaxNameLength = vMMaxNameLength; +} + +typedef GlyphCollection = UInt16; +typedef GlyphID = ATSGlyphRef; + +final class GrafPort extends ffi.Struct { + @ffi.Array.multi([87]) + external ffi.Array whatever; +} + +typedef GrafPtr = ffi.Pointer; +typedef GrafVerb = SInt8; + +const int HDActivity = 3; + +@ffi.Packed(2) +final class HFSCatalogFile extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @u_int8_t() + external int flags; + + @ffi.Int8() + external int fileType; + + external FndrFileInfo userInfo; + + @u_int32_t() + external int fileID; + + @u_int16_t() + external int dataStartBlock; + + @ffi.Int32() + external int dataLogicalSize; + + @ffi.Int32() + external int dataPhysicalSize; + + @u_int16_t() + external int rsrcStartBlock; + + @ffi.Int32() + external int rsrcLogicalSize; + + @ffi.Int32() + external int rsrcPhysicalSize; + + @u_int32_t() + external int createDate; + + @u_int32_t() + external int modifyDate; + + @u_int32_t() + external int backupDate; + + external FndrOpaqueInfo finderInfo; + + @u_int16_t() + external int clumpSize; + + @ffi.Array.multi([3]) + external ffi.Array dataExtents; + + @ffi.Array.multi([3]) + external ffi.Array rsrcExtents; + + @u_int32_t() + external int reserved; +} + +@ffi.Packed(2) +final class HFSCatalogFolder extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @u_int16_t() + external int flags; + + @u_int16_t() + external int valence; + + @u_int32_t() + external int folderID; + + @u_int32_t() + external int createDate; + + @u_int32_t() + external int modifyDate; + + @u_int32_t() + external int backupDate; + + external FndrDirInfo userInfo; + + external FndrOpaqueInfo finderInfo; + + @ffi.Array.multi([4]) + external ffi.Array reserved; +} + +@ffi.Packed(2) +final class HFSCatalogKey extends ffi.Struct { + @u_int8_t() + external int keyLength; + + @u_int8_t() + external int reserved; + + @u_int32_t() + external int parentID; + + @ffi.Array.multi([32]) + external ffi.Array nodeName; +} + +typedef HFSCatalogNodeID = UInt32; + +@ffi.Packed(2) +final class HFSCatalogThread extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @ffi.Array.multi([2]) + external ffi.Array reserved; + + @u_int32_t() + external int parentID; + + @ffi.Array.multi([32]) + external ffi.Array nodeName; +} + +@ffi.Packed(2) +final class HFSExtentDescriptor extends ffi.Struct { + @u_int16_t() + external int startBlock; + + @u_int16_t() + external int blockCount; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int startBlock, + required int blockCount, + }) => $allocator() + ..ref.startBlock = startBlock + ..ref.blockCount = blockCount; +} + +@ffi.Packed(2) +final class HFSExtentKey extends ffi.Struct { + @u_int8_t() + external int keyLength; + + @u_int8_t() + external int forkType; + + @u_int32_t() + external int fileID; + + @u_int16_t() + external int startBlock; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int keyLength, + required int forkType, + required int fileID, + required int startBlock, + }) => $allocator() + ..ref.keyLength = keyLength + ..ref.forkType = forkType + ..ref.fileID = fileID + ..ref.startBlock = startBlock; +} + +@ffi.Packed(2) +final class HFSMasterDirectoryBlock extends ffi.Struct { + @u_int16_t() + external int drSigWord; + + @u_int32_t() + external int drCrDate; + + @u_int32_t() + external int drLsMod; + + @u_int16_t() + external int drAtrb; + + @u_int16_t() + external int drNmFls; + + @u_int16_t() + external int drVBMSt; + + @u_int16_t() + external int drAllocPtr; + + @u_int16_t() + external int drNmAlBlks; + + @u_int32_t() + external int drAlBlkSiz; + + @u_int32_t() + external int drClpSiz; + + @u_int16_t() + external int drAlBlSt; + + @u_int32_t() + external int drNxtCNID; + + @u_int16_t() + external int drFreeBks; + + @ffi.Array.multi([28]) + external ffi.Array drVN; + + @u_int32_t() + external int drVolBkUp; + + @u_int16_t() + external int drVSeqNum; + + @u_int32_t() + external int drWrCnt; + + @u_int32_t() + external int drXTClpSiz; + + @u_int32_t() + external int drCTClpSiz; + + @u_int16_t() + external int drNmRtDirs; + + @u_int32_t() + external int drFilCnt; + + @u_int32_t() + external int drDirCnt; + + @ffi.Array.multi([8]) + external ffi.Array drFndrInfo; + + @u_int16_t() + external int drEmbedSigWord; + + external HFSExtentDescriptor drEmbedExtent; + + @u_int32_t() + external int drXTFlSize; + + @ffi.Array.multi([3]) + external ffi.Array drXTExtRec; + + @u_int32_t() + external int drCTFlSize; + + @ffi.Array.multi([3]) + external ffi.Array drCTExtRec; +} + +@ffi.Packed(2) +final class HFSPlusAttrData extends ffi.Struct { + @u_int32_t() + external int recordType; + + @ffi.Array.multi([2]) + external ffi.Array reserved; + + @u_int32_t() + external int attrSize; + + @ffi.Array.multi([2]) + external ffi.Array attrData; +} + +@ffi.Packed(2) +final class HFSPlusAttrExtents extends ffi.Struct { + @u_int32_t() + external int recordType; + + @u_int32_t() + external int reserved; + + @ffi.Array.multi([8]) + external ffi.Array extents; +} + +@ffi.Packed(2) +final class HFSPlusAttrForkData extends ffi.Struct { + @u_int32_t() + external int recordType; + + @u_int32_t() + external int reserved; + + external HFSPlusForkData theFork; +} + +@ffi.Packed(2) +final class HFSPlusAttrInlineData extends ffi.Struct { + @u_int32_t() + external int recordType; + + @u_int32_t() + external int reserved; + + @u_int32_t() + external int logicalSize; + + @ffi.Array.multi([2]) + external ffi.Array userData; +} + +@ffi.Packed(2) +final class HFSPlusAttrKey extends ffi.Struct { + @u_int16_t() + external int keyLength; + + @u_int16_t() + external int pad; + + @u_int32_t() + external int fileID; + + @u_int32_t() + external int startBlock; + + @u_int16_t() + external int attrNameLen; + + @ffi.Array.multi([127]) + external ffi.Array attrName; +} + +final class HFSPlusAttrRecord extends ffi.Union { + @u_int32_t() + external int recordType; + + external HFSPlusAttrInlineData inlineData; + + external HFSPlusAttrData attrData; + + external HFSPlusAttrForkData forkData; + + external HFSPlusAttrExtents overflowExtents; +} + +@ffi.Packed(2) +final class HFSPlusBSDInfo extends ffi.Struct { + @u_int32_t() + external int ownerID; + + @u_int32_t() + external int groupID; + + @u_int8_t() + external int adminFlags; + + @u_int8_t() + external int ownerFlags; + + @u_int16_t() + external int fileMode; + + external UnnamedUnion$9 special; +} + +@ffi.Packed(2) +final class HFSPlusCatalogFile extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @u_int16_t() + external int flags; + + @u_int32_t() + external int reserved1; + + @u_int32_t() + external int fileID; + + @u_int32_t() + external int createDate; + + @u_int32_t() + external int contentModDate; + + @u_int32_t() + external int attributeModDate; + + @u_int32_t() + external int accessDate; + + @u_int32_t() + external int backupDate; + + external HFSPlusBSDInfo bsdInfo; + + external FndrFileInfo userInfo; + + external FndrOpaqueInfo finderInfo; + + @u_int32_t() + external int textEncoding; + + @u_int32_t() + external int reserved2; + + external HFSPlusForkData dataFork; + + external HFSPlusForkData resourceFork; +} + +@ffi.Packed(2) +final class HFSPlusCatalogFolder extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @u_int16_t() + external int flags; + + @u_int32_t() + external int valence; + + @u_int32_t() + external int folderID; + + @u_int32_t() + external int createDate; + + @u_int32_t() + external int contentModDate; + + @u_int32_t() + external int attributeModDate; + + @u_int32_t() + external int accessDate; + + @u_int32_t() + external int backupDate; + + external HFSPlusBSDInfo bsdInfo; + + external FndrDirInfo userInfo; + + external FndrOpaqueInfo finderInfo; + + @u_int32_t() + external int textEncoding; + + @u_int32_t() + external int folderCount; +} + +@ffi.Packed(2) +final class HFSPlusCatalogKey extends ffi.Struct { + @u_int16_t() + external int keyLength; + + @u_int32_t() + external int parentID; + + external HFSUniStr255 nodeName; +} + +@ffi.Packed(2) +final class HFSPlusCatalogThread extends ffi.Struct { + @ffi.Int16() + external int recordType; + + @ffi.Int16() + external int reserved; + + @u_int32_t() + external int parentID; + + external HFSUniStr255 nodeName; +} + +@ffi.Packed(2) +final class HFSPlusExtentDescriptor extends ffi.Struct { + @u_int32_t() + external int startBlock; + + @u_int32_t() + external int blockCount; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int startBlock, + required int blockCount, + }) => $allocator() + ..ref.startBlock = startBlock + ..ref.blockCount = blockCount; +} + +@ffi.Packed(2) +final class HFSPlusExtentKey extends ffi.Struct { + @u_int16_t() + external int keyLength; + + @u_int8_t() + external int forkType; + + @u_int8_t() + external int pad; + + @u_int32_t() + external int fileID; + + @u_int32_t() + external int startBlock; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int keyLength, + required int forkType, + required int pad, + required int fileID, + required int startBlock, + }) => $allocator() + ..ref.keyLength = keyLength + ..ref.forkType = forkType + ..ref.pad = pad + ..ref.fileID = fileID + ..ref.startBlock = startBlock; +} + +@ffi.Packed(2) +final class HFSPlusForkData extends ffi.Struct { + @u_int64_t() + external int logicalSize; + + @u_int32_t() + external int clumpSize; + + @u_int32_t() + external int totalBlocks; + + @ffi.Array.multi([8]) + external ffi.Array extents; +} + +@ffi.Packed(2) +final class HFSPlusVolumeHeader extends ffi.Struct { + @u_int16_t() + external int signature; + + @u_int16_t() + external int version; + + @u_int32_t() + external int attributes; + + @u_int32_t() + external int lastMountedVersion; + + @u_int32_t() + external int journalInfoBlock; + + @u_int32_t() + external int createDate; + + @u_int32_t() + external int modifyDate; + + @u_int32_t() + external int backupDate; + + @u_int32_t() + external int checkedDate; + + @u_int32_t() + external int fileCount; + + @u_int32_t() + external int folderCount; + + @u_int32_t() + external int blockSize; + + @u_int32_t() + external int totalBlocks; + + @u_int32_t() + external int freeBlocks; + + @u_int32_t() + external int nextAllocation; + + @u_int32_t() + external int rsrcClumpSize; + + @u_int32_t() + external int dataClumpSize; + + @u_int32_t() + external int nextCatalogID; + + @u_int32_t() + external int writeCount; + + @u_int64_t() + external int encodingsBitmap; + + @ffi.Array.multi([32]) + external ffi.Array finderInfo; + + external HFSPlusForkData allocationFile; + + external HFSPlusForkData extentsFile; + + external HFSPlusForkData catalogFile; + + external HFSPlusForkData attributesFile; + + external HFSPlusForkData startupFile; +} + +@ffi.Packed(2) +final class HFSUniStr255 extends ffi.Struct { + @u_int16_t() + external int length; + + @ffi.Array.multi([255]) + external ffi.Array unicode; +} + +typedef HIMutableShapeRef = ffi.Pointer<__HIShape>; +typedef HIShapeEnumerateProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Int inMessage, + HIShapeRef inShape, + ffi.Pointer inRect, + ffi.Pointer inRefcon, + ) + > + >; +typedef HIShapeRef = ffi.Pointer<__HIShape>; +typedef Handle = ffi.Pointer; + +@ffi.Packed(2) +final class ICAppSpec extends ffi.Struct { + @OSType() + external int fCreator; + + @ffi.Array.multi([64]) + external ffi.Array name; +} + +typedef ICAppSpecHandle = ffi.Pointer; + +final class ICAppSpecList extends ffi.Struct { + @SInt16() + external int numberOfItems; + + @ffi.Array.multi([1]) + external ffi.Array appSpecs; +} + +typedef ICAppSpecListHandle = ffi.Pointer; +typedef ICAppSpecListPtr = ffi.Pointer; +typedef ICAppSpecPtr = ffi.Pointer; +typedef ICAttr = UInt32; + +final class ICCharTable extends ffi.Struct { + @ffi.Array.multi([256]) + external ffi.Array netToMac; + + @ffi.Array.multi([256]) + external ffi.Array macToNet; +} + +typedef ICCharTableHandle = ffi.Pointer; +typedef ICCharTablePtr = ffi.Pointer; + +@ffi.Packed(2) +final class ICFileSpec extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array volName; + + @SInt32() + external int volCreationDate; + + external FSSpec fss; + + external AliasRecord alias; +} + +typedef ICFileSpecHandle = ffi.Pointer; +typedef ICFileSpecPtr = ffi.Pointer; +typedef ICFixedLength = SInt16; + +final class ICFontRecord extends ffi.Struct { + @SInt16() + external int size; + + @Style() + external int face; + + @ffi.Char() + external int pad; + + @ffi.Array.multi([256]) + external ffi.Array font; +} + +typedef ICFontRecordHandle = ffi.Pointer; +typedef ICFontRecordPtr = ffi.Pointer; +typedef ICInstance = ffi.Pointer; + +@ffi.Packed(2) +final class ICMapEntry extends ffi.Struct { + @SInt16() + external int totalLength; + + @ICFixedLength() + external int fixedLength; + + @SInt16() + external int version; + + @OSType() + external int fileType; + + @OSType() + external int fileCreator; + + @OSType() + external int postCreator; + + @ICMapEntryFlags() + external int flags; + + @ffi.Array.multi([256]) + external ffi.Array extension; + + @ffi.Array.multi([256]) + external ffi.Array creatorAppName; + + @ffi.Array.multi([256]) + external ffi.Array postAppName; + + @ffi.Array.multi([256]) + external ffi.Array MIMEType; + + @ffi.Array.multi([256]) + external ffi.Array entryName; +} + +typedef ICMapEntryFlags = SInt32; +typedef ICMapEntryHandle = ffi.Pointer; +typedef ICMapEntryPtr = ffi.Pointer; +typedef ICPerm = UInt8; +typedef ICProfileID = SInt32; +typedef ICProfileIDPtr = ffi.Pointer; + +final class ICServiceEntry extends ffi.Struct { + @ffi.Array.multi([256]) + external ffi.Array name; + + @SInt16() + external int port; + + @ICServiceEntryFlags() + external int flags; +} + +typedef ICServiceEntryFlags = SInt16; +typedef ICServiceEntryHandle = ffi.Pointer; +typedef ICServiceEntryPtr = ffi.Pointer; + +final class ICServices extends ffi.Struct { + @SInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array services; +} + +typedef ICServicesHandle = ffi.Pointer; +typedef ICServicesPtr = ffi.Pointer; +typedef IMP = ffi.Pointer>; +typedef IOAddressRange = IOVirtualRange; +typedef IOAlignment = ffi.UnsignedInt; +typedef DartIOAlignment = int; +typedef IOAppleTimingID = UInt32; +typedef IOAsyncCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer refcon, + IOReturn result, + ffi.Pointer> args, + ffi.Uint32 numArgs, + ) + > + >; +typedef IOAsyncCallback0 = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer refcon, IOReturn result) + > + >; +typedef IOAsyncCallback1 = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer refcon, + IOReturn result, + ffi.Pointer arg0, + ) + > + >; +typedef IOAsyncCallback2 = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer refcon, + IOReturn result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >; + +final class IOAsyncCompletionContent extends ffi.Opaque {} + +typedef IOByteCount = IOByteCount64; +typedef IOByteCount32 = UInt32; +typedef IOByteCount64 = UInt64; +typedef IOCacheMode = UInt32; +typedef IOColorComponent = UInt16; + +final class IOColorEntry extends ffi.Struct { + @UInt16() + external int index$1; + + @IOColorComponent() + external int red; + + @IOColorComponent() + external int green; + + @IOColorComponent() + external int blue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int index$1, + required int red, + required int green, + required int blue, + }) => $allocator() + ..ref.index$1 = index$1 + ..ref.red = red + ..ref.green = green + ..ref.blue = blue; +} + +typedef IOCompletionProcPtr = + ffi.Pointer>; +typedef IOCompletionUPP = IOCompletionProcPtr; +typedef IODetailedTimingInformation = IODetailedTimingInformationV2; + +final class IODetailedTimingInformationV1 extends ffi.Struct { + @UInt32() + external int pixelClock; + + @UInt32() + external int horizontalActive; + + @UInt32() + external int horizontalBlanking; + + @UInt32() + external int horizontalBorder; + + @UInt32() + external int horizontalSyncOffset; + + @UInt32() + external int horizontalSyncWidth; + + @UInt32() + external int verticalActive; + + @UInt32() + external int verticalBlanking; + + @UInt32() + external int verticalBorder; + + @UInt32() + external int verticalSyncOffset; + + @UInt32() + external int verticalSyncWidth; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int pixelClock, + required int horizontalActive, + required int horizontalBlanking, + required int horizontalBorder, + required int horizontalSyncOffset, + required int horizontalSyncWidth, + required int verticalActive, + required int verticalBlanking, + required int verticalBorder, + required int verticalSyncOffset, + required int verticalSyncWidth, + }) => $allocator() + ..ref.pixelClock = pixelClock + ..ref.horizontalActive = horizontalActive + ..ref.horizontalBlanking = horizontalBlanking + ..ref.horizontalBorder = horizontalBorder + ..ref.horizontalSyncOffset = horizontalSyncOffset + ..ref.horizontalSyncWidth = horizontalSyncWidth + ..ref.verticalActive = verticalActive + ..ref.verticalBlanking = verticalBlanking + ..ref.verticalBorder = verticalBorder + ..ref.verticalSyncOffset = verticalSyncOffset + ..ref.verticalSyncWidth = verticalSyncWidth; +} + +final class IODetailedTimingInformationV2 extends ffi.Struct { + @ffi.Array.multi([3]) + external ffi.Array __reservedA; + + @UInt32() + external int horizontalScaledInset; + + @UInt32() + external int verticalScaledInset; + + @UInt32() + external int scalerFlags; + + @UInt32() + external int horizontalScaled; + + @UInt32() + external int verticalScaled; + + @UInt32() + external int signalConfig; + + @UInt32() + external int signalLevels; + + @UInt64() + external int pixelClock; + + @UInt64() + external int minPixelClock; + + @UInt64() + external int maxPixelClock; + + @UInt32() + external int horizontalActive; + + @UInt32() + external int horizontalBlanking; + + @UInt32() + external int horizontalSyncOffset; + + @UInt32() + external int horizontalSyncPulseWidth; + + @UInt32() + external int verticalActive; + + @UInt32() + external int verticalBlanking; + + @UInt32() + external int verticalSyncOffset; + + @UInt32() + external int verticalSyncPulseWidth; + + @UInt32() + external int horizontalBorderLeft; + + @UInt32() + external int horizontalBorderRight; + + @UInt32() + external int verticalBorderTop; + + @UInt32() + external int verticalBorderBottom; + + @UInt32() + external int horizontalSyncConfig; + + @UInt32() + external int horizontalSyncLevel; + + @UInt32() + external int verticalSyncConfig; + + @UInt32() + external int verticalSyncLevel; + + @UInt32() + external int numLinks; + + @UInt32() + external int verticalBlankingExtension; + + @UInt16() + external int pixelEncoding; + + @UInt16() + external int bitsPerColorComponent; + + @UInt16() + external int colorimetry; + + @UInt16() + external int dynamicRange; + + @UInt16() + external int dscCompressedBitsPerPixel; + + @UInt16() + external int dscSliceHeight; + + @UInt16() + external int dscSliceWidth; + + @UInt16() + external int verticalBlankingMaxStretchPerFrame; + + @UInt16() + external int verticalBlankingMaxShrinkPerFrame; + + @ffi.Array.multi([3]) + external ffi.Array __reservedB; +} + +typedef IODeviceNumber = ffi.UnsignedInt; +typedef DartIODeviceNumber = int; +typedef IODisplayModeID = SInt32; + +final class IODisplayModeInformation extends ffi.Struct { + @UInt32() + external int nominalWidth; + + @UInt32() + external int nominalHeight; + + @IOFixed1616() + external int refreshRate; + + @IOIndex() + external int maxDepthIndex; + + @UInt32() + external int flags; + + @UInt16() + external int imageWidth; + + @UInt16() + external int imageHeight; + + @ffi.Array.multi([3]) + external ffi.Array reserved; +} + +typedef IODisplayProductID = UInt32; + +final class IODisplayScalerInformation extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array __reservedA; + + @UInt32() + external int version; + + @ffi.Array.multi([2]) + external ffi.Array __reservedB; + + @IOOptionBits() + external int scalerFeatures; + + @UInt32() + external int maxHorizontalPixels; + + @UInt32() + external int maxVerticalPixels; + + @ffi.Array.multi([5]) + external ffi.Array __reservedC; +} + +typedef IODisplayTimingRange = IODisplayTimingRangeV2; + +final class IODisplayTimingRangeV1 extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array __reservedA; + + @UInt32() + external int version; + + @ffi.Array.multi([5]) + external ffi.Array __reservedB; + + @UInt64() + external int minPixelClock; + + @UInt64() + external int maxPixelClock; + + @UInt32() + external int maxPixelError; + + @UInt32() + external int supportedSyncFlags; + + @UInt32() + external int supportedSignalLevels; + + @UInt32() + external int supportedSignalConfigs; + + @UInt32() + external int minFrameRate; + + @UInt32() + external int maxFrameRate; + + @UInt32() + external int minLineRate; + + @UInt32() + external int maxLineRate; + + @UInt32() + external int maxHorizontalTotal; + + @UInt32() + external int maxVerticalTotal; + + @ffi.Array.multi([2]) + external ffi.Array __reservedD; + + @UInt8() + external int charSizeHorizontalActive; + + @UInt8() + external int charSizeHorizontalBlanking; + + @UInt8() + external int charSizeHorizontalSyncOffset; + + @UInt8() + external int charSizeHorizontalSyncPulse; + + @UInt8() + external int charSizeVerticalActive; + + @UInt8() + external int charSizeVerticalBlanking; + + @UInt8() + external int charSizeVerticalSyncOffset; + + @UInt8() + external int charSizeVerticalSyncPulse; + + @UInt8() + external int charSizeHorizontalBorderLeft; + + @UInt8() + external int charSizeHorizontalBorderRight; + + @UInt8() + external int charSizeVerticalBorderTop; + + @UInt8() + external int charSizeVerticalBorderBottom; + + @UInt8() + external int charSizeHorizontalTotal; + + @UInt8() + external int charSizeVerticalTotal; + + @UInt16() + external int __reservedE; + + @UInt32() + external int minHorizontalActiveClocks; + + @UInt32() + external int maxHorizontalActiveClocks; + + @UInt32() + external int minHorizontalBlankingClocks; + + @UInt32() + external int maxHorizontalBlankingClocks; + + @UInt32() + external int minHorizontalSyncOffsetClocks; + + @UInt32() + external int maxHorizontalSyncOffsetClocks; + + @UInt32() + external int minHorizontalPulseWidthClocks; + + @UInt32() + external int maxHorizontalPulseWidthClocks; + + @UInt32() + external int minVerticalActiveClocks; + + @UInt32() + external int maxVerticalActiveClocks; + + @UInt32() + external int minVerticalBlankingClocks; + + @UInt32() + external int maxVerticalBlankingClocks; + + @UInt32() + external int minVerticalSyncOffsetClocks; + + @UInt32() + external int maxVerticalSyncOffsetClocks; + + @UInt32() + external int minVerticalPulseWidthClocks; + + @UInt32() + external int maxVerticalPulseWidthClocks; + + @UInt32() + external int minHorizontalBorderLeft; + + @UInt32() + external int maxHorizontalBorderLeft; + + @UInt32() + external int minHorizontalBorderRight; + + @UInt32() + external int maxHorizontalBorderRight; + + @UInt32() + external int minVerticalBorderTop; + + @UInt32() + external int maxVerticalBorderTop; + + @UInt32() + external int minVerticalBorderBottom; + + @UInt32() + external int maxVerticalBorderBottom; + + @UInt32() + external int maxNumLinks; + + @UInt32() + external int minLink0PixelClock; + + @UInt32() + external int maxLink0PixelClock; + + @UInt32() + external int minLink1PixelClock; + + @UInt32() + external int maxLink1PixelClock; + + @UInt16() + external int supportedPixelEncoding; + + @UInt16() + external int supportedBitsPerColorComponent; + + @UInt16() + external int supportedColorimetryModes; + + @UInt16() + external int supportedDynamicRangeModes; + + @ffi.Array.multi([1]) + external ffi.Array __reservedF; +} + +final class IODisplayTimingRangeV2 extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array __reservedA; + + @UInt32() + external int version; + + @ffi.Array.multi([5]) + external ffi.Array __reservedB; + + @UInt64() + external int minPixelClock; + + @UInt64() + external int maxPixelClock; + + @UInt32() + external int maxPixelError; + + @UInt32() + external int supportedSyncFlags; + + @UInt32() + external int supportedSignalLevels; + + @UInt32() + external int supportedSignalConfigs; + + @UInt32() + external int minFrameRate; + + @UInt32() + external int maxFrameRate; + + @UInt32() + external int minLineRate; + + @UInt32() + external int maxLineRate; + + @UInt32() + external int maxHorizontalTotal; + + @UInt32() + external int maxVerticalTotal; + + @ffi.Array.multi([2]) + external ffi.Array __reservedD; + + @UInt8() + external int charSizeHorizontalActive; + + @UInt8() + external int charSizeHorizontalBlanking; + + @UInt8() + external int charSizeHorizontalSyncOffset; + + @UInt8() + external int charSizeHorizontalSyncPulse; + + @UInt8() + external int charSizeVerticalActive; + + @UInt8() + external int charSizeVerticalBlanking; + + @UInt8() + external int charSizeVerticalSyncOffset; + + @UInt8() + external int charSizeVerticalSyncPulse; + + @UInt8() + external int charSizeHorizontalBorderLeft; + + @UInt8() + external int charSizeHorizontalBorderRight; + + @UInt8() + external int charSizeVerticalBorderTop; + + @UInt8() + external int charSizeVerticalBorderBottom; + + @UInt8() + external int charSizeHorizontalTotal; + + @UInt8() + external int charSizeVerticalTotal; + + @UInt16() + external int __reservedE; + + @UInt32() + external int minHorizontalActiveClocks; + + @UInt32() + external int maxHorizontalActiveClocks; + + @UInt32() + external int minHorizontalBlankingClocks; + + @UInt32() + external int maxHorizontalBlankingClocks; + + @UInt32() + external int minHorizontalSyncOffsetClocks; + + @UInt32() + external int maxHorizontalSyncOffsetClocks; + + @UInt32() + external int minHorizontalPulseWidthClocks; + + @UInt32() + external int maxHorizontalPulseWidthClocks; + + @UInt32() + external int minVerticalActiveClocks; + + @UInt32() + external int maxVerticalActiveClocks; + + @UInt32() + external int minVerticalBlankingClocks; + + @UInt32() + external int maxVerticalBlankingClocks; + + @UInt32() + external int minVerticalSyncOffsetClocks; + + @UInt32() + external int maxVerticalSyncOffsetClocks; + + @UInt32() + external int minVerticalPulseWidthClocks; + + @UInt32() + external int maxVerticalPulseWidthClocks; + + @UInt32() + external int minHorizontalBorderLeft; + + @UInt32() + external int maxHorizontalBorderLeft; + + @UInt32() + external int minHorizontalBorderRight; + + @UInt32() + external int maxHorizontalBorderRight; + + @UInt32() + external int minVerticalBorderTop; + + @UInt32() + external int maxVerticalBorderTop; + + @UInt32() + external int minVerticalBorderBottom; + + @UInt32() + external int maxVerticalBorderBottom; + + @UInt32() + external int maxNumLinks; + + @UInt32() + external int minLink0PixelClock; + + @UInt32() + external int maxLink0PixelClock; + + @UInt32() + external int minLink1PixelClock; + + @UInt32() + external int maxLink1PixelClock; + + @UInt16() + external int supportedPixelEncoding; + + @UInt16() + external int supportedBitsPerColorComponent; + + @UInt16() + external int supportedColorimetryModes; + + @UInt16() + external int supportedDynamicRangeModes; + + @ffi.Array.multi([1]) + external ffi.Array __reservedF; + + @UInt64() + external int maxBandwidth; + + @UInt32() + external int dscMinSliceHeight; + + @UInt32() + external int dscMaxSliceHeight; + + @UInt32() + external int dscMinSliceWidth; + + @UInt32() + external int dscMaxSliceWidth; + + @UInt32() + external int dscMinSlicePerLine; + + @UInt32() + external int dscMaxSlicePerLine; + + @UInt16() + external int dscMinBPC; + + @UInt16() + external int dscMaxBPC; + + @UInt16() + external int dscMinBPP; + + @UInt16() + external int dscMaxBPP; + + @UInt8() + external int dscVBR; + + @UInt8() + external int dscBlockPredEnable; + + @ffi.Array.multi([6]) + external ffi.Array __reservedC; +} + +typedef IODisplayVendorID = UInt32; + +final class IOFBDPLinkConfig extends ffi.Struct { + @ffi.Uint16() + external int version; + + @ffi.Uint8() + external int bitRate; + + @ffi.Array.multi([1]) + external ffi.Array __reservedA; + + @ffi.Uint16() + external int t1Time; + + @ffi.Uint16() + external int t2Time; + + @ffi.Uint16() + external int t3Time; + + @ffi.Uint8() + external int idlePatterns; + + @ffi.Uint8() + external int laneCount; + + @ffi.Uint8() + external int voltage; + + @ffi.Uint8() + external int preEmphasis; + + @ffi.Uint8() + external int downspread; + + @ffi.Uint8() + external int scrambler; + + @ffi.Uint8() + external int maxBitRate; + + @ffi.Uint8() + external int maxLaneCount; + + @ffi.Uint8() + external int maxDownspread; + + @ffi.Array.multi([9]) + external ffi.Array __reservedB; +} + +@ffi.Packed(4) +final class IOFBDisplayModeDescription extends ffi.Struct { + external IODisplayModeInformation info; + + external IOTimingInformation timingInfo; +} + +final class IOFBHDRMetaData extends ffi.Union { + external IOFBHDRMetaDataV1 v1; +} + +final class IOFBHDRMetaDataV1 extends ffi.Struct { + @ffi.Uint16() + external int displayPrimary_X0; + + @ffi.Uint16() + external int displayPrimary_Y0; + + @ffi.Uint16() + external int displayPrimary_X1; + + @ffi.Uint16() + external int displayPrimary_Y1; + + @ffi.Uint16() + external int displayPrimary_X2; + + @ffi.Uint16() + external int displayPrimary_Y2; + + @ffi.Uint16() + external int displayPrimary_X; + + @ffi.Uint16() + external int displayPrimary_Y; + + @ffi.Uint16() + external int desiredLuminance_Max; + + @ffi.Uint16() + external int desiredLuminance_Min; + + @ffi.Uint16() + external int desiredLightLevel_Avg; + + @ffi.Uint16() + external int desiredLightLevel_Max; + + @ffi.Array.multi([5]) + external ffi.Array __reservedA; +} + +typedef IOFixed = SInt32; +typedef IOFixed1616 = UInt32; +typedef IOFixedPoint32 = __IOFixedPoint32; + +final class IOFramebufferInformation extends ffi.Struct { + @IOPhysicalAddress() + external int baseAddress; + + @UInt32() + external int activeWidth; + + @UInt32() + external int activeHeight; + + @IOByteCount() + external int bytesPerRow; + + @IOByteCount() + external int bytesPerPlane; + + @UInt32() + external int bitsPerPixel; + + @UInt32() + external int pixelType; + + @UInt32() + external int flags; + + @ffi.Array.multi([4]) + external ffi.Array reserved; +} + +final class IOGBounds extends ffi.Struct { + @SInt16() + external int minx; + + @SInt16() + external int maxx; + + @SInt16() + external int miny; + + @SInt16() + external int maxy; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int minx, + required int maxx, + required int miny, + required int maxy, + }) => $allocator() + ..ref.minx = minx + ..ref.maxx = maxx + ..ref.miny = miny + ..ref.maxy = maxy; +} + +final class IOGPoint extends ffi.Struct { + @SInt16() + external int x; + + @SInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +final class IOGSize extends ffi.Struct { + @SInt16() + external int width; + + @SInt16() + external int height; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int width, + required int height, + }) => $allocator() + ..ref.width = width + ..ref.height = height; +} + +final class IOHardwareCursorDescriptor extends ffi.Struct { + @UInt16() + external int majorVersion; + + @UInt16() + external int minorVersion; + + @UInt32() + external int height; + + @UInt32() + external int width; + + @UInt32() + external int bitDepth; + + @UInt32() + external int maskBitDepth; + + @UInt32() + external int numColors; + + external ffi.Pointer colorEncodings; + + @UInt32() + external int flags; + + @UInt32() + external int supportedSpecialEncodings; + + @ffi.Array.multi([16]) + external ffi.Array specialEncodings; +} + +final class IOHardwareCursorInfo extends ffi.Struct { + @UInt16() + external int majorVersion; + + @UInt16() + external int minorVersion; + + @UInt32() + external int cursorHeight; + + @UInt32() + external int cursorWidth; + + external ffi.Pointer colorMap; + + external ffi.Pointer hardwareCursorData; + + @UInt16() + external int cursorHotSpotX; + + @UInt16() + external int cursorHotSpotY; + + @ffi.Array.multi([5]) + external ffi.Array reserved; +} + +typedef IOIndex = SInt32; +typedef IOItemCount = UInt32; +typedef IOLogicalAddress = IOVirtualAddress; + +final class IONamedValue extends ffi.Struct { + @ffi.Int() + external int value; + + external ffi.Pointer name; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int value, + required ffi.Pointer name, + }) => $allocator() + ..ref.value = value + ..ref.name = name; +} + +final class IONotificationPort extends ffi.Opaque {} + +typedef IONotificationPortRef = ffi.Pointer; +typedef IOOptionBits = UInt32; +typedef IOPhysicalAddress = IOPhysicalAddress64; +typedef IOPhysicalAddress32 = UInt32; +typedef IOPhysicalAddress64 = UInt64; +typedef IOPhysicalLength = IOPhysicalLength64; +typedef IOPhysicalLength32 = UInt32; +typedef IOPhysicalLength64 = UInt64; + +final class IOPhysicalRange extends ffi.Struct { + @IOPhysicalAddress() + external int address; + + @IOByteCount() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int address, + required int length, + }) => $allocator() + ..ref.address = address + ..ref.length = length; +} + +typedef IOPixelAperture = IOIndex; + +final class IOPixelInformation extends ffi.Struct { + @UInt32() + external int bytesPerRow; + + @UInt32() + external int bytesPerPlane; + + @UInt32() + external int bitsPerPixel; + + @UInt32() + external int pixelType; + + @UInt32() + external int componentCount; + + @UInt32() + external int bitsPerComponent; + + @ffi.Array.multi([16]) + external ffi.Array componentMasks; + + @ffi.Array.multi([64]) + external ffi.Array pixelFormat; + + @UInt32() + external int flags; + + @UInt32() + external int activeWidth; + + @UInt32() + external int activeHeight; + + @ffi.Array.multi([2]) + external ffi.Array reserved; +} + +typedef IOReturn = kern_return_t; +typedef IOSelect = UInt32; +typedef IOServiceInterestCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer refcon, + io_service_t service, + ffi.Uint32 messageType, + ffi.Pointer messageArgument, + ) + > + >; + +@ffi.Packed(4) +final class IOServiceInterestContent extends ffi.Struct { + @natural_t() + external int messageType; + + @ffi.Array.multi([1]) + external ffi.Array> messageArgument; +} + +@ffi.Packed(4) +final class IOServiceInterestContent64 extends ffi.Struct { + @natural_t() + external int messageType; + + @ffi.Array.multi([1]) + external ffi.Array messageArgument; +} + +typedef IOServiceMatchingCallback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer refcon, io_iterator_t iterator) + > + >; + +enum IOSurfaceComponentName { + kIOSurfaceComponentNameUnknown(0), + kIOSurfaceComponentNameAlpha(1), + kIOSurfaceComponentNameRed(2), + kIOSurfaceComponentNameGreen(3), + kIOSurfaceComponentNameBlue(4), + kIOSurfaceComponentNameLuma(5), + kIOSurfaceComponentNameChromaRed(6), + kIOSurfaceComponentNameChromaBlue(7); + + final int value; + const IOSurfaceComponentName(this.value); + + static IOSurfaceComponentName fromValue(int value) => switch (value) { + 0 => kIOSurfaceComponentNameUnknown, + 1 => kIOSurfaceComponentNameAlpha, + 2 => kIOSurfaceComponentNameRed, + 3 => kIOSurfaceComponentNameGreen, + 4 => kIOSurfaceComponentNameBlue, + 5 => kIOSurfaceComponentNameLuma, + 6 => kIOSurfaceComponentNameChromaRed, + 7 => kIOSurfaceComponentNameChromaBlue, + _ => throw ArgumentError( + 'Unknown value for IOSurfaceComponentName: $value', + ), + }; +} + +enum IOSurfaceComponentRange { + kIOSurfaceComponentRangeUnknown(0), + kIOSurfaceComponentRangeFullRange(1), + kIOSurfaceComponentRangeVideoRange(2), + kIOSurfaceComponentRangeWideRange(3); + + final int value; + const IOSurfaceComponentRange(this.value); + + static IOSurfaceComponentRange fromValue(int value) => switch (value) { + 0 => kIOSurfaceComponentRangeUnknown, + 1 => kIOSurfaceComponentRangeFullRange, + 2 => kIOSurfaceComponentRangeVideoRange, + 3 => kIOSurfaceComponentRangeWideRange, + _ => throw ArgumentError( + 'Unknown value for IOSurfaceComponentRange: $value', + ), + }; +} + +enum IOSurfaceComponentType { + kIOSurfaceComponentTypeUnknown(0), + kIOSurfaceComponentTypeUnsignedInteger(1), + kIOSurfaceComponentTypeSignedInteger(2), + kIOSurfaceComponentTypeFloat(3), + kIOSurfaceComponentTypeSignedNormalized(4); + + final int value; + const IOSurfaceComponentType(this.value); + + static IOSurfaceComponentType fromValue(int value) => switch (value) { + 0 => kIOSurfaceComponentTypeUnknown, + 1 => kIOSurfaceComponentTypeUnsignedInteger, + 2 => kIOSurfaceComponentTypeSignedInteger, + 3 => kIOSurfaceComponentTypeFloat, + 4 => kIOSurfaceComponentTypeSignedNormalized, + _ => throw ArgumentError( + 'Unknown value for IOSurfaceComponentType: $value', + ), + }; +} + +typedef IOSurfaceID = ffi.Uint32; +typedef DartIOSurfaceID = int; + +sealed class IOSurfaceLockOptions { + static const kIOSurfaceLockReadOnly = 1; + static const kIOSurfaceLockAvoidSync = 2; +} + +sealed class IOSurfaceMemoryLedgerFlags { + static const kIOSurfaceMemoryLedgerFlagNoFootprint = 1; +} + +enum IOSurfaceMemoryLedgerTags { + kIOSurfaceMemoryLedgerTagDefault(1), + kIOSurfaceMemoryLedgerTagNetwork(2), + kIOSurfaceMemoryLedgerTagMedia(3), + kIOSurfaceMemoryLedgerTagGraphics(4), + kIOSurfaceMemoryLedgerTagNeural(5); + + final int value; + const IOSurfaceMemoryLedgerTags(this.value); + + static IOSurfaceMemoryLedgerTags fromValue(int value) => switch (value) { + 1 => kIOSurfaceMemoryLedgerTagDefault, + 2 => kIOSurfaceMemoryLedgerTagNetwork, + 3 => kIOSurfaceMemoryLedgerTagMedia, + 4 => kIOSurfaceMemoryLedgerTagGraphics, + 5 => kIOSurfaceMemoryLedgerTagNeural, + _ => throw ArgumentError( + 'Unknown value for IOSurfaceMemoryLedgerTags: $value', + ), + }; +} + +sealed class IOSurfacePurgeabilityState { + static const kIOSurfacePurgeableNonVolatile = 0; + static const kIOSurfacePurgeableVolatile = 1; + static const kIOSurfacePurgeableEmpty = 2; + static const kIOSurfacePurgeableKeepCurrent = 3; +} + +typedef IOSurfaceRef = ffi.Pointer<__IOSurface>; + +enum IOSurfaceSubsampling { + kIOSurfaceSubsamplingUnknown(0), + kIOSurfaceSubsamplingNone(1), + kIOSurfaceSubsampling422(2), + kIOSurfaceSubsampling420(3), + kIOSurfaceSubsampling411(4); + + final int value; + const IOSurfaceSubsampling(this.value); + + static IOSurfaceSubsampling fromValue(int value) => switch (value) { + 0 => kIOSurfaceSubsamplingUnknown, + 1 => kIOSurfaceSubsamplingNone, + 2 => kIOSurfaceSubsampling422, + 3 => kIOSurfaceSubsampling420, + 4 => kIOSurfaceSubsampling411, + _ => throw ArgumentError('Unknown value for IOSurfaceSubsampling: $value'), + }; +} + +final class IOTimingInformation extends ffi.Struct { + @IOAppleTimingID() + external int appleTimingID; + + @UInt32() + external int flags; + + external UnnamedUnion$10 detailedInfo; +} + +typedef IOVersion = UInt32; +typedef IOVirtualAddress = mach_vm_address_t; + +final class IOVirtualRange extends ffi.Struct { + @IOVirtualAddress() + external int address; + + @IOByteCount() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int address, + required int length, + }) => $allocator() + ..ref.address = address + ..ref.length = length; +} + +typedef ISAType = SInt8; +typedef IconActionProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + ResType theType, + ffi.Pointer theIcon, + ffi.Pointer yourDataPtr, + ) + > + >; +typedef IconActionUPP = IconActionProcPtr; +typedef IconAlignmentType = SInt16; + +@ffi.Packed(2) +final class IconFamilyElement extends ffi.Struct { + @OSType() + external int elementType; + + @SInt32() + external int elementSize; + + @ffi.Array.multi([1]) + external ffi.Array elementData; +} + +typedef IconFamilyHandle = ffi.Pointer; +typedef IconFamilyPtr = ffi.Pointer; + +@ffi.Packed(2) +final class IconFamilyResource extends ffi.Struct { + @OSType() + external int resourceType; + + @SInt32() + external int resourceSize; + + @ffi.Array.multi([1]) + external ffi.Array elements; +} + +typedef IconGetterProcPtr = + ffi.Pointer< + ffi.NativeFunction< + Handle Function(ResType theType, ffi.Pointer yourDataPtr) + > + >; +typedef IconGetterUPP = IconGetterProcPtr; +typedef IconRef = ffi.Pointer; +typedef IconSelectorValue = UInt32; +typedef IconServicesUsageFlags = UInt32; +typedef IconTransformType = SInt16; + +const int IdleActivity = 4; + +typedef IndexToUCStringProcPtr = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + UInt32 index$1, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer outString, + ffi.Pointer tsOptions, + ) + > + >; +typedef IndexToUCStringUPP = IndexToUCStringProcPtr; + +@ffi.Packed(2) +final class InstrumentChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt8() + external int baseFrequency; + + @UInt8() + external int detune; + + @UInt8() + external int lowFrequency; + + @UInt8() + external int highFrequency; + + @UInt8() + external int lowVelocity; + + @UInt8() + external int highVelocity; + + @SInt16() + external int gain; + + external AIFFLoop sustainLoop; + + external AIFFLoop releaseLoop; +} + +typedef InstrumentChunkPtr = ffi.Pointer; + +const int InstrumentID = 1229869908; + +typedef Intl0Hndl = ffi.Pointer; +typedef Intl0Ptr = ffi.Pointer; + +final class Intl0Rec extends ffi.Struct { + @ffi.Char() + external int decimalPt; + + @ffi.Char() + external int thousSep; + + @ffi.Char() + external int listSep; + + @ffi.Char() + external int currSym1; + + @ffi.Char() + external int currSym2; + + @ffi.Char() + external int currSym3; + + @UInt8() + external int currFmt; + + @UInt8() + external int dateOrder; + + @UInt8() + external int shrtDateFmt; + + @ffi.Char() + external int dateSep; + + @UInt8() + external int timeCycle; + + @UInt8() + external int timeFmt; + + @ffi.Array.multi([4]) + external ffi.Array mornStr; + + @ffi.Array.multi([4]) + external ffi.Array eveStr; + + @ffi.Char() + external int timeSep; + + @ffi.Char() + external int time1Suff; + + @ffi.Char() + external int time2Suff; + + @ffi.Char() + external int time3Suff; + + @ffi.Char() + external int time4Suff; + + @ffi.Char() + external int time5Suff; + + @ffi.Char() + external int time6Suff; + + @ffi.Char() + external int time7Suff; + + @ffi.Char() + external int time8Suff; + + @UInt8() + external int metricSys; + + @ffi.Short() + external int intl0Vers; +} + +typedef Intl1Hndl = ffi.Pointer; +typedef Intl1Ptr = ffi.Pointer; + +final class Intl1Rec extends ffi.Struct { + @ffi.Array.multi([7, 16]) + external ffi.Array> days; + + @ffi.Array.multi([12, 16]) + external ffi.Array> months; + + @UInt8() + external int suppressDay; + + @UInt8() + external int lngDateFmt; + + @UInt8() + external int dayLeading0; + + @UInt8() + external int abbrLen; + + @ffi.Array.multi([4]) + external ffi.Array st0; + + @ffi.Array.multi([4]) + external ffi.Array st1; + + @ffi.Array.multi([4]) + external ffi.Array st2; + + @ffi.Array.multi([4]) + external ffi.Array st3; + + @ffi.Array.multi([4]) + external ffi.Array st4; + + @ffi.Short() + external int intl1Vers; + + @ffi.Array.multi([1]) + external ffi.Array localRtn; +} + +final class IntlText extends ffi.Struct { + @ScriptCode() + external int theScriptCode; + + @LangCode() + external int theLangCode; + + @ffi.Array.multi([1]) + external ffi.Array theText; +} + +typedef ItemCount = ffi.UnsignedLong; +typedef DartItemCount = int; + +@ffi.Packed(2) +final class Itl1ExtRec extends ffi.Struct { + external Intl1Rec base; + + @ffi.Short() + external int version; + + @ffi.Short() + external int format; + + @ffi.Short() + external int calendarCode; + + @SInt32() + external int extraDaysTableOffset; + + @SInt32() + external int extraDaysTableLength; + + @SInt32() + external int extraMonthsTableOffset; + + @SInt32() + external int extraMonthsTableLength; + + @SInt32() + external int abbrevDaysTableOffset; + + @SInt32() + external int abbrevDaysTableLength; + + @SInt32() + external int abbrevMonthsTableOffset; + + @SInt32() + external int abbrevMonthsTableLength; + + @SInt32() + external int extraSepsTableOffset; + + @SInt32() + external int extraSepsTableLength; + + @ffi.Array.multi([1]) + external ffi.Array tables; +} + +typedef Itl4Handle = ffi.Pointer; +typedef Itl4Ptr = ffi.Pointer; + +@ffi.Packed(2) +final class Itl4Rec extends ffi.Struct { + @ffi.Short() + external int flags; + + @SInt32() + external int resourceType; + + @ffi.Short() + external int resourceNum; + + @ffi.Short() + external int version; + + @SInt32() + external int resHeader1; + + @SInt32() + external int resHeader2; + + @ffi.Short() + external int numTables; + + @SInt32() + external int mapOffset; + + @SInt32() + external int strOffset; + + @SInt32() + external int fetchOffset; + + @SInt32() + external int unTokenOffset; + + @SInt32() + external int defPartsOffset; + + @SInt32() + external int resOffset6; + + @SInt32() + external int resOffset7; + + @SInt32() + external int resOffset8; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int resourceType, + required int resourceNum, + required int version, + required int resHeader1, + required int resHeader2, + required int numTables, + required int mapOffset, + required int strOffset, + required int fetchOffset, + required int unTokenOffset, + required int defPartsOffset, + required int resOffset6, + required int resOffset7, + required int resOffset8, + }) => $allocator() + ..ref.flags = flags + ..ref.resourceType = resourceType + ..ref.resourceNum = resourceNum + ..ref.version = version + ..ref.resHeader1 = resHeader1 + ..ref.resHeader2 = resHeader2 + ..ref.numTables = numTables + ..ref.mapOffset = mapOffset + ..ref.strOffset = strOffset + ..ref.fetchOffset = fetchOffset + ..ref.unTokenOffset = unTokenOffset + ..ref.defPartsOffset = defPartsOffset + ..ref.resOffset6 = resOffset6 + ..ref.resOffset7 = resOffset7 + ..ref.resOffset8 = resOffset8; +} + +@ffi.Packed(2) +final class Itl5Record extends ffi.Struct { + @Fixed() + external int versionNumber; + + @ffi.UnsignedShort() + external int numberOfTables; + + @ffi.Array.multi([3]) + external ffi.Array reserved; + + @ffi.Array.multi([1]) + external ffi.Array tableDirectory; +} + +@ffi.Packed(2) +final class ItlbExtRecord extends ffi.Struct { + external ItlbRecord base; + + @SInt32() + external int itlbLocalSize; + + @ffi.Short() + external int itlbMonoFond; + + @ffi.Short() + external int itlbMonoSize; + + @ffi.Short() + external int itlbPrefFond; + + @ffi.Short() + external int itlbPrefSize; + + @ffi.Short() + external int itlbSmallFond; + + @ffi.Short() + external int itlbSmallSize; + + @ffi.Short() + external int itlbSysFond; + + @ffi.Short() + external int itlbSysSize; + + @ffi.Short() + external int itlbAppFond; + + @ffi.Short() + external int itlbAppSize; + + @ffi.Short() + external int itlbHelpFond; + + @ffi.Short() + external int itlbHelpSize; + + @Style() + external int itlbValidStyles; + + @Style() + external int itlbAliasStyle; +} + +final class ItlbRecord extends ffi.Struct { + @ffi.Short() + external int itlbNumber; + + @ffi.Short() + external int itlbDate; + + @ffi.Short() + external int itlbSort; + + @ffi.Short() + external int itlbFlags; + + @ffi.Short() + external int itlbToken; + + @ffi.Short() + external int itlbEncoding; + + @ffi.Short() + external int itlbLang; + + @SInt8() + external int itlbNumRep; + + @SInt8() + external int itlbDateRep; + + @ffi.Short() + external int itlbKeys; + + @ffi.Short() + external int itlbIcon; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int itlbNumber, + required int itlbDate, + required int itlbSort, + required int itlbFlags, + required int itlbToken, + required int itlbEncoding, + required int itlbLang, + required int itlbNumRep, + required int itlbDateRep, + required int itlbKeys, + required int itlbIcon, + }) => $allocator() + ..ref.itlbNumber = itlbNumber + ..ref.itlbDate = itlbDate + ..ref.itlbSort = itlbSort + ..ref.itlbFlags = itlbFlags + ..ref.itlbToken = itlbToken + ..ref.itlbEncoding = itlbEncoding + ..ref.itlbLang = itlbLang + ..ref.itlbNumRep = itlbNumRep + ..ref.itlbDateRep = itlbDateRep + ..ref.itlbKeys = itlbKeys + ..ref.itlbIcon = itlbIcon; +} + +final class ItlcRecord extends ffi.Struct { + @ffi.Short() + external int itlcSystem; + + @ffi.Short() + external int itlcReserved; + + @SInt8() + external int itlcFontForce; + + @SInt8() + external int itlcIntlForce; + + @SInt8() + external int itlcOldKybd; + + @SInt8() + external int itlcFlags; + + @ffi.Short() + external int itlcIconOffset; + + @SInt8() + external int itlcIconSide; + + @SInt8() + external int itlcIconRsvd; + + @ffi.Short() + external int itlcRegionCode; + + @ffi.Short() + external int itlcSysFlags; + + @ffi.Array.multi([32]) + external ffi.Array itlcReserved4; +} + +@ffi.Packed(2) +final class JournalInfoBlock extends ffi.Struct { + @u_int32_t() + external int flags; + + @ffi.Array.multi([8]) + external ffi.Array device_signature; + + @u_int64_t() + external int offset; + + @u_int64_t() + external int size; + + @ffi.Array.multi([37]) + external ffi.Array ext_jnl_uuid; + + @ffi.Array.multi([48]) + external ffi.Array machine_serial_num; + + @ffi.Array.multi([43]) + external ffi.Array reserved; +} + +final class JustDirectionTable extends ffi.Struct { + @UInt16() + external int justClass; + + @UInt16() + external int widthDeltaClusters; + + @UInt16() + external int postcomp; + + external SFNTLookupTable lookup; +} + +@ffi.Packed(2) +final class JustPCAction extends ffi.Struct { + @UInt32() + external int actionCount; + + @ffi.Array.multi([1]) + external ffi.Array actions; +} + +@ffi.Packed(2) +final class JustPCActionSubrecord extends ffi.Struct { + @UInt16() + external int theClass; + + @JustPCActionType() + external int theType; + + @UInt32() + external int length; + + @UInt32() + external int data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int theClass, + required int theType, + required int length, + required int data, + }) => $allocator() + ..ref.theClass = theClass + ..ref.theType = theType + ..ref.length = length + ..ref.data = data; +} + +typedef JustPCActionType = UInt16; + +@ffi.Packed(2) +final class JustPCConditionalAddAction extends ffi.Struct { + @Fixed() + external int substThreshold; + + @UInt16() + external int addGlyph; + + @UInt16() + external int substGlyph; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int substThreshold, + required int addGlyph, + required int substGlyph, + }) => $allocator() + ..ref.substThreshold = substThreshold + ..ref.addGlyph = addGlyph + ..ref.substGlyph = substGlyph; +} + +@ffi.Packed(2) +final class JustPCDecompositionAction extends ffi.Struct { + @Fixed() + external int lowerLimit; + + @Fixed() + external int upperLimit; + + @UInt16() + external int order; + + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array glyphs; +} + +@ffi.Packed(2) +final class JustPCDuctilityAction extends ffi.Struct { + @UInt32() + external int ductilityAxis; + + @Fixed() + external int minimumLimit; + + @Fixed() + external int noStretchValue; + + @Fixed() + external int maximumLimit; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ductilityAxis, + required int minimumLimit, + required int noStretchValue, + required int maximumLimit, + }) => $allocator() + ..ref.ductilityAxis = ductilityAxis + ..ref.minimumLimit = minimumLimit + ..ref.noStretchValue = noStretchValue + ..ref.maximumLimit = maximumLimit; +} + +final class JustPCGlyphRepeatAddAction extends ffi.Struct { + @UInt16() + external int flags; + + @UInt16() + external int glyph; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int glyph, + }) => $allocator() + ..ref.flags = flags + ..ref.glyph = glyph; +} + +typedef JustPCUnconditionalAddAction = UInt16; + +final class JustPostcompTable extends ffi.Struct { + external SFNTLookupTable lookupTable; +} + +@ffi.Packed(2) +final class JustTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt16() + external int format; + + @UInt16() + external int horizHeaderOffset; + + @UInt16() + external int vertHeaderOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int format, + required int horizHeaderOffset, + required int vertHeaderOffset, + }) => $allocator() + ..ref.version = version + ..ref.format = format + ..ref.horizHeaderOffset = horizHeaderOffset + ..ref.vertHeaderOffset = vertHeaderOffset; +} + +@ffi.Packed(2) +final class JustWidthDeltaEntry extends ffi.Struct { + @UInt32() + external int justClass; + + @Fixed() + external int beforeGrowLimit; + + @Fixed() + external int beforeShrinkLimit; + + @Fixed() + external int afterGrowLimit; + + @Fixed() + external int afterShrinkLimit; + + @JustificationFlags() + external int growFlags; + + @JustificationFlags() + external int shrinkFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int justClass, + required int beforeGrowLimit, + required int beforeShrinkLimit, + required int afterGrowLimit, + required int afterShrinkLimit, + required int growFlags, + required int shrinkFlags, + }) => $allocator() + ..ref.justClass = justClass + ..ref.beforeGrowLimit = beforeGrowLimit + ..ref.beforeShrinkLimit = beforeShrinkLimit + ..ref.afterGrowLimit = afterGrowLimit + ..ref.afterShrinkLimit = afterShrinkLimit + ..ref.growFlags = growFlags + ..ref.shrinkFlags = shrinkFlags; +} + +@ffi.Packed(2) +final class JustWidthDeltaGroup extends ffi.Struct { + @UInt32() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array entries; +} + +typedef JustificationFlags = UInt16; + +const int KAEISHandleCGI = 1935961955; + +typedef KCAttrType = SecKeychainAttrType; +typedef KCAttribute = SecKeychainAttribute; +typedef KCAttributeList = SecKeychainAttributeList; +typedef KCAuthType = FourCharCode; + +@ffi.Packed(2) +final class KCCallbackInfo extends ffi.Struct { + @UInt32() + external int version; + + external KCItemRef item; + + @ffi.Array.multi([2]) + external ffi.Array processID; + + @ffi.Array.multi([4]) + external ffi.Array event; + + external KCRef keychain; +} + +typedef KCCallbackProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + KCEvent keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ) + > + >; +typedef KCCallbackUPP = KCCallbackProcPtr; +typedef KCCertAddOptions = UInt32; +typedef KCCertSearchOptions = UInt32; +typedef KCEvent = UInt16; +typedef KCEventMask = UInt16; +typedef KCItemAttr = FourCharCode; +typedef KCItemClass = FourCharCode; +typedef KCItemRef = SecKeychainItemRef; +typedef KCProtocolType = FourCharCode; +typedef KCRef = SecKeychainRef; +typedef KCSearchRef = SecKeychainSearchRef; +typedef KCStatus = SecKeychainStatus; +typedef KCVerifyStopOn = UInt16; +typedef KernArrayOffset = UInt16; + +final class KernEntry extends ffi.Struct { + @SInt16() + external int kernStyle; + + @SInt16() + external int kernLength; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int kernStyle, + required int kernLength, + }) => $allocator() + ..ref.kernStyle = kernStyle + ..ref.kernLength = kernLength; +} + +final class KernFormatSpecificHeader extends ffi.Union { + external KernOrderedListHeader orderedList; + + external KernStateHeader stateTable; + + external KernSimpleArrayHeader simpleArray; + + external KernIndexArrayHeader indexArray; +} + +final class KernIndexArrayHeader extends ffi.Struct { + @UInt16() + external int glyphCount; + + @UInt8() + external int kernValueCount; + + @UInt8() + external int leftClassCount; + + @UInt8() + external int rightClassCount; + + @UInt8() + external int flags; + + @ffi.Array.multi([1]) + external ffi.Array kernValue; + + @ffi.Array.multi([1]) + external ffi.Array leftClass; + + @ffi.Array.multi([1]) + external ffi.Array rightClass; + + @ffi.Array.multi([1]) + external ffi.Array kernIndex; +} + +final class KernKerningPair extends ffi.Struct { + @UInt16() + external int left; + + @UInt16() + external int right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int left, + required int right, + }) => $allocator() + ..ref.left = left + ..ref.right = right; +} + +typedef KernKerningValue = SInt16; + +final class KernOffsetTable extends ffi.Struct { + @UInt16() + external int firstGlyph; + + @UInt16() + external int nGlyphs; + + @ffi.Array.multi([1]) + external ffi.Array offsetTable; +} + +typedef KernOffsetTablePtr = ffi.Pointer; + +final class KernOrderedListEntry extends ffi.Struct { + external KernKerningPair pair; + + @KernKerningValue() + external int value; +} + +typedef KernOrderedListEntryPtr = ffi.Pointer; + +final class KernOrderedListHeader extends ffi.Struct { + @UInt16() + external int nPairs; + + @UInt16() + external int searchRange; + + @UInt16() + external int entrySelector; + + @UInt16() + external int rangeShift; + + @ffi.Array.multi([1]) + external ffi.Array table; +} + +final class KernPair extends ffi.Struct { + @ffi.Char() + external int kernFirst; + + @ffi.Char() + external int kernSecond; + + @SInt16() + external int kernWidth; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int kernFirst, + required int kernSecond, + required int kernWidth, + }) => $allocator() + ..ref.kernFirst = kernFirst + ..ref.kernSecond = kernSecond + ..ref.kernWidth = kernWidth; +} + +final class KernSimpleArrayHeader extends ffi.Struct { + @UInt16() + external int rowWidth; + + @UInt16() + external int leftOffsetTable; + + @UInt16() + external int rightOffsetTable; + + @KernArrayOffset() + external int theArray; + + @ffi.Array.multi([1]) + external ffi.Array firstTable; +} + +final class KernStateEntry extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags; +} + +final class KernStateHeader extends ffi.Struct { + external STHeader header; + + @UInt16() + external int valueTable; + + @ffi.Array.multi([1]) + external ffi.Array firstTable; +} + +@ffi.Packed(2) +final class KernSubtableHeader extends ffi.Struct { + @SInt32() + external int length; + + @KernSubtableInfo() + external int stInfo; + + @SInt16() + external int tupleIndex; + + external KernFormatSpecificHeader fsHeader; +} + +typedef KernSubtableHeaderPtr = ffi.Pointer; +typedef KernSubtableInfo = UInt16; + +final class KernTable extends ffi.Struct { + @SInt16() + external int numKerns; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numKerns, + }) => $allocator()..ref.numKerns = numKerns; +} + +typedef KernTableFormat = UInt8; + +@ffi.Packed(2) +final class KernTableHeader extends ffi.Struct { + @Fixed() + external int version; + + @SInt32() + external int nTables; + + @ffi.Array.multi([1]) + external ffi.Array firstSubtable; +} + +typedef KernTableHeaderHandle = ffi.Pointer; +typedef KernTableHeaderPtr = ffi.Pointer; + +final class KernVersion0Header extends ffi.Struct { + @UInt16() + external int version; + + @UInt16() + external int nTables; + + @ffi.Array.multi([1]) + external ffi.Array firstSubtable; +} + +final class KernVersion0SubtableHeader extends ffi.Struct { + @UInt16() + external int version; + + @UInt16() + external int length; + + @KernSubtableInfo() + external int stInfo; + + external KernFormatSpecificHeader fsHeader; +} + +final class KerxAnchorPointAction extends ffi.Struct { + @UInt16() + external int markAnchorPoint; + + @UInt16() + external int currAnchorPoint; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int markAnchorPoint, + required int currAnchorPoint, + }) => $allocator() + ..ref.markAnchorPoint = markAnchorPoint + ..ref.currAnchorPoint = currAnchorPoint; +} + +typedef KerxArrayOffset = UInt32; + +final class KerxControlPointAction extends ffi.Struct { + @UInt16() + external int markControlPoint; + + @UInt16() + external int currControlPoint; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int markControlPoint, + required int currControlPoint, + }) => $allocator() + ..ref.markControlPoint = markControlPoint + ..ref.currControlPoint = currControlPoint; +} + +final class KerxControlPointEntry extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int actionIndex; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int actionIndex, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.actionIndex = actionIndex; +} + +@ffi.Packed(2) +final class KerxControlPointHeader extends ffi.Struct { + external STXHeader header; + + @UInt32() + external int flags; + + @ffi.Array.multi([1]) + external ffi.Array firstTable; +} + +final class KerxCoordinateAction extends ffi.Struct { + @UInt16() + external int markX; + + @UInt16() + external int markY; + + @UInt16() + external int currX; + + @UInt16() + external int currY; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int markX, + required int markY, + required int currX, + required int currY, + }) => $allocator() + ..ref.markX = markX + ..ref.markY = markY + ..ref.currX = currX + ..ref.currY = currY; +} + +final class KerxFormatSpecificHeader extends ffi.Union { + external KerxOrderedListHeader orderedList; + + external KerxStateHeader stateTable; + + external KerxSimpleArrayHeader simpleArray; + + external KerxIndexArrayHeader indexArray; + + external KerxControlPointHeader controlPoint; +} + +@ffi.Packed(2) +final class KerxIndexArrayHeader extends ffi.Struct { + @UInt32() + external int flags; + + @UInt16() + external int rowCount; + + @UInt16() + external int columnCount; + + @UInt32() + external int rowIndexTableOffset; + + @UInt32() + external int columnIndexTableOffset; + + @UInt32() + external int kerningArrayOffset; + + @UInt32() + external int kerningVectorOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int rowCount, + required int columnCount, + required int rowIndexTableOffset, + required int columnIndexTableOffset, + required int kerningArrayOffset, + required int kerningVectorOffset, + }) => $allocator() + ..ref.flags = flags + ..ref.rowCount = rowCount + ..ref.columnCount = columnCount + ..ref.rowIndexTableOffset = rowIndexTableOffset + ..ref.columnIndexTableOffset = columnIndexTableOffset + ..ref.kerningArrayOffset = kerningArrayOffset + ..ref.kerningVectorOffset = kerningVectorOffset; +} + +final class KerxKerningPair extends ffi.Struct { + @UInt16() + external int left; + + @UInt16() + external int right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int left, + required int right, + }) => $allocator() + ..ref.left = left + ..ref.right = right; +} + +final class KerxOrderedListEntry extends ffi.Struct { + external KerxKerningPair pair; + + @KernKerningValue() + external int value; +} + +typedef KerxOrderedListEntryPtr = ffi.Pointer; + +@ffi.Packed(2) +final class KerxOrderedListHeader extends ffi.Struct { + @UInt32() + external int nPairs; + + @UInt32() + external int searchRange; + + @UInt32() + external int entrySelector; + + @UInt32() + external int rangeShift; + + @ffi.Array.multi([1]) + external ffi.Array table; +} + +@ffi.Packed(2) +final class KerxSimpleArrayHeader extends ffi.Struct { + @UInt32() + external int rowWidth; + + @UInt32() + external int leftOffsetTable; + + @UInt32() + external int rightOffsetTable; + + @KerxArrayOffset() + external int theArray; + + @ffi.Array.multi([1]) + external ffi.Array firstTable; +} + +final class KerxStateEntry extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int valueIndex; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int valueIndex, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.valueIndex = valueIndex; +} + +@ffi.Packed(2) +final class KerxStateHeader extends ffi.Struct { + external STXHeader header; + + @UInt32() + external int valueTable; + + @ffi.Array.multi([1]) + external ffi.Array firstTable; +} + +typedef KerxSubtableCoverage = UInt32; + +@ffi.Packed(2) +final class KerxSubtableHeader extends ffi.Struct { + @UInt32() + external int length; + + @KerxSubtableCoverage() + external int stInfo; + + @UInt32() + external int tupleCount; + + external KerxFormatSpecificHeader fsHeader; +} + +typedef KerxSubtableHeaderPtr = ffi.Pointer; + +@ffi.Packed(2) +final class KerxTableHeader extends ffi.Struct { + @Fixed() + external int version; + + @UInt32() + external int nTables; + + @ffi.Array.multi([1]) + external ffi.Array firstSubtable; +} + +typedef KerxTableHeaderHandle = ffi.Pointer; +typedef KerxTableHeaderPtr = ffi.Pointer; + +const int LESSTHAN = 1; + +final class LLCStyleInfo extends ffi.Opaque {} + +sealed class LSAcceptanceFlags { + static const kLSAcceptDefault = 1; + static const kLSAcceptAllowLoginUI = 2; +} + +@ffi.Packed(2) +final class LSApplicationParameters extends ffi.Struct { + @CFIndex() + external int version; + + @OptionBits() + external int flags; + + external ffi.Pointer application; + + external ffi.Pointer asyncLaunchRefCon; + + external CFDictionaryRef environment; + + external CFArrayRef argv; + + external ffi.Pointer initialEvent; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int flags, + required ffi.Pointer application, + required ffi.Pointer asyncLaunchRefCon, + required CFDictionaryRef environment, + required CFArrayRef argv, + required ffi.Pointer initialEvent, + }) => $allocator() + ..ref.version = version + ..ref.flags = flags + ..ref.application = application + ..ref.asyncLaunchRefCon = asyncLaunchRefCon + ..ref.environment = environment + ..ref.argv = argv + ..ref.initialEvent = initialEvent; +} + +sealed class LSHandlerOptions { + static const kLSHandlerOptionsDefault = 0; + static const kLSHandlerOptionsIgnoreCreator = 1; +} + +sealed class LSItemInfoFlags { + static const kLSItemInfoIsPlainFile = 1; + static const kLSItemInfoIsPackage = 2; + static const kLSItemInfoIsApplication = 4; + static const kLSItemInfoIsContainer = 8; + static const kLSItemInfoIsAliasFile = 16; + static const kLSItemInfoIsSymlink = 32; + static const kLSItemInfoIsInvisible = 64; + static const kLSItemInfoIsNativeApp = 128; + static const kLSItemInfoIsClassicApp = 256; + static const kLSItemInfoAppPrefersNative = 512; + static const kLSItemInfoAppPrefersClassic = 1024; + static const kLSItemInfoAppIsScriptable = 2048; + static const kLSItemInfoIsVolume = 4096; + static const kLSItemInfoExtensionIsHidden = 1048576; +} + +@ffi.Packed(2) +final class LSItemInfoRecord extends ffi.Struct { + @OptionBits() + external int flags; + + @OSType() + external int filetype; + + @OSType() + external int creator; + + external CFStringRef extension; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int filetype, + required int creator, + required CFStringRef extension, + }) => $allocator() + ..ref.flags = flags + ..ref.filetype = filetype + ..ref.creator = creator + ..ref.extension = extension; +} + +@ffi.Packed(2) +final class LSLaunchFSRefSpec extends ffi.Struct { + external ffi.Pointer appRef; + + @ItemCount() + external int numDocs; + + external ffi.Pointer itemRefs; + + external ffi.Pointer passThruParams; + + @OptionBits() + external int launchFlags; + + external ffi.Pointer asyncRefCon; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer appRef, + required int numDocs, + required ffi.Pointer itemRefs, + required ffi.Pointer passThruParams, + required int launchFlags, + required ffi.Pointer asyncRefCon, + }) => $allocator() + ..ref.appRef = appRef + ..ref.numDocs = numDocs + ..ref.itemRefs = itemRefs + ..ref.passThruParams = passThruParams + ..ref.launchFlags = launchFlags + ..ref.asyncRefCon = asyncRefCon; +} + +sealed class LSLaunchFlags { + static const kLSLaunchDefaults = 1; + static const kLSLaunchAndPrint = 2; + static const kLSLaunchAndDisplayErrors = 64; + static const kLSLaunchDontAddToRecents = 256; + static const kLSLaunchDontSwitch = 512; + static const kLSLaunchAsync = 65536; + static const kLSLaunchNewInstance = 524288; + static const kLSLaunchAndHide = 1048576; + static const kLSLaunchAndHideOthers = 2097152; +} + +@ffi.Packed(2) +final class LSLaunchURLSpec extends ffi.Struct { + external CFURLRef appURL; + + external CFArrayRef itemURLs; + + external ffi.Pointer passThruParams; + + @OptionBits() + external int launchFlags; + + external ffi.Pointer asyncRefCon; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CFURLRef appURL, + required CFArrayRef itemURLs, + required ffi.Pointer passThruParams, + required int launchFlags, + required ffi.Pointer asyncRefCon, + }) => $allocator() + ..ref.appURL = appURL + ..ref.itemURLs = itemURLs + ..ref.passThruParams = passThruParams + ..ref.launchFlags = launchFlags + ..ref.asyncRefCon = asyncRefCon; +} + +sealed class LSRequestedInfo { + static const kLSRequestExtension = 1; + static const kLSRequestTypeCreator = 2; + static const kLSRequestBasicFlagsOnly = 4; + static const kLSRequestAppTypeFlags = 8; + static const kLSRequestAllFlags = 16; + static const kLSRequestIconAndKind = 32; + static const kLSRequestExtensionFlagsOnly = 64; + static const kLSRequestAllInfo = -1; +} + +sealed class LSRolesMask { + static const kLSRolesNone = 1; + static const kLSRolesViewer = 2; + static const kLSRolesEditor = 4; + static const kLSRolesShell = 8; + static const kLSRolesAll = -1; +} + +typedef LSSharedFileListChangedProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + LSSharedFileListRef inList, + ffi.Pointer context, + ) + > + >; +typedef LSSharedFileListItemRef = ffi.Pointer; +typedef LSSharedFileListRef = ffi.Pointer; +typedef LSSharedFileListResolutionFlags = UInt32; +typedef LangCode = SInt16; +typedef LaunchFlags = UInt16; +typedef LaunchPBPtr = ffi.Pointer; + +@ffi.Packed(2) +final class LaunchParamBlockRec extends ffi.Struct { + @UInt32() + external int reserved1; + + @UInt16() + external int reserved2; + + @UInt16() + external int launchBlockID; + + @UInt32() + external int launchEPBLength; + + @UInt16() + external int launchFileFlags; + + @LaunchFlags() + external int launchControlFlags; + + external FSRefPtr launchAppRef; + + external ProcessSerialNumber launchProcessSN; + + @UInt32() + external int launchPreferredSize; + + @UInt32() + external int launchMinimumSize; + + @UInt32() + external int launchAvailableSize; + + external AppParametersPtr launchAppParameters; +} + +final class LcarCaretClassEntry extends ffi.Struct { + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array partials; +} + +@ffi.Packed(2) +final class LcarCaretTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt16() + external int format; + + external SFNTLookupTable lookup; +} + +typedef LcarCaretTablePtr = ffi.Pointer; + +@ffi.Packed(2) +final class LocalDateTime extends ffi.Struct { + @UInt16() + external int highSeconds; + + @UInt32() + external int lowSeconds; + + @UInt16() + external int fraction$1; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int highSeconds, + required int lowSeconds, + required int fraction$1, + }) => $allocator() + ..ref.highSeconds = highSeconds + ..ref.lowSeconds = lowSeconds + ..ref.fraction$1 = fraction$1; +} + +typedef LocalDateTimeHandle = ffi.Pointer; +typedef LocalDateTimePtr = ffi.Pointer; + +@ffi.Packed(2) +final class LocaleAndVariant extends ffi.Struct { + external LocaleRef locale; + + @LocaleOperationVariant() + external int opVariant; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required LocaleRef locale, + required int opVariant, + }) => $allocator() + ..ref.locale = locale + ..ref.opVariant = opVariant; +} + +typedef LocaleNameMask = UInt32; +typedef LocaleOperationClass = FourCharCode; +typedef LocaleOperationVariant = FourCharCode; +typedef LocalePartMask = UInt32; +typedef LocaleRef = ffi.Pointer; +typedef LogicalAddress = ffi.Pointer; + +final class LongDateCvt extends ffi.Union { + @SInt64() + external int c; + + external UnnamedStruct$14 hl; +} + +typedef LongDateField = SInt8; + +final class LongDateRec extends ffi.Union { + external UnnamedStruct$15 ld; + + @ffi.Array.multi([14]) + external ffi.Array list; + + external UnnamedStruct$16 od; +} + +typedef LongDateTime = SInt64; + +final class LtagStringRange extends ffi.Struct { + @UInt16() + external int offset; + + @UInt16() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int length, + }) => $allocator() + ..ref.offset = offset + ..ref.length = length; +} + +@ffi.Packed(2) +final class LtagTable extends ffi.Struct { + @UInt32() + external int version; + + @UInt32() + external int flags; + + @UInt32() + external int numTags; + + @ffi.Array.multi([1]) + external ffi.Array tagRange; +} + +const int MACE3Type = 1296122675; + +const int MACE6Type = 1296122678; + +typedef MDItemRef = ffi.Pointer<__MDItem>; + +enum MDLabelDomain { + kMDLabelUserDomain(0), + kMDLabelLocalDomain(1); + + final int value; + const MDLabelDomain(this.value); + + static MDLabelDomain fromValue(int value) => switch (value) { + 0 => kMDLabelUserDomain, + 1 => kMDLabelLocalDomain, + _ => throw ArgumentError('Unknown value for MDLabelDomain: $value'), + }; +} + +typedef MDLabelRef = ffi.Pointer<__MDLabel>; + +final class MDQueryBatchingParams extends ffi.Struct { + @ffi.Size() + external int first_max_num; + + @ffi.Size() + external int first_max_ms; + + @ffi.Size() + external int progress_max_num; + + @ffi.Size() + external int progress_max_ms; + + @ffi.Size() + external int update_max_num; + + @ffi.Size() + external int update_max_ms; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int first_max_num, + required int first_max_ms, + required int progress_max_num, + required int progress_max_ms, + required int update_max_num, + required int update_max_ms, + }) => $allocator() + ..ref.first_max_num = first_max_num + ..ref.first_max_ms = first_max_ms + ..ref.progress_max_num = progress_max_num + ..ref.progress_max_ms = progress_max_ms + ..ref.update_max_num = update_max_num + ..ref.update_max_ms = update_max_ms; +} + +typedef MDQueryCreateResultFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + MDQueryRef query, + MDItemRef item, + ffi.Pointer context, + ) + > + >; +typedef MDQueryCreateValueFunction = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + MDQueryRef query, + CFStringRef attrName, + CFTypeRef attrValue, + ffi.Pointer context, + ) + > + >; + +enum MDQueryOptionFlags { + kMDQuerySynchronous(1), + kMDQueryWantsUpdates(4), + kMDQueryAllowFSTranslation(8); + + final int value; + const MDQueryOptionFlags(this.value); + + static MDQueryOptionFlags fromValue(int value) => switch (value) { + 1 => kMDQuerySynchronous, + 4 => kMDQueryWantsUpdates, + 8 => kMDQueryAllowFSTranslation, + _ => throw ArgumentError('Unknown value for MDQueryOptionFlags: $value'), + }; +} + +typedef MDQueryRef = ffi.Pointer<__MDQuery>; +typedef MDQuerySortComparatorFunction = + ffi.Pointer< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer attrs1, + ffi.Pointer attrs2, + ffi.Pointer context, + ) + > + >; + +enum MDQuerySortOptionFlags { + kMDQueryReverseSortOrderFlag(1); + + final int value; + const MDQuerySortOptionFlags(this.value); + + static MDQuerySortOptionFlags fromValue(int value) => switch (value) { + 1 => kMDQueryReverseSortOrderFlag, + _ => throw ArgumentError( + 'Unknown value for MDQuerySortOptionFlags: $value', + ), + }; +} + +typedef MDS_DB_HANDLE = CSSM_DL_DB_HANDLE; +typedef MDS_FUNCS = mds_funcs; +typedef MDS_FUNCS_PTR = ffi.Pointer; +typedef MDS_HANDLE = CSSM_DL_HANDLE; + +@ffi.Packed(2) +final class MIDIDataChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @ffi.Array.multi([1]) + external ffi.Array MIDIdata; +} + +typedef MIDIDataChunkPtr = ffi.Pointer; + +const int MIDIDataID = 1296647241; + +typedef MPAddressSpaceID = ffi.Pointer; + +final class MPAddressSpaceInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + external MPCoherenceID groupID; + + @ItemCount() + external int nTasks; + + @ffi.Array.multi([16]) + external ffi.Array vsid; +} + +typedef MPAreaID = ffi.Pointer; +typedef MPCoherenceID = ffi.Pointer; +typedef MPConsoleID = ffi.Pointer; +typedef MPCpuID = ffi.Pointer; +typedef MPCriticalRegionID = ffi.Pointer; + +final class MPCriticalRegionInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + @OSType() + external int regionName; + + @ItemCount() + external int nWaiting; + + external MPTaskID waitingTaskID; + + external MPTaskID owningTask; + + @ItemCount() + external int count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required MPProcessID processID, + required int regionName, + required int nWaiting, + required MPTaskID waitingTaskID, + required MPTaskID owningTask, + required int count, + }) => $allocator() + ..ref.version = version + ..ref.processID = processID + ..ref.regionName = regionName + ..ref.nWaiting = nWaiting + ..ref.waitingTaskID = waitingTaskID + ..ref.owningTask = owningTask + ..ref.count = count; +} + +typedef MPDebuggerLevel = UInt32; + +enum MPEG4ObjectID { + kMPEG4Object_AAC_Main(1), + kMPEG4Object_AAC_LC(2), + kMPEG4Object_AAC_SSR(3), + kMPEG4Object_AAC_LTP(4), + kMPEG4Object_AAC_SBR(5), + kMPEG4Object_AAC_Scalable(6), + kMPEG4Object_TwinVQ(7), + kMPEG4Object_CELP(8), + kMPEG4Object_HVXC(9); + + final int value; + const MPEG4ObjectID(this.value); + + static MPEG4ObjectID fromValue(int value) => switch (value) { + 1 => kMPEG4Object_AAC_Main, + 2 => kMPEG4Object_AAC_LC, + 3 => kMPEG4Object_AAC_SSR, + 4 => kMPEG4Object_AAC_LTP, + 5 => kMPEG4Object_AAC_SBR, + 6 => kMPEG4Object_AAC_Scalable, + 7 => kMPEG4Object_TwinVQ, + 8 => kMPEG4Object_CELP, + 9 => kMPEG4Object_HVXC, + _ => throw ArgumentError('Unknown value for MPEG4ObjectID: $value'), + }; +} + +typedef MPEventFlags = UInt32; +typedef MPEventID = ffi.Pointer; + +final class MPEventInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + @OSType() + external int eventName; + + @ItemCount() + external int nWaiting; + + external MPTaskID waitingTaskID; + + @MPEventFlags() + external int events; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required MPProcessID processID, + required int eventName, + required int nWaiting, + required MPTaskID waitingTaskID, + required int events, + }) => $allocator() + ..ref.version = version + ..ref.processID = processID + ..ref.eventName = eventName + ..ref.nWaiting = nWaiting + ..ref.waitingTaskID = waitingTaskID + ..ref.events = events; +} + +typedef MPExceptionKind = UInt32; +typedef MPIsFullyInitializedProc = + ffi.Pointer>; +@Deprecated('Deprecated') +const int MPLibrary_DevelopmentRevision = 1; + +@Deprecated('Deprecated') +const int MPLibrary_MajorVersion = 2; + +@Deprecated('Deprecated') +const int MPLibrary_MinorVersion = 3; + +@Deprecated('Deprecated') +const int MPLibrary_Release = 1; + +typedef MPNotificationID = ffi.Pointer; + +final class MPNotificationInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + @OSType() + external int notificationName; + + external MPQueueID queueID; + + external ffi.Pointer p1; + + external ffi.Pointer p2; + + external ffi.Pointer p3; + + external MPEventID eventID; + + @MPEventFlags() + external int events; + + external MPSemaphoreID semaphoreID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required MPProcessID processID, + required int notificationName, + required MPQueueID queueID, + required ffi.Pointer p1, + required ffi.Pointer p2, + required ffi.Pointer p3, + required MPEventID eventID, + required int events, + required MPSemaphoreID semaphoreID, + }) => $allocator() + ..ref.version = version + ..ref.processID = processID + ..ref.notificationName = notificationName + ..ref.queueID = queueID + ..ref.p1 = p1 + ..ref.p2 = p2 + ..ref.p3 = p3 + ..ref.eventID = eventID + ..ref.events = events + ..ref.semaphoreID = semaphoreID; +} + +typedef MPOpaqueID = ffi.Pointer; +typedef MPOpaqueIDClass = UInt32; +typedef MPPageSizeClass = UInt32; +typedef MPProcessID = ffi.Pointer; +typedef MPQueueID = ffi.Pointer; + +final class MPQueueInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + @OSType() + external int queueName; + + @ItemCount() + external int nWaiting; + + external MPTaskID waitingTaskID; + + @ItemCount() + external int nMessages; + + @ItemCount() + external int nReserved; + + external ffi.Pointer p1; + + external ffi.Pointer p2; + + external ffi.Pointer p3; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required MPProcessID processID, + required int queueName, + required int nWaiting, + required MPTaskID waitingTaskID, + required int nMessages, + required int nReserved, + required ffi.Pointer p1, + required ffi.Pointer p2, + required ffi.Pointer p3, + }) => $allocator() + ..ref.version = version + ..ref.processID = processID + ..ref.queueName = queueName + ..ref.nWaiting = nWaiting + ..ref.waitingTaskID = waitingTaskID + ..ref.nMessages = nMessages + ..ref.nReserved = nReserved + ..ref.p1 = p1 + ..ref.p2 = p2 + ..ref.p3 = p3; +} + +typedef MPRemoteContext = UInt8; +typedef MPRemoteProcedure = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer parameter) + > + >; +typedef MPSemaphoreCount = ItemCount; +typedef MPSemaphoreID = ffi.Pointer; + +final class MPSemaphoreInfo extends ffi.Struct { + @PBVersion() + external int version; + + external MPProcessID processID; + + @OSType() + external int semaphoreName; + + @ItemCount() + external int nWaiting; + + external MPTaskID waitingTaskID; + + @ItemCount() + external int maximum; + + @ItemCount() + external int count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required MPProcessID processID, + required int semaphoreName, + required int nWaiting, + required MPTaskID waitingTaskID, + required int maximum, + required int count, + }) => $allocator() + ..ref.version = version + ..ref.processID = processID + ..ref.semaphoreName = semaphoreName + ..ref.nWaiting = nWaiting + ..ref.waitingTaskID = waitingTaskID + ..ref.maximum = maximum + ..ref.count = count; +} + +typedef MPTaskID = ffi.Pointer; + +final class MPTaskInfo extends ffi.Struct { + @PBVersion() + external int version; + + @OSType() + external int name; + + @OSType() + external int queueName; + + @UInt16() + external int runState; + + @UInt16() + external int lastCPU; + + @UInt32() + external int weight; + + external MPProcessID processID; + + external AbsoluteTime cpuTime; + + external AbsoluteTime schedTime; + + external AbsoluteTime creationTime; + + @ItemCount() + external int codePageFaults; + + @ItemCount() + external int dataPageFaults; + + @ItemCount() + external int preemptions; + + external MPCpuID cpuID; + + external MPOpaqueID blockedObject; + + external MPAddressSpaceID spaceID; + + external LogicalAddress stackBase; + + external LogicalAddress stackLimit; + + external LogicalAddress stackCurr; +} + +final class MPTaskInfoVersion2 extends ffi.Struct { + @PBVersion() + external int version; + + @OSType() + external int name; + + @OSType() + external int queueName; + + @UInt16() + external int runState; + + @UInt16() + external int lastCPU; + + @UInt32() + external int weight; + + external MPProcessID processID; + + external AbsoluteTime cpuTime; + + external AbsoluteTime schedTime; + + external AbsoluteTime creationTime; + + @ItemCount() + external int codePageFaults; + + @ItemCount() + external int dataPageFaults; + + @ItemCount() + external int preemptions; + + external MPCpuID cpuID; +} + +typedef MPTaskOptions = OptionBits; +typedef MPTaskStateKind = UInt32; +typedef MPTaskWeight = UInt32; +typedef MPTimerID = ffi.Pointer; + +/// WARNING: MTLBuffer is a stub. To generate bindings for this class, include +/// MTLBuffer in your config's objc-protocols list. +/// +/// MTLBuffer +extension type MTLBuffer._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [MTLBuffer] that points to the same underlying object as [other]. + MTLBuffer.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [MTLBuffer] that wraps the given raw object pointer. + MTLBuffer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: MTLDevice is a stub. To generate bindings for this class, include +/// MTLDevice in your config's objc-protocols list. +/// +/// MTLDevice +extension type MTLDevice._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [MTLDevice] that points to the same underlying object as [other]. + MTLDevice.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [MTLDevice] that wraps the given raw object pointer. + MTLDevice.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +enum MTLPixelFormat { + MTLPixelFormatInvalid(0), + MTLPixelFormatA8Unorm(1), + MTLPixelFormatR8Unorm(10), + MTLPixelFormatR8Unorm_sRGB(11), + MTLPixelFormatR8Snorm(12), + MTLPixelFormatR8Uint(13), + MTLPixelFormatR8Sint(14), + MTLPixelFormatR16Unorm(20), + MTLPixelFormatR16Snorm(22), + MTLPixelFormatR16Uint(23), + MTLPixelFormatR16Sint(24), + MTLPixelFormatR16Float(25), + MTLPixelFormatRG8Unorm(30), + MTLPixelFormatRG8Unorm_sRGB(31), + MTLPixelFormatRG8Snorm(32), + MTLPixelFormatRG8Uint(33), + MTLPixelFormatRG8Sint(34), + MTLPixelFormatB5G6R5Unorm(40), + MTLPixelFormatA1BGR5Unorm(41), + MTLPixelFormatABGR4Unorm(42), + MTLPixelFormatBGR5A1Unorm(43), + MTLPixelFormatR32Uint(53), + MTLPixelFormatR32Sint(54), + MTLPixelFormatR32Float(55), + MTLPixelFormatRG16Unorm(60), + MTLPixelFormatRG16Snorm(62), + MTLPixelFormatRG16Uint(63), + MTLPixelFormatRG16Sint(64), + MTLPixelFormatRG16Float(65), + MTLPixelFormatRGBA8Unorm(70), + MTLPixelFormatRGBA8Unorm_sRGB(71), + MTLPixelFormatRGBA8Snorm(72), + MTLPixelFormatRGBA8Uint(73), + MTLPixelFormatRGBA8Sint(74), + MTLPixelFormatBGRA8Unorm(80), + MTLPixelFormatBGRA8Unorm_sRGB(81), + MTLPixelFormatRGB10A2Unorm(90), + MTLPixelFormatRGB10A2Uint(91), + MTLPixelFormatRG11B10Float(92), + MTLPixelFormatRGB9E5Float(93), + MTLPixelFormatBGR10A2Unorm(94), + MTLPixelFormatBGR10_XR(554), + MTLPixelFormatBGR10_XR_sRGB(555), + MTLPixelFormatRG32Uint(103), + MTLPixelFormatRG32Sint(104), + MTLPixelFormatRG32Float(105), + MTLPixelFormatRGBA16Unorm(110), + MTLPixelFormatRGBA16Snorm(112), + MTLPixelFormatRGBA16Uint(113), + MTLPixelFormatRGBA16Sint(114), + MTLPixelFormatRGBA16Float(115), + MTLPixelFormatBGRA10_XR(552), + MTLPixelFormatBGRA10_XR_sRGB(553), + MTLPixelFormatRGBA32Uint(123), + MTLPixelFormatRGBA32Sint(124), + MTLPixelFormatRGBA32Float(125), + MTLPixelFormatBC1_RGBA(130), + MTLPixelFormatBC1_RGBA_sRGB(131), + MTLPixelFormatBC2_RGBA(132), + MTLPixelFormatBC2_RGBA_sRGB(133), + MTLPixelFormatBC3_RGBA(134), + MTLPixelFormatBC3_RGBA_sRGB(135), + MTLPixelFormatBC4_RUnorm(140), + MTLPixelFormatBC4_RSnorm(141), + MTLPixelFormatBC5_RGUnorm(142), + MTLPixelFormatBC5_RGSnorm(143), + MTLPixelFormatBC6H_RGBFloat(150), + MTLPixelFormatBC6H_RGBUfloat(151), + MTLPixelFormatBC7_RGBAUnorm(152), + MTLPixelFormatBC7_RGBAUnorm_sRGB(153), + MTLPixelFormatPVRTC_RGB_2BPP(160), + MTLPixelFormatPVRTC_RGB_2BPP_sRGB(161), + MTLPixelFormatPVRTC_RGB_4BPP(162), + MTLPixelFormatPVRTC_RGB_4BPP_sRGB(163), + MTLPixelFormatPVRTC_RGBA_2BPP(164), + MTLPixelFormatPVRTC_RGBA_2BPP_sRGB(165), + MTLPixelFormatPVRTC_RGBA_4BPP(166), + MTLPixelFormatPVRTC_RGBA_4BPP_sRGB(167), + MTLPixelFormatEAC_R11Unorm(170), + MTLPixelFormatEAC_R11Snorm(172), + MTLPixelFormatEAC_RG11Unorm(174), + MTLPixelFormatEAC_RG11Snorm(176), + MTLPixelFormatEAC_RGBA8(178), + MTLPixelFormatEAC_RGBA8_sRGB(179), + MTLPixelFormatETC2_RGB8(180), + MTLPixelFormatETC2_RGB8_sRGB(181), + MTLPixelFormatETC2_RGB8A1(182), + MTLPixelFormatETC2_RGB8A1_sRGB(183), + MTLPixelFormatASTC_4x4_sRGB(186), + MTLPixelFormatASTC_5x4_sRGB(187), + MTLPixelFormatASTC_5x5_sRGB(188), + MTLPixelFormatASTC_6x5_sRGB(189), + MTLPixelFormatASTC_6x6_sRGB(190), + MTLPixelFormatASTC_8x5_sRGB(192), + MTLPixelFormatASTC_8x6_sRGB(193), + MTLPixelFormatASTC_8x8_sRGB(194), + MTLPixelFormatASTC_10x5_sRGB(195), + MTLPixelFormatASTC_10x6_sRGB(196), + MTLPixelFormatASTC_10x8_sRGB(197), + MTLPixelFormatASTC_10x10_sRGB(198), + MTLPixelFormatASTC_12x10_sRGB(199), + MTLPixelFormatASTC_12x12_sRGB(200), + MTLPixelFormatASTC_4x4_LDR(204), + MTLPixelFormatASTC_5x4_LDR(205), + MTLPixelFormatASTC_5x5_LDR(206), + MTLPixelFormatASTC_6x5_LDR(207), + MTLPixelFormatASTC_6x6_LDR(208), + MTLPixelFormatASTC_8x5_LDR(210), + MTLPixelFormatASTC_8x6_LDR(211), + MTLPixelFormatASTC_8x8_LDR(212), + MTLPixelFormatASTC_10x5_LDR(213), + MTLPixelFormatASTC_10x6_LDR(214), + MTLPixelFormatASTC_10x8_LDR(215), + MTLPixelFormatASTC_10x10_LDR(216), + MTLPixelFormatASTC_12x10_LDR(217), + MTLPixelFormatASTC_12x12_LDR(218), + MTLPixelFormatASTC_4x4_HDR(222), + MTLPixelFormatASTC_5x4_HDR(223), + MTLPixelFormatASTC_5x5_HDR(224), + MTLPixelFormatASTC_6x5_HDR(225), + MTLPixelFormatASTC_6x6_HDR(226), + MTLPixelFormatASTC_8x5_HDR(228), + MTLPixelFormatASTC_8x6_HDR(229), + MTLPixelFormatASTC_8x8_HDR(230), + MTLPixelFormatASTC_10x5_HDR(231), + MTLPixelFormatASTC_10x6_HDR(232), + MTLPixelFormatASTC_10x8_HDR(233), + MTLPixelFormatASTC_10x10_HDR(234), + MTLPixelFormatASTC_12x10_HDR(235), + MTLPixelFormatASTC_12x12_HDR(236), + MTLPixelFormatGBGR422(240), + MTLPixelFormatBGRG422(241), + MTLPixelFormatDepth16Unorm(250), + MTLPixelFormatDepth32Float(252), + MTLPixelFormatStencil8(253), + MTLPixelFormatDepth24Unorm_Stencil8(255), + MTLPixelFormatDepth32Float_Stencil8(260), + MTLPixelFormatX32_Stencil8(261), + MTLPixelFormatX24_Stencil8(262), + MTLPixelFormatUnspecialized(263); + + final int value; + const MTLPixelFormat(this.value); + + static MTLPixelFormat fromValue(int value) => switch (value) { + 0 => MTLPixelFormatInvalid, + 1 => MTLPixelFormatA8Unorm, + 10 => MTLPixelFormatR8Unorm, + 11 => MTLPixelFormatR8Unorm_sRGB, + 12 => MTLPixelFormatR8Snorm, + 13 => MTLPixelFormatR8Uint, + 14 => MTLPixelFormatR8Sint, + 20 => MTLPixelFormatR16Unorm, + 22 => MTLPixelFormatR16Snorm, + 23 => MTLPixelFormatR16Uint, + 24 => MTLPixelFormatR16Sint, + 25 => MTLPixelFormatR16Float, + 30 => MTLPixelFormatRG8Unorm, + 31 => MTLPixelFormatRG8Unorm_sRGB, + 32 => MTLPixelFormatRG8Snorm, + 33 => MTLPixelFormatRG8Uint, + 34 => MTLPixelFormatRG8Sint, + 40 => MTLPixelFormatB5G6R5Unorm, + 41 => MTLPixelFormatA1BGR5Unorm, + 42 => MTLPixelFormatABGR4Unorm, + 43 => MTLPixelFormatBGR5A1Unorm, + 53 => MTLPixelFormatR32Uint, + 54 => MTLPixelFormatR32Sint, + 55 => MTLPixelFormatR32Float, + 60 => MTLPixelFormatRG16Unorm, + 62 => MTLPixelFormatRG16Snorm, + 63 => MTLPixelFormatRG16Uint, + 64 => MTLPixelFormatRG16Sint, + 65 => MTLPixelFormatRG16Float, + 70 => MTLPixelFormatRGBA8Unorm, + 71 => MTLPixelFormatRGBA8Unorm_sRGB, + 72 => MTLPixelFormatRGBA8Snorm, + 73 => MTLPixelFormatRGBA8Uint, + 74 => MTLPixelFormatRGBA8Sint, + 80 => MTLPixelFormatBGRA8Unorm, + 81 => MTLPixelFormatBGRA8Unorm_sRGB, + 90 => MTLPixelFormatRGB10A2Unorm, + 91 => MTLPixelFormatRGB10A2Uint, + 92 => MTLPixelFormatRG11B10Float, + 93 => MTLPixelFormatRGB9E5Float, + 94 => MTLPixelFormatBGR10A2Unorm, + 554 => MTLPixelFormatBGR10_XR, + 555 => MTLPixelFormatBGR10_XR_sRGB, + 103 => MTLPixelFormatRG32Uint, + 104 => MTLPixelFormatRG32Sint, + 105 => MTLPixelFormatRG32Float, + 110 => MTLPixelFormatRGBA16Unorm, + 112 => MTLPixelFormatRGBA16Snorm, + 113 => MTLPixelFormatRGBA16Uint, + 114 => MTLPixelFormatRGBA16Sint, + 115 => MTLPixelFormatRGBA16Float, + 552 => MTLPixelFormatBGRA10_XR, + 553 => MTLPixelFormatBGRA10_XR_sRGB, + 123 => MTLPixelFormatRGBA32Uint, + 124 => MTLPixelFormatRGBA32Sint, + 125 => MTLPixelFormatRGBA32Float, + 130 => MTLPixelFormatBC1_RGBA, + 131 => MTLPixelFormatBC1_RGBA_sRGB, + 132 => MTLPixelFormatBC2_RGBA, + 133 => MTLPixelFormatBC2_RGBA_sRGB, + 134 => MTLPixelFormatBC3_RGBA, + 135 => MTLPixelFormatBC3_RGBA_sRGB, + 140 => MTLPixelFormatBC4_RUnorm, + 141 => MTLPixelFormatBC4_RSnorm, + 142 => MTLPixelFormatBC5_RGUnorm, + 143 => MTLPixelFormatBC5_RGSnorm, + 150 => MTLPixelFormatBC6H_RGBFloat, + 151 => MTLPixelFormatBC6H_RGBUfloat, + 152 => MTLPixelFormatBC7_RGBAUnorm, + 153 => MTLPixelFormatBC7_RGBAUnorm_sRGB, + 160 => MTLPixelFormatPVRTC_RGB_2BPP, + 161 => MTLPixelFormatPVRTC_RGB_2BPP_sRGB, + 162 => MTLPixelFormatPVRTC_RGB_4BPP, + 163 => MTLPixelFormatPVRTC_RGB_4BPP_sRGB, + 164 => MTLPixelFormatPVRTC_RGBA_2BPP, + 165 => MTLPixelFormatPVRTC_RGBA_2BPP_sRGB, + 166 => MTLPixelFormatPVRTC_RGBA_4BPP, + 167 => MTLPixelFormatPVRTC_RGBA_4BPP_sRGB, + 170 => MTLPixelFormatEAC_R11Unorm, + 172 => MTLPixelFormatEAC_R11Snorm, + 174 => MTLPixelFormatEAC_RG11Unorm, + 176 => MTLPixelFormatEAC_RG11Snorm, + 178 => MTLPixelFormatEAC_RGBA8, + 179 => MTLPixelFormatEAC_RGBA8_sRGB, + 180 => MTLPixelFormatETC2_RGB8, + 181 => MTLPixelFormatETC2_RGB8_sRGB, + 182 => MTLPixelFormatETC2_RGB8A1, + 183 => MTLPixelFormatETC2_RGB8A1_sRGB, + 186 => MTLPixelFormatASTC_4x4_sRGB, + 187 => MTLPixelFormatASTC_5x4_sRGB, + 188 => MTLPixelFormatASTC_5x5_sRGB, + 189 => MTLPixelFormatASTC_6x5_sRGB, + 190 => MTLPixelFormatASTC_6x6_sRGB, + 192 => MTLPixelFormatASTC_8x5_sRGB, + 193 => MTLPixelFormatASTC_8x6_sRGB, + 194 => MTLPixelFormatASTC_8x8_sRGB, + 195 => MTLPixelFormatASTC_10x5_sRGB, + 196 => MTLPixelFormatASTC_10x6_sRGB, + 197 => MTLPixelFormatASTC_10x8_sRGB, + 198 => MTLPixelFormatASTC_10x10_sRGB, + 199 => MTLPixelFormatASTC_12x10_sRGB, + 200 => MTLPixelFormatASTC_12x12_sRGB, + 204 => MTLPixelFormatASTC_4x4_LDR, + 205 => MTLPixelFormatASTC_5x4_LDR, + 206 => MTLPixelFormatASTC_5x5_LDR, + 207 => MTLPixelFormatASTC_6x5_LDR, + 208 => MTLPixelFormatASTC_6x6_LDR, + 210 => MTLPixelFormatASTC_8x5_LDR, + 211 => MTLPixelFormatASTC_8x6_LDR, + 212 => MTLPixelFormatASTC_8x8_LDR, + 213 => MTLPixelFormatASTC_10x5_LDR, + 214 => MTLPixelFormatASTC_10x6_LDR, + 215 => MTLPixelFormatASTC_10x8_LDR, + 216 => MTLPixelFormatASTC_10x10_LDR, + 217 => MTLPixelFormatASTC_12x10_LDR, + 218 => MTLPixelFormatASTC_12x12_LDR, + 222 => MTLPixelFormatASTC_4x4_HDR, + 223 => MTLPixelFormatASTC_5x4_HDR, + 224 => MTLPixelFormatASTC_5x5_HDR, + 225 => MTLPixelFormatASTC_6x5_HDR, + 226 => MTLPixelFormatASTC_6x6_HDR, + 228 => MTLPixelFormatASTC_8x5_HDR, + 229 => MTLPixelFormatASTC_8x6_HDR, + 230 => MTLPixelFormatASTC_8x8_HDR, + 231 => MTLPixelFormatASTC_10x5_HDR, + 232 => MTLPixelFormatASTC_10x6_HDR, + 233 => MTLPixelFormatASTC_10x8_HDR, + 234 => MTLPixelFormatASTC_10x10_HDR, + 235 => MTLPixelFormatASTC_12x10_HDR, + 236 => MTLPixelFormatASTC_12x12_HDR, + 240 => MTLPixelFormatGBGR422, + 241 => MTLPixelFormatBGRG422, + 250 => MTLPixelFormatDepth16Unorm, + 252 => MTLPixelFormatDepth32Float, + 253 => MTLPixelFormatStencil8, + 255 => MTLPixelFormatDepth24Unorm_Stencil8, + 260 => MTLPixelFormatDepth32Float_Stencil8, + 261 => MTLPixelFormatX32_Stencil8, + 262 => MTLPixelFormatX24_Stencil8, + 263 => MTLPixelFormatUnspecialized, + _ => throw ArgumentError('Unknown value for MTLPixelFormat: $value'), + }; +} + +/// WARNING: MTLTexture is a stub. To generate bindings for this class, include +/// MTLTexture in your config's objc-protocols list. +/// +/// MTLTexture +extension type MTLTexture._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [MTLTexture] that points to the same underlying object as [other]. + MTLTexture.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [MTLTexture] that wraps the given raw object pointer. + MTLTexture.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +final class MacPolygon extends ffi.Struct { + @ffi.Short() + external int polySize; + + external Rect polyBBox; + + @ffi.Array.multi([1]) + external ffi.Array polyPoints; +} + +final class MachineInformation extends ffi.Struct { + external ffi.Pointer __unusedMachineInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedMachineInformationField, + }) => + $allocator() + ..ref.__unusedMachineInformationField = $unusedMachineInformationField; +} + +final class MachineInformationPowerPC extends ffi.Struct { + external UnsignedWide CTR; + + external UnsignedWide LR; + + external UnsignedWide PC; + + @ffi.UnsignedLong() + external int CRRegister; + + @ffi.UnsignedLong() + external int XER; + + @ffi.UnsignedLong() + external int MSR; + + @ffi.UnsignedLong() + external int MQ; + + @ffi.UnsignedLong() + external int ExceptKind; + + @ffi.UnsignedLong() + external int DSISR; + + external UnsignedWide DAR; + + external UnsignedWide Reserved; +} + +@ffi.Packed(2) +final class MachineLocation extends ffi.Struct { + @Fract() + external int latitude; + + @Fract() + external int longitude; + + external UnnamedUnion$3 u; +} + +@ffi.Packed(2) +final class Marker extends ffi.Struct { + @MarkerIdType() + external int id; + + @UInt32() + external int position; + + @ffi.Array.multi([256]) + external ffi.Array markerName; +} + +@ffi.Packed(2) +final class MarkerChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt16() + external int numMarkers; + + @ffi.Array.multi([1]) + external ffi.Array Markers; +} + +typedef MarkerChunkPtr = ffi.Pointer; + +const int MarkerID = 1296126539; + +typedef MarkerIdType = SInt16; + +final class MemoryExceptionInformation extends ffi.Struct { + external AreaID theArea; + + external LogicalAddress theAddress; + + @OSStatus() + external int theError; + + @MemoryReferenceKind() + external int theReference; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required AreaID theArea, + required LogicalAddress theAddress, + required int theError, + required int theReference, + }) => $allocator() + ..ref.theArea = theArea + ..ref.theAddress = theAddress + ..ref.theError = theError + ..ref.theReference = theReference; +} + +typedef MemoryReferenceKind = ffi.UnsignedLong; +typedef DartMemoryReferenceKind = int; + +/// MicrophoneInjection +extension MicrophoneInjection on AVAudioSession { + /// isMicrophoneInjectionAvailable + bool get isMicrophoneInjectionAvailable { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.isMicrophoneInjectionAvailable', + iOS: (false, (18, 2, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635( + _$$ref.pointer, + _sel_isMicrophoneInjectionAvailable, + ); + } + + /// preferredMicrophoneInjectionMode + AVAudioSessionMicrophoneInjectionMode get preferredMicrophoneInjectionMode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.preferredMicrophoneInjectionMode', + iOS: (false, (18, 2, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_6pykvq( + _$$ref.pointer, + _sel_preferredMicrophoneInjectionMode, + ); + return AVAudioSessionMicrophoneInjectionMode.fromValue($ret); + } + + /// setPreferredMicrophoneInjectionMode:error: + bool setPreferredMicrophoneInjectionMode( + AVAudioSessionMicrophoneInjectionMode inValue, + ) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPreferredMicrophoneInjectionMode:error:', + iOS: (false, (18, 2, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_2naryv( + _$$ref.pointer, + _sel_setPreferredMicrophoneInjectionMode_error_, + inValue.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +@ffi.Packed(2) +final class MixedModeStateRecord extends ffi.Struct { + @UInt32() + external int state1; + + @UInt32() + external int state2; + + @UInt32() + external int state3; + + @UInt32() + external int state4; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int state1, + required int state2, + required int state3, + required int state4, + }) => $allocator() + ..ref.state1 = state1 + ..ref.state2 = state2 + ..ref.state3 = state3 + ..ref.state4 = state4; +} + +@ffi.Packed(2) +final class MortChain extends ffi.Struct { + @MortSubtableMaskFlags() + external int defaultFlags; + + @UInt32() + external int length; + + @UInt16() + external int nFeatures; + + @UInt16() + external int nSubtables; + + @ffi.Array.multi([1]) + external ffi.Array featureEntries; +} + +final class MortContextualSubtable extends ffi.Struct { + external STHeader header; + + @UInt16() + external int substitutionTableOffset; +} + +@ffi.Packed(2) +final class MortFeatureEntry extends ffi.Struct { + @UInt16() + external int featureType; + + @UInt16() + external int featureSelector; + + @MortSubtableMaskFlags() + external int enableFlags; + + @MortSubtableMaskFlags() + external int disableFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int featureType, + required int featureSelector, + required int enableFlags, + required int disableFlags, + }) => $allocator() + ..ref.featureType = featureType + ..ref.featureSelector = featureSelector + ..ref.enableFlags = enableFlags + ..ref.disableFlags = disableFlags; +} + +final class MortInsertionSubtable extends ffi.Struct { + external STHeader header; +} + +typedef MortLigatureActionEntry = UInt32; + +final class MortLigatureSubtable extends ffi.Struct { + external STHeader header; + + @UInt16() + external int ligatureActionTableOffset; + + @UInt16() + external int componentTableOffset; + + @UInt16() + external int ligatureTableOffset; +} + +final class MortRearrangementSubtable extends ffi.Struct { + external STHeader header; +} + +final class MortSpecificSubtable extends ffi.Union { + external MortRearrangementSubtable rearrangement; + + external MortContextualSubtable contextual; + + external MortLigatureSubtable ligature; + + external MortSwashSubtable swash; + + external MortInsertionSubtable insertion; +} + +@ffi.Packed(2) +final class MortSubtable extends ffi.Struct { + @UInt16() + external int length; + + @UInt16() + external int coverage; + + @MortSubtableMaskFlags() + external int flags; + + external MortSpecificSubtable u; +} + +typedef MortSubtableMaskFlags = UInt32; + +final class MortSwashSubtable extends ffi.Struct { + external SFNTLookupTable lookup; +} + +@ffi.Packed(2) +final class MortTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt32() + external int nChains; + + @ffi.Array.multi([1]) + external ffi.Array chains; +} + +@ffi.Packed(2) +final class MorxChain extends ffi.Struct { + @MortSubtableMaskFlags() + external int defaultFlags; + + @UInt32() + external int length; + + @UInt32() + external int nFeatures; + + @UInt32() + external int nSubtables; + + @ffi.Array.multi([1]) + external ffi.Array featureEntries; +} + +@ffi.Packed(2) +final class MorxContextualSubtable extends ffi.Struct { + external STXHeader header; + + @UInt32() + external int substitutionTableOffset; +} + +@ffi.Packed(2) +final class MorxInsertionSubtable extends ffi.Struct { + external STXHeader header; + + @UInt32() + external int insertionGlyphTableOffset; +} + +@ffi.Packed(2) +final class MorxLigatureSubtable extends ffi.Struct { + external STXHeader header; + + @UInt32() + external int ligatureActionTableOffset; + + @UInt32() + external int componentTableOffset; + + @UInt32() + external int ligatureTableOffset; +} + +final class MorxRearrangementSubtable extends ffi.Struct { + external STXHeader header; +} + +final class MorxSpecificSubtable extends ffi.Union { + external MorxRearrangementSubtable rearrangement; + + external MorxContextualSubtable contextual; + + external MorxLigatureSubtable ligature; + + external MortSwashSubtable swash; + + external MorxInsertionSubtable insertion; +} + +@ffi.Packed(2) +final class MorxSubtable extends ffi.Struct { + @UInt32() + external int length; + + @UInt32() + external int coverage; + + @MortSubtableMaskFlags() + external int flags; + + external MorxSpecificSubtable u; +} + +@ffi.Packed(2) +final class MorxTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt32() + external int nChains; + + @ffi.Array.multi([1]) + external ffi.Array chains; +} + +final class NCMConcatProfileSet extends ffi.Struct { + @OSType() + external int cmm; + + @UInt32() + external int flags; + + @UInt32() + external int flagsMask; + + @UInt32() + external int profileCount; + + @ffi.Array.multi([1]) + external ffi.Array profileSpecs; +} + +final class NCMConcatProfileSpec extends ffi.Struct { + @UInt32() + external int renderingIntent; + + @UInt32() + external int transformTag; + + external CMProfileRef profile; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int renderingIntent, + required int transformTag, + required CMProfileRef profile, + }) => $allocator() + ..ref.renderingIntent = renderingIntent + ..ref.transformTag = transformTag + ..ref.profile = profile; +} + +final class NCMDeviceProfileInfo extends ffi.Struct { + @UInt32() + external int dataVersion; + + @CMDeviceProfileID() + external int profileID; + + external CMProfileLocation profileLoc; + + external CFDictionaryRef profileName; + + external CMDeviceProfileScope profileScope; + + @UInt32() + external int reserved; +} + +final class NDR_record_t extends ffi.Struct { + @ffi.UnsignedChar() + external int mig_vers; + + @ffi.UnsignedChar() + external int if_vers; + + @ffi.UnsignedChar() + external int reserved1; + + @ffi.UnsignedChar() + external int mig_encoding; + + @ffi.UnsignedChar() + external int int_rep; + + @ffi.UnsignedChar() + external int char_rep; + + @ffi.UnsignedChar() + external int float_rep; + + @ffi.UnsignedChar() + external int reserved2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mig_vers, + required int if_vers, + required int reserved1, + required int mig_encoding, + required int int_rep, + required int char_rep, + required int float_rep, + required int reserved2, + }) => $allocator() + ..ref.mig_vers = mig_vers + ..ref.if_vers = if_vers + ..ref.reserved1 = reserved1 + ..ref.mig_encoding = mig_encoding + ..ref.int_rep = int_rep + ..ref.char_rep = char_rep + ..ref.float_rep = float_rep + ..ref.reserved2 = reserved2; +} + +typedef NItl4Handle = ffi.Pointer; +typedef NItl4Ptr = ffi.Pointer; + +@ffi.Packed(2) +final class NItl4Rec extends ffi.Struct { + @ffi.Short() + external int flags; + + @SInt32() + external int resourceType; + + @ffi.Short() + external int resourceNum; + + @ffi.Short() + external int version; + + @ffi.Short() + external int format; + + @ffi.Short() + external int resHeader; + + @SInt32() + external int resHeader2; + + @ffi.Short() + external int numTables; + + @SInt32() + external int mapOffset; + + @SInt32() + external int strOffset; + + @SInt32() + external int fetchOffset; + + @SInt32() + external int unTokenOffset; + + @SInt32() + external int defPartsOffset; + + @SInt32() + external int whtSpListOffset; + + @SInt32() + external int resOffset7; + + @SInt32() + external int resOffset8; + + @ffi.Short() + external int resLength1; + + @ffi.Short() + external int resLength2; + + @ffi.Short() + external int resLength3; + + @ffi.Short() + external int unTokenLength; + + @ffi.Short() + external int defPartsLength; + + @ffi.Short() + external int whtSpListLength; + + @ffi.Short() + external int resLength7; + + @ffi.Short() + external int resLength8; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int resourceType, + required int resourceNum, + required int version, + required int format, + required int resHeader, + required int resHeader2, + required int numTables, + required int mapOffset, + required int strOffset, + required int fetchOffset, + required int unTokenOffset, + required int defPartsOffset, + required int whtSpListOffset, + required int resOffset7, + required int resOffset8, + required int resLength1, + required int resLength2, + required int resLength3, + required int unTokenLength, + required int defPartsLength, + required int whtSpListLength, + required int resLength7, + required int resLength8, + }) => $allocator() + ..ref.flags = flags + ..ref.resourceType = resourceType + ..ref.resourceNum = resourceNum + ..ref.version = version + ..ref.format = format + ..ref.resHeader = resHeader + ..ref.resHeader2 = resHeader2 + ..ref.numTables = numTables + ..ref.mapOffset = mapOffset + ..ref.strOffset = strOffset + ..ref.fetchOffset = fetchOffset + ..ref.unTokenOffset = unTokenOffset + ..ref.defPartsOffset = defPartsOffset + ..ref.whtSpListOffset = whtSpListOffset + ..ref.resOffset7 = resOffset7 + ..ref.resOffset8 = resOffset8 + ..ref.resLength1 = resLength1 + ..ref.resLength2 = resLength2 + ..ref.resLength3 = resLength3 + ..ref.unTokenLength = unTokenLength + ..ref.defPartsLength = defPartsLength + ..ref.whtSpListLength = whtSpListLength + ..ref.resLength7 = resLength7 + ..ref.resLength8 = resLength8; +} + +const int NSASCIIStringEncoding = 1; + +sealed class NSActivityOptions { + static const NSActivityIdleDisplaySleepDisabled = 1099511627776; + static const NSActivityIdleSystemSleepDisabled = 1048576; + static const NSActivitySuddenTerminationDisabled = 16384; + static const NSActivityAutomaticTerminationDisabled = 32768; + static const NSActivityAnimationTrackingEnabled = 35184372088832; + static const NSActivityTrackingEnabled = 70368744177664; + static const NSActivityUserInitiated = 16777215; + static const NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; + static const NSActivityBackground = 255; + static const NSActivityLatencyCritical = 1095216660480; + static const NSActivityUserInteractive = 1095233437695; +} + +final class NSAffineTransformStruct extends ffi.Struct { + @CGFloat() + external double m11; + + @CGFloat() + external double m12; + + @CGFloat() + external double m21; + + @CGFloat() + external double m22; + + @CGFloat() + external double tX; + + @CGFloat() + external double tY; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double m11, + required double m12, + required double m21, + required double m22, + required double tX, + required double tY, + }) => $allocator() + ..ref.m11 = m11 + ..ref.m12 = m12 + ..ref.m21 = m21 + ..ref.m22 = m22 + ..ref.tX = tX + ..ref.tY = tY; +} + +sealed class NSAlignmentOptions { + static const NSAlignMinXInward = 1; + static const NSAlignMinYInward = 2; + static const NSAlignMaxXInward = 4; + static const NSAlignMaxYInward = 8; + static const NSAlignWidthInward = 16; + static const NSAlignHeightInward = 32; + static const NSAlignMinXOutward = 256; + static const NSAlignMinYOutward = 512; + static const NSAlignMaxXOutward = 1024; + static const NSAlignMaxYOutward = 2048; + static const NSAlignWidthOutward = 4096; + static const NSAlignHeightOutward = 8192; + static const NSAlignMinXNearest = 65536; + static const NSAlignMinYNearest = 131072; + static const NSAlignMaxXNearest = 262144; + static const NSAlignMaxYNearest = 524288; + static const NSAlignWidthNearest = 1048576; + static const NSAlignHeightNearest = 2097152; + static const NSAlignRectFlipped = -9223372036854775808; + static const NSAlignAllEdgesInward = 15; + static const NSAlignAllEdgesOutward = 3840; + static const NSAlignAllEdgesNearest = 983040; +} + +/// WARNING: NSAppleEventDescriptor is a stub. To generate bindings for this class, include +/// NSAppleEventDescriptor in your config's objc-interfaces list. +/// +/// NSAppleEventDescriptor +extension type NSAppleEventDescriptor._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSAppleEventDescriptor] that points to the same underlying object as [other]. + NSAppleEventDescriptor.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSAppleEventDescriptor] that wraps the given raw object pointer. + NSAppleEventDescriptor.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +typedef NSAppleEventManagerSuspensionID = + ffi.Pointer<__NSAppleEventManagerSuspension>; + +/// WARNING: NSArchiver is a stub. To generate bindings for this class, include +/// NSArchiver in your config's objc-interfaces list. +/// +/// NSArchiver +@Deprecated('Use NSKeyedArchiver instead') +extension type NSArchiver._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSCoder { + /// Constructs a [NSArchiver] that points to the same underlying object as [other]. + NSArchiver.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSArchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSArchiver] that wraps the given raw object pointer. + NSArchiver.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSArchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +/// NSArchiverCallback +extension NSArchiverCallback on objc.NSObject { + /// classForArchiver + objc.ObjCObject? get classForArchiver { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classForArchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForArchiver); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// replacementObjectForArchiver: + @Deprecated('Deprecated') + objc.ObjCObject? replacementObjectForArchiver(NSArchiver archiver) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + objc.checkOsVersionInternal( + 'NSObject.replacementObjectForArchiver:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_replacementObjectForArchiver_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +const int NSArgumentEvaluationScriptError = 3; + +const int NSArgumentsWrongScriptError = 6; + +/// NSArrayCreation +extension NSArrayCreation on objc.NSArray { + /// initWithArray: + objc.NSArray initWithArray(objc.NSArray array) { + final _$$ref = object$.ref; + final _$$ref$1 = array.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + objc.NSArray initWithArray$1(objc.NSArray array, {required bool copyItems}) { + final _$$ref = object$.ref; + final _$$ref$1 = array.ref; + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSArray.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL:error: + objc.NSArray? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSArray.initWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithObjects: + objc.NSArray initWithObjects$1(objc.ObjCObject firstObj) { + final _$$ref = object$.ref; + final _$$ref$1 = firstObj.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjects_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: false, release: true); + } + + /// array + static objc.NSArray array() { + final $ret = _objc_msgSend_151sglz(_class_NSArray, _sel_array); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithArray: + static objc.NSArray arrayWithArray(objc.NSArray array) { + final _$$ref = array.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithArray_, + _$$ref.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithContentsOfURL:error: + static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSArray.arrayWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _class_NSArray, + _sel_arrayWithContentsOfURL_error_, + _$$ref.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// arrayWithObject: + static objc.NSArray arrayWithObject(objc.ObjCObject anObject) { + final _$$ref = anObject.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithObject_, + _$$ref.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithObjects: + static objc.NSArray arrayWithObjects(objc.ObjCObject firstObj) { + final _$$ref = firstObj.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithObjects_, + _$$ref.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithObjects:count: + static objc.NSArray arrayWithObjects$1( + ffi.Pointer> objects, { + required DartNSUInteger count, + }) { + final $ret = _objc_msgSend_zmbtbd( + _class_NSArray, + _sel_arrayWithObjects_count_, + objects, + count, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSArrayDiffing +extension NSArrayDiffing on objc.NSArray { + /// arrayByApplyingDifference: + objc.NSArray? arrayByApplyingDifference( + objc.NSOrderedCollectionDifference difference, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = difference.ref; + objc.checkOsVersionInternal( + 'NSArray.arrayByApplyingDifference:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_arrayByApplyingDifference_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// differenceFromArray: + objc.NSOrderedCollectionDifference differenceFromArray(objc.NSArray other) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + objc.checkOsVersionInternal( + 'NSArray.differenceFromArray:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_differenceFromArray_, + _$$ref$1.pointer, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// differenceFromArray:withOptions: + objc.NSOrderedCollectionDifference differenceFromArray$1( + objc.NSArray other, { + required DartNSUInteger withOptions, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + objc.checkOsVersionInternal( + 'NSArray.differenceFromArray:withOptions:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1wtpmu7( + _$$ref.pointer, + _sel_differenceFromArray_withOptions_, + _$$ref$1.pointer, + withOptions, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// differenceFromArray:withOptions:usingEquivalenceTest: + objc.NSOrderedCollectionDifference differenceFromArray$2( + objc.NSArray other, { + required DartNSUInteger withOptions, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingEquivalenceTest, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + final _$$ref$2 = usingEquivalenceTest.ref; + objc.checkOsVersionInternal( + 'NSArray.differenceFromArray:withOptions:usingEquivalenceTest:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1415lvo( + _$$ref.pointer, + _sel_differenceFromArray_withOptions_usingEquivalenceTest_, + _$$ref$1.pointer, + withOptions, + _$$ref$2.pointer, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSArrayPathExtensions +extension NSArrayPathExtensions on objc.NSArray { + /// pathsMatchingExtensions: + objc.NSArray pathsMatchingExtensions(objc.NSArray filterTypes) { + final _$$ref = object$.ref; + final _$$ref$1 = filterTypes.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_pathsMatchingExtensions_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSAttributedStringCreateFromMarkdown +extension NSAttributedStringCreateFromMarkdown on objc.NSAttributedString { + /// initWithContentsOfMarkdownFileAtURL:options:baseURL:error: + objc.NSAttributedString? initWithContentsOfMarkdownFileAtURL( + objc.NSURL markdownFile, { + objc.NSAttributedStringMarkdownParsingOptions? options, + objc.NSURL? baseURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markdownFile.ref; + final _$$ref$2 = options?.ref; + final _$$ref$3 = baseURL?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithContentsOfMarkdownFileAtURL:options:baseURL:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1k0ezzm( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithMarkdown:options:baseURL:error: + objc.NSAttributedString? initWithMarkdown( + objc.NSData markdown, { + objc.NSAttributedStringMarkdownParsingOptions? options, + objc.NSURL? baseURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markdown.ref; + final _$$ref$2 = options?.ref; + final _$$ref$3 = baseURL?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithMarkdown:options:baseURL:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1k0ezzm( + _$$ref.retainAndReturnPointer(), + _sel_initWithMarkdown_options_baseURL_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithMarkdownString:options:baseURL:error: + objc.NSAttributedString? initWithMarkdownString( + objc.NSString markdownString, { + objc.NSAttributedStringMarkdownParsingOptions? options, + objc.NSURL? baseURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markdownString.ref; + final _$$ref$2 = options?.ref; + final _$$ref$3 = baseURL?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithMarkdownString:options:baseURL:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1k0ezzm( + _$$ref.retainAndReturnPointer(), + _sel_initWithMarkdownString_options_baseURL_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +/// NSAttributedStringFormatting +extension NSAttributedStringFormatting on objc.NSAttributedString { + /// initWithFormat:options:locale: + objc.NSAttributedString initWithFormat( + objc.NSAttributedString format, { + required DartNSUInteger options, + objc.NSLocale? locale, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + final _$$ref$2 = locale?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithFormat:options:locale:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_187k8ck( + _$$ref.retainAndReturnPointer(), + _sel_initWithFormat_options_locale_, + _$$ref$1.pointer, + options, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// initWithFormat:options:locale:context: + objc.NSAttributedString initWithFormat$1( + objc.NSAttributedString format, { + required DartNSUInteger options, + objc.NSLocale? locale, + required objc.NSDictionary context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + final _$$ref$2 = locale?.ref; + final _$$ref$3 = context.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithFormat:options:locale:context:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_3fn4ca( + _$$ref.retainAndReturnPointer(), + _sel_initWithFormat_options_locale_context_, + _$$ref$1.pointer, + options, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// localizedAttributedStringWithFormat: + static objc.NSAttributedString localizedAttributedStringWithFormat( + objc.NSAttributedString format, + ) { + final _$$ref = format.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_, + _$$ref.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// localizedAttributedStringWithFormat:context: + static objc.NSAttributedString localizedAttributedStringWithFormat$1( + objc.NSAttributedString format, { + required objc.NSDictionary context, + }) { + final _$$ref = format.ref; + final _$$ref$1 = context.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:context:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_context_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// localizedAttributedStringWithFormat:options: + static objc.NSAttributedString localizedAttributedStringWithFormat$2( + objc.NSAttributedString format, { + required DartNSUInteger options, + }) { + final _$$ref = format.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:options:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_s058d2( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_options_, + _$$ref.pointer, + options, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// localizedAttributedStringWithFormat:options:context: + static objc.NSAttributedString localizedAttributedStringWithFormat$3( + objc.NSAttributedString format, { + required DartNSUInteger options, + required objc.NSDictionary context, + }) { + final _$$ref = format.ref; + final _$$ref$1 = context.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:options:context:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_187k8ck( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_options_context_, + _$$ref.pointer, + options, + _$$ref$1.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +typedef NSAttributedStringFormattingContextKey = + ffi.Pointer; +typedef DartNSAttributedStringFormattingContextKey = objc.NSString; +typedef NSAttributedStringKey = ffi.Pointer; +typedef DartNSAttributedStringKey = objc.NSString; +typedef NSBackgroundActivityCompletionHandler = ffi.Pointer; +typedef DartNSBackgroundActivityCompletionHandler = + objc.ObjCBlock; + +enum NSBackgroundActivityResult { + NSBackgroundActivityResultFinished(1), + NSBackgroundActivityResultDeferred(2); + + final int value; + const NSBackgroundActivityResult(this.value); + + static NSBackgroundActivityResult fromValue(int value) => switch (value) { + 1 => NSBackgroundActivityResultFinished, + 2 => NSBackgroundActivityResultDeferred, + _ => throw ArgumentError( + 'Unknown value for NSBackgroundActivityResult: $value', + ), + }; +} + +const int NSBundleErrorMaximum = 5119; + +const int NSBundleErrorMinimum = 4992; + +const int NSBundleExecutableArchitectureARM64 = 16777228; + +const int NSBundleExecutableArchitectureI386 = 7; + +const int NSBundleExecutableArchitecturePPC = 18; + +const int NSBundleExecutableArchitecturePPC64 = 16777234; + +const int NSBundleExecutableArchitectureX86_64 = 16777223; + +/// NSBundleExtensionMethods +extension NSBundleExtensionMethods on objc.NSString { + /// variantFittingPresentationWidth: + objc.NSString variantFittingPresentationWidth(DartNSInteger width) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.variantFittingPresentationWidth:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $ret = _objc_msgSend_qugqlf( + _$$ref.pointer, + _sel_variantFittingPresentationWidth_, + width, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +const int NSBundleOnDemandResourceExceededMaximumSizeError = 4993; + +const int NSBundleOnDemandResourceInvalidTagError = 4994; + +const int NSBundleOnDemandResourceOutOfSpaceError = 4992; + +/// NSBundleResourceRequestAdditions +extension NSBundleResourceRequestAdditions on objc.NSBundle { + /// preservationPriorityForTag: + double preservationPriorityForTag(objc.NSString tag) { + final _$$ref = object$.ref; + final _$$ref$1 = tag.ref; + objc.checkOsVersionInternal( + 'NSBundle.preservationPriorityForTag:', + iOS: (false, (9, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_mabicuFpret( + _$$ref.pointer, + _sel_preservationPriorityForTag_, + _$$ref$1.pointer, + ) + : _objc_msgSend_mabicu( + _$$ref.pointer, + _sel_preservationPriorityForTag_, + _$$ref$1.pointer, + ); + } + + /// setPreservationPriority:forTags: + void setPreservationPriority(double priority, {required objc.NSSet forTags}) { + final _$$ref = object$.ref; + final _$$ref$1 = forTags.ref; + objc.checkOsVersionInternal( + 'NSBundle.setPreservationPriority:forTags:', + iOS: (false, (9, 0, 0)), + macOS: (true, null), + ); + _objc_msgSend_130mcug( + _$$ref.pointer, + _sel_setPreservationPriority_forTags_, + priority, + _$$ref$1.pointer, + ); + } +} + +enum NSByteCountFormatterCountStyle { + NSByteCountFormatterCountStyleFile(0), + NSByteCountFormatterCountStyleMemory(1), + NSByteCountFormatterCountStyleDecimal(2), + NSByteCountFormatterCountStyleBinary(3); + + final int value; + const NSByteCountFormatterCountStyle(this.value); + + static NSByteCountFormatterCountStyle fromValue(int value) => switch (value) { + 0 => NSByteCountFormatterCountStyleFile, + 1 => NSByteCountFormatterCountStyleMemory, + 2 => NSByteCountFormatterCountStyleDecimal, + 3 => NSByteCountFormatterCountStyleBinary, + _ => throw ArgumentError( + 'Unknown value for NSByteCountFormatterCountStyle: $value', + ), + }; +} + +sealed class NSByteCountFormatterUnits { + static const NSByteCountFormatterUseDefault = 0; + static const NSByteCountFormatterUseBytes = 1; + static const NSByteCountFormatterUseKB = 2; + static const NSByteCountFormatterUseMB = 4; + static const NSByteCountFormatterUseGB = 8; + static const NSByteCountFormatterUseTB = 16; + static const NSByteCountFormatterUsePB = 32; + static const NSByteCountFormatterUseEB = 64; + static const NSByteCountFormatterUseZB = 128; + static const NSByteCountFormatterUseYBOrHigher = 65280; + static const NSByteCountFormatterUseAll = 65535; +} + +/// WARNING: NSCache is a stub. To generate bindings for this class, include +/// NSCache in your config's objc-interfaces list. +/// +/// NSCache +extension type NSCache._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSCache] that points to the same underlying object as [other]. + NSCache.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSCache', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } + + /// Constructs a [NSCache] that wraps the given raw object pointer. + NSCache.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSCache', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } +} + +/// NSCacheDelegate +extension type NSCacheDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSCacheDelegate] that points to the same underlying object as [other]. + NSCacheDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSCacheDelegate] that wraps the given raw object pointer. + NSCacheDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSCacheDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSCacheDelegate, + ); + } +} + +extension NSCacheDelegate$Methods on NSCacheDelegate { + /// cache:willEvictObject: + void cache(NSCache cache, {required objc.ObjCObject willEvictObject}) { + final _$$ref = object$.ref; + final _$$ref$1 = cache.ref; + final _$$ref$2 = willEvictObject.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_cache_willEvictObject_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSCacheDelegate', + 'cache:willEvictObject:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_cache_willEvictObject_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSCacheDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSCacheDelegate.cast()); + + /// Builds an object that implements the NSCacheDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCacheDelegate implement({ + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); + NSCacheDelegate$Builder.cache_willEvictObject_.implement( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + return NSCacheDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCacheDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + NSCacheDelegate$Builder.cache_willEvictObject_.implement( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSCacheDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCacheDelegate implementAsListener({ + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); + NSCacheDelegate$Builder.cache_willEvictObject_.implementAsListener( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + return NSCacheDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCacheDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + NSCacheDelegate$Builder.cache_willEvictObject_.implementAsListener( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSCacheDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCacheDelegate implementAsBlocking({ + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); + NSCacheDelegate$Builder.cache_willEvictObject_.implementAsBlocking( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + return NSCacheDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCacheDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, + bool $keepIsolateAlive = true, + }) { + NSCacheDelegate$Builder.cache_willEvictObject_.implementAsBlocking( + builder, + cache_willEvictObject_, + ); + builder.addProtocol($protocol); + } + + /// cache:willEvictObject: + static final cache_willEvictObject_ = + objc.ObjCProtocolListenableMethod< + void Function(NSCache, objc.ObjCObject) + >( + _protocol_NSCacheDelegate, + _sel_cache_willEvictObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCacheDelegate, + _sel_cache_willEvictObject_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSCache, objc.ObjCObject) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.fromFunction( + (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => + func(arg1, arg2), + ), + (void Function(NSCache, objc.ObjCObject) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.listener( + (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => + func(arg1, arg2), + ), + (void Function(NSCache, objc.ObjCObject) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.blocking( + (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => + func(arg1, arg2), + ), + ); +} + +/// WARNING: NSCachedURLResponse is a stub. To generate bindings for this class, include +/// NSCachedURLResponse in your config's objc-interfaces list. +/// +/// NSCachedURLResponse +extension type NSCachedURLResponse._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSCachedURLResponse] that points to the same underlying object as [other]. + NSCachedURLResponse.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSCachedURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSCachedURLResponse] that wraps the given raw object pointer. + NSCachedURLResponse.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSCachedURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +enum NSCalculationError { + NSCalculationNoError(0), + NSCalculationLossOfPrecision(1), + NSCalculationUnderflow(2), + NSCalculationOverflow(3), + NSCalculationDivideByZero(4); + + final int value; + const NSCalculationError(this.value); + + static NSCalculationError fromValue(int value) => switch (value) { + 0 => NSCalculationNoError, + 1 => NSCalculationLossOfPrecision, + 2 => NSCalculationUnderflow, + 3 => NSCalculationOverflow, + 4 => NSCalculationDivideByZero, + _ => throw ArgumentError('Unknown value for NSCalculationError: $value'), + }; +} + +/// WARNING: NSCalendarDate is a stub. To generate bindings for this class, include +/// NSCalendarDate in your config's objc-interfaces list. +/// +/// NSCalendarDate +@Deprecated('Use NSCalendar and NSDateComponents and NSDateFormatter instead') +extension type NSCalendarDate._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSDate { + /// Constructs a [NSCalendarDate] that points to the same underlying object as [other]. + NSCalendarDate.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSCalendarDate', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } + + /// Constructs a [NSCalendarDate] that wraps the given raw object pointer. + NSCalendarDate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSCalendarDate', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } +} + +/// NSCalendarDateExtras +extension NSCalendarDateExtras on objc.NSDate { + /// dateWithCalendarFormat:timeZone: + @Deprecated('Deprecated') + NSCalendarDate dateWithCalendarFormat( + objc.NSString? format, { + NSTimeZone? timeZone, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format?.ref; + final _$$ref$2 = timeZone?.ref; + objc.checkOsVersionInternal( + 'NSDate.dateWithCalendarFormat:timeZone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_dateWithCalendarFormat_timeZone_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return NSCalendarDate.fromPointer($ret, retain: true, release: true); + } + + /// descriptionWithCalendarFormat:timeZone:locale: + @Deprecated('Deprecated') + objc.NSString? descriptionWithCalendarFormat( + objc.NSString? format, { + NSTimeZone? timeZone, + objc.ObjCObject? locale, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format?.ref; + final _$$ref$2 = timeZone?.ref; + final _$$ref$3 = locale?.ref; + objc.checkOsVersionInternal( + 'NSDate.descriptionWithCalendarFormat:timeZone:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_descriptionWithCalendarFormat_timeZone_locale_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// initWithString: + @Deprecated('Use NSDateFormatter instead') + objc.ObjCObject? initWithString(objc.NSString description) { + final _$$ref = object$.ref; + final _$$ref$1 = description.ref; + objc.checkOsVersionInternal( + 'NSDate.initWithString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithString_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// dateWithNaturalLanguageString: + @Deprecated( + 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', + ) + static objc.ObjCObject? dateWithNaturalLanguageString(objc.NSString string) { + final _$$ref = string.ref; + objc.checkOsVersionInternal( + 'NSDate.dateWithNaturalLanguageString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSDate, + _sel_dateWithNaturalLanguageString_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// dateWithNaturalLanguageString:locale: + @Deprecated( + 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', + ) + static objc.ObjCObject? dateWithNaturalLanguageString$1( + objc.NSString string, { + objc.ObjCObject? locale, + }) { + final _$$ref = string.ref; + final _$$ref$1 = locale?.ref; + objc.checkOsVersionInternal( + 'NSDate.dateWithNaturalLanguageString:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _class_NSDate, + _sel_dateWithNaturalLanguageString_locale_, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// dateWithString: + @Deprecated('Use NSDateFormatter instead') + static objc.ObjCObject dateWithString(objc.NSString aString) { + final _$$ref = aString.ref; + objc.checkOsVersionInternal( + 'NSDate.dateWithString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSDate, + _sel_dateWithString_, + _$$ref.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +typedef NSCalendarIdentifier = ffi.Pointer; +typedef DartNSCalendarIdentifier = objc.NSString; + +sealed class NSCalendarOptions { + static const NSCalendarWrapComponents = 1; + static const NSCalendarMatchStrictly = 2; + static const NSCalendarSearchBackwards = 4; + static const NSCalendarMatchPreviousTimePreservingSmallerUnits = 256; + static const NSCalendarMatchNextTimePreservingSmallerUnits = 512; + static const NSCalendarMatchNextTime = 1024; + static const NSCalendarMatchFirst = 4096; + static const NSCalendarMatchLast = 8192; +} + +sealed class NSCalendarUnit { + static const NSCalendarUnitEra = 2; + static const NSCalendarUnitYear = 4; + static const NSCalendarUnitMonth = 8; + static const NSCalendarUnitDay = 16; + static const NSCalendarUnitHour = 32; + static const NSCalendarUnitMinute = 64; + static const NSCalendarUnitSecond = 128; + static const NSCalendarUnitWeekday = 512; + static const NSCalendarUnitWeekdayOrdinal = 1024; + static const NSCalendarUnitQuarter = 2048; + static const NSCalendarUnitWeekOfMonth = 4096; + static const NSCalendarUnitWeekOfYear = 8192; + static const NSCalendarUnitYearForWeekOfYear = 16384; + static const NSCalendarUnitNanosecond = 32768; + static const NSCalendarUnitDayOfYear = 65536; + static const NSCalendarUnitCalendar = 1048576; + static const NSCalendarUnitTimeZone = 2097152; + static const NSCalendarUnitIsLeapMonth = 1073741824; + static const NSCalendarUnitIsRepeatedDay = 2147483648; + static const NSEraCalendarUnit = 2; + static const NSYearCalendarUnit = 4; + static const NSMonthCalendarUnit = 8; + static const NSDayCalendarUnit = 16; + static const NSHourCalendarUnit = 32; + static const NSMinuteCalendarUnit = 64; + static const NSSecondCalendarUnit = 128; + static const NSWeekCalendarUnit = 256; + static const NSWeekdayCalendarUnit = 512; + static const NSWeekdayOrdinalCalendarUnit = 1024; + static const NSQuarterCalendarUnit = 2048; + static const NSWeekOfMonthCalendarUnit = 4096; + static const NSWeekOfYearCalendarUnit = 8192; + static const NSYearForWeekOfYearCalendarUnit = 16384; + static const NSCalendarCalendarUnit = 1048576; + static const NSTimeZoneCalendarUnit = 2097152; +} + +const int NSCannotCreateScriptCommandError = 10; + +/// WARNING: NSClassDescription is a stub. To generate bindings for this class, include +/// NSClassDescription in your config's objc-interfaces list. +/// +/// NSClassDescription +extension type NSClassDescription._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSClassDescription] that points to the same underlying object as [other]. + NSClassDescription.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSClassDescription] that wraps the given raw object pointer. + NSClassDescription.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSClassDescriptionPrimitives +extension NSClassDescriptionPrimitives on objc.NSObject { + /// attributeKeys + objc.NSArray get attributeKeys { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.attributeKeys', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_attributeKeys); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// classDescription + NSClassDescription get classDescription { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classDescription', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classDescription); + return NSClassDescription.fromPointer($ret, retain: true, release: true); + } + + /// inverseForRelationshipKey: + objc.NSString? inverseForRelationshipKey(objc.NSString relationshipKey) { + final _$$ref = object$.ref; + final _$$ref$1 = relationshipKey.ref; + objc.checkOsVersionInternal( + 'NSObject.inverseForRelationshipKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_inverseForRelationshipKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// toManyRelationshipKeys + objc.NSArray get toManyRelationshipKeys { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.toManyRelationshipKeys', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_toManyRelationshipKeys, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// toOneRelationshipKeys + objc.NSArray get toOneRelationshipKeys { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.toOneRelationshipKeys', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_toOneRelationshipKeys, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSClientCertificate +extension NSClientCertificate on NSURLCredential { + /// certificates + objc.NSArray get certificates { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.certificates', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_certificates); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// identity + SecIdentityRef get identity { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.identity', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + return _objc_msgSend_nkb3zz(_$$ref.pointer, _sel_identity); + } + + /// credentialWithIdentity:certificates:persistence: + static NSURLCredential credentialWithIdentity( + SecIdentityRef identity, { + objc.NSArray? certificates, + required NSURLCredentialPersistence persistence, + }) { + final _$$ref = certificates?.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.credentialWithIdentity:certificates:persistence:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_jfo4g1( + _class_NSURLCredential, + _sel_credentialWithIdentity_certificates_persistence_, + identity, + _$$ref?.pointer ?? ffi.nullptr, + persistence.value, + ); + return NSURLCredential.fromPointer($ret, retain: true, release: true); + } +} + +/// NSClientCertificateSpace +extension NSClientCertificateSpace on NSURLProtectionSpace { + /// distinguishedNames + objc.NSArray? get distinguishedNames { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLProtectionSpace.distinguishedNames', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_distinguishedNames); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +const int NSCloudSharingConflictError = 5123; + +const int NSCloudSharingErrorMaximum = 5375; + +const int NSCloudSharingErrorMinimum = 5120; + +const int NSCloudSharingNetworkFailureError = 5120; + +const int NSCloudSharingNoPermissionError = 5124; + +const int NSCloudSharingOtherError = 5375; + +const int NSCloudSharingQuotaExceededError = 5121; + +const int NSCloudSharingTooManyParticipantsError = 5122; + +const int NSCoderErrorMaximum = 4991; + +const int NSCoderErrorMinimum = 4864; + +const int NSCoderInvalidValueError = 4866; + +/// NSCoderMethods +extension NSCoderMethods on objc.NSObject { + /// awakeAfterUsingCoder: + objc.ObjCObject? awakeAfterUsingCoder(objc.NSCoder coder) { + final _$$ref = object$.ref; + final _$$ref$1 = coder.ref; + objc.checkOsVersionInternal( + 'NSObject.awakeAfterUsingCoder:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_awakeAfterUsingCoder_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// classForCoder + objc.ObjCObject get classForCoder { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classForCoder', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForCoder); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// replacementObjectForCoder: + objc.ObjCObject? replacementObjectForCoder(objc.NSCoder coder) { + final _$$ref = object$.ref; + final _$$ref$1 = coder.ref; + objc.checkOsVersionInternal( + 'NSObject.replacementObjectForCoder:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_replacementObjectForCoder_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// setVersion: + static void setVersion(DartNSInteger aVersion) { + objc.checkOsVersionInternal( + 'NSObject.setVersion:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_4sp4xj(_class_NSObject, _sel_setVersion_, aVersion); + } + + /// version + static DartNSInteger version() { + objc.checkOsVersionInternal( + 'NSObject.version', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1hz7y9r(_class_NSObject, _sel_version); + } +} + +const int NSCoderReadCorruptError = 4864; + +const int NSCoderValueNotFoundError = 4865; + +const int NSCollectorDisabledOption = 2; + +typedef NSComparator = ffi.Pointer; +typedef DartNSComparator = + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >; + +/// NSComparisonMethods +extension NSComparisonMethods on objc.NSObject { + /// doesContain: + bool doesContain(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.doesContain:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_doesContain_, + _$$ref$1.pointer, + ); + } + + /// isCaseInsensitiveLike: + bool isCaseInsensitiveLike(objc.NSString object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.isCaseInsensitiveLike:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isCaseInsensitiveLike_, + _$$ref$1.pointer, + ); + } + + /// isEqualTo: + bool isEqualTo(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isEqualTo_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// isGreaterThan: + bool isGreaterThan(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isGreaterThan:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isGreaterThan_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// isGreaterThanOrEqualTo: + bool isGreaterThanOrEqualTo(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isGreaterThanOrEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isGreaterThanOrEqualTo_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// isLessThan: + bool isLessThan(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isLessThan:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isLessThan_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// isLessThanOrEqualTo: + bool isLessThanOrEqualTo(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isLessThanOrEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isLessThanOrEqualTo_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// isLike: + bool isLike(objc.NSString object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.isLike:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isLike_, + _$$ref$1.pointer, + ); + } + + /// isNotEqualTo: + bool isNotEqualTo(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.isNotEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isNotEqualTo_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +enum NSComparisonPredicateModifier { + NSDirectPredicateModifier(0), + NSAllPredicateModifier(1), + NSAnyPredicateModifier(2); + + final int value; + const NSComparisonPredicateModifier(this.value); + + static NSComparisonPredicateModifier fromValue(int value) => switch (value) { + 0 => NSDirectPredicateModifier, + 1 => NSAllPredicateModifier, + 2 => NSAnyPredicateModifier, + _ => throw ArgumentError( + 'Unknown value for NSComparisonPredicateModifier: $value', + ), + }; +} + +sealed class NSComparisonPredicateOptions { + static const NSCaseInsensitivePredicateOption = 1; + static const NSDiacriticInsensitivePredicateOption = 2; + static const NSNormalizedPredicateOption = 4; +} + +enum NSCompoundPredicateType { + NSNotPredicateType(0), + NSAndPredicateType(1), + NSOrPredicateType(2); + + final int value; + const NSCompoundPredicateType(this.value); + + static NSCompoundPredicateType fromValue(int value) => switch (value) { + 0 => NSNotPredicateType, + 1 => NSAndPredicateType, + 2 => NSOrPredicateType, + _ => throw ArgumentError( + 'Unknown value for NSCompoundPredicateType: $value', + ), + }; +} + +const int NSCompressionErrorMaximum = 5503; + +const int NSCompressionErrorMinimum = 5376; + +const int NSCompressionFailedError = 5376; + +/// WARNING: NSConnection is a stub. To generate bindings for this class, include +/// NSConnection in your config's objc-interfaces list. +/// +/// NSConnection +@Deprecated('Use NSXPCConnection instead') +extension type NSConnection._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSConnection] that points to the same underlying object as [other]. + NSConnection.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSConnection', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSConnection] that wraps the given raw object pointer. + NSConnection.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSConnection', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +/// NSConnectionDelegate +@Deprecated('Use NSXPCConnection instead') +extension type NSConnectionDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSConnectionDelegate] that points to the same underlying object as [other]. + NSConnectionDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSConnectionDelegate] that wraps the given raw object pointer. + NSConnectionDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSConnectionDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSConnectionDelegate, + ); + } +} + +extension NSConnectionDelegate$Methods on NSConnectionDelegate { + /// authenticateComponents:withData: + @Deprecated('Use NSXPCConnection instead') + bool authenticateComponents( + objc.NSArray components, { + required objc.NSData withData, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = components.ref; + final _$$ref$2 = withData.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.authenticateComponents:withData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_authenticateComponents_withData_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'authenticateComponents:withData:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_authenticateComponents_withData_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// authenticationDataForComponents: + @Deprecated('Use NSXPCConnection instead') + objc.NSData authenticationDataForComponents(objc.NSArray components) { + final _$$ref = object$.ref; + final _$$ref$1 = components.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.authenticationDataForComponents:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_authenticationDataForComponents_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'authenticationDataForComponents:', + ); + } + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_authenticationDataForComponents_, + _$$ref$1.pointer, + ); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// connection:handleRequest: + @Deprecated('Use NSXPCConnection instead') + bool connection( + NSConnection connection, { + required NSDistantObjectRequest handleRequest, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = handleRequest.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.connection:handleRequest:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_handleRequest_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'connection:handleRequest:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_connection_handleRequest_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:shouldMakeNewConnection: + @Deprecated('Use NSXPCConnection instead') + bool connection$1( + NSConnection ancestor, { + required NSConnection shouldMakeNewConnection, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = ancestor.ref; + final _$$ref$2 = shouldMakeNewConnection.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.connection:shouldMakeNewConnection:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_shouldMakeNewConnection_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'connection:shouldMakeNewConnection:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_connection_shouldMakeNewConnection_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// createConversationForConnection: + @Deprecated('Use NSXPCConnection instead') + objc.ObjCObject createConversationForConnection(NSConnection conn) { + final _$$ref = object$.ref; + final _$$ref$1 = conn.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.createConversationForConnection:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_createConversationForConnection_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'createConversationForConnection:', + ); + } + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_createConversationForConnection_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// makeNewConnection:sender: + @Deprecated('Use NSXPCConnection instead') + bool makeNewConnection(NSConnection conn, {required NSConnection sender}) { + final _$$ref = object$.ref; + final _$$ref$1 = conn.ref; + final _$$ref$2 = sender.ref; + objc.checkOsVersionInternal( + 'NSConnectionDelegate.makeNewConnection:sender:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_makeNewConnection_sender_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSConnectionDelegate', + 'makeNewConnection:sender:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_makeNewConnection_sender_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSConnectionDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSConnectionDelegate.cast()); + + /// Builds an object that implements the NSConnectionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSConnectionDelegate implement({ + bool Function(objc.NSArray, objc.NSData)? authenticateComponents_withData_, + objc.NSData Function(objc.NSArray)? authenticationDataForComponents_, + bool Function(NSConnection, NSDistantObjectRequest)? + connection_handleRequest_, + bool Function(NSConnection, NSConnection)? + connection_shouldMakeNewConnection_, + objc.ObjCObject Function(NSConnection)? createConversationForConnection_, + bool Function(NSConnection, NSConnection)? makeNewConnection_sender_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSConnectionDelegate'); + NSConnectionDelegate$Builder.authenticateComponents_withData_.implement( + builder, + authenticateComponents_withData_, + ); + NSConnectionDelegate$Builder.authenticationDataForComponents_.implement( + builder, + authenticationDataForComponents_, + ); + NSConnectionDelegate$Builder.connection_handleRequest_.implement( + builder, + connection_handleRequest_, + ); + NSConnectionDelegate$Builder.connection_shouldMakeNewConnection_.implement( + builder, + connection_shouldMakeNewConnection_, + ); + NSConnectionDelegate$Builder.createConversationForConnection_.implement( + builder, + createConversationForConnection_, + ); + NSConnectionDelegate$Builder.makeNewConnection_sender_.implement( + builder, + makeNewConnection_sender_, + ); + builder.addProtocol($protocol); + return NSConnectionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSConnectionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(objc.NSArray, objc.NSData)? authenticateComponents_withData_, + objc.NSData Function(objc.NSArray)? authenticationDataForComponents_, + bool Function(NSConnection, NSDistantObjectRequest)? + connection_handleRequest_, + bool Function(NSConnection, NSConnection)? + connection_shouldMakeNewConnection_, + objc.ObjCObject Function(NSConnection)? createConversationForConnection_, + bool Function(NSConnection, NSConnection)? makeNewConnection_sender_, + bool $keepIsolateAlive = true, + }) { + NSConnectionDelegate$Builder.authenticateComponents_withData_.implement( + builder, + authenticateComponents_withData_, + ); + NSConnectionDelegate$Builder.authenticationDataForComponents_.implement( + builder, + authenticationDataForComponents_, + ); + NSConnectionDelegate$Builder.connection_handleRequest_.implement( + builder, + connection_handleRequest_, + ); + NSConnectionDelegate$Builder.connection_shouldMakeNewConnection_.implement( + builder, + connection_shouldMakeNewConnection_, + ); + NSConnectionDelegate$Builder.createConversationForConnection_.implement( + builder, + createConversationForConnection_, + ); + NSConnectionDelegate$Builder.makeNewConnection_sender_.implement( + builder, + makeNewConnection_sender_, + ); + builder.addProtocol($protocol); + } + + /// authenticateComponents:withData: + static final authenticateComponents_withData_ = + objc.ObjCProtocolMethod( + _protocol_NSConnectionDelegate, + _sel_authenticateComponents_withData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_authenticateComponents_withData_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(objc.NSArray, objc.NSData) func) => + ObjCBlock_bool_ffiVoid_NSArray_NSData.fromFunction( + (ffi.Pointer _, objc.NSArray arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + ); + + /// authenticationDataForComponents: + static final authenticationDataForComponents_ = + objc.ObjCProtocolMethod( + _protocol_NSConnectionDelegate, + _sel_authenticationDataForComponents_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_authenticationDataForComponents_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.NSData Function(objc.NSArray) func) => + ObjCBlock_NSData_ffiVoid_NSArray.fromFunction( + (ffi.Pointer _, objc.NSArray arg1) => func(arg1), + ), + ); + + /// connection:handleRequest: + static final connection_handleRequest_ = + objc.ObjCProtocolMethod< + bool Function(NSConnection, NSDistantObjectRequest) + >( + _protocol_NSConnectionDelegate, + _sel_connection_handleRequest_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_connection_handleRequest_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSConnection, NSDistantObjectRequest) func) => + ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest.fromFunction( + ( + ffi.Pointer _, + NSConnection arg1, + NSDistantObjectRequest arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:shouldMakeNewConnection: + static final connection_shouldMakeNewConnection_ = + objc.ObjCProtocolMethod( + _protocol_NSConnectionDelegate, + _sel_connection_shouldMakeNewConnection_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_connection_shouldMakeNewConnection_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSConnection, NSConnection) func) => + ObjCBlock_bool_ffiVoid_NSConnection_NSConnection.fromFunction( + (ffi.Pointer _, NSConnection arg1, NSConnection arg2) => + func(arg1, arg2), + ), + ); + + /// createConversationForConnection: + static final createConversationForConnection_ = + objc.ObjCProtocolMethod( + _protocol_NSConnectionDelegate, + _sel_createConversationForConnection_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_createConversationForConnection_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.ObjCObject Function(NSConnection) func) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection.fromFunction( + (ffi.Pointer _, NSConnection arg1) => func(arg1), + ), + ); + + /// makeNewConnection:sender: + static final makeNewConnection_sender_ = + objc.ObjCProtocolMethod( + _protocol_NSConnectionDelegate, + _sel_makeNewConnection_sender_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSConnectionDelegate, + _sel_makeNewConnection_sender_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSConnection, NSConnection) func) => + ObjCBlock_bool_ffiVoid_NSConnection_NSConnection.fromFunction( + (ffi.Pointer _, NSConnection arg1, NSConnection arg2) => + func(arg1, arg2), + ), + ); +} + +const int NSContainerSpecifierError = 2; + +/// NSCopyLinkMoveHandler +extension NSCopyLinkMoveHandler on objc.NSObject { + /// fileManager:shouldProceedAfterError: + @Deprecated(' Handler API no longer supported') + bool fileManager( + NSFileManager fm, { + required objc.NSDictionary shouldProceedAfterError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fm.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + objc.checkOsVersionInternal( + 'NSObject.fileManager:shouldProceedAfterError:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// fileManager:willProcessPath: + @Deprecated('Handler API no longer supported') + void fileManager$1( + NSFileManager fm, { + required objc.NSString willProcessPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fm.ref; + final _$$ref$2 = willProcessPath.ref; + objc.checkOsVersionInternal( + 'NSObject.fileManager:willProcessPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_fileManager_willProcessPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSCustomPronouns +@Deprecated('Use NSTermOfAddress instead') +extension NSCustomPronouns on NSMorphology$1 { + /// customPronounForLanguage: + @Deprecated('Use NSTermOfAddress instead') + NSMorphologyCustomPronoun? customPronounForLanguage(objc.NSString language) { + final _$$ref = object$.ref; + final _$$ref$1 = language.ref; + objc.checkOsVersionInternal( + 'NSMorphology.customPronounForLanguage:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_customPronounForLanguage_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : NSMorphologyCustomPronoun.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// setCustomPronoun:forLanguage:error: + @Deprecated('Use NSTermOfAddress instead') + bool setCustomPronoun( + NSMorphologyCustomPronoun? features, { + required objc.NSString forLanguage, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = features?.ref; + final _$$ref$2 = forLanguage.ref; + objc.checkOsVersionInternal( + 'NSMorphology.setCustomPronoun:forLanguage:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_6z4k82( + _$$ref.pointer, + _sel_setCustomPronoun_forLanguage_error_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +/// NSDataBase64Encoding +extension NSDataBase64Encoding on objc.NSData { + /// base64EncodedDataWithOptions: + objc.NSData base64EncodedDataWithOptions(DartNSUInteger options) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.base64EncodedDataWithOptions:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_ylninc( + _$$ref.pointer, + _sel_base64EncodedDataWithOptions_, + options, + ); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// base64EncodedStringWithOptions: + objc.NSString base64EncodedStringWithOptions(DartNSUInteger options) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.base64EncodedStringWithOptions:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_ylninc( + _$$ref.pointer, + _sel_base64EncodedStringWithOptions_, + options, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// initWithBase64EncodedData:options: + objc.NSData? initWithBase64EncodedData( + objc.NSData base64Data, { + required DartNSUInteger options, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = base64Data.ref; + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedData:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_7kpg7m( + _$$ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedData_options_, + _$$ref$1.pointer, + options, + ); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: false, release: true); + } + + /// initWithBase64EncodedString:options: + objc.NSData? initWithBase64EncodedString( + objc.NSString base64String, { + required DartNSUInteger options, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = base64String.ref; + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedString:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_7kpg7m( + _$$ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedString_options_, + _$$ref$1.pointer, + options, + ); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: false, release: true); + } +} + +/// NSDataCompression +extension NSDataCompression on objc.NSData { + /// compressedDataUsingAlgorithm:error: + objc.NSData? compressedDataUsingAlgorithm( + objc.NSDataCompressionAlgorithm algorithm, + ) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.compressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1vnlaqg( + _$$ref.pointer, + _sel_compressedDataUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decompressedDataUsingAlgorithm:error: + objc.NSData? decompressedDataUsingAlgorithm( + objc.NSDataCompressionAlgorithm algorithm, + ) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.decompressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1vnlaqg( + _$$ref.pointer, + _sel_decompressedDataUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +const int NSDateComponentUndefined = 9223372036854775807; + +enum NSDateComponentsFormatterUnitsStyle { + NSDateComponentsFormatterUnitsStylePositional(0), + NSDateComponentsFormatterUnitsStyleAbbreviated(1), + NSDateComponentsFormatterUnitsStyleShort(2), + NSDateComponentsFormatterUnitsStyleFull(3), + NSDateComponentsFormatterUnitsStyleSpellOut(4), + NSDateComponentsFormatterUnitsStyleBrief(5); + + final int value; + const NSDateComponentsFormatterUnitsStyle(this.value); + + static NSDateComponentsFormatterUnitsStyle fromValue(int value) => + switch (value) { + 0 => NSDateComponentsFormatterUnitsStylePositional, + 1 => NSDateComponentsFormatterUnitsStyleAbbreviated, + 2 => NSDateComponentsFormatterUnitsStyleShort, + 3 => NSDateComponentsFormatterUnitsStyleFull, + 4 => NSDateComponentsFormatterUnitsStyleSpellOut, + 5 => NSDateComponentsFormatterUnitsStyleBrief, + _ => throw ArgumentError( + 'Unknown value for NSDateComponentsFormatterUnitsStyle: $value', + ), + }; +} + +sealed class NSDateComponentsFormatterZeroFormattingBehavior { + static const NSDateComponentsFormatterZeroFormattingBehaviorNone = 0; + static const NSDateComponentsFormatterZeroFormattingBehaviorDefault = 1; + static const NSDateComponentsFormatterZeroFormattingBehaviorDropLeading = 2; + static const NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle = 4; + static const NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing = 8; + static const NSDateComponentsFormatterZeroFormattingBehaviorDropAll = 14; + static const NSDateComponentsFormatterZeroFormattingBehaviorPad = 65536; +} + +/// NSDateCreation +extension NSDateCreation on objc.NSDate { + /// initWithTimeInterval:sinceDate: + objc.NSDate initWithTimeInterval( + DartNSTimeInterval secsToBeAdded, { + required objc.NSDate sinceDate, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sinceDate.ref; + final $ret = _objc_msgSend_1ozwf6k( + _$$ref.retainAndReturnPointer(), + _sel_initWithTimeInterval_sinceDate_, + secsToBeAdded, + _$$ref$1.pointer, + ); + return objc.NSDate.fromPointer($ret, retain: false, release: true); + } + + /// initWithTimeIntervalSince1970: + objc.NSDate initWithTimeIntervalSince1970(DartNSTimeInterval secs) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_oa8mke( + _$$ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSince1970_, + secs, + ); + return objc.NSDate.fromPointer($ret, retain: false, release: true); + } + + /// initWithTimeIntervalSinceNow: + objc.NSDate initWithTimeIntervalSinceNow(DartNSTimeInterval secs) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_oa8mke( + _$$ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSinceNow_, + secs, + ); + return objc.NSDate.fromPointer($ret, retain: false, release: true); + } + + /// date + static objc.NSDate date() { + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_date); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// dateWithTimeInterval:sinceDate: + static objc.NSDate dateWithTimeInterval( + DartNSTimeInterval secsToBeAdded, { + required objc.NSDate sinceDate, + }) { + final _$$ref = sinceDate.ref; + final $ret = _objc_msgSend_1ozwf6k( + _class_NSDate, + _sel_dateWithTimeInterval_sinceDate_, + secsToBeAdded, + _$$ref.pointer, + ); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSince1970: + static objc.NSDate dateWithTimeIntervalSince1970(DartNSTimeInterval secs) { + final $ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSince1970_, + secs, + ); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSinceNow: + static objc.NSDate dateWithTimeIntervalSinceNow(DartNSTimeInterval secs) { + final $ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSinceNow_, + secs, + ); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSinceReferenceDate: + static objc.NSDate dateWithTimeIntervalSinceReferenceDate( + DartNSTimeInterval ti, + ) { + final $ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSinceReferenceDate_, + ti, + ); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// distantFuture + static objc.NSDate getDistantFuture() { + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantFuture); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// distantPast + static objc.NSDate getDistantPast() { + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantPast); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// now + static objc.NSDate getNow() { + objc.checkOsVersionInternal( + 'NSDate.now', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_now); + return objc.NSDate.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSDateFormatter is a stub. To generate bindings for this class, include +/// NSDateFormatter in your config's objc-interfaces list. +/// +/// NSDateFormatter +extension type NSDateFormatter._(objc.ObjCObject object$) + implements objc.ObjCObject, NSFormatter { + /// Constructs a [NSDateFormatter] that points to the same underlying object as [other]. + NSDateFormatter.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSDateFormatter] that wraps the given raw object pointer. + NSDateFormatter.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +enum NSDateFormatterBehavior { + NSDateFormatterBehaviorDefault(0), + NSDateFormatterBehavior10_0(1000), + NSDateFormatterBehavior10_4(1040); + + final int value; + const NSDateFormatterBehavior(this.value); + + static NSDateFormatterBehavior fromValue(int value) => switch (value) { + 0 => NSDateFormatterBehaviorDefault, + 1000 => NSDateFormatterBehavior10_0, + 1040 => NSDateFormatterBehavior10_4, + _ => throw ArgumentError( + 'Unknown value for NSDateFormatterBehavior: $value', + ), + }; +} + +/// NSDateFormatterCompatibility +extension NSDateFormatterCompatibility on NSDateFormatter { + /// allowsNaturalLanguage + @Deprecated('There is no replacement') + bool allowsNaturalLanguage() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSDateFormatter.allowsNaturalLanguage', + macOS: (false, (10, 4, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_allowsNaturalLanguage); + } + + /// initWithDateFormat:allowNaturalLanguage: + @Deprecated( + 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', + ) + objc.ObjCObject initWithDateFormat( + objc.NSString format, { + required bool allowNaturalLanguage, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + objc.checkOsVersionInternal( + 'NSDateFormatter.initWithDateFormat:allowNaturalLanguage:', + macOS: (false, (10, 4, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithDateFormat_allowNaturalLanguage_, + _$$ref$1.pointer, + allowNaturalLanguage, + ); + return objc.ObjCObject($ret, retain: false, release: true); + } +} + +enum NSDateFormatterStyle { + NSDateFormatterNoStyle(0), + NSDateFormatterShortStyle(1), + NSDateFormatterMediumStyle(2), + NSDateFormatterLongStyle(3), + NSDateFormatterFullStyle(4); + + final int value; + const NSDateFormatterStyle(this.value); + + static NSDateFormatterStyle fromValue(int value) => switch (value) { + 0 => NSDateFormatterNoStyle, + 1 => NSDateFormatterShortStyle, + 2 => NSDateFormatterMediumStyle, + 3 => NSDateFormatterLongStyle, + 4 => NSDateFormatterFullStyle, + _ => throw ArgumentError('Unknown value for NSDateFormatterStyle: $value'), + }; +} + +enum NSDateIntervalFormatterStyle { + NSDateIntervalFormatterNoStyle(0), + NSDateIntervalFormatterShortStyle(1), + NSDateIntervalFormatterMediumStyle(2), + NSDateIntervalFormatterLongStyle(3), + NSDateIntervalFormatterFullStyle(4); + + final int value; + const NSDateIntervalFormatterStyle(this.value); + + static NSDateIntervalFormatterStyle fromValue(int value) => switch (value) { + 0 => NSDateIntervalFormatterNoStyle, + 1 => NSDateIntervalFormatterShortStyle, + 2 => NSDateIntervalFormatterMediumStyle, + 3 => NSDateIntervalFormatterLongStyle, + 4 => NSDateIntervalFormatterFullStyle, + _ => throw ArgumentError( + 'Unknown value for NSDateIntervalFormatterStyle: $value', + ), + }; +} + +final class NSDecimal extends ffi.Opaque {} + +/// WARNING: NSDecimalNumber is a stub. To generate bindings for this class, include +/// NSDecimalNumber in your config's objc-interfaces list. +/// +/// NSDecimalNumber +extension type NSDecimalNumber._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSNumber { + /// Constructs a [NSDecimalNumber] that points to the same underlying object as [other]. + NSDecimalNumber.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSDecimalNumber] that wraps the given raw object pointer. + NSDecimalNumber.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSDecimalNumberBehaviors +extension type NSDecimalNumberBehaviors._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSDecimalNumberBehaviors] that points to the same underlying object as [other]. + NSDecimalNumberBehaviors.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSDecimalNumberBehaviors] that wraps the given raw object pointer. + NSDecimalNumberBehaviors.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSDecimalNumberBehaviors]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSDecimalNumberBehaviors, + ); + } +} + +extension NSDecimalNumberBehaviors$Methods on NSDecimalNumberBehaviors { + /// exceptionDuringOperation:error:leftOperand:rightOperand: + NSDecimalNumber? exceptionDuringOperation( + ffi.Pointer operation, { + required NSCalculationError error, + required NSDecimalNumber leftOperand, + NSDecimalNumber? rightOperand, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = leftOperand.ref; + final _$$ref$2 = rightOperand?.ref; + final $ret = _objc_msgSend_1qldcx0( + _$$ref.pointer, + _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, + operation, + error.value, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : NSDecimalNumber.fromPointer($ret, retain: true, release: true); + } + + /// roundingMode + NSRoundingMode roundingMode() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_15dzt85(_$$ref.pointer, _sel_roundingMode); + return NSRoundingMode.fromValue($ret); + } + + /// scale + int scale() { + final _$$ref = object$.ref; + return _objc_msgSend_1jwityx(_$$ref.pointer, _sel_scale); + } +} + +interface class NSDecimalNumberBehaviors$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSDecimalNumberBehaviors.cast()); + + /// Builds an object that implements the NSDecimalNumberBehaviors protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSDecimalNumberBehaviors implement({ + required NSDecimalNumber? Function( + ffi.Pointer, + NSCalculationError, + NSDecimalNumber, + NSDecimalNumber?, + ) + exceptionDuringOperation_error_leftOperand_rightOperand_, + required NSRoundingMode Function() roundingMode, + required int Function() scale, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSDecimalNumberBehaviors', + ); + NSDecimalNumberBehaviors$Builder + .exceptionDuringOperation_error_leftOperand_rightOperand_ + .implement( + builder, + exceptionDuringOperation_error_leftOperand_rightOperand_, + ); + NSDecimalNumberBehaviors$Builder.roundingMode.implement( + builder, + roundingMode, + ); + NSDecimalNumberBehaviors$Builder.scale.implement(builder, scale); + builder.addProtocol($protocol); + return NSDecimalNumberBehaviors.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSDecimalNumberBehaviors protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required NSDecimalNumber? Function( + ffi.Pointer, + NSCalculationError, + NSDecimalNumber, + NSDecimalNumber?, + ) + exceptionDuringOperation_error_leftOperand_rightOperand_, + required NSRoundingMode Function() roundingMode, + required int Function() scale, + bool $keepIsolateAlive = true, + }) { + NSDecimalNumberBehaviors$Builder + .exceptionDuringOperation_error_leftOperand_rightOperand_ + .implement( + builder, + exceptionDuringOperation_error_leftOperand_rightOperand_, + ); + NSDecimalNumberBehaviors$Builder.roundingMode.implement( + builder, + roundingMode, + ); + NSDecimalNumberBehaviors$Builder.scale.implement(builder, scale); + builder.addProtocol($protocol); + } + + /// exceptionDuringOperation:error:leftOperand:rightOperand: + static final exceptionDuringOperation_error_leftOperand_rightOperand_ = + objc.ObjCProtocolMethod< + NSDecimalNumber? Function( + ffi.Pointer, + NSCalculationError, + NSDecimalNumber, + NSDecimalNumber?, + ) + >( + _protocol_NSDecimalNumberBehaviors, + _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_738w24) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDecimalNumberBehaviors, + _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, + isRequired: true, + isInstanceMethod: true, + ), + ( + NSDecimalNumber? Function( + ffi.Pointer, + NSCalculationError, + NSDecimalNumber, + NSDecimalNumber?, + ) + func, + ) => + ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + NSCalculationError arg2, + NSDecimalNumber arg3, + NSDecimalNumber? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// roundingMode + static final roundingMode = + objc.ObjCProtocolMethod( + _protocol_NSDecimalNumberBehaviors, + _sel_roundingMode, + ffi.Native.addressOf< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_5cb1bj) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDecimalNumberBehaviors, + _sel_roundingMode, + isRequired: true, + isInstanceMethod: true, + ), + (NSRoundingMode Function() func) => + ObjCBlock_NSRoundingMode_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// scale + static final scale = objc.ObjCProtocolMethod( + _protocol_NSDecimalNumberBehaviors, + _sel_scale, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_p984hf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDecimalNumberBehaviors, + _sel_scale, + isRequired: true, + isInstanceMethod: true, + ), + (int Function() func) => ObjCBlock_ffiShort_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); +} + +/// NSDecimalNumberExtensions +extension NSDecimalNumberExtensions on objc.NSNumber {} + +/// WARNING: NSDecimalNumberHandler is a stub. To generate bindings for this class, include +/// NSDecimalNumberHandler in your config's objc-interfaces list. +/// +/// NSDecimalNumberHandler +extension type NSDecimalNumberHandler._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + NSDecimalNumberBehaviors, + objc.NSCoding { + /// Constructs a [NSDecimalNumberHandler] that points to the same underlying object as [other]. + NSDecimalNumberHandler.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSDecimalNumberHandler] that wraps the given raw object pointer. + NSDecimalNumberHandler.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSDecimalNumberScanning +extension NSDecimalNumberScanning on NSScanner { + /// scanDecimal: + bool scanDecimal(ffi.Pointer dcm) { + final _$$ref = object$.ref; + return _objc_msgSend_ijkvzl(_$$ref.pointer, _sel_scanDecimal_, dcm); + } +} + +const int NSDecompressionFailedError = 5377; + +/// NSDelayedPerforming +extension NSDelayedPerforming on objc.NSObject { + /// performSelector:withObject:afterDelay: + void performSelector$3( + ffi.Pointer aSelector, { + objc.ObjCObject? withObject, + required DartNSTimeInterval afterDelay, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withObject?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelector:withObject:afterDelay:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_7ql5kn( + _$$ref.pointer, + _sel_performSelector_withObject_afterDelay_, + aSelector, + _$$ref$1?.pointer ?? ffi.nullptr, + afterDelay, + ); + } + + /// performSelector:withObject:afterDelay:inModes: + void performSelector$4( + ffi.Pointer aSelector, { + objc.ObjCObject? withObject, + required DartNSTimeInterval afterDelay, + required objc.NSArray inModes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withObject?.ref; + final _$$ref$2 = inModes.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelector:withObject:afterDelay:inModes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_t8ajot( + _$$ref.pointer, + _sel_performSelector_withObject_afterDelay_inModes_, + aSelector, + _$$ref$1?.pointer ?? ffi.nullptr, + afterDelay, + _$$ref$2.pointer, + ); + } + + /// cancelPreviousPerformRequestsWithTarget: + static void cancelPreviousPerformRequestsWithTarget(objc.ObjCObject aTarget) { + final _$$ref = aTarget.ref; + objc.checkOsVersionInternal( + 'NSObject.cancelPreviousPerformRequestsWithTarget:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _class_NSObject, + _sel_cancelPreviousPerformRequestsWithTarget_, + _$$ref.pointer, + ); + } + + /// cancelPreviousPerformRequestsWithTarget:selector:object: + static void cancelPreviousPerformRequestsWithTarget$1( + objc.ObjCObject aTarget, { + required ffi.Pointer selector, + objc.ObjCObject? object, + }) { + final _$$ref = aTarget.ref; + final _$$ref$1 = object?.ref; + objc.checkOsVersionInternal( + 'NSObject.cancelPreviousPerformRequestsWithTarget:selector:object:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1ygbbzi( + _class_NSObject, + _sel_cancelPreviousPerformRequestsWithTarget_selector_object_, + _$$ref.pointer, + selector, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// NSDeprecated +extension NSDeprecated on objc.NSDictionary { + /// getObjects:andKeys: + @Deprecated('Use -getObjects:andKeys:count: instead') + void getObjects( + ffi.Pointer> objects, { + required ffi.Pointer> andKeys, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSDictionary.getObjects:andKeys:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_hefmm1( + _$$ref.pointer, + _sel_getObjects_andKeys_, + objects, + andKeys, + ); + } + + /// initWithContentsOfFile: + @Deprecated('Deprecated') + objc.NSDictionary? initWithContentsOfFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSDictionary.initWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + @Deprecated('Deprecated') + objc.NSDictionary? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.initWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// writeToFile:atomically: + @Deprecated('Deprecated') + bool writeToFile(objc.NSString path, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSDictionary.writeToFile:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToFile_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// writeToURL:atomically: + @Deprecated('Deprecated') + bool writeToURL(objc.NSURL url, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.writeToURL:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToURL_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// dictionaryWithContentsOfFile: + @Deprecated('Deprecated') + static objc.NSDictionary? dictionaryWithContentsOfFile(objc.NSString path) { + final _$$ref = path.ref; + objc.checkOsVersionInternal( + 'NSDictionary.dictionaryWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithContentsOfURL: + @Deprecated('Deprecated') + static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.dictionaryWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +/// NSDeprecated +extension NSDeprecated$1 on objc.NSArray { + /// getObjects: + @Deprecated('Use -getObjects:range: instead') + void getObjects(ffi.Pointer> objects) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSArray.getObjects:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1dau4w(_$$ref.pointer, _sel_getObjects_, objects); + } + + /// initWithContentsOfFile: + @Deprecated('Deprecated') + objc.NSArray? initWithContentsOfFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSArray.initWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + @Deprecated('Deprecated') + objc.NSArray? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSArray.initWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: false, release: true); + } + + /// writeToFile:atomically: + @Deprecated('Deprecated') + bool writeToFile(objc.NSString path, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSArray.writeToFile:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToFile_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// writeToURL:atomically: + @Deprecated('Deprecated') + bool writeToURL(objc.NSURL url, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSArray.writeToURL:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToURL_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// arrayWithContentsOfFile: + @Deprecated('Deprecated') + static objc.NSArray? arrayWithContentsOfFile(objc.NSString path) { + final _$$ref = path.ref; + objc.checkOsVersionInternal( + 'NSArray.arrayWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithContentsOfURL: + @Deprecated('Deprecated') + static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSArray.arrayWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSDeprecated +extension NSDeprecated$10 on NSFileWrapper { + /// addFileWithPath: + @Deprecated( + 'Instantiate a new NSFileWrapper with -initWithURL:options:error:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.', + ) + objc.NSString addFileWithPath(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.addFileWithPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_addFileWithPath_, + _$$ref$1.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// addSymbolicLinkWithDestination:preferredFilename: + @Deprecated( + 'Instantiate a new NSFileWrapper with -initWithSymbolicLinkDestinationURL:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.', + ) + objc.NSString addSymbolicLinkWithDestination( + objc.NSString path, { + required objc.NSString preferredFilename, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final _$$ref$2 = preferredFilename.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.addSymbolicLinkWithDestination:preferredFilename:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_addSymbolicLinkWithDestination_preferredFilename_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// initSymbolicLinkWithDestination: + @Deprecated( + 'Use -initSymbolicLinkWithDestinationURL: and -setPreferredFileName:, if necessary, instead.', + ) + objc.ObjCObject initSymbolicLinkWithDestination(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.initSymbolicLinkWithDestination:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initSymbolicLinkWithDestination_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithPath: + @Deprecated('Use -initWithURL:options:error: instead.') + objc.ObjCObject? initWithPath(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.initWithPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithPath_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// needsToBeUpdatedFromPath: + @Deprecated('Use -matchesContentsOfURL: instead.') + bool needsToBeUpdatedFromPath(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.needsToBeUpdatedFromPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_needsToBeUpdatedFromPath_, + _$$ref$1.pointer, + ); + } + + /// symbolicLinkDestination + @Deprecated('Use -symbolicLinkDestinationURL instead.') + objc.NSString symbolicLinkDestination() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.symbolicLinkDestination', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_symbolicLinkDestination, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// updateFromPath: + @Deprecated('Use -readFromURL:options:error: instead.') + bool updateFromPath(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.updateFromPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_updateFromPath_, + _$$ref$1.pointer, + ); + } + + /// writeToFile:atomically:updateFilenames: + @Deprecated('Use -writeToURL:options:originalContentsURL:error: instead.') + bool writeToFile( + objc.NSString path, { + required bool atomically, + required bool updateFilenames, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSFileWrapper.writeToFile:atomically:updateFilenames:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_126fd3h( + _$$ref.pointer, + _sel_writeToFile_atomically_updateFilenames_, + _$$ref$1.pointer, + atomically, + updateFilenames, + ); + } +} + +/// NSDeprecated +extension NSDeprecated$2 on objc.NSValue { + /// getValue: + @Deprecated('Deprecated') + void getValue$1(ffi.Pointer value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSValue.getValue:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_ovsamd(_$$ref.pointer, _sel_getValue_, value); + } +} + +/// NSDeprecated +extension NSDeprecated$3 on objc.NSData { + /// base64Encoding + @Deprecated('Use base64EncodedStringWithOptions: instead') + objc.NSString base64Encoding() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.base64Encoding', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_base64Encoding); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// getBytes: + @Deprecated( + 'This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead.', + ) + void getBytes(ffi.Pointer buffer) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.getBytes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_ovsamd(_$$ref.pointer, _sel_getBytes_, buffer); + } + + /// initWithBase64Encoding: + @Deprecated('Use initWithBase64EncodedString:options: instead') + objc.ObjCObject? initWithBase64Encoding(objc.NSString base64String) { + final _$$ref = object$.ref; + final _$$ref$1 = base64String.ref; + objc.checkOsVersionInternal( + 'NSData.initWithBase64Encoding:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithBase64Encoding_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithContentsOfMappedFile: + @Deprecated( + 'Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.', + ) + objc.ObjCObject? initWithContentsOfMappedFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSData.initWithContentsOfMappedFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfMappedFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// dataWithContentsOfMappedFile: + @Deprecated( + 'Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.', + ) + static objc.ObjCObject? dataWithContentsOfMappedFile(objc.NSString path) { + final _$$ref = path.ref; + objc.checkOsVersionInternal( + 'NSData.dataWithContentsOfMappedFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSData, + _sel_dataWithContentsOfMappedFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSDeprecated +extension NSDeprecated$4 on objc.NSCoder { + /// decodeValueOfObjCType:at: + @Deprecated('Deprecated') + void decodeValueOfObjCType$1( + ffi.Pointer type, { + required ffi.Pointer at, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeValueOfObjCType:at:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1flkydz( + _$$ref.pointer, + _sel_decodeValueOfObjCType_at_, + type, + at, + ); + } +} + +/// NSDeprecated +extension NSDeprecated$5 on NSIndexPath { + /// getIndexes: + @Deprecated('Deprecated') + void getIndexes(ffi.Pointer indexes) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSIndexPath.getIndexes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_h1puss(_$$ref.pointer, _sel_getIndexes_, indexes); + } +} + +/// NSDeprecated +extension NSDeprecated$6 on NSOperationQueue { + /// operationCount + @Deprecated('Deprecated') + DartNSUInteger get operationCount { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSOperationQueue.operationCount', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_operationCount); + } + + /// operations + @Deprecated( + 'access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead', + ) + objc.NSArray get operations { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSOperationQueue.operations', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_operations); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSDeprecated +extension NSDeprecated$7 on NSTask { + /// currentDirectoryPath + @Deprecated('Deprecated') + objc.NSString get currentDirectoryPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTask.currentDirectoryPath', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_currentDirectoryPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// launch + @Deprecated('Deprecated') + void launch() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTask.launch', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_launch); + } + + /// launchPath + @Deprecated('Deprecated') + objc.NSString? get launchPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTask.launchPath', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_launchPath); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// setCurrentDirectoryPath: + @Deprecated('Deprecated') + set currentDirectoryPath(objc.NSString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + objc.checkOsVersionInternal( + 'NSTask.setCurrentDirectoryPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setCurrentDirectoryPath_, + _$$ref$1.pointer, + ); + } + + /// setLaunchPath: + @Deprecated('Deprecated') + set launchPath(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSTask.setLaunchPath:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setLaunchPath_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// launchedTaskWithLaunchPath:arguments: + @Deprecated('Deprecated') + static NSTask launchedTaskWithLaunchPath( + objc.NSString path, { + required objc.NSArray arguments, + }) { + final _$$ref = path.ref; + final _$$ref$1 = arguments.ref; + objc.checkOsVersionInternal( + 'NSTask.launchedTaskWithLaunchPath:arguments:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _class_NSTask, + _sel_launchedTaskWithLaunchPath_arguments_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return NSTask.fromPointer($ret, retain: true, release: true); + } +} + +/// NSDeprecated +extension NSDeprecated$8 on NSXMLElement { + /// setAttributesAsDictionary: + @Deprecated('Deprecated') + void setAttributesAsDictionary(objc.NSDictionary attributes) { + final _$$ref = object$.ref; + final _$$ref$1 = attributes.ref; + objc.checkOsVersionInternal( + 'NSXMLElement.setAttributesAsDictionary:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAttributesAsDictionary_, + _$$ref$1.pointer, + ); + } +} + +/// NSDeprecated +extension NSDeprecated$9 on NSScriptClassDescription$1 { + /// isReadOnlyKey: + @Deprecated('Deprecated') + bool isReadOnlyKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSScriptClassDescription.isReadOnlyKey:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isReadOnlyKey_, + _$$ref$1.pointer, + ); + } +} + +/// NSDeprecatedKeyValueCoding +extension NSDeprecatedKeyValueCoding on objc.NSObject { + /// handleQueryWithUnboundKey: + @Deprecated('Legacy KVC API') + objc.ObjCObject? handleQueryWithUnboundKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.handleQueryWithUnboundKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_handleQueryWithUnboundKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// handleTakeValue:forUnboundKey: + @Deprecated('Legacy KVC API') + void handleTakeValue( + objc.ObjCObject? value, { + required objc.NSString forUnboundKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forUnboundKey.ref; + objc.checkOsVersionInternal( + 'NSObject.handleTakeValue:forUnboundKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_handleTakeValue_forUnboundKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// storedValueForKey: + @Deprecated('Legacy KVC API') + objc.ObjCObject? storedValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.storedValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_storedValueForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// takeStoredValue:forKey: + @Deprecated('Legacy KVC API') + void takeStoredValue( + objc.ObjCObject? value, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.takeStoredValue:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_takeStoredValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// takeValue:forKey: + @Deprecated('Legacy KVC API') + void takeValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.takeValue:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_takeValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// takeValue:forKeyPath: + @Deprecated('Legacy KVC API') + void takeValue$1( + objc.ObjCObject? value, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.takeValue:forKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_takeValue_forKeyPath_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// takeValuesFromDictionary: + @Deprecated('Legacy KVC API') + void takeValuesFromDictionary(objc.NSDictionary properties) { + final _$$ref = object$.ref; + final _$$ref$1 = properties.ref; + objc.checkOsVersionInternal( + 'NSObject.takeValuesFromDictionary:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_takeValuesFromDictionary_, + _$$ref$1.pointer, + ); + } + + /// unableToSetNilForKey: + @Deprecated('Legacy KVC API') + void unableToSetNilForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.unableToSetNilForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_unableToSetNilForKey_, + _$$ref$1.pointer, + ); + } + + /// valuesForKeys: + @Deprecated('Legacy KVC API') + objc.NSDictionary valuesForKeys(objc.NSArray keys) { + final _$$ref = object$.ref; + final _$$ref$1 = keys.ref; + objc.checkOsVersionInternal( + 'NSObject.valuesForKeys:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valuesForKeys_, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// useStoredAccessor + @Deprecated('Legacy KVC API') + static bool useStoredAccessor() { + objc.checkOsVersionInternal( + 'NSObject.useStoredAccessor', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_91o635(_class_NSObject, _sel_useStoredAccessor); + } +} + +/// NSDeprecatedKeyValueObservingCustomization +extension NSDeprecatedKeyValueObservingCustomization on objc.NSObject { + /// setKeys:triggerChangeNotificationsForDependentKey: + @Deprecated('Use +keyPathsForValuesAffectingValueForKey instead') + static void setKeys( + objc.NSArray keys, { + required objc.NSString triggerChangeNotificationsForDependentKey, + }) { + final _$$ref = keys.ref; + final _$$ref$1 = triggerChangeNotificationsForDependentKey.ref; + objc.checkOsVersionInternal( + 'NSObject.setKeys:triggerChangeNotificationsForDependentKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _class_NSObject, + _sel_setKeys_triggerChangeNotificationsForDependentKey_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + } +} + +/// NSDeprecatedMethods +extension NSDeprecatedMethods on objc.NSObject {} + +/// NSDictionaryCreation +extension NSDictionaryCreation on objc.NSDictionary { + /// initWithContentsOfURL:error: + objc.NSDictionary? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.initWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithDictionary: + objc.NSDictionary initWithDictionary(objc.NSDictionary otherDictionary) { + final _$$ref = object$.ref; + final _$$ref$1 = otherDictionary.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithDictionary_, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// initWithDictionary:copyItems: + objc.NSDictionary initWithDictionary$1( + objc.NSDictionary otherDictionary, { + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = otherDictionary.ref; + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithDictionary_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// initWithObjects:forKeys: + objc.NSDictionary initWithObjects$1( + objc.NSArray objects, { + required objc.NSArray forKeys, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = objects.ref; + final _$$ref$2 = forKeys.ref; + final $ret = _objc_msgSend_15qeuct( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// initWithObjectsAndKeys: + objc.NSDictionary initWithObjectsAndKeys(objc.ObjCObject firstObject) { + final _$$ref = object$.ref; + final _$$ref$1 = firstObject.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjectsAndKeys_, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: false, release: true); + } + + /// dictionary + static objc.NSDictionary dictionary() { + final $ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_dictionary); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithContentsOfURL:error: + static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.dictionaryWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _class_NSDictionary, + _sel_dictionaryWithContentsOfURL_error_, + _$$ref.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// dictionaryWithDictionary: + static objc.NSDictionary dictionaryWithDictionary(objc.NSDictionary dict) { + final _$$ref = dict.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithDictionary_, + _$$ref.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithObject:forKey: + static objc.NSDictionary dictionaryWithObject( + objc.ObjCObject object, { + required objc.NSCopying forKey, + }) { + final _$$ref = object.ref; + final _$$ref$1 = forKey.ref; + final $ret = _objc_msgSend_15qeuct( + _class_NSDictionary, + _sel_dictionaryWithObject_forKey_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithObjects:forKeys: + static objc.NSDictionary dictionaryWithObjects( + objc.NSArray objects, { + required objc.NSArray forKeys, + }) { + final _$$ref = objects.ref; + final _$$ref$1 = forKeys.ref; + final $ret = _objc_msgSend_15qeuct( + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithObjects:forKeys:count: + static objc.NSDictionary dictionaryWithObjects$1( + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required DartNSUInteger count, + }) { + final $ret = _objc_msgSend_1dydpdi( + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_count_, + objects, + forKeys, + count, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithObjectsAndKeys: + static objc.NSDictionary dictionaryWithObjectsAndKeys( + objc.ObjCObject firstObject, + ) { + final _$$ref = firstObject.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithObjectsAndKeys_, + _$$ref.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +sealed class NSDirectoryEnumerationOptions { + static const NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1; + static const NSDirectoryEnumerationSkipsPackageDescendants = 2; + static const NSDirectoryEnumerationSkipsHiddenFiles = 4; + static const NSDirectoryEnumerationIncludesDirectoriesPostOrder = 8; + static const NSDirectoryEnumerationProducesRelativePathURLs = 16; +} + +/// NSDiscardableContent +extension type NSDiscardableContent._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSDiscardableContent] that points to the same underlying object as [other]. + NSDiscardableContent.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSDiscardableContent] that wraps the given raw object pointer. + NSDiscardableContent.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSDiscardableContent]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSDiscardableContent, + ); + } +} + +extension NSDiscardableContent$Methods on NSDiscardableContent { + /// beginContentAccess + bool beginContentAccess() { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_beginContentAccess); + } + + /// discardContentIfPossible + void discardContentIfPossible() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_discardContentIfPossible); + } + + /// endContentAccess + void endContentAccess() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endContentAccess); + } + + /// isContentDiscarded + bool isContentDiscarded() { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isContentDiscarded); + } +} + +interface class NSDiscardableContent$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSDiscardableContent.cast()); + + /// Builds an object that implements the NSDiscardableContent protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSDiscardableContent implement({ + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implement( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implement( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + return NSDiscardableContent.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSDiscardableContent protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implement( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implement( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSDiscardableContent protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSDiscardableContent implementAsListener({ + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implementAsListener( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implementAsListener( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + return NSDiscardableContent.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSDiscardableContent protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implementAsListener( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implementAsListener( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSDiscardableContent protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSDiscardableContent implementAsBlocking({ + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implementAsBlocking( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implementAsBlocking( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + return NSDiscardableContent.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSDiscardableContent protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required bool Function() beginContentAccess, + required void Function() discardContentIfPossible, + required void Function() endContentAccess, + required bool Function() isContentDiscarded, + bool $keepIsolateAlive = true, + }) { + NSDiscardableContent$Builder.beginContentAccess.implement( + builder, + beginContentAccess, + ); + NSDiscardableContent$Builder.discardContentIfPossible.implementAsBlocking( + builder, + discardContentIfPossible, + ); + NSDiscardableContent$Builder.endContentAccess.implementAsBlocking( + builder, + endContentAccess, + ); + NSDiscardableContent$Builder.isContentDiscarded.implement( + builder, + isContentDiscarded, + ); + builder.addProtocol($protocol); + } + + /// beginContentAccess + static final beginContentAccess = objc.ObjCProtocolMethod( + _protocol_NSDiscardableContent, + _sel_beginContentAccess, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDiscardableContent, + _sel_beginContentAccess, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// discardContentIfPossible + static final discardContentIfPossible = + objc.ObjCProtocolListenableMethod( + _protocol_NSDiscardableContent, + _sel_discardContentIfPossible, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDiscardableContent, + _sel_discardContentIfPossible, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// endContentAccess + static final endContentAccess = + objc.ObjCProtocolListenableMethod( + _protocol_NSDiscardableContent, + _sel_endContentAccess, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDiscardableContent, + _sel_endContentAccess, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// isContentDiscarded + static final isContentDiscarded = objc.ObjCProtocolMethod( + _protocol_NSDiscardableContent, + _sel_isContentDiscarded, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSDiscardableContent, + _sel_isContentDiscarded, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); +} + +/// NSDiscardableContentProxy +extension NSDiscardableContentProxy on objc.NSObject { + /// autoContentAccessingProxy + objc.ObjCObject get autoContentAccessingProxy { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.autoContentAccessingProxy', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_autoContentAccessingProxy, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// WARNING: NSDistantObjectRequest is a stub. To generate bindings for this class, include +/// NSDistantObjectRequest in your config's objc-interfaces list. +/// +/// NSDistantObjectRequest +@Deprecated('Use NSXPCConnection instead') +extension type NSDistantObjectRequest._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSDistantObjectRequest] that points to the same underlying object as [other]. + NSDistantObjectRequest.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSDistantObjectRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSDistantObjectRequest] that wraps the given raw object pointer. + NSDistantObjectRequest.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSDistantObjectRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +typedef NSDistributedNotificationCenterType = ffi.Pointer; +typedef DartNSDistributedNotificationCenterType = objc.NSString; + +sealed class NSDistributedNotificationOptions { + static const NSDistributedNotificationDeliverImmediately = 1; + static const NSDistributedNotificationPostToAllSessions = 2; +} + +/// NSDistributedObjects +extension NSDistributedObjects on objc.NSObject { + /// classForPortCoder + @Deprecated('Use NSXPCConnection instead') + objc.ObjCObject get classForPortCoder { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classForPortCoder', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForPortCoder); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// replacementObjectForPortCoder: + @Deprecated('Use NSXPCConnection instead') + objc.ObjCObject? replacementObjectForPortCoder(NSPortCoder coder) { + final _$$ref = object$.ref; + final _$$ref$1 = coder.ref; + objc.checkOsVersionInternal( + 'NSObject.replacementObjectForPortCoder:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_replacementObjectForPortCoder_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +enum NSEnergyFormatterUnit { + NSEnergyFormatterUnitJoule(11), + NSEnergyFormatterUnitKilojoule(14), + NSEnergyFormatterUnitCalorie(1793), + NSEnergyFormatterUnitKilocalorie(1794); + + final int value; + const NSEnergyFormatterUnit(this.value); + + static NSEnergyFormatterUnit fromValue(int value) => switch (value) { + 11 => NSEnergyFormatterUnitJoule, + 14 => NSEnergyFormatterUnitKilojoule, + 1793 => NSEnergyFormatterUnitCalorie, + 1794 => NSEnergyFormatterUnitKilocalorie, + _ => throw ArgumentError('Unknown value for NSEnergyFormatterUnit: $value'), + }; +} + +typedef NSErrorDomain = ffi.Pointer; +typedef DartNSErrorDomain = objc.NSString; + +/// NSErrorRecoveryAttempting +extension NSErrorRecoveryAttempting on objc.NSObject { + /// attemptRecoveryFromError:optionIndex: + bool attemptRecoveryFromError( + objc.NSError error, { + required DartNSUInteger optionIndex, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = error.ref; + objc.checkOsVersionInternal( + 'NSObject.attemptRecoveryFromError:optionIndex:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_z7gxsm( + _$$ref.pointer, + _sel_attemptRecoveryFromError_optionIndex_, + _$$ref$1.pointer, + optionIndex, + ); + } + + /// attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo: + void attemptRecoveryFromError$1( + objc.NSError error, { + required DartNSUInteger optionIndex, + objc.ObjCObject? delegate, + required ffi.Pointer didRecoverSelector, + required ffi.Pointer contextInfo, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = error.ref; + final _$$ref$2 = delegate?.ref; + objc.checkOsVersionInternal( + 'NSObject.attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_10txwc9( + _$$ref.pointer, + _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_, + _$$ref$1.pointer, + optionIndex, + _$$ref$2?.pointer ?? ffi.nullptr, + didRecoverSelector, + contextInfo, + ); + } +} + +typedef NSErrorUserInfoKey = ffi.Pointer; +typedef DartNSErrorUserInfoKey = objc.NSString; + +/// WARNING: NSException is a stub. To generate bindings for this class, include +/// NSException in your config's objc-interfaces list. +/// +/// NSException +extension type NSException._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSException] that points to the same underlying object as [other]. + NSException.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSException] that wraps the given raw object pointer. + NSException.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +typedef NSExceptionName = ffi.Pointer; +typedef DartNSExceptionName = objc.NSString; + +/// NSExceptionRaisingConveniences +extension NSExceptionRaisingConveniences on NSException { + /// raise:format: + static void raise$1( + DartNSExceptionName name, { + required objc.NSString format, + }) { + final _$$ref = name.ref; + final _$$ref$1 = format.ref; + _objc_msgSend_pfv6jd( + _class_NSException, + _sel_raise_format_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + } +} + +const int NSExecutableArchitectureMismatchError = 3585; + +const int NSExecutableErrorMaximum = 3839; + +const int NSExecutableErrorMinimum = 3584; + +const int NSExecutableLinkError = 3588; + +const int NSExecutableLoadError = 3587; + +const int NSExecutableNotLoadableError = 3584; + +const int NSExecutableRuntimeMismatchError = 3586; + +enum NSExpressionType { + NSConstantValueExpressionType(0), + NSEvaluatedObjectExpressionType(1), + NSVariableExpressionType(2), + NSKeyPathExpressionType(3), + NSFunctionExpressionType(4), + NSUnionSetExpressionType(5), + NSIntersectSetExpressionType(6), + NSMinusSetExpressionType(7), + NSSubqueryExpressionType(13), + NSAggregateExpressionType(14), + NSAnyKeyExpressionType(15), + NSBlockExpressionType(19), + NSConditionalExpressionType(20); + + final int value; + const NSExpressionType(this.value); + + static NSExpressionType fromValue(int value) => switch (value) { + 0 => NSConstantValueExpressionType, + 1 => NSEvaluatedObjectExpressionType, + 2 => NSVariableExpressionType, + 3 => NSKeyPathExpressionType, + 4 => NSFunctionExpressionType, + 5 => NSUnionSetExpressionType, + 6 => NSIntersectSetExpressionType, + 7 => NSMinusSetExpressionType, + 13 => NSSubqueryExpressionType, + 14 => NSAggregateExpressionType, + 15 => NSAnyKeyExpressionType, + 19 => NSBlockExpressionType, + 20 => NSConditionalExpressionType, + _ => throw ArgumentError('Unknown value for NSExpressionType: $value'), + }; +} + +/// NSExtendedAttributedString +extension NSExtendedAttributedString on objc.NSAttributedString { + /// attribute:atIndex:effectiveRange: + objc.ObjCObject? attribute( + DartNSAttributedStringKey attrName, { + required DartNSUInteger atIndex, + required NSRangePointer effectiveRange, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = attrName.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.attribute:atIndex:effectiveRange:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_7km9vu( + _$$ref.pointer, + _sel_attribute_atIndex_effectiveRange_, + _$$ref$1.pointer, + atIndex, + effectiveRange, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// attribute:atIndex:longestEffectiveRange:inRange: + objc.ObjCObject? attribute$1( + DartNSAttributedStringKey attrName, { + required DartNSUInteger atIndex, + required NSRangePointer longestEffectiveRange, + required NSRange inRange, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = attrName.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.attribute:atIndex:longestEffectiveRange:inRange:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1k1akuq( + _$$ref.pointer, + _sel_attribute_atIndex_longestEffectiveRange_inRange_, + _$$ref$1.pointer, + atIndex, + longestEffectiveRange, + inRange, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// attributedSubstringFromRange: + objc.NSAttributedString attributedSubstringFromRange(NSRange range) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.attributedSubstringFromRange:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1k1o1s7( + _$$ref.pointer, + _sel_attributedSubstringFromRange_, + range, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// attributesAtIndex:longestEffectiveRange:inRange: + objc.NSDictionary attributesAtIndex$1( + DartNSUInteger location, { + required NSRangePointer longestEffectiveRange, + required NSRange inRange, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.attributesAtIndex:longestEffectiveRange:inRange:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1pp2gs8( + _$$ref.pointer, + _sel_attributesAtIndex_longestEffectiveRange_inRange_, + location, + longestEffectiveRange, + inRange, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// enumerateAttribute:inRange:options:usingBlock: + void enumerateAttribute( + DartNSAttributedStringKey attrName, { + required NSRange inRange, + required DartNSUInteger options, + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = attrName.ref; + final _$$ref$2 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.enumerateAttribute:inRange:options:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_ipgwfh( + _$$ref.pointer, + _sel_enumerateAttribute_inRange_options_usingBlock_, + _$$ref$1.pointer, + inRange, + options, + _$$ref$2.pointer, + ); + } + + /// enumerateAttributesInRange:options:usingBlock: + void enumerateAttributesInRange( + NSRange enumerationRange, { + required DartNSUInteger options, + required objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.enumerateAttributesInRange:options:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_1kok4b( + _$$ref.pointer, + _sel_enumerateAttributesInRange_options_usingBlock_, + enumerationRange, + options, + _$$ref$1.pointer, + ); + } + + /// initWithAttributedString: + objc.NSAttributedString initWithAttributedString( + objc.NSAttributedString attrStr, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = attrStr.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithAttributedString_, + _$$ref$1.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// initWithString: + objc.NSAttributedString initWithString(objc.NSString str) { + final _$$ref = object$.ref; + final _$$ref$1 = str.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithString_, + _$$ref$1.pointer, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// initWithString:attributes: + objc.NSAttributedString initWithString$1( + objc.NSString str, { + objc.NSDictionary? attributes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = str.ref; + final _$$ref$2 = attributes?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithString:attributes:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.retainAndReturnPointer(), + _sel_initWithString_attributes_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// isEqualToAttributedString: + bool isEqualToAttributedString(objc.NSAttributedString other) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.isEqualToAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isEqualToAttributedString_, + _$$ref$1.pointer, + ); + } + + /// length + DartNSUInteger get length { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.length', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_length); + } +} + +/// NSExtendedCoder +extension NSExtendedCoder on objc.NSCoder { + /// allowedClasses + objc.NSSet? get allowedClasses { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.allowedClasses', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allowedClasses); + return $ret.address == 0 + ? null + : objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// allowsKeyedCoding + bool get allowsKeyedCoding { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_allowsKeyedCoding); + } + + /// containsValueForKey: + bool containsValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_containsValueForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeArrayOfObjCType:count:at: + void decodeArrayOfObjCType( + ffi.Pointer itemType, { + required DartNSUInteger count, + required ffi.Pointer at, + }) { + final _$$ref = object$.ref; + _objc_msgSend_1lwwnes( + _$$ref.pointer, + _sel_decodeArrayOfObjCType_count_at_, + itemType, + count, + at, + ); + } + + /// decodeArrayOfObjectsOfClass:forKey: + objc.NSArray? decodeArrayOfObjectsOfClass( + objc.ObjCObject cls, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = cls.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeArrayOfObjectsOfClass:forKey:', + iOS: (false, (14, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_decodeArrayOfObjectsOfClass_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// decodeArrayOfObjectsOfClasses:forKey: + objc.NSArray? decodeArrayOfObjectsOfClasses( + objc.NSSet classes, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = classes.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeArrayOfObjectsOfClasses:forKey:', + iOS: (false, (14, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_decodeArrayOfObjectsOfClasses_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// decodeBoolForKey: + bool decodeBoolForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_decodeBoolForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeBytesForKey:minimumLength: + ffi.Pointer decodeBytesForKey( + objc.NSString key, { + required DartNSUInteger minimumLength, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeBytesForKey:minimumLength:', + iOS: (false, (18, 4, 0)), + macOS: (false, (15, 4, 0)), + ); + return _objc_msgSend_nk32k5( + _$$ref.pointer, + _sel_decodeBytesForKey_minimumLength_, + _$$ref$1.pointer, + minimumLength, + ); + } + + /// decodeBytesForKey:returnedLength: + ffi.Pointer decodeBytesForKey$1( + objc.NSString key, { + required ffi.Pointer returnedLength, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_1pvm3yv( + _$$ref.pointer, + _sel_decodeBytesForKey_returnedLength_, + _$$ref$1.pointer, + returnedLength, + ); + } + + /// decodeBytesWithMinimumLength: + ffi.Pointer decodeBytesWithMinimumLength(DartNSUInteger length) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeBytesWithMinimumLength:', + iOS: (false, (18, 4, 0)), + macOS: (false, (15, 4, 0)), + ); + return _objc_msgSend_16bn854( + _$$ref.pointer, + _sel_decodeBytesWithMinimumLength_, + length, + ); + } + + /// decodeBytesWithReturnedLength: + ffi.Pointer decodeBytesWithReturnedLength( + ffi.Pointer lengthp, + ) { + final _$$ref = object$.ref; + return _objc_msgSend_2p9qiq( + _$$ref.pointer, + _sel_decodeBytesWithReturnedLength_, + lengthp, + ); + } + + /// decodeDictionaryWithKeysOfClass:objectsOfClass:forKey: + objc.NSDictionary? decodeDictionaryWithKeysOfClass( + objc.ObjCObject keyCls, { + required objc.ObjCObject objectsOfClass, + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = keyCls.ref; + final _$$ref$2 = objectsOfClass.ref; + final _$$ref$3 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:', + iOS: (false, (14, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey: + objc.NSDictionary? decodeDictionaryWithKeysOfClasses( + objc.NSSet keyClasses, { + required objc.NSSet objectsOfClasses, + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = keyClasses.ref; + final _$$ref$2 = objectsOfClasses.ref; + final _$$ref$3 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:', + iOS: (false, (14, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// decodeDoubleForKey: + double decodeDoubleForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return objc.useMsgSendVariants + ? _objc_msgSend_mabicuFpret( + _$$ref.pointer, + _sel_decodeDoubleForKey_, + _$$ref$1.pointer, + ) + : _objc_msgSend_mabicu( + _$$ref.pointer, + _sel_decodeDoubleForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeFloatForKey: + double decodeFloatForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return objc.useMsgSendVariants + ? _objc_msgSend_g4ia9xFpret( + _$$ref.pointer, + _sel_decodeFloatForKey_, + _$$ref$1.pointer, + ) + : _objc_msgSend_g4ia9x( + _$$ref.pointer, + _sel_decodeFloatForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeInt32ForKey: + int decodeInt32ForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_fd28sq( + _$$ref.pointer, + _sel_decodeInt32ForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeInt64ForKey: + int decodeInt64ForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_1oj5o8z( + _$$ref.pointer, + _sel_decodeInt64ForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeIntForKey: + int decodeIntForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + return _objc_msgSend_hws22w( + _$$ref.pointer, + _sel_decodeIntForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeIntegerForKey: + DartNSInteger decodeIntegerForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeIntegerForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1r6ymhb( + _$$ref.pointer, + _sel_decodeIntegerForKey_, + _$$ref$1.pointer, + ); + } + + /// decodeObject + objc.ObjCObject? decodeObject() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodeObject); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodeObjectForKey: + objc.ObjCObject? decodeObjectForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_decodeObjectForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodeObjectOfClass:forKey: + objc.ObjCObject? decodeObjectOfClass( + objc.ObjCObject aClass, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = aClass.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeObjectOfClass:forKey:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_decodeObjectOfClass_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodeObjectOfClasses:forKey: + objc.ObjCObject? decodeObjectOfClasses( + objc.NSSet? classes, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = classes?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeObjectOfClasses:forKey:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_decodeObjectOfClasses_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodePropertyList + objc.ObjCObject? decodePropertyList() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodePropertyList); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodePropertyListForKey: + objc.ObjCObject? decodePropertyListForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodePropertyListForKey:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_decodePropertyListForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// decodeTopLevelObjectAndReturnError: + objc.ObjCObject? decodeTopLevelObjectAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeTopLevelObjectAndReturnError:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1w05pgk( + _$$ref.pointer, + _sel_decodeTopLevelObjectAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decodeTopLevelObjectForKey:error: + objc.ObjCObject? decodeTopLevelObjectForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeTopLevelObjectForKey:error:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.pointer, + _sel_decodeTopLevelObjectForKey_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decodeTopLevelObjectOfClass:forKey:error: + objc.ObjCObject? decodeTopLevelObjectOfClass( + objc.ObjCObject aClass, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = aClass.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeTopLevelObjectOfClass:forKey:error:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.pointer, + _sel_decodeTopLevelObjectOfClass_forKey_error_, + _$$ref$1.pointer, + _$$ref$2.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decodeTopLevelObjectOfClasses:forKey:error: + objc.ObjCObject? decodeTopLevelObjectOfClasses( + objc.NSSet? classes, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = classes?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeTopLevelObjectOfClasses:forKey:error:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.pointer, + _sel_decodeTopLevelObjectOfClasses_forKey_error_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decodeValuesOfObjCTypes: + void decodeValuesOfObjCTypes(ffi.Pointer types) { + final _$$ref = object$.ref; + _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_decodeValuesOfObjCTypes_, types); + } + + /// decodingFailurePolicy + objc.NSDecodingFailurePolicy get decodingFailurePolicy { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodingFailurePolicy', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $ret = _objc_msgSend_dgx62p( + _$$ref.pointer, + _sel_decodingFailurePolicy, + ); + return objc.NSDecodingFailurePolicy.fromValue($ret); + } + + /// encodeArrayOfObjCType:count:at: + void encodeArrayOfObjCType( + ffi.Pointer type, { + required DartNSUInteger count, + required ffi.Pointer at, + }) { + final _$$ref = object$.ref; + _objc_msgSend_1lwwnes( + _$$ref.pointer, + _sel_encodeArrayOfObjCType_count_at_, + type, + count, + at, + ); + } + + /// encodeBool:forKey: + void encodeBool(bool value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_hk7n97( + _$$ref.pointer, + _sel_encodeBool_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeBycopyObject: + void encodeBycopyObject(objc.ObjCObject? anObject) { + final _$$ref = object$.ref; + final _$$ref$1 = anObject?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeBycopyObject_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// encodeByrefObject: + void encodeByrefObject(objc.ObjCObject? anObject) { + final _$$ref = object$.ref; + final _$$ref$1 = anObject?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeByrefObject_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// encodeBytes:length: + void encodeBytes( + ffi.Pointer byteaddr, { + required DartNSUInteger length, + }) { + final _$$ref = object$.ref; + _objc_msgSend_zuf90e( + _$$ref.pointer, + _sel_encodeBytes_length_, + byteaddr, + length, + ); + } + + /// encodeBytes:length:forKey: + void encodeBytes$1( + ffi.Pointer bytes, { + required DartNSUInteger length, + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_18flwjr( + _$$ref.pointer, + _sel_encodeBytes_length_forKey_, + bytes, + length, + _$$ref$1.pointer, + ); + } + + /// encodeConditionalObject: + void encodeConditionalObject(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeConditionalObject_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// encodeConditionalObject:forKey: + void encodeConditionalObject$1( + objc.ObjCObject? object, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + final _$$ref$2 = forKey.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_encodeConditionalObject_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// encodeDouble:forKey: + void encodeDouble(double value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_130mcug( + _$$ref.pointer, + _sel_encodeDouble_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeFloat:forKey: + void encodeFloat(double value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_quo6mj( + _$$ref.pointer, + _sel_encodeFloat_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeInt32:forKey: + void encodeInt32(int value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_lof6g0( + _$$ref.pointer, + _sel_encodeInt32_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeInt64:forKey: + void encodeInt64(int value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_mpxix1( + _$$ref.pointer, + _sel_encodeInt64_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeInt:forKey: + void encodeInt(int value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_d8c3m2( + _$$ref.pointer, + _sel_encodeInt_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeInteger:forKey: + void encodeInteger(DartNSInteger value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + objc.checkOsVersionInternal( + 'NSCoder.encodeInteger:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_1kva9v1( + _$$ref.pointer, + _sel_encodeInteger_forKey_, + value, + _$$ref$1.pointer, + ); + } + + /// encodeObject: + void encodeObject(objc.ObjCObject? object) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeObject_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// encodeObject:forKey: + void encodeObject$1( + objc.ObjCObject? object, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = object?.ref; + final _$$ref$2 = forKey.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_encodeObject_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// encodePropertyList: + void encodePropertyList(objc.ObjCObject aPropertyList) { + final _$$ref = object$.ref; + final _$$ref$1 = aPropertyList.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodePropertyList_, + _$$ref$1.pointer, + ); + } + + /// encodeRootObject: + void encodeRootObject(objc.ObjCObject rootObject) { + final _$$ref = object$.ref; + final _$$ref$1 = rootObject.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeRootObject_, + _$$ref$1.pointer, + ); + } + + /// encodeValuesOfObjCTypes: + void encodeValuesOfObjCTypes(ffi.Pointer types) { + final _$$ref = object$.ref; + _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_encodeValuesOfObjCTypes_, types); + } + + /// error + objc.NSError? get error { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.error', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_error); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } + + /// failWithError: + void failWithError(objc.NSError error) { + final _$$ref = object$.ref; + final _$$ref$1 = error.ref; + objc.checkOsVersionInternal( + 'NSCoder.failWithError:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_failWithError_, _$$ref$1.pointer); + } + + /// objectZone + ffi.Pointer objectZone() { + final _$$ref = object$.ref; + return _objc_msgSend_sz90oi(_$$ref.pointer, _sel_objectZone); + } + + /// requiresSecureCoding + bool get requiresSecureCoding { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.requiresSecureCoding', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_requiresSecureCoding); + } + + /// setObjectZone: + void setObjectZone(ffi.Pointer zone) { + final _$$ref = object$.ref; + _objc_msgSend_1lonves(_$$ref.pointer, _sel_setObjectZone_, zone); + } + + /// systemVersion + int get systemVersion { + final _$$ref = object$.ref; + return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_systemVersion); + } +} + +/// NSExtendedLocale +extension NSExtendedLocale on objc.NSLocale { + /// alternateQuotationBeginDelimiter + objc.NSString get alternateQuotationBeginDelimiter { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.alternateQuotationBeginDelimiter', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_alternateQuotationBeginDelimiter, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// alternateQuotationEndDelimiter + objc.NSString get alternateQuotationEndDelimiter { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.alternateQuotationEndDelimiter', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_alternateQuotationEndDelimiter, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// calendarIdentifier + objc.NSString get calendarIdentifier { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.calendarIdentifier', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_calendarIdentifier); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// collationIdentifier + objc.NSString? get collationIdentifier { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.collationIdentifier', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_collationIdentifier, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// collatorIdentifier + objc.NSString get collatorIdentifier { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.collatorIdentifier', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_collatorIdentifier); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// countryCode + @Deprecated('Deprecated') + objc.NSString? get countryCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.countryCode', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_countryCode); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// currencyCode + objc.NSString? get currencyCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.currencyCode', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currencyCode); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// currencySymbol + objc.NSString get currencySymbol { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.currencySymbol', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currencySymbol); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// decimalSeparator + objc.NSString get decimalSeparator { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.decimalSeparator', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decimalSeparator); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// exemplarCharacterSet + objc.NSCharacterSet get exemplarCharacterSet { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.exemplarCharacterSet', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_exemplarCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// groupingSeparator + objc.NSString get groupingSeparator { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.groupingSeparator', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_groupingSeparator); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// languageCode + objc.NSString get languageCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.languageCode', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_languageCode); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// languageIdentifier + objc.NSString get languageIdentifier { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.languageIdentifier', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_languageIdentifier); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localeIdentifier + objc.NSString get localeIdentifier { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_localeIdentifier); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForCalendarIdentifier: + objc.NSString? localizedStringForCalendarIdentifier( + objc.NSString calendarIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = calendarIdentifier.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForCalendarIdentifier:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForCalendarIdentifier_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForCollationIdentifier: + objc.NSString? localizedStringForCollationIdentifier( + objc.NSString collationIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = collationIdentifier.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForCollationIdentifier:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForCollationIdentifier_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForCollatorIdentifier: + objc.NSString? localizedStringForCollatorIdentifier( + objc.NSString collatorIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = collatorIdentifier.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForCollatorIdentifier:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForCollatorIdentifier_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForCountryCode: + objc.NSString? localizedStringForCountryCode(objc.NSString countryCode) { + final _$$ref = object$.ref; + final _$$ref$1 = countryCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForCountryCode:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForCountryCode_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForCurrencyCode: + objc.NSString? localizedStringForCurrencyCode(objc.NSString currencyCode) { + final _$$ref = object$.ref; + final _$$ref$1 = currencyCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForCurrencyCode:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForCurrencyCode_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForLanguageCode: + objc.NSString? localizedStringForLanguageCode(objc.NSString languageCode) { + final _$$ref = object$.ref; + final _$$ref$1 = languageCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForLanguageCode:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForLanguageCode_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForLocaleIdentifier: + objc.NSString localizedStringForLocaleIdentifier( + objc.NSString localeIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = localeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForLocaleIdentifier:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForLocaleIdentifier_, + _$$ref$1.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForScriptCode: + objc.NSString? localizedStringForScriptCode(objc.NSString scriptCode) { + final _$$ref = object$.ref; + final _$$ref$1 = scriptCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForScriptCode:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForScriptCode_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localizedStringForVariantCode: + objc.NSString? localizedStringForVariantCode(objc.NSString variantCode) { + final _$$ref = object$.ref; + final _$$ref$1 = variantCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.localizedStringForVariantCode:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_localizedStringForVariantCode_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// quotationBeginDelimiter + objc.NSString get quotationBeginDelimiter { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.quotationBeginDelimiter', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_quotationBeginDelimiter, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// quotationEndDelimiter + objc.NSString get quotationEndDelimiter { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.quotationEndDelimiter', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_quotationEndDelimiter, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// regionCode + objc.NSString? get regionCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.regionCode', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_regionCode); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// scriptCode + objc.NSString? get scriptCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.scriptCode', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_scriptCode); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// usesMetricSystem + bool get usesMetricSystem { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.usesMetricSystem', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_usesMetricSystem); + } + + /// variantCode + objc.NSString? get variantCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSLocale.variantCode', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_variantCode); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// NSExtendedMutableAttributedString +extension NSExtendedMutableAttributedString on NSMutableAttributedString { + /// addAttribute:value:range: + void addAttribute( + DartNSAttributedStringKey name, { + required objc.ObjCObject value, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = name.ref; + final _$$ref$2 = value.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.addAttribute:value:range:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_6h5ewf( + _$$ref.pointer, + _sel_addAttribute_value_range_, + _$$ref$1.pointer, + _$$ref$2.pointer, + range, + ); + } + + /// addAttributes:range: + void addAttributes(objc.NSDictionary attrs, {required NSRange range}) { + final _$$ref = object$.ref; + final _$$ref$1 = attrs.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.addAttributes:range:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1oteutl( + _$$ref.pointer, + _sel_addAttributes_range_, + _$$ref$1.pointer, + range, + ); + } + + /// appendAttributedString: + void appendAttributedString(objc.NSAttributedString attrString) { + final _$$ref = object$.ref; + final _$$ref$1 = attrString.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.appendAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_appendAttributedString_, + _$$ref$1.pointer, + ); + } + + /// beginEditing + void beginEditing() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.beginEditing', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_beginEditing); + } + + /// deleteCharactersInRange: + void deleteCharactersInRange(NSRange range) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.deleteCharactersInRange:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_deleteCharactersInRange_, range); + } + + /// endEditing + void endEditing() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.endEditing', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endEditing); + } + + /// insertAttributedString:atIndex: + void insertAttributedString( + objc.NSAttributedString attrString, { + required DartNSUInteger atIndex, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = attrString.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.insertAttributedString:atIndex:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_djsa9o( + _$$ref.pointer, + _sel_insertAttributedString_atIndex_, + _$$ref$1.pointer, + atIndex, + ); + } + + /// mutableString + objc.NSMutableString get mutableString { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.mutableString', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_mutableString); + return objc.NSMutableString.fromPointer($ret, retain: true, release: true); + } + + /// removeAttribute:range: + void removeAttribute( + DartNSAttributedStringKey name, { + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = name.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.removeAttribute:range:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1oteutl( + _$$ref.pointer, + _sel_removeAttribute_range_, + _$$ref$1.pointer, + range, + ); + } + + /// replaceCharactersInRange:withAttributedString: + void replaceCharactersInRange( + NSRange range, { + required objc.NSAttributedString withAttributedString, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withAttributedString.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.replaceCharactersInRange:withAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1tv4uax( + _$$ref.pointer, + _sel_replaceCharactersInRange_withAttributedString_, + range, + _$$ref$1.pointer, + ); + } + + /// setAttributedString: + void setAttributedString(objc.NSAttributedString attrString) { + final _$$ref = object$.ref; + final _$$ref$1 = attrString.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.setAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAttributedString_, + _$$ref$1.pointer, + ); + } +} + +/// NSExtendedScanner +extension NSExtendedScanner on NSScanner { + /// isAtEnd + bool get isAtEnd { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isAtEnd); + } + + /// scanCharactersFromSet:intoString: + bool scanCharactersFromSet( + objc.NSCharacterSet set, { + required ffi.Pointer> intoString, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + return _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_scanCharactersFromSet_intoString_, + _$$ref$1.pointer, + intoString, + ); + } + + /// scanDouble: + bool scanDouble(ffi.Pointer result) { + final _$$ref = object$.ref; + return _objc_msgSend_lzroim(_$$ref.pointer, _sel_scanDouble_, result); + } + + /// scanFloat: + bool scanFloat(ffi.Pointer result) { + final _$$ref = object$.ref; + return _objc_msgSend_1kz7g09(_$$ref.pointer, _sel_scanFloat_, result); + } + + /// scanHexDouble: + bool scanHexDouble(ffi.Pointer result) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSScanner.scanHexDouble:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_lzroim(_$$ref.pointer, _sel_scanHexDouble_, result); + } + + /// scanHexFloat: + bool scanHexFloat(ffi.Pointer result) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSScanner.scanHexFloat:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1kz7g09(_$$ref.pointer, _sel_scanHexFloat_, result); + } + + /// scanHexInt: + bool scanHexInt(ffi.Pointer result) { + final _$$ref = object$.ref; + return _objc_msgSend_11a6od8(_$$ref.pointer, _sel_scanHexInt_, result); + } + + /// scanHexLongLong: + bool scanHexLongLong(ffi.Pointer result) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSScanner.scanHexLongLong:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1513vdc(_$$ref.pointer, _sel_scanHexLongLong_, result); + } + + /// scanInt: + bool scanInt(ffi.Pointer result) { + final _$$ref = object$.ref; + return _objc_msgSend_h10lj0(_$$ref.pointer, _sel_scanInt_, result); + } + + /// scanInteger: + bool scanInteger(ffi.Pointer result) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSScanner.scanInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_5bd8xr(_$$ref.pointer, _sel_scanInteger_, result); + } + + /// scanLongLong: + bool scanLongLong(ffi.Pointer result) { + final _$$ref = object$.ref; + return _objc_msgSend_1ea59hv(_$$ref.pointer, _sel_scanLongLong_, result); + } + + /// scanString:intoString: + bool scanString( + objc.NSString string, { + required ffi.Pointer> intoString, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + return _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_scanString_intoString_, + _$$ref$1.pointer, + intoString, + ); + } + + /// scanUnsignedLongLong: + bool scanUnsignedLongLong(ffi.Pointer result) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSScanner.scanUnsignedLongLong:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_1513vdc( + _$$ref.pointer, + _sel_scanUnsignedLongLong_, + result, + ); + } + + /// scanUpToCharactersFromSet:intoString: + bool scanUpToCharactersFromSet( + objc.NSCharacterSet set, { + required ffi.Pointer> intoString, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + return _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_scanUpToCharactersFromSet_intoString_, + _$$ref$1.pointer, + intoString, + ); + } + + /// scanUpToString:intoString: + bool scanUpToString( + objc.NSString string, { + required ffi.Pointer> intoString, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + return _objc_msgSend_l9p60w( + _$$ref.pointer, + _sel_scanUpToString_intoString_, + _$$ref$1.pointer, + intoString, + ); + } + + /// localizedScannerWithString: + static objc.ObjCObject localizedScannerWithString(objc.NSString string) { + final _$$ref = string.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSScanner, + _sel_localizedScannerWithString_, + _$$ref.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSExtendedStringPropertyListParsing +extension NSExtendedStringPropertyListParsing on objc.NSString { + /// propertyList + objc.ObjCObject propertyList() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_propertyList); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// propertyListFromStringsFileFormat + objc.NSDictionary? propertyListFromStringsFileFormat() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_propertyListFromStringsFileFormat, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +/// NSExtendedTimeZone +extension NSExtendedTimeZone on NSTimeZone { + /// abbreviation + objc.NSString? get abbreviation { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_abbreviation); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// daylightSavingTimeOffset + DartNSTimeInterval get daylightSavingTimeOffset { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTimeZone.daylightSavingTimeOffset', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + _$$ref.pointer, + _sel_daylightSavingTimeOffset, + ) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_daylightSavingTimeOffset); + } + + /// description + objc.NSString get description$1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// isDaylightSavingTime + bool get isDaylightSavingTime { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isDaylightSavingTime); + } + + /// isEqualToTimeZone: + bool isEqualToTimeZone(NSTimeZone aTimeZone) { + final _$$ref = object$.ref; + final _$$ref$1 = aTimeZone.ref; + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isEqualToTimeZone_, + _$$ref$1.pointer, + ); + } + + /// localizedName:locale: + objc.NSString? localizedName( + NSTimeZoneNameStyle style, { + objc.NSLocale? locale, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = locale?.ref; + objc.checkOsVersionInternal( + 'NSTimeZone.localizedName:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_1xmmt6t( + _$$ref.pointer, + _sel_localizedName_locale_, + style.value, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// nextDaylightSavingTimeTransition + objc.NSDate? get nextDaylightSavingTimeTransition { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTimeZone.nextDaylightSavingTimeTransition', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_nextDaylightSavingTimeTransition, + ); + return $ret.address == 0 + ? null + : objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// secondsFromGMT + DartNSInteger get secondsFromGMT { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_secondsFromGMT); + } + + /// abbreviationDictionary + static objc.NSDictionary getAbbreviationDictionary() { + objc.checkOsVersionInternal( + 'NSTimeZone.abbreviationDictionary', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSTimeZone, + _sel_abbreviationDictionary, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// defaultTimeZone + static NSTimeZone getDefaultTimeZone() { + final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_defaultTimeZone); + return NSTimeZone.fromPointer($ret, retain: true, release: true); + } + + /// knownTimeZoneNames + static objc.NSArray getKnownTimeZoneNames() { + final $ret = _objc_msgSend_151sglz( + _class_NSTimeZone, + _sel_knownTimeZoneNames, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// localTimeZone + static NSTimeZone getLocalTimeZone() { + final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_localTimeZone); + return NSTimeZone.fromPointer($ret, retain: true, release: true); + } + + /// resetSystemTimeZone + static void resetSystemTimeZone() { + _objc_msgSend_1pl9qdv(_class_NSTimeZone, _sel_resetSystemTimeZone); + } + + /// setAbbreviationDictionary: + static void setAbbreviationDictionary(objc.NSDictionary value) { + final _$$ref = value.ref; + objc.checkOsVersionInternal( + 'NSTimeZone.setAbbreviationDictionary:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_xtuoz7( + _class_NSTimeZone, + _sel_setAbbreviationDictionary_, + _$$ref.pointer, + ); + } + + /// setDefaultTimeZone: + static void setDefaultTimeZone(NSTimeZone value) { + final _$$ref = value.ref; + _objc_msgSend_xtuoz7( + _class_NSTimeZone, + _sel_setDefaultTimeZone_, + _$$ref.pointer, + ); + } + + /// systemTimeZone + static NSTimeZone getSystemTimeZone() { + final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_systemTimeZone); + return NSTimeZone.fromPointer($ret, retain: true, release: true); + } + + /// timeZoneDataVersion + static objc.NSString getTimeZoneDataVersion() { + objc.checkOsVersionInternal( + 'NSTimeZone.timeZoneDataVersion', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSTimeZone, + _sel_timeZoneDataVersion, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSExtensionContext is a stub. To generate bindings for this class, include +/// NSExtensionContext in your config's objc-interfaces list. +/// +/// NSExtensionContext +extension type NSExtensionContext._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSExtensionContext] that points to the same underlying object as [other]. + NSExtensionContext.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSExtensionContext', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } + + /// Constructs a [NSExtensionContext] that wraps the given raw object pointer. + NSExtensionContext.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSExtensionContext', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } +} + +/// NSExtensionRequestHandling +extension type NSExtensionRequestHandling._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSExtensionRequestHandling] that points to the same underlying object as [other]. + NSExtensionRequestHandling.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSExtensionRequestHandling] that wraps the given raw object pointer. + NSExtensionRequestHandling.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSExtensionRequestHandling]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSExtensionRequestHandling, + ); + } +} + +extension NSExtensionRequestHandling$Methods on NSExtensionRequestHandling { + /// beginRequestWithExtensionContext: + void beginRequestWithExtensionContext(NSExtensionContext context) { + final _$$ref = object$.ref; + final _$$ref$1 = context.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_beginRequestWithExtensionContext_, + _$$ref$1.pointer, + ); + } +} + +interface class NSExtensionRequestHandling$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSExtensionRequestHandling.cast()); + + /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSExtensionRequestHandling implement({ + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSExtensionRequestHandling', + ); + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implement(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + return NSExtensionRequestHandling.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implement(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSExtensionRequestHandling implementAsListener({ + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSExtensionRequestHandling', + ); + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implementAsListener(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + return NSExtensionRequestHandling.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implementAsListener(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSExtensionRequestHandling implementAsBlocking({ + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSExtensionRequestHandling', + ); + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implementAsBlocking(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + return NSExtensionRequestHandling.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSExtensionContext) + beginRequestWithExtensionContext_, + bool $keepIsolateAlive = true, + }) { + NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ + .implementAsBlocking(builder, beginRequestWithExtensionContext_); + builder.addProtocol($protocol); + } + + /// beginRequestWithExtensionContext: + static final beginRequestWithExtensionContext_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSExtensionRequestHandling, + _sel_beginRequestWithExtensionContext_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSExtensionRequestHandling, + _sel_beginRequestWithExtensionContext_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSExtensionContext) func) => + ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.fromFunction( + (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), + ), + (void Function(NSExtensionContext) func) => + ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.listener( + (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), + ), + (void Function(NSExtensionContext) func) => + ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.blocking( + (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), + ), + ); +} + +const int NSFeatureUnsupportedError = 3328; + +typedef NSFileAttributeKey = ffi.Pointer; +typedef DartNSFileAttributeKey = objc.NSString; +typedef NSFileAttributeType = ffi.Pointer; +typedef DartNSFileAttributeType = objc.NSString; + +/// NSFileAttributes +extension NSFileAttributes on objc.NSDictionary { + /// fileCreationDate + objc.NSDate? fileCreationDate() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileCreationDate); + return $ret.address == 0 + ? null + : objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// fileExtensionHidden + bool fileExtensionHidden() { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileExtensionHidden); + } + + /// fileGroupOwnerAccountID + objc.NSNumber? fileGroupOwnerAccountID() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_fileGroupOwnerAccountID, + ); + return $ret.address == 0 + ? null + : objc.NSNumber.fromPointer($ret, retain: true, release: true); + } + + /// fileGroupOwnerAccountName + objc.NSString? fileGroupOwnerAccountName() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_fileGroupOwnerAccountName, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// fileHFSCreatorCode + DartUInt32 fileHFSCreatorCode() { + final _$$ref = object$.ref; + return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_fileHFSCreatorCode); + } + + /// fileHFSTypeCode + DartUInt32 fileHFSTypeCode() { + final _$$ref = object$.ref; + return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_fileHFSTypeCode); + } + + /// fileIsAppendOnly + bool fileIsAppendOnly() { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileIsAppendOnly); + } + + /// fileIsImmutable + bool fileIsImmutable() { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileIsImmutable); + } + + /// fileModificationDate + objc.NSDate? fileModificationDate() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_fileModificationDate, + ); + return $ret.address == 0 + ? null + : objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// fileOwnerAccountID + objc.NSNumber? fileOwnerAccountID() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileOwnerAccountID); + return $ret.address == 0 + ? null + : objc.NSNumber.fromPointer($ret, retain: true, release: true); + } + + /// fileOwnerAccountName + objc.NSString? fileOwnerAccountName() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_fileOwnerAccountName, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// filePosixPermissions + DartNSUInteger filePosixPermissions() { + final _$$ref = object$.ref; + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_filePosixPermissions); + } + + /// fileSize + int fileSize() { + final _$$ref = object$.ref; + return _objc_msgSend_1p4gbjy(_$$ref.pointer, _sel_fileSize); + } + + /// fileSystemFileNumber + DartNSUInteger fileSystemFileNumber() { + final _$$ref = object$.ref; + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_fileSystemFileNumber); + } + + /// fileSystemNumber + DartNSInteger fileSystemNumber() { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_fileSystemNumber); + } + + /// fileType + objc.NSString? fileType() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileType); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +sealed class NSFileCoordinatorReadingOptions { + static const NSFileCoordinatorReadingWithoutChanges = 1; + static const NSFileCoordinatorReadingResolvesSymbolicLink = 2; + static const NSFileCoordinatorReadingImmediatelyAvailableMetadataOnly = 4; + static const NSFileCoordinatorReadingForUploading = 8; +} + +sealed class NSFileCoordinatorWritingOptions { + static const NSFileCoordinatorWritingForDeleting = 1; + static const NSFileCoordinatorWritingForMoving = 2; + static const NSFileCoordinatorWritingForMerging = 4; + static const NSFileCoordinatorWritingForReplacing = 8; + static const NSFileCoordinatorWritingContentIndependentMetadataOnly = 16; +} + +const int NSFileErrorMaximum = 1023; + +const int NSFileErrorMinimum = 0; + +/// WARNING: NSFileHandle is a stub. To generate bindings for this class, include +/// NSFileHandle in your config's objc-interfaces list. +/// +/// NSFileHandle +extension type NSFileHandle._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [NSFileHandle] that points to the same underlying object as [other]. + NSFileHandle.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSFileHandle] that wraps the given raw object pointer. + NSFileHandle.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSFileHandleAsynchronousAccess +extension NSFileHandleAsynchronousAccess on NSFileHandle { + /// acceptConnectionInBackgroundAndNotify + void acceptConnectionInBackgroundAndNotify() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv( + _$$ref.pointer, + _sel_acceptConnectionInBackgroundAndNotify, + ); + } + + /// acceptConnectionInBackgroundAndNotifyForModes: + void acceptConnectionInBackgroundAndNotifyForModes(objc.NSArray? modes) { + final _$$ref = object$.ref; + final _$$ref$1 = modes?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_acceptConnectionInBackgroundAndNotifyForModes_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// readInBackgroundAndNotify + void readInBackgroundAndNotify() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_readInBackgroundAndNotify); + } + + /// readInBackgroundAndNotifyForModes: + void readInBackgroundAndNotifyForModes(objc.NSArray? modes) { + final _$$ref = object$.ref; + final _$$ref$1 = modes?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_readInBackgroundAndNotifyForModes_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// readToEndOfFileInBackgroundAndNotify + void readToEndOfFileInBackgroundAndNotify() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv( + _$$ref.pointer, + _sel_readToEndOfFileInBackgroundAndNotify, + ); + } + + /// readToEndOfFileInBackgroundAndNotifyForModes: + void readToEndOfFileInBackgroundAndNotifyForModes(objc.NSArray? modes) { + final _$$ref = object$.ref; + final _$$ref$1 = modes?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_readToEndOfFileInBackgroundAndNotifyForModes_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// readabilityHandler + objc.ObjCBlock? get readabilityHandler { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFileHandle.readabilityHandler', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_readabilityHandler); + return $ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSFileHandle.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// setReadabilityHandler: + set readabilityHandler( + objc.ObjCBlock? value, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSFileHandle.setReadabilityHandler:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_setReadabilityHandler_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setWriteabilityHandler: + set writeabilityHandler( + objc.ObjCBlock? value, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSFileHandle.setWriteabilityHandler:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_setWriteabilityHandler_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// waitForDataInBackgroundAndNotify + void waitForDataInBackgroundAndNotify() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv( + _$$ref.pointer, + _sel_waitForDataInBackgroundAndNotify, + ); + } + + /// waitForDataInBackgroundAndNotifyForModes: + void waitForDataInBackgroundAndNotifyForModes(objc.NSArray? modes) { + final _$$ref = object$.ref; + final _$$ref$1 = modes?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_waitForDataInBackgroundAndNotifyForModes_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// writeabilityHandler + objc.ObjCBlock? get writeabilityHandler { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFileHandle.writeabilityHandler', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_writeabilityHandler); + return $ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSFileHandle.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSFileHandleCreation +extension NSFileHandleCreation on NSFileHandle { + /// fileHandleWithNullDevice + static NSFileHandle getFileHandleWithNullDevice() { + final $ret = _objc_msgSend_151sglz( + _class_NSFileHandle, + _sel_fileHandleWithNullDevice, + ); + return NSFileHandle.fromPointer($ret, retain: true, release: true); + } + + /// fileHandleWithStandardError + static NSFileHandle getFileHandleWithStandardError() { + final $ret = _objc_msgSend_151sglz( + _class_NSFileHandle, + _sel_fileHandleWithStandardError, + ); + return NSFileHandle.fromPointer($ret, retain: true, release: true); + } + + /// fileHandleWithStandardInput + static NSFileHandle getFileHandleWithStandardInput() { + final $ret = _objc_msgSend_151sglz( + _class_NSFileHandle, + _sel_fileHandleWithStandardInput, + ); + return NSFileHandle.fromPointer($ret, retain: true, release: true); + } + + /// fileHandleWithStandardOutput + static NSFileHandle getFileHandleWithStandardOutput() { + final $ret = _objc_msgSend_151sglz( + _class_NSFileHandle, + _sel_fileHandleWithStandardOutput, + ); + return NSFileHandle.fromPointer($ret, retain: true, release: true); + } +} + +/// NSFileHandlePlatformSpecific +extension NSFileHandlePlatformSpecific on NSFileHandle { + /// fileDescriptor + int get fileDescriptor { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_fileDescriptor); + } +} + +const int NSFileLockingError = 255; + +/// WARNING: NSFileManager is a stub. To generate bindings for this class, include +/// NSFileManager in your config's objc-interfaces list. +/// +/// NSFileManager +extension type NSFileManager._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSFileManager] that points to the same underlying object as [other]. + NSFileManager.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSFileManager] that wraps the given raw object pointer. + NSFileManager.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSFileManagerDelegate +extension type NSFileManagerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSFileManagerDelegate] that points to the same underlying object as [other]. + NSFileManagerDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSFileManagerDelegate] that wraps the given raw object pointer. + NSFileManagerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSFileManagerDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSFileManagerDelegate, + ); + } +} + +extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { + /// fileManager:shouldCopyItemAtPath:toPath: + bool fileManager( + NSFileManager fileManager, { + required objc.NSString shouldCopyItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldCopyItemAtPath.ref; + final _$$ref$3 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldCopyItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldCopyItemAtPath:toPath:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldCopyItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldCopyItemAtURL:toURL: + bool fileManager$1( + NSFileManager fileManager, { + required objc.NSURL shouldCopyItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldCopyItemAtURL.ref; + final _$$ref$3 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldCopyItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldCopyItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldCopyItemAtURL:toURL:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldCopyItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldLinkItemAtPath:toPath: + bool fileManager$2( + NSFileManager fileManager, { + required objc.NSString shouldLinkItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldLinkItemAtPath.ref; + final _$$ref$3 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldLinkItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldLinkItemAtPath:toPath:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldLinkItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldLinkItemAtURL:toURL: + bool fileManager$3( + NSFileManager fileManager, { + required objc.NSURL shouldLinkItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldLinkItemAtURL.ref; + final _$$ref$3 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldLinkItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldLinkItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldLinkItemAtURL:toURL:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldLinkItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldMoveItemAtPath:toPath: + bool fileManager$4( + NSFileManager fileManager, { + required objc.NSString shouldMoveItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldMoveItemAtPath.ref; + final _$$ref$3 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldMoveItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldMoveItemAtPath:toPath:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldMoveItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldMoveItemAtURL:toURL: + bool fileManager$5( + NSFileManager fileManager, { + required objc.NSURL shouldMoveItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldMoveItemAtURL.ref; + final _$$ref$3 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldMoveItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldMoveItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldMoveItemAtURL:toURL:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldMoveItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: + bool fileManager$6( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSString copyingItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = copyingItemAtPath.ref; + final _$$ref$4 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:copyingItemAtURL:toURL: + bool fileManager$7( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSURL copyingItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = copyingItemAtURL.ref; + final _$$ref$4 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: + bool fileManager$8( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSString linkingItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = linkingItemAtPath.ref; + final _$$ref$4 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:linkingItemAtURL:toURL: + bool fileManager$9( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSURL linkingItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = linkingItemAtURL.ref; + final _$$ref$4 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:movingItemAtPath:toPath: + bool fileManager$10( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSString movingItemAtPath, + required objc.NSString toPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = movingItemAtPath.ref; + final _$$ref$4 = toPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:movingItemAtPath:toPath:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:movingItemAtURL:toURL: + bool fileManager$11( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSURL movingItemAtURL, + required objc.NSURL toURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = movingItemAtURL.ref; + final _$$ref$4 = toURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:movingItemAtURL:toURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:movingItemAtURL:toURL:', + ); + } + return _objc_msgSend_h42mdr( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:removingItemAtPath: + bool fileManager$12( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSString removingItemAtPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = removingItemAtPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:removingItemAtPath:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldProceedAfterError:removingItemAtURL: + bool fileManager$13( + NSFileManager fileManager, { + required objc.NSError shouldProceedAfterError, + required objc.NSURL removingItemAtURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldProceedAfterError.ref; + final _$$ref$3 = removingItemAtURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:removingItemAtURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldProceedAfterError:removingItemAtURL:', + ); + } + return _objc_msgSend_gtxojt( + _$$ref.pointer, + _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// fileManager:shouldRemoveItemAtPath: + bool fileManager$14( + NSFileManager fileManager, { + required objc.NSString shouldRemoveItemAtPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldRemoveItemAtPath.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldRemoveItemAtPath_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldRemoveItemAtPath:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_fileManager_shouldRemoveItemAtPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// fileManager:shouldRemoveItemAtURL: + bool fileManager$15( + NSFileManager fileManager, { + required objc.NSURL shouldRemoveItemAtURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fileManager.ref; + final _$$ref$2 = shouldRemoveItemAtURL.ref; + objc.checkOsVersionInternal( + 'NSFileManagerDelegate.fileManager:shouldRemoveItemAtURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_fileManager_shouldRemoveItemAtURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFileManagerDelegate', + 'fileManager:shouldRemoveItemAtURL:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_fileManager_shouldRemoveItemAtURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSFileManagerDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSFileManagerDelegate.cast()); + + /// Builds an object that implements the NSFileManagerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSFileManagerDelegate implement({ + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldCopyItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldCopyItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldLinkItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldLinkItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldMoveItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldMoveItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString)? + fileManager_shouldProceedAfterError_removingItemAtPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL)? + fileManager_shouldProceedAfterError_removingItemAtURL_, + bool Function(NSFileManager, objc.NSString)? + fileManager_shouldRemoveItemAtPath_, + bool Function(NSFileManager, objc.NSURL)? + fileManager_shouldRemoveItemAtURL_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSFileManagerDelegate', + ); + NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtPath_toPath_ + .implement(builder, fileManager_shouldCopyItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtURL_toURL_ + .implement(builder, fileManager_shouldCopyItemAtURL_toURL_); + NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtPath_toPath_ + .implement(builder, fileManager_shouldLinkItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtURL_toURL_ + .implement(builder, fileManager_shouldLinkItemAtURL_toURL_); + NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtPath_toPath_ + .implement(builder, fileManager_shouldMoveItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtURL_toURL_ + .implement(builder, fileManager_shouldMoveItemAtURL_toURL_); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_removingItemAtPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_removingItemAtPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_removingItemAtURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_removingItemAtURL_, + ); + NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtPath_.implement( + builder, + fileManager_shouldRemoveItemAtPath_, + ); + NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtURL_.implement( + builder, + fileManager_shouldRemoveItemAtURL_, + ); + builder.addProtocol($protocol); + return NSFileManagerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSFileManagerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldCopyItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldCopyItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldLinkItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldLinkItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSString, objc.NSString)? + fileManager_shouldMoveItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSURL, objc.NSURL)? + fileManager_shouldMoveItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? + fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? + fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + bool Function(NSFileManager, objc.NSError, objc.NSString)? + fileManager_shouldProceedAfterError_removingItemAtPath_, + bool Function(NSFileManager, objc.NSError, objc.NSURL)? + fileManager_shouldProceedAfterError_removingItemAtURL_, + bool Function(NSFileManager, objc.NSString)? + fileManager_shouldRemoveItemAtPath_, + bool Function(NSFileManager, objc.NSURL)? + fileManager_shouldRemoveItemAtURL_, + bool $keepIsolateAlive = true, + }) { + NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtPath_toPath_ + .implement(builder, fileManager_shouldCopyItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtURL_toURL_ + .implement(builder, fileManager_shouldCopyItemAtURL_toURL_); + NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtPath_toPath_ + .implement(builder, fileManager_shouldLinkItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtURL_toURL_ + .implement(builder, fileManager_shouldLinkItemAtURL_toURL_); + NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtPath_toPath_ + .implement(builder, fileManager_shouldMoveItemAtPath_toPath_); + NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtURL_toURL_ + .implement(builder, fileManager_shouldMoveItemAtURL_toURL_); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_removingItemAtPath_ + .implement( + builder, + fileManager_shouldProceedAfterError_removingItemAtPath_, + ); + NSFileManagerDelegate$Builder + .fileManager_shouldProceedAfterError_removingItemAtURL_ + .implement( + builder, + fileManager_shouldProceedAfterError_removingItemAtURL_, + ); + NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtPath_.implement( + builder, + fileManager_shouldRemoveItemAtPath_, + ); + NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtURL_.implement( + builder, + fileManager_shouldRemoveItemAtURL_, + ); + builder.addProtocol($protocol); + } + + /// fileManager:shouldCopyItemAtPath:toPath: + static final fileManager_shouldCopyItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldCopyItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldCopyItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldCopyItemAtURL:toURL: + static final fileManager_shouldCopyItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldCopyItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldCopyItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSURL arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldLinkItemAtPath:toPath: + static final fileManager_shouldLinkItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldLinkItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldLinkItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldLinkItemAtURL:toURL: + static final fileManager_shouldLinkItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldLinkItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldLinkItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSURL arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldMoveItemAtPath:toPath: + static final fileManager_shouldMoveItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldMoveItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldMoveItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldMoveItemAtURL:toURL: + static final fileManager_shouldMoveItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldMoveItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldMoveItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSURL arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: + static final fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function( + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + objc.NSString arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:copyingItemAtURL:toURL: + static final fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + objc.NSURL arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: + static final fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function( + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + objc.NSString arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:linkingItemAtURL:toURL: + static final fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + objc.NSURL arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:movingItemAtPath:toPath: + static final fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function( + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + objc.NSString arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:movingItemAtURL:toURL: + static final fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1em3l8z) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, + isRequired: false, + isInstanceMethod: true, + ), + ( + bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) + func, + ) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + objc.NSURL arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// fileManager:shouldProceedAfterError:removingItemAtPath: + static final fileManager_shouldProceedAfterError_removingItemAtPath_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSString) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSError, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldProceedAfterError:removingItemAtURL: + static final fileManager_shouldProceedAfterError_removingItemAtURL_ = + objc.ObjCProtocolMethod< + bool Function(NSFileManager, objc.NSError, objc.NSURL) + >( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk8du5) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSError, objc.NSURL) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// fileManager:shouldRemoveItemAtPath: + static final fileManager_shouldRemoveItemAtPath_ = + objc.ObjCProtocolMethod( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldRemoveItemAtPath_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldRemoveItemAtPath_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSString.fromFunction( + ( + ffi.Pointer _, + NSFileManager arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// fileManager:shouldRemoveItemAtURL: + static final fileManager_shouldRemoveItemAtURL_ = + objc.ObjCProtocolMethod( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldRemoveItemAtURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFileManagerDelegate, + _sel_fileManager_shouldRemoveItemAtURL_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSFileManager, objc.NSURL) func) => + ObjCBlock_bool_ffiVoid_NSFileManager_NSURL.fromFunction( + (ffi.Pointer _, NSFileManager arg1, objc.NSURL arg2) => + func(arg1, arg2), + ), + ); +} + +sealed class NSFileManagerItemReplacementOptions { + static const NSFileManagerItemReplacementUsingNewMetadataOnly = 1; + static const NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; +} + +enum NSFileManagerResumeSyncBehavior { + NSFileManagerResumeSyncBehaviorPreserveLocalChanges(0), + NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict(1), + NSFileManagerResumeSyncBehaviorDropLocalChanges(2); + + final int value; + const NSFileManagerResumeSyncBehavior(this.value); + + static NSFileManagerResumeSyncBehavior fromValue(int value) => + switch (value) { + 0 => NSFileManagerResumeSyncBehaviorPreserveLocalChanges, + 1 => NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict, + 2 => NSFileManagerResumeSyncBehaviorDropLocalChanges, + _ => throw ArgumentError( + 'Unknown value for NSFileManagerResumeSyncBehavior: $value', + ), + }; +} + +sealed class NSFileManagerSupportedSyncControls { + static const NSFileManagerSupportedSyncControlsPauseSync = 1; + static const NSFileManagerSupportedSyncControlsFailUploadOnConflict = 2; +} + +const int NSFileManagerUnmountBusyError = 769; + +sealed class NSFileManagerUnmountOptions { + static const NSFileManagerUnmountAllPartitionsAndEjectDisk = 1; + static const NSFileManagerUnmountWithoutUI = 2; +} + +const int NSFileManagerUnmountUnknownError = 768; + +enum NSFileManagerUploadLocalVersionConflictPolicy { + NSFileManagerUploadConflictPolicyDefault(0), + NSFileManagerUploadConflictPolicyFailOnConflict(1); + + final int value; + const NSFileManagerUploadLocalVersionConflictPolicy(this.value); + + static NSFileManagerUploadLocalVersionConflictPolicy fromValue( + int value, + ) => switch (value) { + 0 => NSFileManagerUploadConflictPolicyDefault, + 1 => NSFileManagerUploadConflictPolicyFailOnConflict, + _ => throw ArgumentError( + 'Unknown value for NSFileManagerUploadLocalVersionConflictPolicy: $value', + ), + }; +} + +const int NSFileNoSuchFileError = 4; + +/// NSFilePresenter +extension type NSFilePresenter._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSFilePresenter] that points to the same underlying object as [other]. + NSFilePresenter.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSFilePresenter] that wraps the given raw object pointer. + NSFilePresenter.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSFilePresenter]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSFilePresenter, + ); + } +} + +extension NSFilePresenter$Methods on NSFilePresenter { + /// accommodatePresentedItemDeletionWithCompletionHandler: + void accommodatePresentedItemDeletionWithCompletionHandler( + objc.ObjCBlock completionHandler, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = completionHandler.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_accommodatePresentedItemDeletionWithCompletionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'accommodatePresentedItemDeletionWithCompletionHandler:', + ); + } + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_accommodatePresentedItemDeletionWithCompletionHandler_, + _$$ref$1.pointer, + ); + } + + /// accommodatePresentedItemEvictionWithCompletionHandler: + void accommodatePresentedItemEvictionWithCompletionHandler( + objc.ObjCBlock completionHandler, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSFilePresenter.accommodatePresentedItemEvictionWithCompletionHandler:', + iOS: (false, (17, 4, 0)), + macOS: (false, (14, 4, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_accommodatePresentedItemEvictionWithCompletionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'accommodatePresentedItemEvictionWithCompletionHandler:', + ); + } + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_accommodatePresentedItemEvictionWithCompletionHandler_, + _$$ref$1.pointer, + ); + } + + /// accommodatePresentedSubitemDeletionAtURL:completionHandler: + void accommodatePresentedSubitemDeletionAtURL( + objc.NSURL url, { + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = completionHandler.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'accommodatePresentedSubitemDeletionAtURL:completionHandler:', + ); + } + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// observedPresentedItemUbiquityAttributes + objc.NSSet get observedPresentedItemUbiquityAttributes { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFilePresenter.observedPresentedItemUbiquityAttributes', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_observedPresentedItemUbiquityAttributes, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'observedPresentedItemUbiquityAttributes', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_observedPresentedItemUbiquityAttributes, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// presentedItemDidChange + void presentedItemDidChange() { + final _$$ref = object$.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_presentedItemDidChange)) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidChange', + ); + } + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_presentedItemDidChange); + } + + /// presentedItemDidChangeUbiquityAttributes: + void presentedItemDidChangeUbiquityAttributes(objc.NSSet attributes) { + final _$$ref = object$.ref; + final _$$ref$1 = attributes.ref; + objc.checkOsVersionInternal( + 'NSFilePresenter.presentedItemDidChangeUbiquityAttributes:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedItemDidChangeUbiquityAttributes_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidChangeUbiquityAttributes:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedItemDidChangeUbiquityAttributes_, + _$$ref$1.pointer, + ); + } + + /// presentedItemDidGainVersion: + void presentedItemDidGainVersion(NSFileVersion version) { + final _$$ref = object$.ref; + final _$$ref$1 = version.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedItemDidGainVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidGainVersion:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedItemDidGainVersion_, + _$$ref$1.pointer, + ); + } + + /// presentedItemDidLoseVersion: + void presentedItemDidLoseVersion(NSFileVersion version) { + final _$$ref = object$.ref; + final _$$ref$1 = version.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedItemDidLoseVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidLoseVersion:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedItemDidLoseVersion_, + _$$ref$1.pointer, + ); + } + + /// presentedItemDidMoveToURL: + void presentedItemDidMoveToURL(objc.NSURL newURL) { + final _$$ref = object$.ref; + final _$$ref$1 = newURL.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedItemDidMoveToURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidMoveToURL:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedItemDidMoveToURL_, + _$$ref$1.pointer, + ); + } + + /// presentedItemDidResolveConflictVersion: + void presentedItemDidResolveConflictVersion(NSFileVersion version) { + final _$$ref = object$.ref; + final _$$ref$1 = version.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedItemDidResolveConflictVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedItemDidResolveConflictVersion:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedItemDidResolveConflictVersion_, + _$$ref$1.pointer, + ); + } + + /// presentedItemOperationQueue + NSOperationQueue get presentedItemOperationQueue { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_presentedItemOperationQueue, + ); + return NSOperationQueue.fromPointer($ret, retain: true, release: true); + } + + /// presentedItemURL + objc.NSURL? get presentedItemURL { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_presentedItemURL); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// presentedSubitemAtURL:didGainVersion: + void presentedSubitemAtURL( + objc.NSURL url, { + required NSFileVersion didGainVersion, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = didGainVersion.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didGainVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemAtURL:didGainVersion:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didGainVersion_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// presentedSubitemAtURL:didLoseVersion: + void presentedSubitemAtURL$1( + objc.NSURL url, { + required NSFileVersion didLoseVersion, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = didLoseVersion.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didLoseVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemAtURL:didLoseVersion:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didLoseVersion_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// presentedSubitemAtURL:didMoveToURL: + void presentedSubitemAtURL$2( + objc.NSURL oldURL, { + required objc.NSURL didMoveToURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = oldURL.ref; + final _$$ref$2 = didMoveToURL.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didMoveToURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemAtURL:didMoveToURL:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didMoveToURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// presentedSubitemAtURL:didResolveConflictVersion: + void presentedSubitemAtURL$3( + objc.NSURL url, { + required NSFileVersion didResolveConflictVersion, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = didResolveConflictVersion.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didResolveConflictVersion_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemAtURL:didResolveConflictVersion:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_presentedSubitemAtURL_didResolveConflictVersion_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// presentedSubitemDidAppearAtURL: + void presentedSubitemDidAppearAtURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemDidAppearAtURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemDidAppearAtURL:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedSubitemDidAppearAtURL_, + _$$ref$1.pointer, + ); + } + + /// presentedSubitemDidChangeAtURL: + void presentedSubitemDidChangeAtURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_presentedSubitemDidChangeAtURL_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'presentedSubitemDidChangeAtURL:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_presentedSubitemDidChangeAtURL_, + _$$ref$1.pointer, + ); + } + + /// primaryPresentedItemURL + objc.NSURL? get primaryPresentedItemURL { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFilePresenter.primaryPresentedItemURL', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_primaryPresentedItemURL, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'primaryPresentedItemURL', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_primaryPresentedItemURL, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// relinquishPresentedItemToReader: + void relinquishPresentedItemToReader( + objc.ObjCBlock?)> + reader, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = reader.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_relinquishPresentedItemToReader_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'relinquishPresentedItemToReader:', + ); + } + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_relinquishPresentedItemToReader_, + _$$ref$1.pointer, + ); + } + + /// relinquishPresentedItemToWriter: + void relinquishPresentedItemToWriter( + objc.ObjCBlock?)> + writer, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = writer.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_relinquishPresentedItemToWriter_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'relinquishPresentedItemToWriter:', + ); + } + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_relinquishPresentedItemToWriter_, + _$$ref$1.pointer, + ); + } + + /// savePresentedItemChangesWithCompletionHandler: + void savePresentedItemChangesWithCompletionHandler( + objc.ObjCBlock completionHandler, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = completionHandler.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_savePresentedItemChangesWithCompletionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSFilePresenter', + 'savePresentedItemChangesWithCompletionHandler:', + ); + } + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_savePresentedItemChangesWithCompletionHandler_, + _$$ref$1.pointer, + ); + } +} + +interface class NSFilePresenter$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSFilePresenter.cast()); + + /// Builds an object that implements the NSFilePresenter protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSFilePresenter implement({ + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implement( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implement( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implement( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implement( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_.implement( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implement( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implement( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implement( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_.implement( + builder, + presentedItemDidResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_.implement( + builder, + presentedSubitemAtURL_didGainVersion_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_.implement( + builder, + presentedSubitemAtURL_didLoseVersion_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_.implement( + builder, + presentedSubitemAtURL_didMoveToURL_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implement(builder, presentedSubitemAtURL_didResolveConflictVersion_); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implement( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implement( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_.implement( + builder, + relinquishPresentedItemToReader_, + ); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_.implement( + builder, + relinquishPresentedItemToWriter_, + ); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implement(builder, savePresentedItemChangesWithCompletionHandler_); + builder.addProtocol($protocol); + return NSFilePresenter.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSFilePresenter protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implement( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implement( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implement( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implement( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_.implement( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implement( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implement( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implement( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_.implement( + builder, + presentedItemDidResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_.implement( + builder, + presentedSubitemAtURL_didGainVersion_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_.implement( + builder, + presentedSubitemAtURL_didLoseVersion_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_.implement( + builder, + presentedSubitemAtURL_didMoveToURL_, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implement(builder, presentedSubitemAtURL_didResolveConflictVersion_); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implement( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implement( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_.implement( + builder, + relinquishPresentedItemToReader_, + ); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_.implement( + builder, + relinquishPresentedItemToWriter_, + ); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implement(builder, savePresentedItemChangesWithCompletionHandler_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSFilePresenter protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSFilePresenter implementAsListener({ + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implementAsListener( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implementAsListener( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implementAsListener( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implementAsListener( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ + .implementAsListener( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsListener( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsListener( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsListener( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ + .implementAsListener(builder, presentedItemDidResolveConflictVersion_); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ + .implementAsListener(builder, presentedSubitemAtURL_didGainVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ + .implementAsListener(builder, presentedSubitemAtURL_didLoseVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ + .implementAsListener(builder, presentedSubitemAtURL_didMoveToURL_); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implementAsListener( + builder, + presentedSubitemAtURL_didResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsListener( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsListener( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_ + .implementAsListener(builder, relinquishPresentedItemToReader_); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_ + .implementAsListener(builder, relinquishPresentedItemToWriter_); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implementAsListener( + builder, + savePresentedItemChangesWithCompletionHandler_, + ); + builder.addProtocol($protocol); + return NSFilePresenter.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSFilePresenter protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implementAsListener( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implementAsListener( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implementAsListener( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implementAsListener( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ + .implementAsListener( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsListener( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsListener( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsListener( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ + .implementAsListener(builder, presentedItemDidResolveConflictVersion_); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ + .implementAsListener(builder, presentedSubitemAtURL_didGainVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ + .implementAsListener(builder, presentedSubitemAtURL_didLoseVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ + .implementAsListener(builder, presentedSubitemAtURL_didMoveToURL_); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implementAsListener( + builder, + presentedSubitemAtURL_didResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsListener( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsListener( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_ + .implementAsListener(builder, relinquishPresentedItemToReader_); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_ + .implementAsListener(builder, relinquishPresentedItemToWriter_); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implementAsListener( + builder, + savePresentedItemChangesWithCompletionHandler_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSFilePresenter protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSFilePresenter implementAsBlocking({ + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implementAsBlocking( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ + .implementAsBlocking( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsBlocking( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsBlocking( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsBlocking( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ + .implementAsBlocking(builder, presentedItemDidResolveConflictVersion_); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ + .implementAsBlocking(builder, presentedSubitemAtURL_didGainVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ + .implementAsBlocking(builder, presentedSubitemAtURL_didLoseVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ + .implementAsBlocking(builder, presentedSubitemAtURL_didMoveToURL_); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implementAsBlocking( + builder, + presentedSubitemAtURL_didResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsBlocking( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsBlocking( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_ + .implementAsBlocking(builder, relinquishPresentedItemToReader_); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_ + .implementAsBlocking(builder, relinquishPresentedItemToWriter_); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implementAsBlocking( + builder, + savePresentedItemChangesWithCompletionHandler_, + ); + builder.addProtocol($protocol); + return NSFilePresenter.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSFilePresenter protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(objc.ObjCBlock)? + accommodatePresentedItemDeletionWithCompletionHandler_, + void Function(objc.ObjCBlock)? + accommodatePresentedItemEvictionWithCompletionHandler_, + void Function(objc.NSURL, objc.ObjCBlock)? + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + objc.NSSet Function()? observedPresentedItemUbiquityAttributes, + void Function()? presentedItemDidChange, + void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, + void Function(NSFileVersion)? presentedItemDidGainVersion_, + void Function(NSFileVersion)? presentedItemDidLoseVersion_, + void Function(objc.NSURL)? presentedItemDidMoveToURL_, + void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, + required NSOperationQueue Function() presentedItemOperationQueue, + required objc.NSURL? Function() presentedItemURL, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didGainVersion_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didLoseVersion_, + void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, + void Function(objc.NSURL, NSFileVersion)? + presentedSubitemAtURL_didResolveConflictVersion_, + void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, + void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, + objc.NSURL? Function()? primaryPresentedItemURL, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToReader_, + void Function( + objc.ObjCBlock?)>, + )? + relinquishPresentedItemToWriter_, + void Function(objc.ObjCBlock)? + savePresentedItemChangesWithCompletionHandler_, + bool $keepIsolateAlive = true, + }) { + NSFilePresenter$Builder + .accommodatePresentedItemDeletionWithCompletionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedItemDeletionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedItemEvictionWithCompletionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedItemEvictionWithCompletionHandler_, + ); + NSFilePresenter$Builder + .accommodatePresentedSubitemDeletionAtURL_completionHandler_ + .implementAsBlocking( + builder, + accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ); + NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( + builder, + observedPresentedItemUbiquityAttributes, + ); + NSFilePresenter$Builder.presentedItemDidChange.implementAsBlocking( + builder, + presentedItemDidChange, + ); + NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ + .implementAsBlocking( + builder, + presentedItemDidChangeUbiquityAttributes_, + ); + NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsBlocking( + builder, + presentedItemDidGainVersion_, + ); + NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsBlocking( + builder, + presentedItemDidLoseVersion_, + ); + NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsBlocking( + builder, + presentedItemDidMoveToURL_, + ); + NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ + .implementAsBlocking(builder, presentedItemDidResolveConflictVersion_); + NSFilePresenter$Builder.presentedItemOperationQueue.implement( + builder, + presentedItemOperationQueue, + ); + NSFilePresenter$Builder.presentedItemURL.implement( + builder, + presentedItemURL, + ); + NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ + .implementAsBlocking(builder, presentedSubitemAtURL_didGainVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ + .implementAsBlocking(builder, presentedSubitemAtURL_didLoseVersion_); + NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ + .implementAsBlocking(builder, presentedSubitemAtURL_didMoveToURL_); + NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ + .implementAsBlocking( + builder, + presentedSubitemAtURL_didResolveConflictVersion_, + ); + NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsBlocking( + builder, + presentedSubitemDidAppearAtURL_, + ); + NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsBlocking( + builder, + presentedSubitemDidChangeAtURL_, + ); + NSFilePresenter$Builder.primaryPresentedItemURL.implement( + builder, + primaryPresentedItemURL, + ); + NSFilePresenter$Builder.relinquishPresentedItemToReader_ + .implementAsBlocking(builder, relinquishPresentedItemToReader_); + NSFilePresenter$Builder.relinquishPresentedItemToWriter_ + .implementAsBlocking(builder, relinquishPresentedItemToWriter_); + NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ + .implementAsBlocking( + builder, + savePresentedItemChangesWithCompletionHandler_, + ); + builder.addProtocol($protocol); + } + + /// accommodatePresentedItemDeletionWithCompletionHandler: + static final accommodatePresentedItemDeletionWithCompletionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.ObjCBlock) + >( + _protocol_NSFilePresenter, + _sel_accommodatePresentedItemDeletionWithCompletionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1l4hxwm) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_accommodatePresentedItemDeletionWithCompletionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ); + + /// accommodatePresentedItemEvictionWithCompletionHandler: + static final accommodatePresentedItemEvictionWithCompletionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.ObjCBlock) + >( + _protocol_NSFilePresenter, + _sel_accommodatePresentedItemEvictionWithCompletionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1l4hxwm) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_accommodatePresentedItemEvictionWithCompletionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ); + + /// accommodatePresentedSubitemDeletionAtURL:completionHandler: + static final accommodatePresentedSubitemDeletionAtURL_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + objc.NSURL, + objc.ObjCBlock, + ) + >( + _protocol_NSFilePresenter, + _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jk1ljc) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + objc.NSURL, + objc.ObjCBlock, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.NSURL arg1, + objc.ObjCBlock arg2, + ) => func(arg1, arg2), + ), + ( + void Function( + objc.NSURL, + objc.ObjCBlock, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.listener( + ( + ffi.Pointer _, + objc.NSURL arg1, + objc.ObjCBlock arg2, + ) => func(arg1, arg2), + ), + ( + void Function( + objc.NSURL, + objc.ObjCBlock, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.blocking( + ( + ffi.Pointer _, + objc.NSURL arg1, + objc.ObjCBlock arg2, + ) => func(arg1, arg2), + ), + ); + + /// observedPresentedItemUbiquityAttributes + static final observedPresentedItemUbiquityAttributes = + objc.ObjCProtocolMethod( + _protocol_NSFilePresenter, + _sel_observedPresentedItemUbiquityAttributes, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_observedPresentedItemUbiquityAttributes, + isRequired: false, + isInstanceMethod: true, + ), + (objc.NSSet Function() func) => ObjCBlock_NSSet_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// presentedItemDidChange + static final presentedItemDidChange = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidChange, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidChange, + isRequired: false, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// presentedItemDidChangeUbiquityAttributes: + static final presentedItemDidChangeUbiquityAttributes_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidChangeUbiquityAttributes_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidChangeUbiquityAttributes_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSSet) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSet.fromFunction( + (ffi.Pointer _, objc.NSSet arg1) => func(arg1), + ), + (void Function(objc.NSSet) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSet.listener( + (ffi.Pointer _, objc.NSSet arg1) => func(arg1), + ), + (void Function(objc.NSSet) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSet.blocking( + (ffi.Pointer _, objc.NSSet arg1) => func(arg1), + ), + ); + + /// presentedItemDidGainVersion: + static final presentedItemDidGainVersion_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidGainVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidGainVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + ); + + /// presentedItemDidLoseVersion: + static final presentedItemDidLoseVersion_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidLoseVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidLoseVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + ); + + /// presentedItemDidMoveToURL: + static final presentedItemDidMoveToURL_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidMoveToURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidMoveToURL_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + ); + + /// presentedItemDidResolveConflictVersion: + static final presentedItemDidResolveConflictVersion_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedItemDidResolveConflictVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemDidResolveConflictVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + (void Function(NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( + (ffi.Pointer _, NSFileVersion arg1) => func(arg1), + ), + ); + + /// presentedItemOperationQueue + static final presentedItemOperationQueue = + objc.ObjCProtocolMethod( + _protocol_NSFilePresenter, + _sel_presentedItemOperationQueue, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemOperationQueue, + isRequired: true, + isInstanceMethod: true, + ), + (NSOperationQueue Function() func) => + ObjCBlock_NSOperationQueue_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// presentedItemURL + static final presentedItemURL = + objc.ObjCProtocolMethod( + _protocol_NSFilePresenter, + _sel_presentedItemURL, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedItemURL, + isRequired: true, + isInstanceMethod: true, + ), + (objc.NSURL? Function() func) => ObjCBlock_NSURL_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// presentedSubitemAtURL:didGainVersion: + static final presentedSubitemAtURL_didGainVersion_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSURL, NSFileVersion) + >( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didGainVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didGainVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + ); + + /// presentedSubitemAtURL:didLoseVersion: + static final presentedSubitemAtURL_didLoseVersion_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSURL, NSFileVersion) + >( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didLoseVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didLoseVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + ); + + /// presentedSubitemAtURL:didMoveToURL: + static final presentedSubitemAtURL_didMoveToURL_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didMoveToURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didMoveToURL_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.fromFunction( + (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.listener( + (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.blocking( + (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => + func(arg1, arg2), + ), + ); + + /// presentedSubitemAtURL:didResolveConflictVersion: + static final presentedSubitemAtURL_didResolveConflictVersion_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSURL, NSFileVersion) + >( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didResolveConflictVersion_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemAtURL_didResolveConflictVersion_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + (void Function(objc.NSURL, NSFileVersion) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( + (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => + func(arg1, arg2), + ), + ); + + /// presentedSubitemDidAppearAtURL: + static final presentedSubitemDidAppearAtURL_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedSubitemDidAppearAtURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemDidAppearAtURL_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + ); + + /// presentedSubitemDidChangeAtURL: + static final presentedSubitemDidChangeAtURL_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSFilePresenter, + _sel_presentedSubitemDidChangeAtURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_presentedSubitemDidChangeAtURL_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + (void Function(objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( + (ffi.Pointer _, objc.NSURL arg1) => func(arg1), + ), + ); + + /// primaryPresentedItemURL + static final primaryPresentedItemURL = + objc.ObjCProtocolMethod( + _protocol_NSFilePresenter, + _sel_primaryPresentedItemURL, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_primaryPresentedItemURL, + isRequired: false, + isInstanceMethod: true, + ), + (objc.NSURL? Function() func) => ObjCBlock_NSURL_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// relinquishPresentedItemToReader: + static final relinquishPresentedItemToReader_ = + objc.ObjCProtocolListenableMethod< + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + >( + _protocol_NSFilePresenter, + _sel_relinquishPresentedItemToReader_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1l4hxwm) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_relinquishPresentedItemToReader_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.listener( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.blocking( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ); + + /// relinquishPresentedItemToWriter: + static final relinquishPresentedItemToWriter_ = + objc.ObjCProtocolListenableMethod< + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + >( + _protocol_NSFilePresenter, + _sel_relinquishPresentedItemToWriter_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1l4hxwm) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_relinquishPresentedItemToWriter_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.listener( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ( + void Function( + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.blocking( + ( + ffi.Pointer _, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + > + arg1, + ) => func(arg1), + ), + ); + + /// savePresentedItemChangesWithCompletionHandler: + static final savePresentedItemChangesWithCompletionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.ObjCBlock) + >( + _protocol_NSFilePresenter, + _sel_savePresentedItemChangesWithCompletionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1l4hxwm) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFilePresenter, + _sel_savePresentedItemChangesWithCompletionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ( + void Function(objc.ObjCBlock) func, + ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ); +} + +typedef NSFileProtectionType = ffi.Pointer; +typedef DartNSFileProtectionType = objc.NSString; +typedef NSFileProviderServiceName = ffi.Pointer; +typedef DartNSFileProviderServiceName = objc.NSString; + +const int NSFileReadCorruptFileError = 259; + +const int NSFileReadInapplicableStringEncodingError = 261; + +const int NSFileReadInvalidFileNameError = 258; + +const int NSFileReadNoPermissionError = 257; + +const int NSFileReadNoSuchFileError = 260; + +const int NSFileReadTooLargeError = 263; + +const int NSFileReadUnknownError = 256; + +const int NSFileReadUnknownStringEncodingError = 264; + +const int NSFileReadUnsupportedSchemeError = 262; + +/// WARNING: NSFileVersion is a stub. To generate bindings for this class, include +/// NSFileVersion in your config's objc-interfaces list. +/// +/// NSFileVersion +extension type NSFileVersion._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSFileVersion] that points to the same underlying object as [other]. + NSFileVersion.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSFileVersion', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } + + /// Constructs a [NSFileVersion] that wraps the given raw object pointer. + NSFileVersion.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSFileVersion', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } +} + +sealed class NSFileVersionAddingOptions { + static const NSFileVersionAddingByMoving = 1; +} + +sealed class NSFileVersionReplacingOptions { + static const NSFileVersionReplacingByMoving = 1; +} + +/// WARNING: NSFileWrapper is a stub. To generate bindings for this class, include +/// NSFileWrapper in your config's objc-interfaces list. +/// +/// NSFileWrapper +extension type NSFileWrapper._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [NSFileWrapper] that points to the same underlying object as [other]. + NSFileWrapper.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSFileWrapper', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSFileWrapper] that wraps the given raw object pointer. + NSFileWrapper.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSFileWrapper', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +sealed class NSFileWrapperReadingOptions { + static const NSFileWrapperReadingImmediate = 1; + static const NSFileWrapperReadingWithoutMapping = 2; +} + +sealed class NSFileWrapperWritingOptions { + static const NSFileWrapperWritingAtomic = 1; + static const NSFileWrapperWritingWithNameUpdating = 2; +} + +const int NSFileWriteFileExistsError = 516; + +const int NSFileWriteInapplicableStringEncodingError = 517; + +const int NSFileWriteInvalidFileNameError = 514; + +const int NSFileWriteNoPermissionError = 513; + +const int NSFileWriteOutOfSpaceError = 640; + +const int NSFileWriteUnknownError = 512; + +const int NSFileWriteUnsupportedSchemeError = 518; + +const int NSFileWriteVolumeReadOnlyError = 642; + +/// WARNING: NSFormatter is a stub. To generate bindings for this class, include +/// NSFormatter in your config's objc-interfaces list. +/// +/// NSFormatter +extension type NSFormatter._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCopying, objc.NSCoding { + /// Constructs a [NSFormatter] that points to the same underlying object as [other]. + NSFormatter.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSFormatter] that wraps the given raw object pointer. + NSFormatter.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +enum NSFormattingContext { + NSFormattingContextUnknown(0), + NSFormattingContextDynamic(1), + NSFormattingContextStandalone(2), + NSFormattingContextListItem(3), + NSFormattingContextBeginningOfSentence(4), + NSFormattingContextMiddleOfSentence(5); + + final int value; + const NSFormattingContext(this.value); + + static NSFormattingContext fromValue(int value) => switch (value) { + 0 => NSFormattingContextUnknown, + 1 => NSFormattingContextDynamic, + 2 => NSFormattingContextStandalone, + 3 => NSFormattingContextListItem, + 4 => NSFormattingContextBeginningOfSentence, + 5 => NSFormattingContextMiddleOfSentence, + _ => throw ArgumentError('Unknown value for NSFormattingContext: $value'), + }; +} + +const int NSFormattingError = 2048; + +const int NSFormattingErrorMaximum = 2559; + +const int NSFormattingErrorMinimum = 2048; + +enum NSFormattingUnitStyle { + NSFormattingUnitStyleShort(1), + NSFormattingUnitStyleMedium(2), + NSFormattingUnitStyleLong(3); + + final int value; + const NSFormattingUnitStyle(this.value); + + static NSFormattingUnitStyle fromValue(int value) => switch (value) { + 1 => NSFormattingUnitStyleShort, + 2 => NSFormattingUnitStyleMedium, + 3 => NSFormattingUnitStyleLong, + _ => throw ArgumentError('Unknown value for NSFormattingUnitStyle: $value'), + }; +} + +/// NSGenericFastEnumeration +extension NSGenericFastEnumeration on objc.NSDictionary { + /// countByEnumeratingWithState:objects:count: + DartNSUInteger countByEnumeratingWithState$1( + ffi.Pointer state, { + required ffi.Pointer> objects, + required DartNSUInteger count, + }) { + final _$$ref = object$.ref; + return _objc_msgSend_1b5ysjl( + _$$ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count, + ); + } +} + +/// NSGeometryCoding +extension NSGeometryCoding on objc.NSCoder { + /// decodePoint + NSPoint decodePoint() { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1uwdhlkStret($ptr, _$$ref.pointer, _sel_decodePoint) + : $ptr.ref = _objc_msgSend_1uwdhlk(_$$ref.pointer, _sel_decodePoint); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// decodeRect + NSRect decodeRect() { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_bu1hbwStret($ptr, _$$ref.pointer, _sel_decodeRect) + : $ptr.ref = _objc_msgSend_bu1hbw(_$$ref.pointer, _sel_decodeRect); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// decodeSize + NSSize decodeSize() { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_decodeSize) + : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_decodeSize); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// encodePoint: + void encodePoint(NSPoint point) { + final _$$ref = object$.ref; + _objc_msgSend_iy8iz6(_$$ref.pointer, _sel_encodePoint_, point); + } + + /// encodeRect: + void encodeRect(NSRect rect) { + final _$$ref = object$.ref; + _objc_msgSend_1okkq16(_$$ref.pointer, _sel_encodeRect_, rect); + } + + /// encodeSize: + void encodeSize(NSSize size) { + final _$$ref = object$.ref; + _objc_msgSend_13lgpwz(_$$ref.pointer, _sel_encodeSize_, size); + } +} + +/// NSGeometryKeyedCoding +extension NSGeometryKeyedCoding on objc.NSCoder { + /// decodePointForKey: + NSPoint decodePointForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1mpyy6yStret( + $ptr, + _$$ref.pointer, + _sel_decodePointForKey_, + _$$ref$1.pointer, + ) + : $ptr.ref = _objc_msgSend_1mpyy6y( + _$$ref.pointer, + _sel_decodePointForKey_, + _$$ref$1.pointer, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// decodeRectForKey: + NSRect decodeRectForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_qrtfceStret( + $ptr, + _$$ref.pointer, + _sel_decodeRectForKey_, + _$$ref$1.pointer, + ) + : $ptr.ref = _objc_msgSend_qrtfce( + _$$ref.pointer, + _sel_decodeRectForKey_, + _$$ref$1.pointer, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// decodeSizeForKey: + NSSize decodeSizeForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_18r320vStret( + $ptr, + _$$ref.pointer, + _sel_decodeSizeForKey_, + _$$ref$1.pointer, + ) + : $ptr.ref = _objc_msgSend_18r320v( + _$$ref.pointer, + _sel_decodeSizeForKey_, + _$$ref$1.pointer, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// encodePoint:forKey: + void encodePoint(NSPoint point, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_bkebbk( + _$$ref.pointer, + _sel_encodePoint_forKey_, + point, + _$$ref$1.pointer, + ); + } + + /// encodeRect:forKey: + void encodeRect(NSRect rect, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_f227js( + _$$ref.pointer, + _sel_encodeRect_forKey_, + rect, + _$$ref$1.pointer, + ); + } + + /// encodeSize:forKey: + void encodeSize(NSSize size, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + _objc_msgSend_11tcc61( + _$$ref.pointer, + _sel_encodeSize_forKey_, + size, + _$$ref$1.pointer, + ); + } +} + +enum NSGrammaticalCase { + NSGrammaticalCaseNotSet(0), + NSGrammaticalCaseNominative(1), + NSGrammaticalCaseAccusative(2), + NSGrammaticalCaseDative(3), + NSGrammaticalCaseGenitive(4), + NSGrammaticalCasePrepositional(5), + NSGrammaticalCaseAblative(6), + NSGrammaticalCaseAdessive(7), + NSGrammaticalCaseAllative(8), + NSGrammaticalCaseElative(9), + NSGrammaticalCaseIllative(10), + NSGrammaticalCaseEssive(11), + NSGrammaticalCaseInessive(12), + NSGrammaticalCaseLocative(13), + NSGrammaticalCaseTranslative(14); + + final int value; + const NSGrammaticalCase(this.value); + + static NSGrammaticalCase fromValue(int value) => switch (value) { + 0 => NSGrammaticalCaseNotSet, + 1 => NSGrammaticalCaseNominative, + 2 => NSGrammaticalCaseAccusative, + 3 => NSGrammaticalCaseDative, + 4 => NSGrammaticalCaseGenitive, + 5 => NSGrammaticalCasePrepositional, + 6 => NSGrammaticalCaseAblative, + 7 => NSGrammaticalCaseAdessive, + 8 => NSGrammaticalCaseAllative, + 9 => NSGrammaticalCaseElative, + 10 => NSGrammaticalCaseIllative, + 11 => NSGrammaticalCaseEssive, + 12 => NSGrammaticalCaseInessive, + 13 => NSGrammaticalCaseLocative, + 14 => NSGrammaticalCaseTranslative, + _ => throw ArgumentError('Unknown value for NSGrammaticalCase: $value'), + }; +} + +enum NSGrammaticalDefiniteness { + NSGrammaticalDefinitenessNotSet(0), + NSGrammaticalDefinitenessIndefinite(1), + NSGrammaticalDefinitenessDefinite(2); + + final int value; + const NSGrammaticalDefiniteness(this.value); + + static NSGrammaticalDefiniteness fromValue(int value) => switch (value) { + 0 => NSGrammaticalDefinitenessNotSet, + 1 => NSGrammaticalDefinitenessIndefinite, + 2 => NSGrammaticalDefinitenessDefinite, + _ => throw ArgumentError( + 'Unknown value for NSGrammaticalDefiniteness: $value', + ), + }; +} + +enum NSGrammaticalDetermination { + NSGrammaticalDeterminationNotSet(0), + NSGrammaticalDeterminationIndependent(1), + NSGrammaticalDeterminationDependent(2); + + final int value; + const NSGrammaticalDetermination(this.value); + + static NSGrammaticalDetermination fromValue(int value) => switch (value) { + 0 => NSGrammaticalDeterminationNotSet, + 1 => NSGrammaticalDeterminationIndependent, + 2 => NSGrammaticalDeterminationDependent, + _ => throw ArgumentError( + 'Unknown value for NSGrammaticalDetermination: $value', + ), + }; +} + +enum NSGrammaticalGender { + NSGrammaticalGenderNotSet(0), + NSGrammaticalGenderFeminine(1), + NSGrammaticalGenderMasculine(2), + NSGrammaticalGenderNeuter(3); + + final int value; + const NSGrammaticalGender(this.value); + + static NSGrammaticalGender fromValue(int value) => switch (value) { + 0 => NSGrammaticalGenderNotSet, + 1 => NSGrammaticalGenderFeminine, + 2 => NSGrammaticalGenderMasculine, + 3 => NSGrammaticalGenderNeuter, + _ => throw ArgumentError('Unknown value for NSGrammaticalGender: $value'), + }; +} + +enum NSGrammaticalNumber { + NSGrammaticalNumberNotSet(0), + NSGrammaticalNumberSingular(1), + NSGrammaticalNumberZero(2), + NSGrammaticalNumberPlural(3), + NSGrammaticalNumberPluralTwo(4), + NSGrammaticalNumberPluralFew(5), + NSGrammaticalNumberPluralMany(6); + + final int value; + const NSGrammaticalNumber(this.value); + + static NSGrammaticalNumber fromValue(int value) => switch (value) { + 0 => NSGrammaticalNumberNotSet, + 1 => NSGrammaticalNumberSingular, + 2 => NSGrammaticalNumberZero, + 3 => NSGrammaticalNumberPlural, + 4 => NSGrammaticalNumberPluralTwo, + 5 => NSGrammaticalNumberPluralFew, + 6 => NSGrammaticalNumberPluralMany, + _ => throw ArgumentError('Unknown value for NSGrammaticalNumber: $value'), + }; +} + +enum NSGrammaticalPartOfSpeech { + NSGrammaticalPartOfSpeechNotSet(0), + NSGrammaticalPartOfSpeechDeterminer(1), + NSGrammaticalPartOfSpeechPronoun(2), + NSGrammaticalPartOfSpeechLetter(3), + NSGrammaticalPartOfSpeechAdverb(4), + NSGrammaticalPartOfSpeechParticle(5), + NSGrammaticalPartOfSpeechAdjective(6), + NSGrammaticalPartOfSpeechAdposition(7), + NSGrammaticalPartOfSpeechVerb(8), + NSGrammaticalPartOfSpeechNoun(9), + NSGrammaticalPartOfSpeechConjunction(10), + NSGrammaticalPartOfSpeechNumeral(11), + NSGrammaticalPartOfSpeechInterjection(12), + NSGrammaticalPartOfSpeechPreposition(13), + NSGrammaticalPartOfSpeechAbbreviation(14); + + final int value; + const NSGrammaticalPartOfSpeech(this.value); + + static NSGrammaticalPartOfSpeech fromValue(int value) => switch (value) { + 0 => NSGrammaticalPartOfSpeechNotSet, + 1 => NSGrammaticalPartOfSpeechDeterminer, + 2 => NSGrammaticalPartOfSpeechPronoun, + 3 => NSGrammaticalPartOfSpeechLetter, + 4 => NSGrammaticalPartOfSpeechAdverb, + 5 => NSGrammaticalPartOfSpeechParticle, + 6 => NSGrammaticalPartOfSpeechAdjective, + 7 => NSGrammaticalPartOfSpeechAdposition, + 8 => NSGrammaticalPartOfSpeechVerb, + 9 => NSGrammaticalPartOfSpeechNoun, + 10 => NSGrammaticalPartOfSpeechConjunction, + 11 => NSGrammaticalPartOfSpeechNumeral, + 12 => NSGrammaticalPartOfSpeechInterjection, + 13 => NSGrammaticalPartOfSpeechPreposition, + 14 => NSGrammaticalPartOfSpeechAbbreviation, + _ => throw ArgumentError( + 'Unknown value for NSGrammaticalPartOfSpeech: $value', + ), + }; +} + +enum NSGrammaticalPerson { + NSGrammaticalPersonNotSet(0), + NSGrammaticalPersonFirst(1), + NSGrammaticalPersonSecond(2), + NSGrammaticalPersonThird(3); + + final int value; + const NSGrammaticalPerson(this.value); + + static NSGrammaticalPerson fromValue(int value) => switch (value) { + 0 => NSGrammaticalPersonNotSet, + 1 => NSGrammaticalPersonFirst, + 2 => NSGrammaticalPersonSecond, + 3 => NSGrammaticalPersonThird, + _ => throw ArgumentError('Unknown value for NSGrammaticalPerson: $value'), + }; +} + +enum NSGrammaticalPronounType { + NSGrammaticalPronounTypeNotSet(0), + NSGrammaticalPronounTypePersonal(1), + NSGrammaticalPronounTypeReflexive(2), + NSGrammaticalPronounTypePossessive(3); + + final int value; + const NSGrammaticalPronounType(this.value); + + static NSGrammaticalPronounType fromValue(int value) => switch (value) { + 0 => NSGrammaticalPronounTypeNotSet, + 1 => NSGrammaticalPronounTypePersonal, + 2 => NSGrammaticalPronounTypeReflexive, + 3 => NSGrammaticalPronounTypePossessive, + _ => throw ArgumentError( + 'Unknown value for NSGrammaticalPronounType: $value', + ), + }; +} + +@Deprecated('Not supported') +const int NSHPUXOperatingSystem = 4; + +enum NSHTTPCookieAcceptPolicy { + NSHTTPCookieAcceptPolicyAlways(0), + NSHTTPCookieAcceptPolicyNever(1), + NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain(2); + + final int value; + const NSHTTPCookieAcceptPolicy(this.value); + + static NSHTTPCookieAcceptPolicy fromValue(int value) => switch (value) { + 0 => NSHTTPCookieAcceptPolicyAlways, + 1 => NSHTTPCookieAcceptPolicyNever, + 2 => NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain, + _ => throw ArgumentError( + 'Unknown value for NSHTTPCookieAcceptPolicy: $value', + ), + }; +} + +typedef NSHTTPCookiePropertyKey = ffi.Pointer; +typedef DartNSHTTPCookiePropertyKey = objc.NSString; + +/// WARNING: NSHTTPCookieStorage is a stub. To generate bindings for this class, include +/// NSHTTPCookieStorage in your config's objc-interfaces list. +/// +/// NSHTTPCookieStorage +extension type NSHTTPCookieStorage._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSHTTPCookieStorage] that points to the same underlying object as [other]. + NSHTTPCookieStorage.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSHTTPCookieStorage] that wraps the given raw object pointer. + NSHTTPCookieStorage.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +typedef NSHTTPCookieStringPolicy = ffi.Pointer; +typedef DartNSHTTPCookieStringPolicy = objc.NSString; + +/// NSHTTPURLRequest +extension NSHTTPURLRequest on NSURLRequest { + /// HTTPBody + objc.NSData? get HTTPBody { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPBody', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBody); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// HTTPBodyStream + objc.NSInputStream? get HTTPBodyStream { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPBodyStream', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBodyStream); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// HTTPMethod + objc.NSString? get HTTPMethod { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPMethod', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPMethod); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// HTTPShouldHandleCookies + bool get HTTPShouldHandleCookies { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPShouldHandleCookies', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldHandleCookies); + } + + /// HTTPShouldUsePipelining + @Deprecated( + 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', + ) + bool get HTTPShouldUsePipelining { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.HTTPShouldUsePipelining', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldUsePipelining); + } + + /// allHTTPHeaderFields + objc.NSDictionary? get allHTTPHeaderFields { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.allHTTPHeaderFields', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_allHTTPHeaderFields, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// valueForHTTPHeaderField: + objc.NSString? valueForHTTPHeaderField(objc.NSString field) { + final _$$ref = object$.ref; + final _$$ref$1 = field.ref; + objc.checkOsVersionInternal( + 'NSURLRequest.valueForHTTPHeaderField:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForHTTPHeaderField_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSHTTPURLResponse is a stub. To generate bindings for this class, include +/// NSHTTPURLResponse in your config's objc-interfaces list. +/// +/// NSHTTPURLResponse +extension type NSHTTPURLResponse._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLResponse { + /// Constructs a [NSHTTPURLResponse] that points to the same underlying object as [other]. + NSHTTPURLResponse.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSHTTPURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSHTTPURLResponse] that wraps the given raw object pointer. + NSHTTPURLResponse.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSHTTPURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +final class NSHashEnumerator extends ffi.Struct { + @NSUInteger() + external int _pi; + + @NSUInteger() + external int _si; + + external ffi.Pointer _bs; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int $pi, + required int $si, + required ffi.Pointer $bs, + }) => $allocator() + ..ref._pi = $pi + ..ref._si = $si + ..ref._bs = $bs; +} + +/// WARNING: NSHashTable is a stub. To generate bindings for this class, include +/// NSHashTable in your config's objc-interfaces list. +/// +/// NSHashTable +extension type NSHashTable._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding, + objc.NSFastEnumeration { + /// Constructs a [NSHashTable] that points to the same underlying object as [other]. + NSHashTable.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSHashTable', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } + + /// Constructs a [NSHashTable] that wraps the given raw object pointer. + NSHashTable.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSHashTable', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } +} + +final class NSHashTableCallBacks extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + hash; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + isEqual; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + release; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + hash, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + isEqual, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + release, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe, + }) => $allocator() + ..ref.hash = hash + ..ref.isEqual = isEqual + ..ref.retain = retain + ..ref.release = release + ..ref.describe = describe; +} + +const int NSHashTableCopyIn = 65536; + +const int NSHashTableObjectPointerPersonality = 512; + +typedef NSHashTableOptions = NSUInteger; + +const int NSHashTableStrongMemory = 0; + +const int NSHashTableWeakMemory = 5; + +const int NSHashTableZeroingWeakMemory = 1; + +/// WARNING: NSHost is a stub. To generate bindings for this class, include +/// NSHost in your config's objc-interfaces list. +/// +/// NSHost +@Deprecated( + 'Use Network framework instead, see deprecation notice in ', +) +extension type NSHost._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSHost] that points to the same underlying object as [other]. + NSHost.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSHost', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSHost] that wraps the given raw object pointer. + NSHost.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSHost', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + } +} + +const int NSISO2022JPStringEncoding = 21; + +sealed class NSISO8601DateFormatOptions { + static const NSISO8601DateFormatWithYear = 1; + static const NSISO8601DateFormatWithMonth = 2; + static const NSISO8601DateFormatWithWeekOfYear = 4; + static const NSISO8601DateFormatWithDay = 16; + static const NSISO8601DateFormatWithTime = 32; + static const NSISO8601DateFormatWithTimeZone = 64; + static const NSISO8601DateFormatWithSpaceBetweenDateAndTime = 128; + static const NSISO8601DateFormatWithDashSeparatorInDate = 256; + static const NSISO8601DateFormatWithColonSeparatorInTime = 512; + static const NSISO8601DateFormatWithColonSeparatorInTimeZone = 1024; + static const NSISO8601DateFormatWithFractionalSeconds = 2048; + static const NSISO8601DateFormatWithFullDate = 275; + static const NSISO8601DateFormatWithFullTime = 1632; + static const NSISO8601DateFormatWithInternetDateTime = 1907; +} + +const int NSISOLatin1StringEncoding = 5; + +const int NSISOLatin2StringEncoding = 9; + +/// WARNING: NSIndexPath is a stub. To generate bindings for this class, include +/// NSIndexPath in your config's objc-interfaces list. +/// +/// NSIndexPath +extension type NSIndexPath._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSIndexPath] that points to the same underlying object as [other]. + NSIndexPath.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSIndexPath] that wraps the given raw object pointer. + NSIndexPath.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSInflectionAvailability +extension NSInflectionAvailability on NSInflectionRule { + /// canInflectLanguage: + static bool canInflectLanguage(objc.NSString language) { + final _$$ref = language.ref; + objc.checkOsVersionInternal( + 'NSInflectionRule.canInflectLanguage:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _class_NSInflectionRule, + _sel_canInflectLanguage_, + _$$ref.pointer, + ); + } + + /// canInflectPreferredLocalization + static bool getCanInflectPreferredLocalization() { + objc.checkOsVersionInternal( + 'NSInflectionRule.canInflectPreferredLocalization', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + return _objc_msgSend_91o635( + _class_NSInflectionRule, + _sel_canInflectPreferredLocalization, + ); + } +} + +/// WARNING: NSInflectionRule is a stub. To generate bindings for this class, include +/// NSInflectionRule in your config's objc-interfaces list. +/// +/// NSInflectionRule +extension type NSInflectionRule._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSInflectionRule] that points to the same underlying object as [other]. + NSInflectionRule.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSInflectionRule', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } + + /// Constructs a [NSInflectionRule] that wraps the given raw object pointer. + NSInflectionRule.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSInflectionRule', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } +} + +sealed class NSInlinePresentationIntent { + static const NSInlinePresentationIntentEmphasized = 1; + static const NSInlinePresentationIntentStronglyEmphasized = 2; + static const NSInlinePresentationIntentCode = 4; + static const NSInlinePresentationIntentStrikethrough = 32; + static const NSInlinePresentationIntentSoftBreak = 64; + static const NSInlinePresentationIntentLineBreak = 128; + static const NSInlinePresentationIntentInlineHTML = 256; + static const NSInlinePresentationIntentBlockHTML = 512; +} + +/// NSInputStreamExtensions +extension NSInputStreamExtensions on objc.NSInputStream { + /// initWithFileAtPath: + objc.NSInputStream? initWithFileAtPath(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithFileAtPath_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: false, release: true); + } + + /// inputStreamWithData: + static objc.NSInputStream? inputStreamWithData(objc.NSData data) { + final _$$ref = data.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithData_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// inputStreamWithFileAtPath: + static objc.NSInputStream? inputStreamWithFileAtPath(objc.NSString path) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithFileAtPath_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// inputStreamWithURL: + static objc.NSInputStream? inputStreamWithURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSInputStream.inputStreamWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } +} + +enum NSInsertionPosition { + NSPositionAfter(0), + NSPositionBefore(1), + NSPositionBeginning(2), + NSPositionEnd(3), + NSPositionReplace(4); + + final int value; + const NSInsertionPosition(this.value); + + static NSInsertionPosition fromValue(int value) => switch (value) { + 0 => NSPositionAfter, + 1 => NSPositionBefore, + 2 => NSPositionBeginning, + 3 => NSPositionEnd, + 4 => NSPositionReplace, + _ => throw ArgumentError('Unknown value for NSInsertionPosition: $value'), + }; +} + +typedef NSInteger = ffi.Long; +typedef DartNSInteger = int; + +const int NSInternalScriptError = 8; + +const int NSInternalSpecifierError = 5; + +/// NSInternetPassword +extension NSInternetPassword on NSURLCredential { + /// hasPassword + bool get hasPassword { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.hasPassword', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasPassword); + } + + /// password + objc.NSString? get password { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.password', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_password); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// user + objc.NSString? get user { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.user', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_user); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// credentialWithUser:password:persistence: + static NSURLCredential credentialWithUser( + objc.NSString user, { + required objc.NSString password, + required NSURLCredentialPersistence persistence, + }) { + final _$$ref = user.ref; + final _$$ref$1 = password.ref; + objc.checkOsVersionInternal( + 'NSURLCredential.credentialWithUser:password:persistence:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_17ns785( + _class_NSURLCredential, + _sel_credentialWithUser_password_persistence_, + _$$ref.pointer, + _$$ref$1.pointer, + persistence.value, + ); + return NSURLCredential.fromPointer($ret, retain: true, release: true); + } +} + +const int NSInvalidIndexSpecifierError = 4; + +/// NSItemProvider +extension NSItemProvider on objc.NSURL { + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier( + objc.NSString typeIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_16fy0up( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref$1.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: + objc.NSProgress? loadDataWithTypeIdentifier( + objc.NSString typeIdentifier, { + required objc.ObjCBlock + forItemProviderCompletionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + final _$$ref$2 = forItemProviderCompletionHandler.ref; + objc.checkOsVersionInternal( + 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSProgress.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + objc.NSArray get writableTypeIdentifiersForItemProvider { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'writableTypeIdentifiersForItemProvider', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + static objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( + objc.NSString typeIdentifier, + ) { + final _$$ref = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_16fy0up( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static objc.NSURL? objectWithItemProviderData( + objc.NSData data, { + required objc.NSString typeIdentifier, + }) { + final _$$ref = data.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _class_NSURL, + _sel_objectWithItemProviderData_typeIdentifier_error_, + _$$ref.pointer, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// readableTypeIdentifiersForItemProvider + static objc.NSArray getReadableTypeIdentifiersForItemProvider() { + objc.checkOsVersionInternal( + 'NSURL.readableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSURL, + _sel_readableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSURL, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSItemProvider +extension NSItemProvider$1 on objc.NSString { + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier( + objc.NSString typeIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSString', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_16fy0up( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref$1.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: + objc.NSProgress? loadDataWithTypeIdentifier( + objc.NSString typeIdentifier, { + required objc.ObjCBlock + forItemProviderCompletionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + final _$$ref$2 = forItemProviderCompletionHandler.ref; + objc.checkOsVersionInternal( + 'NSString.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSProgress.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + objc.NSArray get writableTypeIdentifiersForItemProvider { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSString', + 'writableTypeIdentifiersForItemProvider', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + static objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( + objc.NSString typeIdentifier, + ) { + final _$$ref = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _class_NSString, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSString', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_16fy0up( + _class_NSString, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static objc.NSString? objectWithItemProviderData( + objc.NSData data, { + required objc.NSString typeIdentifier, + }) { + final _$$ref = data.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSString.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _class_NSString, + _sel_objectWithItemProviderData_typeIdentifier_error_, + _$$ref.pointer, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// readableTypeIdentifiersForItemProvider + static objc.NSArray getReadableTypeIdentifiersForItemProvider() { + objc.checkOsVersionInternal( + 'NSString.readableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSString, + _sel_readableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { + objc.checkOsVersionInternal( + 'NSString.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSString, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +typedef NSItemProviderCompletionHandler = ffi.Pointer; +typedef DartNSItemProviderCompletionHandler = + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >; + +enum NSItemProviderErrorCode { + NSItemProviderUnknownError(-1), + NSItemProviderItemUnavailableError(-1000), + NSItemProviderUnexpectedValueClassError(-1100), + NSItemProviderUnavailableCoercionError(-1200); + + final int value; + const NSItemProviderErrorCode(this.value); + + static NSItemProviderErrorCode fromValue(int value) => switch (value) { + -1 => NSItemProviderUnknownError, + -1000 => NSItemProviderItemUnavailableError, + -1100 => NSItemProviderUnexpectedValueClassError, + -1200 => NSItemProviderUnavailableCoercionError, + _ => throw ArgumentError( + 'Unknown value for NSItemProviderErrorCode: $value', + ), + }; +} + +typedef NSItemProviderLoadHandler = ffi.Pointer; +typedef DartNSItemProviderLoadHandler = + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >; + +sealed class NSJSONReadingOptions { + static const NSJSONReadingMutableContainers = 1; + static const NSJSONReadingMutableLeaves = 2; + static const NSJSONReadingFragmentsAllowed = 4; + static const NSJSONReadingJSON5Allowed = 8; + static const NSJSONReadingTopLevelDictionaryAssumed = 16; + static const NSJSONReadingAllowFragments = 4; +} + +sealed class NSJSONWritingOptions { + static const NSJSONWritingPrettyPrinted = 1; + static const NSJSONWritingSortedKeys = 2; + static const NSJSONWritingFragmentsAllowed = 4; + static const NSJSONWritingWithoutEscapingSlashes = 8; +} + +const int NSJapaneseEUCStringEncoding = 3; + +const int NSKeySpecifierEvaluationScriptError = 2; + +typedef NSKeyValueChangeKey = ffi.Pointer; +typedef DartNSKeyValueChangeKey = objc.NSString; + +/// NSKeyValueCoding +extension NSKeyValueCoding on objc.NSArray { + /// setValue:forKey: + void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// valueForKey: + objc.ObjCObject valueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKey_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSKeyValueCoding +extension NSKeyValueCoding$1 on objc.NSDictionary { + /// valueForKey: + objc.ObjCObject? valueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSKeyValueCoding +extension NSKeyValueCoding$2 on objc.NSSet { + /// setValue:forKey: + void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// valueForKey: + objc.ObjCObject valueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKey_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSKeyValueCoding +extension NSKeyValueCoding$3 on objc.NSObject { + /// dictionaryWithValuesForKeys: + objc.NSDictionary dictionaryWithValuesForKeys(objc.NSArray keys) { + final _$$ref = object$.ref; + final _$$ref$1 = keys.ref; + objc.checkOsVersionInternal( + 'NSObject.dictionaryWithValuesForKeys:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_dictionaryWithValuesForKeys_, + _$$ref$1.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// mutableArrayValueForKey: + objc.NSMutableArray mutableArrayValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableArrayValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableArrayValueForKey_, + _$$ref$1.pointer, + ); + return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); + } + + /// mutableArrayValueForKeyPath: + objc.NSMutableArray mutableArrayValueForKeyPath(objc.NSString keyPath) { + final _$$ref = object$.ref; + final _$$ref$1 = keyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableArrayValueForKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableArrayValueForKeyPath_, + _$$ref$1.pointer, + ); + return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); + } + + /// mutableOrderedSetValueForKey: + objc.NSMutableOrderedSet mutableOrderedSetValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableOrderedSetValueForKey:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableOrderedSetValueForKey_, + _$$ref$1.pointer, + ); + return objc.NSMutableOrderedSet.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// mutableOrderedSetValueForKeyPath: + objc.NSMutableOrderedSet mutableOrderedSetValueForKeyPath( + objc.NSString keyPath, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = keyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableOrderedSetValueForKeyPath:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableOrderedSetValueForKeyPath_, + _$$ref$1.pointer, + ); + return objc.NSMutableOrderedSet.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// mutableSetValueForKey: + objc.NSMutableSet mutableSetValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableSetValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableSetValueForKey_, + _$$ref$1.pointer, + ); + return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); + } + + /// mutableSetValueForKeyPath: + objc.NSMutableSet mutableSetValueForKeyPath(objc.NSString keyPath) { + final _$$ref = object$.ref; + final _$$ref$1 = keyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.mutableSetValueForKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_mutableSetValueForKeyPath_, + _$$ref$1.pointer, + ); + return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); + } + + /// setNilValueForKey: + void setNilValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.setNilValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setNilValueForKey_, + _$$ref$1.pointer, + ); + } + + /// setValue:forKey: + void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.setValue:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// setValue:forKeyPath: + void setValue$1(objc.ObjCObject? value, {required objc.NSString forKeyPath}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.setValue:forKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKeyPath_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// setValue:forUndefinedKey: + void setValue$2( + objc.ObjCObject? value, { + required objc.NSString forUndefinedKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forUndefinedKey.ref; + objc.checkOsVersionInternal( + 'NSObject.setValue:forUndefinedKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forUndefinedKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// setValuesForKeysWithDictionary: + void setValuesForKeysWithDictionary(objc.NSDictionary keyedValues) { + final _$$ref = object$.ref; + final _$$ref$1 = keyedValues.ref; + objc.checkOsVersionInternal( + 'NSObject.setValuesForKeysWithDictionary:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setValuesForKeysWithDictionary_, + _$$ref$1.pointer, + ); + } + + /// validateValue:forKey:error: + bool validateValue( + ffi.Pointer> ioValue, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.validateValue:forKey:error:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1j9bhml( + _$$ref.pointer, + _sel_validateValue_forKey_error_, + ioValue, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// validateValue:forKeyPath:error: + bool validateValue$1( + ffi.Pointer> ioValue, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.validateValue:forKeyPath:error:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1j9bhml( + _$$ref.pointer, + _sel_validateValue_forKeyPath_error_, + ioValue, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// valueForKey: + objc.ObjCObject? valueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.valueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// valueForKeyPath: + objc.ObjCObject? valueForKeyPath(objc.NSString keyPath) { + final _$$ref = object$.ref; + final _$$ref$1 = keyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.valueForKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKeyPath_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// valueForUndefinedKey: + objc.ObjCObject? valueForUndefinedKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.valueForUndefinedKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForUndefinedKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// accessInstanceVariablesDirectly + static bool getAccessInstanceVariablesDirectly() { + objc.checkOsVersionInternal( + 'NSObject.accessInstanceVariablesDirectly', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_91o635( + _class_NSObject, + _sel_accessInstanceVariablesDirectly, + ); + } +} + +/// NSKeyValueCoding +extension NSKeyValueCoding$4 on objc.NSOrderedSet { + /// setValue:forKey: + void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.setValue:forKey:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } + + /// valueForKey: + objc.ObjCObject valueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.valueForKey:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_valueForKey_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSKeyValueCoding +extension NSKeyValueCoding$5 on objc.NSMutableDictionary { + /// setValue:forKey: + void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } +} + +/// NSKeyValueObserverNotification +extension NSKeyValueObserverNotification on objc.NSObject { + /// didChange:valuesAtIndexes:forKey: + void didChange( + objc.NSKeyValueChange changeKind, { + required objc.NSIndexSet valuesAtIndexes, + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = valuesAtIndexes.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.didChange:valuesAtIndexes:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1diehjo( + _$$ref.pointer, + _sel_didChange_valuesAtIndexes_forKey_, + changeKind.value, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// didChangeValueForKey: + void didChangeValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.didChangeValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_didChangeValueForKey_, + _$$ref$1.pointer, + ); + } + + /// didChangeValueForKey:withSetMutation:usingObjects: + void didChangeValueForKey$1( + objc.NSString key, { + required objc.NSKeyValueSetMutationKind withSetMutation, + required objc.NSSet usingObjects, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final _$$ref$2 = usingObjects.ref; + objc.checkOsVersionInternal( + 'NSObject.didChangeValueForKey:withSetMutation:usingObjects:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_7w1jp7( + _$$ref.pointer, + _sel_didChangeValueForKey_withSetMutation_usingObjects_, + _$$ref$1.pointer, + withSetMutation.value, + _$$ref$2.pointer, + ); + } + + /// willChange:valuesAtIndexes:forKey: + void willChange( + objc.NSKeyValueChange changeKind, { + required objc.NSIndexSet valuesAtIndexes, + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = valuesAtIndexes.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.willChange:valuesAtIndexes:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1diehjo( + _$$ref.pointer, + _sel_willChange_valuesAtIndexes_forKey_, + changeKind.value, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// willChangeValueForKey: + void willChangeValueForKey(objc.NSString key) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + objc.checkOsVersionInternal( + 'NSObject.willChangeValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_willChangeValueForKey_, + _$$ref$1.pointer, + ); + } + + /// willChangeValueForKey:withSetMutation:usingObjects: + void willChangeValueForKey$1( + objc.NSString key, { + required objc.NSKeyValueSetMutationKind withSetMutation, + required objc.NSSet usingObjects, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = key.ref; + final _$$ref$2 = usingObjects.ref; + objc.checkOsVersionInternal( + 'NSObject.willChangeValueForKey:withSetMutation:usingObjects:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_7w1jp7( + _$$ref.pointer, + _sel_willChangeValueForKey_withSetMutation_usingObjects_, + _$$ref$1.pointer, + withSetMutation.value, + _$$ref$2.pointer, + ); + } +} + +/// NSKeyValueObserverRegistration +extension NSKeyValueObserverRegistration on objc.NSArray { + /// addObserver:forKeyPath:options:context: + void addObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required DartNSUInteger options, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + _objc_msgSend_akk2cd( + _$$ref.pointer, + _sel_addObserver_forKeyPath_options_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + options, + context, + ); + } + + /// addObserver:toObjectsAtIndexes:forKeyPath:options:context: + void addObserver$1( + objc.NSObject observer, { + required objc.NSIndexSet toObjectsAtIndexes, + required objc.NSString forKeyPath, + required DartNSUInteger options, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = toObjectsAtIndexes.ref; + final _$$ref$3 = forKeyPath.ref; + _objc_msgSend_1vfgg7v( + _$$ref.pointer, + _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + options, + context, + ); + } + + /// removeObserver:forKeyPath: + void removeObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeObserver:forKeyPath:context: + void removeObserver$1( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSArray.removeObserver:forKeyPath:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1jed5jl( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + context, + ); + } + + /// removeObserver:fromObjectsAtIndexes:forKeyPath: + void removeObserver$2( + objc.NSObject observer, { + required objc.NSIndexSet fromObjectsAtIndexes, + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = fromObjectsAtIndexes.ref; + final _$$ref$3 = forKeyPath.ref; + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// removeObserver:fromObjectsAtIndexes:forKeyPath:context: + void removeObserver$3( + objc.NSObject observer, { + required objc.NSIndexSet fromObjectsAtIndexes, + required objc.NSString forKeyPath, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = fromObjectsAtIndexes.ref; + final _$$ref$3 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSArray.removeObserver:fromObjectsAtIndexes:forKeyPath:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl4k3n( + _$$ref.pointer, + _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + context, + ); + } +} + +/// NSKeyValueObserverRegistration +extension NSKeyValueObserverRegistration$1 on objc.NSSet { + /// addObserver:forKeyPath:options:context: + void addObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required DartNSUInteger options, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + _objc_msgSend_akk2cd( + _$$ref.pointer, + _sel_addObserver_forKeyPath_options_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + options, + context, + ); + } + + /// removeObserver:forKeyPath: + void removeObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeObserver:forKeyPath:context: + void removeObserver$1( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSSet.removeObserver:forKeyPath:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1jed5jl( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + context, + ); + } +} + +/// NSKeyValueObserverRegistration +extension NSKeyValueObserverRegistration$2 on objc.NSOrderedSet { + /// addObserver:forKeyPath:options:context: + void addObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required DartNSUInteger options, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.addObserver:forKeyPath:options:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_akk2cd( + _$$ref.pointer, + _sel_addObserver_forKeyPath_options_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + options, + context, + ); + } + + /// removeObserver:forKeyPath: + void removeObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.removeObserver:forKeyPath:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeObserver:forKeyPath:context: + void removeObserver$1( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.removeObserver:forKeyPath:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1jed5jl( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + context, + ); + } +} + +/// NSKeyValueObserverRegistration +extension NSKeyValueObserverRegistration$3 on objc.NSObject { + /// addObserver:forKeyPath:options:context: + void addObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required DartNSUInteger options, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.addObserver:forKeyPath:options:context:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_akk2cd( + _$$ref.pointer, + _sel_addObserver_forKeyPath_options_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + options, + context, + ); + } + + /// removeObserver:forKeyPath: + void removeObserver( + objc.NSObject observer, { + required objc.NSString forKeyPath, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.removeObserver:forKeyPath:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeObserver:forKeyPath:context: + void removeObserver$1( + objc.NSObject observer, { + required objc.NSString forKeyPath, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = observer.ref; + final _$$ref$2 = forKeyPath.ref; + objc.checkOsVersionInternal( + 'NSObject.removeObserver:forKeyPath:context:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1jed5jl( + _$$ref.pointer, + _sel_removeObserver_forKeyPath_context_, + _$$ref$1.pointer, + _$$ref$2.pointer, + context, + ); + } +} + +/// NSKeyValueObserving +extension NSKeyValueObserving on objc.NSObject { + /// observeValueForKeyPath:ofObject:change:context: + void observeValueForKeyPath( + objc.NSString? keyPath, { + objc.ObjCObject? ofObject, + objc.NSDictionary? change, + required ffi.Pointer context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = keyPath?.ref; + final _$$ref$2 = ofObject?.ref; + final _$$ref$3 = change?.ref; + objc.checkOsVersionInternal( + 'NSObject.observeValueForKeyPath:ofObject:change:context:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl4k3n( + _$$ref.pointer, + _sel_observeValueForKeyPath_ofObject_change_context_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + context, + ); + } +} + +/// NSKeyValueObservingCustomization +extension NSKeyValueObservingCustomization on objc.NSObject { + /// observationInfo + ffi.Pointer get observationInfo { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.observationInfo', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_observationInfo); + } + + /// setObservationInfo: + set observationInfo(ffi.Pointer value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.setObservationInfo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_ovsamd(_$$ref.pointer, _sel_setObservationInfo_, value); + } + + /// automaticallyNotifiesObserversForKey: + static bool automaticallyNotifiesObserversForKey(objc.NSString key) { + final _$$ref = key.ref; + objc.checkOsVersionInternal( + 'NSObject.automaticallyNotifiesObserversForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _class_NSObject, + _sel_automaticallyNotifiesObserversForKey_, + _$$ref.pointer, + ); + } + + /// keyPathsForValuesAffectingValueForKey: + static objc.NSSet keyPathsForValuesAffectingValueForKey(objc.NSString key) { + final _$$ref = key.ref; + objc.checkOsVersionInternal( + 'NSObject.keyPathsForValuesAffectingValueForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSObject, + _sel_keyPathsForValuesAffectingValueForKey_, + _$$ref.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } +} + +typedef NSKeyValueOperator = ffi.Pointer; +typedef DartNSKeyValueOperator = objc.NSString; + +/// NSKeyValueSharedObserverRegistration +extension NSKeyValueSharedObserverRegistration on objc.NSObject { + /// setSharedObservers: + void setSharedObservers(NSKeyValueSharedObserversSnapshot? sharedObservers) { + final _$$ref = object$.ref; + final _$$ref$1 = sharedObservers?.ref; + objc.checkOsVersionInternal( + 'NSObject.setSharedObservers:', + iOS: (false, (18, 0, 0)), + macOS: (false, (15, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setSharedObservers_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// WARNING: NSKeyValueSharedObserversSnapshot is a stub. To generate bindings for this class, include +/// NSKeyValueSharedObserversSnapshot in your config's objc-interfaces list. +/// +/// NSKeyValueSharedObserversSnapshot +extension type NSKeyValueSharedObserversSnapshot._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSKeyValueSharedObserversSnapshot] that points to the same underlying object as [other]. + NSKeyValueSharedObserversSnapshot.as(objc.ObjCObject other) + : object$ = other { + objc.checkOsVersionInternal( + 'NSKeyValueSharedObserversSnapshot', + iOS: (false, (18, 0, 0)), + macOS: (false, (15, 0, 0)), + ); + } + + /// Constructs a [NSKeyValueSharedObserversSnapshot] that wraps the given raw object pointer. + NSKeyValueSharedObserversSnapshot.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSKeyValueSharedObserversSnapshot', + iOS: (false, (18, 0, 0)), + macOS: (false, (15, 0, 0)), + ); + } +} + +/// NSKeyValueSorting +extension NSKeyValueSorting on objc.NSMutableOrderedSet { + /// sortUsingDescriptors: + void sortUsingDescriptors(objc.NSArray sortDescriptors) { + final _$$ref = object$.ref; + final _$$ref$1 = sortDescriptors.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.sortUsingDescriptors:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_sortUsingDescriptors_, + _$$ref$1.pointer, + ); + } +} + +/// NSKeyValueSorting +extension NSKeyValueSorting$1 on objc.NSOrderedSet { + /// sortedArrayUsingDescriptors: + objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { + final _$$ref = object$.ref; + final _$$ref$1 = sortDescriptors.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.sortedArrayUsingDescriptors:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_sortedArrayUsingDescriptors_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +const int NSKeyValueValidationError = 1024; + +/// WARNING: NSKeyedArchiver is a stub. To generate bindings for this class, include +/// NSKeyedArchiver in your config's objc-interfaces list. +/// +/// NSKeyedArchiver +extension type NSKeyedArchiver._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSCoder { + /// Constructs a [NSKeyedArchiver] that points to the same underlying object as [other]. + NSKeyedArchiver.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSKeyedArchiver] that wraps the given raw object pointer. + NSKeyedArchiver.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSKeyedArchiverDelegate +extension type NSKeyedArchiverDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSKeyedArchiverDelegate] that points to the same underlying object as [other]. + NSKeyedArchiverDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSKeyedArchiverDelegate] that wraps the given raw object pointer. + NSKeyedArchiverDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSKeyedArchiverDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSKeyedArchiverDelegate, + ); + } +} + +extension NSKeyedArchiverDelegate$Methods on NSKeyedArchiverDelegate { + /// archiver:didEncodeObject: + void archiver(NSKeyedArchiver archiver, {objc.ObjCObject? didEncodeObject}) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + final _$$ref$2 = didEncodeObject?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_archiver_didEncodeObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedArchiverDelegate', + 'archiver:didEncodeObject:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_archiver_didEncodeObject_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// archiver:willEncodeObject: + objc.ObjCObject? archiver$1( + NSKeyedArchiver archiver, { + required objc.ObjCObject willEncodeObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + final _$$ref$2 = willEncodeObject.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_archiver_willEncodeObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedArchiverDelegate', + 'archiver:willEncodeObject:', + ); + } + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_archiver_willEncodeObject_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// archiver:willReplaceObject:withObject: + void archiver$2( + NSKeyedArchiver archiver, { + objc.ObjCObject? willReplaceObject, + objc.ObjCObject? withObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + final _$$ref$2 = willReplaceObject?.ref; + final _$$ref$3 = withObject?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_archiver_willReplaceObject_withObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedArchiverDelegate', + 'archiver:willReplaceObject:withObject:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_archiver_willReplaceObject_withObject_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// archiverDidFinish: + void archiverDidFinish(NSKeyedArchiver archiver) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_archiverDidFinish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedArchiverDelegate', + 'archiverDidFinish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_archiverDidFinish_, + _$$ref$1.pointer, + ); + } + + /// archiverWillFinish: + void archiverWillFinish(NSKeyedArchiver archiver) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_archiverWillFinish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedArchiverDelegate', + 'archiverWillFinish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_archiverWillFinish_, + _$$ref$1.pointer, + ); + } +} + +interface class NSKeyedArchiverDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSKeyedArchiverDelegate.cast()); + + /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedArchiverDelegate implement({ + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedArchiverDelegate', + ); + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_.implement( + builder, + archiver_didEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implement(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implement( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implement( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedArchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_.implement( + builder, + archiver_didEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implement(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implement( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implement( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedArchiverDelegate implementAsListener({ + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedArchiverDelegate', + ); + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ + .implementAsListener(builder, archiver_didEncodeObject_); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implementAsListener(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsListener( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsListener( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedArchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ + .implementAsListener(builder, archiver_didEncodeObject_); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implementAsListener(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsListener( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsListener( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedArchiverDelegate implementAsBlocking({ + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedArchiverDelegate', + ); + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ + .implementAsBlocking(builder, archiver_didEncodeObject_); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implementAsBlocking(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsBlocking( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsBlocking( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedArchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? + archiver_willEncodeObject_, + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? + archiver_willReplaceObject_withObject_, + void Function(NSKeyedArchiver)? archiverDidFinish_, + void Function(NSKeyedArchiver)? archiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ + .implementAsBlocking(builder, archiver_didEncodeObject_); + NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( + builder, + archiver_willEncodeObject_, + ); + NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ + .implementAsBlocking(builder, archiver_willReplaceObject_withObject_); + NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsBlocking( + builder, + archiverDidFinish_, + ); + NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsBlocking( + builder, + archiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// archiver:didEncodeObject: + static final archiver_didEncodeObject_ = + objc.ObjCProtocolListenableMethod< + void Function(NSKeyedArchiver, objc.ObjCObject?) + >( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_didEncodeObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_didEncodeObject_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.listener( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.blocking( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + ) => func(arg1, arg2), + ), + ); + + /// archiver:willEncodeObject: + static final archiver_willEncodeObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject) + >( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_willEncodeObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_zi5eed) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_willEncodeObject_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject) func) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject arg2, + ) => func(arg1, arg2), + ), + ); + + /// archiver:willReplaceObject:withObject: + static final archiver_willReplaceObject_withObject_ = + objc.ObjCProtocolListenableMethod< + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) + >( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_willReplaceObject_withObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedArchiverDelegate, + _sel_archiver_willReplaceObject_withObject_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + objc.ObjCObject? arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.listener( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + objc.ObjCObject? arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.blocking( + ( + ffi.Pointer _, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + objc.ObjCObject? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// archiverDidFinish: + static final archiverDidFinish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSKeyedArchiverDelegate, + _sel_archiverDidFinish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedArchiverDelegate, + _sel_archiverDidFinish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.fromFunction( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.listener( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.blocking( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + ); + + /// archiverWillFinish: + static final archiverWillFinish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSKeyedArchiverDelegate, + _sel_archiverWillFinish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedArchiverDelegate, + _sel_archiverWillFinish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.fromFunction( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.listener( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + (void Function(NSKeyedArchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.blocking( + (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), + ), + ); +} + +/// NSKeyedArchiverObjectSubstitution +extension NSKeyedArchiverObjectSubstitution on objc.NSObject { + /// classForKeyedArchiver + objc.ObjCObject? get classForKeyedArchiver { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classForKeyedArchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_classForKeyedArchiver, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// replacementObjectForKeyedArchiver: + objc.ObjCObject? replacementObjectForKeyedArchiver(NSKeyedArchiver archiver) { + final _$$ref = object$.ref; + final _$$ref$1 = archiver.ref; + objc.checkOsVersionInternal( + 'NSObject.replacementObjectForKeyedArchiver:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_replacementObjectForKeyedArchiver_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// classFallbacksForKeyedArchiver + static objc.NSArray classFallbacksForKeyedArchiver() { + objc.checkOsVersionInternal( + 'NSObject.classFallbacksForKeyedArchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSObject, + _sel_classFallbacksForKeyedArchiver, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSKeyedUnarchiver is a stub. To generate bindings for this class, include +/// NSKeyedUnarchiver in your config's objc-interfaces list. +/// +/// NSKeyedUnarchiver +extension type NSKeyedUnarchiver._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSCoder { + /// Constructs a [NSKeyedUnarchiver] that points to the same underlying object as [other]. + NSKeyedUnarchiver.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSKeyedUnarchiver] that wraps the given raw object pointer. + NSKeyedUnarchiver.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSKeyedUnarchiverDelegate +extension type NSKeyedUnarchiverDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSKeyedUnarchiverDelegate] that points to the same underlying object as [other]. + NSKeyedUnarchiverDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSKeyedUnarchiverDelegate] that wraps the given raw object pointer. + NSKeyedUnarchiverDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSKeyedUnarchiverDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSKeyedUnarchiverDelegate, + ); + } +} + +extension NSKeyedUnarchiverDelegate$Methods on NSKeyedUnarchiverDelegate { + /// unarchiver:cannotDecodeObjectOfClassName:originalClasses: + objc.ObjCObject? unarchiver( + NSKeyedUnarchiver unarchiver, { + required objc.NSString cannotDecodeObjectOfClassName, + required objc.NSArray originalClasses, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = unarchiver.ref; + final _$$ref$2 = cannotDecodeObjectOfClassName.ref; + final _$$ref$3 = originalClasses.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedUnarchiverDelegate', + 'unarchiver:cannotDecodeObjectOfClassName:originalClasses:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// unarchiver:didDecodeObject: + objc.ObjCObject? unarchiver$1( + NSKeyedUnarchiver unarchiver, { + objc.ObjCObject? didDecodeObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = unarchiver.ref; + final _$$ref$2 = didDecodeObject?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_unarchiver_didDecodeObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedUnarchiverDelegate', + 'unarchiver:didDecodeObject:', + ); + } + final $ret = _objc_msgSend_wfjd8v( + _$$ref.pointer, + _sel_unarchiver_didDecodeObject_, + _$$ref$1.pointer, + _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// unarchiver:willReplaceObject:withObject: + void unarchiver$2( + NSKeyedUnarchiver unarchiver, { + required objc.ObjCObject willReplaceObject, + required objc.ObjCObject withObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = unarchiver.ref; + final _$$ref$2 = willReplaceObject.ref; + final _$$ref$3 = withObject.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_unarchiver_willReplaceObject_withObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedUnarchiverDelegate', + 'unarchiver:willReplaceObject:withObject:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_unarchiver_willReplaceObject_withObject_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// unarchiverDidFinish: + void unarchiverDidFinish(NSKeyedUnarchiver unarchiver) { + final _$$ref = object$.ref; + final _$$ref$1 = unarchiver.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_unarchiverDidFinish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedUnarchiverDelegate', + 'unarchiverDidFinish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_unarchiverDidFinish_, + _$$ref$1.pointer, + ); + } + + /// unarchiverWillFinish: + void unarchiverWillFinish(NSKeyedUnarchiver unarchiver) { + final _$$ref = object$.ref; + final _$$ref$1 = unarchiver.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_unarchiverWillFinish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSKeyedUnarchiverDelegate', + 'unarchiverWillFinish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_unarchiverWillFinish_, + _$$ref$1.pointer, + ); + } +} + +interface class NSKeyedUnarchiverDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSKeyedUnarchiverDelegate.cast()); + + /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedUnarchiverDelegate implement({ + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedUnarchiverDelegate', + ); + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implement(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implement( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implement( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedUnarchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implement(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implement( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implement( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedUnarchiverDelegate implementAsListener({ + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedUnarchiverDelegate', + ); + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implementAsListener(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsListener( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsListener( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedUnarchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implementAsListener(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsListener( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsListener( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSKeyedUnarchiverDelegate implementAsBlocking({ + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSKeyedUnarchiverDelegate', + ); + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implementAsBlocking(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsBlocking( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsBlocking( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + return NSKeyedUnarchiverDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? + unarchiver_didDecodeObject_, + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? + unarchiver_willReplaceObject_withObject_, + void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, + void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, + bool $keepIsolateAlive = true, + }) { + NSKeyedUnarchiverDelegate$Builder + .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ + .implement( + builder, + unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( + builder, + unarchiver_didDecodeObject_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ + .implementAsBlocking(builder, unarchiver_willReplaceObject_withObject_); + NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsBlocking( + builder, + unarchiverDidFinish_, + ); + NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsBlocking( + builder, + unarchiverWillFinish_, + ); + builder.addProtocol($protocol); + } + + /// unarchiver:cannotDecodeObjectOfClassName:originalClasses: + static final unarchiver_cannotDecodeObjectOfClassName_originalClasses_ = + objc.ObjCProtocolMethod< + objc.ObjCObject? Function( + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + >( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.ObjCObject? Function( + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + func, + ) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray.fromFunction( + ( + ffi.Pointer _, + NSKeyedUnarchiver arg1, + objc.NSString arg2, + objc.NSArray arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// unarchiver:didDecodeObject: + static final unarchiver_didDecodeObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?) + >( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_didDecodeObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1p0fswn) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_didDecodeObject_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?) func) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSKeyedUnarchiver arg1, + objc.ObjCObject? arg2, + ) => func(arg1, arg2), + ), + ); + + /// unarchiver:willReplaceObject:withObject: + static final unarchiver_willReplaceObject_withObject_ = + objc.ObjCProtocolListenableMethod< + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) + >( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_willReplaceObject_withObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiver_willReplaceObject_withObject_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSKeyedUnarchiver arg1, + objc.ObjCObject arg2, + objc.ObjCObject arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.listener( + ( + ffi.Pointer _, + NSKeyedUnarchiver arg1, + objc.ObjCObject arg2, + objc.ObjCObject arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.blocking( + ( + ffi.Pointer _, + NSKeyedUnarchiver arg1, + objc.ObjCObject arg2, + objc.ObjCObject arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// unarchiverDidFinish: + static final unarchiverDidFinish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiverDidFinish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiverDidFinish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.fromFunction( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.listener( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.blocking( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + ); + + /// unarchiverWillFinish: + static final unarchiverWillFinish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiverWillFinish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSKeyedUnarchiverDelegate, + _sel_unarchiverWillFinish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.fromFunction( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.listener( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + (void Function(NSKeyedUnarchiver) func) => + ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.blocking( + (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), + ), + ); +} + +/// NSKeyedUnarchiverObjectSubstitution +extension NSKeyedUnarchiverObjectSubstitution on objc.NSObject { + /// classForKeyedUnarchiver + static objc.ObjCObject classForKeyedUnarchiver() { + objc.checkOsVersionInternal( + 'NSObject.classForKeyedUnarchiver', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSObject, + _sel_classForKeyedUnarchiver, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +enum NSLengthFormatterUnit { + NSLengthFormatterUnitMillimeter(8), + NSLengthFormatterUnitCentimeter(9), + NSLengthFormatterUnitMeter(11), + NSLengthFormatterUnitKilometer(14), + NSLengthFormatterUnitInch(1281), + NSLengthFormatterUnitFoot(1282), + NSLengthFormatterUnitYard(1283), + NSLengthFormatterUnitMile(1284); + + final int value; + const NSLengthFormatterUnit(this.value); + + static NSLengthFormatterUnit fromValue(int value) => switch (value) { + 8 => NSLengthFormatterUnitMillimeter, + 9 => NSLengthFormatterUnitCentimeter, + 11 => NSLengthFormatterUnitMeter, + 14 => NSLengthFormatterUnitKilometer, + 1281 => NSLengthFormatterUnitInch, + 1282 => NSLengthFormatterUnitFoot, + 1283 => NSLengthFormatterUnitYard, + 1284 => NSLengthFormatterUnitMile, + _ => throw ArgumentError('Unknown value for NSLengthFormatterUnit: $value'), + }; +} + +/// NSLinguisticAnalysis +extension NSLinguisticAnalysis on objc.NSString { + /// enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock: + @Deprecated( + 'All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API', + ) + void enumerateLinguisticTagsInRange( + NSRange range, { + required DartNSLinguisticTagScheme scheme, + required DartNSUInteger options, + NSOrthography? orthography, + required objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = scheme.ref; + final _$$ref$2 = orthography?.ref; + final _$$ref$3 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSString.enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_vij4rw( + _$$ref.pointer, + _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_, + range, + _$$ref$1.pointer, + options, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3.pointer, + ); + } + + /// linguisticTagsInRange:scheme:options:orthography:tokenRanges: + @Deprecated( + 'All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API', + ) + objc.NSArray linguisticTagsInRange( + NSRange range, { + required DartNSLinguisticTagScheme scheme, + required DartNSUInteger options, + NSOrthography? orthography, + required ffi.Pointer> tokenRanges, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = scheme.ref; + final _$$ref$2 = orthography?.ref; + objc.checkOsVersionInternal( + 'NSString.linguisticTagsInRange:scheme:options:orthography:tokenRanges:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1l09uru( + _$$ref.pointer, + _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_, + range, + _$$ref$1.pointer, + options, + _$$ref$2?.pointer ?? ffi.nullptr, + tokenRanges, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +typedef NSLinguisticTag = ffi.Pointer; +typedef DartNSLinguisticTag = objc.NSString; +typedef NSLinguisticTagScheme = ffi.Pointer; +typedef DartNSLinguisticTagScheme = objc.NSString; + +enum NSLinguisticTaggerUnit { + NSLinguisticTaggerUnitWord(0), + NSLinguisticTaggerUnitSentence(1), + NSLinguisticTaggerUnitParagraph(2), + NSLinguisticTaggerUnitDocument(3); + + final int value; + const NSLinguisticTaggerUnit(this.value); + + static NSLinguisticTaggerUnit fromValue(int value) => switch (value) { + 0 => NSLinguisticTaggerUnitWord, + 1 => NSLinguisticTaggerUnitSentence, + 2 => NSLinguisticTaggerUnitParagraph, + 3 => NSLinguisticTaggerUnitDocument, + _ => throw ArgumentError( + 'Unknown value for NSLinguisticTaggerUnit: $value', + ), + }; +} + +/// NSLocaleCreation +extension NSLocaleCreation on objc.NSLocale { + /// autoupdatingCurrentLocale + static objc.NSLocale getAutoupdatingCurrentLocale() { + objc.checkOsVersionInternal( + 'NSLocale.autoupdatingCurrentLocale', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSLocale, + _sel_autoupdatingCurrentLocale, + ); + return objc.NSLocale.fromPointer($ret, retain: true, release: true); + } + + /// currentLocale + static objc.NSLocale getCurrentLocale() { + final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_currentLocale); + return objc.NSLocale.fromPointer($ret, retain: true, release: true); + } + + /// localeWithLocaleIdentifier: + static objc.NSLocale localeWithLocaleIdentifier(objc.NSString ident) { + final _$$ref = ident.ref; + objc.checkOsVersionInternal( + 'NSLocale.localeWithLocaleIdentifier:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_localeWithLocaleIdentifier_, + _$$ref.pointer, + ); + return objc.NSLocale.fromPointer($ret, retain: true, release: true); + } + + /// systemLocale + static objc.NSLocale getSystemLocale() { + final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_systemLocale); + return objc.NSLocale.fromPointer($ret, retain: true, release: true); + } +} + +/// NSLocaleGeneralInfo +extension NSLocaleGeneralInfo on objc.NSLocale { + /// ISOCountryCodes + static objc.NSArray getISOCountryCodes() { + final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOCountryCodes); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// ISOCurrencyCodes + static objc.NSArray getISOCurrencyCodes() { + final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOCurrencyCodes); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// ISOLanguageCodes + static objc.NSArray getISOLanguageCodes() { + final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOLanguageCodes); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// availableLocaleIdentifiers + static objc.NSArray getAvailableLocaleIdentifiers() { + final $ret = _objc_msgSend_151sglz( + _class_NSLocale, + _sel_availableLocaleIdentifiers, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// canonicalLanguageIdentifierFromString: + static objc.NSString canonicalLanguageIdentifierFromString( + objc.NSString string, + ) { + final _$$ref = string.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_canonicalLanguageIdentifierFromString_, + _$$ref.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// canonicalLocaleIdentifierFromString: + static objc.NSString canonicalLocaleIdentifierFromString( + objc.NSString string, + ) { + final _$$ref = string.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_canonicalLocaleIdentifierFromString_, + _$$ref.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// characterDirectionForLanguage: + static objc.NSLocaleLanguageDirection characterDirectionForLanguage( + objc.NSString isoLangCode, + ) { + final _$$ref = isoLangCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.characterDirectionForLanguage:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1kn7frf( + _class_NSLocale, + _sel_characterDirectionForLanguage_, + _$$ref.pointer, + ); + return objc.NSLocaleLanguageDirection.fromValue($ret); + } + + /// commonISOCurrencyCodes + static objc.NSArray getCommonISOCurrencyCodes() { + objc.checkOsVersionInternal( + 'NSLocale.commonISOCurrencyCodes', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSLocale, + _sel_commonISOCurrencyCodes, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// componentsFromLocaleIdentifier: + static objc.NSDictionary componentsFromLocaleIdentifier( + objc.NSString string, + ) { + final _$$ref = string.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_componentsFromLocaleIdentifier_, + _$$ref.pointer, + ); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// lineDirectionForLanguage: + static objc.NSLocaleLanguageDirection lineDirectionForLanguage( + objc.NSString isoLangCode, + ) { + final _$$ref = isoLangCode.ref; + objc.checkOsVersionInternal( + 'NSLocale.lineDirectionForLanguage:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1kn7frf( + _class_NSLocale, + _sel_lineDirectionForLanguage_, + _$$ref.pointer, + ); + return objc.NSLocaleLanguageDirection.fromValue($ret); + } + + /// localeIdentifierFromComponents: + static objc.NSString localeIdentifierFromComponents(objc.NSDictionary dict) { + final _$$ref = dict.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_localeIdentifierFromComponents_, + _$$ref.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// localeIdentifierFromWindowsLocaleCode: + static objc.NSString? localeIdentifierFromWindowsLocaleCode(int lcid) { + objc.checkOsVersionInternal( + 'NSLocale.localeIdentifierFromWindowsLocaleCode:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_lx7wnn( + _class_NSLocale, + _sel_localeIdentifierFromWindowsLocaleCode_, + lcid, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// preferredLanguages + static objc.NSArray getPreferredLanguages() { + objc.checkOsVersionInternal( + 'NSLocale.preferredLanguages', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSLocale, + _sel_preferredLanguages, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// windowsLocaleCodeFromLocaleIdentifier: + static int windowsLocaleCodeFromLocaleIdentifier( + objc.NSString localeIdentifier, + ) { + final _$$ref = localeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSLocale.windowsLocaleCodeFromLocaleIdentifier:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1nwix4r( + _class_NSLocale, + _sel_windowsLocaleCodeFromLocaleIdentifier_, + _$$ref.pointer, + ); + } +} + +typedef NSLocaleKey = ffi.Pointer; +typedef DartNSLocaleKey = objc.NSString; + +/// NSLocking +extension type NSLocking._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSLocking] that points to the same underlying object as [other]. + NSLocking.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSLocking] that wraps the given raw object pointer. + NSLocking.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSLocking]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSLocking, + ); + } +} + +extension NSLocking$Methods on NSLocking { + /// lock + void lock() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_lock); + } + + /// unlock + void unlock() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_unlock); + } +} + +interface class NSLocking$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSLocking.cast()); + + /// Builds an object that implements the NSLocking protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSLocking implement({ + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); + NSLocking$Builder.lock.implement(builder, lock); + NSLocking$Builder.unlock.implement(builder, unlock); + builder.addProtocol($protocol); + return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the NSLocking protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + NSLocking$Builder.lock.implement(builder, lock); + NSLocking$Builder.unlock.implement(builder, unlock); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSLocking protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSLocking implementAsListener({ + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); + NSLocking$Builder.lock.implementAsListener(builder, lock); + NSLocking$Builder.unlock.implementAsListener(builder, unlock); + builder.addProtocol($protocol); + return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the NSLocking protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + NSLocking$Builder.lock.implementAsListener(builder, lock); + NSLocking$Builder.unlock.implementAsListener(builder, unlock); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSLocking protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSLocking implementAsBlocking({ + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); + NSLocking$Builder.lock.implementAsBlocking(builder, lock); + NSLocking$Builder.unlock.implementAsBlocking(builder, unlock); + builder.addProtocol($protocol); + return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the NSLocking protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function() lock, + required void Function() unlock, + bool $keepIsolateAlive = true, + }) { + NSLocking$Builder.lock.implementAsBlocking(builder, lock); + NSLocking$Builder.unlock.implementAsBlocking(builder, unlock); + builder.addProtocol($protocol); + } + + /// lock + static final lock = objc.ObjCProtocolListenableMethod( + _protocol_NSLocking, + _sel_lock, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSLocking, + _sel_lock, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); + + /// unlock + static final unlock = objc.ObjCProtocolListenableMethod( + _protocol_NSLocking, + _sel_unlock, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSLocking, + _sel_unlock, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); +} + +@Deprecated('Not supported') +const int NSMACHOperatingSystem = 5; + +const int NSMacOSRomanStringEncoding = 30; + +/// NSMachPortDelegate +extension type NSMachPortDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSPortDelegate { + /// Constructs a [NSMachPortDelegate] that points to the same underlying object as [other]. + NSMachPortDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSMachPortDelegate] that wraps the given raw object pointer. + NSMachPortDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMachPortDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSMachPortDelegate, + ); + } +} + +extension NSMachPortDelegate$Methods on NSMachPortDelegate { + /// handleMachMessage: + void handleMachMessage(ffi.Pointer msg) { + final _$$ref = object$.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_handleMachMessage_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSMachPortDelegate', + 'handleMachMessage:', + ); + } + _objc_msgSend_ovsamd(_$$ref.pointer, _sel_handleMachMessage_, msg); + } + + /// handlePortMessage: + void handlePortMessage(objc.NSPortMessage message) { + final _$$ref = object$.ref; + final _$$ref$1 = message.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_handlePortMessage_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSMachPortDelegate', + 'handlePortMessage:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_handlePortMessage_, + _$$ref$1.pointer, + ); + } +} + +interface class NSMachPortDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSMachPortDelegate.cast()); + + /// Builds an object that implements the NSMachPortDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSMachPortDelegate implement({ + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); + NSMachPortDelegate$Builder.handleMachMessage_.implement( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implement( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + return NSMachPortDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSMachPortDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + NSMachPortDelegate$Builder.handleMachMessage_.implement( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implement( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSMachPortDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSMachPortDelegate implementAsListener({ + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); + NSMachPortDelegate$Builder.handleMachMessage_.implementAsListener( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implementAsListener( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + return NSMachPortDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSMachPortDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + NSMachPortDelegate$Builder.handleMachMessage_.implementAsListener( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implementAsListener( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSMachPortDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSMachPortDelegate implementAsBlocking({ + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); + NSMachPortDelegate$Builder.handleMachMessage_.implementAsBlocking( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implementAsBlocking( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + return NSMachPortDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSMachPortDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(ffi.Pointer)? handleMachMessage_, + void Function(objc.NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + NSMachPortDelegate$Builder.handleMachMessage_.implementAsBlocking( + builder, + handleMachMessage_, + ); + NSMachPortDelegate$Builder.handlePortMessage_.implementAsBlocking( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + } + + /// handleMachMessage: + static final handleMachMessage_ = + objc.ObjCProtocolListenableMethod)>( + _protocol_NSMachPortDelegate, + _sel_handleMachMessage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1037nh9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMachPortDelegate, + _sel_handleMachMessage_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(ffi.Pointer) func) => + ObjCBlock_ffiVoid_ffiVoid_ffiVoid.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + (void Function(ffi.Pointer) func) => + ObjCBlock_ffiVoid_ffiVoid_ffiVoid.listener( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + (void Function(ffi.Pointer) func) => + ObjCBlock_ffiVoid_ffiVoid_ffiVoid.blocking( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + ); + + /// handlePortMessage: + static final handlePortMessage_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSMachPortDelegate, + _sel_handlePortMessage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMachPortDelegate, + _sel_handlePortMessage_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(objc.NSPortMessage) func) => + ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.fromFunction( + (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), + ), + (void Function(objc.NSPortMessage) func) => + ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.listener( + (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), + ), + (void Function(objc.NSPortMessage) func) => + ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.blocking( + (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), + ), + ); +} + +sealed class NSMachPortOptions { + static const NSMachPortDeallocateNone = 0; + static const NSMachPortDeallocateSendRight = 1; + static const NSMachPortDeallocateReceiveRight = 2; +} + +final class NSMapEnumerator extends ffi.Struct { + @NSUInteger() + external int _pi; + + @NSUInteger() + external int _si; + + external ffi.Pointer _bs; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int $pi, + required int $si, + required ffi.Pointer $bs, + }) => $allocator() + ..ref._pi = $pi + ..ref._si = $si + ..ref._bs = $bs; +} + +/// WARNING: NSMapTable is a stub. To generate bindings for this class, include +/// NSMapTable in your config's objc-interfaces list. +/// +/// NSMapTable +extension type NSMapTable._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding, + objc.NSFastEnumeration { + /// Constructs a [NSMapTable] that points to the same underlying object as [other]. + NSMapTable.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMapTable', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } + + /// Constructs a [NSMapTable] that wraps the given raw object pointer. + NSMapTable.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMapTable', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } +} + +const int NSMapTableCopyIn = 65536; + +final class NSMapTableKeyCallBacks extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + hash; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + isEqual; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + release; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe; + + external ffi.Pointer notAKeyMarker; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + hash, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + isEqual, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + release, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe, + required ffi.Pointer notAKeyMarker, + }) => $allocator() + ..ref.hash = hash + ..ref.isEqual = isEqual + ..ref.retain = retain + ..ref.release = release + ..ref.describe = describe + ..ref.notAKeyMarker = notAKeyMarker; +} + +const int NSMapTableObjectPointerPersonality = 512; + +typedef NSMapTableOptions = NSUInteger; + +const int NSMapTableStrongMemory = 0; + +final class NSMapTableValueCallBacks extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + retain; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + release; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + retain, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + release, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + describe, + }) => $allocator() + ..ref.retain = retain + ..ref.release = release + ..ref.describe = describe; +} + +const int NSMapTableWeakMemory = 5; + +const int NSMapTableZeroingWeakMemory = 1; + +enum NSMassFormatterUnit { + NSMassFormatterUnitGram(11), + NSMassFormatterUnitKilogram(14), + NSMassFormatterUnitOunce(1537), + NSMassFormatterUnitPound(1538), + NSMassFormatterUnitStone(1539); + + final int value; + const NSMassFormatterUnit(this.value); + + static NSMassFormatterUnit fromValue(int value) => switch (value) { + 11 => NSMassFormatterUnitGram, + 14 => NSMassFormatterUnitKilogram, + 1537 => NSMassFormatterUnitOunce, + 1538 => NSMassFormatterUnitPound, + 1539 => NSMassFormatterUnitStone, + _ => throw ArgumentError('Unknown value for NSMassFormatterUnit: $value'), + }; +} + +/// NSMatching +extension NSMatching on NSRegularExpression { + /// enumerateMatchesInString:options:range:usingBlock: + void enumerateMatchesInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + required objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + > + usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + final _$$ref$2 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.enumerateMatchesInString:options:range:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_105ehca( + _$$ref.pointer, + _sel_enumerateMatchesInString_options_range_usingBlock_, + _$$ref$1.pointer, + options, + range, + _$$ref$2.pointer, + ); + } + + /// firstMatchInString:options:range: + NSTextCheckingResult? firstMatchInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.firstMatchInString:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_pccgql( + _$$ref.pointer, + _sel_firstMatchInString_options_range_, + _$$ref$1.pointer, + options, + range, + ); + return $ret.address == 0 + ? null + : NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// matchesInString:options:range: + objc.NSArray matchesInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.matchesInString:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_pccgql( + _$$ref.pointer, + _sel_matchesInString_options_range_, + _$$ref$1.pointer, + options, + range, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// numberOfMatchesInString:options:range: + DartNSUInteger numberOfMatchesInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.numberOfMatchesInString:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_1rbikrg( + _$$ref.pointer, + _sel_numberOfMatchesInString_options_range_, + _$$ref$1.pointer, + options, + range, + ); + } + + /// rangeOfFirstMatchInString:options:range: + NSRange rangeOfFirstMatchInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.rangeOfFirstMatchInString:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_yl37m5Stret( + $ptr, + _$$ref.pointer, + _sel_rangeOfFirstMatchInString_options_range_, + _$$ref$1.pointer, + options, + range, + ) + : $ptr.ref = _objc_msgSend_yl37m5( + _$$ref.pointer, + _sel_rangeOfFirstMatchInString_options_range_, + _$$ref$1.pointer, + options, + range, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } +} + +sealed class NSMatchingFlags { + static const NSMatchingProgress = 1; + static const NSMatchingCompleted = 2; + static const NSMatchingHitEnd = 4; + static const NSMatchingRequiredEnd = 8; + static const NSMatchingInternalError = 16; +} + +sealed class NSMatchingOptions { + static const NSMatchingReportProgress = 1; + static const NSMatchingReportCompletion = 2; + static const NSMatchingAnchored = 4; + static const NSMatchingWithTransparentBounds = 8; + static const NSMatchingWithoutAnchoringBounds = 16; +} + +sealed class NSMeasurementFormatterUnitOptions { + static const NSMeasurementFormatterUnitOptionsProvidedUnit = 1; + static const NSMeasurementFormatterUnitOptionsNaturalScale = 2; + static const NSMeasurementFormatterUnitOptionsTemperatureWithoutUnit = 4; +} + +/// WARNING: NSMetadataItem is a stub. To generate bindings for this class, include +/// NSMetadataItem in your config's objc-interfaces list. +/// +/// NSMetadataItem +extension type NSMetadataItem._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSMetadataItem] that points to the same underlying object as [other]. + NSMetadataItem.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMetadataItem', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } + + /// Constructs a [NSMetadataItem] that wraps the given raw object pointer. + NSMetadataItem.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMetadataItem', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } +} + +/// WARNING: NSMetadataQuery is a stub. To generate bindings for this class, include +/// NSMetadataQuery in your config's objc-interfaces list. +/// +/// NSMetadataQuery +extension type NSMetadataQuery._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSMetadataQuery] that points to the same underlying object as [other]. + NSMetadataQuery.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMetadataQuery', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } + + /// Constructs a [NSMetadataQuery] that wraps the given raw object pointer. + NSMetadataQuery.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMetadataQuery', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } +} + +/// NSMetadataQueryDelegate +extension type NSMetadataQueryDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSMetadataQueryDelegate] that points to the same underlying object as [other]. + NSMetadataQueryDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSMetadataQueryDelegate] that wraps the given raw object pointer. + NSMetadataQueryDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMetadataQueryDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSMetadataQueryDelegate, + ); + } +} + +extension NSMetadataQueryDelegate$Methods on NSMetadataQueryDelegate { + /// metadataQuery:replacementObjectForResultObject: + objc.ObjCObject metadataQuery( + NSMetadataQuery query, { + required NSMetadataItem replacementObjectForResultObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = query.ref; + final _$$ref$2 = replacementObjectForResultObject.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_metadataQuery_replacementObjectForResultObject_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSMetadataQueryDelegate', + 'metadataQuery:replacementObjectForResultObject:', + ); + } + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_metadataQuery_replacementObjectForResultObject_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// metadataQuery:replacementValueForAttribute:value: + objc.ObjCObject metadataQuery$1( + NSMetadataQuery query, { + required objc.NSString replacementValueForAttribute, + required objc.ObjCObject value, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = query.ref; + final _$$ref$2 = replacementValueForAttribute.ref; + final _$$ref$3 = value.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_metadataQuery_replacementValueForAttribute_value_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSMetadataQueryDelegate', + 'metadataQuery:replacementValueForAttribute:value:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_metadataQuery_replacementValueForAttribute_value_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +interface class NSMetadataQueryDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSMetadataQueryDelegate.cast()); + + /// Builds an object that implements the NSMetadataQueryDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSMetadataQueryDelegate implement({ + objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem)? + metadataQuery_replacementObjectForResultObject_, + objc.ObjCObject Function(NSMetadataQuery, objc.NSString, objc.ObjCObject)? + metadataQuery_replacementValueForAttribute_value_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSMetadataQueryDelegate', + ); + NSMetadataQueryDelegate$Builder + .metadataQuery_replacementObjectForResultObject_ + .implement(builder, metadataQuery_replacementObjectForResultObject_); + NSMetadataQueryDelegate$Builder + .metadataQuery_replacementValueForAttribute_value_ + .implement(builder, metadataQuery_replacementValueForAttribute_value_); + builder.addProtocol($protocol); + return NSMetadataQueryDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSMetadataQueryDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem)? + metadataQuery_replacementObjectForResultObject_, + objc.ObjCObject Function(NSMetadataQuery, objc.NSString, objc.ObjCObject)? + metadataQuery_replacementValueForAttribute_value_, + bool $keepIsolateAlive = true, + }) { + NSMetadataQueryDelegate$Builder + .metadataQuery_replacementObjectForResultObject_ + .implement(builder, metadataQuery_replacementObjectForResultObject_); + NSMetadataQueryDelegate$Builder + .metadataQuery_replacementValueForAttribute_value_ + .implement(builder, metadataQuery_replacementValueForAttribute_value_); + builder.addProtocol($protocol); + } + + /// metadataQuery:replacementObjectForResultObject: + static final metadataQuery_replacementObjectForResultObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem) + >( + _protocol_NSMetadataQueryDelegate, + _sel_metadataQuery_replacementObjectForResultObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_zi5eed) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMetadataQueryDelegate, + _sel_metadataQuery_replacementObjectForResultObject_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem) func) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem.fromFunction( + ( + ffi.Pointer _, + NSMetadataQuery arg1, + NSMetadataItem arg2, + ) => func(arg1, arg2), + ), + ); + + /// metadataQuery:replacementValueForAttribute:value: + static final metadataQuery_replacementValueForAttribute_value_ = + objc.ObjCProtocolMethod< + objc.ObjCObject Function( + NSMetadataQuery, + objc.NSString, + objc.ObjCObject, + ) + >( + _protocol_NSMetadataQueryDelegate, + _sel_metadataQuery_replacementValueForAttribute_value_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMetadataQueryDelegate, + _sel_metadataQuery_replacementValueForAttribute_value_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.ObjCObject Function( + NSMetadataQuery, + objc.NSString, + objc.ObjCObject, + ) + func, + ) => + ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl.fromFunction( + ( + ffi.Pointer _, + NSMetadataQuery arg1, + objc.NSString arg2, + objc.ObjCObject arg3, + ) => func(arg1, arg2, arg3), + ), + ); +} + +/// NSMorphology +extension NSMorphology on objc.NSAttributedString { + /// attributedStringByInflectingString + objc.NSAttributedString attributedStringByInflectingString() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.attributedStringByInflectingString', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_attributedStringByInflectingString, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// WARNING: NSMorphology$1 is a stub. To generate bindings for this class, include +/// NSMorphology in your config's objc-interfaces list. +/// +/// NSMorphology +extension type NSMorphology$1._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSMorphology$1] that points to the same underlying object as [other]. + NSMorphology$1.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMorphology', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } + + /// Constructs a [NSMorphology$1] that wraps the given raw object pointer. + NSMorphology$1.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMorphology', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } +} + +/// WARNING: NSMorphologyCustomPronoun is a stub. To generate bindings for this class, include +/// NSMorphologyCustomPronoun in your config's objc-interfaces list. +/// +/// NSMorphologyCustomPronoun +@Deprecated('Use NSTermOfAddress instead') +extension type NSMorphologyCustomPronoun._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSMorphologyCustomPronoun] that points to the same underlying object as [other]. + NSMorphologyCustomPronoun.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMorphologyCustomPronoun', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } + + /// Constructs a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. + NSMorphologyCustomPronoun.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMorphologyCustomPronoun', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + } +} + +/// NSMorphologyUserSettings +extension NSMorphologyUserSettings on NSMorphology$1 { + /// isUnspecified + bool get isUnspecified { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMorphology.isUnspecified', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isUnspecified); + } + + /// userMorphology + static NSMorphology$1 getUserMorphology() { + objc.checkOsVersionInternal( + 'NSMorphology.userMorphology', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSMorphology, + _sel_userMorphology, + ); + return NSMorphology$1.fromPointer($ret, retain: true, release: true); + } +} + +/// NSMutableArrayCreation +extension NSMutableArrayCreation on objc.NSMutableArray { + /// initWithContentsOfFile: + objc.NSMutableArray? initWithContentsOfFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableArray.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + objc.NSMutableArray? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableArray.fromPointer($ret, retain: false, release: true); + } + + /// arrayWithCapacity: + static objc.NSMutableArray arrayWithCapacity(DartNSUInteger numItems) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableArray, + _sel_arrayWithCapacity_, + numItems, + ); + return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithContentsOfFile: + static objc.NSMutableArray? arrayWithContentsOfFile(objc.NSString path) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithContentsOfURL: + static objc.NSMutableArray? arrayWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSMutableArrayDiffing +extension NSMutableArrayDiffing on objc.NSMutableArray { + /// applyDifference: + void applyDifference(objc.NSOrderedCollectionDifference difference) { + final _$$ref = object$.ref; + final _$$ref$1 = difference.ref; + objc.checkOsVersionInternal( + 'NSMutableArray.applyDifference:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_applyDifference_, + _$$ref$1.pointer, + ); + } +} + +/// WARNING: NSMutableAttributedString is a stub. To generate bindings for this class, include +/// NSMutableAttributedString in your config's objc-interfaces list. +/// +/// NSMutableAttributedString +extension type NSMutableAttributedString._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSAttributedString { + /// Constructs a [NSMutableAttributedString] that points to the same underlying object as [other]. + NSMutableAttributedString.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMutableAttributedString', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSMutableAttributedString] that wraps the given raw object pointer. + NSMutableAttributedString.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMutableAttributedString', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +/// NSMutableAttributedStringFormatting +extension NSMutableAttributedStringFormatting on NSMutableAttributedString { + /// appendLocalizedFormat: + void appendLocalizedFormat(objc.NSAttributedString format) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + objc.checkOsVersionInternal( + 'NSMutableAttributedString.appendLocalizedFormat:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_appendLocalizedFormat_, + _$$ref$1.pointer, + ); + } +} + +/// NSMutableDataCompression +extension NSMutableDataCompression on objc.NSMutableData { + /// compressUsingAlgorithm:error: + bool compressUsingAlgorithm(objc.NSDataCompressionAlgorithm algorithm) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableData.compressUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_15v716q( + _$$ref.pointer, + _sel_compressUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decompressUsingAlgorithm:error: + bool decompressUsingAlgorithm(objc.NSDataCompressionAlgorithm algorithm) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableData.decompressUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_15v716q( + _$$ref.pointer, + _sel_decompressUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +/// NSMutableDataCreation +extension NSMutableDataCreation on objc.NSMutableData { + /// initWithCapacity: + objc.NSMutableData? initWithCapacity(DartNSUInteger capacity) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_14hpxwa( + _$$ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + capacity, + ); + return $ret.address == 0 + ? null + : objc.NSMutableData.fromPointer($ret, retain: false, release: true); + } + + /// initWithLength: + objc.NSMutableData? initWithLength(DartNSUInteger length) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_14hpxwa( + _$$ref.retainAndReturnPointer(), + _sel_initWithLength_, + length, + ); + return $ret.address == 0 + ? null + : objc.NSMutableData.fromPointer($ret, retain: false, release: true); + } + + /// dataWithCapacity: + static objc.NSMutableData? dataWithCapacity(DartNSUInteger aNumItems) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableData, + _sel_dataWithCapacity_, + aNumItems, + ); + return $ret.address == 0 + ? null + : objc.NSMutableData.fromPointer($ret, retain: true, release: true); + } + + /// dataWithLength: + static objc.NSMutableData? dataWithLength(DartNSUInteger length) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableData, + _sel_dataWithLength_, + length, + ); + return $ret.address == 0 + ? null + : objc.NSMutableData.fromPointer($ret, retain: true, release: true); + } +} + +/// NSMutableDictionaryCreation +extension NSMutableDictionaryCreation on objc.NSMutableDictionary { + /// initWithContentsOfFile: + objc.NSMutableDictionary? initWithContentsOfFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableDictionary.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// initWithContentsOfURL: + objc.NSMutableDictionary? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableDictionary.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// dictionaryWithCapacity: + static objc.NSMutableDictionary dictionaryWithCapacity( + DartNSUInteger numItems, + ) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableDictionary, + _sel_dictionaryWithCapacity_, + numItems, + ); + return objc.NSMutableDictionary.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithContentsOfFile: + static objc.NSMutableDictionary? dictionaryWithContentsOfFile( + objc.NSString path, + ) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableDictionary.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithContentsOfURL: + static objc.NSMutableDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSMutableDictionary.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSMutableHTTPURLRequest +extension NSMutableHTTPURLRequest on NSMutableURLRequest { + /// HTTPBody + objc.NSData? get HTTPBody { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPBody', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBody); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// HTTPBodyStream + objc.NSInputStream? get HTTPBodyStream { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPBodyStream', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBodyStream); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// HTTPMethod + objc.NSString get HTTPMethod { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPMethod', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPMethod); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// HTTPShouldHandleCookies + bool get HTTPShouldHandleCookies { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPShouldHandleCookies', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldHandleCookies); + } + + /// HTTPShouldUsePipelining + @Deprecated( + 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', + ) + bool get HTTPShouldUsePipelining { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.HTTPShouldUsePipelining', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldUsePipelining); + } + + /// addValue:forHTTPHeaderField: + void addValue( + objc.NSString value, { + required objc.NSString forHTTPHeaderField, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + final _$$ref$2 = forHTTPHeaderField.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.addValue:forHTTPHeaderField:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_addValue_forHTTPHeaderField_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// allHTTPHeaderFields + objc.NSDictionary? get allHTTPHeaderFields { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.allHTTPHeaderFields', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_allHTTPHeaderFields, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// setAllHTTPHeaderFields: + set allHTTPHeaderFields(objc.NSDictionary? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setAllHTTPHeaderFields:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAllHTTPHeaderFields_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setHTTPBody: + set HTTPBody(objc.NSData? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPBody:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setHTTPBody_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setHTTPBodyStream: + set HTTPBodyStream(objc.NSInputStream? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPBodyStream:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setHTTPBodyStream_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setHTTPMethod: + set HTTPMethod(objc.NSString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPMethod:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setHTTPMethod_, _$$ref$1.pointer); + } + + /// setHTTPShouldHandleCookies: + set HTTPShouldHandleCookies(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPShouldHandleCookies:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_setHTTPShouldHandleCookies_, + value, + ); + } + + /// setHTTPShouldUsePipelining: + @Deprecated( + 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', + ) + set HTTPShouldUsePipelining(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setHTTPShouldUsePipelining:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_setHTTPShouldUsePipelining_, + value, + ); + } + + /// setValue:forHTTPHeaderField: + void setValue( + objc.NSString? value, { + required objc.NSString forHTTPHeaderField, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forHTTPHeaderField.ref; + objc.checkOsVersionInternal( + 'NSMutableURLRequest.setValue:forHTTPHeaderField:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_setValue_forHTTPHeaderField_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } +} + +/// NSMutableOrderedSetCreation +extension NSMutableOrderedSetCreation on objc.NSMutableOrderedSet { + /// orderedSetWithCapacity: + static objc.NSMutableOrderedSet orderedSetWithCapacity( + DartNSUInteger numItems, + ) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithCapacity:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableOrderedSet, + _sel_orderedSetWithCapacity_, + numItems, + ); + return objc.NSMutableOrderedSet.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSMutableOrderedSetDiffing +extension NSMutableOrderedSetDiffing on objc.NSMutableOrderedSet { + /// applyDifference: + void applyDifference(objc.NSOrderedCollectionDifference difference) { + final _$$ref = object$.ref; + final _$$ref$1 = difference.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.applyDifference:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_applyDifference_, + _$$ref$1.pointer, + ); + } +} + +/// NSMutableSetCreation +extension NSMutableSetCreation on objc.NSMutableSet { + /// setWithCapacity: + static objc.NSMutableSet setWithCapacity(DartNSUInteger numItems) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableSet, + _sel_setWithCapacity_, + numItems, + ); + return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); + } +} + +/// NSMutableStringExtensionMethods +extension NSMutableStringExtensionMethods on objc.NSMutableString { + /// appendFormat: + void appendFormat(objc.NSString format) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_appendFormat_, _$$ref$1.pointer); + } + + /// appendString: + void appendString(objc.NSString aString) { + final _$$ref = object$.ref; + final _$$ref$1 = aString.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_appendString_, _$$ref$1.pointer); + } + + /// applyTransform:reverse:range:updatedRange: + bool applyTransform( + DartNSStringTransform transform, { + required bool reverse, + required NSRange range, + required NSRangePointer updatedRange, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = transform.ref; + objc.checkOsVersionInternal( + 'NSMutableString.applyTransform:reverse:range:updatedRange:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + return _objc_msgSend_zy00wz( + _$$ref.pointer, + _sel_applyTransform_reverse_range_updatedRange_, + _$$ref$1.pointer, + reverse, + range, + updatedRange, + ); + } + + /// deleteCharactersInRange: + void deleteCharactersInRange(NSRange range) { + final _$$ref = object$.ref; + _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_deleteCharactersInRange_, range); + } + + /// initWithCapacity: + objc.NSMutableString initWithCapacity(DartNSUInteger capacity) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_14hpxwa( + _$$ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + capacity, + ); + return objc.NSMutableString.fromPointer($ret, retain: false, release: true); + } + + /// insertString:atIndex: + void insertString(objc.NSString aString, {required DartNSUInteger atIndex}) { + final _$$ref = object$.ref; + final _$$ref$1 = aString.ref; + _objc_msgSend_djsa9o( + _$$ref.pointer, + _sel_insertString_atIndex_, + _$$ref$1.pointer, + atIndex, + ); + } + + /// replaceOccurrencesOfString:withString:options:range: + DartNSUInteger replaceOccurrencesOfString( + objc.NSString target, { + required objc.NSString withString, + required DartNSUInteger options, + required NSRange range, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = target.ref; + final _$$ref$2 = withString.ref; + return _objc_msgSend_1upeo1d( + _$$ref.pointer, + _sel_replaceOccurrencesOfString_withString_options_range_, + _$$ref$1.pointer, + _$$ref$2.pointer, + options, + range, + ); + } + + /// setString: + void setString(objc.NSString aString) { + final _$$ref = object$.ref; + final _$$ref$1 = aString.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setString_, _$$ref$1.pointer); + } + + /// stringWithCapacity: + static objc.NSMutableString stringWithCapacity(DartNSUInteger capacity) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableString, + _sel_stringWithCapacity_, + capacity, + ); + return objc.NSMutableString.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSMutableURLRequest is a stub. To generate bindings for this class, include +/// NSMutableURLRequest in your config's objc-interfaces list. +/// +/// NSMutableURLRequest +extension type NSMutableURLRequest._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLRequest { + /// Constructs a [NSMutableURLRequest] that points to the same underlying object as [other]. + NSMutableURLRequest.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSMutableURLRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSMutableURLRequest] that wraps the given raw object pointer. + NSMutableURLRequest.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMutableURLRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +const int NSNEXTSTEPStringEncoding = 2; + +/// WARNING: NSNetService is a stub. To generate bindings for this class, include +/// NSNetService in your config's objc-interfaces list. +/// +/// NSNetService +@Deprecated('Use nw_connection_t or nw_listener_t in Network framework instead') +extension type NSNetService._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSNetService] that points to the same underlying object as [other]. + NSNetService.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSNetService', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSNetService] that wraps the given raw object pointer. + NSNetService.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSNetService', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// WARNING: NSNetServiceBrowser is a stub. To generate bindings for this class, include +/// NSNetServiceBrowser in your config's objc-interfaces list. +/// +/// NSNetServiceBrowser +@Deprecated('Use nw_browser_t in Network framework instead') +extension type NSNetServiceBrowser._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSNetServiceBrowser] that points to the same underlying object as [other]. + NSNetServiceBrowser.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSNetServiceBrowser', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSNetServiceBrowser] that wraps the given raw object pointer. + NSNetServiceBrowser.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSNetServiceBrowser', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// NSNetServiceBrowserDelegate +extension type NSNetServiceBrowserDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSNetServiceBrowserDelegate] that points to the same underlying object as [other]. + NSNetServiceBrowserDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSNetServiceBrowserDelegate] that wraps the given raw object pointer. + NSNetServiceBrowserDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSNetServiceBrowserDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSNetServiceBrowserDelegate, + ); + } +} + +extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { + /// netServiceBrowser:didFindDomain:moreComing: + void netServiceBrowser( + NSNetServiceBrowser browser, { + required objc.NSString didFindDomain, + required bool moreComing, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + final _$$ref$2 = didFindDomain.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowser:didFindDomain:moreComing:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowser_didFindDomain_moreComing_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowser:didFindDomain:moreComing:', + ); + } + _objc_msgSend_1lhy15d( + _$$ref.pointer, + _sel_netServiceBrowser_didFindDomain_moreComing_, + _$$ref$1.pointer, + _$$ref$2.pointer, + moreComing, + ); + } + + /// netServiceBrowser:didFindService:moreComing: + void netServiceBrowser$1( + NSNetServiceBrowser browser, { + required NSNetService didFindService, + required bool moreComing, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + final _$$ref$2 = didFindService.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowser:didFindService:moreComing:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowser_didFindService_moreComing_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowser:didFindService:moreComing:', + ); + } + _objc_msgSend_1lhy15d( + _$$ref.pointer, + _sel_netServiceBrowser_didFindService_moreComing_, + _$$ref$1.pointer, + _$$ref$2.pointer, + moreComing, + ); + } + + /// netServiceBrowser:didNotSearch: + void netServiceBrowser$2( + NSNetServiceBrowser browser, { + required objc.NSDictionary didNotSearch, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + final _$$ref$2 = didNotSearch.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowser:didNotSearch:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowser_didNotSearch_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowser:didNotSearch:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_netServiceBrowser_didNotSearch_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// netServiceBrowser:didRemoveDomain:moreComing: + void netServiceBrowser$3( + NSNetServiceBrowser browser, { + required objc.NSString didRemoveDomain, + required bool moreComing, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + final _$$ref$2 = didRemoveDomain.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowser:didRemoveDomain:moreComing:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowser_didRemoveDomain_moreComing_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowser:didRemoveDomain:moreComing:', + ); + } + _objc_msgSend_1lhy15d( + _$$ref.pointer, + _sel_netServiceBrowser_didRemoveDomain_moreComing_, + _$$ref$1.pointer, + _$$ref$2.pointer, + moreComing, + ); + } + + /// netServiceBrowser:didRemoveService:moreComing: + void netServiceBrowser$4( + NSNetServiceBrowser browser, { + required NSNetService didRemoveService, + required bool moreComing, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + final _$$ref$2 = didRemoveService.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowser:didRemoveService:moreComing:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowser_didRemoveService_moreComing_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowser:didRemoveService:moreComing:', + ); + } + _objc_msgSend_1lhy15d( + _$$ref.pointer, + _sel_netServiceBrowser_didRemoveService_moreComing_, + _$$ref$1.pointer, + _$$ref$2.pointer, + moreComing, + ); + } + + /// netServiceBrowserDidStopSearch: + void netServiceBrowserDidStopSearch(NSNetServiceBrowser browser) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowserDidStopSearch:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowserDidStopSearch_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowserDidStopSearch:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceBrowserDidStopSearch_, + _$$ref$1.pointer, + ); + } + + /// netServiceBrowserWillSearch: + void netServiceBrowserWillSearch(NSNetServiceBrowser browser) { + final _$$ref = object$.ref; + final _$$ref$1 = browser.ref; + objc.checkOsVersionInternal( + 'NSNetServiceBrowserDelegate.netServiceBrowserWillSearch:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceBrowserWillSearch_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceBrowserDelegate', + 'netServiceBrowserWillSearch:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceBrowserWillSearch_, + _$$ref$1.pointer, + ); + } +} + +interface class NSNetServiceBrowserDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSNetServiceBrowserDelegate.cast()); + + /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceBrowserDelegate implement({ + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSNetServiceBrowserDelegate', + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implement(builder, netServiceBrowser_didFindDomain_moreComing_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implement(builder, netServiceBrowser_didFindService_moreComing_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implement(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implement(builder, netServiceBrowser_didRemoveDomain_moreComing_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implement(builder, netServiceBrowser_didRemoveService_moreComing_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implement(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_.implement( + builder, + netServiceBrowserWillSearch_, + ); + builder.addProtocol($protocol); + return NSNetServiceBrowserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implement(builder, netServiceBrowser_didFindDomain_moreComing_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implement(builder, netServiceBrowser_didFindService_moreComing_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implement(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implement(builder, netServiceBrowser_didRemoveDomain_moreComing_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implement(builder, netServiceBrowser_didRemoveService_moreComing_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implement(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_.implement( + builder, + netServiceBrowserWillSearch_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceBrowserDelegate implementAsListener({ + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSNetServiceBrowserDelegate', + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didFindDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didFindService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implementAsListener(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didRemoveDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didRemoveService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implementAsListener(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ + .implementAsListener(builder, netServiceBrowserWillSearch_); + builder.addProtocol($protocol); + return NSNetServiceBrowserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didFindDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didFindService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implementAsListener(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didRemoveDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implementAsListener( + builder, + netServiceBrowser_didRemoveService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implementAsListener(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ + .implementAsListener(builder, netServiceBrowserWillSearch_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceBrowserDelegate implementAsBlocking({ + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSNetServiceBrowserDelegate', + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didFindDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didFindService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implementAsBlocking(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didRemoveDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didRemoveService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implementAsBlocking(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ + .implementAsBlocking(builder, netServiceBrowserWillSearch_); + builder.addProtocol($protocol); + return NSNetServiceBrowserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didFindDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didFindService_moreComing_, + void Function(NSNetServiceBrowser, objc.NSDictionary)? + netServiceBrowser_didNotSearch_, + void Function(NSNetServiceBrowser, objc.NSString, bool)? + netServiceBrowser_didRemoveDomain_moreComing_, + void Function(NSNetServiceBrowser, NSNetService, bool)? + netServiceBrowser_didRemoveService_moreComing_, + void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, + void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindDomain_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didFindDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didFindService_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didFindService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ + .implementAsBlocking(builder, netServiceBrowser_didNotSearch_); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveDomain_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didRemoveDomain_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder + .netServiceBrowser_didRemoveService_moreComing_ + .implementAsBlocking( + builder, + netServiceBrowser_didRemoveService_moreComing_, + ); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ + .implementAsBlocking(builder, netServiceBrowserDidStopSearch_); + NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ + .implementAsBlocking(builder, netServiceBrowserWillSearch_); + builder.addProtocol($protocol); + } + + /// netServiceBrowser:didFindDomain:moreComing: + static final netServiceBrowser_didFindDomain_moreComing_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetServiceBrowser, objc.NSString, bool) + >( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didFindDomain_moreComing_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_8acz2h) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didFindDomain_moreComing_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.fromFunction( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.listener( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.blocking( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// netServiceBrowser:didFindService:moreComing: + static final netServiceBrowser_didFindService_moreComing_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetServiceBrowser, NSNetService, bool) + >( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didFindService_moreComing_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_8acz2h) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didFindService_moreComing_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.fromFunction( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.listener( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.blocking( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// netServiceBrowser:didNotSearch: + static final netServiceBrowser_didNotSearch_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetServiceBrowser, objc.NSDictionary) + >( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didNotSearch_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didNotSearch_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.fromFunction( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.listener( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.blocking( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + ); + + /// netServiceBrowser:didRemoveDomain:moreComing: + static final netServiceBrowser_didRemoveDomain_moreComing_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetServiceBrowser, objc.NSString, bool) + >( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didRemoveDomain_moreComing_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_8acz2h) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didRemoveDomain_moreComing_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.fromFunction( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.listener( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.blocking( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// netServiceBrowser:didRemoveService:moreComing: + static final netServiceBrowser_didRemoveService_moreComing_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetServiceBrowser, NSNetService, bool) + >( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didRemoveService_moreComing_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_8acz2h) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowser_didRemoveService_moreComing_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.fromFunction( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.listener( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSNetServiceBrowser, NSNetService, bool) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.blocking( + ( + ffi.Pointer _, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// netServiceBrowserDidStopSearch: + static final netServiceBrowserDidStopSearch_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowserDidStopSearch_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowserDidStopSearch_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.fromFunction( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.listener( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.blocking( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + ); + + /// netServiceBrowserWillSearch: + static final netServiceBrowserWillSearch_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowserWillSearch_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceBrowserDelegate, + _sel_netServiceBrowserWillSearch_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.fromFunction( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.listener( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + (void Function(NSNetServiceBrowser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.blocking( + (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), + ), + ); +} + +/// NSNetServiceDelegate +extension type NSNetServiceDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSNetServiceDelegate] that points to the same underlying object as [other]. + NSNetServiceDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSNetServiceDelegate] that wraps the given raw object pointer. + NSNetServiceDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSNetServiceDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSNetServiceDelegate, + ); + } +} + +extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { + /// netService:didAcceptConnectionWithInputStream:outputStream: + void netService( + NSNetService sender, { + required objc.NSInputStream didAcceptConnectionWithInputStream, + required objc.NSOutputStream outputStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didAcceptConnectionWithInputStream.ref; + final _$$ref$3 = outputStream.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netService:didAcceptConnectionWithInputStream:outputStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netService_didAcceptConnectionWithInputStream_outputStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netService:didAcceptConnectionWithInputStream:outputStream:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_netService_didAcceptConnectionWithInputStream_outputStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// netService:didNotPublish: + void netService$1( + NSNetService sender, { + required objc.NSDictionary didNotPublish, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didNotPublish.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netService:didNotPublish:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netService_didNotPublish_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netService:didNotPublish:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_netService_didNotPublish_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// netService:didNotResolve: + void netService$2( + NSNetService sender, { + required objc.NSDictionary didNotResolve, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didNotResolve.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netService:didNotResolve:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netService_didNotResolve_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netService:didNotResolve:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_netService_didNotResolve_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// netService:didUpdateTXTRecordData: + void netService$3( + NSNetService sender, { + required objc.NSData didUpdateTXTRecordData, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didUpdateTXTRecordData.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netService:didUpdateTXTRecordData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netService_didUpdateTXTRecordData_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netService:didUpdateTXTRecordData:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_netService_didUpdateTXTRecordData_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// netServiceDidPublish: + void netServiceDidPublish(NSNetService sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netServiceDidPublish:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceDidPublish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netServiceDidPublish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceDidPublish_, + _$$ref$1.pointer, + ); + } + + /// netServiceDidResolveAddress: + void netServiceDidResolveAddress(NSNetService sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netServiceDidResolveAddress:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_netServiceDidResolveAddress_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netServiceDidResolveAddress:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceDidResolveAddress_, + _$$ref$1.pointer, + ); + } + + /// netServiceDidStop: + void netServiceDidStop(NSNetService sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netServiceDidStop:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceDidStop_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netServiceDidStop:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceDidStop_, + _$$ref$1.pointer, + ); + } + + /// netServiceWillPublish: + void netServiceWillPublish(NSNetService sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netServiceWillPublish:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceWillPublish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netServiceWillPublish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceWillPublish_, + _$$ref$1.pointer, + ); + } + + /// netServiceWillResolve: + void netServiceWillResolve(NSNetService sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSNetServiceDelegate.netServiceWillResolve:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceWillResolve_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSNetServiceDelegate', + 'netServiceWillResolve:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_netServiceWillResolve_, + _$$ref$1.pointer, + ); + } +} + +interface class NSNetServiceDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSNetServiceDelegate.cast()); + + /// Builds an object that implements the NSNetServiceDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceDelegate implement({ + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implement( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implement( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implement( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_.implement( + builder, + netService_didUpdateTXTRecordData_, + ); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implement( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_.implement( + builder, + netServiceDidResolveAddress_, + ); + NSNetServiceDelegate$Builder.netServiceDidStop_.implement( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implement( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implement( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + return NSNetServiceDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implement( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implement( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implement( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_.implement( + builder, + netService_didUpdateTXTRecordData_, + ); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implement( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_.implement( + builder, + netServiceDidResolveAddress_, + ); + NSNetServiceDelegate$Builder.netServiceDidStop_.implement( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implement( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implement( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSNetServiceDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceDelegate implementAsListener({ + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implementAsListener( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsListener( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsListener( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ + .implementAsListener(builder, netService_didUpdateTXTRecordData_); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsListener( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ + .implementAsListener(builder, netServiceDidResolveAddress_); + NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsListener( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsListener( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsListener( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + return NSNetServiceDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implementAsListener( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsListener( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsListener( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ + .implementAsListener(builder, netService_didUpdateTXTRecordData_); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsListener( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ + .implementAsListener(builder, netServiceDidResolveAddress_); + NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsListener( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsListener( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsListener( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSNetServiceDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSNetServiceDelegate implementAsBlocking({ + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implementAsBlocking( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsBlocking( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsBlocking( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ + .implementAsBlocking(builder, netService_didUpdateTXTRecordData_); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsBlocking( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ + .implementAsBlocking(builder, netServiceDidResolveAddress_); + NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsBlocking( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsBlocking( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsBlocking( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + return NSNetServiceDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSNetServiceDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? + netService_didAcceptConnectionWithInputStream_outputStream_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, + void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, + void Function(NSNetService, objc.NSData)? + netService_didUpdateTXTRecordData_, + void Function(NSNetService)? netServiceDidPublish_, + void Function(NSNetService)? netServiceDidResolveAddress_, + void Function(NSNetService)? netServiceDidStop_, + void Function(NSNetService)? netServiceWillPublish_, + void Function(NSNetService)? netServiceWillResolve_, + bool $keepIsolateAlive = true, + }) { + NSNetServiceDelegate$Builder + .netService_didAcceptConnectionWithInputStream_outputStream_ + .implementAsBlocking( + builder, + netService_didAcceptConnectionWithInputStream_outputStream_, + ); + NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsBlocking( + builder, + netService_didNotPublish_, + ); + NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsBlocking( + builder, + netService_didNotResolve_, + ); + NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ + .implementAsBlocking(builder, netService_didUpdateTXTRecordData_); + NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsBlocking( + builder, + netServiceDidPublish_, + ); + NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ + .implementAsBlocking(builder, netServiceDidResolveAddress_); + NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsBlocking( + builder, + netServiceDidStop_, + ); + NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsBlocking( + builder, + netServiceWillPublish_, + ); + NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsBlocking( + builder, + netServiceWillResolve_, + ); + builder.addProtocol($protocol); + } + + /// netService:didAcceptConnectionWithInputStream:outputStream: + static final netService_didAcceptConnectionWithInputStream_outputStream_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) + >( + _protocol_NSNetServiceDelegate, + _sel_netService_didAcceptConnectionWithInputStream_outputStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netService_didAcceptConnectionWithInputStream_outputStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.fromFunction( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.listener( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.blocking( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// netService:didNotPublish: + static final netService_didNotPublish_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetService, objc.NSDictionary) + >( + _protocol_NSNetServiceDelegate, + _sel_netService_didNotPublish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netService_didNotPublish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.fromFunction( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.listener( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.blocking( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + ); + + /// netService:didNotResolve: + static final netService_didNotResolve_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetService, objc.NSDictionary) + >( + _protocol_NSNetServiceDelegate, + _sel_netService_didNotResolve_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netService_didNotResolve_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.fromFunction( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.listener( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSDictionary) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.blocking( + ( + ffi.Pointer _, + NSNetService arg1, + objc.NSDictionary arg2, + ) => func(arg1, arg2), + ), + ); + + /// netService:didUpdateTXTRecordData: + static final netService_didUpdateTXTRecordData_ = + objc.ObjCProtocolListenableMethod< + void Function(NSNetService, objc.NSData) + >( + _protocol_NSNetServiceDelegate, + _sel_netService_didUpdateTXTRecordData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netService_didUpdateTXTRecordData_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.fromFunction( + (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.listener( + (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSNetService, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.blocking( + (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + ); + + /// netServiceDidPublish: + static final netServiceDidPublish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidPublish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidPublish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + ); + + /// netServiceDidResolveAddress: + static final netServiceDidResolveAddress_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidResolveAddress_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidResolveAddress_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + ); + + /// netServiceDidStop: + static final netServiceDidStop_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidStop_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netServiceDidStop_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + ); + + /// netServiceWillPublish: + static final netServiceWillPublish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceDelegate, + _sel_netServiceWillPublish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netServiceWillPublish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + ); + + /// netServiceWillResolve: + static final netServiceWillResolve_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSNetServiceDelegate, + _sel_netServiceWillResolve_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSNetServiceDelegate, + _sel_netServiceWillResolve_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + (void Function(NSNetService) func) => + ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( + (ffi.Pointer _, NSNetService arg1) => func(arg1), + ), + ); +} + +sealed class NSNetServiceOptions { + static const NSNetServiceNoAutoRename = 1; + static const NSNetServiceListenForConnections = 2; +} + +enum NSNetServicesError { + NSNetServicesUnknownError(-72000), + NSNetServicesCollisionError(-72001), + NSNetServicesNotFoundError(-72002), + NSNetServicesActivityInProgress(-72003), + NSNetServicesBadArgumentError(-72004), + NSNetServicesCancelledError(-72005), + NSNetServicesInvalidError(-72006), + NSNetServicesTimeoutError(-72007), + NSNetServicesMissingRequiredConfigurationError(-72008); + + final int value; + const NSNetServicesError(this.value); + + static NSNetServicesError fromValue(int value) => switch (value) { + -72000 => NSNetServicesUnknownError, + -72001 => NSNetServicesCollisionError, + -72002 => NSNetServicesNotFoundError, + -72003 => NSNetServicesActivityInProgress, + -72004 => NSNetServicesBadArgumentError, + -72005 => NSNetServicesCancelledError, + -72006 => NSNetServicesInvalidError, + -72007 => NSNetServicesTimeoutError, + -72008 => NSNetServicesMissingRequiredConfigurationError, + _ => throw ArgumentError('Unknown value for NSNetServicesError: $value'), + }; +} + +const int NSNoScriptError = 0; + +const int NSNoSpecifierError = 0; + +const int NSNoTopLevelContainersSpecifierError = 1; + +const int NSNonLossyASCIIStringEncoding = 7; + +const int NSNotFound = 9223372036854775807; + +sealed class NSNotificationCoalescing { + static const NSNotificationNoCoalescing = 0; + static const NSNotificationCoalescingOnName = 1; + static const NSNotificationCoalescingOnSender = 2; +} + +/// NSNotificationCreation +extension NSNotificationCreation on objc.NSNotification { + /// init + objc.NSNotification init$1() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return objc.NSNotification.fromPointer($ret, retain: false, release: true); + } + + /// notificationWithName:object: + static objc.NSNotification notificationWithName( + DartNSNotificationName aName, { + objc.ObjCObject? object, + }) { + final _$$ref = aName.ref; + final _$$ref$1 = object?.ref; + final $ret = _objc_msgSend_15qeuct( + _class_NSNotification, + _sel_notificationWithName_object_, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + return objc.NSNotification.fromPointer($ret, retain: true, release: true); + } + + /// notificationWithName:object:userInfo: + static objc.NSNotification notificationWithName$1( + DartNSNotificationName aName, { + objc.ObjCObject? object, + objc.NSDictionary? userInfo, + }) { + final _$$ref = aName.ref; + final _$$ref$1 = object?.ref; + final _$$ref$2 = userInfo?.ref; + final $ret = _objc_msgSend_11spmsz( + _class_NSNotification, + _sel_notificationWithName_object_userInfo_, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return objc.NSNotification.fromPointer($ret, retain: true, release: true); + } +} + +const int NSNotificationDeliverImmediately = 1; + +typedef NSNotificationName = ffi.Pointer; +typedef DartNSNotificationName = objc.NSString; + +const int NSNotificationPostToAllSessions = 2; + +enum NSNotificationSuspensionBehavior { + NSNotificationSuspensionBehaviorDrop(1), + NSNotificationSuspensionBehaviorCoalesce(2), + NSNotificationSuspensionBehaviorHold(3), + NSNotificationSuspensionBehaviorDeliverImmediately(4); + + final int value; + const NSNotificationSuspensionBehavior(this.value); + + static NSNotificationSuspensionBehavior fromValue(int value) => + switch (value) { + 1 => NSNotificationSuspensionBehaviorDrop, + 2 => NSNotificationSuspensionBehaviorCoalesce, + 3 => NSNotificationSuspensionBehaviorHold, + 4 => NSNotificationSuspensionBehaviorDeliverImmediately, + _ => throw ArgumentError( + 'Unknown value for NSNotificationSuspensionBehavior: $value', + ), + }; +} + +/// WARNING: NSNumberFormatter is a stub. To generate bindings for this class, include +/// NSNumberFormatter in your config's objc-interfaces list. +/// +/// NSNumberFormatter +extension type NSNumberFormatter._(objc.ObjCObject object$) + implements objc.ObjCObject, NSFormatter { + /// Constructs a [NSNumberFormatter] that points to the same underlying object as [other]. + NSNumberFormatter.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSNumberFormatter] that wraps the given raw object pointer. + NSNumberFormatter.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +enum NSNumberFormatterBehavior { + NSNumberFormatterBehaviorDefault(0), + NSNumberFormatterBehavior10_0(1000), + NSNumberFormatterBehavior10_4(1040); + + final int value; + const NSNumberFormatterBehavior(this.value); + + static NSNumberFormatterBehavior fromValue(int value) => switch (value) { + 0 => NSNumberFormatterBehaviorDefault, + 1000 => NSNumberFormatterBehavior10_0, + 1040 => NSNumberFormatterBehavior10_4, + _ => throw ArgumentError( + 'Unknown value for NSNumberFormatterBehavior: $value', + ), + }; +} + +/// NSNumberFormatterCompatibility +extension NSNumberFormatterCompatibility on NSNumberFormatter { + /// attributedStringForNil + objc.NSAttributedString get attributedStringForNil { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_attributedStringForNil, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// attributedStringForNotANumber + objc.NSAttributedString get attributedStringForNotANumber { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_attributedStringForNotANumber, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// attributedStringForZero + objc.NSAttributedString get attributedStringForZero { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_attributedStringForZero, + ); + return objc.NSAttributedString.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// format + objc.NSString get format { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// hasThousandSeparators + bool get hasThousandSeparators { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasThousandSeparators); + } + + /// localizesFormat + bool get localizesFormat { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_localizesFormat); + } + + /// roundingBehavior + NSDecimalNumberHandler get roundingBehavior { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_roundingBehavior); + return NSDecimalNumberHandler.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// setAttributedStringForNil: + set attributedStringForNil(objc.NSAttributedString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAttributedStringForNil_, + _$$ref$1.pointer, + ); + } + + /// setAttributedStringForNotANumber: + set attributedStringForNotANumber(objc.NSAttributedString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAttributedStringForNotANumber_, + _$$ref$1.pointer, + ); + } + + /// setAttributedStringForZero: + set attributedStringForZero(objc.NSAttributedString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAttributedStringForZero_, + _$$ref$1.pointer, + ); + } + + /// setFormat: + set format(objc.NSString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setFormat_, _$$ref$1.pointer); + } + + /// setHasThousandSeparators: + set hasThousandSeparators(bool value) { + final _$$ref = object$.ref; + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_setHasThousandSeparators_, + value, + ); + } + + /// setLocalizesFormat: + set localizesFormat(bool value) { + final _$$ref = object$.ref; + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setLocalizesFormat_, value); + } + + /// setRoundingBehavior: + set roundingBehavior(NSDecimalNumberHandler value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setRoundingBehavior_, + _$$ref$1.pointer, + ); + } + + /// setThousandSeparator: + set thousandSeparator(objc.NSString value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setThousandSeparator_, + _$$ref$1.pointer, + ); + } + + /// thousandSeparator + objc.NSString get thousandSeparator { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_thousandSeparator); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +enum NSNumberFormatterPadPosition { + NSNumberFormatterPadBeforePrefix(0), + NSNumberFormatterPadAfterPrefix(1), + NSNumberFormatterPadBeforeSuffix(2), + NSNumberFormatterPadAfterSuffix(3); + + final int value; + const NSNumberFormatterPadPosition(this.value); + + static NSNumberFormatterPadPosition fromValue(int value) => switch (value) { + 0 => NSNumberFormatterPadBeforePrefix, + 1 => NSNumberFormatterPadAfterPrefix, + 2 => NSNumberFormatterPadBeforeSuffix, + 3 => NSNumberFormatterPadAfterSuffix, + _ => throw ArgumentError( + 'Unknown value for NSNumberFormatterPadPosition: $value', + ), + }; +} + +enum NSNumberFormatterRoundingMode { + NSNumberFormatterRoundCeiling(0), + NSNumberFormatterRoundFloor(1), + NSNumberFormatterRoundDown(2), + NSNumberFormatterRoundUp(3), + NSNumberFormatterRoundHalfEven(4), + NSNumberFormatterRoundHalfDown(5), + NSNumberFormatterRoundHalfUp(6); + + final int value; + const NSNumberFormatterRoundingMode(this.value); + + static NSNumberFormatterRoundingMode fromValue(int value) => switch (value) { + 0 => NSNumberFormatterRoundCeiling, + 1 => NSNumberFormatterRoundFloor, + 2 => NSNumberFormatterRoundDown, + 3 => NSNumberFormatterRoundUp, + 4 => NSNumberFormatterRoundHalfEven, + 5 => NSNumberFormatterRoundHalfDown, + 6 => NSNumberFormatterRoundHalfUp, + _ => throw ArgumentError( + 'Unknown value for NSNumberFormatterRoundingMode: $value', + ), + }; +} + +enum NSNumberFormatterStyle { + NSNumberFormatterNoStyle(0), + NSNumberFormatterDecimalStyle(1), + NSNumberFormatterCurrencyStyle(2), + NSNumberFormatterPercentStyle(3), + NSNumberFormatterScientificStyle(4), + NSNumberFormatterSpellOutStyle(5), + NSNumberFormatterOrdinalStyle(6), + NSNumberFormatterCurrencyISOCodeStyle(8), + NSNumberFormatterCurrencyPluralStyle(9), + NSNumberFormatterCurrencyAccountingStyle(10); + + final int value; + const NSNumberFormatterStyle(this.value); + + static NSNumberFormatterStyle fromValue(int value) => switch (value) { + 0 => NSNumberFormatterNoStyle, + 1 => NSNumberFormatterDecimalStyle, + 2 => NSNumberFormatterCurrencyStyle, + 3 => NSNumberFormatterPercentStyle, + 4 => NSNumberFormatterScientificStyle, + 5 => NSNumberFormatterSpellOutStyle, + 6 => NSNumberFormatterOrdinalStyle, + 8 => NSNumberFormatterCurrencyISOCodeStyle, + 9 => NSNumberFormatterCurrencyPluralStyle, + 10 => NSNumberFormatterCurrencyAccountingStyle, + _ => throw ArgumentError( + 'Unknown value for NSNumberFormatterStyle: $value', + ), + }; +} + +@Deprecated('Not supported') +const int NSOSF1OperatingSystem = 7; + +const int NSOpenStepUnicodeReservedBase = 62464; + +final class NSOperatingSystemVersion extends ffi.Struct { + @NSInteger() + external int majorVersion; + + @NSInteger() + external int minorVersion; + + @NSInteger() + external int patchVersion; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int majorVersion, + required int minorVersion, + required int patchVersion, + }) => $allocator() + ..ref.majorVersion = majorVersion + ..ref.minorVersion = minorVersion + ..ref.patchVersion = patchVersion; +} + +const int NSOperationNotSupportedForKeyScriptError = 9; + +const int NSOperationNotSupportedForKeySpecifierError = 6; + +/// WARNING: NSOperationQueue is a stub. To generate bindings for this class, include +/// NSOperationQueue in your config's objc-interfaces list. +/// +/// NSOperationQueue +extension type NSOperationQueue._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, NSProgressReporting { + /// Constructs a [NSOperationQueue] that points to the same underlying object as [other]. + NSOperationQueue.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSOperationQueue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } + + /// Constructs a [NSOperationQueue] that wraps the given raw object pointer. + NSOperationQueue.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOperationQueue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } +} + +const int NSOperationQueueDefaultMaxConcurrentOperationCount = -1; + +enum NSOperationQueuePriority { + NSOperationQueuePriorityVeryLow(-8), + NSOperationQueuePriorityLow(-4), + NSOperationQueuePriorityNormal(0), + NSOperationQueuePriorityHigh(4), + NSOperationQueuePriorityVeryHigh(8); + + final int value; + const NSOperationQueuePriority(this.value); + + static NSOperationQueuePriority fromValue(int value) => switch (value) { + -8 => NSOperationQueuePriorityVeryLow, + -4 => NSOperationQueuePriorityLow, + 0 => NSOperationQueuePriorityNormal, + 4 => NSOperationQueuePriorityHigh, + 8 => NSOperationQueuePriorityVeryHigh, + _ => throw ArgumentError( + 'Unknown value for NSOperationQueuePriority: $value', + ), + }; +} + +/// NSOrderedPerform +extension NSOrderedPerform on objc.NSRunLoop { + /// cancelPerformSelector:target:argument: + void cancelPerformSelector( + ffi.Pointer aSelector, { + required objc.ObjCObject target, + objc.ObjCObject? argument, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = target.ref; + final _$$ref$2 = argument?.ref; + _objc_msgSend_lzbvjm( + _$$ref.pointer, + _sel_cancelPerformSelector_target_argument_, + aSelector, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// cancelPerformSelectorsWithTarget: + void cancelPerformSelectorsWithTarget(objc.ObjCObject target) { + final _$$ref = object$.ref; + final _$$ref$1 = target.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_cancelPerformSelectorsWithTarget_, + _$$ref$1.pointer, + ); + } + + /// performSelector:target:argument:order:modes: + void performSelector$3( + ffi.Pointer aSelector, { + required objc.ObjCObject target, + objc.ObjCObject? argument, + required DartNSUInteger order, + required objc.NSArray modes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = target.ref; + final _$$ref$2 = argument?.ref; + final _$$ref$3 = modes.ref; + _objc_msgSend_11hj8md( + _$$ref.pointer, + _sel_performSelector_target_argument_order_modes_, + aSelector, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + order, + _$$ref$3.pointer, + ); + } +} + +/// NSOrderedSetCreation +extension NSOrderedSetCreation on objc.NSOrderedSet { + /// initWithArray: + objc.NSOrderedSet initWithArray(objc.NSArray array) { + final _$$ref = object$.ref; + final _$$ref$1 = array.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + objc.NSOrderedSet initWithArray$1( + objc.NSArray set, { + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithArray:range:copyItems: + objc.NSOrderedSet initWithArray$2( + objc.NSArray set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_range_copyItems_, + _$$ref$1.pointer, + range, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithObject: + objc.NSOrderedSet initWithObject(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObject_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithObjects: + objc.NSOrderedSet initWithObjects$1(objc.ObjCObject firstObj) { + final _$$ref = object$.ref; + final _$$ref$1 = firstObj.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjects_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithOrderedSet: + objc.NSOrderedSet initWithOrderedSet(objc.NSOrderedSet set) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithOrderedSet:copyItems: + objc.NSOrderedSet initWithOrderedSet$1( + objc.NSOrderedSet set, { + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithOrderedSet:range:copyItems: + objc.NSOrderedSet initWithOrderedSet$2( + objc.NSOrderedSet set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_range_copyItems_, + _$$ref$1.pointer, + range, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet: + objc.NSOrderedSet initWithSet(objc.NSSet set) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + objc.NSOrderedSet initWithSet$1(objc.NSSet set, {required bool copyItems}) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// orderedSet + static objc.NSOrderedSet orderedSet() { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithArray: + static objc.NSOrderedSet orderedSetWithArray(objc.NSArray array) { + final _$$ref = array.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithArray_, + _$$ref.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithArray:range:copyItems: + static objc.NSOrderedSet orderedSetWithArray$1( + objc.NSArray array, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = array.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _class_NSOrderedSet, + _sel_orderedSetWithArray_range_copyItems_, + _$$ref.pointer, + range, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObject: + static objc.NSOrderedSet orderedSetWithObject(objc.ObjCObject object) { + final _$$ref = object.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithObject_, + _$$ref.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObjects: + static objc.NSOrderedSet orderedSetWithObjects(objc.ObjCObject firstObj) { + final _$$ref = firstObj.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithObjects_, + _$$ref.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObjects:count: + static objc.NSOrderedSet orderedSetWithObjects$1( + ffi.Pointer> objects, { + required DartNSUInteger count, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_zmbtbd( + _class_NSOrderedSet, + _sel_orderedSetWithObjects_count_, + objects, + count, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet: + static objc.NSOrderedSet orderedSetWithOrderedSet(objc.NSOrderedSet set) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_, + _$$ref.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet:range:copyItems: + static objc.NSOrderedSet orderedSetWithOrderedSet$1( + objc.NSOrderedSet set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_range_copyItems_, + _$$ref.pointer, + range, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithSet: + static objc.NSOrderedSet orderedSetWithSet(objc.NSSet set) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithSet_, + _$$ref.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithSet:copyItems: + static objc.NSOrderedSet orderedSetWithSet$1( + objc.NSSet set, { + required bool copyItems, + }) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _class_NSOrderedSet, + _sel_orderedSetWithSet_copyItems_, + _$$ref.pointer, + copyItems, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } +} + +/// NSOrderedSetDiffing +extension NSOrderedSetDiffing on objc.NSOrderedSet { + /// differenceFromOrderedSet: + objc.NSOrderedCollectionDifference differenceFromOrderedSet( + objc.NSOrderedSet other, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.differenceFromOrderedSet:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_differenceFromOrderedSet_, + _$$ref$1.pointer, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// differenceFromOrderedSet:withOptions: + objc.NSOrderedCollectionDifference differenceFromOrderedSet$1( + objc.NSOrderedSet other, { + required DartNSUInteger withOptions, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.differenceFromOrderedSet:withOptions:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1wtpmu7( + _$$ref.pointer, + _sel_differenceFromOrderedSet_withOptions_, + _$$ref$1.pointer, + withOptions, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// differenceFromOrderedSet:withOptions:usingEquivalenceTest: + objc.NSOrderedCollectionDifference differenceFromOrderedSet$2( + objc.NSOrderedSet other, { + required DartNSUInteger withOptions, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingEquivalenceTest, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = other.ref; + final _$$ref$2 = usingEquivalenceTest.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.differenceFromOrderedSet:withOptions:usingEquivalenceTest:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1415lvo( + _$$ref.pointer, + _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_, + _$$ref$1.pointer, + withOptions, + _$$ref$2.pointer, + ); + return objc.NSOrderedCollectionDifference.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// orderedSetByApplyingDifference: + objc.NSOrderedSet? orderedSetByApplyingDifference( + objc.NSOrderedCollectionDifference difference, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = difference.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetByApplyingDifference:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_orderedSetByApplyingDifference_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSOrthography is a stub. To generate bindings for this class, include +/// NSOrthography in your config's objc-interfaces list. +/// +/// NSOrthography +extension type NSOrthography._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSOrthography] that points to the same underlying object as [other]. + NSOrthography.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSOrthography', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } + + /// Constructs a [NSOrthography] that wraps the given raw object pointer. + NSOrthography.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOrthography', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } +} + +/// NSOrthographyCreation +extension NSOrthographyCreation on NSOrthography {} + +/// NSOrthographyExtended +extension NSOrthographyExtended on NSOrthography { + /// allLanguages + objc.NSArray get allLanguages { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSOrthography.allLanguages', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allLanguages); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// allScripts + objc.NSArray get allScripts { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSOrthography.allScripts', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allScripts); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// dominantLanguage + objc.NSString get dominantLanguage { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSOrthography.dominantLanguage', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_dominantLanguage); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// dominantLanguageForScript: + objc.NSString? dominantLanguageForScript(objc.NSString script) { + final _$$ref = object$.ref; + final _$$ref$1 = script.ref; + objc.checkOsVersionInternal( + 'NSOrthography.dominantLanguageForScript:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_dominantLanguageForScript_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// languagesForScript: + objc.NSArray? languagesForScript(objc.NSString script) { + final _$$ref = object$.ref; + final _$$ref$1 = script.ref; + objc.checkOsVersionInternal( + 'NSOrthography.languagesForScript:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_languagesForScript_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSOutputStreamExtensions +extension NSOutputStreamExtensions on objc.NSOutputStream { + /// initToFileAtPath:append: + objc.NSOutputStream? initToFileAtPath( + objc.NSString path, { + required bool append, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initToFileAtPath_append_, + _$$ref$1.pointer, + append, + ); + return $ret.address == 0 + ? null + : objc.NSOutputStream.fromPointer($ret, retain: false, release: true); + } + + /// outputStreamToBuffer:capacity: + static objc.NSOutputStream outputStreamToBuffer( + ffi.Pointer buffer, { + required DartNSUInteger capacity, + }) { + final $ret = _objc_msgSend_158ju31( + _class_NSOutputStream, + _sel_outputStreamToBuffer_capacity_, + buffer, + capacity, + ); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } + + /// outputStreamToFileAtPath:append: + static objc.NSOutputStream outputStreamToFileAtPath( + objc.NSString path, { + required bool append, + }) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamToFileAtPath_append_, + _$$ref.pointer, + append, + ); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } + + /// outputStreamToMemory + static objc.NSOutputStream outputStreamToMemory() { + final $ret = _objc_msgSend_151sglz( + _class_NSOutputStream, + _sel_outputStreamToMemory, + ); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } + + /// outputStreamWithURL:append: + static objc.NSOutputStream? outputStreamWithURL( + objc.NSURL url, { + required bool append, + }) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSOutputStream.outputStreamWithURL:append:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamWithURL_append_, + _$$ref.pointer, + append, + ); + return $ret.address == 0 + ? null + : objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } +} + +sealed class NSPersonNameComponentsFormatterOptions { + static const NSPersonNameComponentsFormatterPhonetic = 2; +} + +enum NSPersonNameComponentsFormatterStyle { + NSPersonNameComponentsFormatterStyleDefault(0), + NSPersonNameComponentsFormatterStyleShort(1), + NSPersonNameComponentsFormatterStyleMedium(2), + NSPersonNameComponentsFormatterStyleLong(3), + NSPersonNameComponentsFormatterStyleAbbreviated(4); + + final int value; + const NSPersonNameComponentsFormatterStyle(this.value); + + static NSPersonNameComponentsFormatterStyle fromValue(int value) => + switch (value) { + 0 => NSPersonNameComponentsFormatterStyleDefault, + 1 => NSPersonNameComponentsFormatterStyleShort, + 2 => NSPersonNameComponentsFormatterStyleMedium, + 3 => NSPersonNameComponentsFormatterStyleLong, + 4 => NSPersonNameComponentsFormatterStyleAbbreviated, + _ => throw ArgumentError( + 'Unknown value for NSPersonNameComponentsFormatterStyle: $value', + ), + }; +} + +typedef NSPoint = objc.CGPoint; +typedef NSPointArray = ffi.Pointer; +typedef NSPointPointer = ffi.Pointer; + +/// WARNING: NSPointerArray is a stub. To generate bindings for this class, include +/// NSPointerArray in your config's objc-interfaces list. +/// +/// NSPointerArray +extension type NSPointerArray._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSFastEnumeration, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSPointerArray] that points to the same underlying object as [other]. + NSPointerArray.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSPointerArray', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } + + /// Constructs a [NSPointerArray] that wraps the given raw object pointer. + NSPointerArray.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSPointerArray', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + } +} + +/// NSPointerArrayConveniences +extension NSPointerArrayConveniences on NSPointerArray { + /// allObjects + objc.NSArray get allObjects { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSPointerArray.allObjects', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allObjects); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// pointerArrayWithStrongObjects + @Deprecated('GC no longer supported') + static objc.ObjCObject pointerArrayWithStrongObjects() { + objc.checkOsVersionInternal( + 'NSPointerArray.pointerArrayWithStrongObjects', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSPointerArray, + _sel_pointerArrayWithStrongObjects, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// pointerArrayWithWeakObjects + @Deprecated('GC no longer supported') + static objc.ObjCObject pointerArrayWithWeakObjects() { + objc.checkOsVersionInternal( + 'NSPointerArray.pointerArrayWithWeakObjects', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSPointerArray, + _sel_pointerArrayWithWeakObjects, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// strongObjectsPointerArray + static NSPointerArray strongObjectsPointerArray() { + objc.checkOsVersionInternal( + 'NSPointerArray.strongObjectsPointerArray', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSPointerArray, + _sel_strongObjectsPointerArray, + ); + return NSPointerArray.fromPointer($ret, retain: true, release: true); + } + + /// weakObjectsPointerArray + static NSPointerArray weakObjectsPointerArray() { + objc.checkOsVersionInternal( + 'NSPointerArray.weakObjectsPointerArray', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSPointerArray, + _sel_weakObjectsPointerArray, + ); + return NSPointerArray.fromPointer($ret, retain: true, release: true); + } +} + +sealed class NSPointerFunctionsOptions { + static const NSPointerFunctionsStrongMemory = 0; + static const NSPointerFunctionsZeroingWeakMemory = 1; + static const NSPointerFunctionsOpaqueMemory = 2; + static const NSPointerFunctionsMallocMemory = 3; + static const NSPointerFunctionsMachVirtualMemory = 4; + static const NSPointerFunctionsWeakMemory = 5; + static const NSPointerFunctionsObjectPersonality = 0; + static const NSPointerFunctionsOpaquePersonality = 256; + static const NSPointerFunctionsObjectPointerPersonality = 512; + static const NSPointerFunctionsCStringPersonality = 768; + static const NSPointerFunctionsStructPersonality = 1024; + static const NSPointerFunctionsIntegerPersonality = 1280; + static const NSPointerFunctionsCopyIn = 65536; +} + +/// WARNING: NSPortCoder is a stub. To generate bindings for this class, include +/// NSPortCoder in your config's objc-interfaces list. +/// +/// NSPortCoder +@Deprecated('Use NSXPCConnection instead') +extension type NSPortCoder._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSCoder { + /// Constructs a [NSPortCoder] that points to the same underlying object as [other]. + NSPortCoder.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSPortCoder', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSPortCoder] that wraps the given raw object pointer. + NSPortCoder.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSPortCoder', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } +} + +enum NSPostingStyle { + NSPostWhenIdle(1), + NSPostASAP(2), + NSPostNow(3); + + final int value; + const NSPostingStyle(this.value); + + static NSPostingStyle fromValue(int value) => switch (value) { + 1 => NSPostWhenIdle, + 2 => NSPostASAP, + 3 => NSPostNow, + _ => throw ArgumentError('Unknown value for NSPostingStyle: $value'), + }; +} + +/// WARNING: NSPredicate is a stub. To generate bindings for this class, include +/// NSPredicate in your config's objc-interfaces list. +/// +/// NSPredicate +extension type NSPredicate._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSPredicate] that points to the same underlying object as [other]. + NSPredicate.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSPredicate', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } + + /// Constructs a [NSPredicate] that wraps the given raw object pointer. + NSPredicate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSPredicate', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 4, 0)), + ); + } +} + +enum NSPredicateOperatorType { + NSLessThanPredicateOperatorType(0), + NSLessThanOrEqualToPredicateOperatorType(1), + NSGreaterThanPredicateOperatorType(2), + NSGreaterThanOrEqualToPredicateOperatorType(3), + NSEqualToPredicateOperatorType(4), + NSNotEqualToPredicateOperatorType(5), + NSMatchesPredicateOperatorType(6), + NSLikePredicateOperatorType(7), + NSBeginsWithPredicateOperatorType(8), + NSEndsWithPredicateOperatorType(9), + NSInPredicateOperatorType(10), + NSCustomSelectorPredicateOperatorType(11), + NSContainsPredicateOperatorType(99), + NSBetweenPredicateOperatorType(100); + + final int value; + const NSPredicateOperatorType(this.value); + + static NSPredicateOperatorType fromValue(int value) => switch (value) { + 0 => NSLessThanPredicateOperatorType, + 1 => NSLessThanOrEqualToPredicateOperatorType, + 2 => NSGreaterThanPredicateOperatorType, + 3 => NSGreaterThanOrEqualToPredicateOperatorType, + 4 => NSEqualToPredicateOperatorType, + 5 => NSNotEqualToPredicateOperatorType, + 6 => NSMatchesPredicateOperatorType, + 7 => NSLikePredicateOperatorType, + 8 => NSBeginsWithPredicateOperatorType, + 9 => NSEndsWithPredicateOperatorType, + 10 => NSInPredicateOperatorType, + 11 => NSCustomSelectorPredicateOperatorType, + 99 => NSContainsPredicateOperatorType, + 100 => NSBetweenPredicateOperatorType, + _ => throw ArgumentError( + 'Unknown value for NSPredicateOperatorType: $value', + ), + }; +} + +/// NSPredicateSupport +extension NSPredicateSupport on objc.NSArray { + /// filteredArrayUsingPredicate: + objc.NSArray filteredArrayUsingPredicate(NSPredicate predicate) { + final _$$ref = object$.ref; + final _$$ref$1 = predicate.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_filteredArrayUsingPredicate_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSPredicateSupport +extension NSPredicateSupport$1 on objc.NSSet { + /// filteredSetUsingPredicate: + objc.NSSet filteredSetUsingPredicate(NSPredicate predicate) { + final _$$ref = object$.ref; + final _$$ref$1 = predicate.ref; + objc.checkOsVersionInternal( + 'NSSet.filteredSetUsingPredicate:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_filteredSetUsingPredicate_, + _$$ref$1.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } +} + +/// NSPredicateSupport +extension NSPredicateSupport$2 on objc.NSMutableArray { + /// filterUsingPredicate: + void filterUsingPredicate(NSPredicate predicate) { + final _$$ref = object$.ref; + final _$$ref$1 = predicate.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_filterUsingPredicate_, + _$$ref$1.pointer, + ); + } +} + +/// NSPredicateSupport +extension NSPredicateSupport$3 on objc.NSMutableOrderedSet { + /// filterUsingPredicate: + void filterUsingPredicate(NSPredicate p) { + final _$$ref = object$.ref; + final _$$ref$1 = p.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.filterUsingPredicate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_filterUsingPredicate_, + _$$ref$1.pointer, + ); + } +} + +/// NSPredicateSupport +extension NSPredicateSupport$4 on objc.NSOrderedSet { + /// filteredOrderedSetUsingPredicate: + objc.NSOrderedSet filteredOrderedSetUsingPredicate(NSPredicate p) { + final _$$ref = object$.ref; + final _$$ref$1 = p.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.filteredOrderedSetUsingPredicate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_filteredOrderedSetUsingPredicate_, + _$$ref$1.pointer, + ); + return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); + } +} + +/// NSPredicateSupport +extension NSPredicateSupport$5 on objc.NSMutableSet { + /// filterUsingPredicate: + void filterUsingPredicate(NSPredicate predicate) { + final _$$ref = object$.ref; + final _$$ref$1 = predicate.ref; + objc.checkOsVersionInternal( + 'NSMutableSet.filterUsingPredicate:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_filterUsingPredicate_, + _$$ref$1.pointer, + ); + } +} + +enum NSPresentationIntentKind { + NSPresentationIntentKindParagraph(0), + NSPresentationIntentKindHeader(1), + NSPresentationIntentKindOrderedList(2), + NSPresentationIntentKindUnorderedList(3), + NSPresentationIntentKindListItem(4), + NSPresentationIntentKindCodeBlock(5), + NSPresentationIntentKindBlockQuote(6), + NSPresentationIntentKindThematicBreak(7), + NSPresentationIntentKindTable(8), + NSPresentationIntentKindTableHeaderRow(9), + NSPresentationIntentKindTableRow(10), + NSPresentationIntentKindTableCell(11); + + final int value; + const NSPresentationIntentKind(this.value); + + static NSPresentationIntentKind fromValue(int value) => switch (value) { + 0 => NSPresentationIntentKindParagraph, + 1 => NSPresentationIntentKindHeader, + 2 => NSPresentationIntentKindOrderedList, + 3 => NSPresentationIntentKindUnorderedList, + 4 => NSPresentationIntentKindListItem, + 5 => NSPresentationIntentKindCodeBlock, + 6 => NSPresentationIntentKindBlockQuote, + 7 => NSPresentationIntentKindThematicBreak, + 8 => NSPresentationIntentKindTable, + 9 => NSPresentationIntentKindTableHeaderRow, + 10 => NSPresentationIntentKindTableRow, + 11 => NSPresentationIntentKindTableCell, + _ => throw ArgumentError( + 'Unknown value for NSPresentationIntentKind: $value', + ), + }; +} + +enum NSPresentationIntentTableColumnAlignment { + NSPresentationIntentTableColumnAlignmentLeft(0), + NSPresentationIntentTableColumnAlignmentCenter(1), + NSPresentationIntentTableColumnAlignmentRight(2); + + final int value; + const NSPresentationIntentTableColumnAlignment(this.value); + + static NSPresentationIntentTableColumnAlignment fromValue(int value) => + switch (value) { + 0 => NSPresentationIntentTableColumnAlignmentLeft, + 1 => NSPresentationIntentTableColumnAlignmentCenter, + 2 => NSPresentationIntentTableColumnAlignmentRight, + _ => throw ArgumentError( + 'Unknown value for NSPresentationIntentTableColumnAlignment: $value', + ), + }; +} + +/// NSPreviewSupport +extension NSPreviewSupport on objc.NSItemProvider { + /// loadPreviewImageWithOptions:completionHandler: + void loadPreviewImageWithOptions( + objc.NSDictionary options, { + required DartNSItemProviderCompletionHandler completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = options.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSItemProvider.loadPreviewImageWithOptions:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_loadPreviewImageWithOptions_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// previewImageHandler + DartNSItemProviderLoadHandler? get previewImageHandler { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSItemProvider.previewImageHandler', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_previewImageHandler); + return $ret.address == 0 + ? null + : ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// setPreviewImageHandler: + set previewImageHandler(DartNSItemProviderLoadHandler? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSItemProvider.setPreviewImageHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_f167m6( + _$$ref.pointer, + _sel_setPreviewImageHandler_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// WARNING: NSProcessInfo is a stub. To generate bindings for this class, include +/// NSProcessInfo in your config's objc-interfaces list. +/// +/// NSProcessInfo +extension type NSProcessInfo._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSProcessInfo] that points to the same underlying object as [other]. + NSProcessInfo.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSProcessInfo] that wraps the given raw object pointer. + NSProcessInfo.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSProcessInfoActivity +extension NSProcessInfoActivity on NSProcessInfo { + /// beginActivityWithOptions:reason: + objc.NSObjectProtocol beginActivityWithOptions( + int options, { + required objc.NSString reason, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = reason.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.beginActivityWithOptions:reason:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_u2drt1( + _$$ref.pointer, + _sel_beginActivityWithOptions_reason_, + options, + _$$ref$1.pointer, + ); + return objc.NSObjectProtocol.fromPointer($ret, retain: true, release: true); + } + + /// endActivity: + void endActivity(objc.NSObjectProtocol activity) { + final _$$ref = object$.ref; + final _$$ref$1 = activity.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.endActivity:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_endActivity_, _$$ref$1.pointer); + } + + /// performActivityWithOptions:reason:usingBlock: + void performActivityWithOptions( + int options, { + required objc.NSString reason, + required objc.ObjCBlock usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = reason.ref; + final _$$ref$2 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.performActivityWithOptions:reason:usingBlock:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1jz97e( + _$$ref.pointer, + _sel_performActivityWithOptions_reason_usingBlock_, + options, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// performExpiringActivityWithReason:usingBlock: + void performExpiringActivityWithReason( + objc.NSString reason, { + required objc.ObjCBlock usingBlock, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = reason.ref; + final _$$ref$2 = usingBlock.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.performExpiringActivityWithReason:usingBlock:', + iOS: (false, (8, 2, 0)), + macOS: (true, null), + ); + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_performExpiringActivityWithReason_usingBlock_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSProcessInfoPlatform +extension NSProcessInfoPlatform on NSProcessInfo { + /// isMacCatalystApp + bool get isMacCatalystApp { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.isMacCatalystApp', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMacCatalystApp); + } + + /// isiOSAppOnMac + bool get isiOSAppOnMac { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.isiOSAppOnMac', + iOS: (false, (14, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isiOSAppOnMac); + } +} + +/// NSProcessInfoPowerState +extension NSProcessInfoPowerState on NSProcessInfo { + /// isLowPowerModeEnabled + bool get isLowPowerModeEnabled { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.isLowPowerModeEnabled', + iOS: (false, (9, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isLowPowerModeEnabled); + } +} + +enum NSProcessInfoThermalState { + NSProcessInfoThermalStateNominal(0), + NSProcessInfoThermalStateFair(1), + NSProcessInfoThermalStateSerious(2), + NSProcessInfoThermalStateCritical(3); + + final int value; + const NSProcessInfoThermalState(this.value); + + static NSProcessInfoThermalState fromValue(int value) => switch (value) { + 0 => NSProcessInfoThermalStateNominal, + 1 => NSProcessInfoThermalStateFair, + 2 => NSProcessInfoThermalStateSerious, + 3 => NSProcessInfoThermalStateCritical, + _ => throw ArgumentError( + 'Unknown value for NSProcessInfoThermalState: $value', + ), + }; +} + +/// NSProcessInfoThermalState +extension NSProcessInfoThermalState$1 on NSProcessInfo { + /// thermalState + NSProcessInfoThermalState get thermalState { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.thermalState', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 10, 3)), + ); + final $ret = _objc_msgSend_1fnsr6j(_$$ref.pointer, _sel_thermalState); + return NSProcessInfoThermalState.fromValue($ret); + } +} + +typedef NSProgressFileOperationKind = ffi.Pointer; +typedef DartNSProgressFileOperationKind = objc.NSString; +typedef NSProgressKind = ffi.Pointer; +typedef DartNSProgressKind = objc.NSString; +typedef NSProgressPublishingHandler = ffi.Pointer; +typedef DartNSProgressPublishingHandler = + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >; + +/// NSProgressReporting +extension type NSProgressReporting._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSProgressReporting] that points to the same underlying object as [other]. + NSProgressReporting.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSProgressReporting] that wraps the given raw object pointer. + NSProgressReporting.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSProgressReporting]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSProgressReporting, + ); + } +} + +extension NSProgressReporting$Methods on NSProgressReporting { + /// progress + objc.NSProgress get progress { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_progress); + return objc.NSProgress.fromPointer($ret, retain: true, release: true); + } +} + +interface class NSProgressReporting$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSProgressReporting.cast()); + + /// Builds an object that implements the NSProgressReporting protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSProgressReporting implement({ + required objc.NSProgress Function() progress, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSProgressReporting'); + NSProgressReporting$Builder.progress.implement(builder, progress); + builder.addProtocol($protocol); + return NSProgressReporting.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSProgressReporting protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.NSProgress Function() progress, + bool $keepIsolateAlive = true, + }) { + NSProgressReporting$Builder.progress.implement(builder, progress); + builder.addProtocol($protocol); + } + + /// progress + static final progress = objc.ObjCProtocolMethod( + _protocol_NSProgressReporting, + _sel_progress, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSProgressReporting, + _sel_progress, + isRequired: true, + isInstanceMethod: true, + ), + (objc.NSProgress Function() func) => + ObjCBlock_NSProgress_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); +} + +typedef NSProgressUnpublishingHandler = ffi.Pointer; +typedef DartNSProgressUnpublishingHandler = objc.ObjCBlock; +typedef NSProgressUserInfoKey = ffi.Pointer; +typedef DartNSProgressUserInfoKey = objc.NSString; + +/// NSPromisedItems +extension NSPromisedItems on objc.NSURL { + /// checkPromisedItemIsReachableAndReturnError: + bool checkPromisedItemIsReachableAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.checkPromisedItemIsReachableAndReturnError:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_checkPromisedItemIsReachableAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// getPromisedItemResourceValue:forKey:error: + bool getPromisedItemResourceValue( + ffi.Pointer> value, { + required DartNSURLResourceKey forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + objc.checkOsVersionInternal( + 'NSURL.getPromisedItemResourceValue:forKey:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1j9bhml( + _$$ref.pointer, + _sel_getPromisedItemResourceValue_forKey_error_, + value, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// promisedItemResourceValuesForKeys:error: + objc.NSDictionary? promisedItemResourceValuesForKeys(objc.NSArray keys) { + final _$$ref = object$.ref; + final _$$ref$1 = keys.ref; + objc.checkOsVersionInternal( + 'NSURL.promisedItemResourceValuesForKeys:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.pointer, + _sel_promisedItemResourceValuesForKeys_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +const int NSPropertyListErrorMaximum = 4095; + +const int NSPropertyListErrorMinimum = 3840; + +sealed class NSPropertyListMutabilityOptions { + static const NSPropertyListImmutable = 0; + static const NSPropertyListMutableContainers = 1; + static const NSPropertyListMutableContainersAndLeaves = 2; +} + +const int NSPropertyListReadCorruptError = 3840; + +const int NSPropertyListReadStreamError = 3842; + +const int NSPropertyListReadUnknownVersionError = 3841; + +const int NSPropertyListWriteInvalidError = 3852; + +typedef NSPropertyListWriteOptions = NSUInteger; + +const int NSPropertyListWriteStreamError = 3851; + +const int NSProprietaryStringEncoding = 65536; + +/// WARNING: NSProtocolChecker is a stub. To generate bindings for this class, include +/// NSProtocolChecker in your config's objc-interfaces list. +/// +/// NSProtocolChecker +extension type NSProtocolChecker._(objc.ObjCObject object$) + implements objc.ObjCObject, NSProxy { + /// Constructs a [NSProtocolChecker] that points to the same underlying object as [other]. + NSProtocolChecker.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSProtocolChecker] that wraps the given raw object pointer. + NSProtocolChecker.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSProtocolCheckerCreation +extension NSProtocolCheckerCreation on NSProtocolChecker {} + +/// WARNING: NSProxy is a stub. To generate bindings for this class, include +/// NSProxy in your config's objc-interfaces list. +/// +/// NSProxy +extension type NSProxy._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObjectProtocol { + /// Constructs a [NSProxy] that points to the same underlying object as [other]. + NSProxy.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSProxy] that wraps the given raw object pointer. + NSProxy.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +typedef NSRange = objc.NSRange; +typedef NSRangePointer = ffi.Pointer; + +const int NSReceiverEvaluationScriptError = 1; + +const int NSReceiversCantHandleCommandScriptError = 4; + +typedef NSRect = objc.CGRect; +typedef NSRectArray = ffi.Pointer; + +enum NSRectEdge { + NSRectEdgeMinX(0), + NSRectEdgeMinY(1), + NSRectEdgeMaxX(2), + NSRectEdgeMaxY(3); + + static const NSMinXEdge = NSRectEdgeMinX; + static const NSMinYEdge = NSRectEdgeMinY; + static const NSMaxXEdge = NSRectEdgeMaxX; + static const NSMaxYEdge = NSRectEdgeMaxY; + + final int value; + const NSRectEdge(this.value); + + static NSRectEdge fromValue(int value) => switch (value) { + 0 => NSRectEdgeMinX, + 1 => NSRectEdgeMinY, + 2 => NSRectEdgeMaxX, + 3 => NSRectEdgeMaxY, + _ => throw ArgumentError('Unknown value for NSRectEdge: $value'), + }; + + @override + String toString() { + if (this == NSRectEdgeMinX) + return "NSRectEdge.NSRectEdgeMinX, NSRectEdge.NSMinXEdge"; + if (this == NSRectEdgeMinY) + return "NSRectEdge.NSRectEdgeMinY, NSRectEdge.NSMinYEdge"; + if (this == NSRectEdgeMaxX) + return "NSRectEdge.NSRectEdgeMaxX, NSRectEdge.NSMaxXEdge"; + if (this == NSRectEdgeMaxY) + return "NSRectEdge.NSRectEdgeMaxY, NSRectEdge.NSMaxYEdge"; + return super.toString(); + } +} + +typedef NSRectPointer = ffi.Pointer; + +/// WARNING: NSRegularExpression is a stub. To generate bindings for this class, include +/// NSRegularExpression in your config's objc-interfaces list. +/// +/// NSRegularExpression +extension type NSRegularExpression._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSRegularExpression] that points to the same underlying object as [other]. + NSRegularExpression.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSRegularExpression', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } + + /// Constructs a [NSRegularExpression] that wraps the given raw object pointer. + NSRegularExpression.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSRegularExpression', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } +} + +sealed class NSRegularExpressionOptions { + static const NSRegularExpressionCaseInsensitive = 1; + static const NSRegularExpressionAllowCommentsAndWhitespace = 2; + static const NSRegularExpressionIgnoreMetacharacters = 4; + static const NSRegularExpressionDotMatchesLineSeparators = 8; + static const NSRegularExpressionAnchorsMatchLines = 16; + static const NSRegularExpressionUseUnixLineSeparators = 32; + static const NSRegularExpressionUseUnicodeWordBoundaries = 64; +} + +enum NSRelativeDateTimeFormatterStyle { + NSRelativeDateTimeFormatterStyleNumeric(0), + NSRelativeDateTimeFormatterStyleNamed(1); + + final int value; + const NSRelativeDateTimeFormatterStyle(this.value); + + static NSRelativeDateTimeFormatterStyle fromValue(int value) => + switch (value) { + 0 => NSRelativeDateTimeFormatterStyleNumeric, + 1 => NSRelativeDateTimeFormatterStyleNamed, + _ => throw ArgumentError( + 'Unknown value for NSRelativeDateTimeFormatterStyle: $value', + ), + }; +} + +enum NSRelativeDateTimeFormatterUnitsStyle { + NSRelativeDateTimeFormatterUnitsStyleFull(0), + NSRelativeDateTimeFormatterUnitsStyleSpellOut(1), + NSRelativeDateTimeFormatterUnitsStyleShort(2), + NSRelativeDateTimeFormatterUnitsStyleAbbreviated(3); + + final int value; + const NSRelativeDateTimeFormatterUnitsStyle(this.value); + + static NSRelativeDateTimeFormatterUnitsStyle fromValue(int value) => + switch (value) { + 0 => NSRelativeDateTimeFormatterUnitsStyleFull, + 1 => NSRelativeDateTimeFormatterUnitsStyleSpellOut, + 2 => NSRelativeDateTimeFormatterUnitsStyleShort, + 3 => NSRelativeDateTimeFormatterUnitsStyleAbbreviated, + _ => throw ArgumentError( + 'Unknown value for NSRelativeDateTimeFormatterUnitsStyle: $value', + ), + }; +} + +enum NSRelativePosition { + NSRelativeAfter(0), + NSRelativeBefore(1); + + final int value; + const NSRelativePosition(this.value); + + static NSRelativePosition fromValue(int value) => switch (value) { + 0 => NSRelativeAfter, + 1 => NSRelativeBefore, + _ => throw ArgumentError('Unknown value for NSRelativePosition: $value'), + }; +} + +/// NSReplacement +extension NSReplacement on NSRegularExpression { + /// replaceMatchesInString:options:range:withTemplate: + DartNSUInteger replaceMatchesInString( + objc.NSMutableString string, { + required DartNSUInteger options, + required NSRange range, + required objc.NSString withTemplate, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + final _$$ref$2 = withTemplate.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.replaceMatchesInString:options:range:withTemplate:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_kgvd6q( + _$$ref.pointer, + _sel_replaceMatchesInString_options_range_withTemplate_, + _$$ref$1.pointer, + options, + range, + _$$ref$2.pointer, + ); + } + + /// replacementStringForResult:inString:offset:template: + objc.NSString replacementStringForResult( + NSTextCheckingResult result, { + required objc.NSString inString, + required DartNSInteger offset, + required objc.NSString template, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = result.ref; + final _$$ref$2 = inString.ref; + final _$$ref$3 = template.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.replacementStringForResult:inString:offset:template:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_l9ppnx( + _$$ref.pointer, + _sel_replacementStringForResult_inString_offset_template_, + _$$ref$1.pointer, + _$$ref$2.pointer, + offset, + _$$ref$3.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByReplacingMatchesInString:options:range:withTemplate: + objc.NSString stringByReplacingMatchesInString( + objc.NSString string, { + required DartNSUInteger options, + required NSRange range, + required objc.NSString withTemplate, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = string.ref; + final _$$ref$2 = withTemplate.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.stringByReplacingMatchesInString:options:range:withTemplate:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1lk7ow3( + _$$ref.pointer, + _sel_stringByReplacingMatchesInString_options_range_withTemplate_, + _$$ref$1.pointer, + options, + range, + _$$ref$2.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// escapedTemplateForString: + static objc.NSString escapedTemplateForString(objc.NSString string) { + final _$$ref = string.ref; + objc.checkOsVersionInternal( + 'NSRegularExpression.escapedTemplateForString:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSRegularExpression, + _sel_escapedTemplateForString_, + _$$ref.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +const int NSRequiredArgumentsMissingScriptError = 5; + +enum NSRoundingMode { + NSRoundPlain(0), + NSRoundDown(1), + NSRoundUp(2), + NSRoundBankers(3); + + final int value; + const NSRoundingMode(this.value); + + static NSRoundingMode fromValue(int value) => switch (value) { + 0 => NSRoundPlain, + 1 => NSRoundDown, + 2 => NSRoundUp, + 3 => NSRoundBankers, + _ => throw ArgumentError('Unknown value for NSRoundingMode: $value'), + }; +} + +/// NSRunLoopConveniences +extension NSRunLoopConveniences on objc.NSRunLoop { + /// configureAsServer + @Deprecated('Not supported') + void configureAsServer() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSRunLoop.configureAsServer', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_configureAsServer); + } + + /// performBlock: + void performBlock(objc.ObjCBlock block) { + final _$$ref = object$.ref; + final _$$ref$1 = block.ref; + objc.checkOsVersionInternal( + 'NSRunLoop.performBlock:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + _objc_msgSend_f167m6(_$$ref.pointer, _sel_performBlock_, _$$ref$1.pointer); + } + + /// performInModes:block: + void performInModes( + objc.NSArray modes, { + required objc.ObjCBlock block, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = modes.ref; + final _$$ref$2 = block.ref; + objc.checkOsVersionInternal( + 'NSRunLoop.performInModes:block:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_performInModes_block_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// run + void run() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_run); + } + + /// runMode:beforeDate: + bool runMode(DartNSRunLoopMode mode, {required objc.NSDate beforeDate}) { + final _$$ref = object$.ref; + final _$$ref$1 = mode.ref; + final _$$ref$2 = beforeDate.ref; + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_runMode_beforeDate_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// runUntilDate: + void runUntilDate(objc.NSDate limitDate) { + final _$$ref = object$.ref; + final _$$ref$1 = limitDate.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_runUntilDate_, _$$ref$1.pointer); + } +} + +typedef NSRunLoopMode = ffi.Pointer; +typedef DartNSRunLoopMode = objc.NSString; + +enum NSSaveOptions { + NSSaveOptionsYes(0), + NSSaveOptionsNo(1), + NSSaveOptionsAsk(2); + + final int value; + const NSSaveOptions(this.value); + + static NSSaveOptions fromValue(int value) => switch (value) { + 0 => NSSaveOptionsYes, + 1 => NSSaveOptionsNo, + 2 => NSSaveOptionsAsk, + _ => throw ArgumentError('Unknown value for NSSaveOptions: $value'), + }; +} + +const int NSScannedOption = 1; + +/// WARNING: NSScanner is a stub. To generate bindings for this class, include +/// NSScanner in your config's objc-interfaces list. +/// +/// NSScanner +extension type NSScanner._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCopying { + /// Constructs a [NSScanner] that points to the same underlying object as [other]. + NSScanner.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSScanner] that wraps the given raw object pointer. + NSScanner.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSScriptClassDescription +extension NSScriptClassDescription on objc.NSObject { + /// classCode + DartUInt32 get classCode { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.classCode', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_classCode); + } + + /// className + objc.NSString get className { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.className', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_className); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSScriptClassDescription$1 is a stub. To generate bindings for this class, include +/// NSScriptClassDescription in your config's objc-interfaces list. +/// +/// NSScriptClassDescription +extension type NSScriptClassDescription$1._(objc.ObjCObject object$) + implements objc.ObjCObject, NSClassDescription { + /// Constructs a [NSScriptClassDescription$1] that points to the same underlying object as [other]. + NSScriptClassDescription$1.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSScriptClassDescription$1] that wraps the given raw object pointer. + NSScriptClassDescription$1.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSScriptKeyValueCoding +extension NSScriptKeyValueCoding on objc.NSObject { + /// coerceValue:forKey: + objc.ObjCObject? coerceValue( + objc.ObjCObject? value, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSObject.coerceValue:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_coerceValue_forKey_, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// insertValue:atIndex:inPropertyWithKey: + void insertValue( + objc.ObjCObject value, { + required DartNSUInteger atIndex, + required objc.NSString inPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + final _$$ref$2 = inPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.insertValue:atIndex:inPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_10nfbmq( + _$$ref.pointer, + _sel_insertValue_atIndex_inPropertyWithKey_, + _$$ref$1.pointer, + atIndex, + _$$ref$2.pointer, + ); + } + + /// insertValue:inPropertyWithKey: + void insertValue$1( + objc.ObjCObject value, { + required objc.NSString inPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + final _$$ref$2 = inPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.insertValue:inPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_insertValue_inPropertyWithKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeValueAtIndex:fromPropertyWithKey: + void removeValueAtIndex( + DartNSUInteger index$1, { + required objc.NSString fromPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = fromPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.removeValueAtIndex:fromPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1gypgok( + _$$ref.pointer, + _sel_removeValueAtIndex_fromPropertyWithKey_, + index$1, + _$$ref$1.pointer, + ); + } + + /// replaceValueAtIndex:inPropertyWithKey:withValue: + void replaceValueAtIndex( + DartNSUInteger index$1, { + required objc.NSString inPropertyWithKey, + required objc.ObjCObject withValue, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = inPropertyWithKey.ref; + final _$$ref$2 = withValue.ref; + objc.checkOsVersionInternal( + 'NSObject.replaceValueAtIndex:inPropertyWithKey:withValue:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_rutu22( + _$$ref.pointer, + _sel_replaceValueAtIndex_inPropertyWithKey_withValue_, + index$1, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// valueAtIndex:inPropertyWithKey: + objc.ObjCObject? valueAtIndex( + DartNSUInteger index$1, { + required objc.NSString inPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = inPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.valueAtIndex:inPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_vbc8p4( + _$$ref.pointer, + _sel_valueAtIndex_inPropertyWithKey_, + index$1, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// valueWithName:inPropertyWithKey: + objc.ObjCObject? valueWithName( + objc.NSString name, { + required objc.NSString inPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = name.ref; + final _$$ref$2 = inPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.valueWithName:inPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_valueWithName_inPropertyWithKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// valueWithUniqueID:inPropertyWithKey: + objc.ObjCObject? valueWithUniqueID( + objc.ObjCObject uniqueID, { + required objc.NSString inPropertyWithKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = uniqueID.ref; + final _$$ref$2 = inPropertyWithKey.ref; + objc.checkOsVersionInternal( + 'NSObject.valueWithUniqueID:inPropertyWithKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_valueWithUniqueID_inPropertyWithKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// WARNING: NSScriptObjectSpecifier is a stub. To generate bindings for this class, include +/// NSScriptObjectSpecifier in your config's objc-interfaces list. +/// +/// NSScriptObjectSpecifier +extension type NSScriptObjectSpecifier._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCoding { + /// Constructs a [NSScriptObjectSpecifier] that points to the same underlying object as [other]. + NSScriptObjectSpecifier.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSScriptObjectSpecifier] that wraps the given raw object pointer. + NSScriptObjectSpecifier.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSScriptObjectSpecifiers +extension NSScriptObjectSpecifiers on objc.NSObject { + /// indicesOfObjectsByEvaluatingObjectSpecifier: + objc.NSArray? indicesOfObjectsByEvaluatingObjectSpecifier( + NSScriptObjectSpecifier specifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = specifier.ref; + objc.checkOsVersionInternal( + 'NSObject.indicesOfObjectsByEvaluatingObjectSpecifier:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_indicesOfObjectsByEvaluatingObjectSpecifier_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// objectSpecifier + NSScriptObjectSpecifier? get objectSpecifier { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.objectSpecifier', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_objectSpecifier); + return $ret.address == 0 + ? null + : NSScriptObjectSpecifier.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSScripting +extension NSScripting on objc.NSObject { + /// copyScriptingValue:forKey:withProperties: + objc.ObjCObject? copyScriptingValue( + objc.ObjCObject value, { + required objc.NSString forKey, + required objc.NSDictionary withProperties, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + final _$$ref$2 = forKey.ref; + final _$$ref$3 = withProperties.ref; + objc.checkOsVersionInternal( + 'NSObject.copyScriptingValue:forKey:withProperties:', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_copyScriptingValue_forKey_withProperties_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// newScriptingObjectOfClass:forValueForKey:withContentsValue:properties: + objc.ObjCObject? newScriptingObjectOfClass( + objc.ObjCObject objectClass, { + required objc.NSString forValueForKey, + objc.ObjCObject? withContentsValue, + required objc.NSDictionary properties, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = objectClass.ref; + final _$$ref$2 = forValueForKey.ref; + final _$$ref$3 = withContentsValue?.ref; + final _$$ref$4 = properties.ref; + objc.checkOsVersionInternal( + 'NSObject.newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_s92gih( + _$$ref.pointer, + _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// scriptingProperties + objc.NSDictionary? get scriptingProperties { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingProperties', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_scriptingProperties, + ); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// scriptingValueForSpecifier: + objc.ObjCObject? scriptingValueForSpecifier( + NSScriptObjectSpecifier objectSpecifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = objectSpecifier.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingValueForSpecifier:', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_scriptingValueForSpecifier_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// setScriptingProperties: + set scriptingProperties(objc.NSDictionary? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSObject.setScriptingProperties:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setScriptingProperties_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// NSScriptingComparisonMethods +extension NSScriptingComparisonMethods on objc.NSObject { + /// scriptingBeginsWith: + bool scriptingBeginsWith(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingBeginsWith:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingBeginsWith_, + _$$ref$1.pointer, + ); + } + + /// scriptingContains: + bool scriptingContains(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingContains:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingContains_, + _$$ref$1.pointer, + ); + } + + /// scriptingEndsWith: + bool scriptingEndsWith(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingEndsWith:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingEndsWith_, + _$$ref$1.pointer, + ); + } + + /// scriptingIsEqualTo: + bool scriptingIsEqualTo(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingIsEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingIsEqualTo_, + _$$ref$1.pointer, + ); + } + + /// scriptingIsGreaterThan: + bool scriptingIsGreaterThan(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingIsGreaterThan:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingIsGreaterThan_, + _$$ref$1.pointer, + ); + } + + /// scriptingIsGreaterThanOrEqualTo: + bool scriptingIsGreaterThanOrEqualTo(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingIsGreaterThanOrEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingIsGreaterThanOrEqualTo_, + _$$ref$1.pointer, + ); + } + + /// scriptingIsLessThan: + bool scriptingIsLessThan(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingIsLessThan:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingIsLessThan_, + _$$ref$1.pointer, + ); + } + + /// scriptingIsLessThanOrEqualTo: + bool scriptingIsLessThanOrEqualTo(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSObject.scriptingIsLessThanOrEqualTo:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_scriptingIsLessThanOrEqualTo_, + _$$ref$1.pointer, + ); + } +} + +enum NSSearchPathDirectory { + NSApplicationDirectory(1), + NSDemoApplicationDirectory(2), + NSDeveloperApplicationDirectory(3), + NSAdminApplicationDirectory(4), + NSLibraryDirectory(5), + NSDeveloperDirectory(6), + NSUserDirectory(7), + NSDocumentationDirectory(8), + NSDocumentDirectory(9), + NSCoreServiceDirectory(10), + NSAutosavedInformationDirectory(11), + NSDesktopDirectory(12), + NSCachesDirectory(13), + NSApplicationSupportDirectory(14), + NSDownloadsDirectory(15), + NSInputMethodsDirectory(16), + NSMoviesDirectory(17), + NSMusicDirectory(18), + NSPicturesDirectory(19), + NSPrinterDescriptionDirectory(20), + NSSharedPublicDirectory(21), + NSPreferencePanesDirectory(22), + NSApplicationScriptsDirectory(23), + NSItemReplacementDirectory(99), + NSAllApplicationsDirectory(100), + NSAllLibrariesDirectory(101), + NSTrashDirectory(102); + + final int value; + const NSSearchPathDirectory(this.value); + + static NSSearchPathDirectory fromValue(int value) => switch (value) { + 1 => NSApplicationDirectory, + 2 => NSDemoApplicationDirectory, + 3 => NSDeveloperApplicationDirectory, + 4 => NSAdminApplicationDirectory, + 5 => NSLibraryDirectory, + 6 => NSDeveloperDirectory, + 7 => NSUserDirectory, + 8 => NSDocumentationDirectory, + 9 => NSDocumentDirectory, + 10 => NSCoreServiceDirectory, + 11 => NSAutosavedInformationDirectory, + 12 => NSDesktopDirectory, + 13 => NSCachesDirectory, + 14 => NSApplicationSupportDirectory, + 15 => NSDownloadsDirectory, + 16 => NSInputMethodsDirectory, + 17 => NSMoviesDirectory, + 18 => NSMusicDirectory, + 19 => NSPicturesDirectory, + 20 => NSPrinterDescriptionDirectory, + 21 => NSSharedPublicDirectory, + 22 => NSPreferencePanesDirectory, + 23 => NSApplicationScriptsDirectory, + 99 => NSItemReplacementDirectory, + 100 => NSAllApplicationsDirectory, + 101 => NSAllLibrariesDirectory, + 102 => NSTrashDirectory, + _ => throw ArgumentError('Unknown value for NSSearchPathDirectory: $value'), + }; +} + +sealed class NSSearchPathDomainMask { + static const NSUserDomainMask = 1; + static const NSLocalDomainMask = 2; + static const NSNetworkDomainMask = 4; + static const NSSystemDomainMask = 8; + static const NSAllDomainsMask = 65535; +} + +/// NSServerTrust +extension NSServerTrust on NSURLCredential { + /// credentialForTrust: + static NSURLCredential credentialForTrust(SecTrustRef trust) { + objc.checkOsVersionInternal( + 'NSURLCredential.credentialForTrust:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1s3ecd1( + _class_NSURLCredential, + _sel_credentialForTrust_, + trust, + ); + return NSURLCredential.fromPointer($ret, retain: true, release: true); + } +} + +/// NSServerTrustValidationSpace +extension NSServerTrustValidationSpace on NSURLProtectionSpace { + /// serverTrust + SecTrustRef get serverTrust { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLProtectionSpace.serverTrust', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_serverTrust); + } +} + +/// NSSetCreation +extension NSSetCreation on objc.NSSet { + /// initWithArray: + objc.NSSet initWithArray(objc.NSArray array) { + final _$$ref = object$.ref; + final _$$ref$1 = array.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_, + _$$ref$1.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithObjects: + objc.NSSet initWithObjects$1(objc.ObjCObject firstObj) { + final _$$ref = object$.ref; + final _$$ref$1 = firstObj.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjects_, + _$$ref$1.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet: + objc.NSSet initWithSet(objc.NSSet set) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_, + _$$ref$1.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + objc.NSSet initWithSet$1(objc.NSSet set, {required bool copyItems}) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return objc.NSSet.fromPointer($ret, retain: false, release: true); + } + + /// set + static objc.NSSet set() { + final $ret = _objc_msgSend_151sglz(_class_NSSet, _sel_set); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// setWithArray: + static objc.NSSet setWithArray(objc.NSArray array) { + final _$$ref = array.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithArray_, + _$$ref.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// setWithObject: + static objc.NSSet setWithObject(objc.ObjCObject object) { + final _$$ref = object.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithObject_, + _$$ref.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// setWithObjects: + static objc.NSSet setWithObjects(objc.ObjCObject firstObj) { + final _$$ref = firstObj.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithObjects_, + _$$ref.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// setWithObjects:count: + static objc.NSSet setWithObjects$1( + ffi.Pointer> objects, { + required DartNSUInteger count, + }) { + final $ret = _objc_msgSend_zmbtbd( + _class_NSSet, + _sel_setWithObjects_count_, + objects, + count, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } + + /// setWithSet: + static objc.NSSet setWithSet(objc.NSSet set) { + final _$$ref = set.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithSet_, + _$$ref.pointer, + ); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } +} + +/// NSSharedKeySetDictionary +extension NSSharedKeySetDictionary on objc.NSDictionary { + /// sharedKeySetForKeys: + static objc.ObjCObject sharedKeySetForKeys(objc.NSArray keys) { + final _$$ref = keys.ref; + objc.checkOsVersionInternal( + 'NSDictionary.sharedKeySetForKeys:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_sharedKeySetForKeys_, + _$$ref.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +/// NSSharedKeySetDictionary +extension NSSharedKeySetDictionary$1 on objc.NSMutableDictionary { + /// dictionaryWithSharedKeySet: + static objc.NSMutableDictionary dictionaryWithSharedKeySet( + objc.ObjCObject keyset, + ) { + final _$$ref = keyset.ref; + objc.checkOsVersionInternal( + 'NSMutableDictionary.dictionaryWithSharedKeySet:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithSharedKeySet_, + _$$ref.pointer, + ); + return objc.NSMutableDictionary.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +const int NSShiftJISStringEncoding = 8; + +typedef NSSize = objc.CGSize; +typedef NSSizeArray = ffi.Pointer; +typedef NSSizePointer = ffi.Pointer; +typedef NSSocketNativeHandle = ffi.Int; +typedef DartNSSocketNativeHandle = int; + +/// NSSocketStreamCreationExtensions +extension NSSocketStreamCreationExtensions on objc.NSStream { + /// getStreamsToHost:port:inputStream:outputStream: + @Deprecated('Use nw_connection_t in Network framework instead') + static void getStreamsToHost( + NSHost host, { + required DartNSInteger port, + required ffi.Pointer> inputStream, + required ffi.Pointer> outputStream, + }) { + final _$$ref = host.ref; + objc.checkOsVersionInternal( + 'NSStream.getStreamsToHost:port:inputStream:outputStream:', + iOS: (true, null), + macOS: (false, (10, 3, 0)), + ); + _objc_msgSend_1jknn71( + _class_NSStream, + _sel_getStreamsToHost_port_inputStream_outputStream_, + _$$ref.pointer, + port, + inputStream, + outputStream, + ); + } + + /// getStreamsToHostWithName:port:inputStream:outputStream: + @Deprecated('Use nw_connection_t in Network framework instead') + static void getStreamsToHostWithName( + objc.NSString hostname, { + required DartNSInteger port, + required ffi.Pointer> inputStream, + required ffi.Pointer> outputStream, + }) { + final _$$ref = hostname.ref; + objc.checkOsVersionInternal( + 'NSStream.getStreamsToHostWithName:port:inputStream:outputStream:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_1jknn71( + _class_NSStream, + _sel_getStreamsToHostWithName_port_inputStream_outputStream_, + _$$ref.pointer, + port, + inputStream, + outputStream, + ); + } +} + +@Deprecated('Not supported') +const int NSSolarisOperatingSystem = 3; + +/// NSSortDescriptorSorting +extension NSSortDescriptorSorting on objc.NSArray { + /// sortedArrayUsingDescriptors: + objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { + final _$$ref = object$.ref; + final _$$ref$1 = sortDescriptors.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_sortedArrayUsingDescriptors_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSSortDescriptorSorting +extension NSSortDescriptorSorting$1 on objc.NSSet { + /// sortedArrayUsingDescriptors: + objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { + final _$$ref = object$.ref; + final _$$ref$1 = sortDescriptors.ref; + objc.checkOsVersionInternal( + 'NSSet.sortedArrayUsingDescriptors:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_sortedArrayUsingDescriptors_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSSortDescriptorSorting +extension NSSortDescriptorSorting$2 on objc.NSMutableArray { + /// sortUsingDescriptors: + void sortUsingDescriptors(objc.NSArray sortDescriptors) { + final _$$ref = object$.ref; + final _$$ref$1 = sortDescriptors.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_sortUsingDescriptors_, + _$$ref$1.pointer, + ); + } +} + +/// WARNING: NSSpellServer is a stub. To generate bindings for this class, include +/// NSSpellServer in your config's objc-interfaces list. +/// +/// NSSpellServer +extension type NSSpellServer._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSSpellServer] that points to the same underlying object as [other]. + NSSpellServer.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSSpellServer] that wraps the given raw object pointer. + NSSpellServer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSSpellServerDelegate +extension type NSSpellServerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSSpellServerDelegate] that points to the same underlying object as [other]. + NSSpellServerDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSSpellServerDelegate] that wraps the given raw object pointer. + NSSpellServerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSSpellServerDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSSpellServerDelegate, + ); + } +} + +extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { + /// spellServer:checkGrammarInString:language:details: + NSRange spellServer( + NSSpellServer sender, { + required objc.NSString checkGrammarInString, + objc.NSString? language, + required ffi.Pointer> details, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = checkGrammarInString.ref; + final _$$ref$3 = language?.ref; + objc.checkOsVersionInternal( + 'NSSpellServerDelegate.spellServer:checkGrammarInString:language:details:', + iOS: (true, null), + macOS: (false, (10, 5, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_checkGrammarInString_language_details_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:checkGrammarInString:language:details:', + ); + } + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1r9lliaStret( + $ptr, + _$$ref.pointer, + _sel_spellServer_checkGrammarInString_language_details_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + details, + ) + : $ptr.ref = _objc_msgSend_1r9llia( + _$$ref.pointer, + _sel_spellServer_checkGrammarInString_language_details_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + details, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// spellServer:checkString:offset:types:options:orthography:wordCount: + objc.NSArray? spellServer$1( + NSSpellServer sender, { + required objc.NSString checkString, + required DartNSUInteger offset, + required DartNSTextCheckingTypes types, + objc.NSDictionary? options, + NSOrthography? orthography, + required ffi.Pointer wordCount, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = checkString.ref; + final _$$ref$3 = options?.ref; + final _$$ref$4 = orthography?.ref; + objc.checkOsVersionInternal( + 'NSSpellServerDelegate.spellServer:checkString:offset:types:options:orthography:wordCount:', + iOS: (true, null), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:checkString:offset:types:options:orthography:wordCount:', + ); + } + final $ret = _objc_msgSend_z7lrh9( + _$$ref.pointer, + _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, + _$$ref$1.pointer, + _$$ref$2.pointer, + offset, + types, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + wordCount, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// spellServer:didForgetWord:inLanguage: + void spellServer$2( + NSSpellServer sender, { + required objc.NSString didForgetWord, + required objc.NSString inLanguage, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didForgetWord.ref; + final _$$ref$3 = inLanguage.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_didForgetWord_inLanguage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:didForgetWord:inLanguage:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_spellServer_didForgetWord_inLanguage_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// spellServer:didLearnWord:inLanguage: + void spellServer$3( + NSSpellServer sender, { + required objc.NSString didLearnWord, + required objc.NSString inLanguage, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = didLearnWord.ref; + final _$$ref$3 = inLanguage.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_didLearnWord_inLanguage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:didLearnWord:inLanguage:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_spellServer_didLearnWord_inLanguage_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// spellServer:findMisspelledWordInString:language:wordCount:countOnly: + NSRange spellServer$4( + NSSpellServer sender, { + required objc.NSString findMisspelledWordInString, + required objc.NSString language, + required ffi.Pointer wordCount, + required bool countOnly, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = findMisspelledWordInString.ref; + final _$$ref$3 = language.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:findMisspelledWordInString:language:wordCount:countOnly:', + ); + } + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1orxdfjStret( + $ptr, + _$$ref.pointer, + _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + wordCount, + countOnly, + ) + : $ptr.ref = _objc_msgSend_1orxdfj( + _$$ref.pointer, + _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + wordCount, + countOnly, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// spellServer:recordResponse:toCorrection:forWord:language: + void spellServer$5( + NSSpellServer sender, { + required DartNSUInteger recordResponse, + required objc.NSString toCorrection, + required objc.NSString forWord, + required objc.NSString language, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = toCorrection.ref; + final _$$ref$3 = forWord.ref; + final _$$ref$4 = language.ref; + objc.checkOsVersionInternal( + 'NSSpellServerDelegate.spellServer:recordResponse:toCorrection:forWord:language:', + iOS: (true, null), + macOS: (false, (10, 7, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_recordResponse_toCorrection_forWord_language_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:recordResponse:toCorrection:forWord:language:', + ); + } + _objc_msgSend_y1woti( + _$$ref.pointer, + _sel_spellServer_recordResponse_toCorrection_forWord_language_, + _$$ref$1.pointer, + recordResponse, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// spellServer:suggestCompletionsForPartialWordRange:inString:language: + objc.NSArray? spellServer$6( + NSSpellServer sender, { + required NSRange suggestCompletionsForPartialWordRange, + required objc.NSString inString, + required objc.NSString language, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = inString.ref; + final _$$ref$3 = language.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:suggestCompletionsForPartialWordRange:inString:language:', + ); + } + final $ret = _objc_msgSend_13fklwp( + _$$ref.pointer, + _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, + _$$ref$1.pointer, + suggestCompletionsForPartialWordRange, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// spellServer:suggestGuessesForWord:inLanguage: + objc.NSArray? spellServer$7( + NSSpellServer sender, { + required objc.NSString suggestGuessesForWord, + required objc.NSString inLanguage, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = suggestGuessesForWord.ref; + final _$$ref$3 = inLanguage.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_spellServer_suggestGuessesForWord_inLanguage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSSpellServerDelegate', + 'spellServer:suggestGuessesForWord:inLanguage:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_spellServer_suggestGuessesForWord_inLanguage_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +interface class NSSpellServerDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSSpellServerDelegate.cast()); + + /// Builds an object that implements the NSSpellServerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSpellServerDelegate implement({ + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSSpellServerDelegate', + ); + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implement(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implement(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implement( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + return NSSpellServerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSpellServerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implement(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implement(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implement( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSSpellServerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSpellServerDelegate implementAsListener({ + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSSpellServerDelegate', + ); + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implementAsListener(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implementAsListener(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implementAsListener( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + return NSSpellServerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSpellServerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implementAsListener(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implementAsListener(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implementAsListener( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSSpellServerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSpellServerDelegate implementAsBlocking({ + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSSpellServerDelegate', + ); + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implementAsBlocking(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implementAsBlocking(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implementAsBlocking( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + return NSSpellServerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSpellServerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + )? + spellServer_checkGrammarInString_language_details_, + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + )? + spellServer_checkString_offset_types_options_orthography_wordCount_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didForgetWord_inLanguage_, + void Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_didLearnWord_inLanguage_, + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + )? + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + )? + spellServer_recordResponse_toCorrection_forWord_language_, + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + )? + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? + spellServer_suggestGuessesForWord_inLanguage_, + bool $keepIsolateAlive = true, + }) { + NSSpellServerDelegate$Builder + .spellServer_checkGrammarInString_language_details_ + .implement(builder, spellServer_checkGrammarInString_language_details_); + NSSpellServerDelegate$Builder + .spellServer_checkString_offset_types_options_orthography_wordCount_ + .implement( + builder, + spellServer_checkString_offset_types_options_orthography_wordCount_, + ); + NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ + .implementAsBlocking(builder, spellServer_didForgetWord_inLanguage_); + NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ + .implementAsBlocking(builder, spellServer_didLearnWord_inLanguage_); + NSSpellServerDelegate$Builder + .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ + .implement( + builder, + spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ); + NSSpellServerDelegate$Builder + .spellServer_recordResponse_toCorrection_forWord_language_ + .implementAsBlocking( + builder, + spellServer_recordResponse_toCorrection_forWord_language_, + ); + NSSpellServerDelegate$Builder + .spellServer_suggestCompletionsForPartialWordRange_inString_language_ + .implement( + builder, + spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ); + NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ + .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); + builder.addProtocol($protocol); + } + + /// spellServer:checkGrammarInString:language:details: + static final spellServer_checkGrammarInString_language_details_ = + objc.ObjCProtocolMethod< + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_checkGrammarInString_language_details_, + ffi.Native.addressOf< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >(_1uu024u_protocolTrampoline_xsqx6i) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_checkGrammarInString_language_details_, + isRequired: false, + isInstanceMethod: true, + ), + ( + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + func, + ) => + ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString? arg3, + ffi.Pointer> arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// spellServer:checkString:offset:types:options:orthography:wordCount: + static final spellServer_checkString_offset_types_options_orthography_wordCount_ = + objc.ObjCProtocolMethod< + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSTextCheckingTypes, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1chy5b9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.NSArray? Function( + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + func, + ) => + ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + DartNSUInteger arg3, + DartNSTextCheckingTypes arg4, + objc.NSDictionary? arg5, + NSOrthography? arg6, + ffi.Pointer arg7, + ) => func(arg1, arg2, arg3, arg4, arg5, arg6, arg7), + ), + ); + + /// spellServer:didForgetWord:inLanguage: + static final spellServer_didForgetWord_inLanguage_ = + objc.ObjCProtocolListenableMethod< + void Function(NSSpellServer, objc.NSString, objc.NSString) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_didForgetWord_inLanguage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_didForgetWord_inLanguage_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.listener( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// spellServer:didLearnWord:inLanguage: + static final spellServer_didLearnWord_inLanguage_ = + objc.ObjCProtocolListenableMethod< + void Function(NSSpellServer, objc.NSString, objc.NSString) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_didLearnWord_inLanguage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_didLearnWord_inLanguage_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.listener( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// spellServer:findMisspelledWordInString:language:wordCount:countOnly: + static final spellServer_findMisspelledWordInString_language_wordCount_countOnly_ = + objc.ObjCProtocolMethod< + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + ) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + ffi.Native.addressOf< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_1j6oadz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, + isRequired: false, + isInstanceMethod: true, + ), + ( + NSRange Function( + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + ) + func, + ) => + ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ffi.Pointer arg4, + bool arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// spellServer:recordResponse:toCorrection:forWord:language: + static final spellServer_recordResponse_toCorrection_forWord_language_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_recordResponse_toCorrection_forWord_language_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1cn988u) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_recordResponse_toCorrection_forWord_language_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + DartNSUInteger arg2, + objc.NSString arg3, + objc.NSString arg4, + objc.NSString arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.listener( + ( + ffi.Pointer _, + NSSpellServer arg1, + DartNSUInteger arg2, + objc.NSString arg3, + objc.NSString arg4, + objc.NSString arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSSpellServer arg1, + DartNSUInteger arg2, + objc.NSString arg3, + objc.NSString arg4, + objc.NSString arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// spellServer:suggestCompletionsForPartialWordRange:inString:language: + static final spellServer_suggestCompletionsForPartialWordRange_inString_language_ = + objc.ObjCProtocolMethod< + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + ) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_19u921t) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.NSArray? Function( + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + ) + func, + ) => + ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + NSRange arg2, + objc.NSString arg3, + objc.NSString arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// spellServer:suggestGuessesForWord:inLanguage: + static final spellServer_suggestGuessesForWord_inLanguage_ = + objc.ObjCProtocolMethod< + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString) + >( + _protocol_NSSpellServerDelegate, + _sel_spellServer_suggestGuessesForWord_inLanguage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSpellServerDelegate, + _sel_spellServer_suggestGuessesForWord_inLanguage_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString) + func, + ) => + ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); +} + +/// NSStreamBoundPairCreationExtensions +extension NSStreamBoundPairCreationExtensions on objc.NSStream { + /// getBoundStreamsWithBufferSize:inputStream:outputStream: + static void getBoundStreamsWithBufferSize( + DartNSUInteger bufferSize, { + required ffi.Pointer> inputStream, + required ffi.Pointer> outputStream, + }) { + objc.checkOsVersionInternal( + 'NSStream.getBoundStreamsWithBufferSize:inputStream:outputStream:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_1i17va2( + _class_NSStream, + _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_, + bufferSize, + inputStream, + outputStream, + ); + } +} + +typedef NSStreamNetworkServiceTypeValue = ffi.Pointer; +typedef DartNSStreamNetworkServiceTypeValue = objc.NSString; +typedef NSStreamPropertyKey = ffi.Pointer; +typedef DartNSStreamPropertyKey = objc.NSString; +typedef NSStreamSOCKSProxyConfiguration = ffi.Pointer; +typedef DartNSStreamSOCKSProxyConfiguration = objc.NSString; +typedef NSStreamSOCKSProxyVersion = ffi.Pointer; +typedef DartNSStreamSOCKSProxyVersion = objc.NSString; +typedef NSStreamSocketSecurityLevel = ffi.Pointer; +typedef DartNSStreamSocketSecurityLevel = objc.NSString; + +/// NSStringDeprecated +extension NSStringDeprecated on objc.NSString { + /// cString + @Deprecated('Use -cStringUsingEncoding: instead') + ffi.Pointer cString() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.cString', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_cString); + } + + /// cStringLength + @Deprecated('Use -lengthOfBytesUsingEncoding: instead') + DartNSUInteger cStringLength() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.cStringLength', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_cStringLength); + } + + /// getCString: + @Deprecated('Use -getCString:maxLength:encoding: instead') + void getCString(ffi.Pointer bytes) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.getCString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_getCString_, bytes); + } + + /// getCString:maxLength: + @Deprecated('Use -getCString:maxLength:encoding: instead') + void getCString$1( + ffi.Pointer bytes, { + required DartNSUInteger maxLength, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.getCString:maxLength:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1h3mito( + _$$ref.pointer, + _sel_getCString_maxLength_, + bytes, + maxLength, + ); + } + + /// getCString:maxLength:range:remainingRange: + @Deprecated('Use -getCString:maxLength:encoding: instead') + void getCString$2( + ffi.Pointer bytes, { + required DartNSUInteger maxLength, + required NSRange range, + required NSRangePointer remainingRange, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.getCString:maxLength:range:remainingRange:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_3gpdva( + _$$ref.pointer, + _sel_getCString_maxLength_range_remainingRange_, + bytes, + maxLength, + range, + remainingRange, + ); + } + + /// getCharacters: + void getCharacters(ffi.Pointer buffer) { + final _$$ref = object$.ref; + _objc_msgSend_g3kdhc(_$$ref.pointer, _sel_getCharacters_, buffer); + } + + /// initWithCString: + @Deprecated('Use -initWithCString:encoding: instead') + objc.ObjCObject? initWithCString(ffi.Pointer bytes) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.initWithCString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_56zxyn( + _$$ref.retainAndReturnPointer(), + _sel_initWithCString_, + bytes, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithCString:length: + @Deprecated('Use -initWithCString:encoding: instead') + objc.ObjCObject? initWithCString$1( + ffi.Pointer bytes, { + required DartNSUInteger length, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.initWithCString:length:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_erqryg( + _$$ref.retainAndReturnPointer(), + _sel_initWithCString_length_, + bytes, + length, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithCStringNoCopy:length:freeWhenDone: + @Deprecated('Use -initWithCString:encoding: instead') + objc.ObjCObject? initWithCStringNoCopy( + ffi.Pointer bytes, { + required DartNSUInteger length, + required bool freeWhenDone, + }) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.initWithCStringNoCopy:length:freeWhenDone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1ojrli4( + _$$ref.retainAndReturnPointer(), + _sel_initWithCStringNoCopy_length_freeWhenDone_, + bytes, + length, + freeWhenDone, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithContentsOfFile: + @Deprecated('Use -initWithContentsOfFile:encoding:error: instead') + objc.ObjCObject? initWithContentsOfFile(objc.NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSString.initWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + @Deprecated('Use -initWithContentsOfURL:encoding:error: instead') + objc.ObjCObject? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSString.initWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: false, release: true); + } + + /// lossyCString + @Deprecated('Use -cStringUsingEncoding: instead') + ffi.Pointer lossyCString() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.lossyCString', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_lossyCString); + } + + /// writeToFile:atomically: + @Deprecated('Use -writeToFile:atomically:encoding:error: instead') + bool writeToFile(objc.NSString path, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + objc.checkOsVersionInternal( + 'NSString.writeToFile:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToFile_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// writeToURL:atomically: + @Deprecated('Use -writeToURL:atomically:encoding:error: instead') + bool writeToURL(objc.NSURL url, {required bool atomically}) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSString.writeToURL:atomically:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1iyq28l( + _$$ref.pointer, + _sel_writeToURL_atomically_, + _$$ref$1.pointer, + atomically, + ); + } + + /// stringWithCString: + @Deprecated('Use +stringWithCString:encoding: instead') + static objc.ObjCObject? stringWithCString(ffi.Pointer bytes) { + objc.checkOsVersionInternal( + 'NSString.stringWithCString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_56zxyn( + _class_NSString, + _sel_stringWithCString_, + bytes, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// stringWithCString:length: + @Deprecated('Use +stringWithCString:encoding:') + static objc.ObjCObject? stringWithCString$1( + ffi.Pointer bytes, { + required DartNSUInteger length, + }) { + objc.checkOsVersionInternal( + 'NSString.stringWithCString:length:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_erqryg( + _class_NSString, + _sel_stringWithCString_length_, + bytes, + length, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// stringWithContentsOfFile: + @Deprecated('Use +stringWithContentsOfFile:encoding:error: instead') + static objc.ObjCObject? stringWithContentsOfFile(objc.NSString path) { + final _$$ref = path.ref; + objc.checkOsVersionInternal( + 'NSString.stringWithContentsOfFile:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_stringWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// stringWithContentsOfURL: + @Deprecated('Use +stringWithContentsOfURL:encoding:error: instead') + static objc.ObjCObject? stringWithContentsOfURL(objc.NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSString.stringWithContentsOfURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_stringWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +typedef NSStringEncoding = NSUInteger; + +/// NSStringEncodingDetection +extension NSStringEncodingDetection on objc.NSString { + /// stringEncodingForData:encodingOptions:convertedString:usedLossyConversion: + static DartNSUInteger stringEncodingForData( + objc.NSData data, { + objc.NSDictionary? encodingOptions, + required ffi.Pointer> convertedString, + required ffi.Pointer usedLossyConversion, + }) { + final _$$ref = data.ref; + final _$$ref$1 = encodingOptions?.ref; + objc.checkOsVersionInternal( + 'NSString.stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_1q2ox4r( + _class_NSString, + _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + convertedString, + usedLossyConversion, + ); + } +} + +typedef NSStringEncodingDetectionOptionsKey = ffi.Pointer; +typedef DartNSStringEncodingDetectionOptionsKey = objc.NSString; + +/// NSStringPathExtensions +extension NSStringPathExtensions on objc.NSString { + /// completePathIntoString:caseSensitive:matchesIntoArray:filterTypes: + DartNSUInteger completePathIntoString( + ffi.Pointer> outputName, { + required bool caseSensitive, + required ffi.Pointer> matchesIntoArray, + objc.NSArray? filterTypes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = filterTypes?.ref; + return _objc_msgSend_8mvqcu( + _$$ref.pointer, + _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_, + outputName, + caseSensitive, + matchesIntoArray, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// fileSystemRepresentation + ffi.Pointer get fileSystemRepresentation { + final _$$ref = object$.ref; + return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_fileSystemRepresentation); + } + + /// getFileSystemRepresentation:maxLength: + bool getFileSystemRepresentation( + ffi.Pointer cname, { + required DartNSUInteger maxLength, + }) { + final _$$ref = object$.ref; + return _objc_msgSend_8cymbm( + _$$ref.pointer, + _sel_getFileSystemRepresentation_maxLength_, + cname, + maxLength, + ); + } + + /// isAbsolutePath + bool get isAbsolutePath { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isAbsolutePath); + } + + /// lastPathComponent + objc.NSString get lastPathComponent { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// pathComponents + objc.NSArray get pathComponents { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// pathExtension + objc.NSString get pathExtension { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByAbbreviatingWithTildeInPath + objc.NSString get stringByAbbreviatingWithTildeInPath { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByAbbreviatingWithTildeInPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByAppendingPathComponent: + objc.NSString stringByAppendingPathComponent(objc.NSString str) { + final _$$ref = object$.ref; + final _$$ref$1 = str.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_stringByAppendingPathComponent_, + _$$ref$1.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByAppendingPathExtension: + objc.NSString? stringByAppendingPathExtension(objc.NSString str) { + final _$$ref = object$.ref; + final _$$ref$1 = str.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_stringByAppendingPathExtension_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByDeletingLastPathComponent + objc.NSString get stringByDeletingLastPathComponent { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByDeletingLastPathComponent, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByDeletingPathExtension + objc.NSString get stringByDeletingPathExtension { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByDeletingPathExtension, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByExpandingTildeInPath + objc.NSString get stringByExpandingTildeInPath { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByExpandingTildeInPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByResolvingSymlinksInPath + objc.NSString get stringByResolvingSymlinksInPath { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByResolvingSymlinksInPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByStandardizingPath + objc.NSString get stringByStandardizingPath { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByStandardizingPath, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringsByAppendingPaths: + objc.NSArray stringsByAppendingPaths(objc.NSArray paths) { + final _$$ref = object$.ref; + final _$$ref$1 = paths.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_stringsByAppendingPaths_, + _$$ref$1.pointer, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// pathWithComponents: + static objc.NSString pathWithComponents(objc.NSArray components) { + final _$$ref = components.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_pathWithComponents_, + _$$ref.pointer, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +typedef NSStringTransform = ffi.Pointer; +typedef DartNSStringTransform = objc.NSString; +@Deprecated('Not supported') +const int NSSunOSOperatingSystem = 6; + +final class NSSwappedDouble extends ffi.Struct { + @ffi.UnsignedLongLong() + external int v; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + }) => $allocator()..ref.v = v; +} + +final class NSSwappedFloat extends ffi.Struct { + @ffi.UnsignedInt() + external int v; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + }) => $allocator()..ref.v = v; +} + +const int NSSymbolStringEncoding = 6; + +/// WARNING: NSTask is a stub. To generate bindings for this class, include +/// NSTask in your config's objc-interfaces list. +/// +/// NSTask +extension type NSTask._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSTask] that points to the same underlying object as [other]. + NSTask.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSTask] that wraps the given raw object pointer. + NSTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSTaskConveniences +extension NSTaskConveniences on NSTask { + /// waitUntilExit + void waitUntilExit() { + final _$$ref = object$.ref; + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_waitUntilExit); + } + + /// launchedTaskWithExecutableURL:arguments:error:terminationHandler: + static NSTask? launchedTaskWithExecutableURL( + objc.NSURL url, { + required objc.NSArray arguments, + required ffi.Pointer> error, + objc.ObjCBlock? terminationHandler, + }) { + final _$$ref = url.ref; + final _$$ref$1 = arguments.ref; + final _$$ref$2 = terminationHandler?.ref; + objc.checkOsVersionInternal( + 'NSTask.launchedTaskWithExecutableURL:arguments:error:terminationHandler:', + iOS: (true, null), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_1f2nccz( + _class_NSTask, + _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_, + _$$ref.pointer, + _$$ref$1.pointer, + error, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : NSTask.fromPointer($ret, retain: true, release: true); + } +} + +enum NSTaskTerminationReason { + NSTaskTerminationReasonExit(1), + NSTaskTerminationReasonUncaughtSignal(2); + + final int value; + const NSTaskTerminationReason(this.value); + + static NSTaskTerminationReason fromValue(int value) => switch (value) { + 1 => NSTaskTerminationReasonExit, + 2 => NSTaskTerminationReasonUncaughtSignal, + _ => throw ArgumentError( + 'Unknown value for NSTaskTerminationReason: $value', + ), + }; +} + +enum NSTestComparisonOperation { + NSEqualToComparison(0), + NSLessThanOrEqualToComparison(1), + NSLessThanComparison(2), + NSGreaterThanOrEqualToComparison(3), + NSGreaterThanComparison(4), + NSBeginsWithComparison(5), + NSEndsWithComparison(6), + NSContainsComparison(7); + + final int value; + const NSTestComparisonOperation(this.value); + + static NSTestComparisonOperation fromValue(int value) => switch (value) { + 0 => NSEqualToComparison, + 1 => NSLessThanOrEqualToComparison, + 2 => NSLessThanComparison, + 3 => NSGreaterThanOrEqualToComparison, + 4 => NSGreaterThanComparison, + 5 => NSBeginsWithComparison, + 6 => NSEndsWithComparison, + 7 => NSContainsComparison, + _ => throw ArgumentError( + 'Unknown value for NSTestComparisonOperation: $value', + ), + }; +} + +const int NSTextCheckingAllCustomTypes = -4294967296; + +const int NSTextCheckingAllSystemTypes = 4294967295; + +const int NSTextCheckingAllTypes = -1; + +typedef NSTextCheckingKey = ffi.Pointer; +typedef DartNSTextCheckingKey = objc.NSString; + +/// WARNING: NSTextCheckingResult is a stub. To generate bindings for this class, include +/// NSTextCheckingResult in your config's objc-interfaces list. +/// +/// NSTextCheckingResult +extension type NSTextCheckingResult._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSTextCheckingResult] that points to the same underlying object as [other]. + NSTextCheckingResult.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSTextCheckingResult', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } + + /// Constructs a [NSTextCheckingResult] that wraps the given raw object pointer. + NSTextCheckingResult.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSTextCheckingResult', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + } +} + +/// NSTextCheckingResultCreation +extension NSTextCheckingResultCreation on NSTextCheckingResult { + /// addressCheckingResultWithRange:components: + static NSTextCheckingResult addressCheckingResultWithRange( + NSRange range, { + required objc.NSDictionary components, + }) { + final _$$ref = components.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.addressCheckingResultWithRange:components:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_addressCheckingResultWithRange_components_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// correctionCheckingResultWithRange:replacementString: + static NSTextCheckingResult correctionCheckingResultWithRange( + NSRange range, { + required objc.NSString replacementString, + }) { + final _$$ref = replacementString.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.correctionCheckingResultWithRange:replacementString:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_correctionCheckingResultWithRange_replacementString_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// correctionCheckingResultWithRange:replacementString:alternativeStrings: + static NSTextCheckingResult correctionCheckingResultWithRange$1( + NSRange range, { + required objc.NSString replacementString, + required objc.NSArray alternativeStrings, + }) { + final _$$ref = replacementString.ref; + final _$$ref$1 = alternativeStrings.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.correctionCheckingResultWithRange:replacementString:alternativeStrings:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_1llrn9f( + _class_NSTextCheckingResult, + _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_, + range, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// dashCheckingResultWithRange:replacementString: + static NSTextCheckingResult dashCheckingResultWithRange( + NSRange range, { + required objc.NSString replacementString, + }) { + final _$$ref = replacementString.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.dashCheckingResultWithRange:replacementString:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_dashCheckingResultWithRange_replacementString_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// dateCheckingResultWithRange:date: + static NSTextCheckingResult dateCheckingResultWithRange( + NSRange range, { + required objc.NSDate date, + }) { + final _$$ref = date.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.dateCheckingResultWithRange:date:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_dateCheckingResultWithRange_date_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// dateCheckingResultWithRange:date:timeZone:duration: + static NSTextCheckingResult dateCheckingResultWithRange$1( + NSRange range, { + required objc.NSDate date, + required NSTimeZone timeZone, + required DartNSTimeInterval duration, + }) { + final _$$ref = date.ref; + final _$$ref$1 = timeZone.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.dateCheckingResultWithRange:date:timeZone:duration:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_u8u7og( + _class_NSTextCheckingResult, + _sel_dateCheckingResultWithRange_date_timeZone_duration_, + range, + _$$ref.pointer, + _$$ref$1.pointer, + duration, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// grammarCheckingResultWithRange:details: + static NSTextCheckingResult grammarCheckingResultWithRange( + NSRange range, { + required objc.NSArray details, + }) { + final _$$ref = details.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.grammarCheckingResultWithRange:details:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_grammarCheckingResultWithRange_details_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// linkCheckingResultWithRange:URL: + static NSTextCheckingResult linkCheckingResultWithRange( + NSRange range, { + required objc.NSURL URL, + }) { + final _$$ref = URL.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.linkCheckingResultWithRange:URL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_linkCheckingResultWithRange_URL_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// orthographyCheckingResultWithRange:orthography: + static NSTextCheckingResult orthographyCheckingResultWithRange( + NSRange range, { + required NSOrthography orthography, + }) { + final _$$ref = orthography.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.orthographyCheckingResultWithRange:orthography:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_orthographyCheckingResultWithRange_orthography_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// phoneNumberCheckingResultWithRange:phoneNumber: + static NSTextCheckingResult phoneNumberCheckingResultWithRange( + NSRange range, { + required objc.NSString phoneNumber, + }) { + final _$$ref = phoneNumber.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.phoneNumberCheckingResultWithRange:phoneNumber:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_phoneNumberCheckingResultWithRange_phoneNumber_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// quoteCheckingResultWithRange:replacementString: + static NSTextCheckingResult quoteCheckingResultWithRange( + NSRange range, { + required objc.NSString replacementString, + }) { + final _$$ref = replacementString.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.quoteCheckingResultWithRange:replacementString:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_quoteCheckingResultWithRange_replacementString_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// regularExpressionCheckingResultWithRanges:count:regularExpression: + static NSTextCheckingResult regularExpressionCheckingResultWithRanges( + NSRangePointer ranges, { + required DartNSUInteger count, + required NSRegularExpression regularExpression, + }) { + final _$$ref = regularExpression.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.regularExpressionCheckingResultWithRanges:count:regularExpression:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1fs7dv0( + _class_NSTextCheckingResult, + _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_, + ranges, + count, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// replacementCheckingResultWithRange:replacementString: + static NSTextCheckingResult replacementCheckingResultWithRange( + NSRange range, { + required objc.NSString replacementString, + }) { + final _$$ref = replacementString.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.replacementCheckingResultWithRange:replacementString:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_replacementCheckingResultWithRange_replacementString_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// spellCheckingResultWithRange: + static NSTextCheckingResult spellCheckingResultWithRange(NSRange range) { + objc.checkOsVersionInternal( + 'NSTextCheckingResult.spellCheckingResultWithRange:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1k1o1s7( + _class_NSTextCheckingResult, + _sel_spellCheckingResultWithRange_, + range, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// transitInformationCheckingResultWithRange:components: + static NSTextCheckingResult transitInformationCheckingResultWithRange( + NSRange range, { + required objc.NSDictionary components, + }) { + final _$$ref = components.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.transitInformationCheckingResultWithRange:components:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_bstjp9( + _class_NSTextCheckingResult, + _sel_transitInformationCheckingResultWithRange_components_, + range, + _$$ref.pointer, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } +} + +/// NSTextCheckingResultOptional +extension NSTextCheckingResultOptional on NSTextCheckingResult { + /// URL + objc.NSURL? get URL { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.URL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_URL); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// addressComponents + objc.NSDictionary? get addressComponents { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.addressComponents', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_addressComponents); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// alternativeStrings + objc.NSArray? get alternativeStrings { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.alternativeStrings', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_alternativeStrings); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// components + objc.NSDictionary? get components { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.components', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_components); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// date + objc.NSDate? get date { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.date', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_date); + return $ret.address == 0 + ? null + : objc.NSDate.fromPointer($ret, retain: true, release: true); + } + + /// duration + DartNSTimeInterval get duration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.duration', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); + } + + /// grammarDetails + objc.NSArray? get grammarDetails { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.grammarDetails', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_grammarDetails); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// numberOfRanges + DartNSUInteger get numberOfRanges { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.numberOfRanges', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfRanges); + } + + /// orthography + NSOrthography? get orthography { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.orthography', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_orthography); + return $ret.address == 0 + ? null + : NSOrthography.fromPointer($ret, retain: true, release: true); + } + + /// phoneNumber + objc.NSString? get phoneNumber { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.phoneNumber', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_phoneNumber); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// rangeAtIndex: + NSRange rangeAtIndex(DartNSUInteger idx) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.rangeAtIndex:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_d3i1uyStret( + $ptr, + _$$ref.pointer, + _sel_rangeAtIndex_, + idx, + ) + : $ptr.ref = _objc_msgSend_d3i1uy( + _$$ref.pointer, + _sel_rangeAtIndex_, + idx, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// rangeWithName: + NSRange rangeWithName(objc.NSString name) { + final _$$ref = object$.ref; + final _$$ref$1 = name.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.rangeWithName:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_182fzonStret( + $ptr, + _$$ref.pointer, + _sel_rangeWithName_, + _$$ref$1.pointer, + ) + : $ptr.ref = _objc_msgSend_182fzon( + _$$ref.pointer, + _sel_rangeWithName_, + _$$ref$1.pointer, + ); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// regularExpression + NSRegularExpression? get regularExpression { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.regularExpression', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_regularExpression); + return $ret.address == 0 + ? null + : NSRegularExpression.fromPointer($ret, retain: true, release: true); + } + + /// replacementString + objc.NSString? get replacementString { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.replacementString', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_replacementString); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// resultByAdjustingRangesWithOffset: + NSTextCheckingResult resultByAdjustingRangesWithOffset(DartNSInteger offset) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.resultByAdjustingRangesWithOffset:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_qugqlf( + _$$ref.pointer, + _sel_resultByAdjustingRangesWithOffset_, + offset, + ); + return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + /// timeZone + NSTimeZone? get timeZone { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextCheckingResult.timeZone', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_timeZone); + return $ret.address == 0 + ? null + : NSTimeZone.fromPointer($ret, retain: true, release: true); + } +} + +sealed class NSTextCheckingType { + static const NSTextCheckingTypeOrthography = 1; + static const NSTextCheckingTypeSpelling = 2; + static const NSTextCheckingTypeGrammar = 4; + static const NSTextCheckingTypeDate = 8; + static const NSTextCheckingTypeAddress = 16; + static const NSTextCheckingTypeLink = 32; + static const NSTextCheckingTypeQuote = 64; + static const NSTextCheckingTypeDash = 128; + static const NSTextCheckingTypeReplacement = 256; + static const NSTextCheckingTypeCorrection = 512; + static const NSTextCheckingTypeRegularExpression = 1024; + static const NSTextCheckingTypePhoneNumber = 2048; + static const NSTextCheckingTypeTransitInformation = 4096; +} + +typedef NSTextCheckingTypes = ffi.Uint64; +typedef DartNSTextCheckingTypes = int; + +/// WARNING: NSThread is a stub. To generate bindings for this class, include +/// NSThread in your config's objc-interfaces list. +/// +/// NSThread +extension type NSThread._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSThread] that points to the same underlying object as [other]. + NSThread.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSThread] that wraps the given raw object pointer. + NSThread.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSThreadPerformAdditions +extension NSThreadPerformAdditions on objc.NSObject { + /// performSelector:onThread:withObject:waitUntilDone: + void performSelector$3( + ffi.Pointer aSelector, { + required NSThread onThread, + objc.ObjCObject? withObject, + required bool waitUntilDone, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = onThread.ref; + final _$$ref$2 = withObject?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelector:onThread:withObject:waitUntilDone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_1whyima( + _$$ref.pointer, + _sel_performSelector_onThread_withObject_waitUntilDone_, + aSelector, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + waitUntilDone, + ); + } + + /// performSelector:onThread:withObject:waitUntilDone:modes: + void performSelector$4( + ffi.Pointer aSelector, { + required NSThread onThread, + objc.ObjCObject? withObject, + required bool waitUntilDone, + objc.NSArray? modes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = onThread.ref; + final _$$ref$2 = withObject?.ref; + final _$$ref$3 = modes?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelector:onThread:withObject:waitUntilDone:modes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_1cc1buo( + _$$ref.pointer, + _sel_performSelector_onThread_withObject_waitUntilDone_modes_, + aSelector, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + waitUntilDone, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// performSelectorInBackground:withObject: + void performSelectorInBackground( + ffi.Pointer aSelector, { + objc.ObjCObject? withObject, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withObject?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelectorInBackground:withObject:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_1qv0eq4( + _$$ref.pointer, + _sel_performSelectorInBackground_withObject_, + aSelector, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// performSelectorOnMainThread:withObject:waitUntilDone: + void performSelectorOnMainThread( + ffi.Pointer aSelector, { + objc.ObjCObject? withObject, + required bool waitUntilDone, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withObject?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelectorOnMainThread:withObject:waitUntilDone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_tsocn4( + _$$ref.pointer, + _sel_performSelectorOnMainThread_withObject_waitUntilDone_, + aSelector, + _$$ref$1?.pointer ?? ffi.nullptr, + waitUntilDone, + ); + } + + /// performSelectorOnMainThread:withObject:waitUntilDone:modes: + void performSelectorOnMainThread$1( + ffi.Pointer aSelector, { + objc.ObjCObject? withObject, + required bool waitUntilDone, + objc.NSArray? modes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = withObject?.ref; + final _$$ref$2 = modes?.ref; + objc.checkOsVersionInternal( + 'NSObject.performSelectorOnMainThread:withObject:waitUntilDone:modes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1fdou4m( + _$$ref.pointer, + _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_, + aSelector, + _$$ref$1?.pointer ?? ffi.nullptr, + waitUntilDone, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +typedef NSTimeInterval = ffi.Double; +typedef DartNSTimeInterval = double; + +/// WARNING: NSTimeZone is a stub. To generate bindings for this class, include +/// NSTimeZone in your config's objc-interfaces list. +/// +/// NSTimeZone +extension type NSTimeZone._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + objc.NSSecureCoding { + /// Constructs a [NSTimeZone] that points to the same underlying object as [other]. + NSTimeZone.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSTimeZone] that wraps the given raw object pointer. + NSTimeZone.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSTimeZoneCreation +extension NSTimeZoneCreation on NSTimeZone {} + +enum NSTimeZoneNameStyle { + NSTimeZoneNameStyleStandard(0), + NSTimeZoneNameStyleShortStandard(1), + NSTimeZoneNameStyleDaylightSaving(2), + NSTimeZoneNameStyleShortDaylightSaving(3), + NSTimeZoneNameStyleGeneric(4), + NSTimeZoneNameStyleShortGeneric(5); + + final int value; + const NSTimeZoneNameStyle(this.value); + + static NSTimeZoneNameStyle fromValue(int value) => switch (value) { + 0 => NSTimeZoneNameStyleStandard, + 1 => NSTimeZoneNameStyleShortStandard, + 2 => NSTimeZoneNameStyleDaylightSaving, + 3 => NSTimeZoneNameStyleShortDaylightSaving, + 4 => NSTimeZoneNameStyleGeneric, + 5 => NSTimeZoneNameStyleShortGeneric, + _ => throw ArgumentError('Unknown value for NSTimeZoneNameStyle: $value'), + }; +} + +/// NSTypedstreamCompatibility +extension NSTypedstreamCompatibility on objc.NSCoder { + /// decodeNXObject + @Deprecated('Not supported') + objc.ObjCObject? decodeNXObject() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSCoder.decodeNXObject', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodeNXObject); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// encodeNXObject: + @Deprecated('Not supported') + void encodeNXObject(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSCoder.encodeNXObject:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeNXObject_, + _$$ref$1.pointer, + ); + } +} + +typedef NSUInteger = ffi.UnsignedLong; +typedef DartNSUInteger = int; + +/// WARNING: NSURLAuthenticationChallenge is a stub. To generate bindings for this class, include +/// NSURLAuthenticationChallenge in your config's objc-interfaces list. +/// +/// NSURLAuthenticationChallenge +extension type NSURLAuthenticationChallenge._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [NSURLAuthenticationChallenge] that points to the same underlying object as [other]. + NSURLAuthenticationChallenge.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallenge', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLAuthenticationChallenge] that wraps the given raw object pointer. + NSURLAuthenticationChallenge.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallenge', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// NSURLAuthenticationChallengeSender +extension type NSURLAuthenticationChallengeSender._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSURLAuthenticationChallengeSender] that points to the same underlying object as [other]. + NSURLAuthenticationChallengeSender.as(objc.ObjCObject other) + : object$ = other; + + /// Constructs a [NSURLAuthenticationChallengeSender] that wraps the given raw object pointer. + NSURLAuthenticationChallengeSender.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLAuthenticationChallengeSender]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLAuthenticationChallengeSender, + ); + } +} + +extension NSURLAuthenticationChallengeSender$Methods + on NSURLAuthenticationChallengeSender { + /// cancelAuthenticationChallenge: + void cancelAuthenticationChallenge(NSURLAuthenticationChallenge challenge) { + final _$$ref = object$.ref; + final _$$ref$1 = challenge.ref; + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallengeSender.cancelAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_cancelAuthenticationChallenge_, + _$$ref$1.pointer, + ); + } + + /// continueWithoutCredentialForAuthenticationChallenge: + void continueWithoutCredentialForAuthenticationChallenge( + NSURLAuthenticationChallenge challenge, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = challenge.ref; + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallengeSender.continueWithoutCredentialForAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_continueWithoutCredentialForAuthenticationChallenge_, + _$$ref$1.pointer, + ); + } + + /// performDefaultHandlingForAuthenticationChallenge: + void performDefaultHandlingForAuthenticationChallenge( + NSURLAuthenticationChallenge challenge, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = challenge.ref; + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallengeSender.performDefaultHandlingForAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_performDefaultHandlingForAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLAuthenticationChallengeSender', + 'performDefaultHandlingForAuthenticationChallenge:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_performDefaultHandlingForAuthenticationChallenge_, + _$$ref$1.pointer, + ); + } + + /// rejectProtectionSpaceAndContinueWithChallenge: + void rejectProtectionSpaceAndContinueWithChallenge( + NSURLAuthenticationChallenge challenge, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = challenge.ref; + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallengeSender.rejectProtectionSpaceAndContinueWithChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_rejectProtectionSpaceAndContinueWithChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLAuthenticationChallengeSender', + 'rejectProtectionSpaceAndContinueWithChallenge:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_rejectProtectionSpaceAndContinueWithChallenge_, + _$$ref$1.pointer, + ); + } + + /// useCredential:forAuthenticationChallenge: + void useCredential( + NSURLCredential credential, { + required NSURLAuthenticationChallenge forAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = credential.ref; + final _$$ref$2 = forAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLAuthenticationChallengeSender.useCredential:forAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_useCredential_forAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSURLAuthenticationChallengeSender$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => objc.Protocol.fromPointer( + _protocol_NSURLAuthenticationChallengeSender.cast(), + ); + + /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLAuthenticationChallengeSender implement({ + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLAuthenticationChallengeSender', + ); + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implement(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implement( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implement(builder, performDefaultHandlingForAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implement(builder, rejectProtectionSpaceAndContinueWithChallenge_); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implement(builder, useCredential_forAuthenticationChallenge_); + builder.addProtocol($protocol); + return NSURLAuthenticationChallengeSender.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implement(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implement( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implement(builder, performDefaultHandlingForAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implement(builder, rejectProtectionSpaceAndContinueWithChallenge_); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implement(builder, useCredential_forAuthenticationChallenge_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLAuthenticationChallengeSender implementAsListener({ + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLAuthenticationChallengeSender', + ); + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implementAsListener(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implementAsListener( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implementAsListener( + builder, + performDefaultHandlingForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implementAsListener( + builder, + rejectProtectionSpaceAndContinueWithChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implementAsListener( + builder, + useCredential_forAuthenticationChallenge_, + ); + builder.addProtocol($protocol); + return NSURLAuthenticationChallengeSender.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implementAsListener(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implementAsListener( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implementAsListener( + builder, + performDefaultHandlingForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implementAsListener( + builder, + rejectProtectionSpaceAndContinueWithChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implementAsListener( + builder, + useCredential_forAuthenticationChallenge_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLAuthenticationChallengeSender implementAsBlocking({ + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLAuthenticationChallengeSender', + ); + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implementAsBlocking(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implementAsBlocking( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implementAsBlocking( + builder, + performDefaultHandlingForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implementAsBlocking( + builder, + rejectProtectionSpaceAndContinueWithChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implementAsBlocking( + builder, + useCredential_forAuthenticationChallenge_, + ); + builder.addProtocol($protocol); + return NSURLAuthenticationChallengeSender.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLAuthenticationChallenge) + cancelAuthenticationChallenge_, + required void Function(NSURLAuthenticationChallenge) + continueWithoutCredentialForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + performDefaultHandlingForAuthenticationChallenge_, + void Function(NSURLAuthenticationChallenge)? + rejectProtectionSpaceAndContinueWithChallenge_, + required void Function(NSURLCredential, NSURLAuthenticationChallenge) + useCredential_forAuthenticationChallenge_, + bool $keepIsolateAlive = true, + }) { + NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ + .implementAsBlocking(builder, cancelAuthenticationChallenge_); + NSURLAuthenticationChallengeSender$Builder + .continueWithoutCredentialForAuthenticationChallenge_ + .implementAsBlocking( + builder, + continueWithoutCredentialForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .performDefaultHandlingForAuthenticationChallenge_ + .implementAsBlocking( + builder, + performDefaultHandlingForAuthenticationChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .rejectProtectionSpaceAndContinueWithChallenge_ + .implementAsBlocking( + builder, + rejectProtectionSpaceAndContinueWithChallenge_, + ); + NSURLAuthenticationChallengeSender$Builder + .useCredential_forAuthenticationChallenge_ + .implementAsBlocking( + builder, + useCredential_forAuthenticationChallenge_, + ); + builder.addProtocol($protocol); + } + + /// cancelAuthenticationChallenge: + static final cancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLAuthenticationChallenge) + >( + _protocol_NSURLAuthenticationChallengeSender, + _sel_cancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLAuthenticationChallengeSender, + _sel_cancelAuthenticationChallenge_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + ); + + /// continueWithoutCredentialForAuthenticationChallenge: + static final continueWithoutCredentialForAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLAuthenticationChallenge) + >( + _protocol_NSURLAuthenticationChallengeSender, + _sel_continueWithoutCredentialForAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLAuthenticationChallengeSender, + _sel_continueWithoutCredentialForAuthenticationChallenge_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + ); + + /// performDefaultHandlingForAuthenticationChallenge: + static final performDefaultHandlingForAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLAuthenticationChallenge) + >( + _protocol_NSURLAuthenticationChallengeSender, + _sel_performDefaultHandlingForAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLAuthenticationChallengeSender, + _sel_performDefaultHandlingForAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + ); + + /// rejectProtectionSpaceAndContinueWithChallenge: + static final rejectProtectionSpaceAndContinueWithChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLAuthenticationChallenge) + >( + _protocol_NSURLAuthenticationChallengeSender, + _sel_rejectProtectionSpaceAndContinueWithChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLAuthenticationChallengeSender, + _sel_rejectProtectionSpaceAndContinueWithChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + (void Function(NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( + (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => + func(arg1), + ), + ); + + /// useCredential:forAuthenticationChallenge: + static final useCredential_forAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLCredential, NSURLAuthenticationChallenge) + >( + _protocol_NSURLAuthenticationChallengeSender, + _sel_useCredential_forAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLAuthenticationChallengeSender, + _sel_useCredential_forAuthenticationChallenge_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLCredential arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLCredential arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLCredential arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); +} + +typedef NSURLBookmarkFileCreationOptions = NSUInteger; + +/// WARNING: NSURLCache is a stub. To generate bindings for this class, include +/// NSURLCache in your config's objc-interfaces list. +/// +/// NSURLCache +extension type NSURLCache._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLCache] that points to the same underlying object as [other]. + NSURLCache.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLCache', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLCache] that wraps the given raw object pointer. + NSURLCache.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLCache', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +enum NSURLCacheStoragePolicy { + NSURLCacheStorageAllowed(0), + NSURLCacheStorageAllowedInMemoryOnly(1), + NSURLCacheStorageNotAllowed(2); + + final int value; + const NSURLCacheStoragePolicy(this.value); + + static NSURLCacheStoragePolicy fromValue(int value) => switch (value) { + 0 => NSURLCacheStorageAllowed, + 1 => NSURLCacheStorageAllowedInMemoryOnly, + 2 => NSURLCacheStorageNotAllowed, + _ => throw ArgumentError( + 'Unknown value for NSURLCacheStoragePolicy: $value', + ), + }; +} + +/// NSURLClient +extension NSURLClient on objc.NSObject { + /// URL:resourceDataDidBecomeAvailable: + @Deprecated('Use NSURLConnection instead') + void URL( + objc.NSURL sender, { + required objc.NSData resourceDataDidBecomeAvailable, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = resourceDataDidBecomeAvailable.ref; + objc.checkOsVersionInternal( + 'NSObject.URL:resourceDataDidBecomeAvailable:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URL_resourceDataDidBecomeAvailable_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URL:resourceDidFailLoadingWithReason: + @Deprecated('Use NSURLConnection instead') + void URL$1( + objc.NSURL sender, { + required objc.NSString resourceDidFailLoadingWithReason, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = resourceDidFailLoadingWithReason.ref; + objc.checkOsVersionInternal( + 'NSObject.URL:resourceDidFailLoadingWithReason:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URL_resourceDidFailLoadingWithReason_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLResourceDidCancelLoading: + @Deprecated('Use NSURLConnection instead') + void URLResourceDidCancelLoading(objc.NSURL sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSObject.URLResourceDidCancelLoading:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLResourceDidCancelLoading_, + _$$ref$1.pointer, + ); + } + + /// URLResourceDidFinishLoading: + @Deprecated('Use NSURLConnection instead') + void URLResourceDidFinishLoading(objc.NSURL sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSObject.URLResourceDidFinishLoading:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLResourceDidFinishLoading_, + _$$ref$1.pointer, + ); + } +} + +/// WARNING: NSURLConnection is a stub. To generate bindings for this class, include +/// NSURLConnection in your config's objc-interfaces list. +/// +/// NSURLConnection +extension type NSURLConnection._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLConnection] that points to the same underlying object as [other]. + NSURLConnection.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLConnection', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLConnection] that wraps the given raw object pointer. + NSURLConnection.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLConnection', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// NSURLConnectionDataDelegate +extension type NSURLConnectionDataDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLConnectionDelegate { + /// Constructs a [NSURLConnectionDataDelegate] that points to the same underlying object as [other]. + NSURLConnectionDataDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLConnectionDataDelegate] that wraps the given raw object pointer. + NSURLConnectionDataDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLConnectionDataDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLConnectionDataDelegate, + ); + } +} + +extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { + /// connection:canAuthenticateAgainstProtectionSpace: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + bool connection( + NSURLConnection connection, { + required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:canAuthenticateAgainstProtectionSpace:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:canAuthenticateAgainstProtectionSpace:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didCancelAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$1( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didCancelAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didCancelAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didCancelAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didFailWithError: + void connection$2( + NSURLConnection connection, { + required objc.NSError didFailWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didFailWithError.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didFailWithError:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didFailWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didFailWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didFailWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didReceiveAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$3( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didReceiveAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didReceiveAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didReceiveAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didReceiveData: + void connection$4( + NSURLConnection connection, { + required objc.NSData didReceiveData, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didReceiveData.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didReceiveData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didReceiveData_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didReceiveData:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didReceiveData_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didReceiveResponse: + void connection$5( + NSURLConnection connection, { + required NSURLResponse didReceiveResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didReceiveResponse.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didReceiveResponse:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didReceiveResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didReceiveResponse:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didReceiveResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite: + void connection$6( + NSURLConnection connection, { + required DartNSInteger didSendBodyData, + required DartNSInteger totalBytesWritten, + required DartNSInteger totalBytesExpectedToWrite, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:', + ); + } + _objc_msgSend_ifge4x( + _$$ref.pointer, + _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + _$$ref$1.pointer, + didSendBodyData, + totalBytesWritten, + totalBytesExpectedToWrite, + ); + } + + /// connection:needNewBodyStream: + objc.NSInputStream? connection$7( + NSURLConnection connection, { + required NSURLRequest needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:needNewBodyStream:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:needNewBodyStream:', + ); + } + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_connection_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// connection:willCacheResponse: + NSCachedURLResponse? connection$8( + NSURLConnection connection, { + required NSCachedURLResponse willCacheResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = willCacheResponse.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:willCacheResponse:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_willCacheResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:willCacheResponse:', + ); + } + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_connection_willCacheResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : NSCachedURLResponse.fromPointer($ret, retain: true, release: true); + } + + /// connection:willSendRequest:redirectResponse: + NSURLRequest? connection$9( + NSURLConnection connection, { + required NSURLRequest willSendRequest, + NSURLResponse? redirectResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = willSendRequest.ref; + final _$$ref$3 = redirectResponse?.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:willSendRequest:redirectResponse:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_willSendRequest_redirectResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:willSendRequest:redirectResponse:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_connection_willSendRequest_redirectResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : NSURLRequest.fromPointer($ret, retain: true, release: true); + } + + /// connection:willSendRequestForAuthenticationChallenge: + void connection$10( + NSURLConnection connection, { + required NSURLAuthenticationChallenge + willSendRequestForAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connection:willSendRequestForAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connection:willSendRequestForAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connectionDidFinishLoading: + void connectionDidFinishLoading(NSURLConnection connection) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connectionDidFinishLoading:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connectionDidFinishLoading_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connectionDidFinishLoading:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_connectionDidFinishLoading_, + _$$ref$1.pointer, + ); + } + + /// connectionShouldUseCredentialStorage: + bool connectionShouldUseCredentialStorage(NSURLConnection connection) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDataDelegate.connectionShouldUseCredentialStorage:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDataDelegate', + 'connectionShouldUseCredentialStorage:', + ); + } + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLConnectionDataDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLConnectionDataDelegate.cast()); + + /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDataDelegate implement({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDataDelegate', + ); + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_.implement( + builder, + connection_didFailWithError_, + ); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_.implement( + builder, + connection_didReceiveData_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implement(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implement( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_.implement( + builder, + connectionDidFinishLoading_, + ); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_.implement( + builder, + connection_didFailWithError_, + ); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_.implement( + builder, + connection_didReceiveData_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implement(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implement( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_.implement( + builder, + connectionDidFinishLoading_, + ); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDataDelegate implementAsListener({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDataDelegate', + ); + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ + .implementAsListener(builder, connection_didReceiveData_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implementAsListener(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implementAsListener( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ + .implementAsListener(builder, connectionDidFinishLoading_); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ + .implementAsListener(builder, connection_didReceiveData_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implementAsListener(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implementAsListener( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ + .implementAsListener(builder, connectionDidFinishLoading_); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDataDelegate implementAsBlocking({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDataDelegate', + ); + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ + .implementAsBlocking(builder, connection_didReceiveData_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implementAsBlocking(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implementAsBlocking( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ + .implementAsBlocking(builder, connectionDidFinishLoading_); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, + void Function(NSURLConnection, NSURLResponse)? + connection_didReceiveResponse_, + void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? + connection_needNewBodyStream_, + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? + connection_willCacheResponse_, + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? + connection_willSendRequest_redirectResponse_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + void Function(NSURLConnection)? connectionDidFinishLoading_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDataDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDataDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDataDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ + .implementAsBlocking(builder, connection_didReceiveData_); + NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ + .implementAsBlocking(builder, connection_didReceiveResponse_); + NSURLConnectionDataDelegate$Builder + .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ + .implementAsBlocking( + builder, + connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( + builder, + connection_needNewBodyStream_, + ); + NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( + builder, + connection_willCacheResponse_, + ); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequest_redirectResponse_ + .implement(builder, connection_willSendRequest_redirectResponse_); + NSURLConnectionDataDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ + .implementAsBlocking(builder, connectionDidFinishLoading_); + NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// connection:canAuthenticateAgainstProtectionSpace: + static final connection_canAuthenticateAgainstProtectionSpace_ = + objc.ObjCProtocolMethod< + bool Function(NSURLConnection, NSURLProtectionSpace) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection, NSURLProtectionSpace) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLProtectionSpace arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didCancelAuthenticationChallenge: + static final connection_didCancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didFailWithError: + static final connection_didFailWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, objc.NSError) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didFailWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didFailWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didReceiveAuthenticationChallenge: + static final connection_didReceiveAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didReceiveData: + static final connection_didReceiveData_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, objc.NSData) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveData_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didReceiveResponse: + static final connection_didReceiveResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLResponse) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didReceiveResponse_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite: + static final connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + NSInteger, + NSInteger, + ) + > + >(_1uu024u_protocolTrampoline_15e9dqx) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + DartNSInteger arg2, + DartNSInteger arg3, + DartNSInteger arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + DartNSInteger arg2, + DartNSInteger arg3, + DartNSInteger arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + DartNSInteger arg2, + DartNSInteger arg3, + DartNSInteger arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// connection:needNewBodyStream: + static final connection_needNewBodyStream_ = + objc.ObjCProtocolMethod< + objc.NSInputStream? Function(NSURLConnection, NSURLRequest) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_zi5eed) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + (objc.NSInputStream? Function(NSURLConnection, NSURLRequest) func) => + ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLRequest arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:willCacheResponse: + static final connection_willCacheResponse_ = + objc.ObjCProtocolMethod< + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willCacheResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_zi5eed) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willCacheResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse) + func, + ) => + ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSCachedURLResponse arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:willSendRequest:redirectResponse: + static final connection_willSendRequest_redirectResponse_ = + objc.ObjCProtocolMethod< + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willSendRequest_redirectResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willSendRequest_redirectResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?) + func, + ) => + ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLRequest arg2, + NSURLResponse? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// connection:willSendRequestForAuthenticationChallenge: + static final connection_willSendRequestForAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connectionDidFinishLoading: + static final connectionDidFinishLoading_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLConnectionDataDelegate, + _sel_connectionDidFinishLoading_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connectionDidFinishLoading_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.fromFunction( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + (void Function(NSURLConnection) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.listener( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + (void Function(NSURLConnection) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.blocking( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + ); + + /// connectionShouldUseCredentialStorage: + static final connectionShouldUseCredentialStorage_ = + objc.ObjCProtocolMethod( + _protocol_NSURLConnectionDataDelegate, + _sel_connectionShouldUseCredentialStorage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDataDelegate, + _sel_connectionShouldUseCredentialStorage_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + ); +} + +/// NSURLConnectionDelegate +extension type NSURLConnectionDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSURLConnectionDelegate] that points to the same underlying object as [other]. + NSURLConnectionDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLConnectionDelegate] that wraps the given raw object pointer. + NSURLConnectionDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLConnectionDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLConnectionDelegate, + ); + } +} + +extension NSURLConnectionDelegate$Methods on NSURLConnectionDelegate { + /// connection:canAuthenticateAgainstProtectionSpace: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + bool connection( + NSURLConnection connection, { + required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connection:canAuthenticateAgainstProtectionSpace:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connection:canAuthenticateAgainstProtectionSpace:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didCancelAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$1( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didCancelAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connection:didCancelAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connection:didCancelAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didFailWithError: + void connection$2( + NSURLConnection connection, { + required objc.NSError didFailWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didFailWithError.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connection:didFailWithError:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didFailWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connection:didFailWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didFailWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didReceiveAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$3( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didReceiveAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connection:didReceiveAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connection:didReceiveAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:willSendRequestForAuthenticationChallenge: + void connection$4( + NSURLConnection connection, { + required NSURLAuthenticationChallenge + willSendRequestForAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connection:willSendRequestForAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connection:willSendRequestForAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connectionShouldUseCredentialStorage: + bool connectionShouldUseCredentialStorage(NSURLConnection connection) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDelegate.connectionShouldUseCredentialStorage:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDelegate', + 'connectionShouldUseCredentialStorage:', + ); + } + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLConnectionDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLConnectionDelegate.cast()); + + /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDelegate implement({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDelegate', + ); + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDelegate$Builder.connection_didFailWithError_.implement( + builder, + connection_didFailWithError_, + ); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDelegate$Builder.connection_didFailWithError_.implement( + builder, + connection_didFailWithError_, + ); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDelegate implementAsListener({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDelegate', + ); + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDelegate implementAsBlocking({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDelegate', + ); + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// connection:canAuthenticateAgainstProtectionSpace: + static final connection_canAuthenticateAgainstProtectionSpace_ = + objc.ObjCProtocolMethod< + bool Function(NSURLConnection, NSURLProtectionSpace) + >( + _protocol_NSURLConnectionDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection, NSURLProtectionSpace) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLProtectionSpace arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didCancelAuthenticationChallenge: + static final connection_didCancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didFailWithError: + static final connection_didFailWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, objc.NSError) + >( + _protocol_NSURLConnectionDelegate, + _sel_connection_didFailWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connection_didFailWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didReceiveAuthenticationChallenge: + static final connection_didReceiveAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:willSendRequestForAuthenticationChallenge: + static final connection_willSendRequestForAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connectionShouldUseCredentialStorage: + static final connectionShouldUseCredentialStorage_ = + objc.ObjCProtocolMethod( + _protocol_NSURLConnectionDelegate, + _sel_connectionShouldUseCredentialStorage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDelegate, + _sel_connectionShouldUseCredentialStorage_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + ); +} + +/// NSURLConnectionDownloadDelegate +extension type NSURLConnectionDownloadDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLConnectionDelegate { + /// Constructs a [NSURLConnectionDownloadDelegate] that points to the same underlying object as [other]. + NSURLConnectionDownloadDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLConnectionDownloadDelegate] that wraps the given raw object pointer. + NSURLConnectionDownloadDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLConnectionDownloadDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLConnectionDownloadDelegate, + ); + } +} + +extension NSURLConnectionDownloadDelegate$Methods + on NSURLConnectionDownloadDelegate { + /// connection:canAuthenticateAgainstProtectionSpace: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + bool connection( + NSURLConnection connection, { + required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:canAuthenticateAgainstProtectionSpace:', + iOS: (false, (3, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:canAuthenticateAgainstProtectionSpace:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didCancelAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$1( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didCancelAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:didCancelAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:didCancelAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didCancelAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didFailWithError: + void connection$2( + NSURLConnection connection, { + required objc.NSError didFailWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didFailWithError.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:didFailWithError:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didFailWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:didFailWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didFailWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didReceiveAuthenticationChallenge: + @Deprecated( + 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', + ) + void connection$3( + NSURLConnection connection, { + required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = didReceiveAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:didReceiveAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:didReceiveAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_didReceiveAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connection:didWriteData:totalBytesWritten:expectedTotalBytes: + void connection$4( + NSURLConnection connection, { + required int didWriteData, + required int totalBytesWritten, + required int expectedTotalBytes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:didWriteData:totalBytesWritten:expectedTotalBytes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:didWriteData:totalBytesWritten:expectedTotalBytes:', + ); + } + _objc_msgSend_3ow0v1( + _$$ref.pointer, + _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + _$$ref$1.pointer, + didWriteData, + totalBytesWritten, + expectedTotalBytes, + ); + } + + /// connection:willSendRequestForAuthenticationChallenge: + void connection$5( + NSURLConnection connection, { + required NSURLAuthenticationChallenge + willSendRequestForAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connection:willSendRequestForAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connection:willSendRequestForAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connection_willSendRequestForAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connectionDidFinishDownloading:destinationURL: + void connectionDidFinishDownloading( + NSURLConnection connection, { + required objc.NSURL destinationURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = destinationURL.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connectionDidFinishDownloading:destinationURL:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_connectionDidFinishDownloading_destinationURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes: + void connectionDidResumeDownloading( + NSURLConnection connection, { + required int totalBytesWritten, + required int expectedTotalBytes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:', + ); + } + _objc_msgSend_6cylk3( + _$$ref.pointer, + _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + _$$ref$1.pointer, + totalBytesWritten, + expectedTotalBytes, + ); + } + + /// connectionShouldUseCredentialStorage: + bool connectionShouldUseCredentialStorage(NSURLConnection connection) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + objc.checkOsVersionInternal( + 'NSURLConnectionDownloadDelegate.connectionShouldUseCredentialStorage:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLConnectionDownloadDelegate', + 'connectionShouldUseCredentialStorage:', + ); + } + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_connectionShouldUseCredentialStorage_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLConnectionDownloadDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => objc.Protocol.fromPointer( + _protocol_NSURLConnectionDownloadDelegate.cast(), + ); + + /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDownloadDelegate implement({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDownloadDelegate', + ); + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implement(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implement( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implement(builder, connectionDidFinishDownloading_destinationURL_); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implement( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implement(builder, connection_didCancelAuthenticationChallenge_); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implement(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implement(builder, connection_didReceiveAuthenticationChallenge_); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implement( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implement( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implement(builder, connectionDidFinishDownloading_destinationURL_); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implement( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDownloadDelegate implementAsListener({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDownloadDelegate', + ); + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implementAsListener( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implementAsListener( + builder, + connectionDidFinishDownloading_destinationURL_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implementAsListener( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implementAsListener(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implementAsListener( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsListener( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implementAsListener( + builder, + connectionDidFinishDownloading_destinationURL_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implementAsListener( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLConnectionDownloadDelegate implementAsBlocking({ + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLConnectionDownloadDelegate', + ); + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implementAsBlocking( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implementAsBlocking( + builder, + connectionDidFinishDownloading_destinationURL_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implementAsBlocking( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + return NSURLConnectionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLConnection, NSURLProtectionSpace)? + connection_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didCancelAuthenticationChallenge_, + void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_didReceiveAuthenticationChallenge_, + void Function(NSURLConnection, int, int, int)? + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + void Function(NSURLConnection, NSURLAuthenticationChallenge)? + connection_willSendRequestForAuthenticationChallenge_, + required void Function(NSURLConnection, objc.NSURL) + connectionDidFinishDownloading_destinationURL_, + void Function(NSURLConnection, int, int)? + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLConnectionDownloadDelegate$Builder + .connection_canAuthenticateAgainstProtectionSpace_ + .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); + NSURLConnectionDownloadDelegate$Builder + .connection_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didCancelAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ + .implementAsBlocking(builder, connection_didFailWithError_); + NSURLConnectionDownloadDelegate$Builder + .connection_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_didReceiveAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ + .implementAsBlocking( + builder, + connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connection_willSendRequestForAuthenticationChallenge_ + .implementAsBlocking( + builder, + connection_willSendRequestForAuthenticationChallenge_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidFinishDownloading_destinationURL_ + .implementAsBlocking( + builder, + connectionDidFinishDownloading_destinationURL_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ + .implementAsBlocking( + builder, + connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ); + NSURLConnectionDownloadDelegate$Builder + .connectionShouldUseCredentialStorage_ + .implement(builder, connectionShouldUseCredentialStorage_); + builder.addProtocol($protocol); + } + + /// connection:canAuthenticateAgainstProtectionSpace: + static final connection_canAuthenticateAgainstProtectionSpace_ = + objc.ObjCProtocolMethod< + bool Function(NSURLConnection, NSURLProtectionSpace) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_canAuthenticateAgainstProtectionSpace_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection, NSURLProtectionSpace) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLProtectionSpace arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didCancelAuthenticationChallenge: + static final connection_didCancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didCancelAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didFailWithError: + static final connection_didFailWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, objc.NSError) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didFailWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didFailWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didReceiveAuthenticationChallenge: + static final connection_didReceiveAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didReceiveAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connection:didWriteData:totalBytesWritten:expectedTotalBytes: + static final connection_didWriteData_totalBytesWritten_expectedTotalBytes_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, int, int, int) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + >(_1uu024u_protocolTrampoline_1qf1qkl) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + (void Function(NSURLConnection, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + (void Function(NSURLConnection, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// connection:willSendRequestForAuthenticationChallenge: + static final connection_willSendRequestForAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, NSURLAuthenticationChallenge) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connection_willSendRequestForAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// connectionDidFinishDownloading:destinationURL: + static final connectionDidFinishDownloading_destinationURL_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, objc.NSURL) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionDidFinishDownloading_destinationURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionDidFinishDownloading_destinationURL_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSURL arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSURL arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLConnection, objc.NSURL) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + objc.NSURL arg2, + ) => func(arg1, arg2), + ), + ); + + /// connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes: + static final connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLConnection, int, int) + >( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ) + > + >(_1uu024u_protocolTrampoline_9crvvv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLConnection, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.fromFunction( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLConnection, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.listener( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLConnection, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.blocking( + ( + ffi.Pointer _, + NSURLConnection arg1, + int arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// connectionShouldUseCredentialStorage: + static final connectionShouldUseCredentialStorage_ = + objc.ObjCProtocolMethod( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionShouldUseCredentialStorage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLConnectionDownloadDelegate, + _sel_connectionShouldUseCredentialStorage_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLConnection) func) => + ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( + (ffi.Pointer _, NSURLConnection arg1) => func(arg1), + ), + ); +} + +/// NSURLConnectionQueuedLoading +extension NSURLConnectionQueuedLoading on NSURLConnection { + /// sendAsynchronousRequest:queue:completionHandler: + @Deprecated( + 'Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h', + ) + static void sendAsynchronousRequest( + NSURLRequest request, { + required NSOperationQueue queue, + required objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = request.ref; + final _$$ref$1 = queue.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLConnection.sendAsynchronousRequest:queue:completionHandler:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_18qun1e( + _class_NSURLConnection, + _sel_sendAsynchronousRequest_queue_completionHandler_, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSURLConnectionSynchronousLoading +extension NSURLConnectionSynchronousLoading on NSURLConnection { + /// sendSynchronousRequest:returningResponse:error: + @Deprecated( + 'Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h', + ) + static objc.NSData? sendSynchronousRequest( + NSURLRequest request, { + required ffi.Pointer> returningResponse, + }) { + final _$$ref = request.ref; + objc.checkOsVersionInternal( + 'NSURLConnection.sendSynchronousRequest:returningResponse:error:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 3, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_b99g2z( + _class_NSURLConnection, + _sel_sendSynchronousRequest_returningResponse_error_, + _$$ref.pointer, + returningResponse, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + +/// WARNING: NSURLCredential is a stub. To generate bindings for this class, include +/// NSURLCredential in your config's objc-interfaces list. +/// +/// NSURLCredential +extension type NSURLCredential._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSURLCredential] that points to the same underlying object as [other]. + NSURLCredential.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLCredential', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLCredential] that wraps the given raw object pointer. + NSURLCredential.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLCredential', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +enum NSURLCredentialPersistence { + NSURLCredentialPersistenceNone(0), + NSURLCredentialPersistenceForSession(1), + NSURLCredentialPersistencePermanent(2), + NSURLCredentialPersistenceSynchronizable(3); + + final int value; + const NSURLCredentialPersistence(this.value); + + static NSURLCredentialPersistence fromValue(int value) => switch (value) { + 0 => NSURLCredentialPersistenceNone, + 1 => NSURLCredentialPersistenceForSession, + 2 => NSURLCredentialPersistencePermanent, + 3 => NSURLCredentialPersistenceSynchronizable, + _ => throw ArgumentError( + 'Unknown value for NSURLCredentialPersistence: $value', + ), + }; +} + +/// WARNING: NSURLCredentialStorage is a stub. To generate bindings for this class, include +/// NSURLCredentialStorage in your config's objc-interfaces list. +/// +/// NSURLCredentialStorage +extension type NSURLCredentialStorage._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLCredentialStorage] that points to the same underlying object as [other]. + NSURLCredentialStorage.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLCredentialStorage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLCredentialStorage] that wraps the given raw object pointer. + NSURLCredentialStorage.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLCredentialStorage', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// WARNING: NSURLDownload is a stub. To generate bindings for this class, include +/// NSURLDownload in your config's objc-interfaces list. +/// +/// NSURLDownload +extension type NSURLDownload._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLDownload] that points to the same underlying object as [other]. + NSURLDownload.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLDownload', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLDownload] that wraps the given raw object pointer. + NSURLDownload.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLDownload', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// NSURLDownloadDelegate +extension type NSURLDownloadDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSURLDownloadDelegate] that points to the same underlying object as [other]. + NSURLDownloadDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLDownloadDelegate] that wraps the given raw object pointer. + NSURLDownloadDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLDownloadDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLDownloadDelegate, + ); + } +} + +extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { + /// download:canAuthenticateAgainstProtectionSpace: + bool download( + NSURLDownload connection, { + required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = connection.ref; + final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:canAuthenticateAgainstProtectionSpace:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_canAuthenticateAgainstProtectionSpace_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:canAuthenticateAgainstProtectionSpace:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_download_canAuthenticateAgainstProtectionSpace_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:decideDestinationWithSuggestedFilename: + void download$1( + NSURLDownload download, { + required objc.NSString decideDestinationWithSuggestedFilename, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = decideDestinationWithSuggestedFilename.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:decideDestinationWithSuggestedFilename:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_decideDestinationWithSuggestedFilename_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:decideDestinationWithSuggestedFilename:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_decideDestinationWithSuggestedFilename_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:didCancelAuthenticationChallenge: + void download$2( + NSURLDownload download, { + required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = didCancelAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didCancelAuthenticationChallenge:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didCancelAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didCancelAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_didCancelAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:didCreateDestination: + void download$3( + NSURLDownload download, { + required objc.NSString didCreateDestination, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = didCreateDestination.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didCreateDestination:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didCreateDestination_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didCreateDestination:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_didCreateDestination_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:didFailWithError: + void download$4( + NSURLDownload download, { + required objc.NSError didFailWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = didFailWithError.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didFailWithError:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didFailWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didFailWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_didFailWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:didReceiveAuthenticationChallenge: + void download$5( + NSURLDownload download, { + required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = didReceiveAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didReceiveAuthenticationChallenge:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didReceiveAuthenticationChallenge_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didReceiveAuthenticationChallenge:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_didReceiveAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:didReceiveDataOfLength: + void download$6( + NSURLDownload download, { + required DartNSUInteger didReceiveDataOfLength, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didReceiveDataOfLength:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didReceiveDataOfLength_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didReceiveDataOfLength:', + ); + } + _objc_msgSend_djsa9o( + _$$ref.pointer, + _sel_download_didReceiveDataOfLength_, + _$$ref$1.pointer, + didReceiveDataOfLength, + ); + } + + /// download:didReceiveResponse: + void download$7( + NSURLDownload download, { + required NSURLResponse didReceiveResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = didReceiveResponse.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:didReceiveResponse:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_didReceiveResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:didReceiveResponse:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_download_didReceiveResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:shouldDecodeSourceDataOfMIMEType: + bool download$8( + NSURLDownload download, { + required objc.NSString shouldDecodeSourceDataOfMIMEType, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = shouldDecodeSourceDataOfMIMEType.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:shouldDecodeSourceDataOfMIMEType:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_shouldDecodeSourceDataOfMIMEType_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:shouldDecodeSourceDataOfMIMEType:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_download_shouldDecodeSourceDataOfMIMEType_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// download:willResumeWithResponse:fromByte: + void download$9( + NSURLDownload download, { + required NSURLResponse willResumeWithResponse, + required int fromByte, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = willResumeWithResponse.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:willResumeWithResponse:fromByte:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_willResumeWithResponse_fromByte_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:willResumeWithResponse:fromByte:', + ); + } + _objc_msgSend_wp1dbz( + _$$ref.pointer, + _sel_download_willResumeWithResponse_fromByte_, + _$$ref$1.pointer, + _$$ref$2.pointer, + fromByte, + ); + } + + /// download:willSendRequest:redirectResponse: + NSURLRequest? download$10( + NSURLDownload download, { + required NSURLRequest willSendRequest, + NSURLResponse? redirectResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + final _$$ref$2 = willSendRequest.ref; + final _$$ref$3 = redirectResponse?.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.download:willSendRequest:redirectResponse:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_download_willSendRequest_redirectResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'download:willSendRequest:redirectResponse:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_download_willSendRequest_redirectResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : NSURLRequest.fromPointer($ret, retain: true, release: true); + } + + /// downloadDidBegin: + void downloadDidBegin(NSURLDownload download) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.downloadDidBegin:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_downloadDidBegin_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'downloadDidBegin:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_downloadDidBegin_, + _$$ref$1.pointer, + ); + } + + /// downloadDidFinish: + void downloadDidFinish(NSURLDownload download) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.downloadDidFinish:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_downloadDidFinish_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'downloadDidFinish:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_downloadDidFinish_, + _$$ref$1.pointer, + ); + } + + /// downloadShouldUseCredentialStorage: + bool downloadShouldUseCredentialStorage(NSURLDownload download) { + final _$$ref = object$.ref; + final _$$ref$1 = download.ref; + objc.checkOsVersionInternal( + 'NSURLDownloadDelegate.downloadShouldUseCredentialStorage:', + iOS: (true, null), + macOS: (false, (10, 2, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_downloadShouldUseCredentialStorage_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLDownloadDelegate', + 'downloadShouldUseCredentialStorage:', + ); + } + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_downloadShouldUseCredentialStorage_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLDownloadDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLDownloadDelegate.cast()); + + /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLDownloadDelegate implement({ + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLDownloadDelegate', + ); + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implement(builder, download_decideDestinationWithSuggestedFilename_); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implement(builder, download_didCancelAuthenticationChallenge_); + NSURLDownloadDelegate$Builder.download_didCreateDestination_.implement( + builder, + download_didCreateDestination_, + ); + NSURLDownloadDelegate$Builder.download_didFailWithError_.implement( + builder, + download_didFailWithError_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implement(builder, download_didReceiveAuthenticationChallenge_); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_.implement( + builder, + download_didReceiveDataOfLength_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_.implement( + builder, + download_didReceiveResponse_, + ); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implement(builder, download_willResumeWithResponse_fromByte_); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implement( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implement( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + return NSURLDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implement(builder, download_decideDestinationWithSuggestedFilename_); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implement(builder, download_didCancelAuthenticationChallenge_); + NSURLDownloadDelegate$Builder.download_didCreateDestination_.implement( + builder, + download_didCreateDestination_, + ); + NSURLDownloadDelegate$Builder.download_didFailWithError_.implement( + builder, + download_didFailWithError_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implement(builder, download_didReceiveAuthenticationChallenge_); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_.implement( + builder, + download_didReceiveDataOfLength_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_.implement( + builder, + download_didReceiveResponse_, + ); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implement(builder, download_willResumeWithResponse_fromByte_); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implement( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implement( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLDownloadDelegate implementAsListener({ + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLDownloadDelegate', + ); + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implementAsListener( + builder, + download_decideDestinationWithSuggestedFilename_, + ); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + download_didCancelAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didCreateDestination_ + .implementAsListener(builder, download_didCreateDestination_); + NSURLDownloadDelegate$Builder.download_didFailWithError_ + .implementAsListener(builder, download_didFailWithError_); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + download_didReceiveAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ + .implementAsListener(builder, download_didReceiveDataOfLength_); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_ + .implementAsListener(builder, download_didReceiveResponse_); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implementAsListener( + builder, + download_willResumeWithResponse_fromByte_, + ); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsListener( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsListener( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + return NSURLDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implementAsListener( + builder, + download_decideDestinationWithSuggestedFilename_, + ); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implementAsListener( + builder, + download_didCancelAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didCreateDestination_ + .implementAsListener(builder, download_didCreateDestination_); + NSURLDownloadDelegate$Builder.download_didFailWithError_ + .implementAsListener(builder, download_didFailWithError_); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implementAsListener( + builder, + download_didReceiveAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ + .implementAsListener(builder, download_didReceiveDataOfLength_); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_ + .implementAsListener(builder, download_didReceiveResponse_); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implementAsListener( + builder, + download_willResumeWithResponse_fromByte_, + ); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsListener( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsListener( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLDownloadDelegate implementAsBlocking({ + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLDownloadDelegate', + ); + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implementAsBlocking( + builder, + download_decideDestinationWithSuggestedFilename_, + ); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + download_didCancelAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didCreateDestination_ + .implementAsBlocking(builder, download_didCreateDestination_); + NSURLDownloadDelegate$Builder.download_didFailWithError_ + .implementAsBlocking(builder, download_didFailWithError_); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + download_didReceiveAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ + .implementAsBlocking(builder, download_didReceiveDataOfLength_); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_ + .implementAsBlocking(builder, download_didReceiveResponse_); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implementAsBlocking( + builder, + download_willResumeWithResponse_fromByte_, + ); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsBlocking( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsBlocking( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + return NSURLDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + bool Function(NSURLDownload, NSURLProtectionSpace)? + download_canAuthenticateAgainstProtectionSpace_, + void Function(NSURLDownload, objc.NSString)? + download_decideDestinationWithSuggestedFilename_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didCancelAuthenticationChallenge_, + void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, + void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, + void Function(NSURLDownload, NSURLAuthenticationChallenge)? + download_didReceiveAuthenticationChallenge_, + void Function(NSURLDownload, DartNSUInteger)? + download_didReceiveDataOfLength_, + void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, + bool Function(NSURLDownload, objc.NSString)? + download_shouldDecodeSourceDataOfMIMEType_, + void Function(NSURLDownload, NSURLResponse, int)? + download_willResumeWithResponse_fromByte_, + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? + download_willSendRequest_redirectResponse_, + void Function(NSURLDownload)? downloadDidBegin_, + void Function(NSURLDownload)? downloadDidFinish_, + bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, + bool $keepIsolateAlive = true, + }) { + NSURLDownloadDelegate$Builder + .download_canAuthenticateAgainstProtectionSpace_ + .implement(builder, download_canAuthenticateAgainstProtectionSpace_); + NSURLDownloadDelegate$Builder + .download_decideDestinationWithSuggestedFilename_ + .implementAsBlocking( + builder, + download_decideDestinationWithSuggestedFilename_, + ); + NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ + .implementAsBlocking( + builder, + download_didCancelAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didCreateDestination_ + .implementAsBlocking(builder, download_didCreateDestination_); + NSURLDownloadDelegate$Builder.download_didFailWithError_ + .implementAsBlocking(builder, download_didFailWithError_); + NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ + .implementAsBlocking( + builder, + download_didReceiveAuthenticationChallenge_, + ); + NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ + .implementAsBlocking(builder, download_didReceiveDataOfLength_); + NSURLDownloadDelegate$Builder.download_didReceiveResponse_ + .implementAsBlocking(builder, download_didReceiveResponse_); + NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ + .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); + NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ + .implementAsBlocking( + builder, + download_willResumeWithResponse_fromByte_, + ); + NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ + .implement(builder, download_willSendRequest_redirectResponse_); + NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsBlocking( + builder, + downloadDidBegin_, + ); + NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsBlocking( + builder, + downloadDidFinish_, + ); + NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( + builder, + downloadShouldUseCredentialStorage_, + ); + builder.addProtocol($protocol); + } + + /// download:canAuthenticateAgainstProtectionSpace: + static final download_canAuthenticateAgainstProtectionSpace_ = + objc.ObjCProtocolMethod< + bool Function(NSURLDownload, NSURLProtectionSpace) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_canAuthenticateAgainstProtectionSpace_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_canAuthenticateAgainstProtectionSpace_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLDownload, NSURLProtectionSpace) func) => + ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLProtectionSpace arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:decideDestinationWithSuggestedFilename: + static final download_decideDestinationWithSuggestedFilename_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, objc.NSString) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_decideDestinationWithSuggestedFilename_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_decideDestinationWithSuggestedFilename_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didCancelAuthenticationChallenge: + static final download_didCancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, NSURLAuthenticationChallenge) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didCancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didCancelAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didCreateDestination: + static final download_didCreateDestination_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, objc.NSString) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didCreateDestination_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didCreateDestination_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didFailWithError: + static final download_didFailWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, objc.NSError) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didFailWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didFailWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didReceiveAuthenticationChallenge: + static final download_didReceiveAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, NSURLAuthenticationChallenge) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveAuthenticationChallenge_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didReceiveDataOfLength: + static final download_didReceiveDataOfLength_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, DartNSUInteger) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveDataOfLength_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >(_1uu024u_protocolTrampoline_wy9lus) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveDataOfLength_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + DartNSUInteger arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + DartNSUInteger arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, DartNSUInteger) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + DartNSUInteger arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:didReceiveResponse: + static final download_didReceiveResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, NSURLResponse) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_didReceiveResponse_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLDownload, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:shouldDecodeSourceDataOfMIMEType: + static final download_shouldDecodeSourceDataOfMIMEType_ = + objc.ObjCProtocolMethod( + _protocol_NSURLDownloadDelegate, + _sel_download_shouldDecodeSourceDataOfMIMEType_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_shouldDecodeSourceDataOfMIMEType_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLDownload, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSURLDownload_NSString.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// download:willResumeWithResponse:fromByte: + static final download_willResumeWithResponse_fromByte_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLDownload, NSURLResponse, int) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_willResumeWithResponse_fromByte_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + > + >(_1uu024u_protocolTrampoline_34xzuf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_willResumeWithResponse_fromByte_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload, NSURLResponse, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLDownload, NSURLResponse, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.listener( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLDownload, NSURLResponse, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.blocking( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLResponse arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// download:willSendRequest:redirectResponse: + static final download_willSendRequest_redirectResponse_ = + objc.ObjCProtocolMethod< + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?) + >( + _protocol_NSURLDownloadDelegate, + _sel_download_willSendRequest_redirectResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_download_willSendRequest_redirectResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?) + func, + ) => + ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLDownload arg1, + NSURLRequest arg2, + NSURLResponse? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// downloadDidBegin: + static final downloadDidBegin_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLDownloadDelegate, + _sel_downloadDidBegin_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_downloadDidBegin_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.fromFunction( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.listener( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.blocking( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + ); + + /// downloadDidFinish: + static final downloadDidFinish_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLDownloadDelegate, + _sel_downloadDidFinish_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_downloadDidFinish_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.fromFunction( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.listener( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + (void Function(NSURLDownload) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.blocking( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + ); + + /// downloadShouldUseCredentialStorage: + static final downloadShouldUseCredentialStorage_ = + objc.ObjCProtocolMethod( + _protocol_NSURLDownloadDelegate, + _sel_downloadShouldUseCredentialStorage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLDownloadDelegate, + _sel_downloadShouldUseCredentialStorage_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSURLDownload) func) => + ObjCBlock_bool_ffiVoid_NSURLDownload.fromFunction( + (ffi.Pointer _, NSURLDownload arg1) => func(arg1), + ), + ); +} + +const int NSURLErrorAppTransportSecurityRequiresSecureConnection = -1022; + +const int NSURLErrorBackgroundSessionInUseByAnotherProcess = -996; + +const int NSURLErrorBackgroundSessionRequiresSharedContainer = -995; + +const int NSURLErrorBackgroundSessionWasDisconnected = -997; + +const int NSURLErrorBadServerResponse = -1011; + +const int NSURLErrorBadURL = -1000; + +const int NSURLErrorCallIsActive = -1019; + +const int NSURLErrorCancelled = -999; + +const int NSURLErrorCancelledReasonBackgroundUpdatesDisabled = 1; + +const int NSURLErrorCancelledReasonInsufficientSystemResources = 2; + +const int NSURLErrorCancelledReasonUserForceQuitApplication = 0; + +const int NSURLErrorCannotCloseFile = -3002; + +const int NSURLErrorCannotConnectToHost = -1004; + +const int NSURLErrorCannotCreateFile = -3000; + +const int NSURLErrorCannotDecodeContentData = -1016; + +const int NSURLErrorCannotDecodeRawData = -1015; + +const int NSURLErrorCannotFindHost = -1003; + +const int NSURLErrorCannotLoadFromNetwork = -2000; + +const int NSURLErrorCannotMoveFile = -3005; + +const int NSURLErrorCannotOpenFile = -3001; + +const int NSURLErrorCannotParseResponse = -1017; + +const int NSURLErrorCannotRemoveFile = -3004; + +const int NSURLErrorCannotWriteToFile = -3003; + +const int NSURLErrorClientCertificateRejected = -1205; + +const int NSURLErrorClientCertificateRequired = -1206; + +const int NSURLErrorDNSLookupFailed = -1006; + +const int NSURLErrorDataLengthExceedsMaximum = -1103; + +const int NSURLErrorDataNotAllowed = -1020; + +const int NSURLErrorDownloadDecodingFailedMidStream = -3006; + +const int NSURLErrorDownloadDecodingFailedToComplete = -3007; + +const int NSURLErrorFileDoesNotExist = -1100; + +const int NSURLErrorFileIsDirectory = -1101; + +const int NSURLErrorFileOutsideSafeArea = -1104; + +const int NSURLErrorHTTPTooManyRedirects = -1007; + +const int NSURLErrorInternationalRoamingOff = -1018; + +const int NSURLErrorNetworkConnectionLost = -1005; + +enum NSURLErrorNetworkUnavailableReason { + NSURLErrorNetworkUnavailableReasonCellular(0), + NSURLErrorNetworkUnavailableReasonExpensive(1), + NSURLErrorNetworkUnavailableReasonConstrained(2); + + final int value; + const NSURLErrorNetworkUnavailableReason(this.value); + + static NSURLErrorNetworkUnavailableReason fromValue(int value) => + switch (value) { + 0 => NSURLErrorNetworkUnavailableReasonCellular, + 1 => NSURLErrorNetworkUnavailableReasonExpensive, + 2 => NSURLErrorNetworkUnavailableReasonConstrained, + _ => throw ArgumentError( + 'Unknown value for NSURLErrorNetworkUnavailableReason: $value', + ), + }; +} + +const int NSURLErrorNoPermissionsToReadFile = -1102; + +const int NSURLErrorNotConnectedToInternet = -1009; + +const int NSURLErrorRedirectToNonExistentLocation = -1010; + +const int NSURLErrorRequestBodyStreamExhausted = -1021; + +const int NSURLErrorResourceUnavailable = -1008; + +const int NSURLErrorSecureConnectionFailed = -1200; + +const int NSURLErrorServerCertificateHasBadDate = -1201; + +const int NSURLErrorServerCertificateHasUnknownRoot = -1203; + +const int NSURLErrorServerCertificateNotYetValid = -1204; + +const int NSURLErrorServerCertificateUntrusted = -1202; + +const int NSURLErrorTimedOut = -1001; + +const int NSURLErrorUnknown = -1; + +const int NSURLErrorUnsupportedURL = -1002; + +const int NSURLErrorUserAuthenticationRequired = -1013; + +const int NSURLErrorUserCancelledAuthentication = -1012; + +const int NSURLErrorZeroByteResource = -1014; + +typedef NSURLFileProtectionType = ffi.Pointer; +typedef DartNSURLFileProtectionType = objc.NSString; +typedef NSURLFileResourceType = ffi.Pointer; +typedef DartNSURLFileResourceType = objc.NSString; + +/// NSURLHandleClient +@Deprecated('Deprecated') +extension type NSURLHandleClient._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSURLHandleClient] that points to the same underlying object as [other]. + NSURLHandleClient.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLHandleClient] that wraps the given raw object pointer. + NSURLHandleClient.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLHandleClient]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLHandleClient, + ); + } +} + +extension NSURLHandleClient$Methods on NSURLHandleClient { + /// URLHandle:resourceDataDidBecomeAvailable: + @Deprecated('Deprecated') + void URLHandle( + objc.NSURLHandle sender, { + required objc.NSData resourceDataDidBecomeAvailable, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = resourceDataDidBecomeAvailable.ref; + objc.checkOsVersionInternal( + 'NSURLHandleClient.URLHandle:resourceDataDidBecomeAvailable:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLHandle_resourceDataDidBecomeAvailable_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLHandle:resourceDidFailLoadingWithReason: + @Deprecated('Deprecated') + void URLHandle$1( + objc.NSURLHandle sender, { + required objc.NSString resourceDidFailLoadingWithReason, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + final _$$ref$2 = resourceDidFailLoadingWithReason.ref; + objc.checkOsVersionInternal( + 'NSURLHandleClient.URLHandle:resourceDidFailLoadingWithReason:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLHandle_resourceDidFailLoadingWithReason_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLHandleResourceDidBeginLoading: + @Deprecated('Deprecated') + void URLHandleResourceDidBeginLoading(objc.NSURLHandle sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSURLHandleClient.URLHandleResourceDidBeginLoading:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLHandleResourceDidBeginLoading_, + _$$ref$1.pointer, + ); + } + + /// URLHandleResourceDidCancelLoading: + @Deprecated('Deprecated') + void URLHandleResourceDidCancelLoading(objc.NSURLHandle sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSURLHandleClient.URLHandleResourceDidCancelLoading:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLHandleResourceDidCancelLoading_, + _$$ref$1.pointer, + ); + } + + /// URLHandleResourceDidFinishLoading: + @Deprecated('Deprecated') + void URLHandleResourceDidFinishLoading(objc.NSURLHandle sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender.ref; + objc.checkOsVersionInternal( + 'NSURLHandleClient.URLHandleResourceDidFinishLoading:', + iOS: (true, null), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLHandleResourceDidFinishLoading_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLHandleClient$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLHandleClient.cast()); + + /// Builds an object that implements the NSURLHandleClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLHandleClient implement({ + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implement( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implement( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidBeginLoading_.implement( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidCancelLoading_.implement( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidFinishLoading_.implement( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLHandleClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLHandleClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implement( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implement( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidBeginLoading_.implement( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidCancelLoading_.implement( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder.URLHandleResourceDidFinishLoading_.implement( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLHandleClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLHandleClient implementAsListener({ + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implementAsListener( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implementAsListener( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidBeginLoading_.implementAsListener( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidCancelLoading_.implementAsListener( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidFinishLoading_.implementAsListener( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLHandleClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLHandleClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implementAsListener( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implementAsListener( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidBeginLoading_.implementAsListener( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidCancelLoading_.implementAsListener( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidFinishLoading_.implementAsListener( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLHandleClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLHandleClient implementAsBlocking({ + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implementAsBlocking( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implementAsBlocking( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidBeginLoading_.implementAsBlocking( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidCancelLoading_.implementAsBlocking( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidFinishLoading_.implementAsBlocking( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLHandleClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLHandleClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSURLHandle, objc.NSData) + URLHandle_resourceDataDidBecomeAvailable_, + required void Function(objc.NSURLHandle, objc.NSString) + URLHandle_resourceDidFailLoadingWithReason_, + required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, + required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLHandleClient$Builder + .URLHandle_resourceDataDidBecomeAvailable_.implementAsBlocking( + builder, + URLHandle_resourceDataDidBecomeAvailable_, + ); + NSURLHandleClient$Builder + .URLHandle_resourceDidFailLoadingWithReason_.implementAsBlocking( + builder, + URLHandle_resourceDidFailLoadingWithReason_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidBeginLoading_.implementAsBlocking( + builder, + URLHandleResourceDidBeginLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidCancelLoading_.implementAsBlocking( + builder, + URLHandleResourceDidCancelLoading_, + ); + NSURLHandleClient$Builder + .URLHandleResourceDidFinishLoading_.implementAsBlocking( + builder, + URLHandleResourceDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// URLHandle:resourceDataDidBecomeAvailable: + static final URLHandle_resourceDataDidBecomeAvailable_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSURLHandle, objc.NSData) + >( + _protocol_NSURLHandleClient, + _sel_URLHandle_resourceDataDidBecomeAvailable_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLHandleClient, + _sel_URLHandle_resourceDataDidBecomeAvailable_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSURLHandle, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.fromFunction( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSURLHandle, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.listener( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSURLHandle, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.blocking( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSData arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLHandle:resourceDidFailLoadingWithReason: + static final URLHandle_resourceDidFailLoadingWithReason_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSURLHandle, objc.NSString) + >( + _protocol_NSURLHandleClient, + _sel_URLHandle_resourceDidFailLoadingWithReason_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLHandleClient, + _sel_URLHandle_resourceDidFailLoadingWithReason_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSURLHandle, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.fromFunction( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSURLHandle, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.listener( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSURLHandle, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.blocking( + ( + ffi.Pointer _, + objc.NSURLHandle arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLHandleResourceDidBeginLoading: + static final URLHandleResourceDidBeginLoading_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidBeginLoading_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidBeginLoading_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + ); + + /// URLHandleResourceDidCancelLoading: + static final URLHandleResourceDidCancelLoading_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidCancelLoading_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidCancelLoading_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + ); + + /// URLHandleResourceDidFinishLoading: + static final URLHandleResourceDidFinishLoading_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidFinishLoading_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLHandleClient, + _sel_URLHandleResourceDidFinishLoading_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + (void Function(objc.NSURLHandle) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( + (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), + ), + ); +} + +/// NSURLLoading +extension NSURLLoading on objc.NSURL { + /// URLHandleUsingCache: + @Deprecated('Use NSURLConnection instead') + objc.NSURLHandle? URLHandleUsingCache(bool shouldUseCache) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLHandleUsingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1t6aok9( + _$$ref.pointer, + _sel_URLHandleUsingCache_, + shouldUseCache, + ); + return $ret.address == 0 + ? null + : objc.NSURLHandle.fromPointer($ret, retain: true, release: true); + } + + /// loadResourceDataNotifyingClient:usingCache: + @Deprecated('Use NSURLConnection instead') + void loadResourceDataNotifyingClient( + objc.ObjCObject client, { + required bool usingCache, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = client.ref; + objc.checkOsVersionInternal( + 'NSURL.loadResourceDataNotifyingClient:usingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_6p7ndb( + _$$ref.pointer, + _sel_loadResourceDataNotifyingClient_usingCache_, + _$$ref$1.pointer, + usingCache, + ); + } + + /// propertyForKey: + @Deprecated('Use NSURLConnection instead') + objc.ObjCObject? propertyForKey(objc.NSString propertyKey) { + final _$$ref = object$.ref; + final _$$ref$1 = propertyKey.ref; + objc.checkOsVersionInternal( + 'NSURL.propertyForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_propertyForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// resourceDataUsingCache: + @Deprecated('Use NSURLConnection instead') + objc.NSData? resourceDataUsingCache(bool shouldUseCache) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.resourceDataUsingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1t6aok9( + _$$ref.pointer, + _sel_resourceDataUsingCache_, + shouldUseCache, + ); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// setProperty:forKey: + @Deprecated('Use NSURLConnection instead') + bool setProperty(objc.ObjCObject property, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = property.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSURL.setProperty:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_setProperty_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// setResourceData: + @Deprecated('Use NSURLConnection instead') + bool setResourceData(objc.NSData data) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + objc.checkOsVersionInternal( + 'NSURL.setResourceData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_setResourceData_, + _$$ref$1.pointer, + ); + } +} + +/// NSURLPathUtilities +extension NSURLPathUtilities on objc.NSURL { + /// URLByAppendingPathComponent: + objc.NSURL? URLByAppendingPathComponent(objc.NSString pathComponent) { + final _$$ref = object$.ref; + final _$$ref$1 = pathComponent.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathComponent:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_URLByAppendingPathComponent_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByAppendingPathComponent:isDirectory: + objc.NSURL? URLByAppendingPathComponent$1( + objc.NSString pathComponent, { + required bool isDirectory, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = pathComponent.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathComponent:isDirectory:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.pointer, + _sel_URLByAppendingPathComponent_isDirectory_, + _$$ref$1.pointer, + isDirectory, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByAppendingPathExtension: + objc.NSURL? URLByAppendingPathExtension(objc.NSString pathExtension) { + final _$$ref = object$.ref; + final _$$ref$1 = pathExtension.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathExtension:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_URLByAppendingPathExtension_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByDeletingLastPathComponent + objc.NSURL? get URLByDeletingLastPathComponent { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByDeletingLastPathComponent', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByDeletingLastPathComponent, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByDeletingPathExtension + objc.NSURL? get URLByDeletingPathExtension { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByDeletingPathExtension', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByDeletingPathExtension, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByResolvingSymlinksInPath + objc.NSURL? get URLByResolvingSymlinksInPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByResolvingSymlinksInPath', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByResolvingSymlinksInPath, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByStandardizingPath + objc.NSURL? get URLByStandardizingPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByStandardizingPath', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByStandardizingPath, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// checkResourceIsReachableAndReturnError: + bool checkResourceIsReachableAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.checkResourceIsReachableAndReturnError:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_checkResourceIsReachableAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// lastPathComponent + objc.NSString? get lastPathComponent { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.lastPathComponent', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// pathComponents + objc.NSArray? get pathComponents { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.pathComponents', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// pathExtension + objc.NSString? get pathExtension { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.pathExtension', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// fileURLWithPathComponents: + static objc.NSURL? fileURLWithPathComponents(objc.NSArray components) { + final _$$ref = components.ref; + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPathComponents:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSURL, + _sel_fileURLWithPathComponents_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSURLProtectionSpace is a stub. To generate bindings for this class, include +/// NSURLProtectionSpace in your config's objc-interfaces list. +/// +/// NSURLProtectionSpace +extension type NSURLProtectionSpace._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSURLProtectionSpace] that points to the same underlying object as [other]. + NSURLProtectionSpace.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLProtectionSpace', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLProtectionSpace] that wraps the given raw object pointer. + NSURLProtectionSpace.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLProtectionSpace', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// WARNING: NSURLProtocol is a stub. To generate bindings for this class, include +/// NSURLProtocol in your config's objc-interfaces list. +/// +/// NSURLProtocol +extension type NSURLProtocol._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLProtocol] that points to the same underlying object as [other]. + NSURLProtocol.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLProtocol', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLProtocol] that wraps the given raw object pointer. + NSURLProtocol.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLProtocol', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// NSURLProtocolClient +extension type NSURLProtocolClient._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSURLProtocolClient] that points to the same underlying object as [other]. + NSURLProtocolClient.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLProtocolClient] that wraps the given raw object pointer. + NSURLProtocolClient.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLProtocolClient]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLProtocolClient, + ); + } +} + +extension NSURLProtocolClient$Methods on NSURLProtocolClient { + /// URLProtocol:cachedResponseIsValid: + void URLProtocol( + NSURLProtocol protocol, { + required NSCachedURLResponse cachedResponseIsValid, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = cachedResponseIsValid.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:cachedResponseIsValid:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLProtocol_cachedResponseIsValid_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLProtocol:didCancelAuthenticationChallenge: + void URLProtocol$1( + NSURLProtocol protocol, { + required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = didCancelAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:didCancelAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLProtocol_didCancelAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLProtocol:didFailWithError: + void URLProtocol$2( + NSURLProtocol protocol, { + required objc.NSError didFailWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = didFailWithError.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:didFailWithError:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLProtocol_didFailWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLProtocol:didLoadData: + void URLProtocol$3( + NSURLProtocol protocol, { + required objc.NSData didLoadData, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = didLoadData.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:didLoadData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLProtocol_didLoadData_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLProtocol:didReceiveAuthenticationChallenge: + void URLProtocol$4( + NSURLProtocol protocol, { + required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = didReceiveAuthenticationChallenge.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:didReceiveAuthenticationChallenge:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLProtocol_didReceiveAuthenticationChallenge_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLProtocol:didReceiveResponse:cacheStoragePolicy: + void URLProtocol$5( + NSURLProtocol protocol, { + required NSURLResponse didReceiveResponse, + required NSURLCacheStoragePolicy cacheStoragePolicy, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = didReceiveResponse.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:didReceiveResponse:cacheStoragePolicy:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_1mik4ys( + _$$ref.pointer, + _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, + _$$ref$1.pointer, + _$$ref$2.pointer, + cacheStoragePolicy.value, + ); + } + + /// URLProtocol:wasRedirectedToRequest:redirectResponse: + void URLProtocol$6( + NSURLProtocol protocol, { + required NSURLRequest wasRedirectedToRequest, + required NSURLResponse redirectResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + final _$$ref$2 = wasRedirectedToRequest.ref; + final _$$ref$3 = redirectResponse.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocol:wasRedirectedToRequest:redirectResponse:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLProtocolDidFinishLoading: + void URLProtocolDidFinishLoading(NSURLProtocol protocol) { + final _$$ref = object$.ref; + final _$$ref$1 = protocol.ref; + objc.checkOsVersionInternal( + 'NSURLProtocolClient.URLProtocolDidFinishLoading:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLProtocolDidFinishLoading_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLProtocolClient$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLProtocolClient.cast()); + + /// Builds an object that implements the NSURLProtocolClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLProtocolClient implement({ + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); + NSURLProtocolClient$Builder.URLProtocol_cachedResponseIsValid_.implement( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implement( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder.URLProtocol_didFailWithError_.implement( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implement( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implement( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implement( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implement( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder.URLProtocolDidFinishLoading_.implement( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLProtocolClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLProtocolClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLProtocolClient$Builder.URLProtocol_cachedResponseIsValid_.implement( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implement( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder.URLProtocol_didFailWithError_.implement( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implement( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implement( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implement( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implement( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder.URLProtocolDidFinishLoading_.implement( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLProtocolClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLProtocolClient implementAsListener({ + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); + NSURLProtocolClient$Builder + .URLProtocol_cachedResponseIsValid_.implementAsListener( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implementAsListener( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didFailWithError_.implementAsListener( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsListener( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implementAsListener( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsListener( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsListener( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder + .URLProtocolDidFinishLoading_.implementAsListener( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLProtocolClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLProtocolClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLProtocolClient$Builder + .URLProtocol_cachedResponseIsValid_.implementAsListener( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implementAsListener( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didFailWithError_.implementAsListener( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsListener( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implementAsListener( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsListener( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsListener( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder + .URLProtocolDidFinishLoading_.implementAsListener( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLProtocolClient protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLProtocolClient implementAsBlocking({ + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); + NSURLProtocolClient$Builder + .URLProtocol_cachedResponseIsValid_.implementAsBlocking( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implementAsBlocking( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didFailWithError_.implementAsBlocking( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsBlocking( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implementAsBlocking( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsBlocking( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsBlocking( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder + .URLProtocolDidFinishLoading_.implementAsBlocking( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + return NSURLProtocolClient.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLProtocolClient protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSURLProtocol, NSCachedURLResponse) + URLProtocol_cachedResponseIsValid_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didCancelAuthenticationChallenge_, + required void Function(NSURLProtocol, objc.NSError) + URLProtocol_didFailWithError_, + required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, + required void Function(NSURLProtocol, NSURLAuthenticationChallenge) + URLProtocol_didReceiveAuthenticationChallenge_, + required void Function( + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + URLProtocol_wasRedirectedToRequest_redirectResponse_, + required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, + bool $keepIsolateAlive = true, + }) { + NSURLProtocolClient$Builder + .URLProtocol_cachedResponseIsValid_.implementAsBlocking( + builder, + URLProtocol_cachedResponseIsValid_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didCancelAuthenticationChallenge_.implementAsBlocking( + builder, + URLProtocol_didCancelAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didFailWithError_.implementAsBlocking( + builder, + URLProtocol_didFailWithError_, + ); + NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsBlocking( + builder, + URLProtocol_didLoadData_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveAuthenticationChallenge_.implementAsBlocking( + builder, + URLProtocol_didReceiveAuthenticationChallenge_, + ); + NSURLProtocolClient$Builder + .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsBlocking( + builder, + URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ); + NSURLProtocolClient$Builder + .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsBlocking( + builder, + URLProtocol_wasRedirectedToRequest_redirectResponse_, + ); + NSURLProtocolClient$Builder + .URLProtocolDidFinishLoading_.implementAsBlocking( + builder, + URLProtocolDidFinishLoading_, + ); + builder.addProtocol($protocol); + } + + /// URLProtocol:cachedResponseIsValid: + static final URLProtocol_cachedResponseIsValid_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, NSCachedURLResponse) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_cachedResponseIsValid_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_cachedResponseIsValid_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, NSCachedURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSCachedURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSCachedURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSCachedURLResponse arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSCachedURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSCachedURLResponse arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLProtocol:didCancelAuthenticationChallenge: + static final URLProtocol_didCancelAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, NSURLAuthenticationChallenge) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didCancelAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didCancelAuthenticationChallenge_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLProtocol:didFailWithError: + static final URLProtocol_didFailWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, objc.NSError) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didFailWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didFailWithError_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + objc.NSError arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLProtocol:didLoadData: + static final URLProtocol_didLoadData_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, objc.NSData) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didLoadData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didLoadData_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.fromFunction( + (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSURLProtocol, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.listener( + (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSURLProtocol, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.blocking( + (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + ); + + /// URLProtocol:didReceiveAuthenticationChallenge: + static final URLProtocol_didReceiveAuthenticationChallenge_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, NSURLAuthenticationChallenge) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didReceiveAuthenticationChallenge_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didReceiveAuthenticationChallenge_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLProtocol:didReceiveResponse:cacheStoragePolicy: + static final URLProtocol_didReceiveResponse_cacheStoragePolicy_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >(_1uu024u_protocolTrampoline_1j7coyk) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, + isRequired: true, + isInstanceMethod: true, + ), + ( + void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLResponse arg2, + NSURLCacheStoragePolicy arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLResponse arg2, + NSURLCacheStoragePolicy arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLResponse arg2, + NSURLCacheStoragePolicy arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLProtocol:wasRedirectedToRequest:redirectResponse: + static final URLProtocol_wasRedirectedToRequest_redirectResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLProtocol, NSURLRequest, NSURLResponse) + >( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLRequest arg2, + NSURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.listener( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLRequest arg2, + NSURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.blocking( + ( + ffi.Pointer _, + NSURLProtocol arg1, + NSURLRequest arg2, + NSURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLProtocolDidFinishLoading: + static final URLProtocolDidFinishLoading_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLProtocolClient, + _sel_URLProtocolDidFinishLoading_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLProtocolClient, + _sel_URLProtocolDidFinishLoading_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSURLProtocol) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.fromFunction( + (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), + ), + (void Function(NSURLProtocol) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.listener( + (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), + ), + (void Function(NSURLProtocol) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.blocking( + (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), + ), + ); +} + +enum NSURLRelationship { + NSURLRelationshipContains(0), + NSURLRelationshipSame(1), + NSURLRelationshipOther(2); + + final int value; + const NSURLRelationship(this.value); + + static NSURLRelationship fromValue(int value) => switch (value) { + 0 => NSURLRelationshipContains, + 1 => NSURLRelationshipSame, + 2 => NSURLRelationshipOther, + _ => throw ArgumentError('Unknown value for NSURLRelationship: $value'), + }; +} + +/// WARNING: NSURLRequest is a stub. To generate bindings for this class, include +/// NSURLRequest in your config's objc-interfaces list. +/// +/// NSURLRequest +extension type NSURLRequest._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying, + objc.NSMutableCopying { + /// Constructs a [NSURLRequest] that points to the same underlying object as [other]. + NSURLRequest.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLRequest] that wraps the given raw object pointer. + NSURLRequest.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLRequest', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +enum NSURLRequestAttribution { + NSURLRequestAttributionDeveloper(0), + NSURLRequestAttributionUser(1); + + final int value; + const NSURLRequestAttribution(this.value); + + static NSURLRequestAttribution fromValue(int value) => switch (value) { + 0 => NSURLRequestAttributionDeveloper, + 1 => NSURLRequestAttributionUser, + _ => throw ArgumentError( + 'Unknown value for NSURLRequestAttribution: $value', + ), + }; +} + +enum NSURLRequestCachePolicy { + NSURLRequestUseProtocolCachePolicy(0), + NSURLRequestReloadIgnoringLocalCacheData(1), + NSURLRequestReloadIgnoringLocalAndRemoteCacheData(4), + NSURLRequestReturnCacheDataElseLoad(2), + NSURLRequestReturnCacheDataDontLoad(3), + NSURLRequestReloadRevalidatingCacheData(5); + + static const NSURLRequestReloadIgnoringCacheData = + NSURLRequestReloadIgnoringLocalCacheData; + + final int value; + const NSURLRequestCachePolicy(this.value); + + static NSURLRequestCachePolicy fromValue(int value) => switch (value) { + 0 => NSURLRequestUseProtocolCachePolicy, + 1 => NSURLRequestReloadIgnoringLocalCacheData, + 4 => NSURLRequestReloadIgnoringLocalAndRemoteCacheData, + 2 => NSURLRequestReturnCacheDataElseLoad, + 3 => NSURLRequestReturnCacheDataDontLoad, + 5 => NSURLRequestReloadRevalidatingCacheData, + _ => throw ArgumentError( + 'Unknown value for NSURLRequestCachePolicy: $value', + ), + }; + + @override + String toString() { + if (this == NSURLRequestReloadIgnoringLocalCacheData) + return "NSURLRequestCachePolicy.NSURLRequestReloadIgnoringLocalCacheData, NSURLRequestCachePolicy.NSURLRequestReloadIgnoringCacheData"; + return super.toString(); + } +} + +enum NSURLRequestNetworkServiceType { + NSURLNetworkServiceTypeDefault(0), + NSURLNetworkServiceTypeVoIP(1), + NSURLNetworkServiceTypeVideo(2), + NSURLNetworkServiceTypeBackground(3), + NSURLNetworkServiceTypeVoice(4), + NSURLNetworkServiceTypeResponsiveData(6), + NSURLNetworkServiceTypeAVStreaming(8), + NSURLNetworkServiceTypeResponsiveAV(9), + NSURLNetworkServiceTypeCallSignaling(11); + + final int value; + const NSURLRequestNetworkServiceType(this.value); + + static NSURLRequestNetworkServiceType fromValue(int value) => switch (value) { + 0 => NSURLNetworkServiceTypeDefault, + 1 => NSURLNetworkServiceTypeVoIP, + 2 => NSURLNetworkServiceTypeVideo, + 3 => NSURLNetworkServiceTypeBackground, + 4 => NSURLNetworkServiceTypeVoice, + 6 => NSURLNetworkServiceTypeResponsiveData, + 8 => NSURLNetworkServiceTypeAVStreaming, + 9 => NSURLNetworkServiceTypeResponsiveAV, + 11 => NSURLNetworkServiceTypeCallSignaling, + _ => throw ArgumentError( + 'Unknown value for NSURLRequestNetworkServiceType: $value', + ), + }; +} + +typedef NSURLResourceKey = ffi.Pointer; +typedef DartNSURLResourceKey = objc.NSString; + +/// WARNING: NSURLResponse is a stub. To generate bindings for this class, include +/// NSURLResponse in your config's objc-interfaces list. +/// +/// NSURLResponse +extension type NSURLResponse._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSURLResponse] that points to the same underlying object as [other]. + NSURLResponse.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } + + /// Constructs a [NSURLResponse] that wraps the given raw object pointer. + NSURLResponse.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLResponse', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + } +} + +/// WARNING: NSURLSession is a stub. To generate bindings for this class, include +/// NSURLSession in your config's objc-interfaces list. +/// +/// NSURLSession +extension type NSURLSession._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLSession] that points to the same underlying object as [other]. + NSURLSession.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSession', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSession] that wraps the given raw object pointer. + NSURLSession.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSession', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +/// NSURLSessionAsynchronousConvenience +extension NSURLSessionAsynchronousConvenience on NSURLSession { + /// dataTaskWithRequest:completionHandler: + NSURLSessionDataTask dataTaskWithRequest( + NSURLRequest request, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = request.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.dataTaskWithRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_dataTaskWithRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + /// dataTaskWithURL:completionHandler: + NSURLSessionDataTask dataTaskWithURL( + objc.NSURL url, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.dataTaskWithURL:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_dataTaskWithURL_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + /// downloadTaskWithRequest:completionHandler: + NSURLSessionDownloadTask downloadTaskWithRequest( + NSURLRequest request, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = request.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.downloadTaskWithRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_downloadTaskWithRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// downloadTaskWithResumeData:completionHandler: + NSURLSessionDownloadTask downloadTaskWithResumeData( + objc.NSData resumeData, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = resumeData.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.downloadTaskWithResumeData:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_downloadTaskWithResumeData_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// downloadTaskWithURL:completionHandler: + NSURLSessionDownloadTask downloadTaskWithURL( + objc.NSURL url, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.downloadTaskWithURL:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_downloadTaskWithURL_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// uploadTaskWithRequest:fromData:completionHandler: + NSURLSessionUploadTask uploadTaskWithRequest( + NSURLRequest request, { + objc.NSData? fromData, + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = request.ref; + final _$$ref$2 = fromData?.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.uploadTaskWithRequest:fromData:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_2wiv66( + _$$ref.pointer, + _sel_uploadTaskWithRequest_fromData_completionHandler_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3.pointer, + ); + return NSURLSessionUploadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// uploadTaskWithRequest:fromFile:completionHandler: + NSURLSessionUploadTask uploadTaskWithRequest$1( + NSURLRequest request, { + required objc.NSURL fromFile, + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = request.ref; + final _$$ref$2 = fromFile.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.uploadTaskWithRequest:fromFile:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_2wiv66( + _$$ref.pointer, + _sel_uploadTaskWithRequest_fromFile_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + return NSURLSessionUploadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// uploadTaskWithResumeData:completionHandler: + NSURLSessionUploadTask uploadTaskWithResumeData( + objc.NSData resumeData, { + required objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = resumeData.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSession.uploadTaskWithResumeData:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_uploadTaskWithResumeData_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return NSURLSessionUploadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +enum NSURLSessionAuthChallengeDisposition { + NSURLSessionAuthChallengeUseCredential(0), + NSURLSessionAuthChallengePerformDefaultHandling(1), + NSURLSessionAuthChallengeCancelAuthenticationChallenge(2), + NSURLSessionAuthChallengeRejectProtectionSpace(3); + + final int value; + const NSURLSessionAuthChallengeDisposition(this.value); + + static NSURLSessionAuthChallengeDisposition fromValue(int value) => + switch (value) { + 0 => NSURLSessionAuthChallengeUseCredential, + 1 => NSURLSessionAuthChallengePerformDefaultHandling, + 2 => NSURLSessionAuthChallengeCancelAuthenticationChallenge, + 3 => NSURLSessionAuthChallengeRejectProtectionSpace, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionAuthChallengeDisposition: $value', + ), + }; +} + +/// WARNING: NSURLSessionConfiguration is a stub. To generate bindings for this class, include +/// NSURLSessionConfiguration in your config's objc-interfaces list. +/// +/// NSURLSessionConfiguration +extension type NSURLSessionConfiguration._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCopying { + /// Constructs a [NSURLSessionConfiguration] that points to the same underlying object as [other]. + NSURLSessionConfiguration.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSessionConfiguration] that wraps the given raw object pointer. + NSURLSessionConfiguration.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +/// NSURLSessionDataDelegate +extension type NSURLSessionDataDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLSessionTaskDelegate { + /// Constructs a [NSURLSessionDataDelegate] that points to the same underlying object as [other]. + NSURLSessionDataDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionDataDelegate] that wraps the given raw object pointer. + NSURLSessionDataDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionDataDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionDataDelegate, + ); + } +} + +extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { + /// URLSession:dataTask:didBecomeDownloadTask: + void URLSession( + NSURLSession session, { + required NSURLSessionDataTask dataTask, + required NSURLSessionDownloadTask didBecomeDownloadTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = dataTask.ref; + final _$$ref$3 = didBecomeDownloadTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:dataTask:didBecomeDownloadTask:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_dataTask_didBecomeDownloadTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:dataTask:didBecomeDownloadTask:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_dataTask_didBecomeDownloadTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:dataTask:didBecomeStreamTask: + void URLSession$1( + NSURLSession session, { + required NSURLSessionDataTask dataTask, + required NSURLSessionStreamTask didBecomeStreamTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = dataTask.ref; + final _$$ref$3 = didBecomeStreamTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:dataTask:didBecomeStreamTask:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_dataTask_didBecomeStreamTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:dataTask:didBecomeStreamTask:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_dataTask_didBecomeStreamTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:dataTask:didReceiveData: + void URLSession$2( + NSURLSession session, { + required NSURLSessionDataTask dataTask, + required objc.NSData didReceiveData, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = dataTask.ref; + final _$$ref$3 = didReceiveData.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:dataTask:didReceiveData:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_dataTask_didReceiveData_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:dataTask:didReceiveData:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_dataTask_didReceiveData_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:dataTask:didReceiveResponse:completionHandler: + void URLSession$3( + NSURLSession session, { + required NSURLSessionDataTask dataTask, + required NSURLResponse didReceiveResponse, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = dataTask.ref; + final _$$ref$3 = didReceiveResponse.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:dataTask:didReceiveResponse:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:dataTask:didReceiveResponse:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:dataTask:willCacheResponse:completionHandler: + void URLSession$4( + NSURLSession session, { + required NSURLSessionDataTask dataTask, + required NSCachedURLResponse willCacheResponse, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = dataTask.ref; + final _$$ref$3 = willCacheResponse.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:dataTask:willCacheResponse:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_dataTask_willCacheResponse_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:dataTask:willCacheResponse:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_dataTask_willCacheResponse_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:didBecomeInvalidWithError: + void URLSession$5( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didCreateTask: + void URLSession$6( + NSURLSession session, { + required NSURLSessionTask didCreateTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didCreateTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:didCreateTask:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:didCreateTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$7( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didCompleteWithError: + void URLSession$8( + NSURLSession session, { + required NSURLSessionTask task, + objc.NSError? didCompleteWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didCompleteWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:didCompleteWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:didCompleteWithError:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:task:didFinishCollectingMetrics: + void URLSession$9( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLSessionTaskMetrics didFinishCollectingMetrics, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didFinishCollectingMetrics.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:didFinishCollectingMetrics:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:didFinishCollectingMetrics:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didReceiveChallenge:completionHandler: + void URLSession$10( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveChallenge.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didReceiveInformationalResponse: + void URLSession$11( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse didReceiveInformationalResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveInformationalResponse.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:didReceiveInformationalResponse:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:didReceiveInformationalResponse:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + void URLSession$12( + NSURLSession session, { + required NSURLSessionTask task, + required int didSendBodyData, + required int totalBytesSent, + required int totalBytesExpectedToSend, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didSendBodyData, + totalBytesSent, + totalBytesExpectedToSend, + ); + } + + /// URLSession:task:needNewBodyStream: + void URLSession$13( + NSURLSession session, { + required NSURLSessionTask task, + required objc.ObjCBlock + needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:needNewBodyStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:needNewBodyStream:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + void URLSession$14( + NSURLSession session, { + required NSURLSessionTask task, + required int needNewBodyStreamFromOffset, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + ); + } + _objc_msgSend_9cddqw( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + needNewBodyStreamFromOffset, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + void URLSession$15( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLRequest willBeginDelayedRequest, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willBeginDelayedRequest.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:willBeginDelayedRequest:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + void URLSession$16( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse willPerformHTTPRedirection, + required NSURLRequest newRequest, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willPerformHTTPRedirection.ref; + final _$$ref$4 = newRequest.ref; + final _$$ref$5 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + ); + } + _objc_msgSend_e1wgee( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + _$$ref$5.pointer, + ); + } + + /// URLSession:taskIsWaitingForConnectivity: + void URLSession$17( + NSURLSession session, { + required NSURLSessionTask taskIsWaitingForConnectivity, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = taskIsWaitingForConnectivity.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSession:taskIsWaitingForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSession:taskIsWaitingForConnectivity:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDataDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDataDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionDataDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionDataDelegate.cast()); + + /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDataDelegate implement({ + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDataDelegate', + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implement( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implement( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implement( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implement( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implement( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implement( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implement( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implement( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implement( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implement( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDataDelegate implementAsListener({ + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDataDelegate', + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implementAsListener( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implementAsListener( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implementAsListener( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsListener( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDataDelegate implementAsBlocking({ + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDataDelegate', + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDataDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? + URLSession_dataTask_didBecomeDownloadTask_, + void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? + URLSession_dataTask_didBecomeStreamTask_, + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? + URLSession_dataTask_didReceiveData_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_didReceiveResponse_completionHandler_, + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + )? + URLSession_dataTask_willCacheResponse_completionHandler_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeDownloadTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeDownloadTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didBecomeStreamTask_.implementAsBlocking( + builder, + URLSession_dataTask_didBecomeStreamTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveData_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveData_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_didReceiveResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsBlocking( + builder, + URLSession_dataTask_willCacheResponse_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDataDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDataDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:dataTask:didBecomeDownloadTask: + static final URLSession_dataTask_didBecomeDownloadTask_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeDownloadTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeDownloadTask_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:dataTask:didBecomeStreamTask: + static final URLSession_dataTask_didBecomeStreamTask_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeStreamTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didBecomeStreamTask_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:dataTask:didReceiveData: + static final URLSession_dataTask_didReceiveData_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveData_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveData_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:dataTask:didReceiveResponse:completionHandler: + static final URLSession_dataTask_didReceiveResponse_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:dataTask:willCacheResponse:completionHandler: + static final URLSession_dataTask_willCacheResponse_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_willCacheResponse_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_dataTask_willCacheResponse_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didCreateTask: + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didCompleteWithError: + static final URLSession_task_didCompleteWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didFinishCollectingMetrics: + static final URLSession_task_didFinishCollectingMetrics_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didReceiveChallenge:completionHandler: + static final URLSession_task_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didReceiveInformationalResponse: + static final URLSession_task_didReceiveInformationalResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:needNewBodyStream: + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + static final URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:taskIsWaitingForConnectivity: + static final URLSession_taskIsWaitingForConnectivity_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionDataDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDataDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +/// WARNING: NSURLSessionDataTask is a stub. To generate bindings for this class, include +/// NSURLSessionDataTask in your config's objc-interfaces list. +/// +/// NSURLSessionDataTask +extension type NSURLSessionDataTask._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLSessionTask { + /// Constructs a [NSURLSessionDataTask] that points to the same underlying object as [other]. + NSURLSessionDataTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionDataTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSessionDataTask] that wraps the given raw object pointer. + NSURLSessionDataTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionDataTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +enum NSURLSessionDelayedRequestDisposition { + NSURLSessionDelayedRequestContinueLoading(0), + NSURLSessionDelayedRequestUseNewRequest(1), + NSURLSessionDelayedRequestCancel(2); + + final int value; + const NSURLSessionDelayedRequestDisposition(this.value); + + static NSURLSessionDelayedRequestDisposition fromValue(int value) => + switch (value) { + 0 => NSURLSessionDelayedRequestContinueLoading, + 1 => NSURLSessionDelayedRequestUseNewRequest, + 2 => NSURLSessionDelayedRequestCancel, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionDelayedRequestDisposition: $value', + ), + }; +} + +/// NSURLSessionDelegate +extension type NSURLSessionDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSURLSessionDelegate] that points to the same underlying object as [other]. + NSURLSessionDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionDelegate] that wraps the given raw object pointer. + NSURLSessionDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionDelegate, + ); + } +} + +extension NSURLSessionDelegate$Methods on NSURLSessionDelegate { + /// URLSession:didBecomeInvalidWithError: + void URLSession( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$1( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionDelegate.cast()); + + /// Builds an object that implements the NSURLSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDelegate implement({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDelegate implementAsListener({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDelegate implementAsBlocking({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +/// NSURLSessionDeprecated +extension NSURLSessionDeprecated on NSURLSessionConfiguration { + /// backgroundSessionConfiguration: + @Deprecated('Deprecated') + static NSURLSessionConfiguration backgroundSessionConfiguration( + objc.NSString identifier, + ) { + final _$$ref = identifier.ref; + objc.checkOsVersionInternal( + 'NSURLSessionConfiguration.backgroundSessionConfiguration:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSURLSessionConfiguration, + _sel_backgroundSessionConfiguration_, + _$$ref.pointer, + ); + return NSURLSessionConfiguration.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +/// NSURLSessionDownloadDelegate +extension type NSURLSessionDownloadDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLSessionTaskDelegate { + /// Constructs a [NSURLSessionDownloadDelegate] that points to the same underlying object as [other]. + NSURLSessionDownloadDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionDownloadDelegate] that wraps the given raw object pointer. + NSURLSessionDownloadDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionDownloadDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionDownloadDelegate, + ); + } +} + +extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { + /// URLSession:didBecomeInvalidWithError: + void URLSession( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didCreateTask: + void URLSession$1( + NSURLSession session, { + required NSURLSessionTask didCreateTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didCreateTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:didCreateTask:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:didCreateTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$2( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:downloadTask:didFinishDownloadingToURL: + void URLSession$3( + NSURLSession session, { + required NSURLSessionDownloadTask downloadTask, + required objc.NSURL didFinishDownloadingToURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = downloadTask.ref; + final _$$ref$3 = didFinishDownloadingToURL.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didFinishDownloadingToURL:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_downloadTask_didFinishDownloadingToURL_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes: + void URLSession$4( + NSURLSession session, { + required NSURLSessionDownloadTask downloadTask, + required int didResumeAtOffset, + required int expectedTotalBytes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = downloadTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:', + ); + } + _objc_msgSend_fm5719( + _$$ref.pointer, + _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didResumeAtOffset, + expectedTotalBytes, + ); + } + + /// URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite: + void URLSession$5( + NSURLSession session, { + required NSURLSessionDownloadTask downloadTask, + required int didWriteData, + required int totalBytesWritten, + required int totalBytesExpectedToWrite, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = downloadTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didWriteData, + totalBytesWritten, + totalBytesExpectedToWrite, + ); + } + + /// URLSession:task:didCompleteWithError: + void URLSession$6( + NSURLSession session, { + required NSURLSessionTask task, + objc.NSError? didCompleteWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didCompleteWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:didCompleteWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:didCompleteWithError:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:task:didFinishCollectingMetrics: + void URLSession$7( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLSessionTaskMetrics didFinishCollectingMetrics, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didFinishCollectingMetrics.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:didFinishCollectingMetrics:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:didFinishCollectingMetrics:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didReceiveChallenge:completionHandler: + void URLSession$8( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveChallenge.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didReceiveInformationalResponse: + void URLSession$9( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse didReceiveInformationalResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveInformationalResponse.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:didReceiveInformationalResponse:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:didReceiveInformationalResponse:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + void URLSession$10( + NSURLSession session, { + required NSURLSessionTask task, + required int didSendBodyData, + required int totalBytesSent, + required int totalBytesExpectedToSend, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didSendBodyData, + totalBytesSent, + totalBytesExpectedToSend, + ); + } + + /// URLSession:task:needNewBodyStream: + void URLSession$11( + NSURLSession session, { + required NSURLSessionTask task, + required objc.ObjCBlock + needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:needNewBodyStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:needNewBodyStream:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + void URLSession$12( + NSURLSession session, { + required NSURLSessionTask task, + required int needNewBodyStreamFromOffset, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + ); + } + _objc_msgSend_9cddqw( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + needNewBodyStreamFromOffset, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + void URLSession$13( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLRequest willBeginDelayedRequest, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willBeginDelayedRequest.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:willBeginDelayedRequest:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + void URLSession$14( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse willPerformHTTPRedirection, + required NSURLRequest newRequest, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willPerformHTTPRedirection.ref; + final _$$ref$4 = newRequest.ref; + final _$$ref$5 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + ); + } + _objc_msgSend_e1wgee( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + _$$ref$5.pointer, + ); + } + + /// URLSession:taskIsWaitingForConnectivity: + void URLSession$15( + NSURLSession session, { + required NSURLSessionTask taskIsWaitingForConnectivity, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = taskIsWaitingForConnectivity.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSession:taskIsWaitingForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSession:taskIsWaitingForConnectivity:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionDownloadDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionDownloadDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionDownloadDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionDownloadDelegate.cast()); + + /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDownloadDelegate implement({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDownloadDelegate', + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implement( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implement( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implement( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implement( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implement( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implement( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDownloadDelegate implementAsListener({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDownloadDelegate', + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsListener( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsListener( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsListener( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsListener( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsListener( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsListener( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionDownloadDelegate implementAsBlocking({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionDownloadDelegate', + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsBlocking( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsBlocking( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsBlocking( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionDownloadDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + URLSession_downloadTask_didFinishDownloadingToURL_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionDownloadDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsBlocking( + builder, + URLSession_downloadTask_didFinishDownloadingToURL_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsBlocking( + builder, + URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsBlocking( + builder, + URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionDownloadDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didCreateTask: + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:downloadTask:didFinishDownloadingToURL: + static final URLSession_downloadTask_didFinishDownloadingToURL_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didFinishDownloadingToURL_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didFinishDownloadingToURL_, + isRequired: true, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes: + static final URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_ly2579) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite: + static final URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:didCompleteWithError: + static final URLSession_task_didCompleteWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didFinishCollectingMetrics: + static final URLSession_task_didFinishCollectingMetrics_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didReceiveChallenge:completionHandler: + static final URLSession_task_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didReceiveInformationalResponse: + static final URLSession_task_didReceiveInformationalResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:needNewBodyStream: + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + static final URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:taskIsWaitingForConnectivity: + static final URLSession_taskIsWaitingForConnectivity_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionDownloadDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +/// WARNING: NSURLSessionDownloadTask is a stub. To generate bindings for this class, include +/// NSURLSessionDownloadTask in your config's objc-interfaces list. +/// +/// NSURLSessionDownloadTask +extension type NSURLSessionDownloadTask._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLSessionTask { + /// Constructs a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. + NSURLSessionDownloadTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionDownloadTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSessionDownloadTask] that wraps the given raw object pointer. + NSURLSessionDownloadTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionDownloadTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +enum NSURLSessionMultipathServiceType { + NSURLSessionMultipathServiceTypeNone(0), + NSURLSessionMultipathServiceTypeHandover(1), + NSURLSessionMultipathServiceTypeInteractive(2), + NSURLSessionMultipathServiceTypeAggregate(3); + + final int value; + const NSURLSessionMultipathServiceType(this.value); + + static NSURLSessionMultipathServiceType fromValue(int value) => + switch (value) { + 0 => NSURLSessionMultipathServiceTypeNone, + 1 => NSURLSessionMultipathServiceTypeHandover, + 2 => NSURLSessionMultipathServiceTypeInteractive, + 3 => NSURLSessionMultipathServiceTypeAggregate, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionMultipathServiceType: $value', + ), + }; +} + +enum NSURLSessionResponseDisposition { + NSURLSessionResponseCancel(0), + NSURLSessionResponseAllow(1), + NSURLSessionResponseBecomeDownload(2), + NSURLSessionResponseBecomeStream(3); + + final int value; + const NSURLSessionResponseDisposition(this.value); + + static NSURLSessionResponseDisposition fromValue(int value) => + switch (value) { + 0 => NSURLSessionResponseCancel, + 1 => NSURLSessionResponseAllow, + 2 => NSURLSessionResponseBecomeDownload, + 3 => NSURLSessionResponseBecomeStream, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionResponseDisposition: $value', + ), + }; +} + +/// NSURLSessionStreamDelegate +extension type NSURLSessionStreamDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLSessionTaskDelegate { + /// Constructs a [NSURLSessionStreamDelegate] that points to the same underlying object as [other]. + NSURLSessionStreamDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionStreamDelegate] that wraps the given raw object pointer. + NSURLSessionStreamDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionStreamDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionStreamDelegate, + ); + } +} + +extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { + /// URLSession:betterRouteDiscoveredForStreamTask: + void URLSession( + NSURLSession session, { + required NSURLSessionStreamTask betterRouteDiscoveredForStreamTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = betterRouteDiscoveredForStreamTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:betterRouteDiscoveredForStreamTask:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_betterRouteDiscoveredForStreamTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:betterRouteDiscoveredForStreamTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_betterRouteDiscoveredForStreamTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didBecomeInvalidWithError: + void URLSession$1( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didCreateTask: + void URLSession$2( + NSURLSession session, { + required NSURLSessionTask didCreateTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didCreateTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:didCreateTask:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:didCreateTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$3( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:readClosedForStreamTask: + void URLSession$4( + NSURLSession session, { + required NSURLSessionStreamTask readClosedForStreamTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = readClosedForStreamTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:readClosedForStreamTask:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_readClosedForStreamTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:readClosedForStreamTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_readClosedForStreamTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:streamTask:didBecomeInputStream:outputStream: + void URLSession$5( + NSURLSession session, { + required NSURLSessionStreamTask streamTask, + required objc.NSInputStream didBecomeInputStream, + required objc.NSOutputStream outputStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = streamTask.ref; + final _$$ref$3 = didBecomeInputStream.ref; + final _$$ref$4 = outputStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:streamTask:didBecomeInputStream:outputStream:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:streamTask:didBecomeInputStream:outputStream:', + ); + } + _objc_msgSend_mlcr8l( + _$$ref.pointer, + _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didCompleteWithError: + void URLSession$6( + NSURLSession session, { + required NSURLSessionTask task, + objc.NSError? didCompleteWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didCompleteWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:didCompleteWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:didCompleteWithError:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:task:didFinishCollectingMetrics: + void URLSession$7( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLSessionTaskMetrics didFinishCollectingMetrics, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didFinishCollectingMetrics.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:didFinishCollectingMetrics:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:didFinishCollectingMetrics:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didReceiveChallenge:completionHandler: + void URLSession$8( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveChallenge.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didReceiveInformationalResponse: + void URLSession$9( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse didReceiveInformationalResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveInformationalResponse.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:didReceiveInformationalResponse:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:didReceiveInformationalResponse:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + void URLSession$10( + NSURLSession session, { + required NSURLSessionTask task, + required int didSendBodyData, + required int totalBytesSent, + required int totalBytesExpectedToSend, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didSendBodyData, + totalBytesSent, + totalBytesExpectedToSend, + ); + } + + /// URLSession:task:needNewBodyStream: + void URLSession$11( + NSURLSession session, { + required NSURLSessionTask task, + required objc.ObjCBlock + needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:needNewBodyStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:needNewBodyStream:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + void URLSession$12( + NSURLSession session, { + required NSURLSessionTask task, + required int needNewBodyStreamFromOffset, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + ); + } + _objc_msgSend_9cddqw( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + needNewBodyStreamFromOffset, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + void URLSession$13( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLRequest willBeginDelayedRequest, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willBeginDelayedRequest.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:willBeginDelayedRequest:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + void URLSession$14( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse willPerformHTTPRedirection, + required NSURLRequest newRequest, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willPerformHTTPRedirection.ref; + final _$$ref$4 = newRequest.ref; + final _$$ref$5 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + ); + } + _objc_msgSend_e1wgee( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + _$$ref$5.pointer, + ); + } + + /// URLSession:taskIsWaitingForConnectivity: + void URLSession$15( + NSURLSession session, { + required NSURLSessionTask taskIsWaitingForConnectivity, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = taskIsWaitingForConnectivity.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:taskIsWaitingForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:taskIsWaitingForConnectivity:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:writeClosedForStreamTask: + void URLSession$16( + NSURLSession session, { + required NSURLSessionStreamTask writeClosedForStreamTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = writeClosedForStreamTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSession:writeClosedForStreamTask:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_writeClosedForStreamTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSession:writeClosedForStreamTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_writeClosedForStreamTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionStreamDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionStreamDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionStreamDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionStreamDelegate.cast()); + + /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionStreamDelegate implement({ + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionStreamDelegate', + ); + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implement( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implement( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implement( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implement( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionStreamDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implement( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implement( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implement( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implement( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionStreamDelegate implementAsListener({ + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionStreamDelegate', + ); + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implementAsListener( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implementAsListener( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsListener( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implementAsListener( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionStreamDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implementAsListener( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implementAsListener( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsListener( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implementAsListener( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionStreamDelegate implementAsBlocking({ + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionStreamDelegate', + ); + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implementAsBlocking( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implementAsBlocking( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsBlocking( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implementAsBlocking( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionStreamDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_betterRouteDiscoveredForStreamTask_, + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_readClosedForStreamTask_, + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + )? + URLSession_streamTask_didBecomeInputStream_outputStream_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession, NSURLSessionStreamTask)? + URLSession_writeClosedForStreamTask_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionStreamDelegate$Builder + .URLSession_betterRouteDiscoveredForStreamTask_.implementAsBlocking( + builder, + URLSession_betterRouteDiscoveredForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_readClosedForStreamTask_.implementAsBlocking( + builder, + URLSession_readClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsBlocking( + builder, + URLSession_streamTask_didBecomeInputStream_outputStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionStreamDelegate$Builder + .URLSession_writeClosedForStreamTask_.implementAsBlocking( + builder, + URLSession_writeClosedForStreamTask_, + ); + NSURLSessionStreamDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:betterRouteDiscoveredForStreamTask: + static final URLSession_betterRouteDiscoveredForStreamTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionStreamTask) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_betterRouteDiscoveredForStreamTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_betterRouteDiscoveredForStreamTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didCreateTask: + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:readClosedForStreamTask: + static final URLSession_readClosedForStreamTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionStreamTask) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_readClosedForStreamTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_readClosedForStreamTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:streamTask:didBecomeInputStream:outputStream: + static final URLSession_streamTask_didBecomeInputStream_outputStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_8jfq1p) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + objc.NSInputStream arg3, + objc.NSOutputStream arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + objc.NSInputStream arg3, + objc.NSOutputStream arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + objc.NSInputStream arg3, + objc.NSOutputStream arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didCompleteWithError: + static final URLSession_task_didCompleteWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didFinishCollectingMetrics: + static final URLSession_task_didFinishCollectingMetrics_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didReceiveChallenge:completionHandler: + static final URLSession_task_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didReceiveInformationalResponse: + static final URLSession_task_didReceiveInformationalResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:needNewBodyStream: + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + static final URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:taskIsWaitingForConnectivity: + static final URLSession_taskIsWaitingForConnectivity_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:writeClosedForStreamTask: + static final URLSession_writeClosedForStreamTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionStreamTask) + >( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_writeClosedForStreamTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSession_writeClosedForStreamTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionStreamTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionStreamDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +/// WARNING: NSURLSessionStreamTask is a stub. To generate bindings for this class, include +/// NSURLSessionStreamTask in your config's objc-interfaces list. +/// +/// NSURLSessionStreamTask +extension type NSURLSessionStreamTask._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLSessionTask { + /// Constructs a [NSURLSessionStreamTask] that points to the same underlying object as [other]. + NSURLSessionStreamTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionStreamTask', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + } + + /// Constructs a [NSURLSessionStreamTask] that wraps the given raw object pointer. + NSURLSessionStreamTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionStreamTask', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + } +} + +/// WARNING: NSURLSessionTask is a stub. To generate bindings for this class, include +/// NSURLSessionTask in your config's objc-interfaces list. +/// +/// NSURLSessionTask +extension type NSURLSessionTask._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSCopying, + NSProgressReporting { + /// Constructs a [NSURLSessionTask] that points to the same underlying object as [other]. + NSURLSessionTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSessionTask] that wraps the given raw object pointer. + NSURLSessionTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +/// NSURLSessionTaskAdditions +extension NSURLSessionTaskAdditions on NSURLCache { + /// getCachedResponseForDataTask:completionHandler: + void getCachedResponseForDataTask( + NSURLSessionDataTask dataTask, { + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = dataTask.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLCache.getCachedResponseForDataTask:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_getCachedResponseForDataTask_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// removeCachedResponseForDataTask: + void removeCachedResponseForDataTask(NSURLSessionDataTask dataTask) { + final _$$ref = object$.ref; + final _$$ref$1 = dataTask.ref; + objc.checkOsVersionInternal( + 'NSURLCache.removeCachedResponseForDataTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_removeCachedResponseForDataTask_, + _$$ref$1.pointer, + ); + } + + /// storeCachedResponse:forDataTask: + void storeCachedResponse( + NSCachedURLResponse cachedResponse, { + required NSURLSessionDataTask forDataTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = cachedResponse.ref; + final _$$ref$2 = forDataTask.ref; + objc.checkOsVersionInternal( + 'NSURLCache.storeCachedResponse:forDataTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_storeCachedResponse_forDataTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSURLSessionTaskAdditions +extension NSURLSessionTaskAdditions$1 on NSHTTPCookieStorage { + /// getCookiesForTask:completionHandler: + void getCookiesForTask( + NSURLSessionTask task, { + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = task.ref; + final _$$ref$2 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage.getCookiesForTask:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_o762yo( + _$$ref.pointer, + _sel_getCookiesForTask_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// storeCookies:forTask: + void storeCookies(objc.NSArray cookies, {required NSURLSessionTask forTask}) { + final _$$ref = object$.ref; + final _$$ref$1 = cookies.ref; + final _$$ref$2 = forTask.ref; + objc.checkOsVersionInternal( + 'NSHTTPCookieStorage.storeCookies:forTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_storeCookies_forTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// NSURLSessionTaskAdditions +extension NSURLSessionTaskAdditions$2 on NSURLCredentialStorage { + /// getCredentialsForProtectionSpace:task:completionHandler: + void getCredentialsForProtectionSpace( + NSURLProtectionSpace protectionSpace, { + required NSURLSessionTask task, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = protectionSpace.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLCredentialStorage.getCredentialsForProtectionSpace:task:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_getCredentialsForProtectionSpace_task_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// getDefaultCredentialForProtectionSpace:task:completionHandler: + void getDefaultCredentialForProtectionSpace( + NSURLProtectionSpace space, { + required NSURLSessionTask task, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = space.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLCredentialStorage.getDefaultCredentialForProtectionSpace:task:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// removeCredential:forProtectionSpace:options:task: + void removeCredential( + NSURLCredential credential, { + required NSURLProtectionSpace forProtectionSpace, + objc.NSDictionary? options, + required NSURLSessionTask task, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = credential.ref; + final _$$ref$2 = forProtectionSpace.ref; + final _$$ref$3 = options?.ref; + final _$$ref$4 = task.ref; + objc.checkOsVersionInternal( + 'NSURLCredentialStorage.removeCredential:forProtectionSpace:options:task:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_mlcr8l( + _$$ref.pointer, + _sel_removeCredential_forProtectionSpace_options_task_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4.pointer, + ); + } + + /// setCredential:forProtectionSpace:task: + void setCredential( + NSURLCredential credential, { + required NSURLProtectionSpace forProtectionSpace, + required NSURLSessionTask task, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = credential.ref; + final _$$ref$2 = forProtectionSpace.ref; + final _$$ref$3 = task.ref; + objc.checkOsVersionInternal( + 'NSURLCredentialStorage.setCredential:forProtectionSpace:task:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_setCredential_forProtectionSpace_task_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// setDefaultCredential:forProtectionSpace:task: + void setDefaultCredential( + NSURLCredential credential, { + required NSURLProtectionSpace forProtectionSpace, + required NSURLSessionTask task, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = credential.ref; + final _$$ref$2 = forProtectionSpace.ref; + final _$$ref$3 = task.ref; + objc.checkOsVersionInternal( + 'NSURLCredentialStorage.setDefaultCredential:forProtectionSpace:task:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_setDefaultCredential_forProtectionSpace_task_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// NSURLSessionTaskAdditions +extension NSURLSessionTaskAdditions$3 on NSURLProtocol { + /// task + NSURLSessionTask? get task { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURLProtocol.task', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_task); + return $ret.address == 0 + ? null + : NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + /// canInitWithTask: + static bool canInitWithTask(NSURLSessionTask task) { + final _$$ref = task.ref; + objc.checkOsVersionInternal( + 'NSURLProtocol.canInitWithTask:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_19nvye5( + _class_NSURLProtocol, + _sel_canInitWithTask_, + _$$ref.pointer, + ); + } +} + +/// NSURLSessionTaskDelegate +extension type NSURLSessionTaskDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLSessionDelegate { + /// Constructs a [NSURLSessionTaskDelegate] that points to the same underlying object as [other]. + NSURLSessionTaskDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionTaskDelegate] that wraps the given raw object pointer. + NSURLSessionTaskDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionTaskDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionTaskDelegate, + ); + } +} + +extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { + /// URLSession:didBecomeInvalidWithError: + void URLSession( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didCreateTask: + void URLSession$1( + NSURLSession session, { + required NSURLSessionTask didCreateTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didCreateTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:didCreateTask:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:didCreateTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$2( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didCompleteWithError: + void URLSession$3( + NSURLSession session, { + required NSURLSessionTask task, + objc.NSError? didCompleteWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didCompleteWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:didCompleteWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:didCompleteWithError:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:task:didFinishCollectingMetrics: + void URLSession$4( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLSessionTaskMetrics didFinishCollectingMetrics, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didFinishCollectingMetrics.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:didFinishCollectingMetrics:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:didFinishCollectingMetrics:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didReceiveChallenge:completionHandler: + void URLSession$5( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveChallenge.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didReceiveInformationalResponse: + void URLSession$6( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse didReceiveInformationalResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveInformationalResponse.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:didReceiveInformationalResponse:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:didReceiveInformationalResponse:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + void URLSession$7( + NSURLSession session, { + required NSURLSessionTask task, + required int didSendBodyData, + required int totalBytesSent, + required int totalBytesExpectedToSend, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didSendBodyData, + totalBytesSent, + totalBytesExpectedToSend, + ); + } + + /// URLSession:task:needNewBodyStream: + void URLSession$8( + NSURLSession session, { + required NSURLSessionTask task, + required objc.ObjCBlock + needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:needNewBodyStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:needNewBodyStream:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + void URLSession$9( + NSURLSession session, { + required NSURLSessionTask task, + required int needNewBodyStreamFromOffset, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + ); + } + _objc_msgSend_9cddqw( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + needNewBodyStreamFromOffset, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + void URLSession$10( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLRequest willBeginDelayedRequest, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willBeginDelayedRequest.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:willBeginDelayedRequest:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + void URLSession$11( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse willPerformHTTPRedirection, + required NSURLRequest newRequest, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willPerformHTTPRedirection.ref; + final _$$ref$4 = newRequest.ref; + final _$$ref$5 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + ); + } + _objc_msgSend_e1wgee( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + _$$ref$5.pointer, + ); + } + + /// URLSession:taskIsWaitingForConnectivity: + void URLSession$12( + NSURLSession session, { + required NSURLSessionTask taskIsWaitingForConnectivity, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = taskIsWaitingForConnectivity.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSession:taskIsWaitingForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSession:taskIsWaitingForConnectivity:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionTaskDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionTaskDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionTaskDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionTaskDelegate.cast()); + + /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionTaskDelegate implement({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionTaskDelegate', + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionTaskDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionTaskDelegate implementAsListener({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionTaskDelegate', + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionTaskDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionTaskDelegate implementAsBlocking({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionTaskDelegate', + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionTaskDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionTaskDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionTaskDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionTaskDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didCreateTask: + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didCompleteWithError: + static final URLSession_task_didCompleteWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didFinishCollectingMetrics: + static final URLSession_task_didFinishCollectingMetrics_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didReceiveChallenge:completionHandler: + static final URLSession_task_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didReceiveInformationalResponse: + static final URLSession_task_didReceiveInformationalResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:needNewBodyStream: + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + static final URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:taskIsWaitingForConnectivity: + static final URLSession_taskIsWaitingForConnectivity_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionTaskDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +/// WARNING: NSURLSessionTaskMetrics is a stub. To generate bindings for this class, include +/// NSURLSessionTaskMetrics in your config's objc-interfaces list. +/// +/// NSURLSessionTaskMetrics +extension type NSURLSessionTaskMetrics._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSURLSessionTaskMetrics] that points to the same underlying object as [other]. + NSURLSessionTaskMetrics.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionTaskMetrics', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + } + + /// Constructs a [NSURLSessionTaskMetrics] that wraps the given raw object pointer. + NSURLSessionTaskMetrics.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionTaskMetrics', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + } +} + +enum NSURLSessionTaskMetricsDomainResolutionProtocol { + NSURLSessionTaskMetricsDomainResolutionProtocolUnknown(0), + NSURLSessionTaskMetricsDomainResolutionProtocolUDP(1), + NSURLSessionTaskMetricsDomainResolutionProtocolTCP(2), + NSURLSessionTaskMetricsDomainResolutionProtocolTLS(3), + NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS(4); + + final int value; + const NSURLSessionTaskMetricsDomainResolutionProtocol(this.value); + + static NSURLSessionTaskMetricsDomainResolutionProtocol fromValue( + int value, + ) => switch (value) { + 0 => NSURLSessionTaskMetricsDomainResolutionProtocolUnknown, + 1 => NSURLSessionTaskMetricsDomainResolutionProtocolUDP, + 2 => NSURLSessionTaskMetricsDomainResolutionProtocolTCP, + 3 => NSURLSessionTaskMetricsDomainResolutionProtocolTLS, + 4 => NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionTaskMetricsDomainResolutionProtocol: $value', + ), + }; +} + +enum NSURLSessionTaskMetricsResourceFetchType { + NSURLSessionTaskMetricsResourceFetchTypeUnknown(0), + NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad(1), + NSURLSessionTaskMetricsResourceFetchTypeServerPush(2), + NSURLSessionTaskMetricsResourceFetchTypeLocalCache(3); + + final int value; + const NSURLSessionTaskMetricsResourceFetchType(this.value); + + static NSURLSessionTaskMetricsResourceFetchType fromValue(int value) => + switch (value) { + 0 => NSURLSessionTaskMetricsResourceFetchTypeUnknown, + 1 => NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad, + 2 => NSURLSessionTaskMetricsResourceFetchTypeServerPush, + 3 => NSURLSessionTaskMetricsResourceFetchTypeLocalCache, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionTaskMetricsResourceFetchType: $value', + ), + }; +} + +enum NSURLSessionTaskState { + NSURLSessionTaskStateRunning(0), + NSURLSessionTaskStateSuspended(1), + NSURLSessionTaskStateCanceling(2), + NSURLSessionTaskStateCompleted(3); + + final int value; + const NSURLSessionTaskState(this.value); + + static NSURLSessionTaskState fromValue(int value) => switch (value) { + 0 => NSURLSessionTaskStateRunning, + 1 => NSURLSessionTaskStateSuspended, + 2 => NSURLSessionTaskStateCanceling, + 3 => NSURLSessionTaskStateCompleted, + _ => throw ArgumentError('Unknown value for NSURLSessionTaskState: $value'), + }; +} + +/// WARNING: NSURLSessionUploadTask is a stub. To generate bindings for this class, include +/// NSURLSessionUploadTask in your config's objc-interfaces list. +/// +/// NSURLSessionUploadTask +extension type NSURLSessionUploadTask._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLSessionDataTask { + /// Constructs a [NSURLSessionUploadTask] that points to the same underlying object as [other]. + NSURLSessionUploadTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionUploadTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } + + /// Constructs a [NSURLSessionUploadTask] that wraps the given raw object pointer. + NSURLSessionUploadTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionUploadTask', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + } +} + +enum NSURLSessionWebSocketCloseCode { + NSURLSessionWebSocketCloseCodeInvalid(0), + NSURLSessionWebSocketCloseCodeNormalClosure(1000), + NSURLSessionWebSocketCloseCodeGoingAway(1001), + NSURLSessionWebSocketCloseCodeProtocolError(1002), + NSURLSessionWebSocketCloseCodeUnsupportedData(1003), + NSURLSessionWebSocketCloseCodeNoStatusReceived(1005), + NSURLSessionWebSocketCloseCodeAbnormalClosure(1006), + NSURLSessionWebSocketCloseCodeInvalidFramePayloadData(1007), + NSURLSessionWebSocketCloseCodePolicyViolation(1008), + NSURLSessionWebSocketCloseCodeMessageTooBig(1009), + NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing(1010), + NSURLSessionWebSocketCloseCodeInternalServerError(1011), + NSURLSessionWebSocketCloseCodeTLSHandshakeFailure(1015); + + final int value; + const NSURLSessionWebSocketCloseCode(this.value); + + static NSURLSessionWebSocketCloseCode fromValue(int value) => switch (value) { + 0 => NSURLSessionWebSocketCloseCodeInvalid, + 1000 => NSURLSessionWebSocketCloseCodeNormalClosure, + 1001 => NSURLSessionWebSocketCloseCodeGoingAway, + 1002 => NSURLSessionWebSocketCloseCodeProtocolError, + 1003 => NSURLSessionWebSocketCloseCodeUnsupportedData, + 1005 => NSURLSessionWebSocketCloseCodeNoStatusReceived, + 1006 => NSURLSessionWebSocketCloseCodeAbnormalClosure, + 1007 => NSURLSessionWebSocketCloseCodeInvalidFramePayloadData, + 1008 => NSURLSessionWebSocketCloseCodePolicyViolation, + 1009 => NSURLSessionWebSocketCloseCodeMessageTooBig, + 1010 => NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing, + 1011 => NSURLSessionWebSocketCloseCodeInternalServerError, + 1015 => NSURLSessionWebSocketCloseCodeTLSHandshakeFailure, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionWebSocketCloseCode: $value', + ), + }; +} + +/// NSURLSessionWebSocketDelegate +extension type NSURLSessionWebSocketDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, NSURLSessionTaskDelegate { + /// Constructs a [NSURLSessionWebSocketDelegate] that points to the same underlying object as [other]. + NSURLSessionWebSocketDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSURLSessionWebSocketDelegate] that wraps the given raw object pointer. + NSURLSessionWebSocketDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLSessionWebSocketDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSURLSessionWebSocketDelegate, + ); + } +} + +extension NSURLSessionWebSocketDelegate$Methods + on NSURLSessionWebSocketDelegate { + /// URLSession:didBecomeInvalidWithError: + void URLSession( + NSURLSession session, { + objc.NSError? didBecomeInvalidWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didBecomeInvalidWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:didBecomeInvalidWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:didBecomeInvalidWithError:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didBecomeInvalidWithError_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:didCreateTask: + void URLSession$1( + NSURLSession session, { + required NSURLSessionTask didCreateTask, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didCreateTask.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:didCreateTask:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:didCreateTask:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_didCreateTask_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:didReceiveChallenge:completionHandler: + void URLSession$2( + NSURLSession session, { + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = didReceiveChallenge.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didCompleteWithError: + void URLSession$3( + NSURLSession session, { + required NSURLSessionTask task, + objc.NSError? didCompleteWithError, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didCompleteWithError?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:didCompleteWithError:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:didCompleteWithError:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didCompleteWithError_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:task:didFinishCollectingMetrics: + void URLSession$4( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLSessionTaskMetrics didFinishCollectingMetrics, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didFinishCollectingMetrics.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:didFinishCollectingMetrics:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:didFinishCollectingMetrics:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didFinishCollectingMetrics_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didReceiveChallenge:completionHandler: + void URLSession$5( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLAuthenticationChallenge didReceiveChallenge, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveChallenge.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:didReceiveChallenge:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:didReceiveChallenge:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:didReceiveInformationalResponse: + void URLSession$6( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse didReceiveInformationalResponse, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = didReceiveInformationalResponse.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:didReceiveInformationalResponse:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:didReceiveInformationalResponse:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_task_didReceiveInformationalResponse_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + void URLSession$7( + NSURLSession session, { + required NSURLSessionTask task, + required int didSendBodyData, + required int totalBytesSent, + required int totalBytesExpectedToSend, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', + ); + } + _objc_msgSend_1modw1b( + _$$ref.pointer, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didSendBodyData, + totalBytesSent, + totalBytesExpectedToSend, + ); + } + + /// URLSession:task:needNewBodyStream: + void URLSession$8( + NSURLSession session, { + required NSURLSessionTask task, + required objc.ObjCBlock + needNewBodyStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = needNewBodyStream.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:needNewBodyStream:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:needNewBodyStream:', + ); + } + _objc_msgSend_18qun1e( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + void URLSession$9( + NSURLSession session, { + required NSURLSessionTask task, + required int needNewBodyStreamFromOffset, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', + ); + } + _objc_msgSend_9cddqw( + _$$ref.pointer, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + needNewBodyStreamFromOffset, + _$$ref$3.pointer, + ); + } + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + void URLSession$10( + NSURLSession session, { + required NSURLSessionTask task, + required NSURLRequest willBeginDelayedRequest, + required objc.ObjCBlock + completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willBeginDelayedRequest.ref; + final _$$ref$4 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:willBeginDelayedRequest:completionHandler:', + ); + } + _objc_msgSend_m7tls4( + _$$ref.pointer, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + void URLSession$11( + NSURLSession session, { + required NSURLSessionTask task, + required NSHTTPURLResponse willPerformHTTPRedirection, + required NSURLRequest newRequest, + required objc.ObjCBlock completionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = task.ref; + final _$$ref$3 = willPerformHTTPRedirection.ref; + final _$$ref$4 = newRequest.ref; + final _$$ref$5 = completionHandler.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', + ); + } + _objc_msgSend_e1wgee( + _$$ref.pointer, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + _$$ref$5.pointer, + ); + } + + /// URLSession:taskIsWaitingForConnectivity: + void URLSession$12( + NSURLSession session, { + required NSURLSessionTask taskIsWaitingForConnectivity, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = taskIsWaitingForConnectivity.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:taskIsWaitingForConnectivity:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:taskIsWaitingForConnectivity:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_URLSession_taskIsWaitingForConnectivity_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// URLSession:webSocketTask:didCloseWithCode:reason: + void URLSession$13( + NSURLSession session, { + required NSURLSessionWebSocketTask webSocketTask, + required NSURLSessionWebSocketCloseCode didCloseWithCode, + objc.NSData? reason, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = webSocketTask.ref; + final _$$ref$3 = reason?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:webSocketTask:didCloseWithCode:reason:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_webSocketTask_didCloseWithCode_reason_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:webSocketTask:didCloseWithCode:reason:', + ); + } + _objc_msgSend_d9bpjb( + _$$ref.pointer, + _sel_URLSession_webSocketTask_didCloseWithCode_reason_, + _$$ref$1.pointer, + _$$ref$2.pointer, + didCloseWithCode.value, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSession:webSocketTask:didOpenWithProtocol: + void URLSession$14( + NSURLSession session, { + required NSURLSessionWebSocketTask webSocketTask, + objc.NSString? didOpenWithProtocol, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + final _$$ref$2 = webSocketTask.ref; + final _$$ref$3 = didOpenWithProtocol?.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSession:webSocketTask:didOpenWithProtocol:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSession_webSocketTask_didOpenWithProtocol_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSession:webSocketTask:didOpenWithProtocol:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_URLSession_webSocketTask_didOpenWithProtocol_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// URLSessionDidFinishEventsForBackgroundURLSession: + void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { + final _$$ref = object$.ref; + final _$$ref$1 = session.ref; + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', + iOS: (false, (7, 0, 0)), + macOS: (false, (11, 0, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURLSessionWebSocketDelegate', + 'URLSessionDidFinishEventsForBackgroundURLSession:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + _$$ref$1.pointer, + ); + } +} + +interface class NSURLSessionWebSocketDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSURLSessionWebSocketDelegate.cast()); + + /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionWebSocketDelegate implement({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionWebSocketDelegate', + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implement( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implement( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionWebSocketDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implement( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder.URLSession_didCreateTask_.implement( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implement( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implement( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implement( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implement( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implement( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implement( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implement( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implement( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implement( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionWebSocketDelegate implementAsListener({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionWebSocketDelegate', + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsListener( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsListener( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionWebSocketDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsListener( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didCreateTask_.implementAsListener( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsListener( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsListener( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsListener( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsListener( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsListener( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsListener( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsListener( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSURLSessionWebSocketDelegate implementAsBlocking({ + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSURLSessionWebSocketDelegate', + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsBlocking( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsBlocking( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + return NSURLSessionWebSocketDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSURLSession, objc.NSError?)? + URLSession_didBecomeInvalidWithError_, + void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? + URLSession_task_didCompleteWithError_, + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? + URLSession_task_didFinishCollectingMetrics_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + )? + URLSession_task_didReceiveChallenge_completionHandler_, + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? + URLSession_task_didReceiveInformationalResponse_, + void Function(NSURLSession, NSURLSessionTask, int, int, int)? + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStream_, + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + )? + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willBeginDelayedRequest_completionHandler_, + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + )? + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + void Function(NSURLSession, NSURLSessionTask)? + URLSession_taskIsWaitingForConnectivity_, + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + )? + URLSession_webSocketTask_didCloseWithCode_reason_, + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? + URLSession_webSocketTask_didOpenWithProtocol_, + void Function(NSURLSession)? + URLSessionDidFinishEventsForBackgroundURLSession_, + bool $keepIsolateAlive = true, + }) { + NSURLSessionWebSocketDelegate$Builder + .URLSession_didBecomeInvalidWithError_.implementAsBlocking( + builder, + URLSession_didBecomeInvalidWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didCreateTask_.implementAsBlocking( + builder, + URLSession_didCreateTask_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didCompleteWithError_.implementAsBlocking( + builder, + URLSession_task_didCompleteWithError_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( + builder, + URLSession_task_didFinishCollectingMetrics_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( + builder, + URLSession_task_didReceiveChallenge_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( + builder, + URLSession_task_didReceiveInformationalResponse_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( + builder, + URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStream_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStream_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( + builder, + URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willBeginDelayedRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( + builder, + URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( + builder, + URLSession_taskIsWaitingForConnectivity_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsBlocking( + builder, + URLSession_webSocketTask_didCloseWithCode_reason_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSession_webSocketTask_didOpenWithProtocol_.implementAsBlocking( + builder, + URLSession_webSocketTask_didOpenWithProtocol_, + ); + NSURLSessionWebSocketDelegate$Builder + .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( + builder, + URLSessionDidFinishEventsForBackgroundURLSession_, + ); + builder.addProtocol($protocol); + } + + /// URLSession:didBecomeInvalidWithError: + static final URLSession_didBecomeInvalidWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, objc.NSError?) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didBecomeInvalidWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + objc.NSError? arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didCreateTask: + static final URLSession_didCreateTask_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didCreateTask_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didCreateTask_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:didReceiveChallenge:completionHandler: + static final URLSession_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock + arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didCompleteWithError: + static final URLSession_task_didCompleteWithError_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, objc.NSError?) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didCompleteWithError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didCompleteWithError_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didFinishCollectingMetrics: + static final URLSession_task_didFinishCollectingMetrics_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didFinishCollectingMetrics_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didReceiveChallenge:completionHandler: + static final URLSession_task_didReceiveChallenge_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveChallenge_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:didReceiveInformationalResponse: + static final URLSession_task_didReceiveInformationalResponse_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didReceiveInformationalResponse_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: + static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask, int, int, int) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >(_1uu024u_protocolTrampoline_h68abb) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:task:needNewBodyStream: + static final URLSession_task_needNewBodyStream_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_bklti2) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: + static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_jyim80) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willBeginDelayedRequest:completionHandler: + static final URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xx612k) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock + arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: + static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_l2g8ke) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// URLSession:taskIsWaitingForConnectivity: + static final URLSession_taskIsWaitingForConnectivity_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionTask) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_taskIsWaitingForConnectivity_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + (void Function(NSURLSession, NSURLSessionTask) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionTask arg2, + ) => func(arg1, arg2), + ), + ); + + /// URLSession:webSocketTask:didCloseWithCode:reason: + static final URLSession_webSocketTask_didCloseWithCode_reason_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didCloseWithCode_reason_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1lx650f) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didCloseWithCode_reason_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + NSURLSessionWebSocketCloseCode arg3, + objc.NSData? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + NSURLSessionWebSocketCloseCode arg3, + objc.NSData? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + NSURLSessionWebSocketCloseCode arg3, + objc.NSData? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// URLSession:webSocketTask:didOpenWithProtocol: + static final URLSession_webSocketTask_didOpenWithProtocol_ = + objc.ObjCProtocolListenableMethod< + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + >( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didOpenWithProtocol_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSession_webSocketTask_didOpenWithProtocol_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.fromFunction( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.listener( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.blocking( + ( + ffi.Pointer _, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// URLSessionDidFinishEventsForBackgroundURLSession: + static final URLSessionDidFinishEventsForBackgroundURLSession_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSURLSessionWebSocketDelegate, + _sel_URLSessionDidFinishEventsForBackgroundURLSession_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + (void Function(NSURLSession) func) => + ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( + (ffi.Pointer _, NSURLSession arg1) => func(arg1), + ), + ); +} + +enum NSURLSessionWebSocketMessageType { + NSURLSessionWebSocketMessageTypeData(0), + NSURLSessionWebSocketMessageTypeString(1); + + final int value; + const NSURLSessionWebSocketMessageType(this.value); + + static NSURLSessionWebSocketMessageType fromValue(int value) => + switch (value) { + 0 => NSURLSessionWebSocketMessageTypeData, + 1 => NSURLSessionWebSocketMessageTypeString, + _ => throw ArgumentError( + 'Unknown value for NSURLSessionWebSocketMessageType: $value', + ), + }; +} + +/// WARNING: NSURLSessionWebSocketTask is a stub. To generate bindings for this class, include +/// NSURLSessionWebSocketTask in your config's objc-interfaces list. +/// +/// NSURLSessionWebSocketTask +extension type NSURLSessionWebSocketTask._(objc.ObjCObject object$) + implements objc.ObjCObject, NSURLSessionTask { + /// Constructs a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. + NSURLSessionWebSocketTask.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketTask', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + } + + /// Constructs a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. + NSURLSessionWebSocketTask.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSURLSessionWebSocketTask', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + } +} + +typedef NSURLThumbnailDictionaryItem = ffi.Pointer; +typedef DartNSURLThumbnailDictionaryItem = objc.NSString; +typedef NSURLUbiquitousItemDownloadingStatus = ffi.Pointer; +typedef DartNSURLUbiquitousItemDownloadingStatus = objc.NSString; +typedef NSURLUbiquitousSharedItemPermissions = ffi.Pointer; +typedef DartNSURLUbiquitousSharedItemPermissions = objc.NSString; +typedef NSURLUbiquitousSharedItemRole = ffi.Pointer; +typedef DartNSURLUbiquitousSharedItemRole = objc.NSString; + +/// NSURLUtilities +extension NSURLUtilities on objc.NSString { + /// stringByAddingPercentEncodingWithAllowedCharacters: + objc.NSString? stringByAddingPercentEncodingWithAllowedCharacters( + objc.NSCharacterSet allowedCharacters, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = allowedCharacters.ref; + objc.checkOsVersionInternal( + 'NSString.stringByAddingPercentEncodingWithAllowedCharacters:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_stringByAddingPercentEncodingWithAllowedCharacters_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByAddingPercentEscapesUsingEncoding: + @Deprecated( + 'Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.', + ) + objc.NSString? stringByAddingPercentEscapesUsingEncoding(DartNSUInteger enc) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.stringByAddingPercentEscapesUsingEncoding:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_14hpxwa( + _$$ref.pointer, + _sel_stringByAddingPercentEscapesUsingEncoding_, + enc, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByRemovingPercentEncoding + objc.NSString? get stringByRemovingPercentEncoding { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.stringByRemovingPercentEncoding', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_stringByRemovingPercentEncoding, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// stringByReplacingPercentEscapesUsingEncoding: + @Deprecated( + 'Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding.', + ) + objc.NSString? stringByReplacingPercentEscapesUsingEncoding( + DartNSUInteger enc, + ) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSString.stringByReplacingPercentEscapesUsingEncoding:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_14hpxwa( + _$$ref.pointer, + _sel_stringByReplacingPercentEscapesUsingEncoding_, + enc, + ); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// NSURLUtilities +extension NSURLUtilities$1 on objc.NSCharacterSet { + /// URLFragmentAllowedCharacterSet + static objc.NSCharacterSet getURLFragmentAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLFragmentAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLFragmentAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// URLHostAllowedCharacterSet + static objc.NSCharacterSet getURLHostAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLHostAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLHostAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// URLPasswordAllowedCharacterSet + static objc.NSCharacterSet getURLPasswordAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLPasswordAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLPasswordAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// URLPathAllowedCharacterSet + static objc.NSCharacterSet getURLPathAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLPathAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLPathAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// URLQueryAllowedCharacterSet + static objc.NSCharacterSet getURLQueryAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLQueryAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLQueryAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } + + /// URLUserAllowedCharacterSet + static objc.NSCharacterSet getURLUserAllowedCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.URLUserAllowedCharacterSet', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_URLUserAllowedCharacterSet, + ); + return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); + } +} + +const int NSUTF16BigEndianStringEncoding = 2415919360; + +const int NSUTF16LittleEndianStringEncoding = 2483028224; + +const int NSUTF16StringEncoding = 10; + +const int NSUTF32BigEndianStringEncoding = 2550137088; + +const int NSUTF32LittleEndianStringEncoding = 2617245952; + +const int NSUTF32StringEncoding = 2348810496; + +const int NSUTF8StringEncoding = 4; + +const int NSUbiquitousFileErrorMaximum = 4607; + +const int NSUbiquitousFileErrorMinimum = 4352; + +const int NSUbiquitousFileNotUploadedDueToQuotaError = 4354; + +const int NSUbiquitousFileUbiquityServerNotAvailable = 4355; + +const int NSUbiquitousFileUnavailableError = 4353; + +const int NSUbiquitousKeyValueStoreAccountChange = 3; + +const int NSUbiquitousKeyValueStoreInitialSyncChange = 1; + +const int NSUbiquitousKeyValueStoreQuotaViolationChange = 2; + +const int NSUbiquitousKeyValueStoreServerChange = 0; + +typedef NSUncaughtExceptionHandler = + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer exception$1) + >; +@Deprecated('Deprecated') +const int NSUndefinedDateComponent = 9223372036854775807; + +const int NSUndoCloseGroupingRunLoopOrdering = 350000; + +typedef NSUndoManagerUserInfoKey = ffi.Pointer; +typedef DartNSUndoManagerUserInfoKey = objc.NSString; + +const int NSUnicodeStringEncoding = 10; + +const int NSUnknownKeyScriptError = 7; + +const int NSUnknownKeySpecifierError = 3; + +/// WARNING: NSUserActivity is a stub. To generate bindings for this class, include +/// NSUserActivity in your config's objc-interfaces list. +/// +/// NSUserActivity +extension type NSUserActivity._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSUserActivity] that points to the same underlying object as [other]. + NSUserActivity.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSUserActivity', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } + + /// Constructs a [NSUserActivity] that wraps the given raw object pointer. + NSUserActivity.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSUserActivity', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } +} + +const int NSUserActivityConnectionUnavailableError = 4609; + +/// NSUserActivityDelegate +extension type NSUserActivityDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSUserActivityDelegate] that points to the same underlying object as [other]. + NSUserActivityDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSUserActivityDelegate] that wraps the given raw object pointer. + NSUserActivityDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSUserActivityDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSUserActivityDelegate, + ); + } +} + +extension NSUserActivityDelegate$Methods on NSUserActivityDelegate { + /// userActivity:didReceiveInputStream:outputStream: + void userActivity( + NSUserActivity userActivity, { + required objc.NSInputStream didReceiveInputStream, + required objc.NSOutputStream outputStream, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = userActivity.ref; + final _$$ref$2 = didReceiveInputStream.ref; + final _$$ref$3 = outputStream.ref; + objc.checkOsVersionInternal( + 'NSUserActivityDelegate.userActivity:didReceiveInputStream:outputStream:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_userActivity_didReceiveInputStream_outputStream_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserActivityDelegate', + 'userActivity:didReceiveInputStream:outputStream:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_userActivity_didReceiveInputStream_outputStream_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// userActivityWasContinued: + void userActivityWasContinued(NSUserActivity userActivity) { + final _$$ref = object$.ref; + final _$$ref$1 = userActivity.ref; + objc.checkOsVersionInternal( + 'NSUserActivityDelegate.userActivityWasContinued:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_userActivityWasContinued_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserActivityDelegate', + 'userActivityWasContinued:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_userActivityWasContinued_, + _$$ref$1.pointer, + ); + } + + /// userActivityWillSave: + void userActivityWillSave(NSUserActivity userActivity) { + final _$$ref = object$.ref; + final _$$ref$1 = userActivity.ref; + objc.checkOsVersionInternal( + 'NSUserActivityDelegate.userActivityWillSave:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_userActivityWillSave_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserActivityDelegate', + 'userActivityWillSave:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_userActivityWillSave_, + _$$ref$1.pointer, + ); + } +} + +interface class NSUserActivityDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSUserActivityDelegate.cast()); + + /// Builds an object that implements the NSUserActivityDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserActivityDelegate implement({ + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserActivityDelegate', + ); + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implement(builder, userActivity_didReceiveInputStream_outputStream_); + NSUserActivityDelegate$Builder.userActivityWasContinued_.implement( + builder, + userActivityWasContinued_, + ); + NSUserActivityDelegate$Builder.userActivityWillSave_.implement( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + return NSUserActivityDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserActivityDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implement(builder, userActivity_didReceiveInputStream_outputStream_); + NSUserActivityDelegate$Builder.userActivityWasContinued_.implement( + builder, + userActivityWasContinued_, + ); + NSUserActivityDelegate$Builder.userActivityWillSave_.implement( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSUserActivityDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserActivityDelegate implementAsListener({ + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserActivityDelegate', + ); + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implementAsListener( + builder, + userActivity_didReceiveInputStream_outputStream_, + ); + NSUserActivityDelegate$Builder.userActivityWasContinued_ + .implementAsListener(builder, userActivityWasContinued_); + NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsListener( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + return NSUserActivityDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserActivityDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implementAsListener( + builder, + userActivity_didReceiveInputStream_outputStream_, + ); + NSUserActivityDelegate$Builder.userActivityWasContinued_ + .implementAsListener(builder, userActivityWasContinued_); + NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsListener( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSUserActivityDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserActivityDelegate implementAsBlocking({ + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserActivityDelegate', + ); + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implementAsBlocking( + builder, + userActivity_didReceiveInputStream_outputStream_, + ); + NSUserActivityDelegate$Builder.userActivityWasContinued_ + .implementAsBlocking(builder, userActivityWasContinued_); + NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsBlocking( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + return NSUserActivityDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserActivityDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? + userActivity_didReceiveInputStream_outputStream_, + void Function(NSUserActivity)? userActivityWasContinued_, + void Function(NSUserActivity)? userActivityWillSave_, + bool $keepIsolateAlive = true, + }) { + NSUserActivityDelegate$Builder + .userActivity_didReceiveInputStream_outputStream_ + .implementAsBlocking( + builder, + userActivity_didReceiveInputStream_outputStream_, + ); + NSUserActivityDelegate$Builder.userActivityWasContinued_ + .implementAsBlocking(builder, userActivityWasContinued_); + NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsBlocking( + builder, + userActivityWillSave_, + ); + builder.addProtocol($protocol); + } + + /// userActivity:didReceiveInputStream:outputStream: + static final userActivity_didReceiveInputStream_outputStream_ = + objc.ObjCProtocolListenableMethod< + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) + >( + _protocol_NSUserActivityDelegate, + _sel_userActivity_didReceiveInputStream_outputStream_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserActivityDelegate, + _sel_userActivity_didReceiveInputStream_outputStream_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.fromFunction( + ( + ffi.Pointer _, + NSUserActivity arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.listener( + ( + ffi.Pointer _, + NSUserActivity arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ( + void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.blocking( + ( + ffi.Pointer _, + NSUserActivity arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// userActivityWasContinued: + static final userActivityWasContinued_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSUserActivityDelegate, + _sel_userActivityWasContinued_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserActivityDelegate, + _sel_userActivityWasContinued_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.fromFunction( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.listener( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.blocking( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + ); + + /// userActivityWillSave: + static final userActivityWillSave_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSUserActivityDelegate, + _sel_userActivityWillSave_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserActivityDelegate, + _sel_userActivityWillSave_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.fromFunction( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.listener( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + (void Function(NSUserActivity) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.blocking( + (ffi.Pointer _, NSUserActivity arg1) => func(arg1), + ), + ); +} + +const int NSUserActivityErrorMaximum = 4863; + +const int NSUserActivityErrorMinimum = 4608; + +const int NSUserActivityHandoffFailedError = 4608; + +const int NSUserActivityHandoffUserInfoTooLargeError = 4611; + +typedef NSUserActivityPersistentIdentifier = ffi.Pointer; +typedef DartNSUserActivityPersistentIdentifier = objc.NSString; + +const int NSUserActivityRemoteApplicationTimedOutError = 4610; + +typedef NSUserAppleScriptTaskCompletionHandler = + ffi.Pointer; +typedef DartNSUserAppleScriptTaskCompletionHandler = + objc.ObjCBlock; +typedef NSUserAutomatorTaskCompletionHandler = ffi.Pointer; +typedef DartNSUserAutomatorTaskCompletionHandler = + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >; + +const int NSUserCancelledError = 3072; + +/// NSUserInformation +extension NSUserInformation on NSProcessInfo { + /// fullUserName + objc.NSString get fullUserName { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.fullUserName', + iOS: (true, null), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fullUserName); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// userName + objc.NSString get userName { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSProcessInfo.userName', + iOS: (true, null), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_userName); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// NSUserInformation +extension NSUserInformation$1 on NSFileManager { + /// homeDirectoryForCurrentUser + objc.NSURL get homeDirectoryForCurrentUser { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFileManager.homeDirectoryForCurrentUser', + iOS: (true, null), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_homeDirectoryForCurrentUser, + ); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// homeDirectoryForUser: + objc.NSURL? homeDirectoryForUser(objc.NSString userName) { + final _$$ref = object$.ref; + final _$$ref$1 = userName.ref; + objc.checkOsVersionInternal( + 'NSFileManager.homeDirectoryForUser:', + iOS: (true, null), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_homeDirectoryForUser_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// temporaryDirectory + objc.NSURL get temporaryDirectory { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSFileManager.temporaryDirectory', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_temporaryDirectory); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSUserNotification is a stub. To generate bindings for this class, include +/// NSUserNotification in your config's objc-interfaces list. +/// +/// NSUserNotification +@Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', +) +extension type NSUserNotification._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCopying { + /// Constructs a [NSUserNotification] that points to the same underlying object as [other]. + NSUserNotification.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSUserNotification', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + } + + /// Constructs a [NSUserNotification] that wraps the given raw object pointer. + NSUserNotification.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSUserNotification', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + } +} + +@Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', +) +enum NSUserNotificationActivationType { + NSUserNotificationActivationTypeNone(0), + NSUserNotificationActivationTypeContentsClicked(1), + NSUserNotificationActivationTypeActionButtonClicked(2), + NSUserNotificationActivationTypeReplied(3), + NSUserNotificationActivationTypeAdditionalActionClicked(4); + + final int value; + const NSUserNotificationActivationType(this.value); + + static NSUserNotificationActivationType fromValue(int value) => + switch (value) { + 0 => NSUserNotificationActivationTypeNone, + 1 => NSUserNotificationActivationTypeContentsClicked, + 2 => NSUserNotificationActivationTypeActionButtonClicked, + 3 => NSUserNotificationActivationTypeReplied, + 4 => NSUserNotificationActivationTypeAdditionalActionClicked, + _ => throw ArgumentError( + 'Unknown value for NSUserNotificationActivationType: $value', + ), + }; +} + +/// WARNING: NSUserNotificationCenter is a stub. To generate bindings for this class, include +/// NSUserNotificationCenter in your config's objc-interfaces list. +/// +/// NSUserNotificationCenter +@Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', +) +extension type NSUserNotificationCenter._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSUserNotificationCenter] that points to the same underlying object as [other]. + NSUserNotificationCenter.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSUserNotificationCenter', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + } + + /// Constructs a [NSUserNotificationCenter] that wraps the given raw object pointer. + NSUserNotificationCenter.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSUserNotificationCenter', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + } +} + +/// NSUserNotificationCenterDelegate +extension type NSUserNotificationCenterDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSUserNotificationCenterDelegate] that points to the same underlying object as [other]. + NSUserNotificationCenterDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSUserNotificationCenterDelegate] that wraps the given raw object pointer. + NSUserNotificationCenterDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSUserNotificationCenterDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSUserNotificationCenterDelegate, + ); + } +} + +extension NSUserNotificationCenterDelegate$Methods + on NSUserNotificationCenterDelegate { + /// userNotificationCenter:didActivateNotification: + @Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', + ) + void userNotificationCenter( + NSUserNotificationCenter center, { + required NSUserNotification didActivateNotification, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = center.ref; + final _$$ref$2 = didActivateNotification.ref; + objc.checkOsVersionInternal( + 'NSUserNotificationCenterDelegate.userNotificationCenter:didActivateNotification:', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_userNotificationCenter_didActivateNotification_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserNotificationCenterDelegate', + 'userNotificationCenter:didActivateNotification:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_userNotificationCenter_didActivateNotification_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// userNotificationCenter:didDeliverNotification: + @Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', + ) + void userNotificationCenter$1( + NSUserNotificationCenter center, { + required NSUserNotification didDeliverNotification, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = center.ref; + final _$$ref$2 = didDeliverNotification.ref; + objc.checkOsVersionInternal( + 'NSUserNotificationCenterDelegate.userNotificationCenter:didDeliverNotification:', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_userNotificationCenter_didDeliverNotification_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserNotificationCenterDelegate', + 'userNotificationCenter:didDeliverNotification:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_userNotificationCenter_didDeliverNotification_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// userNotificationCenter:shouldPresentNotification: + @Deprecated( + 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', + ) + bool userNotificationCenter$2( + NSUserNotificationCenter center, { + required NSUserNotification shouldPresentNotification, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = center.ref; + final _$$ref$2 = shouldPresentNotification.ref; + objc.checkOsVersionInternal( + 'NSUserNotificationCenterDelegate.userNotificationCenter:shouldPresentNotification:', + iOS: (true, null), + macOS: (false, (10, 8, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_userNotificationCenter_shouldPresentNotification_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSUserNotificationCenterDelegate', + 'userNotificationCenter:shouldPresentNotification:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_userNotificationCenter_shouldPresentNotification_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSUserNotificationCenterDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => objc.Protocol.fromPointer( + _protocol_NSUserNotificationCenterDelegate.cast(), + ); + + /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserNotificationCenterDelegate implement({ + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserNotificationCenterDelegate', + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implement(builder, userNotificationCenter_didActivateNotification_); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implement(builder, userNotificationCenter_didDeliverNotification_); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + return NSUserNotificationCenterDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implement(builder, userNotificationCenter_didActivateNotification_); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implement(builder, userNotificationCenter_didDeliverNotification_); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserNotificationCenterDelegate implementAsListener({ + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserNotificationCenterDelegate', + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implementAsListener( + builder, + userNotificationCenter_didActivateNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implementAsListener( + builder, + userNotificationCenter_didDeliverNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + return NSUserNotificationCenterDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implementAsListener( + builder, + userNotificationCenter_didActivateNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implementAsListener( + builder, + userNotificationCenter_didDeliverNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSUserNotificationCenterDelegate implementAsBlocking({ + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSUserNotificationCenterDelegate', + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implementAsBlocking( + builder, + userNotificationCenter_didActivateNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implementAsBlocking( + builder, + userNotificationCenter_didDeliverNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + return NSUserNotificationCenterDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didActivateNotification_, + void Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_didDeliverNotification_, + bool Function(NSUserNotificationCenter, NSUserNotification)? + userNotificationCenter_shouldPresentNotification_, + bool $keepIsolateAlive = true, + }) { + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didActivateNotification_ + .implementAsBlocking( + builder, + userNotificationCenter_didActivateNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_didDeliverNotification_ + .implementAsBlocking( + builder, + userNotificationCenter_didDeliverNotification_, + ); + NSUserNotificationCenterDelegate$Builder + .userNotificationCenter_shouldPresentNotification_ + .implement(builder, userNotificationCenter_shouldPresentNotification_); + builder.addProtocol($protocol); + } + + /// userNotificationCenter:didActivateNotification: + static final userNotificationCenter_didActivateNotification_ = + objc.ObjCProtocolListenableMethod< + void Function(NSUserNotificationCenter, NSUserNotification) + >( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_didActivateNotification_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_didActivateNotification_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.listener( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.blocking( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + ); + + /// userNotificationCenter:didDeliverNotification: + static final userNotificationCenter_didDeliverNotification_ = + objc.ObjCProtocolListenableMethod< + void Function(NSUserNotificationCenter, NSUserNotification) + >( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_didDeliverNotification_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_didDeliverNotification_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.listener( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + (void Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.blocking( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + ); + + /// userNotificationCenter:shouldPresentNotification: + static final userNotificationCenter_shouldPresentNotification_ = + objc.ObjCProtocolMethod< + bool Function(NSUserNotificationCenter, NSUserNotification) + >( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_shouldPresentNotification_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSUserNotificationCenterDelegate, + _sel_userNotificationCenter_shouldPresentNotification_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSUserNotificationCenter, NSUserNotification) func) => + ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( + ( + ffi.Pointer _, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) => func(arg1, arg2), + ), + ); +} + +typedef NSUserScriptTaskCompletionHandler = ffi.Pointer; +typedef DartNSUserScriptTaskCompletionHandler = + objc.ObjCBlock; +typedef NSUserUnixTaskCompletionHandler = ffi.Pointer; +typedef DartNSUserUnixTaskCompletionHandler = + objc.ObjCBlock; + +const int NSValidationErrorMaximum = 2047; + +const int NSValidationErrorMinimum = 1024; + +/// NSValueCreation +extension NSValueCreation on objc.NSValue { + /// value:withObjCType: + static objc.NSValue value( + ffi.Pointer value, { + required ffi.Pointer withObjCType, + }) { + final $ret = _objc_msgSend_e9mncn( + _class_NSValue, + _sel_value_withObjCType_, + value, + withObjCType, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } + + /// valueWithBytes:objCType: + static objc.NSValue valueWithBytes( + ffi.Pointer value, { + required ffi.Pointer objCType, + }) { + final $ret = _objc_msgSend_e9mncn( + _class_NSValue, + _sel_valueWithBytes_objCType_, + value, + objCType, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } +} + +/// NSValueExtensionMethods +extension NSValueExtensionMethods on objc.NSValue { + /// isEqualToValue: + bool isEqualToValue(objc.NSValue value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_isEqualToValue_, + _$$ref$1.pointer, + ); + } + + /// nonretainedObjectValue + objc.ObjCObject? get nonretainedObjectValue { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_nonretainedObjectValue, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// pointerValue + ffi.Pointer get pointerValue { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_pointerValue); + } + + /// valueWithNonretainedObject: + static objc.NSValue valueWithNonretainedObject(objc.ObjCObject? anObject) { + final _$$ref = anObject?.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSValue, + _sel_valueWithNonretainedObject_, + _$$ref?.pointer ?? ffi.nullptr, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } + + /// valueWithPointer: + static objc.NSValue valueWithPointer(ffi.Pointer pointer) { + final $ret = _objc_msgSend_1mbt9g9( + _class_NSValue, + _sel_valueWithPointer_, + pointer, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } +} + +/// NSValueGeometryExtensions +extension NSValueGeometryExtensions on objc.NSValue { + /// edgeInsetsValue + objc.NSEdgeInsets get edgeInsetsValue { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSValue.edgeInsetsValue', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_sl0cgwStret($ptr, _$$ref.pointer, _sel_edgeInsetsValue) + : $ptr.ref = _objc_msgSend_sl0cgw(_$$ref.pointer, _sel_edgeInsetsValue); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// pointValue + NSPoint get pointValue { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1uwdhlkStret($ptr, _$$ref.pointer, _sel_pointValue) + : $ptr.ref = _objc_msgSend_1uwdhlk(_$$ref.pointer, _sel_pointValue); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// rectValue + NSRect get rectValue { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_bu1hbwStret($ptr, _$$ref.pointer, _sel_rectValue) + : $ptr.ref = _objc_msgSend_bu1hbw(_$$ref.pointer, _sel_rectValue); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// sizeValue + NSSize get sizeValue { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_sizeValue) + : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_sizeValue); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// valueWithEdgeInsets: + static objc.NSValue valueWithEdgeInsets(objc.NSEdgeInsets insets) { + objc.checkOsVersionInternal( + 'NSValue.valueWithEdgeInsets:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $ret = _objc_msgSend_sax6zm( + _class_NSValue, + _sel_valueWithEdgeInsets_, + insets, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } + + /// valueWithPoint: + static objc.NSValue valueWithPoint(NSPoint point) { + final $ret = _objc_msgSend_wgkxx2( + _class_NSValue, + _sel_valueWithPoint_, + point, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } + + /// valueWithRect: + static objc.NSValue valueWithRect(NSRect rect) { + final $ret = _objc_msgSend_15yz4e6( + _class_NSValue, + _sel_valueWithRect_, + rect, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } + + /// valueWithSize: + static objc.NSValue valueWithSize(NSSize size) { + final $ret = _objc_msgSend_1c2zpn3( + _class_NSValue, + _sel_valueWithSize_, + size, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } +} + +/// NSValueRangeExtensions +extension NSValueRangeExtensions on objc.NSValue { + /// rangeValue + NSRange get rangeValue { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_rangeValue) + : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_rangeValue); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// valueWithRange: + static objc.NSValue valueWithRange(NSRange range) { + final $ret = _objc_msgSend_1k1o1s7( + _class_NSValue, + _sel_valueWithRange_, + range, + ); + return objc.NSValue.fromPointer($ret, retain: true, release: true); + } +} + +typedef NSValueTransformerName = ffi.Pointer; +typedef DartNSValueTransformerName = objc.NSString; + +/// WARNING: NSView is a stub. To generate bindings for this class, include +/// NSView in your config's objc-interfaces list. +/// +/// NSView +extension type NSView._(objc.ObjCObject object$) implements objc.ObjCObject { + /// Constructs a [NSView] that points to the same underlying object as [other]. + NSView.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSView] that wraps the given raw object pointer. + NSView.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +sealed class NSVolumeEnumerationOptions { + static const NSVolumeEnumerationSkipHiddenVolumes = 2; + static const NSVolumeEnumerationProduceFileReferenceURLs = 4; +} + +enum NSWhoseSubelementIdentifier { + NSIndexSubelement(0), + NSEverySubelement(1), + NSMiddleSubelement(2), + NSRandomSubelement(3), + NSNoSubelement(4); + + final int value; + const NSWhoseSubelementIdentifier(this.value); + + static NSWhoseSubelementIdentifier fromValue(int value) => switch (value) { + 0 => NSIndexSubelement, + 1 => NSEverySubelement, + 2 => NSMiddleSubelement, + 3 => NSRandomSubelement, + 4 => NSNoSubelement, + _ => throw ArgumentError( + 'Unknown value for NSWhoseSubelementIdentifier: $value', + ), + }; +} + +@Deprecated('Not supported') +const int NSWindows95OperatingSystem = 2; + +const int NSWindowsCP1250StringEncoding = 15; + +const int NSWindowsCP1251StringEncoding = 11; + +const int NSWindowsCP1252StringEncoding = 12; + +const int NSWindowsCP1253StringEncoding = 13; + +const int NSWindowsCP1254StringEncoding = 14; + +@Deprecated('Not supported') +const int NSWindowsNTOperatingSystem = 1; + +@Deprecated('Deprecated') +const int NSWrapCalendarComponents = 1; + +enum NSXMLDTDNodeKind { + NSXMLEntityGeneralKind(1), + NSXMLEntityParsedKind(2), + NSXMLEntityUnparsedKind(3), + NSXMLEntityParameterKind(4), + NSXMLEntityPredefined(5), + NSXMLAttributeCDATAKind(6), + NSXMLAttributeIDKind(7), + NSXMLAttributeIDRefKind(8), + NSXMLAttributeIDRefsKind(9), + NSXMLAttributeEntityKind(10), + NSXMLAttributeEntitiesKind(11), + NSXMLAttributeNMTokenKind(12), + NSXMLAttributeNMTokensKind(13), + NSXMLAttributeEnumerationKind(14), + NSXMLAttributeNotationKind(15), + NSXMLElementDeclarationUndefinedKind(16), + NSXMLElementDeclarationEmptyKind(17), + NSXMLElementDeclarationAnyKind(18), + NSXMLElementDeclarationMixedKind(19), + NSXMLElementDeclarationElementKind(20); + + final int value; + const NSXMLDTDNodeKind(this.value); + + static NSXMLDTDNodeKind fromValue(int value) => switch (value) { + 1 => NSXMLEntityGeneralKind, + 2 => NSXMLEntityParsedKind, + 3 => NSXMLEntityUnparsedKind, + 4 => NSXMLEntityParameterKind, + 5 => NSXMLEntityPredefined, + 6 => NSXMLAttributeCDATAKind, + 7 => NSXMLAttributeIDKind, + 8 => NSXMLAttributeIDRefKind, + 9 => NSXMLAttributeIDRefsKind, + 10 => NSXMLAttributeEntityKind, + 11 => NSXMLAttributeEntitiesKind, + 12 => NSXMLAttributeNMTokenKind, + 13 => NSXMLAttributeNMTokensKind, + 14 => NSXMLAttributeEnumerationKind, + 15 => NSXMLAttributeNotationKind, + 16 => NSXMLElementDeclarationUndefinedKind, + 17 => NSXMLElementDeclarationEmptyKind, + 18 => NSXMLElementDeclarationAnyKind, + 19 => NSXMLElementDeclarationMixedKind, + 20 => NSXMLElementDeclarationElementKind, + _ => throw ArgumentError('Unknown value for NSXMLDTDNodeKind: $value'), + }; +} + +enum NSXMLDocumentContentKind { + NSXMLDocumentXMLKind(0), + NSXMLDocumentXHTMLKind(1), + NSXMLDocumentHTMLKind(2), + NSXMLDocumentTextKind(3); + + final int value; + const NSXMLDocumentContentKind(this.value); + + static NSXMLDocumentContentKind fromValue(int value) => switch (value) { + 0 => NSXMLDocumentXMLKind, + 1 => NSXMLDocumentXHTMLKind, + 2 => NSXMLDocumentHTMLKind, + 3 => NSXMLDocumentTextKind, + _ => throw ArgumentError( + 'Unknown value for NSXMLDocumentContentKind: $value', + ), + }; +} + +/// WARNING: NSXMLElement is a stub. To generate bindings for this class, include +/// NSXMLElement in your config's objc-interfaces list. +/// +/// NSXMLElement +extension type NSXMLElement._(objc.ObjCObject object$) + implements objc.ObjCObject, NSXMLNode { + /// Constructs a [NSXMLElement] that points to the same underlying object as [other]. + NSXMLElement.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSXMLElement] that wraps the given raw object pointer. + NSXMLElement.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// WARNING: NSXMLNode is a stub. To generate bindings for this class, include +/// NSXMLNode in your config's objc-interfaces list. +/// +/// NSXMLNode +extension type NSXMLNode._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCopying { + /// Constructs a [NSXMLNode] that points to the same underlying object as [other]. + NSXMLNode.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSXMLNode] that wraps the given raw object pointer. + NSXMLNode.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +enum NSXMLNodeKind { + NSXMLInvalidKind(0), + NSXMLDocumentKind(1), + NSXMLElementKind(2), + NSXMLAttributeKind(3), + NSXMLNamespaceKind(4), + NSXMLProcessingInstructionKind(5), + NSXMLCommentKind(6), + NSXMLTextKind(7), + NSXMLDTDKind(8), + NSXMLEntityDeclarationKind(9), + NSXMLAttributeDeclarationKind(10), + NSXMLElementDeclarationKind(11), + NSXMLNotationDeclarationKind(12); + + final int value; + const NSXMLNodeKind(this.value); + + static NSXMLNodeKind fromValue(int value) => switch (value) { + 0 => NSXMLInvalidKind, + 1 => NSXMLDocumentKind, + 2 => NSXMLElementKind, + 3 => NSXMLAttributeKind, + 4 => NSXMLNamespaceKind, + 5 => NSXMLProcessingInstructionKind, + 6 => NSXMLCommentKind, + 7 => NSXMLTextKind, + 8 => NSXMLDTDKind, + 9 => NSXMLEntityDeclarationKind, + 10 => NSXMLAttributeDeclarationKind, + 11 => NSXMLElementDeclarationKind, + 12 => NSXMLNotationDeclarationKind, + _ => throw ArgumentError('Unknown value for NSXMLNodeKind: $value'), + }; +} + +sealed class NSXMLNodeOptions { + static const NSXMLNodeOptionsNone = 0; + static const NSXMLNodeIsCDATA = 1; + static const NSXMLNodeExpandEmptyElement = 2; + static const NSXMLNodeCompactEmptyElement = 4; + static const NSXMLNodeUseSingleQuotes = 8; + static const NSXMLNodeUseDoubleQuotes = 16; + static const NSXMLNodeNeverEscapeContents = 32; + static const NSXMLDocumentTidyHTML = 512; + static const NSXMLDocumentTidyXML = 1024; + static const NSXMLDocumentValidate = 8192; + static const NSXMLNodeLoadExternalEntitiesAlways = 16384; + static const NSXMLNodeLoadExternalEntitiesSameOriginOnly = 32768; + static const NSXMLNodeLoadExternalEntitiesNever = 524288; + static const NSXMLDocumentXInclude = 65536; + static const NSXMLNodePrettyPrint = 131072; + static const NSXMLDocumentIncludeContentTypeDeclaration = 262144; + static const NSXMLNodePreserveNamespaceOrder = 1048576; + static const NSXMLNodePreserveAttributeOrder = 2097152; + static const NSXMLNodePreserveEntities = 4194304; + static const NSXMLNodePreservePrefixes = 8388608; + static const NSXMLNodePreserveCDATA = 16777216; + static const NSXMLNodePreserveWhitespace = 33554432; + static const NSXMLNodePreserveDTD = 67108864; + static const NSXMLNodePreserveCharacterReferences = 134217728; + static const NSXMLNodePromoteSignificantWhitespace = 268435456; + static const NSXMLNodePreserveEmptyElements = 6; + static const NSXMLNodePreserveQuotes = 24; + static const NSXMLNodePreserveAll = 4293918750; +} + +/// WARNING: NSXMLParser is a stub. To generate bindings for this class, include +/// NSXMLParser in your config's objc-interfaces list. +/// +/// NSXMLParser +extension type NSXMLParser._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSXMLParser] that points to the same underlying object as [other]. + NSXMLParser.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSXMLParser] that wraps the given raw object pointer. + NSXMLParser.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// NSXMLParserDelegate +extension type NSXMLParserDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSXMLParserDelegate] that points to the same underlying object as [other]. + NSXMLParserDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSXMLParserDelegate] that wraps the given raw object pointer. + NSXMLParserDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSXMLParserDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSXMLParserDelegate, + ); + } +} + +extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { + /// parser:didEndElement:namespaceURI:qualifiedName: + void parser( + NSXMLParser parser, { + required objc.NSString didEndElement, + objc.NSString? namespaceURI, + objc.NSString? qualifiedName, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = didEndElement.ref; + final _$$ref$3 = namespaceURI?.ref; + final _$$ref$4 = qualifiedName?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_didEndElement_namespaceURI_qualifiedName_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:didEndElement:namespaceURI:qualifiedName:', + ); + } + _objc_msgSend_mlcr8l( + _$$ref.pointer, + _sel_parser_didEndElement_namespaceURI_qualifiedName_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + ); + } + + /// parser:didEndMappingPrefix: + void parser$1( + NSXMLParser parser, { + required objc.NSString didEndMappingPrefix, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = didEndMappingPrefix.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_didEndMappingPrefix_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:didEndMappingPrefix:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_didEndMappingPrefix_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:didStartElement:namespaceURI:qualifiedName:attributes: + void parser$2( + NSXMLParser parser, { + required objc.NSString didStartElement, + objc.NSString? namespaceURI, + objc.NSString? qualifiedName, + required objc.NSDictionary attributes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = didStartElement.ref; + final _$$ref$3 = namespaceURI?.ref; + final _$$ref$4 = qualifiedName?.ref; + final _$$ref$5 = attributes.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:didStartElement:namespaceURI:qualifiedName:attributes:', + ); + } + _objc_msgSend_1wqutdn( + _$$ref.pointer, + _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + _$$ref$5.pointer, + ); + } + + /// parser:didStartMappingPrefix:toURI: + void parser$3( + NSXMLParser parser, { + required objc.NSString didStartMappingPrefix, + required objc.NSString toURI, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = didStartMappingPrefix.ref; + final _$$ref$3 = toURI.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_didStartMappingPrefix_toURI_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:didStartMappingPrefix:toURI:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_parser_didStartMappingPrefix_toURI_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: + void parser$4( + NSXMLParser parser, { + required objc.NSString foundAttributeDeclarationWithName, + required objc.NSString forElement, + objc.NSString? type, + objc.NSString? defaultValue, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundAttributeDeclarationWithName.ref; + final _$$ref$3 = forElement.ref; + final _$$ref$4 = type?.ref; + final _$$ref$5 = defaultValue?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:', + ); + } + _objc_msgSend_1wqutdn( + _$$ref.pointer, + _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4?.pointer ?? ffi.nullptr, + _$$ref$5?.pointer ?? ffi.nullptr, + ); + } + + /// parser:foundCDATA: + void parser$5(NSXMLParser parser, {required objc.NSData foundCDATA}) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundCDATA.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_parser_foundCDATA_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundCDATA:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_foundCDATA_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:foundCharacters: + void parser$6(NSXMLParser parser, {required objc.NSString foundCharacters}) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundCharacters.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundCharacters_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundCharacters:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_foundCharacters_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:foundComment: + void parser$7(NSXMLParser parser, {required objc.NSString foundComment}) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundComment.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_parser_foundComment_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundComment:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_foundComment_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:foundElementDeclarationWithName:model: + void parser$8( + NSXMLParser parser, { + required objc.NSString foundElementDeclarationWithName, + required objc.NSString model, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundElementDeclarationWithName.ref; + final _$$ref$3 = model.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundElementDeclarationWithName_model_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundElementDeclarationWithName:model:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_parser_foundElementDeclarationWithName_model_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } + + /// parser:foundExternalEntityDeclarationWithName:publicID:systemID: + void parser$9( + NSXMLParser parser, { + required objc.NSString foundExternalEntityDeclarationWithName, + objc.NSString? publicID, + objc.NSString? systemID, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundExternalEntityDeclarationWithName.ref; + final _$$ref$3 = publicID?.ref; + final _$$ref$4 = systemID?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundExternalEntityDeclarationWithName:publicID:systemID:', + ); + } + _objc_msgSend_mlcr8l( + _$$ref.pointer, + _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + ); + } + + /// parser:foundIgnorableWhitespace: + void parser$10( + NSXMLParser parser, { + required objc.NSString foundIgnorableWhitespace, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundIgnorableWhitespace.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundIgnorableWhitespace_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundIgnorableWhitespace:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_foundIgnorableWhitespace_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:foundInternalEntityDeclarationWithName:value: + void parser$11( + NSXMLParser parser, { + required objc.NSString foundInternalEntityDeclarationWithName, + objc.NSString? value, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundInternalEntityDeclarationWithName.ref; + final _$$ref$3 = value?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundInternalEntityDeclarationWithName_value_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundInternalEntityDeclarationWithName:value:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_parser_foundInternalEntityDeclarationWithName_value_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// parser:foundNotationDeclarationWithName:publicID:systemID: + void parser$12( + NSXMLParser parser, { + required objc.NSString foundNotationDeclarationWithName, + objc.NSString? publicID, + objc.NSString? systemID, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundNotationDeclarationWithName.ref; + final _$$ref$3 = publicID?.ref; + final _$$ref$4 = systemID?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundNotationDeclarationWithName:publicID:systemID:', + ); + } + _objc_msgSend_mlcr8l( + _$$ref.pointer, + _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + ); + } + + /// parser:foundProcessingInstructionWithTarget:data: + void parser$13( + NSXMLParser parser, { + required objc.NSString foundProcessingInstructionWithTarget, + objc.NSString? data, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundProcessingInstructionWithTarget.ref; + final _$$ref$3 = data?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundProcessingInstructionWithTarget_data_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundProcessingInstructionWithTarget:data:', + ); + } + _objc_msgSend_r8gdi7( + _$$ref.pointer, + _sel_parser_foundProcessingInstructionWithTarget_data_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } + + /// parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName: + void parser$14( + NSXMLParser parser, { + required objc.NSString foundUnparsedEntityDeclarationWithName, + objc.NSString? publicID, + objc.NSString? systemID, + objc.NSString? notationName, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = foundUnparsedEntityDeclarationWithName.ref; + final _$$ref$3 = publicID?.ref; + final _$$ref$4 = systemID?.ref; + final _$$ref$5 = notationName?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:', + ); + } + _objc_msgSend_1wqutdn( + _$$ref.pointer, + _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + _$$ref$5?.pointer ?? ffi.nullptr, + ); + } + + /// parser:parseErrorOccurred: + void parser$15( + NSXMLParser parser, { + required objc.NSError parseErrorOccurred, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = parseErrorOccurred.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_parseErrorOccurred_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:parseErrorOccurred:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_parseErrorOccurred_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parser:resolveExternalEntityName:systemID: + objc.NSData? parser$16( + NSXMLParser parser, { + required objc.NSString resolveExternalEntityName, + objc.NSString? systemID, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = resolveExternalEntityName.ref; + final _$$ref$3 = systemID?.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_resolveExternalEntityName_systemID_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:resolveExternalEntityName:systemID:', + ); + } + final $ret = _objc_msgSend_11spmsz( + _$$ref.pointer, + _sel_parser_resolveExternalEntityName_systemID_, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// parser:validationErrorOccurred: + void parser$17( + NSXMLParser parser, { + required objc.NSError validationErrorOccurred, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + final _$$ref$2 = validationErrorOccurred.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parser_validationErrorOccurred_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parser:validationErrorOccurred:', + ); + } + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_parser_validationErrorOccurred_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// parserDidEndDocument: + void parserDidEndDocument(NSXMLParser parser) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + if (!objc.respondsToSelector(_$$ref.pointer, _sel_parserDidEndDocument_)) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parserDidEndDocument:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_parserDidEndDocument_, + _$$ref$1.pointer, + ); + } + + /// parserDidStartDocument: + void parserDidStartDocument(NSXMLParser parser) { + final _$$ref = object$.ref; + final _$$ref$1 = parser.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_parserDidStartDocument_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXMLParserDelegate', + 'parserDidStartDocument:', + ); + } + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_parserDidStartDocument_, + _$$ref$1.pointer, + ); + } +} + +interface class NSXMLParserDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSXMLParserDelegate.cast()); + + /// Builds an object that implements the NSXMLParserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSXMLParserDelegate implement({ + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implement(builder, parser_didEndElement_namespaceURI_qualifiedName_); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implement( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implement( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_.implement( + builder, + parser_didStartMappingPrefix_toURI_, + ); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implement( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implement( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implement( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implement( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implement(builder, parser_foundElementDeclarationWithName_model_); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implement( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_.implement( + builder, + parser_foundIgnorableWhitespace_, + ); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implement( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implement( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implement(builder, parser_foundProcessingInstructionWithTarget_data_); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implement( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implement( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_.implement( + builder, + parser_validationErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implement( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implement( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + return NSXMLParserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSXMLParserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implement(builder, parser_didEndElement_namespaceURI_qualifiedName_); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implement( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implement( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_.implement( + builder, + parser_didStartMappingPrefix_toURI_, + ); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implement( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implement( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implement( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implement( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implement(builder, parser_foundElementDeclarationWithName_model_); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implement( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_.implement( + builder, + parser_foundIgnorableWhitespace_, + ); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implement( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implement( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implement(builder, parser_foundProcessingInstructionWithTarget_data_); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implement( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implement( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_.implement( + builder, + parser_validationErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implement( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implement( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSXMLParserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSXMLParserDelegate implementAsListener({ + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implementAsListener( + builder, + parser_didEndElement_namespaceURI_qualifiedName_, + ); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsListener( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implementAsListener( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ + .implementAsListener(builder, parser_didStartMappingPrefix_toURI_); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implementAsListener( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsListener( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsListener( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implementAsListener( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implementAsListener( + builder, + parser_foundElementDeclarationWithName_model_, + ); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implementAsListener( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ + .implementAsListener(builder, parser_foundIgnorableWhitespace_); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implementAsListener( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implementAsListener( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implementAsListener( + builder, + parser_foundProcessingInstructionWithTarget_data_, + ); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implementAsListener( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsListener( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ + .implementAsListener(builder, parser_validationErrorOccurred_); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsListener( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsListener( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + return NSXMLParserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSXMLParserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implementAsListener( + builder, + parser_didEndElement_namespaceURI_qualifiedName_, + ); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsListener( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implementAsListener( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ + .implementAsListener(builder, parser_didStartMappingPrefix_toURI_); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implementAsListener( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsListener( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsListener( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implementAsListener( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implementAsListener( + builder, + parser_foundElementDeclarationWithName_model_, + ); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implementAsListener( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ + .implementAsListener(builder, parser_foundIgnorableWhitespace_); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implementAsListener( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implementAsListener( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implementAsListener( + builder, + parser_foundProcessingInstructionWithTarget_data_, + ); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implementAsListener( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsListener( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ + .implementAsListener(builder, parser_validationErrorOccurred_); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsListener( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsListener( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSXMLParserDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSXMLParserDelegate implementAsBlocking({ + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implementAsBlocking( + builder, + parser_didEndElement_namespaceURI_qualifiedName_, + ); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsBlocking( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implementAsBlocking( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ + .implementAsBlocking(builder, parser_didStartMappingPrefix_toURI_); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implementAsBlocking( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsBlocking( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsBlocking( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implementAsBlocking( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implementAsBlocking( + builder, + parser_foundElementDeclarationWithName_model_, + ); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implementAsBlocking( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ + .implementAsBlocking(builder, parser_foundIgnorableWhitespace_); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implementAsBlocking( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implementAsBlocking( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implementAsBlocking( + builder, + parser_foundProcessingInstructionWithTarget_data_, + ); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implementAsBlocking( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsBlocking( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ + .implementAsBlocking(builder, parser_validationErrorOccurred_); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsBlocking( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsBlocking( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + return NSXMLParserDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSXMLParserDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_didEndElement_namespaceURI_qualifiedName_, + void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + )? + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_didStartMappingPrefix_toURI_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + )? + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, + void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, + void Function(NSXMLParser, objc.NSString)? parser_foundComment_, + void Function(NSXMLParser, objc.NSString, objc.NSString)? + parser_foundElementDeclarationWithName_model_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundInternalEntityDeclarationWithName_value_, + void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? + parser_foundNotationDeclarationWithName_publicID_systemID_, + void Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_foundProcessingInstructionWithTarget_data_, + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + )? + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? + parser_resolveExternalEntityName_systemID_, + void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, + void Function(NSXMLParser)? parserDidEndDocument_, + void Function(NSXMLParser)? parserDidStartDocument_, + bool $keepIsolateAlive = true, + }) { + NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ + .implementAsBlocking( + builder, + parser_didEndElement_namespaceURI_qualifiedName_, + ); + NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsBlocking( + builder, + parser_didEndMappingPrefix_, + ); + NSXMLParserDelegate$Builder + .parser_didStartElement_namespaceURI_qualifiedName_attributes_ + .implementAsBlocking( + builder, + parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ); + NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ + .implementAsBlocking(builder, parser_didStartMappingPrefix_toURI_); + NSXMLParserDelegate$Builder + .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ + .implementAsBlocking( + builder, + parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ); + NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsBlocking( + builder, + parser_foundCDATA_, + ); + NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsBlocking( + builder, + parser_foundCharacters_, + ); + NSXMLParserDelegate$Builder.parser_foundComment_.implementAsBlocking( + builder, + parser_foundComment_, + ); + NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ + .implementAsBlocking( + builder, + parser_foundElementDeclarationWithName_model_, + ); + NSXMLParserDelegate$Builder + .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ + .implementAsBlocking( + builder, + parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ + .implementAsBlocking(builder, parser_foundIgnorableWhitespace_); + NSXMLParserDelegate$Builder + .parser_foundInternalEntityDeclarationWithName_value_ + .implementAsBlocking( + builder, + parser_foundInternalEntityDeclarationWithName_value_, + ); + NSXMLParserDelegate$Builder + .parser_foundNotationDeclarationWithName_publicID_systemID_ + .implementAsBlocking( + builder, + parser_foundNotationDeclarationWithName_publicID_systemID_, + ); + NSXMLParserDelegate$Builder + .parser_foundProcessingInstructionWithTarget_data_ + .implementAsBlocking( + builder, + parser_foundProcessingInstructionWithTarget_data_, + ); + NSXMLParserDelegate$Builder + .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ + .implementAsBlocking( + builder, + parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ); + NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsBlocking( + builder, + parser_parseErrorOccurred_, + ); + NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ + .implement(builder, parser_resolveExternalEntityName_systemID_); + NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ + .implementAsBlocking(builder, parser_validationErrorOccurred_); + NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsBlocking( + builder, + parserDidEndDocument_, + ); + NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsBlocking( + builder, + parserDidStartDocument_, + ); + builder.addProtocol($protocol); + } + + /// parser:didEndElement:namespaceURI:qualifiedName: + static final parser_didEndElement_namespaceURI_qualifiedName_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_didEndElement_namespaceURI_qualifiedName_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_8jfq1p) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_didEndElement_namespaceURI_qualifiedName_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// parser:didEndMappingPrefix: + static final parser_didEndMappingPrefix_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_didEndMappingPrefix_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_didEndMappingPrefix_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + ); + + /// parser:didStartElement:namespaceURI:qualifiedName:attributes: + static final parser_didStartElement_namespaceURI_qualifiedName_attributes_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_m09tr7) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSDictionary arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSDictionary arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSDictionary arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// parser:didStartMappingPrefix:toURI: + static final parser_didStartMappingPrefix_toURI_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_didStartMappingPrefix_toURI_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_didStartMappingPrefix_toURI_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: + static final parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_m09tr7) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// parser:foundCDATA: + static final parser_foundCDATA_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSData) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundCDATA_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundCDATA_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSData) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => + func(arg1, arg2), + ), + ); + + /// parser:foundCharacters: + static final parser_foundCharacters_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundCharacters_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundCharacters_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + ); + + /// parser:foundComment: + static final parser_foundComment_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundComment_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundComment_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + ); + + /// parser:foundElementDeclarationWithName:model: + static final parser_foundElementDeclarationWithName_model_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundElementDeclarationWithName_model_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundElementDeclarationWithName_model_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// parser:foundExternalEntityDeclarationWithName:publicID:systemID: + static final parser_foundExternalEntityDeclarationWithName_publicID_systemID_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_8jfq1p) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// parser:foundIgnorableWhitespace: + static final parser_foundIgnorableWhitespace_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundIgnorableWhitespace_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundIgnorableWhitespace_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => + func(arg1, arg2), + ), + ); + + /// parser:foundInternalEntityDeclarationWithName:value: + static final parser_foundInternalEntityDeclarationWithName_value_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString, objc.NSString?) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundInternalEntityDeclarationWithName_value_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundInternalEntityDeclarationWithName_value_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// parser:foundNotationDeclarationWithName:publicID:systemID: + static final parser_foundNotationDeclarationWithName_publicID_systemID_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_8jfq1p) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); + + /// parser:foundProcessingInstructionWithTarget:data: + static final parser_foundProcessingInstructionWithTarget_data_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSString, objc.NSString?) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundProcessingInstructionWithTarget_data_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1tz5yf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundProcessingInstructionWithTarget_data_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName: + static final parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_m09tr7) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, + isRequired: false, + isInstanceMethod: true, + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.listener( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ( + void Function( + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.blocking( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) => func(arg1, arg2, arg3, arg4, arg5), + ), + ); + + /// parser:parseErrorOccurred: + static final parser_parseErrorOccurred_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSError) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_parseErrorOccurred_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_parseErrorOccurred_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + ); + + /// parser:resolveExternalEntityName:systemID: + static final parser_resolveExternalEntityName_systemID_ = + objc.ObjCProtocolMethod< + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_resolveExternalEntityName_systemID_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1yw2rcr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_resolveExternalEntityName_systemID_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?) + func, + ) => + ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// parser:validationErrorOccurred: + static final parser_validationErrorOccurred_ = + objc.ObjCProtocolListenableMethod< + void Function(NSXMLParser, objc.NSError) + >( + _protocol_NSXMLParserDelegate, + _sel_parser_validationErrorOccurred_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parser_validationErrorOccurred_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.fromFunction( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.listener( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + (void Function(NSXMLParser, objc.NSError) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.blocking( + (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => + func(arg1, arg2), + ), + ); + + /// parserDidEndDocument: + static final parserDidEndDocument_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSXMLParserDelegate, + _sel_parserDidEndDocument_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parserDidEndDocument_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.fromFunction( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.listener( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.blocking( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + ); + + /// parserDidStartDocument: + static final parserDidStartDocument_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSXMLParserDelegate, + _sel_parserDidStartDocument_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXMLParserDelegate, + _sel_parserDidStartDocument_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.fromFunction( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.listener( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + (void Function(NSXMLParser) func) => + ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.blocking( + (ffi.Pointer _, NSXMLParser arg1) => func(arg1), + ), + ); +} + +enum NSXMLParserError { + NSXMLParserInternalError(1), + NSXMLParserOutOfMemoryError(2), + NSXMLParserDocumentStartError(3), + NSXMLParserEmptyDocumentError(4), + NSXMLParserPrematureDocumentEndError(5), + NSXMLParserInvalidHexCharacterRefError(6), + NSXMLParserInvalidDecimalCharacterRefError(7), + NSXMLParserInvalidCharacterRefError(8), + NSXMLParserInvalidCharacterError(9), + NSXMLParserCharacterRefAtEOFError(10), + NSXMLParserCharacterRefInPrologError(11), + NSXMLParserCharacterRefInEpilogError(12), + NSXMLParserCharacterRefInDTDError(13), + NSXMLParserEntityRefAtEOFError(14), + NSXMLParserEntityRefInPrologError(15), + NSXMLParserEntityRefInEpilogError(16), + NSXMLParserEntityRefInDTDError(17), + NSXMLParserParsedEntityRefAtEOFError(18), + NSXMLParserParsedEntityRefInPrologError(19), + NSXMLParserParsedEntityRefInEpilogError(20), + NSXMLParserParsedEntityRefInInternalSubsetError(21), + NSXMLParserEntityReferenceWithoutNameError(22), + NSXMLParserEntityReferenceMissingSemiError(23), + NSXMLParserParsedEntityRefNoNameError(24), + NSXMLParserParsedEntityRefMissingSemiError(25), + NSXMLParserUndeclaredEntityError(26), + NSXMLParserUnparsedEntityError(28), + NSXMLParserEntityIsExternalError(29), + NSXMLParserEntityIsParameterError(30), + NSXMLParserUnknownEncodingError(31), + NSXMLParserEncodingNotSupportedError(32), + NSXMLParserStringNotStartedError(33), + NSXMLParserStringNotClosedError(34), + NSXMLParserNamespaceDeclarationError(35), + NSXMLParserEntityNotStartedError(36), + NSXMLParserEntityNotFinishedError(37), + NSXMLParserLessThanSymbolInAttributeError(38), + NSXMLParserAttributeNotStartedError(39), + NSXMLParserAttributeNotFinishedError(40), + NSXMLParserAttributeHasNoValueError(41), + NSXMLParserAttributeRedefinedError(42), + NSXMLParserLiteralNotStartedError(43), + NSXMLParserLiteralNotFinishedError(44), + NSXMLParserCommentNotFinishedError(45), + NSXMLParserProcessingInstructionNotStartedError(46), + NSXMLParserProcessingInstructionNotFinishedError(47), + NSXMLParserNotationNotStartedError(48), + NSXMLParserNotationNotFinishedError(49), + NSXMLParserAttributeListNotStartedError(50), + NSXMLParserAttributeListNotFinishedError(51), + NSXMLParserMixedContentDeclNotStartedError(52), + NSXMLParserMixedContentDeclNotFinishedError(53), + NSXMLParserElementContentDeclNotStartedError(54), + NSXMLParserElementContentDeclNotFinishedError(55), + NSXMLParserXMLDeclNotStartedError(56), + NSXMLParserXMLDeclNotFinishedError(57), + NSXMLParserConditionalSectionNotStartedError(58), + NSXMLParserConditionalSectionNotFinishedError(59), + NSXMLParserExternalSubsetNotFinishedError(60), + NSXMLParserDOCTYPEDeclNotFinishedError(61), + NSXMLParserMisplacedCDATAEndStringError(62), + NSXMLParserCDATANotFinishedError(63), + NSXMLParserMisplacedXMLDeclarationError(64), + NSXMLParserSpaceRequiredError(65), + NSXMLParserSeparatorRequiredError(66), + NSXMLParserNMTOKENRequiredError(67), + NSXMLParserNAMERequiredError(68), + NSXMLParserPCDATARequiredError(69), + NSXMLParserURIRequiredError(70), + NSXMLParserPublicIdentifierRequiredError(71), + NSXMLParserLTRequiredError(72), + NSXMLParserGTRequiredError(73), + NSXMLParserLTSlashRequiredError(74), + NSXMLParserEqualExpectedError(75), + NSXMLParserTagNameMismatchError(76), + NSXMLParserUnfinishedTagError(77), + NSXMLParserStandaloneValueError(78), + NSXMLParserInvalidEncodingNameError(79), + NSXMLParserCommentContainsDoubleHyphenError(80), + NSXMLParserInvalidEncodingError(81), + NSXMLParserExternalStandaloneEntityError(82), + NSXMLParserInvalidConditionalSectionError(83), + NSXMLParserEntityValueRequiredError(84), + NSXMLParserNotWellBalancedError(85), + NSXMLParserExtraContentError(86), + NSXMLParserInvalidCharacterInEntityError(87), + NSXMLParserParsedEntityRefInInternalError(88), + NSXMLParserEntityRefLoopError(89), + NSXMLParserEntityBoundaryError(90), + NSXMLParserInvalidURIError(91), + NSXMLParserURIFragmentError(92), + NSXMLParserNoDTDError(94), + NSXMLParserDelegateAbortedParseError(512); + + final int value; + const NSXMLParserError(this.value); + + static NSXMLParserError fromValue(int value) => switch (value) { + 1 => NSXMLParserInternalError, + 2 => NSXMLParserOutOfMemoryError, + 3 => NSXMLParserDocumentStartError, + 4 => NSXMLParserEmptyDocumentError, + 5 => NSXMLParserPrematureDocumentEndError, + 6 => NSXMLParserInvalidHexCharacterRefError, + 7 => NSXMLParserInvalidDecimalCharacterRefError, + 8 => NSXMLParserInvalidCharacterRefError, + 9 => NSXMLParserInvalidCharacterError, + 10 => NSXMLParserCharacterRefAtEOFError, + 11 => NSXMLParserCharacterRefInPrologError, + 12 => NSXMLParserCharacterRefInEpilogError, + 13 => NSXMLParserCharacterRefInDTDError, + 14 => NSXMLParserEntityRefAtEOFError, + 15 => NSXMLParserEntityRefInPrologError, + 16 => NSXMLParserEntityRefInEpilogError, + 17 => NSXMLParserEntityRefInDTDError, + 18 => NSXMLParserParsedEntityRefAtEOFError, + 19 => NSXMLParserParsedEntityRefInPrologError, + 20 => NSXMLParserParsedEntityRefInEpilogError, + 21 => NSXMLParserParsedEntityRefInInternalSubsetError, + 22 => NSXMLParserEntityReferenceWithoutNameError, + 23 => NSXMLParserEntityReferenceMissingSemiError, + 24 => NSXMLParserParsedEntityRefNoNameError, + 25 => NSXMLParserParsedEntityRefMissingSemiError, + 26 => NSXMLParserUndeclaredEntityError, + 28 => NSXMLParserUnparsedEntityError, + 29 => NSXMLParserEntityIsExternalError, + 30 => NSXMLParserEntityIsParameterError, + 31 => NSXMLParserUnknownEncodingError, + 32 => NSXMLParserEncodingNotSupportedError, + 33 => NSXMLParserStringNotStartedError, + 34 => NSXMLParserStringNotClosedError, + 35 => NSXMLParserNamespaceDeclarationError, + 36 => NSXMLParserEntityNotStartedError, + 37 => NSXMLParserEntityNotFinishedError, + 38 => NSXMLParserLessThanSymbolInAttributeError, + 39 => NSXMLParserAttributeNotStartedError, + 40 => NSXMLParserAttributeNotFinishedError, + 41 => NSXMLParserAttributeHasNoValueError, + 42 => NSXMLParserAttributeRedefinedError, + 43 => NSXMLParserLiteralNotStartedError, + 44 => NSXMLParserLiteralNotFinishedError, + 45 => NSXMLParserCommentNotFinishedError, + 46 => NSXMLParserProcessingInstructionNotStartedError, + 47 => NSXMLParserProcessingInstructionNotFinishedError, + 48 => NSXMLParserNotationNotStartedError, + 49 => NSXMLParserNotationNotFinishedError, + 50 => NSXMLParserAttributeListNotStartedError, + 51 => NSXMLParserAttributeListNotFinishedError, + 52 => NSXMLParserMixedContentDeclNotStartedError, + 53 => NSXMLParserMixedContentDeclNotFinishedError, + 54 => NSXMLParserElementContentDeclNotStartedError, + 55 => NSXMLParserElementContentDeclNotFinishedError, + 56 => NSXMLParserXMLDeclNotStartedError, + 57 => NSXMLParserXMLDeclNotFinishedError, + 58 => NSXMLParserConditionalSectionNotStartedError, + 59 => NSXMLParserConditionalSectionNotFinishedError, + 60 => NSXMLParserExternalSubsetNotFinishedError, + 61 => NSXMLParserDOCTYPEDeclNotFinishedError, + 62 => NSXMLParserMisplacedCDATAEndStringError, + 63 => NSXMLParserCDATANotFinishedError, + 64 => NSXMLParserMisplacedXMLDeclarationError, + 65 => NSXMLParserSpaceRequiredError, + 66 => NSXMLParserSeparatorRequiredError, + 67 => NSXMLParserNMTOKENRequiredError, + 68 => NSXMLParserNAMERequiredError, + 69 => NSXMLParserPCDATARequiredError, + 70 => NSXMLParserURIRequiredError, + 71 => NSXMLParserPublicIdentifierRequiredError, + 72 => NSXMLParserLTRequiredError, + 73 => NSXMLParserGTRequiredError, + 74 => NSXMLParserLTSlashRequiredError, + 75 => NSXMLParserEqualExpectedError, + 76 => NSXMLParserTagNameMismatchError, + 77 => NSXMLParserUnfinishedTagError, + 78 => NSXMLParserStandaloneValueError, + 79 => NSXMLParserInvalidEncodingNameError, + 80 => NSXMLParserCommentContainsDoubleHyphenError, + 81 => NSXMLParserInvalidEncodingError, + 82 => NSXMLParserExternalStandaloneEntityError, + 83 => NSXMLParserInvalidConditionalSectionError, + 84 => NSXMLParserEntityValueRequiredError, + 85 => NSXMLParserNotWellBalancedError, + 86 => NSXMLParserExtraContentError, + 87 => NSXMLParserInvalidCharacterInEntityError, + 88 => NSXMLParserParsedEntityRefInInternalError, + 89 => NSXMLParserEntityRefLoopError, + 90 => NSXMLParserEntityBoundaryError, + 91 => NSXMLParserInvalidURIError, + 92 => NSXMLParserURIFragmentError, + 94 => NSXMLParserNoDTDError, + 512 => NSXMLParserDelegateAbortedParseError, + _ => throw ArgumentError('Unknown value for NSXMLParserError: $value'), + }; +} + +enum NSXMLParserExternalEntityResolvingPolicy { + NSXMLParserResolveExternalEntitiesNever(0), + NSXMLParserResolveExternalEntitiesNoNetwork(1), + NSXMLParserResolveExternalEntitiesSameOriginOnly(2), + NSXMLParserResolveExternalEntitiesAlways(3); + + final int value; + const NSXMLParserExternalEntityResolvingPolicy(this.value); + + static NSXMLParserExternalEntityResolvingPolicy fromValue(int value) => + switch (value) { + 0 => NSXMLParserResolveExternalEntitiesNever, + 1 => NSXMLParserResolveExternalEntitiesNoNetwork, + 2 => NSXMLParserResolveExternalEntitiesSameOriginOnly, + 3 => NSXMLParserResolveExternalEntitiesAlways, + _ => throw ArgumentError( + 'Unknown value for NSXMLParserExternalEntityResolvingPolicy: $value', + ), + }; +} + +/// NSXMLParserLocatorAdditions +extension NSXMLParserLocatorAdditions on NSXMLParser { + /// columnNumber + DartNSInteger get columnNumber { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_columnNumber); + } + + /// lineNumber + DartNSInteger get lineNumber { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_lineNumber); + } + + /// publicID + objc.NSString? get publicID { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_publicID); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// systemID + objc.NSString? get systemID { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_systemID); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +/// WARNING: NSXPCConnection is a stub. To generate bindings for this class, include +/// NSXPCConnection in your config's objc-interfaces list. +/// +/// NSXPCConnection +extension type NSXPCConnection._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, NSXPCProxyCreating { + /// Constructs a [NSXPCConnection] that points to the same underlying object as [other]. + NSXPCConnection.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSXPCConnection', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + } + + /// Constructs a [NSXPCConnection] that wraps the given raw object pointer. + NSXPCConnection.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSXPCConnection', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + } +} + +const int NSXPCConnectionCodeSigningRequirementFailure = 4102; + +const int NSXPCConnectionErrorMaximum = 4224; + +const int NSXPCConnectionErrorMinimum = 4096; + +const int NSXPCConnectionInterrupted = 4097; + +const int NSXPCConnectionInvalid = 4099; + +sealed class NSXPCConnectionOptions { + static const NSXPCConnectionPrivileged = 4096; +} + +const int NSXPCConnectionReplyInvalid = 4101; + +/// WARNING: NSXPCListener is a stub. To generate bindings for this class, include +/// NSXPCListener in your config's objc-interfaces list. +/// +/// NSXPCListener +extension type NSXPCListener._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [NSXPCListener] that points to the same underlying object as [other]. + NSXPCListener.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSXPCListener', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + } + + /// Constructs a [NSXPCListener] that wraps the given raw object pointer. + NSXPCListener.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSXPCListener', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + } +} + +/// NSXPCListenerDelegate +extension type NSXPCListenerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSXPCListenerDelegate] that points to the same underlying object as [other]. + NSXPCListenerDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSXPCListenerDelegate] that wraps the given raw object pointer. + NSXPCListenerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSXPCListenerDelegate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSXPCListenerDelegate, + ); + } +} + +extension NSXPCListenerDelegate$Methods on NSXPCListenerDelegate { + /// listener:shouldAcceptNewConnection: + bool listener( + NSXPCListener listener, { + required NSXPCConnection shouldAcceptNewConnection, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = listener.ref; + final _$$ref$2 = shouldAcceptNewConnection.ref; + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_listener_shouldAcceptNewConnection_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXPCListenerDelegate', + 'listener:shouldAcceptNewConnection:', + ); + } + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_listener_shouldAcceptNewConnection_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class NSXPCListenerDelegate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSXPCListenerDelegate.cast()); + + /// Builds an object that implements the NSXPCListenerDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSXPCListenerDelegate implement({ + bool Function(NSXPCListener, NSXPCConnection)? + listener_shouldAcceptNewConnection_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSXPCListenerDelegate', + ); + NSXPCListenerDelegate$Builder.listener_shouldAcceptNewConnection_.implement( + builder, + listener_shouldAcceptNewConnection_, + ); + builder.addProtocol($protocol); + return NSXPCListenerDelegate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSXPCListenerDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool Function(NSXPCListener, NSXPCConnection)? + listener_shouldAcceptNewConnection_, + bool $keepIsolateAlive = true, + }) { + NSXPCListenerDelegate$Builder.listener_shouldAcceptNewConnection_.implement( + builder, + listener_shouldAcceptNewConnection_, + ); + builder.addProtocol($protocol); + } + + /// listener:shouldAcceptNewConnection: + static final listener_shouldAcceptNewConnection_ = + objc.ObjCProtocolMethod( + _protocol_NSXPCListenerDelegate, + _sel_listener_shouldAcceptNewConnection_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXPCListenerDelegate, + _sel_listener_shouldAcceptNewConnection_, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function(NSXPCListener, NSXPCConnection) func) => + ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection.fromFunction( + ( + ffi.Pointer _, + NSXPCListener arg1, + NSXPCConnection arg2, + ) => func(arg1, arg2), + ), + ); +} + +/// NSXPCProxyCreating +extension type NSXPCProxyCreating._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSXPCProxyCreating] that points to the same underlying object as [other]. + NSXPCProxyCreating.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSXPCProxyCreating] that wraps the given raw object pointer. + NSXPCProxyCreating.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSXPCProxyCreating]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSXPCProxyCreating, + ); + } +} + +extension NSXPCProxyCreating$Methods on NSXPCProxyCreating { + /// remoteObjectProxy + objc.ObjCObject remoteObjectProxy() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_remoteObjectProxy); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// remoteObjectProxyWithErrorHandler: + objc.ObjCObject remoteObjectProxyWithErrorHandler( + objc.ObjCBlock handler, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = handler.ref; + final $ret = _objc_msgSend_nnxkei( + _$$ref.pointer, + _sel_remoteObjectProxyWithErrorHandler_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } + + /// synchronousRemoteObjectProxyWithErrorHandler: + objc.ObjCObject synchronousRemoteObjectProxyWithErrorHandler( + objc.ObjCBlock handler, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = handler.ref; + objc.checkOsVersionInternal( + 'NSXPCProxyCreating.synchronousRemoteObjectProxyWithErrorHandler:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_synchronousRemoteObjectProxyWithErrorHandler_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSXPCProxyCreating', + 'synchronousRemoteObjectProxyWithErrorHandler:', + ); + } + final $ret = _objc_msgSend_nnxkei( + _$$ref.pointer, + _sel_synchronousRemoteObjectProxyWithErrorHandler_, + _$$ref$1.pointer, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +interface class NSXPCProxyCreating$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_NSXPCProxyCreating.cast()); + + /// Builds an object that implements the NSXPCProxyCreating protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSXPCProxyCreating implement({ + required objc.ObjCObject Function() remoteObjectProxy, + required objc.ObjCObject Function( + objc.ObjCBlock, + ) + remoteObjectProxyWithErrorHandler_, + objc.ObjCObject Function(objc.ObjCBlock)? + synchronousRemoteObjectProxyWithErrorHandler_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSXPCProxyCreating'); + NSXPCProxyCreating$Builder.remoteObjectProxy.implement( + builder, + remoteObjectProxy, + ); + NSXPCProxyCreating$Builder.remoteObjectProxyWithErrorHandler_.implement( + builder, + remoteObjectProxyWithErrorHandler_, + ); + NSXPCProxyCreating$Builder.synchronousRemoteObjectProxyWithErrorHandler_ + .implement(builder, synchronousRemoteObjectProxyWithErrorHandler_); + builder.addProtocol($protocol); + return NSXPCProxyCreating.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSXPCProxyCreating protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObject Function() remoteObjectProxy, + required objc.ObjCObject Function( + objc.ObjCBlock, + ) + remoteObjectProxyWithErrorHandler_, + objc.ObjCObject Function(objc.ObjCBlock)? + synchronousRemoteObjectProxyWithErrorHandler_, + bool $keepIsolateAlive = true, + }) { + NSXPCProxyCreating$Builder.remoteObjectProxy.implement( + builder, + remoteObjectProxy, + ); + NSXPCProxyCreating$Builder.remoteObjectProxyWithErrorHandler_.implement( + builder, + remoteObjectProxyWithErrorHandler_, + ); + NSXPCProxyCreating$Builder.synchronousRemoteObjectProxyWithErrorHandler_ + .implement(builder, synchronousRemoteObjectProxyWithErrorHandler_); + builder.addProtocol($protocol); + } + + /// remoteObjectProxy + static final remoteObjectProxy = + objc.ObjCProtocolMethod( + _protocol_NSXPCProxyCreating, + _sel_remoteObjectProxy, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXPCProxyCreating, + _sel_remoteObjectProxy, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObject Function() func) => + ObjCBlock_objcObjCObjectImpl_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// remoteObjectProxyWithErrorHandler: + static final remoteObjectProxyWithErrorHandler_ = + objc.ObjCProtocolMethod< + objc.ObjCObject Function( + objc.ObjCBlock, + ) + >( + _protocol_NSXPCProxyCreating, + _sel_remoteObjectProxyWithErrorHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_wpy7aa) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXPCProxyCreating, + _sel_remoteObjectProxyWithErrorHandler_, + isRequired: true, + isInstanceMethod: true, + ), + ( + objc.ObjCObject Function( + objc.ObjCBlock, + ) + func, + ) => ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ); + + /// synchronousRemoteObjectProxyWithErrorHandler: + static final synchronousRemoteObjectProxyWithErrorHandler_ = + objc.ObjCProtocolMethod< + objc.ObjCObject Function( + objc.ObjCBlock, + ) + >( + _protocol_NSXPCProxyCreating, + _sel_synchronousRemoteObjectProxyWithErrorHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_wpy7aa) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSXPCProxyCreating, + _sel_synchronousRemoteObjectProxyWithErrorHandler_, + isRequired: false, + isInstanceMethod: true, + ), + ( + objc.ObjCObject Function( + objc.ObjCBlock, + ) + func, + ) => ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError.fromFunction( + ( + ffi.Pointer _, + objc.ObjCBlock arg1, + ) => func(arg1), + ), + ); +} + +typedef NSZone = objc.NSZone; + +const int NS_BigEndian = 2; + +const int NS_LittleEndian = 1; + +const int NS_UnknownByteOrder = 0; + +typedef NXCoord = ffi.Float; +typedef DartNXCoord = double; +typedef NXEvent = _NXEvent; + +final class NXEventData extends ffi.Union { + external UnnamedStruct$18 mouse; + + external UnnamedStruct$10 mouseMove; + + external UnnamedStruct$9 key; + + external UnnamedStruct$13 tracking; + + external UnnamedStruct$19 scrollWheel; + + external UnnamedStruct$19 zoom; + + external UnnamedStruct$17 compound$1; + + external UnnamedStruct$21 tablet; + + external UnnamedStruct$12 proximity; +} + +typedef NXEventExt = _NXEventExt; +typedef NXEventExtension = _NXEventExtension; +typedef NXEventPtr = ffi.Pointer<_NXEvent>; + +final class NXEventSystemDevice extends ffi.Struct { + @ffi.Int() + external int interface; + + @ffi.Int() + external int interface_addr; + + @ffi.Int() + external int dev_type; + + @ffi.Int() + external int id; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int interface, + required int interface_addr, + required int dev_type, + required int id, + }) => $allocator() + ..ref.interface = interface + ..ref.interface_addr = interface_addr + ..ref.dev_type = dev_type + ..ref.id = id; +} + +final class NXEventSystemDeviceList extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array dev; +} + +typedef NXEventSystemInfoType = ffi.Pointer; +typedef NXKeyMapping = evsioKeymapping; + +enum NXMouseButton { + NX_OneButton(0), + NX_LeftButton(1), + NX_RightButton(2); + + final int value; + const NXMouseButton(this.value); + + static NXMouseButton fromValue(int value) => switch (value) { + 0 => NX_OneButton, + 1 => NX_LeftButton, + 2 => NX_RightButton, + _ => throw ArgumentError('Unknown value for NXMouseButton: $value'), + }; +} + +typedef NXMouseScaling = evsioMouseScaling; +typedef NXPoint = _NXPoint; +typedef NXSize = _NXSize; +typedef NXTabletPointData = _NXTabletPointData; +typedef NXTabletPointDataPtr = ffi.Pointer<_NXTabletPointData>; +typedef NXTabletProximityData = _NXTabletProximityData; +typedef NXTabletProximityDataPtr = ffi.Pointer<_NXTabletProximityData>; + +const int NameID = 1312902469; + +final class NameTable extends ffi.Struct { + @SInt16() + external int stringCount; + + @ffi.Array.multi([256]) + external ffi.Array baseFontName; +} + +typedef Nanoseconds = UnsignedWide; + +const int NetActivity = 2; + +const int NoLooping = 0; + +const int NoneType = 1313820229; + +final class NumFormatString extends ffi.Struct { + @UInt8() + external int fLength; + + @UInt8() + external int fVersion; + + @ffi.Array.multi([254]) + external ffi.Array data; +} + +typedef NumFormatStringRec = NumFormatString; + +final class NumVersion extends ffi.Struct { + @UInt8() + external int nonRelRev; + + @UInt8() + external int stage; + + @UInt8() + external int minorAndBugRev; + + @UInt8() + external int majorRev; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nonRelRev, + required int stage, + required int minorAndBugRev, + required int majorRev, + }) => $allocator() + ..ref.nonRelRev = nonRelRev + ..ref.stage = stage + ..ref.minorAndBugRev = minorAndBugRev + ..ref.majorRev = majorRev; +} + +final class NumVersionVariant extends ffi.Union { + external NumVersion parts; + + @UInt32() + external int whole; +} + +typedef NumVersionVariantHandle = ffi.Pointer; +typedef NumVersionVariantPtr = ffi.Pointer; + +final class NumberParts extends ffi.Struct { + @ffi.Short() + external int version; + + @ffi.Array.multi([31]) + external ffi.Array data; + + external WideCharArr pePlus; + + external WideCharArr peMinus; + + external WideCharArr peMinusPlus; + + external WideCharArr altNumTable; + + @ffi.Array.multi([20]) + external ffi.Array reserved; +} + +typedef NumberPartsPtr = ffi.Pointer; + +const int OSAControlFlowError = -2755; + +const int OSADuplicateHandler = -2752; + +const int OSADuplicateParameter = -2750; + +const int OSADuplicateProperty = -2751; + +const int OSAIllegalAccess = -1723; + +const int OSAIllegalAssign = -10003; + +const int OSAIllegalIndex = -1719; + +const int OSAIllegalRange = -1720; + +const int OSAInconsistentDeclarations = -2754; + +const int OSAMessageNotUnderstood = -1708; + +const int OSAMissingParameter = -1701; + +const int OSAParameterMismatch = -1721; + +const int OSASyntaxError = -2740; + +const int OSASyntaxTypeError = -2741; + +const int OSATokenTooLong = -2742; + +const int OSAUndefinedHandler = -1717; + +const int OSAUndefinedVariable = -2753; + +typedef OSAtomic_int64_aligned64_t = ffi.Int64; +typedef DartOSAtomic_int64_aligned64_t = int; + +const int OSBigEndian = 2; + +typedef OSErr = SInt16; +typedef OSFifoQueueHead = UnnamedStruct$2; +typedef OSLAccessorProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + DescType desiredClass, + ffi.Pointer container, + DescType containerClass, + DescType form, + ffi.Pointer selectionData, + ffi.Pointer value, + SRefCon accessorRefcon, + ) + > + >; +typedef OSLAccessorUPP = OSLAccessorProcPtr; +typedef OSLAdjustMarksProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + ffi.Long newStart, + ffi.Long newStop, + ffi.Pointer markToken, + ) + > + >; +typedef OSLAdjustMarksUPP = OSLAdjustMarksProcPtr; +typedef OSLCompareProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + DescType oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ) + > + >; +typedef OSLCompareUPP = OSLCompareProcPtr; +typedef OSLCountProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + DescType desiredType, + DescType containerClass, + ffi.Pointer container, + ffi.Pointer result, + ) + > + >; +typedef OSLCountUPP = OSLCountProcPtr; +typedef OSLDisposeTokenProcPtr = + ffi.Pointer< + ffi.NativeFunction unneededToken)> + >; +typedef OSLDisposeTokenUPP = OSLDisposeTokenProcPtr; +typedef OSLGetErrDescProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function(ffi.Pointer> appDescPtr) + > + >; +typedef OSLGetErrDescUPP = OSLGetErrDescProcPtr; +typedef OSLGetMarkTokenProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + ffi.Pointer dContainerToken, + DescType containerClass, + ffi.Pointer result, + ) + > + >; +typedef OSLGetMarkTokenUPP = OSLGetMarkTokenProcPtr; +typedef OSLMarkProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + ffi.Long index$1, + ) + > + >; +typedef OSLMarkUPP = OSLMarkProcPtr; + +const int OSLittleEndian = 1; + +final class OSNotificationHeader extends ffi.Opaque {} + +final class OSNotificationHeader64 extends ffi.Opaque {} + +typedef OSQueueHead = UnnamedStruct$1; +typedef OSSpinLock = ffi.Int32; +typedef DartOSSpinLock = int; +typedef OSStatus = SInt32; +typedef OSType = FourCharCode; +typedef OSTypePtr = ffi.Pointer; + +const int OSUnknownByteOrder = 0; + +/// OS_dispatch_data +extension type OS_dispatch_data._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_data] that points to the same underlying object as [other]. + OS_dispatch_data.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_data] that wraps the given raw object pointer. + OS_dispatch_data.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_data]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_data, + ); + } +} + +extension OS_dispatch_data$Methods on OS_dispatch_data {} + +interface class OS_dispatch_data$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_data.cast()); + + /// Builds an object that implements the OS_dispatch_data protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_data implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_data'); + + builder.addProtocol($protocol); + return OS_dispatch_data.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_data protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_group +extension type OS_dispatch_group._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_group] that points to the same underlying object as [other]. + OS_dispatch_group.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_group] that wraps the given raw object pointer. + OS_dispatch_group.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_group]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_group, + ); + } +} + +extension OS_dispatch_group$Methods on OS_dispatch_group {} + +interface class OS_dispatch_group$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_group.cast()); + + /// Builds an object that implements the OS_dispatch_group protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_group implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_group'); + + builder.addProtocol($protocol); + return OS_dispatch_group.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_group protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_io +extension type OS_dispatch_io._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_io] that points to the same underlying object as [other]. + OS_dispatch_io.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_io] that wraps the given raw object pointer. + OS_dispatch_io.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_io]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_io, + ); + } +} + +extension OS_dispatch_io$Methods on OS_dispatch_io {} + +interface class OS_dispatch_io$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_io.cast()); + + /// Builds an object that implements the OS_dispatch_io protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_io implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_io'); + + builder.addProtocol($protocol); + return OS_dispatch_io.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_io protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_object +extension type OS_dispatch_object._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_dispatch_object] that points to the same underlying object as [other]. + OS_dispatch_object.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_object] that wraps the given raw object pointer. + OS_dispatch_object.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_object]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_object, + ); + } +} + +extension OS_dispatch_object$Methods on OS_dispatch_object {} + +interface class OS_dispatch_object$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_object.cast()); + + /// Builds an object that implements the OS_dispatch_object protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_object implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_object'); + + builder.addProtocol($protocol); + return OS_dispatch_object.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_object protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue +extension type OS_dispatch_queue._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_queue] that points to the same underlying object as [other]. + OS_dispatch_queue.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue] that wraps the given raw object pointer. + OS_dispatch_queue.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue, + ); + } +} + +extension OS_dispatch_queue$Methods on OS_dispatch_queue {} + +interface class OS_dispatch_queue$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue.cast()); + + /// Builds an object that implements the OS_dispatch_queue protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_queue'); + + builder.addProtocol($protocol); + return OS_dispatch_queue.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_attr +extension type OS_dispatch_queue_attr._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_queue_attr] that points to the same underlying object as [other]. + OS_dispatch_queue_attr.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_attr] that wraps the given raw object pointer. + OS_dispatch_queue_attr.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_attr]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_attr, + ); + } +} + +extension OS_dispatch_queue_attr$Methods on OS_dispatch_queue_attr {} + +interface class OS_dispatch_queue_attr$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_attr.cast()); + + /// Builds an object that implements the OS_dispatch_queue_attr protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_attr implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_attr', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_attr.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_attr protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_concurrent +extension type OS_dispatch_queue_concurrent._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue { + /// Constructs a [OS_dispatch_queue_concurrent] that points to the same underlying object as [other]. + OS_dispatch_queue_concurrent.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_concurrent] that wraps the given raw object pointer. + OS_dispatch_queue_concurrent.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_concurrent]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_concurrent, + ); + } +} + +extension OS_dispatch_queue_concurrent$Methods + on OS_dispatch_queue_concurrent {} + +interface class OS_dispatch_queue_concurrent$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_concurrent.cast()); + + /// Builds an object that implements the OS_dispatch_queue_concurrent protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_concurrent implement({ + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_concurrent', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_concurrent.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_concurrent protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_global +extension type OS_dispatch_queue_global._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue { + /// Constructs a [OS_dispatch_queue_global] that points to the same underlying object as [other]. + OS_dispatch_queue_global.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_global] that wraps the given raw object pointer. + OS_dispatch_queue_global.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_global]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_global, + ); + } +} + +extension OS_dispatch_queue_global$Methods on OS_dispatch_queue_global {} + +interface class OS_dispatch_queue_global$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_global.cast()); + + /// Builds an object that implements the OS_dispatch_queue_global protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_global implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_global', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_global.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_global protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_main +extension type OS_dispatch_queue_main._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue_serial { + /// Constructs a [OS_dispatch_queue_main] that points to the same underlying object as [other]. + OS_dispatch_queue_main.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_main] that wraps the given raw object pointer. + OS_dispatch_queue_main.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_main]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_main, + ); + } +} + +extension OS_dispatch_queue_main$Methods on OS_dispatch_queue_main {} + +interface class OS_dispatch_queue_main$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_main.cast()); + + /// Builds an object that implements the OS_dispatch_queue_main protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_main implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_main', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_main.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_main protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_serial +extension type OS_dispatch_queue_serial._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue { + /// Constructs a [OS_dispatch_queue_serial] that points to the same underlying object as [other]. + OS_dispatch_queue_serial.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_serial] that wraps the given raw object pointer. + OS_dispatch_queue_serial.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_serial]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_serial, + ); + } +} + +extension OS_dispatch_queue_serial$Methods on OS_dispatch_queue_serial {} + +interface class OS_dispatch_queue_serial$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_serial.cast()); + + /// Builds an object that implements the OS_dispatch_queue_serial protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_serial implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_serial', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_serial.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_serial protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_queue_serial_executor +extension type OS_dispatch_queue_serial_executor._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue { + /// Constructs a [OS_dispatch_queue_serial_executor] that points to the same underlying object as [other]. + OS_dispatch_queue_serial_executor.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_queue_serial_executor] that wraps the given raw object pointer. + OS_dispatch_queue_serial_executor.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_queue_serial_executor]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_queue_serial_executor, + ); + } +} + +extension OS_dispatch_queue_serial_executor$Methods + on OS_dispatch_queue_serial_executor {} + +interface class OS_dispatch_queue_serial_executor$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => objc.Protocol.fromPointer( + _protocol_OS_dispatch_queue_serial_executor.cast(), + ); + + /// Builds an object that implements the OS_dispatch_queue_serial_executor protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_queue_serial_executor implement({ + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_queue_serial_executor', + ); + + builder.addProtocol($protocol); + return OS_dispatch_queue_serial_executor.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_queue_serial_executor protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_semaphore +extension type OS_dispatch_semaphore._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_semaphore] that points to the same underlying object as [other]. + OS_dispatch_semaphore.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_semaphore] that wraps the given raw object pointer. + OS_dispatch_semaphore.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_semaphore]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_semaphore, + ); + } +} + +extension OS_dispatch_semaphore$Methods on OS_dispatch_semaphore {} + +interface class OS_dispatch_semaphore$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_semaphore.cast()); + + /// Builds an object that implements the OS_dispatch_semaphore protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_semaphore implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_dispatch_semaphore', + ); + + builder.addProtocol($protocol); + return OS_dispatch_semaphore.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_semaphore protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_source +extension type OS_dispatch_source._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_object { + /// Constructs a [OS_dispatch_source] that points to the same underlying object as [other]. + OS_dispatch_source.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_source] that wraps the given raw object pointer. + OS_dispatch_source.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_source]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_source, + ); + } +} + +extension OS_dispatch_source$Methods on OS_dispatch_source {} + +interface class OS_dispatch_source$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_source.cast()); + + /// Builds an object that implements the OS_dispatch_source protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_source implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_source'); + + builder.addProtocol($protocol); + return OS_dispatch_source.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_source protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_dispatch_workloop +extension type OS_dispatch_workloop._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, OS_dispatch_queue { + /// Constructs a [OS_dispatch_workloop] that points to the same underlying object as [other]. + OS_dispatch_workloop.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_dispatch_workloop] that wraps the given raw object pointer. + OS_dispatch_workloop.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_dispatch_workloop]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_dispatch_workloop, + ); + } +} + +extension OS_dispatch_workloop$Methods on OS_dispatch_workloop {} + +interface class OS_dispatch_workloop$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_dispatch_workloop.cast()); + + /// Builds an object that implements the OS_dispatch_workloop protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_dispatch_workloop implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_workloop'); + + builder.addProtocol($protocol); + return OS_dispatch_workloop.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_dispatch_workloop protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// WARNING: OS_object is a stub. To generate bindings for this class, include +/// OS_object in your config's objc-interfaces list. +/// +/// OS_object +extension type OS_object._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [OS_object] that points to the same underlying object as [other]. + OS_object.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [OS_object] that wraps the given raw object pointer. + OS_object.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// WARNING: OS_os_workgroup is a stub. To generate bindings for this class, include +/// OS_os_workgroup in your config's objc-interfaces list. +/// +/// OS_os_workgroup +extension type OS_os_workgroup._(objc.ObjCObject object$) + implements objc.ObjCObject, OS_object { + /// Constructs a [OS_os_workgroup] that points to the same underlying object as [other]. + OS_os_workgroup.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [OS_os_workgroup] that wraps the given raw object pointer. + OS_os_workgroup.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// OS_os_workgroup_interval +extension type OS_os_workgroup_interval._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [OS_os_workgroup_interval] that points to the same underlying object as [other]. + OS_os_workgroup_interval.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_os_workgroup_interval] that wraps the given raw object pointer. + OS_os_workgroup_interval.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_os_workgroup_interval]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_os_workgroup_interval, + ); + } +} + +extension OS_os_workgroup_interval$Methods on OS_os_workgroup_interval {} + +interface class OS_os_workgroup_interval$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_os_workgroup_interval.cast()); + + /// Builds an object that implements the OS_os_workgroup_interval protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_os_workgroup_interval implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_os_workgroup_interval', + ); + + builder.addProtocol($protocol); + return OS_os_workgroup_interval.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_os_workgroup_interval protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_os_workgroup_parallel +extension type OS_os_workgroup_parallel._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [OS_os_workgroup_parallel] that points to the same underlying object as [other]. + OS_os_workgroup_parallel.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_os_workgroup_parallel] that wraps the given raw object pointer. + OS_os_workgroup_parallel.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_os_workgroup_parallel]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_os_workgroup_parallel, + ); + } +} + +extension OS_os_workgroup_parallel$Methods on OS_os_workgroup_parallel {} + +interface class OS_os_workgroup_parallel$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_os_workgroup_parallel.cast()); + + /// Builds an object that implements the OS_os_workgroup_parallel protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_os_workgroup_parallel implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_os_workgroup_parallel', + ); + + builder.addProtocol($protocol); + return OS_os_workgroup_parallel.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_os_workgroup_parallel protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_certificate +extension type OS_sec_certificate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_certificate] that points to the same underlying object as [other]. + OS_sec_certificate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_certificate] that wraps the given raw object pointer. + OS_sec_certificate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_certificate]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_certificate, + ); + } +} + +extension OS_sec_certificate$Methods on OS_sec_certificate {} + +interface class OS_sec_certificate$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_certificate.cast()); + + /// Builds an object that implements the OS_sec_certificate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_certificate implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_certificate'); + + builder.addProtocol($protocol); + return OS_sec_certificate.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_sec_certificate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_identity +extension type OS_sec_identity._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_identity] that points to the same underlying object as [other]. + OS_sec_identity.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_identity] that wraps the given raw object pointer. + OS_sec_identity.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_identity]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_identity, + ); + } +} + +extension OS_sec_identity$Methods on OS_sec_identity {} + +interface class OS_sec_identity$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_identity.cast()); + + /// Builds an object that implements the OS_sec_identity protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_identity implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_identity'); + + builder.addProtocol($protocol); + return OS_sec_identity.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_sec_identity protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_object +extension type OS_sec_object._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_object] that points to the same underlying object as [other]. + OS_sec_object.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_object] that wraps the given raw object pointer. + OS_sec_object.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_object]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_object, + ); + } +} + +extension OS_sec_object$Methods on OS_sec_object {} + +interface class OS_sec_object$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_object.cast()); + + /// Builds an object that implements the OS_sec_object protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_object implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_object'); + + builder.addProtocol($protocol); + return OS_sec_object.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the OS_sec_object protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_protocol_metadata +extension type OS_sec_protocol_metadata._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_protocol_metadata] that points to the same underlying object as [other]. + OS_sec_protocol_metadata.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_protocol_metadata] that wraps the given raw object pointer. + OS_sec_protocol_metadata.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_protocol_metadata]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_protocol_metadata, + ); + } +} + +extension OS_sec_protocol_metadata$Methods on OS_sec_protocol_metadata {} + +interface class OS_sec_protocol_metadata$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_protocol_metadata.cast()); + + /// Builds an object that implements the OS_sec_protocol_metadata protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_protocol_metadata implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_sec_protocol_metadata', + ); + + builder.addProtocol($protocol); + return OS_sec_protocol_metadata.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_sec_protocol_metadata protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_protocol_options +extension type OS_sec_protocol_options._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_protocol_options] that points to the same underlying object as [other]. + OS_sec_protocol_options.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_protocol_options] that wraps the given raw object pointer. + OS_sec_protocol_options.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_protocol_options]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_protocol_options, + ); + } +} + +extension OS_sec_protocol_options$Methods on OS_sec_protocol_options {} + +interface class OS_sec_protocol_options$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_protocol_options.cast()); + + /// Builds an object that implements the OS_sec_protocol_options protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_protocol_options implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_sec_protocol_options', + ); + + builder.addProtocol($protocol); + return OS_sec_protocol_options.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_sec_protocol_options protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_sec_trust +extension type OS_sec_trust._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_sec_trust] that points to the same underlying object as [other]. + OS_sec_trust.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_sec_trust] that wraps the given raw object pointer. + OS_sec_trust.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_sec_trust]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_sec_trust, + ); + } +} + +extension OS_sec_trust$Methods on OS_sec_trust {} + +interface class OS_sec_trust$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_sec_trust.cast()); + + /// Builds an object that implements the OS_sec_trust protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_sec_trust implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_trust'); + + builder.addProtocol($protocol); + return OS_sec_trust.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the OS_sec_trust protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_xpc_listener +extension type OS_xpc_listener._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_xpc_listener] that points to the same underlying object as [other]. + OS_xpc_listener.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_xpc_listener] that wraps the given raw object pointer. + OS_xpc_listener.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_xpc_listener]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_xpc_listener, + ); + } +} + +extension OS_xpc_listener$Methods on OS_xpc_listener {} + +interface class OS_xpc_listener$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_xpc_listener.cast()); + + /// Builds an object that implements the OS_xpc_listener protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_xpc_listener implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_listener'); + + builder.addProtocol($protocol); + return OS_xpc_listener.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_xpc_listener protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_xpc_object +extension type OS_xpc_object._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_xpc_object] that points to the same underlying object as [other]. + OS_xpc_object.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_xpc_object] that wraps the given raw object pointer. + OS_xpc_object.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_xpc_object]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_xpc_object, + ); + } +} + +extension OS_xpc_object$Methods on OS_xpc_object {} + +interface class OS_xpc_object$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_xpc_object.cast()); + + /// Builds an object that implements the OS_xpc_object protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_xpc_object implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_object'); + + builder.addProtocol($protocol); + return OS_xpc_object.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the OS_xpc_object protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_xpc_peer_requirement +extension type OS_xpc_peer_requirement._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_xpc_peer_requirement] that points to the same underlying object as [other]. + OS_xpc_peer_requirement.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_xpc_peer_requirement] that wraps the given raw object pointer. + OS_xpc_peer_requirement.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_xpc_peer_requirement]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_xpc_peer_requirement, + ); + } +} + +extension OS_xpc_peer_requirement$Methods on OS_xpc_peer_requirement {} + +interface class OS_xpc_peer_requirement$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_xpc_peer_requirement.cast()); + + /// Builds an object that implements the OS_xpc_peer_requirement protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_xpc_peer_requirement implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'OS_xpc_peer_requirement', + ); + + builder.addProtocol($protocol); + return OS_xpc_peer_requirement.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_xpc_peer_requirement protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// OS_xpc_session +extension type OS_xpc_session._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [OS_xpc_session] that points to the same underlying object as [other]. + OS_xpc_session.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [OS_xpc_session] that wraps the given raw object pointer. + OS_xpc_session.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [OS_xpc_session]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_OS_xpc_session, + ); + } +} + +extension OS_xpc_session$Methods on OS_xpc_session {} + +interface class OS_xpc_session$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_OS_xpc_session.cast()); + + /// Builds an object that implements the OS_xpc_session protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static OS_xpc_session implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_session'); + + builder.addProtocol($protocol); + return OS_xpc_session.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the OS_xpc_session protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer<__CFDictionary>, ffi.Int)>`. +abstract final class ObjCBlock_CFArrayRef_CFDictionaryRef_pidt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + > + fromFunction( + CFArrayRef Function(CFDictionaryRef, Dart__int32_t) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + >( + objc.newClosureBlock(_closureCallable, ( + CFDictionaryRef arg0, + int arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CFArrayRef _fnPtrTrampoline( + ffi.Pointer block, + CFDictionaryRef arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CFArrayRef Function(CFDictionaryRef arg0, pid_t arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFArrayRef Function( + ffi.Pointer, + CFDictionaryRef, + pid_t, + ) + >(_fnPtrTrampoline) + .cast(); + static CFArrayRef _closureTrampoline( + ffi.Pointer block, + CFDictionaryRef arg0, + int arg1, + ) => + (objc.getBlockClosure(block) + as CFArrayRef Function(CFDictionaryRef, int))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFArrayRef Function( + ffi.Pointer, + CFDictionaryRef, + pid_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer<__CFDictionary>, ffi.Int)>`. +extension ObjCBlock_CFArrayRef_CFDictionaryRef_pidt$CallExtension + on + objc.ObjCBlock< + ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) + > { + CFArrayRef call(CFDictionaryRef arg0, Dart__int32_t arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFArrayRef Function( + ffi.Pointer block, + CFDictionaryRef arg0, + pid_t arg1, + ) + > + >() + .asFunction< + CFArrayRef Function( + ffi.Pointer, + CFDictionaryRef, + int, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_CFComparisonResult_CFTypeRef_CFTypeRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + CFComparisonResult Function(ffi.Pointer, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1).value; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFIndex Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as int Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFIndex Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_CFComparisonResult_CFTypeRef_CFTypeRef$CallExtension + on + objc.ObjCBlock< + CFIndex Function(ffi.Pointer, ffi.Pointer) + > { + CFComparisonResult call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return CFComparisonResult.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFIndex Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1), + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function()>`. +abstract final class ObjCBlock_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function()> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function()>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function()> fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock Function()>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function()> fromFunction( + CFErrorRef Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function()>( + objc.newClosureBlock(_closureCallable, () { + return fn(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CFErrorRef _fnPtrTrampoline(ffi.Pointer block) => + block.ref.target + .cast>() + .asFunction()(); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFErrorRef Function(ffi.Pointer) + >(_fnPtrTrampoline) + .cast(); + static CFErrorRef _closureTrampoline(ffi.Pointer block) => + (objc.getBlockClosure(block) as CFErrorRef Function())(); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFErrorRef Function(ffi.Pointer) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function()>`. +extension ObjCBlock_CFErrorRef$CallExtension + on objc.ObjCBlock Function()> { + CFErrorRef call() { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFErrorRef Function(ffi.Pointer block) + > + >() + .asFunction)>()( + ref.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function()>`. +abstract final class ObjCBlock_CFTypeRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function()> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function()>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function()> fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock Function()>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function()> fromFunction( + CFTypeRef Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function()>( + objc.newClosureBlock(_closureCallable, () { + return fn(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CFTypeRef _fnPtrTrampoline(ffi.Pointer block) => + block.ref.target + .cast>() + .asFunction()(); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function(ffi.Pointer) + >(_fnPtrTrampoline) + .cast(); + static CFTypeRef _closureTrampoline(ffi.Pointer block) => + (objc.getBlockClosure(block) as CFTypeRef Function())(); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function(ffi.Pointer) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function()>`. +extension ObjCBlock_CFTypeRef$CallExtension + on objc.ObjCBlock Function()> { + CFTypeRef call() { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFTypeRef Function(ffi.Pointer block) + > + >() + .asFunction)>()( + ref.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_CFTypeRef_SecTransformAttributeRef_CFTypeRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + CFTypeRef Function(SecTransformAttributeRef arg0, CFTypeRef arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + CFTypeRef Function(SecTransformAttributeRef, CFTypeRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + SecTransformAttributeRef arg0, + CFTypeRef arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CFTypeRef _fnPtrTrampoline( + ffi.Pointer block, + SecTransformAttributeRef arg0, + CFTypeRef arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CFTypeRef Function(SecTransformAttributeRef arg0, CFTypeRef arg1) + > + >() + .asFunction< + CFTypeRef Function(SecTransformAttributeRef, CFTypeRef) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function( + ffi.Pointer, + SecTransformAttributeRef, + CFTypeRef, + ) + >(_fnPtrTrampoline) + .cast(); + static CFTypeRef _closureTrampoline( + ffi.Pointer block, + SecTransformAttributeRef arg0, + CFTypeRef arg1, + ) => + (objc.getBlockClosure(block) + as CFTypeRef Function(SecTransformAttributeRef, CFTypeRef))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function( + ffi.Pointer, + SecTransformAttributeRef, + CFTypeRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_CFTypeRef_SecTransformAttributeRef_CFTypeRef$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + CFTypeRef call(SecTransformAttributeRef arg0, CFTypeRef arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFTypeRef Function( + ffi.Pointer block, + SecTransformAttributeRef arg0, + CFTypeRef arg1, + ) + > + >() + .asFunction< + CFTypeRef Function( + ffi.Pointer, + SecTransformAttributeRef, + CFTypeRef, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, objc.CGSize, ffi.Double, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + CGImageRef Function( + ffi.Pointer arg0, + objc.CGSize arg1, + CGFloat arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + CGImageRef Function( + ffi.Pointer, + objc.CGSize, + DartCGFloat, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + objc.CGSize arg1, + double arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn(arg0, arg1, arg2, arg3, arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CGImageRef _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + objc.CGSize arg1, + double arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CGImageRef Function( + ffi.Pointer arg0, + objc.CGSize arg1, + CGFloat arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + CGImageRef Function( + ffi.Pointer, + objc.CGSize, + double, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + CGFloat, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static CGImageRef _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + objc.CGSize arg1, + double arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as CGImageRef Function( + ffi.Pointer, + objc.CGSize, + double, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + CGFloat, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, objc.CGSize, ffi.Double, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + > { + CGImageRef call( + ffi.Pointer arg0, + objc.CGSize arg1, + DartCGFloat arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CGImageRef Function( + ffi.Pointer block, + ffi.Pointer arg0, + objc.CGSize arg1, + CGFloat arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + CGImageRef Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + double, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2, arg3, arg4); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CGRenderingBufferProviderRef _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static CGRenderingBufferProviderRef _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + CGRenderingBufferProviderRef call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + CGRenderingBufferProviderRef Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer, ffi.Uint64, ffi.Pointer)>`. +abstract final class ObjCBlock_CVReturn_CVDisplayLinkRef_CVTimeStamp_CVTimeStamp_CVOptionFlags_CVOptionFlags { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + CVReturn Function( + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + CVOptionFlags arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + > + fromFunction( + DartCVReturn Function( + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + DartCVOptionFlags, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) { + return fn(arg0, arg1, arg2, arg3, arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + CVReturn Function( + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + CVOptionFlags arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + int Function( + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CVReturn Function( + ffi.Pointer, + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + CVOptionFlags, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as int Function( + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CVReturn Function( + ffi.Pointer, + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + CVOptionFlags, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer, ffi.Uint64, ffi.Pointer)>`. +extension ObjCBlock_CVReturn_CVDisplayLinkRef_CVTimeStamp_CVTimeStamp_CVOptionFlags_CVOptionFlags$CallExtension + on + objc.ObjCBlock< + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink>, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + > { + DartCVReturn call( + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + DartCVOptionFlags arg3, + ffi.Pointer arg4, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CVReturn Function( + ffi.Pointer block, + CVDisplayLinkRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + CVOptionFlags arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + CVDisplayLinkRef, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2, arg3, arg4); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSArray_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSArray? Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0)?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSArray_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSArray? call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0) + .address == + 0 + ? null + : objc.NSArray.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSRange, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + NSRange, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + final _$$ref = fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + arg2, + objc.NSString.fromPointer(arg3, retain: true, release: true), + objc.NSString.fromPointer(arg4, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSRange, objc.NSString, objc.NSString)>`. +extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString$CallExtension + on + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSRange, + objc.NSString, + objc.NSString, + ) + > { + objc.NSArray? call( + ffi.Pointer arg0, + NSSpellServer arg1, + NSRange arg2, + objc.NSString arg3, + objc.NSString arg4, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + arg2, + _$$ref$2.pointer, + _$$ref$3.pointer, + ) + .address == + 0 + ? null + : objc.NSArray.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSRange arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + arg2, + _$$ref$2.pointer, + _$$ref$3.pointer, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. +extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString$CallExtension + on + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > { + objc.NSArray? call( + ffi.Pointer arg0, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ) + .address == + 0 + ? null + : objc.NSArray.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, ffi.UnsignedLong, ffi.Uint64, objc.NSDictionary?, NSOrthography?, ffi.Pointer)>`. +abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + NSTextCheckingTypes arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + > + fromFunction( + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + DartNSUInteger, + DartNSTextCheckingTypes, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) { + final _$$ref = fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3, + arg4, + arg5.address == 0 + ? null + : objc.NSDictionary.fromPointer( + arg5, + retain: true, + release: true, + ), + arg6.address == 0 + ? null + : NSOrthography.fromPointer(arg6, retain: true, release: true), + arg7, + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + NSTextCheckingTypes arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSTextCheckingTypes, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSTextCheckingTypes, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, ffi.UnsignedLong, ffi.Uint64, objc.NSDictionary?, NSOrthography?, ffi.Pointer)>`. +extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger$CallExtension + on + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + ffi.UnsignedLong, + ffi.Uint64, + objc.NSDictionary?, + NSOrthography?, + ffi.Pointer, + ) + > { + objc.NSArray? call( + ffi.Pointer arg0, + NSSpellServer arg1, + objc.NSString arg2, + DartNSUInteger arg3, + DartNSTextCheckingTypes arg4, + objc.NSDictionary? arg5, + NSOrthography? arg6, + ffi.Pointer arg7, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg5?.ref; + final _$$ref$4 = arg6?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + NSTextCheckingTypes arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + arg3, + arg4, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + arg7, + ) + .address == + 0 + ? null + : objc.NSArray.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + NSTextCheckingTypes arg4, + ffi.Pointer arg5, + ffi.Pointer arg6, + ffi.Pointer arg7, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + arg3, + arg4, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + arg7, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSString, ffi.Pointer)>`. +abstract final class ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + > + fromFunction( + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + PDEPlugInCallbackProtocol, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + objc.NSString.fromPointer(arg1, retain: true, release: true), + PDEPlugInCallbackProtocol.fromPointer( + arg2, + retain: true, + release: true, + ), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSString, ffi.Pointer)>`. +extension ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol$CallExtension + on + objc.ObjCBlock< + objc.NSArray? Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + ) + > { + objc.NSArray? call( + ffi.Pointer arg0, + objc.NSString arg1, + PDEPlugInCallbackProtocol arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) + .address == + 0 + ? null + : objc.NSArray.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSCachedURLResponse)>`. +abstract final class ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + > + fromFunction( + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSCachedURLResponse.fromPointer(arg2, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSCachedURLResponse)>`. +extension ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse$CallExtension + on + objc.ObjCBlock< + NSCachedURLResponse? Function( + ffi.Pointer, + NSURLConnection, + NSCachedURLResponse, + ) + > { + NSCachedURLResponse? call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSCachedURLResponse arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) + .address == + 0 + ? null + : NSCachedURLResponse.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_NSComparisonResult_objcObjCObjectImpl_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.NSComparisonResult Function(objc.ObjCObject, objc.ObjCObject) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + objc.ObjCObject(arg0, retain: true, release: true), + objc.ObjCObject(arg1, retain: true, release: true), + ).value; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as int Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_NSComparisonResult_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.NSComparisonResult call(objc.ObjCObject arg0, objc.ObjCObject arg1) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + return objc.NSComparisonResult.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer), + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSArray)>`. +abstract final class ObjCBlock_NSData_ffiVoid_NSArray { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSData Function(ffi.Pointer, objc.NSArray) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock, objc.NSArray)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSData Function(ffi.Pointer, objc.NSArray) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock, objc.NSArray)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSData Function(ffi.Pointer, objc.NSArray) + > + fromFunction( + objc.NSData Function(ffi.Pointer, objc.NSArray) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock, objc.NSArray)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + final _$$ref = fn( + arg0, + objc.NSArray.fromPointer(arg1, retain: true, release: true), + ).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSArray)>`. +extension ObjCBlock_NSData_ffiVoid_NSArray$CallExtension + on + objc.ObjCBlock< + objc.NSData Function(ffi.Pointer, objc.NSArray) + > { + objc.NSData call(ffi.Pointer arg0, objc.NSArray arg1) { + final _$$ref$1 = arg1.ref; + return objc.NSData.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. +abstract final class ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromFunction( + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. +extension ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString$CallExtension + on + objc.ObjCBlock< + objc.NSData? Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > { + objc.NSData? call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ) + .address == + 0 + ? null + : objc.NSData.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, NSUInteger, NSDecimalNumber, NSDecimalNumber?)>`. +abstract final class ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + > + fromFunction( + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSCalculationError, + NSDecimalNumber, + NSDecimalNumber?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + final _$$ref = fn( + arg0, + arg1, + NSCalculationError.fromValue(arg2), + NSDecimalNumber.fromPointer(arg3, retain: true, release: true), + arg4.address == 0 + ? null + : NSDecimalNumber.fromPointer( + arg4, + retain: true, + release: true, + ), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, NSUInteger, NSDecimalNumber, NSDecimalNumber?)>`. +extension ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber$CallExtension + on + objc.ObjCBlock< + NSDecimalNumber? Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + NSDecimalNumber, + NSDecimalNumber?, + ) + > { + NSDecimalNumber? call( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSCalculationError arg2, + NSDecimalNumber arg3, + NSDecimalNumber? arg4, + ) { + final _$$ref$1 = arg3.ref; + final _$$ref$2 = arg4?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1, + arg2.value, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ) + .address == + 0 + ? null + : NSDecimalNumber.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1, + arg2.value, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSDictionary_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSDictionary? Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0)?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSDictionary_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSDictionary? call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0) + .address == + 0 + ? null + : objc.NSDictionary.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLRequest)>`. +abstract final class ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + > + fromFunction( + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSURLRequest.fromPointer(arg2, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLRequest)>`. +extension ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest$CallExtension + on + objc.ObjCBlock< + objc.NSInputStream? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + ) + > { + objc.NSInputStream? call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSURLRequest arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) + .address == + 0 + ? null + : objc.NSInputStream.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSOperationQueue_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + NSOperationQueue Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSOperationQueue_ffiVoid$CallExtension + on objc.ObjCBlock)> { + NSOperationQueue call(ffi.Pointer arg0) { + return NSOperationQueue.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock? Function(objc.NSProgress)>`. +abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > + fromFunction( + DartNSProgressUnpublishingHandler? Function(objc.NSProgress) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + final _$$ref = fn( + objc.NSProgress.fromPointer(arg0, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static NSProgressUnpublishingHandler _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer arg0, + ) + > + >() + .asFunction< + NSProgressUnpublishingHandler Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static NSProgressUnpublishingHandler _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as NSProgressUnpublishingHandler Function( + ffi.Pointer, + ))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock? Function(objc.NSProgress)>`. +extension ObjCBlock_NSProgressUnpublishingHandler_NSProgress$CallExtension + on + objc.ObjCBlock< + objc.ObjCBlock? Function(objc.NSProgress) + > { + DartNSProgressUnpublishingHandler? call(objc.NSProgress arg0) { + final _$$ref$1 = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref$1.pointer) + .address == + 0 + ? null + : ObjCBlock_ffiVoid.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + NSProgressUnpublishingHandler Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref$1.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSProgress_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSProgress Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSProgress_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSProgress call(ffi.Pointer arg0) { + return objc.NSProgress.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString?, ffi.Pointer>)>`. +abstract final class ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + > + fromFunction( + NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) { + return fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static NSRange _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_fnPtrTrampoline) + .cast(); + static NSRange _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) => + (objc.getBlockClosure(block) + as NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString?, ffi.Pointer>)>`. +extension ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray$CallExtension + on + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString?, + ffi.Pointer>, + ) + > { + NSRange call( + ffi.Pointer arg0, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString? arg3, + ffi.Pointer> arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer> arg4, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + arg4, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString, ffi.Pointer, ffi.Bool)>`. +abstract final class ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Bool arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + > + fromFunction( + NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + bool arg5, + ) { + return fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4, + arg5, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static NSRange _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + bool arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Bool arg5, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_fnPtrTrampoline) + .cast(); + static NSRange _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + bool arg5, + ) => + (objc.getBlockClosure(block) + as NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString, ffi.Pointer, ffi.Bool)>`. +extension ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool$CallExtension + on + objc.ObjCBlock< + objc.NSRange Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ffi.Pointer, + ffi.Bool, + ) + > { + NSRange call( + ffi.Pointer arg0, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ffi.Pointer arg4, + bool arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Bool arg5, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + arg4, + arg5, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSRoundingMode_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + NSRoundingMode Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0).value; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSRoundingMode_ffiVoid$CallExtension + on objc.ObjCBlock)> { + NSRoundingMode call(ffi.Pointer arg0) { + return NSRoundingMode.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0), + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSSet_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSSet Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSSet_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSSet call(ffi.Pointer arg0) { + return objc.NSSet.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSString_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSString Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSString_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSString call(ffi.Pointer arg0) { + return objc.NSString.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLRequest, NSURLResponse?)>`. +abstract final class ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + > + fromFunction( + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSURLRequest.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : NSURLResponse.fromPointer(arg3, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLRequest, NSURLResponse?)>`. +extension ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse$CallExtension + on + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLConnection, + NSURLRequest, + NSURLResponse?, + ) + > { + NSURLRequest? call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSURLRequest arg2, + NSURLResponse? arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ) + .address == + 0 + ? null + : NSURLRequest.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLRequest, NSURLResponse?)>`. +abstract final class ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + > + fromFunction( + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + NSURLRequest.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : NSURLResponse.fromPointer(arg3, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLRequest, NSURLResponse?)>`. +extension ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse$CallExtension + on + objc.ObjCBlock< + NSURLRequest? Function( + ffi.Pointer, + NSURLDownload, + NSURLRequest, + NSURLResponse?, + ) + > { + NSURLRequest? call( + ffi.Pointer arg0, + NSURLDownload arg1, + NSURLRequest arg2, + NSURLResponse? arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ) + .address == + 0 + ? null + : NSURLRequest.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSURL_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + objc.NSURL? Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0)?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSURL_ffiVoid$CallExtension + on objc.ObjCBlock)> { + objc.NSURL? call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0) + .address == + 0 + ? null + : objc.NSURL.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSView_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + NSView? Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0)?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSView_ffiVoid$CallExtension + on objc.ObjCBlock)> { + NSView? call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0) + .address == + 0 + ? null + : NSView.fromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_PMPageFormat_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + PMPageFormat Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static PMPageFormat _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + PMPageFormat Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static PMPageFormat _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as PMPageFormat Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + PMPageFormat Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_PMPageFormat_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + PMPageFormat call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + PMPageFormat Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + PMPageFormat Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_PMPrintSession_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + PMPrintSession Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static PMPrintSession _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + PMPrintSession Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static PMPrintSession _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as PMPrintSession Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + PMPrintSession Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_PMPrintSession_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + PMPrintSession call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + PMPrintSession Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + PMPrintSession Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_PMPrintSettings_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + PMPrintSettings Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static PMPrintSettings _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + PMPrintSettings Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static PMPrintSettings _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as PMPrintSettings Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + PMPrintSettings Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_PMPrintSettings_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + PMPrintSettings call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + PMPrintSettings Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + PMPrintSettings Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_PMPrinter_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + PMPrinter Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static PMPrinter _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + PMPrinter Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static PMPrinter _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as PMPrinter Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + PMPrinter Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_PMPrinter_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + PMPrinter call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + PMPrinter Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + PMPrinter Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Bool)>`. +abstract final class ObjCBlock_bool_CFArrayRef_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, ffi.Bool)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, ffi.Bool)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, ffi.Bool)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock, ffi.Bool)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, ffi.Bool)> + fromFunction( + bool Function(CFArrayRef, bool) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, ffi.Bool)>( + objc.newClosureBlock(_closureCallable, (CFArrayRef arg0, bool arg1) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + bool arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + CFArrayRef, + ffi.Bool, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + bool arg1, + ) => (objc.getBlockClosure(block) as bool Function(CFArrayRef, bool))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + CFArrayRef, + ffi.Bool, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Bool)>`. +extension ObjCBlock_bool_CFArrayRef_bool$CallExtension + on objc.ObjCBlock, ffi.Bool)> { + bool call(CFArrayRef arg0, bool arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + CFArrayRef arg0, + ffi.Bool arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, CFArrayRef, bool) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_CFStringRef_CGImageMetadataTagRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(CFStringRef arg0, CGImageMetadataTagRef arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function(CFStringRef, CGImageMetadataTagRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + CFStringRef arg0, + CGImageMetadataTagRef arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + CFStringRef arg0, + CGImageMetadataTagRef arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(CFStringRef arg0, CGImageMetadataTagRef arg1) + > + >() + .asFunction()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + CFStringRef, + CGImageMetadataTagRef, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + CFStringRef arg0, + CGImageMetadataTagRef arg1, + ) => + (objc.getBlockClosure(block) + as bool Function(CFStringRef, CGImageMetadataTagRef))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + CFStringRef, + CGImageMetadataTagRef, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_CFStringRef_CGImageMetadataTagRef$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call(CFStringRef arg0, CGImageMetadataTagRef arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + CFStringRef arg0, + CGImageMetadataTagRef arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + CFStringRef, + CGImageMetadataTagRef, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_CGContentInfo_CGBitmapParameters { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function(ffi.Pointer, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_CGContentInfo_CGBitmapParameters$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_bool_CTFontDescriptorMatchingState_CFDictionaryRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Uint32 arg0, CFDictionaryRef arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + > + fromFunction( + bool Function(CTFontDescriptorMatchingState, CFDictionaryRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + CFDictionaryRef arg1, + ) { + return fn(CTFontDescriptorMatchingState.fromValue(arg0), arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + CFDictionaryRef arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Uint32 arg0, CFDictionaryRef arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Uint32, + CFDictionaryRef, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + int arg0, + CFDictionaryRef arg1, + ) => (objc.getBlockClosure(block) as bool Function(int, CFDictionaryRef))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Uint32, + CFDictionaryRef, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_bool_CTFontDescriptorMatchingState_CFDictionaryRef$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) + > { + bool call(CTFontDescriptorMatchingState arg0, CFDictionaryRef arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Uint32 arg0, + CFDictionaryRef arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, int, CFDictionaryRef) + >()(ref.pointer, arg0.value, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ObjectType_ObjectType { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function(objc.ObjCObject, objc.ObjCObject) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + objc.ObjCObject(arg0, retain: true, release: true), + objc.ObjCObject(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_ObjectType_ObjectType$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call(objc.ObjCObject arg0, objc.ObjCObject arg1) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Size)>`. +abstract final class ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + dispatch_data_t arg0, + ffi.Size arg1, + ffi.Pointer arg2, + ffi.Size arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) + > + fromFunction( + bool Function(Dartdispatch_data_t, int, ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >( + objc.newClosureBlock(_closureCallable, ( + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + arg1, + arg2, + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + dispatch_data_t arg0, + ffi.Size arg1, + ffi.Pointer arg2, + ffi.Size arg3, + ) + > + >() + .asFunction< + bool Function(dispatch_data_t, int, ffi.Pointer, int) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + dispatch_data_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ) => + (objc.getBlockClosure(block) + as bool Function(dispatch_data_t, int, ffi.Pointer, int))( + arg0, + arg1, + arg2, + arg3, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + dispatch_data_t, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Size)>`. +extension ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + > { + bool call( + Dartdispatch_data_t arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + dispatch_data_t arg0, + ffi.Size arg1, + ffi.Pointer arg2, + ffi.Size arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + dispatch_data_t, + int, + ffi.Pointer, + int, + ) + >()(ref.pointer, _$$ref.pointer, arg1, arg2, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ffiChar_CGPDFObjectRef_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function(ffi.Pointer, CGPDFObjectRef, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + CGPDFObjectRef, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + CGPDFObjectRef, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + CGPDFObjectRef, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + CGPDFObjectRef, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_bool_ffiChar_CGPDFObjectRef_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call( + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + CGPDFObjectRef, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSObject)>`. +abstract final class ObjCBlock_bool_ffiChar_xpcobjectt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, objc.NSObject)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, objc.NSObject)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, objc.NSObject)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, xpc_object_t arg1) + > + > + ptr, + ) => objc.ObjCBlock, objc.NSObject)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, objc.NSObject)> + fromFunction( + bool Function(ffi.Pointer, Dartxpc_object_t) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, objc.NSObject)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + xpc_object_t arg1, + ) { + return fn( + arg0, + objc.NSObject.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + xpc_object_t arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, xpc_object_t arg1) + > + >() + .asFunction, xpc_object_t)>()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + xpc_object_t, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + xpc_object_t arg1, + ) => + (objc.getBlockClosure(block) + as bool Function(ffi.Pointer, xpc_object_t))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + xpc_object_t, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSObject)>`. +extension ObjCBlock_bool_ffiChar_xpcobjectt$CallExtension + on objc.ObjCBlock, objc.NSObject)> { + bool call(ffi.Pointer arg0, Dartxpc_object_t arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + xpc_object_t arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + xpc_object_t, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ffiSize_CGPDFObjectRef_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Size arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromFunction( + bool Function(int, CGPDFObjectRef, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Size arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function(int, CGPDFObjectRef, ffi.Pointer) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Size, + CGPDFObjectRef, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + int arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function(int, CGPDFObjectRef, ffi.Pointer))( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Size, + CGPDFObjectRef, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_ffiSize_CGPDFObjectRef_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call(int arg0, CGPDFObjectRef arg1, ffi.Pointer arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Size arg0, + CGPDFObjectRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + int, + CGPDFObjectRef, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_bool_ffiSize_xpcobjectt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + bool Function(int, Dartxpc_object_t) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0, xpc_object_t arg1) { + return fn( + arg0, + objc.NSObject.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + xpc_object_t arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Size, + xpc_object_t, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + int arg0, + xpc_object_t arg1, + ) => (objc.getBlockClosure(block) as bool Function(int, xpc_object_t))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Size, + xpc_object_t, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_bool_ffiSize_xpcobjectt$CallExtension + on objc.ObjCBlock { + bool call(int arg0, Dartxpc_object_t arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Size arg0, + xpc_object_t arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, int, xpc_object_t) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_bool_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + bool Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => (objc.getBlockClosure(block) as bool Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_bool_ffiVoid$CallExtension + on objc.ObjCBlock)> { + bool call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSArray, objc.NSData)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSArray_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + > + fromFunction( + bool Function(ffi.Pointer, objc.NSArray, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSArray.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSArray, objc.NSData)>`. +extension ObjCBlock_bool_ffiVoid_NSArray_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) + > { + bool call(ffi.Pointer arg0, objc.NSArray arg1, objc.NSData arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSConnection, NSConnection)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSConnection_NSConnection { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + > + fromFunction( + bool Function(ffi.Pointer, NSConnection, NSConnection) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSConnection.fromPointer(arg1, retain: true, release: true), + NSConnection.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSConnection, NSConnection)>`. +extension ObjCBlock_bool_ffiVoid_NSConnection_NSConnection$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) + > { + bool call(ffi.Pointer arg0, NSConnection arg1, NSConnection arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSConnection, NSDistantObjectRequest)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + > + fromFunction( + bool Function(ffi.Pointer, NSConnection, NSDistantObjectRequest) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSConnection.fromPointer(arg1, retain: true, release: true), + NSDistantObjectRequest.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSConnection, NSDistantObjectRequest)>`. +extension ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSConnection, + NSDistantObjectRequest, + ) + > { + bool call( + ffi.Pointer arg0, + NSConnection arg1, + NSDistantObjectRequest arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer>)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer>, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer>)>`. +extension ObjCBlock_bool_ffiVoid_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer>, + ) + > { + bool call( + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer> arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + objc.NSString.fromPointer(arg4, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSString, + objc.NSString, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSError arg2, + objc.NSString arg3, + objc.NSString arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + objc.NSURL.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + objc.NSURL.fromPointer(arg3, retain: true, release: true), + objc.NSURL.fromPointer(arg4, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSError, + objc.NSURL, + objc.NSURL, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSError arg2, + objc.NSURL arg3, + objc.NSURL arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + > + fromFunction( + bool Function(ffi.Pointer, NSFileManager, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSString, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSString, + objc.NSString, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSString arg2, + objc.NSString arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSURL)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + > + fromFunction( + bool Function(ffi.Pointer, NSFileManager, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSURL.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSURL)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) + > { + bool call(ffi.Pointer arg0, NSFileManager arg1, objc.NSURL arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSURL, objc.NSURL)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + > + fromFunction( + bool Function(ffi.Pointer, NSFileManager, objc.NSURL, objc.NSURL) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSFileManager.fromPointer(arg1, retain: true, release: true), + objc.NSURL.fromPointer(arg2, retain: true, release: true), + objc.NSURL.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSURL, objc.NSURL)>`. +extension ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSFileManager, + objc.NSURL, + objc.NSURL, + ) + > { + bool call( + ffi.Pointer arg0, + NSFileManager arg1, + objc.NSURL arg2, + objc.NSURL arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromFunction( + bool Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSString.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) + > { + bool call( + ffi.Pointer arg0, + objc.NSString arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSURLConnection { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLConnection) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock, NSURLConnection)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLConnection) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock, NSURLConnection)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLConnection) + > + fromFunction( + bool Function(ffi.Pointer, NSURLConnection) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock, NSURLConnection)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection)>`. +extension ObjCBlock_bool_ffiVoid_NSURLConnection$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLConnection) + > { + bool call(ffi.Pointer arg0, NSURLConnection arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLProtectionSpace)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + > + fromFunction( + bool Function(ffi.Pointer, NSURLConnection, NSURLProtectionSpace) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSURLProtectionSpace.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLProtectionSpace)>`. +extension ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLConnection, + NSURLProtectionSpace, + ) + > { + bool call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSURLProtectionSpace arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSURLDownload)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSURLDownload)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSURLDownload)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSURLDownload)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLDownload)> + fromFunction( + bool Function(ffi.Pointer, NSURLDownload) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSURLDownload)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload)>`. +extension ObjCBlock_bool_ffiVoid_NSURLDownload$CallExtension + on objc.ObjCBlock, NSURLDownload)> { + bool call(ffi.Pointer arg0, NSURLDownload arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromFunction( + bool Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. +extension ObjCBlock_bool_ffiVoid_NSURLDownload_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) + > { + bool call( + ffi.Pointer arg0, + NSURLDownload arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLProtectionSpace)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + > + fromFunction( + bool Function(ffi.Pointer, NSURLDownload, NSURLProtectionSpace) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + NSURLProtectionSpace.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLProtectionSpace)>`. +extension ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSURLDownload, + NSURLProtectionSpace, + ) + > { + bool call( + ffi.Pointer arg0, + NSURLDownload arg1, + NSURLProtectionSpace arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromFunction( + bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSUserNotificationCenter.fromPointer( + arg1, + retain: true, + release: true, + ), + NSUserNotification.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. +extension ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > { + bool call( + ffi.Pointer arg0, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXPCListener, NSXPCConnection)>`. +abstract final class ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + > + fromFunction( + bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSXPCListener.fromPointer(arg1, retain: true, release: true), + NSXPCConnection.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static bool _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, false) + .cast(); + static bool _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, false) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXPCListener, NSXPCConnection)>`. +extension ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection$CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + NSXPCListener, + NSXPCConnection, + ) + > { + bool call( + ffi.Pointer arg0, + NSXPCListener arg1, + NSXPCConnection arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiInt_ffiUnsignedInt_cupsdestt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.UnsignedInt arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > + fromFunction( + int Function(int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int Function(ffi.UnsignedInt arg0, ffi.Pointer arg1) + > + >() + .asFunction)>()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as int Function(int, ffi.Pointer))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiInt_ffiUnsignedInt_cupsdestt$CallExtension + on + objc.ObjCBlock< + ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) + > { + int call(int arg0, ffi.Pointer arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer block, + ffi.UnsignedInt arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiInt_ffiVoid_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + int Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as int Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_ffiInt_ffiVoid_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > { + int call(ffi.Pointer arg0, ffi.Pointer arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiShort_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + int Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static int _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline, 0) + .cast(); + static int _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline, 0) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiShort_ffiVoid$CallExtension + on objc.ObjCBlock)> { + int call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Short Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, () { + return fn(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function() fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort( + _1uu024u_wrapListenerBlock_1pl9qdv, + (ffi.Pointer rawArgs) => fn(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function() fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort( + _1uu024u_wrapBlockingBlock_1pl9qdv, + (ffi.Pointer rawArgs) => fn(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline(ffi.Pointer block) => block + .ref + .target + .cast>() + .asFunction()(); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline(ffi.Pointer block) => + (objc.getBlockClosure(block) as void Function())(); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid$CallExtension + on objc.ObjCBlock { + void call() { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block) + > + >() + .asFunction)>()( + ref.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_Boolean_UInt64_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(Boolean arg0, UInt64 arg1, CFErrorRef arg2) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > + fromFunction( + void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + int arg1, + CFErrorRef arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > + listener( + void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_115kkcp, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_zgaes8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > + blocking( + void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_115kkcp, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_zgaes8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + int arg1, + CFErrorRef arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(Boolean arg0, UInt64 arg1, CFErrorRef arg2) + > + >() + .asFunction()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + Boolean, + UInt64, + CFErrorRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + int arg1, + CFErrorRef arg2, + ) => (objc.getBlockClosure(block) as void Function(int, int, CFErrorRef))( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + Boolean, + UInt64, + CFErrorRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_Boolean_UInt64_CFErrorRef$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.UnsignedChar, + ffi.UnsignedLongLong, + ffi.Pointer<__CFError>, + ) + > { + void call(DartBoolean arg0, DartUInt64 arg1, CFErrorRef arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + Boolean arg0, + UInt64 arg1, + CFErrorRef arg2, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, int, int, CFErrorRef) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_CFArrayRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + void Function(CFArrayRef) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (CFArrayRef arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(CFArrayRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9fms3g, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vgtcpl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(CFArrayRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9fms3g, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vgtcpl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, CFArrayRef) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + ) => (objc.getBlockClosure(block) as void Function(CFArrayRef))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, CFArrayRef) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_CFArrayRef$CallExtension + on objc.ObjCBlock)> { + void call(CFArrayRef arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFArrayRef arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, CFArrayRef) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__CFError>)>`. +abstract final class ObjCBlock_ffiVoid_CFArrayRef_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + fromFunction( + void Function(CFArrayRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + >( + objc.newClosureBlock(_closureCallable, ( + CFArrayRef arg0, + CFErrorRef arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + listener( + void Function(CFArrayRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_15ghdzk, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17mefw7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > + blocking( + void Function(CFArrayRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15ghdzk, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17mefw7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + CFErrorRef arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFArrayRef, + CFErrorRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFArrayRef arg0, + CFErrorRef arg1, + ) => (objc.getBlockClosure(block) as void Function(CFArrayRef, CFErrorRef))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFArrayRef, + CFErrorRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer<__CFError>)>`. +extension ObjCBlock_ffiVoid_CFArrayRef_CFErrorRef$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) + > { + void call(CFArrayRef arg0, CFErrorRef arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFArrayRef arg0, + CFErrorRef arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, CFArrayRef, CFErrorRef) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + void Function(CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (CFErrorRef arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1kwz7d1, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13g89k6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1kwz7d1, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13g89k6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFErrorRef arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, CFErrorRef) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFErrorRef arg0, + ) => (objc.getBlockClosure(block) as void Function(CFErrorRef))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, CFErrorRef) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_CFErrorRef$CallExtension + on objc.ObjCBlock)> { + void call(CFErrorRef arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFErrorRef arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, CFErrorRef) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_CFErrorRef_CGContentInfo_CGBitmapParameters { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + void Function( + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > + listener( + void Function( + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1yrznn1, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hs0ws6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > + blocking( + void Function( + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1yrznn1, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hs0ws6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_CFErrorRef_CGContentInfo_CGBitmapParameters$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__CFError>, + ffi.Pointer, + ffi.Pointer, + ) + > { + void call( + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFErrorRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + CFErrorRef, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, CFOptionFlags)>`. +abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopObserverRef arg0, CFOptionFlags arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + fromFunction( + void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >( + objc.newClosureBlock(_closureCallable, ( + CFRunLoopObserverRef arg0, + int arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + listener( + void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_tg5tbv, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_14lm7fk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > + blocking( + void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_tg5tbv, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_14lm7fk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFRunLoopObserverRef arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(CFRunLoopObserverRef arg0, CFOptionFlags arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFRunLoopObserverRef arg0, + int arg1, + ) => + (objc.getBlockClosure(block) as void Function(CFRunLoopObserverRef, int))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFRunLoopObserverRef, + CFOptionFlags, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, CFOptionFlags)>`. +extension ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) + > { + void call(CFRunLoopObserverRef arg0, DartCFOptionFlags arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFRunLoopObserverRef arg0, + CFOptionFlags arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + CFRunLoopObserverRef, + int, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_CFRunLoopTimerRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer> + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + void Function(CFRunLoopTimerRef) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (CFRunLoopTimerRef arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + listener( + void Function(CFRunLoopTimerRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1dqvvol, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_n2dxuu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> + blocking( + void Function(CFRunLoopTimerRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1dqvvol, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_n2dxuu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFRunLoopTimerRef arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFRunLoopTimerRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFRunLoopTimerRef arg0, + ) => (objc.getBlockClosure(block) as void Function(CFRunLoopTimerRef))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFRunLoopTimerRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_CFRunLoopTimerRef$CallExtension + on objc.ObjCBlock)> { + void call(CFRunLoopTimerRef arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFRunLoopTimerRef arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, CFRunLoopTimerRef) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__CFError>, ffi.UnsignedChar)>`. +abstract final class ObjCBlock_ffiVoid_CFTypeRef_CFErrorRef_Boolean { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFTypeRef arg0, CFErrorRef arg1, Boolean arg2) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > + fromFunction( + void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >( + objc.newClosureBlock(_closureCallable, ( + CFTypeRef arg0, + CFErrorRef arg1, + int arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > + listener( + void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_b3tf6o, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1sucxsg.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > + blocking( + void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_b3tf6o, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1sucxsg.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CFTypeRef arg0, + CFErrorRef arg1, + int arg2, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(CFTypeRef arg0, CFErrorRef arg1, Boolean arg2) + > + >() + .asFunction()( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFTypeRef, + CFErrorRef, + Boolean, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CFTypeRef arg0, + CFErrorRef arg1, + int arg2, + ) => + (objc.getBlockClosure(block) + as void Function(CFTypeRef, CFErrorRef, int))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CFTypeRef, + CFErrorRef, + Boolean, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer<__CFError>, ffi.UnsignedChar)>`. +extension ObjCBlock_ffiVoid_CFTypeRef_CFErrorRef_Boolean$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + > { + void call(CFTypeRef arg0, CFErrorRef arg1, DartBoolean arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CFTypeRef arg0, + CFErrorRef arg1, + Boolean arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + CFTypeRef, + CFErrorRef, + int, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_CGDisplayStreamFrameStatus_Uint64_IOSurfaceRef_CGDisplayStreamUpdateRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int32 arg0, + ffi.Uint64 arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > + fromFunction( + void Function( + CGDisplayStreamFrameStatus, + int, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + int arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) { + return fn( + CGDisplayStreamFrameStatus.fromValue(arg0), + arg1, + arg2, + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > + listener( + void Function( + CGDisplayStreamFrameStatus, + int, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_du1izn, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1lr5l4t.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > + blocking( + void Function( + CGDisplayStreamFrameStatus, + int, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_du1izn, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1lr5l4t.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + int arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int32 arg0, + ffi.Uint64 arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) + > + >() + .asFunction< + void Function(int, int, IOSurfaceRef, CGDisplayStreamUpdateRef) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + ffi.Uint64, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + int arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) => + (objc.getBlockClosure(block) + as void Function(int, int, IOSurfaceRef, CGDisplayStreamUpdateRef))( + arg0, + arg1, + arg2, + arg3, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + ffi.Uint64, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_CGDisplayStreamFrameStatus_Uint64_IOSurfaceRef_CGDisplayStreamUpdateRef$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Int32, + ffi.Uint64, + ffi.Pointer<__IOSurface>, + ffi.Pointer, + ) + > { + void call( + CGDisplayStreamFrameStatus arg0, + int arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int32 arg0, + ffi.Uint64 arg1, + IOSurfaceRef arg2, + CGDisplayStreamUpdateRef arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + int, + IOSurfaceRef, + CGDisplayStreamUpdateRef, + ) + >()(ref.pointer, arg0.value, arg1, arg2, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_CGPathElement { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1ctgxtl, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_dmvhfp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1ctgxtl, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_dmvhfp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_CGPathElement$CallExtension + on objc.ObjCBlock)> { + void call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + void Function( + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + listener( + void Function( + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_rdj45r, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v1zq3a.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + blocking( + void Function( + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_rdj45r, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v1zq3a.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + void call( + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + CGRenderingBufferProviderRef arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + CGRenderingBufferProviderRef, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSAppleEventDescriptor_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > + fromFunction( + void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : NSAppleEventDescriptor.fromPointer( + arg0, + retain: true, + release: true, + ), + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > + listener( + void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1gmgda9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > + blocking( + void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1gmgda9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSAppleEventDescriptor_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) + > { + void call(NSAppleEventDescriptor? arg0, objc.NSError? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSArray { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSArray?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSArray.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSArray?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1p7ak3v.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSArray?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1p7ak3v.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSArray$CallExtension + on objc.ObjCBlock { + void call(objc.NSArray? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSBackgroundActivityResult { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSBackgroundActivityResult) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0) { + return fn(NSBackgroundActivityResult.fromValue(arg0)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSBackgroundActivityResult) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_10ssdng, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_ldsont.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSBackgroundActivityResult) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_10ssdng, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_ldsont.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, NSInteger) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ) => (objc.getBlockClosure(block) as void Function(int))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, NSInteger) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSBackgroundActivityResult$CallExtension + on objc.ObjCBlock { + void call(NSBackgroundActivityResult arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ) + > + >() + .asFunction, int)>()( + ref.pointer, + arg0.value, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSCachedURLResponse?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : NSCachedURLResponse.fromPointer( + arg0, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSCachedURLResponse?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_wtbfzi.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSCachedURLResponse?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_wtbfzi.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSCachedURLResponse$CallExtension + on objc.ObjCBlock { + void call(NSCachedURLResponse? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSData_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSData.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x5cg0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x5cg0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension + on objc.ObjCBlock { + void call(objc.NSData? arg0, objc.NSError? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + fromFunction( + void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSData.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + listener( + void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1mv87bk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > + blocking( + void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1mv87bk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) + > { + void call(objc.NSData? arg0, NSURLResponse? arg1, objc.NSError? arg2) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + final _$$ref$2 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSDictionary?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSDictionary.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSDictionary?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_6tydoo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSDictionary?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_6tydoo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSDictionary$CallExtension + on objc.ObjCBlock { + void call(objc.NSDictionary? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSDictionary, + objc.NSRange, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSDictionary, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + fromFunction( + void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSDictionary, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) { + return fn( + objc.NSDictionary.fromPointer(arg0, retain: true, release: true), + arg1, + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + listener( + void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1a22wz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v8in3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + > + blocking( + void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1a22wz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v8in3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSDictionary_NSRange_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSDictionary, + objc.NSRange, + ffi.Pointer, + ) + > { + void call(objc.NSDictionary arg0, NSRange arg1, ffi.Pointer arg2) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSError.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_117e0ww.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_117e0ww.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSError$CallExtension + on objc.ObjCBlock { + void call(objc.NSError? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSError$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn(objc.NSError.fromPointer(arg0, retain: true, release: true)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_b9s2kt.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_b9s2kt.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSError$1$CallExtension + on objc.ObjCBlock { + void call(objc.NSError arg0) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSFileHandle { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSFileHandle) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn(NSFileHandle.fromPointer(arg0, retain: true, release: true)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSFileHandle) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v5xz31.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSFileHandle) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_v5xz31.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSFileHandle$CallExtension + on objc.ObjCBlock { + void call(NSFileHandle arg0) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSInputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSInputStream?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSInputStream.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSInputStream?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ura76.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSInputStream?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ura76.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSInputStream$CallExtension + on objc.ObjCBlock { + void call(objc.NSInputStream? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>`. +abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + fromFunction( + void Function( + DartNSItemProviderCompletionHandler, + objc.ObjCObject, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >( + objc.newClosureBlock(_closureCallable, ( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( + arg0, + retain: true, + release: true, + ), + objc.ObjCObject(arg1, retain: true, release: true), + objc.NSDictionary.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + listener( + void Function( + DartNSItemProviderCompletionHandler, + objc.ObjCObject, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1b3bb6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_6yk1dr.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > + blocking( + void Function( + DartNSItemProviderCompletionHandler, + objc.ObjCObject, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1b3bb6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_6yk1dr.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>`. +extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >, + ffi.Pointer, + objc.NSDictionary, + ) + > { + void call( + DartNSItemProviderCompletionHandler arg0, + objc.ObjCObject arg1, + objc.NSDictionary arg2, + ) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSItemProviderCompletionHandler arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSItemProviderCompletionHandler, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(Dartsec_certificate_t) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (sec_certificate_t arg0) { + return fn(objc.NSObject.fromPointer(arg0, retain: true, release: true)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(Dartsec_certificate_t) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1q305zu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(Dartsec_certificate_t) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1q305zu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + sec_certificate_t arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_certificate_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + sec_certificate_t arg0, + ) => (objc.getBlockClosure(block) as void Function(sec_certificate_t))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_certificate_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSObject$CallExtension + on objc.ObjCBlock { + void call(Dartsec_certificate_t arg0) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_certificate_t arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, sec_certificate_t) + >()(ref.pointer, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSObject$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(Dartdispatch_data_t?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0) { + return fn( + arg0.address == 0 + ? null + : objc.NSObject.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(Dartdispatch_data_t?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n468bj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(Dartdispatch_data_t?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n468bj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, dispatch_data_t) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, dispatch_data_t) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSObject$1$CallExtension + on objc.ObjCBlock { + void call(Dartdispatch_data_t? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, dispatch_data_t) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + fromFunction( + void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSString.fromPointer(arg0, retain: true, release: true), + arg1, + arg2, + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + listener( + void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_lmc3p5, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pvrxoh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > + blocking( + void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_lmc3p5, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pvrxoh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSString?, + objc.NSRange, + objc.NSRange, + ffi.Pointer, + ) + > { + void call( + objc.NSString? arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSTask { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSTask) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn(NSTask.fromPointer(arg0, retain: true, release: true)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSTask) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_347s5u.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSTask) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_347s5u.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSTask$CallExtension + on objc.ObjCBlock { + void call(NSTask arg0) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) + > + fromFunction( + void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0.address == 0 + ? null + : NSTextCheckingResult.fromPointer( + arg0, + retain: true, + release: true, + ), + arg1, + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) + > + listener( + void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_6jvo9y, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1uc4fg7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) + > + blocking( + void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6jvo9y, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1uc4fg7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + NSTextCheckingResult?, + NSUInteger, + ffi.Pointer, + ) + > { + void call( + NSTextCheckingResult? arg0, + DartNSUInteger arg1, + ffi.Pointer arg2, + ) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSUInteger arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLCredential { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : NSURLCredential.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13o2rom.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13o2rom.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLCredential$CallExtension + on objc.ObjCBlock { + void call(NSURLCredential? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : NSURLRequest.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n6ph2.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n6ph2.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLRequest$CallExtension + on objc.ObjCBlock { + void call(NSURLRequest? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + fromFunction( + void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0.address == 0 + ? null + : NSURLResponse.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSData.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + listener( + void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1oftdow.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > + blocking( + void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1oftdow.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) + > { + void call(NSURLResponse? arg0, objc.NSData? arg1, objc.NSError? arg2) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + final _$$ref$2 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + int arg0, + ffi.Pointer arg1, + ) { + return fn( + NSURLSessionAuthChallengeDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLCredential.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_n8yd09, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_u65oe8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_n8yd09, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_u65oe8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + NSInteger arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential$CallExtension + on objc.ObjCBlock { + void call(NSURLSessionAuthChallengeDisposition arg0, NSURLCredential? arg1) { + final _$$ref = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0.value, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + int arg0, + ffi.Pointer arg1, + ) { + return fn( + NSURLSessionDelayedRequestDisposition.fromValue(arg0), + arg1.address == 0 + ? null + : NSURLRequest.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1otpo83, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_171cldw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1otpo83, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_171cldw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + NSInteger arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest$CallExtension + on objc.ObjCBlock { + void call(NSURLSessionDelayedRequestDisposition arg0, NSURLRequest? arg1) { + final _$$ref = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0.value, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSURLSessionResponseDisposition) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0) { + return fn(NSURLSessionResponseDisposition.fromValue(arg0)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURLSessionResponseDisposition) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_16sve1d, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1y7f3jy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURLSessionResponseDisposition) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_16sve1d, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1y7f3jy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, NSInteger) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ) => (objc.getBlockClosure(block) as void Function(int))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, NSInteger) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURLSessionResponseDisposition$CallExtension + on objc.ObjCBlock { + void call(NSURLSessionResponseDisposition arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSInteger arg0, + ) + > + >() + .asFunction, int)>()( + ref.pointer, + arg0.value, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + fromFunction( + void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSURL.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : NSURLResponse.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + listener( + void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3gru2r.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > + blocking( + void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3gru2r.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) + > { + void call(objc.NSURL? arg0, NSURLResponse? arg1, objc.NSError? arg2) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + final _$$ref$2 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_OSStatus_AuthorizationRights { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(OSStatus arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > + fromFunction( + void Function(DartSInt32, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > + listener( + void Function(DartSInt32, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_l3f29g, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1v0sc8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > + blocking( + void Function(DartSInt32, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_l3f29g, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1v0sc8.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + OSStatus arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + OSStatus, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function(int, ffi.Pointer))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + OSStatus, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_OSStatus_AuthorizationRights$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Int, ffi.Pointer) + > { + void call(DartSInt32 arg0, ffi.Pointer arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + OSStatus arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__SecKey>, ffi.Pointer<__CFError>)>`. +abstract final class ObjCBlock_ffiVoid_SecKeyRef_SecKeyRef_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > + fromFunction( + void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + SecKeyRef arg0, + SecKeyRef arg1, + CFErrorRef arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > + listener( + void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1rz4y3, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_5zyi3o.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > + blocking( + void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1rz4y3, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_5zyi3o.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + SecKeyRef arg0, + SecKeyRef arg1, + CFErrorRef arg2, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) + > + >() + .asFunction()( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecKeyRef, + SecKeyRef, + CFErrorRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + SecKeyRef arg0, + SecKeyRef arg1, + CFErrorRef arg2, + ) => + (objc.getBlockClosure(block) + as void Function(SecKeyRef, SecKeyRef, CFErrorRef))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecKeyRef, + SecKeyRef, + CFErrorRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer<__SecKey>, ffi.Pointer<__CFError>)>`. +extension ObjCBlock_ffiVoid_SecKeyRef_SecKeyRef_CFErrorRef$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + > { + void call(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + SecKeyRef arg0, + SecKeyRef arg1, + CFErrorRef arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + SecKeyRef, + SecKeyRef, + CFErrorRef, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Uint32)>`. +abstract final class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, ffi.Uint32)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, ffi.Uint32)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, ffi.Uint32)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock, ffi.Uint32)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, ffi.Uint32)> + fromFunction( + void Function(SecTrustRef, SecTrustResultType) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, ffi.Uint32)>( + objc.newClosureBlock(_closureCallable, (SecTrustRef arg0, int arg1) { + return fn(arg0, SecTrustResultType.fromValue(arg1)); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, ffi.Uint32)> + listener( + void Function(SecTrustRef, SecTrustResultType) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_gwxhxt, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12rv5aa.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, ffi.Uint32)> + blocking( + void Function(SecTrustRef, SecTrustResultType) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_gwxhxt, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12rv5aa.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + SecTrustRef arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + SecTrustRef arg0, + int arg1, + ) => (objc.getBlockClosure(block) as void Function(SecTrustRef, int))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Uint32, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Uint32)>`. +extension ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType$CallExtension + on objc.ObjCBlock, ffi.Uint32)> { + void call(SecTrustRef arg0, SecTrustResultType arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + SecTrustRef arg0, + ffi.Uint32 arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, SecTrustRef, int) + >()(ref.pointer, arg0, arg1.value); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)>`. +abstract final class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + fromFunction( + void Function(SecTrustRef, bool, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + listener( + void Function(SecTrustRef, bool, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_k73ff5, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_j3xbuw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) + > + blocking( + void Function(SecTrustRef, bool, CFErrorRef) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_k73ff5, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_j3xbuw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + SecTrustRef arg0, + ffi.Bool arg1, + CFErrorRef arg2, + ) + > + >() + .asFunction()( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + SecTrustRef arg0, + bool arg1, + CFErrorRef arg2, + ) => + (objc.getBlockClosure(block) + as void Function(SecTrustRef, bool, CFErrorRef))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + SecTrustRef, + ffi.Bool, + CFErrorRef, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)>`. +extension ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + > { + void call(SecTrustRef arg0, bool arg1, CFErrorRef arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + SecTrustRef arg0, + ffi.Bool arg1, + CFErrorRef arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + SecTrustRef, + bool, + CFErrorRef, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_Uint16 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_15f11yh, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_tbof01.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15f11yh, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_tbof01.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Uint16) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ) => (objc.getBlockClosure(block) as void Function(int))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Uint16) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_Uint16$CallExtension + on objc.ObjCBlock { + void call(int arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Uint16 arg0, + ) + > + >() + .asFunction, int)>()( + ref.pointer, + arg0, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(bool) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (bool arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1s56lr9, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k4je64.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1s56lr9, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k4je64.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + bool arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Bool) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + bool arg0, + ) => (objc.getBlockClosure(block) as void Function(bool))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Bool) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_bool$CallExtension + on objc.ObjCBlock { + void call(bool arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Bool arg0, + ) + > + >() + .asFunction, bool)>()( + ref.pointer, + arg0, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_bool_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Bool arg0, ffi.Pointer arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(bool, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + bool arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(bool, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_hk7n97, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_syyzqk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(bool, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hk7n97, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_syyzqk.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + bool arg0, + ffi.Pointer arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Bool arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + bool arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function(bool, ffi.Pointer))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_bool_NSError$CallExtension + on objc.ObjCBlock { + void call(bool arg0, objc.NSError? arg1) { + final _$$ref = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Bool arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + bool, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(bool, Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + bool arg0, + dispatch_data_t arg1, + int arg2, + ) { + return fn( + arg0, + arg1.address == 0 + ? null + : objc.NSObject.fromPointer(arg1, retain: true, release: true), + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(bool, Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_og5b6y, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_uul9n9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(bool, Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_og5b6y, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_uul9n9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + bool arg0, + dispatch_data_t arg1, + int arg2, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Bool arg0, + dispatch_data_t arg1, + ffi.Int arg2, + ) + > + >() + .asFunction()( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + bool arg0, + dispatch_data_t arg1, + int arg2, + ) => + (objc.getBlockClosure(block) + as void Function(bool, dispatch_data_t, int))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Bool, + dispatch_data_t, + ffi.Int, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt$CallExtension + on objc.ObjCBlock { + void call(bool arg0, Dartdispatch_data_t? arg1, int arg2) { + final _$$ref = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Bool arg0, + dispatch_data_t arg1, + ffi.Int arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + bool, + dispatch_data_t, + int, + ) + >()(ref.pointer, arg0, _$$ref?.pointer ?? ffi.nullptr, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + dispatch_data_t arg0, + dispatch_data_t arg1, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + objc.NSObject.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_lmnq5k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_lmnq5k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + dispatch_data_t arg1, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1) + > + >() + .asFunction()( + arg0, + arg1, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + dispatch_data_t arg1, + ) => + (objc.getBlockClosure(block) + as void Function(dispatch_data_t, dispatch_data_t))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat$CallExtension + on objc.ObjCBlock { + void call(Dartdispatch_data_t arg0, Dartdispatch_data_t arg1) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + dispatch_data_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + dispatch_data_t, + dispatch_data_t, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(Dartdispatch_data_t, int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0, int arg1) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + arg1, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(Dartdispatch_data_t, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18kzm6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k4eb20.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(Dartdispatch_data_t, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18kzm6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k4eb20.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_dispatchdatat_ffiInt$CallExtension + on objc.ObjCBlock { + void call(Dartdispatch_data_t arg0, int arg1) { + final _$$ref = arg0.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + ffi.Int arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, dispatch_data_t, int) + >()(ref.pointer, _$$ref.pointer, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0, int arg1) { + return fn( + arg0.address == 0 + ? null + : objc.NSObject.fromPointer(arg0, retain: true, release: true), + arg1, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18kzm6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_11uyayp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(Dartdispatch_data_t?, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18kzm6a, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_11uyayp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + dispatch_data_t arg0, + int arg1, + ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + dispatch_data_t, + ffi.Int, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1$CallExtension + on objc.ObjCBlock { + void call(Dartdispatch_data_t? arg0, int arg1) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + dispatch_data_t arg0, + ffi.Int arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, dispatch_data_t, int) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Double arg0, + CFIndex arg1, + ffi.Bool arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + fromFunction( + void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + double arg0, + int arg1, + bool arg2, + ffi.Pointer arg3, + ) { + return fn(arg0, arg1, arg2, arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + listener( + void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_132rcs6, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1xkpqmj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + > + blocking( + void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_132rcs6, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1xkpqmj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + double arg0, + int arg1, + bool arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Double arg0, + CFIndex arg1, + ffi.Bool arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function(double, int, bool, ffi.Pointer) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Double, + CFIndex, + ffi.Bool, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + double arg0, + int arg1, + bool arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function(double, int, bool, ffi.Pointer))( + arg0, + arg1, + arg2, + arg3, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Double, + CFIndex, + ffi.Bool, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Double, + ffi.Long, + ffi.Bool, + ffi.Pointer, + ) + > { + void call( + double arg0, + DartCFIndex arg1, + bool arg2, + ffi.Pointer arg3, + ) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Double arg0, + CFIndex arg1, + ffi.Bool arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + double, + int, + bool, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_ffiInt { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9o8504, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1s2j81k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9o8504, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1s2j81k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Int) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ) => (objc.getBlockClosure(block) as void Function(int))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Int) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_ffiInt$CallExtension + on objc.ObjCBlock { + void call(int arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int arg0, + ) + > + >() + .asFunction, int)>()( + ref.pointer, + arg0, + ); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_ffiSize { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, (int arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_6enxqz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_kqbpyy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6enxqz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_kqbpyy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Size) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + ) => (objc.getBlockClosure(block) as void Function(int))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Size) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_ffiSize$CallExtension + on objc.ObjCBlock { + void call(int arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Size arg0, + ) + > + >() + .asFunction, int)>()( + ref.pointer, + arg0, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiSize_CGImageRef_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Size arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + fromFunction( + void Function(int, CGImageRef, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + int arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) { + return fn(arg0, arg1, arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + listener( + void Function(int, CGImageRef, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_11t2oft, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1x2wp90.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + > + blocking( + void Function(int, CGImageRef, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_11t2oft, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1x2wp90.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + int arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Size arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + CGImageRef, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + int arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function(int, CGImageRef, ffi.Pointer))( + arg0, + arg1, + arg2, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Size, + CGImageRef, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiSize_CGImageRef_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Size, + ffi.Pointer, + ffi.Pointer, + ) + > { + void call(int arg0, CGImageRef arg1, ffi.Pointer arg2) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Size arg0, + CGImageRef arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + CGImageRef, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function(ffi.Pointer)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunction( + CFTypeRef Function(CFTypeRef) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newClosureBlock(_closureCallable, (CFTypeRef arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static CFTypeRef _fnPtrTrampoline( + ffi.Pointer block, + CFTypeRef arg0, + ) => block.ref.target + .cast>() + .asFunction()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function(ffi.Pointer, CFTypeRef) + >(_fnPtrTrampoline) + .cast(); + static CFTypeRef _closureTrampoline( + ffi.Pointer block, + CFTypeRef arg0, + ) => (objc.getBlockClosure(block) as CFTypeRef Function(CFTypeRef))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + CFTypeRef Function(ffi.Pointer, CFTypeRef) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid$CallExtension + on objc.ObjCBlock Function(ffi.Pointer)> { + CFTypeRef call(CFTypeRef arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + CFTypeRef Function( + ffi.Pointer block, + CFTypeRef arg0, + ) + > + >() + .asFunction< + CFTypeRef Function(ffi.Pointer, CFTypeRef) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_ovsamd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_awd5mj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ovsamd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_awd5mj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid$1$CallExtension + on objc.ObjCBlock)> { + void call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); + } +} + +/// Construction methods for `objc.ObjCBlock?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid$2 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock?)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock?)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock?)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock?)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock?)> + fromFunction( + void Function(objc.ObjCBlock?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock?)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ) { + return fn( + arg0.address == 0 + ? null + : ObjCBlock_ffiVoid.fromPointer(arg0, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock?)> + listener( + void Function(objc.ObjCBlock?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_f167m6, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12cm2y5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock?)> + blocking( + void Function(objc.ObjCBlock?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_f167m6, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12cm2y5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0) + > + >() + .asFunction)>()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?)>`. +extension ObjCBlock_ffiVoid_ffiVoid$2$CallExtension + on objc.ObjCBlock?)> { + void call(objc.ObjCBlock? arg0) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); + } +} + +/// Construction methods for `objc.ObjCBlock, AVAudioPlayer, objc.NSError?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > + fromFunction( + void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + AVAudioPlayer.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > + listener( + void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3prg4b.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > + blocking( + void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3prg4b.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, AVAudioPlayer, objc.NSError?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) + > { + void call( + ffi.Pointer arg0, + AVAudioPlayer arg1, + objc.NSError? arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, AVAudioPlayer, ffi.Bool)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Bool arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > + fromFunction( + void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + bool arg2, + ) { + return fn( + arg0, + AVAudioPlayer.fromPointer(arg1, retain: true, release: true), + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > + listener( + void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_zzthnb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1giidhf.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > + blocking( + void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_zzthnb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1giidhf.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + bool arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Bool arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + bool arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, AVAudioPlayer, ffi.Bool)>`. +extension ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) + > { + void call(ffi.Pointer arg0, AVAudioPlayer arg1, bool arg2) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Bool arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(ref.pointer, arg0, _$$ref.pointer, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, NSCache, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > + fromFunction( + void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSCache.fromPointer(arg1, retain: true, release: true), + objc.ObjCObject(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > + listener( + void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1sy9q99.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > + blocking( + void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1sy9q99.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSCache, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSCache, + ffi.Pointer, + ) + > { + void call(ffi.Pointer arg0, NSCache arg1, objc.ObjCObject arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSExtensionContext)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > + fromFunction( + void Function(ffi.Pointer, NSExtensionContext) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSExtensionContext.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > + listener( + void Function(ffi.Pointer, NSExtensionContext) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_truc42.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > + blocking( + void Function(ffi.Pointer, NSExtensionContext) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_truc42.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSExtensionContext)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSExtensionContext) + > { + void call(ffi.Pointer arg0, NSExtensionContext arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSFileVersion)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSFileVersion { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSFileVersion)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSFileVersion)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSFileVersion)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSFileVersion)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSFileVersion)> + fromFunction( + void Function(ffi.Pointer, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSFileVersion)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSFileVersion.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSFileVersion)> + listener( + void Function(ffi.Pointer, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSFileVersion) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1y4tc38.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSFileVersion)> + blocking( + void Function(ffi.Pointer, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSFileVersion) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1y4tc38.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSFileVersion)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSFileVersion$CallExtension + on objc.ObjCBlock, NSFileVersion)> { + void call(ffi.Pointer arg0, NSFileVersion arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock, NSKeyedArchiver)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock, NSKeyedArchiver)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > + fromFunction( + void Function(ffi.Pointer, NSKeyedArchiver) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock, NSKeyedArchiver)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > + listener( + void Function(ffi.Pointer, NSKeyedArchiver) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ciefi0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > + blocking( + void Function(ffi.Pointer, NSKeyedArchiver) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ciefi0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSKeyedArchiver)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedArchiver) + > { + void call(ffi.Pointer arg0, NSKeyedArchiver arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > + fromFunction( + void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.ObjCObject(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > + listener( + void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1oetg5g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > + blocking( + void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1oetg5g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ) + > { + void call( + ffi.Pointer arg0, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?, ffi.Pointer?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSKeyedArchiver, + objc.ObjCObject?, + objc.ObjCObject?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.ObjCObject(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.ObjCObject(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > + listener( + void Function( + ffi.Pointer, + NSKeyedArchiver, + objc.ObjCObject?, + objc.ObjCObject?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_170i760.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSKeyedArchiver, + objc.ObjCObject?, + objc.ObjCObject?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_170i760.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?, ffi.Pointer?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer?, + ffi.Pointer?, + ) + > { + void call( + ffi.Pointer arg0, + NSKeyedArchiver arg1, + objc.ObjCObject? arg2, + objc.ObjCObject? arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2?.ref; + final _$$ref$2 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSKeyedUnarchiver)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > + fromFunction( + void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > + listener( + void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pfw36l.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > + blocking( + void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pfw36l.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSKeyedUnarchiver)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) + > { + void call(ffi.Pointer arg0, NSKeyedUnarchiver arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSKeyedUnarchiver, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.ObjCObject, + objc.ObjCObject, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), + objc.ObjCObject(arg2, retain: true, release: true), + objc.ObjCObject(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > + listener( + void Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.ObjCObject, + objc.ObjCObject, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1o2efq5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > + blocking( + void Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.ObjCObject, + objc.ObjCObject, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1o2efq5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSKeyedUnarchiver, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSKeyedUnarchiver, + ffi.Pointer, + ffi.Pointer, + ) + > { + void call( + ffi.Pointer arg0, + NSKeyedUnarchiver arg1, + objc.ObjCObject arg2, + objc.ObjCObject arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetService)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSNetService)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSNetService)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSNetService)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSNetService)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSNetService)> + fromFunction( + void Function(ffi.Pointer, NSNetService) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSNetService)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSNetService.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSNetService)> + listener( + void Function(ffi.Pointer, NSNetService) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_u4a6zc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSNetService)> + blocking( + void Function(ffi.Pointer, NSNetService) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_u4a6zc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetService)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetService$CallExtension + on objc.ObjCBlock, NSNetService)> { + void call(ffi.Pointer arg0, NSNetService arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > + fromFunction( + void Function(ffi.Pointer, NSNetServiceBrowser) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > + listener( + void Function(ffi.Pointer, NSNetServiceBrowser) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_19rrqmo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > + blocking( + void Function(ffi.Pointer, NSNetServiceBrowser) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_19rrqmo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) + > { + void call(ffi.Pointer arg0, NSNetServiceBrowser arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSDictionary)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > + fromFunction( + void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), + objc.NSDictionary.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > + listener( + void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_adcfsd.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > + blocking( + void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_adcfsd.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSDictionary)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSDictionary, + ) + > { + void call( + ffi.Pointer arg0, + NSNetServiceBrowser arg1, + objc.NSDictionary arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, NSNetService, ffi.Bool)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) { + return fn( + arg0, + NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), + NSNetService.fromPointer(arg2, retain: true, release: true), + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > + listener( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_8acz2h, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x7mqjz.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > + blocking( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8acz2h, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x7mqjz.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, NSNetService, ffi.Bool)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + NSNetService, + ffi.Bool, + ) + > { + void call( + ffi.Pointer arg0, + NSNetServiceBrowser arg1, + NSNetService arg2, + bool arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSString, ffi.Bool)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) { + return fn( + arg0, + NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > + listener( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_8acz2h, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1nn0na.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > + blocking( + void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + bool, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8acz2h, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1nn0na.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + bool arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSString, ffi.Bool)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetServiceBrowser, + objc.NSString, + ffi.Bool, + ) + > { + void call( + ffi.Pointer arg0, + NSNetServiceBrowser arg1, + objc.NSString arg2, + bool arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Bool arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > + fromFunction( + void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSNetService.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > + listener( + void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pj0but.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > + blocking( + void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pj0but.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) + > { + void call(ffi.Pointer arg0, NSNetService arg1, objc.NSData arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSDictionary)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSDictionary, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSDictionary, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + > + fromFunction( + void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSDictionary, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSNetService.fromPointer(arg1, retain: true, release: true), + objc.NSDictionary.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + > + listener( + void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_16t4ozp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + > + blocking( + void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_16t4ozp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSDictionary)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSDictionary, + ) + > { + void call( + ffi.Pointer arg0, + NSNetService arg1, + objc.NSDictionary arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSInputStream, objc.NSOutputStream)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSNetService.fromPointer(arg1, retain: true, release: true), + objc.NSInputStream.fromPointer(arg2, retain: true, release: true), + objc.NSOutputStream.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + listener( + void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_tikg8p.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + blocking( + void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_tikg8p.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSInputStream, objc.NSOutputStream)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSNetService, + objc.NSInputStream, + objc.NSOutputStream, + ) + > { + void call( + ffi.Pointer arg0, + NSNetService arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSPortMessage)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSPortMessage { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > + fromFunction( + void Function(ffi.Pointer, objc.NSPortMessage) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + objc.NSPortMessage.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > + listener( + void Function(ffi.Pointer, objc.NSPortMessage) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1e1kc88.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > + blocking( + void Function(ffi.Pointer, objc.NSPortMessage) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1e1kc88.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSPortMessage)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSPortMessage$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSPortMessage) + > { + void call(ffi.Pointer arg0, objc.NSPortMessage arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSSet)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSet { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, objc.NSSet)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, objc.NSSet)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, objc.NSSet)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, objc.NSSet)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, objc.NSSet)> + fromFunction( + void Function(ffi.Pointer, objc.NSSet) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, objc.NSSet)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + objc.NSSet.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, objc.NSSet)> + listener( + void Function(ffi.Pointer, objc.NSSet) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, objc.NSSet)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k2hpmy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, objc.NSSet)> + blocking( + void Function(ffi.Pointer, objc.NSSet) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, objc.NSSet)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k2hpmy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSSet)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSSet$CallExtension + on objc.ObjCBlock, objc.NSSet)> { + void call(ffi.Pointer arg0, objc.NSSet arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + listener( + void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1usrzbh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > + blocking( + void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1usrzbh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + objc.NSString, + objc.NSString, + ) + > { + void call( + ffi.Pointer arg0, + NSSpellServer arg1, + objc.NSString arg2, + objc.NSString arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSSpellServer, ffi.UnsignedLong, objc.NSString, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) { + return fn( + arg0, + NSSpellServer.fromPointer(arg1, retain: true, release: true), + arg2, + objc.NSString.fromPointer(arg3, retain: true, release: true), + objc.NSString.fromPointer(arg4, retain: true, release: true), + objc.NSString.fromPointer(arg5, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > + listener( + void Function( + ffi.Pointer, + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1cn988u, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_gcznpv.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > + blocking( + void Function( + ffi.Pointer, + NSSpellServer, + DartNSUInteger, + objc.NSString, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1cn988u, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_gcznpv.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSSpellServer, ffi.UnsignedLong, objc.NSString, objc.NSString, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSSpellServer, + ffi.UnsignedLong, + objc.NSString, + objc.NSString, + objc.NSString, + ) + > { + void call( + ffi.Pointer arg0, + NSSpellServer arg1, + DartNSUInteger arg2, + objc.NSString arg3, + objc.NSString arg4, + objc.NSString arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg3.ref; + final _$$ref$2 = arg4.ref; + final _$$ref$3 = arg5.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + arg2, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > + fromFunction( + void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSString.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > + listener( + void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ptzs7z.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > + blocking( + void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ptzs7z.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) + > { + void call( + ffi.Pointer arg0, + objc.NSString arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + int arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_zuf90e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ltqoqj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_zuf90e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ltqoqj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1) + > + >() + .asFunction, int)>()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, int))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSUInteger$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > { + void call(ffi.Pointer arg0, DartNSUInteger arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSUInteger arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURL)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, objc.NSURL)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, objc.NSURL)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, objc.NSURL)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, objc.NSURL)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, objc.NSURL)> + fromFunction( + void Function(ffi.Pointer, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, objc.NSURL)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + objc.NSURL.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, objc.NSURL)> + listener( + void Function(ffi.Pointer, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, objc.NSURL)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_461rr9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, objc.NSURL)> + blocking( + void Function(ffi.Pointer, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, objc.NSURL)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_461rr9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURL)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURL$CallExtension + on objc.ObjCBlock, objc.NSURL)> { + void call(ffi.Pointer arg0, objc.NSURL arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLAuthenticationChallenge)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > + fromFunction( + void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLAuthenticationChallenge.fromPointer( + arg1, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > + listener( + void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1z0whcc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > + blocking( + void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1z0whcc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLAuthenticationChallenge)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) + > { + void call(ffi.Pointer arg0, NSURLAuthenticationChallenge arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock, NSURLConnection)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock, NSURLConnection)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock, NSURLConnection)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > + listener( + void Function(ffi.Pointer, NSURLConnection) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15jt9u5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > + blocking( + void Function(ffi.Pointer, NSURLConnection) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15jt9u5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection) + > { + void call(ffi.Pointer arg0, NSURLConnection arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > + listener( + void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15vjajw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15vjajw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + objc.NSData arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSError)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + > + listener( + void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vpa8ji.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vpa8ji.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSError)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + objc.NSError, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + objc.NSError arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.Long, ffi.Long, ffi.Long)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSInteger arg2, + NSInteger arg3, + NSInteger arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + arg2, + arg3, + arg4, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_15e9dqx, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_133h48c.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLConnection, + DartNSInteger, + DartNSInteger, + DartNSInteger, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15e9dqx, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_133h48c.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSInteger arg2, + NSInteger arg3, + NSInteger arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + NSInteger, + NSInteger, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + NSInteger, + NSInteger, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.Long, ffi.Long, ffi.Long)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + DartNSInteger arg2, + DartNSInteger arg3, + DartNSInteger arg4, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSInteger arg2, + NSInteger arg3, + NSInteger arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3, arg4); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSURL)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + objc.NSURL.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > + listener( + void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1odc9lb.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1odc9lb.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSURL)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) + > { + void call(ffi.Pointer arg0, NSURLConnection arg1, objc.NSURL arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLAuthenticationChallenge)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_aec946.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_aec946.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLAuthenticationChallenge)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLAuthenticationChallenge, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSURLAuthenticationChallenge arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLResponse)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + NSURLResponse.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + > + listener( + void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1i7oea2.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1i7oea2.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLResponse)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + NSURLResponse, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + NSURLResponse arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, int, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + arg2, + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > + listener( + void Function(ffi.Pointer, NSURLConnection, int, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_9crvvv, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_5wf51x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, int, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9crvvv, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_5wf51x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + int arg2, + int arg3, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong, ffi.LongLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ffi.LongLong arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + fromFunction( + void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) { + return fn( + arg0, + NSURLConnection.fromPointer(arg1, retain: true, release: true), + arg2, + arg3, + arg4, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + listener( + void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1qf1qkl, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3jhjrc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + blocking( + void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1qf1qkl, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_3jhjrc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ffi.LongLong arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + int arg3, + int arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong, ffi.LongLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLConnection, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > { + void call( + ffi.Pointer arg0, + NSURLConnection arg1, + int arg2, + int arg3, + int arg4, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.LongLong arg2, + ffi.LongLong arg3, + ffi.LongLong arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3, arg4); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLCredential, NSURLAuthenticationChallenge)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLCredential.fromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1o8dtl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1o8dtl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLCredential, NSURLAuthenticationChallenge)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLCredential, + NSURLAuthenticationChallenge, + ) + > { + void call( + ffi.Pointer arg0, + NSURLCredential arg1, + NSURLAuthenticationChallenge arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSURLDownload)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSURLDownload)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSURLDownload)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSURLDownload)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLDownload)> + fromFunction( + void Function(ffi.Pointer, NSURLDownload) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSURLDownload)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLDownload)> + listener( + void Function(ffi.Pointer, NSURLDownload) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13sb76x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSURLDownload)> + blocking( + void Function(ffi.Pointer, NSURLDownload) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_13sb76x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload$CallExtension + on objc.ObjCBlock, NSURLDownload)> { + void call(ffi.Pointer arg0, NSURLDownload arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSError)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > + fromFunction( + void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > + listener( + void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_14dahaa.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > + blocking( + void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_14dahaa.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSError)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) + > { + void call(ffi.Pointer arg0, NSURLDownload arg1, objc.NSError arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + fromFunction( + void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + listener( + void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_18kc0nv.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > + blocking( + void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_18kc0nv.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) + > { + void call( + ffi.Pointer arg0, + NSURLDownload arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + ffi.UnsignedLong, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + ffi.UnsignedLong, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + ffi.UnsignedLong, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_wy9lus, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_19pyqcd.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_wy9lus, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_19pyqcd.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + ffi.UnsignedLong, + ) + > { + void call( + ffi.Pointer arg0, + NSURLDownload arg1, + DartNSUInteger arg2, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + NSUInteger arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLAuthenticationChallenge)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hwelu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hwelu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLAuthenticationChallenge)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLAuthenticationChallenge, + ) + > { + void call( + ffi.Pointer arg0, + NSURLDownload arg1, + NSURLAuthenticationChallenge arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLResponse)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > + fromFunction( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + NSURLResponse.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > + listener( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hj9xku.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > + blocking( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1hj9xku.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLResponse)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) + > { + void call( + ffi.Pointer arg0, + NSURLDownload arg1, + NSURLResponse arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLResponse, ffi.LongLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.LongLong arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > + fromFunction( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) { + return fn( + arg0, + NSURLDownload.fromPointer(arg1, retain: true, release: true), + NSURLResponse.fromPointer(arg2, retain: true, release: true), + arg3, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > + listener( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_34xzuf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12tf05r.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > + blocking( + void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_34xzuf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12tf05r.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.LongLong arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLResponse, ffi.LongLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLDownload, + NSURLResponse, + ffi.LongLong, + ) + > { + void call( + ffi.Pointer arg0, + NSURLDownload arg1, + NSURLResponse arg2, + int arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.LongLong arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > + fromFunction( + void Function(ffi.Pointer, objc.NSURLHandle) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > + listener( + void Function(ffi.Pointer, objc.NSURLHandle) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xj71gr.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > + blocking( + void Function(ffi.Pointer, objc.NSURLHandle) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xj71gr.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURLHandle)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle) + > { + void call(ffi.Pointer arg0, objc.NSURLHandle arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + > + fromFunction( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + > + listener( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_136y7ma.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + > + blocking( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_136y7ma.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURLHandle, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURLHandle, + objc.NSData, + ) + > { + void call( + ffi.Pointer arg0, + objc.NSURLHandle arg1, + objc.NSData arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURLHandle, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURLHandle, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + > + fromFunction( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURLHandle, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + > + listener( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_teaic5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + > + blocking( + void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_teaic5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURLHandle, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURLHandle, + objc.NSString, + ) + > { + void call( + ffi.Pointer arg0, + objc.NSURLHandle arg1, + objc.NSString arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSURLProtocol)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSURLProtocol)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSURLProtocol)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSURLProtocol)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLProtocol)> + fromFunction( + void Function(ffi.Pointer, NSURLProtocol) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSURLProtocol)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLProtocol)> + listener( + void Function(ffi.Pointer, NSURLProtocol) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1jcra61.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSURLProtocol)> + blocking( + void Function(ffi.Pointer, NSURLProtocol) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1jcra61.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol$CallExtension + on objc.ObjCBlock, NSURLProtocol)> { + void call(ffi.Pointer arg0, NSURLProtocol arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSCachedURLResponse)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + > + fromFunction( + void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + NSCachedURLResponse.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + > + listener( + void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_s52y0g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + > + blocking( + void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_s52y0g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSCachedURLResponse)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSCachedURLResponse, + ) + > { + void call( + ffi.Pointer arg0, + NSURLProtocol arg1, + NSCachedURLResponse arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > + fromFunction( + void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > + listener( + void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1p1ax08.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > + blocking( + void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1p1ax08.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) + > { + void call(ffi.Pointer arg0, NSURLProtocol arg1, objc.NSData arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, objc.NSError)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > + fromFunction( + void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > + listener( + void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_rojepe.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > + blocking( + void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_rojepe.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, objc.NSError)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) + > { + void call(ffi.Pointer arg0, NSURLProtocol arg1, objc.NSError arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLAuthenticationChallenge)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ek5uoy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ek5uoy.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLAuthenticationChallenge)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLAuthenticationChallenge, + ) + > { + void call( + ffi.Pointer arg0, + NSURLProtocol arg1, + NSURLAuthenticationChallenge arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLRequest, NSURLResponse)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + NSURLRequest.fromPointer(arg2, retain: true, release: true), + NSURLResponse.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12ykekb.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_12ykekb.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLRequest, NSURLResponse)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLRequest, + NSURLResponse, + ) + > { + void call( + ffi.Pointer arg0, + NSURLProtocol arg1, + NSURLRequest arg2, + NSURLResponse arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLResponse, NSUInteger)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) { + return fn( + arg0, + NSURLProtocol.fromPointer(arg1, retain: true, release: true), + NSURLResponse.fromPointer(arg2, retain: true, release: true), + NSURLCacheStoragePolicy.fromValue(arg3), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1j7coyk, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_abn34x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSURLCacheStoragePolicy, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1j7coyk, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_abn34x.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLResponse, NSUInteger)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLProtocol, + NSURLResponse, + NSUInteger, + ) + > { + void call( + ffi.Pointer arg0, + NSURLProtocol arg1, + NSURLResponse arg2, + NSURLCacheStoragePolicy arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSUInteger arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3.value); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSURLSession)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSURLSession)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSURLSession)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSURLSession)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLSession)> + fromFunction( + void Function(ffi.Pointer, NSURLSession) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSURLSession)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSURLSession)> + listener( + void Function(ffi.Pointer, NSURLSession) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_7xicdf.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSURLSession)> + blocking( + void Function(ffi.Pointer, NSURLSession) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_7xicdf.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession$CallExtension + on objc.ObjCBlock, NSURLSession)> { + void call(ffi.Pointer arg0, NSURLSession arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, objc.NSError?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + fromFunction( + void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + listener( + void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1f64crj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > + blocking( + void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1f64crj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, objc.NSError?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) + > { + void call(ffi.Pointer arg0, NSURLSession arg1, objc.NSError? arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg2, + retain: true, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( + arg3, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_bklti2, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_de64m.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_bklti2, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_de64m.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLAuthenticationChallenge arg2, + objc.ObjCBlock arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), + NSCachedURLResponse.fromPointer(arg3, retain: true, release: true), + ObjCBlock_ffiVoid_NSCachedURLResponse.fromPointer( + arg4, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15cdu5z.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_15cdu5z.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSCachedURLResponse, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSCachedURLResponse arg3, + objc.ObjCBlock arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), + objc.NSData.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_16ix251.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_16ix251.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + objc.NSData, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + objc.NSData arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), + NSURLResponse.fromPointer(arg3, retain: true, release: true), + ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.fromPointer( + arg4, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1xfn2k3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1xfn2k3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLResponse, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLResponse arg3, + objc.ObjCBlock arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), + NSURLSessionDownloadTask.fromPointer( + arg3, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_140cpyj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_140cpyj.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionDownloadTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionDownloadTask arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), + NSURLSessionStreamTask.fromPointer( + arg3, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_43hp0b.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_43hp0b.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDataTask, + NSURLSessionStreamTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDataTask arg2, + NSURLSessionStreamTask arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDownloadTask.fromPointer( + arg2, + retain: true, + release: true, + ), + arg3, + arg4, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_ly2579, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1l7b9ji.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ly2579, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1l7b9ji.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3, arg4); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDownloadTask.fromPointer( + arg2, + retain: true, + release: true, + ), + arg3, + arg4, + arg5, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_h68abb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pfucun.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_h68abb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1pfucun.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + int arg3, + int arg4, + int arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + arg3, + arg4, + arg5, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionDownloadTask.fromPointer( + arg2, + retain: true, + release: true, + ), + objc.NSURL.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_pm23bg.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_pm23bg.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionDownloadTask, + objc.NSURL, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionDownloadTask arg2, + objc.NSURL arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > + fromFunction( + void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionStreamTask.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > + listener( + void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_qss5hc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > + blocking( + void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_qss5hc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask, objc.NSInputStream, objc.NSOutputStream)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionStreamTask.fromPointer( + arg2, + retain: true, + release: true, + ), + objc.NSInputStream.fromPointer(arg3, retain: true, release: true), + objc.NSOutputStream.fromPointer(arg4, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_8jfq1p, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_nhk5a9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8jfq1p, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_nhk5a9.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask, objc.NSInputStream, objc.NSOutputStream)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionStreamTask, + objc.NSInputStream, + objc.NSOutputStream, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionStreamTask arg2, + objc.NSInputStream arg3, + objc.NSOutputStream arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + fromFunction( + void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + listener( + void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k1nazc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + > + blocking( + void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_k1nazc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + arg3, + arg4, + arg5, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_h68abb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xh08sz.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + int, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_h68abb, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xh08sz.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + int arg4, + int arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + int arg4, + int arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Int64 arg4, + ffi.Int64 arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + arg3, + arg4, + arg5, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + arg3, + ObjCBlock_ffiVoid_NSInputStream.fromPointer( + arg4, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_jyim80, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_99x6vt.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + int, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_jyim80, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_99x6vt.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + ffi.Int64, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + int arg3, + objc.ObjCBlock arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Int64 arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + arg3, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSError.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_qjjttc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_qjjttc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.NSError?, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.NSError? arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + NSHTTPURLResponse.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n5meg5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1n5meg5.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + NSHTTPURLResponse.fromPointer(arg3, retain: true, release: true), + NSURLRequest.fromPointer(arg4, retain: true, release: true), + ObjCBlock_ffiVoid_NSURLRequest.fromPointer( + arg5, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_l2g8ke, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ayzt6i.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_l2g8ke, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1ayzt6i.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSHTTPURLResponse, + NSURLRequest, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSHTTPURLResponse arg3, + NSURLRequest arg4, + objc.ObjCBlock arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + final _$$ref$4 = arg5.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + _$$ref$4.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + NSURLAuthenticationChallenge.fromPointer( + arg3, + retain: true, + release: true, + ), + ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( + arg4, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_31cygh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_31cygh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLAuthenticationChallenge, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLAuthenticationChallenge arg3, + objc.ObjCBlock arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + NSURLRequest.fromPointer(arg3, retain: true, release: true), + ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.fromPointer( + arg4, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_jqba1.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_jqba1.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLRequest, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLRequest arg3, + objc.ObjCBlock arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + NSURLSessionTaskMetrics.fromPointer( + arg3, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_i7wriu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_i7wriu.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + NSURLSessionTaskMetrics, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + NSURLSessionTaskMetrics arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionTask.fromPointer(arg2, retain: true, release: true), + ObjCBlock_ffiVoid_NSInputStream.fromPointer( + arg3, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_bklti2, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_112ozxo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_bklti2, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_112ozxo.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionTask, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionTask arg2, + objc.ObjCBlock arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionWebSocketTask.fromPointer( + arg2, + retain: true, + release: true, + ), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xcrg5s.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_xcrg5s.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + objc.NSString? arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSInteger arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSURLSession.fromPointer(arg1, retain: true, release: true), + NSURLSessionWebSocketTask.fromPointer( + arg2, + retain: true, + release: true, + ), + NSURLSessionWebSocketCloseCode.fromValue(arg3), + arg4.address == 0 + ? null + : objc.NSData.fromPointer(arg4, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + listener( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1lx650f, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17jmtfx.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSURLSessionWebSocketCloseCode, + objc.NSData?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1lx650f, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17jmtfx.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSInteger arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSURLSession, + NSURLSessionWebSocketTask, + NSInteger, + objc.NSData?, + ) + > { + void call( + ffi.Pointer arg0, + NSURLSession arg1, + NSURLSessionWebSocketTask arg2, + NSURLSessionWebSocketCloseCode arg3, + objc.NSData? arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg4?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + NSInteger arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + arg3.value, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURL, NSFileVersion)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > + fromFunction( + void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSURL.fromPointer(arg1, retain: true, release: true), + NSFileVersion.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > + listener( + void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1siniii.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > + blocking( + void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1siniii.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURL, NSFileVersion)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) + > { + void call(ffi.Pointer arg0, objc.NSURL arg1, NSFileVersion arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURL, objc.NSURL)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > + fromFunction( + void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSURL.fromPointer(arg1, retain: true, release: true), + objc.NSURL.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > + listener( + void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_jzitwn.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > + blocking( + void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_jzitwn.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURL, objc.NSURL)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) + > { + void call(ffi.Pointer arg0, objc.NSURL arg1, objc.NSURL arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.NSURL, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + objc.NSURL.fromPointer(arg1, retain: true, release: true), + ObjCBlock_ffiVoid_NSError.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_jk1ljc, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_pfi7f3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_jk1ljc, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_pfi7f3.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.NSURL, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSURL, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + objc.NSURL arg1, + objc.ObjCBlock arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSUserActivity)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock, NSUserActivity)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSUserActivity)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > + fromFunction( + void Function(ffi.Pointer, NSUserActivity) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock, NSUserActivity)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSUserActivity.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > + listener( + void Function(ffi.Pointer, NSUserActivity) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_197qivc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > + blocking( + void Function(ffi.Pointer, NSUserActivity) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_197qivc.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSUserActivity)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSUserActivity$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSUserActivity) + > { + void call(ffi.Pointer arg0, NSUserActivity arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSUserActivity, objc.NSInputStream, objc.NSOutputStream)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSUserActivity.fromPointer(arg1, retain: true, release: true), + objc.NSInputStream.fromPointer(arg2, retain: true, release: true), + objc.NSOutputStream.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + listener( + void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1j32c3t.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > + blocking( + void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1j32c3t.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSUserActivity, objc.NSInputStream, objc.NSOutputStream)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserActivity, + objc.NSInputStream, + objc.NSOutputStream, + ) + > { + void call( + ffi.Pointer arg0, + NSUserActivity arg1, + objc.NSInputStream arg2, + objc.NSOutputStream arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSUserNotificationCenter.fromPointer( + arg1, + retain: true, + release: true, + ), + NSUserNotification.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + listener( + void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_blvx9k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > + blocking( + void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_blvx9k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSUserNotificationCenter, + NSUserNotification, + ) + > { + void call( + ffi.Pointer arg0, + NSUserNotificationCenter arg1, + NSUserNotification arg2, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSXMLParser)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSXMLParser)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, NSXMLParser)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSXMLParser)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSXMLParser)> + fromFunction( + void Function(ffi.Pointer, NSXMLParser) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSXMLParser)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSXMLParser)> + listener( + void Function(ffi.Pointer, NSXMLParser) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1fj0jrw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSXMLParser)> + blocking( + void Function(ffi.Pointer, NSXMLParser) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1fj0jrw.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser$CallExtension + on objc.ObjCBlock, NSXMLParser)> { + void call(ffi.Pointer arg0, NSXMLParser arg1) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSData)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > + fromFunction( + void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSData.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > + listener( + void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vaglpl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > + blocking( + void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vaglpl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSData)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) + > { + void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSData arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSError)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > + fromFunction( + void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSError.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > + listener( + void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17xklgp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > + blocking( + void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_17xklgp.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSError)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) + > { + void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSError arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > + fromFunction( + void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > + listener( + void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1r6tt56.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > + blocking( + void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1r6tt56.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) + > { + void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSString arg2) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_121fmzs.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_121fmzs.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_nemba7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_nemba7.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4.address == 0 + ? null + : objc.NSString.fromPointer(arg4, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_8jfq1p, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hacm4k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8jfq1p, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hacm4k.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + final _$$ref$3 = arg4?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSDictionary)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4.address == 0 + ? null + : objc.NSString.fromPointer(arg4, retain: true, release: true), + objc.NSDictionary.fromPointer(arg5, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1kowxjl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1kowxjl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSDictionary)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSDictionary, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSDictionary arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + final _$$ref$3 = arg4?.ref; + final _$$ref$4 = arg5.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString, objc.NSString?, objc.NSString?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4.address == 0 + ? null + : objc.NSString.fromPointer(arg4, retain: true, release: true), + arg5.address == 0 + ? null + : objc.NSString.fromPointer(arg5, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vx7t4i.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_vx7t4i.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString, objc.NSString?, objc.NSString?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString, + objc.NSString?, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3.ref; + final _$$ref$3 = arg4?.ref; + final _$$ref$4 = arg5?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSString?)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) { + return fn( + arg0, + NSXMLParser.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + arg3.address == 0 + ? null + : objc.NSString.fromPointer(arg3, retain: true, release: true), + arg4.address == 0 + ? null + : objc.NSString.fromPointer(arg4, retain: true, release: true), + arg5.address == 0 + ? null + : objc.NSString.fromPointer(arg5, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > + listener( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_t3r59d.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > + blocking( + void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_t3r59d.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4, arg5); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSString?)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSXMLParser, + objc.NSString, + objc.NSString?, + objc.NSString?, + objc.NSString?, + ) + > { + void call( + ffi.Pointer arg0, + NSXMLParser arg1, + objc.NSString arg2, + objc.NSString? arg3, + objc.NSString? arg4, + objc.NSString? arg5, + ) { + final _$$ref = arg1.ref; + final _$$ref$1 = arg2.ref; + final _$$ref$2 = arg3?.ref; + final _$$ref$3 = arg4?.ref; + final _$$ref$4 = arg5?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ffi.Pointer arg5, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref.pointer, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + _$$ref$4?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Bool)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, ffi.Bool)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, ffi.Bool)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock, ffi.Bool)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1) + > + > + ptr, + ) => objc.ObjCBlock, ffi.Bool)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, ffi.Bool)> + fromFunction( + void Function(ffi.Pointer, bool) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, ffi.Bool)>( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + bool arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, ffi.Bool)> + listener( + void Function(ffi.Pointer, bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, ffi.Bool)>( + objc.newBlockPort(_1uu024u_wrapListenerBlock_10lndml, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_wpl2gn.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, ffi.Bool)> + blocking( + void Function(ffi.Pointer, bool) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock, ffi.Bool)>( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_10lndml, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_wpl2gn.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + bool arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1) + > + >() + .asFunction, bool)>()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + bool arg1, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, bool))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Bool)>`. +extension ObjCBlock_ffiVoid_ffiVoid_bool$CallExtension + on objc.ObjCBlock, ffi.Bool)> { + void call(ffi.Pointer arg0, bool arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Bool arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + void Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn(arg0, arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + listener( + void Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1037nh9, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hj6v1u.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + blocking( + void Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1037nh9, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hj6v1u.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > { + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + ObjCBlock_ffiVoid_NSError.fromPointer( + arg1, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + listener( + void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1l4hxwm, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1s0z6xl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + blocking( + void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1l4hxwm, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1s0z6xl.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > { + void call( + ffi.Pointer arg0, + objc.ObjCBlock arg1, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock, objc.ObjCBlock?)>)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + > + fromFunction( + void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0, + ObjCBlock_ffiVoid_ffiVoid$2.fromPointer( + arg1, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + > + listener( + void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1l4hxwm, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_eu2222.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + > + blocking( + void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock?)>, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1l4hxwm, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_eu2222.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock, objc.ObjCBlock?)>)>`. +extension ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock?) + >, + ) + > { + void call( + ffi.Pointer arg0, + objc.ObjCBlock?)> + arg1, + ) { + final _$$ref = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock?, objc.NSError)>`. +abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + fromFunction( + void Function(objc.NSSecureCoding?, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSSecureCoding.fromPointer( + arg0, + retain: true, + release: true, + ), + objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + listener( + void Function(objc.NSSecureCoding?, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_krrtfh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > + blocking( + void Function(objc.NSSecureCoding?, objc.NSError) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_krrtfh.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?, objc.NSError)>`. +extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError) + > { + void call(objc.NSSecureCoding? arg0, objc.NSError arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock?, objc.NSError?)>`. +abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > + fromFunction( + void Function(objc.ObjCObject?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.ObjCObject(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > + listener( + void Function(objc.ObjCObject?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1tklz9g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > + blocking( + void Function(objc.ObjCObject?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1tklz9g.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?, objc.NSError?)>`. +extension ObjCBlock_ffiVoid_objcObjCObjectImpl_NSError$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, objc.NSError?) + > { + void call(objc.ObjCObject? arg0, objc.NSError? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock?, objc.NSRange, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + fromFunction( + void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) { + return fn( + arg0.address == 0 + ? null + : objc.ObjCObject(arg0, retain: true, release: true), + arg1, + arg2, + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + listener( + void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_1a22wz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_q6fcam.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > + blocking( + void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1a22wz, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_q6fcam.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?, objc.NSRange, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer?, + objc.NSRange, + ffi.Pointer, + ) + > { + void call(objc.ObjCObject? arg0, NSRange arg1, ffi.Pointer arg2) { + final _$$ref = arg0?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartdispatch_data_t?, + Dartsec_protocol_pre_shared_key_selection_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSObject.fromPointer(arg1, retain: true, release: true), + ObjCBlock_ffiVoid_NSObject$1.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartdispatch_data_t?, + Dartsec_protocol_pre_shared_key_selection_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18qun1e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1nq9pr6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartdispatch_data_t?, + Dartsec_protocol_pre_shared_key_selection_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18qun1e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1nq9pr6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartdispatch_data_t? arg1, + Dartsec_protocol_pre_shared_key_selection_complete_t arg2, + ) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1?.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + dispatch_data_t arg1, + sec_protocol_pre_shared_key_selection_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + dispatch_data_t, + sec_protocol_pre_shared_key_selection_complete_t, + ) + >()( + ref.pointer, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2.pointer, + ); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_challenge_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + ObjCBlock_ffiVoid_NSObject$1.fromPointer( + arg1, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_challenge_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_o762yo, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hj4uui.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_challenge_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_o762yo, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_hj4uui.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) + > + >() + .asFunction< + void Function( + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartsec_protocol_challenge_complete_t arg1, + ) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_challenge_complete_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_challenge_complete_t, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_key_update_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >( + objc.newClosureBlock(_closureCallable, ( + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + ObjCBlock_ffiVoid.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_key_update_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_o762yo, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_di5ft6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_protocol_key_update_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_o762yo, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_di5ft6.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) + > + >() + .asFunction< + void Function( + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet$CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartsec_protocol_key_update_complete_t arg1, + ) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_protocol_key_update_complete_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_protocol_key_update_complete_t, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + fromFunction( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_trust_t, + Dartsec_protocol_verify_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) { + return fn( + objc.NSObject.fromPointer(arg0, retain: true, release: true), + objc.NSObject.fromPointer(arg1, retain: true, release: true), + ObjCBlock_ffiVoid_bool.fromPointer( + arg2, + retain: true, + release: true, + ), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + listener( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_trust_t, + Dartsec_protocol_verify_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newBlockPort(_1uu024u_wrapListenerBlock_18qun1e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1e3xl1p.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > + blocking( + void Function( + Dartsec_protocol_metadata_t, + Dartsec_trust_t, + Dartsec_protocol_verify_complete_t, + ) + fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18qun1e, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1e3xl1p.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1, args.arg2); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) => + (objc.getBlockClosure(block) + as void Function( + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet$CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + > { + void call( + Dartsec_protocol_metadata_t arg0, + Dartsec_trust_t arg1, + Dartsec_protocol_verify_complete_t arg2, + ) { + final _$$ref = arg0.ref; + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + sec_protocol_metadata_t arg0, + sec_trust_t arg1, + sec_protocol_verify_complete_t arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + sec_protocol_metadata_t, + sec_trust_t, + sec_protocol_verify_complete_t, + ) + >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_xpcobjectt_xpcricherrort { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(xpc_object_t arg0, xpc_rich_error_t arg1) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + xpc_object_t arg0, + xpc_rich_error_t arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSObject.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSObject.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1uox71a.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_1uox71a.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + xpc_object_t arg0, + xpc_rich_error_t arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(xpc_object_t arg0, xpc_rich_error_t arg1) + > + >() + .asFunction()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + xpc_object_t, + xpc_rich_error_t, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + xpc_object_t arg0, + xpc_rich_error_t arg1, + ) => + (objc.getBlockClosure(block) + as void Function(xpc_object_t, xpc_rich_error_t))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + xpc_object_t, + xpc_rich_error_t, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_xpcobjectt_xpcricherrort$CallExtension + on objc.ObjCBlock { + void call(Dartxpc_object_t? arg0, Dartxpc_object_t? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + xpc_object_t arg0, + xpc_rich_error_t arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + xpc_object_t, + xpc_rich_error_t, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, objc.NSBundle)>`. +abstract final class ObjCBlock_instancetype_ffiVoid_NSBundle { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + > + fromFunction( + Dartinstancetype? Function(ffi.Pointer, objc.NSBundle) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + final _$$ref = fn( + arg0, + objc.NSBundle.fromPointer(arg1, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndReturnPointer() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static instancetype _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static instancetype _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as instancetype Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, objc.NSBundle)>`. +extension ObjCBlock_instancetype_ffiVoid_NSBundle$CallExtension + on + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + objc.NSBundle, + ) + > { + Dartinstancetype? call(ffi.Pointer arg0, objc.NSBundle arg1) { + final _$$ref$1 = arg1.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer) + .address == + 0 + ? null + : objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer), + retain: false, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + objc.ObjCObject Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + final _$$ref = fn(arg0).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + objc.ObjCObject call(ffi.Pointer arg0) { + return objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSConnection)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + > + fromFunction( + objc.ObjCObject Function(ffi.Pointer, NSConnection) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + final _$$ref = fn( + arg0, + NSConnection.fromPointer(arg1, retain: true, release: true), + ).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSConnection)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSConnection, + ) + > { + objc.ObjCObject call(ffi.Pointer arg0, NSConnection arg1) { + final _$$ref$1 = arg1.ref; + return objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedArchiver, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObject? Function( + ffi.Pointer, + NSKeyedArchiver, + objc.ObjCObject, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), + objc.ObjCObject(arg2, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedArchiver, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedArchiver, + ffi.Pointer, + ) + > { + objc.ObjCObject? call( + ffi.Pointer arg0, + NSKeyedArchiver arg1, + objc.ObjCObject arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) + .address == + 0 + ? null + : objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedUnarchiver, objc.NSString, objc.NSArray)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + > + fromFunction( + objc.ObjCObject? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.NSArray.fromPointer(arg3, retain: true, release: true), + )?.ref; + return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedUnarchiver, objc.NSString, objc.NSArray)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray$CallExtension + on + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.NSString, + objc.NSArray, + ) + > { + objc.ObjCObject? call( + ffi.Pointer arg0, + NSKeyedUnarchiver arg1, + objc.NSString arg2, + objc.NSArray arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ) + .address == + 0 + ? null + : objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, NSKeyedUnarchiver, objc.Consumed?>)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + > + fromFunction( + objc.ObjCObject? Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.ObjCObject?, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), + arg2.address == 0 + ? null + : objc.ObjCObject(arg2, retain: false, release: true), + )?.ref; + return _$$ref?.retainAndReturnPointer() ?? ffi.nullptr; + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, NSKeyedUnarchiver, objc.Consumed?>)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSKeyedUnarchiver, + objc.Consumed?>, + ) + > { + objc.ObjCObject? call( + ffi.Pointer arg0, + NSKeyedUnarchiver arg1, + objc.ObjCObject? arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, + ) + .address == + 0 + ? null + : objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, + ), + retain: false, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, NSMetadataItem)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + > + fromFunction( + objc.ObjCObject Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + final _$$ref = fn( + arg0, + NSMetadataQuery.fromPointer(arg1, retain: true, release: true), + NSMetadataItem.fromPointer(arg2, retain: true, release: true), + ).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, NSMetadataItem)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + NSMetadataItem, + ) + > { + objc.ObjCObject call( + ffi.Pointer arg0, + NSMetadataQuery arg1, + NSMetadataItem arg2, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + return objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, objc.NSString, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObject Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + objc.ObjCObject, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) { + final _$$ref = fn( + arg0, + NSMetadataQuery.fromPointer(arg1, retain: true, release: true), + objc.NSString.fromPointer(arg2, retain: true, release: true), + objc.ObjCObject(arg3, retain: true, release: true), + ).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, objc.NSString, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + NSMetadataQuery, + objc.NSString, + ffi.Pointer, + ) + > { + objc.ObjCObject call( + ffi.Pointer arg0, + NSMetadataQuery arg1, + objc.NSString arg2, + objc.ObjCObject arg3, + ) { + final _$$ref$1 = arg1.ref; + final _$$ref$2 = arg2.ref; + final _$$ref$3 = arg3.ref; + return objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + _$$ref$1.pointer, + _$$ref$2.pointer, + _$$ref$3.pointer, + ), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, objc.ObjCBlock)>`. +abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > + fromFunction( + objc.ObjCObject Function( + ffi.Pointer, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + final _$$ref = fn( + arg0, + ObjCBlock_ffiVoid_NSError$1.fromPointer( + arg1, + retain: true, + release: true, + ), + ).ref; + return _$$ref.retainAndAutorelease(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, objc.ObjCBlock)>`. +extension ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError$CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + objc.ObjCBlock, + ) + > { + objc.ObjCObject call( + ffi.Pointer arg0, + objc.ObjCBlock arg1, + ) { + final _$$ref$1 = arg1.ref; + return objc.ObjCObject( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, _$$ref$1.pointer), + retain: true, + release: true, + ); + } +} + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_ppdfiles_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function(ffi.Pointer)> + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunction( + ffi.Pointer Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { + return fn(arg0); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_ppdfiles_ffiVoid$CallExtension + on objc.ObjCBlock Function(ffi.Pointer)> { + ffi.Pointer call(ffi.Pointer arg0) { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); + } +} + +/// Observation +extension Observation on AVAudioSession { + /// isOtherAudioPlaying + bool get isOtherAudioPlaying { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.isOtherAudioPlaying', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOtherAudioPlaying); + } + + /// outputVolume + double get outputVolume { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.outputVolume', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_outputVolume) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_outputVolume); + } + + /// promptStyle + AVAudioSessionPromptStyle get promptStyle { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.promptStyle', + iOS: (false, (13, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_fooyu3(_$$ref.pointer, _sel_promptStyle); + return AVAudioSessionPromptStyle.fromValue($ret); + } + + /// secondaryAudioShouldBeSilencedHint + bool get secondaryAudioShouldBeSilencedHint { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.secondaryAudioShouldBeSilencedHint', + iOS: (false, (8, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635( + _$$ref.pointer, + _sel_secondaryAudioShouldBeSilencedHint, + ); + } +} + +final class OffPair extends ffi.Struct { + @ffi.Short() + external int offFirst; + + @ffi.Short() + external int offSecond; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offFirst, + required int offSecond, + }) => $allocator() + ..ref.offFirst = offFirst + ..ref.offSecond = offSecond; +} + +@ffi.Packed(2) +final class OffsetArray extends ffi.Struct { + @SInt16() + external int fNumOfOffsets; + + @ffi.Array.multi([1]) + external ffi.Array fOffset; +} + +typedef OffsetArrayHandle = ffi.Pointer; +typedef OffsetArrayPtr = ffi.Pointer; + +final class OpaqueAEStreamRef extends ffi.Opaque {} + +final class OpaqueATSUFontFallbacks extends ffi.Opaque {} + +final class OpaqueATSUStyle extends ffi.Opaque {} + +final class OpaqueATSUTextLayout extends ffi.Opaque {} + +final class OpaqueAreaID extends ffi.Opaque {} + +final class OpaqueCMProfileRef extends ffi.Opaque {} + +final class OpaqueCMWorldRef extends ffi.Opaque {} + +final class OpaqueCollatorRef extends ffi.Opaque {} + +final class OpaqueCollection extends ffi.Opaque {} + +final class OpaqueDialogPtr extends ffi.Opaque {} + +final class OpaqueFNSubscriptionRef extends ffi.Opaque {} + +final class OpaqueFSIterator extends ffi.Opaque {} + +final class OpaqueFSVolumeOperation extends ffi.Opaque {} + +final class OpaqueGrafPtr extends ffi.Opaque {} + +final class OpaqueICInstance extends ffi.Opaque {} + +final class OpaqueIconRef extends ffi.Opaque {} + +final class OpaqueLSSharedFileListItemRef extends ffi.Opaque {} + +final class OpaqueLSSharedFileListRef extends ffi.Opaque {} + +final class OpaqueLocaleRef extends ffi.Opaque {} + +final class OpaqueMPAddressSpaceID extends ffi.Opaque {} + +final class OpaqueMPAreaID extends ffi.Opaque {} + +final class OpaqueMPCoherenceID extends ffi.Opaque {} + +final class OpaqueMPConsoleID extends ffi.Opaque {} + +final class OpaqueMPCpuID extends ffi.Opaque {} + +final class OpaqueMPCriticalRegionID extends ffi.Opaque {} + +final class OpaqueMPEventID extends ffi.Opaque {} + +final class OpaqueMPNotificationID extends ffi.Opaque {} + +final class OpaqueMPOpaqueID extends ffi.Opaque {} + +final class OpaqueMPProcessID extends ffi.Opaque {} + +final class OpaqueMPQueueID extends ffi.Opaque {} + +final class OpaqueMPSemaphoreID extends ffi.Opaque {} + +final class OpaqueMPTaskID extends ffi.Opaque {} + +final class OpaqueMPTimerID extends ffi.Opaque {} + +final class OpaquePMPageFormat extends ffi.Opaque {} + +final class OpaquePMPaper extends ffi.Opaque {} + +final class OpaquePMPreset extends ffi.Opaque {} + +final class OpaquePMPrintSession extends ffi.Opaque {} + +final class OpaquePMPrintSettings extends ffi.Opaque {} + +final class OpaquePMPrinter extends ffi.Opaque {} + +final class OpaquePMServer extends ffi.Opaque {} + +final class OpaquePasteboardRef extends ffi.Opaque {} + +final class OpaquePolicySearchRef extends ffi.Opaque {} + +final class OpaqueRgnHandle extends ffi.Opaque {} + +typedef OpaqueSecAccessRef = __SecAccess; +typedef OpaqueSecCertificateRef = __SecCertificate; +typedef OpaqueSecIdentityRef = __SecIdentity; + +final class OpaqueSecIdentitySearchRef extends ffi.Opaque {} + +typedef OpaqueSecKeyRef = __SecKey; + +final class OpaqueSecTransformImplementation extends ffi.Opaque {} + +final class OpaqueTECObjectRef extends ffi.Opaque {} + +final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} + +final class OpaqueTextBreakLocatorRef extends ffi.Opaque {} + +final class OpaqueTextToUnicodeInfo extends ffi.Opaque {} + +final class OpaqueTranslationRef extends ffi.Opaque {} + +final class OpaqueUCTypeSelectRef extends ffi.Opaque {} + +final class OpaqueUnicodeToTextInfo extends ffi.Opaque {} + +final class OpaqueUnicodeToTextRunInfo extends ffi.Opaque {} + +final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} + +final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} + +final class OpaqueWindowPtr extends ffi.Opaque {} + +final class OpbdSideValues extends ffi.Struct { + @SInt16() + external int leftSideShift; + + @SInt16() + external int topSideShift; + + @SInt16() + external int rightSideShift; + + @SInt16() + external int bottomSideShift; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int leftSideShift, + required int topSideShift, + required int rightSideShift, + required int bottomSideShift, + }) => $allocator() + ..ref.leftSideShift = leftSideShift + ..ref.topSideShift = topSideShift + ..ref.rightSideShift = rightSideShift + ..ref.bottomSideShift = bottomSideShift; +} + +@ffi.Packed(2) +final class OpbdTable extends ffi.Struct { + @Fixed() + external int version; + + @OpbdTableFormat() + external int format; + + external SFNTLookupTable lookupTable; +} + +typedef OpbdTableFormat = UInt16; + +@ffi.Packed(2) +final class OpenCPicParams extends ffi.Struct { + external Rect srcRect; + + @Fixed() + external int hRes; + + @Fixed() + external int vRes; + + @ffi.Short() + external int version; + + @ffi.Short() + external int reserved1; + + @SInt32() + external int reserved2; +} + +typedef OptionBits = UInt32; + +const int OverallAct = 0; + +typedef PBVersion = UInt32; + +/// PDEPanel +extension type PDEPanel._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [PDEPanel] that points to the same underlying object as [other]. + PDEPanel.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [PDEPanel] that wraps the given raw object pointer. + PDEPanel.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [PDEPanel]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_PDEPanel, + ); + } +} + +extension PDEPanel$Methods on PDEPanel { + /// PPDOptionKeyValueDidChange:ppdChoice: + void PPDOptionKeyValueDidChange( + objc.NSString option, { + required objc.NSString ppdChoice, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = option.ref; + final _$$ref$2 = ppdChoice.ref; + objc.checkOsVersionInternal( + 'PDEPanel.PPDOptionKeyValueDidChange:ppdChoice:', + iOS: (true, null), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_PPDOptionKeyValueDidChange_ppdChoice_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// panelKind + objc.NSString panelKind() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.panelKind', iOS: (true, null)); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelKind); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// panelName + objc.NSString panelName() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.panelName', iOS: (true, null)); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelName); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// panelView + NSView? panelView() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.panelView', iOS: (true, null)); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelView); + return $ret.address == 0 + ? null + : NSView.fromPointer($ret, retain: true, release: true); + } + + /// printWindowWillClose: + void printWindowWillClose(bool userCanceled) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPanel.printWindowWillClose:', + iOS: (true, null), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_printWindowWillClose_)) { + throw objc.UnimplementedOptionalMethodException( + 'PDEPanel', + 'printWindowWillClose:', + ); + } + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_printWindowWillClose_, + userCanceled, + ); + } + + /// restoreValuesAndReturnError: + bool restoreValuesAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPanel.restoreValuesAndReturnError:', + iOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_restoreValuesAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// saveValuesAndReturnError: + bool saveValuesAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPanel.saveValuesAndReturnError:', + iOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_saveValuesAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// shouldHide + bool shouldHide() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.shouldHide', iOS: (true, null)); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldHide); + } + + /// shouldPrint + bool shouldPrint() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.shouldPrint', iOS: (true, null)); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_shouldPrint)) { + throw objc.UnimplementedOptionalMethodException( + 'PDEPanel', + 'shouldPrint', + ); + } + return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldPrint); + } + + /// shouldShowHelp + bool shouldShowHelp() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.shouldShowHelp', iOS: (true, null)); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_shouldShowHelp)) { + throw objc.UnimplementedOptionalMethodException( + 'PDEPanel', + 'shouldShowHelp', + ); + } + return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldShowHelp); + } + + /// summaryInfo + objc.NSDictionary? summaryInfo() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.summaryInfo', iOS: (true, null)); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_summaryInfo); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + /// supportedPPDOptionKeys + objc.NSArray? supportedPPDOptionKeys() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPanel.supportedPPDOptionKeys', + iOS: (true, null), + ); + if (!objc.respondsToSelector(_$$ref.pointer, _sel_supportedPPDOptionKeys)) { + throw objc.UnimplementedOptionalMethodException( + 'PDEPanel', + 'supportedPPDOptionKeys', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_supportedPPDOptionKeys, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// willShow + void willShow() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('PDEPanel.willShow', iOS: (true, null)); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_willShow); + } +} + +interface class PDEPanel$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_PDEPanel.cast()); + + /// Builds an object that implements the PDEPanel protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static PDEPanel implement({ + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implement( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implement( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implement(builder, willShow); + builder.addProtocol($protocol); + return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the PDEPanel protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implement( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implement( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implement(builder, willShow); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the PDEPanel protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static PDEPanel implementAsListener({ + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsListener( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implementAsListener( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implementAsListener(builder, willShow); + builder.addProtocol($protocol); + return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the PDEPanel protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsListener( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implementAsListener( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implementAsListener(builder, willShow); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the PDEPanel protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static PDEPanel implementAsBlocking({ + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsBlocking( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implementAsBlocking( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implementAsBlocking(builder, willShow); + builder.addProtocol($protocol); + return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the PDEPanel protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(objc.NSString, objc.NSString) + PPDOptionKeyValueDidChange_ppdChoice_, + required objc.NSString Function() panelKind, + required objc.NSString Function() panelName, + required NSView? Function() panelView, + void Function(bool)? printWindowWillClose_, + required bool Function(ffi.Pointer>) + restoreValuesAndReturnError_, + required bool Function(ffi.Pointer>) + saveValuesAndReturnError_, + required bool Function() shouldHide, + bool Function()? shouldPrint, + bool Function()? shouldShowHelp, + required objc.NSDictionary? Function() summaryInfo, + objc.NSArray? Function()? supportedPPDOptionKeys, + required void Function() willShow, + bool $keepIsolateAlive = true, + }) { + PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsBlocking( + builder, + PPDOptionKeyValueDidChange_ppdChoice_, + ); + PDEPanel$Builder.panelKind.implement(builder, panelKind); + PDEPanel$Builder.panelName.implement(builder, panelName); + PDEPanel$Builder.panelView.implement(builder, panelView); + PDEPanel$Builder.printWindowWillClose_.implementAsBlocking( + builder, + printWindowWillClose_, + ); + PDEPanel$Builder.restoreValuesAndReturnError_.implement( + builder, + restoreValuesAndReturnError_, + ); + PDEPanel$Builder.saveValuesAndReturnError_.implement( + builder, + saveValuesAndReturnError_, + ); + PDEPanel$Builder.shouldHide.implement(builder, shouldHide); + PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); + PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); + PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); + PDEPanel$Builder.supportedPPDOptionKeys.implement( + builder, + supportedPPDOptionKeys, + ); + PDEPanel$Builder.willShow.implementAsBlocking(builder, willShow); + builder.addProtocol($protocol); + } + + /// PPDOptionKeyValueDidChange:ppdChoice: + static final PPDOptionKeyValueDidChange_ppdChoice_ = + objc.ObjCProtocolListenableMethod< + void Function(objc.NSString, objc.NSString) + >( + _protocol_PDEPanel, + _sel_PPDOptionKeyValueDidChange_ppdChoice_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_fjrv01) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_PPDOptionKeyValueDidChange_ppdChoice_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.listener( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + (void Function(objc.NSString, objc.NSString) func) => + ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.blocking( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); + + /// panelKind + static final panelKind = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_panelKind, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_panelKind, + isRequired: true, + isInstanceMethod: true, + ), + (objc.NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// panelName + static final panelName = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_panelName, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_panelName, + isRequired: true, + isInstanceMethod: true, + ), + (objc.NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// panelView + static final panelView = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_panelView, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_panelView, + isRequired: true, + isInstanceMethod: true, + ), + (NSView? Function() func) => ObjCBlock_NSView_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// printWindowWillClose: + static final printWindowWillClose_ = + objc.ObjCProtocolListenableMethod( + _protocol_PDEPanel, + _sel_printWindowWillClose_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >(_1uu024u_protocolTrampoline_10lndml) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_printWindowWillClose_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(bool) func) => + ObjCBlock_ffiVoid_ffiVoid_bool.fromFunction( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.listener( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.blocking( + (ffi.Pointer _, bool arg1) => func(arg1), + ), + ); + + /// restoreValuesAndReturnError: + static final restoreValuesAndReturnError_ = + objc.ObjCProtocolMethod< + bool Function(ffi.Pointer>) + >( + _protocol_PDEPanel, + _sel_restoreValuesAndReturnError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >(_1uu024u_protocolTrampoline_jp3gca) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_restoreValuesAndReturnError_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(ffi.Pointer>) func) => + ObjCBlock_bool_ffiVoid_NSError.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer> arg1, + ) => func(arg1), + ), + ); + + /// saveValuesAndReturnError: + static final saveValuesAndReturnError_ = + objc.ObjCProtocolMethod< + bool Function(ffi.Pointer>) + >( + _protocol_PDEPanel, + _sel_saveValuesAndReturnError_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >(_1uu024u_protocolTrampoline_jp3gca) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_saveValuesAndReturnError_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(ffi.Pointer>) func) => + ObjCBlock_bool_ffiVoid_NSError.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer> arg1, + ) => func(arg1), + ), + ); + + /// shouldHide + static final shouldHide = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_shouldHide, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_shouldHide, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// shouldPrint + static final shouldPrint = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_shouldPrint, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_shouldPrint, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// shouldShowHelp + static final shouldShowHelp = objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_shouldShowHelp, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_shouldShowHelp, + isRequired: false, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// summaryInfo + static final summaryInfo = + objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_summaryInfo, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_summaryInfo, + isRequired: true, + isInstanceMethod: true, + ), + (objc.NSDictionary? Function() func) => + ObjCBlock_NSDictionary_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// supportedPPDOptionKeys + static final supportedPPDOptionKeys = + objc.ObjCProtocolMethod( + _protocol_PDEPanel, + _sel_supportedPPDOptionKeys, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_supportedPPDOptionKeys, + isRequired: false, + isInstanceMethod: true, + ), + (objc.NSArray? Function() func) => + ObjCBlock_NSArray_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// willShow + static final willShow = objc.ObjCProtocolListenableMethod( + _protocol_PDEPanel, + _sel_willShow, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPanel, + _sel_willShow, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( + (ffi.Pointer _) => func(), + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( + (ffi.Pointer _) => func(), + ), + ); +} + +/// PDEPlugIn +extension type PDEPlugIn._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [PDEPlugIn] that points to the same underlying object as [other]. + PDEPlugIn.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [PDEPlugIn] that wraps the given raw object pointer. + PDEPlugIn.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [PDEPlugIn]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_PDEPlugIn, + ); + } +} + +extension PDEPlugIn$Methods on PDEPlugIn { + /// PDEPanelsForType:withHostInfo: + objc.NSArray? PDEPanelsForType( + objc.NSString pdeType, { + required PDEPlugInCallbackProtocol withHostInfo, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = pdeType.ref; + final _$$ref$2 = withHostInfo.ref; + objc.checkOsVersionInternal( + 'PDEPlugIn.PDEPanelsForType:withHostInfo:', + iOS: (true, null), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.pointer, + _sel_PDEPanelsForType_withHostInfo_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// initWithBundle: + PDEPlugIn? initWithBundle(objc.NSBundle theBundle) { + final _$$ref = object$.ref; + final _$$ref$1 = theBundle.ref; + objc.checkOsVersionInternal('PDEPlugIn.initWithBundle:', iOS: (true, null)); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithBundle_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : PDEPlugIn.fromPointer($ret, retain: false, release: true); + } +} + +interface class PDEPlugIn$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_PDEPlugIn.cast()); + + /// Builds an object that implements the PDEPlugIn protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static PDEPlugIn implement({ + required objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) + PDEPanelsForType_withHostInfo_, + required Dartinstancetype? Function(objc.NSBundle) initWithBundle_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPlugIn'); + PDEPlugIn$Builder.PDEPanelsForType_withHostInfo_.implement( + builder, + PDEPanelsForType_withHostInfo_, + ); + PDEPlugIn$Builder.initWithBundle_.implement(builder, initWithBundle_); + builder.addProtocol($protocol); + return PDEPlugIn.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); + } + + /// Adds the implementation of the PDEPlugIn protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) + PDEPanelsForType_withHostInfo_, + required Dartinstancetype? Function(objc.NSBundle) initWithBundle_, + bool $keepIsolateAlive = true, + }) { + PDEPlugIn$Builder.PDEPanelsForType_withHostInfo_.implement( + builder, + PDEPanelsForType_withHostInfo_, + ); + PDEPlugIn$Builder.initWithBundle_.implement(builder, initWithBundle_); + builder.addProtocol($protocol); + } + + /// PDEPanelsForType:withHostInfo: + static final PDEPanelsForType_withHostInfo_ = + objc.ObjCProtocolMethod< + objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) + >( + _protocol_PDEPlugIn, + _sel_PDEPanelsForType_withHostInfo_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_zi5eed) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugIn, + _sel_PDEPanelsForType_withHostInfo_, + isRequired: true, + isInstanceMethod: true, + ), + ( + objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) func, + ) => + ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol.fromFunction( + ( + ffi.Pointer _, + objc.NSString arg1, + PDEPlugInCallbackProtocol arg2, + ) => func(arg1, arg2), + ), + ); + + /// initWithBundle: + static final initWithBundle_ = + objc.ObjCProtocolMethod( + _protocol_PDEPlugIn, + _sel_initWithBundle_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugIn, + _sel_initWithBundle_, + isRequired: true, + isInstanceMethod: true, + ), + (Dartinstancetype? Function(objc.NSBundle) func) => + ObjCBlock_instancetype_ffiVoid_NSBundle.fromFunction( + (ffi.Pointer _, objc.NSBundle arg1) => func(arg1), + ), + ); +} + +/// PDEPlugInCallbackProtocol +extension type PDEPlugInCallbackProtocol._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [PDEPlugInCallbackProtocol] that points to the same underlying object as [other]. + PDEPlugInCallbackProtocol.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [PDEPlugInCallbackProtocol] that wraps the given raw object pointer. + PDEPlugInCallbackProtocol.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [PDEPlugInCallbackProtocol]. + static bool conformsTo(objc.ObjCObject obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_PDEPlugInCallbackProtocol, + ); + } +} + +extension PDEPlugInCallbackProtocol$Methods on PDEPlugInCallbackProtocol { + /// PMPrinter + PMPrinter PMPrinter$1() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.PMPrinter', + iOS: (true, null), + ); + return _objc_msgSend_bm6pu2(_$$ref.pointer, _sel_PMPrinter); + } + + /// pageFormat + PMPageFormat pageFormat() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.pageFormat', + iOS: (true, null), + ); + return _objc_msgSend_1dcy00i(_$$ref.pointer, _sel_pageFormat); + } + + /// ppdFile + ffi.Pointer ppdFile() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.ppdFile', + iOS: (true, null), + ); + return _objc_msgSend_wbgokv(_$$ref.pointer, _sel_ppdFile); + } + + /// printSession + PMPrintSession printSession() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.printSession', + iOS: (true, null), + ); + return _objc_msgSend_esp80j(_$$ref.pointer, _sel_printSession); + } + + /// printSettings + PMPrintSettings printSettings() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.printSettings', + iOS: (true, null), + ); + return _objc_msgSend_1tqkjbg(_$$ref.pointer, _sel_printSettings); + } + + /// willChangePPDOptionKeyValue:ppdChoice: + bool willChangePPDOptionKeyValue( + objc.NSString option, { + required objc.NSString ppdChoice, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = option.ref; + final _$$ref$2 = ppdChoice.ref; + objc.checkOsVersionInternal( + 'PDEPlugInCallbackProtocol.willChangePPDOptionKeyValue:ppdChoice:', + iOS: (true, null), + ); + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_willChangePPDOptionKeyValue_ppdChoice_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } +} + +interface class PDEPlugInCallbackProtocol$Builder { + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.fromPointer(_protocol_PDEPlugInCallbackProtocol.cast()); + + /// Builds an object that implements the PDEPlugInCallbackProtocol protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static PDEPlugInCallbackProtocol implement({ + required PMPrinter Function() PMPrinter$1, + required PMPageFormat Function() pageFormat, + required ffi.Pointer Function() ppdFile, + required PMPrintSession Function() printSession, + required PMPrintSettings Function() printSettings, + required bool Function(objc.NSString, objc.NSString) + willChangePPDOptionKeyValue_ppdChoice_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'PDEPlugInCallbackProtocol', + ); + PDEPlugInCallbackProtocol$Builder.PMPrinter$1.implement( + builder, + PMPrinter$1, + ); + PDEPlugInCallbackProtocol$Builder.pageFormat.implement(builder, pageFormat); + PDEPlugInCallbackProtocol$Builder.ppdFile.implement(builder, ppdFile); + PDEPlugInCallbackProtocol$Builder.printSession.implement( + builder, + printSession, + ); + PDEPlugInCallbackProtocol$Builder.printSettings.implement( + builder, + printSettings, + ); + PDEPlugInCallbackProtocol$Builder.willChangePPDOptionKeyValue_ppdChoice_ + .implement(builder, willChangePPDOptionKeyValue_ppdChoice_); + builder.addProtocol($protocol); + return PDEPlugInCallbackProtocol.as( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the PDEPlugInCallbackProtocol protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required PMPrinter Function() PMPrinter$1, + required PMPageFormat Function() pageFormat, + required ffi.Pointer Function() ppdFile, + required PMPrintSession Function() printSession, + required PMPrintSettings Function() printSettings, + required bool Function(objc.NSString, objc.NSString) + willChangePPDOptionKeyValue_ppdChoice_, + bool $keepIsolateAlive = true, + }) { + PDEPlugInCallbackProtocol$Builder.PMPrinter$1.implement( + builder, + PMPrinter$1, + ); + PDEPlugInCallbackProtocol$Builder.pageFormat.implement(builder, pageFormat); + PDEPlugInCallbackProtocol$Builder.ppdFile.implement(builder, ppdFile); + PDEPlugInCallbackProtocol$Builder.printSession.implement( + builder, + printSession, + ); + PDEPlugInCallbackProtocol$Builder.printSettings.implement( + builder, + printSettings, + ); + PDEPlugInCallbackProtocol$Builder.willChangePPDOptionKeyValue_ppdChoice_ + .implement(builder, willChangePPDOptionKeyValue_ppdChoice_); + builder.addProtocol($protocol); + } + + /// PMPrinter + static final PMPrinter$1 = objc.ObjCProtocolMethod( + _protocol_PDEPlugInCallbackProtocol, + _sel_PMPrinter, + ffi.Native.addressOf< + ffi.NativeFunction< + PMPrinter Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_h8xvuu) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_PMPrinter, + isRequired: true, + isInstanceMethod: true, + ), + (PMPrinter Function() func) => ObjCBlock_PMPrinter_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// pageFormat + static final pageFormat = objc.ObjCProtocolMethod( + _protocol_PDEPlugInCallbackProtocol, + _sel_pageFormat, + ffi.Native.addressOf< + ffi.NativeFunction< + PMPageFormat Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1pm5t72) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_pageFormat, + isRequired: true, + isInstanceMethod: true, + ), + (PMPageFormat Function() func) => + ObjCBlock_PMPageFormat_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// ppdFile + static final ppdFile = + objc.ObjCProtocolMethod Function()>( + _protocol_PDEPlugInCallbackProtocol, + _sel_ppdFile, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_10vn635) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_ppdFile, + isRequired: true, + isInstanceMethod: true, + ), + (ffi.Pointer Function() func) => + ObjCBlock_ppdfiles_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// printSession + static final printSession = + objc.ObjCProtocolMethod( + _protocol_PDEPlugInCallbackProtocol, + _sel_printSession, + ffi.Native.addressOf< + ffi.NativeFunction< + PMPrintSession Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1ch2rph) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_printSession, + isRequired: true, + isInstanceMethod: true, + ), + (PMPrintSession Function() func) => + ObjCBlock_PMPrintSession_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// printSettings + static final printSettings = + objc.ObjCProtocolMethod( + _protocol_PDEPlugInCallbackProtocol, + _sel_printSettings, + ffi.Native.addressOf< + ffi.NativeFunction< + PMPrintSettings Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_1cwrrqo) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_printSettings, + isRequired: true, + isInstanceMethod: true, + ), + (PMPrintSettings Function() func) => + ObjCBlock_PMPrintSettings_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// willChangePPDOptionKeyValue:ppdChoice: + static final willChangePPDOptionKeyValue_ppdChoice_ = + objc.ObjCProtocolMethod( + _protocol_PDEPlugInCallbackProtocol, + _sel_willChangePPDOptionKeyValue_ppdChoice_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_1uu024u_protocolTrampoline_2n06mv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_PDEPlugInCallbackProtocol, + _sel_willChangePPDOptionKeyValue_ppdChoice_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.NSString, objc.NSString) func) => + ObjCBlock_bool_ffiVoid_NSString_NSString.fromFunction( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.NSString arg2, + ) => func(arg1, arg2), + ), + ); +} + +@ffi.Packed(2) +final class PEFContainerHeader extends ffi.Struct { + @OSType() + external int tag1; + + @OSType() + external int tag2; + + @OSType() + external int architecture; + + @UInt32() + external int formatVersion; + + @UInt32() + external int dateTimeStamp; + + @UInt32() + external int oldDefVersion; + + @UInt32() + external int oldImpVersion; + + @UInt32() + external int currentVersion; + + @UInt16() + external int sectionCount; + + @UInt16() + external int instSectionCount; + + @UInt32() + external int reservedA; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tag1, + required int tag2, + required int architecture, + required int formatVersion, + required int dateTimeStamp, + required int oldDefVersion, + required int oldImpVersion, + required int currentVersion, + required int sectionCount, + required int instSectionCount, + required int reservedA, + }) => $allocator() + ..ref.tag1 = tag1 + ..ref.tag2 = tag2 + ..ref.architecture = architecture + ..ref.formatVersion = formatVersion + ..ref.dateTimeStamp = dateTimeStamp + ..ref.oldDefVersion = oldDefVersion + ..ref.oldImpVersion = oldImpVersion + ..ref.currentVersion = currentVersion + ..ref.sectionCount = sectionCount + ..ref.instSectionCount = instSectionCount + ..ref.reservedA = reservedA; +} + +@ffi.Packed(2) +final class PEFExportedSymbol extends ffi.Struct { + @UInt32() + external int classAndName; + + @UInt32() + external int symbolValue; + + @SInt16() + external int sectionIndex; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int classAndName, + required int symbolValue, + required int sectionIndex, + }) => $allocator() + ..ref.classAndName = classAndName + ..ref.symbolValue = symbolValue + ..ref.sectionIndex = sectionIndex; +} + +@ffi.Packed(2) +final class PEFExportedSymbolHashSlot extends ffi.Struct { + @UInt32() + external int countAndStart; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int countAndStart, + }) => + $allocator() + ..ref.countAndStart = countAndStart; +} + +final class PEFExportedSymbolKey extends ffi.Struct { + external UnnamedUnion$11 u; +} + +@ffi.Packed(2) +final class PEFImportedLibrary extends ffi.Struct { + @UInt32() + external int nameOffset; + + @UInt32() + external int oldImpVersion; + + @UInt32() + external int currentVersion; + + @UInt32() + external int importedSymbolCount; + + @UInt32() + external int firstImportedSymbol; + + @UInt8() + external int options; + + @UInt8() + external int reservedA; + + @UInt16() + external int reservedB; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nameOffset, + required int oldImpVersion, + required int currentVersion, + required int importedSymbolCount, + required int firstImportedSymbol, + required int options, + required int reservedA, + required int reservedB, + }) => $allocator() + ..ref.nameOffset = nameOffset + ..ref.oldImpVersion = oldImpVersion + ..ref.currentVersion = currentVersion + ..ref.importedSymbolCount = importedSymbolCount + ..ref.firstImportedSymbol = firstImportedSymbol + ..ref.options = options + ..ref.reservedA = reservedA + ..ref.reservedB = reservedB; +} + +@ffi.Packed(2) +final class PEFImportedSymbol extends ffi.Struct { + @UInt32() + external int classAndName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int classAndName, + }) => $allocator()..ref.classAndName = classAndName; +} + +@ffi.Packed(2) +final class PEFLoaderInfoHeader extends ffi.Struct { + @SInt32() + external int mainSection; + + @UInt32() + external int mainOffset; + + @SInt32() + external int initSection; + + @UInt32() + external int initOffset; + + @SInt32() + external int termSection; + + @UInt32() + external int termOffset; + + @UInt32() + external int importedLibraryCount; + + @UInt32() + external int totalImportedSymbolCount; + + @UInt32() + external int relocSectionCount; + + @UInt32() + external int relocInstrOffset; + + @UInt32() + external int loaderStringsOffset; + + @UInt32() + external int exportHashOffset; + + @UInt32() + external int exportHashTablePower; + + @UInt32() + external int exportedSymbolCount; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mainSection, + required int mainOffset, + required int initSection, + required int initOffset, + required int termSection, + required int termOffset, + required int importedLibraryCount, + required int totalImportedSymbolCount, + required int relocSectionCount, + required int relocInstrOffset, + required int loaderStringsOffset, + required int exportHashOffset, + required int exportHashTablePower, + required int exportedSymbolCount, + }) => $allocator() + ..ref.mainSection = mainSection + ..ref.mainOffset = mainOffset + ..ref.initSection = initSection + ..ref.initOffset = initOffset + ..ref.termSection = termSection + ..ref.termOffset = termOffset + ..ref.importedLibraryCount = importedLibraryCount + ..ref.totalImportedSymbolCount = totalImportedSymbolCount + ..ref.relocSectionCount = relocSectionCount + ..ref.relocInstrOffset = relocInstrOffset + ..ref.loaderStringsOffset = loaderStringsOffset + ..ref.exportHashOffset = exportHashOffset + ..ref.exportHashTablePower = exportHashTablePower + ..ref.exportedSymbolCount = exportedSymbolCount; +} + +@ffi.Packed(2) +final class PEFLoaderRelocationHeader extends ffi.Struct { + @UInt16() + external int sectionIndex; + + @UInt16() + external int reservedA; + + @UInt32() + external int relocCount; + + @UInt32() + external int firstRelocOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sectionIndex, + required int reservedA, + required int relocCount, + required int firstRelocOffset, + }) => $allocator() + ..ref.sectionIndex = sectionIndex + ..ref.reservedA = reservedA + ..ref.relocCount = relocCount + ..ref.firstRelocOffset = firstRelocOffset; +} + +typedef PEFRelocChunk = UInt16; + +@ffi.Packed(2) +final class PEFSectionHeader extends ffi.Struct { + @SInt32() + external int nameOffset; + + @UInt32() + external int defaultAddress; + + @UInt32() + external int totalLength; + + @UInt32() + external int unpackedLength; + + @UInt32() + external int containerLength; + + @UInt32() + external int containerOffset; + + @UInt8() + external int sectionKind; + + @UInt8() + external int shareKind; + + @UInt8() + external int alignment; + + @UInt8() + external int reservedA; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nameOffset, + required int defaultAddress, + required int totalLength, + required int unpackedLength, + required int containerLength, + required int containerOffset, + required int sectionKind, + required int shareKind, + required int alignment, + required int reservedA, + }) => $allocator() + ..ref.nameOffset = nameOffset + ..ref.defaultAddress = defaultAddress + ..ref.totalLength = totalLength + ..ref.unpackedLength = unpackedLength + ..ref.containerLength = containerLength + ..ref.containerOffset = containerOffset + ..ref.sectionKind = sectionKind + ..ref.shareKind = shareKind + ..ref.alignment = alignment + ..ref.reservedA = reservedA; +} + +final class PEFSplitHashWord extends ffi.Struct { + @UInt16() + external int nameLength; + + @UInt16() + external int hashValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nameLength, + required int hashValue, + }) => $allocator() + ..ref.nameLength = nameLength + ..ref.hashValue = hashValue; +} + +typedef PMBorderType = UInt16; +typedef PMColorSpaceModel = UInt32; + +enum PMDataFormat { + kPMDataFormatXMLDefault(0), + kPMDataFormatXMLMinimal(1), + kPMDataFormatXMLCompressed(2); + + final int value; + const PMDataFormat(this.value); + + static PMDataFormat fromValue(int value) => switch (value) { + 0 => kPMDataFormatXMLDefault, + 1 => kPMDataFormatXMLMinimal, + 2 => kPMDataFormatXMLCompressed, + _ => throw ArgumentError('Unknown value for PMDataFormat: $value'), + }; +} + +typedef PMDestinationType = UInt16; +typedef PMDuplexMode = UInt32; + +final class PMLanguageInfo extends ffi.Struct { + @ffi.Array.multi([33]) + external ffi.Array level; + + @ffi.Array.multi([33]) + external ffi.Array version; + + @ffi.Array.multi([33]) + external ffi.Array release; +} + +typedef PMLayoutDirection = UInt16; +typedef PMObject = ffi.Pointer; +typedef PMOrientation = UInt16; +typedef PMPPDDomain = UInt16; +typedef PMPageFormat = ffi.Pointer; + +enum PMPageToPaperMappingType { + kPMPageToPaperMappingNone(1), + kPMPageToPaperMappingScaleToFit(2); + + final int value; + const PMPageToPaperMappingType(this.value); + + static PMPageToPaperMappingType fromValue(int value) => switch (value) { + 1 => kPMPageToPaperMappingNone, + 2 => kPMPageToPaperMappingScaleToFit, + _ => throw ArgumentError( + 'Unknown value for PMPageToPaperMappingType: $value', + ), + }; +} + +typedef PMPaper = ffi.Pointer; +typedef PMPaperMargins = PMRect; +typedef PMPaperType = UInt32; +typedef PMPreset = ffi.Pointer; +typedef PMPrintDialogOptionFlags = OptionBits; +typedef PMPrintSession = ffi.Pointer; +typedef PMPrintSettings = ffi.Pointer; +typedef PMPrinter = ffi.Pointer; +typedef PMPrinterState = UInt16; +typedef PMQualityMode = UInt32; + +final class PMRect extends ffi.Struct { + @ffi.Double() + external double top; + + @ffi.Double() + external double left; + + @ffi.Double() + external double bottom; + + @ffi.Double() + external double right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double top, + required double left, + required double bottom, + required double right, + }) => $allocator() + ..ref.top = top + ..ref.left = left + ..ref.bottom = bottom + ..ref.right = right; +} + +final class PMResolution extends ffi.Struct { + @ffi.Double() + external double hRes; + + @ffi.Double() + external double vRes; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double hRes, + required double vRes, + }) => $allocator() + ..ref.hRes = hRes + ..ref.vRes = vRes; +} + +typedef PMScalingAlignment = UInt16; +typedef PMServer = ffi.Pointer; +typedef PRefCon = ffi.Pointer; + +final class ParamBlockRec extends ffi.Opaque {} + +typedef ParmBlkPtr = ffi.Pointer; + +sealed class PasteboardFlavorFlags { + static const kPasteboardFlavorNoFlags = 0; + static const kPasteboardFlavorSenderOnly = 1; + static const kPasteboardFlavorSenderTranslated = 2; + static const kPasteboardFlavorNotSaved = 4; + static const kPasteboardFlavorRequestOnly = 8; + static const kPasteboardFlavorSystemTranslated = 256; + static const kPasteboardFlavorPromised = 512; +} + +typedef PasteboardItemID = ffi.Pointer; +typedef PasteboardPromiseKeeperProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + PasteboardRef pasteboard, + PasteboardItemID item, + CFStringRef flavorType, + ffi.Pointer context, + ) + > + >; +typedef PasteboardRef = ffi.Pointer; + +enum PasteboardStandardLocation { + kPasteboardStandardLocationTrash(1953657704), + kPasteboardStandardLocationUnknown(1970170734); + + final int value; + const PasteboardStandardLocation(this.value); + + static PasteboardStandardLocation fromValue(int value) => switch (value) { + 1953657704 => kPasteboardStandardLocationTrash, + 1970170734 => kPasteboardStandardLocationUnknown, + _ => throw ArgumentError( + 'Unknown value for PasteboardStandardLocation: $value', + ), + }; +} + +sealed class PasteboardSyncFlags { + static const kPasteboardModified = 1; + static const kPasteboardClientIsOwner = 2; +} + +typedef PatHandle = ffi.Pointer; +typedef PatPtr = ffi.Pointer; + +final class Pattern extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array pat; +} + +final class PhonemeDescriptor extends ffi.Struct { + @SInt16() + external int phonemeCount; + + @ffi.Array.multi([1]) + external ffi.Array thePhonemes; +} + +final class PhonemeInfo extends ffi.Struct { + @SInt16() + external int opcode; + + @ffi.Array.multi([16]) + external ffi.Array phStr; + + @ffi.Array.multi([32]) + external ffi.Array exampleStr; + + @SInt16() + external int hiliteStart; + + @SInt16() + external int hiliteEnd; +} + +typedef PhysicalAddress = ffi.Pointer; +typedef PicHandle = ffi.Pointer; +typedef PicPtr = ffi.Pointer; + +final class Picture extends ffi.Struct { + @ffi.Short() + external int picSize; + + external Rect picFrame; +} + +@ffi.Packed(2) +final class PixMap extends ffi.Struct { + external Ptr baseAddr; + + @ffi.Short() + external int rowBytes; + + external Rect bounds; + + @ffi.Short() + external int pmVersion; + + @ffi.Short() + external int packType; + + @SInt32() + external int packSize; + + @Fixed() + external int hRes; + + @Fixed() + external int vRes; + + @ffi.Short() + external int pixelType; + + @ffi.Short() + external int pixelSize; + + @ffi.Short() + external int cmpCount; + + @ffi.Short() + external int cmpSize; + + @OSType() + external int pixelFormat; + + external CTabHandle pmTable; + + external ffi.Pointer pmExt; +} + +typedef PixMapHandle = ffi.Pointer; +typedef PixMapPtr = ffi.Pointer; + +@ffi.Packed(2) +final class PixPat extends ffi.Struct { + @ffi.Short() + external int patType; + + external PixMapHandle patMap; + + external Handle patData; + + external Handle patXData; + + @ffi.Short() + external int patXValid; + + external Handle patXMap; + + external Pattern pat1Data; +} + +typedef PixPatHandle = ffi.Pointer; +typedef PixPatPtr = ffi.Pointer; +typedef PlotIconRefFlags = UInt32; + +final class Point extends ffi.Struct { + @ffi.Short() + external int v; + + @ffi.Short() + external int h; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + required int h, + }) => $allocator() + ..ref.v = v + ..ref.h = h; +} + +typedef PointPtr = ffi.Pointer; +typedef PolyHandle = ffi.Pointer; +typedef PolyPtr = ffi.Pointer; +typedef Polygon = MacPolygon; +typedef PrinterStatusOpcode = SInt32; +typedef ProcHandle = ffi.Pointer; +typedef ProcInfoType = ffi.UnsignedLong; +typedef DartProcInfoType = int; +typedef ProcPtr = ffi.Pointer>; +typedef ProcessApplicationTransformState = UInt32; + +@ffi.Packed(2) +final class ProcessInfoExtendedRec extends ffi.Struct { + @UInt32() + external int processInfoLength; + + external StringPtr processName; + + external ProcessSerialNumber processNumber; + + @UInt32() + external int processType; + + @OSType() + external int processSignature; + + @UInt32() + external int processMode; + + external Ptr processLocation; + + @UInt32() + external int processSize; + + @UInt32() + external int processFreeMem; + + external ProcessSerialNumber processLauncher; + + @UInt32() + external int processLaunchDate; + + @UInt32() + external int processActiveTime; + + external FSRefPtr processAppRef; + + @UInt32() + external int processTempMemTotal; + + @UInt32() + external int processPurgeableTempMemTotal; +} + +typedef ProcessInfoExtendedRecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class ProcessInfoRec extends ffi.Struct { + @UInt32() + external int processInfoLength; + + external StringPtr processName; + + external ProcessSerialNumber processNumber; + + @UInt32() + external int processType; + + @OSType() + external int processSignature; + + @UInt32() + external int processMode; + + external Ptr processLocation; + + @UInt32() + external int processSize; + + @UInt32() + external int processFreeMem; + + external ProcessSerialNumber processLauncher; + + @UInt32() + external int processLaunchDate; + + @UInt32() + external int processActiveTime; + + external FSRefPtr processAppRef; +} + +typedef ProcessInfoRecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class ProcessSerialNumber extends ffi.Struct { + @UInt32() + external int highLongOfPSN; + + @UInt32() + external int lowLongOfPSN; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int highLongOfPSN, + required int lowLongOfPSN, + }) => $allocator() + ..ref.highLongOfPSN = highLongOfPSN + ..ref.lowLongOfPSN = lowLongOfPSN; +} + +typedef ProcessSerialNumberPtr = ffi.Pointer; +typedef PropCharProperties = UInt16; + +final class PropLookupSegment extends ffi.Struct { + @UInt16() + external int lastGlyph; + + @UInt16() + external int firstGlyph; + + @UInt16() + external int value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lastGlyph, + required int firstGlyph, + required int value, + }) => $allocator() + ..ref.lastGlyph = lastGlyph + ..ref.firstGlyph = firstGlyph + ..ref.value = value; +} + +final class PropLookupSingle extends ffi.Struct { + @UInt16() + external int glyph; + + @PropCharProperties() + external int props; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int glyph, + required int props, + }) => $allocator() + ..ref.glyph = glyph + ..ref.props = props; +} + +@ffi.Packed(2) +final class PropTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt16() + external int format; + + @PropCharProperties() + external int defaultProps; + + external SFNTLookupTable lookup; +} + +typedef Ptr = ffi.Pointer; +typedef QDArcProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + GrafVerb verb, + ffi.Pointer r, + ffi.Short startAngle, + ffi.Short arcAngle, + ) + > + >; +typedef QDArcUPP = QDArcProcPtr; +typedef QDBitsProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer srcBits, + ffi.Pointer srcRect, + ffi.Pointer dstRect, + ffi.Short mode, + RgnHandle maskRgn, + ) + > + >; +typedef QDBitsUPP = QDBitsProcPtr; +typedef QDCommentProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Short kind, ffi.Short dataSize, Handle dataHandle) + > + >; +typedef QDCommentUPP = QDCommentProcPtr; +typedef QDErr = ffi.Short; +typedef DartQDErr = int; +typedef QDGetPicProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount) + > + >; +typedef QDGetPicUPP = QDGetPicProcPtr; +typedef QDJShieldCursorProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Short left, + ffi.Short top, + ffi.Short right, + ffi.Short bottom, + ) + > + >; +typedef QDJShieldCursorUPP = QDJShieldCursorProcPtr; +typedef QDLineProcPtr = + ffi.Pointer>; +typedef QDLineUPP = QDLineProcPtr; +typedef QDOpcodeProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer fromRect, + ffi.Pointer toRect, + UInt16 opcode, + SInt16 version, + ) + > + >; +typedef QDOpcodeUPP = QDOpcodeProcPtr; +typedef QDOvalProcPtr = + ffi.Pointer< + ffi.NativeFunction r)> + >; +typedef QDOvalUPP = QDOvalProcPtr; +typedef QDPolyProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef QDPolyUPP = QDPolyProcPtr; +typedef QDPrinterStatusProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + PrinterStatusOpcode opcode, + CGrafPtr currentPort, + ffi.Pointer printerStatus, + ) + > + >; +typedef QDPrinterStatusUPP = QDPrinterStatusProcPtr; +typedef QDPutPicProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount) + > + >; +typedef QDPutPicUPP = QDPutPicProcPtr; +typedef QDRRectProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + GrafVerb verb, + ffi.Pointer r, + ffi.Short ovalWidth, + ffi.Short ovalHeight, + ) + > + >; +typedef QDRRectUPP = QDRRectProcPtr; +typedef QDRectProcPtr = + ffi.Pointer< + ffi.NativeFunction r)> + >; +typedef QDRectUPP = QDRectProcPtr; +typedef QDRegionParseDirection = SInt32; +typedef QDRgnProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef QDRgnUPP = QDRgnProcPtr; +typedef QDStdGlyphsProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function(ffi.Pointer dataStream, ByteCount size) + > + >; +typedef QDStdGlyphsUPP = QDStdGlyphsProcPtr; +typedef QDTextProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Short byteCount, + ffi.Pointer textBuf, + Point numer, + Point denom, + ) + > + >; +typedef QDTextUPP = QDTextProcPtr; +typedef QDTxMeasProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Short Function( + ffi.Short byteCount, + ffi.Pointer textAddr, + ffi.Pointer numer, + ffi.Pointer denom, + ffi.Pointer info, + ) + > + >; +typedef QDTxMeasUPP = QDTxMeasProcPtr; + +@ffi.Packed(2) +final class QElem extends ffi.Struct { + external ffi.Pointer qLink; + + @ffi.Short() + external int qType; + + @ffi.Array.multi([1]) + external ffi.Array qData; +} + +typedef QElemPtr = ffi.Pointer; + +final class QHdr extends ffi.Opaque {} + +typedef QHdrPtr = ffi.Pointer; +typedef QTypes = SignedByte; +typedef RDFlagsType = UInt8; + +final class RGBColor extends ffi.Struct { + @ffi.UnsignedShort() + external int red; + + @ffi.UnsignedShort() + external int green; + + @ffi.UnsignedShort() + external int blue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int red, + required int green, + required int blue, + }) => $allocator() + ..ref.red = red + ..ref.green = green + ..ref.blue = blue; +} + +final class ROTAGlyphEntry extends ffi.Struct { + @SInt16() + external int GlyphIndexOffset; + + @SInt16() + external int HBaselineOffset; + + @SInt16() + external int VBaselineOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int GlyphIndexOffset, + required int HBaselineOffset, + required int VBaselineOffset, + }) => $allocator() + ..ref.GlyphIndexOffset = GlyphIndexOffset + ..ref.HBaselineOffset = HBaselineOffset + ..ref.VBaselineOffset = VBaselineOffset; +} + +@ffi.Packed(2) +final class ROTAHeader extends ffi.Struct { + @Fixed() + external int Version; + + @UInt16() + external int Flags; + + @UInt16() + external int NMasters; + + @UInt16() + external int FirstGlyph; + + @UInt16() + external int LastGlyph; + + external SFNTLookupTable lookup; +} + +typedef RTAType = SInt8; + +final class Rect extends ffi.Struct { + @ffi.Short() + external int top; + + @ffi.Short() + external int left; + + @ffi.Short() + external int bottom; + + @ffi.Short() + external int right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int top, + required int left, + required int bottom, + required int right, + }) => $allocator() + ..ref.top = top + ..ref.left = left + ..ref.bottom = bottom + ..ref.right = right; +} + +typedef RectPtr = ffi.Pointer; +typedef RedrawBackgroundProcPtr = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + ATSUTextLayout iLayout, + UniCharArrayOffset iTextOffset, + UniCharCount iTextLength, + ffi.Pointer iUnhighlightArea, + ItemCount iTrapezoidCount, + ) + > + >; +typedef RedrawBackgroundUPP = RedrawBackgroundProcPtr; +typedef RegionCode = SInt16; +typedef RegionToRectsProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + UInt16 message, + RgnHandle rgn, + ffi.Pointer rect, + ffi.Pointer refCon, + ) + > + >; +typedef RegionToRectsUPP = RegionToRectsProcPtr; +typedef Register68kProcPtr = + ffi.Pointer>; + +final class RegisterInformation extends ffi.Struct { + external ffi.Pointer __unusedRegisterInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedRegisterInformationField, + }) => $allocator() + ..ref.__unusedRegisterInformationField = $unusedRegisterInformationField; +} + +final class RegisterInformationPowerPC extends ffi.Struct { + external UnsignedWide R0; + + external UnsignedWide R1; + + external UnsignedWide R2; + + external UnsignedWide R3; + + external UnsignedWide R4; + + external UnsignedWide R5; + + external UnsignedWide R6; + + external UnsignedWide R7; + + external UnsignedWide R8; + + external UnsignedWide R9; + + external UnsignedWide R10; + + external UnsignedWide R11; + + external UnsignedWide R12; + + external UnsignedWide R13; + + external UnsignedWide R14; + + external UnsignedWide R15; + + external UnsignedWide R16; + + external UnsignedWide R17; + + external UnsignedWide R18; + + external UnsignedWide R19; + + external UnsignedWide R20; + + external UnsignedWide R21; + + external UnsignedWide R22; + + external UnsignedWide R23; + + external UnsignedWide R24; + + external UnsignedWide R25; + + external UnsignedWide R26; + + external UnsignedWide R27; + + external UnsignedWide R28; + + external UnsignedWide R29; + + external UnsignedWide R30; + + external UnsignedWide R31; +} + +@ffi.Packed(2) +final class RegisteredComponentInstanceRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef RegisteredComponentInstanceRecordPtr = + ffi.Pointer; + +@ffi.Packed(2) +final class RegisteredComponentRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef RegisteredComponentRecordPtr = ffi.Pointer; +typedef ResAttributes = SInt16; +typedef ResErrProcPtr = + ffi.Pointer>; +typedef ResErrUPP = ResErrProcPtr; +typedef ResFileAttributes = SInt16; +typedef ResFileRefNum = FSIORefNum; +typedef ResID = SInt16; +typedef ResType = FourCharCode; +typedef ResTypePtr = ffi.Pointer; +typedef ResourceCount = SInt16; +typedef ResourceEndianFilterPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function(Handle theResource, Boolean currentlyNativeEndian) + > + >; +typedef ResourceIndex = SInt16; + +@ffi.Packed(2) +final class ResourceSpec extends ffi.Struct { + @OSType() + external int resType; + + @SInt16() + external int resID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int resType, + required int resID, + }) => $allocator() + ..ref.resType = resType + ..ref.resID = resID; +} + +typedef RgnHandle = ffi.Pointer; + +@ffi.Packed(2) +final class RoutineDescriptor extends ffi.Struct { + @UInt16() + external int goMixedModeTrap; + + @SInt8() + external int version; + + @RDFlagsType() + external int routineDescriptorFlags; + + @UInt32() + external int reserved1; + + @UInt8() + external int reserved2; + + @UInt8() + external int selectorInfo; + + @UInt16() + external int routineCount; + + @ffi.Array.multi([1]) + external ffi.Array routineRecords; +} + +typedef RoutineDescriptorHandle = ffi.Pointer; +typedef RoutineDescriptorPtr = ffi.Pointer; +typedef RoutineFlagsType = ffi.UnsignedShort; +typedef DartRoutineFlagsType = int; + +@ffi.Packed(2) +final class RoutineRecord extends ffi.Struct { + @ProcInfoType() + external int procInfo; + + @SInt8() + external int reserved1; + + @ISAType() + external int ISA; + + @RoutineFlagsType() + external int routineFlags; + + external ProcPtr procDescriptor; + + @UInt32() + external int reserved2; + + @UInt32() + external int selector; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int procInfo, + required int reserved1, + required int ISA, + required int routineFlags, + required ProcPtr procDescriptor, + required int reserved2, + required int selector, + }) => $allocator() + ..ref.procInfo = procInfo + ..ref.reserved1 = reserved1 + ..ref.ISA = ISA + ..ref.routineFlags = routineFlags + ..ref.procDescriptor = procDescriptor + ..ref.reserved2 = reserved2 + ..ref.selector = selector; +} + +typedef RoutineRecordHandle = ffi.Pointer; +typedef RoutineRecordPtr = ffi.Pointer; + +/// RoutingConfiguration +extension RoutingConfiguration on AVAudioSession { + /// availableInputs + objc.NSArray? get availableInputs { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.availableInputs', + iOS: (false, (7, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_availableInputs); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// currentRoute + AVAudioSessionRouteDescription get currentRoute { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.currentRoute', + iOS: (false, (6, 0, 0)), + macOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentRoute); + return AVAudioSessionRouteDescription.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + /// prefersInterruptionOnRouteDisconnect + bool get prefersInterruptionOnRouteDisconnect { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.prefersInterruptionOnRouteDisconnect', + iOS: (false, (17, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635( + _$$ref.pointer, + _sel_prefersInterruptionOnRouteDisconnect, + ); + } + + /// setAggregatedIOPreference:error: + bool setAggregatedIOPreference(AVAudioSessionIOType inIOType) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setAggregatedIOPreference:error:', + iOS: (false, (10, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_vqual9( + _$$ref.pointer, + _sel_setAggregatedIOPreference_error_, + inIOType.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setPrefersInterruptionOnRouteDisconnect:error: + bool setPrefersInterruptionOnRouteDisconnect(bool inValue) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setPrefersInterruptionOnRouteDisconnect:error:', + iOS: (false, (17, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_164wts2( + _$$ref.pointer, + _sel_setPrefersInterruptionOnRouteDisconnect_error_, + inValue, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// setSupportsMultichannelContent:error: + bool setSupportsMultichannelContent(bool inValue) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.setSupportsMultichannelContent:error:', + iOS: (false, (15, 0, 0)), + macOS: (true, null), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_164wts2( + _$$ref.pointer, + _sel_setSupportsMultichannelContent_error_, + inValue, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// supportsMultichannelContent + bool get supportsMultichannelContent { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioSession.supportsMultichannelContent', + iOS: (false, (15, 0, 0)), + macOS: (true, null), + ); + return _objc_msgSend_91o635( + _$$ref.pointer, + _sel_supportsMultichannelContent, + ); + } +} + +typedef RoutingFlags = UInt32; + +@ffi.Packed(2) +final class RoutingResourceEntry extends ffi.Struct { + @OSType() + external int creator; + + @OSType() + external int fileType; + + @OSType() + external int targetFolder; + + @OSType() + external int destinationFolder; + + @OSType() + external int reservedField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int creator, + required int fileType, + required int targetFolder, + required int destinationFolder, + required int reservedField, + }) => $allocator() + ..ref.creator = creator + ..ref.fileType = fileType + ..ref.targetFolder = targetFolder + ..ref.destinationFolder = destinationFolder + ..ref.reservedField = reservedField; +} + +typedef RoutingResourceHandle = ffi.Pointer; +typedef RoutingResourcePtr = ffi.Pointer; +typedef RsrcChainLocation = SInt16; + +final class RuleBasedTrslRecord extends ffi.Struct { + @ffi.Short() + external int sourceType; + + @ffi.Short() + external int targetType; + + @ffi.Short() + external int formatNumber; + + @ffi.Short() + external int propertyFlag; + + @ffi.Short() + external int numberOfRules; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sourceType, + required int targetType, + required int formatNumber, + required int propertyFlag, + required int numberOfRules, + }) => $allocator() + ..ref.sourceType = sourceType + ..ref.targetType = targetType + ..ref.formatNumber = formatNumber + ..ref.propertyFlag = propertyFlag + ..ref.numberOfRules = numberOfRules; +} + +final class SFNTLookupArrayHeader extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array lookupValues; +} + +final class SFNTLookupBinarySearchHeader extends ffi.Struct { + @UInt16() + external int unitSize; + + @UInt16() + external int nUnits; + + @UInt16() + external int searchRange; + + @UInt16() + external int entrySelector; + + @UInt16() + external int rangeShift; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int unitSize, + required int nUnits, + required int searchRange, + required int entrySelector, + required int rangeShift, + }) => $allocator() + ..ref.unitSize = unitSize + ..ref.nUnits = nUnits + ..ref.searchRange = searchRange + ..ref.entrySelector = entrySelector + ..ref.rangeShift = rangeShift; +} + +final class SFNTLookupFormatSpecificHeader extends ffi.Union { + external SFNTLookupArrayHeader theArray; + + external SFNTLookupSegmentHeader segment; + + external SFNTLookupSingleHeader single; + + external SFNTLookupTrimmedArrayHeader trimmedArray; + + external SFNTLookupVectorHeader vector; +} + +typedef SFNTLookupKind = UInt32; +typedef SFNTLookupOffset = UInt16; + +final class SFNTLookupSegment extends ffi.Struct { + @UInt16() + external int lastGlyph; + + @UInt16() + external int firstGlyph; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +final class SFNTLookupSegmentHeader extends ffi.Struct { + external SFNTLookupBinarySearchHeader binSearch; + + @ffi.Array.multi([1]) + external ffi.Array segments; +} + +final class SFNTLookupSingle extends ffi.Struct { + @UInt16() + external int glyph; + + @ffi.Array.multi([1]) + external ffi.Array value; +} + +final class SFNTLookupSingleHeader extends ffi.Struct { + external SFNTLookupBinarySearchHeader binSearch; + + @ffi.Array.multi([1]) + external ffi.Array entries; +} + +final class SFNTLookupTable extends ffi.Struct { + @SFNTLookupTableFormat() + external int format; + + external SFNTLookupFormatSpecificHeader fsHeader; +} + +typedef SFNTLookupTableFormat = UInt16; +typedef SFNTLookupTableHandle = ffi.Pointer; +typedef SFNTLookupTablePtr = ffi.Pointer; + +final class SFNTLookupTrimmedArrayHeader extends ffi.Struct { + @UInt16() + external int firstGlyph; + + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array valueArray; +} + +typedef SFNTLookupValue = UInt16; + +final class SFNTLookupVectorHeader extends ffi.Struct { + @UInt16() + external int valueSize; + + @UInt16() + external int firstGlyph; + + @UInt16() + external int count; + + @ffi.Array.multi([1]) + external ffi.Array values; +} + +typedef SInt = ffi.Int; +typedef DartSInt = int; +typedef SInt16 = ffi.Short; +typedef DartSInt16 = int; +typedef SInt32 = ffi.Int; +typedef DartSInt32 = int; +typedef SInt64 = ffi.LongLong; +typedef DartSInt64 = int; +typedef SInt8 = ffi.SignedChar; +typedef DartSInt8 = int; +typedef SKDocumentID = CFIndex; + +enum SKDocumentIndexState { + kSKDocumentStateNotIndexed(0), + kSKDocumentStateIndexed(1), + kSKDocumentStateAddPending(2), + kSKDocumentStateDeletePending(3); + + final int value; + const SKDocumentIndexState(this.value); + + static SKDocumentIndexState fromValue(int value) => switch (value) { + 0 => kSKDocumentStateNotIndexed, + 1 => kSKDocumentStateIndexed, + 2 => kSKDocumentStateAddPending, + 3 => kSKDocumentStateDeletePending, + _ => throw ArgumentError('Unknown value for SKDocumentIndexState: $value'), + }; +} + +typedef SKDocumentRef = CFTypeRef; +typedef SKIndexDocumentIteratorRef = ffi.Pointer<__SKIndexDocumentIterator>; +typedef SKIndexRef = ffi.Pointer<__SKIndex>; + +enum SKIndexType { + kSKIndexUnknown(0), + kSKIndexInverted(1), + kSKIndexVector(2), + kSKIndexInvertedVector(3); + + final int value; + const SKIndexType(this.value); + + static SKIndexType fromValue(int value) => switch (value) { + 0 => kSKIndexUnknown, + 1 => kSKIndexInverted, + 2 => kSKIndexVector, + 3 => kSKIndexInvertedVector, + _ => throw ArgumentError('Unknown value for SKIndexType: $value'), + }; +} + +typedef SKSearchGroupRef = ffi.Pointer<__SKSearchGroup>; +typedef SKSearchOptions = UInt32; +typedef SKSearchRef = ffi.Pointer<__SKSearch>; +typedef SKSearchResultsFilterCallBack = + ffi.Pointer< + ffi.NativeFunction< + Boolean Function( + SKIndexRef inIndex, + SKDocumentRef inDocument, + ffi.Pointer inContext, + ) + > + >; +typedef SKSearchResultsRef = ffi.Pointer<__SKSearchResults>; + +enum SKSearchType { + kSKSearchRanked(0), + kSKSearchBooleanRanked(1), + kSKSearchRequiredRanked(2), + kSKSearchPrefixRanked(3); + + final int value; + const SKSearchType(this.value); + + static SKSearchType fromValue(int value) => switch (value) { + 0 => kSKSearchRanked, + 1 => kSKSearchBooleanRanked, + 2 => kSKSearchRequiredRanked, + 3 => kSKSearchPrefixRanked, + _ => throw ArgumentError('Unknown value for SKSearchType: $value'), + }; +} + +typedef SKSummaryRef = ffi.Pointer<__SKSummary>; + +final class SMPTETime extends ffi.Struct { + @SInt16() + external int mSubframes; + + @SInt16() + external int mSubframeDivisor; + + @UInt32() + external int mCounter; + + @UInt32() + external int mTypeAsInt; + + SMPTETimeType get mType => SMPTETimeType.fromValue(mTypeAsInt); + set mType(SMPTETimeType value) => mTypeAsInt = value.value; + + @UInt32() + external int mFlags; + + @SInt16() + external int mHours; + + @SInt16() + external int mMinutes; + + @SInt16() + external int mSeconds; + + @SInt16() + external int mFrames; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mSubframes, + required int mSubframeDivisor, + required int mCounter, + required SMPTETimeType mType, + required int mFlags, + required int mHours, + required int mMinutes, + required int mSeconds, + required int mFrames, + }) => $allocator() + ..ref.mSubframes = mSubframes + ..ref.mSubframeDivisor = mSubframeDivisor + ..ref.mCounter = mCounter + ..ref.mType = mType + ..ref.mFlags = mFlags + ..ref.mHours = mHours + ..ref.mMinutes = mMinutes + ..ref.mSeconds = mSeconds + ..ref.mFrames = mFrames; +} + +sealed class SMPTETimeFlags { + static const kSMPTETimeUnknown = 0; + static const kSMPTETimeValid = 1; + static const kSMPTETimeRunning = 2; +} + +enum SMPTETimeType { + kSMPTETimeType24(0), + kSMPTETimeType25(1), + kSMPTETimeType30Drop(2), + kSMPTETimeType30(3), + kSMPTETimeType2997(4), + kSMPTETimeType2997Drop(5), + kSMPTETimeType60(6), + kSMPTETimeType5994(7), + kSMPTETimeType60Drop(8), + kSMPTETimeType5994Drop(9), + kSMPTETimeType50(10), + kSMPTETimeType2398(11); + + final int value; + const SMPTETimeType(this.value); + + static SMPTETimeType fromValue(int value) => switch (value) { + 0 => kSMPTETimeType24, + 1 => kSMPTETimeType25, + 2 => kSMPTETimeType30Drop, + 3 => kSMPTETimeType30, + 4 => kSMPTETimeType2997, + 5 => kSMPTETimeType2997Drop, + 6 => kSMPTETimeType60, + 7 => kSMPTETimeType5994, + 8 => kSMPTETimeType60Drop, + 9 => kSMPTETimeType5994Drop, + 10 => kSMPTETimeType50, + 11 => kSMPTETimeType2398, + _ => throw ArgumentError('Unknown value for SMPTETimeType: $value'), + }; +} + +typedef SRefCon = ffi.Pointer; + +enum SSLAuthenticate { + kNeverAuthenticate(0), + kAlwaysAuthenticate(1), + kTryAuthenticate(2); + + final int value; + const SSLAuthenticate(this.value); + + static SSLAuthenticate fromValue(int value) => switch (value) { + 0 => kNeverAuthenticate, + 1 => kAlwaysAuthenticate, + 2 => kTryAuthenticate, + _ => throw ArgumentError('Unknown value for SSLAuthenticate: $value'), + }; +} + +typedef SSLCipherSuite = ffi.Uint16; +typedef DartSSLCipherSuite = int; + +enum SSLCiphersuiteGroup { + kSSLCiphersuiteGroupDefault(0), + kSSLCiphersuiteGroupCompatibility(1), + kSSLCiphersuiteGroupLegacy(2), + kSSLCiphersuiteGroupATS(3), + kSSLCiphersuiteGroupATSCompatibility(4); + + final int value; + const SSLCiphersuiteGroup(this.value); + + static SSLCiphersuiteGroup fromValue(int value) => switch (value) { + 0 => kSSLCiphersuiteGroupDefault, + 1 => kSSLCiphersuiteGroupCompatibility, + 2 => kSSLCiphersuiteGroupLegacy, + 3 => kSSLCiphersuiteGroupATS, + 4 => kSSLCiphersuiteGroupATSCompatibility, + _ => throw ArgumentError('Unknown value for SSLCiphersuiteGroup: $value'), + }; +} + +enum SSLClientCertificateState { + kSSLClientCertNone(0), + kSSLClientCertRequested(1), + kSSLClientCertSent(2), + kSSLClientCertRejected(3); + + final int value; + const SSLClientCertificateState(this.value); + + static SSLClientCertificateState fromValue(int value) => switch (value) { + 0 => kSSLClientCertNone, + 1 => kSSLClientCertRequested, + 2 => kSSLClientCertSent, + 3 => kSSLClientCertRejected, + _ => throw ArgumentError( + 'Unknown value for SSLClientCertificateState: $value', + ), + }; +} + +typedef SSLConnectionRef = ffi.Pointer; + +enum SSLConnectionType { + kSSLStreamType(0), + kSSLDatagramType(1); + + final int value; + const SSLConnectionType(this.value); + + static SSLConnectionType fromValue(int value) => switch (value) { + 0 => kSSLStreamType, + 1 => kSSLDatagramType, + _ => throw ArgumentError('Unknown value for SSLConnectionType: $value'), + }; +} + +final class SSLContext extends ffi.Opaque {} + +typedef SSLContextRef = ffi.Pointer; + +enum SSLProtocol { + kSSLProtocolUnknown(0), + kTLSProtocol1(4), + kTLSProtocol11(7), + kTLSProtocol12(8), + kDTLSProtocol1(9), + kTLSProtocol13(10), + kDTLSProtocol12(11), + kTLSProtocolMaxSupported(999), + kSSLProtocol2(1), + kSSLProtocol3(2), + kSSLProtocol3Only(3), + kTLSProtocol1Only(5), + kSSLProtocolAll(6); + + final int value; + const SSLProtocol(this.value); + + static SSLProtocol fromValue(int value) => switch (value) { + 0 => kSSLProtocolUnknown, + 4 => kTLSProtocol1, + 7 => kTLSProtocol11, + 8 => kTLSProtocol12, + 9 => kDTLSProtocol1, + 10 => kTLSProtocol13, + 11 => kDTLSProtocol12, + 999 => kTLSProtocolMaxSupported, + 1 => kSSLProtocol2, + 2 => kSSLProtocol3, + 3 => kSSLProtocol3Only, + 5 => kTLSProtocol1Only, + 6 => kSSLProtocolAll, + _ => throw ArgumentError('Unknown value for SSLProtocol: $value'), + }; +} + +enum SSLProtocolSide { + kSSLServerSide(0), + kSSLClientSide(1); + + final int value; + const SSLProtocolSide(this.value); + + static SSLProtocolSide fromValue(int value) => switch (value) { + 0 => kSSLServerSide, + 1 => kSSLClientSide, + _ => throw ArgumentError('Unknown value for SSLProtocolSide: $value'), + }; +} + +typedef SSLReadFunc = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ) + > + >; + +enum SSLSessionOption { + kSSLSessionOptionBreakOnServerAuth(0), + kSSLSessionOptionBreakOnCertRequested(1), + kSSLSessionOptionBreakOnClientAuth(2), + kSSLSessionOptionFalseStart(3), + kSSLSessionOptionSendOneByteRecord(4), + kSSLSessionOptionAllowServerIdentityChange(5), + kSSLSessionOptionFallback(6), + kSSLSessionOptionBreakOnClientHello(7), + kSSLSessionOptionAllowRenegotiation(8), + kSSLSessionOptionEnableSessionTickets(9); + + final int value; + const SSLSessionOption(this.value); + + static SSLSessionOption fromValue(int value) => switch (value) { + 0 => kSSLSessionOptionBreakOnServerAuth, + 1 => kSSLSessionOptionBreakOnCertRequested, + 2 => kSSLSessionOptionBreakOnClientAuth, + 3 => kSSLSessionOptionFalseStart, + 4 => kSSLSessionOptionSendOneByteRecord, + 5 => kSSLSessionOptionAllowServerIdentityChange, + 6 => kSSLSessionOptionFallback, + 7 => kSSLSessionOptionBreakOnClientHello, + 8 => kSSLSessionOptionAllowRenegotiation, + 9 => kSSLSessionOptionEnableSessionTickets, + _ => throw ArgumentError('Unknown value for SSLSessionOption: $value'), + }; +} + +enum SSLSessionState { + kSSLIdle(0), + kSSLHandshake(1), + kSSLConnected(2), + kSSLClosed(3), + kSSLAborted(4); + + final int value; + const SSLSessionState(this.value); + + static SSLSessionState fromValue(int value) => switch (value) { + 0 => kSSLIdle, + 1 => kSSLHandshake, + 2 => kSSLConnected, + 3 => kSSLClosed, + 4 => kSSLAborted, + _ => throw ArgumentError('Unknown value for SSLSessionState: $value'), + }; +} + +typedef SSLWriteFunc = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + SSLConnectionRef connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ) + > + >; + +const int SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 17; + +const int SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; + +const int SSL_DHE_DSS_WITH_DES_CBC_SHA = 18; + +const int SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 20; + +const int SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; + +const int SSL_DHE_RSA_WITH_DES_CBC_SHA = 21; + +const int SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 11; + +const int SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; + +const int SSL_DH_DSS_WITH_DES_CBC_SHA = 12; + +const int SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 14; + +const int SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; + +const int SSL_DH_RSA_WITH_DES_CBC_SHA = 15; + +const int SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA = 25; + +const int SSL_DH_anon_EXPORT_WITH_RC4_40_MD5 = 23; + +const int SSL_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; + +const int SSL_DH_anon_WITH_DES_CBC_SHA = 26; + +const int SSL_DH_anon_WITH_RC4_128_MD5 = 24; + +const int SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA = 29; + +const int SSL_FORTEZZA_DMS_WITH_NULL_SHA = 28; + +const int SSL_NO_SUCH_CIPHERSUITE = -1; + +const int SSL_NULL_WITH_NULL_NULL = 0; + +const int SSL_RSA_EXPORT_WITH_DES40_CBC_SHA = 8; + +const int SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 6; + +const int SSL_RSA_EXPORT_WITH_RC4_40_MD5 = 3; + +const int SSL_RSA_WITH_3DES_EDE_CBC_MD5 = -125; + +const int SSL_RSA_WITH_3DES_EDE_CBC_SHA = 10; + +const int SSL_RSA_WITH_DES_CBC_MD5 = -126; + +const int SSL_RSA_WITH_DES_CBC_SHA = 9; + +const int SSL_RSA_WITH_IDEA_CBC_MD5 = -127; + +const int SSL_RSA_WITH_IDEA_CBC_SHA = 7; + +const int SSL_RSA_WITH_NULL_MD5 = 1; + +const int SSL_RSA_WITH_NULL_SHA = 2; + +const int SSL_RSA_WITH_RC2_CBC_MD5 = -128; + +const int SSL_RSA_WITH_RC4_128_MD5 = 4; + +const int SSL_RSA_WITH_RC4_128_SHA = 5; + +typedef STClass = UInt8; + +final class STClassTable extends ffi.Struct { + @UInt16() + external int firstGlyph; + + @UInt16() + external int nGlyphs; + + @ffi.Array.multi([1]) + external ffi.Array classes; +} + +typedef STEntryIndex = UInt8; + +final class STEntryOne extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int offset1; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int offset1, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.offset1 = offset1; +} + +final class STEntryTwo extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int offset1; + + @UInt16() + external int offset2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int offset1, + required int offset2, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.offset1 = offset1 + ..ref.offset2 = offset2; +} + +final class STEntryZero extends ffi.Struct { + @UInt16() + external int newState; + + @UInt16() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags; +} + +final class STHeader extends ffi.Struct { + @UInt8() + external int filler; + + @STClass() + external int nClasses; + + @UInt16() + external int classTableOffset; + + @UInt16() + external int stateArrayOffset; + + @UInt16() + external int entryTableOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int filler, + required int nClasses, + required int classTableOffset, + required int stateArrayOffset, + required int entryTableOffset, + }) => $allocator() + ..ref.filler = filler + ..ref.nClasses = nClasses + ..ref.classTableOffset = classTableOffset + ..ref.stateArrayOffset = stateArrayOffset + ..ref.entryTableOffset = entryTableOffset; +} + +typedef STXClass = UInt16; +typedef STXClassTable = SFNTLookupTable; +typedef STXEntryIndex = UInt16; + +final class STXEntryOne extends ffi.Struct { + @STXStateIndex() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int index1; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int index1, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.index1 = index1; +} + +final class STXEntryTwo extends ffi.Struct { + @STXStateIndex() + external int newState; + + @UInt16() + external int flags; + + @UInt16() + external int index1; + + @UInt16() + external int index2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + required int index1, + required int index2, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags + ..ref.index1 = index1 + ..ref.index2 = index2; +} + +final class STXEntryZero extends ffi.Struct { + @STXStateIndex() + external int newState; + + @UInt16() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int newState, + required int flags, + }) => $allocator() + ..ref.newState = newState + ..ref.flags = flags; +} + +@ffi.Packed(2) +final class STXHeader extends ffi.Struct { + @UInt32() + external int nClasses; + + @UInt32() + external int classTableOffset; + + @UInt32() + external int stateArrayOffset; + + @UInt32() + external int entryTableOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nClasses, + required int classTableOffset, + required int stateArrayOffset, + required int entryTableOffset, + }) => $allocator() + ..ref.nClasses = nClasses + ..ref.classTableOffset = classTableOffset + ..ref.stateArrayOffset = stateArrayOffset + ..ref.entryTableOffset = entryTableOffset; +} + +typedef STXStateIndex = UInt16; + +@ffi.Packed(2) +final class SchedulerInfoRec extends ffi.Struct { + @UInt32() + external int InfoRecSize; + + @ThreadID() + external int CurrentThreadID; + + @ThreadID() + external int SuggestedThreadID; + + @ThreadID() + external int InterruptedCoopThreadID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int InfoRecSize, + required int CurrentThreadID, + required int SuggestedThreadID, + required int InterruptedCoopThreadID, + }) => $allocator() + ..ref.InfoRecSize = InfoRecSize + ..ref.CurrentThreadID = CurrentThreadID + ..ref.SuggestedThreadID = SuggestedThreadID + ..ref.InterruptedCoopThreadID = InterruptedCoopThreadID; +} + +typedef SchedulerInfoRecPtr = ffi.Pointer; +typedef ScriptCode = SInt16; + +@ffi.Packed(2) +final class ScriptCodeRun extends ffi.Struct { + @ByteOffset() + external int offset; + + @ScriptCode() + external int script; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int script, + }) => $allocator() + ..ref.offset = offset + ..ref.script = script; +} + +typedef ScriptCodeRunPtr = ffi.Pointer; +typedef ScriptTokenType = ffi.Short; +typedef DartScriptTokenType = int; +typedef SecACLRef = ffi.Pointer<__SecACL>; + +sealed class SecAccessControlCreateFlags { + static const kSecAccessControlUserPresence = 1; + static const kSecAccessControlBiometryAny = 2; + static const kSecAccessControlTouchIDAny = 2; + static const kSecAccessControlBiometryCurrentSet = 8; + static const kSecAccessControlTouchIDCurrentSet = 8; + static const kSecAccessControlDevicePasscode = 16; + static const kSecAccessControlWatch = 32; + static const kSecAccessControlCompanion = 32; + static const kSecAccessControlOr = 16384; + static const kSecAccessControlAnd = 32768; + static const kSecAccessControlPrivateKeyUsage = 1073741824; + static const kSecAccessControlApplicationPassword = 2147483648; +} + +typedef SecAccessControlRef = ffi.Pointer<__SecAccessControl>; +typedef SecAccessOwnerType = UInt32; +typedef SecAccessRef = ffi.Pointer<__SecAccess>; + +@Deprecated('SecAsn1 is not supported') +final class SecAsn1AlgId extends ffi.Struct { + external SecAsn1Oid algorithm; + + external SecAsn1Item parameters; +} + +typedef SecAsn1Item = cssm_data; +typedef SecAsn1Oid = cssm_data; + +@Deprecated('SecAsn1 is not supported') +final class SecAsn1PubKeyInfo extends ffi.Struct { + external SecAsn1AlgId algorithm; + + external SecAsn1Item subjectPublicKey; +} + +typedef SecAsn1Template = SecAsn1Template_struct; +typedef SecAsn1TemplateChooser = + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg, + Boolean enc, + ffi.Pointer buf, + ffi.Size len, + ffi.Pointer dest, + ) + >; +typedef SecAsn1TemplateChooserPtr = ffi.Pointer; + +final class SecAsn1Template_struct extends ffi.Struct { + @ffi.Uint32() + external int kind; + + @ffi.Uint32() + external int offset; + + external ffi.Pointer sub; + + @ffi.Uint32() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int kind, + required int offset, + required ffi.Pointer sub, + required int size, + }) => $allocator() + ..ref.kind = kind + ..ref.offset = offset + ..ref.sub = sub + ..ref.size = size; +} + +enum SecAuthenticationType { + kSecAuthenticationTypeNTLM(1835824238), + kSecAuthenticationTypeMSN(1634628461), + kSecAuthenticationTypeDPA(1633775716), + kSecAuthenticationTypeRPA(1633775730), + kSecAuthenticationTypeHTTPBasic(1886680168), + kSecAuthenticationTypeHTTPDigest(1685353576), + kSecAuthenticationTypeHTMLForm(1836216166), + kSecAuthenticationTypeDefault(1953261156), + kSecAuthenticationTypeAny(0); + + final int value; + const SecAuthenticationType(this.value); + + static SecAuthenticationType fromValue(int value) => switch (value) { + 1835824238 => kSecAuthenticationTypeNTLM, + 1634628461 => kSecAuthenticationTypeMSN, + 1633775716 => kSecAuthenticationTypeDPA, + 1633775730 => kSecAuthenticationTypeRPA, + 1886680168 => kSecAuthenticationTypeHTTPBasic, + 1685353576 => kSecAuthenticationTypeHTTPDigest, + 1836216166 => kSecAuthenticationTypeHTMLForm, + 1953261156 => kSecAuthenticationTypeDefault, + 0 => kSecAuthenticationTypeAny, + _ => throw ArgumentError('Unknown value for SecAuthenticationType: $value'), + }; +} + +enum SecCSDigestAlgorithm { + kSecCodeSignatureNoHash(0), + kSecCodeSignatureHashSHA1(1), + kSecCodeSignatureHashSHA256(2), + kSecCodeSignatureHashSHA256Truncated(3), + kSecCodeSignatureHashSHA384(4), + kSecCodeSignatureHashSHA512(5); + + final int value; + const SecCSDigestAlgorithm(this.value); + + static SecCSDigestAlgorithm fromValue(int value) => switch (value) { + 0 => kSecCodeSignatureNoHash, + 1 => kSecCodeSignatureHashSHA1, + 2 => kSecCodeSignatureHashSHA256, + 3 => kSecCodeSignatureHashSHA256Truncated, + 4 => kSecCodeSignatureHashSHA384, + 5 => kSecCodeSignatureHashSHA512, + _ => throw ArgumentError('Unknown value for SecCSDigestAlgorithm: $value'), + }; +} + +sealed class SecCSFlags { + static const kSecCSDefaultFlags = 0; + static const kSecCSConsiderExpiration = -2147483648; + static const kSecCSEnforceRevocationChecks = 1073741824; + static const kSecCSNoNetworkAccess = 536870912; + static const kSecCSReportProgress = 268435456; + static const kSecCSCheckTrustedAnchors = 134217728; + static const kSecCSQuickCheck = 67108864; + static const kSecCSApplyEmbeddedPolicy = 33554432; + static const kSecCSStripDisallowedXattrs = 16777216; + static const kSecCSMatchGuestRequirementInKernel = 8388608; +} + +typedef SecCertificateRef = ffi.Pointer<__SecCertificate>; +typedef SecCodeRef = ffi.Pointer<__SecCode>; + +sealed class SecCodeSignatureFlags { + static const kSecCodeSignatureHost = 1; + static const kSecCodeSignatureAdhoc = 2; + static const kSecCodeSignatureForceHard = 256; + static const kSecCodeSignatureForceKill = 512; + static const kSecCodeSignatureForceExpiration = 1024; + static const kSecCodeSignatureRestrict = 2048; + static const kSecCodeSignatureEnforcement = 4096; + static const kSecCodeSignatureLibraryValidation = 8192; + static const kSecCodeSignatureRuntime = 65536; + static const kSecCodeSignatureLinkerSigned = 131072; +} + +sealed class SecCodeStatus { + static const kSecCodeStatusValid = 1; + static const kSecCodeStatusHard = 256; + static const kSecCodeStatusKill = 512; + static const kSecCodeStatusDebugged = 268435456; + static const kSecCodeStatusPlatform = 67108864; +} + +@Deprecated('No longer supported') +enum SecCredentialType { + kSecCredentialTypeDefault(0), + kSecCredentialTypeWithUI(1), + kSecCredentialTypeNoUI(2); + + final int value; + const SecCredentialType(this.value); + + static SecCredentialType fromValue(int value) => switch (value) { + 0 => kSecCredentialTypeDefault, + 1 => kSecCredentialTypeWithUI, + 2 => kSecCredentialTypeNoUI, + _ => throw ArgumentError('Unknown value for SecCredentialType: $value'), + }; +} + +enum SecExternalFormat { + kSecFormatUnknown(0), + kSecFormatOpenSSL(1), + kSecFormatSSH(2), + kSecFormatBSAFE(3), + kSecFormatRawKey(4), + kSecFormatWrappedPKCS8(5), + kSecFormatWrappedOpenSSL(6), + kSecFormatWrappedSSH(7), + kSecFormatWrappedLSH(8), + kSecFormatX509Cert(9), + kSecFormatPEMSequence(10), + kSecFormatPKCS7(11), + kSecFormatPKCS12(12), + kSecFormatNetscapeCertSequence(13), + kSecFormatSSHv2(14); + + final int value; + const SecExternalFormat(this.value); + + static SecExternalFormat fromValue(int value) => switch (value) { + 0 => kSecFormatUnknown, + 1 => kSecFormatOpenSSL, + 2 => kSecFormatSSH, + 3 => kSecFormatBSAFE, + 4 => kSecFormatRawKey, + 5 => kSecFormatWrappedPKCS8, + 6 => kSecFormatWrappedOpenSSL, + 7 => kSecFormatWrappedSSH, + 8 => kSecFormatWrappedLSH, + 9 => kSecFormatX509Cert, + 10 => kSecFormatPEMSequence, + 11 => kSecFormatPKCS7, + 12 => kSecFormatPKCS12, + 13 => kSecFormatNetscapeCertSequence, + 14 => kSecFormatSSHv2, + _ => throw ArgumentError('Unknown value for SecExternalFormat: $value'), + }; +} + +enum SecExternalItemType { + kSecItemTypeUnknown(0), + kSecItemTypePrivateKey(1), + kSecItemTypePublicKey(2), + kSecItemTypeSessionKey(3), + kSecItemTypeCertificate(4), + kSecItemTypeAggregate(5); + + final int value; + const SecExternalItemType(this.value); + + static SecExternalItemType fromValue(int value) => switch (value) { + 0 => kSecItemTypeUnknown, + 1 => kSecItemTypePrivateKey, + 2 => kSecItemTypePublicKey, + 3 => kSecItemTypeSessionKey, + 4 => kSecItemTypeCertificate, + 5 => kSecItemTypeAggregate, + _ => throw ArgumentError('Unknown value for SecExternalItemType: $value'), + }; +} + +typedef SecGroupTransformRef = CFTypeRef; +typedef SecGuestRef = u_int32_t; +typedef SecIdentityRef = ffi.Pointer<__SecIdentity>; +typedef SecIdentitySearchRef = ffi.Pointer; + +enum SecItemAttr { + kSecCreationDateItemAttr(1667522932), + kSecModDateItemAttr(1835295092), + kSecDescriptionItemAttr(1684370275), + kSecCommentItemAttr(1768123764), + kSecCreatorItemAttr(1668445298), + kSecTypeItemAttr(1954115685), + kSecScriptCodeItemAttr(1935897200), + kSecLabelItemAttr(1818321516), + kSecInvisibleItemAttr(1768846953), + kSecNegativeItemAttr(1852139361), + kSecCustomIconItemAttr(1668641641), + kSecAccountItemAttr(1633903476), + kSecServiceItemAttr(1937138533), + kSecGenericItemAttr(1734700641), + kSecSecurityDomainItemAttr(1935961454), + kSecServerItemAttr(1936881266), + kSecAuthenticationTypeItemAttr(1635023216), + kSecPortItemAttr(1886351988), + kSecPathItemAttr(1885434984), + kSecVolumeItemAttr(1986817381), + kSecAddressItemAttr(1633969266), + kSecSignatureItemAttr(1936943463), + kSecProtocolItemAttr(1886675820), + kSecCertificateType(1668577648), + kSecCertificateEncoding(1667591779), + kSecCrlType(1668445296), + kSecCrlEncoding(1668443747), + kSecAlias(1634494835); + + final int value; + const SecItemAttr(this.value); + + static SecItemAttr fromValue(int value) => switch (value) { + 1667522932 => kSecCreationDateItemAttr, + 1835295092 => kSecModDateItemAttr, + 1684370275 => kSecDescriptionItemAttr, + 1768123764 => kSecCommentItemAttr, + 1668445298 => kSecCreatorItemAttr, + 1954115685 => kSecTypeItemAttr, + 1935897200 => kSecScriptCodeItemAttr, + 1818321516 => kSecLabelItemAttr, + 1768846953 => kSecInvisibleItemAttr, + 1852139361 => kSecNegativeItemAttr, + 1668641641 => kSecCustomIconItemAttr, + 1633903476 => kSecAccountItemAttr, + 1937138533 => kSecServiceItemAttr, + 1734700641 => kSecGenericItemAttr, + 1935961454 => kSecSecurityDomainItemAttr, + 1936881266 => kSecServerItemAttr, + 1635023216 => kSecAuthenticationTypeItemAttr, + 1886351988 => kSecPortItemAttr, + 1885434984 => kSecPathItemAttr, + 1986817381 => kSecVolumeItemAttr, + 1633969266 => kSecAddressItemAttr, + 1936943463 => kSecSignatureItemAttr, + 1886675820 => kSecProtocolItemAttr, + 1668577648 => kSecCertificateType, + 1667591779 => kSecCertificateEncoding, + 1668445296 => kSecCrlType, + 1668443747 => kSecCrlEncoding, + 1634494835 => kSecAlias, + _ => throw ArgumentError('Unknown value for SecItemAttr: $value'), + }; +} + +enum SecItemClass { + kSecInternetPasswordItemClass(1768842612), + kSecGenericPasswordItemClass(1734700656), + kSecAppleSharePasswordItemClass(1634953328), + kSecCertificateItemClass(-2147479552), + kSecPublicKeyItemClass(15), + kSecPrivateKeyItemClass(16), + kSecSymmetricKeyItemClass(17); + + final int value; + const SecItemClass(this.value); + + static SecItemClass fromValue(int value) => switch (value) { + 1768842612 => kSecInternetPasswordItemClass, + 1734700656 => kSecGenericPasswordItemClass, + 1634953328 => kSecAppleSharePasswordItemClass, + -2147479552 => kSecCertificateItemClass, + 15 => kSecPublicKeyItemClass, + 16 => kSecPrivateKeyItemClass, + 17 => kSecSymmetricKeyItemClass, + _ => throw ArgumentError('Unknown value for SecItemClass: $value'), + }; +} + +sealed class SecItemImportExportFlags { + static const kSecItemPemArmour = 1; +} + +final class SecItemImportExportKeyParameters extends ffi.Struct { + @ffi.Uint32() + external int version; + + @ffi.Uint32() + external int flags; + + external CFTypeRef passphrase; + + external CFStringRef alertTitle; + + external CFStringRef alertPrompt; + + external SecAccessRef accessRef; + + external CFArrayRef keyUsage; + + external CFArrayRef keyAttributes; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int flags, + required CFTypeRef passphrase, + required CFStringRef alertTitle, + required CFStringRef alertPrompt, + required SecAccessRef accessRef, + required CFArrayRef keyUsage, + required CFArrayRef keyAttributes, + }) => $allocator() + ..ref.version = version + ..ref.flags = flags + ..ref.passphrase = passphrase + ..ref.alertTitle = alertTitle + ..ref.alertPrompt = alertPrompt + ..ref.accessRef = accessRef + ..ref.keyUsage = keyUsage + ..ref.keyAttributes = keyAttributes; +} + +typedef SecKeyAlgorithm = CFStringRef; +typedef SecKeyGeneratePairBlock = ffi.Pointer; +typedef DartSecKeyGeneratePairBlock = + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecKey>, + ffi.Pointer<__SecKey>, + ffi.Pointer<__CFError>, + ) + >; + +sealed class SecKeyImportExportFlags { + static const kSecKeyImportOnlyOne = 1; + static const kSecKeySecurePassphrase = 2; + static const kSecKeyNoAccessControl = 4; +} + +final class SecKeyImportExportParameters extends ffi.Struct { + @ffi.Uint32() + external int version; + + @ffi.Uint32() + external int flags; + + external CFTypeRef passphrase; + + external CFStringRef alertTitle; + + external CFStringRef alertPrompt; + + external SecAccessRef accessRef; + + @CSSM_KEYUSE() + external int keyUsage; + + @CSSM_KEYATTR_FLAGS() + external int keyAttributes; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int flags, + required CFTypeRef passphrase, + required CFStringRef alertTitle, + required CFStringRef alertPrompt, + required SecAccessRef accessRef, + required int keyUsage, + required int keyAttributes, + }) => $allocator() + ..ref.version = version + ..ref.flags = flags + ..ref.passphrase = passphrase + ..ref.alertTitle = alertTitle + ..ref.alertPrompt = alertPrompt + ..ref.accessRef = accessRef + ..ref.keyUsage = keyUsage + ..ref.keyAttributes = keyAttributes; +} + +typedef SecKeyKeyExchangeParameter = CFStringRef; + +enum SecKeyOperationType { + kSecKeyOperationTypeSign(0), + kSecKeyOperationTypeVerify(1), + kSecKeyOperationTypeEncrypt(2), + kSecKeyOperationTypeDecrypt(3), + kSecKeyOperationTypeKeyExchange(4); + + final int value; + const SecKeyOperationType(this.value); + + static SecKeyOperationType fromValue(int value) => switch (value) { + 0 => kSecKeyOperationTypeSign, + 1 => kSecKeyOperationTypeVerify, + 2 => kSecKeyOperationTypeEncrypt, + 3 => kSecKeyOperationTypeDecrypt, + 4 => kSecKeyOperationTypeKeyExchange, + _ => throw ArgumentError('Unknown value for SecKeyOperationType: $value'), + }; +} + +typedef SecKeyRef = ffi.Pointer<__SecKey>; + +@Deprecated('No longer supported') +enum SecKeySizes { + kSecDefaultKeySize(0), + kSec3DES192(192), + kSecAES128(128), + kSecAES256(256), + kSecp384r1(384), + kSecp521r1(521), + kSecRSAMin(1024), + kSecRSAMax(4096); + + static const kSecAES192 = kSec3DES192; + static const kSecp192r1 = kSec3DES192; + static const kSecp256r1 = kSecAES256; + + final int value; + const SecKeySizes(this.value); + + static SecKeySizes fromValue(int value) => switch (value) { + 0 => kSecDefaultKeySize, + 192 => kSec3DES192, + 128 => kSecAES128, + 256 => kSecAES256, + 384 => kSecp384r1, + 521 => kSecp521r1, + 1024 => kSecRSAMin, + 4096 => kSecRSAMax, + _ => throw ArgumentError('Unknown value for SecKeySizes: $value'), + }; + + @override + String toString() { + if (this == kSec3DES192) + return "SecKeySizes.kSec3DES192, SecKeySizes.kSecAES192, SecKeySizes.kSecp192r1"; + if (this == kSecAES256) + return "SecKeySizes.kSecAES256, SecKeySizes.kSecp256r1"; + return super.toString(); + } +} + +sealed class SecKeyUsage { + static const kSecKeyUsageUnspecified = 0; + static const kSecKeyUsageDigitalSignature = 1; + static const kSecKeyUsageNonRepudiation = 2; + static const kSecKeyUsageContentCommitment = 2; + static const kSecKeyUsageKeyEncipherment = 4; + static const kSecKeyUsageDataEncipherment = 8; + static const kSecKeyUsageKeyAgreement = 16; + static const kSecKeyUsageKeyCertSign = 32; + static const kSecKeyUsageCRLSign = 64; + static const kSecKeyUsageEncipherOnly = 128; + static const kSecKeyUsageDecipherOnly = 256; + static const kSecKeyUsageCritical = -2147483648; + static const kSecKeyUsageAll = 2147483647; +} + +typedef SecKeychainAttrType = OSType; + +final class SecKeychainAttribute extends ffi.Struct { + @SecKeychainAttrType() + external int tag; + + @UInt32() + external int length; + + external ffi.Pointer data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tag, + required int length, + required ffi.Pointer data, + }) => $allocator() + ..ref.tag = tag + ..ref.length = length + ..ref.data = data; +} + +final class SecKeychainAttributeInfo extends ffi.Struct { + @UInt32() + external int count; + + external ffi.Pointer tag; + + external ffi.Pointer format; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required ffi.Pointer tag, + required ffi.Pointer format, + }) => $allocator() + ..ref.count = count + ..ref.tag = tag + ..ref.format = format; +} + +final class SecKeychainAttributeList extends ffi.Struct { + @UInt32() + external int count; + + external ffi.Pointer attr; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required ffi.Pointer attr, + }) => $allocator() + ..ref.count = count + ..ref.attr = attr; +} + +typedef SecKeychainAttributePtr = ffi.Pointer; +typedef SecKeychainCallback = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + UInt32 keychainEvent, + ffi.Pointer info, + ffi.Pointer context, + ) + > + >; + +final class SecKeychainCallbackInfo extends ffi.Struct { + @UInt32() + external int version; + + external SecKeychainItemRef item; + + external SecKeychainRef keychain; + + @pid_t() + external int pid; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required SecKeychainItemRef item, + required SecKeychainRef keychain, + required int pid, + }) => $allocator() + ..ref.version = version + ..ref.item = item + ..ref.keychain = keychain + ..ref.pid = pid; +} + +enum SecKeychainEvent { + kSecLockEvent(1), + kSecUnlockEvent(2), + kSecAddEvent(3), + kSecDeleteEvent(4), + kSecUpdateEvent(5), + kSecPasswordChangedEvent(6), + kSecDefaultChangedEvent(9), + kSecDataAccessEvent(10), + kSecKeychainListChangedEvent(11), + kSecTrustSettingsChangedEvent(12); + + final int value; + const SecKeychainEvent(this.value); + + static SecKeychainEvent fromValue(int value) => switch (value) { + 1 => kSecLockEvent, + 2 => kSecUnlockEvent, + 3 => kSecAddEvent, + 4 => kSecDeleteEvent, + 5 => kSecUpdateEvent, + 6 => kSecPasswordChangedEvent, + 9 => kSecDefaultChangedEvent, + 10 => kSecDataAccessEvent, + 11 => kSecKeychainListChangedEvent, + 12 => kSecTrustSettingsChangedEvent, + _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), + }; +} + +sealed class SecKeychainEventMask { + static const kSecLockEventMask = 2; + static const kSecUnlockEventMask = 4; + static const kSecAddEventMask = 8; + static const kSecDeleteEventMask = 16; + static const kSecUpdateEventMask = 32; + static const kSecPasswordChangedEventMask = 64; + static const kSecDefaultChangedEventMask = 512; + static const kSecDataAccessEventMask = 1024; + static const kSecKeychainListChangedMask = 2048; + static const kSecTrustSettingsChangedEventMask = 4096; + static const kSecEveryEventMask = -1; +} + +typedef SecKeychainItemRef = ffi.Pointer<__SecKeychainItem>; + +sealed class SecKeychainPromptSelector { + static const kSecKeychainPromptRequirePassphase = 1; + static const kSecKeychainPromptUnsigned = 16; + static const kSecKeychainPromptUnsignedAct = 32; + static const kSecKeychainPromptInvalid = 64; + static const kSecKeychainPromptInvalidAct = 128; +} + +typedef SecKeychainRef = ffi.Pointer<__SecKeychain>; +typedef SecKeychainSearchRef = ffi.Pointer<__SecKeychainSearch>; + +final class SecKeychainSettings extends ffi.Struct { + @UInt32() + external int version; + + @Boolean() + external int lockOnSleep; + + @Boolean() + external int useLockInterval; + + @UInt32() + external int lockInterval; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int lockOnSleep, + required int useLockInterval, + required int lockInterval, + }) => $allocator() + ..ref.version = version + ..ref.lockOnSleep = lockOnSleep + ..ref.useLockInterval = useLockInterval + ..ref.lockInterval = lockInterval; +} + +typedef SecKeychainStatus = UInt32; +typedef SecMessageBlock = ffi.Pointer; +typedef DartSecMessageBlock = + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer<__CFError>, + ffi.UnsignedChar, + ) + >; + +@Deprecated('Replaced with SecKeyAlgorithm') +sealed class SecPadding { + static const kSecPaddingNone = 0; + static const kSecPaddingPKCS1 = 1; + static const kSecPaddingOAEP = 2; + static const kSecPaddingSigRaw = 16384; + static const kSecPaddingPKCS1MD2 = 32768; + static const kSecPaddingPKCS1MD5 = 32769; + static const kSecPaddingPKCS1SHA1 = 32770; + static const kSecPaddingPKCS1SHA224 = 32771; + static const kSecPaddingPKCS1SHA256 = 32772; + static const kSecPaddingPKCS1SHA384 = 32773; + static const kSecPaddingPKCS1SHA512 = 32774; +} + +typedef SecPasswordRef = ffi.Pointer<__SecPassword>; +typedef SecPolicyRef = ffi.Pointer<__SecPolicy>; +typedef SecPolicySearchRef = ffi.Pointer; + +enum SecPreferencesDomain { + kSecPreferencesDomainUser(0), + kSecPreferencesDomainSystem(1), + kSecPreferencesDomainCommon(2), + kSecPreferencesDomainDynamic(3); + + final int value; + const SecPreferencesDomain(this.value); + + static SecPreferencesDomain fromValue(int value) => switch (value) { + 0 => kSecPreferencesDomainUser, + 1 => kSecPreferencesDomainSystem, + 2 => kSecPreferencesDomainCommon, + 3 => kSecPreferencesDomainDynamic, + _ => throw ArgumentError('Unknown value for SecPreferencesDomain: $value'), + }; +} + +enum SecProtocolType { + kSecProtocolTypeFTP(1718906912), + kSecProtocolTypeFTPAccount(1718906977), + kSecProtocolTypeHTTP(1752462448), + kSecProtocolTypeIRC(1769104160), + kSecProtocolTypeNNTP(1852732528), + kSecProtocolTypePOP3(1886351411), + kSecProtocolTypeSMTP(1936553072), + kSecProtocolTypeSOCKS(1936685088), + kSecProtocolTypeIMAP(1768776048), + kSecProtocolTypeLDAP(1818517872), + kSecProtocolTypeAppleTalk(1635019883), + kSecProtocolTypeAFP(1634103328), + kSecProtocolTypeTelnet(1952803950), + kSecProtocolTypeSSH(1936943136), + kSecProtocolTypeFTPS(1718906995), + kSecProtocolTypeHTTPS(1752461427), + kSecProtocolTypeHTTPProxy(1752461432), + kSecProtocolTypeHTTPSProxy(1752462200), + kSecProtocolTypeFTPProxy(1718907000), + kSecProtocolTypeCIFS(1667851891), + kSecProtocolTypeSMB(1936548384), + kSecProtocolTypeRTSP(1920234352), + kSecProtocolTypeRTSPProxy(1920234360), + kSecProtocolTypeDAAP(1684103536), + kSecProtocolTypeEPPC(1701867619), + kSecProtocolTypeIPP(1768976416), + kSecProtocolTypeNNTPS(1853124723), + kSecProtocolTypeLDAPS(1818521715), + kSecProtocolTypeTelnetS(1952803955), + kSecProtocolTypeIMAPS(1768779891), + kSecProtocolTypeIRCS(1769104243), + kSecProtocolTypePOP3S(1886351475), + kSecProtocolTypeCVSpserver(1668707184), + kSecProtocolTypeSVN(1937141280), + kSecProtocolTypeAny(0); + + final int value; + const SecProtocolType(this.value); + + static SecProtocolType fromValue(int value) => switch (value) { + 1718906912 => kSecProtocolTypeFTP, + 1718906977 => kSecProtocolTypeFTPAccount, + 1752462448 => kSecProtocolTypeHTTP, + 1769104160 => kSecProtocolTypeIRC, + 1852732528 => kSecProtocolTypeNNTP, + 1886351411 => kSecProtocolTypePOP3, + 1936553072 => kSecProtocolTypeSMTP, + 1936685088 => kSecProtocolTypeSOCKS, + 1768776048 => kSecProtocolTypeIMAP, + 1818517872 => kSecProtocolTypeLDAP, + 1635019883 => kSecProtocolTypeAppleTalk, + 1634103328 => kSecProtocolTypeAFP, + 1952803950 => kSecProtocolTypeTelnet, + 1936943136 => kSecProtocolTypeSSH, + 1718906995 => kSecProtocolTypeFTPS, + 1752461427 => kSecProtocolTypeHTTPS, + 1752461432 => kSecProtocolTypeHTTPProxy, + 1752462200 => kSecProtocolTypeHTTPSProxy, + 1718907000 => kSecProtocolTypeFTPProxy, + 1667851891 => kSecProtocolTypeCIFS, + 1936548384 => kSecProtocolTypeSMB, + 1920234352 => kSecProtocolTypeRTSP, + 1920234360 => kSecProtocolTypeRTSPProxy, + 1684103536 => kSecProtocolTypeDAAP, + 1701867619 => kSecProtocolTypeEPPC, + 1768976416 => kSecProtocolTypeIPP, + 1853124723 => kSecProtocolTypeNNTPS, + 1818521715 => kSecProtocolTypeLDAPS, + 1952803955 => kSecProtocolTypeTelnetS, + 1768779891 => kSecProtocolTypeIMAPS, + 1769104243 => kSecProtocolTypeIRCS, + 1886351475 => kSecProtocolTypePOP3S, + 1668707184 => kSecProtocolTypeCVSpserver, + 1937141280 => kSecProtocolTypeSVN, + 0 => kSecProtocolTypeAny, + _ => throw ArgumentError('Unknown value for SecProtocolType: $value'), + }; +} + +typedef SecRandomRef = ffi.Pointer<__SecRandom>; +typedef SecRequirementRef = ffi.Pointer<__SecRequirement>; + +enum SecRequirementType { + kSecHostRequirementType(1), + kSecGuestRequirementType(2), + kSecDesignatedRequirementType(3), + kSecLibraryRequirementType(4), + kSecPluginRequirementType(5), + kSecInvalidRequirementType(6); + + static const kSecRequirementTypeCount = kSecInvalidRequirementType; + + final int value; + const SecRequirementType(this.value); + + static SecRequirementType fromValue(int value) => switch (value) { + 1 => kSecHostRequirementType, + 2 => kSecGuestRequirementType, + 3 => kSecDesignatedRequirementType, + 4 => kSecLibraryRequirementType, + 5 => kSecPluginRequirementType, + 6 => kSecInvalidRequirementType, + _ => throw ArgumentError('Unknown value for SecRequirementType: $value'), + }; + + @override + String toString() { + if (this == kSecInvalidRequirementType) + return "SecRequirementType.kSecInvalidRequirementType, SecRequirementType.kSecRequirementTypeCount"; + return super.toString(); + } +} + +typedef SecStaticCodeRef = ffi.Pointer<__SecCode>; +typedef SecTaskRef = ffi.Pointer<__SecTask>; +typedef SecTransformActionBlock = ffi.Pointer; +typedef DartSecTransformActionBlock = + objc.ObjCBlock Function()>; +typedef SecTransformAttributeActionBlock = ffi.Pointer; +typedef DartSecTransformAttributeActionBlock = + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >; +typedef SecTransformAttributeRef = CFTypeRef; +typedef SecTransformCreateFP = + ffi.Pointer< + ffi.NativeFunction< + SecTransformInstanceBlock Function( + CFStringRef name, + SecTransformRef newTransform, + SecTransformImplementationRef ref, + ) + > + >; +typedef SecTransformDataBlock = ffi.Pointer; +typedef DartSecTransformDataBlock = + objc.ObjCBlock Function(ffi.Pointer)>; +typedef SecTransformImplementationRef = + ffi.Pointer; +typedef SecTransformInstanceBlock = ffi.Pointer; +typedef DartSecTransformInstanceBlock = + objc.ObjCBlock Function()>; + +@Deprecated('SecTransform is no longer supported') +enum SecTransformMetaAttributeType { + kSecTransformMetaAttributeValue(0), + kSecTransformMetaAttributeName(1), + kSecTransformMetaAttributeRef(2), + kSecTransformMetaAttributeRequired(3), + kSecTransformMetaAttributeRequiresOutboundConnection(4), + kSecTransformMetaAttributeDeferred(5), + kSecTransformMetaAttributeStream(6), + kSecTransformMetaAttributeCanCycle(7), + kSecTransformMetaAttributeExternalize(8), + kSecTransformMetaAttributeHasOutboundConnections(9), + kSecTransformMetaAttributeHasInboundConnection(10); + + final int value; + const SecTransformMetaAttributeType(this.value); + + static SecTransformMetaAttributeType fromValue(int value) => switch (value) { + 0 => kSecTransformMetaAttributeValue, + 1 => kSecTransformMetaAttributeName, + 2 => kSecTransformMetaAttributeRef, + 3 => kSecTransformMetaAttributeRequired, + 4 => kSecTransformMetaAttributeRequiresOutboundConnection, + 5 => kSecTransformMetaAttributeDeferred, + 6 => kSecTransformMetaAttributeStream, + 7 => kSecTransformMetaAttributeCanCycle, + 8 => kSecTransformMetaAttributeExternalize, + 9 => kSecTransformMetaAttributeHasOutboundConnections, + 10 => kSecTransformMetaAttributeHasInboundConnection, + _ => throw ArgumentError( + 'Unknown value for SecTransformMetaAttributeType: $value', + ), + }; +} + +typedef SecTransformRef = CFTypeRef; +typedef SecTransformStringOrAttributeRef = CFTypeRef; +typedef SecTrustCallback = ffi.Pointer; +typedef DartSecTrustCallback = + objc.ObjCBlock, ffi.Uint32)>; + +sealed class SecTrustOptionFlags { + static const kSecTrustOptionAllowExpired = 1; + static const kSecTrustOptionLeafIsCA = 2; + static const kSecTrustOptionFetchIssuerFromNet = 4; + static const kSecTrustOptionAllowExpiredRoot = 8; + static const kSecTrustOptionRequireRevPerCert = 16; + static const kSecTrustOptionUseTrustSettings = 32; + static const kSecTrustOptionImplicitAnchors = 64; +} + +typedef SecTrustRef = ffi.Pointer<__SecTrust>; + +enum SecTrustResultType { + kSecTrustResultInvalid(0), + kSecTrustResultProceed(1), + kSecTrustResultConfirm(2), + kSecTrustResultDeny(3), + kSecTrustResultUnspecified(4), + kSecTrustResultRecoverableTrustFailure(5), + kSecTrustResultFatalTrustFailure(6), + kSecTrustResultOtherError(7); + + final int value; + const SecTrustResultType(this.value); + + static SecTrustResultType fromValue(int value) => switch (value) { + 0 => kSecTrustResultInvalid, + 1 => kSecTrustResultProceed, + 2 => kSecTrustResultConfirm, + 3 => kSecTrustResultDeny, + 4 => kSecTrustResultUnspecified, + 5 => kSecTrustResultRecoverableTrustFailure, + 6 => kSecTrustResultFatalTrustFailure, + 7 => kSecTrustResultOtherError, + _ => throw ArgumentError('Unknown value for SecTrustResultType: $value'), + }; +} + +enum SecTrustSettingsDomain { + kSecTrustSettingsDomainUser(0), + kSecTrustSettingsDomainAdmin(1), + kSecTrustSettingsDomainSystem(2); + + final int value; + const SecTrustSettingsDomain(this.value); + + static SecTrustSettingsDomain fromValue(int value) => switch (value) { + 0 => kSecTrustSettingsDomainUser, + 1 => kSecTrustSettingsDomainAdmin, + 2 => kSecTrustSettingsDomainSystem, + _ => throw ArgumentError( + 'Unknown value for SecTrustSettingsDomain: $value', + ), + }; +} + +sealed class SecTrustSettingsKeyUsage { + static const kSecTrustSettingsKeyUseSignature = 1; + static const kSecTrustSettingsKeyUseEnDecryptData = 2; + static const kSecTrustSettingsKeyUseEnDecryptKey = 4; + static const kSecTrustSettingsKeyUseSignCert = 8; + static const kSecTrustSettingsKeyUseSignRevocation = 16; + static const kSecTrustSettingsKeyUseKeyExchange = 32; + static const kSecTrustSettingsKeyUseAny = -1; +} + +enum SecTrustSettingsResult { + kSecTrustSettingsResultInvalid(0), + kSecTrustSettingsResultTrustRoot(1), + kSecTrustSettingsResultTrustAsRoot(2), + kSecTrustSettingsResultDeny(3), + kSecTrustSettingsResultUnspecified(4); + + final int value; + const SecTrustSettingsResult(this.value); + + static SecTrustSettingsResult fromValue(int value) => switch (value) { + 0 => kSecTrustSettingsResultInvalid, + 1 => kSecTrustSettingsResultTrustRoot, + 2 => kSecTrustSettingsResultTrustAsRoot, + 3 => kSecTrustSettingsResultDeny, + 4 => kSecTrustSettingsResultUnspecified, + _ => throw ArgumentError( + 'Unknown value for SecTrustSettingsResult: $value', + ), + }; +} + +typedef SecTrustWithErrorCallback = ffi.Pointer; +typedef DartSecTrustWithErrorCallback = + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer<__SecTrust>, + ffi.Bool, + ffi.Pointer<__CFError>, + ) + >; +typedef SecTrustedApplicationRef = ffi.Pointer<__SecTrustedApplication>; +typedef SecuritySessionId = UInt32; +typedef SelectorFunctionProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSErr Function(OSType selector, ffi.Pointer response) + > + >; +typedef SelectorFunctionUPP = SelectorFunctionProcPtr; + +sealed class SessionAttributeBits { + static const sessionIsRoot = 1; + static const sessionHasGraphicAccess = 16; + static const sessionHasTTY = 32; + static const sessionIsRemote = 4096; +} + +sealed class SessionCreationFlags { + static const sessionKeepCurrentBootstrap = 32768; +} + +typedef ShortFixed = ffi.Short; +typedef DartShortFixed = int; +typedef ShortFixedPtr = ffi.Pointer; +typedef SignedByte = SInt8; +typedef Size = ffi.Long; +typedef DartSize = int; + +@ffi.Packed(2) +final class SizeResourceRec extends ffi.Struct { + @UInt16() + external int flags; + + @UInt32() + external int preferredHeapSize; + + @UInt32() + external int minimumHeapSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + required int preferredHeapSize, + required int minimumHeapSize, + }) => $allocator() + ..ref.flags = flags + ..ref.preferredHeapSize = preferredHeapSize + ..ref.minimumHeapSize = minimumHeapSize; +} + +typedef SizeResourceRecHandle = ffi.Pointer; +typedef SizeResourceRecPtr = ffi.Pointer; +typedef SleepQProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Long message, SleepQRecPtr qRecPtr) + > + >; + +@ffi.Packed(2) +final class SleepQRec extends ffi.Struct { + external SleepQRecPtr sleepQLink; + + @ffi.Short() + external int sleepQType$1; + + external SleepQUPP sleepQProc; + + @ffi.Short() + external int sleepQFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required SleepQRecPtr sleepQLink, + required int sleepQType$1, + required SleepQUPP sleepQProc, + required int sleepQFlags, + }) => $allocator() + ..ref.sleepQLink = sleepQLink + ..ref.sleepQType$1 = sleepQType$1 + ..ref.sleepQProc = sleepQProc + ..ref.sleepQFlags = sleepQFlags; +} + +typedef SleepQRecPtr = ffi.Pointer; +typedef SleepQUPP = SleepQProcPtr; + +const int SlpTypeErr = -5; + +@ffi.Packed(2) +final class SoundDataChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @UInt32() + external int offset; + + @UInt32() + external int blockSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ckID, + required int ckSize, + required int offset, + required int blockSize, + }) => $allocator() + ..ref.ckID = ckID + ..ref.ckSize = ckSize + ..ref.offset = offset + ..ref.blockSize = blockSize; +} + +typedef SoundDataChunkPtr = ffi.Pointer; + +const int SoundDataID = 1397968452; + +typedef SpeechChannel = ffi.Pointer; + +@ffi.Packed(2) +final class SpeechChannelRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef SpeechDoneProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef SpeechDoneUPP = SpeechDoneProcPtr; +typedef SpeechErrorCFProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + CFErrorRef theError, + ) + > + >; + +@ffi.Packed(2) +final class SpeechErrorInfo extends ffi.Struct { + @SInt16() + external int count; + + @OSErr() + external int oldest; + + @ffi.Long() + external int oldPos; + + @OSErr() + external int newest; + + @ffi.Long() + external int newPos; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required int oldest, + required int oldPos, + required int newest, + required int newPos, + }) => $allocator() + ..ref.count = count + ..ref.oldest = oldest + ..ref.oldPos = oldPos + ..ref.newest = newest + ..ref.newPos = newPos; +} + +typedef SpeechErrorProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + OSErr theError, + ffi.Long bytePos, + ) + > + >; +typedef SpeechErrorUPP = SpeechErrorProcPtr; +typedef SpeechPhonemeProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + SInt16 phonemeOpcode, + ) + > + >; +typedef SpeechPhonemeUPP = SpeechPhonemeProcPtr; + +@ffi.Packed(2) +final class SpeechStatusInfo extends ffi.Struct { + @Boolean() + external int outputBusy; + + @Boolean() + external int outputPaused; + + @ffi.Long() + external int inputBytesLeft; + + @SInt16() + external int phonemeCode; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int outputBusy, + required int outputPaused, + required int inputBytesLeft, + required int phonemeCode, + }) => $allocator() + ..ref.outputBusy = outputBusy + ..ref.outputPaused = outputPaused + ..ref.inputBytesLeft = inputBytesLeft + ..ref.phonemeCode = phonemeCode; +} + +typedef SpeechSyncProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + OSType syncMessage, + ) + > + >; +typedef SpeechSyncUPP = SpeechSyncProcPtr; +typedef SpeechTextDoneProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + ffi.Pointer> nextBuf, + ffi.Pointer byteLen, + ffi.Pointer controlFlags, + ) + > + >; +typedef SpeechTextDoneUPP = SpeechTextDoneProcPtr; + +@ffi.Packed(2) +final class SpeechVersionInfo extends ffi.Struct { + @OSType() + external int synthType; + + @OSType() + external int synthSubType; + + @OSType() + external int synthManufacturer; + + @SInt32() + external int synthFlags; + + external NumVersion synthVersion; +} + +typedef SpeechWordCFProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + CFStringRef aString, + CFRange wordRange, + ) + > + >; +typedef SpeechWordProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + SpeechChannel chan, + SRefCon refCon, + ffi.UnsignedLong wordPos, + UInt16 wordLen, + ) + > + >; +typedef SpeechWordUPP = SpeechWordProcPtr; + +@ffi.Packed(2) +final class SpeechXtndData extends ffi.Struct { + @OSType() + external int synthCreator; + + @ffi.Array.multi([2]) + external ffi.Array synthData; +} + +typedef String2DateStatus = StringToDateStatus; +typedef StringHandle = ffi.Pointer; +typedef StringPtr = ffi.Pointer; +typedef StringToDateStatus = ffi.Short; +typedef DartStringToDateStatus = int; +typedef Style = ffi.UnsignedChar; +typedef DartStyle = int; +typedef StyleField = Style; +typedef StyleParameter = ffi.Short; +typedef DartStyleParameter = int; + +@ffi.Packed(2) +final class StyleTable extends ffi.Struct { + @SInt16() + external int fontClass; + + @SInt32() + external int offset; + + @SInt32() + external int reserved; + + @ffi.Array.multi([48]) + external ffi.Array indexes; +} + +typedef SysPPtr = ffi.Pointer; + +final class TECBufferContextRec extends ffi.Struct { + external ConstTextPtr textInputBuffer; + + external ConstTextPtr textInputBufferEnd; + + external TextPtr textOutputBuffer; + + external TextPtr textOutputBufferEnd; + + external ConstTextEncodingRunPtr encodingInputBuffer; + + external ConstTextEncodingRunPtr encodingInputBufferEnd; + + external TextEncodingRunPtr encodingOutputBuffer; + + external TextEncodingRunPtr encodingOutputBufferEnd; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ConstTextPtr textInputBuffer, + required ConstTextPtr textInputBufferEnd, + required TextPtr textOutputBuffer, + required TextPtr textOutputBufferEnd, + required ConstTextEncodingRunPtr encodingInputBuffer, + required ConstTextEncodingRunPtr encodingInputBufferEnd, + required TextEncodingRunPtr encodingOutputBuffer, + required TextEncodingRunPtr encodingOutputBufferEnd, + }) => $allocator() + ..ref.textInputBuffer = textInputBuffer + ..ref.textInputBufferEnd = textInputBufferEnd + ..ref.textOutputBuffer = textOutputBuffer + ..ref.textOutputBufferEnd = textOutputBufferEnd + ..ref.encodingInputBuffer = encodingInputBuffer + ..ref.encodingInputBufferEnd = encodingInputBufferEnd + ..ref.encodingOutputBuffer = encodingOutputBuffer + ..ref.encodingOutputBufferEnd = encodingOutputBufferEnd; +} + +@ffi.Packed(2) +final class TECConversionInfo extends ffi.Struct { + @TextEncoding() + external int sourceEncoding; + + @TextEncoding() + external int destinationEncoding; + + @UInt16() + external int reserved1; + + @UInt16() + external int reserved2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sourceEncoding, + required int destinationEncoding, + required int reserved1, + required int reserved2, + }) => $allocator() + ..ref.sourceEncoding = sourceEncoding + ..ref.destinationEncoding = destinationEncoding + ..ref.reserved1 = reserved1 + ..ref.reserved2 = reserved2; +} + +final class TECConverterContextRec extends ffi.Struct { + external Ptr pluginRec; + + @TextEncoding() + external int sourceEncoding; + + @TextEncoding() + external int destEncoding; + + @UInt32() + external int reserved1; + + @UInt32() + external int reserved2; + + external TECBufferContextRec bufferContext; + + external URefCon contextRefCon; + + external ProcPtr conversionProc; + + external ProcPtr flushProc; + + external ProcPtr clearContextInfoProc; + + @UInt32() + external int options1; + + @UInt32() + external int options2; + + external TECPluginStateRec pluginState; +} + +final class TECEncodingPairRec extends ffi.Struct { + external TextEncodingRec source; + + external TextEncodingRec dest; +} + +final class TECEncodingPairs extends ffi.Struct { + external TECEncodingPairRec encodingPair; + + @UInt32() + external int flags; + + @UInt32() + external int speed; +} + +typedef TECEncodingPairsHandle = ffi.Pointer; +typedef TECEncodingPairsPtr = ffi.Pointer; + +final class TECEncodingPairsRec extends ffi.Struct { + @UInt32() + external int count; + + external TECEncodingPairs encodingPairs; +} + +typedef TECEncodingsListHandle = ffi.Pointer; +typedef TECEncodingsListPtr = ffi.Pointer; + +final class TECEncodingsListRec extends ffi.Struct { + @UInt32() + external int count; + + external TextEncodingRec encodings; +} + +@ffi.Packed(2) +final class TECInfo extends ffi.Struct { + @UInt16() + external int format; + + @UInt16() + external int tecVersion; + + @UInt32() + external int tecTextConverterFeatures; + + @UInt32() + external int tecUnicodeConverterFeatures; + + @UInt32() + external int tecTextCommonFeatures; + + @ffi.Array.multi([32]) + external ffi.Array tecTextEncodingsFolderName; + + @ffi.Array.multi([32]) + external ffi.Array tecExtensionFileName; + + @UInt16() + external int tecLowestTEFileVersion; + + @UInt16() + external int tecHighestTEFileVersion; +} + +typedef TECInfoHandle = ffi.Pointer; +typedef TECInfoPtr = ffi.Pointer; + +final class TECInternetNameRec extends ffi.Struct { + @UInt32() + external int offset; + + external TextEncodingRec searchEncoding; + + @UInt8() + external int encodingNameLength; + + @ffi.Array.multi([1]) + external ffi.Array encodingName; +} + +typedef TECInternetNameUsageMask = UInt32; +typedef TECInternetNamesHandle = ffi.Pointer; +typedef TECInternetNamesPtr = ffi.Pointer; + +final class TECInternetNamesRec extends ffi.Struct { + @UInt32() + external int count; + + external TECInternetNameRec InternetNames; +} + +typedef TECLocaleListToEncodingListPtr = + ffi.Pointer; + +final class TECLocaleListToEncodingListRec extends ffi.Struct { + @UInt32() + external int offset; + + @UInt32() + external int count; + + @RegionCode() + external int locales; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int count, + required int locales, + }) => $allocator() + ..ref.offset = offset + ..ref.count = count + ..ref.locales = locales; +} + +typedef TECLocaleToEncodingsListHandle = + ffi.Pointer; +typedef TECLocaleToEncodingsListPtr = ffi.Pointer; + +final class TECLocaleToEncodingsListRec extends ffi.Struct { + @UInt32() + external int count; + + external TECLocaleListToEncodingListRec localeListToEncodingList; +} + +typedef TECObjectRef = ffi.Pointer; +typedef TECPluginClearContextInfoPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + TECObjectRef encodingConverter, + ffi.Pointer plugContext, + ) + > + >; +typedef TECPluginClearSnifferContextInfoPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + TECSnifferObjectRef encodingSniffer, + ffi.Pointer snifContext, + ) + > + >; +typedef TECPluginConvertTextEncodingPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + TECObjectRef encodingConverter, + ffi.Pointer plugContext, + ) + > + >; + +final class TECPluginDispatchTable extends ffi.Struct { + @TECPluginVersion() + external int version; + + @TECPluginVersion() + external int compatibleVersion; + + @TECPluginSignature() + external int PluginID; + + external TECPluginNewEncodingConverterPtr PluginNewEncodingConverter; + + external TECPluginClearContextInfoPtr PluginClearContextInfo; + + external TECPluginConvertTextEncodingPtr PluginConvertTextEncoding; + + external TECPluginFlushConversionPtr PluginFlushConversion; + + external TECPluginDisposeEncodingConverterPtr PluginDisposeEncodingConverter; + + external TECPluginNewEncodingSnifferPtr PluginNewEncodingSniffer; + + external TECPluginClearSnifferContextInfoPtr PluginClearSnifferContextInfo; + + external TECPluginSniffTextEncodingPtr PluginSniffTextEncoding; + + external TECPluginDisposeEncodingSnifferPtr PluginDisposeEncodingSniffer; + + external TECPluginGetCountAvailableTextEncodingsPtr + PluginGetCountAvailableTextEncodings; + + external TECPluginGetCountAvailableTextEncodingPairsPtr + PluginGetCountAvailableTextEncodingPairs; + + external TECPluginGetCountDestinationTextEncodingsPtr + PluginGetCountDestinationTextEncodings; + + external TECPluginGetCountSubTextEncodingsPtr PluginGetCountSubTextEncodings; + + external TECPluginGetCountAvailableSniffersPtr + PluginGetCountAvailableSniffers; + + external TECPluginGetCountWebEncodingsPtr PluginGetCountWebTextEncodings; + + external TECPluginGetCountMailEncodingsPtr PluginGetCountMailTextEncodings; + + external TECPluginGetTextEncodingInternetNamePtr + PluginGetTextEncodingInternetName; + + external TECPluginGetTextEncodingFromInternetNamePtr + PluginGetTextEncodingFromInternetName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int compatibleVersion, + required int PluginID, + required TECPluginNewEncodingConverterPtr PluginNewEncodingConverter, + required TECPluginClearContextInfoPtr PluginClearContextInfo, + required TECPluginConvertTextEncodingPtr PluginConvertTextEncoding, + required TECPluginFlushConversionPtr PluginFlushConversion, + required TECPluginDisposeEncodingConverterPtr + PluginDisposeEncodingConverter, + required TECPluginNewEncodingSnifferPtr PluginNewEncodingSniffer, + required TECPluginClearSnifferContextInfoPtr PluginClearSnifferContextInfo, + required TECPluginSniffTextEncodingPtr PluginSniffTextEncoding, + required TECPluginDisposeEncodingSnifferPtr PluginDisposeEncodingSniffer, + required TECPluginGetCountAvailableTextEncodingsPtr + PluginGetCountAvailableTextEncodings, + required TECPluginGetCountAvailableTextEncodingPairsPtr + PluginGetCountAvailableTextEncodingPairs, + required TECPluginGetCountDestinationTextEncodingsPtr + PluginGetCountDestinationTextEncodings, + required TECPluginGetCountSubTextEncodingsPtr + PluginGetCountSubTextEncodings, + required TECPluginGetCountAvailableSniffersPtr + PluginGetCountAvailableSniffers, + required TECPluginGetCountWebEncodingsPtr PluginGetCountWebTextEncodings, + required TECPluginGetCountMailEncodingsPtr PluginGetCountMailTextEncodings, + required TECPluginGetTextEncodingInternetNamePtr + PluginGetTextEncodingInternetName, + required TECPluginGetTextEncodingFromInternetNamePtr + PluginGetTextEncodingFromInternetName, + }) => $allocator() + ..ref.version = version + ..ref.compatibleVersion = compatibleVersion + ..ref.PluginID = PluginID + ..ref.PluginNewEncodingConverter = PluginNewEncodingConverter + ..ref.PluginClearContextInfo = PluginClearContextInfo + ..ref.PluginConvertTextEncoding = PluginConvertTextEncoding + ..ref.PluginFlushConversion = PluginFlushConversion + ..ref.PluginDisposeEncodingConverter = PluginDisposeEncodingConverter + ..ref.PluginNewEncodingSniffer = PluginNewEncodingSniffer + ..ref.PluginClearSnifferContextInfo = PluginClearSnifferContextInfo + ..ref.PluginSniffTextEncoding = PluginSniffTextEncoding + ..ref.PluginDisposeEncodingSniffer = PluginDisposeEncodingSniffer + ..ref.PluginGetCountAvailableTextEncodings = + PluginGetCountAvailableTextEncodings + ..ref.PluginGetCountAvailableTextEncodingPairs = + PluginGetCountAvailableTextEncodingPairs + ..ref.PluginGetCountDestinationTextEncodings = + PluginGetCountDestinationTextEncodings + ..ref.PluginGetCountSubTextEncodings = PluginGetCountSubTextEncodings + ..ref.PluginGetCountAvailableSniffers = PluginGetCountAvailableSniffers + ..ref.PluginGetCountWebTextEncodings = PluginGetCountWebTextEncodings + ..ref.PluginGetCountMailTextEncodings = PluginGetCountMailTextEncodings + ..ref.PluginGetTextEncodingInternetName = PluginGetTextEncodingInternetName + ..ref.PluginGetTextEncodingFromInternetName = + PluginGetTextEncodingFromInternetName; +} + +typedef TECPluginDisposeEncodingConverterPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + TECObjectRef newEncodingConverter, + ffi.Pointer plugContext, + ) + > + >; +typedef TECPluginDisposeEncodingSnifferPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + TECSnifferObjectRef encodingSniffer, + ffi.Pointer snifContext, + ) + > + >; +typedef TECPluginFlushConversionPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + TECObjectRef encodingConverter, + ffi.Pointer plugContext, + ) + > + >; +typedef TECPluginGetCountAvailableSniffersPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer availableEncodings, + ItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ) + > + >; +typedef TECPluginGetCountAvailableTextEncodingPairsPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer availableEncodings, + ItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ) + > + >; +typedef TECPluginGetCountAvailableTextEncodingsPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer availableEncodings, + ItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ) + > + >; +typedef TECPluginGetCountDestinationTextEncodingsPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + TextEncoding inputEncoding, + ffi.Pointer destinationEncodings, + ItemCount maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ) + > + >; +typedef TECPluginGetCountMailEncodingsPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer availableEncodings, + ItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ) + > + >; +typedef TECPluginGetCountSubTextEncodingsPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + TextEncoding inputEncoding, + ffi.Pointer subEncodings, + ItemCount maxSubEncodings, + ffi.Pointer actualSubEncodings, + ) + > + >; +typedef TECPluginGetCountWebEncodingsPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer availableEncodings, + ItemCount maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ) + > + >; +typedef TECPluginGetPluginDispatchTablePtr = + ffi.Pointer< + ffi.NativeFunction Function()> + >; +typedef TECPluginGetTextEncodingFromInternetNamePtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer textEncoding, + ConstStr255Param encodingName, + ) + > + >; +typedef TECPluginGetTextEncodingInternetNamePtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + TextEncoding textEncoding, + ffi.Pointer encodingName, + ) + > + >; +typedef TECPluginNewEncodingConverterPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, + TextEncoding inputEncoding, + TextEncoding outputEncoding, + ) + > + >; +typedef TECPluginNewEncodingSnifferPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + TextEncoding inputEncoding, + ) + > + >; +typedef TECPluginSig = OSType; +typedef TECPluginSignature = OSType; +typedef TECPluginSniffTextEncodingPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + TECSnifferObjectRef encodingSniffer, + ffi.Pointer snifContext, + ) + > + >; + +final class TECPluginStateRec extends ffi.Struct { + @UInt8() + external int state1; + + @UInt8() + external int state2; + + @UInt8() + external int state3; + + @UInt8() + external int state4; + + @UInt32() + external int longState1; + + @UInt32() + external int longState2; + + @UInt32() + external int longState3; + + @UInt32() + external int longState4; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int state1, + required int state2, + required int state3, + required int state4, + required int longState1, + required int longState2, + required int longState3, + required int longState4, + }) => $allocator() + ..ref.state1 = state1 + ..ref.state2 = state2 + ..ref.state3 = state3 + ..ref.state4 = state4 + ..ref.longState1 = longState1 + ..ref.longState2 = longState2 + ..ref.longState3 = longState3 + ..ref.longState4 = longState4; +} + +typedef TECPluginVersion = UInt32; + +final class TECSnifferContextRec extends ffi.Struct { + external Ptr pluginRec; + + @TextEncoding() + external int encoding; + + @ItemCount() + external int maxErrors; + + @ItemCount() + external int maxFeatures; + + external ConstTextPtr textInputBuffer; + + external ConstTextPtr textInputBufferEnd; + + @ItemCount() + external int numFeatures; + + @ItemCount() + external int numErrors; + + external URefCon contextRefCon; + + external ProcPtr sniffProc; + + external ProcPtr clearContextInfoProc; + + external TECPluginStateRec pluginState; +} + +typedef TECSnifferObjectRef = ffi.Pointer; + +final class TECSubTextEncodingRec extends ffi.Struct { + @UInt32() + external int offset; + + external TextEncodingRec searchEncoding; + + @UInt32() + external int count; + + external TextEncodingRec subEncodings; +} + +typedef TECSubTextEncodingsHandle = ffi.Pointer; +typedef TECSubTextEncodingsPtr = ffi.Pointer; + +final class TECSubTextEncodingsRec extends ffi.Struct { + @UInt32() + external int count; + + external TECSubTextEncodingRec subTextEncodingRec; +} + +const int TLS_AES_128_CCM_8_SHA256 = 4869; + +const int TLS_AES_128_CCM_SHA256 = 4868; + +const int TLS_AES_128_GCM_SHA256 = 4865; + +const int TLS_AES_256_GCM_SHA384 = 4866; + +const int TLS_CHACHA20_POLY1305_SHA256 = 4867; + +const int TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; + +const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 50; + +const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = 64; + +const int TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 = 162; + +const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 56; + +const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = 106; + +const int TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 = 163; + +const int TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = 143; + +const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA = 144; + +const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 = 178; + +const int TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 = 170; + +const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA = 145; + +const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 = 179; + +const int TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 = 171; + +const int TLS_DHE_PSK_WITH_NULL_SHA = 45; + +const int TLS_DHE_PSK_WITH_NULL_SHA256 = 180; + +const int TLS_DHE_PSK_WITH_NULL_SHA384 = 181; + +const int TLS_DHE_PSK_WITH_RC4_128_SHA = 142; + +const int TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; + +const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 51; + +const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 103; + +const int TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = 158; + +const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 57; + +const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 107; + +const int TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = 159; + +const int TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; + +const int TLS_DH_DSS_WITH_AES_128_CBC_SHA = 48; + +const int TLS_DH_DSS_WITH_AES_128_CBC_SHA256 = 62; + +const int TLS_DH_DSS_WITH_AES_128_GCM_SHA256 = 164; + +const int TLS_DH_DSS_WITH_AES_256_CBC_SHA = 54; + +const int TLS_DH_DSS_WITH_AES_256_CBC_SHA256 = 104; + +const int TLS_DH_DSS_WITH_AES_256_GCM_SHA384 = 165; + +const int TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; + +const int TLS_DH_RSA_WITH_AES_128_CBC_SHA = 49; + +const int TLS_DH_RSA_WITH_AES_128_CBC_SHA256 = 63; + +const int TLS_DH_RSA_WITH_AES_128_GCM_SHA256 = 160; + +const int TLS_DH_RSA_WITH_AES_256_CBC_SHA = 55; + +const int TLS_DH_RSA_WITH_AES_256_CBC_SHA256 = 105; + +const int TLS_DH_RSA_WITH_AES_256_GCM_SHA384 = 161; + +const int TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; + +const int TLS_DH_anon_WITH_AES_128_CBC_SHA = 52; + +const int TLS_DH_anon_WITH_AES_128_CBC_SHA256 = 108; + +const int TLS_DH_anon_WITH_AES_128_GCM_SHA256 = 166; + +const int TLS_DH_anon_WITH_AES_256_CBC_SHA = 58; + +const int TLS_DH_anon_WITH_AES_256_CBC_SHA256 = 109; + +const int TLS_DH_anon_WITH_AES_256_GCM_SHA384 = 167; + +const int TLS_DH_anon_WITH_RC4_128_MD5 = 24; + +const int TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = -16376; + +const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = -16375; + +const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = -16349; + +const int TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = -16341; + +const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = -16374; + +const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = -16348; + +const int TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = -16340; + +const int TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = -13143; + +const int TLS_ECDHE_ECDSA_WITH_NULL_SHA = -16378; + +const int TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = -16377; + +const int TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA = -16331; + +const int TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA = -16330; + +const int TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 = -13140; + +const int TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = -16366; + +const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = -16365; + +const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = -16345; + +const int TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = -16337; + +const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = -16364; + +const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = -16344; + +const int TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = -16336; + +const int TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = -13144; + +const int TLS_ECDHE_RSA_WITH_NULL_SHA = -16368; + +const int TLS_ECDHE_RSA_WITH_RC4_128_SHA = -16367; + +const int TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = -16381; + +const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = -16380; + +const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 = -16347; + +const int TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = -16339; + +const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = -16379; + +const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 = -16346; + +const int TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = -16338; + +const int TLS_ECDH_ECDSA_WITH_NULL_SHA = -16383; + +const int TLS_ECDH_ECDSA_WITH_RC4_128_SHA = -16382; + +const int TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = -16371; + +const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = -16370; + +const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 = -16343; + +const int TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 = -16335; + +const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = -16369; + +const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 = -16342; + +const int TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 = -16334; + +const int TLS_ECDH_RSA_WITH_NULL_SHA = -16373; + +const int TLS_ECDH_RSA_WITH_RC4_128_SHA = -16372; + +const int TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = -16361; + +const int TLS_ECDH_anon_WITH_AES_128_CBC_SHA = -16360; + +const int TLS_ECDH_anon_WITH_AES_256_CBC_SHA = -16359; + +const int TLS_ECDH_anon_WITH_NULL_SHA = -16363; + +const int TLS_ECDH_anon_WITH_RC4_128_SHA = -16362; + +const int TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 255; + +const int TLS_NULL_WITH_NULL_NULL = 0; + +const int TLS_PSK_WITH_3DES_EDE_CBC_SHA = 139; + +const int TLS_PSK_WITH_AES_128_CBC_SHA = 140; + +const int TLS_PSK_WITH_AES_128_CBC_SHA256 = 174; + +const int TLS_PSK_WITH_AES_128_GCM_SHA256 = 168; + +const int TLS_PSK_WITH_AES_256_CBC_SHA = 141; + +const int TLS_PSK_WITH_AES_256_CBC_SHA384 = 175; + +const int TLS_PSK_WITH_AES_256_GCM_SHA384 = 169; + +const int TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 = -13141; + +const int TLS_PSK_WITH_NULL_SHA = 44; + +const int TLS_PSK_WITH_NULL_SHA256 = 176; + +const int TLS_PSK_WITH_NULL_SHA384 = 177; + +const int TLS_PSK_WITH_RC4_128_SHA = 138; + +const int TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = 147; + +const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA = 148; + +const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 = 182; + +const int TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 = 172; + +const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA = 149; + +const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 = 183; + +const int TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 = 173; + +const int TLS_RSA_PSK_WITH_NULL_SHA = 46; + +const int TLS_RSA_PSK_WITH_NULL_SHA256 = 184; + +const int TLS_RSA_PSK_WITH_NULL_SHA384 = 185; + +const int TLS_RSA_PSK_WITH_RC4_128_SHA = 146; + +const int TLS_RSA_WITH_3DES_EDE_CBC_SHA = 10; + +const int TLS_RSA_WITH_AES_128_CBC_SHA = 47; + +const int TLS_RSA_WITH_AES_128_CBC_SHA256 = 60; + +const int TLS_RSA_WITH_AES_128_GCM_SHA256 = 156; + +const int TLS_RSA_WITH_AES_256_CBC_SHA = 53; + +const int TLS_RSA_WITH_AES_256_CBC_SHA256 = 61; + +const int TLS_RSA_WITH_AES_256_GCM_SHA384 = 157; + +const int TLS_RSA_WITH_NULL_MD5 = 1; + +const int TLS_RSA_WITH_NULL_SHA = 2; + +const int TLS_RSA_WITH_NULL_SHA256 = 59; + +const int TLS_RSA_WITH_RC4_128_MD5 = 4; + +const int TLS_RSA_WITH_RC4_128_SHA = 5; + +@ffi.Packed(2) +final class TMTask extends ffi.Struct { + external QElemPtr qLink; + + @ffi.Short() + external int qType; + + external TimerUPP tmAddr; + + @ffi.Long() + external int tmCount; + + @ffi.Long() + external int tmWakeUp; + + @ffi.Long() + external int tmReserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required QElemPtr qLink, + required int qType, + required TimerUPP tmAddr, + required int tmCount, + required int tmWakeUp, + required int tmReserved, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.tmAddr = tmAddr + ..ref.tmCount = tmCount + ..ref.tmWakeUp = tmWakeUp + ..ref.tmReserved = tmReserved; +} + +typedef TMTaskPtr = ffi.Pointer; + +@ffi.Packed(2) +final class TScriptingSizeResource extends ffi.Struct { + @SInt16() + external int scriptingSizeFlags; + + @UInt32() + external int minStackSize; + + @UInt32() + external int preferredStackSize; + + @UInt32() + external int maxStackSize; + + @UInt32() + external int minHeapSize; + + @UInt32() + external int preferredHeapSize; + + @UInt32() + external int maxHeapSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int scriptingSizeFlags, + required int minStackSize, + required int preferredStackSize, + required int maxStackSize, + required int minHeapSize, + required int preferredHeapSize, + required int maxHeapSize, + }) => $allocator() + ..ref.scriptingSizeFlags = scriptingSizeFlags + ..ref.minStackSize = minStackSize + ..ref.preferredStackSize = preferredStackSize + ..ref.maxStackSize = maxStackSize + ..ref.minHeapSize = minHeapSize + ..ref.preferredHeapSize = preferredHeapSize + ..ref.maxHeapSize = maxHeapSize; +} + +@ffi.Packed(2) +final class TableDirectoryRecord extends ffi.Struct { + @OSType() + external int tableSignature; + + @UInt32() + external int reserved; + + @UInt32() + external int tableStartOffset; + + @UInt32() + external int tableSize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tableSignature, + required int reserved, + required int tableStartOffset, + required int tableSize, + }) => $allocator() + ..ref.tableSignature = tableSignature + ..ref.reserved = reserved + ..ref.tableStartOffset = tableStartOffset + ..ref.tableSize = tableSize; +} + +typedef TaskProc = + ffi.Pointer< + ffi.NativeFunction parameter)> + >; +typedef TaskStorageIndex = ItemCount; +typedef TaskStorageValue = LogicalAddress; +typedef TextBreakLocatorRef = ffi.Pointer; + +@ffi.Packed(2) +final class TextChunk extends ffi.Struct { + @UInt32() + external int ckID; + + @SInt32() + external int ckSize; + + @ffi.Array.multi([1]) + external ffi.Array text; +} + +typedef TextChunkPtr = ffi.Pointer; +typedef TextEncoding = UInt32; +typedef TextEncodingBase = UInt32; +typedef TextEncodingFormat = UInt32; +typedef TextEncodingNameSelector = UInt32; + +final class TextEncodingRec extends ffi.Struct { + @UInt32() + external int base; + + @UInt32() + external int variant; + + @UInt32() + external int format; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int base, + required int variant, + required int format, + }) => $allocator() + ..ref.base = base + ..ref.variant = variant + ..ref.format = format; +} + +@ffi.Packed(2) +final class TextEncodingRun extends ffi.Struct { + @ByteOffset() + external int offset; + + @TextEncoding() + external int textEncoding; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int textEncoding, + }) => $allocator() + ..ref.offset = offset + ..ref.textEncoding = textEncoding; +} + +typedef TextEncodingRunPtr = ffi.Pointer; +typedef TextEncodingVariant = UInt32; +typedef TextPtr = ffi.Pointer; + +@ffi.Packed(2) +final class TextRange extends ffi.Struct { + @SInt32() + external int fStart; + + @SInt32() + external int fEnd; + + @SInt16() + external int fHiliteStyle; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fStart, + required int fEnd, + required int fHiliteStyle, + }) => $allocator() + ..ref.fStart = fStart + ..ref.fEnd = fEnd + ..ref.fHiliteStyle = fHiliteStyle; +} + +final class TextRangeArray extends ffi.Struct { + @SInt16() + external int fNumOfRanges; + + @ffi.Array.multi([1]) + external ffi.Array fRange; +} + +typedef TextRangeArrayHandle = ffi.Pointer; +typedef TextRangeArrayPtr = ffi.Pointer; +typedef TextRangeHandle = ffi.Pointer; +typedef TextRangePtr = ffi.Pointer; +typedef TextToUnicodeInfo = ffi.Pointer; +typedef ThreadEntryProcPtr = + ffi.Pointer< + ffi.NativeFunction threadParam)> + >; +typedef ThreadEntryTPP = ThreadEntryUPP; +typedef ThreadEntryUPP = ThreadEntryProcPtr; +typedef ThreadID = ffi.UnsignedLong; +typedef DartThreadID = int; +typedef ThreadOptions = UInt32; +typedef ThreadSchedulerProcPtr = + ffi.Pointer< + ffi.NativeFunction + >; +typedef ThreadSchedulerTPP = ThreadSchedulerUPP; +typedef ThreadSchedulerUPP = ThreadSchedulerProcPtr; +typedef ThreadState = UInt16; +typedef ThreadStyle = UInt32; +typedef ThreadSwitchProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ThreadID threadBeingSwitched, + ffi.Pointer switchProcParam, + ) + > + >; +typedef ThreadSwitchTPP = ThreadSwitchUPP; +typedef ThreadSwitchUPP = ThreadSwitchProcPtr; +typedef ThreadTaskRef = ffi.Pointer; +typedef ThreadTerminationProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ThreadID threadTerminated, + ffi.Pointer terminationProcParam, + ) + > + >; +typedef ThreadTerminationTPP = ThreadTerminationUPP; +typedef ThreadTerminationUPP = ThreadTerminationProcPtr; +typedef TimeBase = ffi.Pointer; + +final class TimeBaseRecord extends ffi.Opaque {} + +@ffi.Packed(2) +final class TimeRecord extends ffi.Struct { + external CompTimeValue value; + + @TimeScale() + external int scale; + + external TimeBase base; +} + +typedef TimeScale = SInt32; +typedef TimeValue = SInt32; +typedef TimeValue64 = SInt64; +typedef TimerProcPtr = + ffi.Pointer>; +typedef TimerUPP = TimerProcPtr; + +@ffi.Packed(2) +final class TogglePB extends ffi.Struct { + @ffi.Long() + external int togFlags; + + @ResType() + external int amChars; + + @ResType() + external int pmChars; + + @ffi.Array.multi([4]) + external ffi.Array reserved; +} + +typedef ToggleResults = SInt16; + +@Deprecated('Deprecated') +@ffi.Packed(2) +final class TokenBlock extends ffi.Struct { + external Ptr source; + + @ffi.Long() + external int sourceLength; + + external Ptr tokenList; + + @ffi.Long() + external int tokenLength; + + @ffi.Long() + external int tokenCount; + + external Ptr stringList; + + @ffi.Long() + external int stringLength; + + @ffi.Long() + external int stringCount; + + @Boolean() + external int doString; + + @Boolean() + external int doAppend; + + @Boolean() + external int doAlphanumeric; + + @Boolean() + external int doNest; + + @ffi.Array.multi([2]) + external ffi.Array leftDelims; + + @ffi.Array.multi([2]) + external ffi.Array rightDelims; + + @ffi.Array.multi([4]) + external ffi.Array leftComment; + + @ffi.Array.multi([4]) + external ffi.Array rightComment; + + @ScriptTokenType() + external int escapeCode; + + @ScriptTokenType() + external int decimalCode; + + external Handle itlResource; + + @ffi.Array.multi([8]) + external ffi.Array reserved; +} + +typedef TokenBlockPtr = ffi.Pointer; + +@Deprecated('Deprecated') +@ffi.Packed(2) +final class TokenRec extends ffi.Struct { + @ScriptTokenType() + external int theToken; + + external Ptr position; + + @ffi.Long() + external int length; + + external StringPtr stringPosition; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int theToken, + required Ptr position, + required int length, + required StringPtr stringPosition, + }) => $allocator() + ..ref.theToken = theToken + ..ref.position = position + ..ref.length = length + ..ref.stringPosition = stringPosition; +} + +typedef TokenRecPtr = ffi.Pointer; +typedef TokenResults = SInt8; + +@ffi.Packed(2) +final class TrakTable extends ffi.Struct { + @Fixed() + external int version; + + @UInt16() + external int format; + + @UInt16() + external int horizOffset; + + @UInt16() + external int vertOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int format, + required int horizOffset, + required int vertOffset, + }) => $allocator() + ..ref.version = version + ..ref.format = format + ..ref.horizOffset = horizOffset + ..ref.vertOffset = vertOffset; +} + +@ffi.Packed(2) +final class TrakTableData extends ffi.Struct { + @UInt16() + external int nTracks; + + @UInt16() + external int nSizes; + + @UInt32() + external int sizeTableOffset; + + @ffi.Array.multi([1]) + external ffi.Array trakTable; +} + +@ffi.Packed(2) +final class TrakTableEntry extends ffi.Struct { + @Fixed() + external int track; + + @UInt16() + external int nameTableIndex; + + @UInt16() + external int sizesOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int track, + required int nameTableIndex, + required int sizesOffset, + }) => $allocator() + ..ref.track = track + ..ref.nameTableIndex = nameTableIndex + ..ref.sizesOffset = sizesOffset; +} + +typedef TrakValue = SInt16; +typedef TranslationFlags = OptionBits; +typedef TranslationRef = ffi.Pointer; +typedef TruncCode = ffi.Short; +typedef DartTruncCode = int; +typedef UAZoomChangeFocusType = UInt32; +typedef UCCharPropertyType = SInt32; +typedef UCCharPropertyValue = UInt32; +typedef UCCollateOptions = UInt32; +typedef UCCollationValue = UInt32; +typedef UCKeyCharSeq = UInt16; + +@ffi.Packed(2) +final class UCKeyLayoutFeatureInfo extends ffi.Struct { + @UInt16() + external int keyLayoutFeatureInfoFormat; + + @UInt16() + external int reserved; + + @UInt32() + external int maxOutputStringLength; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int keyLayoutFeatureInfoFormat, + required int reserved, + required int maxOutputStringLength, + }) => $allocator() + ..ref.keyLayoutFeatureInfoFormat = keyLayoutFeatureInfoFormat + ..ref.reserved = reserved + ..ref.maxOutputStringLength = maxOutputStringLength; +} + +@ffi.Packed(2) +final class UCKeyModifiersToTableNum extends ffi.Struct { + @UInt16() + external int keyModifiersToTableNumFormat; + + @UInt16() + external int defaultTableNum; + + @UInt32() + external int modifiersCount; + + @ffi.Array.multi([1]) + external ffi.Array tableNum; +} + +typedef UCKeyOutput = UInt16; + +final class UCKeySequenceDataIndex extends ffi.Struct { + @UInt16() + external int keySequenceDataIndexFormat; + + @UInt16() + external int charSequenceCount; + + @ffi.Array.multi([1]) + external ffi.Array charSequenceOffsets; +} + +final class UCKeyStateEntryRange extends ffi.Struct { + @UInt16() + external int curStateStart; + + @UInt8() + external int curStateRange; + + @UInt8() + external int deltaMultiplier; + + @UCKeyCharSeq() + external int charData; + + @UInt16() + external int nextState; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int curStateStart, + required int curStateRange, + required int deltaMultiplier, + required int charData, + required int nextState, + }) => $allocator() + ..ref.curStateStart = curStateStart + ..ref.curStateRange = curStateRange + ..ref.deltaMultiplier = deltaMultiplier + ..ref.charData = charData + ..ref.nextState = nextState; +} + +final class UCKeyStateEntryTerminal extends ffi.Struct { + @UInt16() + external int curState; + + @UCKeyCharSeq() + external int charData; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int curState, + required int charData, + }) => $allocator() + ..ref.curState = curState + ..ref.charData = charData; +} + +@ffi.Packed(2) +final class UCKeyStateRecord extends ffi.Struct { + @UCKeyCharSeq() + external int stateZeroCharData; + + @UInt16() + external int stateZeroNextState; + + @UInt16() + external int stateEntryCount; + + @UInt16() + external int stateEntryFormat; + + @ffi.Array.multi([1]) + external ffi.Array stateEntryData; +} + +@ffi.Packed(2) +final class UCKeyStateRecordsIndex extends ffi.Struct { + @UInt16() + external int keyStateRecordsIndexFormat; + + @UInt16() + external int keyStateRecordCount; + + @ffi.Array.multi([1]) + external ffi.Array keyStateRecordOffsets; +} + +final class UCKeyStateTerminators extends ffi.Struct { + @UInt16() + external int keyStateTerminatorsFormat; + + @UInt16() + external int keyStateTerminatorCount; + + @ffi.Array.multi([1]) + external ffi.Array keyStateTerminators; +} + +@ffi.Packed(2) +final class UCKeyToCharTableIndex extends ffi.Struct { + @UInt16() + external int keyToCharTableIndexFormat; + + @UInt16() + external int keyToCharTableSize; + + @UInt32() + external int keyToCharTableCount; + + @ffi.Array.multi([1]) + external ffi.Array keyToCharTableOffsets; +} + +@ffi.Packed(2) +final class UCKeyboardLayout extends ffi.Struct { + @UInt16() + external int keyLayoutHeaderFormat; + + @UInt16() + external int keyLayoutDataVersion; + + @UInt32() + external int keyLayoutFeatureInfoOffset; + + @UInt32() + external int keyboardTypeCount; + + @ffi.Array.multi([1]) + external ffi.Array keyboardTypeList; +} + +@ffi.Packed(2) +final class UCKeyboardTypeHeader extends ffi.Struct { + @UInt32() + external int keyboardTypeFirst; + + @UInt32() + external int keyboardTypeLast; + + @UInt32() + external int keyModifiersToTableNumOffset; + + @UInt32() + external int keyToCharTableIndexOffset; + + @UInt32() + external int keyStateRecordsIndexOffset; + + @UInt32() + external int keyStateTerminatorsOffset; + + @UInt32() + external int keySequenceDataIndexOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int keyboardTypeFirst, + required int keyboardTypeLast, + required int keyModifiersToTableNumOffset, + required int keyToCharTableIndexOffset, + required int keyStateRecordsIndexOffset, + required int keyStateTerminatorsOffset, + required int keySequenceDataIndexOffset, + }) => $allocator() + ..ref.keyboardTypeFirst = keyboardTypeFirst + ..ref.keyboardTypeLast = keyboardTypeLast + ..ref.keyModifiersToTableNumOffset = keyModifiersToTableNumOffset + ..ref.keyToCharTableIndexOffset = keyToCharTableIndexOffset + ..ref.keyStateRecordsIndexOffset = keyStateRecordsIndexOffset + ..ref.keyStateTerminatorsOffset = keyStateTerminatorsOffset + ..ref.keySequenceDataIndexOffset = keySequenceDataIndexOffset; +} + +typedef UCTSWalkDirection = UInt16; +typedef UCTextBreakOptions = UInt32; +typedef UCTextBreakType = UInt32; +typedef UCTypeSelectCompareResult = SInt32; +typedef UCTypeSelectOptions = UInt16; +typedef UCTypeSelectRef = ffi.Pointer; +typedef UInt = ffi.UnsignedInt; +typedef DartUInt = int; +typedef UInt16 = ffi.UnsignedShort; +typedef DartUInt16 = int; +typedef UInt32 = ffi.UnsignedInt; +typedef DartUInt32 = int; +typedef UInt64 = ffi.UnsignedLongLong; +typedef DartUInt64 = int; +typedef UInt8 = ffi.UnsignedChar; +typedef DartUInt8 = int; +typedef UNDServerRef = mach_port_t; + +const int UNORDERED = 3; + +typedef URefCon = ffi.Pointer; + +@ffi.Packed(2) +final class UTCDateTime extends ffi.Struct { + @UInt16() + external int highSeconds; + + @UInt32() + external int lowSeconds; + + @UInt16() + external int fraction$1; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int highSeconds, + required int lowSeconds, + required int fraction$1, + }) => $allocator() + ..ref.highSeconds = highSeconds + ..ref.lowSeconds = lowSeconds + ..ref.fraction$1 = fraction$1; +} + +typedef UTCDateTimeHandle = ffi.Pointer; +typedef UTCDateTimePtr = ffi.Pointer; +typedef UTF16Char = UInt16; +typedef UTF32Char = UInt32; +typedef UTF8Char = UInt8; +typedef UniChar = UInt16; +typedef UniCharArrayHandle = ffi.Pointer; +typedef UniCharArrayOffset = ffi.UnsignedLong; +typedef DartUniCharArrayOffset = int; +typedef UniCharArrayPtr = ffi.Pointer; +typedef UniCharCount = ffi.UnsignedLong; +typedef DartUniCharCount = int; +typedef UniCharCountPtr = ffi.Pointer; +typedef UniCharPtr = ffi.Pointer; +typedef UnicodeMapVersion = SInt32; + +@ffi.Packed(2) +final class UnicodeMapping extends ffi.Struct { + @TextEncoding() + external int unicodeEncoding; + + @TextEncoding() + external int otherEncoding; + + @UnicodeMapVersion() + external int mappingVersion; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int unicodeEncoding, + required int otherEncoding, + required int mappingVersion, + }) => $allocator() + ..ref.unicodeEncoding = unicodeEncoding + ..ref.otherEncoding = otherEncoding + ..ref.mappingVersion = mappingVersion; +} + +typedef UnicodeMappingPtr = ffi.Pointer; +typedef UnicodeScalarValue = UInt32; +typedef UnicodeToTextFallbackProcPtr = + ffi.Pointer< + ffi.NativeFunction< + OSStatus Function( + ffi.Pointer iSrcUniStr, + ByteCount iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + TextPtr oDestStr, + ByteCount iDestStrLen, + ffi.Pointer oDestConvLen, + LogicalAddress iInfoPtr, + ConstUnicodeMappingPtr iUnicodeMappingPtr, + ) + > + >; +typedef UnicodeToTextFallbackUPP = UnicodeToTextFallbackProcPtr; +typedef UnicodeToTextInfo = ffi.Pointer; +typedef UnicodeToTextRunInfo = ffi.Pointer; +typedef UniversalProcHandle = ffi.Pointer; +typedef UniversalProcPtr = ProcPtr; + +@ffi.Packed(2) +final class UnnamedStruct extends ffi.Struct { + @UInt16() + external int what; + + @UInt32() + external int message; + + @UInt32() + external int when; + + external Point where; + + @UInt16() + external int modifiers; +} + +final class UnnamedStruct$1 extends ffi.Struct { + external ffi.Pointer opaque1; + + @ffi.Long() + external int opaque2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer opaque1, + required int opaque2, + }) => $allocator() + ..ref.opaque1 = opaque1 + ..ref.opaque2 = opaque2; +} + +final class UnnamedStruct$10 extends ffi.Struct { + @SInt32() + external int dx; + + @SInt32() + external int dy; + + @UInt8() + external int subx; + + @UInt8() + external int suby; + + @UInt8() + external int subType; + + @UInt8() + external int reserved1; + + @SInt32() + external int reserved2; + + external UnnamedUnion$12 tablet; +} + +final class UnnamedStruct$11 extends ffi.Struct { + @SInt16() + external int x; + + @SInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +final class UnnamedStruct$12 extends ffi.Struct { + @UInt16() + external int vendorID; + + @UInt16() + external int tabletID; + + @UInt16() + external int pointerID; + + @UInt16() + external int deviceID; + + @UInt16() + external int systemTabletID; + + @UInt16() + external int vendorPointerType; + + @UInt32() + external int pointerSerialNumber; + + @UInt64() + external int uniqueID; + + @UInt32() + external int capabilityMask; + + @UInt8() + external int pointerType; + + @UInt8() + external int enterProximity; + + @SInt16() + external int reserved1; + + @ffi.Array.multi([4]) + external ffi.Array reserved2; +} + +final class UnnamedStruct$13 extends ffi.Struct { + @SInt16() + external int reserved; + + @SInt16() + external int eventNum; + + @SInt32() + external int trackingNum; + + @SInt32() + external int userData; + + @SInt32() + external int reserved1; + + @SInt32() + external int reserved2; + + @SInt32() + external int reserved3; + + @SInt32() + external int reserved4; + + @SInt32() + external int reserved5; + + @ffi.Array.multi([4]) + external ffi.Array reserved6; +} + +@ffi.Packed(2) +final class UnnamedStruct$14 extends ffi.Struct { + @UInt32() + external int lLow; + + @UInt32() + external int lHigh; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lLow, + required int lHigh, + }) => $allocator() + ..ref.lLow = lLow + ..ref.lHigh = lHigh; +} + +final class UnnamedStruct$15 extends ffi.Struct { + @ffi.Short() + external int era; + + @ffi.Short() + external int year; + + @ffi.Short() + external int month; + + @ffi.Short() + external int day; + + @ffi.Short() + external int hour; + + @ffi.Short() + external int minute; + + @ffi.Short() + external int second; + + @ffi.Short() + external int dayOfWeek; + + @ffi.Short() + external int dayOfYear; + + @ffi.Short() + external int weekOfYear; + + @ffi.Short() + external int pm; + + @ffi.Short() + external int res1; + + @ffi.Short() + external int res2; + + @ffi.Short() + external int res3; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int era, + required int year, + required int month, + required int day, + required int hour, + required int minute, + required int second, + required int dayOfWeek, + required int dayOfYear, + required int weekOfYear, + required int pm, + required int res1, + required int res2, + required int res3, + }) => $allocator() + ..ref.era = era + ..ref.year = year + ..ref.month = month + ..ref.day = day + ..ref.hour = hour + ..ref.minute = minute + ..ref.second = second + ..ref.dayOfWeek = dayOfWeek + ..ref.dayOfYear = dayOfYear + ..ref.weekOfYear = weekOfYear + ..ref.pm = pm + ..ref.res1 = res1 + ..ref.res2 = res2 + ..ref.res3 = res3; +} + +final class UnnamedStruct$16 extends ffi.Struct { + @ffi.Short() + external int eraAlt; + + external DateTimeRec oldDate; +} + +final class UnnamedStruct$17 extends ffi.Struct { + @SInt16() + external int reserved; + + @SInt16() + external int subType; + + external UnnamedUnion$13 misc; +} + +final class UnnamedStruct$18 extends ffi.Struct { + @UInt8() + external int subx; + + @UInt8() + external int suby; + + @SInt16() + external int eventNum; + + @SInt32() + external int click; + + @UInt8() + external int pressure; + + @UInt8() + external int buttonNumber; + + @UInt8() + external int subType; + + @UInt8() + external int reserved2; + + @SInt32() + external int reserved3; + + external UnnamedUnion$14 tablet; +} + +final class UnnamedStruct$19 extends ffi.Struct { + @SInt16() + external int deltaAxis1; + + @SInt16() + external int deltaAxis2; + + @SInt16() + external int deltaAxis3; + + @SInt16() + external int reserved1; + + @SInt32() + external int fixedDeltaAxis1; + + @SInt32() + external int fixedDeltaAxis2; + + @SInt32() + external int fixedDeltaAxis3; + + @SInt32() + external int pointDeltaAxis1; + + @SInt32() + external int pointDeltaAxis2; + + @SInt32() + external int pointDeltaAxis3; + + @ffi.Array.multi([4]) + external ffi.Array reserved8; +} + +final class UnnamedStruct$2 extends ffi.Struct { + external ffi.Pointer opaque1; + + external ffi.Pointer opaque2; + + @ffi.Int() + external int opaque3; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer opaque1, + required ffi.Pointer opaque2, + required int opaque3, + }) => $allocator() + ..ref.opaque1 = opaque1 + ..ref.opaque2 = opaque2 + ..ref.opaque3 = opaque3; +} + +final class UnnamedStruct$20 extends ffi.Struct { + @SInt32() + external int x; + + @SInt32() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +final class UnnamedStruct$21 extends ffi.Struct { + @SInt32() + external int x; + + @SInt32() + external int y; + + @SInt32() + external int z; + + @UInt16() + external int buttons; + + @UInt16() + external int pressure; + + external UnnamedStruct$22 tilt; + + @UInt16() + external int rotation; + + @SInt16() + external int tangentialPressure; + + @UInt16() + external int deviceID; + + @SInt16() + external int vendor1; + + @SInt16() + external int vendor2; + + @SInt16() + external int vendor3; + + @ffi.Array.multi([4]) + external ffi.Array reserved; +} + +final class UnnamedStruct$22 extends ffi.Struct { + @SInt16() + external int x; + + @SInt16() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +final class UnnamedStruct$3 extends ffi.Struct { + @ffi.Array.multi([3]) + external ffi.Array pad; + + @SInt8() + external int Delta; +} + +final class UnnamedStruct$4 extends ffi.Struct { + @ffi.UnsignedChar() + external int length; + + @ffi.Array.multi([36]) + external ffi.Array text; + + @ffi.UnsignedChar() + external int unused; +} + +final class UnnamedStruct$5 extends ffi.Struct { + @ffi.Int16() + external int top; + + @ffi.Int16() + external int left; + + @ffi.Int16() + external int bottom; + + @ffi.Int16() + external int right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int top, + required int left, + required int bottom, + required int right, + }) => $allocator() + ..ref.top = top + ..ref.left = left + ..ref.bottom = bottom + ..ref.right = right; +} + +final class UnnamedStruct$6 extends ffi.Struct { + @u_int16_t() + external int v; + + @u_int16_t() + external int h; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + required int h, + }) => $allocator() + ..ref.v = v + ..ref.h = h; +} + +final class UnnamedStruct$7 extends ffi.Struct { + @ffi.Int16() + external int v; + + @ffi.Int16() + external int h; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + required int h, + }) => $allocator() + ..ref.v = v + ..ref.h = h; +} + +final class UnnamedStruct$8 extends ffi.Struct { + @ffi.Char() + external int lo; + + @ffi.Char() + external int hi; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lo, + required int hi, + }) => $allocator() + ..ref.lo = lo + ..ref.hi = hi; +} + +final class UnnamedStruct$9 extends ffi.Struct { + @UInt16() + external int origCharSet; + + @SInt16() + external int repeat; + + @UInt16() + external int charSet; + + @UInt16() + external int charCode; + + @UInt16() + external int keyCode; + + @UInt16() + external int origCharCode; + + @SInt32() + external int reserved1; + + @UInt32() + external int keyboardType; + + @SInt32() + external int reserved2; + + @SInt32() + external int reserved3; + + @SInt32() + external int reserved4; + + @ffi.Array.multi([4]) + external ffi.Array reserved5; +} + +final class UnnamedUnion extends ffi.Union { + external CSSM_LIST Sublist; + + external SecAsn1Item Word; +} + +final class UnnamedUnion$1 extends ffi.Union { + external CSSM_DATA_PTR CertList; + + external CSSM_ENCODED_CERT_PTR EncodedCertList; + + external CSSM_PARSED_CERT_PTR ParsedCertList; + + external CSSM_CERT_PAIR_PTR PairCertList; +} + +final class UnnamedUnion$10 extends ffi.Union { + external IODetailedTimingInformationV1 v1; + + external IODetailedTimingInformationV2 v2; +} + +final class UnnamedUnion$11 extends ffi.Union { + @UInt32() + external int fullHashWord; + + external PEFSplitHashWord splitHashWord; +} + +final class UnnamedUnion$12 extends ffi.Union { + external NXTabletPointData point; + + external NXTabletProximityData proximity; +} + +final class UnnamedUnion$13 extends ffi.Union { + @ffi.Array.multi([11]) + external ffi.Array F; + + @ffi.Array.multi([11]) + external ffi.Array L; + + @ffi.Array.multi([22]) + external ffi.Array S; + + @ffi.Array.multi([44]) + external ffi.Array C; +} + +final class UnnamedUnion$14 extends ffi.Union { + external NXTabletPointData point; + + external NXTabletProximityData proximity; +} + +final class UnnamedUnion$15 extends ffi.Union { + external arm_thread_state32_t ts_32; + + external arm_thread_state64_t ts_64; +} + +final class UnnamedUnion$16 extends ffi.Union { + @boolean_t() + external int is_master; + + @boolean_t() + external int is_main; +} + +final class UnnamedUnion$2 extends ffi.Union { + external CSSM_DATA_PTR CrlList; + + external CSSM_ENCODED_CRL_PTR EncodedCrlList; + + external CSSM_PARSED_CRL_PTR ParsedCrlList; + + external CSSM_CRL_PAIR_PTR PairCrlList; +} + +final class UnnamedUnion$3 extends ffi.Union { + @ffi.Long() + external int gmtDelta; + + external UnnamedStruct$3 dls; +} + +final class UnnamedUnion$4 extends ffi.Union { + @ffi.Array.multi([2]) + external ffi.Array reserved; + + @mach_port_name_t() + external int work_interval_port; + + external mach_service_port_info_t service_port_info; + + @mach_port_name_t() + external int service_port_name; +} + +final class UnnamedUnion$5 extends ffi.Union { + @ffi.Array.multi([16]) + external ffi.Array<__uint8_t> __u6_addr8; + + @ffi.Array.multi([8]) + external ffi.Array<__uint16_t> __u6_addr16; + + @ffi.Array.multi([4]) + external ffi.Array<__uint32_t> __u6_addr32; +} + +final class UnnamedUnion$6 extends ffi.Union { + @ATSGeneration() + external int generationFilter; + + @ATSFontFamilyRef() + external int fontFamilyFilter; + + external ATSFontFamilyApplierFunction fontFamilyApplierFunctionFilter; + + external ATSFontApplierFunction fontApplierFunctionFilter; +} + +final class UnnamedUnion$7 extends ffi.Union { + external CMVideoCardGammaTable table; + + external CMVideoCardGammaFormula formula; +} + +final class UnnamedUnion$8 extends ffi.Union { + external ffi.Pointer fullName; + + external CSSM_X509_RDN_PTR rdn; +} + +final class UnnamedUnion$9 extends ffi.Union { + @u_int32_t() + external int iNodeNum; + + @u_int32_t() + external int linkCount; + + @u_int32_t() + external int rawDevice; +} + +typedef UnsignedFixed = UInt32; +typedef UnsignedFixedPtr = ffi.Pointer; + +@ffi.Packed(2) +final class UnsignedWide extends ffi.Struct { + @UInt32() + external int lo; + + @UInt32() + external int hi; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lo, + required int hi, + }) => $allocator() + ..ref.lo = lo + ..ref.hi = hi; +} + +typedef UnsignedWidePtr = ffi.Pointer; + +final class UntokenTable extends ffi.Struct { + @ffi.Short() + external int len; + + @ffi.Short() + external int lastToken; + + @ffi.Array.multi([256]) + external ffi.Array index$1; +} + +typedef UntokenTableHandle = ffi.Pointer; +typedef UntokenTablePtr = ffi.Pointer; + +const int UsrActivity = 1; + +typedef VDGamRecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class VDGammaRecord extends ffi.Struct { + external Ptr csGTable; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required Ptr csGTable, + }) => $allocator()..ref.csGTable = csGTable; +} + +typedef VHSelect = SInt8; + +final class Vector128 extends ffi.Union { + @ffi.Array.multi([4]) + external ffi.Array l; + + @ffi.Array.multi([8]) + external ffi.Array s; + + @ffi.Array.multi([16]) + external ffi.Array c; +} + +final class VectorInformation extends ffi.Struct { + external ffi.Pointer __unusedVectorInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedVectorInformationField, + }) => + $allocator() + ..ref.__unusedVectorInformationField = $unusedVectorInformationField; +} + +final class VectorInformationPowerPC extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array Registers; + + external Vector128 VSCR; + + @UInt32() + external int VRsave; +} + +final class VersRec extends ffi.Struct { + external NumVersion numericVersion; + + @ffi.Short() + external int countryCode; + + @ffi.Array.multi([256]) + external ffi.Array shortVersion; + + @ffi.Array.multi([256]) + external ffi.Array reserved; +} + +typedef VersRecHndl = ffi.Pointer; +typedef VersRecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class VoiceDescription extends ffi.Struct { + @SInt32() + external int length; + + external VoiceSpec voice; + + @SInt32() + external int version; + + @ffi.Array.multi([64]) + external ffi.Array name; + + @ffi.Array.multi([256]) + external ffi.Array comment; + + @SInt16() + external int gender; + + @SInt16() + external int age; + + @SInt16() + external int script; + + @SInt16() + external int language; + + @SInt16() + external int region; + + @ffi.Array.multi([4]) + external ffi.Array reserved; +} + +final class VoiceFileInfo extends ffi.Struct { + external FSSpec fileSpec; + + @SInt16() + external int resID; +} + +@ffi.Packed(2) +final class VoiceSpec extends ffi.Struct { + @OSType() + external int creator; + + @OSType() + external int id; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int creator, + required int id, + }) => $allocator() + ..ref.creator = creator + ..ref.id = id; +} + +typedef VoiceSpecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class VolMountInfoHeader extends ffi.Struct { + @SInt16() + external int length; + + @VolumeType() + external int media; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int length, + required int media, + }) => $allocator() + ..ref.length = length + ..ref.media = media; +} + +typedef VolMountInfoPtr = ffi.Pointer; + +@ffi.Packed(2) +final class VolumeMountInfoHeader extends ffi.Struct { + @SInt16() + external int length; + + @VolumeType() + external int media; + + @SInt16() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int length, + required int media, + required int flags, + }) => $allocator() + ..ref.length = length + ..ref.media = media + ..ref.flags = flags; +} + +typedef VolumeMountInfoHeaderPtr = ffi.Pointer; +typedef VolumeType = OSType; + +const int WDEFNFnd = 87; + +@ffi.Packed(2) +final class WSClientContext extends ffi.Struct { + @CFIndex() + external int version; + + external ffi.Pointer info; + + external WSClientContextRetainCallBackProcPtr retain; + + external WSClientContextReleaseCallBackProcPtr release; + + external WSClientContextCopyDescriptionCallBackProcPtr copyDescription; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer info, + required WSClientContextRetainCallBackProcPtr retain, + required WSClientContextReleaseCallBackProcPtr release, + required WSClientContextCopyDescriptionCallBackProcPtr copyDescription, + }) => $allocator() + ..ref.version = version + ..ref.info = info + ..ref.retain = retain + ..ref.release = release + ..ref.copyDescription = copyDescription; +} + +typedef WSClientContextCopyDescriptionCallBackProcPtr = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef WSClientContextReleaseCallBackProcPtr = + ffi.Pointer< + ffi.NativeFunction info)> + >; +typedef WSClientContextRetainCallBackProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer info) + > + >; +typedef WSMethodInvocationCallBackProcPtr = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + WSMethodInvocationRef invocation, + ffi.Pointer info, + CFDictionaryRef outRef, + ) + > + >; +typedef WSMethodInvocationDeserializationProcPtr = + ffi.Pointer< + ffi.NativeFunction< + CFTypeRef Function( + WSMethodInvocationRef invocation, + CFXMLTreeRef msgRoot, + CFXMLTreeRef deserializeRoot, + ffi.Pointer info, + ) + > + >; +typedef WSMethodInvocationRef = ffi.Pointer; +typedef WSMethodInvocationSerializationProcPtr = + ffi.Pointer< + ffi.NativeFunction< + CFStringRef Function( + WSMethodInvocationRef invocation, + CFTypeRef obj, + ffi.Pointer info, + ) + > + >; +typedef WSProtocolHandlerDeserializationProcPtr = + ffi.Pointer< + ffi.NativeFunction< + CFTypeRef Function( + WSProtocolHandlerRef protocol, + CFXMLTreeRef msgRoot, + CFXMLTreeRef deserializeRoot, + ffi.Pointer info, + ) + > + >; +typedef WSProtocolHandlerRef = ffi.Pointer; +typedef WSProtocolHandlerSerializationProcPtr = + ffi.Pointer< + ffi.NativeFunction< + CFStringRef Function( + WSProtocolHandlerRef protocol, + CFTypeRef obj, + ffi.Pointer info, + ) + > + >; + +enum WSTypeID { + eWSUnknownType(0), + eWSNullType(1), + eWSBooleanType(2), + eWSIntegerType(3), + eWSDoubleType(4), + eWSStringType(5), + eWSDateType(6), + eWSDataType(7), + eWSArrayType(8), + eWSDictionaryType(9); + + final int value; + const WSTypeID(this.value); + + static WSTypeID fromValue(int value) => switch (value) { + 0 => eWSUnknownType, + 1 => eWSNullType, + 2 => eWSBooleanType, + 3 => eWSIntegerType, + 4 => eWSDoubleType, + 5 => eWSStringType, + 6 => eWSDateType, + 7 => eWSDataType, + 8 => eWSArrayType, + 9 => eWSDictionaryType, + _ => throw ArgumentError('Unknown value for WSTypeID: $value'), + }; +} + +final class WideChar extends ffi.Union { + external UnnamedStruct$8 a; + + @ffi.Short() + external int b; +} + +final class WideCharArr extends ffi.Struct { + @ffi.Short() + external int size; + + @ffi.Array.multi([10]) + external ffi.Array data; +} + +typedef WidePtr = ffi.Pointer; +typedef WindowPtr = ffi.Pointer; +typedef WindowRef = WindowPtr; + +final class WritingCode extends ffi.Struct { + @ScriptCode() + external int theScriptCode; + + @LangCode() + external int theLangCode; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int theScriptCode, + required int theLangCode, + }) => $allocator() + ..ref.theScriptCode = theScriptCode + ..ref.theLangCode = theLangCode; +} + +@ffi.Packed(2) +final class XLibContainerHeader extends ffi.Struct { + @OSType() + external int tag1; + + @OSType() + external int tag2; + + @UInt32() + external int currentFormat; + + @UInt32() + external int containerStringsOffset; + + @UInt32() + external int exportHashOffset; + + @UInt32() + external int exportKeyOffset; + + @UInt32() + external int exportSymbolOffset; + + @UInt32() + external int exportNamesOffset; + + @UInt32() + external int exportHashTablePower; + + @UInt32() + external int exportedSymbolCount; + + @UInt32() + external int fragNameOffset; + + @UInt32() + external int fragNameLength; + + @UInt32() + external int dylibPathOffset; + + @UInt32() + external int dylibPathLength; + + @OSType() + external int cpuFamily; + + @OSType() + external int cpuModel; + + @UInt32() + external int dateTimeStamp; + + @UInt32() + external int currentVersion; + + @UInt32() + external int oldDefVersion; + + @UInt32() + external int oldImpVersion; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tag1, + required int tag2, + required int currentFormat, + required int containerStringsOffset, + required int exportHashOffset, + required int exportKeyOffset, + required int exportSymbolOffset, + required int exportNamesOffset, + required int exportHashTablePower, + required int exportedSymbolCount, + required int fragNameOffset, + required int fragNameLength, + required int dylibPathOffset, + required int dylibPathLength, + required int cpuFamily, + required int cpuModel, + required int dateTimeStamp, + required int currentVersion, + required int oldDefVersion, + required int oldImpVersion, + }) => $allocator() + ..ref.tag1 = tag1 + ..ref.tag2 = tag2 + ..ref.currentFormat = currentFormat + ..ref.containerStringsOffset = containerStringsOffset + ..ref.exportHashOffset = exportHashOffset + ..ref.exportKeyOffset = exportKeyOffset + ..ref.exportSymbolOffset = exportSymbolOffset + ..ref.exportNamesOffset = exportNamesOffset + ..ref.exportHashTablePower = exportHashTablePower + ..ref.exportedSymbolCount = exportedSymbolCount + ..ref.fragNameOffset = fragNameOffset + ..ref.fragNameLength = fragNameLength + ..ref.dylibPathOffset = dylibPathOffset + ..ref.dylibPathLength = dylibPathLength + ..ref.cpuFamily = cpuFamily + ..ref.cpuModel = cpuModel + ..ref.dateTimeStamp = dateTimeStamp + ..ref.currentVersion = currentVersion + ..ref.oldDefVersion = oldDefVersion + ..ref.oldImpVersion = oldImpVersion; +} + +@ffi.Packed(2) +final class XLibExportedSymbol extends ffi.Struct { + @UInt32() + external int classAndName; + + @UInt32() + external int bpOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int classAndName, + required int bpOffset, + }) => $allocator() + ..ref.classAndName = classAndName + ..ref.bpOffset = bpOffset; +} + +typedef XLibExportedSymbolHashSlot = PEFExportedSymbolHashSlot; +typedef XLibExportedSymbolKey = PEFExportedSymbolKey; + +const int XPC_ACTIVITY_STATE_CHECK_IN = 0; + +const int XPC_ACTIVITY_STATE_CONTINUE = 4; + +const int XPC_ACTIVITY_STATE_DEFER = 3; + +const int XPC_ACTIVITY_STATE_DONE = 5; + +const int XPC_ACTIVITY_STATE_RUN = 2; + +const int XPC_ACTIVITY_STATE_WAIT = 1; + +extension type _BlockArgs_112ozxo._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_112ozxo] that points to the same underlying object as [other]. + _BlockArgs_112ozxo.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_112ozxo] that wraps the given raw object pointer. + _BlockArgs_112ozxo.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_112ozxo]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_112ozxo, + ); +} + +extension _BlockArgs_112ozxo$Methods on _BlockArgs_112ozxo { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg3); + return ObjCBlock_ffiVoid_NSInputStream.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_117e0ww._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_117e0ww] that points to the same underlying object as [other]. + _BlockArgs_117e0ww.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_117e0ww] that wraps the given raw object pointer. + _BlockArgs_117e0ww.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_117e0ww]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_117e0ww, + ); +} + +extension _BlockArgs_117e0ww$Methods on _BlockArgs_117e0ww { + objc.NSError? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_11uyayp._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_11uyayp] that points to the same underlying object as [other]. + _BlockArgs_11uyayp.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_11uyayp] that wraps the given raw object pointer. + _BlockArgs_11uyayp.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_11uyayp]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_11uyayp, + ); +} + +extension _BlockArgs_11uyayp$Methods on _BlockArgs_11uyayp { + Dartdispatch_data_t? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + int get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_121fmzs._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_121fmzs] that points to the same underlying object as [other]. + _BlockArgs_121fmzs.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_121fmzs] that wraps the given raw object pointer. + _BlockArgs_121fmzs.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_121fmzs]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_121fmzs, + ); +} + +extension _BlockArgs_121fmzs$Methods on _BlockArgs_121fmzs { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_12cm2y5._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_12cm2y5] that points to the same underlying object as [other]. + _BlockArgs_12cm2y5.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_12cm2y5] that wraps the given raw object pointer. + _BlockArgs_12cm2y5.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_12cm2y5]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_12cm2y5, + ); +} + +extension _BlockArgs_12cm2y5$Methods on _BlockArgs_12cm2y5 { + objc.ObjCBlock? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_12rv5aa._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_12rv5aa] that points to the same underlying object as [other]. + _BlockArgs_12rv5aa.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_12rv5aa] that wraps the given raw object pointer. + _BlockArgs_12rv5aa.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_12rv5aa]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_12rv5aa, + ); +} + +extension _BlockArgs_12rv5aa$Methods on _BlockArgs_12rv5aa { + SecTrustRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_arg0); + } + + SecTrustResultType get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_1hbj4cd(_$$ref.pointer, _sel_arg1); + return SecTrustResultType.fromValue($ret); + } +} + +extension type _BlockArgs_12tf05r._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_12tf05r] that points to the same underlying object as [other]. + _BlockArgs_12tf05r.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_12tf05r] that wraps the given raw object pointer. + _BlockArgs_12tf05r.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_12tf05r]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_12tf05r, + ); +} + +extension _BlockArgs_12tf05r$Methods on _BlockArgs_12tf05r { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_12ykekb._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_12ykekb] that points to the same underlying object as [other]. + _BlockArgs_12ykekb.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_12ykekb] that wraps the given raw object pointer. + _BlockArgs_12ykekb.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_12ykekb]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_12ykekb, + ); +} + +extension _BlockArgs_12ykekb$Methods on _BlockArgs_12ykekb { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + NSURLRequest get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLRequest.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_133h48c._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_133h48c] that points to the same underlying object as [other]. + _BlockArgs_133h48c.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_133h48c] that wraps the given raw object pointer. + _BlockArgs_133h48c.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_133h48c]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_133h48c, + ); +} + +extension _BlockArgs_133h48c$Methods on _BlockArgs_133h48c { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + DartNSInteger get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg2); + } + + DartNSInteger get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg3); + } + + DartNSInteger get arg4 { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg4); + } +} + +extension type _BlockArgs_136y7ma._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_136y7ma] that points to the same underlying object as [other]. + _BlockArgs_136y7ma.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_136y7ma] that wraps the given raw object pointer. + _BlockArgs_136y7ma.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_136y7ma]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_136y7ma, + ); +} + +extension _BlockArgs_136y7ma$Methods on _BlockArgs_136y7ma { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURLHandle get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_13g89k6._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_13g89k6] that points to the same underlying object as [other]. + _BlockArgs_13g89k6.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_13g89k6] that wraps the given raw object pointer. + _BlockArgs_13g89k6.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_13g89k6]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_13g89k6, + ); +} + +extension _BlockArgs_13g89k6$Methods on _BlockArgs_13g89k6 { + CFErrorRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_13o2rom._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_13o2rom] that points to the same underlying object as [other]. + _BlockArgs_13o2rom.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_13o2rom] that wraps the given raw object pointer. + _BlockArgs_13o2rom.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_13o2rom]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_13o2rom, + ); +} + +extension _BlockArgs_13o2rom$Methods on _BlockArgs_13o2rom { + NSURLCredential? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSURLCredential.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_13sb76x._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_13sb76x] that points to the same underlying object as [other]. + _BlockArgs_13sb76x.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_13sb76x] that wraps the given raw object pointer. + _BlockArgs_13sb76x.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_13sb76x]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_13sb76x, + ); +} + +extension _BlockArgs_13sb76x$Methods on _BlockArgs_13sb76x { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_140cpyj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_140cpyj] that points to the same underlying object as [other]. + _BlockArgs_140cpyj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_140cpyj] that wraps the given raw object pointer. + _BlockArgs_140cpyj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_140cpyj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_140cpyj, + ); +} + +extension _BlockArgs_140cpyj$Methods on _BlockArgs_140cpyj { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDataTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDownloadTask get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_14dahaa._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_14dahaa] that points to the same underlying object as [other]. + _BlockArgs_14dahaa.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_14dahaa] that wraps the given raw object pointer. + _BlockArgs_14dahaa.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_14dahaa]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_14dahaa, + ); +} + +extension _BlockArgs_14dahaa$Methods on _BlockArgs_14dahaa { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + objc.NSError get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_14lm7fk._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_14lm7fk] that points to the same underlying object as [other]. + _BlockArgs_14lm7fk.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_14lm7fk] that wraps the given raw object pointer. + _BlockArgs_14lm7fk.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_14lm7fk]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_14lm7fk, + ); +} + +extension _BlockArgs_14lm7fk$Methods on _BlockArgs_14lm7fk { + CFRunLoopObserverRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1bonwe(_$$ref.pointer, _sel_arg0); + } + + DartCFOptionFlags get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_vkpxx6(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_15cdu5z._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_15cdu5z] that points to the same underlying object as [other]. + _BlockArgs_15cdu5z.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_15cdu5z] that wraps the given raw object pointer. + _BlockArgs_15cdu5z.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_15cdu5z]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_15cdu5z, + ); +} + +extension _BlockArgs_15cdu5z$Methods on _BlockArgs_15cdu5z { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDataTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + NSCachedURLResponse get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSCachedURLResponse.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + return ObjCBlock_ffiVoid_NSCachedURLResponse.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_15jt9u5._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_15jt9u5] that points to the same underlying object as [other]. + _BlockArgs_15jt9u5.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_15jt9u5] that wraps the given raw object pointer. + _BlockArgs_15jt9u5.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_15jt9u5]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_15jt9u5, + ); +} + +extension _BlockArgs_15jt9u5$Methods on _BlockArgs_15jt9u5 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_15vjajw._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_15vjajw] that points to the same underlying object as [other]. + _BlockArgs_15vjajw.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_15vjajw] that wraps the given raw object pointer. + _BlockArgs_15vjajw.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_15vjajw]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_15vjajw, + ); +} + +extension _BlockArgs_15vjajw$Methods on _BlockArgs_15vjajw { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_16ix251._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_16ix251] that points to the same underlying object as [other]. + _BlockArgs_16ix251.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_16ix251] that wraps the given raw object pointer. + _BlockArgs_16ix251.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_16ix251]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_16ix251, + ); +} + +extension _BlockArgs_16ix251$Methods on _BlockArgs_16ix251 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDataTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_16t4ozp._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_16t4ozp] that points to the same underlying object as [other]. + _BlockArgs_16t4ozp.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_16t4ozp] that wraps the given raw object pointer. + _BlockArgs_16t4ozp.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_16t4ozp]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_16t4ozp, + ); +} + +extension _BlockArgs_16t4ozp$Methods on _BlockArgs_16t4ozp { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetService get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetService.fromPointer($ret, retain: true, release: true); + } + + objc.NSDictionary get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_170i760._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_170i760] that points to the same underlying object as [other]. + _BlockArgs_170i760.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_170i760] that wraps the given raw object pointer. + _BlockArgs_170i760.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_170i760]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_170i760, + ); +} + +extension _BlockArgs_170i760$Methods on _BlockArgs_170i760 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSKeyedArchiver get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCObject? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + objc.ObjCObject? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_171cldw._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_171cldw] that points to the same underlying object as [other]. + _BlockArgs_171cldw.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_171cldw] that wraps the given raw object pointer. + _BlockArgs_171cldw.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_171cldw]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_171cldw, + ); +} + +extension _BlockArgs_171cldw$Methods on _BlockArgs_171cldw { + NSURLSessionDelayedRequestDisposition get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_tyifel(_$$ref.pointer, _sel_arg0); + return NSURLSessionDelayedRequestDisposition.fromValue($ret); + } + + NSURLRequest? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : NSURLRequest.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_17jmtfx._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_17jmtfx] that points to the same underlying object as [other]. + _BlockArgs_17jmtfx.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_17jmtfx] that wraps the given raw object pointer. + _BlockArgs_17jmtfx.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_17jmtfx]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_17jmtfx, + ); +} + +extension _BlockArgs_17jmtfx$Methods on _BlockArgs_17jmtfx { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionWebSocketTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionWebSocketTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + NSURLSessionWebSocketCloseCode get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_1rhk8uh(_$$ref.pointer, _sel_arg3); + return NSURLSessionWebSocketCloseCode.fromValue($ret); + } + + objc.NSData? get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_17mefw7._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_17mefw7] that points to the same underlying object as [other]. + _BlockArgs_17mefw7.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_17mefw7] that wraps the given raw object pointer. + _BlockArgs_17mefw7.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_17mefw7]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_17mefw7, + ); +} + +extension _BlockArgs_17mefw7$Methods on _BlockArgs_17mefw7 { + CFArrayRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_odvxky(_$$ref.pointer, _sel_arg0); + } + + CFErrorRef get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_17xklgp._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_17xklgp] that points to the same underlying object as [other]. + _BlockArgs_17xklgp.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_17xklgp] that wraps the given raw object pointer. + _BlockArgs_17xklgp.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_17xklgp]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_17xklgp, + ); +} + +extension _BlockArgs_17xklgp$Methods on _BlockArgs_17xklgp { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSError get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_18kc0nv._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_18kc0nv] that points to the same underlying object as [other]. + _BlockArgs_18kc0nv.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_18kc0nv] that wraps the given raw object pointer. + _BlockArgs_18kc0nv.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_18kc0nv]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_18kc0nv, + ); +} + +extension _BlockArgs_18kc0nv$Methods on _BlockArgs_18kc0nv { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_197qivc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_197qivc] that points to the same underlying object as [other]. + _BlockArgs_197qivc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_197qivc] that wraps the given raw object pointer. + _BlockArgs_197qivc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_197qivc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_197qivc, + ); +} + +extension _BlockArgs_197qivc$Methods on _BlockArgs_197qivc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSUserActivity get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSUserActivity.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_19pyqcd._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_19pyqcd] that points to the same underlying object as [other]. + _BlockArgs_19pyqcd.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_19pyqcd] that wraps the given raw object pointer. + _BlockArgs_19pyqcd.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_19pyqcd]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_19pyqcd, + ); +} + +extension _BlockArgs_19pyqcd$Methods on _BlockArgs_19pyqcd { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + DartNSUInteger get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_19rrqmo._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_19rrqmo] that points to the same underlying object as [other]. + _BlockArgs_19rrqmo.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_19rrqmo] that wraps the given raw object pointer. + _BlockArgs_19rrqmo.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_19rrqmo]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_19rrqmo, + ); +} + +extension _BlockArgs_19rrqmo$Methods on _BlockArgs_19rrqmo { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetServiceBrowser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1ayzt6i._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ayzt6i] that points to the same underlying object as [other]. + _BlockArgs_1ayzt6i.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ayzt6i] that wraps the given raw object pointer. + _BlockArgs_1ayzt6i.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ayzt6i]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ayzt6i, + ); +} + +extension _BlockArgs_1ayzt6i$Methods on _BlockArgs_1ayzt6i { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + NSHTTPURLResponse get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSHTTPURLResponse.fromPointer($ret, retain: true, release: true); + } + + NSURLRequest get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return NSURLRequest.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg5 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg5); + return ObjCBlock_ffiVoid_NSURLRequest.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1ciefi0._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ciefi0] that points to the same underlying object as [other]. + _BlockArgs_1ciefi0.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ciefi0] that wraps the given raw object pointer. + _BlockArgs_1ciefi0.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ciefi0]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ciefi0, + ); +} + +extension _BlockArgs_1ciefi0$Methods on _BlockArgs_1ciefi0 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSKeyedArchiver get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1e1kc88._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1e1kc88] that points to the same underlying object as [other]. + _BlockArgs_1e1kc88.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1e1kc88] that wraps the given raw object pointer. + _BlockArgs_1e1kc88.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1e1kc88]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1e1kc88, + ); +} + +extension _BlockArgs_1e1kc88$Methods on _BlockArgs_1e1kc88 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSPortMessage get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSPortMessage.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1e3xl1p._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1e3xl1p] that points to the same underlying object as [other]. + _BlockArgs_1e3xl1p.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1e3xl1p] that wraps the given raw object pointer. + _BlockArgs_1e3xl1p.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1e3xl1p]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1e3xl1p, + ); +} + +extension _BlockArgs_1e3xl1p$Methods on _BlockArgs_1e3xl1p { + Dartsec_protocol_metadata_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartsec_trust_t get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartsec_protocol_verify_complete_t get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); + return ObjCBlock_ffiVoid_bool.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1ek5uoy._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ek5uoy] that points to the same underlying object as [other]. + _BlockArgs_1ek5uoy.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ek5uoy] that wraps the given raw object pointer. + _BlockArgs_1ek5uoy.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ek5uoy]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ek5uoy, + ); +} + +extension _BlockArgs_1ek5uoy$Methods on _BlockArgs_1ek5uoy { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1f64crj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1f64crj] that points to the same underlying object as [other]. + _BlockArgs_1f64crj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1f64crj] that wraps the given raw object pointer. + _BlockArgs_1f64crj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1f64crj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1f64crj, + ); +} + +extension _BlockArgs_1f64crj$Methods on _BlockArgs_1f64crj { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1fj0jrw._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1fj0jrw] that points to the same underlying object as [other]. + _BlockArgs_1fj0jrw.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1fj0jrw] that wraps the given raw object pointer. + _BlockArgs_1fj0jrw.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1fj0jrw]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1fj0jrw, + ); +} + +extension _BlockArgs_1fj0jrw$Methods on _BlockArgs_1fj0jrw { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1giidhf._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1giidhf] that points to the same underlying object as [other]. + _BlockArgs_1giidhf.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1giidhf] that wraps the given raw object pointer. + _BlockArgs_1giidhf.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1giidhf]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1giidhf, + ); +} + +extension _BlockArgs_1giidhf$Methods on _BlockArgs_1giidhf { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + AVAudioPlayer get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return AVAudioPlayer.fromPointer($ret, retain: true, release: true); + } + + bool get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_1gmgda9._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1gmgda9] that points to the same underlying object as [other]. + _BlockArgs_1gmgda9.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1gmgda9] that wraps the given raw object pointer. + _BlockArgs_1gmgda9.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1gmgda9]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1gmgda9, + ); +} + +extension _BlockArgs_1gmgda9$Methods on _BlockArgs_1gmgda9 { + NSAppleEventDescriptor? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSAppleEventDescriptor.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1hj9xku._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1hj9xku] that points to the same underlying object as [other]. + _BlockArgs_1hj9xku.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1hj9xku] that wraps the given raw object pointer. + _BlockArgs_1hj9xku.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1hj9xku]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1hj9xku, + ); +} + +extension _BlockArgs_1hj9xku$Methods on _BlockArgs_1hj9xku { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1hs0ws6._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1hs0ws6] that points to the same underlying object as [other]. + _BlockArgs_1hs0ws6.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1hs0ws6] that wraps the given raw object pointer. + _BlockArgs_1hs0ws6.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1hs0ws6]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1hs0ws6, + ); +} + +extension _BlockArgs_1hs0ws6$Methods on _BlockArgs_1hs0ws6 { + CFErrorRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg0); + } + + ffi.Pointer get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1vkunzi(_$$ref.pointer, _sel_arg1); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1wgub22(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_1hwelu._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1hwelu] that points to the same underlying object as [other]. + _BlockArgs_1hwelu.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1hwelu] that wraps the given raw object pointer. + _BlockArgs_1hwelu.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1hwelu]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1hwelu, + ); +} + +extension _BlockArgs_1hwelu$Methods on _BlockArgs_1hwelu { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLDownload get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLDownload.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1i7oea2._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1i7oea2] that points to the same underlying object as [other]. + _BlockArgs_1i7oea2.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1i7oea2] that wraps the given raw object pointer. + _BlockArgs_1i7oea2.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1i7oea2]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1i7oea2, + ); +} + +extension _BlockArgs_1i7oea2$Methods on _BlockArgs_1i7oea2 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1j32c3t._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1j32c3t] that points to the same underlying object as [other]. + _BlockArgs_1j32c3t.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1j32c3t] that wraps the given raw object pointer. + _BlockArgs_1j32c3t.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1j32c3t]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1j32c3t, + ); +} + +extension _BlockArgs_1j32c3t$Methods on _BlockArgs_1j32c3t { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSUserActivity get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSUserActivity.fromPointer($ret, retain: true, release: true); + } + + objc.NSInputStream get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + objc.NSOutputStream get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1jcra61._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1jcra61] that points to the same underlying object as [other]. + _BlockArgs_1jcra61.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1jcra61] that wraps the given raw object pointer. + _BlockArgs_1jcra61.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1jcra61]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1jcra61, + ); +} + +extension _BlockArgs_1jcra61$Methods on _BlockArgs_1jcra61 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1kowxjl._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1kowxjl] that points to the same underlying object as [other]. + _BlockArgs_1kowxjl.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1kowxjl] that wraps the given raw object pointer. + _BlockArgs_1kowxjl.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1kowxjl]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1kowxjl, + ); +} + +extension _BlockArgs_1kowxjl$Methods on _BlockArgs_1kowxjl { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSDictionary get arg5 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1l7b9ji._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1l7b9ji] that points to the same underlying object as [other]. + _BlockArgs_1l7b9ji.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1l7b9ji] that wraps the given raw object pointer. + _BlockArgs_1l7b9ji.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1l7b9ji]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1l7b9ji, + ); +} + +extension _BlockArgs_1l7b9ji$Methods on _BlockArgs_1l7b9ji { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDownloadTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + } + + int get arg4 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); + } +} + +extension type _BlockArgs_1lr5l4t._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1lr5l4t] that points to the same underlying object as [other]. + _BlockArgs_1lr5l4t.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1lr5l4t] that wraps the given raw object pointer. + _BlockArgs_1lr5l4t.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1lr5l4t]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1lr5l4t, + ); +} + +extension _BlockArgs_1lr5l4t$Methods on _BlockArgs_1lr5l4t { + CGDisplayStreamFrameStatus get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_jbzgy2(_$$ref.pointer, _sel_arg0); + return CGDisplayStreamFrameStatus.fromValue($ret); + } + + int get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_9qbz9w(_$$ref.pointer, _sel_arg1); + } + + IOSurfaceRef get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_11nrymb(_$$ref.pointer, _sel_arg2); + } + + CGDisplayStreamUpdateRef get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_16a25o7(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_1ltqoqj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ltqoqj] that points to the same underlying object as [other]. + _BlockArgs_1ltqoqj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ltqoqj] that wraps the given raw object pointer. + _BlockArgs_1ltqoqj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ltqoqj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ltqoqj, + ); +} + +extension _BlockArgs_1ltqoqj$Methods on _BlockArgs_1ltqoqj { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + DartNSUInteger get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_1mv87bk._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1mv87bk] that points to the same underlying object as [other]. + _BlockArgs_1mv87bk.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1mv87bk] that wraps the given raw object pointer. + _BlockArgs_1mv87bk.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1mv87bk]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1mv87bk, + ); +} + +extension _BlockArgs_1mv87bk$Methods on _BlockArgs_1mv87bk { + objc.NSData? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1n468bj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1n468bj] that points to the same underlying object as [other]. + _BlockArgs_1n468bj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1n468bj] that wraps the given raw object pointer. + _BlockArgs_1n468bj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1n468bj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1n468bj, + ); +} + +extension _BlockArgs_1n468bj$Methods on _BlockArgs_1n468bj { + Dartdispatch_data_t? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1n5meg5._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1n5meg5] that points to the same underlying object as [other]. + _BlockArgs_1n5meg5.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1n5meg5] that wraps the given raw object pointer. + _BlockArgs_1n5meg5.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1n5meg5]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1n5meg5, + ); +} + +extension _BlockArgs_1n5meg5$Methods on _BlockArgs_1n5meg5 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + NSHTTPURLResponse get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSHTTPURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1n6ph2._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1n6ph2] that points to the same underlying object as [other]. + _BlockArgs_1n6ph2.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1n6ph2] that wraps the given raw object pointer. + _BlockArgs_1n6ph2.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1n6ph2]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1n6ph2, + ); +} + +extension _BlockArgs_1n6ph2$Methods on _BlockArgs_1n6ph2 { + NSURLRequest? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSURLRequest.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1nn0na._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1nn0na] that points to the same underlying object as [other]. + _BlockArgs_1nn0na.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1nn0na] that wraps the given raw object pointer. + _BlockArgs_1nn0na.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1nn0na]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1nn0na, + ); +} + +extension _BlockArgs_1nn0na$Methods on _BlockArgs_1nn0na { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetServiceBrowser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + bool get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_1nq9pr6._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1nq9pr6] that points to the same underlying object as [other]. + _BlockArgs_1nq9pr6.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1nq9pr6] that wraps the given raw object pointer. + _BlockArgs_1nq9pr6.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1nq9pr6]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1nq9pr6, + ); +} + +extension _BlockArgs_1nq9pr6$Methods on _BlockArgs_1nq9pr6 { + Dartsec_protocol_metadata_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartdispatch_data_t? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartsec_protocol_pre_shared_key_selection_complete_t get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); + return ObjCBlock_ffiVoid_NSObject$1.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1o2efq5._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1o2efq5] that points to the same underlying object as [other]. + _BlockArgs_1o2efq5.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1o2efq5] that wraps the given raw object pointer. + _BlockArgs_1o2efq5.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1o2efq5]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1o2efq5, + ); +} + +extension _BlockArgs_1o2efq5$Methods on _BlockArgs_1o2efq5 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSKeyedUnarchiver get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSKeyedUnarchiver.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCObject get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.ObjCObject($ret, retain: true, release: true); + } + + objc.ObjCObject get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1o8dtl._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1o8dtl] that points to the same underlying object as [other]. + _BlockArgs_1o8dtl.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1o8dtl] that wraps the given raw object pointer. + _BlockArgs_1o8dtl.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1o8dtl]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1o8dtl, + ); +} + +extension _BlockArgs_1o8dtl$Methods on _BlockArgs_1o8dtl { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLCredential get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLCredential.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1odc9lb._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1odc9lb] that points to the same underlying object as [other]. + _BlockArgs_1odc9lb.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1odc9lb] that wraps the given raw object pointer. + _BlockArgs_1odc9lb.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1odc9lb]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1odc9lb, + ); +} + +extension _BlockArgs_1odc9lb$Methods on _BlockArgs_1odc9lb { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + objc.NSURL get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1oetg5g._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1oetg5g] that points to the same underlying object as [other]. + _BlockArgs_1oetg5g.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1oetg5g] that wraps the given raw object pointer. + _BlockArgs_1oetg5g.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1oetg5g]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1oetg5g, + ); +} + +extension _BlockArgs_1oetg5g$Methods on _BlockArgs_1oetg5g { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSKeyedArchiver get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCObject? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1oftdow._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1oftdow] that points to the same underlying object as [other]. + _BlockArgs_1oftdow.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1oftdow] that wraps the given raw object pointer. + _BlockArgs_1oftdow.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1oftdow]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1oftdow, + ); +} + +extension _BlockArgs_1oftdow$Methods on _BlockArgs_1oftdow { + NSURLResponse? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + objc.NSData? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1p1ax08._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1p1ax08] that points to the same underlying object as [other]. + _BlockArgs_1p1ax08.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1p1ax08] that wraps the given raw object pointer. + _BlockArgs_1p1ax08.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1p1ax08]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1p1ax08, + ); +} + +extension _BlockArgs_1p1ax08$Methods on _BlockArgs_1p1ax08 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1p7ak3v._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1p7ak3v] that points to the same underlying object as [other]. + _BlockArgs_1p7ak3v.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1p7ak3v] that wraps the given raw object pointer. + _BlockArgs_1p7ak3v.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1p7ak3v]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1p7ak3v, + ); +} + +extension _BlockArgs_1p7ak3v$Methods on _BlockArgs_1p7ak3v { + objc.NSArray? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1pfucun._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1pfucun] that points to the same underlying object as [other]. + _BlockArgs_1pfucun.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1pfucun] that wraps the given raw object pointer. + _BlockArgs_1pfucun.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1pfucun]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1pfucun, + ); +} + +extension _BlockArgs_1pfucun$Methods on _BlockArgs_1pfucun { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDownloadTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + } + + int get arg4 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); + } + + int get arg5 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg5); + } +} + +extension type _BlockArgs_1pfw36l._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1pfw36l] that points to the same underlying object as [other]. + _BlockArgs_1pfw36l.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1pfw36l] that wraps the given raw object pointer. + _BlockArgs_1pfw36l.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1pfw36l]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1pfw36l, + ); +} + +extension _BlockArgs_1pfw36l$Methods on _BlockArgs_1pfw36l { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSKeyedUnarchiver get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSKeyedUnarchiver.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1pj0but._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1pj0but] that points to the same underlying object as [other]. + _BlockArgs_1pj0but.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1pj0but] that wraps the given raw object pointer. + _BlockArgs_1pj0but.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1pj0but]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1pj0but, + ); +} + +extension _BlockArgs_1pj0but$Methods on _BlockArgs_1pj0but { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetService get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetService.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1ptzs7z._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ptzs7z] that points to the same underlying object as [other]. + _BlockArgs_1ptzs7z.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ptzs7z] that wraps the given raw object pointer. + _BlockArgs_1ptzs7z.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ptzs7z]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ptzs7z, + ); +} + +extension _BlockArgs_1ptzs7z$Methods on _BlockArgs_1ptzs7z { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSString get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1pvrxoh._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1pvrxoh] that points to the same underlying object as [other]. + _BlockArgs_1pvrxoh.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1pvrxoh] that wraps the given raw object pointer. + _BlockArgs_1pvrxoh.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1pvrxoh]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1pvrxoh, + ); +} + +extension _BlockArgs_1pvrxoh$Methods on _BlockArgs_1pvrxoh { + objc.NSString? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + NSRange get arg1 { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + NSRange get arg2 { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg2) + : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg2); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + ffi.Pointer get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_1q305zu._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1q305zu] that points to the same underlying object as [other]. + _BlockArgs_1q305zu.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1q305zu] that wraps the given raw object pointer. + _BlockArgs_1q305zu.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1q305zu]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1q305zu, + ); +} + +extension _BlockArgs_1q305zu$Methods on _BlockArgs_1q305zu { + Dartsec_certificate_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1r6tt56._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1r6tt56] that points to the same underlying object as [other]. + _BlockArgs_1r6tt56.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1r6tt56] that wraps the given raw object pointer. + _BlockArgs_1r6tt56.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1r6tt56]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1r6tt56, + ); +} + +extension _BlockArgs_1r6tt56$Methods on _BlockArgs_1r6tt56 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1s0z6xl._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1s0z6xl] that points to the same underlying object as [other]. + _BlockArgs_1s0z6xl.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1s0z6xl] that wraps the given raw object pointer. + _BlockArgs_1s0z6xl.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1s0z6xl]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1s0z6xl, + ); +} + +extension _BlockArgs_1s0z6xl$Methods on _BlockArgs_1s0z6xl { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.ObjCBlock get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + return ObjCBlock_ffiVoid_NSError.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1s2j81k._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1s2j81k] that points to the same underlying object as [other]. + _BlockArgs_1s2j81k.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1s2j81k] that wraps the given raw object pointer. + _BlockArgs_1s2j81k.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1s2j81k]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1s2j81k, + ); +} + +extension _BlockArgs_1s2j81k$Methods on _BlockArgs_1s2j81k { + int get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_1siniii._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1siniii] that points to the same underlying object as [other]. + _BlockArgs_1siniii.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1siniii] that wraps the given raw object pointer. + _BlockArgs_1siniii.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1siniii]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1siniii, + ); +} + +extension _BlockArgs_1siniii$Methods on _BlockArgs_1siniii { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURL get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + NSFileVersion get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSFileVersion.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1sucxsg._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1sucxsg] that points to the same underlying object as [other]. + _BlockArgs_1sucxsg.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1sucxsg] that wraps the given raw object pointer. + _BlockArgs_1sucxsg.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1sucxsg]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1sucxsg, + ); +} + +extension _BlockArgs_1sucxsg$Methods on _BlockArgs_1sucxsg { + CFTypeRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + CFErrorRef get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg1); + } + + DartBoolean get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1ko4qka(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_1sy9q99._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1sy9q99] that points to the same underlying object as [other]. + _BlockArgs_1sy9q99.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1sy9q99] that wraps the given raw object pointer. + _BlockArgs_1sy9q99.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1sy9q99]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1sy9q99, + ); +} + +extension _BlockArgs_1sy9q99$Methods on _BlockArgs_1sy9q99 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSCache get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSCache.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCObject get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.ObjCObject($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1tklz9g._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1tklz9g] that points to the same underlying object as [other]. + _BlockArgs_1tklz9g.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1tklz9g] that wraps the given raw object pointer. + _BlockArgs_1tklz9g.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1tklz9g]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1tklz9g, + ); +} + +extension _BlockArgs_1tklz9g$Methods on _BlockArgs_1tklz9g { + objc.ObjCObject? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1uc4fg7._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1uc4fg7] that points to the same underlying object as [other]. + _BlockArgs_1uc4fg7.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1uc4fg7] that wraps the given raw object pointer. + _BlockArgs_1uc4fg7.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1uc4fg7]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1uc4fg7, + ); +} + +extension _BlockArgs_1uc4fg7$Methods on _BlockArgs_1uc4fg7 { + NSTextCheckingResult? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSTextCheckingResult.fromPointer($ret, retain: true, release: true); + } + + DartNSUInteger get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1d2nxes(_$$ref.pointer, _sel_arg1); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_1uox71a._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1uox71a] that points to the same underlying object as [other]. + _BlockArgs_1uox71a.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1uox71a] that wraps the given raw object pointer. + _BlockArgs_1uox71a.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1uox71a]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1uox71a, + ); +} + +extension _BlockArgs_1uox71a$Methods on _BlockArgs_1uox71a { + Dartxpc_object_t? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartxpc_object_t? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1ura76._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1ura76] that points to the same underlying object as [other]. + _BlockArgs_1ura76.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1ura76] that wraps the given raw object pointer. + _BlockArgs_1ura76.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1ura76]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1ura76, + ); +} + +extension _BlockArgs_1ura76$Methods on _BlockArgs_1ura76 { + objc.NSInputStream? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1usrzbh._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1usrzbh] that points to the same underlying object as [other]. + _BlockArgs_1usrzbh.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1usrzbh] that wraps the given raw object pointer. + _BlockArgs_1usrzbh.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1usrzbh]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1usrzbh, + ); +} + +extension _BlockArgs_1usrzbh$Methods on _BlockArgs_1usrzbh { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSSpellServer get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSSpellServer.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1v0sc8._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1v0sc8] that points to the same underlying object as [other]. + _BlockArgs_1v0sc8.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1v0sc8] that wraps the given raw object pointer. + _BlockArgs_1v0sc8.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1v0sc8]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1v0sc8, + ); +} + +extension _BlockArgs_1v0sc8$Methods on _BlockArgs_1v0sc8 { + DartSInt32 get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg0); + } + + ffi.Pointer get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1dpg4ct(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_1x2wp90._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1x2wp90] that points to the same underlying object as [other]. + _BlockArgs_1x2wp90.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1x2wp90] that wraps the given raw object pointer. + _BlockArgs_1x2wp90.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1x2wp90]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1x2wp90, + ); +} + +extension _BlockArgs_1x2wp90$Methods on _BlockArgs_1x2wp90 { + int get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_h0gkbf(_$$ref.pointer, _sel_arg0); + } + + CGImageRef get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_y1izi1(_$$ref.pointer, _sel_arg1); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_1xfn2k3._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1xfn2k3] that points to the same underlying object as [other]. + _BlockArgs_1xfn2k3.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1xfn2k3] that wraps the given raw object pointer. + _BlockArgs_1xfn2k3.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1xfn2k3]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1xfn2k3, + ); +} + +extension _BlockArgs_1xfn2k3$Methods on _BlockArgs_1xfn2k3 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDataTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + return ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_1xkpqmj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1xkpqmj] that points to the same underlying object as [other]. + _BlockArgs_1xkpqmj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1xkpqmj] that wraps the given raw object pointer. + _BlockArgs_1xkpqmj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1xkpqmj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1xkpqmj, + ); +} + +extension _BlockArgs_1xkpqmj$Methods on _BlockArgs_1xkpqmj { + double get arg0 { + final _$$ref = object$.ref; + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_arg0) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_arg0); + } + + DartCFIndex get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg1); + } + + bool get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg2); + } + + ffi.Pointer get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_1y4tc38._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1y4tc38] that points to the same underlying object as [other]. + _BlockArgs_1y4tc38.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1y4tc38] that wraps the given raw object pointer. + _BlockArgs_1y4tc38.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1y4tc38]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1y4tc38, + ); +} + +extension _BlockArgs_1y4tc38$Methods on _BlockArgs_1y4tc38 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSFileVersion get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSFileVersion.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_1y7f3jy._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1y7f3jy] that points to the same underlying object as [other]. + _BlockArgs_1y7f3jy.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1y7f3jy] that wraps the given raw object pointer. + _BlockArgs_1y7f3jy.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1y7f3jy]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1y7f3jy, + ); +} + +extension _BlockArgs_1y7f3jy$Methods on _BlockArgs_1y7f3jy { + NSURLSessionResponseDisposition get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_129c579(_$$ref.pointer, _sel_arg0); + return NSURLSessionResponseDisposition.fromValue($ret); + } +} + +extension type _BlockArgs_1z0whcc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_1z0whcc] that points to the same underlying object as [other]. + _BlockArgs_1z0whcc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_1z0whcc] that wraps the given raw object pointer. + _BlockArgs_1z0whcc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_1z0whcc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_1z0whcc, + ); +} + +extension _BlockArgs_1z0whcc$Methods on _BlockArgs_1z0whcc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLAuthenticationChallenge get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_31cygh._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_31cygh] that points to the same underlying object as [other]. + _BlockArgs_31cygh.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_31cygh] that wraps the given raw object pointer. + _BlockArgs_31cygh.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_31cygh]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_31cygh, + ); +} + +extension _BlockArgs_31cygh$Methods on _BlockArgs_31cygh { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.ObjCBlock get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + return ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_347s5u._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_347s5u] that points to the same underlying object as [other]. + _BlockArgs_347s5u.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_347s5u] that wraps the given raw object pointer. + _BlockArgs_347s5u.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_347s5u]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_347s5u, + ); +} + +extension _BlockArgs_347s5u$Methods on _BlockArgs_347s5u { + NSTask get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return NSTask.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_3gru2r._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_3gru2r] that points to the same underlying object as [other]. + _BlockArgs_3gru2r.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_3gru2r] that wraps the given raw object pointer. + _BlockArgs_3gru2r.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_3gru2r]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_3gru2r, + ); +} + +extension _BlockArgs_3gru2r$Methods on _BlockArgs_3gru2r { + objc.NSURL? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_3jhjrc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_3jhjrc] that points to the same underlying object as [other]. + _BlockArgs_3jhjrc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_3jhjrc] that wraps the given raw object pointer. + _BlockArgs_3jhjrc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_3jhjrc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_3jhjrc, + ); +} + +extension _BlockArgs_3jhjrc$Methods on _BlockArgs_3jhjrc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + int get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg2); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); + } + + int get arg4 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg4); + } +} + +extension type _BlockArgs_3prg4b._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_3prg4b] that points to the same underlying object as [other]. + _BlockArgs_3prg4b.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_3prg4b] that wraps the given raw object pointer. + _BlockArgs_3prg4b.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_3prg4b]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_3prg4b, + ); +} + +extension _BlockArgs_3prg4b$Methods on _BlockArgs_3prg4b { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + AVAudioPlayer get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return AVAudioPlayer.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_43hp0b._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_43hp0b] that points to the same underlying object as [other]. + _BlockArgs_43hp0b.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_43hp0b] that wraps the given raw object pointer. + _BlockArgs_43hp0b.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_43hp0b]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_43hp0b, + ); +} + +extension _BlockArgs_43hp0b$Methods on _BlockArgs_43hp0b { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDataTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionStreamTask get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLSessionStreamTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_461rr9._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_461rr9] that points to the same underlying object as [other]. + _BlockArgs_461rr9.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_461rr9] that wraps the given raw object pointer. + _BlockArgs_461rr9.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_461rr9]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_461rr9, + ); +} + +extension _BlockArgs_461rr9$Methods on _BlockArgs_461rr9 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURL get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_5wf51x._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_5wf51x] that points to the same underlying object as [other]. + _BlockArgs_5wf51x.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_5wf51x] that wraps the given raw object pointer. + _BlockArgs_5wf51x.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_5wf51x]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_5wf51x, + ); +} + +extension _BlockArgs_5wf51x$Methods on _BlockArgs_5wf51x { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + int get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg2); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_5zyi3o._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_5zyi3o] that points to the same underlying object as [other]. + _BlockArgs_5zyi3o.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_5zyi3o] that wraps the given raw object pointer. + _BlockArgs_5zyi3o.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_5zyi3o]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_5zyi3o, + ); +} + +extension _BlockArgs_5zyi3o$Methods on _BlockArgs_5zyi3o { + SecKeyRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_oziolg(_$$ref.pointer, _sel_arg0); + } + + SecKeyRef get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_oziolg(_$$ref.pointer, _sel_arg1); + } + + CFErrorRef get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_6tydoo._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_6tydoo] that points to the same underlying object as [other]. + _BlockArgs_6tydoo.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_6tydoo] that wraps the given raw object pointer. + _BlockArgs_6tydoo.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_6tydoo]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_6tydoo, + ); +} + +extension _BlockArgs_6tydoo$Methods on _BlockArgs_6tydoo { + objc.NSDictionary? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_6yk1dr._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_6yk1dr] that points to the same underlying object as [other]. + _BlockArgs_6yk1dr.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_6yk1dr] that wraps the given raw object pointer. + _BlockArgs_6yk1dr.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_6yk1dr]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_6yk1dr, + ); +} + +extension _BlockArgs_6yk1dr$Methods on _BlockArgs_6yk1dr { + DartNSItemProviderCompletionHandler get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); + return ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.ObjCObject get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.ObjCObject($ret, retain: true, release: true); + } + + objc.NSDictionary get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_7xicdf._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_7xicdf] that points to the same underlying object as [other]. + _BlockArgs_7xicdf.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_7xicdf] that wraps the given raw object pointer. + _BlockArgs_7xicdf.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_7xicdf]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_7xicdf, + ); +} + +extension _BlockArgs_7xicdf$Methods on _BlockArgs_7xicdf { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_99x6vt._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_99x6vt] that points to the same underlying object as [other]. + _BlockArgs_99x6vt.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_99x6vt] that wraps the given raw object pointer. + _BlockArgs_99x6vt.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_99x6vt]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_99x6vt, + ); +} + +extension _BlockArgs_99x6vt$Methods on _BlockArgs_99x6vt { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + } + + objc.ObjCBlock get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + return ObjCBlock_ffiVoid_NSInputStream.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_abn34x._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_abn34x] that points to the same underlying object as [other]. + _BlockArgs_abn34x.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_abn34x] that wraps the given raw object pointer. + _BlockArgs_abn34x.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_abn34x]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_abn34x, + ); +} + +extension _BlockArgs_abn34x$Methods on _BlockArgs_abn34x { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + NSURLResponse get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLResponse.fromPointer($ret, retain: true, release: true); + } + + NSURLCacheStoragePolicy get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_4qsw9q(_$$ref.pointer, _sel_arg3); + return NSURLCacheStoragePolicy.fromValue($ret); + } +} + +extension type _BlockArgs_adcfsd._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_adcfsd] that points to the same underlying object as [other]. + _BlockArgs_adcfsd.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_adcfsd] that wraps the given raw object pointer. + _BlockArgs_adcfsd.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_adcfsd]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_adcfsd, + ); +} + +extension _BlockArgs_adcfsd$Methods on _BlockArgs_adcfsd { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetServiceBrowser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); + } + + objc.NSDictionary get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_aec946._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_aec946] that points to the same underlying object as [other]. + _BlockArgs_aec946.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_aec946] that wraps the given raw object pointer. + _BlockArgs_aec946.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_aec946]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_aec946, + ); +} + +extension _BlockArgs_aec946$Methods on _BlockArgs_aec946 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_awd5mj._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_awd5mj] that points to the same underlying object as [other]. + _BlockArgs_awd5mj.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_awd5mj] that wraps the given raw object pointer. + _BlockArgs_awd5mj.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_awd5mj]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_awd5mj, + ); +} + +extension _BlockArgs_awd5mj$Methods on _BlockArgs_awd5mj { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_b9s2kt._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_b9s2kt] that points to the same underlying object as [other]. + _BlockArgs_b9s2kt.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_b9s2kt] that wraps the given raw object pointer. + _BlockArgs_b9s2kt.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_b9s2kt]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_b9s2kt, + ); +} + +extension _BlockArgs_b9s2kt$Methods on _BlockArgs_b9s2kt { + objc.NSError get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_blvx9k._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_blvx9k] that points to the same underlying object as [other]. + _BlockArgs_blvx9k.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_blvx9k] that wraps the given raw object pointer. + _BlockArgs_blvx9k.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_blvx9k]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_blvx9k, + ); +} + +extension _BlockArgs_blvx9k$Methods on _BlockArgs_blvx9k { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSUserNotificationCenter get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSUserNotificationCenter.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + NSUserNotification get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSUserNotification.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_de64m._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_de64m] that points to the same underlying object as [other]. + _BlockArgs_de64m.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_de64m] that wraps the given raw object pointer. + _BlockArgs_de64m.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_de64m]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_de64m, + ); +} + +extension _BlockArgs_de64m$Methods on _BlockArgs_de64m { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLAuthenticationChallenge get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLAuthenticationChallenge.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.ObjCBlock get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg3); + return ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_di5ft6._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_di5ft6] that points to the same underlying object as [other]. + _BlockArgs_di5ft6.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_di5ft6] that wraps the given raw object pointer. + _BlockArgs_di5ft6.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_di5ft6]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_di5ft6, + ); +} + +extension _BlockArgs_di5ft6$Methods on _BlockArgs_di5ft6 { + Dartsec_protocol_metadata_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartsec_protocol_key_update_complete_t get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + return ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_dmvhfp._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_dmvhfp] that points to the same underlying object as [other]. + _BlockArgs_dmvhfp.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_dmvhfp] that wraps the given raw object pointer. + _BlockArgs_dmvhfp.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_dmvhfp]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_dmvhfp, + ); +} + +extension _BlockArgs_dmvhfp$Methods on _BlockArgs_dmvhfp { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_syi8bx(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_eu2222._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_eu2222] that points to the same underlying object as [other]. + _BlockArgs_eu2222.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_eu2222] that wraps the given raw object pointer. + _BlockArgs_eu2222.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_eu2222]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_eu2222, + ); +} + +extension _BlockArgs_eu2222$Methods on _BlockArgs_eu2222 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.ObjCBlock?)> + get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + return ObjCBlock_ffiVoid_ffiVoid$2.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_gcznpv._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_gcznpv] that points to the same underlying object as [other]. + _BlockArgs_gcznpv.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_gcznpv] that wraps the given raw object pointer. + _BlockArgs_gcznpv.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_gcznpv]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_gcznpv, + ); +} + +extension _BlockArgs_gcznpv$Methods on _BlockArgs_gcznpv { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSSpellServer get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSSpellServer.fromPointer($ret, retain: true, release: true); + } + + DartNSUInteger get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg2); + } + + objc.NSString get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg5 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_hacm4k._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_hacm4k] that points to the same underlying object as [other]. + _BlockArgs_hacm4k.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_hacm4k] that wraps the given raw object pointer. + _BlockArgs_hacm4k.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_hacm4k]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_hacm4k, + ); +} + +extension _BlockArgs_hacm4k$Methods on _BlockArgs_hacm4k { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_hj4uui._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_hj4uui] that points to the same underlying object as [other]. + _BlockArgs_hj4uui.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_hj4uui] that wraps the given raw object pointer. + _BlockArgs_hj4uui.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_hj4uui]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_hj4uui, + ); +} + +extension _BlockArgs_hj4uui$Methods on _BlockArgs_hj4uui { + Dartsec_protocol_metadata_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartsec_protocol_challenge_complete_t get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); + return ObjCBlock_ffiVoid_NSObject$1.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_hj6v1u._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_hj6v1u] that points to the same underlying object as [other]. + _BlockArgs_hj6v1u.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_hj6v1u] that wraps the given raw object pointer. + _BlockArgs_hj6v1u.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_hj6v1u]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_hj6v1u, + ); +} + +extension _BlockArgs_hj6v1u$Methods on _BlockArgs_hj6v1u { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + ffi.Pointer get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_i7wriu._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_i7wriu] that points to the same underlying object as [other]. + _BlockArgs_i7wriu.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_i7wriu] that wraps the given raw object pointer. + _BlockArgs_i7wriu.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_i7wriu]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_i7wriu, + ); +} + +extension _BlockArgs_i7wriu$Methods on _BlockArgs_i7wriu { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTaskMetrics get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLSessionTaskMetrics.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_ii17hk._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_ii17hk] that points to the same underlying object as [other]. + _BlockArgs_ii17hk.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_ii17hk] that wraps the given raw object pointer. + _BlockArgs_ii17hk.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_ii17hk]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_ii17hk, + ); +} + +extension _BlockArgs_ii17hk$Methods on _BlockArgs_ii17hk {} + +extension type _BlockArgs_j3xbuw._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_j3xbuw] that points to the same underlying object as [other]. + _BlockArgs_j3xbuw.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_j3xbuw] that wraps the given raw object pointer. + _BlockArgs_j3xbuw.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_j3xbuw]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_j3xbuw, + ); +} + +extension _BlockArgs_j3xbuw$Methods on _BlockArgs_j3xbuw { + SecTrustRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_arg0); + } + + bool get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg1); + } + + CFErrorRef get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_jqba1._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_jqba1] that points to the same underlying object as [other]. + _BlockArgs_jqba1.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_jqba1] that wraps the given raw object pointer. + _BlockArgs_jqba1.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_jqba1]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_jqba1, + ); +} + +extension _BlockArgs_jqba1$Methods on _BlockArgs_jqba1 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + NSURLRequest get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return NSURLRequest.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); + return ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_jzitwn._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_jzitwn] that points to the same underlying object as [other]. + _BlockArgs_jzitwn.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_jzitwn] that wraps the given raw object pointer. + _BlockArgs_jzitwn.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_jzitwn]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_jzitwn, + ); +} + +extension _BlockArgs_jzitwn$Methods on _BlockArgs_jzitwn { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURL get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + objc.NSURL get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_k1nazc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_k1nazc] that points to the same underlying object as [other]. + _BlockArgs_k1nazc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_k1nazc] that wraps the given raw object pointer. + _BlockArgs_k1nazc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_k1nazc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_k1nazc, + ); +} + +extension _BlockArgs_k1nazc$Methods on _BlockArgs_k1nazc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_k2hpmy._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_k2hpmy] that points to the same underlying object as [other]. + _BlockArgs_k2hpmy.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_k2hpmy] that wraps the given raw object pointer. + _BlockArgs_k2hpmy.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_k2hpmy]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_k2hpmy, + ); +} + +extension _BlockArgs_k2hpmy$Methods on _BlockArgs_k2hpmy { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSSet get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSSet.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_k4eb20._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_k4eb20] that points to the same underlying object as [other]. + _BlockArgs_k4eb20.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_k4eb20] that wraps the given raw object pointer. + _BlockArgs_k4eb20.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_k4eb20]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_k4eb20, + ); +} + +extension _BlockArgs_k4eb20$Methods on _BlockArgs_k4eb20 { + Dartdispatch_data_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + int get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_k4je64._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_k4je64] that points to the same underlying object as [other]. + _BlockArgs_k4je64.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_k4je64] that wraps the given raw object pointer. + _BlockArgs_k4je64.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_k4je64]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_k4je64, + ); +} + +extension _BlockArgs_k4je64$Methods on _BlockArgs_k4je64 { + bool get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_kqbpyy._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_kqbpyy] that points to the same underlying object as [other]. + _BlockArgs_kqbpyy.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_kqbpyy] that wraps the given raw object pointer. + _BlockArgs_kqbpyy.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_kqbpyy]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_kqbpyy, + ); +} + +extension _BlockArgs_kqbpyy$Methods on _BlockArgs_kqbpyy { + int get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_h0gkbf(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_krrtfh._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_krrtfh] that points to the same underlying object as [other]. + _BlockArgs_krrtfh.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_krrtfh] that wraps the given raw object pointer. + _BlockArgs_krrtfh.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_krrtfh]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_krrtfh, + ); +} + +extension _BlockArgs_krrtfh$Methods on _BlockArgs_krrtfh { + objc.NSSecureCoding? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSSecureCoding.fromPointer($ret, retain: true, release: true); + } + + objc.NSError get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_ldsont._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_ldsont] that points to the same underlying object as [other]. + _BlockArgs_ldsont.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_ldsont] that wraps the given raw object pointer. + _BlockArgs_ldsont.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_ldsont]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_ldsont, + ); +} + +extension _BlockArgs_ldsont$Methods on _BlockArgs_ldsont { + NSBackgroundActivityResult get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_hjhgti(_$$ref.pointer, _sel_arg0); + return NSBackgroundActivityResult.fromValue($ret); + } +} + +extension type _BlockArgs_lmnq5k._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_lmnq5k] that points to the same underlying object as [other]. + _BlockArgs_lmnq5k.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_lmnq5k] that wraps the given raw object pointer. + _BlockArgs_lmnq5k.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_lmnq5k]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_lmnq5k, + ); +} + +extension _BlockArgs_lmnq5k$Methods on _BlockArgs_lmnq5k { + Dartdispatch_data_t get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + Dartdispatch_data_t get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSObject.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_n2dxuu._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_n2dxuu] that points to the same underlying object as [other]. + _BlockArgs_n2dxuu.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_n2dxuu] that wraps the given raw object pointer. + _BlockArgs_n2dxuu.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_n2dxuu]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_n2dxuu, + ); +} + +extension _BlockArgs_n2dxuu$Methods on _BlockArgs_n2dxuu { + CFRunLoopTimerRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1yyiln9(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_nemba7._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_nemba7] that points to the same underlying object as [other]. + _BlockArgs_nemba7.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_nemba7] that wraps the given raw object pointer. + _BlockArgs_nemba7.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_nemba7]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_nemba7, + ); +} + +extension _BlockArgs_nemba7$Methods on _BlockArgs_nemba7 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_nhk5a9._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_nhk5a9] that points to the same underlying object as [other]. + _BlockArgs_nhk5a9.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_nhk5a9] that wraps the given raw object pointer. + _BlockArgs_nhk5a9.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_nhk5a9]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_nhk5a9, + ); +} + +extension _BlockArgs_nhk5a9$Methods on _BlockArgs_nhk5a9 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionStreamTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionStreamTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.NSInputStream get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + objc.NSOutputStream get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_pfi7f3._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_pfi7f3] that points to the same underlying object as [other]. + _BlockArgs_pfi7f3.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_pfi7f3] that wraps the given raw object pointer. + _BlockArgs_pfi7f3.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_pfi7f3]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_pfi7f3, + ); +} + +extension _BlockArgs_pfi7f3$Methods on _BlockArgs_pfi7f3 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURL get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + objc.ObjCBlock get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); + return ObjCBlock_ffiVoid_NSError.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_pm23bg._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_pm23bg] that points to the same underlying object as [other]. + _BlockArgs_pm23bg.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_pm23bg] that wraps the given raw object pointer. + _BlockArgs_pm23bg.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_pm23bg]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_pm23bg, + ); +} + +extension _BlockArgs_pm23bg$Methods on _BlockArgs_pm23bg { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionDownloadTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionDownloadTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.NSURL get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_q6fcam._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_q6fcam] that points to the same underlying object as [other]. + _BlockArgs_q6fcam.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_q6fcam] that wraps the given raw object pointer. + _BlockArgs_q6fcam.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_q6fcam]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_q6fcam, + ); +} + +extension _BlockArgs_q6fcam$Methods on _BlockArgs_q6fcam { + objc.ObjCObject? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + NSRange get arg1 { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_qjjttc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_qjjttc] that points to the same underlying object as [other]. + _BlockArgs_qjjttc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_qjjttc] that wraps the given raw object pointer. + _BlockArgs_qjjttc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_qjjttc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_qjjttc, + ); +} + +extension _BlockArgs_qjjttc$Methods on _BlockArgs_qjjttc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_qss5hc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_qss5hc] that points to the same underlying object as [other]. + _BlockArgs_qss5hc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_qss5hc] that wraps the given raw object pointer. + _BlockArgs_qss5hc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_qss5hc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_qss5hc, + ); +} + +extension _BlockArgs_qss5hc$Methods on _BlockArgs_qss5hc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionStreamTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionStreamTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } +} + +extension type _BlockArgs_rojepe._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_rojepe] that points to the same underlying object as [other]. + _BlockArgs_rojepe.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_rojepe] that wraps the given raw object pointer. + _BlockArgs_rojepe.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_rojepe]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_rojepe, + ); +} + +extension _BlockArgs_rojepe$Methods on _BlockArgs_rojepe { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + objc.NSError get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_s52y0g._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_s52y0g] that points to the same underlying object as [other]. + _BlockArgs_s52y0g.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_s52y0g] that wraps the given raw object pointer. + _BlockArgs_s52y0g.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_s52y0g]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_s52y0g, + ); +} + +extension _BlockArgs_s52y0g$Methods on _BlockArgs_s52y0g { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLProtocol get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLProtocol.fromPointer($ret, retain: true, release: true); + } + + NSCachedURLResponse get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSCachedURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_syyzqk._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_syyzqk] that points to the same underlying object as [other]. + _BlockArgs_syyzqk.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_syyzqk] that wraps the given raw object pointer. + _BlockArgs_syyzqk.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_syyzqk]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_syyzqk, + ); +} + +extension _BlockArgs_syyzqk$Methods on _BlockArgs_syyzqk { + bool get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_t3r59d._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_t3r59d] that points to the same underlying object as [other]. + _BlockArgs_t3r59d.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_t3r59d] that wraps the given raw object pointer. + _BlockArgs_t3r59d.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_t3r59d]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_t3r59d, + ); +} + +extension _BlockArgs_t3r59d$Methods on _BlockArgs_t3r59d { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg5 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_tbof01._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_tbof01] that points to the same underlying object as [other]. + _BlockArgs_tbof01.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_tbof01] that wraps the given raw object pointer. + _BlockArgs_tbof01.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_tbof01]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_tbof01, + ); +} + +extension _BlockArgs_tbof01$Methods on _BlockArgs_tbof01 { + int get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_rmqcvp(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_teaic5._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_teaic5] that points to the same underlying object as [other]. + _BlockArgs_teaic5.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_teaic5] that wraps the given raw object pointer. + _BlockArgs_teaic5.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_teaic5]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_teaic5, + ); +} + +extension _BlockArgs_teaic5$Methods on _BlockArgs_teaic5 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURLHandle get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_tikg8p._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_tikg8p] that points to the same underlying object as [other]. + _BlockArgs_tikg8p.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_tikg8p] that wraps the given raw object pointer. + _BlockArgs_tikg8p.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_tikg8p]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_tikg8p, + ); +} + +extension _BlockArgs_tikg8p$Methods on _BlockArgs_tikg8p { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetService get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetService.fromPointer($ret, retain: true, release: true); + } + + objc.NSInputStream get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSInputStream.fromPointer($ret, retain: true, release: true); + } + + objc.NSOutputStream get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_truc42._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_truc42] that points to the same underlying object as [other]. + _BlockArgs_truc42.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_truc42] that wraps the given raw object pointer. + _BlockArgs_truc42.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_truc42]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_truc42, + ); +} + +extension _BlockArgs_truc42$Methods on _BlockArgs_truc42 { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSExtensionContext get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSExtensionContext.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_u4a6zc._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_u4a6zc] that points to the same underlying object as [other]. + _BlockArgs_u4a6zc.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_u4a6zc] that wraps the given raw object pointer. + _BlockArgs_u4a6zc.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_u4a6zc]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_u4a6zc, + ); +} + +extension _BlockArgs_u4a6zc$Methods on _BlockArgs_u4a6zc { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetService get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetService.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_u65oe8._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_u65oe8] that points to the same underlying object as [other]. + _BlockArgs_u65oe8.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_u65oe8] that wraps the given raw object pointer. + _BlockArgs_u65oe8.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_u65oe8]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_u65oe8, + ); +} + +extension _BlockArgs_u65oe8$Methods on _BlockArgs_u65oe8 { + NSURLSessionAuthChallengeDisposition get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_1vfc2dz(_$$ref.pointer, _sel_arg0); + return NSURLSessionAuthChallengeDisposition.fromValue($ret); + } + + NSURLCredential? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : NSURLCredential.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_uul9n9._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_uul9n9] that points to the same underlying object as [other]. + _BlockArgs_uul9n9.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_uul9n9] that wraps the given raw object pointer. + _BlockArgs_uul9n9.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_uul9n9]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_uul9n9, + ); +} + +extension _BlockArgs_uul9n9$Methods on _BlockArgs_uul9n9 { + bool get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); + } + + Dartdispatch_data_t? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSObject.fromPointer($ret, retain: true, release: true); + } + + int get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_v1zq3a._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_v1zq3a] that points to the same underlying object as [other]. + _BlockArgs_v1zq3a.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_v1zq3a] that wraps the given raw object pointer. + _BlockArgs_v1zq3a.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_v1zq3a]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_v1zq3a, + ); +} + +extension _BlockArgs_v1zq3a$Methods on _BlockArgs_v1zq3a { + CGRenderingBufferProviderRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1p2ukjz(_$$ref.pointer, _sel_arg0); + } + + ffi.Pointer get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1vkunzi(_$$ref.pointer, _sel_arg1); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1wgub22(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_v5xz31._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_v5xz31] that points to the same underlying object as [other]. + _BlockArgs_v5xz31.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_v5xz31] that wraps the given raw object pointer. + _BlockArgs_v5xz31.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_v5xz31]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_v5xz31, + ); +} + +extension _BlockArgs_v5xz31$Methods on _BlockArgs_v5xz31 { + NSFileHandle get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return NSFileHandle.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_v8in3._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_v8in3] that points to the same underlying object as [other]. + _BlockArgs_v8in3.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_v8in3] that wraps the given raw object pointer. + _BlockArgs_v8in3.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_v8in3]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_v8in3, + ); +} + +extension _BlockArgs_v8in3$Methods on _BlockArgs_v8in3 { + objc.NSDictionary get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } + + NSRange get arg1 { + final _$$ref = object$.ref; + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) + : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + ffi.Pointer get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); + } +} + +extension type _BlockArgs_vaglpl._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_vaglpl] that points to the same underlying object as [other]. + _BlockArgs_vaglpl.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_vaglpl] that wraps the given raw object pointer. + _BlockArgs_vaglpl.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_vaglpl]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_vaglpl, + ); +} + +extension _BlockArgs_vaglpl$Methods on _BlockArgs_vaglpl { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSData get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSData.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_vgtcpl._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_vgtcpl] that points to the same underlying object as [other]. + _BlockArgs_vgtcpl.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_vgtcpl] that wraps the given raw object pointer. + _BlockArgs_vgtcpl.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_vgtcpl]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_vgtcpl, + ); +} + +extension _BlockArgs_vgtcpl$Methods on _BlockArgs_vgtcpl { + CFArrayRef get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_odvxky(_$$ref.pointer, _sel_arg0); + } +} + +extension type _BlockArgs_vpa8ji._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_vpa8ji] that points to the same underlying object as [other]. + _BlockArgs_vpa8ji.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_vpa8ji] that wraps the given raw object pointer. + _BlockArgs_vpa8ji.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_vpa8ji]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_vpa8ji, + ); +} + +extension _BlockArgs_vpa8ji$Methods on _BlockArgs_vpa8ji { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLConnection get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLConnection.fromPointer($ret, retain: true, release: true); + } + + objc.NSError get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_vx7t4i._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_vx7t4i] that points to the same underlying object as [other]. + _BlockArgs_vx7t4i.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_vx7t4i] that wraps the given raw object pointer. + _BlockArgs_vx7t4i.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_vx7t4i]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_vx7t4i, + ); +} + +extension _BlockArgs_vx7t4i$Methods on _BlockArgs_vx7t4i { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSXMLParser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSXMLParser.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg4 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + objc.NSString? get arg5 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_wpl2gn._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_wpl2gn] that points to the same underlying object as [other]. + _BlockArgs_wpl2gn.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_wpl2gn] that wraps the given raw object pointer. + _BlockArgs_wpl2gn.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_wpl2gn]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_wpl2gn, + ); +} + +extension _BlockArgs_wpl2gn$Methods on _BlockArgs_wpl2gn { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + bool get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg1); + } +} + +extension type _BlockArgs_wtbfzi._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_wtbfzi] that points to the same underlying object as [other]. + _BlockArgs_wtbfzi.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_wtbfzi] that wraps the given raw object pointer. + _BlockArgs_wtbfzi.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_wtbfzi]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_wtbfzi, + ); +} + +extension _BlockArgs_wtbfzi$Methods on _BlockArgs_wtbfzi { + NSCachedURLResponse? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : NSCachedURLResponse.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. + _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. + _BlockArgs_x5cg0.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_x5cg0, + ); +} + +extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { + objc.NSData? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_x7mqjz._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_x7mqjz] that points to the same underlying object as [other]. + _BlockArgs_x7mqjz.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_x7mqjz] that wraps the given raw object pointer. + _BlockArgs_x7mqjz.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_x7mqjz]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_x7mqjz, + ); +} + +extension _BlockArgs_x7mqjz$Methods on _BlockArgs_x7mqjz { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSNetServiceBrowser get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); + } + + NSNetService get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSNetService.fromPointer($ret, retain: true, release: true); + } + + bool get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg3); + } +} + +extension type _BlockArgs_xcrg5s._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_xcrg5s] that points to the same underlying object as [other]. + _BlockArgs_xcrg5s.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_xcrg5s] that wraps the given raw object pointer. + _BlockArgs_xcrg5s.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_xcrg5s]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_xcrg5s, + ); +} + +extension _BlockArgs_xcrg5s$Methods on _BlockArgs_xcrg5s { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionWebSocketTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionWebSocketTask.fromPointer( + $ret, + retain: true, + release: true, + ); + } + + objc.NSString? get arg3 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_xh08sz._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_xh08sz] that points to the same underlying object as [other]. + _BlockArgs_xh08sz.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_xh08sz] that wraps the given raw object pointer. + _BlockArgs_xh08sz.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_xh08sz]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_xh08sz, + ); +} + +extension _BlockArgs_xh08sz$Methods on _BlockArgs_xh08sz { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + NSURLSession get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return NSURLSession.fromPointer($ret, retain: true, release: true); + } + + NSURLSessionTask get arg2 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); + return NSURLSessionTask.fromPointer($ret, retain: true, release: true); + } + + int get arg3 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); + } + + int get arg4 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); + } + + int get arg5 { + final _$$ref = object$.ref; + return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg5); + } +} + +extension type _BlockArgs_xj71gr._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_xj71gr] that points to the same underlying object as [other]. + _BlockArgs_xj71gr.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_xj71gr] that wraps the given raw object pointer. + _BlockArgs_xj71gr.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_xj71gr]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_xj71gr, + ); +} + +extension _BlockArgs_xj71gr$Methods on _BlockArgs_xj71gr { + ffi.Pointer get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); + } + + objc.NSURLHandle get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); + } +} + +extension type _BlockArgs_zgaes8._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_zgaes8] that points to the same underlying object as [other]. + _BlockArgs_zgaes8.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_zgaes8] that wraps the given raw object pointer. + _BlockArgs_zgaes8.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_zgaes8]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_zgaes8, + ); +} + +extension _BlockArgs_zgaes8$Methods on _BlockArgs_zgaes8 { + DartBoolean get arg0 { + final _$$ref = object$.ref; + return _objc_msgSend_1ko4qka(_$$ref.pointer, _sel_arg0); + } + + DartUInt64 get arg1 { + final _$$ref = object$.ref; + return _objc_msgSend_1p4gbjy(_$$ref.pointer, _sel_arg1); + } + + CFErrorRef get arg2 { + final _$$ref = object$.ref; + return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); + } +} + +final class _CFHTTPAuthentication extends ffi.Opaque {} + +final class _CGDisplayConfigRef extends ffi.Opaque {} + +enum _CGLContextEnable { + kCGLCESwapRectangle(201), + kCGLCESwapLimit(203), + kCGLCERasterization(221), + kCGLCEStateValidation(301), + kCGLCESurfaceBackingSize(305), + kCGLCEDisplayListOptimization(307), + kCGLCEMPEngine(313), + kCGLCECrashOnRemovedFunctions(316); + + final int value; + const _CGLContextEnable(this.value); + + static _CGLContextEnable fromValue(int value) => switch (value) { + 201 => kCGLCESwapRectangle, + 203 => kCGLCESwapLimit, + 221 => kCGLCERasterization, + 301 => kCGLCEStateValidation, + 305 => kCGLCESurfaceBackingSize, + 307 => kCGLCEDisplayListOptimization, + 313 => kCGLCEMPEngine, + 316 => kCGLCECrashOnRemovedFunctions, + _ => throw ArgumentError('Unknown value for _CGLContextEnable: $value'), + }; +} + +final class _CGLContextObject extends ffi.Opaque {} + +enum _CGLContextParameter { + kCGLCPSwapRectangle(200), + kCGLCPSwapInterval(222), + kCGLCPDispatchTableSize(224), + kCGLCPClientStorage(226), + kCGLCPSurfaceTexture(228), + kCGLCPSurfaceOrder(235), + kCGLCPSurfaceOpacity(236), + kCGLCPSurfaceBackingSize(304), + kCGLCPSurfaceSurfaceVolatile(306), + kCGLCPReclaimResources(308), + kCGLCPCurrentRendererID(309), + kCGLCPGPUVertexProcessing(310), + kCGLCPGPUFragmentProcessing(311), + kCGLCPHasDrawable(314), + kCGLCPMPSwapsInFlight(315), + kCGLCPGPURestartStatus(317), + kCGLCPAbortOnGPURestartStatusBlacklisted(318), + kCGLCPSupportGPURestart(319), + kCGLCPSupportSeparateAddressSpace(320), + kCGLCPContextPriorityRequest(608); + + static const kCGLCPAbortOnGPURestartStatusDenied = + kCGLCPAbortOnGPURestartStatusBlacklisted; + + final int value; + const _CGLContextParameter(this.value); + + static _CGLContextParameter fromValue(int value) => switch (value) { + 200 => kCGLCPSwapRectangle, + 222 => kCGLCPSwapInterval, + 224 => kCGLCPDispatchTableSize, + 226 => kCGLCPClientStorage, + 228 => kCGLCPSurfaceTexture, + 235 => kCGLCPSurfaceOrder, + 236 => kCGLCPSurfaceOpacity, + 304 => kCGLCPSurfaceBackingSize, + 306 => kCGLCPSurfaceSurfaceVolatile, + 308 => kCGLCPReclaimResources, + 309 => kCGLCPCurrentRendererID, + 310 => kCGLCPGPUVertexProcessing, + 311 => kCGLCPGPUFragmentProcessing, + 314 => kCGLCPHasDrawable, + 315 => kCGLCPMPSwapsInFlight, + 317 => kCGLCPGPURestartStatus, + 318 => kCGLCPAbortOnGPURestartStatusBlacklisted, + 319 => kCGLCPSupportGPURestart, + 320 => kCGLCPSupportSeparateAddressSpace, + 608 => kCGLCPContextPriorityRequest, + _ => throw ArgumentError('Unknown value for _CGLContextParameter: $value'), + }; + + @override + String toString() { + if (this == kCGLCPAbortOnGPURestartStatusBlacklisted) + return "_CGLContextParameter.kCGLCPAbortOnGPURestartStatusBlacklisted, _CGLContextParameter.kCGLCPAbortOnGPURestartStatusDenied"; + return super.toString(); + } +} + +enum _CGLError { + kCGLNoError(0), + kCGLBadAttribute(10000), + kCGLBadProperty(10001), + kCGLBadPixelFormat(10002), + kCGLBadRendererInfo(10003), + kCGLBadContext(10004), + kCGLBadDrawable(10005), + kCGLBadDisplay(10006), + kCGLBadState(10007), + kCGLBadValue(10008), + kCGLBadMatch(10009), + kCGLBadEnumeration(10010), + kCGLBadOffScreen(10011), + kCGLBadFullScreen(10012), + kCGLBadWindow(10013), + kCGLBadAddress(10014), + kCGLBadCodeModule(10015), + kCGLBadAlloc(10016), + kCGLBadConnection(10017); + + final int value; + const _CGLError(this.value); + + static _CGLError fromValue(int value) => switch (value) { + 0 => kCGLNoError, + 10000 => kCGLBadAttribute, + 10001 => kCGLBadProperty, + 10002 => kCGLBadPixelFormat, + 10003 => kCGLBadRendererInfo, + 10004 => kCGLBadContext, + 10005 => kCGLBadDrawable, + 10006 => kCGLBadDisplay, + 10007 => kCGLBadState, + 10008 => kCGLBadValue, + 10009 => kCGLBadMatch, + 10010 => kCGLBadEnumeration, + 10011 => kCGLBadOffScreen, + 10012 => kCGLBadFullScreen, + 10013 => kCGLBadWindow, + 10014 => kCGLBadAddress, + 10015 => kCGLBadCodeModule, + 10016 => kCGLBadAlloc, + 10017 => kCGLBadConnection, + _ => throw ArgumentError('Unknown value for _CGLError: $value'), + }; +} + +enum _CGLGPURestartStatus { + kCGLCPGPURestartStatusNone(0), + kCGLCPGPURestartStatusCaused(1), + kCGLCPGPURestartStatusBlacklisted(2); + + static const kCGLCPGPURestartStatusDenied = kCGLCPGPURestartStatusBlacklisted; + + final int value; + const _CGLGPURestartStatus(this.value); + + static _CGLGPURestartStatus fromValue(int value) => switch (value) { + 0 => kCGLCPGPURestartStatusNone, + 1 => kCGLCPGPURestartStatusCaused, + 2 => kCGLCPGPURestartStatusBlacklisted, + _ => throw ArgumentError('Unknown value for _CGLGPURestartStatus: $value'), + }; + + @override + String toString() { + if (this == kCGLCPGPURestartStatusBlacklisted) + return "_CGLGPURestartStatus.kCGLCPGPURestartStatusBlacklisted, _CGLGPURestartStatus.kCGLCPGPURestartStatusDenied"; + return super.toString(); + } +} + +enum _CGLGlobalOption { + kCGLGOFormatCacheSize(501), + kCGLGOClearFormatCache(502), + kCGLGORetainRenderers(503), + kCGLGOUseBuildCache(506), + kCGLGOResetLibrary(504), + kCGLGOUseErrorHandler(505); + + final int value; + const _CGLGlobalOption(this.value); + + static _CGLGlobalOption fromValue(int value) => switch (value) { + 501 => kCGLGOFormatCacheSize, + 502 => kCGLGOClearFormatCache, + 503 => kCGLGORetainRenderers, + 506 => kCGLGOUseBuildCache, + 504 => kCGLGOResetLibrary, + 505 => kCGLGOUseErrorHandler, + _ => throw ArgumentError('Unknown value for _CGLGlobalOption: $value'), + }; +} + +enum _CGLOpenGLProfile { + kCGLOGLPVersion_Legacy(4096), + kCGLOGLPVersion_3_2_Core(12800), + kCGLOGLPVersion_GL4_Core(16640); + + static const kCGLOGLPVersion_GL3_Core = kCGLOGLPVersion_3_2_Core; + + final int value; + const _CGLOpenGLProfile(this.value); + + static _CGLOpenGLProfile fromValue(int value) => switch (value) { + 4096 => kCGLOGLPVersion_Legacy, + 12800 => kCGLOGLPVersion_3_2_Core, + 16640 => kCGLOGLPVersion_GL4_Core, + _ => throw ArgumentError('Unknown value for _CGLOpenGLProfile: $value'), + }; + + @override + String toString() { + if (this == kCGLOGLPVersion_3_2_Core) + return "_CGLOpenGLProfile.kCGLOGLPVersion_3_2_Core, _CGLOpenGLProfile.kCGLOGLPVersion_GL3_Core"; + return super.toString(); + } +} + +final class _CGLPBufferObject extends ffi.Opaque {} + +enum _CGLPixelFormatAttribute { + kCGLPFAAllRenderers(1), + kCGLPFATripleBuffer(3), + kCGLPFADoubleBuffer(5), + kCGLPFAColorSize(8), + kCGLPFAAlphaSize(11), + kCGLPFADepthSize(12), + kCGLPFAStencilSize(13), + kCGLPFAMinimumPolicy(51), + kCGLPFAMaximumPolicy(52), + kCGLPFASampleBuffers(55), + kCGLPFASamples(56), + kCGLPFAColorFloat(58), + kCGLPFAMultisample(59), + kCGLPFASupersample(60), + kCGLPFASampleAlpha(61), + kCGLPFARendererID(70), + kCGLPFANoRecovery(72), + kCGLPFAAccelerated(73), + kCGLPFAClosestPolicy(74), + kCGLPFABackingStore(76), + kCGLPFABackingVolatile(77), + kCGLPFADisplayMask(84), + kCGLPFAAllowOfflineRenderers(96), + kCGLPFAAcceleratedCompute(97), + kCGLPFAOpenGLProfile(99), + kCGLPFASupportsAutomaticGraphicsSwitching(101), + kCGLPFAVirtualScreenCount(128), + kCGLPFAAuxBuffers(7), + kCGLPFAAccumSize(14), + kCGLPFAAuxDepthStencil(57), + kCGLPFAStereo(6), + kCGLPFAOffScreen(53), + kCGLPFAWindow(80), + kCGLPFACompliant(83), + kCGLPFAPBuffer(90), + kCGLPFARemotePBuffer(91), + kCGLPFASingleRenderer(71), + kCGLPFARobust(75), + kCGLPFAMPSafe(78), + kCGLPFAMultiScreen(81), + kCGLPFAFullScreen(54); + + final int value; + const _CGLPixelFormatAttribute(this.value); + + static _CGLPixelFormatAttribute fromValue(int value) => switch (value) { + 1 => kCGLPFAAllRenderers, + 3 => kCGLPFATripleBuffer, + 5 => kCGLPFADoubleBuffer, + 8 => kCGLPFAColorSize, + 11 => kCGLPFAAlphaSize, + 12 => kCGLPFADepthSize, + 13 => kCGLPFAStencilSize, + 51 => kCGLPFAMinimumPolicy, + 52 => kCGLPFAMaximumPolicy, + 55 => kCGLPFASampleBuffers, + 56 => kCGLPFASamples, + 58 => kCGLPFAColorFloat, + 59 => kCGLPFAMultisample, + 60 => kCGLPFASupersample, + 61 => kCGLPFASampleAlpha, + 70 => kCGLPFARendererID, + 72 => kCGLPFANoRecovery, + 73 => kCGLPFAAccelerated, + 74 => kCGLPFAClosestPolicy, + 76 => kCGLPFABackingStore, + 77 => kCGLPFABackingVolatile, + 84 => kCGLPFADisplayMask, + 96 => kCGLPFAAllowOfflineRenderers, + 97 => kCGLPFAAcceleratedCompute, + 99 => kCGLPFAOpenGLProfile, + 101 => kCGLPFASupportsAutomaticGraphicsSwitching, + 128 => kCGLPFAVirtualScreenCount, + 7 => kCGLPFAAuxBuffers, + 14 => kCGLPFAAccumSize, + 57 => kCGLPFAAuxDepthStencil, + 6 => kCGLPFAStereo, + 53 => kCGLPFAOffScreen, + 80 => kCGLPFAWindow, + 83 => kCGLPFACompliant, + 90 => kCGLPFAPBuffer, + 91 => kCGLPFARemotePBuffer, + 71 => kCGLPFASingleRenderer, + 75 => kCGLPFARobust, + 78 => kCGLPFAMPSafe, + 81 => kCGLPFAMultiScreen, + 54 => kCGLPFAFullScreen, + _ => throw ArgumentError( + 'Unknown value for _CGLPixelFormatAttribute: $value', + ), + }; +} + +final class _CGLPixelFormatObject extends ffi.Opaque {} + +final class _CGLRendererInfoObject extends ffi.Opaque {} + +enum _CGLRendererProperty { + kCGLRPOffScreen(53), + kCGLRPRendererID(70), + kCGLRPAccelerated(73), + kCGLRPBackingStore(76), + kCGLRPWindow(80), + kCGLRPCompliant(83), + kCGLRPDisplayMask(84), + kCGLRPBufferModes(100), + kCGLRPColorModes(103), + kCGLRPAccumModes(104), + kCGLRPDepthModes(105), + kCGLRPStencilModes(106), + kCGLRPMaxAuxBuffers(107), + kCGLRPMaxSampleBuffers(108), + kCGLRPMaxSamples(109), + kCGLRPSampleModes(110), + kCGLRPSampleAlpha(111), + kCGLRPGPUVertProcCapable(122), + kCGLRPGPUFragProcCapable(123), + kCGLRPRendererCount(128), + kCGLRPOnline(129), + kCGLRPAcceleratedCompute(130), + kCGLRPVideoMemoryMegabytes(131), + kCGLRPTextureMemoryMegabytes(132), + kCGLRPMajorGLVersion(133), + kCGLRPRegistryIDLow(140), + kCGLRPRegistryIDHigh(141), + kCGLRPRemovable(142), + kCGLRPRobust(75), + kCGLRPMPSafe(78), + kCGLRPMultiScreen(81), + kCGLRPFullScreen(54), + kCGLRPVideoMemory(120), + kCGLRPTextureMemory(121); + + final int value; + const _CGLRendererProperty(this.value); + + static _CGLRendererProperty fromValue(int value) => switch (value) { + 53 => kCGLRPOffScreen, + 70 => kCGLRPRendererID, + 73 => kCGLRPAccelerated, + 76 => kCGLRPBackingStore, + 80 => kCGLRPWindow, + 83 => kCGLRPCompliant, + 84 => kCGLRPDisplayMask, + 100 => kCGLRPBufferModes, + 103 => kCGLRPColorModes, + 104 => kCGLRPAccumModes, + 105 => kCGLRPDepthModes, + 106 => kCGLRPStencilModes, + 107 => kCGLRPMaxAuxBuffers, + 108 => kCGLRPMaxSampleBuffers, + 109 => kCGLRPMaxSamples, + 110 => kCGLRPSampleModes, + 111 => kCGLRPSampleAlpha, + 122 => kCGLRPGPUVertProcCapable, + 123 => kCGLRPGPUFragProcCapable, + 128 => kCGLRPRendererCount, + 129 => kCGLRPOnline, + 130 => kCGLRPAcceleratedCompute, + 131 => kCGLRPVideoMemoryMegabytes, + 132 => kCGLRPTextureMemoryMegabytes, + 133 => kCGLRPMajorGLVersion, + 140 => kCGLRPRegistryIDLow, + 141 => kCGLRPRegistryIDHigh, + 142 => kCGLRPRemovable, + 75 => kCGLRPRobust, + 78 => kCGLRPMPSafe, + 81 => kCGLRPMultiScreen, + 54 => kCGLRPFullScreen, + 120 => kCGLRPVideoMemory, + 121 => kCGLRPTextureMemory, + _ => throw ArgumentError('Unknown value for _CGLRendererProperty: $value'), + }; +} + +final class _CMSDecoder extends ffi.Opaque {} + +final class _CMSEncoder extends ffi.Opaque {} + +@Deprecated('Deprecated') +const int _MixedModeMagic = 43774; + +final class _NXEvent extends ffi.Struct { + @SInt32() + external int type; + + external UnnamedStruct$20 location; + + @UInt64() + external int time$1; + + @SInt32() + external int flags; + + @UInt32() + external int window; + + @UInt64() + external int service_id; + + @SInt32() + external int ext_pid; + + external NXEventData data; +} + +final class _NXEventExt extends ffi.Struct { + external NXEvent payload; + + external NXEventExtension extension; +} + +final class _NXEventExtension extends ffi.Struct { + @UInt32() + external int flags; + + external audit_token_t audit$1; +} + +final class _NXPoint extends ffi.Struct { + @NXCoord() + external double x; + + @NXCoord() + external double y; +} + +final class _NXSize extends ffi.Struct { + @NXCoord() + external double width; + + @NXCoord() + external double height; +} + +final class _NXTabletPointData extends ffi.Struct { + @SInt32() + external int x; + + @SInt32() + external int y; + + @SInt32() + external int z; + + @UInt16() + external int buttons; + + @UInt16() + external int pressure; + + external UnnamedStruct$11 tilt; + + @UInt16() + external int rotation; + + @SInt16() + external int tangentialPressure; + + @UInt16() + external int deviceID; + + @SInt16() + external int vendor1; + + @SInt16() + external int vendor2; + + @SInt16() + external int vendor3; +} + +final class _NXTabletProximityData extends ffi.Struct { + @UInt16() + external int vendorID; + + @UInt16() + external int tabletID; + + @UInt16() + external int pointerID; + + @UInt16() + external int deviceID; + + @UInt16() + external int systemTabletID; + + @UInt16() + external int vendorPointerType; + + @UInt32() + external int pointerSerialNumber; + + @UInt64() + external int uniqueID; + + @UInt32() + external int capabilityMask; + + @UInt8() + external int pointerType; + + @UInt8() + external int enterProximity; + + @SInt16() + external int reserved1; +} + +@ffi.Packed(1) +final class _OSUnalignedU16 extends ffi.Struct { + @ffi.Uint16() + external int __val; +} + +@ffi.Packed(1) +final class _OSUnalignedU32 extends ffi.Struct { + @ffi.Uint32() + external int __val; +} + +@ffi.Packed(1) +final class _OSUnalignedU64 extends ffi.Struct { + @ffi.Uint64() + external int __val; +} + +final class _RuneCharClass extends ffi.Struct { + @ffi.Array.multi([14]) + external ffi.Array __name; + + @__uint32_t() + external int __mask; +} + +final class _RuneEntry extends ffi.Struct { + @__darwin_rune_t() + external int __min; + + @__darwin_rune_t() + external int __max; + + @__darwin_rune_t() + external int __map; + + external ffi.Pointer<__uint32_t> __types; +} + +final class _RuneLocale extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array __magic; + + @ffi.Array.multi([32]) + external ffi.Array __encoding; + + external ffi.Pointer< + ffi.NativeFunction< + __darwin_rune_t Function( + ffi.Pointer, + __darwin_size_t, + ffi.Pointer>, + ) + > + > + __sgetrune; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + __darwin_rune_t, + ffi.Pointer, + __darwin_size_t, + ffi.Pointer>, + ) + > + > + __sputrune; + + @__darwin_rune_t() + external int __invalid_rune; + + @ffi.Array.multi([256]) + external ffi.Array<__uint32_t> __runetype; + + @ffi.Array.multi([256]) + external ffi.Array<__darwin_rune_t> __maplower; + + @ffi.Array.multi([256]) + external ffi.Array<__darwin_rune_t> __mapupper; + + external _RuneRange __runetype_ext; + + external _RuneRange __maplower_ext; + + external _RuneRange __mapupper_ext; + + external ffi.Pointer __variable; + + @ffi.Int() + external int __variable_len; + + @ffi.Int() + external int __ncharclasses; + + external ffi.Pointer<_RuneCharClass> __charclasses; +} + +final class _RuneRange extends ffi.Struct { + @ffi.Int() + external int __nranges; + + external ffi.Pointer<_RuneEntry> __ranges; +} + +final class __AXObserver extends ffi.Opaque {} + +final class __AXTextMarker extends ffi.Opaque {} + +final class __AXTextMarkerRange extends ffi.Opaque {} + +final class __AXUIElement extends ffi.Opaque {} + +final class __AXValue extends ffi.Opaque {} + +final class __CE_AccessDescription extends ffi.Struct { + external SecAsn1Oid accessMethod; + + external CE_GeneralName accessLocation; +} + +final class __CE_AuthorityInfoAccess extends ffi.Struct { + @uint32() + external int numAccessDescriptions; + + external ffi.Pointer accessDescriptions; +} + +final class __CE_AuthorityKeyID extends ffi.Struct { + @CSSM_BOOL() + external int keyIdentifierPresent; + + external SecAsn1Item keyIdentifier; + + @CSSM_BOOL() + external int generalNamesPresent; + + external ffi.Pointer generalNames; + + @CSSM_BOOL() + external int serialNumberPresent; + + external SecAsn1Item serialNumber; +} + +final class __CE_BasicConstraints extends ffi.Struct { + @CSSM_BOOL() + external int cA; + + @CSSM_BOOL() + external int pathLenConstraintPresent; + + @uint32() + external int pathLenConstraint; +} + +final class __CE_CRLDistPointsSyntax extends ffi.Struct { + @uint32() + external int numDistPoints; + + external ffi.Pointer distPoints; +} + +final class __CE_CRLDistributionPoint extends ffi.Struct { + external ffi.Pointer distPointName; + + @CSSM_BOOL() + external int reasonsPresent; + + @CE_CrlDistReasonFlags() + external int reasons; + + external ffi.Pointer crlIssuer; +} + +final class __CE_CertPolicies extends ffi.Struct { + @uint32() + external int numPolicies; + + external ffi.Pointer policies; +} + +enum __CE_CrlDistributionPointNameType { + CE_CDNT_FullName(0), + CE_CDNT_NameRelativeToCrlIssuer(1); + + final int value; + const __CE_CrlDistributionPointNameType(this.value); + + static __CE_CrlDistributionPointNameType fromValue(int value) => + switch (value) { + 0 => CE_CDNT_FullName, + 1 => CE_CDNT_NameRelativeToCrlIssuer, + _ => throw ArgumentError( + 'Unknown value for __CE_CrlDistributionPointNameType: $value', + ), + }; +} + +final class __CE_DataAndType extends ffi.Struct { + @ffi.UnsignedInt() + external int typeAsInt; + + __CE_DataType get type => __CE_DataType.fromValue(typeAsInt); + set type(__CE_DataType value) => typeAsInt = value.value; + + external CE_Data extension; + + @CSSM_BOOL() + external int critical; +} + +enum __CE_DataType { + DT_AuthorityKeyID(0), + DT_SubjectKeyID(1), + DT_KeyUsage(2), + DT_SubjectAltName(3), + DT_IssuerAltName(4), + DT_ExtendedKeyUsage(5), + DT_BasicConstraints(6), + DT_CertPolicies(7), + DT_NetscapeCertType(8), + DT_CrlNumber(9), + DT_DeltaCrl(10), + DT_CrlReason(11), + DT_CrlDistributionPoints(12), + DT_IssuingDistributionPoint(13), + DT_AuthorityInfoAccess(14), + DT_Other(15), + DT_QC_Statements(16), + DT_NameConstraints(17), + DT_PolicyMappings(18), + DT_PolicyConstraints(19), + DT_InhibitAnyPolicy(20); + + final int value; + const __CE_DataType(this.value); + + static __CE_DataType fromValue(int value) => switch (value) { + 0 => DT_AuthorityKeyID, + 1 => DT_SubjectKeyID, + 2 => DT_KeyUsage, + 3 => DT_SubjectAltName, + 4 => DT_IssuerAltName, + 5 => DT_ExtendedKeyUsage, + 6 => DT_BasicConstraints, + 7 => DT_CertPolicies, + 8 => DT_NetscapeCertType, + 9 => DT_CrlNumber, + 10 => DT_DeltaCrl, + 11 => DT_CrlReason, + 12 => DT_CrlDistributionPoints, + 13 => DT_IssuingDistributionPoint, + 14 => DT_AuthorityInfoAccess, + 15 => DT_Other, + 16 => DT_QC_Statements, + 17 => DT_NameConstraints, + 18 => DT_PolicyMappings, + 19 => DT_PolicyConstraints, + 20 => DT_InhibitAnyPolicy, + _ => throw ArgumentError('Unknown value for __CE_DataType: $value'), + }; +} + +final class __CE_DistributionPointName extends ffi.Struct { + @ffi.UnsignedInt() + external int nameTypeAsInt; + + __CE_CrlDistributionPointNameType get nameType => + __CE_CrlDistributionPointNameType.fromValue(nameTypeAsInt); + set nameType(__CE_CrlDistributionPointNameType value) => + nameTypeAsInt = value.value; + + external UnnamedUnion$8 dpn; +} + +final class __CE_ExtendedKeyUsage extends ffi.Struct { + @uint32() + external int numPurposes; + + external CSSM_OID_PTR purposes; +} + +final class __CE_GeneralName extends ffi.Struct { + @ffi.UnsignedInt() + external int nameTypeAsInt; + + __CE_GeneralNameType get nameType => + __CE_GeneralNameType.fromValue(nameTypeAsInt); + set nameType(__CE_GeneralNameType value) => nameTypeAsInt = value.value; + + @CSSM_BOOL() + external int berEncoded; + + external SecAsn1Item name; +} + +enum __CE_GeneralNameType { + GNT_OtherName(0), + GNT_RFC822Name(1), + GNT_DNSName(2), + GNT_X400Address(3), + GNT_DirectoryName(4), + GNT_EdiPartyName(5), + GNT_URI(6), + GNT_IPAddress(7), + GNT_RegisteredID(8); + + final int value; + const __CE_GeneralNameType(this.value); + + static __CE_GeneralNameType fromValue(int value) => switch (value) { + 0 => GNT_OtherName, + 1 => GNT_RFC822Name, + 2 => GNT_DNSName, + 3 => GNT_X400Address, + 4 => GNT_DirectoryName, + 5 => GNT_EdiPartyName, + 6 => GNT_URI, + 7 => GNT_IPAddress, + 8 => GNT_RegisteredID, + _ => throw ArgumentError('Unknown value for __CE_GeneralNameType: $value'), + }; +} + +final class __CE_GeneralNames extends ffi.Struct { + @uint32() + external int numNames; + + external ffi.Pointer generalName; +} + +final class __CE_GeneralSubtree extends ffi.Struct { + external ffi.Pointer base; + + @uint32() + external int minimum; + + @CSSM_BOOL() + external int maximumPresent; + + @uint32() + external int maximum; +} + +final class __CE_GeneralSubtrees extends ffi.Struct { + @uint32() + external int numSubtrees; + + external ffi.Pointer subtrees; +} + +final class __CE_IssuingDistributionPoint extends ffi.Struct { + external ffi.Pointer distPointName; + + @CSSM_BOOL() + external int onlyUserCertsPresent; + + @CSSM_BOOL() + external int onlyUserCerts; + + @CSSM_BOOL() + external int onlyCACertsPresent; + + @CSSM_BOOL() + external int onlyCACerts; + + @CSSM_BOOL() + external int onlySomeReasonsPresent; + + @CE_CrlDistReasonFlags() + external int onlySomeReasons; + + @CSSM_BOOL() + external int indirectCrlPresent; + + @CSSM_BOOL() + external int indirectCrl; +} + +final class __CE_NameConstraints extends ffi.Struct { + external ffi.Pointer permitted; + + external ffi.Pointer excluded; +} + +final class __CE_OtherName extends ffi.Struct { + external SecAsn1Oid typeId; + + external SecAsn1Item value; +} + +final class __CE_PolicyConstraints extends ffi.Struct { + @CSSM_BOOL() + external int requireExplicitPolicyPresent; + + @uint32() + external int requireExplicitPolicy; + + @CSSM_BOOL() + external int inhibitPolicyMappingPresent; + + @uint32() + external int inhibitPolicyMapping; +} + +final class __CE_PolicyInformation extends ffi.Struct { + external SecAsn1Oid certPolicyId; + + @uint32() + external int numPolicyQualifiers; + + external ffi.Pointer policyQualifiers; +} + +final class __CE_PolicyMapping extends ffi.Struct { + external SecAsn1Oid issuerDomainPolicy; + + external SecAsn1Oid subjectDomainPolicy; +} + +final class __CE_PolicyMappings extends ffi.Struct { + @uint32() + external int numPolicyMappings; + + external ffi.Pointer policyMappings; +} + +final class __CE_PolicyQualifierInfo extends ffi.Struct { + external SecAsn1Oid policyQualifierId; + + external SecAsn1Item qualifier; +} + +final class __CE_QC_Statement extends ffi.Struct { + external SecAsn1Oid statementId; + + external ffi.Pointer semanticsInfo; + + external ffi.Pointer otherInfo; +} + +final class __CE_QC_Statements extends ffi.Struct { + @uint32() + external int numQCStatements; + + external ffi.Pointer qcStatements; +} + +final class __CE_SemanticsInformation extends ffi.Struct { + external ffi.Pointer semanticsIdentifier; + + external ffi.Pointer + nameRegistrationAuthorities; +} + +final class __CFAllocator extends ffi.Opaque {} + +final class __CFArray extends ffi.Opaque {} + +final class __CFAttributedString extends ffi.Opaque {} + +final class __CFBag extends ffi.Opaque {} + +final class __CFBinaryHeap extends ffi.Opaque {} + +final class __CFBitVector extends ffi.Opaque {} + +final class __CFBoolean extends ffi.Opaque {} + +final class __CFBundle extends ffi.Opaque {} + +enum __CFByteOrder { + CFByteOrderUnknown(0), + CFByteOrderLittleEndian(1), + CFByteOrderBigEndian(2); + + final int value; + const __CFByteOrder(this.value); + + static __CFByteOrder fromValue(int value) => switch (value) { + 0 => CFByteOrderUnknown, + 1 => CFByteOrderLittleEndian, + 2 => CFByteOrderBigEndian, + _ => throw ArgumentError('Unknown value for __CFByteOrder: $value'), + }; +} + +final class __CFCalendar extends ffi.Opaque {} + +final class __CFCharacterSet extends ffi.Opaque {} + +final class __CFData extends ffi.Opaque {} + +final class __CFDate extends ffi.Opaque {} + +final class __CFDateFormatter extends ffi.Opaque {} + +final class __CFDictionary extends ffi.Opaque {} + +final class __CFError extends ffi.Opaque {} + +final class __CFFileDescriptor extends ffi.Opaque {} + +final class __CFFileSecurity extends ffi.Opaque {} + +final class __CFHTTPMessage extends ffi.Opaque {} + +final class __CFHost extends ffi.Opaque {} + +final class __CFLocale extends ffi.Opaque {} + +final class __CFMachPort extends ffi.Opaque {} + +final class __CFMessagePort extends ffi.Opaque {} + +final class __CFNetDiagnostic extends ffi.Opaque {} + +final class __CFNetService extends ffi.Opaque {} + +final class __CFNetServiceBrowser extends ffi.Opaque {} + +final class __CFNetServiceMonitor extends ffi.Opaque {} + +final class __CFNotificationCenter extends ffi.Opaque {} + +final class __CFNull extends ffi.Opaque {} + +final class __CFNumber extends ffi.Opaque {} + +final class __CFNumberFormatter extends ffi.Opaque {} + +final class __CFPlugInInstance extends ffi.Opaque {} + +final class __CFReadStream extends ffi.Opaque {} + +final class __CFRunLoopObserver extends ffi.Opaque {} + +final class __CFRunLoopSource extends ffi.Opaque {} + +final class __CFRunLoopTimer extends ffi.Opaque {} + +final class __CFSet extends ffi.Opaque {} + +final class __CFSocket extends ffi.Opaque {} + +final class __CFStringTokenizer extends ffi.Opaque {} + +final class __CFTimeZone extends ffi.Opaque {} + +final class __CFTree extends ffi.Opaque {} + +final class __CFURL extends ffi.Opaque {} + +final class __CFURLEnumerator extends ffi.Opaque {} + +final class __CFUUID extends ffi.Opaque {} + +final class __CFUserNotification extends ffi.Opaque {} + +final class __CFWriteStream extends ffi.Opaque {} + +final class __CFXMLNode extends ffi.Opaque {} + +final class __CFXMLParser extends ffi.Opaque {} + +final class __CGEvent extends ffi.Opaque {} + +final class __CGEventSource extends ffi.Opaque {} + +final class __CGEventTapInformation extends ffi.Struct { + @ffi.Uint32() + external int eventTapID; + + @ffi.Uint32() + external int tapPointAsInt; + + CGEventTapLocation get tapPoint => + CGEventTapLocation.fromValue(tapPointAsInt); + set tapPoint(CGEventTapLocation value) => tapPointAsInt = value.value; + + @ffi.Uint32() + external int optionsAsInt; + + CGEventTapOptions get options => CGEventTapOptions.fromValue(optionsAsInt); + set options(CGEventTapOptions value) => optionsAsInt = value.value; + + @CGEventMask() + external int eventsOfInterest; + + @pid_t() + external int tappingProcess; + + @pid_t() + external int processBeingTapped; + + @ffi.Bool() + external bool enabled; + + @ffi.Float() + external double minUsecLatency; + + @ffi.Float() + external double avgUsecLatency; + + @ffi.Float() + external double maxUsecLatency; +} + +final class __CGEventTapProxy extends ffi.Opaque {} + +final class __CSIdentity extends ffi.Opaque {} + +final class __CSIdentityAuthority extends ffi.Opaque {} + +final class __CSIdentityQuery extends ffi.Opaque {} + +final class __CTFont extends ffi.Opaque {} + +final class __CTFontCollection extends ffi.Opaque {} + +final class __CTFontDescriptor extends ffi.Opaque {} + +final class __CTFrame extends ffi.Opaque {} + +final class __CTFramesetter extends ffi.Opaque {} + +final class __CTGlyphInfo extends ffi.Opaque {} + +final class __CTLine extends ffi.Opaque {} + +final class __CTParagraphStyle extends ffi.Opaque {} + +final class __CTRubyAnnotation extends ffi.Opaque {} + +final class __CTRun extends ffi.Opaque {} + +final class __CTRunDelegate extends ffi.Opaque {} + +final class __CTTextTab extends ffi.Opaque {} + +final class __CTTypesetter extends ffi.Opaque {} + +final class __CVBuffer extends ffi.Opaque {} + +final class __CVDisplayLink extends ffi.Opaque {} + +final class __CVMetalBufferCache extends ffi.Opaque {} + +final class __CVMetalTextureCache extends ffi.Opaque {} + +final class __CVOpenGLBufferPool extends ffi.Opaque {} + +final class __CVOpenGLTextureCache extends ffi.Opaque {} + +final class __CVPixelBufferPool extends ffi.Opaque {} + +final class __DADisk extends ffi.Opaque {} + +final class __DASession extends ffi.Opaque {} + +final class __DCSDictionary extends ffi.Opaque {} + +final class __FSEventStream extends ffi.Opaque {} + +final class __FSFileOperation extends ffi.Opaque {} + +final class __FSFileSecurity extends ffi.Opaque {} + +final class __GLsync extends ffi.Opaque {} + +final class __HIShape extends ffi.Opaque {} + +final class __IOFixedPoint32 extends ffi.Struct { + @ffi.Int32() + external int x; + + @ffi.Int32() + external int y; +} + +final class __IOSurface extends ffi.Opaque {} + +final class __MDItem extends ffi.Opaque {} + +final class __MDLabel extends ffi.Opaque {} + +final class __MDQuery extends ffi.Opaque {} + +final class __NSAppleEventManagerSuspension extends ffi.Opaque {} + +final class __ReplyUnion__clock_priv_subsystem extends ffi.Union { + external __Reply__clock_set_time_t Reply_clock_set_time; + + external __Reply__clock_set_attributes_t Reply_clock_set_attributes; +} + +final class __ReplyUnion__host_priv_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__host_security_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__mach_host_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__mach_port_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__processor_set_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__processor_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__task_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__thread_act_subsystem extends ffi.Opaque {} + +final class __ReplyUnion__vm_map_subsystem extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Reply___host_page_size_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_size_t() + external int out_page_size; +} + +final class __Reply__act_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int old_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array old_state; +} + +final class __Reply__act_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__clock_set_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__clock_set_time_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__etap_trace_thread_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_check_multiuser_mode_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Uint32() + external int multiuser_mode; +} + +final class __Reply__host_create_mach_voucher_t extends ffi.Opaque {} + +final class __Reply__host_default_memory_manager_t extends ffi.Opaque {} + +final class __Reply__host_get_UNDServer_t extends ffi.Opaque {} + +final class __Reply__host_get_atm_diagnostic_flag_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Uint32() + external int diagnostic_flag; +} + +final class __Reply__host_get_boot_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int boot_infoOffset; + + @mach_msg_type_number_t() + external int boot_infoCnt; + + @ffi.Array.multi([4096]) + external ffi.Array boot_info; +} + +final class __Reply__host_get_clock_control_t extends ffi.Opaque {} + +final class __Reply__host_get_clock_service_t extends ffi.Opaque {} + +final class __Reply__host_get_exception_ports_t extends ffi.Opaque {} + +final class __Reply__host_get_io_main_t extends ffi.Opaque {} + +final class __Reply__host_get_multiuser_config_flags_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Uint32() + external int multiuser_flags; +} + +final class __Reply__host_get_special_port_t extends ffi.Opaque {} + +final class __Reply__host_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int host_info_outCnt; + + @ffi.Array.multi([68]) + external ffi.Array host_info_out; +} + +final class __Reply__host_kernel_version_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int kernel_versionOffset; + + @mach_msg_type_number_t() + external int kernel_versionCnt; + + @ffi.Array.multi([512]) + external ffi.Array kernel_version; +} + +final class __Reply__host_lockgroup_info_t extends ffi.Opaque {} + +final class __Reply__host_priv_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int host_info_outCnt; + + @ffi.Array.multi([68]) + external ffi.Array host_info_out; +} + +final class __Reply__host_processor_info_t extends ffi.Opaque {} + +final class __Reply__host_processor_set_priv_t extends ffi.Opaque {} + +final class __Reply__host_processor_sets_t extends ffi.Opaque {} + +final class __Reply__host_processors_t extends ffi.Opaque {} + +final class __Reply__host_reboot_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_register_mach_voucher_attr_manager_t + extends ffi.Opaque {} + +final class __Reply__host_register_well_known_mach_voucher_attr_manager_t + extends ffi.Opaque {} + +final class __Reply__host_request_notification_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_security_create_task_token_t extends ffi.Opaque {} + +final class __Reply__host_security_set_task_token_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_set_UNDServer_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_set_atm_diagnostic_flag_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_set_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_set_multiuser_config_flags_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_set_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__host_statistics64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int host_info64_outCnt; + + @ffi.Array.multi([256]) + external ffi.Array host_info64_out; +} + +final class __Reply__host_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int host_info_outCnt; + + @ffi.Array.multi([68]) + external ffi.Array host_info_out; +} + +final class __Reply__host_swap_exception_ports_t extends ffi.Opaque {} + +final class __Reply__host_virtual_physical_table_info_t extends ffi.Opaque {} + +final class __Reply__kext_request_t extends ffi.Opaque {} + +final class __Reply__kmod_control_t extends ffi.Opaque {} + +final class __Reply__kmod_create_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @kmod_t() + external int module; +} + +final class __Reply__kmod_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__kmod_get_info_t extends ffi.Opaque {} + +final class __Reply__lock_set_create_t extends ffi.Opaque {} + +final class __Reply__lock_set_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_make_memory_entry_64_t extends ffi.Opaque {} + +final class __Reply__mach_make_memory_entry_t extends ffi.Opaque {} + +final class __Reply__mach_memory_info_t extends ffi.Opaque {} + +final class __Reply__mach_memory_object_memory_entry_64_t extends ffi.Opaque {} + +final class __Reply__mach_memory_object_memory_entry_t extends ffi.Opaque {} + +final class __Reply__mach_port_allocate_full_t extends ffi.Opaque {} + +final class __Reply__mach_port_allocate_name_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_allocate_qos_t extends ffi.Opaque {} + +final class __Reply__mach_port_allocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_name_t() + external int name; +} + +final class __Reply__mach_port_assert_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_construct_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_name_t() + external int name; +} + +final class __Reply__mach_port_deallocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_destruct_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_dnrequest_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.UnsignedInt() + external int dnr_total; + + @ffi.UnsignedInt() + external int dnr_used; +} + +final class __Reply__mach_port_extract_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_extract_right_t extends ffi.Opaque {} + +final class __Reply__mach_port_get_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int port_info_outCnt; + + @ffi.Array.multi([17]) + external ffi.Array port_info_out; +} + +@ffi.Packed(4) +final class __Reply__mach_port_get_context_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_context_t() + external int context; +} + +final class __Reply__mach_port_get_refs_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_urefs_t() + external int refs; +} + +final class __Reply__mach_port_get_service_port_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + external mach_service_port_info_data_t sp_info_out; +} + +final class __Reply__mach_port_get_set_status_t extends ffi.Opaque {} + +final class __Reply__mach_port_get_srights_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_rights_t() + external int srights; +} + +final class __Reply__mach_port_guard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_guard_with_flags_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_insert_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_insert_right_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +@ffi.Packed(4) +final class __Reply__mach_port_is_connection_for_service_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Uint64() + external int filter_policy_id; +} + +final class __Reply__mach_port_kernel_object_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.UnsignedInt() + external int object_type; + + @ffi.UnsignedInt() + external int object_addr; +} + +@ffi.Packed(4) +final class __Reply__mach_port_kobject_description_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @natural_t() + external int object_typeAsInt; + + ipc_info_object_type_t get object_type => + ipc_info_object_type_t.fromValue(object_typeAsInt); + set object_type(ipc_info_object_type_t value) => + object_typeAsInt = value.value; + + @mach_vm_address_t() + external int object_addr; + + @mach_msg_type_number_t() + external int descriptionOffset; + + @mach_msg_type_number_t() + external int descriptionCnt; + + @ffi.Array.multi([512]) + external ffi.Array description; +} + +@ffi.Packed(4) +final class __Reply__mach_port_kobject_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @natural_t() + external int object_typeAsInt; + + ipc_info_object_type_t get object_type => + ipc_info_object_type_t.fromValue(object_typeAsInt); + set object_type(ipc_info_object_type_t value) => + object_typeAsInt = value.value; + + @mach_vm_address_t() + external int object_addr; +} + +final class __Reply__mach_port_mod_refs_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_move_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_names_t extends ffi.Opaque {} + +final class __Reply__mach_port_peek_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_seqno_t() + external int request_seqnop; + + @mach_msg_size_t() + external int msg_sizep; + + @mach_msg_id_t() + external int msg_idp; + + @mach_msg_type_number_t() + external int trailer_infopCnt; + + @ffi.Array.multi([68]) + external ffi.Array trailer_infop; +} + +final class __Reply__mach_port_rename_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_request_notification_t extends ffi.Opaque {} + +final class __Reply__mach_port_set_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_set_context_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_set_mscount_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_set_seqno_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_space_basic_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + external ipc_info_space_basic_t basic_info; +} + +final class __Reply__mach_port_space_info_t extends ffi.Opaque {} + +final class __Reply__mach_port_swap_guard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_port_type_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_port_type_t() + external int ptype; +} + +final class __Reply__mach_port_unguard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_ports_lookup_t extends ffi.Opaque {} + +final class __Reply__mach_ports_register_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__mach_vm_region_info_64_t extends ffi.Opaque {} + +final class __Reply__mach_vm_region_info_t extends ffi.Opaque {} + +final class __Reply__mach_vm_wire_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +@ffi.Packed(4) +final class __Reply__mach_zone_info_for_zone_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + external mach_zone_info_t info; +} + +final class __Reply__mach_zone_info_t extends ffi.Opaque {} + +final class __Reply__processor_assign_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_exit_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_get_assignment_t extends ffi.Opaque {} + +final class __Reply__processor_info_t extends ffi.Opaque {} + +final class __Reply__processor_set_create_t extends ffi.Opaque {} + +final class __Reply__processor_set_default_t extends ffi.Opaque {} + +final class __Reply__processor_set_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_set_info_t extends ffi.Opaque {} + +final class __Reply__processor_set_max_priority_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_set_policy_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_set_policy_disable_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__processor_set_policy_enable_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +@ffi.Packed(4) +final class __Reply__processor_set_stack_usage_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.UnsignedInt() + external int ltotal; + + @vm_size_t() + external int space; + + @vm_size_t() + external int resident; + + @vm_size_t() + external int maxusage; + + @vm_offset_t() + external int maxstack; +} + +final class __Reply__processor_set_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int info_outCnt; + + @ffi.Array.multi([5]) + external ffi.Array info_out; +} + +final class __Reply__processor_set_tasks_t extends ffi.Opaque {} + +final class __Reply__processor_set_tasks_with_flavor_t extends ffi.Opaque {} + +final class __Reply__processor_set_threads_t extends ffi.Opaque {} + +final class __Reply__processor_start_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__semaphore_create_t extends ffi.Opaque {} + +final class __Reply__semaphore_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_assign_default_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_assign_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_create_identity_token_t extends ffi.Opaque {} + +final class __Reply__task_create_t extends ffi.Opaque {} + +final class __Reply__task_dyld_process_info_notify_deregister_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_dyld_process_info_notify_register_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_generate_corpse_t extends ffi.Opaque {} + +final class __Reply__task_get_assignment_t extends ffi.Opaque {} + +final class __Reply__task_get_dyld_image_infos_t extends ffi.Opaque {} + +final class __Reply__task_get_emulation_vector_t extends ffi.Opaque {} + +final class __Reply__task_get_exc_guard_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @task_exc_guard_behavior_t() + external int behavior; +} + +final class __Reply__task_get_exception_ports_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int masksCnt; + + @ffi.Array.multi([32]) + external ffi.Array masks; + + @ffi.Array.multi([32]) + external ffi.Array old_handlers_info; + + @ffi.Array.multi([32]) + external ffi.Array old_behaviors; + + @ffi.Array.multi([32]) + external ffi.Array old_flavors; +} + +final class __Reply__task_get_exception_ports_t extends ffi.Opaque {} + +final class __Reply__task_get_mach_voucher_t extends ffi.Opaque {} + +final class __Reply__task_get_special_port_t extends ffi.Opaque {} + +final class __Reply__task_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int old_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array old_state; +} + +final class __Reply__task_identity_token_get_task_port_t extends ffi.Opaque {} + +final class __Reply__task_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int task_info_outCnt; + + @ffi.Array.multi([94]) + external ffi.Array task_info_out; +} + +final class __Reply__task_inspect_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int info_outCnt; + + @ffi.Array.multi([4]) + external ffi.Array info_out; +} + +@ffi.Packed(4) +final class __Reply__task_map_corpse_info_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_vm_address_t() + external int kcd_addr_begin; + + @mach_vm_size_t() + external int kcd_size; +} + +@ffi.Packed(4) +final class __Reply__task_map_corpse_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int kcd_addr_begin; + + @ffi.Uint32() + external int kcd_size; +} + +@ffi.Packed(4) +final class __Reply__task_map_kcdata_object_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_vm_address_t() + external int kcd_addr_begin; + + @mach_vm_size_t() + external int kcd_size; +} + +final class __Reply__task_policy_get_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @ffi.Array.multi([16]) + external ffi.Array policy_info; + + @boolean_t() + external int get_default; +} + +final class __Reply__task_policy_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +@ffi.Packed(4) +final class __Reply__task_purgable_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + external task_purgable_info_t stats; +} + +@ffi.Packed(4) +final class __Reply__task_register_dyld_get_process_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + external dyld_kernel_process_info_t dyld_process_state; +} + +final class __Reply__task_register_dyld_image_infos_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_register_dyld_set_dyld_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_register_dyld_shared_cache_image_info_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_register_hardened_exception_handler_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_resume2_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_resume_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_sample_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_corpse_forking_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_emulation_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_emulation_vector_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_exc_guard_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_mach_voucher_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_phys_footprint_limit_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Int() + external int old_limit; +} + +final class __Reply__task_set_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_port_space_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_ras_pc_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_suspend2_t extends ffi.Opaque {} + +final class __Reply__task_suspend_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_swap_exception_ports_t extends ffi.Opaque {} + +final class __Reply__task_swap_mach_voucher_t extends ffi.Opaque {} + +final class __Reply__task_terminate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_test_async_upcall_propagation_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_test_sync_upcall_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_threads_t extends ffi.Opaque {} + +final class __Reply__task_unregister_dyld_image_infos_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_wire_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__task_zone_info_t extends ffi.Opaque {} + +final class __Reply__thread_abort_safely_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_abort_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_adopt_exception_handler_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_assign_default_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_assign_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_convert_thread_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int out_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array out_state; +} + +final class __Reply__thread_create_running_t extends ffi.Opaque {} + +final class __Reply__thread_create_t extends ffi.Opaque {} + +final class __Reply__thread_depress_abort_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_get_assignment_t extends ffi.Opaque {} + +final class __Reply__thread_get_exception_ports_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int masksCnt; + + @ffi.Array.multi([32]) + external ffi.Array masks; + + @ffi.Array.multi([32]) + external ffi.Array old_handlers_info; + + @ffi.Array.multi([32]) + external ffi.Array old_behaviors; + + @ffi.Array.multi([32]) + external ffi.Array old_flavors; +} + +final class __Reply__thread_get_exception_ports_t extends ffi.Opaque {} + +final class __Reply__thread_get_mach_voucher_t extends ffi.Opaque {} + +final class __Reply__thread_get_special_port_t extends ffi.Opaque {} + +final class __Reply__thread_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int old_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array old_state; +} + +final class __Reply__thread_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int thread_info_outCnt; + + @ffi.Array.multi([32]) + external ffi.Array thread_info_out; +} + +final class __Reply__thread_policy_get_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @ffi.Array.multi([16]) + external ffi.Array policy_info; + + @boolean_t() + external int get_default; +} + +final class __Reply__thread_policy_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_resume_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_sample_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_set_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_set_mach_voucher_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_set_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_set_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_suspend_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_swap_exception_ports_t extends ffi.Opaque {} + +final class __Reply__thread_swap_mach_voucher_t extends ffi.Opaque {} + +final class __Reply__thread_terminate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__thread_wire_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +@ffi.Packed(4) +final class __Reply__vm_allocate_cpm_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; +} + +@ffi.Packed(4) +final class __Reply__vm_allocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; +} + +final class __Reply__vm_behavior_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_copy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_deallocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_inherit_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_machine_attribute_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_machine_attribute_val_t() + external int value; +} + +@ffi.Packed(4) +final class __Reply__vm_map_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; +} + +final class __Reply__vm_map_exec_lockdown_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_map_page_query_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @integer_t() + external int disposition; + + @integer_t() + external int ref_count; +} + +@ffi.Packed(4) +final class __Reply__vm_map_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; +} + +final class __Reply__vm_mapped_pages_info_t extends ffi.Opaque {} + +final class __Reply__vm_msync_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_protect_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_purgable_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Int() + external int state; +} + +final class __Reply__vm_read_list_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @ffi.Array.multi([256]) + external ffi.Array data_list; +} + +@ffi.Packed(4) +final class __Reply__vm_read_overwrite_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_size_t() + external int outsize; +} + +final class __Reply__vm_read_t extends ffi.Opaque {} + +final class __Reply__vm_region_64_t extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Reply__vm_region_recurse_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @natural_t() + external int nesting_depth; + + @mach_msg_type_number_t() + external int infoCnt; + + @ffi.Array.multi([19]) + external ffi.Array info; +} + +@ffi.Packed(4) +final class __Reply__vm_region_recurse_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @natural_t() + external int nesting_depth; + + @mach_msg_type_number_t() + external int infoCnt; + + @ffi.Array.multi([19]) + external ffi.Array info; +} + +final class __Reply__vm_region_t extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Reply__vm_remap_new_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int target_address; + + @vm_prot_t() + external int cur_protection; + + @vm_prot_t() + external int max_protection; +} + +@ffi.Packed(4) +final class __Reply__vm_remap_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; + + @vm_address_t() + external int target_address; + + @vm_prot_t() + external int cur_protection; + + @vm_prot_t() + external int max_protection; +} + +final class __Reply__vm_wire_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __Reply__vm_write_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +final class __RequestUnion__clock_priv_subsystem extends ffi.Union { + external __Request__clock_set_time_t Request_clock_set_time; + + external __Request__clock_set_attributes_t Request_clock_set_attributes; +} + +final class __RequestUnion__host_priv_subsystem extends ffi.Opaque {} + +final class __RequestUnion__host_security_subsystem extends ffi.Opaque {} + +final class __RequestUnion__mach_host_subsystem extends ffi.Opaque {} + +final class __RequestUnion__mach_port_subsystem extends ffi.Opaque {} + +final class __RequestUnion__processor_set_subsystem extends ffi.Union { + external __Request__processor_set_statistics_t + Request_processor_set_statistics; + + external __Request__processor_set_destroy_t Request_processor_set_destroy; + + external __Request__processor_set_max_priority_t + Request_processor_set_max_priority; + + external __Request__processor_set_policy_enable_t + Request_processor_set_policy_enable; + + external __Request__processor_set_policy_disable_t + Request_processor_set_policy_disable; + + external __Request__processor_set_tasks_t Request_processor_set_tasks; + + external __Request__processor_set_threads_t Request_processor_set_threads; + + external __Request__processor_set_policy_control_t + Request_processor_set_policy_control; + + external __Request__processor_set_stack_usage_t + Request_processor_set_stack_usage; + + external __Request__processor_set_info_t Request_processor_set_info; + + external __Request__processor_set_tasks_with_flavor_t + Request_processor_set_tasks_with_flavor; +} + +final class __RequestUnion__processor_subsystem extends ffi.Opaque {} + +final class __RequestUnion__task_subsystem extends ffi.Opaque {} + +final class __RequestUnion__thread_act_subsystem extends ffi.Opaque {} + +final class __RequestUnion__vm_map_subsystem extends ffi.Opaque {} + +final class __Request___host_page_size_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__act_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int flavor; + + @mach_msg_type_number_t() + external int old_stateCnt; +} + +final class __Request__act_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int flavor; + + @mach_msg_type_number_t() + external int new_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array new_state; +} + +final class __Request__clock_set_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @clock_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int clock_attrCnt; + + @ffi.Array.multi([1]) + external ffi.Array clock_attr; +} + +final class __Request__clock_set_time_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + external mach_timespec_t new_time; +} + +final class __Request__etap_trace_thread_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @boolean_t() + external int trace_status; +} + +final class __Request__host_check_multiuser_mode_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_create_mach_voucher_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_msg_type_number_t() + external int recipesCnt; + + @ffi.Array.multi([5120]) + external ffi.Array recipes; +} + +final class __Request__host_default_memory_manager_t extends ffi.Opaque {} + +final class __Request__host_get_UNDServer_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_get_atm_diagnostic_flag_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_get_boot_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_get_clock_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @clock_id_t() + external int clock_id; +} + +final class __Request__host_get_clock_service_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @clock_id_t() + external int clock_id; +} + +final class __Request__host_get_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @exception_mask_t() + external int exception_mask; +} + +final class __Request__host_get_io_main_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_get_multiuser_config_flags_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_get_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int node; + + @ffi.Int() + external int which; +} + +final class __Request__host_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @host_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int host_info_outCnt; +} + +final class __Request__host_kernel_version_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_lockgroup_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_priv_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @host_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int host_info_outCnt; +} + +final class __Request__host_processor_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @processor_flavor_t() + external int flavor; +} + +final class __Request__host_processor_set_priv_t extends ffi.Opaque {} + +final class __Request__host_processor_sets_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_processors_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__host_reboot_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int options; +} + +final class __Request__host_register_mach_voucher_attr_manager_t + extends ffi.Opaque {} + +final class __Request__host_register_well_known_mach_voucher_attr_manager_t + extends ffi.Opaque {} + +final class __Request__host_request_notification_t extends ffi.Opaque {} + +final class __Request__host_security_create_task_token_t extends ffi.Opaque {} + +final class __Request__host_security_set_task_token_t extends ffi.Opaque {} + +final class __Request__host_set_UNDServer_t extends ffi.Opaque {} + +final class __Request__host_set_atm_diagnostic_flag_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Uint32() + external int diagnostic_flag; +} + +final class __Request__host_set_exception_ports_t extends ffi.Opaque {} + +final class __Request__host_set_multiuser_config_flags_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Uint32() + external int multiuser_flags; +} + +final class __Request__host_set_special_port_t extends ffi.Opaque {} + +final class __Request__host_statistics64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @host_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int host_info64_outCnt; +} + +final class __Request__host_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @host_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int host_info_outCnt; +} + +final class __Request__host_swap_exception_ports_t extends ffi.Opaque {} + +final class __Request__host_virtual_physical_table_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__kext_request_t extends ffi.Opaque {} + +final class __Request__kmod_control_t extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Request__kmod_create_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int info; +} + +final class __Request__kmod_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kmod_t() + external int module; +} + +final class __Request__kmod_get_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__lock_set_create_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int n_ulocks; + + @ffi.Int() + external int policy; +} + +final class __Request__lock_set_destroy_t extends ffi.Opaque {} + +final class __Request__mach_make_memory_entry_64_t extends ffi.Opaque {} + +final class __Request__mach_make_memory_entry_t extends ffi.Opaque {} + +final class __Request__mach_memory_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__mach_memory_object_memory_entry_64_t + extends ffi.Opaque {} + +final class __Request__mach_memory_object_memory_entry_t extends ffi.Opaque {} + +final class __Request__mach_port_allocate_full_t extends ffi.Opaque {} + +final class __Request__mach_port_allocate_name_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_right_t() + external int right; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_allocate_qos_t extends ffi.Opaque {} + +final class __Request__mach_port_allocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_right_t() + external int right; +} + +final class __Request__mach_port_assert_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int infoCnt; + + @ffi.Array.multi([17]) + external ffi.Array info; +} + +final class __Request__mach_port_construct_t extends ffi.Opaque {} + +final class __Request__mach_port_deallocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +@ffi.Packed(4) +final class __Request__mach_port_destruct_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_delta_t() + external int srdelta; + + @mach_port_context_t() + external int guard; +} + +final class __Request__mach_port_dnrequest_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_extract_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_name_t() + external int pset; +} + +final class __Request__mach_port_extract_right_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_msg_type_name_t() + external int msgt_name; +} + +final class __Request__mach_port_get_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int port_info_outCnt; +} + +final class __Request__mach_port_get_context_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_get_refs_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_right_t() + external int right; +} + +final class __Request__mach_port_get_service_port_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_get_set_status_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_get_srights_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +@ffi.Packed(4) +final class __Request__mach_port_guard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_context_t() + external int guard; + + @boolean_t() + external int strict; +} + +@ffi.Packed(4) +final class __Request__mach_port_guard_with_flags_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_context_t() + external int guard; + + @ffi.Uint64() + external int flags; +} + +final class __Request__mach_port_insert_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_name_t() + external int pset; +} + +final class __Request__mach_port_insert_right_t extends ffi.Opaque {} + +final class __Request__mach_port_is_connection_for_service_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int connection_port; + + @mach_port_name_t() + external int service_port; +} + +final class __Request__mach_port_kernel_object_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_kobject_description_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_kobject_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +final class __Request__mach_port_mod_refs_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_right_t() + external int right; + + @mach_port_delta_t() + external int delta; +} + +final class __Request__mach_port_move_member_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int member; + + @mach_port_name_t() + external int after; +} + +final class __Request__mach_port_names_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__mach_port_peek_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_msg_trailer_type_t() + external int trailer_type; + + @mach_port_seqno_t() + external int request_seqnop; + + @mach_msg_type_number_t() + external int trailer_infopCnt; +} + +final class __Request__mach_port_rename_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int old_name; + + @mach_port_name_t() + external int new_name; +} + +final class __Request__mach_port_request_notification_t extends ffi.Opaque {} + +final class __Request__mach_port_set_attributes_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int port_infoCnt; + + @ffi.Array.multi([17]) + external ffi.Array port_info; +} + +@ffi.Packed(4) +final class __Request__mach_port_set_context_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_context_t() + external int context; +} + +final class __Request__mach_port_set_mscount_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_mscount_t() + external int mscount; +} + +final class __Request__mach_port_set_seqno_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_seqno_t() + external int seqno; +} + +final class __Request__mach_port_space_basic_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__mach_port_space_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +@ffi.Packed(4) +final class __Request__mach_port_swap_guard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_context_t() + external int old_guard; + + @mach_port_context_t() + external int new_guard; +} + +final class __Request__mach_port_type_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; +} + +@ffi.Packed(4) +final class __Request__mach_port_unguard_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int name; + + @mach_port_context_t() + external int guard; +} + +final class __Request__mach_ports_lookup_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__mach_ports_register_t extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Request__mach_vm_region_info_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; +} + +@ffi.Packed(4) +final class __Request__mach_vm_region_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; +} + +final class __Request__mach_vm_wire_t extends ffi.Opaque {} + +final class __Request__mach_zone_info_for_zone_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + external mach_zone_name_t name; +} + +final class __Request__mach_zone_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_assign_t extends ffi.Opaque {} + +final class __Request__processor_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_msg_type_number_t() + external int processor_cmdCnt; + + @ffi.Array.multi([20]) + external ffi.Array processor_cmd; +} + +final class __Request__processor_exit_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_get_assignment_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @processor_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int processor_info_outCnt; +} + +final class __Request__processor_set_create_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_set_default_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_set_destroy_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_set_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int flavor; + + @mach_msg_type_number_t() + external int info_outCnt; +} + +final class __Request__processor_set_max_priority_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int max_priority; + + @boolean_t() + external int change_threads; +} + +final class __Request__processor_set_policy_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @processor_set_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @ffi.Array.multi([5]) + external ffi.Array policy_info; + + @boolean_t() + external int change; +} + +final class __Request__processor_set_policy_disable_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int policy; + + @boolean_t() + external int change_threads; +} + +final class __Request__processor_set_policy_enable_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int policy; +} + +final class __Request__processor_set_stack_usage_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_set_statistics_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @processor_set_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int info_outCnt; +} + +final class __Request__processor_set_tasks_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_set_tasks_with_flavor_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_task_flavor_t() + external int flavor; +} + +final class __Request__processor_set_threads_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__processor_start_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__semaphore_create_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int policy; + + @ffi.Int() + external int value; +} + +final class __Request__semaphore_destroy_t extends ffi.Opaque {} + +final class __Request__task_assign_default_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @boolean_t() + external int assign_threads; +} + +final class __Request__task_assign_t extends ffi.Opaque {} + +final class __Request__task_create_identity_token_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_create_t extends ffi.Opaque {} + +final class __Request__task_dyld_process_info_notify_deregister_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int notify; +} + +final class __Request__task_dyld_process_info_notify_register_t + extends ffi.Opaque {} + +final class __Request__task_generate_corpse_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_get_assignment_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_get_dyld_image_infos_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_get_emulation_vector_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_get_exc_guard_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_get_exception_ports_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @exception_mask_t() + external int exception_mask; +} + +final class __Request__task_get_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @exception_mask_t() + external int exception_mask; +} + +final class __Request__task_get_mach_voucher_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_voucher_selector_t() + external int which; +} + +final class __Request__task_get_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int which_port; +} + +final class __Request__task_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int old_stateCnt; +} + +final class __Request__task_identity_token_get_task_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_flavor_t() + external int flavor; +} + +final class __Request__task_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int task_info_outCnt; +} + +final class __Request__task_inspect_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_inspect_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int info_outCnt; +} + +final class __Request__task_map_corpse_info_64_t extends ffi.Opaque {} + +final class __Request__task_map_corpse_info_t extends ffi.Opaque {} + +final class __Request__task_map_kcdata_object_64_t extends ffi.Opaque {} + +final class __Request__task_policy_get_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_policy_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @boolean_t() + external int get_default; +} + +final class __Request__task_policy_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_policy_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @ffi.Array.multi([16]) + external ffi.Array policy_info; +} + +final class __Request__task_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @policy_t() + external int policy; + + @mach_msg_type_number_t() + external int baseCnt; + + @ffi.Array.multi([5]) + external ffi.Array base; + + @boolean_t() + external int set_limit; + + @boolean_t() + external int change; +} + +final class __Request__task_purgable_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_register_dyld_get_process_state_t + extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_register_dyld_image_infos_t extends ffi.Opaque {} + +final class __Request__task_register_dyld_set_dyld_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Uint8() + external int dyld_state; + + @ffi.Array.multi([3]) + external ffi.Array dyld_statePad; +} + +@ffi.Packed(4) +final class __Request__task_register_dyld_shared_cache_image_info_t + extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + external dyld_kernel_image_info_t dyld_cache_image; + + @boolean_t() + external int no_cache; + + @boolean_t() + external int private_cache; +} + +final class __Request__task_register_hardened_exception_handler_t + extends ffi.Opaque {} + +final class __Request__task_resume2_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_resume_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_sample_t extends ffi.Opaque {} + +final class __Request__task_set_corpse_forking_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_corpse_forking_behavior_t() + external int behavior; +} + +@ffi.Packed(4) +final class __Request__task_set_emulation_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int routine_entry_pt; + + @ffi.Int() + external int routine_number; +} + +final class __Request__task_set_emulation_vector_t extends ffi.Opaque {} + +final class __Request__task_set_exc_guard_behavior_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_exc_guard_behavior_t() + external int behavior; +} + +final class __Request__task_set_exception_ports_t extends ffi.Opaque {} + +final class __Request__task_set_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @task_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int task_info_inCnt; + + @ffi.Array.multi([94]) + external ffi.Array task_info_in; +} + +final class __Request__task_set_mach_voucher_t extends ffi.Opaque {} + +final class __Request__task_set_phys_footprint_limit_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int new_limit; +} + +final class __Request__task_set_policy_t extends ffi.Opaque {} + +final class __Request__task_set_port_space_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int table_entries; +} + +@ffi.Packed(4) +final class __Request__task_set_ras_pc_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int basepc; + + @vm_address_t() + external int boundspc; +} + +final class __Request__task_set_special_port_t extends ffi.Opaque {} + +final class __Request__task_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int new_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array new_state; +} + +final class __Request__task_suspend2_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_suspend_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_swap_exception_ports_t extends ffi.Opaque {} + +final class __Request__task_swap_mach_voucher_t extends ffi.Opaque {} + +final class __Request__task_terminate_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_test_async_upcall_propagation_t + extends ffi.Opaque {} + +final class __Request__task_test_sync_upcall_t extends ffi.Opaque {} + +final class __Request__task_threads_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__task_unregister_dyld_image_infos_t extends ffi.Opaque {} + +final class __Request__task_wire_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @boolean_t() + external int must_wire; +} + +final class __Request__task_zone_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_abort_safely_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_abort_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_adopt_exception_handler_t extends ffi.Opaque {} + +final class __Request__thread_assign_default_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_assign_t extends ffi.Opaque {} + +final class __Request__thread_convert_thread_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int direction; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int in_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array in_state; + + @mach_msg_type_number_t() + external int out_stateCnt; +} + +final class __Request__thread_create_running_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int new_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array new_state; +} + +final class __Request__thread_create_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_depress_abort_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_get_assignment_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_get_exception_ports_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @exception_mask_t() + external int exception_mask; +} + +final class __Request__thread_get_exception_ports_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @exception_mask_t() + external int exception_mask; +} + +final class __Request__thread_get_mach_voucher_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @mach_voucher_selector_t() + external int which; +} + +final class __Request__thread_get_special_port_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Int() + external int which_port; +} + +final class __Request__thread_get_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int old_stateCnt; +} + +final class __Request__thread_info_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int thread_info_outCnt; +} + +final class __Request__thread_policy_get_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_policy_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @boolean_t() + external int get_default; +} + +final class __Request__thread_policy_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_policy_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int policy_infoCnt; + + @ffi.Array.multi([16]) + external ffi.Array policy_info; +} + +final class __Request__thread_policy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @policy_t() + external int policy; + + @mach_msg_type_number_t() + external int baseCnt; + + @ffi.Array.multi([5]) + external ffi.Array base; + + @boolean_t() + external int set_limit; +} + +final class __Request__thread_resume_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_sample_t extends ffi.Opaque {} + +final class __Request__thread_set_exception_ports_t extends ffi.Opaque {} + +final class __Request__thread_set_mach_voucher_t extends ffi.Opaque {} + +final class __Request__thread_set_policy_t extends ffi.Opaque {} + +final class __Request__thread_set_special_port_t extends ffi.Opaque {} + +final class __Request__thread_set_state_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @thread_state_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int new_stateCnt; + + @ffi.Array.multi([1296]) + external ffi.Array new_state; +} + +final class __Request__thread_suspend_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_swap_exception_ports_t extends ffi.Opaque {} + +final class __Request__thread_swap_mach_voucher_t extends ffi.Opaque {} + +final class __Request__thread_terminate_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +final class __Request__thread_wire_t extends ffi.Opaque {} + +final class __Request__vm_allocate_cpm_t extends ffi.Opaque {} + +@ffi.Packed(4) +final class __Request__vm_allocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @ffi.Int() + external int flags; +} + +@ffi.Packed(4) +final class __Request__vm_behavior_set_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_behavior_t() + external int new_behavior; +} + +@ffi.Packed(4) +final class __Request__vm_copy_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int source_address; + + @vm_size_t() + external int size; + + @vm_address_t() + external int dest_address; +} + +@ffi.Packed(4) +final class __Request__vm_deallocate_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; +} + +@ffi.Packed(4) +final class __Request__vm_inherit_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_inherit_t() + external int new_inheritance; +} + +@ffi.Packed(4) +final class __Request__vm_machine_attribute_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_machine_attribute_t() + external int attribute; + + @vm_machine_attribute_val_t() + external int value; +} + +final class __Request__vm_map_64_t extends ffi.Opaque {} + +final class __Request__vm_map_exec_lockdown_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +@ffi.Packed(4) +final class __Request__vm_map_page_query_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_offset_t() + external int offset; +} + +final class __Request__vm_map_t extends ffi.Opaque {} + +final class __Request__vm_mapped_pages_info_t extends ffi.Struct { + external mach_msg_header_t Head; +} + +@ffi.Packed(4) +final class __Request__vm_msync_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_sync_t() + external int sync_flags; +} + +@ffi.Packed(4) +final class __Request__vm_protect_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @boolean_t() + external int set_maximum; + + @vm_prot_t() + external int new_protection; +} + +@ffi.Packed(4) +final class __Request__vm_purgable_control_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_purgable_t() + external int control; + + @ffi.Int() + external int state; +} + +final class __Request__vm_read_list_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @ffi.Array.multi([256]) + external ffi.Array data_list; + + @natural_t() + external int count; +} + +@ffi.Packed(4) +final class __Request__vm_read_overwrite_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_address_t() + external int data; +} + +@ffi.Packed(4) +final class __Request__vm_read_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; +} + +@ffi.Packed(4) +final class __Request__vm_region_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_region_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int infoCnt; +} + +@ffi.Packed(4) +final class __Request__vm_region_recurse_64_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @natural_t() + external int nesting_depth; + + @mach_msg_type_number_t() + external int infoCnt; +} + +@ffi.Packed(4) +final class __Request__vm_region_recurse_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @natural_t() + external int nesting_depth; + + @mach_msg_type_number_t() + external int infoCnt; +} + +@ffi.Packed(4) +final class __Request__vm_region_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @vm_address_t() + external int address; + + @vm_region_flavor_t() + external int flavor; + + @mach_msg_type_number_t() + external int infoCnt; +} + +final class __Request__vm_remap_new_t extends ffi.Opaque {} + +final class __Request__vm_remap_t extends ffi.Opaque {} + +final class __Request__vm_wire_t extends ffi.Opaque {} + +final class __Request__vm_write_t extends ffi.Opaque {} + +final class __SKIndex extends ffi.Opaque {} + +final class __SKIndexDocumentIterator extends ffi.Opaque {} + +final class __SKSearch extends ffi.Opaque {} + +final class __SKSearchGroup extends ffi.Opaque {} + +final class __SKSearchResults extends ffi.Opaque {} + +final class __SKSummary extends ffi.Opaque {} + +final class __SecACL extends ffi.Opaque {} + +final class __SecAccess extends ffi.Opaque {} + +final class __SecAccessControl extends ffi.Opaque {} + +final class __SecCertificate extends ffi.Opaque {} + +final class __SecCode extends ffi.Opaque {} + +final class __SecIdentity extends ffi.Opaque {} + +final class __SecKey extends ffi.Opaque {} + +final class __SecKeychain extends ffi.Opaque {} + +final class __SecKeychainItem extends ffi.Opaque {} + +final class __SecKeychainSearch extends ffi.Opaque {} + +final class __SecPassword extends ffi.Opaque {} + +final class __SecPolicy extends ffi.Opaque {} + +final class __SecRandom extends ffi.Opaque {} + +final class __SecRequirement extends ffi.Opaque {} + +final class __SecTask extends ffi.Opaque {} + +final class __SecTrust extends ffi.Opaque {} + +final class __SecTrustedApplication extends ffi.Opaque {} + +final class __arm_legacy_debug_state extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bcr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wcr; +} + +final class __arm_pagein_state extends ffi.Struct { + @ffi.Int() + external int __pagein_error; +} + +final class __darwin_arm_cpmu_state64 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __ctrs; +} + +final class __darwin_arm_debug_state32 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __bcr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint32_t> __wcr; + + @__uint64_t() + external int __mdscr_el1; +} + +final class __darwin_arm_debug_state64 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __bvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __bcr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __wvr; + + @ffi.Array.multi([16]) + external ffi.Array<__uint64_t> __wcr; + + @__uint64_t() + external int __mdscr_el1; +} + +final class __darwin_arm_exception_state extends ffi.Struct { + @__uint32_t() + external int __exception; + + @__uint32_t() + external int __fsr; + + @__uint32_t() + external int __far; +} + +final class __darwin_arm_exception_state64 extends ffi.Struct { + @__uint64_t() + external int __far; + + @__uint32_t() + external int __esr; + + @__uint32_t() + external int __exception; +} + +final class __darwin_arm_exception_state64_v2 extends ffi.Struct { + @__uint64_t() + external int __far; + + @__uint64_t() + external int __esr; +} + +final class __darwin_arm_neon_state extends ffi.Opaque {} + +final class __darwin_arm_neon_state64 extends ffi.Opaque {} + +final class __darwin_arm_sme2_state extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array __zt0; +} + +final class __darwin_arm_sme_state extends ffi.Struct { + @__uint64_t() + external int __svcr; + + @__uint64_t() + external int __tpidr2_el0; + + @__uint16_t() + external int __svl_b; +} + +final class __darwin_arm_sme_za_state extends ffi.Struct { + @ffi.Array.multi([4096]) + external ffi.Array __za; +} + +final class __darwin_arm_sve_p_state extends ffi.Struct { + @ffi.Array.multi([16, 32]) + external ffi.Array> __p; +} + +final class __darwin_arm_sve_z_state extends ffi.Struct { + @ffi.Array.multi([16, 256]) + external ffi.Array> __z; +} + +final class __darwin_arm_thread_state extends ffi.Struct { + @ffi.Array.multi([13]) + external ffi.Array<__uint32_t> __r; + + @__uint32_t() + external int __sp; + + @__uint32_t() + external int __lr; + + @__uint32_t() + external int __pc; + + @__uint32_t() + external int __cpsr; +} + +final class __darwin_arm_thread_state64 extends ffi.Struct { + @ffi.Array.multi([29]) + external ffi.Array<__uint64_t> __x; + + @__uint64_t() + external int __fp; + + @__uint64_t() + external int __lr; + + @__uint64_t() + external int __sp; + + @__uint64_t() + external int __pc; + + @__uint32_t() + external int __cpsr; + + @__uint32_t() + external int __pad; +} + +final class __darwin_arm_vfp_state extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array<__uint32_t> __r; + + @__uint32_t() + external int __fpscr; +} + +typedef __darwin_blkcnt_t = __int64_t; +typedef __darwin_blksize_t = __int32_t; +typedef __darwin_clock_t = ffi.UnsignedLong; +typedef Dart__darwin_clock_t = int; +typedef __darwin_ct_rune_t = ffi.Int; +typedef Dart__darwin_ct_rune_t = int; +typedef __darwin_dev_t = __int32_t; +typedef __darwin_fsblkcnt_t = ffi.UnsignedInt; +typedef Dart__darwin_fsblkcnt_t = int; +typedef __darwin_fsfilcnt_t = ffi.UnsignedInt; +typedef Dart__darwin_fsfilcnt_t = int; +typedef __darwin_gid_t = __uint32_t; +typedef __darwin_id_t = __uint32_t; +typedef __darwin_ino64_t = __uint64_t; +typedef __darwin_ino_t = __darwin_ino64_t; +typedef __darwin_intptr_t = ffi.Long; +typedef Dart__darwin_intptr_t = int; +typedef __darwin_mach_port_name_t = __darwin_natural_t; +typedef __darwin_mach_port_t = __darwin_mach_port_name_t; +typedef __darwin_mbstate_t = __mbstate_t; + +final class __darwin_mcontext32 extends ffi.Struct { + external __darwin_arm_exception_state __es; + + external __darwin_arm_thread_state __ss; + + external __darwin_arm_vfp_state __fs; +} + +final class __darwin_mcontext64 extends ffi.Opaque {} + +typedef __darwin_mode_t = __uint16_t; +typedef __darwin_natural_t = ffi.UnsignedInt; +typedef Dart__darwin_natural_t = int; +typedef __darwin_nl_item = ffi.Int; +typedef Dart__darwin_nl_item = int; +typedef __darwin_off_t = __int64_t; +typedef __darwin_pid_t = __int32_t; +typedef __darwin_pthread_attr_t = _opaque_pthread_attr_t; +typedef __darwin_pthread_cond_t = _opaque_pthread_cond_t; +typedef __darwin_pthread_condattr_t = _opaque_pthread_condattr_t; + +final class __darwin_pthread_handler_rec extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction)> + > + __routine; + + external ffi.Pointer __arg; + + external ffi.Pointer<__darwin_pthread_handler_rec> __next; +} + +typedef __darwin_pthread_key_t = ffi.UnsignedLong; +typedef Dart__darwin_pthread_key_t = int; +typedef __darwin_pthread_mutex_t = _opaque_pthread_mutex_t; +typedef __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t; +typedef __darwin_pthread_once_t = _opaque_pthread_once_t; +typedef __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t; +typedef __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t; +typedef __darwin_pthread_t = ffi.Pointer<_opaque_pthread_t>; +typedef __darwin_ptrdiff_t = ffi.Long; +typedef Dart__darwin_ptrdiff_t = int; +typedef __darwin_rune_t = __darwin_wchar_t; + +final class __darwin_sigaltstack extends ffi.Struct { + external ffi.Pointer ss_sp; + + @__darwin_size_t() + external int ss_size; + + @ffi.Int() + external int ss_flags; +} + +typedef __darwin_sigset_t = __uint32_t; +typedef __darwin_size_t = ffi.UnsignedLong; +typedef Dart__darwin_size_t = int; +typedef __darwin_socklen_t = __uint32_t; +typedef __darwin_ssize_t = ffi.Long; +typedef Dart__darwin_ssize_t = int; +typedef __darwin_suseconds_t = __int32_t; +typedef __darwin_time_t = ffi.Long; +typedef Dart__darwin_time_t = int; + +final class __darwin_ucontext extends ffi.Struct { + @ffi.Int() + external int uc_onstack; + + @__darwin_sigset_t() + external int uc_sigmask; + + external __darwin_sigaltstack uc_stack; + + external ffi.Pointer<__darwin_ucontext> uc_link; + + @__darwin_size_t() + external int uc_mcsize; + + external ffi.Pointer<__darwin_mcontext64> uc_mcontext; +} + +typedef __darwin_uid_t = __uint32_t; +typedef __darwin_useconds_t = __uint32_t; +typedef __darwin_va_list = ffi.Pointer; +typedef __darwin_wchar_t = ffi.Int; +typedef Dart__darwin_wchar_t = int; +typedef __darwin_wctrans_t = ffi.Int; +typedef Dart__darwin_wctrans_t = int; +typedef __darwin_wctype_t = __uint32_t; +typedef __darwin_wint_t = ffi.Int; +typedef Dart__darwin_wint_t = int; + +final class __double2 extends ffi.Struct { + @ffi.Double() + external double __sinval; + + @ffi.Double() + external double __cosval; +} + +final class __float2 extends ffi.Struct { + @ffi.Float() + external double __sinval; + + @ffi.Float() + external double __cosval; +} + +const int __fpcr_flush_to_zero = 16777216; + +const int __fpcr_trap_denormal = 32768; + +const int __fpcr_trap_divbyzero = 512; + +const int __fpcr_trap_inexact = 4096; + +const int __fpcr_trap_invalid = 256; + +const int __fpcr_trap_overflow = 1024; + +const int __fpcr_trap_underflow = 2048; + +const int __fpsr_saturation = 134217728; + +typedef __gnuc_va_list = ffi.Pointer; +typedef __int16_t = ffi.Short; +typedef Dart__int16_t = int; +typedef __int32_t = ffi.Int; +typedef Dart__int32_t = int; +typedef __int64_t = ffi.LongLong; +typedef Dart__int64_t = int; +typedef __int8_t = ffi.SignedChar; +typedef Dart__int8_t = int; + +final class __mbstate_t extends ffi.Union { + @ffi.Array.multi([128]) + external ffi.Array __mbstate8; + + @ffi.LongLong() + external int _mbstateL; +} + +@ffi.Packed(4) +final class __msfilterreq extends ffi.Struct { + @ffi.Uint32() + external int msfr_ifindex; + + @ffi.Uint32() + external int msfr_fmode; + + @ffi.Uint32() + external int msfr_nsrcs; + + @ffi.Uint32() + external int __msfr_align; + + external sockaddr_storage msfr_group; + + external ffi.Pointer msfr_srcs; +} + +final class __sFILE extends ffi.Struct { + external ffi.Pointer _p; + + @ffi.Int() + external int _r; + + @ffi.Int() + external int _w; + + @ffi.Short() + external int _flags; + + @ffi.Short() + external int _file; + + external __sbuf _bf; + + @ffi.Int() + external int _lbfsize; + + external ffi.Pointer _cookie; + + external ffi.Pointer< + ffi.NativeFunction)> + > + _close$1; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + _read$1; + + external ffi.Pointer< + ffi.NativeFunction, fpos_t, ffi.Int)> + > + _seek; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + _write$1; + + external __sbuf _ub; + + external ffi.Pointer<__sFILEX> _extra; + + @ffi.Int() + external int _ur; + + @ffi.Array.multi([3]) + external ffi.Array _ubuf; + + @ffi.Array.multi([1]) + external ffi.Array _nbuf; + + external __sbuf _lb; + + @ffi.Int() + external int _blksize; + + @fpos_t() + external int _offset; +} + +final class __sFILEX extends ffi.Opaque {} + +final class __sbuf extends ffi.Struct { + external ffi.Pointer _base; + + @ffi.Int() + external int _size; +} + +final class __sigaction extends ffi.Struct { + external __sigaction_u __sigaction_u$1; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + > + sa_tramp; + + @sigset_t() + external int sa_mask; + + @ffi.Int() + external int sa_flags; +} + +final class __sigaction_u extends ffi.Union { + external ffi.Pointer> + __sa_handler; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Int, ffi.Pointer<__siginfo>, ffi.Pointer) + > + > + __sa_sigaction; +} + +final class __siginfo extends ffi.Struct { + @ffi.Int() + external int si_signo; + + @ffi.Int() + external int si_errno; + + @ffi.Int() + external int si_code; + + @pid_t() + external int si_pid; + + @uid_t() + external int si_uid; + + @ffi.Int() + external int si_status; + + external ffi.Pointer si_addr; + + external sigval si_value; + + @ffi.Long() + external int si_band; + + @ffi.Array.multi([7]) + external ffi.Array __pad; +} + +final class __sockaddr_header extends ffi.Struct { + @__uint8_t() + external int sa_len; + + @sa_family_t() + external int sa_family; +} + +typedef __uint16_t = ffi.UnsignedShort; +typedef Dart__uint16_t = int; +typedef __uint32_t = ffi.UnsignedInt; +typedef Dart__uint32_t = int; +typedef __uint64_t = ffi.UnsignedLongLong; +typedef Dart__uint64_t = int; +typedef __uint8_t = ffi.UnsignedChar; +typedef Dart__uint8_t = int; + +final class _acl extends ffi.Opaque {} + +final class _acl_entry extends ffi.Opaque {} + +final class _acl_flagset extends ffi.Opaque {} + +final class _acl_permset extends ffi.Opaque {} + +final class _cl_device_id extends ffi.Opaque {} + +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_AVAudioPlayer', +) +external ffi.Pointer _class_AVAudioPlayer_raw; +final _class_AVAudioPlayer = objc.getClass( + "AVAudioPlayer", + () => ffi.Native.addressOf>( + _class_AVAudioPlayer_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_AVAudioSession', +) +external ffi.Pointer _class_AVAudioSession_raw; +final _class_AVAudioSession = objc.getClass( + "AVAudioSession", + () => ffi.Native.addressOf>( + _class_AVAudioSession_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_AVAudioSessionPortDescription', +) +external ffi.Pointer +_class_AVAudioSessionPortDescription_raw; +final _class_AVAudioSessionPortDescription = objc.getClass( + "AVAudioSessionPortDescription", + () => ffi.Native.addressOf>( + _class_AVAudioSessionPortDescription_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSArray') +external ffi.Pointer _class_NSArray_raw; +final _class_NSArray = objc.getClass( + "NSArray", + () => ffi.Native.addressOf>( + _class_NSArray_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSAttributedString', +) +external ffi.Pointer _class_NSAttributedString_raw; +final _class_NSAttributedString = objc.getClass( + "NSAttributedString", + () => ffi.Native.addressOf>( + _class_NSAttributedString_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSBundle') +external ffi.Pointer _class_NSBundle_raw; +final _class_NSBundle = objc.getClass( + "NSBundle", + () => ffi.Native.addressOf>( + _class_NSBundle_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSCharacterSet', +) +external ffi.Pointer _class_NSCharacterSet_raw; +final _class_NSCharacterSet = objc.getClass( + "NSCharacterSet", + () => ffi.Native.addressOf>( + _class_NSCharacterSet_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSCoder') +external ffi.Pointer _class_NSCoder_raw; +final _class_NSCoder = objc.getClass( + "NSCoder", + () => ffi.Native.addressOf>( + _class_NSCoder_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSData') +external ffi.Pointer _class_NSData_raw; +final _class_NSData = objc.getClass( + "NSData", + () => ffi.Native.addressOf>( + _class_NSData_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSDate') +external ffi.Pointer _class_NSDate_raw; +final _class_NSDate = objc.getClass( + "NSDate", + () => ffi.Native.addressOf>( + _class_NSDate_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSDateFormatter', +) +external ffi.Pointer _class_NSDateFormatter_raw; +final _class_NSDateFormatter = objc.getClass( + "NSDateFormatter", + () => ffi.Native.addressOf>( + _class_NSDateFormatter_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSDictionary', +) +external ffi.Pointer _class_NSDictionary_raw; +final _class_NSDictionary = objc.getClass( + "NSDictionary", + () => ffi.Native.addressOf>( + _class_NSDictionary_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSException', +) +external ffi.Pointer _class_NSException_raw; +final _class_NSException = objc.getClass( + "NSException", + () => ffi.Native.addressOf>( + _class_NSException_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSFileHandle', +) +external ffi.Pointer _class_NSFileHandle_raw; +final _class_NSFileHandle = objc.getClass( + "NSFileHandle", + () => ffi.Native.addressOf>( + _class_NSFileHandle_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSFileManager', +) +external ffi.Pointer _class_NSFileManager_raw; +final _class_NSFileManager = objc.getClass( + "NSFileManager", + () => ffi.Native.addressOf>( + _class_NSFileManager_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSFileWrapper', +) +external ffi.Pointer _class_NSFileWrapper_raw; +final _class_NSFileWrapper = objc.getClass( + "NSFileWrapper", + () => ffi.Native.addressOf>( + _class_NSFileWrapper_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSHTTPCookieStorage', +) +external ffi.Pointer _class_NSHTTPCookieStorage_raw; +final _class_NSHTTPCookieStorage = objc.getClass( + "NSHTTPCookieStorage", + () => ffi.Native.addressOf>( + _class_NSHTTPCookieStorage_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSIndexPath', +) +external ffi.Pointer _class_NSIndexPath_raw; +final _class_NSIndexPath = objc.getClass( + "NSIndexPath", + () => ffi.Native.addressOf>( + _class_NSIndexPath_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSInflectionRule', +) +external ffi.Pointer _class_NSInflectionRule_raw; +final _class_NSInflectionRule = objc.getClass( + "NSInflectionRule", + () => ffi.Native.addressOf>( + _class_NSInflectionRule_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSInputStream', +) +external ffi.Pointer _class_NSInputStream_raw; +final _class_NSInputStream = objc.getClass( + "NSInputStream", + () => ffi.Native.addressOf>( + _class_NSInputStream_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSItemProvider', +) +external ffi.Pointer _class_NSItemProvider_raw; +final _class_NSItemProvider = objc.getClass( + "NSItemProvider", + () => ffi.Native.addressOf>( + _class_NSItemProvider_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSLocale') +external ffi.Pointer _class_NSLocale_raw; +final _class_NSLocale = objc.getClass( + "NSLocale", + () => ffi.Native.addressOf>( + _class_NSLocale_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMorphology', +) +external ffi.Pointer _class_NSMorphology_raw; +final _class_NSMorphology = objc.getClass( + "NSMorphology", + () => ffi.Native.addressOf>( + _class_NSMorphology_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableArray', +) +external ffi.Pointer _class_NSMutableArray_raw; +final _class_NSMutableArray = objc.getClass( + "NSMutableArray", + () => ffi.Native.addressOf>( + _class_NSMutableArray_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableAttributedString', +) +external ffi.Pointer _class_NSMutableAttributedString_raw; +final _class_NSMutableAttributedString = objc.getClass( + "NSMutableAttributedString", + () => ffi.Native.addressOf>( + _class_NSMutableAttributedString_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableData', +) +external ffi.Pointer _class_NSMutableData_raw; +final _class_NSMutableData = objc.getClass( + "NSMutableData", + () => ffi.Native.addressOf>( + _class_NSMutableData_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableDictionary', +) +external ffi.Pointer _class_NSMutableDictionary_raw; +final _class_NSMutableDictionary = objc.getClass( + "NSMutableDictionary", + () => ffi.Native.addressOf>( + _class_NSMutableDictionary_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableOrderedSet', +) +external ffi.Pointer _class_NSMutableOrderedSet_raw; +final _class_NSMutableOrderedSet = objc.getClass( + "NSMutableOrderedSet", + () => ffi.Native.addressOf>( + _class_NSMutableOrderedSet_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableSet', +) +external ffi.Pointer _class_NSMutableSet_raw; +final _class_NSMutableSet = objc.getClass( + "NSMutableSet", + () => ffi.Native.addressOf>( + _class_NSMutableSet_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableString', +) +external ffi.Pointer _class_NSMutableString_raw; +final _class_NSMutableString = objc.getClass( + "NSMutableString", + () => ffi.Native.addressOf>( + _class_NSMutableString_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSMutableURLRequest', +) +external ffi.Pointer _class_NSMutableURLRequest_raw; +final _class_NSMutableURLRequest = objc.getClass( + "NSMutableURLRequest", + () => ffi.Native.addressOf>( + _class_NSMutableURLRequest_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSNotification', +) +external ffi.Pointer _class_NSNotification_raw; +final _class_NSNotification = objc.getClass( + "NSNotification", + () => ffi.Native.addressOf>( + _class_NSNotification_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSNumber') +external ffi.Pointer _class_NSNumber_raw; +final _class_NSNumber = objc.getClass( + "NSNumber", + () => ffi.Native.addressOf>( + _class_NSNumber_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSNumberFormatter', +) +external ffi.Pointer _class_NSNumberFormatter_raw; +final _class_NSNumberFormatter = objc.getClass( + "NSNumberFormatter", + () => ffi.Native.addressOf>( + _class_NSNumberFormatter_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSObject') +external ffi.Pointer _class_NSObject_raw; +final _class_NSObject = objc.getClass( + "NSObject", + () => ffi.Native.addressOf>( + _class_NSObject_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSOperationQueue', +) +external ffi.Pointer _class_NSOperationQueue_raw; +final _class_NSOperationQueue = objc.getClass( + "NSOperationQueue", + () => ffi.Native.addressOf>( + _class_NSOperationQueue_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSOrderedSet', +) +external ffi.Pointer _class_NSOrderedSet_raw; +final _class_NSOrderedSet = objc.getClass( + "NSOrderedSet", + () => ffi.Native.addressOf>( + _class_NSOrderedSet_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSOrthography', +) +external ffi.Pointer _class_NSOrthography_raw; +final _class_NSOrthography = objc.getClass( + "NSOrthography", + () => ffi.Native.addressOf>( + _class_NSOrthography_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSOutputStream', +) +external ffi.Pointer _class_NSOutputStream_raw; +final _class_NSOutputStream = objc.getClass( + "NSOutputStream", + () => ffi.Native.addressOf>( + _class_NSOutputStream_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSPointerArray', +) +external ffi.Pointer _class_NSPointerArray_raw; +final _class_NSPointerArray = objc.getClass( + "NSPointerArray", + () => ffi.Native.addressOf>( + _class_NSPointerArray_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSProcessInfo', +) +external ffi.Pointer _class_NSProcessInfo_raw; +final _class_NSProcessInfo = objc.getClass( + "NSProcessInfo", + () => ffi.Native.addressOf>( + _class_NSProcessInfo_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSProtocolChecker', +) +external ffi.Pointer _class_NSProtocolChecker_raw; +final _class_NSProtocolChecker = objc.getClass( + "NSProtocolChecker", + () => ffi.Native.addressOf>( + _class_NSProtocolChecker_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSRegularExpression', +) +external ffi.Pointer _class_NSRegularExpression_raw; +final _class_NSRegularExpression = objc.getClass( + "NSRegularExpression", + () => ffi.Native.addressOf>( + _class_NSRegularExpression_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSRunLoop') +external ffi.Pointer _class_NSRunLoop_raw; +final _class_NSRunLoop = objc.getClass( + "NSRunLoop", + () => ffi.Native.addressOf>( + _class_NSRunLoop_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSScanner') +external ffi.Pointer _class_NSScanner_raw; +final _class_NSScanner = objc.getClass( + "NSScanner", + () => ffi.Native.addressOf>( + _class_NSScanner_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSScriptClassDescription', +) +external ffi.Pointer _class_NSScriptClassDescription_raw; +final _class_NSScriptClassDescription = objc.getClass( + "NSScriptClassDescription", + () => ffi.Native.addressOf>( + _class_NSScriptClassDescription_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSSet') +external ffi.Pointer _class_NSSet_raw; +final _class_NSSet = objc.getClass( + "NSSet", + () => ffi.Native.addressOf>( + _class_NSSet_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSStream') +external ffi.Pointer _class_NSStream_raw; +final _class_NSStream = objc.getClass( + "NSStream", + () => ffi.Native.addressOf>( + _class_NSStream_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSString') +external ffi.Pointer _class_NSString_raw; +final _class_NSString = objc.getClass( + "NSString", + () => ffi.Native.addressOf>( + _class_NSString_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSTask') +external ffi.Pointer _class_NSTask_raw; +final _class_NSTask = objc.getClass( + "NSTask", + () => ffi.Native.addressOf>( + _class_NSTask_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSTextCheckingResult', +) +external ffi.Pointer _class_NSTextCheckingResult_raw; +final _class_NSTextCheckingResult = objc.getClass( + "NSTextCheckingResult", + () => ffi.Native.addressOf>( + _class_NSTextCheckingResult_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSTimeZone', +) +external ffi.Pointer _class_NSTimeZone_raw; +final _class_NSTimeZone = objc.getClass( + "NSTimeZone", + () => ffi.Native.addressOf>( + _class_NSTimeZone_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSURL') +external ffi.Pointer _class_NSURL_raw; +final _class_NSURL = objc.getClass( + "NSURL", + () => ffi.Native.addressOf>( + _class_NSURL_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLCache', +) +external ffi.Pointer _class_NSURLCache_raw; +final _class_NSURLCache = objc.getClass( + "NSURLCache", + () => ffi.Native.addressOf>( + _class_NSURLCache_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLConnection', +) +external ffi.Pointer _class_NSURLConnection_raw; +final _class_NSURLConnection = objc.getClass( + "NSURLConnection", + () => ffi.Native.addressOf>( + _class_NSURLConnection_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLCredential', +) +external ffi.Pointer _class_NSURLCredential_raw; +final _class_NSURLCredential = objc.getClass( + "NSURLCredential", + () => ffi.Native.addressOf>( + _class_NSURLCredential_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLCredentialStorage', +) +external ffi.Pointer _class_NSURLCredentialStorage_raw; +final _class_NSURLCredentialStorage = objc.getClass( + "NSURLCredentialStorage", + () => ffi.Native.addressOf>( + _class_NSURLCredentialStorage_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLProtectionSpace', +) +external ffi.Pointer _class_NSURLProtectionSpace_raw; +final _class_NSURLProtectionSpace = objc.getClass( + "NSURLProtectionSpace", + () => ffi.Native.addressOf>( + _class_NSURLProtectionSpace_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLProtocol', +) +external ffi.Pointer _class_NSURLProtocol_raw; +final _class_NSURLProtocol = objc.getClass( + "NSURLProtocol", + () => ffi.Native.addressOf>( + _class_NSURLProtocol_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLRequest', +) +external ffi.Pointer _class_NSURLRequest_raw; +final _class_NSURLRequest = objc.getClass( + "NSURLRequest", + () => ffi.Native.addressOf>( + _class_NSURLRequest_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLSession', +) +external ffi.Pointer _class_NSURLSession_raw; +final _class_NSURLSession = objc.getClass( + "NSURLSession", + () => ffi.Native.addressOf>( + _class_NSURLSession_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSURLSessionConfiguration', +) +external ffi.Pointer _class_NSURLSessionConfiguration_raw; +final _class_NSURLSessionConfiguration = objc.getClass( + "NSURLSessionConfiguration", + () => ffi.Native.addressOf>( + _class_NSURLSessionConfiguration_raw, + ).cast(), +); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSValue') +external ffi.Pointer _class_NSValue_raw; +final _class_NSValue = objc.getClass( + "NSValue", + () => ffi.Native.addressOf>( + _class_NSValue_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSXMLElement', +) +external ffi.Pointer _class_NSXMLElement_raw; +final _class_NSXMLElement = objc.getClass( + "NSXMLElement", + () => ffi.Native.addressOf>( + _class_NSXMLElement_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_NSXMLParser', +) +external ffi.Pointer _class_NSXMLParser_raw; +final _class_NSXMLParser = objc.getClass( + "NSXMLParser", + () => ffi.Native.addressOf>( + _class_NSXMLParser_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_bklti2', +) +external ffi.Pointer _class__BlockArgs_112ozxo_raw; +final _class__BlockArgs_112ozxo = objc.getClass( + "_1uu024u_BlockArgs_bklti2", + () => ffi.Native.addressOf>( + _class__BlockArgs_112ozxo_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_117e0ww_raw; +final _class__BlockArgs_117e0ww = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_117e0ww_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18kzm6a', +) +external ffi.Pointer _class__BlockArgs_11uyayp_raw; +final _class__BlockArgs_11uyayp = objc.getClass( + "_1uu024u_BlockArgs_18kzm6a", + () => ffi.Native.addressOf>( + _class__BlockArgs_11uyayp_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_121fmzs_raw; +final _class__BlockArgs_121fmzs = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_121fmzs_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_f167m6', +) +external ffi.Pointer _class__BlockArgs_12cm2y5_raw; +final _class__BlockArgs_12cm2y5 = objc.getClass( + "_1uu024u_BlockArgs_f167m6", + () => ffi.Native.addressOf>( + _class__BlockArgs_12cm2y5_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_gwxhxt', +) +external ffi.Pointer _class__BlockArgs_12rv5aa_raw; +final _class__BlockArgs_12rv5aa = objc.getClass( + "_1uu024u_BlockArgs_gwxhxt", + () => ffi.Native.addressOf>( + _class__BlockArgs_12rv5aa_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_34xzuf', +) +external ffi.Pointer _class__BlockArgs_12tf05r_raw; +final _class__BlockArgs_12tf05r = objc.getClass( + "_1uu024u_BlockArgs_34xzuf", + () => ffi.Native.addressOf>( + _class__BlockArgs_12tf05r_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_12ykekb_raw; +final _class__BlockArgs_12ykekb = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_12ykekb_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15e9dqx', +) +external ffi.Pointer _class__BlockArgs_133h48c_raw; +final _class__BlockArgs_133h48c = objc.getClass( + "_1uu024u_BlockArgs_15e9dqx", + () => ffi.Native.addressOf>( + _class__BlockArgs_133h48c_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_136y7ma_raw; +final _class__BlockArgs_136y7ma = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_136y7ma_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1kwz7d1', +) +external ffi.Pointer _class__BlockArgs_13g89k6_raw; +final _class__BlockArgs_13g89k6 = objc.getClass( + "_1uu024u_BlockArgs_1kwz7d1", + () => ffi.Native.addressOf>( + _class__BlockArgs_13g89k6_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_13o2rom_raw; +final _class__BlockArgs_13o2rom = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_13o2rom_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_13sb76x_raw; +final _class__BlockArgs_13sb76x = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_13sb76x_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_140cpyj_raw; +final _class__BlockArgs_140cpyj = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_140cpyj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_14dahaa_raw; +final _class__BlockArgs_14dahaa = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_14dahaa_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_tg5tbv', +) +external ffi.Pointer _class__BlockArgs_14lm7fk_raw; +final _class__BlockArgs_14lm7fk = objc.getClass( + "_1uu024u_BlockArgs_tg5tbv", + () => ffi.Native.addressOf>( + _class__BlockArgs_14lm7fk_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', +) +external ffi.Pointer _class__BlockArgs_15cdu5z_raw; +final _class__BlockArgs_15cdu5z = objc.getClass( + "_1uu024u_BlockArgs_xx612k", + () => ffi.Native.addressOf>( + _class__BlockArgs_15cdu5z_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_15jt9u5_raw; +final _class__BlockArgs_15jt9u5 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_15jt9u5_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_15vjajw_raw; +final _class__BlockArgs_15vjajw = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_15vjajw_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_16ix251_raw; +final _class__BlockArgs_16ix251 = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_16ix251_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_16t4ozp_raw; +final _class__BlockArgs_16t4ozp = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_16t4ozp_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_170i760_raw; +final _class__BlockArgs_170i760 = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_170i760_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1otpo83', +) +external ffi.Pointer _class__BlockArgs_171cldw_raw; +final _class__BlockArgs_171cldw = objc.getClass( + "_1uu024u_BlockArgs_1otpo83", + () => ffi.Native.addressOf>( + _class__BlockArgs_171cldw_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1lx650f', +) +external ffi.Pointer _class__BlockArgs_17jmtfx_raw; +final _class__BlockArgs_17jmtfx = objc.getClass( + "_1uu024u_BlockArgs_1lx650f", + () => ffi.Native.addressOf>( + _class__BlockArgs_17jmtfx_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15ghdzk', +) +external ffi.Pointer _class__BlockArgs_17mefw7_raw; +final _class__BlockArgs_17mefw7 = objc.getClass( + "_1uu024u_BlockArgs_15ghdzk", + () => ffi.Native.addressOf>( + _class__BlockArgs_17mefw7_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_17xklgp_raw; +final _class__BlockArgs_17xklgp = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_17xklgp_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_18kc0nv_raw; +final _class__BlockArgs_18kc0nv = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_18kc0nv_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_197qivc_raw; +final _class__BlockArgs_197qivc = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_197qivc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_wy9lus', +) +external ffi.Pointer _class__BlockArgs_19pyqcd_raw; +final _class__BlockArgs_19pyqcd = objc.getClass( + "_1uu024u_BlockArgs_wy9lus", + () => ffi.Native.addressOf>( + _class__BlockArgs_19pyqcd_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_19rrqmo_raw; +final _class__BlockArgs_19rrqmo = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_19rrqmo_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_l2g8ke', +) +external ffi.Pointer _class__BlockArgs_1ayzt6i_raw; +final _class__BlockArgs_1ayzt6i = objc.getClass( + "_1uu024u_BlockArgs_l2g8ke", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ayzt6i_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1ciefi0_raw; +final _class__BlockArgs_1ciefi0 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ciefi0_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1e1kc88_raw; +final _class__BlockArgs_1e1kc88 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1e1kc88_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18qun1e', +) +external ffi.Pointer _class__BlockArgs_1e3xl1p_raw; +final _class__BlockArgs_1e3xl1p = objc.getClass( + "_1uu024u_BlockArgs_18qun1e", + () => ffi.Native.addressOf>( + _class__BlockArgs_1e3xl1p_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1ek5uoy_raw; +final _class__BlockArgs_1ek5uoy = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ek5uoy_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1f64crj_raw; +final _class__BlockArgs_1f64crj = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1f64crj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1fj0jrw_raw; +final _class__BlockArgs_1fj0jrw = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1fj0jrw_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_zzthnb', +) +external ffi.Pointer _class__BlockArgs_1giidhf_raw; +final _class__BlockArgs_1giidhf = objc.getClass( + "_1uu024u_BlockArgs_zzthnb", + () => ffi.Native.addressOf>( + _class__BlockArgs_1giidhf_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_1gmgda9_raw; +final _class__BlockArgs_1gmgda9 = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_1gmgda9_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1hj9xku_raw; +final _class__BlockArgs_1hj9xku = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1hj9xku_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1yrznn1', +) +external ffi.Pointer _class__BlockArgs_1hs0ws6_raw; +final _class__BlockArgs_1hs0ws6 = objc.getClass( + "_1uu024u_BlockArgs_1yrznn1", + () => ffi.Native.addressOf>( + _class__BlockArgs_1hs0ws6_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1hwelu_raw; +final _class__BlockArgs_1hwelu = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1hwelu_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1i7oea2_raw; +final _class__BlockArgs_1i7oea2 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1i7oea2_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_1j32c3t_raw; +final _class__BlockArgs_1j32c3t = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1j32c3t_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1jcra61_raw; +final _class__BlockArgs_1jcra61 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1jcra61_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', +) +external ffi.Pointer _class__BlockArgs_1kowxjl_raw; +final _class__BlockArgs_1kowxjl = objc.getClass( + "_1uu024u_BlockArgs_m09tr7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1kowxjl_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ly2579', +) +external ffi.Pointer _class__BlockArgs_1l7b9ji_raw; +final _class__BlockArgs_1l7b9ji = objc.getClass( + "_1uu024u_BlockArgs_ly2579", + () => ffi.Native.addressOf>( + _class__BlockArgs_1l7b9ji_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_du1izn', +) +external ffi.Pointer _class__BlockArgs_1lr5l4t_raw; +final _class__BlockArgs_1lr5l4t = objc.getClass( + "_1uu024u_BlockArgs_du1izn", + () => ffi.Native.addressOf>( + _class__BlockArgs_1lr5l4t_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_zuf90e', +) +external ffi.Pointer _class__BlockArgs_1ltqoqj_raw; +final _class__BlockArgs_1ltqoqj = objc.getClass( + "_1uu024u_BlockArgs_zuf90e", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ltqoqj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', +) +external ffi.Pointer _class__BlockArgs_1mv87bk_raw; +final _class__BlockArgs_1mv87bk = objc.getClass( + "_1uu024u_BlockArgs_r8gdi7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1mv87bk_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_1n468bj_raw; +final _class__BlockArgs_1n468bj = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1n468bj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_1n5meg5_raw; +final _class__BlockArgs_1n5meg5 = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1n5meg5_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_1n6ph2_raw; +final _class__BlockArgs_1n6ph2 = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1n6ph2_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8acz2h', +) +external ffi.Pointer _class__BlockArgs_1nn0na_raw; +final _class__BlockArgs_1nn0na = objc.getClass( + "_1uu024u_BlockArgs_8acz2h", + () => ffi.Native.addressOf>( + _class__BlockArgs_1nn0na_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18qun1e', +) +external ffi.Pointer _class__BlockArgs_1nq9pr6_raw; +final _class__BlockArgs_1nq9pr6 = objc.getClass( + "_1uu024u_BlockArgs_18qun1e", + () => ffi.Native.addressOf>( + _class__BlockArgs_1nq9pr6_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_1o2efq5_raw; +final _class__BlockArgs_1o2efq5 = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1o2efq5_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1o8dtl_raw; +final _class__BlockArgs_1o8dtl = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1o8dtl_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1odc9lb_raw; +final _class__BlockArgs_1odc9lb = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1odc9lb_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1oetg5g_raw; +final _class__BlockArgs_1oetg5g = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1oetg5g_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', +) +external ffi.Pointer _class__BlockArgs_1oftdow_raw; +final _class__BlockArgs_1oftdow = objc.getClass( + "_1uu024u_BlockArgs_r8gdi7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1oftdow_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1p1ax08_raw; +final _class__BlockArgs_1p1ax08 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1p1ax08_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_1p7ak3v_raw; +final _class__BlockArgs_1p7ak3v = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1p7ak3v_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_h68abb', +) +external ffi.Pointer _class__BlockArgs_1pfucun_raw; +final _class__BlockArgs_1pfucun = objc.getClass( + "_1uu024u_BlockArgs_h68abb", + () => ffi.Native.addressOf>( + _class__BlockArgs_1pfucun_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1pfw36l_raw; +final _class__BlockArgs_1pfw36l = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1pfw36l_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1pj0but_raw; +final _class__BlockArgs_1pj0but = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1pj0but_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1ptzs7z_raw; +final _class__BlockArgs_1ptzs7z = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ptzs7z_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_lmc3p5', +) +external ffi.Pointer _class__BlockArgs_1pvrxoh_raw; +final _class__BlockArgs_1pvrxoh = objc.getClass( + "_1uu024u_BlockArgs_lmc3p5", + () => ffi.Native.addressOf>( + _class__BlockArgs_1pvrxoh_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_1q305zu_raw; +final _class__BlockArgs_1q305zu = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1q305zu_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1r6tt56_raw; +final _class__BlockArgs_1r6tt56 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1r6tt56_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1l4hxwm', +) +external ffi.Pointer _class__BlockArgs_1s0z6xl_raw; +final _class__BlockArgs_1s0z6xl = objc.getClass( + "_1uu024u_BlockArgs_1l4hxwm", + () => ffi.Native.addressOf>( + _class__BlockArgs_1s0z6xl_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9o8504', +) +external ffi.Pointer _class__BlockArgs_1s2j81k_raw; +final _class__BlockArgs_1s2j81k = objc.getClass( + "_1uu024u_BlockArgs_9o8504", + () => ffi.Native.addressOf>( + _class__BlockArgs_1s2j81k_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1siniii_raw; +final _class__BlockArgs_1siniii = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1siniii_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_b3tf6o', +) +external ffi.Pointer _class__BlockArgs_1sucxsg_raw; +final _class__BlockArgs_1sucxsg = objc.getClass( + "_1uu024u_BlockArgs_b3tf6o", + () => ffi.Native.addressOf>( + _class__BlockArgs_1sucxsg_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_1sy9q99_raw; +final _class__BlockArgs_1sy9q99 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_1sy9q99_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_1tklz9g_raw; +final _class__BlockArgs_1tklz9g = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_1tklz9g_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6jvo9y', +) +external ffi.Pointer _class__BlockArgs_1uc4fg7_raw; +final _class__BlockArgs_1uc4fg7 = objc.getClass( + "_1uu024u_BlockArgs_6jvo9y", + () => ffi.Native.addressOf>( + _class__BlockArgs_1uc4fg7_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_1uox71a_raw; +final _class__BlockArgs_1uox71a = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_1uox71a_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_1ura76_raw; +final _class__BlockArgs_1ura76 = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_1ura76_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_1usrzbh_raw; +final _class__BlockArgs_1usrzbh = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1usrzbh_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_l3f29g', +) +external ffi.Pointer _class__BlockArgs_1v0sc8_raw; +final _class__BlockArgs_1v0sc8 = objc.getClass( + "_1uu024u_BlockArgs_l3f29g", + () => ffi.Native.addressOf>( + _class__BlockArgs_1v0sc8_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_11t2oft', +) +external ffi.Pointer _class__BlockArgs_1x2wp90_raw; +final _class__BlockArgs_1x2wp90 = objc.getClass( + "_1uu024u_BlockArgs_11t2oft", + () => ffi.Native.addressOf>( + _class__BlockArgs_1x2wp90_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', +) +external ffi.Pointer _class__BlockArgs_1xfn2k3_raw; +final _class__BlockArgs_1xfn2k3 = objc.getClass( + "_1uu024u_BlockArgs_xx612k", + () => ffi.Native.addressOf>( + _class__BlockArgs_1xfn2k3_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_132rcs6', +) +external ffi.Pointer _class__BlockArgs_1xkpqmj_raw; +final _class__BlockArgs_1xkpqmj = objc.getClass( + "_1uu024u_BlockArgs_132rcs6", + () => ffi.Native.addressOf>( + _class__BlockArgs_1xkpqmj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1y4tc38_raw; +final _class__BlockArgs_1y4tc38 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1y4tc38_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_16sve1d', +) +external ffi.Pointer _class__BlockArgs_1y7f3jy_raw; +final _class__BlockArgs_1y7f3jy = objc.getClass( + "_1uu024u_BlockArgs_16sve1d", + () => ffi.Native.addressOf>( + _class__BlockArgs_1y7f3jy_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_1z0whcc_raw; +final _class__BlockArgs_1z0whcc = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_1z0whcc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', +) +external ffi.Pointer _class__BlockArgs_31cygh_raw; +final _class__BlockArgs_31cygh = objc.getClass( + "_1uu024u_BlockArgs_xx612k", + () => ffi.Native.addressOf>( + _class__BlockArgs_31cygh_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_347s5u_raw; +final _class__BlockArgs_347s5u = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_347s5u_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', +) +external ffi.Pointer _class__BlockArgs_3gru2r_raw; +final _class__BlockArgs_3gru2r = objc.getClass( + "_1uu024u_BlockArgs_r8gdi7", + () => ffi.Native.addressOf>( + _class__BlockArgs_3gru2r_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1qf1qkl', +) +external ffi.Pointer _class__BlockArgs_3jhjrc_raw; +final _class__BlockArgs_3jhjrc = objc.getClass( + "_1uu024u_BlockArgs_1qf1qkl", + () => ffi.Native.addressOf>( + _class__BlockArgs_3jhjrc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_3prg4b_raw; +final _class__BlockArgs_3prg4b = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_3prg4b_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_43hp0b_raw; +final _class__BlockArgs_43hp0b = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_43hp0b_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_461rr9_raw; +final _class__BlockArgs_461rr9 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_461rr9_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9crvvv', +) +external ffi.Pointer _class__BlockArgs_5wf51x_raw; +final _class__BlockArgs_5wf51x = objc.getClass( + "_1uu024u_BlockArgs_9crvvv", + () => ffi.Native.addressOf>( + _class__BlockArgs_5wf51x_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1rz4y3', +) +external ffi.Pointer _class__BlockArgs_5zyi3o_raw; +final _class__BlockArgs_5zyi3o = objc.getClass( + "_1uu024u_BlockArgs_1rz4y3", + () => ffi.Native.addressOf>( + _class__BlockArgs_5zyi3o_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_6tydoo_raw; +final _class__BlockArgs_6tydoo = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_6tydoo_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1b3bb6a', +) +external ffi.Pointer _class__BlockArgs_6yk1dr_raw; +final _class__BlockArgs_6yk1dr = objc.getClass( + "_1uu024u_BlockArgs_1b3bb6a", + () => ffi.Native.addressOf>( + _class__BlockArgs_6yk1dr_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_7xicdf_raw; +final _class__BlockArgs_7xicdf = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_7xicdf_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_jyim80', +) +external ffi.Pointer _class__BlockArgs_99x6vt_raw; +final _class__BlockArgs_99x6vt = objc.getClass( + "_1uu024u_BlockArgs_jyim80", + () => ffi.Native.addressOf>( + _class__BlockArgs_99x6vt_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1j7coyk', +) +external ffi.Pointer _class__BlockArgs_abn34x_raw; +final _class__BlockArgs_abn34x = objc.getClass( + "_1uu024u_BlockArgs_1j7coyk", + () => ffi.Native.addressOf>( + _class__BlockArgs_abn34x_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_adcfsd_raw; +final _class__BlockArgs_adcfsd = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_adcfsd_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_aec946_raw; +final _class__BlockArgs_aec946 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_aec946_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ovsamd', +) +external ffi.Pointer _class__BlockArgs_awd5mj_raw; +final _class__BlockArgs_awd5mj = objc.getClass( + "_1uu024u_BlockArgs_ovsamd", + () => ffi.Native.addressOf>( + _class__BlockArgs_awd5mj_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_b9s2kt_raw; +final _class__BlockArgs_b9s2kt = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_b9s2kt_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_blvx9k_raw; +final _class__BlockArgs_blvx9k = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_blvx9k_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_bklti2', +) +external ffi.Pointer _class__BlockArgs_de64m_raw; +final _class__BlockArgs_de64m = objc.getClass( + "_1uu024u_BlockArgs_bklti2", + () => ffi.Native.addressOf>( + _class__BlockArgs_de64m_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_o762yo', +) +external ffi.Pointer _class__BlockArgs_di5ft6_raw; +final _class__BlockArgs_di5ft6 = objc.getClass( + "_1uu024u_BlockArgs_o762yo", + () => ffi.Native.addressOf>( + _class__BlockArgs_di5ft6_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1ctgxtl', +) +external ffi.Pointer _class__BlockArgs_dmvhfp_raw; +final _class__BlockArgs_dmvhfp = objc.getClass( + "_1uu024u_BlockArgs_1ctgxtl", + () => ffi.Native.addressOf>( + _class__BlockArgs_dmvhfp_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1l4hxwm', +) +external ffi.Pointer _class__BlockArgs_eu2222_raw; +final _class__BlockArgs_eu2222 = objc.getClass( + "_1uu024u_BlockArgs_1l4hxwm", + () => ffi.Native.addressOf>( + _class__BlockArgs_eu2222_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1cn988u', +) +external ffi.Pointer _class__BlockArgs_gcznpv_raw; +final _class__BlockArgs_gcznpv = objc.getClass( + "_1uu024u_BlockArgs_1cn988u", + () => ffi.Native.addressOf>( + _class__BlockArgs_gcznpv_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8jfq1p', +) +external ffi.Pointer _class__BlockArgs_hacm4k_raw; +final _class__BlockArgs_hacm4k = objc.getClass( + "_1uu024u_BlockArgs_8jfq1p", + () => ffi.Native.addressOf>( + _class__BlockArgs_hacm4k_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_o762yo', +) +external ffi.Pointer _class__BlockArgs_hj4uui_raw; +final _class__BlockArgs_hj4uui = objc.getClass( + "_1uu024u_BlockArgs_o762yo", + () => ffi.Native.addressOf>( + _class__BlockArgs_hj4uui_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1037nh9', +) +external ffi.Pointer _class__BlockArgs_hj6v1u_raw; +final _class__BlockArgs_hj6v1u = objc.getClass( + "_1uu024u_BlockArgs_1037nh9", + () => ffi.Native.addressOf>( + _class__BlockArgs_hj6v1u_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_i7wriu_raw; +final _class__BlockArgs_i7wriu = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_i7wriu_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1pl9qdv', +) +external ffi.Pointer _class__BlockArgs_ii17hk_raw; +final _class__BlockArgs_ii17hk = objc.getClass( + "_1uu024u_BlockArgs_1pl9qdv", + () => ffi.Native.addressOf>( + _class__BlockArgs_ii17hk_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_k73ff5', +) +external ffi.Pointer _class__BlockArgs_j3xbuw_raw; +final _class__BlockArgs_j3xbuw = objc.getClass( + "_1uu024u_BlockArgs_k73ff5", + () => ffi.Native.addressOf>( + _class__BlockArgs_j3xbuw_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', +) +external ffi.Pointer _class__BlockArgs_jqba1_raw; +final _class__BlockArgs_jqba1 = objc.getClass( + "_1uu024u_BlockArgs_xx612k", + () => ffi.Native.addressOf>( + _class__BlockArgs_jqba1_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_jzitwn_raw; +final _class__BlockArgs_jzitwn = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_jzitwn_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_k1nazc_raw; +final _class__BlockArgs_k1nazc = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_k1nazc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_k2hpmy_raw; +final _class__BlockArgs_k2hpmy = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_k2hpmy_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18kzm6a', +) +external ffi.Pointer _class__BlockArgs_k4eb20_raw; +final _class__BlockArgs_k4eb20 = objc.getClass( + "_1uu024u_BlockArgs_18kzm6a", + () => ffi.Native.addressOf>( + _class__BlockArgs_k4eb20_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1s56lr9', +) +external ffi.Pointer _class__BlockArgs_k4je64_raw; +final _class__BlockArgs_k4je64 = objc.getClass( + "_1uu024u_BlockArgs_1s56lr9", + () => ffi.Native.addressOf>( + _class__BlockArgs_k4je64_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6enxqz', +) +external ffi.Pointer _class__BlockArgs_kqbpyy_raw; +final _class__BlockArgs_kqbpyy = objc.getClass( + "_1uu024u_BlockArgs_6enxqz", + () => ffi.Native.addressOf>( + _class__BlockArgs_kqbpyy_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_krrtfh_raw; +final _class__BlockArgs_krrtfh = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_krrtfh_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_10ssdng', +) +external ffi.Pointer _class__BlockArgs_ldsont_raw; +final _class__BlockArgs_ldsont = objc.getClass( + "_1uu024u_BlockArgs_10ssdng", + () => ffi.Native.addressOf>( + _class__BlockArgs_ldsont_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_lmnq5k_raw; +final _class__BlockArgs_lmnq5k = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_lmnq5k_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1dqvvol', +) +external ffi.Pointer _class__BlockArgs_n2dxuu_raw; +final _class__BlockArgs_n2dxuu = objc.getClass( + "_1uu024u_BlockArgs_1dqvvol", + () => ffi.Native.addressOf>( + _class__BlockArgs_n2dxuu_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_nemba7_raw; +final _class__BlockArgs_nemba7 = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_nemba7_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8jfq1p', +) +external ffi.Pointer _class__BlockArgs_nhk5a9_raw; +final _class__BlockArgs_nhk5a9 = objc.getClass( + "_1uu024u_BlockArgs_8jfq1p", + () => ffi.Native.addressOf>( + _class__BlockArgs_nhk5a9_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_jk1ljc', +) +external ffi.Pointer _class__BlockArgs_pfi7f3_raw; +final _class__BlockArgs_pfi7f3 = objc.getClass( + "_1uu024u_BlockArgs_jk1ljc", + () => ffi.Native.addressOf>( + _class__BlockArgs_pfi7f3_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_pm23bg_raw; +final _class__BlockArgs_pm23bg = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_pm23bg_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1a22wz', +) +external ffi.Pointer _class__BlockArgs_q6fcam_raw; +final _class__BlockArgs_q6fcam = objc.getClass( + "_1uu024u_BlockArgs_1a22wz", + () => ffi.Native.addressOf>( + _class__BlockArgs_q6fcam_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_qjjttc_raw; +final _class__BlockArgs_qjjttc = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_qjjttc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_qss5hc_raw; +final _class__BlockArgs_qss5hc = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_qss5hc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_rojepe_raw; +final _class__BlockArgs_rojepe = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_rojepe_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_s52y0g_raw; +final _class__BlockArgs_s52y0g = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_s52y0g_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hk7n97', +) +external ffi.Pointer _class__BlockArgs_syyzqk_raw; +final _class__BlockArgs_syyzqk = objc.getClass( + "_1uu024u_BlockArgs_hk7n97", + () => ffi.Native.addressOf>( + _class__BlockArgs_syyzqk_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', +) +external ffi.Pointer _class__BlockArgs_t3r59d_raw; +final _class__BlockArgs_t3r59d = objc.getClass( + "_1uu024u_BlockArgs_m09tr7", + () => ffi.Native.addressOf>( + _class__BlockArgs_t3r59d_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15f11yh', +) +external ffi.Pointer _class__BlockArgs_tbof01_raw; +final _class__BlockArgs_tbof01 = objc.getClass( + "_1uu024u_BlockArgs_15f11yh", + () => ffi.Native.addressOf>( + _class__BlockArgs_tbof01_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_teaic5_raw; +final _class__BlockArgs_teaic5 = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_teaic5_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_tikg8p_raw; +final _class__BlockArgs_tikg8p = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_tikg8p_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_truc42_raw; +final _class__BlockArgs_truc42 = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_truc42_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_u4a6zc_raw; +final _class__BlockArgs_u4a6zc = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_u4a6zc_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_n8yd09', +) +external ffi.Pointer _class__BlockArgs_u65oe8_raw; +final _class__BlockArgs_u65oe8 = objc.getClass( + "_1uu024u_BlockArgs_n8yd09", + () => ffi.Native.addressOf>( + _class__BlockArgs_u65oe8_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_og5b6y', +) +external ffi.Pointer _class__BlockArgs_uul9n9_raw; +final _class__BlockArgs_uul9n9 = objc.getClass( + "_1uu024u_BlockArgs_og5b6y", + () => ffi.Native.addressOf>( + _class__BlockArgs_uul9n9_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_rdj45r', +) +external ffi.Pointer _class__BlockArgs_v1zq3a_raw; +final _class__BlockArgs_v1zq3a = objc.getClass( + "_1uu024u_BlockArgs_rdj45r", + () => ffi.Native.addressOf>( + _class__BlockArgs_v1zq3a_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_v5xz31_raw; +final _class__BlockArgs_v5xz31 = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_v5xz31_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1a22wz', +) +external ffi.Pointer _class__BlockArgs_v8in3_raw; +final _class__BlockArgs_v8in3 = objc.getClass( + "_1uu024u_BlockArgs_1a22wz", + () => ffi.Native.addressOf>( + _class__BlockArgs_v8in3_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_vaglpl_raw; +final _class__BlockArgs_vaglpl = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_vaglpl_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9fms3g', +) +external ffi.Pointer _class__BlockArgs_vgtcpl_raw; +final _class__BlockArgs_vgtcpl = objc.getClass( + "_1uu024u_BlockArgs_9fms3g", + () => ffi.Native.addressOf>( + _class__BlockArgs_vgtcpl_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', +) +external ffi.Pointer _class__BlockArgs_vpa8ji_raw; +final _class__BlockArgs_vpa8ji = objc.getClass( + "_1uu024u_BlockArgs_fjrv01", + () => ffi.Native.addressOf>( + _class__BlockArgs_vpa8ji_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', +) +external ffi.Pointer _class__BlockArgs_vx7t4i_raw; +final _class__BlockArgs_vx7t4i = objc.getClass( + "_1uu024u_BlockArgs_m09tr7", + () => ffi.Native.addressOf>( + _class__BlockArgs_vx7t4i_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_10lndml', +) +external ffi.Pointer _class__BlockArgs_wpl2gn_raw; +final _class__BlockArgs_wpl2gn = objc.getClass( + "_1uu024u_BlockArgs_10lndml", + () => ffi.Native.addressOf>( + _class__BlockArgs_wpl2gn_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', +) +external ffi.Pointer _class__BlockArgs_wtbfzi_raw; +final _class__BlockArgs_wtbfzi = objc.getClass( + "_1uu024u_BlockArgs_xtuoz7", + () => ffi.Native.addressOf>( + _class__BlockArgs_wtbfzi_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_x5cg0_raw; +final _class__BlockArgs_x5cg0 = objc.getClass( + "_1uu024u_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_x5cg0_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8acz2h', +) +external ffi.Pointer _class__BlockArgs_x7mqjz_raw; +final _class__BlockArgs_x7mqjz = objc.getClass( + "_1uu024u_BlockArgs_8acz2h", + () => ffi.Native.addressOf>( + _class__BlockArgs_x7mqjz_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', +) +external ffi.Pointer _class__BlockArgs_xcrg5s_raw; +final _class__BlockArgs_xcrg5s = objc.getClass( + "_1uu024u_BlockArgs_1tz5yf", + () => ffi.Native.addressOf>( + _class__BlockArgs_xcrg5s_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_h68abb', +) +external ffi.Pointer _class__BlockArgs_xh08sz_raw; +final _class__BlockArgs_xh08sz = objc.getClass( + "_1uu024u_BlockArgs_h68abb", + () => ffi.Native.addressOf>( + _class__BlockArgs_xh08sz_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', +) +external ffi.Pointer _class__BlockArgs_xj71gr_raw; +final _class__BlockArgs_xj71gr = objc.getClass( + "_1uu024u_BlockArgs_18v1jvf", + () => ffi.Native.addressOf>( + _class__BlockArgs_xj71gr_raw, + ).cast(), +); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_115kkcp', +) +external ffi.Pointer _class__BlockArgs_zgaes8_raw; +final _class__BlockArgs_zgaes8 = objc.getClass( + "_1uu024u_BlockArgs_115kkcp", + () => ffi.Native.addressOf>( + _class__BlockArgs_zgaes8_raw, + ).cast(), +); + +final class _cups_array_s extends ffi.Opaque {} + +final class _cups_dinfo_s extends ffi.Opaque {} + +final class _cups_file_s extends ffi.Opaque {} + +final class _cups_raster_s extends ffi.Opaque {} + +final class _filesec extends ffi.Opaque {} + +final class _http_addr_u extends ffi.Union { + external sockaddr addr; + + external sockaddr_in ipv4; + + external sockaddr_in6 ipv6; + + external sockaddr_un un; + + @ffi.Array.multi([256]) + external ffi.Array pad; +} + +final class _http_s extends ffi.Opaque {} + +final class _ipp_attribute_s extends ffi.Opaque {} + +final class _ipp_s extends ffi.Opaque {} + +final class _launch_data extends ffi.Opaque {} + +final class _malloc_zone_t extends ffi.Opaque {} + +final _objc_msgSend_105ehca = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_10nfbmq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_10txwc9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11a6od8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11hj8md = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11nrymb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__IOSurface> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__IOSurface> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11spmsz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11tcc61 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ffi.Pointer, + ) + >(); +final _objc_msgSend_126fd3h = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Bool, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + bool, + ) + >(); +final _objc_msgSend_129c579 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_130mcug = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); +final _objc_msgSend_13fklwp = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_13lgpwz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ) + >(); +final _objc_msgSend_13yqbb6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1415lvo = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_14hpxwa = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1513vdc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_158ju31 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_15dzt85 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_15qeuct = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_15v716q = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_15yz4e6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ) + >(); +final _objc_msgSend_164wts2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_165e55c = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_16a25o7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_16bn854 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_16fy0up = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_17amj0z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_17ns785 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_182fzon = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_182fzonStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_187k8ck = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18chyc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_18flwjr = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18qun1e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18r320v = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGSize Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGSize Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18r320vStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1b5ysjl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_1bonwe = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFRunLoopObserver> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__CFRunLoopObserver> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1c1ssyi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1c2zpn3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ) + >(); +final _objc_msgSend_1cc1buo = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1d2nxes = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1dau4w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1db3yj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1dcy00i = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1diehjo = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1dom33q = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1dpg4ct = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1dydpdi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_1e3ic39 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFError> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__CFError> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1e3pm0z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_1ea59hv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1f2nccz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1fdou4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1flkydz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1fnsr6j = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1fs7dv0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1fuqfwb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1gypgok = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1h3mito = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1hbj4cd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Uint32 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1hz7y9r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1i17va2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1i9r4xy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1iyq28l = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1j9bhml = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1jed5jl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1jknn71 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1jwityx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1jz97e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1k0ezzm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1k101e3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1k1akuq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_1k1o1s7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_1kn7frf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ko4qka = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedChar Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1kok4b = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1kva9v1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1kz7g09 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1l09uru = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1lhy15d = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1lk7ow3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1llrn9f = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lonves = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lsax7n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lwwnes = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1mbt9g9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1mik4ys = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1modw1b = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ffi.Int64, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >(); +final _objc_msgSend_1mpyy6y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGPoint Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGPoint Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1mpyy6yStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1n4ndiq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1nqw6vl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + NSUInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + bool, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1nwix4r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Uint32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1oj5o8z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int64 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ojrli4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); +final _objc_msgSend_1okkq16 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ) + >(); +final _objc_msgSend_1ommad9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__SecTrust> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__SecTrust> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1orxdfj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1orxdfjStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1oteutl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_1ozwf6k = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1p2ukjz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1p4gbjy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1p4uk9e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + double, + ) + >(); +final _objc_msgSend_1pl4k3n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1pp2gs8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_1pvm3yv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1q2ox4r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1qldcx0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1qv0eq4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1r6ymhb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1r7ue5f = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1r9llia = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1r9lliaStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1rbikrg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +final _objc_msgSend_1rhk8uh = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1s3ecd1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecTrust>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecTrust>, + ) + >(); +final _objc_msgSend_1s56lr9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1sbro63 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1sotr3r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1t6aok9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1tqkjbg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1tv4uax = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1u11dbb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1u11dbbStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1upeo1d = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +final _objc_msgSend_1uwdhlk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGPoint Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGPoint Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1uwdhlkStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vdfken = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGSize Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGSize Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vdfkenStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vfc2dz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vfgg7v = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vkunzi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vnlaqg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1w05pgk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1wgub22 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1whyima = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1wqutdn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1wtpmu7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1xmmt6t = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ygbbzi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1yyiln9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFRunLoopTimer> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__CFRunLoopTimer> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2naryv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_2p9qiq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2wiv66 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3fn4ca = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3gpdva = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3ow0v1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ffi.LongLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >(); +final _objc_msgSend_3pyzne = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_4qsw9q = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_4sp4xj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_56zxyn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_5bd8xr = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_65s5yw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_65s5ywFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_6cylk3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ffi.LongLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_6ex6p5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_6h5ewf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ) + >(); +final _objc_msgSend_6p7ndb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_6pykvq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_6z4k82 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_7km9vu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_7kpg7m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_7ql5kn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_7w1jp7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_8cymbm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_8mvqcu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Bool, + ffi.Pointer>, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + bool, + ffi.Pointer>, + ffi.Pointer, + ) + >(); +final _objc_msgSend_91o635 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_9cddqw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_9qbz9w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Uint64 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_akk2cd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_b99g2z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_bkebbk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ffi.Pointer, + ) + >(); +final _objc_msgSend_bm6pu2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_bstjp9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_bu1hbw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGRect Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGRect Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_bu1hbwStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_d3i1uy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_d3i1uyStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_d8c3m2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_d9bpjb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_dgx62p = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_djsa9o = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_e1wgee = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_e3qsqz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_e9mncn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_erqryg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_esp80j = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_f167m6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_f227js = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGRect, + ffi.Pointer, + ) + >(); +final _objc_msgSend_fd28sq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_fm5719 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Int64, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_fooyu3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSUInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_g3kdhc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_g4ia9x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_g4ia9xFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_gtxojt = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_h0gkbf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Size Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_h10lj0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_h1puss = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_h42mdr = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hefmm1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_hjhgti = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hk7n97 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hwm8nu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_hws22w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_ifge4x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >(); +final _objc_msgSend_ijkvzl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_ipgwfh = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_ivnkdn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_iy8iz6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ) + >(); +final _objc_msgSend_jbzgy2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_jfo4g1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecIdentity>, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecIdentity>, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_kgvd6q = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_l9p60w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_l9ppnx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_lof6g0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_lx7wnn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_lzbvjm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_lzroim = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_m7tls4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_mabicu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_mlcr8l = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_mpxix1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_nk32k5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_nkb3zz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__SecIdentity> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__SecIdentity> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_nnxkei = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_o762yo = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_oa8mke = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_odvxky = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFArray> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__CFArray> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_ovsamd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_oziolg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer<__SecKey> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer<__SecKey> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_pccgql = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +final _objc_msgSend_pfv6jd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_pysgoz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int64 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_qrtfce = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.CGRect Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.CGRect Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_qrtfceStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_qugqlf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_quo6mj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); +final _objc_msgSend_r0bo0s = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_r8gdi7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_rmqcvp = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Uint16 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_rutu22 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_s058d2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_s92gih = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_sax6zm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSEdgeInsets, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSEdgeInsets, + ) + >(); +final _objc_msgSend_sl0cgw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSEdgeInsets Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + objc.NSEdgeInsets Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_sl0cgwStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_syi8bx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_sz90oi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_t8ajot = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); +final _objc_msgSend_tpnpd0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Long, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + bool, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_tsocn4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_tyifel = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSInteger Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_u2drt1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_u8u7og = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_uwvaik = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_v5hmet = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_vbc8p4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_vij4rw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_vkpxx6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + CFOptionFlags Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_vqual9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_w9bq5x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + objc.NSRange, + bool, + ) + >(); +final _objc_msgSend_wbgokv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_wep107 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGSize, + double, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_wfjd8v = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_wgkxx2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + objc.CGPoint, + ) + >(); +final _objc_msgSend_wp1dbz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_xhvge5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_xw2lbc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_y1izi1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_y1woti = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_yl37m5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() + .asFunction< + objc.NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +final _objc_msgSend_yl37m5Stret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + objc.NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + objc.NSRange, + ) + >(); +final _objc_msgSend_ylninc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_z7gxsm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_z7lrh9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Uint64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_zmbtbd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_zuf90e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_zy00wz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + objc.NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + objc.NSRange, + ffi.Pointer, + ) + >(); + +final class _opaque_pthread_attr_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([56]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_cond_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([40]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_condattr_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([8]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_mutex_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([56]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_mutexattr_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([8]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_once_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([8]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_rwlock_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([192]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_rwlockattr_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + @ffi.Array.multi([16]) + external ffi.Array __opaque; +} + +final class _opaque_pthread_t extends ffi.Struct { + @ffi.Long() + external int __sig; + + external ffi.Pointer<__darwin_pthread_handler_rec> __cleanup_stack; + + @ffi.Array.multi([8176]) + external ffi.Array __opaque; +} + +final class _ppd_cache_s extends ffi.Opaque {} + +typedef _ppd_cache_t = _ppd_cache_s; +@ffi.Native Function()>( + symbol: '_1uu024u_AVAudioPlayerDelegate', +) +external ffi.Pointer +_protocol_AVAudioPlayerDelegate_raw(); +final _protocol_AVAudioPlayerDelegate = objc.getProtocol( + "AVAudioPlayerDelegate", + _protocol_AVAudioPlayerDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_AVAudioSessionDelegate', +) +external ffi.Pointer +_protocol_AVAudioSessionDelegate_raw(); +final _protocol_AVAudioSessionDelegate = objc.getProtocol( + "AVAudioSessionDelegate", + _protocol_AVAudioSessionDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_CTAdaptiveImageProviding', +) +external ffi.Pointer +_protocol_CTAdaptiveImageProviding_raw(); +final _protocol_CTAdaptiveImageProviding = objc.getProtocol( + "CTAdaptiveImageProviding", + _protocol_CTAdaptiveImageProviding_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSCacheDelegate', +) +external ffi.Pointer _protocol_NSCacheDelegate_raw(); +final _protocol_NSCacheDelegate = objc.getProtocol( + "NSCacheDelegate", + _protocol_NSCacheDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSConnectionDelegate', +) +external ffi.Pointer +_protocol_NSConnectionDelegate_raw(); +final _protocol_NSConnectionDelegate = objc.getProtocol( + "NSConnectionDelegate", + _protocol_NSConnectionDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSDecimalNumberBehaviors', +) +external ffi.Pointer +_protocol_NSDecimalNumberBehaviors_raw(); +final _protocol_NSDecimalNumberBehaviors = objc.getProtocol( + "NSDecimalNumberBehaviors", + _protocol_NSDecimalNumberBehaviors_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSDiscardableContent', +) +external ffi.Pointer +_protocol_NSDiscardableContent_raw(); +final _protocol_NSDiscardableContent = objc.getProtocol( + "NSDiscardableContent", + _protocol_NSDiscardableContent_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSExtensionRequestHandling', +) +external ffi.Pointer +_protocol_NSExtensionRequestHandling_raw(); +final _protocol_NSExtensionRequestHandling = objc.getProtocol( + "NSExtensionRequestHandling", + _protocol_NSExtensionRequestHandling_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSFileManagerDelegate', +) +external ffi.Pointer +_protocol_NSFileManagerDelegate_raw(); +final _protocol_NSFileManagerDelegate = objc.getProtocol( + "NSFileManagerDelegate", + _protocol_NSFileManagerDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSFilePresenter', +) +external ffi.Pointer _protocol_NSFilePresenter_raw(); +final _protocol_NSFilePresenter = objc.getProtocol( + "NSFilePresenter", + _protocol_NSFilePresenter_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSKeyedArchiverDelegate', +) +external ffi.Pointer +_protocol_NSKeyedArchiverDelegate_raw(); +final _protocol_NSKeyedArchiverDelegate = objc.getProtocol( + "NSKeyedArchiverDelegate", + _protocol_NSKeyedArchiverDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSKeyedUnarchiverDelegate', +) +external ffi.Pointer +_protocol_NSKeyedUnarchiverDelegate_raw(); +final _protocol_NSKeyedUnarchiverDelegate = objc.getProtocol( + "NSKeyedUnarchiverDelegate", + _protocol_NSKeyedUnarchiverDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSLocking', +) +external ffi.Pointer _protocol_NSLocking_raw(); +final _protocol_NSLocking = objc.getProtocol( + "NSLocking", + _protocol_NSLocking_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSMachPortDelegate', +) +external ffi.Pointer _protocol_NSMachPortDelegate_raw(); +final _protocol_NSMachPortDelegate = objc.getProtocol( + "NSMachPortDelegate", + _protocol_NSMachPortDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSMetadataQueryDelegate', +) +external ffi.Pointer +_protocol_NSMetadataQueryDelegate_raw(); +final _protocol_NSMetadataQueryDelegate = objc.getProtocol( + "NSMetadataQueryDelegate", + _protocol_NSMetadataQueryDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSNetServiceBrowserDelegate', +) +external ffi.Pointer +_protocol_NSNetServiceBrowserDelegate_raw(); +final _protocol_NSNetServiceBrowserDelegate = objc.getProtocol( + "NSNetServiceBrowserDelegate", + _protocol_NSNetServiceBrowserDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSNetServiceDelegate', +) +external ffi.Pointer +_protocol_NSNetServiceDelegate_raw(); +final _protocol_NSNetServiceDelegate = objc.getProtocol( + "NSNetServiceDelegate", + _protocol_NSNetServiceDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSProgressReporting', +) +external ffi.Pointer _protocol_NSProgressReporting_raw(); +final _protocol_NSProgressReporting = objc.getProtocol( + "NSProgressReporting", + _protocol_NSProgressReporting_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSSpellServerDelegate', +) +external ffi.Pointer +_protocol_NSSpellServerDelegate_raw(); +final _protocol_NSSpellServerDelegate = objc.getProtocol( + "NSSpellServerDelegate", + _protocol_NSSpellServerDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLAuthenticationChallengeSender', +) +external ffi.Pointer +_protocol_NSURLAuthenticationChallengeSender_raw(); +final _protocol_NSURLAuthenticationChallengeSender = objc.getProtocol( + "NSURLAuthenticationChallengeSender", + _protocol_NSURLAuthenticationChallengeSender_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLConnectionDataDelegate', +) +external ffi.Pointer +_protocol_NSURLConnectionDataDelegate_raw(); +final _protocol_NSURLConnectionDataDelegate = objc.getProtocol( + "NSURLConnectionDataDelegate", + _protocol_NSURLConnectionDataDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLConnectionDelegate', +) +external ffi.Pointer +_protocol_NSURLConnectionDelegate_raw(); +final _protocol_NSURLConnectionDelegate = objc.getProtocol( + "NSURLConnectionDelegate", + _protocol_NSURLConnectionDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLConnectionDownloadDelegate', +) +external ffi.Pointer +_protocol_NSURLConnectionDownloadDelegate_raw(); +final _protocol_NSURLConnectionDownloadDelegate = objc.getProtocol( + "NSURLConnectionDownloadDelegate", + _protocol_NSURLConnectionDownloadDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLDownloadDelegate', +) +external ffi.Pointer +_protocol_NSURLDownloadDelegate_raw(); +final _protocol_NSURLDownloadDelegate = objc.getProtocol( + "NSURLDownloadDelegate", + _protocol_NSURLDownloadDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLHandleClient', +) +external ffi.Pointer _protocol_NSURLHandleClient_raw(); +final _protocol_NSURLHandleClient = objc.getProtocol( + "NSURLHandleClient", + _protocol_NSURLHandleClient_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLProtocolClient', +) +external ffi.Pointer _protocol_NSURLProtocolClient_raw(); +final _protocol_NSURLProtocolClient = objc.getProtocol( + "NSURLProtocolClient", + _protocol_NSURLProtocolClient_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionDataDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionDataDelegate_raw(); +final _protocol_NSURLSessionDataDelegate = objc.getProtocol( + "NSURLSessionDataDelegate", + _protocol_NSURLSessionDataDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionDelegate_raw(); +final _protocol_NSURLSessionDelegate = objc.getProtocol( + "NSURLSessionDelegate", + _protocol_NSURLSessionDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionDownloadDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionDownloadDelegate_raw(); +final _protocol_NSURLSessionDownloadDelegate = objc.getProtocol( + "NSURLSessionDownloadDelegate", + _protocol_NSURLSessionDownloadDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionStreamDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionStreamDelegate_raw(); +final _protocol_NSURLSessionStreamDelegate = objc.getProtocol( + "NSURLSessionStreamDelegate", + _protocol_NSURLSessionStreamDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionTaskDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionTaskDelegate_raw(); +final _protocol_NSURLSessionTaskDelegate = objc.getProtocol( + "NSURLSessionTaskDelegate", + _protocol_NSURLSessionTaskDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSURLSessionWebSocketDelegate', +) +external ffi.Pointer +_protocol_NSURLSessionWebSocketDelegate_raw(); +final _protocol_NSURLSessionWebSocketDelegate = objc.getProtocol( + "NSURLSessionWebSocketDelegate", + _protocol_NSURLSessionWebSocketDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSUserActivityDelegate', +) +external ffi.Pointer +_protocol_NSUserActivityDelegate_raw(); +final _protocol_NSUserActivityDelegate = objc.getProtocol( + "NSUserActivityDelegate", + _protocol_NSUserActivityDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSUserNotificationCenterDelegate', +) +external ffi.Pointer +_protocol_NSUserNotificationCenterDelegate_raw(); +final _protocol_NSUserNotificationCenterDelegate = objc.getProtocol( + "NSUserNotificationCenterDelegate", + _protocol_NSUserNotificationCenterDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSXMLParserDelegate', +) +external ffi.Pointer _protocol_NSXMLParserDelegate_raw(); +final _protocol_NSXMLParserDelegate = objc.getProtocol( + "NSXMLParserDelegate", + _protocol_NSXMLParserDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSXPCListenerDelegate', +) +external ffi.Pointer +_protocol_NSXPCListenerDelegate_raw(); +final _protocol_NSXPCListenerDelegate = objc.getProtocol( + "NSXPCListenerDelegate", + _protocol_NSXPCListenerDelegate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_NSXPCProxyCreating', +) +external ffi.Pointer _protocol_NSXPCProxyCreating_raw(); +final _protocol_NSXPCProxyCreating = objc.getProtocol( + "NSXPCProxyCreating", + _protocol_NSXPCProxyCreating_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_data', +) +external ffi.Pointer _protocol_OS_dispatch_data_raw(); +final _protocol_OS_dispatch_data = objc.getProtocol( + "OS_dispatch_data", + _protocol_OS_dispatch_data_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_group', +) +external ffi.Pointer _protocol_OS_dispatch_group_raw(); +final _protocol_OS_dispatch_group = objc.getProtocol( + "OS_dispatch_group", + _protocol_OS_dispatch_group_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_io', +) +external ffi.Pointer _protocol_OS_dispatch_io_raw(); +final _protocol_OS_dispatch_io = objc.getProtocol( + "OS_dispatch_io", + _protocol_OS_dispatch_io_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_object', +) +external ffi.Pointer _protocol_OS_dispatch_object_raw(); +final _protocol_OS_dispatch_object = objc.getProtocol( + "OS_dispatch_object", + _protocol_OS_dispatch_object_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue', +) +external ffi.Pointer _protocol_OS_dispatch_queue_raw(); +final _protocol_OS_dispatch_queue = objc.getProtocol( + "OS_dispatch_queue", + _protocol_OS_dispatch_queue_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_attr', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_attr_raw(); +final _protocol_OS_dispatch_queue_attr = objc.getProtocol( + "OS_dispatch_queue_attr", + _protocol_OS_dispatch_queue_attr_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_concurrent', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_concurrent_raw(); +final _protocol_OS_dispatch_queue_concurrent = objc.getProtocol( + "OS_dispatch_queue_concurrent", + _protocol_OS_dispatch_queue_concurrent_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_global', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_global_raw(); +final _protocol_OS_dispatch_queue_global = objc.getProtocol( + "OS_dispatch_queue_global", + _protocol_OS_dispatch_queue_global_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_main', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_main_raw(); +final _protocol_OS_dispatch_queue_main = objc.getProtocol( + "OS_dispatch_queue_main", + _protocol_OS_dispatch_queue_main_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_serial', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_serial_raw(); +final _protocol_OS_dispatch_queue_serial = objc.getProtocol( + "OS_dispatch_queue_serial", + _protocol_OS_dispatch_queue_serial_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_queue_serial_executor', +) +external ffi.Pointer +_protocol_OS_dispatch_queue_serial_executor_raw(); +final _protocol_OS_dispatch_queue_serial_executor = objc.getProtocol( + "OS_dispatch_queue_serial_executor", + _protocol_OS_dispatch_queue_serial_executor_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_semaphore', +) +external ffi.Pointer +_protocol_OS_dispatch_semaphore_raw(); +final _protocol_OS_dispatch_semaphore = objc.getProtocol( + "OS_dispatch_semaphore", + _protocol_OS_dispatch_semaphore_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_source', +) +external ffi.Pointer _protocol_OS_dispatch_source_raw(); +final _protocol_OS_dispatch_source = objc.getProtocol( + "OS_dispatch_source", + _protocol_OS_dispatch_source_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_dispatch_workloop', +) +external ffi.Pointer +_protocol_OS_dispatch_workloop_raw(); +final _protocol_OS_dispatch_workloop = objc.getProtocol( + "OS_dispatch_workloop", + _protocol_OS_dispatch_workloop_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_os_workgroup_interval', +) +external ffi.Pointer +_protocol_OS_os_workgroup_interval_raw(); +final _protocol_OS_os_workgroup_interval = objc.getProtocol( + "OS_os_workgroup_interval", + _protocol_OS_os_workgroup_interval_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_os_workgroup_parallel', +) +external ffi.Pointer +_protocol_OS_os_workgroup_parallel_raw(); +final _protocol_OS_os_workgroup_parallel = objc.getProtocol( + "OS_os_workgroup_parallel", + _protocol_OS_os_workgroup_parallel_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_certificate', +) +external ffi.Pointer _protocol_OS_sec_certificate_raw(); +final _protocol_OS_sec_certificate = objc.getProtocol( + "OS_sec_certificate", + _protocol_OS_sec_certificate_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_identity', +) +external ffi.Pointer _protocol_OS_sec_identity_raw(); +final _protocol_OS_sec_identity = objc.getProtocol( + "OS_sec_identity", + _protocol_OS_sec_identity_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_object', +) +external ffi.Pointer _protocol_OS_sec_object_raw(); +final _protocol_OS_sec_object = objc.getProtocol( + "OS_sec_object", + _protocol_OS_sec_object_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_protocol_metadata', +) +external ffi.Pointer +_protocol_OS_sec_protocol_metadata_raw(); +final _protocol_OS_sec_protocol_metadata = objc.getProtocol( + "OS_sec_protocol_metadata", + _protocol_OS_sec_protocol_metadata_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_protocol_options', +) +external ffi.Pointer +_protocol_OS_sec_protocol_options_raw(); +final _protocol_OS_sec_protocol_options = objc.getProtocol( + "OS_sec_protocol_options", + _protocol_OS_sec_protocol_options_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_sec_trust', +) +external ffi.Pointer _protocol_OS_sec_trust_raw(); +final _protocol_OS_sec_trust = objc.getProtocol( + "OS_sec_trust", + _protocol_OS_sec_trust_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_xpc_listener', +) +external ffi.Pointer _protocol_OS_xpc_listener_raw(); +final _protocol_OS_xpc_listener = objc.getProtocol( + "OS_xpc_listener", + _protocol_OS_xpc_listener_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_xpc_object', +) +external ffi.Pointer _protocol_OS_xpc_object_raw(); +final _protocol_OS_xpc_object = objc.getProtocol( + "OS_xpc_object", + _protocol_OS_xpc_object_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_xpc_peer_requirement', +) +external ffi.Pointer +_protocol_OS_xpc_peer_requirement_raw(); +final _protocol_OS_xpc_peer_requirement = objc.getProtocol( + "OS_xpc_peer_requirement", + _protocol_OS_xpc_peer_requirement_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_OS_xpc_session', +) +external ffi.Pointer _protocol_OS_xpc_session_raw(); +final _protocol_OS_xpc_session = objc.getProtocol( + "OS_xpc_session", + _protocol_OS_xpc_session_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_PDEPanel', +) +external ffi.Pointer _protocol_PDEPanel_raw(); +final _protocol_PDEPanel = objc.getProtocol("PDEPanel", _protocol_PDEPanel_raw); +@ffi.Native Function()>( + symbol: '_1uu024u_PDEPlugIn', +) +external ffi.Pointer _protocol_PDEPlugIn_raw(); +final _protocol_PDEPlugIn = objc.getProtocol( + "PDEPlugIn", + _protocol_PDEPlugIn_raw, +); +@ffi.Native Function()>( + symbol: '_1uu024u_PDEPlugInCallbackProtocol', +) +external ffi.Pointer +_protocol_PDEPlugInCallbackProtocol_raw(); +final _protocol_PDEPlugInCallbackProtocol = objc.getProtocol( + "PDEPlugInCallbackProtocol", + _protocol_PDEPlugInCallbackProtocol_raw, +); +late final _sel_HTTPBody = objc.registerName("HTTPBody"); +late final _sel_HTTPBodyStream = objc.registerName("HTTPBodyStream"); +late final _sel_HTTPMethod = objc.registerName("HTTPMethod"); +late final _sel_HTTPShouldHandleCookies = objc.registerName( + "HTTPShouldHandleCookies", +); +late final _sel_HTTPShouldUsePipelining = objc.registerName( + "HTTPShouldUsePipelining", +); +late final _sel_IOBufferDuration = objc.registerName("IOBufferDuration"); +late final _sel_ISOCountryCodes = objc.registerName("ISOCountryCodes"); +late final _sel_ISOCurrencyCodes = objc.registerName("ISOCurrencyCodes"); +late final _sel_ISOLanguageCodes = objc.registerName("ISOLanguageCodes"); +late final _sel_PDEPanelsForType_withHostInfo_ = objc.registerName( + "PDEPanelsForType:withHostInfo:", +); +late final _sel_PMPrinter = objc.registerName("PMPrinter"); +late final _sel_PPDOptionKeyValueDidChange_ppdChoice_ = objc.registerName( + "PPDOptionKeyValueDidChange:ppdChoice:", +); +late final _sel_URL = objc.registerName("URL"); +late final _sel_URLByAppendingPathComponent_ = objc.registerName( + "URLByAppendingPathComponent:", +); +late final _sel_URLByAppendingPathComponent_isDirectory_ = objc.registerName( + "URLByAppendingPathComponent:isDirectory:", +); +late final _sel_URLByAppendingPathExtension_ = objc.registerName( + "URLByAppendingPathExtension:", +); +late final _sel_URLByDeletingLastPathComponent = objc.registerName( + "URLByDeletingLastPathComponent", +); +late final _sel_URLByDeletingPathExtension = objc.registerName( + "URLByDeletingPathExtension", +); +late final _sel_URLByResolvingSymlinksInPath = objc.registerName( + "URLByResolvingSymlinksInPath", +); +late final _sel_URLByStandardizingPath = objc.registerName( + "URLByStandardizingPath", +); +late final _sel_URLFragmentAllowedCharacterSet = objc.registerName( + "URLFragmentAllowedCharacterSet", +); +late final _sel_URLHandleResourceDidBeginLoading_ = objc.registerName( + "URLHandleResourceDidBeginLoading:", +); +late final _sel_URLHandleResourceDidCancelLoading_ = objc.registerName( + "URLHandleResourceDidCancelLoading:", +); +late final _sel_URLHandleResourceDidFinishLoading_ = objc.registerName( + "URLHandleResourceDidFinishLoading:", +); +late final _sel_URLHandleUsingCache_ = objc.registerName( + "URLHandleUsingCache:", +); +late final _sel_URLHandle_resourceDataDidBecomeAvailable_ = objc.registerName( + "URLHandle:resourceDataDidBecomeAvailable:", +); +late final _sel_URLHandle_resourceDidFailLoadingWithReason_ = objc.registerName( + "URLHandle:resourceDidFailLoadingWithReason:", +); +late final _sel_URLHostAllowedCharacterSet = objc.registerName( + "URLHostAllowedCharacterSet", +); +late final _sel_URLPasswordAllowedCharacterSet = objc.registerName( + "URLPasswordAllowedCharacterSet", +); +late final _sel_URLPathAllowedCharacterSet = objc.registerName( + "URLPathAllowedCharacterSet", +); +late final _sel_URLProtocolDidFinishLoading_ = objc.registerName( + "URLProtocolDidFinishLoading:", +); +late final _sel_URLProtocol_cachedResponseIsValid_ = objc.registerName( + "URLProtocol:cachedResponseIsValid:", +); +late final _sel_URLProtocol_didCancelAuthenticationChallenge_ = objc + .registerName("URLProtocol:didCancelAuthenticationChallenge:"); +late final _sel_URLProtocol_didFailWithError_ = objc.registerName( + "URLProtocol:didFailWithError:", +); +late final _sel_URLProtocol_didLoadData_ = objc.registerName( + "URLProtocol:didLoadData:", +); +late final _sel_URLProtocol_didReceiveAuthenticationChallenge_ = objc + .registerName("URLProtocol:didReceiveAuthenticationChallenge:"); +late final _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_ = objc + .registerName("URLProtocol:didReceiveResponse:cacheStoragePolicy:"); +late final _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_ = objc + .registerName("URLProtocol:wasRedirectedToRequest:redirectResponse:"); +late final _sel_URLQueryAllowedCharacterSet = objc.registerName( + "URLQueryAllowedCharacterSet", +); +late final _sel_URLResourceDidCancelLoading_ = objc.registerName( + "URLResourceDidCancelLoading:", +); +late final _sel_URLResourceDidFinishLoading_ = objc.registerName( + "URLResourceDidFinishLoading:", +); +late final _sel_URLSessionDidFinishEventsForBackgroundURLSession_ = objc + .registerName("URLSessionDidFinishEventsForBackgroundURLSession:"); +late final _sel_URLSession_betterRouteDiscoveredForStreamTask_ = objc + .registerName("URLSession:betterRouteDiscoveredForStreamTask:"); +late final _sel_URLSession_dataTask_didBecomeDownloadTask_ = objc.registerName( + "URLSession:dataTask:didBecomeDownloadTask:", +); +late final _sel_URLSession_dataTask_didBecomeStreamTask_ = objc.registerName( + "URLSession:dataTask:didBecomeStreamTask:", +); +late final _sel_URLSession_dataTask_didReceiveData_ = objc.registerName( + "URLSession:dataTask:didReceiveData:", +); +late final _sel_URLSession_dataTask_didReceiveResponse_completionHandler_ = objc + .registerName("URLSession:dataTask:didReceiveResponse:completionHandler:"); +late final _sel_URLSession_dataTask_willCacheResponse_completionHandler_ = objc + .registerName("URLSession:dataTask:willCacheResponse:completionHandler:"); +late final _sel_URLSession_didBecomeInvalidWithError_ = objc.registerName( + "URLSession:didBecomeInvalidWithError:", +); +late final _sel_URLSession_didCreateTask_ = objc.registerName( + "URLSession:didCreateTask:", +); +late final _sel_URLSession_didReceiveChallenge_completionHandler_ = objc + .registerName("URLSession:didReceiveChallenge:completionHandler:"); +late final _sel_URLSession_downloadTask_didFinishDownloadingToURL_ = objc + .registerName("URLSession:downloadTask:didFinishDownloadingToURL:"); +late final _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ = + objc.registerName( + "URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:", + ); +late final _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ = + objc.registerName( + "URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:", + ); +late final _sel_URLSession_readClosedForStreamTask_ = objc.registerName( + "URLSession:readClosedForStreamTask:", +); +late final _sel_URLSession_streamTask_didBecomeInputStream_outputStream_ = objc + .registerName("URLSession:streamTask:didBecomeInputStream:outputStream:"); +late final _sel_URLSession_taskIsWaitingForConnectivity_ = objc.registerName( + "URLSession:taskIsWaitingForConnectivity:", +); +late final _sel_URLSession_task_didCompleteWithError_ = objc.registerName( + "URLSession:task:didCompleteWithError:", +); +late final _sel_URLSession_task_didFinishCollectingMetrics_ = objc.registerName( + "URLSession:task:didFinishCollectingMetrics:", +); +late final _sel_URLSession_task_didReceiveChallenge_completionHandler_ = objc + .registerName("URLSession:task:didReceiveChallenge:completionHandler:"); +late final _sel_URLSession_task_didReceiveInformationalResponse_ = objc + .registerName("URLSession:task:didReceiveInformationalResponse:"); +late final _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = + objc.registerName( + "URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:", + ); +late final _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = + objc.registerName( + "URLSession:task:needNewBodyStreamFromOffset:completionHandler:", + ); +late final _sel_URLSession_task_needNewBodyStream_ = objc.registerName( + "URLSession:task:needNewBodyStream:", +); +late final _sel_URLSession_task_willBeginDelayedRequest_completionHandler_ = + objc.registerName( + "URLSession:task:willBeginDelayedRequest:completionHandler:", + ); +late final _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = + objc.registerName( + "URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:", + ); +late final _sel_URLSession_webSocketTask_didCloseWithCode_reason_ = objc + .registerName("URLSession:webSocketTask:didCloseWithCode:reason:"); +late final _sel_URLSession_webSocketTask_didOpenWithProtocol_ = objc + .registerName("URLSession:webSocketTask:didOpenWithProtocol:"); +late final _sel_URLSession_writeClosedForStreamTask_ = objc.registerName( + "URLSession:writeClosedForStreamTask:", +); +late final _sel_URLUserAllowedCharacterSet = objc.registerName( + "URLUserAllowedCharacterSet", +); +late final _sel_URL_resourceDataDidBecomeAvailable_ = objc.registerName( + "URL:resourceDataDidBecomeAvailable:", +); +late final _sel_URL_resourceDidFailLoadingWithReason_ = objc.registerName( + "URL:resourceDidFailLoadingWithReason:", +); +late final _sel_abbreviation = objc.registerName("abbreviation"); +late final _sel_abbreviationDictionary = objc.registerName( + "abbreviationDictionary", +); +late final _sel_acceptConnectionInBackgroundAndNotify = objc.registerName( + "acceptConnectionInBackgroundAndNotify", +); +late final _sel_acceptConnectionInBackgroundAndNotifyForModes_ = objc + .registerName("acceptConnectionInBackgroundAndNotifyForModes:"); +late final _sel_accessInstanceVariablesDirectly = objc.registerName( + "accessInstanceVariablesDirectly", +); +late final _sel_accommodatePresentedItemDeletionWithCompletionHandler_ = objc + .registerName("accommodatePresentedItemDeletionWithCompletionHandler:"); +late final _sel_accommodatePresentedItemEvictionWithCompletionHandler_ = objc + .registerName("accommodatePresentedItemEvictionWithCompletionHandler:"); +late final _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_ = + objc.registerName( + "accommodatePresentedSubitemDeletionAtURL:completionHandler:", + ); +late final _sel_activateWithOptions_completionHandler_ = objc.registerName( + "activateWithOptions:completionHandler:", +); +late final _sel_addAttribute_value_range_ = objc.registerName( + "addAttribute:value:range:", +); +late final _sel_addAttributes_range_ = objc.registerName( + "addAttributes:range:", +); +late final _sel_addFileWithPath_ = objc.registerName("addFileWithPath:"); +late final _sel_addObserver_forKeyPath_options_context_ = objc.registerName( + "addObserver:forKeyPath:options:context:", +); +late final _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_ = + objc.registerName( + "addObserver:toObjectsAtIndexes:forKeyPath:options:context:", + ); +late final _sel_addSymbolicLinkWithDestination_preferredFilename_ = objc + .registerName("addSymbolicLinkWithDestination:preferredFilename:"); +late final _sel_addValue_forHTTPHeaderField_ = objc.registerName( + "addValue:forHTTPHeaderField:", +); +late final _sel_addressCheckingResultWithRange_components_ = objc.registerName( + "addressCheckingResultWithRange:components:", +); +late final _sel_addressComponents = objc.registerName("addressComponents"); +late final _sel_allHTTPHeaderFields = objc.registerName("allHTTPHeaderFields"); +late final _sel_allLanguages = objc.registerName("allLanguages"); +late final _sel_allObjects = objc.registerName("allObjects"); +late final _sel_allScripts = objc.registerName("allScripts"); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +late final _sel_allowedClasses = objc.registerName("allowedClasses"); +late final _sel_allowsKeyedCoding = objc.registerName("allowsKeyedCoding"); +late final _sel_allowsNaturalLanguage = objc.registerName( + "allowsNaturalLanguage", +); +late final _sel_alternateQuotationBeginDelimiter = objc.registerName( + "alternateQuotationBeginDelimiter", +); +late final _sel_alternateQuotationEndDelimiter = objc.registerName( + "alternateQuotationEndDelimiter", +); +late final _sel_alternativeStrings = objc.registerName("alternativeStrings"); +late final _sel_appendAttributedString_ = objc.registerName( + "appendAttributedString:", +); +late final _sel_appendFormat_ = objc.registerName("appendFormat:"); +late final _sel_appendLocalizedFormat_ = objc.registerName( + "appendLocalizedFormat:", +); +late final _sel_appendString_ = objc.registerName("appendString:"); +late final _sel_applyDifference_ = objc.registerName("applyDifference:"); +late final _sel_applyTransform_reverse_range_updatedRange_ = objc.registerName( + "applyTransform:reverse:range:updatedRange:", +); +late final _sel_archiverDidFinish_ = objc.registerName("archiverDidFinish:"); +late final _sel_archiverWillFinish_ = objc.registerName("archiverWillFinish:"); +late final _sel_archiver_didEncodeObject_ = objc.registerName( + "archiver:didEncodeObject:", +); +late final _sel_archiver_willEncodeObject_ = objc.registerName( + "archiver:willEncodeObject:", +); +late final _sel_archiver_willReplaceObject_withObject_ = objc.registerName( + "archiver:willReplaceObject:withObject:", +); +late final _sel_arg0 = objc.registerName("arg0"); +late final _sel_arg1 = objc.registerName("arg1"); +late final _sel_arg2 = objc.registerName("arg2"); +late final _sel_arg3 = objc.registerName("arg3"); +late final _sel_arg4 = objc.registerName("arg4"); +late final _sel_arg5 = objc.registerName("arg5"); +late final _sel_array = objc.registerName("array"); +late final _sel_arrayByApplyingDifference_ = objc.registerName( + "arrayByApplyingDifference:", +); +late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); +late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); +late final _sel_arrayWithContentsOfFile_ = objc.registerName( + "arrayWithContentsOfFile:", +); +late final _sel_arrayWithContentsOfURL_ = objc.registerName( + "arrayWithContentsOfURL:", +); +late final _sel_arrayWithContentsOfURL_error_ = objc.registerName( + "arrayWithContentsOfURL:error:", +); +late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); +late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); +late final _sel_arrayWithObjects_count_ = objc.registerName( + "arrayWithObjects:count:", +); +late final _sel_attemptRecoveryFromError_optionIndex_ = objc.registerName( + "attemptRecoveryFromError:optionIndex:", +); +late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_ = + objc.registerName( + "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:", + ); +late final _sel_attributeKeys = objc.registerName("attributeKeys"); +late final _sel_attribute_atIndex_effectiveRange_ = objc.registerName( + "attribute:atIndex:effectiveRange:", +); +late final _sel_attribute_atIndex_longestEffectiveRange_inRange_ = objc + .registerName("attribute:atIndex:longestEffectiveRange:inRange:"); +late final _sel_attributedStringByInflectingString = objc.registerName( + "attributedStringByInflectingString", +); +late final _sel_attributedStringForNil = objc.registerName( + "attributedStringForNil", +); +late final _sel_attributedStringForNotANumber = objc.registerName( + "attributedStringForNotANumber", +); +late final _sel_attributedStringForZero = objc.registerName( + "attributedStringForZero", +); +late final _sel_attributedSubstringFromRange_ = objc.registerName( + "attributedSubstringFromRange:", +); +late final _sel_attributesAtIndex_longestEffectiveRange_inRange_ = objc + .registerName("attributesAtIndex:longestEffectiveRange:inRange:"); +late final _sel_audioPlayerDecodeErrorDidOccur_error_ = objc.registerName( + "audioPlayerDecodeErrorDidOccur:error:", +); +late final _sel_audioPlayerDidFinishPlaying_successfully_ = objc.registerName( + "audioPlayerDidFinishPlaying:successfully:", +); +late final _sel_authenticateComponents_withData_ = objc.registerName( + "authenticateComponents:withData:", +); +late final _sel_authenticationDataForComponents_ = objc.registerName( + "authenticationDataForComponents:", +); +late final _sel_autoContentAccessingProxy = objc.registerName( + "autoContentAccessingProxy", +); +late final _sel_automaticallyNotifiesObserversForKey_ = objc.registerName( + "automaticallyNotifiesObserversForKey:", +); +late final _sel_autoupdatingCurrentLocale = objc.registerName( + "autoupdatingCurrentLocale", +); +late final _sel_availableInputs = objc.registerName("availableInputs"); +late final _sel_availableLocaleIdentifiers = objc.registerName( + "availableLocaleIdentifiers", +); +late final _sel_averagePowerForChannel_ = objc.registerName( + "averagePowerForChannel:", +); +late final _sel_awakeAfterUsingCoder_ = objc.registerName( + "awakeAfterUsingCoder:", +); +late final _sel_backgroundSessionConfiguration_ = objc.registerName( + "backgroundSessionConfiguration:", +); +late final _sel_base64EncodedDataWithOptions_ = objc.registerName( + "base64EncodedDataWithOptions:", +); +late final _sel_base64EncodedStringWithOptions_ = objc.registerName( + "base64EncodedStringWithOptions:", +); +late final _sel_base64Encoding = objc.registerName("base64Encoding"); +late final _sel_beginActivityWithOptions_reason_ = objc.registerName( + "beginActivityWithOptions:reason:", +); +late final _sel_beginContentAccess = objc.registerName("beginContentAccess"); +late final _sel_beginEditing = objc.registerName("beginEditing"); +late final _sel_beginInterruption = objc.registerName("beginInterruption"); +late final _sel_beginRequestWithExtensionContext_ = objc.registerName( + "beginRequestWithExtensionContext:", +); +late final _sel_bluetoothMicrophoneExtension = objc.registerName( + "bluetoothMicrophoneExtension", +); +late final _sel_cString = objc.registerName("cString"); +late final _sel_cStringLength = objc.registerName("cStringLength"); +late final _sel_cache_willEvictObject_ = objc.registerName( + "cache:willEvictObject:", +); +late final _sel_calendarIdentifier = objc.registerName("calendarIdentifier"); +late final _sel_canInflectLanguage_ = objc.registerName("canInflectLanguage:"); +late final _sel_canInflectPreferredLocalization = objc.registerName( + "canInflectPreferredLocalization", +); +late final _sel_canInitWithTask_ = objc.registerName("canInitWithTask:"); +late final _sel_cancelAuthenticationChallenge_ = objc.registerName( + "cancelAuthenticationChallenge:", +); +late final _sel_cancelPerformSelector_target_argument_ = objc.registerName( + "cancelPerformSelector:target:argument:", +); +late final _sel_cancelPerformSelectorsWithTarget_ = objc.registerName( + "cancelPerformSelectorsWithTarget:", +); +late final _sel_cancelPreviousPerformRequestsWithTarget_ = objc.registerName( + "cancelPreviousPerformRequestsWithTarget:", +); +late final _sel_cancelPreviousPerformRequestsWithTarget_selector_object_ = objc + .registerName("cancelPreviousPerformRequestsWithTarget:selector:object:"); +late final _sel_canonicalLanguageIdentifierFromString_ = objc.registerName( + "canonicalLanguageIdentifierFromString:", +); +late final _sel_canonicalLocaleIdentifierFromString_ = objc.registerName( + "canonicalLocaleIdentifierFromString:", +); +late final _sel_certificates = objc.registerName("certificates"); +late final _sel_channelAssignments = objc.registerName("channelAssignments"); +late final _sel_characterDirectionForLanguage_ = objc.registerName( + "characterDirectionForLanguage:", +); +late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( + "checkPromisedItemIsReachableAndReturnError:", +); +late final _sel_checkResourceIsReachableAndReturnError_ = objc.registerName( + "checkResourceIsReachableAndReturnError:", +); +late final _sel_classCode = objc.registerName("classCode"); +late final _sel_classDescription = objc.registerName("classDescription"); +late final _sel_classFallbacksForKeyedArchiver = objc.registerName( + "classFallbacksForKeyedArchiver", +); +late final _sel_classForArchiver = objc.registerName("classForArchiver"); +late final _sel_classForCoder = objc.registerName("classForCoder"); +late final _sel_classForKeyedArchiver = objc.registerName( + "classForKeyedArchiver", +); +late final _sel_classForKeyedUnarchiver = objc.registerName( + "classForKeyedUnarchiver", +); +late final _sel_classForPortCoder = objc.registerName("classForPortCoder"); +late final _sel_className = objc.registerName("className"); +late final _sel_coerceValue_forKey_ = objc.registerName("coerceValue:forKey:"); +late final _sel_collationIdentifier = objc.registerName("collationIdentifier"); +late final _sel_collatorIdentifier = objc.registerName("collatorIdentifier"); +late final _sel_columnNumber = objc.registerName("columnNumber"); +late final _sel_commonISOCurrencyCodes = objc.registerName( + "commonISOCurrencyCodes", +); +late final _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_ = + objc.registerName( + "completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:", + ); +late final _sel_components = objc.registerName("components"); +late final _sel_componentsFromLocaleIdentifier_ = objc.registerName( + "componentsFromLocaleIdentifier:", +); +late final _sel_compressUsingAlgorithm_error_ = objc.registerName( + "compressUsingAlgorithm:error:", +); +late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( + "compressedDataUsingAlgorithm:error:", +); +late final _sel_configureAsServer = objc.registerName("configureAsServer"); +late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); +late final _sel_connectionDidFinishDownloading_destinationURL_ = objc + .registerName("connectionDidFinishDownloading:destinationURL:"); +late final _sel_connectionDidFinishLoading_ = objc.registerName( + "connectionDidFinishLoading:", +); +late final _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ = + objc.registerName( + "connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:", + ); +late final _sel_connectionShouldUseCredentialStorage_ = objc.registerName( + "connectionShouldUseCredentialStorage:", +); +late final _sel_connection_canAuthenticateAgainstProtectionSpace_ = objc + .registerName("connection:canAuthenticateAgainstProtectionSpace:"); +late final _sel_connection_didCancelAuthenticationChallenge_ = objc + .registerName("connection:didCancelAuthenticationChallenge:"); +late final _sel_connection_didFailWithError_ = objc.registerName( + "connection:didFailWithError:", +); +late final _sel_connection_didReceiveAuthenticationChallenge_ = objc + .registerName("connection:didReceiveAuthenticationChallenge:"); +late final _sel_connection_didReceiveData_ = objc.registerName( + "connection:didReceiveData:", +); +late final _sel_connection_didReceiveResponse_ = objc.registerName( + "connection:didReceiveResponse:", +); +late final _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ = + objc.registerName( + "connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:", + ); +late final _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_ = + objc.registerName( + "connection:didWriteData:totalBytesWritten:expectedTotalBytes:", + ); +late final _sel_connection_handleRequest_ = objc.registerName( + "connection:handleRequest:", +); +late final _sel_connection_needNewBodyStream_ = objc.registerName( + "connection:needNewBodyStream:", +); +late final _sel_connection_shouldMakeNewConnection_ = objc.registerName( + "connection:shouldMakeNewConnection:", +); +late final _sel_connection_willCacheResponse_ = objc.registerName( + "connection:willCacheResponse:", +); +late final _sel_connection_willSendRequestForAuthenticationChallenge_ = objc + .registerName("connection:willSendRequestForAuthenticationChallenge:"); +late final _sel_connection_willSendRequest_redirectResponse_ = objc + .registerName("connection:willSendRequest:redirectResponse:"); +late final _sel_containsValueForKey_ = objc.registerName( + "containsValueForKey:", +); +late final _sel_continueWithoutCredentialForAuthenticationChallenge_ = objc + .registerName("continueWithoutCredentialForAuthenticationChallenge:"); +late final _sel_copyScriptingValue_forKey_withProperties_ = objc.registerName( + "copyScriptingValue:forKey:withProperties:", +); +late final _sel_correctionCheckingResultWithRange_replacementString_ = objc + .registerName("correctionCheckingResultWithRange:replacementString:"); +late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_ = + objc.registerName( + "correctionCheckingResultWithRange:replacementString:alternativeStrings:", + ); +late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( + "countByEnumeratingWithState:objects:count:", +); +late final _sel_countryCode = objc.registerName("countryCode"); +late final _sel_createConversationForConnection_ = objc.registerName( + "createConversationForConnection:", +); +late final _sel_credentialForTrust_ = objc.registerName("credentialForTrust:"); +late final _sel_credentialWithIdentity_certificates_persistence_ = objc + .registerName("credentialWithIdentity:certificates:persistence:"); +late final _sel_credentialWithUser_password_persistence_ = objc.registerName( + "credentialWithUser:password:persistence:", +); +late final _sel_currencyCode = objc.registerName("currencyCode"); +late final _sel_currencySymbol = objc.registerName("currencySymbol"); +late final _sel_currentDevice = objc.registerName("currentDevice"); +late final _sel_currentDirectoryPath = objc.registerName( + "currentDirectoryPath", +); +late final _sel_currentHardwareInputNumberOfChannels = objc.registerName( + "currentHardwareInputNumberOfChannels", +); +late final _sel_currentHardwareOutputNumberOfChannels = objc.registerName( + "currentHardwareOutputNumberOfChannels", +); +late final _sel_currentHardwareSampleRate = objc.registerName( + "currentHardwareSampleRate", +); +late final _sel_currentLocale = objc.registerName("currentLocale"); +late final _sel_currentRoute = objc.registerName("currentRoute"); +late final _sel_currentTime = objc.registerName("currentTime"); +late final _sel_customPronounForLanguage_ = objc.registerName( + "customPronounForLanguage:", +); +late final _sel_dashCheckingResultWithRange_replacementString_ = objc + .registerName("dashCheckingResultWithRange:replacementString:"); +late final _sel_data = objc.registerName("data"); +late final _sel_dataTaskWithRequest_completionHandler_ = objc.registerName( + "dataTaskWithRequest:completionHandler:", +); +late final _sel_dataTaskWithURL_completionHandler_ = objc.registerName( + "dataTaskWithURL:completionHandler:", +); +late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); +late final _sel_dataWithContentsOfMappedFile_ = objc.registerName( + "dataWithContentsOfMappedFile:", +); +late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); +late final _sel_date = objc.registerName("date"); +late final _sel_dateCheckingResultWithRange_date_ = objc.registerName( + "dateCheckingResultWithRange:date:", +); +late final _sel_dateCheckingResultWithRange_date_timeZone_duration_ = objc + .registerName("dateCheckingResultWithRange:date:timeZone:duration:"); +late final _sel_dateWithCalendarFormat_timeZone_ = objc.registerName( + "dateWithCalendarFormat:timeZone:", +); +late final _sel_dateWithNaturalLanguageString_ = objc.registerName( + "dateWithNaturalLanguageString:", +); +late final _sel_dateWithNaturalLanguageString_locale_ = objc.registerName( + "dateWithNaturalLanguageString:locale:", +); +late final _sel_dateWithString_ = objc.registerName("dateWithString:"); +late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( + "dateWithTimeIntervalSince1970:", +); +late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( + "dateWithTimeIntervalSinceNow:", +); +late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( + "dateWithTimeIntervalSinceReferenceDate:", +); +late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( + "dateWithTimeInterval:sinceDate:", +); +late final _sel_daylightSavingTimeOffset = objc.registerName( + "daylightSavingTimeOffset", +); +late final _sel_decimalSeparator = objc.registerName("decimalSeparator"); +late final _sel_decodeArrayOfObjCType_count_at_ = objc.registerName( + "decodeArrayOfObjCType:count:at:", +); +late final _sel_decodeArrayOfObjectsOfClass_forKey_ = objc.registerName( + "decodeArrayOfObjectsOfClass:forKey:", +); +late final _sel_decodeArrayOfObjectsOfClasses_forKey_ = objc.registerName( + "decodeArrayOfObjectsOfClasses:forKey:", +); +late final _sel_decodeBoolForKey_ = objc.registerName("decodeBoolForKey:"); +late final _sel_decodeBytesForKey_minimumLength_ = objc.registerName( + "decodeBytesForKey:minimumLength:", +); +late final _sel_decodeBytesForKey_returnedLength_ = objc.registerName( + "decodeBytesForKey:returnedLength:", +); +late final _sel_decodeBytesWithMinimumLength_ = objc.registerName( + "decodeBytesWithMinimumLength:", +); +late final _sel_decodeBytesWithReturnedLength_ = objc.registerName( + "decodeBytesWithReturnedLength:", +); +late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_ = objc + .registerName("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); +late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_ = + objc.registerName( + "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:", + ); +late final _sel_decodeDoubleForKey_ = objc.registerName("decodeDoubleForKey:"); +late final _sel_decodeFloatForKey_ = objc.registerName("decodeFloatForKey:"); +late final _sel_decodeInt32ForKey_ = objc.registerName("decodeInt32ForKey:"); +late final _sel_decodeInt64ForKey_ = objc.registerName("decodeInt64ForKey:"); +late final _sel_decodeIntForKey_ = objc.registerName("decodeIntForKey:"); +late final _sel_decodeIntegerForKey_ = objc.registerName( + "decodeIntegerForKey:", +); +late final _sel_decodeNXObject = objc.registerName("decodeNXObject"); +late final _sel_decodeObject = objc.registerName("decodeObject"); +late final _sel_decodeObjectForKey_ = objc.registerName("decodeObjectForKey:"); +late final _sel_decodeObjectOfClass_forKey_ = objc.registerName( + "decodeObjectOfClass:forKey:", +); +late final _sel_decodeObjectOfClasses_forKey_ = objc.registerName( + "decodeObjectOfClasses:forKey:", +); +late final _sel_decodePoint = objc.registerName("decodePoint"); +late final _sel_decodePointForKey_ = objc.registerName("decodePointForKey:"); +late final _sel_decodePropertyList = objc.registerName("decodePropertyList"); +late final _sel_decodePropertyListForKey_ = objc.registerName( + "decodePropertyListForKey:", +); +late final _sel_decodeRect = objc.registerName("decodeRect"); +late final _sel_decodeRectForKey_ = objc.registerName("decodeRectForKey:"); +late final _sel_decodeSize = objc.registerName("decodeSize"); +late final _sel_decodeSizeForKey_ = objc.registerName("decodeSizeForKey:"); +late final _sel_decodeTopLevelObjectAndReturnError_ = objc.registerName( + "decodeTopLevelObjectAndReturnError:", +); +late final _sel_decodeTopLevelObjectForKey_error_ = objc.registerName( + "decodeTopLevelObjectForKey:error:", +); +late final _sel_decodeTopLevelObjectOfClass_forKey_error_ = objc.registerName( + "decodeTopLevelObjectOfClass:forKey:error:", +); +late final _sel_decodeTopLevelObjectOfClasses_forKey_error_ = objc.registerName( + "decodeTopLevelObjectOfClasses:forKey:error:", +); +late final _sel_decodeValueOfObjCType_at_ = objc.registerName( + "decodeValueOfObjCType:at:", +); +late final _sel_decodeValuesOfObjCTypes_ = objc.registerName( + "decodeValuesOfObjCTypes:", +); +late final _sel_decodingFailurePolicy = objc.registerName( + "decodingFailurePolicy", +); +late final _sel_decompressUsingAlgorithm_error_ = objc.registerName( + "decompressUsingAlgorithm:error:", +); +late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( + "decompressedDataUsingAlgorithm:error:", +); +late final _sel_defaultTimeZone = objc.registerName("defaultTimeZone"); +late final _sel_delegate = objc.registerName("delegate"); +late final _sel_deleteCharactersInRange_ = objc.registerName( + "deleteCharactersInRange:", +); +late final _sel_description = objc.registerName("description"); +late final _sel_descriptionWithCalendarFormat_timeZone_locale_ = objc + .registerName("descriptionWithCalendarFormat:timeZone:locale:"); +late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); +late final _sel_dictionary = objc.registerName("dictionary"); +late final _sel_dictionaryWithCapacity_ = objc.registerName( + "dictionaryWithCapacity:", +); +late final _sel_dictionaryWithContentsOfFile_ = objc.registerName( + "dictionaryWithContentsOfFile:", +); +late final _sel_dictionaryWithContentsOfURL_ = objc.registerName( + "dictionaryWithContentsOfURL:", +); +late final _sel_dictionaryWithContentsOfURL_error_ = objc.registerName( + "dictionaryWithContentsOfURL:error:", +); +late final _sel_dictionaryWithDictionary_ = objc.registerName( + "dictionaryWithDictionary:", +); +late final _sel_dictionaryWithObject_forKey_ = objc.registerName( + "dictionaryWithObject:forKey:", +); +late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( + "dictionaryWithObjectsAndKeys:", +); +late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( + "dictionaryWithObjects:forKeys:", +); +late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( + "dictionaryWithObjects:forKeys:count:", +); +late final _sel_dictionaryWithSharedKeySet_ = objc.registerName( + "dictionaryWithSharedKeySet:", +); +late final _sel_dictionaryWithValuesForKeys_ = objc.registerName( + "dictionaryWithValuesForKeys:", +); +late final _sel_didChangeValueForKey_ = objc.registerName( + "didChangeValueForKey:", +); +late final _sel_didChangeValueForKey_withSetMutation_usingObjects_ = objc + .registerName("didChangeValueForKey:withSetMutation:usingObjects:"); +late final _sel_didChange_valuesAtIndexes_forKey_ = objc.registerName( + "didChange:valuesAtIndexes:forKey:", +); +late final _sel_differenceFromArray_ = objc.registerName( + "differenceFromArray:", +); +late final _sel_differenceFromArray_withOptions_ = objc.registerName( + "differenceFromArray:withOptions:", +); +late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_ = objc + .registerName("differenceFromArray:withOptions:usingEquivalenceTest:"); +late final _sel_differenceFromOrderedSet_ = objc.registerName( + "differenceFromOrderedSet:", +); +late final _sel_differenceFromOrderedSet_withOptions_ = objc.registerName( + "differenceFromOrderedSet:withOptions:", +); +late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_ = + objc.registerName( + "differenceFromOrderedSet:withOptions:usingEquivalenceTest:", + ); +late final _sel_discardContentIfPossible = objc.registerName( + "discardContentIfPossible", +); +late final _sel_distantFuture = objc.registerName("distantFuture"); +late final _sel_distantPast = objc.registerName("distantPast"); +late final _sel_distinguishedNames = objc.registerName("distinguishedNames"); +late final _sel_doesContain_ = objc.registerName("doesContain:"); +late final _sel_dominantLanguage = objc.registerName("dominantLanguage"); +late final _sel_dominantLanguageForScript_ = objc.registerName( + "dominantLanguageForScript:", +); +late final _sel_downloadDidBegin_ = objc.registerName("downloadDidBegin:"); +late final _sel_downloadDidFinish_ = objc.registerName("downloadDidFinish:"); +late final _sel_downloadShouldUseCredentialStorage_ = objc.registerName( + "downloadShouldUseCredentialStorage:", +); +late final _sel_downloadTaskWithRequest_completionHandler_ = objc.registerName( + "downloadTaskWithRequest:completionHandler:", +); +late final _sel_downloadTaskWithResumeData_completionHandler_ = objc + .registerName("downloadTaskWithResumeData:completionHandler:"); +late final _sel_downloadTaskWithURL_completionHandler_ = objc.registerName( + "downloadTaskWithURL:completionHandler:", +); +late final _sel_download_canAuthenticateAgainstProtectionSpace_ = objc + .registerName("download:canAuthenticateAgainstProtectionSpace:"); +late final _sel_download_decideDestinationWithSuggestedFilename_ = objc + .registerName("download:decideDestinationWithSuggestedFilename:"); +late final _sel_download_didCancelAuthenticationChallenge_ = objc.registerName( + "download:didCancelAuthenticationChallenge:", +); +late final _sel_download_didCreateDestination_ = objc.registerName( + "download:didCreateDestination:", +); +late final _sel_download_didFailWithError_ = objc.registerName( + "download:didFailWithError:", +); +late final _sel_download_didReceiveAuthenticationChallenge_ = objc.registerName( + "download:didReceiveAuthenticationChallenge:", +); +late final _sel_download_didReceiveDataOfLength_ = objc.registerName( + "download:didReceiveDataOfLength:", +); +late final _sel_download_didReceiveResponse_ = objc.registerName( + "download:didReceiveResponse:", +); +late final _sel_download_shouldDecodeSourceDataOfMIMEType_ = objc.registerName( + "download:shouldDecodeSourceDataOfMIMEType:", +); +late final _sel_download_willResumeWithResponse_fromByte_ = objc.registerName( + "download:willResumeWithResponse:fromByte:", +); +late final _sel_download_willSendRequest_redirectResponse_ = objc.registerName( + "download:willSendRequest:redirectResponse:", +); +late final _sel_duration = objc.registerName("duration"); +late final _sel_edgeInsetsValue = objc.registerName("edgeInsetsValue"); +late final _sel_enableRate = objc.registerName("enableRate"); +late final _sel_encodeArrayOfObjCType_count_at_ = objc.registerName( + "encodeArrayOfObjCType:count:at:", +); +late final _sel_encodeBool_forKey_ = objc.registerName("encodeBool:forKey:"); +late final _sel_encodeBycopyObject_ = objc.registerName("encodeBycopyObject:"); +late final _sel_encodeByrefObject_ = objc.registerName("encodeByrefObject:"); +late final _sel_encodeBytes_length_ = objc.registerName("encodeBytes:length:"); +late final _sel_encodeBytes_length_forKey_ = objc.registerName( + "encodeBytes:length:forKey:", +); +late final _sel_encodeConditionalObject_ = objc.registerName( + "encodeConditionalObject:", +); +late final _sel_encodeConditionalObject_forKey_ = objc.registerName( + "encodeConditionalObject:forKey:", +); +late final _sel_encodeDouble_forKey_ = objc.registerName( + "encodeDouble:forKey:", +); +late final _sel_encodeFloat_forKey_ = objc.registerName("encodeFloat:forKey:"); +late final _sel_encodeInt32_forKey_ = objc.registerName("encodeInt32:forKey:"); +late final _sel_encodeInt64_forKey_ = objc.registerName("encodeInt64:forKey:"); +late final _sel_encodeInt_forKey_ = objc.registerName("encodeInt:forKey:"); +late final _sel_encodeInteger_forKey_ = objc.registerName( + "encodeInteger:forKey:", +); +late final _sel_encodeNXObject_ = objc.registerName("encodeNXObject:"); +late final _sel_encodeObject_ = objc.registerName("encodeObject:"); +late final _sel_encodeObject_forKey_ = objc.registerName( + "encodeObject:forKey:", +); +late final _sel_encodePoint_ = objc.registerName("encodePoint:"); +late final _sel_encodePoint_forKey_ = objc.registerName("encodePoint:forKey:"); +late final _sel_encodePropertyList_ = objc.registerName("encodePropertyList:"); +late final _sel_encodeRect_ = objc.registerName("encodeRect:"); +late final _sel_encodeRect_forKey_ = objc.registerName("encodeRect:forKey:"); +late final _sel_encodeRootObject_ = objc.registerName("encodeRootObject:"); +late final _sel_encodeSize_ = objc.registerName("encodeSize:"); +late final _sel_encodeSize_forKey_ = objc.registerName("encodeSize:forKey:"); +late final _sel_encodeValuesOfObjCTypes_ = objc.registerName( + "encodeValuesOfObjCTypes:", +); +late final _sel_endActivity_ = objc.registerName("endActivity:"); +late final _sel_endContentAccess = objc.registerName("endContentAccess"); +late final _sel_endEditing = objc.registerName("endEditing"); +late final _sel_endInterruption = objc.registerName("endInterruption"); +late final _sel_endInterruptionWithFlags_ = objc.registerName( + "endInterruptionWithFlags:", +); +late final _sel_enumerateAttribute_inRange_options_usingBlock_ = objc + .registerName("enumerateAttribute:inRange:options:usingBlock:"); +late final _sel_enumerateAttributesInRange_options_usingBlock_ = objc + .registerName("enumerateAttributesInRange:options:usingBlock:"); +late final _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_ = + objc.registerName( + "enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:", + ); +late final _sel_enumerateMatchesInString_options_range_usingBlock_ = objc + .registerName("enumerateMatchesInString:options:range:usingBlock:"); +late final _sel_error = objc.registerName("error"); +late final _sel_escapedTemplateForString_ = objc.registerName( + "escapedTemplateForString:", +); +late final _sel_exceptionDuringOperation_error_leftOperand_rightOperand_ = objc + .registerName("exceptionDuringOperation:error:leftOperand:rightOperand:"); +late final _sel_exemplarCharacterSet = objc.registerName( + "exemplarCharacterSet", +); +late final _sel_failWithError_ = objc.registerName("failWithError:"); +late final _sel_fileCreationDate = objc.registerName("fileCreationDate"); +late final _sel_fileDescriptor = objc.registerName("fileDescriptor"); +late final _sel_fileExtensionHidden = objc.registerName("fileExtensionHidden"); +late final _sel_fileGroupOwnerAccountID = objc.registerName( + "fileGroupOwnerAccountID", +); +late final _sel_fileGroupOwnerAccountName = objc.registerName( + "fileGroupOwnerAccountName", +); +late final _sel_fileHFSCreatorCode = objc.registerName("fileHFSCreatorCode"); +late final _sel_fileHFSTypeCode = objc.registerName("fileHFSTypeCode"); +late final _sel_fileHandleWithNullDevice = objc.registerName( + "fileHandleWithNullDevice", +); +late final _sel_fileHandleWithStandardError = objc.registerName( + "fileHandleWithStandardError", +); +late final _sel_fileHandleWithStandardInput = objc.registerName( + "fileHandleWithStandardInput", +); +late final _sel_fileHandleWithStandardOutput = objc.registerName( + "fileHandleWithStandardOutput", +); +late final _sel_fileIsAppendOnly = objc.registerName("fileIsAppendOnly"); +late final _sel_fileIsImmutable = objc.registerName("fileIsImmutable"); +late final _sel_fileManager_shouldCopyItemAtPath_toPath_ = objc.registerName( + "fileManager:shouldCopyItemAtPath:toPath:", +); +late final _sel_fileManager_shouldCopyItemAtURL_toURL_ = objc.registerName( + "fileManager:shouldCopyItemAtURL:toURL:", +); +late final _sel_fileManager_shouldLinkItemAtPath_toPath_ = objc.registerName( + "fileManager:shouldLinkItemAtPath:toPath:", +); +late final _sel_fileManager_shouldLinkItemAtURL_toURL_ = objc.registerName( + "fileManager:shouldLinkItemAtURL:toURL:", +); +late final _sel_fileManager_shouldMoveItemAtPath_toPath_ = objc.registerName( + "fileManager:shouldMoveItemAtPath:toPath:", +); +late final _sel_fileManager_shouldMoveItemAtURL_toURL_ = objc.registerName( + "fileManager:shouldMoveItemAtURL:toURL:", +); +late final _sel_fileManager_shouldProceedAfterError_ = objc.registerName( + "fileManager:shouldProceedAfterError:", +); +late final _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ = + objc.registerName( + "fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:", + ); +late final _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ = + objc.registerName( + "fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:", + ); +late final _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ = + objc.registerName( + "fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:", + ); +late final _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ = + objc.registerName( + "fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:", + ); +late final _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ = + objc.registerName( + "fileManager:shouldProceedAfterError:movingItemAtPath:toPath:", + ); +late final _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ = + objc.registerName( + "fileManager:shouldProceedAfterError:movingItemAtURL:toURL:", + ); +late final _sel_fileManager_shouldProceedAfterError_removingItemAtPath_ = objc + .registerName("fileManager:shouldProceedAfterError:removingItemAtPath:"); +late final _sel_fileManager_shouldProceedAfterError_removingItemAtURL_ = objc + .registerName("fileManager:shouldProceedAfterError:removingItemAtURL:"); +late final _sel_fileManager_shouldRemoveItemAtPath_ = objc.registerName( + "fileManager:shouldRemoveItemAtPath:", +); +late final _sel_fileManager_shouldRemoveItemAtURL_ = objc.registerName( + "fileManager:shouldRemoveItemAtURL:", +); +late final _sel_fileManager_willProcessPath_ = objc.registerName( + "fileManager:willProcessPath:", +); +late final _sel_fileModificationDate = objc.registerName( + "fileModificationDate", +); +late final _sel_fileOwnerAccountID = objc.registerName("fileOwnerAccountID"); +late final _sel_fileOwnerAccountName = objc.registerName( + "fileOwnerAccountName", +); +late final _sel_filePosixPermissions = objc.registerName( + "filePosixPermissions", +); +late final _sel_fileSize = objc.registerName("fileSize"); +late final _sel_fileSystemFileNumber = objc.registerName( + "fileSystemFileNumber", +); +late final _sel_fileSystemNumber = objc.registerName("fileSystemNumber"); +late final _sel_fileSystemRepresentation = objc.registerName( + "fileSystemRepresentation", +); +late final _sel_fileType = objc.registerName("fileType"); +late final _sel_fileURLWithPathComponents_ = objc.registerName( + "fileURLWithPathComponents:", +); +late final _sel_filterUsingPredicate_ = objc.registerName( + "filterUsingPredicate:", +); +late final _sel_filteredArrayUsingPredicate_ = objc.registerName( + "filteredArrayUsingPredicate:", +); +late final _sel_filteredOrderedSetUsingPredicate_ = objc.registerName( + "filteredOrderedSetUsingPredicate:", +); +late final _sel_filteredSetUsingPredicate_ = objc.registerName( + "filteredSetUsingPredicate:", +); +late final _sel_firstMatchInString_options_range_ = objc.registerName( + "firstMatchInString:options:range:", +); +late final _sel_format = objc.registerName("format"); +late final _sel_fullUserName = objc.registerName("fullUserName"); +late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_ = objc + .registerName("getBoundStreamsWithBufferSize:inputStream:outputStream:"); +late final _sel_getBytes_ = objc.registerName("getBytes:"); +late final _sel_getCString_ = objc.registerName("getCString:"); +late final _sel_getCString_maxLength_ = objc.registerName( + "getCString:maxLength:", +); +late final _sel_getCString_maxLength_range_remainingRange_ = objc.registerName( + "getCString:maxLength:range:remainingRange:", +); +late final _sel_getCachedResponseForDataTask_completionHandler_ = objc + .registerName("getCachedResponseForDataTask:completionHandler:"); +late final _sel_getCharacters_ = objc.registerName("getCharacters:"); +late final _sel_getCookiesForTask_completionHandler_ = objc.registerName( + "getCookiesForTask:completionHandler:", +); +late final _sel_getCredentialsForProtectionSpace_task_completionHandler_ = objc + .registerName("getCredentialsForProtectionSpace:task:completionHandler:"); +late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_ = + objc.registerName( + "getDefaultCredentialForProtectionSpace:task:completionHandler:", + ); +late final _sel_getFileSystemRepresentation_maxLength_ = objc.registerName( + "getFileSystemRepresentation:maxLength:", +); +late final _sel_getIndexes_ = objc.registerName("getIndexes:"); +late final _sel_getObjects_ = objc.registerName("getObjects:"); +late final _sel_getObjects_andKeys_ = objc.registerName("getObjects:andKeys:"); +late final _sel_getPromisedItemResourceValue_forKey_error_ = objc.registerName( + "getPromisedItemResourceValue:forKey:error:", +); +late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_ = objc + .registerName("getStreamsToHostWithName:port:inputStream:outputStream:"); +late final _sel_getStreamsToHost_port_inputStream_outputStream_ = objc + .registerName("getStreamsToHost:port:inputStream:outputStream:"); +late final _sel_getValue_ = objc.registerName("getValue:"); +late final _sel_grammarCheckingResultWithRange_details_ = objc.registerName( + "grammarCheckingResultWithRange:details:", +); +late final _sel_grammarDetails = objc.registerName("grammarDetails"); +late final _sel_groupingSeparator = objc.registerName("groupingSeparator"); +late final _sel_handleMachMessage_ = objc.registerName("handleMachMessage:"); +late final _sel_handlePortMessage_ = objc.registerName("handlePortMessage:"); +late final _sel_handleQueryWithUnboundKey_ = objc.registerName( + "handleQueryWithUnboundKey:", +); +late final _sel_handleTakeValue_forUnboundKey_ = objc.registerName( + "handleTakeValue:forUnboundKey:", +); +late final _sel_hasPassword = objc.registerName("hasPassword"); +late final _sel_hasThousandSeparators = objc.registerName( + "hasThousandSeparators", +); +late final _sel_homeDirectoryForCurrentUser = objc.registerName( + "homeDirectoryForCurrentUser", +); +late final _sel_homeDirectoryForUser_ = objc.registerName( + "homeDirectoryForUser:", +); +late final _sel_identity = objc.registerName("identity"); +late final _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_ = objc + .registerName("imageForProposedSize:scaleFactor:imageOffset:imageSize:"); +late final _sel_indicesOfObjectsByEvaluatingObjectSpecifier_ = objc + .registerName("indicesOfObjectsByEvaluatingObjectSpecifier:"); +late final _sel_init = objc.registerName("init"); +late final _sel_initSymbolicLinkWithDestination_ = objc.registerName( + "initSymbolicLinkWithDestination:", +); +late final _sel_initToFileAtPath_append_ = objc.registerName( + "initToFileAtPath:append:", +); +late final _sel_initWithArray_ = objc.registerName("initWithArray:"); +late final _sel_initWithArray_copyItems_ = objc.registerName( + "initWithArray:copyItems:", +); +late final _sel_initWithArray_range_copyItems_ = objc.registerName( + "initWithArray:range:copyItems:", +); +late final _sel_initWithAttributedString_ = objc.registerName( + "initWithAttributedString:", +); +late final _sel_initWithBase64EncodedData_options_ = objc.registerName( + "initWithBase64EncodedData:options:", +); +late final _sel_initWithBase64EncodedString_options_ = objc.registerName( + "initWithBase64EncodedString:options:", +); +late final _sel_initWithBase64Encoding_ = objc.registerName( + "initWithBase64Encoding:", +); +late final _sel_initWithBundle_ = objc.registerName("initWithBundle:"); +late final _sel_initWithCStringNoCopy_length_freeWhenDone_ = objc.registerName( + "initWithCStringNoCopy:length:freeWhenDone:", +); +late final _sel_initWithCString_ = objc.registerName("initWithCString:"); +late final _sel_initWithCString_length_ = objc.registerName( + "initWithCString:length:", +); +late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); +late final _sel_initWithContentsOfFile_ = objc.registerName( + "initWithContentsOfFile:", +); +late final _sel_initWithContentsOfMappedFile_ = objc.registerName( + "initWithContentsOfMappedFile:", +); +late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_ = + objc.registerName( + "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:", + ); +late final _sel_initWithContentsOfURL_ = objc.registerName( + "initWithContentsOfURL:", +); +late final _sel_initWithContentsOfURL_error_ = objc.registerName( + "initWithContentsOfURL:error:", +); +late final _sel_initWithContentsOfURL_fileTypeHint_error_ = objc.registerName( + "initWithContentsOfURL:fileTypeHint:error:", +); +late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); +late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( + "initWithData:fileTypeHint:error:", +); +late final _sel_initWithDateFormat_allowNaturalLanguage_ = objc.registerName( + "initWithDateFormat:allowNaturalLanguage:", +); +late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); +late final _sel_initWithDictionary_copyItems_ = objc.registerName( + "initWithDictionary:copyItems:", +); +late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); +late final _sel_initWithFormat_options_locale_ = objc.registerName( + "initWithFormat:options:locale:", +); +late final _sel_initWithFormat_options_locale_context_ = objc.registerName( + "initWithFormat:options:locale:context:", +); +late final _sel_initWithLength_ = objc.registerName("initWithLength:"); +late final _sel_initWithMarkdownString_options_baseURL_error_ = objc + .registerName("initWithMarkdownString:options:baseURL:error:"); +late final _sel_initWithMarkdown_options_baseURL_error_ = objc.registerName( + "initWithMarkdown:options:baseURL:error:", +); +late final _sel_initWithObject_ = objc.registerName("initWithObject:"); +late final _sel_initWithObjectsAndKeys_ = objc.registerName( + "initWithObjectsAndKeys:", +); +late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); +late final _sel_initWithObjects_forKeys_ = objc.registerName( + "initWithObjects:forKeys:", +); +late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); +late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( + "initWithOrderedSet:copyItems:", +); +late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( + "initWithOrderedSet:range:copyItems:", +); +late final _sel_initWithPath_ = objc.registerName("initWithPath:"); +late final _sel_initWithSet_ = objc.registerName("initWithSet:"); +late final _sel_initWithSet_copyItems_ = objc.registerName( + "initWithSet:copyItems:", +); +late final _sel_initWithString_ = objc.registerName("initWithString:"); +late final _sel_initWithString_attributes_ = objc.registerName( + "initWithString:attributes:", +); +late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( + "initWithTimeIntervalSince1970:", +); +late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( + "initWithTimeIntervalSinceNow:", +); +late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( + "initWithTimeInterval:sinceDate:", +); +late final _sel_inputDataSource = objc.registerName("inputDataSource"); +late final _sel_inputDataSources = objc.registerName("inputDataSources"); +late final _sel_inputGain = objc.registerName("inputGain"); +late final _sel_inputIsAvailable = objc.registerName("inputIsAvailable"); +late final _sel_inputIsAvailableChanged_ = objc.registerName( + "inputIsAvailableChanged:", +); +late final _sel_inputLatency = objc.registerName("inputLatency"); +late final _sel_inputNumberOfChannels = objc.registerName( + "inputNumberOfChannels", +); +late final _sel_inputOrientation = objc.registerName("inputOrientation"); +late final _sel_inputStreamWithData_ = objc.registerName( + "inputStreamWithData:", +); +late final _sel_inputStreamWithFileAtPath_ = objc.registerName( + "inputStreamWithFileAtPath:", +); +late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); +late final _sel_insertAttributedString_atIndex_ = objc.registerName( + "insertAttributedString:atIndex:", +); +late final _sel_insertString_atIndex_ = objc.registerName( + "insertString:atIndex:", +); +late final _sel_insertValue_atIndex_inPropertyWithKey_ = objc.registerName( + "insertValue:atIndex:inPropertyWithKey:", +); +late final _sel_insertValue_inPropertyWithKey_ = objc.registerName( + "insertValue:inPropertyWithKey:", +); +late final _sel_intendedSpatialExperience = objc.registerName( + "intendedSpatialExperience", +); +late final _sel_inverseForRelationshipKey_ = objc.registerName( + "inverseForRelationshipKey:", +); +late final _sel_isAbsolutePath = objc.registerName("isAbsolutePath"); +late final _sel_isAtEnd = objc.registerName("isAtEnd"); +late final _sel_isCaseInsensitiveLike_ = objc.registerName( + "isCaseInsensitiveLike:", +); +late final _sel_isContentDiscarded = objc.registerName("isContentDiscarded"); +late final _sel_isDaylightSavingTime = objc.registerName( + "isDaylightSavingTime", +); +late final _sel_isEqualToAttributedString_ = objc.registerName( + "isEqualToAttributedString:", +); +late final _sel_isEqualToTimeZone_ = objc.registerName("isEqualToTimeZone:"); +late final _sel_isEqualToValue_ = objc.registerName("isEqualToValue:"); +late final _sel_isEqualTo_ = objc.registerName("isEqualTo:"); +late final _sel_isGreaterThanOrEqualTo_ = objc.registerName( + "isGreaterThanOrEqualTo:", +); +late final _sel_isGreaterThan_ = objc.registerName("isGreaterThan:"); +late final _sel_isInputAvailable = objc.registerName("isInputAvailable"); +late final _sel_isInputGainSettable = objc.registerName("isInputGainSettable"); +late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_isLessThanOrEqualTo_ = objc.registerName( + "isLessThanOrEqualTo:", +); +late final _sel_isLessThan_ = objc.registerName("isLessThan:"); +late final _sel_isLike_ = objc.registerName("isLike:"); +late final _sel_isLowPowerModeEnabled = objc.registerName( + "isLowPowerModeEnabled", +); +late final _sel_isMacCatalystApp = objc.registerName("isMacCatalystApp"); +late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); +late final _sel_isMicrophoneInjectionAvailable = objc.registerName( + "isMicrophoneInjectionAvailable", +); +late final _sel_isNotEqualTo_ = objc.registerName("isNotEqualTo:"); +late final _sel_isOtherAudioPlaying = objc.registerName("isOtherAudioPlaying"); +late final _sel_isPlaying = objc.registerName("isPlaying"); +late final _sel_isReadOnlyKey_ = objc.registerName("isReadOnlyKey:"); +late final _sel_isUnspecified = objc.registerName("isUnspecified"); +late final _sel_isiOSAppOnMac = objc.registerName("isiOSAppOnMac"); +late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = + objc.registerName( + "itemProviderVisibilityForRepresentationWithTypeIdentifier:", + ); +late final _sel_keyPathsForValuesAffectingValueForKey_ = objc.registerName( + "keyPathsForValuesAffectingValueForKey:", +); +late final _sel_knownTimeZoneNames = objc.registerName("knownTimeZoneNames"); +late final _sel_languageCode = objc.registerName("languageCode"); +late final _sel_languageIdentifier = objc.registerName("languageIdentifier"); +late final _sel_languagesForScript_ = objc.registerName("languagesForScript:"); +late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); +late final _sel_launch = objc.registerName("launch"); +late final _sel_launchPath = objc.registerName("launchPath"); +late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_ = + objc.registerName( + "launchedTaskWithExecutableURL:arguments:error:terminationHandler:", + ); +late final _sel_launchedTaskWithLaunchPath_arguments_ = objc.registerName( + "launchedTaskWithLaunchPath:arguments:", +); +late final _sel_length = objc.registerName("length"); +late final _sel_lineDirectionForLanguage_ = objc.registerName( + "lineDirectionForLanguage:", +); +late final _sel_lineNumber = objc.registerName("lineNumber"); +late final _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_ = + objc.registerName( + "linguisticTagsInRange:scheme:options:orthography:tokenRanges:", + ); +late final _sel_linkCheckingResultWithRange_URL_ = objc.registerName( + "linkCheckingResultWithRange:URL:", +); +late final _sel_listener_shouldAcceptNewConnection_ = objc.registerName( + "listener:shouldAcceptNewConnection:", +); +late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = + objc.registerName( + "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", + ); +late final _sel_loadPreviewImageWithOptions_completionHandler_ = objc + .registerName("loadPreviewImageWithOptions:completionHandler:"); +late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( + "loadResourceDataNotifyingClient:usingCache:", +); +late final _sel_localTimeZone = objc.registerName("localTimeZone"); +late final _sel_localeIdentifier = objc.registerName("localeIdentifier"); +late final _sel_localeIdentifierFromComponents_ = objc.registerName( + "localeIdentifierFromComponents:", +); +late final _sel_localeIdentifierFromWindowsLocaleCode_ = objc.registerName( + "localeIdentifierFromWindowsLocaleCode:", +); +late final _sel_localeWithLocaleIdentifier_ = objc.registerName( + "localeWithLocaleIdentifier:", +); +late final _sel_localizedAttributedStringWithFormat_ = objc.registerName( + "localizedAttributedStringWithFormat:", +); +late final _sel_localizedAttributedStringWithFormat_context_ = objc + .registerName("localizedAttributedStringWithFormat:context:"); +late final _sel_localizedAttributedStringWithFormat_options_ = objc + .registerName("localizedAttributedStringWithFormat:options:"); +late final _sel_localizedAttributedStringWithFormat_options_context_ = objc + .registerName("localizedAttributedStringWithFormat:options:context:"); +late final _sel_localizedName_locale_ = objc.registerName( + "localizedName:locale:", +); +late final _sel_localizedScannerWithString_ = objc.registerName( + "localizedScannerWithString:", +); +late final _sel_localizedStringForCalendarIdentifier_ = objc.registerName( + "localizedStringForCalendarIdentifier:", +); +late final _sel_localizedStringForCollationIdentifier_ = objc.registerName( + "localizedStringForCollationIdentifier:", +); +late final _sel_localizedStringForCollatorIdentifier_ = objc.registerName( + "localizedStringForCollatorIdentifier:", +); +late final _sel_localizedStringForCountryCode_ = objc.registerName( + "localizedStringForCountryCode:", +); +late final _sel_localizedStringForCurrencyCode_ = objc.registerName( + "localizedStringForCurrencyCode:", +); +late final _sel_localizedStringForLanguageCode_ = objc.registerName( + "localizedStringForLanguageCode:", +); +late final _sel_localizedStringForLocaleIdentifier_ = objc.registerName( + "localizedStringForLocaleIdentifier:", +); +late final _sel_localizedStringForScriptCode_ = objc.registerName( + "localizedStringForScriptCode:", +); +late final _sel_localizedStringForVariantCode_ = objc.registerName( + "localizedStringForVariantCode:", +); +late final _sel_localizesFormat = objc.registerName("localizesFormat"); +late final _sel_lock = objc.registerName("lock"); +late final _sel_lossyCString = objc.registerName("lossyCString"); +late final _sel_makeNewConnection_sender_ = objc.registerName( + "makeNewConnection:sender:", +); +late final _sel_matchesInString_options_range_ = objc.registerName( + "matchesInString:options:range:", +); +late final _sel_maximumInputNumberOfChannels = objc.registerName( + "maximumInputNumberOfChannels", +); +late final _sel_maximumOutputNumberOfChannels = objc.registerName( + "maximumOutputNumberOfChannels", +); +late final _sel_metadataQuery_replacementObjectForResultObject_ = objc + .registerName("metadataQuery:replacementObjectForResultObject:"); +late final _sel_metadataQuery_replacementValueForAttribute_value_ = objc + .registerName("metadataQuery:replacementValueForAttribute:value:"); +late final _sel_mutableArrayValueForKeyPath_ = objc.registerName( + "mutableArrayValueForKeyPath:", +); +late final _sel_mutableArrayValueForKey_ = objc.registerName( + "mutableArrayValueForKey:", +); +late final _sel_mutableOrderedSetValueForKeyPath_ = objc.registerName( + "mutableOrderedSetValueForKeyPath:", +); +late final _sel_mutableOrderedSetValueForKey_ = objc.registerName( + "mutableOrderedSetValueForKey:", +); +late final _sel_mutableSetValueForKeyPath_ = objc.registerName( + "mutableSetValueForKeyPath:", +); +late final _sel_mutableSetValueForKey_ = objc.registerName( + "mutableSetValueForKey:", +); +late final _sel_mutableString = objc.registerName("mutableString"); +late final _sel_needsToBeUpdatedFromPath_ = objc.registerName( + "needsToBeUpdatedFromPath:", +); +late final _sel_netServiceBrowserDidStopSearch_ = objc.registerName( + "netServiceBrowserDidStopSearch:", +); +late final _sel_netServiceBrowserWillSearch_ = objc.registerName( + "netServiceBrowserWillSearch:", +); +late final _sel_netServiceBrowser_didFindDomain_moreComing_ = objc.registerName( + "netServiceBrowser:didFindDomain:moreComing:", +); +late final _sel_netServiceBrowser_didFindService_moreComing_ = objc + .registerName("netServiceBrowser:didFindService:moreComing:"); +late final _sel_netServiceBrowser_didNotSearch_ = objc.registerName( + "netServiceBrowser:didNotSearch:", +); +late final _sel_netServiceBrowser_didRemoveDomain_moreComing_ = objc + .registerName("netServiceBrowser:didRemoveDomain:moreComing:"); +late final _sel_netServiceBrowser_didRemoveService_moreComing_ = objc + .registerName("netServiceBrowser:didRemoveService:moreComing:"); +late final _sel_netServiceDidPublish_ = objc.registerName( + "netServiceDidPublish:", +); +late final _sel_netServiceDidResolveAddress_ = objc.registerName( + "netServiceDidResolveAddress:", +); +late final _sel_netServiceDidStop_ = objc.registerName("netServiceDidStop:"); +late final _sel_netServiceWillPublish_ = objc.registerName( + "netServiceWillPublish:", +); +late final _sel_netServiceWillResolve_ = objc.registerName( + "netServiceWillResolve:", +); +late final _sel_netService_didAcceptConnectionWithInputStream_outputStream_ = + objc.registerName( + "netService:didAcceptConnectionWithInputStream:outputStream:", + ); +late final _sel_netService_didNotPublish_ = objc.registerName( + "netService:didNotPublish:", +); +late final _sel_netService_didNotResolve_ = objc.registerName( + "netService:didNotResolve:", +); +late final _sel_netService_didUpdateTXTRecordData_ = objc.registerName( + "netService:didUpdateTXTRecordData:", +); +late final _sel_new = objc.registerName("new"); +late final _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_ = + objc.registerName( + "newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:", + ); +late final _sel_nextDaylightSavingTimeTransition = objc.registerName( + "nextDaylightSavingTimeTransition", +); +late final _sel_nonretainedObjectValue = objc.registerName( + "nonretainedObjectValue", +); +late final _sel_notificationWithName_object_ = objc.registerName( + "notificationWithName:object:", +); +late final _sel_notificationWithName_object_userInfo_ = objc.registerName( + "notificationWithName:object:userInfo:", +); +late final _sel_now = objc.registerName("now"); +late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); +late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); +late final _sel_numberOfMatchesInString_options_range_ = objc.registerName( + "numberOfMatchesInString:options:range:", +); +late final _sel_numberOfRanges = objc.registerName("numberOfRanges"); +late final _sel_objectSpecifier = objc.registerName("objectSpecifier"); +late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc + .registerName("objectWithItemProviderData:typeIdentifier:error:"); +late final _sel_objectZone = objc.registerName("objectZone"); +late final _sel_observationInfo = objc.registerName("observationInfo"); +late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc + .registerName("observeValueForKeyPath:ofObject:change:context:"); +late final _sel_observedPresentedItemUbiquityAttributes = objc.registerName( + "observedPresentedItemUbiquityAttributes", +); +late final _sel_operationCount = objc.registerName("operationCount"); +late final _sel_operations = objc.registerName("operations"); +late final _sel_orderedSet = objc.registerName("orderedSet"); +late final _sel_orderedSetByApplyingDifference_ = objc.registerName( + "orderedSetByApplyingDifference:", +); +late final _sel_orderedSetWithArray_ = objc.registerName( + "orderedSetWithArray:", +); +late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( + "orderedSetWithArray:range:copyItems:", +); +late final _sel_orderedSetWithCapacity_ = objc.registerName( + "orderedSetWithCapacity:", +); +late final _sel_orderedSetWithObject_ = objc.registerName( + "orderedSetWithObject:", +); +late final _sel_orderedSetWithObjects_ = objc.registerName( + "orderedSetWithObjects:", +); +late final _sel_orderedSetWithObjects_count_ = objc.registerName( + "orderedSetWithObjects:count:", +); +late final _sel_orderedSetWithOrderedSet_ = objc.registerName( + "orderedSetWithOrderedSet:", +); +late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( + "orderedSetWithOrderedSet:range:copyItems:", +); +late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); +late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( + "orderedSetWithSet:copyItems:", +); +late final _sel_orthography = objc.registerName("orthography"); +late final _sel_orthographyCheckingResultWithRange_orthography_ = objc + .registerName("orthographyCheckingResultWithRange:orthography:"); +late final _sel_outputDataSource = objc.registerName("outputDataSource"); +late final _sel_outputDataSources = objc.registerName("outputDataSources"); +late final _sel_outputLatency = objc.registerName("outputLatency"); +late final _sel_outputNumberOfChannels = objc.registerName( + "outputNumberOfChannels", +); +late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( + "outputStreamToBuffer:capacity:", +); +late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( + "outputStreamToFileAtPath:append:", +); +late final _sel_outputStreamToMemory = objc.registerName( + "outputStreamToMemory", +); +late final _sel_outputStreamWithURL_append_ = objc.registerName( + "outputStreamWithURL:append:", +); +late final _sel_outputVolume = objc.registerName("outputVolume"); +late final _sel_pageFormat = objc.registerName("pageFormat"); +late final _sel_pan = objc.registerName("pan"); +late final _sel_panelKind = objc.registerName("panelKind"); +late final _sel_panelName = objc.registerName("panelName"); +late final _sel_panelView = objc.registerName("panelView"); +late final _sel_parserDidEndDocument_ = objc.registerName( + "parserDidEndDocument:", +); +late final _sel_parserDidStartDocument_ = objc.registerName( + "parserDidStartDocument:", +); +late final _sel_parser_didEndElement_namespaceURI_qualifiedName_ = objc + .registerName("parser:didEndElement:namespaceURI:qualifiedName:"); +late final _sel_parser_didEndMappingPrefix_ = objc.registerName( + "parser:didEndMappingPrefix:", +); +late final _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_ = + objc.registerName( + "parser:didStartElement:namespaceURI:qualifiedName:attributes:", + ); +late final _sel_parser_didStartMappingPrefix_toURI_ = objc.registerName( + "parser:didStartMappingPrefix:toURI:", +); +late final _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ = + objc.registerName( + "parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:", + ); +late final _sel_parser_foundCDATA_ = objc.registerName("parser:foundCDATA:"); +late final _sel_parser_foundCharacters_ = objc.registerName( + "parser:foundCharacters:", +); +late final _sel_parser_foundComment_ = objc.registerName( + "parser:foundComment:", +); +late final _sel_parser_foundElementDeclarationWithName_model_ = objc + .registerName("parser:foundElementDeclarationWithName:model:"); +late final _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_ = + objc.registerName( + "parser:foundExternalEntityDeclarationWithName:publicID:systemID:", + ); +late final _sel_parser_foundIgnorableWhitespace_ = objc.registerName( + "parser:foundIgnorableWhitespace:", +); +late final _sel_parser_foundInternalEntityDeclarationWithName_value_ = objc + .registerName("parser:foundInternalEntityDeclarationWithName:value:"); +late final _sel_parser_foundNotationDeclarationWithName_publicID_systemID_ = + objc.registerName( + "parser:foundNotationDeclarationWithName:publicID:systemID:", + ); +late final _sel_parser_foundProcessingInstructionWithTarget_data_ = objc + .registerName("parser:foundProcessingInstructionWithTarget:data:"); +late final _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ = + objc.registerName( + "parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:", + ); +late final _sel_parser_parseErrorOccurred_ = objc.registerName( + "parser:parseErrorOccurred:", +); +late final _sel_parser_resolveExternalEntityName_systemID_ = objc.registerName( + "parser:resolveExternalEntityName:systemID:", +); +late final _sel_parser_validationErrorOccurred_ = objc.registerName( + "parser:validationErrorOccurred:", +); +late final _sel_password = objc.registerName("password"); +late final _sel_pathComponents = objc.registerName("pathComponents"); +late final _sel_pathExtension = objc.registerName("pathExtension"); +late final _sel_pathWithComponents_ = objc.registerName("pathWithComponents:"); +late final _sel_pathsMatchingExtensions_ = objc.registerName( + "pathsMatchingExtensions:", +); +late final _sel_pause = objc.registerName("pause"); +late final _sel_peakPowerForChannel_ = objc.registerName( + "peakPowerForChannel:", +); +late final _sel_performActivityWithOptions_reason_usingBlock_ = objc + .registerName("performActivityWithOptions:reason:usingBlock:"); +late final _sel_performBlock_ = objc.registerName("performBlock:"); +late final _sel_performDefaultHandlingForAuthenticationChallenge_ = objc + .registerName("performDefaultHandlingForAuthenticationChallenge:"); +late final _sel_performExpiringActivityWithReason_usingBlock_ = objc + .registerName("performExpiringActivityWithReason:usingBlock:"); +late final _sel_performInModes_block_ = objc.registerName( + "performInModes:block:", +); +late final _sel_performSelectorInBackground_withObject_ = objc.registerName( + "performSelectorInBackground:withObject:", +); +late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_ = objc + .registerName("performSelectorOnMainThread:withObject:waitUntilDone:"); +late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_ = + objc.registerName( + "performSelectorOnMainThread:withObject:waitUntilDone:modes:", + ); +late final _sel_performSelector_onThread_withObject_waitUntilDone_ = objc + .registerName("performSelector:onThread:withObject:waitUntilDone:"); +late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_ = objc + .registerName("performSelector:onThread:withObject:waitUntilDone:modes:"); +late final _sel_performSelector_target_argument_order_modes_ = objc + .registerName("performSelector:target:argument:order:modes:"); +late final _sel_performSelector_withObject_afterDelay_ = objc.registerName( + "performSelector:withObject:afterDelay:", +); +late final _sel_performSelector_withObject_afterDelay_inModes_ = objc + .registerName("performSelector:withObject:afterDelay:inModes:"); +late final _sel_phoneNumber = objc.registerName("phoneNumber"); +late final _sel_phoneNumberCheckingResultWithRange_phoneNumber_ = objc + .registerName("phoneNumberCheckingResultWithRange:phoneNumber:"); +late final _sel_play = objc.registerName("play"); +late final _sel_playAtTime_ = objc.registerName("playAtTime:"); +late final _sel_pointValue = objc.registerName("pointValue"); +late final _sel_pointerArrayWithStrongObjects = objc.registerName( + "pointerArrayWithStrongObjects", +); +late final _sel_pointerArrayWithWeakObjects = objc.registerName( + "pointerArrayWithWeakObjects", +); +late final _sel_pointerValue = objc.registerName("pointerValue"); +late final _sel_ppdFile = objc.registerName("ppdFile"); +late final _sel_preferredHardwareSampleRate = objc.registerName( + "preferredHardwareSampleRate", +); +late final _sel_preferredIOBufferDuration = objc.registerName( + "preferredIOBufferDuration", +); +late final _sel_preferredInputNumberOfChannels = objc.registerName( + "preferredInputNumberOfChannels", +); +late final _sel_preferredInputOrientation = objc.registerName( + "preferredInputOrientation", +); +late final _sel_preferredLanguages = objc.registerName("preferredLanguages"); +late final _sel_preferredMicrophoneInjectionMode = objc.registerName( + "preferredMicrophoneInjectionMode", +); +late final _sel_preferredOutputNumberOfChannels = objc.registerName( + "preferredOutputNumberOfChannels", +); +late final _sel_preferredSampleRate = objc.registerName("preferredSampleRate"); +late final _sel_prefersInterruptionOnRouteDisconnect = objc.registerName( + "prefersInterruptionOnRouteDisconnect", +); +late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); +late final _sel_presentedItemDidChange = objc.registerName( + "presentedItemDidChange", +); +late final _sel_presentedItemDidChangeUbiquityAttributes_ = objc.registerName( + "presentedItemDidChangeUbiquityAttributes:", +); +late final _sel_presentedItemDidGainVersion_ = objc.registerName( + "presentedItemDidGainVersion:", +); +late final _sel_presentedItemDidLoseVersion_ = objc.registerName( + "presentedItemDidLoseVersion:", +); +late final _sel_presentedItemDidMoveToURL_ = objc.registerName( + "presentedItemDidMoveToURL:", +); +late final _sel_presentedItemDidResolveConflictVersion_ = objc.registerName( + "presentedItemDidResolveConflictVersion:", +); +late final _sel_presentedItemOperationQueue = objc.registerName( + "presentedItemOperationQueue", +); +late final _sel_presentedItemURL = objc.registerName("presentedItemURL"); +late final _sel_presentedSubitemAtURL_didGainVersion_ = objc.registerName( + "presentedSubitemAtURL:didGainVersion:", +); +late final _sel_presentedSubitemAtURL_didLoseVersion_ = objc.registerName( + "presentedSubitemAtURL:didLoseVersion:", +); +late final _sel_presentedSubitemAtURL_didMoveToURL_ = objc.registerName( + "presentedSubitemAtURL:didMoveToURL:", +); +late final _sel_presentedSubitemAtURL_didResolveConflictVersion_ = objc + .registerName("presentedSubitemAtURL:didResolveConflictVersion:"); +late final _sel_presentedSubitemDidAppearAtURL_ = objc.registerName( + "presentedSubitemDidAppearAtURL:", +); +late final _sel_presentedSubitemDidChangeAtURL_ = objc.registerName( + "presentedSubitemDidChangeAtURL:", +); +late final _sel_preservationPriorityForTag_ = objc.registerName( + "preservationPriorityForTag:", +); +late final _sel_previewImageHandler = objc.registerName("previewImageHandler"); +late final _sel_primaryPresentedItemURL = objc.registerName( + "primaryPresentedItemURL", +); +late final _sel_printSession = objc.registerName("printSession"); +late final _sel_printSettings = objc.registerName("printSettings"); +late final _sel_printWindowWillClose_ = objc.registerName( + "printWindowWillClose:", +); +late final _sel_progress = objc.registerName("progress"); +late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( + "promisedItemResourceValuesForKeys:error:", +); +late final _sel_promptStyle = objc.registerName("promptStyle"); +late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); +late final _sel_propertyList = objc.registerName("propertyList"); +late final _sel_propertyListFromStringsFileFormat = objc.registerName( + "propertyListFromStringsFileFormat", +); +late final _sel_publicID = objc.registerName("publicID"); +late final _sel_quotationBeginDelimiter = objc.registerName( + "quotationBeginDelimiter", +); +late final _sel_quotationEndDelimiter = objc.registerName( + "quotationEndDelimiter", +); +late final _sel_quoteCheckingResultWithRange_replacementString_ = objc + .registerName("quoteCheckingResultWithRange:replacementString:"); +late final _sel_raise_format_ = objc.registerName("raise:format:"); +late final _sel_rangeAtIndex_ = objc.registerName("rangeAtIndex:"); +late final _sel_rangeOfFirstMatchInString_options_range_ = objc.registerName( + "rangeOfFirstMatchInString:options:range:", +); +late final _sel_rangeValue = objc.registerName("rangeValue"); +late final _sel_rangeWithName_ = objc.registerName("rangeWithName:"); +late final _sel_rate = objc.registerName("rate"); +late final _sel_readInBackgroundAndNotify = objc.registerName( + "readInBackgroundAndNotify", +); +late final _sel_readInBackgroundAndNotifyForModes_ = objc.registerName( + "readInBackgroundAndNotifyForModes:", +); +late final _sel_readToEndOfFileInBackgroundAndNotify = objc.registerName( + "readToEndOfFileInBackgroundAndNotify", +); +late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_ = objc + .registerName("readToEndOfFileInBackgroundAndNotifyForModes:"); +late final _sel_readabilityHandler = objc.registerName("readabilityHandler"); +late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( + "readableTypeIdentifiersForItemProvider", +); +late final _sel_rectValue = objc.registerName("rectValue"); +late final _sel_regionCode = objc.registerName("regionCode"); +late final _sel_regularExpression = objc.registerName("regularExpression"); +late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_ = + objc.registerName( + "regularExpressionCheckingResultWithRanges:count:regularExpression:", + ); +late final _sel_rejectProtectionSpaceAndContinueWithChallenge_ = objc + .registerName("rejectProtectionSpaceAndContinueWithChallenge:"); +late final _sel_relinquishPresentedItemToReader_ = objc.registerName( + "relinquishPresentedItemToReader:", +); +late final _sel_relinquishPresentedItemToWriter_ = objc.registerName( + "relinquishPresentedItemToWriter:", +); +late final _sel_remoteObjectProxy = objc.registerName("remoteObjectProxy"); +late final _sel_remoteObjectProxyWithErrorHandler_ = objc.registerName( + "remoteObjectProxyWithErrorHandler:", +); +late final _sel_removeAttribute_range_ = objc.registerName( + "removeAttribute:range:", +); +late final _sel_removeCachedResponseForDataTask_ = objc.registerName( + "removeCachedResponseForDataTask:", +); +late final _sel_removeCredential_forProtectionSpace_options_task_ = objc + .registerName("removeCredential:forProtectionSpace:options:task:"); +late final _sel_removeObserver_forKeyPath_ = objc.registerName( + "removeObserver:forKeyPath:", +); +late final _sel_removeObserver_forKeyPath_context_ = objc.registerName( + "removeObserver:forKeyPath:context:", +); +late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_ = objc + .registerName("removeObserver:fromObjectsAtIndexes:forKeyPath:"); +late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_ = objc + .registerName("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"); +late final _sel_removeValueAtIndex_fromPropertyWithKey_ = objc.registerName( + "removeValueAtIndex:fromPropertyWithKey:", +); +late final _sel_replaceCharactersInRange_withAttributedString_ = objc + .registerName("replaceCharactersInRange:withAttributedString:"); +late final _sel_replaceMatchesInString_options_range_withTemplate_ = objc + .registerName("replaceMatchesInString:options:range:withTemplate:"); +late final _sel_replaceOccurrencesOfString_withString_options_range_ = objc + .registerName("replaceOccurrencesOfString:withString:options:range:"); +late final _sel_replaceValueAtIndex_inPropertyWithKey_withValue_ = objc + .registerName("replaceValueAtIndex:inPropertyWithKey:withValue:"); +late final _sel_replacementCheckingResultWithRange_replacementString_ = objc + .registerName("replacementCheckingResultWithRange:replacementString:"); +late final _sel_replacementObjectForArchiver_ = objc.registerName( + "replacementObjectForArchiver:", +); +late final _sel_replacementObjectForCoder_ = objc.registerName( + "replacementObjectForCoder:", +); +late final _sel_replacementObjectForKeyedArchiver_ = objc.registerName( + "replacementObjectForKeyedArchiver:", +); +late final _sel_replacementObjectForPortCoder_ = objc.registerName( + "replacementObjectForPortCoder:", +); +late final _sel_replacementString = objc.registerName("replacementString"); +late final _sel_replacementStringForResult_inString_offset_template_ = objc + .registerName("replacementStringForResult:inString:offset:template:"); +late final _sel_requiresSecureCoding = objc.registerName( + "requiresSecureCoding", +); +late final _sel_resetSystemTimeZone = objc.registerName("resetSystemTimeZone"); +late final _sel_resourceDataUsingCache_ = objc.registerName( + "resourceDataUsingCache:", +); +late final _sel_restoreValuesAndReturnError_ = objc.registerName( + "restoreValuesAndReturnError:", +); +late final _sel_resultByAdjustingRangesWithOffset_ = objc.registerName( + "resultByAdjustingRangesWithOffset:", +); +late final _sel_roundingBehavior = objc.registerName("roundingBehavior"); +late final _sel_roundingMode = objc.registerName("roundingMode"); +late final _sel_run = objc.registerName("run"); +late final _sel_runMode_beforeDate_ = objc.registerName("runMode:beforeDate:"); +late final _sel_runUntilDate_ = objc.registerName("runUntilDate:"); +late final _sel_sampleRate = objc.registerName("sampleRate"); +late final _sel_savePresentedItemChangesWithCompletionHandler_ = objc + .registerName("savePresentedItemChangesWithCompletionHandler:"); +late final _sel_saveValuesAndReturnError_ = objc.registerName( + "saveValuesAndReturnError:", +); +late final _sel_scale = objc.registerName("scale"); +late final _sel_scanCharactersFromSet_intoString_ = objc.registerName( + "scanCharactersFromSet:intoString:", +); +late final _sel_scanDecimal_ = objc.registerName("scanDecimal:"); +late final _sel_scanDouble_ = objc.registerName("scanDouble:"); +late final _sel_scanFloat_ = objc.registerName("scanFloat:"); +late final _sel_scanHexDouble_ = objc.registerName("scanHexDouble:"); +late final _sel_scanHexFloat_ = objc.registerName("scanHexFloat:"); +late final _sel_scanHexInt_ = objc.registerName("scanHexInt:"); +late final _sel_scanHexLongLong_ = objc.registerName("scanHexLongLong:"); +late final _sel_scanInt_ = objc.registerName("scanInt:"); +late final _sel_scanInteger_ = objc.registerName("scanInteger:"); +late final _sel_scanLongLong_ = objc.registerName("scanLongLong:"); +late final _sel_scanString_intoString_ = objc.registerName( + "scanString:intoString:", +); +late final _sel_scanUnsignedLongLong_ = objc.registerName( + "scanUnsignedLongLong:", +); +late final _sel_scanUpToCharactersFromSet_intoString_ = objc.registerName( + "scanUpToCharactersFromSet:intoString:", +); +late final _sel_scanUpToString_intoString_ = objc.registerName( + "scanUpToString:intoString:", +); +late final _sel_scriptCode = objc.registerName("scriptCode"); +late final _sel_scriptingBeginsWith_ = objc.registerName( + "scriptingBeginsWith:", +); +late final _sel_scriptingContains_ = objc.registerName("scriptingContains:"); +late final _sel_scriptingEndsWith_ = objc.registerName("scriptingEndsWith:"); +late final _sel_scriptingIsEqualTo_ = objc.registerName("scriptingIsEqualTo:"); +late final _sel_scriptingIsGreaterThanOrEqualTo_ = objc.registerName( + "scriptingIsGreaterThanOrEqualTo:", +); +late final _sel_scriptingIsGreaterThan_ = objc.registerName( + "scriptingIsGreaterThan:", +); +late final _sel_scriptingIsLessThanOrEqualTo_ = objc.registerName( + "scriptingIsLessThanOrEqualTo:", +); +late final _sel_scriptingIsLessThan_ = objc.registerName( + "scriptingIsLessThan:", +); +late final _sel_scriptingProperties = objc.registerName("scriptingProperties"); +late final _sel_scriptingValueForSpecifier_ = objc.registerName( + "scriptingValueForSpecifier:", +); +late final _sel_secondaryAudioShouldBeSilencedHint = objc.registerName( + "secondaryAudioShouldBeSilencedHint", +); +late final _sel_secondsFromGMT = objc.registerName("secondsFromGMT"); +late final _sel_sendAsynchronousRequest_queue_completionHandler_ = objc + .registerName("sendAsynchronousRequest:queue:completionHandler:"); +late final _sel_sendSynchronousRequest_returningResponse_error_ = objc + .registerName("sendSynchronousRequest:returningResponse:error:"); +late final _sel_serverTrust = objc.registerName("serverTrust"); +late final _sel_set = objc.registerName("set"); +late final _sel_setAbbreviationDictionary_ = objc.registerName( + "setAbbreviationDictionary:", +); +late final _sel_setActive_error_ = objc.registerName("setActive:error:"); +late final _sel_setActive_withFlags_error_ = objc.registerName( + "setActive:withFlags:error:", +); +late final _sel_setActive_withOptions_error_ = objc.registerName( + "setActive:withOptions:error:", +); +late final _sel_setAggregatedIOPreference_error_ = objc.registerName( + "setAggregatedIOPreference:error:", +); +late final _sel_setAllHTTPHeaderFields_ = objc.registerName( + "setAllHTTPHeaderFields:", +); +late final _sel_setAttributedStringForNil_ = objc.registerName( + "setAttributedStringForNil:", +); +late final _sel_setAttributedStringForNotANumber_ = objc.registerName( + "setAttributedStringForNotANumber:", +); +late final _sel_setAttributedStringForZero_ = objc.registerName( + "setAttributedStringForZero:", +); +late final _sel_setAttributedString_ = objc.registerName( + "setAttributedString:", +); +late final _sel_setAttributesAsDictionary_ = objc.registerName( + "setAttributesAsDictionary:", +); +late final _sel_setChannelAssignments_ = objc.registerName( + "setChannelAssignments:", +); +late final _sel_setCredential_forProtectionSpace_task_ = objc.registerName( + "setCredential:forProtectionSpace:task:", +); +late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); +late final _sel_setCurrentDirectoryPath_ = objc.registerName( + "setCurrentDirectoryPath:", +); +late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); +late final _sel_setCustomPronoun_forLanguage_error_ = objc.registerName( + "setCustomPronoun:forLanguage:error:", +); +late final _sel_setDefaultCredential_forProtectionSpace_task_ = objc + .registerName("setDefaultCredential:forProtectionSpace:task:"); +late final _sel_setDefaultTimeZone_ = objc.registerName("setDefaultTimeZone:"); +late final _sel_setDelegate_ = objc.registerName("setDelegate:"); +late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); +late final _sel_setFormat_ = objc.registerName("setFormat:"); +late final _sel_setHTTPBodyStream_ = objc.registerName("setHTTPBodyStream:"); +late final _sel_setHTTPBody_ = objc.registerName("setHTTPBody:"); +late final _sel_setHTTPMethod_ = objc.registerName("setHTTPMethod:"); +late final _sel_setHTTPShouldHandleCookies_ = objc.registerName( + "setHTTPShouldHandleCookies:", +); +late final _sel_setHTTPShouldUsePipelining_ = objc.registerName( + "setHTTPShouldUsePipelining:", +); +late final _sel_setHasThousandSeparators_ = objc.registerName( + "setHasThousandSeparators:", +); +late final _sel_setInputDataSource_error_ = objc.registerName( + "setInputDataSource:error:", +); +late final _sel_setInputGain_error_ = objc.registerName("setInputGain:error:"); +late final _sel_setIntendedSpatialExperience_ = objc.registerName( + "setIntendedSpatialExperience:", +); +late final _sel_setKeys_triggerChangeNotificationsForDependentKey_ = objc + .registerName("setKeys:triggerChangeNotificationsForDependentKey:"); +late final _sel_setLaunchPath_ = objc.registerName("setLaunchPath:"); +late final _sel_setLocalizesFormat_ = objc.registerName("setLocalizesFormat:"); +late final _sel_setMeteringEnabled_ = objc.registerName("setMeteringEnabled:"); +late final _sel_setNilValueForKey_ = objc.registerName("setNilValueForKey:"); +late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); +late final _sel_setObjectZone_ = objc.registerName("setObjectZone:"); +late final _sel_setObservationInfo_ = objc.registerName("setObservationInfo:"); +late final _sel_setOutputDataSource_error_ = objc.registerName( + "setOutputDataSource:error:", +); +late final _sel_setPan_ = objc.registerName("setPan:"); +late final _sel_setPreferredHardwareSampleRate_error_ = objc.registerName( + "setPreferredHardwareSampleRate:error:", +); +late final _sel_setPreferredIOBufferDuration_error_ = objc.registerName( + "setPreferredIOBufferDuration:error:", +); +late final _sel_setPreferredInputNumberOfChannels_error_ = objc.registerName( + "setPreferredInputNumberOfChannels:error:", +); +late final _sel_setPreferredInputOrientation_error_ = objc.registerName( + "setPreferredInputOrientation:error:", +); +late final _sel_setPreferredMicrophoneInjectionMode_error_ = objc.registerName( + "setPreferredMicrophoneInjectionMode:error:", +); +late final _sel_setPreferredOutputNumberOfChannels_error_ = objc.registerName( + "setPreferredOutputNumberOfChannels:error:", +); +late final _sel_setPreferredSampleRate_error_ = objc.registerName( + "setPreferredSampleRate:error:", +); +late final _sel_setPrefersInterruptionOnRouteDisconnect_error_ = objc + .registerName("setPrefersInterruptionOnRouteDisconnect:error:"); +late final _sel_setPreservationPriority_forTags_ = objc.registerName( + "setPreservationPriority:forTags:", +); +late final _sel_setPreviewImageHandler_ = objc.registerName( + "setPreviewImageHandler:", +); +late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); +late final _sel_setRate_ = objc.registerName("setRate:"); +late final _sel_setReadabilityHandler_ = objc.registerName( + "setReadabilityHandler:", +); +late final _sel_setResourceData_ = objc.registerName("setResourceData:"); +late final _sel_setRoundingBehavior_ = objc.registerName( + "setRoundingBehavior:", +); +late final _sel_setScriptingProperties_ = objc.registerName( + "setScriptingProperties:", +); +late final _sel_setSharedObservers_ = objc.registerName("setSharedObservers:"); +late final _sel_setString_ = objc.registerName("setString:"); +late final _sel_setSupportsMultichannelContent_error_ = objc.registerName( + "setSupportsMultichannelContent:error:", +); +late final _sel_setThousandSeparator_ = objc.registerName( + "setThousandSeparator:", +); +late final _sel_setValue_forHTTPHeaderField_ = objc.registerName( + "setValue:forHTTPHeaderField:", +); +late final _sel_setValue_forKeyPath_ = objc.registerName( + "setValue:forKeyPath:", +); +late final _sel_setValue_forKey_ = objc.registerName("setValue:forKey:"); +late final _sel_setValue_forUndefinedKey_ = objc.registerName( + "setValue:forUndefinedKey:", +); +late final _sel_setValuesForKeysWithDictionary_ = objc.registerName( + "setValuesForKeysWithDictionary:", +); +late final _sel_setVersion_ = objc.registerName("setVersion:"); +late final _sel_setVolume_ = objc.registerName("setVolume:"); +late final _sel_setVolume_fadeDuration_ = objc.registerName( + "setVolume:fadeDuration:", +); +late final _sel_setWithArray_ = objc.registerName("setWithArray:"); +late final _sel_setWithCapacity_ = objc.registerName("setWithCapacity:"); +late final _sel_setWithObject_ = objc.registerName("setWithObject:"); +late final _sel_setWithObjects_ = objc.registerName("setWithObjects:"); +late final _sel_setWithObjects_count_ = objc.registerName( + "setWithObjects:count:", +); +late final _sel_setWithSet_ = objc.registerName("setWithSet:"); +late final _sel_setWriteabilityHandler_ = objc.registerName( + "setWriteabilityHandler:", +); +late final _sel_settings = objc.registerName("settings"); +late final _sel_sharedKeySetForKeys_ = objc.registerName( + "sharedKeySetForKeys:", +); +late final _sel_shouldHide = objc.registerName("shouldHide"); +late final _sel_shouldPrint = objc.registerName("shouldPrint"); +late final _sel_shouldShowHelp = objc.registerName("shouldShowHelp"); +late final _sel_sizeValue = objc.registerName("sizeValue"); +late final _sel_sortUsingDescriptors_ = objc.registerName( + "sortUsingDescriptors:", +); +late final _sel_sortedArrayUsingDescriptors_ = objc.registerName( + "sortedArrayUsingDescriptors:", +); +late final _sel_spellCheckingResultWithRange_ = objc.registerName( + "spellCheckingResultWithRange:", +); +late final _sel_spellServer_checkGrammarInString_language_details_ = objc + .registerName("spellServer:checkGrammarInString:language:details:"); +late final _sel_spellServer_checkString_offset_types_options_orthography_wordCount_ = + objc.registerName( + "spellServer:checkString:offset:types:options:orthography:wordCount:", + ); +late final _sel_spellServer_didForgetWord_inLanguage_ = objc.registerName( + "spellServer:didForgetWord:inLanguage:", +); +late final _sel_spellServer_didLearnWord_inLanguage_ = objc.registerName( + "spellServer:didLearnWord:inLanguage:", +); +late final _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_ = + objc.registerName( + "spellServer:findMisspelledWordInString:language:wordCount:countOnly:", + ); +late final _sel_spellServer_recordResponse_toCorrection_forWord_language_ = objc + .registerName("spellServer:recordResponse:toCorrection:forWord:language:"); +late final _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_ = + objc.registerName( + "spellServer:suggestCompletionsForPartialWordRange:inString:language:", + ); +late final _sel_spellServer_suggestGuessesForWord_inLanguage_ = objc + .registerName("spellServer:suggestGuessesForWord:inLanguage:"); +late final _sel_stop = objc.registerName("stop"); +late final _sel_storeCachedResponse_forDataTask_ = objc.registerName( + "storeCachedResponse:forDataTask:", +); +late final _sel_storeCookies_forTask_ = objc.registerName( + "storeCookies:forTask:", +); +late final _sel_storedValueForKey_ = objc.registerName("storedValueForKey:"); +late final _sel_stringByAbbreviatingWithTildeInPath = objc.registerName( + "stringByAbbreviatingWithTildeInPath", +); +late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_ = objc + .registerName("stringByAddingPercentEncodingWithAllowedCharacters:"); +late final _sel_stringByAddingPercentEscapesUsingEncoding_ = objc.registerName( + "stringByAddingPercentEscapesUsingEncoding:", +); +late final _sel_stringByAppendingPathComponent_ = objc.registerName( + "stringByAppendingPathComponent:", +); +late final _sel_stringByAppendingPathExtension_ = objc.registerName( + "stringByAppendingPathExtension:", +); +late final _sel_stringByDeletingLastPathComponent = objc.registerName( + "stringByDeletingLastPathComponent", +); +late final _sel_stringByDeletingPathExtension = objc.registerName( + "stringByDeletingPathExtension", +); +late final _sel_stringByExpandingTildeInPath = objc.registerName( + "stringByExpandingTildeInPath", +); +late final _sel_stringByRemovingPercentEncoding = objc.registerName( + "stringByRemovingPercentEncoding", +); +late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_ = + objc.registerName( + "stringByReplacingMatchesInString:options:range:withTemplate:", + ); +late final _sel_stringByReplacingPercentEscapesUsingEncoding_ = objc + .registerName("stringByReplacingPercentEscapesUsingEncoding:"); +late final _sel_stringByResolvingSymlinksInPath = objc.registerName( + "stringByResolvingSymlinksInPath", +); +late final _sel_stringByStandardizingPath = objc.registerName( + "stringByStandardizingPath", +); +late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_ = + objc.registerName( + "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:", + ); +late final _sel_stringWithCString_ = objc.registerName("stringWithCString:"); +late final _sel_stringWithCString_length_ = objc.registerName( + "stringWithCString:length:", +); +late final _sel_stringWithCapacity_ = objc.registerName("stringWithCapacity:"); +late final _sel_stringWithContentsOfFile_ = objc.registerName( + "stringWithContentsOfFile:", +); +late final _sel_stringWithContentsOfURL_ = objc.registerName( + "stringWithContentsOfURL:", +); +late final _sel_stringsByAppendingPaths_ = objc.registerName( + "stringsByAppendingPaths:", +); +late final _sel_strongObjectsPointerArray = objc.registerName( + "strongObjectsPointerArray", +); +late final _sel_summaryInfo = objc.registerName("summaryInfo"); +late final _sel_supportedOutputChannelLayouts = objc.registerName( + "supportedOutputChannelLayouts", +); +late final _sel_supportedPPDOptionKeys = objc.registerName( + "supportedPPDOptionKeys", +); +late final _sel_supportsMultichannelContent = objc.registerName( + "supportsMultichannelContent", +); +late final _sel_symbolicLinkDestination = objc.registerName( + "symbolicLinkDestination", +); +late final _sel_synchronousRemoteObjectProxyWithErrorHandler_ = objc + .registerName("synchronousRemoteObjectProxyWithErrorHandler:"); +late final _sel_systemID = objc.registerName("systemID"); +late final _sel_systemLocale = objc.registerName("systemLocale"); +late final _sel_systemTimeZone = objc.registerName("systemTimeZone"); +late final _sel_systemVersion = objc.registerName("systemVersion"); +late final _sel_takeStoredValue_forKey_ = objc.registerName( + "takeStoredValue:forKey:", +); +late final _sel_takeValue_forKeyPath_ = objc.registerName( + "takeValue:forKeyPath:", +); +late final _sel_takeValue_forKey_ = objc.registerName("takeValue:forKey:"); +late final _sel_takeValuesFromDictionary_ = objc.registerName( + "takeValuesFromDictionary:", +); +late final _sel_task = objc.registerName("task"); +late final _sel_temporaryDirectory = objc.registerName("temporaryDirectory"); +late final _sel_thermalState = objc.registerName("thermalState"); +late final _sel_thousandSeparator = objc.registerName("thousandSeparator"); +late final _sel_timeZone = objc.registerName("timeZone"); +late final _sel_timeZoneDataVersion = objc.registerName("timeZoneDataVersion"); +late final _sel_toManyRelationshipKeys = objc.registerName( + "toManyRelationshipKeys", +); +late final _sel_toOneRelationshipKeys = objc.registerName( + "toOneRelationshipKeys", +); +late final _sel_transitInformationCheckingResultWithRange_components_ = objc + .registerName("transitInformationCheckingResultWithRange:components:"); +late final _sel_unableToSetNilForKey_ = objc.registerName( + "unableToSetNilForKey:", +); +late final _sel_unarchiverDidFinish_ = objc.registerName( + "unarchiverDidFinish:", +); +late final _sel_unarchiverWillFinish_ = objc.registerName( + "unarchiverWillFinish:", +); +late final _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_ = objc + .registerName("unarchiver:cannotDecodeObjectOfClassName:originalClasses:"); +late final _sel_unarchiver_didDecodeObject_ = objc.registerName( + "unarchiver:didDecodeObject:", +); +late final _sel_unarchiver_willReplaceObject_withObject_ = objc.registerName( + "unarchiver:willReplaceObject:withObject:", +); +late final _sel_unlock = objc.registerName("unlock"); +late final _sel_updateFromPath_ = objc.registerName("updateFromPath:"); +late final _sel_updateMeters = objc.registerName("updateMeters"); +late final _sel_uploadTaskWithRequest_fromData_completionHandler_ = objc + .registerName("uploadTaskWithRequest:fromData:completionHandler:"); +late final _sel_uploadTaskWithRequest_fromFile_completionHandler_ = objc + .registerName("uploadTaskWithRequest:fromFile:completionHandler:"); +late final _sel_uploadTaskWithResumeData_completionHandler_ = objc.registerName( + "uploadTaskWithResumeData:completionHandler:", +); +late final _sel_url = objc.registerName("url"); +late final _sel_useCredential_forAuthenticationChallenge_ = objc.registerName( + "useCredential:forAuthenticationChallenge:", +); +late final _sel_useStoredAccessor = objc.registerName("useStoredAccessor"); +late final _sel_user = objc.registerName("user"); +late final _sel_userActivityWasContinued_ = objc.registerName( + "userActivityWasContinued:", +); +late final _sel_userActivityWillSave_ = objc.registerName( + "userActivityWillSave:", +); +late final _sel_userActivity_didReceiveInputStream_outputStream_ = objc + .registerName("userActivity:didReceiveInputStream:outputStream:"); +late final _sel_userMorphology = objc.registerName("userMorphology"); +late final _sel_userName = objc.registerName("userName"); +late final _sel_userNotificationCenter_didActivateNotification_ = objc + .registerName("userNotificationCenter:didActivateNotification:"); +late final _sel_userNotificationCenter_didDeliverNotification_ = objc + .registerName("userNotificationCenter:didDeliverNotification:"); +late final _sel_userNotificationCenter_shouldPresentNotification_ = objc + .registerName("userNotificationCenter:shouldPresentNotification:"); +late final _sel_usesMetricSystem = objc.registerName("usesMetricSystem"); +late final _sel_validateValue_forKeyPath_error_ = objc.registerName( + "validateValue:forKeyPath:error:", +); +late final _sel_validateValue_forKey_error_ = objc.registerName( + "validateValue:forKey:error:", +); +late final _sel_valueAtIndex_inPropertyWithKey_ = objc.registerName( + "valueAtIndex:inPropertyWithKey:", +); +late final _sel_valueForHTTPHeaderField_ = objc.registerName( + "valueForHTTPHeaderField:", +); +late final _sel_valueForKeyPath_ = objc.registerName("valueForKeyPath:"); +late final _sel_valueForKey_ = objc.registerName("valueForKey:"); +late final _sel_valueForUndefinedKey_ = objc.registerName( + "valueForUndefinedKey:", +); +late final _sel_valueWithBytes_objCType_ = objc.registerName( + "valueWithBytes:objCType:", +); +late final _sel_valueWithEdgeInsets_ = objc.registerName( + "valueWithEdgeInsets:", +); +late final _sel_valueWithName_inPropertyWithKey_ = objc.registerName( + "valueWithName:inPropertyWithKey:", +); +late final _sel_valueWithNonretainedObject_ = objc.registerName( + "valueWithNonretainedObject:", +); +late final _sel_valueWithPoint_ = objc.registerName("valueWithPoint:"); +late final _sel_valueWithPointer_ = objc.registerName("valueWithPointer:"); +late final _sel_valueWithRange_ = objc.registerName("valueWithRange:"); +late final _sel_valueWithRect_ = objc.registerName("valueWithRect:"); +late final _sel_valueWithSize_ = objc.registerName("valueWithSize:"); +late final _sel_valueWithUniqueID_inPropertyWithKey_ = objc.registerName( + "valueWithUniqueID:inPropertyWithKey:", +); +late final _sel_value_withObjCType_ = objc.registerName("value:withObjCType:"); +late final _sel_valuesForKeys_ = objc.registerName("valuesForKeys:"); +late final _sel_variantCode = objc.registerName("variantCode"); +late final _sel_variantFittingPresentationWidth_ = objc.registerName( + "variantFittingPresentationWidth:", +); +late final _sel_version = objc.registerName("version"); +late final _sel_volume = objc.registerName("volume"); +late final _sel_waitForDataInBackgroundAndNotify = objc.registerName( + "waitForDataInBackgroundAndNotify", +); +late final _sel_waitForDataInBackgroundAndNotifyForModes_ = objc.registerName( + "waitForDataInBackgroundAndNotifyForModes:", +); +late final _sel_waitUntilExit = objc.registerName("waitUntilExit"); +late final _sel_weakObjectsPointerArray = objc.registerName( + "weakObjectsPointerArray", +); +late final _sel_willChangePPDOptionKeyValue_ppdChoice_ = objc.registerName( + "willChangePPDOptionKeyValue:ppdChoice:", +); +late final _sel_willChangeValueForKey_ = objc.registerName( + "willChangeValueForKey:", +); +late final _sel_willChangeValueForKey_withSetMutation_usingObjects_ = objc + .registerName("willChangeValueForKey:withSetMutation:usingObjects:"); +late final _sel_willChange_valuesAtIndexes_forKey_ = objc.registerName( + "willChange:valuesAtIndexes:forKey:", +); +late final _sel_willShow = objc.registerName("willShow"); +late final _sel_windowsLocaleCodeFromLocaleIdentifier_ = objc.registerName( + "windowsLocaleCodeFromLocaleIdentifier:", +); +late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( + "writableTypeIdentifiersForItemProvider", +); +late final _sel_writeToFile_atomically_ = objc.registerName( + "writeToFile:atomically:", +); +late final _sel_writeToFile_atomically_updateFilenames_ = objc.registerName( + "writeToFile:atomically:updateFilenames:", +); +late final _sel_writeToURL_atomically_ = objc.registerName( + "writeToURL:atomically:", +); +late final _sel_writeabilityHandler = objc.registerName("writeabilityHandler"); + +final class _xlocale extends ffi.Opaque {} + +final class _xpc_bool_s extends ffi.Opaque {} + +final class _xpc_dictionary_s extends ffi.Opaque {} + +final class _xpc_type_s extends ffi.Opaque {} + +const int abbrevDate = 2; + +const int abortErr = -27; + +final class accessx_descriptor extends ffi.Struct { + @ffi.UnsignedInt() + external int ad_name_offset; + + @ffi.Int() + external int ad_flags; + + @ffi.Array.multi([2]) + external ffi.Array ad_pad; +} + +enum acl_entry_id_t { + ACL_FIRST_ENTRY(0), + ACL_NEXT_ENTRY(-1), + ACL_LAST_ENTRY(-2); + + final int value; + const acl_entry_id_t(this.value); + + static acl_entry_id_t fromValue(int value) => switch (value) { + 0 => ACL_FIRST_ENTRY, + -1 => ACL_NEXT_ENTRY, + -2 => ACL_LAST_ENTRY, + _ => throw ArgumentError('Unknown value for acl_entry_id_t: $value'), + }; +} + +typedef acl_entry_t = ffi.Pointer<_acl_entry>; + +enum acl_flag_t { + ACL_FLAG_DEFER_INHERIT(1), + ACL_FLAG_NO_INHERIT(131072), + ACL_ENTRY_INHERITED(16), + ACL_ENTRY_FILE_INHERIT(32), + ACL_ENTRY_DIRECTORY_INHERIT(64), + ACL_ENTRY_LIMIT_INHERIT(128), + ACL_ENTRY_ONLY_INHERIT(256); + + final int value; + const acl_flag_t(this.value); + + static acl_flag_t fromValue(int value) => switch (value) { + 1 => ACL_FLAG_DEFER_INHERIT, + 131072 => ACL_FLAG_NO_INHERIT, + 16 => ACL_ENTRY_INHERITED, + 32 => ACL_ENTRY_FILE_INHERIT, + 64 => ACL_ENTRY_DIRECTORY_INHERIT, + 128 => ACL_ENTRY_LIMIT_INHERIT, + 256 => ACL_ENTRY_ONLY_INHERIT, + _ => throw ArgumentError('Unknown value for acl_flag_t: $value'), + }; +} + +typedef acl_flagset_t = ffi.Pointer<_acl_flagset>; + +enum acl_perm_t { + ACL_READ_DATA(2), + ACL_WRITE_DATA(4), + ACL_EXECUTE(8), + ACL_DELETE(16), + ACL_APPEND_DATA(32), + ACL_DELETE_CHILD(64), + ACL_READ_ATTRIBUTES(128), + ACL_WRITE_ATTRIBUTES(256), + ACL_READ_EXTATTRIBUTES(512), + ACL_WRITE_EXTATTRIBUTES(1024), + ACL_READ_SECURITY(2048), + ACL_WRITE_SECURITY(4096), + ACL_CHANGE_OWNER(8192), + ACL_SYNCHRONIZE(1048576); + + static const ACL_LIST_DIRECTORY = ACL_READ_DATA; + static const ACL_ADD_FILE = ACL_WRITE_DATA; + static const ACL_SEARCH = ACL_EXECUTE; + static const ACL_ADD_SUBDIRECTORY = ACL_APPEND_DATA; + + final int value; + const acl_perm_t(this.value); + + static acl_perm_t fromValue(int value) => switch (value) { + 2 => ACL_READ_DATA, + 4 => ACL_WRITE_DATA, + 8 => ACL_EXECUTE, + 16 => ACL_DELETE, + 32 => ACL_APPEND_DATA, + 64 => ACL_DELETE_CHILD, + 128 => ACL_READ_ATTRIBUTES, + 256 => ACL_WRITE_ATTRIBUTES, + 512 => ACL_READ_EXTATTRIBUTES, + 1024 => ACL_WRITE_EXTATTRIBUTES, + 2048 => ACL_READ_SECURITY, + 4096 => ACL_WRITE_SECURITY, + 8192 => ACL_CHANGE_OWNER, + 1048576 => ACL_SYNCHRONIZE, + _ => throw ArgumentError('Unknown value for acl_perm_t: $value'), + }; + + @override + String toString() { + if (this == ACL_READ_DATA) + return "acl_perm_t.ACL_READ_DATA, acl_perm_t.ACL_LIST_DIRECTORY"; + if (this == ACL_WRITE_DATA) + return "acl_perm_t.ACL_WRITE_DATA, acl_perm_t.ACL_ADD_FILE"; + if (this == ACL_EXECUTE) + return "acl_perm_t.ACL_EXECUTE, acl_perm_t.ACL_SEARCH"; + if (this == ACL_APPEND_DATA) + return "acl_perm_t.ACL_APPEND_DATA, acl_perm_t.ACL_ADD_SUBDIRECTORY"; + return super.toString(); + } +} + +typedef acl_permset_mask_t = u_int64_t; +typedef acl_permset_t = ffi.Pointer<_acl_permset>; +typedef acl_t = ffi.Pointer<_acl>; + +enum acl_tag_t { + ACL_UNDEFINED_TAG(0), + ACL_EXTENDED_ALLOW(1), + ACL_EXTENDED_DENY(2); + + final int value; + const acl_tag_t(this.value); + + static acl_tag_t fromValue(int value) => switch (value) { + 0 => ACL_UNDEFINED_TAG, + 1 => ACL_EXTENDED_ALLOW, + 2 => ACL_EXTENDED_DENY, + _ => throw ArgumentError('Unknown value for acl_tag_t: $value'), + }; +} + +enum acl_type_t { + ACL_TYPE_EXTENDED(256), + ACL_TYPE_ACCESS(0), + ACL_TYPE_DEFAULT(1), + ACL_TYPE_AFS(2), + ACL_TYPE_CODA(3), + ACL_TYPE_NTFS(4), + ACL_TYPE_NWFS(5); + + final int value; + const acl_type_t(this.value); + + static acl_type_t fromValue(int value) => switch (value) { + 256 => ACL_TYPE_EXTENDED, + 0 => ACL_TYPE_ACCESS, + 1 => ACL_TYPE_DEFAULT, + 2 => ACL_TYPE_AFS, + 3 => ACL_TYPE_CODA, + 4 => ACL_TYPE_NTFS, + 5 => ACL_TYPE_NWFS, + _ => throw ArgumentError('Unknown value for acl_type_t: $value'), + }; +} + +const int activDev = 5; + +@Deprecated('Deprecated') +const int acuteUprA = 231; + +@Deprecated('Deprecated') +const int acuteUprI = 234; + +@Deprecated('Deprecated') +const int acuteUprO = 238; + +@Deprecated('Deprecated') +const int acuteUprU = 242; + +const int addRefFailed = -195; + +const int addResFailed = -194; + +typedef addr64_t = ffi.Uint64; +typedef Dartaddr64_t = int; + +final class addrinfo extends ffi.Struct { + @ffi.Int() + external int ai_flags; + + @ffi.Int() + external int ai_family; + + @ffi.Int() + external int ai_socktype; + + @ffi.Int() + external int ai_protocol; + + @socklen_t() + external int ai_addrlen; + + external ffi.Pointer ai_canonname; + + external ffi.Pointer ai_addr; + + external ffi.Pointer ai_next; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ai_flags, + required int ai_family, + required int ai_socktype, + required int ai_protocol, + required int ai_addrlen, + required ffi.Pointer ai_canonname, + required ffi.Pointer ai_addr, + required ffi.Pointer ai_next, + }) => $allocator() + ..ref.ai_flags = ai_flags + ..ref.ai_family = ai_family + ..ref.ai_socktype = ai_socktype + ..ref.ai_protocol = ai_protocol + ..ref.ai_addrlen = ai_addrlen + ..ref.ai_canonname = ai_canonname + ..ref.ai_addr = ai_addr + ..ref.ai_next = ai_next; +} + +const int aeBuildSyntaxBadData = 12; + +const int aeBuildSyntaxBadDesc = 11; + +const int aeBuildSyntaxBadEOF = 2; + +const int aeBuildSyntaxBadHex = 6; + +const int aeBuildSyntaxBadNegative = 4; + +const int aeBuildSyntaxBadToken = 1; + +const int aeBuildSyntaxCoercedList = 18; + +const int aeBuildSyntaxMissingQuote = 5; + +const int aeBuildSyntaxNoCloseBrace = 15; + +const int aeBuildSyntaxNoCloseBracket = 14; + +const int aeBuildSyntaxNoCloseHex = 8; + +const int aeBuildSyntaxNoCloseParen = 13; + +const int aeBuildSyntaxNoCloseString = 10; + +const int aeBuildSyntaxNoColon = 17; + +const int aeBuildSyntaxNoEOF = 3; + +const int aeBuildSyntaxNoErr = 0; + +const int aeBuildSyntaxNoKey = 16; + +const int aeBuildSyntaxOddHex = 7; + +const int aeBuildSyntaxUncoercedDoubleAt = 19; + +const int aeBuildSyntaxUncoercedHex = 9; + +const int afpAccessDenied = -5000; + +const int afpAlreadyLoggedInErr = -5047; + +const int afpAlreadyMounted = -5062; + +const int afpAuthContinue = -5001; + +const int afpBadDirIDType = -5060; + +const int afpBadIDErr = -5039; + +const int afpBadUAM = -5002; + +const int afpBadVersNum = -5003; + +const int afpBitmapErr = -5004; + +const int afpCallNotAllowed = -5048; + +const int afpCallNotSupported = -5024; + +const int afpCantMountMoreSrvre = -5061; + +const int afpCantMove = -5005; + +const int afpCantRename = -5028; + +const int afpCatalogChanged = -5037; + +const int afpContainsSharedErr = -5033; + +const int afpDenyConflict = -5006; + +const int afpDiffVolErr = -5036; + +const int afpDirNotEmpty = -5007; + +const int afpDirNotFound = -5029; + +const int afpDiskFull = -5008; + +const int afpEofError = -5009; + +const int afpFileBusy = -5010; + +const int afpFlatVol = -5011; + +const int afpIDExists = -5035; + +const int afpIDNotFound = -5034; + +const int afpIconTypeError = -5030; + +const int afpInsideSharedErr = -5043; + +const int afpInsideTrashErr = -5044; + +const int afpItemNotFound = -5012; + +const int afpLockErr = -5013; + +const int afpMiscErr = -5014; + +const int afpNoMoreLocks = -5015; + +const int afpNoServer = -5016; + +const int afpObjectExists = -5017; + +const int afpObjectLocked = -5032; + +const int afpObjectNotFound = -5018; + +const int afpObjectTypeErr = -5025; + +const int afpParmErr = -5019; + +const int afpPwdExpiredErr = -5042; + +const int afpPwdNeedsChangeErr = -5045; + +const int afpPwdPolicyErr = -5046; + +const int afpPwdSameErr = -5040; + +const int afpPwdTooShortErr = -5041; + +const int afpRangeNotLocked = -5020; + +const int afpRangeOverlap = -5021; + +const int afpSameNodeErr = -5063; + +const int afpSameObjectErr = -5038; + +const int afpServerGoingDown = -5027; + +const int afpSessClosed = -5022; + +const int afpTooManyFilesOpen = -5026; + +const int afpUserNotAuth = -5023; + +const int afpVolLocked = -5031; + +typedef alarm_port_t = alarm_t; +typedef alarm_t = mach_port_t; +typedef alarm_type_t = ffi.Int; +typedef Dartalarm_type_t = int; + +const int alphaStage = 64; + +const int appIsDaemon = -606; + +const int appMemFullErr = -605; + +const int appModeErr = -602; + +const int appVersionTooOld = -876; + +@Deprecated('Deprecated') +const int appleLogo = 240; + +const int appleMenuFolderIconResource = -3982; + +typedef arcade_register_t = mach_port_t; +typedef arm_debug_state32_t = __darwin_arm_debug_state32; +typedef arm_debug_state64_t = __darwin_arm_debug_state64; +typedef arm_debug_state_t = __arm_legacy_debug_state; +typedef arm_exception_state32_t = __darwin_arm_exception_state; +typedef arm_exception_state64_t = __darwin_arm_exception_state64; +typedef arm_exception_state64_v2_t = __darwin_arm_exception_state64_v2; +typedef arm_exception_state_t = __darwin_arm_exception_state; +typedef arm_neon_state32_t = __darwin_arm_neon_state; +typedef arm_neon_state64_t = __darwin_arm_neon_state64; +typedef arm_neon_state_t = __darwin_arm_neon_state; +typedef arm_pagein_state_t = __arm_pagein_state; +typedef arm_sme2_state_t = __darwin_arm_sme2_state; +typedef arm_sme_state_t = __darwin_arm_sme_state; +typedef arm_sme_za_state_t = __darwin_arm_sme_za_state; + +final class arm_state_hdr extends ffi.Struct { + @ffi.Uint32() + external int flavor; + + @ffi.Uint32() + external int count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flavor, + required int count, + }) => $allocator() + ..ref.flavor = flavor + ..ref.count = count; +} + +typedef arm_state_hdr_t = arm_state_hdr; +typedef arm_sve_p_state_t = __darwin_arm_sve_p_state; +typedef arm_sve_z_state_t = __darwin_arm_sve_z_state; +typedef arm_thread_state32_t = __darwin_arm_thread_state; +typedef arm_thread_state64_t = __darwin_arm_thread_state64; +typedef arm_thread_state_t = __darwin_arm_thread_state; + +final class arm_unified_thread_state extends ffi.Struct { + external arm_state_hdr_t ash; + + external UnnamedUnion$15 uts; +} + +typedef arm_unified_thread_state_t = arm_unified_thread_state; +typedef arm_vfp_state_t = __darwin_arm_vfp_state; +@Deprecated('Deprecated') +const int asiAliasName = 0; + +@Deprecated('Deprecated') +const int asiParentName = 1; + +@Deprecated('Deprecated') +const int asiServerName = -2; + +@Deprecated('Deprecated') +const int asiVolumeName = -1; + +@Deprecated('Deprecated') +const int asiZoneName = -3; + +const int aspBadVersNum = -1066; + +const int aspBufTooSmall = -1067; + +const int aspNoAck = -1075; + +const int aspNoMoreSess = -1068; + +const int aspNoServers = -1069; + +const int aspParamErr = -1070; + +const int aspServerBusy = -1071; + +const int aspSessClosed = -1072; + +const int aspSizeErr = -1073; + +const int aspTooMany = -1074; + +const int atAbsoluteCenter = 5; + +const int atBottom = 3; + +const int atBottomLeft = 11; + +const int atBottomRight = 15; + +const int atCenterBottom = 7; + +const int atCenterLeft = 9; + +const int atCenterRight = 13; + +const int atCenterTop = 6; + +const int atHorizontalCenter = 4; + +const int atLeft = 8; + +const int atNone = 0; + +const int atRight = 12; + +const int atTop = 2; + +const int atTopLeft = 10; + +const int atTopRight = 14; + +const int atVerticalCenter = 1; + +const int atomIndexInvalidErr = -2104; + +const int atomsNotOfSameTypeErr = -2103; + +const int atpBadRsp = -3107; + +const int atpLenErr = -3106; + +typedef au_asflgs_t = u_int64_t; +typedef au_asid_t = pid_t; +typedef au_class_t = u_int32_t; +typedef au_ctlmode_t = ffi.UnsignedChar; +typedef Dartau_ctlmode_t = int; +typedef au_emod_t = u_int16_t; + +final class au_evclass_map extends ffi.Struct { + @au_event_t() + external int ec_number; + + @au_class_t() + external int ec_class; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ec_number, + required int ec_class, + }) => $allocator() + ..ref.ec_number = ec_number + ..ref.ec_class = ec_class; +} + +typedef au_evclass_map_t = au_evclass_map; +typedef au_event_t = u_int16_t; + +final class au_expire_after extends ffi.Struct { + @time_t() + external int age; + + @ffi.Size() + external int size; + + @ffi.UnsignedChar() + external int op_type; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int age, + required int size, + required int op_type, + }) => $allocator() + ..ref.age = age + ..ref.size = size + ..ref.op_type = op_type; +} + +typedef au_expire_after_t = au_expire_after; +typedef au_fstat_t = audit_fstat; +typedef au_id_t = uid_t; + +final class au_mask extends ffi.Struct { + @ffi.UnsignedInt() + external int am_success; + + @ffi.UnsignedInt() + external int am_failure; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int am_success, + required int am_failure, + }) => $allocator() + ..ref.am_success = am_success + ..ref.am_failure = am_failure; +} + +typedef au_mask_t = au_mask; + +final class au_qctrl extends ffi.Struct { + @ffi.Int() + external int aq_hiwater; + + @ffi.Int() + external int aq_lowater; + + @ffi.Int() + external int aq_bufsz; + + @ffi.Int() + external int aq_delay; + + @ffi.Int() + external int aq_minfree; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int aq_hiwater, + required int aq_lowater, + required int aq_bufsz, + required int aq_delay, + required int aq_minfree, + }) => $allocator() + ..ref.aq_hiwater = aq_hiwater + ..ref.aq_lowater = aq_lowater + ..ref.aq_bufsz = aq_bufsz + ..ref.aq_delay = aq_delay + ..ref.aq_minfree = aq_minfree; +} + +typedef au_qctrl_t = au_qctrl; + +final class au_session extends ffi.Struct { + external ffi.Pointer as_aia_p; + + external au_mask_t as_mask; +} + +typedef au_session_t = au_session; +typedef au_stat_t = audit_stat; + +final class au_tid extends ffi.Struct { + @dev_t() + external int port; + + @u_int32_t() + external int machine; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int port, + required int machine, + }) => $allocator() + ..ref.port = port + ..ref.machine = machine; +} + +final class au_tid_addr extends ffi.Struct { + @dev_t() + external int at_port; + + @u_int32_t() + external int at_type; + + @ffi.Array.multi([4]) + external ffi.Array at_addr; +} + +typedef au_tid_addr_t = au_tid_addr; +typedef au_tid_t = au_tid; + +final class au_token extends ffi.Opaque {} + +final class audit_fstat extends ffi.Struct { + @u_int64_t() + external int af_filesz; + + @u_int64_t() + external int af_currsz; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int af_filesz, + required int af_currsz, + }) => $allocator() + ..ref.af_filesz = af_filesz + ..ref.af_currsz = af_currsz; +} + +enum audit_session_flags { + AU_SESSION_FLAG_IS_INITIAL(1), + AU_SESSION_FLAG_HAS_GRAPHIC_ACCESS(16), + AU_SESSION_FLAG_HAS_TTY(32), + AU_SESSION_FLAG_IS_REMOTE(4096), + AU_SESSION_FLAG_HAS_CONSOLE_ACCESS(8192), + AU_SESSION_FLAG_HAS_AUTHENTICATED(16384); + + final int value; + const audit_session_flags(this.value); + + static audit_session_flags fromValue(int value) => switch (value) { + 1 => AU_SESSION_FLAG_IS_INITIAL, + 16 => AU_SESSION_FLAG_HAS_GRAPHIC_ACCESS, + 32 => AU_SESSION_FLAG_HAS_TTY, + 4096 => AU_SESSION_FLAG_IS_REMOTE, + 8192 => AU_SESSION_FLAG_HAS_CONSOLE_ACCESS, + 16384 => AU_SESSION_FLAG_HAS_AUTHENTICATED, + _ => throw ArgumentError('Unknown value for audit_session_flags: $value'), + }; +} + +final class audit_stat extends ffi.Struct { + @ffi.UnsignedInt() + external int as_version; + + @ffi.UnsignedInt() + external int as_numevent; + + @ffi.Int() + external int as_generated; + + @ffi.Int() + external int as_nonattrib; + + @ffi.Int() + external int as_kernel; + + @ffi.Int() + external int as_audit; + + @ffi.Int() + external int as_auditctl; + + @ffi.Int() + external int as_enqueue; + + @ffi.Int() + external int as_written; + + @ffi.Int() + external int as_wblocked; + + @ffi.Int() + external int as_rblocked; + + @ffi.Int() + external int as_dropped; + + @ffi.Int() + external int as_totalsize; + + @ffi.UnsignedInt() + external int as_memused; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int as_version, + required int as_numevent, + required int as_generated, + required int as_nonattrib, + required int as_kernel, + required int as_audit, + required int as_auditctl, + required int as_enqueue, + required int as_written, + required int as_wblocked, + required int as_rblocked, + required int as_dropped, + required int as_totalsize, + required int as_memused, + }) => $allocator() + ..ref.as_version = as_version + ..ref.as_numevent = as_numevent + ..ref.as_generated = as_generated + ..ref.as_nonattrib = as_nonattrib + ..ref.as_kernel = as_kernel + ..ref.as_audit = as_audit + ..ref.as_auditctl = as_auditctl + ..ref.as_enqueue = as_enqueue + ..ref.as_written = as_written + ..ref.as_wblocked = as_wblocked + ..ref.as_rblocked = as_rblocked + ..ref.as_dropped = as_dropped + ..ref.as_totalsize = as_totalsize + ..ref.as_memused = as_memused; +} + +final class audit_token_t extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array val; +} + +final class auditinfo extends ffi.Struct { + @au_id_t() + external int ai_auid; + + external au_mask_t ai_mask; + + external au_tid_t ai_termid; + + @au_asid_t() + external int ai_asid; +} + +final class auditinfo_addr extends ffi.Struct { + @au_id_t() + external int ai_auid; + + external au_mask_t ai_mask; + + external au_tid_addr_t ai_termid; + + @au_asid_t() + external int ai_asid; + + @au_asflgs_t() + external int ai_flags; +} + +typedef auditinfo_addr_t = auditinfo_addr; +typedef auditinfo_t = auditinfo; + +final class auditpinfo extends ffi.Struct { + @pid_t() + external int ap_pid; + + @au_id_t() + external int ap_auid; + + external au_mask_t ap_mask; + + external au_tid_t ap_termid; + + @au_asid_t() + external int ap_asid; +} + +final class auditpinfo_addr extends ffi.Struct { + @pid_t() + external int ap_pid; + + @au_id_t() + external int ap_auid; + + external au_mask_t ap_mask; + + external au_tid_addr_t ap_termid; + + @au_asid_t() + external int ap_asid; + + @au_asflgs_t() + external int ap_flags; +} + +typedef auditpinfo_addr_t = auditpinfo_addr; +typedef auditpinfo_t = auditpinfo; + +const int authFailErr = -927; + +const int auxiliaryExportDataUnavailable = -2058; + +const int bAccessCntl = 18; + +const int bAllowCDiDataHandler = 17; + +const int bAncestorModDateChanges = 11; + +const int bDoNotDisplay = 24; + +const int bHasBTreeMgr = 5; + +const int bHasBlankAccessPrivileges = 4; + +const int bHasCatSearch = 7; + +const int bHasCopyFile = 14; + +const int bHasDesktopMgr = 12; + +const int bHasDirectIO = 1; + +const int bHasExtFSVol = 16; + +const int bHasFileIDs = 6; + +const int bHasFolderLock = 10; + +const int bHasMoveRename = 13; + +const int bHasOpenDeny = 15; + +const int bHasPersonalAccessPrivileges = 9; + +const int bHasShortName = 11; + +const int bHasUserGroupList = 8; + +const int bIsAutoMounted = 14; + +const int bIsCasePreserving = 23; + +const int bIsCaseSensitive = 22; + +const int bIsEjectable = 0; + +const int bIsOnExternalBus = 27; + +const int bIsOnInternalBus = 21; + +const int bIsRemovable = 25; + +const int bL2PCanMapFileBlocks = 9; + +const int bLimitFCBs = 31; + +const int bLocalWList = 30; + +const int bNoBootBlks = 19; + +const int bNoDeskItems = 20; + +const int bNoLclSync = 27; + +const int bNoMiniFndr = 29; + +const int bNoRootTimes = 26; + +const int bNoSwitchTo = 25; + +const int bNoSysDir = 17; + +const int bNoVNEdit = 28; + +const int bNoVolumeSizes = 20; + +const int bParentModDateChanges = 10; + +const int bSupports2TBFiles = 4; + +const int bSupportsAsyncRequests = 3; + +const int bSupportsExclusiveLocks = 18; + +const int bSupportsExtendedFileSecurity = 28; + +const int bSupportsFSCatalogSearch = 2; + +const int bSupportsFSExchangeObjects = 3; + +const int bSupportsHFSPlusAPIs = 1; + +const int bSupportsJournaling = 19; + +const int bSupportsLongNames = 5; + +const int bSupportsMultiScriptNames = 6; + +const int bSupportsNamedForks = 7; + +const int bSupportsSubtreeIterators = 8; + +const int bSupportsSymbolicLinks = 13; + +const int bSupportsTrashVolumeCache = 2; + +const int bTrshOffLine = 26; + +const int badATPSkt = -1099; + +const int badBtSlpErr = -70; + +const int badBuffNum = -1100; + +const int badCallOrderErr = -2209; + +const int badChannel = -205; + +const int badCksmErr = -69; + +const int badCodecCharacterizationErr = -8993; + +const int badComponentInstance = -2147450879; + +const int badComponentSelector = -2147450878; + +const int badComponentType = -2005; + +const int badControllerHeight = -9994; + +const int badDBtSlp = -73; + +const int badDCksum = -72; + +const int badDataRefIndex = -2050; + +@Deprecated('Deprecated') +const int badDelim = 3; + +const int badDepthErr = -2207; + +const int badDictFormat = -246; + +const int badDragFlavorErr = -1852; + +const int badDragItemErr = -1851; + +const int badDragRefErr = -1850; + +const int badEditIndex = -2033; + +const int badEditList = -2017; + +const int badEditionFileErr = -453; + +@Deprecated('Deprecated') +const int badEnding = 4; + +const int badExtResource = -185; + +const int badFCBErr = -1327; + +const int badFidErr = -1307; + +const int badFileFormat = -208; + +const int badFolderDescErr = -4270; + +const int badFormat = -206; + +const int badImageDescription = -2001; + +const int badImageErr = -1861; + +const int badImageRgnErr = -1860; + +const int badInputText = -247; + +const int badLocNameErr = -931; + +const int badMDBErr = -60; + +const int badMovErr = -122; + +const int badPasteboardFlavorErr = -25133; + +const int badPasteboardIndexErr = -25131; + +const int badPasteboardItemErr = -25132; + +const int badPasteboardSyncErr = -25130; + +const int badPortNameErr = -919; + +const int badProfileError = -4008; + +const int badPublicMovieAtom = -2002; + +const int badReqErr = -909; + +const int badRoutingSizeErr = -4276; + +const int badSGChannel = -9406; + +const int badScrapRefErr = -4990; + +const int badSectionErr = -451; + +const int badServiceMethodErr = -930; + +const int badSubPartErr = -454; + +const int badTrackIndex = -2028; + +const int badTranslationRefErr = -3031; + +const int badTranslationSpecErr = -3031; + +const int badUnitErr = -21; + +@Deprecated('Deprecated') +const int baseDblQuote = 227; + +@Deprecated('Deprecated') +const int baseSingQuote = 226; + +const int bdNamErr = -37; + +typedef bearer_token_callback_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer http, + ffi.Pointer resource, + ffi.Pointer user_data, + ) + > + >; + +const int betaStage = 96; + +typedef blkcnt_t = __darwin_blkcnt_t; +typedef blksize_t = __darwin_blksize_t; + +const int bold = 1; + +typedef boolean_t = ffi.Int; +typedef Dartboolean_t = int; +typedef bootstrap_t = mach_port_t; + +const int breakRecd = -90; + +@Deprecated('Deprecated') +const int breveMark = 249; + +const int btDupRecErr = -414; + +const int btKeyAttrErr = -417; + +const int btKeyLenErr = -416; + +const int btNoSpace = -413; + +const int btRecNotFnd = -415; + +const int buf2SmallErr = -3101; + +const int bufTooSmall = -243; + +const int bufferIsSmall = -607; + +const int buffersTooSmall = -210; + +const int cADBAddress = 1667327074; + +const int cAEList = 1818850164; + +const int cAddressSpec = 1667327090; + +const int cAppleTalkAddress = 1667331104; + +const int cApplication = 1667330160; + +const int cArc = 1667330659; + +const int cBoolean = 1651470188; + +const int cBusAddress = 1667396979; + +const int cCell = 1667458412; + +const int cChar = 1667784992; + +const int cColorTable = 1668051572; + +const int cColumn = 1667460972; + +const int cDepthErr = -157; + +const int cDevErr = -155; + +const int cDevSpec = 1667523958; + +const int cDocument = 1685021557; + +const int cDrawingArea = 1667527287; + +const int cEnumeration = 1701737837; + +const int cEthernetAddress = 1667591712; + +const int cFTPItem = 1718906912; + +const int cFile = 1718185061; + +const int cFireWireAddress = 1667659552; + +const int cFixed = 1718188132; + +const int cFixedPoint = 1718644340; + +const int cFixedRectangle = 1718772596; + +const int cGraphicLine = 1735158126; + +const int cGraphicObject = 1667723106; + +const int cGraphicShape = 1667724136; + +const int cGraphicText = 1667724408; + +const int cGroupedGraphic = 1668311395; + +const int cHTML = 1752460652; + +const int cIPAddress = 1667854368; + +const int cInsertionLoc = 1768846188; + +const int cInsertionPoint = 1667853939; + +const int cInternetAddress = 1229996356; + +const int cIntlText = 1769240692; + +const int cIntlWritingCode = 1768846444; + +const int cItem = 1667855469; + +const int cKeystroke = 1802531443; + +const int cLine = 1668049262; + +const int cLocalTalkAddress = 1668052000; + +const int cLongDateTime = 1818522656; + +const int cLongFixed = 1818654820; + +const int cLongFixedPoint = 1818652788; + +const int cLongFixedRectangle = 1818653283; + +const int cLongInteger = 1819242087; + +const int cLongPoint = 1819307636; + +const int cLongRectangle = 1819435892; + +const int cMachineLoc = 1833725795; + +const int cMatchErr = -150; + +const int cMenu = 1668116085; + +const int cMenuItem = 1668113774; + +const int cNoMemErr = -152; + +const int cObject = 1668244074; + +const int cObjectSpecifier = 1868720672; + +const int cOpenableObject = 1668247394; + +const int cOval = 1668249196; + +const int cPICT = 1346978644; + +const int cParagraph = 1668309362; + +const int cPixel = 1668315244; + +const int cPixelMap = 1668311416; + +const int cPolygon = 1668310894; + +const int cProperty = 1886547824; + +const int cProtectErr = -154; + +const int cQDPoint = 1363439732; + +const int cQDRectangle = 1902408308; + +const int cRGBColor = 1666336578; + +const int cRangeErr = -153; + +const int cRectangle = 1668441443; + +const int cResErr = -156; + +const int cRotation = 1953656692; + +const int cRoundedRectangle = 1668444771; + +const int cRow = 1668444023; + +const int cSCSIAddress = 1668506483; + +const int cSelection = 1668506988; + +const int cShortInteger = 1936224114; + +const int cTable = 1668571756; + +const int cTempMemErr = -151; + +const int cText = 1668577396; + +const int cTextFlow = 1667656815; + +const int cTextStyles = 1953723513; + +const int cTokenRingAddress = 1668575083; + +const int cType = 1954115685; + +const int cURL = 1970433056; + +const int cUSBAddress = 1668641634; + +const int cVersion = 1986359923; + +const int cWindow = 1668770158; + +const int cWord = 1668771698; + +typedef caddr_t = ffi.Pointer; +@Deprecated('Deprecated') +const int calArabicCivil = 1; + +@Deprecated('Deprecated') +const int calArabicLunar = 2; + +@Deprecated('Deprecated') +const int calCoptic = 5; + +@Deprecated('Deprecated') +const int calGregorian = 0; + +@Deprecated('Deprecated') +const int calJapanese = 3; + +@Deprecated('Deprecated') +const int calJewish = 4; + +@Deprecated('Deprecated') +const int calPersian = 6; + +const int callNotSupportedByNodeErr = -30542; + +const int callerSecuritySession = -1; + +const int cannotBeLeafAtomErr = -2109; + +const int cannotDeferErr = -625; + +const int cannotFindAtomErr = -2101; + +const int cannotMakeContiguousErr = -622; + +const int cannotMoveAttachedController = -9999; + +const int cannotSetWidthOfAttachedController = -9997; + +const int cantCreatePickerWindow = -4004; + +const int cantCreateSingleForkFile = -2022; + +const int cantDoThatInCurrentMode = -9402; + +const int cantEnableTrack = -2035; + +const int cantFindHandler = -2003; + +const int cantGetFlavorErr = -1854; + +const int cantLoadPackage = -4005; + +const int cantLoadPickMethodErr = -11003; + +const int cantLoadPicker = -4003; + +const int cantOpenHandler = -2004; + +const int cantPutPublicMovieAtom = -2016; + +const int cantReadUtilities = 33280; + +const int cantReceiveFromSynthesizerOSErr = -2073; + +const int cantSendToSynthesizerOSErr = -2072; + +const int cantStepErr = -75; + +const int catChangedErr = -1304; + +const int cbNotFound = -1102; + +typedef ccntTokenRecHandle = ffi.Pointer; +typedef ccntTokenRecPtr = ffi.Pointer; + +@ffi.Packed(2) +final class ccntTokenRecord extends ffi.Struct { + @DescType() + external int tokenClass; + + external objc.AEDesc token; +} + +const int cdevGenErr = -1; + +const int cdevMemErr = 0; + +const int cdevResErr = 1; + +const int cdevUnset = 3; + +@Deprecated('Deprecated') +const int cedilla = 252; + +@Deprecated('Deprecated') +const int centeredDot = 225; + +const int century = 128; + +const int cfragAbortClosureErr = -2830; + +const int cfragArchitectureErr = -2823; + +const int cfragCFMInternalErr = -2819; + +const int cfragCFMStartupErr = -2818; + +const int cfragCFragRsrcErr = -2857; + +const int cfragClosureIDErr = -2829; + +const int cfragConnectionIDErr = -2801; + +const int cfragContainerIDErr = -2828; + +const int cfragContextIDErr = -2800; + +const int cfragDupRegistrationErr = -2805; + +const int cfragExecFileRefErr = -2854; + +const int cfragFileSizeErr = -2825; + +const int cfragFirstErrCode = -2800; + +const int cfragFirstReservedCode = -2897; + +const int cfragFragmentCorruptErr = -2820; + +const int cfragFragmentFormatErr = -2806; + +const int cfragFragmentUsageErr = -2824; + +const int cfragImportTooNewErr = -2814; + +const int cfragImportTooOldErr = -2813; + +const int cfragInitAtBootErr = -2816; + +const int cfragInitFunctionErr = -2821; + +const int cfragInitLoopErr = -2815; + +const int cfragInitOrderErr = -2812; + +const int cfragLastErrCode = -2899; + +const int cfragLibConnErr = -2817; + +const int cfragMapFileErr = -2851; + +const int cfragNoApplicationErr = -2822; + +const int cfragNoClientMemErr = -2810; + +const int cfragNoIDsErr = -2811; + +const int cfragNoLibraryErr = -2804; + +const int cfragNoPositionErr = -2808; + +const int cfragNoPrivateMemErr = -2809; + +const int cfragNoRegistrationErr = -2827; + +const int cfragNoSectionErr = -2803; + +const int cfragNoSymbolErr = -2802; + +const int cfragNotClosureErr = -2826; + +const int cfragOutputLengthErr = -2831; + +const int cfragReservedCode_1 = -2899; + +const int cfragReservedCode_2 = -2898; + +const int cfragReservedCode_3 = -2897; + +const int cfragRsrcForkErr = -2856; + +const int cfragStdFolderErr = -2855; + +const int cfragUnresolvedErr = -2807; + +const int channelBusy = -209; + +const int channelNotBusy = -211; + +@Deprecated('Deprecated') +const int circumflex = 246; + +@Deprecated('Deprecated') +const int circumflexUprA = 229; + +@Deprecated('Deprecated') +const int circumflexUprE = 230; + +@Deprecated('Deprecated') +const int circumflexUprI = 235; + +@Deprecated('Deprecated') +const int circumflexUprO = 239; + +@Deprecated('Deprecated') +const int circumflexUprU = 243; + +const int ckSumErr = -3103; + +typedef cl_device_id = ffi.Pointer<_cl_device_id>; + +const int clearDev = 13; + +const int clkRdErr = -85; + +const int clkWrErr = -86; + +typedef clock_attr_t = ffi.Pointer; +typedef clock_ctrl_port_t = clock_ctrl_t; +typedef clock_ctrl_t = mach_port_t; +typedef clock_flavor_t = ffi.Int; +typedef Dartclock_flavor_t = int; +typedef clock_id_t = ffi.Int; +typedef Dartclock_id_t = int; +typedef clock_reply_t = mach_port_t; +typedef clock_res_t = ffi.Int; +typedef Dartclock_res_t = int; +typedef clock_serv_port_t = clock_serv_t; +typedef clock_serv_t = mach_port_t; +typedef clock_t = __darwin_clock_t; + +enum clockid_t { + _CLOCK_REALTIME(0), + _CLOCK_MONOTONIC(6), + _CLOCK_MONOTONIC_RAW(4), + _CLOCK_MONOTONIC_RAW_APPROX(5), + _CLOCK_UPTIME_RAW(8), + _CLOCK_UPTIME_RAW_APPROX(9), + _CLOCK_PROCESS_CPUTIME_ID(12), + _CLOCK_THREAD_CPUTIME_ID(16); + + final int value; + const clockid_t(this.value); + + static clockid_t fromValue(int value) => switch (value) { + 0 => _CLOCK_REALTIME, + 6 => _CLOCK_MONOTONIC, + 4 => _CLOCK_MONOTONIC_RAW, + 5 => _CLOCK_MONOTONIC_RAW_APPROX, + 8 => _CLOCK_UPTIME_RAW, + 9 => _CLOCK_UPTIME_RAW_APPROX, + 12 => _CLOCK_PROCESS_CPUTIME_ID, + 16 => _CLOCK_THREAD_CPUTIME_ID, + _ => throw ArgumentError('Unknown value for clockid_t: $value'), + }; +} + +final class clockinfo extends ffi.Struct { + @ffi.Int() + external int hz; + + @ffi.Int() + external int tick; + + @ffi.Int() + external int tickadj; + + @ffi.Int() + external int stathz; + + @ffi.Int() + external int profhz; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int hz, + required int tick, + required int tickadj, + required int stathz, + required int profhz, + }) => $allocator() + ..ref.hz = hz + ..ref.tick = tick + ..ref.tickadj = tickadj + ..ref.stathz = stathz + ..ref.profhz = profhz; +} + +const int closErr = -24; + +const int closeDev = 2; + +const int cm10CLRData = 1094929490; + +const int cm11CLRData = 1111706706; + +const int cm12CLRData = 1128483922; + +const int cm13CLRData = 1145261138; + +const int cm14CLRData = 1162038354; + +const int cm15CLRData = 1178815570; + +const int cm16_8ColorPacking = 8192; + +const int cm24_8ColorPacking = 8448; + +const int cm32_16ColorPacking = 9728; + +const int cm32_32ColorPacking = 9984; + +const int cm32_8ColorPacking = 2048; + +const int cm3CLRData = 860048466; + +const int cm40_8ColorPacking = 8704; + +const int cm48_16ColorPacking = 10496; + +const int cm48_8ColorPacking = 8960; + +const int cm4CLRData = 876825682; + +const int cm56_8ColorPacking = 9216; + +const int cm5CLRData = 893602898; + +const int cm64_16ColorPacking = 10752; + +const int cm64_8ColorPacking = 9472; + +const int cm6CLRData = 910380114; + +const int cm7CLRData = 927157330; + +const int cm8CLRData = 943934546; + +const int cm8_8ColorPacking = 10240; + +const int cm9CLRData = 960711762; + +const int cmARGB32PmulSpace = 6337; + +const int cmARGB32Space = 6273; + +const int cmARGB64LPmulSpace = 31425; + +const int cmARGB64LSpace = 31361; + +const int cmARGB64PmulSpace = 15041; + +const int cmARGB64Space = 14977; + +const int cmAToB0Tag = 1093812784; + +const int cmAToB1Tag = 1093812785; + +const int cmAToB2Tag = 1093812786; + +const int cmAbortWriteAccess = 7; + +const int cmAbsoluteColorimetric = 3; + +const int cmAbstractClass = 1633842036; + +const int cmAlphaFirstPacking = 4096; + +const int cmAlphaLastPacking = 0; + +const int cmAlphaPmulSpace = 64; + +const int cmAlphaSpace = 128; + +const int cmAsciiData = 0; + +const int cmBToA0Tag = 1110589744; + +const int cmBToA1Tag = 1110589745; + +const int cmBToA2Tag = 1110589746; + +const int cmBeginAccess = 8; + +const int cmBestMode = 2; + +const int cmBinaryData = 1; + +const int cmBlackPointCompensation = 1; + +const int cmBlackPointCompensationMask = 4; + +const int cmBlueColorantTag = 1649957210; + +const int cmBlueTRCTag = 1649693251; + +const int cmBradfordChromaticAdaptation = 3; + +const int cmBufferBasedProfile = 6; + +const int cmCMSReservedFlagsMask = -65536; + +const int cmCMYData = 1129142560; + +const int cmCMYK32Space = 2050; + +const int cmCMYK64LSpace = 27138; + +const int cmCMYK64Space = 10754; + +const int cmCMYKData = 1129142603; + +const int cmCMYKSpace = 2; + +const int cmCS1ChromTag = 1667789421; + +const int cmCS1CustTag = 1668641652; + +const int cmCS1NameTag = 1851878757; + +const int cmCS1ProfileVersion = 256; + +const int cmCS1TRCTag = 1953653536; + +const int cmCS2ProfileVersion = 33554432; + +const int cmCalibrationDateTimeTag = 1667329140; + +const int cmCameraDeviceClass = 1668117089; + +const int cmCantConcatenateError = -178; + +const int cmCantCopyModifiedV1Profile = -4215; + +const int cmCantDeleteElement = -4202; + +const int cmCantDeleteProfile = -180; + +const int cmCantGamutCheckError = -4217; + +const int cmCantXYZ = -179; + +const int cmCharTargetTag = 1952543335; + +const int cmChromaticAdaptationTag = 1667785060; + +const int cmCloseAccess = 5; + +const int cmCloseSpool = 5; + +const int cmColorSpaceAlphaMask = 128; + +const int cmColorSpaceClass = 1936744803; + +const int cmColorSpaceEncodingMask = 983040; + +const int cmColorSpacePackingMask = 65280; + +const int cmColorSpacePremulAlphaMask = 64; + +const int cmColorSpaceReservedMask = -1048576; + +const int cmColorSpaceSpaceAndAlphaMask = 255; + +const int cmColorSpaceSpaceMask = 63; + +const int cmCopyrightTag = 1668313716; + +const int cmCreateNewAccess = 6; + +const int cmCurrentDeviceInfoVersion = 65536; + +const int cmCurrentProfileInfoVersion = 65536; + +const int cmCurrentProfileLocationSize = 1032; + +const int cmCurrentProfileMajorVersion = 33554432; + +const int cmDefaultDeviceID = 0; + +const int cmDefaultProfileID = 0; + +const int cmDeviceAlreadyRegistered = -4228; + +const int cmDeviceDBNotFoundErr = -4227; + +const int cmDeviceInfoVersion1 = 65536; + +const int cmDeviceMfgDescTag = 1684893284; + +const int cmDeviceModelDescTag = 1684890724; + +const int cmDeviceNotRegistered = -4229; + +const int cmDeviceProfileInfoVersion1 = 65536; + +const int cmDeviceProfileInfoVersion2 = 131072; + +const int cmDeviceProfilesNotFound = -4230; + +const int cmDeviceStateAppleRsvdBits = -16711681; + +const int cmDeviceStateBusy = 2; + +const int cmDeviceStateDefault = 0; + +const int cmDeviceStateDeviceRsvdBits = 16711680; + +const int cmDeviceStateForceNotify = -2147483648; + +const int cmDeviceStateOffline = 1; + +const int cmDisplayClass = 1835955314; + +const int cmDisplayDeviceClass = 1835955314; + +const int cmDisplayUse = 1685089401; + +const int cmDraftMode = 1; + +const int cmElementTagNotFound = -4200; + +const int cmEmbeddedMask = 1; + +const int cmEmbeddedProfile = 0; + +const int cmEmbeddedUse = 1; + +const int cmEmbeddedUseMask = 2; + +const int cmEndAccess = 9; + +const int cmErrIncompatibleProfile = -4208; + +const int cmFatalProfileErr = -4203; + +const int cmFlare0 = 0; + +const int cmFlare100 = 1; + +const int cmGamutCheckingMask = 524288; + +const int cmGamutResult1Space = 2828; + +const int cmGamutResultSpace = 12; + +const int cmGamutTag = 1734438260; + +const int cmGeometry045or450 = 1; + +const int cmGeometry0dord0 = 2; + +const int cmGeometryUnknown = 0; + +const int cmGlossy = 1; + +const int cmGlossyMatteMask = 2; + +const int cmGray16LSpace = 16394; + +const int cmGray16Space = 10; + +const int cmGray8Space = 10250; + +const int cmGrayA16PmulSpace = 8394; + +const int cmGrayA16Space = 8330; + +const int cmGrayA32LPmulSpace = 16586; + +const int cmGrayA32LSpace = 16522; + +const int cmGrayA32PmulSpace = 202; + +const int cmGrayA32Space = 138; + +const int cmGrayAPmulSpace = 202; + +const int cmGrayASpace = 138; + +const int cmGrayData = 1196573017; + +const int cmGraySpace = 10; + +const int cmGrayTRCTag = 1800688195; + +const int cmGreenColorantTag = 1733843290; + +const int cmGreenTRCTag = 1733579331; + +const int cmHLS32Space = 2564; + +const int cmHLSData = 1212961568; + +const int cmHLSSpace = 4; + +const int cmHSV32Space = 2563; + +const int cmHSVData = 1213421088; + +const int cmHSVSpace = 3; + +const int cmICCProfileVersion2 = 33554432; + +const int cmICCProfileVersion21 = 34603008; + +const int cmICCProfileVersion4 = 67108864; + +const int cmICCReservedFlagsMask = 65535; + +const int cmIlluminantA = 6; + +const int cmIlluminantD50 = 1; + +const int cmIlluminantD55 = 5; + +const int cmIlluminantD65 = 2; + +const int cmIlluminantD93 = 3; + +const int cmIlluminantEquiPower = 7; + +const int cmIlluminantF2 = 4; + +const int cmIlluminantF8 = 8; + +const int cmIlluminantUnknown = 0; + +const int cmIndexRangeErr = -4201; + +const int cmInputClass = 1935896178; + +const int cmInputUse = 1768845428; + +const int cmInternalCFErr = -4231; + +const int cmInterpolationMask = 262144; + +const int cmInvalidColorSpace = -4209; + +const int cmInvalidDstMap = -4211; + +const int cmInvalidProfile = -4204; + +const int cmInvalidProfileComment = -4213; + +const int cmInvalidProfileLocation = -4205; + +const int cmInvalidSearch = -4206; + +const int cmInvalidSrcMap = -4210; + +const int cmIterateAllDeviceProfiles = 4; + +const int cmIterateCurrentDeviceProfiles = 3; + +const int cmIterateCustomDeviceProfiles = 2; + +const int cmIterateDeviceProfilesMask = 15; + +const int cmIterateFactoryDeviceProfiles = 1; + +const int cmLAB24Space = 8456; + +const int cmLAB32Space = 2568; + +const int cmLAB48LSpace = 26888; + +const int cmLAB48Space = 10504; + +const int cmLABSpace = 8; + +const int cmLUV32Space = 2567; + +const int cmLUVSpace = 7; + +const int cmLabData = 1281450528; + +const int cmLinearChromaticAdaptation = 1; + +const int cmLinesPer = 1; + +const int cmLinkClass = 1818848875; + +const int cmLittleEndianPacking = 16384; + +const int cmLong10ColorPacking = 2560; + +const int cmLong8ColorPacking = 2048; + +const int cmLuminanceTag = 1819635049; + +const int cmLuvData = 1282766368; + +const int cmMCEight8Space = 9492; + +const int cmMCEightSpace = 20; + +const int cmMCFive8Space = 8721; + +const int cmMCFiveSpace = 17; + +const int cmMCH5Data = 1296255029; + +const int cmMCH6Data = 1296255030; + +const int cmMCH7Data = 1296255031; + +const int cmMCH8Data = 1296255032; + +const int cmMCSeven8Space = 9235; + +const int cmMCSevenSpace = 19; + +const int cmMCSix8Space = 8978; + +const int cmMCSixSpace = 18; + +const int cmMacintosh = 1095782476; + +const int cmMagicNumber = 1633907568; + +const int cmMakeAndModelTag = 1835888484; + +const int cmMeasurementTag = 1835360627; + +const int cmMediaBlackPointTag = 1651208308; + +const int cmMediaWhitePointTag = 2004119668; + +const int cmMethodError = -171; + +const int cmMethodNotFound = -175; + +const int cmMicrosoft = 1297303124; + +const int cmNamedColor2Tag = 1852009522; + +const int cmNamedColorClass = 1852662636; + +const int cmNamedColorNotFound = -4216; + +const int cmNamedColorTag = 1852010348; + +const int cmNamedData = 1312902469; + +const int cmNamedIndexed32LSpace = 26384; + +const int cmNamedIndexed32Space = 10000; + +const int cmNamedIndexedSpace = 16; + +const int cmNativeDisplayInfoTag = 1852074350; + +const int cmNoColorPacking = 0; + +const int cmNoCurrentProfile = -182; + +const int cmNoGDevicesError = -4212; + +const int cmNoProfileBase = 0; + +const int cmNoSpace = 0; + +const int cmNormalMode = 0; + +const int cmNumHeaderElements = 10; + +const int cmOneBitDirectPacking = 2816; + +const int cmOpenReadAccess = 1; + +const int cmOpenReadSpool = 1; + +const int cmOpenWriteAccess = 2; + +const int cmOpenWriteSpool = 2; + +const int cmOriginalProfileLocationSize = 72; + +const int cmOutputClass = 1886549106; + +const int cmOutputUse = 1869968496; + +const int cmPS2CRD0Tag = 1886610480; + +const int cmPS2CRD1Tag = 1886610481; + +const int cmPS2CRD2Tag = 1886610482; + +const int cmPS2CRD3Tag = 1886610483; + +const int cmPS2CRDVMSizeTag = 1886615149; + +const int cmPS2CSATag = 1886597747; + +const int cmPS2RenderingIntentTag = 1886597737; + +const int cmPS7bit = 1; + +const int cmPS8bit = 2; + +const int cmParametricType0 = 0; + +const int cmParametricType1 = 1; + +const int cmParametricType2 = 2; + +const int cmParametricType3 = 3; + +const int cmParametricType4 = 4; + +const int cmPathBasedProfile = 5; + +const int cmPerceptual = 0; + +const int cmPrefsSynchError = -4232; + +const int cmPreview0Tag = 1886545200; + +const int cmPreview1Tag = 1886545201; + +const int cmPreview2Tag = 1886545202; + +const int cmPrinterDeviceClass = 1886549106; + +const int cmProfileDescriptionMLTag = 1685283693; + +const int cmProfileDescriptionTag = 1684370275; + +const int cmProfileError = -170; + +const int cmProfileIterateDataVersion1 = 65536; + +const int cmProfileIterateDataVersion2 = 131072; + +const int cmProfileIterateDataVersion3 = 196608; + +const int cmProfileIterateDataVersion4 = 262144; + +const int cmProfileMajorVersionMask = -16777216; + +const int cmProfileNotFound = -176; + +const int cmProfileSequenceDescTag = 1886610801; + +const int cmProfilesIdentical = -177; + +const int cmProofDeviceClass = 1886549350; + +const int cmProofUse = 1886549350; + +const int cmPrtrDefaultScreens = 0; + +const int cmQualityMask = 196608; + +const int cmRGB16LSpace = 17665; + +const int cmRGB16Space = 1281; + +const int cmRGB24Space = 8449; + +const int cmRGB32Space = 2049; + +const int cmRGB48LSpace = 26881; + +const int cmRGB48Space = 10497; + +const int cmRGB565LSpace = 17921; + +const int cmRGB565Space = 1537; + +const int cmRGBA32PmulSpace = 2241; + +const int cmRGBA32Space = 2177; + +const int cmRGBA64LPmulSpace = 27329; + +const int cmRGBA64LSpace = 27265; + +const int cmRGBA64PmulSpace = 10945; + +const int cmRGBA64Space = 10881; + +const int cmRGBAPmulSpace = 193; + +const int cmRGBASpace = 129; + +const int cmRGBData = 1380401696; + +const int cmRGBSpace = 1; + +const int cmRangeOverFlow = -4214; + +const int cmReadAccess = 3; + +const int cmReadSpool = 3; + +const int cmRedColorantTag = 1918392666; + +const int cmRedTRCTag = 1918128707; + +const int cmReflective = 0; + +const int cmReflectiveTransparentMask = 1; + +const int cmRelativeColorimetric = 1; + +const int cmReservedSpace1 = 9; + +const int cmReservedSpace2 = 11; + +const int cmReverseChannelPacking = 32768; + +const int cmSRGB16ChannelEncoding = 65536; + +const int cmSRGBData = 1934772034; + +const int cmSaturation = 2; + +const int cmScannerDeviceClass = 1935896178; + +const int cmScreeningDescTag = 1935897188; + +const int cmScreeningTag = 1935897198; + +const int cmSearchError = -4207; + +const int cmSigCrdInfoType = 1668441193; + +const int cmSigCurveType = 1668641398; + +const int cmSigDataType = 1684108385; + +const int cmSigDateTimeType = 1685350765; + +const int cmSigLut16Type = 1835430962; + +const int cmSigLut8Type = 1835430961; + +const int cmSigMakeAndModelType = 1835888484; + +const int cmSigMeasurementType = 1835360627; + +const int cmSigMultiFunctA2BType = 1832993312; + +const int cmSigMultiFunctB2AType = 1833058592; + +const int cmSigMultiLocalizedUniCodeType = 1835824483; + +const int cmSigNamedColor2Type = 1852009522; + +const int cmSigNamedColorType = 1852010348; + +const int cmSigNativeDisplayInfoType = 1852074350; + +const int cmSigPS2CRDVMSizeType = 1886615149; + +const int cmSigParametricCurveType = 1885434465; + +const int cmSigProfileDescriptionType = 1684370275; + +const int cmSigProfileSequenceDescType = 1886610801; + +const int cmSigS15Fixed16Type = 1936077618; + +const int cmSigScreeningType = 1935897198; + +const int cmSigSignatureType = 1936287520; + +const int cmSigTextType = 1952807028; + +const int cmSigU16Fixed16Type = 1969632050; + +const int cmSigU1Fixed15Type = 1969631542; + +const int cmSigUInt16Type = 1969828150; + +const int cmSigUInt32Type = 1969828658; + +const int cmSigUInt64Type = 1969829428; + +const int cmSigUInt8Type = 1969827896; + +const int cmSigUcrBgType = 1650877472; + +const int cmSigUnicodeTextType = 1970567284; + +const int cmSigVideoCardGammaType = 1986226036; + +const int cmSigViewingConditionsType = 1986618743; + +const int cmSigXYZType = 1482250784; + +const int cmSiliconGraphics = 1397180704; + +const int cmSolaris = 1398099543; + +const int cmSpotFunctionCross = 7; + +const int cmSpotFunctionDefault = 1; + +const int cmSpotFunctionDiamond = 3; + +const int cmSpotFunctionEllipse = 4; + +const int cmSpotFunctionLine = 5; + +const int cmSpotFunctionRound = 2; + +const int cmSpotFunctionSquare = 6; + +const int cmSpotFunctionUnknown = 0; + +const int cmStdobs1931TwoDegrees = 1; + +const int cmStdobs1964TenDegrees = 2; + +const int cmStdobsUnknown = 0; + +const int cmTaligent = 1413959252; + +const int cmTechnologyAMDisplay = 1095582752; + +const int cmTechnologyCRTDisplay = 1129468960; + +const int cmTechnologyDigitalCamera = 1684234605; + +const int cmTechnologyDyeSublimationPrinter = 1685288290; + +const int cmTechnologyElectrophotographicPrinter = 1701865583; + +const int cmTechnologyElectrostaticPrinter = 1702065249; + +const int cmTechnologyFilmScanner = 1718838126; + +const int cmTechnologyFilmWriter = 1718645358; + +const int cmTechnologyFlexography = 1718379896; + +const int cmTechnologyGravure = 1735549302; + +const int cmTechnologyInkJetPrinter = 1768580468; + +const int cmTechnologyOffsetLithography = 1868981875; + +const int cmTechnologyPMDisplay = 1347240992; + +const int cmTechnologyPhotoCD = 1263551300; + +const int cmTechnologyPhotoImageSetter = 1768777587; + +const int cmTechnologyPhotographicPaperPrinter = 1919969391; + +const int cmTechnologyProjectionTelevision = 1886024822; + +const int cmTechnologyReflectiveScanner = 1920164718; + +const int cmTechnologySilkscreen = 1936288875; + +const int cmTechnologyTag = 1952801640; + +const int cmTechnologyThermalWaxPrinter = 1953980792; + +const int cmTechnologyVideoCamera = 1986618467; + +const int cmTechnologyVideoMonitor = 1986618477; + +const int cmUcrBgTag = 1650877472; + +const int cmUnsupportedDataType = -181; + +const int cmUseDefaultChromaticAdaptation = 0; + +const int cmVideoCardGammaFormulaType = 1; + +const int cmVideoCardGammaTableType = 0; + +const int cmVideoCardGammaTag = 1986226036; + +const int cmViewingConditionsDescTag = 1987405156; + +const int cmViewingConditionsTag = 1986618743; + +const int cmVonKriesChromaticAdaptation = 2; + +const int cmWord565ColorPacking = 1536; + +const int cmWord5ColorPacking = 1280; + +const int cmWriteAccess = 4; + +const int cmWriteSpool = 4; + +const int cmXYZ24Space = 8454; + +const int cmXYZ32Space = 2566; + +const int cmXYZ48LSpace = 26886; + +const int cmXYZ48Space = 10502; + +const int cmXYZData = 1482250784; + +const int cmXYZSpace = 6; + +const int cmYCbCrData = 1497588338; + +const int cmYXY32Space = 2565; + +const int cmYXYSpace = 5; + +const int cmYxyData = 1501067552; + +const int cmapFontTableTag = 1668112752; + +@Deprecated('Deprecated') +const int cmpAliasNoFlags = 0; + +@Deprecated('Deprecated') +const int cmpAliasOnlyThisFile = 1; + +@Deprecated('Deprecated') +const int cmpIsMissing = 536870912; + +@Deprecated('Deprecated') +const int cmpThreadSafe = 268435456; + +@Deprecated('Deprecated') +const int cmpWantsRegisterMessage = -2147483648; + +final class cmsghdr extends ffi.Struct { + @socklen_t() + external int cmsg_len; + + @ffi.Int() + external int cmsg_level; + + @ffi.Int() + external int cmsg_type; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cmsg_len, + required int cmsg_level, + required int cmsg_type, + }) => $allocator() + ..ref.cmsg_len = cmsg_len + ..ref.cmsg_level = cmsg_level + ..ref.cmsg_type = cmsg_type; +} + +typedef coalition_t = mach_port_t; + +const int codecAbortErr = -8967; + +const int codecBadDataErr = -8969; + +const int codecCantQueueErr = -8975; + +const int codecCantWhenErr = -8974; + +const int codecConditionErr = -8972; + +const int codecDataVersErr = -8970; + +const int codecDisabledErr = -8978; + +const int codecDroppedFrameErr = -8989; + +const int codecErr = -8960; + +const int codecExtensionNotFoundErr = -8971; + +const int codecImageBufErr = -8965; + +const int codecNeedAccessKeyErr = -8987; + +const int codecNeedToFlushChainErr = -8979; + +const int codecNoMemoryPleaseWaitErr = -8977; + +const int codecNothingToBlitErr = -8976; + +const int codecOffscreenFailedErr = -8988; + +const int codecOffscreenFailedPleaseRetryErr = -8992; + +const int codecOpenErr = -8973; + +const int codecParameterDialogConfirm = -8986; + +const int codecScreenBufErr = -8964; + +const int codecSizeErr = -8963; + +const int codecSpoolErr = -8966; + +const int codecUnimpErr = -8962; + +const int codecWouldOffscreenErr = -8968; + +const int collectionIndexRangeErr = -5752; + +const int collectionItemLockedErr = -5750; + +const int collectionItemNotFoundErr = -5751; + +const int collectionVersionErr = -5753; + +const int colorSyncNotInstalled = -4007; + +const int colorsRequestedErr = -11004; + +@Deprecated('Deprecated') +const int componentAutoVersionIncludeFlags = 4; + +const int componentDllEntryNotFoundErr = -2092; + +const int componentDllLoadErr = -2091; + +@Deprecated('Deprecated') +const int componentDoAutoVersion = 1; + +const int componentDontRegister = -3003; + +@Deprecated('Deprecated') +const int componentHasMultiplePlatforms = 8; + +@Deprecated('Deprecated') +const int componentLoadResident = 16; + +const int componentNotCaptured = -3002; + +const int componentNotThreadSafeErr = -2098; + +@Deprecated('Deprecated') +const int componentWantsUnregister = 2; + +const int condense = 32; + +const int connectionInvalid = -609; + +const int constraintReachedErr = -30541; + +const int containerAlreadyOpenWrn = -462; + +const int containerNotFoundWrn = -461; + +const int controlErr = -17; + +const int controlHandleInvalidErr = -30599; + +const int controlInvalidDataVersionErr = -30597; + +const int controlPanelFolderIconResource = -3976; + +const int controlPropertyInvalid = -5603; + +const int controlPropertyNotFoundErr = -5604; + +const int controllerBoundsNotExact = -9996; + +const int controllerHasFixedHeight = -9998; + +const int copyDev = 11; + +const int corErr = -3; + +const int coreFoundationUnknownErr = -4960; + +const int couldNotParseSourceFileErr = -3026; + +const int couldNotResolveDataRef = -2000; + +const int couldNotUseAnExistingSample = -2052; + +const int couldntGetRequiredComponent = -9405; + +typedef cpu_subtype_t = integer_t; +typedef cpu_threadtype_t = integer_t; +typedef cpu_type_t = integer_t; +@Deprecated('Deprecated') +const int crash = 5; + +@Deprecated('Deprecated') +final class cssm_access_credentials extends ffi.Struct { + @ffi.Array.multi([68]) + external ffi.Array EntryTag; + + external CSSM_BASE_CERTS BaseCerts; + + external CSSM_SAMPLEGROUP Samples; + + external CSSM_CHALLENGE_CALLBACK Callback; + + external ffi.Pointer CallerCtx; +} + +@Deprecated('Deprecated') +final class cssm_acl_edit extends ffi.Struct { + @CSSM_ACL_EDIT_MODE() + external int EditMode; + + @CSSM_ACL_HANDLE() + external int OldEntryHandle; + + external ffi.Pointer NewEntry; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int EditMode, + required int OldEntryHandle, + required ffi.Pointer NewEntry, + }) => $allocator() + ..ref.EditMode = EditMode + ..ref.OldEntryHandle = OldEntryHandle + ..ref.NewEntry = NewEntry; +} + +@Deprecated('Deprecated') +final class cssm_acl_entry_info extends ffi.Struct { + external CSSM_ACL_ENTRY_PROTOTYPE EntryPublicInfo; + + @CSSM_ACL_HANDLE() + external int EntryHandle; +} + +@Deprecated('Deprecated') +final class cssm_acl_entry_input extends ffi.Struct { + external CSSM_ACL_ENTRY_PROTOTYPE Prototype; + + external CSSM_ACL_SUBJECT_CALLBACK Callback; + + external ffi.Pointer CallerContext; +} + +@Deprecated('Deprecated') +final class cssm_acl_entry_prototype extends ffi.Struct { + external CSSM_LIST TypedSubject; + + @CSSM_BOOL() + external int Delegate; + + external CSSM_AUTHORIZATIONGROUP Authorization; + + external CSSM_ACL_VALIDITY_PERIOD TimeRange; + + @ffi.Array.multi([68]) + external ffi.Array EntryTag; +} + +final class cssm_acl_keychain_prompt_selector extends ffi.Struct { + @uint16() + external int version; + + @uint16() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int flags, + }) => $allocator() + ..ref.version = version + ..ref.flags = flags; +} + +@Deprecated('Deprecated') +final class cssm_acl_owner_prototype extends ffi.Struct { + external CSSM_LIST TypedSubject; + + @CSSM_BOOL() + external int Delegate; +} + +final class cssm_acl_process_subject_selector extends ffi.Struct { + @uint16() + external int version; + + @uint16() + external int mask; + + @uint32() + external int uid; + + @uint32() + external int gid; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int mask, + required int uid, + required int gid, + }) => $allocator() + ..ref.version = version + ..ref.mask = mask + ..ref.uid = uid + ..ref.gid = gid; +} + +@Deprecated('Deprecated') +final class cssm_acl_validity_period extends ffi.Struct { + external SecAsn1Item StartDate; + + external SecAsn1Item EndDate; +} + +final class cssm_applecspdl_db_change_password_parameters extends ffi.Struct { + external ffi.Pointer accessCredentials; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer accessCredentials, + }) => + $allocator() + ..ref.accessCredentials = accessCredentials; +} + +final class cssm_applecspdl_db_is_locked_parameters extends ffi.Struct { + @uint8() + external int isLocked; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int isLocked, + }) => + $allocator() + ..ref.isLocked = isLocked; +} + +final class cssm_applecspdl_db_settings_parameters extends ffi.Struct { + @uint32() + external int idleTimeout; + + @uint8() + external int lockOnSleep; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int idleTimeout, + required int lockOnSleep, + }) => $allocator() + ..ref.idleTimeout = idleTimeout + ..ref.lockOnSleep = lockOnSleep; +} + +final class cssm_appledl_open_parameters extends ffi.Struct { + @uint32() + external int length; + + @uint32() + external int version; + + @CSSM_BOOL() + external int autoCommit; + + @uint32() + external int mask; + + @mode_t() + external int mode; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int length, + required int version, + required int autoCommit, + required int mask, + required int mode, + }) => $allocator() + ..ref.length = length + ..ref.version = version + ..ref.autoCommit = autoCommit + ..ref.mask = mask + ..ref.mode = mode; +} + +enum cssm_appledl_open_parameters_mask { + kCSSM_APPLEDL_MASK_MODE(1); + + final int value; + const cssm_appledl_open_parameters_mask(this.value); + + static cssm_appledl_open_parameters_mask fromValue(int value) => + switch (value) { + 1 => kCSSM_APPLEDL_MASK_MODE, + _ => throw ArgumentError( + 'Unknown value for cssm_appledl_open_parameters_mask: $value', + ), + }; +} + +final class cssm_authorizationgroup extends ffi.Struct { + @uint32() + external int NumberOfAuthTags; + + external ffi.Pointer AuthTags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfAuthTags, + required ffi.Pointer AuthTags, + }) => $allocator() + ..ref.NumberOfAuthTags = NumberOfAuthTags + ..ref.AuthTags = AuthTags; +} + +@Deprecated('Deprecated') +final class cssm_base_certs extends ffi.Struct { + @CSSM_TP_HANDLE() + external int TPHandle; + + @CSSM_CL_HANDLE() + external int CLHandle; + + external CSSM_CERTGROUP Certs; +} + +@Deprecated('Deprecated') +final class cssm_cert_bundle extends ffi.Struct { + external CSSM_CERT_BUNDLE_HEADER BundleHeader; + + external SecAsn1Item Bundle; +} + +@Deprecated('Deprecated') +final class cssm_cert_bundle_header extends ffi.Struct { + @CSSM_CERT_BUNDLE_TYPE() + external int BundleType; + + @CSSM_CERT_BUNDLE_ENCODING() + external int BundleEncoding; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int BundleType, + required int BundleEncoding, + }) => $allocator() + ..ref.BundleType = BundleType + ..ref.BundleEncoding = BundleEncoding; +} + +@Deprecated('Deprecated') +final class cssm_cert_pair extends ffi.Struct { + external CSSM_ENCODED_CERT EncodedCert; + + external CSSM_PARSED_CERT ParsedCert; +} + +@Deprecated('Deprecated') +final class cssm_certgroup extends ffi.Struct { + @CSSM_CERT_TYPE() + external int CertType; + + @CSSM_CERT_ENCODING() + external int CertEncoding; + + @uint32() + external int NumCerts; + + external UnnamedUnion$1 GroupList; + + @CSSM_CERTGROUP_TYPE() + external int CertGroupType; + + external ffi.Pointer Reserved; +} + +@Deprecated('Deprecated') +final class cssm_context extends ffi.Struct { + @CSSM_CONTEXT_TYPE() + external int ContextType; + + @CSSM_ALGORITHMS() + external int AlgorithmType; + + @uint32() + external int NumberOfAttributes; + + external CSSM_CONTEXT_ATTRIBUTE_PTR ContextAttributes; + + @CSSM_CSP_HANDLE() + external int CSPHandle; + + @CSSM_BOOL() + external int Privileged; + + @uint32() + external int EncryptionProhibited; + + @uint32() + external int WorkFactor; + + @uint32() + external int Reserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ContextType, + required int AlgorithmType, + required int NumberOfAttributes, + required CSSM_CONTEXT_ATTRIBUTE_PTR ContextAttributes, + required int CSPHandle, + required int Privileged, + required int EncryptionProhibited, + required int WorkFactor, + required int Reserved, + }) => $allocator() + ..ref.ContextType = ContextType + ..ref.AlgorithmType = AlgorithmType + ..ref.NumberOfAttributes = NumberOfAttributes + ..ref.ContextAttributes = ContextAttributes + ..ref.CSPHandle = CSPHandle + ..ref.Privileged = Privileged + ..ref.EncryptionProhibited = EncryptionProhibited + ..ref.WorkFactor = WorkFactor + ..ref.Reserved = Reserved; +} + +@Deprecated('Deprecated') +final class cssm_context_attribute extends ffi.Struct { + @CSSM_ATTRIBUTE_TYPE() + external int AttributeType; + + @uint32() + external int AttributeLength; + + external cssm_context_attribute_value Attribute; +} + +@Deprecated('Deprecated') +final class cssm_context_attribute_value extends ffi.Union { + external ffi.Pointer String; + + @uint32() + external int Uint32; + + external CSSM_ACCESS_CREDENTIALS_PTR AccessCredentials; + + external CSSM_KEY_PTR Key; + + external CSSM_DATA_PTR Data; + + @CSSM_PADDING() + external int Padding; + + external CSSM_DATE_PTR Date; + + external CSSM_RANGE_PTR Range; + + external CSSM_CRYPTO_DATA_PTR CryptoData; + + external CSSM_VERSION_PTR Version; + + external CSSM_DL_DB_HANDLE_PTR DLDBHandle; + + external ffi.Pointer KRProfile; +} + +@Deprecated('Deprecated') +final class cssm_crl_pair extends ffi.Struct { + external CSSM_ENCODED_CRL EncodedCrl; + + external CSSM_PARSED_CRL ParsedCrl; +} + +@Deprecated('Deprecated') +final class cssm_crlgroup extends ffi.Struct { + @CSSM_CRL_TYPE() + external int CrlType; + + @CSSM_CRL_ENCODING() + external int CrlEncoding; + + @uint32() + external int NumberOfCrls; + + external UnnamedUnion$2 GroupCrlList; + + @CSSM_CRLGROUP_TYPE() + external int CrlGroupType; +} + +@Deprecated('Deprecated') +final class cssm_crypto_data extends ffi.Struct { + external SecAsn1Item Param; + + external CSSM_CALLBACK Callback; + + external ffi.Pointer CallerCtx; +} + +final class cssm_csp_operational_statistics extends ffi.Struct { + @CSSM_BOOL() + external int UserAuthenticated; + + @CSSM_CSP_FLAGS() + external int DeviceFlags; + + @uint32() + external int TokenMaxSessionCount; + + @uint32() + external int TokenOpenedSessionCount; + + @uint32() + external int TokenMaxRWSessionCount; + + @uint32() + external int TokenOpenedRWSessionCount; + + @uint32() + external int TokenTotalPublicMem; + + @uint32() + external int TokenFreePublicMem; + + @uint32() + external int TokenTotalPrivateMem; + + @uint32() + external int TokenFreePrivateMem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int UserAuthenticated, + required int DeviceFlags, + required int TokenMaxSessionCount, + required int TokenOpenedSessionCount, + required int TokenMaxRWSessionCount, + required int TokenOpenedRWSessionCount, + required int TokenTotalPublicMem, + required int TokenFreePublicMem, + required int TokenTotalPrivateMem, + required int TokenFreePrivateMem, + }) => $allocator() + ..ref.UserAuthenticated = UserAuthenticated + ..ref.DeviceFlags = DeviceFlags + ..ref.TokenMaxSessionCount = TokenMaxSessionCount + ..ref.TokenOpenedSessionCount = TokenOpenedSessionCount + ..ref.TokenMaxRWSessionCount = TokenMaxRWSessionCount + ..ref.TokenOpenedRWSessionCount = TokenOpenedRWSessionCount + ..ref.TokenTotalPublicMem = TokenTotalPublicMem + ..ref.TokenFreePublicMem = TokenFreePublicMem + ..ref.TokenTotalPrivateMem = TokenTotalPrivateMem + ..ref.TokenFreePrivateMem = TokenFreePrivateMem; +} + +final class cssm_data extends ffi.Struct { + @ffi.Size() + external int Length; + + external ffi.Pointer Data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Length, + required ffi.Pointer Data, + }) => $allocator() + ..ref.Length = Length + ..ref.Data = Data; +} + +final class cssm_date extends ffi.Struct { + @ffi.Array.multi([4]) + external ffi.Array Year; + + @ffi.Array.multi([2]) + external ffi.Array Month; + + @ffi.Array.multi([2]) + external ffi.Array Day; +} + +@Deprecated('Deprecated') +final class cssm_db_attribute_data extends ffi.Struct { + external CSSM_DB_ATTRIBUTE_INFO Info; + + @uint32() + external int NumberOfValues; + + external CSSM_DATA_PTR Value; +} + +@Deprecated('Deprecated') +final class cssm_db_attribute_info extends ffi.Struct { + @CSSM_DB_ATTRIBUTE_NAME_FORMAT() + external int AttributeNameFormat; + + external cssm_db_attribute_label Label; + + @CSSM_DB_ATTRIBUTE_FORMAT() + external int AttributeFormat; +} + +@Deprecated('Deprecated') +final class cssm_db_attribute_label extends ffi.Union { + external ffi.Pointer AttributeName; + + external SecAsn1Oid AttributeOID; + + @uint32() + external int AttributeID; +} + +@Deprecated('Deprecated') +final class cssm_db_index_info extends ffi.Struct { + @CSSM_DB_INDEX_TYPE() + external int IndexType; + + @CSSM_DB_INDEXED_DATA_LOCATION() + external int IndexedDataLocation; + + external CSSM_DB_ATTRIBUTE_INFO Info; +} + +@Deprecated('Deprecated') +final class cssm_db_parsing_module_info extends ffi.Struct { + @CSSM_DB_RECORDTYPE() + external int RecordType; + + external CSSM_SUBSERVICE_UID ModuleSubserviceUid; +} + +@Deprecated('Deprecated') +final class cssm_db_record_attribute_data extends ffi.Struct { + @CSSM_DB_RECORDTYPE() + external int DataRecordType; + + @uint32() + external int SemanticInformation; + + @uint32() + external int NumberOfAttributes; + + external CSSM_DB_ATTRIBUTE_DATA_PTR AttributeData; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int DataRecordType, + required int SemanticInformation, + required int NumberOfAttributes, + required CSSM_DB_ATTRIBUTE_DATA_PTR AttributeData, + }) => $allocator() + ..ref.DataRecordType = DataRecordType + ..ref.SemanticInformation = SemanticInformation + ..ref.NumberOfAttributes = NumberOfAttributes + ..ref.AttributeData = AttributeData; +} + +@Deprecated('Deprecated') +final class cssm_db_record_attribute_info extends ffi.Struct { + @CSSM_DB_RECORDTYPE() + external int DataRecordType; + + @uint32() + external int NumberOfAttributes; + + external CSSM_DB_ATTRIBUTE_INFO_PTR AttributeInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int DataRecordType, + required int NumberOfAttributes, + required CSSM_DB_ATTRIBUTE_INFO_PTR AttributeInfo, + }) => $allocator() + ..ref.DataRecordType = DataRecordType + ..ref.NumberOfAttributes = NumberOfAttributes + ..ref.AttributeInfo = AttributeInfo; +} + +@Deprecated('Deprecated') +final class cssm_db_record_index_info extends ffi.Struct { + @CSSM_DB_RECORDTYPE() + external int DataRecordType; + + @uint32() + external int NumberOfIndexes; + + external CSSM_DB_INDEX_INFO_PTR IndexInfo; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int DataRecordType, + required int NumberOfIndexes, + required CSSM_DB_INDEX_INFO_PTR IndexInfo, + }) => $allocator() + ..ref.DataRecordType = DataRecordType + ..ref.NumberOfIndexes = NumberOfIndexes + ..ref.IndexInfo = IndexInfo; +} + +@Deprecated('Deprecated') +final class cssm_db_schema_attribute_info extends ffi.Struct { + @uint32() + external int AttributeId; + + external ffi.Pointer AttributeName; + + external SecAsn1Oid AttributeNameID; + + @CSSM_DB_ATTRIBUTE_FORMAT() + external int DataType; +} + +final class cssm_db_schema_index_info extends ffi.Struct { + @uint32() + external int AttributeId; + + @uint32() + external int IndexId; + + @CSSM_DB_INDEX_TYPE() + external int IndexType; + + @CSSM_DB_INDEXED_DATA_LOCATION() + external int IndexedDataLocation; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int AttributeId, + required int IndexId, + required int IndexType, + required int IndexedDataLocation, + }) => $allocator() + ..ref.AttributeId = AttributeId + ..ref.IndexId = IndexId + ..ref.IndexType = IndexType + ..ref.IndexedDataLocation = IndexedDataLocation; +} + +@Deprecated('Deprecated') +final class cssm_db_unique_record extends ffi.Struct { + external CSSM_DB_INDEX_INFO RecordLocator; + + external SecAsn1Item RecordIdentifier; +} + +@Deprecated('Deprecated') +final class cssm_dbinfo extends ffi.Struct { + @uint32() + external int NumberOfRecordTypes; + + external CSSM_DB_PARSING_MODULE_INFO_PTR DefaultParsingModules; + + external CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR RecordAttributeNames; + + external CSSM_DB_RECORD_INDEX_INFO_PTR RecordIndexes; + + @CSSM_BOOL() + external int IsLocal; + + external ffi.Pointer AccessPath; + + external ffi.Pointer Reserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfRecordTypes, + required CSSM_DB_PARSING_MODULE_INFO_PTR DefaultParsingModules, + required CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR RecordAttributeNames, + required CSSM_DB_RECORD_INDEX_INFO_PTR RecordIndexes, + required int IsLocal, + required ffi.Pointer AccessPath, + required ffi.Pointer Reserved, + }) => $allocator() + ..ref.NumberOfRecordTypes = NumberOfRecordTypes + ..ref.DefaultParsingModules = DefaultParsingModules + ..ref.RecordAttributeNames = RecordAttributeNames + ..ref.RecordIndexes = RecordIndexes + ..ref.IsLocal = IsLocal + ..ref.AccessPath = AccessPath + ..ref.Reserved = Reserved; +} + +final class cssm_dl_db_handle extends ffi.Struct { + @CSSM_DL_HANDLE() + external int DLHandle; + + @CSSM_DB_HANDLE() + external int DBHandle; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int DLHandle, + required int DBHandle, + }) => $allocator() + ..ref.DLHandle = DLHandle + ..ref.DBHandle = DBHandle; +} + +@Deprecated('Deprecated') +final class cssm_dl_db_list extends ffi.Struct { + @uint32() + external int NumHandles; + + external CSSM_DL_DB_HANDLE_PTR DLDBHandle; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumHandles, + required CSSM_DL_DB_HANDLE_PTR DLDBHandle, + }) => $allocator() + ..ref.NumHandles = NumHandles + ..ref.DLDBHandle = DLDBHandle; +} + +final class cssm_dl_pkcs11_attributes extends ffi.Struct { + @uint32() + external int DeviceAccessFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int DeviceAccessFlags, + }) => + $allocator() + ..ref.DeviceAccessFlags = DeviceAccessFlags; +} + +@Deprecated('Deprecated') +final class cssm_encoded_cert extends ffi.Struct { + @CSSM_CERT_TYPE() + external int CertType; + + @CSSM_CERT_ENCODING() + external int CertEncoding; + + external SecAsn1Item CertBlob; +} + +@Deprecated('Deprecated') +final class cssm_encoded_crl extends ffi.Struct { + @CSSM_CRL_TYPE() + external int CrlType; + + @CSSM_CRL_ENCODING() + external int CrlEncoding; + + external SecAsn1Item CrlBlob; +} + +@Deprecated('Deprecated') +final class cssm_evidence extends ffi.Struct { + @CSSM_EVIDENCE_FORM() + external int EvidenceForm; + + external ffi.Pointer Evidence; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int EvidenceForm, + required ffi.Pointer Evidence, + }) => $allocator() + ..ref.EvidenceForm = EvidenceForm + ..ref.Evidence = Evidence; +} + +@Deprecated('Deprecated') +final class cssm_field extends ffi.Struct { + external SecAsn1Oid FieldOid; + + external SecAsn1Item FieldValue; +} + +@Deprecated('Deprecated') +final class cssm_fieldgroup extends ffi.Struct { + @ffi.Int() + external int NumberOfFields; + + external CSSM_FIELD_PTR Fields; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfFields, + required CSSM_FIELD_PTR Fields, + }) => $allocator() + ..ref.NumberOfFields = NumberOfFields + ..ref.Fields = Fields; +} + +final class cssm_func_name_addr extends ffi.Struct { + @ffi.Array.multi([68]) + external ffi.Array Name; + + external CSSM_PROC_ADDR Address; +} + +final class cssm_guid extends ffi.Struct { + @uint32() + external int Data1; + + @uint16() + external int Data2; + + @uint16() + external int Data3; + + @ffi.Array.multi([8]) + external ffi.Array Data4; +} + +@Deprecated('Deprecated') +final class cssm_kea_derive_params extends ffi.Struct { + external SecAsn1Item Rb; + + external SecAsn1Item Yb; +} + +@Deprecated('Deprecated') +final class cssm_key extends ffi.Struct { + external CSSM_KEYHEADER KeyHeader; + + external SecAsn1Item KeyData; +} + +final class cssm_key_size extends ffi.Struct { + @uint32() + external int LogicalKeySizeInBits; + + @uint32() + external int EffectiveKeySizeInBits; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int LogicalKeySizeInBits, + required int EffectiveKeySizeInBits, + }) => $allocator() + ..ref.LogicalKeySizeInBits = LogicalKeySizeInBits + ..ref.EffectiveKeySizeInBits = EffectiveKeySizeInBits; +} + +@Deprecated('Deprecated') +final class cssm_keyheader extends ffi.Struct { + @CSSM_HEADERVERSION() + external int HeaderVersion; + + external CSSM_GUID CspId; + + @CSSM_KEYBLOB_TYPE() + external int BlobType; + + @CSSM_KEYBLOB_FORMAT() + external int Format; + + @CSSM_ALGORITHMS() + external int AlgorithmId; + + @CSSM_KEYCLASS() + external int KeyClass; + + @uint32() + external int LogicalKeySizeInBits; + + @CSSM_KEYATTR_FLAGS() + external int KeyAttr; + + @CSSM_KEYUSE() + external int KeyUsage; + + external CSSM_DATE StartDate; + + external CSSM_DATE EndDate; + + @CSSM_ALGORITHMS() + external int WrapAlgorithmId; + + @CSSM_ENCRYPT_MODE() + external int WrapMode; + + @uint32() + external int Reserved; +} + +final class cssm_kr_name extends ffi.Struct { + @uint8() + external int Type; + + @uint8() + external int Length; + + external ffi.Pointer Name; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Type, + required int Length, + required ffi.Pointer Name, + }) => $allocator() + ..ref.Type = Type + ..ref.Length = Length + ..ref.Name = Name; +} + +@Deprecated('Deprecated') +final class cssm_kr_policy_info extends ffi.Struct { + @CSSM_BOOL() + external int krbNotAllowed; + + @uint32() + external int numberOfEntries; + + external ffi.Pointer policyEntry; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int krbNotAllowed, + required int numberOfEntries, + required ffi.Pointer policyEntry, + }) => $allocator() + ..ref.krbNotAllowed = krbNotAllowed + ..ref.numberOfEntries = numberOfEntries + ..ref.policyEntry = policyEntry; +} + +@Deprecated('Deprecated') +final class cssm_kr_policy_list_item extends ffi.Struct { + external ffi.Pointer next; + + @CSSM_ALGORITHMS() + external int AlgorithmId; + + @CSSM_ENCRYPT_MODE() + external int Mode; + + @uint32() + external int MaxKeyLength; + + @uint32() + external int MaxRounds; + + @uint8() + external int WorkFactor; + + @CSSM_KR_POLICY_FLAGS() + external int PolicyFlags; + + @CSSM_CONTEXT_TYPE() + external int AlgClass; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer next, + required int AlgorithmId, + required int Mode, + required int MaxKeyLength, + required int MaxRounds, + required int WorkFactor, + required int PolicyFlags, + required int AlgClass, + }) => $allocator() + ..ref.next = next + ..ref.AlgorithmId = AlgorithmId + ..ref.Mode = Mode + ..ref.MaxKeyLength = MaxKeyLength + ..ref.MaxRounds = MaxRounds + ..ref.WorkFactor = WorkFactor + ..ref.PolicyFlags = PolicyFlags + ..ref.AlgClass = AlgClass; +} + +@Deprecated('Deprecated') +final class cssm_kr_profile extends ffi.Struct { + external CSSM_KR_NAME UserName; + + external CSSM_CERTGROUP_PTR UserCertificate; + + external CSSM_CERTGROUP_PTR KRSCertChain; + + @uint8() + external int LE_KRANum; + + external CSSM_CERTGROUP_PTR LE_KRACertChainList; + + @uint8() + external int ENT_KRANum; + + external CSSM_CERTGROUP_PTR ENT_KRACertChainList; + + @uint8() + external int INDIV_KRANum; + + external CSSM_CERTGROUP_PTR INDIV_KRACertChainList; + + external CSSM_DATA_PTR INDIV_AuthenticationInfo; + + @uint32() + external int KRSPFlags; + + external CSSM_DATA_PTR KRSPExtensions; +} + +@Deprecated('Deprecated') +final class cssm_kr_wrappedproductinfo extends ffi.Struct { + external CSSM_VERSION StandardVersion; + + @ffi.Array.multi([68]) + external ffi.Array StandardDescription; + + external CSSM_VERSION ProductVersion; + + @ffi.Array.multi([68]) + external ffi.Array ProductDescription; + + @ffi.Array.multi([68]) + external ffi.Array ProductVendor; + + @uint32() + external int ProductFlags; +} + +@Deprecated('Deprecated') +final class cssm_krsubservice extends ffi.Struct { + @uint32() + external int SubServiceId; + + external ffi.Pointer Description; + + external CSSM_KR_WRAPPEDPRODUCT_INFO WrappedProduct; +} + +final class cssm_list extends ffi.Struct { + @CSSM_LIST_TYPE() + external int ListType; + + external CSSM_LIST_ELEMENT_PTR Head; + + external CSSM_LIST_ELEMENT_PTR Tail; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ListType, + required CSSM_LIST_ELEMENT_PTR Head, + required CSSM_LIST_ELEMENT_PTR Tail, + }) => $allocator() + ..ref.ListType = ListType + ..ref.Head = Head + ..ref.Tail = Tail; +} + +@Deprecated('Deprecated') +final class cssm_list_element extends ffi.Struct { + external ffi.Pointer NextElement; + + @CSSM_WORDID_TYPE() + external int WordID; + + @CSSM_LIST_ELEMENT_TYPE() + external int ElementType; + + external UnnamedUnion Element; +} + +@Deprecated('Deprecated') +final class cssm_manager_event_notification extends ffi.Struct { + @CSSM_SERVICE_MASK() + external int DestinationModuleManagerType; + + @CSSM_SERVICE_MASK() + external int SourceModuleManagerType; + + @CSSM_MANAGER_EVENT_TYPES() + external int Event; + + @uint32() + external int EventId; + + external SecAsn1Item EventData; +} + +@Deprecated('Deprecated') +final class cssm_manager_registration_info extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction + > + Initialize; + + external ffi.Pointer> Terminate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_STATE_FUNCS_PTR CssmStateCallTable) + > + > + RegisterDispatchTable; + + external ffi.Pointer> + DeregisterDispatchTable; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer EventDescription, + ) + > + > + EventNotifyManager; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_FUNC_NAME_ADDR_PTR FuncNameAddrPtr, + uint32 NumOfFuncNameAddr, + ) + > + > + RefreshFunctionTable; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction + > + Initialize, + required ffi.Pointer> Terminate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_STATE_FUNCS_PTR CssmStateCallTable) + > + > + RegisterDispatchTable, + required ffi.Pointer> + DeregisterDispatchTable, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer EventDescription, + ) + > + > + EventNotifyManager, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_FUNC_NAME_ADDR_PTR FuncNameAddrPtr, + uint32 NumOfFuncNameAddr, + ) + > + > + RefreshFunctionTable, + }) => $allocator() + ..ref.Initialize = Initialize + ..ref.Terminate = Terminate + ..ref.RegisterDispatchTable = RegisterDispatchTable + ..ref.DeregisterDispatchTable = DeregisterDispatchTable + ..ref.EventNotifyManager = EventNotifyManager + ..ref.RefreshFunctionTable = RefreshFunctionTable; +} + +final class cssm_memory_funcs extends ffi.Struct { + external CSSM_MALLOC malloc_func; + + external CSSM_FREE free_func; + + external CSSM_REALLOC realloc_func; + + external CSSM_CALLOC calloc_func; + + external ffi.Pointer AllocRef; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CSSM_MALLOC malloc_func, + required CSSM_FREE free_func, + required CSSM_REALLOC realloc_func, + required CSSM_CALLOC calloc_func, + required ffi.Pointer AllocRef, + }) => $allocator() + ..ref.malloc_func = malloc_func + ..ref.free_func = free_func + ..ref.realloc_func = realloc_func + ..ref.calloc_func = calloc_func + ..ref.AllocRef = AllocRef; +} + +@Deprecated('Deprecated') +final class cssm_module_funcs extends ffi.Struct { + @CSSM_SERVICE_TYPE() + external int ServiceType; + + @uint32() + external int NumberOfServiceFuncs; + + external ffi.Pointer ServiceFuncs; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ServiceType, + required int NumberOfServiceFuncs, + required ffi.Pointer ServiceFuncs, + }) => $allocator() + ..ref.ServiceType = ServiceType + ..ref.NumberOfServiceFuncs = NumberOfServiceFuncs + ..ref.ServiceFuncs = ServiceFuncs; +} + +final class cssm_name_list extends ffi.Struct { + @uint32() + external int NumStrings; + + external ffi.Pointer> String; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumStrings, + required ffi.Pointer> String, + }) => $allocator() + ..ref.NumStrings = NumStrings + ..ref.String = String; +} + +@Deprecated('Deprecated') +final class cssm_net_address extends ffi.Struct { + @CSSM_NET_ADDRESS_TYPE() + external int AddressType; + + external SecAsn1Item Address; +} + +final class cssm_parsed_cert extends ffi.Struct { + @CSSM_CERT_TYPE() + external int CertType; + + @CSSM_CERT_PARSE_FORMAT() + external int ParsedCertFormat; + + external ffi.Pointer ParsedCert; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CertType, + required int ParsedCertFormat, + required ffi.Pointer ParsedCert, + }) => $allocator() + ..ref.CertType = CertType + ..ref.ParsedCertFormat = ParsedCertFormat + ..ref.ParsedCert = ParsedCert; +} + +final class cssm_parsed_crl extends ffi.Struct { + @CSSM_CRL_TYPE() + external int CrlType; + + @CSSM_CRL_PARSE_FORMAT() + external int ParsedCrlFormat; + + external ffi.Pointer ParsedCrl; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CrlType, + required int ParsedCrlFormat, + required ffi.Pointer ParsedCrl, + }) => $allocator() + ..ref.CrlType = CrlType + ..ref.ParsedCrlFormat = ParsedCrlFormat + ..ref.ParsedCrl = ParsedCrl; +} + +@Deprecated('Deprecated') +final class cssm_pkcs1_oaep_params extends ffi.Struct { + @uint32() + external int HashAlgorithm; + + external SecAsn1Item HashParams; + + @CSSM_PKCS_OAEP_MGF() + external int MGF; + + external SecAsn1Item MGFParams; + + @CSSM_PKCS_OAEP_PSOURCE() + external int PSource; + + external SecAsn1Item PSourceParams; +} + +@Deprecated('Deprecated') +final class cssm_pkcs5_pbkdf1_params extends ffi.Struct { + external SecAsn1Item Passphrase; + + external SecAsn1Item InitVector; +} + +@Deprecated('Deprecated') +final class cssm_pkcs5_pbkdf2_params extends ffi.Struct { + external SecAsn1Item Passphrase; + + @CSSM_PKCS5_PBKDF2_PRF() + external int PseudoRandomFunction; +} + +@Deprecated('Deprecated') +final class cssm_query extends ffi.Struct { + @CSSM_DB_RECORDTYPE() + external int RecordType; + + @CSSM_DB_CONJUNCTIVE() + external int Conjunctive; + + @uint32() + external int NumSelectionPredicates; + + external CSSM_SELECTION_PREDICATE_PTR SelectionPredicate; + + external CSSM_QUERY_LIMITS QueryLimits; + + @CSSM_QUERY_FLAGS() + external int QueryFlags; +} + +@Deprecated('Deprecated') +final class cssm_query_limits extends ffi.Struct { + @uint32() + external int TimeLimit; + + @uint32() + external int SizeLimit; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int TimeLimit, + required int SizeLimit, + }) => $allocator() + ..ref.TimeLimit = TimeLimit + ..ref.SizeLimit = SizeLimit; +} + +final class cssm_query_size_data extends ffi.Struct { + @uint32() + external int SizeInputBlock; + + @uint32() + external int SizeOutputBlock; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int SizeInputBlock, + required int SizeOutputBlock, + }) => $allocator() + ..ref.SizeInputBlock = SizeInputBlock + ..ref.SizeOutputBlock = SizeOutputBlock; +} + +final class cssm_range extends ffi.Struct { + @uint32() + external int Min; + + @uint32() + external int Max; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Min, + required int Max, + }) => $allocator() + ..ref.Min = Min + ..ref.Max = Max; +} + +@Deprecated('Deprecated') +final class cssm_resource_control_context extends ffi.Struct { + external CSSM_ACCESS_CREDENTIALS_PTR AccessCred; + + external CSSM_ACL_ENTRY_INPUT InitialAclEntry; +} + +@Deprecated('Deprecated') +final class cssm_sample extends ffi.Struct { + external CSSM_LIST TypedSample; + + external ffi.Pointer Verifier; +} + +@Deprecated('Deprecated') +final class cssm_samplegroup extends ffi.Struct { + @uint32() + external int NumberOfSamples; + + external ffi.Pointer Samples; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfSamples, + required ffi.Pointer Samples, + }) => $allocator() + ..ref.NumberOfSamples = NumberOfSamples + ..ref.Samples = Samples; +} + +@Deprecated('Deprecated') +final class cssm_selection_predicate extends ffi.Struct { + @CSSM_DB_OPERATOR() + external int DbOperator; + + external CSSM_DB_ATTRIBUTE_DATA Attribute; +} + +@Deprecated('Deprecated') +final class cssm_spi_ac_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_AC_HANDLE ACHandle, + ffi.Pointer BaseAuthorizations, + ffi.Pointer Credentials, + uint32 NumberOfRequestors, + ffi.Pointer Requestors, + ffi.Pointer RequestedAuthorizationPeriod, + ffi.Pointer RequestedAuthorization, + CSSM_TUPLEGROUP_PTR AuthorizationResult, + ) + > + > + AuthCompute; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_AC_HANDLE ACHandle, + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DBList, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_AC_HANDLE ACHandle, + ffi.Pointer BaseAuthorizations, + ffi.Pointer Credentials, + uint32 NumberOfRequestors, + ffi.Pointer Requestors, + ffi.Pointer RequestedAuthorizationPeriod, + ffi.Pointer RequestedAuthorization, + CSSM_TUPLEGROUP_PTR AuthorizationResult, + ) + > + > + AuthCompute, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_AC_HANDLE ACHandle, + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DBList, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough, + }) => $allocator() + ..ref.AuthCompute = AuthCompute + ..ref.PassThrough = PassThrough; +} + +@Deprecated('Deprecated') +final class cssm_spi_cl_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, + ) + > + > + CertCreateTemplate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllTemplateFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertTemplate, + ffi.Pointer SignScope, + uint32 ScopeSize, + CSSM_DATA_PTR SignedCert, + ) + > + > + CertSign; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + uint32 ScopeSize, + ) + > + > + CertVerify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertToBeVerified, + ) + > + > + CertVerifyWithKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CertGetFirstFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CertGetNextFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) + > + > + CertAbortQuery; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer Key, + ) + > + > + CertGetKeyInfo; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer FieldArray, + ) + > + > + FreeFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertOrCrlOid, + CSSM_DATA_PTR Value, + ) + > + > + FreeFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + CSSM_HANDLE_PTR CertHandle, + ) + > + > + CertCache; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CertHandle, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CertGetFirstCachedFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CertGetNextCachedFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CertHandle) + > + > + CertAbortCache; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertGroupToBundle, + ffi.Pointer BundleInfo, + CSSM_DATA_PTR SignedBundle, + ) + > + > + CertGroupToSignedBundle; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertBundle, + ffi.Pointer SignerCert, + ffi.Pointer CertGroup, + ) + > + > + CertGroupFromVerifiedBundle; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, + ) + > + > + CertDescribeFormat; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlTemplate, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlCreateTemplate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlTemplate, + ffi.Pointer OldCrl, + CSSM_DATA_PTR ModifiedCrl, + ) + > + > + CrlSetFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Cert, + uint32 NumberOfFields, + ffi.Pointer CrlEntryFields, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlAddCert; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlRemoveCert; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer UnsignedCrl, + ffi.Pointer SignScope, + uint32 ScopeSize, + CSSM_DATA_PTR SignedCrl, + ) + > + > + CrlSign; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + uint32 ScopeSize, + ) + > + > + CrlVerify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeVerified, + ) + > + > + CrlVerifyWithKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer Crl, + ffi.Pointer CertFound, + ) + > + > + IsCertInCrl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CrlGetFirstFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CrlGetNextFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) + > + > + CrlAbortQuery; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + ffi.Pointer NumberOfCrlFields, + ffi.Pointer CrlFields, + ) + > + > + CrlGetAllFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + CSSM_HANDLE_PTR CrlHandle, + ) + > + > + CrlCache; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + CSSM_HANDLE CrlHandle, + ffi.Pointer CertFound, + CSSM_DATA_PTR CrlRecordIndex, + ) + > + > + IsCertInCachedCrl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CrlGetFirstCachedFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CrlGetNextCachedFieldValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer NumberOfFields, + ffi.Pointer CrlFields, + ) + > + > + CrlGetAllCachedRecordFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CrlHandle) + > + > + CrlAbortCache; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, + ) + > + > + CrlDescribeFormat; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, + ) + > + > + CertCreateTemplate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllTemplateFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertTemplate, + ffi.Pointer SignScope, + uint32 ScopeSize, + CSSM_DATA_PTR SignedCert, + ) + > + > + CertSign, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + uint32 ScopeSize, + ) + > + > + CertVerify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertToBeVerified, + ) + > + > + CertVerifyWithKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CertGetFirstFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CertGetNextFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) + > + > + CertAbortQuery, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer Key, + ) + > + > + CertGetKeyInfo, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer FieldArray, + ) + > + > + FreeFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertOrCrlOid, + CSSM_DATA_PTR Value, + ) + > + > + FreeFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + CSSM_HANDLE_PTR CertHandle, + ) + > + > + CertCache, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CertHandle, + ffi.Pointer CertField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CertGetFirstCachedFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CertGetNextCachedFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CertHandle) + > + > + CertAbortCache, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertGroupToBundle, + ffi.Pointer BundleInfo, + CSSM_DATA_PTR SignedBundle, + ) + > + > + CertGroupToSignedBundle, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertBundle, + ffi.Pointer SignerCert, + ffi.Pointer CertGroup, + ) + > + > + CertGroupFromVerifiedBundle, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, + ) + > + > + CertDescribeFormat, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlTemplate, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlCreateTemplate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlTemplate, + ffi.Pointer OldCrl, + CSSM_DATA_PTR ModifiedCrl, + ) + > + > + CrlSetFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Cert, + uint32 NumberOfFields, + ffi.Pointer CrlEntryFields, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlAddCert, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer OldCrl, + CSSM_DATA_PTR NewCrl, + ) + > + > + CrlRemoveCert, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer UnsignedCrl, + ffi.Pointer SignScope, + uint32 ScopeSize, + CSSM_DATA_PTR SignedCrl, + ) + > + > + CrlSign, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCert, + ffi.Pointer VerifyScope, + uint32 ScopeSize, + ) + > + > + CrlVerify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeVerified, + ) + > + > + CrlVerifyWithKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + ffi.Pointer Crl, + ffi.Pointer CertFound, + ) + > + > + IsCertInCrl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CrlGetFirstFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CrlGetNextFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) + > + > + CrlAbortQuery, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + ffi.Pointer NumberOfCrlFields, + ffi.Pointer CrlFields, + ) + > + > + CrlGetAllFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Crl, + CSSM_HANDLE_PTR CrlHandle, + ) + > + > + CrlCache, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer Cert, + CSSM_HANDLE CrlHandle, + ffi.Pointer CertFound, + CSSM_DATA_PTR CrlRecordIndex, + ) + > + > + IsCertInCachedCrl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer CrlField, + CSSM_HANDLE_PTR ResultsHandle, + ffi.Pointer NumberOfMatchedFields, + ffi.Pointer Value, + ) + > + > + CrlGetFirstCachedFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE ResultsHandle, + ffi.Pointer Value, + ) + > + > + CrlGetNextCachedFieldValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_HANDLE CrlHandle, + ffi.Pointer CrlRecordIndex, + ffi.Pointer NumberOfFields, + ffi.Pointer CrlFields, + ) + > + > + CrlGetAllCachedRecordFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CrlHandle) + > + > + CrlAbortCache, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + ffi.Pointer NumberOfFields, + ffi.Pointer OidList, + ) + > + > + CrlDescribeFormat, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough, + }) => $allocator() + ..ref.CertCreateTemplate = CertCreateTemplate + ..ref.CertGetAllTemplateFields = CertGetAllTemplateFields + ..ref.CertSign = CertSign + ..ref.CertVerify = CertVerify + ..ref.CertVerifyWithKey = CertVerifyWithKey + ..ref.CertGetFirstFieldValue = CertGetFirstFieldValue + ..ref.CertGetNextFieldValue = CertGetNextFieldValue + ..ref.CertAbortQuery = CertAbortQuery + ..ref.CertGetKeyInfo = CertGetKeyInfo + ..ref.CertGetAllFields = CertGetAllFields + ..ref.FreeFields = FreeFields + ..ref.FreeFieldValue = FreeFieldValue + ..ref.CertCache = CertCache + ..ref.CertGetFirstCachedFieldValue = CertGetFirstCachedFieldValue + ..ref.CertGetNextCachedFieldValue = CertGetNextCachedFieldValue + ..ref.CertAbortCache = CertAbortCache + ..ref.CertGroupToSignedBundle = CertGroupToSignedBundle + ..ref.CertGroupFromVerifiedBundle = CertGroupFromVerifiedBundle + ..ref.CertDescribeFormat = CertDescribeFormat + ..ref.CrlCreateTemplate = CrlCreateTemplate + ..ref.CrlSetFields = CrlSetFields + ..ref.CrlAddCert = CrlAddCert + ..ref.CrlRemoveCert = CrlRemoveCert + ..ref.CrlSign = CrlSign + ..ref.CrlVerify = CrlVerify + ..ref.CrlVerifyWithKey = CrlVerifyWithKey + ..ref.IsCertInCrl = IsCertInCrl + ..ref.CrlGetFirstFieldValue = CrlGetFirstFieldValue + ..ref.CrlGetNextFieldValue = CrlGetNextFieldValue + ..ref.CrlAbortQuery = CrlAbortQuery + ..ref.CrlGetAllFields = CrlGetAllFields + ..ref.CrlCache = CrlCache + ..ref.IsCertInCachedCrl = IsCertInCachedCrl + ..ref.CrlGetFirstCachedFieldValue = CrlGetFirstCachedFieldValue + ..ref.CrlGetNextCachedFieldValue = CrlGetNextCachedFieldValue + ..ref.CrlGetAllCachedRecordFields = CrlGetAllCachedRecordFields + ..ref.CrlAbortCache = CrlAbortCache + ..ref.CrlDescribeFormat = CrlDescribeFormat + ..ref.PassThrough = PassThrough; +} + +@Deprecated('Deprecated') +final class cssm_spi_csp_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CONTEXT_EVENT Event, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + EventNotify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_BOOL Encrypt, + uint32 QuerySizeCount, + CSSM_QUERY_SIZE_DATA_PTR DataBlock, + ) + > + > + QuerySize; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_ALGORITHMS DigestAlgorithm, + CSSM_DATA_PTR Signature, + ) + > + > + SignData; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + SignDataInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + SignDataUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Signature, + ) + > + > + SignDataFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_ALGORITHMS DigestAlgorithm, + ffi.Pointer Signature, + ) + > + > + VerifyData; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + VerifyDataInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + VerifyDataUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Signature, + ) + > + > + VerifyDataFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_DATA_PTR Digest, + ) + > + > + DigestData; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + DigestDataInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + DigestDataUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_CC_HANDLE ClonedCCHandle, + ) + > + > + DigestDataClone; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Digest, + ) + > + > + DigestDataFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_DATA_PTR Mac, + ) + > + > + GenerateMac; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + GenerateMacInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + GenerateMacUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Mac, + ) + > + > + GenerateMacFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ffi.Pointer Mac, + ) + > + > + VerifyMac; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + VerifyMacInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + VerifyMacUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Mac, + ) + > + > + VerifyMacFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer ClearBufs, + uint32 ClearBufCount, + CSSM_DATA_PTR CipherBufs, + uint32 CipherBufCount, + ffi.Pointer bytesEncrypted, + CSSM_DATA_PTR RemData, + CSSM_PRIVILEGE Privilege, + ) + > + > + EncryptData; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_PRIVILEGE Privilege, + ) + > + > + EncryptDataInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer ClearBufs, + uint32 ClearBufCount, + CSSM_DATA_PTR CipherBufs, + uint32 CipherBufCount, + ffi.Pointer bytesEncrypted, + ) + > + > + EncryptDataUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR RemData, + ) + > + > + EncryptDataFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer CipherBufs, + uint32 CipherBufCount, + CSSM_DATA_PTR ClearBufs, + uint32 ClearBufCount, + ffi.Pointer bytesDecrypted, + CSSM_DATA_PTR RemData, + CSSM_PRIVILEGE Privilege, + ) + > + > + DecryptData; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_PRIVILEGE Privilege, + ) + > + > + DecryptDataInit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CipherBufs, + uint32 CipherBufCount, + CSSM_DATA_PTR ClearBufs, + uint32 ClearBufCount, + ffi.Pointer bytesDecrypted, + ) + > + > + DecryptDataUpdate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR RemData, + ) + > + > + DecryptDataFinal; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer Key, + CSSM_KEY_SIZE_PTR KeySize, + ) + > + > + QueryKeySizeInBits; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR Key, + CSSM_PRIVILEGE Privilege, + ) + > + > + GenerateKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 PublicKeyUsage, + uint32 PublicKeyAttr, + ffi.Pointer PublicKeyLabel, + CSSM_KEY_PTR PublicKey, + uint32 PrivateKeyUsage, + uint32 PrivateKeyAttr, + ffi.Pointer PrivateKeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR PrivateKey, + CSSM_PRIVILEGE Privilege, + ) + > + > + GenerateKeyPair; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_DATA_PTR RandomNumber, + ) + > + > + GenerateRandom; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 ParamBits, + CSSM_DATA_PTR Param, + ffi.Pointer NumberOfUpdatedAttibutes, + ffi.Pointer UpdatedAttributes, + ) + > + > + GenerateAlgorithmParams; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer DescriptiveData, + CSSM_WRAP_KEY_PTR WrappedKey, + CSSM_PRIVILEGE Privilege, + ) + > + > + WrapKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer PublicKey, + ffi.Pointer WrappedKey, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR UnwrappedKey, + CSSM_DATA_PTR DescriptiveData, + CSSM_PRIVILEGE Privilege, + ) + > + > + UnwrapKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_DATA_PTR Param, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR DerivedKey, + ) + > + > + DeriveKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + CSSM_KEY_PTR KeyPtr, + CSSM_BOOL Delete, + ) + > + > + FreeKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 PassThroughId, + ffi.Pointer InData, + ffi.Pointer> OutData, + ) + > + > + PassThrough; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer LoginName, + ffi.Pointer Reserved, + ) + > + > + Login; + + external ffi.Pointer< + ffi.NativeFunction + > + Logout; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ) + > + > + ChangeLoginAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer PublicKey, + CSSM_KEY_PTR PrivateKey, + ) + > + > + ObtainPrivateKeyFromPublicKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR UniqueID$1) + > + > + RetrieveUniqueId; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR Counter) + > + > + RetrieveCounter; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer DeviceCert, + ) + > + > + VerifyDevice; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_ALGORITHMS TimeAlgorithm, + ffi.Pointer TimeData, + ) + > + > + GetTimeValue; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Statistics, + ) + > + > + GetOperationalStatistics; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetLoginAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Key, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetKeyAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ffi.Pointer Key, + ) + > + > + ChangeKeyAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Key, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetKeyOwner; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer NewOwner, + ) + > + > + ChangeKeyOwner; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetLoginOwner; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, + ) + > + > + ChangeLoginOwner; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CONTEXT_EVENT Event, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + EventNotify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_BOOL Encrypt, + uint32 QuerySizeCount, + CSSM_QUERY_SIZE_DATA_PTR DataBlock, + ) + > + > + QuerySize, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_ALGORITHMS DigestAlgorithm, + CSSM_DATA_PTR Signature, + ) + > + > + SignData, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + SignDataInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + SignDataUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Signature, + ) + > + > + SignDataFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_ALGORITHMS DigestAlgorithm, + ffi.Pointer Signature, + ) + > + > + VerifyData, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + VerifyDataInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + VerifyDataUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Signature, + ) + > + > + VerifyDataFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_DATA_PTR Digest, + ) + > + > + DigestData, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + DigestDataInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + DigestDataUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_CC_HANDLE ClonedCCHandle, + ) + > + > + DigestDataClone, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Digest, + ) + > + > + DigestDataFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + CSSM_DATA_PTR Mac, + ) + > + > + GenerateMac, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + GenerateMacInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + GenerateMacUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR Mac, + ) + > + > + GenerateMacFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ffi.Pointer Mac, + ) + > + > + VerifyMac, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ) + > + > + VerifyMacInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DataBufs, + uint32 DataBufCount, + ) + > + > + VerifyMacUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Mac, + ) + > + > + VerifyMacFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer ClearBufs, + uint32 ClearBufCount, + CSSM_DATA_PTR CipherBufs, + uint32 CipherBufCount, + ffi.Pointer bytesEncrypted, + CSSM_DATA_PTR RemData, + CSSM_PRIVILEGE Privilege, + ) + > + > + EncryptData, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_PRIVILEGE Privilege, + ) + > + > + EncryptDataInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer ClearBufs, + uint32 ClearBufCount, + CSSM_DATA_PTR CipherBufs, + uint32 CipherBufCount, + ffi.Pointer bytesEncrypted, + ) + > + > + EncryptDataUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR RemData, + ) + > + > + EncryptDataFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer CipherBufs, + uint32 CipherBufCount, + CSSM_DATA_PTR ClearBufs, + uint32 ClearBufCount, + ffi.Pointer bytesDecrypted, + CSSM_DATA_PTR RemData, + CSSM_PRIVILEGE Privilege, + ) + > + > + DecryptData, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_PRIVILEGE Privilege, + ) + > + > + DecryptDataInit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CipherBufs, + uint32 CipherBufCount, + CSSM_DATA_PTR ClearBufs, + uint32 ClearBufCount, + ffi.Pointer bytesDecrypted, + ) + > + > + DecryptDataUpdate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + CSSM_DATA_PTR RemData, + ) + > + > + DecryptDataFinal, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer Key, + CSSM_KEY_SIZE_PTR KeySize, + ) + > + > + QueryKeySizeInBits, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR Key, + CSSM_PRIVILEGE Privilege, + ) + > + > + GenerateKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 PublicKeyUsage, + uint32 PublicKeyAttr, + ffi.Pointer PublicKeyLabel, + CSSM_KEY_PTR PublicKey, + uint32 PrivateKeyUsage, + uint32 PrivateKeyAttr, + ffi.Pointer PrivateKeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR PrivateKey, + CSSM_PRIVILEGE Privilege, + ) + > + > + GenerateKeyPair, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_DATA_PTR RandomNumber, + ) + > + > + GenerateRandom, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 ParamBits, + CSSM_DATA_PTR Param, + ffi.Pointer NumberOfUpdatedAttibutes, + ffi.Pointer UpdatedAttributes, + ) + > + > + GenerateAlgorithmParams, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer DescriptiveData, + CSSM_WRAP_KEY_PTR WrappedKey, + CSSM_PRIVILEGE Privilege, + ) + > + > + WrapKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + ffi.Pointer PublicKey, + ffi.Pointer WrappedKey, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR UnwrappedKey, + CSSM_DATA_PTR DescriptiveData, + CSSM_PRIVILEGE Privilege, + ) + > + > + UnwrapKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + CSSM_DATA_PTR Param, + uint32 KeyUsage, + uint32 KeyAttr, + ffi.Pointer KeyLabel, + ffi.Pointer CredAndAclEntry, + CSSM_KEY_PTR DerivedKey, + ) + > + > + DeriveKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + CSSM_KEY_PTR KeyPtr, + CSSM_BOOL Delete, + ) + > + > + FreeKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer Context, + uint32 PassThroughId, + ffi.Pointer InData, + ffi.Pointer> OutData, + ) + > + > + PassThrough, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer LoginName, + ffi.Pointer Reserved, + ) + > + > + Login, + required ffi.Pointer< + ffi.NativeFunction + > + Logout, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ) + > + > + ChangeLoginAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer PublicKey, + CSSM_KEY_PTR PrivateKey, + ) + > + > + ObtainPrivateKeyFromPublicKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_DATA_PTR UniqueID$1, + ) + > + > + RetrieveUniqueId, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR Counter) + > + > + RetrieveCounter, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer DeviceCert, + ) + > + > + VerifyDevice, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_ALGORITHMS TimeAlgorithm, + ffi.Pointer TimeData, + ) + > + > + GetTimeValue, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Statistics, + ) + > + > + GetOperationalStatistics, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetLoginAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Key, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetKeyAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ffi.Pointer Key, + ) + > + > + ChangeKeyAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer Key, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetKeyOwner, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer Key, + ffi.Pointer NewOwner, + ) + > + > + ChangeKeyOwner, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetLoginOwner, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, + ) + > + > + ChangeLoginOwner, + }) => $allocator() + ..ref.EventNotify = EventNotify + ..ref.QuerySize = QuerySize + ..ref.SignData = SignData + ..ref.SignDataInit = SignDataInit + ..ref.SignDataUpdate = SignDataUpdate + ..ref.SignDataFinal = SignDataFinal + ..ref.VerifyData = VerifyData + ..ref.VerifyDataInit = VerifyDataInit + ..ref.VerifyDataUpdate = VerifyDataUpdate + ..ref.VerifyDataFinal = VerifyDataFinal + ..ref.DigestData = DigestData + ..ref.DigestDataInit = DigestDataInit + ..ref.DigestDataUpdate = DigestDataUpdate + ..ref.DigestDataClone = DigestDataClone + ..ref.DigestDataFinal = DigestDataFinal + ..ref.GenerateMac = GenerateMac + ..ref.GenerateMacInit = GenerateMacInit + ..ref.GenerateMacUpdate = GenerateMacUpdate + ..ref.GenerateMacFinal = GenerateMacFinal + ..ref.VerifyMac = VerifyMac + ..ref.VerifyMacInit = VerifyMacInit + ..ref.VerifyMacUpdate = VerifyMacUpdate + ..ref.VerifyMacFinal = VerifyMacFinal + ..ref.EncryptData = EncryptData + ..ref.EncryptDataInit = EncryptDataInit + ..ref.EncryptDataUpdate = EncryptDataUpdate + ..ref.EncryptDataFinal = EncryptDataFinal + ..ref.DecryptData = DecryptData + ..ref.DecryptDataInit = DecryptDataInit + ..ref.DecryptDataUpdate = DecryptDataUpdate + ..ref.DecryptDataFinal = DecryptDataFinal + ..ref.QueryKeySizeInBits = QueryKeySizeInBits + ..ref.GenerateKey = GenerateKey + ..ref.GenerateKeyPair = GenerateKeyPair + ..ref.GenerateRandom = GenerateRandom + ..ref.GenerateAlgorithmParams = GenerateAlgorithmParams + ..ref.WrapKey = WrapKey + ..ref.UnwrapKey = UnwrapKey + ..ref.DeriveKey = DeriveKey + ..ref.FreeKey = FreeKey + ..ref.PassThrough = PassThrough + ..ref.Login = Login + ..ref.Logout = Logout + ..ref.ChangeLoginAcl = ChangeLoginAcl + ..ref.ObtainPrivateKeyFromPublicKey = ObtainPrivateKeyFromPublicKey + ..ref.RetrieveUniqueId = RetrieveUniqueId + ..ref.RetrieveCounter = RetrieveCounter + ..ref.VerifyDevice = VerifyDevice + ..ref.GetTimeValue = GetTimeValue + ..ref.GetOperationalStatistics = GetOperationalStatistics + ..ref.GetLoginAcl = GetLoginAcl + ..ref.GetKeyAcl = GetKeyAcl + ..ref.ChangeKeyAcl = ChangeKeyAcl + ..ref.GetKeyOwner = GetKeyOwner + ..ref.ChangeKeyOwner = ChangeKeyOwner + ..ref.GetLoginOwner = GetLoginOwner + ..ref.ChangeLoginOwner = ChangeLoginOwner; +} + +@Deprecated('Deprecated') +final class cssm_spi_dl_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, + ) + > + > + DbOpen; + + external ffi.Pointer< + ffi.NativeFunction + > + DbClose; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer DBInfo, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer CredAndAclEntry, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, + ) + > + > + DbCreate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer AccessCred, + ) + > + > + DbDelete; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RelationID, + ffi.Pointer RelationName, + uint32 NumberOfAttributes, + ffi.Pointer pAttributeInfo, + uint32 NumberOfIndexes, + ffi.Pointer pIndexInfo, + ) + > + > + CreateRelation; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RelationID, + ) + > + > + DestroyRelation; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ) + > + > + Authenticate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetDbAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ) + > + > + ChangeDbAcl; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetDbOwner; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, + ) + > + > + ChangeDbOwner; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer NameList, + ) + > + > + GetDbNames; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> DbName, + ) + > + > + GetDbNameFromHandle; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(CSSM_DL_HANDLE DLHandle, CSSM_NAME_LIST_PTR NameList) + > + > + FreeNameList; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RecordType, + ffi.Pointer Attributes, + ffi.Pointer Data, + ffi.Pointer UniqueId, + ) + > + > + DataInsert; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecordIdentifier, + ) + > + > + DataDelete; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RecordType, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, + ffi.Pointer AttributesToBeModified, + ffi.Pointer DataToBeModified, + CSSM_DB_MODIFY_MODE ModifyMode, + ) + > + > + DataModify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer Query, + CSSM_HANDLE_PTR ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetFirst; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_HANDLE ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetNext; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_HANDLE ResultsHandle, + ) + > + > + DataAbortQuery; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecord, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ) + > + > + DataGetFromUniqueRecordId; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, + ) + > + > + FreeUniqueRecord; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, + ) + > + > + DbOpen, + required ffi.Pointer< + ffi.NativeFunction + > + DbClose, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer DBInfo, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer CredAndAclEntry, + ffi.Pointer OpenParameters, + ffi.Pointer DbHandle, + ) + > + > + DbCreate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + ffi.Pointer AccessCred, + ) + > + > + DbDelete, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RelationID, + ffi.Pointer RelationName, + uint32 NumberOfAttributes, + ffi.Pointer pAttributeInfo, + uint32 NumberOfIndexes, + ffi.Pointer pIndexInfo, + ) + > + > + CreateRelation, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RelationID, + ) + > + > + DestroyRelation, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ) + > + > + Authenticate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> SelectionTag, + ffi.Pointer NumberOfAclInfos, + ffi.Pointer AclInfos, + ) + > + > + GetDbAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer AclEdit, + ) + > + > + ChangeDbAcl, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, + ) + > + > + GetDbOwner, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer AccessCred, + ffi.Pointer NewOwner, + ) + > + > + ChangeDbOwner, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + ffi.Pointer NameList, + ) + > + > + GetDbNames, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer> DbName, + ) + > + > + GetDbNameFromHandle, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_HANDLE DLHandle, + CSSM_NAME_LIST_PTR NameList, + ) + > + > + FreeNameList, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RecordType, + ffi.Pointer Attributes, + ffi.Pointer Data, + ffi.Pointer UniqueId, + ) + > + > + DataInsert, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecordIdentifier, + ) + > + > + DataDelete, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_RECORDTYPE RecordType, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, + ffi.Pointer AttributesToBeModified, + ffi.Pointer DataToBeModified, + CSSM_DB_MODIFY_MODE ModifyMode, + ) + > + > + DataModify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer Query, + CSSM_HANDLE_PTR ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetFirst, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_HANDLE ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetNext, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_HANDLE ResultsHandle, + ) + > + > + DataAbortQuery, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + ffi.Pointer UniqueRecord, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ) + > + > + DataGetFromUniqueRecordId, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, + ) + > + > + FreeUniqueRecord, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_DL_DB_HANDLE DLDBHandle, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough, + }) => $allocator() + ..ref.DbOpen = DbOpen + ..ref.DbClose = DbClose + ..ref.DbCreate = DbCreate + ..ref.DbDelete = DbDelete + ..ref.CreateRelation = CreateRelation + ..ref.DestroyRelation = DestroyRelation + ..ref.Authenticate = Authenticate + ..ref.GetDbAcl = GetDbAcl + ..ref.ChangeDbAcl = ChangeDbAcl + ..ref.GetDbOwner = GetDbOwner + ..ref.ChangeDbOwner = ChangeDbOwner + ..ref.GetDbNames = GetDbNames + ..ref.GetDbNameFromHandle = GetDbNameFromHandle + ..ref.FreeNameList = FreeNameList + ..ref.DataInsert = DataInsert + ..ref.DataDelete = DataDelete + ..ref.DataModify = DataModify + ..ref.DataGetFirst = DataGetFirst + ..ref.DataGetNext = DataGetNext + ..ref.DataAbortQuery = DataAbortQuery + ..ref.DataGetFromUniqueRecordId = DataGetFromUniqueRecordId + ..ref.FreeUniqueRecord = FreeUniqueRecord + ..ref.PassThrough = PassThrough; +} + +@Deprecated('Deprecated') +final class cssm_spi_kr_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KRRegistrationContextHandle, + ffi.Pointer KRRegistrationContext, + ffi.Pointer KRInData, + ffi.Pointer AccessCredentials, + CSSM_KR_POLICY_FLAGS KRFlags, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR ReferenceHandle, + ) + > + > + RegistrationRequest; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ReferenceHandle, + ffi.Pointer EstimatedTime, + CSSM_KR_PROFILE_PTR KRProfile, + ) + > + > + RegistrationRetrieve; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KREnablementContextHandle, + ffi.Pointer KREnablementContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + ffi.Pointer KRSPOptions, + CSSM_KR_POLICY_FLAGS KRFlags, + CSSM_DATA_PTR KRFields, + ) + > + > + GenerateRecoveryFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KREnablementContextHandle, + ffi.Pointer KREnablementContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + ffi.Pointer KRSPOptions, + CSSM_KR_POLICY_FLAGS KRFlags, + ffi.Pointer KRFields, + ) + > + > + ProcessRecoveryFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KRRequestContextHandle, + ffi.Pointer KRRequestContext, + ffi.Pointer KRInData, + ffi.Pointer AccessCredentials, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR ReferenceHandle, + ) + > + > + RecoveryRequest; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ReferenceHandle, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR CacheHandle, + ffi.Pointer NumberOfRecoveredKeys, + ) + > + > + RecoveryRetrieve; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE CacheHandle, + uint32 IndexInResults, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CredAndAclEntry, + uint32 Flags, + CSSM_KEY_PTR RecoveredKey, + CSSM_DATA_PTR OtherInfo, + ) + > + > + GetRecoveredObject; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ResultsHandle, + ) + > + > + RecoveryRequestAbort; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KeyRecoveryContextHandle, + ffi.Pointer KeyRecoveryContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KRRegistrationContextHandle, + ffi.Pointer KRRegistrationContext, + ffi.Pointer KRInData, + ffi.Pointer AccessCredentials, + CSSM_KR_POLICY_FLAGS KRFlags, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR ReferenceHandle, + ) + > + > + RegistrationRequest, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ReferenceHandle, + ffi.Pointer EstimatedTime, + CSSM_KR_PROFILE_PTR KRProfile, + ) + > + > + RegistrationRetrieve, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KREnablementContextHandle, + ffi.Pointer KREnablementContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + ffi.Pointer KRSPOptions, + CSSM_KR_POLICY_FLAGS KRFlags, + CSSM_DATA_PTR KRFields, + ) + > + > + GenerateRecoveryFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KREnablementContextHandle, + ffi.Pointer KREnablementContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + ffi.Pointer KRSPOptions, + CSSM_KR_POLICY_FLAGS KRFlags, + ffi.Pointer KRFields, + ) + > + > + ProcessRecoveryFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KRRequestContextHandle, + ffi.Pointer KRRequestContext, + ffi.Pointer KRInData, + ffi.Pointer AccessCredentials, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR ReferenceHandle, + ) + > + > + RecoveryRequest, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ReferenceHandle, + ffi.Pointer EstimatedTime, + CSSM_HANDLE_PTR CacheHandle, + ffi.Pointer NumberOfRecoveredKeys, + ) + > + > + RecoveryRetrieve, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE CacheHandle, + uint32 IndexInResults, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CredAndAclEntry, + uint32 Flags, + CSSM_KEY_PTR RecoveredKey, + CSSM_DATA_PTR OtherInfo, + ) + > + > + GetRecoveredObject, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_HANDLE ResultsHandle, + ) + > + > + RecoveryRequestAbort, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_KRSP_HANDLE KRSPHandle, + CSSM_CC_HANDLE KeyRecoveryContextHandle, + ffi.Pointer KeyRecoveryContext, + CSSM_CC_HANDLE CryptoContextHandle, + ffi.Pointer CryptoContext, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough, + }) => $allocator() + ..ref.RegistrationRequest = RegistrationRequest + ..ref.RegistrationRetrieve = RegistrationRetrieve + ..ref.GenerateRecoveryFields = GenerateRecoveryFields + ..ref.ProcessRecoveryFields = ProcessRecoveryFields + ..ref.RecoveryRequest = RecoveryRequest + ..ref.RecoveryRetrieve = RecoveryRetrieve + ..ref.GetRecoveredObject = GetRecoveredObject + ..ref.RecoveryRequestAbort = RecoveryRequestAbort + ..ref.PassThrough = PassThrough; +} + +@Deprecated('Deprecated') +final class cssm_spi_tp_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer PreferredAuthority, + CSSM_TP_AUTHORITY_REQUEST_TYPE RequestType, + ffi.Pointer RequestInput, + ffi.Pointer CallerAuthContext, + ffi.Pointer EstimatedTime, + CSSM_DATA_PTR ReferenceIdentifier, + ) + > + > + SubmitCredRequest; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer EstimatedTime, + ffi.Pointer ConfirmationRequired, + ffi.Pointer RetrieveOutput, + ) + > + > + RetrieveCredResult; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer Responses, + ffi.Pointer PreferredAuthority, + ) + > + > + ConfirmCredResult; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer Responses, + ffi.Pointer ElapsedTime, + ) + > + > + ReceiveConfirmation; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer CertGroup, + uint32 CertIndex, + CSSM_LONG_HANDLE KeyCacheHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CredAndAclEntry, + ) + > + > + CertReclaimKey; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_LONG_HANDLE KeyCacheHandle, + ) + > + > + CertReclaimAbort; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer PreferredAuthority, + CSSM_TP_FORM_TYPE FormType, + CSSM_DATA_PTR BlankForm, + ) + > + > + FormRequest; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_TP_FORM_TYPE FormType, + ffi.Pointer Form, + ffi.Pointer ClearanceAuthority, + ffi.Pointer RepresentedAuthority, + CSSM_ACCESS_CREDENTIALS_PTR Credentials, + ) + > + > + FormSubmit; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CertGroupToBeVerified, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, + ) + > + > + CertGroupVerify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, + ) + > + > + CertCreateTemplate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllTemplateFields; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertTemplateToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCert, + ) + > + > + CertSign; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCertGroup, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + ) + > + > + CrlVerify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlFields, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CrlCreateTemplate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRevoked, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + CSSM_TP_CERTCHANGE_REASON Reason, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CertRevoke; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRemoved, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CertRemoveFromCrlTemplate; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCrl, + ) + > + > + CrlSign; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CrlToBeApplied, + ffi.Pointer SignerCertGroup, + ffi.Pointer ApplyCrlVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, + ) + > + > + ApplyCrlToDb; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer DBList, + ffi.Pointer ConstructParams, + ffi.Pointer CertGroupFrag, + ffi.Pointer CertGroup, + ) + > + > + CertGroupConstruct; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer DBList, + ffi.Pointer OrderedCertGroup, + ffi.Pointer PrunedCertGroup, + ) + > + > + CertGroupPrune; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertGroup, + ffi.Pointer TupleGroup, + ) + > + > + CertGroupToTupleGroup; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer TupleGroup, + ffi.Pointer CertTemplates, + ) + > + > + TupleGroupToCertGroup; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DBList, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer PreferredAuthority, + CSSM_TP_AUTHORITY_REQUEST_TYPE RequestType, + ffi.Pointer RequestInput, + ffi.Pointer CallerAuthContext, + ffi.Pointer EstimatedTime, + CSSM_DATA_PTR ReferenceIdentifier, + ) + > + > + SubmitCredRequest, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer EstimatedTime, + ffi.Pointer ConfirmationRequired, + ffi.Pointer RetrieveOutput, + ) + > + > + RetrieveCredResult, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer CallerAuthCredentials, + ffi.Pointer Responses, + ffi.Pointer PreferredAuthority, + ) + > + > + ConfirmCredResult, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer ReferenceIdentifier, + ffi.Pointer Responses, + ffi.Pointer ElapsedTime, + ) + > + > + ReceiveConfirmation, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer CertGroup, + uint32 CertIndex, + CSSM_LONG_HANDLE KeyCacheHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CredAndAclEntry, + ) + > + > + CertReclaimKey, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_LONG_HANDLE KeyCacheHandle, + ) + > + > + CertReclaimAbort, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + ffi.Pointer PreferredAuthority, + CSSM_TP_FORM_TYPE FormType, + CSSM_DATA_PTR BlankForm, + ) + > + > + FormRequest, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_TP_FORM_TYPE FormType, + ffi.Pointer Form, + ffi.Pointer ClearanceAuthority, + ffi.Pointer RepresentedAuthority, + CSSM_ACCESS_CREDENTIALS_PTR Credentials, + ) + > + > + FormSubmit, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CertGroupToBeVerified, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, + ) + > + > + CertGroupVerify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CertFields, + CSSM_DATA_PTR CertTemplate, + ) + > + > + CertCreateTemplate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertTemplate, + ffi.Pointer NumberOfFields, + ffi.Pointer CertFields, + ) + > + > + CertGetAllTemplateFields, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CertTemplateToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCert, + ) + > + > + CertSign, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CrlToBeVerified, + ffi.Pointer SignerCertGroup, + ffi.Pointer VerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + ) + > + > + CrlVerify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + uint32 NumberOfFields, + ffi.Pointer CrlFields, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CrlCreateTemplate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRevoked, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + CSSM_TP_CERTCHANGE_REASON Reason, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CertRevoke, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer OldCrlTemplate, + ffi.Pointer CertGroupToBeRemoved, + ffi.Pointer RevokerCertGroup, + ffi.Pointer RevokerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, + CSSM_DATA_PTR NewCrlTemplate, + ) + > + > + CertRemoveFromCrlTemplate, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer CrlToBeSigned, + ffi.Pointer SignerCertGroup, + ffi.Pointer SignerVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, + CSSM_DATA_PTR SignedCrl, + ) + > + > + CrlSign, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer CrlToBeApplied, + ffi.Pointer SignerCertGroup, + ffi.Pointer ApplyCrlVerifyContext, + CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, + ) + > + > + ApplyCrlToDb, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CSP_HANDLE CSPHandle, + ffi.Pointer DBList, + ffi.Pointer ConstructParams, + ffi.Pointer CertGroupFrag, + ffi.Pointer CertGroup, + ) + > + > + CertGroupConstruct, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer DBList, + ffi.Pointer OrderedCertGroup, + ffi.Pointer PrunedCertGroup, + ) + > + > + CertGroupPrune, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer CertGroup, + ffi.Pointer TupleGroup, + ) + > + > + CertGroupToTupleGroup, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + ffi.Pointer TupleGroup, + ffi.Pointer CertTemplates, + ) + > + > + TupleGroupToCertGroup, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_TP_HANDLE TPHandle, + CSSM_CL_HANDLE CLHandle, + CSSM_CC_HANDLE CCHandle, + ffi.Pointer DBList, + uint32 PassThroughId, + ffi.Pointer InputParams, + ffi.Pointer> OutputParams, + ) + > + > + PassThrough, + }) => $allocator() + ..ref.SubmitCredRequest = SubmitCredRequest + ..ref.RetrieveCredResult = RetrieveCredResult + ..ref.ConfirmCredResult = ConfirmCredResult + ..ref.ReceiveConfirmation = ReceiveConfirmation + ..ref.CertReclaimKey = CertReclaimKey + ..ref.CertReclaimAbort = CertReclaimAbort + ..ref.FormRequest = FormRequest + ..ref.FormSubmit = FormSubmit + ..ref.CertGroupVerify = CertGroupVerify + ..ref.CertCreateTemplate = CertCreateTemplate + ..ref.CertGetAllTemplateFields = CertGetAllTemplateFields + ..ref.CertSign = CertSign + ..ref.CrlVerify = CrlVerify + ..ref.CrlCreateTemplate = CrlCreateTemplate + ..ref.CertRevoke = CertRevoke + ..ref.CertRemoveFromCrlTemplate = CertRemoveFromCrlTemplate + ..ref.CrlSign = CrlSign + ..ref.ApplyCrlToDb = ApplyCrlToDb + ..ref.CertGroupConstruct = CertGroupConstruct + ..ref.CertGroupPrune = CertGroupPrune + ..ref.CertGroupToTupleGroup = CertGroupToTupleGroup + ..ref.TupleGroupToCertGroup = TupleGroupToCertGroup + ..ref.PassThrough = PassThrough; +} + +@Deprecated('Deprecated') +final class cssm_state_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddIn, + CSSM_SERVICE_MASK AddinType, + ffi.Pointer> SPFunctions, + CSSM_GUID_PTR Guid, + ffi.Pointer Serialized, + ) + > + > + cssm_GetAttachFunctions; + + external ffi.Pointer< + ffi.NativeFunction + > + cssm_ReleaseAttachFunctions; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddIn, + CSSM_UPCALLS_PTR UpcallTable, + ) + > + > + cssm_GetAppMemoryFunctions; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddin, + CSSM_PROC_ADDR SrcAddress, + CSSM_PROC_ADDR DestAddress, + CSSM_PRIVILEGE InPriv, + ffi.Pointer OutPriv, + CSSM_BITMASK Hints, + ffi.Pointer IsOK, + ) + > + > + cssm_IsFuncCallValid; + + external ffi.Pointer< + ffi.NativeFunction GUID)> + > + cssm_DeregisterManagerServices; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer EventDescription, + ) + > + > + cssm_DeliverModuleManagerEvent; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddIn, + CSSM_SERVICE_MASK AddinType, + ffi.Pointer> SPFunctions, + CSSM_GUID_PTR Guid, + ffi.Pointer Serialized, + ) + > + > + cssm_GetAttachFunctions, + required ffi.Pointer< + ffi.NativeFunction + > + cssm_ReleaseAttachFunctions, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddIn, + CSSM_UPCALLS_PTR UpcallTable, + ) + > + > + cssm_GetAppMemoryFunctions, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE hAddin, + CSSM_PROC_ADDR SrcAddress, + CSSM_PROC_ADDR DestAddress, + CSSM_PRIVILEGE InPriv, + ffi.Pointer OutPriv, + CSSM_BITMASK Hints, + ffi.Pointer IsOK, + ) + > + > + cssm_IsFuncCallValid, + required ffi.Pointer< + ffi.NativeFunction GUID)> + > + cssm_DeregisterManagerServices, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + ffi.Pointer EventDescription, + ) + > + > + cssm_DeliverModuleManagerEvent, + }) => $allocator() + ..ref.cssm_GetAttachFunctions = cssm_GetAttachFunctions + ..ref.cssm_ReleaseAttachFunctions = cssm_ReleaseAttachFunctions + ..ref.cssm_GetAppMemoryFunctions = cssm_GetAppMemoryFunctions + ..ref.cssm_IsFuncCallValid = cssm_IsFuncCallValid + ..ref.cssm_DeregisterManagerServices = cssm_DeregisterManagerServices + ..ref.cssm_DeliverModuleManagerEvent = cssm_DeliverModuleManagerEvent; +} + +@Deprecated('Deprecated') +final class cssm_subservice_uid extends ffi.Struct { + external CSSM_GUID Guid; + + external CSSM_VERSION Version; + + @uint32() + external int SubserviceId; + + @CSSM_SERVICE_TYPE() + external int SubserviceType; +} + +@Deprecated('Deprecated') +final class cssm_tp_authority_id extends ffi.Struct { + external ffi.Pointer AuthorityCert; + + external CSSM_NET_ADDRESS_PTR AuthorityLocation; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer AuthorityCert, + required CSSM_NET_ADDRESS_PTR AuthorityLocation, + }) => $allocator() + ..ref.AuthorityCert = AuthorityCert + ..ref.AuthorityLocation = AuthorityLocation; +} + +@Deprecated('Deprecated') +final class cssm_tp_callerauth_context extends ffi.Struct { + external CSSM_TP_POLICYINFO Policy; + + external CSSM_TIMESTRING VerifyTime; + + @CSSM_TP_STOP_ON() + external int VerificationAbortOn; + + external CSSM_TP_VERIFICATION_RESULTS_CALLBACK CallbackWithVerifiedCert; + + @uint32() + external int NumberOfAnchorCerts; + + external CSSM_DATA_PTR AnchorCerts; + + external CSSM_DL_DB_LIST_PTR DBList; + + external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_certchange_input extends ffi.Struct { + @CSSM_TP_CERTCHANGE_ACTION() + external int Action; + + @CSSM_TP_CERTCHANGE_REASON() + external int Reason; + + @CSSM_CL_HANDLE() + external int CLHandle; + + external CSSM_DATA_PTR Cert; + + external CSSM_FIELD_PTR ChangeInfo; + + external CSSM_TIMESTRING StartTime; + + external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Action, + required int Reason, + required int CLHandle, + required CSSM_DATA_PTR Cert, + required CSSM_FIELD_PTR ChangeInfo, + required CSSM_TIMESTRING StartTime, + required CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials, + }) => $allocator() + ..ref.Action = Action + ..ref.Reason = Reason + ..ref.CLHandle = CLHandle + ..ref.Cert = Cert + ..ref.ChangeInfo = ChangeInfo + ..ref.StartTime = StartTime + ..ref.CallerCredentials = CallerCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_certchange_output extends ffi.Struct { + @CSSM_TP_CERTCHANGE_STATUS() + external int ActionStatus; + + external CSSM_FIELD RevokeInfo; +} + +@Deprecated('Deprecated') +final class cssm_tp_certissue_input extends ffi.Struct { + external CSSM_SUBSERVICE_UID CSPSubserviceUid; + + @CSSM_CL_HANDLE() + external int CLHandle; + + @uint32() + external int NumberOfTemplateFields; + + external CSSM_FIELD_PTR SubjectCertFields; + + @CSSM_TP_SERVICES() + external int MoreServiceRequests; + + @uint32() + external int NumberOfServiceControls; + + external CSSM_FIELD_PTR ServiceControls; + + external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_certissue_output extends ffi.Struct { + @CSSM_TP_CERTISSUE_STATUS() + external int IssueStatus; + + external CSSM_CERTGROUP_PTR CertGroup; + + @CSSM_TP_SERVICES() + external int PerformedServiceRequests; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int IssueStatus, + required CSSM_CERTGROUP_PTR CertGroup, + required int PerformedServiceRequests, + }) => $allocator() + ..ref.IssueStatus = IssueStatus + ..ref.CertGroup = CertGroup + ..ref.PerformedServiceRequests = PerformedServiceRequests; +} + +@Deprecated('Deprecated') +final class cssm_tp_certnotarize_input extends ffi.Struct { + @CSSM_CL_HANDLE() + external int CLHandle; + + @uint32() + external int NumberOfFields; + + external CSSM_FIELD_PTR MoreFields; + + external CSSM_FIELD_PTR SignScope; + + @uint32() + external int ScopeSize; + + @CSSM_TP_SERVICES() + external int MoreServiceRequests; + + @uint32() + external int NumberOfServiceControls; + + external CSSM_FIELD_PTR ServiceControls; + + external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CLHandle, + required int NumberOfFields, + required CSSM_FIELD_PTR MoreFields, + required CSSM_FIELD_PTR SignScope, + required int ScopeSize, + required int MoreServiceRequests, + required int NumberOfServiceControls, + required CSSM_FIELD_PTR ServiceControls, + required CSSM_ACCESS_CREDENTIALS_PTR UserCredentials, + }) => $allocator() + ..ref.CLHandle = CLHandle + ..ref.NumberOfFields = NumberOfFields + ..ref.MoreFields = MoreFields + ..ref.SignScope = SignScope + ..ref.ScopeSize = ScopeSize + ..ref.MoreServiceRequests = MoreServiceRequests + ..ref.NumberOfServiceControls = NumberOfServiceControls + ..ref.ServiceControls = ServiceControls + ..ref.UserCredentials = UserCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_certnotarize_output extends ffi.Struct { + @CSSM_TP_CERTNOTARIZE_STATUS() + external int NotarizeStatus; + + external CSSM_CERTGROUP_PTR NotarizedCertGroup; + + @CSSM_TP_SERVICES() + external int PerformedServiceRequests; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NotarizeStatus, + required CSSM_CERTGROUP_PTR NotarizedCertGroup, + required int PerformedServiceRequests, + }) => $allocator() + ..ref.NotarizeStatus = NotarizeStatus + ..ref.NotarizedCertGroup = NotarizedCertGroup + ..ref.PerformedServiceRequests = PerformedServiceRequests; +} + +@Deprecated('Deprecated') +final class cssm_tp_certreclaim_input extends ffi.Struct { + @CSSM_CL_HANDLE() + external int CLHandle; + + @uint32() + external int NumberOfSelectionFields; + + external CSSM_FIELD_PTR SelectionFields; + + external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CLHandle, + required int NumberOfSelectionFields, + required CSSM_FIELD_PTR SelectionFields, + required CSSM_ACCESS_CREDENTIALS_PTR UserCredentials, + }) => $allocator() + ..ref.CLHandle = CLHandle + ..ref.NumberOfSelectionFields = NumberOfSelectionFields + ..ref.SelectionFields = SelectionFields + ..ref.UserCredentials = UserCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_certreclaim_output extends ffi.Struct { + @CSSM_TP_CERTRECLAIM_STATUS() + external int ReclaimStatus; + + external CSSM_CERTGROUP_PTR ReclaimedCertGroup; + + @CSSM_LONG_HANDLE() + external int KeyCacheHandle; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ReclaimStatus, + required CSSM_CERTGROUP_PTR ReclaimedCertGroup, + required int KeyCacheHandle, + }) => $allocator() + ..ref.ReclaimStatus = ReclaimStatus + ..ref.ReclaimedCertGroup = ReclaimedCertGroup + ..ref.KeyCacheHandle = KeyCacheHandle; +} + +@Deprecated('Deprecated') +final class cssm_tp_certverify_input extends ffi.Struct { + @CSSM_CL_HANDLE() + external int CLHandle; + + external CSSM_DATA_PTR Cert; + + external CSSM_TP_VERIFY_CONTEXT_PTR VerifyContext; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CLHandle, + required CSSM_DATA_PTR Cert, + required CSSM_TP_VERIFY_CONTEXT_PTR VerifyContext, + }) => $allocator() + ..ref.CLHandle = CLHandle + ..ref.Cert = Cert + ..ref.VerifyContext = VerifyContext; +} + +@Deprecated('Deprecated') +final class cssm_tp_certverify_output extends ffi.Struct { + @CSSM_TP_CERTVERIFY_STATUS() + external int VerifyStatus; + + @uint32() + external int NumberOfEvidence; + + external CSSM_EVIDENCE_PTR Evidence; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int VerifyStatus, + required int NumberOfEvidence, + required CSSM_EVIDENCE_PTR Evidence, + }) => $allocator() + ..ref.VerifyStatus = VerifyStatus + ..ref.NumberOfEvidence = NumberOfEvidence + ..ref.Evidence = Evidence; +} + +@Deprecated('Deprecated') +final class cssm_tp_confirm_response extends ffi.Struct { + @uint32() + external int NumberOfResponses; + + external CSSM_TP_CONFIRM_STATUS_PTR Responses; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfResponses, + required CSSM_TP_CONFIRM_STATUS_PTR Responses, + }) => $allocator() + ..ref.NumberOfResponses = NumberOfResponses + ..ref.Responses = Responses; +} + +@Deprecated('Deprecated') +final class cssm_tp_crlissue_input extends ffi.Struct { + @CSSM_CL_HANDLE() + external int CLHandle; + + @uint32() + external int CrlIdentifier; + + external CSSM_TIMESTRING CrlThisTime; + + external CSSM_FIELD_PTR PolicyIdentifier; + + external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int CLHandle, + required int CrlIdentifier, + required CSSM_TIMESTRING CrlThisTime, + required CSSM_FIELD_PTR PolicyIdentifier, + required CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials, + }) => $allocator() + ..ref.CLHandle = CLHandle + ..ref.CrlIdentifier = CrlIdentifier + ..ref.CrlThisTime = CrlThisTime + ..ref.PolicyIdentifier = PolicyIdentifier + ..ref.CallerCredentials = CallerCredentials; +} + +@Deprecated('Deprecated') +final class cssm_tp_crlissue_output extends ffi.Struct { + @CSSM_TP_CRLISSUE_STATUS() + external int IssueStatus; + + external CSSM_ENCODED_CRL_PTR Crl; + + external CSSM_TIMESTRING CrlNextTime; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int IssueStatus, + required CSSM_ENCODED_CRL_PTR Crl, + required CSSM_TIMESTRING CrlNextTime, + }) => $allocator() + ..ref.IssueStatus = IssueStatus + ..ref.Crl = Crl + ..ref.CrlNextTime = CrlNextTime; +} + +@Deprecated('Deprecated') +final class cssm_tp_policyinfo extends ffi.Struct { + @uint32() + external int NumberOfPolicyIds; + + external CSSM_FIELD_PTR PolicyIds; + + external ffi.Pointer PolicyControl; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfPolicyIds, + required CSSM_FIELD_PTR PolicyIds, + required ffi.Pointer PolicyControl, + }) => $allocator() + ..ref.NumberOfPolicyIds = NumberOfPolicyIds + ..ref.PolicyIds = PolicyIds + ..ref.PolicyControl = PolicyControl; +} + +@Deprecated('Deprecated') +final class cssm_tp_request_set extends ffi.Struct { + @uint32() + external int NumberOfRequests; + + external ffi.Pointer Requests; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfRequests, + required ffi.Pointer Requests, + }) => $allocator() + ..ref.NumberOfRequests = NumberOfRequests + ..ref.Requests = Requests; +} + +final class cssm_tp_result_set extends ffi.Struct { + @uint32() + external int NumberOfResults; + + external ffi.Pointer Results; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfResults, + required ffi.Pointer Results, + }) => $allocator() + ..ref.NumberOfResults = NumberOfResults + ..ref.Results = Results; +} + +@Deprecated('Deprecated') +final class cssm_tp_verify_context extends ffi.Struct { + @CSSM_TP_ACTION() + external int Action; + + external SecAsn1Item ActionData; + + external CSSM_CRLGROUP Crls; + + external CSSM_TP_CALLERAUTH_CONTEXT_PTR Cred; +} + +@Deprecated('Deprecated') +final class cssm_tp_verify_context_result extends ffi.Struct { + @uint32() + external int NumberOfEvidences; + + external CSSM_EVIDENCE_PTR Evidence; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfEvidences, + required CSSM_EVIDENCE_PTR Evidence, + }) => $allocator() + ..ref.NumberOfEvidences = NumberOfEvidences + ..ref.Evidence = Evidence; +} + +@Deprecated('Deprecated') +final class cssm_tuplegroup extends ffi.Struct { + @uint32() + external int NumberOfTuples; + + external CSSM_TUPLE_PTR Tuples; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfTuples, + required CSSM_TUPLE_PTR Tuples, + }) => $allocator() + ..ref.NumberOfTuples = NumberOfTuples + ..ref.Tuples = Tuples; +} + +@Deprecated('Deprecated') +final class cssm_upcalls extends ffi.Struct { + external CSSM_UPCALLS_MALLOC malloc_func; + + external CSSM_UPCALLS_FREE free_func; + + external CSSM_UPCALLS_REALLOC realloc_func; + + external CSSM_UPCALLS_CALLOC calloc_func; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CC_HANDLE Cc, + CSSM_MODULE_HANDLE_PTR ModuleHandle, + ) + > + > + CcToHandle_func; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE Module, + CSSM_GUID_PTR Guid, + CSSM_VERSION_PTR Version, + ffi.Pointer SubServiceId, + ffi.Pointer SubServiceType, + ffi.Pointer AttachFlags, + ffi.Pointer KeyHierarchy, + CSSM_API_MEMORY_FUNCS_PTR AttachedMemFuncs, + CSSM_FUNC_NAME_ADDR_PTR FunctionTable, + uint32 NumFunctions, + ) + > + > + GetModuleInfo_func; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CSSM_UPCALLS_MALLOC malloc_func, + required CSSM_UPCALLS_FREE free_func, + required CSSM_UPCALLS_REALLOC realloc_func, + required CSSM_UPCALLS_CALLOC calloc_func, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_CC_HANDLE Cc, + CSSM_MODULE_HANDLE_PTR ModuleHandle, + ) + > + > + CcToHandle_func, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + CSSM_MODULE_HANDLE Module, + CSSM_GUID_PTR Guid, + CSSM_VERSION_PTR Version, + ffi.Pointer SubServiceId, + ffi.Pointer SubServiceType, + ffi.Pointer AttachFlags, + ffi.Pointer KeyHierarchy, + CSSM_API_MEMORY_FUNCS_PTR AttachedMemFuncs, + CSSM_FUNC_NAME_ADDR_PTR FunctionTable, + uint32 NumFunctions, + ) + > + > + GetModuleInfo_func, + }) => $allocator() + ..ref.malloc_func = malloc_func + ..ref.free_func = free_func + ..ref.realloc_func = realloc_func + ..ref.calloc_func = calloc_func + ..ref.CcToHandle_func = CcToHandle_func + ..ref.GetModuleInfo_func = GetModuleInfo_func; +} + +final class cssm_version extends ffi.Struct { + @uint32() + external int Major; + + @uint32() + external int Minor; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Major, + required int Minor, + }) => $allocator() + ..ref.Major = Major + ..ref.Minor = Minor; +} + +@Deprecated('Deprecated') +final class cssm_x509_extension extends ffi.Struct { + external SecAsn1Oid extnId; + + @CSSM_BOOL() + external int critical; + + @ffi.UnsignedInt() + external int formatAsInt; + + extension_data_format get format => + extension_data_format.fromValue(formatAsInt); + set format(extension_data_format value) => formatAsInt = value.value; + + external cssm_x509ext_value value; + + external SecAsn1Item BERvalue; +} + +@Deprecated('Deprecated') +final class cssm_x509_extensionTagAndValue extends ffi.Struct { + @CSSM_BER_TAG() + external int type; + + external SecAsn1Item value; +} + +@Deprecated('Deprecated') +final class cssm_x509_extensions extends ffi.Struct { + @uint32() + external int numberOfExtensions; + + external CSSM_X509_EXTENSION_PTR extensions; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfExtensions, + required CSSM_X509_EXTENSION_PTR extensions, + }) => $allocator() + ..ref.numberOfExtensions = numberOfExtensions + ..ref.extensions = extensions; +} + +@Deprecated('Deprecated') +final class cssm_x509_name extends ffi.Struct { + @uint32() + external int numberOfRDNs; + + external CSSM_X509_RDN_PTR RelativeDistinguishedName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfRDNs, + required CSSM_X509_RDN_PTR RelativeDistinguishedName, + }) => $allocator() + ..ref.numberOfRDNs = numberOfRDNs + ..ref.RelativeDistinguishedName = RelativeDistinguishedName; +} + +@Deprecated('Deprecated') +final class cssm_x509_rdn extends ffi.Struct { + @uint32() + external int numberOfPairs; + + external CSSM_X509_TYPE_VALUE_PAIR_PTR AttributeTypeAndValue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfPairs, + required CSSM_X509_TYPE_VALUE_PAIR_PTR AttributeTypeAndValue, + }) => $allocator() + ..ref.numberOfPairs = numberOfPairs + ..ref.AttributeTypeAndValue = AttributeTypeAndValue; +} + +@Deprecated('Deprecated') +final class cssm_x509_revoked_cert_entry extends ffi.Struct { + external SecAsn1Item certificateSerialNumber; + + external CSSM_X509_TIME revocationDate; + + external CSSM_X509_EXTENSIONS extensions; +} + +@Deprecated('Deprecated') +final class cssm_x509_revoked_cert_list extends ffi.Struct { + @uint32() + external int numberOfRevokedCertEntries; + + external CSSM_X509_REVOKED_CERT_ENTRY_PTR revokedCertEntry; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfRevokedCertEntries, + required CSSM_X509_REVOKED_CERT_ENTRY_PTR revokedCertEntry, + }) => $allocator() + ..ref.numberOfRevokedCertEntries = numberOfRevokedCertEntries + ..ref.revokedCertEntry = revokedCertEntry; +} + +@Deprecated('Deprecated') +final class cssm_x509_signature extends ffi.Struct { + external SecAsn1AlgId algorithmIdentifier; + + external SecAsn1Item encrypted; +} + +@Deprecated('Deprecated') +final class cssm_x509_signed_certificate extends ffi.Struct { + external CSSM_X509_TBS_CERTIFICATE certificate; + + external CSSM_X509_SIGNATURE signature; +} + +@Deprecated('Deprecated') +final class cssm_x509_signed_crl extends ffi.Struct { + external CSSM_X509_TBS_CERTLIST tbsCertList; + + external CSSM_X509_SIGNATURE signature; +} + +@Deprecated('Deprecated') +final class cssm_x509_tbs_certificate extends ffi.Struct { + external SecAsn1Item version; + + external SecAsn1Item serialNumber; + + external SecAsn1AlgId signature; + + external CSSM_X509_NAME issuer; + + external CSSM_X509_VALIDITY validity; + + external CSSM_X509_NAME subject; + + external SecAsn1PubKeyInfo subjectPublicKeyInfo; + + external SecAsn1Item issuerUniqueIdentifier; + + external SecAsn1Item subjectUniqueIdentifier; + + external CSSM_X509_EXTENSIONS extensions; +} + +@Deprecated('Deprecated') +final class cssm_x509_tbs_certlist extends ffi.Struct { + external SecAsn1Item version; + + external SecAsn1AlgId signature; + + external CSSM_X509_NAME issuer; + + external CSSM_X509_TIME thisUpdate; + + external CSSM_X509_TIME nextUpdate; + + external CSSM_X509_REVOKED_CERT_LIST_PTR revokedCertificates; + + external CSSM_X509_EXTENSIONS extensions; +} + +@Deprecated('Deprecated') +final class cssm_x509_time extends ffi.Struct { + @CSSM_BER_TAG() + external int timeType; + + external SecAsn1Item time$1; +} + +@Deprecated('Deprecated') +final class cssm_x509_type_value_pair extends ffi.Struct { + external SecAsn1Oid type; + + @CSSM_BER_TAG() + external int valueType; + + external SecAsn1Item value; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_basicConstraints extends ffi.Struct { + @CSSM_BOOL() + external int cA; + + @CSSM_X509_OPTION() + external int pathLenConstraintPresent; + + @uint32() + external int pathLenConstraint; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cA, + required int pathLenConstraintPresent, + required int pathLenConstraint, + }) => $allocator() + ..ref.cA = cA + ..ref.pathLenConstraintPresent = pathLenConstraintPresent + ..ref.pathLenConstraint = pathLenConstraint; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_pair extends ffi.Struct { + external CSSM_X509EXT_TAGandVALUE tagAndValue; + + external ffi.Pointer parsedValue; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_policyInfo extends ffi.Struct { + external SecAsn1Oid policyIdentifier; + + external CSSM_X509EXT_POLICYQUALIFIERS policyQualifiers; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_policyQualifierInfo extends ffi.Struct { + external SecAsn1Oid policyQualifierId; + + external SecAsn1Item value; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_policyQualifiers extends ffi.Struct { + @uint32() + external int numberOfPolicyQualifiers; + + external ffi.Pointer policyQualifier; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int numberOfPolicyQualifiers, + required ffi.Pointer policyQualifier, + }) => $allocator() + ..ref.numberOfPolicyQualifiers = numberOfPolicyQualifiers + ..ref.policyQualifier = policyQualifier; +} + +@Deprecated('Deprecated') +final class cssm_x509ext_value extends ffi.Union { + external ffi.Pointer tagAndValue; + + external ffi.Pointer parsedValue; + + external ffi.Pointer valuePair; +} + +typedef ct_rune_t = __darwin_ct_rune_t; +typedef cups_acopy_func_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer element, + ffi.Pointer data, + ) + > + >; + +enum cups_adv_e { + CUPS_ADVANCE_NONE(0), + CUPS_ADVANCE_FILE(1), + CUPS_ADVANCE_JOB(2), + CUPS_ADVANCE_SET(3), + CUPS_ADVANCE_PAGE(4); + + final int value; + const cups_adv_e(this.value); + + static cups_adv_e fromValue(int value) => switch (value) { + 0 => CUPS_ADVANCE_NONE, + 1 => CUPS_ADVANCE_FILE, + 2 => CUPS_ADVANCE_JOB, + 3 => CUPS_ADVANCE_SET, + 4 => CUPS_ADVANCE_PAGE, + _ => throw ArgumentError('Unknown value for cups_adv_e: $value'), + }; +} + +typedef cups_afree_func_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer element, + ffi.Pointer data, + ) + > + >; +typedef cups_ahash_func_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer element, + ffi.Pointer data, + ) + > + >; +typedef cups_array_func_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer first, + ffi.Pointer second, + ffi.Pointer data, + ) + > + >; +typedef cups_array_t = _cups_array_s; + +enum cups_bool_e { + CUPS_FALSE(0), + CUPS_TRUE(1); + + final int value; + const cups_bool_e(this.value); + + static cups_bool_e fromValue(int value) => switch (value) { + 0 => CUPS_FALSE, + 1 => CUPS_TRUE, + _ => throw ArgumentError('Unknown value for cups_bool_e: $value'), + }; +} + +typedef cups_client_cert_cb_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer http, + ffi.Pointer tls, + ffi.Pointer distinguished_names, + ffi.Pointer user_data, + ) + > + >; + +enum cups_cspace_e { + CUPS_CSPACE_W(0), + CUPS_CSPACE_RGB(1), + CUPS_CSPACE_RGBA(2), + CUPS_CSPACE_K(3), + CUPS_CSPACE_CMY(4), + CUPS_CSPACE_YMC(5), + CUPS_CSPACE_CMYK(6), + CUPS_CSPACE_YMCK(7), + CUPS_CSPACE_KCMY(8), + CUPS_CSPACE_KCMYcm(9), + CUPS_CSPACE_GMCK(10), + CUPS_CSPACE_GMCS(11), + CUPS_CSPACE_WHITE(12), + CUPS_CSPACE_GOLD(13), + CUPS_CSPACE_SILVER(14), + CUPS_CSPACE_CIEXYZ(15), + CUPS_CSPACE_CIELab(16), + CUPS_CSPACE_RGBW(17), + CUPS_CSPACE_SW(18), + CUPS_CSPACE_SRGB(19), + CUPS_CSPACE_ADOBERGB(20), + CUPS_CSPACE_P3E(21), + CUPS_CSPACE_GRAYE(22), + CUPS_CSPACE_ICC1(32), + CUPS_CSPACE_ICC2(33), + CUPS_CSPACE_ICC3(34), + CUPS_CSPACE_ICC4(35), + CUPS_CSPACE_ICC5(36), + CUPS_CSPACE_ICC6(37), + CUPS_CSPACE_ICC7(38), + CUPS_CSPACE_ICC8(39), + CUPS_CSPACE_ICC9(40), + CUPS_CSPACE_ICCA(41), + CUPS_CSPACE_ICCB(42), + CUPS_CSPACE_ICCC(43), + CUPS_CSPACE_ICCD(44), + CUPS_CSPACE_ICCE(45), + CUPS_CSPACE_ICCF(46), + CUPS_CSPACE_DEVICE1(48), + CUPS_CSPACE_DEVICE2(49), + CUPS_CSPACE_DEVICE3(50), + CUPS_CSPACE_DEVICE4(51), + CUPS_CSPACE_DEVICE5(52), + CUPS_CSPACE_DEVICE6(53), + CUPS_CSPACE_DEVICE7(54), + CUPS_CSPACE_DEVICE8(55), + CUPS_CSPACE_DEVICE9(56), + CUPS_CSPACE_DEVICEA(57), + CUPS_CSPACE_DEVICEB(58), + CUPS_CSPACE_DEVICEC(59), + CUPS_CSPACE_DEVICED(60), + CUPS_CSPACE_DEVICEE(61), + CUPS_CSPACE_DEVICEF(62); + + final int value; + const cups_cspace_e(this.value); + + static cups_cspace_e fromValue(int value) => switch (value) { + 0 => CUPS_CSPACE_W, + 1 => CUPS_CSPACE_RGB, + 2 => CUPS_CSPACE_RGBA, + 3 => CUPS_CSPACE_K, + 4 => CUPS_CSPACE_CMY, + 5 => CUPS_CSPACE_YMC, + 6 => CUPS_CSPACE_CMYK, + 7 => CUPS_CSPACE_YMCK, + 8 => CUPS_CSPACE_KCMY, + 9 => CUPS_CSPACE_KCMYcm, + 10 => CUPS_CSPACE_GMCK, + 11 => CUPS_CSPACE_GMCS, + 12 => CUPS_CSPACE_WHITE, + 13 => CUPS_CSPACE_GOLD, + 14 => CUPS_CSPACE_SILVER, + 15 => CUPS_CSPACE_CIEXYZ, + 16 => CUPS_CSPACE_CIELab, + 17 => CUPS_CSPACE_RGBW, + 18 => CUPS_CSPACE_SW, + 19 => CUPS_CSPACE_SRGB, + 20 => CUPS_CSPACE_ADOBERGB, + 21 => CUPS_CSPACE_P3E, + 22 => CUPS_CSPACE_GRAYE, + 32 => CUPS_CSPACE_ICC1, + 33 => CUPS_CSPACE_ICC2, + 34 => CUPS_CSPACE_ICC3, + 35 => CUPS_CSPACE_ICC4, + 36 => CUPS_CSPACE_ICC5, + 37 => CUPS_CSPACE_ICC6, + 38 => CUPS_CSPACE_ICC7, + 39 => CUPS_CSPACE_ICC8, + 40 => CUPS_CSPACE_ICC9, + 41 => CUPS_CSPACE_ICCA, + 42 => CUPS_CSPACE_ICCB, + 43 => CUPS_CSPACE_ICCC, + 44 => CUPS_CSPACE_ICCD, + 45 => CUPS_CSPACE_ICCE, + 46 => CUPS_CSPACE_ICCF, + 48 => CUPS_CSPACE_DEVICE1, + 49 => CUPS_CSPACE_DEVICE2, + 50 => CUPS_CSPACE_DEVICE3, + 51 => CUPS_CSPACE_DEVICE4, + 52 => CUPS_CSPACE_DEVICE5, + 53 => CUPS_CSPACE_DEVICE6, + 54 => CUPS_CSPACE_DEVICE7, + 55 => CUPS_CSPACE_DEVICE8, + 56 => CUPS_CSPACE_DEVICE9, + 57 => CUPS_CSPACE_DEVICEA, + 58 => CUPS_CSPACE_DEVICEB, + 59 => CUPS_CSPACE_DEVICEC, + 60 => CUPS_CSPACE_DEVICED, + 61 => CUPS_CSPACE_DEVICEE, + 62 => CUPS_CSPACE_DEVICEF, + _ => throw ArgumentError('Unknown value for cups_cspace_e: $value'), + }; +} + +enum cups_cut_e { + CUPS_CUT_NONE(0), + CUPS_CUT_FILE(1), + CUPS_CUT_JOB(2), + CUPS_CUT_SET(3), + CUPS_CUT_PAGE(4); + + final int value; + const cups_cut_e(this.value); + + static cups_cut_e fromValue(int value) => switch (value) { + 0 => CUPS_CUT_NONE, + 1 => CUPS_CUT_FILE, + 2 => CUPS_CUT_JOB, + 3 => CUPS_CUT_SET, + 4 => CUPS_CUT_PAGE, + _ => throw ArgumentError('Unknown value for cups_cut_e: $value'), + }; +} + +typedef cups_dest_block_t = ffi.Pointer; +typedef Dartcups_dest_block_t = + objc.ObjCBlock)>; +typedef cups_dest_cb_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer user_data, + ffi.UnsignedInt flags, + ffi.Pointer dest, + ) + > + >; + +final class cups_dest_s extends ffi.Struct { + external ffi.Pointer name; + + external ffi.Pointer instance; + + @ffi.Int() + external int is_default; + + @ffi.Int() + external int num_options; + + external ffi.Pointer options; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer name, + required ffi.Pointer instance, + required int is_default, + required int num_options, + required ffi.Pointer options, + }) => $allocator() + ..ref.name = name + ..ref.instance = instance + ..ref.is_default = is_default + ..ref.num_options = num_options + ..ref.options = options; +} + +typedef cups_dest_t = cups_dest_s; +typedef cups_dinfo_t = _cups_dinfo_s; + +enum cups_edge_e { + CUPS_EDGE_TOP(0), + CUPS_EDGE_RIGHT(1), + CUPS_EDGE_BOTTOM(2), + CUPS_EDGE_LEFT(3); + + final int value; + const cups_edge_e(this.value); + + static cups_edge_e fromValue(int value) => switch (value) { + 0 => CUPS_EDGE_TOP, + 1 => CUPS_EDGE_RIGHT, + 2 => CUPS_EDGE_BOTTOM, + 3 => CUPS_EDGE_LEFT, + _ => throw ArgumentError('Unknown value for cups_edge_e: $value'), + }; +} + +enum cups_encoding_e { + CUPS_AUTO_ENCODING(-1), + CUPS_US_ASCII(0), + CUPS_ISO8859_1(1), + CUPS_ISO8859_2(2), + CUPS_ISO8859_3(3), + CUPS_ISO8859_4(4), + CUPS_ISO8859_5(5), + CUPS_ISO8859_6(6), + CUPS_ISO8859_7(7), + CUPS_ISO8859_8(8), + CUPS_ISO8859_9(9), + CUPS_ISO8859_10(10), + CUPS_UTF8(11), + CUPS_ISO8859_13(12), + CUPS_ISO8859_14(13), + CUPS_ISO8859_15(14), + CUPS_WINDOWS_874(15), + CUPS_WINDOWS_1250(16), + CUPS_WINDOWS_1251(17), + CUPS_WINDOWS_1252(18), + CUPS_WINDOWS_1253(19), + CUPS_WINDOWS_1254(20), + CUPS_WINDOWS_1255(21), + CUPS_WINDOWS_1256(22), + CUPS_WINDOWS_1257(23), + CUPS_WINDOWS_1258(24), + CUPS_KOI8_R(25), + CUPS_KOI8_U(26), + CUPS_ISO8859_11(27), + CUPS_ISO8859_16(28), + CUPS_MAC_ROMAN(29), + CUPS_ENCODING_SBCS_END(63), + CUPS_WINDOWS_932(64), + CUPS_WINDOWS_936(65), + CUPS_WINDOWS_949(66), + CUPS_WINDOWS_950(67), + CUPS_WINDOWS_1361(68), + CUPS_ENCODING_DBCS_END(127), + CUPS_EUC_CN(128), + CUPS_EUC_JP(129), + CUPS_EUC_KR(130), + CUPS_EUC_TW(131), + CUPS_JIS_X0213(132), + CUPS_ENCODING_VBCS_END(191); + + final int value; + const cups_encoding_e(this.value); + + static cups_encoding_e fromValue(int value) => switch (value) { + -1 => CUPS_AUTO_ENCODING, + 0 => CUPS_US_ASCII, + 1 => CUPS_ISO8859_1, + 2 => CUPS_ISO8859_2, + 3 => CUPS_ISO8859_3, + 4 => CUPS_ISO8859_4, + 5 => CUPS_ISO8859_5, + 6 => CUPS_ISO8859_6, + 7 => CUPS_ISO8859_7, + 8 => CUPS_ISO8859_8, + 9 => CUPS_ISO8859_9, + 10 => CUPS_ISO8859_10, + 11 => CUPS_UTF8, + 12 => CUPS_ISO8859_13, + 13 => CUPS_ISO8859_14, + 14 => CUPS_ISO8859_15, + 15 => CUPS_WINDOWS_874, + 16 => CUPS_WINDOWS_1250, + 17 => CUPS_WINDOWS_1251, + 18 => CUPS_WINDOWS_1252, + 19 => CUPS_WINDOWS_1253, + 20 => CUPS_WINDOWS_1254, + 21 => CUPS_WINDOWS_1255, + 22 => CUPS_WINDOWS_1256, + 23 => CUPS_WINDOWS_1257, + 24 => CUPS_WINDOWS_1258, + 25 => CUPS_KOI8_R, + 26 => CUPS_KOI8_U, + 27 => CUPS_ISO8859_11, + 28 => CUPS_ISO8859_16, + 29 => CUPS_MAC_ROMAN, + 63 => CUPS_ENCODING_SBCS_END, + 64 => CUPS_WINDOWS_932, + 65 => CUPS_WINDOWS_936, + 66 => CUPS_WINDOWS_949, + 67 => CUPS_WINDOWS_950, + 68 => CUPS_WINDOWS_1361, + 127 => CUPS_ENCODING_DBCS_END, + 128 => CUPS_EUC_CN, + 129 => CUPS_EUC_JP, + 130 => CUPS_EUC_KR, + 131 => CUPS_EUC_TW, + 132 => CUPS_JIS_X0213, + 191 => CUPS_ENCODING_VBCS_END, + _ => throw ArgumentError('Unknown value for cups_encoding_e: $value'), + }; +} + +typedef cups_file_t = _cups_file_s; +typedef cups_interpret_cb_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer header, + ffi.Int preferred_bits, + ) + > + >; + +final class cups_job_s extends ffi.Struct { + @ffi.Int() + external int id; + + external ffi.Pointer dest; + + external ffi.Pointer title; + + external ffi.Pointer user; + + external ffi.Pointer format; + + @ffi.UnsignedInt() + external int stateAsInt; + + ipp_jstate_e get state => ipp_jstate_e.fromValue(stateAsInt); + set state(ipp_jstate_e value) => stateAsInt = value.value; + + @ffi.Int() + external int size; + + @ffi.Int() + external int priority; + + @time_t() + external int completed_time; + + @time_t() + external int creation_time; + + @time_t() + external int processing_time; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int id, + required ffi.Pointer dest, + required ffi.Pointer title, + required ffi.Pointer user, + required ffi.Pointer format, + required ipp_jstate_e state, + required int size, + required int priority, + required int completed_time, + required int creation_time, + required int processing_time, + }) => $allocator() + ..ref.id = id + ..ref.dest = dest + ..ref.title = title + ..ref.user = user + ..ref.format = format + ..ref.state = state + ..ref.size = size + ..ref.priority = priority + ..ref.completed_time = completed_time + ..ref.creation_time = creation_time + ..ref.processing_time = processing_time; +} + +typedef cups_job_t = cups_job_s; + +enum cups_jog_e { + CUPS_JOG_NONE(0), + CUPS_JOG_FILE(1), + CUPS_JOG_JOB(2), + CUPS_JOG_SET(3); + + final int value; + const cups_jog_e(this.value); + + static cups_jog_e fromValue(int value) => switch (value) { + 0 => CUPS_JOG_NONE, + 1 => CUPS_JOG_FILE, + 2 => CUPS_JOG_JOB, + 3 => CUPS_JOG_SET, + _ => throw ArgumentError('Unknown value for cups_jog_e: $value'), + }; +} + +final class cups_lang_s extends ffi.Struct { + external ffi.Pointer next; + + @ffi.Int() + external int used; + + @ffi.Int() + external int encodingAsInt; + + cups_encoding_e get encoding => cups_encoding_e.fromValue(encodingAsInt); + set encoding(cups_encoding_e value) => encodingAsInt = value.value; + + @ffi.Array.multi([16]) + external ffi.Array language; + + external ffi.Pointer strings; +} + +typedef cups_lang_t = cups_lang_s; + +enum cups_mode_e { + CUPS_RASTER_READ(0), + CUPS_RASTER_WRITE(1), + CUPS_RASTER_WRITE_COMPRESSED(2), + CUPS_RASTER_WRITE_PWG(3), + CUPS_RASTER_WRITE_APPLE(4); + + final int value; + const cups_mode_e(this.value); + + static cups_mode_e fromValue(int value) => switch (value) { + 0 => CUPS_RASTER_READ, + 1 => CUPS_RASTER_WRITE, + 2 => CUPS_RASTER_WRITE_COMPRESSED, + 3 => CUPS_RASTER_WRITE_PWG, + 4 => CUPS_RASTER_WRITE_APPLE, + _ => throw ArgumentError('Unknown value for cups_mode_e: $value'), + }; +} + +final class cups_option_s extends ffi.Struct { + external ffi.Pointer name; + + external ffi.Pointer value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer name, + required ffi.Pointer value, + }) => $allocator() + ..ref.name = name + ..ref.value = value; +} + +typedef cups_option_t = cups_option_s; + +enum cups_order_e { + CUPS_ORDER_CHUNKED(0), + CUPS_ORDER_BANDED(1), + CUPS_ORDER_PLANAR(2); + + final int value; + const cups_order_e(this.value); + + static cups_order_e fromValue(int value) => switch (value) { + 0 => CUPS_ORDER_CHUNKED, + 1 => CUPS_ORDER_BANDED, + 2 => CUPS_ORDER_PLANAR, + _ => throw ArgumentError('Unknown value for cups_order_e: $value'), + }; +} + +enum cups_orient_e { + CUPS_ORIENT_0(0), + CUPS_ORIENT_90(1), + CUPS_ORIENT_180(2), + CUPS_ORIENT_270(3); + + final int value; + const cups_orient_e(this.value); + + static cups_orient_e fromValue(int value) => switch (value) { + 0 => CUPS_ORIENT_0, + 1 => CUPS_ORIENT_90, + 2 => CUPS_ORIENT_180, + 3 => CUPS_ORIENT_270, + _ => throw ArgumentError('Unknown value for cups_orient_e: $value'), + }; +} + +final class cups_page_header2_s extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array MediaClass; + + @ffi.Array.multi([64]) + external ffi.Array MediaColor; + + @ffi.Array.multi([64]) + external ffi.Array MediaType; + + @ffi.Array.multi([64]) + external ffi.Array OutputType; + + @ffi.UnsignedInt() + external int AdvanceDistance; + + @ffi.UnsignedInt() + external int AdvanceMediaAsInt; + + cups_adv_e get AdvanceMedia => cups_adv_e.fromValue(AdvanceMediaAsInt); + set AdvanceMedia(cups_adv_e value) => AdvanceMediaAsInt = value.value; + + @ffi.UnsignedInt() + external int CollateAsInt; + + cups_bool_e get Collate => cups_bool_e.fromValue(CollateAsInt); + set Collate(cups_bool_e value) => CollateAsInt = value.value; + + @ffi.UnsignedInt() + external int CutMediaAsInt; + + cups_cut_e get CutMedia => cups_cut_e.fromValue(CutMediaAsInt); + set CutMedia(cups_cut_e value) => CutMediaAsInt = value.value; + + @ffi.UnsignedInt() + external int DuplexAsInt; + + cups_bool_e get Duplex => cups_bool_e.fromValue(DuplexAsInt); + set Duplex(cups_bool_e value) => DuplexAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array HWResolution; + + @ffi.Array.multi([4]) + external ffi.Array ImagingBoundingBox; + + @ffi.UnsignedInt() + external int InsertSheetAsInt; + + cups_bool_e get InsertSheet => cups_bool_e.fromValue(InsertSheetAsInt); + set InsertSheet(cups_bool_e value) => InsertSheetAsInt = value.value; + + @ffi.UnsignedInt() + external int JogAsInt; + + cups_jog_e get Jog => cups_jog_e.fromValue(JogAsInt); + set Jog(cups_jog_e value) => JogAsInt = value.value; + + @ffi.UnsignedInt() + external int LeadingEdgeAsInt; + + cups_edge_e get LeadingEdge => cups_edge_e.fromValue(LeadingEdgeAsInt); + set LeadingEdge(cups_edge_e value) => LeadingEdgeAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array Margins; + + @ffi.UnsignedInt() + external int ManualFeedAsInt; + + cups_bool_e get ManualFeed => cups_bool_e.fromValue(ManualFeedAsInt); + set ManualFeed(cups_bool_e value) => ManualFeedAsInt = value.value; + + @ffi.UnsignedInt() + external int MediaPosition; + + @ffi.UnsignedInt() + external int MediaWeight; + + @ffi.UnsignedInt() + external int MirrorPrintAsInt; + + cups_bool_e get MirrorPrint => cups_bool_e.fromValue(MirrorPrintAsInt); + set MirrorPrint(cups_bool_e value) => MirrorPrintAsInt = value.value; + + @ffi.UnsignedInt() + external int NegativePrintAsInt; + + cups_bool_e get NegativePrint => cups_bool_e.fromValue(NegativePrintAsInt); + set NegativePrint(cups_bool_e value) => NegativePrintAsInt = value.value; + + @ffi.UnsignedInt() + external int NumCopies; + + @ffi.UnsignedInt() + external int OrientationAsInt; + + cups_orient_e get Orientation => cups_orient_e.fromValue(OrientationAsInt); + set Orientation(cups_orient_e value) => OrientationAsInt = value.value; + + @ffi.UnsignedInt() + external int OutputFaceUpAsInt; + + cups_bool_e get OutputFaceUp => cups_bool_e.fromValue(OutputFaceUpAsInt); + set OutputFaceUp(cups_bool_e value) => OutputFaceUpAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array PageSize; + + @ffi.UnsignedInt() + external int SeparationsAsInt; + + cups_bool_e get Separations => cups_bool_e.fromValue(SeparationsAsInt); + set Separations(cups_bool_e value) => SeparationsAsInt = value.value; + + @ffi.UnsignedInt() + external int TraySwitchAsInt; + + cups_bool_e get TraySwitch => cups_bool_e.fromValue(TraySwitchAsInt); + set TraySwitch(cups_bool_e value) => TraySwitchAsInt = value.value; + + @ffi.UnsignedInt() + external int TumbleAsInt; + + cups_bool_e get Tumble => cups_bool_e.fromValue(TumbleAsInt); + set Tumble(cups_bool_e value) => TumbleAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsWidth; + + @ffi.UnsignedInt() + external int cupsHeight; + + @ffi.UnsignedInt() + external int cupsMediaType; + + @ffi.UnsignedInt() + external int cupsBitsPerColor; + + @ffi.UnsignedInt() + external int cupsBitsPerPixel; + + @ffi.UnsignedInt() + external int cupsBytesPerLine; + + @ffi.UnsignedInt() + external int cupsColorOrderAsInt; + + cups_order_e get cupsColorOrder => + cups_order_e.fromValue(cupsColorOrderAsInt); + set cupsColorOrder(cups_order_e value) => cupsColorOrderAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsColorSpaceAsInt; + + cups_cspace_e get cupsColorSpace => + cups_cspace_e.fromValue(cupsColorSpaceAsInt); + set cupsColorSpace(cups_cspace_e value) => cupsColorSpaceAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsCompression; + + @ffi.UnsignedInt() + external int cupsRowCount; + + @ffi.UnsignedInt() + external int cupsRowFeed; + + @ffi.UnsignedInt() + external int cupsRowStep; + + @ffi.UnsignedInt() + external int cupsNumColors; + + @ffi.Float() + external double cupsBorderlessScalingFactor; + + @ffi.Array.multi([2]) + external ffi.Array cupsPageSize; + + @ffi.Array.multi([4]) + external ffi.Array cupsImagingBBox; + + @ffi.Array.multi([16]) + external ffi.Array cupsInteger; + + @ffi.Array.multi([16]) + external ffi.Array cupsReal; + + @ffi.Array.multi([16, 64]) + external ffi.Array> cupsString; + + @ffi.Array.multi([64]) + external ffi.Array cupsMarkerType; + + @ffi.Array.multi([64]) + external ffi.Array cupsRenderingIntent; + + @ffi.Array.multi([64]) + external ffi.Array cupsPageSizeName; +} + +typedef cups_page_header2_t = cups_page_header2_s; + +final class cups_page_header_s extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array MediaClass; + + @ffi.Array.multi([64]) + external ffi.Array MediaColor; + + @ffi.Array.multi([64]) + external ffi.Array MediaType; + + @ffi.Array.multi([64]) + external ffi.Array OutputType; + + @ffi.UnsignedInt() + external int AdvanceDistance; + + @ffi.UnsignedInt() + external int AdvanceMediaAsInt; + + cups_adv_e get AdvanceMedia => cups_adv_e.fromValue(AdvanceMediaAsInt); + set AdvanceMedia(cups_adv_e value) => AdvanceMediaAsInt = value.value; + + @ffi.UnsignedInt() + external int CollateAsInt; + + cups_bool_e get Collate => cups_bool_e.fromValue(CollateAsInt); + set Collate(cups_bool_e value) => CollateAsInt = value.value; + + @ffi.UnsignedInt() + external int CutMediaAsInt; + + cups_cut_e get CutMedia => cups_cut_e.fromValue(CutMediaAsInt); + set CutMedia(cups_cut_e value) => CutMediaAsInt = value.value; + + @ffi.UnsignedInt() + external int DuplexAsInt; + + cups_bool_e get Duplex => cups_bool_e.fromValue(DuplexAsInt); + set Duplex(cups_bool_e value) => DuplexAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array HWResolution; + + @ffi.Array.multi([4]) + external ffi.Array ImagingBoundingBox; + + @ffi.UnsignedInt() + external int InsertSheetAsInt; + + cups_bool_e get InsertSheet => cups_bool_e.fromValue(InsertSheetAsInt); + set InsertSheet(cups_bool_e value) => InsertSheetAsInt = value.value; + + @ffi.UnsignedInt() + external int JogAsInt; + + cups_jog_e get Jog => cups_jog_e.fromValue(JogAsInt); + set Jog(cups_jog_e value) => JogAsInt = value.value; + + @ffi.UnsignedInt() + external int LeadingEdgeAsInt; + + cups_edge_e get LeadingEdge => cups_edge_e.fromValue(LeadingEdgeAsInt); + set LeadingEdge(cups_edge_e value) => LeadingEdgeAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array Margins; + + @ffi.UnsignedInt() + external int ManualFeedAsInt; + + cups_bool_e get ManualFeed => cups_bool_e.fromValue(ManualFeedAsInt); + set ManualFeed(cups_bool_e value) => ManualFeedAsInt = value.value; + + @ffi.UnsignedInt() + external int MediaPosition; + + @ffi.UnsignedInt() + external int MediaWeight; + + @ffi.UnsignedInt() + external int MirrorPrintAsInt; + + cups_bool_e get MirrorPrint => cups_bool_e.fromValue(MirrorPrintAsInt); + set MirrorPrint(cups_bool_e value) => MirrorPrintAsInt = value.value; + + @ffi.UnsignedInt() + external int NegativePrintAsInt; + + cups_bool_e get NegativePrint => cups_bool_e.fromValue(NegativePrintAsInt); + set NegativePrint(cups_bool_e value) => NegativePrintAsInt = value.value; + + @ffi.UnsignedInt() + external int NumCopies; + + @ffi.UnsignedInt() + external int OrientationAsInt; + + cups_orient_e get Orientation => cups_orient_e.fromValue(OrientationAsInt); + set Orientation(cups_orient_e value) => OrientationAsInt = value.value; + + @ffi.UnsignedInt() + external int OutputFaceUpAsInt; + + cups_bool_e get OutputFaceUp => cups_bool_e.fromValue(OutputFaceUpAsInt); + set OutputFaceUp(cups_bool_e value) => OutputFaceUpAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array PageSize; + + @ffi.UnsignedInt() + external int SeparationsAsInt; + + cups_bool_e get Separations => cups_bool_e.fromValue(SeparationsAsInt); + set Separations(cups_bool_e value) => SeparationsAsInt = value.value; + + @ffi.UnsignedInt() + external int TraySwitchAsInt; + + cups_bool_e get TraySwitch => cups_bool_e.fromValue(TraySwitchAsInt); + set TraySwitch(cups_bool_e value) => TraySwitchAsInt = value.value; + + @ffi.UnsignedInt() + external int TumbleAsInt; + + cups_bool_e get Tumble => cups_bool_e.fromValue(TumbleAsInt); + set Tumble(cups_bool_e value) => TumbleAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsWidth; + + @ffi.UnsignedInt() + external int cupsHeight; + + @ffi.UnsignedInt() + external int cupsMediaType; + + @ffi.UnsignedInt() + external int cupsBitsPerColor; + + @ffi.UnsignedInt() + external int cupsBitsPerPixel; + + @ffi.UnsignedInt() + external int cupsBytesPerLine; + + @ffi.UnsignedInt() + external int cupsColorOrderAsInt; + + cups_order_e get cupsColorOrder => + cups_order_e.fromValue(cupsColorOrderAsInt); + set cupsColorOrder(cups_order_e value) => cupsColorOrderAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsColorSpaceAsInt; + + cups_cspace_e get cupsColorSpace => + cups_cspace_e.fromValue(cupsColorSpaceAsInt); + set cupsColorSpace(cups_cspace_e value) => cupsColorSpaceAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsCompression; + + @ffi.UnsignedInt() + external int cupsRowCount; + + @ffi.UnsignedInt() + external int cupsRowFeed; + + @ffi.UnsignedInt() + external int cupsRowStep; +} + +typedef cups_page_header_t = cups_page_header_s; +typedef cups_password_cb2_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer prompt, + ffi.Pointer http, + ffi.Pointer method, + ffi.Pointer resource, + ffi.Pointer user_data, + ) + > + >; +typedef cups_password_cb_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer prompt) + > + >; + +enum cups_ptype_e { + CUPS_PRINTER_LOCAL(0), + CUPS_PRINTER_CLASS(1), + CUPS_PRINTER_REMOTE(2), + CUPS_PRINTER_BW(4), + CUPS_PRINTER_COLOR(8), + CUPS_PRINTER_DUPLEX(16), + CUPS_PRINTER_STAPLE(32), + CUPS_PRINTER_COPIES(64), + CUPS_PRINTER_COLLATE(128), + CUPS_PRINTER_PUNCH(256), + CUPS_PRINTER_COVER(512), + CUPS_PRINTER_BIND(1024), + CUPS_PRINTER_SORT(2048), + CUPS_PRINTER_SMALL(4096), + CUPS_PRINTER_MEDIUM(8192), + CUPS_PRINTER_LARGE(16384), + CUPS_PRINTER_VARIABLE(32768), + CUPS_PRINTER_IMPLICIT(65536), + CUPS_PRINTER_DEFAULT(131072), + CUPS_PRINTER_FAX(262144), + CUPS_PRINTER_REJECTING(524288), + CUPS_PRINTER_DELETE(1048576), + CUPS_PRINTER_NOT_SHARED(2097152), + CUPS_PRINTER_AUTHENTICATED(4194304), + CUPS_PRINTER_COMMANDS(8388608), + CUPS_PRINTER_DISCOVERED(16777216), + CUPS_PRINTER_SCANNER(33554432), + CUPS_PRINTER_MFP(67108864), + CUPS_PRINTER_3D(134217728), + CUPS_PRINTER_OPTIONS(458748); + + final int value; + const cups_ptype_e(this.value); + + static cups_ptype_e fromValue(int value) => switch (value) { + 0 => CUPS_PRINTER_LOCAL, + 1 => CUPS_PRINTER_CLASS, + 2 => CUPS_PRINTER_REMOTE, + 4 => CUPS_PRINTER_BW, + 8 => CUPS_PRINTER_COLOR, + 16 => CUPS_PRINTER_DUPLEX, + 32 => CUPS_PRINTER_STAPLE, + 64 => CUPS_PRINTER_COPIES, + 128 => CUPS_PRINTER_COLLATE, + 256 => CUPS_PRINTER_PUNCH, + 512 => CUPS_PRINTER_COVER, + 1024 => CUPS_PRINTER_BIND, + 2048 => CUPS_PRINTER_SORT, + 4096 => CUPS_PRINTER_SMALL, + 8192 => CUPS_PRINTER_MEDIUM, + 16384 => CUPS_PRINTER_LARGE, + 32768 => CUPS_PRINTER_VARIABLE, + 65536 => CUPS_PRINTER_IMPLICIT, + 131072 => CUPS_PRINTER_DEFAULT, + 262144 => CUPS_PRINTER_FAX, + 524288 => CUPS_PRINTER_REJECTING, + 1048576 => CUPS_PRINTER_DELETE, + 2097152 => CUPS_PRINTER_NOT_SHARED, + 4194304 => CUPS_PRINTER_AUTHENTICATED, + 8388608 => CUPS_PRINTER_COMMANDS, + 16777216 => CUPS_PRINTER_DISCOVERED, + 33554432 => CUPS_PRINTER_SCANNER, + 67108864 => CUPS_PRINTER_MFP, + 134217728 => CUPS_PRINTER_3D, + 458748 => CUPS_PRINTER_OPTIONS, + _ => throw ArgumentError('Unknown value for cups_ptype_e: $value'), + }; +} + +typedef cups_ptype_t = ffi.UnsignedInt; +typedef Dartcups_ptype_t = int; +typedef cups_raster_iocb_t = + ffi.Pointer< + ffi.NativeFunction< + ssize_t Function( + ffi.Pointer ctx, + ffi.Pointer buffer, + ffi.Size length, + ) + > + >; +typedef cups_raster_t = _cups_raster_s; +typedef cups_server_cert_cb_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer http, + ffi.Pointer tls, + ffi.Pointer certs, + ffi.Pointer user_data, + ) + > + >; + +final class cups_size_s extends ffi.Struct { + @ffi.Array.multi([128]) + external ffi.Array media; + + @ffi.Int() + external int width; + + @ffi.Int() + external int length; + + @ffi.Int() + external int bottom; + + @ffi.Int() + external int left; + + @ffi.Int() + external int right; + + @ffi.Int() + external int top; +} + +typedef cups_size_t = cups_size_s; + +const int curNumberPartsVersion = 1; + +const int currLeadingZ = 128; + +const int currNegSym = 32; + +const int currSymLead = 16; + +const int currTrailingZ = 64; + +const int currentCurLang = -4; + +const int currentDefLang = -5; + +const int cursorDev = 14; + +const int cutDev = 10; + +const int dInstErr = -26; + +const int dRemovErr = -25; + +typedef daddr_t = ffi.Int32; +typedef Dartdaddr_t = int; + +const int dataAlreadyClosed = -2045; + +const int dataAlreadyOpenForWrite = -2044; + +const int dataNoDataRef = -2047; + +const int dataNotOpenForRead = -2042; + +const int dataNotOpenForWrite = -2043; + +const int dataVerErr = -68; + +const int dateStdMask = 127; + +const int dateTimeInvalid = 34816; + +const int dateTimeNotFound = 33792; + +const int dayField = 3; + +const int dayLdingZ = 32; + +const int dayMask = 8; + +const int dayOfWeekField = 7; + +const int dayOfWeekMask = 128; + +const int dayOfYearField = 8; + +const int dayOfYearMask = 256; + +@Deprecated('Deprecated') +const int dblDagger = 224; + +const int dceExtErr = -30; + +const int dcmBadDataSizeErr = -7117; + +const int dcmBadDictionaryErr = -7102; + +const int dcmBadFeatureErr = -7124; + +const int dcmBadFieldInfoErr = -7111; + +const int dcmBadFieldTypeErr = -7112; + +const int dcmBadFindMethodErr = -7118; + +const int dcmBadKeyErr = -7115; + +const int dcmBadPropertyErr = -7119; + +const int dcmBlockFullErr = -7107; + +const int dcmBufferOverflowErr = -7127; + +const int dcmDictionaryBusyErr = -7105; + +const int dcmDictionaryNotOpenErr = -7104; + +const int dcmDupRecordErr = -7109; + +const int dcmIterationCompleteErr = -7126; + +const int dcmNecessaryFieldErr = -7110; + +const int dcmNoAccessMethodErr = -7122; + +const int dcmNoFieldErr = -7113; + +const int dcmNoRecordErr = -7108; + +const int dcmNotDictionaryErr = -7101; + +const int dcmParamErr = -7100; + +const int dcmPermissionErr = -7103; + +const int dcmProtectedErr = -7121; + +const int dcmTooManyKeyErr = -7116; + +const int ddpLenErr = -92; + +const int ddpSktErr = -91; + +const int deactivDev = 6; + +const int debuggingDuplicateOptionErr = -13882; + +const int debuggingDuplicateSignatureErr = -13881; + +const int debuggingExecutionContextErr = -13880; + +const int debuggingInvalidNameErr = -13885; + +const int debuggingInvalidOptionErr = -13884; + +const int debuggingInvalidSignatureErr = -13883; + +const int debuggingNoCallbackErr = -13886; + +const int debuggingNoMatchErr = -13887; + +final class decform extends ffi.Struct { + @ffi.Char() + external int style; + + @ffi.Char() + external int unused; + + @ffi.Short() + external int digits; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int style, + required int unused, + required int digits, + }) => $allocator() + ..ref.style = style + ..ref.unused = unused + ..ref.digits = digits; +} + +final class decimal extends ffi.Struct { + @ffi.Char() + external int sgn; + + @ffi.Char() + external int unused; + + @ffi.Short() + external int exp$1; + + external UnnamedStruct$4 sig; +} + +@Deprecated('Deprecated') +const int defaultComponentAnyFlags = 1; + +@Deprecated('Deprecated') +const int defaultComponentAnyFlagsAnyManufacturer = 3; + +@Deprecated('Deprecated') +const int defaultComponentAnyFlagsAnyManufacturerAnySubType = 7; + +@Deprecated('Deprecated') +const int defaultComponentAnyManufacturer = 2; + +@Deprecated('Deprecated') +const int defaultComponentAnySubType = 4; + +@Deprecated('Deprecated') +const int defaultComponentIdentical = 0; + +@Deprecated('Deprecated') +const int defaultPhysicalEntryCount = 8; + +@Deprecated('Deprecated') +const int delimPad = -2; + +const int descriptorFontTableTag = 1717859171; + +const int desktopDamagedErr = -1305; + +const int desktopIconResource = -3992; + +const int destPortErr = -906; + +typedef dev_t = __darwin_dev_t; + +const int developStage = 32; + +const int deviceCantMeetRequest = -9408; + +@Deprecated('Deprecated') +const int diaeresisUprE = 232; + +@Deprecated('Deprecated') +const int diaeresisUprI = 236; + +@Deprecated('Deprecated') +const int diaeresisUprY = 217; + +const int dialogNoTimeoutErr = -5640; + +const int diffVolErr = -1303; + +const int digiUnimpErr = -2201; + +const int dirFulErr = -33; + +const int dirNFErr = -120; + +const int directXObjectAlreadyExists = -8990; + +enum dispatch_autorelease_frequency_t { + DISPATCH_AUTORELEASE_FREQUENCY_INHERIT(0), + DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM(1), + DISPATCH_AUTORELEASE_FREQUENCY_NEVER(2); + + final int value; + const dispatch_autorelease_frequency_t(this.value); + + static dispatch_autorelease_frequency_t fromValue(int value) => + switch (value) { + 0 => DISPATCH_AUTORELEASE_FREQUENCY_INHERIT, + 1 => DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM, + 2 => DISPATCH_AUTORELEASE_FREQUENCY_NEVER, + _ => throw ArgumentError( + 'Unknown value for dispatch_autorelease_frequency_t: $value', + ), + }; +} + +sealed class dispatch_block_flags_t { + static const DISPATCH_BLOCK_BARRIER = 1; + static const DISPATCH_BLOCK_DETACHED = 2; + static const DISPATCH_BLOCK_ASSIGN_CURRENT = 4; + static const DISPATCH_BLOCK_NO_QOS_CLASS = 8; + static const DISPATCH_BLOCK_INHERIT_QOS_CLASS = 16; + static const DISPATCH_BLOCK_ENFORCE_QOS_CLASS = 32; +} + +typedef dispatch_block_t = ffi.Pointer; +typedef Dartdispatch_block_t = objc.ObjCBlock; +typedef dispatch_data_applier_t = ffi.Pointer; +typedef Dartdispatch_data_applier_t = + objc.ObjCBlock< + ffi.Bool Function( + objc.NSObject, + ffi.Size, + ffi.Pointer, + ffi.Size, + ) + >; + +final class dispatch_data_s extends ffi.Opaque {} + +typedef dispatch_data_t = ffi.Pointer; +typedef Dartdispatch_data_t = objc.NSObject; +typedef dispatch_fd_t = ffi.Int; +typedef Dartdispatch_fd_t = int; +typedef dispatch_function_t = + ffi.Pointer)>>; +typedef dispatch_group_t = ffi.Pointer; +typedef Dartdispatch_group_t = objc.NSObject; +typedef dispatch_io_close_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_io_close_flags_t = int; +typedef dispatch_io_handler_t = ffi.Pointer; +typedef Dartdispatch_io_handler_t = + objc.ObjCBlock; +typedef dispatch_io_interval_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_io_interval_flags_t = int; +typedef dispatch_io_t = ffi.Pointer; +typedef Dartdispatch_io_t = objc.NSObject; +typedef dispatch_io_type_t = ffi.UnsignedLong; +typedef Dartdispatch_io_type_t = int; +typedef dispatch_object_t = ffi.Pointer; +typedef Dartdispatch_object_t = objc.NSObject; +typedef dispatch_once_t = ffi.IntPtr; +typedef Dartdispatch_once_t = int; + +final class dispatch_queue_attr_s extends ffi.Opaque {} + +typedef dispatch_queue_attr_t = ffi.Pointer; +typedef Dartdispatch_queue_attr_t = objc.NSObject; +typedef dispatch_queue_concurrent_t = ffi.Pointer; +typedef Dartdispatch_queue_concurrent_t = objc.NSObject; +typedef dispatch_queue_global_t = ffi.Pointer; +typedef Dartdispatch_queue_global_t = objc.NSObject; +typedef dispatch_queue_main_t = ffi.Pointer; +typedef Dartdispatch_queue_main_t = objc.NSObject; +typedef dispatch_queue_priority_t = ffi.Long; +typedef Dartdispatch_queue_priority_t = int; + +final class dispatch_queue_s extends ffi.Opaque {} + +typedef dispatch_queue_serial_executor_t = ffi.Pointer; +typedef Dartdispatch_queue_serial_executor_t = objc.NSObject; +typedef dispatch_queue_serial_t = ffi.Pointer; +typedef Dartdispatch_queue_serial_t = objc.NSObject; +typedef dispatch_queue_t = ffi.Pointer; +typedef Dartdispatch_queue_t = objc.NSObject; +typedef dispatch_semaphore_t = ffi.Pointer; +typedef Dartdispatch_semaphore_t = objc.NSObject; +typedef dispatch_source_mach_recv_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_mach_recv_flags_t = int; +typedef dispatch_source_mach_send_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_mach_send_flags_t = int; +typedef dispatch_source_memorypressure_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_memorypressure_flags_t = int; +typedef dispatch_source_proc_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_proc_flags_t = int; +typedef dispatch_source_t = ffi.Pointer; +typedef Dartdispatch_source_t = objc.NSObject; +typedef dispatch_source_timer_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_timer_flags_t = int; + +final class dispatch_source_type_s extends ffi.Opaque {} + +typedef dispatch_source_type_t = ffi.Pointer; +typedef dispatch_source_vnode_flags_t = ffi.UnsignedLong; +typedef Dartdispatch_source_vnode_flags_t = int; +typedef dispatch_time_t = ffi.Uint64; +typedef Dartdispatch_time_t = int; +typedef dispatch_workloop_t = ffi.Pointer; +typedef Dartdispatch_workloop_t = objc.NSObject; + +final class div_t extends ffi.Struct { + @ffi.Int() + external int quot; + + @ffi.Int() + external int rem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int quot, + required int rem, + }) => $allocator() + ..ref.quot = quot + ..ref.rem = rem; +} + +const int dmy = 1; + +@Deprecated('Deprecated') +const int dotlessLwrI = 245; + +@Deprecated('Deprecated') +const int doubleAcute = 253; + +typedef double_t = ffi.Double; +typedef Dartdouble_t = double; + +const int dragNotAcceptedErr = -1857; + +const int driverHardwareGoneErr = -503; + +const int dropFolderIconResource = -3979; + +@Deprecated('Deprecated') +const int drvQType = 3; + +const int ds32BitMode = 103; + +const int dsAddressErr = 2; + +const int dsBadLaunch = 26; + +const int dsBadLibrary = 1010; + +const int dsBadPatch = 99; + +const int dsBadPatchHeader = 83; + +const int dsBadSANEOpcode = 81; + +const int dsBadSlotInt = 51; + +const int dsBadStartupDisk = 42; + +const int dsBufPtrTooLow = 106; + +const int dsBusError = 1; + +const int dsCDEFNotFound = 88; + +const int dsCantHoldSystemHeap = 114; + +const int dsChkErr = 5; + +const int dsCoreErr = 12; + +const int dsDirtyDisk = 20004; + +const int dsDisassemblerInstalled = -11; + +const int dsExtensionsDisabled = -13; + +const int dsFPErr = 16; + +const int dsFSErr = 27; + +const int dsFinderErr = 41; + +const int dsForcedQuit = 20002; + +const int dsGibblyMovedToDisabledFolder = 117; + +const int dsGreeting = 40; + +const int dsHD20Installed = -12; + +const int dsHMenuFindErr = 86; + +const int dsIOCoreErr = 14; + +const int dsIllInstErr = 3; + +const int dsIrqErr = 13; + +const int dsLineAErr = 9; + +const int dsLineFErr = 10; + +const int dsLoadErr = 15; + +const int dsLostConnectionToNetworkDisk = 121; + +const int dsMBATAPISysError = 29203; + +const int dsMBATASysError = 29202; + +const int dsMBExternFlpySysError = 29204; + +const int dsMBFlpySysError = 29201; + +const int dsMBSysError = 29200; + +const int dsMBarNFnd = 85; + +const int dsMDEFNotFound = 89; + +const int dsMacOSROMVersionTooOld = 120; + +const int dsMacsBugInstalled = -10; + +const int dsMemFullErr = 25; + +const int dsMiscErr = 11; + +const int dsMixedModeFailure = 1011; + +const int dsMustUseFCBAccessors = 119; + +const int dsNeedToWriteBootBlocks = 104; + +const int dsNoExtsDisassembler = -2; + +const int dsNoExtsMacsBug = -1; + +const int dsNoFPU = 90; + +const int dsNoPackErr = 17; + +const int dsNoPatch = 98; + +const int dsNoPk1 = 18; + +const int dsNoPk2 = 19; + +const int dsNoPk3 = 20; + +const int dsNoPk4 = 21; + +const int dsNoPk5 = 22; + +const int dsNoPk6 = 23; + +const int dsNoPk7 = 24; + +const int dsNotEnoughRAMToBoot = 105; + +const int dsNotThe1 = 31; + +const int dsOldSystem = 102; + +const int dsOvflowErr = 6; + +const int dsPCCardATASysError = 29205; + +const int dsParityErr = 101; + +const int dsPrivErr = 7; + +const int dsRAMDiskTooBig = 122; + +const int dsReinsert = 30; + +const int dsRemoveDisk = 20003; + +const int dsSCSIWarn = 20010; + +const int dsShutDownOrRestart = 20000; + +const int dsShutDownOrResume = 20109; + +const int dsStknHeap = 28; + +const int dsSwitchOffOrRestart = 20001; + +const int dsSysErr = 32767; + +const int dsSystemFileErr = 43; + +const int dsSystemRequiresPowerPC = 116; + +const int dsTraceErr = 8; + +const int dsUnBootableSystem = 118; + +const int dsVMBadBackingStore = 113; + +const int dsVMDeferredFuncTableFull = 112; + +const int dsWDEFNotFound = 87; + +const int dsWriteToSupervisorStackGuardPage = 128; + +const int dsZeroDivErr = 4; + +const int dskFulErr = -34; + +@Deprecated('Deprecated') +const int dtQType = 7; + +@Deprecated('Deprecated') +const int dummyType = 0; + +const int dupFNErr = -48; + +const int duplicateAtomTypeAndIDErr = -2105; + +const int duplicateFlavorErr = -1853; + +const int duplicateFolderDescErr = -4271; + +const int duplicateHandlerErr = -1855; + +const int duplicatePasteboardFlavorErr = -25134; + +const int duplicateRoutingErr = -4274; + +const int duplicateScrapFlavorErr = -4989; + +@Deprecated('Deprecated') +const int durationDay = 86400000; + +@Deprecated('Deprecated') +const int durationForever = 2147483647; + +@Deprecated('Deprecated') +const int durationHour = 3600000; + +@Deprecated('Deprecated') +const int durationMicrosecond = -1; + +@Deprecated('Deprecated') +const int durationMillisecond = 1; + +@Deprecated('Deprecated') +const int durationMinute = 60000; + +@Deprecated('Deprecated') +const int durationNoWait = 0; + +@Deprecated('Deprecated') +const int durationSecond = 1000; + +final class dyld_kernel_image_info extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array uuid; + + external fsobj_id_t fsobjid; + + external fsid_t fsid$1; + + @ffi.Uint64() + external int load_addr; +} + +typedef dyld_kernel_image_info_array_t = ffi.Pointer; +typedef dyld_kernel_image_info_t = dyld_kernel_image_info; + +final class dyld_kernel_process_info extends ffi.Struct { + external dyld_kernel_image_info cache_image_info; + + @ffi.Uint64() + external int timestamp; + + @ffi.Uint32() + external int imageCount; + + @ffi.Uint32() + external int initialImageCount; + + @ffi.Uint8() + external int dyldState; + + @boolean_t() + external int no_cache; + + @boolean_t() + external int private_cache; +} + +typedef dyld_kernel_process_info_t = dyld_kernel_process_info; + +const int dym = 4; + +const int eADB = 1700881506; + +const int eAddressSpec = 1700881523; + +const int eAnalogAudio = 1701863797; + +const int eAppleTalk = 1701863796; + +const int eAudioLineIn = 1701011817; + +const int eAudioLineOut = 1701011820; + +const int eAudioOut = 1701011823; + +const int eBus = 1700951411; + +const int eCDROM = 1701012512; + +const int eCapsLockDown = 1264807019; + +const int eClearKey = 1802716928; + +const int eCommSlot = 1701012333; + +const int eCommandDown = 1264807268; + +const int eConduit = 1701015406; + +const int eControlDown = 1264809068; + +const int eDVD = 1701082724; + +const int eDeleteKey = 1802711808; + +const int eDeviceType = 1701082740; + +const int eDigitalAudio = 1701864545; + +const int eDisplay = 1701078131; + +const int eDownArrowKey = 1802730752; + +const int eEndKey = 1802729216; + +const int eEnterKey = 1802718208; + +const int eEscapeKey = 1802712320; + +const int eEthernet = 1701012846; + +const int eF10Key = 1802726656; + +const int eF11Key = 1802725120; + +const int eF12Key = 1802727168; + +const int eF13Key = 1802725632; + +const int eF14Key = 1802726144; + +const int eF15Key = 1802727680; + +const int eF1Key = 1802729984; + +const int eF2Key = 1802729472; + +const int eF3Key = 1802724096; + +const int eF4Key = 1802728960; + +const int eF5Key = 1802723328; + +const int eF6Key = 1802723584; + +const int eF7Key = 1802723840; + +const int eF8Key = 1802724352; + +const int eF9Key = 1802724608; + +const int eFireWire = 1701013111; + +const int eFloppy = 1701209120; + +const int eForwardDelKey = 1802728704; + +const int eHD = 1701340192; + +const int eHelpKey = 1802727936; + +const int eHomeKey = 1802728192; + +const int eIP = 1701865840; + +const int eIRTalk = 1701865844; + +const int eInfrared = 1701013874; + +const int eIrDA = 1701865842; + +const int eKeyKind = 1701540724; + +const int eKeyboard = 1701536356; + +const int eLCD = 1701080163; + +const int eLeftArrowKey = 1802730240; + +const int eLenErr = -92; + +const int eLocalTalk = 1701014644; + +const int eMacIP = 1701866857; + +const int eMacVideo = 1701866870; + +const int eMicrophone = 1701014889; + +const int eModem = 1701080429; + +const int eModemPort = 1701014896; + +const int eModemPrinterPort = 1701671024; + +const int eModifiers = 1699570803; + +const int eMonitorOut = 1701014894; + +const int eMouse = 1701670773; + +const int eMultiErr = -91; + +const int eNuBus = 1701737826; + +const int eNuBusCard = 1701080674; + +const int eOptionDown = 1265594484; + +const int ePCIbus = 1701015657; + +const int ePCIcard = 1701081193; + +const int ePCcard = 1701015651; + +const int ePDScard = 1701864563; + +const int ePDSslot = 1701015652; + +const int ePPP = 1701867632; + +const int ePageDownKey = 1802729728; + +const int ePageUpKey = 1802728448; + +const int ePointingDevice = 1701081188; + +const int ePostScript = 1701867635; + +const int ePrinter = 1701081202; + +const int ePrinterPort = 1701015664; + +const int eProtocol = 1701868143; + +const int eReturnKey = 1802707968; + +const int eRightArrowKey = 1802730496; + +const int eSCSI = 1701016419; + +const int eSVGA = 1701868391; + +const int eScheme = 1702060904; + +const int eSerial = 1701868402; + +const int eShiftDown = 1265854068; + +const int eSpeakers = 1701081968; + +const int eStorageDevice = 1701081972; + +const int eSvideo = 1701868406; + +const int eTabKey = 1802711040; + +const int eTokenRing = 1702129515; + +const int eTrackball = 1702130283; + +const int eTrackpad = 1701082224; + +const int eUSB = 1701016947; + +const int eUpArrowKey = 1802731008; + +const int eVideoIn = 1701017193; + +const int eVideoMonitor = 1701082733; + +const int eVideoOut = 1701017199; + +const int editingNotAllowed = -9995; + +const int editionMgrInitErr = -450; + +const int emptyPathErr = -2111; + +typedef emulation_vector_t = ffi.Pointer; + +const int endOfDataReached = -2046; + +const int enumArrows = 1634890351; + +const int enumJustification = 1786082164; + +const int enumKeyForm = 1801876077; + +const int enumPosition = 1886352233; + +const int enumProtection = 1886549102; + +const int enumQuality = 1903518060; + +const int enumSaveOptions = 1935767151; + +const int enumStyle = 1937013100; + +const int enumTransferMode = 1953653102; + +const int envBadVers = -5501; + +const int envNotPresent = -5500; + +const int envVersTooBig = -5502; + +const int eofErr = -39; + +const int eraField = 0; + +const int eraMask = 1; + +const int errAEAccessorNotFound = -1723; + +const int errAEBadKeyForm = -10002; + +const int errAEBadListItem = -1705; + +const int errAEBadTestKey = -1726; + +const int errAEBufferTooSmall = -1741; + +const int errAEBuildSyntaxError = -1740; + +const int errAECantHandleClass = -10010; + +const int errAECantPutThatThere = -10024; + +const int errAECantSupplyType = -10009; + +const int errAECantUndo = -10015; + +const int errAECoercionFail = -1700; + +const int errAECorruptData = -1702; + +const int errAEDescIsNull = -1739; + +const int errAEDescNotFound = -1701; + +const int errAEDuplicateHandler = -1736; + +const int errAEEmptyListContainer = -1730; + +const int errAEEventFailed = -10000; + +const int errAEEventFiltered = -1735; + +const int errAEEventNotHandled = -1708; + +const int errAEEventNotPermitted = -1743; + +const int errAEEventWouldRequireUserConsent = -1744; + +const int errAEHandlerNotFound = -1717; + +const int errAEIllegalIndex = -1719; + +const int errAEImpossibleRange = -1720; + +const int errAEInTransaction = -10011; + +const int errAEIndexTooLarge = -10007; + +const int errAELocalOnly = -10016; + +const int errAENegativeCount = -1729; + +const int errAENewerVersion = -1706; + +const int errAENoSuchLogical = -1725; + +const int errAENoSuchObject = -1728; + +const int errAENoSuchTransaction = -10012; + +const int errAENoUserInteraction = -1713; + +const int errAENoUserSelection = -10013; + +const int errAENotAEDesc = -1704; + +const int errAENotASingleObject = -10014; + +const int errAENotASpecialFunction = -1714; + +const int errAENotAnElement = -10008; + +const int errAENotAnEnumMember = -10023; + +const int errAENotAnObjSpec = -1727; + +const int errAENotAppleEvent = -1707; + +const int errAENotModifiable = -10003; + +const int errAEParamMissed = -1715; + +const int errAEPrivilegeError = -10004; + +const int errAEPropertiesClash = -10025; + +const int errAEReadDenied = -10005; + +const int errAEReceiveEscapeCurrent = -1734; + +const int errAEReceiveTerminate = -1733; + +const int errAERecordingIsAlreadyOn = -1732; + +const int errAEReplyNotArrived = -1718; + +const int errAEReplyNotValid = -1709; + +const int errAEStreamAlreadyConverted = -1738; + +const int errAEStreamBadNesting = -1737; + +const int errAETargetAddressNotPermitted = -1742; + +const int errAETimeout = -1712; + +const int errAETypeError = -10001; + +const int errAEUnknownAddressType = -1716; + +const int errAEUnknownObjectType = -1731; + +const int errAEUnknownSendMode = -1710; + +const int errAEWaitCanceled = -1711; + +const int errAEWriteDenied = -10006; + +const int errAEWrongDataType = -1703; + +const int errAEWrongNumberArgs = -1721; + +const int errASCantCompareMoreThan32k = -2721; + +const int errASCantConsiderAndIgnore = -2720; + +const int errASIllegalFormalParameter = -2761; + +const int errASInconsistentNames = -2780; + +const int errASNoResultReturned = -2763; + +const int errASParameterNotForEvent = -2762; + +const int errASTerminologyNestingTooDeep = -2760; + +const int errAborted = -1279; + +const int errAlreadyInImagingMode = -5243; + +const int errAttention = -1276; + +const int errAuthorizationBadAddress = -60033; + +const int errAuthorizationCanceled = -60006; + +const int errAuthorizationDenied = -60005; + +const int errAuthorizationExternalizeNotAllowed = -60009; + +const int errAuthorizationInteractionNotAllowed = -60007; + +const int errAuthorizationInternal = -60008; + +const int errAuthorizationInternalizeNotAllowed = -60010; + +const int errAuthorizationInvalidFlags = -60011; + +const int errAuthorizationInvalidPointer = -60004; + +const int errAuthorizationInvalidRef = -60002; + +const int errAuthorizationInvalidSet = -60001; + +const int errAuthorizationInvalidTag = -60003; + +const int errAuthorizationSuccess = 0; + +const int errAuthorizationToolEnvironmentError = -60032; + +const int errAuthorizationToolExecuteFailure = -60031; + +const int errCannotUndo = -5253; + +const int errCantEmbedIntoSelf = -30594; + +const int errCantEmbedRoot = -30595; + +const int errControlDoesntSupportFocus = -30582; + +const int errControlHiddenOrDisabled = -30592; + +const int errControlIsNotEmbedder = -30590; + +const int errControlsAlreadyExist = -30589; + +const int errCoreEndianDataDoesNotMatchFormat = -4942; + +const int errCoreEndianDataTooLongForFormat = -4941; + +const int errCoreEndianDataTooShortForFormat = -4940; + +const int errCorruptWindowDescription = -5606; + +const int errCouldntSetFocus = -30585; + +const int errCppGeneral = -32000; + +const int errCppLastSystemDefinedError = -32020; + +const int errCppLastUserDefinedError = -32049; + +const int errCppbad_alloc = -32001; + +const int errCppbad_cast = -32002; + +const int errCppbad_exception = -32003; + +const int errCppbad_typeid = -32004; + +const int errCppdomain_error = -32006; + +const int errCppinvalid_argument = -32007; + +const int errCppios_base_failure = -32014; + +const int errCpplength_error = -32008; + +const int errCpplogic_error = -32005; + +const int errCppout_of_range = -32009; + +const int errCppoverflow_error = -32011; + +const int errCpprange_error = -32012; + +const int errCppruntime_error = -32010; + +const int errCppunderflow_error = -32013; + +const int errDSPQueueSize = -1274; + +const int errDataNotSupported = -30581; + +const int errDataSizeMismatch = -30591; + +const int errEmptyScrap = -5249; + +const int errEndOfBody = -1813; + +const int errEndOfDocument = -1812; + +const int errEngineNotFound = -5244; + +const int errFSAttributeNotFound = -1427; + +const int errFSBadAllocFlags = -1413; + +const int errFSBadBuffer = -1403; + +const int errFSBadFSRef = -1401; + +const int errFSBadForkName = -1402; + +const int errFSBadForkRef = -1404; + +const int errFSBadInfoBitmap = -1405; + +const int errFSBadItemCount = -1418; + +const int errFSBadIteratorFlags = -1422; + +const int errFSBadPosMode = -1412; + +const int errFSBadSearchParams = -1419; + +const int errFSForkExists = -1421; + +const int errFSForkNotFound = -1409; + +const int errFSIteratorNotFound = -1423; + +const int errFSIteratorNotSupported = -1424; + +const int errFSMissingCatInfo = -1406; + +const int errFSMissingName = -1411; + +const int errFSNameTooLong = -1410; + +const int errFSNoMoreItems = -1417; + +const int errFSNotAFolder = -1407; + +const int errFSNotEnoughSpaceForOperation = -1429; + +const int errFSOperationNotSupported = -1426; + +const int errFSPropertyNotValid = -1428; + +const int errFSQuotaExceeded = -1425; + +const int errFSRefsDifferent = -1420; + +const int errFSUnknownCall = -1400; + +const int errFloatingWindowsNotInitialized = -5609; + +const int errFwdReset = -1275; + +const int errIAAllocationErr = -5381; + +const int errIABufferTooSmall = -5384; + +const int errIACanceled = -5385; + +const int errIAEndOfTextRun = -5388; + +const int errIAInvalidDocument = -5386; + +const int errIANoErr = 0; + +const int errIANoMoreItems = -5383; + +const int errIAParamErr = -5382; + +const int errIATextExtractionErr = -5387; + +const int errIAUnknownErr = -5380; + +const int errInvalidPartCode = -30588; + +const int errInvalidRange = -5246; + +const int errInvalidWindowProperty = -5603; + +const int errInvalidWindowPtr = -5600; + +const int errInvalidWindowRef = -5600; + +const int errItemNotControl = -30596; + +const int errIteratorReachedEnd = -5245; + +const int errKCAuthFailed = -25293; + +const int errKCBufferTooSmall = -25301; + +const int errKCCreateChainFailed = -25318; + +const int errKCDataNotAvailable = -25316; + +const int errKCDataNotModifiable = -25317; + +const int errKCDataTooLarge = -25302; + +const int errKCDuplicateCallback = -25297; + +const int errKCDuplicateItem = -25299; + +const int errKCDuplicateKeychain = -25296; + +const int errKCInteractionNotAllowed = -25308; + +const int errKCInteractionRequired = -25315; + +const int errKCInvalidCallback = -25298; + +const int errKCInvalidItemRef = -25304; + +const int errKCInvalidKeychain = -25295; + +const int errKCInvalidSearchRef = -25305; + +const int errKCItemNotFound = -25300; + +const int errKCKeySizeNotAllowed = -25311; + +const int errKCNoCertificateModule = -25313; + +const int errKCNoDefaultKeychain = -25307; + +const int errKCNoPolicyModule = -25314; + +const int errKCNoStorageModule = -25312; + +const int errKCNoSuchAttr = -25303; + +const int errKCNoSuchClass = -25306; + +const int errKCNoSuchKeychain = -25294; + +const int errKCNotAvailable = -25291; + +const int errKCReadOnly = -25292; + +const int errKCReadOnlyAttr = -25309; + +const int errKCWrongKCVersion = -25310; + +const int errMarginWilllNotFit = -5241; + +const int errMessageNotSupported = -30580; + +const int errNoHiliteText = -5248; + +const int errNoRootControl = -30586; + +const int errNonContiuousAttribute = -5252; + +const int errNotInImagingMode = -5242; + +const int errOSAAppNotHighLevelEventAware = -2704; + +const int errOSABadSelector = -1754; + +const int errOSABadStorageType = -1752; + +const int errOSACantAccess = -1728; + +const int errOSACantAssign = -10006; + +const int errOSACantCoerce = -1700; + +const int errOSACantCreate = -2710; + +const int errOSACantGetTerminology = -2709; + +const int errOSACantLaunch = -2703; + +const int errOSACantOpenComponent = -1762; + +const int errOSACantStorePointers = -1763; + +const int errOSAComponentMismatch = -1761; + +const int errOSACorruptData = -1702; + +const int errOSACorruptTerminology = -2705; + +const int errOSADataBlockTooLarge = -2708; + +const int errOSADataFormatObsolete = -1758; + +const int errOSADataFormatTooNew = -1759; + +const int errOSADivideByZero = -2701; + +const int errOSAGeneralError = -2700; + +const int errOSAInternalTableOverflow = -2707; + +const int errOSAInvalidID = -1751; + +const int errOSANoSuchDialect = -1757; + +const int errOSANumericOverflow = -2702; + +const int errOSARecordingIsAlreadyOn = -1732; + +const int errOSAScriptError = -1753; + +const int errOSASourceNotAvailable = -1756; + +const int errOSAStackOverflow = -2706; + +const int errOSASystemError = -1750; + +const int errOSATypeError = -1703; + +const int errOffsetInvalid = -1800; + +const int errOffsetIsOutsideOfView = -1801; + +const int errOffsetNotOnElementBounday = -5247; + +const int errOpenDenied = -1273; + +const int errOpening = -1277; + +const int errReadOnlyText = -5250; + +const int errRefNum = -1280; + +const int errRootAlreadyExists = -30587; + +const int errSSLATSCertificateHashAlgorithmViolation = -9885; + +const int errSSLATSCertificateTrustViolation = -9886; + +const int errSSLATSCiphersuiteViolation = -9882; + +const int errSSLATSLeafCertificateHashAlgorithmViolation = -9884; + +const int errSSLATSMinimumKeySizeViolation = -9883; + +const int errSSLATSMinimumVersionViolation = -9881; + +const int errSSLATSViolation = -9880; + +const int errSSLBadCert = -9808; + +const int errSSLBadCertificateStatusResponse = -9862; + +const int errSSLBadCipherSuite = -9818; + +const int errSSLBadConfiguration = -9848; + +const int errSSLBadRecordMac = -9846; + +const int errSSLBufferOverflow = -9817; + +const int errSSLCertExpired = -9814; + +const int errSSLCertNotYetValid = -9815; + +const int errSSLCertificateRequired = -9863; + +const int errSSLClientCertRequested = -9842; + +const int errSSLClientHelloReceived = -9851; + +const int errSSLClosedAbort = -9806; + +const int errSSLClosedGraceful = -9805; + +const int errSSLClosedNoNotify = -9816; + +const int errSSLConfigurationFailed = -9854; + +const int errSSLConnectionRefused = -9844; + +const int errSSLCrypto = -9809; + +const int errSSLDecodeError = -9859; + +const int errSSLDecompressFail = -9857; + +const int errSSLDecryptionFail = -9845; + +const int errSSLEarlyDataRejected = -9890; + +const int errSSLFatalAlert = -9802; + +const int errSSLHandshakeFail = -9858; + +const int errSSLHostNameMismatch = -9843; + +const int errSSLIllegalParam = -9830; + +const int errSSLInappropriateFallback = -9860; + +const int errSSLInternal = -9810; + +const int errSSLMissingExtension = -9861; + +const int errSSLModuleAttach = -9811; + +const int errSSLNegotiation = -9801; + +const int errSSLNetworkTimeout = -9853; + +const int errSSLNoRootCert = -9813; + +const int errSSLPeerAccessDenied = -9832; + +const int errSSLPeerAuthCompleted = -9841; + +const int errSSLPeerBadCert = -9825; + +const int errSSLPeerBadRecordMac = -9820; + +const int errSSLPeerCertExpired = -9828; + +const int errSSLPeerCertRevoked = -9827; + +const int errSSLPeerCertUnknown = -9829; + +const int errSSLPeerDecodeError = -9833; + +const int errSSLPeerDecompressFail = -9823; + +const int errSSLPeerDecryptError = -9834; + +const int errSSLPeerDecryptionFail = -9821; + +const int errSSLPeerExportRestriction = -9835; + +const int errSSLPeerHandshakeFail = -9824; + +const int errSSLPeerInsufficientSecurity = -9837; + +const int errSSLPeerInternalError = -9838; + +const int errSSLPeerNoRenegotiation = -9840; + +const int errSSLPeerProtocolVersion = -9836; + +const int errSSLPeerRecordOverflow = -9822; + +const int errSSLPeerUnexpectedMsg = -9819; + +const int errSSLPeerUnknownCA = -9831; + +const int errSSLPeerUnsupportedCert = -9826; + +const int errSSLPeerUserCancelled = -9839; + +const int errSSLProtocol = -9800; + +const int errSSLRecordOverflow = -9847; + +const int errSSLSessionNotFound = -9804; + +const int errSSLTransportReset = -9852; + +const int errSSLUnexpectedMessage = -9856; + +const int errSSLUnexpectedRecord = -9849; + +const int errSSLUnknownPSKIdentity = -9864; + +const int errSSLUnknownRootCert = -9812; + +const int errSSLUnrecognizedName = -9865; + +const int errSSLUnsupportedExtension = -9855; + +const int errSSLWeakPeerEphemeralDHKey = -9850; + +const int errSSLWouldBlock = -9803; + +const int errSSLXCertChainInvalid = -9807; + +const int errSecACLAddFailed = -67698; + +const int errSecACLChangeFailed = -67699; + +const int errSecACLDeleteFailed = -67696; + +const int errSecACLNotSimple = -25240; + +const int errSecACLReplaceFailed = -67697; + +const int errSecAddinLoadFailed = -67711; + +const int errSecAddinUnloadFailed = -67714; + +const int errSecAlgorithmMismatch = -67730; + +const int errSecAllocate = -108; + +const int errSecAlreadyLoggedIn = -67814; + +const int errSecAppleAddAppACLSubject = -67589; + +const int errSecAppleInvalidKeyEndDate = -67593; + +const int errSecAppleInvalidKeyStartDate = -67592; + +const int errSecApplePublicKeyIncomplete = -67590; + +const int errSecAppleSSLv2Rollback = -67595; + +const int errSecAppleSignatureMismatch = -67591; + +const int errSecAttachHandleBusy = -67728; + +const int errSecAttributeNotInContext = -67720; + +const int errSecAuthFailed = -25293; + +const int errSecBadReq = -909; + +const int errSecBlockSizeMismatch = -67810; + +const int errSecBufferTooSmall = -25301; + +const int errSecCRLAlreadySigned = -67684; + +const int errSecCRLBadURI = -67617; + +const int errSecCRLExpired = -67613; + +const int errSecCRLNotFound = -67615; + +const int errSecCRLNotTrusted = -67620; + +const int errSecCRLNotValidYet = -67614; + +const int errSecCRLPolicyFailed = -67621; + +const int errSecCRLServerDown = -67616; + +const int errSecCSAmbiguousBundleFormat = -67011; + +const int errSecCSBadBundleFormat = -67028; + +const int errSecCSBadCallbackValue = -67020; + +const int errSecCSBadDictionaryFormat = -67058; + +const int errSecCSBadDiskImageFormat = -67001; + +const int errSecCSBadFrameworkVersion = -67009; + +const int errSecCSBadLVArch = -67017; + +const int errSecCSBadMainExecutable = -67010; + +const int errSecCSBadNestedCode = -67021; + +const int errSecCSBadObjectFormat = -67049; + +const int errSecCSBadResource = -67054; + +const int errSecCSBadTeamIdentifier = -66997; + +const int errSecCSCMSConstructionFailed = -66991; + +const int errSecCSCMSTooLarge = -67036; + +const int errSecCSCancelled = -67006; + +const int errSecCSDBAccess = -67032; + +const int errSecCSDBDenied = -67033; + +const int errSecCSDSStoreSymlink = -67012; + +const int errSecCSDbCorrupt = -67024; + +const int errSecCSFileHardQuarantined = -67026; + +const int errSecCSGuestInvalid = -67063; + +const int errSecCSHelperFailed = -67019; + +const int errSecCSHostProtocolContradiction = -67043; + +const int errSecCSHostProtocolDedicationError = -67042; + +const int errSecCSHostProtocolInvalidAttribute = -67031; + +const int errSecCSHostProtocolInvalidHash = -67035; + +const int errSecCSHostProtocolNotProxy = -67041; + +const int errSecCSHostProtocolRelativePath = -67044; + +const int errSecCSHostProtocolStateError = -67040; + +const int errSecCSHostProtocolUnrelated = -67039; + +const int errSecCSHostReject = -67047; + +const int errSecCSInfoPlistFailed = -67030; + +const int errSecCSInternalError = -67048; + +const int errSecCSInvalidAssociatedFileData = -66999; + +const int errSecCSInvalidAttributeValues = -67066; + +const int errSecCSInvalidEntitlements = -66994; + +const int errSecCSInvalidFlags = -67070; + +const int errSecCSInvalidObjectRef = -67071; + +const int errSecCSInvalidPlatform = -67005; + +const int errSecCSInvalidRuntimeVersion = -66993; + +const int errSecCSInvalidSymlink = -67003; + +const int errSecCSInvalidTeamIdentifier = -66998; + +const int errSecCSMultipleGuests = -67064; + +const int errSecCSNoMainExecutable = -67029; + +const int errSecCSNoMatches = -67027; + +const int errSecCSNoSuchCode = -67065; + +const int errSecCSNotAHost = -67046; + +const int errSecCSNotAppLike = -67002; + +const int errSecCSNotSupported = -67037; + +const int errSecCSObjectRequired = -67069; + +const int errSecCSOutdated = -67025; + +const int errSecCSRegularFile = -67015; + +const int errSecCSRemoteSignerFailed = -66990; + +const int errSecCSReqFailed = -67050; + +const int errSecCSReqInvalid = -67052; + +const int errSecCSReqUnsupported = -67051; + +const int errSecCSResourceDirectoryFailed = -67023; + +const int errSecCSResourceNotSupported = -67016; + +const int errSecCSResourceRulesInvalid = -67053; + +const int errSecCSResourcesInvalid = -67055; + +const int errSecCSResourcesNotFound = -67056; + +const int errSecCSResourcesNotSealed = -67057; + +const int errSecCSRevokedNotarization = -66992; + +const int errSecCSSigDBAccess = -67032; + +const int errSecCSSigDBDenied = -67033; + +const int errSecCSSignatureFailed = -67061; + +const int errSecCSSignatureInvalid = -67045; + +const int errSecCSSignatureNotVerifiable = -67060; + +const int errSecCSSignatureUnsupported = -67059; + +const int errSecCSSignatureUntrusted = -66996; + +const int errSecCSStaticCodeChanged = -67034; + +const int errSecCSStaticCodeNotFound = -67068; + +const int errSecCSTooBig = -67004; + +const int errSecCSUnimplemented = -67072; + +const int errSecCSUnsealedAppRoot = -67014; + +const int errSecCSUnsealedFrameworkRoot = -67008; + +const int errSecCSUnsigned = -67062; + +const int errSecCSUnsignedNestedCode = -67022; + +const int errSecCSUnsupportedDigestAlgorithm = -67000; + +const int errSecCSUnsupportedGuestAttributes = -67067; + +const int errSecCSVetoed = -67018; + +const int errSecCSWeakResourceEnvelope = -67007; + +const int errSecCSWeakResourceRules = -67013; + +const int errSecCallbackFailed = -67695; + +const int errSecCertificateCannotOperate = -67817; + +const int errSecCertificateDuplicateExtension = -67903; + +const int errSecCertificateExpired = -67818; + +const int errSecCertificateIsCA = -67902; + +const int errSecCertificateNameNotAllowed = -67900; + +const int errSecCertificateNotValidYet = -67819; + +const int errSecCertificatePolicyNotAllowed = -67899; + +const int errSecCertificateRevoked = -67820; + +const int errSecCertificateSuspended = -67821; + +const int errSecCertificateValidityPeriodTooLong = -67901; + +const int errSecCodeSigningBadCertChainLength = -67647; + +const int errSecCodeSigningBadPathLengthConstraint = -67649; + +const int errSecCodeSigningDevelopment = -67651; + +const int errSecCodeSigningNoBasicConstraints = -67648; + +const int errSecCodeSigningNoExtendedKeyUsage = -67650; + +const int errSecConversionError = -67594; + +const int errSecCoreFoundationUnknown = -4960; + +const int errSecCreateChainFailed = -25318; + +const int errSecDataNotAvailable = -25316; + +const int errSecDataNotModifiable = -25317; + +const int errSecDataTooLarge = -25302; + +const int errSecDatabaseLocked = -67869; + +const int errSecDatastoreIsOpen = -67870; + +const int errSecDecode = -26275; + +const int errSecDeviceError = -67727; + +const int errSecDeviceFailed = -67588; + +const int errSecDeviceReset = -67587; + +const int errSecDeviceVerifyFailed = -67812; + +const int errSecDiskFull = -34; + +@Deprecated('use errSecDiskFull') +const int errSecDskFull = -34; + +const int errSecDuplicateCallback = -25297; + +const int errSecDuplicateItem = -25299; + +const int errSecDuplicateKeychain = -25296; + +const int errSecEMMLoadFailed = -67709; + +const int errSecEMMUnloadFailed = -67710; + +const int errSecEndOfData = -67634; + +const int errSecEventNotificationCallbackNotFound = -67723; + +const int errSecExtendedKeyUsageNotCritical = -67881; + +const int errSecFieldSpecifiedMultiple = -67866; + +const int errSecFileTooBig = -67597; + +const int errSecFunctionFailed = -67677; + +const int errSecFunctionIntegrityFail = -67670; + +const int errSecHostNameMismatch = -67602; + +const int errSecIDPFailure = -67622; + +const int errSecIO = -36; + +const int errSecInDarkWake = -25320; + +const int errSecIncompatibleDatabaseBlob = -67600; + +const int errSecIncompatibleFieldFormat = -67867; + +const int errSecIncompatibleKeyBlob = -67601; + +const int errSecIncompatibleVersion = -67704; + +const int errSecIncompleteCertRevocationCheck = -67635; + +const int errSecInputLengthError = -67724; + +const int errSecInsufficientClientID = -67586; + +const int errSecInsufficientCredentials = -67822; + +const int errSecInteractionNotAllowed = -25308; + +const int errSecInteractionRequired = -25315; + +const int errSecInternalComponent = -2070; + +const int errSecInternalError = -67671; + +@Deprecated('Deprecated') +const int errSecInvaldCRLAuthority = -67827; + +const int errSecInvalidACL = -67702; + +const int errSecInvalidAccessCredentials = -67700; + +const int errSecInvalidAccessRequest = -67876; + +const int errSecInvalidAction = -67823; + +const int errSecInvalidAddinFunctionTable = -67716; + +const int errSecInvalidAlgorithm = -67747; + +const int errSecInvalidAlgorithmParms = -67770; + +const int errSecInvalidAttributeAccessCredentials = -67796; + +const int errSecInvalidAttributeBase = -67788; + +const int errSecInvalidAttributeBlockSize = -67764; + +const int errSecInvalidAttributeDLDBHandle = -67794; + +const int errSecInvalidAttributeEffectiveBits = -67778; + +const int errSecInvalidAttributeEndDate = -67782; + +const int errSecInvalidAttributeInitVector = -67750; + +const int errSecInvalidAttributeIterationCount = -67792; + +const int errSecInvalidAttributeKey = -67748; + +const int errSecInvalidAttributeKeyLength = -67762; + +const int errSecInvalidAttributeKeyType = -67774; + +const int errSecInvalidAttributeLabel = -67772; + +const int errSecInvalidAttributeMode = -67776; + +const int errSecInvalidAttributeOutputSize = -67766; + +const int errSecInvalidAttributePadding = -67754; + +const int errSecInvalidAttributePassphrase = -67760; + +const int errSecInvalidAttributePrime = -67786; + +const int errSecInvalidAttributePrivateKeyFormat = -67800; + +const int errSecInvalidAttributePublicKeyFormat = -67798; + +const int errSecInvalidAttributeRandom = -67756; + +const int errSecInvalidAttributeRounds = -67768; + +const int errSecInvalidAttributeSalt = -67752; + +const int errSecInvalidAttributeSeed = -67758; + +const int errSecInvalidAttributeStartDate = -67780; + +const int errSecInvalidAttributeSubprime = -67790; + +const int errSecInvalidAttributeSymmetricKeyFormat = -67802; + +const int errSecInvalidAttributeVersion = -67784; + +const int errSecInvalidAttributeWrappedKeyFormat = -67804; + +const int errSecInvalidAuthority = -67824; + +const int errSecInvalidAuthorityKeyID = -67606; + +const int errSecInvalidBaseACLs = -67851; + +const int errSecInvalidBundleInfo = -67857; + +const int errSecInvalidCRL = -67830; + +const int errSecInvalidCRLAuthority = -67827; + +const int errSecInvalidCRLEncoding = -67828; + +const int errSecInvalidCRLGroup = -67816; + +const int errSecInvalidCRLIndex = -67858; + +const int errSecInvalidCRLType = -67829; + +const int errSecInvalidCallback = -25298; + +const int errSecInvalidCertAuthority = -67826; + +const int errSecInvalidCertificateGroup = -67691; + +const int errSecInvalidCertificateRef = -67690; + +const int errSecInvalidContext = -67746; + +const int errSecInvalidDBList = -67681; + +const int errSecInvalidDBLocation = -67875; + +const int errSecInvalidData = -67673; + +const int errSecInvalidDatabaseBlob = -67598; + +const int errSecInvalidDigestAlgorithm = -67815; + +const int errSecInvalidEncoding = -67853; + +const int errSecInvalidExtendedKeyUsage = -67609; + +const int errSecInvalidFormType = -67831; + +const int errSecInvalidGUID = -67679; + +const int errSecInvalidHandle = -67680; + +const int errSecInvalidHandleUsage = -67668; + +const int errSecInvalidID = -67832; + +const int errSecInvalidIDLinkage = -67610; + +const int errSecInvalidIdentifier = -67833; + +const int errSecInvalidIndex = -67834; + +const int errSecInvalidIndexInfo = -67877; + +const int errSecInvalidInputVector = -67744; + +const int errSecInvalidItemRef = -25304; + +const int errSecInvalidKeyAttributeMask = -67738; + +const int errSecInvalidKeyBlob = -67599; + +const int errSecInvalidKeyFormat = -67742; + +const int errSecInvalidKeyHierarchy = -67713; + +const int errSecInvalidKeyLabel = -67740; + +const int errSecInvalidKeyRef = -67712; + +const int errSecInvalidKeyUsageForPolicy = -67608; + +const int errSecInvalidKeyUsageMask = -67736; + +const int errSecInvalidKeychain = -25295; + +const int errSecInvalidLoginName = -67813; + +const int errSecInvalidModifyMode = -67879; + +const int errSecInvalidName = -67689; + +const int errSecInvalidNetworkAddress = -67683; + +const int errSecInvalidNewOwner = -67878; + +const int errSecInvalidNumberOfFields = -67685; + +const int errSecInvalidOutputVector = -67745; + +const int errSecInvalidOwnerEdit = -25244; + +const int errSecInvalidPVC = -67708; + +const int errSecInvalidParsingModule = -67868; + +const int errSecInvalidPassthroughID = -67682; + +const int errSecInvalidPasswordRef = -25261; + +const int errSecInvalidPointer = -67675; + +const int errSecInvalidPolicyIdentifiers = -67835; + +const int errSecInvalidPrefsDomain = -25319; + +const int errSecInvalidQuery = -67693; + +const int errSecInvalidReason = -67837; + +const int errSecInvalidRecord = -67701; + +const int errSecInvalidRequestInputs = -67838; + +const int errSecInvalidRequestor = -67855; + +const int errSecInvalidResponseVector = -67839; + +const int errSecInvalidRoot = -67612; + +const int errSecInvalidSampleValue = -67703; + +const int errSecInvalidScope = -67706; + +const int errSecInvalidSearchRef = -25305; + +const int errSecInvalidServiceMask = -67717; + +const int errSecInvalidSignature = -67688; + +const int errSecInvalidStopOnPolicy = -67840; + +const int errSecInvalidSubServiceID = -67719; + +const int errSecInvalidSubjectKeyID = -67607; + +const int errSecInvalidSubjectName = -67655; + +const int errSecInvalidTimeString = -67836; + +const int errSecInvalidTrustSetting = -25242; + +const int errSecInvalidTrustSettings = -25262; + +const int errSecInvalidTuple = -67841; + +@Deprecated('Deprecated') +const int errSecInvalidTupleCredendtials = -67852; + +const int errSecInvalidTupleCredentials = -67852; + +const int errSecInvalidTupleGroup = -67850; + +const int errSecInvalidValidityPeriod = -67854; + +const int errSecInvalidValue = -67694; + +const int errSecItemNotFound = -25300; + +const int errSecKeyBlobTypeIncorrect = -67732; + +const int errSecKeyHeaderInconsistent = -67733; + +const int errSecKeyIsSensitive = -25258; + +const int errSecKeySizeNotAllowed = -25311; + +const int errSecKeyUsageIncorrect = -67731; + +const int errSecLibraryReferenceNotFound = -67715; + +const int errSecMDSError = -67674; + +const int errSecMemoryError = -67672; + +const int errSecMissingAlgorithmParms = -67771; + +const int errSecMissingAttributeAccessCredentials = -67797; + +const int errSecMissingAttributeBase = -67789; + +const int errSecMissingAttributeBlockSize = -67765; + +const int errSecMissingAttributeDLDBHandle = -67795; + +const int errSecMissingAttributeEffectiveBits = -67779; + +const int errSecMissingAttributeEndDate = -67783; + +const int errSecMissingAttributeInitVector = -67751; + +const int errSecMissingAttributeIterationCount = -67793; + +const int errSecMissingAttributeKey = -67749; + +const int errSecMissingAttributeKeyLength = -67763; + +const int errSecMissingAttributeKeyType = -67775; + +const int errSecMissingAttributeLabel = -67773; + +const int errSecMissingAttributeMode = -67777; + +const int errSecMissingAttributeOutputSize = -67767; + +const int errSecMissingAttributePadding = -67755; + +const int errSecMissingAttributePassphrase = -67761; + +const int errSecMissingAttributePrime = -67787; + +const int errSecMissingAttributePrivateKeyFormat = -67801; + +const int errSecMissingAttributePublicKeyFormat = -67799; + +const int errSecMissingAttributeRandom = -67757; + +const int errSecMissingAttributeRounds = -67769; + +const int errSecMissingAttributeSalt = -67753; + +const int errSecMissingAttributeSeed = -67759; + +const int errSecMissingAttributeStartDate = -67781; + +const int errSecMissingAttributeSubprime = -67791; + +const int errSecMissingAttributeSymmetricKeyFormat = -67803; + +const int errSecMissingAttributeVersion = -67785; + +const int errSecMissingAttributeWrappedKeyFormat = -67805; + +const int errSecMissingEntitlement = -34018; + +const int errSecMissingQualifiedCertStatement = -67904; + +const int errSecMissingRequiredExtension = -67880; + +const int errSecMissingValue = -67871; + +const int errSecMobileMeCSRVerifyFailure = -67665; + +const int errSecMobileMeFailedConsistencyCheck = -67666; + +const int errSecMobileMeNoRequestPending = -67664; + +const int errSecMobileMeRequestAlreadyPending = -67663; + +const int errSecMobileMeRequestQueued = -67657; + +const int errSecMobileMeRequestRedirected = -67658; + +const int errSecMobileMeServerAlreadyExists = -67661; + +const int errSecMobileMeServerError = -67659; + +const int errSecMobileMeServerNotAvailable = -67660; + +const int errSecMobileMeServerServiceErr = -67662; + +const int errSecModuleManagerInitializeFailed = -67721; + +const int errSecModuleManagerNotFound = -67722; + +const int errSecModuleManifestVerifyFailed = -67678; + +const int errSecModuleNotLoaded = -67718; + +const int errSecMultipleExecSegments = -66995; + +const int errSecMultiplePrivKeys = -25259; + +const int errSecMultipleValuesUnsupported = -67842; + +const int errSecNetworkFailure = -67636; + +const int errSecNoAccessForItem = -25243; + +const int errSecNoBasicConstraints = -67604; + +const int errSecNoBasicConstraintsCA = -67605; + +const int errSecNoCertificateModule = -25313; + +const int errSecNoDefaultAuthority = -67844; + +const int errSecNoDefaultKeychain = -25307; + +const int errSecNoFieldValues = -67859; + +const int errSecNoPolicyModule = -25314; + +const int errSecNoStorageModule = -25312; + +const int errSecNoSuchAttr = -25303; + +const int errSecNoSuchClass = -25306; + +const int errSecNoSuchKeychain = -25294; + +const int errSecNoTrustSettings = -25263; + +const int errSecNotAvailable = -25291; + +const int errSecNotInitialized = -67667; + +const int errSecNotLoggedIn = -67729; + +const int errSecNotSigner = -26267; + +const int errSecNotTrusted = -67843; + +const int errSecOCSPBadRequest = -67631; + +const int errSecOCSPBadResponse = -67630; + +const int errSecOCSPNoSigner = -67640; + +const int errSecOCSPNotTrustedToAnchor = -67637; + +const int errSecOCSPResponderInternalError = -67642; + +const int errSecOCSPResponderMalformedReq = -67641; + +const int errSecOCSPResponderSignatureRequired = -67644; + +const int errSecOCSPResponderTryLater = -67643; + +const int errSecOCSPResponderUnauthorized = -67645; + +const int errSecOCSPResponseNonceMismatch = -67646; + +const int errSecOCSPSignatureError = -67639; + +const int errSecOCSPStatusUnrecognized = -67633; + +const int errSecOCSPUnavailable = -67632; + +const int errSecOpWr = -49; + +const int errSecOutputLengthError = -67725; + +const int errSecPVCAlreadyConfigured = -67707; + +const int errSecPVCReferentNotFound = -67669; + +const int errSecParam = -50; + +const int errSecPassphraseRequired = -25260; + +const int errSecPathLengthConstraintExceeded = -67611; + +const int errSecPkcs12VerifyFailure = -25264; + +const int errSecPolicyNotFound = -25241; + +const int errSecPrivilegeNotGranted = -67705; + +const int errSecPrivilegeNotSupported = -67726; + +const int errSecPublicKeyInconsistent = -67811; + +const int errSecQuerySizeUnknown = -67809; + +const int errSecQuotaExceeded = -67596; + +const int errSecReadOnly = -25292; + +const int errSecReadOnlyAttr = -25309; + +const int errSecRecordModified = -67638; + +const int errSecRejectedForm = -67845; + +const int errSecRequestDescriptor = -67856; + +const int errSecRequestLost = -67846; + +const int errSecRequestRejected = -67847; + +const int errSecResourceSignBadCertChainLength = -67652; + +const int errSecResourceSignBadExtKeyUsage = -67653; + +const int errSecRestrictedAPI = -34020; + +const int errSecSMIMEBadExtendedKeyUsage = -67624; + +const int errSecSMIMEBadKeyUsage = -67625; + +const int errSecSMIMEEmailAddressesNotFound = -67623; + +const int errSecSMIMEKeyUsageNotCritical = -67626; + +const int errSecSMIMENoEmailAddress = -67627; + +const int errSecSMIMESubjAltNameNotCritical = -67628; + +const int errSecSSLBadExtendedKeyUsage = -67629; + +const int errSecSelfCheckFailed = -67676; + +const int errSecServiceNotAvailable = -67585; + +const int errSecSigningTimeMissing = -67894; + +const int errSecStagedOperationInProgress = -67806; + +const int errSecStagedOperationNotStarted = -67807; + +const int errSecSuccess = 0; + +const int errSecTagNotFound = -67692; + +const int errSecTimestampAddInfoNotAvailable = -67892; + +const int errSecTimestampBadAlg = -67886; + +const int errSecTimestampBadDataFormat = -67888; + +const int errSecTimestampBadRequest = -67887; + +const int errSecTimestampInvalid = -67883; + +const int errSecTimestampMissing = -67882; + +const int errSecTimestampNotTrusted = -67884; + +const int errSecTimestampRejection = -67895; + +const int errSecTimestampRevocationNotification = -67898; + +const int errSecTimestampRevocationWarning = -67897; + +const int errSecTimestampServiceNotAvailable = -67885; + +const int errSecTimestampSystemFailure = -67893; + +const int errSecTimestampTimeNotAvailable = -67889; + +const int errSecTimestampUnacceptedExtension = -67891; + +const int errSecTimestampUnacceptedPolicy = -67890; + +const int errSecTimestampWaiting = -67896; + +const int errSecTrustNotAvailable = -25245; + +const int errSecTrustSettingDeny = -67654; + +const int errSecUnimplemented = -4; + +const int errSecUnknownCRLExtension = -67619; + +const int errSecUnknownCertExtension = -67618; + +const int errSecUnknownCriticalExtensionFlag = -67603; + +const int errSecUnknownFormat = -25257; + +const int errSecUnknownQualifiedCertStatement = -67656; + +const int errSecUnknownTag = -67687; + +const int errSecUnsupportedAddressType = -67848; + +const int errSecUnsupportedFieldFormat = -67860; + +const int errSecUnsupportedFormat = -25256; + +const int errSecUnsupportedIndexInfo = -67861; + +const int errSecUnsupportedKeyAttributeMask = -67739; + +const int errSecUnsupportedKeyFormat = -67734; + +const int errSecUnsupportedKeyLabel = -67741; + +const int errSecUnsupportedKeySize = -67735; + +const int errSecUnsupportedKeyUsageMask = -67737; + +const int errSecUnsupportedLocality = -67862; + +const int errSecUnsupportedNumAttributes = -67863; + +const int errSecUnsupportedNumIndexes = -67864; + +const int errSecUnsupportedNumRecordTypes = -67865; + +const int errSecUnsupportedNumSelectionPreds = -67873; + +const int errSecUnsupportedOperator = -67874; + +const int errSecUnsupportedQueryLimits = -67872; + +const int errSecUnsupportedService = -67849; + +const int errSecUnsupportedVectorOfBuffers = -67743; + +const int errSecUserCanceled = -128; + +const int errSecVerificationFailure = -67686; + +const int errSecVerifyActionFailed = -67825; + +const int errSecVerifyFailed = -67808; + +const int errSecWrPerm = -61; + +const int errSecWrongSecVersion = -25310; + +const int errSessionAuthorizationDenied = -60502; + +const int errSessionInternal = -60008; + +const int errSessionInvalidAttributes = -60501; + +const int errSessionInvalidFlags = -60011; + +const int errSessionInvalidId = -60500; + +const int errSessionSuccess = 0; + +const int errSessionValueNotSet = -60503; + +const int errState = -1278; + +const int errTaskNotFound = -10780; + +const int errTopOfBody = -1811; + +const int errTopOfDocument = -1810; + +const int errUnknownAttributeTag = -5240; + +const int errUnknownControl = -30584; + +const int errUnknownElement = -5251; + +const int errUnrecognizedWindowClass = -5605; + +const int errUnsupportedWindowAttributesForClass = -5601; + +const int errUserWantsToDragWindow = -5607; + +const int errWSInternalError = -65793; + +const int errWSParseError = -65795; + +const int errWSTimeoutError = -65796; + +const int errWSTransportError = -65794; + +const int errWindowDoesNotFitOnscreen = -5611; + +const int errWindowDoesNotHaveProxy = -5602; + +const int errWindowDoesntSupportFocus = -30583; + +const int errWindowNotFound = -5610; + +const int errWindowPropertyNotFound = -5604; + +const int errWindowRegionCodeInvalid = -30593; + +const int errWindowsAlreadyInitialized = -5608; + +typedef errno_t = ffi.Int; +typedef Darterrno_t = int; + +const int eurlAFP = 1634103328; + +const int eurlAT = 1635000352; + +const int eurlEPPC = 1701867619; + +const int eurlFTP = 1718906912; + +const int eurlFile = 1718185061; + +const int eurlGopher = 1735420018; + +const int eurlHTTP = 1752462448; + +const int eurlHTTPS = 1752461427; + +const int eurlIMAP = 1768776048; + +const int eurlLDAP = 1970037872; + +const int eurlLaunch = 1818326382; + +const int eurlMail = 1835100524; + +const int eurlMailbox = 1835167608; + +const int eurlMessage = 1835365235; + +const int eurlMulti = 1836412020; + +const int eurlNFS = 1970169459; + +const int eurlNNTP = 1852732528; + +const int eurlNews = 1852143475; + +const int eurlPOP = 1970302832; + +const int eurlRTSP = 1920234352; + +const int eurlSNews = 1936619379; + +const int eurlTelnet = 1953263220; + +const int eurlUnknown = 1970433087; + +@Deprecated('Deprecated') +const int evType = 4; + +final class evsioKeymapping extends ffi.Struct { + @ffi.Int() + external int size; + + external ffi.Pointer mapping; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int size, + required ffi.Pointer mapping, + }) => $allocator() + ..ref.size = size + ..ref.mapping = mapping; +} + +final class evsioMouseScaling extends ffi.Struct { + @ffi.Int() + external int numScaleLevels; + + @ffi.Array.multi([20]) + external ffi.Array scaleThresholds; + + @ffi.Array.multi([20]) + external ffi.Array scaleFactors; +} + +const int evtNotEnb = 1; + +const int exUserBreak = -492; + +final class exception extends ffi.Struct { + @ffi.Int() + external int type; + + external ffi.Pointer name; + + @ffi.Double() + external double arg1; + + @ffi.Double() + external double arg2; + + @ffi.Double() + external double retval; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int type, + required ffi.Pointer name, + required double arg1, + required double arg2, + required double retval, + }) => $allocator() + ..ref.type = type + ..ref.name = name + ..ref.arg1 = arg1 + ..ref.arg2 = arg2 + ..ref.retval = retval; +} + +typedef exception_behavior_array_t = ffi.Pointer; +typedef exception_behavior_t = ffi.Int; +typedef Dartexception_behavior_t = int; +typedef exception_data_t = ffi.Pointer; +typedef exception_data_type_t = integer_t; +typedef exception_flavor_array_t = ffi.Pointer; +typedef exception_handler_array_t = ffi.Pointer; +typedef exception_handler_info_array_t = ffi.Pointer; +typedef exception_handler_info_t = ipc_info_port_t; +typedef exception_handler_t = mach_port_t; +typedef exception_mask_array_t = ffi.Pointer; +typedef exception_mask_t = ffi.UnsignedInt; +typedef Dartexception_mask_t = int; +typedef exception_port_arrary_t = exception_handler_array_t; +typedef exception_port_array_t = ffi.Pointer; +typedef exception_port_info_array_t = ffi.Pointer; +typedef exception_port_t = exception_handler_t; +typedef exception_type_t = ffi.Int; +typedef Dartexception_type_t = int; + +const int excessCollsns = -95; + +const int extFSErr = -58; + +const int extend = 64; + +typedef extended80 = Float80; +typedef extended96 = Float96; + +const int extendedBlock = 19523; + +const int extendedBlockLen = 40; + +enum extension_data_format { + CSSM_X509_DATAFORMAT_ENCODED(0), + CSSM_X509_DATAFORMAT_PARSED(1), + CSSM_X509_DATAFORMAT_PAIR(2); + + final int value; + const extension_data_format(this.value); + + static extension_data_format fromValue(int value) => switch (value) { + 0 => CSSM_X509_DATAFORMAT_ENCODED, + 1 => CSSM_X509_DATAFORMAT_PARSED, + 2 => CSSM_X509_DATAFORMAT_PAIR, + _ => throw ArgumentError('Unknown value for extension_data_format: $value'), + }; +} + +const int extensionsFolderIconResource = -3973; + +const int extractErr = -3104; + +const int extraneousStrings = 16; + +@Deprecated('Deprecated') +const int fBadPartsTable = 10; + +@Deprecated('Deprecated') +const int fBestGuess = 1; + +const int fBsyErr = -47; + +const int fDesktop = -2; + +const int fDisk = 0; + +@Deprecated('Deprecated') +const int fEmptyFormatString = 13; + +@Deprecated('Deprecated') +const int fExtraDecimal = 5; + +@Deprecated('Deprecated') +const int fExtraExp = 7; + +@Deprecated('Deprecated') +const int fExtraPercent = 11; + +@Deprecated('Deprecated') +const int fExtraSeparator = 12; + +@Deprecated('Deprecated') +const int fFormStrIsNAN = 9; + +@Deprecated('Deprecated') +const int fFormatOK = 0; + +@Deprecated('Deprecated') +const int fFormatOverflow = 8; + +const int fHasBundle = 8192; + +const int fInvisible = 16384; + +const int fLckdErr = -45; + +@Deprecated('Deprecated') +const int fMissingDelimiter = 4; + +@Deprecated('Deprecated') +const int fMissingLiteral = 6; + +@Deprecated('Deprecated') +const int fNegative = 1; + +const int fOnDesk = 1; + +@Deprecated('Deprecated') +const int fOutOfSynch = 2; + +@Deprecated('Deprecated') +const int fPositive = 0; + +@Deprecated('Deprecated') +const int fSpuriousChars = 3; + +const int fTrash = -3; + +@Deprecated('Deprecated') +const int fVNumber = 0; + +@Deprecated('Deprecated') +const int fZero = 2; + +const int false$ = 0; + +@Deprecated('Deprecated') +const int false32b = 0; + +const int fatalDateTime = 32768; + +final class fattributiontag extends ffi.Struct { + @ffi.UnsignedInt() + external int ft_flags; + + @ffi.UnsignedLongLong() + external int ft_hash; + + @ffi.Array.multi([255]) + external ffi.Array ft_attribution_name; +} + +typedef fattributiontag_t = fattributiontag; + +final class fchecklv extends ffi.Struct { + @off_t() + external int lv_file_start; + + @ffi.Size() + external int lv_error_message_size; + + external ffi.Pointer lv_error_message; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lv_file_start, + required int lv_error_message_size, + required ffi.Pointer lv_error_message, + }) => $allocator() + ..ref.lv_file_start = lv_file_start + ..ref.lv_error_message_size = lv_error_message_size + ..ref.lv_error_message = lv_error_message; +} + +typedef fchecklv_t = fchecklv; +typedef fd_mask = __int32_t; + +final class fd_set extends ffi.Struct { + @ffi.Array.multi([32]) + external ffi.Array<__int32_t> fds_bits; +} + +const int featureFontTableTag = 1717920116; + +const int featureUnsupported = -2053; + +final class fenv_t extends ffi.Struct { + @ffi.UnsignedLongLong() + external int __fpsr; + + @ffi.UnsignedLongLong() + external int __fpcr; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int $fpsr, + required int $fpcr, + }) => $allocator() + ..ref.__fpsr = $fpsr + ..ref.__fpcr = $fpcr; +} + +@Deprecated('Deprecated') +const int fetchReference = 2; + +typedef fexcept_t = ffi.UnsignedShort; +typedef Dartfexcept_t = int; + +final class fgetsigsinfo extends ffi.Struct { + @off_t() + external int fg_file_start; + + @ffi.Int() + external int fg_info_request; + + @ffi.Int() + external int fg_sig_is_platform; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fg_file_start, + required int fg_info_request, + required int fg_sig_is_platform, + }) => $allocator() + ..ref.fg_file_start = fg_file_start + ..ref.fg_info_request = fg_info_request + ..ref.fg_sig_is_platform = fg_sig_is_platform; +} + +typedef fgetsigsinfo_t = fgetsigsinfo; +@Deprecated('Deprecated') +const int fiLigature = 222; + +const int fidExists = -1301; + +const int fidNotFound = -1300; + +const int fieldOrderNotIntl = 8; + +const int fileBoundsErr = -1309; + +const int fileOffsetTooBigErr = -2125; + +enum filesec_property_t { + FILESEC_OWNER(1), + FILESEC_GROUP(2), + FILESEC_UUID(3), + FILESEC_MODE(4), + FILESEC_ACL(5), + FILESEC_GRPUUID(6), + FILESEC_ACL_RAW(100), + FILESEC_ACL_ALLOCSIZE(101); + + final int value; + const filesec_property_t(this.value); + + static filesec_property_t fromValue(int value) => switch (value) { + 1 => FILESEC_OWNER, + 2 => FILESEC_GROUP, + 3 => FILESEC_UUID, + 4 => FILESEC_MODE, + 5 => FILESEC_ACL, + 6 => FILESEC_GRPUUID, + 100 => FILESEC_ACL_RAW, + 101 => FILESEC_ACL_ALLOCSIZE, + _ => throw ArgumentError('Unknown value for filesec_property_t: $value'), + }; +} + +typedef filesec_t = ffi.Pointer<_filesec>; + +const int finalStage = 128; + +const int firstDskErr = -84; + +const int firstPickerError = -4000; + +typedef fixpt_t = u_int32_t; +@Deprecated('Deprecated') +const int flLigature = 223; + +typedef float_t = ffi.Float; +typedef Dartfloat_t = double; + +final class flock$1 extends ffi.Struct { + @off_t() + external int l_start; + + @off_t() + external int l_len; + + @pid_t() + external int l_pid; + + @ffi.Short() + external int l_type; + + @ffi.Short() + external int l_whence; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int l_start, + required int l_len, + required int l_pid, + required int l_type, + required int l_whence, + }) => $allocator() + ..ref.l_start = l_start + ..ref.l_len = l_len + ..ref.l_pid = l_pid + ..ref.l_type = l_type + ..ref.l_whence = l_whence; +} + +final class flocktimeout extends ffi.Struct { + external flock$1 fl; + + external timespec timeout; +} + +const int floppyIconResource = -3998; + +const int fmt1Err = -82; + +const int fmt2Err = -83; + +const int fnOpnErr = -38; + +const int fnfErr = -43; + +const int fontDecError = -64; + +const int fontNotDeclared = -65; + +const int fontNotOutlineErr = -32615; + +const int fontSubErr = -66; + +const int fontsFolderIconResource = -3968; + +const int forceReadBit = 6; + +const int forceReadMask = 64; + +const int formAbsolutePosition = 1768842360; + +const int formName = 1851878757; + +const int formPropertyID = 1886547824; + +const int formRange = 1918987879; + +const int formRelativePosition = 1919249509; + +const int formTest = 1952805748; + +const int formUniqueID = 1229201440; + +const int formWhose = 2003332979; + +typedef fpos_t = __darwin_off_t; + +final class fpunchhole extends ffi.Struct { + @ffi.UnsignedInt() + external int fp_flags; + + @ffi.UnsignedInt() + external int reserved; + + @off_t() + external int fp_offset; + + @off_t() + external int fp_length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fp_flags, + required int reserved, + required int fp_offset, + required int fp_length, + }) => $allocator() + ..ref.fp_flags = fp_flags + ..ref.reserved = reserved + ..ref.fp_offset = fp_offset + ..ref.fp_length = fp_length; +} + +typedef fpunchhole_t = fpunchhole; +@Deprecated('Deprecated') +const int fraction = 218; + +const int fsAtMark = 0; + +const int fsCurPerm = 0; + +const int fsDSIntErr = -127; + +const int fsDataTooBigErr = -1310; + +const int fsFromLEOF = 2; + +const int fsFromMark = 3; + +const int fsFromStart = 1; + +@Deprecated('Deprecated') +const int fsQType = 5; + +const int fsRdAccessPerm = 1; + +const int fsRdDenyPerm = 16; + +const int fsRdPerm = 1; + +const int fsRdWrPerm = 3; + +const int fsRdWrShPerm = 4; + +const int fsRnErr = -59; + +const int fsRtDirID = 2; + +const int fsRtParID = 1; + +const int fsSBAccessDate = 131072; + +const int fsSBAccessDateBit = 17; + +const int fsSBAttributeModDate = 65536; + +const int fsSBAttributeModDateBit = 16; + +const int fsSBDrBkDat = 2048; + +const int fsSBDrBkDatBit = 11; + +const int fsSBDrCrDat = 512; + +const int fsSBDrCrDatBit = 9; + +const int fsSBDrFndrInfo = 4096; + +const int fsSBDrFndrInfoBit = 12; + +const int fsSBDrMdDat = 1024; + +const int fsSBDrMdDatBit = 10; + +const int fsSBDrNmFls = 16; + +const int fsSBDrNmFlsBit = 4; + +const int fsSBDrParID = 8192; + +const int fsSBDrParIDBit = 13; + +const int fsSBDrUsrWds = 8; + +const int fsSBDrUsrWdsBit = 3; + +const int fsSBFlAttrib = 4; + +const int fsSBFlAttribBit = 2; + +const int fsSBFlBkDat = 2048; + +const int fsSBFlBkDatBit = 11; + +const int fsSBFlCrDat = 512; + +const int fsSBFlCrDatBit = 9; + +const int fsSBFlFndrInfo = 8; + +const int fsSBFlFndrInfoBit = 3; + +const int fsSBFlLgLen = 32; + +const int fsSBFlLgLenBit = 5; + +const int fsSBFlMdDat = 1024; + +const int fsSBFlMdDatBit = 10; + +const int fsSBFlParID = 8192; + +const int fsSBFlParIDBit = 13; + +const int fsSBFlPyLen = 64; + +const int fsSBFlPyLenBit = 6; + +const int fsSBFlRLgLen = 128; + +const int fsSBFlRLgLenBit = 7; + +const int fsSBFlRPyLen = 256; + +const int fsSBFlRPyLenBit = 8; + +const int fsSBFlXFndrInfo = 4096; + +const int fsSBFlXFndrInfoBit = 12; + +const int fsSBFullName = 2; + +const int fsSBFullNameBit = 1; + +const int fsSBGroupID = 4194304; + +const int fsSBGroupIDBit = 22; + +const int fsSBNegate = 16384; + +const int fsSBNegateBit = 14; + +const int fsSBNodeID = 32768; + +const int fsSBNodeIDBit = 15; + +const int fsSBPartialName = 1; + +const int fsSBPartialNameBit = 0; + +const int fsSBPermissions = 262144; + +const int fsSBPermissionsBit = 18; + +const int fsSBSkipHiddenItems = 1048576; + +const int fsSBSkipHiddenItemsBit = 20; + +const int fsSBSkipPackageContents = 524288; + +const int fsSBSkipPackageContentsBit = 19; + +const int fsSBUserID = 2097152; + +const int fsSBUserIDBit = 21; + +const int fsUnixPriv = 1; + +const int fsWrAccessPerm = 2; + +const int fsWrDenyPerm = 32; + +const int fsWrPerm = 2; + +typedef fsblkcnt_t = __darwin_fsblkcnt_t; +typedef fsfilcnt_t = __darwin_fsfilcnt_t; + +final class fsid extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array val; +} + +typedef fsid_t = fsid; + +final class fsignatures extends ffi.Struct { + @off_t() + external int fs_file_start; + + external ffi.Pointer fs_blob_start; + + @ffi.Size() + external int fs_blob_size; + + @ffi.Size() + external int fs_fsignatures_size; + + @ffi.Array.multi([20]) + external ffi.Array fs_cdhash; + + @ffi.Int() + external int fs_hash_type; +} + +typedef fsignatures_t = fsignatures; + +const int fsmBadFFSNameErr = -433; + +const int fsmBadFSDLenErr = -434; + +const int fsmBadFSDVersionErr = -436; + +const int fsmBusyFFSErr = -432; + +const int fsmDuplicateFSIDErr = -435; + +const int fsmFFSNotFoundErr = -431; + +const int fsmNoAlternateStackErr = -437; + +const int fsmUnknownFSMMessageErr = -438; + +final class fsobj_id extends ffi.Struct { + @u_int32_t() + external int fid_objno; + + @u_int32_t() + external int fid_generation; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fid_objno, + required int fid_generation, + }) => $allocator() + ..ref.fid_objno = fid_objno + ..ref.fid_generation = fid_generation; +} + +typedef fsobj_id_t = fsobj_id; + +final class fspecread extends ffi.Struct { + @ffi.UnsignedInt() + external int fsr_flags; + + @ffi.UnsignedInt() + external int reserved; + + @off_t() + external int fsr_offset; + + @off_t() + external int fsr_length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fsr_flags, + required int reserved, + required int fsr_offset, + required int fsr_length, + }) => $allocator() + ..ref.fsr_flags = fsr_flags + ..ref.reserved = reserved + ..ref.fsr_offset = fsr_offset + ..ref.fsr_length = fsr_length; +} + +typedef fspecread_t = fspecread; + +final class fssearchblock extends ffi.Opaque {} + +final class fstore extends ffi.Struct { + @ffi.UnsignedInt() + external int fst_flags; + + @ffi.Int() + external int fst_posmode; + + @off_t() + external int fst_offset; + + @off_t() + external int fst_length; + + @off_t() + external int fst_bytesalloc; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fst_flags, + required int fst_posmode, + required int fst_offset, + required int fst_length, + required int fst_bytesalloc, + }) => $allocator() + ..ref.fst_flags = fst_flags + ..ref.fst_posmode = fst_posmode + ..ref.fst_offset = fst_offset + ..ref.fst_length = fst_length + ..ref.fst_bytesalloc = fst_bytesalloc; +} + +typedef fstore_t = fstore; + +final class fsupplement extends ffi.Struct { + @off_t() + external int fs_file_start; + + @off_t() + external int fs_blob_start; + + @ffi.Size() + external int fs_blob_size; + + @ffi.Int() + external int fs_orig_fd; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fs_file_start, + required int fs_blob_start, + required int fs_blob_size, + required int fs_orig_fd, + }) => $allocator() + ..ref.fs_file_start = fs_file_start + ..ref.fs_blob_start = fs_blob_start + ..ref.fs_blob_size = fs_blob_size + ..ref.fs_orig_fd = fs_orig_fd; +} + +typedef fsupplement_t = fsupplement; + +final class ftrimactivefile extends ffi.Struct { + @off_t() + external int fta_offset; + + @off_t() + external int fta_length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int fta_offset, + required int fta_length, + }) => $allocator() + ..ref.fta_offset = fta_offset + ..ref.fta_length = fta_length; +} + +typedef ftrimactivefile_t = ftrimactivefile; + +const int fullTrashIconResource = -3984; + +const int gWorldsNotSameDepthAndSizeErr = -2066; + +const int gcrOnMFMErr = -400; + +const int genCdevRangeBit = 27; + +const int genericApplicationIconResource = -3996; + +const int genericCDROMIconResource = -3987; + +const int genericDeskAccessoryIconResource = -3991; + +const int genericDocumentIconResource = -4000; + +const int genericEditionFileIconResource = -3989; + +const int genericExtensionIconResource = -16415; + +const int genericFileServerIconResource = -3972; + +const int genericFolderIconResource = -3999; + +const int genericHardDiskIconResource = -3995; + +const int genericMoverObjectIconResource = -3969; + +const int genericPreferencesIconResource = -3971; + +const int genericQueryDocumentIconResource = -16506; + +const int genericRAMDiskIconResource = -3988; + +const int genericStationeryIconResource = -3985; + +const int genericSuitcaseIconResource = -3970; + +const int gestalt16BitAudioSupport = 12; + +const int gestalt16BitSoundIO = 7; + +const int gestalt20thAnniversary = 512; + +const int gestalt32BitAddressing = 0; + +const int gestalt32BitCapable = 2; + +const int gestalt32BitQD = 512; + +const int gestalt32BitQD11 = 513; + +const int gestalt32BitQD12 = 544; + +const int gestalt32BitQD13 = 560; + +const int gestalt32BitSysZone = 1; + +const int gestalt68000 = 1; + +const int gestalt68010 = 2; + +const int gestalt68020 = 3; + +const int gestalt68030 = 4; + +const int gestalt68030MMU = 3; + +const int gestalt68040 = 5; + +const int gestalt68040FPU = 3; + +const int gestalt68040MMU = 4; + +const int gestalt68851 = 2; + +const int gestalt68881 = 1; + +const int gestalt68882 = 2; + +const int gestalt68k = 1; + +const int gestalt8BitQD = 256; + +const int gestaltADBISOKbdII = 11; + +const int gestaltADBKbdII = 10; + +const int gestaltAFPClient = 1634103411; + +const int gestaltAFPClient3_5 = 1; + +const int gestaltAFPClient3_6 = 2; + +const int gestaltAFPClient3_6_1 = 3; + +const int gestaltAFPClient3_6_2 = 4; + +const int gestaltAFPClient3_6_3 = 5; + +const int gestaltAFPClient3_7 = 6; + +const int gestaltAFPClient3_7_2 = 7; + +const int gestaltAFPClient3_8 = 8; + +const int gestaltAFPClient3_8_1 = 9; + +const int gestaltAFPClient3_8_3 = 10; + +const int gestaltAFPClient3_8_4 = 11; + +const int gestaltAFPClientAttributeMask = -65536; + +const int gestaltAFPClientCfgRsrc = 16; + +const int gestaltAFPClientMultiReq = 31; + +const int gestaltAFPClientSupportsIP = 29; + +const int gestaltAFPClientVMUI = 30; + +const int gestaltAFPClientVersionMask = 65535; + +const int gestaltALMAttr = 1953655152; + +const int gestaltALMHasCFMSupport = 2; + +const int gestaltALMHasRescanNotifiers = 3; + +const int gestaltALMHasSFGroup = 1; + +const int gestaltALMHasSFLocation = 1; + +const int gestaltALMPresent = 0; + +const int gestaltALMVers = 2002873451; + +const int gestaltAMU = 1; + +const int gestaltATAAttr = 1635016992; + +const int gestaltATAPresent = 0; + +const int gestaltATSUAscentDescentControlsFeature = 16; + +const int gestaltATSUBatchBreakLinesFeature = 16; + +const int gestaltATSUBiDiCursorPositionFeature = 32; + +const int gestaltATSUByCharacterClusterFeature = 16; + +const int gestaltATSUDecimalTabFeature = 32; + +const int gestaltATSUDirectAccess = 16; + +const int gestaltATSUDropShadowStyleFeature = 32; + +const int gestaltATSUFallbacksFeature = 1; + +const int gestaltATSUFallbacksObjFeatures = 8; + +const int gestaltATSUFeatures = 1969845094; + +const int gestaltATSUGlyphBoundsFeature = 1; + +const int gestaltATSUHighlightColorControlFeature = 32; + +const int gestaltATSUHighlightInactiveTextFeature = 16; + +const int gestaltATSUIgnoreLeadingFeature = 8; + +const int gestaltATSULayoutCacheClearFeature = 1; + +const int gestaltATSULayoutCreateAndCopyFeature = 1; + +const int gestaltATSULineControlFeature = 1; + +const int gestaltATSULowLevelOrigFeatures = 4; + +const int gestaltATSUMemoryFeature = 1; + +const int gestaltATSUNearestCharLineBreakFeature = 32; + +const int gestaltATSUPositionToCursorFeature = 16; + +const int gestaltATSUStrikeThroughStyleFeature = 32; + +const int gestaltATSUTabSupportFeature = 16; + +const int gestaltATSUTextLocatorUsageFeature = 2; + +const int gestaltATSUTrackingFeature = 1; + +const int gestaltATSUUnderlineOptionsStyleFeature = 32; + +const int gestaltATSUUpdate1 = 131072; + +const int gestaltATSUUpdate2 = 196608; + +const int gestaltATSUUpdate3 = 262144; + +const int gestaltATSUUpdate4 = 327680; + +const int gestaltATSUUpdate5 = 393216; + +const int gestaltATSUUpdate6 = 458752; + +const int gestaltATSUUpdate7 = 524288; + +const int gestaltATSUVersion = 1969845110; + +const int gestaltATalkVersion = 1635019638; + +const int gestaltAUXVersion = 1630500216; + +const int gestaltAVLTreeAttr = 1953654117; + +const int gestaltAVLTreePresentBit = 0; + +const int gestaltAVLTreeSupportsHandleBasedTreeBit = 1; + +const int gestaltAVLTreeSupportsTreeLockingBit = 2; + +const int gestaltAWS6150_60 = 75; + +const int gestaltAWS6150_66 = 100; + +const int gestaltAWS8150_110 = 40; + +const int gestaltAWS8150_80 = 65; + +const int gestaltAWS8550 = 68; + +const int gestaltAWS9150_120 = 57; + +const int gestaltAWS9150_80 = 39; + +const int gestaltAddressingModeAttr = 1633969266; + +const int gestaltAdminFeaturesFlagsAttr = 1718773092; + +const int gestaltAliasMgrAttr = 1634494835; + +const int gestaltAliasMgrFollowsAliasesWhenResolving = 4; + +const int gestaltAliasMgrPrefersPath = 7; + +const int gestaltAliasMgrPresent = 0; + +const int gestaltAliasMgrRequiresAccessors = 8; + +const int gestaltAliasMgrResolveAliasFileWithMountOptions = 3; + +const int gestaltAliasMgrSupportsAOCEKeychain = 2; + +const int gestaltAliasMgrSupportsExtendedCalls = 5; + +const int gestaltAliasMgrSupportsFSCalls = 6; + +const int gestaltAliasMgrSupportsRemoteAppletalk = 1; + +const int gestaltAllegroQD = 592; + +const int gestaltAllegroQDText = 256; + +const int gestaltAltivecRegistersSwappedCorrectlyBit = 20; + +const int gestaltAntiAliasedTextAvailable = 2; + +const int gestaltAppearanceAttr = 1634758770; + +const int gestaltAppearanceCompatMode = 1; + +const int gestaltAppearanceExists = 0; + +const int gestaltAppearanceVersion = 1634760306; + +const int gestaltAppleAdjustADBKbd = 15; + +const int gestaltAppleAdjustISOKbd = 16; + +const int gestaltAppleAdjustKeypad = 14; + +const int gestaltAppleEventsAttr = 1702260340; + +const int gestaltAppleEventsPresent = 0; + +const int gestaltAppleGuideIsDebug = 30; + +const int gestaltAppleGuidePresent = 31; + +const int gestaltAppleScriptAttr = 1634952050; + +const int gestaltAppleScriptPowerPCSupport = 1; + +const int gestaltAppleScriptPresent = 0; + +const int gestaltAppleScriptVersion = 1634952054; + +const int gestaltAppleTalkVersion = 1635019883; + +const int gestaltArbitorAttr = 1634886176; + +const int gestaltArm = 20; + +const int gestaltAsyncSCSI = 0; + +const int gestaltAsyncSCSIINROM = 1; + +const int gestaltBuiltInSoundInput = 4; + +const int gestaltBusClkSpeed = 1650682987; + +const int gestaltBusClkSpeedMHz = 1650682989; + +const int gestaltCFM99Present = 2; + +const int gestaltCFM99PresentMask = 4; + +const int gestaltCFMAttr = 1667658343; + +const int gestaltCFMPresent = 0; + +const int gestaltCFMPresentMask = 1; + +const int gestaltCPU486 = 1765029942; + +const int gestaltCPU601 = 257; + +const int gestaltCPU603 = 259; + +const int gestaltCPU603e = 262; + +const int gestaltCPU603ev = 263; + +const int gestaltCPU604 = 260; + +const int gestaltCPU604e = 265; + +const int gestaltCPU604ev = 266; + +const int gestaltCPU68000 = 0; + +const int gestaltCPU68010 = 1; + +const int gestaltCPU68020 = 2; + +const int gestaltCPU68030 = 3; + +const int gestaltCPU68040 = 4; + +const int gestaltCPU750 = 264; + +const int gestaltCPU750FX = 288; + +const int gestaltCPU970 = 313; + +const int gestaltCPU970FX = 316; + +const int gestaltCPU970MP = 324; + +const int gestaltCPUARM64 = 1635268148; + +const int gestaltCPUARMFamily = 1634888992; + +const int gestaltCPUApollo = 273; + +const int gestaltCPUG4 = 268; + +const int gestaltCPUG47447 = 274; + +const int gestaltCPUG47450 = 272; + +const int gestaltCPUPentium = 1765095478; + +const int gestaltCPUPentium4 = 1765108086; + +const int gestaltCPUPentiumII = 1765108073; + +const int gestaltCPUPentiumPro = 1765109874; + +const int gestaltCPUX86 = 1769502840; + +const int gestaltCRMAttr = 1668443424; + +const int gestaltCRMPersistentFix = 1; + +const int gestaltCRMPresent = 0; + +const int gestaltCRMToolRsrcCalls = 2; + +const int gestaltCTBVersion = 1668571766; + +const int gestaltCanStartDragInFloatWindow = 4; + +const int gestaltCanUseCGTextRendering = 6; + +const int gestaltCarbonVersion = 1667395438; + +const int gestaltCardServicesPresent = 0; + +const int gestaltClassic = 1; + +const int gestaltClassicII = 23; + +const int gestaltCloseViewAttr = 1112753249; + +const int gestaltCloseViewDisplayMgrFriendly = 1; + +const int gestaltCloseViewEnabled = 0; + +const int gestaltCollectionMgrVersion = 1668052078; + +const int gestaltColorMatchingAttr = 1668117601; + +const int gestaltColorMatchingLibLoaded = 1; + +const int gestaltColorMatchingVersion = 1668117603; + +const int gestaltColorPicker = 1668311922; + +const int gestaltColorPickerVersion = 1668311922; + +const int gestaltColorSync10 = 256; + +const int gestaltColorSync104 = 260; + +const int gestaltColorSync105 = 261; + +const int gestaltColorSync11 = 272; + +const int gestaltColorSync20 = 512; + +const int gestaltColorSync21 = 528; + +const int gestaltColorSync211 = 529; + +const int gestaltColorSync212 = 530; + +const int gestaltColorSync213 = 531; + +const int gestaltColorSync25 = 592; + +const int gestaltColorSync26 = 608; + +const int gestaltColorSync261 = 609; + +const int gestaltColorSync30 = 768; + +const int gestaltComponentMgr = 1668312692; + +const int gestaltComponentPlatform = 1668247660; + +const int gestaltCompressionMgr = 1768123760; + +const int gestaltConnMgrAttr = 1668247150; + +const int gestaltConnMgrCMSearchFix = 1; + +const int gestaltConnMgrErrorString = 2; + +const int gestaltConnMgrMultiAsyncIO = 3; + +const int gestaltConnMgrPresent = 0; + +const int gestaltControlMgrAttr = 1668183148; + +const int gestaltControlMgrPresent = 1; + +const int gestaltControlMgrPresentBit = 0; + +const int gestaltControlMgrVersion = 1668118130; + +const int gestaltControlMsgPresentMask = 1; + +const int gestaltControlStripAttr = 1935959414; + +const int gestaltControlStripExists = 0; + +const int gestaltControlStripUserFont = 2; + +const int gestaltControlStripUserHotKey = 3; + +const int gestaltControlStripVersion = 1668511346; + +const int gestaltControlStripVersionFixed = 1; + +const int gestaltCountOfCPUs = 1668314483; + +const int gestaltCreatesAliasFontRsrc = 4; + +const int gestaltCurrentGraphicsVersion = 66048; + +const int gestaltDBAccessMgrAttr = 1684169059; + +const int gestaltDBAccessMgrPresent = 0; + +const int gestaltDITLExtAttr = 1684632684; + +const int gestaltDITLExtPresent = 0; + +const int gestaltDITLExtSupportsIctb = 1; + +const int gestaltDTMgrSupportsFSM = 7; + +const int gestaltDTPFeatures = 1685352550; + +const int gestaltDTPInfo = 1685352568; + +const int gestaltDesktopPicturesAttr = 1684762744; + +const int gestaltDesktopPicturesDisplayed = 1; + +const int gestaltDesktopPicturesInstalled = 0; + +const int gestaltDesktopSpeechRecognition = 1; + +const int gestaltDialogMgrAttr = 1684828007; + +const int gestaltDialogMgrHasAquaAlertBit = 2; + +const int gestaltDialogMgrHasAquaAlertMask = 4; + +const int gestaltDialogMgrPresent = 1; + +const int gestaltDialogMgrPresentBit = 0; + +const int gestaltDialogMgrPresentMask = 1; + +const int gestaltDialogMsgPresentMask = 1; + +const int gestaltDictionaryMgrAttr = 1684628340; + +const int gestaltDictionaryMgrPresent = 0; + +const int gestaltDigitalSignatureVersion = 1685285223; + +const int gestaltDiskCacheSize = 1684239226; + +const int gestaltDisplayMgrAttr = 1685089401; + +const int gestaltDisplayMgrCanConfirm = 4; + +const int gestaltDisplayMgrCanSwitchMirrored = 2; + +const int gestaltDisplayMgrColorSyncAware = 5; + +const int gestaltDisplayMgrGeneratesProfiles = 6; + +const int gestaltDisplayMgrPresent = 0; + +const int gestaltDisplayMgrSetDepthNotifies = 3; + +const int gestaltDisplayMgrSleepNotifies = 7; + +const int gestaltDisplayMgrVers = 1685089398; + +const int gestaltDragMgrAttr = 1685217639; + +const int gestaltDragMgrFloatingWind = 1; + +const int gestaltDragMgrHasImageSupport = 3; + +const int gestaltDragMgrPresent = 0; + +const int gestaltDrawSprocketVersion = 1685287030; + +const int gestaltDupSelectorErr = -5552; + +const int gestaltEMMU1 = 5; + +const int gestaltEasyAccessAttr = 1700885369; + +const int gestaltEasyAccessLocked = 3; + +const int gestaltEasyAccessOff = 0; + +const int gestaltEasyAccessOn = 1; + +const int gestaltEasyAccessSticky = 2; + +const int gestaltEditionMgrAttr = 1701082222; + +const int gestaltEditionMgrPresent = 0; + +const int gestaltEditionMgrTranslationAware = 1; + +const int gestaltExtADBKbd = 4; + +const int gestaltExtISOADBKbd = 9; + +const int gestaltExtToolboxTable = 2020897908; + +const int gestaltExtendedTimeMgr = 3; + +const int gestaltExtendedWindowAttributes = 1; + +const int gestaltExtendedWindowAttributesBit = 1; + +const int gestaltExtendedWindowAttributesMask = 2; + +const int gestaltExtensionTableVersion = 1702126188; + +const int gestaltFBCCurrentVersion = 17; + +const int gestaltFBCIndexingState = 1717724009; + +const int gestaltFBCVersion = 1717724022; + +const int gestaltFBCindexingCritical = 1; + +const int gestaltFBCindexingSafe = 0; + +const int gestaltFPUType = 1718646048; + +const int gestaltFSAllowsConcurrentAsyncIO = 17; + +const int gestaltFSAttr = 1718820896; + +const int gestaltFSIncompatibleDFA82 = 10; + +const int gestaltFSMDoesDynamicLoad = 3; + +const int gestaltFSMVersion = 1718840608; + +const int gestaltFSNoMFSVols = 8; + +const int gestaltFSSupports2TBVols = 5; + +const int gestaltFSSupports4GBVols = 4; + +const int gestaltFSSupportsDirectIO = 11; + +const int gestaltFSSupportsExclusiveLocks = 15; + +const int gestaltFSSupportsHFSPlusVols = 9; + +const int gestaltFSSupportsHardLinkDetection = 16; + +const int gestaltFSUsesPOSIXPathsForConversion = 14; + +const int gestaltFXfrMgrAsync = 3; + +const int gestaltFXfrMgrAttr = 1719166578; + +const int gestaltFXfrMgrErrorString = 2; + +const int gestaltFXfrMgrMultiFile = 1; + +const int gestaltFXfrMgrPresent = 0; + +const int gestaltFileAllocationZeroedBlocksBit = 4; + +const int gestaltFileMappingAttr = 1718381936; + +const int gestaltFileMappingMultipleFilesFix = 1; + +const int gestaltFileMappingPresent = 0; + +const int gestaltFindFolderAttr = 1718578276; + +const int gestaltFindFolderPresent = 0; + +const int gestaltFindFolderRedirectionAttr = 1718578277; + +const int gestaltFinderAttr = 1718510706; + +const int gestaltFinderCallsAEProcess = 2; + +const int gestaltFinderDropEvent = 0; + +const int gestaltFinderFloppyRootComments = 8; + +const int gestaltFinderFullDragManagerSupport = 7; + +const int gestaltFinderHasClippings = 6; + +const int gestaltFinderLargeAndNotSavedFlavorsOK = 9; + +const int gestaltFinderMagicPlacement = 1; + +const int gestaltFinderSupports4GBVolumes = 4; + +const int gestaltFinderUnderstandsRedirectedDesktopFolder = 11; + +const int gestaltFinderUsesExtensibleFolderManager = 10; + +const int gestaltFinderUsesSpecialOpenFoldersFile = 0; + +const int gestaltFirstSlotNumber = 1936487473; + +const int gestaltFloppyAttr = 1718382713; + +const int gestaltFloppyIsMFMOnly = 0; + +const int gestaltFloppyIsManualEject = 1; + +const int gestaltFloppyUsesDiskInPlace = 2; + +const int gestaltFolderDescSupport = 1; + +const int gestaltFolderMgrFollowsAliasesWhenResolving = 2; + +const int gestaltFolderMgrSupportsDomains = 4; + +const int gestaltFolderMgrSupportsExtendedCalls = 3; + +const int gestaltFolderMgrSupportsFSCalls = 5; + +const int gestaltFontMgrAttr = 1718578804; + +const int gestaltFrontWindowMayBeHiddenBit = 8; + +const int gestaltFrontWindowMayBeHiddenMask = 256; + +const int gestaltFullExtFSDispatching = 0; + +const int gestaltGXPrintingMgrVersion = 1886218098; + +const int gestaltGXVersion = 1902405496; + +const int gestaltGraphicsAttr = 1734768737; + +const int gestaltGraphicsIsDebugging = 1; + +const int gestaltGraphicsIsLoaded = 2; + +const int gestaltGraphicsIsPowerPC = 4; + +const int gestaltGraphicsVersion = 1735550584; + +const int gestaltHardwareAttr = 1751414642; + +const int gestaltHardwareVendorApple = 1097887852; + +const int gestaltHardwareVendorCode = 1752326500; + +const int gestaltHasASC = 3; + +const int gestaltHasColor = 0; + +const int gestaltHasDeepGWorlds = 1; + +const int gestaltHasDirectPixMaps = 2; + +const int gestaltHasEnhancedLtalk = 30; + +const int gestaltHasExtendedDiskInit = 6; + +const int gestaltHasFMTuner = 7; + +const int gestaltHasFSSpecCalls = 1; + +const int gestaltHasFileSystemManager = 2; + +const int gestaltHasFloatingWindows = 2; + +const int gestaltHasFloatingWindowsBit = 2; + +const int gestaltHasFloatingWindowsMask = 4; + +const int gestaltHasGPIaToDCDa = 0; + +const int gestaltHasGPIaToRTxCa = 1; + +const int gestaltHasGPIbToDCDb = 2; + +const int gestaltHasGrayishTextOr = 3; + +const int gestaltHasHFSPlusAPIs = 12; + +const int gestaltHasHWClosedCaptioning = 2; + +const int gestaltHasIRRemote = 3; + +const int gestaltHasParityCapability = 0; + +const int gestaltHasResourceOverrides = 1; + +const int gestaltHasSCC = 4; + +const int gestaltHasSCSI = 7; + +const int gestaltHasSCSI961 = 21; + +const int gestaltHasSCSI962 = 22; + +const int gestaltHasSerialFader = 6; + +const int gestaltHasSingleWindowModeBit = 8; + +const int gestaltHasSingleWindowModeMask = 256; + +const int gestaltHasSoftPowerOff = 19; + +const int gestaltHasSoundFader = 1; + +const int gestaltHasSoundInputDevice = 5; + +const int gestaltHasStereoDecoder = 5; + +const int gestaltHasSystemIRFunction = 8; + +const int gestaltHasTVTuner = 0; + +const int gestaltHasUniversalROM = 24; + +const int gestaltHasVIA1 = 0; + +const int gestaltHasVIA2 = 1; + +const int gestaltHasVidDecoderScaler = 4; + +const int gestaltHasWindowBuffering = 3; + +const int gestaltHasWindowBufferingBit = 3; + +const int gestaltHasWindowBufferingMask = 8; + +const int gestaltHasWindowShadowsBit = 6; + +const int gestaltHasWindowShadowsMask = 64; + +const int gestaltHasZoomedVideo = 11; + +const int gestaltHelpMgrAttr = 1751477360; + +const int gestaltHelpMgrExtensions = 1; + +const int gestaltHelpMgrPresent = 0; + +const int gestaltHidePortA = 3; + +const int gestaltHidePortB = 4; + +const int gestaltHighLevelMatching = 0; + +const int gestaltINeedIRPowerOffConfirm = 10; + +const int gestaltIPCSupport = 7; + +const int gestaltIRDisabled = 9; + +const int gestaltIconUtilitiesAttr = 1768124270; + +const int gestaltIconUtilitiesHas32BitIcons = 2; + +const int gestaltIconUtilitiesHas48PixelIcons = 1; + +const int gestaltIconUtilitiesHas8BitDeepMasks = 3; + +const int gestaltIconUtilitiesHasIconServices = 4; + +const int gestaltIconUtilitiesPresent = 0; + +const int gestaltInitHeapZerosOutHeapsBit = 1; + +const int gestaltIntel = 10; + +const int gestaltInternalDisplay = 1768190832; + +const int gestaltJapanAdjustADBKbd = 17; + +const int gestaltKeyboardType = 1801610272; + +const int gestaltLaunchCanReturn = 1; + +const int gestaltLaunchControl = 3; + +const int gestaltLaunchFullFileSpec = 2; + +const int gestaltLineLevelInput = 9; + +const int gestaltLocationErr = -5553; + +const int gestaltLogicalPageSize = 1885827962; + +const int gestaltLogicalRAMSize = 1819435373; + +const int gestaltLowMemorySize = 1819108717; + +const int gestaltMBLegacy = 0; + +const int gestaltMBMultipleBays = 2; + +const int gestaltMBSingleBay = 1; + +const int gestaltMMUType = 1835889952; + +const int gestaltMPCallableAPIsAttr = 1836086115; + +const int gestaltMPDeviceManager = 1; + +const int gestaltMPFileManager = 0; + +const int gestaltMPTrapCalls = 2; + +const int gestaltMac512KE = 3; + +const int gestaltMacAndPad = 2; + +const int gestaltMacCentris610 = 52; + +const int gestaltMacCentris650 = 30; + +const int gestaltMacCentris660AV = 60; + +const int gestaltMacClassic = 17; + +const int gestaltMacColorClassic = 49; + +const int gestaltMacII = 6; + +const int gestaltMacIIci = 11; + +const int gestaltMacIIcx = 8; + +const int gestaltMacIIfx = 13; + +const int gestaltMacIIsi = 18; + +const int gestaltMacIIvi = 44; + +const int gestaltMacIIvm = 45; + +const int gestaltMacIIvx = 48; + +const int gestaltMacIIx = 7; + +const int gestaltMacKbd = 1; + +const int gestaltMacLC = 19; + +const int gestaltMacLC475 = 89; + +const int gestaltMacLC520 = 56; + +const int gestaltMacLC575 = 92; + +const int gestaltMacLC580 = 99; + +const int gestaltMacLCII = 37; + +const int gestaltMacLCIII = 27; + +const int gestaltMacOSCompatibility = 1206; + +const int gestaltMacOSCompatibilityBoxAttr = 1650618232; + +const int gestaltMacOSCompatibilityBoxHasSerial = 1; + +const int gestaltMacOSCompatibilityBoxPresent = 0; + +const int gestaltMacOSCompatibilityBoxless = 2; + +const int gestaltMacOSXQD = 768; + +const int gestaltMacOSXQDText = 512; + +const int gestaltMacPlus = 4; + +const int gestaltMacPlusKbd = 3; + +const int gestaltMacQuadra605 = 94; + +const int gestaltMacQuadra610 = 53; + +const int gestaltMacQuadra630 = 98; + +const int gestaltMacQuadra650 = 36; + +const int gestaltMacQuadra660AV = 60; + +const int gestaltMacQuadra700 = 22; + +const int gestaltMacQuadra800 = 35; + +const int gestaltMacQuadra840AV = 78; + +const int gestaltMacQuadra900 = 20; + +const int gestaltMacQuadra950 = 26; + +const int gestaltMacSE = 5; + +const int gestaltMacSE030 = 9; + +const int gestaltMacTV = 88; + +const int gestaltMacXL = 2; + +const int gestaltMachineIcon = 1835623278; + +const int gestaltMachineType = 1835098984; + +const int gestaltMediaBay = 1835165032; + +const int gestaltMemoryMapAttr = 1835884912; + +const int gestaltMemoryMapSparse = 0; + +const int gestaltMenuMgrAquaLayoutBit = 1; + +const int gestaltMenuMgrAquaLayoutMask = 2; + +const int gestaltMenuMgrAttr = 1835363957; + +const int gestaltMenuMgrCGImageMenuTitleBit = 6; + +const int gestaltMenuMgrCGImageMenuTitleMask = 64; + +const int gestaltMenuMgrMoreThanFiveMenusDeepBit = 5; + +const int gestaltMenuMgrMoreThanFiveMenusDeepMask = 32; + +const int gestaltMenuMgrMultipleItemsWithCommandIDBit = 2; + +const int gestaltMenuMgrMultipleItemsWithCommandIDMask = 4; + +const int gestaltMenuMgrPresent = 1; + +const int gestaltMenuMgrPresentBit = 0; + +const int gestaltMenuMgrPresentMask = 1; + +const int gestaltMenuMgrRetainsIconRefBit = 3; + +const int gestaltMenuMgrRetainsIconRefMask = 8; + +const int gestaltMenuMgrSendsMenuBoundsToDefProcBit = 4; + +const int gestaltMenuMgrSendsMenuBoundsToDefProcMask = 16; + +const int gestaltMessageMgrVersion = 1835365235; + +const int gestaltMiscAttr = 1835627363; + +const int gestaltMixedModeAttr = 1835628644; + +const int gestaltMixedModeCFM68K = 1; + +const int gestaltMixedModeCFM68KHasState = 3; + +const int gestaltMixedModeCFM68KHasTrap = 2; + +const int gestaltMixedModePowerPC = 0; + +const int gestaltMixedModeVersion = 1835628644; + +const int gestaltMultiChannels = 11; + +const int gestaltMultipleUsersState = 1835426930; + +const int gestaltMustUseFCBAccessors = 13; + +const int gestaltNameRegistryVersion = 1852990823; + +const int gestaltNativeCPUfamily = 1668314470; + +const int gestaltNativeCPUtype = 1668314484; + +const int gestaltNativeProcessMgrBit = 19; + +const int gestaltNativeTimeMgr = 4; + +const int gestaltNativeType1FontSupport = 5; + +const int gestaltNewHandleReturnsZeroedMemoryBit = 2; + +const int gestaltNewPtrReturnsZeroedMemoryBit = 3; + +const int gestaltNoFPU = 0; + +const int gestaltNoMMU = 0; + +const int gestaltNotificationMgrAttr = 1852663666; + +const int gestaltNotificationPresent = 0; + +const int gestaltNuBusConnectors = 1936487523; + +const int gestaltNuBusPresent = 1; + +const int gestaltNuBusSlotCount = 1853186675; + +const int gestaltOCESFServerAvailable = 4; + +const int gestaltOCETB = 258; + +const int gestaltOCETBAvailable = 2; + +const int gestaltOCETBNativeGlueAvailable = 16; + +const int gestaltOCETBPresent = 1; + +const int gestaltOCEToolboxAttr = 1868785013; + +const int gestaltOCEToolboxVersion = 1868785012; + +const int gestaltOFA2available = 3; + +const int gestaltOSAttr = 1869815840; + +const int gestaltOSLCompliantFinder = 3; + +const int gestaltOSLInSystem = 2; + +const int gestaltOSTable = 1869837428; + +const int gestaltOSXFBCCurrentVersion = 256; + +const int gestaltOpenFirmwareInfo = 1869637239; + +const int gestaltOpenTpt = 1869898094; + +const int gestaltOpenTptARAPPresent = 6; + +const int gestaltOpenTptAppleTalkLoadedBit = 3; + +const int gestaltOpenTptAppleTalkLoadedMask = 8; + +const int gestaltOpenTptAppleTalkPresentBit = 2; + +const int gestaltOpenTptAppleTalkPresentMask = 4; + +const int gestaltOpenTptIPXSPXLoadedBit = 7; + +const int gestaltOpenTptIPXSPXLoadedMask = 128; + +const int gestaltOpenTptIPXSPXPresentBit = 6; + +const int gestaltOpenTptIPXSPXPresentMask = 64; + +const int gestaltOpenTptLoadedBit = 1; + +const int gestaltOpenTptLoadedMask = 2; + +const int gestaltOpenTptNetworkSetup = 1869898598; + +const int gestaltOpenTptNetworkSetupLegacyExport = 1; + +const int gestaltOpenTptNetworkSetupLegacyImport = 0; + +const int gestaltOpenTptNetworkSetupSupportsMultihoming = 2; + +const int gestaltOpenTptNetworkSetupVersion = 1869898614; + +const int gestaltOpenTptPPPPresent = 5; + +const int gestaltOpenTptPresentBit = 0; + +const int gestaltOpenTptPresentMask = 1; + +const int gestaltOpenTptRemoteAccess = 1869902433; + +const int gestaltOpenTptRemoteAccessClientOnly = 2; + +const int gestaltOpenTptRemoteAccessLoaded = 1; + +const int gestaltOpenTptRemoteAccessMPServer = 4; + +const int gestaltOpenTptRemoteAccessPServer = 3; + +const int gestaltOpenTptRemoteAccessPresent = 0; + +const int gestaltOpenTptRemoteAccessVersion = 1869902454; + +const int gestaltOpenTptTCPLoadedBit = 5; + +const int gestaltOpenTptTCPLoadedMask = 32; + +const int gestaltOpenTptTCPPresentBit = 4; + +const int gestaltOpenTptTCPPresentMask = 16; + +const int gestaltOpenTptVersions = 1869903474; + +const int gestaltOriginalATSUVersion = 65536; + +const int gestaltOriginalQD = 0; + +const int gestaltOriginalQDText = 0; + +const int gestaltOutlineFonts = 0; + +const int gestaltPCCard = 1885561700; + +const int gestaltPCCardFamilyPresent = 1; + +const int gestaltPCCardHasPowerControl = 2; + +const int gestaltPCCardSupportsCardBus = 3; + +const int gestaltPCXAttr = 1885567079; + +const int gestaltPCXHas8and16BitFAT = 0; + +const int gestaltPCXHasProDOS = 1; + +const int gestaltPCXNewUI = 2; + +const int gestaltPCXUseICMapping = 3; + +const int gestaltPMgrCPUIdle = 1; + +const int gestaltPMgrDispatchExists = 4; + +const int gestaltPMgrExists = 0; + +const int gestaltPMgrSCC = 2; + +const int gestaltPMgrSound = 3; + +const int gestaltPMgrSupportsAVPowerStateAtSleepWake = 5; + +const int gestaltPPCDragLibPresent = 2; + +const int gestaltPPCQuickTimeLibPresent = 0; + +const int gestaltPPCSupportsIncoming = 1; + +const int gestaltPPCSupportsIncomingAppleTalk = 16; + +const int gestaltPPCSupportsIncomingTCP_IP = 32; + +const int gestaltPPCSupportsOutGoing = 2; + +const int gestaltPPCSupportsOutgoingAppleTalk = 256; + +const int gestaltPPCSupportsOutgoingTCP_IP = 512; + +const int gestaltPPCSupportsRealTime = 4096; + +const int gestaltPPCSupportsTCP_IP = 4; + +const int gestaltPPCToolboxAttr = 1886413600; + +const int gestaltPPCToolboxPresent = 0; + +const int gestaltPS2Keyboard = 27; + +const int gestaltParityAttr = 1886549113; + +const int gestaltParityEnabled = 1; + +const int gestaltPartialRsrcs = 0; + +const int gestaltPerforma250 = 49; + +const int gestaltPerforma450 = 27; + +const int gestaltPerforma46x = 62; + +const int gestaltPerforma47x = 89; + +const int gestaltPerforma5300 = 41; + +const int gestaltPerforma550 = 80; + +const int gestaltPerforma580 = 99; + +const int gestaltPerforma600 = 45; + +const int gestaltPerforma6300 = 42; + +const int gestaltPerforma6360 = 58; + +const int gestaltPerforma6400 = 58; + +const int gestaltPhysicalRAMSize = 1918987552; + +const int gestaltPhysicalRAMSizeInMegabytes = 1918987629; + +const int gestaltPlayAndRecord = 6; + +const int gestaltPopupAttr = 1886351393; + +const int gestaltPopupPresent = 0; + +const int gestaltPortADisabled = 5; + +const int gestaltPortBDisabled = 6; + +const int gestaltPortable = 10; + +const int gestaltPortable2001ANSIKbd = 202; + +const int gestaltPortable2001ISOKbd = 203; + +const int gestaltPortable2001JISKbd = 207; + +const int gestaltPortableSlotPresent = 4; + +const int gestaltPortableUSBANSIKbd = 37; + +const int gestaltPortableUSBISOKbd = 38; + +const int gestaltPortableUSBJISKbd = 39; + +const int gestaltPowerBook100 = 24; + +const int gestaltPowerBook140 = 25; + +const int gestaltPowerBook1400 = 310; + +const int gestaltPowerBook145 = 54; + +const int gestaltPowerBook150 = 115; + +const int gestaltPowerBook160 = 34; + +const int gestaltPowerBook165 = 84; + +const int gestaltPowerBook165c = 50; + +const int gestaltPowerBook170 = 21; + +const int gestaltPowerBook180 = 33; + +const int gestaltPowerBook180c = 71; + +const int gestaltPowerBook190 = 85; + +const int gestaltPowerBook2400 = 307; + +const int gestaltPowerBook3400 = 306; + +const int gestaltPowerBook500PPCUpgrade = 126; + +const int gestaltPowerBook520 = 72; + +const int gestaltPowerBook520c = 72; + +const int gestaltPowerBook5300 = 128; + +const int gestaltPowerBook540 = 72; + +const int gestaltPowerBook540c = 72; + +const int gestaltPowerBookDuo210 = 29; + +const int gestaltPowerBookDuo230 = 32; + +const int gestaltPowerBookDuo2300 = 124; + +const int gestaltPowerBookDuo250 = 38; + +const int gestaltPowerBookDuo270c = 77; + +const int gestaltPowerBookDuo280 = 102; + +const int gestaltPowerBookDuo280c = 103; + +const int gestaltPowerBookG3 = 313; + +const int gestaltPowerBookG3Series = 312; + +const int gestaltPowerBookG3Series2 = 314; + +const int gestaltPowerMac4400 = 515; + +const int gestaltPowerMac4400_160 = 514; + +const int gestaltPowerMac5200 = 41; + +const int gestaltPowerMac5260 = 41; + +const int gestaltPowerMac5400 = 74; + +const int gestaltPowerMac5500 = 512; + +const int gestaltPowerMac6100_60 = 75; + +const int gestaltPowerMac6100_66 = 100; + +const int gestaltPowerMac6200 = 42; + +const int gestaltPowerMac6400 = 58; + +const int gestaltPowerMac6500 = 513; + +const int gestaltPowerMac7100_66 = 112; + +const int gestaltPowerMac7100_80 = 47; + +const int gestaltPowerMac7200 = 108; + +const int gestaltPowerMac7300 = 109; + +const int gestaltPowerMac7500 = 68; + +const int gestaltPowerMac7600 = 68; + +const int gestaltPowerMac8100_100 = 55; + +const int gestaltPowerMac8100_110 = 40; + +const int gestaltPowerMac8100_120 = 12; + +const int gestaltPowerMac8100_80 = 65; + +const int gestaltPowerMac8500 = 69; + +const int gestaltPowerMac8600 = 69; + +const int gestaltPowerMac9500 = 67; + +const int gestaltPowerMac9600 = 67; + +const int gestaltPowerMacCentris610 = 119; + +const int gestaltPowerMacCentris650 = 120; + +const int gestaltPowerMacG3 = 510; + +const int gestaltPowerMacLC475 = 104; + +const int gestaltPowerMacLC575 = 105; + +const int gestaltPowerMacLC630 = 106; + +const int gestaltPowerMacNewWorld = 406; + +const int gestaltPowerMacPerforma47x = 104; + +const int gestaltPowerMacPerforma57x = 105; + +const int gestaltPowerMacPerforma63x = 106; + +const int gestaltPowerMacQuadra610 = 121; + +const int gestaltPowerMacQuadra630 = 106; + +const int gestaltPowerMacQuadra650 = 122; + +const int gestaltPowerMacQuadra700 = 116; + +const int gestaltPowerMacQuadra800 = 123; + +const int gestaltPowerMacQuadra900 = 117; + +const int gestaltPowerMacQuadra950 = 118; + +const int gestaltPowerMgrAttr = 1886353266; + +const int gestaltPowerMgrVers = 1886876278; + +const int gestaltPowerPC = 2; + +const int gestaltPowerPCASArchitecture = 8; + +const int gestaltPowerPCAware = 0; + +const int gestaltPowerPCHas64BitSupport = 6; + +const int gestaltPowerPCHasDCBAInstruction = 3; + +const int gestaltPowerPCHasDCBTStreams = 7; + +const int gestaltPowerPCHasDataStreams = 5; + +const int gestaltPowerPCHasGraphicsInstructions = 0; + +const int gestaltPowerPCHasSTFIWXInstruction = 1; + +const int gestaltPowerPCHasSquareRootInstructions = 2; + +const int gestaltPowerPCHasVectorInstructions = 4; + +const int gestaltPowerPCIgnoresDCBST = 9; + +const int gestaltPowerPCProcessorFeatures = 1886413670; + +const int gestaltProF16ANSIKbd = 31; + +const int gestaltProF16ISOKbd = 32; + +const int gestaltProF16JISKbd = 33; + +const int gestaltProcClkSpeed = 1885564011; + +const int gestaltProcClkSpeedMHz = 1835232363; + +const int gestaltProcessorCacheLineSize = 1668508026; + +const int gestaltProcessorType = 1886547811; + +const int gestaltPrtblADBKbd = 6; + +const int gestaltPrtblISOKbd = 7; + +const int gestaltPwrBk99JISKbd = 201; + +const int gestaltPwrBkEKDomKbd = 195; + +const int gestaltPwrBkEKISOKbd = 196; + +const int gestaltPwrBkEKJISKbd = 197; + +const int gestaltPwrBkExtADBKbd = 24; + +const int gestaltPwrBkExtISOKbd = 20; + +const int gestaltPwrBkExtJISKbd = 21; + +const int gestaltPwrBkSubDomKbd = 28; + +const int gestaltPwrBkSubISOKbd = 29; + +const int gestaltPwrBkSubJISKbd = 30; + +const int gestaltPwrBookADBKbd = 12; + +const int gestaltPwrBookISOADBKbd = 13; + +const int gestaltQD3D = 1902392164; + +const int gestaltQD3DPresent = 0; + +const int gestaltQD3DVersion = 1899197984; + +const int gestaltQD3DViewer = 1899198051; + +const int gestaltQD3DViewerPresent = 0; + +const int gestaltQDHasLongRowBytes = 5; + +const int gestaltQDTextFeatures = 1902408806; + +const int gestaltQDTextVersion = 1902408824; + +const int gestaltQTVRCubicPanosPresent = 3; + +const int gestaltQTVRCylinderPanosPresent = 2; + +const int gestaltQTVRMgrAttr = 1903457906; + +const int gestaltQTVRMgrPresent = 0; + +const int gestaltQTVRMgrVers = 1903457910; + +const int gestaltQTVRObjMoviesPresent = 1; + +const int gestaltQuadra605 = 94; + +const int gestaltQuadra610 = 53; + +const int gestaltQuadra630 = 98; + +const int gestaltQuadra650 = 36; + +const int gestaltQuadra660AV = 60; + +const int gestaltQuadra700 = 22; + +const int gestaltQuadra800 = 35; + +const int gestaltQuadra840AV = 78; + +const int gestaltQuadra900 = 20; + +const int gestaltQuadra950 = 26; + +const int gestaltQuickTime = 1903454573; + +const int gestaltQuickTimeConferencing = 1836346475; + +const int gestaltQuickTimeConferencingInfo = 1903453033; + +const int gestaltQuickTimeFeatures = 1903456883; + +const int gestaltQuickTimeStreamingFeatures = 1903457126; + +const int gestaltQuickTimeStreamingVersion = 1903457140; + +const int gestaltQuickTimeThreadSafeFeaturesAttr = 1903457384; + +const int gestaltQuickTimeThreadSafeGraphicsExport = 5; + +const int gestaltQuickTimeThreadSafeGraphicsImport = 4; + +const int gestaltQuickTimeThreadSafeICM = 0; + +const int gestaltQuickTimeThreadSafeMovieExport = 3; + +const int gestaltQuickTimeThreadSafeMovieImport = 2; + +const int gestaltQuickTimeThreadSafeMoviePlayback = 6; + +const int gestaltQuickTimeThreadSafeMovieToolbox = 1; + +const int gestaltQuickTimeVersion = 1903454573; + +const int gestaltQuickdrawFeatures = 1902408311; + +const int gestaltQuickdrawVersion = 1902387232; + +const int gestaltRBVAddr = 1919055392; + +const int gestaltRMFakeAppleMenuItemsRolledIn = 1; + +const int gestaltRMForceSysHeapRolledIn = 0; + +const int gestaltRMSupportsFSCalls = 4; + +const int gestaltRMTypeIndexOrderingReverse = 8; + +const int gestaltROMSize = 1919905056; + +const int gestaltROMVersion = 1919905142; + +const int gestaltRealTempMemory = 5; + +const int gestaltRealtimeMgrAttr = 1920232818; + +const int gestaltRealtimeMgrPresent = 0; + +const int gestaltResourceMgrAttr = 1920168547; + +const int gestaltResourceMgrBugFixesAttrs = 1919771239; + +const int gestaltRevisedTimeMgr = 2; + +const int gestaltSCCReadAddr = 1935893362; + +const int gestaltSCCWriteAddr = 1935893367; + +const int gestaltSCSI = 1935897449; + +const int gestaltSCSIPollSIH = 3; + +const int gestaltSCSISlotBoot = 2; + +const int gestaltSDPFindVersion = 1684434532; + +const int gestaltSDPPromptVersion = 1886548086; + +const int gestaltSDPStandardDirectoryVersion = 1935963762; + +const int gestaltSE30SlotPresent = 3; + +const int gestaltSESlotPresent = 2; + +const int gestaltSFServer = 256; + +const int gestaltSMPMailerVersion = 1835101298; + +const int gestaltSMPSPSendLetterVersion = 1936749420; + +const int gestaltSafeOFAttr = 1935763045; + +const int gestaltSanityCheckResourceFiles = 2; + +const int gestaltSbitFontSupport = 1; + +const int gestaltScrapMgrAttr = 1935897185; + +const int gestaltScrapMgrTranslationAware = 0; + +const int gestaltScreenCaptureDir = 1885954866; + +const int gestaltScreenCaptureMain = 1885954865; + +const int gestaltScriptCount = 1935897123; + +const int gestaltScriptMgrVersion = 1935897193; + +const int gestaltScriptingSupport = 1; + +const int gestaltScrollingThrottle = 0; + +const int gestaltSerialArbitrationExists = 0; + +const int gestaltSerialAttr = 1936028192; + +const int gestaltSetDragImageUpdates = 5; + +const int gestaltSheetsAreWindowModalBit = 7; + +const int gestaltSheetsAreWindowModalMask = 128; + +const int gestaltShutdownAttributes = 1936225652; + +const int gestaltShutdownHassdOnBootVolUnmount = 0; + +const int gestaltSlotAttr = 1936486260; + +const int gestaltSlotMgrExists = 0; + +const int gestaltSndPlayDoubleBuffer = 10; + +const int gestaltSoftwareVendorApple = 1097887852; + +const int gestaltSoftwareVendorCode = 1936875876; + +const int gestaltSoftwareVendorLicensee = 1281584755; + +const int gestaltSoundAttr = 1936614432; + +const int gestaltSoundIOMgrPresent = 3; + +const int gestaltSpecificMatchSupport = 1; + +const int gestaltSpeechAttr = 1953788771; + +const int gestaltSpeechHasPPCGlue = 1; + +const int gestaltSpeechMgrPresent = 0; + +const int gestaltSpeechRecognitionAttr = 1936880737; + +const int gestaltSpeechRecognitionVersion = 1936880738; + +const int gestaltSplitOSAttr = 1936748403; + +const int gestaltSplitOSAware = 1; + +const int gestaltSplitOSBootDriveIsNetworkVolume = 0; + +const int gestaltSplitOSEnablerVolumeIsDifferentFromBootVolume = 2; + +const int gestaltSplitOSMachineNameSetToNetworkNameTemp = 3; + +const int gestaltSplitOSMachineNameStartupDiskIsNonPersistent = 5; + +const int gestaltSquareMenuBar = 2; + +const int gestaltStandardFile58 = 0; + +const int gestaltStandardFileAttr = 1937007718; + +const int gestaltStandardFileHasColorIcons = 2; + +const int gestaltStandardFileHasDynamicVolumeAllocation = 4; + +const int gestaltStandardFileTranslationAware = 1; + +const int gestaltStandardFileUseGenericIcons = 3; + +const int gestaltStandardTimeMgr = 1; + +const int gestaltStdADBKbd = 5; + +const int gestaltStdISOADBKbd = 8; + +const int gestaltStdNBPAttr = 1852601712; + +const int gestaltStdNBPPresent = 0; + +const int gestaltStdNBPSupportsAutoPosition = 1; + +const int gestaltStereoCapability = 0; + +const int gestaltStereoInput = 8; + +const int gestaltStereoMixing = 1; + +const int gestaltSupportsApplicationURL = 4; + +const int gestaltSupportsFSpResourceFileAlreadyOpenBit = 3; + +const int gestaltSupportsMirroring = 4; + +const int gestaltSysArchitecture = 1937339233; + +const int gestaltSysDebuggerSupport = 8; + +const int gestaltSysZoneGrowable = 0; + +const int gestaltSystemUpdateVersion = 1937339253; + +@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') +const int gestaltSystemVersion = 1937339254; + +@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') +const int gestaltSystemVersionBugFix = 1937339187; + +@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') +const int gestaltSystemVersionMajor = 1937339185; + +@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') +const int gestaltSystemVersionMinor = 1937339186; + +const int gestaltTE1 = 1; + +const int gestaltTE2 = 2; + +const int gestaltTE3 = 3; + +const int gestaltTE4 = 4; + +const int gestaltTE5 = 5; + +const int gestaltTE6 = 6; + +const int gestaltTEAttr = 1952801140; + +const int gestaltTEHasGetHiliteRgn = 0; + +const int gestaltTEHasWhiteBackground = 3; + +const int gestaltTESupportsInlineInput = 1; + +const int gestaltTESupportsTextObjects = 2; + +const int gestaltTSMDisplayMgrAwareBit = 0; + +const int gestaltTSMTE = 0; + +const int gestaltTSMTE1 = 256; + +const int gestaltTSMTE15 = 336; + +const int gestaltTSMTE152 = 338; + +const int gestaltTSMTEAttr = 1953322053; + +const int gestaltTSMTEPresent = 0; + +const int gestaltTSMTEVersion = 1953322070; + +const int gestaltTSMdoesTSMTEBit = 1; + +const int gestaltTSMgr15 = 336; + +const int gestaltTSMgr20 = 512; + +const int gestaltTSMgr22 = 544; + +const int gestaltTSMgr23 = 560; + +const int gestaltTSMgrAttr = 1953721697; + +const int gestaltTSMgrVersion = 1953721718; + +const int gestaltTVAttr = 1953898528; + +const int gestaltTeleMgrAttr = 1952803941; + +const int gestaltTeleMgrAutoAnswer = 3; + +const int gestaltTeleMgrIndHandset = 4; + +const int gestaltTeleMgrNewTELNewSupport = 6; + +const int gestaltTeleMgrPowerPCSupport = 1; + +const int gestaltTeleMgrPresent = 0; + +const int gestaltTeleMgrSilenceDetect = 5; + +const int gestaltTeleMgrSoundStreams = 2; + +const int gestaltTelephoneSpeechRecognition = 2; + +const int gestaltTempMemSupport = 4; + +const int gestaltTempMemTracked = 6; + +const int gestaltTermMgrAttr = 1952805485; + +const int gestaltTermMgrErrorString = 2; + +const int gestaltTermMgrPresent = 0; + +const int gestaltTextEditVersion = 1952784416; + +const int gestaltThirdPartyANSIKbd = 40; + +const int gestaltThirdPartyISOKbd = 41; + +const int gestaltThirdPartyJISKbd = 42; + +const int gestaltThreadMgrAttr = 1952998515; + +const int gestaltThreadMgrPresent = 0; + +const int gestaltThreadsLibraryPresent = 2; + +const int gestaltTimeMgrVersion = 1953326962; + +const int gestaltToolboxTable = 1952609396; + +const int gestaltTranslationAttr = 2020368756; + +const int gestaltTranslationGetPathAPIAvail = 3; + +const int gestaltTranslationMgrExists = 0; + +const int gestaltTranslationMgrHintOrder = 1; + +const int gestaltTranslationPPCAvail = 2; + +const int gestaltUDFSupport = 1802855526; + +const int gestaltUSBAndyANSIKbd = 204; + +const int gestaltUSBAndyISOKbd = 205; + +const int gestaltUSBAndyJISKbd = 206; + +const int gestaltUSBAttr = 1970496032; + +const int gestaltUSBCosmoANSIKbd = 198; + +const int gestaltUSBCosmoISOKbd = 199; + +const int gestaltUSBCosmoJISKbd = 200; + +const int gestaltUSBHasIsoch = 1; + +const int gestaltUSBPresent = 0; + +const int gestaltUSBPrinterSharingAttr = 2053204768; + +const int gestaltUSBPrinterSharingAttrBooted = 1073741824; + +const int gestaltUSBPrinterSharingAttrMask = -65536; + +const int gestaltUSBPrinterSharingAttrRunning = -2147483648; + +const int gestaltUSBPrinterSharingVersion = 2053204768; + +const int gestaltUSBPrinterSharingVersionMask = 65535; + +const int gestaltUSBProF16ANSIKbd = 34; + +const int gestaltUSBProF16ISOKbd = 35; + +const int gestaltUSBProF16JISKbd = 36; + +const int gestaltUSBVersion = 1970496118; + +const int gestaltUndefSelectorErr = -5551; + +const int gestaltUnknownErr = -5550; + +const int gestaltUnknownThirdPartyKbd = 3; + +const int gestaltUserVisibleMachineName = 1835950445; + +const int gestaltVIA1Addr = 1986617649; + +const int gestaltVIA2Addr = 1986617650; + +const int gestaltVMAttr = 1986863136; + +const int gestaltVMBackingStoreFileRefNum = 1986880115; + +const int gestaltVMFilemappingOn = 3; + +const int gestaltVMHasLockMemoryForOutput = 1; + +const int gestaltVMHasPagingControl = 4; + +const int gestaltVMInfoNoneType = 3; + +const int gestaltVMInfoSimpleType = 2; + +const int gestaltVMInfoSizeStorageType = 0; + +const int gestaltVMInfoSizeType = 1; + +const int gestaltVMInfoType = 1986881902; + +const int gestaltVMPresent = 0; + +const int gestaltVMZerosPagesBit = 0; + +const int gestaltValueImplementedVers = 5; + +const int gestaltVersion = 1986359923; + +const int gestaltWSIICanPrintWithoutPrGeneralBit = 0; + +const int gestaltWSIISupport = 0; + +const int gestaltWindowLiveResizeBit = 4; + +const int gestaltWindowLiveResizeMask = 16; + +const int gestaltWindowMgrAttr = 2003398244; + +const int gestaltWindowMgrPresent = 1; + +const int gestaltWindowMgrPresentBit = 0; + +const int gestaltWindowMgrPresentMask = 1; + +const int gestaltWindowMinimizeToDockBit = 5; + +const int gestaltWindowMinimizeToDockMask = 32; + +const int gestaltWorldScriptIIAttr = 2004050292; + +const int gestaltWorldScriptIIVersion = 1685026146; + +const int gestaltX86AdditionalFeatures = 2016949857; + +const int gestaltX86Features = 2016949862; + +const int gestaltX86HasAPIC = 9; + +const int gestaltX86HasCID = 10; + +const int gestaltX86HasCLFSH = 19; + +const int gestaltX86HasCMOV = 15; + +const int gestaltX86HasCX16 = 13; + +const int gestaltX86HasCX8 = 8; + +const int gestaltX86HasDE = 2; + +const int gestaltX86HasDS = 21; + +const int gestaltX86HasDSCPL = 4; + +const int gestaltX86HasEST = 7; + +const int gestaltX86HasFPU = 0; + +const int gestaltX86HasFXSR = 24; + +const int gestaltX86HasHTT = 28; + +const int gestaltX86HasMCA = 14; + +const int gestaltX86HasMCE = 7; + +const int gestaltX86HasMMX = 23; + +const int gestaltX86HasMONITOR = 3; + +const int gestaltX86HasMSR = 5; + +const int gestaltX86HasMTRR = 12; + +const int gestaltX86HasPAE = 6; + +const int gestaltX86HasPAT = 16; + +const int gestaltX86HasPGE = 13; + +const int gestaltX86HasPSE = 3; + +const int gestaltX86HasPSE36 = 17; + +const int gestaltX86HasPSN = 18; + +const int gestaltX86HasSEP = 11; + +const int gestaltX86HasSMX = 6; + +const int gestaltX86HasSS = 27; + +const int gestaltX86HasSSE = 25; + +const int gestaltX86HasSSE2 = 26; + +const int gestaltX86HasSSE3 = 0; + +const int gestaltX86HasSupplementalSSE3 = 9; + +const int gestaltX86HasTM = 29; + +const int gestaltX86HasTM2 = 8; + +const int gestaltX86HasTSC = 4; + +const int gestaltX86HasVME = 1; + +const int gestaltX86HasVMX = 5; + +const int gestaltX86HasxTPR = 14; + +const int gestaltX86ResACPI = 22; + +const int gestaltX86Serviced20 = 20; + +const int gfpErr = -52; + +typedef gid_t = __darwin_gid_t; + +@ffi.Packed(4) +final class gpu_energy_data extends ffi.Struct { + @ffi.Uint64() + external int task_gpu_utilisation; + + @ffi.Uint64() + external int task_gpu_stat_reserved0; + + @ffi.Uint64() + external int task_gpu_stat_reserved1; + + @ffi.Uint64() + external int task_gpu_stat_reserved2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int task_gpu_utilisation, + required int task_gpu_stat_reserved0, + required int task_gpu_stat_reserved1, + required int task_gpu_stat_reserved2, + }) => $allocator() + ..ref.task_gpu_utilisation = task_gpu_utilisation + ..ref.task_gpu_stat_reserved0 = task_gpu_stat_reserved0 + ..ref.task_gpu_stat_reserved1 = task_gpu_stat_reserved1 + ..ref.task_gpu_stat_reserved2 = task_gpu_stat_reserved2; +} + +typedef gpu_energy_data_t = ffi.Pointer; + +const int grabTimeComplete = -9401; + +@Deprecated('Deprecated') +const int graveUprE = 233; + +@Deprecated('Deprecated') +const int graveUprI = 237; + +@Deprecated('Deprecated') +const int graveUprO = 241; + +@Deprecated('Deprecated') +const int graveUprU = 244; + +@ffi.Packed(4) +final class group_req extends ffi.Struct { + @ffi.Uint32() + external int gr_interface; + + external sockaddr_storage gr_group; +} + +@ffi.Packed(4) +final class group_source_req extends ffi.Struct { + @ffi.Uint32() + external int gsr_interface; + + external sockaddr_storage gsr_group; + + external sockaddr_storage gsr_source; +} + +const int guestNotAllowedErr = -932; + +final class guid_t extends ffi.Union { + @ffi.Array.multi([16]) + external ffi.Array g_guid; + + @ffi.Array.multi([4]) + external ffi.Array g_guid_asint; +} + +const int hMenuFindErr = -127; + +@Deprecated('Deprecated') +const int hachek = 255; + +const int handlerNotFoundErr = -1856; + +const int hardwareConfigErr = -604; + +final class hash_info_bucket extends ffi.Struct { + @natural_t() + external int hib_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int hib_count, + }) => $allocator()..ref.hib_count = hib_count; +} + +typedef hash_info_bucket_array_t = ffi.Pointer; +typedef hash_info_bucket_t = hash_info_bucket; + +const int hitDev = 1; + +const int hmBalloonAborted = -853; + +const int hmCloseViewActive = -863; + +const int hmHelpDisabled = -850; + +const int hmHelpManagerNotInited = -855; + +const int hmNoBalloonUp = -862; + +const int hmOperationUnsupported = -861; + +const int hmSameAsLastBalloon = -854; + +const int hmSkippedBalloon = -857; + +const int hmUnknownHelpType = -859; + +const int hmWrongVersion = -858; + +@ffi.Packed(4) +final class host_basic_info extends ffi.Struct { + @integer_t() + external int max_cpus; + + @integer_t() + external int avail_cpus; + + @natural_t() + external int memory_size; + + @cpu_type_t() + external int cpu_type; + + @cpu_subtype_t() + external int cpu_subtype; + + @cpu_threadtype_t() + external int cpu_threadtype; + + @integer_t() + external int physical_cpu; + + @integer_t() + external int physical_cpu_max; + + @integer_t() + external int logical_cpu; + + @integer_t() + external int logical_cpu_max; + + @ffi.Uint64() + external int max_mem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_cpus, + required int avail_cpus, + required int memory_size, + required int cpu_type, + required int cpu_subtype, + required int cpu_threadtype, + required int physical_cpu, + required int physical_cpu_max, + required int logical_cpu, + required int logical_cpu_max, + required int max_mem, + }) => $allocator() + ..ref.max_cpus = max_cpus + ..ref.avail_cpus = avail_cpus + ..ref.memory_size = memory_size + ..ref.cpu_type = cpu_type + ..ref.cpu_subtype = cpu_subtype + ..ref.cpu_threadtype = cpu_threadtype + ..ref.physical_cpu = physical_cpu + ..ref.physical_cpu_max = physical_cpu_max + ..ref.logical_cpu = logical_cpu + ..ref.logical_cpu_max = logical_cpu_max + ..ref.max_mem = max_mem; +} + +typedef host_basic_info_data_t = host_basic_info; +typedef host_basic_info_t = ffi.Pointer; + +final class host_can_has_debugger_info extends ffi.Struct { + @boolean_t() + external int can_has_debugger; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int can_has_debugger, + }) => + $allocator() + ..ref.can_has_debugger = can_has_debugger; +} + +typedef host_can_has_debugger_info_data_t = host_can_has_debugger_info; +typedef host_can_has_debugger_info_t = ffi.Pointer; + +final class host_cpu_load_info extends ffi.Struct { + @ffi.Array.multi([4]) + external ffi.Array cpu_ticks; +} + +typedef host_cpu_load_info_data_t = host_cpu_load_info; +typedef host_cpu_load_info_t = ffi.Pointer; +typedef host_flavor_t = integer_t; +typedef host_info64_t = ffi.Pointer; +typedef host_info_t = ffi.Pointer; + +final class host_load_info extends ffi.Struct { + @ffi.Array.multi([3]) + external ffi.Array avenrun; + + @ffi.Array.multi([3]) + external ffi.Array mach_factor; +} + +typedef host_load_info_data_t = host_load_info; +typedef host_load_info_t = ffi.Pointer; +typedef host_name_port_t = host_t; +typedef host_name_t = host_t; + +final class host_preferred_user_arch extends ffi.Struct { + @cpu_type_t() + external int cpu_type; + + @cpu_subtype_t() + external int cpu_subtype; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cpu_type, + required int cpu_subtype, + }) => $allocator() + ..ref.cpu_type = cpu_type + ..ref.cpu_subtype = cpu_subtype; +} + +typedef host_preferred_user_arch_data_t = host_preferred_user_arch; +typedef host_preferred_user_arch_t = ffi.Pointer; + +final class host_priority_info extends ffi.Struct { + @integer_t() + external int kernel_priority; + + @integer_t() + external int system_priority; + + @integer_t() + external int server_priority; + + @integer_t() + external int user_priority; + + @integer_t() + external int depress_priority; + + @integer_t() + external int idle_priority; + + @integer_t() + external int minimum_priority; + + @integer_t() + external int maximum_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int kernel_priority, + required int system_priority, + required int server_priority, + required int user_priority, + required int depress_priority, + required int idle_priority, + required int minimum_priority, + required int maximum_priority, + }) => $allocator() + ..ref.kernel_priority = kernel_priority + ..ref.system_priority = system_priority + ..ref.server_priority = server_priority + ..ref.user_priority = user_priority + ..ref.depress_priority = depress_priority + ..ref.idle_priority = idle_priority + ..ref.minimum_priority = minimum_priority + ..ref.maximum_priority = maximum_priority; +} + +typedef host_priority_info_data_t = host_priority_info; +typedef host_priority_info_t = ffi.Pointer; +typedef host_priv_t = mach_port_t; +typedef host_purgable_info_data_t = vm_purgeable_info; +typedef host_purgable_info_t = ffi.Pointer; + +final class host_sched_info extends ffi.Struct { + @integer_t() + external int min_timeout; + + @integer_t() + external int min_quantum; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int min_timeout, + required int min_quantum, + }) => $allocator() + ..ref.min_timeout = min_timeout + ..ref.min_quantum = min_quantum; +} + +typedef host_sched_info_data_t = host_sched_info; +typedef host_sched_info_t = ffi.Pointer; +typedef host_security_t = mach_port_t; +typedef host_t = mach_port_t; + +final class hostent extends ffi.Struct { + external ffi.Pointer h_name; + + external ffi.Pointer> h_aliases; + + @ffi.Int() + external int h_addrtype; + + @ffi.Int() + external int h_length; + + external ffi.Pointer> h_addr_list; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer h_name, + required ffi.Pointer> h_aliases, + required int h_addrtype, + required int h_length, + required ffi.Pointer> h_addr_list, + }) => $allocator() + ..ref.h_name = h_name + ..ref.h_aliases = h_aliases + ..ref.h_addrtype = h_addrtype + ..ref.h_length = h_length + ..ref.h_addr_list = h_addr_list; +} + +const int hourField = 4; + +const int hourMask = 16; + +const int hrHTMLRenderingLibNotInstalledErr = -5360; + +const int hrLeadingZ = 128; + +const int hrMiscellaneousExceptionErr = -5361; + +const int hrURLNotHandledErr = -5363; + +const int hrUnableToResizeHandleErr = -5362; + +typedef http_addr_t = _http_addr_u; + +final class http_addrlist_s extends ffi.Struct { + external ffi.Pointer next; + + external http_addr_t addr; +} + +typedef http_addrlist_t = http_addrlist_s; + +enum http_auth_e { + HTTP_AUTH_NONE(0), + HTTP_AUTH_BASIC(1), + HTTP_AUTH_MD5(2), + HTTP_AUTH_MD5_SESS(3), + HTTP_AUTH_MD5_INT(4), + HTTP_AUTH_MD5_SESS_INT(5), + HTTP_AUTH_NEGOTIATE(6); + + final int value; + const http_auth_e(this.value); + + static http_auth_e fromValue(int value) => switch (value) { + 0 => HTTP_AUTH_NONE, + 1 => HTTP_AUTH_BASIC, + 2 => HTTP_AUTH_MD5, + 3 => HTTP_AUTH_MD5_SESS, + 4 => HTTP_AUTH_MD5_INT, + 5 => HTTP_AUTH_MD5_SESS_INT, + 6 => HTTP_AUTH_NEGOTIATE, + _ => throw ArgumentError('Unknown value for http_auth_e: $value'), + }; +} + +final class http_credential_s extends ffi.Struct { + external ffi.Pointer data; + + @ffi.Size() + external int datalen; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer data, + required int datalen, + }) => $allocator() + ..ref.data = data + ..ref.datalen = datalen; +} + +typedef http_credential_t = http_credential_s; + +enum http_encoding_e { + HTTP_ENCODING_LENGTH(0), + HTTP_ENCODING_CHUNKED(1), + HTTP_ENCODING_FIELDS(2); + + final int value; + const http_encoding_e(this.value); + + static http_encoding_e fromValue(int value) => switch (value) { + 0 => HTTP_ENCODING_LENGTH, + 1 => HTTP_ENCODING_CHUNKED, + 2 => HTTP_ENCODING_FIELDS, + _ => throw ArgumentError('Unknown value for http_encoding_e: $value'), + }; +} + +enum http_encryption_e { + HTTP_ENCRYPTION_IF_REQUESTED(0), + HTTP_ENCRYPTION_NEVER(1), + HTTP_ENCRYPTION_REQUIRED(2), + HTTP_ENCRYPTION_ALWAYS(3); + + final int value; + const http_encryption_e(this.value); + + static http_encryption_e fromValue(int value) => switch (value) { + 0 => HTTP_ENCRYPTION_IF_REQUESTED, + 1 => HTTP_ENCRYPTION_NEVER, + 2 => HTTP_ENCRYPTION_REQUIRED, + 3 => HTTP_ENCRYPTION_ALWAYS, + _ => throw ArgumentError('Unknown value for http_encryption_e: $value'), + }; +} + +enum http_field_e { + HTTP_FIELD_UNKNOWN(-1), + HTTP_FIELD_ACCEPT_LANGUAGE(0), + HTTP_FIELD_ACCEPT_RANGES(1), + HTTP_FIELD_AUTHORIZATION(2), + HTTP_FIELD_CONNECTION(3), + HTTP_FIELD_CONTENT_ENCODING(4), + HTTP_FIELD_CONTENT_LANGUAGE(5), + HTTP_FIELD_CONTENT_LENGTH(6), + HTTP_FIELD_CONTENT_LOCATION(7), + HTTP_FIELD_CONTENT_MD5(8), + HTTP_FIELD_CONTENT_RANGE(9), + HTTP_FIELD_CONTENT_TYPE(10), + HTTP_FIELD_CONTENT_VERSION(11), + HTTP_FIELD_DATE(12), + HTTP_FIELD_HOST(13), + HTTP_FIELD_IF_MODIFIED_SINCE(14), + HTTP_FIELD_IF_UNMODIFIED_SINCE(15), + HTTP_FIELD_KEEP_ALIVE(16), + HTTP_FIELD_LAST_MODIFIED(17), + HTTP_FIELD_LINK(18), + HTTP_FIELD_LOCATION(19), + HTTP_FIELD_RANGE(20), + HTTP_FIELD_REFERER(21), + HTTP_FIELD_RETRY_AFTER(22), + HTTP_FIELD_TRANSFER_ENCODING(23), + HTTP_FIELD_UPGRADE(24), + HTTP_FIELD_USER_AGENT(25), + HTTP_FIELD_WWW_AUTHENTICATE(26), + HTTP_FIELD_ACCEPT_ENCODING(27), + HTTP_FIELD_ALLOW(28), + HTTP_FIELD_SERVER(29), + HTTP_FIELD_AUTHENTICATION_INFO(30), + HTTP_FIELD_MAX(31); + + final int value; + const http_field_e(this.value); + + static http_field_e fromValue(int value) => switch (value) { + -1 => HTTP_FIELD_UNKNOWN, + 0 => HTTP_FIELD_ACCEPT_LANGUAGE, + 1 => HTTP_FIELD_ACCEPT_RANGES, + 2 => HTTP_FIELD_AUTHORIZATION, + 3 => HTTP_FIELD_CONNECTION, + 4 => HTTP_FIELD_CONTENT_ENCODING, + 5 => HTTP_FIELD_CONTENT_LANGUAGE, + 6 => HTTP_FIELD_CONTENT_LENGTH, + 7 => HTTP_FIELD_CONTENT_LOCATION, + 8 => HTTP_FIELD_CONTENT_MD5, + 9 => HTTP_FIELD_CONTENT_RANGE, + 10 => HTTP_FIELD_CONTENT_TYPE, + 11 => HTTP_FIELD_CONTENT_VERSION, + 12 => HTTP_FIELD_DATE, + 13 => HTTP_FIELD_HOST, + 14 => HTTP_FIELD_IF_MODIFIED_SINCE, + 15 => HTTP_FIELD_IF_UNMODIFIED_SINCE, + 16 => HTTP_FIELD_KEEP_ALIVE, + 17 => HTTP_FIELD_LAST_MODIFIED, + 18 => HTTP_FIELD_LINK, + 19 => HTTP_FIELD_LOCATION, + 20 => HTTP_FIELD_RANGE, + 21 => HTTP_FIELD_REFERER, + 22 => HTTP_FIELD_RETRY_AFTER, + 23 => HTTP_FIELD_TRANSFER_ENCODING, + 24 => HTTP_FIELD_UPGRADE, + 25 => HTTP_FIELD_USER_AGENT, + 26 => HTTP_FIELD_WWW_AUTHENTICATE, + 27 => HTTP_FIELD_ACCEPT_ENCODING, + 28 => HTTP_FIELD_ALLOW, + 29 => HTTP_FIELD_SERVER, + 30 => HTTP_FIELD_AUTHENTICATION_INFO, + 31 => HTTP_FIELD_MAX, + _ => throw ArgumentError('Unknown value for http_field_e: $value'), + }; +} + +enum http_keepalive_e { + HTTP_KEEPALIVE_OFF(0), + HTTP_KEEPALIVE_ON(1); + + final int value; + const http_keepalive_e(this.value); + + static http_keepalive_e fromValue(int value) => switch (value) { + 0 => HTTP_KEEPALIVE_OFF, + 1 => HTTP_KEEPALIVE_ON, + _ => throw ArgumentError('Unknown value for http_keepalive_e: $value'), + }; +} + +enum http_state_e { + HTTP_STATE_ERROR(-1), + HTTP_STATE_WAITING(0), + HTTP_STATE_OPTIONS(1), + HTTP_STATE_GET(2), + HTTP_STATE_GET_SEND(3), + HTTP_STATE_HEAD(4), + HTTP_STATE_POST(5), + HTTP_STATE_POST_RECV(6), + HTTP_STATE_POST_SEND(7), + HTTP_STATE_PUT(8), + HTTP_STATE_PUT_RECV(9), + HTTP_STATE_DELETE(10), + HTTP_STATE_TRACE(11), + HTTP_STATE_CONNECT(12), + HTTP_STATE_STATUS(13), + HTTP_STATE_UNKNOWN_METHOD(14), + HTTP_STATE_UNKNOWN_VERSION(15); + + final int value; + const http_state_e(this.value); + + static http_state_e fromValue(int value) => switch (value) { + -1 => HTTP_STATE_ERROR, + 0 => HTTP_STATE_WAITING, + 1 => HTTP_STATE_OPTIONS, + 2 => HTTP_STATE_GET, + 3 => HTTP_STATE_GET_SEND, + 4 => HTTP_STATE_HEAD, + 5 => HTTP_STATE_POST, + 6 => HTTP_STATE_POST_RECV, + 7 => HTTP_STATE_POST_SEND, + 8 => HTTP_STATE_PUT, + 9 => HTTP_STATE_PUT_RECV, + 10 => HTTP_STATE_DELETE, + 11 => HTTP_STATE_TRACE, + 12 => HTTP_STATE_CONNECT, + 13 => HTTP_STATE_STATUS, + 14 => HTTP_STATE_UNKNOWN_METHOD, + 15 => HTTP_STATE_UNKNOWN_VERSION, + _ => throw ArgumentError('Unknown value for http_state_e: $value'), + }; +} + +enum http_status_e { + HTTP_STATUS_ERROR(-1), + HTTP_STATUS_NONE(0), + HTTP_STATUS_CONTINUE(100), + HTTP_STATUS_SWITCHING_PROTOCOLS(101), + HTTP_STATUS_OK(200), + HTTP_STATUS_CREATED(201), + HTTP_STATUS_ACCEPTED(202), + HTTP_STATUS_NOT_AUTHORITATIVE(203), + HTTP_STATUS_NO_CONTENT(204), + HTTP_STATUS_RESET_CONTENT(205), + HTTP_STATUS_PARTIAL_CONTENT(206), + HTTP_STATUS_MULTIPLE_CHOICES(300), + HTTP_STATUS_MOVED_PERMANENTLY(301), + HTTP_STATUS_FOUND(302), + HTTP_STATUS_SEE_OTHER(303), + HTTP_STATUS_NOT_MODIFIED(304), + HTTP_STATUS_USE_PROXY(305), + HTTP_STATUS_TEMPORARY_REDIRECT(307), + HTTP_STATUS_BAD_REQUEST(400), + HTTP_STATUS_UNAUTHORIZED(401), + HTTP_STATUS_PAYMENT_REQUIRED(402), + HTTP_STATUS_FORBIDDEN(403), + HTTP_STATUS_NOT_FOUND(404), + HTTP_STATUS_METHOD_NOT_ALLOWED(405), + HTTP_STATUS_NOT_ACCEPTABLE(406), + HTTP_STATUS_PROXY_AUTHENTICATION(407), + HTTP_STATUS_REQUEST_TIMEOUT(408), + HTTP_STATUS_CONFLICT(409), + HTTP_STATUS_GONE(410), + HTTP_STATUS_LENGTH_REQUIRED(411), + HTTP_STATUS_PRECONDITION(412), + HTTP_STATUS_REQUEST_TOO_LARGE(413), + HTTP_STATUS_URI_TOO_LONG(414), + HTTP_STATUS_UNSUPPORTED_MEDIATYPE(415), + HTTP_STATUS_REQUESTED_RANGE(416), + HTTP_STATUS_EXPECTATION_FAILED(417), + HTTP_STATUS_UPGRADE_REQUIRED(426), + HTTP_STATUS_SERVER_ERROR(500), + HTTP_STATUS_NOT_IMPLEMENTED(501), + HTTP_STATUS_BAD_GATEWAY(502), + HTTP_STATUS_SERVICE_UNAVAILABLE(503), + HTTP_STATUS_GATEWAY_TIMEOUT(504), + HTTP_STATUS_NOT_SUPPORTED(505), + HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED(1000), + HTTP_STATUS_CUPS_PKI_ERROR(1001), + HTTP_STATUS_CUPS_WEBIF_DISABLED(1002); + + final int value; + const http_status_e(this.value); + + static http_status_e fromValue(int value) => switch (value) { + -1 => HTTP_STATUS_ERROR, + 0 => HTTP_STATUS_NONE, + 100 => HTTP_STATUS_CONTINUE, + 101 => HTTP_STATUS_SWITCHING_PROTOCOLS, + 200 => HTTP_STATUS_OK, + 201 => HTTP_STATUS_CREATED, + 202 => HTTP_STATUS_ACCEPTED, + 203 => HTTP_STATUS_NOT_AUTHORITATIVE, + 204 => HTTP_STATUS_NO_CONTENT, + 205 => HTTP_STATUS_RESET_CONTENT, + 206 => HTTP_STATUS_PARTIAL_CONTENT, + 300 => HTTP_STATUS_MULTIPLE_CHOICES, + 301 => HTTP_STATUS_MOVED_PERMANENTLY, + 302 => HTTP_STATUS_FOUND, + 303 => HTTP_STATUS_SEE_OTHER, + 304 => HTTP_STATUS_NOT_MODIFIED, + 305 => HTTP_STATUS_USE_PROXY, + 307 => HTTP_STATUS_TEMPORARY_REDIRECT, + 400 => HTTP_STATUS_BAD_REQUEST, + 401 => HTTP_STATUS_UNAUTHORIZED, + 402 => HTTP_STATUS_PAYMENT_REQUIRED, + 403 => HTTP_STATUS_FORBIDDEN, + 404 => HTTP_STATUS_NOT_FOUND, + 405 => HTTP_STATUS_METHOD_NOT_ALLOWED, + 406 => HTTP_STATUS_NOT_ACCEPTABLE, + 407 => HTTP_STATUS_PROXY_AUTHENTICATION, + 408 => HTTP_STATUS_REQUEST_TIMEOUT, + 409 => HTTP_STATUS_CONFLICT, + 410 => HTTP_STATUS_GONE, + 411 => HTTP_STATUS_LENGTH_REQUIRED, + 412 => HTTP_STATUS_PRECONDITION, + 413 => HTTP_STATUS_REQUEST_TOO_LARGE, + 414 => HTTP_STATUS_URI_TOO_LONG, + 415 => HTTP_STATUS_UNSUPPORTED_MEDIATYPE, + 416 => HTTP_STATUS_REQUESTED_RANGE, + 417 => HTTP_STATUS_EXPECTATION_FAILED, + 426 => HTTP_STATUS_UPGRADE_REQUIRED, + 500 => HTTP_STATUS_SERVER_ERROR, + 501 => HTTP_STATUS_NOT_IMPLEMENTED, + 502 => HTTP_STATUS_BAD_GATEWAY, + 503 => HTTP_STATUS_SERVICE_UNAVAILABLE, + 504 => HTTP_STATUS_GATEWAY_TIMEOUT, + 505 => HTTP_STATUS_NOT_SUPPORTED, + 1000 => HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED, + 1001 => HTTP_STATUS_CUPS_PKI_ERROR, + 1002 => HTTP_STATUS_CUPS_WEBIF_DISABLED, + _ => throw ArgumentError('Unknown value for http_status_e: $value'), + }; +} + +typedef http_t = _http_s; +typedef http_timeout_cb_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer http, + ffi.Pointer user_data, + ) + > + >; + +enum http_trust_e { + HTTP_TRUST_OK(0), + HTTP_TRUST_INVALID(1), + HTTP_TRUST_CHANGED(2), + HTTP_TRUST_EXPIRED(3), + HTTP_TRUST_RENEWED(4), + HTTP_TRUST_UNKNOWN(5); + + final int value; + const http_trust_e(this.value); + + static http_trust_e fromValue(int value) => switch (value) { + 0 => HTTP_TRUST_OK, + 1 => HTTP_TRUST_INVALID, + 2 => HTTP_TRUST_CHANGED, + 3 => HTTP_TRUST_EXPIRED, + 4 => HTTP_TRUST_RENEWED, + 5 => HTTP_TRUST_UNKNOWN, + _ => throw ArgumentError('Unknown value for http_trust_e: $value'), + }; +} + +enum http_uri_coding_e { + HTTP_URI_CODING_NONE(0), + HTTP_URI_CODING_USERNAME(1), + HTTP_URI_CODING_HOSTNAME(2), + HTTP_URI_CODING_RESOURCE(4), + HTTP_URI_CODING_MOST(7), + HTTP_URI_CODING_QUERY(8), + HTTP_URI_CODING_ALL(15), + HTTP_URI_CODING_RFC6874(16); + + final int value; + const http_uri_coding_e(this.value); + + static http_uri_coding_e fromValue(int value) => switch (value) { + 0 => HTTP_URI_CODING_NONE, + 1 => HTTP_URI_CODING_USERNAME, + 2 => HTTP_URI_CODING_HOSTNAME, + 4 => HTTP_URI_CODING_RESOURCE, + 7 => HTTP_URI_CODING_MOST, + 8 => HTTP_URI_CODING_QUERY, + 15 => HTTP_URI_CODING_ALL, + 16 => HTTP_URI_CODING_RFC6874, + _ => throw ArgumentError('Unknown value for http_uri_coding_e: $value'), + }; +} + +enum http_uri_status_e { + HTTP_URI_STATUS_OVERFLOW(-8), + HTTP_URI_STATUS_BAD_ARGUMENTS(-7), + HTTP_URI_STATUS_BAD_RESOURCE(-6), + HTTP_URI_STATUS_BAD_PORT(-5), + HTTP_URI_STATUS_BAD_HOSTNAME(-4), + HTTP_URI_STATUS_BAD_USERNAME(-3), + HTTP_URI_STATUS_BAD_SCHEME(-2), + HTTP_URI_STATUS_BAD_URI(-1), + HTTP_URI_STATUS_OK(0), + HTTP_URI_STATUS_MISSING_SCHEME(1), + HTTP_URI_STATUS_UNKNOWN_SCHEME(2), + HTTP_URI_STATUS_MISSING_RESOURCE(3); + + final int value; + const http_uri_status_e(this.value); + + static http_uri_status_e fromValue(int value) => switch (value) { + -8 => HTTP_URI_STATUS_OVERFLOW, + -7 => HTTP_URI_STATUS_BAD_ARGUMENTS, + -6 => HTTP_URI_STATUS_BAD_RESOURCE, + -5 => HTTP_URI_STATUS_BAD_PORT, + -4 => HTTP_URI_STATUS_BAD_HOSTNAME, + -3 => HTTP_URI_STATUS_BAD_USERNAME, + -2 => HTTP_URI_STATUS_BAD_SCHEME, + -1 => HTTP_URI_STATUS_BAD_URI, + 0 => HTTP_URI_STATUS_OK, + 1 => HTTP_URI_STATUS_MISSING_SCHEME, + 2 => HTTP_URI_STATUS_UNKNOWN_SCHEME, + 3 => HTTP_URI_STATUS_MISSING_RESOURCE, + _ => throw ArgumentError('Unknown value for http_uri_status_e: $value'), + }; +} + +enum http_version_e { + HTTP_VERSION_0_9(9), + HTTP_VERSION_1_0(100), + HTTP_VERSION_1_1(101); + + final int value; + const http_version_e(this.value); + + static http_version_e fromValue(int value) => switch (value) { + 9 => HTTP_VERSION_0_9, + 100 => HTTP_VERSION_1_0, + 101 => HTTP_VERSION_1_1, + _ => throw ArgumentError('Unknown value for http_version_e: $value'), + }; +} + +const int hwParamErr = -502; + +const int iIOAbort = -27; + +const int iIOAbortErr = -27; + +const int iMemFullErr = -108; + +const int icConfigInappropriateErr = -675; + +const int icConfigNotFoundErr = -674; + +const int icInternalErr = -669; + +const int icNoMoreWritersErr = -671; + +const int icNoPerm = 0; + +const int icNoURLErr = -673; + +const int icNothingToOverrideErr = -672; + +const int icPermErr = -667; + +const int icPrefDataErr = -668; + +const int icPrefNotFoundErr = -666; + +const int icProfileNotFoundErr = -676; + +const int icReadOnlyPerm = 1; + +const int icReadWritePerm = 2; + +const int icTooManyProfilesErr = -677; + +const int icTruncatedErr = -670; + +typedef id_t = __darwin_id_t; + +enum idtype_t { + P_ALL(0), + P_PID(1), + P_PGID(2); + + final int value; + const idtype_t(this.value); + + static idtype_t fromValue(int value) => switch (value) { + 0 => P_ALL, + 1 => P_PID, + 2 => P_PGID, + _ => throw ArgumentError('Unknown value for idtype_t: $value'), + }; +} + +const int illegalChannelOSErr = -2076; + +const int illegalControllerOSErr = -2080; + +const int illegalInstrumentOSErr = -2079; + +const int illegalKnobOSErr = -2077; + +const int illegalKnobValueOSErr = -2078; + +const int illegalNoteChannelOSErr = -2084; + +const int illegalPartOSErr = -2075; + +const int illegalScrapFlavorFlagsErr = -4997; + +const int illegalScrapFlavorSizeErr = -4999; + +const int illegalScrapFlavorTypeErr = -4998; + +const int illegalVoiceAllocationOSErr = -2074; + +final class imaxdiv_t extends ffi.Struct { + @intmax_t() + external int quot; + + @intmax_t() + external int rem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int quot, + required int rem, + }) => $allocator() + ..ref.quot = quot + ..ref.rem = rem; +} + +final class in6_addr extends ffi.Struct { + external UnnamedUnion$5 __u6_addr; +} + +typedef in6_addr_t = in6_addr; + +final class in6_pktinfo extends ffi.Struct { + external in6_addr ipi6_addr; + + @ffi.UnsignedInt() + external int ipi6_ifindex; +} + +final class in_addr extends ffi.Struct { + @in_addr_t() + external int s_addr; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int s_addr, + }) => $allocator()..ref.s_addr = s_addr; +} + +typedef in_addr_t = __uint32_t; + +final class in_pktinfo extends ffi.Struct { + @ffi.UnsignedInt() + external int ipi_ifindex; + + external in_addr ipi_spec_dst; + + external in_addr ipi_addr; +} + +typedef in_port_t = __uint16_t; + +const int incompatibleVoice = -245; + +const int initDev = 0; + +const int initIWMErr = -77; + +typedef ino64_t = __darwin_ino64_t; +typedef ino_t = __darwin_ino_t; + +const int inputOutOfBounds = -190; + +typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = objc.ObjCObject; + +const int insufficientStackErr = -149; + +@Deprecated('Deprecated') +const int intArabic = 1; + +@Deprecated('Deprecated') +const int intEuropean = 4; + +@Deprecated('Deprecated') +const int intJapanese = 3; + +@Deprecated('Deprecated') +const int intOutputMask = 32768; + +@Deprecated('Deprecated') +const int intRoman = 2; + +@Deprecated('Deprecated') +const int intWestern = 0; + +typedef int_fast16_t = ffi.Int16; +typedef Dartint_fast16_t = int; +typedef int_fast32_t = ffi.Int32; +typedef Dartint_fast32_t = int; +typedef int_fast64_t = ffi.Int64; +typedef Dartint_fast64_t = int; +typedef int_fast8_t = ffi.Int8; +typedef Dartint_fast8_t = int; +typedef int_least16_t = ffi.Int16; +typedef Dartint_least16_t = int; +typedef int_least32_t = ffi.Int32; +typedef Dartint_least32_t = int; +typedef int_least64_t = ffi.Int64; +typedef Dartint_least64_t = int; +typedef int_least8_t = ffi.Int8; +typedef Dartint_least8_t = int; +typedef integer_t = ffi.Int; +typedef Dartinteger_t = int; + +const int internalComponentErr = -2070; + +const int internalQuickTimeError = -2034; + +const int internalScrapErr = -4988; + +const int interruptsMaskedErr = -624; + +@Deprecated('Deprecated') +const int intlCurrency = 219; + +typedef intmax_t = ffi.Long; +typedef Dartintmax_t = int; + +const int invalidAtomContainerErr = -2107; + +const int invalidAtomErr = -2106; + +const int invalidAtomTypeErr = -2108; + +const int invalidChunkCache = -2040; + +const int invalidChunkNum = -2038; + +const int invalidComponentID = -3000; + +const int invalidDataRef = -2012; + +const int invalidDataRefContainer = -2049; + +const int invalidDuration = -2014; + +const int invalidEditState = -2023; + +const int invalidFolderTypeErr = -4273; + +const int invalidHandler = -2013; + +const int invalidHotSpotIDErr = -30551; + +const int invalidIconRefErr = -2580; + +const int invalidImageIndexErr = -2068; + +const int invalidIndexErr = -20002; + +const int invalidMedia = -2008; + +const int invalidMovie = -2010; + +const int invalidNodeFormatErr = -30550; + +const int invalidNodeIDErr = -30544; + +const int invalidPickerType = -4000; + +const int invalidRect = -2036; + +const int invalidSampleDescIndex = -2039; + +const int invalidSampleDescription = -2041; + +const int invalidSampleNum = -2037; + +const int invalidSampleTable = -2011; + +const int invalidSpriteIDErr = -2069; + +const int invalidSpriteIndexErr = -2067; + +const int invalidSpritePropertyErr = -2065; + +const int invalidSpriteWorldPropertyErr = -2064; + +const int invalidTime = -2015; + +const int invalidTrack = -2009; + +const int invalidTranslationPathErr = -3025; + +const int invalidViewStateErr = -30545; + +const int ioDirFlg = 4; + +const int ioDirMask = 16; + +const int ioErr = -36; + +@Deprecated('Deprecated') +const int ioQType = 2; + +typedef io_buf_ptr_t = ffi.Pointer; +typedef io_connect_t = io_object_t; +typedef io_enumerator_t = io_object_t; +typedef io_ident_t = io_object_t; +typedef io_iterator_t = io_object_t; +typedef io_main_t = mach_port_t; +typedef io_object_t = mach_port_t; +typedef io_registry_entry_t = io_object_t; +typedef io_service_t = io_object_t; + +final class io_stat_entry extends ffi.Struct { + @ffi.Uint64() + external int count; + + @ffi.Uint64() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required int size, + }) => $allocator() + ..ref.count = count + ..ref.size = size; +} + +final class io_stat_info extends ffi.Struct { + external io_stat_entry disk_reads; + + @ffi.Array.multi([4]) + external ffi.Array io_priority; + + external io_stat_entry paging; + + external io_stat_entry metadata; + + external io_stat_entry total_io; +} + +typedef io_stat_info_t = ffi.Pointer; +typedef io_user_reference_t = ffi.Uint64; +typedef Dartio_user_reference_t = int; +typedef io_user_scalar_t = ffi.Uint64; +typedef Dartio_user_scalar_t = int; + +final class iovec extends ffi.Struct { + external ffi.Pointer iov_base; + + @ffi.Size() + external int iov_len; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer iov_base, + required int iov_len, + }) => $allocator() + ..ref.iov_base = iov_base + ..ref.iov_len = iov_len; +} + +final class ip extends ffi.Opaque {} + +final class ip6_mtuinfo extends ffi.Struct { + external sockaddr_in6 ip6m_addr; + + @ffi.Uint32() + external int ip6m_mtu; +} + +final class ip_mreq extends ffi.Struct { + external in_addr imr_multiaddr; + + external in_addr imr_interface; +} + +final class ip_mreq_source extends ffi.Struct { + external in_addr imr_multiaddr; + + external in_addr imr_sourceaddr; + + external in_addr imr_interface; +} + +final class ip_mreqn extends ffi.Struct { + external in_addr imr_multiaddr; + + external in_addr imr_address; + + @ffi.Int() + external int imr_ifindex; +} + +final class ip_opts extends ffi.Struct { + external in_addr ip_dst; + + @ffi.Array.multi([40]) + external ffi.Array ip_opts$1; +} + +final class ip_timestamp extends ffi.Opaque {} + +typedef ipc_eventlink_t = mach_port_t; + +final class ipc_info_name extends ffi.Struct { + @mach_port_name_t() + external int iin_name; + + @integer_t() + external int iin_collision; + + @mach_port_type_t() + external int iin_type; + + @mach_port_urefs_t() + external int iin_urefs; + + @natural_t() + external int iin_object; + + @natural_t() + external int iin_next; + + @natural_t() + external int iin_hash; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iin_name, + required int iin_collision, + required int iin_type, + required int iin_urefs, + required int iin_object, + required int iin_next, + required int iin_hash, + }) => $allocator() + ..ref.iin_name = iin_name + ..ref.iin_collision = iin_collision + ..ref.iin_type = iin_type + ..ref.iin_urefs = iin_urefs + ..ref.iin_object = iin_object + ..ref.iin_next = iin_next + ..ref.iin_hash = iin_hash; +} + +typedef ipc_info_name_array_t = ffi.Pointer; +typedef ipc_info_name_t = ipc_info_name; + +enum ipc_info_object_type_t { + IPC_OTYPE_NONE(0), + IPC_OTYPE_THREAD_CONTROL(1), + IPC_OTYPE_TASK_CONTROL(2), + IPC_OTYPE_HOST(3), + IPC_OTYPE_HOST_PRIV(4), + IPC_OTYPE_PROCESSOR(5), + IPC_OTYPE_PROCESSOR_SET(6), + IPC_OTYPE_PROCESSOR_SET_NAME(7), + IPC_OTYPE_TIMER(8), + IPC_OTYPE_PORT_SUBST_ONCE(9), + IPC_OTYPE_MIG(10), + IPC_OTYPE_MEMORY_OBJECT(11), + IPC_OTYPE_XMM_PAGER(12), + IPC_OTYPE_XMM_KERNEL(13), + IPC_OTYPE_XMM_REPLY(14), + IPC_OTYPE_UND_REPLY(15), + IPC_OTYPE_HOST_NOTIFY(16), + IPC_OTYPE_HOST_SECURITY(17), + IPC_OTYPE_LEDGER(18), + IPC_OTYPE_MAIN_DEVICE(19), + IPC_OTYPE_TASK_NAME(20), + IPC_OTYPE_SUBSYSTEM(21), + IPC_OTYPE_IO_DONE_QUEUE(22), + IPC_OTYPE_SEMAPHORE(23), + IPC_OTYPE_LOCK_SET(24), + IPC_OTYPE_CLOCK(25), + IPC_OTYPE_CLOCK_CTRL(26), + IPC_OTYPE_IOKIT_IDENT(27), + IPC_OTYPE_NAMED_ENTRY(28), + IPC_OTYPE_IOKIT_CONNECT(29), + IPC_OTYPE_IOKIT_OBJECT(30), + IPC_OTYPE_UPL(31), + IPC_OTYPE_MEM_OBJ_CONTROL(32), + IPC_OTYPE_AU_SESSIONPORT(33), + IPC_OTYPE_FILEPORT(34), + IPC_OTYPE_LABELH(35), + IPC_OTYPE_TASK_RESUME(36), + IPC_OTYPE_VOUCHER(37), + IPC_OTYPE_VOUCHER_ATTR_CONTROL(38), + IPC_OTYPE_WORK_INTERVAL(39), + IPC_OTYPE_UX_HANDLER(40), + IPC_OTYPE_UEXT_OBJECT(41), + IPC_OTYPE_ARCADE_REG(42), + IPC_OTYPE_EVENTLINK(43), + IPC_OTYPE_TASK_INSPECT(44), + IPC_OTYPE_TASK_READ(45), + IPC_OTYPE_THREAD_INSPECT(46), + IPC_OTYPE_THREAD_READ(47), + IPC_OTYPE_SUID_CRED(48), + IPC_OTYPE_HYPERVISOR(49), + IPC_OTYPE_TASK_ID_TOKEN(50), + IPC_OTYPE_TASK_FATAL(51), + IPC_OTYPE_KCDATA(52), + IPC_OTYPE_EXCLAVES_RESOURCE(53), + IPC_OTYPE_UNKNOWN(-1); + + final int value; + const ipc_info_object_type_t(this.value); + + static ipc_info_object_type_t fromValue(int value) => switch (value) { + 0 => IPC_OTYPE_NONE, + 1 => IPC_OTYPE_THREAD_CONTROL, + 2 => IPC_OTYPE_TASK_CONTROL, + 3 => IPC_OTYPE_HOST, + 4 => IPC_OTYPE_HOST_PRIV, + 5 => IPC_OTYPE_PROCESSOR, + 6 => IPC_OTYPE_PROCESSOR_SET, + 7 => IPC_OTYPE_PROCESSOR_SET_NAME, + 8 => IPC_OTYPE_TIMER, + 9 => IPC_OTYPE_PORT_SUBST_ONCE, + 10 => IPC_OTYPE_MIG, + 11 => IPC_OTYPE_MEMORY_OBJECT, + 12 => IPC_OTYPE_XMM_PAGER, + 13 => IPC_OTYPE_XMM_KERNEL, + 14 => IPC_OTYPE_XMM_REPLY, + 15 => IPC_OTYPE_UND_REPLY, + 16 => IPC_OTYPE_HOST_NOTIFY, + 17 => IPC_OTYPE_HOST_SECURITY, + 18 => IPC_OTYPE_LEDGER, + 19 => IPC_OTYPE_MAIN_DEVICE, + 20 => IPC_OTYPE_TASK_NAME, + 21 => IPC_OTYPE_SUBSYSTEM, + 22 => IPC_OTYPE_IO_DONE_QUEUE, + 23 => IPC_OTYPE_SEMAPHORE, + 24 => IPC_OTYPE_LOCK_SET, + 25 => IPC_OTYPE_CLOCK, + 26 => IPC_OTYPE_CLOCK_CTRL, + 27 => IPC_OTYPE_IOKIT_IDENT, + 28 => IPC_OTYPE_NAMED_ENTRY, + 29 => IPC_OTYPE_IOKIT_CONNECT, + 30 => IPC_OTYPE_IOKIT_OBJECT, + 31 => IPC_OTYPE_UPL, + 32 => IPC_OTYPE_MEM_OBJ_CONTROL, + 33 => IPC_OTYPE_AU_SESSIONPORT, + 34 => IPC_OTYPE_FILEPORT, + 35 => IPC_OTYPE_LABELH, + 36 => IPC_OTYPE_TASK_RESUME, + 37 => IPC_OTYPE_VOUCHER, + 38 => IPC_OTYPE_VOUCHER_ATTR_CONTROL, + 39 => IPC_OTYPE_WORK_INTERVAL, + 40 => IPC_OTYPE_UX_HANDLER, + 41 => IPC_OTYPE_UEXT_OBJECT, + 42 => IPC_OTYPE_ARCADE_REG, + 43 => IPC_OTYPE_EVENTLINK, + 44 => IPC_OTYPE_TASK_INSPECT, + 45 => IPC_OTYPE_TASK_READ, + 46 => IPC_OTYPE_THREAD_INSPECT, + 47 => IPC_OTYPE_THREAD_READ, + 48 => IPC_OTYPE_SUID_CRED, + 49 => IPC_OTYPE_HYPERVISOR, + 50 => IPC_OTYPE_TASK_ID_TOKEN, + 51 => IPC_OTYPE_TASK_FATAL, + 52 => IPC_OTYPE_KCDATA, + 53 => IPC_OTYPE_EXCLAVES_RESOURCE, + -1 => IPC_OTYPE_UNKNOWN, + _ => throw ArgumentError( + 'Unknown value for ipc_info_object_type_t: $value', + ), + }; +} + +final class ipc_info_port extends ffi.Struct { + @natural_t() + external int iip_port_object; + + @natural_t() + external int iip_receiver_object; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iip_port_object, + required int iip_receiver_object, + }) => $allocator() + ..ref.iip_port_object = iip_port_object + ..ref.iip_receiver_object = iip_receiver_object; +} + +typedef ipc_info_port_t = ipc_info_port; + +final class ipc_info_space extends ffi.Struct { + @natural_t() + external int iis_genno_mask; + + @natural_t() + external int iis_table_size; + + @natural_t() + external int iis_table_next; + + @natural_t() + external int iis_tree_size; + + @natural_t() + external int iis_tree_small; + + @natural_t() + external int iis_tree_hash; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iis_genno_mask, + required int iis_table_size, + required int iis_table_next, + required int iis_tree_size, + required int iis_tree_small, + required int iis_tree_hash, + }) => $allocator() + ..ref.iis_genno_mask = iis_genno_mask + ..ref.iis_table_size = iis_table_size + ..ref.iis_table_next = iis_table_next + ..ref.iis_tree_size = iis_tree_size + ..ref.iis_tree_small = iis_tree_small + ..ref.iis_tree_hash = iis_tree_hash; +} + +final class ipc_info_space_basic extends ffi.Struct { + @natural_t() + external int iisb_genno_mask; + + @natural_t() + external int iisb_table_size; + + @natural_t() + external int iisb_table_next; + + @natural_t() + external int iisb_table_inuse; + + @ffi.Array.multi([2]) + external ffi.Array iisb_reserved; +} + +typedef ipc_info_space_basic_t = ipc_info_space_basic; +typedef ipc_info_space_t = ipc_info_space; + +final class ipc_info_tree_name extends ffi.Struct { + external ipc_info_name_t iitn_name; + + @mach_port_name_t() + external int iitn_lchild; + + @mach_port_name_t() + external int iitn_rchild; +} + +typedef ipc_info_tree_name_array_t = ffi.Pointer; +typedef ipc_info_tree_name_t = ipc_info_tree_name; +typedef ipc_space_inspect_t = mach_port_t; +typedef ipc_space_port_t = ipc_space_t; +typedef ipc_space_read_t = mach_port_t; +typedef ipc_space_t = mach_port_t; +typedef ipc_voucher_attr_control_t = mach_port_t; +typedef ipc_voucher_attr_manager_t = mach_port_t; +typedef ipc_voucher_t = mach_voucher_t; +typedef ipp_attribute_t = _ipp_attribute_s; +typedef ipp_copycb_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer context, + ffi.Pointer dst, + ffi.Pointer attr, + ) + > + >; + +enum ipp_dstate_e { + IPP_DSTATE_PENDING(3), + IPP_DSTATE_PROCESSING(5), + IPP_DSTATE_CANCELED(7), + IPP_DSTATE_ABORTED(8), + IPP_DSTATE_COMPLETED(9); + + final int value; + const ipp_dstate_e(this.value); + + static ipp_dstate_e fromValue(int value) => switch (value) { + 3 => IPP_DSTATE_PENDING, + 5 => IPP_DSTATE_PROCESSING, + 7 => IPP_DSTATE_CANCELED, + 8 => IPP_DSTATE_ABORTED, + 9 => IPP_DSTATE_COMPLETED, + _ => throw ArgumentError('Unknown value for ipp_dstate_e: $value'), + }; +} + +enum ipp_finishings_e { + IPP_FINISHINGS_NONE(3), + IPP_FINISHINGS_STAPLE(4), + IPP_FINISHINGS_PUNCH(5), + IPP_FINISHINGS_COVER(6), + IPP_FINISHINGS_BIND(7), + IPP_FINISHINGS_SADDLE_STITCH(8), + IPP_FINISHINGS_EDGE_STITCH(9), + IPP_FINISHINGS_FOLD(10), + IPP_FINISHINGS_TRIM(11), + IPP_FINISHINGS_BALE(12), + IPP_FINISHINGS_BOOKLET_MAKER(13), + IPP_FINISHINGS_JOG_OFFSET(14), + IPP_FINISHINGS_COAT(15), + IPP_FINISHINGS_LAMINATE(16), + IPP_FINISHINGS_STAPLE_TOP_LEFT(20), + IPP_FINISHINGS_STAPLE_BOTTOM_LEFT(21), + IPP_FINISHINGS_STAPLE_TOP_RIGHT(22), + IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT(23), + IPP_FINISHINGS_EDGE_STITCH_LEFT(24), + IPP_FINISHINGS_EDGE_STITCH_TOP(25), + IPP_FINISHINGS_EDGE_STITCH_RIGHT(26), + IPP_FINISHINGS_EDGE_STITCH_BOTTOM(27), + IPP_FINISHINGS_STAPLE_DUAL_LEFT(28), + IPP_FINISHINGS_STAPLE_DUAL_TOP(29), + IPP_FINISHINGS_STAPLE_DUAL_RIGHT(30), + IPP_FINISHINGS_STAPLE_DUAL_BOTTOM(31), + IPP_FINISHINGS_STAPLE_TRIPLE_LEFT(32), + IPP_FINISHINGS_STAPLE_TRIPLE_TOP(33), + IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT(34), + IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM(35), + IPP_FINISHINGS_BIND_LEFT(50), + IPP_FINISHINGS_BIND_TOP(51), + IPP_FINISHINGS_BIND_RIGHT(52), + IPP_FINISHINGS_BIND_BOTTOM(53), + IPP_FINISHINGS_TRIM_AFTER_PAGES(60), + IPP_FINISHINGS_TRIM_AFTER_DOCUMENTS(61), + IPP_FINISHINGS_TRIM_AFTER_COPIES(62), + IPP_FINISHINGS_TRIM_AFTER_JOB(63), + IPP_FINISHINGS_PUNCH_TOP_LEFT(70), + IPP_FINISHINGS_PUNCH_BOTTOM_LEFT(71), + IPP_FINISHINGS_PUNCH_TOP_RIGHT(72), + IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT(73), + IPP_FINISHINGS_PUNCH_DUAL_LEFT(74), + IPP_FINISHINGS_PUNCH_DUAL_TOP(75), + IPP_FINISHINGS_PUNCH_DUAL_RIGHT(76), + IPP_FINISHINGS_PUNCH_DUAL_BOTTOM(77), + IPP_FINISHINGS_PUNCH_TRIPLE_LEFT(78), + IPP_FINISHINGS_PUNCH_TRIPLE_TOP(79), + IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT(80), + IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM(81), + IPP_FINISHINGS_PUNCH_QUAD_LEFT(82), + IPP_FINISHINGS_PUNCH_QUAD_TOP(83), + IPP_FINISHINGS_PUNCH_QUAD_RIGHT(84), + IPP_FINISHINGS_PUNCH_QUAD_BOTTOM(85), + IPP_FINISHINGS_PUNCH_MULTIPLE_LEFT(86), + IPP_FINISHINGS_PUNCH_MULTIPLE_TOP(87), + IPP_FINISHINGS_PUNCH_MULTIPLE_RIGHT(88), + IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM(89), + IPP_FINISHINGS_FOLD_ACCORDION(90), + IPP_FINISHINGS_FOLD_DOUBLE_GATE(91), + IPP_FINISHINGS_FOLD_GATE(92), + IPP_FINISHINGS_FOLD_HALF(93), + IPP_FINISHINGS_FOLD_HALF_Z(94), + IPP_FINISHINGS_FOLD_LEFT_GATE(95), + IPP_FINISHINGS_FOLD_LETTER(96), + IPP_FINISHINGS_FOLD_PARALLEL(97), + IPP_FINISHINGS_FOLD_POSTER(98), + IPP_FINISHINGS_FOLD_RIGHT_GATE(99), + IPP_FINISHINGS_FOLD_Z(100), + IPP_FINISHINGS_FOLD_ENGINEERING_Z(101), + IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT(1073741894), + IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_LEFT(1073741895), + IPP_FINISHINGS_CUPS_PUNCH_TOP_RIGHT(1073741896), + IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_RIGHT(1073741897), + IPP_FINISHINGS_CUPS_PUNCH_DUAL_LEFT(1073741898), + IPP_FINISHINGS_CUPS_PUNCH_DUAL_TOP(1073741899), + IPP_FINISHINGS_CUPS_PUNCH_DUAL_RIGHT(1073741900), + IPP_FINISHINGS_CUPS_PUNCH_DUAL_BOTTOM(1073741901), + IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_LEFT(1073741902), + IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_TOP(1073741903), + IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_RIGHT(1073741904), + IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_BOTTOM(1073741905), + IPP_FINISHINGS_CUPS_PUNCH_QUAD_LEFT(1073741906), + IPP_FINISHINGS_CUPS_PUNCH_QUAD_TOP(1073741907), + IPP_FINISHINGS_CUPS_PUNCH_QUAD_RIGHT(1073741908), + IPP_FINISHINGS_CUPS_PUNCH_QUAD_BOTTOM(1073741909), + IPP_FINISHINGS_CUPS_FOLD_ACCORDION(1073741914), + IPP_FINISHINGS_CUPS_FOLD_DOUBLE_GATE(1073741915), + IPP_FINISHINGS_CUPS_FOLD_GATE(1073741916), + IPP_FINISHINGS_CUPS_FOLD_HALF(1073741917), + IPP_FINISHINGS_CUPS_FOLD_HALF_Z(1073741918), + IPP_FINISHINGS_CUPS_FOLD_LEFT_GATE(1073741919), + IPP_FINISHINGS_CUPS_FOLD_LETTER(1073741920), + IPP_FINISHINGS_CUPS_FOLD_PARALLEL(1073741921), + IPP_FINISHINGS_CUPS_FOLD_POSTER(1073741922), + IPP_FINISHINGS_CUPS_FOLD_RIGHT_GATE(1073741923), + IPP_FINISHINGS_CUPS_FOLD_Z(1073741924); + + final int value; + const ipp_finishings_e(this.value); + + static ipp_finishings_e fromValue(int value) => switch (value) { + 3 => IPP_FINISHINGS_NONE, + 4 => IPP_FINISHINGS_STAPLE, + 5 => IPP_FINISHINGS_PUNCH, + 6 => IPP_FINISHINGS_COVER, + 7 => IPP_FINISHINGS_BIND, + 8 => IPP_FINISHINGS_SADDLE_STITCH, + 9 => IPP_FINISHINGS_EDGE_STITCH, + 10 => IPP_FINISHINGS_FOLD, + 11 => IPP_FINISHINGS_TRIM, + 12 => IPP_FINISHINGS_BALE, + 13 => IPP_FINISHINGS_BOOKLET_MAKER, + 14 => IPP_FINISHINGS_JOG_OFFSET, + 15 => IPP_FINISHINGS_COAT, + 16 => IPP_FINISHINGS_LAMINATE, + 20 => IPP_FINISHINGS_STAPLE_TOP_LEFT, + 21 => IPP_FINISHINGS_STAPLE_BOTTOM_LEFT, + 22 => IPP_FINISHINGS_STAPLE_TOP_RIGHT, + 23 => IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT, + 24 => IPP_FINISHINGS_EDGE_STITCH_LEFT, + 25 => IPP_FINISHINGS_EDGE_STITCH_TOP, + 26 => IPP_FINISHINGS_EDGE_STITCH_RIGHT, + 27 => IPP_FINISHINGS_EDGE_STITCH_BOTTOM, + 28 => IPP_FINISHINGS_STAPLE_DUAL_LEFT, + 29 => IPP_FINISHINGS_STAPLE_DUAL_TOP, + 30 => IPP_FINISHINGS_STAPLE_DUAL_RIGHT, + 31 => IPP_FINISHINGS_STAPLE_DUAL_BOTTOM, + 32 => IPP_FINISHINGS_STAPLE_TRIPLE_LEFT, + 33 => IPP_FINISHINGS_STAPLE_TRIPLE_TOP, + 34 => IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT, + 35 => IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM, + 50 => IPP_FINISHINGS_BIND_LEFT, + 51 => IPP_FINISHINGS_BIND_TOP, + 52 => IPP_FINISHINGS_BIND_RIGHT, + 53 => IPP_FINISHINGS_BIND_BOTTOM, + 60 => IPP_FINISHINGS_TRIM_AFTER_PAGES, + 61 => IPP_FINISHINGS_TRIM_AFTER_DOCUMENTS, + 62 => IPP_FINISHINGS_TRIM_AFTER_COPIES, + 63 => IPP_FINISHINGS_TRIM_AFTER_JOB, + 70 => IPP_FINISHINGS_PUNCH_TOP_LEFT, + 71 => IPP_FINISHINGS_PUNCH_BOTTOM_LEFT, + 72 => IPP_FINISHINGS_PUNCH_TOP_RIGHT, + 73 => IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT, + 74 => IPP_FINISHINGS_PUNCH_DUAL_LEFT, + 75 => IPP_FINISHINGS_PUNCH_DUAL_TOP, + 76 => IPP_FINISHINGS_PUNCH_DUAL_RIGHT, + 77 => IPP_FINISHINGS_PUNCH_DUAL_BOTTOM, + 78 => IPP_FINISHINGS_PUNCH_TRIPLE_LEFT, + 79 => IPP_FINISHINGS_PUNCH_TRIPLE_TOP, + 80 => IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT, + 81 => IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM, + 82 => IPP_FINISHINGS_PUNCH_QUAD_LEFT, + 83 => IPP_FINISHINGS_PUNCH_QUAD_TOP, + 84 => IPP_FINISHINGS_PUNCH_QUAD_RIGHT, + 85 => IPP_FINISHINGS_PUNCH_QUAD_BOTTOM, + 86 => IPP_FINISHINGS_PUNCH_MULTIPLE_LEFT, + 87 => IPP_FINISHINGS_PUNCH_MULTIPLE_TOP, + 88 => IPP_FINISHINGS_PUNCH_MULTIPLE_RIGHT, + 89 => IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM, + 90 => IPP_FINISHINGS_FOLD_ACCORDION, + 91 => IPP_FINISHINGS_FOLD_DOUBLE_GATE, + 92 => IPP_FINISHINGS_FOLD_GATE, + 93 => IPP_FINISHINGS_FOLD_HALF, + 94 => IPP_FINISHINGS_FOLD_HALF_Z, + 95 => IPP_FINISHINGS_FOLD_LEFT_GATE, + 96 => IPP_FINISHINGS_FOLD_LETTER, + 97 => IPP_FINISHINGS_FOLD_PARALLEL, + 98 => IPP_FINISHINGS_FOLD_POSTER, + 99 => IPP_FINISHINGS_FOLD_RIGHT_GATE, + 100 => IPP_FINISHINGS_FOLD_Z, + 101 => IPP_FINISHINGS_FOLD_ENGINEERING_Z, + 1073741894 => IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT, + 1073741895 => IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_LEFT, + 1073741896 => IPP_FINISHINGS_CUPS_PUNCH_TOP_RIGHT, + 1073741897 => IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_RIGHT, + 1073741898 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_LEFT, + 1073741899 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_TOP, + 1073741900 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_RIGHT, + 1073741901 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_BOTTOM, + 1073741902 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_LEFT, + 1073741903 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_TOP, + 1073741904 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_RIGHT, + 1073741905 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_BOTTOM, + 1073741906 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_LEFT, + 1073741907 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_TOP, + 1073741908 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_RIGHT, + 1073741909 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_BOTTOM, + 1073741914 => IPP_FINISHINGS_CUPS_FOLD_ACCORDION, + 1073741915 => IPP_FINISHINGS_CUPS_FOLD_DOUBLE_GATE, + 1073741916 => IPP_FINISHINGS_CUPS_FOLD_GATE, + 1073741917 => IPP_FINISHINGS_CUPS_FOLD_HALF, + 1073741918 => IPP_FINISHINGS_CUPS_FOLD_HALF_Z, + 1073741919 => IPP_FINISHINGS_CUPS_FOLD_LEFT_GATE, + 1073741920 => IPP_FINISHINGS_CUPS_FOLD_LETTER, + 1073741921 => IPP_FINISHINGS_CUPS_FOLD_PARALLEL, + 1073741922 => IPP_FINISHINGS_CUPS_FOLD_POSTER, + 1073741923 => IPP_FINISHINGS_CUPS_FOLD_RIGHT_GATE, + 1073741924 => IPP_FINISHINGS_CUPS_FOLD_Z, + _ => throw ArgumentError('Unknown value for ipp_finishings_e: $value'), + }; +} + +typedef ipp_iocb_t = + ffi.Pointer< + ffi.NativeFunction< + ssize_t Function( + ffi.Pointer context, + ffi.Pointer buffer, + ffi.Size bytes, + ) + > + >; + +enum ipp_jcollate_e { + IPP_JCOLLATE_UNCOLLATED_SHEETS(3), + IPP_JCOLLATE_COLLATED_DOCUMENTS(4), + IPP_JCOLLATE_UNCOLLATED_DOCUMENTS(5); + + final int value; + const ipp_jcollate_e(this.value); + + static ipp_jcollate_e fromValue(int value) => switch (value) { + 3 => IPP_JCOLLATE_UNCOLLATED_SHEETS, + 4 => IPP_JCOLLATE_COLLATED_DOCUMENTS, + 5 => IPP_JCOLLATE_UNCOLLATED_DOCUMENTS, + _ => throw ArgumentError('Unknown value for ipp_jcollate_e: $value'), + }; +} + +enum ipp_jstate_e { + IPP_JSTATE_PENDING(3), + IPP_JSTATE_HELD(4), + IPP_JSTATE_PROCESSING(5), + IPP_JSTATE_STOPPED(6), + IPP_JSTATE_CANCELED(7), + IPP_JSTATE_ABORTED(8), + IPP_JSTATE_COMPLETED(9); + + final int value; + const ipp_jstate_e(this.value); + + static ipp_jstate_e fromValue(int value) => switch (value) { + 3 => IPP_JSTATE_PENDING, + 4 => IPP_JSTATE_HELD, + 5 => IPP_JSTATE_PROCESSING, + 6 => IPP_JSTATE_STOPPED, + 7 => IPP_JSTATE_CANCELED, + 8 => IPP_JSTATE_ABORTED, + 9 => IPP_JSTATE_COMPLETED, + _ => throw ArgumentError('Unknown value for ipp_jstate_e: $value'), + }; +} + +enum ipp_op_e { + IPP_OP_CUPS_INVALID(-1), + IPP_OP_CUPS_NONE(0), + IPP_OP_PRINT_JOB(2), + IPP_OP_PRINT_URI(3), + IPP_OP_VALIDATE_JOB(4), + IPP_OP_CREATE_JOB(5), + IPP_OP_SEND_DOCUMENT(6), + IPP_OP_SEND_URI(7), + IPP_OP_CANCEL_JOB(8), + IPP_OP_GET_JOB_ATTRIBUTES(9), + IPP_OP_GET_JOBS(10), + IPP_OP_GET_PRINTER_ATTRIBUTES(11), + IPP_OP_HOLD_JOB(12), + IPP_OP_RELEASE_JOB(13), + IPP_OP_RESTART_JOB(14), + IPP_OP_PAUSE_PRINTER(16), + IPP_OP_RESUME_PRINTER(17), + IPP_OP_PURGE_JOBS(18), + IPP_OP_SET_PRINTER_ATTRIBUTES(19), + IPP_OP_SET_JOB_ATTRIBUTES(20), + IPP_OP_GET_PRINTER_SUPPORTED_VALUES(21), + IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS(22), + IPP_OP_CREATE_JOB_SUBSCRIPTIONS(23), + IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES(24), + IPP_OP_GET_SUBSCRIPTIONS(25), + IPP_OP_RENEW_SUBSCRIPTION(26), + IPP_OP_CANCEL_SUBSCRIPTION(27), + IPP_OP_GET_NOTIFICATIONS(28), + IPP_OP_SEND_NOTIFICATIONS(29), + IPP_OP_GET_RESOURCE_ATTRIBUTES(30), + IPP_OP_GET_RESOURCE_DATA(31), + IPP_OP_GET_RESOURCES(32), + IPP_OP_GET_PRINT_SUPPORT_FILES(33), + IPP_OP_ENABLE_PRINTER(34), + IPP_OP_DISABLE_PRINTER(35), + IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB(36), + IPP_OP_HOLD_NEW_JOBS(37), + IPP_OP_RELEASE_HELD_NEW_JOBS(38), + IPP_OP_DEACTIVATE_PRINTER(39), + IPP_OP_ACTIVATE_PRINTER(40), + IPP_OP_RESTART_PRINTER(41), + IPP_OP_SHUTDOWN_PRINTER(42), + IPP_OP_STARTUP_PRINTER(43), + IPP_OP_REPROCESS_JOB(44), + IPP_OP_CANCEL_CURRENT_JOB(45), + IPP_OP_SUSPEND_CURRENT_JOB(46), + IPP_OP_RESUME_JOB(47), + IPP_OP_PROMOTE_JOB(48), + IPP_OP_SCHEDULE_JOB_AFTER(49), + IPP_OP_CANCEL_DOCUMENT(51), + IPP_OP_GET_DOCUMENT_ATTRIBUTES(52), + IPP_OP_GET_DOCUMENTS(53), + IPP_OP_DELETE_DOCUMENT(54), + IPP_OP_SET_DOCUMENT_ATTRIBUTES(55), + IPP_OP_CANCEL_JOBS(56), + IPP_OP_CANCEL_MY_JOBS(57), + IPP_OP_RESUBMIT_JOB(58), + IPP_OP_CLOSE_JOB(59), + IPP_OP_IDENTIFY_PRINTER(60), + IPP_OP_VALIDATE_DOCUMENT(61), + IPP_OP_ADD_DOCUMENT_IMAGES(62), + IPP_OP_ACKNOWLEDGE_DOCUMENT(63), + IPP_OP_ACKNOWLEDGE_IDENTIFY_PRINTER(64), + IPP_OP_ACKNOWLEDGE_JOB(65), + IPP_OP_FETCH_DOCUMENT(66), + IPP_OP_FETCH_JOB(67), + IPP_OP_GET_OUTPUT_DEVICE_ATTRIBUTES(68), + IPP_OP_UPDATE_ACTIVE_JOBS(69), + IPP_OP_DEREGISTER_OUTPUT_DEVICE(70), + IPP_OP_UPDATE_DOCUMENT_STATUS(71), + IPP_OP_UPDATE_JOB_STATUS(72), + IPP_OP_UPDATE_OUTPUT_DEVICE_ATTRIBUTES(73), + IPP_OP_GET_NEXT_DOCUMENT_DATA(74), + IPP_OP_ALLOCATE_PRINTER_RESOURCES(75), + IPP_OP_CREATE_PRINTER(76), + IPP_OP_DEALLOCATE_PRINTER_RESOURCES(77), + IPP_OP_DELETE_PRINTER(78), + IPP_OP_GET_PRINTERS(79), + IPP_OP_SHUTDOWN_ONE_PRINTER(80), + IPP_OP_STARTUP_ONE_PRINTER(81), + IPP_OP_CANCEL_RESOURCE(82), + IPP_OP_CREATE_RESOURCE(83), + IPP_OP_INSTALL_RESOURCE(84), + IPP_OP_SEND_RESOURCE_DATA(85), + IPP_OP_SET_RESOURCE_ATTRIBUTES(86), + IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS(87), + IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS(88), + IPP_OP_DISABLE_ALL_PRINTERS(89), + IPP_OP_ENABLE_ALL_PRINTERS(90), + IPP_OP_GET_SYSTEM_ATTRIBUTES(91), + IPP_OP_GET_SYSTEM_SUPPORTED_VALUES(92), + IPP_OP_PAUSE_ALL_PRINTERS(93), + IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB(94), + IPP_OP_REGISTER_OUTPUT_DEVICE(95), + IPP_OP_RESTART_SYSTEM(96), + IPP_OP_RESUME_ALL_PRINTERS(97), + IPP_OP_SET_SYSTEM_ATTRIBUTES(98), + IPP_OP_SHUTDOWN_ALL_PRINTERS(99), + IPP_OP_STARTUP_ALL_PRINTERS(100), + IPP_OP_PRIVATE(16384), + IPP_OP_CUPS_GET_DEFAULT(16385), + IPP_OP_CUPS_GET_PRINTERS(16386), + IPP_OP_CUPS_ADD_MODIFY_PRINTER(16387), + IPP_OP_CUPS_DELETE_PRINTER(16388), + IPP_OP_CUPS_GET_CLASSES(16389), + IPP_OP_CUPS_ADD_MODIFY_CLASS(16390), + IPP_OP_CUPS_DELETE_CLASS(16391), + IPP_OP_CUPS_ACCEPT_JOBS(16392), + IPP_OP_CUPS_REJECT_JOBS(16393), + IPP_OP_CUPS_SET_DEFAULT(16394), + IPP_OP_CUPS_GET_DEVICES(16395), + IPP_OP_CUPS_GET_PPDS(16396), + IPP_OP_CUPS_MOVE_JOB(16397), + IPP_OP_CUPS_AUTHENTICATE_JOB(16398), + IPP_OP_CUPS_GET_PPD(16399), + IPP_OP_CUPS_GET_DOCUMENT(16423), + IPP_OP_CUPS_CREATE_LOCAL_PRINTER(16424); + + final int value; + const ipp_op_e(this.value); + + static ipp_op_e fromValue(int value) => switch (value) { + -1 => IPP_OP_CUPS_INVALID, + 0 => IPP_OP_CUPS_NONE, + 2 => IPP_OP_PRINT_JOB, + 3 => IPP_OP_PRINT_URI, + 4 => IPP_OP_VALIDATE_JOB, + 5 => IPP_OP_CREATE_JOB, + 6 => IPP_OP_SEND_DOCUMENT, + 7 => IPP_OP_SEND_URI, + 8 => IPP_OP_CANCEL_JOB, + 9 => IPP_OP_GET_JOB_ATTRIBUTES, + 10 => IPP_OP_GET_JOBS, + 11 => IPP_OP_GET_PRINTER_ATTRIBUTES, + 12 => IPP_OP_HOLD_JOB, + 13 => IPP_OP_RELEASE_JOB, + 14 => IPP_OP_RESTART_JOB, + 16 => IPP_OP_PAUSE_PRINTER, + 17 => IPP_OP_RESUME_PRINTER, + 18 => IPP_OP_PURGE_JOBS, + 19 => IPP_OP_SET_PRINTER_ATTRIBUTES, + 20 => IPP_OP_SET_JOB_ATTRIBUTES, + 21 => IPP_OP_GET_PRINTER_SUPPORTED_VALUES, + 22 => IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS, + 23 => IPP_OP_CREATE_JOB_SUBSCRIPTIONS, + 24 => IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES, + 25 => IPP_OP_GET_SUBSCRIPTIONS, + 26 => IPP_OP_RENEW_SUBSCRIPTION, + 27 => IPP_OP_CANCEL_SUBSCRIPTION, + 28 => IPP_OP_GET_NOTIFICATIONS, + 29 => IPP_OP_SEND_NOTIFICATIONS, + 30 => IPP_OP_GET_RESOURCE_ATTRIBUTES, + 31 => IPP_OP_GET_RESOURCE_DATA, + 32 => IPP_OP_GET_RESOURCES, + 33 => IPP_OP_GET_PRINT_SUPPORT_FILES, + 34 => IPP_OP_ENABLE_PRINTER, + 35 => IPP_OP_DISABLE_PRINTER, + 36 => IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB, + 37 => IPP_OP_HOLD_NEW_JOBS, + 38 => IPP_OP_RELEASE_HELD_NEW_JOBS, + 39 => IPP_OP_DEACTIVATE_PRINTER, + 40 => IPP_OP_ACTIVATE_PRINTER, + 41 => IPP_OP_RESTART_PRINTER, + 42 => IPP_OP_SHUTDOWN_PRINTER, + 43 => IPP_OP_STARTUP_PRINTER, + 44 => IPP_OP_REPROCESS_JOB, + 45 => IPP_OP_CANCEL_CURRENT_JOB, + 46 => IPP_OP_SUSPEND_CURRENT_JOB, + 47 => IPP_OP_RESUME_JOB, + 48 => IPP_OP_PROMOTE_JOB, + 49 => IPP_OP_SCHEDULE_JOB_AFTER, + 51 => IPP_OP_CANCEL_DOCUMENT, + 52 => IPP_OP_GET_DOCUMENT_ATTRIBUTES, + 53 => IPP_OP_GET_DOCUMENTS, + 54 => IPP_OP_DELETE_DOCUMENT, + 55 => IPP_OP_SET_DOCUMENT_ATTRIBUTES, + 56 => IPP_OP_CANCEL_JOBS, + 57 => IPP_OP_CANCEL_MY_JOBS, + 58 => IPP_OP_RESUBMIT_JOB, + 59 => IPP_OP_CLOSE_JOB, + 60 => IPP_OP_IDENTIFY_PRINTER, + 61 => IPP_OP_VALIDATE_DOCUMENT, + 62 => IPP_OP_ADD_DOCUMENT_IMAGES, + 63 => IPP_OP_ACKNOWLEDGE_DOCUMENT, + 64 => IPP_OP_ACKNOWLEDGE_IDENTIFY_PRINTER, + 65 => IPP_OP_ACKNOWLEDGE_JOB, + 66 => IPP_OP_FETCH_DOCUMENT, + 67 => IPP_OP_FETCH_JOB, + 68 => IPP_OP_GET_OUTPUT_DEVICE_ATTRIBUTES, + 69 => IPP_OP_UPDATE_ACTIVE_JOBS, + 70 => IPP_OP_DEREGISTER_OUTPUT_DEVICE, + 71 => IPP_OP_UPDATE_DOCUMENT_STATUS, + 72 => IPP_OP_UPDATE_JOB_STATUS, + 73 => IPP_OP_UPDATE_OUTPUT_DEVICE_ATTRIBUTES, + 74 => IPP_OP_GET_NEXT_DOCUMENT_DATA, + 75 => IPP_OP_ALLOCATE_PRINTER_RESOURCES, + 76 => IPP_OP_CREATE_PRINTER, + 77 => IPP_OP_DEALLOCATE_PRINTER_RESOURCES, + 78 => IPP_OP_DELETE_PRINTER, + 79 => IPP_OP_GET_PRINTERS, + 80 => IPP_OP_SHUTDOWN_ONE_PRINTER, + 81 => IPP_OP_STARTUP_ONE_PRINTER, + 82 => IPP_OP_CANCEL_RESOURCE, + 83 => IPP_OP_CREATE_RESOURCE, + 84 => IPP_OP_INSTALL_RESOURCE, + 85 => IPP_OP_SEND_RESOURCE_DATA, + 86 => IPP_OP_SET_RESOURCE_ATTRIBUTES, + 87 => IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS, + 88 => IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS, + 89 => IPP_OP_DISABLE_ALL_PRINTERS, + 90 => IPP_OP_ENABLE_ALL_PRINTERS, + 91 => IPP_OP_GET_SYSTEM_ATTRIBUTES, + 92 => IPP_OP_GET_SYSTEM_SUPPORTED_VALUES, + 93 => IPP_OP_PAUSE_ALL_PRINTERS, + 94 => IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB, + 95 => IPP_OP_REGISTER_OUTPUT_DEVICE, + 96 => IPP_OP_RESTART_SYSTEM, + 97 => IPP_OP_RESUME_ALL_PRINTERS, + 98 => IPP_OP_SET_SYSTEM_ATTRIBUTES, + 99 => IPP_OP_SHUTDOWN_ALL_PRINTERS, + 100 => IPP_OP_STARTUP_ALL_PRINTERS, + 16384 => IPP_OP_PRIVATE, + 16385 => IPP_OP_CUPS_GET_DEFAULT, + 16386 => IPP_OP_CUPS_GET_PRINTERS, + 16387 => IPP_OP_CUPS_ADD_MODIFY_PRINTER, + 16388 => IPP_OP_CUPS_DELETE_PRINTER, + 16389 => IPP_OP_CUPS_GET_CLASSES, + 16390 => IPP_OP_CUPS_ADD_MODIFY_CLASS, + 16391 => IPP_OP_CUPS_DELETE_CLASS, + 16392 => IPP_OP_CUPS_ACCEPT_JOBS, + 16393 => IPP_OP_CUPS_REJECT_JOBS, + 16394 => IPP_OP_CUPS_SET_DEFAULT, + 16395 => IPP_OP_CUPS_GET_DEVICES, + 16396 => IPP_OP_CUPS_GET_PPDS, + 16397 => IPP_OP_CUPS_MOVE_JOB, + 16398 => IPP_OP_CUPS_AUTHENTICATE_JOB, + 16399 => IPP_OP_CUPS_GET_PPD, + 16423 => IPP_OP_CUPS_GET_DOCUMENT, + 16424 => IPP_OP_CUPS_CREATE_LOCAL_PRINTER, + _ => throw ArgumentError('Unknown value for ipp_op_e: $value'), + }; +} + +enum ipp_orient_e { + IPP_ORIENT_PORTRAIT(3), + IPP_ORIENT_LANDSCAPE(4), + IPP_ORIENT_REVERSE_LANDSCAPE(5), + IPP_ORIENT_REVERSE_PORTRAIT(6), + IPP_ORIENT_NONE(7); + + final int value; + const ipp_orient_e(this.value); + + static ipp_orient_e fromValue(int value) => switch (value) { + 3 => IPP_ORIENT_PORTRAIT, + 4 => IPP_ORIENT_LANDSCAPE, + 5 => IPP_ORIENT_REVERSE_LANDSCAPE, + 6 => IPP_ORIENT_REVERSE_PORTRAIT, + 7 => IPP_ORIENT_NONE, + _ => throw ArgumentError('Unknown value for ipp_orient_e: $value'), + }; +} + +enum ipp_pstate_e { + IPP_PSTATE_IDLE(3), + IPP_PSTATE_PROCESSING(4), + IPP_PSTATE_STOPPED(5); + + final int value; + const ipp_pstate_e(this.value); + + static ipp_pstate_e fromValue(int value) => switch (value) { + 3 => IPP_PSTATE_IDLE, + 4 => IPP_PSTATE_PROCESSING, + 5 => IPP_PSTATE_STOPPED, + _ => throw ArgumentError('Unknown value for ipp_pstate_e: $value'), + }; +} + +enum ipp_quality_e { + IPP_QUALITY_DRAFT(3), + IPP_QUALITY_NORMAL(4), + IPP_QUALITY_HIGH(5); + + final int value; + const ipp_quality_e(this.value); + + static ipp_quality_e fromValue(int value) => switch (value) { + 3 => IPP_QUALITY_DRAFT, + 4 => IPP_QUALITY_NORMAL, + 5 => IPP_QUALITY_HIGH, + _ => throw ArgumentError('Unknown value for ipp_quality_e: $value'), + }; +} + +enum ipp_res_e { + IPP_RES_PER_INCH(3), + IPP_RES_PER_CM(4); + + final int value; + const ipp_res_e(this.value); + + static ipp_res_e fromValue(int value) => switch (value) { + 3 => IPP_RES_PER_INCH, + 4 => IPP_RES_PER_CM, + _ => throw ArgumentError('Unknown value for ipp_res_e: $value'), + }; +} + +enum ipp_rstate_e { + IPP_RSTATE_PENDING(3), + IPP_RSTATE_AVAILABLE(4), + IPP_RSTATE_INSTALLED(5), + IPP_RSTATE_CANCELED(6), + IPP_RSTATE_ABORTED(7); + + final int value; + const ipp_rstate_e(this.value); + + static ipp_rstate_e fromValue(int value) => switch (value) { + 3 => IPP_RSTATE_PENDING, + 4 => IPP_RSTATE_AVAILABLE, + 5 => IPP_RSTATE_INSTALLED, + 6 => IPP_RSTATE_CANCELED, + 7 => IPP_RSTATE_ABORTED, + _ => throw ArgumentError('Unknown value for ipp_rstate_e: $value'), + }; +} + +enum ipp_sstate_e { + IPP_SSTATE_IDLE(3), + IPP_SSTATE_PROCESSING(4), + IPP_SSTATE_STOPPED(5); + + final int value; + const ipp_sstate_e(this.value); + + static ipp_sstate_e fromValue(int value) => switch (value) { + 3 => IPP_SSTATE_IDLE, + 4 => IPP_SSTATE_PROCESSING, + 5 => IPP_SSTATE_STOPPED, + _ => throw ArgumentError('Unknown value for ipp_sstate_e: $value'), + }; +} + +enum ipp_state_e { + IPP_STATE_ERROR(-1), + IPP_STATE_IDLE(0), + IPP_STATE_HEADER(1), + IPP_STATE_ATTRIBUTE(2), + IPP_STATE_DATA(3); + + final int value; + const ipp_state_e(this.value); + + static ipp_state_e fromValue(int value) => switch (value) { + -1 => IPP_STATE_ERROR, + 0 => IPP_STATE_IDLE, + 1 => IPP_STATE_HEADER, + 2 => IPP_STATE_ATTRIBUTE, + 3 => IPP_STATE_DATA, + _ => throw ArgumentError('Unknown value for ipp_state_e: $value'), + }; +} + +enum ipp_status_e { + IPP_STATUS_CUPS_INVALID(-1), + IPP_STATUS_OK(0), + IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED(1), + IPP_STATUS_OK_CONFLICTING(2), + IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS(3), + IPP_STATUS_OK_IGNORED_NOTIFICATIONS(4), + IPP_STATUS_OK_TOO_MANY_EVENTS(5), + IPP_STATUS_OK_BUT_CANCEL_SUBSCRIPTION(6), + IPP_STATUS_OK_EVENTS_COMPLETE(7), + IPP_STATUS_REDIRECTION_OTHER_SITE(512), + IPP_STATUS_CUPS_SEE_OTHER(640), + IPP_STATUS_ERROR_BAD_REQUEST(1024), + IPP_STATUS_ERROR_FORBIDDEN(1025), + IPP_STATUS_ERROR_NOT_AUTHENTICATED(1026), + IPP_STATUS_ERROR_NOT_AUTHORIZED(1027), + IPP_STATUS_ERROR_NOT_POSSIBLE(1028), + IPP_STATUS_ERROR_TIMEOUT(1029), + IPP_STATUS_ERROR_NOT_FOUND(1030), + IPP_STATUS_ERROR_GONE(1031), + IPP_STATUS_ERROR_REQUEST_ENTITY(1032), + IPP_STATUS_ERROR_REQUEST_VALUE(1033), + IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED(1034), + IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES(1035), + IPP_STATUS_ERROR_URI_SCHEME(1036), + IPP_STATUS_ERROR_CHARSET(1037), + IPP_STATUS_ERROR_CONFLICTING(1038), + IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED(1039), + IPP_STATUS_ERROR_COMPRESSION_ERROR(1040), + IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR(1041), + IPP_STATUS_ERROR_DOCUMENT_ACCESS(1042), + IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE(1043), + IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS(1044), + IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS(1045), + IPP_STATUS_ERROR_IGNORED_ALL_NOTIFICATIONS(1046), + IPP_STATUS_ERROR_PRINT_SUPPORT_FILE_NOT_FOUND(1047), + IPP_STATUS_ERROR_DOCUMENT_PASSWORD(1048), + IPP_STATUS_ERROR_DOCUMENT_PERMISSION(1049), + IPP_STATUS_ERROR_DOCUMENT_SECURITY(1050), + IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE(1051), + IPP_STATUS_ERROR_ACCOUNT_INFO_NEEDED(1052), + IPP_STATUS_ERROR_ACCOUNT_CLOSED(1053), + IPP_STATUS_ERROR_ACCOUNT_LIMIT_REACHED(1054), + IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED(1055), + IPP_STATUS_ERROR_NOT_FETCHABLE(1056), + IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED(1180), + IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED(1181), + IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED(1182), + IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED(1183), + IPP_STATUS_ERROR_INTERNAL(1280), + IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED(1281), + IPP_STATUS_ERROR_SERVICE_UNAVAILABLE(1282), + IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED(1283), + IPP_STATUS_ERROR_DEVICE(1284), + IPP_STATUS_ERROR_TEMPORARY(1285), + IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS(1286), + IPP_STATUS_ERROR_BUSY(1287), + IPP_STATUS_ERROR_JOB_CANCELED(1288), + IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED(1289), + IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED(1290), + IPP_STATUS_ERROR_TOO_MANY_JOBS(1291), + IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS(1292), + IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED(4096), + IPP_STATUS_ERROR_CUPS_PKI(4097), + IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED(4098); + + final int value; + const ipp_status_e(this.value); + + static ipp_status_e fromValue(int value) => switch (value) { + -1 => IPP_STATUS_CUPS_INVALID, + 0 => IPP_STATUS_OK, + 1 => IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED, + 2 => IPP_STATUS_OK_CONFLICTING, + 3 => IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS, + 4 => IPP_STATUS_OK_IGNORED_NOTIFICATIONS, + 5 => IPP_STATUS_OK_TOO_MANY_EVENTS, + 6 => IPP_STATUS_OK_BUT_CANCEL_SUBSCRIPTION, + 7 => IPP_STATUS_OK_EVENTS_COMPLETE, + 512 => IPP_STATUS_REDIRECTION_OTHER_SITE, + 640 => IPP_STATUS_CUPS_SEE_OTHER, + 1024 => IPP_STATUS_ERROR_BAD_REQUEST, + 1025 => IPP_STATUS_ERROR_FORBIDDEN, + 1026 => IPP_STATUS_ERROR_NOT_AUTHENTICATED, + 1027 => IPP_STATUS_ERROR_NOT_AUTHORIZED, + 1028 => IPP_STATUS_ERROR_NOT_POSSIBLE, + 1029 => IPP_STATUS_ERROR_TIMEOUT, + 1030 => IPP_STATUS_ERROR_NOT_FOUND, + 1031 => IPP_STATUS_ERROR_GONE, + 1032 => IPP_STATUS_ERROR_REQUEST_ENTITY, + 1033 => IPP_STATUS_ERROR_REQUEST_VALUE, + 1034 => IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED, + 1035 => IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, + 1036 => IPP_STATUS_ERROR_URI_SCHEME, + 1037 => IPP_STATUS_ERROR_CHARSET, + 1038 => IPP_STATUS_ERROR_CONFLICTING, + 1039 => IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED, + 1040 => IPP_STATUS_ERROR_COMPRESSION_ERROR, + 1041 => IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR, + 1042 => IPP_STATUS_ERROR_DOCUMENT_ACCESS, + 1043 => IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE, + 1044 => IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS, + 1045 => IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS, + 1046 => IPP_STATUS_ERROR_IGNORED_ALL_NOTIFICATIONS, + 1047 => IPP_STATUS_ERROR_PRINT_SUPPORT_FILE_NOT_FOUND, + 1048 => IPP_STATUS_ERROR_DOCUMENT_PASSWORD, + 1049 => IPP_STATUS_ERROR_DOCUMENT_PERMISSION, + 1050 => IPP_STATUS_ERROR_DOCUMENT_SECURITY, + 1051 => IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE, + 1052 => IPP_STATUS_ERROR_ACCOUNT_INFO_NEEDED, + 1053 => IPP_STATUS_ERROR_ACCOUNT_CLOSED, + 1054 => IPP_STATUS_ERROR_ACCOUNT_LIMIT_REACHED, + 1055 => IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED, + 1056 => IPP_STATUS_ERROR_NOT_FETCHABLE, + 1180 => IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED, + 1181 => IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED, + 1182 => IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED, + 1183 => IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED, + 1280 => IPP_STATUS_ERROR_INTERNAL, + 1281 => IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED, + 1282 => IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, + 1283 => IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED, + 1284 => IPP_STATUS_ERROR_DEVICE, + 1285 => IPP_STATUS_ERROR_TEMPORARY, + 1286 => IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS, + 1287 => IPP_STATUS_ERROR_BUSY, + 1288 => IPP_STATUS_ERROR_JOB_CANCELED, + 1289 => IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED, + 1290 => IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED, + 1291 => IPP_STATUS_ERROR_TOO_MANY_JOBS, + 1292 => IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS, + 4096 => IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED, + 4097 => IPP_STATUS_ERROR_CUPS_PKI, + 4098 => IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED, + _ => throw ArgumentError('Unknown value for ipp_status_e: $value'), + }; +} + +typedef ipp_t = _ipp_s; + +enum ipp_tag_e { + IPP_TAG_CUPS_INVALID(-1), + IPP_TAG_ZERO(0), + IPP_TAG_OPERATION(1), + IPP_TAG_JOB(2), + IPP_TAG_END(3), + IPP_TAG_PRINTER(4), + IPP_TAG_UNSUPPORTED_GROUP(5), + IPP_TAG_SUBSCRIPTION(6), + IPP_TAG_EVENT_NOTIFICATION(7), + IPP_TAG_RESOURCE(8), + IPP_TAG_DOCUMENT(9), + IPP_TAG_SYSTEM(10), + IPP_TAG_UNSUPPORTED_VALUE(16), + IPP_TAG_DEFAULT(17), + IPP_TAG_UNKNOWN(18), + IPP_TAG_NOVALUE(19), + IPP_TAG_NOTSETTABLE(21), + IPP_TAG_DELETEATTR(22), + IPP_TAG_ADMINDEFINE(23), + IPP_TAG_INTEGER(33), + IPP_TAG_BOOLEAN(34), + IPP_TAG_ENUM(35), + IPP_TAG_STRING(48), + IPP_TAG_DATE(49), + IPP_TAG_RESOLUTION(50), + IPP_TAG_RANGE(51), + IPP_TAG_BEGIN_COLLECTION(52), + IPP_TAG_TEXTLANG(53), + IPP_TAG_NAMELANG(54), + IPP_TAG_END_COLLECTION(55), + IPP_TAG_TEXT(65), + IPP_TAG_NAME(66), + IPP_TAG_RESERVED_STRING(67), + IPP_TAG_KEYWORD(68), + IPP_TAG_URI(69), + IPP_TAG_URISCHEME(70), + IPP_TAG_CHARSET(71), + IPP_TAG_LANGUAGE(72), + IPP_TAG_MIMETYPE(73), + IPP_TAG_MEMBERNAME(74), + IPP_TAG_EXTENSION(127), + IPP_TAG_CUPS_MASK(2147483647), + IPP_TAG_CUPS_CONST(-2147483648); + + final int value; + const ipp_tag_e(this.value); + + static ipp_tag_e fromValue(int value) => switch (value) { + -1 => IPP_TAG_CUPS_INVALID, + 0 => IPP_TAG_ZERO, + 1 => IPP_TAG_OPERATION, + 2 => IPP_TAG_JOB, + 3 => IPP_TAG_END, + 4 => IPP_TAG_PRINTER, + 5 => IPP_TAG_UNSUPPORTED_GROUP, + 6 => IPP_TAG_SUBSCRIPTION, + 7 => IPP_TAG_EVENT_NOTIFICATION, + 8 => IPP_TAG_RESOURCE, + 9 => IPP_TAG_DOCUMENT, + 10 => IPP_TAG_SYSTEM, + 16 => IPP_TAG_UNSUPPORTED_VALUE, + 17 => IPP_TAG_DEFAULT, + 18 => IPP_TAG_UNKNOWN, + 19 => IPP_TAG_NOVALUE, + 21 => IPP_TAG_NOTSETTABLE, + 22 => IPP_TAG_DELETEATTR, + 23 => IPP_TAG_ADMINDEFINE, + 33 => IPP_TAG_INTEGER, + 34 => IPP_TAG_BOOLEAN, + 35 => IPP_TAG_ENUM, + 48 => IPP_TAG_STRING, + 49 => IPP_TAG_DATE, + 50 => IPP_TAG_RESOLUTION, + 51 => IPP_TAG_RANGE, + 52 => IPP_TAG_BEGIN_COLLECTION, + 53 => IPP_TAG_TEXTLANG, + 54 => IPP_TAG_NAMELANG, + 55 => IPP_TAG_END_COLLECTION, + 65 => IPP_TAG_TEXT, + 66 => IPP_TAG_NAME, + 67 => IPP_TAG_RESERVED_STRING, + 68 => IPP_TAG_KEYWORD, + 69 => IPP_TAG_URI, + 70 => IPP_TAG_URISCHEME, + 71 => IPP_TAG_CHARSET, + 72 => IPP_TAG_LANGUAGE, + 73 => IPP_TAG_MIMETYPE, + 74 => IPP_TAG_MEMBERNAME, + 127 => IPP_TAG_EXTENSION, + 2147483647 => IPP_TAG_CUPS_MASK, + -2147483648 => IPP_TAG_CUPS_CONST, + _ => throw ArgumentError('Unknown value for ipp_tag_e: $value'), + }; +} + +typedef ipp_uchar_t = ffi.UnsignedChar; +typedef Dartipp_uchar_t = int; + +final class ipv6_mreq extends ffi.Struct { + external in6_addr ipv6mr_multiaddr; + + @ffi.UnsignedInt() + external int ipv6mr_interface; +} + +const int italic = 2; + +final class itimerval extends ffi.Struct { + external timeval it_interval; + + external timeval it_value; +} + +const int itlcDisableKeyScriptSync = 3; + +const int itlcDisableKeyScriptSyncMask = 8; + +const int itlcDualCaret = 6; + +const int itlcShowIcon = 7; + +const int itlcSysDirection = 15; + +const int iuCurrentCurLang = -4; + +const int iuCurrentDefLang = -5; + +@Deprecated('Deprecated') +const int iuCurrentScript = -2; + +@Deprecated('Deprecated') +const int iuNumberPartsTable = 2; + +const int iuScriptCurLang = -6; + +const int iuScriptDefLang = -7; + +const int iuSystemCurLang = -2; + +const int iuSystemDefLang = -3; + +@Deprecated('Deprecated') +const int iuSystemScript = -1; + +@Deprecated('Deprecated') +const int iuUnTokenTable = 3; + +@Deprecated('Deprecated') +const int iuWhiteSpaceList = 4; + +@Deprecated('Deprecated') +const int iuWordSelectTable = 0; + +@Deprecated('Deprecated') +const int iuWordWrapTable = 1; + +const int k16BE555PixelFormat = 16; + +const int k16BE565PixelFormat = 1110783541; + +const int k16BitCardErr = -9084; + +const int k16LE5551PixelFormat = 892679473; + +const int k16LE555PixelFormat = 1278555445; + +const int k16LE565PixelFormat = 1278555701; + +const int k1IndexedGrayPixelFormat = 33; + +const int k1MonochromePixelFormat = 1; + +const int k24BGRPixelFormat = 842285639; + +const int k24RGBPixelFormat = 24; + +const int k2IndexedGrayPixelFormat = 34; + +const int k2IndexedPixelFormat = 2; + +const int k2vuyPixelFormat = 846624121; + +const int k32ABGRPixelFormat = 1094862674; + +const int k32ARGBPixelFormat = 32; + +const int k32BGRAPixelFormat = 1111970369; + +@Deprecated('Deprecated') +const int k32BitHeap = 1; + +const int k32RGBAPixelFormat = 1380401729; + +const int k4IndexedGrayPixelFormat = 36; + +const int k4IndexedPixelFormat = 4; + +@Deprecated('Deprecated') +const int k68kInterruptLevelMask = 7; + +const int k8IndexedGrayPixelFormat = 40; + +const int k8IndexedPixelFormat = 8; + +const int kAEAND = 1095648288; + +const int kAEAbout = 1633841013; + +const int kAEActivate = 1633907830; + +const int kAEAfter = 1634104421; + +const int kAEAliasSelection = 1935764585; + +const int kAEAll = 1634495520; + +const int kAEAllCaps = 1634493296; + +const int kAEAlwaysInteract = 48; + +const int kAEAnswer = 1634628466; + +const int kAEAny = 1634629920; + +const int kAEApplicationActivationExpected = 1633775716; + +const int kAEApplicationClass = 1634758764; + +const int kAEApplicationDied = 1868720500; + +const int kAEArrowAtEnd = 1634887022; + +const int kAEArrowAtStart = 1634890612; + +const int kAEArrowBothEnds = 1634886255; + +const int kAEAsk = 1634954016; + +const int kAEAutoDown = 1635087471; + +const int kAEBefore = 1650812527; + +const int kAEBeginTransaction = 1650812777; + +const int kAEBeginning = 1650945639; + +const int kAEBeginsWith = 1650947956; + +const int kAEBold = 1651469412; + +const int kAECanInteract = 32; + +const int kAECanSwitchLayer = 64; + +const int kAECaseSensEquals = 1668506993; + +const int kAECentered = 1667591796; + +const int kAEChangeView = 1986618743; + +const int kAEClone = 1668050798; + +const int kAEClose = 1668050803; + +const int kAECommandClass = 1668116068; + +const int kAECondensed = 1668247140; + +const int kAEContains = 1668247156; + +const int kAECopy = 1668247673; + +const int kAECoreSuite = 1668248165; + +const int kAECountElements = 1668183141; + +const int kAECreateElement = 1668441452; + +const int kAECreatePublisher = 1668314466; + +const int kAECut = 1668641824; + +const int kAEDataArray = 0; + +const int kAEDeactivate = 1684104052; + +const int kAEDebugPOSTHeader = 1; + +const int kAEDebugReplyHeader = 2; + +const int kAEDebugXMLDebugAll = -1; + +const int kAEDebugXMLRequest = 4; + +const int kAEDebugXMLResponse = 8; + +const int kAEDefaultTimeout = -1; + +const int kAEDelete = 1684368495; + +const int kAEDescArray = 3; + +const int kAEDescListFactorNone = 0; + +const int kAEDescListFactorType = 4; + +const int kAEDescListFactorTypeAndSize = 8; + +const int kAEDirectCall = 1; + +const int kAEDiskEvent = 1684632427; + +const int kAEDoNotAutomaticallyAddAnnotationsToEvent = 65536; + +const int kAEDoNotPromptForUserConsent = 131072; + +const int kAEDoObjectsExist = 1685022072; + +const int kAEDoScript = 1685025635; + +const int kAEDontExecute = 8192; + +const int kAEDontReconnect = 128; + +const int kAEDontRecord = 4096; + +const int kAEDown = 1685026670; + +const int kAEDrag = 1685217639; + +const int kAEDuplicateSelection = 1935963504; + +const int kAEEditGraphic = 1701079412; + +const int kAEEmptyTrash = 1701671028; + +const int kAEEnd = 1701733408; + +const int kAEEndTransaction = 1701733492; + +const int kAEEndsWith = 1701733491; + +const int kAEEquals = 1025515552; + +const int kAEExpanded = 1885698160; + +const int kAEFast = 1717662580; + +const int kAEFetchURL = 1179996748; + +const int kAEFinderEvents = 1179534418; + +const int kAEFirst = 1718186611; + +const int kAEFormulaProtect = 1718645359; + +const int kAEFullyJustified = 1718971500; + +const int kAEGetClassInfo = 1903125098; + +const int kAEGetData = 1734702180; + +const int kAEGetDataSize = 1685285242; + +const int kAEGetEventInfo = 1735681385; + +const int kAEGetInfoSelection = 1936289382; + +const int kAEGetPrivilegeSelection = 1936749174; + +const int kAEGetSuiteInfo = 1735684969; + +const int kAEGetURL = 1196773964; + +const int kAEGreaterThan = 1042292768; + +const int kAEGreaterThanEquals = 1044193312; + +const int kAEGrow = 1735552887; + +const int kAEHTTPProxyHostAttr = 2020111464; + +const int kAEHTTPProxyPortAttr = 2020111472; + +const int kAEHandleArray = 2; + +const int kAEHandleSimpleRanges = 32; + +const int kAEHiQuality = 1751740789; + +const int kAEHidden = 1751737454; + +const int kAEHighLevel = 1751738216; + +const int kAEHighPriority = 1; + +const int kAEIDoMarking = 4; + +const int kAEIDoMinimum = 0; + +const int kAEIDoWhose = 1; + +const int kAEISAction = 1264673652; + +const int kAEISActionPath = 1264676980; + +const int kAEISClientAddress = 1633969266; + +const int kAEISClientIP = 1264806256; + +const int kAEISContentType = 1668577648; + +const int kAEISFromUser = 1718775157; + +const int kAEISFullRequest = 1265005169; + +const int kAEISGetURL = 1735750252; + +const int kAEISHTTPSearchArgs = 1801875314; + +const int kAEISMethod = 1835365480; + +const int kAEISPassword = 1885434739; + +const int kAEISPostArgs = 1886352244; + +const int kAEISReferrer = 1919247986; + +const int kAEISScriptName = 1935896173; + +const int kAEISServerName = 1937141357; + +const int kAEISServerPort = 1937141876; + +const int kAEISUserAgent = 1097297524; + +const int kAEISUserName = 1970496882; + +const int kAEISWebStarSuite = 1465341885; + +const int kAEImageGraphic = 1768777586; + +const int kAEInfo = 11; + +const int kAEInternetSuite = 1735750252; + +const int kAEIsUniform = 1769174382; + +const int kAEItalic = 1769234796; + +const int kAEKeyClass = 1801812323; + +const int kAEKeyDescArray = 4; + +const int kAEKeyDown = 1801746286; + +const int kAELast = 1818325876; + +const int kAELeftJustified = 1818584692; + +const int kAELessThan = 1008738336; + +const int kAELessThanEquals = 1010638880; + +const int kAELocalProcess = 3; + +const int kAELogOut = 1819240303; + +const int kAELowercase = 1819244387; + +const int kAEMain = 0; + +const int kAEMakeObjectsVisible = 1836476787; + +const int kAEMenuClass = 1835363957; + +const int kAEMenuSelect = 1835559284; + +const int kAEMiddle = 1835623524; + +const int kAEMiscStandards = 1835627363; + +const int kAEModifiable = 1836016742; + +const int kAEMouseClass = 1836021107; + +const int kAEMouseDown = 1835300718; + +const int kAEMouseDownInBack = 1835295339; + +const int kAEMove = 1836021349; + +const int kAEMoved = 1836021349; + +const int kAENOT = 1313821728; + +const int kAENavigationKey = 1851881061; + +const int kAENeverInteract = 16; + +const int kAENext = 1852143732; + +const int kAENo = 1852776480; + +const int kAENoArrow = 1634889327; + +const int kAENoReply = 1; + +const int kAENonmodifiable = 1852665700; + +const int kAENormalPriority = 0; + +const int kAENotifyRecording = 1919247218; + +const int kAENotifyStartRecording = 1919247153; + +const int kAENotifyStopRecording = 1919247152; + +const int kAENullEvent = 1853189228; + +const int kAEOR = 1330782240; + +const int kAEOSAXSizeResource = 1869834618; + +const int kAEOpen = 1868853091; + +const int kAEOpenApplication = 1868656752; + +const int kAEOpenContents = 1868787566; + +const int kAEOpenDocuments = 1868853091; + +const int kAEOpenSelection = 1936683109; + +const int kAEOutline = 1869968492; + +const int kAEPackedArray = 1; + +const int kAEPageSetup = 1885827957; + +const int kAEPassSubDescs = 8; + +const int kAEPaste = 1885434740; + +const int kAEPlain = 1886151022; + +const int kAEPrevious = 1886545270; + +const int kAEPrint = 1885630307; + +const int kAEPrintDocuments = 1885630307; + +const int kAEPrintSelection = 1936749161; + +const int kAEPrintWindow = 1886873966; + +const int kAEProcessNonReplyEvents = 32768; + +const int kAEPromise = 1886547821; + +const int kAEPutAwaySelection = 1936749940; + +const int kAEQDAdMax = 1633971576; + +const int kAEQDAdMin = 1633971566; + +const int kAEQDAddOver = 1633969263; + +const int kAEQDAddPin = 1633969264; + +const int kAEQDBic = 1651073824; + +const int kAEQDBlend = 1651273316; + +const int kAEQDCopy = 1668315424; + +const int kAEQDNotBic = 1851943267; + +const int kAEQDNotCopy = 1852010617; + +const int kAEQDNotOr = 1853124466; + +const int kAEQDNotXor = 1853386610; + +const int kAEQDOr = 1869750304; + +const int kAEQDSubOver = 1937072751; + +const int kAEQDSubPin = 1937072752; + +const int kAEQDSupplementalSuite = 1902408560; + +const int kAEQDXor = 2020569632; + +const int kAEQueueReply = 2; + +const int kAEQuickdrawSuite = 1902408311; + +const int kAEQuitAll = 1903520097; + +const int kAEQuitApplication = 1903520116; + +const int kAEQuitPreserveState = 1937006964; + +const int kAEQuitReason = 2003335487; + +const int kAERPCClass = 1919968032; + +const int kAERawKey = 1919640953; + +const int kAEReallyLogOut = 1919706991; + +const int kAERedo = 1919247471; + +const int kAERegular = 1919248236; + +const int kAERemoteProcess = 4; + +const int kAEReopenApplication = 1918988400; + +const int kAEReplace = 1919970403; + +const int kAERequiredSuite = 1919250788; + +const int kAEResized = 1920166266; + +const int kAEResolveNestedLists = 16; + +const int kAERestart = 1919251316; + +const int kAEResume = 1920167269; + +const int kAERevealSelection = 1936876918; + +const int kAERevert = 1920365172; + +const int kAERightJustified = 1919379572; + +const int kAESOAPScheme = 1397702992; + +const int kAESameProcess = 2; + +const int kAESave = 1935767141; + +const int kAEScrapEvent = 1935897200; + +const int kAEScriptingSizeResource = 1935897466; + +const int kAESelect = 1936483188; + +const int kAESetData = 1936028772; + +const int kAESetPosition = 1886352238; + +const int kAEShadow = 1936220516; + +const int kAESharedScriptHandler = 2004050800; + +const int kAESharing = 13; + +const int kAEShowClipboard = 1936221036; + +const int kAEShowPreferences = 1886545254; + +const int kAEShowRestartDialog = 1920103284; + +const int kAEShowShutdownDialog = 1920164974; + +const int kAEShutDown = 1936225652; + +const int kAESleep = 1936483696; + +const int kAESmallCaps = 1936548720; + +const int kAESocks4Protocol = 4; + +const int kAESocks5Protocol = 5; + +const int kAESocksHostAttr = 2020829299; + +const int kAESocksPasswordAttr = 2020829303; + +const int kAESocksPortAttr = 2020829296; + +const int kAESocksProxyAttr = 2020831083; + +const int kAESocksUserAttr = 2020829301; + +const int kAESpecialClassProperties = 1665147681; + +const int kAEStartRecording = 1919247201; + +const int kAEStopRecording = 1919247203; + +const int kAEStoppedMoving = 1937010544; + +const int kAEStrikethrough = 1937011307; + +const int kAESubscript = 1935831907; + +const int kAESuperscript = 1936749411; + +const int kAESuspend = 1937077104; + +const int kAETableSuite = 1952607347; + +const int kAETerminologyExtension = 1634038885; + +const int kAETextSuite = 1413830740; + +const int kAETransactionTerminated = 1953788525; + +const int kAEUTApostrophe = 3; + +const int kAEUTChangesState = 12; + +const int kAEUTDirectParamIsReference = 9; + +const int kAEUTEnumListIsExclusive = 10; + +const int kAEUTEnumerated = 13; + +const int kAEUTEnumsAreTypes = 11; + +const int kAEUTFeminine = 2; + +const int kAEUTHasReturningParam = 31; + +const int kAEUTMasculine = 1; + +const int kAEUTNotDirectParamIsTarget = 8; + +const int kAEUTOptional = 15; + +const int kAEUTParamIsReference = 9; + +const int kAEUTParamIsTarget = 8; + +const int kAEUTPlural = 0; + +const int kAEUTPropertyIsReference = 9; + +const int kAEUTReadWrite = 12; + +const int kAEUTReplyIsReference = 9; + +const int kAEUTTightBindingFunction = 12; + +const int kAEUTlistOfItems = 14; + +const int kAEUnderline = 1970168940; + +const int kAEUndo = 1970168943; + +const int kAEUnknownSource = 0; + +const int kAEUp = 1970282528; + +const int kAEUpdate = 1970300020; + +const int kAEUseHTTPProxyAttr = 2020962418; + +const int kAEUseRelativeIterators = 64; + +const int kAEUseSocksAttr = 2020828019; + +const int kAEUserTerminology = 1634039156; + +const int kAEVirtualKey = 1801812323; + +const int kAEWaitReply = 3; + +const int kAEWakeUpEvent = 2002873189; + +const int kAEWantReceipt = 512; + +const int kAEWholeWordEquals = 2004313457; + +const int kAEWindowClass = 2003398244; + +const int kAEXMLRPCScheme = 1380991794; + +const int kAEYes = 2036691744; + +const int kAEZoom = 2054123373; + +const int kAEZoomIn = 7; + +const int kAEZoomOut = 8; + +const int kAFPExtendedFlagsAlternateAddressMask = 1; + +const int kAFPServerIcon = 1634103411; + +const int kAFPTagLengthDDP = 6; + +const int kAFPTagLengthIP = 6; + +const int kAFPTagLengthIPPort = 8; + +const int kAFPTagTypeDDP = 3; + +const int kAFPTagTypeDNS = 4; + +const int kAFPTagTypeIP = 1; + +const int kAFPTagTypeIPPort = 2; + +const int kALMDeferSwitchErr = -30043; + +const int kALMDuplicateModuleErr = -30045; + +const int kALMGroupNotFoundErr = -30048; + +const int kALMInstallationErr = -30044; + +const int kALMInternalErr = -30049; + +const int kALMLocationNotFoundErr = -30048; + +@Deprecated('Deprecated') +const int kALMLocationsFolderType = 1717660780; + +const int kALMModuleCommunicationErr = -30046; + +@Deprecated('Deprecated') +const int kALMModulesFolderType = 2002873451; + +const int kALMNoSuchModuleErr = -30047; + +@Deprecated('Deprecated') +const int kALMPreferencesFolderType = 1953655152; + +const int kALMRebootFlagsLevelErr = -30042; + +const int kANKRCurrentVersion = 0; + +@Deprecated('Deprecated') +const int kARMMountVol = 1; + +@Deprecated('Deprecated') +const int kARMMultVols = 8; + +@Deprecated('Deprecated') +const int kARMNoUI = 2; + +@Deprecated('Deprecated') +const int kARMSearch = 256; + +@Deprecated('Deprecated') +const int kARMSearchMore = 512; + +@Deprecated('Deprecated') +const int kARMSearchRelFirst = 1024; + +@Deprecated('Deprecated') +const int kARMTryFileIDFirst = 2048; + +const int kATSBoldQDStretch = 98304; + +const int kATSCubicCurveType = 1; + +const int kATSDeletedGlyphcode = 65535; + +const int kATSFlatDataUstlCurrentVersion = 2; + +const int kATSFlatDataUstlVersion0 = 0; + +const int kATSFlatDataUstlVersion1 = 1; + +const int kATSFlatDataUstlVersion2 = 2; + +const int kATSFlattenedFontSpecifierRawNameData = 1851878756; + +const int kATSFontAutoActivationAsk = 4; + +const int kATSFontAutoActivationDefault = 0; + +const int kATSFontAutoActivationDisabled = 1; + +const int kATSFontAutoActivationEnabled = 2; + +const int kATSFontContainerRefUnspecified = 0; + +const int kATSFontContextGlobal = 1; + +const int kATSFontContextLocal = 2; + +const int kATSFontContextUnspecified = 0; + +const int kATSFontFamilyRefUnspecified = 0; + +const int kATSFontFilterCurrentVersion = 0; + +const int kATSFontFormatUnspecified = 0; + +const int kATSFontRefUnspecified = 0; + +const int kATSGenerationUnspecified = 0; + +const int kATSGlyphInfoAppleReserved = 536608744; + +const int kATSGlyphInfoByteSizeMask = 7; + +const int kATSGlyphInfoHasImposedWidth = 16; + +const int kATSGlyphInfoIsAttachment = -2147483648; + +const int kATSGlyphInfoIsLTHanger = 1073741824; + +const int kATSGlyphInfoIsRBHanger = 536870912; + +const int kATSGlyphInfoIsWhiteSpace = 262144; + +const int kATSGlyphInfoTerminatorGlyph = 524288; + +const int kATSInvalidFontAccess = -982; + +const int kATSInvalidFontContainerAccess = -985; + +const int kATSInvalidFontFamilyAccess = -981; + +const int kATSInvalidFontTableAccess = -984; + +const int kATSInvalidGlyphAccess = -986; + +const int kATSItalicQDSkew = 16384; + +const int kATSIterationCompleted = -980; + +const int kATSIterationScopeModified = -983; + +const int kATSLineAppleReserved = -52428800; + +const int kATSLineApplyAntiAliasing = 2048; + +const int kATSLineBreakToNearestCharacter = 33554432; + +const int kATSLineDisableAllBaselineAdjustments = 524288; + +const int kATSLineDisableAllGlyphMorphing = 131072; + +const int kATSLineDisableAllJustification = 65536; + +const int kATSLineDisableAllKerningAdjustments = 262144; + +const int kATSLineDisableAllLayoutOperations = 2031616; + +const int kATSLineDisableAllTrackingAdjustments = 1048576; + +const int kATSLineDisableAutoAdjustDisplayPos = 16384; + +const int kATSLineDisableNegativeJustification = 8192; + +const int kATSLineFillOutToWidth = 256; + +const int kATSLineFractDisable = 64; + +const int kATSLineHasNoHangers = 2; + +const int kATSLineHasNoOpticalAlignment = 4; + +const int kATSLineIgnoreFontLeading = 1024; + +const int kATSLineImposeNoAngleForEnds = 128; + +const int kATSLineIsDisplayOnly = 1; + +const int kATSLineKeepSpacesOutOfMargin = 8; + +const int kATSLineLastNoJustification = 32; + +const int kATSLineNoAntiAliasing = 4096; + +const int kATSLineNoLayoutOptions = 0; + +const int kATSLineNoSpecialJustification = 16; + +const int kATSLineTabAdjustEnabled = 512; + +const int kATSLineUseDeviceMetrics = 16777216; + +const int kATSLineUseQDRendering = 32768; + +const int kATSNoTracking = -2147483648; + +const int kATSOptionFlagsActivateDisabled = 32; + +const int kATSOptionFlagsComposeFontPostScriptName = 1; + +const int kATSOptionFlagsDefault = 0; + +const int kATSOptionFlagsDefaultScope = 0; + +const int kATSOptionFlagsDoNotNotify = 128; + +const int kATSOptionFlagsIncludeDisabledMask = 128; + +const int kATSOptionFlagsIterateByPrecedenceMask = 32; + +const int kATSOptionFlagsIterationScopeMask = 28672; + +const int kATSOptionFlagsProcessSubdirectories = 64; + +const int kATSOptionFlagsRecordPersistently = 262144; + +const int kATSOptionFlagsRestrictedScope = 8192; + +const int kATSOptionFlagsUnRestrictedScope = 4096; + +const int kATSOptionFlagsUseDataFork = 768; + +const int kATSOptionFlagsUseDataForkAsResourceFork = 256; + +const int kATSOptionFlagsUseResourceFork = 512; + +const int kATSOtherCurveType = 3; + +const int kATSQuadCurveType = 2; + +const int kATSRadiansFactor = 1144; + +const int kATSStyleAppleReserved = -8; + +const int kATSStyleApplyAntiAliasing = 2; + +const int kATSStyleApplyHints = 0; + +const int kATSStyleNoAntiAliasing = 4; + +const int kATSStyleNoHinting = 1; + +const int kATSStyleNoOptions = 0; + +const int kATSUAfterWithStreamShiftTag = 268; + +const int kATSUAscentTag = 284; + +const int kATSUBackgroundCallback = 1; + +const int kATSUBackgroundColor = 0; + +const int kATSUBadStreamErr = -8902; + +const int kATSUBaselineClassTag = 274; + +const int kATSUBeforeWithStreamShiftTag = 267; + +const int kATSUBusyObjectErr = -8809; + +const int kATSUByCharacter = 0; + +const int kATSUByCharacterCluster = 3; + +const int kATSUByCluster = 1; + +const int kATSUByTypographicCluster = 1; + +const int kATSUByWord = 2; + +const int kATSUCGContextTag = 32767; + +const int kATSUCenterTab = 1; + +const int kATSUClearAll = -1; + +const int kATSUColorTag = 263; + +const int kATSUCoordinateOverflowErr = -8807; + +const int kATSUCrossStreamShiftTag = 269; + +const int kATSUDataStreamUnicodeStyledText = 1970500716; + +const int kATSUDecimalTab = 3; + +const int kATSUDecompositionFactorTag = 273; + +const int kATSUDefaultFontFallbacks = 0; + +const int kATSUDescentTag = 285; + +const int kATSUDirectDataAdvanceDeltaFixedArray = 0; + +const int kATSUDirectDataBaselineDeltaFixedArray = 1; + +const int kATSUDirectDataDeviceDeltaSInt16Array = 2; + +const int kATSUDirectDataLayoutRecordATSLayoutRecordCurrent = 100; + +const int kATSUDirectDataLayoutRecordATSLayoutRecordVersion1 = 100; + +const int kATSUDirectDataStyleIndexUInt16Array = 3; + +const int kATSUDirectDataStyleSettingATSUStyleSettingRefArray = 4; + +const int kATSUFlattenOptionNoOptionsMask = 0; + +const int kATSUFontMatrixTag = 289; + +const int kATSUFontTag = 261; + +const int kATSUFontsMatched = -8793; + +const int kATSUFontsNotMatched = -8794; + +const int kATSUForceHangingTag = 280; + +const int kATSUFromFollowingLayout = -3; + +const int kATSUFromPreviousLayout = -2; + +const int kATSUFromTextBeginning = -1; + +const int kATSUGlyphSelectorTag = 287; + +const int kATSUHangingInhibitFactorTag = 271; + +const int kATSUImposeWidthTag = 266; + +const int kATSUInvalidAttributeSizeErr = -8798; + +const int kATSUInvalidAttributeTagErr = -8799; + +const int kATSUInvalidAttributeValueErr = -8797; + +const int kATSUInvalidCacheErr = -8800; + +const int kATSUInvalidCallInsideCallbackErr = -8904; + +const int kATSUInvalidFontErr = -8796; + +const int kATSUInvalidFontFallbacksErr = -8900; + +const int kATSUInvalidFontID = 0; + +const int kATSUInvalidStyleErr = -8791; + +const int kATSUInvalidTextLayoutErr = -8790; + +const int kATSUInvalidTextRangeErr = -8792; + +const int kATSUKerningInhibitFactorTag = 272; + +const int kATSULangRegionTag = 264; + +const int kATSULanguageTag = 264; + +const int kATSULastErr = -8959; + +const int kATSULastResortOnlyFallback = 1; + +const int kATSULayoutOperationAppleReserved = -64; + +const int kATSULayoutOperationBaselineAdjustment = 8; + +const int kATSULayoutOperationCallbackStatusContinue = 1; + +const int kATSULayoutOperationCallbackStatusHandled = 0; + +const int kATSULayoutOperationJustification = 1; + +const int kATSULayoutOperationKerningAdjustment = 4; + +const int kATSULayoutOperationMorph = 2; + +const int kATSULayoutOperationNone = 0; + +const int kATSULayoutOperationOverrideTag = 15; + +const int kATSULayoutOperationPostLayoutAdjustment = 32; + +const int kATSULayoutOperationTrackingAdjustment = 16; + +const int kATSULeadingTag = 286; + +const int kATSULeftTab = 0; + +const int kATSULeftToRightBaseDirection = 0; + +const int kATSULineAscentTag = 8; + +const int kATSULineBaselineValuesTag = 6; + +const int kATSULineBreakInWord = -8808; + +const int kATSULineDecimalTabCharacterTag = 14; + +const int kATSULineDescentTag = 9; + +const int kATSULineDirectionTag = 3; + +const int kATSULineFlushFactorTag = 5; + +const int kATSULineFontFallbacksTag = 13; + +const int kATSULineHighlightCGColorTag = 17; + +const int kATSULineJustificationFactorTag = 4; + +const int kATSULineLangRegionTag = 10; + +const int kATSULineLanguageTag = 10; + +const int kATSULineLayoutOptionsTag = 7; + +const int kATSULineRotationTag = 2; + +const int kATSULineTextLocatorTag = 11; + +const int kATSULineTruncationTag = 12; + +const int kATSULineWidthTag = 1; + +const int kATSULowLevelErr = -8804; + +const int kATSUMaxATSUITagValue = 65535; + +const int kATSUMaxLineTag = 18; + +const int kATSUMaxStyleTag = 299; + +const int kATSUNoCaretAngleTag = 277; + +const int kATSUNoCorrespondingFontErr = -8795; + +const int kATSUNoFontCmapAvailableErr = -8805; + +const int kATSUNoFontNameErr = -8905; + +const int kATSUNoFontScalerAvailableErr = -8806; + +const int kATSUNoLigatureSplitTag = 276; + +const int kATSUNoOpticalAlignmentTag = 279; + +const int kATSUNoSelector = 65535; + +const int kATSUNoSpecialJustificationTag = 281; + +const int kATSUNoStyleRunsAssignedErr = -8802; + +const int kATSUNotSetErr = -8801; + +const int kATSUNumberTabTypes = 4; + +const int kATSUOutputBufferTooSmallErr = -8903; + +const int kATSUPriorityJustOverrideTag = 275; + +const int kATSUQDBoldfaceTag = 256; + +const int kATSUQDCondensedTag = 259; + +const int kATSUQDExtendedTag = 260; + +const int kATSUQDItalicTag = 257; + +const int kATSUQDUnderlineTag = 258; + +const int kATSUQuickDrawTextErr = -8803; + +const int kATSURGBAlphaColorTag = 288; + +const int kATSURightTab = 2; + +const int kATSURightToLeftBaseDirection = 1; + +const int kATSUSequentialFallbacksExclusive = 3; + +const int kATSUSequentialFallbacksPreferred = 2; + +const int kATSUSizeTag = 262; + +const int kATSUStronglyHorizontal = 0; + +const int kATSUStronglyVertical = 1; + +const int kATSUStyleContainedBy = 3; + +const int kATSUStyleContains = 1; + +const int kATSUStyleDoubleLineCount = 2; + +const int kATSUStyleDropShadowBlurOptionTag = 296; + +const int kATSUStyleDropShadowColorOptionTag = 298; + +const int kATSUStyleDropShadowOffsetOptionTag = 297; + +const int kATSUStyleDropShadowTag = 295; + +const int kATSUStyleEquals = 2; + +const int kATSUStyleRenderingOptionsTag = 283; + +const int kATSUStyleSingleLineCount = 1; + +const int kATSUStyleStrikeThroughColorOptionTag = 294; + +const int kATSUStyleStrikeThroughCountOptionTag = 293; + +const int kATSUStyleStrikeThroughTag = 292; + +const int kATSUStyleTextLocatorTag = 282; + +const int kATSUStyleUnderlineColorOptionTag = 291; + +const int kATSUStyleUnderlineCountOptionTag = 290; + +const int kATSUStyleUnequal = 0; + +const int kATSUSuppressCrossKerningTag = 278; + +const int kATSUToTextEnd = -1; + +const int kATSUTrackingTag = 270; + +const int kATSUTruncFeatNoSquishing = 8; + +const int kATSUTruncateEnd = 2; + +const int kATSUTruncateMiddle = 3; + +const int kATSUTruncateNone = 0; + +const int kATSUTruncateSpecificationMask = 7; + +const int kATSUTruncateStart = 1; + +const int kATSUUnFlattenOptionNoOptionsMask = 0; + +const int kATSUUnsupportedStreamFormatErr = -8901; + +const int kATSUUseGrafPortPenLoc = -1; + +const int kATSUUseLineControlWidth = 2147483647; + +const int kATSUVerticalCharacterTag = 265; + +const int kATSUseCaretOrigins = 0; + +const int kATSUseDeviceOrigins = 1; + +const int kATSUseFractionalOrigins = 2; + +const int kATSUseGlyphAdvance = 2147483647; + +const int kATSUseLineHeight = 2147483647; + +const int kATSUseOriginFlags = 3; + +const int kAXValueAXErrorType = 5; + +const int kAXValueCFRangeType = 4; + +const int kAXValueCGPointType = 1; + +const int kAXValueCGRectType = 3; + +const int kAXValueCGSizeType = 2; + +const int kAXValueIllegalType = 0; + +const int kAbbrevSquaredLigaturesOffSelector = 15; + +const int kAbbrevSquaredLigaturesOnSelector = 14; + +@Deprecated('Deprecated') +const int kAccessException = 3; + +const int kAccountKCItemAttr = 1633903476; + +const int kAddKCEvent = 3; + +const int kAddKCEventMask = 8; + +const int kAddressKCItemAttr = 1633969266; + +const int kAlertCautionBadgeIcon = 1667392615; + +const int kAlertCautionIcon = 1667331444; + +const int kAlertNoteIcon = 1852798053; + +const int kAlertStopIcon = 1937010544; + +const int kAliasBadgeIcon = 1633838183; + +const int kAlignAbsoluteCenter = 5; + +const int kAlignBottom = 3; + +const int kAlignBottomLeft = 11; + +const int kAlignBottomRight = 15; + +const int kAlignCenterBottom = 7; + +const int kAlignCenterLeft = 9; + +const int kAlignCenterRight = 13; + +const int kAlignCenterTop = 6; + +const int kAlignHorizontalCenter = 4; + +const int kAlignLeft = 8; + +const int kAlignNone = 0; + +const int kAlignRight = 12; + +const int kAlignTop = 2; + +const int kAlignTopLeft = 10; + +const int kAlignTopRight = 14; + +const int kAlignVerticalCenter = 1; + +const int kAllCapsSelector = 1; + +const int kAllLowerCaseSelector = 2; + +const int kAllPPDDomains = 1; + +const int kAllTypeFeaturesOffSelector = 1; + +const int kAllTypeFeaturesOnSelector = 0; + +const int kAllTypographicFeaturesType = 0; + +const int kAlreadySavedStateErr = -9105; + +const int kAltHalfWidthTextSelector = 6; + +const int kAltProportionalTextSelector = 5; + +const int kAlternateHorizKanaOffSelector = 1; + +const int kAlternateHorizKanaOnSelector = 0; + +const int kAlternateKanaType = 34; + +const int kAlternateVertKanaOffSelector = 3; + +const int kAlternateVertKanaOnSelector = 2; + +const int kAlwaysSendSubject = 8192; + +const int kAndConnections = 268435453; + +const int kAnnotationType = 24; + +const int kAnyAuthType = 0; + +@Deprecated('Deprecated') +const int kAnyComponentFlagsMask = 0; + +@Deprecated('Deprecated') +const int kAnyComponentManufacturer = 0; + +@Deprecated('Deprecated') +const int kAnyComponentSubType = 0; + +@Deprecated('Deprecated') +const int kAnyComponentType = 0; + +const int kAnyPort = 0; + +const int kAnyProtocol = 0; + +const int kAnyTransactionID = 0; + +const int kAppPackageAliasType = 1717661793; + +const int kAppearanceFolderIcon = 1634758770; + +@Deprecated('Deprecated') +const int kAppearanceFolderType = 1634758770; + +const int kAppleExtrasFolderIcon = 1634040004; + +@Deprecated('Deprecated') +const int kAppleExtrasFolderType = 1634040004; + +const int kAppleLogoIcon = 1667330156; + +const int kAppleLosslessFormatFlag_16BitSourceData = 1; + +const int kAppleLosslessFormatFlag_20BitSourceData = 2; + +const int kAppleLosslessFormatFlag_24BitSourceData = 3; + +const int kAppleLosslessFormatFlag_32BitSourceData = 4; + +@Deprecated('Deprecated') +const int kAppleManufacturer = 1634758764; + +const int kAppleMenuFolderAliasType = 1717657965; + +const int kAppleMenuFolderIcon = 1634561653; + +const int kAppleMenuFolderIconResource = -3982; + +@Deprecated('Deprecated') +const int kAppleMenuFolderType = 1634561653; + +const int kAppleMenuIcon = 1935765612; + +const int kAppleScriptBadgeIcon = 1935897200; + +@Deprecated('Deprecated') +const int kAppleShareAuthenticationFolderType = 1635087464; + +const int kAppleSharePasswordKCItemClass = 1634953328; + +@Deprecated('Deprecated') +const int kAppleShareSupportFolderType = 1936220530; + +const int kAppleTalkIcon = 1635019883; + +const int kAppleTalkZoneIcon = 1635023470; + +@Deprecated('Deprecated') +const int kAppleshareAutomountServerAliasesFolderType = 1936881348; + +const int kApplicationAliasType = 1633972848; + +const int kApplicationCPAliasType = 1633903728; + +const int kApplicationDAAliasType = 1633969264; + +const int kApplicationSupportFolderIcon = 1634956656; + +@Deprecated('Deprecated') +const int kApplicationSupportFolderType = 1634956656; + +@Deprecated('Deprecated') +const int kApplicationThreadID = 2; + +const int kApplicationsFolderIcon = 1634758771; + +@Deprecated('Deprecated') +const int kApplicationsFolderType = 1634758771; + +const int kAssistantsFolderIcon = 1634956484; + +@Deprecated('Deprecated') +const int kAssistantsFolderType = 1634956484; + +const int kAsteriskToMultiplyOffSelector = 3; + +const int kAsteriskToMultiplyOnSelector = 2; + +const int kAsyncEjectComplete = 6; + +const int kAsyncEjectInProgress = 5; + +const int kAsyncMountComplete = 2; + +const int kAsyncMountInProgress = 1; + +const int kAsyncUnmountComplete = 4; + +const int kAsyncUnmountInProgress = 3; + +const int kAttemptDupCardEntryErr = -9106; + +@Deprecated('Deprecated') +const int kAudioAlertSoundsFolderType = 1634497140; + +const int kAudioChannelLabel_Ambisonic_W = 200; + +const int kAudioChannelLabel_Ambisonic_X = 201; + +const int kAudioChannelLabel_Ambisonic_Y = 202; + +const int kAudioChannelLabel_Ambisonic_Z = 203; + +const int kAudioChannelLabel_BeginReserved = -268435456; + +const int kAudioChannelLabel_BinauralLeft = 208; + +const int kAudioChannelLabel_BinauralRight = 209; + +const int kAudioChannelLabel_Center = 3; + +const int kAudioChannelLabel_CenterBottom = 59; + +const int kAudioChannelLabel_CenterSurround = 9; + +const int kAudioChannelLabel_CenterSurroundDirect = 44; + +const int kAudioChannelLabel_CenterTopFront = 14; + +const int kAudioChannelLabel_CenterTopMiddle = 12; + +const int kAudioChannelLabel_CenterTopRear = 53; + +const int kAudioChannelLabel_ClickTrack = 304; + +const int kAudioChannelLabel_DialogCentricMix = 43; + +const int kAudioChannelLabel_Discrete = 400; + +const int kAudioChannelLabel_Discrete_0 = 65536; + +const int kAudioChannelLabel_Discrete_1 = 65537; + +const int kAudioChannelLabel_Discrete_10 = 65546; + +const int kAudioChannelLabel_Discrete_11 = 65547; + +const int kAudioChannelLabel_Discrete_12 = 65548; + +const int kAudioChannelLabel_Discrete_13 = 65549; + +const int kAudioChannelLabel_Discrete_14 = 65550; + +const int kAudioChannelLabel_Discrete_15 = 65551; + +const int kAudioChannelLabel_Discrete_2 = 65538; + +const int kAudioChannelLabel_Discrete_3 = 65539; + +const int kAudioChannelLabel_Discrete_4 = 65540; + +const int kAudioChannelLabel_Discrete_5 = 65541; + +const int kAudioChannelLabel_Discrete_6 = 65542; + +const int kAudioChannelLabel_Discrete_65535 = 131071; + +const int kAudioChannelLabel_Discrete_7 = 65543; + +const int kAudioChannelLabel_Discrete_8 = 65544; + +const int kAudioChannelLabel_Discrete_9 = 65545; + +const int kAudioChannelLabel_EndReserved = -2; + +const int kAudioChannelLabel_ForeignLanguage = 305; + +const int kAudioChannelLabel_HOA_ACN = 500; + +const int kAudioChannelLabel_HOA_ACN_0 = 131072; + +const int kAudioChannelLabel_HOA_ACN_1 = 131073; + +const int kAudioChannelLabel_HOA_ACN_10 = 131082; + +const int kAudioChannelLabel_HOA_ACN_11 = 131083; + +const int kAudioChannelLabel_HOA_ACN_12 = 131084; + +const int kAudioChannelLabel_HOA_ACN_13 = 131085; + +const int kAudioChannelLabel_HOA_ACN_14 = 131086; + +const int kAudioChannelLabel_HOA_ACN_15 = 131087; + +const int kAudioChannelLabel_HOA_ACN_2 = 131074; + +const int kAudioChannelLabel_HOA_ACN_3 = 131075; + +const int kAudioChannelLabel_HOA_ACN_4 = 131076; + +const int kAudioChannelLabel_HOA_ACN_5 = 131077; + +const int kAudioChannelLabel_HOA_ACN_6 = 131078; + +const int kAudioChannelLabel_HOA_ACN_65024 = 196096; + +const int kAudioChannelLabel_HOA_ACN_7 = 131079; + +const int kAudioChannelLabel_HOA_ACN_8 = 131080; + +const int kAudioChannelLabel_HOA_ACN_9 = 131081; + +const int kAudioChannelLabel_HOA_N3D = 196608; + +const int kAudioChannelLabel_HOA_SN3D = 131072; + +const int kAudioChannelLabel_Haptic = 45; + +const int kAudioChannelLabel_HeadphonesLeft = 301; + +const int kAudioChannelLabel_HeadphonesRight = 302; + +const int kAudioChannelLabel_HearingImpaired = 40; + +const int kAudioChannelLabel_LFE2 = 37; + +const int kAudioChannelLabel_LFE3 = 62; + +const int kAudioChannelLabel_LFEScreen = 4; + +const int kAudioChannelLabel_Left = 1; + +const int kAudioChannelLabel_LeftBackSurround = 63; + +const int kAudioChannelLabel_LeftBottom = 57; + +const int kAudioChannelLabel_LeftCenter = 7; + +const int kAudioChannelLabel_LeftEdgeOfScreen = 65; + +const int kAudioChannelLabel_LeftSideSurround = 55; + +const int kAudioChannelLabel_LeftSurround = 5; + +const int kAudioChannelLabel_LeftSurroundDirect = 10; + +const int kAudioChannelLabel_LeftTopFront = 13; + +const int kAudioChannelLabel_LeftTopMiddle = 49; + +const int kAudioChannelLabel_LeftTopRear = 52; + +const int kAudioChannelLabel_LeftTopSurround = 60; + +const int kAudioChannelLabel_LeftTotal = 38; + +const int kAudioChannelLabel_LeftWide = 35; + +const int kAudioChannelLabel_MS_Mid = 204; + +const int kAudioChannelLabel_MS_Side = 205; + +const int kAudioChannelLabel_Mono = 42; + +const int kAudioChannelLabel_Narration = 41; + +const int kAudioChannelLabel_Object = 262144; + +const int kAudioChannelLabel_RearSurroundLeft = 33; + +const int kAudioChannelLabel_RearSurroundRight = 34; + +const int kAudioChannelLabel_Right = 2; + +const int kAudioChannelLabel_RightBackSurround = 64; + +const int kAudioChannelLabel_RightBottom = 58; + +const int kAudioChannelLabel_RightCenter = 8; + +const int kAudioChannelLabel_RightEdgeOfScreen = 66; + +const int kAudioChannelLabel_RightSideSurround = 56; + +const int kAudioChannelLabel_RightSurround = 6; + +const int kAudioChannelLabel_RightSurroundDirect = 11; + +const int kAudioChannelLabel_RightTopFront = 15; + +const int kAudioChannelLabel_RightTopMiddle = 51; + +const int kAudioChannelLabel_RightTopRear = 54; + +const int kAudioChannelLabel_RightTopSurround = 61; + +const int kAudioChannelLabel_RightTotal = 39; + +const int kAudioChannelLabel_RightWide = 36; + +const int kAudioChannelLabel_TopBackCenter = 17; + +const int kAudioChannelLabel_TopBackLeft = 16; + +const int kAudioChannelLabel_TopBackRight = 18; + +const int kAudioChannelLabel_TopCenterSurround = 12; + +const int kAudioChannelLabel_Unknown = -1; + +const int kAudioChannelLabel_Unused = 0; + +const int kAudioChannelLabel_UseCoordinates = 100; + +const int kAudioChannelLabel_VerticalHeightCenter = 14; + +const int kAudioChannelLabel_VerticalHeightLeft = 13; + +const int kAudioChannelLabel_VerticalHeightRight = 15; + +const int kAudioChannelLabel_XY_X = 206; + +const int kAudioChannelLabel_XY_Y = 207; + +const int kAudioChannelLayoutTag_AAC_3_0 = 7471107; + +const int kAudioChannelLayoutTag_AAC_4_0 = 7602180; + +const int kAudioChannelLayoutTag_AAC_5_0 = 7864325; + +const int kAudioChannelLayoutTag_AAC_5_1 = 8126470; + +const int kAudioChannelLayoutTag_AAC_6_0 = 9240582; + +const int kAudioChannelLayoutTag_AAC_6_1 = 9306119; + +const int kAudioChannelLayoutTag_AAC_7_0 = 9371655; + +const int kAudioChannelLayoutTag_AAC_7_1 = 8323080; + +const int kAudioChannelLayoutTag_AAC_7_1_B = 11993096; + +const int kAudioChannelLayoutTag_AAC_7_1_C = 12058632; + +const int kAudioChannelLayoutTag_AAC_Octagonal = 9437192; + +const int kAudioChannelLayoutTag_AAC_Quadraphonic = 7077892; + +const int kAudioChannelLayoutTag_AC3_1_0_1 = 9764866; + +const int kAudioChannelLayoutTag_AC3_2_1_1 = 10027012; + +const int kAudioChannelLayoutTag_AC3_3_0 = 9830403; + +const int kAudioChannelLayoutTag_AC3_3_0_1 = 9961476; + +const int kAudioChannelLayoutTag_AC3_3_1 = 9895940; + +const int kAudioChannelLayoutTag_AC3_3_1_1 = 10092549; + +const int kAudioChannelLayoutTag_Ambisonic_B_Format = 7012356; + +const int kAudioChannelLayoutTag_Atmos_5_1_2 = 12713992; + +const int kAudioChannelLayoutTag_Atmos_5_1_4 = 12779530; + +const int kAudioChannelLayoutTag_Atmos_7_1_2 = 12845066; + +const int kAudioChannelLayoutTag_Atmos_7_1_4 = 12582924; + +const int kAudioChannelLayoutTag_Atmos_9_1_6 = 12648464; + +const int kAudioChannelLayoutTag_AudioUnit_4 = 7077892; + +const int kAudioChannelLayoutTag_AudioUnit_5 = 7143429; + +const int kAudioChannelLayoutTag_AudioUnit_5_0 = 7733253; + +const int kAudioChannelLayoutTag_AudioUnit_5_1 = 7929862; + +const int kAudioChannelLayoutTag_AudioUnit_6 = 7208966; + +const int kAudioChannelLayoutTag_AudioUnit_6_0 = 9109510; + +const int kAudioChannelLayoutTag_AudioUnit_6_1 = 8192007; + +const int kAudioChannelLayoutTag_AudioUnit_7_0 = 9175047; + +const int kAudioChannelLayoutTag_AudioUnit_7_0_Front = 9699335; + +const int kAudioChannelLayoutTag_AudioUnit_7_1 = 8388616; + +const int kAudioChannelLayoutTag_AudioUnit_7_1_Front = 8257544; + +const int kAudioChannelLayoutTag_AudioUnit_8 = 7274504; + +const int kAudioChannelLayoutTag_BeginReserved = -268435456; + +const int kAudioChannelLayoutTag_Binaural = 6946818; + +const int kAudioChannelLayoutTag_CICP_1 = 6553601; + +const int kAudioChannelLayoutTag_CICP_10 = 8650756; + +const int kAudioChannelLayoutTag_CICP_11 = 8192007; + +const int kAudioChannelLayoutTag_CICP_12 = 8388616; + +const int kAudioChannelLayoutTag_CICP_13 = 13369368; + +const int kAudioChannelLayoutTag_CICP_14 = 13434888; + +const int kAudioChannelLayoutTag_CICP_15 = 13500428; + +const int kAudioChannelLayoutTag_CICP_16 = 13565962; + +const int kAudioChannelLayoutTag_CICP_17 = 13631500; + +const int kAudioChannelLayoutTag_CICP_18 = 13697038; + +const int kAudioChannelLayoutTag_CICP_19 = 13762572; + +const int kAudioChannelLayoutTag_CICP_2 = 6619138; + +const int kAudioChannelLayoutTag_CICP_20 = 13828110; + +const int kAudioChannelLayoutTag_CICP_3 = 7405571; + +const int kAudioChannelLayoutTag_CICP_4 = 7536644; + +const int kAudioChannelLayoutTag_CICP_5 = 7667717; + +const int kAudioChannelLayoutTag_CICP_6 = 7929862; + +const int kAudioChannelLayoutTag_CICP_7 = 8323080; + +const int kAudioChannelLayoutTag_CICP_9 = 8585219; + +const int kAudioChannelLayoutTag_Cube = 7340040; + +const int kAudioChannelLayoutTag_DTS_3_1 = 11010052; + +const int kAudioChannelLayoutTag_DTS_4_1 = 11075589; + +const int kAudioChannelLayoutTag_DTS_6_0_A = 11141126; + +const int kAudioChannelLayoutTag_DTS_6_0_B = 11206662; + +const int kAudioChannelLayoutTag_DTS_6_0_C = 11272198; + +const int kAudioChannelLayoutTag_DTS_6_1_A = 11337735; + +const int kAudioChannelLayoutTag_DTS_6_1_B = 11403271; + +const int kAudioChannelLayoutTag_DTS_6_1_C = 11468807; + +const int kAudioChannelLayoutTag_DTS_6_1_D = 11927559; + +const int kAudioChannelLayoutTag_DTS_7_0 = 11534343; + +const int kAudioChannelLayoutTag_DTS_7_1 = 11599880; + +const int kAudioChannelLayoutTag_DTS_8_0_A = 11665416; + +const int kAudioChannelLayoutTag_DTS_8_0_B = 11730952; + +const int kAudioChannelLayoutTag_DTS_8_1_A = 11796489; + +const int kAudioChannelLayoutTag_DTS_8_1_B = 11862025; + +const int kAudioChannelLayoutTag_DVD_0 = 6553601; + +const int kAudioChannelLayoutTag_DVD_1 = 6619138; + +const int kAudioChannelLayoutTag_DVD_10 = 8912900; + +const int kAudioChannelLayoutTag_DVD_11 = 8978437; + +const int kAudioChannelLayoutTag_DVD_12 = 7929862; + +const int kAudioChannelLayoutTag_DVD_13 = 7536644; + +const int kAudioChannelLayoutTag_DVD_14 = 7667717; + +const int kAudioChannelLayoutTag_DVD_15 = 8912900; + +const int kAudioChannelLayoutTag_DVD_16 = 8978437; + +const int kAudioChannelLayoutTag_DVD_17 = 7929862; + +const int kAudioChannelLayoutTag_DVD_18 = 9043973; + +const int kAudioChannelLayoutTag_DVD_19 = 7733253; + +const int kAudioChannelLayoutTag_DVD_2 = 8585219; + +const int kAudioChannelLayoutTag_DVD_20 = 7995398; + +const int kAudioChannelLayoutTag_DVD_3 = 8650756; + +const int kAudioChannelLayoutTag_DVD_4 = 8716291; + +const int kAudioChannelLayoutTag_DVD_5 = 8781828; + +const int kAudioChannelLayoutTag_DVD_6 = 8847365; + +const int kAudioChannelLayoutTag_DVD_7 = 7405571; + +const int kAudioChannelLayoutTag_DVD_8 = 7536644; + +const int kAudioChannelLayoutTag_DVD_9 = 7667717; + +const int kAudioChannelLayoutTag_DiscreteInOrder = 9633792; + +const int kAudioChannelLayoutTag_EAC3_6_1_A = 10289159; + +const int kAudioChannelLayoutTag_EAC3_6_1_B = 10354695; + +const int kAudioChannelLayoutTag_EAC3_6_1_C = 10420231; + +const int kAudioChannelLayoutTag_EAC3_7_1_A = 10485768; + +const int kAudioChannelLayoutTag_EAC3_7_1_B = 10551304; + +const int kAudioChannelLayoutTag_EAC3_7_1_C = 10616840; + +const int kAudioChannelLayoutTag_EAC3_7_1_D = 10682376; + +const int kAudioChannelLayoutTag_EAC3_7_1_E = 10747912; + +const int kAudioChannelLayoutTag_EAC3_7_1_F = 10813448; + +const int kAudioChannelLayoutTag_EAC3_7_1_G = 10878984; + +const int kAudioChannelLayoutTag_EAC3_7_1_H = 10944520; + +const int kAudioChannelLayoutTag_EAC_6_0_A = 10158086; + +const int kAudioChannelLayoutTag_EAC_7_0_A = 10223623; + +const int kAudioChannelLayoutTag_Emagic_Default_7_1 = 8454152; + +const int kAudioChannelLayoutTag_EndReserved = -65537; + +const int kAudioChannelLayoutTag_HOA_ACN_N3D = 12517376; + +const int kAudioChannelLayoutTag_HOA_ACN_SN3D = 12451840; + +const int kAudioChannelLayoutTag_Hexagonal = 7208966; + +const int kAudioChannelLayoutTag_ITU_1_0 = 6553601; + +const int kAudioChannelLayoutTag_ITU_2_0 = 6619138; + +const int kAudioChannelLayoutTag_ITU_2_1 = 8585219; + +const int kAudioChannelLayoutTag_ITU_2_2 = 8650756; + +const int kAudioChannelLayoutTag_ITU_3_0 = 7405571; + +const int kAudioChannelLayoutTag_ITU_3_1 = 7536644; + +const int kAudioChannelLayoutTag_ITU_3_2 = 7667717; + +const int kAudioChannelLayoutTag_ITU_3_2_1 = 7929862; + +const int kAudioChannelLayoutTag_ITU_3_4_1 = 8388616; + +const int kAudioChannelLayoutTag_Logic_4_0_A = 7536644; + +const int kAudioChannelLayoutTag_Logic_4_0_B = 7602180; + +const int kAudioChannelLayoutTag_Logic_4_0_C = 12910596; + +const int kAudioChannelLayoutTag_Logic_5_0_A = 7667717; + +const int kAudioChannelLayoutTag_Logic_5_0_B = 7733253; + +const int kAudioChannelLayoutTag_Logic_5_0_C = 7798789; + +const int kAudioChannelLayoutTag_Logic_5_0_D = 7864325; + +const int kAudioChannelLayoutTag_Logic_5_1_A = 7929862; + +const int kAudioChannelLayoutTag_Logic_5_1_B = 7995398; + +const int kAudioChannelLayoutTag_Logic_5_1_C = 8060934; + +const int kAudioChannelLayoutTag_Logic_5_1_D = 8126470; + +const int kAudioChannelLayoutTag_Logic_6_0_A = 9240582; + +const int kAudioChannelLayoutTag_Logic_6_0_B = 12976134; + +const int kAudioChannelLayoutTag_Logic_6_0_C = 9109510; + +const int kAudioChannelLayoutTag_Logic_6_1_A = 9306119; + +const int kAudioChannelLayoutTag_Logic_6_1_B = 13041671; + +const int kAudioChannelLayoutTag_Logic_6_1_C = 8192007; + +const int kAudioChannelLayoutTag_Logic_6_1_D = 13107207; + +const int kAudioChannelLayoutTag_Logic_7_1_A = 8388616; + +const int kAudioChannelLayoutTag_Logic_7_1_B = 13172744; + +const int kAudioChannelLayoutTag_Logic_7_1_C = 8388616; + +const int kAudioChannelLayoutTag_Logic_7_1_SDDS_A = 8257544; + +const int kAudioChannelLayoutTag_Logic_7_1_SDDS_B = 8323080; + +const int kAudioChannelLayoutTag_Logic_7_1_SDDS_C = 8454152; + +const int kAudioChannelLayoutTag_Logic_Atmos_5_1_2 = 12713992; + +const int kAudioChannelLayoutTag_Logic_Atmos_5_1_4 = 12779530; + +const int kAudioChannelLayoutTag_Logic_Atmos_7_1_2 = 12845066; + +const int kAudioChannelLayoutTag_Logic_Atmos_7_1_4_A = 12582924; + +const int kAudioChannelLayoutTag_Logic_Atmos_7_1_4_B = 13238284; + +const int kAudioChannelLayoutTag_Logic_Atmos_7_1_6 = 13303822; + +const int kAudioChannelLayoutTag_Logic_Mono = 6553601; + +const int kAudioChannelLayoutTag_Logic_Quadraphonic = 7077892; + +const int kAudioChannelLayoutTag_Logic_Stereo = 6619138; + +const int kAudioChannelLayoutTag_MPEG_1_0 = 6553601; + +const int kAudioChannelLayoutTag_MPEG_2_0 = 6619138; + +const int kAudioChannelLayoutTag_MPEG_3_0_A = 7405571; + +const int kAudioChannelLayoutTag_MPEG_3_0_B = 7471107; + +const int kAudioChannelLayoutTag_MPEG_4_0_A = 7536644; + +const int kAudioChannelLayoutTag_MPEG_4_0_B = 7602180; + +const int kAudioChannelLayoutTag_MPEG_5_0_A = 7667717; + +const int kAudioChannelLayoutTag_MPEG_5_0_B = 7733253; + +const int kAudioChannelLayoutTag_MPEG_5_0_C = 7798789; + +const int kAudioChannelLayoutTag_MPEG_5_0_D = 7864325; + +const int kAudioChannelLayoutTag_MPEG_5_0_E = 14155781; + +const int kAudioChannelLayoutTag_MPEG_5_1_A = 7929862; + +const int kAudioChannelLayoutTag_MPEG_5_1_B = 7995398; + +const int kAudioChannelLayoutTag_MPEG_5_1_C = 8060934; + +const int kAudioChannelLayoutTag_MPEG_5_1_D = 8126470; + +const int kAudioChannelLayoutTag_MPEG_5_1_E = 14221318; + +const int kAudioChannelLayoutTag_MPEG_6_1_A = 8192007; + +const int kAudioChannelLayoutTag_MPEG_6_1_B = 14286855; + +const int kAudioChannelLayoutTag_MPEG_7_1_A = 8257544; + +const int kAudioChannelLayoutTag_MPEG_7_1_B = 8323080; + +const int kAudioChannelLayoutTag_MPEG_7_1_C = 8388616; + +const int kAudioChannelLayoutTag_MPEG_7_1_D = 14352392; + +const int kAudioChannelLayoutTag_MatrixStereo = 6750210; + +const int kAudioChannelLayoutTag_MidSide = 6815746; + +const int kAudioChannelLayoutTag_Mono = 6553601; + +const int kAudioChannelLayoutTag_Octagonal = 7274504; + +const int kAudioChannelLayoutTag_Ogg_3_0 = 9830403; + +const int kAudioChannelLayoutTag_Ogg_4_0 = 12124164; + +const int kAudioChannelLayoutTag_Ogg_5_0 = 13893637; + +const int kAudioChannelLayoutTag_Ogg_5_1 = 13959174; + +const int kAudioChannelLayoutTag_Ogg_6_1 = 14024711; + +const int kAudioChannelLayoutTag_Ogg_7_1 = 14090248; + +const int kAudioChannelLayoutTag_Pentagonal = 7143429; + +const int kAudioChannelLayoutTag_Quadraphonic = 7077892; + +const int kAudioChannelLayoutTag_SMPTE_DTV = 8519688; + +const int kAudioChannelLayoutTag_Stereo = 6619138; + +const int kAudioChannelLayoutTag_StereoHeadphones = 6684674; + +const int kAudioChannelLayoutTag_TMH_10_2_full = 9568277; + +const int kAudioChannelLayoutTag_TMH_10_2_std = 9502736; + +const int kAudioChannelLayoutTag_Unknown = -65536; + +const int kAudioChannelLayoutTag_UseChannelBitmap = 65536; + +const int kAudioChannelLayoutTag_UseChannelDescriptions = 0; + +const int kAudioChannelLayoutTag_WAVE_2_1 = 8716291; + +const int kAudioChannelLayoutTag_WAVE_3_0 = 7405571; + +const int kAudioChannelLayoutTag_WAVE_4_0_A = 8650756; + +const int kAudioChannelLayoutTag_WAVE_4_0_B = 12124164; + +const int kAudioChannelLayoutTag_WAVE_5_0_A = 7667717; + +const int kAudioChannelLayoutTag_WAVE_5_0_B = 12189701; + +const int kAudioChannelLayoutTag_WAVE_5_1_A = 7929862; + +const int kAudioChannelLayoutTag_WAVE_5_1_B = 12255238; + +const int kAudioChannelLayoutTag_WAVE_6_1 = 12320775; + +const int kAudioChannelLayoutTag_WAVE_7_1 = 12386312; + +const int kAudioChannelLayoutTag_XY = 6881282; + +@Deprecated('Deprecated') +const int kAudioComponentsFolderType = 1633906032; + +@Deprecated('Deprecated') +const int kAudioDigidesignFolderType = 1633970535; + +const int kAudioFormat60958AC3 = 1667326771; + +const int kAudioFormatAC3 = 1633889587; + +const int kAudioFormatAES3 = 1634038579; + +const int kAudioFormatALaw = 1634492791; + +const int kAudioFormatAMR = 1935764850; + +const int kAudioFormatAMR_WB = 1935767394; + +const int kAudioFormatAPAC = 1634754915; + +const int kAudioFormatAppleIMA4 = 1768775988; + +const int kAudioFormatAppleLossless = 1634492771; + +const int kAudioFormatAudible = 1096107074; + +const int kAudioFormatDVIIntelIMA = 1836253201; + +const int kAudioFormatEnhancedAC3 = 1700998451; + +const int kAudioFormatFLAC = 1718378851; + +const int kAudioFormatFlagIsAlignedHigh = 16; + +const int kAudioFormatFlagIsBigEndian = 2; + +const int kAudioFormatFlagIsFloat = 1; + +const int kAudioFormatFlagIsNonInterleaved = 32; + +const int kAudioFormatFlagIsNonMixable = 64; + +const int kAudioFormatFlagIsPacked = 8; + +const int kAudioFormatFlagIsSignedInteger = 4; + +const int kAudioFormatFlagsAreAllClear = -2147483648; + +@Deprecated('The concept of canonical formats is deprecated') +const int kAudioFormatFlagsAudioUnitCanonical = 41; + +@Deprecated('The concept of canonical formats is deprecated') +const int kAudioFormatFlagsCanonical = 9; + +const int kAudioFormatFlagsNativeEndian = 0; + +const int kAudioFormatFlagsNativeFloatPacked = 9; + +const int kAudioFormatLinearPCM = 1819304813; + +const int kAudioFormatMACE3 = 1296122675; + +const int kAudioFormatMACE6 = 1296122678; + +const int kAudioFormatMIDIStream = 1835623529; + +const int kAudioFormatMPEG4AAC = 1633772320; + +const int kAudioFormatMPEG4AAC_ELD = 1633772389; + +const int kAudioFormatMPEG4AAC_ELD_SBR = 1633772390; + +const int kAudioFormatMPEG4AAC_ELD_V2 = 1633772391; + +const int kAudioFormatMPEG4AAC_HE = 1633772392; + +const int kAudioFormatMPEG4AAC_HE_V2 = 1633772400; + +const int kAudioFormatMPEG4AAC_LD = 1633772396; + +const int kAudioFormatMPEG4AAC_Spatial = 1633772403; + +const int kAudioFormatMPEG4CELP = 1667591280; + +const int kAudioFormatMPEG4HVXC = 1752594531; + +const int kAudioFormatMPEG4TwinVQ = 1953986161; + +const int kAudioFormatMPEGD_USAC = 1970495843; + +const int kAudioFormatMPEGLayer1 = 778924081; + +const int kAudioFormatMPEGLayer2 = 778924082; + +const int kAudioFormatMPEGLayer3 = 778924083; + +const int kAudioFormatMicrosoftGSM = 1836253233; + +const int kAudioFormatOpus = 1869641075; + +const int kAudioFormatParameterValueStream = 1634760307; + +const int kAudioFormatQDesign = 1363430723; + +const int kAudioFormatQDesign2 = 1363430706; + +const int kAudioFormatQUALCOMM = 1365470320; + +const int kAudioFormatTimeCode = 1953066341; + +const int kAudioFormatULaw = 1970037111; + +const int kAudioFormatiLBC = 1768710755; + +@Deprecated('Deprecated') +const int kAudioPlugInsFolderType = 1634757735; + +@Deprecated('Deprecated') +const int kAudioPresetsFolderType = 1634759540; + +@Deprecated('Deprecated') +const int kAudioSoundBanksFolderType = 1650552427; + +@Deprecated('Deprecated') +const int kAudioSoundsFolderType = 1634954852; + +const double kAudioStreamAnyRate = 0.0; + +@Deprecated('Deprecated') +const int kAudioSupportFolderType = 1633970543; + +const int kAudioUnitProperty_SpeechChannel = 3331; + +const int kAudioUnitProperty_Voice = 3330; + +const int kAudioUnitSubType_SpeechSynthesis = 1953788784; + +@Deprecated('Deprecated') +const int kAudioVSTFolderType = 1635152756; + +const int kAudio_BadFilePathError = 561017960; + +const int kAudio_FileNotFoundError = -43; + +const int kAudio_FilePermissionError = -54; + +const int kAudio_MemFullError = -108; + +const int kAudio_NoError = 0; + +const int kAudio_ParamError = -50; + +const int kAudio_TooManyFilesOpenError = -42; + +const int kAudio_UnimplementedError = -4; + +const int kAuthTypeKCItemAttr = 1635023216; + +const int kAuthorizationFlagCanNotPreAuthorize = 1; + +const int kAutoGenerateReturnID = -1; + +@Deprecated('Deprecated') +const int kAutomatorWorkflowsFolderType = 1718382455; + +@Deprecated('Deprecated') +const int kAutosaveInformationFolderType = 1634951542; + +@Deprecated('Deprecated') +const int kBLibTag2 = 1112303970; + +const int kBSLNControlPointFormatNoMap = 2; + +const int kBSLNControlPointFormatWithMap = 3; + +const int kBSLNCurrentVersion = 65536; + +const int kBSLNDistanceFormatNoMap = 0; + +const int kBSLNDistanceFormatWithMap = 1; + +const int kBSLNHangingBaseline = 3; + +const int kBSLNIdeographicCenterBaseline = 1; + +const int kBSLNIdeographicHighBaseline = 5; + +const int kBSLNIdeographicLowBaseline = 2; + +const int kBSLNLastBaseline = 31; + +const int kBSLNMathBaseline = 4; + +const int kBSLNNoBaseline = 255; + +const int kBSLNNoBaselineOverride = 255; + +const int kBSLNNumBaselineClasses = 32; + +const int kBSLNRomanBaseline = 0; + +const int kBSLNTag = 1651731566; + +const int kBTBadCloseMask = 1; + +const int kBTBigKeysMask = 2; + +const int kBTHeaderNode = 1; + +const int kBTIndexNode = 0; + +const int kBTLeafNode = -1; + +const int kBTMapNode = 2; + +const int kBTVariableIndexKeysMask = 4; + +const int kBackwardArrowIcon = 1650553455; + +const int kBadAdapterErr = -9050; + +const int kBadArgLengthErr = -9063; + +const int kBadArgsErr = -9064; + +const int kBadAttributeErr = -9051; + +const int kBadBaseErr = -9052; + +const int kBadCISErr = -9066; + +const int kBadCustomIFIDErr = -9093; + +const int kBadDeviceErr = -9083; + +const int kBadEDCErr = -9053; + +const int kBadHandleErr = -9065; + +const int kBadIRQErr = -9054; + +const int kBadLinkErr = -9082; + +const int kBadOffsetErr = -9055; + +const int kBadPageErr = -9056; + +const int kBadSizeErr = -9057; + +const int kBadSocketErr = -9058; + +const int kBadSpeedErr = -9067; + +const int kBadTupleDataErr = -9092; + +const int kBadTypeErr = -9059; + +const int kBadVccErr = -9060; + +const int kBadVppErr = -9061; + +const int kBadWindowErr = -9062; + +const int kBig5_BasicVariant = 0; + +const int kBig5_DOSVariant = 3; + +const int kBig5_ETenVariant = 2; + +const int kBig5_StandardVariant = 1; + +@Deprecated('Deprecated') +const int kBlessedBusErrorBait = 1760651505; + +const int kBlessedFolder = 1651274598; + +@Deprecated('Deprecated') +const int kBootTimeStartupItemsFolderType = 1701671034; + +const int kBoxAnnotationSelector = 1; + +const int kBridgeSoftwareRunningCantSleep = -13038; + +const int kBurningIcon = 1651864174; + +const int kBusyErr = -9074; + +const int kByCommentView = 6; + +const int kByDateView = 3; + +const int kByIconView = 1; + +const int kByKindView = 5; + +const int kByLabelView = 7; + +const int kByNameView = 2; + +const int kBySizeView = 4; + +const int kBySmallIcon = 0; + +const int kByVersionView = 8; + +@Deprecated('Deprecated') +const int kCCRegisterCBit = 16; + +@Deprecated('Deprecated') +const int kCCRegisterNBit = 19; + +@Deprecated('Deprecated') +const int kCCRegisterVBit = 17; + +@Deprecated('Deprecated') +const int kCCRegisterXBit = 20; + +@Deprecated('Deprecated') +const int kCCRegisterZBit = 18; + +const int kCFBundleExecutableArchitectureARM64 = 16777228; + +const int kCFBundleExecutableArchitectureI386 = 7; + +const int kCFBundleExecutableArchitecturePPC = 18; + +const int kCFBundleExecutableArchitecturePPC64 = 16777234; + +const int kCFBundleExecutableArchitectureX86_64 = 16777223; + +const int kCFCalendarComponentsWrap = 1; + +const int kCFFileDescriptorReadCallBack = 1; + +const int kCFFileDescriptorWriteCallBack = 2; + +@Deprecated('Deprecated') +const int kCFM68kRTA = 16; + +const int kCFMessagePortBecameInvalidError = -5; + +const int kCFMessagePortIsInvalid = -3; + +const int kCFMessagePortReceiveTimeout = -2; + +const int kCFMessagePortSendTimeout = -1; + +const int kCFMessagePortSuccess = 0; + +const int kCFMessagePortTransportError = -4; + +const int kCFNotFound = -1; + +const int kCFNotificationDeliverImmediately = 1; + +const int kCFNotificationPostToAllSessions = 2; + +const int kCFPropertyListReadCorruptError = 3840; + +const int kCFPropertyListReadStreamError = 3842; + +const int kCFPropertyListReadUnknownVersionError = 3841; + +const int kCFPropertyListWriteStreamError = 3851; + +const int kCFSocketAutomaticallyReenableAcceptCallBack = 2; + +const int kCFSocketAutomaticallyReenableDataCallBack = 3; + +const int kCFSocketAutomaticallyReenableReadCallBack = 1; + +const int kCFSocketAutomaticallyReenableWriteCallBack = 8; + +const int kCFSocketCloseOnInvalidate = 128; + +const int kCFSocketLeaveErrors = 64; + +const int kCFStreamErrorSOCKS4IdConflict = 93; + +const int kCFStreamErrorSOCKS4IdentdFailed = 92; + +const int kCFStreamErrorSOCKS4RequestFailed = 91; + +const int kCFStreamErrorSOCKS4SubDomainResponse = 2; + +const int kCFStreamErrorSOCKS5BadResponseAddr = 1; + +const int kCFStreamErrorSOCKS5BadState = 2; + +const int kCFStreamErrorSOCKS5SubDomainMethod = 4; + +const int kCFStreamErrorSOCKS5SubDomainResponse = 5; + +const int kCFStreamErrorSOCKS5SubDomainUserPass = 3; + +const int kCFStreamErrorSOCKSSubDomainNone = 0; + +const int kCFStreamErrorSOCKSSubDomainVersionCode = 1; + +const int kCFStreamErrorSOCKSUnknownClientVersion = 3; + +const int kCFStringTokenizerAttributeLanguage = 131072; + +const int kCFStringTokenizerAttributeLatinTranscription = 65536; + +const int kCFStringTokenizerUnitLineBreak = 3; + +const int kCFStringTokenizerUnitParagraph = 2; + +const int kCFStringTokenizerUnitSentence = 1; + +const int kCFStringTokenizerUnitWord = 0; + +const int kCFStringTokenizerUnitWordBoundary = 4; + +const int kCFUserNotificationAlternateResponse = 1; + +const int kCFUserNotificationCancelResponse = 3; + +const int kCFUserNotificationCautionAlertLevel = 2; + +const int kCFUserNotificationDefaultResponse = 0; + +const int kCFUserNotificationNoDefaultButtonFlag = 32; + +const int kCFUserNotificationNoteAlertLevel = 1; + +const int kCFUserNotificationOtherResponse = 2; + +const int kCFUserNotificationPlainAlertLevel = 3; + +const int kCFUserNotificationStopAlertLevel = 0; + +const int kCFUserNotificationUseRadioButtonsFlag = 64; + +const int kCFXMLNodeCurrentVersion = 1; + +const int kCGBitmapByteOrder16Host = 4096; + +const int kCGBitmapByteOrder32Host = 8192; + +const int kCGFontIndexInvalid = 65535; + +const int kCGFontIndexMax = 65534; + +const int kCGGlyphMax = 65534; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRadeon8500ID = 136704; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRadeon9700ID = 137216; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRadeonID = 135680; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRadeonX1000ID = 137472; + +const int kCGLRendererATIRadeonX2000ID = 137728; + +const int kCGLRendererATIRadeonX3000ID = 137984; + +const int kCGLRendererATIRadeonX4000ID = 138240; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRage128ID = 135168; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererATIRageProID = 136192; + +const int kCGLRendererAppleSWID = 132608; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererGeForce2MXID = 139264; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererGeForce3ID = 139776; + +const int kCGLRendererGeForce8xxxID = 140800; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererGeForceFXID = 140288; + +const int kCGLRendererGeForceID = 141056; + +const int kCGLRendererGenericFloatID = 132096; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererGenericID = 131584; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererIntel900ID = 147456; + +const int kCGLRendererIntelHD4000ID = 148480; + +const int kCGLRendererIntelHD5000ID = 148736; + +const int kCGLRendererIntelHDID = 148224; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererIntelX3100ID = 147968; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererMesa3DFXID = 262144; + +@Deprecated( + 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', +) +const int kCGLRendererVTBladeXP2ID = 143360; + +const int kCJKItalicRomanOffSelector = 3; + +const int kCJKItalicRomanOnSelector = 2; + +const int kCJKItalicRomanSelector = 1; + +const int kCJKRomanSpacingType = 103; + +const int kCJKSymbolAltFiveSelector = 5; + +const int kCJKSymbolAltFourSelector = 4; + +const int kCJKSymbolAltOneSelector = 1; + +const int kCJKSymbolAltThreeSelector = 3; + +const int kCJKSymbolAltTwoSelector = 2; + +const int kCJKSymbolAlternativesType = 29; + +const int kCJKVerticalRomanCenteredSelector = 0; + +const int kCJKVerticalRomanHBaselineSelector = 1; + +const int kCJKVerticalRomanPlacementType = 31; + +const int kCMAudioCodecType_AAC_AudibleProtected = 1633771875; + +const int kCMAudioCodecType_AAC_LCProtected = 1885430115; + +const int kCMAudioFormatDescriptionMask_All = 15; + +const int kCMAudioFormatDescriptionMask_ChannelLayout = 4; + +const int kCMAudioFormatDescriptionMask_Extensions = 8; + +const int kCMAudioFormatDescriptionMask_MagicCookie = 2; + +const int kCMAudioFormatDescriptionMask_StreamBasicDescription = 1; + +const int kCMClosedCaptionFormatType_ATSC = 1635017571; + +const int kCMClosedCaptionFormatType_CEA608 = 1664495672; + +const int kCMClosedCaptionFormatType_CEA708 = 1664561208; + +const int kCMFormatDescriptionError_AllocationFailed = -12711; + +const int kCMFormatDescriptionError_InvalidParameter = -12710; + +const int kCMFormatDescriptionError_ValueNotAvailable = -12718; + +const int kCMMPEG2VideoProfile_HDV_1080i50 = 1751414323; + +const int kCMMPEG2VideoProfile_HDV_1080i60 = 1751414322; + +const int kCMMPEG2VideoProfile_HDV_1080p24 = 1751414326; + +const int kCMMPEG2VideoProfile_HDV_1080p25 = 1751414327; + +const int kCMMPEG2VideoProfile_HDV_1080p30 = 1751414328; + +const int kCMMPEG2VideoProfile_HDV_720p24 = 1751414324; + +const int kCMMPEG2VideoProfile_HDV_720p25 = 1751414325; + +const int kCMMPEG2VideoProfile_HDV_720p30 = 1751414321; + +const int kCMMPEG2VideoProfile_HDV_720p50 = 1751414369; + +const int kCMMPEG2VideoProfile_HDV_720p60 = 1751414329; + +const int kCMMPEG2VideoProfile_XDCAM_EX_1080i50_VBR35 = 2019849827; + +const int kCMMPEG2VideoProfile_XDCAM_EX_1080i60_VBR35 = 2019849826; + +const int kCMMPEG2VideoProfile_XDCAM_EX_1080p24_VBR35 = 2019849828; + +const int kCMMPEG2VideoProfile_XDCAM_EX_1080p25_VBR35 = 2019849829; + +const int kCMMPEG2VideoProfile_XDCAM_EX_1080p30_VBR35 = 2019849830; + +const int kCMMPEG2VideoProfile_XDCAM_EX_720p24_VBR35 = 2019849780; + +const int kCMMPEG2VideoProfile_XDCAM_EX_720p25_VBR35 = 2019849781; + +const int kCMMPEG2VideoProfile_XDCAM_EX_720p30_VBR35 = 2019849777; + +const int kCMMPEG2VideoProfile_XDCAM_EX_720p50_VBR35 = 2019849825; + +const int kCMMPEG2VideoProfile_XDCAM_EX_720p60_VBR35 = 2019849785; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_1080i50_CBR50 = 2019833187; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_1080i60_CBR50 = 2019833186; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p24_CBR50 = 2019833188; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p25_CBR50 = 2019833189; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p30_CBR50 = 2019833190; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_540p = 2019846194; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_720p24_CBR50 = 2019833140; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_720p25_CBR50 = 2019833141; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_720p30_CBR50 = 2019833137; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_720p50_CBR50 = 2019833185; + +const int kCMMPEG2VideoProfile_XDCAM_HD422_720p60_CBR50 = 2019833145; + +const int kCMMPEG2VideoProfile_XDCAM_HD_1080i50_VBR35 = 2019849779; + +const int kCMMPEG2VideoProfile_XDCAM_HD_1080i60_VBR35 = 2019849778; + +const int kCMMPEG2VideoProfile_XDCAM_HD_1080p24_VBR35 = 2019849782; + +const int kCMMPEG2VideoProfile_XDCAM_HD_1080p25_VBR35 = 2019849783; + +const int kCMMPEG2VideoProfile_XDCAM_HD_1080p30_VBR35 = 2019849784; + +const int kCMMPEG2VideoProfile_XDCAM_HD_540p = 2019846244; + +const int kCMMPEG2VideoProfile_XF = 2019981873; + +const int kCMMediaType_Audio = 1936684398; + +const int kCMMediaType_AuxiliaryPicture = 1635088502; + +const int kCMMediaType_ClosedCaption = 1668047728; + +const int kCMMediaType_Metadata = 1835365473; + +const int kCMMediaType_Muxed = 1836415096; + +const int kCMMediaType_Subtitle = 1935832172; + +const int kCMMediaType_TaggedBufferGroup = 1952606066; + +const int kCMMediaType_Text = 1952807028; + +const int kCMMediaType_TimeCode = 1953325924; + +const int kCMMediaType_Video = 1986618469; + +const int kCMMetadataFormatType_Boxed = 1835360888; + +const int kCMMetadataFormatType_EMSG = 1701671783; + +const int kCMMetadataFormatType_ICY = 1768126752; + +const int kCMMetadataFormatType_ID3 = 1768174368; + +const int kCMMuxedStreamType_DV = 1685463072; + +const int kCMMuxedStreamType_EmbeddedDeviceScreenRecording = 1769173536; + +const int kCMMuxedStreamType_MPEG1System = 1836069235; + +const int kCMMuxedStreamType_MPEG2Program = 1836069488; + +const int kCMMuxedStreamType_MPEG2Transport = 1836069492; + +const int kCMPersistentTrackID_Invalid = 0; + +const int kCMPixelFormat_16BE555 = 16; + +const int kCMPixelFormat_16BE565 = 1110783541; + +const int kCMPixelFormat_16LE555 = 1278555445; + +const int kCMPixelFormat_16LE5551 = 892679473; + +const int kCMPixelFormat_16LE565 = 1278555701; + +const int kCMPixelFormat_24RGB = 24; + +const int kCMPixelFormat_32ARGB = 32; + +const int kCMPixelFormat_32BGRA = 1111970369; + +const int kCMPixelFormat_422YpCbCr10 = 1983000880; + +const int kCMPixelFormat_422YpCbCr16 = 1983000886; + +const int kCMPixelFormat_422YpCbCr8 = 846624121; + +const int kCMPixelFormat_422YpCbCr8_yuvs = 2037741171; + +const int kCMPixelFormat_4444YpCbCrA8 = 1983131704; + +const int kCMPixelFormat_444YpCbCr10 = 1983131952; + +const int kCMPixelFormat_444YpCbCr8 = 1983066168; + +const int kCMPixelFormat_8IndexedGray_WhiteIsZero = 40; + +const int kCMSubtitleFormatType_3GText = 1954034535; + +const int kCMSubtitleFormatType_WebVTT = 2004251764; + +const int kCMTaggedBufferGroupFormatType_TaggedBufferGroup = 1952606066; + +const int kCMTextDisplayFlag_allSubtitlesForced = -2147483648; + +const int kCMTextDisplayFlag_continuousKaraoke = 2048; + +const int kCMTextDisplayFlag_fillTextRegion = 262144; + +const int kCMTextDisplayFlag_forcedSubtitlesPresent = 1073741824; + +const int kCMTextDisplayFlag_obeySubtitleFormatting = 536870912; + +const int kCMTextDisplayFlag_scrollDirectionMask = 384; + +const int kCMTextDisplayFlag_scrollDirection_bottomToTop = 0; + +const int kCMTextDisplayFlag_scrollDirection_leftToRight = 384; + +const int kCMTextDisplayFlag_scrollDirection_rightToLeft = 128; + +const int kCMTextDisplayFlag_scrollDirection_topToBottom = 256; + +const int kCMTextDisplayFlag_scrollIn = 32; + +const int kCMTextDisplayFlag_scrollOut = 64; + +const int kCMTextDisplayFlag_writeTextVertically = 131072; + +const int kCMTextFormatType_3GText = 1954034535; + +const int kCMTextFormatType_QTText = 1952807028; + +const int kCMTextJustification_bottom_right = -1; + +const int kCMTextJustification_centered = 1; + +const int kCMTextJustification_left_top = 0; + +const int kCMTimeCodeFlag_24HourMax = 2; + +const int kCMTimeCodeFlag_DropFrame = 1; + +const int kCMTimeCodeFlag_NegTimesOK = 4; + +const int kCMTimeCodeFormatType_Counter32 = 1668166450; + +const int kCMTimeCodeFormatType_Counter64 = 1668167220; + +const int kCMTimeCodeFormatType_TimeCode32 = 1953325924; + +const int kCMTimeCodeFormatType_TimeCode64 = 1952658996; + +const int kCMVideoCodecType_422YpCbCr8 = 846624121; + +const int kCMVideoCodecType_AV1 = 1635135537; + +const int kCMVideoCodecType_Animation = 1919706400; + +const int kCMVideoCodecType_AppleProRes422 = 1634755438; + +const int kCMVideoCodecType_AppleProRes422HQ = 1634755432; + +const int kCMVideoCodecType_AppleProRes422LT = 1634755443; + +const int kCMVideoCodecType_AppleProRes422Proxy = 1634755439; + +const int kCMVideoCodecType_AppleProRes4444 = 1634743400; + +const int kCMVideoCodecType_AppleProRes4444XQ = 1634743416; + +const int kCMVideoCodecType_AppleProResRAW = 1634759278; + +const int kCMVideoCodecType_AppleProResRAWHQ = 1634759272; + +const int kCMVideoCodecType_Cinepak = 1668704612; + +const int kCMVideoCodecType_DVCNTSC = 1685480224; + +const int kCMVideoCodecType_DVCPAL = 1685480304; + +const int kCMVideoCodecType_DVCPROHD1080i50 = 1685481525; + +const int kCMVideoCodecType_DVCPROHD1080i60 = 1685481526; + +const int kCMVideoCodecType_DVCPROHD1080p25 = 1685481522; + +const int kCMVideoCodecType_DVCPROHD1080p30 = 1685481523; + +const int kCMVideoCodecType_DVCPROHD720p50 = 1685481585; + +const int kCMVideoCodecType_DVCPROHD720p60 = 1685481584; + +const int kCMVideoCodecType_DVCPro50NTSC = 1685468526; + +const int kCMVideoCodecType_DVCPro50PAL = 1685468528; + +const int kCMVideoCodecType_DVCProPAL = 1685483632; + +const int kCMVideoCodecType_DepthHEVC = 1684369512; + +const int kCMVideoCodecType_DisparityHEVC = 1684632424; + +const int kCMVideoCodecType_DolbyVisionHEVC = 1685481521; + +const int kCMVideoCodecType_H263 = 1748121139; + +const int kCMVideoCodecType_H264 = 1635148593; + +const int kCMVideoCodecType_HEVC = 1752589105; + +const int kCMVideoCodecType_HEVCWithAlpha = 1836415073; + +const int kCMVideoCodecType_JPEG = 1785750887; + +const int kCMVideoCodecType_JPEG_OpenDML = 1684890161; + +const int kCMVideoCodecType_JPEG_XL = 1786276963; + +const int kCMVideoCodecType_MPEG1Video = 1836069238; + +const int kCMVideoCodecType_MPEG2Video = 1836069494; + +const int kCMVideoCodecType_MPEG4Video = 1836070006; + +const int kCMVideoCodecType_SorensonVideo = 1398165809; + +const int kCMVideoCodecType_SorensonVideo3 = 1398165811; + +const int kCMVideoCodecType_VP9 = 1987063865; + +@Deprecated('Deprecated') +const int kCSAcceptAllComponentsMode = 0; + +@Deprecated('Deprecated') +const int kCSAcceptThreadSafeComponentsOnlyMode = 1; + +const int kCSDiskSpaceRecoveryOptionNoUI = 1; + +const int kCSIdentityAuthorityNotAccessibleErr = -2; + +const int kCSIdentityClassGroup = 2; + +const int kCSIdentityClassUser = 1; + +const int kCSIdentityCommitCompleted = 1; + +const int kCSIdentityDeletedErr = -4; + +const int kCSIdentityDuplicateFullNameErr = -6; + +const int kCSIdentityDuplicatePosixNameErr = -8; + +const int kCSIdentityFlagHidden = 1; + +const int kCSIdentityFlagNone = 0; + +const int kCSIdentityInvalidFullNameErr = -5; + +const int kCSIdentityInvalidPosixNameErr = -7; + +const int kCSIdentityPermissionErr = -3; + +const int kCSIdentityQueryEventErrorOccurred = 5; + +const int kCSIdentityQueryEventResultsAdded = 2; + +const int kCSIdentityQueryEventResultsChanged = 3; + +const int kCSIdentityQueryEventResultsRemoved = 4; + +const int kCSIdentityQueryEventSearchPhaseFinished = 1; + +const int kCSIdentityQueryGenerateUpdateEvents = 1; + +const int kCSIdentityQueryIncludeHiddenIdentities = 2; + +const int kCSIdentityQueryStringBeginsWith = 2; + +const int kCSIdentityQueryStringEquals = 1; + +const int kCSIdentityUnknownAuthorityErr = -1; + +@Deprecated('Deprecated') +const int kCStackBased = 1; + +const int kCTFontClassMaskShift = 28; + +const int kCTFontPriorityComputer = 30000; + +const int kCTFontPriorityDynamic = 50000; + +const int kCTFontPriorityNetwork = 20000; + +const int kCTFontPriorityProcess = 60000; + +const int kCTFontPrioritySystem = 10000; + +const int kCTFontPriorityUser = 40000; + +const int kCTFontTableAcnt = 1633906292; + +const int kCTFontTableAnkr = 1634626418; + +const int kCTFontTableAvar = 1635148146; + +const int kCTFontTableBASE = 1111577413; + +const int kCTFontTableBdat = 1650745716; + +const int kCTFontTableBhed = 1651008868; + +const int kCTFontTableBloc = 1651273571; + +const int kCTFontTableBsln = 1651731566; + +const int kCTFontTableCBDT = 1128416340; + +const int kCTFontTableCBLC = 1128418371; + +const int kCTFontTableCFF = 1128678944; + +const int kCTFontTableCFF2 = 1128678962; + +const int kCTFontTableCOLR = 1129270354; + +const int kCTFontTableCPAL = 1129333068; + +const int kCTFontTableCidg = 1667851367; + +const int kCTFontTableCmap = 1668112752; + +const int kCTFontTableCvar = 1668702578; + +const int kCTFontTableCvt = 1668707360; + +const int kCTFontTableDSIG = 1146308935; + +const int kCTFontTableEBDT = 1161970772; + +const int kCTFontTableEBLC = 1161972803; + +const int kCTFontTableEBSC = 1161974595; + +const int kCTFontTableFdsc = 1717859171; + +const int kCTFontTableFeat = 1717920116; + +const int kCTFontTableFmtx = 1718449272; + +const int kCTFontTableFond = 1718578788; + +const int kCTFontTableFpgm = 1718642541; + +const int kCTFontTableFvar = 1719034226; + +const int kCTFontTableGDEF = 1195656518; + +const int kCTFontTableGPOS = 1196445523; + +const int kCTFontTableGSUB = 1196643650; + +const int kCTFontTableGasp = 1734439792; + +const int kCTFontTableGlyf = 1735162214; + +const int kCTFontTableGvar = 1735811442; + +const int kCTFontTableHVAR = 1213612370; + +const int kCTFontTableHdmx = 1751412088; + +const int kCTFontTableHead = 1751474532; + +const int kCTFontTableHhea = 1751672161; + +const int kCTFontTableHmtx = 1752003704; + +const int kCTFontTableHsty = 1752396921; + +const int kCTFontTableJSTF = 1246975046; + +const int kCTFontTableJust = 1786082164; + +const int kCTFontTableKern = 1801810542; + +const int kCTFontTableKerx = 1801810552; + +const int kCTFontTableLTSH = 1280594760; + +const int kCTFontTableLcar = 1818452338; + +const int kCTFontTableLoca = 1819239265; + +const int kCTFontTableLtag = 1819566439; + +const int kCTFontTableMATH = 1296127048; + +const int kCTFontTableMERG = 1296388679; + +const int kCTFontTableMVAR = 1297498450; + +const int kCTFontTableMaxp = 1835104368; + +const int kCTFontTableMeta = 1835365473; + +const int kCTFontTableMort = 1836020340; + +const int kCTFontTableMorx = 1836020344; + +const int kCTFontTableName = 1851878757; + +const int kCTFontTableOS2 = 1330851634; + +const int kCTFontTableOpbd = 1869636196; + +const int kCTFontTablePCLT = 1346587732; + +const int kCTFontTablePost = 1886352244; + +const int kCTFontTablePrep = 1886545264; + +const int kCTFontTableProp = 1886547824; + +const int kCTFontTableSTAT = 1398030676; + +const int kCTFontTableSVG = 1398163232; + +const int kCTFontTableSbit = 1935829364; + +const int kCTFontTableSbix = 1935829368; + +const int kCTFontTableTrak = 1953653099; + +const int kCTFontTableVDMX = 1447316824; + +const int kCTFontTableVORG = 1448038983; + +const int kCTFontTableVVAR = 1448493394; + +const int kCTFontTableVhea = 1986553185; + +const int kCTFontTableVmtx = 1986884728; + +const int kCTFontTableXref = 2020762982; + +const int kCTFontTableZapf = 1516335206; + +const int kCTRunDelegateCurrentVersion = 1; + +const int kCTRunDelegateVersion1 = 1; + +const int kCTWritingDirectionEmbedding = 0; + +const int kCTWritingDirectionOverride = 2; + +const int kCUPSPPDDomain = 6; + +const int kCVPixelFormatType_128RGBAFloat = 1380410945; + +const int kCVPixelFormatType_14Bayer_BGGR = 1650943796; + +const int kCVPixelFormatType_14Bayer_GBRG = 1734505012; + +const int kCVPixelFormatType_14Bayer_GRBG = 1735549492; + +const int kCVPixelFormatType_14Bayer_RGGB = 1919379252; + +const int kCVPixelFormatType_16BE555 = 16; + +const int kCVPixelFormatType_16BE565 = 1110783541; + +const int kCVPixelFormatType_16Gray = 1647392359; + +const int kCVPixelFormatType_16LE555 = 1278555445; + +const int kCVPixelFormatType_16LE5551 = 892679473; + +const int kCVPixelFormatType_16LE565 = 1278555701; + +const int kCVPixelFormatType_16VersatileBayer = 1651519798; + +const int kCVPixelFormatType_1IndexedGray_WhiteIsZero = 33; + +const int kCVPixelFormatType_1Monochrome = 1; + +const int kCVPixelFormatType_24BGR = 842285639; + +const int kCVPixelFormatType_24RGB = 24; + +const int kCVPixelFormatType_2Indexed = 2; + +const int kCVPixelFormatType_2IndexedGray_WhiteIsZero = 34; + +const int kCVPixelFormatType_30RGB = 1378955371; + +const int kCVPixelFormatType_30RGBLEPackedWideGamut = 1999843442; + +const int kCVPixelFormatType_30RGBLE_8A_BiPlanar = 1647534392; + +const int kCVPixelFormatType_30RGB_r210 = 1915892016; + +const int kCVPixelFormatType_32ABGR = 1094862674; + +const int kCVPixelFormatType_32ARGB = 32; + +const int kCVPixelFormatType_32AlphaGray = 1647522401; + +const int kCVPixelFormatType_32BGRA = 1111970369; + +const int kCVPixelFormatType_32RGBA = 1380401729; + +const int kCVPixelFormatType_40ARGBLEWideGamut = 1999908961; + +const int kCVPixelFormatType_40ARGBLEWideGamutPremultiplied = 1999908973; + +const int kCVPixelFormatType_420YpCbCr10BiPlanarFullRange = 2019963440; + +const int kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = 2016686640; + +const int kCVPixelFormatType_420YpCbCr8BiPlanarFullRange = 875704422; + +const int kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = 875704438; + +const int kCVPixelFormatType_420YpCbCr8Planar = 2033463856; + +const int kCVPixelFormatType_420YpCbCr8PlanarFullRange = 1714696752; + +const int kCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar = 1982882104; + +const int kCVPixelFormatType_422YpCbCr10 = 1983000880; + +const int kCVPixelFormatType_422YpCbCr10BiPlanarFullRange = 2019963442; + +const int kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange = 2016686642; + +const int kCVPixelFormatType_422YpCbCr16 = 1983000886; + +const int kCVPixelFormatType_422YpCbCr16BiPlanarVideoRange = 1937125938; + +const int kCVPixelFormatType_422YpCbCr8 = 846624121; + +const int kCVPixelFormatType_422YpCbCr8BiPlanarFullRange = 875704934; + +const int kCVPixelFormatType_422YpCbCr8BiPlanarVideoRange = 875704950; + +const int kCVPixelFormatType_422YpCbCr8FullRange = 2037741158; + +const int kCVPixelFormatType_422YpCbCr8_yuvs = 2037741171; + +const int kCVPixelFormatType_422YpCbCr_4A_8BiPlanar = 1630697081; + +const int kCVPixelFormatType_4444AYpCbCr16 = 2033463606; + +const int kCVPixelFormatType_4444AYpCbCr8 = 2033463352; + +const int kCVPixelFormatType_4444AYpCbCrFloat = 1916036716; + +const int kCVPixelFormatType_4444YpCbCrA8 = 1983131704; + +const int kCVPixelFormatType_4444YpCbCrA8R = 1916022840; + +const int kCVPixelFormatType_444YpCbCr10 = 1983131952; + +const int kCVPixelFormatType_444YpCbCr10BiPlanarFullRange = 2019963956; + +const int kCVPixelFormatType_444YpCbCr10BiPlanarVideoRange = 2016687156; + +const int kCVPixelFormatType_444YpCbCr16BiPlanarVideoRange = 1937126452; + +const int kCVPixelFormatType_444YpCbCr16VideoRange_16A_TriPlanar = 1932812659; + +const int kCVPixelFormatType_444YpCbCr8 = 1983066168; + +const int kCVPixelFormatType_444YpCbCr8BiPlanarFullRange = 875836518; + +const int kCVPixelFormatType_444YpCbCr8BiPlanarVideoRange = 875836534; + +const int kCVPixelFormatType_48RGB = 1647589490; + +const int kCVPixelFormatType_4Indexed = 4; + +const int kCVPixelFormatType_4IndexedGray_WhiteIsZero = 36; + +const int kCVPixelFormatType_64ARGB = 1647719521; + +const int kCVPixelFormatType_64RGBAHalf = 1380411457; + +const int kCVPixelFormatType_64RGBALE = 1815491698; + +const int kCVPixelFormatType_64RGBA_DownscaledProResRAW = 1651521076; + +const int kCVPixelFormatType_8Indexed = 8; + +const int kCVPixelFormatType_8IndexedGray_WhiteIsZero = 40; + +const int kCVPixelFormatType_96VersatileBayerPacked12 = 1651798066; + +const int kCVPixelFormatType_ARGB2101010LEPacked = 1815162994; + +const int kCVPixelFormatType_DepthFloat16 = 1751410032; + +const int kCVPixelFormatType_DepthFloat32 = 1717855600; + +const int kCVPixelFormatType_DisparityFloat16 = 1751411059; + +const int kCVPixelFormatType_DisparityFloat32 = 1717856627; + +const int kCVPixelFormatType_Lossless_30RGBLEPackedWideGamut = 645346162; + +const int kCVPixelFormatType_Lossless_30RGBLE_8A_BiPlanar = 643969848; + +const int kCVPixelFormatType_Lossless_32BGRA = 641877825; + +const int kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarFullRange = + 645424688; + +const int kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarVideoRange = + 645428784; + +const int kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange = 641230384; + +const int kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange = 641234480; + +const int kCVPixelFormatType_Lossless_422YpCbCr10PackedBiPlanarVideoRange = + 645428786; + +const int kCVPixelFormatType_Lossless_64RGBAHalf = 642934849; + +const int kCVPixelFormatType_Lossy_32BGRA = 759318337; + +const int kCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange = + 762869296; + +const int kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarFullRange = 758670896; + +const int kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarVideoRange = 758674992; + +const int kCVPixelFormatType_Lossy_422YpCbCr10PackedBiPlanarVideoRange = + 762869298; + +const int kCVPixelFormatType_OneComponent10 = 1278226736; + +const int kCVPixelFormatType_OneComponent12 = 1278226738; + +const int kCVPixelFormatType_OneComponent16 = 1278226742; + +const int kCVPixelFormatType_OneComponent16Half = 1278226536; + +const int kCVPixelFormatType_OneComponent32Float = 1278226534; + +const int kCVPixelFormatType_OneComponent8 = 1278226488; + +const int kCVPixelFormatType_TwoComponent16 = 843264310; + +const int kCVPixelFormatType_TwoComponent16Half = 843264104; + +const int kCVPixelFormatType_TwoComponent32Float = 843264102; + +const int kCVPixelFormatType_TwoComponent8 = 843264056; + +const int kCVReturnAllocationFailed = -6662; + +const int kCVReturnDisplayLinkAlreadyRunning = -6671; + +const int kCVReturnDisplayLinkCallbacksNotSet = -6673; + +const int kCVReturnDisplayLinkNotRunning = -6672; + +const int kCVReturnError = -6660; + +const int kCVReturnFirst = -6660; + +const int kCVReturnInvalidArgument = -6661; + +const int kCVReturnInvalidDisplay = -6670; + +const int kCVReturnInvalidPixelBufferAttributes = -6682; + +const int kCVReturnInvalidPixelFormat = -6680; + +const int kCVReturnInvalidPoolAttributes = -6691; + +const int kCVReturnInvalidSize = -6681; + +const int kCVReturnLast = -6699; + +const int kCVReturnPixelBufferNotMetalCompatible = -6684; + +const int kCVReturnPixelBufferNotOpenGLCompatible = -6683; + +const int kCVReturnPoolAllocationFailed = -6690; + +const int kCVReturnRetry = -6692; + +const int kCVReturnSuccess = 0; + +const int kCVReturnUnsupported = -6663; + +const int kCVReturnWouldExceedAllocationThreshold = -6689; + +const int kCVVersatileBayer_BayerPattern_BGGR = 3; + +const int kCVVersatileBayer_BayerPattern_GBRG = 2; + +const int kCVVersatileBayer_BayerPattern_GRBG = 1; + +const int kCVVersatileBayer_BayerPattern_RGGB = 0; + +@Deprecated('Deprecated') +const int kCachedDataFolderType = 1667326824; + +@Deprecated('Deprecated') +const int kCallingConventionMask = 15; + +@Deprecated('Deprecated') +const int kCallingConventionPhase = 0; + +@Deprecated('Deprecated') +const int kCallingConventionWidth = 4; + +const int kCanonicalCompositionOffSelector = 1; + +const int kCanonicalCompositionOnSelector = 0; + +const int kCantConfigureCardErr = -9087; + +const int kCantReportProcessorTemperatureErr = -13013; + +@Deprecated('Deprecated') +const int kCarbonLibraryFolderType = 1667330658; + +const int kCardBusCardErr = -9085; + +const int kCardPowerOffErr = -9107; + +const int kCaseSensitiveLayoutOffSelector = 1; + +const int kCaseSensitiveLayoutOnSelector = 0; + +const int kCaseSensitiveLayoutType = 33; + +const int kCaseSensitiveSpacingOffSelector = 3; + +const int kCaseSensitiveSpacingOnSelector = 2; + +const int kCertSearchAny = 0; + +const int kCertSearchDecryptAllowed = 64; + +const int kCertSearchDecryptDisallowed = 128; + +const int kCertSearchDecryptIgnored = 0; + +const int kCertSearchDecryptMask = 192; + +const int kCertSearchEncryptAllowed = 16; + +const int kCertSearchEncryptDisallowed = 32; + +const int kCertSearchEncryptIgnored = 0; + +const int kCertSearchEncryptMask = 48; + +const int kCertSearchPrivKeyRequired = 4096; + +const int kCertSearchShift = 0; + +const int kCertSearchSigningAllowed = 1; + +const int kCertSearchSigningDisallowed = 2; + +const int kCertSearchSigningIgnored = 0; + +const int kCertSearchSigningMask = 3; + +const int kCertSearchUnwrapAllowed = 1024; + +const int kCertSearchUnwrapDisallowed = 2048; + +const int kCertSearchUnwrapIgnored = 0; + +const int kCertSearchUnwrapMask = 3072; + +const int kCertSearchVerifyAllowed = 4; + +const int kCertSearchVerifyDisallowed = 8; + +const int kCertSearchVerifyIgnored = 0; + +const int kCertSearchVerifyMask = 12; + +const int kCertSearchWrapAllowed = 256; + +const int kCertSearchWrapDisallowed = 512; + +const int kCertSearchWrapIgnored = 0; + +const int kCertSearchWrapMask = 768; + +const int kCertUsageAllAdd = 2147483392; + +const int kCertUsageDecryptAdd = 16384; + +const int kCertUsageDecryptAskAndAdd = 32768; + +const int kCertUsageEncryptAdd = 4096; + +const int kCertUsageEncryptAskAndAdd = 8192; + +const int kCertUsageKeyExchAdd = 65536; + +const int kCertUsageKeyExchAskAndAdd = 131072; + +const int kCertUsageRootAdd = 262144; + +const int kCertUsageRootAskAndAdd = 524288; + +const int kCertUsageSSLAdd = 1048576; + +const int kCertUsageSSLAskAndAdd = 2097152; + +const int kCertUsageShift = 8; + +const int kCertUsageSigningAdd = 256; + +const int kCertUsageSigningAskAndAdd = 512; + +const int kCertUsageVerifyAdd = 1024; + +const int kCertUsageVerifyAskAndAdd = 2048; + +const int kCertificateKCItemClass = 1667592820; + +const int kCharacterAlternativesType = 17; + +const int kCharacterShapeType = 20; + +@Deprecated('Deprecated') +const int kChewableItemsFolderType = 1718382196; + +const int kCircleAnnotationSelector = 3; + +const int kClassKCItemAttr = 1668047219; + +@Deprecated('Deprecated') +const int kClassicDesktopFolderType = 1935962987; + +@Deprecated('Deprecated') +const int kClassicDomain = -32762; + +@Deprecated('Deprecated') +const int kClassicPreferencesFolderType = 1668313702; + +const int kClientRequestDenied = -9102; + +const int kClipboardIcon = 1129072976; + +const int kClippingCreator = 1685217639; + +const int kClippingPictureType = 1668051056; + +const int kClippingPictureTypeIcon = 1668051056; + +const int kClippingSoundType = 1668051059; + +const int kClippingSoundTypeIcon = 1668051059; + +const int kClippingTextType = 1668051060; + +const int kClippingTextTypeIcon = 1668051060; + +const int kClippingUnknownType = 1668051061; + +const int kClippingUnknownTypeIcon = 1668051061; + +const int kCollateAttributesNotFoundErr = -29500; + +const int kCollateBufferTooSmall = -29506; + +const int kCollateInvalidChar = -29505; + +const int kCollateInvalidCollationRef = -29507; + +const int kCollateInvalidOptions = -29501; + +const int kCollateMissingUnicodeTableErr = -29502; + +const int kCollatePatternNotFoundErr = -29504; + +const int kCollateUnicodeConvertFailedErr = -29503; + +@Deprecated('Deprecated') +const int kCollectionAllAttributes = -1; + +@Deprecated('Deprecated') +const int kCollectionDefaultAttributes = 1073741824; + +@Deprecated('Deprecated') +const int kCollectionDontWantAttributes = 0; + +@Deprecated('Deprecated') +const int kCollectionDontWantData = 0; + +@Deprecated('Deprecated') +const int kCollectionDontWantId = 0; + +@Deprecated('Deprecated') +const int kCollectionDontWantIndex = 0; + +@Deprecated('Deprecated') +const int kCollectionDontWantSize = 0; + +@Deprecated('Deprecated') +const int kCollectionDontWantTag = 0; + +@Deprecated('Deprecated') +const int kCollectionLockBit = 31; + +@Deprecated('Deprecated') +const int kCollectionLockMask = -2147483648; + +@Deprecated('Deprecated') +const int kCollectionNoAttributes = 0; + +@Deprecated('Deprecated') +const int kCollectionPersistenceBit = 30; + +@Deprecated('Deprecated') +const int kCollectionPersistenceMask = 1073741824; + +@Deprecated('Deprecated') +const int kCollectionReserved0Bit = 16; + +@Deprecated('Deprecated') +const int kCollectionReserved0Mask = 65536; + +@Deprecated('Deprecated') +const int kCollectionReserved10Bit = 26; + +@Deprecated('Deprecated') +const int kCollectionReserved10Mask = 67108864; + +@Deprecated('Deprecated') +const int kCollectionReserved11Bit = 27; + +@Deprecated('Deprecated') +const int kCollectionReserved11Mask = 134217728; + +@Deprecated('Deprecated') +const int kCollectionReserved12Bit = 28; + +@Deprecated('Deprecated') +const int kCollectionReserved12Mask = 268435456; + +@Deprecated('Deprecated') +const int kCollectionReserved13Bit = 29; + +@Deprecated('Deprecated') +const int kCollectionReserved13Mask = 536870912; + +@Deprecated('Deprecated') +const int kCollectionReserved1Bit = 17; + +@Deprecated('Deprecated') +const int kCollectionReserved1Mask = 131072; + +@Deprecated('Deprecated') +const int kCollectionReserved2Bit = 18; + +@Deprecated('Deprecated') +const int kCollectionReserved2Mask = 262144; + +@Deprecated('Deprecated') +const int kCollectionReserved3Bit = 19; + +@Deprecated('Deprecated') +const int kCollectionReserved3Mask = 524288; + +@Deprecated('Deprecated') +const int kCollectionReserved4Bit = 20; + +@Deprecated('Deprecated') +const int kCollectionReserved4Mask = 1048576; + +@Deprecated('Deprecated') +const int kCollectionReserved5Bit = 21; + +@Deprecated('Deprecated') +const int kCollectionReserved5Mask = 2097152; + +@Deprecated('Deprecated') +const int kCollectionReserved6Bit = 22; + +@Deprecated('Deprecated') +const int kCollectionReserved6Mask = 4194304; + +@Deprecated('Deprecated') +const int kCollectionReserved7Bit = 23; + +@Deprecated('Deprecated') +const int kCollectionReserved7Mask = 8388608; + +@Deprecated('Deprecated') +const int kCollectionReserved8Bit = 24; + +@Deprecated('Deprecated') +const int kCollectionReserved8Mask = 16777216; + +@Deprecated('Deprecated') +const int kCollectionReserved9Bit = 25; + +@Deprecated('Deprecated') +const int kCollectionReserved9Mask = 33554432; + +@Deprecated('Deprecated') +const int kCollectionUser0Bit = 0; + +@Deprecated('Deprecated') +const int kCollectionUser0Mask = 1; + +@Deprecated('Deprecated') +const int kCollectionUser10Bit = 10; + +@Deprecated('Deprecated') +const int kCollectionUser10Mask = 1024; + +@Deprecated('Deprecated') +const int kCollectionUser11Bit = 11; + +@Deprecated('Deprecated') +const int kCollectionUser11Mask = 2048; + +@Deprecated('Deprecated') +const int kCollectionUser12Bit = 12; + +@Deprecated('Deprecated') +const int kCollectionUser12Mask = 4096; + +@Deprecated('Deprecated') +const int kCollectionUser13Bit = 13; + +@Deprecated('Deprecated') +const int kCollectionUser13Mask = 8192; + +@Deprecated('Deprecated') +const int kCollectionUser14Bit = 14; + +@Deprecated('Deprecated') +const int kCollectionUser14Mask = 16384; + +@Deprecated('Deprecated') +const int kCollectionUser15Bit = 15; + +@Deprecated('Deprecated') +const int kCollectionUser15Mask = 32768; + +@Deprecated('Deprecated') +const int kCollectionUser1Bit = 1; + +@Deprecated('Deprecated') +const int kCollectionUser1Mask = 2; + +@Deprecated('Deprecated') +const int kCollectionUser2Bit = 2; + +@Deprecated('Deprecated') +const int kCollectionUser2Mask = 4; + +@Deprecated('Deprecated') +const int kCollectionUser3Bit = 3; + +@Deprecated('Deprecated') +const int kCollectionUser3Mask = 8; + +@Deprecated('Deprecated') +const int kCollectionUser4Bit = 4; + +@Deprecated('Deprecated') +const int kCollectionUser4Mask = 16; + +@Deprecated('Deprecated') +const int kCollectionUser5Bit = 5; + +@Deprecated('Deprecated') +const int kCollectionUser5Mask = 32; + +@Deprecated('Deprecated') +const int kCollectionUser6Bit = 6; + +@Deprecated('Deprecated') +const int kCollectionUser6Mask = 64; + +@Deprecated('Deprecated') +const int kCollectionUser7Bit = 7; + +@Deprecated('Deprecated') +const int kCollectionUser7Mask = 128; + +@Deprecated('Deprecated') +const int kCollectionUser8Bit = 8; + +@Deprecated('Deprecated') +const int kCollectionUser8Mask = 256; + +@Deprecated('Deprecated') +const int kCollectionUser9Bit = 9; + +@Deprecated('Deprecated') +const int kCollectionUser9Mask = 512; + +@Deprecated('Deprecated') +const int kCollectionUserAttributes = 65535; + +const int kColor = 14; + +@Deprecated('Deprecated') +const int kColorPickersFolderType = 1668311922; + +const int kColorSyncAlphaInfoMask = 31; + +const int kColorSyncByteOrder16Big = 12288; + +const int kColorSyncByteOrder16Little = 4096; + +const int kColorSyncByteOrder32Big = 16384; + +const int kColorSyncByteOrder32Little = 8192; + +const int kColorSyncByteOrderDefault = 0; + +const int kColorSyncByteOrderMask = 28672; + +@Deprecated('Deprecated') +const int kColorSyncCMMFolderType = 1667460461; + +const int kColorSyncFolderIcon = 1886547814; + +@Deprecated('Deprecated') +const int kColorSyncFolderType = 1937337955; + +@Deprecated('Deprecated') +const int kColorSyncProfilesFolderType = 1886547814; + +@Deprecated('Deprecated') +const int kColorSyncScriptingFolderType = 1668506482; + +const int kCommentKCItemAttr = 1768123764; + +const int kCommonLigaturesOffSelector = 3; + +const int kCommonLigaturesOnSelector = 2; + +const int kCommonNameKCItemAttr = 1668161568; + +const int kCompatibilityCompositionOffSelector = 3; + +const int kCompatibilityCompositionOnSelector = 2; + +@Deprecated('Deprecated') +const int kComponentAliasResourceType = 1952999265; + +@Deprecated('Deprecated') +const int kComponentCanDoSelect = -3; + +@Deprecated('Deprecated') +const int kComponentCloseSelect = -2; + +@Deprecated('Deprecated') +const int kComponentDebugOption = 0; + +@Deprecated('Deprecated') +const int kComponentExecuteWiredActionSelect = -9; + +@Deprecated('Deprecated') +const int kComponentGetMPWorkFunctionSelect = -8; + +@Deprecated('Deprecated') +const int kComponentGetPublicResourceSelect = -10; + +@Deprecated('Deprecated') +const int kComponentOpenSelect = -1; + +@Deprecated('Deprecated') +const int kComponentRegisterSelect = -5; + +@Deprecated('Deprecated') +const int kComponentResourceType = 1953001063; + +@Deprecated('Deprecated') +const int kComponentTargetSelect = -6; + +@Deprecated('Deprecated') +const int kComponentUnregisterSelect = -7; + +@Deprecated('Deprecated') +const int kComponentVersionSelect = -4; + +@Deprecated('Deprecated') +const int kComponentsFolderType = 1668116580; + +@Deprecated('Deprecated') +const int kCompositionsFolderType = 1668116595; + +const int kComputerIcon = 1919905652; + +const int kConfigurationLockedErr = -9076; + +const int kConnSuite = 1835098979; + +const int kConnectToIcon = 1668178804; + +const int kConnectionAudioStreaming = 1635083379; + +const int kConnectionBlueGammaScale = 1650946915; + +const int kConnectionChanged = 1667788391; + +const int kConnectionCheckEnable = 1667591777; + +const int kConnectionColorDepthsSupported = 543322211; + +const int kConnectionColorMode = 1668904310; + +const int kConnectionColorModesSupported = 1668246642; + +const int kConnectionControllerColorDepth = 6582372; + +const int kConnectionControllerDepthsSupported = 6779492; + +const int kConnectionControllerDitherControl = 6775907; + +const int kConnectionDisplayFlags = 1684434023; + +const int kConnectionDisplayParameterCount = 1885564532; + +const int kConnectionDisplayParameters = 1885434477; + +const int kConnectionEnable = 1701732706; + +const int kConnectionEnableAudio = 1635083296; + +const int kConnectionFlags = 1718380403; + +const int kConnectionFlushParameters = 1718383987; + +const int kConnectionGammaScale = 1735615264; + +const int kConnectionGreenGammaScale = 1734832995; + +const int kConnectionHandleDisplayPortEvent = 1685088626; + +const int kConnectionIgnore = 6907762; + +const int kConnectionOverscan = 1869833070; + +const int kConnectionPanelTimingDisable = 1886284916; + +const int kConnectionPostWake = 1886871915; + +const int kConnectionPower = 1886353266; + +const int kConnectionProbe = 1886547810; + +const int kConnectionRedGammaScale = 1919382371; + +const int kConnectionStartOfFrameTime = 1936680564; + +const int kConnectionSupportsAppleSense = 1634954867; + +const int kConnectionSupportsHLDDCSense = 1751409763; + +const int kConnectionSupportsLLDDCSense = 1818518627; + +const int kConnectionSyncEnable = 1937337955; + +const int kConnectionSyncFlags = 1937335142; + +const int kConnectionVBLMultiplier = 1986161773; + +const int kConnectionVideoBest = 1986163572; + +const int kContainerAliasType = 1685221232; + +const int kContainerCDROMAliasType = 1667523698; + +const int kContainerFloppyAliasType = 1718382713; + +const int kContainerFolderAliasType = 1717858928; + +const int kContainerHardDiskAliasType = 1751413611; + +const int kContainerServerAliasType = 1936881266; + +const int kContainerTrashAliasType = 1953657704; + +const int kContextualAlternatesOffSelector = 1; + +const int kContextualAlternatesOnSelector = 0; + +const int kContextualAlternatesType = 36; + +const int kContextualLigaturesOffSelector = 19; + +const int kContextualLigaturesOnSelector = 18; + +const int kContextualMenuItemsFolderIcon = 1668116085; + +@Deprecated('Deprecated') +const int kContextualMenuItemsFolderType = 1668116085; + +const int kContextualSwashAlternatesOffSelector = 5; + +const int kContextualSwashAlternatesOnSelector = 4; + +const int kControlPanelDisabledFolderIcon = 1668575812; + +@Deprecated('Deprecated') +const int kControlPanelDisabledFolderType = 1668575812; + +const int kControlPanelFolderAliasType = 1717658484; + +const int kControlPanelFolderIcon = 1668575852; + +const int kControlPanelFolderIconResource = -3976; + +@Deprecated('Deprecated') +const int kControlPanelFolderType = 1668575852; + +const int kControlStripModulesFolderIcon = 1935963844; + +@Deprecated('Deprecated') +const int kControlStripModulesFolderType = 1935959414; + +@Deprecated('Deprecated') +const int kCooperativeThread = 1; + +const int kCoreEndianAppleEventManagerDomain = 1634039412; + +const int kCoreEndianResourceManagerDomain = 1920168547; + +const int kCoreEventClass = 1634039412; + +@Deprecated('Deprecated') +const int kCoreServicesFolderType = 1668510326; + +@Deprecated('Deprecated') +const int kCreateFolder = 1; + +@Deprecated('Deprecated') +const int kCreateFolderAtBoot = 2; + +@Deprecated('Deprecated') +const int kCreateFolderAtBootBit = 1; + +@Deprecated('Deprecated') +const int kCreateIfNeeded = 4; + +const int kCreationDateKCItemAttr = 1667522932; + +const int kCreatorKCItemAttr = 1668445298; + +@Deprecated('Deprecated') +const int kCurrentMixedModeStateRecord = 1; + +const int kCurrentProcess = 2; + +@Deprecated('Deprecated') +const int kCurrentThreadID = 1; + +const int kCurrentUserFolderLocation = 1668641638; + +@Deprecated('Deprecated') +const int kCurrentUserFolderType = 1668641650; + +@Deprecated('Deprecated') +const int kCurrentUserRemoteFolderLocation = 1920299878; + +@Deprecated('Deprecated') +const int kCurrentUserRemoteFolderType = 1920299890; + +const int kCursiveConnectionType = 2; + +const int kCursiveSelector = 2; + +const int kCustomBadgeResourceID = -16455; + +const int kCustomBadgeResourceType = 1650549863; + +const int kCustomBadgeResourceVersion = 0; + +const int kCustomIconKCItemAttr = 1668641641; + +const int kCustomIconResource = -16455; + +@Deprecated('Deprecated') +const int kD0DispatchedCStackBased = 9; + +@Deprecated('Deprecated') +const int kD0DispatchedPascalStackBased = 8; + +@Deprecated('Deprecated') +const int kD1DispatchedPascalStackBased = 12; + +const int kDMCantBlock = -6224; + +const int kDMDisplayAlreadyInstalledErr = -6230; + +const int kDMDisplayNotFoundErr = -6229; + +const int kDMDriverNotDisplayMgrAwareErr = -6228; + +const int kDMFoundErr = -6232; + +const int kDMGenErr = -6220; + +const int kDMMainDisplayCannotMoveErr = -6231; + +const int kDMMirroringBlocked = -6223; + +const int kDMMirroringNotOn = -6225; + +const int kDMMirroringOnAlready = -6221; + +const int kDMNoDeviceTableclothErr = -6231; + +const int kDMNotFoundErr = -6229; + +const int kDMSWNotInitializedErr = -6227; + +const int kDMWrongNumberOfDisplays = -6222; + +const int kDOSJapanesePalmVariant = 1; + +const int kDOSJapaneseStandardVariant = 0; + +const int kDSpConfirmSwitchWarning = -30448; + +const int kDSpContextAlreadyReservedErr = -30444; + +const int kDSpContextNotFoundErr = -30446; + +const int kDSpContextNotReservedErr = -30445; + +const int kDSpFrameRateNotReadyErr = -30447; + +const int kDSpInternalErr = -30449; + +const int kDSpInvalidAttributesErr = -30443; + +const int kDSpInvalidContextErr = -30442; + +const int kDSpNotInitializedErr = -30440; + +const int kDSpStereoContextErr = -30450; + +const int kDSpSystemSWTooOldErr = -30441; + +const int kDTPAbortJobErr = 128; + +const int kDTPHoldJobErr = -4200; + +const int kDTPStopQueueErr = -4201; + +const int kDTPThirdPartySupported = 4; + +const int kDTPTryAgainErr = -4202; + +const int kDataAccessKCEvent = 10; + +const int kDataAccessKCEventMask = 1024; + +@Deprecated('Deprecated') +const int kDataAlignmentException = 17; + +@Deprecated('Deprecated') +const int kDataBreakpointException = 11; + +const int kDecomposeDiacriticsSelector = 2; + +const int kDecorativeBordersSelector = 4; + +const int kDecryptKCItemAttr = 1684366194; + +const int kDefaultCJKRomanSelector = 2; + +const int kDefaultCMMSignature = 1634758764; + +const int kDefaultChangedKCEvent = 9; + +const int kDefaultChangedKCEventMask = 512; + +const int kDefaultLowerCaseSelector = 0; + +const int kDefaultUpperCaseSelector = 0; + +const int kDeleteAliasIcon = 1684106345; + +const int kDeleteKCEvent = 4; + +const int kDeleteKCEventMask = 16; + +const int kDescriptionKCItemAttr = 1684370275; + +const int kDesignComplexityType = 18; + +const int kDesignLevel1Selector = 0; + +const int kDesignLevel2Selector = 1; + +const int kDesignLevel3Selector = 2; + +const int kDesignLevel4Selector = 3; + +const int kDesignLevel5Selector = 4; + +@Deprecated('Deprecated') +const int kDesktopFolderType = 1684370283; + +const int kDesktopIcon = 1684370283; + +const int kDesktopIconResource = -3992; + +@Deprecated('Deprecated') +const int kDesktopPicturesFolderType = 1685352644; + +const int kDesktopPrinterAliasType = 1685352545; + +@Deprecated('Deprecated') +const int kDeveloperApplicationsFolderType = 1684107376; + +@Deprecated('Deprecated') +const int kDeveloperDocsFolderType = 1684303715; + +@Deprecated('Deprecated') +const int kDeveloperFolderType = 1684371046; + +@Deprecated('Deprecated') +const int kDeveloperHelpFolderType = 1684371048; + +const int kDeviceInitiatedWake = 18; + +const int kDeviceToPCS = 1; + +const int kDiacriticsType = 9; + +const int kDiagonalFractionsSelector = 2; + +const int kDiamondAnnotationSelector = 8; + +const int kDictionariesFolderType = 1684628340; + +const int kDingbatsSelector = 1; + +const int kDiphthongLigaturesOffSelector = 11; + +const int kDiphthongLigaturesOnSelector = 10; + +@Deprecated('Deprecated') +const int kDirectoryServicesFolderType = 1685287542; + +@Deprecated('Deprecated') +const int kDirectoryServicesPlugInsFolderType = 1685089383; + +@Deprecated('Deprecated') +const int kDispatchedParameterPhase = 8; + +@Deprecated('Deprecated') +const int kDispatchedSelectorSizePhase = 6; + +@Deprecated('Deprecated') +const int kDispatchedSelectorSizeWidth = 2; + +@Deprecated('Deprecated') +const int kDisplayExtensionsFolderType = 1685287020; + +const int kDisplayModeAcceleratorBackedFlag = 4194304; + +const int kDisplayModeAlwaysShowFlag = 8; + +const int kDisplayModeBuiltInFlag = 1024; + +const int kDisplayModeDefaultFlag = 4; + +const int kDisplayModeInterlacedFlag = 64; + +const int kDisplayModeNativeFlag = 33554432; + +const int kDisplayModeNeverShowFlag = 128; + +const int kDisplayModeNotGraphicsQualityFlag = 4096; + +const int kDisplayModeNotPresetFlag = 512; + +const int kDisplayModeNotResizeFlag = 16; + +const int kDisplayModeRequiresPanFlag = 32; + +const int kDisplayModeSafeFlag = 2; + +const int kDisplayModeSafetyFlags = 7; + +const int kDisplayModeSimulscanFlag = 256; + +const int kDisplayModeStretchedFlag = 2048; + +const int kDisplayModeTelevisionFlag = 1048576; + +const int kDisplayModeValidFlag = 1; + +const int kDisplayModeValidForAirPlayFlag = 16777216; + +const int kDisplayModeValidForHiResFlag = 8388608; + +const int kDisplayModeValidForMirroringFlag = 2097152; + +const int kDisplayModeValidateAgainstDisplay = 8192; + +const int kDisplayProductIDGeneric = 1815; + +const int kDisplaySubPixelConfigurationDelta = 1; + +const int kDisplaySubPixelConfigurationQuad = 4; + +const int kDisplaySubPixelConfigurationStripe = 2; + +const int kDisplaySubPixelConfigurationStripeOffset = 3; + +const int kDisplaySubPixelConfigurationUndefined = 0; + +const int kDisplaySubPixelLayoutBGR = 2; + +const int kDisplaySubPixelLayoutQuadGBL = 3; + +const int kDisplaySubPixelLayoutQuadGBR = 4; + +const int kDisplaySubPixelLayoutRGB = 1; + +const int kDisplaySubPixelLayoutUndefined = 0; + +const int kDisplaySubPixelShapeElliptical = 5; + +const int kDisplaySubPixelShapeOval = 4; + +const int kDisplaySubPixelShapeRectangular = 3; + +const int kDisplaySubPixelShapeRound = 1; + +const int kDisplaySubPixelShapeSquare = 2; + +const int kDisplaySubPixelShapeUndefined = 0; + +const int kDisplayTextSelector = 1; + +const int kDisplayVendorIDUnknown = 1970170734; + +const int kDoFolderActionEvent = 1718578273; + +@Deprecated('Deprecated') +const int kDocumentationFolderType = 1768842863; + +const int kDocumentsFolderIcon = 1685021555; + +@Deprecated('Deprecated') +const int kDocumentsFolderType = 1685021555; + +@Deprecated('Deprecated') +const int kDomainLibraryFolderType = 1684826466; + +@Deprecated('Deprecated') +const int kDomainTopLevelFolderType = 1685352304; + +@Deprecated('Deprecated') +const int kDontCreateFolder = 0; + +const int kDontFindAppBySignature = 16384; + +@Deprecated('Deprecated') +const int kDontPassSelector = 8; + +@Deprecated('Deprecated') +const int kDownloadsFolderType = 1685026670; + +const int kDozeDemand = 7; + +const int kDozeRequest = 9; + +const int kDozeToFullWakeUp = 20; + +const int kDozeWakeUp = 8; + +@Deprecated('Deprecated') +const int kDropBoxFolderType = 1685221232; + +const int kDropFolderAliasType = 1717658738; + +const int kDropFolderIcon = 1684172664; + +const int kDropFolderIconResource = -3979; + +const int kDropIconVariant = 1685221232; + +@Deprecated('Deprecated') +const int kDurationForever = 2147483647; + +@Deprecated('Deprecated') +const int kDurationImmediate = 0; + +@Deprecated('Deprecated') +const int kDurationMicrosecond = -1; + +@Deprecated('Deprecated') +const int kDurationMillisecond = 1; + +const int kEACCESErr = -3212; + +const int kEADDRINUSEErr = -3247; + +const int kEADDRNOTAVAILErr = -3248; + +const int kEAGAINErr = -3210; + +const int kEALREADYErr = -3236; + +const int kEBADFErr = -3208; + +const int kEBADMSGErr = -3272; + +const int kEBUSYErr = -3215; + +const int kECANCELErr = -3273; + +const int kECONNABORTEDErr = -3252; + +const int kECONNREFUSEDErr = -3260; + +const int kECONNRESETErr = -3253; + +const int kEDEADLKErr = -3234; + +const int kEDESTADDRREQErr = -3238; + +const int kEEXISTErr = -3216; + +const int kEFAULTErr = -3213; + +const int kEHOSTDOWNErr = -3263; + +const int kEHOSTUNREACHErr = -3264; + +const int kEINPROGRESSErr = -3276; + +const int kEINTRErr = -3203; + +const int kEINVALErr = -3221; + +const int kEIOErr = -3204; + +const int kEISCONNErr = -3255; + +const int kEMSGSIZEErr = -3239; + +const int kEMailKCItemAttr = 1835100524; + +const int kENETDOWNErr = -3249; + +const int kENETRESETErr = -3251; + +const int kENETUNREACHErr = -3250; + +const int kENOBUFSErr = -3254; + +const int kENODATAErr = -3275; + +const int kENODEVErr = -3218; + +const int kENOENTErr = -3201; + +const int kENOMEMErr = -3211; + +const int kENOMSGErr = -3278; + +const int kENOPROTOOPTErr = -3241; + +const int kENORSRCErr = -3202; + +const int kENOSRErr = -3271; + +const int kENOSTRErr = -3274; + +const int kENOTCONNErr = -3256; + +const int kENOTSOCKErr = -3237; + +const int kENOTTYErr = -3224; + +const int kENXIOErr = -3205; + +const int kEOPNOTSUPPErr = -3244; + +const int kEPERMErr = -3200; + +const int kEPIPEErr = -3231; + +const int kEPROTOErr = -3269; + +const int kEPROTONOSUPPORTErr = -3242; + +const int kEPROTOTYPEErr = -3240; + +const int kERANGEErr = -3233; + +const int kESHUTDOWNErr = -3257; + +const int kESOCKTNOSUPPORTErr = -3243; + +const int kESRCHErr = -3277; + +const int kETIMEDOUTErr = -3259; + +const int kETIMEErr = -3270; + +const int kETOOMANYREFSErr = -3258; + +const int kEUC_CN_BasicVariant = 0; + +const int kEUC_CN_DOSVariant = 1; + +const int kEUC_KR_BasicVariant = 0; + +const int kEUC_KR_DOSVariant = 1; + +const int kEWOULDBLOCKErr = -3234; + +@Deprecated('Deprecated') +const int kEditorsFolderType = 1868850532; + +const int kEjectMediaIcon = 1701471587; + +const int kEncryptKCItemAttr = 1701733234; + +const int kEncryptPassword = 3; + +const int kEndDateKCItemAttr = 1701077364; + +const int kEndOfSentence = 2; + +const int kEndOfWord = 1; + +const int kEngravedTextSelector = 2; + +const int kEnterIdle = 24; + +const int kEnterRun = 11; + +const int kEnterStandby = 10; + +const int kEveryKCEventMask = 65535; + +@Deprecated('Deprecated') +const int kExactMatchThread = 16; + +@Deprecated('Deprecated') +const int kExcludedMemoryException = 5; + +const int kExitIdle = 26; + +const int kExpertCharactersSelector = 10; + +const int kExponentsOffSelector = 9; + +const int kExponentsOnSelector = 8; + +const int kExportedFolderAliasType = 1717658996; + +const int kExtendedFlagHasCustomBadge = 256; + +const int kExtendedFlagHasRoutingInfo = 4; + +const int kExtendedFlagObjectIsBusy = 128; + +const int kExtendedFlagsAreInvalid = 32768; + +@Deprecated('Deprecated') +const int kExtensionDisabledFolderType = 1702392900; + +const int kExtensionFolderAliasType = 1717659000; + +@Deprecated('Deprecated') +const int kExtensionFolderType = 1702392942; + +const int kExtensionsDisabledFolderIcon = 1702392900; + +const int kExtensionsFolderIcon = 1702392942; + +const int kExtensionsFolderIconResource = -3973; + +const int kFAAttachCommand = 1635018337; + +const int kFAEditCommand = 1701078625; + +const int kFAFileParam = 1717657964; + +const int kFAIndexParam = 1768842360; + +const int kFARemoveCommand = 1919772257; + +const int kFAServerApp = 1936945782; + +const int kFASuiteCode = 1717658479; + +const int kFBCaccessCanceled = -30521; + +const int kFBCaccessorStoreFailed = -30515; + +const int kFBCaddDocFailed = -30516; + +const int kFBCallocFailed = -30502; + +const int kFBCanalysisNotAvailable = -30527; + +const int kFBCbadIndexFile = -30505; + +const int kFBCbadIndexFileVersion = -30528; + +const int kFBCbadParam = -30503; + +const int kFBCbadSearchSession = -30531; + +const int kFBCcommitFailed = -30509; + +const int kFBCcompactionFailed = -30506; + +const int kFBCdeletionFailed = -30510; + +const int kFBCfileNotIndexed = -30504; + +const int kFBCflushFailed = -30517; + +const int kFBCillegalSessionChange = -30526; + +const int kFBCindexCreationFailed = -30514; + +const int kFBCindexDiskIOFailed = -30530; + +const int kFBCindexFileDestroyed = -30522; + +const int kFBCindexNotAvailable = -30523; + +const int kFBCindexNotFound = -30518; + +const int kFBCindexingCanceled = -30520; + +const int kFBCindexingFailed = -30508; + +const int kFBCmergingFailed = -30513; + +const int kFBCmoveFailed = -30511; + +const int kFBCnoIndexesFound = -30501; + +const int kFBCnoSearchSession = -30519; + +const int kFBCnoSuchHit = -30532; + +const int kFBCsearchFailed = -30524; + +const int kFBCsomeFilesNotIndexed = -30525; + +const int kFBCsummarizationCanceled = -30529; + +const int kFBCtokenizationFailed = -30512; + +const int kFBCvTwinExceptionErr = -30500; + +const int kFBCvalidationFailed = -30507; + +const int kFMCurrentFilterFormat = 0; + +const int kFMFontCallbackFilterSelector = 5; + +const int kFMFontContainerAccessErr = -985; + +const int kFMFontContainerFilterSelector = 2; + +const int kFMFontDirectoryFilterSelector = 6; + +const int kFMFontFamilyCallbackFilterSelector = 4; + +const int kFMFontFileRefFilterSelector = 10; + +const int kFMFontTableAccessErr = -984; + +const int kFMFontTechnologyFilterSelector = 1; + +const int kFMGenerationFilterSelector = 3; + +const int kFMInvalidFontErr = -982; + +const int kFMInvalidFontFamilyErr = -981; + +const int kFMIterationCompleted = -980; + +const int kFMIterationScopeModifiedErr = -983; + +const int kFMPostScriptFontTechnology = 1954115633; + +const int kFMTrueTypeFontTechnology = 1953658213; + +const int kFNDirectoryModifiedMessage = 1; + +const int kFNNoImplicitAllSubscription = 1; + +const int kFNNotifyInBackground = 2; + +const int kFNSBadFlattenedSizeErr = -29587; + +const int kFNSBadProfileVersionErr = -29583; + +const int kFNSBadReferenceVersionErr = -29581; + +const int kFNSDuplicateReferenceErr = -29584; + +const int kFNSInsufficientDataErr = -29586; + +const int kFNSInvalidProfileErr = -29582; + +const int kFNSInvalidReferenceErr = -29580; + +const int kFNSMismatchErr = -29585; + +const int kFNSNameNotFoundErr = -29589; + +@Deprecated('Deprecated') +const int kFPUNotNeeded = 8; + +@Deprecated('Deprecated') +const int kFSAliasInfoFSInfo = 32; + +@Deprecated('Deprecated') +const int kFSAliasInfoFinderInfo = 4; + +@Deprecated('Deprecated') +const int kFSAliasInfoIDs = 16; + +@Deprecated('Deprecated') +const int kFSAliasInfoIsDirectory = 8; + +@Deprecated('Deprecated') +const int kFSAliasInfoNone = 0; + +@Deprecated('Deprecated') +const int kFSAliasInfoTargetCreateDate = 2; + +@Deprecated('Deprecated') +const int kFSAliasInfoVolumeCreateDate = 1; + +@Deprecated('Deprecated') +const int kFSAliasInfoVolumeFlags = 64; + +const int kFSAllocAllOrNothingMask = 1; + +const int kFSAllocContiguousMask = 2; + +const int kFSAllocDefaultFlags = 0; + +const int kFSAllocNoRoundUpMask = 4; + +const int kFSAllocReservedMask = 65528; + +const int kFSAllowConcurrentAsyncIOBit = 3; + +const int kFSAllowConcurrentAsyncIOMask = 8; + +const int kFSCatInfoAccessDate = 256; + +const int kFSCatInfoAllDates = 992; + +const int kFSCatInfoAttrMod = 128; + +const int kFSCatInfoBackupDate = 512; + +const int kFSCatInfoContentMod = 64; + +const int kFSCatInfoCreateDate = 32; + +const int kFSCatInfoDataSizes = 16384; + +const int kFSCatInfoFSFileSecurityRef = 4194304; + +const int kFSCatInfoFinderInfo = 2048; + +const int kFSCatInfoFinderXInfo = 4096; + +const int kFSCatInfoGettableInfo = 262143; + +const int kFSCatInfoNodeFlags = 2; + +const int kFSCatInfoNodeID = 16; + +const int kFSCatInfoNone = 0; + +const int kFSCatInfoParentDirID = 8; + +const int kFSCatInfoPermissions = 1024; + +const int kFSCatInfoReserved = -262144; + +const int kFSCatInfoRsrcSizes = 32768; + +const int kFSCatInfoSetOwnership = 1048576; + +const int kFSCatInfoSettableInfo = 8163; + +const int kFSCatInfoSharingFlags = 65536; + +const int kFSCatInfoTextEncoding = 1; + +const int kFSCatInfoUserAccess = 524288; + +const int kFSCatInfoUserPrivs = 131072; + +const int kFSCatInfoValence = 8192; + +const int kFSCatInfoVolume = 4; + +const int kFSEjectVolumeForceEject = 1; + +const int kFSEventStreamCreateDeviceState = 512; + +const int kFSEventStreamCreateFlagFileEvents = 16; + +const int kFSEventStreamCreateFlagFullHistory = 128; + +const int kFSEventStreamCreateFlagIgnoreSelf = 8; + +const int kFSEventStreamCreateFlagMarkSelf = 32; + +const int kFSEventStreamCreateFlagNoDefer = 2; + +const int kFSEventStreamCreateFlagNone = 0; + +const int kFSEventStreamCreateFlagUseCFTypes = 1; + +const int kFSEventStreamCreateFlagUseExtendedData = 64; + +const int kFSEventStreamCreateFlagWatchRoot = 4; + +const int kFSEventStreamCreateWithDocID = 256; + +const int kFSEventStreamEventFlagEventIdsWrapped = 8; + +const int kFSEventStreamEventFlagHistoryDone = 16; + +const int kFSEventStreamEventFlagItemChangeOwner = 16384; + +const int kFSEventStreamEventFlagItemCloned = 4194304; + +const int kFSEventStreamEventFlagItemCreated = 256; + +const int kFSEventStreamEventFlagItemFinderInfoMod = 8192; + +const int kFSEventStreamEventFlagItemInodeMetaMod = 1024; + +const int kFSEventStreamEventFlagItemIsDir = 131072; + +const int kFSEventStreamEventFlagItemIsFile = 65536; + +const int kFSEventStreamEventFlagItemIsHardlink = 1048576; + +const int kFSEventStreamEventFlagItemIsLastHardlink = 2097152; + +const int kFSEventStreamEventFlagItemIsSymlink = 262144; + +const int kFSEventStreamEventFlagItemModified = 4096; + +const int kFSEventStreamEventFlagItemRemoved = 512; + +const int kFSEventStreamEventFlagItemRenamed = 2048; + +const int kFSEventStreamEventFlagItemXattrMod = 32768; + +const int kFSEventStreamEventFlagKernelDropped = 4; + +const int kFSEventStreamEventFlagMount = 64; + +const int kFSEventStreamEventFlagMustScanSubDirs = 1; + +const int kFSEventStreamEventFlagNone = 0; + +const int kFSEventStreamEventFlagOwnEvent = 524288; + +const int kFSEventStreamEventFlagRootChanged = 32; + +const int kFSEventStreamEventFlagUnmount = 128; + +const int kFSEventStreamEventFlagUserDropped = 2; + +const int kFSEventStreamEventIdSinceNow = -1; + +const int kFSFileOperationDefaultOptions = 0; + +const int kFSFileOperationDoNotMoveAcrossVolumes = 4; + +const int kFSFileOperationOverwrite = 1; + +const int kFSFileOperationSkipPreflight = 8; + +const int kFSFileOperationSkipSourcePermissionErrors = 2; + +const int kFSForceReadBit = 6; + +const int kFSForceReadMask = 64; + +const int kFSInvalidVolumeRefNum = 0; + +const int kFSIterateDelete = 2; + +const int kFSIterateFlat = 0; + +const int kFSIterateReserved = -4; + +const int kFSIterateSubtree = 1; + +const int kFSKMountVersion = 1179863841; + +const int kFSMountServerMarkDoNotDisplay = 1; + +const int kFSMountServerMountOnMountDir = 4; + +const int kFSMountServerMountWithoutNotification = 2; + +const int kFSMountServerSuppressConnectionUI = 64; + +const int kFSNewLineBit = 7; + +const int kFSNewLineCharMask = 65280; + +const int kFSNewLineMask = 128; + +const int kFSNoCacheBit = 5; + +const int kFSNoCacheMask = 32; + +const int kFSNodeCopyProtectBit = 6; + +const int kFSNodeCopyProtectMask = 64; + +const int kFSNodeDataOpenBit = 3; + +const int kFSNodeDataOpenMask = 8; + +const int kFSNodeForkOpenBit = 7; + +const int kFSNodeForkOpenMask = 128; + +const int kFSNodeHardLinkBit = 8; + +const int kFSNodeHardLinkMask = 256; + +const int kFSNodeInSharedBit = 2; + +const int kFSNodeInSharedMask = 4; + +const int kFSNodeIsDirectoryBit = 4; + +const int kFSNodeIsDirectoryMask = 16; + +const int kFSNodeIsMountedBit = 3; + +const int kFSNodeIsMountedMask = 8; + +const int kFSNodeIsSharePointBit = 5; + +const int kFSNodeIsSharePointMask = 32; + +const int kFSNodeLockedBit = 0; + +const int kFSNodeLockedMask = 1; + +const int kFSNodeResOpenBit = 2; + +const int kFSNodeResOpenMask = 4; + +const int kFSOperationStageComplete = 3; + +const int kFSOperationStagePreflighting = 1; + +const int kFSOperationStageRunning = 2; + +const int kFSOperationStageUndefined = 0; + +const int kFSPathMakeRefDefaultOptions = 0; + +const int kFSPathMakeRefDoNotFollowLeafSymlink = 1; + +const int kFSPleaseCacheBit = 4; + +const int kFSPleaseCacheMask = 16; + +const int kFSRdVerifyBit = 6; + +const int kFSRdVerifyMask = 64; + +const int kFSReplaceObjectDefaultOptions = 0; + +const int kFSReplaceObjectDoNotCheckObjectWriteAccess = 16; + +const int kFSReplaceObjectPreservePermissionInfo = 8; + +const int kFSReplaceObjectReplaceMetadata = 1; + +const int kFSReplaceObjectReplacePermissionInfo = 4; + +const int kFSReplaceObjectSaveOriginalAsABackup = 2; + +const int kFSUnmountVolumeForceUnmount = 1; + +const int kFSVolFlagDefaultVolumeBit = 5; + +const int kFSVolFlagDefaultVolumeMask = 32; + +const int kFSVolFlagFilesOpenBit = 6; + +const int kFSVolFlagFilesOpenMask = 64; + +const int kFSVolFlagHardwareLockedBit = 7; + +const int kFSVolFlagHardwareLockedMask = 128; + +const int kFSVolFlagJournalingActiveBit = 14; + +const int kFSVolFlagJournalingActiveMask = 16384; + +const int kFSVolFlagSoftwareLockedBit = 15; + +const int kFSVolFlagSoftwareLockedMask = 32768; + +const int kFSVolInfoBackupDate = 4; + +const int kFSVolInfoBlocks = 128; + +const int kFSVolInfoCheckedDate = 8; + +const int kFSVolInfoCreateDate = 1; + +const int kFSVolInfoDataClump = 1024; + +const int kFSVolInfoDirCount = 32; + +const int kFSVolInfoDriveInfo = 32768; + +const int kFSVolInfoFSInfo = 16384; + +const int kFSVolInfoFileCount = 16; + +const int kFSVolInfoFinderInfo = 4096; + +const int kFSVolInfoFlags = 8192; + +const int kFSVolInfoGettableInfo = 65535; + +const int kFSVolInfoModDate = 2; + +const int kFSVolInfoNextAlloc = 256; + +const int kFSVolInfoNextID = 2048; + +const int kFSVolInfoNone = 0; + +const int kFSVolInfoRsrcClump = 512; + +const int kFSVolInfoSettableInfo = 12292; + +const int kFSVolInfoSizes = 64; + +const int kFTPServerIcon = 1718906995; + +const int kFavoriteItemsIcon = 1717663346; + +const int kFavoritesFolderIcon = 1717663347; + +@Deprecated('Deprecated') +const int kFavoritesFolderType = 1717663347; + +const int kFemale = 2; + +@Deprecated('Deprecated') +const int kFetchReference = 2; + +@Deprecated('Deprecated') +const int kFileSystemSupportFolderType = 1718843763; + +@Deprecated('Deprecated') +const int kFindByContentFolderType = 1717724006; + +@Deprecated('Deprecated') +const int kFindByContentIndexesFolderType = 1717724024; + +@Deprecated('Deprecated') +const int kFindByContentPluginsFolderType = 1717724016; + +@Deprecated('Deprecated') +const int kFindSupportFolderType = 1718510707; + +const int kFinderIcon = 1179534418; + +const int kFirstFailKCStopOn = 3; + +const int kFirstIOKitNotificationType = 100; + +const int kFirstMagicBusyFiletype = 1652193568; + +const int kFirstPassKCStopOn = 2; + +const int kFleuronsSelector = 3; + +@Deprecated('Deprecated') +const int kFloatingPointException = 13; + +const int kFloppyIconResource = -3998; + +const int kFolderActionCode = 1633907822; + +@Deprecated('Deprecated') +const int kFolderActionsFolderType = 1717662566; + +const int kFolderClosedEvent = 1717791855; + +@Deprecated('Deprecated') +const int kFolderCreatedAdminPrivs = 16; + +@Deprecated('Deprecated') +const int kFolderCreatedAdminPrivsBit = 4; + +@Deprecated('Deprecated') +const int kFolderCreatedInvisible = 4; + +@Deprecated('Deprecated') +const int kFolderCreatedInvisibleBit = 2; + +@Deprecated('Deprecated') +const int kFolderCreatedNameLocked = 8; + +@Deprecated('Deprecated') +const int kFolderCreatedNameLockedBit = 3; + +@Deprecated('Deprecated') +const int kFolderInLocalOrRemoteUserFolder = 160; + +@Deprecated('Deprecated') +const int kFolderInRemoteUserFolderIfAvailable = 128; + +@Deprecated('Deprecated') +const int kFolderInRemoteUserFolderIfAvailableBit = 7; + +@Deprecated('Deprecated') +const int kFolderInUserFolder = 32; + +@Deprecated('Deprecated') +const int kFolderInUserFolderBit = 5; + +const int kFolderItemsAddedEvent = 1718052212; + +const int kFolderItemsRemovedEvent = 1718382451; + +@Deprecated('Deprecated') +const int kFolderManagerFolderInMacOS9FolderIfMacOSXIsInstalledBit = 10; + +@Deprecated('Deprecated') +const int kFolderManagerFolderInMacOS9FolderIfMacOSXIsInstalledMask = 1024; + +@Deprecated('Deprecated') +const int kFolderManagerLastDomain = -32760; + +@Deprecated('Deprecated') +const int kFolderManagerNewlyCreatedFolderIsLocalizedBit = 12; + +@Deprecated('Deprecated') +const int +kFolderManagerNewlyCreatedFolderShouldHaveDotLocalizedCreatedWithinMask = 4096; + +@Deprecated('Deprecated') +const int kFolderManagerNotCreatedOnRemoteVolumesBit = 11; + +@Deprecated('Deprecated') +const int kFolderManagerNotCreatedOnRemoteVolumesMask = 2048; + +@Deprecated('Deprecated') +const int kFolderMustStayOnSameVolume = 512; + +@Deprecated('Deprecated') +const int kFolderMustStayOnSameVolumeBit = 9; + +@Deprecated('Deprecated') +const int kFolderNeverMatchedInIdentifyFolder = 256; + +@Deprecated('Deprecated') +const int kFolderNeverMatchedInIdentifyFolderBit = 8; + +const int kFolderOpenedEvent = 1718579310; + +@Deprecated('Deprecated') +const int kFolderTrackedByAlias = 64; + +@Deprecated('Deprecated') +const int kFolderTrackedByAliasBit = 6; + +const int kFolderWindowMovedEvent = 1718839674; + +const int kFontAlbanianLanguage = 36; + +const int kFontAmharicLanguage = 85; + +const int kFontAmharicScript = 28; + +const int kFontArabicLanguage = 12; + +const int kFontArabicScript = 4; + +const int kFontArmenianLanguage = 51; + +const int kFontArmenianScript = 24; + +const int kFontAssameseLanguage = 68; + +const int kFontAymaraLanguage = 134; + +const int kFontAzerbaijanArLanguage = 50; + +const int kFontAzerbaijaniLanguage = 49; + +const int kFontBasqueLanguage = 129; + +const int kFontBengaliLanguage = 67; + +const int kFontBengaliScript = 13; + +const int kFontBulgarianLanguage = 44; + +const int kFontBurmeseLanguage = 77; + +const int kFontBurmeseScript = 19; + +const int kFontByelorussianLanguage = 46; + +const int kFontCatalanLanguage = 130; + +const int kFontChewaLanguage = 92; + +const int kFontChineseScript = 2; + +@Deprecated('Deprecated') +const int kFontCollectionsFolderType = 1718510444; + +const int kFontCopyrightName = 0; + +const int kFontCroatianLanguage = 18; + +const int kFontCustom16BitScript = 2; + +const int kFontCustom816BitScript = 1; + +const int kFontCustom8BitScript = 0; + +const int kFontCustomPlatform = 4; + +const int kFontCyrillicScript = 7; + +const int kFontCzechLanguage = 38; + +const int kFontDanishLanguage = 7; + +const int kFontDescriptionName = 10; + +const int kFontDesignerName = 9; + +const int kFontDesignerURLName = 12; + +const int kFontDevanagariScript = 9; + +const int kFontDutchLanguage = 4; + +const int kFontDzongkhaLanguage = 137; + +const int kFontEastEuropeanRomanScript = 29; + +const int kFontEnglishLanguage = 0; + +const int kFontEsperantoLanguage = 94; + +const int kFontEstonianLanguage = 27; + +const int kFontEthiopicScript = 28; + +const int kFontExtendedArabicScript = 31; + +const int kFontFaeroeseLanguage = 30; + +const int kFontFamilyName = 1; + +const int kFontFarsiLanguage = 31; + +const int kFontFinnishLanguage = 13; + +const int kFontFlemishLanguage = 34; + +const int kFontFrenchLanguage = 1; + +const int kFontFullName = 4; + +const int kFontGallaLanguage = 87; + +const int kFontGeezScript = 28; + +const int kFontGeorgianLanguage = 52; + +const int kFontGeorgianScript = 23; + +const int kFontGermanLanguage = 2; + +const int kFontGreekLanguage = 14; + +const int kFontGreekScript = 6; + +const int kFontGuaraniLanguage = 133; + +const int kFontGujaratiLanguage = 69; + +const int kFontGujaratiScript = 11; + +const int kFontGurmukhiScript = 10; + +const int kFontHebrewLanguage = 10; + +const int kFontHebrewScript = 5; + +const int kFontHindiLanguage = 21; + +const int kFontHungarianLanguage = 26; + +const int kFontISO10646_1993Semantics = 2; + +const int kFontIcelandicLanguage = 15; + +const int kFontIndonesianLanguage = 81; + +const int kFontIrishLanguage = 35; + +const int kFontItalianLanguage = 3; + +const int kFontJapaneseLanguage = 11; + +const int kFontJapaneseScript = 1; + +const int kFontJavaneseRomLanguage = 138; + +const int kFontKannadaLanguage = 73; + +const int kFontKannadaScript = 16; + +const int kFontKashmiriLanguage = 61; + +const int kFontKazakhLanguage = 48; + +const int kFontKhmerLanguage = 78; + +const int kFontKhmerScript = 20; + +const int kFontKirghizLanguage = 54; + +const int kFontKoreanLanguage = 23; + +const int kFontKoreanScript = 3; + +const int kFontKurdishLanguage = 60; + +const int kFontLaoLanguage = 79; + +const int kFontLaotianScript = 22; + +const int kFontLappishLanguage = 29; + +const int kFontLastReservedName = 255; + +const int kFontLatinLanguage = 131; + +const int kFontLatvianLanguage = 28; + +const int kFontLettishLanguage = 28; + +const int kFontLicenseDescriptionName = 13; + +const int kFontLicenseInfoURLName = 14; + +const int kFontLithuanianLanguage = 24; + +const int kFontMacCompatibleFullName = 18; + +const int kFontMacedonianLanguage = 43; + +const int kFontMacintoshPlatform = 1; + +const int kFontMalagasyLanguage = 93; + +const int kFontMalayArabicLanguage = 84; + +const int kFontMalayRomanLanguage = 83; + +const int kFontMalayalamLanguage = 72; + +const int kFontMalayalamScript = 17; + +const int kFontMalteseLanguage = 16; + +const int kFontManufacturerName = 8; + +const int kFontMarathiLanguage = 66; + +const int kFontMicrosoftPlatform = 3; + +const int kFontMicrosoftStandardScript = 1; + +const int kFontMicrosoftSymbolScript = 0; + +const int kFontMicrosoftUCS4Script = 10; + +const int kFontMoldavianLanguage = 53; + +const int kFontMongolianCyrLanguage = 58; + +const int kFontMongolianLanguage = 57; + +const int kFontMongolianScript = 27; + +const int kFontNepaliLanguage = 64; + +const int kFontNoLanguage = -1; + +const int kFontNoLanguageCode = -1; + +const int kFontNoName = -1; + +const int kFontNoNameCode = -1; + +const int kFontNoPlatform = -1; + +const int kFontNoPlatformCode = -1; + +const int kFontNoScript = -1; + +const int kFontNoScriptCode = -1; + +const int kFontNorwegianLanguage = 9; + +const int kFontOriyaLanguage = 71; + +const int kFontOriyaScript = 12; + +const int kFontOromoLanguage = 87; + +const int kFontPashtoLanguage = 59; + +const int kFontPersianLanguage = 31; + +const int kFontPolishLanguage = 25; + +const int kFontPortugueseLanguage = 8; + +const int kFontPostScriptCIDName = 20; + +const int kFontPostscriptName = 6; + +const int kFontPreferredFamilyName = 16; + +const int kFontPreferredSubfamilyName = 17; + +const int kFontPunjabiLanguage = 70; + +const int kFontQuechuaLanguage = 132; + +const int kFontRSymbolScript = 8; + +const int kFontReservedPlatform = 2; + +const int kFontRomanScript = 0; + +const int kFontRomanianLanguage = 37; + +const int kFontRuandaLanguage = 90; + +const int kFontRundiLanguage = 91; + +const int kFontRussian = 7; + +const int kFontRussianLanguage = 32; + +const int kFontSaamiskLanguage = 29; + +const int kFontSampleTextName = 19; + +const int kFontSanskritLanguage = 65; + +const int kFontSerbianLanguage = 42; + +const int kFontSimpChineseLanguage = 33; + +const int kFontSimpleChineseScript = 25; + +const int kFontSindhiLanguage = 62; + +const int kFontSindhiScript = 31; + +const int kFontSinhaleseLanguage = 76; + +const int kFontSinhaleseScript = 18; + +const int kFontSlavicScript = 29; + +const int kFontSlovakLanguage = 39; + +const int kFontSlovenianLanguage = 40; + +const int kFontSomaliLanguage = 88; + +const int kFontSpanishLanguage = 6; + +const int kFontStyleName = 2; + +const int kFontSuitcaseIcon = 1179011404; + +const int kFontSundaneseRomLanguage = 139; + +const int kFontSwahiliLanguage = 89; + +const int kFontSwedishLanguage = 5; + +const int kFontTagalogLanguage = 82; + +const int kFontTajikiLanguage = 55; + +const int kFontTamilLanguage = 74; + +const int kFontTamilScript = 14; + +const int kFontTatarLanguage = 135; + +const int kFontTeluguLanguage = 75; + +const int kFontTeluguScript = 15; + +const int kFontThaiLanguage = 22; + +const int kFontThaiScript = 21; + +const int kFontTibetanLanguage = 63; + +const int kFontTibetanScript = 26; + +const int kFontTigrinyaLanguage = 86; + +const int kFontTradChineseLanguage = 19; + +const int kFontTrademarkName = 7; + +const int kFontTraditionalChineseScript = 2; + +const int kFontTurkishLanguage = 17; + +const int kFontTurkmenLanguage = 56; + +const int kFontUighurLanguage = 136; + +const int kFontUkrainianLanguage = 45; + +const int kFontUnicodeDefaultSemantics = 0; + +const int kFontUnicodePlatform = 0; + +const int kFontUnicodeV1_1Semantics = 1; + +const int kFontUnicodeV2_0BMPOnlySemantics = 3; + +const int kFontUnicodeV2_0FullCoverageSemantics = 4; + +const int kFontUnicodeV4_0VariationSequenceSemantics = 5; + +const int kFontUnicode_FullRepertoire = 6; + +const int kFontUninterpretedScript = 32; + +const int kFontUniqueName = 3; + +const int kFontUrduLanguage = 20; + +const int kFontUzbekLanguage = 47; + +const int kFontVendorURLName = 11; + +const int kFontVersionName = 5; + +const int kFontVietnameseLanguage = 80; + +const int kFontVietnameseScript = 30; + +const int kFontWelshLanguage = 128; + +const int kFontYiddishLanguage = 41; + +const int kFontsFolderIcon = 1718578804; + +const int kFontsFolderIconResource = -3968; + +@Deprecated('Deprecated') +const int kFontsFolderType = 1718578804; + +const int kForkInfoFlagsFileLockedBit = 5; + +const int kForkInfoFlagsFileLockedMask = 32; + +const int kForkInfoFlagsLargeFileBit = 3; + +const int kForkInfoFlagsLargeFileMask = 8; + +const int kForkInfoFlagsModifiedBit = 7; + +const int kForkInfoFlagsModifiedMask = 128; + +const int kForkInfoFlagsOwnClumpBit = 6; + +const int kForkInfoFlagsOwnClumpMask = 64; + +const int kForkInfoFlagsResourceBit = 1; + +const int kForkInfoFlagsResourceMask = 2; + +const int kForkInfoFlagsSharedWriteBit = 4; + +const int kForkInfoFlagsSharedWriteMask = 16; + +const int kForkInfoFlagsWriteBit = 0; + +const int kForkInfoFlagsWriteLockedBit = 2; + +const int kForkInfoFlagsWriteLockedMask = 4; + +const int kForkInfoFlagsWriteMask = 1; + +const int kFormInterrobangOffSelector = 7; + +const int kFormInterrobangOnSelector = 6; + +const int kForwardArrowIcon = 1717662319; + +@Deprecated('Deprecated') +const int kFourByteCode = 3; + +const int kFractionsType = 11; + +@Deprecated('Deprecated') +const int kFragmentIsPrepared = 0; + +@Deprecated('Deprecated') +const int kFragmentNeedsPreparing = 2; + +const int kFramebufferDisableAltivecAccess = 524288; + +const int kFramebufferSupportsCopybackCache = 65536; + +const int kFramebufferSupportsGammaCorrection = 262144; + +const int kFramebufferSupportsWritethruCache = 131072; + +@Deprecated('Deprecated') +const int kFrameworksFolderType = 1718772077; + +const int kFullTrashIcon = 1718907496; + +const int kFullTrashIconResource = -3984; + +const int kFullWidthCJKRomanSelector = 3; + +const int kFullWidthIdeographsSelector = 0; + +const int kFullWidthKanaSelector = 0; + +@Deprecated('Deprecated') +const int kGenEditorsFolderType = -999988119; + +const int kGeneralFailureErr = -9070; + +const int kGenericApplicationIcon = 1095782476; + +const int kGenericApplicationIconResource = -3996; + +const int kGenericCDROMIcon = 1667523698; + +const int kGenericCDROMIconResource = -3987; + +const int kGenericComponentIcon = 1953001063; + +const int kGenericControlPanelIcon = 1095782467; + +const int kGenericControlStripModuleIcon = 1935959414; + +const int kGenericDeskAccessoryIcon = 1095782468; + +const int kGenericDeskAccessoryIconResource = -3991; + +const int kGenericDocumentIcon = 1685021557; + +const int kGenericDocumentIconResource = -4000; + +const int kGenericEditionFileIcon = 1701082214; + +const int kGenericEditionFileIconResource = -3989; + +const int kGenericExtensionIcon = 1229867348; + +const int kGenericExtensionIconResource = -16415; + +const int kGenericFileServerIcon = 1936881266; + +const int kGenericFileServerIconResource = -3972; + +const int kGenericFloppyIcon = 1718382713; + +const int kGenericFolderIcon = 1718379634; + +const int kGenericFolderIconResource = -3999; + +const int kGenericFontIcon = 1717987692; + +const int kGenericFontScalerIcon = 1935895666; + +const int kGenericHardDiskIcon = 1751413611; + +const int kGenericHardDiskIconResource = -3995; + +const int kGenericIDiskIcon = 1768190827; + +const int kGenericKCItemAttr = 1734700641; + +const int kGenericMoverObjectIcon = 1836021362; + +const int kGenericMoverObjectIconResource = -3969; + +const int kGenericNetworkIcon = 1735288180; + +const int kGenericPCCardIcon = 1885564259; + +const int kGenericPasswordKCItemClass = 1734700656; + +const int kGenericPreferencesIcon = 1886545254; + +const int kGenericPreferencesIconResource = -3971; + +const int kGenericQueryDocumentIcon = 1902473849; + +const int kGenericQueryDocumentIconResource = -16506; + +const int kGenericRAMDiskIcon = 1918987620; + +const int kGenericRAMDiskIconResource = -3988; + +const int kGenericRemovableMediaIcon = 1919774582; + +const int kGenericSharedLibaryIcon = 1936223330; + +const int kGenericStationeryIcon = 1935961955; + +const int kGenericStationeryIconResource = -3985; + +const int kGenericSuitcaseIcon = 1937074548; + +const int kGenericSuitcaseIconResource = -3970; + +const int kGenericURLIcon = 1735750252; + +const int kGenericWORMIcon = 2003792493; + +const int kGenericWindowIcon = 1735879022; + +@Deprecated('Deprecated') +const int kGetDebugOption = 1; + +const int kGetPowerInfo = 21; + +const int kGetPowerLevel = 16; + +const int kGetSelectedText = 1735686260; + +const int kGetWakeOnNetInfo = 22; + +const int kGlyphCollectionAdobeCNS1 = 1; + +const int kGlyphCollectionAdobeGB1 = 2; + +const int kGlyphCollectionAdobeJapan1 = 3; + +const int kGlyphCollectionAdobeJapan2 = 4; + +const int kGlyphCollectionAdobeKorea1 = 5; + +const int kGlyphCollectionGID = 0; + +const int kGlyphCollectionUnspecified = 255; + +const int kGridIcon = 1735551332; + +const int kGroupID2Name = 2; + +const int kGroupIcon = 1735554416; + +const int kGroupName2ID = 4; + +const int kGuestUserIcon = 1735750514; + +const int kHFSAllocationFileID = 6; + +const int kHFSAttributeDataFileID = 13; + +const int kHFSAttributesFileID = 8; + +const int kHFSAutoCandidateBit = 11; + +const int kHFSAutoCandidateMask = 2048; + +const int kHFSBadBlockFileID = 5; + +const int kHFSBinaryCompare = 188; + +const int kHFSBogusExtentFileID = 15; + +const int kHFSBootVolumeInconsistentBit = 11; + +const int kHFSBootVolumeInconsistentMask = 2048; + +const int kHFSCaseFolding = 207; + +const int kHFSCatExpandedTimesBit = 12; + +const int kHFSCatExpandedTimesMask = 4096; + +const int kHFSCatalogFileID = 4; + +const int kHFSCatalogKeyMaximumLength = 37; + +const int kHFSCatalogKeyMinimumLength = 6; + +const int kHFSCatalogNodeIDsReusedBit = 12; + +const int kHFSCatalogNodeIDsReusedMask = 4096; + +const int kHFSContentProtectionBit = 30; + +const int kHFSContentProtectionMask = 1073741824; + +const int kHFSDoNotFastDevPinBit = 9; + +const int kHFSDoNotFastDevPinMask = 512; + +const int kHFSExpandedTimesBit = 29; + +const int kHFSExpandedTimesMask = 536870912; + +const int kHFSExtentDensity = 3; + +const int kHFSExtentKeyMaximumLength = 7; + +const int kHFSExtentsFileID = 3; + +const int kHFSFastDevCandidateBit = 10; + +const int kHFSFastDevCandidateMask = 1024; + +const int kHFSFastDevPinnedBit = 8; + +const int kHFSFastDevPinnedMask = 256; + +const int kHFSFileLockedBit = 0; + +const int kHFSFileLockedMask = 1; + +const int kHFSFileRecord = 512; + +const int kHFSFileThreadRecord = 1024; + +const int kHFSFirstUserCatalogNodeID = 16; + +const int kHFSFolderRecord = 256; + +const int kHFSFolderThreadRecord = 768; + +const int kHFSHasAttributesBit = 2; + +const int kHFSHasAttributesMask = 4; + +const int kHFSHasChildLinkBit = 6; + +const int kHFSHasChildLinkMask = 64; + +const int kHFSHasDateAddedBit = 7; + +const int kHFSHasDateAddedMask = 128; + +const int kHFSHasFolderCountBit = 4; + +const int kHFSHasFolderCountMask = 16; + +const int kHFSHasLinkChainBit = 5; + +const int kHFSHasLinkChainMask = 32; + +const int kHFSHasSecurityBit = 3; + +const int kHFSHasSecurityMask = 8; + +const int kHFSJMountVersion = 1212568394; + +const int kHFSMDBAttributesMask = 33664; + +const int kHFSMaxAttrNameLen = 127; + +const int kHFSMaxFileNameChars = 31; + +const int kHFSMaxVolumeNameChars = 27; + +const int kHFSPlusAttrExtents = 48; + +const int kHFSPlusAttrForkData = 32; + +const int kHFSPlusAttrInlineData = 16; + +const int kHFSPlusAttrMinNodeSize = 4096; + +const int kHFSPlusCatalogKeyMaximumLength = 516; + +const int kHFSPlusCatalogKeyMinimumLength = 6; + +const int kHFSPlusCatalogMinNodeSize = 4096; + +const int kHFSPlusCreator = 1751544619; + +const int kHFSPlusExtentDensity = 8; + +const int kHFSPlusExtentKeyMaximumLength = 10; + +const int kHFSPlusExtentMinNodeSize = 512; + +const int kHFSPlusFileRecord = 2; + +const int kHFSPlusFileThreadRecord = 4; + +const int kHFSPlusFolderRecord = 1; + +const int kHFSPlusFolderThreadRecord = 3; + +const int kHFSPlusMaxFileNameChars = 255; + +const int kHFSPlusMountVersion = 825241136; + +const int kHFSPlusSigWord = 18475; + +const int kHFSPlusVersion = 4; + +const int kHFSRepairCatalogFileID = 14; + +const int kHFSRootFolderID = 2; + +const int kHFSRootParentID = 1; + +const int kHFSSigWord = 16964; + +const int kHFSStartupFileID = 7; + +const int kHFSThreadExistsBit = 1; + +const int kHFSThreadExistsMask = 2; + +const int kHFSUnusedNodeFixBit = 31; + +const int kHFSUnusedNodeFixMask = -2147483648; + +const int kHFSUnusedNodesFixDate = -974183296; + +const int kHFSUnusedNodesFixExpandedDate = 1237939200; + +const int kHFSVolumeHardwareLockBit = 7; + +const int kHFSVolumeHardwareLockMask = 128; + +const int kHFSVolumeInconsistentBit = 14; + +const int kHFSVolumeInconsistentMask = 16384; + +const int kHFSVolumeJournaledBit = 13; + +const int kHFSVolumeJournaledMask = 8192; + +const int kHFSVolumeNoCacheRequiredBit = 10; + +const int kHFSVolumeNoCacheRequiredMask = 1024; + +const int kHFSVolumeSoftwareLockBit = 15; + +const int kHFSVolumeSoftwareLockMask = 32768; + +const int kHFSVolumeSparedBlocksBit = 9; + +const int kHFSVolumeSparedBlocksMask = 512; + +const int kHFSVolumeUnmountedBit = 8; + +const int kHFSVolumeUnmountedMask = 256; + +const int kHFSXSigWord = 18520; + +const int kHFSXVersion = 5; + +const int kHIDBadLogPhysValuesErr = -13942; + +const int kHIDBadLogicalMaximumErr = -13933; + +const int kHIDBadLogicalMinimumErr = -13934; + +const int kHIDBadParameterErr = -13938; + +const int kHIDBaseError = -13950; + +const int kHIDBufferTooSmallErr = -13948; + +const int kHIDDeviceNotReady = -13910; + +const int kHIDEndOfDescriptorErr = -13936; + +const int kHIDIncompatibleReportErr = -13943; + +const int kHIDInvalidPreparsedDataErr = -13944; + +const int kHIDInvalidRangePageErr = -13923; + +const int kHIDInvalidReportLengthErr = -13940; + +const int kHIDInvalidReportTypeErr = -13941; + +const int kHIDInvertedLogicalRangeErr = -13932; + +const int kHIDInvertedPhysicalRangeErr = -13931; + +const int kHIDInvertedUsageRangeErr = -13929; + +const int kHIDNotEnoughMemoryErr = -13937; + +const int kHIDNotValueArrayErr = -13945; + +const int kHIDNullPointerErr = -13939; + +const int kHIDNullStateErr = -13949; + +const int kHIDReportCountZeroErr = -13925; + +const int kHIDReportIDZeroErr = -13924; + +const int kHIDReportSizeZeroErr = -13926; + +const int kHIDSuccess = 0; + +const int kHIDUnmatchedDesignatorRangeErr = -13927; + +const int kHIDUnmatchedStringRangeErr = -13928; + +const int kHIDUnmatchedUsageRangeErr = -13930; + +const int kHIDUsageNotFoundErr = -13946; + +const int kHIDUsagePageZeroErr = -13935; + +const int kHIDValueOutOfRangeErr = -13947; + +const int kHIDVersionIncompatibleErr = -13909; + +const int kHIShapeEnumerateInit = 1; + +const int kHIShapeEnumerateRect = 2; + +const int kHIShapeEnumerateTerminate = 3; + +const int kHIShapeParseFromBottom = 1; + +const int kHIShapeParseFromBottomRight = 3; + +const int kHIShapeParseFromLeft = 0; + +const int kHIShapeParseFromRight = 2; + +const int kHIShapeParseFromTop = 0; + +const int kHIShapeParseFromTopLeft = 0; + +const int kHTTPServerIcon = 1752461427; + +const int kHalfWidthCJKRomanSelector = 0; + +const int kHalfWidthIdeographsSelector = 2; + +const int kHalfWidthTextSelector = 2; + +@Deprecated('Deprecated') +const int kHandleIsResourceBit = 5; + +@Deprecated('Deprecated') +const int kHandleIsResourceMask = 32; + +@Deprecated('Deprecated') +const int kHandleLockedBit = 7; + +@Deprecated('Deprecated') +const int kHandleLockedMask = 128; + +@Deprecated('Deprecated') +const int kHandlePurgeableBit = 6; + +@Deprecated('Deprecated') +const int kHandlePurgeableMask = 64; + +const int kHanjaToHangulAltOneSelector = 7; + +const int kHanjaToHangulAltThreeSelector = 9; + +const int kHanjaToHangulAltTwoSelector = 8; + +const int kHanjaToHangulSelector = 1; + +const int kHardLinkFileType = 1751936619; + +const int kHardwareCursorDescriptorMajorVersion = 1; + +const int kHardwareCursorDescriptorMinorVersion = 0; + +const int kHardwareCursorInfoMajorVersion = 1; + +const int kHardwareCursorInfoMinorVersion = 0; + +const int kHasBeenInited = 256; + +const int kHasBundle = 8192; + +const int kHasCustomIcon = 1024; + +const int kHasNoINITs = 128; + +const int kHebrewFigureSpaceVariant = 1; + +const int kHebrewStandardVariant = 0; + +const int kHelpFolderIcon = -999789456; + +@Deprecated('Deprecated') +const int kHelpFolderType = -999789456; + +const int kHelpIcon = 1751477360; + +const int kHelpIconResource = -20271; + +const int kHideDiacriticsSelector = 1; + +const int kHiraganaToKatakanaSelector = 2; + +const int kHistoricalLigaturesOffSelector = 21; + +const int kHistoricalLigaturesOnSelector = 20; + +const int kHojoCharactersSelector = 12; + +const int kHorizontalConstraint = 2; + +const int kHuge1BitMask = 1768122403; + +const int kHuge32BitData = 1768436530; + +const int kHuge4BitData = 1768122420; + +const int kHuge8BitData = 1768122424; + +const int kHuge8BitMask = 1748528491; + +const int kHyphenToEnDashOffSelector = 3; + +const int kHyphenToEnDashOnSelector = 2; + +const int kHyphenToMinusOffSelector = 1; + +const int kHyphenToMinusOnSelector = 0; + +const int kHyphensToEmDashOffSelector = 1; + +const int kHyphensToEmDashOnSelector = 0; + +const int kICAttrLockedBit = 0; + +const int kICAttrLockedMask = 1; + +const int kICAttrNoChange = -1; + +const int kICAttrVolatileBit = 1; + +const int kICAttrVolatileMask = 2; + +const int kICComponentInterfaceVersion = 262144; + +const int kICComponentInterfaceVersion0 = 0; + +const int kICComponentInterfaceVersion1 = 65536; + +const int kICComponentInterfaceVersion2 = 131072; + +const int kICComponentInterfaceVersion3 = 196608; + +const int kICComponentInterfaceVersion4 = 262144; + +const int kICComponentVersion = 0; + +const int kICCreator = 1229144432; + +const int kICEditPreferenceEvent = 1229144432; + +const int kICEditPreferenceEventClass = 1229144432; + +const int kICFileSpecHeaderSize = 106; + +const int kICFileType = 1229144432; + +const int kICMapBinaryBit = 0; + +const int kICMapBinaryMask = 1; + +const int kICMapDataForkBit = 2; + +const int kICMapDataForkMask = 4; + +const int kICMapFixedLength = 22; + +const int kICMapNotIncomingBit = 4; + +const int kICMapNotIncomingMask = 16; + +const int kICMapNotOutgoingBit = 5; + +const int kICMapNotOutgoingMask = 32; + +const int kICMapPostBit = 3; + +const int kICMapPostMask = 8; + +const int kICMapResourceForkBit = 1; + +const int kICMapResourceForkMask = 2; + +const int kICNilProfileID = 0; + +const int kICNoUserInteractionBit = 0; + +const int kICNoUserInteractionMask = 1; + +const int kICNumVersion = 1; + +const int kICServicesTCPBit = 0; + +const int kICServicesTCPMask = 1; + +const int kICServicesUDPBit = 1; + +const int kICServicesUDPMask = 2; + +const int kIOAnalogSetupExpected = 2; + +const int kIOAnalogSignalLevel_0700_0000 = 3; + +const int kIOAnalogSignalLevel_0700_0300 = 0; + +const int kIOAnalogSignalLevel_0714_0286 = 1; + +const int kIOAnalogSignalLevel_1000_0400 = 2; + +const int kIOAsyncCalloutCount = 3; + +const int kIOAsyncCalloutFuncIndex = 1; + +const int kIOAsyncCalloutRefconIndex = 2; + +const int kIOAsyncCompletionNotificationType = 150; + +const int kIOAsyncReservedCount = 1; + +const int kIOAsyncReservedIndex = 0; + +const int kIOBitsPerColorComponent10 = 4; + +const int kIOBitsPerColorComponent12 = 8; + +const int kIOBitsPerColorComponent16 = 16; + +const int kIOBitsPerColorComponent6 = 1; + +const int kIOBitsPerColorComponent8 = 2; + +const int kIOBitsPerColorComponentNotSupported = 0; + +const int kIOBuiltinPanelPowerAttribute = 1886284912; + +const int kIOCLUTPixels = 0; + +const int kIOCSyncDisable = 4; + +const int kIOCapturedAttribute = 1667330148; + +const int kIOClamshellStateAttribute = 1668047213; + +const int kIOColorimetryAdobeRGB = 8; + +const int kIOColorimetryBT2020 = 256; + +const int kIOColorimetryBT2100 = 512; + +const int kIOColorimetryBT601 = 64; + +const int kIOColorimetryBT709 = 128; + +const int kIOColorimetryDCIP3 = 4; + +const int kIOColorimetryNativeRGB = 1; + +const int kIOColorimetryNotSupported = 0; + +const int kIOColorimetryWGRGB = 32; + +const int kIOColorimetrysRGB = 2; + +const int kIOColorimetryxvYCC = 16; + +const int kIOConnectMethodVarOutputSize = -3; + +const int kIOConnectionBuiltIn = 2048; + +const int kIOConnectionStereoSync = 32768; + +const int kIOCopybackCache = 3; + +const int kIOCopybackInnerCache = 5; + +const int kIOCursorControlAttribute = 1668445027; + +const int kIODPEventAutomatedTestRequest = 257; + +const int kIODPEventContentProtection = 258; + +const int kIODPEventForceRetrain = 3; + +const int kIODPEventIdle = 2; + +const int kIODPEventMCCS = 259; + +const int kIODPEventRemoteControlCommandPending = 256; + +const int kIODPEventSinkSpecific = 260; + +const int kIODPEventStart = 1; + +const int kIODSCBlockPredEnable = 32; + +const int kIODefaultCache = 0; + +const int kIODefaultMemoryType = 0; + +const int kIODeferCLUTSetAttribute = 1986227316; + +const int kIODetailedTimingValid = -2147483648; + +const int kIODigitalSignal = 1; + +const int kIODisplayAssertionConnectType = 61074; + +const int kIODisplayColorMode = 1668904310; + +const int kIODisplayDitherAll = 255; + +const int kIODisplayDitherDefault = 128; + +const int kIODisplayDitherDisable = 0; + +const int kIODisplayDitherFrameRateControl = 4; + +const int kIODisplayDitherRGBShift = 0; + +const int kIODisplayDitherSpatial = 1; + +const int kIODisplayDitherTemporal = 2; + +const int kIODisplayDitherYCbCr422Shift = 16; + +const int kIODisplayDitherYCbCr444Shift = 8; + +const int kIODisplayModeIDBootProgrammable = -5; + +const int kIODisplayModeIDReservedBase = -2147483648; + +const int kIODisplayNeedsCEAUnderscan = 1; + +const int kIODisplayPowerStateMinUsable = 1; + +const int kIODisplayPowerStateOff = 0; + +const int kIODisplayPowerStateOn = 2; + +const int kIODisplayRGBColorComponentBits10 = 4; + +const int kIODisplayRGBColorComponentBits12 = 8; + +const int kIODisplayRGBColorComponentBits14 = 16; + +const int kIODisplayRGBColorComponentBits16 = 32; + +const int kIODisplayRGBColorComponentBits6 = 1; + +const int kIODisplayRGBColorComponentBits8 = 2; + +const int kIODisplayRGBColorComponentBitsUnknown = 0; + +const int kIODisplayYCbCr422ColorComponentBits10 = 262144; + +const int kIODisplayYCbCr422ColorComponentBits12 = 524288; + +const int kIODisplayYCbCr422ColorComponentBits14 = 1048576; + +const int kIODisplayYCbCr422ColorComponentBits16 = 2097152; + +const int kIODisplayYCbCr422ColorComponentBits6 = 65536; + +const int kIODisplayYCbCr422ColorComponentBits8 = 131072; + +const int kIODisplayYCbCr422ColorComponentBitsUnknown = 0; + +const int kIODisplayYCbCr444ColorComponentBits10 = 1024; + +const int kIODisplayYCbCr444ColorComponentBits12 = 2048; + +const int kIODisplayYCbCr444ColorComponentBits14 = 4096; + +const int kIODisplayYCbCr444ColorComponentBits16 = 8192; + +const int kIODisplayYCbCr444ColorComponentBits6 = 256; + +const int kIODisplayYCbCr444ColorComponentBits8 = 512; + +const int kIODisplayYCbCr444ColorComponentBitsUnknown = 0; + +const int kIODriverPowerAttribute = 1685090167; + +const int kIODynamicRangeDolbyNormalMode = 4; + +const int kIODynamicRangeDolbyTunnelMode = 8; + +const int kIODynamicRangeHDR10 = 2; + +const int kIODynamicRangeNotSupported = 0; + +const int kIODynamicRangeSDR = 1; + +const int kIODynamicRangeTraditionalGammaHDR = 16; + +const int kIODynamicRangeTraditionalGammaSDR = 32; + +const int kIOFBAVSignalTypeDP = 16; + +const int kIOFBAVSignalTypeDVI = 2; + +const int kIOFBAVSignalTypeHDMI = 8; + +const int kIOFBAVSignalTypeUnknown = 0; + +const int kIOFBAVSignalTypeVGA = 1; + +const int kIOFBBitRateHBR = 10; + +const int kIOFBBitRateHBR2 = 20; + +const int kIOFBBitRateRBR = 6; + +const int kIOFBBlueGammaScaleAttribute = 1735617634; + +const int kIOFBChangedInterruptType = 1667788391; + +const int kIOFBConnectInterruptType = 1684236576; + +const int kIOFBDisplayPortInterruptType = 1685088626; + +const int kIOFBDisplayPortLinkChangeInterruptType = 1685089387; + +const int kIOFBDisplayPortTrainingAttribute = 1685091425; + +const int kIOFBDisplayState = 1685288052; + +const int kIOFBDisplayState_AlreadyActive = 1; + +const int kIOFBDisplayState_Mask = 7; + +const int kIOFBDisplayState_PipelineBlack = 4; + +const int kIOFBDisplayState_RestoredProfile = 2; + +const int kIOFBFrameInterruptType = 1718772077; + +const int kIOFBGreenGammaScaleAttribute = 1735617639; + +const int kIOFBHBLInterruptType = 1751280672; + +const int kIOFBHDCPLimit_AllowAll = 0; + +const int kIOFBHDCPLimit_NoHDCP1x = 1; + +const int kIOFBHDCPLimit_NoHDCP20Type0 = 2; + +const int kIOFBHDCPLimit_NoHDCP20Type1 = 4; + +const int kIOFBHDRMetaDataAttribute = 1751413357; + +const int kIOFBLimitHDCPAttribute = 1751409520; + +const int kIOFBLimitHDCPStateAttribute = 1934115907; + +const int kIOFBLinkDownspreadMax = 1; + +const int kIOFBLinkDownspreadNone = 0; + +const int kIOFBLinkPreEmphasisLevel0 = 0; + +const int kIOFBLinkPreEmphasisLevel1 = 1; + +const int kIOFBLinkPreEmphasisLevel2 = 2; + +const int kIOFBLinkPreEmphasisLevel3 = 3; + +const int kIOFBLinkScramblerAlternate = 1; + +const int kIOFBLinkScramblerNormal = 0; + +const int kIOFBLinkVoltageLevel0 = 0; + +const int kIOFBLinkVoltageLevel1 = 1; + +const int kIOFBLinkVoltageLevel2 = 2; + +const int kIOFBLinkVoltageLevel3 = 3; + +const int kIOFBMCCSInterruptType = 1835230067; + +const int kIOFBNS_Dim = 3; + +const int kIOFBNS_DisplayStateMask = 3840; + +const int kIOFBNS_DisplayStateShift = 8; + +const int kIOFBNS_Doze = 2; + +const int kIOFBNS_GenerationMask = 2147418112; + +const int kIOFBNS_GenerationShift = 16; + +const int kIOFBNS_MessageMask = 15; + +const int kIOFBNS_Rendezvous = -2023406815; + +const int kIOFBNS_Sleep = 0; + +const int kIOFBNS_UnDim = 4; + +const int kIOFBNS_Wake = 1; + +const int kIOFBOfflineInterruptType = 1919249782; + +const int kIOFBOnlineInterruptType = 1633969184; + +const int kIOFBRedGammaScaleAttribute = 1735617650; + +const int kIOFBServerConnectType = 0; + +const int kIOFBSharedConnectType = 1; + +const int kIOFBStop = 1937010544; + +const int kIOFBSystemAperture = 0; + +const int kIOFBUserRequestProbe = 1; + +const int kIOFBVBLInterruptType = 1986161696; + +const int kIOFBVariableRefreshRate = 1987211839; + +const int kIOFBWakeInterruptType = 1987535211; + +const int kIOFixedCLUTPixels = 1; + +const int kIOGDiagnoseConnectType = 38744; + +const int kIOGDiagnoseGTraceType = 11452; + +const int kIOHSyncDisable = 1; + +const int kIOHardwareCursorAttribute = 1668445042; + +const int kIOHibernatePreviewActive = 1; + +const int kIOHibernatePreviewUpdates = 2; + +const int kIOInhibitCache = 1; + +const int kIOInterestCalloutCount = 4; + +const int kIOInterestCalloutFuncIndex = 1; + +const int kIOInterestCalloutRefconIndex = 2; + +const int kIOInterestCalloutServiceIndex = 3; + +const int kIOInterlacedCEATiming = 4; + +const int kIOKitNoticationMsgSizeMask = 3; + +const int kIOKitNoticationTypeMask = 4095; + +const int kIOKitNoticationTypeSizeAdjShift = 30; + +const int kIOMapAnywhere = 1; + +const int kIOMapCacheMask = 3840; + +const int kIOMapCacheShift = 8; + +const int kIOMapCopybackCache = 768; + +const int kIOMapCopybackInnerCache = 1280; + +const int kIOMapDefaultCache = 0; + +const int kIOMapGuardedLarge = -2147483648; + +const int kIOMapGuardedMask = -1073741824; + +const int kIOMapGuardedSmall = 1073741824; + +const int kIOMapInhibitCache = 256; + +const int kIOMapOverwrite = 536870912; + +const int kIOMapPostedCombinedReordered = 2304; + +const int kIOMapPostedReordered = 2048; + +const int kIOMapPostedWrite = 1536; + +const int kIOMapPrefault = 268435456; + +const int kIOMapReadOnly = 4096; + +const int kIOMapRealTimeCache = 1792; + +const int kIOMapReference = 33554432; + +const int kIOMapStatic = 16777216; + +const int kIOMapUnique = 67108864; + +const int kIOMapUserOptionsMask = 4095; + +const int kIOMapWriteCombineCache = 1024; + +const int kIOMapWriteThruCache = 512; + +const int kIOMatchingCalloutCount = 3; + +const int kIOMatchingCalloutFuncIndex = 1; + +const int kIOMatchingCalloutRefconIndex = 2; + +const int kIOMaxBusStall10usec = 10000; + +const int kIOMaxBusStall20usec = 20000; + +const int kIOMaxBusStall25usec = 25000; + +const int kIOMaxBusStall30usec = 30000; + +const int kIOMaxBusStall40usec = 40000; + +const int kIOMaxBusStall5usec = 5000; + +const int kIOMaxBusStallNone = 0; + +const int kIOMaxPixelBits = 64; + +const int kIOMirrorAttribute = 1835627122; + +const int kIOMirrorDefault = 1; + +const int kIOMirrorDefaultAttribute = 1836213350; + +const int kIOMirrorForced = 2; + +const int kIOMirrorHWClipped = 1073741824; + +const int kIOMirrorIsMirrored = 536870912; + +const int kIOMirrorIsPrimary = -2147483648; + +const int kIOMonoDirectPixels = 3; + +const int kIOMonoInverseDirectPixels = 4; + +const int kIOMultiAlignedTiming = 64; + +const int kIONTSCTiming = 8; + +const int kIONoSeparateSyncControl = 64; + +const int kIOPALTiming = 16; + +const int kIOPixelEncodingNotSupported = 0; + +const int kIOPixelEncodingRGB444 = 1; + +const int kIOPixelEncodingYCbCr420 = 8; + +const int kIOPixelEncodingYCbCr422 = 4; + +const int kIOPixelEncodingYCbCr444 = 2; + +const int kIOPostedCombinedReordered = 9; + +const int kIOPostedReordered = 8; + +const int kIOPostedWrite = 6; + +const int kIOPowerAttribute = 1886353266; + +const int kIOPowerStateAttribute = 1886876275; + +const int kIORGBDirectPixels = 2; + +const int kIORGBSignedDirectPixels = 5; + +const int kIORGBSignedFloatingPointPixels = 6; + +const int kIORangeBitsPerColorComponent10 = 4; + +const int kIORangeBitsPerColorComponent12 = 8; + +const int kIORangeBitsPerColorComponent16 = 16; + +const int kIORangeBitsPerColorComponent6 = 1; + +const int kIORangeBitsPerColorComponent8 = 2; + +const int kIORangeBitsPerColorComponentNotSupported = 0; + +const int kIORangeColorimetryAdobeRGB = 8; + +const int kIORangeColorimetryBT2020 = 256; + +const int kIORangeColorimetryBT2100 = 512; + +const int kIORangeColorimetryBT601 = 64; + +const int kIORangeColorimetryBT709 = 128; + +const int kIORangeColorimetryDCIP3 = 4; + +const int kIORangeColorimetryNativeRGB = 1; + +const int kIORangeColorimetryNotSupported = 0; + +const int kIORangeColorimetryWGRGB = 32; + +const int kIORangeColorimetrysRGB = 2; + +const int kIORangeColorimetryxvYCC = 16; + +const int kIORangeDynamicRangeDolbyNormalMode = 4; + +const int kIORangeDynamicRangeDolbyTunnelMode = 8; + +const int kIORangeDynamicRangeHDR10 = 2; + +const int kIORangeDynamicRangeNotSupported = 0; + +const int kIORangeDynamicRangeSDR = 1; + +const int kIORangeDynamicRangeTraditionalGammaHDR = 16; + +const int kIORangeDynamicRangeTraditionalGammaSDR = 32; + +const int kIORangePixelEncodingNotSupported = 0; + +const int kIORangePixelEncodingRGB444 = 1; + +const int kIORangePixelEncodingYCbCr420 = 8; + +const int kIORangePixelEncodingYCbCr422 = 4; + +const int kIORangePixelEncodingYCbCr444 = 2; + +const int kIORangeSupportsCompositeSync = 4; + +const int kIORangeSupportsInterlacedCEATiming = 4; + +const int kIORangeSupportsInterlacedCEATimingWithConfirm = 8; + +const int kIORangeSupportsMultiAlignedTiming = 64; + +const int kIORangeSupportsSeparateSyncs = 1; + +const int kIORangeSupportsSignal_0700_0000 = 8; + +const int kIORangeSupportsSignal_0700_0300 = 1; + +const int kIORangeSupportsSignal_0714_0286 = 2; + +const int kIORangeSupportsSignal_1000_0400 = 4; + +const int kIORangeSupportsSyncOnGreen = 2; + +const int kIORangeSupportsVRR = 16; + +const int kIORangeSupportsVSyncSerration = 8; + +const int kIORealTimeCache = 7; + +const int kIORegistryIterateParents = 2; + +const int kIORegistryIterateRecursively = 1; + +const int kIOScaleCanBorderInsetOnly = 64; + +const int kIOScaleCanDownSamplePixels = 4; + +const int kIOScaleCanRotate = 32; + +const int kIOScaleCanScaleInterlaced = 8; + +const int kIOScaleCanSupportInset = 16; + +const int kIOScaleCanUpSamplePixels = 2; + +const int kIOScaleInvertX = 32; + +const int kIOScaleInvertY = 64; + +const int kIOScaleRotate0 = 0; + +const int kIOScaleRotate180 = 96; + +const int kIOScaleRotate270 = 80; + +const int kIOScaleRotate90 = 48; + +const int kIOScaleRotateFlags = 240; + +const int kIOScaleStretchOnly = 1; + +const int kIOScaleStretchToFit = 1; + +const int kIOScaleSwapAxes = 16; + +const int kIOScalingInfoValid = 1073741824; + +const int kIOServiceInteractionAllowed = 1; + +const int kIOServiceMatchedNotificationType = 101; + +const int kIOServiceMessageNotificationType = 160; + +const int kIOServicePublishNotificationType = 100; + +const int kIOServiceTerminatedNotificationType = 102; + +const int kIOSurfaceCopybackCache = 3; + +const int kIOSurfaceCopybackInnerCache = 5; + +const int kIOSurfaceDefaultCache = 0; + +const int kIOSurfaceInhibitCache = 1; + +const int kIOSurfaceMapCacheShift = 8; + +const int kIOSurfaceMapCopybackCache = 768; + +const int kIOSurfaceMapCopybackInnerCache = 1280; + +const int kIOSurfaceMapDefaultCache = 0; + +const int kIOSurfaceMapInhibitCache = 256; + +const int kIOSurfaceMapWriteCombineCache = 1024; + +const int kIOSurfaceMapWriteThruCache = 512; + +const int kIOSurfaceWriteCombineCache = 4; + +const int kIOSurfaceWriteThruCache = 2; + +const int kIOSyncOnBlue = 8; + +const int kIOSyncOnGreen = 16; + +const int kIOSyncOnRed = 32; + +const int kIOSyncPositivePolarity = 1; + +const int kIOSystemPowerAttribute = 1936750450; + +const int kIOSystemStateSleepDescriptionHibernateStateHibernating = 1; + +const int kIOSystemStateSleepDescriptionHibernateStateInactive = 0; + +const int kIOSystemStateSleepDescriptionHibernateStateWakingFromHibernate = 2; + +const int kIOTimingIDAppleNTSC_FF = 232; + +const int kIOTimingIDAppleNTSC_FFconv = 236; + +const int kIOTimingIDAppleNTSC_ST = 230; + +const int kIOTimingIDAppleNTSC_STconv = 234; + +const int kIOTimingIDApplePAL_FF = 240; + +const int kIOTimingIDApplePAL_FFconv = 244; + +const int kIOTimingIDApplePAL_ST = 238; + +const int kIOTimingIDApplePAL_STconv = 242; + +const int kIOTimingIDApple_0x0_0hz_Offline = 550; + +const int kIOTimingIDApple_1024x768_75hz = 210; + +const int kIOTimingIDApple_1152x870_75hz = 220; + +const int kIOTimingIDApple_512x384_60hz = 130; + +const int kIOTimingIDApple_560x384_60hz = 135; + +const int kIOTimingIDApple_640x400_67hz = 145; + +const int kIOTimingIDApple_640x480_67hz = 140; + +const int kIOTimingIDApple_640x818_75hz = 165; + +const int kIOTimingIDApple_640x870_75hz = 160; + +const int kIOTimingIDApple_832x624_75hz = 170; + +const int kIOTimingIDApple_FixedRateLCD = 42; + +const int kIOTimingIDFilmRate_48hz = 410; + +const int kIOTimingIDGTF_640x480_120hz = 159; + +const int kIOTimingIDInvalid = 0; + +const int kIOTimingIDSMPTE240M_60hz = 400; + +const int kIOTimingIDSony_1600x1024_76hz = 500; + +const int kIOTimingIDSony_1920x1080_60hz = 510; + +const int kIOTimingIDSony_1920x1080_72hz = 520; + +const int kIOTimingIDSony_1920x1200_76hz = 540; + +const int kIOTimingIDVESA_1024x768_60hz = 190; + +const int kIOTimingIDVESA_1024x768_70hz = 200; + +const int kIOTimingIDVESA_1024x768_75hz = 204; + +const int kIOTimingIDVESA_1024x768_85hz = 208; + +const int kIOTimingIDVESA_1152x864_75hz = 215; + +const int kIOTimingIDVESA_1280x1024_60hz = 260; + +const int kIOTimingIDVESA_1280x1024_75hz = 262; + +const int kIOTimingIDVESA_1280x1024_85hz = 268; + +const int kIOTimingIDVESA_1280x960_60hz = 252; + +const int kIOTimingIDVESA_1280x960_75hz = 250; + +const int kIOTimingIDVESA_1280x960_85hz = 254; + +const int kIOTimingIDVESA_1360x768_60hz = 590; + +const int kIOTimingIDVESA_1600x1200_60hz = 280; + +const int kIOTimingIDVESA_1600x1200_65hz = 282; + +const int kIOTimingIDVESA_1600x1200_70hz = 284; + +const int kIOTimingIDVESA_1600x1200_75hz = 286; + +const int kIOTimingIDVESA_1600x1200_80hz = 288; + +const int kIOTimingIDVESA_1600x1200_85hz = 289; + +const int kIOTimingIDVESA_1792x1344_60hz = 296; + +const int kIOTimingIDVESA_1792x1344_75hz = 298; + +const int kIOTimingIDVESA_1856x1392_60hz = 300; + +const int kIOTimingIDVESA_1856x1392_75hz = 302; + +const int kIOTimingIDVESA_1920x1440_60hz = 304; + +const int kIOTimingIDVESA_1920x1440_75hz = 306; + +const int kIOTimingIDVESA_640x480_60hz = 150; + +const int kIOTimingIDVESA_640x480_72hz = 152; + +const int kIOTimingIDVESA_640x480_75hz = 154; + +const int kIOTimingIDVESA_640x480_85hz = 158; + +const int kIOTimingIDVESA_800x600_56hz = 180; + +const int kIOTimingIDVESA_800x600_60hz = 182; + +const int kIOTimingIDVESA_800x600_72hz = 184; + +const int kIOTimingIDVESA_800x600_75hz = 186; + +const int kIOTimingIDVESA_800x600_85hz = 188; + +const int kIOTimingIDVESA_848x480_60hz = 570; + +const int kIOTimingRangeV1 = 0; + +const int kIOTimingRangeV2 = 2; + +const int kIOTriStateSyncs = 128; + +const int kIOVRAMSaveAttribute = 1987212150; + +const int kIOVSyncDisable = 2; + +const int kIOWSAA_Accelerated = 1; + +const int kIOWSAA_DeferEnd = 512; + +const int kIOWSAA_DeferStart = 256; + +const int kIOWSAA_DriverOpen = 5; + +const int kIOWSAA_From_Accelerated = 2; + +const int kIOWSAA_Hibernate = 4; + +const int kIOWSAA_NonConsoleDevice = 1024; + +const int kIOWSAA_Reserved = -268435456; + +const int kIOWSAA_Sleep = 4; + +const int kIOWSAA_StateMask = 15; + +const int kIOWSAA_To_Accelerated = 3; + +const int kIOWSAA_Transactional = 16; + +const int kIOWSAA_Unaccelerated = 0; + +const int kIOWindowServerActiveAttribute = 2004054646; + +const int kIOWriteCombineCache = 4; + +const int kIOWriteThruCache = 2; + +const int kIPFileServerIcon = 1769173622; + +const int kISOLatin1MusicCDVariant = 1; + +const int kISOLatin1StandardVariant = 0; + +const int kISOLatinArabicExplicitOrderVariant = 2; + +const int kISOLatinArabicImplicitOrderVariant = 0; + +const int kISOLatinArabicVisualOrderVariant = 1; + +const int kISOLatinHebrewExplicitOrderVariant = 2; + +const int kISOLatinHebrewImplicitOrderVariant = 0; + +const int kISOLatinHebrewVisualOrderVariant = 1; + +@Deprecated('Deprecated') +const int kISSDownloadsFolderType = 1769173860; + +const int kISpBufferToSmallErr = -30422; + +const int kISpDeviceActiveErr = -30428; + +const int kISpDeviceInactiveErr = -30426; + +const int kISpElementInListErr = -30423; + +const int kISpElementNotInListErr = -30424; + +const int kISpInternalErr = -30420; + +const int kISpListBusyErr = -30429; + +const int kISpSystemActiveErr = -30427; + +const int kISpSystemInactiveErr = -30425; + +const int kISpSystemListErr = -30421; + +const int kIconFamilyType = 1768124019; + +const int kIconServices1024PixelDataARGB = 1768108336; + +const int kIconServices128PixelDataARGB = 1768108087; + +const int kIconServices16PixelDataARGB = 1768108084; + +const int kIconServices256PixelDataARGB = 1768108088; + +const int kIconServices32PixelDataARGB = 1768108085; + +const int kIconServices48PixelDataARGB = 1768108086; + +const int kIconServices512PixelDataARGB = 1768108089; + +const int kIconServicesCatalogInfoMask = 531550; + +const int kIconServicesNoBadgeFlag = 1; + +const int kIconServicesNormalUsageFlag = 0; + +const int kIconServicesUpdateIfNeededFlag = 2; + +const int kIdeographicAltFiveSelector = 5; + +const int kIdeographicAltFourSelector = 4; + +const int kIdeographicAltOneSelector = 1; + +const int kIdeographicAltThreeSelector = 3; + +const int kIdeographicAltTwoSelector = 2; + +const int kIdeographicAlternativesType = 30; + +const int kIdeographicSpacingType = 26; + +const int kIdleKCEvent = 0; + +const int kIdleKCEventMask = 1; + +const int kIllegalClockValueErr = -8852; + +@Deprecated('Deprecated') +const int kIllegalInstructionException = 1; + +const int kIlluminatedCapsSelector = 3; + +const int kImmediate = 0; + +@Deprecated('Deprecated') +const int kInDeferredTaskMask = 32; + +@Deprecated('Deprecated') +const int kInNestedInterruptMask = 128; + +@Deprecated('Deprecated') +const int kInSecondaryIntHandlerMask = 64; + +const int kInUseErr = -9077; + +@Deprecated('Deprecated') +const int kInVBLTaskMask = 16; + +@Deprecated('Deprecated') +const int kIndexFilesFolderType = 1768842360; + +const int kInequalityLigaturesOffSelector = 7; + +const int kInequalityLigaturesOnSelector = 6; + +const int kInferiorsSelector = 2; + +const int kInitialCapsAndSmallCapsSelector = 5; + +const int kInitialCapsSelector = 4; + +@Deprecated('Deprecated') +const int kInputManagersFolderType = 1768845428; + +@Deprecated('Deprecated') +const int kInputMethodsFolderType = 1768845414; + +@Deprecated('Deprecated') +const int kInstallerLogsFolderType = 1768712038; + +@Deprecated('Deprecated') +const int kInstallerReceiptsFolderType = 1919119476; + +@Deprecated('Deprecated') +const int kInstructionBreakpointException = 10; + +@Deprecated('Deprecated') +const int kIntegerException = 12; + +const int kInternationResourcesIcon = 1768319340; + +const int kInternationalResourcesIcon = 1768319340; + +const int kInternationalSymbolsSelector = 5; + +const int kInternetEventClass = 1196773964; + +const int kInternetFolderIcon = 1768846532; + +@Deprecated('Deprecated') +const int kInternetFolderType = 1768846532; + +const int kInternetLocationAFP = 1768710502; + +const int kInternetLocationAppleShareIcon = 1768710502; + +const int kInternetLocationAppleTalk = 1768710516; + +const int kInternetLocationAppleTalkZoneIcon = 1768710516; + +const int kInternetLocationCreator = 1685217639; + +const int kInternetLocationFTP = 1768711796; + +const int kInternetLocationFTPIcon = 1768711796; + +const int kInternetLocationFile = 1768711785; + +const int kInternetLocationFileIcon = 1768711785; + +const int kInternetLocationGeneric = 1768712037; + +const int kInternetLocationGenericIcon = 1768712037; + +const int kInternetLocationHTTP = 1768712308; + +const int kInternetLocationHTTPIcon = 1768712308; + +const int kInternetLocationMail = 1768713569; + +const int kInternetLocationMailIcon = 1768713569; + +const int kInternetLocationNNTP = 1768713847; + +const int kInternetLocationNSL = 1768713843; + +const int kInternetLocationNSLNeighborhoodIcon = 1768713843; + +const int kInternetLocationNewsIcon = 1768713847; + +const int kInternetPasswordKCItemClass = 1768842612; + +const int kInternetPlugInFolderIcon = -999398028; + +@Deprecated('Deprecated') +const int kInternetPlugInFolderType = -999398028; + +const int kInternetSearchSitesFolderIcon = 1769173862; + +@Deprecated('Deprecated') +const int kInternetSearchSitesFolderType = 1769173862; + +@Deprecated('Deprecated') +const int kInternetSitesFolderType = 1936290917; + +const int kInvalidCSClientErr = -9091; + +const int kInvalidDeviceNumber = -9089; + +const int kInvalidFont = 0; + +const int kInvalidFontFamily = -1; + +const int kInvalidGeneration = 0; + +const int kInvalidRegEntryErr = -9081; + +const int kInvertHighlighting = 0; + +const int kInvertedBoxAnnotationSelector = 9; + +const int kInvertedCircleAnnotationSelector = 4; + +const int kInvertedRoundedBoxAnnotationSelector = 10; + +const int kInvertingEncodedPixel = 4; + +const int kInvertingEncoding = 1; + +const int kInvertingEncodingShift = 2; + +const int kInvisibleKCItemAttr = 1768846953; + +const int kIsAlias = 32768; + +const int kIsInvisible = 16384; + +const int kIsOnDesk = 1; + +const int kIsShared = 64; + +const int kIsStationery = 2048; + +const int kIssuerKCItemAttr = 1769173877; + +const int kIssuerURLKCItemAttr = 1769304684; + +const int kItalicCJKRomanType = 32; + +const int kItemList = 1718383476; + +const int kJIJournalInFSMask = 1; + +const int kJIJournalNeedInitMask = 4; + +const int kJIJournalOnOtherDeviceMask = 2; + +const int kJIS1978CharactersSelector = 2; + +const int kJIS1983CharactersSelector = 3; + +const int kJIS1990CharactersSelector = 4; + +const int kJIS2004CharactersSelector = 11; + +const int kJUSTCurrentVersion = 65536; + +const int kJUSTKashidaPriority = 0; + +const int kJUSTLetterPriority = 2; + +const int kJUSTNullPriority = 3; + +const int kJUSTOverrideLimits = 16384; + +const int kJUSTOverridePriority = 32768; + +const int kJUSTOverrideUnlimited = 8192; + +const int kJUSTPriorityCount = 4; + +const int kJUSTPriorityMask = 3; + +const int kJUSTSpacePriority = 1; + +const int kJUSTStandardFormat = 0; + +const int kJUSTTag = 1786082164; + +const int kJUSTUnlimited = 4096; + +const int kJUSTnoGlyphcode = 65535; + +const int kJUSTpcConditionalAddAction = 2; + +const int kJUSTpcDecompositionAction = 0; + +const int kJUSTpcDuctilityAction = 4; + +const int kJUSTpcGlyphRepeatAddAction = 5; + +const int kJUSTpcGlyphStretchAction = 3; + +const int kJUSTpcUnconditionalAddAction = 1; + +const int kJapaneseBasicVariant = 2; + +const int kJapanesePostScriptPrintVariant = 4; + +const int kJapanesePostScriptScrnVariant = 3; + +const int kJapaneseStandardVariant = 0; + +const int kJapaneseStdNoVerticalsVariant = 1; + +const int kJapaneseVertAtKuPlusTenVariant = 5; + +const int kKCAuthTypeDPA = 1685086561; + +const int kKCAuthTypeDefault = 1684434036; + +const int kKCAuthTypeHTTPDigest = 1752462436; + +const int kKCAuthTypeMSN = 1836281441; + +const int kKCAuthTypeNTLM = 1853123693; + +const int kKCAuthTypeRPA = 1919967585; + +const int kKCProtocolTypeAFP = 1634103328; + +const int kKCProtocolTypeAppleTalk = 1635019883; + +const int kKCProtocolTypeFTP = 1718906912; + +const int kKCProtocolTypeFTPAccount = 1718906977; + +const int kKCProtocolTypeHTTP = 1752462448; + +const int kKCProtocolTypeIMAP = 1768776048; + +const int kKCProtocolTypeIRC = 1769104160; + +const int kKCProtocolTypeLDAP = 1818517872; + +const int kKCProtocolTypeNNTP = 1852732528; + +const int kKCProtocolTypePOP3 = 1886351411; + +const int kKCProtocolTypeSMTP = 1936553072; + +const int kKCProtocolTypeSOCKS = 1936685088; + +const int kKCProtocolTypeTelnet = 1952803950; + +const int kKERNCrossStream = 16384; + +const int kKERNCrossStreamResetNote = 2; + +const int kKERNCurrentVersion = 65536; + +const int kKERNFormatMask = 255; + +const int kKERNIndexArray = 3; + +const int kKERNLineEndKerning = 2; + +const int kKERNLineStart = 1; + +const int kKERNNoCrossKerning = 4; + +const int kKERNNoStakeNote = 1; + +const int kKERNNotApplied = 1; + +const int kKERNNotesRequested = 8; + +const int kKERNOrderedList = 0; + +const int kKERNResetCrossStream = 32768; + +const int kKERNSimpleArray = 2; + +const int kKERNStateTable = 1; + +const int kKERNTag = 1801810542; + +const int kKERNUnusedBits = 7936; + +const int kKERNVariation = 8192; + +const int kKERNVertical = 32768; + +const int kKERXActionOffsetMask = 16777215; + +const int kKERXActionTypeAnchorPoints = 1073741824; + +const int kKERXActionTypeControlPoints = 0; + +const int kKERXActionTypeCoordinates = -2147483648; + +const int kKERXActionTypeMask = -1073741824; + +const int kKERXControlPoint = 4; + +const int kKERXCrossStream = 1073741824; + +const int kKERXCrossStreamResetNote = 2; + +const int kKERXCurrentVersion = 131072; + +const int kKERXDescending = 268435456; + +const int kKERXFormatMask = 255; + +const int kKERXIndexArray = 6; + +const int kKERXLineEndKerning = 2; + +const int kKERXLineStart = 1; + +const int kKERXNoCrossKerning = 4; + +const int kKERXNoStakeNote = 1; + +const int kKERXNotApplied = 1; + +const int kKERXNotesRequested = 8; + +const int kKERXOrderedList = 0; + +const int kKERXResetCrossStream = 32768; + +const int kKERXSimpleArray = 2; + +const int kKERXStateTable = 1; + +const int kKERXTag = 1801810552; + +const int kKERXUnusedBits = 268435200; + +const int kKERXUnusedFlags = 1056964608; + +const int kKERXValuesAreLong = 1; + +const int kKERXVariation = 536870912; + +const int kKERXVertical = -2147483648; + +const int kKanaSpacingType = 25; + +const int kKanaToRomanizationSelector = 4; + +const int kKatakanaToHiraganaSelector = 3; + +const int kKeepArrangedIcon = 1634889319; + +@Deprecated('Deprecated') +const int kKernelExtensionsFolderType = 1801812084; + +const int kKeyboardLayoutIcon = 1801873772; + +@Deprecated('Deprecated') +const int kKeyboardLayoutsFolderType = 1802264953; + +@Deprecated('Deprecated') +const int kKeychainFolderType = 1801676910; + +const int kKeychainListChangedKCEvent = 11; + +const int kLCARCtlPointFormat = 1; + +const int kLCARCurrentVersion = 65536; + +const int kLCARLinearFormat = 0; + +const int kLCARTag = 1818452338; + +const int kLSAppDoesNotClaimTypeErr = -10820; + +const int kLSAppDoesNotSupportSchemeWarning = -10821; + +const int kLSAppInTrashErr = -10660; + +const int kLSApplicationNotFoundErr = -10814; + +const int kLSAttributeNotFoundErr = -10662; + +const int kLSAttributeNotSettableErr = -10663; + +const int kLSCannotSetInfoErr = -10823; + +const int kLSDataErr = -10817; + +const int kLSDataTooOldErr = -10816; + +const int kLSDataUnavailableErr = -10813; + +const int kLSExecutableIncorrectFormat = -10661; + +const int kLSGarbageCollectionUnsupportedErr = -10666; + +const int kLSIncompatibleApplicationVersionErr = -10664; + +const int kLSIncompatibleSystemVersionErr = -10825; + +@Deprecated('This option does nothing.') +const int kLSLaunchHasUntrustedContents = 4194304; + +@Deprecated('The Classic environment is no longer supported.') +const int kLSLaunchInClassic = 262144; + +const int kLSLaunchInProgressErr = -10818; + +@Deprecated('This option does nothing.') +const int kLSLaunchInhibitBGOnly = 128; + +@Deprecated('This option does nothing.') +const int kLSLaunchNoParams = 2048; + +@Deprecated('The Classic environment is no longer supported.') +const int kLSLaunchStartClassic = 131072; + +const int kLSMalformedLocErr = -10400; + +const int kLSMultipleSessionsNotSupportedErr = -10829; + +const int kLSNo32BitEnvironmentErr = -10386; + +const int kLSNoClassicEnvironmentErr = -10828; + +const int kLSNoExecutableErr = -10827; + +const int kLSNoLaunchPermissionErr = -10826; + +const int kLSNoRegistrationInfoErr = -10824; + +const int kLSNoRosettaEnvironmentErr = -10665; + +const int kLSNotAnApplicationErr = -10811; + +const int kLSNotInitializedErr = -10812; + +const int kLSNotRegisteredErr = -10819; + +const int kLSServerCommunicationErr = -10822; + +const int kLSSharedFileListDoNotMountVolumes = 2; + +const int kLSSharedFileListNoUserInteraction = 1; + +const int kLSUnknownCreator = 0; + +const int kLSUnknownErr = -10810; + +const int kLSUnknownType = 0; + +const int kLSUnknownTypeErr = -10815; + +const int kLTAGCurrentVersion = 1; + +const int kLabelKCItemAttr = 1818321516; + +const int kLanguageTagType = 39; + +const int kLarge1BitMask = 1229147683; + +const int kLarge32BitData = 1768698674; + +const int kLarge4BitData = 1768123444; + +const int kLarge4BitIconSize = 512; + +const int kLarge8BitData = 1768123448; + +const int kLarge8BitIconSize = 1024; + +const int kLarge8BitMask = 1815637355; + +const int kLargeIconSize = 256; + +@Deprecated('Deprecated') +const int kLastDomainConstant = -32760; + +const int kLastFeatureType = -1; + +const int kLastIOKitNotificationType = 199; + +const int kLastMagicBusyFiletype = 1652193599; + +const int kLaunchToGetTerminology = 32768; + +@Deprecated('Deprecated') +const int kLauncherItemsFolderType = 1818326382; + +const int kLetterCaseType = 3; + +@Deprecated('Deprecated') +const int kLibraryAssistantsFolderType = 1634956396; + +const int kLigaturesType = 1; + +const int kLineFinalSwashesOffSelector = 7; + +const int kLineFinalSwashesOnSelector = 6; + +const int kLineInitialSwashesOffSelector = 5; + +const int kLineInitialSwashesOnSelector = 4; + +const int kLinearPCMFormatFlagIsAlignedHigh = 16; + +const int kLinearPCMFormatFlagIsBigEndian = 2; + +const int kLinearPCMFormatFlagIsFloat = 1; + +const int kLinearPCMFormatFlagIsNonInterleaved = 32; + +const int kLinearPCMFormatFlagIsNonMixable = 64; + +const int kLinearPCMFormatFlagIsPacked = 8; + +const int kLinearPCMFormatFlagIsSignedInteger = 4; + +const int kLinearPCMFormatFlagsAreAllClear = -2147483648; + +const int kLinearPCMFormatFlagsSampleFractionMask = 8064; + +const int kLinearPCMFormatFlagsSampleFractionShift = 7; + +const int kLinguisticRearrangementOffSelector = 1; + +const int kLinguisticRearrangementOnSelector = 0; + +const int kLinguisticRearrangementType = 5; + +@Deprecated('Deprecated') +const int kLocalDomain = -32765; + +const int kLocalPPDDomain = 3; + +const int kLocaleAllPartsMask = 63; + +const int kLocaleAndVariantNameMask = 3; + +const int kLocaleLanguageMask = 1; + +const int kLocaleLanguageVariantMask = 2; + +const int kLocaleNameMask = 1; + +const int kLocaleOperationVariantNameMask = 2; + +const int kLocaleRegionMask = 16; + +const int kLocaleRegionVariantMask = 32; + +const int kLocaleScriptMask = 4; + +const int kLocaleScriptVariantMask = 8; + +const int kLocalesBufferTooSmallErr = -30001; + +const int kLocalesDefaultDisplayStatus = -30029; + +const int kLocalesFolderIcon = -999526557; + +@Deprecated('Deprecated') +const int kLocalesFolderType = -999526557; + +const int kLocalesTableFormatErr = -30002; + +const int kLockKCEvent = 1; + +const int kLockKCEventMask = 2; + +const int kLockedBadgeIcon = 1818387559; + +const int kLockedIcon = 1819239275; + +const int kLogosOffSelector = 7; + +const int kLogosOnSelector = 6; + +const int kLogsFolderType = 1819240307; + +const int kLowerCaseNumbersSelector = 0; + +const int kLowerCasePetiteCapsSelector = 2; + +const int kLowerCaseSmallCapsSelector = 1; + +const int kLowerCaseType = 37; + +@Deprecated('Deprecated') +const int kM68kISA = 0; + +@Deprecated('Deprecated') +const int kMIDIDriversFolderType = 1835623529; + +const int kMORTContextualType = 1; + +const int kMORTCoverDescending = 16384; + +const int kMORTCoverIgnoreVertical = 8192; + +const int kMORTCoverTypeMask = 15; + +const int kMORTCoverVertical = 32768; + +const int kMORTCurrInsertBefore = 2048; + +const int kMORTCurrInsertCountMask = 992; + +const int kMORTCurrInsertCountShift = 5; + +const int kMORTCurrInsertKashidaLike = 8192; + +const int kMORTCurrJustTableCountMask = 127; + +const int kMORTCurrJustTableCountShift = 0; + +const int kMORTCurrentVersion = 65536; + +const int kMORTDoInsertionsBefore = 128; + +const int kMORTInsertionType = 5; + +const int kMORTInsertionsCountMask = 63; + +const int kMORTIsSplitVowelPiece = 64; + +const int kMORTLigFormOffsetMask = 1073741823; + +const int kMORTLigFormOffsetShift = 2; + +const int kMORTLigLastAction = -2147483648; + +const int kMORTLigStoreLigature = 1073741824; + +const int kMORTLigatureType = 2; + +const int kMORTMarkInsertBefore = 1024; + +const int kMORTMarkInsertCountMask = 31; + +const int kMORTMarkInsertCountShift = 0; + +const int kMORTMarkInsertKashidaLike = 4096; + +const int kMORTMarkJustTableCountMask = 16256; + +const int kMORTMarkJustTableCountShift = 7; + +const int kMORTRearrangementType = 0; + +const int kMORTSwashType = 4; + +const int kMORTTag = 1836020340; + +const int kMORTraCDx = 6; + +const int kMORTraCDxA = 8; + +const int kMORTraCDxAB = 12; + +const int kMORTraCDxBA = 13; + +const int kMORTraDCx = 7; + +const int kMORTraDCxA = 9; + +const int kMORTraDCxAB = 14; + +const int kMORTraDCxBA = 15; + +const int kMORTraDx = 2; + +const int kMORTraDxA = 3; + +const int kMORTraDxAB = 10; + +const int kMORTraDxBA = 11; + +const int kMORTraNoAction = 0; + +const int kMORTraxA = 1; + +const int kMORTraxAB = 4; + +const int kMORTraxBA = 5; + +const int kMORXCoverDescending = 1073741824; + +const int kMORXCoverIgnoreVertical = 536870912; + +const int kMORXCoverLogicalOrder = 268435456; + +const int kMORXCoverTypeMask = 255; + +const int kMORXCoverVertical = -2147483648; + +const int kMORXCurrentVersion = 131072; + +const int kMORXTag = 1836020344; + +@Deprecated('Deprecated') +const int kMPAddressSpaceInfoVersion = 524289; + +@Deprecated('Deprecated') +const int kMPAllocate1024ByteAligned = 10; + +@Deprecated('Deprecated') +const int kMPAllocate16ByteAligned = 4; + +@Deprecated('Deprecated') +const int kMPAllocate32ByteAligned = 5; + +@Deprecated('Deprecated') +const int kMPAllocate4096ByteAligned = 12; + +@Deprecated('Deprecated') +const int kMPAllocate8ByteAligned = 3; + +@Deprecated('Deprecated') +const int kMPAllocateAltiVecAligned = 4; + +@Deprecated('Deprecated') +const int kMPAllocateClearMask = 1; + +@Deprecated('Deprecated') +const int kMPAllocateDefaultAligned = 0; + +@Deprecated('Deprecated') +const int kMPAllocateGloballyMask = 2; + +@Deprecated('Deprecated') +const int kMPAllocateInterlockAligned = 255; + +@Deprecated('Deprecated') +const int kMPAllocateMaxAlignment = 16; + +@Deprecated('Deprecated') +const int kMPAllocateNoCreateMask = 32; + +@Deprecated('Deprecated') +const int kMPAllocateNoGrowthMask = 16; + +@Deprecated('Deprecated') +const int kMPAllocateResidentMask = 4; + +@Deprecated('Deprecated') +const int kMPAllocateVMPageAligned = 254; + +@Deprecated('Deprecated') +const int kMPAllocateVMXAligned = 4; + +@Deprecated('Deprecated') +const int kMPAnyRemoteContext = 0; + +@Deprecated('Deprecated') +const int kMPAsyncInterruptRemoteContext = 3; + +const int kMPBlueBlockingErr = -29293; + +@Deprecated('Deprecated') +const int kMPCreateTaskNotDebuggableMask = 4; + +@Deprecated('Deprecated') +const int kMPCreateTaskSuspendedMask = 1; + +@Deprecated('Deprecated') +const int kMPCreateTaskTakesAllExceptionsMask = 2; + +@Deprecated('Deprecated') +const int kMPCreateTaskValidOptionsMask = 7; + +@Deprecated('Deprecated') +const int kMPCriticalRegionInfoVersion = 393217; + +const int kMPDeletedErr = -29295; + +@Deprecated('Deprecated') +const int kMPEventInfoVersion = 589825; + +@Deprecated('Deprecated') +const int kMPHighLevelDebugger = 536870912; + +const int kMPInsufficientResourcesErr = -29298; + +@Deprecated('Deprecated') +const int kMPInterruptRemoteContext = 2; + +const int kMPInvalidIDErr = -29299; + +const int kMPIterationEndErr = -29275; + +@Deprecated('Deprecated') +const int kMPLowLevelDebugger = 0; + +@Deprecated('Deprecated') +const int kMPMaxAllocSize = 1073741824; + +@Deprecated('Deprecated') +const int kMPMidLevelDebugger = 268435456; + +const int kMPNanokernelNeedsMemoryErr = -29294; + +@Deprecated('Deprecated') +const int kMPNoID = 0; + +@Deprecated('Deprecated') +const int kMPNotificationInfoVersion = 786433; + +@Deprecated('Deprecated') +const int kMPOwningProcessRemoteContext = 1; + +@Deprecated('Deprecated') +const int kMPPreserveTimerIDMask = 1; + +const int kMPPrivilegedErr = -29276; + +const int kMPProcessCreatedErr = -29288; + +const int kMPProcessTerminatedErr = -29289; + +@Deprecated('Deprecated') +const int kMPQueueInfoVersion = 262145; + +@Deprecated('Deprecated') +const int kMPSemaphoreInfoVersion = 327681; + +const int kMPTaskAbortedErr = -29297; + +@Deprecated('Deprecated') +const int kMPTaskBlocked = 0; + +const int kMPTaskBlockedErr = -29291; + +const int kMPTaskCreatedErr = -29290; + +@Deprecated('Deprecated') +const int kMPTaskInfoVersion = 3; + +@Deprecated('Deprecated') +const int kMPTaskPropagate = 0; + +@Deprecated('Deprecated') +const int kMPTaskPropagateMask = 1; + +@Deprecated('Deprecated') +const int kMPTaskReady = 1; + +@Deprecated('Deprecated') +const int kMPTaskResumeBranch = 2; + +@Deprecated('Deprecated') +const int kMPTaskResumeBranchMask = 4; + +@Deprecated('Deprecated') +const int kMPTaskResumeMask = 0; + +@Deprecated('Deprecated') +const int kMPTaskResumeStep = 1; + +@Deprecated('Deprecated') +const int kMPTaskResumeStepMask = 2; + +@Deprecated('Deprecated') +const int kMPTaskRunning = 2; + +@Deprecated('Deprecated') +const int kMPTaskState32BitMemoryException = 4; + +@Deprecated('Deprecated') +const int kMPTaskStateFPU = 1; + +@Deprecated('Deprecated') +const int kMPTaskStateMachine = 3; + +@Deprecated('Deprecated') +const int kMPTaskStateRegisters = 0; + +@Deprecated('Deprecated') +const int kMPTaskStateTaskInfo = 5; + +@Deprecated('Deprecated') +const int kMPTaskStateVectors = 2; + +const int kMPTaskStoppedErr = -29292; + +@Deprecated('Deprecated') +const int kMPTimeIsDeltaMask = 2; + +@Deprecated('Deprecated') +const int kMPTimeIsDurationMask = 4; + +const int kMPTimeoutErr = -29296; + +const int kMacArabicAlBayanVariant = 3; + +const int kMacArabicStandardVariant = 0; + +const int kMacArabicThuluthVariant = 2; + +const int kMacArabicTrueTypeVariant = 1; + +const int kMacCroatianCurrencySignVariant = 1; + +const int kMacCroatianDefaultVariant = 0; + +const int kMacCroatianEuroSignVariant = 2; + +const int kMacCyrillicCurrSignStdVariant = 1; + +const int kMacCyrillicCurrSignUkrVariant = 2; + +const int kMacCyrillicDefaultVariant = 0; + +const int kMacCyrillicEuroSignVariant = 3; + +const int kMacFarsiStandardVariant = 0; + +const int kMacFarsiTrueTypeVariant = 1; + +const int kMacGreekDefaultVariant = 0; + +const int kMacGreekEuroSignVariant = 2; + +const int kMacGreekNoEuroSignVariant = 1; + +const int kMacHebrewFigureSpaceVariant = 1; + +const int kMacHebrewStandardVariant = 0; + +const int kMacIcelandicStandardVariant = 0; + +const int kMacIcelandicStdCurrSignVariant = 2; + +const int kMacIcelandicStdDefaultVariant = 0; + +const int kMacIcelandicStdEuroSignVariant = 4; + +const int kMacIcelandicTTCurrSignVariant = 3; + +const int kMacIcelandicTTDefaultVariant = 1; + +const int kMacIcelandicTTEuroSignVariant = 5; + +const int kMacIcelandicTrueTypeVariant = 1; + +const int kMacJapaneseBasicVariant = 2; + +const int kMacJapanesePostScriptPrintVariant = 4; + +const int kMacJapanesePostScriptScrnVariant = 3; + +const int kMacJapaneseStandardVariant = 0; + +const int kMacJapaneseStdNoVerticalsVariant = 1; + +const int kMacJapaneseVertAtKuPlusTenVariant = 5; + +@Deprecated('Deprecated') +const int kMacMemoryMaximumMemoryManagerBlockSize = 2147483632; + +const int kMacOSReadMeFolderIcon = 1836020420; + +@Deprecated('Deprecated') +const int kMacOSReadMesFolderType = 1836020420; + +const int kMacRomanCurrencySignVariant = 1; + +const int kMacRomanDefaultVariant = 0; + +const int kMacRomanEuroSignVariant = 2; + +const int kMacRomanLatin1CroatianVariant = 8; + +const int kMacRomanLatin1DefaultVariant = 0; + +const int kMacRomanLatin1IcelandicVariant = 11; + +const int kMacRomanLatin1RomanianVariant = 14; + +const int kMacRomanLatin1StandardVariant = 2; + +const int kMacRomanLatin1TurkishVariant = 6; + +const int kMacRomanStandardVariant = 0; + +const int kMacRomanianCurrencySignVariant = 1; + +const int kMacRomanianDefaultVariant = 0; + +const int kMacRomanianEuroSignVariant = 2; + +const int kMacVT100CurrencySignVariant = 1; + +const int kMacVT100DefaultVariant = 0; + +const int kMacVT100EuroSignVariant = 2; + +const int kMachineNameStrID = -16395; + +const int kMagicBusyCreationDate = 1329266096; + +@Deprecated('Deprecated') +const int kMagicTemporaryItemsFolderType = 1836346736; + +const int kMale = 1; + +@Deprecated('Deprecated') +const int kManagedItemsFolderType = 1835101799; + +const int kMathSymbolsSelector = 6; + +const int kMathematicalExtrasType = 15; + +const int kMathematicalGreekOffSelector = 11; + +const int kMathematicalGreekOnSelector = 10; + +const int kMaxAsyncArgs = 16; + +const int kMaximumBlocksIn4GB = 8388607; + +const int kMicrosecondScale = 1000; + +const int kMillisecondScale = 1000000; + +const int kMini1BitMask = 1768123683; + +const int kMini4BitData = 1768123700; + +const int kMini8BitData = 1768123704; + +const int kModDateKCItemAttr = 1835295092; + +const int kModemOutOfMemory = -14000; + +const int kModemPreferencesMissing = -14001; + +const int kModemScriptMissing = -14002; + +@Deprecated('Deprecated') +const int kModemScriptsFolderType = -999461020; + +const int kMonospacedNumbersSelector = 0; + +const int kMonospacedTextSelector = 1; + +const int kMountedBadgeIcon = 1835164775; + +const int kMountedFolderAliasType = 1717661038; + +const int kMountedFolderIcon = 1835955300; + +const int kMountedFolderIconResource = -3977; + +@Deprecated('Deprecated') +const int kMovieDocumentsFolderType = 1835298659; + +@Deprecated('Deprecated') +const int kMultiprocessingFolderType = 1836087398; + +@Deprecated('Deprecated') +const int kMusicDocumentsFolderType = -1251709085; + +const int kNLCCharactersSelector = 13; + +const int kNSL68kContextNotSupported = -4170; + +const int kNSLBadClientInfoPtr = -4185; + +const int kNSLBadDataTypeErr = -4193; + +const int kNSLBadNetConnection = -4192; + +const int kNSLBadProtocolTypeErr = -4183; + +const int kNSLBadReferenceErr = -4195; + +const int kNSLBadServiceTypeErr = -4194; + +const int kNSLBadURLSyntax = -4172; + +const int kNSLBufferTooSmallForData = -4187; + +const int kNSLCannotContinueLookup = -4186; + +const int kNSLErrNullPtrError = -4176; + +const int kNSLInitializationFailed = -4200; + +const int kNSLInsufficientOTVer = -4197; + +const int kNSLInsufficientSysVer = -4198; + +const int kNSLInvalidPluginSpec = -4190; + +const int kNSLNoCarbonLib = -4173; + +const int kNSLNoContextAvailable = -4188; + +const int kNSLNoElementsInList = -4196; + +const int kNSLNoPluginsForSearch = -4179; + +const int kNSLNoPluginsFound = -4181; + +const int kNSLNoSupportForService = -4191; + +const int kNSLNotImplementedYet = -4175; + +const int kNSLNotInitialized = -4199; + +const int kNSLNullListPtr = -4184; + +const int kNSLNullNeighborhoodPtr = -4178; + +const int kNSLPluginLoadFailed = -4182; + +const int kNSLRequestBufferAlreadyInList = -4189; + +const int kNSLSchedulerError = -4171; + +const int kNSLSearchAlreadyInProgress = -4180; + +const int kNSLSomePluginsFailedToLoad = -4177; + +const int kNSLUILibraryNotAvailable = -4174; + +const int kNSpAddPlayerFailedErr = -30389; + +const int kNSpAddressInUseErr = -30380; + +const int kNSpAlreadyAdvertisingErr = -30374; + +const int kNSpAlreadyInitializedErr = -30361; + +const int kNSpCantBlockErr = -30398; + +const int kNSpConnectFailedErr = -30395; + +const int kNSpCreateGroupFailedErr = -30388; + +const int kNSpFeatureNotImplementedErr = -30381; + +const int kNSpFreeQExhaustedErr = -30378; + +const int kNSpGameTerminatedErr = -30394; + +const int kNSpHostFailedErr = -30365; + +const int kNSpInitializationFailedErr = -30360; + +const int kNSpInvalidAddressErr = -30377; + +const int kNSpInvalidDefinitionErr = -30390; + +const int kNSpInvalidGameRefErr = -30367; + +const int kNSpInvalidGroupIDErr = -30384; + +const int kNSpInvalidParameterErr = -30369; + +const int kNSpInvalidPlayerIDErr = -30383; + +const int kNSpInvalidProtocolListErr = -30392; + +const int kNSpInvalidProtocolRefErr = -30391; + +const int kNSpJoinFailedErr = -30399; + +const int kNSpMemAllocationErr = -30373; + +const int kNSpMessageTooBigErr = -30397; + +const int kNSpNameRequiredErr = -30382; + +const int kNSpNoGroupsErr = -30386; + +const int kNSpNoHostVolunteersErr = -30387; + +const int kNSpNoPlayersErr = -30385; + +const int kNSpNotAdvertisingErr = -30376; + +const int kNSpOTNotPresentErr = -30370; + +const int kNSpOTVersionTooOldErr = -30371; + +const int kNSpPipeFullErr = -30364; + +const int kNSpProtocolNotAvailableErr = -30366; + +const int kNSpRemovePlayerFailedErr = -30379; + +const int kNSpSendFailedErr = -30396; + +const int kNSpTimeoutErr = -30393; + +const int kNSpTopologyNotSupportedErr = -30362; + +const int kNameLocked = 4096; + +const int kNanosecondScale = 1; + +const int kNavCustomControlMessageFailedErr = -5697; + +const int kNavInvalidCustomControlMessageErr = -5698; + +const int kNavInvalidSystemConfigErr = -5696; + +const int kNavMissingKindStringErr = -5699; + +const int kNavWrongDialogClassErr = -5695; + +const int kNavWrongDialogStateErr = -5694; + +const int kNegativeKCItemAttr = 1852139361; + +@Deprecated('Deprecated') +const int kNetworkDomain = -32764; + +const int kNetworkPPDDomain = 4; + +const int kNeuter = 0; + +@Deprecated('Deprecated') +const int kNewDebugHeap = 4; + +const int kNewSizeParameter = 1718514554; + +@Deprecated('Deprecated') +const int kNewStyleHeap = 2; + +@Deprecated('Deprecated') +const int kNewSuspend = 1; + +const int kNextBody = 1; + +const int kNilOptions = 0; + +const int kNoAlternatesSelector = 0; + +const int kNoAnnotationSelector = 0; + +@Deprecated('Deprecated') +const int kNoByteCode = 0; + +const int kNoCJKItalicRomanSelector = 0; + +const int kNoCJKSymbolAlternativesSelector = 0; + +const int kNoCardBusCISErr = -9109; + +const int kNoCardEnablersFoundErr = -9099; + +const int kNoCardErr = -9071; + +const int kNoCardSevicesSocketsErr = -9080; + +const int kNoClientTableErr = -9097; + +const int kNoCompatibleNameErr = -9101; + +const int kNoConstraint = 0; + +const int kNoEnablerForCardErr = -9100; + +const int kNoEndingProsody = 1; + +const int kNoFilesIcon = 1852205420; + +const int kNoFolderIcon = 1852206180; + +const int kNoFractionsSelector = 0; + +const int kNoIOWindowRequestedErr = -9094; + +const int kNoIdeographicAlternativesSelector = 0; + +const int kNoMoreInterruptSlotsErr = -9096; + +const int kNoMoreItemsErr = -9078; + +const int kNoMoreTimerClientsErr = -9095; + +const int kNoOrnamentsSelector = 0; + +const int kNoProcess = 0; + +const int kNoRubyKanaSelector = 0; + +const int kNoSpeechInterrupt = 2; + +const int kNoStyleOptionsSelector = 0; + +const int kNoStylisticAlternatesSelector = 0; + +const int kNoSuchPowerSource = -13020; + +@Deprecated('Deprecated') +const int kNoThreadID = 0; + +const int kNoTimeOut = -2; + +const int kNoTransform = 0; + +const int kNoTransliterationSelector = 0; + +const int kNoUserAuthentication = 1; + +const int kNoWriteIcon = 1853321844; + +const int kNonFinalSwashesOffSelector = 9; + +const int kNonFinalSwashesOnSelector = 8; + +const int kNoneKCStopOn = 1; + +const int kNormalPositionSelector = 0; + +@Deprecated('Deprecated') +const int kNotPaged = 2; + +const int kNotReadyErr = -9103; + +const int kNotZVCapableErr = -9108; + +const int kNumberCaseType = 21; + +const int kNumberSpacingType = 6; + +const int kOPBDControlPointFormat = 1; + +const int kOPBDCurrentVersion = 65536; + +const int kOPBDDistanceFormat = 0; + +const int kOPBDTag = 1869636196; + +const int kOSAsyncCompleteMessageID = 57; + +const int kOSAsyncRef64Count = 8; + +const int kOSAsyncRef64Size = 64; + +const int kOSAsyncRefCount = 8; + +const int kOSAsyncRefSize = 32; + +const int kOSIZCodeInSharedLibraries = 11; + +const int kOSIZDontOpenResourceFile = 15; + +const int kOSIZOpenWithReadPermission = 13; + +const int kOSIZdontAcceptRemoteEvents = 14; + +const int kOSNotificationMessageID = 53; + +const int kOTAccessErr = -3152; + +const int kOTAddressBusyErr = -3172; + +const int kOTBadAddressErr = -3150; + +const int kOTBadConfigurationErr = -3282; + +const int kOTBadDataErr = -3159; + +const int kOTBadFlagErr = -3165; + +const int kOTBadNameErr = -3170; + +const int kOTBadOptionErr = -3151; + +const int kOTBadQLenErr = -3171; + +const int kOTBadReferenceErr = -3153; + +const int kOTBadSequenceErr = -3156; + +const int kOTBadSyncErr = -3179; + +const int kOTBufferOverflowErr = -3160; + +const int kOTCanceledErr = -3180; + +const int kOTClientNotInittedErr = -3279; + +const int kOTConfigurationChangedErr = -3283; + +const int kOTDuplicateFoundErr = -3216; + +const int kOTFlowErr = -3161; + +const int kOTIndOutErr = -3173; + +const int kOTLookErr = -3158; + +const int kOTNoAddressErr = -3154; + +const int kOTNoDataErr = -3162; + +const int kOTNoDisconnectErr = -3163; + +const int kOTNoError = 0; + +const int kOTNoReleaseErr = -3166; + +const int kOTNoStructureTypeErr = -3169; + +const int kOTNoUDErrErr = -3164; + +const int kOTNotFoundErr = -3201; + +const int kOTNotSupportedErr = -3167; + +const int kOTOutOfMemoryErr = -3211; + +const int kOTOutStateErr = -3155; + +const int kOTPortHasDiedErr = -3280; + +const int kOTPortLostConnection = -3285; + +const int kOTPortWasEjectedErr = -3281; + +const int kOTProtocolErr = -3178; + +const int kOTProviderMismatchErr = -3174; + +const int kOTQFullErr = -3177; + +const int kOTResAddressErr = -3176; + +const int kOTResQLenErr = -3175; + +const int kOTStateChangeErr = -3168; + +const int kOTSysErrorErr = -3157; + +const int kOTUserRequestedErr = -3284; + +const int kOffset2Pos = 1936994928; + +@Deprecated('Deprecated') +const int kOld68kRTA = 0; + +@Deprecated('Deprecated') +const int kOnAppropriateDisk = -32767; + +@Deprecated('Deprecated') +const int kOnSystemDisk = -32768; + +@Deprecated('Deprecated') +const int kOneByteCode = 1; + +@Deprecated('Deprecated') +const int kOpaqueAddressSpaceID = 8; + +@Deprecated('Deprecated') +const int kOpaqueAnyID = 0; + +@Deprecated('Deprecated') +const int kOpaqueAreaID = 11; + +@Deprecated('Deprecated') +const int kOpaqueCoherenceID = 10; + +@Deprecated('Deprecated') +const int kOpaqueConsoleID = 13; + +@Deprecated('Deprecated') +const int kOpaqueCpuID = 7; + +@Deprecated('Deprecated') +const int kOpaqueCriticalRegionID = 6; + +@Deprecated('Deprecated') +const int kOpaqueEventID = 9; + +@Deprecated('Deprecated') +const int kOpaqueNotificationID = 12; + +@Deprecated('Deprecated') +const int kOpaqueProcessID = 1; + +@Deprecated('Deprecated') +const int kOpaqueQueueID = 4; + +@Deprecated('Deprecated') +const int kOpaqueSemaphoreID = 5; + +@Deprecated('Deprecated') +const int kOpaqueTaskID = 2; + +@Deprecated('Deprecated') +const int kOpaqueTimerID = 3; + +@Deprecated('Deprecated') +const int kOpenDocEditorsFolderType = -999332762; + +@Deprecated('Deprecated') +const int kOpenDocFolderType = 1868853092; + +@Deprecated('Deprecated') +const int kOpenDocLibrariesFolderType = 1868852322; + +@Deprecated('Deprecated') +const int kOpenDocShellPlugInsFolderType = 1868854128; + +const int kOpenDropIconVariant = 1868853872; + +const int kOpenFolderIcon = 1868983396; + +const int kOpenFolderIconResource = -3997; + +const int kOpenIconVariant = 1869636974; + +const int kOrConnections = 268435454; + +const int kOrdinalsSelector = 3; + +const int kOrnamentSetsType = 16; + +const int kOutOfResourceErr = -9079; + +const int kOverlappingCharactersType = 13; + +const int kOwnedFolderIcon = 1870098020; + +const int kOwnedFolderIconResource = -3980; + +const int kOwnerID2Name = 1; + +const int kOwnerIcon = 1937077106; + +const int kOwnerName2ID = 3; + +const int kPCSToDevice = 2; + +const int kPCSToPCS = 3; + +@Deprecated('Deprecated') +const int kPEFAbsoluteExport = -2; + +@Deprecated('Deprecated') +const int kPEFCodeSection = 0; + +@Deprecated('Deprecated') +const int kPEFCodeSymbol = 0; + +@Deprecated('Deprecated') +const int kPEFConstantSection = 3; + +@Deprecated('Deprecated') +const int kPEFDataSymbol = 1; + +@Deprecated('Deprecated') +const int kPEFDebugSection = 5; + +@Deprecated('Deprecated') +const int kPEFExceptionSection = 7; + +@Deprecated('Deprecated') +const int kPEFExecDataSection = 6; + +@Deprecated('Deprecated') +const int kPEFExpSymClassShift = 24; + +@Deprecated('Deprecated') +const int kPEFExpSymMaxNameOffset = 16777215; + +@Deprecated('Deprecated') +const int kPEFExpSymNameOffsetMask = 16777215; + +@Deprecated('Deprecated') +const int kPEFFirstSectionHeaderOffset = 40; + +@Deprecated('Deprecated') +const int kPEFGlobalShare = 4; + +@Deprecated('Deprecated') +const int kPEFGlueSymbol = 4; + +@Deprecated('Deprecated') +const int kPEFHashLengthShift = 16; + +@Deprecated('Deprecated') +const int kPEFHashMaxLength = 65535; + +@Deprecated('Deprecated') +const int kPEFHashSlotFirstKeyMask = 262143; + +@Deprecated('Deprecated') +const int kPEFHashSlotMaxKeyIndex = 262143; + +@Deprecated('Deprecated') +const int kPEFHashSlotMaxSymbolCount = 16383; + +@Deprecated('Deprecated') +const int kPEFHashSlotSymCountShift = 18; + +@Deprecated('Deprecated') +const int kPEFHashValueMask = 65535; + +@Deprecated('Deprecated') +const int kPEFImpSymClassShift = 24; + +@Deprecated('Deprecated') +const int kPEFImpSymMaxNameOffset = 16777215; + +@Deprecated('Deprecated') +const int kPEFImpSymNameOffsetMask = 16777215; + +@Deprecated('Deprecated') +const int kPEFInitLibBeforeMask = 128; + +@Deprecated('Deprecated') +const int kPEFLoaderSection = 4; + +@Deprecated('Deprecated') +const int kPEFPackedDataSection = 2; + +@Deprecated('Deprecated') +const int kPEFPkDataBlock = 1; + +@Deprecated('Deprecated') +const int kPEFPkDataCount5Mask = 31; + +@Deprecated('Deprecated') +const int kPEFPkDataMaxCount5 = 31; + +@Deprecated('Deprecated') +const int kPEFPkDataOpcodeShift = 5; + +@Deprecated('Deprecated') +const int kPEFPkDataRepeat = 2; + +@Deprecated('Deprecated') +const int kPEFPkDataRepeatBlock = 3; + +@Deprecated('Deprecated') +const int kPEFPkDataRepeatZero = 4; + +@Deprecated('Deprecated') +const int kPEFPkDataVCountEndMask = 128; + +@Deprecated('Deprecated') +const int kPEFPkDataVCountMask = 127; + +@Deprecated('Deprecated') +const int kPEFPkDataVCountShift = 7; + +@Deprecated('Deprecated') +const int kPEFPkDataZero = 0; + +@Deprecated('Deprecated') +const int kPEFProcessShare = 1; + +@Deprecated('Deprecated') +const int kPEFProtectedShare = 5; + +@Deprecated('Deprecated') +const int kPEFReexportedImport = -3; + +@Deprecated('Deprecated') +const int kPEFRelocBasicOpcodeRange = 128; + +@Deprecated('Deprecated') +const int kPEFRelocBySectC = 32; + +@Deprecated('Deprecated') +const int kPEFRelocBySectD = 33; + +@Deprecated('Deprecated') +const int kPEFRelocBySectDWithSkip = 0; + +@Deprecated('Deprecated') +const int kPEFRelocImportRun = 37; + +@Deprecated('Deprecated') +const int kPEFRelocIncrPosition = 64; + +@Deprecated('Deprecated') +const int kPEFRelocIncrPositionMaxOffset = 4096; + +@Deprecated('Deprecated') +const int kPEFRelocLgByImport = 82; + +@Deprecated('Deprecated') +const int kPEFRelocLgByImportMaxIndex = 67108863; + +@Deprecated('Deprecated') +const int kPEFRelocLgBySectionSubopcode = 0; + +@Deprecated('Deprecated') +const int kPEFRelocLgRepeat = 88; + +@Deprecated('Deprecated') +const int kPEFRelocLgRepeatMaxChunkCount = 16; + +@Deprecated('Deprecated') +const int kPEFRelocLgRepeatMaxRepeatCount = 4194303; + +@Deprecated('Deprecated') +const int kPEFRelocLgSetOrBySection = 90; + +@Deprecated('Deprecated') +const int kPEFRelocLgSetOrBySectionMaxIndex = 4194303; + +@Deprecated('Deprecated') +const int kPEFRelocLgSetSectCSubopcode = 1; + +@Deprecated('Deprecated') +const int kPEFRelocLgSetSectDSubopcode = 2; + +@Deprecated('Deprecated') +const int kPEFRelocRunMaxRunLength = 512; + +@Deprecated('Deprecated') +const int kPEFRelocSetPosMaxOffset = 67108863; + +@Deprecated('Deprecated') +const int kPEFRelocSetPosition = 80; + +@Deprecated('Deprecated') +const int kPEFRelocSmByImport = 48; + +@Deprecated('Deprecated') +const int kPEFRelocSmBySection = 51; + +@Deprecated('Deprecated') +const int kPEFRelocSmIndexMaxIndex = 511; + +@Deprecated('Deprecated') +const int kPEFRelocSmRepeat = 72; + +@Deprecated('Deprecated') +const int kPEFRelocSmRepeatMaxChunkCount = 16; + +@Deprecated('Deprecated') +const int kPEFRelocSmRepeatMaxRepeatCount = 256; + +@Deprecated('Deprecated') +const int kPEFRelocSmSetSectC = 49; + +@Deprecated('Deprecated') +const int kPEFRelocSmSetSectD = 50; + +@Deprecated('Deprecated') +const int kPEFRelocTVector12 = 34; + +@Deprecated('Deprecated') +const int kPEFRelocTVector8 = 35; + +@Deprecated('Deprecated') +const int kPEFRelocUndefinedOpcode = 255; + +@Deprecated('Deprecated') +const int kPEFRelocVTable8 = 36; + +@Deprecated('Deprecated') +const int kPEFRelocWithSkipMaxRelocCount = 63; + +@Deprecated('Deprecated') +const int kPEFRelocWithSkipMaxSkipCount = 255; + +@Deprecated('Deprecated') +const int kPEFTOCSymbol = 3; + +@Deprecated('Deprecated') +const int kPEFTVectorSymbol = 2; + +@Deprecated('Deprecated') +const int kPEFTag1 = 1248819489; + +@Deprecated('Deprecated') +const int kPEFTag2 = 1885693542; + +@Deprecated('Deprecated') +const int kPEFTracebackSection = 8; + +@Deprecated('Deprecated') +const int kPEFUndefinedSymbol = 15; + +@Deprecated('Deprecated') +const int kPEFUnpackedDataSection = 1; + +@Deprecated('Deprecated') +const int kPEFVersion = 1; + +@Deprecated('Deprecated') +const int kPEFWeakImportLibMask = 64; + +@Deprecated('Deprecated') +const int kPEFWeakImportSymMask = 128; + +const int kPMAllocationFailure = -108; + +const int kPMBorderDoubleHairline = 2; + +const int kPMBorderDoubleThickline = 4; + +const int kPMBorderSingleHairline = 1; + +const int kPMBorderSingleThickline = 3; + +const int kPMCMYKColorSpaceModel = 3; + +const int kPMCVMSymbolNotFound = -9662; + +const int kPMCancel = 128; + +const int kPMCloseFailed = -9785; + +const int kPMCoverPageAfter = 3; + +const int kPMCoverPageBefore = 2; + +const int kPMCoverPageNone = 1; + +const int kPMCreateMessageFailed = -9620; + +const int kPMDeleteSubTicketFailed = -9585; + +const int kPMDestinationFax = 3; + +const int kPMDestinationFile = 2; + +const int kPMDestinationInvalid = 0; + +const int kPMDestinationPreview = 4; + +const int kPMDestinationPrinter = 1; + +const int kPMDestinationProcessPDF = 5; + +const int kPMDevNColorSpaceModel = 4; + +const int kPMDocumentNotFound = -9644; + +const int kPMDontSwitchPDEError = -9531; + +const int kPMDuplexNoTumble = 2; + +const int kPMDuplexNone = 1; + +const int kPMDuplexTumble = 3; + +const int kPMEditRequestFailed = -9544; + +const int kPMFeatureNotInstalled = -9533; + +const int kPMFileOrDirOperationFailed = -9634; + +const int kPMFontNameTooLong = -9704; + +const int kPMFontNotFound = -9703; + +const int kPMGeneralCGError = -9705; + +const int kPMGeneralError = -30870; + +const int kPMGrayColorSpaceModel = 1; + +const int kPMHideInlineItems = 0; + +const int kPMIOAttrNotAvailable = -9787; + +const int kPMIOMSymbolNotFound = -9661; + +const int kPMInternalError = -30870; + +const int kPMInvalidAllocator = -30890; + +const int kPMInvalidCVMContext = -9665; + +const int kPMInvalidCalibrationTarget = -30898; + +const int kPMInvalidConnection = -30887; + +const int kPMInvalidFileType = -30895; + +const int kPMInvalidIOMContext = -9664; + +const int kPMInvalidIndex = -30882; + +const int kPMInvalidItem = -30892; + +const int kPMInvalidJobID = -9666; + +const int kPMInvalidJobTemplate = -30885; + +const int kPMInvalidKey = -30888; + +const int kPMInvalidLookupSpec = -9542; + +const int kPMInvalidObject = -30896; + +const int kPMInvalidPBMRef = -9540; + +const int kPMInvalidPDEContext = -9530; + +const int kPMInvalidPMContext = -9663; + +const int kPMInvalidPageFormat = -30876; + +const int kPMInvalidPaper = -30897; + +const int kPMInvalidParameter = -50; + +const int kPMInvalidPreset = -30899; + +const int kPMInvalidPrintSession = -30879; + +const int kPMInvalidPrintSettings = -30875; + +const int kPMInvalidPrinter = -30880; + +const int kPMInvalidPrinterAddress = -9780; + +const int kPMInvalidPrinterInfo = -30886; + +const int kPMInvalidReply = -30894; + +const int kPMInvalidState = -9706; + +const int kPMInvalidSubTicket = -9584; + +const int kPMInvalidTicket = -30891; + +const int kPMInvalidType = -30893; + +const int kPMInvalidValue = -30889; + +const int kPMItemIsLocked = -9586; + +const int kPMJobBusy = -9642; + +const int kPMJobCanceled = -9643; + +const int kPMJobGetTicketBadFormatError = -9672; + +const int kPMJobGetTicketReadError = -9673; + +const int kPMJobManagerAborted = -9671; + +const int kPMJobNotFound = -9641; + +const int kPMJobStreamEndError = -9670; + +const int kPMJobStreamOpenFailed = -9668; + +const int kPMJobStreamReadFailed = -9669; + +const int kPMKeyNotFound = -9589; + +const int kPMKeyNotUnique = -9590; + +const int kPMKeyOrValueNotFound = -9623; + +const int kPMLandscape = 2; + +const int kPMLastErrorCodeToMakeMaintenanceOfThisListEasier = -9799; + +const int kPMLayoutBottomTopLeftRight = 7; + +const int kPMLayoutBottomTopRightLeft = 8; + +const int kPMLayoutLeftRightBottomTop = 2; + +const int kPMLayoutLeftRightTopBottom = 1; + +const int kPMLayoutRightLeftBottomTop = 4; + +const int kPMLayoutRightLeftTopBottom = 3; + +const int kPMLayoutTopBottomLeftRight = 5; + +const int kPMLayoutTopBottomRightLeft = 6; + +const int kPMMessagingError = -9624; + +const int kPMNoDefaultItem = -9500; + +const int kPMNoDefaultPrinter = -30872; + +const int kPMNoDefaultSettings = -9501; + +const int kPMNoError = 0; + +const int kPMNoPrinterJobID = -9667; + +const int kPMNoSelectedPrinters = -9541; + +const int kPMNoSuchEntry = -30874; + +const int kPMNotImplemented = -30873; + +const int kPMObjectInUse = -30881; + +const int kPMOpenFailed = -9781; + +const int kPMOutOfScope = -30871; + +const int kPMPMSymbolNotFound = -9660; + +const int kPMPaperTypeCoated = 2; + +const int kPMPaperTypeGlossy = 4; + +const int kPMPaperTypePlain = 1; + +const int kPMPaperTypePremium = 3; + +const int kPMPaperTypeTShirt = 6; + +const int kPMPaperTypeTransparency = 5; + +const int kPMPaperTypeUnknown = 0; + +const int kPMPermissionError = -9636; + +const int kPMPluginNotFound = -9701; + +const int kPMPluginRegisterationFailed = -9702; + +const int kPMPortrait = 1; + +const int kPMPrBrowserNoUI = -9545; + +const int kPMPrintAllPages = -1; + +const int kPMPrinterIdle = 3; + +const int kPMPrinterProcessing = 4; + +const int kPMPrinterStopped = 5; + +const int kPMQualityBest = 13; + +const int kPMQualityDraft = 4; + +const int kPMQualityHighest = 15; + +const int kPMQualityInkSaver = 1; + +const int kPMQualityLowest = 0; + +const int kPMQualityNormal = 8; + +const int kPMQualityPhoto = 11; + +const int kPMQueueAlreadyExists = -9639; + +const int kPMQueueJobFailed = -9640; + +const int kPMQueueNotFound = -9638; + +const int kPMRGBColorSpaceModel = 2; + +const int kPMReadFailed = -9782; + +const int kPMReadGotZeroData = -9788; + +const int kPMReverseLandscape = 4; + +const int kPMReversePortrait = 3; + +const int kPMScalingCenterOnImgArea = 6; + +const int kPMScalingCenterOnPaper = 5; + +const int kPMScalingPinBottomLeft = 3; + +const int kPMScalingPinBottomRight = 4; + +const int kPMScalingPinTopLeft = 1; + +const int kPMScalingPinTopRight = 2; + +const int kPMServerAlreadyRunning = -9631; + +const int kPMServerAttributeRestricted = -9633; + +const int kPMServerCommunicationFailed = -9621; + +const int kPMServerNotFound = -9630; + +const int kPMServerSuspended = -9632; + +const int kPMShowDefaultInlineItems = 32768; + +const int kPMShowInlineCopies = 1; + +const int kPMShowInlineOrientation = 8; + +const int kPMShowInlinePageRange = 2; + +const int kPMShowInlinePageRangeWithSelection = 64; + +const int kPMShowInlinePaperSize = 4; + +const int kPMShowInlineScale = 128; + +const int kPMShowPageAttributesPDE = 256; + +const int kPMSimplexTumble = 4; + +const int kPMStatusFailed = -9784; + +const int kPMStringConversionFailure = -30883; + +const int kPMSubTicketNotFound = -9583; + +const int kPMSyncRequestFailed = -9543; + +const int kPMTemplateIsLocked = -9588; + +const int kPMTicketIsLocked = -9587; + +const int kPMTicketTypeNotFound = -9580; + +const int kPMUnableToFindProcess = -9532; + +const int kPMUnexpectedImagingError = -9707; + +const int kPMUnknownColorSpaceModel = 0; + +const int kPMUnknownDataType = -9591; + +const int kPMUnknownMessage = -9637; + +const int kPMUnlocked = 0; + +const int kPMUnsupportedConnection = -9786; + +const int kPMUpdateTicketFailed = -9581; + +const int kPMUserOrGroupNotFound = -9635; + +const int kPMValidateTicketFailed = -9582; + +const int kPMValueOutOfRange = -30877; + +const int kPMWriteFailed = -9783; + +const int kPMXMLParseError = -30884; + +const int kPOSIXErrorBase = 100000; + +const int kPOSIXErrorE2BIG = 100007; + +const int kPOSIXErrorEACCES = 100013; + +const int kPOSIXErrorEADDRINUSE = 100048; + +const int kPOSIXErrorEADDRNOTAVAIL = 100049; + +const int kPOSIXErrorEAFNOSUPPORT = 100047; + +const int kPOSIXErrorEAGAIN = 100035; + +const int kPOSIXErrorEALREADY = 100037; + +const int kPOSIXErrorEAUTH = 100080; + +const int kPOSIXErrorEBADARCH = 100086; + +const int kPOSIXErrorEBADEXEC = 100085; + +const int kPOSIXErrorEBADF = 100009; + +const int kPOSIXErrorEBADMACHO = 100088; + +const int kPOSIXErrorEBADMSG = 100094; + +const int kPOSIXErrorEBADRPC = 100072; + +const int kPOSIXErrorEBUSY = 100016; + +const int kPOSIXErrorECANCELED = 100089; + +const int kPOSIXErrorECHILD = 100010; + +const int kPOSIXErrorECONNABORTED = 100053; + +const int kPOSIXErrorECONNREFUSED = 100061; + +const int kPOSIXErrorECONNRESET = 100054; + +const int kPOSIXErrorEDEADLK = 100011; + +const int kPOSIXErrorEDESTADDRREQ = 100039; + +const int kPOSIXErrorEDEVERR = 100083; + +const int kPOSIXErrorEDOM = 100033; + +const int kPOSIXErrorEDQUOT = 100069; + +const int kPOSIXErrorEEXIST = 100017; + +const int kPOSIXErrorEFAULT = 100014; + +const int kPOSIXErrorEFBIG = 100027; + +const int kPOSIXErrorEFTYPE = 100079; + +const int kPOSIXErrorEHOSTDOWN = 100064; + +const int kPOSIXErrorEHOSTUNREACH = 100065; + +const int kPOSIXErrorEIDRM = 100090; + +const int kPOSIXErrorEILSEQ = 100092; + +const int kPOSIXErrorEINPROGRESS = 100036; + +const int kPOSIXErrorEINTR = 100004; + +const int kPOSIXErrorEINVAL = 100022; + +const int kPOSIXErrorEIO = 100005; + +const int kPOSIXErrorEISCONN = 100056; + +const int kPOSIXErrorEISDIR = 100021; + +const int kPOSIXErrorELOOP = 100062; + +const int kPOSIXErrorEMFILE = 100024; + +const int kPOSIXErrorEMLINK = 100031; + +const int kPOSIXErrorEMSGSIZE = 100040; + +const int kPOSIXErrorEMULTIHOP = 100095; + +const int kPOSIXErrorENAMETOOLONG = 100063; + +const int kPOSIXErrorENEEDAUTH = 100081; + +const int kPOSIXErrorENETDOWN = 100050; + +const int kPOSIXErrorENETRESET = 100052; + +const int kPOSIXErrorENETUNREACH = 100051; + +const int kPOSIXErrorENFILE = 100023; + +const int kPOSIXErrorENOATTR = 100093; + +const int kPOSIXErrorENOBUFS = 100055; + +const int kPOSIXErrorENODATA = 100096; + +const int kPOSIXErrorENODEV = 100019; + +const int kPOSIXErrorENOENT = 100002; + +const int kPOSIXErrorENOEXEC = 100008; + +const int kPOSIXErrorENOLCK = 100077; + +const int kPOSIXErrorENOLINK = 100097; + +const int kPOSIXErrorENOMEM = 100012; + +const int kPOSIXErrorENOMSG = 100091; + +const int kPOSIXErrorENOPROTOOPT = 100042; + +const int kPOSIXErrorENOSPC = 100028; + +const int kPOSIXErrorENOSR = 100098; + +const int kPOSIXErrorENOSTR = 100099; + +const int kPOSIXErrorENOSYS = 100078; + +const int kPOSIXErrorENOTBLK = 100015; + +const int kPOSIXErrorENOTCONN = 100057; + +const int kPOSIXErrorENOTDIR = 100020; + +const int kPOSIXErrorENOTEMPTY = 100066; + +const int kPOSIXErrorENOTSOCK = 100038; + +const int kPOSIXErrorENOTSUP = 100045; + +const int kPOSIXErrorENOTTY = 100025; + +const int kPOSIXErrorENXIO = 100006; + +const int kPOSIXErrorEOPNOTSUPP = 100102; + +const int kPOSIXErrorEOVERFLOW = 100084; + +const int kPOSIXErrorEPERM = 100001; + +const int kPOSIXErrorEPFNOSUPPORT = 100046; + +const int kPOSIXErrorEPIPE = 100032; + +const int kPOSIXErrorEPROCLIM = 100067; + +const int kPOSIXErrorEPROCUNAVAIL = 100076; + +const int kPOSIXErrorEPROGMISMATCH = 100075; + +const int kPOSIXErrorEPROGUNAVAIL = 100074; + +const int kPOSIXErrorEPROTO = 100100; + +const int kPOSIXErrorEPROTONOSUPPORT = 100043; + +const int kPOSIXErrorEPROTOTYPE = 100041; + +const int kPOSIXErrorEPWROFF = 100082; + +const int kPOSIXErrorERANGE = 100034; + +const int kPOSIXErrorEREMOTE = 100071; + +const int kPOSIXErrorEROFS = 100030; + +const int kPOSIXErrorERPCMISMATCH = 100073; + +const int kPOSIXErrorESHLIBVERS = 100087; + +const int kPOSIXErrorESHUTDOWN = 100058; + +const int kPOSIXErrorESOCKTNOSUPPORT = 100044; + +const int kPOSIXErrorESPIPE = 100029; + +const int kPOSIXErrorESRCH = 100003; + +const int kPOSIXErrorESTALE = 100070; + +const int kPOSIXErrorETIME = 100101; + +const int kPOSIXErrorETIMEDOUT = 100060; + +const int kPOSIXErrorETOOMANYREFS = 100059; + +const int kPOSIXErrorETXTBSY = 100026; + +const int kPOSIXErrorEUSERS = 100068; + +const int kPOSIXErrorEXDEV = 100018; + +const int kPROPALDirectionClass = 2; + +const int kPROPANDirectionClass = 6; + +const int kPROPBNDirectionClass = 19; + +const int kPROPCSDirectionClass = 7; + +const int kPROPCanHangLTMask = 16384; + +const int kPROPCanHangRBMask = 8192; + +const int kPROPCurrentVersion = 196608; + +const int kPROPDirectionMask = 31; + +const int kPROPENDirectionClass = 3; + +const int kPROPESDirectionClass = 4; + +const int kPROPETDirectionClass = 5; + +const int kPROPIsFloaterMask = 32768; + +const int kPROPLDirectionClass = 0; + +const int kPROPLREDirectionClass = 13; + +const int kPROPLRODirectionClass = 14; + +const int kPROPNSMDirectionClass = 18; + +const int kPROPNumDirectionClasses = 20; + +const int kPROPONDirectionClass = 11; + +const int kPROPPDFDirectionClass = 17; + +const int kPROPPSDirectionClass = 8; + +const int kPROPPairOffsetMask = 3840; + +const int kPROPPairOffsetShift = 8; + +const int kPROPPairOffsetSign = 7; + +const int kPROPRDirectionClass = 1; + +const int kPROPRLEDirectionClass = 15; + +const int kPROPRLODirectionClass = 16; + +const int kPROPRightConnectMask = 128; + +const int kPROPSDirectionClass = 9; + +const int kPROPSENDirectionClass = 12; + +const int kPROPTag = 1886547824; + +const int kPROPUseRLPairMask = 4096; + +const int kPROPWSDirectionClass = 10; + +const int kPROPZeroReserved = 96; + +const int kPackageAliasType = 1718643553; + +@Deprecated('Deprecated') +const int kPageInMemory = 0; + +@Deprecated('Deprecated') +const int kPageOnDisk = 1; + +const int kParenthesisAnnotationSelector = 5; + +const int kPartiallyConnectedSelector = 1; + +@Deprecated('Deprecated') +const int kPascalStackBased = 0; + +const int kPassCallToChainErr = -9086; + +@Deprecated('Deprecated') +const int kPassSelector = 0; + +const int kPassword = 2; + +const int kPasswordChangedKCEvent = 6; + +const int kPasswordChangedKCEventMask = 64; + +const int kPathKCItemAttr = 1885434984; + +const int kPeriodAnnotationSelector = 6; + +const int kPeriodsToEllipsisOffSelector = 11; + +const int kPeriodsToEllipsisOnSelector = 10; + +const int kPiCharactersSelector = 2; + +@Deprecated('Deprecated') +const int kPictureDocumentsFolderType = 1885630307; + +const int kPlotIconRefNoImage = 2; + +const int kPlotIconRefNoMask = 4; + +const int kPlotIconRefNormalFlags = 0; + +const int kPolicyKCStopOn = 0; + +const int kPortKCItemAttr = 1886351988; + +const int kPos2Offset = 1882354548; + +const int kPostCardEventErr = -9088; + +const int kPowerHandlerExistsForDeviceErr = -13006; + +const int kPowerHandlerNotFoundForDeviceErr = -13007; + +const int kPowerHandlerNotFoundForProcErr = -13008; + +const int kPowerMgtMessageNotHandled = -13009; + +const int kPowerMgtRequestDenied = -13010; + +@Deprecated('Deprecated') +const int kPowerPCISA = 1; + +@Deprecated('Deprecated') +const int kPowerPCRTA = 0; + +@Deprecated('Deprecated') +const int kPreMacOS91AppleExtrasFolderType = -1939507004; + +@Deprecated('Deprecated') +const int kPreMacOS91ApplicationsFolderType = -1938788237; + +@Deprecated('Deprecated') +const int kPreMacOS91AssistantsFolderType = -1938590524; + +@Deprecated('Deprecated') +const int kPreMacOS91AutomountedServersFolderType = -1485670716; + +@Deprecated('Deprecated') +const int kPreMacOS91InstallerLogsFolderType = -1804834970; + +@Deprecated('Deprecated') +const int kPreMacOS91InternetFolderType = -1804700476; + +@Deprecated('Deprecated') +const int kPreMacOS91MacOSReadMesFolderType = -1250987324; + +@Deprecated('Deprecated') +const int kPreMacOS91StationeryFolderType = -1083935884; + +@Deprecated('Deprecated') +const int kPreMacOS91UtilitiesFolderType = -1619760700; + +@Deprecated('Deprecated') +const int kPreemptiveThread = 2; + +const int kPreferencePanesFolderType = 1886413166; + +const int kPreferencesFolderAliasType = 1717661798; + +const int kPreferencesFolderIcon = 1886545604; + +const int kPreferencesFolderIconResource = -3974; + +@Deprecated('Deprecated') +const int kPreferencesFolderType = 1886545254; + +const int kPreflightThenPause = 4; + +const int kPreventOverlapOffSelector = 1; + +const int kPreventOverlapOnSelector = 0; + +const int kPreviousBody = 2; + +const int kPrintMonitorDocsFolderAliasType = 1717661806; + +@Deprecated('Deprecated') +const int kPrintMonitorDocsFolderType = 1886547572; + +const int kPrintMonitorFolderIcon = 1886547572; + +const int kPrintMonitorFolderIconResource = -3975; + +const int kPrinterDescriptionFolderIcon = 1886413926; + +@Deprecated('Deprecated') +const int kPrinterDescriptionFolderType = 1886413926; + +const int kPrinterDriverFolderIcon = -999263644; + +@Deprecated('Deprecated') +const int kPrinterDriverFolderType = -999263644; + +@Deprecated('Deprecated') +const int kPrintersFolderType = 1768779890; + +@Deprecated('Deprecated') +const int kPrintingPlugInsFolderType = 1886415975; + +const int kPrivateFolderIcon = 1886549606; + +const int kPrivateFolderIconResource = -3994; + +@Deprecated('Deprecated') +const int kPrivateFrameworksFolderType = 1885762157; + +@Deprecated('Deprecated') +const int kPrivilegeViolationException = 8; + +@Deprecated('Deprecated') +const int kProcDescriptorIsAbsolute = 0; + +@Deprecated('Deprecated') +const int kProcDescriptorIsIndex = 32; + +@Deprecated('Deprecated') +const int kProcDescriptorIsProcPtr = 0; + +@Deprecated('Deprecated') +const int kProcDescriptorIsRelative = 1; + +const int kProcessDictionaryIncludeAllInformationMask = -1; + +const int kProcessTransformToBackgroundApplication = 2; + +const int kProcessTransformToForegroundApplication = 1; + +const int kProcessTransformToUIElementApplication = 4; + +const int kProcessorTempRoutineRequiresMPLib2 = -13014; + +const int kProportionalCJKRomanSelector = 1; + +const int kProportionalIdeographsSelector = 1; + +const int kProportionalKanaSelector = 1; + +const int kProportionalNumbersSelector = 1; + +const int kProportionalTextSelector = 0; + +const int kProtectedApplicationFolderIcon = 1885433968; + +const int kProtectedSystemFolderIcon = 1886615923; + +const int kProtocolKCItemAttr = 1886675820; + +const int kPublicFolderIcon = 1886741094; + +@Deprecated('Deprecated') +const int kPublicFolderType = 1886741090; + +const int kPublicKeyHashKCItemAttr = 1752198009; + +const int kQDCorruptPICTDataErr = -3954; + +const int kQDCursorAlreadyRegistered = -3952; + +const int kQDCursorNotRegistered = -3953; + +const int kQDNoColorHWCursorSupport = -3951; + +const int kQDNoPalette = -3950; + +const int kQTSSUnknownErr = -6150; + +const int kQuarterWidthNumbersSelector = 3; + +const int kQuarterWidthTextSelector = 4; + +const int kQuestionMarkIcon = 1903519091; + +@Deprecated('Deprecated') +const int kQuickLookFolderType = 1902928747; + +@Deprecated('Deprecated') +const int kQuickTimeComponentsFolderType = 2003004784; + +@Deprecated('Deprecated') +const int kQuickTimeExtensionsFolderType = 1903453560; + +const int kQuitAtNormalTimeMask = 2; + +const int kQuitBeforeFBAsQuitMask = 4; + +const int kQuitBeforeNormalTimeMask = 1; + +const int kQuitBeforeShellQuitsMask = 8; + +const int kQuitBeforeTerminatorAppQuitsMask = 16; + +const int kQuitNeverMask = 32; + +const int kQuitNotQuitDuringInstallMask = 256; + +const int kQuitNotQuitDuringLogoutMask = 512; + +const int kQuitOptionsMask = 127; + +const int kRAATalkInactive = -7134; + +const int kRACallBackFailed = -7138; + +const int kRAConfigurationDBInitErr = -7127; + +const int kRAConnectionCanceled = -7109; + +const int kRADuplicateIPAddr = -7137; + +const int kRAExtAuthenticationFailed = -7135; + +const int kRAIncompatiblePrefs = -7107; + +const int kRAInitOpenTransportFailed = -7122; + +const int kRAInstallationDamaged = -7113; + +const int kRAInternalError = -7112; + +const int kRAInvalidParameter = -7100; + +const int kRAInvalidPassword = -7111; + +const int kRAInvalidPort = -7101; + +const int kRAInvalidPortState = -7116; + +const int kRAInvalidSerialProtocol = -7117; + +const int kRAMissingResources = -7106; + +const int kRANCPRejectedbyPeer = -7136; + +const int kRANotConnected = -7108; + +const int kRANotEnabled = -7139; + +const int kRANotPrimaryInterface = -7126; + +const int kRANotSupported = -7105; + +const int kRAOutOfMemory = -7104; + +const int kRAPPPAuthenticationFailed = -7129; + +const int kRAPPPNegotiationFailed = -7130; + +const int kRAPPPPeerDisconnected = -7132; + +const int kRAPPPProtocolRejected = -7128; + +const int kRAPPPUserDisconnected = -7131; + +const int kRAPeerNotResponding = -7133; + +const int kRAPortBusy = -7114; + +const int kRAPortSetupFailed = -7103; + +const int kRARemoteAccessNotReady = -7123; + +const int kRAStartupFailed = -7102; + +const int kRATCPIPInactive = -7124; + +const int kRATCPIPNotConfigured = -7125; + +const int kRAUnknownPortState = -7115; + +const int kRAUnknownUser = -7110; + +const int kRAUserInteractionRequired = -7121; + +const int kRAUserLoginDisabled = -7118; + +const int kRAUserPwdChangeRequired = -7119; + +const int kRAUserPwdEntryRequired = -7120; + +const int kRareLigaturesOffSelector = 5; + +const int kRareLigaturesOnSelector = 4; + +const int kRdPermKCStatus = 2; + +const int kReadExtensionTermsMask = 32768; + +const int kReadFailureErr = -9068; + +@Deprecated('Deprecated') +const int kReadOnlyMemoryException = 6; + +@Deprecated('Deprecated') +const int kReadReference = 1; + +@Deprecated('Deprecated') +const int kReadyThreadState = 0; + +const int kRebusPicturesOffSelector = 9; + +const int kRebusPicturesOnSelector = 8; + +const int kRecentApplicationsFolderIcon = 1918988400; + +@Deprecated('Deprecated') +const int kRecentApplicationsFolderType = 1918988400; + +const int kRecentDocumentsFolderIcon = 1919184739; + +@Deprecated('Deprecated') +const int kRecentDocumentsFolderType = 1919184739; + +const int kRecentItemsIcon = 1919118964; + +const int kRecentServersFolderIcon = 1920168566; + +@Deprecated('Deprecated') +const int kRecentServersFolderType = 1920169586; + +const int kRedirectedRelativeFolder = 1920099692; + +const int kRedrawHighlighting = 1; + +@Deprecated('Deprecated') +const int kRegisterA0 = 4; + +@Deprecated('Deprecated') +const int kRegisterA1 = 5; + +@Deprecated('Deprecated') +const int kRegisterA2 = 6; + +@Deprecated('Deprecated') +const int kRegisterA3 = 7; + +@Deprecated('Deprecated') +const int kRegisterA4 = 12; + +@Deprecated('Deprecated') +const int kRegisterA5 = 13; + +@Deprecated('Deprecated') +const int kRegisterA6 = 14; + +@Deprecated('Deprecated') +const int kRegisterBased = 2; + +@Deprecated('Deprecated') +const int kRegisterD0 = 0; + +@Deprecated('Deprecated') +const int kRegisterD1 = 1; + +@Deprecated('Deprecated') +const int kRegisterD2 = 2; + +@Deprecated('Deprecated') +const int kRegisterD3 = 3; + +@Deprecated('Deprecated') +const int kRegisterD4 = 8; + +@Deprecated('Deprecated') +const int kRegisterD5 = 9; + +@Deprecated('Deprecated') +const int kRegisterD6 = 10; + +@Deprecated('Deprecated') +const int kRegisterD7 = 11; + +@Deprecated('Deprecated') +const int kRegisterParameterMask = 2147481600; + +@Deprecated('Deprecated') +const int kRegisterParameterPhase = 11; + +@Deprecated('Deprecated') +const int kRegisterParameterSizePhase = 0; + +@Deprecated('Deprecated') +const int kRegisterParameterSizeWidth = 2; + +@Deprecated('Deprecated') +const int kRegisterParameterWhichPhase = 2; + +@Deprecated('Deprecated') +const int kRegisterParameterWhichWidth = 3; + +@Deprecated('Deprecated') +const int kRegisterParameterWidth = 5; + +@Deprecated('Deprecated') +const int kRegisterResultLocationPhase = 6; + +@Deprecated('Deprecated') +const int kRegisterResultLocationWidth = 5; + +const int kRelativeFolder = 1919249510; + +const int kRequiredLigaturesOffSelector = 1; + +const int kRequiredLigaturesOnSelector = 0; + +@Deprecated('Deprecated') +const int kResFileNotOpened = -1; + +@Deprecated('Deprecated') +const int kResolveAliasFileNoUI = 1; + +@Deprecated('Deprecated') +const int kResolveAliasTryFileIDFirst = 2; + +@Deprecated('Deprecated') +const int kResultSizeMask = 48; + +@Deprecated('Deprecated') +const int kResultSizePhase = 4; + +@Deprecated('Deprecated') +const int kResultSizeWidth = 2; + +const int kReturnNextGroup = 2; + +const int kReturnNextUG = 3; + +const int kReturnNextUser = 1; + +const int kRightContainerArrowIcon = 1919115634; + +const int kRolloverIconVariant = 1870030194; + +const int kRomanNumeralAnnotationSelector = 7; + +const int kRomanizationToHiraganaSelector = 5; + +const int kRomanizationToKatakanaSelector = 6; + +const int kRootFolder = 1919906918; + +const int kRoundedBoxAnnotationSelector = 2; + +@Deprecated('Deprecated') +const int kRoutineDescriptorVersion = 7; + +@Deprecated('Deprecated') +const int kRoutineIsDispatchedDefaultRoutine = 16; + +@Deprecated('Deprecated') +const int kRoutineIsNotDispatchedDefaultRoutine = 0; + +const int kRoutingResourceID = 0; + +const int kRoutingResourceType = 1919907188; + +@Deprecated('Deprecated') +const int kRsrcChainAboveAllMaps = 4; + +@Deprecated('Deprecated') +const int kRsrcChainAboveApplicationMap = 2; + +@Deprecated('Deprecated') +const int kRsrcChainBelowApplicationMap = 1; + +@Deprecated('Deprecated') +const int kRsrcChainBelowSystemMap = 0; + +const int kRubyKanaOffSelector = 3; + +const int kRubyKanaOnSelector = 2; + +const int kRubyKanaSelector = 1; + +const int kRubyKanaType = 28; + +@Deprecated('Deprecated') +const int kRunningThreadState = 2; + +const int kSFNTLookupSegmentArray = 4; + +const int kSFNTLookupSegmentSingle = 2; + +const int kSFNTLookupSimpleArray = 0; + +const int kSFNTLookupSingleTable = 6; + +const int kSFNTLookupTrimmedArray = 8; + +const int kSFNTLookupVector = 10; + +const int kSKSearchOptionDefault = 0; + +const int kSKSearchOptionFindSimilar = 4; + +const int kSKSearchOptionNoRelevanceScores = 1; + +const int kSKSearchOptionSpaceMeansOR = 2; + +const int kSOAP1999Schema = 1936931129; + +const int kSOAP2001Schema = 1936928817; + +const int kSOCKS5NoAcceptableMethod = 255; + +const int kSSpCantInstallErr = -30342; + +const int kSSpInternalErr = -30340; + +const int kSSpParallelUpVectorErr = -30343; + +const int kSSpScaleToZeroErr = -30344; + +const int kSSpVersionErr = -30341; + +const int kSTClassDeletedGlyph = 2; + +const int kSTClassEndOfLine = 3; + +const int kSTClassEndOfText = 0; + +const int kSTClassOutOfBounds = 1; + +const int kSTKCrossStreamReset = 8192; + +const int kSTLigActionMask = 16383; + +const int kSTMarkEnd = 8192; + +const int kSTNoAdvance = 16384; + +const int kSTRearrVerbMask = 15; + +const int kSTSetMark = 32768; + +const int kSTXHasLigAction = 8192; + +const int kScientificInferiorsSelector = 4; + +const int kScreenSaversFolderType = 1935897198; + +const int kScriptCodeKCItemAttr = 1935897200; + +const int kScriptingAdditionsFolderIcon = -999070862; + +@Deprecated('Deprecated') +const int kScriptingAdditionsFolderType = -999070862; + +const int kScriptsFolderIcon = 1935897284; + +@Deprecated('Deprecated') +const int kScriptsFolderType = 1935897284; + +const int kSecCSAllowNetworkAccess = 65536; + +const int kSecCSBasicValidateOnly = 6; + +const int kSecCSCalculateCMSDigest = 64; + +const int kSecCSCheckAllArchitectures = 1; + +const int kSecCSCheckGatekeeperArchitectures = 65; + +const int kSecCSCheckNestedCode = 8; + +const int kSecCSContentInformation = 16; + +const int kSecCSDedicatedHost = 1; + +const int kSecCSDoNotValidateExecutable = 2; + +const int kSecCSDoNotValidateResources = 4; + +const int kSecCSDynamicInformation = 8; + +const int kSecCSFastExecutableValidation = 131072; + +const int kSecCSFullReport = 32; + +const int kSecCSGenerateGuestHash = 2; + +const int kSecCSInternalInformation = 1; + +const int kSecCSRequirementInformation = 4; + +const int kSecCSRestrictSidebandData = 512; + +const int kSecCSRestrictSymlinks = 128; + +const int kSecCSRestrictToAppLike = 256; + +const int kSecCSSigningInformation = 2; + +const int kSecCSSingleThreaded = 4096; + +const int kSecCSSkipResourceDirectory = 32; + +const int kSecCSStrictValidate = 16; + +const int kSecCSUseAllArchitectures = 1; + +const int kSecCSUseSoftwareSigningCert = 1024; + +const int kSecCSValidatePEH = 2048; + +const int kSecCertEncodingItemAttr = 1667591779; + +const int kSecCertTypeItemAttr = 1668577648; + +const int kSecHonorRoot = 256; + +const int kSecIssuerItemAttr = 1769173877; + +@Deprecated('No longer supported') +const int kSecKeyAlias = 2; + +@Deprecated('No longer supported') +const int kSecKeyAlwaysSensitive = 15; + +@Deprecated('No longer supported') +const int kSecKeyApplicationTag = 7; + +@Deprecated('No longer supported') +const int kSecKeyDecrypt = 19; + +@Deprecated('No longer supported') +const int kSecKeyDerive = 20; + +@Deprecated('No longer supported') +const int kSecKeyEffectiveKeySize = 11; + +@Deprecated('No longer supported') +const int kSecKeyEncrypt = 18; + +@Deprecated('No longer supported') +const int kSecKeyEndDate = 13; + +@Deprecated('No longer supported') +const int kSecKeyExtractable = 16; + +@Deprecated('No longer supported') +const int kSecKeyKeyClass = 0; + +@Deprecated('No longer supported') +const int kSecKeyKeyCreator = 8; + +@Deprecated('No longer supported') +const int kSecKeyKeySizeInBits = 10; + +@Deprecated('No longer supported') +const int kSecKeyKeyType = 9; + +@Deprecated('No longer supported') +const int kSecKeyLabel = 6; + +@Deprecated('No longer supported') +const int kSecKeyModifiable = 5; + +@Deprecated('No longer supported') +const int kSecKeyNeverExtractable = 17; + +@Deprecated('No longer supported') +const int kSecKeyPermanent = 3; + +@Deprecated('No longer supported') +const int kSecKeyPrintName = 1; + +@Deprecated('No longer supported') +const int kSecKeyPrivate = 4; + +@Deprecated('No longer supported') +const int kSecKeySensitive = 14; + +@Deprecated('No longer supported') +const int kSecKeySign = 21; + +@Deprecated('No longer supported') +const int kSecKeySignRecover = 23; + +@Deprecated('No longer supported') +const int kSecKeyStartDate = 12; + +@Deprecated('No longer supported') +const int kSecKeyUnwrap = 26; + +@Deprecated('No longer supported') +const int kSecKeyVerify = 22; + +@Deprecated('No longer supported') +const int kSecKeyVerifyRecover = 24; + +@Deprecated('No longer supported') +const int kSecKeyWrap = 25; + +const int kSecMatchBits = 3; + +const int kSecNoGuest = 0; + +const int kSecOptionReserved = 255; + +const int kSecPublicKeyHashItemAttr = 1752198009; + +const int kSecReadPermStatus = 2; + +const int kSecRevocationCRLMethod = 2; + +const int kSecRevocationNetworkAccessDisabled = 16; + +const int kSecRevocationOCSPMethod = 1; + +const int kSecRevocationPreferCRL = 4; + +const int kSecRevocationRequirePositiveResponse = 8; + +const int kSecRevocationUseAnyAvailableMethod = 3; + +const int kSecSerialNumberItemAttr = 1936614002; + +const int kSecSubjectItemAttr = 1937072746; + +const int kSecSubjectKeyIdentifierItemAttr = 1936419172; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorAbortInProgress = 19; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorAborted = 20; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorAttributeNotFound = 1; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidAlgorithm = 6; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidConnection = 15; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidInput = 10; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidInputDictionary = 5; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidLength = 7; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidOperation = 2; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorInvalidType = 8; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorMissingParameter = 14; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorMoreThanOneOutput = 4; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorNameAlreadyRegistered = 11; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorNotInitializedCorrectly = 3; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformErrorUnsupportedAttribute = 12; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformInvalidArgument = 21; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformInvalidOverride = 17; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformOperationNotSupportedOnGroup = 13; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformTransformIsExecuting = 16; + +@Deprecated('SecTransform is no longer supported') +const int kSecTransformTransformIsNotRegistered = 18; + +const int kSecUnlockStateStatus = 1; + +const int kSecUseOnlyGID = 2; + +const int kSecUseOnlyUID = 1; + +const int kSecWritePermStatus = 4; + +const int kSecondScale = 1000000000; + +const int kSecurityDomainKCItemAttr = 1935961454; + +const int kSelectorAll1BitData = 16843009; + +const int kSelectorAll32BitData = 134219784; + +const int kSelectorAll4BitData = 33686018; + +const int kSelectorAll8BitData = 67372036; + +const int kSelectorAllAvailableData = -1; + +const int kSelectorAllHugeData = -16777216; + +const int kSelectorAllLargeData = 255; + +const int kSelectorAllMiniData = 16711680; + +const int kSelectorAllSmallData = 65280; + +const int kSelectorHuge1Bit = 16777216; + +const int kSelectorHuge32Bit = 134217728; + +const int kSelectorHuge4Bit = 33554432; + +const int kSelectorHuge8Bit = 67108864; + +const int kSelectorHuge8BitMask = 268435456; + +const int kSelectorLarge1Bit = 1; + +const int kSelectorLarge32Bit = 8; + +const int kSelectorLarge4Bit = 2; + +const int kSelectorLarge8Bit = 4; + +const int kSelectorLarge8BitMask = 16; + +const int kSelectorMini1Bit = 65536; + +const int kSelectorMini4Bit = 131072; + +const int kSelectorMini8Bit = 262144; + +const int kSelectorSmall1Bit = 256; + +const int kSelectorSmall32Bit = 2048; + +const int kSelectorSmall4Bit = 512; + +const int kSelectorSmall8Bit = 1024; + +const int kSelectorSmall8BitMask = 4096; + +@Deprecated('Deprecated') +const int kSelectorsAreIndexable = 1; + +@Deprecated('Deprecated') +const int kSelectorsAreNotIndexable = 0; + +const int kSerialNumberKCItemAttr = 1936614002; + +const int kServerKCItemAttr = 1936881266; + +const int kServiceKCItemAttr = 1937138533; + +@Deprecated('Deprecated') +const int kServicesFolderType = 1937138547; + +const int kSetCLUTByValue = 1; + +const int kSetCLUTImmediately = 2; + +const int kSetCLUTWithLuminance = 4; + +@Deprecated('Deprecated') +const int kSetDebugOption = 2; + +const int kSetFrontProcessCausedByUser = 2; + +const int kSetFrontProcessFrontWindowOnly = 1; + +const int kSetPowerLevel = 17; + +const int kSharedBadgeIcon = 1935828071; + +const int kSharedFolderAliasType = 1717662568; + +const int kSharedFolderIcon = 1936221804; + +const int kSharedFolderIconResource = -3978; + +const int kSharedLibrariesFolderIcon = -999528094; + +@Deprecated('Deprecated') +const int kSharedLibrariesFolderType = -999528094; + +@Deprecated('Deprecated') +const int kSharedUserDataFolderType = 1935958388; + +const int kSharingPrivsNotApplicableIcon = 1936223841; + +const int kSharingPrivsReadOnlyIcon = 1936224879; + +const int kSharingPrivsReadWriteIcon = 1936224887; + +const int kSharingPrivsUnknownIcon = 1936225643; + +const int kSharingPrivsWritableIcon = 2003986804; + +const int kShiftJIS_BasicVariant = 0; + +const int kShiftJIS_DOSVariant = 1; + +const int kShiftJIS_MusicCDVariant = 2; + +const int kShortcutIcon = 1936224884; + +const int kShowDiacriticsSelector = 0; + +const int kShowHideInputWindow = 1936222583; + +@Deprecated('Deprecated') +const int kShutdownFolderType = 1936221286; + +const int kShutdownItemsDisabledFolderIcon = 1936221252; + +@Deprecated('Deprecated') +const int kShutdownItemsDisabledFolderType = 1936221252; + +const int kShutdownItemsFolderIcon = 1936221286; + +const int kSignKCItemAttr = 1936287598; + +const int kSignatureKCItemAttr = 1936943463; + +const int kSimplifiedCharactersSelector = 1; + +const int kSlashToDivideOffSelector = 5; + +const int kSlashToDivideOnSelector = 4; + +const int kSlashedZeroOffSelector = 5; + +const int kSlashedZeroOnSelector = 4; + +const int kSleepDemand = 2; + +const int kSleepDeny = 5; + +const int kSleepNow = 6; + +const int kSleepRequest = 1; + +const int kSleepRevoke = 4; + +const int kSleepUnlock = 4; + +const int kSleepWakeUp = 3; + +const int kSmall1BitMask = 1768125219; + +const int kSmall32BitData = 1769157426; + +const int kSmall4BitData = 1768125236; + +const int kSmall4BitIconSize = 128; + +const int kSmall8BitData = 1768125240; + +const int kSmall8BitIconSize = 256; + +const int kSmall8BitMask = 1933077867; + +const int kSmallCapsSelector = 3; + +const int kSmallIconSize = 64; + +const int kSmartQuotesOffSelector = 9; + +const int kSmartQuotesOnSelector = 8; + +const int kSmartSwashType = 8; + +const int kSortAscendingIcon = 1634954852; + +const int kSortDescendingIcon = 1685286500; + +const int kSoundFileIcon = 1936091500; + +@Deprecated('Deprecated') +const int kSoundSetsFolderType = 1936614515; + +const int kSpeakableItemsFolder = 1936747369; + +@Deprecated('Deprecated') +const int kSpeakableItemsFolderType = 1936747369; + +@Deprecated('Deprecated') +const int kSpecialCase = 15; + +@Deprecated('Deprecated') +const int kSpecialCaseCaretHook = 0; + +@Deprecated('Deprecated') +const int kSpecialCaseDrawHook = 4; + +@Deprecated('Deprecated') +const int kSpecialCaseEOLHook = 1; + +@Deprecated('Deprecated') +const int kSpecialCaseGNEFilterProc = 11; + +@Deprecated('Deprecated') +const int kSpecialCaseHighHook = 0; + +@Deprecated('Deprecated') +const int kSpecialCaseHitTestHook = 5; + +@Deprecated('Deprecated') +const int kSpecialCaseMBarHook = 12; + +@Deprecated('Deprecated') +const int kSpecialCaseNWidthHook = 3; + +@Deprecated('Deprecated') +const int kSpecialCaseProtocolHandler = 7; + +@Deprecated('Deprecated') +const int kSpecialCaseSelectorMask = 1008; + +@Deprecated('Deprecated') +const int kSpecialCaseSelectorPhase = 4; + +@Deprecated('Deprecated') +const int kSpecialCaseSelectorWidth = 6; + +@Deprecated('Deprecated') +const int kSpecialCaseSocketListener = 8; + +@Deprecated('Deprecated') +const int kSpecialCaseTEDoText = 10; + +@Deprecated('Deprecated') +const int kSpecialCaseTEFindWord = 6; + +@Deprecated('Deprecated') +const int kSpecialCaseTERecalc = 9; + +@Deprecated('Deprecated') +const int kSpecialCaseTextWidthHook = 2; + +@Deprecated('Deprecated') +const int kSpecialCaseWidthHook = 2; + +const int kSpecialFolder = 1936745318; + +@Deprecated('Deprecated') +const int kSpeechFolderType = 1936745320; + +const int kSpeechGenerateTune = 1; + +const int kSpeechRelativeDuration = 4; + +const int kSpeechRelativePitch = 2; + +const int kSpeechShowSyllables = 8; + +@Deprecated('Deprecated') +const int kSpotlightImportersFolderType = 1936289136; + +@Deprecated('Deprecated') +const int kSpotlightMetadataCacheFolderType = 1935893352; + +@Deprecated('Deprecated') +const int kSpotlightSavedSearchesFolderType = 1936748404; + +const int kSquaredLigaturesOffSelector = 13; + +const int kSquaredLigaturesOnSelector = 12; + +@Deprecated('Deprecated') +const int kStackDispatchedPascalStackBased = 14; + +@Deprecated('Deprecated') +const int kStackOverflowException = 14; + +@Deprecated('Deprecated') +const int kStackParameterMask = -64; + +@Deprecated('Deprecated') +const int kStackParameterPhase = 6; + +@Deprecated('Deprecated') +const int kStackParameterWidth = 2; + +const int kStartDateKCItemAttr = 1935958388; + +const int kStartupFolderAliasType = 1717662580; + +const int kStartupFolderIconResource = -3981; + +@Deprecated('Deprecated') +const int kStartupFolderType = 1937011316; + +const int kStartupItemsDisabledFolderIcon = 1937011268; + +@Deprecated('Deprecated') +const int kStartupItemsDisabledFolderType = 1937011268; + +const int kStartupItemsFolderIcon = 1937011316; + +@Deprecated('Deprecated') +const int kStationeryFolderType = 1868854132; + +const int kStillIdle = 25; + +@Deprecated('Deprecated') +const int kStoppedThreadState = 1; + +const int kStyleOptionsType = 19; + +const int kStylisticAltEightOffSelector = 17; + +const int kStylisticAltEightOnSelector = 16; + +const int kStylisticAltEighteenOffSelector = 37; + +const int kStylisticAltEighteenOnSelector = 36; + +const int kStylisticAltElevenOffSelector = 23; + +const int kStylisticAltElevenOnSelector = 22; + +const int kStylisticAltFifteenOffSelector = 31; + +const int kStylisticAltFifteenOnSelector = 30; + +const int kStylisticAltFiveOffSelector = 11; + +const int kStylisticAltFiveOnSelector = 10; + +const int kStylisticAltFourOffSelector = 9; + +const int kStylisticAltFourOnSelector = 8; + +const int kStylisticAltFourteenOffSelector = 29; + +const int kStylisticAltFourteenOnSelector = 28; + +const int kStylisticAltNineOffSelector = 19; + +const int kStylisticAltNineOnSelector = 18; + +const int kStylisticAltNineteenOffSelector = 39; + +const int kStylisticAltNineteenOnSelector = 38; + +const int kStylisticAltOneOffSelector = 3; + +const int kStylisticAltOneOnSelector = 2; + +const int kStylisticAltSevenOffSelector = 15; + +const int kStylisticAltSevenOnSelector = 14; + +const int kStylisticAltSeventeenOffSelector = 35; + +const int kStylisticAltSeventeenOnSelector = 34; + +const int kStylisticAltSixOffSelector = 13; + +const int kStylisticAltSixOnSelector = 12; + +const int kStylisticAltSixteenOffSelector = 33; + +const int kStylisticAltSixteenOnSelector = 32; + +const int kStylisticAltTenOffSelector = 21; + +const int kStylisticAltTenOnSelector = 20; + +const int kStylisticAltThirteenOffSelector = 27; + +const int kStylisticAltThirteenOnSelector = 26; + +const int kStylisticAltThreeOffSelector = 7; + +const int kStylisticAltThreeOnSelector = 6; + +const int kStylisticAltTwelveOffSelector = 25; + +const int kStylisticAltTwelveOnSelector = 24; + +const int kStylisticAltTwentyOffSelector = 41; + +const int kStylisticAltTwentyOnSelector = 40; + +const int kStylisticAltTwoOffSelector = 5; + +const int kStylisticAltTwoOnSelector = 4; + +const int kStylisticAlternativesType = 35; + +const int kSubjectKCItemAttr = 1937072746; + +const int kSubstituteVerticalFormsOffSelector = 1; + +const int kSubstituteVerticalFormsOnSelector = 0; + +const int kSuperiorsSelector = 1; + +const int kSuspendDemand = 13; + +const int kSuspendRequest = 12; + +const int kSuspendRevoke = 14; + +const int kSuspendWakeToDoze = 23; + +const int kSuspendWakeUp = 15; + +const int kSwashAlternatesOffSelector = 3; + +const int kSwashAlternatesOnSelector = 2; + +const int kSymLinkCreator = 1919443312; + +const int kSymLinkFileType = 1936485995; + +const int kSymbolLigaturesOffSelector = 17; + +const int kSymbolLigaturesOnSelector = 16; + +const int kSysSWTooOld = -6226; + +@Deprecated('Deprecated') +const int kSystemControlPanelFolderType = 1935897708; + +@Deprecated('Deprecated') +const int kSystemDesktopFolderType = 1935962987; + +@Deprecated('Deprecated') +const int kSystemDomain = -32766; + +const int kSystemEventKCEventMask = 256; + +const int kSystemExtensionDisabledFolderIcon = 1835098948; + +@Deprecated('Deprecated') +const int kSystemExtensionDisabledFolderType = 1835098948; + +const int kSystemFolderAliasType = 1717662585; + +const int kSystemFolderIcon = 1835098995; + +const int kSystemFolderIconResource = -3983; + +@Deprecated('Deprecated') +const int kSystemFolderType = 1835098995; + +const int kSystemIconsCreator = 1835098995; + +const int kSystemKCEvent = 8; + +const int kSystemPPDDomain = 2; + +@Deprecated('Deprecated') +const int kSystemPreferencesFolderType = 1936749158; + +const int kSystemProcess = 1; + +@Deprecated('Deprecated') +const int kSystemResFile = 0; + +@Deprecated('Deprecated') +const int kSystemSoundsFolderType = 1936944740; + +const int kSystemSuitcaseIcon = 2054388083; + +@Deprecated('Deprecated') +const int kSystemTrashFolderType = 1937011315; + +const int kTECAddFallbackInterruptBit = 7; + +const int kTECAddFallbackInterruptMask = 128; + +const int kTECAddForceASCIIChangesBit = 4; + +const int kTECAddForceASCIIChangesMask = 16; + +const int kTECAddTextRunHeuristicsBit = 6; + +const int kTECAddTextRunHeuristicsMask = 64; + +const int kTECArrayFullErr = -8751; + +const int kTECAvailableEncodingsResType = 1668703598; + +const int kTECAvailableSniffersResType = 1668707174; + +const int kTECBadTextRunErr = -8752; + +const int kTECBufferBelowMinimumSizeErr = -8750; + +const int kTECChinesePluginSignature = 1887070319; + +const int kTECConversionInfoResType = 1668704614; + +const int kTECCorruptConverterErr = -8748; + +const int kTECDirectionErr = -8756; + +const int kTECDisableFallbacksBit = 16; + +const int kTECDisableFallbacksMask = 65536; + +const int kTECDisableLooseMappingsBit = 17; + +const int kTECDisableLooseMappingsMask = 131072; + +const int kTECFallbackTextLengthFixBit = 1; + +const int kTECFallbackTextLengthFixMask = 2; + +const int kTECGlobalsUnavailableErr = -8770; + +const int kTECIncompleteElementErr = -8755; + +const int kTECInfoCurrentFormat = 2; + +const int kTECInternetNameDefaultUsageMask = 0; + +const int kTECInternetNameStrictUsageMask = 1; + +const int kTECInternetNameTolerantUsageMask = 2; + +const int kTECInternetNamesResType = 1668705645; + +const int kTECItemUnavailableErr = -8771; + +const int kTECJapanesePluginSignature = 1886023790; + +const int kTECKeepInfoFixBit = 0; + +const int kTECKeepInfoFixMask = 1; + +const int kTECKoreanPluginSignature = 1886089074; + +const int kTECMailEncodingsResType = 1668705644; + +const int kTECMissingTableErr = -8745; + +const int kTECNeedFlushStatus = -8784; + +const int kTECNoConversionPathErr = -8749; + +const int kTECOutputBufferFullStatus = -8785; + +const int kTECPartialCharErr = -8753; + +const int kTECPluginCreator = 1701733238; + +const int kTECPluginDispatchTableCurrentVersion = 65538; + +const int kTECPluginDispatchTableVersion1 = 65536; + +const int kTECPluginDispatchTableVersion1_1 = 65537; + +const int kTECPluginDispatchTableVersion1_2 = 65538; + +const int kTECPluginManyToOne = 1836347247; + +const int kTECPluginOneToMany = 1869901677; + +const int kTECPluginOneToOne = 1869901679; + +const int kTECPluginSniffObj = 1936615782; + +const int kTECPluginType = 1701015655; + +const int kTECPreferredEncodingFixBit = 5; + +const int kTECPreferredEncodingFixMask = 32; + +const int kTECResourceID = 128; + +const int kTECSignature = 1701733238; + +const int kTECSubTextEncodingsResType = 1668707170; + +const int kTECTableChecksumErr = -8746; + +const int kTECTableFormatErr = -8747; + +const int kTECTextRunBitClearFixBit = 2; + +const int kTECTextRunBitClearFixMask = 4; + +const int kTECTextToUnicodeScanFixBit = 3; + +const int kTECTextToUnicodeScanFixMask = 8; + +const int kTECUnicodePluginSignature = 1886744169; + +const int kTECUnmappableElementErr = -8754; + +const int kTECUsedFallbacksStatus = -8783; + +const int kTECWebEncodingsResType = 1668708194; + +const int kTEC_MIBEnumDontCare = -1; + +@Deprecated('Deprecated') +const int kTMTaskActive = 32768; + +const int kTRAKCurrentVersion = 65536; + +const int kTRAKTag = 1953653099; + +const int kTRAKUniformFormat = 0; + +const int kTSMHiliteBlockFillText = 6; + +const int kTSMHiliteCaretPosition = 1; + +const int kTSMHiliteConvertedText = 4; + +const int kTSMHiliteNoHilite = 9; + +const int kTSMHiliteOutlineText = 7; + +const int kTSMHiliteRawText = 2; + +const int kTSMHiliteSelectedConvertedText = 5; + +const int kTSMHiliteSelectedRawText = 3; + +const int kTSMHiliteSelectedText = 8; + +const int kTSMInsideOfActiveInputArea = 3; + +const int kTSMInsideOfBody = 2; + +const int kTSMOutsideOfBody = 1; + +const int kTXNATSUIIsNotInstalledErr = -22016; + +const int kTXNAlreadyInitializedErr = -22012; + +const int kTXNAttributeTagInvalidForRunErr = -22009; + +const int kTXNBadDefaultFileTypeWarning = -22005; + +const int kTXNCannotAddFrameErr = -22001; + +const int kTXNCannotSetAutoIndentErr = -22006; + +const int kTXNCannotTurnTSMOffWhenUsingUnicodeErr = -22013; + +const int kTXNCopyNotAllowedInEchoModeErr = -22014; + +const int kTXNDataTypeNotAllowedErr = -22015; + +const int kTXNEndIterationErr = -22000; + +const int kTXNIllegalToCrossDataBoundariesErr = -22003; + +const int kTXNInvalidFrameIDErr = -22002; + +const int kTXNInvalidRunIndex = -22011; + +const int kTXNNoMatchErr = -22008; + +const int kTXNOutsideOfFrameErr = -22018; + +const int kTXNOutsideOfLineErr = -22017; + +const int kTXNRunIndexOutofBoundsErr = -22007; + +const int kTXNSomeOrAllTagsInvalidForRunErr = -22010; + +const int kTXNUserCanceledOperationErr = -22004; + +const int kTallCapsSelector = 5; + +@Deprecated('Deprecated') +const int kTaskCreationException = 16; + +@Deprecated('Deprecated') +const int kTaskTerminationException = 15; + +@Deprecated('Deprecated') +const int kTemporaryFolderType = 1952804208; + +@Deprecated('Deprecated') +const int kTemporaryItemsInCacheDataFolderType = 1987341680; + +@Deprecated('Deprecated') +const int kTemporaryItemsInUserDomainFolderType = 1952804209; + +const int kTextCenter = 1; + +const int kTextEncodingANSEL = 1537; + +const int kTextEncodingBaseName = 1; + +const int kTextEncodingBig5 = 2563; + +const int kTextEncodingBig5_E = 2569; + +const int kTextEncodingBig5_HKSCS_1999 = 2566; + +const int kTextEncodingCNS_11643_92_P1 = 1617; + +const int kTextEncodingCNS_11643_92_P2 = 1618; + +const int kTextEncodingCNS_11643_92_P3 = 1619; + +const int kTextEncodingDOSArabic = 1049; + +const int kTextEncodingDOSBalticRim = 1030; + +const int kTextEncodingDOSCanadianFrench = 1048; + +const int kTextEncodingDOSChineseSimplif = 1057; + +const int kTextEncodingDOSChineseTrad = 1059; + +const int kTextEncodingDOSCyrillic = 1043; + +const int kTextEncodingDOSGreek = 1029; + +const int kTextEncodingDOSGreek1 = 1041; + +const int kTextEncodingDOSGreek2 = 1052; + +const int kTextEncodingDOSHebrew = 1047; + +const int kTextEncodingDOSIcelandic = 1046; + +const int kTextEncodingDOSJapanese = 1056; + +const int kTextEncodingDOSKorean = 1058; + +const int kTextEncodingDOSLatin1 = 1040; + +const int kTextEncodingDOSLatin2 = 1042; + +const int kTextEncodingDOSLatinUS = 1024; + +const int kTextEncodingDOSNordic = 1050; + +const int kTextEncodingDOSPortuguese = 1045; + +const int kTextEncodingDOSRussian = 1051; + +const int kTextEncodingDOSThai = 1053; + +const int kTextEncodingDOSTurkish = 1044; + +const int kTextEncodingDefaultFormat = 0; + +const int kTextEncodingDefaultVariant = 0; + +const int kTextEncodingEBCDIC_CP037 = 3074; + +const int kTextEncodingEBCDIC_LatinCore = 3073; + +const int kTextEncodingEBCDIC_US = 3073; + +const int kTextEncodingEUC_CN = 2352; + +const int kTextEncodingEUC_JP = 2336; + +const int kTextEncodingEUC_KR = 2368; + +const int kTextEncodingEUC_TW = 2353; + +const int kTextEncodingFormatName = 3; + +const int kTextEncodingFullName = 0; + +const int kTextEncodingGBK_95 = 1585; + +const int kTextEncodingGB_18030_2000 = 1586; + +const int kTextEncodingGB_18030_2005 = 1586; + +const int kTextEncodingGB_2312_80 = 1584; + +const int kTextEncodingHZ_GB_2312 = 2565; + +const int kTextEncodingISO10646_1993 = 257; + +const int kTextEncodingISOLatin1 = 513; + +const int kTextEncodingISOLatin10 = 528; + +const int kTextEncodingISOLatin2 = 514; + +const int kTextEncodingISOLatin3 = 515; + +const int kTextEncodingISOLatin4 = 516; + +const int kTextEncodingISOLatin5 = 521; + +const int kTextEncodingISOLatin6 = 522; + +const int kTextEncodingISOLatin7 = 525; + +const int kTextEncodingISOLatin8 = 526; + +const int kTextEncodingISOLatin9 = 527; + +const int kTextEncodingISOLatinArabic = 518; + +const int kTextEncodingISOLatinCyrillic = 517; + +const int kTextEncodingISOLatinGreek = 519; + +const int kTextEncodingISOLatinHebrew = 520; + +const int kTextEncodingISO_2022_CN = 2096; + +const int kTextEncodingISO_2022_CN_EXT = 2097; + +const int kTextEncodingISO_2022_JP = 2080; + +const int kTextEncodingISO_2022_JP_1 = 2082; + +const int kTextEncodingISO_2022_JP_2 = 2081; + +const int kTextEncodingISO_2022_JP_3 = 2083; + +const int kTextEncodingISO_2022_KR = 2112; + +const int kTextEncodingJIS_C6226_78 = 1572; + +const int kTextEncodingJIS_X0201_76 = 1568; + +const int kTextEncodingJIS_X0208_83 = 1569; + +const int kTextEncodingJIS_X0208_90 = 1570; + +const int kTextEncodingJIS_X0212_90 = 1571; + +const int kTextEncodingJIS_X0213_MenKuTen = 1577; + +const int kTextEncodingKOI8_R = 2562; + +const int kTextEncodingKOI8_U = 2568; + +const int kTextEncodingKSC_5601_87 = 1600; + +const int kTextEncodingKSC_5601_92_Johab = 1601; + +const int kTextEncodingMacArabic = 4; + +const int kTextEncodingMacArmenian = 24; + +const int kTextEncodingMacBengali = 13; + +const int kTextEncodingMacBurmese = 19; + +const int kTextEncodingMacCeltic = 39; + +const int kTextEncodingMacCentralEurRoman = 29; + +const int kTextEncodingMacChineseSimp = 25; + +const int kTextEncodingMacChineseTrad = 2; + +const int kTextEncodingMacCroatian = 36; + +const int kTextEncodingMacCyrillic = 7; + +const int kTextEncodingMacDevanagari = 9; + +const int kTextEncodingMacDingbats = 34; + +const int kTextEncodingMacEastEurRoman = 29; + +const int kTextEncodingMacEthiopic = 28; + +const int kTextEncodingMacExtArabic = 31; + +const int kTextEncodingMacFarsi = 140; + +const int kTextEncodingMacGaelic = 40; + +const int kTextEncodingMacGeez = 28; + +const int kTextEncodingMacGeorgian = 23; + +const int kTextEncodingMacGreek = 6; + +const int kTextEncodingMacGujarati = 11; + +const int kTextEncodingMacGurmukhi = 10; + +const int kTextEncodingMacHFS = 255; + +const int kTextEncodingMacHebrew = 5; + +const int kTextEncodingMacIcelandic = 37; + +const int kTextEncodingMacInuit = 236; + +const int kTextEncodingMacJapanese = 1; + +const int kTextEncodingMacKannada = 16; + +const int kTextEncodingMacKeyboardGlyphs = 41; + +const int kTextEncodingMacKhmer = 20; + +const int kTextEncodingMacKorean = 3; + +const int kTextEncodingMacLaotian = 22; + +const int kTextEncodingMacMalayalam = 17; + +const int kTextEncodingMacMongolian = 27; + +const int kTextEncodingMacOriya = 12; + +const int kTextEncodingMacRSymbol = 8; + +const int kTextEncodingMacRoman = 0; + +const int kTextEncodingMacRomanLatin1 = 2564; + +const int kTextEncodingMacRomanian = 38; + +const int kTextEncodingMacSimpChinese = 25; + +const int kTextEncodingMacSinhalese = 18; + +const int kTextEncodingMacSymbol = 33; + +const int kTextEncodingMacTamil = 14; + +const int kTextEncodingMacTelugu = 15; + +const int kTextEncodingMacThai = 21; + +const int kTextEncodingMacTibetan = 26; + +const int kTextEncodingMacTradChinese = 2; + +const int kTextEncodingMacTurkish = 35; + +const int kTextEncodingMacUkrainian = 152; + +const int kTextEncodingMacUnicode = 126; + +const int kTextEncodingMacUninterp = 32; + +const int kTextEncodingMacVT100 = 252; + +const int kTextEncodingMacVietnamese = 30; + +const int kTextEncodingMultiRun = 4095; + +const int kTextEncodingNextStepJapanese = 2818; + +const int kTextEncodingNextStepLatin = 2817; + +const int kTextEncodingShiftJIS = 2561; + +const int kTextEncodingShiftJIS_X0213 = 1576; + +const int kTextEncodingShiftJIS_X0213_00 = 1576; + +const int kTextEncodingUS_ASCII = 1536; + +const int kTextEncodingUnicodeDefault = 256; + +const int kTextEncodingUnicodeV10_0 = 276; + +const int kTextEncodingUnicodeV11_0 = 277; + +const int kTextEncodingUnicodeV12_1 = 278; + +const int kTextEncodingUnicodeV13_0 = 279; + +const int kTextEncodingUnicodeV14_0 = 280; + +const int kTextEncodingUnicodeV15_0 = 281; + +const int kTextEncodingUnicodeV15_1 = 282; + +const int kTextEncodingUnicodeV1_1 = 257; + +const int kTextEncodingUnicodeV2_0 = 259; + +const int kTextEncodingUnicodeV2_1 = 259; + +const int kTextEncodingUnicodeV3_0 = 260; + +const int kTextEncodingUnicodeV3_1 = 261; + +const int kTextEncodingUnicodeV3_2 = 262; + +const int kTextEncodingUnicodeV4_0 = 264; + +const int kTextEncodingUnicodeV5_0 = 266; + +const int kTextEncodingUnicodeV5_1 = 267; + +const int kTextEncodingUnicodeV6_0 = 269; + +const int kTextEncodingUnicodeV6_1 = 270; + +const int kTextEncodingUnicodeV6_3 = 272; + +const int kTextEncodingUnicodeV7_0 = 273; + +const int kTextEncodingUnicodeV8_0 = 274; + +const int kTextEncodingUnicodeV9_0 = 275; + +const int kTextEncodingUnknown = 65535; + +const int kTextEncodingVISCII = 2567; + +const int kTextEncodingVariantName = 2; + +const int kTextEncodingWindowsANSI = 1280; + +const int kTextEncodingWindowsArabic = 1286; + +const int kTextEncodingWindowsBalticRim = 1287; + +const int kTextEncodingWindowsCyrillic = 1282; + +const int kTextEncodingWindowsGreek = 1283; + +const int kTextEncodingWindowsHebrew = 1285; + +const int kTextEncodingWindowsKoreanJohab = 1296; + +const int kTextEncodingWindowsLatin1 = 1280; + +const int kTextEncodingWindowsLatin2 = 1281; + +const int kTextEncodingWindowsLatin5 = 1284; + +const int kTextEncodingWindowsVietnamese = 1288; + +const int kTextEncodingsFolderIcon = -999004808; + +@Deprecated('Deprecated') +const int kTextEncodingsFolderType = -999004808; + +const int kTextFlushDefault = 0; + +const int kTextFlushLeft = -2; + +const int kTextFlushRight = -1; + +const int kTextLanguageDontCare = -128; + +const int kTextMalformedInputErr = -8739; + +const int kTextRegionDontCare = -128; + +const int kTextScriptDontCare = -128; + +const int kTextServiceClass = 1953724003; + +const int kTextSpacingType = 22; + +const int kTextToSpeechSynthType = 1953788771; + +const int kTextToSpeechVoiceBundleType = 1953789538; + +const int kTextToSpeechVoiceFileType = 1953789542; + +const int kTextToSpeechVoiceType = 1953789540; + +const int kTextUndefinedElementErr = -8740; + +const int kTextUnsupportedEncodingErr = -8738; + +@Deprecated('Deprecated') +const int kThemesFolderType = 1953000805; + +@Deprecated('Deprecated') +const int kThinkCStackBased = 5; + +const int kThirdWidthNumbersSelector = 2; + +const int kThirdWidthTextSelector = 3; + +const int kThumbnail32BitData = 1769222962; + +const int kThumbnail8BitMask = 1949855083; + +const int kTickScale = 10000000; + +const int kTileIconVariant = 1953066085; + +const int kTitlingCapsSelector = 4; + +const int kTooManyIOWindowsErr = -9104; + +const int kToolbarAdvancedIcon = 1952604534; + +const int kToolbarApplicationsFolderIcon = 1950445683; + +const int kToolbarCustomizeIcon = 1952675187; + +const int kToolbarDeleteIcon = 1952736620; + +const int kToolbarDesktopFolderIcon = 1950643051; + +const int kToolbarDocumentsFolderIcon = 1950642019; + +const int kToolbarDownloadsFolderIcon = 1950644078; + +const int kToolbarFavoritesIcon = 1952866678; + +const int kToolbarHomeIcon = 1953001325; + +const int kToolbarInfoIcon = 1952606574; + +const int kToolbarLabelsIcon = 1952607330; + +const int kToolbarLibraryFolderIcon = 1951164770; + +const int kToolbarMovieFolderIcon = 1951231862; + +const int kToolbarMusicFolderIcon = 1951233395; + +const int kToolbarPicturesFolderIcon = 1951426915; + +const int kToolbarPublicFolderIcon = 1951429986; + +const int kToolbarSitesFolderIcon = 1951626355; + +const int kToolbarUtilitiesFolderIcon = 1951757420; + +@Deprecated('Deprecated') +const int kTraceException = 9; + +const int kTraditionalAltFiveSelector = 9; + +const int kTraditionalAltFourSelector = 8; + +const int kTraditionalAltOneSelector = 5; + +const int kTraditionalAltThreeSelector = 7; + +const int kTraditionalAltTwoSelector = 6; + +const int kTraditionalCharactersSelector = 0; + +const int kTraditionalNamesCharactersSelector = 14; + +const int kTranscodingCompositionOffSelector = 5; + +const int kTranscodingCompositionOnSelector = 4; + +const int kTransformDisabled = 1; + +const int kTransformLabel1 = 256; + +const int kTransformLabel2 = 512; + +const int kTransformLabel3 = 768; + +const int kTransformLabel4 = 1024; + +const int kTransformLabel5 = 1280; + +const int kTransformLabel6 = 1536; + +const int kTransformLabel7 = 1792; + +const int kTransformNone = 0; + +const int kTransformOffline = 2; + +const int kTransformOpen = 3; + +const int kTransformSelected = 16384; + +const int kTransformSelectedDisabled = 16385; + +const int kTransformSelectedOffline = 16386; + +const int kTransformSelectedOpen = 16387; + +const int kTranslationDataTranslation = 1; + +const int kTranslationFileTranslation = 2; + +const int kTransliterationType = 23; + +const int kTransparentEncodedPixel = 1; + +const int kTransparentEncoding = 0; + +const int kTransparentEncodingShift = 0; + +@Deprecated('Deprecated') +const int kTrapException = 2; + +@Deprecated('Deprecated') +const int kTrashFolderType = 1953657704; + +const int kTrashIcon = 1953657704; + +const int kTrashIconResource = -3993; + +const int kTrueTypeFlatFontIcon = 1936092788; + +const int kTrueTypeFontIcon = 1952868716; + +const int kTrueTypeMultiFlatFontIcon = 1953784678; + +@Deprecated('Deprecated') +const int kTwoByteCode = 2; + +const int kTwoWayEncryptPassword = 6; + +const int kTypeKCItemAttr = 1954115685; + +const int kTypographicExtrasType = 14; + +const int kUAZoomFocusTypeInsertionPoint = 1; + +const int kUAZoomFocusTypeOther = 0; + +const int kUCBidiCatArabicNumber = 6; + +const int kUCBidiCatBlockSeparator = 8; + +const int kUCBidiCatBoundaryNeutral = 19; + +const int kUCBidiCatCommonNumberSeparator = 7; + +const int kUCBidiCatEuroNumber = 3; + +const int kUCBidiCatEuroNumberSeparator = 4; + +const int kUCBidiCatEuroNumberTerminator = 5; + +const int kUCBidiCatFirstStrongIsolate = 22; + +const int kUCBidiCatLeftRight = 1; + +const int kUCBidiCatLeftRightEmbedding = 13; + +const int kUCBidiCatLeftRightIsolate = 20; + +const int kUCBidiCatLeftRightOverride = 15; + +const int kUCBidiCatNonSpacingMark = 18; + +const int kUCBidiCatNotApplicable = 0; + +const int kUCBidiCatOtherNeutral = 11; + +const int kUCBidiCatPopDirectionalFormat = 17; + +const int kUCBidiCatPopDirectionalIsolate = 23; + +const int kUCBidiCatRightLeft = 2; + +const int kUCBidiCatRightLeftArabic = 12; + +const int kUCBidiCatRightLeftEmbedding = 14; + +const int kUCBidiCatRightLeftIsolate = 21; + +const int kUCBidiCatRightLeftOverride = 16; + +const int kUCBidiCatSegmentSeparator = 9; + +const int kUCBidiCatWhitespace = 10; + +const int kUCCharPropTypeBidiCategory = 3; + +const int kUCCharPropTypeCombiningClass = 2; + +const int kUCCharPropTypeDecimalDigitValue = 4; + +const int kUCCharPropTypeGenlCategory = 1; + +const int kUCCollateCaseInsensitiveMask = 8; + +const int kUCCollateComposeInsensitiveMask = 2; + +const int kUCCollateDiacritInsensitiveMask = 16; + +const int kUCCollateDigitsAsNumberMask = 131072; + +const int kUCCollateDigitsOverrideMask = 65536; + +const int kUCCollatePunctuationSignificantMask = 32768; + +const int kUCCollateStandardOptions = 6; + +const int kUCCollateTypeHFSExtended = 1; + +const int kUCCollateTypeMask = -16777216; + +const int kUCCollateTypeShiftBits = 24; + +const int kUCCollateTypeSourceMask = 255; + +const int kUCCollateWidthInsensitiveMask = 4; + +const int kUCGenlCatLetterLowercase = 15; + +const int kUCGenlCatLetterModifier = 17; + +const int kUCGenlCatLetterOther = 18; + +const int kUCGenlCatLetterTitlecase = 16; + +const int kUCGenlCatLetterUppercase = 14; + +const int kUCGenlCatMarkEnclosing = 7; + +const int kUCGenlCatMarkNonSpacing = 5; + +const int kUCGenlCatMarkSpacingCombining = 6; + +const int kUCGenlCatNumberDecimalDigit = 8; + +const int kUCGenlCatNumberLetter = 9; + +const int kUCGenlCatNumberOther = 10; + +const int kUCGenlCatOtherControl = 1; + +const int kUCGenlCatOtherFormat = 2; + +const int kUCGenlCatOtherNotAssigned = 0; + +const int kUCGenlCatOtherPrivateUse = 4; + +const int kUCGenlCatOtherSurrogate = 3; + +const int kUCGenlCatPunctClose = 23; + +const int kUCGenlCatPunctConnector = 20; + +const int kUCGenlCatPunctDash = 21; + +const int kUCGenlCatPunctFinalQuote = 25; + +const int kUCGenlCatPunctInitialQuote = 24; + +const int kUCGenlCatPunctOpen = 22; + +const int kUCGenlCatPunctOther = 26; + +const int kUCGenlCatSeparatorLine = 12; + +const int kUCGenlCatSeparatorParagraph = 13; + +const int kUCGenlCatSeparatorSpace = 11; + +const int kUCGenlCatSymbolCurrency = 29; + +const int kUCGenlCatSymbolMath = 28; + +const int kUCGenlCatSymbolModifier = 30; + +const int kUCGenlCatSymbolOther = 31; + +const int kUCHighSurrogateRangeEnd = 56319; + +const int kUCHighSurrogateRangeStart = 55296; + +const int kUCKeyActionAutoKey = 2; + +const int kUCKeyActionDisplay = 3; + +const int kUCKeyActionDown = 0; + +const int kUCKeyActionUp = 1; + +const int kUCKeyLayoutFeatureInfoFormat = 8193; + +const int kUCKeyLayoutHeaderFormat = 4098; + +const int kUCKeyModifiersToTableNumFormat = 12289; + +const int kUCKeyOutputGetIndexMask = 16383; + +const int kUCKeyOutputSequenceIndexMask = 32768; + +const int kUCKeyOutputStateIndexMask = 16384; + +const int kUCKeyOutputTestForIndexMask = 49152; + +const int kUCKeySequenceDataIndexFormat = 28673; + +const int kUCKeyStateEntryRangeFormat = 2; + +const int kUCKeyStateEntryTerminalFormat = 1; + +const int kUCKeyStateRecordsIndexFormat = 20481; + +const int kUCKeyStateTerminatorsFormat = 24577; + +const int kUCKeyToCharTableIndexFormat = 16385; + +const int kUCKeyTranslateNoDeadKeysBit = 0; + +const int kUCKeyTranslateNoDeadKeysMask = 1; + +const int kUCLowSurrogateRangeEnd = 57343; + +const int kUCLowSurrogateRangeStart = 56320; + +const int kUCOutputBufferTooSmall = -25340; + +const int kUCTSDirectionNext = 0; + +const int kUCTSDirectionPrevious = 1; + +const int kUCTSNoKeysAddedToObjectErr = -25342; + +const int kUCTSOptionsDataIsOrderedMask = 2; + +const int kUCTSOptionsNoneMask = 0; + +const int kUCTSOptionsReleaseStringMask = 1; + +const int kUCTSSearchListErr = -25343; + +const int kUCTextBreakCharMask = 1; + +const int kUCTextBreakClusterMask = 4; + +const int kUCTextBreakGoBackwardsMask = 2; + +const int kUCTextBreakIterateMask = 4; + +const int kUCTextBreakLeadingEdgeMask = 1; + +const int kUCTextBreakLineMask = 64; + +const int kUCTextBreakLocatorMissingType = -25341; + +const int kUCTextBreakParagraphMask = 256; + +const int kUCTextBreakWordMask = 16; + +const int kUCTokenNotFound = -25346; + +const int kUCTokenizerIterationFinished = -25344; + +const int kUCTokenizerUnknownLang = -25345; + +const int kUCTypeSelectMaxListSize = -1; + +const int kURL68kNotSupportedError = -30788; + +const int kURLAccessNotAvailableError = -30787; + +const int kURLAuthenticationError = -30776; + +const int kURLDestinationExistsError = -30772; + +const int kURLExtensionFailureError = -30785; + +const int kURLFileEmptyError = -30783; + +const int kURLInvalidCallError = -30781; + +const int kURLInvalidConfigurationError = -30786; + +const int kURLInvalidURLError = -30773; + +const int kURLInvalidURLReferenceError = -30770; + +const int kURLProgressAlreadyDisplayedError = -30771; + +const int kURLPropertyBufferTooSmallError = -30779; + +const int kURLPropertyNotYetKnownError = -30777; + +const int kURLServerBusyError = -30775; + +const int kURLUnknownPropertyError = -30778; + +const int kURLUnsettablePropertyError = -30780; + +const int kURLUnsupportedSchemeError = -30774; + +const int kUSBAbortedError = -6982; + +const int kUSBAlreadyOpenErr = -6991; + +const int kUSBBadDispatchTable = -6950; + +const int kUSBBitstufErr = -6914; + +const int kUSBBufOvrRunErr = -6904; + +const int kUSBBufUnderRunErr = -6903; + +const int kUSBCRCErr = -6915; + +const int kUSBCompletionError = -6984; + +const int kUSBDataToggleErr = -6913; + +const int kUSBDeviceBusy = -6977; + +const int kUSBDeviceDisconnected = -6972; + +const int kUSBDeviceErr = -6989; + +const int kUSBDeviceNotSuspended = -6973; + +const int kUSBDevicePowerProblem = -6976; + +const int kUSBDeviceSuspended = -6974; + +const int kUSBEndpointStallErr = -6912; + +const int kUSBFlagsError = -6983; + +const int kUSBIncorrectTypeErr = -6995; + +const int kUSBInternalErr = -6999; + +const int kUSBInternalReserved1 = -6960; + +const int kUSBInternalReserved10 = -6951; + +const int kUSBInternalReserved2 = -6959; + +const int kUSBInternalReserved3 = -6958; + +const int kUSBInternalReserved4 = -6957; + +const int kUSBInternalReserved5 = -6956; + +const int kUSBInternalReserved6 = -6955; + +const int kUSBInternalReserved7 = -6954; + +const int kUSBInternalReserved8 = -6953; + +const int kUSBInternalReserved9 = -6952; + +const int kUSBInvalidBuffer = -6975; + +const int kUSBLinkErr = -6916; + +const int kUSBNoBandwidthError = -6981; + +const int kUSBNoDelay = 0; + +const int kUSBNoDeviceErr = -6990; + +const int kUSBNoErr = 0; + +const int kUSBNoTran = 0; + +const int kUSBNotFound = -6987; + +const int kUSBNotHandled = -6987; + +const int kUSBNotRespondingErr = -6911; + +const int kUSBNotSent1Err = -6902; + +const int kUSBNotSent2Err = -6901; + +const int kUSBOutOfMemoryErr = -6988; + +const int kUSBOverRunErr = -6908; + +const int kUSBPBLengthError = -6985; + +const int kUSBPBVersionError = -6986; + +const int kUSBPIDCheckErr = -6910; + +const int kUSBPending = 1; + +const int kUSBPipeIdleError = -6980; + +const int kUSBPipeStalledError = -6979; + +const int kUSBPortDisabled = -6969; + +const int kUSBQueueAborted = -6970; + +const int kUSBQueueFull = -6948; + +const int kUSBRes1Err = -6906; + +const int kUSBRes2Err = -6905; + +const int kUSBRqErr = -6994; + +const int kUSBTimedOut = -6971; + +const int kUSBTooManyPipesErr = -6996; + +const int kUSBTooManyTransactionsErr = -6992; + +const int kUSBUnderRunErr = -6907; + +const int kUSBUnknownDeviceErr = -6998; + +const int kUSBUnknownInterfaceErr = -6978; + +const int kUSBUnknownNotification = -6949; + +const int kUSBUnknownPipeErr = -6997; + +const int kUSBUnknownRequestErr = -6993; + +const int kUSBWrongPIDErr = -6909; + +@Deprecated('Deprecated') +const int kUTCDefaultOptions = 0; + +const int kUTCOverflowErr = -8851; + +const int kUTCUnderflowErr = -8850; + +const int kUYVY422PixelFormat = 1431918169; + +const int kUnconnectedSelector = 0; + +const int kUnicode16BitFormat = 0; + +const int kUnicode32BitFormat = 3; + +const int kUnicodeByteOrderMark = 65279; + +const int kUnicodeCanonicalCompVariant = 3; + +const int kUnicodeCanonicalDecompVariant = 2; + +const int kUnicodeCollationClass = 1969450860; + +const int kUnicodeDecompositionType = 27; + +const int kUnicodeDefaultDirection = 0; + +const int kUnicodeDefaultDirectionMask = 0; + +const int kUnicodeDirectionalityBits = 2; + +const int kUnicodeDirectionalityMask = 12; + +const int kUnicodeFallbackCustomFirst = 3; + +const int kUnicodeFallbackCustomOnly = 1; + +const int kUnicodeFallbackDefaultFirst = 2; + +const int kUnicodeFallbackDefaultOnly = 0; + +const int kUnicodeFallbackInterruptSafeMask = 4; + +const int kUnicodeFallbackSequencingBits = 0; + +const int kUnicodeFallbackSequencingMask = 3; + +const int kUnicodeForceASCIIRangeBit = 9; + +const int kUnicodeForceASCIIRangeMask = 512; + +const int kUnicodeHFSPlusCompVariant = 9; + +const int kUnicodeHFSPlusDecompVariant = 8; + +const int kUnicodeKeepInfoBit = 1; + +const int kUnicodeKeepInfoMask = 2; + +const int kUnicodeKeepSameEncodingBit = 8; + +const int kUnicodeKeepSameEncodingMask = 256; + +const int kUnicodeLeftToRight = 1; + +const int kUnicodeLeftToRightMask = 4; + +const int kUnicodeLooseMappingsBit = 5; + +const int kUnicodeLooseMappingsMask = 32; + +const int kUnicodeMapLineFeedToReturnBit = 12; + +const int kUnicodeMapLineFeedToReturnMask = 4096; + +const int kUnicodeMatchOtherBaseBit = 3; + +const int kUnicodeMatchOtherBaseMask = 8; + +const int kUnicodeMatchOtherFormatBit = 5; + +const int kUnicodeMatchOtherFormatMask = 32; + +const int kUnicodeMatchOtherVariantBit = 4; + +const int kUnicodeMatchOtherVariantMask = 16; + +const int kUnicodeMatchUnicodeBaseBit = 0; + +const int kUnicodeMatchUnicodeBaseMask = 1; + +const int kUnicodeMatchUnicodeFormatBit = 2; + +const int kUnicodeMatchUnicodeFormatMask = 4; + +const int kUnicodeMatchUnicodeVariantBit = 1; + +const int kUnicodeMatchUnicodeVariantMask = 2; + +const int kUnicodeMaxDecomposedVariant = 2; + +const int kUnicodeNoCompatibilityVariant = 1; + +const int kUnicodeNoComposedVariant = 3; + +const int kUnicodeNoCorporateVariant = 4; + +const int kUnicodeNoHalfwidthCharsBit = 10; + +const int kUnicodeNoHalfwidthCharsMask = 1024; + +const int kUnicodeNoSubset = 0; + +const int kUnicodeNormalizationFormC = 3; + +const int kUnicodeNormalizationFormD = 5; + +const int kUnicodeNotAChar = 65535; + +const int kUnicodeNotFromInputMethod = 1970170221; + +const int kUnicodeObjectReplacement = 65532; + +const int kUnicodeReplacementChar = 65533; + +const int kUnicodeRightToLeft = 2; + +const int kUnicodeRightToLeftMask = 8; + +const int kUnicodeSCSUFormat = 8; + +const int kUnicodeStringUnterminatedBit = 6; + +const int kUnicodeStringUnterminatedMask = 64; + +const int kUnicodeSwappedByteOrderMark = 65534; + +const int kUnicodeTextBreakClass = 1969386091; + +const int kUnicodeTextRunBit = 7; + +const int kUnicodeTextRunHeuristicsBit = 11; + +const int kUnicodeTextRunHeuristicsMask = 2048; + +const int kUnicodeTextRunMask = 128; + +const int kUnicodeUTF16BEFormat = 4; + +const int kUnicodeUTF16Format = 0; + +const int kUnicodeUTF16LEFormat = 5; + +const int kUnicodeUTF32BEFormat = 6; + +const int kUnicodeUTF32Format = 3; + +const int kUnicodeUTF32LEFormat = 7; + +const int kUnicodeUTF7Format = 1; + +const int kUnicodeUTF8Format = 2; + +const int kUnicodeUseExternalEncodingFormBit = 13; + +const int kUnicodeUseExternalEncodingFormMask = 8192; + +const int kUnicodeUseFallbacksBit = 0; + +const int kUnicodeUseFallbacksMask = 1; + +const int kUnicodeUseHFSPlusMapping = 4; + +const int kUnicodeUseLatestMapping = -1; + +const int kUnicodeVerticalFormBit = 4; + +const int kUnicodeVerticalFormMask = 16; + +@Deprecated('Deprecated') +const int kUnknownException = 0; + +const int kUnknownFSObjectIcon = 1970169459; + +const int kUnknownType = 1061109567; + +const int kUnlockKCEvent = 2; + +const int kUnlockKCEventMask = 4; + +const int kUnlockStateKCStatus = 1; + +const int kUnlockedIcon = 1970037611; + +@Deprecated('Deprecated') +const int kUnmappedMemoryException = 4; + +@Deprecated('Deprecated') +const int kUnresolvablePageFaultException = 7; + +const int kUnsupportedCardErr = -9098; + +const int kUnsupportedFunctionErr = -9072; + +const int kUnsupportedModeErr = -9073; + +const int kUnsupportedVsErr = -9090; + +const int kUnwrapKCItemAttr = 1970173810; + +const int kUpdateActiveInputArea = 1970300020; + +const int kUpdateKCEvent = 5; + +const int kUpdateKCEventMask = 32; + +const int kUpperAndLowerCaseSelector = 0; + +const int kUpperCaseNumbersSelector = 1; + +const int kUpperCasePetiteCapsSelector = 2; + +const int kUpperCaseSmallCapsSelector = 1; + +const int kUpperCaseType = 38; + +const int kUseAtoB = 1; + +const int kUseBtoA = 2; + +const int kUseBtoB = 3; + +@Deprecated('Deprecated') +const int kUseCurrentISA = 0; + +@Deprecated('Deprecated') +const int kUseNativeISA = 4; + +@Deprecated('Deprecated') +const int kUsePremadeThread = 2; + +const int kUseProfileIntent = -1; + +const int kUseWidePositioning = 256; + +@Deprecated('Deprecated') +const int kUserDomain = -32763; + +const int kUserFolderIcon = 1969646692; + +const int kUserIDiskIcon = 1969517419; + +const int kUserIcon = 1970496882; + +const int kUserPPDDomain = 5; + +@Deprecated('Deprecated') +const int kUserSpecificTmpFolderType = 1970564464; + +const int kUsersFolderIcon = 1970500292; + +@Deprecated('Deprecated') +const int kUsersFolderType = 1970500211; + +const int kUtilitiesFolderIcon = 1970563524; + +@Deprecated('Deprecated') +const int kUtilitiesFolderType = 1970563524; + +const int kVCBFlagsHFSPlusAPIsBit = 4; + +const int kVCBFlagsHFSPlusAPIsMask = 16; + +const int kVCBFlagsHardwareGoneBit = 5; + +const int kVCBFlagsHardwareGoneMask = 32; + +const int kVCBFlagsIdleFlushBit = 3; + +const int kVCBFlagsIdleFlushMask = 8; + +const int kVCBFlagsVolumeDirtyBit = 15; + +const int kVCBFlagsVolumeDirtyMask = 32768; + +@Deprecated('Deprecated') +const int kVLibTag2 = 1447848290; + +@Deprecated('Deprecated') +const int kVariableLengthArray = 1; + +const int kVerifyKCItemAttr = 1986359913; + +const int kVerticalConstraint = 1; + +const int kVerticalFractionsSelector = 1; + +const int kVerticalPositionType = 10; + +const int kVerticalSubstitutionType = 4; + +const int kVoicesFolderIcon = 1719037795; + +@Deprecated('Deprecated') +const int kVoicesFolderType = 1719037795; + +const int kVolumeKCItemAttr = 1986817381; + +@Deprecated('Deprecated') +const int kVolumeRootFolderType = 1919905652; + +@Deprecated('Deprecated') +const int kVolumeSettingsFolderType = 1987274340; + +const int kWakeToDoze = 19; + +@Deprecated('Deprecated') +const int kWhereToEmptyTrashFolderType = 1701671028; + +const int kWidePosOffsetBit = 8; + +const int kWidgetsFolderType = 2003068788; + +const int kWindowsLatin1PalmVariant = 1; + +const int kWindowsLatin1StandardVariant = 0; + +const int kWordFinalSwashesOffSelector = 3; + +const int kWordFinalSwashesOnSelector = 2; + +const int kWordInitialSwashesOffSelector = 1; + +const int kWordInitialSwashesOnSelector = 0; + +const int kWorkgroupFolderIcon = 2003201124; + +const int kWrPermKCStatus = 4; + +const int kWrapKCItemAttr = 2003984752; + +const int kWriteFailureErr = -9069; + +const int kWriteProtectedErr = -9075; + +@Deprecated('Deprecated') +const int kWriteReference = 0; + +@Deprecated('Deprecated') +const int kX86ISA = 2; + +@Deprecated('Deprecated') +const int kX86RTA = 32; + +@Deprecated('Deprecated') +const int kXLibTag1 = -263364253; + +@Deprecated('Deprecated') +const int kXLibVersion = 1; + +const int kYUV211PixelFormat = 1496461617; + +const int kYUV411PixelFormat = 1496592689; + +const int kYUVSPixelFormat = 2037741171; + +const int kYUVUPixelFormat = 2037741173; + +const int kYVU9PixelFormat = 1498830137; + +const int kYVYU422PixelFormat = 1498831189; + +const int kadministratorUser = 1; + +final class kauth_ace extends ffi.Struct { + external guid_t ace_applicable; + + @u_int32_t() + external int ace_flags; + + @kauth_ace_rights_t() + external int ace_rights; +} + +typedef kauth_ace_rights_t = u_int32_t; +typedef kauth_ace_t = ffi.Pointer; + +final class kauth_acl extends ffi.Struct { + @u_int32_t() + external int acl_entrycount; + + @u_int32_t() + external int acl_flags; + + @ffi.Array.multi([1]) + external ffi.Array acl_ace; +} + +typedef kauth_acl_t = ffi.Pointer; + +final class kauth_cache_sizes extends ffi.Struct { + @u_int32_t() + external int kcs_group_size; + + @u_int32_t() + external int kcs_id_size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int kcs_group_size, + required int kcs_id_size, + }) => $allocator() + ..ref.kcs_group_size = kcs_group_size + ..ref.kcs_id_size = kcs_id_size; +} + +final class kauth_filesec extends ffi.Struct { + @u_int32_t() + external int fsec_magic; + + external guid_t fsec_owner; + + external guid_t fsec_group; + + external kauth_acl fsec_acl; +} + +typedef kauth_filesec_t = ffi.Pointer; + +final class kauth_identity_extlookup extends ffi.Struct { + @u_int32_t() + external int el_seqno; + + @u_int32_t() + external int el_result; + + @u_int32_t() + external int el_flags; + + @__darwin_pid_t() + external int el_info_pid; + + @u_int64_t() + external int el_extend; + + @u_int32_t() + external int el_info_reserved_1; + + @uid_t() + external int el_uid; + + external guid_t el_uguid; + + @u_int32_t() + external int el_uguid_valid; + + external ntsid_t el_usid; + + @u_int32_t() + external int el_usid_valid; + + @gid_t() + external int el_gid; + + external guid_t el_gguid; + + @u_int32_t() + external int el_gguid_valid; + + external ntsid_t el_gsid; + + @u_int32_t() + external int el_gsid_valid; + + @u_int32_t() + external int el_member_valid; + + @u_int32_t() + external int el_sup_grp_cnt; + + @ffi.Array.multi([16]) + external ffi.Array el_sup_groups; +} + +typedef kcdata_object_t = mach_port_t; +typedef kern_return_t = ffi.Int; +typedef Dartkern_return_t = int; + +const int kernelAlreadyFreeErr = -2421; + +const int kernelAsyncReceiveLimitErr = -2414; + +const int kernelAsyncSendLimitErr = -2413; + +const int kernelAttributeErr = -2412; + +const int kernelCanceledErr = -2402; + +const int kernelDeletePermissionErr = -2410; + +const int kernelExceptionErr = -2418; + +const int kernelExecutePermissionErr = -2409; + +const int kernelExecutionLevelErr = -2411; + +const int kernelIDErr = -2419; + +const int kernelInUseErr = -2416; + +const int kernelIncompleteErr = -2401; + +const int kernelObjectExistsErr = -2406; + +const int kernelOptionsErr = -2403; + +const int kernelPrivilegeErr = -2404; + +const int kernelReadPermissionErr = -2408; + +const int kernelReturnValueErr = -2422; + +const int kernelTerminatedErr = -2417; + +const int kernelTimeoutErr = -2415; + +const int kernelUnrecoverableErr = -2499; + +const int kernelUnsupportedErr = -2405; + +const int kernelWritePermissionErr = -2407; + +final class kernel_resource_sizes extends ffi.Struct { + @natural_t() + external int task; + + @natural_t() + external int thread; + + @natural_t() + external int port; + + @natural_t() + external int memory_region; + + @natural_t() + external int memory_object; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int task, + required int thread, + required int port, + required int memory_region, + required int memory_object, + }) => $allocator() + ..ref.task = task + ..ref.thread = thread + ..ref.port = port + ..ref.memory_region = memory_region + ..ref.memory_object = memory_object; +} + +typedef kernel_resource_sizes_data_t = kernel_resource_sizes; +typedef kernel_resource_sizes_t = ffi.Pointer; + +const int keyAEAdjustMarksProc = 1633970797; + +const int keyAEAngle = 1801547367; + +const int keyAEArcAngle = 1885434467; + +const int keyAEAttaching = 1098146664; + +const int keyAEBaseAddr = 1650549860; + +const int keyAEBestType = 1885500276; + +const int keyAEBgndColor = 1801610092; + +const int keyAEBgndPattern = 1801613428; + +const int keyAEBounds = 1885498980; + +const int keyAEBufferSize = 1651861094; + +const int keyAECellList = 1801677940; + +const int keyAEClassID = 1668041028; + +const int keyAEClauseOffsets = 1668047221; + +const int keyAEColor = 1668246642; + +const int keyAEColorTable = 1668052066; + +const int keyAECompOperator = 1919249519; + +const int keyAECompareProc = 1668116594; + +const int keyAEContainer = 1718775661; + +const int keyAECountProc = 1668247156; + +const int keyAECurrentPoint = 1668312947; + +const int keyAECurveHeight = 1801676900; + +const int keyAECurveWidth = 1801680740; + +const int keyAEDashStyle = 1885631348; + +const int keyAEData = 1684108385; + +const int keyAEDefaultType = 1684366964; + +const int keyAEDefinitionRect = 1885631092; + +const int keyAEDescType = 1685288048; + +const int keyAEDesiredClass = 2002873972; + +const int keyAEDestination = 1684370292; + +const int keyAEDoAntiAlias = 1634628705; + +const int keyAEDoDithered = 1734633844; + +const int keyAEDoRotate = 1801745012; + +const int keyAEDoScale = 1802724193; + +const int keyAEDoTranslate = 1802793569; + +const int keyAEDragging = 1651470188; + +const int keyAEEditionFileLoc = 1701605219; + +const int keyAEElements = 1701604723; + +const int keyAEEndPoint = 1885695588; + +const int keyAEEventClass = 1702257516; + +const int keyAEEventID = 1702261865; + +const int keyAEFile = 1801873772; + +const int keyAEFileType = 1718383728; + +const int keyAEFillColor = 1718379372; + +const int keyAEFillPattern = 1718382708; + +const int keyAEFixLength = 1718188140; + +const int keyAEFlipHorizontal = 1801873519; + +const int keyAEFlipVertical = 1801877108; + +const int keyAEFont = 1718578804; + +const int keyAEFormula = 1885761394; + +const int keyAEGetErrDescProc = 1768842339; + +const int keyAEGraphicObjects = 1735352947; + +const int keyAEHiliteRange = 1752329831; + +const int keyAEID = 1229201440; + +const int keyAEImageQuality = 1735488865; + +const int keyAEIndex = 1802069112; + +const int keyAEInsertHere = 1768846184; + +const int keyAEKeyData = 1936026724; + +const int keyAEKeyForm = 1718579821; + +const int keyAEKeyForms = 1801812326; + +const int keyAEKeyword = 1803122532; + +const int keyAELaunchedAsLogInItem = 1818716532; + +const int keyAELaunchedAsServiceItem = 1937140084; + +const int keyAELeftSide = 1802265958; + +const int keyAELevel = 1818588780; + +const int keyAELineArrow = 1634890351; + +const int keyAELogicalOperator = 1819240291; + +const int keyAELogicalTerms = 1952805485; + +const int keyAEMarkProc = 1835102827; + +const int keyAEMarkTokenProc = 1835755876; + +const int keyAEMoveView = 1836480119; + +const int keyAEName = 1886282093; + +const int keyAENewElementLoc = 1886283116; + +const int keyAENextBody = 1853383268; + +const int keyAEObject = 1802461802; + +const int keyAEObject1 = 1868720689; + +const int keyAEObject2 = 1868720690; + +const int keyAEObjectClass = 1802462060; + +const int keyAEOffStyles = 1868985204; + +const int keyAEOffset = 1868985204; + +const int keyAEOnStyles = 1869509492; + +const int keyAEPMTable = 1802530164; + +const int keyAEPOSTHeaderData = 1885889892; + +const int keyAEParamFlags = 1886217831; + +const int keyAEParameters = 1886547315; + +const int keyAEPenColor = 1886413676; + +const int keyAEPenPattern = 1886416993; + +const int keyAEPenWidth = 1886418788; + +const int keyAEPinRange = 1886286439; + +const int keyAEPixMapMinus = 1802530157; + +const int keyAEPixelDepth = 1885630580; + +const int keyAEPoint = 1735421811; + +const int keyAEPointList = 1886678132; + +const int keyAEPointSize = 1886679930; + +const int keyAEPosition = 1802530675; + +const int keyAEPropData = 1886545012; + +const int keyAEPropFlags = 1886545511; + +const int keyAEPropID = 1886547824; + +const int keyAEProperties = 1903194735; + +const int keyAEProperty = 1802531440; + +const int keyAEProtection = 1886417519; + +const int keyAERangeStart = 1937006962; + +const int keyAERangeStop = 1937010544; + +const int keyAERecorderCount = 1919247218; + +const int keyAERegionClass = 1919381091; + +const int keyAERenderAs = 1802659182; + +const int keyAEReplyHeaderData = 1919444324; + +const int keyAERequestedType = 1920235888; + +const int keyAERestoreAppState = 1920169071; + +const int keyAEResult = 757935405; + +const int keyAEResultInfo = 1920166254; + +const int keyAERotPoint = 1802663024; + +const int keyAERotation = 1886547828; + +const int keyAERowList = 1802660979; + +const int keyAESaveOptions = 1935767151; + +const int keyAEScale = 1886610284; + +const int keyAEScriptTag = 1886610292; + +const int keyAESearchText = 1937012852; + +const int keyAEServerInstance = 1936881257; + +const int keyAEShowWhere = 1936224119; + +const int keyAEStartAngle = 1885433447; + +const int keyAEStartPoint = 1886614640; + +const int keyAEStyles = 1802728569; + +const int keyAESuiteID = 1937074548; + +const int keyAETSMDocumentRefcon = 1919247971; + +const int keyAETSMEventRecord = 1952806516; + +const int keyAETSMEventRef = 1952806514; + +const int keyAETSMGlyphInfoArray = 1952934241; + +const int keyAETSMScriptTag = 1935895655; + +const int keyAETSMTextFMFont = 1802795117; + +const int keyAETSMTextFont = 1802795110; + +const int keyAETSMTextPointSize = 1802793075; + +const int keyAETest = 1802793844; + +const int keyAEText = 1802795124; + +const int keyAETextColor = 1886681187; + +const int keyAETextFont = 1886681190; + +const int keyAETextLineAscent = 1802789235; + +const int keyAETextLineHeight = 1802792040; + +const int keyAETextPointSize = 1886679155; + +const int keyAETextServiceEncoding = 1953719662; + +const int keyAETextServiceMacEncoding = 1953326446; + +const int keyAETextStyles = 1954050932; + +const int keyAETheData = 1801740660; + +const int keyAETheText = 1953002616; + +const int keyAETransferMode = 1886418029; + +const int keyAETranslation = 1886679667; + +const int keyAETryAsStructGraf = 1953460071; + +const int keyAEUniformStyles = 1970500716; + +const int keyAEUpdateOn = 1886744676; + +const int keyAEUpdateRange = 1969516135; + +const int keyAEUserTerm = 1970565741; + +const int keyAEVersion = 1986359923; + +const int keyAEWhoseRangeStart = 2004055154; + +const int keyAEWhoseRangeStop = 2004055152; + +const int keyAEWindow = 2003723383; + +const int keyAEWritingCode = 2003985252; + +const int keyAEXMLReplyData = 2020762992; + +const int keyAEXMLRequestData = 2020762993; + +const int keyAcceptTimeoutAttr = 1633907821; + +const int keyActualSenderAuditToken = 1633902964; + +const int keyAdditionalHTTPHeaders = 1634231652; + +const int keyAddressAttr = 1633969266; + +const int keyAppleEventAttributesAttr = 1635021938; + +const int keyCloseAllWindows = 1667331872; + +const int keyDirectObject = 757935405; + +const int keyDisableAuthenticationAttr = 1635087464; + +const int keyDisposeTokenProc = 2020896619; + +const int keyDriveNumber = 1685222947; + +const int keyErrorCode = 1701999139; + +const int keyErrorNumber = 1701999214; + +const int keyErrorString = 1701999219; + +const int keyEventClassAttr = 1702257516; + +const int keyEventIDAttr = 1702259044; + +const int keyEventSourceAttr = 1702064739; + +const int keyEvtDev = 7; + +const int keyHighLevelClass = 1751346291; + +const int keyHighLevelID = 1751737376; + +const int keyICEditPreferenceDestination = 1684370292; + +const int keyInteractLevelAttr = 1768846437; + +const int keyKey = 1801812256; + +const int keyKeyCode = 1668244581; + +const int keyKeyboard = 1801812322; + +const int keyLocalWhere = 1819764850; + +const int keyMenuID = 1835623456; + +const int keyMenuItem = 1835627629; + +const int keyMiscellaneous = 1718448995; + +const int keyMissedKeywordAttr = 1835627379; + +const int keyModifiers = 1836016755; + +const int keyNewBounds = 1851944548; + +const int keyOptionalKeywordAttr = 1869640811; + +const int keyOriginalAddressAttr = 1718775661; + +const int keyOriginalBounds = 1868721764; + +const int keyPreDispatch = 1885888867; + +const int keyProcessSerialNumber = 1886613024; + +const int keyRPCMethodName = 1835365480; + +const int keyRPCMethodParam = 1885434477; + +const int keyRPCMethodParamOrder = 795832932; + +const int keyReplyPortAttr = 1919250544; + +const int keyReplyRequestedAttr = 1919250545; + +const int keyReturnIDAttr = 1920231780; + +const int keySOAPAction = 1935762292; + +const int keySOAPMethodNameSpace = 1836281955; + +const int keySOAPMethodNameSpaceURI = 1836281973; + +const int keySOAPSMDNamespace = 1936944755; + +const int keySOAPSMDNamespaceURI = 1936944757; + +const int keySOAPSMDType = 1936946288; + +const int keySOAPSchemaVersion = 1936941928; + +const int keySOAPStructureMetaData = 796093796; + +const int keySelectProc = 1936026728; + +const int keySelection = 1718838636; + +const int keySenderApplescriptEntitlementsAttr = 1701737580; + +const int keySenderApplicationIdentifierEntitlementAttr = 1634297185; + +const int keySenderApplicationSandboxed = 1936946018; + +const int keySenderAuditTokenAttr = 1953459054; + +const int keySenderEGIDAttr = 1936157028; + +const int keySenderEUIDAttr = 1936025956; + +const int keySenderGIDAttr = 1734960243; + +const int keySenderPIDAttr = 1936746852; + +const int keySenderUIDAttr = 1969841267; + +const int keyTimeoutAttr = 1953066351; + +const int keyTransactionIDAttr = 1953653102; + +const int keyUserNameAttr = 1970168173; + +const int keyUserPasswordAttr = 1885434739; + +const int keyWhen = 2003330414; + +const int keyWhere = 2003330418; + +const int keyWindow = 1802989156; + +const int keyXMLDebuggingAttr = 2019844711; + +typedef key_t = __int32_t; + +const int kfullPrivileges = 458759; + +@Deprecated('Deprecated') +const int kiMovieFolderType = 1768779638; + +@Deprecated('Deprecated') +const int kiMoviePlugInsFolderType = 1768779881; + +@Deprecated('Deprecated') +const int kiMovieSoundEffectsFolderType = 1768780645; + +const int kioACAccessBlankAccessBit = 28; + +const int kioACAccessBlankAccessMask = 268435456; + +const int kioACAccessEveryoneReadBit = 17; + +const int kioACAccessEveryoneReadMask = 131072; + +const int kioACAccessEveryoneSearchBit = 16; + +const int kioACAccessEveryoneSearchMask = 65536; + +const int kioACAccessEveryoneWriteBit = 18; + +const int kioACAccessEveryoneWriteMask = 262144; + +const int kioACAccessGroupReadBit = 9; + +const int kioACAccessGroupReadMask = 512; + +const int kioACAccessGroupSearchBit = 8; + +const int kioACAccessGroupSearchMask = 256; + +const int kioACAccessGroupWriteBit = 10; + +const int kioACAccessGroupWriteMask = 1024; + +const int kioACAccessOwnerBit = 31; + +const int kioACAccessOwnerMask = -2147483648; + +const int kioACAccessOwnerReadBit = 1; + +const int kioACAccessOwnerReadMask = 2; + +const int kioACAccessOwnerSearchBit = 0; + +const int kioACAccessOwnerSearchMask = 1; + +const int kioACAccessOwnerWriteBit = 2; + +const int kioACAccessOwnerWriteMask = 4; + +const int kioACAccessUserReadBit = 25; + +const int kioACAccessUserReadMask = 33554432; + +const int kioACAccessUserSearchBit = 24; + +const int kioACAccessUserSearchMask = 16777216; + +const int kioACAccessUserWriteBit = 26; + +const int kioACAccessUserWriteMask = 67108864; + +const int kioACUserNoMakeChangesBit = 2; + +const int kioACUserNoMakeChangesMask = 4; + +const int kioACUserNoSeeFilesBit = 1; + +const int kioACUserNoSeeFilesMask = 2; + +const int kioACUserNoSeeFolderBit = 0; + +const int kioACUserNoSeeFolderMask = 1; + +const int kioACUserNotOwnerBit = 7; + +const int kioACUserNotOwnerMask = 128; + +const int kioFCBFileLockedBit = 13; + +const int kioFCBFileLockedMask = 8192; + +const int kioFCBLargeFileBit = 11; + +const int kioFCBLargeFileMask = 2048; + +const int kioFCBModifiedBit = 15; + +const int kioFCBModifiedMask = 32768; + +const int kioFCBOwnClumpBit = 14; + +const int kioFCBOwnClumpMask = 16384; + +const int kioFCBResourceBit = 9; + +const int kioFCBResourceMask = 512; + +const int kioFCBSharedWriteBit = 12; + +const int kioFCBSharedWriteMask = 4096; + +const int kioFCBWriteBit = 8; + +const int kioFCBWriteLockedBit = 10; + +const int kioFCBWriteLockedMask = 1024; + +const int kioFCBWriteMask = 256; + +const int kioFlAttribCopyProtBit = 6; + +const int kioFlAttribCopyProtMask = 64; + +const int kioFlAttribDataOpenBit = 3; + +const int kioFlAttribDataOpenMask = 8; + +const int kioFlAttribDirBit = 4; + +const int kioFlAttribDirMask = 16; + +const int kioFlAttribFileOpenBit = 7; + +const int kioFlAttribFileOpenMask = 128; + +const int kioFlAttribInSharedBit = 2; + +const int kioFlAttribInSharedMask = 4; + +const int kioFlAttribLockedBit = 0; + +const int kioFlAttribLockedMask = 1; + +const int kioFlAttribMountedBit = 3; + +const int kioFlAttribMountedMask = 8; + +const int kioFlAttribResOpenBit = 2; + +const int kioFlAttribResOpenMask = 4; + +const int kioFlAttribSharePointBit = 5; + +const int kioFlAttribSharePointMask = 32; + +const int kioVAtrbDefaultVolumeBit = 5; + +const int kioVAtrbDefaultVolumeMask = 32; + +const int kioVAtrbFilesOpenBit = 6; + +const int kioVAtrbFilesOpenMask = 64; + +const int kioVAtrbHardwareLockedBit = 7; + +const int kioVAtrbHardwareLockedMask = 128; + +const int kioVAtrbSoftwareLockedBit = 15; + +const int kioVAtrbSoftwareLockedMask = 32768; + +typedef kmod_args_t = ffi.Pointer; +typedef kmod_control_flavor_t = ffi.Int; +typedef Dartkmod_control_flavor_t = int; + +@ffi.Packed(4) +final class kmod_info extends ffi.Struct { + external ffi.Pointer next; + + @ffi.Int32() + external int info_version; + + @ffi.Uint32() + external int id; + + @ffi.Array.multi([64]) + external ffi.Array name; + + @ffi.Array.multi([64]) + external ffi.Array version; + + @ffi.Int32() + external int reference_count; + + external ffi.Pointer reference_list; + + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + @vm_size_t() + external int hdr_size; + + external ffi.Pointer start; + + external ffi.Pointer stop; +} + +final class kmod_info_32_v1 extends ffi.Struct { + @ffi.Uint32() + external int next_addr; + + @ffi.Int32() + external int info_version; + + @ffi.Uint32() + external int id; + + @ffi.Array.multi([64]) + external ffi.Array name; + + @ffi.Array.multi([64]) + external ffi.Array version; + + @ffi.Int32() + external int reference_count; + + @ffi.Uint32() + external int reference_list_addr; + + @ffi.Uint32() + external int address; + + @ffi.Uint32() + external int size; + + @ffi.Uint32() + external int hdr_size; + + @ffi.Uint32() + external int start_addr; + + @ffi.Uint32() + external int stop_addr; +} + +typedef kmod_info_32_v1_t = kmod_info_32_v1; + +@ffi.Packed(4) +final class kmod_info_64_v1 extends ffi.Struct { + @ffi.Uint64() + external int next_addr; + + @ffi.Int32() + external int info_version; + + @ffi.Uint32() + external int id; + + @ffi.Array.multi([64]) + external ffi.Array name; + + @ffi.Array.multi([64]) + external ffi.Array version; + + @ffi.Int32() + external int reference_count; + + @ffi.Uint64() + external int reference_list_addr; + + @ffi.Uint64() + external int address; + + @ffi.Uint64() + external int size; + + @ffi.Uint64() + external int hdr_size; + + @ffi.Uint64() + external int start_addr; + + @ffi.Uint64() + external int stop_addr; +} + +typedef kmod_info_64_v1_t = kmod_info_64_v1; +typedef kmod_info_array_t = ffi.Pointer; +typedef kmod_info_t = kmod_info; + +@ffi.Packed(4) +final class kmod_reference extends ffi.Struct { + external ffi.Pointer next; + + external ffi.Pointer info; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer next, + required ffi.Pointer info, + }) => $allocator() + ..ref.next = next + ..ref.info = info; +} + +typedef kmod_reference_t = kmod_reference; +typedef kmod_start_func_t = + ffi.NativeFunction< + kern_return_t Function( + ffi.Pointer ki, + ffi.Pointer data, + ) + >; +typedef kmod_stop_func_t = + ffi.NativeFunction< + kern_return_t Function( + ffi.Pointer ki, + ffi.Pointer data, + ) + >; +typedef kmod_t = ffi.Int; +typedef Dartkmod_t = int; + +const int knoGroup = 0; + +const int knoUser = 0; + +const int kownerPrivileges = 7; + +final class kr_policy_list_item extends ffi.Opaque {} + +const int laDictionaryNotOpenedErr = -6992; + +const int laDictionaryTooManyErr = -6994; + +const int laDictionaryUnknownErr = -6993; + +const int laEngineNotFoundErr = -7000; + +const int laEnvironmentBusyErr = -6985; + +const int laEnvironmentExistErr = -6987; + +const int laEnvironmentNotFoundErr = -6986; + +const int laFailAnalysisErr = -6990; + +const int laInvalidPathErr = -6988; + +const int laNoMoreMorphemeErr = -6989; + +const int laPropertyErr = -6999; + +const int laPropertyIsReadOnlyErr = -6997; + +const int laPropertyNotFoundErr = -6998; + +const int laPropertyUnknownErr = -6996; + +const int laPropertyValueErr = -6995; + +const int laTextOverFlowErr = -6991; + +const int laTooSmallBufferErr = -6984; + +typedef labelstr_t = ffi.Pointer; +@Deprecated('Deprecated') +const int langAfricaans = 141; + +@Deprecated('Deprecated') +const int langAfrikaans = 141; + +@Deprecated('Deprecated') +const int langAlbanian = 36; + +@Deprecated('Deprecated') +const int langAmharic = 85; + +@Deprecated('Deprecated') +const int langArabic = 12; + +@Deprecated('Deprecated') +const int langArmenian = 51; + +@Deprecated('Deprecated') +const int langAssamese = 68; + +@Deprecated('Deprecated') +const int langAymara = 134; + +@Deprecated('Deprecated') +const int langAzerbaijanAr = 50; + +@Deprecated('Deprecated') +const int langAzerbaijanRoman = 150; + +@Deprecated('Deprecated') +const int langAzerbaijani = 49; + +@Deprecated('Deprecated') +const int langBasque = 129; + +@Deprecated('Deprecated') +const int langBelorussian = 46; + +@Deprecated('Deprecated') +const int langBengali = 67; + +@Deprecated('Deprecated') +const int langBreton = 142; + +@Deprecated('Deprecated') +const int langBulgarian = 44; + +@Deprecated('Deprecated') +const int langBurmese = 77; + +@Deprecated('Deprecated') +const int langByelorussian = 46; + +@Deprecated('Deprecated') +const int langCatalan = 130; + +@Deprecated('Deprecated') +const int langChewa = 92; + +@Deprecated('Deprecated') +const int langChinese = 19; + +@Deprecated('Deprecated') +const int langCroatian = 18; + +@Deprecated('Deprecated') +const int langCzech = 38; + +@Deprecated('Deprecated') +const int langDanish = 7; + +@Deprecated('Deprecated') +const int langDutch = 4; + +@Deprecated('Deprecated') +const int langDzongkha = 137; + +@Deprecated('Deprecated') +const int langEnglish = 0; + +@Deprecated('Deprecated') +const int langEsperanto = 94; + +@Deprecated('Deprecated') +const int langEstonian = 27; + +@Deprecated('Deprecated') +const int langFaeroese = 30; + +@Deprecated('Deprecated') +const int langFaroese = 30; + +@Deprecated('Deprecated') +const int langFarsi = 31; + +@Deprecated('Deprecated') +const int langFinnish = 13; + +@Deprecated('Deprecated') +const int langFlemish = 34; + +@Deprecated('Deprecated') +const int langFrench = 1; + +@Deprecated('Deprecated') +const int langGalician = 140; + +@Deprecated('Deprecated') +const int langGalla = 87; + +@Deprecated('Deprecated') +const int langGeorgian = 52; + +@Deprecated('Deprecated') +const int langGerman = 2; + +@Deprecated('Deprecated') +const int langGreek = 14; + +@Deprecated('Deprecated') +const int langGreekAncient = 148; + +@Deprecated('Deprecated') +const int langGreekPoly = 148; + +@Deprecated('Deprecated') +const int langGreenlandic = 149; + +@Deprecated('Deprecated') +const int langGuarani = 133; + +@Deprecated('Deprecated') +const int langGujarati = 69; + +@Deprecated('Deprecated') +const int langHebrew = 10; + +@Deprecated('Deprecated') +const int langHindi = 21; + +@Deprecated('Deprecated') +const int langHungarian = 26; + +@Deprecated('Deprecated') +const int langIcelandic = 15; + +@Deprecated('Deprecated') +const int langIndonesian = 81; + +@Deprecated('Deprecated') +const int langInuktitut = 143; + +@Deprecated('Deprecated') +const int langIrish = 35; + +@Deprecated('Deprecated') +const int langIrishGaelic = 35; + +@Deprecated('Deprecated') +const int langIrishGaelicScript = 146; + +@Deprecated('Deprecated') +const int langItalian = 3; + +@Deprecated('Deprecated') +const int langJapanese = 11; + +@Deprecated('Deprecated') +const int langJavaneseRom = 138; + +@Deprecated('Deprecated') +const int langKannada = 73; + +@Deprecated('Deprecated') +const int langKashmiri = 61; + +@Deprecated('Deprecated') +const int langKazakh = 48; + +@Deprecated('Deprecated') +const int langKhmer = 78; + +@Deprecated('Deprecated') +const int langKinyarwanda = 90; + +@Deprecated('Deprecated') +const int langKirghiz = 54; + +@Deprecated('Deprecated') +const int langKorean = 23; + +@Deprecated('Deprecated') +const int langKurdish = 60; + +@Deprecated('Deprecated') +const int langLao = 79; + +@Deprecated('Deprecated') +const int langLappish = 29; + +@Deprecated('Deprecated') +const int langLapponian = 29; + +@Deprecated('Deprecated') +const int langLatin = 131; + +@Deprecated('Deprecated') +const int langLatvian = 28; + +@Deprecated('Deprecated') +const int langLettish = 28; + +@Deprecated('Deprecated') +const int langLithuanian = 24; + +@Deprecated('Deprecated') +const int langMacedonian = 43; + +@Deprecated('Deprecated') +const int langMalagasy = 93; + +@Deprecated('Deprecated') +const int langMalayArabic = 84; + +@Deprecated('Deprecated') +const int langMalayRoman = 83; + +@Deprecated('Deprecated') +const int langMalayalam = 72; + +@Deprecated('Deprecated') +const int langMalta = 16; + +@Deprecated('Deprecated') +const int langMaltese = 16; + +@Deprecated('Deprecated') +const int langManxGaelic = 145; + +@Deprecated('Deprecated') +const int langMarathi = 66; + +@Deprecated('Deprecated') +const int langMoldavian = 53; + +@Deprecated('Deprecated') +const int langMongolian = 57; + +@Deprecated('Deprecated') +const int langMongolianCyr = 58; + +@Deprecated('Deprecated') +const int langNepali = 64; + +@Deprecated('Deprecated') +const int langNorwegian = 9; + +@Deprecated('Deprecated') +const int langNyanja = 92; + +@Deprecated('Deprecated') +const int langNynorsk = 151; + +@Deprecated('Deprecated') +const int langOriya = 71; + +@Deprecated('Deprecated') +const int langOromo = 87; + +@Deprecated('Deprecated') +const int langPashto = 59; + +@Deprecated('Deprecated') +const int langPersian = 31; + +@Deprecated('Deprecated') +const int langPolish = 25; + +@Deprecated('Deprecated') +const int langPortugese = 8; + +@Deprecated('Deprecated') +const int langPortuguese = 8; + +@Deprecated('Deprecated') +const int langPunjabi = 70; + +@Deprecated('Deprecated') +const int langQuechua = 132; + +@Deprecated('Deprecated') +const int langRomanian = 37; + +@Deprecated('Deprecated') +const int langRuanda = 90; + +@Deprecated('Deprecated') +const int langRundi = 91; + +@Deprecated('Deprecated') +const int langRussian = 32; + +@Deprecated('Deprecated') +const int langSaamisk = 29; + +@Deprecated('Deprecated') +const int langSami = 29; + +@Deprecated('Deprecated') +const int langSanskrit = 65; + +@Deprecated('Deprecated') +const int langScottishGaelic = 144; + +@Deprecated('Deprecated') +const int langSerbian = 42; + +@Deprecated('Deprecated') +const int langSimpChinese = 33; + +@Deprecated('Deprecated') +const int langSindhi = 62; + +@Deprecated('Deprecated') +const int langSinhalese = 76; + +@Deprecated('Deprecated') +const int langSlovak = 39; + +@Deprecated('Deprecated') +const int langSlovenian = 40; + +@Deprecated('Deprecated') +const int langSomali = 88; + +@Deprecated('Deprecated') +const int langSpanish = 6; + +@Deprecated('Deprecated') +const int langSundaneseRom = 139; + +@Deprecated('Deprecated') +const int langSwahili = 89; + +@Deprecated('Deprecated') +const int langSwedish = 5; + +@Deprecated('Deprecated') +const int langTagalog = 82; + +@Deprecated('Deprecated') +const int langTajiki = 55; + +@Deprecated('Deprecated') +const int langTamil = 74; + +@Deprecated('Deprecated') +const int langTatar = 135; + +@Deprecated('Deprecated') +const int langTelugu = 75; + +@Deprecated('Deprecated') +const int langThai = 22; + +@Deprecated('Deprecated') +const int langTibetan = 63; + +@Deprecated('Deprecated') +const int langTigrinya = 86; + +@Deprecated('Deprecated') +const int langTongan = 147; + +@Deprecated('Deprecated') +const int langTradChinese = 19; + +@Deprecated('Deprecated') +const int langTurkish = 17; + +@Deprecated('Deprecated') +const int langTurkmen = 56; + +@Deprecated('Deprecated') +const int langUighur = 136; + +@Deprecated('Deprecated') +const int langUkrainian = 45; + +@Deprecated('Deprecated') +const int langUnspecified = 32767; + +@Deprecated('Deprecated') +const int langUrdu = 20; + +@Deprecated('Deprecated') +const int langUzbek = 47; + +@Deprecated('Deprecated') +const int langVietnamese = 80; + +@Deprecated('Deprecated') +const int langWelsh = 128; + +@Deprecated('Deprecated') +const int langYiddish = 41; + +@Deprecated('Deprecated') +const int langYugoslavian = 18; + +const int lapProtErr = -94; + +const int large1BitMask = 1229147683; + +const int large4BitData = 1768123444; + +const int large8BitData = 1768123448; + +const int lastDskErr = -64; + +const int launchAllow24Bit = 256; + +const int launchContinue = 16384; + +const int launchDontSwitch = 512; + +const int launchInhibitDaemon = 128; + +const int launchNoFileFlags = 2048; + +const int launchUseMinimum = 1024; + +typedef launch_data_dict_iterator_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + launch_data_t lval, + ffi.Pointer key, + ffi.Pointer ctx, + ) + > + >; +typedef launch_data_t = ffi.Pointer<_launch_data>; + +enum launch_data_type_t { + LAUNCH_DATA_DICTIONARY(1), + LAUNCH_DATA_ARRAY(2), + LAUNCH_DATA_FD(3), + LAUNCH_DATA_INTEGER(4), + LAUNCH_DATA_REAL(5), + LAUNCH_DATA_BOOL(6), + LAUNCH_DATA_STRING(7), + LAUNCH_DATA_OPAQUE(8), + LAUNCH_DATA_ERRNO(9), + LAUNCH_DATA_MACHPORT(10); + + final int value; + const launch_data_type_t(this.value); + + static launch_data_type_t fromValue(int value) => switch (value) { + 1 => LAUNCH_DATA_DICTIONARY, + 2 => LAUNCH_DATA_ARRAY, + 3 => LAUNCH_DATA_FD, + 4 => LAUNCH_DATA_INTEGER, + 5 => LAUNCH_DATA_REAL, + 6 => LAUNCH_DATA_BOOL, + 7 => LAUNCH_DATA_STRING, + 8 => LAUNCH_DATA_OPAQUE, + 9 => LAUNCH_DATA_ERRNO, + 10 => LAUNCH_DATA_MACHPORT, + _ => throw ArgumentError('Unknown value for launch_data_type_t: $value'), + }; +} + +final class lconv extends ffi.Struct { + external ffi.Pointer decimal_point; + + external ffi.Pointer thousands_sep; + + external ffi.Pointer grouping; + + external ffi.Pointer int_curr_symbol; + + external ffi.Pointer currency_symbol; + + external ffi.Pointer mon_decimal_point; + + external ffi.Pointer mon_thousands_sep; + + external ffi.Pointer mon_grouping; + + external ffi.Pointer positive_sign; + + external ffi.Pointer negative_sign; + + @ffi.Char() + external int int_frac_digits; + + @ffi.Char() + external int frac_digits; + + @ffi.Char() + external int p_cs_precedes; + + @ffi.Char() + external int p_sep_by_space; + + @ffi.Char() + external int n_cs_precedes; + + @ffi.Char() + external int n_sep_by_space; + + @ffi.Char() + external int p_sign_posn; + + @ffi.Char() + external int n_sign_posn; + + @ffi.Char() + external int int_p_cs_precedes; + + @ffi.Char() + external int int_n_cs_precedes; + + @ffi.Char() + external int int_p_sep_by_space; + + @ffi.Char() + external int int_n_sep_by_space; + + @ffi.Char() + external int int_p_sign_posn; + + @ffi.Char() + external int int_n_sign_posn; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer decimal_point, + required ffi.Pointer thousands_sep, + required ffi.Pointer grouping, + required ffi.Pointer int_curr_symbol, + required ffi.Pointer currency_symbol, + required ffi.Pointer mon_decimal_point, + required ffi.Pointer mon_thousands_sep, + required ffi.Pointer mon_grouping, + required ffi.Pointer positive_sign, + required ffi.Pointer negative_sign, + required int int_frac_digits, + required int frac_digits, + required int p_cs_precedes, + required int p_sep_by_space, + required int n_cs_precedes, + required int n_sep_by_space, + required int p_sign_posn, + required int n_sign_posn, + required int int_p_cs_precedes, + required int int_n_cs_precedes, + required int int_p_sep_by_space, + required int int_n_sep_by_space, + required int int_p_sign_posn, + required int int_n_sign_posn, + }) => $allocator() + ..ref.decimal_point = decimal_point + ..ref.thousands_sep = thousands_sep + ..ref.grouping = grouping + ..ref.int_curr_symbol = int_curr_symbol + ..ref.currency_symbol = currency_symbol + ..ref.mon_decimal_point = mon_decimal_point + ..ref.mon_thousands_sep = mon_thousands_sep + ..ref.mon_grouping = mon_grouping + ..ref.positive_sign = positive_sign + ..ref.negative_sign = negative_sign + ..ref.int_frac_digits = int_frac_digits + ..ref.frac_digits = frac_digits + ..ref.p_cs_precedes = p_cs_precedes + ..ref.p_sep_by_space = p_sep_by_space + ..ref.n_cs_precedes = n_cs_precedes + ..ref.n_sep_by_space = n_sep_by_space + ..ref.p_sign_posn = p_sign_posn + ..ref.n_sign_posn = n_sign_posn + ..ref.int_p_cs_precedes = int_p_cs_precedes + ..ref.int_n_cs_precedes = int_n_cs_precedes + ..ref.int_p_sep_by_space = int_p_sep_by_space + ..ref.int_n_sep_by_space = int_n_sep_by_space + ..ref.int_p_sign_posn = int_p_sign_posn + ..ref.int_n_sign_posn = int_n_sign_posn; +} + +final class ldiv_t extends ffi.Struct { + @ffi.Long() + external int quot; + + @ffi.Long() + external int rem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int quot, + required int rem, + }) => $allocator() + ..ref.quot = quot + ..ref.rem = rem; +} + +typedef ledger_amount_t = ffi.Int64; +typedef Dartledger_amount_t = int; +typedef ledger_array_t = ffi.Pointer; +typedef ledger_item_t = natural_t; +typedef ledger_port_array_t = ledger_array_t; +typedef ledger_port_t = ledger_t; +typedef ledger_t = mach_port_t; + +const int leftOverChars = 2; + +@Deprecated('Deprecated') +const int leftSingGuillemet = 220; + +const int limitReachedErr = -30549; + +final class linger extends ffi.Struct { + @ffi.Int() + external int l_onoff; + + @ffi.Int() + external int l_linger; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int l_onoff, + required int l_linger, + }) => $allocator() + ..ref.l_onoff = l_onoff + ..ref.l_linger = l_linger; +} + +final class lldiv_t extends ffi.Struct { + @ffi.LongLong() + external int quot; + + @ffi.LongLong() + external int rem; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int quot, + required int rem, + }) => $allocator() + ..ref.quot = quot + ..ref.rem = rem; +} + +const int localOnlyErr = -905; + +typedef locale_t = ffi.Pointer<_xlocale>; + +const int lockPortBitsBadPortErr = -8984; + +const int lockPortBitsBadSurfaceErr = -8980; + +const int lockPortBitsSurfaceLostErr = -8985; + +const int lockPortBitsWindowClippedErr = -8983; + +const int lockPortBitsWindowMovedErr = -8981; + +const int lockPortBitsWindowResizedErr = -8982; + +const int lockPortBitsWrongGDeviceErr = -8991; + +typedef lock_set_port_t = lock_set_t; +typedef lock_set_t = mach_port_t; + +final class lockgroup_info extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array lockgroup_name; + + @ffi.Uint64() + external int lockgroup_attr; + + @ffi.Uint64() + external int lock_spin_cnt; + + @ffi.Uint64() + external int lock_spin_util_cnt; + + @ffi.Uint64() + external int lock_spin_held_cnt; + + @ffi.Uint64() + external int lock_spin_miss_cnt; + + @ffi.Uint64() + external int lock_spin_held_max; + + @ffi.Uint64() + external int lock_spin_held_cum; + + @ffi.Uint64() + external int lock_mtx_cnt; + + @ffi.Uint64() + external int lock_mtx_util_cnt; + + @ffi.Uint64() + external int lock_mtx_held_cnt; + + @ffi.Uint64() + external int lock_mtx_miss_cnt; + + @ffi.Uint64() + external int lock_mtx_wait_cnt; + + @ffi.Uint64() + external int lock_mtx_held_max; + + @ffi.Uint64() + external int lock_mtx_held_cum; + + @ffi.Uint64() + external int lock_mtx_wait_max; + + @ffi.Uint64() + external int lock_mtx_wait_cum; + + @ffi.Uint64() + external int lock_rw_cnt; + + @ffi.Uint64() + external int lock_rw_util_cnt; + + @ffi.Uint64() + external int lock_rw_held_cnt; + + @ffi.Uint64() + external int lock_rw_miss_cnt; + + @ffi.Uint64() + external int lock_rw_wait_cnt; + + @ffi.Uint64() + external int lock_rw_held_max; + + @ffi.Uint64() + external int lock_rw_held_cum; + + @ffi.Uint64() + external int lock_rw_wait_max; + + @ffi.Uint64() + external int lock_rw_wait_cum; +} + +typedef lockgroup_info_array_t = ffi.Pointer; +typedef lockgroup_info_t = lockgroup_info; + +@ffi.Packed(4) +final class log2phys extends ffi.Struct { + @ffi.UnsignedInt() + external int l2p_flags; + + @off_t() + external int l2p_contigbytes; + + @off_t() + external int l2p_devoffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int l2p_flags, + required int l2p_contigbytes, + required int l2p_devoffset, + }) => $allocator() + ..ref.l2p_flags = l2p_flags + ..ref.l2p_contigbytes = l2p_contigbytes + ..ref.l2p_devoffset = l2p_devoffset; +} + +const int longDate = 1; + +const int longDateFound = 1; + +const int longDay = 0; + +const int longMonth = 2; + +const int longWeek = 1; + +const int longYear = 3; + +const int mBarNFnd = -126; + +const int mFulErr = -41; + +const int macDev = 8; + +final class mach_core_details extends ffi.Struct { + @ffi.Uint64() + external int gzip_offset; + + @ffi.Uint64() + external int gzip_length; + + @ffi.Array.multi([16]) + external ffi.Array core_name; +} + +final class mach_core_details_v2 extends ffi.Struct { + @ffi.Uint64() + external int flags; + + @ffi.Uint64() + external int offset; + + @ffi.Uint64() + external int length; + + @ffi.Array.multi([16]) + external ffi.Array core_name; +} + +final class mach_core_fileheader extends ffi.Struct { + @ffi.Uint64() + external int signature; + + @ffi.Uint64() + external int log_offset; + + @ffi.Uint64() + external int log_length; + + @ffi.Uint64() + external int num_files; + + @ffi.Array.multi([16]) + external ffi.Array files; +} + +final class mach_core_fileheader_base extends ffi.Struct { + @ffi.Uint64() + external int signature; + + @ffi.Uint32() + external int version; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int signature, + required int version, + }) => $allocator() + ..ref.signature = signature + ..ref.version = version; +} + +final class mach_core_fileheader_v2 extends ffi.Opaque {} + +final class mach_dead_name_notification_t extends ffi.Struct { + external mach_msg_header_t not_header; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int not_port; + + external mach_msg_format_0_trailer_t trailer; +} + +typedef mach_error_fn_t = + ffi.Pointer>; +typedef mach_error_t = kern_return_t; +typedef mach_eventlink_t = mach_port_t; +typedef mach_exception_code_t = mach_exception_data_type_t; +typedef mach_exception_data_t = ffi.Pointer; +typedef mach_exception_data_type_t = ffi.Int64; +typedef Dartmach_exception_data_type_t = int; +typedef mach_exception_subcode_t = mach_exception_data_type_t; + +final class mach_memory_info$1 extends ffi.Struct { + @ffi.Uint64() + external int flags; + + @ffi.Uint64() + external int site; + + @ffi.Uint64() + external int size; + + @ffi.Uint64() + external int free$1; + + @ffi.Uint64() + external int largest; + + @ffi.Uint64() + external int collectable_bytes; + + @ffi.Uint64() + external int mapped; + + @ffi.Uint64() + external int peak; + + @ffi.Uint16() + external int tag; + + @ffi.Uint16() + external int zone; + + @ffi.Array.multi([2]) + external ffi.Array _resvA; + + @ffi.Array.multi([3]) + external ffi.Array _resv; + + @ffi.Array.multi([80]) + external ffi.Array name; +} + +typedef mach_memory_info_array_t = ffi.Pointer; +typedef mach_memory_info_t = mach_memory_info$1; + +final class mach_msg_audit_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + @mach_port_seqno_t() + external int msgh_seqno; + + external security_token_t msgh_sender; + + external audit_token_t msgh_audit; +} + +final class mach_msg_base_t extends ffi.Struct { + external mach_msg_header_t header; + + external mach_msg_body_t body; +} + +typedef mach_msg_bits_t = ffi.UnsignedInt; +typedef Dartmach_msg_bits_t = int; + +final class mach_msg_body_t extends ffi.Struct { + @mach_msg_size_t() + external int msgh_descriptor_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_descriptor_count, + }) => + $allocator() + ..ref.msgh_descriptor_count = msgh_descriptor_count; +} + +@ffi.Packed(4) +final class mach_msg_context_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + @mach_port_seqno_t() + external int msgh_seqno; + + external security_token_t msgh_sender; + + external audit_token_t msgh_audit; + + @mach_port_context_t() + external int msgh_context; +} + +typedef mach_msg_copy_options_t = ffi.UnsignedInt; +typedef Dartmach_msg_copy_options_t = int; + +final class mach_msg_descriptor_t extends ffi.Opaque {} + +typedef mach_msg_descriptor_type_t = ffi.UnsignedInt; +typedef Dartmach_msg_descriptor_type_t = int; + +final class mach_msg_empty_rcv_t extends ffi.Struct { + external mach_msg_header_t header; + + external mach_msg_trailer_t trailer; +} + +final class mach_msg_empty_send_t extends ffi.Struct { + external mach_msg_header_t header; +} + +final class mach_msg_empty_t extends ffi.Union { + external mach_msg_empty_send_t send$1; + + external mach_msg_empty_rcv_t rcv; +} + +typedef mach_msg_filter_id = ffi.Int; +typedef Dartmach_msg_filter_id = int; +typedef mach_msg_format_0_trailer_t = mach_msg_security_trailer_t; +typedef mach_msg_guard_flags_t = ffi.UnsignedInt; +typedef Dartmach_msg_guard_flags_t = int; + +final class mach_msg_guarded_port_descriptor32_t extends ffi.Opaque {} + +final class mach_msg_guarded_port_descriptor64_t extends ffi.Opaque {} + +final class mach_msg_guarded_port_descriptor_t extends ffi.Opaque {} + +final class mach_msg_header_t extends ffi.Struct { + @mach_msg_bits_t() + external int msgh_bits; + + @mach_msg_size_t() + external int msgh_size; + + @mach_port_t() + external int msgh_remote_port; + + @mach_port_t() + external int msgh_local_port; + + @mach_port_name_t() + external int msgh_voucher_port; + + @mach_msg_id_t() + external int msgh_id; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_bits, + required int msgh_size, + required int msgh_remote_port, + required int msgh_local_port, + required int msgh_voucher_port, + required int msgh_id, + }) => $allocator() + ..ref.msgh_bits = msgh_bits + ..ref.msgh_size = msgh_size + ..ref.msgh_remote_port = msgh_remote_port + ..ref.msgh_local_port = msgh_local_port + ..ref.msgh_voucher_port = msgh_voucher_port + ..ref.msgh_id = msgh_id; +} + +typedef mach_msg_id_t = integer_t; + +@ffi.Packed(4) +final class mach_msg_mac_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + @mach_port_seqno_t() + external int msgh_seqno; + + external security_token_t msgh_sender; + + external audit_token_t msgh_audit; + + @mach_port_context_t() + external int msgh_context; + + @mach_msg_filter_id() + external int msgh_ad; + + external msg_labels_t msgh_labels; +} + +typedef mach_msg_max_trailer_t = mach_msg_mac_trailer_t; + +final class mach_msg_ool_descriptor32_t extends ffi.Opaque {} + +final class mach_msg_ool_descriptor64_t extends ffi.Opaque {} + +final class mach_msg_ool_descriptor_t extends ffi.Opaque {} + +final class mach_msg_ool_ports_descriptor32_t extends ffi.Opaque {} + +final class mach_msg_ool_ports_descriptor64_t extends ffi.Opaque {} + +final class mach_msg_ool_ports_descriptor_t extends ffi.Opaque {} + +typedef mach_msg_option_t = integer_t; +typedef mach_msg_options_t = integer_t; + +final class mach_msg_port_descriptor_t extends ffi.Opaque {} + +typedef mach_msg_priority_t = ffi.UnsignedInt; +typedef Dartmach_msg_priority_t = int; +typedef mach_msg_return_t = kern_return_t; + +final class mach_msg_security_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + @mach_port_seqno_t() + external int msgh_seqno; + + external security_token_t msgh_sender; +} + +final class mach_msg_seqno_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + @mach_port_seqno_t() + external int msgh_seqno; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_trailer_type, + required int msgh_trailer_size, + required int msgh_seqno, + }) => $allocator() + ..ref.msgh_trailer_type = msgh_trailer_type + ..ref.msgh_trailer_size = msgh_trailer_size + ..ref.msgh_seqno = msgh_seqno; +} + +typedef mach_msg_size_t = natural_t; +typedef mach_msg_timeout_t = natural_t; +typedef mach_msg_trailer_info_t = ffi.Pointer; +typedef mach_msg_trailer_size_t = ffi.UnsignedInt; +typedef Dartmach_msg_trailer_size_t = int; + +final class mach_msg_trailer_t extends ffi.Struct { + @mach_msg_trailer_type_t() + external int msgh_trailer_type; + + @mach_msg_trailer_size_t() + external int msgh_trailer_size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_trailer_type, + required int msgh_trailer_size, + }) => $allocator() + ..ref.msgh_trailer_type = msgh_trailer_type + ..ref.msgh_trailer_size = msgh_trailer_size; +} + +typedef mach_msg_trailer_type_t = ffi.UnsignedInt; +typedef Dartmach_msg_trailer_type_t = int; + +final class mach_msg_type_descriptor_t extends ffi.Opaque {} + +typedef mach_msg_type_name_t = ffi.UnsignedInt; +typedef Dartmach_msg_type_name_t = int; +typedef mach_msg_type_number_t = natural_t; +typedef mach_msg_type_size_t = natural_t; + +final class mach_no_senders_notification_t extends ffi.Struct { + external mach_msg_header_t not_header; + + external NDR_record_t NDR; + + @mach_msg_type_number_t() + external int not_count; + + external mach_msg_format_0_trailer_t trailer; +} + +typedef mach_port_array_t = ffi.Pointer; +typedef mach_port_context_t = vm_offset_t; + +final class mach_port_deleted_notification_t extends ffi.Struct { + external mach_msg_header_t not_header; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int not_port; + + external mach_msg_format_0_trailer_t trailer; +} + +typedef mach_port_delta_t = integer_t; + +final class mach_port_destroyed_notification_t extends ffi.Opaque {} + +typedef mach_port_flavor_t = ffi.Int; +typedef Dartmach_port_flavor_t = int; + +enum mach_port_guard_exception_codes { + kGUARD_EXC_NONE(0), + kGUARD_EXC_DESTROY(1), + kGUARD_EXC_MOD_REFS(2), + kGUARD_EXC_INVALID_OPTIONS(3), + kGUARD_EXC_SET_CONTEXT(4), + kGUARD_EXC_THREAD_SET_STATE(5), + kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE(6), + kGUARD_EXC_SERVICE_PORT_VIOLATION_FATAL(7), + kGUARD_EXC_UNGUARDED(8), + kGUARD_EXC_KOBJECT_REPLY_PORT_SEMANTICS(9), + kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS(10), + kGUARD_EXC_INCORRECT_GUARD(16), + kGUARD_EXC_IMMOVABLE(32), + kGUARD_EXC_STRICT_REPLY(64), + kGUARD_EXC_INVALID_NOTIFICATION_REQ(65), + kGUARD_EXC_INVALID_MPO_ENTITLEMENT(66), + kGUARD_EXC_DESCRIPTOR_VIOLATION(67), + kGUARD_EXC_MSG_FILTERED(128), + kGUARD_EXC_INVALID_RIGHT(256), + kGUARD_EXC_INVALID_NAME(512), + kGUARD_EXC_INVALID_VALUE(1024), + kGUARD_EXC_INVALID_ARGUMENT(2048), + kGUARD_EXC_RIGHT_EXISTS(4096), + kGUARD_EXC_KERN_NO_SPACE(8192), + kGUARD_EXC_KERN_FAILURE(16384), + kGUARD_EXC_KERN_RESOURCE(32768), + kGUARD_EXC_SEND_INVALID_REPLY(65536), + kGUARD_EXC_SEND_INVALID_VOUCHER(131072), + kGUARD_EXC_SEND_INVALID_RIGHT(262144), + kGUARD_EXC_RCV_INVALID_NAME(524288), + kGUARD_EXC_RCV_GUARDED_DESC(1048576), + kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL(1048577), + kGUARD_EXC_PROVISIONAL_REPLY_PORT(1048578), + kGUARD_EXC_OOL_PORT_ARRAY_CREATION(1048579), + kGUARD_EXC_MOVE_PROVISIONAL_REPLY_PORT(1048580), + kGUARD_EXC_REPLY_PORT_SINGLE_SO_RIGHT(1048581), + kGUARD_EXC_MOD_REFS_NON_FATAL(2097152), + kGUARD_EXC_IMMOVABLE_NON_FATAL(4194304); + + final int value; + const mach_port_guard_exception_codes(this.value); + + static mach_port_guard_exception_codes fromValue(int value) => + switch (value) { + 0 => kGUARD_EXC_NONE, + 1 => kGUARD_EXC_DESTROY, + 2 => kGUARD_EXC_MOD_REFS, + 3 => kGUARD_EXC_INVALID_OPTIONS, + 4 => kGUARD_EXC_SET_CONTEXT, + 5 => kGUARD_EXC_THREAD_SET_STATE, + 6 => kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE, + 7 => kGUARD_EXC_SERVICE_PORT_VIOLATION_FATAL, + 8 => kGUARD_EXC_UNGUARDED, + 9 => kGUARD_EXC_KOBJECT_REPLY_PORT_SEMANTICS, + 10 => kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS, + 16 => kGUARD_EXC_INCORRECT_GUARD, + 32 => kGUARD_EXC_IMMOVABLE, + 64 => kGUARD_EXC_STRICT_REPLY, + 65 => kGUARD_EXC_INVALID_NOTIFICATION_REQ, + 66 => kGUARD_EXC_INVALID_MPO_ENTITLEMENT, + 67 => kGUARD_EXC_DESCRIPTOR_VIOLATION, + 128 => kGUARD_EXC_MSG_FILTERED, + 256 => kGUARD_EXC_INVALID_RIGHT, + 512 => kGUARD_EXC_INVALID_NAME, + 1024 => kGUARD_EXC_INVALID_VALUE, + 2048 => kGUARD_EXC_INVALID_ARGUMENT, + 4096 => kGUARD_EXC_RIGHT_EXISTS, + 8192 => kGUARD_EXC_KERN_NO_SPACE, + 16384 => kGUARD_EXC_KERN_FAILURE, + 32768 => kGUARD_EXC_KERN_RESOURCE, + 65536 => kGUARD_EXC_SEND_INVALID_REPLY, + 131072 => kGUARD_EXC_SEND_INVALID_VOUCHER, + 262144 => kGUARD_EXC_SEND_INVALID_RIGHT, + 524288 => kGUARD_EXC_RCV_INVALID_NAME, + 1048576 => kGUARD_EXC_RCV_GUARDED_DESC, + 1048577 => kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL, + 1048578 => kGUARD_EXC_PROVISIONAL_REPLY_PORT, + 1048579 => kGUARD_EXC_OOL_PORT_ARRAY_CREATION, + 1048580 => kGUARD_EXC_MOVE_PROVISIONAL_REPLY_PORT, + 1048581 => kGUARD_EXC_REPLY_PORT_SINGLE_SO_RIGHT, + 2097152 => kGUARD_EXC_MOD_REFS_NON_FATAL, + 4194304 => kGUARD_EXC_IMMOVABLE_NON_FATAL, + _ => throw ArgumentError( + 'Unknown value for mach_port_guard_exception_codes: $value', + ), + }; +} + +final class mach_port_guard_info extends ffi.Struct { + @ffi.Uint64() + external int mpgi_guard; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mpgi_guard, + }) => $allocator()..ref.mpgi_guard = mpgi_guard; +} + +typedef mach_port_guard_info_t = mach_port_guard_info; + +final class mach_port_info_ext extends ffi.Struct { + external mach_port_status_t mpie_status; + + @mach_port_msgcount_t() + external int mpie_boost_cnt; + + @ffi.Array.multi([6]) + external ffi.Array reserved; +} + +typedef mach_port_info_ext_t = mach_port_info_ext; +typedef mach_port_info_t = ffi.Pointer; + +final class mach_port_limits extends ffi.Struct { + @mach_port_msgcount_t() + external int mpl_qlimit; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mpl_qlimit, + }) => $allocator()..ref.mpl_qlimit = mpl_qlimit; +} + +typedef mach_port_limits_t = mach_port_limits; +typedef mach_port_mscount_t = natural_t; +typedef mach_port_msgcount_t = natural_t; +typedef mach_port_name_array_t = ffi.Pointer; +typedef mach_port_name_t = natural_t; + +final class mach_port_options extends ffi.Struct { + @ffi.Uint32() + external int flags; + + external mach_port_limits_t mpl; + + external UnnamedUnion$4 unnamed; +} + +typedef mach_port_options_ptr_t = ffi.Pointer; +typedef mach_port_options_t = mach_port_options; + +final class mach_port_qos extends ffi.Opaque {} + +typedef mach_port_qos_t = mach_port_qos; +typedef mach_port_right_t = natural_t; +typedef mach_port_rights_t = natural_t; +typedef mach_port_seqno_t = natural_t; +typedef mach_port_srights_t = ffi.UnsignedInt; +typedef Dartmach_port_srights_t = int; + +final class mach_port_status extends ffi.Struct { + @mach_port_rights_t() + external int mps_pset; + + @mach_port_seqno_t() + external int mps_seqno; + + @mach_port_mscount_t() + external int mps_mscount; + + @mach_port_msgcount_t() + external int mps_qlimit; + + @mach_port_msgcount_t() + external int mps_msgcount; + + @mach_port_rights_t() + external int mps_sorights; + + @boolean_t() + external int mps_srights; + + @boolean_t() + external int mps_pdrequest; + + @boolean_t() + external int mps_nsrequest; + + @natural_t() + external int mps_flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mps_pset, + required int mps_seqno, + required int mps_mscount, + required int mps_qlimit, + required int mps_msgcount, + required int mps_sorights, + required int mps_srights, + required int mps_pdrequest, + required int mps_nsrequest, + required int mps_flags, + }) => $allocator() + ..ref.mps_pset = mps_pset + ..ref.mps_seqno = mps_seqno + ..ref.mps_mscount = mps_mscount + ..ref.mps_qlimit = mps_qlimit + ..ref.mps_msgcount = mps_msgcount + ..ref.mps_sorights = mps_sorights + ..ref.mps_srights = mps_srights + ..ref.mps_pdrequest = mps_pdrequest + ..ref.mps_nsrequest = mps_nsrequest + ..ref.mps_flags = mps_flags; +} + +typedef mach_port_status_t = mach_port_status; +typedef mach_port_t = __darwin_mach_port_t; +typedef mach_port_type_array_t = ffi.Pointer; +typedef mach_port_type_t = natural_t; +typedef mach_port_urefs_t = natural_t; + +final class mach_send_once_notification_t extends ffi.Struct { + external mach_msg_header_t not_header; + + external mach_msg_format_0_trailer_t trailer; +} + +final class mach_send_possible_notification_t extends ffi.Struct { + external mach_msg_header_t not_header; + + external NDR_record_t NDR; + + @mach_port_name_t() + external int not_port; + + external mach_msg_format_0_trailer_t trailer; +} + +final class mach_service_port_info extends ffi.Struct { + @ffi.Array.multi([255]) + external ffi.Array mspi_string_name; + + @ffi.Uint8() + external int mspi_domain_type; +} + +typedef mach_service_port_info_data_t = mach_service_port_info; +typedef mach_service_port_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class mach_task_basic_info extends ffi.Struct { + @mach_vm_size_t() + external int virtual_size; + + @mach_vm_size_t() + external int resident_size; + + @mach_vm_size_t() + external int resident_size_max; + + external time_value_t user_time; + + external time_value_t system_time; + + @policy_t() + external int policy; + + @integer_t() + external int suspend_count; +} + +typedef mach_task_basic_info_data_t = mach_task_basic_info; +typedef mach_task_basic_info_t = ffi.Pointer; +typedef mach_task_flavor_t = ffi.UnsignedInt; +typedef Dartmach_task_flavor_t = int; +typedef mach_thread_flavor_t = ffi.UnsignedInt; +typedef Dartmach_thread_flavor_t = int; + +final class mach_timespec extends ffi.Struct { + @ffi.UnsignedInt() + external int tv_sec; + + @clock_res_t() + external int tv_nsec; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tv_sec, + required int tv_nsec, + }) => $allocator() + ..ref.tv_sec = tv_sec + ..ref.tv_nsec = tv_nsec; +} + +typedef mach_timespec_t = mach_timespec; +typedef mach_vm_address_t = ffi.Uint64; +typedef Dartmach_vm_address_t = int; + +@ffi.Packed(4) +final class mach_vm_info_region extends ffi.Struct { + @mach_vm_offset_t() + external int vir_start; + + @mach_vm_offset_t() + external int vir_end; + + @mach_vm_offset_t() + external int vir_object; + + @memory_object_offset_t() + external int vir_offset; + + @boolean_t() + external int vir_needs_copy; + + @vm_prot_t() + external int vir_protection; + + @vm_prot_t() + external int vir_max_protection; + + @vm_inherit_t() + external int vir_inheritance; + + @natural_t() + external int vir_wired_count; + + @natural_t() + external int vir_user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int vir_start, + required int vir_end, + required int vir_object, + required int vir_offset, + required int vir_needs_copy, + required int vir_protection, + required int vir_max_protection, + required int vir_inheritance, + required int vir_wired_count, + required int vir_user_wired_count, + }) => $allocator() + ..ref.vir_start = vir_start + ..ref.vir_end = vir_end + ..ref.vir_object = vir_object + ..ref.vir_offset = vir_offset + ..ref.vir_needs_copy = vir_needs_copy + ..ref.vir_protection = vir_protection + ..ref.vir_max_protection = vir_max_protection + ..ref.vir_inheritance = vir_inheritance + ..ref.vir_wired_count = vir_wired_count + ..ref.vir_user_wired_count = vir_user_wired_count; +} + +typedef mach_vm_info_region_t = mach_vm_info_region; +typedef mach_vm_offset_list_t = ffi.Pointer; +typedef mach_vm_offset_t = ffi.Uint64; +typedef Dartmach_vm_offset_t = int; + +final class mach_vm_range extends ffi.Struct { + @mach_vm_offset_t() + external int min_address; + + @mach_vm_offset_t() + external int max_address; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int min_address, + required int max_address, + }) => $allocator() + ..ref.min_address = min_address + ..ref.max_address = max_address; +} + +sealed class mach_vm_range_flags_t { + static const MACH_VM_RANGE_NONE = 0; +} + +enum mach_vm_range_flavor_t { + MACH_VM_RANGE_FLAVOR_INVALID(0), + MACH_VM_RANGE_FLAVOR_V1(1); + + final int value; + const mach_vm_range_flavor_t(this.value); + + static mach_vm_range_flavor_t fromValue(int value) => switch (value) { + 0 => MACH_VM_RANGE_FLAVOR_INVALID, + 1 => MACH_VM_RANGE_FLAVOR_V1, + _ => throw ArgumentError( + 'Unknown value for mach_vm_range_flavor_t: $value', + ), + }; +} + +typedef mach_vm_range_recipe_t = mach_vm_range_recipe_v1_t; + +final class mach_vm_range_recipe_v1_t extends ffi.Opaque {} + +typedef mach_vm_range_recipes_raw_t = ffi.Pointer; +typedef mach_vm_range_t = ffi.Pointer; + +enum mach_vm_range_tag_t { + MACH_VM_RANGE_DEFAULT(0), + MACH_VM_RANGE_DATA(1), + MACH_VM_RANGE_FIXED(2); + + final int value; + const mach_vm_range_tag_t(this.value); + + static mach_vm_range_tag_t fromValue(int value) => switch (value) { + 0 => MACH_VM_RANGE_DEFAULT, + 1 => MACH_VM_RANGE_DATA, + 2 => MACH_VM_RANGE_FIXED, + _ => throw ArgumentError('Unknown value for mach_vm_range_tag_t: $value'), + }; +} + +@ffi.Packed(4) +final class mach_vm_read_entry extends ffi.Struct { + @mach_vm_address_t() + external int address; + + @mach_vm_size_t() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int address, + required int size, + }) => $allocator() + ..ref.address = address + ..ref.size = size; +} + +typedef mach_vm_size_t = ffi.Uint64; +typedef Dartmach_vm_size_t = int; +typedef mach_voucher_attr_command_t = ffi.Uint32; +typedef Dartmach_voucher_attr_command_t = int; +typedef mach_voucher_attr_content_size_t = ffi.Uint32; +typedef Dartmach_voucher_attr_content_size_t = int; +typedef mach_voucher_attr_content_t = ffi.Pointer; +typedef mach_voucher_attr_control_flags_t = ffi.Uint32; +typedef Dartmach_voucher_attr_control_flags_t = int; +typedef mach_voucher_attr_control_t = mach_port_t; +typedef mach_voucher_attr_importance_refs = ffi.Uint32; +typedef Dartmach_voucher_attr_importance_refs = int; +typedef mach_voucher_attr_key_array_t = ffi.Pointer; +typedef mach_voucher_attr_key_t = ffi.Uint32; +typedef Dartmach_voucher_attr_key_t = int; +typedef mach_voucher_attr_manager_t = mach_port_t; +typedef mach_voucher_attr_raw_recipe_array_size_t = mach_msg_type_number_t; +typedef mach_voucher_attr_raw_recipe_array_t = mach_voucher_attr_raw_recipe_t; +typedef mach_voucher_attr_raw_recipe_size_t = mach_msg_type_number_t; +typedef mach_voucher_attr_raw_recipe_t = ffi.Pointer; +typedef mach_voucher_attr_recipe_command_array_t = + ffi.Pointer; +typedef mach_voucher_attr_recipe_command_t = ffi.Uint32; +typedef Dartmach_voucher_attr_recipe_command_t = int; + +final class mach_voucher_attr_recipe_data extends ffi.Opaque {} + +typedef mach_voucher_attr_recipe_data_t = mach_voucher_attr_recipe_data; +typedef mach_voucher_attr_recipe_size_t = mach_msg_type_number_t; +typedef mach_voucher_attr_recipe_t = + ffi.Pointer; +typedef mach_voucher_attr_value_flags_t = ffi.Uint32; +typedef Dartmach_voucher_attr_value_flags_t = int; +typedef mach_voucher_attr_value_handle_array_size_t = mach_msg_type_number_t; +typedef mach_voucher_attr_value_handle_array_t = + ffi.Pointer; +typedef mach_voucher_attr_value_handle_t = ffi.Uint64; +typedef Dartmach_voucher_attr_value_handle_t = int; +typedef mach_voucher_attr_value_reference_t = ffi.Uint32; +typedef Dartmach_voucher_attr_value_reference_t = int; +typedef mach_voucher_name_array_t = ffi.Pointer; +typedef mach_voucher_name_t = mach_port_name_t; +typedef mach_voucher_selector_t = ffi.Uint32; +typedef Dartmach_voucher_selector_t = int; +typedef mach_voucher_t = mach_port_t; +typedef mach_zone_info_array_t = ffi.Pointer; + +final class mach_zone_info_data extends ffi.Struct { + @ffi.Uint64() + external int mzi_count; + + @ffi.Uint64() + external int mzi_cur_size; + + @ffi.Uint64() + external int mzi_max_size; + + @ffi.Uint64() + external int mzi_elem_size; + + @ffi.Uint64() + external int mzi_alloc_size; + + @ffi.Uint64() + external int mzi_sum_size; + + @ffi.Uint64() + external int mzi_exhaustible; + + @ffi.Uint64() + external int mzi_collectable; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int mzi_count, + required int mzi_cur_size, + required int mzi_max_size, + required int mzi_elem_size, + required int mzi_alloc_size, + required int mzi_sum_size, + required int mzi_exhaustible, + required int mzi_collectable, + }) => $allocator() + ..ref.mzi_count = mzi_count + ..ref.mzi_cur_size = mzi_cur_size + ..ref.mzi_max_size = mzi_max_size + ..ref.mzi_elem_size = mzi_elem_size + ..ref.mzi_alloc_size = mzi_alloc_size + ..ref.mzi_sum_size = mzi_sum_size + ..ref.mzi_exhaustible = mzi_exhaustible + ..ref.mzi_collectable = mzi_collectable; +} + +typedef mach_zone_info_t = mach_zone_info_data; + +final class mach_zone_name extends ffi.Struct { + @ffi.Array.multi([80]) + external ffi.Array mzn_name; +} + +typedef mach_zone_name_array_t = ffi.Pointer; +typedef mach_zone_name_t = mach_zone_name; +@Deprecated('Deprecated') +const int macron = 248; + +typedef malloc_type_id_t = ffi.UnsignedLongLong; +typedef Dartmalloc_type_id_t = int; +typedef malloc_zone_t = _malloc_zone_t; +@Deprecated('Deprecated') +const int mapChanged = 32; + +@Deprecated('Deprecated') +const int mapChangedBit = 5; + +@Deprecated('Deprecated') +const int mapCompact = 64; + +@Deprecated('Deprecated') +const int mapCompactBit = 6; + +const int mapReadErr = -199; + +@Deprecated('Deprecated') +const int mapReadOnly = 128; + +@Deprecated('Deprecated') +const int mapReadOnlyBit = 7; + +const int matrixErr = -2203; + +@Deprecated('Deprecated') +const int maxCountry = 108; + +const int maxDateField = 10; + +const int maxSizeToGrowTooSmall = -2027; + +typedef mcontext_t = ffi.Pointer<__darwin_mcontext64>; + +@Deprecated('Deprecated') +final class mds_funcs extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_HANDLE MdsHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ffi.Pointer OpenParameters, + ffi.Pointer hMds, + ) + > + > + DbOpen; + + external ffi.Pointer< + ffi.NativeFunction + > + DbClose; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_HANDLE MdsHandle, + ffi.Pointer NameList, + ) + > + > + GetDbNames; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer> DbName, + ) + > + > + GetDbNameFromHandle; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(MDS_HANDLE MdsHandle, CSSM_NAME_LIST_PTR NameList) + > + > + FreeNameList; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RecordType, + ffi.Pointer Attributes, + ffi.Pointer Data, + ffi.Pointer UniqueId, + ) + > + > + DataInsert; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer UniqueRecordIdentifier, + ) + > + > + DataDelete; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RecordType, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, + ffi.Pointer AttributesToBeModified, + ffi.Pointer DataToBeModified, + CSSM_DB_MODIFY_MODE ModifyMode, + ) + > + > + DataModify; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer Query, + CSSM_HANDLE_PTR ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetFirst; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_HANDLE ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetNext; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(MDS_DB_HANDLE MdsDbHandle, CSSM_HANDLE ResultsHandle) + > + > + DataAbortQuery; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer UniqueRecord, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ) + > + > + DataGetFromUniqueRecordId; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, + ) + > + > + FreeUniqueRecord; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RelationID, + ffi.Pointer RelationName, + uint32 NumberOfAttributes, + ffi.Pointer pAttributeInfo, + uint32 NumberOfIndexes, + ffi.Pointer pIndexInfo, + ) + > + > + CreateRelation; + + external ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RelationID, + ) + > + > + DestroyRelation; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_HANDLE MdsHandle, + ffi.Pointer DbName, + ffi.Pointer DbLocation, + CSSM_DB_ACCESS_TYPE AccessRequest, + ffi.Pointer AccessCred, + ffi.Pointer OpenParameters, + ffi.Pointer hMds, + ) + > + > + DbOpen, + required ffi.Pointer< + ffi.NativeFunction + > + DbClose, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_HANDLE MdsHandle, + ffi.Pointer NameList, + ) + > + > + GetDbNames, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer> DbName, + ) + > + > + GetDbNameFromHandle, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function(MDS_HANDLE MdsHandle, CSSM_NAME_LIST_PTR NameList) + > + > + FreeNameList, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RecordType, + ffi.Pointer Attributes, + ffi.Pointer Data, + ffi.Pointer UniqueId, + ) + > + > + DataInsert, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer UniqueRecordIdentifier, + ) + > + > + DataDelete, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RecordType, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, + ffi.Pointer AttributesToBeModified, + ffi.Pointer DataToBeModified, + CSSM_DB_MODIFY_MODE ModifyMode, + ) + > + > + DataModify, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer Query, + CSSM_HANDLE_PTR ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetFirst, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_HANDLE ResultsHandle, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ffi.Pointer UniqueId, + ) + > + > + DataGetNext, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_HANDLE ResultsHandle, + ) + > + > + DataAbortQuery, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + ffi.Pointer UniqueRecord, + CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, + CSSM_DATA_PTR Data, + ) + > + > + DataGetFromUniqueRecordId, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, + ) + > + > + FreeUniqueRecord, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RelationID, + ffi.Pointer RelationName, + uint32 NumberOfAttributes, + ffi.Pointer pAttributeInfo, + uint32 NumberOfIndexes, + ffi.Pointer pIndexInfo, + ) + > + > + CreateRelation, + required ffi.Pointer< + ffi.NativeFunction< + CSSM_RETURN Function( + MDS_DB_HANDLE MdsDbHandle, + CSSM_DB_RECORDTYPE RelationID, + ) + > + > + DestroyRelation, + }) => $allocator() + ..ref.DbOpen = DbOpen + ..ref.DbClose = DbClose + ..ref.GetDbNames = GetDbNames + ..ref.GetDbNameFromHandle = GetDbNameFromHandle + ..ref.FreeNameList = FreeNameList + ..ref.DataInsert = DataInsert + ..ref.DataDelete = DataDelete + ..ref.DataModify = DataModify + ..ref.DataGetFirst = DataGetFirst + ..ref.DataGetNext = DataGetNext + ..ref.DataAbortQuery = DataAbortQuery + ..ref.DataGetFromUniqueRecordId = DataGetFromUniqueRecordId + ..ref.FreeUniqueRecord = FreeUniqueRecord + ..ref.CreateRelation = CreateRelation + ..ref.DestroyRelation = DestroyRelation; +} + +const int mdy = 0; + +const int mediaTypesDontMatch = -2018; + +const int memAZErr = -113; + +const int memAdrErr = -110; + +const int memBCErr = -115; + +const int memFragErr = -601; + +const int memFullErr = -108; + +const int memLockedErr = -117; + +const int memPCErr = -114; + +const int memPurErr = -112; + +const int memROZErr = -99; + +const int memROZError = -99; + +const int memROZWarn = -99; + +const int memSCErr = -116; + +const int memWZErr = -111; + +typedef mem_entry_name_port_t = mach_port_t; +typedef memory_object_array_t = ffi.Pointer; + +final class memory_object_attr_info extends ffi.Struct { + @memory_object_copy_strategy_t() + external int copy_strategy; + + @memory_object_cluster_size_t() + external int cluster_size; + + @boolean_t() + external int may_cache_object; + + @boolean_t() + external int temporary; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int copy_strategy, + required int cluster_size, + required int may_cache_object, + required int temporary, + }) => $allocator() + ..ref.copy_strategy = copy_strategy + ..ref.cluster_size = cluster_size + ..ref.may_cache_object = may_cache_object + ..ref.temporary = temporary; +} + +typedef memory_object_attr_info_data_t = memory_object_attr_info; +typedef memory_object_attr_info_t = ffi.Pointer; + +final class memory_object_behave_info extends ffi.Struct { + @memory_object_copy_strategy_t() + external int copy_strategy; + + @boolean_t() + external int temporary; + + @boolean_t() + external int invalidate; + + @boolean_t() + external int silent_overwrite; + + @boolean_t() + external int advisory_pageout; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int copy_strategy, + required int temporary, + required int invalidate, + required int silent_overwrite, + required int advisory_pageout, + }) => $allocator() + ..ref.copy_strategy = copy_strategy + ..ref.temporary = temporary + ..ref.invalidate = invalidate + ..ref.silent_overwrite = silent_overwrite + ..ref.advisory_pageout = advisory_pageout; +} + +typedef memory_object_behave_info_data_t = memory_object_behave_info; +typedef memory_object_behave_info_t = ffi.Pointer; +typedef memory_object_cluster_size_t = natural_t; +typedef memory_object_control_t = mach_port_t; +typedef memory_object_copy_strategy_t = ffi.Int; +typedef Dartmemory_object_copy_strategy_t = int; +typedef memory_object_default_t = mach_port_t; +typedef memory_object_fault_info_t = ffi.Pointer; +typedef memory_object_flavor_t = ffi.Int; +typedef Dartmemory_object_flavor_t = int; +typedef memory_object_info_t = ffi.Pointer; +typedef memory_object_name_t = mach_port_t; +typedef memory_object_offset_t = ffi.UnsignedLongLong; +typedef Dartmemory_object_offset_t = int; + +final class memory_object_perf_info extends ffi.Struct { + @memory_object_cluster_size_t() + external int cluster_size; + + @boolean_t() + external int may_cache; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int cluster_size, + required int may_cache, + }) => $allocator() + ..ref.cluster_size = cluster_size + ..ref.may_cache = may_cache; +} + +typedef memory_object_perf_info_data_t = memory_object_perf_info; +typedef memory_object_perf_info_t = ffi.Pointer; +typedef memory_object_return_t = ffi.Int; +typedef Dartmemory_object_return_t = int; +typedef memory_object_size_t = ffi.UnsignedLongLong; +typedef Dartmemory_object_size_t = int; +typedef memory_object_t = mach_port_t; + +const int menuInvalidErr = -5623; + +const int menuItemNotFoundErr = -5622; + +const int menuNotFoundErr = -5620; + +const int menuPrgErr = 84; + +const int menuPropertyInvalid = -5603; + +const int menuPropertyInvalidErr = -5603; + +const int menuPropertyNotFoundErr = -5604; + +const int menuUsesSystemDefErr = -5621; + +const int midiDupIDErr = -260; + +const int midiInvalidCmdErr = -261; + +const int midiManagerAbsentOSErr = -2081; + +const int midiNameLenErr = -259; + +const int midiNoClientErr = -250; + +const int midiNoConErr = -257; + +const int midiNoPortErr = -251; + +const int midiTooManyConsErr = -253; + +const int midiTooManyPortsErr = -252; + +const int midiVConnectErr = -254; + +const int midiVConnectMade = -255; + +const int midiVConnectRmvd = -256; + +const int midiWriteErr = -258; + +typedef mig_impl_routine_t = + ffi.Pointer>; + +final class mig_reply_error_t extends ffi.Struct { + external mach_msg_header_t Head; + + external NDR_record_t NDR; + + @kern_return_t() + external int RetCode; +} + +typedef mig_routine_arg_descriptor_t = ffi.Pointer; +typedef mig_routine_descriptor = routine_descriptor; +typedef mig_routine_descriptor_t = ffi.Pointer; +typedef mig_routine_t = mig_stub_routine_t; +typedef mig_server_routine_t = + ffi.Pointer< + ffi.NativeFunction< + mig_routine_t Function(ffi.Pointer InHeadP) + > + >; +typedef mig_stub_routine_t = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ) + > + >; + +final class mig_subsystem extends ffi.Struct { + external mig_server_routine_t server; + + @mach_msg_id_t() + external int start; + + @mach_msg_id_t() + external int end; + + @mach_msg_size_t() + external int maxsize; + + @vm_address_t() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array routine; +} + +typedef mig_subsystem_t = ffi.Pointer; + +final class mig_symtab extends ffi.Struct { + external ffi.Pointer ms_routine_name; + + @ffi.Int() + external int ms_routine_number; + + external ffi.Pointer> ms_routine; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer ms_routine_name, + required int ms_routine_number, + required ffi.Pointer> ms_routine, + }) => $allocator() + ..ref.ms_routine_name = ms_routine_name + ..ref.ms_routine_number = ms_routine_number + ..ref.ms_routine = ms_routine; +} + +typedef mig_symtab_t = mig_symtab; +@Deprecated('Deprecated') +const int minCountry = 0; + +const int minLeadingZ = 64; + +const int mini1BitMask = 1768123683; + +const int mini4BitData = 1768123700; + +const int mini8BitData = 1768123704; + +const int minuteField = 5; + +const int minuteMask = 32; + +const int missingRequiredParameterErr = -2063; + +const int mmInternalError = -2526; + +const int mntLdingZ = 64; + +const int mode32BitCompatible = 128; + +const int modeCanBackground = 4096; + +const int modeControlPanel = 524288; + +const int modeDeskAccessory = 131072; + +const int modeDisplayManagerAware = 4; + +const int modeDoesActivateOnFGSwitch = 2048; + +const int modeGetAppDiedMsg = 256; + +const int modeGetFrontClicks = 512; + +const int modeHighLevelEventAware = 64; + +const int modeLaunchDontSwitch = 262144; + +const int modeLiteral = 1280594508; + +const int modeLocalAndRemoteHLEvents = 32; + +const int modeMultiLaunch = 65536; + +const int modeNeedSuspendResume = 16384; + +const int modeNormal = 1313821261; + +const int modeOnlyBackground = 1024; + +const int modePhonemes = 1346916174; + +const int modeReserved = 16777216; + +const int modeStationeryAware = 16; + +const int modeText = 1413830740; + +const int modeTune = 1414876741; + +const int modeUseTextEditServices = 8; + +typedef mode_t = __darwin_mode_t; + +const int monthField = 2; + +const int monthMask = 4; + +const int mountedFolderIconResource = -3977; + +const int movieTextNotFoundErr = -2062; + +const int movieToolboxUninitialized = -2020; + +@Deprecated('Deprecated') +const int mpWorkFlagCopyWorkBlock = 4; + +@Deprecated('Deprecated') +const int mpWorkFlagDoCompletion = 2; + +@Deprecated('Deprecated') +const int mpWorkFlagDoWork = 1; + +@Deprecated('Deprecated') +const int mpWorkFlagDontBlock = 8; + +@Deprecated('Deprecated') +const int mpWorkFlagGetIsRunning = 64; + +@Deprecated('Deprecated') +const int mpWorkFlagGetProcessorCount = 16; + +sealed class mpo_flags_t { + static const MPO_PORT = 0; + static const MPO_SERVICE_PORT = 1024; + static const MPO_CONNECTION_PORT = 2048; + static const MPO_REPLY_PORT = 4096; + static const MPO_PROVISIONAL_REPLY_PORT = 16384; + static const MPO_EXCEPTION_PORT = 32768; + static const MPO_CONNECTION_PORT_WITH_PORT_ARRAY = 65536; +} + +final class msg_labels_t extends ffi.Struct { + @mach_port_name_t() + external int sender; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sender, + }) => $allocator()..ref.sender = sender; +} + +final class msghdr extends ffi.Struct { + external ffi.Pointer msg_name; + + @socklen_t() + external int msg_namelen; + + external ffi.Pointer msg_iov; + + @ffi.Int() + external int msg_iovlen; + + external ffi.Pointer msg_control; + + @socklen_t() + external int msg_controllen; + + @ffi.Int() + external int msg_flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer msg_name, + required int msg_namelen, + required ffi.Pointer msg_iov, + required int msg_iovlen, + required ffi.Pointer msg_control, + required int msg_controllen, + required int msg_flags, + }) => $allocator() + ..ref.msg_name = msg_name + ..ref.msg_namelen = msg_namelen + ..ref.msg_iov = msg_iov + ..ref.msg_iovlen = msg_iovlen + ..ref.msg_control = msg_control + ..ref.msg_controllen = msg_controllen + ..ref.msg_flags = msg_flags; +} + +const int multiplePublisherWrn = -460; + +const int myd = 3; + +typedef n_long = __uint32_t; +typedef n_short = __uint16_t; +typedef n_time = __uint32_t; + +const int nameFontTableTag = 1851878757; + +const int nameTypeErr = -902; + +typedef natural_t = __darwin_natural_t; + +const int nbpBuffOvr = -1024; + +const int nbpConfDiff = -1026; + +const int nbpDuplicate = -1027; + +const int nbpNISErr = -1029; + +const int nbpNoConfirm = -1025; + +const int nbpNotFound = -1028; + +const int needClearScrapErr = -100; + +const int negZcbFreeErr = 33; + +final class netent extends ffi.Struct { + external ffi.Pointer n_name; + + external ffi.Pointer> n_aliases; + + @ffi.Int() + external int n_addrtype; + + @ffi.Uint32() + external int n_net; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer n_name, + required ffi.Pointer> n_aliases, + required int n_addrtype, + required int n_net, + }) => $allocator() + ..ref.n_name = n_name + ..ref.n_aliases = n_aliases + ..ref.n_addrtype = n_addrtype + ..ref.n_net = n_net; +} + +const int networkErr = -925; + +const int newLineBit = 7; + +const int newLineCharMask = 65280; + +const int newLineMask = 128; + +const int nilHandleErr = -109; + +const int nilScrapFlavorDataErr = -4994; + +typedef nlink_t = __uint16_t; + +const int nmTypErr = -299; + +@Deprecated('Deprecated') +const int nmType = 8; + +const int noAdrMkErr = -67; + +const int noBridgeErr = -93; + +const int noCacheBit = 5; + +const int noCacheMask = 32; + +const int noCalls = 1; + +const int noCodecErr = -8961; + +const int noDMAErr = -2208; + +const int noDataArea = -1104; + +const int noDataHandler = -2007; + +const int noDefaultDataRef = -2051; + +const int noDefaultUserErr = -922; + +const int noDeviceForChannel = -9400; + +const int noDriveErr = -64; + +const int noDtaMkErr = -71; + +const int noErr = 0; + +const int noExportProcAvailableErr = -2089; + +const int noGlobalsErr = -904; + +const int noHardware = -200; + +const int noHardwareErr = -200; + +const int noHelpForItem = -4009; + +const int noIconDataAvailableErr = -2582; + +const int noInformErr = -926; + +const int noMMUErr = -626; + +const int noMPPErr = -3102; + +const int noMacDskErr = -57; + +const int noMachineNameErr = -913; + +const int noMaskFoundErr = -1000; + +const int noMediaHandler = -2006; + +const int noMemForPictPlaybackErr = -145; + +const int noMemoryNodeFailedInitialize = -30552; + +const int noMoreFolderDescErr = -4272; + +const int noMoreKeyColorsErr = -2205; + +const int noMoreRealTime = -212; + +const int noMovieFound = -2048; + +const int noNybErr = -66; + +const int noOutstandingHLE = -608; + +const int noPasteboardPromiseKeeperErr = -25136; + +const int noPathMappingErr = -2112; + +const int noPortErr = -903; + +const int noPrefAppErr = -3032; + +const int noRecordOfApp = -2020; + +const int noRelErr = -1101; + +const int noRequest = 2; + +const int noResponseErr = -915; + +const int noScrapErr = -100; + +const int noScrapPromiseKeeperErr = -4993; + +const int noSecuritySession = 0; + +const int noSendResp = -1103; + +const int noSessionErr = -908; + +const int noSoundTrackInMovieErr = -2055; + +const int noSourceTreeFoundErr = -2060; + +const int noSuchIconErr = -2581; + +const int noSuitableDisplaysErr = -1859; + +const int noSynthFound = -240; + +const int noThumbnailFoundErr = -8994; + +const int noToolboxNameErr = -914; + +const int noTranslationPathErr = -3030; + +const int noTypeErr = -102; + +const int noUserInteractionAllowed = -610; + +const int noUserNameErr = -911; + +const int noUserRecErr = -928; + +const int noUserRefErr = -924; + +const int noVideoTrackInMovieErr = -2054; + +const int nonDragOriginatorErr = -1862; + +const int nonGlyphID = 65535; + +const int nonMatchingEditState = -2024; + +const int normal = 0; + +const int notAFileErr = -1302; + +const int notAQTVRMovieErr = -30540; + +const int notARemountErr = -1308; + +const int notAllowedToSaveMovieErr = -2126; + +const int notAppropriateForClassic = -877; + +const int notBTree = -410; + +const int notEnoughBufferSpace = -207; + +const int notEnoughDataErr = -2149; + +const int notEnoughDiskSpaceToGrab = -9404; + +const int notEnoughHardware = -201; + +const int notEnoughHardwareErr = -201; + +const int notEnoughMemoryErr = -620; + +const int notEnoughMemoryToGrab = -9403; + +const int notExactMatrixErr = -2204; + +const int notExactSizeErr = -2206; + +const int notHeldErr = -621; + +const int notImplementedMusicOSErr = -2071; + +const int notInitErr = -900; + +const int notLeafAtomErr = -2102; + +const int notLockedErr = -623; + +const int notLoggedInErr = -923; + +const int notOpenErr = -28; + +const int notPasteboardOwnerErr = -25135; + +const int notRegisteredSectionErr = -452; + +const int notThePublisherWrn = -463; + +const int noteChannelNotAllocatedOSErr = -2085; + +typedef notify_port_t = mach_port_t; + +const int nrCallNotSupported = -2557; + +const int nrDataTruncatedErr = -2543; + +const int nrExitedIteratorScope = -2555; + +const int nrInvalidEntryIterationOp = -2552; + +const int nrInvalidNodeErr = -2538; + +const int nrIterationDone = -2554; + +const int nrLockedErr = -2536; + +const int nrNameErr = -2541; + +const int nrNotCreatedErr = -2540; + +const int nrNotEnoughMemoryErr = -2537; + +const int nrNotFoundErr = -2539; + +const int nrNotModifiedErr = -2547; + +const int nrNotSlotDeviceErr = -2542; + +const int nrOverrunErr = -2548; + +const int nrPathBufferTooSmall = -2551; + +const int nrPathNotFound = -2550; + +const int nrPowerErr = -2544; + +const int nrPowerSwitchAbortErr = -2545; + +const int nrPropertyAlreadyExists = -2553; + +const int nrResultCodeBase = -2549; + +const int nrTransactionAborted = -2556; + +const int nrTypeMismatchErr = -2546; + +const int nsDrvErr = -56; + +const int nsStackErr = -149; + +const int nsvErr = -35; + +@ffi.Packed(1) +final class ntsid_t extends ffi.Struct { + @u_int8_t() + external int sid_kind; + + @u_int8_t() + external int sid_authcount; + + @ffi.Array.multi([6]) + external ffi.Array sid_authority; + + @ffi.Array.multi([16]) + external ffi.Array sid_authorities; +} + +const int nulDev = 3; + +const int numberFormattingBadCurrencyPositionErr = -5211; + +const int numberFormattingBadFormatErr = -5207; + +const int numberFormattingBadNumberFormattingObjectErr = -5202; + +const int numberFormattingBadOptionsErr = -5208; + +const int numberFormattingBadTokenErr = -5209; + +const int numberFormattingDelimiterMissingErr = -5205; + +const int numberFormattingEmptyFormatErr = -5206; + +const int numberFormattingLiteralMissingErr = -5204; + +const int numberFormattingNotADigitErr = -5212; + +const int numberFormattingNotANumberErr = -5200; + +const int numberFormattingOverflowInDestinationErr = -5201; + +const int numberFormattingSpuriousCharErr = -5203; + +const int numberFormattingUnOrderedCurrencyRangeErr = -5210; + +const int numberFormattingUnOrdredCurrencyRangeErr = -5210; + +const int numberFortmattingNotADigitErr = -5212; + +final class objc_class extends ffi.Opaque {} + +final class objc_object extends ffi.Struct { + external ffi.Pointer isaAsInt; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer isa, + }) => $allocator()..ref.isaAsInt = isa; +} + +typedef objc_objectptr_t = ffi.Pointer; + +final class objc_selector extends ffi.Opaque {} + +typedef objc_zone_t = ffi.Pointer<_malloc_zone_t>; + +const int offLinErr = -65; + +typedef off_t = __darwin_off_t; +@Deprecated('Deprecated') +const int ogonek = 254; + +const int opWrErr = -49; + +final class opaqueCMFormatDescription extends ffi.Opaque {} + +const int openErr = -23; + +const int openFolderIconResource = -3997; + +const int os2FontTableTag = 1330851634; + +typedef os_block_t = ffi.Pointer; +typedef Dartos_block_t = objc.ObjCBlock; + +enum os_clockid_t { + OS_CLOCK_MACH_ABSOLUTE_TIME(32); + + final int value; + const os_clockid_t(this.value); + + static os_clockid_t fromValue(int value) => switch (value) { + 32 => OS_CLOCK_MACH_ABSOLUTE_TIME, + _ => throw ArgumentError('Unknown value for os_clockid_t: $value'), + }; +} + +typedef os_function_t = + ffi.Pointer)>>; + +final class os_workgroup_attr_opaque_s extends ffi.Struct { + @ffi.Uint32() + external int sig; + + @ffi.Array.multi([60]) + external ffi.Array opaque; +} + +typedef os_workgroup_attr_s = os_workgroup_attr_opaque_s; +typedef os_workgroup_attr_t = ffi.Pointer; +typedef os_workgroup_index = ffi.Uint32; +typedef Dartos_workgroup_index = int; + +final class os_workgroup_interval_data_opaque_s extends ffi.Struct { + @ffi.Uint32() + external int sig; + + @ffi.Array.multi([56]) + external ffi.Array opaque; +} + +typedef os_workgroup_interval_data_s = os_workgroup_interval_data_opaque_s; +typedef os_workgroup_interval_data_t = + ffi.Pointer; +typedef os_workgroup_interval_t = ffi.Pointer; +typedef Dartos_workgroup_interval_t = OS_os_workgroup; + +final class os_workgroup_join_token_opaque_s extends ffi.Struct { + @ffi.Uint32() + external int sig; + + @ffi.Array.multi([36]) + external ffi.Array opaque; +} + +typedef os_workgroup_join_token_s = os_workgroup_join_token_opaque_s; +typedef os_workgroup_join_token_t = + ffi.Pointer; + +final class os_workgroup_max_parallel_threads_attr_s extends ffi.Opaque {} + +typedef os_workgroup_mpt_attr_s = os_workgroup_max_parallel_threads_attr_s; +typedef os_workgroup_mpt_attr_t = + ffi.Pointer; +typedef os_workgroup_parallel_t = ffi.Pointer; +typedef Dartos_workgroup_parallel_t = OS_os_workgroup; +typedef os_workgroup_t = ffi.Pointer; +typedef Dartos_workgroup_t = OS_os_workgroup; +typedef os_workgroup_working_arena_destructor_t = + ffi.Pointer)>>; + +const int outline = 8; + +@Deprecated('Deprecated') +const int overDot = 250; + +const int ownedFolderIconResource = -3980; + +const int pATMachine = 1885434989; + +const int pATType = 1885434996; + +const int pATZone = 1885435002; + +const int pArcAngle = 1885434467; + +const int pBackgroundColor = 1885496172; + +const int pBackgroundPattern = 1885499508; + +const int pBestType = 1885500276; + +const int pBounds = 1885498980; + +const int pClass = 1885564019; + +const int pClipboard = 1885564009; + +const int pColor = 1668246642; + +const int pColorTable = 1668052066; + +const int pConduit = 1885564782; + +const int pContents = 1885564532; + +const int pCornerCurveHeight = 1885562980; + +const int pCornerCurveWidth = 1885566820; + +const int pDNS = 1885630067; + +const int pDNSForm = 1883524691; + +const int pDashStyle = 1885631348; + +const int pDefaultType = 1684366964; + +const int pDefinitionRect = 1885631092; + +const int pDeviceAddress = 1885632097; + +const int pDeviceType = 1885632116; + +const int pDottedDecimal = 1885958244; + +const int pEnabled = 1701732972; + +const int pEndPoint = 1885695588; + +const int pFTPKind = 1802071652; + +const int pFillColor = 1718379372; + +const int pFillPattern = 1718382708; + +const int pFont = 1718578804; + +const int pFormula = 1885761394; + +const int pGraphicObjects = 1735352947; + +const int pHasCloseBox = 1751346274; + +const int pHasTitleBar = 1886677364; + +const int pHost = 1213158228; + +const int pID = 1229201440; + +const int pIndex = 1885955192; + +const int pInsertionLoc = 1885957747; + +const int pIsFloating = 1769170540; + +const int pIsFrontProcess = 1885959014; + +const int pIsModal = 1886220132; + +const int pIsModified = 1768779620; + +const int pIsResizable = 1886548858; + +const int pIsStationeryPad = 1886613604; + +const int pIsZoomable = 1769175661; + +const int pIsZoomed = 1887073645; + +const int pItemNumber = 1769237870; + +const int pJustification = 1886024564; + +const int pKeyKind = 1802202724; + +const int pKeystrokeKey = 1800237927; + +const int pLineArrow = 1634890351; + +const int pMenuID = 1835952484; + +const int pModifiers = 1800236900; + +const int pName = 1886282093; + +const int pNetwork = 1886283124; + +const int pNewElementLoc = 1886283116; + +const int pNode = 1886285668; + +const int pPath = 1179930723; + +const int pPenColor = 1886413676; + +const int pPenPattern = 1886416993; + +const int pPenWidth = 1886418788; + +const int pPixelDepth = 1885630580; + +const int pPointList = 1886678132; + +const int pPointSize = 1886679930; + +const int pPort = 1886416754; + +const int pProtection = 1886417519; + +const int pProtocol = 1886417524; + +const int pRotation = 1886547828; + +const int pSCSIBus = 1886610274; + +const int pSCSILUN = 1886612597; + +const int pScale = 1886610284; + +const int pScheme = 1886745443; + +const int pScript = 1935896692; + +const int pScriptTag = 1886610292; + +const int pSelected = 1936026723; + +const int pSelection = 1936026725; + +const int pSocket = 1886613347; + +const int pStartAngle = 1885433447; + +const int pStartPoint = 1886614640; + +const int pTextColor = 1886681187; + +const int pTextEncoding = 1886681189; + +const int pTextFont = 1886681190; + +const int pTextItemDelimiters = 1954047084; + +const int pTextPointSize = 1886679155; + +const int pTextStyles = 1954050932; + +const int pTransferMode = 1886418029; + +const int pTranslation = 1886679667; + +const int pURL = 1884639820; + +const int pUniformStyles = 1970500716; + +const int pUpdateOn = 1886744676; + +const int pUserName = 1380021614; + +const int pUserPassword = 1380020343; + +const int pUserSelection = 1886745452; + +const int pVersion = 1986359923; + +const int pVisible = 1886808435; + +typedef page_address_array_t = ffi.Pointer; + +const int paramErr = -50; + +const int pasteDev = 12; + +const int pathNotVerifiedErr = -2113; + +const int pathTooLongErr = -2110; + +@Deprecated('Deprecated') +const int perThousand = 228; + +const int permErr = -54; + +const int pickerCantLive = -4006; + +const int pickerResourceError = -4002; + +const int pictInfoIDErr = -11001; + +const int pictInfoVerbErr = -11002; + +const int pictInfoVersionErr = -11000; + +const int pictureDataErr = -11005; + +typedef pid_t = __darwin_pid_t; + +const int pixMapTooDeepErr = -148; + +@Deprecated('Deprecated') +const int platform68k = 1; + +@Deprecated('Deprecated') +const int platformAIXppc = 1300; + +@Deprecated('Deprecated') +const int platformArm64NativeEntryPoint = 9; + +@Deprecated('Deprecated') +const int platformIA32NativeEntryPoint = 6; + +@Deprecated('Deprecated') +const int platformIRIXmips = 1000; + +@Deprecated('Deprecated') +const int platformInterpreted = 3; + +@Deprecated('Deprecated') +const int platformLinuxintel = 1201; + +@Deprecated('Deprecated') +const int platformLinuxppc = 1200; + +@Deprecated('Deprecated') +const int platformMacOSx86 = 1500; + +@Deprecated('Deprecated') +const int platformNeXT68k = 1403; + +@Deprecated('Deprecated') +const int platformNeXTIntel = 1400; + +@Deprecated('Deprecated') +const int platformNeXTppc = 1401; + +@Deprecated('Deprecated') +const int platformNeXTsparc = 1402; + +@Deprecated('Deprecated') +const int platformPowerPC = 2; + +@Deprecated('Deprecated') +const int platformPowerPC64NativeEntryPoint = 7; + +@Deprecated('Deprecated') +const int platformPowerPCNativeEntryPoint = 5; + +@Deprecated('Deprecated') +const int platformSunOSintel = 1101; + +@Deprecated('Deprecated') +const int platformSunOSsparc = 1100; + +@Deprecated('Deprecated') +const int platformWin32 = 4; + +@Deprecated('Deprecated') +const int platformX86_64NativeEntryPoint = 8; + +const int pleaseCacheBit = 4; + +const int pleaseCacheMask = 16; + +const int pmBusyErr = -13000; + +const int pmField = 10; + +const int pmMask = 1024; + +const int pmRecvEndErr = -13005; + +const int pmRecvStartErr = -13004; + +const int pmReplyTOErr = -13001; + +const int pmSendEndErr = -13003; + +const int pmSendStartErr = -13002; + +typedef pointer_t = vm_offset_t; +typedef policy_base_data_t = policy_bases; +typedef policy_base_t = ffi.Pointer; + +final class policy_bases extends ffi.Struct { + external policy_timeshare_base_data_t ts; + + external policy_rr_base_data_t rr; + + external policy_fifo_base_data_t fifo; +} + +final class policy_fifo_base extends ffi.Struct { + @integer_t() + external int base_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int base_priority, + }) => $allocator()..ref.base_priority = base_priority; +} + +typedef policy_fifo_base_data_t = policy_fifo_base; +typedef policy_fifo_base_t = ffi.Pointer; + +final class policy_fifo_info extends ffi.Struct { + @integer_t() + external int max_priority; + + @integer_t() + external int base_priority; + + @boolean_t() + external int depressed; + + @integer_t() + external int depress_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + required int base_priority, + required int depressed, + required int depress_priority, + }) => $allocator() + ..ref.max_priority = max_priority + ..ref.base_priority = base_priority + ..ref.depressed = depressed + ..ref.depress_priority = depress_priority; +} + +typedef policy_fifo_info_data_t = policy_fifo_info; +typedef policy_fifo_info_t = ffi.Pointer; + +final class policy_fifo_limit extends ffi.Struct { + @integer_t() + external int max_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + }) => $allocator()..ref.max_priority = max_priority; +} + +typedef policy_fifo_limit_data_t = policy_fifo_limit; +typedef policy_fifo_limit_t = ffi.Pointer; +typedef policy_info_data_t = policy_infos; +typedef policy_info_t = ffi.Pointer; + +final class policy_infos extends ffi.Struct { + external policy_timeshare_info_data_t ts; + + external policy_rr_info_data_t rr; + + external policy_fifo_info_data_t fifo; +} + +typedef policy_limit_data_t = policy_limits; +typedef policy_limit_t = ffi.Pointer; + +final class policy_limits extends ffi.Struct { + external policy_timeshare_limit_data_t ts; + + external policy_rr_limit_data_t rr; + + external policy_fifo_limit_data_t fifo; +} + +final class policy_rr_base extends ffi.Struct { + @integer_t() + external int base_priority; + + @integer_t() + external int quantum; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int base_priority, + required int quantum, + }) => $allocator() + ..ref.base_priority = base_priority + ..ref.quantum = quantum; +} + +typedef policy_rr_base_data_t = policy_rr_base; +typedef policy_rr_base_t = ffi.Pointer; + +final class policy_rr_info extends ffi.Struct { + @integer_t() + external int max_priority; + + @integer_t() + external int base_priority; + + @integer_t() + external int quantum; + + @boolean_t() + external int depressed; + + @integer_t() + external int depress_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + required int base_priority, + required int quantum, + required int depressed, + required int depress_priority, + }) => $allocator() + ..ref.max_priority = max_priority + ..ref.base_priority = base_priority + ..ref.quantum = quantum + ..ref.depressed = depressed + ..ref.depress_priority = depress_priority; +} + +typedef policy_rr_info_data_t = policy_rr_info; +typedef policy_rr_info_t = ffi.Pointer; + +final class policy_rr_limit extends ffi.Struct { + @integer_t() + external int max_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + }) => $allocator()..ref.max_priority = max_priority; +} + +typedef policy_rr_limit_data_t = policy_rr_limit; +typedef policy_rr_limit_t = ffi.Pointer; +typedef policy_t = ffi.Int; +typedef Dartpolicy_t = int; + +final class policy_timeshare_base extends ffi.Struct { + @integer_t() + external int base_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int base_priority, + }) => $allocator()..ref.base_priority = base_priority; +} + +typedef policy_timeshare_base_data_t = policy_timeshare_base; +typedef policy_timeshare_base_t = ffi.Pointer; + +final class policy_timeshare_info extends ffi.Struct { + @integer_t() + external int max_priority; + + @integer_t() + external int base_priority; + + @integer_t() + external int cur_priority; + + @boolean_t() + external int depressed; + + @integer_t() + external int depress_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + required int base_priority, + required int cur_priority, + required int depressed, + required int depress_priority, + }) => $allocator() + ..ref.max_priority = max_priority + ..ref.base_priority = base_priority + ..ref.cur_priority = cur_priority + ..ref.depressed = depressed + ..ref.depress_priority = depress_priority; +} + +typedef policy_timeshare_info_data_t = policy_timeshare_info; +typedef policy_timeshare_info_t = ffi.Pointer; + +final class policy_timeshare_limit extends ffi.Struct { + @integer_t() + external int max_priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int max_priority, + }) => $allocator()..ref.max_priority = max_priority; +} + +typedef policy_timeshare_limit_data_t = policy_timeshare_limit; +typedef policy_timeshare_limit_t = ffi.Pointer; + +const int portClosedErr = -916; + +const int portInUse = -97; + +const int portNameExistsErr = -910; + +const int portNotCf = -98; + +const int portNotPwr = -96; + +const int posErr = -40; + +final class ppd_attr_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array name; + + @ffi.Array.multi([41]) + external ffi.Array spec; + + @ffi.Array.multi([81]) + external ffi.Array text; + + external ffi.Pointer value; +} + +typedef ppd_attr_t = ppd_attr_s; + +final class ppd_choice_s extends ffi.Struct { + @ffi.Char() + external int marked; + + @ffi.Array.multi([41]) + external ffi.Array choice; + + @ffi.Array.multi([81]) + external ffi.Array text; + + external ffi.Pointer code; + + external ffi.Pointer option; +} + +typedef ppd_choice_t = ppd_choice_s; + +enum ppd_conform_e { + PPD_CONFORM_RELAXED(0), + PPD_CONFORM_STRICT(1); + + final int value; + const ppd_conform_e(this.value); + + static ppd_conform_e fromValue(int value) => switch (value) { + 0 => PPD_CONFORM_RELAXED, + 1 => PPD_CONFORM_STRICT, + _ => throw ArgumentError('Unknown value for ppd_conform_e: $value'), + }; +} + +final class ppd_const_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array option1; + + @ffi.Array.multi([41]) + external ffi.Array choice1; + + @ffi.Array.multi([41]) + external ffi.Array option2; + + @ffi.Array.multi([41]) + external ffi.Array choice2; +} + +typedef ppd_const_t = ppd_const_s; + +final class ppd_coption_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array keyword; + + external ffi.Pointer option; + + @ffi.Int() + external int marked; + + external ffi.Pointer params; +} + +typedef ppd_coption_t = ppd_coption_s; + +final class ppd_cparam_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array name; + + @ffi.Array.multi([81]) + external ffi.Array text; + + @ffi.Int() + external int order; + + @ffi.Int() + external int typeAsInt; + + ppd_cptype_e get type => ppd_cptype_e.fromValue(typeAsInt); + set type(ppd_cptype_e value) => typeAsInt = value.value; + + external ppd_cplimit_t minimum; + + external ppd_cplimit_t maximum; + + external ppd_cpvalue_t current; +} + +typedef ppd_cparam_t = ppd_cparam_s; +typedef ppd_cplimit_t = ppd_cplimit_u; + +final class ppd_cplimit_u extends ffi.Union { + @ffi.Float() + external double custom_curve; + + @ffi.Int() + external int custom_int; + + @ffi.Float() + external double custom_invcurve; + + @ffi.Int() + external int custom_passcode; + + @ffi.Int() + external int custom_password; + + @ffi.Float() + external double custom_points; + + @ffi.Float() + external double custom_real; + + @ffi.Int() + external int custom_string; +} + +enum ppd_cptype_e { + PPD_CUSTOM_UNKNOWN(-1), + PPD_CUSTOM_CURVE(0), + PPD_CUSTOM_INT(1), + PPD_CUSTOM_INVCURVE(2), + PPD_CUSTOM_PASSCODE(3), + PPD_CUSTOM_PASSWORD(4), + PPD_CUSTOM_POINTS(5), + PPD_CUSTOM_REAL(6), + PPD_CUSTOM_STRING(7); + + final int value; + const ppd_cptype_e(this.value); + + static ppd_cptype_e fromValue(int value) => switch (value) { + -1 => PPD_CUSTOM_UNKNOWN, + 0 => PPD_CUSTOM_CURVE, + 1 => PPD_CUSTOM_INT, + 2 => PPD_CUSTOM_INVCURVE, + 3 => PPD_CUSTOM_PASSCODE, + 4 => PPD_CUSTOM_PASSWORD, + 5 => PPD_CUSTOM_POINTS, + 6 => PPD_CUSTOM_REAL, + 7 => PPD_CUSTOM_STRING, + _ => throw ArgumentError('Unknown value for ppd_cptype_e: $value'), + }; +} + +typedef ppd_cpvalue_t = ppd_cpvalue_u; + +final class ppd_cpvalue_u extends ffi.Union { + @ffi.Float() + external double custom_curve; + + @ffi.Int() + external int custom_int; + + @ffi.Float() + external double custom_invcurve; + + external ffi.Pointer custom_passcode; + + external ffi.Pointer custom_password; + + @ffi.Float() + external double custom_points; + + @ffi.Float() + external double custom_real; + + external ffi.Pointer custom_string; +} + +enum ppd_cs_e { + PPD_CS_CMYK(-4), + PPD_CS_CMY(-3), + PPD_CS_GRAY(1), + PPD_CS_RGB(3), + PPD_CS_RGBK(4), + PPD_CS_N(5); + + final int value; + const ppd_cs_e(this.value); + + static ppd_cs_e fromValue(int value) => switch (value) { + -4 => PPD_CS_CMYK, + -3 => PPD_CS_CMY, + 1 => PPD_CS_GRAY, + 3 => PPD_CS_RGB, + 4 => PPD_CS_RGBK, + 5 => PPD_CS_N, + _ => throw ArgumentError('Unknown value for ppd_cs_e: $value'), + }; +} + +final class ppd_emul_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array name; + + external ffi.Pointer start; + + external ffi.Pointer stop; +} + +typedef ppd_emul_t = ppd_emul_s; + +final class ppd_file_s extends ffi.Struct { + @ffi.Int() + external int language_level; + + @ffi.Int() + external int color_device; + + @ffi.Int() + external int variable_sizes; + + @ffi.Int() + external int accurate_screens; + + @ffi.Int() + external int contone_only; + + @ffi.Int() + external int landscape; + + @ffi.Int() + external int model_number; + + @ffi.Int() + external int manual_copies; + + @ffi.Int() + external int throughput; + + @ffi.Int() + external int colorspaceAsInt; + + ppd_cs_e get colorspace => ppd_cs_e.fromValue(colorspaceAsInt); + set colorspace(ppd_cs_e value) => colorspaceAsInt = value.value; + + external ffi.Pointer patches; + + @ffi.Int() + external int num_emulations; + + external ffi.Pointer emulations; + + external ffi.Pointer jcl_begin; + + external ffi.Pointer jcl_ps; + + external ffi.Pointer jcl_end; + + external ffi.Pointer lang_encoding; + + external ffi.Pointer lang_version; + + external ffi.Pointer modelname; + + external ffi.Pointer ttrasterizer; + + external ffi.Pointer manufacturer; + + external ffi.Pointer product; + + external ffi.Pointer nickname; + + external ffi.Pointer shortnickname; + + @ffi.Int() + external int num_groups; + + external ffi.Pointer groups; + + @ffi.Int() + external int num_sizes; + + external ffi.Pointer sizes; + + @ffi.Array.multi([2]) + external ffi.Array custom_min; + + @ffi.Array.multi([2]) + external ffi.Array custom_max; + + @ffi.Array.multi([4]) + external ffi.Array custom_margins; + + @ffi.Int() + external int num_consts; + + external ffi.Pointer consts; + + @ffi.Int() + external int num_fonts; + + external ffi.Pointer> fonts; + + @ffi.Int() + external int num_profiles; + + external ffi.Pointer profiles; + + @ffi.Int() + external int num_filters; + + external ffi.Pointer> filters; + + @ffi.Int() + external int flip_duplex; + + external ffi.Pointer protocols; + + external ffi.Pointer pcfilename; + + @ffi.Int() + external int num_attrs; + + @ffi.Int() + external int cur_attr; + + external ffi.Pointer> attrs; + + external ffi.Pointer sorted_attrs; + + external ffi.Pointer options; + + external ffi.Pointer coptions; + + external ffi.Pointer marked; + + external ffi.Pointer cups_uiconstraints; + + external ffi.Pointer<_ppd_cache_t> cache; +} + +typedef ppd_file_t = ppd_file_s; + +final class ppd_group_s extends ffi.Struct { + @ffi.Array.multi([40]) + external ffi.Array text; + + @ffi.Array.multi([41]) + external ffi.Array name; + + @ffi.Int() + external int num_options; + + external ffi.Pointer options; + + @ffi.Int() + external int num_subgroups; + + external ffi.Pointer subgroups; +} + +typedef ppd_group_t = ppd_group_s; + +final class ppd_option_s extends ffi.Struct { + @ffi.Char() + external int conflicted; + + @ffi.Array.multi([41]) + external ffi.Array keyword; + + @ffi.Array.multi([41]) + external ffi.Array defchoice; + + @ffi.Array.multi([81]) + external ffi.Array text; + + @ffi.UnsignedInt() + external int uiAsInt; + + ppd_ui_e get ui => ppd_ui_e.fromValue(uiAsInt); + set ui(ppd_ui_e value) => uiAsInt = value.value; + + @ffi.UnsignedInt() + external int sectionAsInt; + + ppd_section_e get section => ppd_section_e.fromValue(sectionAsInt); + set section(ppd_section_e value) => sectionAsInt = value.value; + + @ffi.Float() + external double order; + + @ffi.Int() + external int num_choices; + + external ffi.Pointer choices; +} + +typedef ppd_option_t = ppd_option_s; + +final class ppd_profile_s extends ffi.Struct { + @ffi.Array.multi([41]) + external ffi.Array resolution; + + @ffi.Array.multi([41]) + external ffi.Array media_type; + + @ffi.Float() + external double density; + + @ffi.Float() + external double gamma; + + @ffi.Array.multi([3, 3]) + external ffi.Array> matrix; +} + +typedef ppd_profile_t = ppd_profile_s; + +enum ppd_section_e { + PPD_ORDER_ANY(0), + PPD_ORDER_DOCUMENT(1), + PPD_ORDER_EXIT(2), + PPD_ORDER_JCL(3), + PPD_ORDER_PAGE(4), + PPD_ORDER_PROLOG(5); + + final int value; + const ppd_section_e(this.value); + + static ppd_section_e fromValue(int value) => switch (value) { + 0 => PPD_ORDER_ANY, + 1 => PPD_ORDER_DOCUMENT, + 2 => PPD_ORDER_EXIT, + 3 => PPD_ORDER_JCL, + 4 => PPD_ORDER_PAGE, + 5 => PPD_ORDER_PROLOG, + _ => throw ArgumentError('Unknown value for ppd_section_e: $value'), + }; +} + +final class ppd_size_s extends ffi.Struct { + @ffi.Int() + external int marked; + + @ffi.Array.multi([41]) + external ffi.Array name; + + @ffi.Float() + external double width; + + @ffi.Float() + external double length; + + @ffi.Float() + external double left; + + @ffi.Float() + external double bottom; + + @ffi.Float() + external double right; + + @ffi.Float() + external double top; +} + +typedef ppd_size_t = ppd_size_s; + +enum ppd_status_e { + PPD_OK(0), + PPD_FILE_OPEN_ERROR(1), + PPD_NULL_FILE(2), + PPD_ALLOC_ERROR(3), + PPD_MISSING_PPDADOBE4(4), + PPD_MISSING_VALUE(5), + PPD_INTERNAL_ERROR(6), + PPD_BAD_OPEN_GROUP(7), + PPD_NESTED_OPEN_GROUP(8), + PPD_BAD_OPEN_UI(9), + PPD_NESTED_OPEN_UI(10), + PPD_BAD_ORDER_DEPENDENCY(11), + PPD_BAD_UI_CONSTRAINTS(12), + PPD_MISSING_ASTERISK(13), + PPD_LINE_TOO_LONG(14), + PPD_ILLEGAL_CHARACTER(15), + PPD_ILLEGAL_MAIN_KEYWORD(16), + PPD_ILLEGAL_OPTION_KEYWORD(17), + PPD_ILLEGAL_TRANSLATION(18), + PPD_ILLEGAL_WHITESPACE(19), + PPD_BAD_CUSTOM_PARAM(20), + PPD_MISSING_OPTION_KEYWORD(21), + PPD_BAD_VALUE(22), + PPD_MISSING_CLOSE_GROUP(23), + PPD_BAD_CLOSE_UI(24), + PPD_MISSING_CLOSE_UI(25), + PPD_MAX_STATUS(26); + + final int value; + const ppd_status_e(this.value); + + static ppd_status_e fromValue(int value) => switch (value) { + 0 => PPD_OK, + 1 => PPD_FILE_OPEN_ERROR, + 2 => PPD_NULL_FILE, + 3 => PPD_ALLOC_ERROR, + 4 => PPD_MISSING_PPDADOBE4, + 5 => PPD_MISSING_VALUE, + 6 => PPD_INTERNAL_ERROR, + 7 => PPD_BAD_OPEN_GROUP, + 8 => PPD_NESTED_OPEN_GROUP, + 9 => PPD_BAD_OPEN_UI, + 10 => PPD_NESTED_OPEN_UI, + 11 => PPD_BAD_ORDER_DEPENDENCY, + 12 => PPD_BAD_UI_CONSTRAINTS, + 13 => PPD_MISSING_ASTERISK, + 14 => PPD_LINE_TOO_LONG, + 15 => PPD_ILLEGAL_CHARACTER, + 16 => PPD_ILLEGAL_MAIN_KEYWORD, + 17 => PPD_ILLEGAL_OPTION_KEYWORD, + 18 => PPD_ILLEGAL_TRANSLATION, + 19 => PPD_ILLEGAL_WHITESPACE, + 20 => PPD_BAD_CUSTOM_PARAM, + 21 => PPD_MISSING_OPTION_KEYWORD, + 22 => PPD_BAD_VALUE, + 23 => PPD_MISSING_CLOSE_GROUP, + 24 => PPD_BAD_CLOSE_UI, + 25 => PPD_MISSING_CLOSE_UI, + 26 => PPD_MAX_STATUS, + _ => throw ArgumentError('Unknown value for ppd_status_e: $value'), + }; +} + +enum ppd_ui_e { + PPD_UI_BOOLEAN(0), + PPD_UI_PICKONE(1), + PPD_UI_PICKMANY(2); + + final int value; + const ppd_ui_e(this.value); + + static ppd_ui_e fromValue(int value) => switch (value) { + 0 => PPD_UI_BOOLEAN, + 1 => PPD_UI_PICKONE, + 2 => PPD_UI_PICKMANY, + _ => throw ArgumentError('Unknown value for ppd_ui_e: $value'), + }; +} + +typedef ppnum_t = ffi.Uint32; +typedef Dartppnum_t = int; + +const int prInitErr = -88; + +const int prWrErr = -87; + +const int preferencesFolderIconResource = -3974; + +const int printMonitorFolderIconResource = -3975; + +const int printerStatusOpCodeNotSupportedErr = -25280; + +const int privateFolderIconResource = -3994; + +const int procNotFound = -600; + +final class proc_rlimit_control_wakeupmon extends ffi.Struct { + @ffi.Uint32() + external int wm_flags; + + @ffi.Int32() + external int wm_rate; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int wm_flags, + required int wm_rate, + }) => $allocator() + ..ref.wm_flags = wm_flags + ..ref.wm_rate = wm_rate; +} + +const int processStateIncorrectErr = -4991; + +typedef processor_array_t = ffi.Pointer; + +final class processor_basic_info extends ffi.Struct { + @cpu_type_t() + external int cpu_type; + + @cpu_subtype_t() + external int cpu_subtype; + + @boolean_t() + external int running; + + @ffi.Int() + external int slot_num; + + external UnnamedUnion$16 unnamed; +} + +typedef processor_basic_info_data_t = processor_basic_info; +typedef processor_basic_info_t = ffi.Pointer; + +final class processor_cpu_load_info extends ffi.Struct { + @ffi.Array.multi([4]) + external ffi.Array cpu_ticks; +} + +typedef processor_cpu_load_info_data_t = processor_cpu_load_info; +typedef processor_cpu_load_info_t = ffi.Pointer; + +final class processor_cpu_stat extends ffi.Struct { + @ffi.Uint32() + external int irq_ex_cnt; + + @ffi.Uint32() + external int ipi_cnt; + + @ffi.Uint32() + external int timer_cnt; + + @ffi.Uint32() + external int undef_ex_cnt; + + @ffi.Uint32() + external int unaligned_cnt; + + @ffi.Uint32() + external int vfp_cnt; + + @ffi.Uint32() + external int vfp_shortv_cnt; + + @ffi.Uint32() + external int data_ex_cnt; + + @ffi.Uint32() + external int instr_ex_cnt; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int irq_ex_cnt, + required int ipi_cnt, + required int timer_cnt, + required int undef_ex_cnt, + required int unaligned_cnt, + required int vfp_cnt, + required int vfp_shortv_cnt, + required int data_ex_cnt, + required int instr_ex_cnt, + }) => $allocator() + ..ref.irq_ex_cnt = irq_ex_cnt + ..ref.ipi_cnt = ipi_cnt + ..ref.timer_cnt = timer_cnt + ..ref.undef_ex_cnt = undef_ex_cnt + ..ref.unaligned_cnt = unaligned_cnt + ..ref.vfp_cnt = vfp_cnt + ..ref.vfp_shortv_cnt = vfp_shortv_cnt + ..ref.data_ex_cnt = data_ex_cnt + ..ref.instr_ex_cnt = instr_ex_cnt; +} + +@ffi.Packed(4) +final class processor_cpu_stat64 extends ffi.Struct { + @ffi.Uint64() + external int irq_ex_cnt; + + @ffi.Uint64() + external int ipi_cnt; + + @ffi.Uint64() + external int timer_cnt; + + @ffi.Uint64() + external int undef_ex_cnt; + + @ffi.Uint64() + external int unaligned_cnt; + + @ffi.Uint64() + external int vfp_cnt; + + @ffi.Uint64() + external int vfp_shortv_cnt; + + @ffi.Uint64() + external int data_ex_cnt; + + @ffi.Uint64() + external int instr_ex_cnt; + + @ffi.Uint64() + external int pmi_cnt; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int irq_ex_cnt, + required int ipi_cnt, + required int timer_cnt, + required int undef_ex_cnt, + required int unaligned_cnt, + required int vfp_cnt, + required int vfp_shortv_cnt, + required int data_ex_cnt, + required int instr_ex_cnt, + required int pmi_cnt, + }) => $allocator() + ..ref.irq_ex_cnt = irq_ex_cnt + ..ref.ipi_cnt = ipi_cnt + ..ref.timer_cnt = timer_cnt + ..ref.undef_ex_cnt = undef_ex_cnt + ..ref.unaligned_cnt = unaligned_cnt + ..ref.vfp_cnt = vfp_cnt + ..ref.vfp_shortv_cnt = vfp_shortv_cnt + ..ref.data_ex_cnt = data_ex_cnt + ..ref.instr_ex_cnt = instr_ex_cnt + ..ref.pmi_cnt = pmi_cnt; +} + +typedef processor_cpu_stat64_data_t = processor_cpu_stat64; +typedef processor_cpu_stat64_t = ffi.Pointer; +typedef processor_cpu_stat_data_t = processor_cpu_stat; +typedef processor_cpu_stat_t = ffi.Pointer; +typedef processor_flavor_t = ffi.Int; +typedef Dartprocessor_flavor_t = int; +typedef processor_info_array_t = ffi.Pointer; +typedef processor_info_t = ffi.Pointer; +typedef processor_port_array_t = processor_array_t; +typedef processor_port_t = processor_t; +typedef processor_set_array_t = ffi.Pointer; + +final class processor_set_basic_info extends ffi.Struct { + @ffi.Int() + external int processor_count; + + @ffi.Int() + external int default_policy; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int processor_count, + required int default_policy, + }) => $allocator() + ..ref.processor_count = processor_count + ..ref.default_policy = default_policy; +} + +typedef processor_set_basic_info_data_t = processor_set_basic_info; +typedef processor_set_basic_info_t = ffi.Pointer; +typedef processor_set_control_port_t = processor_set_t; +typedef processor_set_control_t = mach_port_t; +typedef processor_set_flavor_t = ffi.Int; +typedef Dartprocessor_set_flavor_t = int; +typedef processor_set_info_t = ffi.Pointer; + +final class processor_set_load_info extends ffi.Struct { + @ffi.Int() + external int task_count; + + @ffi.Int() + external int thread_count; + + @integer_t() + external int load_average; + + @integer_t() + external int mach_factor; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int task_count, + required int thread_count, + required int load_average, + required int mach_factor, + }) => $allocator() + ..ref.task_count = task_count + ..ref.thread_count = thread_count + ..ref.load_average = load_average + ..ref.mach_factor = mach_factor; +} + +typedef processor_set_load_info_data_t = processor_set_load_info; +typedef processor_set_load_info_t = ffi.Pointer; +typedef processor_set_name_array_t = ffi.Pointer; +typedef processor_set_name_port_array_t = processor_set_array_t; +typedef processor_set_name_port_t = processor_set_t; +typedef processor_set_name_t = processor_set_t; +typedef processor_set_port_t = processor_set_t; +typedef processor_set_t = mach_port_t; +typedef processor_t = mach_port_t; + +const int progressProcAborted = -2019; + +const int propertyNotSupportedByNodeErr = -30547; + +const int protocolErr = -603; + +final class protoent extends ffi.Struct { + external ffi.Pointer p_name; + + external ffi.Pointer> p_aliases; + + @ffi.Int() + external int p_proto; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer p_name, + required ffi.Pointer> p_aliases, + required int p_proto, + }) => $allocator() + ..ref.p_name = p_name + ..ref.p_aliases = p_aliases + ..ref.p_proto = p_proto; +} + +typedef pthread_attr_t = __darwin_pthread_attr_t; +typedef pthread_cond_t = __darwin_pthread_cond_t; +typedef pthread_condattr_t = __darwin_pthread_condattr_t; +typedef pthread_key_t = __darwin_pthread_key_t; +typedef pthread_mutex_t = __darwin_pthread_mutex_t; +typedef pthread_mutexattr_t = __darwin_pthread_mutexattr_t; +typedef pthread_once_t = __darwin_pthread_once_t; +typedef pthread_rwlock_t = __darwin_pthread_rwlock_t; +typedef pthread_rwlockattr_t = __darwin_pthread_rwlockattr_t; +typedef pthread_t = __darwin_pthread_t; +typedef ptrauth_extra_data_t = ffi.UnsignedLong; +typedef Dartptrauth_extra_data_t = int; +typedef ptrauth_generic_signature_t = ffi.UnsignedLong; +typedef Dartptrauth_generic_signature_t = int; + +enum ptrauth_key { + ptrauth_key_none(-1), + ptrauth_key_asia(0), + ptrauth_key_asib(1), + ptrauth_key_asda(2), + ptrauth_key_asdb(3); + + static const ptrauth_key_process_independent_code = ptrauth_key_asia; + static const ptrauth_key_process_dependent_code = ptrauth_key_asib; + static const ptrauth_key_process_independent_data = ptrauth_key_asda; + static const ptrauth_key_process_dependent_data = ptrauth_key_asdb; + static const ptrauth_key_return_address = ptrauth_key_asib; + static const ptrauth_key_function_pointer = ptrauth_key_asia; + static const ptrauth_key_frame_pointer = ptrauth_key_asdb; + static const ptrauth_key_block_function = ptrauth_key_asia; + static const ptrauth_key_cxx_vtable_pointer = ptrauth_key_asda; + static const ptrauth_key_method_list_pointer = ptrauth_key_asda; + static const ptrauth_key_objc_isa_pointer = ptrauth_key_asda; + static const ptrauth_key_objc_super_pointer = ptrauth_key_asda; + static const ptrauth_key_block_descriptor_pointer = ptrauth_key_asda; + static const ptrauth_key_objc_sel_pointer = ptrauth_key_asdb; + static const ptrauth_key_objc_class_ro_pointer = ptrauth_key_asda; + + final int value; + const ptrauth_key(this.value); + + static ptrauth_key fromValue(int value) => switch (value) { + -1 => ptrauth_key_none, + 0 => ptrauth_key_asia, + 1 => ptrauth_key_asib, + 2 => ptrauth_key_asda, + 3 => ptrauth_key_asdb, + _ => throw ArgumentError('Unknown value for ptrauth_key: $value'), + }; + + @override + String toString() { + if (this == ptrauth_key_asia) + return "ptrauth_key.ptrauth_key_asia, ptrauth_key.ptrauth_key_process_independent_code, ptrauth_key.ptrauth_key_function_pointer, ptrauth_key.ptrauth_key_block_function"; + if (this == ptrauth_key_asib) + return "ptrauth_key.ptrauth_key_asib, ptrauth_key.ptrauth_key_process_dependent_code, ptrauth_key.ptrauth_key_return_address"; + if (this == ptrauth_key_asda) + return "ptrauth_key.ptrauth_key_asda, ptrauth_key.ptrauth_key_process_independent_data, ptrauth_key.ptrauth_key_cxx_vtable_pointer, ptrauth_key.ptrauth_key_method_list_pointer, ptrauth_key.ptrauth_key_objc_isa_pointer, ptrauth_key.ptrauth_key_objc_super_pointer, ptrauth_key.ptrauth_key_block_descriptor_pointer, ptrauth_key.ptrauth_key_objc_class_ro_pointer"; + if (this == ptrauth_key_asdb) + return "ptrauth_key.ptrauth_key_asdb, ptrauth_key.ptrauth_key_process_dependent_data, ptrauth_key.ptrauth_key_frame_pointer, ptrauth_key.ptrauth_key_objc_sel_pointer"; + return super.toString(); + } +} + +typedef ptrdiff_t = ffi.Long; +typedef Dartptrdiff_t = int; + +final class pwg_map_s extends ffi.Struct { + external ffi.Pointer pwg; + + external ffi.Pointer ppd; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pwg, + required ffi.Pointer ppd, + }) => $allocator() + ..ref.pwg = pwg + ..ref.ppd = ppd; +} + +typedef pwg_map_t = pwg_map_s; + +final class pwg_media_s extends ffi.Struct { + external ffi.Pointer pwg; + + external ffi.Pointer legacy; + + external ffi.Pointer ppd; + + @ffi.Int() + external int width; + + @ffi.Int() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pwg, + required ffi.Pointer legacy, + required ffi.Pointer ppd, + required int width, + required int length, + }) => $allocator() + ..ref.pwg = pwg + ..ref.legacy = legacy + ..ref.ppd = ppd + ..ref.width = width + ..ref.length = length; +} + +typedef pwg_media_t = pwg_media_s; + +final class pwg_size_s extends ffi.Struct { + external pwg_map_t map; + + @ffi.Int() + external int width; + + @ffi.Int() + external int length; + + @ffi.Int() + external int left; + + @ffi.Int() + external int bottom; + + @ffi.Int() + external int right; + + @ffi.Int() + external int top; +} + +typedef pwg_size_t = pwg_size_s; + +const int qErr = -1; + +typedef qaddr_t = ffi.Pointer; + +const int qfcbNotCreatedErr = -2119; + +const int qfcbNotFoundErr = -2118; + +enum qos_class_t { + QOS_CLASS_USER_INTERACTIVE(33), + QOS_CLASS_USER_INITIATED(25), + QOS_CLASS_DEFAULT(21), + QOS_CLASS_UTILITY(17), + QOS_CLASS_BACKGROUND(9), + QOS_CLASS_UNSPECIFIED(0); + + final int value; + const qos_class_t(this.value); + + static qos_class_t fromValue(int value) => switch (value) { + 33 => QOS_CLASS_USER_INTERACTIVE, + 25 => QOS_CLASS_USER_INITIATED, + 21 => QOS_CLASS_DEFAULT, + 17 => QOS_CLASS_UTILITY, + 9 => QOS_CLASS_BACKGROUND, + 0 => QOS_CLASS_UNSPECIFIED, + _ => throw ArgumentError('Unknown value for qos_class_t: $value'), + }; +} + +const int qtActionNotHandledErr = -2157; + +const int qtNetworkAlreadyAllocatedErr = -2127; + +const int qtParamErr = -2202; + +const int qtXMLApplicationErr = -2159; + +const int qtXMLParseErr = -2158; + +const int qtmlDllEntryNotFoundErr = -2094; + +const int qtmlDllLoadErr = -2093; + +const int qtmlUninitialized = -2095; + +const int qtsAddressBusyErr = -5421; + +const int qtsBadDataErr = -5402; + +const int qtsBadSelectorErr = -5400; + +const int qtsBadStateErr = -5401; + +const int qtsConnectionFailedErr = -5420; + +const int qtsTimeoutErr = -5408; + +const int qtsTooMuchDataErr = -5406; + +const int qtsUnknownValueErr = -5407; + +const int qtsUnsupportedDataTypeErr = -5403; + +const int qtsUnsupportedFeatureErr = -5405; + +const int qtsUnsupportedRateErr = -5404; + +const int qtvrLibraryLoadErr = -30554; + +const int qtvrUninitialized = -30555; + +typedef quad_t = ffi.Int64; +typedef Dartquad_t = int; + +const int queueFull = -203; + +@Deprecated('Deprecated') +const int rAliasType = 1634494835; + +final class radvisory extends ffi.Struct { + @off_t() + external int ra_offset; + + @ffi.Int() + external int ra_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ra_offset, + required int ra_count, + }) => $allocator() + ..ref.ra_offset = ra_offset + ..ref.ra_count = ra_count; +} + +const int rcDBAsyncNotSupp = -809; + +const int rcDBBadAsyncPB = -810; + +const int rcDBBadDDEV = -808; + +const int rcDBBadSessID = -806; + +const int rcDBBadSessNum = -807; + +const int rcDBBadType = -803; + +const int rcDBBreak = -804; + +const int rcDBError = -802; + +const int rcDBExec = -805; + +const int rcDBNoHandler = -811; + +const int rcDBNull = -800; + +const int rcDBPackNotInited = -813; + +const int rcDBValue = -801; + +const int rcDBWrongVersion = -812; + +const int rcvrErr = -89; + +const int rdVerify = 64; + +const int rdVerifyBit = 6; + +const int rdVerifyMask = 64; + +const int readErr = -19; + +const int readQErr = -3105; + +@Deprecated('Deprecated') +const int readReference = 1; + +const int recNotFnd = -3108; + +const int recordDataTooBigErr = -20001; + +typedef reg64_t = ffi.Uint32; +typedef Dartreg64_t = int; +@Deprecated('Deprecated') +const int registerComponentAfterExisting = 4; + +@Deprecated('Deprecated') +const int registerComponentAliasesOnly = 8; + +@Deprecated('Deprecated') +const int registerComponentGlobal = 1; + +@Deprecated('Deprecated') +const int registerComponentNoDuplicates = 2; + +typedef registerSelectorType = ffi.UnsignedShort; +typedef DartregisterSelectorType = int; +typedef register_t = ffi.Int64; +typedef Dartregister_t = int; +typedef relop = ffi.Short; +typedef Dartrelop = int; + +const int reqAborted = -1105; + +const int reqFailed = -1096; + +const int requiredFlagsDontMatch = -4001; + +const int res1Field = 11; + +const int res2Field = 12; + +const int res3Field = 13; + +const int resAttrErr = -198; + +@Deprecated('Deprecated') +const int resChanged = 2; + +@Deprecated('Deprecated') +const int resChangedBit = 1; + +const int resFNotFound = -193; + +@Deprecated('Deprecated') +const int resLocked = 16; + +@Deprecated('Deprecated') +const int resLockedBit = 4; + +const int resNotFound = -192; + +@Deprecated('Deprecated') +const int resPreload = 4; + +@Deprecated('Deprecated') +const int resPreloadBit = 2; + +const int resProblem = -204; + +@Deprecated('Deprecated') +const int resProtected = 8; + +@Deprecated('Deprecated') +const int resProtectedBit = 3; + +@Deprecated('Deprecated') +const int resPurgeable = 32; + +@Deprecated('Deprecated') +const int resPurgeableBit = 5; + +@Deprecated('Deprecated') +const int resSysHeap = 64; + +@Deprecated('Deprecated') +const int resSysHeapBit = 6; + +@Deprecated('Deprecated') +const int resSysRefBit = 7; + +const int resourceInMemory = -188; + +const int retryComponentRegistrationErr = -3005; + +const int rfNumErr = -51; + +const int rgnOverflowErr = -147; + +const int rgnTooBigErr = -500; + +const int rgnTooBigError = -147; + +@Deprecated('Deprecated') +const int rightSingGuillemet = 221; + +@Deprecated('Deprecated') +const int ringMark = 251; + +typedef rlim_t = __uint64_t; + +final class rlimit extends ffi.Struct { + @rlim_t() + external int rlim_cur; + + @rlim_t() + external int rlim_max; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int rlim_cur, + required int rlim_max, + }) => $allocator() + ..ref.rlim_cur = rlim_cur + ..ref.rlim_max = rlim_max; +} + +const int rmvRefFailed = -197; + +const int rmvResFailed = -196; + +@Deprecated('Deprecated') +const int romanAppFond = 3; + +@Deprecated('Deprecated') +const int romanFlags = 7; + +@Deprecated('Deprecated') +const int romanSysFond = 16383; + +typedef routine_arg_descriptor = mach_msg_type_descriptor_t; +typedef routine_arg_descriptor_t = ffi.Pointer; +typedef routine_arg_offset = ffi.UnsignedInt; +typedef Dartroutine_arg_offset = int; +typedef routine_arg_size = ffi.UnsignedInt; +typedef Dartroutine_arg_size = int; +typedef routine_arg_type = ffi.UnsignedInt; +typedef Dartroutine_arg_type = int; + +final class routine_descriptor extends ffi.Struct { + external mig_impl_routine_t impl_routine; + + external mig_stub_routine_t stub_routine; + + @ffi.UnsignedInt() + external int argc; + + @ffi.UnsignedInt() + external int descr_count; + + external routine_arg_descriptor_t arg_descr; + + @ffi.UnsignedInt() + external int max_reply_msg; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required mig_impl_routine_t impl_routine, + required mig_stub_routine_t stub_routine, + required int argc, + required int descr_count, + required routine_arg_descriptor_t arg_descr, + required int max_reply_msg, + }) => $allocator() + ..ref.impl_routine = impl_routine + ..ref.stub_routine = stub_routine + ..ref.argc = argc + ..ref.descr_count = descr_count + ..ref.arg_descr = arg_descr + ..ref.max_reply_msg = max_reply_msg; +} + +typedef routine_descriptor_t = ffi.Pointer; + +const int routingNotFoundErr = -4275; + +final class rpc_routine_arg_descriptor extends ffi.Struct { + @routine_arg_type() + external int type; + + @routine_arg_size() + external int size; + + @routine_arg_size() + external int count; + + @routine_arg_offset() + external int offset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int type, + required int size, + required int count, + required int offset, + }) => $allocator() + ..ref.type = type + ..ref.size = size + ..ref.count = count + ..ref.offset = offset; +} + +typedef rpc_routine_arg_descriptor_t = ffi.Pointer; + +final class rpc_routine_descriptor extends ffi.Struct { + external mig_impl_routine_t impl_routine; + + external mig_stub_routine_t stub_routine; + + @ffi.UnsignedInt() + external int argc; + + @ffi.UnsignedInt() + external int descr_count; + + external rpc_routine_arg_descriptor_t arg_descr; + + @ffi.UnsignedInt() + external int max_reply_msg; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required mig_impl_routine_t impl_routine, + required mig_stub_routine_t stub_routine, + required int argc, + required int descr_count, + required rpc_routine_arg_descriptor_t arg_descr, + required int max_reply_msg, + }) => $allocator() + ..ref.impl_routine = impl_routine + ..ref.stub_routine = stub_routine + ..ref.argc = argc + ..ref.descr_count = descr_count + ..ref.arg_descr = arg_descr + ..ref.max_reply_msg = max_reply_msg; +} + +typedef rpc_routine_descriptor_t = ffi.Pointer; + +final class rpc_signature extends ffi.Struct { + external rpc_routine_descriptor rd; + + @ffi.Array.multi([1]) + external ffi.Array rad; +} + +final class rpc_subsystem extends ffi.Struct { + external ffi.Pointer reserved; + + @mach_msg_id_t() + external int start; + + @mach_msg_id_t() + external int end; + + @ffi.UnsignedInt() + external int maxsize; + + @vm_address_t() + external int base_addr; + + @ffi.Array.multi([1]) + external ffi.Array routine; + + @ffi.Array.multi([1]) + external ffi.Array arg_descriptor; +} + +typedef rpc_subsystem_t = ffi.Pointer; + +final class rpcent extends ffi.Struct { + external ffi.Pointer r_name; + + external ffi.Pointer> r_aliases; + + @ffi.Int() + external int r_number; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer r_name, + required ffi.Pointer> r_aliases, + required int r_number, + }) => $allocator() + ..ref.r_name = r_name + ..ref.r_aliases = r_aliases + ..ref.r_number = r_number; +} + +typedef rsize_t = __darwin_size_t; +typedef rune_t = __darwin_rune_t; + +final class rusage extends ffi.Struct { + external timeval ru_utime; + + external timeval ru_stime; + + @ffi.Long() + external int ru_maxrss; + + @ffi.Long() + external int ru_ixrss; + + @ffi.Long() + external int ru_idrss; + + @ffi.Long() + external int ru_isrss; + + @ffi.Long() + external int ru_minflt; + + @ffi.Long() + external int ru_majflt; + + @ffi.Long() + external int ru_nswap; + + @ffi.Long() + external int ru_inblock; + + @ffi.Long() + external int ru_oublock; + + @ffi.Long() + external int ru_msgsnd; + + @ffi.Long() + external int ru_msgrcv; + + @ffi.Long() + external int ru_nsignals; + + @ffi.Long() + external int ru_nvcsw; + + @ffi.Long() + external int ru_nivcsw; +} + +typedef rusage_info_current = rusage_info_v6; +typedef rusage_info_t = ffi.Pointer; + +final class rusage_info_v0 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; +} + +final class rusage_info_v1 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; +} + +final class rusage_info_v2 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; +} + +final class rusage_info_v3 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; + + @ffi.Uint64() + external int ri_cpu_time_qos_default; + + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; + + @ffi.Uint64() + external int ri_cpu_time_qos_background; + + @ffi.Uint64() + external int ri_cpu_time_qos_utility; + + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; + + @ffi.Uint64() + external int ri_billed_system_time; + + @ffi.Uint64() + external int ri_serviced_system_time; +} + +final class rusage_info_v4 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; + + @ffi.Uint64() + external int ri_cpu_time_qos_default; + + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; + + @ffi.Uint64() + external int ri_cpu_time_qos_background; + + @ffi.Uint64() + external int ri_cpu_time_qos_utility; + + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; + + @ffi.Uint64() + external int ri_billed_system_time; + + @ffi.Uint64() + external int ri_serviced_system_time; + + @ffi.Uint64() + external int ri_logical_writes; + + @ffi.Uint64() + external int ri_lifetime_max_phys_footprint; + + @ffi.Uint64() + external int ri_instructions; + + @ffi.Uint64() + external int ri_cycles; + + @ffi.Uint64() + external int ri_billed_energy; + + @ffi.Uint64() + external int ri_serviced_energy; + + @ffi.Uint64() + external int ri_interval_max_phys_footprint; + + @ffi.Uint64() + external int ri_runnable_time; +} + +final class rusage_info_v5 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; + + @ffi.Uint64() + external int ri_cpu_time_qos_default; + + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; + + @ffi.Uint64() + external int ri_cpu_time_qos_background; + + @ffi.Uint64() + external int ri_cpu_time_qos_utility; + + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; + + @ffi.Uint64() + external int ri_billed_system_time; + + @ffi.Uint64() + external int ri_serviced_system_time; + + @ffi.Uint64() + external int ri_logical_writes; + + @ffi.Uint64() + external int ri_lifetime_max_phys_footprint; + + @ffi.Uint64() + external int ri_instructions; + + @ffi.Uint64() + external int ri_cycles; + + @ffi.Uint64() + external int ri_billed_energy; + + @ffi.Uint64() + external int ri_serviced_energy; + + @ffi.Uint64() + external int ri_interval_max_phys_footprint; + + @ffi.Uint64() + external int ri_runnable_time; + + @ffi.Uint64() + external int ri_flags; +} + +final class rusage_info_v6 extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array ri_uuid; + + @ffi.Uint64() + external int ri_user_time; + + @ffi.Uint64() + external int ri_system_time; + + @ffi.Uint64() + external int ri_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_interrupt_wkups; + + @ffi.Uint64() + external int ri_pageins; + + @ffi.Uint64() + external int ri_wired_size; + + @ffi.Uint64() + external int ri_resident_size; + + @ffi.Uint64() + external int ri_phys_footprint; + + @ffi.Uint64() + external int ri_proc_start_abstime; + + @ffi.Uint64() + external int ri_proc_exit_abstime; + + @ffi.Uint64() + external int ri_child_user_time; + + @ffi.Uint64() + external int ri_child_system_time; + + @ffi.Uint64() + external int ri_child_pkg_idle_wkups; + + @ffi.Uint64() + external int ri_child_interrupt_wkups; + + @ffi.Uint64() + external int ri_child_pageins; + + @ffi.Uint64() + external int ri_child_elapsed_abstime; + + @ffi.Uint64() + external int ri_diskio_bytesread; + + @ffi.Uint64() + external int ri_diskio_byteswritten; + + @ffi.Uint64() + external int ri_cpu_time_qos_default; + + @ffi.Uint64() + external int ri_cpu_time_qos_maintenance; + + @ffi.Uint64() + external int ri_cpu_time_qos_background; + + @ffi.Uint64() + external int ri_cpu_time_qos_utility; + + @ffi.Uint64() + external int ri_cpu_time_qos_legacy; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_initiated; + + @ffi.Uint64() + external int ri_cpu_time_qos_user_interactive; + + @ffi.Uint64() + external int ri_billed_system_time; + + @ffi.Uint64() + external int ri_serviced_system_time; + + @ffi.Uint64() + external int ri_logical_writes; + + @ffi.Uint64() + external int ri_lifetime_max_phys_footprint; + + @ffi.Uint64() + external int ri_instructions; + + @ffi.Uint64() + external int ri_cycles; + + @ffi.Uint64() + external int ri_billed_energy; + + @ffi.Uint64() + external int ri_serviced_energy; + + @ffi.Uint64() + external int ri_interval_max_phys_footprint; + + @ffi.Uint64() + external int ri_runnable_time; + + @ffi.Uint64() + external int ri_flags; + + @ffi.Uint64() + external int ri_user_ptime; + + @ffi.Uint64() + external int ri_system_ptime; + + @ffi.Uint64() + external int ri_pinstructions; + + @ffi.Uint64() + external int ri_pcycles; + + @ffi.Uint64() + external int ri_energy_nj; + + @ffi.Uint64() + external int ri_penergy_nj; + + @ffi.Uint64() + external int ri_secure_time_in_system; + + @ffi.Uint64() + external int ri_secure_ptime_in_system; + + @ffi.Uint64() + external int ri_neural_footprint; + + @ffi.Uint64() + external int ri_lifetime_max_neural_footprint; + + @ffi.Uint64() + external int ri_interval_max_neural_footprint; + + @ffi.Array.multi([9]) + external ffi.Array ri_reserved; +} + +@Deprecated('Deprecated') +const int sIQType = 6; + +final class sa_endpoints extends ffi.Struct { + @ffi.UnsignedInt() + external int sae_srcif; + + external ffi.Pointer sae_srcaddr; + + @socklen_t() + external int sae_srcaddrlen; + + external ffi.Pointer sae_dstaddr; + + @socklen_t() + external int sae_dstaddrlen; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sae_srcif, + required ffi.Pointer sae_srcaddr, + required int sae_srcaddrlen, + required ffi.Pointer sae_dstaddr, + required int sae_dstaddrlen, + }) => $allocator() + ..ref.sae_srcif = sae_srcif + ..ref.sae_srcaddr = sae_srcaddr + ..ref.sae_srcaddrlen = sae_srcaddrlen + ..ref.sae_dstaddr = sae_dstaddr + ..ref.sae_dstaddrlen = sae_dstaddrlen; +} + +typedef sa_endpoints_t = sa_endpoints; +typedef sa_family_t = __uint8_t; +typedef sae_associd_t = __uint32_t; +typedef sae_connid_t = __uint32_t; + +const int sameFileErr = -1306; + +const int samplesAlreadyInMediaErr = -2059; + +const int scTypeNotFoundErr = -8971; + +const int scrapFlavorFlagsMismatchErr = -4995; + +const int scrapFlavorNotFoundErr = -102; + +const int scrapFlavorSizeMismatchErr = -4996; + +const int scrapPromiseNotKeptErr = -4992; + +const int scriptCurLang = -6; + +const int scriptDefLang = -7; + +const int sdmInitErr = 11; + +const int sdmJTInitErr = 10; + +const int sdmPRAMInitErr = 13; + +const int sdmPriInitErr = 14; + +const int sdmSRTInitErr = 12; + +const int seNoDB = -8; + +final class searchstate extends ffi.Opaque {} + +const int secLeadingZ = 32; + +typedef sec_certificate_t = ffi.Pointer; +typedef Dartsec_certificate_t = objc.NSObject; +typedef sec_identity_t = ffi.Pointer; +typedef Dartsec_identity_t = objc.NSObject; +typedef sec_object_t = ffi.Pointer; +typedef Dartsec_object_t = objc.NSObject; +typedef sec_protocol_challenge_complete_t = ffi.Pointer; +typedef Dartsec_protocol_challenge_complete_t = + objc.ObjCBlock; +typedef sec_protocol_challenge_t = ffi.Pointer; +typedef Dartsec_protocol_challenge_t = + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.ObjCBlock, + ) + >; +typedef sec_protocol_key_update_complete_t = ffi.Pointer; +typedef Dartsec_protocol_key_update_complete_t = + objc.ObjCBlock; +typedef sec_protocol_key_update_t = ffi.Pointer; +typedef Dartsec_protocol_key_update_t = + objc.ObjCBlock< + ffi.Void Function(objc.NSObject, objc.ObjCBlock) + >; +typedef sec_protocol_metadata_t = ffi.Pointer; +typedef Dartsec_protocol_metadata_t = objc.NSObject; +typedef sec_protocol_options_t = ffi.Pointer; +typedef Dartsec_protocol_options_t = objc.NSObject; +typedef sec_protocol_pre_shared_key_selection_complete_t = + ffi.Pointer; +typedef Dartsec_protocol_pre_shared_key_selection_complete_t = + objc.ObjCBlock; +typedef sec_protocol_pre_shared_key_selection_t = + ffi.Pointer; +typedef Dartsec_protocol_pre_shared_key_selection_t = + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject?, + objc.ObjCBlock, + ) + >; +typedef sec_protocol_verify_complete_t = ffi.Pointer; +typedef Dartsec_protocol_verify_complete_t = + objc.ObjCBlock; +typedef sec_protocol_verify_t = ffi.Pointer; +typedef Dartsec_protocol_verify_t = + objc.ObjCBlock< + ffi.Void Function( + objc.NSObject, + objc.NSObject, + objc.ObjCBlock, + ) + >; +typedef sec_trust_t = ffi.Pointer; +typedef Dartsec_trust_t = objc.NSObject; + +const int secondField = 6; + +const int secondMask = 64; + +const int sectNFErr = -81; + +final class security_token_t extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array val; +} + +const int seekErr = -80; + +typedef segsz_t = ffi.Int32; +typedef Dartsegsz_t = int; + +const int selectorNotSupportedByNodeErr = -30543; + +typedef semaphore_port_t = semaphore_t; +typedef semaphore_t = mach_port_t; + +const int sepNotConsistent = 64; + +const int sepNotIntlSep = 4; + +const int seqGrabInfoNotAvailable = -9407; + +final class servent extends ffi.Struct { + external ffi.Pointer s_name; + + external ffi.Pointer> s_aliases; + + @ffi.Int() + external int s_port; + + external ffi.Pointer s_proto; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer s_name, + required ffi.Pointer> s_aliases, + required int s_port, + required ffi.Pointer s_proto, + }) => $allocator() + ..ref.s_name = s_name + ..ref.s_aliases = s_aliases + ..ref.s_port = s_port + ..ref.s_proto = s_proto; +} + +const int sessClosedErr = -917; + +const int sessTableErr = -907; + +const int settingNotSupportedByNodeErr = -30548; + +final class sf_hdtr extends ffi.Struct { + external ffi.Pointer headers; + + @ffi.Int() + external int hdr_cnt; + + external ffi.Pointer trailers; + + @ffi.Int() + external int trl_cnt; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer headers, + required int hdr_cnt, + required ffi.Pointer trailers, + required int trl_cnt, + }) => $allocator() + ..ref.headers = headers + ..ref.hdr_cnt = hdr_cnt + ..ref.trailers = trailers + ..ref.trl_cnt = trl_cnt; +} + +@ffi.Packed(2) +final class sfntCMapEncoding extends ffi.Struct { + @UInt16() + external int platformID; + + @UInt16() + external int scriptID; + + @UInt32() + external int offset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int platformID, + required int scriptID, + required int offset, + }) => $allocator() + ..ref.platformID = platformID + ..ref.scriptID = scriptID + ..ref.offset = offset; +} + +@ffi.Packed(2) +final class sfntCMapExtendedSubHeader extends ffi.Struct { + @UInt16() + external int format; + + @UInt16() + external int reserved; + + @UInt32() + external int length; + + @UInt32() + external int language; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int format, + required int reserved, + required int length, + required int language, + }) => $allocator() + ..ref.format = format + ..ref.reserved = reserved + ..ref.length = length + ..ref.language = language; +} + +final class sfntCMapHeader extends ffi.Struct { + @UInt16() + external int version; + + @UInt16() + external int numTables; + + @ffi.Array.multi([1]) + external ffi.Array encoding; +} + +final class sfntCMapSubHeader extends ffi.Struct { + @UInt16() + external int format; + + @UInt16() + external int length; + + @UInt16() + external int languageID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int format, + required int length, + required int languageID, + }) => $allocator() + ..ref.format = format + ..ref.length = length + ..ref.languageID = languageID; +} + +@ffi.Packed(2) +final class sfntDescriptorHeader extends ffi.Struct { + @Fixed() + external int version; + + @SInt32() + external int descriptorCount; + + @ffi.Array.multi([1]) + external ffi.Array descriptor; +} + +@ffi.Packed(2) +final class sfntDirectory extends ffi.Struct { + @FourCharCode() + external int format; + + @UInt16() + external int numOffsets; + + @UInt16() + external int searchRange; + + @UInt16() + external int entrySelector; + + @UInt16() + external int rangeShift; + + @ffi.Array.multi([1]) + external ffi.Array table; +} + +@ffi.Packed(2) +final class sfntDirectoryEntry extends ffi.Struct { + @FourCharCode() + external int tableTag; + + @UInt32() + external int checkSum; + + @UInt32() + external int offset; + + @UInt32() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tableTag, + required int checkSum, + required int offset, + required int length, + }) => $allocator() + ..ref.tableTag = tableTag + ..ref.checkSum = checkSum + ..ref.offset = offset + ..ref.length = length; +} + +@ffi.Packed(2) +final class sfntFeatureHeader extends ffi.Struct { + @SInt32() + external int version; + + @UInt16() + external int featureNameCount; + + @UInt16() + external int featureSetCount; + + @SInt32() + external int reserved; + + @ffi.Array.multi([1]) + external ffi.Array names; + + @ffi.Array.multi([1]) + external ffi.Array settings; + + @ffi.Array.multi([1]) + external ffi.Array runs; +} + +@ffi.Packed(2) +final class sfntFeatureName extends ffi.Struct { + @UInt16() + external int featureType; + + @UInt16() + external int settingCount; + + @SInt32() + external int offsetToSettings; + + @UInt16() + external int featureFlags; + + @SInt16() + external int nameID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int featureType, + required int settingCount, + required int offsetToSettings, + required int featureFlags, + required int nameID, + }) => $allocator() + ..ref.featureType = featureType + ..ref.settingCount = settingCount + ..ref.offsetToSettings = offsetToSettings + ..ref.featureFlags = featureFlags + ..ref.nameID = nameID; +} + +@ffi.Packed(2) +final class sfntFontDescriptor extends ffi.Struct { + @FourCharCode() + external int name; + + @Fixed() + external int value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int name, + required int value, + }) => $allocator() + ..ref.name = name + ..ref.value = value; +} + +final class sfntFontFeatureSetting extends ffi.Struct { + @UInt16() + external int setting; + + @SInt16() + external int nameID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int setting, + required int nameID, + }) => $allocator() + ..ref.setting = setting + ..ref.nameID = nameID; +} + +final class sfntFontRunFeature extends ffi.Struct { + @UInt16() + external int featureType; + + @UInt16() + external int setting; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int featureType, + required int setting, + }) => $allocator() + ..ref.featureType = featureType + ..ref.setting = setting; +} + +@ffi.Packed(2) +final class sfntInstance extends ffi.Struct { + @SInt16() + external int nameID; + + @SInt16() + external int flags; + + @ffi.Array.multi([1]) + external ffi.Array coord; +} + +final class sfntNameHeader extends ffi.Struct { + @UInt16() + external int format; + + @UInt16() + external int count; + + @UInt16() + external int stringOffset; + + @ffi.Array.multi([1]) + external ffi.Array rec; +} + +final class sfntNameRecord extends ffi.Struct { + @UInt16() + external int platformID; + + @UInt16() + external int scriptID; + + @UInt16() + external int languageID; + + @UInt16() + external int nameID; + + @UInt16() + external int length; + + @UInt16() + external int offset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int platformID, + required int scriptID, + required int languageID, + required int nameID, + required int length, + required int offset, + }) => $allocator() + ..ref.platformID = platformID + ..ref.scriptID = scriptID + ..ref.languageID = languageID + ..ref.nameID = nameID + ..ref.length = length + ..ref.offset = offset; +} + +@ffi.Packed(2) +final class sfntVariationAxis extends ffi.Struct { + @FourCharCode() + external int axisTag; + + @Fixed() + external int minValue; + + @Fixed() + external int defaultValue; + + @Fixed() + external int maxValue; + + @SInt16() + external int flags; + + @SInt16() + external int nameID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int axisTag, + required int minValue, + required int defaultValue, + required int maxValue, + required int flags, + required int nameID, + }) => $allocator() + ..ref.axisTag = axisTag + ..ref.minValue = minValue + ..ref.defaultValue = defaultValue + ..ref.maxValue = maxValue + ..ref.flags = flags + ..ref.nameID = nameID; +} + +@ffi.Packed(2) +final class sfntVariationHeader extends ffi.Struct { + @Fixed() + external int version; + + @UInt16() + external int offsetToData; + + @UInt16() + external int countSizePairs; + + @UInt16() + external int axisCount; + + @UInt16() + external int axisSize; + + @UInt16() + external int instanceCount; + + @UInt16() + external int instanceSize; + + @ffi.Array.multi([1]) + external ffi.Array axis; + + @ffi.Array.multi([1]) + external ffi.Array instance; +} + +const int shadow = 16; + +const int sharedFolderIconResource = -3978; + +const int shortDate = 0; + +const int shutDownAlert = 42; + +const int siBadDeviceName = -228; + +const int siBadRefNum = -229; + +const int siBadSoundInDevice = -221; + +const int siDeviceBusyErr = -227; + +const int siHardDriveTooSlow = -224; + +const int siInitSDTblErr = 1; + +const int siInitSPTblErr = 3; + +const int siInitVBLQsErr = 2; + +const int siInputDeviceErr = -230; + +const int siInvalidCompression = -223; + +const int siInvalidSampleRate = -225; + +const int siInvalidSampleSize = -226; + +const int siNoBufferSpecified = -222; + +const int siNoSoundInHardware = -220; + +const int siUnknownInfoType = -231; + +const int siUnknownQuality = -232; + +const int siVBRCompressionNotSupported = -213; + +typedef sig_atomic_t = ffi.Int; +typedef Dartsig_atomic_t = int; +typedef sig_t = ffi.Pointer>; + +final class sigaction$1 extends ffi.Struct { + external __sigaction_u __sigaction_u$1; + + @sigset_t() + external int sa_mask; + + @ffi.Int() + external int sa_flags; +} + +final class sigevent extends ffi.Struct { + @ffi.Int() + external int sigev_notify; + + @ffi.Int() + external int sigev_signo; + + external sigval sigev_value; + + external ffi.Pointer> + sigev_notify_function; + + external ffi.Pointer sigev_notify_attributes; +} + +typedef siginfo_t = __siginfo; +typedef sigset_t = __darwin_sigset_t; + +final class sigstack extends ffi.Struct { + external ffi.Pointer ss_sp; + + @ffi.Int() + external int ss_onstack; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer ss_sp, + required int ss_onstack, + }) => $allocator() + ..ref.ss_sp = ss_sp + ..ref.ss_onstack = ss_onstack; +} + +final class sigval extends ffi.Union { + @ffi.Int() + external int sival_int; + + external ffi.Pointer sival_ptr; +} + +final class sigvec$1 extends ffi.Struct { + external ffi.Pointer> + sv_handler; + + @ffi.Int() + external int sv_mask; + + @ffi.Int() + external int sv_flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer> + sv_handler, + required int sv_mask, + required int sv_flags, + }) => $allocator() + ..ref.sv_handler = sv_handler + ..ref.sv_mask = sv_mask + ..ref.sv_flags = sv_flags; +} + +typedef sint16 = ffi.Int16; +typedef Dartsint16 = int; +typedef sint32 = ffi.Int32; +typedef Dartsint32 = int; +typedef sint64 = ffi.Int64; +typedef Dartsint64 = int; +typedef sint8 = ffi.Int8; +typedef Dartsint8 = int; + +const int sizeof_sfntCMapEncoding = 8; + +const int sizeof_sfntCMapExtendedSubHeader = 12; + +const int sizeof_sfntCMapHeader = 4; + +const int sizeof_sfntCMapSubHeader = 6; + +const int sizeof_sfntDescriptorHeader = 8; + +const int sizeof_sfntDirectory = 12; + +const int sizeof_sfntInstance = 4; + +const int sizeof_sfntNameHeader = 6; + +const int sizeof_sfntNameRecord = 12; + +const int sizeof_sfntVariationAxis = 20; + +const int sizeof_sfntVariationHeader = 16; + +const int sktClosedErr = -3109; + +const int sleepQType = 16; + +typedef sleep_type_t = ffi.Int; +typedef Dartsleep_type_t = int; + +const int slotNumErr = -360; + +const int slpQType = 16; + +@Deprecated('Deprecated') +const int smAllScripts = -3; + +@Deprecated('Deprecated') +const int smAmharic = 28; + +@Deprecated('Deprecated') +const int smArabic = 4; + +@Deprecated('Deprecated') +const int smArmenian = 24; + +const int smBLFieldBad = -309; + +const int smBadBoardId = -319; + +const int smBadRefId = -330; + +@Deprecated('Deprecated') +const int smBadScript = -2; + +@Deprecated('Deprecated') +const int smBadVerb = -1; + +const int smBadsList = -331; + +const int smBadsPtrErr = -346; + +@Deprecated('Deprecated') +const int smBengali = 13; + +const int smBlkMoveErr = -340; + +@Deprecated('Deprecated') +const int smBurmese = 19; + +const int smBusErrTO = -320; + +const int smByteLanesErr = -347; + +const int smCPUErr = -334; + +const int smCRCFail = -301; + +@Deprecated('Deprecated') +const int smCentralEuroRoman = 29; + +@Deprecated('Deprecated') +const int smChar1byte = 0; + +@Deprecated('Deprecated') +const int smChar2byte = 32768; + +@Deprecated('Deprecated') +const int smCharAscii = 1; + +@Deprecated('Deprecated') +const int smCharBidirect = 8; + +@Deprecated('Deprecated') +const int smCharBopomofo = 14; + +@Deprecated('Deprecated') +const int smCharContextualLR = 9; + +@Deprecated('Deprecated') +const int smCharEuro = 7; + +@Deprecated('Deprecated') +const int smCharExtAscii = 7; + +@Deprecated('Deprecated') +const int smCharFISGana = 3; + +@Deprecated('Deprecated') +const int smCharFISGreek = 5; + +@Deprecated('Deprecated') +const int smCharFISIdeo = 4; + +@Deprecated('Deprecated') +const int smCharFISKana = 2; + +@Deprecated('Deprecated') +const int smCharFISRussian = 6; + +@Deprecated('Deprecated') +const int smCharGanaKana = 15; + +@Deprecated('Deprecated') +const int smCharHangul = 12; + +@Deprecated('Deprecated') +const int smCharHiragana = 3; + +@Deprecated('Deprecated') +const int smCharHorizontal = 0; + +@Deprecated('Deprecated') +const int smCharIdeographic = 4; + +@Deprecated('Deprecated') +const int smCharJamo = 13; + +@Deprecated('Deprecated') +const int smCharKatakana = 2; + +@Deprecated('Deprecated') +const int smCharLeft = 0; + +@Deprecated('Deprecated') +const int smCharLower = 0; + +@Deprecated('Deprecated') +const int smCharNonContextualLR = 10; + +@Deprecated('Deprecated') +const int smCharPunct = 0; + +@Deprecated('Deprecated') +const int smCharRight = 8192; + +@Deprecated('Deprecated') +const int smCharTwoByteGreek = 5; + +@Deprecated('Deprecated') +const int smCharTwoByteRussian = 6; + +@Deprecated('Deprecated') +const int smCharUpper = 16384; + +@Deprecated('Deprecated') +const int smCharVertical = 4096; + +@Deprecated('Deprecated') +const int smChinese = 2; + +const int smCkStatusErr = -341; + +const int smCodeRevErr = -333; + +@Deprecated('Deprecated') +const int smCurrentScript = -2; + +@Deprecated('Deprecated') +const int smCyrillic = 7; + +@Deprecated('Deprecated') +const int smDevanagari = 9; + +const int smDisDrvrNamErr = -343; + +const int smDisabledSlot = -305; + +const int smDisposePErr = -312; + +@Deprecated('Deprecated') +const int smEastEurRoman = 29; + +const int smEmptySlot = -300; + +@Deprecated('Deprecated') +const int smEthiopic = 28; + +@Deprecated('Deprecated') +const int smExtArabic = 31; + +const int smFHBlkDispErr = -311; + +const int smFHBlockRdErr = -310; + +@Deprecated('Deprecated') +const int smFISClassLvl1 = 0; + +@Deprecated('Deprecated') +const int smFISClassLvl2 = 256; + +@Deprecated('Deprecated') +const int smFISClassUser = 512; + +@Deprecated('Deprecated') +const int smFirstByte = -1; + +@Deprecated('Deprecated') +const int smFondEnd = 49152; + +@Deprecated('Deprecated') +const int smFondStart = 16384; + +const int smFormatErr = -302; + +@Deprecated('Deprecated') +const int smGeez = 28; + +@Deprecated('Deprecated') +const int smGeorgian = 23; + +const int smGetDrvrNamErr = -342; + +const int smGetPRErr = -314; + +@Deprecated('Deprecated') +const int smGreek = 6; + +@Deprecated('Deprecated') +const int smGujarati = 11; + +@Deprecated('Deprecated') +const int smGurmukhi = 10; + +@Deprecated('Deprecated') +const int smHebrew = 5; + +@Deprecated('Deprecated') +const int smIdeographicLevel1 = 0; + +@Deprecated('Deprecated') +const int smIdeographicLevel2 = 256; + +@Deprecated('Deprecated') +const int smIdeographicUser = 512; + +const int smInitStatVErr = -316; + +const int smInitTblVErr = -317; + +@Deprecated('Deprecated') +const int smJamoBogJaeum = 256; + +@Deprecated('Deprecated') +const int smJamoBogMoeum = 768; + +@Deprecated('Deprecated') +const int smJamoJaeum = 0; + +@Deprecated('Deprecated') +const int smJamoMoeum = 512; + +@Deprecated('Deprecated') +const int smJapanese = 1; + +@Deprecated('Deprecated') +const int smKCHRCache = 38; + +@Deprecated('Deprecated') +const int smKanaHardOK = 512; + +@Deprecated('Deprecated') +const int smKanaSmall = 256; + +@Deprecated('Deprecated') +const int smKanaSoftOK = 768; + +@Deprecated('Deprecated') +const int smKannada = 16; + +@Deprecated('Deprecated') +const int smKeyDisableKybdSwitch = -12; + +@Deprecated('Deprecated') +const int smKeyDisableKybds = -6; + +@Deprecated('Deprecated') +const int smKeyEnableKybds = -7; + +@Deprecated('Deprecated') +const int smKeyForceKeyScriptBit = 7; + +@Deprecated('Deprecated') +const int smKeyForceKeyScriptMask = 128; + +@Deprecated('Deprecated') +const int smKeyNextInputMethod = -10; + +@Deprecated('Deprecated') +const int smKeyNextKybd = -4; + +@Deprecated('Deprecated') +const int smKeyNextScript = -1; + +@Deprecated('Deprecated') +const int smKeyRoman = -17; + +@Deprecated('Deprecated') +const int smKeyScript = 22; + +@Deprecated('Deprecated') +const int smKeySetDirLeftRight = -15; + +@Deprecated('Deprecated') +const int smKeySetDirRightLeft = -16; + +@Deprecated('Deprecated') +const int smKeySwapInputMethod = -11; + +@Deprecated('Deprecated') +const int smKeySwapKybd = -5; + +@Deprecated('Deprecated') +const int smKeySwapScript = -3; + +@Deprecated('Deprecated') +const int smKeySysScript = -2; + +@Deprecated('Deprecated') +const int smKeyToggleDirection = -9; + +@Deprecated('Deprecated') +const int smKeyToggleInline = -8; + +@Deprecated('Deprecated') +const int smKhmer = 20; + +@Deprecated('Deprecated') +const int smKlingon = 32; + +@Deprecated('Deprecated') +const int smKorean = 3; + +@Deprecated('Deprecated') +const int smLao = 22; + +@Deprecated('Deprecated') +const int smLaotian = 22; + +@Deprecated('Deprecated') +const int smLastByte = 1; + +@Deprecated('Deprecated') +const int smMalayalam = 17; + +@Deprecated('Deprecated') +const int smMaskAll = -1; + +@Deprecated('Deprecated') +const int smMaskAscii = 1; + +@Deprecated('Deprecated') +const int smMaskAscii1 = 4; + +@Deprecated('Deprecated') +const int smMaskAscii2 = 8; + +@Deprecated('Deprecated') +const int smMaskBopomofo2 = 1024; + +@Deprecated('Deprecated') +const int smMaskGana2 = 128; + +@Deprecated('Deprecated') +const int smMaskHangul2 = 256; + +@Deprecated('Deprecated') +const int smMaskJamo2 = 512; + +@Deprecated('Deprecated') +const int smMaskKana1 = 16; + +@Deprecated('Deprecated') +const int smMaskKana2 = 32; + +@Deprecated('Deprecated') +const int smMaskNative = 2; + +@Deprecated('Deprecated') +const int smMiddleByte = 2; + +@Deprecated('Deprecated') +const int smMongolian = 27; + +const int smNewPErr = -339; + +const int smNilsBlockErr = -336; + +const int smNoBoardId = -315; + +const int smNoBoardSRsrc = -313; + +const int smNoDir = -304; + +const int smNoGoodOpens = -349; + +const int smNoJmpTbl = -318; + +const int smNoMoresRsrcs = -344; + +const int smNosInfoArray = -306; + +@Deprecated('Deprecated') +const int smNotInstalled = 0; + +@Deprecated('Deprecated') +const int smNumberPartsTable = 2; + +const int smOffsetErr = -348; + +@Deprecated('Deprecated') +const int smOriya = 12; + +const int smPRAMInitErr = -292; + +const int smPriInitErr = -293; + +@Deprecated('Deprecated') +const int smPunctBlank = 768; + +@Deprecated('Deprecated') +const int smPunctGraphic = 1280; + +@Deprecated('Deprecated') +const int smPunctNormal = 0; + +@Deprecated('Deprecated') +const int smPunctNumber = 256; + +@Deprecated('Deprecated') +const int smPunctRepeat = 1024; + +@Deprecated('Deprecated') +const int smPunctSymbol = 512; + +@Deprecated('Deprecated') +const int smRSymbol = 8; + +const int smRecNotFnd = -351; + +@Deprecated('Deprecated') +const int smRegionCode = 40; + +const int smReservedErr = -332; + +const int smReservedSlot = -318; + +const int smResrvErr = -307; + +const int smRevisionErr = -303; + +@Deprecated('Deprecated') +const int smRoman = 0; + +@Deprecated('Deprecated') +const int smRussian = 7; + +const int smSDMInitErr = -290; + +const int smSRTInitErr = -291; + +const int smSRTOvrFlErr = -350; + +const int smSelOOBErr = -338; + +@Deprecated('Deprecated') +const int smSimpChinese = 25; + +@Deprecated('Deprecated') +const int smSindhi = 31; + +@Deprecated('Deprecated') +const int smSingleByte = 0; + +@Deprecated('Deprecated') +const int smSinhalese = 18; + +@Deprecated('Deprecated') +const int smSlavic = 29; + +const int smSlotOOBErr = -337; + +@Deprecated('Deprecated') +const int smSysScript = 18; + +@Deprecated('Deprecated') +const int smSystemScript = -1; + +@Deprecated('Deprecated') +const int smTamil = 14; + +@Deprecated('Deprecated') +const int smTelugu = 15; + +@Deprecated('Deprecated') +const int smThai = 21; + +@Deprecated('Deprecated') +const int smTibetan = 26; + +@Deprecated('Deprecated') +const int smTradChinese = 2; + +@Deprecated('Deprecated') +const int smTransAscii = 0; + +@Deprecated('Deprecated') +const int smTransAscii1 = 2; + +@Deprecated('Deprecated') +const int smTransAscii2 = 3; + +@Deprecated('Deprecated') +const int smTransBopomofo2 = 10; + +@Deprecated('Deprecated') +const int smTransCase = 254; + +@Deprecated('Deprecated') +const int smTransGana2 = 7; + +@Deprecated('Deprecated') +const int smTransHangul2 = 8; + +@Deprecated('Deprecated') +const int smTransHangulFormat = 2; + +@Deprecated('Deprecated') +const int smTransJamo2 = 9; + +@Deprecated('Deprecated') +const int smTransKana1 = 4; + +@Deprecated('Deprecated') +const int smTransKana2 = 5; + +@Deprecated('Deprecated') +const int smTransLower = 16384; + +@Deprecated('Deprecated') +const int smTransNative = 1; + +@Deprecated('Deprecated') +const int smTransPreDoubleByting = 1; + +@Deprecated('Deprecated') +const int smTransPreLowerCasing = 2; + +@Deprecated('Deprecated') +const int smTransRuleBaseFormat = 1; + +@Deprecated('Deprecated') +const int smTransSystem = 255; + +@Deprecated('Deprecated') +const int smTransUpper = 32768; + +const int smUnExBusErr = -308; + +@Deprecated('Deprecated') +const int smUnTokenTable = 3; + +const int smUnicodeScript = 126; + +@Deprecated('Deprecated') +const int smUninterp = 32; + +@Deprecated('Deprecated') +const int smUprHalfCharSet = 128; + +@Deprecated('Deprecated') +const int smVietnamese = 30; + +@Deprecated('Deprecated') +const int smWhiteSpaceList = 4; + +@Deprecated('Deprecated') +const int smWordSelectTable = 0; + +@Deprecated('Deprecated') +const int smWordWrapTable = 1; + +const int small1BitMask = 1768125219; + +const int small4BitData = 1768125236; + +const int small8BitData = 1768125240; + +const int smallDateBit = 31; + +@Deprecated('Deprecated') +const int smcClassMask = 3840; + +@Deprecated('Deprecated') +const int smcDoubleMask = 32768; + +@Deprecated('Deprecated') +const int smcOrientationMask = 4096; + +@Deprecated('Deprecated') +const int smcReserved = 240; + +@Deprecated('Deprecated') +const int smcRightMask = 8192; + +@Deprecated('Deprecated') +const int smcTypeMask = 15; + +@Deprecated('Deprecated') +const int smcUpperMask = 16384; + +@Deprecated('Deprecated') +const int smfDisableKeyScriptSync = 27; + +@Deprecated('Deprecated') +const int smfDisableKeyScriptSyncMask = 134217728; + +@Deprecated('Deprecated') +const int smfDualCaret = 30; + +@Deprecated('Deprecated') +const int smfNameTagEnab = 29; + +@Deprecated('Deprecated') +const int smfShowIcon = 31; + +@Deprecated('Deprecated') +const int smfUseAssocFontInfo = 28; + +const int smsGetDrvrErr = -345; + +const int smsPointerNil = -335; + +@Deprecated('Deprecated') +const int smsfAutoInit = 6; + +@Deprecated('Deprecated') +const int smsfB0Digits = 5; + +@Deprecated('Deprecated') +const int smsfContext = 3; + +@Deprecated('Deprecated') +const int smsfForms = 13; + +@Deprecated('Deprecated') +const int smsfIntellCP = 0; + +@Deprecated('Deprecated') +const int smsfLigatures = 14; + +@Deprecated('Deprecated') +const int smsfNatCase = 2; + +@Deprecated('Deprecated') +const int smsfNoForceFont = 4; + +@Deprecated('Deprecated') +const int smsfReverse = 15; + +@Deprecated('Deprecated') +const int smsfSingByte = 1; + +@Deprecated('Deprecated') +const int smsfSynchUnstyledTE = 8; + +@Deprecated('Deprecated') +const int smsfUnivExt = 7; + +const int soCharacterMode = 1667785074; + +const int soCommandDelimiter = 1684826477; + +const int soCurrentA5 = 1836663093; + +const int soCurrentVoice = 1668706168; + +const int soErrorCallBack = 1701995362; + +const int soErrors = 1701999215; + +const int soInputMode = 1768845428; + +const int soNumberMode = 1852662386; + +const int soOutputToAudioDevice = 1869635940; + +const int soOutputToExtAudioFile = 1869635960; + +const int soOutputToFileWithCFURL = 1869635942; + +const int soPhonemeCallBack = 1885889378; + +const int soPhonemeOptions = 1886351476; + +const int soPhonemeSymbols = 1885893497; + +const int soPitchBase = 1885495667; + +const int soPitchMod = 1886220132; + +const int soRate = 1918989413; + +const int soRecentSync = 1937337955; + +const int soRefCon = 1919247971; + +const int soReset = 1920165236; + +const int soSoundOutput = 1936614511; + +const int soSpeechDoneCallBack = 1935958882; + +const int soStatus = 1937006964; + +const int soSyncCallBack = 1937335138; + +const int soSynthExtension = 2020896356; + +const int soSynthType = 1986359923; + +const int soTextDoneCallBack = 1952736098; + +const int soVoiceDescription = 1768842863; + +const int soVoiceFile = 1718773094; + +const int soVolume = 1987013741; + +const int soWordCallBack = 2003067746; + +final class so_np_extensions extends ffi.Struct { + @u_int32_t() + external int npx_flags; + + @u_int32_t() + external int npx_mask; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int npx_flags, + required int npx_mask, + }) => $allocator() + ..ref.npx_flags = npx_flags + ..ref.npx_mask = npx_mask; +} + +final class sockaddr extends ffi.Struct { + @__uint8_t() + external int sa_len; + + @sa_family_t() + external int sa_family; + + @ffi.Array.multi([14]) + external ffi.Array sa_data; +} + +final class sockaddr_in extends ffi.Struct { + @__uint8_t() + external int sin_len; + + @sa_family_t() + external int sin_family; + + @in_port_t() + external int sin_port; + + external in_addr sin_addr; + + @ffi.Array.multi([8]) + external ffi.Array sin_zero; +} + +final class sockaddr_in6 extends ffi.Struct { + @__uint8_t() + external int sin6_len; + + @sa_family_t() + external int sin6_family; + + @in_port_t() + external int sin6_port; + + @__uint32_t() + external int sin6_flowinfo; + + external in6_addr sin6_addr; + + @__uint32_t() + external int sin6_scope_id; +} + +final class sockaddr_storage extends ffi.Struct { + @__uint8_t() + external int ss_len; + + @sa_family_t() + external int ss_family; + + @ffi.Array.multi([6]) + external ffi.Array __ss_pad1; + + @__int64_t() + external int __ss_align; + + @ffi.Array.multi([112]) + external ffi.Array __ss_pad2; +} + +final class sockaddr_un extends ffi.Struct { + @ffi.UnsignedChar() + external int sun_len; + + @sa_family_t() + external int sun_family; + + @ffi.Array.multi([104]) + external ffi.Array sun_path; +} + +typedef socklen_t = __darwin_socklen_t; + +final class sockproto extends ffi.Struct { + @__uint16_t() + external int sp_family; + + @__uint16_t() + external int sp_protocol; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sp_family, + required int sp_protocol, + }) => $allocator() + ..ref.sp_family = sp_family + ..ref.sp_protocol = sp_protocol; +} + +@Deprecated('Deprecated') +const int sortsAfter = 1; + +@Deprecated('Deprecated') +const int sortsBefore = -1; + +@Deprecated('Deprecated') +const int sortsEqual = 0; + +const int soundSupportNotAvailableErr = -2056; + +const int sourceNotFoundErr = -2061; + +const int spdAdjErr = -79; + +const int srcCopy = 0; + +typedef ssize_t = __darwin_ssize_t; +typedef stack_t = __darwin_sigaltstack; + +const int staleEditState = -2025; + +const int startupFolderIconResource = -3981; + +const int statusErr = -18; + +const int strUserBreak = -491; + +const int streamingNodeNotReadyErr = -30553; + +@Deprecated('Deprecated') +const int stringOverflow = 2; + +const int supDay = 1; + +const int supMonth = 4; + +const int supWeek = 2; + +const int supYear = 8; + +typedef suseconds_t = __darwin_suseconds_t; + +const int svAll1BitData = 16843009; + +const int svAll4BitData = 33686018; + +const int svAll8BitData = 67372036; + +const int svAllAvailableData = -1; + +const int svAllLargeData = 255; + +const int svAllMiniData = 16711680; + +const int svAllSmallData = 65280; + +const int svDisabled = -32640; + +const int svLarge1Bit = 1; + +const int svLarge4Bit = 2; + +const int svLarge8Bit = 4; + +const int svMini1Bit = 65536; + +const int svMini4Bit = 131072; + +const int svMini8Bit = 262144; + +const int svSmall1Bit = 256; + +const int svSmall4Bit = 512; + +const int svSmall8Bit = 1024; + +const int svTempDisable = -32768; + +typedef swblk_t = ffi.Int32; +typedef Dartswblk_t = int; +typedef sync_policy_t = ffi.Int; +typedef Dartsync_policy_t = int; + +const int synthNotReady = -242; + +const int synthOpenFailed = -241; + +const int synthesizerNotRespondingOSErr = -2082; + +const int synthesizerOSErr = -2083; + +typedef syscall_arg_t = u_int64_t; + +const int systemCurLang = -2; + +const int systemDefLang = -3; + +const int systemFolderIconResource = -3983; + +@ffi.Packed(4) +final class task_absolutetime_info extends ffi.Struct { + @ffi.Uint64() + external int total_user; + + @ffi.Uint64() + external int total_system; + + @ffi.Uint64() + external int threads_user; + + @ffi.Uint64() + external int threads_system; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int total_user, + required int total_system, + required int threads_user, + required int threads_system, + }) => $allocator() + ..ref.total_user = total_user + ..ref.total_system = total_system + ..ref.threads_user = threads_user + ..ref.threads_system = threads_system; +} + +typedef task_absolutetime_info_data_t = task_absolutetime_info; +typedef task_absolutetime_info_t = ffi.Pointer; + +final class task_affinity_tag_info extends ffi.Struct { + @integer_t() + external int set_count; + + @integer_t() + external int min; + + @integer_t() + external int max; + + @integer_t() + external int task_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int set_count, + required int min, + required int max, + required int task_count, + }) => $allocator() + ..ref.set_count = set_count + ..ref.min = min + ..ref.max = max + ..ref.task_count = task_count; +} + +typedef task_affinity_tag_info_data_t = task_affinity_tag_info; +typedef task_affinity_tag_info_t = ffi.Pointer; +typedef task_array_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_basic_info extends ffi.Struct { + @integer_t() + external int suspend_count; + + @vm_size_t() + external int virtual_size; + + @vm_size_t() + external int resident_size; + + external time_value_t user_time; + + external time_value_t system_time; + + @policy_t() + external int policy; +} + +final class task_basic_info_32 extends ffi.Struct { + @integer_t() + external int suspend_count; + + @natural_t() + external int virtual_size; + + @natural_t() + external int resident_size; + + external time_value_t user_time; + + external time_value_t system_time; + + @policy_t() + external int policy; +} + +typedef task_basic_info_32_data_t = task_basic_info_32; +typedef task_basic_info_32_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_basic_info_64 extends ffi.Struct { + @integer_t() + external int suspend_count; + + @mach_vm_size_t() + external int virtual_size; + + @mach_vm_size_t() + external int resident_size; + + external time_value_t user_time; + + external time_value_t system_time; + + @policy_t() + external int policy; +} + +@ffi.Packed(4) +final class task_basic_info_64_2 extends ffi.Struct { + @integer_t() + external int suspend_count; + + @mach_vm_size_t() + external int virtual_size; + + @mach_vm_size_t() + external int resident_size; + + external time_value_t user_time; + + external time_value_t system_time; + + @policy_t() + external int policy; +} + +typedef task_basic_info_64_2_data_t = task_basic_info_64_2; +typedef task_basic_info_64_2_t = ffi.Pointer; +typedef task_basic_info_64_data_t = task_basic_info_64; +typedef task_basic_info_64_t = ffi.Pointer; +typedef task_basic_info_data_t = task_basic_info; +typedef task_basic_info_t = ffi.Pointer; + +final class task_category_policy extends ffi.Struct { + @ffi.Int() + external int roleAsInt; + + task_role get role => task_role.fromValue(roleAsInt); + set role(task_role value) => roleAsInt = value.value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required task_role role, + }) => $allocator()..ref.role = role; +} + +typedef task_category_policy_data_t = task_category_policy; +typedef task_category_policy_t = ffi.Pointer; +typedef task_corpse_forking_behavior_t = ffi.Uint32; +typedef Darttask_corpse_forking_behavior_t = int; + +@ffi.Packed(4) +final class task_dyld_info extends ffi.Struct { + @mach_vm_address_t() + external int all_image_info_addr; + + @mach_vm_size_t() + external int all_image_info_size; + + @integer_t() + external int all_image_info_format; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int all_image_info_addr, + required int all_image_info_size, + required int all_image_info_format, + }) => $allocator() + ..ref.all_image_info_addr = all_image_info_addr + ..ref.all_image_info_size = all_image_info_size + ..ref.all_image_info_format = all_image_info_format; +} + +typedef task_dyld_info_data_t = task_dyld_info; +typedef task_dyld_info_t = ffi.Pointer; + +final class task_events_info extends ffi.Struct { + @integer_t() + external int faults; + + @integer_t() + external int pageins; + + @integer_t() + external int cow_faults; + + @integer_t() + external int messages_sent; + + @integer_t() + external int messages_received; + + @integer_t() + external int syscalls_mach; + + @integer_t() + external int syscalls_unix; + + @integer_t() + external int csw; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int faults, + required int pageins, + required int cow_faults, + required int messages_sent, + required int messages_received, + required int syscalls_mach, + required int syscalls_unix, + required int csw, + }) => $allocator() + ..ref.faults = faults + ..ref.pageins = pageins + ..ref.cow_faults = cow_faults + ..ref.messages_sent = messages_sent + ..ref.messages_received = messages_received + ..ref.syscalls_mach = syscalls_mach + ..ref.syscalls_unix = syscalls_unix + ..ref.csw = csw; +} + +typedef task_events_info_data_t = task_events_info; +typedef task_events_info_t = ffi.Pointer; +typedef task_exc_guard_behavior_t = ffi.Uint32; +typedef Darttask_exc_guard_behavior_t = int; + +@ffi.Packed(4) +final class task_extmod_info extends ffi.Struct { + @ffi.Array.multi([16]) + external ffi.Array task_uuid; + + external vm_extmod_statistics_data_t extmod_statistics; +} + +typedef task_extmod_info_data_t = task_extmod_info; +typedef task_extmod_info_t = ffi.Pointer; + +final class task_flags_info extends ffi.Struct { + @ffi.Uint32() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int flags, + }) => $allocator()..ref.flags = flags; +} + +typedef task_flags_info_data_t = task_flags_info; +typedef task_flags_info_t = ffi.Pointer; +typedef task_flavor_t = natural_t; +typedef task_id_token_t = mach_port_t; +typedef task_info_t = ffi.Pointer; + +final class task_inspect_basic_counts extends ffi.Struct { + @ffi.Uint64() + external int instructions; + + @ffi.Uint64() + external int cycles; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int instructions, + required int cycles, + }) => $allocator() + ..ref.instructions = instructions + ..ref.cycles = cycles; +} + +typedef task_inspect_basic_counts_data_t = task_inspect_basic_counts; +typedef task_inspect_basic_counts_t = ffi.Pointer; + +enum task_inspect_flavor { + TASK_INSPECT_BASIC_COUNTS(1); + + final int value; + const task_inspect_flavor(this.value); + + static task_inspect_flavor fromValue(int value) => switch (value) { + 1 => TASK_INSPECT_BASIC_COUNTS, + _ => throw ArgumentError('Unknown value for task_inspect_flavor: $value'), + }; +} + +typedef task_inspect_flavor_t = natural_t; +typedef task_inspect_info_t = ffi.Pointer; +typedef task_inspect_t = mach_port_t; + +final class task_ipc_space_policy_info extends ffi.Struct { + @ffi.Uint32() + external int space_policy; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int space_policy, + }) => + $allocator()..ref.space_policy = space_policy; +} + +typedef task_ipc_space_policy_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_kernelmemory_info extends ffi.Struct { + @ffi.Uint64() + external int total_palloc; + + @ffi.Uint64() + external int total_pfree; + + @ffi.Uint64() + external int total_salloc; + + @ffi.Uint64() + external int total_sfree; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int total_palloc, + required int total_pfree, + required int total_salloc, + required int total_sfree, + }) => $allocator() + ..ref.total_palloc = total_palloc + ..ref.total_pfree = total_pfree + ..ref.total_salloc = total_salloc + ..ref.total_sfree = total_sfree; +} + +typedef task_kernelmemory_info_data_t = task_kernelmemory_info; +typedef task_kernelmemory_info_t = ffi.Pointer; + +enum task_latency_qos { + LATENCY_QOS_TIER_UNSPECIFIED(0), + LATENCY_QOS_TIER_0(16711681), + LATENCY_QOS_TIER_1(16711682), + LATENCY_QOS_TIER_2(16711683), + LATENCY_QOS_TIER_3(16711684), + LATENCY_QOS_TIER_4(16711685), + LATENCY_QOS_TIER_5(16711686); + + final int value; + const task_latency_qos(this.value); + + static task_latency_qos fromValue(int value) => switch (value) { + 0 => LATENCY_QOS_TIER_UNSPECIFIED, + 16711681 => LATENCY_QOS_TIER_0, + 16711682 => LATENCY_QOS_TIER_1, + 16711683 => LATENCY_QOS_TIER_2, + 16711684 => LATENCY_QOS_TIER_3, + 16711685 => LATENCY_QOS_TIER_4, + 16711686 => LATENCY_QOS_TIER_5, + _ => throw ArgumentError('Unknown value for task_latency_qos: $value'), + }; +} + +typedef task_latency_qos_t = integer_t; +typedef task_name_t = mach_port_t; +typedef task_policy_flavor_t = natural_t; +typedef task_policy_get_t = mach_port_t; +typedef task_policy_set_t = mach_port_t; +typedef task_policy_t = ffi.Pointer; +typedef task_port_array_t = task_array_t; +typedef task_port_t = task_t; + +@ffi.Packed(4) +final class task_power_info extends ffi.Struct { + @ffi.Uint64() + external int total_user; + + @ffi.Uint64() + external int total_system; + + @ffi.Uint64() + external int task_interrupt_wakeups; + + @ffi.Uint64() + external int task_platform_idle_wakeups; + + @ffi.Uint64() + external int task_timer_wakeups_bin_1; + + @ffi.Uint64() + external int task_timer_wakeups_bin_2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int total_user, + required int total_system, + required int task_interrupt_wakeups, + required int task_platform_idle_wakeups, + required int task_timer_wakeups_bin_1, + required int task_timer_wakeups_bin_2, + }) => $allocator() + ..ref.total_user = total_user + ..ref.total_system = total_system + ..ref.task_interrupt_wakeups = task_interrupt_wakeups + ..ref.task_platform_idle_wakeups = task_platform_idle_wakeups + ..ref.task_timer_wakeups_bin_1 = task_timer_wakeups_bin_1 + ..ref.task_timer_wakeups_bin_2 = task_timer_wakeups_bin_2; +} + +typedef task_power_info_data_t = task_power_info; +typedef task_power_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_power_info_v2 extends ffi.Struct { + external task_power_info_data_t cpu_energy; + + external gpu_energy_data gpu_energy; + + @ffi.Uint64() + external int task_energy; + + @ffi.Uint64() + external int task_ptime; + + @ffi.Uint64() + external int task_pset_switches; +} + +typedef task_power_info_v2_data_t = task_power_info_v2; +typedef task_power_info_v2_t = ffi.Pointer; +typedef task_purgable_info_t = vm_purgeable_info; + +final class task_qos_policy extends ffi.Struct { + @task_latency_qos_t() + external int task_latency_qos_tier; + + @task_throughput_qos_t() + external int task_throughput_qos_tier; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int task_latency_qos_tier, + required int task_throughput_qos_tier, + }) => $allocator() + ..ref.task_latency_qos_tier = task_latency_qos_tier + ..ref.task_throughput_qos_tier = task_throughput_qos_tier; +} + +typedef task_qos_policy_t = ffi.Pointer; +typedef task_read_t = mach_port_t; + +enum task_role { + TASK_RENICED(-1), + TASK_UNSPECIFIED(0), + TASK_FOREGROUND_APPLICATION(1), + TASK_BACKGROUND_APPLICATION(2), + TASK_CONTROL_APPLICATION(3), + TASK_GRAPHICS_SERVER(4), + TASK_THROTTLE_APPLICATION(5), + TASK_NONUI_APPLICATION(6), + TASK_DEFAULT_APPLICATION(7), + TASK_DARWINBG_APPLICATION(8), + TASK_USER_INIT_APPLICATION(9); + + final int value; + const task_role(this.value); + + static task_role fromValue(int value) => switch (value) { + -1 => TASK_RENICED, + 0 => TASK_UNSPECIFIED, + 1 => TASK_FOREGROUND_APPLICATION, + 2 => TASK_BACKGROUND_APPLICATION, + 3 => TASK_CONTROL_APPLICATION, + 4 => TASK_GRAPHICS_SERVER, + 5 => TASK_THROTTLE_APPLICATION, + 6 => TASK_NONUI_APPLICATION, + 7 => TASK_DEFAULT_APPLICATION, + 8 => TASK_DARWINBG_APPLICATION, + 9 => TASK_USER_INIT_APPLICATION, + _ => throw ArgumentError('Unknown value for task_role: $value'), + }; +} + +final class task_security_config_info extends ffi.Struct { + @ffi.Uint32() + external int config; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int config, + }) => $allocator()..ref.config = config; +} + +typedef task_security_config_info_t = ffi.Pointer; +typedef task_special_port_t = ffi.Int; +typedef Darttask_special_port_t = int; +typedef task_suspension_token_t = mach_port_t; +typedef task_t = mach_port_t; + +final class task_thread_times_info extends ffi.Struct { + external time_value_t user_time; + + external time_value_t system_time; +} + +typedef task_thread_times_info_data_t = task_thread_times_info; +typedef task_thread_times_info_t = ffi.Pointer; + +enum task_throughput_qos { + THROUGHPUT_QOS_TIER_UNSPECIFIED(0), + THROUGHPUT_QOS_TIER_0(16646145), + THROUGHPUT_QOS_TIER_1(16646146), + THROUGHPUT_QOS_TIER_2(16646147), + THROUGHPUT_QOS_TIER_3(16646148), + THROUGHPUT_QOS_TIER_4(16646149), + THROUGHPUT_QOS_TIER_5(16646150); + + final int value; + const task_throughput_qos(this.value); + + static task_throughput_qos fromValue(int value) => switch (value) { + 0 => THROUGHPUT_QOS_TIER_UNSPECIFIED, + 16646145 => THROUGHPUT_QOS_TIER_0, + 16646146 => THROUGHPUT_QOS_TIER_1, + 16646147 => THROUGHPUT_QOS_TIER_2, + 16646148 => THROUGHPUT_QOS_TIER_3, + 16646149 => THROUGHPUT_QOS_TIER_4, + 16646150 => THROUGHPUT_QOS_TIER_5, + _ => throw ArgumentError('Unknown value for task_throughput_qos: $value'), + }; +} + +typedef task_throughput_qos_t = integer_t; + +@ffi.Packed(4) +final class task_trace_memory_info extends ffi.Struct { + @ffi.Uint64() + external int user_memory_address; + + @ffi.Uint64() + external int buffer_size; + + @ffi.Uint64() + external int mailbox_array_size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int user_memory_address, + required int buffer_size, + required int mailbox_array_size, + }) => $allocator() + ..ref.user_memory_address = user_memory_address + ..ref.buffer_size = buffer_size + ..ref.mailbox_array_size = mailbox_array_size; +} + +typedef task_trace_memory_info_data_t = task_trace_memory_info; +typedef task_trace_memory_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_vm_info extends ffi.Struct { + @mach_vm_size_t() + external int virtual_size; + + @integer_t() + external int region_count; + + @integer_t() + external int page_size; + + @mach_vm_size_t() + external int resident_size; + + @mach_vm_size_t() + external int resident_size_peak; + + @mach_vm_size_t() + external int device; + + @mach_vm_size_t() + external int device_peak; + + @mach_vm_size_t() + external int internal; + + @mach_vm_size_t() + external int internal_peak; + + @mach_vm_size_t() + external int external; + + @mach_vm_size_t() + external int external_peak; + + @mach_vm_size_t() + external int reusable; + + @mach_vm_size_t() + external int reusable_peak; + + @mach_vm_size_t() + external int purgeable_volatile_pmap; + + @mach_vm_size_t() + external int purgeable_volatile_resident; + + @mach_vm_size_t() + external int purgeable_volatile_virtual; + + @mach_vm_size_t() + external int compressed; + + @mach_vm_size_t() + external int compressed_peak; + + @mach_vm_size_t() + external int compressed_lifetime; + + @mach_vm_size_t() + external int phys_footprint; + + @mach_vm_address_t() + external int min_address; + + @mach_vm_address_t() + external int max_address; + + @ffi.Int64() + external int ledger_phys_footprint_peak; + + @ffi.Int64() + external int ledger_purgeable_nonvolatile; + + @ffi.Int64() + external int ledger_purgeable_novolatile_compressed; + + @ffi.Int64() + external int ledger_purgeable_volatile; + + @ffi.Int64() + external int ledger_purgeable_volatile_compressed; + + @ffi.Int64() + external int ledger_tag_network_nonvolatile; + + @ffi.Int64() + external int ledger_tag_network_nonvolatile_compressed; + + @ffi.Int64() + external int ledger_tag_network_volatile; + + @ffi.Int64() + external int ledger_tag_network_volatile_compressed; + + @ffi.Int64() + external int ledger_tag_media_footprint; + + @ffi.Int64() + external int ledger_tag_media_footprint_compressed; + + @ffi.Int64() + external int ledger_tag_media_nofootprint; + + @ffi.Int64() + external int ledger_tag_media_nofootprint_compressed; + + @ffi.Int64() + external int ledger_tag_graphics_footprint; + + @ffi.Int64() + external int ledger_tag_graphics_footprint_compressed; + + @ffi.Int64() + external int ledger_tag_graphics_nofootprint; + + @ffi.Int64() + external int ledger_tag_graphics_nofootprint_compressed; + + @ffi.Int64() + external int ledger_tag_neural_footprint; + + @ffi.Int64() + external int ledger_tag_neural_footprint_compressed; + + @ffi.Int64() + external int ledger_tag_neural_nofootprint; + + @ffi.Int64() + external int ledger_tag_neural_nofootprint_compressed; + + @ffi.Uint64() + external int limit_bytes_remaining; + + @integer_t() + external int decompressions; + + @ffi.Int64() + external int ledger_swapins; + + @ffi.Int64() + external int ledger_tag_neural_nofootprint_total; + + @ffi.Int64() + external int ledger_tag_neural_nofootprint_peak; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int virtual_size, + required int region_count, + required int page_size, + required int resident_size, + required int resident_size_peak, + required int device, + required int device_peak, + required int internal, + required int internal_peak, + required int external, + required int external_peak, + required int reusable, + required int reusable_peak, + required int purgeable_volatile_pmap, + required int purgeable_volatile_resident, + required int purgeable_volatile_virtual, + required int compressed, + required int compressed_peak, + required int compressed_lifetime, + required int phys_footprint, + required int min_address, + required int max_address, + required int ledger_phys_footprint_peak, + required int ledger_purgeable_nonvolatile, + required int ledger_purgeable_novolatile_compressed, + required int ledger_purgeable_volatile, + required int ledger_purgeable_volatile_compressed, + required int ledger_tag_network_nonvolatile, + required int ledger_tag_network_nonvolatile_compressed, + required int ledger_tag_network_volatile, + required int ledger_tag_network_volatile_compressed, + required int ledger_tag_media_footprint, + required int ledger_tag_media_footprint_compressed, + required int ledger_tag_media_nofootprint, + required int ledger_tag_media_nofootprint_compressed, + required int ledger_tag_graphics_footprint, + required int ledger_tag_graphics_footprint_compressed, + required int ledger_tag_graphics_nofootprint, + required int ledger_tag_graphics_nofootprint_compressed, + required int ledger_tag_neural_footprint, + required int ledger_tag_neural_footprint_compressed, + required int ledger_tag_neural_nofootprint, + required int ledger_tag_neural_nofootprint_compressed, + required int limit_bytes_remaining, + required int decompressions, + required int ledger_swapins, + required int ledger_tag_neural_nofootprint_total, + required int ledger_tag_neural_nofootprint_peak, + }) => $allocator() + ..ref.virtual_size = virtual_size + ..ref.region_count = region_count + ..ref.page_size = page_size + ..ref.resident_size = resident_size + ..ref.resident_size_peak = resident_size_peak + ..ref.device = device + ..ref.device_peak = device_peak + ..ref.internal = internal + ..ref.internal_peak = internal_peak + ..ref.external = external + ..ref.external_peak = external_peak + ..ref.reusable = reusable + ..ref.reusable_peak = reusable_peak + ..ref.purgeable_volatile_pmap = purgeable_volatile_pmap + ..ref.purgeable_volatile_resident = purgeable_volatile_resident + ..ref.purgeable_volatile_virtual = purgeable_volatile_virtual + ..ref.compressed = compressed + ..ref.compressed_peak = compressed_peak + ..ref.compressed_lifetime = compressed_lifetime + ..ref.phys_footprint = phys_footprint + ..ref.min_address = min_address + ..ref.max_address = max_address + ..ref.ledger_phys_footprint_peak = ledger_phys_footprint_peak + ..ref.ledger_purgeable_nonvolatile = ledger_purgeable_nonvolatile + ..ref.ledger_purgeable_novolatile_compressed = + ledger_purgeable_novolatile_compressed + ..ref.ledger_purgeable_volatile = ledger_purgeable_volatile + ..ref.ledger_purgeable_volatile_compressed = + ledger_purgeable_volatile_compressed + ..ref.ledger_tag_network_nonvolatile = ledger_tag_network_nonvolatile + ..ref.ledger_tag_network_nonvolatile_compressed = + ledger_tag_network_nonvolatile_compressed + ..ref.ledger_tag_network_volatile = ledger_tag_network_volatile + ..ref.ledger_tag_network_volatile_compressed = + ledger_tag_network_volatile_compressed + ..ref.ledger_tag_media_footprint = ledger_tag_media_footprint + ..ref.ledger_tag_media_footprint_compressed = + ledger_tag_media_footprint_compressed + ..ref.ledger_tag_media_nofootprint = ledger_tag_media_nofootprint + ..ref.ledger_tag_media_nofootprint_compressed = + ledger_tag_media_nofootprint_compressed + ..ref.ledger_tag_graphics_footprint = ledger_tag_graphics_footprint + ..ref.ledger_tag_graphics_footprint_compressed = + ledger_tag_graphics_footprint_compressed + ..ref.ledger_tag_graphics_nofootprint = ledger_tag_graphics_nofootprint + ..ref.ledger_tag_graphics_nofootprint_compressed = + ledger_tag_graphics_nofootprint_compressed + ..ref.ledger_tag_neural_footprint = ledger_tag_neural_footprint + ..ref.ledger_tag_neural_footprint_compressed = + ledger_tag_neural_footprint_compressed + ..ref.ledger_tag_neural_nofootprint = ledger_tag_neural_nofootprint + ..ref.ledger_tag_neural_nofootprint_compressed = + ledger_tag_neural_nofootprint_compressed + ..ref.limit_bytes_remaining = limit_bytes_remaining + ..ref.decompressions = decompressions + ..ref.ledger_swapins = ledger_swapins + ..ref.ledger_tag_neural_nofootprint_total = + ledger_tag_neural_nofootprint_total + ..ref.ledger_tag_neural_nofootprint_peak = + ledger_tag_neural_nofootprint_peak; +} + +typedef task_vm_info_data_t = task_vm_info; +typedef task_vm_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class task_wait_state_info extends ffi.Struct { + @ffi.Uint64() + external int total_wait_state_time; + + @ffi.Uint64() + external int total_wait_sfi_state_time; + + @ffi.Array.multi([4]) + external ffi.Array _reserved; +} + +typedef task_wait_state_info_data_t = task_wait_state_info; +typedef task_wait_state_info_t = ffi.Pointer; +typedef task_zone_info_array_t = ffi.Pointer; + +final class task_zone_info_data extends ffi.Struct { + @ffi.Uint64() + external int tzi_count; + + @ffi.Uint64() + external int tzi_cur_size; + + @ffi.Uint64() + external int tzi_max_size; + + @ffi.Uint64() + external int tzi_elem_size; + + @ffi.Uint64() + external int tzi_alloc_size; + + @ffi.Uint64() + external int tzi_sum_size; + + @ffi.Uint64() + external int tzi_exhaustible; + + @ffi.Uint64() + external int tzi_collectable; + + @ffi.Uint64() + external int tzi_caller_acct; + + @ffi.Uint64() + external int tzi_task_alloc; + + @ffi.Uint64() + external int tzi_task_free; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tzi_count, + required int tzi_cur_size, + required int tzi_max_size, + required int tzi_elem_size, + required int tzi_alloc_size, + required int tzi_sum_size, + required int tzi_exhaustible, + required int tzi_collectable, + required int tzi_caller_acct, + required int tzi_task_alloc, + required int tzi_task_free, + }) => $allocator() + ..ref.tzi_count = tzi_count + ..ref.tzi_cur_size = tzi_cur_size + ..ref.tzi_max_size = tzi_max_size + ..ref.tzi_elem_size = tzi_elem_size + ..ref.tzi_alloc_size = tzi_alloc_size + ..ref.tzi_sum_size = tzi_sum_size + ..ref.tzi_exhaustible = tzi_exhaustible + ..ref.tzi_collectable = tzi_collectable + ..ref.tzi_caller_acct = tzi_caller_acct + ..ref.tzi_task_alloc = tzi_task_alloc + ..ref.tzi_task_free = tzi_task_free; +} + +typedef task_zone_info_t = task_zone_info_data; +typedef tcp_cc = __uint32_t; + +final class tcp_connection_info extends ffi.Opaque {} + +typedef tcp_seq = __uint32_t; + +final class tcphdr extends ffi.Opaque {} + +const int teScrapSizeErr = -501; + +const int telAPattNotSupp = -10016; + +const int telAlreadyOpen = -10070; + +const int telAutoAnsNotOn = -10112; + +const int telBadAPattErr = -10015; + +const int telBadBearerType = -10058; + +const int telBadCAErr = -10003; + +const int telBadCodeResource = -10108; + +const int telBadDNDType = -10023; + +const int telBadDNErr = -10002; + +const int telBadDNType = -10050; + +const int telBadDisplayMode = -10062; + +const int telBadFeatureID = -10053; + +const int telBadFunction = -10091; + +const int telBadFwdType = -10054; + +const int telBadHTypeErr = -10010; + +const int telBadHandErr = -10004; + +const int telBadIndex = -10017; + +const int telBadIntExt = -10021; + +const int telBadIntercomID = -10052; + +const int telBadLevelErr = -10012; + +const int telBadPageID = -10051; + +const int telBadParkID = -10056; + +const int telBadPickupGroupID = -10055; + +const int telBadProcErr = -10005; + +const int telBadProcID = -10110; + +const int telBadRate = -10059; + +const int telBadSWErr = -10114; + +const int telBadSampleRate = -10115; + +const int telBadSelect = -10057; + +const int telBadStateErr = -10019; + +const int telBadTermErr = -10001; + +const int telBadVTypeErr = -10013; + +const int telCANotAcceptable = -10080; + +const int telCANotDeflectable = -10082; + +const int telCANotRejectable = -10081; + +const int telCAUnavail = -10006; + +const int telCBErr = -10046; + +const int telConfErr = -10042; + +const int telConfLimitErr = -10040; + +const int telConfLimitExceeded = -10047; + +const int telConfNoLimit = -10041; + +const int telConfRej = -10043; + +const int telDNDTypeNotSupp = -10024; + +const int telDNTypeNotSupp = -10060; + +const int telDetAlreadyOn = -10113; + +const int telDeviceNotFound = -10109; + +const int telDisplayModeNotSupp = -10063; + +const int telFeatActive = -10032; + +const int telFeatNotAvail = -10031; + +const int telFeatNotSub = -10030; + +const int telFeatNotSupp = -10033; + +const int telFwdTypeNotSupp = -10061; + +const int telGenericError = -1; + +const int telHTypeNotSupp = -10011; + +const int telIndexNotSupp = -10018; + +const int telInitFailed = -10107; + +const int telIntExtNotSupp = -10022; + +const int telNoCallbackRef = -10064; + +const int telNoCommFolder = -10106; + +const int telNoErr = 0; + +const int telNoMemErr = -10007; + +const int telNoOpenErr = -10008; + +const int telNoSuchTool = -10102; + +const int telNoTools = 8; + +const int telNotEnoughdspBW = -10116; + +const int telPBErr = -10090; + +const int telStateNotSupp = -10020; + +const int telStillNeeded = -10071; + +const int telTermNotOpen = -10072; + +const int telTransferErr = -10044; + +const int telTransferRej = -10045; + +const int telUnknownErr = -10103; + +const int telVTypeNotSupp = -10014; + +const int telValidateFailed = -10111; + +const int textParserBadParamErr = -5220; + +const int textParserBadParserObjectErr = -5223; + +const int textParserBadTextEncodingErr = -5227; + +const int textParserBadTextLanguageErr = -5226; + +const int textParserBadTokenValueErr = -5222; + +const int textParserNoMoreTextErr = -5225; + +const int textParserNoMoreTokensErr = -5229; + +const int textParserNoSuchTokenFoundErr = -5228; + +const int textParserObjectNotFoundErr = -5221; + +const int textParserParamErr = -5224; + +const int themeBadCursorIndexErr = -30565; + +const int themeBadTextColorErr = -30563; + +const int themeHasNoAccentsErr = -30564; + +const int themeInvalidBrushErr = -30560; + +const int themeMonitorDepthNotSupportedErr = -30567; + +const int themeNoAppropriateBrushErr = -30568; + +const int themeProcessNotRegisteredErr = -30562; + +const int themeProcessRegisteredErr = -30561; + +const int themeScriptFontNotFoundErr = -30566; + +const int threadBadAppContextErr = -616; + +const int threadNotFoundErr = -618; + +const int threadProtocolErr = -619; + +const int threadTooManyReqsErr = -617; + +typedef thread_act_array_t = ffi.Pointer; +typedef thread_act_port_array_t = thread_act_array_t; +typedef thread_act_port_t = thread_act_t; +typedef thread_act_t = mach_port_t; + +final class thread_affinity_policy extends ffi.Struct { + @integer_t() + external int affinity_tag; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int affinity_tag, + }) => $allocator()..ref.affinity_tag = affinity_tag; +} + +typedef thread_affinity_policy_data_t = thread_affinity_policy; +typedef thread_affinity_policy_t = ffi.Pointer; +typedef thread_array_t = ffi.Pointer; + +final class thread_background_policy extends ffi.Struct { + @integer_t() + external int priority; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int priority, + }) => $allocator()..ref.priority = priority; +} + +typedef thread_background_policy_data_t = thread_background_policy; +typedef thread_background_policy_t = ffi.Pointer; + +final class thread_basic_info extends ffi.Struct { + external time_value_t user_time; + + external time_value_t system_time; + + @integer_t() + external int cpu_usage; + + @policy_t() + external int policy; + + @integer_t() + external int run_state; + + @integer_t() + external int flags; + + @integer_t() + external int suspend_count; + + @integer_t() + external int sleep_time; +} + +typedef thread_basic_info_data_t = thread_basic_info; +typedef thread_basic_info_t = ffi.Pointer; + +final class thread_extended_info extends ffi.Struct { + @ffi.Uint64() + external int pth_user_time; + + @ffi.Uint64() + external int pth_system_time; + + @ffi.Int32() + external int pth_cpu_usage; + + @ffi.Int32() + external int pth_policy; + + @ffi.Int32() + external int pth_run_state; + + @ffi.Int32() + external int pth_flags; + + @ffi.Int32() + external int pth_sleep_time; + + @ffi.Int32() + external int pth_curpri; + + @ffi.Int32() + external int pth_priority; + + @ffi.Int32() + external int pth_maxpriority; + + @ffi.Array.multi([64]) + external ffi.Array pth_name; +} + +typedef thread_extended_info_data_t = thread_extended_info; +typedef thread_extended_info_t = ffi.Pointer; + +final class thread_extended_policy extends ffi.Struct { + @boolean_t() + external int timeshare; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int timeshare, + }) => $allocator()..ref.timeshare = timeshare; +} + +typedef thread_extended_policy_data_t = thread_extended_policy; +typedef thread_extended_policy_t = ffi.Pointer; +typedef thread_flavor_t = natural_t; + +final class thread_identifier_info extends ffi.Struct { + @ffi.Uint64() + external int thread_id; + + @ffi.Uint64() + external int thread_handle; + + @ffi.Uint64() + external int dispatch_qaddr; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int thread_id, + required int thread_handle, + required int dispatch_qaddr, + }) => $allocator() + ..ref.thread_id = thread_id + ..ref.thread_handle = thread_handle + ..ref.dispatch_qaddr = dispatch_qaddr; +} + +typedef thread_identifier_info_data_t = thread_identifier_info; +typedef thread_identifier_info_t = ffi.Pointer; +typedef thread_info_t = ffi.Pointer; +typedef thread_inspect_t = mach_port_t; + +final class thread_latency_qos_policy extends ffi.Struct { + @thread_latency_qos_t() + external int thread_latency_qos_tier; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int thread_latency_qos_tier, + }) => + $allocator() + ..ref.thread_latency_qos_tier = thread_latency_qos_tier; +} + +typedef thread_latency_qos_policy_data_t = thread_latency_qos_policy; +typedef thread_latency_qos_policy_t = ffi.Pointer; +typedef thread_latency_qos_t = integer_t; +typedef thread_policy_flavor_t = natural_t; +typedef thread_policy_t = ffi.Pointer; +typedef thread_port_array_t = thread_array_t; +typedef thread_port_t = thread_t; + +final class thread_precedence_policy extends ffi.Struct { + @integer_t() + external int importance; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int importance, + }) => $allocator()..ref.importance = importance; +} + +typedef thread_precedence_policy_data_t = thread_precedence_policy; +typedef thread_precedence_policy_t = ffi.Pointer; +typedef thread_read_t = mach_port_t; + +final class thread_standard_policy extends ffi.Struct { + @natural_t() + external int no_data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int no_data, + }) => $allocator()..ref.no_data = no_data; +} + +typedef thread_standard_policy_data_t = thread_standard_policy; +typedef thread_standard_policy_t = ffi.Pointer; +typedef thread_state_flavor_array_t = ffi.Pointer; +typedef thread_state_flavor_t = ffi.Int; +typedef Dartthread_state_flavor_t = int; +typedef thread_state_t = ffi.Pointer; +typedef thread_t = mach_port_t; + +final class thread_throughput_qos_policy extends ffi.Struct { + @thread_throughput_qos_t() + external int thread_throughput_qos_tier; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int thread_throughput_qos_tier, + }) => + $allocator() + ..ref.thread_throughput_qos_tier = thread_throughput_qos_tier; +} + +typedef thread_throughput_qos_policy_data_t = thread_throughput_qos_policy; +typedef thread_throughput_qos_policy_t = + ffi.Pointer; +typedef thread_throughput_qos_t = integer_t; + +final class thread_time_constraint_policy extends ffi.Struct { + @ffi.Uint32() + external int period; + + @ffi.Uint32() + external int computation; + + @ffi.Uint32() + external int constraint; + + @boolean_t() + external int preemptible; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int period, + required int computation, + required int constraint, + required int preemptible, + }) => $allocator() + ..ref.period = period + ..ref.computation = computation + ..ref.constraint = constraint + ..ref.preemptible = preemptible; +} + +typedef thread_time_constraint_policy_data_t = thread_time_constraint_policy; +typedef thread_time_constraint_policy_t = + ffi.Pointer; +@Deprecated('Deprecated') +const int tilde = 247; + +const int timeCycle12 = 255; + +const int timeCycle24 = 0; + +const int timeCycleZero = 1; + +const int timeNotInMedia = -2032; + +const int timeNotInTrack = -2031; + +const int timeNotInViewErr = -30546; + +typedef time_t = __darwin_time_t; + +final class time_value extends ffi.Struct { + @integer_t() + external int seconds; + + @integer_t() + external int microseconds; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int seconds, + required int microseconds, + }) => $allocator() + ..ref.seconds = seconds + ..ref.microseconds = microseconds; +} + +typedef time_value_t = time_value; + +final class timespec extends ffi.Struct { + @__darwin_time_t() + external int tv_sec; + + @ffi.Long() + external int tv_nsec; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tv_sec, + required int tv_nsec, + }) => $allocator() + ..ref.tv_sec = tv_sec + ..ref.tv_nsec = tv_nsec; +} + +final class timeval extends ffi.Struct { + @__darwin_time_t() + external int tv_sec; + + @__darwin_suseconds_t() + external int tv_usec; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tv_sec, + required int tv_usec, + }) => $allocator() + ..ref.tv_sec = tv_sec + ..ref.tv_usec = tv_usec; +} + +final class timeval64 extends ffi.Struct { + @__int64_t() + external int tv_sec; + + @__int64_t() + external int tv_usec; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tv_sec, + required int tv_usec, + }) => $allocator() + ..ref.tv_sec = tv_sec + ..ref.tv_usec = tv_usec; +} + +final class timezone extends ffi.Struct { + @ffi.Int() + external int tz_minuteswest; + + @ffi.Int() + external int tz_dsttime; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tz_minuteswest, + required int tz_dsttime, + }) => $allocator() + ..ref.tz_minuteswest = tz_minuteswest + ..ref.tz_dsttime = tz_dsttime; +} + +const int tk0BadErr = -76; + +enum tls_ciphersuite_group_t { + tls_ciphersuite_group_default(0), + tls_ciphersuite_group_compatibility(1), + tls_ciphersuite_group_legacy(2), + tls_ciphersuite_group_ats(3), + tls_ciphersuite_group_ats_compatibility(4); + + final int value; + const tls_ciphersuite_group_t(this.value); + + static tls_ciphersuite_group_t fromValue(int value) => switch (value) { + 0 => tls_ciphersuite_group_default, + 1 => tls_ciphersuite_group_compatibility, + 2 => tls_ciphersuite_group_legacy, + 3 => tls_ciphersuite_group_ats, + 4 => tls_ciphersuite_group_ats_compatibility, + _ => throw ArgumentError( + 'Unknown value for tls_ciphersuite_group_t: $value', + ), + }; +} + +enum tls_ciphersuite_t { + tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA(10), + tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA(47), + tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA(53), + tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256(156), + tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384(157), + tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256(60), + tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256(61), + tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA(-16376), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA(-16375), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA(-16374), + tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA(-16366), + tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA(-16365), + tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA(-16364), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256(-16349), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384(-16348), + tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256(-16345), + tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384(-16344), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256(-16341), + tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384(-16340), + tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256(-16337), + tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384(-16336), + tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256(-13144), + tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256(-13143), + tls_ciphersuite_AES_128_GCM_SHA256(4865), + tls_ciphersuite_AES_256_GCM_SHA384(4866), + tls_ciphersuite_CHACHA20_POLY1305_SHA256(4867); + + final int value; + const tls_ciphersuite_t(this.value); + + static tls_ciphersuite_t fromValue(int value) => switch (value) { + 10 => tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA, + 47 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA, + 53 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA, + 156 => tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256, + 157 => tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384, + 60 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256, + 61 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256, + -16376 => tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, + -16375 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, + -16374 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, + -16366 => tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, + -16365 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA, + -16364 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA, + -16349 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, + -16348 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, + -16345 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256, + -16344 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384, + -16341 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, + -16340 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, + -16337 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256, + -16336 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384, + -13144 => tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, + -13143 => tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, + 4865 => tls_ciphersuite_AES_128_GCM_SHA256, + 4866 => tls_ciphersuite_AES_256_GCM_SHA384, + 4867 => tls_ciphersuite_CHACHA20_POLY1305_SHA256, + _ => throw ArgumentError('Unknown value for tls_ciphersuite_t: $value'), + }; +} + +enum tls_protocol_version_t { + tls_protocol_version_TLSv10(769), + tls_protocol_version_TLSv11(770), + tls_protocol_version_TLSv12(771), + tls_protocol_version_TLSv13(772), + tls_protocol_version_DTLSv10(-257), + tls_protocol_version_DTLSv12(-259); + + final int value; + const tls_protocol_version_t(this.value); + + static tls_protocol_version_t fromValue(int value) => switch (value) { + 769 => tls_protocol_version_TLSv10, + 770 => tls_protocol_version_TLSv11, + 771 => tls_protocol_version_TLSv12, + 772 => tls_protocol_version_TLSv13, + -257 => tls_protocol_version_DTLSv10, + -259 => tls_protocol_version_DTLSv12, + _ => throw ArgumentError( + 'Unknown value for tls_protocol_version_t: $value', + ), + }; +} + +final class tm extends ffi.Struct { + @ffi.Int() + external int tm_sec; + + @ffi.Int() + external int tm_min; + + @ffi.Int() + external int tm_hour; + + @ffi.Int() + external int tm_mday; + + @ffi.Int() + external int tm_mon; + + @ffi.Int() + external int tm_year; + + @ffi.Int() + external int tm_wday; + + @ffi.Int() + external int tm_yday; + + @ffi.Int() + external int tm_isdst; + + @ffi.Long() + external int tm_gmtoff; + + external ffi.Pointer tm_zone; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int tm_sec, + required int tm_min, + required int tm_hour, + required int tm_mday, + required int tm_mon, + required int tm_year, + required int tm_wday, + required int tm_yday, + required int tm_isdst, + required int tm_gmtoff, + required ffi.Pointer tm_zone, + }) => $allocator() + ..ref.tm_sec = tm_sec + ..ref.tm_min = tm_min + ..ref.tm_hour = tm_hour + ..ref.tm_mday = tm_mday + ..ref.tm_mon = tm_mon + ..ref.tm_year = tm_year + ..ref.tm_wday = tm_wday + ..ref.tm_yday = tm_yday + ..ref.tm_isdst = tm_isdst + ..ref.tm_gmtoff = tm_gmtoff + ..ref.tm_zone = tm_zone; +} + +const int tmfoErr = -42; + +const int tmwdoErr = -121; + +const int togChar12HourBit = 30; + +const int togCharZCycleBit = 29; + +const int togDelta12HourBit = 28; + +const int toggleBadChar = 4; + +const int toggleBadDelta = 3; + +const int toggleBadField = 2; + +const int toggleBadNum = 6; + +const int toggleErr3 = 7; + +const int toggleErr4 = 8; + +const int toggleErr5 = 9; + +const int toggleOK = 1; + +const int toggleOutOfRange = 7; + +const int toggleUndefined = 0; + +const int toggleUnknown = 5; + +const int tokDecPoint = 14; + +const int tokEMinus = 16; + +const int tokEPlus = 15; + +const int tokEscape = 13; + +const int tokLeadPlacer = 3; + +const int tokLeader = 4; + +const int tokLeftQuote = 1; + +const int tokMaxSymbols = 31; + +const int tokMinusSign = 9; + +const int tokNonLeader = 5; + +const int tokPercent = 7; + +const int tokPlusSign = 8; + +const int tokReserved = 11; + +const int tokRightQuote = 2; + +const int tokSeparator = 12; + +const int tokThousands = 10; + +const int tokZeroLead = 6; + +@Deprecated('Deprecated') +const int token1Quote = 52; + +@Deprecated('Deprecated') +const int token2Equal = 38; + +@Deprecated('Deprecated') +const int token2Quote = 51; + +@Deprecated('Deprecated') +const int tokenAlpha = 4; + +@Deprecated('Deprecated') +const int tokenAltNum = 11; + +@Deprecated('Deprecated') +const int tokenAltReal = 13; + +@Deprecated('Deprecated') +const int tokenAmpersand = 57; + +@Deprecated('Deprecated') +const int tokenAsterisk = 26; + +@Deprecated('Deprecated') +const int tokenAtSign = 58; + +@Deprecated('Deprecated') +const int tokenBackSlash = 30; + +@Deprecated('Deprecated') +const int tokenBar = 59; + +@Deprecated('Deprecated') +const int tokenCapPi = 66; + +@Deprecated('Deprecated') +const int tokenCarat = 55; + +@Deprecated('Deprecated') +const int tokenCaret = 55; + +@Deprecated('Deprecated') +const int tokenCenterDot = 78; + +@Deprecated('Deprecated') +const int tokenColon = 68; + +@Deprecated('Deprecated') +const int tokenColonEqual = 39; + +@Deprecated('Deprecated') +const int tokenComma = 45; + +@Deprecated('Deprecated') +const int tokenDivide = 27; + +@Deprecated('Deprecated') +const int tokenDollar = 70; + +@Deprecated('Deprecated') +const int tokenEllipsis = 77; + +@Deprecated('Deprecated') +const int tokenEmpty = -1; + +@Deprecated('Deprecated') +const int tokenEqual = 33; + +const int tokenErr = 33024; + +@Deprecated('Deprecated') +const int tokenEscape = 10; + +@Deprecated('Deprecated') +const int tokenExclam = 43; + +@Deprecated('Deprecated') +const int tokenExclamEqual = 42; + +@Deprecated('Deprecated') +const int tokenFraction = 72; + +@Deprecated('Deprecated') +const int tokenGreat = 32; + +@Deprecated('Deprecated') +const int tokenGreatEqual1 = 37; + +@Deprecated('Deprecated') +const int tokenGreatEqual2 = 36; + +@Deprecated('Deprecated') +const int tokenHash = 69; + +@Deprecated('Deprecated') +const int tokenInfinity = 67; + +@Deprecated('Deprecated') +const int tokenIntegral = 64; + +@Deprecated('Deprecated') +const int tokenIntl = 4; + +@Deprecated('Deprecated') +const int tokenIntlCurrency = 73; + +@Deprecated('Deprecated') +const int tokenLeft1Quote = 49; + +@Deprecated('Deprecated') +const int tokenLeft2Quote = 47; + +@Deprecated('Deprecated') +const int tokenLeftBracket = 18; + +@Deprecated('Deprecated') +const int tokenLeftComment = 7; + +@Deprecated('Deprecated') +const int tokenLeftCurly = 20; + +@Deprecated('Deprecated') +const int tokenLeftEnclose = 22; + +@Deprecated('Deprecated') +const int tokenLeftLit = 2; + +@Deprecated('Deprecated') +const int tokenLeftParen = 16; + +@Deprecated('Deprecated') +const int tokenLeftSingGuillemet = 74; + +@Deprecated('Deprecated') +const int tokenLess = 31; + +@Deprecated('Deprecated') +const int tokenLessEqual1 = 35; + +@Deprecated('Deprecated') +const int tokenLessEqual2 = 34; + +@Deprecated('Deprecated') +const int tokenLessGreat = 41; + +@Deprecated('Deprecated') +const int tokenLiteral = 9; + +@Deprecated('Deprecated') +const int tokenMicro = 65; + +@Deprecated('Deprecated') +const int tokenMinus = 25; + +@Deprecated('Deprecated') +const int tokenNewLine = 6; + +@Deprecated('Deprecated') +const int tokenNil = 127; + +@Deprecated('Deprecated') +const int tokenNoBreakSpace = 71; + +@Deprecated('Deprecated') +const int tokenNotEqual = 40; + +@Deprecated('Deprecated') +const int tokenNumeric = 5; + +@Deprecated('Deprecated') +const int tokenOK = 0; + +@Deprecated('Deprecated') +const int tokenOverflow = 1; + +@Deprecated('Deprecated') +const int tokenPerThousand = 76; + +@Deprecated('Deprecated') +const int tokenPercent = 54; + +@Deprecated('Deprecated') +const int tokenPeriod = 46; + +@Deprecated('Deprecated') +const int tokenPi = 61; + +@Deprecated('Deprecated') +const int tokenPlus = 24; + +@Deprecated('Deprecated') +const int tokenPlusMinus = 28; + +@Deprecated('Deprecated') +const int tokenQuestion = 60; + +@Deprecated('Deprecated') +const int tokenRealNum = 12; + +@Deprecated('Deprecated') +const int tokenReserve1 = 14; + +@Deprecated('Deprecated') +const int tokenReserve2 = 15; + +@Deprecated('Deprecated') +const int tokenRight1Quote = 50; + +@Deprecated('Deprecated') +const int tokenRight2Quote = 48; + +@Deprecated('Deprecated') +const int tokenRightBracket = 19; + +@Deprecated('Deprecated') +const int tokenRightComment = 8; + +@Deprecated('Deprecated') +const int tokenRightCurly = 21; + +@Deprecated('Deprecated') +const int tokenRightEnclose = 23; + +@Deprecated('Deprecated') +const int tokenRightLit = 3; + +@Deprecated('Deprecated') +const int tokenRightParen = 17; + +@Deprecated('Deprecated') +const int tokenRightSingGuillemet = 75; + +@Deprecated('Deprecated') +const int tokenRoot = 62; + +@Deprecated('Deprecated') +const int tokenSemicolon = 53; + +@Deprecated('Deprecated') +const int tokenSigma = 63; + +@Deprecated('Deprecated') +const int tokenSlash = 29; + +@Deprecated('Deprecated') +const int tokenTilda = 44; + +@Deprecated('Deprecated') +const int tokenTilde = 44; + +@Deprecated('Deprecated') +const int tokenUnderline = 56; + +@Deprecated('Deprecated') +const int tokenUnknown = 0; + +@Deprecated('Deprecated') +const int tokenWhite = 1; + +typedef token_t = au_token; + +const int tooManyReqs = -1097; + +const int tooManySeps = 32; + +const int tooManySkts = -1098; + +const int trackIDNotFound = -2029; + +const int trackNotInMovie = -2030; + +const int trashIconResource = -3993; + +const int true$ = 1; + +@Deprecated('Deprecated') +const int true32b = 1; + +const int tsmAlreadyRegisteredErr = -2503; + +const int tsmCantChangeForcedClassStateErr = -2530; + +const int tsmCantOpenComponentErr = -2509; + +const int tsmComponentAlreadyOpenErr = -2515; + +const int tsmComponentNoErr = 0; + +const int tsmComponentPropertyNotFoundErr = -2532; + +const int tsmComponentPropertyUnsupportedErr = -2531; + +const int tsmDefaultIsNotInputMethodErr = -2524; + +const int tsmDocNotActiveErr = -2507; + +const int tsmDocPropertyBufferTooSmallErr = -2529; + +const int tsmDocPropertyNotFoundErr = -2528; + +const int tsmDocumentOpenErr = -2511; + +const int tsmInputMethodIsOldErr = -2516; + +const int tsmInputMethodNotFoundErr = -2501; + +const int tsmInputModeChangeFailedErr = -2533; + +const int tsmInvalidContext = -2520; + +const int tsmInvalidDocIDErr = -2505; + +const int tsmNeverRegisteredErr = -2504; + +const int tsmNoHandler = -2521; + +const int tsmNoMoreTokens = -2522; + +const int tsmNoOpenTSErr = -2508; + +const int tsmNoStem = -2523; + +const int tsmNotAnAppErr = -2502; + +const int tsmScriptHasNoIMErr = -2517; + +const int tsmTSHasNoMenuErr = -2513; + +const int tsmTSMDocBusyErr = -2506; + +const int tsmTSNotOpenErr = -2514; + +const int tsmTextServiceNotFoundErr = -2510; + +const int tsmUnknownErr = -2519; + +const int tsmUnsupScriptLanguageErr = -2500; + +const int tsmUnsupportedTypeErr = -2518; + +const int tsmUseInputWindowErr = -2512; + +const int ttDisabled = 1; + +const int ttLabel1 = 256; + +const int ttLabel2 = 512; + +const int ttLabel3 = 768; + +const int ttLabel4 = 1024; + +const int ttLabel5 = 1280; + +const int ttLabel6 = 1536; + +const int ttLabel7 = 1792; + +const int ttNone = 0; + +const int ttOffline = 2; + +const int ttOpen = 3; + +const int ttSelected = 16384; + +const int ttSelectedDisabled = 16385; + +const int ttSelectedOffline = 16386; + +const int ttSelectedOpen = 16387; + +const int tuneParseOSErr = -2087; + +const int tunePlayerFullOSErr = -2086; + +const int twoSideErr = -78; + +const int type128BitFloatingPoint = 1818518124; + +const int typeAEList = 1818850164; + +const int typeAERecord = 1919247215; + +const int typeAEText = 1951684692; + +const int typeAbsoluteOrdinal = 1633842031; + +const int typeAlias = 1634494835; + +const int typeAppParameters = 1634758753; + +const int typeApplSignature = 1936287598; + +const int typeAppleEvent = 1634039412; + +const int typeApplicationBundleID = 1651863140; + +const int typeApplicationURL = 1634759276; + +const int typeArc = 1667330659; + +const int typeAuditToken = 1953459054; + +const int typeBest = 1650815860; + +const int typeBookmarkData = 1651339883; + +const int typeBoolean = 1651470188; + +const int typeCFAbsoluteTime = 1667654004; + +const int typeCFArrayRef = 1667654002; + +const int typeCFAttributedStringRef = 1667654003; + +const int typeCFBooleanRef = 1667658854; + +const int typeCFDictionaryRef = 1667654755; + +const int typeCFMutableArrayRef = 1667657057; + +const int typeCFMutableAttributedStringRef = 1667653985; + +const int typeCFMutableDictionaryRef = 1667657060; + +const int typeCFMutableStringRef = 1667657075; + +const int typeCFNumberRef = 1667657314; + +const int typeCFStringRef = 1667658612; + +const int typeCFTypeRef = 1667658873; + +const int typeCString = 1668510834; + +const int typeCell = 1667458412; + +const int typeCentimeters = 1668117618; + +const int typeChar = 1413830740; + +const int typeClassInfo = 1734569065; + +const int typeColorTable = 1668051572; + +const int typeColumn = 1667460972; + +const int typeCompDescriptor = 1668116580; + +const int typeComponentInstance = 1668116585; + +const int typeCubicCentimeter = 1667460468; + +const int typeCubicFeet = 1667655028; + +const int typeCubicInches = 1668639086; + +const int typeCubicMeters = 1668113780; + +const int typeCubicYards = 1668903524; + +const int typeCurrentContainer = 1667460724; + +const int typeDashStyle = 1952735603; + +const int typeData = 1952740449; + +const int typeDecimalStruct = 1684366189; + +const int typeDegreesC = 1684367203; + +const int typeDegreesF = 1684367206; + +const int typeDegreesK = 1684367211; + +const int typeDrawingArea = 1667527287; + +const int typeEPS = 1162892064; + +const int typeElemInfo = 1701603694; + +const int typeEncodedString = 1701733235; + +const int typeEnumerated = 1701737837; + +const int typeEnumeration = 1701737837; + +const int typeEventInfo = 1702259054; + +const int typeEventRecord = 1702261347; + +const int typeEventRef = 1702261350; + +const int typeFSRef = 1718841958; + +const int typeFalse = 1717660787; + +const int typeFeet = 1717921140; + +const int typeFileURL = 1718973036; + +const int typeFinderWindow = 1719101806; + +const int typeFixed = 1718188132; + +const int typeFixedPoint = 1718644340; + +const int typeFixedRectangle = 1718772596; + +const int typeGIF = 1195984486; + +const int typeGallons = 1734437998; + +const int typeGlyphInfoArray = 1735158113; + +const int typeGrams = 1735549293; + +const int typeGraphicLine = 1735158126; + +const int typeGraphicText = 1667724408; + +const int typeGroupedGraphic = 1668311395; + +const int typeHIMenu = 1836016234; + +const int typeHIWindow = 2003788394; + +const int typeIEEE32BitFloatingPoint = 1936289383; + +const int typeIEEE64BitFloatingPoint = 1685026146; + +const int typeISO8601DateTime = 1769172852; + +const int typeInches = 1768842088; + +const int typeIndexDescriptor = 1768842341; + +const int typeInsertionLoc = 1768846188; + +const int typeIntlText = 1769240692; + +const int typeIntlWritingCode = 1768846444; + +const int typeJPEG = 1246774599; + +const int typeKernelProcessID = 1802529124; + +const int typeKeyword = 1801812343; + +const int typeKilograms = 1801941613; + +const int typeKilometers = 1802335346; + +const int typeLiters = 1818850418; + +const int typeLogicalDescriptor = 1819240297; + +const int typeLongDateTime = 1818522656; + +const int typeLongFixed = 1818654820; + +const int typeLongFixedPoint = 1818652788; + +const int typeLongFixedRectangle = 1818653283; + +const int typeLongPoint = 1819307636; + +const int typeLongRectangle = 1819435892; + +const int typeLowLevelEventRecord = 1702261874; + +const int typeMachPort = 1886351988; + +const int typeMachineLoc = 1833725795; + +const int typeMeters = 1835365490; + +const int typeMiles = 1835625573; + +const int typeNull = 1853189228; + +const int typeOSLTokenList = 1869837420; + +const int typeObjectBeingExamined = 1702391150; + +const int typeObjectSpecifier = 1868720672; + +const int typeOffsetArray = 1868980601; + +const int typeOunces = 1870295840; + +const int typeOval = 1668249196; + +const int typePString = 1886614642; + +const int typeParamInfo = 1886218606; + +const int typePict = 1346978644; + +const int typePixMapMinus = 1953525101; + +const int typePixelMap = 1668311416; + +const int typePolygon = 1668310894; + +const int typePounds = 1818391328; + +const int typeProcessSerialNumber = 1886613024; + +const int typePropInfo = 1885957734; + +const int typeProperty = 1886547824; + +const int typePtr = 1886679584; + +const int typeQDPoint = 1363439732; + +const int typeQDRectangle = 1902408308; + +const int typeQDRegion = 1366452078; + +const int typeQuarts = 1903326323; + +const int typeRGB16 = 1953640758; + +const int typeRGB96 = 1953642806; + +const int typeRGBColor = 1666336578; + +const int typeRangeDescriptor = 1918987879; + +const int typeRectangle = 1668441443; + +const int typeRelativeDescriptor = 1919249440; + +const int typeReplyPortAttr = 1919250544; + +const int typeRotation = 1953656692; + +const int typeRoundedRectangle = 1668444771; + +const int typeRow = 1668444023; + +const int typeSInt16 = 1936224114; + +const int typeSInt32 = 1819242087; + +const int typeSInt64 = 1668246896; + +const int typeScrapStyles = 1937013100; + +const int typeScript = 1935896692; + +const int typeSectionH = 1936024436; + +const int typeSquareFeet = 1936811636; + +const int typeSquareKilometers = 1936812909; + +const int typeSquareMeters = 1936814701; + +const int typeSquareMiles = 1936813417; + +const int typeSquareYards = 1936816484; + +const int typeStyledText = 1398036564; + +const int typeStyledUnicodeText = 1937077368; + +const int typeSuiteInfo = 1937074542; + +const int typeTIFF = 1414088262; + +const int typeTable = 1668571756; + +const int typeText = 1413830740; + +const int typeTextRange = 1954050670; + +const int typeTextRangeArray = 1953653113; + +const int typeTextStyles = 1953723513; + +const int typeToken = 1953459045; + +const int typeTrue = 1953658213; + +const int typeType = 1954115685; + +const int typeUInt16 = 1970497650; + +const int typeUInt32 = 1835100014; + +const int typeUInt64 = 1969450861; + +const int typeUTF16ExternalRepresentation = 1970549046; + +const int typeUTF8Text = 1970562616; + +const int typeUnicodeText = 1970567284; + +const int typeVersion = 1986359923; + +const int typeWhoseDescriptor = 2003332979; + +const int typeWhoseRange = 2003988071; + +const int typeWildCard = 707406378; + +const int typeYards = 2036429412; + +typedef u_char = ffi.UnsignedChar; +typedef Dartu_char = int; +typedef u_int = ffi.UnsignedInt; +typedef Dartu_int = int; +typedef u_int16_t = ffi.UnsignedShort; +typedef Dartu_int16_t = int; +typedef u_int32_t = ffi.UnsignedInt; +typedef Dartu_int32_t = int; +typedef u_int64_t = ffi.UnsignedLongLong; +typedef Dartu_int64_t = int; +typedef u_int8_t = ffi.UnsignedChar; +typedef Dartu_int8_t = int; +typedef u_long = ffi.UnsignedLong; +typedef Dartu_long = int; +typedef u_quad_t = u_int64_t; +typedef u_short = ffi.UnsignedShort; +typedef Dartu_short = int; +typedef ucontext_t = __darwin_ucontext; +typedef uext_object_t = io_object_t; +typedef uid_t = __darwin_uid_t; +typedef uint = ffi.UnsignedInt; +typedef Dartuint = int; +typedef uint16 = ffi.Uint16; +typedef Dartuint16 = int; +typedef uint32 = ffi.Uint32; +typedef Dartuint32 = int; +typedef uint64 = ffi.Uint64; +typedef Dartuint64 = int; +typedef uint8 = ffi.Uint8; +typedef Dartuint8 = int; +typedef uint_fast16_t = ffi.Uint16; +typedef Dartuint_fast16_t = int; +typedef uint_fast32_t = ffi.Uint32; +typedef Dartuint_fast32_t = int; +typedef uint_fast64_t = ffi.Uint64; +typedef Dartuint_fast64_t = int; +typedef uint_fast8_t = ffi.Uint8; +typedef Dartuint_fast8_t = int; +typedef uint_least16_t = ffi.Uint16; +typedef Dartuint_least16_t = int; +typedef uint_least32_t = ffi.Uint32; +typedef Dartuint_least32_t = int; +typedef uint_least64_t = ffi.Uint64; +typedef Dartuint_least64_t = int; +typedef uint_least8_t = ffi.Uint8; +typedef Dartuint_least8_t = int; +typedef uintmax_t = ffi.UnsignedLong; +typedef Dartuintmax_t = int; + +const int underline = 4; + +const int undoDev = 9; + +typedef unichar = ffi.UnsignedShort; +typedef Dartunichar = int; + +const int unicodeBufErr = -8764; + +const int unicodeCharErr = -8763; + +const int unicodeChecksumErr = -8769; + +const int unicodeContextualErr = -8758; + +const int unicodeDirectionErr = -8759; + +const int unicodeElementErr = -8762; + +const int unicodeFallbacksErr = -8766; + +const int unicodeNoTableErr = -8768; + +const int unicodeNotFoundErr = -8761; + +const int unicodePartConvertErr = -8765; + +const int unicodeTableFormatErr = -8760; + +const int unicodeTextEncodingDataErr = -8757; + +const int unicodeVariantErr = -8767; + +const int unimpErr = -4; + +const int unitEmptyErr = -22; + +const int unitTblFullErr = -29; + +const int unknownFormatErr = -2114; + +const int unknownInsertModeErr = -20000; + +const int unresolvedComponentDLLErr = -3004; + +const int unsupportedAuxiliaryImportData = -2057; + +const int unsupportedForPlatformErr = -1858; + +const int unsupportedOSErr = -2096; + +const int unsupportedProcessorErr = -2097; + +const int updPixMemErr = -125; + +const int updateDev = 4; + +typedef upl_t = mach_port_t; +@Deprecated('Deprecated') +const int uppCallComponentCanDoProcInfo = 752; + +@Deprecated('Deprecated') +const int uppCallComponentCloseProcInfo = 1008; + +@Deprecated('Deprecated') +const int uppCallComponentGetMPWorkFunctionProcInfo = 4080; + +@Deprecated('Deprecated') +const int uppCallComponentGetPublicResourceProcInfo = 15344; + +@Deprecated('Deprecated') +const int uppCallComponentOpenProcInfo = 1008; + +@Deprecated('Deprecated') +const int uppCallComponentRegisterProcInfo = 240; + +@Deprecated('Deprecated') +const int uppCallComponentTargetProcInfo = 1008; + +@Deprecated('Deprecated') +const int uppCallComponentUnregisterProcInfo = 240; + +@Deprecated('Deprecated') +const int uppCallComponentVersionProcInfo = 240; + +@Deprecated('Deprecated') +const int uppComponentFunctionImplementedProcInfo = 752; + +@Deprecated('Deprecated') +const int uppComponentSetTargetProcInfo = 1008; + +@Deprecated('Deprecated') +const int uppGetComponentVersionProcInfo = 240; + +const int urlDataHFTPBadNameListErr = -2144; + +const int urlDataHFTPBadPasswordErr = -2136; + +const int urlDataHFTPBadUserErr = -2135; + +const int urlDataHFTPDataConnectionErr = -2138; + +const int urlDataHFTPFilenameErr = -2142; + +const int urlDataHFTPNeedPasswordErr = -2145; + +const int urlDataHFTPNoDirectoryErr = -2139; + +const int urlDataHFTPNoNetDriverErr = -2143; + +const int urlDataHFTPNoPasswordErr = -2146; + +const int urlDataHFTPPermissionsErr = -2141; + +const int urlDataHFTPProtocolErr = -2133; + +const int urlDataHFTPQuotaErr = -2140; + +const int urlDataHFTPServerDisconnectedErr = -2147; + +const int urlDataHFTPServerErr = -2137; + +const int urlDataHFTPShutdownErr = -2134; + +const int urlDataHFTPURLErr = -2148; + +const int urlDataHHTTPNoNetDriverErr = -2130; + +const int urlDataHHTTPProtocolErr = -2129; + +const int urlDataHHTTPRedirectErr = -2132; + +const int urlDataHHTTPURLErr = -2131; + +@Deprecated('Deprecated') +const int useATalk = 1; + +@Deprecated('Deprecated') +const int useAsync = 2; + +@Deprecated('Deprecated') +const int useExtClk = 3; + +@Deprecated('Deprecated') +const int useFree = 0; + +@Deprecated('Deprecated') +const int useMIDI = 4; + +typedef useconds_t = __darwin_useconds_t; + +const int userBreak = -490; + +const int userCanceledErr = -128; + +const int userDataItemNotFound = -2026; + +const int userRejectErr = -912; + +typedef user_addr_t = u_int64_t; +typedef user_long_t = ffi.Int64; +typedef Dartuser_long_t = int; +typedef user_off_t = ffi.Int64; +typedef Dartuser_off_t = int; +typedef user_size_t = u_int64_t; +typedef user_ssize_t = ffi.Int64; +typedef Dartuser_ssize_t = int; +typedef user_subsystem_t = ffi.Pointer; +typedef user_time_t = ffi.Int64; +typedef Dartuser_time_t = int; +typedef user_ulong_t = u_int64_t; +typedef ushort = ffi.UnsignedShort; +typedef Dartushort = int; + +const int vLckdErr = -46; + +const int vTypErr = -2; + +@Deprecated('Deprecated') +const int vType = 1; + +typedef va_list = ffi.Pointer; + +const int validDateFields = -1; + +const int validInstancesExist = -3001; + +const int variationFontTableTag = 1719034226; + +@Deprecated('Deprecated') +const int verAfrikaans = 102; + +@Deprecated('Deprecated') +const int verAlternateGr = 64; + +@Deprecated('Deprecated') +const int verArabia = 16; + +@Deprecated('Deprecated') +const int verArabic = 16; + +@Deprecated('Deprecated') +const int verArmenia = 84; + +@Deprecated('Deprecated') +const int verArmenian = 84; + +@Deprecated('Deprecated') +const int verAustralia = 15; + +@Deprecated('Deprecated') +const int verAustria = 92; + +@Deprecated('Deprecated') +const int verAustriaGerman = 92; + +@Deprecated('Deprecated') +const int verBelarus = 61; + +@Deprecated('Deprecated') +const int verBelgiumLux = 6; + +@Deprecated('Deprecated') +const int verBelgiumLuxPoint = 27; + +@Deprecated('Deprecated') +const int verBengali = 60; + +@Deprecated('Deprecated') +const int verBhutan = 83; + +@Deprecated('Deprecated') +const int verBrazil = 71; + +@Deprecated('Deprecated') +const int verBreton = 77; + +@Deprecated('Deprecated') +const int verBritain = 2; + +@Deprecated('Deprecated') +const int verBrittany = 77; + +@Deprecated('Deprecated') +const int verBulgaria = 72; + +@Deprecated('Deprecated') +const int verByeloRussian = 61; + +@Deprecated('Deprecated') +const int verCanadaComma = 28; + +@Deprecated('Deprecated') +const int verCanadaPoint = 29; + +@Deprecated('Deprecated') +const int verCatalonia = 73; + +@Deprecated('Deprecated') +const int verChina = 52; + +@Deprecated('Deprecated') +const int verCroatia = 68; + +@Deprecated('Deprecated') +const int verCyprus = 23; + +@Deprecated('Deprecated') +const int verCzech = 56; + +@Deprecated('Deprecated') +const int verDenmark = 9; + +@Deprecated('Deprecated') +const int verEastAsiaGeneric = 58; + +@Deprecated('Deprecated') +const int verEngCanada = 82; + +const int verErr = -84; + +@Deprecated('Deprecated') +const int verEsperanto = 103; + +@Deprecated('Deprecated') +const int verEstonia = 44; + +@Deprecated('Deprecated') +const int verFaeroeIsl = 47; + +@Deprecated('Deprecated') +const int verFarEastGeneric = 58; + +@Deprecated('Deprecated') +const int verFaroeIsl = 47; + +@Deprecated('Deprecated') +const int verFinland = 17; + +@Deprecated('Deprecated') +const int verFlemish = 6; + +@Deprecated('Deprecated') +const int verFlemishPoint = 27; + +@Deprecated('Deprecated') +const int verFrBelgium = 98; + +@Deprecated('Deprecated') +const int verFrBelgiumLux = 6; + +@Deprecated('Deprecated') +const int verFrCanada = 11; + +@Deprecated('Deprecated') +const int verFrSwiss = 18; + +@Deprecated('Deprecated') +const int verFrance = 1; + +@Deprecated('Deprecated') +const int verFrenchUniversal = 91; + +@Deprecated('Deprecated') +const int verGenericFE = 58; + +@Deprecated('Deprecated') +const int verGeorgia = 85; + +@Deprecated('Deprecated') +const int verGeorgian = 85; + +@Deprecated('Deprecated') +const int verGermanReformed = 70; + +@Deprecated('Deprecated') +const int verGermany = 3; + +@Deprecated('Deprecated') +const int verGrSwiss = 19; + +@Deprecated('Deprecated') +const int verGreece = 20; + +@Deprecated('Deprecated') +const int verGreeceAlt = 64; + +@Deprecated('Deprecated') +const int verGreecePoly = 40; + +@Deprecated('Deprecated') +const int verGreekAncient = 40; + +@Deprecated('Deprecated') +const int verGreenland = 107; + +@Deprecated('Deprecated') +const int verGujarati = 94; + +@Deprecated('Deprecated') +const int verHungary = 43; + +@Deprecated('Deprecated') +const int verIceland = 21; + +@Deprecated('Deprecated') +const int verIndia = 33; + +@Deprecated('Deprecated') +const int verIndiaHindi = 33; + +@Deprecated('Deprecated') +const int verIndiaUrdu = 96; + +@Deprecated('Deprecated') +const int verInternational = 37; + +@Deprecated('Deprecated') +const int verIran = 48; + +@Deprecated('Deprecated') +const int verIreland = 50; + +@Deprecated('Deprecated') +const int verIrelandEnglish = 108; + +@Deprecated('Deprecated') +const int verIrishGaelicScript = 81; + +@Deprecated('Deprecated') +const int verIsrael = 13; + +@Deprecated('Deprecated') +const int verItalianSwiss = 36; + +@Deprecated('Deprecated') +const int verItaly = 4; + +@Deprecated('Deprecated') +const int verJapan = 14; + +@Deprecated('Deprecated') +const int verKorea = 51; + +@Deprecated('Deprecated') +const int verLapland = 46; + +@Deprecated('Deprecated') +const int verLatvia = 45; + +@Deprecated('Deprecated') +const int verLithuania = 41; + +@Deprecated('Deprecated') +const int verMacedonia = 67; + +@Deprecated('Deprecated') +const int verMacedonian = 67; + +@Deprecated('Deprecated') +const int verMagyar = 59; + +@Deprecated('Deprecated') +const int verMalta = 22; + +@Deprecated('Deprecated') +const int verManxGaelic = 76; + +@Deprecated('Deprecated') +const int verMarathi = 104; + +@Deprecated('Deprecated') +const int verMultilingual = 74; + +@Deprecated('Deprecated') +const int verNepal = 106; + +@Deprecated('Deprecated') +const int verNetherlands = 5; + +@Deprecated('Deprecated') +const int verNetherlandsComma = 26; + +@Deprecated('Deprecated') +const int verNorway = 12; + +@Deprecated('Deprecated') +const int verNunavut = 78; + +@Deprecated('Deprecated') +const int verNynorsk = 101; + +@Deprecated('Deprecated') +const int verPakistan = 34; + +@Deprecated('Deprecated') +const int verPakistanUrdu = 34; + +@Deprecated('Deprecated') +const int verPoland = 42; + +@Deprecated('Deprecated') +const int verPortugal = 10; + +@Deprecated('Deprecated') +const int verPunjabi = 95; + +@Deprecated('Deprecated') +const int verRomania = 39; + +@Deprecated('Deprecated') +const int verRumania = 39; + +@Deprecated('Deprecated') +const int verRussia = 49; + +@Deprecated('Deprecated') +const int verSami = 46; + +@Deprecated('Deprecated') +const int verScottishGaelic = 75; + +@Deprecated('Deprecated') +const int verScriptGeneric = 55; + +@Deprecated('Deprecated') +const int verSerbia = 65; + +@Deprecated('Deprecated') +const int verSerbian = 65; + +@Deprecated('Deprecated') +const int verSingapore = 100; + +@Deprecated('Deprecated') +const int verSlovak = 57; + +@Deprecated('Deprecated') +const int verSlovenia = 66; + +@Deprecated('Deprecated') +const int verSlovenian = 66; + +@Deprecated('Deprecated') +const int verSpLatinAmerica = 86; + +@Deprecated('Deprecated') +const int verSpain = 8; + +@Deprecated('Deprecated') +const int verSweden = 7; + +@Deprecated('Deprecated') +const int verTaiwan = 53; + +@Deprecated('Deprecated') +const int verThailand = 54; + +@Deprecated('Deprecated') +const int verTibet = 105; + +@Deprecated('Deprecated') +const int verTibetan = 105; + +@Deprecated('Deprecated') +const int verTonga = 88; + +@Deprecated('Deprecated') +const int verTurkey = 24; + +@Deprecated('Deprecated') +const int verTurkishModified = 35; + +@Deprecated('Deprecated') +const int verUS = 0; + +@Deprecated('Deprecated') +const int verUkraine = 62; + +@Deprecated('Deprecated') +const int verUkrania = 62; + +const int verUnspecified = 32767; + +@Deprecated('Deprecated') +const int verUzbek = 99; + +@Deprecated('Deprecated') +const int verVietnam = 97; + +@Deprecated('Deprecated') +const int verWales = 79; + +@Deprecated('Deprecated') +const int verWelsh = 79; + +@Deprecated('Deprecated') +const int verYugoCroatian = 25; + +@Deprecated('Deprecated') +const int verYugoslavia = 25; + +@Deprecated('Deprecated') +const int vervariantDenmark = 32; + +@Deprecated('Deprecated') +const int vervariantNorway = 31; + +@Deprecated('Deprecated') +const int vervariantPortugal = 30; + +const int videoOutputInUseErr = -2090; + +enum virtual_memory_guard_exception_code_t { + kGUARD_EXC_DEALLOC_GAP(1), + kGUARD_EXC_RECLAIM_COPYIO_FAILURE(2), + kGUARD_EXC_RECLAIM_INDEX_FAILURE(4), + kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE(8), + kGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE(9), + kGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE(10), + kGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE(11), + kGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION(12), + kGUARD_EXC_SEC_ACCESS_FAULT(98), + kGUARD_EXC_SEC_ASYNC_ACCESS_FAULT(99), + kGUARD_EXC_SEC_COPY_DENIED(100), + kGUARD_EXC_SEC_SHARING_DENIED(101); + + final int value; + const virtual_memory_guard_exception_code_t(this.value); + + static virtual_memory_guard_exception_code_t fromValue(int value) => + switch (value) { + 1 => kGUARD_EXC_DEALLOC_GAP, + 2 => kGUARD_EXC_RECLAIM_COPYIO_FAILURE, + 4 => kGUARD_EXC_RECLAIM_INDEX_FAILURE, + 8 => kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE, + 9 => kGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE, + 10 => kGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE, + 11 => kGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE, + 12 => kGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION, + 98 => kGUARD_EXC_SEC_ACCESS_FAULT, + 99 => kGUARD_EXC_SEC_ASYNC_ACCESS_FAULT, + 100 => kGUARD_EXC_SEC_COPY_DENIED, + 101 => kGUARD_EXC_SEC_SHARING_DENIED, + _ => throw ArgumentError( + 'Unknown value for virtual_memory_guard_exception_code_t: $value', + ), + }; +} + +typedef vm32_address_t = ffi.Uint32; +typedef Dartvm32_address_t = int; +typedef vm32_object_id_t = ffi.Uint32; +typedef Dartvm32_object_id_t = int; +typedef vm32_offset_t = ffi.Uint32; +typedef Dartvm32_offset_t = int; +typedef vm32_size_t = ffi.Uint32; +typedef Dartvm32_size_t = int; + +const int vmAddressNotInFileViewErr = -647; + +const int vmBadDriver = -632; + +const int vmBusyBackingFileErr = -642; + +const int vmFileViewAccessErr = -645; + +const int vmInvalidBackingFileIDErr = -640; + +const int vmInvalidFileViewIDErr = -644; + +const int vmInvalidOwningProcessErr = -648; + +const int vmKernelMMUInitErr = -629; + +const int vmMappingPrivilegesErr = -641; + +const int vmMemLckdErr = -631; + +const int vmMorePhysicalThanVirtualErr = -628; + +const int vmNoMoreBackingFilesErr = -643; + +const int vmNoMoreFileViewsErr = -646; + +const int vmNoVectorErr = -633; + +const int vmOffErr = -630; + +typedef vm_address_t = vm_offset_t; +typedef vm_behavior_t = ffi.Int; +typedef Dartvm_behavior_t = int; + +final class vm_extmod_statistics extends ffi.Struct { + @ffi.Int64() + external int task_for_pid_count; + + @ffi.Int64() + external int task_for_pid_caller_count; + + @ffi.Int64() + external int thread_creation_count; + + @ffi.Int64() + external int thread_creation_caller_count; + + @ffi.Int64() + external int thread_set_state_count; + + @ffi.Int64() + external int thread_set_state_caller_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int task_for_pid_count, + required int task_for_pid_caller_count, + required int thread_creation_count, + required int thread_creation_caller_count, + required int thread_set_state_count, + required int thread_set_state_caller_count, + }) => $allocator() + ..ref.task_for_pid_count = task_for_pid_count + ..ref.task_for_pid_caller_count = task_for_pid_caller_count + ..ref.thread_creation_count = thread_creation_count + ..ref.thread_creation_caller_count = thread_creation_caller_count + ..ref.thread_set_state_count = thread_set_state_count + ..ref.thread_set_state_caller_count = thread_set_state_caller_count; +} + +typedef vm_extmod_statistics_data_t = vm_extmod_statistics; +typedef vm_extmod_statistics_t = ffi.Pointer; + +@ffi.Packed(4) +final class vm_info_object extends ffi.Struct { + @natural_t() + external int vio_object; + + @natural_t() + external int vio_size; + + @ffi.UnsignedInt() + external int vio_ref_count; + + @ffi.UnsignedInt() + external int vio_resident_page_count; + + @ffi.UnsignedInt() + external int vio_absent_count; + + @natural_t() + external int vio_copy; + + @natural_t() + external int vio_shadow; + + @natural_t() + external int vio_shadow_offset; + + @natural_t() + external int vio_paging_offset; + + @memory_object_copy_strategy_t() + external int vio_copy_strategy; + + @vm_offset_t() + external int vio_last_alloc; + + @ffi.UnsignedInt() + external int vio_paging_in_progress; + + @boolean_t() + external int vio_pager_created; + + @boolean_t() + external int vio_pager_initialized; + + @boolean_t() + external int vio_pager_ready; + + @boolean_t() + external int vio_can_persist; + + @boolean_t() + external int vio_internal; + + @boolean_t() + external int vio_temporary; + + @boolean_t() + external int vio_alive; + + @boolean_t() + external int vio_purgable; + + @boolean_t() + external int vio_purgable_volatile; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int vio_object, + required int vio_size, + required int vio_ref_count, + required int vio_resident_page_count, + required int vio_absent_count, + required int vio_copy, + required int vio_shadow, + required int vio_shadow_offset, + required int vio_paging_offset, + required int vio_copy_strategy, + required int vio_last_alloc, + required int vio_paging_in_progress, + required int vio_pager_created, + required int vio_pager_initialized, + required int vio_pager_ready, + required int vio_can_persist, + required int vio_internal, + required int vio_temporary, + required int vio_alive, + required int vio_purgable, + required int vio_purgable_volatile, + }) => $allocator() + ..ref.vio_object = vio_object + ..ref.vio_size = vio_size + ..ref.vio_ref_count = vio_ref_count + ..ref.vio_resident_page_count = vio_resident_page_count + ..ref.vio_absent_count = vio_absent_count + ..ref.vio_copy = vio_copy + ..ref.vio_shadow = vio_shadow + ..ref.vio_shadow_offset = vio_shadow_offset + ..ref.vio_paging_offset = vio_paging_offset + ..ref.vio_copy_strategy = vio_copy_strategy + ..ref.vio_last_alloc = vio_last_alloc + ..ref.vio_paging_in_progress = vio_paging_in_progress + ..ref.vio_pager_created = vio_pager_created + ..ref.vio_pager_initialized = vio_pager_initialized + ..ref.vio_pager_ready = vio_pager_ready + ..ref.vio_can_persist = vio_can_persist + ..ref.vio_internal = vio_internal + ..ref.vio_temporary = vio_temporary + ..ref.vio_alive = vio_alive + ..ref.vio_purgable = vio_purgable + ..ref.vio_purgable_volatile = vio_purgable_volatile; +} + +typedef vm_info_object_array_t = ffi.Pointer; +typedef vm_info_object_t = vm_info_object; + +final class vm_info_region extends ffi.Struct { + @natural_t() + external int vir_start; + + @natural_t() + external int vir_end; + + @natural_t() + external int vir_object; + + @natural_t() + external int vir_offset; + + @boolean_t() + external int vir_needs_copy; + + @vm_prot_t() + external int vir_protection; + + @vm_prot_t() + external int vir_max_protection; + + @vm_inherit_t() + external int vir_inheritance; + + @natural_t() + external int vir_wired_count; + + @natural_t() + external int vir_user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int vir_start, + required int vir_end, + required int vir_object, + required int vir_offset, + required int vir_needs_copy, + required int vir_protection, + required int vir_max_protection, + required int vir_inheritance, + required int vir_wired_count, + required int vir_user_wired_count, + }) => $allocator() + ..ref.vir_start = vir_start + ..ref.vir_end = vir_end + ..ref.vir_object = vir_object + ..ref.vir_offset = vir_offset + ..ref.vir_needs_copy = vir_needs_copy + ..ref.vir_protection = vir_protection + ..ref.vir_max_protection = vir_max_protection + ..ref.vir_inheritance = vir_inheritance + ..ref.vir_wired_count = vir_wired_count + ..ref.vir_user_wired_count = vir_user_wired_count; +} + +@ffi.Packed(4) +final class vm_info_region_64 extends ffi.Struct { + @natural_t() + external int vir_start; + + @natural_t() + external int vir_end; + + @natural_t() + external int vir_object; + + @memory_object_offset_t() + external int vir_offset; + + @boolean_t() + external int vir_needs_copy; + + @vm_prot_t() + external int vir_protection; + + @vm_prot_t() + external int vir_max_protection; + + @vm_inherit_t() + external int vir_inheritance; + + @natural_t() + external int vir_wired_count; + + @natural_t() + external int vir_user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int vir_start, + required int vir_end, + required int vir_object, + required int vir_offset, + required int vir_needs_copy, + required int vir_protection, + required int vir_max_protection, + required int vir_inheritance, + required int vir_wired_count, + required int vir_user_wired_count, + }) => $allocator() + ..ref.vir_start = vir_start + ..ref.vir_end = vir_end + ..ref.vir_object = vir_object + ..ref.vir_offset = vir_offset + ..ref.vir_needs_copy = vir_needs_copy + ..ref.vir_protection = vir_protection + ..ref.vir_max_protection = vir_max_protection + ..ref.vir_inheritance = vir_inheritance + ..ref.vir_wired_count = vir_wired_count + ..ref.vir_user_wired_count = vir_user_wired_count; +} + +typedef vm_info_region_64_t = vm_info_region_64; +typedef vm_info_region_t = vm_info_region; +typedef vm_inherit_t = ffi.UnsignedInt; +typedef Dartvm_inherit_t = int; +typedef vm_machine_attribute_t = ffi.UnsignedInt; +typedef Dartvm_machine_attribute_t = int; +typedef vm_machine_attribute_val_t = ffi.Int; +typedef Dartvm_machine_attribute_val_t = int; +typedef vm_map_address_t = ffi.Uint64; +typedef Dartvm_map_address_t = int; +typedef vm_map_inspect_t = mach_port_t; +typedef vm_map_offset_t = ffi.Uint64; +typedef Dartvm_map_offset_t = int; +typedef vm_map_read_t = mach_port_t; +typedef vm_map_size_t = ffi.Uint64; +typedef Dartvm_map_size_t = int; +typedef vm_map_t = mach_port_t; +typedef vm_named_entry_t = mach_port_t; +typedef vm_object_id_t = ffi.UnsignedLongLong; +typedef Dartvm_object_id_t = int; +typedef vm_object_offset_t = ffi.Uint64; +typedef Dartvm_object_offset_t = int; +typedef vm_object_size_t = ffi.Uint64; +typedef Dartvm_object_size_t = int; +typedef vm_offset_t = ffi.UintPtr; +typedef Dartvm_offset_t = int; + +final class vm_page_info_basic extends ffi.Struct { + @ffi.Int() + external int disposition; + + @ffi.Int() + external int ref_count; + + @vm_object_id_t() + external int object_id; + + @memory_object_offset_t() + external int offset; + + @ffi.Int() + external int depth; + + @ffi.Int() + external int __pad; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int disposition, + required int ref_count, + required int object_id, + required int offset, + required int depth, + required int $pad, + }) => $allocator() + ..ref.disposition = disposition + ..ref.ref_count = ref_count + ..ref.object_id = object_id + ..ref.offset = offset + ..ref.depth = depth + ..ref.__pad = $pad; +} + +typedef vm_page_info_basic_data_t = vm_page_info_basic; +typedef vm_page_info_basic_t = ffi.Pointer; +typedef vm_page_info_flavor_t = ffi.Int; +typedef Dartvm_page_info_flavor_t = int; +typedef vm_page_info_t = ffi.Pointer; +typedef vm_prot_t = ffi.Int; +typedef Dartvm_prot_t = int; +typedef vm_purgable_t = ffi.Int; +typedef Dartvm_purgable_t = int; + +final class vm_purgeable_info extends ffi.Struct { + @ffi.Array.multi([8]) + external ffi.Array fifo_data; + + external vm_purgeable_stat_t obsolete_data; + + @ffi.Array.multi([8]) + external ffi.Array lifo_data; +} + +typedef vm_purgeable_info_t = ffi.Pointer; + +final class vm_purgeable_stat extends ffi.Struct { + @ffi.Uint64() + external int count; + + @ffi.Uint64() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required int size, + }) => $allocator() + ..ref.count = count + ..ref.size = size; +} + +typedef vm_purgeable_stat_t = vm_purgeable_stat; + +@ffi.Packed(4) +final class vm_read_entry extends ffi.Struct { + @vm_address_t() + external int address; + + @vm_size_t() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int address, + required int size, + }) => $allocator() + ..ref.address = address + ..ref.size = size; +} + +final class vm_region_basic_info extends ffi.Struct { + @vm_prot_t() + external int protection; + + @vm_prot_t() + external int max_protection; + + @vm_inherit_t() + external int inheritance; + + @boolean_t() + external int shared; + + @boolean_t() + external int reserved; + + @ffi.Uint32() + external int offset; + + @vm_behavior_t() + external int behavior; + + @ffi.UnsignedShort() + external int user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int max_protection, + required int inheritance, + required int shared, + required int reserved, + required int offset, + required int behavior, + required int user_wired_count, + }) => $allocator() + ..ref.protection = protection + ..ref.max_protection = max_protection + ..ref.inheritance = inheritance + ..ref.shared = shared + ..ref.reserved = reserved + ..ref.offset = offset + ..ref.behavior = behavior + ..ref.user_wired_count = user_wired_count; +} + +@ffi.Packed(4) +final class vm_region_basic_info_64 extends ffi.Struct { + @vm_prot_t() + external int protection; + + @vm_prot_t() + external int max_protection; + + @vm_inherit_t() + external int inheritance; + + @boolean_t() + external int shared; + + @boolean_t() + external int reserved; + + @memory_object_offset_t() + external int offset; + + @vm_behavior_t() + external int behavior; + + @ffi.UnsignedShort() + external int user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int max_protection, + required int inheritance, + required int shared, + required int reserved, + required int offset, + required int behavior, + required int user_wired_count, + }) => $allocator() + ..ref.protection = protection + ..ref.max_protection = max_protection + ..ref.inheritance = inheritance + ..ref.shared = shared + ..ref.reserved = reserved + ..ref.offset = offset + ..ref.behavior = behavior + ..ref.user_wired_count = user_wired_count; +} + +typedef vm_region_basic_info_64_t = ffi.Pointer; +typedef vm_region_basic_info_data_64_t = vm_region_basic_info_64; +typedef vm_region_basic_info_data_t = vm_region_basic_info; +typedef vm_region_basic_info_t = ffi.Pointer; + +final class vm_region_extended_info extends ffi.Struct { + @vm_prot_t() + external int protection; + + @ffi.UnsignedInt() + external int user_tag; + + @ffi.UnsignedInt() + external int pages_resident; + + @ffi.UnsignedInt() + external int pages_shared_now_private; + + @ffi.UnsignedInt() + external int pages_swapped_out; + + @ffi.UnsignedInt() + external int pages_dirtied; + + @ffi.UnsignedInt() + external int ref_count; + + @ffi.UnsignedShort() + external int shadow_depth; + + @ffi.UnsignedChar() + external int external_pager; + + @ffi.UnsignedChar() + external int share_mode; + + @ffi.UnsignedInt() + external int pages_reusable; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int user_tag, + required int pages_resident, + required int pages_shared_now_private, + required int pages_swapped_out, + required int pages_dirtied, + required int ref_count, + required int shadow_depth, + required int external_pager, + required int share_mode, + required int pages_reusable, + }) => $allocator() + ..ref.protection = protection + ..ref.user_tag = user_tag + ..ref.pages_resident = pages_resident + ..ref.pages_shared_now_private = pages_shared_now_private + ..ref.pages_swapped_out = pages_swapped_out + ..ref.pages_dirtied = pages_dirtied + ..ref.ref_count = ref_count + ..ref.shadow_depth = shadow_depth + ..ref.external_pager = external_pager + ..ref.share_mode = share_mode + ..ref.pages_reusable = pages_reusable; +} + +typedef vm_region_extended_info_data_t = vm_region_extended_info; +typedef vm_region_extended_info_t = ffi.Pointer; +typedef vm_region_flavor_t = ffi.Int; +typedef Dartvm_region_flavor_t = int; +typedef vm_region_info_64_t = ffi.Pointer; +typedef vm_region_info_t = ffi.Pointer; +typedef vm_region_recurse_info_64_t = ffi.Pointer; +typedef vm_region_recurse_info_t = ffi.Pointer; + +final class vm_region_submap_info extends ffi.Struct { + @vm_prot_t() + external int protection; + + @vm_prot_t() + external int max_protection; + + @vm_inherit_t() + external int inheritance; + + @ffi.Uint32() + external int offset; + + @ffi.UnsignedInt() + external int user_tag; + + @ffi.UnsignedInt() + external int pages_resident; + + @ffi.UnsignedInt() + external int pages_shared_now_private; + + @ffi.UnsignedInt() + external int pages_swapped_out; + + @ffi.UnsignedInt() + external int pages_dirtied; + + @ffi.UnsignedInt() + external int ref_count; + + @ffi.UnsignedShort() + external int shadow_depth; + + @ffi.UnsignedChar() + external int external_pager; + + @ffi.UnsignedChar() + external int share_mode; + + @boolean_t() + external int is_submap; + + @vm_behavior_t() + external int behavior; + + @vm32_object_id_t() + external int object_id; + + @ffi.UnsignedShort() + external int user_wired_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int max_protection, + required int inheritance, + required int offset, + required int user_tag, + required int pages_resident, + required int pages_shared_now_private, + required int pages_swapped_out, + required int pages_dirtied, + required int ref_count, + required int shadow_depth, + required int external_pager, + required int share_mode, + required int is_submap, + required int behavior, + required int object_id, + required int user_wired_count, + }) => $allocator() + ..ref.protection = protection + ..ref.max_protection = max_protection + ..ref.inheritance = inheritance + ..ref.offset = offset + ..ref.user_tag = user_tag + ..ref.pages_resident = pages_resident + ..ref.pages_shared_now_private = pages_shared_now_private + ..ref.pages_swapped_out = pages_swapped_out + ..ref.pages_dirtied = pages_dirtied + ..ref.ref_count = ref_count + ..ref.shadow_depth = shadow_depth + ..ref.external_pager = external_pager + ..ref.share_mode = share_mode + ..ref.is_submap = is_submap + ..ref.behavior = behavior + ..ref.object_id = object_id + ..ref.user_wired_count = user_wired_count; +} + +@ffi.Packed(4) +final class vm_region_submap_info_64 extends ffi.Struct { + @vm_prot_t() + external int protection; + + @vm_prot_t() + external int max_protection; + + @vm_inherit_t() + external int inheritance; + + @memory_object_offset_t() + external int offset; + + @ffi.UnsignedInt() + external int user_tag; + + @ffi.UnsignedInt() + external int pages_resident; + + @ffi.UnsignedInt() + external int pages_shared_now_private; + + @ffi.UnsignedInt() + external int pages_swapped_out; + + @ffi.UnsignedInt() + external int pages_dirtied; + + @ffi.UnsignedInt() + external int ref_count; + + @ffi.UnsignedShort() + external int shadow_depth; + + @ffi.UnsignedChar() + external int external_pager; + + @ffi.UnsignedChar() + external int share_mode; + + @boolean_t() + external int is_submap; + + @vm_behavior_t() + external int behavior; + + @vm32_object_id_t() + external int object_id; + + @ffi.UnsignedShort() + external int user_wired_count; + + @ffi.UnsignedShort() + external int flags; + + @ffi.UnsignedInt() + external int pages_reusable; + + @vm_object_id_t() + external int object_id_full; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int max_protection, + required int inheritance, + required int offset, + required int user_tag, + required int pages_resident, + required int pages_shared_now_private, + required int pages_swapped_out, + required int pages_dirtied, + required int ref_count, + required int shadow_depth, + required int external_pager, + required int share_mode, + required int is_submap, + required int behavior, + required int object_id, + required int user_wired_count, + required int flags, + required int pages_reusable, + required int object_id_full, + }) => $allocator() + ..ref.protection = protection + ..ref.max_protection = max_protection + ..ref.inheritance = inheritance + ..ref.offset = offset + ..ref.user_tag = user_tag + ..ref.pages_resident = pages_resident + ..ref.pages_shared_now_private = pages_shared_now_private + ..ref.pages_swapped_out = pages_swapped_out + ..ref.pages_dirtied = pages_dirtied + ..ref.ref_count = ref_count + ..ref.shadow_depth = shadow_depth + ..ref.external_pager = external_pager + ..ref.share_mode = share_mode + ..ref.is_submap = is_submap + ..ref.behavior = behavior + ..ref.object_id = object_id + ..ref.user_wired_count = user_wired_count + ..ref.flags = flags + ..ref.pages_reusable = pages_reusable + ..ref.object_id_full = object_id_full; +} + +typedef vm_region_submap_info_64_t = ffi.Pointer; +typedef vm_region_submap_info_data_64_t = vm_region_submap_info_64; +typedef vm_region_submap_info_data_t = vm_region_submap_info; +typedef vm_region_submap_info_t = ffi.Pointer; + +@ffi.Packed(4) +final class vm_region_submap_short_info_64 extends ffi.Struct { + @vm_prot_t() + external int protection; + + @vm_prot_t() + external int max_protection; + + @vm_inherit_t() + external int inheritance; + + @memory_object_offset_t() + external int offset; + + @ffi.UnsignedInt() + external int user_tag; + + @ffi.UnsignedInt() + external int ref_count; + + @ffi.UnsignedShort() + external int shadow_depth; + + @ffi.UnsignedChar() + external int external_pager; + + @ffi.UnsignedChar() + external int share_mode; + + @boolean_t() + external int is_submap; + + @vm_behavior_t() + external int behavior; + + @vm32_object_id_t() + external int object_id; + + @ffi.UnsignedShort() + external int user_wired_count; + + @ffi.UnsignedShort() + external int flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int protection, + required int max_protection, + required int inheritance, + required int offset, + required int user_tag, + required int ref_count, + required int shadow_depth, + required int external_pager, + required int share_mode, + required int is_submap, + required int behavior, + required int object_id, + required int user_wired_count, + required int flags, + }) => $allocator() + ..ref.protection = protection + ..ref.max_protection = max_protection + ..ref.inheritance = inheritance + ..ref.offset = offset + ..ref.user_tag = user_tag + ..ref.ref_count = ref_count + ..ref.shadow_depth = shadow_depth + ..ref.external_pager = external_pager + ..ref.share_mode = share_mode + ..ref.is_submap = is_submap + ..ref.behavior = behavior + ..ref.object_id = object_id + ..ref.user_wired_count = user_wired_count + ..ref.flags = flags; +} + +typedef vm_region_submap_short_info_64_t = + ffi.Pointer; +typedef vm_region_submap_short_info_data_64_t = vm_region_submap_short_info_64; + +final class vm_region_top_info extends ffi.Struct { + @ffi.UnsignedInt() + external int obj_id; + + @ffi.UnsignedInt() + external int ref_count; + + @ffi.UnsignedInt() + external int private_pages_resident; + + @ffi.UnsignedInt() + external int shared_pages_resident; + + @ffi.UnsignedChar() + external int share_mode; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int obj_id, + required int ref_count, + required int private_pages_resident, + required int shared_pages_resident, + required int share_mode, + }) => $allocator() + ..ref.obj_id = obj_id + ..ref.ref_count = ref_count + ..ref.private_pages_resident = private_pages_resident + ..ref.shared_pages_resident = shared_pages_resident + ..ref.share_mode = share_mode; +} + +typedef vm_region_top_info_data_t = vm_region_top_info; +typedef vm_region_top_info_t = ffi.Pointer; +typedef vm_size_t = ffi.UintPtr; +typedef Dartvm_size_t = int; + +final class vm_statistics extends ffi.Struct { + @natural_t() + external int free_count; + + @natural_t() + external int active_count; + + @natural_t() + external int inactive_count; + + @natural_t() + external int wire_count; + + @natural_t() + external int zero_fill_count; + + @natural_t() + external int reactivations; + + @natural_t() + external int pageins; + + @natural_t() + external int pageouts; + + @natural_t() + external int faults; + + @natural_t() + external int cow_faults; + + @natural_t() + external int lookups; + + @natural_t() + external int hits; + + @natural_t() + external int purgeable_count; + + @natural_t() + external int purges; + + @natural_t() + external int speculative_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int free_count, + required int active_count, + required int inactive_count, + required int wire_count, + required int zero_fill_count, + required int reactivations, + required int pageins, + required int pageouts, + required int faults, + required int cow_faults, + required int lookups, + required int hits, + required int purgeable_count, + required int purges, + required int speculative_count, + }) => $allocator() + ..ref.free_count = free_count + ..ref.active_count = active_count + ..ref.inactive_count = inactive_count + ..ref.wire_count = wire_count + ..ref.zero_fill_count = zero_fill_count + ..ref.reactivations = reactivations + ..ref.pageins = pageins + ..ref.pageouts = pageouts + ..ref.faults = faults + ..ref.cow_faults = cow_faults + ..ref.lookups = lookups + ..ref.hits = hits + ..ref.purgeable_count = purgeable_count + ..ref.purges = purges + ..ref.speculative_count = speculative_count; +} + +final class vm_statistics64 extends ffi.Struct { + @natural_t() + external int free_count; + + @natural_t() + external int active_count; + + @natural_t() + external int inactive_count; + + @natural_t() + external int wire_count; + + @ffi.Uint64() + external int zero_fill_count; + + @ffi.Uint64() + external int reactivations; + + @ffi.Uint64() + external int pageins; + + @ffi.Uint64() + external int pageouts; + + @ffi.Uint64() + external int faults; + + @ffi.Uint64() + external int cow_faults; + + @ffi.Uint64() + external int lookups; + + @ffi.Uint64() + external int hits; + + @ffi.Uint64() + external int purges; + + @natural_t() + external int purgeable_count; + + @natural_t() + external int speculative_count; + + @ffi.Uint64() + external int decompressions; + + @ffi.Uint64() + external int compressions; + + @ffi.Uint64() + external int swapins; + + @ffi.Uint64() + external int swapouts; + + @natural_t() + external int compressor_page_count; + + @natural_t() + external int throttled_count; + + @natural_t() + external int external_page_count; + + @natural_t() + external int internal_page_count; + + @ffi.Uint64() + external int total_uncompressed_pages_in_compressor; + + @ffi.Uint64() + external int swapped_count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int free_count, + required int active_count, + required int inactive_count, + required int wire_count, + required int zero_fill_count, + required int reactivations, + required int pageins, + required int pageouts, + required int faults, + required int cow_faults, + required int lookups, + required int hits, + required int purges, + required int purgeable_count, + required int speculative_count, + required int decompressions, + required int compressions, + required int swapins, + required int swapouts, + required int compressor_page_count, + required int throttled_count, + required int external_page_count, + required int internal_page_count, + required int total_uncompressed_pages_in_compressor, + required int swapped_count, + }) => $allocator() + ..ref.free_count = free_count + ..ref.active_count = active_count + ..ref.inactive_count = inactive_count + ..ref.wire_count = wire_count + ..ref.zero_fill_count = zero_fill_count + ..ref.reactivations = reactivations + ..ref.pageins = pageins + ..ref.pageouts = pageouts + ..ref.faults = faults + ..ref.cow_faults = cow_faults + ..ref.lookups = lookups + ..ref.hits = hits + ..ref.purges = purges + ..ref.purgeable_count = purgeable_count + ..ref.speculative_count = speculative_count + ..ref.decompressions = decompressions + ..ref.compressions = compressions + ..ref.swapins = swapins + ..ref.swapouts = swapouts + ..ref.compressor_page_count = compressor_page_count + ..ref.throttled_count = throttled_count + ..ref.external_page_count = external_page_count + ..ref.internal_page_count = internal_page_count + ..ref.total_uncompressed_pages_in_compressor = + total_uncompressed_pages_in_compressor + ..ref.swapped_count = swapped_count; +} + +typedef vm_statistics64_data_t = vm_statistics64; +typedef vm_statistics64_t = ffi.Pointer; +typedef vm_statistics_data_t = vm_statistics; +typedef vm_statistics_t = ffi.Pointer; +typedef vm_sync_t = ffi.UnsignedInt; +typedef Dartvm_sync_t = int; +typedef vm_task_entry_t = mach_port_t; + +const int voiceNotFound = -244; + +typedef voidPtr = ffi.Pointer; + +const int volGoneErr = -124; + +const int volMountChangedBit = 14; + +const int volMountChangedMask = 16384; + +const int volMountExtendedFlagsBit = 7; + +const int volMountExtendedFlagsMask = 128; + +const int volMountFSReservedMask = 255; + +const int volMountInteractBit = 15; + +const int volMountInteractMask = 32768; + +const int volMountNoLoginMsgFlagBit = 0; + +const int volMountNoLoginMsgFlagMask = 1; + +const int volMountSysReservedMask = 65280; + +const int volOffLinErr = -53; + +const int volOnLinErr = -55; + +const int volVMBusyErr = -1311; + +final class voucher_mach_msg_state_s extends ffi.Opaque {} + +typedef voucher_mach_msg_state_t = ffi.Pointer; + +const int wPrErr = -44; + +const int wackBadFileErr = -2115; + +const int wackBadMetaDataErr = -2117; + +const int wackForkNotFoundErr = -2116; + +final class wait$1 extends ffi.Opaque {} + +const int weekOfYearField = 9; + +const int weekOfYearMask = 512; + +const int wfFileNotFound = -2021; + +@ffi.Packed(2) +final class wide extends ffi.Struct { + @UInt32() + external int lo; + + @SInt32() + external int hi; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int lo, + required int hi, + }) => $allocator() + ..ref.lo = lo + ..ref.hi = hi; +} + +const int windowAppModalStateAlreadyExistsErr = -5617; + +const int windowAttributeImmutableErr = -5612; + +const int windowAttributesConflictErr = -5613; + +const int windowGroupInvalidErr = -5616; + +const int windowManagerInternalErr = -5614; + +const int windowNoAppModalStateErr = -5618; + +const int windowWrongStateErr = -5615; + +typedef wint_t = __darwin_wint_t; + +const int wrPermErr = -61; + +const int wrUnderrun = -74; + +const int wrgVolTypErr = -123; + +const int writErr = -20; + +@Deprecated('Deprecated') +const int writeReference = 0; + +const int writingPastEnd = -189; + +const int wrongApplicationPlatform = -875; + +@Deprecated('Deprecated') +final class x509_validity extends ffi.Struct { + external CSSM_X509_TIME notBefore; + + external CSSM_X509_TIME notAfter; +} + +typedef xpc_activity_handler_t = ffi.Pointer; +typedef Dartxpc_activity_handler_t = + objc.ObjCBlock; +typedef xpc_activity_state_t = ffi.Long; +typedef Dartxpc_activity_state_t = int; +typedef xpc_activity_t = xpc_object_t; +typedef xpc_array_applier_t = ffi.Pointer; +typedef Dartxpc_array_applier_t = + objc.ObjCBlock; +typedef xpc_connection_handler_t = + ffi.Pointer< + ffi.NativeFunction + >; +typedef xpc_connection_t = xpc_object_t; +typedef xpc_dictionary_applier_t = ffi.Pointer; +typedef Dartxpc_dictionary_applier_t = + objc.ObjCBlock, objc.NSObject)>; +typedef xpc_endpoint_t = xpc_object_t; +typedef xpc_finalizer_t = + ffi.Pointer< + ffi.NativeFunction value)> + >; +typedef xpc_handler_t = ffi.Pointer; +typedef Dartxpc_handler_t = objc.ObjCBlock; + +sealed class xpc_listener_create_flags_t { + static const XPC_LISTENER_CREATE_NONE = 0; + static const XPC_LISTENER_CREATE_INACTIVE = 1; + static const XPC_LISTENER_CREATE_FORCE_MACH = 2; + static const XPC_LISTENER_CREATE_FORCE_XPCSERVICE = 4; +} + +typedef xpc_listener_incoming_session_handler_t = + ffi.Pointer; +typedef Dartxpc_listener_incoming_session_handler_t = + objc.ObjCBlock; +typedef xpc_listener_t = ffi.Pointer; +typedef Dartxpc_listener_t = objc.NSObject; +typedef xpc_object_t = ffi.Pointer; +typedef Dartxpc_object_t = objc.NSObject; +typedef xpc_peer_requirement_t = ffi.Pointer; +typedef Dartxpc_peer_requirement_t = objc.NSObject; +typedef xpc_rich_error_t = xpc_object_t; +typedef xpc_session_cancel_handler_t = ffi.Pointer; +typedef Dartxpc_session_cancel_handler_t = + objc.ObjCBlock; + +sealed class xpc_session_create_flags_t { + static const XPC_SESSION_CREATE_NONE = 0; + static const XPC_SESSION_CREATE_INACTIVE = 1; + static const XPC_SESSION_CREATE_MACH_PRIVILEGED = 2; +} + +typedef xpc_session_incoming_message_handler_t = + ffi.Pointer; +typedef Dartxpc_session_incoming_message_handler_t = + objc.ObjCBlock; +typedef xpc_session_reply_handler_t = ffi.Pointer; +typedef Dartxpc_session_reply_handler_t = + objc.ObjCBlock; +typedef xpc_session_t = ffi.Pointer; +typedef Dartxpc_session_t = objc.NSObject; +typedef xpc_type_t = ffi.Pointer<_xpc_type_s>; + +const int ydm = 5; + +const int yearField = 1; + +const int yearMask = 2; + +const int ymd = 2; + +const int zeroCycle = 1; + +final class zone_btrecord extends ffi.Struct { + @ffi.Uint32() + external int ref_count; + + @ffi.Uint32() + external int operation_type; + + @ffi.Array.multi([15]) + external ffi.Array bt; +} + +typedef zone_btrecord_array_t = ffi.Pointer; +typedef zone_btrecord_t = zone_btrecord; + +final class zone_info extends ffi.Struct { + @integer_t() + external int zi_count; + + @vm_size_t() + external int zi_cur_size; + + @vm_size_t() + external int zi_max_size; + + @vm_size_t() + external int zi_elem_size; + + @vm_size_t() + external int zi_alloc_size; + + @integer_t() + external int zi_pageable; + + @integer_t() + external int zi_sleepable; + + @integer_t() + external int zi_exhaustible; + + @integer_t() + external int zi_collectable; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int zi_count, + required int zi_cur_size, + required int zi_max_size, + required int zi_elem_size, + required int zi_alloc_size, + required int zi_pageable, + required int zi_sleepable, + required int zi_exhaustible, + required int zi_collectable, + }) => $allocator() + ..ref.zi_count = zi_count + ..ref.zi_cur_size = zi_cur_size + ..ref.zi_max_size = zi_max_size + ..ref.zi_elem_size = zi_elem_size + ..ref.zi_alloc_size = zi_alloc_size + ..ref.zi_pageable = zi_pageable + ..ref.zi_sleepable = zi_sleepable + ..ref.zi_exhaustible = zi_exhaustible + ..ref.zi_collectable = zi_collectable; +} + +typedef zone_info_array_t = ffi.Pointer; +typedef zone_info_t = zone_info; + +final class zone_name extends ffi.Struct { + @ffi.Array.multi([80]) + external ffi.Array zn_name; +} + +typedef zone_name_array_t = ffi.Pointer; +typedef zone_name_t = zone_name; diff --git a/pkgs/ffigen/example/swift/swift_api_bindings.dart b/pkgs/ffigen/example/swift/swift_api_bindings.dart index 71cab810fc..c820afa684 100644 --- a/pkgs/ffigen/example/swift/swift_api_bindings.dart +++ b/pkgs/ffigen/example/swift/swift_api_bindings.dart @@ -87,12 +87,6 @@ extension SwiftClass$Methods on SwiftClass { return objc.NSString.fromPointer($ret, retain: true, release: true); } - /// setSomeField: - set someField(int value) { - final _$$ref = object$.ref; - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setSomeField_, value); - } - /// someField int get someField { final _$$ref = object$.ref; @@ -174,30 +168,12 @@ final _objc_msgSend_1hz7y9r = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_4sp4xj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); late final _sel_sayHello = objc.registerName("sayHello"); -late final _sel_setSomeField_ = objc.registerName("setSomeField:"); late final _sel_someField = objc.registerName("someField"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart index 9fe5769aa6..88d4230172 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart @@ -380,6 +380,7 @@ class ObjCMethod extends AstNode with HasLocalScope { clonedSymbol, parent: parent, ); + clonedSetter.isIncluded = clonedMethod.isIncluded; clonedMethod.setter = clonedSetter; } return clonedMethod; diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index c0c3aaf375..a5e2f7b20f 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -562,6 +562,10 @@ class ObjCMethod extends NamedNode { /// Whether this method is a property setter. bool get isPropertySetter => _method.isPropertySetter; + /// The property setter for this Objective-C method, if it is a property getter. + ObjCMethod? get setter => + _method.setter != null ? ObjCMethod(parent, _method.setter!) : null; + bool get isIncluded => _method.isIncluded; set isIncluded(bool value) { diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index 8582f2c802..d437ea9624 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -1450,7 +1450,6 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { @override void visitObjCMethod(public_ast.ObjCMethod node) { - if (node.isPropertySetter) return; final decl = _getObjCDecl(node.parent); if (decl != null) { node.isIncluded = decl.shouldIncludeMember( @@ -1462,6 +1461,7 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { node.name = rename; } } + node.setter?.isIncluded = node.isIncluded; } YamlDeclarationFilters? _getCompoundDecl(public_ast.DeclNode node) { diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index 419c813721..e36de1f37d 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -116,8 +116,5 @@ class ApplyConfigFiltersVisitation extends Visitation { void visitTypealias(Typealias node) { if (node.isAnonymous) return; _visitImpl(node); - if (directlyIncluded.contains(node)) { - node.visitChildren(visitor); - } } } diff --git a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart index 12fd500fb5..59cff5aba3 100644 --- a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart @@ -301,44 +301,11 @@ extension ArcTestObject$Methods on ArcTestObject { return ArcTestObject.fromPointer($ret, retain: false, release: true); } - /// setAssignedProperty: - set assignedProperty(ArcTestObject value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setAssignedProperty_, - _$$ref$1.pointer, - ); - } - - /// setCopiedProperty: - set copiedProperty(ArcTestObject value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setCopiedProperty_, - _$$ref$1.pointer, - ); - } - /// setCounter: void setCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; _objc_msgSend_yhkuco(_$$ref.pointer, _sel_setCounter_, _counter); } - - /// setRetainedProperty: - set retainedProperty(ArcTestObject value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setRetainedProperty_, - _$$ref$1.pointer, - ); - } } @ffi.Native>( @@ -478,23 +445,6 @@ final _objc_msgSend_b5hsh3 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -536,13 +486,6 @@ late final _sel_new = objc.registerName("new"); late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); late final _sel_retainedProperty = objc.registerName("retainedProperty"); late final _sel_returnsRetained = objc.registerName("returnsRetained"); -late final _sel_setAssignedProperty_ = objc.registerName( - "setAssignedProperty:", -); -late final _sel_setCopiedProperty_ = objc.registerName("setCopiedProperty:"); late final _sel_setCounter_ = objc.registerName("setCounter:"); -late final _sel_setRetainedProperty_ = objc.registerName( - "setRetainedProperty:", -); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart index 1854786c48..f5490e5257 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart @@ -1522,59 +1522,6 @@ extension NSThread$Methods on NSThread { return objc.NSQualityOfService.fromValue($ret); } - /// setName: - set name(objc.NSString? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSThread.setName:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setName_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setQualityOfService: - set qualityOfService(objc.NSQualityOfService value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSThread.setQualityOfService:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_n2da1l( - _$$ref.pointer, - _sel_setQualityOfService_, - value.value, - ); - } - - /// setStackSize: - set stackSize(int value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSThread.setStackSize:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_setStackSize_, value); - } - - /// setThreadPriority: - set threadPriority(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSThread.setThreadPriority:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setThreadPriority_, value); - } - /// stackSize int get stackSize { final _$$ref = object$.ref; @@ -3239,23 +3186,6 @@ final _objc_msgSend_1eldwyi = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1i9r4xy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -3454,23 +3384,6 @@ final _objc_msgSend_lzbvjm = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_n2da1l = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_nnxkei = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -3667,11 +3580,6 @@ late final _sel_receiveConsumedObject_ = objc.registerName( "receiveConsumedObject:", ); late final _sel_receiveObject_ = objc.registerName("receiveObject:"); -late final _sel_setName_ = objc.registerName("setName:"); -late final _sel_setQualityOfService_ = objc.registerName( - "setQualityOfService:", -); -late final _sel_setStackSize_ = objc.registerName("setStackSize:"); late final _sel_setThreadPriority_ = objc.registerName("setThreadPriority:"); late final _sel_sleepForTimeInterval_ = objc.registerName( "sleepForTimeInterval:", diff --git a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart index 14de93cbb6..d1ec2cc0f7 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart @@ -1114,59 +1114,6 @@ extension NSThread$Methods on NSThread { return objc.NSQualityOfService.fromValue($ret); } - /// setName: - set name(objc.NSString? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSThread.setName:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setName_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setQualityOfService: - set qualityOfService(objc.NSQualityOfService value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSThread.setQualityOfService:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_n2da1l( - _$$ref.pointer, - _sel_setQualityOfService_, - value.value, - ); - } - - /// setStackSize: - set stackSize(int value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSThread.setStackSize:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_setStackSize_, value); - } - - /// setThreadPriority: - set threadPriority(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSThread.setThreadPriority:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setThreadPriority_, value); - } - /// stackSize int get stackSize { final _$$ref = object$.ref; @@ -4582,23 +4529,6 @@ final _objc_msgSend_1gew1vmStret = objc.msgSendStretPointer ffi.Pointer, ) >(); -final _objc_msgSend_1i9r4xy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_1ovaulg = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -4831,23 +4761,6 @@ final _objc_msgSend_lzbvjm = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_n2da1l = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_nnxkei = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -5180,11 +5093,6 @@ late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); late final _sel_pokeBlock = objc.registerName("pokeBlock"); late final _sel_qualityOfService = objc.registerName("qualityOfService"); late final _sel_setCounter_ = objc.registerName("setCounter:"); -late final _sel_setName_ = objc.registerName("setName:"); -late final _sel_setQualityOfService_ = objc.registerName( - "setQualityOfService:", -); -late final _sel_setStackSize_ = objc.registerName("setStackSize:"); late final _sel_setThreadPriority_ = objc.registerName("setThreadPriority:"); late final _sel_setup_ = objc.registerName("setup:"); late final _sel_sleepForTimeInterval_ = objc.registerName( diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index 6d48048e5d..f5875c4f4c 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -10,36 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _l3cf7j_wrapBlockingBlock_pfv6jd( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _l3cf7j_wrapListenerBlock_pfv6jd( - int port, - ffi.Pointer context, -); /// CatImplementsProto extension CatImplementsProto on Thing { @@ -289,250 +259,10 @@ extension Mul on Thing { } /// NSItemProvider -extension NSItemProvider on objc.NSURL { - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier( - objc.NSString typeIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_16fy0up( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref$1.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - objc.NSProgress? loadDataWithTypeIdentifier( - objc.NSString typeIdentifier, { - required objc.ObjCBlock - forItemProviderCompletionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - final _$$ref$2 = forItemProviderCompletionHandler.ref; - objc.checkOsVersionInternal( - 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSProgress.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - objc.NSArray get writableTypeIdentifiersForItemProvider { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'writableTypeIdentifiersForItemProvider', - ); - } - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier$1( - objc.NSString typeIdentifier, - ) { - final _$$ref = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_16fy0up( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSURL? objectWithItemProviderData( - objc.NSData data, { - required objc.NSString typeIdentifier, - }) { - final _$$ref = data.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _class_NSURL, - _sel_objectWithItemProviderData_typeIdentifier_error_, - _$$ref.pointer, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// readableTypeIdentifiersForItemProvider - static objc.NSArray getReadableTypeIdentifiersForItemProvider() { - objc.checkOsVersionInternal( - 'NSURL.readableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSURL, - _sel_readableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { - objc.checkOsVersionInternal( - 'NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSURL, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} +extension NSItemProvider on objc.NSURL {} /// NSPromisedItems -extension NSPromisedItems on objc.NSURL { - /// checkPromisedItemIsReachableAndReturnError: - bool checkPromisedItemIsReachableAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.checkPromisedItemIsReachableAndReturnError:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1dom33q( - _$$ref.pointer, - _sel_checkPromisedItemIsReachableAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// getPromisedItemResourceValue:forKey:error: - bool getPromisedItemResourceValue( - ffi.Pointer> value, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - objc.checkOsVersionInternal( - 'NSURL.getPromisedItemResourceValue:forKey:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1j9bhml( - _$$ref.pointer, - _sel_getPromisedItemResourceValue_forKey_error_, - value, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// promisedItemResourceValuesForKeys:error: - objc.NSDictionary? promisedItemResourceValuesForKeys(objc.NSArray keys) { - final _$$ref = object$.ref; - final _$$ref$1 = keys.ref; - objc.checkOsVersionInternal( - 'NSURL.promisedItemResourceValuesForKeys:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.pointer, - _sel_promisedItemResourceValuesForKeys_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } -} +extension NSPromisedItems on objc.NSURL {} /// NSString extension NSString on Thing { @@ -544,552 +274,13 @@ extension NSString on Thing { } /// NSURLCategory -extension NSURLCategory on objc.NSURL { - /// extensionMethod - int extensionMethod() { - final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_extensionMethod); - } -} +extension NSURLCategory on objc.NSURL {} /// NSURLLoading -extension NSURLLoading on objc.NSURL { - /// URLHandleUsingCache: - @Deprecated('Use NSURLConnection instead') - objc.NSURLHandle? URLHandleUsingCache(bool shouldUseCache) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLHandleUsingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1t6aok9( - _$$ref.pointer, - _sel_URLHandleUsingCache_, - shouldUseCache, - ); - return $ret.address == 0 - ? null - : objc.NSURLHandle.fromPointer($ret, retain: true, release: true); - } - - /// loadResourceDataNotifyingClient:usingCache: - @Deprecated('Use NSURLConnection instead') - void loadResourceDataNotifyingClient( - objc.ObjCObject client, { - required bool usingCache, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = client.ref; - objc.checkOsVersionInternal( - 'NSURL.loadResourceDataNotifyingClient:usingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_6p7ndb( - _$$ref.pointer, - _sel_loadResourceDataNotifyingClient_usingCache_, - _$$ref$1.pointer, - usingCache, - ); - } - - /// propertyForKey: - @Deprecated('Use NSURLConnection instead') - objc.ObjCObject? propertyForKey(objc.NSString propertyKey) { - final _$$ref = object$.ref; - final _$$ref$1 = propertyKey.ref; - objc.checkOsVersionInternal( - 'NSURL.propertyForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_propertyForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// resourceDataUsingCache: - @Deprecated('Use NSURLConnection instead') - objc.NSData? resourceDataUsingCache(bool shouldUseCache) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.resourceDataUsingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1t6aok9( - _$$ref.pointer, - _sel_resourceDataUsingCache_, - shouldUseCache, - ); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// setProperty:forKey: - @Deprecated('Use NSURLConnection instead') - bool setProperty(objc.ObjCObject property, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = property.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSURL.setProperty:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_setProperty_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// setResourceData: - @Deprecated('Use NSURLConnection instead') - bool setResourceData(objc.NSData data) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - objc.checkOsVersionInternal( - 'NSURL.setResourceData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_setResourceData_, - _$$ref$1.pointer, - ); - } -} +extension NSURLLoading on objc.NSURL {} /// NSURLPathUtilities -extension NSURLPathUtilities on objc.NSURL { - /// URLByAppendingPathComponent: - objc.NSURL? URLByAppendingPathComponent(objc.NSString pathComponent) { - final _$$ref = object$.ref; - final _$$ref$1 = pathComponent.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathComponent:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_URLByAppendingPathComponent_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByAppendingPathComponent:isDirectory: - objc.NSURL? URLByAppendingPathComponent$1( - objc.NSString pathComponent, { - required bool isDirectory, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = pathComponent.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathComponent:isDirectory:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.pointer, - _sel_URLByAppendingPathComponent_isDirectory_, - _$$ref$1.pointer, - isDirectory, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByAppendingPathExtension: - objc.NSURL? URLByAppendingPathExtension(objc.NSString pathExtension) { - final _$$ref = object$.ref; - final _$$ref$1 = pathExtension.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathExtension:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_URLByAppendingPathExtension_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByDeletingLastPathComponent - objc.NSURL? get URLByDeletingLastPathComponent { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByDeletingLastPathComponent', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByDeletingLastPathComponent, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByDeletingPathExtension - objc.NSURL? get URLByDeletingPathExtension { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByDeletingPathExtension', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByDeletingPathExtension, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByResolvingSymlinksInPath - objc.NSURL? get URLByResolvingSymlinksInPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByResolvingSymlinksInPath', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByResolvingSymlinksInPath, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByStandardizingPath - objc.NSURL? get URLByStandardizingPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByStandardizingPath', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByStandardizingPath, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// checkResourceIsReachableAndReturnError: - bool checkResourceIsReachableAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.checkResourceIsReachableAndReturnError:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1dom33q( - _$$ref.pointer, - _sel_checkResourceIsReachableAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// lastPathComponent - objc.NSString? get lastPathComponent { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.lastPathComponent', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// pathComponents - objc.NSArray? get pathComponents { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.pathComponents', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// pathExtension - objc.NSString? get pathExtension { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.pathExtension', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// fileURLWithPathComponents: - static objc.NSURL? fileURLWithPathComponents(objc.NSArray components) { - final _$$ref = components.ref; - objc.checkOsVersionInternal( - 'NSURL.fileURLWithPathComponents:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSURL, - _sel_fileURLWithPathComponents_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSData_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSData.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_l3cf7j_wrapListenerBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x5cg0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_l3cf7j_wrapBlockingBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x5cg0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension - on objc.ObjCBlock { - void call(objc.NSData? arg0, objc.NSError? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} +extension NSURLPathUtilities on objc.NSURL {} /// StaticAndInstanceMethodsWithSameNameCategory extension StaticAndInstanceMethodsWithSameNameCategory on Thing { @@ -1211,50 +402,6 @@ extension Thing$Methods on Thing { } } -extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. - _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. - _BlockArgs_x5cg0.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_x5cg0, - ); -} - -extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { - objc.NSData? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - @ffi.Native>( symbol: 'OBJC_CLASS_\$_ChildOfNSString', ) @@ -1299,16 +446,6 @@ final _class_Thing = objc.getClass( _class_Thing_raw, ).cast(), ); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__l3cf7j_BlockArgs_pfv6jd', -) -external ffi.Pointer _class__BlockArgs_x5cg0_raw; -final _class__BlockArgs_x5cg0 = objc.getClass( - "_l3cf7j_BlockArgs_pfv6jd", - () => ffi.Native.addressOf>( - _class__BlockArgs_x5cg0_raw, - ).cast(), -); final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1324,42 +461,6 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_16fy0up = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_17amj0z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1394,23 +495,6 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1dom33q = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1426,86 +510,6 @@ final _objc_msgSend_1gcq84o = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1j9bhml = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1lsax7n = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); final _objc_msgSend_1q0lyci = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1542,42 +546,6 @@ final _objc_msgSend_1sotr3r = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1t6aok9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_6p7ndb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1593,49 +561,6 @@ final _objc_msgSend_91o635 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_r0bo0s = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_URLByAppendingPathComponent_ = objc.registerName( - "URLByAppendingPathComponent:", -); -late final _sel_URLByAppendingPathComponent_isDirectory_ = objc.registerName( - "URLByAppendingPathComponent:isDirectory:", -); -late final _sel_URLByAppendingPathExtension_ = objc.registerName( - "URLByAppendingPathExtension:", -); -late final _sel_URLByDeletingLastPathComponent = objc.registerName( - "URLByDeletingLastPathComponent", -); -late final _sel_URLByDeletingPathExtension = objc.registerName( - "URLByDeletingPathExtension", -); -late final _sel_URLByResolvingSymlinksInPath = objc.registerName( - "URLByResolvingSymlinksInPath", -); -late final _sel_URLByStandardizingPath = objc.registerName( - "URLByStandardizingPath", -); -late final _sel_URLHandleUsingCache_ = objc.registerName( - "URLHandleUsingCache:", -); late final _sel_add_Y_ = objc.registerName("add:Y:"); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); @@ -1645,59 +570,16 @@ late final _sel_anonymousCategoryMethod = objc.registerName( late final _sel_anonymousCategoryStaticMethod = objc.registerName( "anonymousCategoryStaticMethod", ); -late final _sel_arg0 = objc.registerName("arg0"); -late final _sel_arg1 = objc.registerName("arg1"); -late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( - "checkPromisedItemIsReachableAndReturnError:", -); -late final _sel_checkResourceIsReachableAndReturnError_ = objc.registerName( - "checkResourceIsReachableAndReturnError:", -); -late final _sel_extensionMethod = objc.registerName("extensionMethod"); -late final _sel_fileURLWithPathComponents_ = objc.registerName( - "fileURLWithPathComponents:", -); -late final _sel_getPromisedItemResourceValue_forKey_error_ = objc.registerName( - "getPromisedItemResourceValue:forKey:error:", -); late final _sel_init = objc.registerName("init"); late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); late final _sel_instancetypeMethod = objc.registerName("instancetypeMethod"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = - objc.registerName( - "itemProviderVisibilityForRepresentationWithTypeIdentifier:", - ); -late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); -late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = - objc.registerName( - "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", - ); -late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( - "loadResourceDataNotifyingClient:usingCache:", -); late final _sel_method = objc.registerName("method"); late final _sel_mul_Y_ = objc.registerName("mul:Y:"); late final _sel_new = objc.registerName("new"); late final _sel_nsStringExtension = objc.registerName("nsStringExtension"); -late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc - .registerName("objectWithItemProviderData:typeIdentifier:error:"); -late final _sel_pathComponents = objc.registerName("pathComponents"); -late final _sel_pathExtension = objc.registerName("pathExtension"); -late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( - "promisedItemResourceValuesForKeys:error:", -); -late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); late final _sel_protoMethod = objc.registerName("protoMethod"); -late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( - "readableTypeIdentifiersForItemProvider", -); -late final _sel_resourceDataUsingCache_ = objc.registerName( - "resourceDataUsingCache:", -); late final _sel_sameNameMethod = objc.registerName("sameNameMethod"); -late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); -late final _sel_setResourceData_ = objc.registerName("setResourceData:"); late final _sel_someProperty = objc.registerName("someProperty"); late final _sel_staticMethod = objc.registerName("staticMethod"); late final _sel_staticProtoMethod = objc.registerName("staticProtoMethod"); @@ -1705,9 +587,6 @@ late final _sel_sub_Y_ = objc.registerName("sub:Y:"); late final _sel_supportsSecureCoding = objc.registerName( "supportsSecureCoding", ); -late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( - "writableTypeIdentifiersForItemProvider", -); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m deleted file mode 100644 index f0761e700f..0000000000 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m +++ /dev/null @@ -1,111 +0,0 @@ -#include -#import -#import -#import "category_test.h" -#import "category_test.h" - -#if !__has_feature(objc_arc) -#error "This file must be compiled with ARC enabled" -#endif - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wundeclared-selector" - -typedef struct { - int64_t version; - void* (*newWaiter)(void); - void (*awaitWaiter)(void*); - void* (*currentIsolate)(void); - void (*enterIsolate)(void*); - void (*exitIsolate)(void); - int64_t (*getMainPortId)(void); - bool (*getCurrentThreadOwnsIsolate)(int64_t); - void (*invokeListenerPortBlock)(int64_t port, void*); - void (*invokeBlockingPortBlock)(int64_t port, void*, void*); -} DOBJC_Context; - -id objc_retainBlock(id); - -#define BLOCKING_BLOCK_IMPL(ctx, TYPE, SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ - assert(ctx->version >= 1); \ - void* targetIsolate = ctx->currentIsolate(); \ - int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ - __block __weak TYPE weakSelfBlock = nil; \ - TYPE strongSelfBlock = [SIG { \ - void* currentIsolate = ctx->currentIsolate(); \ - bool mayEnterIsolate = \ - currentIsolate == NULL && \ - ctx->getCurrentThreadOwnsIsolate != NULL && \ - ctx->getCurrentThreadOwnsIsolate(targetPort); \ - if (currentIsolate == targetIsolate || mayEnterIsolate) { \ - if (mayEnterIsolate) { \ - ctx->enterIsolate(targetIsolate); \ - } \ - INVOKE_DIRECT; \ - if (mayEnterIsolate) { \ - ctx->exitIsolate(); \ - } \ - } else { \ - void* waiter = ctx->newWaiter(); \ - TYPE selfRetain = [weakSelfBlock copy]; \ - INVOKE_LISTENER; \ - ctx->awaitWaiter(waiter); \ - (void)selfRetain; \ - } \ - } copy]; \ - weakSelfBlock = strongSelfBlock; \ - return strongSelfBlock; - - -__attribute__((visibility("default"))) -@interface _l3cf7j_BlockArgs_pfv6jd : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property (strong) id arg1; -@end -@implementation _l3cf7j_BlockArgs_pfv6jd -@end - -typedef void (^_ListenerTrampoline)(id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _l3cf7j_wrapListenerBlock_pfv6jd( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline weakSelfBlock = nil; - _ListenerTrampoline strongSelfBlock = [^void(id arg0, id arg1) { - @autoreleasepool { - _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline)(void * waiter, id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _l3cf7j_wrapBlockingBlock_pfv6jd(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(id arg0, id arg1), { - @autoreleasepool { - _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} -#undef BLOCKING_BLOCK_IMPL - -#pragma clang diagnostic pop diff --git a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart index 2afa773d54..33bd3c91f6 100644 --- a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart @@ -36,62 +36,9 @@ extension type BaseClass._(objc.ObjCObject object$) _sel_isKindOfClass_, _class_BaseClass, ); - - /// alloc - static BaseClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_alloc); - return BaseClass.fromPointer($ret, retain: false, release: true); - } - - /// allocWithZone: - static BaseClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_BaseClass, - _sel_allocWithZone_, - zone, - ); - return BaseClass.fromPointer($ret, retain: false, release: true); - } - - /// create - static BaseClass create() { - final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_create); - return BaseClass.fromPointer($ret, retain: true, release: true); - } - - /// new - static BaseClass new$() { - final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_new); - return BaseClass.fromPointer($ret, retain: false, release: true); - } - - /// Returns a new instance of BaseClass constructed with the default `new` method. - BaseClass() : this.as(new$().object$); } -extension BaseClass$Methods on BaseClass { - /// getSelf - BaseClass getSelf() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_getSelf); - return BaseClass.fromPointer($ret, retain: true, release: true); - } - - /// init - BaseClass init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'BaseClass.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return BaseClass.fromPointer($ret, retain: false, release: true); - } -} +extension BaseClass$Methods on BaseClass {} /// ChildClass extension type ChildClass._(objc.ObjCObject object$) @@ -179,12 +126,6 @@ extension ChildClass$Methods on ChildClass { ); return ChildClass.fromPointer($ret, retain: false, release: true); } - - /// setField: - set field(int value) { - final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setField_, value); - } } @ffi.Native>(symbol: 'OBJC_CLASS_\$_BaseClass') @@ -237,23 +178,6 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -294,6 +218,5 @@ late final _sel_getSelf = objc.registerName("getSelf"); late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); -late final _sel_setField_ = objc.registerName("setField:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart index 486f0fa35c..44562d2929 100644 --- a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart @@ -36,49 +36,9 @@ extension type IsInstanceBaseClass._(objc.ObjCObject object$) _sel_isKindOfClass_, _class_IsInstanceBaseClass, ); - - /// alloc - static IsInstanceBaseClass alloc() { - final $ret = _objc_msgSend_151sglz(_class_IsInstanceBaseClass, _sel_alloc); - return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); - } - - /// allocWithZone: - static IsInstanceBaseClass allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_IsInstanceBaseClass, - _sel_allocWithZone_, - zone, - ); - return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); - } - - /// new - static IsInstanceBaseClass new$() { - final $ret = _objc_msgSend_151sglz(_class_IsInstanceBaseClass, _sel_new); - return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); - } - - /// Returns a new instance of IsInstanceBaseClass constructed with the default `new` method. - IsInstanceBaseClass() : this.as(new$().object$); } -extension IsInstanceBaseClass$Methods on IsInstanceBaseClass { - /// init - IsInstanceBaseClass init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'IsInstanceBaseClass.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); - } -} +extension IsInstanceBaseClass$Methods on IsInstanceBaseClass {} /// IsInstanceChildClass extension type IsInstanceChildClass._(objc.ObjCObject object$) diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart index fb2451e90b..ee3eebc875 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart @@ -270,12 +270,6 @@ extension Sendable$Methods on Sendable { return Sendable.fromPointer($ret, retain: false, release: true); } - /// setValue: - set value(int value) { - final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setValue_, value); - } - /// value int get value { final _$$ref = object$.ref; @@ -366,23 +360,6 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -439,7 +416,6 @@ late final _sel_dummyMethodToForceGenerationOfListener = objc.registerName( late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); -late final _sel_setValue_ = objc.registerName("setValue:"); late final _sel_value = objc.registerName("value"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart index 9ddfe020c2..4093cc9f87 100644 --- a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart @@ -128,50 +128,11 @@ extension Foo$Methods on Foo { return _objc_msgSend_1ovaulg(_$$ref.pointer, _sel_selVal); } - /// setBoolVal: - set boolVal(bool value) { - final _$$ref = object$.ref; - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setBoolVal_, value); - } - - /// setClassVal: - set classVal(objc.ObjCObject value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setClassVal_, _$$ref$1.pointer); - } - /// setDoubleVal: void setDoubleVal(double x) { final _$$ref = object$.ref; _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setDoubleVal_, x); } - - /// setIdVal: - set idVal(objc.ObjCObject value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setIdVal_, _$$ref$1.pointer); - } - - /// setIntVal: - set intVal(int value) { - final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setIntVal_, value); - } - - /// setObjVal: - set objVal(objc.NSObject value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setObjVal_, _$$ref$1.pointer); - } - - /// setSelVal: - set selVal(ffi.Pointer value) { - final _$$ref = object$.ref; - _objc_msgSend_1d9e4oe(_$$ref.pointer, _sel_setSelVal_, value); - } } @ffi.Native>(symbol: 'OBJC_CLASS_\$_Foo') @@ -214,23 +175,6 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -248,23 +192,6 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1d9e4oe = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -295,23 +222,6 @@ final _objc_msgSend_1ovaulg = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); final _objc_msgSend_1t47e0u = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -380,23 +290,6 @@ final _objc_msgSend_oa8mke = objc.msgSendPointer double, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_boolVal = objc.registerName("boolVal"); @@ -412,12 +305,6 @@ late final _sel_multiply_withOtherFoo_ = objc.registerName( late final _sel_new = objc.registerName("new"); late final _sel_objVal = objc.registerName("objVal"); late final _sel_selVal = objc.registerName("selVal"); -late final _sel_setBoolVal_ = objc.registerName("setBoolVal:"); -late final _sel_setClassVal_ = objc.registerName("setClassVal:"); late final _sel_setDoubleVal_ = objc.registerName("setDoubleVal:"); -late final _sel_setIdVal_ = objc.registerName("setIdVal:"); -late final _sel_setIntVal_ = objc.registerName("setIntVal:"); -late final _sel_setObjVal_ = objc.registerName("setObjVal:"); -late final _sel_setSelVal_ = objc.registerName("setSelVal:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart index f808138798..ec24201303 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart @@ -252,49 +252,9 @@ extension type NullableIntermediate._(objc.ObjCObject object$) _sel_isKindOfClass_, _class_NullableIntermediate, ); - - /// alloc - static NullableIntermediate alloc() { - final $ret = _objc_msgSend_151sglz(_class_NullableIntermediate, _sel_alloc); - return NullableIntermediate.fromPointer($ret, retain: false, release: true); - } - - /// allocWithZone: - static NullableIntermediate allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_NullableIntermediate, - _sel_allocWithZone_, - zone, - ); - return NullableIntermediate.fromPointer($ret, retain: false, release: true); - } - - /// new - static NullableIntermediate new$() { - final $ret = _objc_msgSend_151sglz(_class_NullableIntermediate, _sel_new); - return NullableIntermediate.fromPointer($ret, retain: false, release: true); - } - - /// Returns a new instance of NullableIntermediate constructed with the default `new` method. - NullableIntermediate() : this.as(new$().object$); } -extension NullableIntermediate$Methods on NullableIntermediate { - /// init - NullableIntermediate init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NullableIntermediate.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return NullableIntermediate.fromPointer($ret, retain: false, release: true); - } -} +extension NullableIntermediate$Methods on NullableIntermediate {} @ffi.Native>( symbol: 'OBJC_CLASS_\$_NullableBase', diff --git a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart index ba8f6f1664..b401c905cd 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart @@ -165,17 +165,6 @@ extension NullableInterface$Methods on NullableInterface { ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); } - - /// setNullableObjectProperty: - set nullableObjectProperty(objc.NSObject? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setNullableObjectProperty_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } } @ffi.Native>( @@ -275,23 +264,6 @@ final _objc_msgSend_1t6aok9 = objc.msgSendPointer bool, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_init = objc.registerName("init"); @@ -315,8 +287,5 @@ late final _sel_returnNil_ = objc.registerName("returnNil:"); late final _sel_returnNullableAlias_ = objc.registerName( "returnNullableAlias:", ); -late final _sel_setNullableObjectProperty_ = objc.registerName( - "setNullableObjectProperty:", -); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart index c153f673a9..895353957d 100644 --- a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart @@ -101,15 +101,6 @@ extension type PropertyInterface._(objc.ObjCObject object$) return UndefinedTemplate.fromPointer($ret, retain: true, release: true); } - /// setClassReadWriteProperty: - static void setClassReadWriteProperty(int value) { - _objc_msgSend_1bqef4y( - _class_PropertyInterface, - _sel_setClassReadWriteProperty_, - value, - ); - } - /// Returns a new instance of PropertyInterface constructed with the default `new` method. PropertyInterface() : this.as(new$().object$); } @@ -164,30 +155,6 @@ extension PropertyInterface$Methods on PropertyInterface { return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_readWriteProperty); } - /// setDoubleProperty: - set doubleProperty(double value) { - final _$$ref = object$.ref; - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setDoubleProperty_, value); - } - - /// setFloatProperty: - set floatProperty(double value) { - final _$$ref = object$.ref; - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setFloatProperty_, value); - } - - /// setReadWriteProperty: - set readWriteProperty(int value) { - final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setReadWriteProperty_, value); - } - - /// setStructProperty: - set structProperty(Vec4 value) { - final _$$ref = object$.ref; - _objc_msgSend_188ryij(_$$ref.pointer, _sel_setStructProperty_, value); - } - /// structProperty Vec4 get structProperty { final _$$ref = object$.ref; @@ -271,23 +238,6 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_188ryij = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - Vec4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - Vec4, - ) - >(); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -305,23 +255,6 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -414,23 +347,6 @@ final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer ffi.Pointer, ) >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); final _objc_msgSend_o6r21b = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -463,23 +379,6 @@ final _objc_msgSend_o6r21bStret = objc.msgSendStretPointer ffi.Pointer, ) >(); -final _objc_msgSend_v5hmet = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_classReadOnlyProperty = objc.registerName( @@ -498,15 +397,6 @@ late final _sel_readOnlyProperty = objc.registerName("readOnlyProperty"); late final _sel_readWriteProperty = objc.registerName("readWriteProperty"); late final _sel_regressGH1268 = objc.registerName("regressGH1268"); late final _sel_regressGH436 = objc.registerName("regressGH436"); -late final _sel_setClassReadWriteProperty_ = objc.registerName( - "setClassReadWriteProperty:", -); -late final _sel_setDoubleProperty_ = objc.registerName("setDoubleProperty:"); -late final _sel_setFloatProperty_ = objc.registerName("setFloatProperty:"); -late final _sel_setReadWriteProperty_ = objc.registerName( - "setReadWriteProperty:", -); -late final _sel_setStructProperty_ = objc.registerName("setStructProperty:"); late final _sel_structProperty = objc.registerName("structProperty"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart index 79e372972b..6856adee19 100644 --- a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart @@ -219,45 +219,12 @@ extension RefCountTestObject$Methods on RefCountTestObject { return RefCountTestObject.fromPointer($ret, retain: false, release: true); } - /// setAssignedProperty: - set assignedProperty(RefCountTestObject value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setAssignedProperty_, - _$$ref$1.pointer, - ); - } - - /// setCopiedProperty: - set copiedProperty(RefCountTestObject value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setCopiedProperty_, - _$$ref$1.pointer, - ); - } - /// setCounter: void setCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; _objc_msgSend_yhkuco(_$$ref.pointer, _sel_setCounter_, _counter); } - /// setRetainedProperty: - set retainedProperty(RefCountTestObject value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setRetainedProperty_, - _$$ref$1.pointer, - ); - } - /// unownedReference RefCountTestObject unownedReference() { final _$$ref = object$.ref; @@ -495,23 +462,6 @@ final _objc_msgSend_pysgoz = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -552,14 +502,7 @@ late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); late final _sel_refCount = objc.registerName("refCount"); late final _sel_retainedProperty = objc.registerName("retainedProperty"); late final _sel_returnsRetained = objc.registerName("returnsRetained"); -late final _sel_setAssignedProperty_ = objc.registerName( - "setAssignedProperty:", -); -late final _sel_setCopiedProperty_ = objc.registerName("setCopiedProperty:"); late final _sel_setCounter_ = objc.registerName("setCounter:"); -late final _sel_setRetainedProperty_ = objc.registerName( - "setRetainedProperty:", -); late final _sel_unownedReference = objc.registerName("unownedReference"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart index ea453eea06..a6ed4e4198 100644 --- a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart @@ -110,18 +110,6 @@ extension Renamed$Methods on Renamed { return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_renamedProperty); } - /// setProperty: - set property(int value) { - final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setProperty_, value); - } - - /// setRenamedProperty: - set reProp(int value) { - final _$$ref = object$.ref; - _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setRenamedProperty_, value); - } - /// toString objc.NSString toString$1() { final _$$ref = object$.ref; @@ -170,23 +158,6 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1bqef4y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -249,8 +220,6 @@ late final _sel_renamedMethod_otherArg_ = objc.registerName( "renamedMethod:otherArg:", ); late final _sel_renamedProperty = objc.registerName("renamedProperty"); -late final _sel_setProperty_ = objc.registerName("setProperty:"); -late final _sel_setRenamedProperty_ = objc.registerName("setRenamedProperty:"); late final _sel_toString = objc.registerName("toString"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart index 1b66ae4d68..4a87569c29 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart @@ -691,17 +691,6 @@ extension NSTextList$Methods on NSTextList { return objc.NSString.fromPointer($ret, retain: true, release: true); } - /// setStartingItemNumber: - set startingItemNumber(int value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.setStartingItemNumber:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setStartingItemNumber_, value); - } - /// startingItemNumber int get startingItemNumber { final _$$ref = object$.ref; @@ -964,51 +953,6 @@ extension UIPickerView$Methods on UIPickerView { ); } - /// setDataSource: - set dataSource(UIPickerViewDataSource? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'UIPickerView.setDataSource:', - iOS: (false, (2, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setDataSource_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setDelegate: - set delegate(UIPickerViewDelegate? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'UIPickerView.setDelegate:', - iOS: (false, (2, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setDelegate_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setShowsSelectionIndicator: - @Deprecated('This property has no effect on iOS 7 and later.') - set showsSelectionIndicator(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'UIPickerView.setShowsSelectionIndicator:', - iOS: (false, (2, 0, 0)), - ); - _objc_msgSend_1s56lr9( - _$$ref.pointer, - _sel_setShowsSelectionIndicator_, - value, - ); - } - /// showsSelectionIndicator @Deprecated('This property has no effect on iOS 7 and later.') bool get showsSelectionIndicator { @@ -1309,23 +1253,6 @@ final _objc_msgSend_1pl9qdv = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); final _objc_msgSend_1sotr3r = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1567,15 +1494,7 @@ late final _sel_selectRow_inComponent_animated_ = objc.registerName( late final _sel_selectedRowInComponent_ = objc.registerName( "selectedRowInComponent:", ); -late final _sel_setDataSource_ = objc.registerName("setDataSource:"); -late final _sel_setDelegate_ = objc.registerName("setDelegate:"); late final _sel_setMode_ = objc.registerName("setMode:"); -late final _sel_setShowsSelectionIndicator_ = objc.registerName( - "setShowsSelectionIndicator:", -); -late final _sel_setStartingItemNumber_ = objc.registerName( - "setStartingItemNumber:", -); late final _sel_showsSelectionIndicator = objc.registerName( "showsSelectionIndicator", ); diff --git a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart index 7b04acef7b..fd0660ea11 100644 --- a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart @@ -85,13 +85,6 @@ extension AnotherClass$Methods on AnotherClass { final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_property); return SomeClass.fromPointer($ret, retain: true, release: true); } - - /// setProperty: - set property(DartSomeClassPtr value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setProperty_, _$$ref$1.pointer); - } } /// SomeClass @@ -232,29 +225,11 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); late final _sel_property = objc.registerName("property"); -late final _sel_setProperty_ = objc.registerName("setProperty:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; From ed80eb276564c1cb33de23c5749ec55ee91693cf Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 14:10:53 +1000 Subject: [PATCH 13/54] manual clean up --- .../libclang-example/generated_bindings.dart | 57 +- .../objective_c/avf_audio_bindings.dart | 308040 +-------------- .../example/swift/swift_api_bindings.dart | 24 + .../lib/src/code_generator/binding.dart | 6 - .../lib/src/code_generator/compound.dart | 3 +- .../lib/src/code_generator/constant.dart | 5 +- .../lib/src/code_generator/cpp_class.dart | 4 +- .../lib/src/code_generator/enum_class.dart | 3 +- pkgs/ffigen/lib/src/code_generator/func.dart | 3 +- .../ffigen/lib/src/code_generator/global.dart | 3 +- .../objc_built_in_functions.dart | 41 +- .../lib/src/code_generator/objc_category.dart | 3 +- .../src/code_generator/objc_interface.dart | 3 +- .../lib/src/code_generator/objc_methods.dart | 2 +- .../lib/src/code_generator/objc_protocol.dart | 3 +- .../ffigen/lib/src/code_generator/struct.dart | 1 - pkgs/ffigen/lib/src/code_generator/type.dart | 1 - .../lib/src/code_generator/typealias.dart | 8 +- pkgs/ffigen/lib/src/code_generator/union.dart | 1 - .../lib/src/config_provider/public_ast.dart | 3 +- .../clang_bindings/clang_bindings.dart | 53 +- pkgs/ffigen/lib/src/header_parser/parser.dart | 18 - .../lib/src/visitor/apply_config_filters.dart | 44 +- .../_expected_boolean_dartbool_bindings.dart | 36 - .../_expected_constant_bindings.dart | 4 - .../_expected_enumclass_bindings.dart | 19 - ...xpected_enumclass_duplicates_bindings.dart | 29 - ...ed_enumclass_func_and_struct_bindings.dart | 94 - ..._expected_enumclass_integers_bindings.dart | 53 - .../_expected_function_bindings.dart | 72 - ..._expected_function_ffiNative_bindings.dart | 27 - .../_expected_function_n_struct_bindings.dart | 51 - .../_expected_global_bindings.dart | 48 - .../_expected_global_native_bindings.dart | 24 - ...internal_conflict_resolution_bindings.dart | 72 - .../_expected_native_symbol_bindings.dart | 10 - .../_expected_packed_structs_bindings.dart | 66 - ...ed_struct_allocate_collision_bindings.dart | 17 - .../_expected_struct_bindings.dart | 59 - .../_expected_typealias_bindings.dart | 60 - .../_expected_unions_bindings.dart | 60 - ...expected_decl_decl_collision_bindings.dart | 78 - ...ecl_symbol_address_collision_bindings.dart | 54 - ...d_reserved_keyword_collision_bindings.dart | 67 - .../_expected_dart_handle_bindings.dart | 5 +- ...expected_native_func_typedef_bindings.dart | 13 +- .../_expected_record_use_bindings.dart | 10 - .../_expected_record_use_mapping.dart | 7 - .../_expected_sort_bindings.dart | 13 - ..._expected_struct_fptr_fields_bindings.dart | 4 +- .../_expected_typedef_bindings.dart | 4 +- .../_expected_cjson_bindings.dart | 1295 - .../_expected_libclang_bindings.dart | 9122 - .../_expected_sqlite_bindings.dart | 14427 - .../native_objc_test/arc_test_bindings.dart | 57 + .../block_annotation_test_bindings.dart | 92 + .../native_objc_test/block_test_bindings.dart | 92 + .../category_test_bindings.dart | 1131 +- .../native_objc_test/category_test_bindings.m | 111 + .../inherited_instancetype_test_bindings.dart | 79 +- .../is_instance_test_bindings.dart | 42 +- .../isolate_test_bindings.dart | 24 + .../native_objc_test_bindings.dart | 113 + .../nullable_inheritance_test_bindings.dart | 42 +- .../nullable_test_bindings.dart | 31 + .../property_test_bindings.dart | 110 + .../ref_count_test_bindings.dart | 57 + .../rename_test_bindings.dart | 31 + .../sdk_variable_test_bindings.dart | 81 + .../typedef_test_bindings.dart | 25 + 70 files changed, 3330 insertions(+), 333017 deletions(-) delete mode 100644 pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_mapping.dart create mode 100644 pkgs/ffigen/test/native_objc_test/category_test_bindings.m diff --git a/pkgs/ffigen/example/libclang-example/generated_bindings.dart b/pkgs/ffigen/example/libclang-example/generated_bindings.dart index 207c7c3e0d..3af7ee5463 100644 --- a/pkgs/ffigen/example/libclang-example/generated_bindings.dart +++ b/pkgs/ffigen/example/libclang-example/generated_bindings.dart @@ -8230,19 +8230,15 @@ typedef CXCursorSet = ffi.Pointer; /// The visitor should return one of the \c CXChildVisitResult values /// to direct clang_visitCursorChildren(). typedef CXCursorVisitor = - ffi.Pointer>; -typedef CXCursorVisitorFunction = - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ); -typedef DartCXCursorVisitorFunction = - CXChildVisitResult Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ) + > + >; /// A single diagnostic, containing the diagnostic's severity, /// location, text, source ranges, and fix-it hints. @@ -8360,11 +8356,11 @@ enum CXEvalResultKind { /// The visitor should return one of the \c CXVisitorResult values /// to direct \c clang_Type_visitFields. typedef CXFieldVisitor = - ffi.Pointer>; -typedef CXFieldVisitorFunction = - ffi.UnsignedInt Function(CXCursor C, CXClientData client_data); -typedef DartCXFieldVisitorFunction = - CXVisitorResult Function(CXCursor C, CXClientData client_data); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor C, CXClientData client_data) + > + >; /// A particular source file that is part of a translation unit. typedef CXFile = ffi.Pointer; @@ -8905,21 +8901,16 @@ final class CXIdxObjCProtocolRefListInfo extends ffi.Struct { /// array is sorted in order of immediate inclusion. For example, /// the first element refers to the location that included 'included_file'. typedef CXInclusionVisitor = - ffi.Pointer>; -typedef CXInclusionVisitorFunction = - ffi.Void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - CXClientData client_data, - ); -typedef DartCXInclusionVisitorFunction = - void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - int include_len, - CXClientData client_data, - ); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + CXClientData client_data, + ) + > + >; /// An "index" that consists of a set of translation units that would /// typically be linked together into an executable or library. diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index db740e9a13..a5c0bfe631 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -11,307091 +11,1213 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -@ffi.Native< - OSStatus Function( - AEEventClass, - AEEventID, - DescType, - ffi.Pointer, - Size, - SInt16, - SInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEBuildAppleEvent( - int theClass, - int theID, - int addressType, - ffi.Pointer addressData, - int addressLength, - int returnID, - int transactionID, - ffi.Pointer result, - ffi.Pointer error, - ffi.Pointer paramsFmt, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEBuildDesc( - ffi.Pointer dst, - ffi.Pointer error, - ffi.Pointer src, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEBuildParameters( - ffi.Pointer event, - ffi.Pointer error, - ffi.Pointer format, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - DescType, - DescType, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AECallObjectAccessor( - int desiredClass, - ffi.Pointer containerToken, - int containerClass, - int keyForm, - ffi.Pointer keyData, - ffi.Pointer token, -); - -@ffi.Native)>() -external int AECheckIsRecord(ffi.Pointer theDesc); - -@ffi.Native< - OSErr Function(ffi.Pointer, DescType, ffi.Pointer) ->() -external int AECoerceDesc( - ffi.Pointer theAEDesc, - int toType, - ffi.Pointer result, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - Size, - DescType, - ffi.Pointer, - ) ->() -external int AECoercePtr( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - int toType, - ffi.Pointer result, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AECompareDesc( - ffi.Pointer desc1, - ffi.Pointer desc2, - ffi.Pointer resultP, -); - -@ffi.Native, ffi.Pointer)>() -external int AECountItems( - ffi.Pointer theAEDescList, - ffi.Pointer theCount, -); - -@ffi.Native< - OSErr Function( - AEEventClass, - AEEventID, - ffi.Pointer, - AEReturnID, - AETransactionID, - ffi.Pointer, - ) ->() -external int AECreateAppleEvent( - int theAEEventClass, - int theAEEventID, - ffi.Pointer target, - int returnID, - int transactionID, - ffi.Pointer result, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - Size, - ffi.Pointer, - ) ->() -external int AECreateDesc( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - ffi.Pointer result, -); - -@ffi.Native< - OSStatus Function( - OSType, - ffi.Pointer, - Size, - AEDisposeExternalUPP, - SRefCon, - ffi.Pointer, - ) ->() -external int AECreateDescFromExternalPtr( - int descriptorType, - ffi.Pointer dataPtr, - int dataLength, - AEDisposeExternalUPP disposeCallback, - SRefCon disposeRefcon, - ffi.Pointer theDesc, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, Size, Boolean, ffi.Pointer) ->() -external int AECreateList( - ffi.Pointer factoringPtr, - int factoredSize, - int isRecord, - ffi.Pointer resultList, -); - -@ffi.Native() -external AERemoteProcessResolverRef AECreateRemoteProcessResolver( - CFAllocatorRef allocator, - CFURLRef url, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEDecodeMessage( - ffi.Pointer header, - ffi.Pointer event, - ffi.Pointer reply, -); - -@ffi.Native, ffi.Long)>() -external int AEDeleteItem(ffi.Pointer theAEDescList, int index$1); - -@ffi.Native, AEKeyword)>() -external int AEDeleteParam( - ffi.Pointer theAppleEvent, - int theAEKeyword, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - AEEventClass, - AEEventID, - Boolean, - ) ->() -external int AEDeterminePermissionToAutomateTarget( - ffi.Pointer target, - int theAEEventClass, - int theAEEventID, - int askUserIfNeeded, -); - -@ffi.Native)>() -external int AEDisposeDesc(ffi.Pointer theAEDesc); - -@ffi.Native() -external void AEDisposeRemoteProcessResolver(AERemoteProcessResolverRef ref); - -@ffi.Native)>() -external int AEDisposeToken(ffi.Pointer theToken); - -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer) ->() -external int AEDuplicateDesc( - ffi.Pointer theAEDesc, - ffi.Pointer result, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, Ptr, Size, ffi.Pointer) ->() -external int AEFlattenDesc( - ffi.Pointer theAEDesc, - Ptr buffer, - int bufferSize, - ffi.Pointer actualSize, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEArrayType, - AEArrayDataPointer, - Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEGetArray( - ffi.Pointer theAEDescList, - int arrayType, - AEArrayDataPointer arrayPtr, - int maximumSize, - ffi.Pointer itemType, - ffi.Pointer itemSize, - ffi.Pointer itemCount, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - ) ->() -external int AEGetAttributeDesc( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int desiredType, - ffi.Pointer result, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - ffi.Pointer, - Size, - ffi.Pointer, - ) ->() -external int AEGetAttributePtr( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int desiredType, - ffi.Pointer typeCode, - ffi.Pointer dataPtr, - int maximumSize, - ffi.Pointer actualSize, -); - -@ffi.Native< - OSErr Function( - DescType, - DescType, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - Boolean, - ) ->() -external int AEGetCoercionHandler( - int fromType, - int toType, - ffi.Pointer handler, - ffi.Pointer handlerRefcon, - ffi.Pointer fromTypeIsDesc, - int isSysHandler, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer, Size) ->() -external int AEGetDescData( - ffi.Pointer theAEDesc, - ffi.Pointer dataPtr, - int maximumSize, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer, Size, Size) ->() -external int AEGetDescDataRange( - ffi.Pointer dataDesc, - ffi.Pointer buffer, - int offset, - int length, -); - -@ffi.Native)>() -external int AEGetDescDataSize(ffi.Pointer theAEDesc); - -@ffi.Native< - OSErr Function( - AEEventClass, - AEEventID, - ffi.Pointer, - ffi.Pointer, - Boolean, - ) ->() -external int AEGetEventHandler( - int theAEEventClass, - int theAEEventID, - ffi.Pointer handler, - ffi.Pointer handlerRefcon, - int isSysHandler, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Long, - DescType, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AEGetNthDesc( - ffi.Pointer theAEDescList, - int index$1, - int desiredType, - ffi.Pointer theAEKeyword, - ffi.Pointer result, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Long, - DescType, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - Size, - ffi.Pointer, - ) ->() -external int AEGetNthPtr( - ffi.Pointer theAEDescList, - int index$1, - int desiredType, - ffi.Pointer theAEKeyword, - ffi.Pointer typeCode, - ffi.Pointer dataPtr, - int maximumSize, - ffi.Pointer actualSize, -); - -@ffi.Native< - OSErr Function( - DescType, - DescType, - ffi.Pointer, - ffi.Pointer, - Boolean, - ) ->() -external int AEGetObjectAccessor( - int desiredClass, - int containerType, - ffi.Pointer accessor, - ffi.Pointer accessorRefcon, - int isSysHandler, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - ) ->() -external int AEGetParamDesc( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int desiredType, - ffi.Pointer result, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - ffi.Pointer, - Size, - ffi.Pointer, - ) ->() -external int AEGetParamPtr( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int desiredType, - ffi.Pointer actualType, - ffi.Pointer dataPtr, - int maximumSize, - ffi.Pointer actualSize, -); - -@ffi.Native() -external int AEGetRegisteredMachPort(); - -@ffi.Native< - OSErr Function(AEKeyword, ffi.Pointer, Boolean) ->() -external int AEGetSpecialHandler( - int functionClass, - ffi.Pointer handler, - int isSysHandler, -); - -@ffi.Native)>() -external void AEInitializeDesc(ffi.Pointer desc); - -@ffi.Native< - OSErr Function( - DescType, - DescType, - AECoercionHandlerUPP, - SRefCon, - Boolean, - Boolean, - ) ->() -external int AEInstallCoercionHandler( - int fromType, - int toType, - AECoercionHandlerUPP handler, - SRefCon handlerRefcon, - int fromTypeIsDesc, - int isSysHandler, -); - -@ffi.Native< - OSErr Function(AEEventClass, AEEventID, AEEventHandlerUPP, SRefCon, Boolean) ->() -external int AEInstallEventHandler( - int theAEEventClass, - int theAEEventID, - AEEventHandlerUPP handler, - SRefCon handlerRefcon, - int isSysHandler, -); - -@ffi.Native< - OSErr Function(DescType, DescType, OSLAccessorUPP, SRefCon, Boolean) ->() -external int AEInstallObjectAccessor( - int desiredClass, - int containerType, - OSLAccessorUPP theAccessor, - SRefCon accessorRefcon, - int isSysHandler, -); - -@ffi.Native() -external int AEInstallSpecialHandler( - int functionClass, - AEEventHandlerUPP handler, - int isSysHandler, -); - -@ffi.Native)>() -external int AEManagerInfo(int keyWord, ffi.Pointer result); - -@ffi.Native() -external int AEObjectInit(); - -@ffi.Native, ffi.Pointer)>() -external int AEPrintDescToHandle( - ffi.Pointer desc, - ffi.Pointer result, -); - -@ffi.Native)>() -external int AEProcessMessage(ffi.Pointer header); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEArrayType, - ffi.Pointer, - DescType, - Size, - ffi.Long, - ) ->() -external int AEPutArray( - ffi.Pointer theAEDescList, - int arrayType, - ffi.Pointer arrayPtr, - int itemType, - int itemSize, - int itemCount, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, AEKeyword, ffi.Pointer) ->() -external int AEPutAttributeDesc( - ffi.Pointer theAppleEvent, - int theAEKeyword, - ffi.Pointer theAEDesc, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - Size, - ) ->() -external int AEPutAttributePtr( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int typeCode, - ffi.Pointer dataPtr, - int dataSize, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Long, ffi.Pointer) ->() -external int AEPutDesc( - ffi.Pointer theAEDescList, - int index$1, - ffi.Pointer theAEDesc, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, AEKeyword, ffi.Pointer) ->() -external int AEPutParamDesc( - ffi.Pointer theAppleEvent, - int theAEKeyword, - ffi.Pointer theAEDesc, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - DescType, - ffi.Pointer, - Size, - ) ->() -external int AEPutParamPtr( - ffi.Pointer theAppleEvent, - int theAEKeyword, - int typeCode, - ffi.Pointer dataPtr, - int dataSize, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Long, - DescType, - ffi.Pointer, - Size, - ) ->() -external int AEPutPtr( - ffi.Pointer theAEDescList, - int index$1, - int typeCode, - ffi.Pointer dataPtr, - int dataSize, -); - -@ffi.Native< - CFArrayRef Function(AERemoteProcessResolverRef, ffi.Pointer) ->() -external CFArrayRef AERemoteProcessResolverGetProcesses( - AERemoteProcessResolverRef ref, - ffi.Pointer outError, -); - -@ffi.Native< - ffi.Void Function( - AERemoteProcessResolverRef, - CFRunLoopRef, - CFStringRef, - AERemoteProcessResolverCallback, - ffi.Pointer, - ) ->() -external void AERemoteProcessResolverScheduleWithRunLoop( - AERemoteProcessResolverRef ref, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, - AERemoteProcessResolverCallback callback, - ffi.Pointer ctx, -); - -@ffi.Native() -external int AERemoveCoercionHandler( - int fromType, - int toType, - AECoercionHandlerUPP handler, - int isSysHandler, -); - -@ffi.Native< - OSErr Function(AEEventClass, AEEventID, AEEventHandlerUPP, Boolean) ->() -external int AERemoveEventHandler( - int theAEEventClass, - int theAEEventID, - AEEventHandlerUPP handler, - int isSysHandler, -); - -@ffi.Native() -external int AERemoveObjectAccessor( - int desiredClass, - int containerType, - OSLAccessorUPP theAccessor, - int isSysHandler, -); - -@ffi.Native() -external int AERemoveSpecialHandler( - int functionClass, - AEEventHandlerUPP handler, - int isSysHandler, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - Size, - ffi.Pointer, - ) ->() -external int AEReplaceDescData( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - ffi.Pointer theAEDesc, -); - -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Short, ffi.Pointer) ->() -external int AEResolve( - ffi.Pointer objectSpecifier, - int callbackFlags, - ffi.Pointer theToken, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - AESendMode, - ffi.Long, - ) ->() -external int AESendMessage( - ffi.Pointer event, - ffi.Pointer reply, - int sendMode, - int timeOutInTicks, -); - -@ffi.Native< - OSErr Function( - OSLCompareUPP, - OSLCountUPP, - OSLDisposeTokenUPP, - OSLGetMarkTokenUPP, - OSLMarkUPP, - OSLAdjustMarksUPP, - OSLGetErrDescUPP, - ) ->() -external int AESetObjectCallbacks( - OSLCompareUPP myCompareProc, - OSLCountUPP myCountProc, - OSLDisposeTokenUPP myDisposeTokenProc, - OSLGetMarkTokenUPP myGetMarkTokenProc, - OSLMarkUPP myMarkProc, - OSLAdjustMarksUPP myAdjustMarksProc, - OSLGetErrDescUPP myGetErrDescProcPtr, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AESizeOfAttribute( - ffi.Pointer theAppleEvent, - int theAEKeyword, - ffi.Pointer typeCode, - ffi.Pointer dataSize, -); - -@ffi.Native)>() -external int AESizeOfFlattenedDesc(ffi.Pointer theAEDesc); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AESizeOfNthItem( - ffi.Pointer theAEDescList, - int index$1, - ffi.Pointer typeCode, - ffi.Pointer dataSize, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - AEKeyword, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AESizeOfParam( - ffi.Pointer theAppleEvent, - int theAEKeyword, - ffi.Pointer typeCode, - ffi.Pointer dataSize, -); - -@ffi.Native)>() -external int AEStreamClose(AEStreamRef ref, ffi.Pointer desc); - -@ffi.Native() -external int AEStreamCloseDesc(AEStreamRef ref); - -@ffi.Native() -external int AEStreamCloseList(AEStreamRef ref); - -@ffi.Native() -external int AEStreamCloseRecord(AEStreamRef ref); - -@ffi.Native< - AEStreamRef Function( - AEEventClass, - AEEventID, - DescType, - ffi.Pointer, - Size, - SInt16, - SInt32, - ) ->() -external AEStreamRef AEStreamCreateEvent( - int clazz, - int id, - int targetType, - ffi.Pointer targetData, - int targetLength, - int returnID, - int transactionID, -); - -@ffi.Native() -external AEStreamRef AEStreamOpen(); - -@ffi.Native() -external int AEStreamOpenDesc(AEStreamRef ref, int newType); - -@ffi.Native)>() -external AEStreamRef AEStreamOpenEvent(ffi.Pointer event); - -@ffi.Native() -external int AEStreamOpenKeyDesc(AEStreamRef ref, int key, int newType); - -@ffi.Native() -external int AEStreamOpenList(AEStreamRef ref); - -@ffi.Native() -external int AEStreamOpenRecord(AEStreamRef ref, int newType); - -@ffi.Native() -external int AEStreamOptionalParam(AEStreamRef ref, int key); - -@ffi.Native() -external int AEStreamSetRecordType(AEStreamRef ref, int newType); - -@ffi.Native)>() -external int AEStreamWriteAEDesc( - AEStreamRef ref, - ffi.Pointer desc, -); - -@ffi.Native, Size)>() -external int AEStreamWriteData( - AEStreamRef ref, - ffi.Pointer data, - int length, -); - -@ffi.Native< - OSStatus Function(AEStreamRef, DescType, ffi.Pointer, Size) ->() -external int AEStreamWriteDesc( - AEStreamRef ref, - int newType, - ffi.Pointer data, - int length, -); - -@ffi.Native() -external int AEStreamWriteKey(AEStreamRef ref, int key); -@ffi.Native< - OSStatus Function( - AEStreamRef, - AEKeyword, - DescType, - ffi.Pointer, - Size, - ) ->() -external int AEStreamWriteKeyDesc( - AEStreamRef ref, - int key, - int newType, - ffi.Pointer data, - int length, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int AEUnflattenDesc( - ffi.Pointer buffer, - ffi.Pointer result, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Size, ffi.Pointer) ->() -external int AEUnflattenDescFromBytes( - ffi.Pointer buffer, - int bufferLen, - ffi.Pointer result, -); - -@ffi.Native>( - symbol: 'AVAudioBitRateStrategy_Constant', -) -external final ffi.Pointer -_AVAudioBitRateStrategy_Constant; - -objc.NSString get AVAudioBitRateStrategy_Constant => objc.NSString.fromPointer( - _AVAudioBitRateStrategy_Constant, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVAudioBitRateStrategy_LongTermAverage', -) -external final ffi.Pointer -_AVAudioBitRateStrategy_LongTermAverage; - -objc.NSString get AVAudioBitRateStrategy_LongTermAverage => - objc.NSString.fromPointer( - _AVAudioBitRateStrategy_LongTermAverage, - retain: true, - release: true, +/// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include +/// AVAudioFormat in your config's objc-interfaces list. +/// +/// AVAudioFormat +extension type AVAudioFormat._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { + /// Constructs a [AVAudioFormat] that points to the same underlying object as [other]. + AVAudioFormat.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioFormat', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), ); + } -@ffi.Native>( - symbol: 'AVAudioBitRateStrategy_Variable', -) -external final ffi.Pointer -_AVAudioBitRateStrategy_Variable; - -objc.NSString get AVAudioBitRateStrategy_Variable => objc.NSString.fromPointer( - _AVAudioBitRateStrategy_Variable, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVAudioBitRateStrategy_VariableConstrained', -) -external final ffi.Pointer -_AVAudioBitRateStrategy_VariableConstrained; - -objc.NSString get AVAudioBitRateStrategy_VariableConstrained => - objc.NSString.fromPointer( - _AVAudioBitRateStrategy_VariableConstrained, - retain: true, - release: true, + /// Constructs a [AVAudioFormat] that wraps the given raw object pointer. + AVAudioFormat.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioFormat', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), ); + } +} -@ffi.Native>(symbol: 'AVAudioFileTypeKey') -external final ffi.Pointer _AVAudioFileTypeKey; - -objc.NSString get AVAudioFileTypeKey => - objc.NSString.fromPointer(_AVAudioFileTypeKey, retain: true, release: true); - -@ffi.Native( - symbol: 'AVAudioSessionAvailableInputsChangeNotification', -) -external final NSNotificationName -_AVAudioSessionAvailableInputsChangeNotification; - -DartNSNotificationName get AVAudioSessionAvailableInputsChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionAvailableInputsChangeNotification, - retain: true, - release: true, +/// AVAudioPlayer +extension type AVAudioPlayer._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject { + /// Constructs a [AVAudioPlayer] that points to the same underlying object as [other]. + AVAudioPlayer.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'AVAudioPlayer', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + assert(isA(object$)); + } -@ffi.Native(symbol: 'AVAudioSessionCategoryAmbient') -external final AVAudioSessionCategory _AVAudioSessionCategoryAmbient; - -DartAVAudioSessionCategory get AVAudioSessionCategoryAmbient => - objc.NSString.fromPointer( - _AVAudioSessionCategoryAmbient, - retain: true, - release: true, + /// Constructs a [AVAudioPlayer] that wraps the given raw object pointer. + AVAudioPlayer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'AVAudioPlayer', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + assert(isA(object$)); + } -@ffi.Native( - symbol: 'AVAudioSessionCategoryAudioProcessing', -) -external final AVAudioSessionCategory _AVAudioSessionCategoryAudioProcessing; - -DartAVAudioSessionCategory get AVAudioSessionCategoryAudioProcessing => - objc.NSString.fromPointer( - _AVAudioSessionCategoryAudioProcessing, - retain: true, - release: true, - ); + /// Returns whether [obj] is an instance of [AVAudioPlayer]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_AVAudioPlayer, + ); -@ffi.Native(symbol: 'AVAudioSessionCategoryMultiRoute') -external final AVAudioSessionCategory _AVAudioSessionCategoryMultiRoute; + /// alloc + static AVAudioPlayer alloc() { + final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_alloc); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } -DartAVAudioSessionCategory get AVAudioSessionCategoryMultiRoute => - objc.NSString.fromPointer( - _AVAudioSessionCategoryMultiRoute, - retain: true, - release: true, + /// allocWithZone: + static AVAudioPlayer allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_AVAudioPlayer, + _sel_allocWithZone_, + zone, ); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } -@ffi.Native( - symbol: 'AVAudioSessionCategoryPlayAndRecord', -) -external final AVAudioSessionCategory _AVAudioSessionCategoryPlayAndRecord; - -DartAVAudioSessionCategory get AVAudioSessionCategoryPlayAndRecord => - objc.NSString.fromPointer( - _AVAudioSessionCategoryPlayAndRecord, - retain: true, - release: true, - ); + /// new + static AVAudioPlayer new$() { + final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_new); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } -@ffi.Native(symbol: 'AVAudioSessionCategoryPlayback') -external final AVAudioSessionCategory _AVAudioSessionCategoryPlayback; + /// Returns a new instance of AVAudioPlayer constructed with the default `new` method. + AVAudioPlayer() : this.as(new$().object$); +} -DartAVAudioSessionCategory get AVAudioSessionCategoryPlayback => - objc.NSString.fromPointer( - _AVAudioSessionCategoryPlayback, - retain: true, - release: true, +extension AVAudioPlayer$Methods on AVAudioPlayer { + /// averagePowerForChannel: + double averagePowerForChannel(int channelNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.averagePowerForChannel:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_65s5ywFpret( + _$$ref.pointer, + _sel_averagePowerForChannel_, + channelNumber, + ) + : _objc_msgSend_65s5yw( + _$$ref.pointer, + _sel_averagePowerForChannel_, + channelNumber, + ); + } -@ffi.Native(symbol: 'AVAudioSessionCategoryRecord') -external final AVAudioSessionCategory _AVAudioSessionCategoryRecord; - -DartAVAudioSessionCategory get AVAudioSessionCategoryRecord => - objc.NSString.fromPointer( - _AVAudioSessionCategoryRecord, - retain: true, - release: true, + /// channelAssignments + objc.NSArray? get channelAssignments { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.channelAssignments', + iOS: (false, (7, 0, 0)), + macOS: (true, null), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_channelAssignments); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } -@ffi.Native(symbol: 'AVAudioSessionCategorySoloAmbient') -external final AVAudioSessionCategory _AVAudioSessionCategorySoloAmbient; - -DartAVAudioSessionCategory get AVAudioSessionCategorySoloAmbient => - objc.NSString.fromPointer( - _AVAudioSessionCategorySoloAmbient, - retain: true, - release: true, + /// currentDevice + objc.NSString? get currentDevice { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.currentDevice', + iOS: (true, null), + macOS: (false, (10, 13, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } -@ffi.Native( - symbol: 'AVAudioSessionInterruptionNotification', -) -external final NSNotificationName _AVAudioSessionInterruptionNotification; - -DartNSNotificationName get AVAudioSessionInterruptionNotification => - objc.NSString.fromPointer( - _AVAudioSessionInterruptionNotification, - retain: true, - release: true, + /// currentTime + double get currentTime { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.currentTime', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); + } -@ffi.Native>( - symbol: 'AVAudioSessionInterruptionOptionKey', -) -external final ffi.Pointer -_AVAudioSessionInterruptionOptionKey; - -objc.NSString get AVAudioSessionInterruptionOptionKey => - objc.NSString.fromPointer( - _AVAudioSessionInterruptionOptionKey, - retain: true, - release: true, + /// data + objc.NSData? get data { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.data', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } -@ffi.Native>( - symbol: 'AVAudioSessionInterruptionReasonKey', -) -external final ffi.Pointer -_AVAudioSessionInterruptionReasonKey; - -objc.NSString get AVAudioSessionInterruptionReasonKey => - objc.NSString.fromPointer( - _AVAudioSessionInterruptionReasonKey, - retain: true, - release: true, + /// delegate + AVAudioPlayerDelegate? get delegate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.delegate', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); + return $ret.address == 0 + ? null + : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); + } -@ffi.Native>( - symbol: 'AVAudioSessionInterruptionTypeKey', -) -external final ffi.Pointer -_AVAudioSessionInterruptionTypeKey; - -objc.NSString get AVAudioSessionInterruptionTypeKey => - objc.NSString.fromPointer( - _AVAudioSessionInterruptionTypeKey, - retain: true, - release: true, + /// deviceCurrentTime + double get deviceCurrentTime { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.deviceCurrentTime', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); + } -@ffi.Native>( - symbol: 'AVAudioSessionInterruptionWasSuspendedKey', -) -external final ffi.Pointer -_AVAudioSessionInterruptionWasSuspendedKey; - -objc.NSString get AVAudioSessionInterruptionWasSuspendedKey => - objc.NSString.fromPointer( - _AVAudioSessionInterruptionWasSuspendedKey, - retain: true, - release: true, + /// duration + double get duration { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.duration', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); + } -@ffi.Native(symbol: 'AVAudioSessionLocationLower') -external AVAudioSessionLocation _AVAudioSessionLocationLower; - -DartAVAudioSessionLocation get AVAudioSessionLocationLower => - objc.NSString.fromPointer( - _AVAudioSessionLocationLower, - retain: true, - release: true, + /// enableRate + bool get enableRate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.enableRate', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); + } -set AVAudioSessionLocationLower(DartAVAudioSessionLocation value) { - objc.NSString.fromPointer( - _AVAudioSessionLocationLower, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionLocationLower = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionLocationUpper') -external AVAudioSessionLocation _AVAudioSessionLocationUpper; - -DartAVAudioSessionLocation get AVAudioSessionLocationUpper => - objc.NSString.fromPointer( - _AVAudioSessionLocationUpper, - retain: true, - release: true, + /// format + AVAudioFormat get format { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.format', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); + return AVAudioFormat.fromPointer($ret, retain: true, release: true); + } -set AVAudioSessionLocationUpper(DartAVAudioSessionLocation value) { - objc.NSString.fromPointer( - _AVAudioSessionLocationUpper, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionLocationUpper = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionMediaServicesWereLostNotification', -) -external final NSNotificationName -_AVAudioSessionMediaServicesWereLostNotification; - -DartNSNotificationName get AVAudioSessionMediaServicesWereLostNotification => - objc.NSString.fromPointer( - _AVAudioSessionMediaServicesWereLostNotification, - retain: true, - release: true, + /// init + AVAudioPlayer init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), ); - -@ffi.Native( - symbol: 'AVAudioSessionMediaServicesWereResetNotification', -) -external final NSNotificationName -_AVAudioSessionMediaServicesWereResetNotification; - -DartNSNotificationName get AVAudioSessionMediaServicesWereResetNotification => - objc.NSString.fromPointer( - _AVAudioSessionMediaServicesWereResetNotification, - retain: true, - release: true, + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, ); + return AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } -@ffi.Native( - symbol: 'AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification', -) -external final NSNotificationName -_AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification; - -DartNSNotificationName -get AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification, - retain: true, - release: true, + /// initWithContentsOfURL:error: + AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithContentsOfURL:error:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } -@ffi.Native>( - symbol: 'AVAudioSessionMicrophoneInjectionIsAvailableKey', -) -external final ffi.Pointer -_AVAudioSessionMicrophoneInjectionIsAvailableKey; - -objc.NSString get AVAudioSessionMicrophoneInjectionIsAvailableKey => - objc.NSString.fromPointer( - _AVAudioSessionMicrophoneInjectionIsAvailableKey, - retain: true, - release: true, + /// initWithContentsOfURL:fileTypeHint:error: + AVAudioPlayer? initWithContentsOfURL$1( + objc.NSURL url, { + objc.NSString? fileTypeHint, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = fileTypeHint?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithContentsOfURL:fileTypeHint:error:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_fileTypeHint_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } -@ffi.Native(symbol: 'AVAudioSessionModeDefault') -external final AVAudioSessionMode _AVAudioSessionModeDefault; - -DartAVAudioSessionMode get AVAudioSessionModeDefault => - objc.NSString.fromPointer( - _AVAudioSessionModeDefault, - retain: true, - release: true, - ); - -@ffi.Native(symbol: 'AVAudioSessionModeGameChat') -external final AVAudioSessionMode _AVAudioSessionModeGameChat; - -DartAVAudioSessionMode get AVAudioSessionModeGameChat => - objc.NSString.fromPointer( - _AVAudioSessionModeGameChat, - retain: true, - release: true, + /// initWithData:error: + AVAudioPlayer? initWithData(objc.NSData data) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithData:error:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithData_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } -@ffi.Native(symbol: 'AVAudioSessionModeMeasurement') -external final AVAudioSessionMode _AVAudioSessionModeMeasurement; - -DartAVAudioSessionMode get AVAudioSessionModeMeasurement => - objc.NSString.fromPointer( - _AVAudioSessionModeMeasurement, - retain: true, - release: true, + /// initWithData:fileTypeHint:error: + AVAudioPlayer? initWithData$1( + objc.NSData data, { + objc.NSString? fileTypeHint, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + final _$$ref$2 = fileTypeHint?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.initWithData:fileTypeHint:error:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _$$ref.retainAndReturnPointer(), + _sel_initWithData_fileTypeHint_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : AVAudioPlayer.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } -@ffi.Native(symbol: 'AVAudioSessionModeMoviePlayback') -external final AVAudioSessionMode _AVAudioSessionModeMoviePlayback; - -DartAVAudioSessionMode get AVAudioSessionModeMoviePlayback => - objc.NSString.fromPointer( - _AVAudioSessionModeMoviePlayback, - retain: true, - release: true, + /// intendedSpatialExperience + CASpatialAudioExperience get intendedSpatialExperience { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.intendedSpatialExperience', + iOS: (true, null), + macOS: (true, null), ); - -@ffi.Native(symbol: 'AVAudioSessionModeShortFormVideo') -external final AVAudioSessionMode _AVAudioSessionModeShortFormVideo; - -DartAVAudioSessionMode get AVAudioSessionModeShortFormVideo => - objc.NSString.fromPointer( - _AVAudioSessionModeShortFormVideo, - retain: true, - release: true, + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_intendedSpatialExperience, ); - -@ffi.Native(symbol: 'AVAudioSessionModeSpokenAudio') -external final AVAudioSessionMode _AVAudioSessionModeSpokenAudio; - -DartAVAudioSessionMode get AVAudioSessionModeSpokenAudio => - objc.NSString.fromPointer( - _AVAudioSessionModeSpokenAudio, + return CASpatialAudioExperience.fromPointer( + $ret, retain: true, release: true, ); + } -@ffi.Native(symbol: 'AVAudioSessionModeVideoChat') -external final AVAudioSessionMode _AVAudioSessionModeVideoChat; - -DartAVAudioSessionMode get AVAudioSessionModeVideoChat => - objc.NSString.fromPointer( - _AVAudioSessionModeVideoChat, - retain: true, - release: true, + /// isMeteringEnabled + bool get isMeteringEnabled { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.isMeteringEnabled', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); + } -@ffi.Native(symbol: 'AVAudioSessionModeVideoRecording') -external final AVAudioSessionMode _AVAudioSessionModeVideoRecording; - -DartAVAudioSessionMode get AVAudioSessionModeVideoRecording => - objc.NSString.fromPointer( - _AVAudioSessionModeVideoRecording, - retain: true, - release: true, + /// isPlaying + bool get isPlaying { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.isPlaying', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); + } -@ffi.Native(symbol: 'AVAudioSessionModeVoiceChat') -external final AVAudioSessionMode _AVAudioSessionModeVoiceChat; - -DartAVAudioSessionMode get AVAudioSessionModeVoiceChat => - objc.NSString.fromPointer( - _AVAudioSessionModeVoiceChat, - retain: true, - release: true, + /// numberOfChannels + int get numberOfChannels { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.numberOfChannels', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfChannels); + } -@ffi.Native(symbol: 'AVAudioSessionModeVoicePrompt') -external final AVAudioSessionMode _AVAudioSessionModeVoicePrompt; - -DartAVAudioSessionMode get AVAudioSessionModeVoicePrompt => - objc.NSString.fromPointer( - _AVAudioSessionModeVoicePrompt, - retain: true, - release: true, + /// numberOfLoops + int get numberOfLoops { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.numberOfLoops', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); + } -@ffi.Native>( - symbol: 'AVAudioSessionMuteStateKey', -) -external final ffi.Pointer _AVAudioSessionMuteStateKey; - -objc.NSString get AVAudioSessionMuteStateKey => objc.NSString.fromPointer( - _AVAudioSessionMuteStateKey, - retain: true, - release: true, -); - -@ffi.Native(symbol: 'AVAudioSessionOrientationBack') -external AVAudioSessionOrientation _AVAudioSessionOrientationBack; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationBack => - objc.NSString.fromPointer( - _AVAudioSessionOrientationBack, - retain: true, - release: true, + /// pan + double get pan { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.pan', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); + } -set AVAudioSessionOrientationBack(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationBack, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationBack = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionOrientationBottom', -) -external AVAudioSessionOrientation _AVAudioSessionOrientationBottom; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationBottom => - objc.NSString.fromPointer( - _AVAudioSessionOrientationBottom, - retain: true, - release: true, + /// pause + void pause() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.pause', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); + } -set AVAudioSessionOrientationBottom(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationBottom, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationBottom = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionOrientationFront') -external AVAudioSessionOrientation _AVAudioSessionOrientationFront; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationFront => - objc.NSString.fromPointer( - _AVAudioSessionOrientationFront, - retain: true, - release: true, + /// peakPowerForChannel: + double peakPowerForChannel(int channelNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.peakPowerForChannel:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_65s5ywFpret( + _$$ref.pointer, + _sel_peakPowerForChannel_, + channelNumber, + ) + : _objc_msgSend_65s5yw( + _$$ref.pointer, + _sel_peakPowerForChannel_, + channelNumber, + ); + } -set AVAudioSessionOrientationFront(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationFront, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationFront = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionOrientationLeft') -external AVAudioSessionOrientation _AVAudioSessionOrientationLeft; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationLeft => - objc.NSString.fromPointer( - _AVAudioSessionOrientationLeft, - retain: true, - release: true, + /// play + bool play() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.play', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); + } -set AVAudioSessionOrientationLeft(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationLeft, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationLeft = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionOrientationRight') -external AVAudioSessionOrientation _AVAudioSessionOrientationRight; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationRight => - objc.NSString.fromPointer( - _AVAudioSessionOrientationRight, - retain: true, - release: true, + /// playAtTime: + bool playAtTime(double time) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.playAtTime:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time); + } -set AVAudioSessionOrientationRight(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationRight, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationRight = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionOrientationTop') -external AVAudioSessionOrientation _AVAudioSessionOrientationTop; - -DartAVAudioSessionOrientation get AVAudioSessionOrientationTop => - objc.NSString.fromPointer( - _AVAudioSessionOrientationTop, - retain: true, - release: true, + /// prepareToPlay + bool prepareToPlay() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.prepareToPlay', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); + } -set AVAudioSessionOrientationTop(DartAVAudioSessionOrientation value) { - objc.NSString.fromPointer( - _AVAudioSessionOrientationTop, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionOrientationTop = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionOutputMuteStateChangeNotification', -) -external final NSNotificationName -_AVAudioSessionOutputMuteStateChangeNotification; - -DartNSNotificationName get AVAudioSessionOutputMuteStateChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionOutputMuteStateChangeNotification, - retain: true, - release: true, + /// rate + double get rate { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.rate', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); + } -@ffi.Native( - symbol: 'AVAudioSessionPolarPatternCardioid', -) -external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternCardioid; - -DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternCardioid => - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternCardioid, - retain: true, - release: true, + /// setChannelAssignments: + set channelAssignments(objc.NSArray? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setChannelAssignments:', + iOS: (false, (7, 0, 0)), + macOS: (true, null), ); - -set AVAudioSessionPolarPatternCardioid(DartAVAudioSessionPolarPattern value) { - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternCardioid, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionPolarPatternCardioid = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionPolarPatternOmnidirectional', -) -external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternOmnidirectional; - -DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternOmnidirectional => - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternOmnidirectional, - retain: true, - release: true, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setChannelAssignments_, + _$$ref$1?.pointer ?? ffi.nullptr, ); + } -set AVAudioSessionPolarPatternOmnidirectional( - DartAVAudioSessionPolarPattern value, -) { - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternOmnidirectional, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionPolarPatternOmnidirectional = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionPolarPatternStereo', -) -external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternStereo; - -DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternStereo => - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternStereo, - retain: true, - release: true, + /// setCurrentDevice: + set currentDevice(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setCurrentDevice:', + iOS: (true, null), + macOS: (false, (10, 13, 0)), ); - -set AVAudioSessionPolarPatternStereo(DartAVAudioSessionPolarPattern value) { - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternStereo, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionPolarPatternStereo = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'AVAudioSessionPolarPatternSubcardioid', -) -external AVAudioSessionPolarPattern _AVAudioSessionPolarPatternSubcardioid; - -DartAVAudioSessionPolarPattern get AVAudioSessionPolarPatternSubcardioid => - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternSubcardioid, - retain: true, - release: true, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setCurrentDevice_, + _$$ref$1?.pointer ?? ffi.nullptr, ); + } -set AVAudioSessionPolarPatternSubcardioid( - DartAVAudioSessionPolarPattern value, -) { - objc.NSString.fromPointer( - _AVAudioSessionPolarPatternSubcardioid, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _AVAudioSessionPolarPatternSubcardioid = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'AVAudioSessionPortAVB') -external final AVAudioSessionPort _AVAudioSessionPortAVB; - -DartAVAudioSessionPort get AVAudioSessionPortAVB => objc.NSString.fromPointer( - _AVAudioSessionPortAVB, - retain: true, - release: true, -); - -@ffi.Native(symbol: 'AVAudioSessionPortAirPlay') -external final AVAudioSessionPort _AVAudioSessionPortAirPlay; - -DartAVAudioSessionPort get AVAudioSessionPortAirPlay => - objc.NSString.fromPointer( - _AVAudioSessionPortAirPlay, - retain: true, - release: true, + /// setCurrentTime: + set currentTime(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setCurrentTime:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortBluetoothA2DP') -external final AVAudioSessionPort _AVAudioSessionPortBluetoothA2DP; - -DartAVAudioSessionPort get AVAudioSessionPortBluetoothA2DP => - objc.NSString.fromPointer( - _AVAudioSessionPortBluetoothA2DP, - retain: true, - release: true, + /// setDelegate: + set delegate(AVAudioPlayerDelegate? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setDelegate:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); - -@ffi.Native(symbol: 'AVAudioSessionPortBluetoothHFP') -external final AVAudioSessionPort _AVAudioSessionPortBluetoothHFP; - -DartAVAudioSessionPort get AVAudioSessionPortBluetoothHFP => - objc.NSString.fromPointer( - _AVAudioSessionPortBluetoothHFP, - retain: true, - release: true, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setDelegate_, + _$$ref$1?.pointer ?? ffi.nullptr, ); + } -@ffi.Native(symbol: 'AVAudioSessionPortBluetoothLE') -external final AVAudioSessionPort _AVAudioSessionPortBluetoothLE; - -DartAVAudioSessionPort get AVAudioSessionPortBluetoothLE => - objc.NSString.fromPointer( - _AVAudioSessionPortBluetoothLE, - retain: true, - release: true, + /// setEnableRate: + set enableRate(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setEnableRate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortBuiltInMic') -external final AVAudioSessionPort _AVAudioSessionPortBuiltInMic; - -DartAVAudioSessionPort get AVAudioSessionPortBuiltInMic => - objc.NSString.fromPointer( - _AVAudioSessionPortBuiltInMic, - retain: true, - release: true, + /// setIntendedSpatialExperience: + set intendedSpatialExperience(CASpatialAudioExperience value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setIntendedSpatialExperience:', + iOS: (true, null), + macOS: (true, null), ); - -@ffi.Native(symbol: 'AVAudioSessionPortBuiltInReceiver') -external final AVAudioSessionPort _AVAudioSessionPortBuiltInReceiver; - -DartAVAudioSessionPort get AVAudioSessionPortBuiltInReceiver => - objc.NSString.fromPointer( - _AVAudioSessionPortBuiltInReceiver, - retain: true, - release: true, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setIntendedSpatialExperience_, + _$$ref$1.pointer, ); + } -@ffi.Native(symbol: 'AVAudioSessionPortBuiltInSpeaker') -external final AVAudioSessionPort _AVAudioSessionPortBuiltInSpeaker; - -DartAVAudioSessionPort get AVAudioSessionPortBuiltInSpeaker => - objc.NSString.fromPointer( - _AVAudioSessionPortBuiltInSpeaker, - retain: true, - release: true, + /// setMeteringEnabled: + set isMeteringEnabled(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setMeteringEnabled:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setMeteringEnabled_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortCarAudio') -external final AVAudioSessionPort _AVAudioSessionPortCarAudio; - -DartAVAudioSessionPort get AVAudioSessionPortCarAudio => - objc.NSString.fromPointer( - _AVAudioSessionPortCarAudio, - retain: true, - release: true, + /// setNumberOfLoops: + set numberOfLoops(int value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setNumberOfLoops:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); + } -@ffi.Native( - symbol: 'AVAudioSessionPortContinuityMicrophone', -) -external final AVAudioSessionPort _AVAudioSessionPortContinuityMicrophone; - -DartAVAudioSessionPort get AVAudioSessionPortContinuityMicrophone => - objc.NSString.fromPointer( - _AVAudioSessionPortContinuityMicrophone, - retain: true, - release: true, + /// setPan: + set pan(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setPan:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortDisplayPort') -external final AVAudioSessionPort _AVAudioSessionPortDisplayPort; - -DartAVAudioSessionPort get AVAudioSessionPortDisplayPort => - objc.NSString.fromPointer( - _AVAudioSessionPortDisplayPort, - retain: true, - release: true, + /// setRate: + set rate(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setRate:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 8, 0)), ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortFireWire') -external final AVAudioSessionPort _AVAudioSessionPortFireWire; - -DartAVAudioSessionPort get AVAudioSessionPortFireWire => - objc.NSString.fromPointer( - _AVAudioSessionPortFireWire, - retain: true, - release: true, + /// setVolume: + set volume(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setVolume:', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); + } -@ffi.Native(symbol: 'AVAudioSessionPortHDMI') -external final AVAudioSessionPort _AVAudioSessionPortHDMI; - -DartAVAudioSessionPort get AVAudioSessionPortHDMI => objc.NSString.fromPointer( - _AVAudioSessionPortHDMI, - retain: true, - release: true, -); - -@ffi.Native(symbol: 'AVAudioSessionPortHeadphones') -external final AVAudioSessionPort _AVAudioSessionPortHeadphones; - -DartAVAudioSessionPort get AVAudioSessionPortHeadphones => - objc.NSString.fromPointer( - _AVAudioSessionPortHeadphones, - retain: true, - release: true, + /// setVolume:fadeDuration: + void setVolume(double volume, {required double fadeDuration}) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.setVolume:fadeDuration:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), ); - -@ffi.Native(symbol: 'AVAudioSessionPortHeadsetMic') -external final AVAudioSessionPort _AVAudioSessionPortHeadsetMic; - -DartAVAudioSessionPort get AVAudioSessionPortHeadsetMic => - objc.NSString.fromPointer( - _AVAudioSessionPortHeadsetMic, - retain: true, - release: true, + _objc_msgSend_1p4uk9e( + _$$ref.pointer, + _sel_setVolume_fadeDuration_, + volume, + fadeDuration, ); + } -@ffi.Native(symbol: 'AVAudioSessionPortLineIn') -external final AVAudioSessionPort _AVAudioSessionPortLineIn; - -DartAVAudioSessionPort get AVAudioSessionPortLineIn => - objc.NSString.fromPointer( - _AVAudioSessionPortLineIn, - retain: true, - release: true, + /// settings + objc.NSDictionary get settings { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.settings', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 7, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_settings); + return objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } -@ffi.Native(symbol: 'AVAudioSessionPortLineOut') -external final AVAudioSessionPort _AVAudioSessionPortLineOut; - -DartAVAudioSessionPort get AVAudioSessionPortLineOut => - objc.NSString.fromPointer( - _AVAudioSessionPortLineOut, - retain: true, - release: true, + /// stop + void stop() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.stop', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); + } -@ffi.Native(symbol: 'AVAudioSessionPortPCI') -external final AVAudioSessionPort _AVAudioSessionPortPCI; - -DartAVAudioSessionPort get AVAudioSessionPortPCI => objc.NSString.fromPointer( - _AVAudioSessionPortPCI, - retain: true, - release: true, -); - -@ffi.Native(symbol: 'AVAudioSessionPortThunderbolt') -external final AVAudioSessionPort _AVAudioSessionPortThunderbolt; - -DartAVAudioSessionPort get AVAudioSessionPortThunderbolt => - objc.NSString.fromPointer( - _AVAudioSessionPortThunderbolt, - retain: true, - release: true, + /// updateMeters + void updateMeters() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.updateMeters', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); + } -@ffi.Native(symbol: 'AVAudioSessionPortUSBAudio') -external final AVAudioSessionPort _AVAudioSessionPortUSBAudio; - -DartAVAudioSessionPort get AVAudioSessionPortUSBAudio => - objc.NSString.fromPointer( - _AVAudioSessionPortUSBAudio, - retain: true, - release: true, + /// url + objc.NSURL? get url { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.url', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } -@ffi.Native(symbol: 'AVAudioSessionPortVirtual') -external final AVAudioSessionPort _AVAudioSessionPortVirtual; - -DartAVAudioSessionPort get AVAudioSessionPortVirtual => - objc.NSString.fromPointer( - _AVAudioSessionPortVirtual, - retain: true, - release: true, + /// volume + double get volume { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'AVAudioPlayer.volume', + iOS: (false, (2, 2, 0)), + macOS: (false, (10, 7, 0)), ); + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); + } +} -@ffi.Native( - symbol: 'AVAudioSessionRenderingCapabilitiesChangeNotification', -) -external final NSNotificationName -_AVAudioSessionRenderingCapabilitiesChangeNotification; - -DartNSNotificationName -get AVAudioSessionRenderingCapabilitiesChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionRenderingCapabilitiesChangeNotification, - retain: true, - release: true, - ); - -@ffi.Native( - symbol: 'AVAudioSessionRenderingModeChangeNotification', -) -external final NSNotificationName -_AVAudioSessionRenderingModeChangeNotification; - -DartNSNotificationName get AVAudioSessionRenderingModeChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionRenderingModeChangeNotification, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVAudioSessionRenderingModeNewRenderingModeKey', -) -external final ffi.Pointer -_AVAudioSessionRenderingModeNewRenderingModeKey; - -objc.NSString get AVAudioSessionRenderingModeNewRenderingModeKey => - objc.NSString.fromPointer( - _AVAudioSessionRenderingModeNewRenderingModeKey, - retain: true, - release: true, - ); - -@ffi.Native(symbol: 'AVAudioSessionRouteChangeNotification') -external final NSNotificationName _AVAudioSessionRouteChangeNotification; - -DartNSNotificationName get AVAudioSessionRouteChangeNotification => - objc.NSString.fromPointer( - _AVAudioSessionRouteChangeNotification, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVAudioSessionRouteChangePreviousRouteKey', -) -external final ffi.Pointer -_AVAudioSessionRouteChangePreviousRouteKey; - -objc.NSString get AVAudioSessionRouteChangePreviousRouteKey => - objc.NSString.fromPointer( - _AVAudioSessionRouteChangePreviousRouteKey, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVAudioSessionRouteChangeReasonKey', -) -external final ffi.Pointer -_AVAudioSessionRouteChangeReasonKey; - -objc.NSString get AVAudioSessionRouteChangeReasonKey => - objc.NSString.fromPointer( - _AVAudioSessionRouteChangeReasonKey, - retain: true, - release: true, - ); - -@ffi.Native( - symbol: 'AVAudioSessionSilenceSecondaryAudioHintNotification', -) -external final NSNotificationName -_AVAudioSessionSilenceSecondaryAudioHintNotification; - -DartNSNotificationName -get AVAudioSessionSilenceSecondaryAudioHintNotification => - objc.NSString.fromPointer( - _AVAudioSessionSilenceSecondaryAudioHintNotification, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVAudioSessionSilenceSecondaryAudioHintTypeKey', -) -external final ffi.Pointer -_AVAudioSessionSilenceSecondaryAudioHintTypeKey; - -objc.NSString get AVAudioSessionSilenceSecondaryAudioHintTypeKey => - objc.NSString.fromPointer( - _AVAudioSessionSilenceSecondaryAudioHintTypeKey, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVAudioSessionSpatialAudioEnabledKey', -) -external final ffi.Pointer -_AVAudioSessionSpatialAudioEnabledKey; - -objc.NSString get AVAudioSessionSpatialAudioEnabledKey => - objc.NSString.fromPointer( - _AVAudioSessionSpatialAudioEnabledKey, - retain: true, - release: true, - ); - -@ffi.Native( - symbol: 'AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification', -) -external final NSNotificationName -_AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification; - -DartNSNotificationName -get AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification => - objc.NSString.fromPointer( - _AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification, - retain: true, - release: true, - ); - -@ffi.Native( - symbol: 'AVAudioSessionUserIntentToUnmuteOutputNotification', -) -external final NSNotificationName -_AVAudioSessionUserIntentToUnmuteOutputNotification; +/// WARNING: AVAudioPlayerDelegate is a stub. To generate bindings for this class, include +/// AVAudioPlayerDelegate in your config's objc-protocols list. +/// +/// AVAudioPlayerDelegate +extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [AVAudioPlayerDelegate] that points to the same underlying object as [other]. + AVAudioPlayerDelegate.as(objc.ObjCObject other) : object$ = other; -DartNSNotificationName get AVAudioSessionUserIntentToUnmuteOutputNotification => - objc.NSString.fromPointer( - _AVAudioSessionUserIntentToUnmuteOutputNotification, - retain: true, - release: true, - ); + /// Constructs a [AVAudioPlayerDelegate] that wraps the given raw object pointer. + AVAudioPlayerDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} -@ffi.Native>(symbol: 'AVChannelLayoutKey') -external final ffi.Pointer _AVChannelLayoutKey; +/// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include +/// CASpatialAudioExperience in your config's objc-interfaces list. +/// +/// CASpatialAudioExperience +extension type CASpatialAudioExperience._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [CASpatialAudioExperience] that points to the same underlying object as [other]. + CASpatialAudioExperience.as(objc.ObjCObject other) : object$ = other {} -objc.NSString get AVChannelLayoutKey => - objc.NSString.fromPointer(_AVChannelLayoutKey, retain: true, release: true); + /// Constructs a [CASpatialAudioExperience] that wraps the given raw object pointer. + CASpatialAudioExperience.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} @ffi.Native>( - symbol: 'AVEncoderASPFrequencyKey', + symbol: 'OBJC_CLASS_\$_AVAudioPlayer', ) -external final ffi.Pointer _AVEncoderASPFrequencyKey; - -objc.NSString get AVEncoderASPFrequencyKey => objc.NSString.fromPointer( - _AVEncoderASPFrequencyKey, - retain: true, - release: true, +external ffi.Pointer _class_AVAudioPlayer_raw; +final _class_AVAudioPlayer = objc.getClass( + "AVAudioPlayer", + () => ffi.Native.addressOf>( + _class_AVAudioPlayer_raw, + ).cast(), ); - -@ffi.Native>( - symbol: 'AVEncoderAudioQualityForVBRKey', -) -external final ffi.Pointer _AVEncoderAudioQualityForVBRKey; - -objc.NSString get AVEncoderAudioQualityForVBRKey => objc.NSString.fromPointer( - _AVEncoderAudioQualityForVBRKey, - retain: true, - release: true, +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18chyc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1hz7y9r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1p4uk9e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + double, + ) + >(); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1s56lr9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_4sp4xj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_65s5yw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_65s5ywFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_91o635 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hwm8nu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_v5hmet = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_xw2lbc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +late final _sel_averagePowerForChannel_ = objc.registerName( + "averagePowerForChannel:", ); - -@ffi.Native>( - symbol: 'AVEncoderAudioQualityKey', -) -external final ffi.Pointer _AVEncoderAudioQualityKey; - -objc.NSString get AVEncoderAudioQualityKey => objc.NSString.fromPointer( - _AVEncoderAudioQualityKey, - retain: true, - release: true, +late final _sel_channelAssignments = objc.registerName("channelAssignments"); +late final _sel_currentDevice = objc.registerName("currentDevice"); +late final _sel_currentTime = objc.registerName("currentTime"); +late final _sel_data = objc.registerName("data"); +late final _sel_delegate = objc.registerName("delegate"); +late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); +late final _sel_duration = objc.registerName("duration"); +late final _sel_enableRate = objc.registerName("enableRate"); +late final _sel_format = objc.registerName("format"); +late final _sel_init = objc.registerName("init"); +late final _sel_initWithContentsOfURL_error_ = objc.registerName( + "initWithContentsOfURL:error:", ); - -@ffi.Native>( - symbol: 'AVEncoderBitDepthHintKey', -) -external final ffi.Pointer _AVEncoderBitDepthHintKey; - -objc.NSString get AVEncoderBitDepthHintKey => objc.NSString.fromPointer( - _AVEncoderBitDepthHintKey, - retain: true, - release: true, +late final _sel_initWithContentsOfURL_fileTypeHint_error_ = objc.registerName( + "initWithContentsOfURL:fileTypeHint:error:", ); - -@ffi.Native>(symbol: 'AVEncoderBitRateKey') -external final ffi.Pointer _AVEncoderBitRateKey; - -objc.NSString get AVEncoderBitRateKey => objc.NSString.fromPointer( - _AVEncoderBitRateKey, - retain: true, - release: true, +late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); +late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( + "initWithData:fileTypeHint:error:", ); - -@ffi.Native>( - symbol: 'AVEncoderBitRatePerChannelKey', -) -external final ffi.Pointer _AVEncoderBitRatePerChannelKey; - -objc.NSString get AVEncoderBitRatePerChannelKey => objc.NSString.fromPointer( - _AVEncoderBitRatePerChannelKey, - retain: true, - release: true, +late final _sel_intendedSpatialExperience = objc.registerName( + "intendedSpatialExperience", ); - -@ffi.Native>( - symbol: 'AVEncoderBitRateStrategyKey', -) -external final ffi.Pointer _AVEncoderBitRateStrategyKey; - -objc.NSString get AVEncoderBitRateStrategyKey => objc.NSString.fromPointer( - _AVEncoderBitRateStrategyKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVEncoderContentSourceKey', -) -external final ffi.Pointer _AVEncoderContentSourceKey; - -objc.NSString get AVEncoderContentSourceKey => objc.NSString.fromPointer( - _AVEncoderContentSourceKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVEncoderDynamicRangeControlConfigurationKey', -) -external final ffi.Pointer -_AVEncoderDynamicRangeControlConfigurationKey; - -objc.NSString get AVEncoderDynamicRangeControlConfigurationKey => - objc.NSString.fromPointer( - _AVEncoderDynamicRangeControlConfigurationKey, - retain: true, - release: true, - ); - -@ffi.Native>(symbol: 'AVFormatIDKey') -external final ffi.Pointer _AVFormatIDKey; - -objc.NSString get AVFormatIDKey => - objc.NSString.fromPointer(_AVFormatIDKey, retain: true, release: true); - -@ffi.Native>(symbol: 'AVLinearPCMBitDepthKey') -external final ffi.Pointer _AVLinearPCMBitDepthKey; - -objc.NSString get AVLinearPCMBitDepthKey => objc.NSString.fromPointer( - _AVLinearPCMBitDepthKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVLinearPCMIsBigEndianKey', -) -external final ffi.Pointer _AVLinearPCMIsBigEndianKey; - -objc.NSString get AVLinearPCMIsBigEndianKey => objc.NSString.fromPointer( - _AVLinearPCMIsBigEndianKey, - retain: true, - release: true, -); - -@ffi.Native>(symbol: 'AVLinearPCMIsFloatKey') -external final ffi.Pointer _AVLinearPCMIsFloatKey; - -objc.NSString get AVLinearPCMIsFloatKey => objc.NSString.fromPointer( - _AVLinearPCMIsFloatKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVLinearPCMIsNonInterleaved', -) -external final ffi.Pointer _AVLinearPCMIsNonInterleaved; - -objc.NSString get AVLinearPCMIsNonInterleaved => objc.NSString.fromPointer( - _AVLinearPCMIsNonInterleaved, - retain: true, - release: true, -); - -@ffi.Native>(symbol: 'AVNumberOfChannelsKey') -external final ffi.Pointer _AVNumberOfChannelsKey; - -objc.NSString get AVNumberOfChannelsKey => objc.NSString.fromPointer( - _AVNumberOfChannelsKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'AVSampleRateConverterAlgorithmKey', -) -external final ffi.Pointer -_AVSampleRateConverterAlgorithmKey; - -objc.NSString get AVSampleRateConverterAlgorithmKey => - objc.NSString.fromPointer( - _AVSampleRateConverterAlgorithmKey, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVSampleRateConverterAlgorithm_Mastering', -) -external final ffi.Pointer -_AVSampleRateConverterAlgorithm_Mastering; - -objc.NSString get AVSampleRateConverterAlgorithm_Mastering => - objc.NSString.fromPointer( - _AVSampleRateConverterAlgorithm_Mastering, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVSampleRateConverterAlgorithm_MinimumPhase', -) -external final ffi.Pointer -_AVSampleRateConverterAlgorithm_MinimumPhase; - -objc.NSString get AVSampleRateConverterAlgorithm_MinimumPhase => - objc.NSString.fromPointer( - _AVSampleRateConverterAlgorithm_MinimumPhase, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVSampleRateConverterAlgorithm_Normal', -) -external final ffi.Pointer -_AVSampleRateConverterAlgorithm_Normal; - -objc.NSString get AVSampleRateConverterAlgorithm_Normal => - objc.NSString.fromPointer( - _AVSampleRateConverterAlgorithm_Normal, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'AVSampleRateConverterAudioQualityKey', -) -external final ffi.Pointer -_AVSampleRateConverterAudioQualityKey; - -objc.NSString get AVSampleRateConverterAudioQualityKey => - objc.NSString.fromPointer( - _AVSampleRateConverterAudioQualityKey, - retain: true, - release: true, - ); - -@ffi.Native>(symbol: 'AVSampleRateKey') -external final ffi.Pointer _AVSampleRateKey; - -objc.NSString get AVSampleRateKey => - objc.NSString.fromPointer(_AVSampleRateKey, retain: true, release: true); - -@Deprecated('Deprecated') -@ffi.Native() -external int AXAPIEnabled(); - -@ffi.Native() -external int AXIsProcessTrusted(); - -@ffi.Native() -external int AXIsProcessTrustedWithOptions(CFDictionaryRef options); - -@Deprecated('Deprecated') -@ffi.Native(symbol: 'AXMakeProcessTrusted') -external int _AXMakeProcessTrusted(CFStringRef executablePath); - -AXError AXMakeProcessTrusted(CFStringRef executablePath) { - return AXError.fromValue(_AXMakeProcessTrusted(executablePath)); -} - -@ffi.Native< - SInt32 Function( - AXObserverRef, - AXUIElementRef, - CFStringRef, - ffi.Pointer, - ) ->(symbol: 'AXObserverAddNotification') -external int _AXObserverAddNotification( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, - ffi.Pointer refcon, -); - -AXError AXObserverAddNotification( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, - ffi.Pointer refcon, -) { - return AXError.fromValue( - _AXObserverAddNotification(observer, element, notification, refcon), - ); -} - -@ffi.Native< - SInt32 Function(pid_t, AXObserverCallback, ffi.Pointer) ->(symbol: 'AXObserverCreate') -external int _AXObserverCreate( - int application, - AXObserverCallback callback, - ffi.Pointer outObserver, -); - -AXError AXObserverCreate( - Dart__int32_t application, - AXObserverCallback callback, - ffi.Pointer outObserver, -) { - return AXError.fromValue( - _AXObserverCreate(application, callback, outObserver), - ); -} - -@ffi.Native< - SInt32 Function(pid_t, AXObserverCallbackWithInfo, ffi.Pointer) ->(symbol: 'AXObserverCreateWithInfoCallback') -external int _AXObserverCreateWithInfoCallback( - int application, - AXObserverCallbackWithInfo callback, - ffi.Pointer outObserver, -); - -AXError AXObserverCreateWithInfoCallback( - Dart__int32_t application, - AXObserverCallbackWithInfo callback, - ffi.Pointer outObserver, -) { - return AXError.fromValue( - _AXObserverCreateWithInfoCallback(application, callback, outObserver), - ); -} - -@ffi.Native() -external CFRunLoopSourceRef AXObserverGetRunLoopSource(AXObserverRef observer); - -@ffi.Native() -external int AXObserverGetTypeID(); - -@ffi.Native( - symbol: 'AXObserverRemoveNotification', -) -external int _AXObserverRemoveNotification( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, -); - -AXError AXObserverRemoveNotification( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, -) { - return AXError.fromValue( - _AXObserverRemoveNotification(observer, element, notification), - ); -} - -@ffi.Native< - AXTextMarkerRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) ->() -external AXTextMarkerRef AXTextMarkerCreate( - CFAllocatorRef allocator, - ffi.Pointer bytes, - int length, -); - -@ffi.Native Function(AXTextMarkerRef)>() -external ffi.Pointer AXTextMarkerGetBytePtr( - AXTextMarkerRef theTextMarker, -); - -@ffi.Native() -external int AXTextMarkerGetLength(AXTextMarkerRef marker); - -@ffi.Native() -external int AXTextMarkerGetTypeID(); - -@ffi.Native() -external AXTextMarkerRef AXTextMarkerRangeCopyEndMarker( - AXTextMarkerRangeRef textMarkerRange, -); - -@ffi.Native() -external AXTextMarkerRef AXTextMarkerRangeCopyStartMarker( - AXTextMarkerRangeRef textMarkerRange, -); - -@ffi.Native< - AXTextMarkerRangeRef Function( - CFAllocatorRef, - AXTextMarkerRef, - AXTextMarkerRef, - ) ->() -external AXTextMarkerRangeRef AXTextMarkerRangeCreate( - CFAllocatorRef allocator, - AXTextMarkerRef startMarker, - AXTextMarkerRef endMarker, -); - -@ffi.Native< - AXTextMarkerRangeRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - ffi.Pointer, - CFIndex, - ) ->() -external AXTextMarkerRangeRef AXTextMarkerRangeCreateWithBytes( - CFAllocatorRef allocator, - ffi.Pointer startMarkerBytes, - int startMarkerLength, - ffi.Pointer endMarkerBytes, - int endMarkerLength, -); - -@ffi.Native() -external int AXTextMarkerRangeGetTypeID(); - -@ffi.Native< - SInt32 Function(AXUIElementRef, CFStringRef, ffi.Pointer) ->(symbol: 'AXUIElementCopyActionDescription') -external int _AXUIElementCopyActionDescription( - AXUIElementRef element, - CFStringRef action, - ffi.Pointer description, -); - -AXError AXUIElementCopyActionDescription( - AXUIElementRef element, - CFStringRef action, - ffi.Pointer description, -) { - return AXError.fromValue( - _AXUIElementCopyActionDescription(element, action, description), - ); -} - -@ffi.Native)>( - symbol: 'AXUIElementCopyActionNames', -) -external int _AXUIElementCopyActionNames( - AXUIElementRef element, - ffi.Pointer names, -); - -AXError AXUIElementCopyActionNames( - AXUIElementRef element, - ffi.Pointer names, -) { - return AXError.fromValue(_AXUIElementCopyActionNames(element, names)); -} - -@ffi.Native)>( - symbol: 'AXUIElementCopyAttributeNames', -) -external int _AXUIElementCopyAttributeNames( - AXUIElementRef element, - ffi.Pointer names, -); - -AXError AXUIElementCopyAttributeNames( - AXUIElementRef element, - ffi.Pointer names, -) { - return AXError.fromValue(_AXUIElementCopyAttributeNames(element, names)); -} - -@ffi.Native< - SInt32 Function(AXUIElementRef, CFStringRef, ffi.Pointer) ->(symbol: 'AXUIElementCopyAttributeValue') -external int _AXUIElementCopyAttributeValue( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer value, -); - -AXError AXUIElementCopyAttributeValue( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer value, -) { - return AXError.fromValue( - _AXUIElementCopyAttributeValue(element, attribute, value), - ); -} - -@ffi.Native< - SInt32 Function( - AXUIElementRef, - CFStringRef, - CFIndex, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'AXUIElementCopyAttributeValues') -external int _AXUIElementCopyAttributeValues( - AXUIElementRef element, - CFStringRef attribute, - int index$1, - int maxValues, - ffi.Pointer values, -); - -AXError AXUIElementCopyAttributeValues( - AXUIElementRef element, - CFStringRef attribute, - DartCFIndex index$1, - DartCFIndex maxValues, - ffi.Pointer values, -) { - return AXError.fromValue( - _AXUIElementCopyAttributeValues( - element, - attribute, - index$1, - maxValues, - values, - ), - ); -} - -@ffi.Native< - SInt32 Function( - AXUIElementRef, - ffi.Float, - ffi.Float, - ffi.Pointer, - ) ->(symbol: 'AXUIElementCopyElementAtPosition') -external int _AXUIElementCopyElementAtPosition( - AXUIElementRef application, - double x, - double y, - ffi.Pointer element, -); - -AXError AXUIElementCopyElementAtPosition( - AXUIElementRef application, - double x, - double y, - ffi.Pointer element, -) { - return AXError.fromValue( - _AXUIElementCopyElementAtPosition(application, x, y, element), - ); -} - -@ffi.Native< - SInt32 Function(AXUIElementRef, CFArrayRef, UInt32, ffi.Pointer) ->(symbol: 'AXUIElementCopyMultipleAttributeValues') -external int _AXUIElementCopyMultipleAttributeValues( - AXUIElementRef element, - CFArrayRef attributes, - int options, - ffi.Pointer values, -); - -AXError AXUIElementCopyMultipleAttributeValues( - AXUIElementRef element, - CFArrayRef attributes, - DartUInt32 options, - ffi.Pointer values, -) { - return AXError.fromValue( - _AXUIElementCopyMultipleAttributeValues( - element, - attributes, - options, - values, - ), - ); -} - -@ffi.Native)>( - symbol: 'AXUIElementCopyParameterizedAttributeNames', -) -external int _AXUIElementCopyParameterizedAttributeNames( - AXUIElementRef element, - ffi.Pointer names, -); - -AXError AXUIElementCopyParameterizedAttributeNames( - AXUIElementRef element, - ffi.Pointer names, -) { - return AXError.fromValue( - _AXUIElementCopyParameterizedAttributeNames(element, names), - ); -} - -@ffi.Native< - SInt32 Function( - AXUIElementRef, - CFStringRef, - CFTypeRef, - ffi.Pointer, - ) ->(symbol: 'AXUIElementCopyParameterizedAttributeValue') -external int _AXUIElementCopyParameterizedAttributeValue( - AXUIElementRef element, - CFStringRef parameterizedAttribute, - CFTypeRef parameter, - ffi.Pointer result, -); - -AXError AXUIElementCopyParameterizedAttributeValue( - AXUIElementRef element, - CFStringRef parameterizedAttribute, - CFTypeRef parameter, - ffi.Pointer result, -) { - return AXError.fromValue( - _AXUIElementCopyParameterizedAttributeValue( - element, - parameterizedAttribute, - parameter, - result, - ), - ); -} - -@ffi.Native() -external AXUIElementRef AXUIElementCreateApplication(int pid); - -@ffi.Native() -external AXUIElementRef AXUIElementCreateSystemWide(); - -@ffi.Native)>( - symbol: 'AXUIElementGetAttributeValueCount', -) -external int _AXUIElementGetAttributeValueCount( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer count, -); - -AXError AXUIElementGetAttributeValueCount( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer count, -) { - return AXError.fromValue( - _AXUIElementGetAttributeValueCount(element, attribute, count), - ); -} - -@ffi.Native)>( - symbol: 'AXUIElementGetPid', -) -external int _AXUIElementGetPid(AXUIElementRef element, ffi.Pointer pid); - -AXError AXUIElementGetPid(AXUIElementRef element, ffi.Pointer pid) { - return AXError.fromValue(_AXUIElementGetPid(element, pid)); -} - -@ffi.Native() -external int AXUIElementGetTypeID(); - -@ffi.Native)>( - symbol: 'AXUIElementIsAttributeSettable', -) -external int _AXUIElementIsAttributeSettable( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer settable, -); - -AXError AXUIElementIsAttributeSettable( - AXUIElementRef element, - CFStringRef attribute, - ffi.Pointer settable, -) { - return AXError.fromValue( - _AXUIElementIsAttributeSettable(element, attribute, settable), - ); -} - -@ffi.Native( - symbol: 'AXUIElementPerformAction', -) -external int _AXUIElementPerformAction( - AXUIElementRef element, - CFStringRef action, -); - -AXError AXUIElementPerformAction(AXUIElementRef element, CFStringRef action) { - return AXError.fromValue(_AXUIElementPerformAction(element, action)); -} - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'AXUIElementPostKeyboardEvent', -) -external int _AXUIElementPostKeyboardEvent( - AXUIElementRef application, - int keyChar, - int virtualKey, - int keyDown, -); - -AXError AXUIElementPostKeyboardEvent( - AXUIElementRef application, - DartCGCharCode keyChar, - DartCGKeyCode virtualKey, - DartBoolean keyDown, -) { - return AXError.fromValue( - _AXUIElementPostKeyboardEvent(application, keyChar, virtualKey, keyDown), - ); -} - -@ffi.Native( - symbol: 'AXUIElementSetAttributeValue', -) -external int _AXUIElementSetAttributeValue( - AXUIElementRef element, - CFStringRef attribute, - CFTypeRef value, -); - -AXError AXUIElementSetAttributeValue( - AXUIElementRef element, - CFStringRef attribute, - CFTypeRef value, -) { - return AXError.fromValue( - _AXUIElementSetAttributeValue(element, attribute, value), - ); -} - -@ffi.Native( - symbol: 'AXUIElementSetMessagingTimeout', -) -external int _AXUIElementSetMessagingTimeout( - AXUIElementRef element, - double timeoutInSeconds, -); - -AXError AXUIElementSetMessagingTimeout( - AXUIElementRef element, - double timeoutInSeconds, -) { - return AXError.fromValue( - _AXUIElementSetMessagingTimeout(element, timeoutInSeconds), - ); -} - -@ffi.Native)>( - symbol: 'AXValueCreate', -) -external AXValueRef _AXValueCreate(int theType, ffi.Pointer valuePtr); - -AXValueRef AXValueCreate(AXValueType theType, ffi.Pointer valuePtr) { - return _AXValueCreate(theType.value, valuePtr); -} - -@ffi.Native(symbol: 'AXValueGetType') -external int _AXValueGetType(AXValueRef value); - -AXValueType AXValueGetType(AXValueRef value) { - return AXValueType.fromValue(_AXValueGetType(value)); -} - -@ffi.Native() -external int AXValueGetTypeID(); - -@ffi.Native)>( - symbol: 'AXValueGetValue', -) -external int _AXValueGetValue( - AXValueRef value, - int theType, - ffi.Pointer valuePtr, -); - -DartBoolean AXValueGetValue( - AXValueRef value, - AXValueType theType, - ffi.Pointer valuePtr, -) { - return _AXValueGetValue(value, theType.value, valuePtr); -} - -@Deprecated('Deprecated') -@ffi.Native() -external int AbsoluteDeltaToDuration( - AbsoluteTime leftAbsoluteTime, - AbsoluteTime rightAbsoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Nanoseconds AbsoluteDeltaToNanoseconds( - AbsoluteTime leftAbsoluteTime, - AbsoluteTime rightAbsoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int AbsoluteToDuration(AbsoluteTime absoluteTime); - -@Deprecated('Deprecated') -@ffi.Native() -external Nanoseconds AbsoluteToNanoseconds(AbsoluteTime absoluteTime); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int AcquireIconRef(IconRef theIconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime AddAbsoluteToAbsolute( - AbsoluteTime absoluteTime1, - AbsoluteTime absoluteTime2, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int AddAtomic(int amount, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int AddAtomic16(int amount, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int AddAtomic8(int amount, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionTag, - SInt32, - SInt32, - ffi.Pointer, - ) ->() -external int AddCollectionItem( - Collection c, - int tag, - int id, - int itemSize, - ffi.Pointer itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int AddCollectionItemHdl( - Collection aCollection, - int tag, - int id, - Handle itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime AddDurationToAbsolute( - int duration, - AbsoluteTime absoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FolderType, - FolderDescFlags, - FolderClass, - FolderLocation, - OSType, - OSType, - ConstStrFileNameParam, - Boolean, - ) ->() -external int AddFolderDescriptor( - int foldType, - int flags, - int foldClass, - int foldLocation, - int badgeSignature, - int badgeType, - ConstStrFileNameParam name, - int replaceFlag, -); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime AddNanosecondsToAbsolute( - Nanoseconds nanoseconds, - AbsoluteTime absoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void AddResource( - Handle theData, - int theType, - int theID, - ConstStr255Param name, -); - -@ffi.Native< - OSStatus Function( - AuthorizationRef, - AuthorizationString, - ffi.Pointer>, - ) ->() -external int AuthorizationCopyInfo( - AuthorizationRef authorization, - AuthorizationString tag, - ffi.Pointer> info, -); - -@Deprecated('Deprecated') -@ffi.Native, UInt32)>() -external int AuthorizationCopyPrivilegedReference( - ffi.Pointer authorization, - int flags, -); - -@ffi.Native< - OSStatus Function( - AuthorizationRef, - ffi.Pointer, - ffi.Pointer, - UInt32, - ffi.Pointer>, - ) ->() -external int AuthorizationCopyRights( - AuthorizationRef authorization, - ffi.Pointer rights, - ffi.Pointer environment, - int flags, - ffi.Pointer> authorizedRights, -); - -@ffi.Native< - ffi.Void Function( - AuthorizationRef, - ffi.Pointer, - ffi.Pointer, - UInt32, - AuthorizationAsyncCallback, - ) ->(symbol: 'AuthorizationCopyRightsAsync') -external void _AuthorizationCopyRightsAsync( - AuthorizationRef authorization, - ffi.Pointer rights, - ffi.Pointer environment, - int flags, - AuthorizationAsyncCallback callbackBlock, -); - -void AuthorizationCopyRightsAsync( - AuthorizationRef authorization, - ffi.Pointer rights, - ffi.Pointer environment, - DartUInt32 flags, - DartAuthorizationAsyncCallback callbackBlock, -) { - final _$$ref = callbackBlock.ref; - return _AuthorizationCopyRightsAsync( - authorization, - rights, - environment, - flags, - _$$ref.pointer, - ); -} - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - UInt32, - ffi.Pointer, - ) ->() -external int AuthorizationCreate( - ffi.Pointer rights, - ffi.Pointer environment, - int flags, - ffi.Pointer authorization, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int AuthorizationCreateFromExternalForm( - ffi.Pointer extForm, - ffi.Pointer authorization, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - AuthorizationRef, - ffi.Pointer, - UInt32, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int AuthorizationExecuteWithPrivileges( - AuthorizationRef authorization, - ffi.Pointer pathToTool, - int options, - ffi.Pointer> arguments, - ffi.Pointer> communicationsPipe, -); - -@ffi.Native() -external int AuthorizationFree(AuthorizationRef authorization, int flags); - -@ffi.Native)>() -external int AuthorizationFreeItemSet(ffi.Pointer set); - -@ffi.Native< - OSStatus Function(AuthorizationRef, ffi.Pointer) ->() -external int AuthorizationMakeExternalForm( - AuthorizationRef authorization, - ffi.Pointer extForm, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int AuthorizationRightGet( - ffi.Pointer rightName, - ffi.Pointer rightDefinition, -); - -@ffi.Native)>() -external int AuthorizationRightRemove( - AuthorizationRef authRef, - ffi.Pointer rightName, -); - -@ffi.Native< - OSStatus Function( - AuthorizationRef, - ffi.Pointer, - CFTypeRef, - CFStringRef, - CFBundleRef, - CFStringRef, - ) ->() -external int AuthorizationRightSet( - AuthorizationRef authRef, - ffi.Pointer rightName, - CFTypeRef rightDefinition, - CFStringRef descriptionKey, - CFBundleRef bundle, - CFStringRef localeTableName, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int BatteryCount(); - -@Deprecated('Deprecated') -@ffi.Native() -external int BitAnd(int value1, int value2); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitAndAtomic(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitAndAtomic16(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitAndAtomic8(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Long)>() -external void BitClr(ffi.Pointer bytePtr, int bitNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int BitNot(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external int BitOr(int value1, int value2); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitOrAtomic(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitOrAtomic16(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitOrAtomic8(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Long)>() -external void BitSet(ffi.Pointer bytePtr, int bitNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int BitShift(int value, int count); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Long)>() -external int BitTst(ffi.Pointer bytePtr, int bitNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int BitXor(int value1, int value2); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitXorAtomic(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitXorAtomic16(int mask, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int BitXorAtomic8(int mask, ffi.Pointer address); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native< - CFAbsoluteTime Function(CFAbsoluteTime, CFTimeZoneRef, CFGregorianUnits) ->() -external double CFAbsoluteTimeAddGregorianUnits( - double at, - CFTimeZoneRef tz, - CFGregorianUnits units, -); - -@ffi.Native() -external double CFAbsoluteTimeGetCurrent(); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external int CFAbsoluteTimeGetDayOfWeek(double at, CFTimeZoneRef tz); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external int CFAbsoluteTimeGetDayOfYear(double at, CFTimeZoneRef tz); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native< - CFGregorianUnits Function( - CFAbsoluteTime, - CFAbsoluteTime, - CFTimeZoneRef, - CFOptionFlags, - ) ->() -external CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits( - double at1, - double at2, - CFTimeZoneRef tz, - int unitFlags, -); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external CFGregorianDate CFAbsoluteTimeGetGregorianDate( - double at, - CFTimeZoneRef tz, -); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external int CFAbsoluteTimeGetWeekOfYear(double at, CFTimeZoneRef tz); - -@ffi.Native< - ffi.Pointer Function(CFAllocatorRef, CFIndex, CFOptionFlags) ->() -external ffi.Pointer CFAllocatorAllocate( - CFAllocatorRef allocator, - int size, - int hint, -); - -@ffi.Native< - ffi.Pointer Function(CFAllocatorRef, CFIndex, CFOptionFlags) ->() -external ffi.Pointer CFAllocatorAllocateBytes( - CFAllocatorRef allocator, - int size, - int hint, -); - -@ffi.Native< - ffi.Pointer Function( - CFAllocatorRef, - CFIndex, - CFAllocatorTypeID, - CFOptionFlags, - ) ->() -external ffi.Pointer CFAllocatorAllocateTyped( - CFAllocatorRef allocator, - int size, - int descriptor, - int hint, -); - -@ffi.Native< - CFAllocatorRef Function(CFAllocatorRef, ffi.Pointer) ->() -external CFAllocatorRef CFAllocatorCreate( - CFAllocatorRef allocator, - ffi.Pointer context, -); - -@ffi.Native< - CFAllocatorRef Function(CFAllocatorRef, ffi.Pointer<_malloc_zone_t>) ->() -external CFAllocatorRef CFAllocatorCreateWithZone( - CFAllocatorRef allocator, - ffi.Pointer<_malloc_zone_t> zone, -); - -@ffi.Native)>() -external void CFAllocatorDeallocate( - CFAllocatorRef allocator, - ffi.Pointer ptr, -); - -@ffi.Native< - ffi.Void Function(CFAllocatorRef, ffi.Pointer) ->() -external void CFAllocatorGetContext( - CFAllocatorRef allocator, - ffi.Pointer context, -); - -@ffi.Native() -external CFAllocatorRef CFAllocatorGetDefault(); - -@ffi.Native() -external int CFAllocatorGetPreferredSizeForSize( - CFAllocatorRef allocator, - int size, - int hint, -); - -@ffi.Native() -external int CFAllocatorGetTypeID(); - -@ffi.Native< - ffi.Pointer Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFOptionFlags, - ) ->() -external ffi.Pointer CFAllocatorReallocate( - CFAllocatorRef allocator, - ffi.Pointer ptr, - int newsize, - int hint, -); - -@ffi.Native< - ffi.Pointer Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFOptionFlags, - ) ->() -external ffi.Pointer CFAllocatorReallocateBytes( - CFAllocatorRef allocator, - ffi.Pointer ptr, - int newsize, - int hint, -); - -@ffi.Native< - ffi.Pointer Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFAllocatorTypeID, - CFOptionFlags, - ) ->() -external ffi.Pointer CFAllocatorReallocateTyped( - CFAllocatorRef allocator, - ffi.Pointer ptr, - int newsize, - int descriptor, - int hint, -); - -@ffi.Native() -external void CFAllocatorSetDefault(CFAllocatorRef allocator); - -@ffi.Native() -external void CFArrayAppendArray( - CFMutableArrayRef theArray, - CFArrayRef otherArray, - CFRange otherRange, -); - -@ffi.Native)>() -external void CFArrayAppendValue( - CFMutableArrayRef theArray, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFArrayRef, - CFRange, - CFArrayApplierFunction, - ffi.Pointer, - ) ->() -external void CFArrayApplyFunction( - CFArrayRef theArray, - CFRange range, - CFArrayApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native< - CFIndex Function( - CFArrayRef, - CFRange, - ffi.Pointer, - CFComparatorFunction, - ffi.Pointer, - ) ->() -external int CFArrayBSearchValues( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, - CFComparatorFunction comparator, - ffi.Pointer context, -); - -@ffi.Native)>() -external int CFArrayContainsValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, -); - -@ffi.Native< - CFArrayRef Function( - CFAllocatorRef, - ffi.Pointer>, - CFIndex, - ffi.Pointer, - ) ->() -external CFArrayRef CFArrayCreate( - CFAllocatorRef allocator, - ffi.Pointer> values, - int numValues, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFArrayRef CFArrayCreateCopy( - CFAllocatorRef allocator, - CFArrayRef theArray, -); - -@ffi.Native< - CFMutableArrayRef Function( - CFAllocatorRef, - CFIndex, - ffi.Pointer, - ) ->() -external CFMutableArrayRef CFArrayCreateMutable( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFMutableArrayRef CFArrayCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFArrayRef theArray, -); - -@ffi.Native() -external void CFArrayExchangeValuesAtIndices( - CFMutableArrayRef theArray, - int idx1, - int idx2, -); - -@ffi.Native() -external int CFArrayGetCount(CFArrayRef theArray); - -@ffi.Native)>() -external int CFArrayGetCountOfValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, -); - -@ffi.Native)>() -external int CFArrayGetFirstIndexOfValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, -); - -@ffi.Native)>() -external int CFArrayGetLastIndexOfValue( - CFArrayRef theArray, - CFRange range, - ffi.Pointer value, -); - -@ffi.Native() -external int CFArrayGetTypeID(); - -@ffi.Native Function(CFArrayRef, CFIndex)>() -external ffi.Pointer CFArrayGetValueAtIndex( - CFArrayRef theArray, - int idx, -); - -@ffi.Native< - ffi.Void Function(CFArrayRef, CFRange, ffi.Pointer>) ->() -external void CFArrayGetValues( - CFArrayRef theArray, - CFRange range, - ffi.Pointer> values, -); - -@ffi.Native< - ffi.Void Function(CFMutableArrayRef, CFIndex, ffi.Pointer) ->() -external void CFArrayInsertValueAtIndex( - CFMutableArrayRef theArray, - int idx, - ffi.Pointer value, -); - -@ffi.Native() -external void CFArrayRemoveAllValues(CFMutableArrayRef theArray); - -@ffi.Native() -external void CFArrayRemoveValueAtIndex(CFMutableArrayRef theArray, int idx); - -@ffi.Native< - ffi.Void Function( - CFMutableArrayRef, - CFRange, - ffi.Pointer>, - CFIndex, - ) ->() -external void CFArrayReplaceValues( - CFMutableArrayRef theArray, - CFRange range, - ffi.Pointer> newValues, - int newCount, -); - -@ffi.Native< - ffi.Void Function(CFMutableArrayRef, CFIndex, ffi.Pointer) ->() -external void CFArraySetValueAtIndex( - CFMutableArrayRef theArray, - int idx, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFMutableArrayRef, - CFRange, - CFComparatorFunction, - ffi.Pointer, - ) ->() -external void CFArraySortValues( - CFMutableArrayRef theArray, - CFRange range, - CFComparatorFunction comparator, - ffi.Pointer context, -); - -@ffi.Native() -external void CFAttributedStringBeginEditing(CFMutableAttributedStringRef aStr); - -@ffi.Native< - CFAttributedStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) ->() -external CFAttributedStringRef CFAttributedStringCreate( - CFAllocatorRef alloc, - CFStringRef str, - CFDictionaryRef attributes, -); - -@ffi.Native< - CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef) ->() -external CFAttributedStringRef CFAttributedStringCreateCopy( - CFAllocatorRef alloc, - CFAttributedStringRef aStr, -); - -@ffi.Native() -external CFMutableAttributedStringRef CFAttributedStringCreateMutable( - CFAllocatorRef alloc, - int maxLength, -); - -@ffi.Native< - CFMutableAttributedStringRef Function( - CFAllocatorRef, - CFIndex, - CFAttributedStringRef, - ) ->() -external CFMutableAttributedStringRef CFAttributedStringCreateMutableCopy( - CFAllocatorRef alloc, - int maxLength, - CFAttributedStringRef aStr, -); - -@ffi.Native< - CFAttributedStringRef Function(CFAllocatorRef, CFAttributedStringRef, CFRange) ->() -external CFAttributedStringRef CFAttributedStringCreateWithSubstring( - CFAllocatorRef alloc, - CFAttributedStringRef aStr, - CFRange range, -); - -@ffi.Native() -external void CFAttributedStringEndEditing(CFMutableAttributedStringRef aStr); - -@ffi.Native< - CFTypeRef Function( - CFAttributedStringRef, - CFIndex, - CFStringRef, - ffi.Pointer, - ) ->() -external CFTypeRef CFAttributedStringGetAttribute( - CFAttributedStringRef aStr, - int loc, - CFStringRef attrName, - ffi.Pointer effectiveRange, -); - -@ffi.Native< - CFTypeRef Function( - CFAttributedStringRef, - CFIndex, - CFStringRef, - CFRange, - ffi.Pointer, - ) ->() -external CFTypeRef CFAttributedStringGetAttributeAndLongestEffectiveRange( - CFAttributedStringRef aStr, - int loc, - CFStringRef attrName, - CFRange inRange, - ffi.Pointer longestEffectiveRange, -); - -@ffi.Native< - CFDictionaryRef Function(CFAttributedStringRef, CFIndex, ffi.Pointer) ->() -external CFDictionaryRef CFAttributedStringGetAttributes( - CFAttributedStringRef aStr, - int loc, - ffi.Pointer effectiveRange, -); - -@ffi.Native< - CFDictionaryRef Function( - CFAttributedStringRef, - CFIndex, - CFRange, - ffi.Pointer, - ) ->() -external CFDictionaryRef -CFAttributedStringGetAttributesAndLongestEffectiveRange( - CFAttributedStringRef aStr, - int loc, - CFRange inRange, - ffi.Pointer longestEffectiveRange, -); - -@ffi.Native< - ffi.Bool Function( - CFAttributedStringRef, - CFRange, - ffi.Int8, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CFAttributedStringGetBidiLevelsAndResolvedDirections( - CFAttributedStringRef attributedString, - CFRange range, - int baseDirection, - ffi.Pointer bidiLevels, - ffi.Pointer baseDirections, -); - -@ffi.Native() -external int CFAttributedStringGetLength(CFAttributedStringRef aStr); - -@ffi.Native() -external CFMutableStringRef CFAttributedStringGetMutableString( - CFMutableAttributedStringRef aStr, -); - -@ffi.Native< - ffi.Bool Function( - CFAttributedStringRef, - CFRange, - ffi.Int8, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CFAttributedStringGetStatisticalWritingDirections( - CFAttributedStringRef attributedString, - CFRange range, - int baseDirection, - ffi.Pointer bidiLevels, - ffi.Pointer baseDirections, -); - -@ffi.Native() -external CFStringRef CFAttributedStringGetString(CFAttributedStringRef aStr); - -@ffi.Native() -external int CFAttributedStringGetTypeID(); - -@ffi.Native< - ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) ->() -external void CFAttributedStringRemoveAttribute( - CFMutableAttributedStringRef aStr, - CFRange range, - CFStringRef attrName, -); - -@ffi.Native< - ffi.Void Function( - CFMutableAttributedStringRef, - CFRange, - CFAttributedStringRef, - ) ->() -external void CFAttributedStringReplaceAttributedString( - CFMutableAttributedStringRef aStr, - CFRange range, - CFAttributedStringRef replacement, -); - -@ffi.Native< - ffi.Void Function(CFMutableAttributedStringRef, CFRange, CFStringRef) ->() -external void CFAttributedStringReplaceString( - CFMutableAttributedStringRef aStr, - CFRange range, - CFStringRef replacement, -); - -@ffi.Native< - ffi.Void Function( - CFMutableAttributedStringRef, - CFRange, - CFStringRef, - CFTypeRef, - ) ->() -external void CFAttributedStringSetAttribute( - CFMutableAttributedStringRef aStr, - CFRange range, - CFStringRef attrName, - CFTypeRef value, -); - -@ffi.Native< - ffi.Void Function( - CFMutableAttributedStringRef, - CFRange, - CFDictionaryRef, - Boolean, - ) ->() -external void CFAttributedStringSetAttributes( - CFMutableAttributedStringRef aStr, - CFRange range, - CFDictionaryRef replacement, - int clearOtherAttributes, -); - -@ffi.Native() -external CFTypeRef CFAutorelease(CFTypeRef arg); - -@ffi.Native)>() -external void CFBagAddValue( - CFMutableBagRef theBag, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function(CFBagRef, CFBagApplierFunction, ffi.Pointer) ->() -external void CFBagApplyFunction( - CFBagRef theBag, - CFBagApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native)>() -external int CFBagContainsValue(CFBagRef theBag, ffi.Pointer value); - -@ffi.Native< - CFBagRef Function( - CFAllocatorRef, - ffi.Pointer>, - CFIndex, - ffi.Pointer, - ) ->() -external CFBagRef CFBagCreate( - CFAllocatorRef allocator, - ffi.Pointer> values, - int numValues, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFBagRef CFBagCreateCopy(CFAllocatorRef allocator, CFBagRef theBag); - -@ffi.Native< - CFMutableBagRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) ->() -external CFMutableBagRef CFBagCreateMutable( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFMutableBagRef CFBagCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFBagRef theBag, -); - -@ffi.Native() -external int CFBagGetCount(CFBagRef theBag); - -@ffi.Native)>() -external int CFBagGetCountOfValue(CFBagRef theBag, ffi.Pointer value); - -@ffi.Native() -external int CFBagGetTypeID(); - -@ffi.Native Function(CFBagRef, ffi.Pointer)>() -external ffi.Pointer CFBagGetValue( - CFBagRef theBag, - ffi.Pointer value, -); - -@ffi.Native< - Boolean Function( - CFBagRef, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CFBagGetValueIfPresent( - CFBagRef theBag, - ffi.Pointer candidate, - ffi.Pointer> value, -); - -@ffi.Native>)>() -external void CFBagGetValues( - CFBagRef theBag, - ffi.Pointer> values, -); - -@ffi.Native() -external void CFBagRemoveAllValues(CFMutableBagRef theBag); - -@ffi.Native)>() -external void CFBagRemoveValue( - CFMutableBagRef theBag, - ffi.Pointer value, -); - -@ffi.Native)>() -external void CFBagReplaceValue( - CFMutableBagRef theBag, - ffi.Pointer value, -); - -@ffi.Native)>() -external void CFBagSetValue( - CFMutableBagRef theBag, - ffi.Pointer value, -); - -@ffi.Native)>() -external void CFBinaryHeapAddValue( - CFBinaryHeapRef heap, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFBinaryHeapRef, - CFBinaryHeapApplierFunction, - ffi.Pointer, - ) ->() -external void CFBinaryHeapApplyFunction( - CFBinaryHeapRef heap, - CFBinaryHeapApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native)>() -external int CFBinaryHeapContainsValue( - CFBinaryHeapRef heap, - ffi.Pointer value, -); - -@ffi.Native< - CFBinaryHeapRef Function( - CFAllocatorRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFBinaryHeapRef CFBinaryHeapCreate( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer callBacks, - ffi.Pointer compareContext, -); - -@ffi.Native< - CFBinaryHeapRef Function(CFAllocatorRef, CFIndex, CFBinaryHeapRef) ->() -external CFBinaryHeapRef CFBinaryHeapCreateCopy( - CFAllocatorRef allocator, - int capacity, - CFBinaryHeapRef heap, -); - -@ffi.Native() -external int CFBinaryHeapGetCount(CFBinaryHeapRef heap); - -@ffi.Native)>() -external int CFBinaryHeapGetCountOfValue( - CFBinaryHeapRef heap, - ffi.Pointer value, -); - -@ffi.Native Function(CFBinaryHeapRef)>() -external ffi.Pointer CFBinaryHeapGetMinimum(CFBinaryHeapRef heap); - -@ffi.Native< - Boolean Function(CFBinaryHeapRef, ffi.Pointer>) ->() -external int CFBinaryHeapGetMinimumIfPresent( - CFBinaryHeapRef heap, - ffi.Pointer> value, -); - -@ffi.Native() -external int CFBinaryHeapGetTypeID(); - -@ffi.Native< - ffi.Void Function(CFBinaryHeapRef, ffi.Pointer>) ->() -external void CFBinaryHeapGetValues( - CFBinaryHeapRef heap, - ffi.Pointer> values, -); - -@ffi.Native() -external void CFBinaryHeapRemoveAllValues(CFBinaryHeapRef heap); - -@ffi.Native() -external void CFBinaryHeapRemoveMinimumValue(CFBinaryHeapRef heap); - -@ffi.Native() -external int CFBitVectorContainsBit( - CFBitVectorRef bv, - CFRange range, - int value, -); - -@ffi.Native< - CFBitVectorRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) ->() -external CFBitVectorRef CFBitVectorCreate( - CFAllocatorRef allocator, - ffi.Pointer bytes, - int numBits, -); - -@ffi.Native() -external CFBitVectorRef CFBitVectorCreateCopy( - CFAllocatorRef allocator, - CFBitVectorRef bv, -); - -@ffi.Native() -external CFMutableBitVectorRef CFBitVectorCreateMutable( - CFAllocatorRef allocator, - int capacity, -); - -@ffi.Native< - CFMutableBitVectorRef Function(CFAllocatorRef, CFIndex, CFBitVectorRef) ->() -external CFMutableBitVectorRef CFBitVectorCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFBitVectorRef bv, -); - -@ffi.Native() -external void CFBitVectorFlipBitAtIndex(CFMutableBitVectorRef bv, int idx); - -@ffi.Native() -external void CFBitVectorFlipBits(CFMutableBitVectorRef bv, CFRange range); - -@ffi.Native() -external int CFBitVectorGetBitAtIndex(CFBitVectorRef bv, int idx); - -@ffi.Native)>() -external void CFBitVectorGetBits( - CFBitVectorRef bv, - CFRange range, - ffi.Pointer bytes, -); - -@ffi.Native() -external int CFBitVectorGetCount(CFBitVectorRef bv); - -@ffi.Native() -external int CFBitVectorGetCountOfBit( - CFBitVectorRef bv, - CFRange range, - int value, -); - -@ffi.Native() -external int CFBitVectorGetFirstIndexOfBit( - CFBitVectorRef bv, - CFRange range, - int value, -); - -@ffi.Native() -external int CFBitVectorGetLastIndexOfBit( - CFBitVectorRef bv, - CFRange range, - int value, -); - -@ffi.Native() -external int CFBitVectorGetTypeID(); - -@ffi.Native() -external void CFBitVectorSetAllBits(CFMutableBitVectorRef bv, int value); - -@ffi.Native() -external void CFBitVectorSetBitAtIndex( - CFMutableBitVectorRef bv, - int idx, - int value, -); - -@ffi.Native() -external void CFBitVectorSetBits( - CFMutableBitVectorRef bv, - CFRange range, - int value, -); - -@ffi.Native() -external void CFBitVectorSetCount(CFMutableBitVectorRef bv, int count); - -@ffi.Native() -external int CFBooleanGetTypeID(); - -@ffi.Native() -external int CFBooleanGetValue(CFBooleanRef boolean); - -@Deprecated( - 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', -) -@ffi.Native() -external void CFBundleCloseBundleResourceMap(CFBundleRef bundle, int refNum); - -@ffi.Native() -external CFURLRef CFBundleCopyAuxiliaryExecutableURL( - CFBundleRef bundle, - CFStringRef executableName, -); - -@ffi.Native() -external CFURLRef CFBundleCopyBuiltInPlugInsURL(CFBundleRef bundle); - -@ffi.Native() -external CFArrayRef CFBundleCopyBundleLocalizations(CFBundleRef bundle); - -@ffi.Native() -external CFURLRef CFBundleCopyBundleURL(CFBundleRef bundle); - -@ffi.Native() -external CFArrayRef CFBundleCopyExecutableArchitectures(CFBundleRef bundle); - -@ffi.Native() -external CFArrayRef CFBundleCopyExecutableArchitecturesForURL(CFURLRef url); - -@ffi.Native() -external CFURLRef CFBundleCopyExecutableURL(CFBundleRef bundle); - -@ffi.Native() -external CFDictionaryRef CFBundleCopyInfoDictionaryForURL(CFURLRef url); - -@ffi.Native() -external CFDictionaryRef CFBundleCopyInfoDictionaryInDirectory( - CFURLRef bundleURL, +late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); +late final _sel_isPlaying = objc.registerName("isPlaying"); +late final _sel_new = objc.registerName("new"); +late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); +late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); +late final _sel_pan = objc.registerName("pan"); +late final _sel_pause = objc.registerName("pause"); +late final _sel_peakPowerForChannel_ = objc.registerName( + "peakPowerForChannel:", ); - -@ffi.Native() -external CFArrayRef CFBundleCopyLocalizationsForPreferences( - CFArrayRef locArray, - CFArrayRef prefArray, +late final _sel_play = objc.registerName("play"); +late final _sel_playAtTime_ = objc.registerName("playAtTime:"); +late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); +late final _sel_rate = objc.registerName("rate"); +late final _sel_setChannelAssignments_ = objc.registerName( + "setChannelAssignments:", ); - -@ffi.Native() -external CFArrayRef CFBundleCopyLocalizationsForURL(CFURLRef url); - -@ffi.Native< - CFStringRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFStringRef CFBundleCopyLocalizedString( - CFBundleRef bundle, - CFStringRef key, - CFStringRef value, - CFStringRef tableName, +late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); +late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); +late final _sel_setDelegate_ = objc.registerName("setDelegate:"); +late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); +late final _sel_setIntendedSpatialExperience_ = objc.registerName( + "setIntendedSpatialExperience:", ); - -@ffi.Native< - CFStringRef Function( - CFBundleRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFArrayRef, - ) ->() -external CFStringRef CFBundleCopyLocalizedStringForLocalizations( - CFBundleRef bundle, - CFStringRef key, - CFStringRef value, - CFStringRef tableName, - CFArrayRef localizations, +late final _sel_setMeteringEnabled_ = objc.registerName("setMeteringEnabled:"); +late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); +late final _sel_setPan_ = objc.registerName("setPan:"); +late final _sel_setRate_ = objc.registerName("setRate:"); +late final _sel_setVolume_ = objc.registerName("setVolume:"); +late final _sel_setVolume_fadeDuration_ = objc.registerName( + "setVolume:fadeDuration:", ); - -@ffi.Native() -external CFArrayRef CFBundleCopyPreferredLocalizationsFromArray( - CFArrayRef locArray, -); - -@ffi.Native() -external CFURLRef CFBundleCopyPrivateFrameworksURL(CFBundleRef bundle); - -@ffi.Native< - CFURLRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFURLRef CFBundleCopyResourceURL( - CFBundleRef bundle, - CFStringRef resourceName, - CFStringRef resourceType, - CFStringRef subDirName, -); - -@ffi.Native< - CFURLRef Function( - CFBundleRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringRef, - ) ->() -external CFURLRef CFBundleCopyResourceURLForLocalization( - CFBundleRef bundle, - CFStringRef resourceName, - CFStringRef resourceType, - CFStringRef subDirName, - CFStringRef localizationName, -); - -@ffi.Native< - CFURLRef Function(CFURLRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFURLRef CFBundleCopyResourceURLInDirectory( - CFURLRef bundleURL, - CFStringRef resourceName, - CFStringRef resourceType, - CFStringRef subDirName, -); - -@ffi.Native() -external CFArrayRef CFBundleCopyResourceURLsOfType( - CFBundleRef bundle, - CFStringRef resourceType, - CFStringRef subDirName, -); - -@ffi.Native< - CFArrayRef Function(CFBundleRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFArrayRef CFBundleCopyResourceURLsOfTypeForLocalization( - CFBundleRef bundle, - CFStringRef resourceType, - CFStringRef subDirName, - CFStringRef localizationName, -); - -@ffi.Native() -external CFArrayRef CFBundleCopyResourceURLsOfTypeInDirectory( - CFURLRef bundleURL, - CFStringRef resourceType, - CFStringRef subDirName, -); - -@ffi.Native() -external CFURLRef CFBundleCopyResourcesDirectoryURL(CFBundleRef bundle); - -@ffi.Native() -external CFURLRef CFBundleCopySharedFrameworksURL(CFBundleRef bundle); - -@ffi.Native() -external CFURLRef CFBundleCopySharedSupportURL(CFBundleRef bundle); - -@ffi.Native() -external CFURLRef CFBundleCopySupportFilesDirectoryURL(CFBundleRef bundle); - -@ffi.Native() -external CFBundleRef CFBundleCreate( - CFAllocatorRef allocator, - CFURLRef bundleURL, -); - -@ffi.Native() -external CFArrayRef CFBundleCreateBundlesFromDirectory( - CFAllocatorRef allocator, - CFURLRef directoryURL, - CFStringRef bundleType, -); - -@ffi.Native() -external CFArrayRef CFBundleGetAllBundles(); - -@ffi.Native() -external CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID); - -@ffi.Native Function(CFBundleRef, CFStringRef)>() -external ffi.Pointer CFBundleGetDataPointerForName( - CFBundleRef bundle, - CFStringRef symbolName, -); - -@ffi.Native< - ffi.Void Function(CFBundleRef, CFArrayRef, ffi.Pointer>) ->() -external void CFBundleGetDataPointersForNames( - CFBundleRef bundle, - CFArrayRef symbolNames, - ffi.Pointer> stbl, -); - -@ffi.Native() -external CFStringRef CFBundleGetDevelopmentRegion(CFBundleRef bundle); - -@ffi.Native Function(CFBundleRef, CFStringRef)>() -external ffi.Pointer CFBundleGetFunctionPointerForName( - CFBundleRef bundle, - CFStringRef functionName, -); - -@ffi.Native< - ffi.Void Function(CFBundleRef, CFArrayRef, ffi.Pointer>) ->() -external void CFBundleGetFunctionPointersForNames( - CFBundleRef bundle, - CFArrayRef functionNames, - ffi.Pointer> ftbl, -); - -@ffi.Native() -external CFStringRef CFBundleGetIdentifier(CFBundleRef bundle); - -@ffi.Native() -external CFDictionaryRef CFBundleGetInfoDictionary(CFBundleRef bundle); - -@ffi.Native() -external CFDictionaryRef CFBundleGetLocalInfoDictionary(CFBundleRef bundle); - -@ffi.Native() -external CFBundleRef CFBundleGetMainBundle(); - -@ffi.Native< - ffi.Void Function(CFBundleRef, ffi.Pointer, ffi.Pointer) ->() -external void CFBundleGetPackageInfo( - CFBundleRef bundle, - ffi.Pointer packageType, - ffi.Pointer packageCreator, -); - -@ffi.Native< - Boolean Function(CFURLRef, ffi.Pointer, ffi.Pointer) ->() -external int CFBundleGetPackageInfoInDirectory( - CFURLRef url, - ffi.Pointer packageType, - ffi.Pointer packageCreator, -); - -@ffi.Native() -external CFPlugInRef CFBundleGetPlugIn(CFBundleRef bundle); - -@ffi.Native() -external int CFBundleGetTypeID(); - -@ffi.Native() -external CFTypeRef CFBundleGetValueForInfoDictionaryKey( - CFBundleRef bundle, - CFStringRef key, -); - -@ffi.Native() -external int CFBundleGetVersionNumber(CFBundleRef bundle); - -@ffi.Native() -external int CFBundleIsArchitectureLoadable(int arch); - -@ffi.Native() -external int CFBundleIsExecutableLoadable(CFBundleRef bundle); - -@ffi.Native() -external int CFBundleIsExecutableLoadableForURL(CFURLRef url); - -@ffi.Native() -external int CFBundleIsExecutableLoaded(CFBundleRef bundle); - -@ffi.Native() -external int CFBundleLoadExecutable(CFBundleRef bundle); - -@ffi.Native)>() -external int CFBundleLoadExecutableAndReturnError( - CFBundleRef bundle, - ffi.Pointer error, -); - -@Deprecated( - 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', -) -@ffi.Native< - SInt32 Function( - CFBundleRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CFBundleOpenBundleResourceFiles( - CFBundleRef bundle, - ffi.Pointer refNum, - ffi.Pointer localizedRefNum, -); - -@Deprecated( - 'The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.', -) -@ffi.Native() -external int CFBundleOpenBundleResourceMap(CFBundleRef bundle); - -@ffi.Native)>() -external int CFBundlePreflightExecutable( - CFBundleRef bundle, - ffi.Pointer error, -); - -@ffi.Native() -external void CFBundleUnloadExecutable(CFBundleRef bundle); - -@ffi.Native< - Boolean Function( - CFCalendarRef, - ffi.Pointer, - CFOptionFlags, - ffi.Pointer, - ) ->() -external int CFCalendarAddComponents( - CFCalendarRef calendar, - ffi.Pointer at, - int options, - ffi.Pointer componentDesc, -); - -@ffi.Native< - Boolean Function( - CFCalendarRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CFCalendarComposeAbsoluteTime( - CFCalendarRef calendar, - ffi.Pointer at, - ffi.Pointer componentDesc, -); - -@ffi.Native() -external CFCalendarRef CFCalendarCopyCurrent(); - -@ffi.Native() -external CFLocaleRef CFCalendarCopyLocale(CFCalendarRef calendar); - -@ffi.Native() -external CFTimeZoneRef CFCalendarCopyTimeZone(CFCalendarRef calendar); - -@ffi.Native() -external CFCalendarRef CFCalendarCreateWithIdentifier( - CFAllocatorRef allocator, - CFCalendarIdentifier identifier, -); - -@ffi.Native< - Boolean Function(CFCalendarRef, CFAbsoluteTime, ffi.Pointer) ->() -external int CFCalendarDecomposeAbsoluteTime( - CFCalendarRef calendar, - double at, - ffi.Pointer componentDesc, -); - -@ffi.Native< - Boolean Function( - CFCalendarRef, - CFAbsoluteTime, - CFAbsoluteTime, - CFOptionFlags, - ffi.Pointer, - ) ->() -external int CFCalendarGetComponentDifference( - CFCalendarRef calendar, - double startingAT, - double resultAT, - int options, - ffi.Pointer componentDesc, -); - -@ffi.Native() -external int CFCalendarGetFirstWeekday(CFCalendarRef calendar); - -@ffi.Native() -external CFCalendarIdentifier CFCalendarGetIdentifier(CFCalendarRef calendar); - -@ffi.Native() -external CFRange CFCalendarGetMaximumRangeOfUnit( - CFCalendarRef calendar, - int unit, -); - -@ffi.Native() -external int CFCalendarGetMinimumDaysInFirstWeek(CFCalendarRef calendar); - -@ffi.Native() -external CFRange CFCalendarGetMinimumRangeOfUnit( - CFCalendarRef calendar, - int unit, -); - -@ffi.Native< - CFIndex Function(CFCalendarRef, CFOptionFlags, CFOptionFlags, CFAbsoluteTime) ->() -external int CFCalendarGetOrdinalityOfUnit( - CFCalendarRef calendar, - int smallerUnit, - int biggerUnit, - double at, -); - -@ffi.Native< - CFRange Function(CFCalendarRef, CFOptionFlags, CFOptionFlags, CFAbsoluteTime) ->() -external CFRange CFCalendarGetRangeOfUnit( - CFCalendarRef calendar, - int smallerUnit, - int biggerUnit, - double at, -); - -@ffi.Native< - Boolean Function( - CFCalendarRef, - CFOptionFlags, - CFAbsoluteTime, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CFCalendarGetTimeRangeOfUnit( - CFCalendarRef calendar, - int unit, - double at, - ffi.Pointer startp, - ffi.Pointer tip, -); - -@ffi.Native() -external int CFCalendarGetTypeID(); - -@ffi.Native() -external void CFCalendarSetFirstWeekday(CFCalendarRef calendar, int wkdy); - -@ffi.Native() -external void CFCalendarSetLocale(CFCalendarRef calendar, CFLocaleRef locale); - -@ffi.Native() -external void CFCalendarSetMinimumDaysInFirstWeek( - CFCalendarRef calendar, - int mwd, -); - -@ffi.Native() -external void CFCalendarSetTimeZone(CFCalendarRef calendar, CFTimeZoneRef tz); - -@ffi.Native() -external void CFCharacterSetAddCharactersInRange( - CFMutableCharacterSetRef theSet, - CFRange theRange, -); - -@ffi.Native() -external void CFCharacterSetAddCharactersInString( - CFMutableCharacterSetRef theSet, - CFStringRef theString, -); - -@ffi.Native() -external CFDataRef CFCharacterSetCreateBitmapRepresentation( - CFAllocatorRef alloc, - CFCharacterSetRef theSet, -); - -@ffi.Native() -external CFCharacterSetRef CFCharacterSetCreateCopy( - CFAllocatorRef alloc, - CFCharacterSetRef theSet, -); - -@ffi.Native() -external CFCharacterSetRef CFCharacterSetCreateInvertedSet( - CFAllocatorRef alloc, - CFCharacterSetRef theSet, -); - -@ffi.Native() -external CFMutableCharacterSetRef CFCharacterSetCreateMutable( - CFAllocatorRef alloc, -); - -@ffi.Native< - CFMutableCharacterSetRef Function(CFAllocatorRef, CFCharacterSetRef) ->() -external CFMutableCharacterSetRef CFCharacterSetCreateMutableCopy( - CFAllocatorRef alloc, - CFCharacterSetRef theSet, -); - -@ffi.Native() -external CFCharacterSetRef CFCharacterSetCreateWithBitmapRepresentation( - CFAllocatorRef alloc, - CFDataRef theData, -); - -@ffi.Native() -external CFCharacterSetRef CFCharacterSetCreateWithCharactersInRange( - CFAllocatorRef alloc, - CFRange theRange, -); - -@ffi.Native() -external CFCharacterSetRef CFCharacterSetCreateWithCharactersInString( - CFAllocatorRef alloc, - CFStringRef theString, -); - -@ffi.Native( - symbol: 'CFCharacterSetGetPredefined', -) -external CFCharacterSetRef _CFCharacterSetGetPredefined(int theSetIdentifier); - -CFCharacterSetRef CFCharacterSetGetPredefined( - CFCharacterSetPredefinedSet theSetIdentifier, -) { - return _CFCharacterSetGetPredefined(theSetIdentifier.value); -} - -@ffi.Native() -external int CFCharacterSetGetTypeID(); - -@ffi.Native() -external int CFCharacterSetHasMemberInPlane( - CFCharacterSetRef theSet, - int thePlane, -); - -@ffi.Native() -external void CFCharacterSetIntersect( - CFMutableCharacterSetRef theSet, - CFCharacterSetRef theOtherSet, -); - -@ffi.Native() -external void CFCharacterSetInvert(CFMutableCharacterSetRef theSet); - -@ffi.Native() -external int CFCharacterSetIsCharacterMember( - CFCharacterSetRef theSet, - int theChar, -); - -@ffi.Native() -external int CFCharacterSetIsLongCharacterMember( - CFCharacterSetRef theSet, - int theChar, -); - -@ffi.Native() -external int CFCharacterSetIsSupersetOfSet( - CFCharacterSetRef theSet, - CFCharacterSetRef theOtherset, -); - -@ffi.Native() -external void CFCharacterSetRemoveCharactersInRange( - CFMutableCharacterSetRef theSet, - CFRange theRange, -); - -@ffi.Native() -external void CFCharacterSetRemoveCharactersInString( - CFMutableCharacterSetRef theSet, - CFStringRef theString, -); - -@ffi.Native() -external void CFCharacterSetUnion( - CFMutableCharacterSetRef theSet, - CFCharacterSetRef theOtherSet, -); - -@ffi.Native() -external CFStringRef CFCopyDescription(CFTypeRef cf); - -@ffi.Native() -external CFURLRef CFCopyHomeDirectoryURL(); - -@ffi.Native() -external CFStringRef CFCopyTypeIDDescription(int type_id); - -@ffi.Native, CFIndex)>() -external void CFDataAppendBytes( - CFMutableDataRef theData, - ffi.Pointer bytes, - int length, -); - -@ffi.Native, CFIndex)>() -external CFDataRef CFDataCreate( - CFAllocatorRef allocator, - ffi.Pointer bytes, - int length, -); - -@ffi.Native() -external CFDataRef CFDataCreateCopy( - CFAllocatorRef allocator, - CFDataRef theData, -); - -@ffi.Native() -external CFMutableDataRef CFDataCreateMutable( - CFAllocatorRef allocator, - int capacity, -); - -@ffi.Native() -external CFMutableDataRef CFDataCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFDataRef theData, -); - -@ffi.Native< - CFDataRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFAllocatorRef, - ) ->() -external CFDataRef CFDataCreateWithBytesNoCopy( - CFAllocatorRef allocator, - ffi.Pointer bytes, - int length, - CFAllocatorRef bytesDeallocator, -); - -@ffi.Native() -external void CFDataDeleteBytes(CFMutableDataRef theData, CFRange range); - -@ffi.Native() -external CFRange CFDataFind( - CFDataRef theData, - CFDataRef dataToFind, - CFRange searchRange, - int compareOptions, -); - -@ffi.Native Function(CFDataRef)>() -external ffi.Pointer CFDataGetBytePtr(CFDataRef theData); - -@ffi.Native)>() -external void CFDataGetBytes( - CFDataRef theData, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native() -external int CFDataGetLength(CFDataRef theData); - -@ffi.Native Function(CFMutableDataRef)>() -external ffi.Pointer CFDataGetMutableBytePtr(CFMutableDataRef theData); - -@ffi.Native() -external int CFDataGetTypeID(); - -@ffi.Native() -external void CFDataIncreaseLength(CFMutableDataRef theData, int extraLength); - -@ffi.Native< - ffi.Void Function(CFMutableDataRef, CFRange, ffi.Pointer, CFIndex) ->() -external void CFDataReplaceBytes( - CFMutableDataRef theData, - CFRange range, - ffi.Pointer newBytes, - int newLength, -); - -@ffi.Native() -external void CFDataSetLength(CFMutableDataRef theData, int length); - -@ffi.Native)>( - symbol: 'CFDateCompare', -) -external int _CFDateCompare( - CFDateRef theDate, - CFDateRef otherDate, - ffi.Pointer context, -); - -CFComparisonResult CFDateCompare( - CFDateRef theDate, - CFDateRef otherDate, - ffi.Pointer context, -) { - return CFComparisonResult.fromValue( - _CFDateCompare(theDate, otherDate, context), - ); -} - -@ffi.Native() -external CFDateRef CFDateCreate(CFAllocatorRef allocator, double at); - -@ffi.Native() -external CFTypeRef CFDateFormatterCopyProperty( - CFDateFormatterRef formatter, - CFDateFormatterKey key, -); - -@ffi.Native< - CFDateFormatterRef Function(CFAllocatorRef, CFLocaleRef, CFIndex, CFIndex) ->(symbol: 'CFDateFormatterCreate') -external CFDateFormatterRef _CFDateFormatterCreate( - CFAllocatorRef allocator, - CFLocaleRef locale, - int dateStyle, - int timeStyle, -); - -CFDateFormatterRef CFDateFormatterCreate( - CFAllocatorRef allocator, - CFLocaleRef locale, - CFDateFormatterStyle dateStyle, - CFDateFormatterStyle timeStyle, -) { - return _CFDateFormatterCreate( - allocator, - locale, - dateStyle.value, - timeStyle.value, - ); -} - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFOptionFlags, CFLocaleRef) ->() -external CFStringRef CFDateFormatterCreateDateFormatFromTemplate( - CFAllocatorRef allocator, - CFStringRef tmplate, - int options, - CFLocaleRef locale, -); - -@ffi.Native< - CFDateRef Function( - CFAllocatorRef, - CFDateFormatterRef, - CFStringRef, - ffi.Pointer, - ) ->() -external CFDateRef CFDateFormatterCreateDateFromString( - CFAllocatorRef allocator, - CFDateFormatterRef formatter, - CFStringRef string, - ffi.Pointer rangep, -); - -@ffi.Native() -external CFDateFormatterRef CFDateFormatterCreateISO8601Formatter( - CFAllocatorRef allocator, - int formatOptions, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, CFAbsoluteTime) ->() -external CFStringRef CFDateFormatterCreateStringWithAbsoluteTime( - CFAllocatorRef allocator, - CFDateFormatterRef formatter, - double at, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFDateFormatterRef, CFDateRef) ->() -external CFStringRef CFDateFormatterCreateStringWithDate( - CFAllocatorRef allocator, - CFDateFormatterRef formatter, - CFDateRef date, -); - -@ffi.Native< - Boolean Function( - CFDateFormatterRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CFDateFormatterGetAbsoluteTimeFromString( - CFDateFormatterRef formatter, - CFStringRef string, - ffi.Pointer rangep, - ffi.Pointer atp, -); - -@ffi.Native( - symbol: 'CFDateFormatterGetDateStyle', -) -external int _CFDateFormatterGetDateStyle(CFDateFormatterRef formatter); - -CFDateFormatterStyle CFDateFormatterGetDateStyle(CFDateFormatterRef formatter) { - return CFDateFormatterStyle.fromValue( - _CFDateFormatterGetDateStyle(formatter), - ); -} - -@ffi.Native() -external CFStringRef CFDateFormatterGetFormat(CFDateFormatterRef formatter); - -@ffi.Native() -external CFLocaleRef CFDateFormatterGetLocale(CFDateFormatterRef formatter); - -@ffi.Native( - symbol: 'CFDateFormatterGetTimeStyle', -) -external int _CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter); - -CFDateFormatterStyle CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter) { - return CFDateFormatterStyle.fromValue( - _CFDateFormatterGetTimeStyle(formatter), - ); -} - -@ffi.Native() -external int CFDateFormatterGetTypeID(); - -@ffi.Native() -external void CFDateFormatterSetFormat( - CFDateFormatterRef formatter, - CFStringRef formatString, -); - -@ffi.Native() -external void CFDateFormatterSetProperty( - CFDateFormatterRef formatter, - CFStringRef key, - CFTypeRef value, -); - -@ffi.Native() -external double CFDateGetAbsoluteTime(CFDateRef theDate); - -@ffi.Native() -external double CFDateGetTimeIntervalSinceDate( - CFDateRef theDate, - CFDateRef otherDate, -); - -@ffi.Native() -external int CFDateGetTypeID(); - -@ffi.Native< - ffi.Void Function( - CFMutableDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFDictionaryAddValue( - CFMutableDictionaryRef theDict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFDictionaryRef, - CFDictionaryApplierFunction, - ffi.Pointer, - ) ->() -external void CFDictionaryApplyFunction( - CFDictionaryRef theDict, - CFDictionaryApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native)>() -external int CFDictionaryContainsKey( - CFDictionaryRef theDict, - ffi.Pointer key, -); - -@ffi.Native)>() -external int CFDictionaryContainsValue( - CFDictionaryRef theDict, - ffi.Pointer value, -); - -@ffi.Native< - CFDictionaryRef Function( - CFAllocatorRef, - ffi.Pointer>, - ffi.Pointer>, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFDictionaryRef CFDictionaryCreate( - CFAllocatorRef allocator, - ffi.Pointer> keys, - ffi.Pointer> values, - int numValues, - ffi.Pointer keyCallBacks, - ffi.Pointer valueCallBacks, -); - -@ffi.Native() -external CFDictionaryRef CFDictionaryCreateCopy( - CFAllocatorRef allocator, - CFDictionaryRef theDict, -); - -@ffi.Native< - CFMutableDictionaryRef Function( - CFAllocatorRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFMutableDictionaryRef CFDictionaryCreateMutable( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer keyCallBacks, - ffi.Pointer valueCallBacks, -); - -@ffi.Native< - CFMutableDictionaryRef Function(CFAllocatorRef, CFIndex, CFDictionaryRef) ->() -external CFMutableDictionaryRef CFDictionaryCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFDictionaryRef theDict, -); - -@ffi.Native() -external int CFDictionaryGetCount(CFDictionaryRef theDict); - -@ffi.Native)>() -external int CFDictionaryGetCountOfKey( - CFDictionaryRef theDict, - ffi.Pointer key, -); - -@ffi.Native)>() -external int CFDictionaryGetCountOfValue( - CFDictionaryRef theDict, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFDictionaryRef, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external void CFDictionaryGetKeysAndValues( - CFDictionaryRef theDict, - ffi.Pointer> keys, - ffi.Pointer> values, -); - -@ffi.Native() -external int CFDictionaryGetTypeID(); - -@ffi.Native< - ffi.Pointer Function(CFDictionaryRef, ffi.Pointer) ->() -external ffi.Pointer CFDictionaryGetValue( - CFDictionaryRef theDict, - ffi.Pointer key, -); - -@ffi.Native< - Boolean Function( - CFDictionaryRef, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CFDictionaryGetValueIfPresent( - CFDictionaryRef theDict, - ffi.Pointer key, - ffi.Pointer> value, -); - -@ffi.Native() -external void CFDictionaryRemoveAllValues(CFMutableDictionaryRef theDict); - -@ffi.Native)>() -external void CFDictionaryRemoveValue( - CFMutableDictionaryRef theDict, - ffi.Pointer key, -); - -@ffi.Native< - ffi.Void Function( - CFMutableDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFDictionaryReplaceValue( - CFMutableDictionaryRef theDict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function( - CFMutableDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFDictionarySetValue( - CFMutableDictionaryRef theDict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native() -external int CFEqual(CFTypeRef cf1, CFTypeRef cf2); - -@ffi.Native() -external CFStringRef CFErrorCopyDescription(CFErrorRef err); - -@ffi.Native() -external CFStringRef CFErrorCopyFailureReason(CFErrorRef err); - -@ffi.Native() -external CFStringRef CFErrorCopyRecoverySuggestion(CFErrorRef err); - -@ffi.Native() -external CFDictionaryRef CFErrorCopyUserInfo(CFErrorRef err); - -@ffi.Native< - CFErrorRef Function(CFAllocatorRef, CFErrorDomain, CFIndex, CFDictionaryRef) ->() -external CFErrorRef CFErrorCreate( - CFAllocatorRef allocator, - CFErrorDomain domain, - int code, - CFDictionaryRef userInfo, -); - -@ffi.Native< - CFErrorRef Function( - CFAllocatorRef, - CFErrorDomain, - CFIndex, - ffi.Pointer>, - ffi.Pointer>, - CFIndex, - ) ->() -external CFErrorRef CFErrorCreateWithUserInfoKeysAndValues( - CFAllocatorRef allocator, - CFErrorDomain domain, - int code, - ffi.Pointer> userInfoKeys, - ffi.Pointer> userInfoValues, - int numUserInfoValues, -); - -@ffi.Native() -external int CFErrorGetCode(CFErrorRef err); - -@ffi.Native() -external CFErrorDomain CFErrorGetDomain(CFErrorRef err); - -@ffi.Native() -external int CFErrorGetTypeID(); - -@Deprecated('Use NSURLSessionAPI for ftp requests') -@ffi.Native< - CFIndex Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - ffi.Pointer, - ) ->() -external int CFFTPCreateParsedResourceListing( - CFAllocatorRef alloc, - ffi.Pointer buffer, - int bufferLength, - ffi.Pointer parsed, -); - -@ffi.Native< - CFFileDescriptorRef Function( - CFAllocatorRef, - CFFileDescriptorNativeDescriptor, - Boolean, - CFFileDescriptorCallBack, - ffi.Pointer, - ) ->() -external CFFileDescriptorRef CFFileDescriptorCreate( - CFAllocatorRef allocator, - int fd, - int closeOnInvalidate, - CFFileDescriptorCallBack callout, - ffi.Pointer context, -); - -@ffi.Native< - CFRunLoopSourceRef Function(CFAllocatorRef, CFFileDescriptorRef, CFIndex) ->() -external CFRunLoopSourceRef CFFileDescriptorCreateRunLoopSource( - CFAllocatorRef allocator, - CFFileDescriptorRef f, - int order, -); - -@ffi.Native() -external void CFFileDescriptorDisableCallBacks( - CFFileDescriptorRef f, - int callBackTypes, -); - -@ffi.Native() -external void CFFileDescriptorEnableCallBacks( - CFFileDescriptorRef f, - int callBackTypes, -); - -@ffi.Native< - ffi.Void Function(CFFileDescriptorRef, ffi.Pointer) ->() -external void CFFileDescriptorGetContext( - CFFileDescriptorRef f, - ffi.Pointer context, -); - -@ffi.Native() -external int CFFileDescriptorGetNativeDescriptor(CFFileDescriptorRef f); - -@ffi.Native() -external int CFFileDescriptorGetTypeID(); - -@ffi.Native() -external void CFFileDescriptorInvalidate(CFFileDescriptorRef f); - -@ffi.Native() -external int CFFileDescriptorIsValid(CFFileDescriptorRef f); - -@ffi.Native() -external int CFFileSecurityClearProperties( - CFFileSecurityRef fileSec, - int clearPropertyMask, -); - -@ffi.Native)>() -external int CFFileSecurityCopyAccessControlList( - CFFileSecurityRef fileSec, - ffi.Pointer accessControlList, -); - -@ffi.Native)>() -external int CFFileSecurityCopyGroupUUID( - CFFileSecurityRef fileSec, - ffi.Pointer groupUUID, -); - -@ffi.Native)>() -external int CFFileSecurityCopyOwnerUUID( - CFFileSecurityRef fileSec, - ffi.Pointer ownerUUID, -); - -@ffi.Native() -external CFFileSecurityRef CFFileSecurityCreate(CFAllocatorRef allocator); - -@ffi.Native() -external CFFileSecurityRef CFFileSecurityCreateCopy( - CFAllocatorRef allocator, - CFFileSecurityRef fileSec, -); - -@ffi.Native)>() -external int CFFileSecurityGetGroup( - CFFileSecurityRef fileSec, - ffi.Pointer group, -); - -@ffi.Native)>() -external int CFFileSecurityGetMode( - CFFileSecurityRef fileSec, - ffi.Pointer mode, -); - -@ffi.Native)>() -external int CFFileSecurityGetOwner( - CFFileSecurityRef fileSec, - ffi.Pointer owner, -); - -@ffi.Native() -external int CFFileSecurityGetTypeID(); - -@ffi.Native() -external int CFFileSecuritySetAccessControlList( - CFFileSecurityRef fileSec, - acl_t accessControlList, -); - -@ffi.Native() -external int CFFileSecuritySetGroup(CFFileSecurityRef fileSec, int group); - -@ffi.Native() -external int CFFileSecuritySetGroupUUID( - CFFileSecurityRef fileSec, - CFUUIDRef groupUUID, -); - -@ffi.Native() -external int CFFileSecuritySetMode(CFFileSecurityRef fileSec, int mode); - -@ffi.Native() -external int CFFileSecuritySetOwner(CFFileSecurityRef fileSec, int owner); - -@ffi.Native() -external int CFFileSecuritySetOwnerUUID( - CFFileSecurityRef fileSec, - CFUUIDRef ownerUUID, -); - -@ffi.Native() -external CFAllocatorRef CFGetAllocator(CFTypeRef cf); - -@ffi.Native() -external int CFGetRetainCount(CFTypeRef cf); - -@ffi.Native() -external int CFGetTypeID(CFTypeRef cf); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external double CFGregorianDateGetAbsoluteTime( - CFGregorianDate gdate, - CFTimeZoneRef tz, -); - -@Deprecated('Use CFCalendar or NSCalendar API instead') -@ffi.Native() -external int CFGregorianDateIsValid(CFGregorianDate gdate, int unitFlags); - -@ffi.Native() -external int CFHTTPAuthenticationAppliesToRequest( - CFHTTPAuthenticationRef auth, - CFHTTPMessageRef request, -); - -@ffi.Native() -external CFArrayRef CFHTTPAuthenticationCopyDomains( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native() -external CFStringRef CFHTTPAuthenticationCopyMethod( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native() -external CFStringRef CFHTTPAuthenticationCopyRealm( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native< - CFHTTPAuthenticationRef Function(CFAllocatorRef, CFHTTPMessageRef) ->() -external CFHTTPAuthenticationRef CFHTTPAuthenticationCreateFromResponse( - CFAllocatorRef alloc, - CFHTTPMessageRef response, -); - -@ffi.Native() -external int CFHTTPAuthenticationGetTypeID(); - -@ffi.Native< - Boolean Function(CFHTTPAuthenticationRef, ffi.Pointer) ->() -external int CFHTTPAuthenticationIsValid( - CFHTTPAuthenticationRef auth, - ffi.Pointer error, -); - -@ffi.Native() -external int CFHTTPAuthenticationRequiresAccountDomain( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native() -external int CFHTTPAuthenticationRequiresOrderedRequests( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native() -external int CFHTTPAuthenticationRequiresUserNameAndPassword( - CFHTTPAuthenticationRef auth, -); - -@ffi.Native< - Boolean Function( - CFHTTPMessageRef, - CFHTTPMessageRef, - CFStringRef, - CFStringRef, - CFStringRef, - Boolean, - ) ->() -external int CFHTTPMessageAddAuthentication( - CFHTTPMessageRef request, - CFHTTPMessageRef authenticationFailureResponse, - CFStringRef username, - CFStringRef password, - CFStringRef authenticationScheme, - int forProxy, -); - -@ffi.Native, CFIndex)>() -external int CFHTTPMessageAppendBytes( - CFHTTPMessageRef message, - ffi.Pointer newBytes, - int numBytes, -); - -@ffi.Native< - Boolean Function( - CFHTTPMessageRef, - CFHTTPAuthenticationRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CFHTTPMessageApplyCredentialDictionary( - CFHTTPMessageRef request, - CFHTTPAuthenticationRef auth, - CFDictionaryRef dict, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function( - CFHTTPMessageRef, - CFHTTPAuthenticationRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external int CFHTTPMessageApplyCredentials( - CFHTTPMessageRef request, - CFHTTPAuthenticationRef auth, - CFStringRef username, - CFStringRef password, - ffi.Pointer error, -); - -@ffi.Native() -external CFDictionaryRef CFHTTPMessageCopyAllHeaderFields( - CFHTTPMessageRef message, -); - -@ffi.Native() -external CFDataRef CFHTTPMessageCopyBody(CFHTTPMessageRef message); - -@ffi.Native() -external CFStringRef CFHTTPMessageCopyHeaderFieldValue( - CFHTTPMessageRef message, - CFStringRef headerField, -); - -@ffi.Native() -external CFStringRef CFHTTPMessageCopyRequestMethod(CFHTTPMessageRef request); - -@ffi.Native() -external CFURLRef CFHTTPMessageCopyRequestURL(CFHTTPMessageRef request); - -@ffi.Native() -external CFStringRef CFHTTPMessageCopyResponseStatusLine( - CFHTTPMessageRef response, -); - -@ffi.Native() -external CFDataRef CFHTTPMessageCopySerializedMessage(CFHTTPMessageRef message); - -@ffi.Native() -external CFStringRef CFHTTPMessageCopyVersion(CFHTTPMessageRef message); - -@ffi.Native() -external CFHTTPMessageRef CFHTTPMessageCreateCopy( - CFAllocatorRef alloc, - CFHTTPMessageRef message, -); - -@ffi.Native() -external CFHTTPMessageRef CFHTTPMessageCreateEmpty( - CFAllocatorRef alloc, - int isRequest, -); - -@ffi.Native< - CFHTTPMessageRef Function(CFAllocatorRef, CFStringRef, CFURLRef, CFStringRef) ->() -external CFHTTPMessageRef CFHTTPMessageCreateRequest( - CFAllocatorRef alloc, - CFStringRef requestMethod, - CFURLRef url, - CFStringRef httpVersion, -); - -@ffi.Native< - CFHTTPMessageRef Function(CFAllocatorRef, CFIndex, CFStringRef, CFStringRef) ->() -external CFHTTPMessageRef CFHTTPMessageCreateResponse( - CFAllocatorRef alloc, - int statusCode, - CFStringRef statusDescription, - CFStringRef httpVersion, -); - -@ffi.Native() -external int CFHTTPMessageGetResponseStatusCode(CFHTTPMessageRef response); - -@ffi.Native() -external int CFHTTPMessageGetTypeID(); - -@ffi.Native() -external int CFHTTPMessageIsHeaderComplete(CFHTTPMessageRef message); - -@ffi.Native() -external int CFHTTPMessageIsRequest(CFHTTPMessageRef message); - -@ffi.Native() -external void CFHTTPMessageSetBody( - CFHTTPMessageRef message, - CFDataRef bodyData, -); - -@ffi.Native() -external void CFHTTPMessageSetHeaderFieldValue( - CFHTTPMessageRef message, - CFStringRef headerField, - CFStringRef value, -); - -@ffi.Native() -external int CFHash(CFTypeRef cf); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native( - symbol: 'CFHostCancelInfoResolution', -) -external void _CFHostCancelInfoResolution(CFHostRef theHost, int info); - -void CFHostCancelInfoResolution(CFHostRef theHost, CFHostInfoType info) { - return _CFHostCancelInfoResolution(theHost, info.value); -} - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external CFHostRef CFHostCreateCopy(CFAllocatorRef alloc, CFHostRef host); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external CFHostRef CFHostCreateWithAddress( - CFAllocatorRef allocator, - CFDataRef addr, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external CFHostRef CFHostCreateWithName( - CFAllocatorRef allocator, - CFStringRef hostname, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native)>() -external CFArrayRef CFHostGetAddressing( - CFHostRef theHost, - ffi.Pointer hasBeenResolved, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native)>() -external CFArrayRef CFHostGetNames( - CFHostRef theHost, - ffi.Pointer hasBeenResolved, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native)>() -external CFDataRef CFHostGetReachability( - CFHostRef theHost, - ffi.Pointer hasBeenResolved, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external int CFHostGetTypeID(); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external void CFHostScheduleWithRunLoop( - CFHostRef theHost, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native< - Boolean Function( - CFHostRef, - CFHostClientCallBack, - ffi.Pointer, - ) ->() -external int CFHostSetClient( - CFHostRef theHost, - CFHostClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native< - Boolean Function(CFHostRef, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'CFHostStartInfoResolution') -external int _CFHostStartInfoResolution( - CFHostRef theHost, - int info, - ffi.Pointer error, -); - -DartBoolean CFHostStartInfoResolution( - CFHostRef theHost, - CFHostInfoType info, - ffi.Pointer error, -) { - return _CFHostStartInfoResolution(theHost, info.value, error); -} - -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -@ffi.Native() -external void CFHostUnscheduleFromRunLoop( - CFHostRef theHost, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native() -external CFArrayRef CFLocaleCopyAvailableLocaleIdentifiers(); - -@ffi.Native() -external CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(); - -@ffi.Native() -external CFLocaleRef CFLocaleCopyCurrent(); - -@ffi.Native() -external CFStringRef CFLocaleCopyDisplayNameForPropertyValue( - CFLocaleRef displayLocale, - CFLocaleKey key, - CFStringRef value, -); - -@ffi.Native() -external CFArrayRef CFLocaleCopyISOCountryCodes(); - -@ffi.Native() -external CFArrayRef CFLocaleCopyISOCurrencyCodes(); - -@ffi.Native() -external CFArrayRef CFLocaleCopyISOLanguageCodes(); - -@ffi.Native() -external CFArrayRef CFLocaleCopyPreferredLanguages(); - -@ffi.Native() -external CFLocaleRef CFLocaleCreate( - CFAllocatorRef allocator, - CFLocaleIdentifier localeIdentifier, -); - -@ffi.Native() -external CFLocaleIdentifier CFLocaleCreateCanonicalLanguageIdentifierFromString( - CFAllocatorRef allocator, - CFStringRef localeIdentifier, -); - -@ffi.Native() -external CFLocaleIdentifier -CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes( - CFAllocatorRef allocator, - int lcode, - int rcode, -); - -@ffi.Native() -external CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromString( - CFAllocatorRef allocator, - CFStringRef localeIdentifier, -); - -@ffi.Native() -external CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier( - CFAllocatorRef allocator, - CFLocaleIdentifier localeID, -); - -@ffi.Native() -external CFLocaleRef CFLocaleCreateCopy( - CFAllocatorRef allocator, - CFLocaleRef locale, -); - -@ffi.Native() -external CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromComponents( - CFAllocatorRef allocator, - CFDictionaryRef dictionary, -); - -@ffi.Native() -external CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode( - CFAllocatorRef allocator, - int lcid, -); - -@ffi.Native() -external CFLocaleIdentifier CFLocaleGetIdentifier(CFLocaleRef locale); - -@ffi.Native( - symbol: 'CFLocaleGetLanguageCharacterDirection', -) -external int _CFLocaleGetLanguageCharacterDirection(CFStringRef isoLangCode); - -CFLocaleLanguageDirection CFLocaleGetLanguageCharacterDirection( - CFStringRef isoLangCode, -) { - return CFLocaleLanguageDirection.fromValue( - _CFLocaleGetLanguageCharacterDirection(isoLangCode), - ); -} - -@ffi.Native( - symbol: 'CFLocaleGetLanguageLineDirection', -) -external int _CFLocaleGetLanguageLineDirection(CFStringRef isoLangCode); - -CFLocaleLanguageDirection CFLocaleGetLanguageLineDirection( - CFStringRef isoLangCode, -) { - return CFLocaleLanguageDirection.fromValue( - _CFLocaleGetLanguageLineDirection(isoLangCode), - ); -} - -@ffi.Native() -external CFLocaleRef CFLocaleGetSystem(); - -@ffi.Native() -external int CFLocaleGetTypeID(); - -@ffi.Native() -external CFTypeRef CFLocaleGetValue(CFLocaleRef locale, CFLocaleKey key); - -@ffi.Native() -external int CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier( - CFLocaleIdentifier localeIdentifier, -); - -@ffi.Native< - CFMachPortRef Function( - CFAllocatorRef, - CFMachPortCallBack, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFMachPortRef CFMachPortCreate( - CFAllocatorRef allocator, - CFMachPortCallBack callout, - ffi.Pointer context, - ffi.Pointer shouldFreeInfo, -); - -@ffi.Native< - CFRunLoopSourceRef Function(CFAllocatorRef, CFMachPortRef, CFIndex) ->() -external CFRunLoopSourceRef CFMachPortCreateRunLoopSource( - CFAllocatorRef allocator, - CFMachPortRef port, - int order, -); - -@ffi.Native< - CFMachPortRef Function( - CFAllocatorRef, - mach_port_t, - CFMachPortCallBack, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFMachPortRef CFMachPortCreateWithPort( - CFAllocatorRef allocator, - int portNum, - CFMachPortCallBack callout, - ffi.Pointer context, - ffi.Pointer shouldFreeInfo, -); - -@ffi.Native)>() -external void CFMachPortGetContext( - CFMachPortRef port, - ffi.Pointer context, -); - -@ffi.Native() -external CFMachPortInvalidationCallBack CFMachPortGetInvalidationCallBack( - CFMachPortRef port, -); - -@ffi.Native() -external int CFMachPortGetPort(CFMachPortRef port); - -@ffi.Native() -external int CFMachPortGetTypeID(); - -@ffi.Native() -external void CFMachPortInvalidate(CFMachPortRef port); - -@ffi.Native() -external int CFMachPortIsValid(CFMachPortRef port); - -@ffi.Native() -external void CFMachPortSetInvalidationCallBack( - CFMachPortRef port, - CFMachPortInvalidationCallBack callout, -); - -@ffi.Native() -external CFTypeRef CFMakeCollectable(CFTypeRef cf); - -@ffi.Native< - CFMessagePortRef Function( - CFAllocatorRef, - CFStringRef, - CFMessagePortCallBack, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFMessagePortRef CFMessagePortCreateLocal( - CFAllocatorRef allocator, - CFStringRef name, - CFMessagePortCallBack callout, - ffi.Pointer context, - ffi.Pointer shouldFreeInfo, -); - -@ffi.Native() -external CFMessagePortRef CFMessagePortCreateRemote( - CFAllocatorRef allocator, - CFStringRef name, -); - -@ffi.Native< - CFRunLoopSourceRef Function(CFAllocatorRef, CFMessagePortRef, CFIndex) ->() -external CFRunLoopSourceRef CFMessagePortCreateRunLoopSource( - CFAllocatorRef allocator, - CFMessagePortRef local, - int order, -); - -@ffi.Native< - ffi.Void Function(CFMessagePortRef, ffi.Pointer) ->() -external void CFMessagePortGetContext( - CFMessagePortRef ms, - ffi.Pointer context, -); - -@ffi.Native() -external CFMessagePortInvalidationCallBack CFMessagePortGetInvalidationCallBack( - CFMessagePortRef ms, -); - -@ffi.Native() -external CFStringRef CFMessagePortGetName(CFMessagePortRef ms); - -@ffi.Native() -external int CFMessagePortGetTypeID(); - -@ffi.Native() -external void CFMessagePortInvalidate(CFMessagePortRef ms); - -@ffi.Native() -external int CFMessagePortIsRemote(CFMessagePortRef ms); - -@ffi.Native() -external int CFMessagePortIsValid(CFMessagePortRef ms); - -@ffi.Native< - SInt32 Function( - CFMessagePortRef, - SInt32, - CFDataRef, - CFTimeInterval, - CFTimeInterval, - CFStringRef, - ffi.Pointer, - ) ->() -external int CFMessagePortSendRequest( - CFMessagePortRef remote, - int msgid, - CFDataRef data, - double sendTimeout, - double rcvTimeout, - CFStringRef replyMode, - ffi.Pointer returnData, -); - -@ffi.Native( - symbol: 'CFMessagePortSetDispatchQueue', -) -external void _CFMessagePortSetDispatchQueue( - CFMessagePortRef ms, - dispatch_queue_t queue, -); - -void CFMessagePortSetDispatchQueue( - CFMessagePortRef ms, - Dartdispatch_queue_t queue, -) { - final _$$ref = queue.ref; - return _CFMessagePortSetDispatchQueue(ms, _$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function(CFMessagePortRef, CFMessagePortInvalidationCallBack) ->() -external void CFMessagePortSetInvalidationCallBack( - CFMessagePortRef ms, - CFMessagePortInvalidationCallBack callout, -); - -@ffi.Native() -external int CFMessagePortSetName(CFMessagePortRef ms, CFStringRef newName); - -@Deprecated('Deprecated') -@ffi.Native< - CFNetDiagnosticStatus Function(CFNetDiagnosticRef, ffi.Pointer) ->() -external int CFNetDiagnosticCopyNetworkStatusPassively( - CFNetDiagnosticRef details, - ffi.Pointer description, -); - -@Deprecated('Deprecated') -@ffi.Native< - CFNetDiagnosticRef Function(CFAllocatorRef, CFReadStreamRef, CFWriteStreamRef) ->() -external CFNetDiagnosticRef CFNetDiagnosticCreateWithStreams( - CFAllocatorRef alloc, - CFReadStreamRef readStream, - CFWriteStreamRef writeStream, -); - -@Deprecated('Deprecated') -@ffi.Native() -external CFNetDiagnosticRef CFNetDiagnosticCreateWithURL( - CFAllocatorRef alloc, - CFURLRef url, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CFNetDiagnosticDiagnoseProblemInteractively( - CFNetDiagnosticRef details, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void CFNetDiagnosticSetName( - CFNetDiagnosticRef details, - CFStringRef name, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - CFNetServiceBrowserRef Function( - CFAllocatorRef, - CFNetServiceBrowserClientCallBack, - ffi.Pointer, - ) ->() -external CFNetServiceBrowserRef CFNetServiceBrowserCreate( - CFAllocatorRef alloc, - CFNetServiceBrowserClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external int CFNetServiceBrowserGetTypeID(); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external void CFNetServiceBrowserInvalidate(CFNetServiceBrowserRef browser); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceBrowserRef, CFRunLoopRef, CFStringRef) ->() -external void CFNetServiceBrowserScheduleWithRunLoop( - CFNetServiceBrowserRef browser, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function(CFNetServiceBrowserRef, Boolean, ffi.Pointer) ->() -external int CFNetServiceBrowserSearchForDomains( - CFNetServiceBrowserRef browser, - int registrationDomains, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function( - CFNetServiceBrowserRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external int CFNetServiceBrowserSearchForServices( - CFNetServiceBrowserRef browser, - CFStringRef domain, - CFStringRef serviceType, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceBrowserRef, ffi.Pointer) ->() -external void CFNetServiceBrowserStopSearch( - CFNetServiceBrowserRef browser, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceBrowserRef, CFRunLoopRef, CFStringRef) ->() -external void CFNetServiceBrowserUnscheduleFromRunLoop( - CFNetServiceBrowserRef browser, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external void CFNetServiceCancel(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - CFNetServiceRef Function( - CFAllocatorRef, - CFStringRef, - CFStringRef, - CFStringRef, - SInt32, - ) ->() -external CFNetServiceRef CFNetServiceCreate( - CFAllocatorRef alloc, - CFStringRef domain, - CFStringRef serviceType, - CFStringRef name, - int port, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFNetServiceRef CFNetServiceCreateCopy( - CFAllocatorRef alloc, - CFNetServiceRef service, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFDictionaryRef CFNetServiceCreateDictionaryWithTXTData( - CFAllocatorRef alloc, - CFDataRef txtRecord, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFDataRef CFNetServiceCreateTXTDataWithDictionary( - CFAllocatorRef alloc, - CFDictionaryRef keyValuePairs, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFArrayRef CFNetServiceGetAddressing(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFStringRef CFNetServiceGetDomain(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFStringRef CFNetServiceGetName(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external int CFNetServiceGetPortNumber(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFDataRef CFNetServiceGetTXTData(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFStringRef CFNetServiceGetTargetHost(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external CFStringRef CFNetServiceGetType(CFNetServiceRef theService); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external int CFNetServiceGetTypeID(); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - CFNetServiceMonitorRef Function( - CFAllocatorRef, - CFNetServiceRef, - CFNetServiceMonitorClientCallBack, - ffi.Pointer, - ) ->() -external CFNetServiceMonitorRef CFNetServiceMonitorCreate( - CFAllocatorRef alloc, - CFNetServiceRef theService, - CFNetServiceMonitorClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external int CFNetServiceMonitorGetTypeID(); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external void CFNetServiceMonitorInvalidate(CFNetServiceMonitorRef monitor); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceMonitorRef, CFRunLoopRef, CFStringRef) ->() -external void CFNetServiceMonitorScheduleWithRunLoop( - CFNetServiceMonitorRef monitor, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function( - CFNetServiceMonitorRef, - ffi.UnsignedInt, - ffi.Pointer, - ) ->(symbol: 'CFNetServiceMonitorStart') -external int _CFNetServiceMonitorStart( - CFNetServiceMonitorRef monitor, - int recordType, - ffi.Pointer error, -); - -DartBoolean CFNetServiceMonitorStart( - CFNetServiceMonitorRef monitor, - CFNetServiceMonitorType recordType, - ffi.Pointer error, -) { - return _CFNetServiceMonitorStart(monitor, recordType.value, error); -} - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceMonitorRef, ffi.Pointer) ->() -external void CFNetServiceMonitorStop( - CFNetServiceMonitorRef monitor, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - ffi.Void Function(CFNetServiceMonitorRef, CFRunLoopRef, CFStringRef) ->() -external void CFNetServiceMonitorUnscheduleFromRunLoop( - CFNetServiceMonitorRef monitor, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CFNetServiceRegister( - CFNetServiceRef theService, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function(CFNetServiceRef, CFOptionFlags, ffi.Pointer) ->() -external int CFNetServiceRegisterWithOptions( - CFNetServiceRef theService, - int options, - ffi.Pointer error, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CFNetServiceResolve( - CFNetServiceRef theService, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function(CFNetServiceRef, CFTimeInterval, ffi.Pointer) ->() -external int CFNetServiceResolveWithTimeout( - CFNetServiceRef theService, - double timeout, - ffi.Pointer error, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external void CFNetServiceScheduleWithRunLoop( - CFNetServiceRef theService, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native< - Boolean Function( - CFNetServiceRef, - CFNetServiceClientCallBack, - ffi.Pointer, - ) ->() -external int CFNetServiceSetClient( - CFNetServiceRef theService, - CFNetServiceClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external int CFNetServiceSetTXTData( - CFNetServiceRef theService, - CFDataRef txtRecord, -); - -@Deprecated('Use nw_browser_t or nw_listener_t in Network framework instead') -@ffi.Native() -external void CFNetServiceUnscheduleFromRunLoop( - CFNetServiceRef theService, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native< - CFArrayRef Function(CFStringRef, CFURLRef, ffi.Pointer) ->() -external CFArrayRef CFNetworkCopyProxiesForAutoConfigurationScript( - CFStringRef proxyAutoConfigurationScript, - CFURLRef targetURL, - ffi.Pointer error, -); - -@ffi.Native() -external CFArrayRef CFNetworkCopyProxiesForURL( - CFURLRef url, - CFDictionaryRef proxySettings, -); - -@ffi.Native() -external CFDictionaryRef CFNetworkCopySystemProxySettings(); - -@ffi.Native< - CFRunLoopSourceRef Function( - CFStringRef, - CFURLRef, - CFProxyAutoConfigurationResultCallback, - ffi.Pointer, - ) ->() -external CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationScript( - CFStringRef proxyAutoConfigurationScript, - CFURLRef targetURL, - CFProxyAutoConfigurationResultCallback cb, - ffi.Pointer clientContext, -); - -@ffi.Native< - CFRunLoopSourceRef Function( - CFURLRef, - CFURLRef, - CFProxyAutoConfigurationResultCallback, - ffi.Pointer, - ) ->() -external CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationURL( - CFURLRef proxyAutoConfigURL, - CFURLRef targetURL, - CFProxyAutoConfigurationResultCallback cb, - ffi.Pointer clientContext, -); - -@ffi.Native< - ffi.Void Function( - CFNotificationCenterRef, - ffi.Pointer, - CFNotificationCallback, - CFStringRef, - ffi.Pointer, - CFIndex, - ) ->(symbol: 'CFNotificationCenterAddObserver') -external void _CFNotificationCenterAddObserver( - CFNotificationCenterRef center, - ffi.Pointer observer, - CFNotificationCallback callBack, - CFStringRef name, - ffi.Pointer object, - int suspensionBehavior, -); - -void CFNotificationCenterAddObserver( - CFNotificationCenterRef center, - ffi.Pointer observer, - CFNotificationCallback callBack, - CFStringRef name, - ffi.Pointer object, - CFNotificationSuspensionBehavior suspensionBehavior, -) { - return _CFNotificationCenterAddObserver( - center, - observer, - callBack, - name, - object, - suspensionBehavior.value, - ); -} - -@ffi.Native() -external CFNotificationCenterRef CFNotificationCenterGetDarwinNotifyCenter(); - -@ffi.Native() -external CFNotificationCenterRef CFNotificationCenterGetDistributedCenter(); - -@ffi.Native() -external CFNotificationCenterRef CFNotificationCenterGetLocalCenter(); - -@ffi.Native() -external int CFNotificationCenterGetTypeID(); - -@ffi.Native< - ffi.Void Function( - CFNotificationCenterRef, - CFNotificationName, - ffi.Pointer, - CFDictionaryRef, - Boolean, - ) ->() -external void CFNotificationCenterPostNotification( - CFNotificationCenterRef center, - CFNotificationName name, - ffi.Pointer object, - CFDictionaryRef userInfo, - int deliverImmediately, -); - -@ffi.Native< - ffi.Void Function( - CFNotificationCenterRef, - CFNotificationName, - ffi.Pointer, - CFDictionaryRef, - CFOptionFlags, - ) ->() -external void CFNotificationCenterPostNotificationWithOptions( - CFNotificationCenterRef center, - CFNotificationName name, - ffi.Pointer object, - CFDictionaryRef userInfo, - int options, -); - -@ffi.Native)>() -external void CFNotificationCenterRemoveEveryObserver( - CFNotificationCenterRef center, - ffi.Pointer observer, -); - -@ffi.Native< - ffi.Void Function( - CFNotificationCenterRef, - ffi.Pointer, - CFNotificationName, - ffi.Pointer, - ) ->() -external void CFNotificationCenterRemoveObserver( - CFNotificationCenterRef center, - ffi.Pointer observer, - CFNotificationName name, - ffi.Pointer object, -); - -@ffi.Native() -external int CFNullGetTypeID(); - -@ffi.Native)>( - symbol: 'CFNumberCompare', -) -external int _CFNumberCompare( - CFNumberRef number, - CFNumberRef otherNumber, - ffi.Pointer context, -); - -CFComparisonResult CFNumberCompare( - CFNumberRef number, - CFNumberRef otherNumber, - ffi.Pointer context, -) { - return CFComparisonResult.fromValue( - _CFNumberCompare(number, otherNumber, context), - ); -} - -@ffi.Native< - CFNumberRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) ->(symbol: 'CFNumberCreate') -external CFNumberRef _CFNumberCreate( - CFAllocatorRef allocator, - int theType, - ffi.Pointer valuePtr, -); - -CFNumberRef CFNumberCreate( - CFAllocatorRef allocator, - CFNumberType theType, - ffi.Pointer valuePtr, -) { - return _CFNumberCreate(allocator, theType.value, valuePtr); -} - -@ffi.Native() -external CFTypeRef CFNumberFormatterCopyProperty( - CFNumberFormatterRef formatter, - CFNumberFormatterKey key, -); - -@ffi.Native< - CFNumberFormatterRef Function(CFAllocatorRef, CFLocaleRef, CFIndex) ->(symbol: 'CFNumberFormatterCreate') -external CFNumberFormatterRef _CFNumberFormatterCreate( - CFAllocatorRef allocator, - CFLocaleRef locale, - int style, -); - -CFNumberFormatterRef CFNumberFormatterCreate( - CFAllocatorRef allocator, - CFLocaleRef locale, - CFNumberFormatterStyle style, -) { - return _CFNumberFormatterCreate(allocator, locale, style.value); -} - -@ffi.Native< - CFNumberRef Function( - CFAllocatorRef, - CFNumberFormatterRef, - CFStringRef, - ffi.Pointer, - CFOptionFlags, - ) ->() -external CFNumberRef CFNumberFormatterCreateNumberFromString( - CFAllocatorRef allocator, - CFNumberFormatterRef formatter, - CFStringRef string, - ffi.Pointer rangep, - int options, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFNumberFormatterRef, CFNumberRef) ->() -external CFStringRef CFNumberFormatterCreateStringWithNumber( - CFAllocatorRef allocator, - CFNumberFormatterRef formatter, - CFNumberRef number, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - CFNumberFormatterRef, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'CFNumberFormatterCreateStringWithValue') -external CFStringRef _CFNumberFormatterCreateStringWithValue( - CFAllocatorRef allocator, - CFNumberFormatterRef formatter, - int numberType, - ffi.Pointer valuePtr, -); - -CFStringRef CFNumberFormatterCreateStringWithValue( - CFAllocatorRef allocator, - CFNumberFormatterRef formatter, - CFNumberType numberType, - ffi.Pointer valuePtr, -) { - return _CFNumberFormatterCreateStringWithValue( - allocator, - formatter, - numberType.value, - valuePtr, - ); -} - -@ffi.Native< - Boolean Function(CFStringRef, ffi.Pointer, ffi.Pointer) ->() -external int CFNumberFormatterGetDecimalInfoForCurrencyCode( - CFStringRef currencyCode, - ffi.Pointer defaultFractionDigits, - ffi.Pointer roundingIncrement, -); - -@ffi.Native() -external CFStringRef CFNumberFormatterGetFormat(CFNumberFormatterRef formatter); - -@ffi.Native() -external CFLocaleRef CFNumberFormatterGetLocale(CFNumberFormatterRef formatter); - -@ffi.Native( - symbol: 'CFNumberFormatterGetStyle', -) -external int _CFNumberFormatterGetStyle(CFNumberFormatterRef formatter); - -CFNumberFormatterStyle CFNumberFormatterGetStyle( - CFNumberFormatterRef formatter, -) { - return CFNumberFormatterStyle.fromValue( - _CFNumberFormatterGetStyle(formatter), - ); -} - -@ffi.Native() -external int CFNumberFormatterGetTypeID(); - -@ffi.Native< - Boolean Function( - CFNumberFormatterRef, - CFStringRef, - ffi.Pointer, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'CFNumberFormatterGetValueFromString') -external int _CFNumberFormatterGetValueFromString( - CFNumberFormatterRef formatter, - CFStringRef string, - ffi.Pointer rangep, - int numberType, - ffi.Pointer valuePtr, -); - -DartBoolean CFNumberFormatterGetValueFromString( - CFNumberFormatterRef formatter, - CFStringRef string, - ffi.Pointer rangep, - CFNumberType numberType, - ffi.Pointer valuePtr, -) { - return _CFNumberFormatterGetValueFromString( - formatter, - string, - rangep, - numberType.value, - valuePtr, - ); -} - -@ffi.Native() -external void CFNumberFormatterSetFormat( - CFNumberFormatterRef formatter, - CFStringRef formatString, -); - -@ffi.Native< - ffi.Void Function(CFNumberFormatterRef, CFNumberFormatterKey, CFTypeRef) ->() -external void CFNumberFormatterSetProperty( - CFNumberFormatterRef formatter, - CFNumberFormatterKey key, - CFTypeRef value, -); - -@ffi.Native() -external int CFNumberGetByteSize(CFNumberRef number); - -@ffi.Native(symbol: 'CFNumberGetType') -external int _CFNumberGetType(CFNumberRef number); - -CFNumberType CFNumberGetType(CFNumberRef number) { - return CFNumberType.fromValue(_CFNumberGetType(number)); -} - -@ffi.Native() -external int CFNumberGetTypeID(); - -@ffi.Native)>( - symbol: 'CFNumberGetValue', -) -external int _CFNumberGetValue( - CFNumberRef number, - int theType, - ffi.Pointer valuePtr, -); - -DartBoolean CFNumberGetValue( - CFNumberRef number, - CFNumberType theType, - ffi.Pointer valuePtr, -) { - return _CFNumberGetValue(number, theType.value, valuePtr); -} - -@ffi.Native() -external int CFNumberIsFloatType(CFNumberRef number); - -@ffi.Native() -external void CFPlugInAddInstanceForFactory(CFUUIDRef factoryID); - -@ffi.Native() -external CFPlugInRef CFPlugInCreate( - CFAllocatorRef allocator, - CFURLRef plugInURL, -); - -@ffi.Native() -external CFArrayRef CFPlugInFindFactoriesForPlugInType(CFUUIDRef typeUUID); - -@ffi.Native() -external CFArrayRef CFPlugInFindFactoriesForPlugInTypeInPlugIn( - CFUUIDRef typeUUID, - CFPlugInRef plugIn, -); - -@ffi.Native() -external CFBundleRef CFPlugInGetBundle(CFPlugInRef plugIn); - -@ffi.Native() -external int CFPlugInGetTypeID(); - -@ffi.Native< - ffi.Pointer Function(CFAllocatorRef, CFUUIDRef, CFUUIDRef) ->() -external ffi.Pointer CFPlugInInstanceCreate( - CFAllocatorRef allocator, - CFUUIDRef factoryUUID, - CFUUIDRef typeUUID, -); - -@ffi.Native< - CFPlugInInstanceRef Function( - CFAllocatorRef, - CFIndex, - CFPlugInInstanceDeallocateInstanceDataFunction, - CFStringRef, - CFPlugInInstanceGetInterfaceFunction, - ) ->() -external CFPlugInInstanceRef CFPlugInInstanceCreateWithInstanceDataSize( - CFAllocatorRef allocator, - int instanceDataSize, - CFPlugInInstanceDeallocateInstanceDataFunction deallocateInstanceFunction, - CFStringRef factoryName, - CFPlugInInstanceGetInterfaceFunction getInterfaceFunction, -); - -@ffi.Native() -external CFStringRef CFPlugInInstanceGetFactoryName( - CFPlugInInstanceRef instance, -); - -@ffi.Native Function(CFPlugInInstanceRef)>() -external ffi.Pointer CFPlugInInstanceGetInstanceData( - CFPlugInInstanceRef instance, -); - -@ffi.Native< - Boolean Function( - CFPlugInInstanceRef, - CFStringRef, - ffi.Pointer>, - ) ->() -external int CFPlugInInstanceGetInterfaceFunctionTable( - CFPlugInInstanceRef instance, - CFStringRef interfaceName, - ffi.Pointer> ftbl, -); - -@ffi.Native() -external int CFPlugInInstanceGetTypeID(); - -@ffi.Native() -external int CFPlugInIsLoadOnDemand(CFPlugInRef plugIn); - -@ffi.Native() -external int CFPlugInRegisterFactoryFunction( - CFUUIDRef factoryUUID, - CFPlugInFactoryFunction func, -); - -@ffi.Native() -external int CFPlugInRegisterFactoryFunctionByName( - CFUUIDRef factoryUUID, - CFPlugInRef plugIn, - CFStringRef functionName, -); - -@ffi.Native() -external int CFPlugInRegisterPlugInType( - CFUUIDRef factoryUUID, - CFUUIDRef typeUUID, -); - -@ffi.Native() -external void CFPlugInRemoveInstanceForFactory(CFUUIDRef factoryID); - -@ffi.Native() -external void CFPlugInSetLoadOnDemand(CFPlugInRef plugIn, int flag); - -@ffi.Native() -external int CFPlugInUnregisterFactory(CFUUIDRef factoryUUID); - -@ffi.Native() -external int CFPlugInUnregisterPlugInType( - CFUUIDRef factoryUUID, - CFUUIDRef typeUUID, -); - -@ffi.Native() -external void CFPreferencesAddSuitePreferencesToApp( - CFStringRef applicationID, - CFStringRef suiteID, -); - -@ffi.Native() -external int CFPreferencesAppSynchronize(CFStringRef applicationID); - -@ffi.Native() -external int CFPreferencesAppValueIsForced( - CFStringRef key, - CFStringRef applicationID, -); - -@ffi.Native() -external CFPropertyListRef CFPreferencesCopyAppValue( - CFStringRef key, - CFStringRef applicationID, -); - -@Deprecated('Unsupported API') -@ffi.Native() -external CFArrayRef CFPreferencesCopyApplicationList( - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native() -external CFArrayRef CFPreferencesCopyKeyList( - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native< - CFDictionaryRef Function(CFArrayRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFDictionaryRef CFPreferencesCopyMultiple( - CFArrayRef keysToFetch, - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native< - CFPropertyListRef Function(CFStringRef, CFStringRef, CFStringRef, CFStringRef) ->() -external CFPropertyListRef CFPreferencesCopyValue( - CFStringRef key, - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native)>() -external int CFPreferencesGetAppBooleanValue( - CFStringRef key, - CFStringRef applicationID, - ffi.Pointer keyExistsAndHasValidFormat, -); - -@ffi.Native)>() -external int CFPreferencesGetAppIntegerValue( - CFStringRef key, - CFStringRef applicationID, - ffi.Pointer keyExistsAndHasValidFormat, -); - -@ffi.Native() -external void CFPreferencesRemoveSuitePreferencesFromApp( - CFStringRef applicationID, - CFStringRef suiteID, -); - -@ffi.Native() -external void CFPreferencesSetAppValue( - CFStringRef key, - CFPropertyListRef value, - CFStringRef applicationID, -); - -@ffi.Native< - ffi.Void Function( - CFDictionaryRef, - CFArrayRef, - CFStringRef, - CFStringRef, - CFStringRef, - ) ->() -external void CFPreferencesSetMultiple( - CFDictionaryRef keysToSet, - CFArrayRef keysToRemove, - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native< - ffi.Void Function( - CFStringRef, - CFPropertyListRef, - CFStringRef, - CFStringRef, - CFStringRef, - ) ->() -external void CFPreferencesSetValue( - CFStringRef key, - CFPropertyListRef value, - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native() -external int CFPreferencesSynchronize( - CFStringRef applicationID, - CFStringRef userName, - CFStringRef hostName, -); - -@ffi.Native< - CFDataRef Function( - CFAllocatorRef, - CFPropertyListRef, - CFIndex, - CFOptionFlags, - ffi.Pointer, - ) ->(symbol: 'CFPropertyListCreateData') -external CFDataRef _CFPropertyListCreateData( - CFAllocatorRef allocator, - CFPropertyListRef propertyList, - int format, - int options, - ffi.Pointer error, -); - -CFDataRef CFPropertyListCreateData( - CFAllocatorRef allocator, - CFPropertyListRef propertyList, - CFPropertyListFormat format, - DartCFOptionFlags options, - ffi.Pointer error, -) { - return _CFPropertyListCreateData( - allocator, - propertyList, - format.value, - options, - error, - ); -} - -@ffi.Native< - CFPropertyListRef Function(CFAllocatorRef, CFPropertyListRef, CFOptionFlags) ->() -external CFPropertyListRef CFPropertyListCreateDeepCopy( - CFAllocatorRef allocator, - CFPropertyListRef propertyList, - int mutabilityOption, -); - -@Deprecated('Use CFPropertyListCreateWithStream instead.') -@ffi.Native< - CFPropertyListRef Function( - CFAllocatorRef, - CFReadStreamRef, - CFIndex, - CFOptionFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFPropertyListRef CFPropertyListCreateFromStream( - CFAllocatorRef allocator, - CFReadStreamRef stream, - int streamLength, - int mutabilityOption, - ffi.Pointer format, - ffi.Pointer errorString, -); - -@Deprecated('Use CFPropertyListCreateWithData instead.') -@ffi.Native< - CFPropertyListRef Function( - CFAllocatorRef, - CFDataRef, - CFOptionFlags, - ffi.Pointer, - ) ->() -external CFPropertyListRef CFPropertyListCreateFromXMLData( - CFAllocatorRef allocator, - CFDataRef xmlData, - int mutabilityOption, - ffi.Pointer errorString, -); - -@ffi.Native< - CFPropertyListRef Function( - CFAllocatorRef, - CFDataRef, - CFOptionFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFPropertyListRef CFPropertyListCreateWithData( - CFAllocatorRef allocator, - CFDataRef data, - int options, - ffi.Pointer format, - ffi.Pointer error, -); - -@ffi.Native< - CFPropertyListRef Function( - CFAllocatorRef, - CFReadStreamRef, - CFIndex, - CFOptionFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFPropertyListRef CFPropertyListCreateWithStream( - CFAllocatorRef allocator, - CFReadStreamRef stream, - int streamLength, - int options, - ffi.Pointer format, - ffi.Pointer error, -); - -@Deprecated('Use CFPropertyListCreateData instead.') -@ffi.Native() -external CFDataRef CFPropertyListCreateXMLData( - CFAllocatorRef allocator, - CFPropertyListRef propertyList, -); - -@ffi.Native( - symbol: 'CFPropertyListIsValid', -) -external int _CFPropertyListIsValid(CFPropertyListRef plist, int format); - -DartBoolean CFPropertyListIsValid( - CFPropertyListRef plist, - CFPropertyListFormat format, -) { - return _CFPropertyListIsValid(plist, format.value); -} - -@ffi.Native< - CFIndex Function( - CFPropertyListRef, - CFWriteStreamRef, - CFIndex, - CFOptionFlags, - ffi.Pointer, - ) ->(symbol: 'CFPropertyListWrite') -external int _CFPropertyListWrite( - CFPropertyListRef propertyList, - CFWriteStreamRef stream, - int format, - int options, - ffi.Pointer error, -); - -DartCFIndex CFPropertyListWrite( - CFPropertyListRef propertyList, - CFWriteStreamRef stream, - CFPropertyListFormat format, - DartCFOptionFlags options, - ffi.Pointer error, -) { - return _CFPropertyListWrite( - propertyList, - stream, - format.value, - options, - error, - ); -} - -@Deprecated('Use CFPropertyListWrite instead.') -@ffi.Native< - CFIndex Function( - CFPropertyListRef, - CFWriteStreamRef, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'CFPropertyListWriteToStream') -external int _CFPropertyListWriteToStream( - CFPropertyListRef propertyList, - CFWriteStreamRef stream, - int format, - ffi.Pointer errorString, -); - -DartCFIndex CFPropertyListWriteToStream( - CFPropertyListRef propertyList, - CFWriteStreamRef stream, - CFPropertyListFormat format, - ffi.Pointer errorString, -) { - return _CFPropertyListWriteToStream( - propertyList, - stream, - format.value, - errorString, - ); -} - -@ffi.Native() -external void CFReadStreamClose(CFReadStreamRef stream); - -@ffi.Native( - symbol: 'CFReadStreamCopyDispatchQueue', -) -external dispatch_queue_t _CFReadStreamCopyDispatchQueue( - CFReadStreamRef stream, -); - -Dartdispatch_queue_t CFReadStreamCopyDispatchQueue(CFReadStreamRef stream) { - return objc.NSObject.fromPointer( - _CFReadStreamCopyDispatchQueue(stream), - retain: true, - release: true, - ); -} - -@ffi.Native() -external CFErrorRef CFReadStreamCopyError(CFReadStreamRef stream); - -@ffi.Native() -external CFTypeRef CFReadStreamCopyProperty( - CFReadStreamRef stream, - CFStreamPropertyKey propertyName, -); - -@Deprecated('Use NSURLSession API for http requests') -@ffi.Native() -external CFReadStreamRef CFReadStreamCreateForHTTPRequest( - CFAllocatorRef alloc, - CFHTTPMessageRef request, -); - -@Deprecated('Use NSURLSession API for http requests') -@ffi.Native< - CFReadStreamRef Function(CFAllocatorRef, CFHTTPMessageRef, CFReadStreamRef) ->() -external CFReadStreamRef CFReadStreamCreateForStreamedHTTPRequest( - CFAllocatorRef alloc, - CFHTTPMessageRef requestHeaders, - CFReadStreamRef requestBody, -); - -@ffi.Native< - CFReadStreamRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFAllocatorRef, - ) ->() -external CFReadStreamRef CFReadStreamCreateWithBytesNoCopy( - CFAllocatorRef alloc, - ffi.Pointer bytes, - int length, - CFAllocatorRef bytesDeallocator, -); - -@Deprecated('Use NSURLSessionAPI for ftp requests') -@ffi.Native() -external CFReadStreamRef CFReadStreamCreateWithFTPURL( - CFAllocatorRef alloc, - CFURLRef ftpURL, -); - -@ffi.Native() -external CFReadStreamRef CFReadStreamCreateWithFile( - CFAllocatorRef alloc, - CFURLRef fileURL, -); - -@ffi.Native< - ffi.Pointer Function(CFReadStreamRef, CFIndex, ffi.Pointer) ->() -external ffi.Pointer CFReadStreamGetBuffer( - CFReadStreamRef stream, - int maxBytesToRead, - ffi.Pointer numBytesRead, -); - -@ffi.Native() -external CFStreamError CFReadStreamGetError(CFReadStreamRef stream); - -@ffi.Native(symbol: 'CFReadStreamGetStatus') -external int _CFReadStreamGetStatus(CFReadStreamRef stream); - -CFStreamStatus CFReadStreamGetStatus(CFReadStreamRef stream) { - return CFStreamStatus.fromValue(_CFReadStreamGetStatus(stream)); -} - -@ffi.Native() -external int CFReadStreamGetTypeID(); - -@ffi.Native() -external int CFReadStreamHasBytesAvailable(CFReadStreamRef stream); - -@ffi.Native() -external int CFReadStreamOpen(CFReadStreamRef stream); - -@ffi.Native, CFIndex)>() -external int CFReadStreamRead( - CFReadStreamRef stream, - ffi.Pointer buffer, - int bufferLength, -); - -@ffi.Native() -external void CFReadStreamScheduleWithRunLoop( - CFReadStreamRef stream, - CFRunLoopRef runLoop, - CFRunLoopMode runLoopMode, -); - -@ffi.Native< - Boolean Function( - CFReadStreamRef, - CFOptionFlags, - CFReadStreamClientCallBack, - ffi.Pointer, - ) ->() -external int CFReadStreamSetClient( - CFReadStreamRef stream, - int streamEvents, - CFReadStreamClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@ffi.Native( - symbol: 'CFReadStreamSetDispatchQueue', -) -external void _CFReadStreamSetDispatchQueue( - CFReadStreamRef stream, - dispatch_queue_t q, -); - -void CFReadStreamSetDispatchQueue( - CFReadStreamRef stream, - Dartdispatch_queue_t q, -) { - final _$$ref = q.ref; - return _CFReadStreamSetDispatchQueue(stream, _$$ref.pointer); -} - -@ffi.Native() -external int CFReadStreamSetProperty( - CFReadStreamRef stream, - CFStreamPropertyKey propertyName, - CFTypeRef propertyValue, -); - -@ffi.Native() -external void CFReadStreamUnscheduleFromRunLoop( - CFReadStreamRef stream, - CFRunLoopRef runLoop, - CFRunLoopMode runLoopMode, -); - -@ffi.Native() -external void CFRelease(CFTypeRef cf); - -@ffi.Native() -external CFTypeRef CFRetain(CFTypeRef cf); - -@ffi.Native() -external void CFRunLoopAddCommonMode(CFRunLoopRef rl, CFRunLoopMode mode); - -@ffi.Native< - ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) ->() -external void CFRunLoopAddObserver( - CFRunLoopRef rl, - CFRunLoopObserverRef observer, - CFRunLoopMode mode, -); - -@ffi.Native< - ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) ->() -external void CFRunLoopAddSource( - CFRunLoopRef rl, - CFRunLoopSourceRef source, - CFRunLoopMode mode, -); - -@ffi.Native() -external void CFRunLoopAddTimer( - CFRunLoopRef rl, - CFRunLoopTimerRef timer, - CFRunLoopMode mode, -); - -@ffi.Native< - Boolean Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) ->() -external int CFRunLoopContainsObserver( - CFRunLoopRef rl, - CFRunLoopObserverRef observer, - CFRunLoopMode mode, -); - -@ffi.Native() -external int CFRunLoopContainsSource( - CFRunLoopRef rl, - CFRunLoopSourceRef source, - CFRunLoopMode mode, -); - -@ffi.Native() -external int CFRunLoopContainsTimer( - CFRunLoopRef rl, - CFRunLoopTimerRef timer, - CFRunLoopMode mode, -); - -@ffi.Native() -external CFArrayRef CFRunLoopCopyAllModes(CFRunLoopRef rl); - -@ffi.Native() -external CFRunLoopMode CFRunLoopCopyCurrentMode(CFRunLoopRef rl); - -@ffi.Native() -external CFRunLoopRef CFRunLoopGetCurrent(); - -@ffi.Native() -external CFRunLoopRef CFRunLoopGetMain(); - -@ffi.Native() -external double CFRunLoopGetNextTimerFireDate( - CFRunLoopRef rl, - CFRunLoopMode mode, -); - -@ffi.Native() -external int CFRunLoopGetTypeID(); - -@ffi.Native() -external int CFRunLoopIsWaiting(CFRunLoopRef rl); - -@ffi.Native< - CFRunLoopObserverRef Function( - CFAllocatorRef, - CFOptionFlags, - Boolean, - CFIndex, - CFRunLoopObserverCallBack, - ffi.Pointer, - ) ->() -external CFRunLoopObserverRef CFRunLoopObserverCreate( - CFAllocatorRef allocator, - int activities, - int repeats, - int order, - CFRunLoopObserverCallBack callout, - ffi.Pointer context, -); - -@ffi.Native< - CFRunLoopObserverRef Function( - CFAllocatorRef, - CFOptionFlags, - Boolean, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'CFRunLoopObserverCreateWithHandler') -external CFRunLoopObserverRef _CFRunLoopObserverCreateWithHandler( - CFAllocatorRef allocator, - int activities, - int repeats, - int order, - ffi.Pointer block, -); - -CFRunLoopObserverRef CFRunLoopObserverCreateWithHandler( - CFAllocatorRef allocator, - DartCFOptionFlags activities, - DartBoolean repeats, - DartCFIndex order, - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - block, -) { - final _$$ref = block.ref; - return _CFRunLoopObserverCreateWithHandler( - allocator, - activities, - repeats, - order, - _$$ref.pointer, - ); -} - -@ffi.Native() -external int CFRunLoopObserverDoesRepeat(CFRunLoopObserverRef observer); - -@ffi.Native() -external int CFRunLoopObserverGetActivities(CFRunLoopObserverRef observer); - -@ffi.Native< - ffi.Void Function(CFRunLoopObserverRef, ffi.Pointer) ->() -external void CFRunLoopObserverGetContext( - CFRunLoopObserverRef observer, - ffi.Pointer context, -); - -@ffi.Native() -external int CFRunLoopObserverGetOrder(CFRunLoopObserverRef observer); - -@ffi.Native() -external int CFRunLoopObserverGetTypeID(); - -@ffi.Native() -external void CFRunLoopObserverInvalidate(CFRunLoopObserverRef observer); - -@ffi.Native() -external int CFRunLoopObserverIsValid(CFRunLoopObserverRef observer); - -@ffi.Native< - ffi.Void Function(CFRunLoopRef, CFTypeRef, ffi.Pointer) ->(symbol: 'CFRunLoopPerformBlock') -external void _CFRunLoopPerformBlock( - CFRunLoopRef rl, - CFTypeRef mode, - ffi.Pointer block, -); - -void CFRunLoopPerformBlock( - CFRunLoopRef rl, - CFTypeRef mode, - objc.ObjCBlock block, -) { - final _$$ref = block.ref; - return _CFRunLoopPerformBlock(rl, mode, _$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function(CFRunLoopRef, CFRunLoopObserverRef, CFRunLoopMode) ->() -external void CFRunLoopRemoveObserver( - CFRunLoopRef rl, - CFRunLoopObserverRef observer, - CFRunLoopMode mode, -); - -@ffi.Native< - ffi.Void Function(CFRunLoopRef, CFRunLoopSourceRef, CFRunLoopMode) ->() -external void CFRunLoopRemoveSource( - CFRunLoopRef rl, - CFRunLoopSourceRef source, - CFRunLoopMode mode, -); - -@ffi.Native() -external void CFRunLoopRemoveTimer( - CFRunLoopRef rl, - CFRunLoopTimerRef timer, - CFRunLoopMode mode, -); - -@ffi.Native() -external void CFRunLoopRun(); - -@ffi.Native( - symbol: 'CFRunLoopRunInMode', -) -external int _CFRunLoopRunInMode( - CFRunLoopMode mode, - double seconds, - int returnAfterSourceHandled, -); - -CFRunLoopRunResult CFRunLoopRunInMode( - CFRunLoopMode mode, - DartCFTimeInterval seconds, - DartBoolean returnAfterSourceHandled, -) { - return CFRunLoopRunResult.fromValue( - _CFRunLoopRunInMode(mode, seconds, returnAfterSourceHandled), - ); -} - -@ffi.Native< - CFRunLoopSourceRef Function( - CFAllocatorRef, - CFIndex, - ffi.Pointer, - ) ->() -external CFRunLoopSourceRef CFRunLoopSourceCreate( - CFAllocatorRef allocator, - int order, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Void Function(CFRunLoopSourceRef, ffi.Pointer) ->() -external void CFRunLoopSourceGetContext( - CFRunLoopSourceRef source, - ffi.Pointer context, -); - -@ffi.Native() -external int CFRunLoopSourceGetOrder(CFRunLoopSourceRef source); - -@ffi.Native() -external int CFRunLoopSourceGetTypeID(); - -@ffi.Native() -external void CFRunLoopSourceInvalidate(CFRunLoopSourceRef source); - -@ffi.Native() -external int CFRunLoopSourceIsValid(CFRunLoopSourceRef source); - -@ffi.Native() -external void CFRunLoopSourceSignal(CFRunLoopSourceRef source); - -@ffi.Native() -external void CFRunLoopStop(CFRunLoopRef rl); - -@ffi.Native< - CFRunLoopTimerRef Function( - CFAllocatorRef, - CFAbsoluteTime, - CFTimeInterval, - CFOptionFlags, - CFIndex, - CFRunLoopTimerCallBack, - ffi.Pointer, - ) ->() -external CFRunLoopTimerRef CFRunLoopTimerCreate( - CFAllocatorRef allocator, - double fireDate, - double interval, - int flags, - int order, - CFRunLoopTimerCallBack callout, - ffi.Pointer context, -); - -@ffi.Native< - CFRunLoopTimerRef Function( - CFAllocatorRef, - CFAbsoluteTime, - CFTimeInterval, - CFOptionFlags, - CFIndex, - ffi.Pointer, - ) ->(symbol: 'CFRunLoopTimerCreateWithHandler') -external CFRunLoopTimerRef _CFRunLoopTimerCreateWithHandler( - CFAllocatorRef allocator, - double fireDate, - double interval, - int flags, - int order, - ffi.Pointer block, -); - -CFRunLoopTimerRef CFRunLoopTimerCreateWithHandler( - CFAllocatorRef allocator, - DartCFTimeInterval fireDate, - DartCFTimeInterval interval, - DartCFOptionFlags flags, - DartCFIndex order, - objc.ObjCBlock)> block, -) { - final _$$ref = block.ref; - return _CFRunLoopTimerCreateWithHandler( - allocator, - fireDate, - interval, - flags, - order, - _$$ref.pointer, - ); -} - -@ffi.Native() -external int CFRunLoopTimerDoesRepeat(CFRunLoopTimerRef timer); - -@ffi.Native< - ffi.Void Function(CFRunLoopTimerRef, ffi.Pointer) ->() -external void CFRunLoopTimerGetContext( - CFRunLoopTimerRef timer, - ffi.Pointer context, -); - -@ffi.Native() -external double CFRunLoopTimerGetInterval(CFRunLoopTimerRef timer); - -@ffi.Native() -external double CFRunLoopTimerGetNextFireDate(CFRunLoopTimerRef timer); - -@ffi.Native() -external int CFRunLoopTimerGetOrder(CFRunLoopTimerRef timer); - -@ffi.Native() -external double CFRunLoopTimerGetTolerance(CFRunLoopTimerRef timer); - -@ffi.Native() -external int CFRunLoopTimerGetTypeID(); - -@ffi.Native() -external void CFRunLoopTimerInvalidate(CFRunLoopTimerRef timer); - -@ffi.Native() -external int CFRunLoopTimerIsValid(CFRunLoopTimerRef timer); - -@ffi.Native() -external void CFRunLoopTimerSetNextFireDate( - CFRunLoopTimerRef timer, - double fireDate, -); - -@ffi.Native() -external void CFRunLoopTimerSetTolerance( - CFRunLoopTimerRef timer, - double tolerance, -); - -@ffi.Native() -external void CFRunLoopWakeUp(CFRunLoopRef rl); - -@ffi.Native)>() -external void CFSetAddValue( - CFMutableSetRef theSet, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Void Function(CFSetRef, CFSetApplierFunction, ffi.Pointer) ->() -external void CFSetApplyFunction( - CFSetRef theSet, - CFSetApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native)>() -external int CFSetContainsValue(CFSetRef theSet, ffi.Pointer value); - -@ffi.Native< - CFSetRef Function( - CFAllocatorRef, - ffi.Pointer>, - CFIndex, - ffi.Pointer, - ) ->() -external CFSetRef CFSetCreate( - CFAllocatorRef allocator, - ffi.Pointer> values, - int numValues, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFSetRef CFSetCreateCopy(CFAllocatorRef allocator, CFSetRef theSet); - -@ffi.Native< - CFMutableSetRef Function(CFAllocatorRef, CFIndex, ffi.Pointer) ->() -external CFMutableSetRef CFSetCreateMutable( - CFAllocatorRef allocator, - int capacity, - ffi.Pointer callBacks, -); - -@ffi.Native() -external CFMutableSetRef CFSetCreateMutableCopy( - CFAllocatorRef allocator, - int capacity, - CFSetRef theSet, -); - -@ffi.Native() -external int CFSetGetCount(CFSetRef theSet); - -@ffi.Native)>() -external int CFSetGetCountOfValue(CFSetRef theSet, ffi.Pointer value); - -@ffi.Native() -external int CFSetGetTypeID(); - -@ffi.Native Function(CFSetRef, ffi.Pointer)>() -external ffi.Pointer CFSetGetValue( - CFSetRef theSet, - ffi.Pointer value, -); - -@ffi.Native< - Boolean Function( - CFSetRef, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CFSetGetValueIfPresent( - CFSetRef theSet, - ffi.Pointer candidate, - ffi.Pointer> value, -); - -@ffi.Native>)>() -external void CFSetGetValues( - CFSetRef theSet, - ffi.Pointer> values, -); - -@ffi.Native() -external void CFSetRemoveAllValues(CFMutableSetRef theSet); - -@ffi.Native)>() -external void CFSetRemoveValue( - CFMutableSetRef theSet, - ffi.Pointer value, -); - -@ffi.Native)>() -external void CFSetReplaceValue( - CFMutableSetRef theSet, - ffi.Pointer value, -); - -@ffi.Native)>() -external void CFSetSetValue( - CFMutableSetRef theSet, - ffi.Pointer value, -); - -@ffi.Native() -external void CFShow(CFTypeRef obj); - -@ffi.Native() -external void CFShowStr(CFStringRef str); - -@ffi.Native( - symbol: 'CFSocketConnectToAddress', -) -external int _CFSocketConnectToAddress( - CFSocketRef s, - CFDataRef address, - double timeout, -); - -CFSocketError CFSocketConnectToAddress( - CFSocketRef s, - CFDataRef address, - DartCFTimeInterval timeout, -) { - return CFSocketError.fromValue( - _CFSocketConnectToAddress(s, address, timeout), - ); -} - -@ffi.Native() -external CFDataRef CFSocketCopyAddress(CFSocketRef s); - -@ffi.Native() -external CFDataRef CFSocketCopyPeerAddress(CFSocketRef s); - -@ffi.Native< - CFIndex Function( - ffi.Pointer, - CFTimeInterval, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CFSocketCopyRegisteredSocketSignature') -external int _CFSocketCopyRegisteredSocketSignature( - ffi.Pointer nameServerSignature, - double timeout, - CFStringRef name, - ffi.Pointer signature, - ffi.Pointer nameServerAddress, -); - -CFSocketError CFSocketCopyRegisteredSocketSignature( - ffi.Pointer nameServerSignature, - DartCFTimeInterval timeout, - CFStringRef name, - ffi.Pointer signature, - ffi.Pointer nameServerAddress, -) { - return CFSocketError.fromValue( - _CFSocketCopyRegisteredSocketSignature( - nameServerSignature, - timeout, - name, - signature, - nameServerAddress, - ), - ); -} - -@ffi.Native< - CFIndex Function( - ffi.Pointer, - CFTimeInterval, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CFSocketCopyRegisteredValue') -external int _CFSocketCopyRegisteredValue( - ffi.Pointer nameServerSignature, - double timeout, - CFStringRef name, - ffi.Pointer value, - ffi.Pointer nameServerAddress, -); - -CFSocketError CFSocketCopyRegisteredValue( - ffi.Pointer nameServerSignature, - DartCFTimeInterval timeout, - CFStringRef name, - ffi.Pointer value, - ffi.Pointer nameServerAddress, -) { - return CFSocketError.fromValue( - _CFSocketCopyRegisteredValue( - nameServerSignature, - timeout, - name, - value, - nameServerAddress, - ), - ); -} - -@ffi.Native< - CFSocketRef Function( - CFAllocatorRef, - SInt32, - SInt32, - SInt32, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer, - ) ->() -external CFSocketRef CFSocketCreate( - CFAllocatorRef allocator, - int protocolFamily, - int socketType, - int protocol, - int callBackTypes, - CFSocketCallBack callout, - ffi.Pointer context, -); - -@ffi.Native< - CFSocketRef Function( - CFAllocatorRef, - ffi.Pointer, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer, - CFTimeInterval, - ) ->() -external CFSocketRef CFSocketCreateConnectedToSocketSignature( - CFAllocatorRef allocator, - ffi.Pointer signature, - int callBackTypes, - CFSocketCallBack callout, - ffi.Pointer context, - double timeout, -); - -@ffi.Native() -external CFRunLoopSourceRef CFSocketCreateRunLoopSource( - CFAllocatorRef allocator, - CFSocketRef s, - int order, -); - -@ffi.Native< - CFSocketRef Function( - CFAllocatorRef, - CFSocketNativeHandle, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer, - ) ->() -external CFSocketRef CFSocketCreateWithNative( - CFAllocatorRef allocator, - int sock, - int callBackTypes, - CFSocketCallBack callout, - ffi.Pointer context, -); - -@ffi.Native< - CFSocketRef Function( - CFAllocatorRef, - ffi.Pointer, - CFOptionFlags, - CFSocketCallBack, - ffi.Pointer, - ) ->() -external CFSocketRef CFSocketCreateWithSocketSignature( - CFAllocatorRef allocator, - ffi.Pointer signature, - int callBackTypes, - CFSocketCallBack callout, - ffi.Pointer context, -); - -@ffi.Native() -external void CFSocketDisableCallBacks(CFSocketRef s, int callBackTypes); - -@ffi.Native() -external void CFSocketEnableCallBacks(CFSocketRef s, int callBackTypes); - -@ffi.Native)>() -external void CFSocketGetContext( - CFSocketRef s, - ffi.Pointer context, -); - -@ffi.Native() -external int CFSocketGetDefaultNameRegistryPortNumber(); - -@ffi.Native() -external int CFSocketGetNative(CFSocketRef s); - -@ffi.Native() -external int CFSocketGetSocketFlags(CFSocketRef s); - -@ffi.Native() -external int CFSocketGetTypeID(); - -@ffi.Native() -external void CFSocketInvalidate(CFSocketRef s); - -@ffi.Native() -external int CFSocketIsValid(CFSocketRef s); - -@ffi.Native< - CFIndex Function( - ffi.Pointer, - CFTimeInterval, - CFStringRef, - ffi.Pointer, - ) ->(symbol: 'CFSocketRegisterSocketSignature') -external int _CFSocketRegisterSocketSignature( - ffi.Pointer nameServerSignature, - double timeout, - CFStringRef name, - ffi.Pointer signature, -); - -CFSocketError CFSocketRegisterSocketSignature( - ffi.Pointer nameServerSignature, - DartCFTimeInterval timeout, - CFStringRef name, - ffi.Pointer signature, -) { - return CFSocketError.fromValue( - _CFSocketRegisterSocketSignature( - nameServerSignature, - timeout, - name, - signature, - ), - ); -} - -@ffi.Native< - CFIndex Function( - ffi.Pointer, - CFTimeInterval, - CFStringRef, - CFPropertyListRef, - ) ->(symbol: 'CFSocketRegisterValue') -external int _CFSocketRegisterValue( - ffi.Pointer nameServerSignature, - double timeout, - CFStringRef name, - CFPropertyListRef value, -); - -CFSocketError CFSocketRegisterValue( - ffi.Pointer nameServerSignature, - DartCFTimeInterval timeout, - CFStringRef name, - CFPropertyListRef value, -) { - return CFSocketError.fromValue( - _CFSocketRegisterValue(nameServerSignature, timeout, name, value), - ); -} - -@ffi.Native< - CFIndex Function(CFSocketRef, CFDataRef, CFDataRef, CFTimeInterval) ->(symbol: 'CFSocketSendData') -external int _CFSocketSendData( - CFSocketRef s, - CFDataRef address, - CFDataRef data, - double timeout, -); - -CFSocketError CFSocketSendData( - CFSocketRef s, - CFDataRef address, - CFDataRef data, - DartCFTimeInterval timeout, -) { - return CFSocketError.fromValue(_CFSocketSendData(s, address, data, timeout)); -} - -@ffi.Native( - symbol: 'CFSocketSetAddress', -) -external int _CFSocketSetAddress(CFSocketRef s, CFDataRef address); - -CFSocketError CFSocketSetAddress(CFSocketRef s, CFDataRef address) { - return CFSocketError.fromValue(_CFSocketSetAddress(s, address)); -} - -@ffi.Native() -external void CFSocketSetDefaultNameRegistryPortNumber(int port); - -@ffi.Native() -external void CFSocketSetSocketFlags(CFSocketRef s, int flags); - -@ffi.Native< - CFIndex Function(ffi.Pointer, CFTimeInterval, CFStringRef) ->(symbol: 'CFSocketUnregister') -external int _CFSocketUnregister( - ffi.Pointer nameServerSignature, - double timeout, - CFStringRef name, -); - -CFSocketError CFSocketUnregister( - ffi.Pointer nameServerSignature, - DartCFTimeInterval timeout, - CFStringRef name, -) { - return CFSocketError.fromValue( - _CFSocketUnregister(nameServerSignature, timeout, name), - ); -} - -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->() -external void CFStreamCreateBoundPair( - CFAllocatorRef alloc, - ffi.Pointer readStream, - ffi.Pointer writeStream, - int transferBufferSize, -); - -@Deprecated('Use nw_connection_t in Network framework instead') -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStreamCreatePairWithPeerSocketSignature( - CFAllocatorRef alloc, - ffi.Pointer signature, - ffi.Pointer readStream, - ffi.Pointer writeStream, -); - -@Deprecated('Use nw_connection_t in Network framework instead') -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - CFSocketNativeHandle, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStreamCreatePairWithSocket( - CFAllocatorRef alloc, - int sock, - ffi.Pointer readStream, - ffi.Pointer writeStream, -); - -@Deprecated('Use Network framework instead') -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - CFHostRef, - SInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStreamCreatePairWithSocketToCFHost( - CFAllocatorRef alloc, - CFHostRef host, - int port, - ffi.Pointer readStream, - ffi.Pointer writeStream, -); - -@Deprecated('Use nw_connection_t in Network framework instead') -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - CFStringRef, - UInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStreamCreatePairWithSocketToHost( - CFAllocatorRef alloc, - CFStringRef host, - int port, - ffi.Pointer readStream, - ffi.Pointer writeStream, -); - -@Deprecated('Use Network framework instead') -@ffi.Native< - ffi.Void Function( - CFAllocatorRef, - CFNetServiceRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStreamCreatePairWithSocketToNetService( - CFAllocatorRef alloc, - CFNetServiceRef service, - ffi.Pointer readStream, - ffi.Pointer writeStream, -); - -@ffi.Native() -external void CFStringAppend( - CFMutableStringRef theString, - CFStringRef appendedString, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFStringEncoding) ->() -external void CFStringAppendCString( - CFMutableStringRef theString, - ffi.Pointer cStr, - int encoding, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFIndex) ->() -external void CFStringAppendCharacters( - CFMutableStringRef theString, - ffi.Pointer chars, - int numChars, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef) ->() -external void CFStringAppendFormat( - CFMutableStringRef theString, - CFDictionaryRef formatOptions, - CFStringRef format, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, CFDictionaryRef, CFStringRef, va_list) ->() -external void CFStringAppendFormatAndArguments( - CFMutableStringRef theString, - CFDictionaryRef formatOptions, - CFStringRef format, - va_list arguments, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, ConstStr255Param, CFStringEncoding) ->() -external void CFStringAppendPascalString( - CFMutableStringRef theString, - ConstStr255Param pStr, - int encoding, -); - -@ffi.Native() -external void CFStringCapitalize( - CFMutableStringRef theString, - CFLocaleRef locale, -); - -@ffi.Native( - symbol: 'CFStringCompare', -) -external int _CFStringCompare( - CFStringRef theString1, - CFStringRef theString2, - int compareOptions, -); - -CFComparisonResult CFStringCompare( - CFStringRef theString1, - CFStringRef theString2, - DartCFOptionFlags compareOptions, -) { - return CFComparisonResult.fromValue( - _CFStringCompare(theString1, theString2, compareOptions), - ); -} - -@ffi.Native( - symbol: 'CFStringCompareWithOptions', -) -external int _CFStringCompareWithOptions( - CFStringRef theString1, - CFStringRef theString2, - CFRange rangeToCompare, - int compareOptions, -); - -CFComparisonResult CFStringCompareWithOptions( - CFStringRef theString1, - CFStringRef theString2, - CFRange rangeToCompare, - DartCFOptionFlags compareOptions, -) { - return CFComparisonResult.fromValue( - _CFStringCompareWithOptions( - theString1, - theString2, - rangeToCompare, - compareOptions, - ), - ); -} - -@ffi.Native< - CFIndex Function( - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - CFLocaleRef, - ) ->(symbol: 'CFStringCompareWithOptionsAndLocale') -external int _CFStringCompareWithOptionsAndLocale( - CFStringRef theString1, - CFStringRef theString2, - CFRange rangeToCompare, - int compareOptions, - CFLocaleRef locale, -); - -CFComparisonResult CFStringCompareWithOptionsAndLocale( - CFStringRef theString1, - CFStringRef theString2, - CFRange rangeToCompare, - DartCFOptionFlags compareOptions, - CFLocaleRef locale, -) { - return CFComparisonResult.fromValue( - _CFStringCompareWithOptionsAndLocale( - theString1, - theString2, - rangeToCompare, - compareOptions, - locale, - ), - ); -} - -@ffi.Native() -external CFStringRef CFStringConvertEncodingToIANACharSetName(int encoding); - -@ffi.Native() -external int CFStringConvertEncodingToNSStringEncoding(int encoding); - -@ffi.Native() -external int CFStringConvertEncodingToWindowsCodepage(int encoding); - -@ffi.Native() -external int CFStringConvertIANACharSetNameToEncoding(CFStringRef theString); - -@ffi.Native() -external int CFStringConvertNSStringEncodingToEncoding(int encoding); - -@ffi.Native() -external int CFStringConvertWindowsCodepageToEncoding(int codepage); - -@ffi.Native() -external CFArrayRef CFStringCreateArrayBySeparatingStrings( - CFAllocatorRef alloc, - CFStringRef theString, - CFStringRef separatorString, -); - -@ffi.Native< - CFArrayRef Function( - CFAllocatorRef, - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - ) ->() -external CFArrayRef CFStringCreateArrayWithFindResults( - CFAllocatorRef alloc, - CFStringRef theString, - CFStringRef stringToFind, - CFRange rangeToSearch, - int compareOptions, -); - -@ffi.Native() -external CFStringRef CFStringCreateByCombiningStrings( - CFAllocatorRef alloc, - CFArrayRef theArray, - CFStringRef separatorString, -); - -@ffi.Native() -external CFStringRef CFStringCreateCopy( - CFAllocatorRef alloc, - CFStringRef theString, -); - -@ffi.Native< - CFDataRef Function(CFAllocatorRef, CFStringRef, CFStringEncoding, UInt8) ->() -external CFDataRef CFStringCreateExternalRepresentation( - CFAllocatorRef alloc, - CFStringRef theString, - int encoding, - int lossByte, -); - -@ffi.Native() -external CFStringRef CFStringCreateFromExternalRepresentation( - CFAllocatorRef alloc, - CFDataRef data, - int encoding, -); - -@ffi.Native() -external CFMutableStringRef CFStringCreateMutable( - CFAllocatorRef alloc, - int maxLength, -); - -@ffi.Native() -external CFMutableStringRef CFStringCreateMutableCopy( - CFAllocatorRef alloc, - int maxLength, - CFStringRef theString, -); - -@ffi.Native< - CFMutableStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFIndex, - CFAllocatorRef, - ) ->() -external CFMutableStringRef CFStringCreateMutableWithExternalCharactersNoCopy( - CFAllocatorRef alloc, - ffi.Pointer chars, - int numChars, - int capacity, - CFAllocatorRef externalCharactersAllocator, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - CFDictionaryRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external CFStringRef CFStringCreateStringWithValidatedFormat( - CFAllocatorRef alloc, - CFDictionaryRef formatOptions, - CFStringRef validFormatSpecifiers, - CFStringRef format, - ffi.Pointer errorPtr, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - CFDictionaryRef, - CFStringRef, - CFStringRef, - va_list, - ffi.Pointer, - ) ->() -external CFStringRef CFStringCreateStringWithValidatedFormatAndArguments( - CFAllocatorRef alloc, - CFDictionaryRef formatOptions, - CFStringRef validFormatSpecifiers, - CFStringRef format, - va_list arguments, - ffi.Pointer errorPtr, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - Boolean, - ) ->() -external CFStringRef CFStringCreateWithBytes( - CFAllocatorRef alloc, - ffi.Pointer bytes, - int numBytes, - int encoding, - int isExternalRepresentation, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - Boolean, - CFAllocatorRef, - ) ->() -external CFStringRef CFStringCreateWithBytesNoCopy( - CFAllocatorRef alloc, - ffi.Pointer bytes, - int numBytes, - int encoding, - int isExternalRepresentation, - CFAllocatorRef contentsDeallocator, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFStringEncoding) ->() -external CFStringRef CFStringCreateWithCString( - CFAllocatorRef alloc, - ffi.Pointer cStr, - int encoding, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFStringEncoding, - CFAllocatorRef, - ) ->() -external CFStringRef CFStringCreateWithCStringNoCopy( - CFAllocatorRef alloc, - ffi.Pointer cStr, - int encoding, - CFAllocatorRef contentsDeallocator, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) ->() -external CFStringRef CFStringCreateWithCharacters( - CFAllocatorRef alloc, - ffi.Pointer chars, - int numChars, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFAllocatorRef, - ) ->() -external CFStringRef CFStringCreateWithCharactersNoCopy( - CFAllocatorRef alloc, - ffi.Pointer chars, - int numChars, - CFAllocatorRef contentsDeallocator, -); - -@ffi.Native)>() -external CFStringRef CFStringCreateWithFileSystemRepresentation( - CFAllocatorRef alloc, - ffi.Pointer buffer, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef) ->() -external CFStringRef CFStringCreateWithFormat( - CFAllocatorRef alloc, - CFDictionaryRef formatOptions, - CFStringRef format, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFDictionaryRef, CFStringRef, va_list) ->() -external CFStringRef CFStringCreateWithFormatAndArguments( - CFAllocatorRef alloc, - CFDictionaryRef formatOptions, - CFStringRef format, - va_list arguments, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, ConstStr255Param, CFStringEncoding) ->() -external CFStringRef CFStringCreateWithPascalString( - CFAllocatorRef alloc, - ConstStr255Param pStr, - int encoding, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - ConstStr255Param, - CFStringEncoding, - CFAllocatorRef, - ) ->() -external CFStringRef CFStringCreateWithPascalStringNoCopy( - CFAllocatorRef alloc, - ConstStr255Param pStr, - int encoding, - CFAllocatorRef contentsDeallocator, -); - -@ffi.Native() -external CFStringRef CFStringCreateWithSubstring( - CFAllocatorRef alloc, - CFStringRef str, - CFRange range, -); - -@ffi.Native() -external void CFStringDelete(CFMutableStringRef theString, CFRange range); - -@ffi.Native() -external CFRange CFStringFind( - CFStringRef theString, - CFStringRef stringToFind, - int compareOptions, -); - -@ffi.Native< - CFIndex Function( - CFMutableStringRef, - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - ) ->() -external int CFStringFindAndReplace( - CFMutableStringRef theString, - CFStringRef stringToFind, - CFStringRef replacementString, - CFRange rangeToSearch, - int compareOptions, -); - -@ffi.Native< - Boolean Function( - CFStringRef, - CFCharacterSetRef, - CFRange, - CFOptionFlags, - ffi.Pointer, - ) ->() -external int CFStringFindCharacterFromSet( - CFStringRef theString, - CFCharacterSetRef theSet, - CFRange rangeToSearch, - int searchOptions, - ffi.Pointer result, -); - -@ffi.Native< - Boolean Function( - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - ffi.Pointer, - ) ->() -external int CFStringFindWithOptions( - CFStringRef theString, - CFStringRef stringToFind, - CFRange rangeToSearch, - int searchOptions, - ffi.Pointer result, -); - -@ffi.Native< - Boolean Function( - CFStringRef, - CFStringRef, - CFRange, - CFOptionFlags, - CFLocaleRef, - ffi.Pointer, - ) ->() -external int CFStringFindWithOptionsAndLocale( - CFStringRef theString, - CFStringRef stringToFind, - CFRange rangeToSearch, - int searchOptions, - CFLocaleRef locale, - ffi.Pointer result, -); - -@ffi.Native() -external void CFStringFold( - CFMutableStringRef theString, - int theFlags, - CFLocaleRef theLocale, -); - -@ffi.Native< - CFIndex Function( - CFStringRef, - CFRange, - CFStringEncoding, - UInt8, - Boolean, - ffi.Pointer, - CFIndex, - ffi.Pointer, - ) ->() -external int CFStringGetBytes( - CFStringRef theString, - CFRange range, - int encoding, - int lossByte, - int isExternalRepresentation, - ffi.Pointer buffer, - int maxBufLen, - ffi.Pointer usedBufLen, -); - -@ffi.Native< - Boolean Function( - CFStringRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - ) ->() -external int CFStringGetCString( - CFStringRef theString, - ffi.Pointer buffer, - int bufferSize, - int encoding, -); - -@ffi.Native Function(CFStringRef, CFStringEncoding)>() -external ffi.Pointer CFStringGetCStringPtr( - CFStringRef theString, - int encoding, -); - -@ffi.Native() -external int CFStringGetCharacterAtIndex(CFStringRef theString, int idx); - -@ffi.Native)>() -external void CFStringGetCharacters( - CFStringRef theString, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native Function(CFStringRef)>() -external ffi.Pointer CFStringGetCharactersPtr(CFStringRef theString); - -@ffi.Native() -external double CFStringGetDoubleValue(CFStringRef str); - -@ffi.Native() -external int CFStringGetFastestEncoding(CFStringRef theString); - -@ffi.Native, CFIndex)>() -external int CFStringGetFileSystemRepresentation( - CFStringRef string, - ffi.Pointer buffer, - int maxBufLen, -); - -@ffi.Native< - CFIndex Function( - CFStringRef, - CFIndex, - CFRange, - CFOptionFlags, - CFLocaleRef, - ffi.Pointer, - ) ->() -external int CFStringGetHyphenationLocationBeforeIndex( - CFStringRef string, - int location, - CFRange limitRange, - int options, - CFLocaleRef locale, - ffi.Pointer character, -); - -@ffi.Native() -external int CFStringGetIntValue(CFStringRef str); - -@ffi.Native() -external int CFStringGetLength(CFStringRef theString); - -@ffi.Native< - ffi.Void Function( - CFStringRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStringGetLineBounds( - CFStringRef theString, - CFRange range, - ffi.Pointer lineBeginIndex, - ffi.Pointer lineEndIndex, - ffi.Pointer contentsEndIndex, -); - -@ffi.Native Function()>() -external ffi.Pointer CFStringGetListOfAvailableEncodings(); - -@ffi.Native() -external int CFStringGetMaximumSizeForEncoding(int length, int encoding); - -@ffi.Native() -external int CFStringGetMaximumSizeOfFileSystemRepresentation( - CFStringRef string, -); - -@ffi.Native() -external int CFStringGetMostCompatibleMacStringEncoding(int encoding); - -@ffi.Native() -external CFStringRef CFStringGetNameOfEncoding(int encoding); - -@ffi.Native< - ffi.Void Function( - CFStringRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CFStringGetParagraphBounds( - CFStringRef string, - CFRange range, - ffi.Pointer parBeginIndex, - ffi.Pointer parEndIndex, - ffi.Pointer contentsEndIndex, -); - -@ffi.Native< - Boolean Function(CFStringRef, StringPtr, CFIndex, CFStringEncoding) ->() -external int CFStringGetPascalString( - CFStringRef theString, - StringPtr buffer, - int bufferSize, - int encoding, -); - -@ffi.Native() -external ConstStringPtr CFStringGetPascalStringPtr( - CFStringRef theString, - int encoding, -); - -@ffi.Native() -external CFRange CFStringGetRangeOfComposedCharactersAtIndex( - CFStringRef theString, - int theIndex, -); - -@ffi.Native() -external int CFStringGetSmallestEncoding(CFStringRef theString); - -@ffi.Native() -external int CFStringGetSystemEncoding(); - -@ffi.Native() -external int CFStringGetTypeID(); - -@ffi.Native() -external int CFStringHasPrefix(CFStringRef theString, CFStringRef prefix); - -@ffi.Native() -external int CFStringHasSuffix(CFStringRef theString, CFStringRef suffix); - -@ffi.Native() -external void CFStringInsert( - CFMutableStringRef str, - int idx, - CFStringRef insertedStr, -); - -@ffi.Native() -external int CFStringIsEncodingAvailable(int encoding); - -@ffi.Native() -external int CFStringIsHyphenationAvailableForLocale(CFLocaleRef locale); - -@ffi.Native() -external void CFStringLowercase( - CFMutableStringRef theString, - CFLocaleRef locale, -); - -@ffi.Native( - symbol: 'CFStringNormalize', -) -external void _CFStringNormalize(CFMutableStringRef theString, int theForm); - -void CFStringNormalize( - CFMutableStringRef theString, - CFStringNormalizationForm theForm, -) { - return _CFStringNormalize(theString, theForm.value); -} - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, CFStringRef, CFIndex, CFIndex) ->() -external void CFStringPad( - CFMutableStringRef theString, - CFStringRef padString, - int length, - int indexIntoPad, -); - -@ffi.Native() -external void CFStringReplace( - CFMutableStringRef theString, - CFRange range, - CFStringRef replacement, -); - -@ffi.Native() -external void CFStringReplaceAll( - CFMutableStringRef theString, - CFStringRef replacement, -); - -@ffi.Native< - ffi.Void Function(CFMutableStringRef, ffi.Pointer, CFIndex, CFIndex) ->() -external void CFStringSetExternalCharactersNoCopy( - CFMutableStringRef theString, - ffi.Pointer chars, - int length, - int capacity, -); - -@ffi.Native() -external int CFStringTokenizerAdvanceToNextToken( - CFStringTokenizerRef tokenizer, -); - -@ffi.Native() -external CFStringRef CFStringTokenizerCopyBestStringLanguage( - CFStringRef string, - CFRange range, -); - -@ffi.Native() -external CFTypeRef CFStringTokenizerCopyCurrentTokenAttribute( - CFStringTokenizerRef tokenizer, - int attribute, -); - -@ffi.Native< - CFStringTokenizerRef Function( - CFAllocatorRef, - CFStringRef, - CFRange, - CFOptionFlags, - CFLocaleRef, - ) ->() -external CFStringTokenizerRef CFStringTokenizerCreate( - CFAllocatorRef alloc, - CFStringRef string, - CFRange range, - int options, - CFLocaleRef locale, -); - -@ffi.Native< - CFIndex Function( - CFStringTokenizerRef, - ffi.Pointer, - CFIndex, - CFMutableArrayRef, - ) ->() -external int CFStringTokenizerGetCurrentSubTokens( - CFStringTokenizerRef tokenizer, - ffi.Pointer ranges, - int maxRangeLength, - CFMutableArrayRef derivedSubTokens, -); - -@ffi.Native() -external CFRange CFStringTokenizerGetCurrentTokenRange( - CFStringTokenizerRef tokenizer, -); - -@ffi.Native() -external int CFStringTokenizerGetTypeID(); - -@ffi.Native() -external int CFStringTokenizerGoToTokenAtIndex( - CFStringTokenizerRef tokenizer, - int index$1, -); - -@ffi.Native() -external void CFStringTokenizerSetString( - CFStringTokenizerRef tokenizer, - CFStringRef string, - CFRange range, -); - -@ffi.Native< - Boolean Function( - CFMutableStringRef, - ffi.Pointer, - CFStringRef, - Boolean, - ) ->() -external int CFStringTransform( - CFMutableStringRef string, - ffi.Pointer range, - CFStringRef transform, - int reverse, -); - -@ffi.Native() -external void CFStringTrim( - CFMutableStringRef theString, - CFStringRef trimString, -); - -@ffi.Native() -external void CFStringTrimWhitespace(CFMutableStringRef theString); - -@ffi.Native() -external void CFStringUppercase( - CFMutableStringRef theString, - CFLocaleRef locale, -); - -@ffi.Native() -external CFStringRef CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz, double at); - -@ffi.Native() -external CFDictionaryRef CFTimeZoneCopyAbbreviationDictionary(); - -@ffi.Native() -external CFTimeZoneRef CFTimeZoneCopyDefault(); - -@ffi.Native() -external CFArrayRef CFTimeZoneCopyKnownNames(); - -@ffi.Native( - symbol: 'CFTimeZoneCopyLocalizedName', -) -external CFStringRef _CFTimeZoneCopyLocalizedName( - CFTimeZoneRef tz, - int style, - CFLocaleRef locale, -); - -CFStringRef CFTimeZoneCopyLocalizedName( - CFTimeZoneRef tz, - CFTimeZoneNameStyle style, - CFLocaleRef locale, -) { - return _CFTimeZoneCopyLocalizedName(tz, style.value, locale); -} - -@ffi.Native() -external CFTimeZoneRef CFTimeZoneCopySystem(); - -@ffi.Native() -external CFTimeZoneRef CFTimeZoneCreate( - CFAllocatorRef allocator, - CFStringRef name, - CFDataRef data, -); - -@ffi.Native() -external CFTimeZoneRef CFTimeZoneCreateWithName( - CFAllocatorRef allocator, - CFStringRef name, - int tryAbbrev, -); - -@ffi.Native() -external CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT( - CFAllocatorRef allocator, - double ti, -); - -@ffi.Native() -external CFDataRef CFTimeZoneGetData(CFTimeZoneRef tz); - -@ffi.Native() -external double CFTimeZoneGetDaylightSavingTimeOffset( - CFTimeZoneRef tz, - double at, -); - -@ffi.Native() -external CFStringRef CFTimeZoneGetName(CFTimeZoneRef tz); - -@ffi.Native() -external double CFTimeZoneGetNextDaylightSavingTimeTransition( - CFTimeZoneRef tz, - double at, -); - -@ffi.Native() -external double CFTimeZoneGetSecondsFromGMT(CFTimeZoneRef tz, double at); - -@ffi.Native() -external int CFTimeZoneGetTypeID(); - -@ffi.Native() -external int CFTimeZoneIsDaylightSavingTime(CFTimeZoneRef tz, double at); - -@ffi.Native() -external void CFTimeZoneResetSystem(); - -@ffi.Native() -external void CFTimeZoneSetAbbreviationDictionary(CFDictionaryRef dict); - -@ffi.Native() -external void CFTimeZoneSetDefault(CFTimeZoneRef tz); - -@ffi.Native() -external void CFTreeAppendChild(CFTreeRef tree, CFTreeRef newChild); - -@ffi.Native< - ffi.Void Function(CFTreeRef, CFTreeApplierFunction, ffi.Pointer) ->() -external void CFTreeApplyFunctionToChildren( - CFTreeRef tree, - CFTreeApplierFunction applier, - ffi.Pointer context, -); - -@ffi.Native)>() -external CFTreeRef CFTreeCreate( - CFAllocatorRef allocator, - ffi.Pointer context, -); - -@ffi.Native() -external CFTreeRef CFTreeFindRoot(CFTreeRef tree); - -@ffi.Native() -external CFTreeRef CFTreeGetChildAtIndex(CFTreeRef tree, int idx); - -@ffi.Native() -external int CFTreeGetChildCount(CFTreeRef tree); - -@ffi.Native)>() -external void CFTreeGetChildren( - CFTreeRef tree, - ffi.Pointer children, -); - -@ffi.Native)>() -external void CFTreeGetContext( - CFTreeRef tree, - ffi.Pointer context, -); - -@ffi.Native() -external CFTreeRef CFTreeGetFirstChild(CFTreeRef tree); - -@ffi.Native() -external CFTreeRef CFTreeGetNextSibling(CFTreeRef tree); - -@ffi.Native() -external CFTreeRef CFTreeGetParent(CFTreeRef tree); - -@ffi.Native() -external int CFTreeGetTypeID(); - -@ffi.Native() -external void CFTreeInsertSibling(CFTreeRef tree, CFTreeRef newSibling); - -@ffi.Native() -external void CFTreePrependChild(CFTreeRef tree, CFTreeRef newChild); - -@ffi.Native() -external void CFTreeRemove(CFTreeRef tree); - -@ffi.Native() -external void CFTreeRemoveAllChildren(CFTreeRef tree); - -@ffi.Native)>() -external void CFTreeSetContext( - CFTreeRef tree, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Void Function(CFTreeRef, CFComparatorFunction, ffi.Pointer) ->() -external void CFTreeSortChildren( - CFTreeRef tree, - CFComparatorFunction comparator, - ffi.Pointer context, -); - -@ffi.Native() -external int CFURLCanBeDecomposed(CFURLRef anURL); - -@ffi.Native() -external void CFURLClearResourcePropertyCache(CFURLRef url); - -@ffi.Native() -external void CFURLClearResourcePropertyCacheForKey( - CFURLRef url, - CFStringRef key, -); - -@ffi.Native() -external CFURLRef CFURLCopyAbsoluteURL(CFURLRef relativeURL); - -@ffi.Native( - symbol: 'CFURLCopyFileSystemPath', -) -external CFStringRef _CFURLCopyFileSystemPath(CFURLRef anURL, int pathStyle); - -CFStringRef CFURLCopyFileSystemPath(CFURLRef anURL, CFURLPathStyle pathStyle) { - return _CFURLCopyFileSystemPath(anURL, pathStyle.value); -} - -@ffi.Native() -external CFStringRef CFURLCopyFragment( - CFURLRef anURL, - CFStringRef charactersToLeaveEscaped, -); - -@ffi.Native() -external CFStringRef CFURLCopyHostName(CFURLRef anURL); - -@ffi.Native() -external CFStringRef CFURLCopyLastPathComponent(CFURLRef url); - -@ffi.Native() -external CFStringRef CFURLCopyNetLocation(CFURLRef anURL); - -@Deprecated( - 'The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them.', -) -@ffi.Native() -external CFStringRef CFURLCopyParameterString( - CFURLRef anURL, - CFStringRef charactersToLeaveEscaped, -); - -@ffi.Native() -external CFStringRef CFURLCopyPassword(CFURLRef anURL); - -@ffi.Native() -external CFStringRef CFURLCopyPath(CFURLRef anURL); - -@ffi.Native() -external CFStringRef CFURLCopyPathExtension(CFURLRef url); - -@ffi.Native() -external CFStringRef CFURLCopyQueryString( - CFURLRef anURL, - CFStringRef charactersToLeaveEscaped, -); - -@ffi.Native< - CFDictionaryRef Function(CFURLRef, CFArrayRef, ffi.Pointer) ->() -external CFDictionaryRef CFURLCopyResourcePropertiesForKeys( - CFURLRef url, - CFArrayRef keys, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function( - CFURLRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CFURLCopyResourcePropertyForKey( - CFURLRef url, - CFStringRef key, - ffi.Pointer propertyValueTypeRefPtr, - ffi.Pointer error, -); - -@ffi.Native() -external CFStringRef CFURLCopyResourceSpecifier(CFURLRef anURL); - -@ffi.Native() -external CFStringRef CFURLCopyScheme(CFURLRef anURL); - -@ffi.Native)>() -external CFStringRef CFURLCopyStrictPath( - CFURLRef anURL, - ffi.Pointer isAbsolute, -); - -@ffi.Native() -external CFStringRef CFURLCopyUserName(CFURLRef anURL); - -@ffi.Native< - CFURLRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - CFURLRef, - Boolean, - ) ->() -external CFURLRef CFURLCreateAbsoluteURLWithBytes( - CFAllocatorRef alloc, - ffi.Pointer relativeURLBytes, - int length, - int encoding, - CFURLRef baseURL, - int useCompatibilityMode, -); - -@ffi.Native< - CFDataRef Function( - CFAllocatorRef, - CFURLRef, - CFOptionFlags, - CFArrayRef, - CFURLRef, - ffi.Pointer, - ) ->() -external CFDataRef CFURLCreateBookmarkData( - CFAllocatorRef allocator, - CFURLRef url, - int options, - CFArrayRef resourcePropertiesToInclude, - CFURLRef relativeToURL, - ffi.Pointer error, -); - -@Deprecated( - 'The Carbon Alias Manager is deprecated. This function should only be used to convert Carbon AliasRecords to bookmark data.', -) -@ffi.Native() -external CFDataRef CFURLCreateBookmarkDataFromAliasRecord( - CFAllocatorRef allocatorRef, - CFDataRef aliasRecordDataRef, -); - -@ffi.Native< - CFDataRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) ->() -external CFDataRef CFURLCreateBookmarkDataFromFile( - CFAllocatorRef allocator, - CFURLRef fileURL, - ffi.Pointer errorRef, -); - -@ffi.Native< - CFURLRef Function( - CFAllocatorRef, - CFDataRef, - CFOptionFlags, - CFURLRef, - CFArrayRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFURLRef CFURLCreateByResolvingBookmarkData( - CFAllocatorRef allocator, - CFDataRef bookmark, - int options, - CFURLRef relativeToURL, - CFArrayRef resourcePropertiesToInclude, - ffi.Pointer isStale, - ffi.Pointer error, -); - -@ffi.Native() -external CFURLRef CFURLCreateCopyAppendingPathComponent( - CFAllocatorRef allocator, - CFURLRef url, - CFStringRef pathComponent, - int isDirectory, -); - -@ffi.Native() -external CFURLRef CFURLCreateCopyAppendingPathExtension( - CFAllocatorRef allocator, - CFURLRef url, - CFStringRef extension, -); - -@ffi.Native() -external CFURLRef CFURLCreateCopyDeletingLastPathComponent( - CFAllocatorRef allocator, - CFURLRef url, -); - -@ffi.Native() -external CFURLRef CFURLCreateCopyDeletingPathExtension( - CFAllocatorRef allocator, - CFURLRef url, -); - -@ffi.Native< - CFDataRef Function(CFAllocatorRef, CFURLRef, CFStringEncoding, Boolean) ->() -external CFDataRef CFURLCreateData( - CFAllocatorRef allocator, - CFURLRef url, - int encoding, - int escapeWhitespace, -); - -@Deprecated( - 'For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys.', -) -@ffi.Native< - Boolean Function( - CFAllocatorRef, - CFURLRef, - ffi.Pointer, - ffi.Pointer, - CFArrayRef, - ffi.Pointer, - ) ->() -external int CFURLCreateDataAndPropertiesFromResource( - CFAllocatorRef alloc, - CFURLRef url, - ffi.Pointer resourceData, - ffi.Pointer properties, - CFArrayRef desiredProperties, - ffi.Pointer errorCode, -); - -@ffi.Native< - CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) ->() -external CFURLRef CFURLCreateFilePathURL( - CFAllocatorRef allocator, - CFURLRef url, - ffi.Pointer error, -); - -@ffi.Native< - CFURLRef Function(CFAllocatorRef, CFURLRef, ffi.Pointer) ->() -external CFURLRef CFURLCreateFileReferenceURL( - CFAllocatorRef allocator, - CFURLRef url, - ffi.Pointer error, -); - -@Deprecated('Not supported') -@ffi.Native)>() -external CFURLRef CFURLCreateFromFSRef( - CFAllocatorRef allocator, - ffi.Pointer fsRef, -); - -@ffi.Native< - CFURLRef Function(CFAllocatorRef, ffi.Pointer, CFIndex, Boolean) ->() -external CFURLRef CFURLCreateFromFileSystemRepresentation( - CFAllocatorRef allocator, - ffi.Pointer buffer, - int bufLen, - int isDirectory, -); - -@ffi.Native< - CFURLRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - Boolean, - CFURLRef, - ) ->() -external CFURLRef CFURLCreateFromFileSystemRepresentationRelativeToBase( - CFAllocatorRef allocator, - ffi.Pointer buffer, - int bufLen, - int isDirectory, - CFURLRef baseURL, -); - -@Deprecated( - 'For file resource properties, use CFURLCopyResourcePropertyForKey.', -) -@ffi.Native< - CFTypeRef Function(CFAllocatorRef, CFURLRef, CFStringRef, ffi.Pointer) ->() -external CFTypeRef CFURLCreatePropertyFromResource( - CFAllocatorRef alloc, - CFURLRef url, - CFStringRef property, - ffi.Pointer errorCode, -); - -@ffi.Native() -external CFDictionaryRef CFURLCreateResourcePropertiesForKeysFromBookmarkData( - CFAllocatorRef allocator, - CFArrayRef resourcePropertiesToReturn, - CFDataRef bookmark, -); - -@ffi.Native() -external CFTypeRef CFURLCreateResourcePropertyForKeyFromBookmarkData( - CFAllocatorRef allocator, - CFStringRef resourcePropertyKey, - CFDataRef bookmark, -); - -@Deprecated( - 'Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid).', -) -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringEncoding, - ) ->() -external CFStringRef CFURLCreateStringByAddingPercentEscapes( - CFAllocatorRef allocator, - CFStringRef originalString, - CFStringRef charactersToLeaveUnescaped, - CFStringRef legalURLCharactersToBeEscaped, - int encoding, -); - -@ffi.Native() -external CFStringRef CFURLCreateStringByReplacingPercentEscapes( - CFAllocatorRef allocator, - CFStringRef originalString, - CFStringRef charactersToLeaveEscaped, -); - -@Deprecated( - 'Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding.', -) -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - CFStringRef, - CFStringRef, - CFStringEncoding, - ) ->() -external CFStringRef CFURLCreateStringByReplacingPercentEscapesUsingEncoding( - CFAllocatorRef allocator, - CFStringRef origString, - CFStringRef charsToLeaveEscaped, - int encoding, -); - -@ffi.Native< - CFURLRef Function( - CFAllocatorRef, - ffi.Pointer, - CFIndex, - CFStringEncoding, - CFURLRef, - ) ->() -external CFURLRef CFURLCreateWithBytes( - CFAllocatorRef allocator, - ffi.Pointer URLBytes, - int length, - int encoding, - CFURLRef baseURL, -); - -@ffi.Native( - symbol: 'CFURLCreateWithFileSystemPath', -) -external CFURLRef _CFURLCreateWithFileSystemPath( - CFAllocatorRef allocator, - CFStringRef filePath, - int pathStyle, - int isDirectory, -); - -CFURLRef CFURLCreateWithFileSystemPath( - CFAllocatorRef allocator, - CFStringRef filePath, - CFURLPathStyle pathStyle, - DartBoolean isDirectory, -) { - return _CFURLCreateWithFileSystemPath( - allocator, - filePath, - pathStyle.value, - isDirectory, - ); -} - -@ffi.Native< - CFURLRef Function(CFAllocatorRef, CFStringRef, CFIndex, Boolean, CFURLRef) ->(symbol: 'CFURLCreateWithFileSystemPathRelativeToBase') -external CFURLRef _CFURLCreateWithFileSystemPathRelativeToBase( - CFAllocatorRef allocator, - CFStringRef filePath, - int pathStyle, - int isDirectory, - CFURLRef baseURL, -); - -CFURLRef CFURLCreateWithFileSystemPathRelativeToBase( - CFAllocatorRef allocator, - CFStringRef filePath, - CFURLPathStyle pathStyle, - DartBoolean isDirectory, - CFURLRef baseURL, -) { - return _CFURLCreateWithFileSystemPathRelativeToBase( - allocator, - filePath, - pathStyle.value, - isDirectory, - baseURL, - ); -} - -@ffi.Native() -external CFURLRef CFURLCreateWithString( - CFAllocatorRef allocator, - CFStringRef URLString, - CFURLRef baseURL, -); - -@Deprecated('Use CFURLGetFileSystemRepresentation and removefile(3) instead.') -@ffi.Native)>() -external int CFURLDestroyResource(CFURLRef url, ffi.Pointer errorCode); - -@ffi.Native< - CFURLEnumeratorRef Function( - CFAllocatorRef, - CFURLRef, - CFOptionFlags, - CFArrayRef, - ) ->() -external CFURLEnumeratorRef CFURLEnumeratorCreateForDirectoryURL( - CFAllocatorRef alloc, - CFURLRef directoryURL, - int option, - CFArrayRef propertyKeys, -); - -@ffi.Native< - CFURLEnumeratorRef Function(CFAllocatorRef, CFOptionFlags, CFArrayRef) ->() -external CFURLEnumeratorRef CFURLEnumeratorCreateForMountedVolumes( - CFAllocatorRef alloc, - int option, - CFArrayRef propertyKeys, -); - -@ffi.Native() -external int CFURLEnumeratorGetDescendentLevel(CFURLEnumeratorRef enumerator); - -@ffi.Native< - CFIndex Function( - CFURLEnumeratorRef, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CFURLEnumeratorGetNextURL') -external int _CFURLEnumeratorGetNextURL( - CFURLEnumeratorRef enumerator, - ffi.Pointer url, - ffi.Pointer error, -); - -CFURLEnumeratorResult CFURLEnumeratorGetNextURL( - CFURLEnumeratorRef enumerator, - ffi.Pointer url, - ffi.Pointer error, -) { - return CFURLEnumeratorResult.fromValue( - _CFURLEnumeratorGetNextURL(enumerator, url, error), - ); -} - -@Deprecated('Use File System Events API instead') -@ffi.Native() -external int CFURLEnumeratorGetSourceDidChange(CFURLEnumeratorRef enumerator); - -@ffi.Native() -external int CFURLEnumeratorGetTypeID(); - -@ffi.Native() -external void CFURLEnumeratorSkipDescendents(CFURLEnumeratorRef enumerator); - -@ffi.Native() -external CFURLRef CFURLGetBaseURL(CFURLRef anURL); - -@ffi.Native)>( - symbol: 'CFURLGetByteRangeForComponent', -) -external CFRange _CFURLGetByteRangeForComponent( - CFURLRef url, - int component, - ffi.Pointer rangeIncludingSeparators, -); - -CFRange CFURLGetByteRangeForComponent( - CFURLRef url, - CFURLComponentType component, - ffi.Pointer rangeIncludingSeparators, -) { - return _CFURLGetByteRangeForComponent( - url, - component.value, - rangeIncludingSeparators, - ); -} - -@ffi.Native, CFIndex)>() -external int CFURLGetBytes( - CFURLRef url, - ffi.Pointer buffer, - int bufferLength, -); - -@Deprecated('Not supported') -@ffi.Native)>() -external int CFURLGetFSRef(CFURLRef url, ffi.Pointer fsRef); - -@ffi.Native, CFIndex)>() -external int CFURLGetFileSystemRepresentation( - CFURLRef url, - int resolveAgainstBase, - ffi.Pointer buffer, - int maxBufLen, -); - -@ffi.Native() -external int CFURLGetPortNumber(CFURLRef anURL); - -@ffi.Native() -external CFStringRef CFURLGetString(CFURLRef anURL); - -@ffi.Native() -external int CFURLGetTypeID(); - -@ffi.Native() -external int CFURLHasDirectoryPath(CFURLRef anURL); - -@ffi.Native() -external int CFURLIsFileReferenceURL(CFURLRef url); - -@ffi.Native)>() -external int CFURLResourceIsReachable( - CFURLRef url, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function(CFURLRef, CFDictionaryRef, ffi.Pointer) ->() -external int CFURLSetResourcePropertiesForKeys( - CFURLRef url, - CFDictionaryRef keyedPropertyValues, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function(CFURLRef, CFStringRef, CFTypeRef, ffi.Pointer) ->() -external int CFURLSetResourcePropertyForKey( - CFURLRef url, - CFStringRef key, - CFTypeRef propertyValue, - ffi.Pointer error, -); - -@ffi.Native() -external void CFURLSetTemporaryResourcePropertyForKey( - CFURLRef url, - CFStringRef key, - CFTypeRef propertyValue, -); - -@ffi.Native() -external int CFURLStartAccessingSecurityScopedResource(CFURLRef url); - -@ffi.Native() -external void CFURLStopAccessingSecurityScopedResource(CFURLRef url); - -@ffi.Native< - Boolean Function( - CFDataRef, - CFURLRef, - CFURLBookmarkFileCreationOptions, - ffi.Pointer, - ) ->() -external int CFURLWriteBookmarkDataToFile( - CFDataRef bookmarkRef, - CFURLRef fileURL, - int options, - ffi.Pointer errorRef, -); - -@Deprecated( - 'For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys.', -) -@ffi.Native< - Boolean Function(CFURLRef, CFDataRef, CFDictionaryRef, ffi.Pointer) ->() -external int CFURLWriteDataAndPropertiesToResource( - CFURLRef url, - CFDataRef dataToWrite, - CFDictionaryRef propertiesToWrite, - ffi.Pointer errorCode, -); - -@ffi.Native() -external CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc); - -@ffi.Native() -external CFUUIDRef CFUUIDCreateFromString( - CFAllocatorRef alloc, - CFStringRef uuidStr, -); - -@ffi.Native() -external CFUUIDRef CFUUIDCreateFromUUIDBytes( - CFAllocatorRef alloc, - CFUUIDBytes bytes, -); - -@ffi.Native() -external CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid); - -@ffi.Native< - CFUUIDRef Function( - CFAllocatorRef, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - ) ->() -external CFUUIDRef CFUUIDCreateWithBytes( - CFAllocatorRef alloc, - int byte0, - int byte1, - int byte2, - int byte3, - int byte4, - int byte5, - int byte6, - int byte7, - int byte8, - int byte9, - int byte10, - int byte11, - int byte12, - int byte13, - int byte14, - int byte15, -); - -@ffi.Native< - CFUUIDRef Function( - CFAllocatorRef, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - UInt8, - ) ->() -external CFUUIDRef CFUUIDGetConstantUUIDWithBytes( - CFAllocatorRef alloc, - int byte0, - int byte1, - int byte2, - int byte3, - int byte4, - int byte5, - int byte6, - int byte7, - int byte8, - int byte9, - int byte10, - int byte11, - int byte12, - int byte13, - int byte14, - int byte15, -); - -@ffi.Native() -external int CFUUIDGetTypeID(); - -@ffi.Native() -external CFUUIDBytes CFUUIDGetUUIDBytes(CFUUIDRef uuid); - -@ffi.Native() -external int CFUserNotificationCancel(CFUserNotificationRef userNotification); - -@ffi.Native< - CFUserNotificationRef Function( - CFAllocatorRef, - CFTimeInterval, - CFOptionFlags, - ffi.Pointer, - CFDictionaryRef, - ) ->() -external CFUserNotificationRef CFUserNotificationCreate( - CFAllocatorRef allocator, - double timeout, - int flags, - ffi.Pointer error, - CFDictionaryRef dictionary, -); - -@ffi.Native< - CFRunLoopSourceRef Function( - CFAllocatorRef, - CFUserNotificationRef, - CFUserNotificationCallBack, - CFIndex, - ) ->() -external CFRunLoopSourceRef CFUserNotificationCreateRunLoopSource( - CFAllocatorRef allocator, - CFUserNotificationRef userNotification, - CFUserNotificationCallBack callout, - int order, -); - -@ffi.Native< - SInt32 Function( - CFTimeInterval, - CFOptionFlags, - CFURLRef, - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external int CFUserNotificationDisplayAlert( - double timeout, - int flags, - CFURLRef iconURL, - CFURLRef soundURL, - CFURLRef localizationURL, - CFStringRef alertHeader, - CFStringRef alertMessage, - CFStringRef defaultButtonTitle, - CFStringRef alternateButtonTitle, - CFStringRef otherButtonTitle, - ffi.Pointer responseFlags, -); - -@ffi.Native< - SInt32 Function( - CFTimeInterval, - CFOptionFlags, - CFURLRef, - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - CFStringRef, - ) ->() -external int CFUserNotificationDisplayNotice( - double timeout, - int flags, - CFURLRef iconURL, - CFURLRef soundURL, - CFURLRef localizationURL, - CFStringRef alertHeader, - CFStringRef alertMessage, - CFStringRef defaultButtonTitle, -); - -@ffi.Native() -external CFDictionaryRef CFUserNotificationGetResponseDictionary( - CFUserNotificationRef userNotification, -); - -@ffi.Native() -external CFStringRef CFUserNotificationGetResponseValue( - CFUserNotificationRef userNotification, - CFStringRef key, - int idx, -); - -@ffi.Native() -external int CFUserNotificationGetTypeID(); - -@ffi.Native< - SInt32 Function( - CFUserNotificationRef, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int CFUserNotificationReceiveResponse( - CFUserNotificationRef userNotification, - double timeout, - ffi.Pointer responseFlags, -); - -@ffi.Native< - SInt32 Function( - CFUserNotificationRef, - CFTimeInterval, - CFOptionFlags, - CFDictionaryRef, - ) ->() -external int CFUserNotificationUpdate( - CFUserNotificationRef userNotification, - double timeout, - int flags, - CFDictionaryRef dictionary, -); - -@ffi.Native() -external int CFWriteStreamCanAcceptBytes(CFWriteStreamRef stream); - -@ffi.Native() -external void CFWriteStreamClose(CFWriteStreamRef stream); - -@ffi.Native( - symbol: 'CFWriteStreamCopyDispatchQueue', -) -external dispatch_queue_t _CFWriteStreamCopyDispatchQueue( - CFWriteStreamRef stream, -); - -Dartdispatch_queue_t CFWriteStreamCopyDispatchQueue(CFWriteStreamRef stream) { - return objc.NSObject.fromPointer( - _CFWriteStreamCopyDispatchQueue(stream), - retain: true, - release: true, - ); -} - -@ffi.Native() -external CFErrorRef CFWriteStreamCopyError(CFWriteStreamRef stream); - -@ffi.Native() -external CFTypeRef CFWriteStreamCopyProperty( - CFWriteStreamRef stream, - CFStreamPropertyKey propertyName, -); - -@ffi.Native() -external CFWriteStreamRef CFWriteStreamCreateWithAllocatedBuffers( - CFAllocatorRef alloc, - CFAllocatorRef bufferAllocator, -); - -@ffi.Native< - CFWriteStreamRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) ->() -external CFWriteStreamRef CFWriteStreamCreateWithBuffer( - CFAllocatorRef alloc, - ffi.Pointer buffer, - int bufferCapacity, -); - -@Deprecated('Use NSURLSessionAPI for ftp requests') -@ffi.Native() -external CFWriteStreamRef CFWriteStreamCreateWithFTPURL( - CFAllocatorRef alloc, - CFURLRef ftpURL, -); - -@ffi.Native() -external CFWriteStreamRef CFWriteStreamCreateWithFile( - CFAllocatorRef alloc, - CFURLRef fileURL, -); - -@ffi.Native() -external CFStreamError CFWriteStreamGetError(CFWriteStreamRef stream); - -@ffi.Native( - symbol: 'CFWriteStreamGetStatus', -) -external int _CFWriteStreamGetStatus(CFWriteStreamRef stream); - -CFStreamStatus CFWriteStreamGetStatus(CFWriteStreamRef stream) { - return CFStreamStatus.fromValue(_CFWriteStreamGetStatus(stream)); -} - -@ffi.Native() -external int CFWriteStreamGetTypeID(); - -@ffi.Native() -external int CFWriteStreamOpen(CFWriteStreamRef stream); - -@ffi.Native() -external void CFWriteStreamScheduleWithRunLoop( - CFWriteStreamRef stream, - CFRunLoopRef runLoop, - CFRunLoopMode runLoopMode, -); - -@ffi.Native< - Boolean Function( - CFWriteStreamRef, - CFOptionFlags, - CFWriteStreamClientCallBack, - ffi.Pointer, - ) ->() -external int CFWriteStreamSetClient( - CFWriteStreamRef stream, - int streamEvents, - CFWriteStreamClientCallBack clientCB, - ffi.Pointer clientContext, -); - -@ffi.Native( - symbol: 'CFWriteStreamSetDispatchQueue', -) -external void _CFWriteStreamSetDispatchQueue( - CFWriteStreamRef stream, - dispatch_queue_t q, -); - -void CFWriteStreamSetDispatchQueue( - CFWriteStreamRef stream, - Dartdispatch_queue_t q, -) { - final _$$ref = q.ref; - return _CFWriteStreamSetDispatchQueue(stream, _$$ref.pointer); -} - -@ffi.Native< - Boolean Function(CFWriteStreamRef, CFStreamPropertyKey, CFTypeRef) ->() -external int CFWriteStreamSetProperty( - CFWriteStreamRef stream, - CFStreamPropertyKey propertyName, - CFTypeRef propertyValue, -); - -@ffi.Native() -external void CFWriteStreamUnscheduleFromRunLoop( - CFWriteStreamRef stream, - CFRunLoopRef runLoop, - CFRunLoopMode runLoopMode, -); - -@ffi.Native, CFIndex)>() -external int CFWriteStreamWrite( - CFWriteStreamRef stream, - ffi.Pointer buffer, - int bufferLength, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) ->() -external CFStringRef CFXMLCreateStringByEscapingEntities( - CFAllocatorRef allocator, - CFStringRef string, - CFDictionaryRef entitiesDictionary, -); - -@ffi.Native< - CFStringRef Function(CFAllocatorRef, CFStringRef, CFDictionaryRef) ->() -external CFStringRef CFXMLCreateStringByUnescapingEntities( - CFAllocatorRef allocator, - CFStringRef string, - CFDictionaryRef entitiesDictionary, -); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLNodeRef Function( - CFAllocatorRef, - CFIndex, - CFStringRef, - ffi.Pointer, - CFIndex, - ) ->(symbol: 'CFXMLNodeCreate') -external CFXMLNodeRef _CFXMLNodeCreate( - CFAllocatorRef alloc, - int xmlType, - CFStringRef dataString, - ffi.Pointer additionalInfoPtr, - int version, -); - -CFXMLNodeRef CFXMLNodeCreate( - CFAllocatorRef alloc, - CFXMLNodeTypeCode xmlType, - CFStringRef dataString, - ffi.Pointer additionalInfoPtr, - DartCFIndex version, -) { - return _CFXMLNodeCreate( - alloc, - xmlType.value, - dataString, - additionalInfoPtr, - version, - ); -} - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFXMLNodeRef CFXMLNodeCreateCopy( - CFAllocatorRef alloc, - CFXMLNodeRef origNode, -); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native Function(CFXMLNodeRef)>() -external ffi.Pointer CFXMLNodeGetInfoPtr(CFXMLNodeRef node); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFStringRef CFXMLNodeGetString(CFXMLNodeRef node); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native(symbol: 'CFXMLNodeGetTypeCode') -external int _CFXMLNodeGetTypeCode(CFXMLNodeRef node); - -CFXMLNodeTypeCode CFXMLNodeGetTypeCode(CFXMLNodeRef node) { - return CFXMLNodeTypeCode.fromValue(_CFXMLNodeGetTypeCode(node)); -} - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLNodeGetTypeID(); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLNodeGetVersion(CFXMLNodeRef node); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external void CFXMLParserAbort( - CFXMLParserRef parser, - int errorCode, - CFStringRef errorDescription, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFStringRef CFXMLParserCopyErrorDescription(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLParserRef Function( - CFAllocatorRef, - CFDataRef, - CFURLRef, - CFOptionFlags, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFXMLParserRef CFXMLParserCreate( - CFAllocatorRef allocator, - CFDataRef xmlData, - CFURLRef dataSource, - int parseOptions, - int versionOfNodes, - ffi.Pointer callBacks, - ffi.Pointer context, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLParserRef Function( - CFAllocatorRef, - CFURLRef, - CFOptionFlags, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CFXMLParserRef CFXMLParserCreateWithDataFromURL( - CFAllocatorRef allocator, - CFURLRef dataSource, - int parseOptions, - int versionOfNodes, - ffi.Pointer callBacks, - ffi.Pointer context, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - ffi.Void Function(CFXMLParserRef, ffi.Pointer) ->() -external void CFXMLParserGetCallBacks( - CFXMLParserRef parser, - ffi.Pointer callBacks, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - ffi.Void Function(CFXMLParserRef, ffi.Pointer) ->() -external void CFXMLParserGetContext( - CFXMLParserRef parser, - ffi.Pointer context, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native Function(CFXMLParserRef)>() -external ffi.Pointer CFXMLParserGetDocument(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLParserGetLineNumber(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLParserGetLocation(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFURLRef CFXMLParserGetSourceURL(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLParserGetStatusCode(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLParserGetTypeID(); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external int CFXMLParserParse(CFXMLParserRef parser); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLTreeRef Function( - CFAllocatorRef, - CFDataRef, - CFURLRef, - CFOptionFlags, - CFIndex, - ) ->() -external CFXMLTreeRef CFXMLTreeCreateFromData( - CFAllocatorRef allocator, - CFDataRef xmlData, - CFURLRef dataSource, - int parseOptions, - int versionOfNodes, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLTreeRef Function( - CFAllocatorRef, - CFDataRef, - CFURLRef, - CFOptionFlags, - CFIndex, - ffi.Pointer, - ) ->() -external CFXMLTreeRef CFXMLTreeCreateFromDataWithError( - CFAllocatorRef allocator, - CFDataRef xmlData, - CFURLRef dataSource, - int parseOptions, - int versionOfNodes, - ffi.Pointer errorDict, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native< - CFXMLTreeRef Function(CFAllocatorRef, CFURLRef, CFOptionFlags, CFIndex) ->() -external CFXMLTreeRef CFXMLTreeCreateWithDataFromURL( - CFAllocatorRef allocator, - CFURLRef dataSource, - int parseOptions, - int versionOfNodes, -); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFXMLTreeRef CFXMLTreeCreateWithNode( - CFAllocatorRef allocator, - CFXMLNodeRef node, -); - -@Deprecated( - 'CFXMLParser is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFDataRef CFXMLTreeCreateXMLData( - CFAllocatorRef allocator, - CFXMLTreeRef xmlTree, -); - -@Deprecated( - 'CFXMLNode is deprecated, use NSXMLParser, NSXMLDocument or libxml2 library instead', -) -@ffi.Native() -external CFXMLNodeRef CFXMLTreeGetNode(CFXMLTreeRef xmlTree); - -@ffi.Native< - ffi.Int32 Function( - CGDisplayReservationInterval, - ffi.Pointer, - ) ->(symbol: 'CGAcquireDisplayFadeReservation') -external int _CGAcquireDisplayFadeReservation( - double seconds, - ffi.Pointer token, -); - -CGError CGAcquireDisplayFadeReservation( - DartCGDisplayReservationInterval seconds, - ffi.Pointer token, -) { - return CGError.fromValue(_CGAcquireDisplayFadeReservation(seconds, token)); -} - -@ffi.Native() -external CGAffineTransform CGAffineTransformConcat( - CGAffineTransform t1, - CGAffineTransform t2, -); - -@ffi.Native() -external CGAffineTransformComponents CGAffineTransformDecompose( - CGAffineTransform transform, -); - -@ffi.Native() -external bool CGAffineTransformEqualToTransform( - CGAffineTransform t1, - CGAffineTransform t2, -); - -@ffi.Native() -external final CGAffineTransform CGAffineTransformIdentity; - -@ffi.Native() -external CGAffineTransform CGAffineTransformInvert(CGAffineTransform t); - -@ffi.Native() -external bool CGAffineTransformIsIdentity(CGAffineTransform t); - -@ffi.Native< - CGAffineTransform Function( - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external CGAffineTransform CGAffineTransformMake( - double a, - double b, - double c, - double d, - double tx, - double ty, -); - -@ffi.Native() -external CGAffineTransform CGAffineTransformMakeRotation(double angle); - -@ffi.Native() -external CGAffineTransform CGAffineTransformMakeScale(double sx, double sy); - -@ffi.Native() -external CGAffineTransform CGAffineTransformMakeTranslation( - double tx, - double ty, -); - -@ffi.Native() -external CGAffineTransform CGAffineTransformMakeWithComponents( - CGAffineTransformComponents components, -); - -@ffi.Native() -external CGAffineTransform CGAffineTransformRotate( - CGAffineTransform t, - double angle, -); - -@ffi.Native() -external CGAffineTransform CGAffineTransformScale( - CGAffineTransform t, - double sx, - double sy, -); - -@ffi.Native() -external CGAffineTransform CGAffineTransformTranslate( - CGAffineTransform t, - double tx, - double ty, -); - -@ffi.Native< - OSStatus Function(CFURLRef, CFDictionaryRef, CGImageSourceAnimationBlock) ->(symbol: 'CGAnimateImageAtURLWithBlock') -external int _CGAnimateImageAtURLWithBlock( - CFURLRef url, - CFDictionaryRef options, - CGImageSourceAnimationBlock block, -); - -DartSInt32 CGAnimateImageAtURLWithBlock( - CFURLRef url, - CFDictionaryRef options, - DartCGImageSourceAnimationBlock block, -) { - final _$$ref = block.ref; - return _CGAnimateImageAtURLWithBlock(url, options, _$$ref.pointer); -} - -@ffi.Native< - OSStatus Function(CFDataRef, CFDictionaryRef, CGImageSourceAnimationBlock) ->(symbol: 'CGAnimateImageDataWithBlock') -external int _CGAnimateImageDataWithBlock( - CFDataRef data, - CFDictionaryRef options, - CGImageSourceAnimationBlock block, -); - -DartSInt32 CGAnimateImageDataWithBlock( - CFDataRef data, - CFDictionaryRef options, - DartCGImageSourceAnimationBlock block, -) { - final _$$ref = block.ref; - return _CGAnimateImageDataWithBlock(data, options, _$$ref.pointer); -} - -@ffi.Native( - symbol: 'CGAssociateMouseAndMouseCursorPosition', -) -external int _CGAssociateMouseAndMouseCursorPosition(int connected); - -CGError CGAssociateMouseAndMouseCursorPosition(Dartboolean_t connected) { - return CGError.fromValue(_CGAssociateMouseAndMouseCursorPosition(connected)); -} - -@ffi.Native)>( - symbol: 'CGBeginDisplayConfiguration', -) -external int _CGBeginDisplayConfiguration( - ffi.Pointer config, -); - -CGError CGBeginDisplayConfiguration(ffi.Pointer config) { - return CGError.fromValue(_CGBeginDisplayConfiguration(config)); -} - -@ffi.Native< - CGContextRef Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - CGColorSpaceRef, - ffi.Uint32, - ) ->() -external CGContextRef CGBitmapContextCreate( - ffi.Pointer data, - int width, - int height, - int bitsPerComponent, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, -); - -@ffi.Native< - CGContextRef Function( - ffi.Size, - ffi.Size, - CFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGBitmapContextCreateAdaptive') -external CGContextRef _CGBitmapContextCreateAdaptive( - int width, - int height, - CFDictionaryRef auxiliaryInfo, - ffi.Pointer onResolve, - ffi.Pointer onAllocate, - ffi.Pointer onFree, - ffi.Pointer onError, -); - -CGContextRef CGBitmapContextCreateAdaptive( - int width, - int height, - CFDictionaryRef auxiliaryInfo, - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >? - onResolve, - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >? - onAllocate, - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >? - onFree, - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >? - onError, -) { - final _$$ref = onResolve?.ref; - final _$$ref$1 = onAllocate?.ref; - final _$$ref$2 = onFree?.ref; - final _$$ref$3 = onError?.ref; - return _CGBitmapContextCreateAdaptive( - width, - height, - auxiliaryInfo, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native() -external CGImageRef CGBitmapContextCreateImage(CGContextRef context); - -@ffi.Native< - CGContextRef Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - CGColorSpaceRef, - ffi.Uint32, - CGBitmapContextReleaseDataCallback, - ffi.Pointer, - ) ->() -external CGContextRef CGBitmapContextCreateWithData( - ffi.Pointer data, - int width, - int height, - int bitsPerComponent, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, - CGBitmapContextReleaseDataCallback releaseCallback, - ffi.Pointer releaseInfo, -); - -@ffi.Native( - symbol: 'CGBitmapContextGetAlphaInfo', -) -external int _CGBitmapContextGetAlphaInfo(CGContextRef context); - -CGImageAlphaInfo CGBitmapContextGetAlphaInfo(CGContextRef context) { - return CGImageAlphaInfo.fromValue(_CGBitmapContextGetAlphaInfo(context)); -} - -@ffi.Native() -external int CGBitmapContextGetBitmapInfo(CGContextRef context); - -@ffi.Native() -external int CGBitmapContextGetBitsPerComponent(CGContextRef context); - -@ffi.Native() -external int CGBitmapContextGetBitsPerPixel(CGContextRef context); - -@ffi.Native() -external int CGBitmapContextGetBytesPerRow(CGContextRef context); - -@ffi.Native() -external CGColorSpaceRef CGBitmapContextGetColorSpace(CGContextRef context); - -@ffi.Native Function(CGContextRef)>() -external ffi.Pointer CGBitmapContextGetData(CGContextRef context); - -@ffi.Native() -external int CGBitmapContextGetHeight(CGContextRef context); - -@ffi.Native() -external int CGBitmapContextGetWidth(CGContextRef context); - -@ffi.Native( - symbol: 'CGCancelDisplayConfiguration', -) -external int _CGCancelDisplayConfiguration(CGDisplayConfigRef config); - -CGError CGCancelDisplayConfiguration(CGDisplayConfigRef config) { - return CGError.fromValue(_CGCancelDisplayConfiguration(config)); -} - -@ffi.Native(symbol: 'CGCaptureAllDisplays') -external int _CGCaptureAllDisplays(); - -CGError CGCaptureAllDisplays() { - return CGError.fromValue(_CGCaptureAllDisplays()); -} - -@ffi.Native( - symbol: 'CGCaptureAllDisplaysWithOptions', -) -external int _CGCaptureAllDisplaysWithOptions(int options); - -CGError CGCaptureAllDisplaysWithOptions(int options) { - return CGError.fromValue(_CGCaptureAllDisplaysWithOptions(options)); -} - -@ffi.Native< - ffi.Bool Function( - CGColorConversionInfoRef, - ffi.Size, - ffi.Size, - ffi.Pointer, - CGColorBufferFormat, - ffi.Pointer, - CGColorBufferFormat, - CFDictionaryRef, - ) ->() -external bool CGColorConversionInfoConvertData( - CGColorConversionInfoRef info, - int width, - int height, - ffi.Pointer dst_data, - CGColorBufferFormat dst_format, - ffi.Pointer src_data, - CGColorBufferFormat src_format, - CFDictionaryRef options, -); - -@ffi.Native< - CGColorConversionInfoRef Function(CGColorSpaceRef, CGColorSpaceRef) ->() -external CGColorConversionInfoRef CGColorConversionInfoCreate( - CGColorSpaceRef src, - CGColorSpaceRef dst, -); - -@ffi.Native< - CGColorConversionInfoRef Function( - CGColorSpaceRef, - ffi.Float, - CGColorSpaceRef, - ffi.Float, - ffi.Uint32, - CFDictionaryRef, - ffi.Pointer, - ) ->(symbol: 'CGColorConversionInfoCreateForToneMapping') -external CGColorConversionInfoRef _CGColorConversionInfoCreateForToneMapping( - CGColorSpaceRef from, - double source_headroom, - CGColorSpaceRef to, - double target_headroom, - int method, - CFDictionaryRef options, - ffi.Pointer error, -); - -CGColorConversionInfoRef CGColorConversionInfoCreateForToneMapping( - CGColorSpaceRef from, - double source_headroom, - CGColorSpaceRef to, - double target_headroom, - CGToneMapping method, - CFDictionaryRef options, - ffi.Pointer error, -) { - return _CGColorConversionInfoCreateForToneMapping( - from, - source_headroom, - to, - target_headroom, - method.value, - options, - error, - ); -} - -@ffi.Native< - CGColorConversionInfoRef Function( - CFDictionaryRef, - CGColorSpaceRef, - ffi.Uint32, - ffi.Int32, - ) ->(symbol: 'CGColorConversionInfoCreateFromList') -external CGColorConversionInfoRef _CGColorConversionInfoCreateFromList( - CFDictionaryRef options, - CGColorSpaceRef arg1, - int arg2, - int arg3, -); - -CGColorConversionInfoRef CGColorConversionInfoCreateFromList( - CFDictionaryRef options, - CGColorSpaceRef arg1, - CGColorConversionInfoTransformType arg2, - CGColorRenderingIntent arg3, -) { - return _CGColorConversionInfoCreateFromList( - options, - arg1, - arg2.value, - arg3.value, - ); -} - -@ffi.Native< - CGColorConversionInfoRef Function( - CFDictionaryRef, - CGColorSpaceRef, - ffi.Uint32, - ffi.Int32, - va_list, - ) ->(symbol: 'CGColorConversionInfoCreateFromListWithArguments') -external CGColorConversionInfoRef -_CGColorConversionInfoCreateFromListWithArguments( - CFDictionaryRef options, - CGColorSpaceRef arg1, - int arg2, - int arg3, - va_list arg4, -); - -CGColorConversionInfoRef CGColorConversionInfoCreateFromListWithArguments( - CFDictionaryRef options, - CGColorSpaceRef arg1, - CGColorConversionInfoTransformType arg2, - CGColorRenderingIntent arg3, - va_list arg4, -) { - return _CGColorConversionInfoCreateFromListWithArguments( - options, - arg1, - arg2.value, - arg3.value, - arg4, - ); -} - -@ffi.Native< - CGColorConversionInfoRef Function( - CGColorSpaceRef, - CGColorSpaceRef, - CFDictionaryRef, - ) ->() -external CGColorConversionInfoRef CGColorConversionInfoCreateWithOptions( - CGColorSpaceRef src, - CGColorSpaceRef dst, - CFDictionaryRef options, -); - -@ffi.Native() -external int CGColorConversionInfoGetTypeID(); - -@ffi.Native)>() -external CGColorRef CGColorCreate( - CGColorSpaceRef space, - ffi.Pointer components, -); - -@ffi.Native() -external CGColorRef CGColorCreateCopy(CGColorRef color); - -@ffi.Native< - CGColorRef Function(CGColorSpaceRef, ffi.Int32, CGColorRef, CFDictionaryRef) ->(symbol: 'CGColorCreateCopyByMatchingToColorSpace') -external CGColorRef _CGColorCreateCopyByMatchingToColorSpace( - CGColorSpaceRef arg0, - int intent, - CGColorRef color, - CFDictionaryRef options, -); - -CGColorRef CGColorCreateCopyByMatchingToColorSpace( - CGColorSpaceRef arg0, - CGColorRenderingIntent intent, - CGColorRef color, - CFDictionaryRef options, -) { - return _CGColorCreateCopyByMatchingToColorSpace( - arg0, - intent.value, - color, - options, - ); -} - -@ffi.Native() -external CGColorRef CGColorCreateCopyWithAlpha(CGColorRef color, double alpha); - -@ffi.Native() -external CGColorRef CGColorCreateGenericCMYK( - double cyan, - double magenta, - double yellow, - double black, - double alpha, -); - -@ffi.Native() -external CGColorRef CGColorCreateGenericGray(double gray, double alpha); - -@ffi.Native() -external CGColorRef CGColorCreateGenericGrayGamma2_2(double gray, double alpha); - -@ffi.Native() -external CGColorRef CGColorCreateGenericRGB( - double red, - double green, - double blue, - double alpha, -); - -@ffi.Native() -external CGColorRef CGColorCreateSRGB( - double red, - double green, - double blue, - double alpha, -); - -@ffi.Native< - CGColorRef Function( - ffi.Float, - CGColorSpaceRef, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external CGColorRef CGColorCreateWithContentHeadroom( - double headroom, - CGColorSpaceRef space, - double red, - double green, - double blue, - double alpha, -); - -@ffi.Native< - CGColorRef Function(CGColorSpaceRef, CGPatternRef, ffi.Pointer) ->() -external CGColorRef CGColorCreateWithPattern( - CGColorSpaceRef space, - CGPatternRef pattern, - ffi.Pointer components, -); - -@ffi.Native() -external bool CGColorEqualToColor(CGColorRef color1, CGColorRef color2); - -@ffi.Native() -external double CGColorGetAlpha(CGColorRef color); - -@ffi.Native() -external CGColorSpaceRef CGColorGetColorSpace(CGColorRef color); - -@ffi.Native Function(CGColorRef)>() -external ffi.Pointer CGColorGetComponents(CGColorRef color); - -@ffi.Native() -external CGColorRef CGColorGetConstantColor(CFStringRef colorName); - -@ffi.Native() -external double CGColorGetContentHeadroom(CGColorRef color); - -@ffi.Native() -external int CGColorGetNumberOfComponents(CGColorRef color); - -@ffi.Native() -external CGPatternRef CGColorGetPattern(CGColorRef color); - -@ffi.Native() -external int CGColorGetTypeID(); - -@ffi.Native() -external void CGColorRelease(CGColorRef color); - -@ffi.Native() -external CGColorRef CGColorRetain(CGColorRef color); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCopyBaseColorSpace(CGColorSpaceRef space); - -@ffi.Native() -external CFDataRef CGColorSpaceCopyICCData(CGColorSpaceRef space); - -@Deprecated('No longer supported') -@ffi.Native() -external CFDataRef CGColorSpaceCopyICCProfile(CGColorSpaceRef space); - -@ffi.Native() -external CFStringRef CGColorSpaceCopyName(CGColorSpaceRef space); - -@ffi.Native() -external CFPropertyListRef CGColorSpaceCopyPropertyList(CGColorSpaceRef space); - -@ffi.Native< - CGColorSpaceRef Function(ffi.Pointer, ffi.Pointer, CGFloat) ->() -external CGColorSpaceRef CGColorSpaceCreateCalibratedGray( - ffi.Pointer whitePoint, - ffi.Pointer blackPoint, - double gamma, -); - -@ffi.Native< - CGColorSpaceRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGColorSpaceRef CGColorSpaceCreateCalibratedRGB( - ffi.Pointer whitePoint, - ffi.Pointer blackPoint, - ffi.Pointer gamma, - ffi.Pointer matrix, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateCopyWithStandardRange( - CGColorSpaceRef s, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateDeviceCMYK(); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateDeviceGray(); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateDeviceRGB(); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateExtended(CGColorSpaceRef space); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateExtendedLinearized( - CGColorSpaceRef space, -); - -@ffi.Native< - CGColorSpaceRef Function( - ffi.Size, - ffi.Pointer, - CGDataProviderRef, - CGColorSpaceRef, - ) ->() -external CGColorSpaceRef CGColorSpaceCreateICCBased( - int nComponents, - ffi.Pointer range, - CGDataProviderRef profile, - CGColorSpaceRef alternate, -); - -@ffi.Native< - CGColorSpaceRef Function( - CGColorSpaceRef, - ffi.Size, - ffi.Pointer, - ) ->() -external CGColorSpaceRef CGColorSpaceCreateIndexed( - CGColorSpaceRef baseSpace, - int lastIndex, - ffi.Pointer colorTable, -); - -@ffi.Native< - CGColorSpaceRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGColorSpaceRef CGColorSpaceCreateLab( - ffi.Pointer whitePoint, - ffi.Pointer blackPoint, - ffi.Pointer range, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateLinearized(CGColorSpaceRef space); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreatePattern(CGColorSpaceRef baseSpace); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateWithColorSyncProfile( - ColorSyncProfileRef arg0, - CFDictionaryRef options, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateWithICCData(CFTypeRef data); - -@Deprecated('No longer supported') -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateWithICCProfile(CFDataRef data); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateWithName(CFStringRef name); - -@Deprecated('No longer supported') -@ffi.Native)>() -external CGColorSpaceRef CGColorSpaceCreateWithPlatformColorSpace( - ffi.Pointer ref, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceCreateWithPropertyList( - CFPropertyListRef plist, -); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceGetBaseColorSpace(CGColorSpaceRef space); - -@ffi.Native)>() -external void CGColorSpaceGetColorTable( - CGColorSpaceRef space, - ffi.Pointer table, -); - -@ffi.Native() -external int CGColorSpaceGetColorTableCount(CGColorSpaceRef space); - -@ffi.Native(symbol: 'CGColorSpaceGetModel') -external int _CGColorSpaceGetModel(CGColorSpaceRef space); - -CGColorSpaceModel CGColorSpaceGetModel(CGColorSpaceRef space) { - return CGColorSpaceModel.fromValue(_CGColorSpaceGetModel(space)); -} - -@ffi.Native() -external CFStringRef CGColorSpaceGetName(CGColorSpaceRef space); - -@ffi.Native() -external int CGColorSpaceGetNumberOfComponents(CGColorSpaceRef space); - -@ffi.Native() -external int CGColorSpaceGetTypeID(); - -@ffi.Native() -external bool CGColorSpaceIsHDR(CGColorSpaceRef arg0); - -@ffi.Native() -external bool CGColorSpaceIsHLGBased(CGColorSpaceRef s); - -@ffi.Native() -external bool CGColorSpaceIsPQBased(CGColorSpaceRef s); - -@ffi.Native() -external bool CGColorSpaceIsWideGamutRGB(CGColorSpaceRef arg0); - -@ffi.Native() -external void CGColorSpaceRelease(CGColorSpaceRef space); - -@ffi.Native() -external CGColorSpaceRef CGColorSpaceRetain(CGColorSpaceRef space); - -@ffi.Native() -external bool CGColorSpaceSupportsOutput(CGColorSpaceRef space); - -@ffi.Native() -external bool CGColorSpaceUsesExtendedRange(CGColorSpaceRef space); - -@ffi.Native() -external bool CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef arg0); - -@ffi.Native( - symbol: 'CGCompleteDisplayConfiguration', -) -external int _CGCompleteDisplayConfiguration( - CGDisplayConfigRef config, - int option, -); - -CGError CGCompleteDisplayConfiguration(CGDisplayConfigRef config, int option) { - return CGError.fromValue(_CGCompleteDisplayConfiguration(config, option)); -} - -@ffi.Native< - ffi.Int32 Function( - CGDisplayConfigRef, - CGDisplayFadeInterval, - CGDisplayFadeInterval, - ffi.Float, - ffi.Float, - ffi.Float, - ) ->(symbol: 'CGConfigureDisplayFadeEffect') -external int _CGConfigureDisplayFadeEffect( - CGDisplayConfigRef config, - double fadeOutSeconds, - double fadeInSeconds, - double fadeRed, - double fadeGreen, - double fadeBlue, -); - -CGError CGConfigureDisplayFadeEffect( - CGDisplayConfigRef config, - DartCGDisplayFadeInterval fadeOutSeconds, - DartCGDisplayFadeInterval fadeInSeconds, - double fadeRed, - double fadeGreen, - double fadeBlue, -) { - return CGError.fromValue( - _CGConfigureDisplayFadeEffect( - config, - fadeOutSeconds, - fadeInSeconds, - fadeRed, - fadeGreen, - fadeBlue, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function(CGDisplayConfigRef, CGDirectDisplayID, CGDirectDisplayID) ->(symbol: 'CGConfigureDisplayMirrorOfDisplay') -external int _CGConfigureDisplayMirrorOfDisplay( - CGDisplayConfigRef config, - int display, - int master, -); - -CGError CGConfigureDisplayMirrorOfDisplay( - CGDisplayConfigRef config, - DartCGDirectDisplayID display, - DartCGDirectDisplayID master, -) { - return CGError.fromValue( - _CGConfigureDisplayMirrorOfDisplay(config, display, master), - ); -} - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Int32 Function(CGDisplayConfigRef, CGDirectDisplayID, CFDictionaryRef) ->(symbol: 'CGConfigureDisplayMode') -external int _CGConfigureDisplayMode( - CGDisplayConfigRef config, - int display, - CFDictionaryRef mode, -); - -CGError CGConfigureDisplayMode( - CGDisplayConfigRef config, - DartCGDirectDisplayID display, - CFDictionaryRef mode, -) { - return CGError.fromValue(_CGConfigureDisplayMode(config, display, mode)); -} - -@ffi.Native< - ffi.Int32 Function( - CGDisplayConfigRef, - CGDirectDisplayID, - ffi.Int32, - ffi.Int32, - ) ->(symbol: 'CGConfigureDisplayOrigin') -external int _CGConfigureDisplayOrigin( - CGDisplayConfigRef config, - int display, - int x, - int y, -); - -CGError CGConfigureDisplayOrigin( - CGDisplayConfigRef config, - DartCGDirectDisplayID display, - int x, - int y, -) { - return CGError.fromValue(_CGConfigureDisplayOrigin(config, display, x, y)); -} - -@ffi.Native< - ffi.Int32 Function( - CGDisplayConfigRef, - CGDirectDisplayID, - boolean_t, - boolean_t, - ) ->(symbol: 'CGConfigureDisplayStereoOperation') -external int _CGConfigureDisplayStereoOperation( - CGDisplayConfigRef config, - int display, - int stereo, - int forceBlueLine, -); - -CGError CGConfigureDisplayStereoOperation( - CGDisplayConfigRef config, - DartCGDirectDisplayID display, - Dartboolean_t stereo, - Dartboolean_t forceBlueLine, -) { - return CGError.fromValue( - _CGConfigureDisplayStereoOperation(config, display, stereo, forceBlueLine), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGDisplayConfigRef, - CGDirectDisplayID, - CGDisplayModeRef, - CFDictionaryRef, - ) ->(symbol: 'CGConfigureDisplayWithDisplayMode') -external int _CGConfigureDisplayWithDisplayMode( - CGDisplayConfigRef config, - int display, - CGDisplayModeRef mode, - CFDictionaryRef options, -); - -CGError CGConfigureDisplayWithDisplayMode( - CGDisplayConfigRef config, - DartCGDirectDisplayID display, - CGDisplayModeRef mode, - CFDictionaryRef options, -) { - return CGError.fromValue( - _CGConfigureDisplayWithDisplayMode(config, display, mode, options), - ); -} - -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ffi.Int, - ) ->() -external void CGContextAddArc( - CGContextRef c, - double x, - double y, - double radius, - double startAngle, - double endAngle, - int clockwise, -); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextAddArcToPoint( - CGContextRef c, - double x1, - double y1$1, - double x2, - double y2, - double radius, -); - -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external void CGContextAddCurveToPoint( - CGContextRef c, - double cp1x, - double cp1y, - double cp2x, - double cp2y, - double x, - double y, -); - -@ffi.Native() -external void CGContextAddEllipseInRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native() -external void CGContextAddLineToPoint(CGContextRef c, double x, double y); - -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) ->() -external void CGContextAddLines( - CGContextRef c, - ffi.Pointer points, - int count, -); - -@ffi.Native() -external void CGContextAddPath(CGContextRef c, CGPathRef path); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextAddQuadCurveToPoint( - CGContextRef c, - double cpx, - double cpy, - double x, - double y, -); - -@ffi.Native() -external void CGContextAddRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) ->() -external void CGContextAddRects( - CGContextRef c, - ffi.Pointer rects, - int count, -); - -@ffi.Native)>() -external void CGContextBeginPage( - CGContextRef c, - ffi.Pointer mediaBox, -); - -@ffi.Native() -external void CGContextBeginPath(CGContextRef c); - -@ffi.Native() -external void CGContextBeginTransparencyLayer( - CGContextRef c, - CFDictionaryRef auxiliaryInfo, -); - -@ffi.Native() -external void CGContextBeginTransparencyLayerWithRect( - CGContextRef c, - objc.CGRect rect, - CFDictionaryRef auxInfo, -); - -@ffi.Native() -external void CGContextClearRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native() -external void CGContextClip(CGContextRef c); - -@ffi.Native() -external void CGContextClipToMask( - CGContextRef c, - objc.CGRect rect, - CGImageRef mask, -); - -@ffi.Native() -external void CGContextClipToRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) ->() -external void CGContextClipToRects( - CGContextRef c, - ffi.Pointer rects, - int count, -); - -@ffi.Native() -external void CGContextClosePath(CGContextRef c); - -@ffi.Native() -external void CGContextConcatCTM(CGContextRef c, CGAffineTransform transform); - -@ffi.Native() -external objc.CGPoint CGContextConvertPointToDeviceSpace( - CGContextRef c, - objc.CGPoint point, -); - -@ffi.Native() -external objc.CGPoint CGContextConvertPointToUserSpace( - CGContextRef c, - objc.CGPoint point, -); - -@ffi.Native() -external objc.CGRect CGContextConvertRectToDeviceSpace( - CGContextRef c, - objc.CGRect rect, -); - -@ffi.Native() -external objc.CGRect CGContextConvertRectToUserSpace( - CGContextRef c, - objc.CGRect rect, -); - -@ffi.Native() -external objc.CGSize CGContextConvertSizeToDeviceSpace( - CGContextRef c, - objc.CGSize size, -); - -@ffi.Native() -external objc.CGSize CGContextConvertSizeToUserSpace( - CGContextRef c, - objc.CGSize size, -); - -@ffi.Native() -external CGPathRef CGContextCopyPath(CGContextRef c); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGGradientRef, objc.CGPoint, CGFloat) ->() -external void CGContextDrawConicGradient( - CGContextRef c, - CGGradientRef gradient, - objc.CGPoint center, - double angle, -); - -@ffi.Native() -external void CGContextDrawImage( - CGContextRef c, - objc.CGRect rect, - CGImageRef image, -); - -@ffi.Native< - ffi.Bool Function( - CGContextRef, - objc.CGRect, - CGImageRef, - ffi.Uint32, - CFDictionaryRef, - ) ->(symbol: 'CGContextDrawImageApplyingToneMapping') -external bool _CGContextDrawImageApplyingToneMapping( - CGContextRef c, - objc.CGRect r, - CGImageRef image, - int method, - CFDictionaryRef options, -); - -bool CGContextDrawImageApplyingToneMapping( - CGContextRef c, - objc.CGRect r, - CGImageRef image, - CGToneMapping method, - CFDictionaryRef options, -) { - return _CGContextDrawImageApplyingToneMapping( - c, - r, - image, - method.value, - options, - ); -} - -@ffi.Native() -external void CGContextDrawLayerAtPoint( - CGContextRef context, - objc.CGPoint point, - CGLayerRef layer, -); - -@ffi.Native() -external void CGContextDrawLayerInRect( - CGContextRef context, - objc.CGRect rect, - CGLayerRef layer, -); - -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGGradientRef, - objc.CGPoint, - objc.CGPoint, - ffi.Uint32, - ) ->() -external void CGContextDrawLinearGradient( - CGContextRef c, - CGGradientRef gradient, - objc.CGPoint startPoint, - objc.CGPoint endPoint, - int options, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(CGContextRef, objc.CGRect, CGPDFDocumentRef, ffi.Int) ->() -external void CGContextDrawPDFDocument( - CGContextRef c, - objc.CGRect rect, - CGPDFDocumentRef document, - int page, -); - -@ffi.Native() -external void CGContextDrawPDFPage(CGContextRef c, CGPDFPageRef page); - -@ffi.Native( - symbol: 'CGContextDrawPath', -) -external void _CGContextDrawPath(CGContextRef c, int mode); - -void CGContextDrawPath(CGContextRef c, CGPathDrawingMode mode) { - return _CGContextDrawPath(c, mode.value); -} - -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGGradientRef, - objc.CGPoint, - CGFloat, - objc.CGPoint, - CGFloat, - ffi.Uint32, - ) ->() -external void CGContextDrawRadialGradient( - CGContextRef c, - CGGradientRef gradient, - objc.CGPoint startCenter, - double startRadius, - objc.CGPoint endCenter, - double endRadius, - int options, -); - -@ffi.Native() -external void CGContextDrawShading(CGContextRef c, CGShadingRef shading); - -@ffi.Native() -external void CGContextDrawTiledImage( - CGContextRef c, - objc.CGRect rect, - CGImageRef image, -); - -@ffi.Native() -external void CGContextEOClip(CGContextRef c); - -@ffi.Native() -external void CGContextEOFillPath(CGContextRef c); - -@ffi.Native() -external void CGContextEndPage(CGContextRef c); - -@ffi.Native() -external void CGContextEndTransparencyLayer(CGContextRef c); - -@ffi.Native() -external void CGContextFillEllipseInRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native() -external void CGContextFillPath(CGContextRef c); - -@ffi.Native() -external void CGContextFillRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) ->() -external void CGContextFillRects( - CGContextRef c, - ffi.Pointer rects, - int count, -); - -@ffi.Native() -external void CGContextFlush(CGContextRef c); - -@ffi.Native() -external CGAffineTransform CGContextGetCTM(CGContextRef c); - -@ffi.Native() -external objc.CGRect CGContextGetClipBoundingBox(CGContextRef c); - -@ffi.Native() -external CGContentToneMappingInfo CGContextGetContentToneMappingInfo( - CGContextRef c, -); - -@ffi.Native() -external double CGContextGetEDRTargetHeadroom(CGContextRef c); - -@ffi.Native( - symbol: 'CGContextGetInterpolationQuality', -) -external int _CGContextGetInterpolationQuality(CGContextRef c); - -CGInterpolationQuality CGContextGetInterpolationQuality(CGContextRef c) { - return CGInterpolationQuality.fromValue(_CGContextGetInterpolationQuality(c)); -} - -@ffi.Native() -external objc.CGRect CGContextGetPathBoundingBox(CGContextRef c); - -@ffi.Native() -external objc.CGPoint CGContextGetPathCurrentPoint(CGContextRef c); - -@ffi.Native() -external CGAffineTransform CGContextGetTextMatrix(CGContextRef c); - -@ffi.Native() -external objc.CGPoint CGContextGetTextPosition(CGContextRef c); - -@ffi.Native() -external int CGContextGetTypeID(); - -@ffi.Native() -external CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform( - CGContextRef c, -); - -@ffi.Native() -external bool CGContextIsPathEmpty(CGContextRef c); - -@ffi.Native() -external void CGContextMoveToPoint(CGContextRef c, double x, double y); - -@ffi.Native( - symbol: 'CGContextPathContainsPoint', -) -external bool _CGContextPathContainsPoint( - CGContextRef c, - objc.CGPoint point, - int mode, -); - -bool CGContextPathContainsPoint( - CGContextRef c, - objc.CGPoint point, - CGPathDrawingMode mode, -) { - return _CGContextPathContainsPoint(c, point, mode.value); -} - -@ffi.Native() -external void CGContextRelease(CGContextRef c); - -@ffi.Native() -external void CGContextReplacePathWithStrokedPath(CGContextRef c); - -@ffi.Native() -external void CGContextResetClip(CGContextRef c); - -@ffi.Native() -external void CGContextRestoreGState(CGContextRef c); - -@ffi.Native() -external CGContextRef CGContextRetain(CGContextRef c); - -@ffi.Native() -external void CGContextRotateCTM(CGContextRef c, double angle); - -@ffi.Native() -external void CGContextSaveGState(CGContextRef c); - -@ffi.Native() -external void CGContextScaleCTM(CGContextRef c, double sx, double sy); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, CGFloat, ffi.Int32) ->(symbol: 'CGContextSelectFont') -external void _CGContextSelectFont( - CGContextRef c, - ffi.Pointer name, - double size, - int textEncoding, -); - -void CGContextSelectFont( - CGContextRef c, - ffi.Pointer name, - DartCGFloat size, - CGTextEncoding textEncoding, -) { - return _CGContextSelectFont(c, name, size, textEncoding.value); -} - -@ffi.Native() -external void CGContextSetAllowsAntialiasing( - CGContextRef c, - bool allowsAntialiasing, -); - -@ffi.Native() -external void CGContextSetAllowsFontSmoothing( - CGContextRef c, - bool allowsFontSmoothing, -); - -@ffi.Native() -external void CGContextSetAllowsFontSubpixelPositioning( - CGContextRef c, - bool allowsFontSubpixelPositioning, -); - -@ffi.Native() -external void CGContextSetAllowsFontSubpixelQuantization( - CGContextRef c, - bool allowsFontSubpixelQuantization, -); - -@ffi.Native() -external void CGContextSetAlpha(CGContextRef c, double alpha); - -@ffi.Native( - symbol: 'CGContextSetBlendMode', -) -external void _CGContextSetBlendMode(CGContextRef c, int mode); - -void CGContextSetBlendMode(CGContextRef c, CGBlendMode mode) { - return _CGContextSetBlendMode(c, mode.value); -} - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextSetCMYKFillColor( - CGContextRef c, - double cyan, - double magenta, - double yellow, - double black, - double alpha, -); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextSetCMYKStrokeColor( - CGContextRef c, - double cyan, - double magenta, - double yellow, - double black, - double alpha, -); - -@ffi.Native() -external void CGContextSetCharacterSpacing(CGContextRef c, double spacing); - -@ffi.Native() -external void CGContextSetContentToneMappingInfo( - CGContextRef c, - CGContentToneMappingInfo info, -); - -@ffi.Native() -external bool CGContextSetEDRTargetHeadroom(CGContextRef c, double headroom); - -@ffi.Native)>() -external void CGContextSetFillColor( - CGContextRef c, - ffi.Pointer components, -); - -@ffi.Native() -external void CGContextSetFillColorSpace(CGContextRef c, CGColorSpaceRef space); - -@ffi.Native() -external void CGContextSetFillColorWithColor(CGContextRef c, CGColorRef color); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGPatternRef, ffi.Pointer) ->() -external void CGContextSetFillPattern( - CGContextRef c, - CGPatternRef pattern, - ffi.Pointer components, -); - -@ffi.Native() -external void CGContextSetFlatness(CGContextRef c, double flatness); - -@ffi.Native() -external void CGContextSetFont(CGContextRef c, CGFontRef font); - -@ffi.Native() -external void CGContextSetFontSize(CGContextRef c, double size); - -@ffi.Native() -external void CGContextSetGrayFillColor( - CGContextRef c, - double gray, - double alpha, -); - -@ffi.Native() -external void CGContextSetGrayStrokeColor( - CGContextRef c, - double gray, - double alpha, -); - -@ffi.Native( - symbol: 'CGContextSetInterpolationQuality', -) -external void _CGContextSetInterpolationQuality(CGContextRef c, int quality); - -void CGContextSetInterpolationQuality( - CGContextRef c, - CGInterpolationQuality quality, -) { - return _CGContextSetInterpolationQuality(c, quality.value); -} - -@ffi.Native( - symbol: 'CGContextSetLineCap', -) -external void _CGContextSetLineCap(CGContextRef c, int cap); - -void CGContextSetLineCap(CGContextRef c, CGLineCap cap) { - return _CGContextSetLineCap(c, cap.value); -} - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, ffi.Pointer, ffi.Size) ->() -external void CGContextSetLineDash( - CGContextRef c, - double phase, - ffi.Pointer lengths, - int count, -); - -@ffi.Native( - symbol: 'CGContextSetLineJoin', -) -external void _CGContextSetLineJoin(CGContextRef c, int join); - -void CGContextSetLineJoin(CGContextRef c, CGLineJoin join) { - return _CGContextSetLineJoin(c, join.value); -} - -@ffi.Native() -external void CGContextSetLineWidth(CGContextRef c, double width); - -@ffi.Native() -external void CGContextSetMiterLimit(CGContextRef c, double limit); - -@ffi.Native() -external void CGContextSetPatternPhase(CGContextRef c, objc.CGSize phase); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextSetRGBFillColor( - CGContextRef c, - double red, - double green, - double blue, - double alpha, -); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGFloat, CGFloat, CGFloat, CGFloat) ->() -external void CGContextSetRGBStrokeColor( - CGContextRef c, - double red, - double green, - double blue, - double alpha, -); - -@ffi.Native( - symbol: 'CGContextSetRenderingIntent', -) -external void _CGContextSetRenderingIntent(CGContextRef c, int intent); - -void CGContextSetRenderingIntent( - CGContextRef c, - CGColorRenderingIntent intent, -) { - return _CGContextSetRenderingIntent(c, intent.value); -} - -@ffi.Native() -external void CGContextSetShadow( - CGContextRef c, - objc.CGSize offset, - double blur, -); - -@ffi.Native() -external void CGContextSetShadowWithColor( - CGContextRef c, - objc.CGSize offset, - double blur, - CGColorRef color, -); - -@ffi.Native() -external void CGContextSetShouldAntialias(CGContextRef c, bool shouldAntialias); - -@ffi.Native() -external void CGContextSetShouldSmoothFonts( - CGContextRef c, - bool shouldSmoothFonts, -); - -@ffi.Native() -external void CGContextSetShouldSubpixelPositionFonts( - CGContextRef c, - bool shouldSubpixelPositionFonts, -); - -@ffi.Native() -external void CGContextSetShouldSubpixelQuantizeFonts( - CGContextRef c, - bool shouldSubpixelQuantizeFonts, -); - -@ffi.Native)>() -external void CGContextSetStrokeColor( - CGContextRef c, - ffi.Pointer components, -); - -@ffi.Native() -external void CGContextSetStrokeColorSpace( - CGContextRef c, - CGColorSpaceRef space, -); - -@ffi.Native() -external void CGContextSetStrokeColorWithColor( - CGContextRef c, - CGColorRef color, -); - -@ffi.Native< - ffi.Void Function(CGContextRef, CGPatternRef, ffi.Pointer) ->() -external void CGContextSetStrokePattern( - CGContextRef c, - CGPatternRef pattern, - ffi.Pointer components, -); - -@ffi.Native( - symbol: 'CGContextSetTextDrawingMode', -) -external void _CGContextSetTextDrawingMode(CGContextRef c, int mode); - -void CGContextSetTextDrawingMode(CGContextRef c, CGTextDrawingMode mode) { - return _CGContextSetTextDrawingMode(c, mode.value); -} - -@ffi.Native() -external void CGContextSetTextMatrix(CGContextRef c, CGAffineTransform t); - -@ffi.Native() -external void CGContextSetTextPosition(CGContextRef c, double x, double y); - -@Deprecated('No longer supported') -@ffi.Native, ffi.Size)>() -external void CGContextShowGlyphs( - CGContextRef c, - ffi.Pointer g, - int count, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGFloat, - CGFloat, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGContextShowGlyphsAtPoint( - CGContextRef c, - double x, - double y, - ffi.Pointer glyphs, - int count, -); - -@ffi.Native< - ffi.Void Function( - CGContextRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGContextShowGlyphsAtPositions( - CGContextRef c, - ffi.Pointer glyphs, - ffi.Pointer Lpositions, - int count, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - CGContextRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGContextShowGlyphsWithAdvances( - CGContextRef c, - ffi.Pointer glyphs, - ffi.Pointer advances, - int count, -); - -@Deprecated('No longer supported') -@ffi.Native, ffi.Size)>() -external void CGContextShowText( - CGContextRef c, - ffi.Pointer string, - int length, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - CGContextRef, - CGFloat, - CGFloat, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGContextShowTextAtPoint( - CGContextRef c, - double x, - double y, - ffi.Pointer string, - int length, -); - -@ffi.Native() -external void CGContextStrokeEllipseInRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native< - ffi.Void Function(CGContextRef, ffi.Pointer, ffi.Size) ->() -external void CGContextStrokeLineSegments( - CGContextRef c, - ffi.Pointer points, - int count, -); - -@ffi.Native() -external void CGContextStrokePath(CGContextRef c); - -@ffi.Native() -external void CGContextStrokeRect(CGContextRef c, objc.CGRect rect); - -@ffi.Native() -external void CGContextStrokeRectWithWidth( - CGContextRef c, - objc.CGRect rect, - double width, -); - -@ffi.Native() -external void CGContextSynchronize(CGContextRef c); - -@ffi.Native() -external void CGContextSynchronizeAttributes(CGContextRef c); - -@ffi.Native() -external void CGContextTranslateCTM(CGContextRef c, double tx, double ty); - -@ffi.Native< - ffi.Bool Function( - ffi.Size, - ffi.Size, - ffi.Pointer, - CGColorDataFormat, - ffi.Pointer, - CGColorDataFormat, - CFDictionaryRef, - ) ->() -external bool CGConvertColorDataWithFormat( - int width, - int height, - ffi.Pointer dst_data, - CGColorDataFormat dst_format, - ffi.Pointer src_data, - CGColorDataFormat src_format, - CFDictionaryRef options, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int CGCursorIsDrawnInFramebuffer(); - -@Deprecated('No longer supported') -@ffi.Native() -external int CGCursorIsVisible(); - -@ffi.Native< - CGDataConsumerRef Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGDataConsumerRef CGDataConsumerCreate( - ffi.Pointer info, - ffi.Pointer cbks, -); - -@ffi.Native() -external CGDataConsumerRef CGDataConsumerCreateWithCFData( - CFMutableDataRef data, -); - -@ffi.Native() -external CGDataConsumerRef CGDataConsumerCreateWithURL(CFURLRef url); - -@ffi.Native() -external int CGDataConsumerGetTypeID(); - -@ffi.Native() -external void CGDataConsumerRelease(CGDataConsumerRef consumer); - -@ffi.Native() -external CGDataConsumerRef CGDataConsumerRetain(CGDataConsumerRef consumer); - -@ffi.Native() -external CFDataRef CGDataProviderCopyData(CGDataProviderRef provider); - -@ffi.Native< - CGDataProviderRef Function( - ffi.Pointer, - off_t, - ffi.Pointer, - ) ->() -external CGDataProviderRef CGDataProviderCreateDirect( - ffi.Pointer info, - int size, - ffi.Pointer callbacks, -); - -@ffi.Native< - CGDataProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGDataProviderRef CGDataProviderCreateSequential( - ffi.Pointer info, - ffi.Pointer callbacks, -); - -@ffi.Native() -external CGDataProviderRef CGDataProviderCreateWithCFData(CFDataRef data); - -@ffi.Native< - CGDataProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - CGDataProviderReleaseDataCallback, - ) ->() -external CGDataProviderRef CGDataProviderCreateWithData( - ffi.Pointer info, - ffi.Pointer data, - int size, - CGDataProviderReleaseDataCallback releaseData, -); - -@ffi.Native)>() -external CGDataProviderRef CGDataProviderCreateWithFilename( - ffi.Pointer filename, -); - -@ffi.Native() -external CGDataProviderRef CGDataProviderCreateWithURL(CFURLRef url); - -@ffi.Native Function(CGDataProviderRef)>() -external ffi.Pointer CGDataProviderGetInfo( - CGDataProviderRef provider, -); - -@ffi.Native() -external int CGDataProviderGetTypeID(); - -@ffi.Native() -external void CGDataProviderRelease(CGDataProviderRef provider); - -@ffi.Native() -external CGDataProviderRef CGDataProviderRetain(CGDataProviderRef provider); - -@ffi.Native Function(CGDirectDisplayID)>( - symbol: 'CGDirectDisplayCopyCurrentMetalDevice', -) -external ffi.Pointer -_CGDirectDisplayCopyCurrentMetalDevice(int display); - -MTLDevice? CGDirectDisplayCopyCurrentMetalDevice( - DartCGDirectDisplayID display, -) { - return _CGDirectDisplayCopyCurrentMetalDevice(display).address == 0 - ? null - : MTLDevice.fromPointer( - _CGDirectDisplayCopyCurrentMetalDevice(display), - retain: false, - release: true, - ); -} - -@Deprecated('No longer supported') -@ffi.Native() -external CFArrayRef CGDisplayAvailableModes(int dsp); - -@Deprecated('No longer supported') -@ffi.Native< - CFDictionaryRef Function( - CGDirectDisplayID, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->() -external CFDictionaryRef CGDisplayBestModeForParameters( - int display, - int bitsPerPixel, - int width, - int height, - ffi.Pointer exactMatch, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDictionaryRef Function( - CGDirectDisplayID, - ffi.Size, - ffi.Size, - ffi.Size, - CGRefreshRate, - ffi.Pointer, - ) ->() -external CFDictionaryRef CGDisplayBestModeForParametersAndRefreshRate( - int display, - int bitsPerPixel, - int width, - int height, - double refreshRate, - ffi.Pointer exactMatch, -); - -@ffi.Native() -external objc.CGRect CGDisplayBounds(int display); - -@ffi.Native(symbol: 'CGDisplayCapture') -external int _CGDisplayCapture(int display); - -CGError CGDisplayCapture(DartCGDirectDisplayID display) { - return CGError.fromValue(_CGDisplayCapture(display)); -} - -@ffi.Native( - symbol: 'CGDisplayCaptureWithOptions', -) -external int _CGDisplayCaptureWithOptions(int display, int options); - -CGError CGDisplayCaptureWithOptions( - DartCGDirectDisplayID display, - int options, -) { - return CGError.fromValue(_CGDisplayCaptureWithOptions(display, options)); -} - -@ffi.Native() -external CFArrayRef CGDisplayCopyAllDisplayModes( - int display, - CFDictionaryRef options, -); - -@ffi.Native() -external CGColorSpaceRef CGDisplayCopyColorSpace(int display); - -@ffi.Native() -external CGDisplayModeRef CGDisplayCopyDisplayMode(int display); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external CGImageRef CGDisplayCreateImage(int displayID); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external CGImageRef CGDisplayCreateImageForRect(int display, objc.CGRect rect); - -@ffi.Native() -external CFUUIDRef CGDisplayCreateUUIDFromDisplayID(int displayID); - -@Deprecated('No longer supported') -@ffi.Native() -external CFDictionaryRef CGDisplayCurrentMode(int display); - -@ffi.Native< - ffi.Int32 Function( - CGDisplayFadeReservationToken, - CGDisplayFadeInterval, - CGDisplayBlendFraction, - CGDisplayBlendFraction, - ffi.Float, - ffi.Float, - ffi.Float, - boolean_t, - ) ->(symbol: 'CGDisplayFade') -external int _CGDisplayFade( - int token, - double duration, - double startBlend, - double endBlend, - double redBlend, - double greenBlend, - double blueBlend, - int synchronous, -); - -CGError CGDisplayFade( - DartCGDisplayFadeReservationToken token, - DartCGDisplayFadeInterval duration, - DartCGDisplayBlendFraction startBlend, - DartCGDisplayBlendFraction endBlend, - double redBlend, - double greenBlend, - double blueBlend, - Dartboolean_t synchronous, -) { - return CGError.fromValue( - _CGDisplayFade( - token, - duration, - startBlend, - endBlend, - redBlend, - greenBlend, - blueBlend, - synchronous, - ), - ); -} - -@Deprecated('No longer supported') -@ffi.Native() -external int CGDisplayFadeOperationInProgress(); - -@ffi.Native() -external int CGDisplayGammaTableCapacity(int display); - -@ffi.Native() -external int CGDisplayGetDisplayIDFromUUID(CFUUIDRef uuid); - -@ffi.Native() -external CGContextRef CGDisplayGetDrawingContext(int display); - -@ffi.Native( - symbol: 'CGDisplayHideCursor', -) -external int _CGDisplayHideCursor(int display); - -CGError CGDisplayHideCursor(DartCGDirectDisplayID display) { - return CGError.fromValue(_CGDisplayHideCursor(display)); -} - -@ffi.Native() -external int CGDisplayIDToOpenGLDisplayMask(int display); - -@Deprecated('No longer supported') -@ffi.Native() -external int CGDisplayIOServicePort(int display); - -@ffi.Native() -external int CGDisplayIsActive(int display); - -@ffi.Native() -external int CGDisplayIsAlwaysInMirrorSet(int display); - -@ffi.Native() -external int CGDisplayIsAsleep(int display); - -@ffi.Native() -external int CGDisplayIsBuiltin(int display); - -@Deprecated('No longer supported') -@ffi.Native() -external int CGDisplayIsCaptured(int display); - -@ffi.Native() -external int CGDisplayIsInHWMirrorSet(int display); - -@ffi.Native() -external int CGDisplayIsInMirrorSet(int display); - -@ffi.Native() -external int CGDisplayIsMain(int display); - -@ffi.Native() -external int CGDisplayIsOnline(int display); - -@ffi.Native() -external int CGDisplayIsStereo(int display); - -@ffi.Native() -external int CGDisplayMirrorsDisplay(int display); - -@Deprecated('No longer supported') -@ffi.Native() -external CFStringRef CGDisplayModeCopyPixelEncoding(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetHeight(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetIODisplayModeID(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetIOFlags(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetPixelHeight(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetPixelWidth(CGDisplayModeRef mode); - -@ffi.Native() -external double CGDisplayModeGetRefreshRate(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModeGetTypeID(); - -@ffi.Native() -external int CGDisplayModeGetWidth(CGDisplayModeRef mode); - -@ffi.Native() -external bool CGDisplayModeIsUsableForDesktopGUI(CGDisplayModeRef mode); - -@ffi.Native() -external void CGDisplayModeRelease(CGDisplayModeRef mode); - -@ffi.Native() -external CGDisplayModeRef CGDisplayModeRetain(CGDisplayModeRef mode); - -@ffi.Native() -external int CGDisplayModelNumber(int display); - -@ffi.Native( - symbol: 'CGDisplayMoveCursorToPoint', -) -external int _CGDisplayMoveCursorToPoint(int display, objc.CGPoint point); - -CGError CGDisplayMoveCursorToPoint( - DartCGDirectDisplayID display, - objc.CGPoint point, -) { - return CGError.fromValue(_CGDisplayMoveCursorToPoint(display, point)); -} - -@ffi.Native() -external int CGDisplayPixelsHigh(int display); - -@ffi.Native() -external int CGDisplayPixelsWide(int display); - -@ffi.Native() -external int CGDisplayPrimaryDisplay(int display); - -@ffi.Native< - ffi.Int32 Function(CGDisplayReconfigurationCallBack, ffi.Pointer) ->(symbol: 'CGDisplayRegisterReconfigurationCallback') -external int _CGDisplayRegisterReconfigurationCallback( - CGDisplayReconfigurationCallBack callback, - ffi.Pointer userInfo, -); - -CGError CGDisplayRegisterReconfigurationCallback( - CGDisplayReconfigurationCallBack callback, - ffi.Pointer userInfo, -) { - return CGError.fromValue( - _CGDisplayRegisterReconfigurationCallback(callback, userInfo), - ); -} - -@ffi.Native(symbol: 'CGDisplayRelease') -external int _CGDisplayRelease(int display); - -CGError CGDisplayRelease(DartCGDirectDisplayID display) { - return CGError.fromValue(_CGDisplayRelease(display)); -} - -@ffi.Native< - ffi.Int32 Function(CGDisplayReconfigurationCallBack, ffi.Pointer) ->(symbol: 'CGDisplayRemoveReconfigurationCallback') -external int _CGDisplayRemoveReconfigurationCallback( - CGDisplayReconfigurationCallBack callback, - ffi.Pointer userInfo, -); - -CGError CGDisplayRemoveReconfigurationCallback( - CGDisplayReconfigurationCallBack callback, - ffi.Pointer userInfo, -) { - return CGError.fromValue( - _CGDisplayRemoveReconfigurationCallback(callback, userInfo), - ); -} - -@ffi.Native() -external void CGDisplayRestoreColorSyncSettings(); - -@ffi.Native() -external double CGDisplayRotation(int display); - -@ffi.Native() -external objc.CGSize CGDisplayScreenSize(int display); - -@ffi.Native() -external int CGDisplaySerialNumber(int display); - -@ffi.Native< - ffi.Int32 Function(CGDirectDisplayID, CGDisplayModeRef, CFDictionaryRef) ->(symbol: 'CGDisplaySetDisplayMode') -external int _CGDisplaySetDisplayMode( - int display, - CGDisplayModeRef mode, - CFDictionaryRef options, -); - -CGError CGDisplaySetDisplayMode( - DartCGDirectDisplayID display, - CGDisplayModeRef mode, - CFDictionaryRef options, -) { - return CGError.fromValue(_CGDisplaySetDisplayMode(display, mode, options)); -} - -@ffi.Native< - ffi.Int32 Function(CGDirectDisplayID, boolean_t, boolean_t, ffi.Uint32) ->(symbol: 'CGDisplaySetStereoOperation') -external int _CGDisplaySetStereoOperation( - int display, - int stereo, - int forceBlueLine, - int option, -); - -CGError CGDisplaySetStereoOperation( - DartCGDirectDisplayID display, - Dartboolean_t stereo, - Dartboolean_t forceBlueLine, - int option, -) { - return CGError.fromValue( - _CGDisplaySetStereoOperation(display, stereo, forceBlueLine, option), - ); -} - -@ffi.Native( - symbol: 'CGDisplayShowCursor', -) -external int _CGDisplayShowCursor(int display); - -CGError CGDisplayShowCursor(DartCGDirectDisplayID display) { - return CGError.fromValue(_CGDisplayShowCursor(display)); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - CGDisplayStreamRef Function( - CGDirectDisplayID, - ffi.Size, - ffi.Size, - ffi.Int32, - CFDictionaryRef, - CGDisplayStreamFrameAvailableHandler, - ) ->(symbol: 'CGDisplayStreamCreate') -external CGDisplayStreamRef _CGDisplayStreamCreate( - int display, - int outputWidth, - int outputHeight, - int pixelFormat, - CFDictionaryRef properties, - CGDisplayStreamFrameAvailableHandler handler, -); - -CGDisplayStreamRef CGDisplayStreamCreate( - DartCGDirectDisplayID display, - int outputWidth, - int outputHeight, - int pixelFormat, - CFDictionaryRef properties, - DartCGDisplayStreamFrameAvailableHandler? handler, -) { - final _$$ref = handler?.ref; - return _CGDisplayStreamCreate( - display, - outputWidth, - outputHeight, - pixelFormat, - properties, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - CGDisplayStreamRef Function( - CGDirectDisplayID, - ffi.Size, - ffi.Size, - ffi.Int32, - CFDictionaryRef, - dispatch_queue_t, - CGDisplayStreamFrameAvailableHandler, - ) ->(symbol: 'CGDisplayStreamCreateWithDispatchQueue') -external CGDisplayStreamRef _CGDisplayStreamCreateWithDispatchQueue( - int display, - int outputWidth, - int outputHeight, - int pixelFormat, - CFDictionaryRef properties, - dispatch_queue_t queue, - CGDisplayStreamFrameAvailableHandler handler, -); - -CGDisplayStreamRef CGDisplayStreamCreateWithDispatchQueue( - DartCGDirectDisplayID display, - int outputWidth, - int outputHeight, - int pixelFormat, - CFDictionaryRef properties, - Dartdispatch_queue_t queue, - DartCGDisplayStreamFrameAvailableHandler? handler, -) { - final _$$ref = queue.ref; - final _$$ref$1 = handler?.ref; - return _CGDisplayStreamCreateWithDispatchQueue( - display, - outputWidth, - outputHeight, - pixelFormat, - properties, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external CFRunLoopSourceRef CGDisplayStreamGetRunLoopSource( - CGDisplayStreamRef displayStream, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external int CGDisplayStreamGetTypeID(); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native( - symbol: 'CGDisplayStreamStart', -) -external int _CGDisplayStreamStart(CGDisplayStreamRef displayStream); - -CGError CGDisplayStreamStart(CGDisplayStreamRef displayStream) { - return CGError.fromValue(_CGDisplayStreamStart(displayStream)); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native( - symbol: 'CGDisplayStreamStop', -) -external int _CGDisplayStreamStop(CGDisplayStreamRef displayStream); - -CGError CGDisplayStreamStop(CGDisplayStreamRef displayStream) { - return CGError.fromValue(_CGDisplayStreamStop(displayStream)); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - CGDisplayStreamUpdateRef Function( - CGDisplayStreamUpdateRef, - CGDisplayStreamUpdateRef, - ) ->() -external CGDisplayStreamUpdateRef CGDisplayStreamUpdateCreateMergedUpdate( - CGDisplayStreamUpdateRef firstUpdate, - CGDisplayStreamUpdateRef secondUpdate, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external int CGDisplayStreamUpdateGetDropCount( - CGDisplayStreamUpdateRef updateRef, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - ffi.Void Function( - CGDisplayStreamUpdateRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CGDisplayStreamUpdateGetMovedRectsDelta( - CGDisplayStreamUpdateRef updateRef, - ffi.Pointer dx, - ffi.Pointer dy, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - ffi.Pointer Function( - CGDisplayStreamUpdateRef, - ffi.Int32, - ffi.Pointer, - ) ->(symbol: 'CGDisplayStreamUpdateGetRects') -external ffi.Pointer _CGDisplayStreamUpdateGetRects( - CGDisplayStreamUpdateRef updateRef, - int rectType, - ffi.Pointer rectCount, -); - -ffi.Pointer CGDisplayStreamUpdateGetRects( - CGDisplayStreamUpdateRef updateRef, - CGDisplayStreamUpdateRectType rectType, - ffi.Pointer rectCount, -) { - return _CGDisplayStreamUpdateGetRects(updateRef, rectType.value, rectCount); -} - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external int CGDisplayStreamUpdateGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGDisplaySwitchToMode', -) -external int _CGDisplaySwitchToMode(int display, CFDictionaryRef mode); - -CGError CGDisplaySwitchToMode( - DartCGDirectDisplayID display, - CFDictionaryRef mode, -) { - return CGError.fromValue(_CGDisplaySwitchToMode(display, mode)); -} - -@ffi.Native() -external int CGDisplayUnitNumber(int display); - -@ffi.Native() -external int CGDisplayUsesOpenGLAcceleration(int display); - -@ffi.Native() -external int CGDisplayVendorNumber(int display); - -@ffi.Native() -external CFDictionaryRef CGEXRToneMappingGammaGetDefaultOptions(); - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGEnableEventStateCombining', -) -external int _CGEnableEventStateCombining(int combineState); - -CGError CGEnableEventStateCombining(Dartboolean_t combineState) { - return CGError.fromValue(_CGEnableEventStateCombining(combineState)); -} - -@ffi.Native() -external void CGErrorSetCallback(CGErrorCallback callback); - -@ffi.Native() -external CGEventRef CGEventCreate(CGEventSourceRef source); - -@ffi.Native() -external CGEventRef CGEventCreateCopy(CGEventRef event); - -@ffi.Native() -external CFDataRef CGEventCreateData( - CFAllocatorRef allocator, - CGEventRef event, -); - -@ffi.Native() -external CGEventRef CGEventCreateFromData( - CFAllocatorRef allocator, - CFDataRef data, -); - -@ffi.Native() -external CGEventRef CGEventCreateKeyboardEvent( - CGEventSourceRef source, - int virtualKey, - bool keyDown, -); - -@ffi.Native< - CGEventRef Function(CGEventSourceRef, ffi.Uint32, objc.CGPoint, ffi.Uint32) ->(symbol: 'CGEventCreateMouseEvent') -external CGEventRef _CGEventCreateMouseEvent( - CGEventSourceRef source, - int mouseType, - objc.CGPoint mouseCursorPosition, - int mouseButton, -); - -CGEventRef CGEventCreateMouseEvent( - CGEventSourceRef source, - CGEventType mouseType, - objc.CGPoint mouseCursorPosition, - CGMouseButton mouseButton, -) { - return _CGEventCreateMouseEvent( - source, - mouseType.value, - mouseCursorPosition, - mouseButton.value, - ); -} - -@ffi.Native< - CGEventRef Function(CGEventSourceRef, ffi.Uint32, ffi.Uint32, ffi.Int32) ->(symbol: 'CGEventCreateScrollWheelEvent') -external CGEventRef _CGEventCreateScrollWheelEvent( - CGEventSourceRef source, - int units, - int wheelCount, - int wheel1, -); - -CGEventRef CGEventCreateScrollWheelEvent( - CGEventSourceRef source, - CGScrollEventUnit units, - int wheelCount, - int wheel1, -) { - return _CGEventCreateScrollWheelEvent( - source, - units.value, - wheelCount, - wheel1, - ); -} - -@ffi.Native< - CGEventRef Function( - CGEventSourceRef, - ffi.Uint32, - ffi.Uint32, - ffi.Int32, - ffi.Int32, - ffi.Int32, - ) ->(symbol: 'CGEventCreateScrollWheelEvent2') -external CGEventRef _CGEventCreateScrollWheelEvent2( - CGEventSourceRef source, - int units, - int wheelCount, - int wheel1, - int wheel2, - int wheel3, -); - -CGEventRef CGEventCreateScrollWheelEvent2( - CGEventSourceRef source, - CGScrollEventUnit units, - int wheelCount, - int wheel1, - int wheel2, - int wheel3, -) { - return _CGEventCreateScrollWheelEvent2( - source, - units.value, - wheelCount, - wheel1, - wheel2, - wheel3, - ); -} - -@ffi.Native() -external CGEventSourceRef CGEventCreateSourceFromEvent(CGEventRef event); - -@ffi.Native( - symbol: 'CGEventGetDoubleValueField', -) -external double _CGEventGetDoubleValueField(CGEventRef event, int field); - -double CGEventGetDoubleValueField(CGEventRef event, CGEventField field) { - return _CGEventGetDoubleValueField(event, field.value); -} - -@ffi.Native() -external int CGEventGetFlags(CGEventRef event); - -@ffi.Native( - symbol: 'CGEventGetIntegerValueField', -) -external int _CGEventGetIntegerValueField(CGEventRef event, int field); - -int CGEventGetIntegerValueField(CGEventRef event, CGEventField field) { - return _CGEventGetIntegerValueField(event, field.value); -} - -@ffi.Native() -external objc.CGPoint CGEventGetLocation(CGEventRef event); - -@ffi.Native() -external int CGEventGetTimestamp(CGEventRef event); - -@ffi.Native(symbol: 'CGEventGetType') -external int _CGEventGetType(CGEventRef event); - -CGEventType CGEventGetType(CGEventRef event) { - return CGEventType.fromValue(_CGEventGetType(event)); -} - -@ffi.Native() -external int CGEventGetTypeID(); - -@ffi.Native() -external objc.CGPoint CGEventGetUnflippedLocation(CGEventRef event); - -@ffi.Native< - ffi.Void Function( - CGEventRef, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CGEventKeyboardGetUnicodeString( - CGEventRef event, - int maxStringLength, - ffi.Pointer actualStringLength, - ffi.Pointer unicodeString, -); - -@ffi.Native)>() -external void CGEventKeyboardSetUnicodeString( - CGEventRef event, - int stringLength, - ffi.Pointer unicodeString, -); - -@ffi.Native(symbol: 'CGEventPost') -external void _CGEventPost(int tap, CGEventRef event); - -void CGEventPost(CGEventTapLocation tap, CGEventRef event) { - return _CGEventPost(tap.value, event); -} - -@ffi.Native, CGEventRef)>() -external void CGEventPostToPSN( - ffi.Pointer processSerialNumber, - CGEventRef event, -); - -@ffi.Native() -external void CGEventPostToPid(int pid, CGEventRef event); - -@ffi.Native( - symbol: 'CGEventSetDoubleValueField', -) -external void _CGEventSetDoubleValueField( - CGEventRef event, - int field, - double value, -); - -void CGEventSetDoubleValueField( - CGEventRef event, - CGEventField field, - double value, -) { - return _CGEventSetDoubleValueField(event, field.value, value); -} - -@ffi.Native() -external void CGEventSetFlags(CGEventRef event, int flags); - -@ffi.Native( - symbol: 'CGEventSetIntegerValueField', -) -external void _CGEventSetIntegerValueField( - CGEventRef event, - int field, - int value, -); - -void CGEventSetIntegerValueField( - CGEventRef event, - CGEventField field, - int value, -) { - return _CGEventSetIntegerValueField(event, field.value, value); -} - -@ffi.Native() -external void CGEventSetLocation(CGEventRef event, objc.CGPoint location); - -@ffi.Native() -external void CGEventSetSource(CGEventRef event, CGEventSourceRef source); - -@ffi.Native() -external void CGEventSetTimestamp(CGEventRef event, int timestamp); - -@ffi.Native(symbol: 'CGEventSetType') -external void _CGEventSetType(CGEventRef event, int type); - -void CGEventSetType(CGEventRef event, CGEventType type) { - return _CGEventSetType(event, type.value); -} - -@ffi.Native( - symbol: 'CGEventSourceButtonState', -) -external bool _CGEventSourceButtonState(int stateID, int button); - -bool CGEventSourceButtonState( - CGEventSourceStateID stateID, - CGMouseButton button, -) { - return _CGEventSourceButtonState(stateID.value, button.value); -} - -@ffi.Native( - symbol: 'CGEventSourceCounterForEventType', -) -external int _CGEventSourceCounterForEventType(int stateID, int eventType); - -int CGEventSourceCounterForEventType( - CGEventSourceStateID stateID, - CGEventType eventType, -) { - return _CGEventSourceCounterForEventType(stateID.value, eventType.value); -} - -@ffi.Native(symbol: 'CGEventSourceCreate') -external CGEventSourceRef _CGEventSourceCreate(int stateID); - -CGEventSourceRef CGEventSourceCreate(CGEventSourceStateID stateID) { - return _CGEventSourceCreate(stateID.value); -} - -@ffi.Native(symbol: 'CGEventSourceFlagsState') -external int _CGEventSourceFlagsState(int stateID); - -int CGEventSourceFlagsState(CGEventSourceStateID stateID) { - return _CGEventSourceFlagsState(stateID.value); -} - -@ffi.Native() -external int CGEventSourceGetKeyboardType(CGEventSourceRef source); - -@ffi.Native( - symbol: 'CGEventSourceGetLocalEventsFilterDuringSuppressionState', -) -external int _CGEventSourceGetLocalEventsFilterDuringSuppressionState( - CGEventSourceRef source, - int state, -); - -int CGEventSourceGetLocalEventsFilterDuringSuppressionState( - CGEventSourceRef source, - CGEventSuppressionState state, -) { - return _CGEventSourceGetLocalEventsFilterDuringSuppressionState( - source, - state.value, - ); -} - -@ffi.Native() -external double CGEventSourceGetLocalEventsSuppressionInterval( - CGEventSourceRef source, -); - -@ffi.Native() -external double CGEventSourceGetPixelsPerLine(CGEventSourceRef source); - -@ffi.Native( - symbol: 'CGEventSourceGetSourceStateID', -) -external int _CGEventSourceGetSourceStateID(CGEventSourceRef source); - -CGEventSourceStateID CGEventSourceGetSourceStateID(CGEventSourceRef source) { - return CGEventSourceStateID.fromValue(_CGEventSourceGetSourceStateID(source)); -} - -@ffi.Native() -external int CGEventSourceGetTypeID(); - -@ffi.Native() -external int CGEventSourceGetUserData(CGEventSourceRef source); - -@ffi.Native( - symbol: 'CGEventSourceKeyState', -) -external bool _CGEventSourceKeyState(int stateID, int key); - -bool CGEventSourceKeyState(CGEventSourceStateID stateID, DartCGKeyCode key) { - return _CGEventSourceKeyState(stateID.value, key); -} - -@ffi.Native( - symbol: 'CGEventSourceSecondsSinceLastEventType', -) -external double _CGEventSourceSecondsSinceLastEventType( - int stateID, - int eventType, -); - -DartCFTimeInterval CGEventSourceSecondsSinceLastEventType( - CGEventSourceStateID stateID, - CGEventType eventType, -) { - return _CGEventSourceSecondsSinceLastEventType( - stateID.value, - eventType.value, - ); -} - -@ffi.Native() -external void CGEventSourceSetKeyboardType( - CGEventSourceRef source, - int keyboardType, -); - -@ffi.Native( - symbol: 'CGEventSourceSetLocalEventsFilterDuringSuppressionState', -) -external void _CGEventSourceSetLocalEventsFilterDuringSuppressionState( - CGEventSourceRef source, - int filter, - int state, -); - -void CGEventSourceSetLocalEventsFilterDuringSuppressionState( - CGEventSourceRef source, - int filter, - CGEventSuppressionState state, -) { - return _CGEventSourceSetLocalEventsFilterDuringSuppressionState( - source, - filter, - state.value, - ); -} - -@ffi.Native() -external void CGEventSourceSetLocalEventsSuppressionInterval( - CGEventSourceRef source, - double seconds, -); - -@ffi.Native() -external void CGEventSourceSetPixelsPerLine( - CGEventSourceRef source, - double pixelsPerLine, -); - -@ffi.Native() -external void CGEventSourceSetUserData(CGEventSourceRef source, int userData); - -@ffi.Native< - CFMachPortRef Function( - ffi.Uint32, - ffi.Uint32, - ffi.Uint32, - CGEventMask, - CGEventTapCallBack, - ffi.Pointer, - ) ->(symbol: 'CGEventTapCreate') -external CFMachPortRef _CGEventTapCreate( - int tap, - int place, - int options, - int eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -); - -CFMachPortRef CGEventTapCreate( - CGEventTapLocation tap, - CGEventTapPlacement place, - CGEventTapOptions options, - DartCGEventMask eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -) { - return _CGEventTapCreate( - tap.value, - place.value, - options.value, - eventsOfInterest, - callback, - userInfo, - ); -} - -@ffi.Native< - CFMachPortRef Function( - ffi.Pointer, - ffi.Uint32, - ffi.Uint32, - CGEventMask, - CGEventTapCallBack, - ffi.Pointer, - ) ->(symbol: 'CGEventTapCreateForPSN') -external CFMachPortRef _CGEventTapCreateForPSN( - ffi.Pointer processSerialNumber, - int place, - int options, - int eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -); - -CFMachPortRef CGEventTapCreateForPSN( - ffi.Pointer processSerialNumber, - CGEventTapPlacement place, - CGEventTapOptions options, - DartCGEventMask eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -) { - return _CGEventTapCreateForPSN( - processSerialNumber, - place.value, - options.value, - eventsOfInterest, - callback, - userInfo, - ); -} - -@ffi.Native< - CFMachPortRef Function( - pid_t, - ffi.Uint32, - ffi.Uint32, - CGEventMask, - CGEventTapCallBack, - ffi.Pointer, - ) ->(symbol: 'CGEventTapCreateForPid') -external CFMachPortRef _CGEventTapCreateForPid( - int pid, - int place, - int options, - int eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -); - -CFMachPortRef CGEventTapCreateForPid( - Dart__int32_t pid, - CGEventTapPlacement place, - CGEventTapOptions options, - DartCGEventMask eventsOfInterest, - CGEventTapCallBack callback, - ffi.Pointer userInfo, -) { - return _CGEventTapCreateForPid( - pid, - place.value, - options.value, - eventsOfInterest, - callback, - userInfo, - ); -} - -@ffi.Native() -external void CGEventTapEnable(CFMachPortRef tap, bool enable); - -@ffi.Native() -external bool CGEventTapIsEnabled(CFMachPortRef tap); - -@ffi.Native() -external void CGEventTapPostEvent(CGEventTapProxy proxy, CGEventRef event); - -@ffi.Native( - symbol: 'CGFontCanCreatePostScriptSubset', -) -external bool _CGFontCanCreatePostScriptSubset(CGFontRef font, int format); - -bool CGFontCanCreatePostScriptSubset( - CGFontRef font, - CGFontPostScriptFormat format, -) { - return _CGFontCanCreatePostScriptSubset(font, format.value); -} - -@ffi.Native() -external CFStringRef CGFontCopyFullName(CGFontRef font); - -@ffi.Native() -external CFStringRef CGFontCopyGlyphNameForGlyph(CGFontRef font, int glyph); - -@ffi.Native() -external CFStringRef CGFontCopyPostScriptName(CGFontRef font); - -@ffi.Native() -external CFDataRef CGFontCopyTableForTag(CGFontRef font, int tag); - -@ffi.Native() -external CFArrayRef CGFontCopyTableTags(CGFontRef font); - -@ffi.Native() -external CFArrayRef CGFontCopyVariationAxes(CGFontRef font); - -@ffi.Native() -external CFDictionaryRef CGFontCopyVariations(CGFontRef font); - -@ffi.Native() -external CGFontRef CGFontCreateCopyWithVariations( - CGFontRef font, - CFDictionaryRef variations, -); - -@ffi.Native)>() -external CFDataRef CGFontCreatePostScriptEncoding( - CGFontRef font, - ffi.Pointer encoding, -); - -@ffi.Native< - CFDataRef Function( - CGFontRef, - CFStringRef, - ffi.Int32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'CGFontCreatePostScriptSubset') -external CFDataRef _CGFontCreatePostScriptSubset( - CGFontRef font, - CFStringRef subsetName, - int format, - ffi.Pointer glyphs, - int count, - ffi.Pointer encoding, -); - -CFDataRef CGFontCreatePostScriptSubset( - CGFontRef font, - CFStringRef subsetName, - CGFontPostScriptFormat format, - ffi.Pointer glyphs, - int count, - ffi.Pointer encoding, -) { - return _CGFontCreatePostScriptSubset( - font, - subsetName, - format.value, - glyphs, - count, - encoding, - ); -} - -@ffi.Native() -external CGFontRef CGFontCreateWithDataProvider(CGDataProviderRef provider); - -@ffi.Native() -external CGFontRef CGFontCreateWithFontName(CFStringRef name); - -@Deprecated('No longer supported') -@ffi.Native)>() -external CGFontRef CGFontCreateWithPlatformFont( - ffi.Pointer platformFontReference, -); - -@ffi.Native() -external int CGFontGetAscent(CGFontRef font); - -@ffi.Native() -external int CGFontGetCapHeight(CGFontRef font); - -@ffi.Native() -external int CGFontGetDescent(CGFontRef font); - -@ffi.Native() -external objc.CGRect CGFontGetFontBBox(CGFontRef font); - -@ffi.Native< - ffi.Bool Function( - CGFontRef, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external bool CGFontGetGlyphAdvances( - CGFontRef font, - ffi.Pointer glyphs, - int count, - ffi.Pointer advances, -); - -@ffi.Native< - ffi.Bool Function( - CGFontRef, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external bool CGFontGetGlyphBBoxes( - CGFontRef font, - ffi.Pointer glyphs, - int count, - ffi.Pointer bboxes, -); - -@ffi.Native() -external int CGFontGetGlyphWithGlyphName(CGFontRef font, CFStringRef name); - -@ffi.Native() -external double CGFontGetItalicAngle(CGFontRef font); - -@ffi.Native() -external int CGFontGetLeading(CGFontRef font); - -@ffi.Native() -external int CGFontGetNumberOfGlyphs(CGFontRef font); - -@ffi.Native() -external double CGFontGetStemV(CGFontRef font); - -@ffi.Native() -external int CGFontGetTypeID(); - -@ffi.Native() -external int CGFontGetUnitsPerEm(CGFontRef font); - -@ffi.Native() -external int CGFontGetXHeight(CGFontRef font); - -@ffi.Native() -external void CGFontRelease(CGFontRef font); - -@ffi.Native() -external CGFontRef CGFontRetain(CGFontRef font); - -@ffi.Native< - CGFunctionRef Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGFunctionRef CGFunctionCreate( - ffi.Pointer info, - int domainDimension, - ffi.Pointer domain, - int rangeDimension, - ffi.Pointer range, - ffi.Pointer callbacks, -); - -@ffi.Native() -external int CGFunctionGetTypeID(); - -@ffi.Native() -external void CGFunctionRelease(CGFunctionRef function); - -@ffi.Native() -external CGFunctionRef CGFunctionRetain(CGFunctionRef function); - -@ffi.Native< - ffi.Int32 Function( - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetActiveDisplayList') -external int _CGGetActiveDisplayList( - int maxDisplays, - ffi.Pointer activeDisplays, - ffi.Pointer displayCount, -); - -CGError CGGetActiveDisplayList( - int maxDisplays, - ffi.Pointer activeDisplays, - ffi.Pointer displayCount, -) { - return CGError.fromValue( - _CGGetActiveDisplayList(maxDisplays, activeDisplays, displayCount), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGDirectDisplayID, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetDisplayTransferByFormula') -external int _CGGetDisplayTransferByFormula( - int display, - ffi.Pointer redMin, - ffi.Pointer redMax, - ffi.Pointer redGamma, - ffi.Pointer greenMin, - ffi.Pointer greenMax, - ffi.Pointer greenGamma, - ffi.Pointer blueMin, - ffi.Pointer blueMax, - ffi.Pointer blueGamma, -); - -CGError CGGetDisplayTransferByFormula( - DartCGDirectDisplayID display, - ffi.Pointer redMin, - ffi.Pointer redMax, - ffi.Pointer redGamma, - ffi.Pointer greenMin, - ffi.Pointer greenMax, - ffi.Pointer greenGamma, - ffi.Pointer blueMin, - ffi.Pointer blueMax, - ffi.Pointer blueGamma, -) { - return CGError.fromValue( - _CGGetDisplayTransferByFormula( - display, - redMin, - redMax, - redGamma, - greenMin, - greenMax, - greenGamma, - blueMin, - blueMax, - blueGamma, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGDirectDisplayID, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetDisplayTransferByTable') -external int _CGGetDisplayTransferByTable( - int display, - int capacity, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, - ffi.Pointer sampleCount, -); - -CGError CGGetDisplayTransferByTable( - DartCGDirectDisplayID display, - int capacity, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, - ffi.Pointer sampleCount, -) { - return CGError.fromValue( - _CGGetDisplayTransferByTable( - display, - capacity, - redTable, - greenTable, - blueTable, - sampleCount, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGOpenGLDisplayMask, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetDisplaysWithOpenGLDisplayMask') -external int _CGGetDisplaysWithOpenGLDisplayMask( - int mask, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -); - -CGError CGGetDisplaysWithOpenGLDisplayMask( - DartCGOpenGLDisplayMask mask, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -) { - return CGError.fromValue( - _CGGetDisplaysWithOpenGLDisplayMask( - mask, - maxDisplays, - displays, - matchingDisplayCount, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function( - objc.CGPoint, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetDisplaysWithPoint') -external int _CGGetDisplaysWithPoint( - objc.CGPoint point, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -); - -CGError CGGetDisplaysWithPoint( - objc.CGPoint point, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -) { - return CGError.fromValue( - _CGGetDisplaysWithPoint(point, maxDisplays, displays, matchingDisplayCount), - ); -} - -@ffi.Native< - ffi.Int32 Function( - objc.CGRect, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetDisplaysWithRect') -external int _CGGetDisplaysWithRect( - objc.CGRect rect, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -); - -CGError CGGetDisplaysWithRect( - objc.CGRect rect, - int maxDisplays, - ffi.Pointer displays, - ffi.Pointer matchingDisplayCount, -) { - return CGError.fromValue( - _CGGetDisplaysWithRect(rect, maxDisplays, displays, matchingDisplayCount), - ); -} - -@ffi.Native< - ffi.Int32 Function( - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetEventTapList') -external int _CGGetEventTapList( - int maxNumberOfTaps, - ffi.Pointer tapList, - ffi.Pointer eventTapCount, -); - -CGError CGGetEventTapList( - int maxNumberOfTaps, - ffi.Pointer tapList, - ffi.Pointer eventTapCount, -) { - return CGError.fromValue( - _CGGetEventTapList(maxNumberOfTaps, tapList, eventTapCount), - ); -} - -@ffi.Native, ffi.Pointer)>() -external void CGGetLastMouseDelta( - ffi.Pointer deltaX, - ffi.Pointer deltaY, -); - -@ffi.Native< - ffi.Int32 Function( - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGGetOnlineDisplayList') -external int _CGGetOnlineDisplayList( - int maxDisplays, - ffi.Pointer onlineDisplays, - ffi.Pointer displayCount, -); - -CGError CGGetOnlineDisplayList( - int maxDisplays, - ffi.Pointer onlineDisplays, - ffi.Pointer displayCount, -) { - return CGError.fromValue( - _CGGetOnlineDisplayList(maxDisplays, onlineDisplays, displayCount), - ); -} - -@ffi.Native< - CGGradientRef Function( - CGColorSpaceRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external CGGradientRef CGGradientCreateWithColorComponents( - CGColorSpaceRef space, - ffi.Pointer components, - ffi.Pointer locations, - int count, -); - -@ffi.Native< - CGGradientRef Function(CGColorSpaceRef, CFArrayRef, ffi.Pointer) ->() -external CGGradientRef CGGradientCreateWithColors( - CGColorSpaceRef space, - CFArrayRef colors, - ffi.Pointer locations, -); - -@ffi.Native< - CGGradientRef Function( - ffi.Float, - CGColorSpaceRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external CGGradientRef CGGradientCreateWithContentHeadroom( - double headroom, - CGColorSpaceRef space, - ffi.Pointer components, - ffi.Pointer locations, - int count, -); - -@ffi.Native() -external double CGGradientGetContentHeadroom(CGGradientRef gradient); - -@ffi.Native() -external int CGGradientGetTypeID(); - -@ffi.Native() -external void CGGradientRelease(CGGradientRef gradient); - -@ffi.Native() -external CGGradientRef CGGradientRetain(CGGradientRef gradient); - -@ffi.Native() -external double CGImageCalculateContentAverageLightLevel(CGImageRef image); - -@ffi.Native() -external double CGImageCalculateContentHeadroom(CGImageRef image); - -@ffi.Native() -external bool CGImageContainsImageSpecificToneMappingMetadata(CGImageRef image); - -@ffi.Native< - CGImageRef Function( - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - CGColorSpaceRef, - ffi.Uint32, - CGDataProviderRef, - ffi.Pointer, - ffi.Bool, - ffi.Int32, - ) ->(symbol: 'CGImageCreate') -external CGImageRef _CGImageCreate( - int width, - int height, - int bitsPerComponent, - int bitsPerPixel, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, - CGDataProviderRef provider, - ffi.Pointer decode, - bool shouldInterpolate, - int intent, -); - -CGImageRef CGImageCreate( - int width, - int height, - int bitsPerComponent, - int bitsPerPixel, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, - CGDataProviderRef provider, - ffi.Pointer decode, - bool shouldInterpolate, - CGColorRenderingIntent intent, -) { - return _CGImageCreate( - width, - height, - bitsPerComponent, - bitsPerPixel, - bytesPerRow, - space, - bitmapInfo, - provider, - decode, - shouldInterpolate, - intent.value, - ); -} - -@ffi.Native() -external CGImageRef CGImageCreateCopy(CGImageRef image); - -@ffi.Native() -external CGImageRef CGImageCreateCopyWithCalculatedHDRStats(CGImageRef image); - -@ffi.Native() -external CGImageRef CGImageCreateCopyWithColorSpace( - CGImageRef image, - CGColorSpaceRef space, -); - -@ffi.Native() -external CGImageRef CGImageCreateCopyWithContentAverageLightLevel( - CGImageRef image, - double avll, -); - -@ffi.Native() -external CGImageRef CGImageCreateCopyWithContentHeadroom( - double headroom, - CGImageRef image, -); - -@ffi.Native< - CGImageRef Function( - ffi.Float, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - CGColorSpaceRef, - ffi.Uint32, - CGDataProviderRef, - ffi.Pointer, - ffi.Bool, - ffi.Int32, - ) ->(symbol: 'CGImageCreateWithContentHeadroom') -external CGImageRef _CGImageCreateWithContentHeadroom( - double headroom, - int width, - int height, - int bitsPerComponent, - int bitsPerPixel, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, - CGDataProviderRef provider, - ffi.Pointer decode, - bool shouldInterpolate, - int intent, -); - -CGImageRef CGImageCreateWithContentHeadroom( - double headroom, - int width, - int height, - int bitsPerComponent, - int bitsPerPixel, - int bytesPerRow, - CGColorSpaceRef space, - int bitmapInfo, - CGDataProviderRef provider, - ffi.Pointer decode, - bool shouldInterpolate, - CGColorRenderingIntent intent, -) { - return _CGImageCreateWithContentHeadroom( - headroom, - width, - height, - bitsPerComponent, - bitsPerPixel, - bytesPerRow, - space, - bitmapInfo, - provider, - decode, - shouldInterpolate, - intent.value, - ); -} - -@ffi.Native() -external CGImageRef CGImageCreateWithImageInRect( - CGImageRef image, - objc.CGRect rect, -); - -@ffi.Native< - CGImageRef Function( - CGDataProviderRef, - ffi.Pointer, - ffi.Bool, - ffi.Int32, - ) ->(symbol: 'CGImageCreateWithJPEGDataProvider') -external CGImageRef _CGImageCreateWithJPEGDataProvider( - CGDataProviderRef source, - ffi.Pointer decode, - bool shouldInterpolate, - int intent, -); - -CGImageRef CGImageCreateWithJPEGDataProvider( - CGDataProviderRef source, - ffi.Pointer decode, - bool shouldInterpolate, - CGColorRenderingIntent intent, -) { - return _CGImageCreateWithJPEGDataProvider( - source, - decode, - shouldInterpolate, - intent.value, - ); -} - -@ffi.Native() -external CGImageRef CGImageCreateWithMask(CGImageRef image, CGImageRef mask); - -@ffi.Native)>() -external CGImageRef CGImageCreateWithMaskingColors( - CGImageRef image, - ffi.Pointer components, -); - -@ffi.Native< - CGImageRef Function( - CGDataProviderRef, - ffi.Pointer, - ffi.Bool, - ffi.Int32, - ) ->(symbol: 'CGImageCreateWithPNGDataProvider') -external CGImageRef _CGImageCreateWithPNGDataProvider( - CGDataProviderRef source, - ffi.Pointer decode, - bool shouldInterpolate, - int intent, -); - -CGImageRef CGImageCreateWithPNGDataProvider( - CGDataProviderRef source, - ffi.Pointer decode, - bool shouldInterpolate, - CGColorRenderingIntent intent, -) { - return _CGImageCreateWithPNGDataProvider( - source, - decode, - shouldInterpolate, - intent.value, - ); -} - -@ffi.Native< - ffi.Void Function(CGImageDestinationRef, CFStringRef, CFDictionaryRef) ->() -external void CGImageDestinationAddAuxiliaryDataInfo( - CGImageDestinationRef idst, - CFStringRef auxiliaryImageDataType, - CFDictionaryRef auxiliaryDataInfoDictionary, -); - -@ffi.Native< - ffi.Void Function(CGImageDestinationRef, CGImageRef, CFDictionaryRef) ->() -external void CGImageDestinationAddImage( - CGImageDestinationRef idst, - CGImageRef image, - CFDictionaryRef properties, -); - -@ffi.Native< - ffi.Void Function( - CGImageDestinationRef, - CGImageRef, - CGImageMetadataRef, - CFDictionaryRef, - ) ->() -external void CGImageDestinationAddImageAndMetadata( - CGImageDestinationRef idst, - CGImageRef image, - CGImageMetadataRef metadata, - CFDictionaryRef options, -); - -@ffi.Native< - ffi.Void Function( - CGImageDestinationRef, - CGImageSourceRef, - ffi.Size, - CFDictionaryRef, - ) ->() -external void CGImageDestinationAddImageFromSource( - CGImageDestinationRef idst, - CGImageSourceRef isrc, - int index$1, - CFDictionaryRef properties, -); - -@ffi.Native< - ffi.Bool Function( - CGImageDestinationRef, - CGImageSourceRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external bool CGImageDestinationCopyImageSource( - CGImageDestinationRef idst, - CGImageSourceRef isrc, - CFDictionaryRef options, - ffi.Pointer err, -); - -@ffi.Native() -external CFArrayRef CGImageDestinationCopyTypeIdentifiers(); - -@ffi.Native< - CGImageDestinationRef Function( - CFMutableDataRef, - CFStringRef, - ffi.Size, - CFDictionaryRef, - ) ->() -external CGImageDestinationRef CGImageDestinationCreateWithData( - CFMutableDataRef data, - CFStringRef type, - int count, - CFDictionaryRef options, -); - -@ffi.Native< - CGImageDestinationRef Function( - CGDataConsumerRef, - CFStringRef, - ffi.Size, - CFDictionaryRef, - ) ->() -external CGImageDestinationRef CGImageDestinationCreateWithDataConsumer( - CGDataConsumerRef consumer, - CFStringRef type, - int count, - CFDictionaryRef options, -); - -@ffi.Native< - CGImageDestinationRef Function( - CFURLRef, - CFStringRef, - ffi.Size, - CFDictionaryRef, - ) ->() -external CGImageDestinationRef CGImageDestinationCreateWithURL( - CFURLRef url, - CFStringRef type, - int count, - CFDictionaryRef options, -); - -@ffi.Native() -external bool CGImageDestinationFinalize(CGImageDestinationRef idst); - -@ffi.Native() -external int CGImageDestinationGetTypeID(); - -@ffi.Native() -external void CGImageDestinationSetProperties( - CGImageDestinationRef idst, - CFDictionaryRef properties, -); - -@ffi.Native(symbol: 'CGImageGetAlphaInfo') -external int _CGImageGetAlphaInfo(CGImageRef image); - -CGImageAlphaInfo CGImageGetAlphaInfo(CGImageRef image) { - return CGImageAlphaInfo.fromValue(_CGImageGetAlphaInfo(image)); -} - -@ffi.Native() -external int CGImageGetBitmapInfo(CGImageRef image); - -@ffi.Native() -external int CGImageGetBitsPerComponent(CGImageRef image); - -@ffi.Native() -external int CGImageGetBitsPerPixel(CGImageRef image); - -@ffi.Native(symbol: 'CGImageGetByteOrderInfo') -external int _CGImageGetByteOrderInfo(CGImageRef image); - -CGImageByteOrderInfo CGImageGetByteOrderInfo(CGImageRef image) { - return CGImageByteOrderInfo.fromValue(_CGImageGetByteOrderInfo(image)); -} - -@ffi.Native() -external int CGImageGetBytesPerRow(CGImageRef image); - -@ffi.Native() -external CGColorSpaceRef CGImageGetColorSpace(CGImageRef image); - -@ffi.Native() -external double CGImageGetContentAverageLightLevel(CGImageRef image); - -@ffi.Native() -external double CGImageGetContentHeadroom(CGImageRef image); - -@ffi.Native() -external CGDataProviderRef CGImageGetDataProvider(CGImageRef image); - -@ffi.Native Function(CGImageRef)>() -external ffi.Pointer CGImageGetDecode(CGImageRef image); - -@ffi.Native() -external int CGImageGetHeight(CGImageRef image); - -@ffi.Native( - symbol: 'CGImageGetPixelFormatInfo', -) -external int _CGImageGetPixelFormatInfo(CGImageRef image); - -CGImagePixelFormatInfo CGImageGetPixelFormatInfo(CGImageRef image) { - return CGImagePixelFormatInfo.fromValue(_CGImageGetPixelFormatInfo(image)); -} - -@ffi.Native(symbol: 'CGImageGetRenderingIntent') -external int _CGImageGetRenderingIntent(CGImageRef image); - -CGColorRenderingIntent CGImageGetRenderingIntent(CGImageRef image) { - return CGColorRenderingIntent.fromValue(_CGImageGetRenderingIntent(image)); -} - -@ffi.Native() -external bool CGImageGetShouldInterpolate(CGImageRef image); - -@ffi.Native() -external int CGImageGetTypeID(); - -@ffi.Native() -external CFStringRef CGImageGetUTType(CGImageRef image); - -@ffi.Native() -external int CGImageGetWidth(CGImageRef image); - -@ffi.Native() -external bool CGImageIsMask(CGImageRef image); - -@ffi.Native< - CGImageRef Function( - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Size, - CGDataProviderRef, - ffi.Pointer, - ffi.Bool, - ) ->() -external CGImageRef CGImageMaskCreate( - int width, - int height, - int bitsPerComponent, - int bitsPerPixel, - int bytesPerRow, - CGDataProviderRef provider, - ffi.Pointer decode, - bool shouldInterpolate, -); - -@ffi.Native< - CFStringRef Function(CGImageMetadataRef, CGImageMetadataTagRef, CFStringRef) ->() -external CFStringRef CGImageMetadataCopyStringValueWithPath( - CGImageMetadataRef metadata, - CGImageMetadataTagRef parent, - CFStringRef path, -); - -@ffi.Native< - CGImageMetadataTagRef Function(CGImageMetadataRef, CFStringRef, CFStringRef) ->() -external CGImageMetadataTagRef CGImageMetadataCopyTagMatchingImageProperty( - CGImageMetadataRef metadata, - CFStringRef dictionaryName, - CFStringRef propertyName, -); - -@ffi.Native< - CGImageMetadataTagRef Function( - CGImageMetadataRef, - CGImageMetadataTagRef, - CFStringRef, - ) ->() -external CGImageMetadataTagRef CGImageMetadataCopyTagWithPath( - CGImageMetadataRef metadata, - CGImageMetadataTagRef parent, - CFStringRef path, -); - -@ffi.Native() -external CFArrayRef CGImageMetadataCopyTags(CGImageMetadataRef metadata); - -@ffi.Native() -external CGImageMetadataRef CGImageMetadataCreateFromXMPData(CFDataRef data); - -@ffi.Native() -external CGMutableImageMetadataRef CGImageMetadataCreateMutable(); - -@ffi.Native() -external CGMutableImageMetadataRef CGImageMetadataCreateMutableCopy( - CGImageMetadataRef metadata, -); - -@ffi.Native() -external CFDataRef CGImageMetadataCreateXMPData( - CGImageMetadataRef metadata, - CFDictionaryRef options, -); - -@ffi.Native< - ffi.Void Function( - CGImageMetadataRef, - CFStringRef, - CFDictionaryRef, - CGImageMetadataTagBlock, - ) ->(symbol: 'CGImageMetadataEnumerateTagsUsingBlock') -external void _CGImageMetadataEnumerateTagsUsingBlock( - CGImageMetadataRef metadata, - CFStringRef rootPath, - CFDictionaryRef options, - CGImageMetadataTagBlock block, -); - -void CGImageMetadataEnumerateTagsUsingBlock( - CGImageMetadataRef metadata, - CFStringRef rootPath, - CFDictionaryRef options, - DartCGImageMetadataTagBlock block, -) { - final _$$ref = block.ref; - return _CGImageMetadataEnumerateTagsUsingBlock( - metadata, - rootPath, - options, - _$$ref.pointer, - ); -} - -@ffi.Native() -external int CGImageMetadataGetTypeID(); - -@ffi.Native< - ffi.Bool Function( - CGMutableImageMetadataRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external bool CGImageMetadataRegisterNamespaceForPrefix( - CGMutableImageMetadataRef metadata, - CFStringRef xmlns, - CFStringRef prefix, - ffi.Pointer err, -); - -@ffi.Native< - ffi.Bool Function( - CGMutableImageMetadataRef, - CGImageMetadataTagRef, - CFStringRef, - ) ->() -external bool CGImageMetadataRemoveTagWithPath( - CGMutableImageMetadataRef metadata, - CGImageMetadataTagRef parent, - CFStringRef path, -); - -@ffi.Native< - ffi.Bool Function( - CGMutableImageMetadataRef, - CGImageMetadataTagRef, - CFStringRef, - CGImageMetadataTagRef, - ) ->() -external bool CGImageMetadataSetTagWithPath( - CGMutableImageMetadataRef metadata, - CGImageMetadataTagRef parent, - CFStringRef path, - CGImageMetadataTagRef tag, -); - -@ffi.Native< - ffi.Bool Function( - CGMutableImageMetadataRef, - CFStringRef, - CFStringRef, - CFTypeRef, - ) ->() -external bool CGImageMetadataSetValueMatchingImageProperty( - CGMutableImageMetadataRef metadata, - CFStringRef dictionaryName, - CFStringRef propertyName, - CFTypeRef value, -); - -@ffi.Native< - ffi.Bool Function( - CGMutableImageMetadataRef, - CGImageMetadataTagRef, - CFStringRef, - CFTypeRef, - ) ->() -external bool CGImageMetadataSetValueWithPath( - CGMutableImageMetadataRef metadata, - CGImageMetadataTagRef parent, - CFStringRef path, - CFTypeRef value, -); - -@ffi.Native() -external CFStringRef CGImageMetadataTagCopyName(CGImageMetadataTagRef tag); - -@ffi.Native() -external CFStringRef CGImageMetadataTagCopyNamespace(CGImageMetadataTagRef tag); - -@ffi.Native() -external CFStringRef CGImageMetadataTagCopyPrefix(CGImageMetadataTagRef tag); - -@ffi.Native() -external CFArrayRef CGImageMetadataTagCopyQualifiers(CGImageMetadataTagRef tag); - -@ffi.Native() -external CFTypeRef CGImageMetadataTagCopyValue(CGImageMetadataTagRef tag); - -@ffi.Native< - CGImageMetadataTagRef Function( - CFStringRef, - CFStringRef, - CFStringRef, - ffi.Int32, - CFTypeRef, - ) ->(symbol: 'CGImageMetadataTagCreate') -external CGImageMetadataTagRef _CGImageMetadataTagCreate( - CFStringRef xmlns, - CFStringRef prefix, - CFStringRef name, - int type, - CFTypeRef value, -); - -CGImageMetadataTagRef CGImageMetadataTagCreate( - CFStringRef xmlns, - CFStringRef prefix, - CFStringRef name, - CGImageMetadataType type, - CFTypeRef value, -) { - return _CGImageMetadataTagCreate(xmlns, prefix, name, type.value, value); -} - -@ffi.Native( - symbol: 'CGImageMetadataTagGetType', -) -external int _CGImageMetadataTagGetType(CGImageMetadataTagRef tag); - -CGImageMetadataType CGImageMetadataTagGetType(CGImageMetadataTagRef tag) { - return CGImageMetadataType.fromValue(_CGImageMetadataTagGetType(tag)); -} - -@ffi.Native() -external int CGImageMetadataTagGetTypeID(); - -@ffi.Native() -external void CGImageRelease(CGImageRef image); - -@ffi.Native() -external CGImageRef CGImageRetain(CGImageRef image); - -@ffi.Native() -external bool CGImageShouldToneMap(CGImageRef image); - -@ffi.Native() -external CFDictionaryRef CGImageSourceCopyAuxiliaryDataInfoAtIndex( - CGImageSourceRef isrc, - int index$1, - CFStringRef auxiliaryImageDataType, -); - -@ffi.Native< - CGImageMetadataRef Function(CGImageSourceRef, ffi.Size, CFDictionaryRef) ->() -external CGImageMetadataRef CGImageSourceCopyMetadataAtIndex( - CGImageSourceRef isrc, - int index$1, - CFDictionaryRef options, -); - -@ffi.Native() -external CFDictionaryRef CGImageSourceCopyProperties( - CGImageSourceRef isrc, - CFDictionaryRef options, -); - -@ffi.Native< - CFDictionaryRef Function(CGImageSourceRef, ffi.Size, CFDictionaryRef) ->() -external CFDictionaryRef CGImageSourceCopyPropertiesAtIndex( - CGImageSourceRef isrc, - int index$1, - CFDictionaryRef options, -); - -@ffi.Native() -external CFArrayRef CGImageSourceCopyTypeIdentifiers(); - -@ffi.Native() -external CGImageRef CGImageSourceCreateImageAtIndex( - CGImageSourceRef isrc, - int index$1, - CFDictionaryRef options, -); - -@ffi.Native() -external CGImageSourceRef CGImageSourceCreateIncremental( - CFDictionaryRef options, -); - -@ffi.Native() -external CGImageRef CGImageSourceCreateThumbnailAtIndex( - CGImageSourceRef isrc, - int index$1, - CFDictionaryRef options, -); - -@ffi.Native() -external CGImageSourceRef CGImageSourceCreateWithData( - CFDataRef data, - CFDictionaryRef options, -); - -@ffi.Native() -external CGImageSourceRef CGImageSourceCreateWithDataProvider( - CGDataProviderRef provider, - CFDictionaryRef options, -); - -@ffi.Native() -external CGImageSourceRef CGImageSourceCreateWithURL( - CFURLRef url, - CFDictionaryRef options, -); - -@ffi.Native() -external int CGImageSourceGetCount(CGImageSourceRef isrc); - -@ffi.Native() -external int CGImageSourceGetPrimaryImageIndex(CGImageSourceRef isrc); - -@ffi.Native( - symbol: 'CGImageSourceGetStatus', -) -external int _CGImageSourceGetStatus(CGImageSourceRef isrc); - -CGImageSourceStatus CGImageSourceGetStatus(CGImageSourceRef isrc) { - return CGImageSourceStatus.fromValue(_CGImageSourceGetStatus(isrc)); -} - -@ffi.Native( - symbol: 'CGImageSourceGetStatusAtIndex', -) -external int _CGImageSourceGetStatusAtIndex(CGImageSourceRef isrc, int index$1); - -CGImageSourceStatus CGImageSourceGetStatusAtIndex( - CGImageSourceRef isrc, - int index$1, -) { - return CGImageSourceStatus.fromValue( - _CGImageSourceGetStatusAtIndex(isrc, index$1), - ); -} - -@ffi.Native() -external CFStringRef CGImageSourceGetType(CGImageSourceRef isrc); - -@ffi.Native() -external int CGImageSourceGetTypeID(); - -@ffi.Native() -external void CGImageSourceRemoveCacheAtIndex( - CGImageSourceRef isrc, - int index$1, -); - -@ffi.Native() -external int CGImageSourceSetAllowableTypes(CFArrayRef allowableTypes); - -@ffi.Native() -external void CGImageSourceUpdateData( - CGImageSourceRef isrc, - CFDataRef data, - bool final$, -); - -@ffi.Native() -external void CGImageSourceUpdateDataProvider( - CGImageSourceRef isrc, - CGDataProviderRef provider, - bool final$, -); - -@Deprecated('No longer supported') -@ffi.Native(symbol: 'CGInhibitLocalEvents') -external int _CGInhibitLocalEvents(int inhibit); - -CGError CGInhibitLocalEvents(Dartboolean_t inhibit) { - return CGError.fromValue(_CGInhibitLocalEvents(inhibit)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGLChoosePixelFormat') -external int _CGLChoosePixelFormat( - ffi.Pointer attribs, - ffi.Pointer pix, - ffi.Pointer npix, -); - -_CGLError CGLChoosePixelFormat( - ffi.Pointer attribs, - ffi.Pointer pix, - ffi.Pointer npix, -) { - return _CGLError.fromValue(_CGLChoosePixelFormat(attribs, pix, npix)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native(symbol: 'CGLClearDrawable') -external int _CGLClearDrawable(CGLContextObj ctx); - -_CGLError CGLClearDrawable(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLClearDrawable(ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLCopyContext', -) -external int _CGLCopyContext(CGLContextObj src, CGLContextObj dst, int mask); - -_CGLError CGLCopyContext( - CGLContextObj src, - CGLContextObj dst, - DartGLbitfield mask, -) { - return _CGLError.fromValue(_CGLCopyContext(src, dst, mask)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLPixelFormatObj, - CGLContextObj, - ffi.Pointer, - ) ->(symbol: 'CGLCreateContext') -external int _CGLCreateContext( - CGLPixelFormatObj pix, - CGLContextObj share, - ffi.Pointer ctx, -); - -_CGLError CGLCreateContext( - CGLPixelFormatObj pix, - CGLContextObj share, - ffi.Pointer ctx, -) { - return _CGLError.fromValue(_CGLCreateContext(pix, share, ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - GLsizei, - GLsizei, - GLenum, - GLenum, - GLint, - ffi.Pointer, - ) ->(symbol: 'CGLCreatePBuffer') -external int _CGLCreatePBuffer( - int width, - int height, - int target, - int internalFormat, - int max_level, - ffi.Pointer pbuffer, -); - -_CGLError CGLCreatePBuffer( - DartGLsizei width, - DartGLsizei height, - DartGLenum target, - DartGLenum internalFormat, - DartGLint max_level, - ffi.Pointer pbuffer, -) { - return _CGLError.fromValue( - _CGLCreatePBuffer( - width, - height, - target, - internalFormat, - max_level, - pbuffer, - ), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLPBufferObj, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGLDescribePBuffer') -external int _CGLDescribePBuffer( - CGLPBufferObj obj, - ffi.Pointer width, - ffi.Pointer height, - ffi.Pointer target, - ffi.Pointer internalFormat, - ffi.Pointer mipmap, -); - -_CGLError CGLDescribePBuffer( - CGLPBufferObj obj, - ffi.Pointer width, - ffi.Pointer height, - ffi.Pointer target, - ffi.Pointer internalFormat, - ffi.Pointer mipmap, -) { - return _CGLError.fromValue( - _CGLDescribePBuffer(obj, width, height, target, internalFormat, mipmap), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLPixelFormatObj, - GLint, - ffi.UnsignedInt, - ffi.Pointer, - ) ->(symbol: 'CGLDescribePixelFormat') -external int _CGLDescribePixelFormat( - CGLPixelFormatObj pix, - int pix_num, - int attrib, - ffi.Pointer value, -); - -_CGLError CGLDescribePixelFormat( - CGLPixelFormatObj pix, - DartGLint pix_num, - _CGLPixelFormatAttribute attrib, - ffi.Pointer value, -) { - return _CGLError.fromValue( - _CGLDescribePixelFormat(pix, pix_num, attrib.value, value), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLRendererInfoObj, - GLint, - ffi.UnsignedInt, - ffi.Pointer, - ) ->(symbol: 'CGLDescribeRenderer') -external int _CGLDescribeRenderer( - CGLRendererInfoObj rend, - int rend_num, - int prop, - ffi.Pointer value, -); - -_CGLError CGLDescribeRenderer( - CGLRendererInfoObj rend, - DartGLint rend_num, - _CGLRendererProperty prop, - ffi.Pointer value, -) { - return _CGLError.fromValue( - _CGLDescribeRenderer(rend, rend_num, prop.value, value), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLDestroyContext', -) -external int _CGLDestroyContext(CGLContextObj ctx); - -_CGLError CGLDestroyContext(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLDestroyContext(ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLDestroyPBuffer', -) -external int _CGLDestroyPBuffer(CGLPBufferObj pbuffer); - -_CGLError CGLDestroyPBuffer(CGLPBufferObj pbuffer) { - return _CGLError.fromValue(_CGLDestroyPBuffer(pbuffer)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLDestroyPixelFormat', -) -external int _CGLDestroyPixelFormat(CGLPixelFormatObj pix); - -_CGLError CGLDestroyPixelFormat(CGLPixelFormatObj pix) { - return _CGLError.fromValue(_CGLDestroyPixelFormat(pix)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLDestroyRendererInfo', -) -external int _CGLDestroyRendererInfo(CGLRendererInfoObj rend); - -_CGLError CGLDestroyRendererInfo(CGLRendererInfoObj rend) { - return _CGLError.fromValue(_CGLDestroyRendererInfo(rend)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLDisable', -) -external int _CGLDisable(CGLContextObj ctx, int pname); - -_CGLError CGLDisable(CGLContextObj ctx, _CGLContextEnable pname) { - return _CGLError.fromValue(_CGLDisable(ctx, pname.value)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLEnable', -) -external int _CGLEnable(CGLContextObj ctx, int pname); - -_CGLError CGLEnable(CGLContextObj ctx, _CGLContextEnable pname) { - return _CGLError.fromValue(_CGLEnable(ctx, pname.value)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native Function(ffi.UnsignedInt)>( - symbol: 'CGLErrorString', -) -external ffi.Pointer _CGLErrorString(int error); - -ffi.Pointer CGLErrorString(_CGLError error) { - return _CGLErrorString(error.value); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native(symbol: 'CGLFlushDrawable') -external int _CGLFlushDrawable(CGLContextObj ctx); - -_CGLError CGLFlushDrawable(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLFlushDrawable(ctx)); -} - -@ffi.Native() -external int CGLGetContextRetainCount(CGLContextObj ctx); - -@ffi.Native() -external CGLContextObj CGLGetCurrentContext(); - -@ffi.Native() -external cl_device_id CGLGetDeviceFromGLRenderer(int rendererID); - -@ffi.Native)>( - symbol: 'CGLGetGlobalOption', -) -external int _CGLGetGlobalOption(int pname, ffi.Pointer params); - -_CGLError CGLGetGlobalOption( - _CGLGlobalOption pname, - ffi.Pointer params, -) { - return _CGLError.fromValue(_CGLGetGlobalOption(pname.value, params)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLContextObj, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->(symbol: 'CGLGetOffScreen') -external int _CGLGetOffScreen( - CGLContextObj ctx, - ffi.Pointer width, - ffi.Pointer height, - ffi.Pointer rowbytes, - ffi.Pointer> baseaddr, -); - -_CGLError CGLGetOffScreen( - CGLContextObj ctx, - ffi.Pointer width, - ffi.Pointer height, - ffi.Pointer rowbytes, - ffi.Pointer> baseaddr, -) { - return _CGLError.fromValue( - _CGLGetOffScreen(ctx, width, height, rowbytes, baseaddr), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native)>( - symbol: 'CGLGetOption', -) -external int _CGLGetOption(int pname, ffi.Pointer param); - -_CGLError CGLGetOption(_CGLGlobalOption pname, ffi.Pointer param) { - return _CGLError.fromValue(_CGLGetOption(pname.value, param)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLContextObj, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGLGetPBuffer') -external int _CGLGetPBuffer( - CGLContextObj ctx, - ffi.Pointer pbuffer, - ffi.Pointer face, - ffi.Pointer level, - ffi.Pointer screen, -); - -_CGLError CGLGetPBuffer( - CGLContextObj ctx, - ffi.Pointer pbuffer, - ffi.Pointer face, - ffi.Pointer level, - ffi.Pointer screen, -) { - return _CGLError.fromValue(_CGLGetPBuffer(ctx, pbuffer, face, level, screen)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CGLGetPBufferRetainCount(CGLPBufferObj pbuffer); - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'CGLGetParameter') -external int _CGLGetParameter( - CGLContextObj ctx, - int pname, - ffi.Pointer params, -); - -_CGLError CGLGetParameter( - CGLContextObj ctx, - _CGLContextParameter pname, - ffi.Pointer params, -) { - return _CGLError.fromValue(_CGLGetParameter(ctx, pname.value, params)); -} - -@ffi.Native() -external CGLPixelFormatObj CGLGetPixelFormat(CGLContextObj ctx); - -@ffi.Native() -external int CGLGetPixelFormatRetainCount(CGLPixelFormatObj pix); - -@ffi.Native() -external CGLShareGroupObj CGLGetShareGroup(CGLContextObj ctx); - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native, ffi.Pointer)>() -external void CGLGetVersion( - ffi.Pointer majorvers, - ffi.Pointer minorvers, -); - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native)>( - symbol: 'CGLGetVirtualScreen', -) -external int _CGLGetVirtualScreen(CGLContextObj ctx, ffi.Pointer screen); - -_CGLError CGLGetVirtualScreen(CGLContextObj ctx, ffi.Pointer screen) { - return _CGLError.fromValue(_CGLGetVirtualScreen(ctx, screen)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'CGLIsEnabled') -external int _CGLIsEnabled( - CGLContextObj ctx, - int pname, - ffi.Pointer enable, -); - -_CGLError CGLIsEnabled( - CGLContextObj ctx, - _CGLContextEnable pname, - ffi.Pointer enable, -) { - return _CGLError.fromValue(_CGLIsEnabled(ctx, pname.value, enable)); -} - -@ffi.Native(symbol: 'CGLLockContext') -external int _CGLLockContext(CGLContextObj ctx); - -_CGLError CGLLockContext(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLLockContext(ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - GLuint, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGLQueryRendererInfo') -external int _CGLQueryRendererInfo( - int display_mask, - ffi.Pointer rend, - ffi.Pointer nrend, -); - -_CGLError CGLQueryRendererInfo( - DartGLuint display_mask, - ffi.Pointer rend, - ffi.Pointer nrend, -) { - return _CGLError.fromValue(_CGLQueryRendererInfo(display_mask, rend, nrend)); -} - -@ffi.Native() -external void CGLReleaseContext(CGLContextObj ctx); - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CGLReleasePBuffer(CGLPBufferObj pbuffer); - -@ffi.Native() -external void CGLReleasePixelFormat(CGLPixelFormatObj pix); - -@ffi.Native() -external CGLContextObj CGLRetainContext(CGLContextObj ctx); - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CGLPBufferObj CGLRetainPBuffer(CGLPBufferObj pbuffer); - -@ffi.Native() -external CGLPixelFormatObj CGLRetainPixelFormat(CGLPixelFormatObj pix); - -@ffi.Native( - symbol: 'CGLSetCurrentContext', -) -external int _CGLSetCurrentContext(CGLContextObj ctx); - -_CGLError CGLSetCurrentContext(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLSetCurrentContext(ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native(symbol: 'CGLSetFullScreen') -external int _CGLSetFullScreen(CGLContextObj ctx); - -_CGLError CGLSetFullScreen(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLSetFullScreen(ctx)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLSetFullScreenOnDisplay', -) -external int _CGLSetFullScreenOnDisplay(CGLContextObj ctx, int display_mask); - -_CGLError CGLSetFullScreenOnDisplay( - CGLContextObj ctx, - DartGLuint display_mask, -) { - return _CGLError.fromValue(_CGLSetFullScreenOnDisplay(ctx, display_mask)); -} - -@ffi.Native)>( - symbol: 'CGLSetGlobalOption', -) -external int _CGLSetGlobalOption(int pname, ffi.Pointer params); - -_CGLError CGLSetGlobalOption( - _CGLGlobalOption pname, - ffi.Pointer params, -) { - return _CGLError.fromValue(_CGLSetGlobalOption(pname.value, params)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function( - CGLContextObj, - GLsizei, - GLsizei, - GLint, - ffi.Pointer, - ) ->(symbol: 'CGLSetOffScreen') -external int _CGLSetOffScreen( - CGLContextObj ctx, - int width, - int height, - int rowbytes, - ffi.Pointer baseaddr, -); - -_CGLError CGLSetOffScreen( - CGLContextObj ctx, - DartGLsizei width, - DartGLsizei height, - DartGLint rowbytes, - ffi.Pointer baseaddr, -) { - return _CGLError.fromValue( - _CGLSetOffScreen(ctx, width, height, rowbytes, baseaddr), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLSetOption', -) -external int _CGLSetOption(int pname, int param); - -_CGLError CGLSetOption(_CGLGlobalOption pname, DartGLint param) { - return _CGLError.fromValue(_CGLSetOption(pname.value, param)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function(CGLContextObj, CGLPBufferObj, GLenum, GLint, GLint) ->(symbol: 'CGLSetPBuffer') -external int _CGLSetPBuffer( - CGLContextObj ctx, - CGLPBufferObj pbuffer, - int face, - int level, - int screen, -); - -_CGLError CGLSetPBuffer( - CGLContextObj ctx, - CGLPBufferObj pbuffer, - DartGLenum face, - DartGLint level, - DartGLint screen, -) { - return _CGLError.fromValue(_CGLSetPBuffer(ctx, pbuffer, face, level, screen)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.UnsignedInt Function(CGLContextObj, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'CGLSetParameter') -external int _CGLSetParameter( - CGLContextObj ctx, - int pname, - ffi.Pointer params, -); - -_CGLError CGLSetParameter( - CGLContextObj ctx, - _CGLContextParameter pname, - ffi.Pointer params, -) { - return _CGLError.fromValue(_CGLSetParameter(ctx, pname.value, params)); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLSetVirtualScreen', -) -external int _CGLSetVirtualScreen(CGLContextObj ctx, int screen); - -_CGLError CGLSetVirtualScreen(CGLContextObj ctx, DartGLint screen) { - return _CGLError.fromValue(_CGLSetVirtualScreen(ctx, screen)); -} - -@ffi.Native< - ffi.UnsignedInt Function( - CGLContextObj, - GLenum, - GLenum, - GLsizei, - GLsizei, - GLenum, - GLenum, - IOSurfaceRef, - GLuint, - ) ->(symbol: 'CGLTexImageIOSurface2D') -external int _CGLTexImageIOSurface2D( - CGLContextObj ctx, - int target, - int internal_format, - int width, - int height, - int format, - int type, - IOSurfaceRef ioSurface, - int plane, -); - -_CGLError CGLTexImageIOSurface2D( - CGLContextObj ctx, - DartGLenum target, - DartGLenum internal_format, - DartGLsizei width, - DartGLsizei height, - DartGLenum format, - DartGLenum type, - IOSurfaceRef ioSurface, - DartGLuint plane, -) { - return _CGLError.fromValue( - _CGLTexImageIOSurface2D( - ctx, - target, - internal_format, - width, - height, - format, - type, - ioSurface, - plane, - ), - ); -} - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -@ffi.Native( - symbol: 'CGLTexImagePBuffer', -) -external int _CGLTexImagePBuffer( - CGLContextObj ctx, - CGLPBufferObj pbuffer, - int source, -); - -_CGLError CGLTexImagePBuffer( - CGLContextObj ctx, - CGLPBufferObj pbuffer, - DartGLenum source, -) { - return _CGLError.fromValue(_CGLTexImagePBuffer(ctx, pbuffer, source)); -} - -@ffi.Native(symbol: 'CGLUnlockContext') -external int _CGLUnlockContext(CGLContextObj ctx); - -_CGLError CGLUnlockContext(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLUnlockContext(ctx)); -} - -@ffi.Native(symbol: 'CGLUpdateContext') -external int _CGLUpdateContext(CGLContextObj ctx); - -_CGLError CGLUpdateContext(CGLContextObj ctx) { - return _CGLError.fromValue(_CGLUpdateContext(ctx)); -} - -@ffi.Native() -external CGLayerRef CGLayerCreateWithContext( - CGContextRef context, - objc.CGSize size, - CFDictionaryRef auxiliaryInfo, -); - -@ffi.Native() -external CGContextRef CGLayerGetContext(CGLayerRef layer); - -@ffi.Native() -external objc.CGSize CGLayerGetSize(CGLayerRef layer); - -@ffi.Native() -external int CGLayerGetTypeID(); - -@ffi.Native() -external void CGLayerRelease(CGLayerRef layer); - -@ffi.Native() -external CGLayerRef CGLayerRetain(CGLayerRef layer); - -@ffi.Native() -external int CGMainDisplayID(); - -@ffi.Native() -external int CGOpenGLDisplayMaskToDisplayID(int mask); - -@ffi.Native< - ffi.Void Function( - CGPDFArrayRef, - CGPDFArrayApplierBlock, - ffi.Pointer, - ) ->(symbol: 'CGPDFArrayApplyBlock') -external void _CGPDFArrayApplyBlock( - CGPDFArrayRef array, - CGPDFArrayApplierBlock block, - ffi.Pointer info, -); - -void CGPDFArrayApplyBlock( - CGPDFArrayRef array, - DartCGPDFArrayApplierBlock? block, - ffi.Pointer info, -) { - final _$$ref = block?.ref; - return _CGPDFArrayApplyBlock(array, _$$ref?.pointer ?? ffi.nullptr, info); -} - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetArray( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetBoolean( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native() -external int CGPDFArrayGetCount(CGPDFArrayRef array); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetDictionary( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetInteger( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer>) ->() -external bool CGPDFArrayGetName( - CGPDFArrayRef array, - int index$1, - ffi.Pointer> value, -); - -@ffi.Native() -external bool CGPDFArrayGetNull(CGPDFArrayRef array, int index$1); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetNumber( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetObject( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetStream( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFArrayRef, ffi.Size, ffi.Pointer) ->() -external bool CGPDFArrayGetString( - CGPDFArrayRef array, - int index$1, - ffi.Pointer value, -); - -@ffi.Native() -external CGPDFContentStreamRef CGPDFContentStreamCreateWithPage( - CGPDFPageRef page, -); - -@ffi.Native< - CGPDFContentStreamRef Function( - CGPDFStreamRef, - CGPDFDictionaryRef, - CGPDFContentStreamRef, - ) ->() -external CGPDFContentStreamRef CGPDFContentStreamCreateWithStream( - CGPDFStreamRef stream, - CGPDFDictionaryRef streamResources, - CGPDFContentStreamRef parent, -); - -@ffi.Native< - CGPDFObjectRef Function( - CGPDFContentStreamRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGPDFObjectRef CGPDFContentStreamGetResource( - CGPDFContentStreamRef cs, - ffi.Pointer category, - ffi.Pointer name, -); - -@ffi.Native() -external CFArrayRef CGPDFContentStreamGetStreams(CGPDFContentStreamRef cs); - -@ffi.Native() -external void CGPDFContentStreamRelease(CGPDFContentStreamRef cs); - -@ffi.Native() -external CGPDFContentStreamRef CGPDFContentStreamRetain( - CGPDFContentStreamRef cs, -); - -@ffi.Native() -external void CGPDFContextAddDestinationAtPoint( - CGContextRef context, - CFStringRef name, - objc.CGPoint point, -); - -@ffi.Native() -external void CGPDFContextAddDocumentMetadata( - CGContextRef context, - CFDataRef metadata, -); - -@ffi.Native() -external void CGPDFContextBeginPage( - CGContextRef context, - CFDictionaryRef pageInfo, -); - -@ffi.Native( - symbol: 'CGPDFContextBeginTag', -) -external void _CGPDFContextBeginTag( - CGContextRef context, - int tagType, - CFDictionaryRef tagProperties, -); - -void CGPDFContextBeginTag( - CGContextRef context, - CGPDFTagType tagType, - CFDictionaryRef tagProperties, -) { - return _CGPDFContextBeginTag(context, tagType.value, tagProperties); -} - -@ffi.Native() -external void CGPDFContextClose(CGContextRef context); - -@ffi.Native< - CGContextRef Function( - CGDataConsumerRef, - ffi.Pointer, - CFDictionaryRef, - ) ->() -external CGContextRef CGPDFContextCreate( - CGDataConsumerRef consumer, - ffi.Pointer mediaBox, - CFDictionaryRef auxiliaryInfo, -); - -@ffi.Native< - CGContextRef Function(CFURLRef, ffi.Pointer, CFDictionaryRef) ->() -external CGContextRef CGPDFContextCreateWithURL( - CFURLRef url, - ffi.Pointer mediaBox, - CFDictionaryRef auxiliaryInfo, -); - -@ffi.Native() -external void CGPDFContextEndPage(CGContextRef context); - -@ffi.Native() -external void CGPDFContextEndTag(CGContextRef context); - -@ffi.Native() -external void CGPDFContextSetDestinationForRect( - CGContextRef context, - CFStringRef name, - objc.CGRect rect, -); - -@ffi.Native() -external void CGPDFContextSetIDTree( - CGContextRef context, - CGPDFDictionaryRef IDTreeDictionary, -); - -@ffi.Native() -external void CGPDFContextSetOutline( - CGContextRef context, - CFDictionaryRef outline$1, -); - -@ffi.Native() -external void CGPDFContextSetPageTagStructureTree( - CGContextRef context, - CFDictionaryRef pageTagStructureTreeDictionary, -); - -@ffi.Native() -external void CGPDFContextSetParentTree( - CGContextRef context, - CGPDFDictionaryRef parentTreeDictionary, -); - -@ffi.Native() -external void CGPDFContextSetURLForRect( - CGContextRef context, - CFURLRef url, - objc.CGRect rect, -); - -@ffi.Native< - ffi.Void Function( - CGPDFDictionaryRef, - CGPDFDictionaryApplierBlock, - ffi.Pointer, - ) ->(symbol: 'CGPDFDictionaryApplyBlock') -external void _CGPDFDictionaryApplyBlock( - CGPDFDictionaryRef dict, - CGPDFDictionaryApplierBlock block, - ffi.Pointer info, -); - -void CGPDFDictionaryApplyBlock( - CGPDFDictionaryRef dict, - DartCGPDFDictionaryApplierBlock? block, - ffi.Pointer info, -) { - final _$$ref = block?.ref; - return _CGPDFDictionaryApplyBlock(dict, _$$ref?.pointer ?? ffi.nullptr, info); -} - -@ffi.Native< - ffi.Void Function( - CGPDFDictionaryRef, - CGPDFDictionaryApplierFunction, - ffi.Pointer, - ) ->() -external void CGPDFDictionaryApplyFunction( - CGPDFDictionaryRef dict, - CGPDFDictionaryApplierFunction function, - ffi.Pointer info, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetArray( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetBoolean( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native() -external int CGPDFDictionaryGetCount(CGPDFDictionaryRef dict); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetDictionary( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetInteger( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external bool CGPDFDictionaryGetName( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer> value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetNumber( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetObject( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetStream( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function( - CGPDFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool CGPDFDictionaryGetString( - CGPDFDictionaryRef dict, - ffi.Pointer key, - ffi.Pointer value, -); - -@ffi.Native() -external bool CGPDFDocumentAllowsCopying(CGPDFDocumentRef document); - -@ffi.Native() -external bool CGPDFDocumentAllowsPrinting(CGPDFDocumentRef document); - -@ffi.Native() -external CGPDFDocumentRef CGPDFDocumentCreateWithProvider( - CGDataProviderRef provider, -); - -@ffi.Native() -external CGPDFDocumentRef CGPDFDocumentCreateWithURL(CFURLRef url); - -@ffi.Native() -external int CGPDFDocumentGetAccessPermissions(CGPDFDocumentRef document); - -@Deprecated('No longer supported') -@ffi.Native() -external objc.CGRect CGPDFDocumentGetArtBox( - CGPDFDocumentRef document, - int page, -); - -@Deprecated('No longer supported') -@ffi.Native() -external objc.CGRect CGPDFDocumentGetBleedBox( - CGPDFDocumentRef document, - int page, -); - -@ffi.Native() -external CGPDFDictionaryRef CGPDFDocumentGetCatalog(CGPDFDocumentRef document); - -@Deprecated('No longer supported') -@ffi.Native() -external objc.CGRect CGPDFDocumentGetCropBox( - CGPDFDocumentRef document, - int page, -); - -@ffi.Native() -external CGPDFArrayRef CGPDFDocumentGetID(CGPDFDocumentRef document); - -@ffi.Native() -external CGPDFDictionaryRef CGPDFDocumentGetInfo(CGPDFDocumentRef document); - -@Deprecated('No longer supported') -@ffi.Native() -external objc.CGRect CGPDFDocumentGetMediaBox( - CGPDFDocumentRef document, - int page, -); - -@ffi.Native() -external int CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document); - -@ffi.Native() -external CFDictionaryRef CGPDFDocumentGetOutline(CGPDFDocumentRef document); - -@ffi.Native() -external CGPDFPageRef CGPDFDocumentGetPage( - CGPDFDocumentRef document, - int pageNumber, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int CGPDFDocumentGetRotationAngle(CGPDFDocumentRef document, int page); - -@Deprecated('No longer supported') -@ffi.Native() -external objc.CGRect CGPDFDocumentGetTrimBox( - CGPDFDocumentRef document, - int page, -); - -@ffi.Native() -external int CGPDFDocumentGetTypeID(); - -@ffi.Native< - ffi.Void Function( - CGPDFDocumentRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CGPDFDocumentGetVersion( - CGPDFDocumentRef document, - ffi.Pointer majorVersion, - ffi.Pointer minorVersion, -); - -@ffi.Native() -external bool CGPDFDocumentIsEncrypted(CGPDFDocumentRef document); - -@ffi.Native() -external bool CGPDFDocumentIsUnlocked(CGPDFDocumentRef document); - -@ffi.Native() -external void CGPDFDocumentRelease(CGPDFDocumentRef document); - -@ffi.Native() -external CGPDFDocumentRef CGPDFDocumentRetain(CGPDFDocumentRef document); - -@ffi.Native)>() -external bool CGPDFDocumentUnlockWithPassword( - CGPDFDocumentRef document, - ffi.Pointer password, -); - -@ffi.Native(symbol: 'CGPDFObjectGetType') -external int _CGPDFObjectGetType(CGPDFObjectRef object); - -CGPDFObjectType CGPDFObjectGetType(CGPDFObjectRef object) { - return CGPDFObjectType.fromValue(_CGPDFObjectGetType(object)); -} - -@ffi.Native< - ffi.Bool Function(CGPDFObjectRef, ffi.Int32, ffi.Pointer) ->(symbol: 'CGPDFObjectGetValue') -external bool _CGPDFObjectGetValue( - CGPDFObjectRef object, - int type, - ffi.Pointer value, -); - -bool CGPDFObjectGetValue( - CGPDFObjectRef object, - CGPDFObjectType type, - ffi.Pointer value, -) { - return _CGPDFObjectGetValue(object, type.value, value); -} - -@ffi.Native() -external CGPDFOperatorTableRef CGPDFOperatorTableCreate(); - -@ffi.Native() -external void CGPDFOperatorTableRelease(CGPDFOperatorTableRef table); - -@ffi.Native() -external CGPDFOperatorTableRef CGPDFOperatorTableRetain( - CGPDFOperatorTableRef table, -); - -@ffi.Native< - ffi.Void Function( - CGPDFOperatorTableRef, - ffi.Pointer, - CGPDFOperatorCallback, - ) ->() -external void CGPDFOperatorTableSetCallback( - CGPDFOperatorTableRef table, - ffi.Pointer name, - CGPDFOperatorCallback callback, -); - -@ffi.Native( - symbol: 'CGPDFPageGetBoxRect', -) -external objc.CGRect _CGPDFPageGetBoxRect(CGPDFPageRef page, int box); - -objc.CGRect CGPDFPageGetBoxRect(CGPDFPageRef page, CGPDFBox box) { - return _CGPDFPageGetBoxRect(page, box.value); -} - -@ffi.Native() -external CGPDFDictionaryRef CGPDFPageGetDictionary(CGPDFPageRef page); - -@ffi.Native() -external CGPDFDocumentRef CGPDFPageGetDocument(CGPDFPageRef page); - -@ffi.Native< - CGAffineTransform Function( - CGPDFPageRef, - ffi.Int32, - objc.CGRect, - ffi.Int, - ffi.Bool, - ) ->(symbol: 'CGPDFPageGetDrawingTransform') -external CGAffineTransform _CGPDFPageGetDrawingTransform( - CGPDFPageRef page, - int box, - objc.CGRect rect, - int rotate, - bool preserveAspectRatio, -); - -CGAffineTransform CGPDFPageGetDrawingTransform( - CGPDFPageRef page, - CGPDFBox box, - objc.CGRect rect, - int rotate, - bool preserveAspectRatio, -) { - return _CGPDFPageGetDrawingTransform( - page, - box.value, - rect, - rotate, - preserveAspectRatio, - ); -} - -@ffi.Native() -external int CGPDFPageGetPageNumber(CGPDFPageRef page); - -@ffi.Native() -external int CGPDFPageGetRotationAngle(CGPDFPageRef page); - -@ffi.Native() -external int CGPDFPageGetTypeID(); - -@ffi.Native() -external void CGPDFPageRelease(CGPDFPageRef page); - -@ffi.Native() -external CGPDFPageRef CGPDFPageRetain(CGPDFPageRef page); - -@ffi.Native< - CGPDFScannerRef Function( - CGPDFContentStreamRef, - CGPDFOperatorTableRef, - ffi.Pointer, - ) ->() -external CGPDFScannerRef CGPDFScannerCreate( - CGPDFContentStreamRef cs, - CGPDFOperatorTableRef table, - ffi.Pointer info, -); - -@ffi.Native() -external CGPDFContentStreamRef CGPDFScannerGetContentStream( - CGPDFScannerRef scanner, -); - -@ffi.Native)>() -external bool CGPDFScannerPopArray( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopBoolean( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFScannerRef, ffi.Pointer) ->() -external bool CGPDFScannerPopDictionary( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopInteger( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Bool Function(CGPDFScannerRef, ffi.Pointer>) ->() -external bool CGPDFScannerPopName( - CGPDFScannerRef scanner, - ffi.Pointer> value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopNumber( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopObject( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopStream( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native)>() -external bool CGPDFScannerPopString( - CGPDFScannerRef scanner, - ffi.Pointer value, -); - -@ffi.Native() -external void CGPDFScannerRelease(CGPDFScannerRef scanner); - -@ffi.Native() -external CGPDFScannerRef CGPDFScannerRetain(CGPDFScannerRef scanner); - -@ffi.Native() -external bool CGPDFScannerScan(CGPDFScannerRef scanner); - -@ffi.Native() -external void CGPDFScannerStop(CGPDFScannerRef s); - -@ffi.Native)>() -external CFDataRef CGPDFStreamCopyData( - CGPDFStreamRef stream, - ffi.Pointer format, -); - -@ffi.Native() -external CGPDFDictionaryRef CGPDFStreamGetDictionary(CGPDFStreamRef stream); - -@ffi.Native() -external CFDateRef CGPDFStringCopyDate(CGPDFStringRef string); - -@ffi.Native() -external CFStringRef CGPDFStringCopyTextString(CGPDFStringRef string); - -@ffi.Native Function(CGPDFStringRef)>() -external ffi.Pointer CGPDFStringGetBytePtr( - CGPDFStringRef string, -); - -@ffi.Native() -external int CGPDFStringGetLength(CGPDFStringRef string); - -@ffi.Native Function(ffi.Int32)>( - symbol: 'CGPDFTagTypeGetName', -) -external ffi.Pointer _CGPDFTagTypeGetName(int tagType); - -ffi.Pointer CGPDFTagTypeGetName(CGPDFTagType tagType) { - return _CGPDFTagTypeGetName(tagType.value); -} - -@ffi.Native() -external bool CGPSConverterAbort(CGPSConverterRef converter); - -@ffi.Native< - ffi.Bool Function( - CGPSConverterRef, - CGDataProviderRef, - CGDataConsumerRef, - CFDictionaryRef, - ) ->() -external bool CGPSConverterConvert( - CGPSConverterRef converter, - CGDataProviderRef provider, - CGDataConsumerRef consumer, - CFDictionaryRef options, -); - -@ffi.Native< - CGPSConverterRef Function( - ffi.Pointer, - ffi.Pointer, - CFDictionaryRef, - ) ->() -external CGPSConverterRef CGPSConverterCreate( - ffi.Pointer info, - ffi.Pointer callbacks, - CFDictionaryRef options, -); - -@ffi.Native() -external int CGPSConverterGetTypeID(); - -@ffi.Native() -external bool CGPSConverterIsConverting(CGPSConverterRef converter); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ffi.Bool, - ) ->() -external void CGPathAddArc( - CGMutablePathRef path, - ffi.Pointer m, - double x, - double y, - double radius, - double startAngle, - double endAngle, - bool clockwise, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddArcToPoint( - CGMutablePathRef path, - ffi.Pointer m, - double x1, - double y1$1, - double x2, - double y2, - double radius, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddCurveToPoint( - CGMutablePathRef path, - ffi.Pointer m, - double cp1x, - double cp1y, - double cp2x, - double cp2y, - double x, - double y, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - objc.CGRect, - ) ->() -external void CGPathAddEllipseInRect( - CGMutablePathRef path, - ffi.Pointer m, - objc.CGRect rect, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddLineToPoint( - CGMutablePathRef path, - ffi.Pointer m, - double x, - double y, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGPathAddLines( - CGMutablePathRef path, - ffi.Pointer m, - ffi.Pointer points, - int count, -); - -@ffi.Native< - ffi.Void Function(CGMutablePathRef, ffi.Pointer, CGPathRef) ->() -external void CGPathAddPath( - CGMutablePathRef path1, - ffi.Pointer m, - CGPathRef path2, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddQuadCurveToPoint( - CGMutablePathRef path, - ffi.Pointer m, - double cpx, - double cpy, - double x, - double y, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - objc.CGRect, - ) ->() -external void CGPathAddRect( - CGMutablePathRef path, - ffi.Pointer m, - objc.CGRect rect, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external void CGPathAddRects( - CGMutablePathRef path, - ffi.Pointer m, - ffi.Pointer rects, - int count, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddRelativeArc( - CGMutablePathRef path, - ffi.Pointer matrix, - double x, - double y, - double radius, - double startAngle, - double delta, -); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - objc.CGRect, - CGFloat, - CGFloat, - ) ->() -external void CGPathAddRoundedRect( - CGMutablePathRef path, - ffi.Pointer transform, - objc.CGRect rect, - double cornerWidth, - double cornerHeight, -); - -@ffi.Native< - ffi.Void Function(CGPathRef, ffi.Pointer, CGPathApplierFunction) ->() -external void CGPathApply( - CGPathRef path, - ffi.Pointer info, - CGPathApplierFunction function, -); - -@ffi.Native( - symbol: 'CGPathApplyWithBlock', -) -external void _CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock block); - -void CGPathApplyWithBlock(CGPathRef path, DartCGPathApplyBlock block) { - final _$$ref = block.ref; - return _CGPathApplyWithBlock(path, _$$ref.pointer); -} - -@ffi.Native() -external void CGPathCloseSubpath(CGMutablePathRef path); - -@ffi.Native< - ffi.Bool Function( - CGPathRef, - ffi.Pointer, - objc.CGPoint, - ffi.Bool, - ) ->() -external bool CGPathContainsPoint( - CGPathRef path, - ffi.Pointer m, - objc.CGPoint point, - bool eoFill, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopy(CGPathRef path); - -@ffi.Native< - CGPathRef Function( - CGPathRef, - ffi.Pointer, - CGFloat, - ffi.Pointer, - ffi.Size, - ) ->() -external CGPathRef CGPathCreateCopyByDashingPath( - CGPathRef path, - ffi.Pointer transform, - double phase, - ffi.Pointer lengths, - int count, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyByFlattening( - CGPathRef path, - double flatteningThreshold, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyByIntersectingPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyByNormalizing( - CGPathRef path, - bool evenOddFillRule, -); - -@ffi.Native< - CGPathRef Function( - CGPathRef, - ffi.Pointer, - CGFloat, - ffi.Int32, - ffi.Int32, - CGFloat, - ) ->(symbol: 'CGPathCreateCopyByStrokingPath') -external CGPathRef _CGPathCreateCopyByStrokingPath( - CGPathRef path, - ffi.Pointer transform, - double lineWidth, - int lineCap, - int lineJoin, - double miterLimit, -); - -CGPathRef CGPathCreateCopyByStrokingPath( - CGPathRef path, - ffi.Pointer transform, - DartCGFloat lineWidth, - CGLineCap lineCap, - CGLineJoin lineJoin, - DartCGFloat miterLimit, -) { - return _CGPathCreateCopyByStrokingPath( - path, - transform, - lineWidth, - lineCap.value, - lineJoin.value, - miterLimit, - ); -} - -@ffi.Native() -external CGPathRef CGPathCreateCopyBySubtractingPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyBySymmetricDifferenceOfPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native)>() -external CGPathRef CGPathCreateCopyByTransformingPath( - CGPathRef path, - ffi.Pointer transform, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyByUnioningPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyOfLineByIntersectingPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native() -external CGPathRef CGPathCreateCopyOfLineBySubtractingPath( - CGPathRef path, - CGPathRef maskPath, - bool evenOddFillRule, -); - -@ffi.Native() -external CGMutablePathRef CGPathCreateMutable(); - -@ffi.Native() -external CGMutablePathRef CGPathCreateMutableCopy(CGPathRef path); - -@ffi.Native< - CGMutablePathRef Function(CGPathRef, ffi.Pointer) ->() -external CGMutablePathRef CGPathCreateMutableCopyByTransformingPath( - CGPathRef path, - ffi.Pointer transform, -); - -@ffi.Native() -external CFArrayRef CGPathCreateSeparateComponents( - CGPathRef path, - bool evenOddFillRule, -); - -@ffi.Native)>() -external CGPathRef CGPathCreateWithEllipseInRect( - objc.CGRect rect, - ffi.Pointer transform, -); - -@ffi.Native)>() -external CGPathRef CGPathCreateWithRect( - objc.CGRect rect, - ffi.Pointer transform, -); - -@ffi.Native< - CGPathRef Function( - objc.CGRect, - CGFloat, - CGFloat, - ffi.Pointer, - ) ->() -external CGPathRef CGPathCreateWithRoundedRect( - objc.CGRect rect, - double cornerWidth, - double cornerHeight, - ffi.Pointer transform, -); - -@ffi.Native() -external bool CGPathEqualToPath(CGPathRef path1, CGPathRef path2); - -@ffi.Native() -external objc.CGRect CGPathGetBoundingBox(CGPathRef path); - -@ffi.Native() -external objc.CGPoint CGPathGetCurrentPoint(CGPathRef path); - -@ffi.Native() -external objc.CGRect CGPathGetPathBoundingBox(CGPathRef path); - -@ffi.Native() -external int CGPathGetTypeID(); - -@ffi.Native() -external bool CGPathIntersectsPath( - CGPathRef path1, - CGPathRef path2, - bool evenOddFillRule, -); - -@ffi.Native() -external bool CGPathIsEmpty(CGPathRef path); - -@ffi.Native)>() -external bool CGPathIsRect(CGPathRef path, ffi.Pointer rect); - -@ffi.Native< - ffi.Void Function( - CGMutablePathRef, - ffi.Pointer, - CGFloat, - CGFloat, - ) ->() -external void CGPathMoveToPoint( - CGMutablePathRef path, - ffi.Pointer m, - double x, - double y, -); - -@ffi.Native() -external void CGPathRelease(CGPathRef path); - -@ffi.Native() -external CGPathRef CGPathRetain(CGPathRef path); - -@ffi.Native< - CGPatternRef Function( - ffi.Pointer, - objc.CGRect, - CGAffineTransform, - CGFloat, - CGFloat, - ffi.Int32, - ffi.Bool, - ffi.Pointer, - ) ->(symbol: 'CGPatternCreate') -external CGPatternRef _CGPatternCreate( - ffi.Pointer info, - objc.CGRect bounds, - CGAffineTransform matrix, - double xStep, - double yStep, - int tiling, - bool isColored, - ffi.Pointer callbacks, -); - -CGPatternRef CGPatternCreate( - ffi.Pointer info, - objc.CGRect bounds, - CGAffineTransform matrix, - DartCGFloat xStep, - DartCGFloat yStep, - CGPatternTiling tiling, - bool isColored, - ffi.Pointer callbacks, -) { - return _CGPatternCreate( - info, - bounds, - matrix, - xStep, - yStep, - tiling.value, - isColored, - callbacks, - ); -} - -@ffi.Native() -external int CGPatternGetTypeID(); - -@ffi.Native() -external void CGPatternRelease(CGPatternRef pattern); - -@ffi.Native() -external CGPatternRef CGPatternRetain(CGPatternRef pattern); - -@ffi.Native() -external objc.CGPoint CGPointApplyAffineTransform( - objc.CGPoint point, - CGAffineTransform t, -); - -@ffi.Native() -external CFDictionaryRef CGPointCreateDictionaryRepresentation( - objc.CGPoint point, -); - -@ffi.Native() -external bool CGPointEqualToPoint(objc.CGPoint point1, objc.CGPoint point2); - -@ffi.Native)>() -external bool CGPointMakeWithDictionaryRepresentation( - CFDictionaryRef dict, - ffi.Pointer point, -); - -@ffi.Native() -external final objc.CGPoint CGPointZero; - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGPostKeyboardEvent', -) -external int _CGPostKeyboardEvent(int keyChar, int virtualKey, int keyDown); - -CGError CGPostKeyboardEvent( - DartCGCharCode keyChar, - DartCGKeyCode virtualKey, - Dartboolean_t keyDown, -) { - return CGError.fromValue(_CGPostKeyboardEvent(keyChar, virtualKey, keyDown)); -} - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Int32 Function(objc.CGPoint, boolean_t, CGButtonCount, boolean_t) ->(symbol: 'CGPostMouseEvent') -external int _CGPostMouseEvent( - objc.CGPoint mouseCursorPosition, - int updateMouseCursorPosition, - int buttonCount, - int mouseButtonDown, -); - -CGError CGPostMouseEvent( - objc.CGPoint mouseCursorPosition, - Dartboolean_t updateMouseCursorPosition, - DartCGButtonCount buttonCount, - Dartboolean_t mouseButtonDown, -) { - return CGError.fromValue( - _CGPostMouseEvent( - mouseCursorPosition, - updateMouseCursorPosition, - buttonCount, - mouseButtonDown, - ), - ); -} - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGPostScrollWheelEvent', -) -external int _CGPostScrollWheelEvent(int wheelCount, int wheel1); - -CGError CGPostScrollWheelEvent(DartCGWheelCount wheelCount, int wheel1) { - return CGError.fromValue(_CGPostScrollWheelEvent(wheelCount, wheel1)); -} - -@ffi.Native() -external bool CGPreflightListenEventAccess(); - -@ffi.Native() -external bool CGPreflightPostEventAccess(); - -@ffi.Native() -external bool CGPreflightScreenCaptureAccess(); - -@ffi.Native() -external objc.CGRect CGRectApplyAffineTransform( - objc.CGRect rect, - CGAffineTransform t, -); - -@ffi.Native() -external bool CGRectContainsPoint(objc.CGRect rect, objc.CGPoint point); - -@ffi.Native() -external bool CGRectContainsRect(objc.CGRect rect1, objc.CGRect rect2); - -@ffi.Native() -external CFDictionaryRef CGRectCreateDictionaryRepresentation(objc.CGRect arg0); - -@ffi.Native< - ffi.Void Function( - objc.CGRect, - ffi.Pointer, - ffi.Pointer, - CGFloat, - ffi.Uint32, - ) ->(symbol: 'CGRectDivide') -external void _CGRectDivide( - objc.CGRect rect, - ffi.Pointer slice, - ffi.Pointer remainder$1, - double amount, - int edge, -); - -void CGRectDivide( - objc.CGRect rect, - ffi.Pointer slice, - ffi.Pointer remainder$1, - DartCGFloat amount, - CGRectEdge edge, -) { - return _CGRectDivide(rect, slice, remainder$1, amount, edge.value); -} - -@ffi.Native() -external bool CGRectEqualToRect(objc.CGRect rect1, objc.CGRect rect2); - -@ffi.Native() -external double CGRectGetHeight(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMaxX(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMaxY(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMidX(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMidY(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMinX(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetMinY(objc.CGRect rect); - -@ffi.Native() -external double CGRectGetWidth(objc.CGRect rect); - -@ffi.Native() -external final objc.CGRect CGRectInfinite; - -@ffi.Native() -external objc.CGRect CGRectInset(objc.CGRect rect, double dx, double dy); - -@ffi.Native() -external objc.CGRect CGRectIntegral(objc.CGRect rect); - -@ffi.Native() -external objc.CGRect CGRectIntersection(objc.CGRect r1, objc.CGRect r2); - -@ffi.Native() -external bool CGRectIntersectsRect(objc.CGRect rect1, objc.CGRect rect2); - -@ffi.Native() -external bool CGRectIsEmpty(objc.CGRect rect); - -@ffi.Native() -external bool CGRectIsInfinite(objc.CGRect rect); - -@ffi.Native() -external bool CGRectIsNull(objc.CGRect rect); - -@ffi.Native)>() -external bool CGRectMakeWithDictionaryRepresentation( - CFDictionaryRef dict, - ffi.Pointer rect, -); - -@ffi.Native() -external final objc.CGRect CGRectNull; - -@ffi.Native() -external objc.CGRect CGRectOffset(objc.CGRect rect, double dx, double dy); - -@ffi.Native() -external objc.CGRect CGRectStandardize(objc.CGRect rect); - -@ffi.Native() -external objc.CGRect CGRectUnion(objc.CGRect r1, objc.CGRect r2); - -@ffi.Native() -external final objc.CGRect CGRectZero; - -@Deprecated('No longer supported') -@ffi.Native)>( - symbol: 'CGRegisterScreenRefreshCallback', -) -external int _CGRegisterScreenRefreshCallback( - CGScreenRefreshCallback callback, - ffi.Pointer userInfo, -); - -CGError CGRegisterScreenRefreshCallback( - CGScreenRefreshCallback callback, - ffi.Pointer userInfo, -) { - return CGError.fromValue( - _CGRegisterScreenRefreshCallback(callback, userInfo), - ); -} - -@ffi.Native(symbol: 'CGReleaseAllDisplays') -external int _CGReleaseAllDisplays(); - -CGError CGReleaseAllDisplays() { - return CGError.fromValue(_CGReleaseAllDisplays()); -} - -@ffi.Native( - symbol: 'CGReleaseDisplayFadeReservation', -) -external int _CGReleaseDisplayFadeReservation(int token); - -CGError CGReleaseDisplayFadeReservation( - DartCGDisplayFadeReservationToken token, -) { - return CGError.fromValue(_CGReleaseDisplayFadeReservation(token)); -} - -@Deprecated('No longer supported') -@ffi.Native)>() -external void CGReleaseScreenRefreshRects(ffi.Pointer rects); - -@ffi.Native Function(CGRenderingBufferProviderRef)>() -external ffi.Pointer CGRenderingBufferLockBytePtr( - CGRenderingBufferProviderRef provider, -); - -@ffi.Native< - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGRenderingBufferProviderCreate') -external CGRenderingBufferProviderRef _CGRenderingBufferProviderCreate( - ffi.Pointer info, - int size, - ffi.Pointer lockPointer, - ffi.Pointer unlockPointer, - ffi.Pointer releaseInfo, -); - -CGRenderingBufferProviderRef CGRenderingBufferProviderCreate( - ffi.Pointer info, - int size, - objc.ObjCBlock Function(ffi.Pointer)> - lockPointer, - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >? - unlockPointer, - objc.ObjCBlock)>? releaseInfo, -) { - final _$$ref = lockPointer.ref; - final _$$ref$1 = unlockPointer?.ref; - final _$$ref$2 = releaseInfo?.ref; - return _CGRenderingBufferProviderCreate( - info, - size, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native() -external CGRenderingBufferProviderRef CGRenderingBufferProviderCreateWithCFData( - CFMutableDataRef data, -); - -@ffi.Native() -external int CGRenderingBufferProviderGetSize( - CGRenderingBufferProviderRef provider, -); - -@ffi.Native() -external int CGRenderingBufferProviderGetTypeID(); - -@ffi.Native() -external void CGRenderingBufferUnlockBytePtr( - CGRenderingBufferProviderRef provider, -); - -@ffi.Native() -external bool CGRequestListenEventAccess(); - -@ffi.Native() -external bool CGRequestPostEventAccess(); - -@ffi.Native() -external bool CGRequestScreenCaptureAccess(); - -@ffi.Native() -external void CGRestorePermanentDisplayConfiguration(); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Int32 Function(CGScreenUpdateMoveCallback, ffi.Pointer) ->(symbol: 'CGScreenRegisterMoveCallback') -external int _CGScreenRegisterMoveCallback( - CGScreenUpdateMoveCallback callback, - ffi.Pointer userInfo, -); - -CGError CGScreenRegisterMoveCallback( - CGScreenUpdateMoveCallback callback, - ffi.Pointer userInfo, -) { - return CGError.fromValue(_CGScreenRegisterMoveCallback(callback, userInfo)); -} - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(CGScreenUpdateMoveCallback, ffi.Pointer) ->() -external void CGScreenUnregisterMoveCallback( - CGScreenUpdateMoveCallback callback, - ffi.Pointer userInfo, -); - -@ffi.Native() -external CFDictionaryRef CGSessionCopyCurrentDictionary(); - -@ffi.Native< - ffi.Int32 Function( - CGDirectDisplayID, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGSetDisplayTransferByByteTable') -external int _CGSetDisplayTransferByByteTable( - int display, - int tableSize, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, -); - -CGError CGSetDisplayTransferByByteTable( - DartCGDirectDisplayID display, - int tableSize, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, -) { - return CGError.fromValue( - _CGSetDisplayTransferByByteTable( - display, - tableSize, - redTable, - greenTable, - blueTable, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGDirectDisplayID, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - CGGammaValue, - ) ->(symbol: 'CGSetDisplayTransferByFormula') -external int _CGSetDisplayTransferByFormula( - int display, - double redMin, - double redMax, - double redGamma, - double greenMin, - double greenMax, - double greenGamma, - double blueMin, - double blueMax, - double blueGamma, -); - -CGError CGSetDisplayTransferByFormula( - DartCGDirectDisplayID display, - DartCGGammaValue redMin, - DartCGGammaValue redMax, - DartCGGammaValue redGamma, - DartCGGammaValue greenMin, - DartCGGammaValue greenMax, - DartCGGammaValue greenGamma, - DartCGGammaValue blueMin, - DartCGGammaValue blueMax, - DartCGGammaValue blueGamma, -) { - return CGError.fromValue( - _CGSetDisplayTransferByFormula( - display, - redMin, - redMax, - redGamma, - greenMin, - greenMax, - greenGamma, - blueMin, - blueMax, - blueGamma, - ), - ); -} - -@ffi.Native< - ffi.Int32 Function( - CGDirectDisplayID, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGSetDisplayTransferByTable') -external int _CGSetDisplayTransferByTable( - int display, - int tableSize, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, -); - -CGError CGSetDisplayTransferByTable( - DartCGDirectDisplayID display, - int tableSize, - ffi.Pointer redTable, - ffi.Pointer greenTable, - ffi.Pointer blueTable, -) { - return CGError.fromValue( - _CGSetDisplayTransferByTable( - display, - tableSize, - redTable, - greenTable, - blueTable, - ), - ); -} - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGSetLocalEventsFilterDuringSuppressionState', -) -external int _CGSetLocalEventsFilterDuringSuppressionState( - int filter, - int state, -); - -CGError CGSetLocalEventsFilterDuringSuppressionState( - int filter, - CGEventSuppressionState state, -) { - return CGError.fromValue( - _CGSetLocalEventsFilterDuringSuppressionState(filter, state.value), - ); -} - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'CGSetLocalEventsSuppressionInterval', -) -external int _CGSetLocalEventsSuppressionInterval(double seconds); - -CGError CGSetLocalEventsSuppressionInterval(DartCFTimeInterval seconds) { - return CGError.fromValue(_CGSetLocalEventsSuppressionInterval(seconds)); -} - -@ffi.Native< - CGShadingRef Function( - CGColorSpaceRef, - objc.CGPoint, - objc.CGPoint, - CGFunctionRef, - ffi.Bool, - ffi.Bool, - ) ->() -external CGShadingRef CGShadingCreateAxial( - CGColorSpaceRef space, - objc.CGPoint start, - objc.CGPoint end, - CGFunctionRef function, - bool extendStart, - bool extendEnd, -); - -@ffi.Native< - CGShadingRef Function( - ffi.Float, - CGColorSpaceRef, - objc.CGPoint, - objc.CGPoint, - CGFunctionRef, - ffi.Bool, - ffi.Bool, - ) ->() -external CGShadingRef CGShadingCreateAxialWithContentHeadroom( - double headroom, - CGColorSpaceRef space, - objc.CGPoint start, - objc.CGPoint end, - CGFunctionRef function, - bool extendStart, - bool extendEnd, -); - -@ffi.Native< - CGShadingRef Function( - CGColorSpaceRef, - objc.CGPoint, - CGFloat, - objc.CGPoint, - CGFloat, - CGFunctionRef, - ffi.Bool, - ffi.Bool, - ) ->() -external CGShadingRef CGShadingCreateRadial( - CGColorSpaceRef space, - objc.CGPoint start, - double startRadius, - objc.CGPoint end, - double endRadius, - CGFunctionRef function, - bool extendStart, - bool extendEnd, -); - -@ffi.Native< - CGShadingRef Function( - ffi.Float, - CGColorSpaceRef, - objc.CGPoint, - CGFloat, - objc.CGPoint, - CGFloat, - CGFunctionRef, - ffi.Bool, - ffi.Bool, - ) ->() -external CGShadingRef CGShadingCreateRadialWithContentHeadroom( - double headroom, - CGColorSpaceRef space, - objc.CGPoint start, - double startRadius, - objc.CGPoint end, - double endRadius, - CGFunctionRef function, - bool extendStart, - bool extendEnd, -); - -@ffi.Native() -external double CGShadingGetContentHeadroom(CGShadingRef shading); - -@ffi.Native() -external int CGShadingGetTypeID(); - -@ffi.Native() -external void CGShadingRelease(CGShadingRef shading); - -@ffi.Native() -external CGShadingRef CGShadingRetain(CGShadingRef shading); - -@ffi.Native() -external int CGShieldingWindowID(int display); - -@ffi.Native() -external int CGShieldingWindowLevel(); - -@ffi.Native() -external objc.CGSize CGSizeApplyAffineTransform( - objc.CGSize size, - CGAffineTransform t, -); - -@ffi.Native() -external CFDictionaryRef CGSizeCreateDictionaryRepresentation(objc.CGSize size); - -@ffi.Native() -external bool CGSizeEqualToSize(objc.CGSize size1, objc.CGSize size2); - -@ffi.Native)>() -external bool CGSizeMakeWithDictionaryRepresentation( - CFDictionaryRef dict, - ffi.Pointer size, -); - -@ffi.Native() -external final objc.CGSize CGSizeZero; - -@Deprecated('No longer supported') -@ffi.Native)>() -external void CGUnregisterScreenRefreshCallback( - CGScreenRefreshCallback callback, - ffi.Pointer userInfo, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Int32 Function( - ffi.Pointer>, - ffi.Pointer, - ) ->(symbol: 'CGWaitForScreenRefreshRects') -external int _CGWaitForScreenRefreshRects( - ffi.Pointer> rects, - ffi.Pointer count, -); - -CGError CGWaitForScreenRefreshRects( - ffi.Pointer> rects, - ffi.Pointer count, -) { - return CGError.fromValue(_CGWaitForScreenRefreshRects(rects, count)); -} - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Int32 Function( - ffi.Uint32, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CGWaitForScreenUpdateRects') -external int _CGWaitForScreenUpdateRects( - int requestedOperations, - ffi.Pointer currentOperation, - ffi.Pointer> rects, - ffi.Pointer rectCount, - ffi.Pointer delta, -); - -CGError CGWaitForScreenUpdateRects( - int requestedOperations, - ffi.Pointer currentOperation, - ffi.Pointer> rects, - ffi.Pointer rectCount, - ffi.Pointer delta, -) { - return CGError.fromValue( - _CGWaitForScreenUpdateRects( - requestedOperations, - currentOperation, - rects, - rectCount, - delta, - ), - ); -} - -@ffi.Native( - symbol: 'CGWarpMouseCursorPosition', -) -external int _CGWarpMouseCursorPosition(objc.CGPoint newCursorPosition); - -CGError CGWarpMouseCursorPosition(objc.CGPoint newCursorPosition) { - return CGError.fromValue(_CGWarpMouseCursorPosition(newCursorPosition)); -} - -@ffi.Native(symbol: 'CGWindowLevelForKey') -external int _CGWindowLevelForKey(int key); - -DartCGWindowLevel CGWindowLevelForKey(CGWindowLevelKey key) { - return _CGWindowLevelForKey(key.value); -} - -@ffi.Native() -external CFArrayRef CGWindowListCopyWindowInfo( - int option, - int relativeToWindow, -); - -@ffi.Native() -external CFArrayRef CGWindowListCreate(int option, int relativeToWindow); - -@ffi.Native() -external CFArrayRef CGWindowListCreateDescriptionFromArray( - CFArrayRef windowArray, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native< - CGImageRef Function(objc.CGRect, ffi.Uint32, CGWindowID, ffi.Uint32) ->() -external CGImageRef CGWindowListCreateImage( - objc.CGRect screenBounds, - int listOption, - int windowID, - int imageOption, -); - -@Deprecated('Please use ScreenCaptureKit instead.') -@ffi.Native() -external CGImageRef CGWindowListCreateImageFromArray( - objc.CGRect screenBounds, - CFArrayRef windowArray, - int imageOption, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFMachPortRef CGWindowServerCFMachPort(); - -@ffi.Native() -external CFMachPortRef CGWindowServerCreateServerPort(); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMAudioFormatDescriptionCreate( - CFAllocatorRef allocator, - ffi.Pointer asbd, - int layoutSize, - ffi.Pointer layout, - int magicCookieSize, - ffi.Pointer magicCookie, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CFArrayRef, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int CMAudioFormatDescriptionCreateSummary( - CFAllocatorRef allocator, - CFArrayRef formatDescriptionArray, - int flags, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - Boolean Function( - CMAudioFormatDescriptionRef, - CMAudioFormatDescriptionRef, - CMAudioFormatDescriptionMask, - ffi.Pointer, - ) ->() -external int CMAudioFormatDescriptionEqual( - CMAudioFormatDescriptionRef formatDescription, - CMAudioFormatDescriptionRef otherFormatDescription, - int equalityMask, - ffi.Pointer equalityMaskOut, -); - -@ffi.Native< - ffi.Pointer Function( - CMAudioFormatDescriptionRef, - ffi.Pointer, - ) ->() -external ffi.Pointer -CMAudioFormatDescriptionGetChannelLayout( - CMAudioFormatDescriptionRef desc, - ffi.Pointer sizeOut, -); - -@ffi.Native< - ffi.Pointer Function( - CMAudioFormatDescriptionRef, - ffi.Pointer, - ) ->() -external ffi.Pointer CMAudioFormatDescriptionGetFormatList( - CMAudioFormatDescriptionRef desc, - ffi.Pointer sizeOut, -); - -@ffi.Native< - ffi.Pointer Function( - CMAudioFormatDescriptionRef, - ffi.Pointer, - ) ->() -external ffi.Pointer CMAudioFormatDescriptionGetMagicCookie( - CMAudioFormatDescriptionRef desc, - ffi.Pointer sizeOut, -); - -@ffi.Native< - ffi.Pointer Function(CMAudioFormatDescriptionRef) ->() -external ffi.Pointer -CMAudioFormatDescriptionGetMostCompatibleFormat( - CMAudioFormatDescriptionRef desc, -); - -@ffi.Native< - ffi.Pointer Function(CMAudioFormatDescriptionRef) ->() -external ffi.Pointer -CMAudioFormatDescriptionGetRichestDecodableFormat( - CMAudioFormatDescriptionRef desc, -); - -@ffi.Native< - ffi.Pointer Function(CMAudioFormatDescriptionRef) ->() -external ffi.Pointer -CMAudioFormatDescriptionGetStreamBasicDescription( - CMAudioFormatDescriptionRef desc, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMediaType, - FourCharCode, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMFormatDescriptionCreate( - CFAllocatorRef allocator, - int mediaType, - int mediaSubType, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native() -external int CMFormatDescriptionEqual( - CMFormatDescriptionRef formatDescription, - CMFormatDescriptionRef otherFormatDescription, -); - -@ffi.Native< - Boolean Function( - CMFormatDescriptionRef, - CMFormatDescriptionRef, - CFTypeRef, - CFTypeRef, - ) ->() -external int CMFormatDescriptionEqualIgnoringExtensionKeys( - CMFormatDescriptionRef formatDescription, - CMFormatDescriptionRef otherFormatDescription, - CFTypeRef formatDescriptionExtensionKeysToIgnore, - CFTypeRef sampleDescriptionExtensionAtomKeysToIgnore, -); - -@ffi.Native() -external CFPropertyListRef CMFormatDescriptionGetExtension( - CMFormatDescriptionRef desc, - CFStringRef extensionKey, -); - -@ffi.Native() -external CFDictionaryRef CMFormatDescriptionGetExtensions( - CMFormatDescriptionRef desc, -); - -@ffi.Native() -external int CMFormatDescriptionGetMediaSubType(CMFormatDescriptionRef desc); - -@ffi.Native() -external int CMFormatDescriptionGetMediaType(CMFormatDescriptionRef desc); - -@ffi.Native() -external int CMFormatDescriptionGetTypeID(); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMetadataFormatDescriptionRef, - CMMetadataFormatDescriptionRef, - ffi.Pointer, - ) ->() -external int -CMMetadataFormatDescriptionCreateByMergingMetadataFormatDescriptions( - CFAllocatorRef allocator, - CMMetadataFormatDescriptionRef sourceDescription, - CMMetadataFormatDescriptionRef otherSourceDescription, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMetadataFormatType, - CFArrayRef, - ffi.Pointer, - ) ->() -external int CMMetadataFormatDescriptionCreateWithKeys( - CFAllocatorRef allocator, - int metadataType, - CFArrayRef keys, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMetadataFormatDescriptionRef, - CFArrayRef, - ffi.Pointer, - ) ->() -external int -CMMetadataFormatDescriptionCreateWithMetadataFormatDescriptionAndMetadataSpecifications( - CFAllocatorRef allocator, - CMMetadataFormatDescriptionRef sourceDescription, - CFArrayRef metadataSpecifications, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMetadataFormatType, - CFArrayRef, - ffi.Pointer, - ) ->() -external int CMMetadataFormatDescriptionCreateWithMetadataSpecifications( - CFAllocatorRef allocator, - int metadataType, - CFArrayRef metadataSpecifications, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native() -external CFArrayRef CMMetadataFormatDescriptionGetIdentifiers( - CMMetadataFormatDescriptionRef desc, -); - -@ffi.Native() -external CFDictionaryRef CMMetadataFormatDescriptionGetKeyWithLocalID( - CMMetadataFormatDescriptionRef desc, - int localKeyID, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMMuxedStreamType, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMMuxedFormatDescriptionCreate( - CFAllocatorRef allocator, - int muxType, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native)>() -external int CMSDecoderCopyAllCerts( - CMSDecoderRef cmsDecoder, - ffi.Pointer certsOut, -); - -@ffi.Native)>() -external int CMSDecoderCopyContent( - CMSDecoderRef cmsDecoder, - ffi.Pointer contentOut, -); - -@ffi.Native)>() -external int CMSDecoderCopyDetachedContent( - CMSDecoderRef cmsDecoder, - ffi.Pointer detachedContentOut, -); - -@ffi.Native)>() -external int CMSDecoderCopyEncapsulatedContentType( - CMSDecoderRef cmsDecoder, - ffi.Pointer eContentTypeOut, -); - -@ffi.Native< - OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSDecoderCopySignerCert( - CMSDecoderRef cmsDecoder, - int signerIndex, - ffi.Pointer signerCertOut, -); - -@ffi.Native< - OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSDecoderCopySignerEmailAddress( - CMSDecoderRef cmsDecoder, - int signerIndex, - ffi.Pointer signerEmailAddressOut, -); - -@ffi.Native< - OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSDecoderCopySignerSigningTime( - CMSDecoderRef cmsDecoder, - int signerIndex, - ffi.Pointer signingTime, -); - -@ffi.Native< - OSStatus Function( - CMSDecoderRef, - ffi.Size, - CFTypeRef, - Boolean, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CMSDecoderCopySignerStatus( - CMSDecoderRef cmsDecoder, - int signerIndex, - CFTypeRef policyOrArray, - int evaluateSecTrust, - ffi.Pointer signerStatusOut, - ffi.Pointer secTrustOut, - ffi.Pointer certVerifyResultCodeOut, -); - -@ffi.Native< - OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSDecoderCopySignerTimestamp( - CMSDecoderRef cmsDecoder, - int signerIndex, - ffi.Pointer timestamp, -); - -@ffi.Native< - OSStatus Function(CMSDecoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSDecoderCopySignerTimestampCertificates( - CMSDecoderRef cmsDecoder, - int signerIndex, - ffi.Pointer certificateRefs, -); - -@ffi.Native< - OSStatus Function( - CMSDecoderRef, - CFTypeRef, - ffi.Size, - ffi.Pointer, - ) ->() -external int CMSDecoderCopySignerTimestampWithPolicy( - CMSDecoderRef cmsDecoder, - CFTypeRef timeStampPolicy, - int signerIndex, - ffi.Pointer timestamp, -); - -@ffi.Native)>() -external int CMSDecoderCreate(ffi.Pointer cmsDecoderOut); - -@ffi.Native() -external int CMSDecoderFinalizeMessage(CMSDecoderRef cmsDecoder); - -@ffi.Native)>() -external int CMSDecoderGetNumSigners( - CMSDecoderRef cmsDecoder, - ffi.Pointer numSignersOut, -); - -@ffi.Native() -external int CMSDecoderGetTypeID(); - -@ffi.Native)>() -external int CMSDecoderIsContentEncrypted( - CMSDecoderRef cmsDecoder, - ffi.Pointer isEncryptedOut, -); - -@ffi.Native() -external int CMSDecoderSetDetachedContent( - CMSDecoderRef cmsDecoder, - CFDataRef detachedContent, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CMSDecoderSetSearchKeychain( - CMSDecoderRef cmsDecoder, - CFTypeRef keychainOrArray, -); - -@ffi.Native, ffi.Size)>() -external int CMSDecoderUpdateMessage( - CMSDecoderRef cmsDecoder, - ffi.Pointer msgBytes, - int msgBytesLen, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFTypeRef, - CFTypeRef, - ffi.Pointer, - Boolean, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external int CMSEncode( - CFTypeRef signers, - CFTypeRef recipients, - ffi.Pointer eContentType, - int detachedContent, - int signedAttributes, - ffi.Pointer content, - int contentLen, - ffi.Pointer encodedContentOut, -); - -@ffi.Native< - OSStatus Function( - CFTypeRef, - CFTypeRef, - CFTypeRef, - Boolean, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external int CMSEncodeContent( - CFTypeRef signers, - CFTypeRef recipients, - CFTypeRef eContentTypeOID, - int detachedContent, - int signedAttributes, - ffi.Pointer content, - int contentLen, - ffi.Pointer encodedContentOut, -); - -@ffi.Native() -external int CMSEncoderAddRecipients( - CMSEncoderRef cmsEncoder, - CFTypeRef recipientOrArray, -); - -@ffi.Native() -external int CMSEncoderAddSignedAttributes( - CMSEncoderRef cmsEncoder, - int signedAttributes, -); - -@ffi.Native() -external int CMSEncoderAddSigners( - CMSEncoderRef cmsEncoder, - CFTypeRef signerOrArray, -); - -@ffi.Native() -external int CMSEncoderAddSupportingCerts( - CMSEncoderRef cmsEncoder, - CFTypeRef certOrArray, -); - -@ffi.Native)>() -external int CMSEncoderCopyEncapsulatedContentType( - CMSEncoderRef cmsEncoder, - ffi.Pointer eContentTypeOut, -); - -@ffi.Native)>() -external int CMSEncoderCopyEncodedContent( - CMSEncoderRef cmsEncoder, - ffi.Pointer encodedContentOut, -); - -@ffi.Native)>() -external int CMSEncoderCopyRecipients( - CMSEncoderRef cmsEncoder, - ffi.Pointer recipientsOut, -); - -@ffi.Native< - OSStatus Function(CMSEncoderRef, ffi.Size, ffi.Pointer) ->() -external int CMSEncoderCopySignerTimestamp( - CMSEncoderRef cmsEncoder, - int signerIndex, - ffi.Pointer timestamp, -); - -@ffi.Native< - OSStatus Function( - CMSEncoderRef, - CFTypeRef, - ffi.Size, - ffi.Pointer, - ) ->() -external int CMSEncoderCopySignerTimestampWithPolicy( - CMSEncoderRef cmsEncoder, - CFTypeRef timeStampPolicy, - int signerIndex, - ffi.Pointer timestamp, -); - -@ffi.Native)>() -external int CMSEncoderCopySigners( - CMSEncoderRef cmsEncoder, - ffi.Pointer signersOut, -); - -@ffi.Native)>() -external int CMSEncoderCopySupportingCerts( - CMSEncoderRef cmsEncoder, - ffi.Pointer certsOut, -); - -@ffi.Native)>() -external int CMSEncoderCreate(ffi.Pointer cmsEncoderOut); - -@ffi.Native)>() -external int CMSEncoderGetCertificateChainMode( - CMSEncoderRef cmsEncoder, - ffi.Pointer chainModeOut, -); - -@ffi.Native)>() -external int CMSEncoderGetHasDetachedContent( - CMSEncoderRef cmsEncoder, - ffi.Pointer detachedContentOut, -); - -@ffi.Native() -external int CMSEncoderGetTypeID(); - -@ffi.Native( - symbol: 'CMSEncoderSetCertificateChainMode', -) -external int _CMSEncoderSetCertificateChainMode( - CMSEncoderRef cmsEncoder, - int chainMode, -); - -DartSInt32 CMSEncoderSetCertificateChainMode( - CMSEncoderRef cmsEncoder, - CMSCertificateChainMode chainMode, -) { - return _CMSEncoderSetCertificateChainMode(cmsEncoder, chainMode.value); -} - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CMSEncoderSetEncapsulatedContentType( - CMSEncoderRef cmsEncoder, - ffi.Pointer eContentType, -); - -@ffi.Native() -external int CMSEncoderSetEncapsulatedContentTypeOID( - CMSEncoderRef cmsEncoder, - CFTypeRef eContentTypeOID, -); - -@ffi.Native() -external int CMSEncoderSetHasDetachedContent( - CMSEncoderRef cmsEncoder, - int detachedContent, -); - -@ffi.Native() -external int CMSEncoderSetSignerAlgorithm( - CMSEncoderRef cmsEncoder, - CFStringRef digestAlgorithm, -); - -@ffi.Native, ffi.Size)>() -external int CMSEncoderUpdateContent( - CMSEncoderRef cmsEncoder, - ffi.Pointer content, - int contentLen, -); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CMTextFormatDescriptionGetDefaultStyle( - CMFormatDescriptionRef desc, - ffi.Pointer localFontIDOut, - ffi.Pointer boldOut, - ffi.Pointer italicOut, - ffi.Pointer underlineOut, - ffi.Pointer fontSizeOut, - ffi.Pointer colorComponentsOut, -); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - Boolean, - CGFloat, - ffi.Pointer, - ) ->() -external int CMTextFormatDescriptionGetDefaultTextBox( - CMFormatDescriptionRef desc, - int originIsAtTopLeft, - double heightOfTextTrack, - ffi.Pointer defaultTextBoxOut, -); - -@ffi.Native< - OSStatus Function(CMFormatDescriptionRef, ffi.Pointer) ->() -external int CMTextFormatDescriptionGetDisplayFlags( - CMFormatDescriptionRef desc, - ffi.Pointer displayFlagsOut, -); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - ffi.Uint16, - ffi.Pointer, - ) ->() -external int CMTextFormatDescriptionGetFontName( - CMFormatDescriptionRef desc, - int localFontID, - ffi.Pointer fontNameOut, -); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CMTextFormatDescriptionGetJustification( - CMFormatDescriptionRef desc, - ffi.Pointer horizontaJustificationlOut, - ffi.Pointer verticalJustificationOut, -); - -@ffi.Native() -external CMTime CMTimeAbsoluteValue(CMTime time$1); - -@ffi.Native() -external CMTime CMTimeAdd(CMTime lhs, CMTime rhs); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMTimeCodeFormatType, - CMTime, - ffi.Uint32, - ffi.Uint32, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMTimeCodeFormatDescriptionCreate( - CFAllocatorRef allocator, - int timeCodeFormatType, - CMTime frameDuration, - int frameQuanta, - int flags, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native() -external CMTime CMTimeCodeFormatDescriptionGetFrameDuration( - CMTimeCodeFormatDescriptionRef timeCodeFormatDescription, -); - -@ffi.Native() -external int CMTimeCodeFormatDescriptionGetFrameQuanta( - CMTimeCodeFormatDescriptionRef timeCodeFormatDescription, -); - -@ffi.Native() -external int CMTimeCodeFormatDescriptionGetTimeCodeFlags( - CMTimeCodeFormatDescriptionRef desc, -); - -@ffi.Native() -external int CMTimeCompare(CMTime time1, CMTime time2); - -@ffi.Native( - symbol: 'CMTimeConvertScale', -) -external CMTime _CMTimeConvertScale( - CMTime time$1, - int newTimescale, - int method, -); - -CMTime CMTimeConvertScale( - CMTime time$1, - int newTimescale, - CMTimeRoundingMethod method, -) { - return _CMTimeConvertScale(time$1, newTimescale, method.value); -} - -@ffi.Native() -external CFDictionaryRef CMTimeCopyAsDictionary( - CMTime time$1, - CFAllocatorRef allocator, -); - -@ffi.Native() -external CFStringRef CMTimeCopyDescription( - CFAllocatorRef allocator, - CMTime time$1, -); - -@ffi.Native() -external double CMTimeGetSeconds(CMTime time$1); - -@ffi.Native() -external CMTime CMTimeMake(int value, int timescale); - -@ffi.Native() -external CMTime CMTimeMakeFromDictionary( - CFDictionaryRef dictionaryRepresentation, -); - -@ffi.Native() -external CMTime CMTimeMakeWithEpoch(int value, int timescale, int epoch); - -@ffi.Native() -external CMTime CMTimeMakeWithSeconds(double seconds, int preferredTimescale); - -@ffi.Native() -external CMTime CMTimeMaximum(CMTime time1, CMTime time2); - -@ffi.Native() -external CMTime CMTimeMinimum(CMTime time1, CMTime time2); - -@ffi.Native() -external CMTime CMTimeMultiply(CMTime time$1, int multiplier); - -@ffi.Native() -external CMTime CMTimeMultiplyByFloat64(CMTime time$1, double multiplier); - -@ffi.Native() -external CMTime CMTimeMultiplyByRatio( - CMTime time$1, - int multiplier, - int divisor, -); - -@ffi.Native() -external void CMTimeShow(CMTime time$1); - -@ffi.Native() -external CMTime CMTimeSubtract(CMTime lhs, CMTime rhs); - -@ffi.Native< - OSStatus Function(CMVideoFormatDescriptionRef, ffi.Pointer) ->() -external int CMVideoFormatDescriptionCopyTagCollectionArray( - CMVideoFormatDescriptionRef formatDescription, - ffi.Pointer tagCollectionsOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CMVideoCodecType, - ffi.Int32, - ffi.Int32, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionCreate( - CFAllocatorRef allocator, - int codecType, - int width, - int height, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - CVImageBufferRef, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionCreateForImageBuffer( - CFAllocatorRef allocator, - CVImageBufferRef imageBuffer, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionCreateFromH264ParameterSets( - CFAllocatorRef allocator, - int parameterSetCount, - ffi.Pointer> parameterSetPointers, - ffi.Pointer parameterSetSizes, - int NALUnitHeaderLength, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native< - OSStatus Function( - CFAllocatorRef, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionCreateFromHEVCParameterSets( - CFAllocatorRef allocator, - int parameterSetCount, - ffi.Pointer> parameterSetPointers, - ffi.Pointer parameterSetSizes, - int NALUnitHeaderLength, - CFDictionaryRef extensions, - ffi.Pointer formatDescriptionOut, -); - -@ffi.Native() -external objc.CGRect CMVideoFormatDescriptionGetCleanAperture( - CMVideoFormatDescriptionRef videoDesc, - int originIsAtTopLeft, -); - -@ffi.Native() -external CMVideoDimensions CMVideoFormatDescriptionGetDimensions( - CMVideoFormatDescriptionRef videoDesc, -); - -@ffi.Native() -external CFArrayRef -CMVideoFormatDescriptionGetExtensionKeysCommonWithImageBuffers(); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionGetH264ParameterSetAtIndex( - CMFormatDescriptionRef videoDesc, - int parameterSetIndex, - ffi.Pointer> parameterSetPointerOut, - ffi.Pointer parameterSetSizeOut, - ffi.Pointer parameterSetCountOut, - ffi.Pointer NALUnitHeaderLengthOut, -); - -@ffi.Native< - OSStatus Function( - CMFormatDescriptionRef, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CMVideoFormatDescriptionGetHEVCParameterSetAtIndex( - CMFormatDescriptionRef videoDesc, - int parameterSetIndex, - ffi.Pointer> parameterSetPointerOut, - ffi.Pointer parameterSetSizeOut, - ffi.Pointer parameterSetCountOut, - ffi.Pointer NALUnitHeaderLengthOut, -); - -@ffi.Native< - objc.CGSize Function(CMVideoFormatDescriptionRef, Boolean, Boolean) ->() -external objc.CGSize CMVideoFormatDescriptionGetPresentationDimensions( - CMVideoFormatDescriptionRef videoDesc, - int usePixelAspectRatio, - int useCleanAperture, -); - -@ffi.Native() -external int CMVideoFormatDescriptionMatchesImageBuffer( - CMVideoFormatDescriptionRef desc, - CVImageBufferRef imageBuffer, -); - -@ffi.Native)>() -external int CSBackupIsItemExcluded( - CFURLRef item, - ffi.Pointer excludeByPath, -); - -@ffi.Native() -external int CSBackupSetItemExcluded( - CFURLRef item, - int exclude, - int excludeByPath, -); - -@Deprecated('Deprecated') -@ffi.Native() -external CFStringRef CSCopyMachineName(); - -@Deprecated('Deprecated') -@ffi.Native() -external CFStringRef CSCopyUserName(int useShortName); - -@ffi.Native() -external void CSDiskSpaceCancelRecovery(CFUUIDRef operationUUID); - -@ffi.Native() -external int CSDiskSpaceGetRecoveryEstimate(CFURLRef volumeURL); - -@ffi.Native< - ffi.Void Function( - CFURLRef, - UInt64, - CSDiskSpaceRecoveryOptions, - ffi.Pointer, - dispatch_queue_t, - CSDiskSpaceRecoveryCallback, - ) ->(symbol: 'CSDiskSpaceStartRecovery') -external void _CSDiskSpaceStartRecovery( - CFURLRef volumeURL, - int bytesNeeded, - int options, - ffi.Pointer outOperationUUID, - dispatch_queue_t callbackQueue, - CSDiskSpaceRecoveryCallback callback, -); - -void CSDiskSpaceStartRecovery( - CFURLRef volumeURL, - DartUInt64 bytesNeeded, - DartCSDiskSpaceRecoveryOptions options, - ffi.Pointer outOperationUUID, - Dartdispatch_queue_t callbackQueue, - DartCSDiskSpaceRecoveryCallback callback, -) { - final _$$ref = callbackQueue.ref; - final _$$ref$1 = callback.ref; - return _CSDiskSpaceStartRecovery( - volumeURL, - bytesNeeded, - options, - outOperationUUID, - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@Deprecated('Deprecated') -@ffi.Native() -external int CSGetComponentsThreadMode(); - -@ffi.Native() -external CSIdentityAuthorityRef CSGetDefaultIdentityAuthority(); - -@ffi.Native() -external CSIdentityAuthorityRef CSGetLocalIdentityAuthority(); - -@ffi.Native() -external CSIdentityAuthorityRef CSGetManagedIdentityAuthority(); - -@ffi.Native() -external void CSIdentityAddAlias(CSIdentityRef identity, CFStringRef alias); - -@ffi.Native() -external void CSIdentityAddMember(CSIdentityRef group, CSIdentityRef member); - -@ffi.Native() -external int CSIdentityAuthenticateUsingPassword( - CSIdentityRef user, - CFStringRef password, -); - -@ffi.Native() -external CFStringRef CSIdentityAuthorityCopyLocalizedName( - CSIdentityAuthorityRef authority, -); - -@ffi.Native() -external int CSIdentityAuthorityGetTypeID(); - -@ffi.Native< - Boolean Function(CSIdentityRef, AuthorizationRef, ffi.Pointer) ->() -external int CSIdentityCommit( - CSIdentityRef identity, - AuthorizationRef authorization, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function( - CSIdentityRef, - ffi.Pointer, - CFRunLoopRef, - CFStringRef, - AuthorizationRef, - ) ->() -external int CSIdentityCommitAsynchronously( - CSIdentityRef identity, - ffi.Pointer clientContext, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, - AuthorizationRef authorization, -); - -@ffi.Native< - CSIdentityRef Function( - CFAllocatorRef, - CSIdentityClass, - CFStringRef, - CFStringRef, - CSIdentityFlags, - CSIdentityAuthorityRef, - ) ->() -external CSIdentityRef CSIdentityCreate( - CFAllocatorRef allocator, - int identityClass, - CFStringRef fullName, - CFStringRef posixName, - int flags, - CSIdentityAuthorityRef authority, -); - -@ffi.Native() -external CSIdentityRef CSIdentityCreateCopy( - CFAllocatorRef allocator, - CSIdentityRef identity, -); - -@ffi.Native() -external CSIdentityQueryRef CSIdentityCreateGroupMembershipQuery( - CFAllocatorRef allocator, - CSIdentityRef group, -); - -@ffi.Native() -external CFDataRef CSIdentityCreatePersistentReference( - CFAllocatorRef allocator, - CSIdentityRef identity, -); - -@ffi.Native() -external void CSIdentityDelete(CSIdentityRef identity); - -@ffi.Native() -external CFArrayRef CSIdentityGetAliases(CSIdentityRef identity); - -@ffi.Native() -external CSIdentityAuthorityRef CSIdentityGetAuthority(CSIdentityRef identity); - -@ffi.Native() -external SecCertificateRef CSIdentityGetCertificate(CSIdentityRef user); - -@ffi.Native() -external int CSIdentityGetClass(CSIdentityRef identity); - -@ffi.Native() -external CFStringRef CSIdentityGetEmailAddress(CSIdentityRef identity); - -@ffi.Native() -external CFStringRef CSIdentityGetFullName(CSIdentityRef identity); - -@ffi.Native() -external CFDataRef CSIdentityGetImageData(CSIdentityRef identity); - -@ffi.Native() -external CFStringRef CSIdentityGetImageDataType(CSIdentityRef identity); - -@ffi.Native() -external CFURLRef CSIdentityGetImageURL(CSIdentityRef identity); - -@ffi.Native() -external int CSIdentityGetPosixID(CSIdentityRef identity); - -@ffi.Native() -external CFStringRef CSIdentityGetPosixName(CSIdentityRef identity); - -@ffi.Native() -external int CSIdentityGetTypeID(); - -@ffi.Native() -external CFUUIDRef CSIdentityGetUUID(CSIdentityRef identity); - -@ffi.Native() -external int CSIdentityIsCommitting(CSIdentityRef identity); - -@ffi.Native() -external int CSIdentityIsEnabled(CSIdentityRef user); - -@ffi.Native() -external int CSIdentityIsHidden(CSIdentityRef identity); - -@ffi.Native() -external int CSIdentityIsMemberOfGroup( - CSIdentityRef identity, - CSIdentityRef group, -); - -@ffi.Native() -external CFArrayRef CSIdentityQueryCopyResults(CSIdentityQueryRef query); - -@ffi.Native< - CSIdentityQueryRef Function( - CFAllocatorRef, - CSIdentityClass, - CSIdentityAuthorityRef, - ) ->() -external CSIdentityQueryRef CSIdentityQueryCreate( - CFAllocatorRef allocator, - int identityClass, - CSIdentityAuthorityRef authority, -); - -@ffi.Native() -external CSIdentityQueryRef CSIdentityQueryCreateForCurrentUser( - CFAllocatorRef allocator, -); - -@ffi.Native< - CSIdentityQueryRef Function( - CFAllocatorRef, - CFStringRef, - CSIdentityQueryStringComparisonMethod, - CSIdentityClass, - CSIdentityAuthorityRef, - ) ->() -external CSIdentityQueryRef CSIdentityQueryCreateForName( - CFAllocatorRef allocator, - CFStringRef name, - int comparisonMethod, - int identityClass, - CSIdentityAuthorityRef authority, -); - -@ffi.Native() -external CSIdentityQueryRef CSIdentityQueryCreateForPersistentReference( - CFAllocatorRef allocator, - CFDataRef referenceData, -); - -@ffi.Native< - CSIdentityQueryRef Function( - CFAllocatorRef, - id_t, - CSIdentityClass, - CSIdentityAuthorityRef, - ) ->() -external CSIdentityQueryRef CSIdentityQueryCreateForPosixID( - CFAllocatorRef allocator, - int posixID, - int identityClass, - CSIdentityAuthorityRef authority, -); - -@ffi.Native< - CSIdentityQueryRef Function(CFAllocatorRef, CFUUIDRef, CSIdentityAuthorityRef) ->() -external CSIdentityQueryRef CSIdentityQueryCreateForUUID( - CFAllocatorRef allocator, - CFUUIDRef uuid, - CSIdentityAuthorityRef authority, -); - -@ffi.Native< - Boolean Function( - CSIdentityQueryRef, - CSIdentityQueryFlags, - ffi.Pointer, - ) ->() -external int CSIdentityQueryExecute( - CSIdentityQueryRef query, - int flags, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function( - CSIdentityQueryRef, - CSIdentityQueryFlags, - ffi.Pointer, - CFRunLoopRef, - CFStringRef, - ) ->() -external int CSIdentityQueryExecuteAsynchronously( - CSIdentityQueryRef query, - int flags, - ffi.Pointer clientContext, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native() -external int CSIdentityQueryGetTypeID(); - -@ffi.Native() -external void CSIdentityQueryStop(CSIdentityQueryRef query); - -@ffi.Native() -external void CSIdentityRemoveAlias(CSIdentityRef identity, CFStringRef alias); - -@ffi.Native() -external void CSIdentityRemoveClient(CSIdentityRef identity); - -@ffi.Native() -external void CSIdentityRemoveMember(CSIdentityRef group, CSIdentityRef member); - -@ffi.Native() -external void CSIdentitySetCertificate( - CSIdentityRef user, - SecCertificateRef certificate, -); - -@ffi.Native() -external void CSIdentitySetEmailAddress( - CSIdentityRef identity, - CFStringRef emailAddress, -); - -@ffi.Native() -external void CSIdentitySetFullName( - CSIdentityRef identity, - CFStringRef fullName, -); - -@ffi.Native() -external void CSIdentitySetImageData( - CSIdentityRef identity, - CFDataRef imageData, - CFStringRef imageDataType, -); - -@ffi.Native() -external void CSIdentitySetImageURL(CSIdentityRef identity, CFURLRef url); - -@ffi.Native() -external void CSIdentitySetIsEnabled(CSIdentityRef user, int isEnabled); - -@ffi.Native() -external void CSIdentitySetPassword(CSIdentityRef user, CFStringRef password); - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ADC_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AD_CA_ISSUERS; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AD_CA_REPOSITORY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AD_OCSP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AD_TIME_STAMPING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_EPHEM; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_EPHEM_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID1_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID2_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_HYBRID_ONEFLOW; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_ONE_FLOW; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_ONE_FLOW_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_PUB_NUMBER; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_STATIC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_DH_STATIC_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_MQV1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_MQV1_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_MQV2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ANSI_MQV2_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLEID_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLEID_SHARING_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_ASC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_ECDSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_CODE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_CODE_SIGNING_DEV; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_ICHAT_ENCRYPTION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_ICHAT_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_PASSBOOK_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_QA_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_RESOURCE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EKU_SYSTEM_IDENTITY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_AAI_INTERMEDIATE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ADC_APPLE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ADC_DEV_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLEID_INTERMEDIATE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLEID_SHARING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_APPLE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_CODE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_DEVELOPER_AUTHENTICATION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ESCROW_SERVICE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_INTERMEDIATE_MARKER; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_ITMS_INTERMEDIATE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_MACAPPSTORE_RECEIPT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_PASSBOOK_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_PROVISIONING_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_SERVER_AUTHENTICATION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_SYSINT2_INTERMEDIATE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_EXTENSION_WWDR_INTERMEDIATE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_FEE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_FEED; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_FEEDEXP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_FEE_MD5; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_FEE_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_ISIGN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_APPLEID_SHARING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_CODE_SIGN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_CODE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_CSR_GEN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_EAP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_ESCROW_SERVICE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_ICHAT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_IP_SEC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_LOCAL_CERT_GEN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_MACAPPSTORE_RECEIPT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_MOBILE_STORE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PACKAGE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PASSBOOK_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PCS_ESCROW_SERVICE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PKINIT_CLIENT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PKINIT_SERVER; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_PROVISIONING_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_QA_PROFILE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_RESOURCE_SIGN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION_CRL; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_REVOCATION_OCSP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_SMIME; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_SSL; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_SW_UPDATE_SIGNING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_TEST_MOBILE_STORE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_TP_TIMESTAMPING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_APPLE_X509_BASIC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AliasedEntryName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AuthorityInfoAccess; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AuthorityKeyIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_AuthorityRevocationList; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_BasicConstraints; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_BiometricInfo; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_BusinessCategory; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CACertificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CSSMKeyStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CertIssuer; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Certicom; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CerticomEllCurve; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CertificatePolicies; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CertificateRevocationList; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ChallengePassword; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ClientAuth; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveFacsimileTelephoneNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveInternationalISDNNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveOrganizationName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveOrganizationalUnitName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectivePhysicalDeliveryOfficeName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectivePostOfficeBox; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectivePostalAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectivePostalCode; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveStateProvinceName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveStreetAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveTelephoneNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveTelexNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CollectiveTelexTerminalIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CommonName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ContentType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CounterSignature; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CountryName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CrlDistributionPoints; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CrlNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CrlReason; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_CrossCertificatePair; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DES_CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DH; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DNQualifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EMAIL_ENCRYPT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EMAIL_SIGN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_EXTENSION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_IDENTITY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_FETCH; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_LIST; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_REMOVE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_ARCHIVE_STORE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_EMAIL_ENCRYPT; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_EMAIL_SIGN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_IDENTITY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_SHARED_SERVICES; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_ASYNC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_HOSTNAME; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_IS_PENDING; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_PASSWORD; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_RENEW; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DOTMAC_CERT_REQ_VALUE_USERNAME; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DSA_CMS; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DSA_JDK; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DeltaCrlIndicator; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Description; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DestinationIndicator; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DistinguishedName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_DomainComponent; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSHA224; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSHA256; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSHA384; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSHA512; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ECDSA_WithSpecified; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_EKU_IPSec; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_COMPLIANCE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_LIMIT_VALUE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_RETENTION; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ETSI_QCS_QC_SSCD; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_EmailAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_EmailProtection; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_EnhancedSearchGuide; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ExtendedCertificateAttributes; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ExtendedKeyUsage; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ExtendedKeyUsageAny; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ExtendedUseCodeSigning; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_FacsimileTelephoneNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_GenerationQualifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_GivenName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_HoldInstructionCode; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_HouseIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_InhibitAnyPolicy; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Initials; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_InternationalISDNNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_InvalidityDate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_IssuerAltName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_IssuingDistributionPoint; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_IssuingDistributionPoints; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_AUTH_DATA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_DH_KEY_DATA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_KP_CLIENT_AUTH; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_KP_KDC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KERBv5_PKINIT_RKEY_DATA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KeyUsage; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_KnowledgeInformation; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_LocalityName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MACAPPSTORE_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MACAPPSTORE_RECEIPT_CERT_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD2WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD4; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD4WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD5; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MD5WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MOBILE_STORE_SIGNING_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Member; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MessageDigest; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_MicrosoftSGC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Name; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_NameConstraints; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_NetscapeCertSequence; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_NetscapeCertType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_NetscapeSGC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OAEP_ID_PSPECIFIED; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OAEP_MGF1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OCSPSigning; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OID_QCS_SYNTAX_V1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OID_QCS_SYNTAX_V2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ObjectClass; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OrganizationName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_OrganizationalUnitName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Owner; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PDA_COUNTRY_CITIZEN; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PDA_COUNTRY_RESIDENCE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PDA_DATE_OF_BIRTH; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PDA_GENDER; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PDA_PLACE_OF_BIRTH; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_certBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_crlBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_keyBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd128BitRC2CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd128BitRC4; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd2Key3DESCBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd3Key3DESCBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbeWithSHAAnd40BitRC4; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_pbewithSHAAnd40BitRC2CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_safeContentsBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_secretBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS12_shroudedKeyBag; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS3; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_DES_EDE3_CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_DIGEST_ALG; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_ENCRYPT_ALG; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_HMAC_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_PBES2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_PBKDF2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_PBMAC1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_RC2_CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_RC5_CBC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD2AndDES; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD2AndRC2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD5AndDES; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithMD5AndRC2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithSHA1AndDES; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS5_pbeWithSHA1AndRC2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_Data; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_DataWithAttributes; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_DigestedData; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_EncryptedData; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_EncryptedPrivateKeyInfo; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_EnvelopedData; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_SignedAndEnvelopedData; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS7_SignedData; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_CertTypes; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_CrlTypes; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_FriendlyName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_Id_Ct_TSTInfo; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_LocalKeyId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_SdsiCertificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_TimeStampToken; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_X509Certificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKCS9_X509Crl; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_ARCHIVE_CUTOFF; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_BASIC; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_CRL; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_NOCHECK; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_NONCE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_RESPONSE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PKIX_OCSP_SERVICE_LOCATOR; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PhysicalDeliveryOfficeName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PolicyConstraints; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PolicyMappings; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PostOfficeBox; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PostalAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PostalCode; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PreferredDeliveryMethod; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PresentationAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_PrivateKeyUsagePeriod; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ProtocolInformation; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_QC_Statements; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_QT_CPS; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_QT_UNOTICE; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_RSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_RSAWithOAEP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_RegisteredAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_RoleOccupant; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1WithDSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1WithDSA_CMS; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1WithDSA_JDK; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA1WithRSA_OIW; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA224; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA224WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA256; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA256WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA384; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA384WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA512; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SHA512WithRSA; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SearchGuide; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SeeAlso; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SerialNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ServerAuth; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SigningTime; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_StateProvinceName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_StreetAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectAltName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectDirectoryAttributes; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectEmailAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectInfoAccess; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectKeyIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectPicture; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SubjectSignatureBitmap; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_SupportedApplicationContext; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Surname; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_TEST_MOBILE_STORE_SIGNING_POLICY; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_TelephoneNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_TelexNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_TelexTerminalIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_TimeStamping; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_Title; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UniqueIdentifier; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UniqueMember; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UnstructuredAddress; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UnstructuredName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UseExemptions; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UserCertificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UserID; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_UserPassword; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLIssuerNameCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLIssuerNameLDAP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLIssuerStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLNextUpdate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLNumberOfRevokedCertEntries; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedCertificatesCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedCertificatesStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryRevocationDate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntrySerialNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLRevokedEntryStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CRLThisUpdate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CertificateIssuerUniqueId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1CertificateSubjectUniqueId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1IssuerName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1IssuerNameCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1IssuerNameLDAP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1IssuerNameStd; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SerialNumber; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1Signature; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithm; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithmParameters; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SignatureAlgorithmTBS; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SignatureCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SignatureStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectName; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectNameCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectNameLDAP; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectNameStd; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKey; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyAlgorithm; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyAlgorithmParameters; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1SubjectPublicKeyCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1ValidityNotAfter; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1ValidityNotBefore; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V1Version; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLAllExtensionsCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLAllExtensionsStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLExtensionCritical; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLExtensionId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLExtensionType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLNumberOfExtensions; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryAllExtensionsCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryAllExtensionsStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionCritical; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryExtensionValue; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntryNumberOfExtensions; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntrySingleExtensionCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLRevokedEntrySingleExtensionStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLSignedCrlCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLSignedCrlStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLSingleExtensionCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLSingleExtensionStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLTbsCertListCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLTbsCertListStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V2CRLVersion; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3Certificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionCritical; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionId; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionValue; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionsCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateExtensionsStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3CertificateNumberOfExtensions; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3SignedCertificate; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X509V3SignedCertificateCStruct; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_C_TwoCurve; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_EllCurve; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_FieldType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_PrimeCurve; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_PubKeyType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X9_62_SigType; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_X_121Address; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_ecPublicKey; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp112r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp112r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp128r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp128r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp160k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp160r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp160r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp192k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp192r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp224k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp224r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp256k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp256r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp384r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_secp521r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect113r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect113r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect131r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect131r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect163k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect163r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect163r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect193r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect193r2; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect233k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect233r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect239k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect283k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect283r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect409k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect409r1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect571k1; - -@ffi.Native() -external final SecAsn1Oid CSSMOID_sect571r1; - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_AC_HANDLE, - ffi.Pointer, - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TUPLEGROUP_PTR, - ) ->() -external int CSSM_AC_AuthCompute( - int ACHandle, - ffi.Pointer BaseAuthorizations, - ffi.Pointer Credentials, - int NumberOfRequestors, - ffi.Pointer Requestors, - ffi.Pointer RequestedAuthorizationPeriod, - ffi.Pointer RequestedAuthorization, - CSSM_TUPLEGROUP_PTR AuthorizationResult, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_AC_HANDLE, - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CSSM_AC_PassThrough( - int ACHandle, - int TPHandle, - int CLHandle, - int CCHandle, - ffi.Pointer DBList, - int PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_CL_CertAbortCache(int CLHandle, int CertHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_CL_CertAbortQuery(int CLHandle, int ResultsHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - CSSM_HANDLE_PTR, - ) ->() -external int CSSM_CL_CertCache( - int CLHandle, - ffi.Pointer Cert, - CSSM_HANDLE_PTR CertHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CertCreateTemplate( - int CLHandle, - int NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertDescribeFormat( - int CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGetAllFields( - int CLHandle, - ffi.Pointer Cert, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGetAllTemplateFields( - int CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_HANDLE, - ffi.Pointer, - CSSM_HANDLE_PTR, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGetFirstCachedFieldValue( - int CLHandle, - int CertHandle, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_HANDLE_PTR, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGetFirstFieldValue( - int CLHandle, - ffi.Pointer Cert, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGetKeyInfo( - int CLHandle, - ffi.Pointer Cert, - ffi.Pointer Key, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CertGetNextCachedFieldValue( - int CLHandle, - int ResultsHandle, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CertGetNextFieldValue( - int CLHandle, - int ResultsHandle, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CertGroupFromVerifiedBundle( - int CLHandle, - int CCHandle, - ffi.Pointer CertBundle, - ffi.Pointer SignerCert, - ffi.Pointer CertGroup, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CertGroupToSignedBundle( - int CLHandle, - int CCHandle, - ffi.Pointer CertGroupToBundle, - ffi.Pointer BundleInfo, - CSSM_DATA_PTR SignedBundle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CertSign( - int CLHandle, - int CCHandle, - ffi.Pointer CertTemplate, - ffi.Pointer SignScope, - int ScopeSize, - CSSM_DATA_PTR SignedCert, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - uint32, - ) ->() -external int CSSM_CL_CertVerify( - int CLHandle, - int CCHandle, - ffi.Pointer CertToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - int ScopeSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_CC_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CertVerifyWithKey( - int CLHandle, - int CCHandle, - ffi.Pointer CertToBeVerified, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_CL_CrlAbortCache(int CLHandle, int CrlHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_CL_CrlAbortQuery(int CLHandle, int ResultsHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CrlAddCert( - int CLHandle, - int CCHandle, - ffi.Pointer Cert, - int NumberOfFields, - ffi.Pointer CrlEntryFields, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - CSSM_HANDLE_PTR, - ) ->() -external int CSSM_CL_CrlCache( - int CLHandle, - ffi.Pointer Crl, - CSSM_HANDLE_PTR CrlHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CrlCreateTemplate( - int CLHandle, - int NumberOfFields, - ffi.Pointer CrlTemplate, - CSSM_DATA_PTR NewCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CrlDescribeFormat( - int CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CrlGetAllCachedRecordFields( - int CLHandle, - int CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer NumberOfFields, - ffi.Pointer CrlFields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CrlGetAllFields( - int CLHandle, - ffi.Pointer Crl, - ffi.Pointer NumberOfCrlFields, - ffi.Pointer CrlFields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_HANDLE_PTR, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CrlGetFirstCachedFieldValue( - int CLHandle, - int CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_HANDLE_PTR, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_CrlGetFirstFieldValue( - int CLHandle, - ffi.Pointer Crl, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CrlGetNextCachedFieldValue( - int CLHandle, - int ResultsHandle, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CrlGetNextFieldValue( - int CLHandle, - int ResultsHandle, - ffi.Pointer Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CrlRemoveCert( - int CLHandle, - ffi.Pointer Cert, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CrlSetFields( - int CLHandle, - int NumberOfFields, - ffi.Pointer CrlTemplate, - ffi.Pointer OldCrl, - CSSM_DATA_PTR ModifiedCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_CrlSign( - int CLHandle, - int CCHandle, - ffi.Pointer UnsignedCrl, - ffi.Pointer SignScope, - int ScopeSize, - CSSM_DATA_PTR SignedCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - uint32, - ) ->() -external int CSSM_CL_CrlVerify( - int CLHandle, - int CCHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - int ScopeSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, CSSM_CC_HANDLE, ffi.Pointer) ->() -external int CSSM_CL_CrlVerifyWithKey( - int CLHandle, - int CCHandle, - ffi.Pointer CrlToBeVerified, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, ffi.Pointer, CSSM_DATA_PTR) ->() -external int CSSM_CL_FreeFieldValue( - int CLHandle, - ffi.Pointer CertOrCrlOid, - CSSM_DATA_PTR Value, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CL_HANDLE, uint32, ffi.Pointer) ->() -external int CSSM_CL_FreeFields( - int CLHandle, - int NumberOfFields, - ffi.Pointer Fields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - CSSM_HANDLE, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_CL_IsCertInCachedCrl( - int CLHandle, - ffi.Pointer Cert, - int CrlHandle, - ffi.Pointer CertFound, - CSSM_DATA_PTR CrlRecordIndex, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CL_IsCertInCrl( - int CLHandle, - ffi.Pointer Cert, - ffi.Pointer Crl, - ffi.Pointer CertFound, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - uint32, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CSSM_CL_PassThrough( - int CLHandle, - int CCHandle, - int PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_ChangeLoginAcl( - int CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_ChangeLoginOwner( - int CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - ffi.Pointer, - CSSM_PADDING, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateAsymmetricContext( - int CSPHandle, - int AlgorithmID, - ffi.Pointer AccessCred, - ffi.Pointer Key, - int Padding, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - CSSM_KEY_TYPE, - uint32, - ffi.Pointer, - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateDeriveKeyContext( - int CSPHandle, - int AlgorithmID, - int DeriveKeyType, - int DeriveKeyLengthInBits, - ffi.Pointer AccessCred, - ffi.Pointer BaseKey, - int IterationCount, - ffi.Pointer Salt, - ffi.Pointer Seed, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateDigestContext( - int CSPHandle, - int AlgorithmID, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateKeyGenContext( - int CSPHandle, - int AlgorithmID, - int KeySizeInBits, - ffi.Pointer Seed, - ffi.Pointer Salt, - ffi.Pointer StartDate, - ffi.Pointer EndDate, - ffi.Pointer Params, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateMacContext( - int CSPHandle, - int AlgorithmID, - ffi.Pointer Key, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreatePassThroughContext( - int CSPHandle, - ffi.Pointer Key, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - CSSM_SIZE, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateRandomGenContext( - int CSPHandle, - int AlgorithmID, - ffi.Pointer Seed, - int Length, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateSignatureContext( - int CSPHandle, - int AlgorithmID, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - CSSM_ENCRYPT_MODE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_PADDING, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_CreateSymmetricContext( - int CSPHandle, - int AlgorithmID, - int Mode, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer InitVector, - int Padding, - ffi.Pointer Reserved, - ffi.Pointer NewContextHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_GetLoginAcl( - int CSPHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CSP_HANDLE, CSSM_ACL_OWNER_PROTOTYPE_PTR) ->() -external int CSSM_CSP_GetLoginOwner( - int CSPHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ) ->() -external int CSSM_CSP_GetOperationalStatistics( - int CSPHandle, - ffi.Pointer Statistics, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_CSP_Login( - int CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer LoginName, - ffi.Pointer Reserved, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_CSP_Logout(int CSPHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CSP_HANDLE, ffi.Pointer, CSSM_KEY_PTR) ->() -external int CSSM_CSP_ObtainPrivateKeyFromPublicKey( - int CSPHandle, - ffi.Pointer PublicKey, - CSSM_KEY_PTR PrivateKey, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CSSM_CSP_PassThrough( - int CCHandle, - int PassThroughId, - ffi.Pointer InData, - ffi.Pointer> OutData, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_ChangeKeyAcl( - int CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ffi.Pointer Key, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_ChangeKeyOwner( - int CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer NewOwner, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - CSSM_DB_ACCESS_TYPE, - ffi.Pointer, - ) ->() -external int CSSM_DL_Authenticate( - CSSM_DL_DB_HANDLE DLDBHandle, - int AccessRequest, - ffi.Pointer AccessCred, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_ChangeDbAcl( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_ChangeDbOwner( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - CSSM_DB_RECORDTYPE, - ffi.Pointer, - uint32, - ffi.Pointer, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_DL_CreateRelation( - CSSM_DL_DB_HANDLE DLDBHandle, - int RelationID, - ffi.Pointer RelationName, - int NumberOfAttributes, - ffi.Pointer pAttributeInfo, - int NumberOfIndexes, - ffi.Pointer pIndexInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DL_DataAbortQuery( - CSSM_DL_DB_HANDLE DLDBHandle, - int ResultsHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_DL_DB_HANDLE, ffi.Pointer) ->() -external int CSSM_DL_DataDelete( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecordIdentifier, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - ffi.Pointer, - CSSM_HANDLE_PTR, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, - CSSM_DATA_PTR, - ffi.Pointer, - ) ->() -external int CSSM_DL_DataGetFirst( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer Query, - CSSM_HANDLE_PTR ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - ffi.Pointer, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, - CSSM_DATA_PTR, - ) ->() -external int CSSM_DL_DataGetFromUniqueRecordId( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecord, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - CSSM_HANDLE, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR, - CSSM_DATA_PTR, - ffi.Pointer, - ) ->() -external int CSSM_DL_DataGetNext( - CSSM_DL_DB_HANDLE DLDBHandle, - int ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - CSSM_DB_RECORDTYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_DataInsert( - CSSM_DL_DB_HANDLE DLDBHandle, - int RecordType, - ffi.Pointer Attributes, - ffi.Pointer Data, - ffi.Pointer UniqueId, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - CSSM_DB_RECORDTYPE, - CSSM_DB_UNIQUE_RECORD_PTR, - ffi.Pointer, - ffi.Pointer, - CSSM_DB_MODIFY_MODE, - ) ->() -external int CSSM_DL_DataModify( - CSSM_DL_DB_HANDLE DLDBHandle, - int RecordType, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, - ffi.Pointer AttributesToBeModified, - ffi.Pointer DataToBeModified, - int ModifyMode, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DL_DbClose(CSSM_DL_DB_HANDLE DLDBHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_DB_ACCESS_TYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_DbCreate( - int DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer DBInfo, - int AccessRequest, - ffi.Pointer CredAndAclEntry, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_DbDelete( - int DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer AccessCred, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_DB_ACCESS_TYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_DbOpen( - int DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - int AccessRequest, - ffi.Pointer AccessCred, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DL_DestroyRelation( - CSSM_DL_DB_HANDLE DLDBHandle, - int RelationID, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DL_FreeNameList(int DLHandle, CSSM_NAME_LIST_PTR NameList); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_DL_DB_HANDLE, CSSM_DB_UNIQUE_RECORD_PTR) ->() -external int CSSM_DL_FreeUniqueRecord( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_DL_GetDbAcl( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_DL_DB_HANDLE, ffi.Pointer>) ->() -external int CSSM_DL_GetDbNameFromHandle( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> DbName, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_DL_HANDLE, ffi.Pointer) ->() -external int CSSM_DL_GetDbNames( - int DLHandle, - ffi.Pointer NameList, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_DL_DB_HANDLE, CSSM_ACL_OWNER_PROTOTYPE_PTR) ->() -external int CSSM_DL_GetDbOwner( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE, - uint32, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CSSM_DL_PassThrough( - CSSM_DL_DB_HANDLE DLDBHandle, - int PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_DecryptData( - int CCHandle, - ffi.Pointer CipherBufs, - int CipherBufCount, - CSSM_DATA_PTR ClearBufs, - int ClearBufCount, - ffi.Pointer bytesDecrypted, - CSSM_DATA_PTR RemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DecryptDataFinal(int CCHandle, CSSM_DATA_PTR RemData); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DecryptDataInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DecryptDataInitP(int CCHandle, int Privilege); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_DecryptDataP( - int CCHandle, - ffi.Pointer CipherBufs, - int CipherBufCount, - CSSM_DATA_PTR ClearBufs, - int ClearBufCount, - ffi.Pointer bytesDecrypted, - CSSM_DATA_PTR RemData, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_DecryptDataUpdate( - int CCHandle, - ffi.Pointer CipherBufs, - int CipherBufCount, - CSSM_DATA_PTR ClearBufs, - int ClearBufCount, - ffi.Pointer bytesDecrypted, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DeleteContext(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_DeleteContextAttributes( - int CCHandle, - int NumberOfAttributes, - ffi.Pointer ContextAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - CSSM_DATA_PTR, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - ) ->() -external int CSSM_DeriveKey( - int CCHandle, - CSSM_DATA_PTR Param, - int KeyUsage, - int KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR DerivedKey, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - ) ->() -external int CSSM_DigestData( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, - CSSM_DATA_PTR Digest, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_DigestDataClone( - int CCHandle, - ffi.Pointer ClonednewCCHandle, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DigestDataFinal(int CCHandle, CSSM_DATA_PTR Digest); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_DigestDataInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) ->() -external int CSSM_DigestDataUpdate( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_EncryptData( - int CCHandle, - ffi.Pointer ClearBufs, - int ClearBufCount, - CSSM_DATA_PTR CipherBufs, - int CipherBufCount, - ffi.Pointer bytesEncrypted, - CSSM_DATA_PTR RemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_EncryptDataFinal(int CCHandle, CSSM_DATA_PTR RemData); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_EncryptDataInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_EncryptDataInitP(int CCHandle, int Privilege); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_EncryptDataP( - int CCHandle, - ffi.Pointer ClearBufs, - int ClearBufCount, - CSSM_DATA_PTR CipherBufs, - int CipherBufCount, - ffi.Pointer bytesEncrypted, - CSSM_DATA_PTR RemData, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_EncryptDataUpdate( - int CCHandle, - ffi.Pointer ClearBufs, - int ClearBufCount, - CSSM_DATA_PTR CipherBufs, - int CipherBufCount, - ffi.Pointer bytesEncrypted, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_FreeContext(CSSM_CONTEXT_PTR Context); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - CSSM_KEY_PTR, - CSSM_BOOL, - ) ->() -external int CSSM_FreeKey( - int CSPHandle, - ffi.Pointer AccessCred, - CSSM_KEY_PTR KeyPtr, - int Delete, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GenerateAlgorithmParams( - int CCHandle, - int ParamBits, - CSSM_DATA_PTR Param, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - ) ->() -external int CSSM_GenerateKey( - int CCHandle, - int KeyUsage, - int KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR Key, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_GenerateKeyP( - int CCHandle, - int KeyUsage, - int KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR Key, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - uint32, - ffi.Pointer, - CSSM_KEY_PTR, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - ) ->() -external int CSSM_GenerateKeyPair( - int CCHandle, - int PublicKeyUsage, - int PublicKeyAttr, - ffi.Pointer PublicKeyLabel, - CSSM_KEY_PTR PublicKey, - int PrivateKeyUsage, - int PrivateKeyAttr, - ffi.Pointer PrivateKeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR PrivateKey, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - uint32, - ffi.Pointer, - CSSM_KEY_PTR, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_GenerateKeyPairP( - int CCHandle, - int PublicKeyUsage, - int PublicKeyAttr, - ffi.Pointer PublicKeyLabel, - CSSM_KEY_PTR PublicKey, - int PrivateKeyUsage, - int PrivateKeyAttr, - ffi.Pointer PrivateKeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR PrivateKey, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_DATA_PTR, - ) ->() -external int CSSM_GenerateMac( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, - CSSM_DATA_PTR Mac, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GenerateMacFinal(int CCHandle, CSSM_DATA_PTR Mac); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GenerateMacInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) ->() -external int CSSM_GenerateMacUpdate( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GenerateRandom(int CCHandle, CSSM_DATA_PTR RandomNumber); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_MODULE_HANDLE, CSSM_API_MEMORY_FUNCS_PTR) ->() -external int CSSM_GetAPIMemoryFunctions( - int AddInHandle, - CSSM_API_MEMORY_FUNCS_PTR AppMemoryFuncs, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer) ->() -external int CSSM_GetContext( - int CCHandle, - ffi.Pointer Context, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_GetContextAttribute( - ffi.Pointer Context, - int AttributeType, - ffi.Pointer ContextAttribute, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_GetKeyAcl( - int CSPHandle, - ffi.Pointer Key, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - ffi.Pointer, - CSSM_ACL_OWNER_PROTOTYPE_PTR, - ) ->() -external int CSSM_GetKeyOwner( - int CSPHandle, - ffi.Pointer Key, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GetModuleGUIDFromHandle( - int ModuleHandle, - CSSM_GUID_PTR ModuleGUID, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_GetPrivilege(ffi.Pointer Privilege); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_GetSubserviceUIDFromHandle( - int ModuleHandle, - CSSM_SUBSERVICE_UID_PTR SubserviceUID, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_ALGORITHMS, - ffi.Pointer, - ) ->() -external int CSSM_GetTimeValue( - int CSPHandle, - int TimeAlgorithm, - ffi.Pointer TimeData, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - CSSM_PRIVILEGE_SCOPE, - ffi.Pointer, - CSSM_KEY_HIERARCHY, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_Init( - ffi.Pointer Version, - int Scope, - ffi.Pointer CallerGuid, - int KeyHierarchy, - ffi.Pointer PvcPolicy, - ffi.Pointer Reserved, -); - -@Deprecated('Deprecated') -@ffi.Native, CSSM_KEY_HIERARCHY)>() -external int CSSM_Introduce(ffi.Pointer ModuleID, int KeyHierarchy); - -@Deprecated('Deprecated') -@ffi.Native, CSSM_GUID_PTR)>() -external int CSSM_ListAttachedModuleManagers( - ffi.Pointer NumberOfModuleManagers, - CSSM_GUID_PTR ModuleManagerGuids, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - uint32, - CSSM_SERVICE_TYPE, - CSSM_ATTACH_FLAGS, - CSSM_KEY_HIERARCHY, - ffi.Pointer, - uint32, - ffi.Pointer, - CSSM_MODULE_HANDLE_PTR, - ) ->() -external int CSSM_ModuleAttach( - ffi.Pointer ModuleGuid, - ffi.Pointer Version, - ffi.Pointer MemoryFuncs, - int SubserviceID, - int SubServiceType, - int AttachFlags, - int KeyHierarchy, - ffi.Pointer FunctionTable, - int NumFunctionTable, - ffi.Pointer Reserved, - CSSM_MODULE_HANDLE_PTR NewModuleHandle, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_ModuleDetach(int ModuleHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - CSSM_KEY_HIERARCHY, - CSSM_API_ModuleEventHandler, - ffi.Pointer, - ) ->() -external int CSSM_ModuleLoad( - ffi.Pointer ModuleGuid, - int KeyHierarchy, - CSSM_API_ModuleEventHandler AppNotifyCallback, - ffi.Pointer AppNotifyCallbackCtx, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - CSSM_API_ModuleEventHandler, - ffi.Pointer, - ) ->() -external int CSSM_ModuleUnload( - ffi.Pointer ModuleGuid, - CSSM_API_ModuleEventHandler AppNotifyCallback, - ffi.Pointer AppNotifyCallbackCtx, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CSP_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - CSSM_KEY_SIZE_PTR, - ) ->() -external int CSSM_QueryKeySizeInBits( - int CSPHandle, - int CCHandle, - ffi.Pointer Key, - CSSM_KEY_SIZE_PTR KeySize, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - CSSM_BOOL, - uint32, - CSSM_QUERY_SIZE_DATA_PTR, - ) ->() -external int CSSM_QuerySize( - int CCHandle, - int Encrypt, - int QuerySizeCount, - CSSM_QUERY_SIZE_DATA_PTR DataBlockSizes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_RetrieveCounter(int CSPHandle, CSSM_DATA_PTR Counter); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_RetrieveUniqueId(int CSPHandle, CSSM_DATA_PTR UniqueID$1); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_SetContext(int CCHandle, ffi.Pointer Context); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_SetPrivilege(int Privilege); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_ALGORITHMS, - CSSM_DATA_PTR, - ) ->() -external int CSSM_SignData( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, - int DigestAlgorithm, - CSSM_DATA_PTR Signature, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_SignDataFinal(int CCHandle, CSSM_DATA_PTR Signature); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_SignDataInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) ->() -external int CSSM_SignDataUpdate( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - ) ->() -external int CSSM_TP_ApplyCrlToDb( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer CrlToBeApplied, - ffi.Pointer SignerCertGroup, - ffi.Pointer ApplyCrlVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CertCreateTemplate( - int TPHandle, - int CLHandle, - int NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_CertGetAllTemplateFields( - int TPHandle, - int CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_CertGroupConstruct( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer DBList, - ffi.Pointer ConstructParams, - ffi.Pointer CertGroupFrag, - ffi.Pointer CertGroup, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_CertGroupPrune( - int TPHandle, - int CLHandle, - ffi.Pointer DBList, - ffi.Pointer OrderedCertGroup, - ffi.Pointer PrunedCertGroup, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_CertGroupToTupleGroup( - int TPHandle, - int CLHandle, - ffi.Pointer CertGroup, - ffi.Pointer TupleGroup, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - ) ->() -external int CSSM_TP_CertGroupVerify( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer CertGroupToBeVerified, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_TP_CertReclaimAbort(int TPHandle, int KeyCacheHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - uint32, - CSSM_LONG_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ) ->() -external int CSSM_TP_CertReclaimKey( - int TPHandle, - ffi.Pointer CertGroup, - int CertIndex, - int KeyCacheHandle, - int CSPHandle, - ffi.Pointer CredAndAclEntry, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CertRemoveFromCrlTemplate( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRemoved, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - CSSM_DATA_PTR NewCrlTemplate, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - CSSM_TP_CERTCHANGE_REASON, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CertRevoke( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRevoked, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - int Reason, - CSSM_DATA_PTR NewCrlTemplate, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CertSign( - int TPHandle, - int CLHandle, - int CCHandle, - ffi.Pointer CertTemplateToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCert, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_ConfirmCredResult( - int TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer Responses, - ffi.Pointer PreferredAuthority, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - uint32, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CrlCreateTemplate( - int TPHandle, - int CLHandle, - int NumberOfFields, - ffi.Pointer CrlFields, - CSSM_DATA_PTR NewCrlTemplate, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_CrlSign( - int TPHandle, - int CLHandle, - int CCHandle, - ffi.Pointer CrlToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCrl, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CSP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR, - ) ->() -external int CSSM_TP_CrlVerify( - int TPHandle, - int CLHandle, - int CSPHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCertGroup, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - CSSM_TP_FORM_TYPE, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_FormRequest( - int TPHandle, - ffi.Pointer PreferredAuthority, - int FormType, - CSSM_DATA_PTR BlankForm, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_TP_FORM_TYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_ACCESS_CREDENTIALS_PTR, - ) ->() -external int CSSM_TP_FormSubmit( - int TPHandle, - int FormType, - ffi.Pointer Form, - ffi.Pointer ClearanceAuthority, - ffi.Pointer RepresentedAuthority, - CSSM_ACCESS_CREDENTIALS_PTR Credentials, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CSSM_TP_PassThrough( - int TPHandle, - int CLHandle, - int CCHandle, - ffi.Pointer DBList, - int PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_ReceiveConfirmation( - int TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer Responses, - ffi.Pointer ElapsedTime, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_RetrieveCredResult( - int TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer EstimatedTime, - ffi.Pointer ConfirmationRequired, - ffi.Pointer RetrieveOutput, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - ffi.Pointer, - CSSM_TP_AUTHORITY_REQUEST_TYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_DATA_PTR, - ) ->() -external int CSSM_TP_SubmitCredRequest( - int TPHandle, - ffi.Pointer PreferredAuthority, - int RequestType, - ffi.Pointer RequestInput, - ffi.Pointer CallerAuthContext, - ffi.Pointer EstimatedTime, - CSSM_DATA_PTR ReferenceIdentifier, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_TP_HANDLE, - CSSM_CL_HANDLE, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CSSM_TP_TupleGroupToCertGroup( - int TPHandle, - int CLHandle, - ffi.Pointer TupleGroup, - ffi.Pointer CertTemplates, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_Terminate(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_Unintroduce(ffi.Pointer ModuleID); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - CSSM_DATA_PTR, - ) ->() -external int CSSM_UnwrapKey( - int CCHandle, - ffi.Pointer PublicKey, - ffi.Pointer WrappedKey, - int KeyUsage, - int KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR UnwrappedKey, - CSSM_DATA_PTR DescriptiveData, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - uint32, - uint32, - ffi.Pointer, - ffi.Pointer, - CSSM_KEY_PTR, - CSSM_DATA_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_UnwrapKeyP( - int CCHandle, - ffi.Pointer PublicKey, - ffi.Pointer WrappedKey, - int KeyUsage, - int KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR UnwrappedKey, - CSSM_DATA_PTR DescriptiveData, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_UpdateContextAttributes( - int CCHandle, - int NumberOfAttributes, - ffi.Pointer ContextAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - CSSM_ALGORITHMS, - ffi.Pointer, - ) ->() -external int CSSM_VerifyData( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, - int DigestAlgorithm, - ffi.Pointer Signature, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_VerifyDataFinal( - int CCHandle, - ffi.Pointer Signature, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_VerifyDataInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) ->() -external int CSSM_VerifyDataUpdate( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_VerifyDevice( - int CSPHandle, - ffi.Pointer DeviceCert, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - uint32, - ffi.Pointer, - ) ->() -external int CSSM_VerifyMac( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, - ffi.Pointer Mac, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CSSM_VerifyMacFinal(int CCHandle, ffi.Pointer Mac); - -@Deprecated('Deprecated') -@ffi.Native() -external int CSSM_VerifyMacInit(int CCHandle); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function(CSSM_CC_HANDLE, ffi.Pointer, uint32) ->() -external int CSSM_VerifyMacUpdate( - int CCHandle, - ffi.Pointer DataBufs, - int DataBufCount, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_WRAP_KEY_PTR, - ) ->() -external int CSSM_WrapKey( - int CCHandle, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer DescriptiveData, - CSSM_WRAP_KEY_PTR WrappedKey, -); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - CSSM_CC_HANDLE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CSSM_WRAP_KEY_PTR, - CSSM_PRIVILEGE, - ) ->() -external int CSSM_WrapKeyP( - int CCHandle, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer DescriptiveData, - CSSM_WRAP_KEY_PTR WrappedKey, - int Privilege, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void CSSetComponentsThreadMode(int mode); - -@ffi.Native() -external CFArrayRef CTFontCollectionCopyExclusionDescriptors( - CTFontCollectionRef collection, -); - -@ffi.Native() -external CFArrayRef CTFontCollectionCopyFontAttribute( - CTFontCollectionRef collection, - CFStringRef attributeName, - int options, -); - -@ffi.Native() -external CFArrayRef CTFontCollectionCopyFontAttributes( - CTFontCollectionRef collection, - CFSetRef attributeNames, - int options, -); - -@ffi.Native() -external CFArrayRef CTFontCollectionCopyQueryDescriptors( - CTFontCollectionRef collection, -); - -@ffi.Native< - CTFontCollectionRef Function(CTFontCollectionRef, CFArrayRef, CFDictionaryRef) ->() -external CTFontCollectionRef CTFontCollectionCreateCopyWithFontDescriptors( - CTFontCollectionRef original, - CFArrayRef queryDescriptors, - CFDictionaryRef options, -); - -@ffi.Native() -external CTFontCollectionRef CTFontCollectionCreateFromAvailableFonts( - CFDictionaryRef options, -); - -@ffi.Native() -external CFArrayRef CTFontCollectionCreateMatchingFontDescriptors( - CTFontCollectionRef collection, -); - -@ffi.Native< - CFArrayRef Function(CTFontCollectionRef, CFStringRef, CFDictionaryRef) ->() -external CFArrayRef CTFontCollectionCreateMatchingFontDescriptorsForFamily( - CTFontCollectionRef collection, - CFStringRef familyName, - CFDictionaryRef options, -); - -@ffi.Native< - CFArrayRef Function( - CTFontCollectionRef, - CTFontCollectionSortDescriptorsCallback, - ffi.Pointer, - ) ->() -external CFArrayRef -CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback( - CTFontCollectionRef collection, - CTFontCollectionSortDescriptorsCallback sortCallback, - ffi.Pointer refCon, -); - -@ffi.Native() -external CFArrayRef CTFontCollectionCreateMatchingFontDescriptorsWithOptions( - CTFontCollectionRef collection, - CFDictionaryRef options, -); - -@ffi.Native() -external CTMutableFontCollectionRef CTFontCollectionCreateMutableCopy( - CTFontCollectionRef original, -); - -@ffi.Native() -external CTFontCollectionRef CTFontCollectionCreateWithFontDescriptors( - CFArrayRef queryDescriptors, - CFDictionaryRef options, -); - -@ffi.Native() -external int CTFontCollectionGetTypeID(); - -@ffi.Native() -external void CTFontCollectionSetExclusionDescriptors( - CTMutableFontCollectionRef collection, - CFArrayRef descriptors, -); - -@ffi.Native() -external void CTFontCollectionSetQueryDescriptors( - CTMutableFontCollectionRef collection, - CFArrayRef descriptors, -); - -@ffi.Native() -external CFTypeRef CTFontCopyAttribute(CTFontRef font, CFStringRef attribute); - -@ffi.Native() -external CFArrayRef CTFontCopyAvailableTables(CTFontRef font, int options); - -@ffi.Native() -external CFCharacterSetRef CTFontCopyCharacterSet(CTFontRef font); - -@ffi.Native() -external CFArrayRef CTFontCopyDefaultCascadeListForLanguages( - CTFontRef font, - CFArrayRef languagePrefList, -); - -@ffi.Native() -external CFStringRef CTFontCopyDisplayName(CTFontRef font); - -@ffi.Native() -external CFStringRef CTFontCopyFamilyName(CTFontRef font); - -@ffi.Native() -external CFArrayRef CTFontCopyFeatureSettings(CTFontRef font); - -@ffi.Native() -external CFArrayRef CTFontCopyFeatures(CTFontRef font); - -@ffi.Native() -external CTFontDescriptorRef CTFontCopyFontDescriptor(CTFontRef font); - -@ffi.Native() -external CFStringRef CTFontCopyFullName(CTFontRef font); - -@ffi.Native)>() -external CGFontRef CTFontCopyGraphicsFont( - CTFontRef font, - ffi.Pointer attributes, -); - -@ffi.Native< - CFStringRef Function(CTFontRef, CFStringRef, ffi.Pointer) ->() -external CFStringRef CTFontCopyLocalizedName( - CTFontRef font, - CFStringRef nameKey, - ffi.Pointer actualLanguage, -); - -@ffi.Native() -external CFStringRef CTFontCopyName(CTFontRef font, CFStringRef nameKey); - -@ffi.Native() -external CFStringRef CTFontCopyNameForGlyph(CTFontRef font, int glyph); - -@ffi.Native() -external CFStringRef CTFontCopyPostScriptName(CTFontRef font); - -@ffi.Native() -external CFArrayRef CTFontCopySupportedLanguages(CTFontRef font); - -@ffi.Native() -external CFDataRef CTFontCopyTable(CTFontRef font, int table, int options); - -@ffi.Native() -external CFDictionaryRef CTFontCopyTraits(CTFontRef font); - -@ffi.Native() -external CFDictionaryRef CTFontCopyVariation(CTFontRef font); - -@ffi.Native() -external CFArrayRef CTFontCopyVariationAxes(CTFontRef font); - -@ffi.Native< - CTFontRef Function( - CTFontRef, - CGFloat, - ffi.Pointer, - CTFontDescriptorRef, - ) ->() -external CTFontRef CTFontCreateCopyWithAttributes( - CTFontRef font, - double size, - ffi.Pointer matrix, - CTFontDescriptorRef attributes, -); - -@ffi.Native< - CTFontRef Function( - CTFontRef, - CGFloat, - ffi.Pointer, - CFStringRef, - ) ->() -external CTFontRef CTFontCreateCopyWithFamily( - CTFontRef font, - double size, - ffi.Pointer matrix, - CFStringRef family, -); - -@ffi.Native< - CTFontRef Function( - CTFontRef, - CGFloat, - ffi.Pointer, - ffi.Uint32, - ffi.Uint32, - ) ->() -external CTFontRef CTFontCreateCopyWithSymbolicTraits( - CTFontRef font, - double size, - ffi.Pointer matrix, - int symTraitValue, - int symTraitMask, -); - -@ffi.Native() -external CTFontRef CTFontCreateForString( - CTFontRef currentFont, - CFStringRef string, - CFRange range, -); - -@ffi.Native() -external CTFontRef CTFontCreateForStringWithLanguage( - CTFontRef currentFont, - CFStringRef string, - CFRange range, - CFStringRef language, -); - -@ffi.Native< - CGPathRef Function(CTFontRef, CGGlyph, ffi.Pointer) ->() -external CGPathRef CTFontCreatePathForGlyph( - CTFontRef font, - int glyph, - ffi.Pointer matrix, -); - -@ffi.Native( - symbol: 'CTFontCreateUIFontForLanguage', -) -external CTFontRef _CTFontCreateUIFontForLanguage( - int uiType, - double size, - CFStringRef language, -); - -CTFontRef CTFontCreateUIFontForLanguage( - CTFontUIFontType uiType, - DartCGFloat size, - CFStringRef language, -) { - return _CTFontCreateUIFontForLanguage(uiType.value, size, language); -} - -@ffi.Native< - CTFontRef Function( - CTFontDescriptorRef, - CGFloat, - ffi.Pointer, - ) ->() -external CTFontRef CTFontCreateWithFontDescriptor( - CTFontDescriptorRef descriptor, - double size, - ffi.Pointer matrix, -); - -@ffi.Native< - CTFontRef Function( - CTFontDescriptorRef, - CGFloat, - ffi.Pointer, - CFOptionFlags, - ) ->() -external CTFontRef CTFontCreateWithFontDescriptorAndOptions( - CTFontDescriptorRef descriptor, - double size, - ffi.Pointer matrix, - int options, -); - -@ffi.Native< - CTFontRef Function( - CGFontRef, - CGFloat, - ffi.Pointer, - CTFontDescriptorRef, - ) ->() -external CTFontRef CTFontCreateWithGraphicsFont( - CGFontRef graphicsFont, - double size, - ffi.Pointer matrix, - CTFontDescriptorRef attributes, -); - -@ffi.Native< - CTFontRef Function(CFStringRef, CGFloat, ffi.Pointer) ->() -external CTFontRef CTFontCreateWithName( - CFStringRef name, - double size, - ffi.Pointer matrix, -); - -@ffi.Native< - CTFontRef Function( - CFStringRef, - CGFloat, - ffi.Pointer, - CFOptionFlags, - ) ->() -external CTFontRef CTFontCreateWithNameAndOptions( - CFStringRef name, - double size, - ffi.Pointer matrix, - int options, -); - -@Deprecated('ATS is deprecated') -@ffi.Native< - CTFontRef Function( - ATSFontRef, - CGFloat, - ffi.Pointer, - CTFontDescriptorRef, - ) ->() -external CTFontRef CTFontCreateWithPlatformFont( - int platformFont, - double size, - ffi.Pointer matrix, - CTFontDescriptorRef attributes, -); - -@Deprecated('Quickdraw font references are deprecated') -@ffi.Native< - CTFontRef Function(ConstStr255Param, ffi.Int16, ffi.Uint8, CGFloat) ->() -external CTFontRef CTFontCreateWithQuickdrawInstance( - ConstStr255Param name, - int identifier, - int style, - double size, -); - -@ffi.Native() -external CFTypeRef CTFontDescriptorCopyAttribute( - CTFontDescriptorRef descriptor, - CFStringRef attribute, -); - -@ffi.Native() -external CFDictionaryRef CTFontDescriptorCopyAttributes( - CTFontDescriptorRef descriptor, -); - -@ffi.Native< - CFTypeRef Function(CTFontDescriptorRef, CFStringRef, ffi.Pointer) ->() -external CFTypeRef CTFontDescriptorCopyLocalizedAttribute( - CTFontDescriptorRef descriptor, - CFStringRef attribute, - ffi.Pointer language, -); - -@ffi.Native< - CTFontDescriptorRef Function(CTFontDescriptorRef, CFDictionaryRef) ->() -external CTFontDescriptorRef CTFontDescriptorCreateCopyWithAttributes( - CTFontDescriptorRef original, - CFDictionaryRef attributes, -); - -@ffi.Native() -external CTFontDescriptorRef CTFontDescriptorCreateCopyWithFamily( - CTFontDescriptorRef original, - CFStringRef family, -); - -@ffi.Native< - CTFontDescriptorRef Function(CTFontDescriptorRef, CFNumberRef, CFNumberRef) ->() -external CTFontDescriptorRef CTFontDescriptorCreateCopyWithFeature( - CTFontDescriptorRef original, - CFNumberRef featureTypeIdentifier, - CFNumberRef featureSelectorIdentifier, -); - -@ffi.Native< - CTFontDescriptorRef Function(CTFontDescriptorRef, ffi.Uint32, ffi.Uint32) ->() -external CTFontDescriptorRef CTFontDescriptorCreateCopyWithSymbolicTraits( - CTFontDescriptorRef original, - int symTraitValue, - int symTraitMask, -); - -@ffi.Native< - CTFontDescriptorRef Function(CTFontDescriptorRef, CFNumberRef, CGFloat) ->() -external CTFontDescriptorRef CTFontDescriptorCreateCopyWithVariation( - CTFontDescriptorRef original, - CFNumberRef variationIdentifier, - double variationValue, -); - -@ffi.Native() -external CTFontDescriptorRef CTFontDescriptorCreateMatchingFontDescriptor( - CTFontDescriptorRef descriptor, - CFSetRef mandatoryAttributes, -); - -@ffi.Native() -external CFArrayRef CTFontDescriptorCreateMatchingFontDescriptors( - CTFontDescriptorRef descriptor, - CFSetRef mandatoryAttributes, -); - -@ffi.Native() -external CTFontDescriptorRef CTFontDescriptorCreateWithAttributes( - CFDictionaryRef attributes, -); - -@ffi.Native() -external CTFontDescriptorRef CTFontDescriptorCreateWithNameAndSize( - CFStringRef name, - double size, -); - -@ffi.Native() -external int CTFontDescriptorGetTypeID(); - -@ffi.Native< - ffi.Bool Function(CFArrayRef, CFSetRef, CTFontDescriptorProgressHandler) ->(symbol: 'CTFontDescriptorMatchFontDescriptorsWithProgressHandler') -external bool _CTFontDescriptorMatchFontDescriptorsWithProgressHandler( - CFArrayRef descriptors, - CFSetRef mandatoryAttributes, - CTFontDescriptorProgressHandler progressBlock, -); - -bool CTFontDescriptorMatchFontDescriptorsWithProgressHandler( - CFArrayRef descriptors, - CFSetRef mandatoryAttributes, - DartCTFontDescriptorProgressHandler progressBlock, -) { - final _$$ref = progressBlock.ref; - return _CTFontDescriptorMatchFontDescriptorsWithProgressHandler( - descriptors, - mandatoryAttributes, - _$$ref.pointer, - ); -} - -@ffi.Native< - ffi.Void Function( - CTFontRef, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - CGContextRef, - ) ->() -external void CTFontDrawGlyphs( - CTFontRef font, - ffi.Pointer glyphs, - ffi.Pointer positions, - int count, - CGContextRef context, -); - -@ffi.Native< - ffi.Void Function( - CTFontRef, - ffi.Pointer, - objc.CGPoint, - CGContextRef, - ) ->(symbol: 'CTFontDrawImageFromAdaptiveImageProviderAtPoint') -external void _CTFontDrawImageFromAdaptiveImageProviderAtPoint( - CTFontRef font, - ffi.Pointer provider, - objc.CGPoint point, - CGContextRef context, -); - -void CTFontDrawImageFromAdaptiveImageProviderAtPoint( - CTFontRef font, - CTAdaptiveImageProviding provider, - objc.CGPoint point, - CGContextRef context, -) { - final _$$ref = provider.ref; - return _CTFontDrawImageFromAdaptiveImageProviderAtPoint( - font, - _$$ref.pointer, - point, - context, - ); -} - -@ffi.Native< - ffi.Double Function( - CTFontRef, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->(symbol: 'CTFontGetAdvancesForGlyphs') -external double _CTFontGetAdvancesForGlyphs( - CTFontRef font, - int orientation, - ffi.Pointer glyphs, - ffi.Pointer advances, - int count, -); - -double CTFontGetAdvancesForGlyphs( - CTFontRef font, - CTFontOrientation orientation, - ffi.Pointer glyphs, - ffi.Pointer advances, - DartCFIndex count, -) { - return _CTFontGetAdvancesForGlyphs( - font, - orientation.value, - glyphs, - advances, - count, - ); -} - -@ffi.Native() -external double CTFontGetAscent(CTFontRef font); - -@ffi.Native() -external objc.CGRect CTFontGetBoundingBox(CTFontRef font); - -@ffi.Native< - objc.CGRect Function( - CTFontRef, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->(symbol: 'CTFontGetBoundingRectsForGlyphs') -external objc.CGRect _CTFontGetBoundingRectsForGlyphs( - CTFontRef font, - int orientation, - ffi.Pointer glyphs, - ffi.Pointer boundingRects, - int count, -); - -objc.CGRect CTFontGetBoundingRectsForGlyphs( - CTFontRef font, - CTFontOrientation orientation, - ffi.Pointer glyphs, - ffi.Pointer boundingRects, - DartCFIndex count, -) { - return _CTFontGetBoundingRectsForGlyphs( - font, - orientation.value, - glyphs, - boundingRects, - count, - ); -} - -@ffi.Native() -external double CTFontGetCapHeight(CTFontRef font); - -@ffi.Native() -external double CTFontGetDescent(CTFontRef font); - -@ffi.Native() -external int CTFontGetGlyphCount(CTFontRef font); - -@ffi.Native() -external int CTFontGetGlyphWithName(CTFontRef font, CFStringRef glyphName); - -@ffi.Native< - ffi.Bool Function( - CTFontRef, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->() -external bool CTFontGetGlyphsForCharacters( - CTFontRef font, - ffi.Pointer characters, - ffi.Pointer glyphs, - int count, -); - -@ffi.Native() -external double CTFontGetLeading(CTFontRef font); - -@ffi.Native< - CFIndex Function(CTFontRef, CGGlyph, ffi.Pointer, CFIndex) ->() -external int CTFontGetLigatureCaretPositions( - CTFontRef font, - int glyph, - ffi.Pointer positions, - int maxPositions, -); - -@ffi.Native() -external CGAffineTransform CTFontGetMatrix(CTFontRef font); - -@ffi.Native< - objc.CGRect Function( - CTFontRef, - ffi.Pointer, - ffi.Pointer, - CFIndex, - CFOptionFlags, - ) ->() -external objc.CGRect CTFontGetOpticalBoundsForGlyphs( - CTFontRef font, - ffi.Pointer glyphs, - ffi.Pointer boundingRects, - int count, - int options, -); - -@Deprecated('ATS is deprecated') -@ffi.Native)>() -external int CTFontGetPlatformFont( - CTFontRef font, - ffi.Pointer attributes, -); - -@ffi.Native() -external double CTFontGetSize(CTFontRef font); - -@ffi.Native() -external double CTFontGetSlantAngle(CTFontRef font); - -@ffi.Native() -external int CTFontGetStringEncoding(CTFontRef font); - -@ffi.Native() -external int CTFontGetSymbolicTraits(CTFontRef font); - -@ffi.Native() -external int CTFontGetTypeID(); - -@ffi.Native)>( - symbol: 'CTFontGetTypographicBoundsForAdaptiveImageProvider', -) -external objc.CGRect _CTFontGetTypographicBoundsForAdaptiveImageProvider( - CTFontRef font, - ffi.Pointer provider, -); - -objc.CGRect CTFontGetTypographicBoundsForAdaptiveImageProvider( - CTFontRef font, - CTAdaptiveImageProviding? provider, -) { - final _$$ref = provider?.ref; - return _CTFontGetTypographicBoundsForAdaptiveImageProvider( - font, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native() -external double CTFontGetUnderlinePosition(CTFontRef font); - -@ffi.Native() -external double CTFontGetUnderlineThickness(CTFontRef font); - -@ffi.Native() -external int CTFontGetUnitsPerEm(CTFontRef font); - -@ffi.Native< - ffi.Void Function( - CTFontRef, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->() -external void CTFontGetVerticalTranslationsForGlyphs( - CTFontRef font, - ffi.Pointer glyphs, - ffi.Pointer translations, - int count, -); - -@ffi.Native() -external double CTFontGetXHeight(CTFontRef font); - -@ffi.Native() -external bool CTFontHasTable(CTFontRef font, int tag); - -@ffi.Native< - CFIndex Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CTFontManagerCompareFontFamilyNames') -external int _CTFontManagerCompareFontFamilyNames( - ffi.Pointer family1, - ffi.Pointer family2, - ffi.Pointer context, -); - -CFComparisonResult CTFontManagerCompareFontFamilyNames( - ffi.Pointer family1, - ffi.Pointer family2, - ffi.Pointer context, -) { - return CFComparisonResult.fromValue( - _CTFontManagerCompareFontFamilyNames(family1, family2, context), - ); -} - -@ffi.Native() -external CFArrayRef CTFontManagerCopyAvailableFontFamilyNames(); - -@ffi.Native() -external CFArrayRef CTFontManagerCopyAvailableFontURLs(); - -@ffi.Native() -external CFArrayRef CTFontManagerCopyAvailablePostScriptNames(); - -@ffi.Native( - symbol: 'CTFontManagerCopyRegisteredFontDescriptors', -) -external CFArrayRef _CTFontManagerCopyRegisteredFontDescriptors( - int scope, - bool enabled, -); - -CFArrayRef CTFontManagerCopyRegisteredFontDescriptors( - CTFontManagerScope scope, - bool enabled, -) { - return _CTFontManagerCopyRegisteredFontDescriptors(scope.value, enabled); -} - -@ffi.Native() -external CTFontDescriptorRef CTFontManagerCreateFontDescriptorFromData( - CFDataRef data, -); - -@ffi.Native() -external CFArrayRef CTFontManagerCreateFontDescriptorsFromData(CFDataRef data); - -@ffi.Native() -external CFArrayRef CTFontManagerCreateFontDescriptorsFromURL(CFURLRef fileURL); - -@Deprecated('This functionality will be removed in a future release') -@ffi.Native< - CFRunLoopSourceRef Function(CFIndex, ffi.Pointer) ->(symbol: 'CTFontManagerCreateFontRequestRunLoopSource') -external CFRunLoopSourceRef _CTFontManagerCreateFontRequestRunLoopSource( - int sourceOrder, - ffi.Pointer createMatchesCallback, -); - -CFRunLoopSourceRef CTFontManagerCreateFontRequestRunLoopSource( - DartCFIndex sourceOrder, - objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - > - createMatchesCallback, -) { - final _$$ref = createMatchesCallback.ref; - return _CTFontManagerCreateFontRequestRunLoopSource( - sourceOrder, - _$$ref.pointer, - ); -} - -@ffi.Native() -external void CTFontManagerEnableFontDescriptors( - CFArrayRef descriptors, - bool enable, -); - -@ffi.Native( - symbol: 'CTFontManagerGetAutoActivationSetting', -) -external int _CTFontManagerGetAutoActivationSetting( - CFStringRef bundleIdentifier, -); - -CTFontManagerAutoActivationSetting CTFontManagerGetAutoActivationSetting( - CFStringRef bundleIdentifier, -) { - return CTFontManagerAutoActivationSetting.fromValue( - _CTFontManagerGetAutoActivationSetting(bundleIdentifier), - ); -} - -@ffi.Native( - symbol: 'CTFontManagerGetScopeForURL', -) -external int _CTFontManagerGetScopeForURL(CFURLRef fontURL); - -CTFontManagerScope CTFontManagerGetScopeForURL(CFURLRef fontURL) { - return CTFontManagerScope.fromValue(_CTFontManagerGetScopeForURL(fontURL)); -} - -@ffi.Native() -external bool CTFontManagerIsSupportedFont(CFURLRef fontURL); - -@ffi.Native< - ffi.Void Function( - CFArrayRef, - ffi.Uint32, - ffi.Bool, - ffi.Pointer, - ) ->(symbol: 'CTFontManagerRegisterFontDescriptors') -external void _CTFontManagerRegisterFontDescriptors( - CFArrayRef fontDescriptors, - int scope, - bool enabled, - ffi.Pointer registrationHandler, -); - -void CTFontManagerRegisterFontDescriptors( - CFArrayRef fontDescriptors, - CTFontManagerScope scope, - bool enabled, - objc.ObjCBlock, ffi.Bool)>? - registrationHandler, -) { - final _$$ref = registrationHandler?.ref; - return _CTFontManagerRegisterFontDescriptors( - fontDescriptors, - scope.value, - enabled, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native< - ffi.Void Function( - CFArrayRef, - ffi.Uint32, - ffi.Bool, - ffi.Pointer, - ) ->(symbol: 'CTFontManagerRegisterFontURLs') -external void _CTFontManagerRegisterFontURLs( - CFArrayRef fontURLs, - int scope, - bool enabled, - ffi.Pointer registrationHandler, -); - -void CTFontManagerRegisterFontURLs( - CFArrayRef fontURLs, - CTFontManagerScope scope, - bool enabled, - objc.ObjCBlock, ffi.Bool)>? - registrationHandler, -) { - final _$$ref = registrationHandler?.ref; - return _CTFontManagerRegisterFontURLs( - fontURLs, - scope.value, - enabled, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native)>( - symbol: 'CTFontManagerRegisterFontsForURL', -) -external bool _CTFontManagerRegisterFontsForURL( - CFURLRef fontURL, - int scope, - ffi.Pointer error, -); - -bool CTFontManagerRegisterFontsForURL( - CFURLRef fontURL, - CTFontManagerScope scope, - ffi.Pointer error, -) { - return _CTFontManagerRegisterFontsForURL(fontURL, scope.value, error); -} - -@Deprecated('Deprecated') -@ffi.Native)>( - symbol: 'CTFontManagerRegisterFontsForURLs', -) -external bool _CTFontManagerRegisterFontsForURLs( - CFArrayRef fontURLs, - int scope, - ffi.Pointer errors, -); - -bool CTFontManagerRegisterFontsForURLs( - CFArrayRef fontURLs, - CTFontManagerScope scope, - ffi.Pointer errors, -) { - return _CTFontManagerRegisterFontsForURLs(fontURLs, scope.value, errors); -} - -@ffi.Native< - ffi.Void Function( - CFArrayRef, - CFBundleRef, - ffi.Uint32, - ffi.Bool, - ffi.Pointer, - ) ->(symbol: 'CTFontManagerRegisterFontsWithAssetNames') -external void _CTFontManagerRegisterFontsWithAssetNames( - CFArrayRef fontAssetNames, - CFBundleRef bundle, - int scope, - bool enabled, - ffi.Pointer registrationHandler, -); - -void CTFontManagerRegisterFontsWithAssetNames( - CFArrayRef fontAssetNames, - CFBundleRef bundle, - CTFontManagerScope scope, - bool enabled, - objc.ObjCBlock, ffi.Bool)>? - registrationHandler, -) { - final _$$ref = registrationHandler?.ref; - return _CTFontManagerRegisterFontsWithAssetNames( - fontAssetNames, - bundle, - scope.value, - enabled, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@Deprecated( - 'Use CTFontManagerCreateFontDescriptorsFromData or CTFontManagerRegisterFontsForURL', -) -@ffi.Native)>() -external bool CTFontManagerRegisterGraphicsFont( - CGFontRef font, - ffi.Pointer error, -); - -@ffi.Native)>( - symbol: 'CTFontManagerRequestFonts', -) -external void _CTFontManagerRequestFonts( - CFArrayRef fontDescriptors, - ffi.Pointer completionHandler, -); - -void CTFontManagerRequestFonts( - CFArrayRef fontDescriptors, - objc.ObjCBlock)> completionHandler, -) { - final _$$ref = completionHandler.ref; - return _CTFontManagerRequestFonts(fontDescriptors, _$$ref.pointer); -} - -@ffi.Native( - symbol: 'CTFontManagerSetAutoActivationSetting', -) -external void _CTFontManagerSetAutoActivationSetting( - CFStringRef bundleIdentifier, - int setting, -); - -void CTFontManagerSetAutoActivationSetting( - CFStringRef bundleIdentifier, - CTFontManagerAutoActivationSetting setting, -) { - return _CTFontManagerSetAutoActivationSetting( - bundleIdentifier, - setting.value, - ); -} - -@ffi.Native< - ffi.Void Function(CFArrayRef, ffi.Uint32, ffi.Pointer) ->(symbol: 'CTFontManagerUnregisterFontDescriptors') -external void _CTFontManagerUnregisterFontDescriptors( - CFArrayRef fontDescriptors, - int scope, - ffi.Pointer registrationHandler, -); - -void CTFontManagerUnregisterFontDescriptors( - CFArrayRef fontDescriptors, - CTFontManagerScope scope, - objc.ObjCBlock, ffi.Bool)>? - registrationHandler, -) { - final _$$ref = registrationHandler?.ref; - return _CTFontManagerUnregisterFontDescriptors( - fontDescriptors, - scope.value, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native< - ffi.Void Function(CFArrayRef, ffi.Uint32, ffi.Pointer) ->(symbol: 'CTFontManagerUnregisterFontURLs') -external void _CTFontManagerUnregisterFontURLs( - CFArrayRef fontURLs, - int scope, - ffi.Pointer registrationHandler, -); - -void CTFontManagerUnregisterFontURLs( - CFArrayRef fontURLs, - CTFontManagerScope scope, - objc.ObjCBlock, ffi.Bool)>? - registrationHandler, -) { - final _$$ref = registrationHandler?.ref; - return _CTFontManagerUnregisterFontURLs( - fontURLs, - scope.value, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native)>( - symbol: 'CTFontManagerUnregisterFontsForURL', -) -external bool _CTFontManagerUnregisterFontsForURL( - CFURLRef fontURL, - int scope, - ffi.Pointer error, -); - -bool CTFontManagerUnregisterFontsForURL( - CFURLRef fontURL, - CTFontManagerScope scope, - ffi.Pointer error, -) { - return _CTFontManagerUnregisterFontsForURL(fontURL, scope.value, error); -} - -@Deprecated('Deprecated') -@ffi.Native)>( - symbol: 'CTFontManagerUnregisterFontsForURLs', -) -external bool _CTFontManagerUnregisterFontsForURLs( - CFArrayRef fontURLs, - int scope, - ffi.Pointer errors, -); - -bool CTFontManagerUnregisterFontsForURLs( - CFArrayRef fontURLs, - CTFontManagerScope scope, - ffi.Pointer errors, -) { - return _CTFontManagerUnregisterFontsForURLs(fontURLs, scope.value, errors); -} - -@Deprecated('Use the API corresponding to the one used to register the font') -@ffi.Native)>() -external bool CTFontManagerUnregisterGraphicsFont( - CGFontRef font, - ffi.Pointer error, -); - -@ffi.Native() -external void CTFrameDraw(CTFrameRef frame, CGContextRef context); - -@ffi.Native() -external CFDictionaryRef CTFrameGetFrameAttributes(CTFrameRef frame); - -@ffi.Native)>() -external void CTFrameGetLineOrigins( - CTFrameRef frame, - CFRange range, - ffi.Pointer origins, -); - -@ffi.Native() -external CFArrayRef CTFrameGetLines(CTFrameRef frame); - -@ffi.Native() -external CGPathRef CTFrameGetPath(CTFrameRef frame); - -@ffi.Native() -external CFRange CTFrameGetStringRange(CTFrameRef frame); - -@ffi.Native() -external int CTFrameGetTypeID(); - -@ffi.Native() -external CFRange CTFrameGetVisibleStringRange(CTFrameRef frame); - -@ffi.Native< - CTFrameRef Function(CTFramesetterRef, CFRange, CGPathRef, CFDictionaryRef) ->() -external CTFrameRef CTFramesetterCreateFrame( - CTFramesetterRef framesetter, - CFRange stringRange, - CGPathRef path, - CFDictionaryRef frameAttributes, -); - -@ffi.Native() -external CTFramesetterRef CTFramesetterCreateWithAttributedString( - CFAttributedStringRef attrString, -); - -@ffi.Native() -external CTFramesetterRef CTFramesetterCreateWithTypesetter( - CTTypesetterRef typesetter, -); - -@ffi.Native() -external int CTFramesetterGetTypeID(); - -@ffi.Native() -external CTTypesetterRef CTFramesetterGetTypesetter( - CTFramesetterRef framesetter, -); - -@ffi.Native< - objc.CGSize Function( - CTFramesetterRef, - CFRange, - CFDictionaryRef, - objc.CGSize, - ffi.Pointer, - ) ->() -external objc.CGSize CTFramesetterSuggestFrameSizeWithConstraints( - CTFramesetterRef framesetter, - CFRange stringRange, - CFDictionaryRef frameAttributes, - objc.CGSize constraints, - ffi.Pointer fitRange, -); - -@Deprecated('Use -[NSProcessInfo operatingSystemVersion]') -@ffi.Native() -external int CTGetCoreTextVersion(); - -@ffi.Native( - symbol: 'CTGlyphInfoCreateWithCharacterIdentifier', -) -external CTGlyphInfoRef _CTGlyphInfoCreateWithCharacterIdentifier( - int cid, - int collection, - CFStringRef baseString, -); - -CTGlyphInfoRef CTGlyphInfoCreateWithCharacterIdentifier( - DartCGFontIndex cid, - CTCharacterCollection collection, - CFStringRef baseString, -) { - return _CTGlyphInfoCreateWithCharacterIdentifier( - cid, - collection.value, - baseString, - ); -} - -@ffi.Native() -external CTGlyphInfoRef CTGlyphInfoCreateWithGlyph( - int glyph, - CTFontRef font, - CFStringRef baseString, -); - -@ffi.Native() -external CTGlyphInfoRef CTGlyphInfoCreateWithGlyphName( - CFStringRef glyphName, - CTFontRef font, - CFStringRef baseString, -); - -@ffi.Native( - symbol: 'CTGlyphInfoGetCharacterCollection', -) -external int _CTGlyphInfoGetCharacterCollection(CTGlyphInfoRef glyphInfo); - -CTCharacterCollection CTGlyphInfoGetCharacterCollection( - CTGlyphInfoRef glyphInfo, -) { - return CTCharacterCollection.fromValue( - _CTGlyphInfoGetCharacterCollection(glyphInfo), - ); -} - -@ffi.Native() -external int CTGlyphInfoGetCharacterIdentifier(CTGlyphInfoRef glyphInfo); - -@ffi.Native() -external int CTGlyphInfoGetGlyph(CTGlyphInfoRef glyphInfo); - -@ffi.Native() -external CFStringRef CTGlyphInfoGetGlyphName(CTGlyphInfoRef glyphInfo); - -@ffi.Native() -external int CTGlyphInfoGetTypeID(); - -@ffi.Native() -external CTLineRef CTLineCreateJustifiedLine( - CTLineRef line, - double justificationFactor, - double justificationWidth, -); - -@ffi.Native( - symbol: 'CTLineCreateTruncatedLine', -) -external CTLineRef _CTLineCreateTruncatedLine( - CTLineRef line, - double width, - int truncationType, - CTLineRef truncationToken, -); - -CTLineRef CTLineCreateTruncatedLine( - CTLineRef line, - double width, - CTLineTruncationType truncationType, - CTLineRef truncationToken, -) { - return _CTLineCreateTruncatedLine( - line, - width, - truncationType.value, - truncationToken, - ); -} - -@ffi.Native() -external CTLineRef CTLineCreateWithAttributedString( - CFAttributedStringRef attrString, -); - -@ffi.Native() -external void CTLineDraw(CTLineRef line, CGContextRef context); - -@ffi.Native)>( - symbol: 'CTLineEnumerateCaretOffsets', -) -external void _CTLineEnumerateCaretOffsets( - CTLineRef line, - ffi.Pointer block, -); - -void CTLineEnumerateCaretOffsets( - CTLineRef line, - objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - block, -) { - final _$$ref = block.ref; - return _CTLineEnumerateCaretOffsets(line, _$$ref.pointer); -} - -@ffi.Native() -external objc.CGRect CTLineGetBoundsWithOptions(CTLineRef line, int options); - -@ffi.Native() -external int CTLineGetGlyphCount(CTLineRef line); - -@ffi.Native() -external CFArrayRef CTLineGetGlyphRuns(CTLineRef line); - -@ffi.Native() -external objc.CGRect CTLineGetImageBounds(CTLineRef line, CGContextRef context); - -@ffi.Native)>() -external double CTLineGetOffsetForStringIndex( - CTLineRef line, - int charIndex, - ffi.Pointer secondaryOffset, -); - -@ffi.Native() -external double CTLineGetPenOffsetForFlush( - CTLineRef line, - double flushFactor, - double flushWidth, -); - -@ffi.Native() -external int CTLineGetStringIndexForPosition( - CTLineRef line, - objc.CGPoint position, -); - -@ffi.Native() -external CFRange CTLineGetStringRange(CTLineRef line); - -@ffi.Native() -external double CTLineGetTrailingWhitespaceWidth(CTLineRef line); - -@ffi.Native() -external int CTLineGetTypeID(); - -@ffi.Native< - ffi.Double Function( - CTLineRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external double CTLineGetTypographicBounds( - CTLineRef line, - ffi.Pointer ascent, - ffi.Pointer descent, - ffi.Pointer leading, -); - -@ffi.Native< - CTParagraphStyleRef Function(ffi.Pointer, ffi.Size) ->() -external CTParagraphStyleRef CTParagraphStyleCreate( - ffi.Pointer settings, - int settingCount, -); - -@ffi.Native() -external CTParagraphStyleRef CTParagraphStyleCreateCopy( - CTParagraphStyleRef paragraphStyle, -); - -@ffi.Native() -external int CTParagraphStyleGetTypeID(); - -@ffi.Native< - ffi.Bool Function( - CTParagraphStyleRef, - ffi.Uint32, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'CTParagraphStyleGetValueForSpecifier') -external bool _CTParagraphStyleGetValueForSpecifier( - CTParagraphStyleRef paragraphStyle, - int spec, - int valueBufferSize, - ffi.Pointer valueBuffer, -); - -bool CTParagraphStyleGetValueForSpecifier( - CTParagraphStyleRef paragraphStyle, - CTParagraphStyleSpecifier spec, - int valueBufferSize, - ffi.Pointer valueBuffer, -) { - return _CTParagraphStyleGetValueForSpecifier( - paragraphStyle, - spec.value, - valueBufferSize, - valueBuffer, - ); -} - -@ffi.Native< - CTRubyAnnotationRef Function( - ffi.Uint8, - ffi.Uint8, - CGFloat, - ffi.Pointer, - ) ->(symbol: 'CTRubyAnnotationCreate') -external CTRubyAnnotationRef _CTRubyAnnotationCreate( - int alignment, - int overhang, - double sizeFactor, - ffi.Pointer text, -); - -CTRubyAnnotationRef CTRubyAnnotationCreate( - CTRubyAlignment alignment, - CTRubyOverhang overhang, - DartCGFloat sizeFactor, - ffi.Pointer text, -) { - return _CTRubyAnnotationCreate( - alignment.value, - overhang.value, - sizeFactor, - text, - ); -} - -@ffi.Native() -external CTRubyAnnotationRef CTRubyAnnotationCreateCopy( - CTRubyAnnotationRef rubyAnnotation, -); - -@ffi.Native< - CTRubyAnnotationRef Function( - ffi.Uint8, - ffi.Uint8, - ffi.Uint8, - CFStringRef, - CFDictionaryRef, - ) ->(symbol: 'CTRubyAnnotationCreateWithAttributes') -external CTRubyAnnotationRef _CTRubyAnnotationCreateWithAttributes( - int alignment, - int overhang, - int position, - CFStringRef string, - CFDictionaryRef attributes, -); - -CTRubyAnnotationRef CTRubyAnnotationCreateWithAttributes( - CTRubyAlignment alignment, - CTRubyOverhang overhang, - CTRubyPosition position, - CFStringRef string, - CFDictionaryRef attributes, -) { - return _CTRubyAnnotationCreateWithAttributes( - alignment.value, - overhang.value, - position.value, - string, - attributes, - ); -} - -@ffi.Native( - symbol: 'CTRubyAnnotationGetAlignment', -) -external int _CTRubyAnnotationGetAlignment(CTRubyAnnotationRef rubyAnnotation); - -CTRubyAlignment CTRubyAnnotationGetAlignment( - CTRubyAnnotationRef rubyAnnotation, -) { - return CTRubyAlignment.fromValue( - _CTRubyAnnotationGetAlignment(rubyAnnotation), - ); -} - -@ffi.Native( - symbol: 'CTRubyAnnotationGetOverhang', -) -external int _CTRubyAnnotationGetOverhang(CTRubyAnnotationRef rubyAnnotation); - -CTRubyOverhang CTRubyAnnotationGetOverhang(CTRubyAnnotationRef rubyAnnotation) { - return CTRubyOverhang.fromValue(_CTRubyAnnotationGetOverhang(rubyAnnotation)); -} - -@ffi.Native() -external double CTRubyAnnotationGetSizeFactor( - CTRubyAnnotationRef rubyAnnotation, -); - -@ffi.Native( - symbol: 'CTRubyAnnotationGetTextForPosition', -) -external CFStringRef _CTRubyAnnotationGetTextForPosition( - CTRubyAnnotationRef rubyAnnotation, - int position, -); - -CFStringRef CTRubyAnnotationGetTextForPosition( - CTRubyAnnotationRef rubyAnnotation, - CTRubyPosition position, -) { - return _CTRubyAnnotationGetTextForPosition(rubyAnnotation, position.value); -} - -@ffi.Native() -external int CTRubyAnnotationGetTypeID(); - -@ffi.Native< - CTRunDelegateRef Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external CTRunDelegateRef CTRunDelegateCreate( - ffi.Pointer callbacks, - ffi.Pointer refCon, -); - -@ffi.Native Function(CTRunDelegateRef)>() -external ffi.Pointer CTRunDelegateGetRefCon( - CTRunDelegateRef runDelegate, -); - -@ffi.Native() -external int CTRunDelegateGetTypeID(); - -@ffi.Native() -external void CTRunDraw(CTRunRef run, CGContextRef context, CFRange range); - -@ffi.Native)>() -external void CTRunGetAdvances( - CTRunRef run, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native Function(CTRunRef)>() -external ffi.Pointer CTRunGetAdvancesPtr(CTRunRef run); - -@ffi.Native() -external CFDictionaryRef CTRunGetAttributes(CTRunRef run); - -@ffi.Native< - ffi.Void Function( - CTRunRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CTRunGetBaseAdvancesAndOrigins( - CTRunRef runRef, - CFRange range, - ffi.Pointer advancesBuffer, - ffi.Pointer originsBuffer, -); - -@ffi.Native() -external int CTRunGetGlyphCount(CTRunRef run); - -@ffi.Native)>() -external void CTRunGetGlyphs( - CTRunRef run, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native Function(CTRunRef)>() -external ffi.Pointer CTRunGetGlyphsPtr(CTRunRef run); - -@ffi.Native() -external objc.CGRect CTRunGetImageBounds( - CTRunRef run, - CGContextRef context, - CFRange range, -); - -@ffi.Native)>() -external void CTRunGetPositions( - CTRunRef run, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native Function(CTRunRef)>() -external ffi.Pointer CTRunGetPositionsPtr(CTRunRef run); - -@ffi.Native() -external int CTRunGetStatus(CTRunRef run); - -@ffi.Native)>() -external void CTRunGetStringIndices( - CTRunRef run, - CFRange range, - ffi.Pointer buffer, -); - -@ffi.Native Function(CTRunRef)>() -external ffi.Pointer CTRunGetStringIndicesPtr(CTRunRef run); - -@ffi.Native() -external CFRange CTRunGetStringRange(CTRunRef run); - -@ffi.Native() -external CGAffineTransform CTRunGetTextMatrix(CTRunRef run); - -@ffi.Native() -external int CTRunGetTypeID(); - -@ffi.Native< - ffi.Double Function( - CTRunRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external double CTRunGetTypographicBounds( - CTRunRef run, - CFRange range, - ffi.Pointer ascent, - ffi.Pointer descent, - ffi.Pointer leading, -); - -@ffi.Native( - symbol: 'CTTextTabCreate', -) -external CTTextTabRef _CTTextTabCreate( - int alignment, - double location, - CFDictionaryRef options, -); - -CTTextTabRef CTTextTabCreate( - CTTextAlignment alignment, - double location, - CFDictionaryRef options, -) { - return _CTTextTabCreate(alignment.value, location, options); -} - -@ffi.Native(symbol: 'CTTextTabGetAlignment') -external int _CTTextTabGetAlignment(CTTextTabRef tab); - -CTTextAlignment CTTextTabGetAlignment(CTTextTabRef tab) { - return CTTextAlignment.fromValue(_CTTextTabGetAlignment(tab)); -} - -@ffi.Native() -external double CTTextTabGetLocation(CTTextTabRef tab); - -@ffi.Native() -external CFDictionaryRef CTTextTabGetOptions(CTTextTabRef tab); - -@ffi.Native() -external int CTTextTabGetTypeID(); - -@ffi.Native() -external CTLineRef CTTypesetterCreateLine( - CTTypesetterRef typesetter, - CFRange stringRange, -); - -@ffi.Native() -external CTLineRef CTTypesetterCreateLineWithOffset( - CTTypesetterRef typesetter, - CFRange stringRange, - double offset, -); - -@ffi.Native() -external CTTypesetterRef CTTypesetterCreateWithAttributedString( - CFAttributedStringRef string, -); - -@ffi.Native() -external CTTypesetterRef CTTypesetterCreateWithAttributedStringAndOptions( - CFAttributedStringRef string, - CFDictionaryRef options, -); - -@ffi.Native() -external int CTTypesetterGetTypeID(); - -@ffi.Native() -external int CTTypesetterSuggestClusterBreak( - CTTypesetterRef typesetter, - int startIndex, - double width, -); - -@ffi.Native< - CFIndex Function(CTTypesetterRef, CFIndex, ffi.Double, ffi.Double) ->() -external int CTTypesetterSuggestClusterBreakWithOffset( - CTTypesetterRef typesetter, - int startIndex, - double width, - double offset, -); - -@ffi.Native() -external int CTTypesetterSuggestLineBreak( - CTTypesetterRef typesetter, - int startIndex, - double width, -); - -@ffi.Native< - CFIndex Function(CTTypesetterRef, CFIndex, ffi.Double, ffi.Double) ->() -external int CTTypesetterSuggestLineBreakWithOffset( - CTTypesetterRef typesetter, - int startIndex, - double width, - double offset, -); - -@ffi.Native< - CFTypeRef Function(CVBufferRef, CFStringRef, ffi.Pointer) ->() -external CFTypeRef CVBufferCopyAttachment( - CVBufferRef buffer, - CFStringRef key, - ffi.Pointer attachmentMode, -); - -@ffi.Native( - symbol: 'CVBufferCopyAttachments', -) -external CFDictionaryRef _CVBufferCopyAttachments( - CVBufferRef buffer, - int attachmentMode, -); - -CFDictionaryRef CVBufferCopyAttachments( - CVBufferRef buffer, - CVAttachmentMode attachmentMode, -) { - return _CVBufferCopyAttachments(buffer, attachmentMode.value); -} - -@Deprecated('Deprecated') -@ffi.Native< - CFTypeRef Function(CVBufferRef, CFStringRef, ffi.Pointer) ->() -external CFTypeRef CVBufferGetAttachment( - CVBufferRef buffer, - CFStringRef key, - ffi.Pointer attachmentMode, -); - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'CVBufferGetAttachments', -) -external CFDictionaryRef _CVBufferGetAttachments( - CVBufferRef buffer, - int attachmentMode, -); - -CFDictionaryRef CVBufferGetAttachments( - CVBufferRef buffer, - CVAttachmentMode attachmentMode, -) { - return _CVBufferGetAttachments(buffer, attachmentMode.value); -} - -@ffi.Native() -external int CVBufferHasAttachment(CVBufferRef buffer, CFStringRef key); - -@ffi.Native() -external void CVBufferPropagateAttachments( - CVBufferRef sourceBuffer, - CVBufferRef destinationBuffer, -); - -@ffi.Native() -external void CVBufferRelease(CVBufferRef buffer); - -@ffi.Native() -external void CVBufferRemoveAllAttachments(CVBufferRef buffer); - -@ffi.Native() -external void CVBufferRemoveAttachment(CVBufferRef buffer, CFStringRef key); - -@ffi.Native() -external CVBufferRef CVBufferRetain(CVBufferRef buffer); - -@ffi.Native( - symbol: 'CVBufferSetAttachment', -) -external void _CVBufferSetAttachment( - CVBufferRef buffer, - CFStringRef key, - CFTypeRef value, - int attachmentMode, -); - -void CVBufferSetAttachment( - CVBufferRef buffer, - CFStringRef key, - CFTypeRef value, - CVAttachmentMode attachmentMode, -) { - return _CVBufferSetAttachment(buffer, key, value, attachmentMode.value); -} - -@ffi.Native( - symbol: 'CVBufferSetAttachments', -) -external void _CVBufferSetAttachments( - CVBufferRef buffer, - CFDictionaryRef theAttachments, - int attachmentMode, -); - -void CVBufferSetAttachments( - CVBufferRef buffer, - CFDictionaryRef theAttachments, - CVAttachmentMode attachmentMode, -) { - return _CVBufferSetAttachments(buffer, theAttachments, attachmentMode.value); -} - -@ffi.Native() -external int CVColorPrimariesGetIntegerCodePointForString( - CFStringRef colorPrimariesString, -); - -@ffi.Native() -external CFStringRef CVColorPrimariesGetStringForIntegerCodePoint( - int colorPrimariesCodePoint, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native)>() -external int CVDisplayLinkCreateWithActiveCGDisplays( - ffi.Pointer displayLinkOut, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function(CGDirectDisplayID, ffi.Pointer) ->() -external int CVDisplayLinkCreateWithCGDisplay( - int displayID, - ffi.Pointer displayLinkOut, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function( - ffi.Pointer, - CFIndex, - ffi.Pointer, - ) ->() -external int CVDisplayLinkCreateWithCGDisplays( - ffi.Pointer displayArray, - int count, - ffi.Pointer displayLinkOut, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function(CGOpenGLDisplayMask, ffi.Pointer) ->() -external int CVDisplayLinkCreateWithOpenGLDisplayMask( - int mask, - ffi.Pointer displayLinkOut, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external double CVDisplayLinkGetActualOutputVideoRefreshPeriod( - CVDisplayLinkRef displayLink, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkGetCurrentCGDisplay(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native)>() -external int CVDisplayLinkGetCurrentTime( - CVDisplayLinkRef displayLink, - ffi.Pointer outTime, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external CVTime CVDisplayLinkGetNominalOutputVideoRefreshPeriod( - CVDisplayLinkRef displayLink, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external CVTime CVDisplayLinkGetOutputVideoLatency( - CVDisplayLinkRef displayLink, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkGetTypeID(); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkIsRunning(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external void CVDisplayLinkRelease(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external CVDisplayLinkRef CVDisplayLinkRetain(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkSetCurrentCGDisplay( - CVDisplayLinkRef displayLink, - int displayID, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function(CVDisplayLinkRef, CGLContextObj, CGLPixelFormatObj) ->() -external int CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext( - CVDisplayLinkRef displayLink, - CGLContextObj cglContext, - CGLPixelFormatObj cglPixelFormat, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function( - CVDisplayLinkRef, - CVDisplayLinkOutputCallback, - ffi.Pointer, - ) ->() -external int CVDisplayLinkSetOutputCallback( - CVDisplayLinkRef displayLink, - CVDisplayLinkOutputCallback callback, - ffi.Pointer userInfo, -); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native( - symbol: 'CVDisplayLinkSetOutputHandler', -) -external int _CVDisplayLinkSetOutputHandler( - CVDisplayLinkRef displayLink, - CVDisplayLinkOutputHandler handler, -); - -DartCVReturn CVDisplayLinkSetOutputHandler( - CVDisplayLinkRef displayLink, - DartCVDisplayLinkOutputHandler handler, -) { - final _$$ref = handler.ref; - return _CVDisplayLinkSetOutputHandler(displayLink, _$$ref.pointer); -} - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkStart(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native() -external int CVDisplayLinkStop(CVDisplayLinkRef displayLink); - -@Deprecated( - 'use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:) ', -) -@ffi.Native< - CVReturn Function( - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CVDisplayLinkTranslateTime( - CVDisplayLinkRef displayLink, - ffi.Pointer inTime, - ffi.Pointer outTime, -); - -@ffi.Native() -external int CVGetCurrentHostTime(); - -@ffi.Native() -external double CVGetHostClockFrequency(); - -@ffi.Native() -external int CVGetHostClockMinimumTimeDelta(); - -@ffi.Native() -external CGColorSpaceRef CVImageBufferCreateColorSpaceFromAttachments( - CFDictionaryRef attachments, -); - -@ffi.Native() -external objc.CGRect CVImageBufferGetCleanRect(CVImageBufferRef imageBuffer); - -@ffi.Native() -external CGColorSpaceRef CVImageBufferGetColorSpace( - CVImageBufferRef imageBuffer, -); - -@ffi.Native() -external objc.CGSize CVImageBufferGetDisplaySize(CVImageBufferRef imageBuffer); - -@ffi.Native() -external objc.CGSize CVImageBufferGetEncodedSize(CVImageBufferRef imageBuffer); - -@ffi.Native() -external int CVImageBufferIsFlipped(CVImageBufferRef imageBuffer); - -@ffi.Native() -external int CVIsCompressedPixelFormatAvailable(int pixelFormatType); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'CVMetalBufferCacheCreate') -external int _CVMetalBufferCacheCreate( - CFAllocatorRef allocator, - CFDictionaryRef cacheAttributes, - ffi.Pointer metalDevice, - ffi.Pointer cacheOut, -); - -DartCVReturn CVMetalBufferCacheCreate( - CFAllocatorRef allocator, - CFDictionaryRef cacheAttributes, - MTLDevice metalDevice, - ffi.Pointer cacheOut, -) { - final _$$ref = metalDevice.ref; - return _CVMetalBufferCacheCreate( - allocator, - cacheAttributes, - _$$ref.pointer, - cacheOut, - ); -} - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVMetalBufferCacheRef, - CVImageBufferRef, - ffi.Pointer, - ) ->() -external int CVMetalBufferCacheCreateBufferFromImage( - CFAllocatorRef allocator, - CVMetalBufferCacheRef bufferCache, - CVImageBufferRef imageBuffer, - ffi.Pointer bufferOut, -); - -@ffi.Native() -external void CVMetalBufferCacheFlush( - CVMetalBufferCacheRef bufferCache, - int options, -); - -@ffi.Native() -external int CVMetalBufferCacheGetTypeID(); - -@ffi.Native Function(CVMetalBufferRef)>( - symbol: 'CVMetalBufferGetBuffer', -) -external ffi.Pointer _CVMetalBufferGetBuffer( - CVMetalBufferRef buffer, -); - -MTLBuffer? CVMetalBufferGetBuffer(CVMetalBufferRef buffer) { - return _CVMetalBufferGetBuffer(buffer).address == 0 - ? null - : MTLBuffer.fromPointer( - _CVMetalBufferGetBuffer(buffer), - retain: true, - release: true, - ); -} - -@ffi.Native() -external int CVMetalBufferGetTypeID(); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CFDictionaryRef, - ffi.Pointer, - CFDictionaryRef, - ffi.Pointer, - ) ->(symbol: 'CVMetalTextureCacheCreate') -external int _CVMetalTextureCacheCreate( - CFAllocatorRef allocator, - CFDictionaryRef cacheAttributes, - ffi.Pointer metalDevice, - CFDictionaryRef textureAttributes, - ffi.Pointer cacheOut, -); - -DartCVReturn CVMetalTextureCacheCreate( - CFAllocatorRef allocator, - CFDictionaryRef cacheAttributes, - MTLDevice metalDevice, - CFDictionaryRef textureAttributes, - ffi.Pointer cacheOut, -) { - final _$$ref = metalDevice.ref; - return _CVMetalTextureCacheCreate( - allocator, - cacheAttributes, - _$$ref.pointer, - textureAttributes, - cacheOut, - ); -} - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVMetalTextureCacheRef, - CVImageBufferRef, - CFDictionaryRef, - NSUInteger, - ffi.Size, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'CVMetalTextureCacheCreateTextureFromImage') -external int _CVMetalTextureCacheCreateTextureFromImage( - CFAllocatorRef allocator, - CVMetalTextureCacheRef textureCache, - CVImageBufferRef sourceImage, - CFDictionaryRef textureAttributes, - int pixelFormat, - int width, - int height, - int planeIndex, - ffi.Pointer textureOut, -); - -DartCVReturn CVMetalTextureCacheCreateTextureFromImage( - CFAllocatorRef allocator, - CVMetalTextureCacheRef textureCache, - CVImageBufferRef sourceImage, - CFDictionaryRef textureAttributes, - MTLPixelFormat pixelFormat, - int width, - int height, - int planeIndex, - ffi.Pointer textureOut, -) { - return _CVMetalTextureCacheCreateTextureFromImage( - allocator, - textureCache, - sourceImage, - textureAttributes, - pixelFormat.value, - width, - height, - planeIndex, - textureOut, - ); -} - -@ffi.Native() -external void CVMetalTextureCacheFlush( - CVMetalTextureCacheRef textureCache, - int options, -); - -@ffi.Native() -external int CVMetalTextureCacheGetTypeID(); - -@ffi.Native< - ffi.Void Function( - CVMetalTextureRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CVMetalTextureGetCleanTexCoords( - CVMetalTextureRef image, - ffi.Pointer lowerLeft, - ffi.Pointer lowerRight, - ffi.Pointer upperRight, - ffi.Pointer upperLeft, -); - -@ffi.Native Function(CVMetalTextureRef)>( - symbol: 'CVMetalTextureGetTexture', -) -external ffi.Pointer _CVMetalTextureGetTexture( - CVMetalTextureRef image, -); - -MTLTexture? CVMetalTextureGetTexture(CVMetalTextureRef image) { - return _CVMetalTextureGetTexture(image).address == 0 - ? null - : MTLTexture.fromPointer( - _CVMetalTextureGetTexture(image), - retain: true, - release: true, - ); -} - -@ffi.Native() -external int CVMetalTextureGetTypeID(); - -@ffi.Native() -external int CVMetalTextureIsFlipped(CVMetalTextureRef image); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function(CVOpenGLBufferRef, CGLContextObj, GLenum, GLint, GLint) ->() -external int CVOpenGLBufferAttach( - CVOpenGLBufferRef openGLBuffer, - CGLContextObj cglContext, - int face, - int level, - int screen, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - ffi.Size, - ffi.Size, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVOpenGLBufferCreate( - CFAllocatorRef allocator, - int width, - int height, - CFDictionaryRef attributes, - ffi.Pointer bufferOut, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CFDictionaryRef CVOpenGLBufferGetAttributes( - CVOpenGLBufferRef openGLBuffer, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLBufferGetTypeID(); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CFDictionaryRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVOpenGLBufferPoolCreate( - CFAllocatorRef allocator, - CFDictionaryRef poolAttributes, - CFDictionaryRef openGLBufferAttributes, - ffi.Pointer poolOut, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVOpenGLBufferPoolRef, - ffi.Pointer, - ) ->() -external int CVOpenGLBufferPoolCreateOpenGLBuffer( - CFAllocatorRef allocator, - CVOpenGLBufferPoolRef openGLBufferPool, - ffi.Pointer openGLBufferOut, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CFDictionaryRef CVOpenGLBufferPoolGetAttributes( - CVOpenGLBufferPoolRef pool, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CFDictionaryRef CVOpenGLBufferPoolGetOpenGLBufferAttributes( - CVOpenGLBufferPoolRef pool, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLBufferPoolGetTypeID(); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CVOpenGLBufferPoolRelease(CVOpenGLBufferPoolRef openGLBufferPool); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CVOpenGLBufferPoolRef CVOpenGLBufferPoolRetain( - CVOpenGLBufferPoolRef openGLBufferPool, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CVOpenGLBufferRelease(CVOpenGLBufferRef buffer); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CVOpenGLBufferRef CVOpenGLBufferRetain(CVOpenGLBufferRef buffer); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CFDictionaryRef, - CGLContextObj, - CGLPixelFormatObj, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVOpenGLTextureCacheCreate( - CFAllocatorRef allocator, - CFDictionaryRef cacheAttributes, - CGLContextObj cglContext, - CGLPixelFormatObj cglPixelFormat, - CFDictionaryRef textureAttributes, - ffi.Pointer cacheOut, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVOpenGLTextureCacheRef, - CVImageBufferRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVOpenGLTextureCacheCreateTextureFromImage( - CFAllocatorRef allocator, - CVOpenGLTextureCacheRef textureCache, - CVImageBufferRef sourceImage, - CFDictionaryRef attributes, - ffi.Pointer textureOut, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CVOpenGLTextureCacheFlush( - CVOpenGLTextureCacheRef textureCache, - int options, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLTextureCacheGetTypeID(); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CVOpenGLTextureCacheRelease(CVOpenGLTextureCacheRef textureCache); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CVOpenGLTextureCacheRef CVOpenGLTextureCacheRetain( - CVOpenGLTextureCacheRef textureCache, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native< - ffi.Void Function( - CVOpenGLTextureRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CVOpenGLTextureGetCleanTexCoords( - CVOpenGLTextureRef image, - ffi.Pointer lowerLeft, - ffi.Pointer lowerRight, - ffi.Pointer upperRight, - ffi.Pointer upperLeft, -); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLTextureGetName(CVOpenGLTextureRef image); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLTextureGetTarget(CVOpenGLTextureRef image); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLTextureGetTypeID(); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external int CVOpenGLTextureIsFlipped(CVOpenGLTextureRef image); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external void CVOpenGLTextureRelease(CVOpenGLTextureRef texture); - -@Deprecated( - 'OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)', -) -@ffi.Native() -external CVOpenGLTextureRef CVOpenGLTextureRetain(CVOpenGLTextureRef texture); - -@ffi.Native() -external CFDictionaryRef CVPixelBufferCopyCreationAttributes( - CVPixelBufferRef pixelBuffer, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - ffi.Size, - ffi.Size, - OSType, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferCreate( - CFAllocatorRef allocator, - int width, - int height, - int pixelFormatType, - CFDictionaryRef pixelBufferAttributes, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native< - CVReturn Function(CFAllocatorRef, CFArrayRef, ffi.Pointer) ->() -external int CVPixelBufferCreateResolvedAttributesDictionary( - CFAllocatorRef allocator, - CFArrayRef attributes, - ffi.Pointer resolvedDictionaryOut, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - ffi.Size, - ffi.Size, - OSType, - ffi.Pointer, - ffi.Size, - CVPixelBufferReleaseBytesCallback, - ffi.Pointer, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferCreateWithBytes( - CFAllocatorRef allocator, - int width, - int height, - int pixelFormatType, - ffi.Pointer baseAddress, - int bytesPerRow, - CVPixelBufferReleaseBytesCallback releaseCallback, - ffi.Pointer releaseRefCon, - CFDictionaryRef pixelBufferAttributes, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - IOSurfaceRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferCreateWithIOSurface( - CFAllocatorRef allocator, - IOSurfaceRef surface, - CFDictionaryRef pixelBufferAttributes, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - ffi.Size, - ffi.Size, - OSType, - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CVPixelBufferReleasePlanarBytesCallback, - ffi.Pointer, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferCreateWithPlanarBytes( - CFAllocatorRef allocator, - int width, - int height, - int pixelFormatType, - ffi.Pointer dataPtr, - int dataSize, - int numberOfPlanes, - ffi.Pointer> planeBaseAddress, - ffi.Pointer planeWidth, - ffi.Pointer planeHeight, - ffi.Pointer planeBytesPerRow, - CVPixelBufferReleasePlanarBytesCallback releaseCallback, - ffi.Pointer releaseRefCon, - CFDictionaryRef pixelBufferAttributes, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native() -external int CVPixelBufferFillExtendedPixels(CVPixelBufferRef pixelBuffer); - -@ffi.Native Function(CVPixelBufferRef)>() -external ffi.Pointer CVPixelBufferGetBaseAddress( - CVPixelBufferRef pixelBuffer, -); - -@ffi.Native Function(CVPixelBufferRef, ffi.Size)>() -external ffi.Pointer CVPixelBufferGetBaseAddressOfPlane( - CVPixelBufferRef pixelBuffer, - int planeIndex, -); - -@ffi.Native() -external int CVPixelBufferGetBytesPerRow(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetBytesPerRowOfPlane( - CVPixelBufferRef pixelBuffer, - int planeIndex, -); - -@ffi.Native() -external int CVPixelBufferGetDataSize(CVPixelBufferRef pixelBuffer); - -@ffi.Native< - ffi.Void Function( - CVPixelBufferRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void CVPixelBufferGetExtendedPixels( - CVPixelBufferRef pixelBuffer, - ffi.Pointer extraColumnsOnLeft, - ffi.Pointer extraColumnsOnRight, - ffi.Pointer extraRowsOnTop, - ffi.Pointer extraRowsOnBottom, -); - -@ffi.Native() -external int CVPixelBufferGetHeight(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetHeightOfPlane( - CVPixelBufferRef pixelBuffer, - int planeIndex, -); - -@ffi.Native() -external IOSurfaceRef CVPixelBufferGetIOSurface(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetPixelFormatType(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetPlaneCount(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetTypeID(); - -@ffi.Native() -external int CVPixelBufferGetWidth(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferGetWidthOfPlane( - CVPixelBufferRef pixelBuffer, - int planeIndex, -); - -@ffi.Native() -external int CVPixelBufferIsCompatibleWithAttributes( - CVPixelBufferRef pixelBuffer, - CFDictionaryRef attributes, -); - -@ffi.Native() -external int CVPixelBufferIsPlanar(CVPixelBufferRef pixelBuffer); - -@ffi.Native() -external int CVPixelBufferLockBaseAddress( - CVPixelBufferRef pixelBuffer, - int lockFlags, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CFDictionaryRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferPoolCreate( - CFAllocatorRef allocator, - CFDictionaryRef poolAttributes, - CFDictionaryRef pixelBufferAttributes, - ffi.Pointer poolOut, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVPixelBufferPoolRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferPoolCreatePixelBuffer( - CFAllocatorRef allocator, - CVPixelBufferPoolRef pixelBufferPool, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native< - CVReturn Function( - CFAllocatorRef, - CVPixelBufferPoolRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int CVPixelBufferPoolCreatePixelBufferWithAuxAttributes( - CFAllocatorRef allocator, - CVPixelBufferPoolRef pixelBufferPool, - CFDictionaryRef auxAttributes, - ffi.Pointer pixelBufferOut, -); - -@ffi.Native() -external void CVPixelBufferPoolFlush(CVPixelBufferPoolRef pool, int options); - -@ffi.Native() -external CFDictionaryRef CVPixelBufferPoolGetAttributes( - CVPixelBufferPoolRef pool, -); - -@ffi.Native() -external CFDictionaryRef CVPixelBufferPoolGetPixelBufferAttributes( - CVPixelBufferPoolRef pool, -); - -@ffi.Native() -external int CVPixelBufferPoolGetTypeID(); - -@ffi.Native() -external void CVPixelBufferPoolRelease(CVPixelBufferPoolRef pixelBufferPool); - -@ffi.Native() -external CVPixelBufferPoolRef CVPixelBufferPoolRetain( - CVPixelBufferPoolRef pixelBufferPool, -); - -@ffi.Native() -external void CVPixelBufferRelease(CVPixelBufferRef texture); - -@ffi.Native() -external CVPixelBufferRef CVPixelBufferRetain(CVPixelBufferRef texture); - -@ffi.Native() -external int CVPixelBufferUnlockBaseAddress( - CVPixelBufferRef pixelBuffer, - int unlockFlags, -); - -@ffi.Native() -external CFArrayRef CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes( - CFAllocatorRef allocator, -); - -@ffi.Native() -external CFDictionaryRef CVPixelFormatDescriptionCreateWithPixelFormatType( - CFAllocatorRef allocator, - int pixelFormat, -); - -@ffi.Native() -external void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType( - CFDictionaryRef description, - int pixelFormat, -); - -@ffi.Native() -external CFStringRef CVPixelFormatTypeCopyFourCharCodeString(int pixelFormat); - -@ffi.Native() -external int CVTransferFunctionGetIntegerCodePointForString( - CFStringRef transferFunctionString, -); - -@ffi.Native() -external CFStringRef CVTransferFunctionGetStringForIntegerCodePoint( - int transferFunctionCodePoint, -); - -@ffi.Native() -external int CVYCbCrMatrixGetIntegerCodePointForString( - CFStringRef yCbCrMatrixString, -); - -@ffi.Native() -external CFStringRef CVYCbCrMatrixGetStringForIntegerCodePoint( - int yCbCrMatrixCodePoint, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentCanDo(ComponentInstance ci, int ftnNumber); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentClose(ComponentInstance ci, ComponentInstance self); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CallComponentDispatch(ffi.Pointer cp); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - ffi.Pointer, - ComponentFunctionUPP, - ) ->() -external int CallComponentFunction( - ffi.Pointer params, - ComponentFunctionUPP func, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - Handle, - ffi.Pointer, - ComponentFunctionUPP, - ) ->() -external int CallComponentFunctionWithStorage( - Handle storage, - ffi.Pointer params, - ComponentFunctionUPP func, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - Handle, - ffi.Pointer, - ProcPtr, - ProcInfoType, - ) ->() -external int CallComponentFunctionWithStorageProcInfo( - Handle storage, - ffi.Pointer params, - ProcPtr func, - int funcProcInfo, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - ComponentInstance, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CallComponentGetMPWorkFunction( - ComponentInstance ci, - ffi.Pointer workFunction, - ffi.Pointer> refCon, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - ComponentInstance, - OSType, - SInt16, - ffi.Pointer, - ) ->() -external int CallComponentGetPublicResource( - ComponentInstance ci, - int resourceType, - int resourceID, - ffi.Pointer resource, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentOpen(ComponentInstance ci, ComponentInstance self); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentRegister(ComponentInstance ci); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentTarget( - ComponentInstance ci, - ComponentInstance target, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentUnregister(ComponentInstance ci); - -@Deprecated('Deprecated') -@ffi.Native() -external int CallComponentVersion(ComponentInstance ci); - -@Deprecated('Deprecated') -@ffi.Native() -external Component CaptureComponent( - Component capturedComponent, - Component capturingComponent, -); - -@ffi.Native() -external int ChangeTextToUnicodeInfo( - TextToUnicodeInfo ioTextToUnicodeInfo, - ConstUnicodeMappingPtr iUnicodeMapping, -); - -@ffi.Native() -external int ChangeUnicodeToTextInfo( - UnicodeToTextInfo ioUnicodeToTextInfo, - ConstUnicodeMappingPtr iUnicodeMapping, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void ChangedResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external Collection CloneCollection(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external int CloseComponent(ComponentInstance aComponentInstance); - -@Deprecated('Deprecated') -@ffi.Native() -external int CloseComponentResFile(int refnum); - -@Deprecated('Deprecated') -@ffi.Native() -external void CloseResFile(int refNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int CollectionTagExists(Collection c, int tag); - -@ffi.Native() -external int ColorSyncAPIVersion(); - -@ffi.Native() -external CFStringRef ColorSyncCMMCopyCMMIdentifier(ColorSyncCMMRef arg0); - -@ffi.Native() -external CFStringRef ColorSyncCMMCopyLocalizedName(ColorSyncCMMRef arg0); - -@ffi.Native() -external ColorSyncCMMRef ColorSyncCMMCreate(CFBundleRef cmmBundle); - -@ffi.Native() -external CFBundleRef ColorSyncCMMGetBundle(ColorSyncCMMRef arg0); - -@ffi.Native() -external int ColorSyncCMMGetTypeID(); - -@ffi.Native() -external CFTypeRef ColorSyncCreateCodeFragment( - CFArrayRef profileSequence, - CFDictionaryRef options, -); - -@ffi.Native() -external CFDictionaryRef ColorSyncDeviceCopyDeviceInfo( - CFStringRef deviceClass, - CFUUIDRef devID, -); - -@ffi.Native() -external bool ColorSyncDeviceSetCustomProfiles( - CFStringRef deviceClass, - CFUUIDRef deviceID, - CFDictionaryRef profileInfo, -); - -@ffi.Native< - ffi.Void Function( - ColorSyncDeviceProfileIterateCallback, - ffi.Pointer, - ) ->() -external void ColorSyncIterateDeviceProfiles( - ColorSyncDeviceProfileIterateCallback callBack, - ffi.Pointer userInfo, -); - -@ffi.Native< - ffi.Void Function(ColorSyncCMMIterateCallback, ffi.Pointer) ->() -external void ColorSyncIterateInstalledCMMs( - ColorSyncCMMIterateCallback callBack, - ffi.Pointer userInfo, -); - -@ffi.Native< - ffi.Void Function( - ColorSyncProfileIterateCallback, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void ColorSyncIterateInstalledProfiles( - ColorSyncProfileIterateCallback callBack, - ffi.Pointer seed, - ffi.Pointer userInfo, - ffi.Pointer error, -); - -@ffi.Native< - ffi.Void Function( - ColorSyncProfileIterateCallback, - ffi.Pointer, - ffi.Pointer, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external void ColorSyncIterateInstalledProfilesWithOptions( - ColorSyncProfileIterateCallback callBack, - ffi.Pointer seed, - ffi.Pointer userInfo, - CFDictionaryRef options, - ffi.Pointer error, -); - -@ffi.Native() -external bool ColorSyncProfileContainsTag( - ColorSyncProfileRef prof, - CFStringRef signature, -); - -@ffi.Native)>() -external CFDataRef ColorSyncProfileCopyData( - ColorSyncProfileRef prof, - ffi.Pointer error, -); - -@ffi.Native() -external CFStringRef ColorSyncProfileCopyDescriptionString( - ColorSyncProfileRef prof, -); - -@ffi.Native() -external CFDataRef ColorSyncProfileCopyHeader(ColorSyncProfileRef prof); - -@ffi.Native() -external CFDataRef ColorSyncProfileCopyTag( - ColorSyncProfileRef prof, - CFStringRef signature, -); - -@ffi.Native() -external CFArrayRef ColorSyncProfileCopyTagSignatures(ColorSyncProfileRef prof); - -@ffi.Native)>() -external ColorSyncProfileRef ColorSyncProfileCreate( - CFDataRef data, - ffi.Pointer error, -); - -@ffi.Native() -external ColorSyncProfileRef ColorSyncProfileCreateDeviceProfile( - CFStringRef deviceClass, - CFUUIDRef deviceID, - CFTypeRef profileID, -); - -@ffi.Native)>() -external CFDataRef ColorSyncProfileCreateDisplayTransferTablesFromVCGT( - ColorSyncProfileRef profile, - ffi.Pointer nSamplesPerChannel, -); - -@ffi.Native() -external ColorSyncProfileRef ColorSyncProfileCreateLink( - CFArrayRef profileInfo, - CFDictionaryRef options, -); - -@ffi.Native() -external ColorSyncMutableProfileRef ColorSyncProfileCreateMutable(); - -@ffi.Native() -external ColorSyncMutableProfileRef ColorSyncProfileCreateMutableCopy( - ColorSyncProfileRef prof, -); - -@ffi.Native() -external ColorSyncProfileRef ColorSyncProfileCreateWithDisplayID(int displayID); - -@ffi.Native() -external ColorSyncProfileRef ColorSyncProfileCreateWithName(CFStringRef name); - -@ffi.Native)>() -external ColorSyncProfileRef ColorSyncProfileCreateWithURL( - CFURLRef url, - ffi.Pointer error, -); - -@ffi.Native)>() -external double ColorSyncProfileEstimateGamma( - ColorSyncProfileRef prof, - ffi.Pointer error, -); - -@ffi.Native)>() -external double ColorSyncProfileEstimateGammaWithDisplayID( - int displayID, - ffi.Pointer error, -); - -@ffi.Native< - ffi.Bool Function( - ColorSyncProfileRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool ColorSyncProfileGetDisplayTransferFormulaFromVCGT( - ColorSyncProfileRef profile, - ffi.Pointer redMin, - ffi.Pointer redMax, - ffi.Pointer redGamma, - ffi.Pointer greenMin, - ffi.Pointer greenMax, - ffi.Pointer greenGamma, - ffi.Pointer blueMin, - ffi.Pointer blueMax, - ffi.Pointer blueGamma, -); - -@ffi.Native() -external ColorSyncMD5 ColorSyncProfileGetMD5(ColorSyncProfileRef prof); - -@ffi.Native() -external int ColorSyncProfileGetTypeID(); - -@ffi.Native)>() -external CFURLRef ColorSyncProfileGetURL( - ColorSyncProfileRef prof, - ffi.Pointer error, -); - -@ffi.Native< - ffi.Bool Function( - ColorSyncProfileRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->() -external bool ColorSyncProfileInstall( - ColorSyncProfileRef profile, - CFStringRef domain, - CFStringRef subpath, - ffi.Pointer error, -); - -@ffi.Native() -external bool ColorSyncProfileIsHLGBased(ColorSyncProfileRef arg0); - -@ffi.Native() -external bool ColorSyncProfileIsMatrixBased(ColorSyncProfileRef arg0); - -@ffi.Native() -external bool ColorSyncProfileIsPQBased(ColorSyncProfileRef arg0); - -@ffi.Native() -external bool ColorSyncProfileIsWideGamut(ColorSyncProfileRef arg0); - -@ffi.Native() -external void ColorSyncProfileRemoveTag( - ColorSyncMutableProfileRef prof, - CFStringRef signature, -); - -@ffi.Native() -external void ColorSyncProfileSetHeader( - ColorSyncMutableProfileRef prof, - CFDataRef header, -); - -@ffi.Native< - ffi.Void Function(ColorSyncMutableProfileRef, CFStringRef, CFDataRef) ->() -external void ColorSyncProfileSetTag( - ColorSyncMutableProfileRef prof, - CFStringRef signature, - CFDataRef data, -); - -@ffi.Native)>() -external bool ColorSyncProfileUninstall( - ColorSyncProfileRef profile, - ffi.Pointer error, -); - -@ffi.Native< - ffi.Bool Function( - ColorSyncProfileRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool ColorSyncProfileVerify( - ColorSyncProfileRef prof, - ffi.Pointer errors, - ffi.Pointer warnings, -); - -@ffi.Native() -external bool ColorSyncRegisterDevice( - CFStringRef deviceClass, - CFUUIDRef deviceID, - CFDictionaryRef deviceInfo, -); - -@ffi.Native< - ffi.Bool Function( - ColorSyncTransformRef, - ffi.Size, - ffi.Size, - ffi.Pointer, - ffi.UnsignedInt, - ColorSyncDataLayout, - ffi.Size, - ffi.Pointer, - ffi.UnsignedInt, - ColorSyncDataLayout, - ffi.Size, - CFDictionaryRef, - ) ->(symbol: 'ColorSyncTransformConvert') -external bool _ColorSyncTransformConvert( - ColorSyncTransformRef transform, - int width, - int height, - ffi.Pointer dst, - int dstDepth, - int dstLayout, - int dstBytesPerRow, - ffi.Pointer src, - int srcDepth, - int srcLayout, - int srcBytesPerRow, - CFDictionaryRef options, -); - -bool ColorSyncTransformConvert( - ColorSyncTransformRef transform, - int width, - int height, - ffi.Pointer dst, - ColorSyncDataDepth dstDepth, - DartColorSyncDataLayout dstLayout, - int dstBytesPerRow, - ffi.Pointer src, - ColorSyncDataDepth srcDepth, - DartColorSyncDataLayout srcLayout, - int srcBytesPerRow, - CFDictionaryRef options, -) { - return _ColorSyncTransformConvert( - transform, - width, - height, - dst, - dstDepth.value, - dstLayout, - dstBytesPerRow, - src, - srcDepth.value, - srcLayout, - srcBytesPerRow, - options, - ); -} - -@ffi.Native< - CFTypeRef Function(ColorSyncTransformRef, CFTypeRef, CFDictionaryRef) ->() -external CFTypeRef ColorSyncTransformCopyProperty( - ColorSyncTransformRef transform, - CFTypeRef key, - CFDictionaryRef options, -); - -@ffi.Native() -external ColorSyncTransformRef ColorSyncTransformCreate( - CFArrayRef profileSequence, - CFDictionaryRef options, -); - -@ffi.Native() -external CFArrayRef ColorSyncTransformGetProfileSequence( - ColorSyncTransformRef transform, -); - -@ffi.Native() -external int ColorSyncTransformGetTypeID(); - -@ffi.Native() -external void ColorSyncTransformSetProperty( - ColorSyncTransformRef transform, - CFTypeRef key, - CFTypeRef property, -); - -@ffi.Native() -external bool ColorSyncUnregisterDevice( - CFStringRef deviceClass, - CFUUIDRef deviceID, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CompareAndSwap( - int oldValue, - int newValue, - ffi.Pointer address, -); - -@Deprecated('Use NSImage or Core Graphics to composite images.') -@ffi.Native)>() -external int CompositeIconRef( - IconRef backgroundIconRef, - IconRef foregroundIconRef, - ffi.Pointer compositeIconRef, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int ContinueSpeech(SpeechChannel chan); - -@ffi.Native< - OSStatus Function( - TextToUnicodeInfo, - ConstStr255Param, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ConvertFromPStringToUnicode( - TextToUnicodeInfo iTextToUnicodeInfo, - ConstStr255Param iPascalStr, - int iOutputBufLen, - ffi.Pointer oUnicodeLen, - ffi.Pointer oUnicodeStr, -); - -@ffi.Native< - OSStatus Function( - TextToUnicodeInfo, - ByteCount, - ConstLogicalAddress, - OptionBits, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ConvertFromTextToUnicode( - TextToUnicodeInfo iTextToUnicodeInfo, - int iSourceLen, - ConstLogicalAddress iSourceStr, - int iControlFlags, - int iOffsetCount, - ffi.Pointer iOffsetArray, - ffi.Pointer oOffsetCount, - ffi.Pointer oOffsetArray, - int iOutputBufLen, - ffi.Pointer oSourceRead, - ffi.Pointer oUnicodeLen, - ffi.Pointer oUnicodeStr, -); - -@ffi.Native< - OSStatus Function( - UnicodeToTextInfo, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ConvertFromUnicodeToPString( - UnicodeToTextInfo iUnicodeToTextInfo, - int iUnicodeLen, - ffi.Pointer iUnicodeStr, - ffi.Pointer oPascalStr, -); - -@ffi.Native< - OSStatus Function( - UnicodeToTextRunInfo, - ByteCount, - ffi.Pointer, - OptionBits, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ByteCount, - ffi.Pointer, - ffi.Pointer, - LogicalAddress, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ConvertFromUnicodeToScriptCodeRun( - UnicodeToTextRunInfo iUnicodeToTextInfo, - int iUnicodeLen, - ffi.Pointer iUnicodeStr, - int iControlFlags, - int iOffsetCount, - ffi.Pointer iOffsetArray, - ffi.Pointer oOffsetCount, - ffi.Pointer oOffsetArray, - int iOutputBufLen, - ffi.Pointer oInputRead, - ffi.Pointer oOutputLen, - LogicalAddress oOutputStr, - int iScriptRunBufLen, - ffi.Pointer oScriptRunOutLen, - ffi.Pointer oScriptCodeRuns, -); - -@ffi.Native< - OSStatus Function( - UnicodeToTextInfo, - ByteCount, - ffi.Pointer, - OptionBits, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ByteCount, - ffi.Pointer, - ffi.Pointer, - LogicalAddress, - ) ->() -external int ConvertFromUnicodeToText( - UnicodeToTextInfo iUnicodeToTextInfo, - int iUnicodeLen, - ffi.Pointer iUnicodeStr, - int iControlFlags, - int iOffsetCount, - ffi.Pointer iOffsetArray, - ffi.Pointer oOffsetCount, - ffi.Pointer oOffsetArray, - int iOutputBufLen, - ffi.Pointer oInputRead, - ffi.Pointer oOutputLen, - LogicalAddress oOutputStr, -); - -@ffi.Native< - OSStatus Function( - UnicodeToTextRunInfo, - ByteCount, - ffi.Pointer, - OptionBits, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ByteCount, - ffi.Pointer, - ffi.Pointer, - LogicalAddress, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ConvertFromUnicodeToTextRun( - UnicodeToTextRunInfo iUnicodeToTextInfo, - int iUnicodeLen, - ffi.Pointer iUnicodeStr, - int iControlFlags, - int iOffsetCount, - ffi.Pointer iOffsetArray, - ffi.Pointer oOffsetCount, - ffi.Pointer oOffsetArray, - int iOutputBufLen, - ffi.Pointer oInputRead, - ffi.Pointer oOutputLen, - LogicalAddress oOutputStr, - int iEncodingRunBufLen, - ffi.Pointer oEncodingRunOutLen, - ffi.Pointer oEncodingRuns, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Collection CopyCollection( - Collection srcCollection, - Collection dstCollection, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(SpeechChannel, CFStringRef, ffi.Pointer) ->() -external int CopyPhonemesFromText( - SpeechChannel chan, - CFStringRef text, - ffi.Pointer phonemes, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int CopyProcessName( - ffi.Pointer psn, - ffi.Pointer name, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(SpeechChannel, CFStringRef, ffi.Pointer) ->() -external int CopySpeechProperty( - SpeechChannel chan, - CFStringRef property, - ffi.Pointer object, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - OSType, - OSType, - SInt16, - ffi.Pointer, - ByteCount, - Boolean, - ) ->() -external int CoreEndianFlipData( - int dataDomain, - int dataType, - int id, - ffi.Pointer data, - int dataLen, - int currentlyNative, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - OSType, - OSType, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int CoreEndianGetFlipper( - int dataDomain, - int dataType, - ffi.Pointer proc, - ffi.Pointer> refcon, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(OSType, OSType, CoreEndianFlipProc, ffi.Pointer) ->() -external int CoreEndianInstallFlipper( - int dataDomain, - int dataType, - CoreEndianFlipProc proc, - ffi.Pointer refcon, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int Count1Resources(int theType); - -@Deprecated('Deprecated') -@ffi.Native() -external int Count1Types(); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountCollectionItems(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountCollectionOwners(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountCollectionTags(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountComponentInstances(Component aComponent); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int CountComponents(ffi.Pointer looking); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountResources(int theType); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountTaggedCollectionItems(Collection c, int tag); - -@Deprecated('Deprecated') -@ffi.Native() -external int CountTypes(); - -@ffi.Native< - OSStatus Function(OptionBits, ConstUnicodeMappingPtr, ffi.Pointer) ->() -external int CountUnicodeMappings( - int iFilter, - ConstUnicodeMappingPtr iFindMapping, - ffi.Pointer oActualCount, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int CountVoices(ffi.Pointer numVoices); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - ffi.Pointer, - Boolean, - ffi.Pointer, - ) ->() -external int CreateCompDescriptor( - int comparisonOperator, - ffi.Pointer operand1, - ffi.Pointer operand2, - int disposeInputs, - ffi.Pointer theDescriptor, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - DescType, - Boolean, - ffi.Pointer, - ) ->() -external int CreateLogicalDescriptor( - ffi.Pointer theLogicalTerms, - int theLogicOperator, - int disposeInputs, - ffi.Pointer theDescriptor, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - DescType, - ffi.Pointer, - Boolean, - ffi.Pointer, - ) ->() -external int CreateObjSpecifier( - int desiredClass, - ffi.Pointer theContainer, - int keyForm, - ffi.Pointer keyData, - int disposeInputs, - ffi.Pointer objSpecifier, -); - -@ffi.Native)>() -external int CreateOffsetDescriptor( - int theOffset, - ffi.Pointer theDescriptor, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - Boolean, - ffi.Pointer, - ) ->() -external int CreateRangeDescriptor( - ffi.Pointer rangeStart, - ffi.Pointer rangeStop, - int disposeInputs, - ffi.Pointer theDescriptor, -); - -@ffi.Native< - TextEncoding Function( - TextEncodingBase, - TextEncodingVariant, - TextEncodingFormat, - ) ->() -external int CreateTextEncoding( - int encodingBase, - int encodingVariant, - int encodingFormat, -); - -@ffi.Native< - OSStatus Function(ConstUnicodeMappingPtr, ffi.Pointer) ->() -external int CreateTextToUnicodeInfo( - ConstUnicodeMappingPtr iUnicodeMapping, - ffi.Pointer oTextToUnicodeInfo, -); - -@ffi.Native)>() -external int CreateTextToUnicodeInfoByEncoding( - int iEncoding, - ffi.Pointer oTextToUnicodeInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CreateThreadPool(int threadStyle, int numToCreate, int stackSize); - -@ffi.Native< - OSStatus Function(ConstUnicodeMappingPtr, ffi.Pointer) ->() -external int CreateUnicodeToTextInfo( - ConstUnicodeMappingPtr iUnicodeMapping, - ffi.Pointer oUnicodeToTextInfo, -); - -@ffi.Native)>() -external int CreateUnicodeToTextInfoByEncoding( - int iEncoding, - ffi.Pointer oUnicodeToTextInfo, -); - -@ffi.Native< - OSStatus Function( - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CreateUnicodeToTextRunInfo( - int iNumberOfMappings, - ffi.Pointer iUnicodeMappings, - ffi.Pointer oUnicodeToTextInfo, -); - -@ffi.Native< - OSStatus Function( - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CreateUnicodeToTextRunInfoByEncoding( - int iNumberOfEncodings, - ffi.Pointer iEncodings, - ffi.Pointer oUnicodeToTextInfo, -); - -@ffi.Native< - OSStatus Function( - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int CreateUnicodeToTextRunInfoByScriptCode( - int iNumberOfScriptCodes, - ffi.Pointer iScripts, - ffi.Pointer oUnicodeToTextInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int CurResFile(); - -@Deprecated('No longer supported') -@ffi.Native() -external int CurrentProcessorSpeed(); - -@ffi.Native() -external DAApprovalSessionRef DAApprovalSessionCreate(CFAllocatorRef allocator); - -@ffi.Native() -external int DAApprovalSessionGetTypeID(); - -@ffi.Native< - ffi.Void Function(DAApprovalSessionRef, CFRunLoopRef, CFStringRef) ->() -external void DAApprovalSessionScheduleWithRunLoop( - DAApprovalSessionRef session, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native< - ffi.Void Function(DAApprovalSessionRef, CFRunLoopRef, CFStringRef) ->() -external void DAApprovalSessionUnscheduleFromRunLoop( - DAApprovalSessionRef session, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native() -external CFDictionaryRef DADiskCopyDescription(DADiskRef disk); - -@ffi.Native() -external int DADiskCopyIOMedia(DADiskRef disk); - -@ffi.Native() -external DADiskRef DADiskCopyWholeDisk(DADiskRef disk); - -@ffi.Native< - DADiskRef Function(CFAllocatorRef, DASessionRef, ffi.Pointer) ->() -external DADiskRef DADiskCreateFromBSDName( - CFAllocatorRef allocator, - DASessionRef session, - ffi.Pointer name, -); - -@ffi.Native() -external DADiskRef DADiskCreateFromIOMedia( - CFAllocatorRef allocator, - DASessionRef session, - int media, -); - -@ffi.Native() -external DADiskRef DADiskCreateFromVolumePath( - CFAllocatorRef allocator, - DASessionRef session, - CFURLRef path, -); - -@ffi.Native Function(DADiskRef)>() -external ffi.Pointer DADiskGetBSDName(DADiskRef disk); - -@ffi.Native() -external int DADiskGetTypeID(); - -@ffi.Native() -external DASessionRef DASessionCreate(CFAllocatorRef allocator); - -@ffi.Native() -external int DASessionGetTypeID(); - -@ffi.Native() -external void DASessionScheduleWithRunLoop( - DASessionRef session, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native( - symbol: 'DASessionSetDispatchQueue', -) -external void _DASessionSetDispatchQueue( - DASessionRef session, - dispatch_queue_t queue, -); - -void DASessionSetDispatchQueue( - DASessionRef session, - Dartdispatch_queue_t? queue, -) { - final _$$ref = queue?.ref; - return _DASessionSetDispatchQueue(session, _$$ref?.pointer ?? ffi.nullptr); -} - -@ffi.Native() -external void DASessionUnscheduleFromRunLoop( - DASessionRef session, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native() -external CFStringRef DCSCopyTextDefinition( - DCSDictionaryRef dictionary, - CFStringRef textString, - CFRange range, -); - -@ffi.Native() -external CFRange DCSGetTermRangeInString( - DCSDictionaryRef dictionary, - CFStringRef textString, - int offset, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ) ->() -external void DebugAssert( - int componentSignature, - int options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - int lineNumber, - ffi.Pointer value, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DebugStr(ConstStr255Param debuggerMsg); - -@Deprecated('Deprecated') -@ffi.Native() -external void Debugger(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int DecrementAtomic(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int DecrementAtomic16(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int DecrementAtomic8(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) ->() -external void Delay(int numTicks, ffi.Pointer finalTicks); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function(ffi.Pointer, ComponentInstance) ->() -external int DelegateComponentCall( - ffi.Pointer originalParams, - ComponentInstance ci, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int DeleteGestaltValue(int selector); - -@Deprecated('Deprecated') -@ffi.Native() -external int Dequeue(QElemPtr qElement, QHdrPtr qHeader); - -@Deprecated('Deprecated') -@ffi.Native() -external void DetachResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external int DetachResourceFile(int refNum); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSVolumeRefNum, - OSType, - ffi.Pointer, - Boolean, - ffi.Pointer, - ) ->() -external int DetermineIfPathIsEnclosedByFolder( - int domainOrVRefNum, - int folderType, - ffi.Pointer utf8Path, - int pathIsRealPath, - ffi.Pointer outResult, -); - -@ffi.Native() -external void DisposeAECoerceDescUPP(AECoerceDescUPP userUPP); - -@ffi.Native() -external void DisposeAECoercePtrUPP(AECoercePtrUPP userUPP); - -@ffi.Native() -external void DisposeAEDisposeExternalUPP(AEDisposeExternalUPP userUPP); - -@ffi.Native() -external void DisposeAEEventHandlerUPP(AEEventHandlerUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeCollection(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeCollectionExceptionUPP(CollectionExceptionUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeCollectionFlattenUPP(CollectionFlattenUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeComponentFunctionUPP(ComponentFunctionUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeComponentMPWorkFunctionUPP( - ComponentMPWorkFunctionUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeComponentRoutineUPP(ComponentRoutineUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDebugAssertOutputHandlerUPP( - DebugAssertOutputHandlerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int DisposeDebugComponent(int componentSignature); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDebugComponentCallbackUPP( - DebugComponentCallbackUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDebuggerDisposeThreadUPP(DebuggerDisposeThreadUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDebuggerNewThreadUPP(DebuggerNewThreadUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDebuggerThreadSchedulerUPP( - DebuggerThreadSchedulerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeDeferredTaskUPP(DeferredTaskUPP userUPP); - -@Deprecated('No longer supported') -@ffi.Native() -external void DisposeExceptionHandlerUPP(ExceptionHandlerUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeFNSubscriptionUPP(FNSubscriptionUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeFSVolumeEjectUPP(FSVolumeEjectUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeFSVolumeMountUPP(FSVolumeMountUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeFSVolumeUnmountUPP(FSVolumeUnmountUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeFolderManagerNotificationUPP( - FolderManagerNotificationUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeGetMissingComponentResourceUPP( - GetMissingComponentResourceUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeHandle(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeIOCompletionUPP(IOCompletionUPP userUPP); - -@ffi.Native() -external void DisposeIconActionUPP(IconActionUPP userUPP); - -@ffi.Native() -external void DisposeIconGetterUPP(IconGetterUPP userUPP); - -@ffi.Native() -external void DisposeIndexToUCStringUPP(IndexToUCStringUPP userUPP); - -@Deprecated('No longer supported') -@ffi.Native() -external void DisposeKCCallbackUPP(KCCallbackUPP userUPP); - -@ffi.Native() -external void DisposeOSLAccessorUPP(OSLAccessorUPP userUPP); - -@ffi.Native() -external void DisposeOSLAdjustMarksUPP(OSLAdjustMarksUPP userUPP); - -@ffi.Native() -external void DisposeOSLCompareUPP(OSLCompareUPP userUPP); - -@ffi.Native() -external void DisposeOSLCountUPP(OSLCountUPP userUPP); - -@ffi.Native() -external void DisposeOSLDisposeTokenUPP(OSLDisposeTokenUPP userUPP); - -@ffi.Native() -external void DisposeOSLGetErrDescUPP(OSLGetErrDescUPP userUPP); - -@ffi.Native() -external void DisposeOSLGetMarkTokenUPP(OSLGetMarkTokenUPP userUPP); - -@ffi.Native() -external void DisposeOSLMarkUPP(OSLMarkUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposePtr(Ptr p); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeResErrUPP(ResErrUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeSelectorFunctionUPP(SelectorFunctionUPP userUPP); - -@Deprecated('No longer supported') -@ffi.Native() -external void DisposeSleepQUPP(SleepQUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int DisposeSpeechChannel(SpeechChannel chan); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechDoneUPP(SpeechDoneUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechErrorUPP(SpeechErrorUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechPhonemeUPP(SpeechPhonemeUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechSyncUPP(SpeechSyncUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechTextDoneUPP(SpeechTextDoneUPP userUPP); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void DisposeSpeechWordUPP(SpeechWordUPP userUPP); - -@ffi.Native)>() -external int DisposeTextToUnicodeInfo( - ffi.Pointer ioTextToUnicodeInfo, -); - -@Deprecated('Deprecated') -@ffi.Native, Boolean)>() -external int DisposeThread( - int threadToDump, - ffi.Pointer threadResult, - int recycleThread, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeThreadEntryUPP(ThreadEntryUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeThreadSchedulerUPP(ThreadSchedulerUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeThreadSwitchUPP(ThreadSwitchUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeThreadTerminationUPP(ThreadTerminationUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native() -external void DisposeTimerUPP(TimerUPP userUPP); - -@ffi.Native() -external void DisposeUnicodeToTextFallbackUPP(UnicodeToTextFallbackUPP userUPP); - -@ffi.Native)>() -external int DisposeUnicodeToTextInfo( - ffi.Pointer ioUnicodeToTextInfo, -); - -@ffi.Native)>() -external int DisposeUnicodeToTextRunInfo( - ffi.Pointer ioUnicodeToTextRunInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime DurationToAbsolute(int duration); - -@Deprecated('Deprecated') -@ffi.Native() -external Nanoseconds DurationToNanoseconds(int theDuration); - -@Deprecated('Deprecated') -@ffi.Native() -external void EmptyCollection(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external void EmptyHandle(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external void Enqueue(QElemPtr qElement, QHdrPtr qHeader); - -@Deprecated('Deprecated') -@ffi.Native() -external void ExitToShell(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FNGetDirectoryForSubscription( - FNSubscriptionRef subscription, - ffi.Pointer ref, -); - -@Deprecated('Deprecated') -@ffi.Native, FNMessage, OptionBits)>() -external int FNNotify(ffi.Pointer ref, int message, int flags); - -@Deprecated('Deprecated') -@ffi.Native() -external int FNNotifyAll(int message, int flags); - -@Deprecated('Deprecated') -@ffi.Native, FNMessage, OptionBits)>() -external int FNNotifyByPath(ffi.Pointer path, int message, int flags); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - FNSubscriptionUPP, - ffi.Pointer, - OptionBits, - ffi.Pointer, - ) ->() -external int FNSubscribe( - ffi.Pointer directoryRef, - FNSubscriptionUPP callback, - ffi.Pointer refcon, - int flags, - ffi.Pointer subscription, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - FNSubscriptionUPP, - ffi.Pointer, - OptionBits, - ffi.Pointer, - ) ->() -external int FNSubscribeByPath( - ffi.Pointer directoryPath, - FNSubscriptionUPP callback, - ffi.Pointer refcon, - int flags, - ffi.Pointer subscription, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FNUnsubscribe(FNSubscriptionRef subscription); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIORefNum, - FSAllocationFlags, - UInt16, - SInt64, - UInt64, - ffi.Pointer, - ) ->() -external int FSAllocateFork( - int forkRefNum, - int flags, - int positionMode, - int positionOffset, - int requestCount, - ffi.Pointer actualCount, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSCancelVolumeOperation(FSVolumeOperation volumeOp); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIterator, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ffi.Pointer, - ) ->() -external int FSCatalogSearch( - FSIterator iterator, - ffi.Pointer searchCriteria, - int maximumObjects, - ffi.Pointer actualObjects, - ffi.Pointer containerChanged, - int whichInfo, - ffi.Pointer catalogInfos, - ffi.Pointer refs, - FSSpecPtr specs, - ffi.Pointer names, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSCloseFork(int forkRefNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSCloseIterator(FSIterator iterator); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Pointer)>() -external int FSCompareFSRefs(ffi.Pointer ref1, ffi.Pointer ref2); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - AliasHandle, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSCopyAliasInfo( - AliasHandle inAlias, - ffi.Pointer targetName, - ffi.Pointer volumeName, - ffi.Pointer pathString, - ffi.Pointer whichInfo, - ffi.Pointer info, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSCopyDADiskForVolume(int vRefNum, ffi.Pointer disk); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSCopyDiskIDForVolume( - int vRefNum, - ffi.Pointer diskID, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - ffi.Pointer, - CFStringRef, - OptionBits, - FSFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSCopyObjectAsync( - FSFileOperationRef fileOp, - ffi.Pointer source, - ffi.Pointer destDir, - CFStringRef destName, - int flags, - FSFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - ffi.Pointer, - OptionBits, - ) ->() -external int FSCopyObjectSync( - ffi.Pointer source, - ffi.Pointer destDir, - CFStringRef destName, - ffi.Pointer target, - int options, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSCopyURLForVolume(int vRefNum, ffi.Pointer url); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ffi.Pointer, - ) ->() -external int FSCreateDirectoryUnicode( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int whichInfo, - ffi.Pointer catalogInfo, - ffi.Pointer newRef, - FSSpecPtr newSpec, - ffi.Pointer newDirID, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - SInt8, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSCreateFileAndOpenForkUnicode( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int whichInfo, - ffi.Pointer catalogInfo, - int forkNameLength, - ffi.Pointer forkName, - int permissions, - ffi.Pointer forkRefNum, - ffi.Pointer newRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ) ->() -external int FSCreateFileUnicode( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int whichInfo, - ffi.Pointer catalogInfo, - ffi.Pointer newRef, - FSSpecPtr newSpec, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer) ->() -external int FSCreateFork( - ffi.Pointer ref, - int forkNameLength, - ffi.Pointer forkName, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ) ->() -external void FSCreateResFile( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int whichInfo, - ffi.Pointer catalogInfo, - ffi.Pointer newRef, - FSSpecPtr newSpec, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ) ->() -external int FSCreateResourceFile( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int whichInfo, - ffi.Pointer catalogInfo, - int forkNameLength, - ffi.Pointer forkName, - ffi.Pointer newRef, - FSSpecPtr newSpec, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer, UInt32) ->() -external int FSCreateResourceFork( - ffi.Pointer ref, - int forkNameLength, - ffi.Pointer forkName, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external CFStringRef FSCreateStringFromHFSUniStr( - CFAllocatorRef alloc, - ffi.Pointer uniStr, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSCreateVolumeOperation(ffi.Pointer volumeOp); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, UniCharCount, ffi.Pointer) ->() -external int FSDeleteFork( - ffi.Pointer ref, - int forkNameLength, - ffi.Pointer forkName, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSDeleteObject(ffi.Pointer ref); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSVolumeRefNum, - OSType, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSDetermineIfRefIsEnclosedByFolder( - int domainOrVRefNum, - int folderType, - ffi.Pointer inRef, - ffi.Pointer outResult, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSDisposeVolumeOperation(FSVolumeOperation volumeOp); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeRefNum, - OptionBits, - FSVolumeOperation, - ffi.Pointer, - FSVolumeEjectUPP, - CFRunLoopRef, - CFStringRef, - ) ->() -external int FSEjectVolumeAsync( - int vRefNum, - int flags, - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - FSVolumeEjectUPP callback, - CFRunLoopRef runloop, - CFStringRef runloopMode, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSEjectVolumeSync( - int vRefNum, - int flags, - ffi.Pointer dissenter, -); - -@ffi.Native() -external CFStringRef FSEventStreamCopyDescription( - ConstFSEventStreamRef streamRef, -); - -@ffi.Native() -external CFArrayRef FSEventStreamCopyPathsBeingWatched( - ConstFSEventStreamRef streamRef, -); - -@ffi.Native< - FSEventStreamRef Function( - CFAllocatorRef, - FSEventStreamCallback, - ffi.Pointer, - CFArrayRef, - FSEventStreamEventId, - CFTimeInterval, - FSEventStreamCreateFlags, - ) ->() -external FSEventStreamRef FSEventStreamCreate( - CFAllocatorRef allocator, - FSEventStreamCallback callback, - ffi.Pointer context, - CFArrayRef pathsToWatch, - int sinceWhen, - double latency, - int flags, -); - -@ffi.Native< - FSEventStreamRef Function( - CFAllocatorRef, - FSEventStreamCallback, - ffi.Pointer, - dev_t, - CFArrayRef, - FSEventStreamEventId, - CFTimeInterval, - FSEventStreamCreateFlags, - ) ->() -external FSEventStreamRef FSEventStreamCreateRelativeToDevice( - CFAllocatorRef allocator, - FSEventStreamCallback callback, - ffi.Pointer context, - int deviceToWatch, - CFArrayRef pathsToWatchRelativeToDevice, - int sinceWhen, - double latency, - int flags, -); - -@ffi.Native() -external int FSEventStreamFlushAsync(FSEventStreamRef streamRef); - -@ffi.Native() -external void FSEventStreamFlushSync(FSEventStreamRef streamRef); - -@ffi.Native() -external int FSEventStreamGetDeviceBeingWatched( - ConstFSEventStreamRef streamRef, -); - -@ffi.Native() -external int FSEventStreamGetLatestEventId(ConstFSEventStreamRef streamRef); - -@ffi.Native() -external void FSEventStreamInvalidate(FSEventStreamRef streamRef); - -@ffi.Native() -external void FSEventStreamRelease(FSEventStreamRef streamRef); - -@ffi.Native() -external void FSEventStreamRetain(FSEventStreamRef streamRef); - -@Deprecated('Use FSEventStreamSetDispatchQueue instead.') -@ffi.Native() -external void FSEventStreamScheduleWithRunLoop( - FSEventStreamRef streamRef, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native( - symbol: 'FSEventStreamSetDispatchQueue', -) -external void _FSEventStreamSetDispatchQueue( - FSEventStreamRef streamRef, - dispatch_queue_t q, -); - -void FSEventStreamSetDispatchQueue( - FSEventStreamRef streamRef, - Dartdispatch_queue_t? q, -) { - final _$$ref = q?.ref; - return _FSEventStreamSetDispatchQueue( - streamRef, - _$$ref?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native() -external int FSEventStreamSetExclusionPaths( - FSEventStreamRef streamRef, - CFArrayRef pathsToExclude, -); - -@ffi.Native() -external void FSEventStreamShow(ConstFSEventStreamRef streamRef); - -@ffi.Native() -external int FSEventStreamStart(FSEventStreamRef streamRef); - -@ffi.Native() -external void FSEventStreamStop(FSEventStreamRef streamRef); - -@Deprecated('Use FSEventStreamSetDispatchQueue instead.') -@ffi.Native() -external void FSEventStreamUnscheduleFromRunLoop( - FSEventStreamRef streamRef, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@ffi.Native() -external CFUUIDRef FSEventsCopyUUIDForDevice(int dev); - -@ffi.Native() -external int FSEventsGetCurrentEventId(); - -@ffi.Native() -external int FSEventsGetLastEventIdForDeviceBeforeTime(int dev, double time$1); - -@ffi.Native() -external int FSEventsPurgeEventsForDeviceUpToEventId(int dev, int eventId); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Pointer)>() -external int FSExchangeObjects( - ffi.Pointer ref, - ffi.Pointer destRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileOperationCancel(FSFileOperationRef fileOp); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int FSFileOperationCopyStatus( - FSFileOperationRef fileOp, - ffi.Pointer currentItem, - ffi.Pointer stage, - ffi.Pointer error, - ffi.Pointer statusDictionary, - ffi.Pointer> info, -); - -@Deprecated('Deprecated') -@ffi.Native() -external FSFileOperationRef FSFileOperationCreate(CFAllocatorRef alloc); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileOperationGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileOperationScheduleWithRunLoop( - FSFileOperationRef fileOp, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileOperationUnscheduleFromRunLoop( - FSFileOperationRef fileOp, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityCopyAccessControlList( - FSFileSecurityRef fileSec, - ffi.Pointer accessControlList, -); - -@Deprecated('Deprecated') -@ffi.Native() -external FSFileSecurityRef FSFileSecurityCreate(CFAllocatorRef alloc); - -@Deprecated('Deprecated') -@ffi.Native< - FSFileSecurityRef Function(CFAllocatorRef, ffi.Pointer) ->() -external FSFileSecurityRef FSFileSecurityCreateWithFSPermissionInfo( - CFAllocatorRef alloc, - ffi.Pointer permissions, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityGetGroup( - FSFileSecurityRef fileSec, - ffi.Pointer group, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityGetGroupUUID( - FSFileSecurityRef fileSec, - ffi.Pointer group, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityGetMode( - FSFileSecurityRef fileSec, - ffi.Pointer mode, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityGetOwner( - FSFileSecurityRef fileSec, - ffi.Pointer owner, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecurityGetOwnerUUID( - FSFileSecurityRef fileSec, - ffi.Pointer owner, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileSecurityGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native() -external FSFileSecurityRef FSFileSecurityRefCreateCopy( - CFAllocatorRef alloc, - FSFileSecurityRef fileSec, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileSecuritySetAccessControlList( - FSFileSecurityRef fileSec, - acl_t accessControlList, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileSecuritySetGroup(FSFileSecurityRef fileSec, int group); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecuritySetGroupUUID( - FSFileSecurityRef fileSec, - ffi.Pointer group, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileSecuritySetMode(FSFileSecurityRef fileSec, int mode); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFileSecuritySetOwner(FSFileSecurityRef fileSec, int owner); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSFileSecuritySetOwnerUUID( - FSFileSecurityRef fileSec, - ffi.Pointer owner, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(FSVolumeRefNum, OSType, Boolean, ffi.Pointer) ->() -external int FSFindFolder( - int vRefNum, - int folderType, - int createFolder, - ffi.Pointer foundRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFlushFork(int forkRefNum); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSFlushVolume(int vRefNum); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - AliasHandle, - Boolean, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSFollowFinderAlias( - ffi.Pointer fromFile, - AliasHandle alias, - int logon, - ffi.Pointer target, - ffi.Pointer wasChanged, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeOperation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int FSGetAsyncEjectStatus( - FSVolumeOperation volumeOp, - ffi.Pointer status, - ffi.Pointer volumeOpStatus, - ffi.Pointer volumeRefNum, - ffi.Pointer dissenter, - ffi.Pointer> clientData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeOperation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int FSGetAsyncMountStatus( - FSVolumeOperation volumeOp, - ffi.Pointer status, - ffi.Pointer volumeOpStatus, - ffi.Pointer mountedVolumeRefNum, - ffi.Pointer> clientData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeOperation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int FSGetAsyncUnmountStatus( - FSVolumeOperation volumeOp, - ffi.Pointer status, - ffi.Pointer volumeOpStatus, - ffi.Pointer volumeRefNum, - ffi.Pointer dissenter, - ffi.Pointer> clientData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ffi.Pointer, - ) ->() -external int FSGetCatalogInfo( - ffi.Pointer ref, - int whichInfo, - ffi.Pointer catalogInfo, - ffi.Pointer outName, - FSSpecPtr fsSpec, - ffi.Pointer parentRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIterator, - ItemCount, - ffi.Pointer, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ffi.Pointer, - FSSpecPtr, - ffi.Pointer, - ) ->() -external int FSGetCatalogInfoBulk( - FSIterator iterator, - int maximumObjects, - ffi.Pointer actualObjects, - ffi.Pointer containerChanged, - int whichInfo, - ffi.Pointer catalogInfos, - ffi.Pointer refs, - FSSpecPtr specs, - ffi.Pointer names, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetDataForkName(ffi.Pointer dataForkName); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIORefNum, - FSVolumeRefNum, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSGetForkCBInfo( - int desiredRefNum, - int volume, - ffi.Pointer iterator, - ffi.Pointer actualRefNum, - ffi.Pointer forkInfo, - ffi.Pointer ref, - ffi.Pointer outForkName, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetForkPosition(int forkRefNum, ffi.Pointer position); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetForkSize(int forkRefNum, ffi.Pointer forkSize); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetHFSUniStrFromString( - CFStringRef theString, - ffi.Pointer uniStr, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetResourceForkName(ffi.Pointer resourceForkName); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer, OptionBits) ->() -external int FSGetTemporaryDirectoryForReplaceObject( - ffi.Pointer originalObject, - ffi.Pointer temporaryDirectory, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetVolumeForDADisk( - DADiskRef disk, - ffi.Pointer vRefNum, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetVolumeForDiskID( - CFStringRef diskID, - ffi.Pointer vRefNum, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSVolumeRefNum, - ItemCount, - ffi.Pointer, - FSVolumeInfoBitmap, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSGetVolumeInfo( - int volume, - int volumeIndex, - ffi.Pointer actualVolume, - int whichInfo, - ffi.Pointer info, - ffi.Pointer volumeName, - ffi.Pointer rootDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(FSVolumeRefNum, BytePtr, ByteCount, ffi.Pointer) ->() -external int FSGetVolumeMountInfo( - int volume, - BytePtr buffer, - int bufferSize, - ffi.Pointer actualSize, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSGetVolumeMountInfoSize(int volume, ffi.Pointer size); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeRefNum, - ffi.Pointer, - ByteCount, - ) ->() -external int FSGetVolumeParms( - int volume, - ffi.Pointer buffer, - int bufferSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Pointer) ->() -external int FSIsAliasFile( - ffi.Pointer fileRef, - ffi.Pointer aliasFileFlag, - ffi.Pointer folderFlag, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSIsFSRefValid(ffi.Pointer ref); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSIterateForks( - ffi.Pointer ref, - ffi.Pointer forkIterator, - ffi.Pointer forkName, - ffi.Pointer forkSize, - ffi.Pointer forkPhysicalSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(FSIORefNum, UInt16, SInt64, UInt64, ffi.Pointer) ->() -external int FSLockRange( - int forkRefNum, - int positionMode, - int positionOffset, - int requestCount, - ffi.Pointer rangeStart, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - TextEncoding, - ffi.Pointer, - ) ->() -external int FSMakeFSRefUnicode( - ffi.Pointer parentRef, - int nameLength, - ffi.Pointer name, - int textEncodingHint, - ffi.Pointer newRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.UnsignedLong, - AliasHandle, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - FSAliasFilterProcPtr, - ffi.Pointer, - ) ->() -external int FSMatchAliasBulk( - ffi.Pointer fromFile, - int rulesMask, - AliasHandle inAlias, - ffi.Pointer aliasCount, - ffi.Pointer aliasList, - ffi.Pointer needsUpdate, - FSAliasFilterProcPtr aliasFilter, - ffi.Pointer yourDataPtr, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFStringRef, - CFURLRef, - FSVolumeOperation, - ffi.Pointer, - OptionBits, - FSVolumeMountUPP, - CFRunLoopRef, - CFStringRef, - ) ->() -external int FSMountLocalVolumeAsync( - CFStringRef diskID, - CFURLRef mountDir, - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - int flags, - FSVolumeMountUPP callback, - CFRunLoopRef runloop, - CFStringRef runloopMode, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFStringRef, - CFURLRef, - ffi.Pointer, - OptionBits, - ) ->() -external int FSMountLocalVolumeSync( - CFStringRef diskID, - CFURLRef mountDir, - ffi.Pointer mountedVolumeRefNum, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - FSVolumeOperation, - ffi.Pointer, - OptionBits, - FSVolumeMountUPP, - CFRunLoopRef, - CFStringRef, - ) ->() -external int FSMountServerVolumeAsync( - CFURLRef url, - CFURLRef mountDir, - CFStringRef user, - CFStringRef password, - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - int flags, - FSVolumeMountUPP callback, - CFRunLoopRef runloop, - CFStringRef runloopMode, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFURLRef, - CFURLRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - OptionBits, - ) ->() -external int FSMountServerVolumeSync( - CFURLRef url, - CFURLRef mountDir, - CFStringRef user, - CFStringRef password, - ffi.Pointer mountedVolumeRefNum, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Pointer) ->() -external int FSMoveObject( - ffi.Pointer ref, - ffi.Pointer destDirectory, - ffi.Pointer newRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - ffi.Pointer, - CFStringRef, - OptionBits, - FSFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSMoveObjectAsync( - FSFileOperationRef fileOp, - ffi.Pointer source, - ffi.Pointer destDir, - CFStringRef destName, - int flags, - FSFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - ffi.Pointer, - OptionBits, - ) ->() -external int FSMoveObjectSync( - ffi.Pointer source, - ffi.Pointer destDir, - CFStringRef destName, - ffi.Pointer target, - int options, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - OptionBits, - FSFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSMoveObjectToTrashAsync( - FSFileOperationRef fileOp, - ffi.Pointer source, - int flags, - FSFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer, OptionBits) ->() -external int FSMoveObjectToTrashSync( - ffi.Pointer source, - ffi.Pointer target, - int options, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSNewAlias( - ffi.Pointer fromFile, - ffi.Pointer target, - ffi.Pointer inAlias, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSNewAliasFromPath( - ffi.Pointer fromFilePath, - ffi.Pointer targetPath, - int flags, - ffi.Pointer inAlias, - ffi.Pointer isDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Pointer)>() -external int FSNewAliasMinimal( - ffi.Pointer target, - ffi.Pointer inAlias, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSNewAliasMinimalUnicode( - ffi.Pointer targetParentRef, - int targetNameLength, - ffi.Pointer targetName, - ffi.Pointer inAlias, - ffi.Pointer isDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSNewAliasUnicode( - ffi.Pointer fromFile, - ffi.Pointer targetParentRef, - int targetNameLength, - ffi.Pointer targetName, - ffi.Pointer inAlias, - ffi.Pointer isDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - SInt8, - ffi.Pointer, - ) ->() -external int FSOpenFork( - ffi.Pointer ref, - int forkNameLength, - ffi.Pointer forkName, - int permissions, - ffi.Pointer forkRefNum, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, FSIteratorFlags, ffi.Pointer) ->() -external int FSOpenIterator( - ffi.Pointer container, - int iteratorFlags, - ffi.Pointer iterator, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, SignedByte, ffi.Pointer) ->() -external int FSOpenOrphanResFile( - ffi.Pointer ref, - int permission, - ffi.Pointer refNum, -); - -@Deprecated('Deprecated') -@ffi.Native, SInt8)>() -external int FSOpenResFile(ffi.Pointer ref, int permission); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - SInt8, - ffi.Pointer, - ) ->() -external int FSOpenResourceFile( - ffi.Pointer ref, - int forkNameLength, - ffi.Pointer forkName, - int permissions, - ffi.Pointer refNum, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - ffi.Pointer, - CFStringRef, - OptionBits, - FSPathFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSPathCopyObjectAsync( - FSFileOperationRef fileOp, - ffi.Pointer sourcePath, - ffi.Pointer destDirPath, - CFStringRef destName, - int flags, - FSPathFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - ffi.Pointer>, - OptionBits, - ) ->() -external int FSPathCopyObjectSync( - ffi.Pointer sourcePath, - ffi.Pointer destDirPath, - CFStringRef destName, - ffi.Pointer> targetPath, - int options, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int FSPathFileOperationCopyStatus( - FSFileOperationRef fileOp, - ffi.Pointer> currentItem, - ffi.Pointer stage, - ffi.Pointer error, - ffi.Pointer statusDictionary, - ffi.Pointer> info, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - UInt32, - OptionBits, - ) ->() -external int FSPathGetTemporaryDirectoryForReplaceObject( - ffi.Pointer originalObjectPath, - ffi.Pointer temporaryDirectoryPath, - int maxPathSize, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSPathMakeRef( - ffi.Pointer path, - ffi.Pointer ref, - ffi.Pointer isDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSPathMakeRefWithOptions( - ffi.Pointer path, - int options, - ffi.Pointer ref, - ffi.Pointer isDirectory, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - ffi.Pointer, - CFStringRef, - OptionBits, - FSPathFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSPathMoveObjectAsync( - FSFileOperationRef fileOp, - ffi.Pointer sourcePath, - ffi.Pointer destDirPath, - CFStringRef destName, - int flags, - FSPathFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - ffi.Pointer>, - OptionBits, - ) ->() -external int FSPathMoveObjectSync( - ffi.Pointer sourcePath, - ffi.Pointer destDirPath, - CFStringRef destName, - ffi.Pointer> targetPath, - int options, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSFileOperationRef, - ffi.Pointer, - OptionBits, - FSPathFileOperationStatusProcPtr, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int FSPathMoveObjectToTrashAsync( - FSFileOperationRef fileOp, - ffi.Pointer sourcePath, - int flags, - FSPathFileOperationStatusProcPtr callback, - double statusChangeInterval, - ffi.Pointer clientContext, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer>, - OptionBits, - ) ->() -external int FSPathMoveObjectToTrashSync( - ffi.Pointer sourcePath, - ffi.Pointer> targetPath, - int options, -); - -@Deprecated( - 'Use NSFileManager\'s -replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: instead. WARNING: FSPathReplaceObject does not work correctly in sandboxed apps.', -) -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - CFStringRef, - ffi.Pointer, - OptionBits, - ) ->() -external int FSPathReplaceObject( - ffi.Pointer originalObjectPath, - ffi.Pointer replacementObjectPath, - CFStringRef newName, - CFStringRef temporaryName, - ffi.Pointer temporaryDirectoryPath, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIORefNum, - UInt16, - SInt64, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSReadFork( - int forkRefNum, - int positionMode, - int positionOffset, - int requestCount, - ffi.Pointer buffer, - ffi.Pointer actualCount, -); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Pointer, UInt32)>() -external int FSRefMakePath( - ffi.Pointer ref, - ffi.Pointer path, - int pathBufferSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - TextEncoding, - ffi.Pointer, - ) ->() -external int FSRenameUnicode( - ffi.Pointer ref, - int nameLength, - ffi.Pointer name, - int textEncodingHint, - ffi.Pointer newRef, -); - -@Deprecated( - 'Use NSFileManager\'s -replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: instead. WARNING: FSReplaceObject does not work correctly in sandboxed apps.', -) -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - CFStringRef, - CFStringRef, - ffi.Pointer, - OptionBits, - ffi.Pointer, - ) ->() -external int FSReplaceObject( - ffi.Pointer originalObject, - ffi.Pointer replacementObject, - CFStringRef newName, - CFStringRef temporaryName, - ffi.Pointer temporaryDirectory, - int flags, - ffi.Pointer resultObject, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - AliasHandle, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSResolveAlias( - ffi.Pointer fromFile, - AliasHandle alias, - ffi.Pointer target, - ffi.Pointer wasChanged, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - Boolean, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSResolveAliasFile( - ffi.Pointer theRef, - int resolveAliasChains, - ffi.Pointer targetIsFolder, - ffi.Pointer wasAliased, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - Boolean, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) ->() -external int FSResolveAliasFileWithMountFlags( - ffi.Pointer theRef, - int resolveAliasChains, - ffi.Pointer targetIsFolder, - ffi.Pointer wasAliased, - int mountFlags, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - AliasHandle, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) ->() -external int FSResolveAliasWithMountFlags( - ffi.Pointer fromFile, - AliasHandle inAlias, - ffi.Pointer target, - ffi.Pointer wasChanged, - int mountFlags, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSResolveNodeID(int volume, int nodeID, FSRefPtr newRef); - -@Deprecated('Deprecated') -@ffi.Native< - Boolean Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSResourceFileAlreadyOpen( - ffi.Pointer resourceFileRef, - ffi.Pointer inChain, - ffi.Pointer refNum, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - ) ->() -external int FSSetCatalogInfo( - ffi.Pointer ref, - int whichInfo, - ffi.Pointer catalogInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSSetForkPosition( - int forkRefNum, - int positionMode, - int positionOffset, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FSSetForkSize( - int forkRefNum, - int positionMode, - int positionOffset, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(FSVolumeRefNum, FSVolumeInfoBitmap, ffi.Pointer) ->() -external int FSSetVolumeInfo( - int volume, - int whichInfo, - ffi.Pointer info, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSUnlinkObject(ffi.Pointer ref); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(FSIORefNum, UInt16, SInt64, UInt64, ffi.Pointer) ->() -external int FSUnlockRange( - int forkRefNum, - int positionMode, - int positionOffset, - int requestCount, - ffi.Pointer rangeStart, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeRefNum, - OptionBits, - FSVolumeOperation, - ffi.Pointer, - FSVolumeUnmountUPP, - CFRunLoopRef, - CFStringRef, - ) ->() -external int FSUnmountVolumeAsync( - int vRefNum, - int flags, - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - FSVolumeUnmountUPP callback, - CFRunLoopRef runloop, - CFStringRef runloopMode, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSUnmountVolumeSync( - int vRefNum, - int flags, - ffi.Pointer dissenter, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - AliasHandle, - ffi.Pointer, - ) ->() -external int FSUpdateAlias( - ffi.Pointer fromFile, - ffi.Pointer target, - AliasHandle alias, - ffi.Pointer wasChanged, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int FSVolumeMount( - BytePtr buffer, - ffi.Pointer mountedVolume, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSIORefNum, - UInt16, - SInt64, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FSWriteFork( - int forkRefNum, - int positionMode, - int positionOffset, - int requestCount, - ffi.Pointer buffer, - ffi.Pointer actualCount, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - FSVolumeRefNum, - OSType, - Boolean, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int FindFolder( - int vRefNum, - int folderType, - int createFolder, - ffi.Pointer foundVRefNum, - ffi.Pointer foundDirID, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external Component FindNextComponent( - Component aComponent, - ffi.Pointer looking, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int Fix2Frac(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external int Fix2Long(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external double Fix2X(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external int FixATan2(int x, int y); - -@Deprecated('Deprecated') -@ffi.Native() -external int FixDiv(int x, int y); - -@Deprecated('Deprecated') -@ffi.Native() -external int FixMul(int a, int b); - -@Deprecated('Deprecated') -@ffi.Native() -external int FixRatio(int numer, int denom); - -@Deprecated('Deprecated') -@ffi.Native() -external int FixRound(int x); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(Collection, CollectionFlattenUPP, ffi.Pointer) ->() -external int FlattenCollection( - Collection c, - CollectionFlattenUPP flattenProc, - ffi.Pointer refCon, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int FlattenCollectionToHdl(Collection aCollection, Handle flattened); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionFlattenUPP, - ffi.Pointer, - SInt32, - SInt32, - ) ->() -external int FlattenPartialCollection( - Collection c, - CollectionFlattenUPP flattenProc, - ffi.Pointer refCon, - int whichAttributes, - int matchingAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int Frac2Fix(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external double Frac2X(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external int FracCos(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external int FracDiv(int x, int y); - -@Deprecated('Deprecated') -@ffi.Native() -external int FracMul(int x, int y); - -@Deprecated('Deprecated') -@ffi.Native() -external int FracSin(int x); - -@Deprecated('Deprecated') -@ffi.Native() -external int FracSqrt(int x); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int Gestalt(int selector, ffi.Pointer response); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle Get1IndResource(int theType, int itemIndex); - -@Deprecated('Deprecated') -@ffi.Native, ResourceIndex)>() -external void Get1IndType(ffi.Pointer theType, int itemIndex); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle Get1NamedResource(int theType, ConstStr255Param name); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle Get1Resource(int theType, int theID); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetAliasSize(AliasHandle alias); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetAliasSizeFromPtr(ffi.Pointer alias); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetAliasUserType(AliasHandle alias); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetAliasUserTypeFromPtr(ffi.Pointer alias); - -@Deprecated('No longer supported') -@ffi.Native() -external int GetCPUSpeed(); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetCollectionDefaultAttributes(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external CollectionExceptionUPP GetCollectionExceptionProc(Collection c); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionTag, - SInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetCollectionItem( - Collection c, - int tag, - int id, - ffi.Pointer itemSize, - ffi.Pointer itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetCollectionItemHdl( - Collection aCollection, - int tag, - int id, - Handle itemData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionTag, - SInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetCollectionItemInfo( - Collection c, - int tag, - int id, - ffi.Pointer itemIndex, - ffi.Pointer itemSize, - ffi.Pointer attributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetCollectionRetainCount(Collection c); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(Component, ffi.Pointer, SInt16, SInt16) ->() -external int GetComponentIndString( - Component aComponent, - ffi.Pointer theString, - int strListID, - int index$1, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Component, - ffi.Pointer, - Handle, - Handle, - Handle, - ) ->() -external int GetComponentInfo( - Component aComponent, - ffi.Pointer cd, - Handle componentName, - Handle componentInfo, - Handle componentIcon, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetComponentInstanceError(ComponentInstance aComponentInstance); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle GetComponentInstanceStorage( - ComponentInstance aComponentInstance, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetComponentListModSeed(); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(Component, ffi.Pointer, SInt16, SInt16) ->() -external int GetComponentPublicIndString( - Component aComponent, - ffi.Pointer theString, - int strListID, - int index$1, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetComponentPublicResource( - Component aComponent, - int resourceType, - int resourceID, - ffi.Pointer theResource, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - OSType, - SInt16, - SInt32, - ffi.Pointer, - GetMissingComponentResourceUPP, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetComponentPublicResourceList( - int resourceType, - int resourceID, - int flags, - ffi.Pointer cd, - GetMissingComponentResourceUPP missingProc, - ffi.Pointer refCon, - ffi.Pointer atomContainerPtr, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetComponentRefcon(Component aComponent); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetComponentResource( - Component aComponent, - int resType, - int resID, - ffi.Pointer theResource, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetComponentTypeModSeed(int componentType); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetCurrentProcess(ffi.Pointer pPSN); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetCurrentThread(ffi.Pointer currentThreadID); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native)>() -external int GetCustomIconsEnabled( - int vRefNum, - ffi.Pointer customIconsEnabled, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(UInt32, ffi.Pointer, ffi.Pointer) ->() -external int GetDebugComponentInfo( - int itemIndex, - ffi.Pointer componentSignature, - ffi.Pointer componentName, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - UInt32, - OSType, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetDebugOptionInfo( - int itemIndex, - int componentSignature, - ffi.Pointer optionSelectorNum, - ffi.Pointer optionName, - ffi.Pointer optionSetting, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetDefaultThreadStackSize( - int threadStyle, - ffi.Pointer stackSize, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - FSVolumeRefNum, - OSType, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetFolderNameUnicode( - int vRefNum, - int foldType, - ffi.Pointer foundVRefNum, - ffi.Pointer name, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(UInt32, ffi.Pointer, ffi.Pointer) ->() -external int GetFolderTypes( - int requestedTypeCount, - ffi.Pointer totalTypeCount, - ffi.Pointer theTypes, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetFrontProcess(ffi.Pointer pPSN); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetHandleSize(Handle h); - -@ffi.Native() -external int GetIconFamilyData( - IconFamilyHandle iconFamily, - int iconType, - Handle h, -); - -@Deprecated('Use -[NSWorkspace iconForFile:] instead.') -@ffi.Native)>() -external int GetIconRef( - int vRefNum, - int creator, - int iconType, - ffi.Pointer theIconRef, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native)>() -external int GetIconRefFromComponent( - Component inComponent, - ffi.Pointer outIconRef, -); - -@Deprecated('Use -[NSWorkspace iconForFile:] instead.') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - UniCharCount, - ffi.Pointer, - FSCatalogInfoBitmap, - ffi.Pointer, - IconServicesUsageFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetIconRefFromFileInfo( - ffi.Pointer inRef, - int inFileNameLength, - ffi.Pointer inFileName, - int inWhichInfo, - ffi.Pointer inCatalogInfo, - int inUsageFlags, - ffi.Pointer outIconRef, - ffi.Pointer outLabel, -); - -@Deprecated('Use -[NSWorkspace iconForFile:] instead.') -@ffi.Native< - OSErr Function(SInt16, SInt32, SInt32, SInt8, SInt8, ffi.Pointer) ->() -external int GetIconRefFromFolder( - int vRefNum, - int parentFolderID, - int folderID, - int attributes, - int accessPrivileges, - ffi.Pointer theIconRef, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native< - OSStatus Function(ffi.Pointer, Size, ffi.Pointer) ->() -external int GetIconRefFromIconFamilyPtr( - ffi.Pointer inIconFamilyPtr, - int inSize, - ffi.Pointer outIconRef, -); - -@Deprecated('Use -[NSWorkspace iconForFileType:] instead.') -@ffi.Native< - OSErr Function( - OSType, - OSType, - CFStringRef, - CFStringRef, - IconServicesUsageFlags, - ffi.Pointer, - ) ->() -external int GetIconRefFromTypeInfo( - int inCreator, - int inType, - CFStringRef inExtension, - CFStringRef inMIMEType, - int inUsageFlags, - ffi.Pointer outIconRef, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native)>() -external int GetIconRefOwners(IconRef theIconRef, ffi.Pointer owners); - -@ffi.Native)>() -external IconRef GetIconRefVariant( - IconRef inIconRef, - int inVariant, - ffi.Pointer outTransform, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle GetIndResource(int theType, int itemIndex); - -@Deprecated('Deprecated') -@ffi.Native, ResourceIndex)>() -external void GetIndType(ffi.Pointer theType, int itemIndex); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int GetIndVoice(int index$1, ffi.Pointer voice); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(Collection, SInt32, ffi.Pointer, ffi.Pointer) ->() -external int GetIndexedCollectionItem( - Collection c, - int itemIndex, - ffi.Pointer itemSize, - ffi.Pointer itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetIndexedCollectionItemHdl( - Collection aCollection, - int itemIndex, - Handle itemData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - SInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetIndexedCollectionItemInfo( - Collection c, - int itemIndex, - ffi.Pointer tag, - ffi.Pointer id, - ffi.Pointer itemSize, - ffi.Pointer attributes, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetIndexedCollectionTag( - Collection c, - int tagIndex, - ffi.Pointer tag, -); - -@ffi.Native Function(OSStatus)>() -external ffi.Pointer GetMacOSStatusCommentString(int err); - -@ffi.Native Function(OSStatus)>() -external ffi.Pointer GetMacOSStatusErrorString(int err); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetMaxResourceSize(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle GetNamedResource(int theType, ConstStr255Param name); - -@Deprecated('Deprecated') -@ffi.Native() -external Collection GetNewCollection(int collectionID); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle GetNextFOND(Handle fondHandle); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetNextProcess(ffi.Pointer pPSN); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetNextResourceFile( - int curRefNum, - ffi.Pointer nextRefNum, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int GetProcessBundleLocation( - ffi.Pointer psn, - ffi.Pointer location, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetProcessForPID(int pid, ffi.Pointer psn); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer) ->() -external int GetProcessInformation( - ffi.Pointer PSN, - ffi.Pointer info, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int GetProcessPID( - ffi.Pointer psn, - ffi.Pointer pid, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetPtrSize(Ptr p); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetResAttrs(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetResFileAttrs(int refNum); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - Handle, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void GetResInfo( - Handle theResource, - ffi.Pointer theID, - ffi.Pointer theType, - ffi.Pointer name, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle GetResource(int theType, int theID); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetResourceSizeOnDisk(Handle theResource); - -@ffi.Native< - OSStatus Function( - TextEncoding, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetScriptInfoFromTextEncoding( - int iEncoding, - ffi.Pointer oTextScriptID, - ffi.Pointer oTextLanguageID, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int GetScriptManagerVariable(int selector); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int GetSpeechInfo( - SpeechChannel chan, - int selector, - ffi.Pointer speechInfo, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int GetSpeechPitch(SpeechChannel chan, ffi.Pointer pitch); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int GetSpeechRate(SpeechChannel chan, ffi.Pointer rate); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionTag, - SInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetTaggedCollectionItem( - Collection c, - int tag, - int whichItem, - ffi.Pointer itemSize, - ffi.Pointer itemData, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Collection, - CollectionTag, - SInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int GetTaggedCollectionItemInfo( - Collection c, - int tag, - int whichItem, - ffi.Pointer id, - ffi.Pointer itemIndex, - ffi.Pointer itemSize, - ffi.Pointer attributes, -); - -@ffi.Native() -external int GetTextEncodingBase(int encoding); - -@ffi.Native() -external int GetTextEncodingFormat(int encoding); - -@ffi.Native< - OSStatus Function(ScriptCode, LangCode, RegionCode, ffi.Pointer) ->() -external int GetTextEncodingFromScriptInfo( - int iTextScriptID, - int iTextLanguageID, - int iTextRegionID, - ffi.Pointer oEncoding, -); - -@ffi.Native< - OSStatus Function( - TextEncoding, - TextEncodingNameSelector, - RegionCode, - TextEncoding, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - TextPtr, - ) ->() -external int GetTextEncodingName( - int iEncoding, - int iNamePartSelector, - int iPreferredRegion, - int iPreferredEncoding, - int iOutputBufLen, - ffi.Pointer oNameLength, - ffi.Pointer oActualRegion, - ffi.Pointer oActualEncoding, - TextPtr oEncodingName, -); - -@ffi.Native() -external int GetTextEncodingVariant(int encoding); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetThreadCurrentTaskRef(ffi.Pointer threadTRef); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetThreadState( - int threadToGet, - ffi.Pointer threadState, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetThreadStateGivenTaskRef( - ThreadTaskRef threadTRef, - int threadToGet, - ffi.Pointer threadState, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int GetTopResourceFile(ffi.Pointer refNum); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) ->() -external int GetVoiceDescription( - ffi.Pointer voice, - ffi.Pointer info, - int infoLength, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(ffi.Pointer, OSType, ffi.Pointer) ->() -external int GetVoiceInfo( - ffi.Pointer voice, - int selector, - ffi.Pointer voiceInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void HClrRBit(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external int HGetState(Handle h); - -@ffi.Native)>() -external int HIShapeContainsPoint( - HIShapeRef inShape, - ffi.Pointer inPoint, -); - -@ffi.Native() -external HIShapeRef HIShapeCreateCopy(HIShapeRef inShape); - -@ffi.Native() -external HIShapeRef HIShapeCreateDifference( - HIShapeRef inShape1, - HIShapeRef inShape2, -); - -@ffi.Native() -external HIShapeRef HIShapeCreateEmpty(); - -@ffi.Native() -external HIShapeRef HIShapeCreateIntersection( - HIShapeRef inShape1, - HIShapeRef inShape2, -); - -@ffi.Native() -external HIMutableShapeRef HIShapeCreateMutable(); - -@ffi.Native() -external HIMutableShapeRef HIShapeCreateMutableCopy(HIShapeRef inOrig); - -@ffi.Native)>() -external HIMutableShapeRef HIShapeCreateMutableWithRect( - ffi.Pointer inRect, -); - -@ffi.Native() -external HIShapeRef HIShapeCreateUnion( - HIShapeRef inShape1, - HIShapeRef inShape2, -); - -@ffi.Native() -external HIShapeRef HIShapeCreateWithQDRgn(RgnHandle inRgn); - -@ffi.Native)>() -external HIShapeRef HIShapeCreateWithRect(ffi.Pointer inRect); - -@ffi.Native() -external HIShapeRef HIShapeCreateXor(HIShapeRef inShape1, HIShapeRef inShape2); - -@ffi.Native() -external int HIShapeDifference( - HIShapeRef inShape1, - HIShapeRef inShape2, - HIMutableShapeRef outResult, -); - -@ffi.Native< - OSStatus Function( - HIShapeRef, - OptionBits, - HIShapeEnumerateProcPtr, - ffi.Pointer, - ) ->() -external int HIShapeEnumerate( - HIShapeRef inShape, - int inOptions, - HIShapeEnumerateProcPtr inProc, - ffi.Pointer inRefcon, -); - -@ffi.Native() -external int HIShapeGetAsQDRgn(HIShapeRef inShape, RgnHandle outRgn); - -@ffi.Native< - ffi.Pointer Function(HIShapeRef, ffi.Pointer) ->() -external ffi.Pointer HIShapeGetBounds( - HIShapeRef inShape, - ffi.Pointer outRect, -); - -@ffi.Native() -external int HIShapeGetTypeID(); - -@ffi.Native() -external int HIShapeInset(HIMutableShapeRef inShape, double inDX, double inDY); - -@ffi.Native() -external int HIShapeIntersect( - HIShapeRef inShape1, - HIShapeRef inShape2, - HIMutableShapeRef outResult, -); - -@ffi.Native)>() -external int HIShapeIntersectsRect( - HIShapeRef inShape, - ffi.Pointer inRect, -); - -@ffi.Native() -external int HIShapeIsEmpty(HIShapeRef inShape); - -@ffi.Native() -external int HIShapeIsRectangular(HIShapeRef inShape); - -@ffi.Native() -external int HIShapeOffset(HIMutableShapeRef inShape, double inDX, double inDY); - -@ffi.Native() -external int HIShapeReplacePathInCGContext( - HIShapeRef inShape, - CGContextRef inContext, -); - -@ffi.Native() -external int HIShapeSetEmpty(HIMutableShapeRef inShape); - -@ffi.Native() -external int HIShapeSetWithShape( - HIMutableShapeRef inDestShape, - HIShapeRef inSrcShape, -); - -@ffi.Native() -external int HIShapeUnion( - HIShapeRef inShape1, - HIShapeRef inShape2, - HIMutableShapeRef outResult, -); - -@ffi.Native)>() -external int HIShapeUnionWithRect( - HIMutableShapeRef inShape, - ffi.Pointer inRect, -); - -@ffi.Native() -external int HIShapeXor( - HIShapeRef inShape1, - HIShapeRef inShape2, - HIMutableShapeRef outResult, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void HLock(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external void HLockHi(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external void HSetRBit(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external void HSetState(Handle h, int flags); - -@Deprecated('Deprecated') -@ffi.Native() -external void HUnlock(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external int HandAndHand(Handle hand1, Handle hand2); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int HandToHand(ffi.Pointer theHndl); - -@Deprecated('Deprecated') -@ffi.Native() -external int HomeResFile(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICAddMapEntry( - ICInstance inst, - Handle entries, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, ICProfileID, ffi.Pointer) ->() -external int ICAddProfile( - ICInstance inst, - int prototypeID, - ffi.Pointer newID, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICBegin(ICInstance inst, int perm); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICCountMapEntries( - ICInstance inst, - Handle entries, - ffi.Pointer count, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICCountPref(ICInstance inst, ffi.Pointer count); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICCountProfiles(ICInstance inst, ffi.Pointer count); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, OSType, Handle, ffi.Pointer) ->() -external int ICCreateGURLEvent( - ICInstance inst, - int helperCreator, - Handle urlH, - ffi.Pointer theEvent, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICDeleteMapEntry(ICInstance inst, Handle entries, int pos); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICDeletePref(ICInstance inst, ConstStr255Param key); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICDeleteProfile(ICInstance inst, int thisID); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICEditPreferences(ICInstance inst, ConstStr255Param key); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICEnd(ICInstance inst); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, ConstStr255Param, ffi.Pointer, Handle) ->() -external int ICFindPrefHandle( - ICInstance inst, - ConstStr255Param key, - ffi.Pointer attr, - Handle prefh, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, Boolean, ffi.Pointer) ->() -external int ICGetConfigName( - ICInstance inst, - int longname, - ffi.Pointer name, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICGetCurrentProfile( - ICInstance inst, - ffi.Pointer currentID, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICGetDefaultPref( - ICInstance inst, - ConstStr255Param key, - Handle prefH, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - Handle, - ffi.Long, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ICGetIndMapEntry( - ICInstance inst, - Handle entries, - int index$1, - ffi.Pointer pos, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, ffi.Long, ffi.Pointer) ->() -external int ICGetIndPref( - ICInstance inst, - int index$1, - ffi.Pointer key, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICGetIndProfile( - ICInstance inst, - int index$1, - ffi.Pointer thisID, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, Handle, ffi.Long, ffi.Pointer) ->() -external int ICGetMapEntry( - ICInstance inst, - Handle entries, - int pos, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICGetPerm(ICInstance inst, ffi.Pointer perm); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - ConstStr255Param, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ICGetPref( - ICInstance inst, - ConstStr255Param key, - ffi.Pointer attr, - ffi.Pointer buf, - ffi.Pointer size, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - ConstStr255Param, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ICGetPrefHandle( - ICInstance inst, - ConstStr255Param key, - ffi.Pointer attr, - ffi.Pointer prefh, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, ICProfileID, ffi.Pointer) ->() -external int ICGetProfileName( - ICInstance inst, - int thisID, - ffi.Pointer name, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICGetSeed(ICInstance inst, ffi.Pointer seed); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICGetVersion( - ICInstance inst, - int whichVersion, - ffi.Pointer version, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - ConstStr255Param, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ICLaunchURL( - ICInstance inst, - ConstStr255Param hint, - ffi.Pointer data, - int len, - ffi.Pointer selStart, - ffi.Pointer selEnd, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - Handle, - ConstStr255Param, - ffi.Pointer, - ) ->() -external int ICMapEntriesFilename( - ICInstance inst, - Handle entries, - ConstStr255Param filename, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - Handle, - OSType, - OSType, - ConstStr255Param, - ffi.Pointer, - ) ->() -external int ICMapEntriesTypeCreator( - ICInstance inst, - Handle entries, - int fType, - int fCreator, - ConstStr255Param filename, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, ConstStr255Param, ffi.Pointer) ->() -external int ICMapFilename( - ICInstance inst, - ConstStr255Param filename, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - OSType, - OSType, - ConstStr255Param, - ffi.Pointer, - ) ->() -external int ICMapTypeCreator( - ICInstance inst, - int fType, - int fCreator, - ConstStr255Param filename, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - ConstStr255Param, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Pointer, - Handle, - ) ->() -external int ICParseURL( - ICInstance inst, - ConstStr255Param hint, - ffi.Pointer data, - int len, - ffi.Pointer selStart, - ffi.Pointer selEnd, - Handle url, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ICSendGURLEvent(ICInstance inst, ffi.Pointer theEvent); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICSetCurrentProfile(ICInstance inst, int newID); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(ICInstance, Handle, ffi.Long, ffi.Pointer) ->() -external int ICSetMapEntry( - ICInstance inst, - Handle entries, - int pos, - ffi.Pointer entry, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ICInstance, - ConstStr255Param, - ICAttr, - ffi.Pointer, - ffi.Long, - ) ->() -external int ICSetPref( - ICInstance inst, - ConstStr255Param key, - int attr, - ffi.Pointer buf, - int size, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICSetPrefHandle( - ICInstance inst, - ConstStr255Param key, - int attr, - Handle prefh, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICSetProfileName( - ICInstance inst, - int thisID, - ConstStr255Param name, -); - -@Deprecated('Deprecated') -@ffi.Native, OSType)>() -external int ICStart(ffi.Pointer inst, int signature); - -@Deprecated('Deprecated') -@ffi.Native() -external int ICStop(ICInstance inst); - -@ffi.Native< - CFMutableDictionaryRef Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ) ->() -external CFMutableDictionaryRef IOBSDNameMatching( - int mainPort, - int options, - ffi.Pointer bsdName, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int IOCatalogueGetData( - int mainPort, - int flag, - ffi.Pointer> buffer, - ffi.Pointer size, -); - -@ffi.Native)>() -external int IOCatalogueModuleLoaded(int mainPort, ffi.Pointer name); - -@ffi.Native() -external int IOCatalogueReset(int mainPort, int flag); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ffi.Uint32, - ) ->() -external int IOCatalogueSendData( - int mainPort, - int flag, - ffi.Pointer buffer, - int size, -); - -@ffi.Native< - kern_return_t Function(mach_port_t, ffi.Uint32, ffi.Pointer) ->() -external int IOCatalogueTerminate( - int mainPort, - int flag, - ffi.Pointer description, -); - -@ffi.Native() -external int IOConnectAddClient(int connect$1, int client); - -@ffi.Native() -external int IOConnectAddRef(int connect$1); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - mach_port_t, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallAsyncMethod( - int connection, - int selector, - int wake_port, - ffi.Pointer reference, - int referenceCnt, - ffi.Pointer input, - int inputCnt, - ffi.Pointer inputStruct, - int inputStructCnt, - ffi.Pointer output, - ffi.Pointer outputCnt, - ffi.Pointer outputStruct, - ffi.Pointer outputStructCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - mach_port_t, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallAsyncScalarMethod( - int connection, - int selector, - int wake_port, - ffi.Pointer reference, - int referenceCnt, - ffi.Pointer input, - int inputCnt, - ffi.Pointer output, - ffi.Pointer outputCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - mach_port_t, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallAsyncStructMethod( - int connection, - int selector, - int wake_port, - ffi.Pointer reference, - int referenceCnt, - ffi.Pointer inputStruct, - int inputStructCnt, - ffi.Pointer outputStruct, - ffi.Pointer outputStructCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallMethod( - int connection, - int selector, - ffi.Pointer input, - int inputCnt, - ffi.Pointer inputStruct, - int inputStructCnt, - ffi.Pointer output, - ffi.Pointer outputCnt, - ffi.Pointer outputStruct, - ffi.Pointer outputStructCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallScalarMethod( - int connection, - int selector, - ffi.Pointer input, - int inputCnt, - ffi.Pointer output, - ffi.Pointer outputCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOConnectCallStructMethod( - int connection, - int selector, - ffi.Pointer inputStruct, - int inputStructCnt, - ffi.Pointer outputStruct, - ffi.Pointer outputStructCnt, -); - -@ffi.Native)>() -external int IOConnectGetService( - int connect$1, - ffi.Pointer service, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - task_port_t, - ffi.Pointer, - ffi.Pointer, - IOOptionBits, - ) ->() -external int IOConnectMapMemory( - int connect$1, - int memoryType, - int intoTask, - ffi.Pointer atAddress, - ffi.Pointer ofSize, - int options, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - task_port_t, - ffi.Pointer, - ffi.Pointer, - IOOptionBits, - ) ->() -external int IOConnectMapMemory64( - int connect$1, - int memoryType, - int intoTask, - ffi.Pointer atAddress, - ffi.Pointer ofSize, - int options, -); - -@ffi.Native() -external int IOConnectRelease(int connect$1); - -@ffi.Native() -external int IOConnectSetCFProperties(int connect$1, CFTypeRef properties); - -@ffi.Native() -external int IOConnectSetCFProperty( - int connect$1, - CFStringRef propertyName, - CFTypeRef property, -); - -@ffi.Native< - kern_return_t Function(io_connect_t, ffi.Uint32, mach_port_t, ffi.UintPtr) ->() -external int IOConnectSetNotificationPort( - int connect$1, - int type, - int port, - int reference, -); - -@ffi.Native() -external int IOConnectTrap0(int connect$1, int index$1); - -@ffi.Native() -external int IOConnectTrap1(int connect$1, int index$1, int p1); - -@ffi.Native< - kern_return_t Function(io_connect_t, ffi.Uint32, ffi.UintPtr, ffi.UintPtr) ->() -external int IOConnectTrap2(int connect$1, int index$1, int p1, int p2); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ) ->() -external int IOConnectTrap3(int connect$1, int index$1, int p1, int p2, int p3); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ) ->() -external int IOConnectTrap4( - int connect$1, - int index$1, - int p1, - int p2, - int p3, - int p4, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ) ->() -external int IOConnectTrap5( - int connect$1, - int index$1, - int p1, - int p2, - int p3, - int p4, - int p5, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.UintPtr, - ) ->() -external int IOConnectTrap6( - int connect$1, - int index$1, - int p1, - int p2, - int p3, - int p4, - int p5, - int p6, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - task_port_t, - mach_vm_address_t, - ) ->() -external int IOConnectUnmapMemory( - int connect$1, - int memoryType, - int fromTask, - int atAddress, -); - -@ffi.Native< - kern_return_t Function( - io_connect_t, - ffi.Uint32, - task_port_t, - mach_vm_address_t, - ) ->() -external int IOConnectUnmapMemory64( - int connect$1, - int memoryType, - int fromTask, - int atAddress, -); - -@ffi.Native)>() -external int IOCreateReceivePort( - int msgType, - ffi.Pointer recvPort, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void IODispatchCalloutFromMessage( - ffi.Pointer unused, - ffi.Pointer msg, - ffi.Pointer reference, -); - -@ffi.Native() -external int IOIteratorIsValid(int iterator); - -@ffi.Native() -external int IOIteratorNext(int iterator); - -@ffi.Native() -external void IOIteratorReset(int iterator); - -@ffi.Native)>() -external int IOKitGetBusyState(int mainPort, ffi.Pointer busyState); - -@ffi.Native)>() -external int IOKitWaitQuiet( - int mainPort, - ffi.Pointer waitTime, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - IOOptionBits, - ) ->() -external int IOKitWaitQuietWithOptions( - int mainPort, - ffi.Pointer waitTime, - int options, -); - -@ffi.Native)>() -external int IOMainPort(int bootstrapPort, ffi.Pointer mainPort); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IOMasterPort(int bootstrapPort, ffi.Pointer mainPort); - -@ffi.Native() -external IONotificationPortRef IONotificationPortCreate(int mainPort); - -@ffi.Native() -external void IONotificationPortDestroy(IONotificationPortRef notify); - -@ffi.Native() -external int IONotificationPortGetMachPort(IONotificationPortRef notify); - -@ffi.Native() -external CFRunLoopSourceRef IONotificationPortGetRunLoopSource( - IONotificationPortRef notify, -); - -@ffi.Native( - symbol: 'IONotificationPortSetDispatchQueue', -) -external void _IONotificationPortSetDispatchQueue( - IONotificationPortRef notify, - dispatch_queue_t queue, -); - -void IONotificationPortSetDispatchQueue( - IONotificationPortRef notify, - Dartdispatch_queue_t queue, -) { - final _$$ref = queue.ref; - return _IONotificationPortSetDispatchQueue(notify, _$$ref.pointer); -} - -@ffi.Native() -external int IONotificationPortSetImportanceReceiver( - IONotificationPortRef notify, -); - -@ffi.Native)>() -external int IOObjectConformsTo(int object, ffi.Pointer className); - -@ffi.Native() -external CFStringRef IOObjectCopyBundleIdentifierForClass( - CFStringRef classname, -); - -@ffi.Native() -external CFStringRef IOObjectCopyClass(int object); - -@ffi.Native() -external CFStringRef IOObjectCopySuperclassForClass(CFStringRef classname); - -@ffi.Native)>() -external int IOObjectGetClass(int object, ffi.Pointer className); - -@ffi.Native() -external int IOObjectGetKernelRetainCount(int object); - -@ffi.Native() -external int IOObjectGetRetainCount(int object); - -@ffi.Native() -external int IOObjectGetUserRetainCount(int object); - -@ffi.Native() -external int IOObjectIsEqualTo(int object, int anObject); - -@ffi.Native() -external int IOObjectRelease(int object); - -@ffi.Native() -external int IOObjectRetain(int object); - -@Deprecated('Deprecated') -@ffi.Native< - CFMutableDictionaryRef Function( - mach_port_t, - ffi.Uint32, - ffi.Pointer, - ) ->() -external CFMutableDictionaryRef IOOpenFirmwarePathMatching( - int mainPort, - int options, - ffi.Pointer path, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - IOOptionBits, - ffi.Pointer, - ) ->() -external int IORegistryCreateIterator( - int mainPort, - ffi.Pointer plane, - int options, - ffi.Pointer iterator, -); - -@ffi.Native() -external int IORegistryEntryCopyFromPath(int mainPort, CFStringRef path); - -@ffi.Native)>() -external CFStringRef IORegistryEntryCopyPath( - int entry, - ffi.Pointer plane, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - CFAllocatorRef, - IOOptionBits, - ) ->() -external int IORegistryEntryCreateCFProperties( - int entry, - ffi.Pointer properties, - CFAllocatorRef allocator, - int options, -); - -@ffi.Native< - CFTypeRef Function( - io_registry_entry_t, - CFStringRef, - CFAllocatorRef, - IOOptionBits, - ) ->() -external CFTypeRef IORegistryEntryCreateCFProperty( - int entry, - CFStringRef key, - CFAllocatorRef allocator, - int options, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - IOOptionBits, - ffi.Pointer, - ) ->() -external int IORegistryEntryCreateIterator( - int entry, - ffi.Pointer plane, - int options, - ffi.Pointer iterator, -); - -@ffi.Native)>() -external int IORegistryEntryFromPath(int mainPort, ffi.Pointer path); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetChildEntry( - int entry, - ffi.Pointer plane, - ffi.Pointer child, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetChildIterator( - int entry, - ffi.Pointer plane, - ffi.Pointer iterator, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetLocationInPlane( - int entry, - ffi.Pointer plane, - ffi.Pointer location, -); - -@ffi.Native< - kern_return_t Function(io_registry_entry_t, ffi.Pointer) ->() -external int IORegistryEntryGetName(int entry, ffi.Pointer name); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetNameInPlane( - int entry, - ffi.Pointer plane, - ffi.Pointer name, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetParentEntry( - int entry, - ffi.Pointer plane, - ffi.Pointer parent, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetParentIterator( - int entry, - ffi.Pointer plane, - ffi.Pointer iterator, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetPath( - int entry, - ffi.Pointer plane, - ffi.Pointer path, -); - -@ffi.Native< - kern_return_t Function( - io_registry_entry_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IORegistryEntryGetProperty( - int entry, - ffi.Pointer propertyName, - ffi.Pointer buffer, - ffi.Pointer size, -); - -@ffi.Native< - kern_return_t Function(io_registry_entry_t, ffi.Pointer) ->() -external int IORegistryEntryGetRegistryEntryID( - int entry, - ffi.Pointer entryID, -); - -@ffi.Native() -external CFMutableDictionaryRef IORegistryEntryIDMatching(int entryID); - -@ffi.Native)>() -external int IORegistryEntryInPlane(int entry, ffi.Pointer plane); - -@ffi.Native< - CFTypeRef Function( - io_registry_entry_t, - ffi.Pointer, - CFStringRef, - CFAllocatorRef, - IOOptionBits, - ) ->() -external CFTypeRef IORegistryEntrySearchCFProperty( - int entry, - ffi.Pointer plane, - CFStringRef key, - CFAllocatorRef allocator, - int options, -); - -@ffi.Native() -external int IORegistryEntrySetCFProperties(int entry, CFTypeRef properties); - -@ffi.Native< - kern_return_t Function(io_registry_entry_t, CFStringRef, CFTypeRef) ->() -external int IORegistryEntrySetCFProperty( - int entry, - CFStringRef propertyName, - CFTypeRef property, -); - -@ffi.Native() -external int IORegistryGetRootEntry(int mainPort); - -@ffi.Native() -external int IORegistryIteratorEnterEntry(int iterator); - -@ffi.Native() -external int IORegistryIteratorExitEntry(int iterator); - -@ffi.Native< - kern_return_t Function( - IONotificationPortRef, - io_service_t, - ffi.Pointer, - IOServiceInterestCallback, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOServiceAddInterestNotification( - IONotificationPortRef notifyPort, - int service, - ffi.Pointer interestType, - IOServiceInterestCallback callback, - ffi.Pointer refCon, - ffi.Pointer notification, -); - -@ffi.Native< - kern_return_t Function( - IONotificationPortRef, - ffi.Pointer, - CFDictionaryRef, - IOServiceMatchingCallback, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOServiceAddMatchingNotification( - IONotificationPortRef notifyPort, - ffi.Pointer notificationType, - CFDictionaryRef matching, - IOServiceMatchingCallback callback, - ffi.Pointer refCon, - ffi.Pointer notification, -); - -@Deprecated('Deprecated') -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - CFDictionaryRef, - mach_port_t, - ffi.UintPtr, - ffi.Pointer, - ) ->() -external int IOServiceAddNotification( - int mainPort, - ffi.Pointer notificationType, - CFDictionaryRef matching, - int wakePort, - int reference, - ffi.Pointer notification, -); - -@ffi.Native() -external int IOServiceAuthorize(int service, int options); - -@ffi.Native() -external int IOServiceClose(int connect$1); - -@ffi.Native)>() -external int IOServiceGetBusyState( - int service, - ffi.Pointer busyState, -); - -@ffi.Native() -external int IOServiceGetMatchingService( - int mainPort, - CFDictionaryRef matching, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int IOServiceGetMatchingServices( - int mainPort, - CFDictionaryRef matching, - ffi.Pointer existing, -); - -@ffi.Native< - kern_return_t Function(io_service_t, CFDictionaryRef, ffi.Pointer) ->() -external int IOServiceMatchPropertyTable( - int service, - CFDictionaryRef matching, - ffi.Pointer matches, -); - -@ffi.Native)>() -external CFMutableDictionaryRef IOServiceMatching(ffi.Pointer name); - -@ffi.Native)>() -external CFMutableDictionaryRef IOServiceNameMatching( - ffi.Pointer name, -); - -@Deprecated('Deprecated') -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int IOServiceOFPathToBSDName( - int mainPort, - ffi.Pointer openFirmwarePath, - ffi.Pointer bsdName, -); - -@ffi.Native< - kern_return_t Function( - io_service_t, - task_port_t, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int IOServiceOpen( - int service, - int owningTask, - int type, - ffi.Pointer connect$1, -); - -@ffi.Native() -external int IOServiceOpenAsFileDescriptor(int service, int oflag); - -@ffi.Native() -external int IOServiceRequestProbe(int service, int options); - -@ffi.Native< - kern_return_t Function(io_service_t, ffi.Pointer) ->() -external int IOServiceWaitQuiet( - int service, - ffi.Pointer waitTime, -); - -@ffi.Native() -external int IOSurfaceAlignProperty(CFStringRef property, int value); - -@ffi.Native() -external int IOSurfaceAllowsPixelSizeCasting(IOSurfaceRef buffer); - -@ffi.Native() -external CFDictionaryRef IOSurfaceCopyAllValues(IOSurfaceRef buffer); - -@ffi.Native() -external CFTypeRef IOSurfaceCopyValue(IOSurfaceRef buffer, CFStringRef key); - -@ffi.Native() -external IOSurfaceRef IOSurfaceCreate(CFDictionaryRef properties); - -@ffi.Native() -external int IOSurfaceCreateMachPort(IOSurfaceRef buffer); - -@ffi.Native( - symbol: 'IOSurfaceCreateXPCObject', -) -external xpc_object_t _IOSurfaceCreateXPCObject(IOSurfaceRef aSurface); - -Dartxpc_object_t IOSurfaceCreateXPCObject(IOSurfaceRef aSurface) { - return objc.NSObject.fromPointer( - _IOSurfaceCreateXPCObject(aSurface), - retain: false, - release: true, - ); -} - -@ffi.Native() -external void IOSurfaceDecrementUseCount(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetAllocSize(IOSurfaceRef buffer); - -@ffi.Native Function(IOSurfaceRef)>() -external ffi.Pointer IOSurfaceGetBaseAddress(IOSurfaceRef buffer); - -@ffi.Native Function(IOSurfaceRef, ffi.Size)>() -external ffi.Pointer IOSurfaceGetBaseAddressOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetBitDepthOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -); - -@ffi.Native() -external int IOSurfaceGetBitOffsetOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -); - -@ffi.Native() -external int IOSurfaceGetBytesPerElement(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetBytesPerElementOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetBytesPerRow(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetBytesPerRowOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetElementHeight(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetElementHeightOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetElementWidth(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetElementWidthOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetHeight(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetHeightOfPlane(IOSurfaceRef buffer, int planeIndex); - -@ffi.Native() -external int IOSurfaceGetID(IOSurfaceRef buffer); - -@ffi.Native( - symbol: 'IOSurfaceGetNameOfComponentOfPlane', -) -external int _IOSurfaceGetNameOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -); - -IOSurfaceComponentName IOSurfaceGetNameOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -) { - return IOSurfaceComponentName.fromValue( - _IOSurfaceGetNameOfComponentOfPlane(buffer, planeIndex, componentIndex), - ); -} - -@ffi.Native() -external int IOSurfaceGetNumberOfComponentsOfPlane( - IOSurfaceRef buffer, - int planeIndex, -); - -@ffi.Native() -external int IOSurfaceGetPixelFormat(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetPlaneCount(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetPropertyAlignment(CFStringRef property); - -@ffi.Native() -external int IOSurfaceGetPropertyMaximum(CFStringRef property); - -@ffi.Native( - symbol: 'IOSurfaceGetRangeOfComponentOfPlane', -) -external int _IOSurfaceGetRangeOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -); - -IOSurfaceComponentRange IOSurfaceGetRangeOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -) { - return IOSurfaceComponentRange.fromValue( - _IOSurfaceGetRangeOfComponentOfPlane(buffer, planeIndex, componentIndex), - ); -} - -@ffi.Native() -external int IOSurfaceGetSeed(IOSurfaceRef buffer); - -@ffi.Native(symbol: 'IOSurfaceGetSubsampling') -external int _IOSurfaceGetSubsampling(IOSurfaceRef buffer); - -IOSurfaceSubsampling IOSurfaceGetSubsampling(IOSurfaceRef buffer) { - return IOSurfaceSubsampling.fromValue(_IOSurfaceGetSubsampling(buffer)); -} - -@ffi.Native() -external int IOSurfaceGetTypeID(); - -@ffi.Native( - symbol: 'IOSurfaceGetTypeOfComponentOfPlane', -) -external int _IOSurfaceGetTypeOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -); - -IOSurfaceComponentType IOSurfaceGetTypeOfComponentOfPlane( - IOSurfaceRef buffer, - int planeIndex, - int componentIndex, -) { - return IOSurfaceComponentType.fromValue( - _IOSurfaceGetTypeOfComponentOfPlane(buffer, planeIndex, componentIndex), - ); -} - -@ffi.Native() -external int IOSurfaceGetUseCount(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetWidth(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceGetWidthOfPlane(IOSurfaceRef buffer, int planeIndex); - -@ffi.Native() -external void IOSurfaceIncrementUseCount(IOSurfaceRef buffer); - -@ffi.Native() -external int IOSurfaceIsInUse(IOSurfaceRef buffer); - -@ffi.Native< - kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) ->() -external int IOSurfaceLock( - IOSurfaceRef buffer, - int options, - ffi.Pointer seed, -); - -@ffi.Native() -external IOSurfaceRef IOSurfaceLookup(int csid); - -@ffi.Native() -external IOSurfaceRef IOSurfaceLookupFromMachPort(int port); - -@ffi.Native( - symbol: 'IOSurfaceLookupFromXPCObject', -) -external IOSurfaceRef _IOSurfaceLookupFromXPCObject(xpc_object_t xobj); - -IOSurfaceRef IOSurfaceLookupFromXPCObject(Dartxpc_object_t xobj) { - final _$$ref = xobj.ref; - return _IOSurfaceLookupFromXPCObject(_$$ref.pointer); -} - -@ffi.Native() -external void IOSurfaceRemoveAllValues(IOSurfaceRef buffer); - -@ffi.Native() -external void IOSurfaceRemoveValue(IOSurfaceRef buffer, CFStringRef key); - -@ffi.Native< - kern_return_t Function(IOSurfaceRef, task_id_token_t, ffi.Int, ffi.Uint32) ->() -external int IOSurfaceSetOwnershipIdentity( - IOSurfaceRef buffer, - int task_id_token, - int newLedgerTag, - int newLedgerOptions, -); - -@ffi.Native< - kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) ->() -external int IOSurfaceSetPurgeable( - IOSurfaceRef buffer, - int newState, - ffi.Pointer oldState, -); - -@ffi.Native() -external void IOSurfaceSetValue( - IOSurfaceRef buffer, - CFStringRef key, - CFTypeRef value, -); - -@ffi.Native() -external void IOSurfaceSetValues( - IOSurfaceRef buffer, - CFDictionaryRef keysAndValues, -); - -@ffi.Native< - kern_return_t Function(IOSurfaceRef, ffi.Uint32, ffi.Pointer) ->() -external int IOSurfaceUnlock( - IOSurfaceRef buffer, - int options, - ffi.Pointer seed, -); - -@ffi.Native< - Boolean Function( - ffi.Pointer, - ffi.Pointer, - IconAlignmentType, - IconServicesUsageFlags, - IconRef, - ) ->() -external int IconRefContainsCGPoint( - ffi.Pointer testPt, - ffi.Pointer iconRect, - int align, - int iconServicesUsageFlags, - IconRef theIconRef, -); - -@ffi.Native< - Boolean Function( - ffi.Pointer, - ffi.Pointer, - IconAlignmentType, - IconServicesUsageFlags, - IconRef, - ) ->() -external int IconRefIntersectsCGRect( - ffi.Pointer testRect, - ffi.Pointer iconRect, - int align, - int iconServicesUsageFlags, - IconRef theIconRef, -); - -@ffi.Native< - HIShapeRef Function( - ffi.Pointer, - IconAlignmentType, - IconServicesUsageFlags, - IconRef, - ) ->() -external HIShapeRef IconRefToHIShape( - ffi.Pointer iconRect, - int align, - int iconServicesUsageFlags, - IconRef theIconRef, -); - -@ffi.Native< - OSErr Function(IconRef, IconSelectorValue, ffi.Pointer) ->() -external int IconRefToIconFamily( - IconRef theIconRef, - int whichIcons, - ffi.Pointer iconFamily, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IdentifyFolder( - int vRefNum, - int dirID, - ffi.Pointer foldType, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IncrementAtomic(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IncrementAtomic16(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IncrementAtomic8(ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native() -external void InsTime(QElemPtr tmTaskPtr); - -@Deprecated('Deprecated') -@ffi.Native() -external void InsXTime(QElemPtr tmTaskPtr); - -@Deprecated('Deprecated') -@ffi.Native() -external int InsertResourceFile(int refNum, int where); - -@Deprecated('Deprecated') -@ffi.Native() -external void InstallDebugAssertOutputHandler( - DebugAssertOutputHandlerUPP handler, -); - -@Deprecated('No longer support') -@ffi.Native() -external ExceptionHandlerTPP InstallExceptionHandler( - ExceptionHandlerTPP theHandler, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int InstallTimeTask(QElemPtr tmTaskPtr); - -@Deprecated('Deprecated') -@ffi.Native() -external int InstallXTimeTask(QElemPtr tmTaskPtr); - -@Deprecated('Deprecated') -@ffi.Native() -external int InvalidateFolderDescriptorCache(int vRefNum, int dirID); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - DescType, - SRefCon, - ffi.Pointer, - AECoerceDescUPP, - ) ->() -external int InvokeAECoerceDescUPP( - ffi.Pointer fromDesc, - int toType, - SRefCon handlerRefcon, - ffi.Pointer toDesc, - AECoerceDescUPP userUPP, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - Size, - DescType, - SRefCon, - ffi.Pointer, - AECoercePtrUPP, - ) ->() -external int InvokeAECoercePtrUPP( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - int toType, - SRefCon handlerRefcon, - ffi.Pointer result, - AECoercePtrUPP userUPP, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, Size, SRefCon, AEDisposeExternalUPP) ->() -external void InvokeAEDisposeExternalUPP( - ffi.Pointer dataPtr, - int dataLength, - SRefCon refcon, - AEDisposeExternalUPP userUPP, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - SRefCon, - AEEventHandlerUPP, - ) ->() -external int InvokeAEEventHandlerUPP( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - SRefCon handlerRefcon, - AEEventHandlerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int InvokeCollectionExceptionUPP( - Collection c, - int status, - CollectionExceptionUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - SInt32, - ffi.Pointer, - ffi.Pointer, - CollectionFlattenUPP, - ) ->() -external int InvokeCollectionFlattenUPP( - int size, - ffi.Pointer data, - ffi.Pointer refCon, - CollectionFlattenUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - ffi.Pointer, - ComponentMPWorkFunctionHeaderRecordPtr, - ComponentMPWorkFunctionUPP, - ) ->() -external int InvokeComponentMPWorkFunctionUPP( - ffi.Pointer globalRefCon, - ComponentMPWorkFunctionHeaderRecordPtr header, - ComponentMPWorkFunctionUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentResult Function( - ffi.Pointer, - Handle, - ComponentRoutineUPP, - ) ->() -external int InvokeComponentRoutineUPP( - ffi.Pointer cp, - Handle componentStorage, - ComponentRoutineUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ConstStr255Param, - DebugAssertOutputHandlerUPP, - ) ->() -external void InvokeDebugAssertOutputHandlerUPP( - int componentSignature, - int options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - int lineNumber, - ffi.Pointer value, - ConstStr255Param outputMsg, - DebugAssertOutputHandlerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - SInt32, - UInt32, - ffi.Pointer, - DebugComponentCallbackUPP, - ) ->() -external void InvokeDebugComponentCallbackUPP( - int optionSelectorNum, - int command, - ffi.Pointer optionSetting, - DebugComponentCallbackUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeDebuggerDisposeThreadUPP( - int threadDeleted, - DebuggerDisposeThreadUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeDebuggerNewThreadUPP( - int threadCreated, - DebuggerNewThreadUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ThreadID Function(SchedulerInfoRecPtr, DebuggerThreadSchedulerUPP) ->() -external int InvokeDebuggerThreadSchedulerUPP( - SchedulerInfoRecPtr schedulerInfo, - DebuggerThreadSchedulerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeDeferredTaskUPP(int dtParam, DeferredTaskUPP userUPP); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function(ffi.Pointer, ExceptionHandlerUPP) ->() -external int InvokeExceptionHandlerUPP( - ffi.Pointer theException, - ExceptionHandlerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - FNMessage, - OptionBits, - ffi.Pointer, - FNSubscriptionRef, - FNSubscriptionUPP, - ) ->() -external void InvokeFNSubscriptionUPP( - int message, - int flags, - ffi.Pointer refcon, - FNSubscriptionRef subscription, - FNSubscriptionUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - FSVolumeOperation, - ffi.Pointer, - OSStatus, - FSVolumeRefNum, - pid_t, - FSVolumeEjectUPP, - ) ->() -external void InvokeFSVolumeEjectUPP( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - FSVolumeEjectUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - FSVolumeOperation, - ffi.Pointer, - OSStatus, - FSVolumeRefNum, - FSVolumeMountUPP, - ) ->() -external void InvokeFSVolumeMountUPP( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - int err, - int mountedVolumeRefNum, - FSVolumeMountUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - FSVolumeOperation, - ffi.Pointer, - OSStatus, - FSVolumeRefNum, - pid_t, - FSVolumeUnmountUPP, - ) ->() -external void InvokeFSVolumeUnmountUPP( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - FSVolumeUnmountUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - OSType, - ffi.Pointer, - ffi.Pointer, - FolderManagerNotificationUPP, - ) ->() -external int InvokeFolderManagerNotificationUPP( - int message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - FolderManagerNotificationUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - Component, - OSType, - SInt16, - ffi.Pointer, - ffi.Pointer, - GetMissingComponentResourceUPP, - ) ->() -external int InvokeGetMissingComponentResourceUPP( - Component c, - int resType, - int resID, - ffi.Pointer refCon, - ffi.Pointer resource, - GetMissingComponentResourceUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeIOCompletionUPP( - ParmBlkPtr paramBlock, - IOCompletionUPP userUPP, -); - -@ffi.Native< - OSErr Function( - ResType, - ffi.Pointer, - ffi.Pointer, - IconActionUPP, - ) ->() -external int InvokeIconActionUPP( - int theType, - ffi.Pointer theIcon, - ffi.Pointer yourDataPtr, - IconActionUPP userUPP, -); - -@ffi.Native, IconGetterUPP)>() -external Handle InvokeIconGetterUPP( - int theType, - ffi.Pointer yourDataPtr, - IconGetterUPP userUPP, -); - -@ffi.Native< - Boolean Function( - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - IndexToUCStringUPP, - ) ->() -external int InvokeIndexToUCStringUPP( - int index$1, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer outString, - ffi.Pointer tsOptions, - IndexToUCStringUPP userUPP, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - KCEvent, - ffi.Pointer, - ffi.Pointer, - KCCallbackUPP, - ) ->() -external int InvokeKCCallbackUPP( - int keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - KCCallbackUPP userUPP, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - DescType, - DescType, - ffi.Pointer, - ffi.Pointer, - SRefCon, - OSLAccessorUPP, - ) ->() -external int InvokeOSLAccessorUPP( - int desiredClass, - ffi.Pointer container, - int containerClass, - int form, - ffi.Pointer selectionData, - ffi.Pointer value, - SRefCon accessorRefcon, - OSLAccessorUPP userUPP, -); - -@ffi.Native< - OSErr Function( - ffi.Long, - ffi.Long, - ffi.Pointer, - OSLAdjustMarksUPP, - ) ->() -external int InvokeOSLAdjustMarksUPP( - int newStart, - int newStop, - ffi.Pointer markToken, - OSLAdjustMarksUPP userUPP, -); - -@ffi.Native< - OSErr Function( - DescType, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - OSLCompareUPP, - ) ->() -external int InvokeOSLCompareUPP( - int oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - OSLCompareUPP userUPP, -); - -@ffi.Native< - OSErr Function( - DescType, - DescType, - ffi.Pointer, - ffi.Pointer, - OSLCountUPP, - ) ->() -external int InvokeOSLCountUPP( - int desiredType, - int containerClass, - ffi.Pointer container, - ffi.Pointer result, - OSLCountUPP userUPP, -); - -@ffi.Native, OSLDisposeTokenUPP)>() -external int InvokeOSLDisposeTokenUPP( - ffi.Pointer unneededToken, - OSLDisposeTokenUPP userUPP, -); - -@ffi.Native< - OSErr Function(ffi.Pointer>, OSLGetErrDescUPP) ->() -external int InvokeOSLGetErrDescUPP( - ffi.Pointer> appDescPtr, - OSLGetErrDescUPP userUPP, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - DescType, - ffi.Pointer, - OSLGetMarkTokenUPP, - ) ->() -external int InvokeOSLGetMarkTokenUPP( - ffi.Pointer dContainerToken, - int containerClass, - ffi.Pointer result, - OSLGetMarkTokenUPP userUPP, -); - -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - OSLMarkUPP, - ) ->() -external int InvokeOSLMarkUPP( - ffi.Pointer dToken, - ffi.Pointer markToken, - int index$1, - OSLMarkUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeResErrUPP(int thErr, ResErrUPP userUPP); - -@Deprecated('Deprecated') -@ffi.Native, SelectorFunctionUPP)>() -external int InvokeSelectorFunctionUPP( - int selector, - ffi.Pointer response, - SelectorFunctionUPP userUPP, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int InvokeSleepQUPP( - int message, - SleepQRecPtr qRecPtr, - SleepQUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void InvokeSpeechDoneUPP( - SpeechChannel chan, - SRefCon refCon, - SpeechDoneUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - ffi.Void Function(SpeechChannel, SRefCon, OSErr, ffi.Long, SpeechErrorUPP) ->() -external void InvokeSpeechErrorUPP( - SpeechChannel chan, - SRefCon refCon, - int theError, - int bytePos, - SpeechErrorUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - ffi.Void Function(SpeechChannel, SRefCon, SInt16, SpeechPhonemeUPP) ->() -external void InvokeSpeechPhonemeUPP( - SpeechChannel chan, - SRefCon refCon, - int phonemeOpcode, - SpeechPhonemeUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external void InvokeSpeechSyncUPP( - SpeechChannel chan, - SRefCon refCon, - int syncMessage, - SpeechSyncUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - ffi.Void Function( - SpeechChannel, - SRefCon, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - SpeechTextDoneUPP, - ) ->() -external void InvokeSpeechTextDoneUPP( - SpeechChannel chan, - SRefCon refCon, - ffi.Pointer> nextBuf, - ffi.Pointer byteLen, - ffi.Pointer controlFlags, - SpeechTextDoneUPP userUPP, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - ffi.Void Function( - SpeechChannel, - SRefCon, - ffi.UnsignedLong, - UInt16, - SpeechWordUPP, - ) ->() -external void InvokeSpeechWordUPP( - SpeechChannel chan, - SRefCon refCon, - int wordPos, - int wordLen, - SpeechWordUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native, ThreadEntryUPP)>() -external voidPtr InvokeThreadEntryUPP( - ffi.Pointer threadParam, - ThreadEntryUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int InvokeThreadSchedulerUPP( - SchedulerInfoRecPtr schedulerInfo, - ThreadSchedulerUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(ThreadID, ffi.Pointer, ThreadSwitchUPP) ->() -external void InvokeThreadSwitchUPP( - int threadBeingSwitched, - ffi.Pointer switchProcParam, - ThreadSwitchUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(ThreadID, ffi.Pointer, ThreadTerminationUPP) ->() -external void InvokeThreadTerminationUPP( - int threadTerminated, - ffi.Pointer terminationProcParam, - ThreadTerminationUPP userUPP, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void InvokeTimerUPP(TMTaskPtr tmTaskPtr, TimerUPP userUPP); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ByteCount, - ffi.Pointer, - TextPtr, - ByteCount, - ffi.Pointer, - LogicalAddress, - ConstUnicodeMappingPtr, - UnicodeToTextFallbackUPP, - ) ->() -external int InvokeUnicodeToTextFallbackUPP( - ffi.Pointer iSrcUniStr, - int iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - TextPtr oDestStr, - int iDestStrLen, - ffi.Pointer oDestConvLen, - LogicalAddress iInfoPtr, - ConstUnicodeMappingPtr iUnicodeMappingPtr, - UnicodeToTextFallbackUPP userUPP, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int IsDataAvailableInIconRef(int inIconKind, IconRef inIconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external int IsHandleValid(Handle h); - -@Deprecated('Deprecated') -@ffi.Native() -external int IsHeapValid(); - -@Deprecated('Use NSImage or Core Graphics to composite images.') -@ffi.Native< - OSErr Function(IconRef, ffi.Pointer, ffi.Pointer) ->() -external int IsIconRefComposite( - IconRef compositeIconRef, - ffi.Pointer backgroundIconRef, - ffi.Pointer foregroundIconRef, -); - -@ffi.Native() -external int IsIconRefMaskEmpty(IconRef iconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external int IsMetric(); - -@Deprecated('Deprecated') -@ffi.Native() -external int IsPointerValid(Ptr p); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int IsProcessVisible(ffi.Pointer psn); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int IsValidIconRef(IconRef theIconRef); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function(KCCallbackUPP, KCEventMask, ffi.Pointer) ->() -external int KCAddCallback( - KCCallbackUPP callbackProc, - int eventMask, - ffi.Pointer userContext, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCCopyItem( - KCItemRef item, - KCRef destKeychain, - ffi.Pointer copy, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCCountKeychains(); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCDeleteItem(KCItemRef item); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer>, - ConstStringPtr, - ConstStringPtr, - ConstStringPtr, - ConstStringPtr, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCFindAppleSharePassword( - ffi.Pointer> serverSignature, - ConstStringPtr serverAddress, - ConstStringPtr serverName, - ConstStringPtr volumeName, - ConstStringPtr accountName, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - KCRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCFindFirstItem( - KCRef keychain, - ffi.Pointer attrList, - ffi.Pointer search, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ConstStringPtr, - ConstStringPtr, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCFindGenericPassword( - ConstStringPtr serviceName, - ConstStringPtr accountName, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ConstStringPtr, - ConstStringPtr, - ConstStringPtr, - UInt16, - OSType, - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCFindInternetPassword( - ConstStringPtr serverName, - ConstStringPtr securityDomain, - ConstStringPtr accountName, - int port, - int protocol, - int authType, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ConstStringPtr, - ConstStringPtr, - ConstStringPtr, - ConstStringPtr, - UInt16, - OSType, - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCFindInternetPasswordWithPath( - ConstStringPtr serverName, - ConstStringPtr securityDomain, - ConstStringPtr accountName, - ConstStringPtr path, - int port, - int protocol, - int authType, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCFindNextItem(KCSearchRef search, ffi.Pointer item); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function(KCItemRef, ffi.Pointer, ffi.Pointer) ->() -external int KCGetAttribute( - KCItemRef item, - ffi.Pointer attr, - ffi.Pointer actualLength, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - KCItemRef, - UInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCGetData( - KCItemRef item, - int maxLength, - ffi.Pointer data, - ffi.Pointer actualLength, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCGetDefaultKeychain(ffi.Pointer keychain); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCGetIndKeychain(int index$1, ffi.Pointer keychain); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCGetKeychain(KCItemRef item, ffi.Pointer keychain); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCGetKeychainManagerVersion(ffi.Pointer returnVers); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCGetKeychainName(KCRef keychain, StringPtr keychainName); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCGetStatus(KCRef keychain, ffi.Pointer keychainStatus); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCIsInteractionAllowed(); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCLock(KCRef keychain); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCMakeAliasFromKCRef( - KCRef keychain, - ffi.Pointer keychainAlias, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCMakeKCRefFromAlias( - AliasHandle keychainAlias, - ffi.Pointer keychain, -); - -@Deprecated('No longer supported') -@ffi.Native, ffi.Pointer)>() -external int KCMakeKCRefFromFSRef( - ffi.Pointer keychainFSRef, - ffi.Pointer keychain, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - KCItemClass, - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int KCNewItem( - int itemClass, - int itemCreator, - int length, - ffi.Pointer data, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCReleaseItem(ffi.Pointer item); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCReleaseKeychain(ffi.Pointer keychain); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCReleaseSearch(ffi.Pointer search); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCRemoveCallback(KCCallbackUPP callbackProc); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCSetAttribute(KCItemRef item, ffi.Pointer attr); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int KCSetData(KCItemRef item, int length, ffi.Pointer data); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCSetDefaultKeychain(KCRef keychain); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCSetInteractionAllowed(int state); - -@Deprecated('No longer supported') -@ffi.Native() -external int KCUpdateItem(KCItemRef item); - -@ffi.Native() -external final audit_token_t KERNEL_AUDIT_TOKEN; - -@ffi.Native() -external final security_token_t KERNEL_SECURITY_TOKEN; - -@Deprecated('Deprecated') -@ffi.Native)>() -external int KillProcess(ffi.Pointer inProcess); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetApFontID(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetBootDrive(); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr LMGetIntlSpec(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetMemErr(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetResErr(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetResLoad(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetSysFontSize(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetSysMap(); - -@Deprecated('Deprecated') -@ffi.Native() -external int LMGetTmpResLoad(); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetApFontID(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetBootDrive(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetIntlSpec(Ptr value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetMemErr(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetResErr(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetResLoad(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetSysFontFam(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetSysFontSize(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetSysMap(int value); - -@Deprecated('Deprecated') -@ffi.Native() -external void LMSetTmpResLoad(int value); - -@Deprecated('Use LSCanURLAcceptURL instead.') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - OptionBits, - OptionBits, - ffi.Pointer, - ) ->() -external int LSCanRefAcceptItem( - ffi.Pointer inItemFSRef, - ffi.Pointer inTargetRef, - int inRoleMask, - int inFlags, - ffi.Pointer outAcceptsItem, -); - -@ffi.Native< - OSStatus Function( - CFURLRef, - CFURLRef, - OptionBits, - OptionBits, - ffi.Pointer, - ) ->() -external int LSCanURLAcceptURL( - CFURLRef inItemURL, - CFURLRef inTargetURL, - int inRoleMask, - int inFlags, - ffi.Pointer outAcceptsItem, -); - -@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenURL:] instead.') -@ffi.Native() -external CFArrayRef LSCopyAllHandlersForURLScheme(CFStringRef inURLScheme); - -@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenContentType:] instead.') -@ffi.Native() -external CFArrayRef LSCopyAllRoleHandlersForContentType( - CFStringRef inContentType, - int inRole, -); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') -@ffi.Native)>() -external int LSCopyApplicationForMIMEType( - CFStringRef inMIMEType, - int inRoleMask, - ffi.Pointer outAppURL, -); - -@Deprecated( - 'Use -[NSWorkspace URLsForApplicationsWithBundleIdentifier:] instead.', -) -@ffi.Native)>() -external CFArrayRef LSCopyApplicationURLsForBundleIdentifier( - CFStringRef inBundleIdentifier, - ffi.Pointer outError, -); - -@Deprecated('Use -[NSWorkspace URLsForApplicationsToOpenURL:] instead.') -@ffi.Native() -external CFArrayRef LSCopyApplicationURLsForURL(CFURLRef inURL, int inRoleMask); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') -@ffi.Native< - CFURLRef Function(CFStringRef, OptionBits, ffi.Pointer) ->() -external CFURLRef LSCopyDefaultApplicationURLForContentType( - CFStringRef inContentType, - int inRoleMask, - ffi.Pointer outError, -); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenURL:] instead.') -@ffi.Native)>() -external CFURLRef LSCopyDefaultApplicationURLForURL( - CFURLRef inURL, - int inRoleMask, - ffi.Pointer outError, -); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenURL:] instead.') -@ffi.Native() -external CFStringRef LSCopyDefaultHandlerForURLScheme(CFStringRef inURLScheme); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') -@ffi.Native() -external CFStringRef LSCopyDefaultRoleHandlerForContentType( - CFStringRef inContentType, - int inRole, -); - -@Deprecated( - 'Use the URL resource property kCFURLLocalizedNameKey or NSURLLocalizedNameKey instead.', -) -@ffi.Native, ffi.Pointer)>() -external int LSCopyDisplayNameForRef( - ffi.Pointer inRef, - ffi.Pointer outDisplayName, -); - -@Deprecated( - 'Use the URL resource property kCFURLLocalizedNameKey or NSURLLocalizedNameKey instead.', -) -@ffi.Native)>() -external int LSCopyDisplayNameForURL( - CFURLRef inURL, - ffi.Pointer outDisplayName, -); - -@Deprecated( - 'Use CFURLCopyResourcePropertyForKey or -[NSURL getResourceValue:forKey:error:] instead.', -) -@ffi.Native< - OSStatus Function( - ffi.Pointer, - OptionBits, - CFStringRef, - ffi.Pointer, - ) ->() -external int LSCopyItemAttribute( - ffi.Pointer inItem, - int inRoles, - CFStringRef inAttributeName, - ffi.Pointer outValue, -); - -@Deprecated( - 'Use CFURLCopyResourcePropertiesForKeys or -[NSURL resourceValuesForKeys:error:] instead.', -) -@ffi.Native< - OSStatus Function( - ffi.Pointer, - OptionBits, - CFArrayRef, - ffi.Pointer, - ) ->() -external int LSCopyItemAttributes( - ffi.Pointer inItem, - int inRoles, - CFArrayRef inAttributeNames, - ffi.Pointer outValues, -); - -@Deprecated('Use URL resource properties instead.') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - OptionBits, - ffi.Pointer, - ) ->() -external int LSCopyItemInfoForRef( - ffi.Pointer inItemRef, - int inWhichInfo, - ffi.Pointer outItemInfo, -); - -@Deprecated('Use URL resource properties instead.') -@ffi.Native< - OSStatus Function(CFURLRef, OptionBits, ffi.Pointer) ->() -external int LSCopyItemInfoForURL( - CFURLRef inURL, - int inWhichInfo, - ffi.Pointer outItemInfo, -); - -@Deprecated('Use UTTypeCopyDescription instead.') -@ffi.Native)>() -external int LSCopyKindStringForMIMEType( - CFStringRef inMIMEType, - ffi.Pointer outKindString, -); - -@Deprecated( - 'Use the URL resource property kCFURLLocalizedTypeDescriptionKey or NSURLLocalizedTypeDescriptionKey instead.', -) -@ffi.Native, ffi.Pointer)>() -external int LSCopyKindStringForRef( - ffi.Pointer inFSRef, - ffi.Pointer outKindString, -); - -@Deprecated('Use UTTypeCopyDescription instead.') -@ffi.Native< - OSStatus Function(OSType, OSType, CFStringRef, ffi.Pointer) ->() -external int LSCopyKindStringForTypeInfo( - int inType, - int inCreator, - CFStringRef inExtension, - ffi.Pointer outKindString, -); - -@Deprecated( - 'Use the URL resource property kCFURLLocalizedTypeDescriptionKey or NSURLLocalizedTypeDescriptionKey instead.', -) -@ffi.Native)>() -external int LSCopyKindStringForURL( - CFURLRef inURL, - ffi.Pointer outKindString, -); - -@Deprecated('Use LSCopyApplicationURLsForBundleIdentifier instead.') -@ffi.Native< - OSStatus Function( - OSType, - CFStringRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSFindApplicationForInfo( - int inCreator, - CFStringRef inBundleID, - CFStringRef inName, - ffi.Pointer outAppRef, - ffi.Pointer outAppURL, -); - -@Deprecated('Use -[NSWorkspace URLForApplicationToOpenContentType:] instead.') -@ffi.Native< - OSStatus Function( - OSType, - OSType, - CFStringRef, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSGetApplicationForInfo( - int inType, - int inCreator, - CFStringRef inExtension, - int inRoleMask, - ffi.Pointer outAppRef, - ffi.Pointer outAppURL, -); - -@Deprecated('Use LSCopyDefaultApplicationURLForURL instead.') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSGetApplicationForItem( - ffi.Pointer inItemRef, - int inRoleMask, - ffi.Pointer outAppRef, - ffi.Pointer outAppURL, -); - -@Deprecated('Use LSCopyDefaultApplicationURLForURL instead.') -@ffi.Native< - OSStatus Function( - CFURLRef, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSGetApplicationForURL( - CFURLRef inURL, - int inRoleMask, - ffi.Pointer outAppRef, - ffi.Pointer outAppURL, -); - -@Deprecated( - 'Use CFURLCopyPathExtension(), -[NSURL pathExtension], or -[NSString pathExtension] instead.', -) -@ffi.Native< - OSStatus Function( - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSGetExtensionInfo( - int inNameLen, - ffi.Pointer inNameBuffer, - ffi.Pointer outExtStartIndex, -); - -@Deprecated('Creator codes are deprecated on OS X.') -@ffi.Native() -external int LSGetHandlerOptionsForContentType(CFStringRef inContentType); - -@Deprecated( - 'Use -[NSWorkspace launchApplicationAtURL:options:configuration:error:] instead.', -) -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSOpenApplication( - ffi.Pointer appParams, - ffi.Pointer outPSN, -); - -@ffi.Native)>() -external int LSOpenCFURLRef( - CFURLRef inURL, - ffi.Pointer outLaunchedURL, -); - -@Deprecated('Use LSOpenCFURLRef or -[NSWorkspace openURL:] instead.') -@ffi.Native, ffi.Pointer)>() -external int LSOpenFSRef( - ffi.Pointer inRef, - ffi.Pointer outLaunchedRef, -); - -@Deprecated('Use LSOpenFromURLSpec or NSWorkspace instead.') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int LSOpenFromRefSpec( - ffi.Pointer inLaunchSpec, - ffi.Pointer outLaunchedRef, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int LSOpenFromURLSpec( - ffi.Pointer inLaunchSpec, - ffi.Pointer outLaunchedURL, -); - -@Deprecated('Use NSWorkspace instead.') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - CFIndex, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->() -external int LSOpenItemsWithRole( - ffi.Pointer inItems, - int inItemCount, - int inRole, - ffi.Pointer inAEParam, - ffi.Pointer inAppParams, - ffi.Pointer outPSNs, - int inMaxPSNCount, -); - -@Deprecated('Use NSWorkspace instead.') -@ffi.Native< - OSStatus Function( - CFArrayRef, - OptionBits, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - CFIndex, - ) ->() -external int LSOpenURLsWithRole( - CFArrayRef inURLs, - int inRole, - ffi.Pointer inAEParam, - ffi.Pointer inAppParams, - ffi.Pointer outPSNs, - int inMaxPSNCount, -); - -@Deprecated('Use LSRegisterURL instead.') -@ffi.Native, Boolean)>() -external int LSRegisterFSRef(ffi.Pointer inRef, int inUpdate); - -@ffi.Native() -external int LSRegisterURL(CFURLRef inURL, int inUpdate); - -@Deprecated( - 'Use -[NSWorkspace setDefaultApplicationAtURL:toOpenURLsWithScheme:completionHandler:] instead.', -) -@ffi.Native() -external int LSSetDefaultHandlerForURLScheme( - CFStringRef inURLScheme, - CFStringRef inHandlerBundleID, -); - -@Deprecated( - 'Use -[NSWorkspace setDefaultApplicationAtURL:toOpenContentType:completionHandler:] instead.', -) -@ffi.Native() -external int LSSetDefaultRoleHandlerForContentType( - CFStringRef inContentType, - int inRole, - CFStringRef inHandlerBundleID, -); - -@Deprecated( - 'Use the URL resource property kCFURLHasHiddenExtensionKey or NSURLHasHiddenExtensionKey instead.', -) -@ffi.Native, Boolean)>() -external int LSSetExtensionHiddenForRef(ffi.Pointer inRef, int inHide); - -@Deprecated( - 'Use the URL resource property kCFURLHasHiddenExtensionKey or NSURLHasHiddenExtensionKey instead.', -) -@ffi.Native() -external int LSSetExtensionHiddenForURL(CFURLRef inURL, int inHide); - -@Deprecated('Creator codes are deprecated on OS X.') -@ffi.Native() -external int LSSetHandlerOptionsForContentType( - CFStringRef inContentType, - int inOptions, -); - -@Deprecated( - 'Use CFURLSetResourcePropertyForKey or -[NSURL setResourceValue:forKey:error:] instead.', -) -@ffi.Native< - OSStatus Function(ffi.Pointer, OptionBits, CFStringRef, CFTypeRef) ->() -external int LSSetItemAttribute( - ffi.Pointer inItem, - int inRoles, - CFStringRef inAttributeName, - CFTypeRef inValue, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - LSSharedFileListRef, - CFRunLoopRef, - CFStringRef, - LSSharedFileListChangedProcPtr, - ffi.Pointer, - ) ->() -external void LSSharedFileListAddObserver( - LSSharedFileListRef inList, - CFRunLoopRef inRunloop, - CFStringRef inRunloopMode, - LSSharedFileListChangedProcPtr callback, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFTypeRef LSSharedFileListCopyProperty( - LSSharedFileListRef inList, - CFStringRef inPropertyName, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external CFArrayRef LSSharedFileListCopySnapshot( - LSSharedFileListRef inList, - ffi.Pointer outSnapshotSeed, -); - -@Deprecated('No longer supported') -@ffi.Native< - LSSharedFileListRef Function(CFAllocatorRef, CFStringRef, CFTypeRef) ->() -external LSSharedFileListRef LSSharedFileListCreate( - CFAllocatorRef inAllocator, - CFStringRef inListType, - CFTypeRef listOptions, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListGetSeedValue(LSSharedFileListRef inList); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native< - LSSharedFileListItemRef Function( - LSSharedFileListRef, - LSSharedFileListItemRef, - CFStringRef, - IconRef, - ffi.Pointer, - CFDictionaryRef, - CFArrayRef, - ) ->() -external LSSharedFileListItemRef LSSharedFileListInsertItemFSRef( - LSSharedFileListRef inList, - LSSharedFileListItemRef insertAfterThisItem, - CFStringRef inDisplayName, - IconRef inIconRef, - ffi.Pointer inFSRef, - CFDictionaryRef inPropertiesToSet, - CFArrayRef inPropertiesToClear, -); - -@Deprecated('No longer supported') -@ffi.Native< - LSSharedFileListItemRef Function( - LSSharedFileListRef, - LSSharedFileListItemRef, - CFStringRef, - IconRef, - CFURLRef, - CFDictionaryRef, - CFArrayRef, - ) ->() -external LSSharedFileListItemRef LSSharedFileListInsertItemURL( - LSSharedFileListRef inList, - LSSharedFileListItemRef insertAfterThisItem, - CFStringRef inDisplayName, - IconRef inIconRef, - CFURLRef inURL, - CFDictionaryRef inPropertiesToSet, - CFArrayRef inPropertiesToClear, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFStringRef LSSharedFileListItemCopyDisplayName( - LSSharedFileListItemRef inItem, -); - -@Deprecated('No longer supported') -@ffi.Native() -external IconRef LSSharedFileListItemCopyIconRef( - LSSharedFileListItemRef inItem, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFTypeRef LSSharedFileListItemCopyProperty( - LSSharedFileListItemRef inItem, - CFStringRef inPropertyName, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFURLRef Function( - LSSharedFileListItemRef, - LSSharedFileListResolutionFlags, - ffi.Pointer, - ) ->() -external CFURLRef LSSharedFileListItemCopyResolvedURL( - LSSharedFileListItemRef inItem, - int inFlags, - ffi.Pointer outError, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListItemGetID(LSSharedFileListItemRef inItem); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListItemGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - LSSharedFileListRef, - LSSharedFileListItemRef, - LSSharedFileListItemRef, - ) ->() -external int LSSharedFileListItemMove( - LSSharedFileListRef inList, - LSSharedFileListItemRef inItem, - LSSharedFileListItemRef inMoveAfterItem, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListItemRemove( - LSSharedFileListRef inList, - LSSharedFileListItemRef inItem, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LSSharedFileListItemRef, - LSSharedFileListResolutionFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LSSharedFileListItemResolve( - LSSharedFileListItemRef inItem, - int inFlags, - ffi.Pointer outURL, - ffi.Pointer outRef, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function(LSSharedFileListItemRef, CFStringRef, CFTypeRef) ->() -external int LSSharedFileListItemSetProperty( - LSSharedFileListItemRef inItem, - CFStringRef inPropertyName, - CFTypeRef inPropertyData, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListRemoveAllItems(LSSharedFileListRef inList); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - LSSharedFileListRef, - CFRunLoopRef, - CFStringRef, - LSSharedFileListChangedProcPtr, - ffi.Pointer, - ) ->() -external void LSSharedFileListRemoveObserver( - LSSharedFileListRef inList, - CFRunLoopRef inRunloop, - CFStringRef inRunloopMode, - LSSharedFileListChangedProcPtr callback, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListSetAuthorization( - LSSharedFileListRef inList, - AuthorizationRef inAuthorization, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int LSSharedFileListSetProperty( - LSSharedFileListRef inList, - CFStringRef inPropertyName, - CFTypeRef inPropertyData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int LaunchApplication(LaunchPBPtr LaunchParams); - -@Deprecated('Deprecated') -@ffi.Native() -external void LoadResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - LocaleNameMask, - ffi.Pointer, - ) ->() -external int LocaleCountNames( - LocaleRef locale, - int opVariant, - int nameMask, - ffi.Pointer nameCount, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - LocaleNameMask, - ItemCount, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleGetIndName( - LocaleRef locale, - int opVariant, - int nameMask, - int nameIndex, - int maxNameLen, - ffi.Pointer actualNameLen, - ffi.Pointer displayName, - ffi.Pointer displayLocale, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - LocaleNameMask, - LocaleRef, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleGetName( - LocaleRef locale, - int opVariant, - int nameMask, - LocaleRef displayLocale, - int maxNameLen, - ffi.Pointer actualNameLen, - ffi.Pointer displayName, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int LocaleOperationCountLocales( - int opClass, - ffi.Pointer localeCount, -); - -@ffi.Native)>() -external int LocaleOperationCountNames( - int opClass, - ffi.Pointer nameCount, -); - -@ffi.Native< - OSStatus Function( - LocaleOperationClass, - ItemCount, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleOperationGetIndName( - int opClass, - int nameIndex, - int maxNameLen, - ffi.Pointer actualNameLen, - ffi.Pointer displayName, - ffi.Pointer displayLocale, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LocaleOperationClass, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleOperationGetLocales( - int opClass, - int maxLocaleCount, - ffi.Pointer actualLocaleCount, - ffi.Pointer localeVariantList, -); - -@ffi.Native< - OSStatus Function( - LocaleOperationClass, - LocaleRef, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleOperationGetName( - int opClass, - LocaleRef displayLocale, - int maxNameLen, - ffi.Pointer actualNameLen, - ffi.Pointer displayName, -); - -@ffi.Native)>() -external int LocaleRefFromLangOrRegionCode( - int lang, - int region, - ffi.Pointer locale, -); - -@ffi.Native, ffi.Pointer)>() -external int LocaleRefFromLocaleString( - ffi.Pointer localeString, - ffi.Pointer locale, -); - -@ffi.Native< - OSStatus Function(LocaleRef, LocalePartMask, ByteCount, ffi.Pointer) ->() -external int LocaleRefGetPartString( - LocaleRef locale, - int partMask, - int maxStringLen, - ffi.Pointer partString, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int LocaleStringToLangAndRegionCodes( - ffi.Pointer localeString, - ffi.Pointer lang, - ffi.Pointer region, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int Long2Fix(int x); - -@ffi.Native() -external CFArrayRef MDCopyLabelKinds(); - -@ffi.Native() -external MDLabelRef MDCopyLabelWithUUID(CFUUIDRef labelUUID); - -@ffi.Native() -external CFArrayRef MDCopyLabelsMatchingExpression( - CFStringRef simpleQueryString, -); - -@ffi.Native() -external CFArrayRef MDCopyLabelsWithKind(CFStringRef kind); - -@ffi.Native() -external CFTypeRef MDItemCopyAttribute(MDItemRef item, CFStringRef name); - -@ffi.Native() -external CFDictionaryRef MDItemCopyAttributeList(MDItemRef item); - -@ffi.Native() -external CFArrayRef MDItemCopyAttributeNames(MDItemRef item); - -@ffi.Native() -external CFDictionaryRef MDItemCopyAttributes(MDItemRef item, CFArrayRef names); - -@ffi.Native() -external CFArrayRef MDItemCopyLabels(MDItemRef item); - -@ffi.Native() -external MDItemRef MDItemCreate(CFAllocatorRef allocator, CFStringRef path); - -@ffi.Native() -external MDItemRef MDItemCreateWithURL(CFAllocatorRef allocator, CFURLRef url); - -@ffi.Native)>( - symbol: 'MDItemGetCacheFileDescriptors', -) -external void _MDItemGetCacheFileDescriptors( - CFArrayRef items, - ffi.Pointer completionHandler, -); - -void MDItemGetCacheFileDescriptors( - CFArrayRef items, - objc.ObjCBlock)> completionHandler, -) { - final _$$ref = completionHandler.ref; - return _MDItemGetCacheFileDescriptors(items, _$$ref.pointer); -} - -@ffi.Native() -external int MDItemGetTypeID(); - -@ffi.Native() -external int MDItemRemoveLabel(MDItemRef item, MDLabelRef label); - -@ffi.Native() -external int MDItemSetLabel(MDItemRef item, MDLabelRef label); - -@ffi.Native() -external CFArrayRef MDItemsCopyAttributes(CFArrayRef items, CFArrayRef names); - -@ffi.Native() -external CFArrayRef MDItemsCreateWithURLs( - CFAllocatorRef allocator, - CFArrayRef urls, -); - -@ffi.Native() -external CFTypeRef MDLabelCopyAttribute(MDLabelRef label, CFStringRef name); - -@ffi.Native() -external CFStringRef MDLabelCopyAttributeName(MDLabelRef label); - -@ffi.Native< - MDLabelRef Function(CFAllocatorRef, CFStringRef, CFStringRef, ffi.UnsignedInt) ->(symbol: 'MDLabelCreate') -external MDLabelRef _MDLabelCreate( - CFAllocatorRef allocator, - CFStringRef displayName, - CFStringRef kind, - int domain, -); - -MDLabelRef MDLabelCreate( - CFAllocatorRef allocator, - CFStringRef displayName, - CFStringRef kind, - MDLabelDomain domain, -) { - return _MDLabelCreate(allocator, displayName, kind, domain.value); -} - -@ffi.Native() -external int MDLabelDelete(MDLabelRef label); - -@ffi.Native() -external int MDLabelGetTypeID(); - -@ffi.Native() -external int MDLabelSetAttributes(MDLabelRef label, CFDictionaryRef attrs); - -@ffi.Native() -external CFStringRef MDQueryCopyQueryString(MDQueryRef query); - -@ffi.Native() -external CFArrayRef MDQueryCopySortingAttributes(MDQueryRef query); - -@ffi.Native() -external CFArrayRef MDQueryCopyValueListAttributes(MDQueryRef query); - -@ffi.Native() -external CFArrayRef MDQueryCopyValuesOfAttribute( - MDQueryRef query, - CFStringRef name, -); - -@ffi.Native< - MDQueryRef Function(CFAllocatorRef, CFStringRef, CFArrayRef, CFArrayRef) ->() -external MDQueryRef MDQueryCreate( - CFAllocatorRef allocator, - CFStringRef queryString, - CFArrayRef valueListAttrs, - CFArrayRef sortingAttrs, -); - -@ffi.Native< - MDQueryRef Function( - CFAllocatorRef, - CFStringRef, - CFArrayRef, - CFArrayRef, - CFArrayRef, - ) ->() -external MDQueryRef MDQueryCreateForItems( - CFAllocatorRef allocator, - CFStringRef queryString, - CFArrayRef valueListAttrs, - CFArrayRef sortingAttrs, - CFArrayRef items, -); - -@ffi.Native< - MDQueryRef Function( - CFAllocatorRef, - MDQueryRef, - CFStringRef, - CFArrayRef, - CFArrayRef, - ) ->() -external MDQueryRef MDQueryCreateSubset( - CFAllocatorRef allocator, - MDQueryRef query, - CFStringRef queryString, - CFArrayRef valueListAttrs, - CFArrayRef sortingAttrs, -); - -@ffi.Native() -external void MDQueryDisableUpdates(MDQueryRef query); - -@ffi.Native() -external void MDQueryEnableUpdates(MDQueryRef query); - -@ffi.Native() -external int MDQueryExecute(MDQueryRef query, int optionFlags); - -@ffi.Native Function(MDQueryRef, CFStringRef, CFIndex)>() -external ffi.Pointer MDQueryGetAttributeValueOfResultAtIndex( - MDQueryRef query, - CFStringRef name, - int idx, -); - -@ffi.Native() -external MDQueryBatchingParams MDQueryGetBatchingParameters(MDQueryRef query); - -@ffi.Native() -external int MDQueryGetCountOfResultsWithAttributeValue( - MDQueryRef query, - CFStringRef name, - CFTypeRef value, -); - -@ffi.Native)>() -external int MDQueryGetIndexOfResult( - MDQueryRef query, - ffi.Pointer result, -); - -@ffi.Native Function(MDQueryRef, CFIndex)>() -external ffi.Pointer MDQueryGetResultAtIndex( - MDQueryRef query, - int idx, -); - -@ffi.Native() -external int MDQueryGetResultCount(MDQueryRef query); - -@ffi.Native() -external int MDQueryGetSortOptionFlagsForAttribute( - MDQueryRef query, - CFStringRef fieldName, -); - -@ffi.Native() -external int MDQueryGetTypeID(); - -@ffi.Native() -external int MDQueryIsGatheringComplete(MDQueryRef query); - -@ffi.Native() -external void MDQuerySetBatchingParameters( - MDQueryRef query, - MDQueryBatchingParams params, -); - -@ffi.Native< - ffi.Void Function( - MDQueryRef, - MDQueryCreateResultFunction, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void MDQuerySetCreateResultFunction( - MDQueryRef query, - MDQueryCreateResultFunction func, - ffi.Pointer context, - ffi.Pointer cb, -); - -@ffi.Native< - ffi.Void Function( - MDQueryRef, - MDQueryCreateValueFunction, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void MDQuerySetCreateValueFunction( - MDQueryRef query, - MDQueryCreateValueFunction func, - ffi.Pointer context, - ffi.Pointer cb, -); - -@ffi.Native( - symbol: 'MDQuerySetDispatchQueue', -) -external void _MDQuerySetDispatchQueue( - MDQueryRef query, - dispatch_queue_t queue, -); - -void MDQuerySetDispatchQueue(MDQueryRef query, Dartdispatch_queue_t queue) { - final _$$ref = queue.ref; - return _MDQuerySetDispatchQueue(query, _$$ref.pointer); -} - -@ffi.Native() -external void MDQuerySetMaxCount(MDQueryRef query, int size); - -@ffi.Native() -external void MDQuerySetSearchScope( - MDQueryRef query, - CFArrayRef scopeDirectories, - int scopeOptions, -); - -@ffi.Native< - ffi.Void Function( - MDQueryRef, - MDQuerySortComparatorFunction, - ffi.Pointer, - ) ->() -external void MDQuerySetSortComparator( - MDQueryRef query, - MDQuerySortComparatorFunction comparator, - ffi.Pointer context, -); - -@ffi.Native)>( - symbol: 'MDQuerySetSortComparatorBlock', -) -external void _MDQuerySetSortComparatorBlock( - MDQueryRef query, - ffi.Pointer comparator, -); - -void MDQuerySetSortComparatorBlock( - MDQueryRef query, - objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - > - comparator, -) { - final _$$ref = comparator.ref; - return _MDQuerySetSortComparatorBlock(query, _$$ref.pointer); -} - -@ffi.Native() -external int MDQuerySetSortOptionFlagsForAttribute( - MDQueryRef query, - CFStringRef fieldName, - int flags, -); - -@ffi.Native() -external int MDQuerySetSortOrder(MDQueryRef query, CFArrayRef sortingAttrs); - -@ffi.Native() -external void MDQueryStop(MDQueryRef query); - -@Deprecated('Deprecated') -@ffi.Native< - CSSM_RETURN Function( - ffi.Pointer, - ffi.Pointer, - MDS_FUNCS_PTR, - ffi.Pointer, - ) ->() -external int MDS_Initialize( - ffi.Pointer pCallerGuid, - ffi.Pointer pMemoryFunctions, - MDS_FUNCS_PTR pDlFunctions, - ffi.Pointer hMds, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int MDS_Install(int MdsHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int MDS_Terminate(int MdsHandle); - -@Deprecated('Deprecated') -@ffi.Native() -external int MDS_Uninstall(int MdsHandle); - -@ffi.Native() -external CFArrayRef MDSchemaCopyAllAttributes(); - -@ffi.Native() -external CFDictionaryRef MDSchemaCopyAttributesForContentType( - CFStringRef contentTypeUTI, -); - -@ffi.Native() -external CFStringRef MDSchemaCopyDisplayDescriptionForAttribute( - CFStringRef name, -); - -@ffi.Native() -external CFStringRef MDSchemaCopyDisplayNameForAttribute(CFStringRef name); - -@ffi.Native() -external CFDictionaryRef MDSchemaCopyMetaAttributesForAttribute( - CFStringRef name, -); - -@Deprecated('Use malloc()') -@ffi.Native() -external LogicalAddress MPAllocate(int size); - -@Deprecated('Use aligned_alloc()') -@ffi.Native() -external LogicalAddress MPAllocateAligned(int size, int alignment, int options); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPAllocateTaskStorageIndex( - ffi.Pointer taskIndex, -); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function(MPTimerID, ffi.Pointer, OptionBits) ->() -external int MPArmTimer( - MPTimerID timerID, - ffi.Pointer expirationTime, - int options, -); - -@Deprecated('Use bzero()') -@ffi.Native() -external void MPBlockClear(LogicalAddress address, int size); - -@Deprecated('Use memcpy()') -@ffi.Native() -external void MPBlockCopy( - LogicalAddress source, - LogicalAddress destination, - int size, -); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCancelTimer( - MPTimerID timerID, - ffi.Pointer timeRemaining, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPCauseNotification(MPNotificationID notificationID); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCreateCriticalRegion( - ffi.Pointer criticalRegion, -); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCreateEvent(ffi.Pointer event); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCreateNotification(ffi.Pointer notificationID); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCreateQueue(ffi.Pointer queue); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - MPSemaphoreCount, - MPSemaphoreCount, - ffi.Pointer, - ) ->() -external int MPCreateSemaphore( - int maximumValue, - int initialValue, - ffi.Pointer semaphore, -); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - TaskProc, - ffi.Pointer, - ByteCount, - MPQueueID, - ffi.Pointer, - ffi.Pointer, - MPTaskOptions, - ffi.Pointer, - ) ->() -external int MPCreateTask( - TaskProc entryPoint, - ffi.Pointer parameter, - int stackSize, - MPQueueID notifyQueue, - ffi.Pointer terminationParameter1, - ffi.Pointer terminationParameter2, - int options, - ffi.Pointer task, -); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPCreateTimer(ffi.Pointer timerID); - -@Deprecated('Use libDispatch') -@ffi.Native() -external MPTaskID MPCurrentTaskID(); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeallocateTaskStorageIndex(int taskIndex); - -@Deprecated('Use libDispatch') -@ffi.Native)>() -external int MPDelayUntil(ffi.Pointer expirationTime); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteCriticalRegion(MPCriticalRegionID criticalRegion); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteEvent(MPEventID event); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteNotification(MPNotificationID notificationID); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteQueue(MPQueueID queue); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteSemaphore(MPSemaphoreID semaphore); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPDeleteTimer(MPTimerID timerID); - -@Deprecated('No longer supported.') -@ffi.Native() -external int MPDisposeTaskException(MPTaskID task, int action); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPEnterCriticalRegion( - MPCriticalRegionID criticalRegion, - int timeout, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external void MPExit(int status); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPExitCriticalRegion(MPCriticalRegionID criticalRegion); - -@Deprecated('No longer supported.') -@ffi.Native< - OSStatus Function(MPTaskID, MPTaskStateKind, ffi.Pointer) ->() -external int MPExtractTaskState( - MPTaskID task, - int kind, - ffi.Pointer info, -); - -@Deprecated('Use free()') -@ffi.Native() -external void MPFree(LogicalAddress object); - -@Deprecated('Use malloc_size()') -@ffi.Native() -external int MPGetAllocatedBlockSize(LogicalAddress object); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int MPGetNextCpuID( - MPCoherenceID owningCoherenceID, - ffi.Pointer cpuID, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int MPGetNextTaskID( - MPProcessID owningProcessID, - ffi.Pointer taskID, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external TaskStorageValue MPGetTaskStorageValue(int taskIndex); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - MPNotificationID, - MPOpaqueID, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int MPModifyNotification( - MPNotificationID notificationID, - MPOpaqueID anID, - ffi.Pointer notifyParam1, - ffi.Pointer notifyParam2, - ffi.Pointer notifyParam3, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - MPNotificationID, - MPOpaqueIDClass, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int MPModifyNotificationParameters( - MPNotificationID notificationID, - int kind, - ffi.Pointer notifyParam1, - ffi.Pointer notifyParam2, - ffi.Pointer notifyParam3, -); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - MPQueueID, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int MPNotifyQueue( - MPQueueID queue, - ffi.Pointer param1, - ffi.Pointer param2, - ffi.Pointer param3, -); - -@Deprecated('Use sysctl(hw.ncpu)') -@ffi.Native() -external int MPProcessors(); - -@Deprecated('Use sysctl(hw.activecpu)') -@ffi.Native() -external int MPProcessorsScheduled(); - -@Deprecated('No longer supported.') -@ffi.Native() -external int MPRegisterDebugger(MPQueueID queue, int level); - -@Deprecated('Use libDispatch') -@ffi.Native< - ffi.Pointer Function( - MPRemoteProcedure, - ffi.Pointer, - MPRemoteContext, - ) ->() -external ffi.Pointer MPRemoteCall( - MPRemoteProcedure remoteProc, - ffi.Pointer parameter, - int context, -); - -@Deprecated('No longer supported.') -@ffi.Native< - ffi.Pointer Function( - MPRemoteProcedure, - ffi.Pointer, - MPRemoteContext, - ) ->() -external ffi.Pointer MPRemoteCallCFM( - MPRemoteProcedure remoteProc, - ffi.Pointer parameter, - int context, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSetEvent(MPEventID event, int flags); - -@Deprecated('No longer supported.') -@ffi.Native() -external int MPSetExceptionHandler(MPTaskID task, MPQueueID exceptionQ); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSetQueueReserve(MPQueueID queue, int count); - -@Deprecated('No longer supported.') -@ffi.Native< - OSStatus Function(MPTaskID, MPTaskStateKind, ffi.Pointer) ->() -external int MPSetTaskState( - MPTaskID task, - int kind, - ffi.Pointer info, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSetTaskStorageValue(int taskIndex, TaskStorageValue value); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSetTaskType(MPTaskID task, int taskType); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSetTaskWeight(MPTaskID task, int weight); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - MPTimerID, - MPOpaqueID, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int MPSetTimerNotify( - MPTimerID timerID, - MPOpaqueID anID, - ffi.Pointer notifyParam1, - ffi.Pointer notifyParam2, - ffi.Pointer notifyParam3, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPSignalSemaphore(MPSemaphoreID semaphore); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPTaskIsPreemptive(MPTaskID taskID); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPTerminateTask(MPTaskID task, int terminationStatus); - -@Deprecated('No longer supported.') -@ffi.Native() -external int MPThrowException(MPTaskID task, int kind); - -@Deprecated('No longer supported.') -@ffi.Native() -external int MPUnregisterDebugger(MPQueueID queue); - -@Deprecated('Use libDispatch') -@ffi.Native, Duration)>() -external int MPWaitForEvent( - MPEventID event, - ffi.Pointer flags, - int timeout, -); - -@Deprecated('Use libDispatch') -@ffi.Native< - OSStatus Function( - MPQueueID, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>, - Duration, - ) ->() -external int MPWaitOnQueue( - MPQueueID queue, - ffi.Pointer> param1, - ffi.Pointer> param2, - ffi.Pointer> param3, - int timeout, -); - -@Deprecated('Use libDispatch') -@ffi.Native() -external int MPWaitOnSemaphore(MPSemaphoreID semaphore, int timeout); - -@Deprecated('Use libDispatch') -@ffi.Native() -external void MPYield(); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int MakeVoiceSpec(int creator, int id, ffi.Pointer voice); - -@Deprecated('No longer supported') -@ffi.Native() -external int MaximumProcessorSpeed(); - -@Deprecated('Deprecated') -@ffi.Native() -external int MemError(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void Microseconds(ffi.Pointer microTickCount); - -@Deprecated('No longer supported') -@ffi.Native() -external int MinimumProcessorSpeed(); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Long Function( - Handle, - ffi.Long, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Long, - ) ->() -external int Munger( - Handle h, - int offset, - ffi.Pointer ptr1, - int len1, - ffi.Pointer ptr2, - int len2, -); - -@ffi.Native() -external NDR_record_t NDR_record; - -@ffi.Native>(symbol: 'NSAMPMDesignation') -external ffi.Pointer _NSAMPMDesignation; - -objc.NSString get NSAMPMDesignation => - objc.NSString.fromPointer(_NSAMPMDesignation, retain: true, release: true); - -set NSAMPMDesignation(objc.NSString value) { - objc.NSString.fromPointer( - _NSAMPMDesignation, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAMPMDesignation = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSAllHashTableObjects') -external ffi.Pointer _NSAllHashTableObjects( - ffi.Pointer table, -); - -objc.NSArray NSAllHashTableObjects(NSHashTable table) { - final _$$ref = table.ref; - return objc.NSArray.fromPointer( - _NSAllHashTableObjects(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSAllMapTableKeys') -external ffi.Pointer _NSAllMapTableKeys( - ffi.Pointer table, -); - -objc.NSArray NSAllMapTableKeys(NSMapTable table) { - final _$$ref = table.ref; - return objc.NSArray.fromPointer( - _NSAllMapTableKeys(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSAllMapTableValues') -external ffi.Pointer _NSAllMapTableValues( - ffi.Pointer table, -); - -objc.NSArray NSAllMapTableValues(NSMapTable table) { - final _$$ref = table.ref; - return objc.NSArray.fromPointer( - _NSAllMapTableValues(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native Function(NSUInteger, NSUInteger)>() -external ffi.Pointer NSAllocateCollectable(int size, int options); - -@ffi.Native Function(NSUInteger)>() -external ffi.Pointer NSAllocateMemoryPages(int bytes); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) ->(symbol: 'NSAllocateObject') -external ffi.Pointer _NSAllocateObject( - ffi.Pointer aClass, - int extraBytes, - ffi.Pointer zone, -); - -objc.ObjCObject NSAllocateObject( - objc.ObjCObject aClass, - DartNSUInteger extraBytes, - ffi.Pointer zone, -) { - final _$$ref = aClass.ref; - return objc.ObjCObject( - _NSAllocateObject(_$$ref.pointer, extraBytes, zone), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'NSAlternateDescriptionAttributeName', -) -external NSAttributedStringKey _NSAlternateDescriptionAttributeName; - -DartNSAttributedStringKey get NSAlternateDescriptionAttributeName => - objc.NSString.fromPointer( - _NSAlternateDescriptionAttributeName, - retain: true, - release: true, - ); - -set NSAlternateDescriptionAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSAlternateDescriptionAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAlternateDescriptionAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSAppleEventManagerWillProcessFirstEventNotification', -) -external NSNotificationName -_NSAppleEventManagerWillProcessFirstEventNotification; - -DartNSNotificationName -get NSAppleEventManagerWillProcessFirstEventNotification => - objc.NSString.fromPointer( - _NSAppleEventManagerWillProcessFirstEventNotification, - retain: true, - release: true, - ); - -set NSAppleEventManagerWillProcessFirstEventNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSAppleEventManagerWillProcessFirstEventNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleEventManagerWillProcessFirstEventNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native() -external final double NSAppleEventTimeOutDefault; - -@ffi.Native() -external final double NSAppleEventTimeOutNone; - -@ffi.Native>( - symbol: 'NSAppleScriptErrorAppName', -) -external ffi.Pointer _NSAppleScriptErrorAppName; - -objc.NSString get NSAppleScriptErrorAppName => objc.NSString.fromPointer( - _NSAppleScriptErrorAppName, - retain: true, - release: true, -); - -set NSAppleScriptErrorAppName(objc.NSString value) { - objc.NSString.fromPointer( - _NSAppleScriptErrorAppName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleScriptErrorAppName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSAppleScriptErrorBriefMessage', -) -external ffi.Pointer _NSAppleScriptErrorBriefMessage; - -objc.NSString get NSAppleScriptErrorBriefMessage => objc.NSString.fromPointer( - _NSAppleScriptErrorBriefMessage, - retain: true, - release: true, -); - -set NSAppleScriptErrorBriefMessage(objc.NSString value) { - objc.NSString.fromPointer( - _NSAppleScriptErrorBriefMessage, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleScriptErrorBriefMessage = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSAppleScriptErrorMessage', -) -external ffi.Pointer _NSAppleScriptErrorMessage; - -objc.NSString get NSAppleScriptErrorMessage => objc.NSString.fromPointer( - _NSAppleScriptErrorMessage, - retain: true, - release: true, -); - -set NSAppleScriptErrorMessage(objc.NSString value) { - objc.NSString.fromPointer( - _NSAppleScriptErrorMessage, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleScriptErrorMessage = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSAppleScriptErrorNumber', -) -external ffi.Pointer _NSAppleScriptErrorNumber; - -objc.NSString get NSAppleScriptErrorNumber => objc.NSString.fromPointer( - _NSAppleScriptErrorNumber, - retain: true, - release: true, -); - -set NSAppleScriptErrorNumber(objc.NSString value) { - objc.NSString.fromPointer( - _NSAppleScriptErrorNumber, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleScriptErrorNumber = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSAppleScriptErrorRange') -external ffi.Pointer _NSAppleScriptErrorRange; - -objc.NSString get NSAppleScriptErrorRange => objc.NSString.fromPointer( - _NSAppleScriptErrorRange, - retain: true, - release: true, -); - -set NSAppleScriptErrorRange(objc.NSString value) { - objc.NSString.fromPointer( - _NSAppleScriptErrorRange, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAppleScriptErrorRange = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSArgumentDomain') -external ffi.Pointer _NSArgumentDomain; - -objc.NSString get NSArgumentDomain => - objc.NSString.fromPointer(_NSArgumentDomain, retain: true, release: true); - -set NSArgumentDomain(objc.NSString value) { - objc.NSString.fromPointer( - _NSArgumentDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSArgumentDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSAssertionHandlerKey') -external ffi.Pointer _NSAssertionHandlerKey; - -objc.NSString get NSAssertionHandlerKey => objc.NSString.fromPointer( - _NSAssertionHandlerKey, - retain: true, - release: true, -); - -set NSAssertionHandlerKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSAssertionHandlerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAssertionHandlerKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSAverageKeyValueOperator') -external NSKeyValueOperator _NSAverageKeyValueOperator; - -DartNSKeyValueOperator get NSAverageKeyValueOperator => - objc.NSString.fromPointer( - _NSAverageKeyValueOperator, - retain: true, - release: true, - ); - -set NSAverageKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSAverageKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSAverageKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSBuddhistCalendar') -external ffi.Pointer _NSBuddhistCalendar; - -objc.NSString get NSBuddhistCalendar => - objc.NSString.fromPointer(_NSBuddhistCalendar, retain: true, release: true); - -set NSBuddhistCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSBuddhistCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSBuddhistCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSBundleDidLoadNotification') -external NSNotificationName _NSBundleDidLoadNotification; - -DartNSNotificationName get NSBundleDidLoadNotification => - objc.NSString.fromPointer( - _NSBundleDidLoadNotification, - retain: true, - release: true, - ); - -set NSBundleDidLoadNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSBundleDidLoadNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSBundleDidLoadNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final double NSBundleResourceRequestLoadingPriorityUrgent; - -@ffi.Native( - symbol: 'NSBundleResourceRequestLowDiskSpaceNotification', -) -external NSNotificationName _NSBundleResourceRequestLowDiskSpaceNotification; - -DartNSNotificationName get NSBundleResourceRequestLowDiskSpaceNotification => - objc.NSString.fromPointer( - _NSBundleResourceRequestLowDiskSpaceNotification, - retain: true, - release: true, - ); - -set NSBundleResourceRequestLowDiskSpaceNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSBundleResourceRequestLowDiskSpaceNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSBundleResourceRequestLowDiskSpaceNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarDayChangedNotification') -external NSNotificationName _NSCalendarDayChangedNotification; - -DartNSNotificationName get NSCalendarDayChangedNotification => - objc.NSString.fromPointer( - _NSCalendarDayChangedNotification, - retain: true, - release: true, - ); - -set NSCalendarDayChangedNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSCalendarDayChangedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarDayChangedNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierBangla') -external NSCalendarIdentifier _NSCalendarIdentifierBangla; - -DartNSCalendarIdentifier get NSCalendarIdentifierBangla => - objc.NSString.fromPointer( - _NSCalendarIdentifierBangla, - retain: true, - release: true, - ); - -set NSCalendarIdentifierBangla(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierBangla, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierBangla = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierBuddhist') -external NSCalendarIdentifier _NSCalendarIdentifierBuddhist; - -DartNSCalendarIdentifier get NSCalendarIdentifierBuddhist => - objc.NSString.fromPointer( - _NSCalendarIdentifierBuddhist, - retain: true, - release: true, - ); - -set NSCalendarIdentifierBuddhist(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierBuddhist, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierBuddhist = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierChinese') -external NSCalendarIdentifier _NSCalendarIdentifierChinese; - -DartNSCalendarIdentifier get NSCalendarIdentifierChinese => - objc.NSString.fromPointer( - _NSCalendarIdentifierChinese, - retain: true, - release: true, - ); - -set NSCalendarIdentifierChinese(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierChinese, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierChinese = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierCoptic') -external NSCalendarIdentifier _NSCalendarIdentifierCoptic; - -DartNSCalendarIdentifier get NSCalendarIdentifierCoptic => - objc.NSString.fromPointer( - _NSCalendarIdentifierCoptic, - retain: true, - release: true, - ); - -set NSCalendarIdentifierCoptic(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierCoptic, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierCoptic = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierDangi') -external NSCalendarIdentifier _NSCalendarIdentifierDangi; - -DartNSCalendarIdentifier get NSCalendarIdentifierDangi => - objc.NSString.fromPointer( - _NSCalendarIdentifierDangi, - retain: true, - release: true, - ); - -set NSCalendarIdentifierDangi(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierDangi, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierDangi = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSCalendarIdentifierEthiopicAmeteAlem', -) -external NSCalendarIdentifier _NSCalendarIdentifierEthiopicAmeteAlem; - -DartNSCalendarIdentifier get NSCalendarIdentifierEthiopicAmeteAlem => - objc.NSString.fromPointer( - _NSCalendarIdentifierEthiopicAmeteAlem, - retain: true, - release: true, - ); - -set NSCalendarIdentifierEthiopicAmeteAlem(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierEthiopicAmeteAlem, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierEthiopicAmeteAlem = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSCalendarIdentifierEthiopicAmeteMihret', -) -external NSCalendarIdentifier _NSCalendarIdentifierEthiopicAmeteMihret; - -DartNSCalendarIdentifier get NSCalendarIdentifierEthiopicAmeteMihret => - objc.NSString.fromPointer( - _NSCalendarIdentifierEthiopicAmeteMihret, - retain: true, - release: true, - ); - -set NSCalendarIdentifierEthiopicAmeteMihret(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierEthiopicAmeteMihret, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierEthiopicAmeteMihret = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierGregorian') -external NSCalendarIdentifier _NSCalendarIdentifierGregorian; - -DartNSCalendarIdentifier get NSCalendarIdentifierGregorian => - objc.NSString.fromPointer( - _NSCalendarIdentifierGregorian, - retain: true, - release: true, - ); - -set NSCalendarIdentifierGregorian(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierGregorian, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierGregorian = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierGujarati') -external NSCalendarIdentifier _NSCalendarIdentifierGujarati; - -DartNSCalendarIdentifier get NSCalendarIdentifierGujarati => - objc.NSString.fromPointer( - _NSCalendarIdentifierGujarati, - retain: true, - release: true, - ); - -set NSCalendarIdentifierGujarati(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierGujarati, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierGujarati = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierHebrew') -external NSCalendarIdentifier _NSCalendarIdentifierHebrew; - -DartNSCalendarIdentifier get NSCalendarIdentifierHebrew => - objc.NSString.fromPointer( - _NSCalendarIdentifierHebrew, - retain: true, - release: true, - ); - -set NSCalendarIdentifierHebrew(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierHebrew, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierHebrew = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierISO8601') -external NSCalendarIdentifier _NSCalendarIdentifierISO8601; - -DartNSCalendarIdentifier get NSCalendarIdentifierISO8601 => - objc.NSString.fromPointer( - _NSCalendarIdentifierISO8601, - retain: true, - release: true, - ); - -set NSCalendarIdentifierISO8601(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierISO8601, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierISO8601 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierIndian') -external NSCalendarIdentifier _NSCalendarIdentifierIndian; - -DartNSCalendarIdentifier get NSCalendarIdentifierIndian => - objc.NSString.fromPointer( - _NSCalendarIdentifierIndian, - retain: true, - release: true, - ); - -set NSCalendarIdentifierIndian(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierIndian, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierIndian = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierIslamic') -external NSCalendarIdentifier _NSCalendarIdentifierIslamic; - -DartNSCalendarIdentifier get NSCalendarIdentifierIslamic => - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamic, - retain: true, - release: true, - ); - -set NSCalendarIdentifierIslamic(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamic, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierIslamic = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierIslamicCivil') -external NSCalendarIdentifier _NSCalendarIdentifierIslamicCivil; - -DartNSCalendarIdentifier get NSCalendarIdentifierIslamicCivil => - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicCivil, - retain: true, - release: true, - ); - -set NSCalendarIdentifierIslamicCivil(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicCivil, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierIslamicCivil = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierIslamicTabular') -external NSCalendarIdentifier _NSCalendarIdentifierIslamicTabular; - -DartNSCalendarIdentifier get NSCalendarIdentifierIslamicTabular => - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicTabular, - retain: true, - release: true, - ); - -set NSCalendarIdentifierIslamicTabular(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicTabular, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierIslamicTabular = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSCalendarIdentifierIslamicUmmAlQura', -) -external NSCalendarIdentifier _NSCalendarIdentifierIslamicUmmAlQura; - -DartNSCalendarIdentifier get NSCalendarIdentifierIslamicUmmAlQura => - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicUmmAlQura, - retain: true, - release: true, - ); - -set NSCalendarIdentifierIslamicUmmAlQura(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierIslamicUmmAlQura, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierIslamicUmmAlQura = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierJapanese') -external NSCalendarIdentifier _NSCalendarIdentifierJapanese; - -DartNSCalendarIdentifier get NSCalendarIdentifierJapanese => - objc.NSString.fromPointer( - _NSCalendarIdentifierJapanese, - retain: true, - release: true, - ); - -set NSCalendarIdentifierJapanese(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierJapanese, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierJapanese = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierKannada') -external NSCalendarIdentifier _NSCalendarIdentifierKannada; - -DartNSCalendarIdentifier get NSCalendarIdentifierKannada => - objc.NSString.fromPointer( - _NSCalendarIdentifierKannada, - retain: true, - release: true, - ); - -set NSCalendarIdentifierKannada(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierKannada, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierKannada = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierMalayalam') -external NSCalendarIdentifier _NSCalendarIdentifierMalayalam; - -DartNSCalendarIdentifier get NSCalendarIdentifierMalayalam => - objc.NSString.fromPointer( - _NSCalendarIdentifierMalayalam, - retain: true, - release: true, - ); - -set NSCalendarIdentifierMalayalam(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierMalayalam, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierMalayalam = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierMarathi') -external NSCalendarIdentifier _NSCalendarIdentifierMarathi; - -DartNSCalendarIdentifier get NSCalendarIdentifierMarathi => - objc.NSString.fromPointer( - _NSCalendarIdentifierMarathi, - retain: true, - release: true, - ); - -set NSCalendarIdentifierMarathi(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierMarathi, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierMarathi = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierOdia') -external NSCalendarIdentifier _NSCalendarIdentifierOdia; - -DartNSCalendarIdentifier get NSCalendarIdentifierOdia => - objc.NSString.fromPointer( - _NSCalendarIdentifierOdia, - retain: true, - release: true, - ); - -set NSCalendarIdentifierOdia(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierOdia, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierOdia = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierPersian') -external NSCalendarIdentifier _NSCalendarIdentifierPersian; - -DartNSCalendarIdentifier get NSCalendarIdentifierPersian => - objc.NSString.fromPointer( - _NSCalendarIdentifierPersian, - retain: true, - release: true, - ); - -set NSCalendarIdentifierPersian(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierPersian, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierPersian = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierRepublicOfChina') -external NSCalendarIdentifier _NSCalendarIdentifierRepublicOfChina; - -DartNSCalendarIdentifier get NSCalendarIdentifierRepublicOfChina => - objc.NSString.fromPointer( - _NSCalendarIdentifierRepublicOfChina, - retain: true, - release: true, - ); - -set NSCalendarIdentifierRepublicOfChina(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierRepublicOfChina, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierRepublicOfChina = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierTamil') -external NSCalendarIdentifier _NSCalendarIdentifierTamil; - -DartNSCalendarIdentifier get NSCalendarIdentifierTamil => - objc.NSString.fromPointer( - _NSCalendarIdentifierTamil, - retain: true, - release: true, - ); - -set NSCalendarIdentifierTamil(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierTamil, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierTamil = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierTelugu') -external NSCalendarIdentifier _NSCalendarIdentifierTelugu; - -DartNSCalendarIdentifier get NSCalendarIdentifierTelugu => - objc.NSString.fromPointer( - _NSCalendarIdentifierTelugu, - retain: true, - release: true, - ); - -set NSCalendarIdentifierTelugu(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierTelugu, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierTelugu = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierVietnamese') -external NSCalendarIdentifier _NSCalendarIdentifierVietnamese; - -DartNSCalendarIdentifier get NSCalendarIdentifierVietnamese => - objc.NSString.fromPointer( - _NSCalendarIdentifierVietnamese, - retain: true, - release: true, - ); - -set NSCalendarIdentifierVietnamese(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierVietnamese, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierVietnamese = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCalendarIdentifierVikram') -external NSCalendarIdentifier _NSCalendarIdentifierVikram; - -DartNSCalendarIdentifier get NSCalendarIdentifierVikram => - objc.NSString.fromPointer( - _NSCalendarIdentifierVikram, - retain: true, - release: true, - ); - -set NSCalendarIdentifierVikram(DartNSCalendarIdentifier value) { - objc.NSString.fromPointer( - _NSCalendarIdentifierVikram, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCalendarIdentifierVikram = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCharacterConversionException') -external NSExceptionName _NSCharacterConversionException; - -DartNSExceptionName get NSCharacterConversionException => - objc.NSString.fromPointer( - _NSCharacterConversionException, - retain: true, - release: true, - ); - -set NSCharacterConversionException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSCharacterConversionException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCharacterConversionException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSChineseCalendar') -external ffi.Pointer _NSChineseCalendar; - -objc.NSString get NSChineseCalendar => - objc.NSString.fromPointer(_NSChineseCalendar, retain: true, release: true); - -set NSChineseCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSChineseCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSChineseCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSClassDescriptionNeededForClassNotification', -) -external NSNotificationName _NSClassDescriptionNeededForClassNotification; - -DartNSNotificationName get NSClassDescriptionNeededForClassNotification => - objc.NSString.fromPointer( - _NSClassDescriptionNeededForClassNotification, - retain: true, - release: true, - ); - -set NSClassDescriptionNeededForClassNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSClassDescriptionNeededForClassNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSClassDescriptionNeededForClassNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSClassFromString') -external ffi.Pointer _NSClassFromString( - ffi.Pointer aClassName, -); - -objc.ObjCObject? NSClassFromString(objc.NSString aClassName) { - final _$$ref = aClassName.ref; - return _NSClassFromString(_$$ref.pointer).address == 0 - ? null - : objc.ObjCObject( - _NSClassFromString(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSCocoaErrorDomain') -external NSErrorDomain _NSCocoaErrorDomain; - -DartNSErrorDomain get NSCocoaErrorDomain => - objc.NSString.fromPointer(_NSCocoaErrorDomain, retain: true, release: true); - -set NSCocoaErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSCocoaErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCocoaErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSCompareHashTables') -external bool _NSCompareHashTables( - ffi.Pointer table1, - ffi.Pointer table2, -); - -bool NSCompareHashTables(NSHashTable table1, NSHashTable table2) { - final _$$ref = table1.ref; - final _$$ref$1 = table2.ref; - return _NSCompareHashTables(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSCompareMapTables') -external bool _NSCompareMapTables( - ffi.Pointer table1, - ffi.Pointer table2, -); - -bool NSCompareMapTables(NSMapTable table1, NSMapTable table2) { - final _$$ref = table1.ref; - final _$$ref$1 = table2.ref; - return _NSCompareMapTables(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native>( - symbol: 'NSConnectionDidDieNotification', -) -external ffi.Pointer _NSConnectionDidDieNotification; - -objc.NSString get NSConnectionDidDieNotification => objc.NSString.fromPointer( - _NSConnectionDidDieNotification, - retain: true, - release: true, -); - -set NSConnectionDidDieNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSConnectionDidDieNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSConnectionDidDieNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSConnectionDidInitializeNotification', -) -external ffi.Pointer -_NSConnectionDidInitializeNotification; - -objc.NSString get NSConnectionDidInitializeNotification => - objc.NSString.fromPointer( - _NSConnectionDidInitializeNotification, - retain: true, - release: true, - ); - -set NSConnectionDidInitializeNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSConnectionDidInitializeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSConnectionDidInitializeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSConnectionReplyMode') -external ffi.Pointer _NSConnectionReplyMode; - -objc.NSString get NSConnectionReplyMode => objc.NSString.fromPointer( - _NSConnectionReplyMode, - retain: true, - release: true, -); - -set NSConnectionReplyMode(objc.NSString value) { - objc.NSString.fromPointer( - _NSConnectionReplyMode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSConnectionReplyMode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external bool NSContainsRect(NSRect aRect, NSRect bRect); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSCopyHashTableWithZone') -external ffi.Pointer _NSCopyHashTableWithZone( - ffi.Pointer table, - ffi.Pointer zone, -); - -NSHashTable NSCopyHashTableWithZone( - NSHashTable table, - ffi.Pointer zone, -) { - final _$$ref = table.ref; - return NSHashTable.fromPointer( - _NSCopyHashTableWithZone(_$$ref.pointer, zone), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSCopyMapTableWithZone') -external ffi.Pointer _NSCopyMapTableWithZone( - ffi.Pointer table, - ffi.Pointer zone, -); - -NSMapTable NSCopyMapTableWithZone(NSMapTable table, ffi.Pointer zone) { - final _$$ref = table.ref; - return NSMapTable.fromPointer( - _NSCopyMapTableWithZone(_$$ref.pointer, zone), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, NSUInteger) ->() -external void NSCopyMemoryPages( - ffi.Pointer source, - ffi.Pointer dest, - int bytes, -); - -@Deprecated('Not supported') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) ->(symbol: 'NSCopyObject') -external ffi.Pointer _NSCopyObject( - ffi.Pointer object, - int extraBytes, - ffi.Pointer zone, -); - -objc.ObjCObject NSCopyObject( - objc.ObjCObject object, - DartNSUInteger extraBytes, - ffi.Pointer zone, -) { - final _$$ref = object.ref; - return objc.ObjCObject( - _NSCopyObject(_$$ref.pointer, extraBytes, zone), - retain: true, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'NSCountHashTable', -) -external int _NSCountHashTable(ffi.Pointer table); - -DartNSUInteger NSCountHashTable(NSHashTable table) { - final _$$ref = table.ref; - return _NSCountHashTable(_$$ref.pointer); -} - -@ffi.Native(symbol: 'NSCountKeyValueOperator') -external NSKeyValueOperator _NSCountKeyValueOperator; - -DartNSKeyValueOperator get NSCountKeyValueOperator => objc.NSString.fromPointer( - _NSCountKeyValueOperator, - retain: true, - release: true, -); - -set NSCountKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSCountKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCountKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSCountMapTable', -) -external int _NSCountMapTable(ffi.Pointer table); - -DartNSUInteger NSCountMapTable(NSMapTable table) { - final _$$ref = table.ref; - return _NSCountMapTable(_$$ref.pointer); -} - -@ffi.Native< - ffi.Pointer Function(NSHashTableCallBacks, NSUInteger) ->(symbol: 'NSCreateHashTable') -external ffi.Pointer _NSCreateHashTable( - NSHashTableCallBacks callBacks, - int capacity, -); - -NSHashTable NSCreateHashTable( - NSHashTableCallBacks callBacks, - DartNSUInteger capacity, -) { - return NSHashTable.fromPointer( - _NSCreateHashTable(callBacks, capacity), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - NSHashTableCallBacks, - NSUInteger, - ffi.Pointer, - ) ->(symbol: 'NSCreateHashTableWithZone') -external ffi.Pointer _NSCreateHashTableWithZone( - NSHashTableCallBacks callBacks, - int capacity, - ffi.Pointer zone, -); - -NSHashTable NSCreateHashTableWithZone( - NSHashTableCallBacks callBacks, - DartNSUInteger capacity, - ffi.Pointer zone, -) { - return NSHashTable.fromPointer( - _NSCreateHashTableWithZone(callBacks, capacity, zone), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - NSMapTableKeyCallBacks, - NSMapTableValueCallBacks, - NSUInteger, - ) ->(symbol: 'NSCreateMapTable') -external ffi.Pointer _NSCreateMapTable( - NSMapTableKeyCallBacks keyCallBacks, - NSMapTableValueCallBacks valueCallBacks, - int capacity, -); - -NSMapTable NSCreateMapTable( - NSMapTableKeyCallBacks keyCallBacks, - NSMapTableValueCallBacks valueCallBacks, - DartNSUInteger capacity, -) { - return NSMapTable.fromPointer( - _NSCreateMapTable(keyCallBacks, valueCallBacks, capacity), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - NSMapTableKeyCallBacks, - NSMapTableValueCallBacks, - NSUInteger, - ffi.Pointer, - ) ->(symbol: 'NSCreateMapTableWithZone') -external ffi.Pointer _NSCreateMapTableWithZone( - NSMapTableKeyCallBacks keyCallBacks, - NSMapTableValueCallBacks valueCallBacks, - int capacity, - ffi.Pointer zone, -); - -NSMapTable NSCreateMapTableWithZone( - NSMapTableKeyCallBacks keyCallBacks, - NSMapTableValueCallBacks valueCallBacks, - DartNSUInteger capacity, - ffi.Pointer zone, -) { - return NSMapTable.fromPointer( - _NSCreateMapTableWithZone(keyCallBacks, valueCallBacks, capacity, zone), - retain: false, - release: true, - ); -} - -@ffi.Native Function(NSUInteger, NSUInteger, ffi.Bool)>() -external ffi.Pointer NSCreateZone( - int startSize, - int granularity, - bool canFree, -); - -@ffi.Native>(symbol: 'NSCurrencySymbol') -external ffi.Pointer _NSCurrencySymbol; - -objc.NSString get NSCurrencySymbol => - objc.NSString.fromPointer(_NSCurrencySymbol, retain: true, release: true); - -set NSCurrencySymbol(objc.NSString value) { - objc.NSString.fromPointer( - _NSCurrencySymbol, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCurrencySymbol = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSCurrentLocaleDidChangeNotification') -external NSNotificationName _NSCurrentLocaleDidChangeNotification; - -DartNSNotificationName get NSCurrentLocaleDidChangeNotification => - objc.NSString.fromPointer( - _NSCurrentLocaleDidChangeNotification, - retain: true, - release: true, - ); - -set NSCurrentLocaleDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSCurrentLocaleDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSCurrentLocaleDidChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSDateFormatString') -external ffi.Pointer _NSDateFormatString; - -objc.NSString get NSDateFormatString => - objc.NSString.fromPointer(_NSDateFormatString, retain: true, release: true); - -set NSDateFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSDateFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDateFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSDateTimeOrdering') -external ffi.Pointer _NSDateTimeOrdering; - -objc.NSString get NSDateTimeOrdering => - objc.NSString.fromPointer(_NSDateTimeOrdering, retain: true, release: true); - -set NSDateTimeOrdering(objc.NSString value) { - objc.NSString.fromPointer( - _NSDateTimeOrdering, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDateTimeOrdering = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native, NSUInteger)>() -external void NSDeallocateMemoryPages(ffi.Pointer ptr, int bytes); - -@ffi.Native)>( - symbol: 'NSDeallocateObject', -) -external void _NSDeallocateObject(ffi.Pointer object); - -void NSDeallocateObject(objc.ObjCObject object) { - final _$$ref = object.ref; - return _NSDeallocateObject(_$$ref.pointer); -} - -@ffi.Native(symbol: 'NSDebugDescriptionErrorKey') -external NSErrorUserInfoKey _NSDebugDescriptionErrorKey; - -DartNSErrorUserInfoKey get NSDebugDescriptionErrorKey => - objc.NSString.fromPointer( - _NSDebugDescriptionErrorKey, - retain: true, - release: true, - ); - -set NSDebugDescriptionErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSDebugDescriptionErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDebugDescriptionErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->(symbol: 'NSDecimalAdd') -external int _NSDecimalAdd( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - int roundingMode, -); - -NSCalculationError NSDecimalAdd( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalAdd(result, leftOperand, rightOperand, roundingMode.value), - ); -} - -@ffi.Native)>() -external void NSDecimalCompact(ffi.Pointer number); - -@ffi.Native, ffi.Pointer)>( - symbol: 'NSDecimalCompare', -) -external int _NSDecimalCompare( - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, -); - -objc.NSComparisonResult NSDecimalCompare( - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, -) { - return objc.NSComparisonResult.fromValue( - _NSDecimalCompare(leftOperand, rightOperand), - ); -} - -@ffi.Native, ffi.Pointer)>() -external void NSDecimalCopy( - ffi.Pointer destination, - ffi.Pointer source, -); - -@ffi.Native>(symbol: 'NSDecimalDigits') -external ffi.Pointer _NSDecimalDigits; - -objc.NSString get NSDecimalDigits => - objc.NSString.fromPointer(_NSDecimalDigits, retain: true, release: true); - -set NSDecimalDigits(objc.NSString value) { - objc.NSString.fromPointer( - _NSDecimalDigits, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalDigits = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->(symbol: 'NSDecimalDivide') -external int _NSDecimalDivide( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - int roundingMode, -); - -NSCalculationError NSDecimalDivide( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalDivide(result, leftOperand, rightOperand, roundingMode.value), - ); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->(symbol: 'NSDecimalMultiply') -external int _NSDecimalMultiply( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - int roundingMode, -); - -NSCalculationError NSDecimalMultiply( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalMultiply(result, leftOperand, rightOperand, roundingMode.value), - ); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Short, - NSUInteger, - ) ->(symbol: 'NSDecimalMultiplyByPowerOf10') -external int _NSDecimalMultiplyByPowerOf10( - ffi.Pointer result, - ffi.Pointer number, - int power, - int roundingMode, -); - -NSCalculationError NSDecimalMultiplyByPowerOf10( - ffi.Pointer result, - ffi.Pointer number, - int power, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalMultiplyByPowerOf10(result, number, power, roundingMode.value), - ); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->(symbol: 'NSDecimalNormalize') -external int _NSDecimalNormalize( - ffi.Pointer number1, - ffi.Pointer number2, - int roundingMode, -); - -NSCalculationError NSDecimalNormalize( - ffi.Pointer number1, - ffi.Pointer number2, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalNormalize(number1, number2, roundingMode.value), - ); -} - -@ffi.Native(symbol: 'NSDecimalNumberDivideByZeroException') -external NSExceptionName _NSDecimalNumberDivideByZeroException; - -DartNSExceptionName get NSDecimalNumberDivideByZeroException => - objc.NSString.fromPointer( - _NSDecimalNumberDivideByZeroException, - retain: true, - release: true, - ); - -set NSDecimalNumberDivideByZeroException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSDecimalNumberDivideByZeroException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalNumberDivideByZeroException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDecimalNumberExactnessException') -external NSExceptionName _NSDecimalNumberExactnessException; - -DartNSExceptionName get NSDecimalNumberExactnessException => - objc.NSString.fromPointer( - _NSDecimalNumberExactnessException, - retain: true, - release: true, - ); - -set NSDecimalNumberExactnessException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSDecimalNumberExactnessException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalNumberExactnessException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDecimalNumberOverflowException') -external NSExceptionName _NSDecimalNumberOverflowException; - -DartNSExceptionName get NSDecimalNumberOverflowException => - objc.NSString.fromPointer( - _NSDecimalNumberOverflowException, - retain: true, - release: true, - ); - -set NSDecimalNumberOverflowException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSDecimalNumberOverflowException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalNumberOverflowException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDecimalNumberUnderflowException') -external NSExceptionName _NSDecimalNumberUnderflowException; - -DartNSExceptionName get NSDecimalNumberUnderflowException => - objc.NSString.fromPointer( - _NSDecimalNumberUnderflowException, - retain: true, - release: true, - ); - -set NSDecimalNumberUnderflowException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSDecimalNumberUnderflowException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalNumberUnderflowException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSUInteger, - ) ->(symbol: 'NSDecimalPower') -external int _NSDecimalPower( - ffi.Pointer result, - ffi.Pointer number, - int power, - int roundingMode, -); - -NSCalculationError NSDecimalPower( - ffi.Pointer result, - ffi.Pointer number, - DartNSUInteger power, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalPower(result, number, power, roundingMode.value), - ); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - NSUInteger, - ) ->(symbol: 'NSDecimalRound') -external void _NSDecimalRound( - ffi.Pointer result, - ffi.Pointer number, - int scale, - int roundingMode, -); - -void NSDecimalRound( - ffi.Pointer result, - ffi.Pointer number, - DartNSInteger scale, - NSRoundingMode roundingMode, -) { - return _NSDecimalRound(result, number, scale, roundingMode.value); -} - -@ffi.Native>(symbol: 'NSDecimalSeparator') -external ffi.Pointer _NSDecimalSeparator; - -objc.NSString get NSDecimalSeparator => - objc.NSString.fromPointer(_NSDecimalSeparator, retain: true, release: true); - -set NSDecimalSeparator(objc.NSString value) { - objc.NSString.fromPointer( - _NSDecimalSeparator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDecimalSeparator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSDecimalString') -external ffi.Pointer _NSDecimalString( - ffi.Pointer dcm, - ffi.Pointer locale, -); - -objc.NSString NSDecimalString( - ffi.Pointer dcm, - objc.ObjCObject? locale, -) { - final _$$ref = locale?.ref; - return objc.NSString.fromPointer( - _NSDecimalString(dcm, _$$ref?.pointer ?? ffi.nullptr), - retain: true, - release: true, - ); -} - -@ffi.Native< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->(symbol: 'NSDecimalSubtract') -external int _NSDecimalSubtract( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - int roundingMode, -); - -NSCalculationError NSDecimalSubtract( - ffi.Pointer result, - ffi.Pointer leftOperand, - ffi.Pointer rightOperand, - NSRoundingMode roundingMode, -) { - return NSCalculationError.fromValue( - _NSDecimalSubtract(result, leftOperand, rightOperand, roundingMode.value), - ); -} - -@ffi.Native)>( - symbol: 'NSDecrementExtraRefCountWasZero', -) -external bool _NSDecrementExtraRefCountWasZero( - ffi.Pointer object, -); - -bool NSDecrementExtraRefCountWasZero(objc.ObjCObject object) { - final _$$ref = object.ref; - return _NSDecrementExtraRefCountWasZero(_$$ref.pointer); -} - -@ffi.Native Function()>() -external ffi.Pointer NSDefaultMallocZone(); - -@ffi.Native(symbol: 'NSDefaultRunLoopMode') -external NSRunLoopMode _NSDefaultRunLoopMode; - -DartNSRunLoopMode get NSDefaultRunLoopMode => objc.NSString.fromPointer( - _NSDefaultRunLoopMode, - retain: true, - release: true, -); - -set NSDefaultRunLoopMode(DartNSRunLoopMode value) { - objc.NSString.fromPointer( - _NSDefaultRunLoopMode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDefaultRunLoopMode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDestinationInvalidException') -external NSExceptionName _NSDestinationInvalidException; - -DartNSExceptionName get NSDestinationInvalidException => - objc.NSString.fromPointer( - _NSDestinationInvalidException, - retain: true, - release: true, - ); - -set NSDestinationInvalidException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSDestinationInvalidException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDestinationInvalidException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDidBecomeSingleThreadedNotification') -external NSNotificationName _NSDidBecomeSingleThreadedNotification; - -DartNSNotificationName get NSDidBecomeSingleThreadedNotification => - objc.NSString.fromPointer( - _NSDidBecomeSingleThreadedNotification, - retain: true, - release: true, - ); - -set NSDidBecomeSingleThreadedNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSDidBecomeSingleThreadedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDidBecomeSingleThreadedNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSDistinctUnionOfArraysKeyValueOperator', -) -external NSKeyValueOperator _NSDistinctUnionOfArraysKeyValueOperator; - -DartNSKeyValueOperator get NSDistinctUnionOfArraysKeyValueOperator => - objc.NSString.fromPointer( - _NSDistinctUnionOfArraysKeyValueOperator, - retain: true, - release: true, - ); - -set NSDistinctUnionOfArraysKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSDistinctUnionOfArraysKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDistinctUnionOfArraysKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSDistinctUnionOfObjectsKeyValueOperator', -) -external NSKeyValueOperator _NSDistinctUnionOfObjectsKeyValueOperator; - -DartNSKeyValueOperator get NSDistinctUnionOfObjectsKeyValueOperator => - objc.NSString.fromPointer( - _NSDistinctUnionOfObjectsKeyValueOperator, - retain: true, - release: true, - ); - -set NSDistinctUnionOfObjectsKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSDistinctUnionOfObjectsKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDistinctUnionOfObjectsKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSDistinctUnionOfSetsKeyValueOperator') -external NSKeyValueOperator _NSDistinctUnionOfSetsKeyValueOperator; - -DartNSKeyValueOperator get NSDistinctUnionOfSetsKeyValueOperator => - objc.NSString.fromPointer( - _NSDistinctUnionOfSetsKeyValueOperator, - retain: true, - release: true, - ); - -set NSDistinctUnionOfSetsKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSDistinctUnionOfSetsKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSDistinctUnionOfSetsKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Void Function( - NSRect, - ffi.Pointer, - ffi.Pointer, - CGFloat, - NSUInteger, - ) ->(symbol: 'NSDivideRect') -external void _NSDivideRect( - NSRect inRect, - ffi.Pointer slice, - ffi.Pointer rem, - double amount, - int edge, -); - -void NSDivideRect( - NSRect inRect, - ffi.Pointer slice, - ffi.Pointer rem, - DartCGFloat amount, - NSRectEdge edge, -) { - return _NSDivideRect(inRect, slice, rem, amount, edge.value); -} - -@ffi.Native>( - symbol: 'NSEarlierTimeDesignations', -) -external ffi.Pointer _NSEarlierTimeDesignations; - -objc.NSString get NSEarlierTimeDesignations => objc.NSString.fromPointer( - _NSEarlierTimeDesignations, - retain: true, - release: true, -); - -set NSEarlierTimeDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSEarlierTimeDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSEarlierTimeDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external bool NSEdgeInsetsEqual( - objc.NSEdgeInsets aInsets, - objc.NSEdgeInsets bInsets, -); - -@ffi.Native() -external final objc.NSEdgeInsets NSEdgeInsetsZero; - -@ffi.Native)>() -external void NSEndHashTableEnumeration( - ffi.Pointer enumerator, -); - -@ffi.Native)>() -external void NSEndMapTableEnumeration(ffi.Pointer enumerator); - -@ffi.Native)>( - symbol: 'NSEnumerateHashTable', -) -external NSHashEnumerator _NSEnumerateHashTable( - ffi.Pointer table, -); - -NSHashEnumerator NSEnumerateHashTable(NSHashTable table) { - final _$$ref = table.ref; - return _NSEnumerateHashTable(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'NSEnumerateMapTable', -) -external NSMapEnumerator _NSEnumerateMapTable( - ffi.Pointer table, -); - -NSMapEnumerator NSEnumerateMapTable(NSMapTable table) { - final _$$ref = table.ref; - return _NSEnumerateMapTable(_$$ref.pointer); -} - -@ffi.Native() -external bool NSEqualPoints(NSPoint aPoint, NSPoint bPoint); - -@ffi.Native() -external bool NSEqualRects(NSRect aRect, NSRect bRect); - -@ffi.Native() -external bool NSEqualSizes(NSSize aSize, NSSize bSize); - -@ffi.Native>( - symbol: 'NSErrorFailingURLStringKey', -) -external ffi.Pointer _NSErrorFailingURLStringKey; - -objc.NSString get NSErrorFailingURLStringKey => objc.NSString.fromPointer( - _NSErrorFailingURLStringKey, - retain: true, - release: true, -); - -set NSErrorFailingURLStringKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSErrorFailingURLStringKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSErrorFailingURLStringKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionHostDidBecomeActiveNotification', -) -external ffi.Pointer -_NSExtensionHostDidBecomeActiveNotification; - -objc.NSString get NSExtensionHostDidBecomeActiveNotification => - objc.NSString.fromPointer( - _NSExtensionHostDidBecomeActiveNotification, - retain: true, - release: true, - ); - -set NSExtensionHostDidBecomeActiveNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionHostDidBecomeActiveNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionHostDidBecomeActiveNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionHostDidEnterBackgroundNotification', -) -external ffi.Pointer -_NSExtensionHostDidEnterBackgroundNotification; - -objc.NSString get NSExtensionHostDidEnterBackgroundNotification => - objc.NSString.fromPointer( - _NSExtensionHostDidEnterBackgroundNotification, - retain: true, - release: true, - ); - -set NSExtensionHostDidEnterBackgroundNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionHostDidEnterBackgroundNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionHostDidEnterBackgroundNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionHostWillEnterForegroundNotification', -) -external ffi.Pointer -_NSExtensionHostWillEnterForegroundNotification; - -objc.NSString get NSExtensionHostWillEnterForegroundNotification => - objc.NSString.fromPointer( - _NSExtensionHostWillEnterForegroundNotification, - retain: true, - release: true, - ); - -set NSExtensionHostWillEnterForegroundNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionHostWillEnterForegroundNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionHostWillEnterForegroundNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionHostWillResignActiveNotification', -) -external ffi.Pointer -_NSExtensionHostWillResignActiveNotification; - -objc.NSString get NSExtensionHostWillResignActiveNotification => - objc.NSString.fromPointer( - _NSExtensionHostWillResignActiveNotification, - retain: true, - release: true, - ); - -set NSExtensionHostWillResignActiveNotification(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionHostWillResignActiveNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionHostWillResignActiveNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionItemAttachmentsKey', -) -external ffi.Pointer _NSExtensionItemAttachmentsKey; - -objc.NSString get NSExtensionItemAttachmentsKey => objc.NSString.fromPointer( - _NSExtensionItemAttachmentsKey, - retain: true, - release: true, -); - -set NSExtensionItemAttachmentsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionItemAttachmentsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionItemAttachmentsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionItemAttributedContentTextKey', -) -external ffi.Pointer -_NSExtensionItemAttributedContentTextKey; - -objc.NSString get NSExtensionItemAttributedContentTextKey => - objc.NSString.fromPointer( - _NSExtensionItemAttributedContentTextKey, - retain: true, - release: true, - ); - -set NSExtensionItemAttributedContentTextKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionItemAttributedContentTextKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionItemAttributedContentTextKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionItemAttributedTitleKey', -) -external ffi.Pointer _NSExtensionItemAttributedTitleKey; - -objc.NSString get NSExtensionItemAttributedTitleKey => - objc.NSString.fromPointer( - _NSExtensionItemAttributedTitleKey, - retain: true, - release: true, - ); - -set NSExtensionItemAttributedTitleKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionItemAttributedTitleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionItemAttributedTitleKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionItemsAndErrorsKey', -) -external ffi.Pointer _NSExtensionItemsAndErrorsKey; - -objc.NSString get NSExtensionItemsAndErrorsKey => objc.NSString.fromPointer( - _NSExtensionItemsAndErrorsKey, - retain: true, - release: true, -); - -set NSExtensionItemsAndErrorsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionItemsAndErrorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionItemsAndErrorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionJavaScriptFinalizeArgumentKey', -) -external ffi.Pointer -_NSExtensionJavaScriptFinalizeArgumentKey; - -objc.NSString get NSExtensionJavaScriptFinalizeArgumentKey => - objc.NSString.fromPointer( - _NSExtensionJavaScriptFinalizeArgumentKey, - retain: true, - release: true, - ); - -set NSExtensionJavaScriptFinalizeArgumentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionJavaScriptFinalizeArgumentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionJavaScriptFinalizeArgumentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSExtensionJavaScriptPreprocessingResultsKey', -) -external ffi.Pointer -_NSExtensionJavaScriptPreprocessingResultsKey; - -objc.NSString get NSExtensionJavaScriptPreprocessingResultsKey => - objc.NSString.fromPointer( - _NSExtensionJavaScriptPreprocessingResultsKey, - retain: true, - release: true, - ); - -set NSExtensionJavaScriptPreprocessingResultsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSExtensionJavaScriptPreprocessingResultsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSExtensionJavaScriptPreprocessingResultsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSExtraRefCount', -) -external int _NSExtraRefCount(ffi.Pointer object); - -DartNSUInteger NSExtraRefCount(objc.ObjCObject object) { - final _$$ref = object.ref; - return _NSExtraRefCount(_$$ref.pointer); -} - -@ffi.Native>( - symbol: 'NSFTPPropertyActiveTransferModeKey', -) -external final ffi.Pointer -_NSFTPPropertyActiveTransferModeKey; - -objc.NSString get NSFTPPropertyActiveTransferModeKey => - objc.NSString.fromPointer( - _NSFTPPropertyActiveTransferModeKey, - retain: true, - release: true, - ); - -@ffi.Native>(symbol: 'NSFTPPropertyFTPProxy') -external final ffi.Pointer _NSFTPPropertyFTPProxy; - -objc.NSString get NSFTPPropertyFTPProxy => objc.NSString.fromPointer( - _NSFTPPropertyFTPProxy, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSFTPPropertyFileOffsetKey', -) -external final ffi.Pointer _NSFTPPropertyFileOffsetKey; - -objc.NSString get NSFTPPropertyFileOffsetKey => objc.NSString.fromPointer( - _NSFTPPropertyFileOffsetKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSFTPPropertyUserLoginKey', -) -external final ffi.Pointer _NSFTPPropertyUserLoginKey; - -objc.NSString get NSFTPPropertyUserLoginKey => objc.NSString.fromPointer( - _NSFTPPropertyUserLoginKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSFTPPropertyUserPasswordKey', -) -external final ffi.Pointer _NSFTPPropertyUserPasswordKey; - -objc.NSString get NSFTPPropertyUserPasswordKey => objc.NSString.fromPointer( - _NSFTPPropertyUserPasswordKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSFailedAuthenticationException', -) -external ffi.Pointer _NSFailedAuthenticationException; - -objc.NSString get NSFailedAuthenticationException => objc.NSString.fromPointer( - _NSFailedAuthenticationException, - retain: true, - release: true, -); - -set NSFailedAuthenticationException(objc.NSString value) { - objc.NSString.fromPointer( - _NSFailedAuthenticationException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFailedAuthenticationException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileAppendOnly') -external NSFileAttributeKey _NSFileAppendOnly; - -DartNSFileAttributeKey get NSFileAppendOnly => - objc.NSString.fromPointer(_NSFileAppendOnly, retain: true, release: true); - -set NSFileAppendOnly(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileAppendOnly, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileAppendOnly = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileBusy') -external NSFileAttributeKey _NSFileBusy; - -DartNSFileAttributeKey get NSFileBusy => - objc.NSString.fromPointer(_NSFileBusy, retain: true, release: true); - -set NSFileBusy(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileBusy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileBusy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileCreationDate') -external NSFileAttributeKey _NSFileCreationDate; - -DartNSFileAttributeKey get NSFileCreationDate => - objc.NSString.fromPointer(_NSFileCreationDate, retain: true, release: true); - -set NSFileCreationDate(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileCreationDate, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileCreationDate = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileDeviceIdentifier') -external NSFileAttributeKey _NSFileDeviceIdentifier; - -DartNSFileAttributeKey get NSFileDeviceIdentifier => objc.NSString.fromPointer( - _NSFileDeviceIdentifier, - retain: true, - release: true, -); - -set NSFileDeviceIdentifier(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileDeviceIdentifier, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileDeviceIdentifier = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileExtensionHidden') -external NSFileAttributeKey _NSFileExtensionHidden; - -DartNSFileAttributeKey get NSFileExtensionHidden => objc.NSString.fromPointer( - _NSFileExtensionHidden, - retain: true, - release: true, -); - -set NSFileExtensionHidden(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileExtensionHidden, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileExtensionHidden = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileGroupOwnerAccountID') -external NSFileAttributeKey _NSFileGroupOwnerAccountID; - -DartNSFileAttributeKey get NSFileGroupOwnerAccountID => - objc.NSString.fromPointer( - _NSFileGroupOwnerAccountID, - retain: true, - release: true, - ); - -set NSFileGroupOwnerAccountID(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileGroupOwnerAccountID, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileGroupOwnerAccountID = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileGroupOwnerAccountName') -external NSFileAttributeKey _NSFileGroupOwnerAccountName; - -DartNSFileAttributeKey get NSFileGroupOwnerAccountName => - objc.NSString.fromPointer( - _NSFileGroupOwnerAccountName, - retain: true, - release: true, - ); - -set NSFileGroupOwnerAccountName(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileGroupOwnerAccountName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileGroupOwnerAccountName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileHFSCreatorCode') -external NSFileAttributeKey _NSFileHFSCreatorCode; - -DartNSFileAttributeKey get NSFileHFSCreatorCode => objc.NSString.fromPointer( - _NSFileHFSCreatorCode, - retain: true, - release: true, -); - -set NSFileHFSCreatorCode(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileHFSCreatorCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHFSCreatorCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileHFSTypeCode') -external NSFileAttributeKey _NSFileHFSTypeCode; - -DartNSFileAttributeKey get NSFileHFSTypeCode => - objc.NSString.fromPointer(_NSFileHFSTypeCode, retain: true, release: true); - -set NSFileHFSTypeCode(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileHFSTypeCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHFSTypeCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSFileHandleConnectionAcceptedNotification', -) -external NSNotificationName _NSFileHandleConnectionAcceptedNotification; - -DartNSNotificationName get NSFileHandleConnectionAcceptedNotification => - objc.NSString.fromPointer( - _NSFileHandleConnectionAcceptedNotification, - retain: true, - release: true, - ); - -set NSFileHandleConnectionAcceptedNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSFileHandleConnectionAcceptedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleConnectionAcceptedNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileHandleDataAvailableNotification') -external NSNotificationName _NSFileHandleDataAvailableNotification; - -DartNSNotificationName get NSFileHandleDataAvailableNotification => - objc.NSString.fromPointer( - _NSFileHandleDataAvailableNotification, - retain: true, - release: true, - ); - -set NSFileHandleDataAvailableNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSFileHandleDataAvailableNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleDataAvailableNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSFileHandleNotificationDataItem', -) -external ffi.Pointer _NSFileHandleNotificationDataItem; - -objc.NSString get NSFileHandleNotificationDataItem => objc.NSString.fromPointer( - _NSFileHandleNotificationDataItem, - retain: true, - release: true, -); - -set NSFileHandleNotificationDataItem(objc.NSString value) { - objc.NSString.fromPointer( - _NSFileHandleNotificationDataItem, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleNotificationDataItem = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSFileHandleNotificationFileHandleItem', -) -external ffi.Pointer -_NSFileHandleNotificationFileHandleItem; - -objc.NSString get NSFileHandleNotificationFileHandleItem => - objc.NSString.fromPointer( - _NSFileHandleNotificationFileHandleItem, - retain: true, - release: true, - ); - -set NSFileHandleNotificationFileHandleItem(objc.NSString value) { - objc.NSString.fromPointer( - _NSFileHandleNotificationFileHandleItem, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleNotificationFileHandleItem = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSFileHandleNotificationMonitorModes', -) -external ffi.Pointer _NSFileHandleNotificationMonitorModes; - -objc.NSString get NSFileHandleNotificationMonitorModes => - objc.NSString.fromPointer( - _NSFileHandleNotificationMonitorModes, - retain: true, - release: true, - ); - -set NSFileHandleNotificationMonitorModes(objc.NSString value) { - objc.NSString.fromPointer( - _NSFileHandleNotificationMonitorModes, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleNotificationMonitorModes = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileHandleOperationException') -external NSExceptionName _NSFileHandleOperationException; - -DartNSExceptionName get NSFileHandleOperationException => - objc.NSString.fromPointer( - _NSFileHandleOperationException, - retain: true, - release: true, - ); - -set NSFileHandleOperationException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSFileHandleOperationException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleOperationException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSFileHandleReadCompletionNotification', -) -external NSNotificationName _NSFileHandleReadCompletionNotification; - -DartNSNotificationName get NSFileHandleReadCompletionNotification => - objc.NSString.fromPointer( - _NSFileHandleReadCompletionNotification, - retain: true, - release: true, - ); - -set NSFileHandleReadCompletionNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSFileHandleReadCompletionNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleReadCompletionNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSFileHandleReadToEndOfFileCompletionNotification', -) -external NSNotificationName _NSFileHandleReadToEndOfFileCompletionNotification; - -DartNSNotificationName get NSFileHandleReadToEndOfFileCompletionNotification => - objc.NSString.fromPointer( - _NSFileHandleReadToEndOfFileCompletionNotification, - retain: true, - release: true, - ); - -set NSFileHandleReadToEndOfFileCompletionNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSFileHandleReadToEndOfFileCompletionNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileHandleReadToEndOfFileCompletionNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileImmutable') -external NSFileAttributeKey _NSFileImmutable; - -DartNSFileAttributeKey get NSFileImmutable => - objc.NSString.fromPointer(_NSFileImmutable, retain: true, release: true); - -set NSFileImmutable(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileImmutable, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileImmutable = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSFileManagerUnmountDissentingProcessIdentifierErrorKey', -) -external ffi.Pointer -_NSFileManagerUnmountDissentingProcessIdentifierErrorKey; - -objc.NSString get NSFileManagerUnmountDissentingProcessIdentifierErrorKey => - objc.NSString.fromPointer( - _NSFileManagerUnmountDissentingProcessIdentifierErrorKey, - retain: true, - release: true, - ); - -set NSFileManagerUnmountDissentingProcessIdentifierErrorKey( - objc.NSString value, -) { - objc.NSString.fromPointer( - _NSFileManagerUnmountDissentingProcessIdentifierErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileManagerUnmountDissentingProcessIdentifierErrorKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileModificationDate') -external NSFileAttributeKey _NSFileModificationDate; - -DartNSFileAttributeKey get NSFileModificationDate => objc.NSString.fromPointer( - _NSFileModificationDate, - retain: true, - release: true, -); - -set NSFileModificationDate(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileModificationDate, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileModificationDate = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileOwnerAccountID') -external NSFileAttributeKey _NSFileOwnerAccountID; - -DartNSFileAttributeKey get NSFileOwnerAccountID => objc.NSString.fromPointer( - _NSFileOwnerAccountID, - retain: true, - release: true, -); - -set NSFileOwnerAccountID(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileOwnerAccountID, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileOwnerAccountID = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileOwnerAccountName') -external NSFileAttributeKey _NSFileOwnerAccountName; - -DartNSFileAttributeKey get NSFileOwnerAccountName => objc.NSString.fromPointer( - _NSFileOwnerAccountName, - retain: true, - release: true, -); - -set NSFileOwnerAccountName(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileOwnerAccountName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileOwnerAccountName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFilePathErrorKey') -external NSErrorUserInfoKey _NSFilePathErrorKey; - -DartNSErrorUserInfoKey get NSFilePathErrorKey => - objc.NSString.fromPointer(_NSFilePathErrorKey, retain: true, release: true); - -set NSFilePathErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSFilePathErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFilePathErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFilePosixPermissions') -external NSFileAttributeKey _NSFilePosixPermissions; - -DartNSFileAttributeKey get NSFilePosixPermissions => objc.NSString.fromPointer( - _NSFilePosixPermissions, - retain: true, - release: true, -); - -set NSFilePosixPermissions(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFilePosixPermissions, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFilePosixPermissions = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileProtectionComplete') -external NSFileProtectionType _NSFileProtectionComplete; - -DartNSFileProtectionType get NSFileProtectionComplete => - objc.NSString.fromPointer( - _NSFileProtectionComplete, - retain: true, - release: true, - ); - -set NSFileProtectionComplete(DartNSFileProtectionType value) { - objc.NSString.fromPointer( - _NSFileProtectionComplete, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionComplete = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileProtectionCompleteUnlessOpen') -external NSFileProtectionType _NSFileProtectionCompleteUnlessOpen; - -DartNSFileProtectionType get NSFileProtectionCompleteUnlessOpen => - objc.NSString.fromPointer( - _NSFileProtectionCompleteUnlessOpen, - retain: true, - release: true, - ); - -set NSFileProtectionCompleteUnlessOpen(DartNSFileProtectionType value) { - objc.NSString.fromPointer( - _NSFileProtectionCompleteUnlessOpen, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionCompleteUnlessOpen = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSFileProtectionCompleteUntilFirstUserAuthentication', -) -external NSFileProtectionType -_NSFileProtectionCompleteUntilFirstUserAuthentication; - -DartNSFileProtectionType -get NSFileProtectionCompleteUntilFirstUserAuthentication => - objc.NSString.fromPointer( - _NSFileProtectionCompleteUntilFirstUserAuthentication, - retain: true, - release: true, - ); - -set NSFileProtectionCompleteUntilFirstUserAuthentication( - DartNSFileProtectionType value, -) { - objc.NSString.fromPointer( - _NSFileProtectionCompleteUntilFirstUserAuthentication, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionCompleteUntilFirstUserAuthentication = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSFileProtectionCompleteWhenUserInactive', -) -external NSFileProtectionType _NSFileProtectionCompleteWhenUserInactive; - -DartNSFileProtectionType get NSFileProtectionCompleteWhenUserInactive => - objc.NSString.fromPointer( - _NSFileProtectionCompleteWhenUserInactive, - retain: true, - release: true, - ); - -set NSFileProtectionCompleteWhenUserInactive(DartNSFileProtectionType value) { - objc.NSString.fromPointer( - _NSFileProtectionCompleteWhenUserInactive, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionCompleteWhenUserInactive = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileProtectionKey') -external NSFileAttributeKey _NSFileProtectionKey; - -DartNSFileAttributeKey get NSFileProtectionKey => objc.NSString.fromPointer( - _NSFileProtectionKey, - retain: true, - release: true, -); - -set NSFileProtectionKey(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileProtectionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileProtectionNone') -external NSFileProtectionType _NSFileProtectionNone; - -DartNSFileProtectionType get NSFileProtectionNone => objc.NSString.fromPointer( - _NSFileProtectionNone, - retain: true, - release: true, -); - -set NSFileProtectionNone(DartNSFileProtectionType value) { - objc.NSString.fromPointer( - _NSFileProtectionNone, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileProtectionNone = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileReferenceCount') -external NSFileAttributeKey _NSFileReferenceCount; - -DartNSFileAttributeKey get NSFileReferenceCount => objc.NSString.fromPointer( - _NSFileReferenceCount, - retain: true, - release: true, -); - -set NSFileReferenceCount(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileReferenceCount, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileReferenceCount = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSize') -external NSFileAttributeKey _NSFileSize; - -DartNSFileAttributeKey get NSFileSize => - objc.NSString.fromPointer(_NSFileSize, retain: true, release: true); - -set NSFileSize(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSize, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSize = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemFileNumber') -external NSFileAttributeKey _NSFileSystemFileNumber; - -DartNSFileAttributeKey get NSFileSystemFileNumber => objc.NSString.fromPointer( - _NSFileSystemFileNumber, - retain: true, - release: true, -); - -set NSFileSystemFileNumber(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemFileNumber, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemFileNumber = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemFreeNodes') -external NSFileAttributeKey _NSFileSystemFreeNodes; - -DartNSFileAttributeKey get NSFileSystemFreeNodes => objc.NSString.fromPointer( - _NSFileSystemFreeNodes, - retain: true, - release: true, -); - -set NSFileSystemFreeNodes(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemFreeNodes, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemFreeNodes = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemFreeSize') -external NSFileAttributeKey _NSFileSystemFreeSize; - -DartNSFileAttributeKey get NSFileSystemFreeSize => objc.NSString.fromPointer( - _NSFileSystemFreeSize, - retain: true, - release: true, -); - -set NSFileSystemFreeSize(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemFreeSize, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemFreeSize = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemNodes') -external NSFileAttributeKey _NSFileSystemNodes; - -DartNSFileAttributeKey get NSFileSystemNodes => - objc.NSString.fromPointer(_NSFileSystemNodes, retain: true, release: true); - -set NSFileSystemNodes(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemNodes, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemNodes = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemNumber') -external NSFileAttributeKey _NSFileSystemNumber; - -DartNSFileAttributeKey get NSFileSystemNumber => - objc.NSString.fromPointer(_NSFileSystemNumber, retain: true, release: true); - -set NSFileSystemNumber(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemNumber, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemNumber = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileSystemSize') -external NSFileAttributeKey _NSFileSystemSize; - -DartNSFileAttributeKey get NSFileSystemSize => - objc.NSString.fromPointer(_NSFileSystemSize, retain: true, release: true); - -set NSFileSystemSize(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileSystemSize, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileSystemSize = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileType') -external NSFileAttributeKey _NSFileType; - -DartNSFileAttributeKey get NSFileType => - objc.NSString.fromPointer(_NSFileType, retain: true, release: true); - -set NSFileType(DartNSFileAttributeKey value) { - objc.NSString.fromPointer( - _NSFileType, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileType = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeBlockSpecial') -external NSFileAttributeType _NSFileTypeBlockSpecial; - -DartNSFileAttributeType get NSFileTypeBlockSpecial => objc.NSString.fromPointer( - _NSFileTypeBlockSpecial, - retain: true, - release: true, -); - -set NSFileTypeBlockSpecial(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeBlockSpecial, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeBlockSpecial = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeCharacterSpecial') -external NSFileAttributeType _NSFileTypeCharacterSpecial; - -DartNSFileAttributeType get NSFileTypeCharacterSpecial => - objc.NSString.fromPointer( - _NSFileTypeCharacterSpecial, - retain: true, - release: true, - ); - -set NSFileTypeCharacterSpecial(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeCharacterSpecial, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeCharacterSpecial = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeDirectory') -external NSFileAttributeType _NSFileTypeDirectory; - -DartNSFileAttributeType get NSFileTypeDirectory => objc.NSString.fromPointer( - _NSFileTypeDirectory, - retain: true, - release: true, -); - -set NSFileTypeDirectory(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeDirectory, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeDirectory = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native Function(OSType)>( - symbol: 'NSFileTypeForHFSTypeCode', -) -external ffi.Pointer _NSFileTypeForHFSTypeCode( - int hfsFileTypeCode, -); - -objc.NSString NSFileTypeForHFSTypeCode(DartUInt32 hfsFileTypeCode) { - return objc.NSString.fromPointer( - _NSFileTypeForHFSTypeCode(hfsFileTypeCode), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSFileTypeRegular') -external NSFileAttributeType _NSFileTypeRegular; - -DartNSFileAttributeType get NSFileTypeRegular => - objc.NSString.fromPointer(_NSFileTypeRegular, retain: true, release: true); - -set NSFileTypeRegular(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeRegular, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeRegular = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeSocket') -external NSFileAttributeType _NSFileTypeSocket; - -DartNSFileAttributeType get NSFileTypeSocket => - objc.NSString.fromPointer(_NSFileTypeSocket, retain: true, release: true); - -set NSFileTypeSocket(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeSocket, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeSocket = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeSymbolicLink') -external NSFileAttributeType _NSFileTypeSymbolicLink; - -DartNSFileAttributeType get NSFileTypeSymbolicLink => objc.NSString.fromPointer( - _NSFileTypeSymbolicLink, - retain: true, - release: true, -); - -set NSFileTypeSymbolicLink(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeSymbolicLink, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeSymbolicLink = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSFileTypeUnknown') -external NSFileAttributeType _NSFileTypeUnknown; - -DartNSFileAttributeType get NSFileTypeUnknown => - objc.NSString.fromPointer(_NSFileTypeUnknown, retain: true, release: true); - -set NSFileTypeUnknown(DartNSFileAttributeType value) { - objc.NSString.fromPointer( - _NSFileTypeUnknown, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSFileTypeUnknown = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external double NSFoundationVersionNumber; - -@ffi.Native)>( - symbol: 'NSFreeHashTable', -) -external void _NSFreeHashTable(ffi.Pointer table); - -void NSFreeHashTable(NSHashTable table) { - final _$$ref = table.ref; - return _NSFreeHashTable(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'NSFreeMapTable', -) -external void _NSFreeMapTable(ffi.Pointer table); - -void NSFreeMapTable(NSMapTable table) { - final _$$ref = table.ref; - return _NSFreeMapTable(_$$ref.retainAndReturnPointer()); -} - -@ffi.Native Function()>( - symbol: 'NSFullUserName', -) -external ffi.Pointer _NSFullUserName(); - -objc.NSString NSFullUserName() { - return objc.NSString.fromPointer( - _NSFullUserName(), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSGenericException') -external NSExceptionName _NSGenericException; - -DartNSExceptionName get NSGenericException => - objc.NSString.fromPointer(_NSGenericException, retain: true, release: true); - -set NSGenericException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSGenericException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGenericException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer NSGetSizeAndAlignment( - ffi.Pointer typePtr$1, - ffi.Pointer sizep, - ffi.Pointer alignp, -); - -@ffi.Native Function()>() -external ffi.Pointer -NSGetUncaughtExceptionHandler(); - -@ffi.Native>(symbol: 'NSGlobalDomain') -external ffi.Pointer _NSGlobalDomain; - -objc.NSString get NSGlobalDomain => - objc.NSString.fromPointer(_NSGlobalDomain, retain: true, release: true); - -set NSGlobalDomain(objc.NSString value) { - objc.NSString.fromPointer( - _NSGlobalDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGlobalDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSGrammarCorrections') -external ffi.Pointer _NSGrammarCorrections; - -objc.NSString get NSGrammarCorrections => objc.NSString.fromPointer( - _NSGrammarCorrections, - retain: true, - release: true, -); - -set NSGrammarCorrections(objc.NSString value) { - objc.NSString.fromPointer( - _NSGrammarCorrections, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGrammarCorrections = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSGrammarRange') -external ffi.Pointer _NSGrammarRange; - -objc.NSString get NSGrammarRange => - objc.NSString.fromPointer(_NSGrammarRange, retain: true, release: true); - -set NSGrammarRange(objc.NSString value) { - objc.NSString.fromPointer( - _NSGrammarRange, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGrammarRange = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSGrammarUserDescription', -) -external ffi.Pointer _NSGrammarUserDescription; - -objc.NSString get NSGrammarUserDescription => objc.NSString.fromPointer( - _NSGrammarUserDescription, - retain: true, - release: true, -); - -set NSGrammarUserDescription(objc.NSString value) { - objc.NSString.fromPointer( - _NSGrammarUserDescription, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGrammarUserDescription = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSGregorianCalendar') -external ffi.Pointer _NSGregorianCalendar; - -objc.NSString get NSGregorianCalendar => objc.NSString.fromPointer( - _NSGregorianCalendar, - retain: true, - release: true, -); - -set NSGregorianCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSGregorianCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSGregorianCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSHFSTypeCodeFromFileType', -) -external int _NSHFSTypeCodeFromFileType( - ffi.Pointer fileTypeString, -); - -DartUInt32 NSHFSTypeCodeFromFileType(objc.NSString fileTypeString) { - final _$$ref = fileTypeString.ref; - return _NSHFSTypeCodeFromFileType(_$$ref.pointer); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSHFSTypeOfFile') -external ffi.Pointer _NSHFSTypeOfFile( - ffi.Pointer fullFilePath, -); - -objc.NSString NSHFSTypeOfFile(objc.NSString fullFilePath) { - final _$$ref = fullFilePath.ref; - return objc.NSString.fromPointer( - _NSHFSTypeOfFile(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSHTTPCookieComment') -external NSHTTPCookiePropertyKey _NSHTTPCookieComment; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieComment => - objc.NSString.fromPointer( - _NSHTTPCookieComment, - retain: true, - release: true, - ); - -set NSHTTPCookieComment(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieComment, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieComment = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieCommentURL') -external NSHTTPCookiePropertyKey _NSHTTPCookieCommentURL; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieCommentURL => - objc.NSString.fromPointer( - _NSHTTPCookieCommentURL, - retain: true, - release: true, - ); - -set NSHTTPCookieCommentURL(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieCommentURL, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieCommentURL = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieDiscard') -external NSHTTPCookiePropertyKey _NSHTTPCookieDiscard; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieDiscard => - objc.NSString.fromPointer( - _NSHTTPCookieDiscard, - retain: true, - release: true, - ); - -set NSHTTPCookieDiscard(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieDiscard, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieDiscard = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieDomain') -external NSHTTPCookiePropertyKey _NSHTTPCookieDomain; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieDomain => - objc.NSString.fromPointer(_NSHTTPCookieDomain, retain: true, release: true); - -set NSHTTPCookieDomain(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieExpires') -external NSHTTPCookiePropertyKey _NSHTTPCookieExpires; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieExpires => - objc.NSString.fromPointer( - _NSHTTPCookieExpires, - retain: true, - release: true, - ); - -set NSHTTPCookieExpires(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieExpires, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieExpires = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSHTTPCookieManagerAcceptPolicyChangedNotification', -) -external NSNotificationName _NSHTTPCookieManagerAcceptPolicyChangedNotification; - -DartNSNotificationName get NSHTTPCookieManagerAcceptPolicyChangedNotification => - objc.NSString.fromPointer( - _NSHTTPCookieManagerAcceptPolicyChangedNotification, - retain: true, - release: true, - ); - -set NSHTTPCookieManagerAcceptPolicyChangedNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSHTTPCookieManagerAcceptPolicyChangedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieManagerAcceptPolicyChangedNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSHTTPCookieManagerCookiesChangedNotification', -) -external NSNotificationName _NSHTTPCookieManagerCookiesChangedNotification; - -DartNSNotificationName get NSHTTPCookieManagerCookiesChangedNotification => - objc.NSString.fromPointer( - _NSHTTPCookieManagerCookiesChangedNotification, - retain: true, - release: true, - ); - -set NSHTTPCookieManagerCookiesChangedNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSHTTPCookieManagerCookiesChangedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieManagerCookiesChangedNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieMaximumAge') -external NSHTTPCookiePropertyKey _NSHTTPCookieMaximumAge; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieMaximumAge => - objc.NSString.fromPointer( - _NSHTTPCookieMaximumAge, - retain: true, - release: true, - ); - -set NSHTTPCookieMaximumAge(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieMaximumAge, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieMaximumAge = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieName') -external NSHTTPCookiePropertyKey _NSHTTPCookieName; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieName => - objc.NSString.fromPointer(_NSHTTPCookieName, retain: true, release: true); - -set NSHTTPCookieName(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieOriginURL') -external NSHTTPCookiePropertyKey _NSHTTPCookieOriginURL; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieOriginURL => - objc.NSString.fromPointer( - _NSHTTPCookieOriginURL, - retain: true, - release: true, - ); - -set NSHTTPCookieOriginURL(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieOriginURL, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieOriginURL = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookiePath') -external NSHTTPCookiePropertyKey _NSHTTPCookiePath; - -DartNSHTTPCookiePropertyKey get NSHTTPCookiePath => - objc.NSString.fromPointer(_NSHTTPCookiePath, retain: true, release: true); - -set NSHTTPCookiePath(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookiePath, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookiePath = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookiePort') -external NSHTTPCookiePropertyKey _NSHTTPCookiePort; - -DartNSHTTPCookiePropertyKey get NSHTTPCookiePort => - objc.NSString.fromPointer(_NSHTTPCookiePort, retain: true, release: true); - -set NSHTTPCookiePort(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookiePort, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookiePort = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieSameSiteLax') -external NSHTTPCookieStringPolicy _NSHTTPCookieSameSiteLax; - -DartNSHTTPCookieStringPolicy get NSHTTPCookieSameSiteLax => - objc.NSString.fromPointer( - _NSHTTPCookieSameSiteLax, - retain: true, - release: true, - ); - -set NSHTTPCookieSameSiteLax(DartNSHTTPCookieStringPolicy value) { - objc.NSString.fromPointer( - _NSHTTPCookieSameSiteLax, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieSameSiteLax = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieSameSitePolicy') -external NSHTTPCookiePropertyKey _NSHTTPCookieSameSitePolicy; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieSameSitePolicy => - objc.NSString.fromPointer( - _NSHTTPCookieSameSitePolicy, - retain: true, - release: true, - ); - -set NSHTTPCookieSameSitePolicy(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieSameSitePolicy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieSameSitePolicy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieSameSiteStrict') -external NSHTTPCookieStringPolicy _NSHTTPCookieSameSiteStrict; - -DartNSHTTPCookieStringPolicy get NSHTTPCookieSameSiteStrict => - objc.NSString.fromPointer( - _NSHTTPCookieSameSiteStrict, - retain: true, - release: true, - ); - -set NSHTTPCookieSameSiteStrict(DartNSHTTPCookieStringPolicy value) { - objc.NSString.fromPointer( - _NSHTTPCookieSameSiteStrict, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieSameSiteStrict = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieSecure') -external NSHTTPCookiePropertyKey _NSHTTPCookieSecure; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieSecure => - objc.NSString.fromPointer(_NSHTTPCookieSecure, retain: true, release: true); - -set NSHTTPCookieSecure(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieSecure, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieSecure = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieSetByJavaScript') -external NSHTTPCookiePropertyKey _NSHTTPCookieSetByJavaScript; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieSetByJavaScript => - objc.NSString.fromPointer( - _NSHTTPCookieSetByJavaScript, - retain: true, - release: true, - ); - -set NSHTTPCookieSetByJavaScript(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieSetByJavaScript, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieSetByJavaScript = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieValue') -external NSHTTPCookiePropertyKey _NSHTTPCookieValue; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieValue => - objc.NSString.fromPointer(_NSHTTPCookieValue, retain: true, release: true); - -set NSHTTPCookieValue(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieValue, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieValue = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHTTPCookieVersion') -external NSHTTPCookiePropertyKey _NSHTTPCookieVersion; - -DartNSHTTPCookiePropertyKey get NSHTTPCookieVersion => - objc.NSString.fromPointer( - _NSHTTPCookieVersion, - retain: true, - release: true, - ); - -set NSHTTPCookieVersion(DartNSHTTPCookiePropertyKey value) { - objc.NSString.fromPointer( - _NSHTTPCookieVersion, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHTTPCookieVersion = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSHTTPPropertyErrorPageDataKey', -) -external final ffi.Pointer _NSHTTPPropertyErrorPageDataKey; - -objc.NSString get NSHTTPPropertyErrorPageDataKey => objc.NSString.fromPointer( - _NSHTTPPropertyErrorPageDataKey, - retain: true, - release: true, -); - -@ffi.Native>(symbol: 'NSHTTPPropertyHTTPProxy') -external final ffi.Pointer _NSHTTPPropertyHTTPProxy; - -objc.NSString get NSHTTPPropertyHTTPProxy => objc.NSString.fromPointer( - _NSHTTPPropertyHTTPProxy, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSHTTPPropertyRedirectionHeadersKey', -) -external final ffi.Pointer -_NSHTTPPropertyRedirectionHeadersKey; - -objc.NSString get NSHTTPPropertyRedirectionHeadersKey => - objc.NSString.fromPointer( - _NSHTTPPropertyRedirectionHeadersKey, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'NSHTTPPropertyServerHTTPVersionKey', -) -external final ffi.Pointer -_NSHTTPPropertyServerHTTPVersionKey; - -objc.NSString get NSHTTPPropertyServerHTTPVersionKey => - objc.NSString.fromPointer( - _NSHTTPPropertyServerHTTPVersionKey, - retain: true, - release: true, - ); - -@ffi.Native>( - symbol: 'NSHTTPPropertyStatusCodeKey', -) -external final ffi.Pointer _NSHTTPPropertyStatusCodeKey; - -objc.NSString get NSHTTPPropertyStatusCodeKey => objc.NSString.fromPointer( - _NSHTTPPropertyStatusCodeKey, - retain: true, - release: true, -); - -@ffi.Native>( - symbol: 'NSHTTPPropertyStatusReasonKey', -) -external final ffi.Pointer _NSHTTPPropertyStatusReasonKey; - -objc.NSString get NSHTTPPropertyStatusReasonKey => objc.NSString.fromPointer( - _NSHTTPPropertyStatusReasonKey, - retain: true, - release: true, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSHashGet') -external ffi.Pointer _NSHashGet( - ffi.Pointer table, - ffi.Pointer pointer, -); - -ffi.Pointer NSHashGet( - NSHashTable table, - ffi.Pointer pointer, -) { - final _$$ref = table.ref; - return _NSHashGet(_$$ref.pointer, pointer); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSHashInsert') -external void _NSHashInsert( - ffi.Pointer table, - ffi.Pointer pointer, -); - -void NSHashInsert(NSHashTable table, ffi.Pointer pointer) { - final _$$ref = table.ref; - return _NSHashInsert(_$$ref.pointer, pointer); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSHashInsertIfAbsent') -external ffi.Pointer _NSHashInsertIfAbsent( - ffi.Pointer table, - ffi.Pointer pointer, -); - -ffi.Pointer NSHashInsertIfAbsent( - NSHashTable table, - ffi.Pointer pointer, -) { - final _$$ref = table.ref; - return _NSHashInsertIfAbsent(_$$ref.pointer, pointer); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSHashInsertKnownAbsent') -external void _NSHashInsertKnownAbsent( - ffi.Pointer table, - ffi.Pointer pointer, -); - -void NSHashInsertKnownAbsent(NSHashTable table, ffi.Pointer pointer) { - final _$$ref = table.ref; - return _NSHashInsertKnownAbsent(_$$ref.pointer, pointer); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSHashRemove') -external void _NSHashRemove( - ffi.Pointer table, - ffi.Pointer pointer, -); - -void NSHashRemove(NSHashTable table, ffi.Pointer pointer) { - final _$$ref = table.ref; - return _NSHashRemove(_$$ref.pointer, pointer); -} - -@ffi.Native>(symbol: 'NSHebrewCalendar') -external ffi.Pointer _NSHebrewCalendar; - -objc.NSString get NSHebrewCalendar => - objc.NSString.fromPointer(_NSHebrewCalendar, retain: true, release: true); - -set NSHebrewCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSHebrewCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHebrewCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSHelpAnchorErrorKey') -external NSErrorUserInfoKey _NSHelpAnchorErrorKey; - -DartNSErrorUserInfoKey get NSHelpAnchorErrorKey => objc.NSString.fromPointer( - _NSHelpAnchorErrorKey, - retain: true, - release: true, -); - -set NSHelpAnchorErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSHelpAnchorErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHelpAnchorErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native Function()>( - symbol: 'NSHomeDirectory', -) -external ffi.Pointer _NSHomeDirectory(); - -objc.NSString NSHomeDirectory() { - return objc.NSString.fromPointer( - _NSHomeDirectory(), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSHomeDirectoryForUser') -external ffi.Pointer _NSHomeDirectoryForUser( - ffi.Pointer userName, -); - -objc.NSString? NSHomeDirectoryForUser(objc.NSString? userName) { - final _$$ref = userName?.ref; - return _NSHomeDirectoryForUser(_$$ref?.pointer ?? ffi.nullptr).address == 0 - ? null - : objc.NSString.fromPointer( - _NSHomeDirectoryForUser(_$$ref?.pointer ?? ffi.nullptr), - retain: true, - release: true, - ); -} - -@ffi.Native>(symbol: 'NSHourNameDesignations') -external ffi.Pointer _NSHourNameDesignations; - -objc.NSString get NSHourNameDesignations => objc.NSString.fromPointer( - _NSHourNameDesignations, - retain: true, - release: true, -); - -set NSHourNameDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSHourNameDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSHourNameDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSISO8601Calendar') -external ffi.Pointer _NSISO8601Calendar; - -objc.NSString get NSISO8601Calendar => - objc.NSString.fromPointer(_NSISO8601Calendar, retain: true, release: true); - -set NSISO8601Calendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSISO8601Calendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSISO8601Calendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSImageURLAttributeName') -external NSAttributedStringKey _NSImageURLAttributeName; - -DartNSAttributedStringKey get NSImageURLAttributeName => - objc.NSString.fromPointer( - _NSImageURLAttributeName, - retain: true, - release: true, - ); - -set NSImageURLAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSImageURLAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSImageURLAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInconsistentArchiveException') -external NSExceptionName _NSInconsistentArchiveException; - -DartNSExceptionName get NSInconsistentArchiveException => - objc.NSString.fromPointer( - _NSInconsistentArchiveException, - retain: true, - release: true, - ); - -set NSInconsistentArchiveException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInconsistentArchiveException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInconsistentArchiveException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSIncrementExtraRefCount', -) -external void _NSIncrementExtraRefCount( - ffi.Pointer object, -); - -void NSIncrementExtraRefCount(objc.ObjCObject object) { - final _$$ref = object.ref; - return _NSIncrementExtraRefCount(_$$ref.pointer); -} - -@ffi.Native>(symbol: 'NSIndianCalendar') -external ffi.Pointer _NSIndianCalendar; - -objc.NSString get NSIndianCalendar => - objc.NSString.fromPointer(_NSIndianCalendar, retain: true, release: true); - -set NSIndianCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSIndianCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSIndianCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInflectionAgreementArgumentAttributeName', -) -external NSAttributedStringKey _NSInflectionAgreementArgumentAttributeName; - -DartNSAttributedStringKey get NSInflectionAgreementArgumentAttributeName => - objc.NSString.fromPointer( - _NSInflectionAgreementArgumentAttributeName, - retain: true, - release: true, - ); - -set NSInflectionAgreementArgumentAttributeName( - DartNSAttributedStringKey value, -) { - objc.NSString.fromPointer( - _NSInflectionAgreementArgumentAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionAgreementArgumentAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInflectionAgreementConceptAttributeName', -) -external NSAttributedStringKey _NSInflectionAgreementConceptAttributeName; - -DartNSAttributedStringKey get NSInflectionAgreementConceptAttributeName => - objc.NSString.fromPointer( - _NSInflectionAgreementConceptAttributeName, - retain: true, - release: true, - ); - -set NSInflectionAgreementConceptAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSInflectionAgreementConceptAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionAgreementConceptAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInflectionAlternativeAttributeName', -) -external NSAttributedStringKey _NSInflectionAlternativeAttributeName; - -DartNSAttributedStringKey get NSInflectionAlternativeAttributeName => - objc.NSString.fromPointer( - _NSInflectionAlternativeAttributeName, - retain: true, - release: true, - ); - -set NSInflectionAlternativeAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSInflectionAlternativeAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionAlternativeAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInflectionConceptsKey', -) -external NSAttributedStringFormattingContextKey _NSInflectionConceptsKey; - -DartNSAttributedStringFormattingContextKey get NSInflectionConceptsKey => - objc.NSString.fromPointer( - _NSInflectionConceptsKey, - retain: true, - release: true, - ); - -set NSInflectionConceptsKey(DartNSAttributedStringFormattingContextKey value) { - objc.NSString.fromPointer( - _NSInflectionConceptsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionConceptsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInflectionReferentConceptAttributeName', -) -external NSAttributedStringKey _NSInflectionReferentConceptAttributeName; - -DartNSAttributedStringKey get NSInflectionReferentConceptAttributeName => - objc.NSString.fromPointer( - _NSInflectionReferentConceptAttributeName, - retain: true, - release: true, - ); - -set NSInflectionReferentConceptAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSInflectionReferentConceptAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionReferentConceptAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInflectionRuleAttributeName') -external NSAttributedStringKey _NSInflectionRuleAttributeName; - -DartNSAttributedStringKey get NSInflectionRuleAttributeName => - objc.NSString.fromPointer( - _NSInflectionRuleAttributeName, - retain: true, - release: true, - ); - -set NSInflectionRuleAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSInflectionRuleAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInflectionRuleAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSInlinePresentationIntentAttributeName', -) -external NSAttributedStringKey _NSInlinePresentationIntentAttributeName; - -DartNSAttributedStringKey get NSInlinePresentationIntentAttributeName => - objc.NSString.fromPointer( - _NSInlinePresentationIntentAttributeName, - retain: true, - release: true, - ); - -set NSInlinePresentationIntentAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSInlinePresentationIntentAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInlinePresentationIntentAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external NSRect NSInsetRect(NSRect aRect, double dX, double dY); - -@ffi.Native() -external final NSHashTableCallBacks NSIntHashCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSIntMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSIntMapValueCallBacks; - -@ffi.Native() -external final NSHashTableCallBacks NSIntegerHashCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSIntegerMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSIntegerMapValueCallBacks; - -@ffi.Native() -external NSRect NSIntegralRect(NSRect aRect); - -@ffi.Native() -external NSRect NSIntegralRectWithOptions(NSRect aRect, int opts); - -@ffi.Native(symbol: 'NSInternalInconsistencyException') -external NSExceptionName _NSInternalInconsistencyException; - -DartNSExceptionName get NSInternalInconsistencyException => - objc.NSString.fromPointer( - _NSInternalInconsistencyException, - retain: true, - release: true, - ); - -set NSInternalInconsistencyException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInternalInconsistencyException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInternalInconsistencyException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSInternationalCurrencyString', -) -external ffi.Pointer _NSInternationalCurrencyString; - -objc.NSString get NSInternationalCurrencyString => objc.NSString.fromPointer( - _NSInternationalCurrencyString, - retain: true, - release: true, -); - -set NSInternationalCurrencyString(objc.NSString value) { - objc.NSString.fromPointer( - _NSInternationalCurrencyString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInternationalCurrencyString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external NSRange NSIntersectionRange(NSRange range1, NSRange range2); - -@ffi.Native() -external NSRect NSIntersectionRect(NSRect aRect, NSRect bRect); - -@ffi.Native() -external bool NSIntersectsRect(NSRect aRect, NSRect bRect); - -@ffi.Native(symbol: 'NSInvalidArchiveOperationException') -external NSExceptionName _NSInvalidArchiveOperationException; - -DartNSExceptionName get NSInvalidArchiveOperationException => - objc.NSString.fromPointer( - _NSInvalidArchiveOperationException, - retain: true, - release: true, - ); - -set NSInvalidArchiveOperationException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvalidArchiveOperationException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvalidArchiveOperationException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvalidArgumentException') -external NSExceptionName _NSInvalidArgumentException; - -DartNSExceptionName get NSInvalidArgumentException => objc.NSString.fromPointer( - _NSInvalidArgumentException, - retain: true, - release: true, -); - -set NSInvalidArgumentException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvalidArgumentException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvalidArgumentException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvalidReceivePortException') -external NSExceptionName _NSInvalidReceivePortException; - -DartNSExceptionName get NSInvalidReceivePortException => - objc.NSString.fromPointer( - _NSInvalidReceivePortException, - retain: true, - release: true, - ); - -set NSInvalidReceivePortException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvalidReceivePortException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvalidReceivePortException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvalidSendPortException') -external NSExceptionName _NSInvalidSendPortException; - -DartNSExceptionName get NSInvalidSendPortException => objc.NSString.fromPointer( - _NSInvalidSendPortException, - retain: true, - release: true, -); - -set NSInvalidSendPortException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvalidSendPortException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvalidSendPortException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvalidUnarchiveOperationException') -external NSExceptionName _NSInvalidUnarchiveOperationException; - -DartNSExceptionName get NSInvalidUnarchiveOperationException => - objc.NSString.fromPointer( - _NSInvalidUnarchiveOperationException, - retain: true, - release: true, - ); - -set NSInvalidUnarchiveOperationException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvalidUnarchiveOperationException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvalidUnarchiveOperationException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvocationOperationCancelledException') -external NSExceptionName _NSInvocationOperationCancelledException; - -DartNSExceptionName get NSInvocationOperationCancelledException => - objc.NSString.fromPointer( - _NSInvocationOperationCancelledException, - retain: true, - release: true, - ); - -set NSInvocationOperationCancelledException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvocationOperationCancelledException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvocationOperationCancelledException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSInvocationOperationVoidResultException') -external NSExceptionName _NSInvocationOperationVoidResultException; - -DartNSExceptionName get NSInvocationOperationVoidResultException => - objc.NSString.fromPointer( - _NSInvocationOperationVoidResultException, - retain: true, - release: true, - ); - -set NSInvocationOperationVoidResultException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSInvocationOperationVoidResultException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSInvocationOperationVoidResultException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external bool NSIsEmptyRect(NSRect aRect); - -@ffi.Native(symbol: 'NSIsNilTransformerName') -external NSValueTransformerName _NSIsNilTransformerName; - -DartNSValueTransformerName get NSIsNilTransformerName => - objc.NSString.fromPointer( - _NSIsNilTransformerName, - retain: true, - release: true, - ); - -set NSIsNilTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSIsNilTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSIsNilTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSIsNotNilTransformerName') -external NSValueTransformerName _NSIsNotNilTransformerName; - -DartNSValueTransformerName get NSIsNotNilTransformerName => - objc.NSString.fromPointer( - _NSIsNotNilTransformerName, - retain: true, - release: true, - ); - -set NSIsNotNilTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSIsNotNilTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSIsNotNilTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSIslamicCalendar') -external ffi.Pointer _NSIslamicCalendar; - -objc.NSString get NSIslamicCalendar => - objc.NSString.fromPointer(_NSIslamicCalendar, retain: true, release: true); - -set NSIslamicCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSIslamicCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSIslamicCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSIslamicCivilCalendar') -external ffi.Pointer _NSIslamicCivilCalendar; - -objc.NSString get NSIslamicCivilCalendar => objc.NSString.fromPointer( - _NSIslamicCivilCalendar, - retain: true, - release: true, -); - -set NSIslamicCivilCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSIslamicCivilCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSIslamicCivilCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSItemProviderErrorDomain', -) -external ffi.Pointer _NSItemProviderErrorDomain; - -objc.NSString get NSItemProviderErrorDomain => objc.NSString.fromPointer( - _NSItemProviderErrorDomain, - retain: true, - release: true, -); - -set NSItemProviderErrorDomain(objc.NSString value) { - objc.NSString.fromPointer( - _NSItemProviderErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSItemProviderErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSItemProviderPreferredImageSizeKey', -) -external ffi.Pointer _NSItemProviderPreferredImageSizeKey; - -objc.NSString get NSItemProviderPreferredImageSizeKey => - objc.NSString.fromPointer( - _NSItemProviderPreferredImageSizeKey, - retain: true, - release: true, - ); - -set NSItemProviderPreferredImageSizeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSItemProviderPreferredImageSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSItemProviderPreferredImageSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSJapaneseCalendar') -external ffi.Pointer _NSJapaneseCalendar; - -objc.NSString get NSJapaneseCalendar => - objc.NSString.fromPointer(_NSJapaneseCalendar, retain: true, release: true); - -set NSJapaneseCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSJapaneseCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSJapaneseCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSKeyValueChangeIndexesKey') -external NSKeyValueChangeKey _NSKeyValueChangeIndexesKey; - -DartNSKeyValueChangeKey get NSKeyValueChangeIndexesKey => - objc.NSString.fromPointer( - _NSKeyValueChangeIndexesKey, - retain: true, - release: true, - ); - -set NSKeyValueChangeIndexesKey(DartNSKeyValueChangeKey value) { - objc.NSString.fromPointer( - _NSKeyValueChangeIndexesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyValueChangeIndexesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSKeyValueChangeKindKey') -external NSKeyValueChangeKey _NSKeyValueChangeKindKey; - -DartNSKeyValueChangeKey get NSKeyValueChangeKindKey => - objc.NSString.fromPointer( - _NSKeyValueChangeKindKey, - retain: true, - release: true, - ); - -set NSKeyValueChangeKindKey(DartNSKeyValueChangeKey value) { - objc.NSString.fromPointer( - _NSKeyValueChangeKindKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyValueChangeKindKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSKeyValueChangeNewKey') -external NSKeyValueChangeKey _NSKeyValueChangeNewKey; - -DartNSKeyValueChangeKey get NSKeyValueChangeNewKey => objc.NSString.fromPointer( - _NSKeyValueChangeNewKey, - retain: true, - release: true, -); - -set NSKeyValueChangeNewKey(DartNSKeyValueChangeKey value) { - objc.NSString.fromPointer( - _NSKeyValueChangeNewKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyValueChangeNewKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSKeyValueChangeNotificationIsPriorKey', -) -external NSKeyValueChangeKey _NSKeyValueChangeNotificationIsPriorKey; - -DartNSKeyValueChangeKey get NSKeyValueChangeNotificationIsPriorKey => - objc.NSString.fromPointer( - _NSKeyValueChangeNotificationIsPriorKey, - retain: true, - release: true, - ); - -set NSKeyValueChangeNotificationIsPriorKey(DartNSKeyValueChangeKey value) { - objc.NSString.fromPointer( - _NSKeyValueChangeNotificationIsPriorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyValueChangeNotificationIsPriorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSKeyValueChangeOldKey') -external NSKeyValueChangeKey _NSKeyValueChangeOldKey; - -DartNSKeyValueChangeKey get NSKeyValueChangeOldKey => objc.NSString.fromPointer( - _NSKeyValueChangeOldKey, - retain: true, - release: true, -); - -set NSKeyValueChangeOldKey(DartNSKeyValueChangeKey value) { - objc.NSString.fromPointer( - _NSKeyValueChangeOldKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyValueChangeOldKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSKeyedArchiveRootObjectKey', -) -external ffi.Pointer _NSKeyedArchiveRootObjectKey; - -objc.NSString get NSKeyedArchiveRootObjectKey => objc.NSString.fromPointer( - _NSKeyedArchiveRootObjectKey, - retain: true, - release: true, -); - -set NSKeyedArchiveRootObjectKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSKeyedArchiveRootObjectKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyedArchiveRootObjectKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSKeyedUnarchiveFromDataTransformerName', -) -external NSValueTransformerName _NSKeyedUnarchiveFromDataTransformerName; - -DartNSValueTransformerName get NSKeyedUnarchiveFromDataTransformerName => - objc.NSString.fromPointer( - _NSKeyedUnarchiveFromDataTransformerName, - retain: true, - release: true, - ); - -set NSKeyedUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSKeyedUnarchiveFromDataTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSKeyedUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLanguageIdentifierAttributeName') -external NSAttributedStringKey _NSLanguageIdentifierAttributeName; - -DartNSAttributedStringKey get NSLanguageIdentifierAttributeName => - objc.NSString.fromPointer( - _NSLanguageIdentifierAttributeName, - retain: true, - release: true, - ); - -set NSLanguageIdentifierAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSLanguageIdentifierAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLanguageIdentifierAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSLaterTimeDesignations') -external ffi.Pointer _NSLaterTimeDesignations; - -objc.NSString get NSLaterTimeDesignations => objc.NSString.fromPointer( - _NSLaterTimeDesignations, - retain: true, - release: true, -); - -set NSLaterTimeDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSLaterTimeDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLaterTimeDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagAdjective') -external NSLinguisticTag _NSLinguisticTagAdjective; - -DartNSLinguisticTag get NSLinguisticTagAdjective => objc.NSString.fromPointer( - _NSLinguisticTagAdjective, - retain: true, - release: true, -); - -set NSLinguisticTagAdjective(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagAdjective, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagAdjective = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagAdverb') -external NSLinguisticTag _NSLinguisticTagAdverb; - -DartNSLinguisticTag get NSLinguisticTagAdverb => objc.NSString.fromPointer( - _NSLinguisticTagAdverb, - retain: true, - release: true, -); - -set NSLinguisticTagAdverb(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagAdverb, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagAdverb = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagClassifier') -external NSLinguisticTag _NSLinguisticTagClassifier; - -DartNSLinguisticTag get NSLinguisticTagClassifier => objc.NSString.fromPointer( - _NSLinguisticTagClassifier, - retain: true, - release: true, -); - -set NSLinguisticTagClassifier(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagClassifier, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagClassifier = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagCloseParenthesis') -external NSLinguisticTag _NSLinguisticTagCloseParenthesis; - -DartNSLinguisticTag get NSLinguisticTagCloseParenthesis => - objc.NSString.fromPointer( - _NSLinguisticTagCloseParenthesis, - retain: true, - release: true, - ); - -set NSLinguisticTagCloseParenthesis(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagCloseParenthesis, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagCloseParenthesis = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagCloseQuote') -external NSLinguisticTag _NSLinguisticTagCloseQuote; - -DartNSLinguisticTag get NSLinguisticTagCloseQuote => objc.NSString.fromPointer( - _NSLinguisticTagCloseQuote, - retain: true, - release: true, -); - -set NSLinguisticTagCloseQuote(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagCloseQuote, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagCloseQuote = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagConjunction') -external NSLinguisticTag _NSLinguisticTagConjunction; - -DartNSLinguisticTag get NSLinguisticTagConjunction => objc.NSString.fromPointer( - _NSLinguisticTagConjunction, - retain: true, - release: true, -); - -set NSLinguisticTagConjunction(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagConjunction, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagConjunction = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagDash') -external NSLinguisticTag _NSLinguisticTagDash; - -DartNSLinguisticTag get NSLinguisticTagDash => objc.NSString.fromPointer( - _NSLinguisticTagDash, - retain: true, - release: true, -); - -set NSLinguisticTagDash(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagDash, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagDash = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagDeterminer') -external NSLinguisticTag _NSLinguisticTagDeterminer; - -DartNSLinguisticTag get NSLinguisticTagDeterminer => objc.NSString.fromPointer( - _NSLinguisticTagDeterminer, - retain: true, - release: true, -); - -set NSLinguisticTagDeterminer(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagDeterminer, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagDeterminer = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagIdiom') -external NSLinguisticTag _NSLinguisticTagIdiom; - -DartNSLinguisticTag get NSLinguisticTagIdiom => objc.NSString.fromPointer( - _NSLinguisticTagIdiom, - retain: true, - release: true, -); - -set NSLinguisticTagIdiom(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagIdiom, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagIdiom = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagInterjection') -external NSLinguisticTag _NSLinguisticTagInterjection; - -DartNSLinguisticTag get NSLinguisticTagInterjection => - objc.NSString.fromPointer( - _NSLinguisticTagInterjection, - retain: true, - release: true, - ); - -set NSLinguisticTagInterjection(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagInterjection, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagInterjection = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagNoun') -external NSLinguisticTag _NSLinguisticTagNoun; - -DartNSLinguisticTag get NSLinguisticTagNoun => objc.NSString.fromPointer( - _NSLinguisticTagNoun, - retain: true, - release: true, -); - -set NSLinguisticTagNoun(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagNoun, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagNoun = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagNumber') -external NSLinguisticTag _NSLinguisticTagNumber; - -DartNSLinguisticTag get NSLinguisticTagNumber => objc.NSString.fromPointer( - _NSLinguisticTagNumber, - retain: true, - release: true, -); - -set NSLinguisticTagNumber(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagNumber, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagNumber = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOpenParenthesis') -external NSLinguisticTag _NSLinguisticTagOpenParenthesis; - -DartNSLinguisticTag get NSLinguisticTagOpenParenthesis => - objc.NSString.fromPointer( - _NSLinguisticTagOpenParenthesis, - retain: true, - release: true, - ); - -set NSLinguisticTagOpenParenthesis(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOpenParenthesis, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOpenParenthesis = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOpenQuote') -external NSLinguisticTag _NSLinguisticTagOpenQuote; - -DartNSLinguisticTag get NSLinguisticTagOpenQuote => objc.NSString.fromPointer( - _NSLinguisticTagOpenQuote, - retain: true, - release: true, -); - -set NSLinguisticTagOpenQuote(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOpenQuote, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOpenQuote = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOrganizationName') -external NSLinguisticTag _NSLinguisticTagOrganizationName; - -DartNSLinguisticTag get NSLinguisticTagOrganizationName => - objc.NSString.fromPointer( - _NSLinguisticTagOrganizationName, - retain: true, - release: true, - ); - -set NSLinguisticTagOrganizationName(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOrganizationName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOrganizationName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOther') -external NSLinguisticTag _NSLinguisticTagOther; - -DartNSLinguisticTag get NSLinguisticTagOther => objc.NSString.fromPointer( - _NSLinguisticTagOther, - retain: true, - release: true, -); - -set NSLinguisticTagOther(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOther, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOther = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOtherPunctuation') -external NSLinguisticTag _NSLinguisticTagOtherPunctuation; - -DartNSLinguisticTag get NSLinguisticTagOtherPunctuation => - objc.NSString.fromPointer( - _NSLinguisticTagOtherPunctuation, - retain: true, - release: true, - ); - -set NSLinguisticTagOtherPunctuation(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOtherPunctuation, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOtherPunctuation = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOtherWhitespace') -external NSLinguisticTag _NSLinguisticTagOtherWhitespace; - -DartNSLinguisticTag get NSLinguisticTagOtherWhitespace => - objc.NSString.fromPointer( - _NSLinguisticTagOtherWhitespace, - retain: true, - release: true, - ); - -set NSLinguisticTagOtherWhitespace(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOtherWhitespace, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOtherWhitespace = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagOtherWord') -external NSLinguisticTag _NSLinguisticTagOtherWord; - -DartNSLinguisticTag get NSLinguisticTagOtherWord => objc.NSString.fromPointer( - _NSLinguisticTagOtherWord, - retain: true, - release: true, -); - -set NSLinguisticTagOtherWord(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagOtherWord, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagOtherWord = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagParagraphBreak') -external NSLinguisticTag _NSLinguisticTagParagraphBreak; - -DartNSLinguisticTag get NSLinguisticTagParagraphBreak => - objc.NSString.fromPointer( - _NSLinguisticTagParagraphBreak, - retain: true, - release: true, - ); - -set NSLinguisticTagParagraphBreak(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagParagraphBreak, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagParagraphBreak = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagParticle') -external NSLinguisticTag _NSLinguisticTagParticle; - -DartNSLinguisticTag get NSLinguisticTagParticle => objc.NSString.fromPointer( - _NSLinguisticTagParticle, - retain: true, - release: true, -); - -set NSLinguisticTagParticle(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagParticle, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagParticle = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagPersonalName') -external NSLinguisticTag _NSLinguisticTagPersonalName; - -DartNSLinguisticTag get NSLinguisticTagPersonalName => - objc.NSString.fromPointer( - _NSLinguisticTagPersonalName, - retain: true, - release: true, - ); - -set NSLinguisticTagPersonalName(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagPersonalName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagPersonalName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagPlaceName') -external NSLinguisticTag _NSLinguisticTagPlaceName; - -DartNSLinguisticTag get NSLinguisticTagPlaceName => objc.NSString.fromPointer( - _NSLinguisticTagPlaceName, - retain: true, - release: true, -); - -set NSLinguisticTagPlaceName(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagPlaceName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagPlaceName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagPreposition') -external NSLinguisticTag _NSLinguisticTagPreposition; - -DartNSLinguisticTag get NSLinguisticTagPreposition => objc.NSString.fromPointer( - _NSLinguisticTagPreposition, - retain: true, - release: true, -); - -set NSLinguisticTagPreposition(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagPreposition, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagPreposition = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagPronoun') -external NSLinguisticTag _NSLinguisticTagPronoun; - -DartNSLinguisticTag get NSLinguisticTagPronoun => objc.NSString.fromPointer( - _NSLinguisticTagPronoun, - retain: true, - release: true, -); - -set NSLinguisticTagPronoun(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagPronoun, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagPronoun = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagPunctuation') -external NSLinguisticTag _NSLinguisticTagPunctuation; - -DartNSLinguisticTag get NSLinguisticTagPunctuation => objc.NSString.fromPointer( - _NSLinguisticTagPunctuation, - retain: true, - release: true, -); - -set NSLinguisticTagPunctuation(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagPunctuation, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagPunctuation = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeLanguage') -external NSLinguisticTagScheme _NSLinguisticTagSchemeLanguage; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeLanguage => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLanguage, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeLanguage(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLanguage, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeLanguage = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeLemma') -external NSLinguisticTagScheme _NSLinguisticTagSchemeLemma; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeLemma => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLemma, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeLemma(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLemma, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeLemma = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeLexicalClass') -external NSLinguisticTagScheme _NSLinguisticTagSchemeLexicalClass; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeLexicalClass => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLexicalClass, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeLexicalClass(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeLexicalClass, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeLexicalClass = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeNameType') -external NSLinguisticTagScheme _NSLinguisticTagSchemeNameType; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeNameType => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeNameType, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeNameType(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeNameType, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeNameType = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSLinguisticTagSchemeNameTypeOrLexicalClass', -) -external NSLinguisticTagScheme _NSLinguisticTagSchemeNameTypeOrLexicalClass; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeNameTypeOrLexicalClass => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeNameTypeOrLexicalClass, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeNameTypeOrLexicalClass( - DartNSLinguisticTagScheme value, -) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeNameTypeOrLexicalClass, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeNameTypeOrLexicalClass = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeScript') -external NSLinguisticTagScheme _NSLinguisticTagSchemeScript; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeScript => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeScript, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeScript(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeScript, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeScript = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSchemeTokenType') -external NSLinguisticTagScheme _NSLinguisticTagSchemeTokenType; - -DartNSLinguisticTagScheme get NSLinguisticTagSchemeTokenType => - objc.NSString.fromPointer( - _NSLinguisticTagSchemeTokenType, - retain: true, - release: true, - ); - -set NSLinguisticTagSchemeTokenType(DartNSLinguisticTagScheme value) { - objc.NSString.fromPointer( - _NSLinguisticTagSchemeTokenType, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSchemeTokenType = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagSentenceTerminator') -external NSLinguisticTag _NSLinguisticTagSentenceTerminator; - -DartNSLinguisticTag get NSLinguisticTagSentenceTerminator => - objc.NSString.fromPointer( - _NSLinguisticTagSentenceTerminator, - retain: true, - release: true, - ); - -set NSLinguisticTagSentenceTerminator(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagSentenceTerminator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagSentenceTerminator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagVerb') -external NSLinguisticTag _NSLinguisticTagVerb; - -DartNSLinguisticTag get NSLinguisticTagVerb => objc.NSString.fromPointer( - _NSLinguisticTagVerb, - retain: true, - release: true, -); - -set NSLinguisticTagVerb(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagVerb, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagVerb = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagWhitespace') -external NSLinguisticTag _NSLinguisticTagWhitespace; - -DartNSLinguisticTag get NSLinguisticTagWhitespace => objc.NSString.fromPointer( - _NSLinguisticTagWhitespace, - retain: true, - release: true, -); - -set NSLinguisticTagWhitespace(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagWhitespace, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagWhitespace = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagWord') -external NSLinguisticTag _NSLinguisticTagWord; - -DartNSLinguisticTag get NSLinguisticTagWord => objc.NSString.fromPointer( - _NSLinguisticTagWord, - retain: true, - release: true, -); - -set NSLinguisticTagWord(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagWord, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagWord = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLinguisticTagWordJoiner') -external NSLinguisticTag _NSLinguisticTagWordJoiner; - -DartNSLinguisticTag get NSLinguisticTagWordJoiner => objc.NSString.fromPointer( - _NSLinguisticTagWordJoiner, - retain: true, - release: true, -); - -set NSLinguisticTagWordJoiner(DartNSLinguisticTag value) { - objc.NSString.fromPointer( - _NSLinguisticTagWordJoiner, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLinguisticTagWordJoiner = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSListItemDelimiterAttributeName') -external NSAttributedStringKey _NSListItemDelimiterAttributeName; - -DartNSAttributedStringKey get NSListItemDelimiterAttributeName => - objc.NSString.fromPointer( - _NSListItemDelimiterAttributeName, - retain: true, - release: true, - ); - -set NSListItemDelimiterAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSListItemDelimiterAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSListItemDelimiterAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSLoadedClasses') -external ffi.Pointer _NSLoadedClasses; - -objc.NSString get NSLoadedClasses => - objc.NSString.fromPointer(_NSLoadedClasses, retain: true, release: true); - -set NSLoadedClasses(objc.NSString value) { - objc.NSString.fromPointer( - _NSLoadedClasses, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLoadedClasses = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSLocalNotificationCenterType', -) -external NSDistributedNotificationCenterType _NSLocalNotificationCenterType; - -DartNSDistributedNotificationCenterType get NSLocalNotificationCenterType => - objc.NSString.fromPointer( - _NSLocalNotificationCenterType, - retain: true, - release: true, - ); - -set NSLocalNotificationCenterType( - DartNSDistributedNotificationCenterType value, -) { - objc.NSString.fromPointer( - _NSLocalNotificationCenterType, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalNotificationCenterType = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleAlternateQuotationBeginDelimiterKey') -external NSLocaleKey _NSLocaleAlternateQuotationBeginDelimiterKey; - -DartNSLocaleKey get NSLocaleAlternateQuotationBeginDelimiterKey => - objc.NSString.fromPointer( - _NSLocaleAlternateQuotationBeginDelimiterKey, - retain: true, - release: true, - ); - -set NSLocaleAlternateQuotationBeginDelimiterKey(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleAlternateQuotationBeginDelimiterKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleAlternateQuotationBeginDelimiterKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleAlternateQuotationEndDelimiterKey') -external NSLocaleKey _NSLocaleAlternateQuotationEndDelimiterKey; - -DartNSLocaleKey get NSLocaleAlternateQuotationEndDelimiterKey => - objc.NSString.fromPointer( - _NSLocaleAlternateQuotationEndDelimiterKey, - retain: true, - release: true, - ); - -set NSLocaleAlternateQuotationEndDelimiterKey(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleAlternateQuotationEndDelimiterKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleAlternateQuotationEndDelimiterKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCalendar') -external NSLocaleKey _NSLocaleCalendar; - -DartNSLocaleKey get NSLocaleCalendar => - objc.NSString.fromPointer(_NSLocaleCalendar, retain: true, release: true); - -set NSLocaleCalendar(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCollationIdentifier') -external NSLocaleKey _NSLocaleCollationIdentifier; - -DartNSLocaleKey get NSLocaleCollationIdentifier => objc.NSString.fromPointer( - _NSLocaleCollationIdentifier, - retain: true, - release: true, -); - -set NSLocaleCollationIdentifier(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCollationIdentifier, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCollationIdentifier = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCollatorIdentifier') -external NSLocaleKey _NSLocaleCollatorIdentifier; - -DartNSLocaleKey get NSLocaleCollatorIdentifier => objc.NSString.fromPointer( - _NSLocaleCollatorIdentifier, - retain: true, - release: true, -); - -set NSLocaleCollatorIdentifier(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCollatorIdentifier, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCollatorIdentifier = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCountryCode') -external NSLocaleKey _NSLocaleCountryCode; - -DartNSLocaleKey get NSLocaleCountryCode => objc.NSString.fromPointer( - _NSLocaleCountryCode, - retain: true, - release: true, -); - -set NSLocaleCountryCode(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCountryCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCountryCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCurrencyCode') -external NSLocaleKey _NSLocaleCurrencyCode; - -DartNSLocaleKey get NSLocaleCurrencyCode => objc.NSString.fromPointer( - _NSLocaleCurrencyCode, - retain: true, - release: true, -); - -set NSLocaleCurrencyCode(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCurrencyCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCurrencyCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleCurrencySymbol') -external NSLocaleKey _NSLocaleCurrencySymbol; - -DartNSLocaleKey get NSLocaleCurrencySymbol => objc.NSString.fromPointer( - _NSLocaleCurrencySymbol, - retain: true, - release: true, -); - -set NSLocaleCurrencySymbol(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleCurrencySymbol, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleCurrencySymbol = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleDecimalSeparator') -external NSLocaleKey _NSLocaleDecimalSeparator; - -DartNSLocaleKey get NSLocaleDecimalSeparator => objc.NSString.fromPointer( - _NSLocaleDecimalSeparator, - retain: true, - release: true, -); - -set NSLocaleDecimalSeparator(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleDecimalSeparator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleDecimalSeparator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleExemplarCharacterSet') -external NSLocaleKey _NSLocaleExemplarCharacterSet; - -DartNSLocaleKey get NSLocaleExemplarCharacterSet => objc.NSString.fromPointer( - _NSLocaleExemplarCharacterSet, - retain: true, - release: true, -); - -set NSLocaleExemplarCharacterSet(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleExemplarCharacterSet, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleExemplarCharacterSet = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleGroupingSeparator') -external NSLocaleKey _NSLocaleGroupingSeparator; - -DartNSLocaleKey get NSLocaleGroupingSeparator => objc.NSString.fromPointer( - _NSLocaleGroupingSeparator, - retain: true, - release: true, -); - -set NSLocaleGroupingSeparator(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleGroupingSeparator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleGroupingSeparator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleIdentifier') -external NSLocaleKey _NSLocaleIdentifier; - -DartNSLocaleKey get NSLocaleIdentifier => - objc.NSString.fromPointer(_NSLocaleIdentifier, retain: true, release: true); - -set NSLocaleIdentifier(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleIdentifier, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleIdentifier = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleLanguageCode') -external NSLocaleKey _NSLocaleLanguageCode; - -DartNSLocaleKey get NSLocaleLanguageCode => objc.NSString.fromPointer( - _NSLocaleLanguageCode, - retain: true, - release: true, -); - -set NSLocaleLanguageCode(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleLanguageCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleLanguageCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleMeasurementSystem') -external NSLocaleKey _NSLocaleMeasurementSystem; - -DartNSLocaleKey get NSLocaleMeasurementSystem => objc.NSString.fromPointer( - _NSLocaleMeasurementSystem, - retain: true, - release: true, -); - -set NSLocaleMeasurementSystem(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleMeasurementSystem, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleMeasurementSystem = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleQuotationBeginDelimiterKey') -external NSLocaleKey _NSLocaleQuotationBeginDelimiterKey; - -DartNSLocaleKey get NSLocaleQuotationBeginDelimiterKey => - objc.NSString.fromPointer( - _NSLocaleQuotationBeginDelimiterKey, - retain: true, - release: true, - ); - -set NSLocaleQuotationBeginDelimiterKey(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleQuotationBeginDelimiterKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleQuotationBeginDelimiterKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleQuotationEndDelimiterKey') -external NSLocaleKey _NSLocaleQuotationEndDelimiterKey; - -DartNSLocaleKey get NSLocaleQuotationEndDelimiterKey => - objc.NSString.fromPointer( - _NSLocaleQuotationEndDelimiterKey, - retain: true, - release: true, - ); - -set NSLocaleQuotationEndDelimiterKey(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleQuotationEndDelimiterKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleQuotationEndDelimiterKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleScriptCode') -external NSLocaleKey _NSLocaleScriptCode; - -DartNSLocaleKey get NSLocaleScriptCode => - objc.NSString.fromPointer(_NSLocaleScriptCode, retain: true, release: true); - -set NSLocaleScriptCode(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleScriptCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleScriptCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleUsesMetricSystem') -external NSLocaleKey _NSLocaleUsesMetricSystem; - -DartNSLocaleKey get NSLocaleUsesMetricSystem => objc.NSString.fromPointer( - _NSLocaleUsesMetricSystem, - retain: true, - release: true, -); - -set NSLocaleUsesMetricSystem(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleUsesMetricSystem, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleUsesMetricSystem = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocaleVariantCode') -external NSLocaleKey _NSLocaleVariantCode; - -DartNSLocaleKey get NSLocaleVariantCode => objc.NSString.fromPointer( - _NSLocaleVariantCode, - retain: true, - release: true, -); - -set NSLocaleVariantCode(DartNSLocaleKey value) { - objc.NSString.fromPointer( - _NSLocaleVariantCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocaleVariantCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocalizedDescriptionKey') -external NSErrorUserInfoKey _NSLocalizedDescriptionKey; - -DartNSErrorUserInfoKey get NSLocalizedDescriptionKey => - objc.NSString.fromPointer( - _NSLocalizedDescriptionKey, - retain: true, - release: true, - ); - -set NSLocalizedDescriptionKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSLocalizedDescriptionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedDescriptionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocalizedFailureErrorKey') -external NSErrorUserInfoKey _NSLocalizedFailureErrorKey; - -DartNSErrorUserInfoKey get NSLocalizedFailureErrorKey => - objc.NSString.fromPointer( - _NSLocalizedFailureErrorKey, - retain: true, - release: true, - ); - -set NSLocalizedFailureErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSLocalizedFailureErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedFailureErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocalizedFailureReasonErrorKey') -external NSErrorUserInfoKey _NSLocalizedFailureReasonErrorKey; - -DartNSErrorUserInfoKey get NSLocalizedFailureReasonErrorKey => - objc.NSString.fromPointer( - _NSLocalizedFailureReasonErrorKey, - retain: true, - release: true, - ); - -set NSLocalizedFailureReasonErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSLocalizedFailureReasonErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedFailureReasonErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSLocalizedNumberFormatAttributeName', -) -external NSAttributedStringKey _NSLocalizedNumberFormatAttributeName; - -DartNSAttributedStringKey get NSLocalizedNumberFormatAttributeName => - objc.NSString.fromPointer( - _NSLocalizedNumberFormatAttributeName, - retain: true, - release: true, - ); - -set NSLocalizedNumberFormatAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSLocalizedNumberFormatAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedNumberFormatAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocalizedRecoveryOptionsErrorKey') -external NSErrorUserInfoKey _NSLocalizedRecoveryOptionsErrorKey; - -DartNSErrorUserInfoKey get NSLocalizedRecoveryOptionsErrorKey => - objc.NSString.fromPointer( - _NSLocalizedRecoveryOptionsErrorKey, - retain: true, - release: true, - ); - -set NSLocalizedRecoveryOptionsErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSLocalizedRecoveryOptionsErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedRecoveryOptionsErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSLocalizedRecoverySuggestionErrorKey') -external NSErrorUserInfoKey _NSLocalizedRecoverySuggestionErrorKey; - -DartNSErrorUserInfoKey get NSLocalizedRecoverySuggestionErrorKey => - objc.NSString.fromPointer( - _NSLocalizedRecoverySuggestionErrorKey, - retain: true, - release: true, - ); - -set NSLocalizedRecoverySuggestionErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSLocalizedRecoverySuggestionErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSLocalizedRecoverySuggestionErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSLog', -) -external void _NSLog(ffi.Pointer format); - -void NSLog(objc.NSString format) { - final _$$ref = format.ref; - return _NSLog(_$$ref.pointer); -} - -@ffi.Native() -external int NSLogPageSize(); - -@ffi.Native, va_list)>( - symbol: 'NSLogv', -) -external void _NSLogv(ffi.Pointer format, va_list args); - -void NSLogv(objc.NSString format, va_list args) { - final _$$ref = format.ref; - return _NSLogv(_$$ref.pointer, args); -} - -@ffi.Native(symbol: 'NSMachErrorDomain') -external NSErrorDomain _NSMachErrorDomain; - -DartNSErrorDomain get NSMachErrorDomain => - objc.NSString.fromPointer(_NSMachErrorDomain, retain: true, release: true); - -set NSMachErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSMachErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMachErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSMallocException') -external NSExceptionName _NSMallocException; - -DartNSExceptionName get NSMallocException => - objc.NSString.fromPointer(_NSMallocException, retain: true, release: true); - -set NSMallocException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSMallocException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMallocException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSMapGet') -external ffi.Pointer _NSMapGet( - ffi.Pointer table, - ffi.Pointer key, -); - -ffi.Pointer NSMapGet(NSMapTable table, ffi.Pointer key) { - final _$$ref = table.ref; - return _NSMapGet(_$$ref.pointer, key); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSMapInsert') -external void _NSMapInsert( - ffi.Pointer table, - ffi.Pointer key, - ffi.Pointer value, -); - -void NSMapInsert( - NSMapTable table, - ffi.Pointer key, - ffi.Pointer value, -) { - final _$$ref = table.ref; - return _NSMapInsert(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSMapInsertIfAbsent') -external ffi.Pointer _NSMapInsertIfAbsent( - ffi.Pointer table, - ffi.Pointer key, - ffi.Pointer value, -); - -ffi.Pointer NSMapInsertIfAbsent( - NSMapTable table, - ffi.Pointer key, - ffi.Pointer value, -) { - final _$$ref = table.ref; - return _NSMapInsertIfAbsent(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'NSMapInsertKnownAbsent') -external void _NSMapInsertKnownAbsent( - ffi.Pointer table, - ffi.Pointer key, - ffi.Pointer value, -); - -void NSMapInsertKnownAbsent( - NSMapTable table, - ffi.Pointer key, - ffi.Pointer value, -) { - final _$$ref = table.ref; - return _NSMapInsertKnownAbsent(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) ->(symbol: 'NSMapMember') -external bool _NSMapMember( - ffi.Pointer table, - ffi.Pointer key, - ffi.Pointer> originalKey, - ffi.Pointer> value, -); - -bool NSMapMember( - NSMapTable table, - ffi.Pointer key, - ffi.Pointer> originalKey, - ffi.Pointer> value, -) { - final _$$ref = table.ref; - return _NSMapMember(_$$ref.pointer, key, originalKey, value); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSMapRemove') -external void _NSMapRemove( - ffi.Pointer table, - ffi.Pointer key, -); - -void NSMapRemove(NSMapTable table, ffi.Pointer key) { - final _$$ref = table.ref; - return _NSMapRemove(_$$ref.pointer, key); -} - -@ffi.Native( - symbol: 'NSMarkdownSourcePositionAttributeName', -) -external NSAttributedStringKey _NSMarkdownSourcePositionAttributeName; - -DartNSAttributedStringKey get NSMarkdownSourcePositionAttributeName => - objc.NSString.fromPointer( - _NSMarkdownSourcePositionAttributeName, - retain: true, - release: true, - ); - -set NSMarkdownSourcePositionAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSMarkdownSourcePositionAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMarkdownSourcePositionAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSMaximumKeyValueOperator') -external NSKeyValueOperator _NSMaximumKeyValueOperator; - -DartNSKeyValueOperator get NSMaximumKeyValueOperator => - objc.NSString.fromPointer( - _NSMaximumKeyValueOperator, - retain: true, - release: true, - ); - -set NSMaximumKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSMaximumKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMaximumKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAcquisitionMakeKey', -) -external ffi.Pointer _NSMetadataItemAcquisitionMakeKey; - -objc.NSString get NSMetadataItemAcquisitionMakeKey => objc.NSString.fromPointer( - _NSMetadataItemAcquisitionMakeKey, - retain: true, - release: true, -); - -set NSMetadataItemAcquisitionMakeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAcquisitionMakeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAcquisitionMakeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAcquisitionModelKey', -) -external ffi.Pointer _NSMetadataItemAcquisitionModelKey; - -objc.NSString get NSMetadataItemAcquisitionModelKey => - objc.NSString.fromPointer( - _NSMetadataItemAcquisitionModelKey, - retain: true, - release: true, - ); - -set NSMetadataItemAcquisitionModelKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAcquisitionModelKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAcquisitionModelKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemAlbumKey') -external ffi.Pointer _NSMetadataItemAlbumKey; - -objc.NSString get NSMetadataItemAlbumKey => objc.NSString.fromPointer( - _NSMetadataItemAlbumKey, - retain: true, - release: true, -); - -set NSMetadataItemAlbumKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAlbumKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAlbumKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAltitudeKey', -) -external ffi.Pointer _NSMetadataItemAltitudeKey; - -objc.NSString get NSMetadataItemAltitudeKey => objc.NSString.fromPointer( - _NSMetadataItemAltitudeKey, - retain: true, - release: true, -); - -set NSMetadataItemAltitudeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAltitudeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAltitudeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemApertureKey', -) -external ffi.Pointer _NSMetadataItemApertureKey; - -objc.NSString get NSMetadataItemApertureKey => objc.NSString.fromPointer( - _NSMetadataItemApertureKey, - retain: true, - release: true, -); - -set NSMetadataItemApertureKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemApertureKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemApertureKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAppleLoopDescriptorsKey', -) -external ffi.Pointer -_NSMetadataItemAppleLoopDescriptorsKey; - -objc.NSString get NSMetadataItemAppleLoopDescriptorsKey => - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopDescriptorsKey, - retain: true, - release: true, - ); - -set NSMetadataItemAppleLoopDescriptorsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopDescriptorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAppleLoopDescriptorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAppleLoopsKeyFilterTypeKey', -) -external ffi.Pointer -_NSMetadataItemAppleLoopsKeyFilterTypeKey; - -objc.NSString get NSMetadataItemAppleLoopsKeyFilterTypeKey => - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsKeyFilterTypeKey, - retain: true, - release: true, - ); - -set NSMetadataItemAppleLoopsKeyFilterTypeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsKeyFilterTypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAppleLoopsKeyFilterTypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAppleLoopsLoopModeKey', -) -external ffi.Pointer _NSMetadataItemAppleLoopsLoopModeKey; - -objc.NSString get NSMetadataItemAppleLoopsLoopModeKey => - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsLoopModeKey, - retain: true, - release: true, - ); - -set NSMetadataItemAppleLoopsLoopModeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsLoopModeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAppleLoopsLoopModeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAppleLoopsRootKeyKey', -) -external ffi.Pointer _NSMetadataItemAppleLoopsRootKeyKey; - -objc.NSString get NSMetadataItemAppleLoopsRootKeyKey => - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsRootKeyKey, - retain: true, - release: true, - ); - -set NSMetadataItemAppleLoopsRootKeyKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAppleLoopsRootKeyKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAppleLoopsRootKeyKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemApplicationCategoriesKey', -) -external ffi.Pointer -_NSMetadataItemApplicationCategoriesKey; - -objc.NSString get NSMetadataItemApplicationCategoriesKey => - objc.NSString.fromPointer( - _NSMetadataItemApplicationCategoriesKey, - retain: true, - release: true, - ); - -set NSMetadataItemApplicationCategoriesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemApplicationCategoriesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemApplicationCategoriesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAttributeChangeDateKey', -) -external ffi.Pointer _NSMetadataItemAttributeChangeDateKey; - -objc.NSString get NSMetadataItemAttributeChangeDateKey => - objc.NSString.fromPointer( - _NSMetadataItemAttributeChangeDateKey, - retain: true, - release: true, - ); - -set NSMetadataItemAttributeChangeDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAttributeChangeDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAttributeChangeDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudiencesKey', -) -external ffi.Pointer _NSMetadataItemAudiencesKey; - -objc.NSString get NSMetadataItemAudiencesKey => objc.NSString.fromPointer( - _NSMetadataItemAudiencesKey, - retain: true, - release: true, -); - -set NSMetadataItemAudiencesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudiencesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudiencesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudioBitRateKey', -) -external ffi.Pointer _NSMetadataItemAudioBitRateKey; - -objc.NSString get NSMetadataItemAudioBitRateKey => objc.NSString.fromPointer( - _NSMetadataItemAudioBitRateKey, - retain: true, - release: true, -); - -set NSMetadataItemAudioBitRateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudioBitRateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudioBitRateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudioChannelCountKey', -) -external ffi.Pointer _NSMetadataItemAudioChannelCountKey; - -objc.NSString get NSMetadataItemAudioChannelCountKey => - objc.NSString.fromPointer( - _NSMetadataItemAudioChannelCountKey, - retain: true, - release: true, - ); - -set NSMetadataItemAudioChannelCountKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudioChannelCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudioChannelCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudioEncodingApplicationKey', -) -external ffi.Pointer -_NSMetadataItemAudioEncodingApplicationKey; - -objc.NSString get NSMetadataItemAudioEncodingApplicationKey => - objc.NSString.fromPointer( - _NSMetadataItemAudioEncodingApplicationKey, - retain: true, - release: true, - ); - -set NSMetadataItemAudioEncodingApplicationKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudioEncodingApplicationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudioEncodingApplicationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudioSampleRateKey', -) -external ffi.Pointer _NSMetadataItemAudioSampleRateKey; - -objc.NSString get NSMetadataItemAudioSampleRateKey => objc.NSString.fromPointer( - _NSMetadataItemAudioSampleRateKey, - retain: true, - release: true, -); - -set NSMetadataItemAudioSampleRateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudioSampleRateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudioSampleRateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAudioTrackNumberKey', -) -external ffi.Pointer _NSMetadataItemAudioTrackNumberKey; - -objc.NSString get NSMetadataItemAudioTrackNumberKey => - objc.NSString.fromPointer( - _NSMetadataItemAudioTrackNumberKey, - retain: true, - release: true, - ); - -set NSMetadataItemAudioTrackNumberKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAudioTrackNumberKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAudioTrackNumberKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAuthorAddressesKey', -) -external ffi.Pointer _NSMetadataItemAuthorAddressesKey; - -objc.NSString get NSMetadataItemAuthorAddressesKey => objc.NSString.fromPointer( - _NSMetadataItemAuthorAddressesKey, - retain: true, - release: true, -); - -set NSMetadataItemAuthorAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAuthorAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAuthorAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAuthorEmailAddressesKey', -) -external ffi.Pointer -_NSMetadataItemAuthorEmailAddressesKey; - -objc.NSString get NSMetadataItemAuthorEmailAddressesKey => - objc.NSString.fromPointer( - _NSMetadataItemAuthorEmailAddressesKey, - retain: true, - release: true, - ); - -set NSMetadataItemAuthorEmailAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAuthorEmailAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAuthorEmailAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemAuthorsKey', -) -external ffi.Pointer _NSMetadataItemAuthorsKey; - -objc.NSString get NSMetadataItemAuthorsKey => objc.NSString.fromPointer( - _NSMetadataItemAuthorsKey, - retain: true, - release: true, -); - -set NSMetadataItemAuthorsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemAuthorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemAuthorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemBitsPerSampleKey', -) -external ffi.Pointer _NSMetadataItemBitsPerSampleKey; - -objc.NSString get NSMetadataItemBitsPerSampleKey => objc.NSString.fromPointer( - _NSMetadataItemBitsPerSampleKey, - retain: true, - release: true, -); - -set NSMetadataItemBitsPerSampleKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemBitsPerSampleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemBitsPerSampleKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCFBundleIdentifierKey', -) -external ffi.Pointer _NSMetadataItemCFBundleIdentifierKey; - -objc.NSString get NSMetadataItemCFBundleIdentifierKey => - objc.NSString.fromPointer( - _NSMetadataItemCFBundleIdentifierKey, - retain: true, - release: true, - ); - -set NSMetadataItemCFBundleIdentifierKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCFBundleIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCFBundleIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCameraOwnerKey', -) -external ffi.Pointer _NSMetadataItemCameraOwnerKey; - -objc.NSString get NSMetadataItemCameraOwnerKey => objc.NSString.fromPointer( - _NSMetadataItemCameraOwnerKey, - retain: true, - release: true, -); - -set NSMetadataItemCameraOwnerKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCameraOwnerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCameraOwnerKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemCityKey') -external ffi.Pointer _NSMetadataItemCityKey; - -objc.NSString get NSMetadataItemCityKey => objc.NSString.fromPointer( - _NSMetadataItemCityKey, - retain: true, - release: true, -); - -set NSMetadataItemCityKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemCodecsKey') -external ffi.Pointer _NSMetadataItemCodecsKey; - -objc.NSString get NSMetadataItemCodecsKey => objc.NSString.fromPointer( - _NSMetadataItemCodecsKey, - retain: true, - release: true, -); - -set NSMetadataItemCodecsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCodecsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCodecsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemColorSpaceKey', -) -external ffi.Pointer _NSMetadataItemColorSpaceKey; - -objc.NSString get NSMetadataItemColorSpaceKey => objc.NSString.fromPointer( - _NSMetadataItemColorSpaceKey, - retain: true, - release: true, -); - -set NSMetadataItemColorSpaceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemColorSpaceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemColorSpaceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCommentKey', -) -external ffi.Pointer _NSMetadataItemCommentKey; - -objc.NSString get NSMetadataItemCommentKey => objc.NSString.fromPointer( - _NSMetadataItemCommentKey, - retain: true, - release: true, -); - -set NSMetadataItemCommentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCommentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCommentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemComposerKey', -) -external ffi.Pointer _NSMetadataItemComposerKey; - -objc.NSString get NSMetadataItemComposerKey => objc.NSString.fromPointer( - _NSMetadataItemComposerKey, - retain: true, - release: true, -); - -set NSMetadataItemComposerKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemComposerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemComposerKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContactKeywordsKey', -) -external ffi.Pointer _NSMetadataItemContactKeywordsKey; - -objc.NSString get NSMetadataItemContactKeywordsKey => objc.NSString.fromPointer( - _NSMetadataItemContactKeywordsKey, - retain: true, - release: true, -); - -set NSMetadataItemContactKeywordsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContactKeywordsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContactKeywordsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContentCreationDateKey', -) -external ffi.Pointer _NSMetadataItemContentCreationDateKey; - -objc.NSString get NSMetadataItemContentCreationDateKey => - objc.NSString.fromPointer( - _NSMetadataItemContentCreationDateKey, - retain: true, - release: true, - ); - -set NSMetadataItemContentCreationDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContentCreationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContentCreationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContentModificationDateKey', -) -external ffi.Pointer -_NSMetadataItemContentModificationDateKey; - -objc.NSString get NSMetadataItemContentModificationDateKey => - objc.NSString.fromPointer( - _NSMetadataItemContentModificationDateKey, - retain: true, - release: true, - ); - -set NSMetadataItemContentModificationDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContentModificationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContentModificationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContentTypeKey', -) -external ffi.Pointer _NSMetadataItemContentTypeKey; - -objc.NSString get NSMetadataItemContentTypeKey => objc.NSString.fromPointer( - _NSMetadataItemContentTypeKey, - retain: true, - release: true, -); - -set NSMetadataItemContentTypeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContentTypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContentTypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContentTypeTreeKey', -) -external ffi.Pointer _NSMetadataItemContentTypeTreeKey; - -objc.NSString get NSMetadataItemContentTypeTreeKey => objc.NSString.fromPointer( - _NSMetadataItemContentTypeTreeKey, - retain: true, - release: true, -); - -set NSMetadataItemContentTypeTreeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContentTypeTreeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContentTypeTreeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemContributorsKey', -) -external ffi.Pointer _NSMetadataItemContributorsKey; - -objc.NSString get NSMetadataItemContributorsKey => objc.NSString.fromPointer( - _NSMetadataItemContributorsKey, - retain: true, - release: true, -); - -set NSMetadataItemContributorsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemContributorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemContributorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCopyrightKey', -) -external ffi.Pointer _NSMetadataItemCopyrightKey; - -objc.NSString get NSMetadataItemCopyrightKey => objc.NSString.fromPointer( - _NSMetadataItemCopyrightKey, - retain: true, - release: true, -); - -set NSMetadataItemCopyrightKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCopyrightKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCopyrightKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCountryKey', -) -external ffi.Pointer _NSMetadataItemCountryKey; - -objc.NSString get NSMetadataItemCountryKey => objc.NSString.fromPointer( - _NSMetadataItemCountryKey, - retain: true, - release: true, -); - -set NSMetadataItemCountryKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCountryKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCountryKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCoverageKey', -) -external ffi.Pointer _NSMetadataItemCoverageKey; - -objc.NSString get NSMetadataItemCoverageKey => objc.NSString.fromPointer( - _NSMetadataItemCoverageKey, - retain: true, - release: true, -); - -set NSMetadataItemCoverageKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCoverageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCoverageKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemCreatorKey', -) -external ffi.Pointer _NSMetadataItemCreatorKey; - -objc.NSString get NSMetadataItemCreatorKey => objc.NSString.fromPointer( - _NSMetadataItemCreatorKey, - retain: true, - release: true, -); - -set NSMetadataItemCreatorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemCreatorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemCreatorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDateAddedKey', -) -external ffi.Pointer _NSMetadataItemDateAddedKey; - -objc.NSString get NSMetadataItemDateAddedKey => objc.NSString.fromPointer( - _NSMetadataItemDateAddedKey, - retain: true, - release: true, -); - -set NSMetadataItemDateAddedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDateAddedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDateAddedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDeliveryTypeKey', -) -external ffi.Pointer _NSMetadataItemDeliveryTypeKey; - -objc.NSString get NSMetadataItemDeliveryTypeKey => objc.NSString.fromPointer( - _NSMetadataItemDeliveryTypeKey, - retain: true, - release: true, -); - -set NSMetadataItemDeliveryTypeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDeliveryTypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDeliveryTypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDescriptionKey', -) -external ffi.Pointer _NSMetadataItemDescriptionKey; - -objc.NSString get NSMetadataItemDescriptionKey => objc.NSString.fromPointer( - _NSMetadataItemDescriptionKey, - retain: true, - release: true, -); - -set NSMetadataItemDescriptionKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDescriptionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDescriptionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDirectorKey', -) -external ffi.Pointer _NSMetadataItemDirectorKey; - -objc.NSString get NSMetadataItemDirectorKey => objc.NSString.fromPointer( - _NSMetadataItemDirectorKey, - retain: true, - release: true, -); - -set NSMetadataItemDirectorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDirectorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDirectorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDisplayNameKey', -) -external ffi.Pointer _NSMetadataItemDisplayNameKey; - -objc.NSString get NSMetadataItemDisplayNameKey => objc.NSString.fromPointer( - _NSMetadataItemDisplayNameKey, - retain: true, - release: true, -); - -set NSMetadataItemDisplayNameKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDisplayNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDisplayNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDownloadedDateKey', -) -external ffi.Pointer _NSMetadataItemDownloadedDateKey; - -objc.NSString get NSMetadataItemDownloadedDateKey => objc.NSString.fromPointer( - _NSMetadataItemDownloadedDateKey, - retain: true, - release: true, -); - -set NSMetadataItemDownloadedDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDownloadedDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDownloadedDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDueDateKey', -) -external ffi.Pointer _NSMetadataItemDueDateKey; - -objc.NSString get NSMetadataItemDueDateKey => objc.NSString.fromPointer( - _NSMetadataItemDueDateKey, - retain: true, - release: true, -); - -set NSMetadataItemDueDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDueDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDueDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemDurationSecondsKey', -) -external ffi.Pointer _NSMetadataItemDurationSecondsKey; - -objc.NSString get NSMetadataItemDurationSecondsKey => objc.NSString.fromPointer( - _NSMetadataItemDurationSecondsKey, - retain: true, - release: true, -); - -set NSMetadataItemDurationSecondsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemDurationSecondsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemDurationSecondsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemEXIFGPSVersionKey', -) -external ffi.Pointer _NSMetadataItemEXIFGPSVersionKey; - -objc.NSString get NSMetadataItemEXIFGPSVersionKey => objc.NSString.fromPointer( - _NSMetadataItemEXIFGPSVersionKey, - retain: true, - release: true, -); - -set NSMetadataItemEXIFGPSVersionKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemEXIFGPSVersionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemEXIFGPSVersionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemEXIFVersionKey', -) -external ffi.Pointer _NSMetadataItemEXIFVersionKey; - -objc.NSString get NSMetadataItemEXIFVersionKey => objc.NSString.fromPointer( - _NSMetadataItemEXIFVersionKey, - retain: true, - release: true, -); - -set NSMetadataItemEXIFVersionKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemEXIFVersionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemEXIFVersionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemEditorsKey', -) -external ffi.Pointer _NSMetadataItemEditorsKey; - -objc.NSString get NSMetadataItemEditorsKey => objc.NSString.fromPointer( - _NSMetadataItemEditorsKey, - retain: true, - release: true, -); - -set NSMetadataItemEditorsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemEditorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemEditorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemEmailAddressesKey', -) -external ffi.Pointer _NSMetadataItemEmailAddressesKey; - -objc.NSString get NSMetadataItemEmailAddressesKey => objc.NSString.fromPointer( - _NSMetadataItemEmailAddressesKey, - retain: true, - release: true, -); - -set NSMetadataItemEmailAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemEmailAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemEmailAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemEncodingApplicationsKey', -) -external ffi.Pointer -_NSMetadataItemEncodingApplicationsKey; - -objc.NSString get NSMetadataItemEncodingApplicationsKey => - objc.NSString.fromPointer( - _NSMetadataItemEncodingApplicationsKey, - retain: true, - release: true, - ); - -set NSMetadataItemEncodingApplicationsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemEncodingApplicationsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemEncodingApplicationsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExecutableArchitecturesKey', -) -external ffi.Pointer -_NSMetadataItemExecutableArchitecturesKey; - -objc.NSString get NSMetadataItemExecutableArchitecturesKey => - objc.NSString.fromPointer( - _NSMetadataItemExecutableArchitecturesKey, - retain: true, - release: true, - ); - -set NSMetadataItemExecutableArchitecturesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExecutableArchitecturesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExecutableArchitecturesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExecutablePlatformKey', -) -external ffi.Pointer _NSMetadataItemExecutablePlatformKey; - -objc.NSString get NSMetadataItemExecutablePlatformKey => - objc.NSString.fromPointer( - _NSMetadataItemExecutablePlatformKey, - retain: true, - release: true, - ); - -set NSMetadataItemExecutablePlatformKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExecutablePlatformKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExecutablePlatformKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExposureModeKey', -) -external ffi.Pointer _NSMetadataItemExposureModeKey; - -objc.NSString get NSMetadataItemExposureModeKey => objc.NSString.fromPointer( - _NSMetadataItemExposureModeKey, - retain: true, - release: true, -); - -set NSMetadataItemExposureModeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExposureModeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExposureModeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExposureProgramKey', -) -external ffi.Pointer _NSMetadataItemExposureProgramKey; - -objc.NSString get NSMetadataItemExposureProgramKey => objc.NSString.fromPointer( - _NSMetadataItemExposureProgramKey, - retain: true, - release: true, -); - -set NSMetadataItemExposureProgramKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExposureProgramKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExposureProgramKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExposureTimeSecondsKey', -) -external ffi.Pointer _NSMetadataItemExposureTimeSecondsKey; - -objc.NSString get NSMetadataItemExposureTimeSecondsKey => - objc.NSString.fromPointer( - _NSMetadataItemExposureTimeSecondsKey, - retain: true, - release: true, - ); - -set NSMetadataItemExposureTimeSecondsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExposureTimeSecondsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExposureTimeSecondsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemExposureTimeStringKey', -) -external ffi.Pointer _NSMetadataItemExposureTimeStringKey; - -objc.NSString get NSMetadataItemExposureTimeStringKey => - objc.NSString.fromPointer( - _NSMetadataItemExposureTimeStringKey, - retain: true, - release: true, - ); - -set NSMetadataItemExposureTimeStringKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemExposureTimeStringKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemExposureTimeStringKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFNumberKey', -) -external ffi.Pointer _NSMetadataItemFNumberKey; - -objc.NSString get NSMetadataItemFNumberKey => objc.NSString.fromPointer( - _NSMetadataItemFNumberKey, - retain: true, - release: true, -); - -set NSMetadataItemFNumberKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFNumberKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFNumberKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFSContentChangeDateKey', -) -external ffi.Pointer _NSMetadataItemFSContentChangeDateKey; - -objc.NSString get NSMetadataItemFSContentChangeDateKey => - objc.NSString.fromPointer( - _NSMetadataItemFSContentChangeDateKey, - retain: true, - release: true, - ); - -set NSMetadataItemFSContentChangeDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFSContentChangeDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFSContentChangeDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFSCreationDateKey', -) -external ffi.Pointer _NSMetadataItemFSCreationDateKey; - -objc.NSString get NSMetadataItemFSCreationDateKey => objc.NSString.fromPointer( - _NSMetadataItemFSCreationDateKey, - retain: true, - release: true, -); - -set NSMetadataItemFSCreationDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFSCreationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFSCreationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemFSNameKey') -external ffi.Pointer _NSMetadataItemFSNameKey; - -objc.NSString get NSMetadataItemFSNameKey => objc.NSString.fromPointer( - _NSMetadataItemFSNameKey, - retain: true, - release: true, -); - -set NSMetadataItemFSNameKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFSNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFSNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemFSSizeKey') -external ffi.Pointer _NSMetadataItemFSSizeKey; - -objc.NSString get NSMetadataItemFSSizeKey => objc.NSString.fromPointer( - _NSMetadataItemFSSizeKey, - retain: true, - release: true, -); - -set NSMetadataItemFSSizeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFSSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFSSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFinderCommentKey', -) -external ffi.Pointer _NSMetadataItemFinderCommentKey; - -objc.NSString get NSMetadataItemFinderCommentKey => objc.NSString.fromPointer( - _NSMetadataItemFinderCommentKey, - retain: true, - release: true, -); - -set NSMetadataItemFinderCommentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFinderCommentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFinderCommentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFlashOnOffKey', -) -external ffi.Pointer _NSMetadataItemFlashOnOffKey; - -objc.NSString get NSMetadataItemFlashOnOffKey => objc.NSString.fromPointer( - _NSMetadataItemFlashOnOffKey, - retain: true, - release: true, -); - -set NSMetadataItemFlashOnOffKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFlashOnOffKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFlashOnOffKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFocalLength35mmKey', -) -external ffi.Pointer _NSMetadataItemFocalLength35mmKey; - -objc.NSString get NSMetadataItemFocalLength35mmKey => objc.NSString.fromPointer( - _NSMetadataItemFocalLength35mmKey, - retain: true, - release: true, -); - -set NSMetadataItemFocalLength35mmKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFocalLength35mmKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFocalLength35mmKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemFocalLengthKey', -) -external ffi.Pointer _NSMetadataItemFocalLengthKey; - -objc.NSString get NSMetadataItemFocalLengthKey => objc.NSString.fromPointer( - _NSMetadataItemFocalLengthKey, - retain: true, - release: true, -); - -set NSMetadataItemFocalLengthKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFocalLengthKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFocalLengthKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemFontsKey') -external ffi.Pointer _NSMetadataItemFontsKey; - -objc.NSString get NSMetadataItemFontsKey => objc.NSString.fromPointer( - _NSMetadataItemFontsKey, - retain: true, - release: true, -); - -set NSMetadataItemFontsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemFontsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemFontsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSAreaInformationKey', -) -external ffi.Pointer _NSMetadataItemGPSAreaInformationKey; - -objc.NSString get NSMetadataItemGPSAreaInformationKey => - objc.NSString.fromPointer( - _NSMetadataItemGPSAreaInformationKey, - retain: true, - release: true, - ); - -set NSMetadataItemGPSAreaInformationKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSAreaInformationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSAreaInformationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemGPSDOPKey') -external ffi.Pointer _NSMetadataItemGPSDOPKey; - -objc.NSString get NSMetadataItemGPSDOPKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDOPKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDOPKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDOPKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDOPKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDateStampKey', -) -external ffi.Pointer _NSMetadataItemGPSDateStampKey; - -objc.NSString get NSMetadataItemGPSDateStampKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDateStampKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDateStampKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDateStampKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDateStampKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDestBearingKey', -) -external ffi.Pointer _NSMetadataItemGPSDestBearingKey; - -objc.NSString get NSMetadataItemGPSDestBearingKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDestBearingKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDestBearingKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDestBearingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDestBearingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDestDistanceKey', -) -external ffi.Pointer _NSMetadataItemGPSDestDistanceKey; - -objc.NSString get NSMetadataItemGPSDestDistanceKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDestDistanceKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDestDistanceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDestDistanceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDestDistanceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDestLatitudeKey', -) -external ffi.Pointer _NSMetadataItemGPSDestLatitudeKey; - -objc.NSString get NSMetadataItemGPSDestLatitudeKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDestLatitudeKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDestLatitudeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDestLatitudeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDestLatitudeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDestLongitudeKey', -) -external ffi.Pointer _NSMetadataItemGPSDestLongitudeKey; - -objc.NSString get NSMetadataItemGPSDestLongitudeKey => - objc.NSString.fromPointer( - _NSMetadataItemGPSDestLongitudeKey, - retain: true, - release: true, - ); - -set NSMetadataItemGPSDestLongitudeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDestLongitudeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDestLongitudeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSDifferentalKey', -) -external ffi.Pointer _NSMetadataItemGPSDifferentalKey; - -objc.NSString get NSMetadataItemGPSDifferentalKey => objc.NSString.fromPointer( - _NSMetadataItemGPSDifferentalKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSDifferentalKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSDifferentalKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSDifferentalKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSMapDatumKey', -) -external ffi.Pointer _NSMetadataItemGPSMapDatumKey; - -objc.NSString get NSMetadataItemGPSMapDatumKey => objc.NSString.fromPointer( - _NSMetadataItemGPSMapDatumKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSMapDatumKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSMapDatumKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSMapDatumKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSMeasureModeKey', -) -external ffi.Pointer _NSMetadataItemGPSMeasureModeKey; - -objc.NSString get NSMetadataItemGPSMeasureModeKey => objc.NSString.fromPointer( - _NSMetadataItemGPSMeasureModeKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSMeasureModeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSMeasureModeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSMeasureModeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSProcessingMethodKey', -) -external ffi.Pointer _NSMetadataItemGPSProcessingMethodKey; - -objc.NSString get NSMetadataItemGPSProcessingMethodKey => - objc.NSString.fromPointer( - _NSMetadataItemGPSProcessingMethodKey, - retain: true, - release: true, - ); - -set NSMetadataItemGPSProcessingMethodKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSProcessingMethodKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSProcessingMethodKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSStatusKey', -) -external ffi.Pointer _NSMetadataItemGPSStatusKey; - -objc.NSString get NSMetadataItemGPSStatusKey => objc.NSString.fromPointer( - _NSMetadataItemGPSStatusKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSStatusKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSStatusKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSStatusKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemGPSTrackKey', -) -external ffi.Pointer _NSMetadataItemGPSTrackKey; - -objc.NSString get NSMetadataItemGPSTrackKey => objc.NSString.fromPointer( - _NSMetadataItemGPSTrackKey, - retain: true, - release: true, -); - -set NSMetadataItemGPSTrackKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGPSTrackKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGPSTrackKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemGenreKey') -external ffi.Pointer _NSMetadataItemGenreKey; - -objc.NSString get NSMetadataItemGenreKey => objc.NSString.fromPointer( - _NSMetadataItemGenreKey, - retain: true, - release: true, -); - -set NSMetadataItemGenreKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemGenreKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemGenreKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemHasAlphaChannelKey', -) -external ffi.Pointer _NSMetadataItemHasAlphaChannelKey; - -objc.NSString get NSMetadataItemHasAlphaChannelKey => objc.NSString.fromPointer( - _NSMetadataItemHasAlphaChannelKey, - retain: true, - release: true, -); - -set NSMetadataItemHasAlphaChannelKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemHasAlphaChannelKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemHasAlphaChannelKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemHeadlineKey', -) -external ffi.Pointer _NSMetadataItemHeadlineKey; - -objc.NSString get NSMetadataItemHeadlineKey => objc.NSString.fromPointer( - _NSMetadataItemHeadlineKey, - retain: true, - release: true, -); - -set NSMetadataItemHeadlineKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemHeadlineKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemHeadlineKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemISOSpeedKey', -) -external ffi.Pointer _NSMetadataItemISOSpeedKey; - -objc.NSString get NSMetadataItemISOSpeedKey => objc.NSString.fromPointer( - _NSMetadataItemISOSpeedKey, - retain: true, - release: true, -); - -set NSMetadataItemISOSpeedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemISOSpeedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemISOSpeedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemIdentifierKey', -) -external ffi.Pointer _NSMetadataItemIdentifierKey; - -objc.NSString get NSMetadataItemIdentifierKey => objc.NSString.fromPointer( - _NSMetadataItemIdentifierKey, - retain: true, - release: true, -); - -set NSMetadataItemIdentifierKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemImageDirectionKey', -) -external ffi.Pointer _NSMetadataItemImageDirectionKey; - -objc.NSString get NSMetadataItemImageDirectionKey => objc.NSString.fromPointer( - _NSMetadataItemImageDirectionKey, - retain: true, - release: true, -); - -set NSMetadataItemImageDirectionKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemImageDirectionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemImageDirectionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemInformationKey', -) -external ffi.Pointer _NSMetadataItemInformationKey; - -objc.NSString get NSMetadataItemInformationKey => objc.NSString.fromPointer( - _NSMetadataItemInformationKey, - retain: true, - release: true, -); - -set NSMetadataItemInformationKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemInformationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemInformationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemInstantMessageAddressesKey', -) -external ffi.Pointer -_NSMetadataItemInstantMessageAddressesKey; - -objc.NSString get NSMetadataItemInstantMessageAddressesKey => - objc.NSString.fromPointer( - _NSMetadataItemInstantMessageAddressesKey, - retain: true, - release: true, - ); - -set NSMetadataItemInstantMessageAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemInstantMessageAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemInstantMessageAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemInstructionsKey', -) -external ffi.Pointer _NSMetadataItemInstructionsKey; - -objc.NSString get NSMetadataItemInstructionsKey => objc.NSString.fromPointer( - _NSMetadataItemInstructionsKey, - retain: true, - release: true, -); - -set NSMetadataItemInstructionsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemInstructionsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemInstructionsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemIsApplicationManagedKey', -) -external ffi.Pointer -_NSMetadataItemIsApplicationManagedKey; - -objc.NSString get NSMetadataItemIsApplicationManagedKey => - objc.NSString.fromPointer( - _NSMetadataItemIsApplicationManagedKey, - retain: true, - release: true, - ); - -set NSMetadataItemIsApplicationManagedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemIsApplicationManagedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemIsApplicationManagedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemIsGeneralMIDISequenceKey', -) -external ffi.Pointer -_NSMetadataItemIsGeneralMIDISequenceKey; - -objc.NSString get NSMetadataItemIsGeneralMIDISequenceKey => - objc.NSString.fromPointer( - _NSMetadataItemIsGeneralMIDISequenceKey, - retain: true, - release: true, - ); - -set NSMetadataItemIsGeneralMIDISequenceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemIsGeneralMIDISequenceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemIsGeneralMIDISequenceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemIsLikelyJunkKey', -) -external ffi.Pointer _NSMetadataItemIsLikelyJunkKey; - -objc.NSString get NSMetadataItemIsLikelyJunkKey => objc.NSString.fromPointer( - _NSMetadataItemIsLikelyJunkKey, - retain: true, - release: true, -); - -set NSMetadataItemIsLikelyJunkKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemIsLikelyJunkKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemIsLikelyJunkKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemIsUbiquitousKey', -) -external ffi.Pointer _NSMetadataItemIsUbiquitousKey; - -objc.NSString get NSMetadataItemIsUbiquitousKey => objc.NSString.fromPointer( - _NSMetadataItemIsUbiquitousKey, - retain: true, - release: true, -); - -set NSMetadataItemIsUbiquitousKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemIsUbiquitousKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemIsUbiquitousKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemKeySignatureKey', -) -external ffi.Pointer _NSMetadataItemKeySignatureKey; - -objc.NSString get NSMetadataItemKeySignatureKey => objc.NSString.fromPointer( - _NSMetadataItemKeySignatureKey, - retain: true, - release: true, -); - -set NSMetadataItemKeySignatureKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemKeySignatureKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemKeySignatureKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemKeywordsKey', -) -external ffi.Pointer _NSMetadataItemKeywordsKey; - -objc.NSString get NSMetadataItemKeywordsKey => objc.NSString.fromPointer( - _NSMetadataItemKeywordsKey, - retain: true, - release: true, -); - -set NSMetadataItemKeywordsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemKeywordsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemKeywordsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemKindKey') -external ffi.Pointer _NSMetadataItemKindKey; - -objc.NSString get NSMetadataItemKindKey => objc.NSString.fromPointer( - _NSMetadataItemKindKey, - retain: true, - release: true, -); - -set NSMetadataItemKindKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemKindKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemKindKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLanguagesKey', -) -external ffi.Pointer _NSMetadataItemLanguagesKey; - -objc.NSString get NSMetadataItemLanguagesKey => objc.NSString.fromPointer( - _NSMetadataItemLanguagesKey, - retain: true, - release: true, -); - -set NSMetadataItemLanguagesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLanguagesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLanguagesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLastUsedDateKey', -) -external ffi.Pointer _NSMetadataItemLastUsedDateKey; - -objc.NSString get NSMetadataItemLastUsedDateKey => objc.NSString.fromPointer( - _NSMetadataItemLastUsedDateKey, - retain: true, - release: true, -); - -set NSMetadataItemLastUsedDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLastUsedDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLastUsedDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLatitudeKey', -) -external ffi.Pointer _NSMetadataItemLatitudeKey; - -objc.NSString get NSMetadataItemLatitudeKey => objc.NSString.fromPointer( - _NSMetadataItemLatitudeKey, - retain: true, - release: true, -); - -set NSMetadataItemLatitudeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLatitudeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLatitudeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLayerNamesKey', -) -external ffi.Pointer _NSMetadataItemLayerNamesKey; - -objc.NSString get NSMetadataItemLayerNamesKey => objc.NSString.fromPointer( - _NSMetadataItemLayerNamesKey, - retain: true, - release: true, -); - -set NSMetadataItemLayerNamesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLayerNamesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLayerNamesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLensModelKey', -) -external ffi.Pointer _NSMetadataItemLensModelKey; - -objc.NSString get NSMetadataItemLensModelKey => objc.NSString.fromPointer( - _NSMetadataItemLensModelKey, - retain: true, - release: true, -); - -set NSMetadataItemLensModelKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLensModelKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLensModelKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLongitudeKey', -) -external ffi.Pointer _NSMetadataItemLongitudeKey; - -objc.NSString get NSMetadataItemLongitudeKey => objc.NSString.fromPointer( - _NSMetadataItemLongitudeKey, - retain: true, - release: true, -); - -set NSMetadataItemLongitudeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLongitudeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLongitudeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemLyricistKey', -) -external ffi.Pointer _NSMetadataItemLyricistKey; - -objc.NSString get NSMetadataItemLyricistKey => objc.NSString.fromPointer( - _NSMetadataItemLyricistKey, - retain: true, - release: true, -); - -set NSMetadataItemLyricistKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemLyricistKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemLyricistKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMaxApertureKey', -) -external ffi.Pointer _NSMetadataItemMaxApertureKey; - -objc.NSString get NSMetadataItemMaxApertureKey => objc.NSString.fromPointer( - _NSMetadataItemMaxApertureKey, - retain: true, - release: true, -); - -set NSMetadataItemMaxApertureKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMaxApertureKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMaxApertureKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMediaTypesKey', -) -external ffi.Pointer _NSMetadataItemMediaTypesKey; - -objc.NSString get NSMetadataItemMediaTypesKey => objc.NSString.fromPointer( - _NSMetadataItemMediaTypesKey, - retain: true, - release: true, -); - -set NSMetadataItemMediaTypesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMediaTypesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMediaTypesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMeteringModeKey', -) -external ffi.Pointer _NSMetadataItemMeteringModeKey; - -objc.NSString get NSMetadataItemMeteringModeKey => objc.NSString.fromPointer( - _NSMetadataItemMeteringModeKey, - retain: true, - release: true, -); - -set NSMetadataItemMeteringModeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMeteringModeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMeteringModeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMusicalGenreKey', -) -external ffi.Pointer _NSMetadataItemMusicalGenreKey; - -objc.NSString get NSMetadataItemMusicalGenreKey => objc.NSString.fromPointer( - _NSMetadataItemMusicalGenreKey, - retain: true, - release: true, -); - -set NSMetadataItemMusicalGenreKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMusicalGenreKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMusicalGenreKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMusicalInstrumentCategoryKey', -) -external ffi.Pointer -_NSMetadataItemMusicalInstrumentCategoryKey; - -objc.NSString get NSMetadataItemMusicalInstrumentCategoryKey => - objc.NSString.fromPointer( - _NSMetadataItemMusicalInstrumentCategoryKey, - retain: true, - release: true, - ); - -set NSMetadataItemMusicalInstrumentCategoryKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMusicalInstrumentCategoryKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMusicalInstrumentCategoryKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemMusicalInstrumentNameKey', -) -external ffi.Pointer -_NSMetadataItemMusicalInstrumentNameKey; - -objc.NSString get NSMetadataItemMusicalInstrumentNameKey => - objc.NSString.fromPointer( - _NSMetadataItemMusicalInstrumentNameKey, - retain: true, - release: true, - ); - -set NSMetadataItemMusicalInstrumentNameKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemMusicalInstrumentNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemMusicalInstrumentNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemNamedLocationKey', -) -external ffi.Pointer _NSMetadataItemNamedLocationKey; - -objc.NSString get NSMetadataItemNamedLocationKey => objc.NSString.fromPointer( - _NSMetadataItemNamedLocationKey, - retain: true, - release: true, -); - -set NSMetadataItemNamedLocationKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemNamedLocationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemNamedLocationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemNumberOfPagesKey', -) -external ffi.Pointer _NSMetadataItemNumberOfPagesKey; - -objc.NSString get NSMetadataItemNumberOfPagesKey => objc.NSString.fromPointer( - _NSMetadataItemNumberOfPagesKey, - retain: true, - release: true, -); - -set NSMetadataItemNumberOfPagesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemNumberOfPagesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemNumberOfPagesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemOrganizationsKey', -) -external ffi.Pointer _NSMetadataItemOrganizationsKey; - -objc.NSString get NSMetadataItemOrganizationsKey => objc.NSString.fromPointer( - _NSMetadataItemOrganizationsKey, - retain: true, - release: true, -); - -set NSMetadataItemOrganizationsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemOrganizationsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemOrganizationsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemOrientationKey', -) -external ffi.Pointer _NSMetadataItemOrientationKey; - -objc.NSString get NSMetadataItemOrientationKey => objc.NSString.fromPointer( - _NSMetadataItemOrientationKey, - retain: true, - release: true, -); - -set NSMetadataItemOrientationKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemOrientationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemOrientationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemOriginalFormatKey', -) -external ffi.Pointer _NSMetadataItemOriginalFormatKey; - -objc.NSString get NSMetadataItemOriginalFormatKey => objc.NSString.fromPointer( - _NSMetadataItemOriginalFormatKey, - retain: true, - release: true, -); - -set NSMetadataItemOriginalFormatKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemOriginalFormatKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemOriginalFormatKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemOriginalSourceKey', -) -external ffi.Pointer _NSMetadataItemOriginalSourceKey; - -objc.NSString get NSMetadataItemOriginalSourceKey => objc.NSString.fromPointer( - _NSMetadataItemOriginalSourceKey, - retain: true, - release: true, -); - -set NSMetadataItemOriginalSourceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemOriginalSourceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemOriginalSourceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPageHeightKey', -) -external ffi.Pointer _NSMetadataItemPageHeightKey; - -objc.NSString get NSMetadataItemPageHeightKey => objc.NSString.fromPointer( - _NSMetadataItemPageHeightKey, - retain: true, - release: true, -); - -set NSMetadataItemPageHeightKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPageHeightKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPageHeightKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPageWidthKey', -) -external ffi.Pointer _NSMetadataItemPageWidthKey; - -objc.NSString get NSMetadataItemPageWidthKey => objc.NSString.fromPointer( - _NSMetadataItemPageWidthKey, - retain: true, - release: true, -); - -set NSMetadataItemPageWidthKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPageWidthKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPageWidthKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemParticipantsKey', -) -external ffi.Pointer _NSMetadataItemParticipantsKey; - -objc.NSString get NSMetadataItemParticipantsKey => objc.NSString.fromPointer( - _NSMetadataItemParticipantsKey, - retain: true, - release: true, -); - -set NSMetadataItemParticipantsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemParticipantsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemParticipantsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemPathKey') -external ffi.Pointer _NSMetadataItemPathKey; - -objc.NSString get NSMetadataItemPathKey => objc.NSString.fromPointer( - _NSMetadataItemPathKey, - retain: true, - release: true, -); - -set NSMetadataItemPathKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPathKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPathKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPerformersKey', -) -external ffi.Pointer _NSMetadataItemPerformersKey; - -objc.NSString get NSMetadataItemPerformersKey => objc.NSString.fromPointer( - _NSMetadataItemPerformersKey, - retain: true, - release: true, -); - -set NSMetadataItemPerformersKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPerformersKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPerformersKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPhoneNumbersKey', -) -external ffi.Pointer _NSMetadataItemPhoneNumbersKey; - -objc.NSString get NSMetadataItemPhoneNumbersKey => objc.NSString.fromPointer( - _NSMetadataItemPhoneNumbersKey, - retain: true, - release: true, -); - -set NSMetadataItemPhoneNumbersKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPhoneNumbersKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPhoneNumbersKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPixelCountKey', -) -external ffi.Pointer _NSMetadataItemPixelCountKey; - -objc.NSString get NSMetadataItemPixelCountKey => objc.NSString.fromPointer( - _NSMetadataItemPixelCountKey, - retain: true, - release: true, -); - -set NSMetadataItemPixelCountKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPixelCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPixelCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPixelHeightKey', -) -external ffi.Pointer _NSMetadataItemPixelHeightKey; - -objc.NSString get NSMetadataItemPixelHeightKey => objc.NSString.fromPointer( - _NSMetadataItemPixelHeightKey, - retain: true, - release: true, -); - -set NSMetadataItemPixelHeightKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPixelHeightKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPixelHeightKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPixelWidthKey', -) -external ffi.Pointer _NSMetadataItemPixelWidthKey; - -objc.NSString get NSMetadataItemPixelWidthKey => objc.NSString.fromPointer( - _NSMetadataItemPixelWidthKey, - retain: true, - release: true, -); - -set NSMetadataItemPixelWidthKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPixelWidthKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPixelWidthKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemProducerKey', -) -external ffi.Pointer _NSMetadataItemProducerKey; - -objc.NSString get NSMetadataItemProducerKey => objc.NSString.fromPointer( - _NSMetadataItemProducerKey, - retain: true, - release: true, -); - -set NSMetadataItemProducerKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemProducerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemProducerKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemProfileNameKey', -) -external ffi.Pointer _NSMetadataItemProfileNameKey; - -objc.NSString get NSMetadataItemProfileNameKey => objc.NSString.fromPointer( - _NSMetadataItemProfileNameKey, - retain: true, - release: true, -); - -set NSMetadataItemProfileNameKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemProfileNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemProfileNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemProjectsKey', -) -external ffi.Pointer _NSMetadataItemProjectsKey; - -objc.NSString get NSMetadataItemProjectsKey => objc.NSString.fromPointer( - _NSMetadataItemProjectsKey, - retain: true, - release: true, -); - -set NSMetadataItemProjectsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemProjectsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemProjectsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemPublishersKey', -) -external ffi.Pointer _NSMetadataItemPublishersKey; - -objc.NSString get NSMetadataItemPublishersKey => objc.NSString.fromPointer( - _NSMetadataItemPublishersKey, - retain: true, - release: true, -); - -set NSMetadataItemPublishersKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemPublishersKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemPublishersKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRecipientAddressesKey', -) -external ffi.Pointer _NSMetadataItemRecipientAddressesKey; - -objc.NSString get NSMetadataItemRecipientAddressesKey => - objc.NSString.fromPointer( - _NSMetadataItemRecipientAddressesKey, - retain: true, - release: true, - ); - -set NSMetadataItemRecipientAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRecipientAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRecipientAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRecipientEmailAddressesKey', -) -external ffi.Pointer -_NSMetadataItemRecipientEmailAddressesKey; - -objc.NSString get NSMetadataItemRecipientEmailAddressesKey => - objc.NSString.fromPointer( - _NSMetadataItemRecipientEmailAddressesKey, - retain: true, - release: true, - ); - -set NSMetadataItemRecipientEmailAddressesKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRecipientEmailAddressesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRecipientEmailAddressesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRecipientsKey', -) -external ffi.Pointer _NSMetadataItemRecipientsKey; - -objc.NSString get NSMetadataItemRecipientsKey => objc.NSString.fromPointer( - _NSMetadataItemRecipientsKey, - retain: true, - release: true, -); - -set NSMetadataItemRecipientsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRecipientsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRecipientsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRecordingDateKey', -) -external ffi.Pointer _NSMetadataItemRecordingDateKey; - -objc.NSString get NSMetadataItemRecordingDateKey => objc.NSString.fromPointer( - _NSMetadataItemRecordingDateKey, - retain: true, - release: true, -); - -set NSMetadataItemRecordingDateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRecordingDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRecordingDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRecordingYearKey', -) -external ffi.Pointer _NSMetadataItemRecordingYearKey; - -objc.NSString get NSMetadataItemRecordingYearKey => objc.NSString.fromPointer( - _NSMetadataItemRecordingYearKey, - retain: true, - release: true, -); - -set NSMetadataItemRecordingYearKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRecordingYearKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRecordingYearKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemRedEyeOnOffKey', -) -external ffi.Pointer _NSMetadataItemRedEyeOnOffKey; - -objc.NSString get NSMetadataItemRedEyeOnOffKey => objc.NSString.fromPointer( - _NSMetadataItemRedEyeOnOffKey, - retain: true, - release: true, -); - -set NSMetadataItemRedEyeOnOffKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRedEyeOnOffKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRedEyeOnOffKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemResolutionHeightDPIKey', -) -external ffi.Pointer _NSMetadataItemResolutionHeightDPIKey; - -objc.NSString get NSMetadataItemResolutionHeightDPIKey => - objc.NSString.fromPointer( - _NSMetadataItemResolutionHeightDPIKey, - retain: true, - release: true, - ); - -set NSMetadataItemResolutionHeightDPIKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemResolutionHeightDPIKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemResolutionHeightDPIKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemResolutionWidthDPIKey', -) -external ffi.Pointer _NSMetadataItemResolutionWidthDPIKey; - -objc.NSString get NSMetadataItemResolutionWidthDPIKey => - objc.NSString.fromPointer( - _NSMetadataItemResolutionWidthDPIKey, - retain: true, - release: true, - ); - -set NSMetadataItemResolutionWidthDPIKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemResolutionWidthDPIKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemResolutionWidthDPIKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemRightsKey') -external ffi.Pointer _NSMetadataItemRightsKey; - -objc.NSString get NSMetadataItemRightsKey => objc.NSString.fromPointer( - _NSMetadataItemRightsKey, - retain: true, - release: true, -); - -set NSMetadataItemRightsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemRightsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemRightsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemSecurityMethodKey', -) -external ffi.Pointer _NSMetadataItemSecurityMethodKey; - -objc.NSString get NSMetadataItemSecurityMethodKey => objc.NSString.fromPointer( - _NSMetadataItemSecurityMethodKey, - retain: true, - release: true, -); - -set NSMetadataItemSecurityMethodKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemSecurityMethodKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemSecurityMethodKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemSpeedKey') -external ffi.Pointer _NSMetadataItemSpeedKey; - -objc.NSString get NSMetadataItemSpeedKey => objc.NSString.fromPointer( - _NSMetadataItemSpeedKey, - retain: true, - release: true, -); - -set NSMetadataItemSpeedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemSpeedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemSpeedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemStarRatingKey', -) -external ffi.Pointer _NSMetadataItemStarRatingKey; - -objc.NSString get NSMetadataItemStarRatingKey => objc.NSString.fromPointer( - _NSMetadataItemStarRatingKey, - retain: true, - release: true, -); - -set NSMetadataItemStarRatingKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemStarRatingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemStarRatingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemStateOrProvinceKey', -) -external ffi.Pointer _NSMetadataItemStateOrProvinceKey; - -objc.NSString get NSMetadataItemStateOrProvinceKey => objc.NSString.fromPointer( - _NSMetadataItemStateOrProvinceKey, - retain: true, - release: true, -); - -set NSMetadataItemStateOrProvinceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemStateOrProvinceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemStateOrProvinceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemStreamableKey', -) -external ffi.Pointer _NSMetadataItemStreamableKey; - -objc.NSString get NSMetadataItemStreamableKey => objc.NSString.fromPointer( - _NSMetadataItemStreamableKey, - retain: true, - release: true, -); - -set NSMetadataItemStreamableKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemStreamableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemStreamableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemSubjectKey', -) -external ffi.Pointer _NSMetadataItemSubjectKey; - -objc.NSString get NSMetadataItemSubjectKey => objc.NSString.fromPointer( - _NSMetadataItemSubjectKey, - retain: true, - release: true, -); - -set NSMetadataItemSubjectKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemSubjectKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemSubjectKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemTempoKey') -external ffi.Pointer _NSMetadataItemTempoKey; - -objc.NSString get NSMetadataItemTempoKey => objc.NSString.fromPointer( - _NSMetadataItemTempoKey, - retain: true, - release: true, -); - -set NSMetadataItemTempoKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTempoKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTempoKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemTextContentKey', -) -external ffi.Pointer _NSMetadataItemTextContentKey; - -objc.NSString get NSMetadataItemTextContentKey => objc.NSString.fromPointer( - _NSMetadataItemTextContentKey, - retain: true, - release: true, -); - -set NSMetadataItemTextContentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTextContentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTextContentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemThemeKey') -external ffi.Pointer _NSMetadataItemThemeKey; - -objc.NSString get NSMetadataItemThemeKey => objc.NSString.fromPointer( - _NSMetadataItemThemeKey, - retain: true, - release: true, -); - -set NSMetadataItemThemeKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemThemeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemThemeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemTimeSignatureKey', -) -external ffi.Pointer _NSMetadataItemTimeSignatureKey; - -objc.NSString get NSMetadataItemTimeSignatureKey => objc.NSString.fromPointer( - _NSMetadataItemTimeSignatureKey, - retain: true, - release: true, -); - -set NSMetadataItemTimeSignatureKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTimeSignatureKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTimeSignatureKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemTimestampKey', -) -external ffi.Pointer _NSMetadataItemTimestampKey; - -objc.NSString get NSMetadataItemTimestampKey => objc.NSString.fromPointer( - _NSMetadataItemTimestampKey, - retain: true, - release: true, -); - -set NSMetadataItemTimestampKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTimestampKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTimestampKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemTitleKey') -external ffi.Pointer _NSMetadataItemTitleKey; - -objc.NSString get NSMetadataItemTitleKey => objc.NSString.fromPointer( - _NSMetadataItemTitleKey, - retain: true, - release: true, -); - -set NSMetadataItemTitleKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTitleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTitleKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemTotalBitRateKey', -) -external ffi.Pointer _NSMetadataItemTotalBitRateKey; - -objc.NSString get NSMetadataItemTotalBitRateKey => objc.NSString.fromPointer( - _NSMetadataItemTotalBitRateKey, - retain: true, - release: true, -); - -set NSMetadataItemTotalBitRateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemTotalBitRateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemTotalBitRateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMetadataItemURLKey') -external ffi.Pointer _NSMetadataItemURLKey; - -objc.NSString get NSMetadataItemURLKey => objc.NSString.fromPointer( - _NSMetadataItemURLKey, - retain: true, - release: true, -); - -set NSMetadataItemURLKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemURLKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemURLKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemVersionKey', -) -external ffi.Pointer _NSMetadataItemVersionKey; - -objc.NSString get NSMetadataItemVersionKey => objc.NSString.fromPointer( - _NSMetadataItemVersionKey, - retain: true, - release: true, -); - -set NSMetadataItemVersionKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemVersionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemVersionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemVideoBitRateKey', -) -external ffi.Pointer _NSMetadataItemVideoBitRateKey; - -objc.NSString get NSMetadataItemVideoBitRateKey => objc.NSString.fromPointer( - _NSMetadataItemVideoBitRateKey, - retain: true, - release: true, -); - -set NSMetadataItemVideoBitRateKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemVideoBitRateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemVideoBitRateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemWhereFromsKey', -) -external ffi.Pointer _NSMetadataItemWhereFromsKey; - -objc.NSString get NSMetadataItemWhereFromsKey => objc.NSString.fromPointer( - _NSMetadataItemWhereFromsKey, - retain: true, - release: true, -); - -set NSMetadataItemWhereFromsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemWhereFromsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemWhereFromsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataItemWhiteBalanceKey', -) -external ffi.Pointer _NSMetadataItemWhiteBalanceKey; - -objc.NSString get NSMetadataItemWhiteBalanceKey => objc.NSString.fromPointer( - _NSMetadataItemWhiteBalanceKey, - retain: true, - release: true, -); - -set NSMetadataItemWhiteBalanceKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataItemWhiteBalanceKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataItemWhiteBalanceKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope', -) -external ffi.Pointer -_NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope; - -objc.NSString get NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope => - objc.NSString.fromPointer( - _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, - retain: true, - release: true, - ); - -set NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope( - objc.NSString value, -) { - objc.NSString.fromPointer( - _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSMetadataQueryDidFinishGatheringNotification', -) -external NSNotificationName _NSMetadataQueryDidFinishGatheringNotification; - -DartNSNotificationName get NSMetadataQueryDidFinishGatheringNotification => - objc.NSString.fromPointer( - _NSMetadataQueryDidFinishGatheringNotification, - retain: true, - release: true, - ); - -set NSMetadataQueryDidFinishGatheringNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSMetadataQueryDidFinishGatheringNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryDidFinishGatheringNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSMetadataQueryDidStartGatheringNotification', -) -external NSNotificationName _NSMetadataQueryDidStartGatheringNotification; - -DartNSNotificationName get NSMetadataQueryDidStartGatheringNotification => - objc.NSString.fromPointer( - _NSMetadataQueryDidStartGatheringNotification, - retain: true, - release: true, - ); - -set NSMetadataQueryDidStartGatheringNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSMetadataQueryDidStartGatheringNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryDidStartGatheringNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSMetadataQueryDidUpdateNotification') -external NSNotificationName _NSMetadataQueryDidUpdateNotification; - -DartNSNotificationName get NSMetadataQueryDidUpdateNotification => - objc.NSString.fromPointer( - _NSMetadataQueryDidUpdateNotification, - retain: true, - release: true, - ); - -set NSMetadataQueryDidUpdateNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSMetadataQueryDidUpdateNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryDidUpdateNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSMetadataQueryGatheringProgressNotification', -) -external NSNotificationName _NSMetadataQueryGatheringProgressNotification; - -DartNSNotificationName get NSMetadataQueryGatheringProgressNotification => - objc.NSString.fromPointer( - _NSMetadataQueryGatheringProgressNotification, - retain: true, - release: true, - ); - -set NSMetadataQueryGatheringProgressNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSMetadataQueryGatheringProgressNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryGatheringProgressNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryIndexedLocalComputerScope', -) -external ffi.Pointer -_NSMetadataQueryIndexedLocalComputerScope; - -objc.NSString get NSMetadataQueryIndexedLocalComputerScope => - objc.NSString.fromPointer( - _NSMetadataQueryIndexedLocalComputerScope, - retain: true, - release: true, - ); - -set NSMetadataQueryIndexedLocalComputerScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryIndexedLocalComputerScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryIndexedLocalComputerScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryIndexedNetworkScope', -) -external ffi.Pointer _NSMetadataQueryIndexedNetworkScope; - -objc.NSString get NSMetadataQueryIndexedNetworkScope => - objc.NSString.fromPointer( - _NSMetadataQueryIndexedNetworkScope, - retain: true, - release: true, - ); - -set NSMetadataQueryIndexedNetworkScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryIndexedNetworkScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryIndexedNetworkScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryLocalComputerScope', -) -external ffi.Pointer _NSMetadataQueryLocalComputerScope; - -objc.NSString get NSMetadataQueryLocalComputerScope => - objc.NSString.fromPointer( - _NSMetadataQueryLocalComputerScope, - retain: true, - release: true, - ); - -set NSMetadataQueryLocalComputerScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryLocalComputerScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryLocalComputerScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryNetworkScope', -) -external ffi.Pointer _NSMetadataQueryNetworkScope; - -objc.NSString get NSMetadataQueryNetworkScope => objc.NSString.fromPointer( - _NSMetadataQueryNetworkScope, - retain: true, - release: true, -); - -set NSMetadataQueryNetworkScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryNetworkScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryNetworkScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryResultContentRelevanceAttribute', -) -external ffi.Pointer -_NSMetadataQueryResultContentRelevanceAttribute; - -objc.NSString get NSMetadataQueryResultContentRelevanceAttribute => - objc.NSString.fromPointer( - _NSMetadataQueryResultContentRelevanceAttribute, - retain: true, - release: true, - ); - -set NSMetadataQueryResultContentRelevanceAttribute(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryResultContentRelevanceAttribute, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryResultContentRelevanceAttribute = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUbiquitousDataScope', -) -external ffi.Pointer _NSMetadataQueryUbiquitousDataScope; - -objc.NSString get NSMetadataQueryUbiquitousDataScope => - objc.NSString.fromPointer( - _NSMetadataQueryUbiquitousDataScope, - retain: true, - release: true, - ); - -set NSMetadataQueryUbiquitousDataScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUbiquitousDataScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUbiquitousDataScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUbiquitousDocumentsScope', -) -external ffi.Pointer -_NSMetadataQueryUbiquitousDocumentsScope; - -objc.NSString get NSMetadataQueryUbiquitousDocumentsScope => - objc.NSString.fromPointer( - _NSMetadataQueryUbiquitousDocumentsScope, - retain: true, - release: true, - ); - -set NSMetadataQueryUbiquitousDocumentsScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUbiquitousDocumentsScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUbiquitousDocumentsScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUpdateAddedItemsKey', -) -external ffi.Pointer _NSMetadataQueryUpdateAddedItemsKey; - -objc.NSString get NSMetadataQueryUpdateAddedItemsKey => - objc.NSString.fromPointer( - _NSMetadataQueryUpdateAddedItemsKey, - retain: true, - release: true, - ); - -set NSMetadataQueryUpdateAddedItemsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUpdateAddedItemsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUpdateAddedItemsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUpdateChangedItemsKey', -) -external ffi.Pointer _NSMetadataQueryUpdateChangedItemsKey; - -objc.NSString get NSMetadataQueryUpdateChangedItemsKey => - objc.NSString.fromPointer( - _NSMetadataQueryUpdateChangedItemsKey, - retain: true, - release: true, - ); - -set NSMetadataQueryUpdateChangedItemsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUpdateChangedItemsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUpdateChangedItemsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUpdateRemovedItemsKey', -) -external ffi.Pointer _NSMetadataQueryUpdateRemovedItemsKey; - -objc.NSString get NSMetadataQueryUpdateRemovedItemsKey => - objc.NSString.fromPointer( - _NSMetadataQueryUpdateRemovedItemsKey, - retain: true, - release: true, - ); - -set NSMetadataQueryUpdateRemovedItemsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUpdateRemovedItemsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUpdateRemovedItemsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataQueryUserHomeScope', -) -external ffi.Pointer _NSMetadataQueryUserHomeScope; - -objc.NSString get NSMetadataQueryUserHomeScope => objc.NSString.fromPointer( - _NSMetadataQueryUserHomeScope, - retain: true, - release: true, -); - -set NSMetadataQueryUserHomeScope(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataQueryUserHomeScope, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataQueryUserHomeScope = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemContainerDisplayNameKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemContainerDisplayNameKey; - -objc.NSString get NSMetadataUbiquitousItemContainerDisplayNameKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemContainerDisplayNameKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemContainerDisplayNameKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemContainerDisplayNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemContainerDisplayNameKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadRequestedKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadRequestedKey; - -objc.NSString get NSMetadataUbiquitousItemDownloadRequestedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadRequestedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadRequestedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadRequestedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadRequestedKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadingErrorKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadingErrorKey; - -objc.NSString get NSMetadataUbiquitousItemDownloadingErrorKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingErrorKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadingErrorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadingErrorKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadingStatusCurrent', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadingStatusCurrent; - -objc.NSString get NSMetadataUbiquitousItemDownloadingStatusCurrent => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusCurrent, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadingStatusCurrent(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusCurrent, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadingStatusCurrent = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadingStatusDownloaded', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadingStatusDownloaded; - -objc.NSString get NSMetadataUbiquitousItemDownloadingStatusDownloaded => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusDownloaded, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadingStatusDownloaded(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusDownloaded, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadingStatusDownloaded = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadingStatusKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadingStatusKey; - -objc.NSString get NSMetadataUbiquitousItemDownloadingStatusKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadingStatusKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadingStatusKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemDownloadingStatusNotDownloaded', -) -external ffi.Pointer -_NSMetadataUbiquitousItemDownloadingStatusNotDownloaded; - -objc.NSString get NSMetadataUbiquitousItemDownloadingStatusNotDownloaded => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemDownloadingStatusNotDownloaded( - objc.NSString value, -) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemDownloadingStatusNotDownloaded = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemHasUnresolvedConflictsKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemHasUnresolvedConflictsKey; - -objc.NSString get NSMetadataUbiquitousItemHasUnresolvedConflictsKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemHasUnresolvedConflictsKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemHasUnresolvedConflictsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemHasUnresolvedConflictsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemHasUnresolvedConflictsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsDownloadedKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemIsDownloadedKey; - -objc.NSString get NSMetadataUbiquitousItemIsDownloadedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsDownloadedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsDownloadedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsDownloadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsDownloadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsDownloadingKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemIsDownloadingKey; - -objc.NSString get NSMetadataUbiquitousItemIsDownloadingKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsDownloadingKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsDownloadingKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsDownloadingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsDownloadingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsExternalDocumentKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemIsExternalDocumentKey; - -objc.NSString get NSMetadataUbiquitousItemIsExternalDocumentKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsExternalDocumentKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsExternalDocumentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsExternalDocumentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsExternalDocumentKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsSharedKey', -) -external ffi.Pointer _NSMetadataUbiquitousItemIsSharedKey; - -objc.NSString get NSMetadataUbiquitousItemIsSharedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsSharedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsSharedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsSharedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsSharedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsUploadedKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemIsUploadedKey; - -objc.NSString get NSMetadataUbiquitousItemIsUploadedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsUploadedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsUploadedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsUploadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsUploadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemIsUploadingKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemIsUploadingKey; - -objc.NSString get NSMetadataUbiquitousItemIsUploadingKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsUploadingKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemIsUploadingKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemIsUploadingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemIsUploadingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemPercentDownloadedKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemPercentDownloadedKey; - -objc.NSString get NSMetadataUbiquitousItemPercentDownloadedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemPercentDownloadedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemPercentDownloadedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemPercentDownloadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemPercentDownloadedKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemPercentUploadedKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemPercentUploadedKey; - -objc.NSString get NSMetadataUbiquitousItemPercentUploadedKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemPercentUploadedKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemPercentUploadedKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemPercentUploadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemPercentUploadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemURLInLocalContainerKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemURLInLocalContainerKey; - -objc.NSString get NSMetadataUbiquitousItemURLInLocalContainerKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemURLInLocalContainerKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemURLInLocalContainerKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemURLInLocalContainerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemURLInLocalContainerKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousItemUploadingErrorKey', -) -external ffi.Pointer -_NSMetadataUbiquitousItemUploadingErrorKey; - -objc.NSString get NSMetadataUbiquitousItemUploadingErrorKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemUploadingErrorKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousItemUploadingErrorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousItemUploadingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousItemUploadingErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey; - -objc.NSString get NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey( - objc.NSString value, -) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemCurrentUserRoleKey', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemCurrentUserRoleKey; - -objc.NSString get NSMetadataUbiquitousSharedItemCurrentUserRoleKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemCurrentUserRoleKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemCurrentUserRoleKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemCurrentUserRoleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemCurrentUserRoleKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey; - -objc.NSString -get NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey( - objc.NSString value, -) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemOwnerNameComponentsKey', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemOwnerNameComponentsKey; - -objc.NSString get NSMetadataUbiquitousSharedItemOwnerNameComponentsKey => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemOwnerNameComponentsKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemOwnerNameComponentsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemPermissionsReadOnly', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemPermissionsReadOnly; - -objc.NSString get NSMetadataUbiquitousSharedItemPermissionsReadOnly => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemPermissionsReadOnly, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemPermissionsReadOnly(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemPermissionsReadOnly, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemPermissionsReadOnly = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemPermissionsReadWrite', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemPermissionsReadWrite; - -objc.NSString get NSMetadataUbiquitousSharedItemPermissionsReadWrite => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemPermissionsReadWrite, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemPermissionsReadWrite(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemPermissionsReadWrite, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemPermissionsReadWrite = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemRoleOwner', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemRoleOwner; - -objc.NSString get NSMetadataUbiquitousSharedItemRoleOwner => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemRoleOwner, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemRoleOwner(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemRoleOwner, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemRoleOwner = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSMetadataUbiquitousSharedItemRoleParticipant', -) -external ffi.Pointer -_NSMetadataUbiquitousSharedItemRoleParticipant; - -objc.NSString get NSMetadataUbiquitousSharedItemRoleParticipant => - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemRoleParticipant, - retain: true, - release: true, - ); - -set NSMetadataUbiquitousSharedItemRoleParticipant(objc.NSString value) { - objc.NSString.fromPointer( - _NSMetadataUbiquitousSharedItemRoleParticipant, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMetadataUbiquitousSharedItemRoleParticipant = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSMinimumKeyValueOperator') -external NSKeyValueOperator _NSMinimumKeyValueOperator; - -DartNSKeyValueOperator get NSMinimumKeyValueOperator => - objc.NSString.fromPointer( - _NSMinimumKeyValueOperator, - retain: true, - release: true, - ); - -set NSMinimumKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSMinimumKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMinimumKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSMonthNameArray') -external ffi.Pointer _NSMonthNameArray; - -objc.NSString get NSMonthNameArray => - objc.NSString.fromPointer(_NSMonthNameArray, retain: true, release: true); - -set NSMonthNameArray(objc.NSString value) { - objc.NSString.fromPointer( - _NSMonthNameArray, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMonthNameArray = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSMorphologyAttributeName') -external NSAttributedStringKey _NSMorphologyAttributeName; - -DartNSAttributedStringKey get NSMorphologyAttributeName => - objc.NSString.fromPointer( - _NSMorphologyAttributeName, - retain: true, - release: true, - ); - -set NSMorphologyAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSMorphologyAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMorphologyAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external bool NSMouseInRect(NSPoint aPoint, NSRect aRect, bool flipped); - -@ffi.Native(symbol: 'NSMultipleUnderlyingErrorsKey') -external NSErrorUserInfoKey _NSMultipleUnderlyingErrorsKey; - -DartNSErrorUserInfoKey get NSMultipleUnderlyingErrorsKey => - objc.NSString.fromPointer( - _NSMultipleUnderlyingErrorsKey, - retain: true, - release: true, - ); - -set NSMultipleUnderlyingErrorsKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSMultipleUnderlyingErrorsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSMultipleUnderlyingErrorsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSNegateBooleanTransformerName') -external NSValueTransformerName _NSNegateBooleanTransformerName; - -DartNSValueTransformerName get NSNegateBooleanTransformerName => - objc.NSString.fromPointer( - _NSNegateBooleanTransformerName, - retain: true, - release: true, - ); - -set NSNegateBooleanTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSNegateBooleanTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNegateBooleanTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSNegativeCurrencyFormatString', -) -external ffi.Pointer _NSNegativeCurrencyFormatString; - -objc.NSString get NSNegativeCurrencyFormatString => objc.NSString.fromPointer( - _NSNegativeCurrencyFormatString, - retain: true, - release: true, -); - -set NSNegativeCurrencyFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSNegativeCurrencyFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNegativeCurrencyFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSNetServicesErrorCode') -external ffi.Pointer _NSNetServicesErrorCode; - -objc.NSString get NSNetServicesErrorCode => objc.NSString.fromPointer( - _NSNetServicesErrorCode, - retain: true, - release: true, -); - -set NSNetServicesErrorCode(objc.NSString value) { - objc.NSString.fromPointer( - _NSNetServicesErrorCode, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNetServicesErrorCode = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSNetServicesErrorDomain') -external NSErrorDomain _NSNetServicesErrorDomain; - -DartNSErrorDomain get NSNetServicesErrorDomain => objc.NSString.fromPointer( - _NSNetServicesErrorDomain, - retain: true, - release: true, -); - -set NSNetServicesErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSNetServicesErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNetServicesErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSNextDayDesignations') -external ffi.Pointer _NSNextDayDesignations; - -objc.NSString get NSNextDayDesignations => objc.NSString.fromPointer( - _NSNextDayDesignations, - retain: true, - release: true, -); - -set NSNextDayDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSNextDayDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNextDayDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer NSNextHashEnumeratorItem( - ffi.Pointer enumerator, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external bool NSNextMapEnumeratorPair( - ffi.Pointer enumerator, - ffi.Pointer> key, - ffi.Pointer> value, -); - -@ffi.Native>( - symbol: 'NSNextNextDayDesignations', -) -external ffi.Pointer _NSNextNextDayDesignations; - -objc.NSString get NSNextNextDayDesignations => objc.NSString.fromPointer( - _NSNextNextDayDesignations, - retain: true, - release: true, -); - -set NSNextNextDayDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSNextNextDayDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSNextNextDayDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final NSHashTableCallBacks NSNonOwnedPointerHashCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSNonOwnedPointerMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSNonOwnedPointerMapValueCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks; - -@ffi.Native() -external final NSHashTableCallBacks NSNonRetainedObjectHashCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSNonRetainedObjectMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSNonRetainedObjectMapValueCallBacks; - -@ffi.Native(symbol: 'NSOSStatusErrorDomain') -external NSErrorDomain _NSOSStatusErrorDomain; - -DartNSErrorDomain get NSOSStatusErrorDomain => objc.NSString.fromPointer( - _NSOSStatusErrorDomain, - retain: true, - release: true, -); - -set NSOSStatusErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSOSStatusErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSOSStatusErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final NSHashTableCallBacks NSObjectHashCallBacks; - -@ffi.Native(symbol: 'NSObjectInaccessibleException') -external NSExceptionName _NSObjectInaccessibleException; - -DartNSExceptionName get NSObjectInaccessibleException => - objc.NSString.fromPointer( - _NSObjectInaccessibleException, - retain: true, - release: true, - ); - -set NSObjectInaccessibleException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSObjectInaccessibleException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSObjectInaccessibleException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final NSMapTableKeyCallBacks NSObjectMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSObjectMapValueCallBacks; - -@ffi.Native(symbol: 'NSObjectNotAvailableException') -external NSExceptionName _NSObjectNotAvailableException; - -DartNSExceptionName get NSObjectNotAvailableException => - objc.NSString.fromPointer( - _NSObjectNotAvailableException, - retain: true, - release: true, - ); - -set NSObjectNotAvailableException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSObjectNotAvailableException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSObjectNotAvailableException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external NSRect NSOffsetRect(NSRect aRect, double dX, double dY); - -@ffi.Native(symbol: 'NSOldStyleException') -external NSExceptionName _NSOldStyleException; - -DartNSExceptionName get NSOldStyleException => objc.NSString.fromPointer( - _NSOldStyleException, - retain: true, - release: true, -); - -set NSOldStyleException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSOldStyleException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSOldStyleException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native Function()>( - symbol: 'NSOpenStepRootDirectory', -) -external ffi.Pointer _NSOpenStepRootDirectory(); - -objc.NSString NSOpenStepRootDirectory() { - return objc.NSString.fromPointer( - _NSOpenStepRootDirectory(), - retain: true, - release: true, - ); -} - -@ffi.Native>( - symbol: 'NSOperationNotSupportedForKeyException', -) -external ffi.Pointer -_NSOperationNotSupportedForKeyException; - -objc.NSString get NSOperationNotSupportedForKeyException => - objc.NSString.fromPointer( - _NSOperationNotSupportedForKeyException, - retain: true, - release: true, - ); - -set NSOperationNotSupportedForKeyException(objc.NSString value) { - objc.NSString.fromPointer( - _NSOperationNotSupportedForKeyException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSOperationNotSupportedForKeyException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final NSHashTableCallBacks NSOwnedObjectIdentityHashCallBacks; - -@ffi.Native() -external final NSHashTableCallBacks NSOwnedPointerHashCallBacks; - -@ffi.Native() -external final NSMapTableKeyCallBacks NSOwnedPointerMapKeyCallBacks; - -@ffi.Native() -external final NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks; - -@ffi.Native(symbol: 'NSPOSIXErrorDomain') -external NSErrorDomain _NSPOSIXErrorDomain; - -DartNSErrorDomain get NSPOSIXErrorDomain => - objc.NSString.fromPointer(_NSPOSIXErrorDomain, retain: true, release: true); - -set NSPOSIXErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSPOSIXErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPOSIXErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external int NSPageSize(); - -@ffi.Native(symbol: 'NSParseErrorException') -external NSExceptionName _NSParseErrorException; - -DartNSExceptionName get NSParseErrorException => objc.NSString.fromPointer( - _NSParseErrorException, - retain: true, - release: true, -); - -set NSParseErrorException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSParseErrorException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSParseErrorException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSPersianCalendar') -external ffi.Pointer _NSPersianCalendar; - -objc.NSString get NSPersianCalendar => - objc.NSString.fromPointer(_NSPersianCalendar, retain: true, release: true); - -set NSPersianCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersianCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersianCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentDelimiter', -) -external ffi.Pointer _NSPersonNameComponentDelimiter; - -objc.NSString get NSPersonNameComponentDelimiter => objc.NSString.fromPointer( - _NSPersonNameComponentDelimiter, - retain: true, - release: true, -); - -set NSPersonNameComponentDelimiter(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentDelimiter, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentDelimiter = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentFamilyName', -) -external ffi.Pointer _NSPersonNameComponentFamilyName; - -objc.NSString get NSPersonNameComponentFamilyName => objc.NSString.fromPointer( - _NSPersonNameComponentFamilyName, - retain: true, - release: true, -); - -set NSPersonNameComponentFamilyName(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentFamilyName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentFamilyName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentGivenName', -) -external ffi.Pointer _NSPersonNameComponentGivenName; - -objc.NSString get NSPersonNameComponentGivenName => objc.NSString.fromPointer( - _NSPersonNameComponentGivenName, - retain: true, - release: true, -); - -set NSPersonNameComponentGivenName(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentGivenName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentGivenName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentKey', -) -external ffi.Pointer _NSPersonNameComponentKey; - -objc.NSString get NSPersonNameComponentKey => objc.NSString.fromPointer( - _NSPersonNameComponentKey, - retain: true, - release: true, -); - -set NSPersonNameComponentKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentMiddleName', -) -external ffi.Pointer _NSPersonNameComponentMiddleName; - -objc.NSString get NSPersonNameComponentMiddleName => objc.NSString.fromPointer( - _NSPersonNameComponentMiddleName, - retain: true, - release: true, -); - -set NSPersonNameComponentMiddleName(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentMiddleName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentMiddleName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentNickname', -) -external ffi.Pointer _NSPersonNameComponentNickname; - -objc.NSString get NSPersonNameComponentNickname => objc.NSString.fromPointer( - _NSPersonNameComponentNickname, - retain: true, - release: true, -); - -set NSPersonNameComponentNickname(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentNickname, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentNickname = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentPrefix', -) -external ffi.Pointer _NSPersonNameComponentPrefix; - -objc.NSString get NSPersonNameComponentPrefix => objc.NSString.fromPointer( - _NSPersonNameComponentPrefix, - retain: true, - release: true, -); - -set NSPersonNameComponentPrefix(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentPrefix, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentPrefix = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPersonNameComponentSuffix', -) -external ffi.Pointer _NSPersonNameComponentSuffix; - -objc.NSString get NSPersonNameComponentSuffix => objc.NSString.fromPointer( - _NSPersonNameComponentSuffix, - retain: true, - release: true, -); - -set NSPersonNameComponentSuffix(objc.NSString value) { - objc.NSString.fromPointer( - _NSPersonNameComponentSuffix, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPersonNameComponentSuffix = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSPointFromString', -) -external NSPoint _NSPointFromString(ffi.Pointer aString); - -NSPoint NSPointFromString(objc.NSString aString) { - final _$$ref = aString.ref; - return _NSPointFromString(_$$ref.pointer); -} - -@ffi.Native() -external bool NSPointInRect(NSPoint aPoint, NSRect aRect); - -@ffi.Native() -external final NSHashTableCallBacks NSPointerToStructHashCallBacks; - -@ffi.Native(symbol: 'NSPortDidBecomeInvalidNotification') -external NSNotificationName _NSPortDidBecomeInvalidNotification; - -DartNSNotificationName get NSPortDidBecomeInvalidNotification => - objc.NSString.fromPointer( - _NSPortDidBecomeInvalidNotification, - retain: true, - release: true, - ); - -set NSPortDidBecomeInvalidNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSPortDidBecomeInvalidNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPortDidBecomeInvalidNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSPortReceiveException') -external NSExceptionName _NSPortReceiveException; - -DartNSExceptionName get NSPortReceiveException => objc.NSString.fromPointer( - _NSPortReceiveException, - retain: true, - release: true, -); - -set NSPortReceiveException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSPortReceiveException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPortReceiveException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSPortSendException') -external NSExceptionName _NSPortSendException; - -DartNSExceptionName get NSPortSendException => objc.NSString.fromPointer( - _NSPortSendException, - retain: true, - release: true, -); - -set NSPortSendException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSPortSendException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPortSendException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSPortTimeoutException') -external NSExceptionName _NSPortTimeoutException; - -DartNSExceptionName get NSPortTimeoutException => objc.NSString.fromPointer( - _NSPortTimeoutException, - retain: true, - release: true, -); - -set NSPortTimeoutException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSPortTimeoutException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPortTimeoutException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSPositiveCurrencyFormatString', -) -external ffi.Pointer _NSPositiveCurrencyFormatString; - -objc.NSString get NSPositiveCurrencyFormatString => objc.NSString.fromPointer( - _NSPositiveCurrencyFormatString, - retain: true, - release: true, -); - -set NSPositiveCurrencyFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSPositiveCurrencyFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPositiveCurrencyFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSPresentationIntentAttributeName') -external NSAttributedStringKey _NSPresentationIntentAttributeName; - -DartNSAttributedStringKey get NSPresentationIntentAttributeName => - objc.NSString.fromPointer( - _NSPresentationIntentAttributeName, - retain: true, - release: true, - ); - -set NSPresentationIntentAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSPresentationIntentAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPresentationIntentAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSPriorDayDesignations') -external ffi.Pointer _NSPriorDayDesignations; - -objc.NSString get NSPriorDayDesignations => objc.NSString.fromPointer( - _NSPriorDayDesignations, - retain: true, - release: true, -); - -set NSPriorDayDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSPriorDayDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSPriorDayDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProcessInfoPowerStateDidChangeNotification', -) -external NSNotificationName _NSProcessInfoPowerStateDidChangeNotification; - -DartNSNotificationName get NSProcessInfoPowerStateDidChangeNotification => - objc.NSString.fromPointer( - _NSProcessInfoPowerStateDidChangeNotification, - retain: true, - release: true, - ); - -set NSProcessInfoPowerStateDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSProcessInfoPowerStateDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProcessInfoPowerStateDidChangeNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProcessInfoThermalStateDidChangeNotification', -) -external NSNotificationName _NSProcessInfoThermalStateDidChangeNotification; - -DartNSNotificationName get NSProcessInfoThermalStateDidChangeNotification => - objc.NSString.fromPointer( - _NSProcessInfoThermalStateDidChangeNotification, - retain: true, - release: true, - ); - -set NSProcessInfoThermalStateDidChangeNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSProcessInfoThermalStateDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProcessInfoThermalStateDidChangeNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressEstimatedTimeRemainingKey', -) -external NSProgressUserInfoKey _NSProgressEstimatedTimeRemainingKey; - -DartNSProgressUserInfoKey get NSProgressEstimatedTimeRemainingKey => - objc.NSString.fromPointer( - _NSProgressEstimatedTimeRemainingKey, - retain: true, - release: true, - ); - -set NSProgressEstimatedTimeRemainingKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressEstimatedTimeRemainingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressEstimatedTimeRemainingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileAnimationImageKey') -external NSProgressUserInfoKey _NSProgressFileAnimationImageKey; - -DartNSProgressUserInfoKey get NSProgressFileAnimationImageKey => - objc.NSString.fromPointer( - _NSProgressFileAnimationImageKey, - retain: true, - release: true, - ); - -set NSProgressFileAnimationImageKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileAnimationImageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileAnimationImageKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileAnimationImageOriginalRectKey', -) -external NSProgressUserInfoKey _NSProgressFileAnimationImageOriginalRectKey; - -DartNSProgressUserInfoKey get NSProgressFileAnimationImageOriginalRectKey => - objc.NSString.fromPointer( - _NSProgressFileAnimationImageOriginalRectKey, - retain: true, - release: true, - ); - -set NSProgressFileAnimationImageOriginalRectKey( - DartNSProgressUserInfoKey value, -) { - objc.NSString.fromPointer( - _NSProgressFileAnimationImageOriginalRectKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileAnimationImageOriginalRectKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileCompletedCountKey') -external NSProgressUserInfoKey _NSProgressFileCompletedCountKey; - -DartNSProgressUserInfoKey get NSProgressFileCompletedCountKey => - objc.NSString.fromPointer( - _NSProgressFileCompletedCountKey, - retain: true, - release: true, - ); - -set NSProgressFileCompletedCountKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileCompletedCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileCompletedCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileIconKey') -external NSProgressUserInfoKey _NSProgressFileIconKey; - -DartNSProgressUserInfoKey get NSProgressFileIconKey => - objc.NSString.fromPointer( - _NSProgressFileIconKey, - retain: true, - release: true, - ); - -set NSProgressFileIconKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileIconKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileIconKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindCopying', -) -external NSProgressFileOperationKind _NSProgressFileOperationKindCopying; - -DartNSProgressFileOperationKind get NSProgressFileOperationKindCopying => - objc.NSString.fromPointer( - _NSProgressFileOperationKindCopying, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindCopying(DartNSProgressFileOperationKind value) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindCopying, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindCopying = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindDecompressingAfterDownloading', -) -external NSProgressFileOperationKind -_NSProgressFileOperationKindDecompressingAfterDownloading; - -DartNSProgressFileOperationKind -get NSProgressFileOperationKindDecompressingAfterDownloading => - objc.NSString.fromPointer( - _NSProgressFileOperationKindDecompressingAfterDownloading, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindDecompressingAfterDownloading( - DartNSProgressFileOperationKind value, -) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindDecompressingAfterDownloading, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindDecompressingAfterDownloading = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindDownloading', -) -external NSProgressFileOperationKind _NSProgressFileOperationKindDownloading; - -DartNSProgressFileOperationKind get NSProgressFileOperationKindDownloading => - objc.NSString.fromPointer( - _NSProgressFileOperationKindDownloading, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindDownloading( - DartNSProgressFileOperationKind value, -) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindDownloading, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindDownloading = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindDuplicating', -) -external NSProgressFileOperationKind _NSProgressFileOperationKindDuplicating; - -DartNSProgressFileOperationKind get NSProgressFileOperationKindDuplicating => - objc.NSString.fromPointer( - _NSProgressFileOperationKindDuplicating, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindDuplicating( - DartNSProgressFileOperationKind value, -) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindDuplicating, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindDuplicating = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileOperationKindKey') -external NSProgressUserInfoKey _NSProgressFileOperationKindKey; - -DartNSProgressUserInfoKey get NSProgressFileOperationKindKey => - objc.NSString.fromPointer( - _NSProgressFileOperationKindKey, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindReceiving', -) -external NSProgressFileOperationKind _NSProgressFileOperationKindReceiving; - -DartNSProgressFileOperationKind get NSProgressFileOperationKindReceiving => - objc.NSString.fromPointer( - _NSProgressFileOperationKindReceiving, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindReceiving( - DartNSProgressFileOperationKind value, -) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindReceiving, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindReceiving = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSProgressFileOperationKindUploading', -) -external NSProgressFileOperationKind _NSProgressFileOperationKindUploading; - -DartNSProgressFileOperationKind get NSProgressFileOperationKindUploading => - objc.NSString.fromPointer( - _NSProgressFileOperationKindUploading, - retain: true, - release: true, - ); - -set NSProgressFileOperationKindUploading( - DartNSProgressFileOperationKind value, -) { - objc.NSString.fromPointer( - _NSProgressFileOperationKindUploading, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileOperationKindUploading = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileTotalCountKey') -external NSProgressUserInfoKey _NSProgressFileTotalCountKey; - -DartNSProgressUserInfoKey get NSProgressFileTotalCountKey => - objc.NSString.fromPointer( - _NSProgressFileTotalCountKey, - retain: true, - release: true, - ); - -set NSProgressFileTotalCountKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileTotalCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileTotalCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressFileURLKey') -external NSProgressUserInfoKey _NSProgressFileURLKey; - -DartNSProgressUserInfoKey get NSProgressFileURLKey => objc.NSString.fromPointer( - _NSProgressFileURLKey, - retain: true, - release: true, -); - -set NSProgressFileURLKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressFileURLKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressFileURLKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressKindFile') -external NSProgressKind _NSProgressKindFile; - -DartNSProgressKind get NSProgressKindFile => - objc.NSString.fromPointer(_NSProgressKindFile, retain: true, release: true); - -set NSProgressKindFile(DartNSProgressKind value) { - objc.NSString.fromPointer( - _NSProgressKindFile, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressKindFile = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSProgressThroughputKey') -external NSProgressUserInfoKey _NSProgressThroughputKey; - -DartNSProgressUserInfoKey get NSProgressThroughputKey => - objc.NSString.fromPointer( - _NSProgressThroughputKey, - retain: true, - release: true, - ); - -set NSProgressThroughputKey(DartNSProgressUserInfoKey value) { - objc.NSString.fromPointer( - _NSProgressThroughputKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSProgressThroughputKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSProtocolFromString') -external ffi.Pointer _NSProtocolFromString( - ffi.Pointer namestr, -); - -objc.Protocol? NSProtocolFromString(objc.NSString namestr) { - final _$$ref = namestr.ref; - return _NSProtocolFromString(_$$ref.pointer).address == 0 - ? null - : objc.Protocol.fromPointer( - _NSProtocolFromString(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSRangeException') -external NSExceptionName _NSRangeException; - -DartNSExceptionName get NSRangeException => - objc.NSString.fromPointer(_NSRangeException, retain: true, release: true); - -set NSRangeException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSRangeException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSRangeException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSRangeFromString', -) -external NSRange _NSRangeFromString(ffi.Pointer aString); - -NSRange NSRangeFromString(objc.NSString aString) { - final _$$ref = aString.ref; - return _NSRangeFromString(_$$ref.pointer); -} - -@Deprecated('Use NSProcessInfo instead') -@ffi.Native() -external int NSRealMemoryAvailable(); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, NSUInteger, NSUInteger) ->() -external ffi.Pointer NSReallocateCollectable( - ffi.Pointer ptr, - int size, - int options, -); - -@ffi.Native(symbol: 'NSRecoveryAttempterErrorKey') -external NSErrorUserInfoKey _NSRecoveryAttempterErrorKey; - -DartNSErrorUserInfoKey get NSRecoveryAttempterErrorKey => - objc.NSString.fromPointer( - _NSRecoveryAttempterErrorKey, - retain: true, - release: true, - ); - -set NSRecoveryAttempterErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSRecoveryAttempterErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSRecoveryAttempterErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSRectFromString', -) -external NSRect _NSRectFromString(ffi.Pointer aString); - -NSRect NSRectFromString(objc.NSString aString) { - final _$$ref = aString.ref; - return _NSRectFromString(_$$ref.pointer); -} - -@ffi.Native)>() -external void NSRecycleZone(ffi.Pointer zone); - -@ffi.Native>(symbol: 'NSRegistrationDomain') -external ffi.Pointer _NSRegistrationDomain; - -objc.NSString get NSRegistrationDomain => objc.NSString.fromPointer( - _NSRegistrationDomain, - retain: true, - release: true, -); - -set NSRegistrationDomain(objc.NSString value) { - objc.NSString.fromPointer( - _NSRegistrationDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSRegistrationDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSReplacementIndexAttributeName') -external NSAttributedStringKey _NSReplacementIndexAttributeName; - -DartNSAttributedStringKey get NSReplacementIndexAttributeName => - objc.NSString.fromPointer( - _NSReplacementIndexAttributeName, - retain: true, - release: true, - ); - -set NSReplacementIndexAttributeName(DartNSAttributedStringKey value) { - objc.NSString.fromPointer( - _NSReplacementIndexAttributeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSReplacementIndexAttributeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSRepublicOfChinaCalendar', -) -external ffi.Pointer _NSRepublicOfChinaCalendar; - -objc.NSString get NSRepublicOfChinaCalendar => objc.NSString.fromPointer( - _NSRepublicOfChinaCalendar, - retain: true, - release: true, -); - -set NSRepublicOfChinaCalendar(objc.NSString value) { - objc.NSString.fromPointer( - _NSRepublicOfChinaCalendar, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSRepublicOfChinaCalendar = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native)>( - symbol: 'NSResetHashTable', -) -external void _NSResetHashTable(ffi.Pointer table); - -void NSResetHashTable(NSHashTable table) { - final _$$ref = table.ref; - return _NSResetHashTable(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'NSResetMapTable', -) -external void _NSResetMapTable(ffi.Pointer table); - -void NSResetMapTable(NSMapTable table) { - final _$$ref = table.ref; - return _NSResetMapTable(_$$ref.pointer); -} - -@ffi.Native() -external int NSRoundDownToMultipleOfPageSize(int bytes); - -@ffi.Native() -external int NSRoundUpToMultipleOfPageSize(int bytes); - -@ffi.Native(symbol: 'NSRunLoopCommonModes') -external NSRunLoopMode _NSRunLoopCommonModes; - -DartNSRunLoopMode get NSRunLoopCommonModes => objc.NSString.fromPointer( - _NSRunLoopCommonModes, - retain: true, - release: true, -); - -set NSRunLoopCommonModes(DartNSRunLoopMode value) { - objc.NSString.fromPointer( - _NSRunLoopCommonModes, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSRunLoopCommonModes = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(NSUInteger, NSUInteger, ffi.Bool) ->(symbol: 'NSSearchPathForDirectoriesInDomains') -external ffi.Pointer _NSSearchPathForDirectoriesInDomains( - int directory, - int domainMask, - bool expandTilde, -); - -objc.NSArray NSSearchPathForDirectoriesInDomains( - NSSearchPathDirectory directory, - DartNSUInteger domainMask, - bool expandTilde, -) { - return objc.NSArray.fromPointer( - _NSSearchPathForDirectoriesInDomains( - directory.value, - domainMask, - expandTilde, - ), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'NSSecureUnarchiveFromDataTransformerName', -) -external NSValueTransformerName _NSSecureUnarchiveFromDataTransformerName; - -DartNSValueTransformerName get NSSecureUnarchiveFromDataTransformerName => - objc.NSString.fromPointer( - _NSSecureUnarchiveFromDataTransformerName, - retain: true, - release: true, - ); - -set NSSecureUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSSecureUnarchiveFromDataTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSSecureUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSSelectorFromString') -external ffi.Pointer _NSSelectorFromString( - ffi.Pointer aSelectorName, -); - -ffi.Pointer NSSelectorFromString( - objc.NSString aSelectorName, -) { - final _$$ref = aSelectorName.ref; - return _NSSelectorFromString(_$$ref.pointer); -} - -@ffi.Native)>() -external void NSSetUncaughtExceptionHandler( - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSSetZoneName') -external void _NSSetZoneName( - ffi.Pointer zone, - ffi.Pointer name, -); - -void NSSetZoneName(ffi.Pointer zone, objc.NSString name) { - final _$$ref = name.ref; - return _NSSetZoneName(zone, _$$ref.pointer); -} - -@ffi.Native>(symbol: 'NSShortDateFormatString') -external ffi.Pointer _NSShortDateFormatString; - -objc.NSString get NSShortDateFormatString => objc.NSString.fromPointer( - _NSShortDateFormatString, - retain: true, - release: true, -); - -set NSShortDateFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSShortDateFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSShortDateFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSShortMonthNameArray') -external ffi.Pointer _NSShortMonthNameArray; - -objc.NSString get NSShortMonthNameArray => objc.NSString.fromPointer( - _NSShortMonthNameArray, - retain: true, - release: true, -); - -set NSShortMonthNameArray(objc.NSString value) { - objc.NSString.fromPointer( - _NSShortMonthNameArray, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSShortMonthNameArray = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSShortTimeDateFormatString', -) -external ffi.Pointer _NSShortTimeDateFormatString; - -objc.NSString get NSShortTimeDateFormatString => objc.NSString.fromPointer( - _NSShortTimeDateFormatString, - retain: true, - release: true, -); - -set NSShortTimeDateFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSShortTimeDateFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSShortTimeDateFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSShortWeekDayNameArray') -external ffi.Pointer _NSShortWeekDayNameArray; - -objc.NSString get NSShortWeekDayNameArray => objc.NSString.fromPointer( - _NSShortWeekDayNameArray, - retain: true, - release: true, -); - -set NSShortWeekDayNameArray(objc.NSString value) { - objc.NSString.fromPointer( - _NSShortWeekDayNameArray, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSShortWeekDayNameArray = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'NSShouldRetainWithZone') -external bool _NSShouldRetainWithZone( - ffi.Pointer anObject, - ffi.Pointer requestedZone, -); - -bool NSShouldRetainWithZone( - objc.ObjCObject anObject, - ffi.Pointer requestedZone, -) { - final _$$ref = anObject.ref; - return _NSShouldRetainWithZone(_$$ref.pointer, requestedZone); -} - -@ffi.Native)>( - symbol: 'NSSizeFromString', -) -external NSSize _NSSizeFromString(ffi.Pointer aString); - -NSSize NSSizeFromString(objc.NSString aString) { - final _$$ref = aString.ref; - return _NSSizeFromString(_$$ref.pointer); -} - -@ffi.Native(symbol: 'NSStreamDataWrittenToMemoryStreamKey') -external NSStreamPropertyKey _NSStreamDataWrittenToMemoryStreamKey; - -DartNSStreamPropertyKey get NSStreamDataWrittenToMemoryStreamKey => - objc.NSString.fromPointer( - _NSStreamDataWrittenToMemoryStreamKey, - retain: true, - release: true, - ); - -set NSStreamDataWrittenToMemoryStreamKey(DartNSStreamPropertyKey value) { - objc.NSString.fromPointer( - _NSStreamDataWrittenToMemoryStreamKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamDataWrittenToMemoryStreamKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamFileCurrentOffsetKey') -external NSStreamPropertyKey _NSStreamFileCurrentOffsetKey; - -DartNSStreamPropertyKey get NSStreamFileCurrentOffsetKey => - objc.NSString.fromPointer( - _NSStreamFileCurrentOffsetKey, - retain: true, - release: true, - ); - -set NSStreamFileCurrentOffsetKey(DartNSStreamPropertyKey value) { - objc.NSString.fromPointer( - _NSStreamFileCurrentOffsetKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamFileCurrentOffsetKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamNetworkServiceType') -external NSStreamPropertyKey _NSStreamNetworkServiceType; - -DartNSStreamPropertyKey get NSStreamNetworkServiceType => - objc.NSString.fromPointer( - _NSStreamNetworkServiceType, - retain: true, - release: true, - ); - -set NSStreamNetworkServiceType(DartNSStreamPropertyKey value) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceType, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceType = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamNetworkServiceTypeBackground', -) -external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeBackground; - -DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeBackground => - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeBackground, - retain: true, - release: true, - ); - -set NSStreamNetworkServiceTypeBackground( - DartNSStreamNetworkServiceTypeValue value, -) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeBackground, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceTypeBackground = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamNetworkServiceTypeCallSignaling', -) -external NSStreamNetworkServiceTypeValue -_NSStreamNetworkServiceTypeCallSignaling; - -DartNSStreamNetworkServiceTypeValue -get NSStreamNetworkServiceTypeCallSignaling => objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeCallSignaling, - retain: true, - release: true, -); - -set NSStreamNetworkServiceTypeCallSignaling( - DartNSStreamNetworkServiceTypeValue value, -) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeCallSignaling, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceTypeCallSignaling = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamNetworkServiceTypeVideo', -) -external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVideo; - -DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVideo => - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVideo, - retain: true, - release: true, - ); - -set NSStreamNetworkServiceTypeVideo(DartNSStreamNetworkServiceTypeValue value) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVideo, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceTypeVideo = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamNetworkServiceTypeVoIP', -) -external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVoIP; - -DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVoIP => - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVoIP, - retain: true, - release: true, - ); - -set NSStreamNetworkServiceTypeVoIP(DartNSStreamNetworkServiceTypeValue value) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVoIP, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceTypeVoIP = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamNetworkServiceTypeVoice', -) -external NSStreamNetworkServiceTypeValue _NSStreamNetworkServiceTypeVoice; - -DartNSStreamNetworkServiceTypeValue get NSStreamNetworkServiceTypeVoice => - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVoice, - retain: true, - release: true, - ); - -set NSStreamNetworkServiceTypeVoice(DartNSStreamNetworkServiceTypeValue value) { - objc.NSString.fromPointer( - _NSStreamNetworkServiceTypeVoice, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamNetworkServiceTypeVoice = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSOCKSErrorDomain') -external NSErrorDomain _NSStreamSOCKSErrorDomain; - -DartNSErrorDomain get NSStreamSOCKSErrorDomain => objc.NSString.fromPointer( - _NSStreamSOCKSErrorDomain, - retain: true, - release: true, -); - -set NSStreamSOCKSErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSStreamSOCKSErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSOCKSProxyConfigurationKey') -external NSStreamPropertyKey _NSStreamSOCKSProxyConfigurationKey; - -DartNSStreamPropertyKey get NSStreamSOCKSProxyConfigurationKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyConfigurationKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyConfigurationKey(DartNSStreamPropertyKey value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyConfigurationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyConfigurationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSOCKSProxyHostKey', -) -external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyHostKey; - -DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyHostKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyHostKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyHostKey(DartNSStreamSOCKSProxyConfiguration value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyHostKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyHostKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSOCKSProxyPasswordKey', -) -external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyPasswordKey; - -DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyPasswordKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyPasswordKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyPasswordKey(DartNSStreamSOCKSProxyConfiguration value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyPasswordKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyPasswordKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSOCKSProxyPortKey', -) -external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyPortKey; - -DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyPortKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyPortKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyPortKey(DartNSStreamSOCKSProxyConfiguration value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyPortKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyPortKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSOCKSProxyUserKey', -) -external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyUserKey; - -DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyUserKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyUserKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyUserKey(DartNSStreamSOCKSProxyConfiguration value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyUserKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyUserKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSOCKSProxyVersion4') -external NSStreamSOCKSProxyVersion _NSStreamSOCKSProxyVersion4; - -DartNSStreamSOCKSProxyVersion get NSStreamSOCKSProxyVersion4 => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersion4, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyVersion4(DartNSStreamSOCKSProxyVersion value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersion4, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyVersion4 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSOCKSProxyVersion5') -external NSStreamSOCKSProxyVersion _NSStreamSOCKSProxyVersion5; - -DartNSStreamSOCKSProxyVersion get NSStreamSOCKSProxyVersion5 => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersion5, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyVersion5(DartNSStreamSOCKSProxyVersion value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersion5, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyVersion5 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSOCKSProxyVersionKey', -) -external NSStreamSOCKSProxyConfiguration _NSStreamSOCKSProxyVersionKey; - -DartNSStreamSOCKSProxyConfiguration get NSStreamSOCKSProxyVersionKey => - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersionKey, - retain: true, - release: true, - ); - -set NSStreamSOCKSProxyVersionKey(DartNSStreamSOCKSProxyConfiguration value) { - objc.NSString.fromPointer( - _NSStreamSOCKSProxyVersionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSOCKSProxyVersionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSocketSSLErrorDomain') -external NSErrorDomain _NSStreamSocketSSLErrorDomain; - -DartNSErrorDomain get NSStreamSocketSSLErrorDomain => objc.NSString.fromPointer( - _NSStreamSocketSSLErrorDomain, - retain: true, - release: true, -); - -set NSStreamSocketSSLErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSStreamSocketSSLErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSSLErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStreamSocketSecurityLevelKey') -external NSStreamPropertyKey _NSStreamSocketSecurityLevelKey; - -DartNSStreamPropertyKey get NSStreamSocketSecurityLevelKey => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelKey, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelKey(DartNSStreamPropertyKey value) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSocketSecurityLevelNegotiatedSSL', -) -external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelNegotiatedSSL; - -DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelNegotiatedSSL => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelNegotiatedSSL, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelNegotiatedSSL( - DartNSStreamSocketSecurityLevel value, -) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelNegotiatedSSL, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelNegotiatedSSL = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSocketSecurityLevelNone', -) -external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelNone; - -DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelNone => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelNone, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelNone(DartNSStreamSocketSecurityLevel value) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelNone, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelNone = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSocketSecurityLevelSSLv2', -) -external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelSSLv2; - -DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelSSLv2 => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelSSLv2, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelSSLv2(DartNSStreamSocketSecurityLevel value) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelSSLv2, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelSSLv2 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSocketSecurityLevelSSLv3', -) -external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelSSLv3; - -DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelSSLv3 => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelSSLv3, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelSSLv3(DartNSStreamSocketSecurityLevel value) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelSSLv3, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelSSLv3 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStreamSocketSecurityLevelTLSv1', -) -external NSStreamSocketSecurityLevel _NSStreamSocketSecurityLevelTLSv1; - -DartNSStreamSocketSecurityLevel get NSStreamSocketSecurityLevelTLSv1 => - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelTLSv1, - retain: true, - release: true, - ); - -set NSStreamSocketSecurityLevelTLSv1(DartNSStreamSocketSecurityLevel value) { - objc.NSString.fromPointer( - _NSStreamSocketSecurityLevelTLSv1, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStreamSocketSecurityLevelTLSv1 = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionAllowLossyKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionAllowLossyKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionAllowLossyKey => objc.NSString.fromPointer( - _NSStringEncodingDetectionAllowLossyKey, - retain: true, - release: true, -); - -set NSStringEncodingDetectionAllowLossyKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionAllowLossyKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionAllowLossyKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionDisallowedEncodingsKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionDisallowedEncodingsKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionDisallowedEncodingsKey => - objc.NSString.fromPointer( - _NSStringEncodingDetectionDisallowedEncodingsKey, - retain: true, - release: true, - ); - -set NSStringEncodingDetectionDisallowedEncodingsKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionDisallowedEncodingsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionDisallowedEncodingsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionFromWindowsKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionFromWindowsKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionFromWindowsKey => objc.NSString.fromPointer( - _NSStringEncodingDetectionFromWindowsKey, - retain: true, - release: true, -); - -set NSStringEncodingDetectionFromWindowsKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionFromWindowsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionFromWindowsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionLikelyLanguageKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionLikelyLanguageKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionLikelyLanguageKey => objc.NSString.fromPointer( - _NSStringEncodingDetectionLikelyLanguageKey, - retain: true, - release: true, -); - -set NSStringEncodingDetectionLikelyLanguageKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionLikelyLanguageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionLikelyLanguageKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionLossySubstitutionKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionLossySubstitutionKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionLossySubstitutionKey => objc.NSString.fromPointer( - _NSStringEncodingDetectionLossySubstitutionKey, - retain: true, - release: true, -); - -set NSStringEncodingDetectionLossySubstitutionKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionLossySubstitutionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionLossySubstitutionKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionSuggestedEncodingsKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionSuggestedEncodingsKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionSuggestedEncodingsKey => objc.NSString.fromPointer( - _NSStringEncodingDetectionSuggestedEncodingsKey, - retain: true, - release: true, -); - -set NSStringEncodingDetectionSuggestedEncodingsKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionSuggestedEncodingsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionSuggestedEncodingsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSStringEncodingDetectionUseOnlySuggestedEncodingsKey', -) -external NSStringEncodingDetectionOptionsKey -_NSStringEncodingDetectionUseOnlySuggestedEncodingsKey; - -DartNSStringEncodingDetectionOptionsKey -get NSStringEncodingDetectionUseOnlySuggestedEncodingsKey => - objc.NSString.fromPointer( - _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey, - retain: true, - release: true, - ); - -set NSStringEncodingDetectionUseOnlySuggestedEncodingsKey( - DartNSStringEncodingDetectionOptionsKey value, -) { - objc.NSString.fromPointer( - _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingDetectionUseOnlySuggestedEncodingsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringEncodingErrorKey') -external NSErrorUserInfoKey _NSStringEncodingErrorKey; - -DartNSErrorUserInfoKey get NSStringEncodingErrorKey => - objc.NSString.fromPointer( - _NSStringEncodingErrorKey, - retain: true, - release: true, - ); - -set NSStringEncodingErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSStringEncodingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringEncodingErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSStringFromClass') -external ffi.Pointer _NSStringFromClass( - ffi.Pointer aClass, -); - -objc.NSString NSStringFromClass(objc.ObjCObject aClass) { - final _$$ref = aClass.ref; - return objc.NSString.fromPointer( - _NSStringFromClass(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSStringFromHashTable') -external ffi.Pointer _NSStringFromHashTable( - ffi.Pointer table, -); - -objc.NSString NSStringFromHashTable(NSHashTable table) { - final _$$ref = table.ref; - return objc.NSString.fromPointer( - _NSStringFromHashTable(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSStringFromMapTable') -external ffi.Pointer _NSStringFromMapTable( - ffi.Pointer table, -); - -objc.NSString NSStringFromMapTable(NSMapTable table) { - final _$$ref = table.ref; - return objc.NSString.fromPointer( - _NSStringFromMapTable(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native Function(NSPoint)>( - symbol: 'NSStringFromPoint', -) -external ffi.Pointer _NSStringFromPoint(NSPoint aPoint); - -objc.NSString NSStringFromPoint(NSPoint aPoint) { - return objc.NSString.fromPointer( - _NSStringFromPoint(aPoint), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSStringFromProtocol') -external ffi.Pointer _NSStringFromProtocol( - ffi.Pointer proto, -); - -objc.NSString NSStringFromProtocol(objc.Protocol proto) { - final _$$ref = proto.ref; - return objc.NSString.fromPointer( - _NSStringFromProtocol(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native Function(NSRange)>( - symbol: 'NSStringFromRange', -) -external ffi.Pointer _NSStringFromRange(NSRange range); - -objc.NSString NSStringFromRange(NSRange range) { - return objc.NSString.fromPointer( - _NSStringFromRange(range), - retain: true, - release: true, - ); -} - -@ffi.Native Function(NSRect)>( - symbol: 'NSStringFromRect', -) -external ffi.Pointer _NSStringFromRect(NSRect aRect); - -objc.NSString NSStringFromRect(NSRect aRect) { - return objc.NSString.fromPointer( - _NSStringFromRect(aRect), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NSStringFromSelector') -external ffi.Pointer _NSStringFromSelector( - ffi.Pointer aSelector, -); - -objc.NSString NSStringFromSelector(ffi.Pointer aSelector) { - return objc.NSString.fromPointer( - _NSStringFromSelector(aSelector), - retain: true, - release: true, - ); -} - -@ffi.Native Function(NSSize)>( - symbol: 'NSStringFromSize', -) -external ffi.Pointer _NSStringFromSize(NSSize aSize); - -objc.NSString NSStringFromSize(NSSize aSize) { - return objc.NSString.fromPointer( - _NSStringFromSize(aSize), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSStringTransformFullwidthToHalfwidth') -external NSStringTransform _NSStringTransformFullwidthToHalfwidth; - -DartNSStringTransform get NSStringTransformFullwidthToHalfwidth => - objc.NSString.fromPointer( - _NSStringTransformFullwidthToHalfwidth, - retain: true, - release: true, - ); - -set NSStringTransformFullwidthToHalfwidth(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformFullwidthToHalfwidth, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformFullwidthToHalfwidth = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformHiraganaToKatakana') -external NSStringTransform _NSStringTransformHiraganaToKatakana; - -DartNSStringTransform get NSStringTransformHiraganaToKatakana => - objc.NSString.fromPointer( - _NSStringTransformHiraganaToKatakana, - retain: true, - release: true, - ); - -set NSStringTransformHiraganaToKatakana(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformHiraganaToKatakana, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformHiraganaToKatakana = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToArabic') -external NSStringTransform _NSStringTransformLatinToArabic; - -DartNSStringTransform get NSStringTransformLatinToArabic => - objc.NSString.fromPointer( - _NSStringTransformLatinToArabic, - retain: true, - release: true, - ); - -set NSStringTransformLatinToArabic(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToArabic, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToArabic = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToCyrillic') -external NSStringTransform _NSStringTransformLatinToCyrillic; - -DartNSStringTransform get NSStringTransformLatinToCyrillic => - objc.NSString.fromPointer( - _NSStringTransformLatinToCyrillic, - retain: true, - release: true, - ); - -set NSStringTransformLatinToCyrillic(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToCyrillic, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToCyrillic = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToGreek') -external NSStringTransform _NSStringTransformLatinToGreek; - -DartNSStringTransform get NSStringTransformLatinToGreek => - objc.NSString.fromPointer( - _NSStringTransformLatinToGreek, - retain: true, - release: true, - ); - -set NSStringTransformLatinToGreek(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToGreek, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToGreek = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToHangul') -external NSStringTransform _NSStringTransformLatinToHangul; - -DartNSStringTransform get NSStringTransformLatinToHangul => - objc.NSString.fromPointer( - _NSStringTransformLatinToHangul, - retain: true, - release: true, - ); - -set NSStringTransformLatinToHangul(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToHangul, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToHangul = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToHebrew') -external NSStringTransform _NSStringTransformLatinToHebrew; - -DartNSStringTransform get NSStringTransformLatinToHebrew => - objc.NSString.fromPointer( - _NSStringTransformLatinToHebrew, - retain: true, - release: true, - ); - -set NSStringTransformLatinToHebrew(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToHebrew, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToHebrew = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToHiragana') -external NSStringTransform _NSStringTransformLatinToHiragana; - -DartNSStringTransform get NSStringTransformLatinToHiragana => - objc.NSString.fromPointer( - _NSStringTransformLatinToHiragana, - retain: true, - release: true, - ); - -set NSStringTransformLatinToHiragana(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToHiragana, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToHiragana = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToKatakana') -external NSStringTransform _NSStringTransformLatinToKatakana; - -DartNSStringTransform get NSStringTransformLatinToKatakana => - objc.NSString.fromPointer( - _NSStringTransformLatinToKatakana, - retain: true, - release: true, - ); - -set NSStringTransformLatinToKatakana(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToKatakana, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToKatakana = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformLatinToThai') -external NSStringTransform _NSStringTransformLatinToThai; - -DartNSStringTransform get NSStringTransformLatinToThai => - objc.NSString.fromPointer( - _NSStringTransformLatinToThai, - retain: true, - release: true, - ); - -set NSStringTransformLatinToThai(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformLatinToThai, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformLatinToThai = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformMandarinToLatin') -external NSStringTransform _NSStringTransformMandarinToLatin; - -DartNSStringTransform get NSStringTransformMandarinToLatin => - objc.NSString.fromPointer( - _NSStringTransformMandarinToLatin, - retain: true, - release: true, - ); - -set NSStringTransformMandarinToLatin(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformMandarinToLatin, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformMandarinToLatin = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformStripCombiningMarks') -external NSStringTransform _NSStringTransformStripCombiningMarks; - -DartNSStringTransform get NSStringTransformStripCombiningMarks => - objc.NSString.fromPointer( - _NSStringTransformStripCombiningMarks, - retain: true, - release: true, - ); - -set NSStringTransformStripCombiningMarks(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformStripCombiningMarks, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformStripCombiningMarks = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformStripDiacritics') -external NSStringTransform _NSStringTransformStripDiacritics; - -DartNSStringTransform get NSStringTransformStripDiacritics => - objc.NSString.fromPointer( - _NSStringTransformStripDiacritics, - retain: true, - release: true, - ); - -set NSStringTransformStripDiacritics(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformStripDiacritics, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformStripDiacritics = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformToLatin') -external NSStringTransform _NSStringTransformToLatin; - -DartNSStringTransform get NSStringTransformToLatin => objc.NSString.fromPointer( - _NSStringTransformToLatin, - retain: true, - release: true, -); - -set NSStringTransformToLatin(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformToLatin, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformToLatin = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformToUnicodeName') -external NSStringTransform _NSStringTransformToUnicodeName; - -DartNSStringTransform get NSStringTransformToUnicodeName => - objc.NSString.fromPointer( - _NSStringTransformToUnicodeName, - retain: true, - release: true, - ); - -set NSStringTransformToUnicodeName(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformToUnicodeName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformToUnicodeName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSStringTransformToXMLHex') -external NSStringTransform _NSStringTransformToXMLHex; - -DartNSStringTransform get NSStringTransformToXMLHex => - objc.NSString.fromPointer( - _NSStringTransformToXMLHex, - retain: true, - release: true, - ); - -set NSStringTransformToXMLHex(DartNSStringTransform value) { - objc.NSString.fromPointer( - _NSStringTransformToXMLHex, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSStringTransformToXMLHex = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSSumKeyValueOperator') -external NSKeyValueOperator _NSSumKeyValueOperator; - -DartNSKeyValueOperator get NSSumKeyValueOperator => objc.NSString.fromPointer( - _NSSumKeyValueOperator, - retain: true, - release: true, -); - -set NSSumKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSSumKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSSumKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSSystemClockDidChangeNotification') -external NSNotificationName _NSSystemClockDidChangeNotification; - -DartNSNotificationName get NSSystemClockDidChangeNotification => - objc.NSString.fromPointer( - _NSSystemClockDidChangeNotification, - retain: true, - release: true, - ); - -set NSSystemClockDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSSystemClockDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSSystemClockDidChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSSystemTimeZoneDidChangeNotification') -external NSNotificationName _NSSystemTimeZoneDidChangeNotification; - -DartNSNotificationName get NSSystemTimeZoneDidChangeNotification => - objc.NSString.fromPointer( - _NSSystemTimeZoneDidChangeNotification, - retain: true, - release: true, - ); - -set NSSystemTimeZoneDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSSystemTimeZoneDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSSystemTimeZoneDidChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTaskDidTerminateNotification') -external NSNotificationName _NSTaskDidTerminateNotification; - -DartNSNotificationName get NSTaskDidTerminateNotification => - objc.NSString.fromPointer( - _NSTaskDidTerminateNotification, - retain: true, - release: true, - ); - -set NSTaskDidTerminateNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSTaskDidTerminateNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTaskDidTerminateNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native Function()>( - symbol: 'NSTemporaryDirectory', -) -external ffi.Pointer _NSTemporaryDirectory(); - -objc.NSString NSTemporaryDirectory() { - return objc.NSString.fromPointer( - _NSTemporaryDirectory(), - retain: true, - release: true, - ); -} - -@ffi.Native(symbol: 'NSTextCheckingAirlineKey') -external NSTextCheckingKey _NSTextCheckingAirlineKey; - -DartNSTextCheckingKey get NSTextCheckingAirlineKey => objc.NSString.fromPointer( - _NSTextCheckingAirlineKey, - retain: true, - release: true, -); - -set NSTextCheckingAirlineKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingAirlineKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingAirlineKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingCityKey') -external NSTextCheckingKey _NSTextCheckingCityKey; - -DartNSTextCheckingKey get NSTextCheckingCityKey => objc.NSString.fromPointer( - _NSTextCheckingCityKey, - retain: true, - release: true, -); - -set NSTextCheckingCityKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingCityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingCityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingCountryKey') -external NSTextCheckingKey _NSTextCheckingCountryKey; - -DartNSTextCheckingKey get NSTextCheckingCountryKey => objc.NSString.fromPointer( - _NSTextCheckingCountryKey, - retain: true, - release: true, -); - -set NSTextCheckingCountryKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingCountryKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingCountryKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingFlightKey') -external NSTextCheckingKey _NSTextCheckingFlightKey; - -DartNSTextCheckingKey get NSTextCheckingFlightKey => objc.NSString.fromPointer( - _NSTextCheckingFlightKey, - retain: true, - release: true, -); - -set NSTextCheckingFlightKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingFlightKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingFlightKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingJobTitleKey') -external NSTextCheckingKey _NSTextCheckingJobTitleKey; - -DartNSTextCheckingKey get NSTextCheckingJobTitleKey => - objc.NSString.fromPointer( - _NSTextCheckingJobTitleKey, - retain: true, - release: true, - ); - -set NSTextCheckingJobTitleKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingJobTitleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingJobTitleKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingNameKey') -external NSTextCheckingKey _NSTextCheckingNameKey; - -DartNSTextCheckingKey get NSTextCheckingNameKey => objc.NSString.fromPointer( - _NSTextCheckingNameKey, - retain: true, - release: true, -); - -set NSTextCheckingNameKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingOrganizationKey') -external NSTextCheckingKey _NSTextCheckingOrganizationKey; - -DartNSTextCheckingKey get NSTextCheckingOrganizationKey => - objc.NSString.fromPointer( - _NSTextCheckingOrganizationKey, - retain: true, - release: true, - ); - -set NSTextCheckingOrganizationKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingOrganizationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingOrganizationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingPhoneKey') -external NSTextCheckingKey _NSTextCheckingPhoneKey; - -DartNSTextCheckingKey get NSTextCheckingPhoneKey => objc.NSString.fromPointer( - _NSTextCheckingPhoneKey, - retain: true, - release: true, -); - -set NSTextCheckingPhoneKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingPhoneKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingPhoneKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingStateKey') -external NSTextCheckingKey _NSTextCheckingStateKey; - -DartNSTextCheckingKey get NSTextCheckingStateKey => objc.NSString.fromPointer( - _NSTextCheckingStateKey, - retain: true, - release: true, -); - -set NSTextCheckingStateKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingStateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingStateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingStreetKey') -external NSTextCheckingKey _NSTextCheckingStreetKey; - -DartNSTextCheckingKey get NSTextCheckingStreetKey => objc.NSString.fromPointer( - _NSTextCheckingStreetKey, - retain: true, - release: true, -); - -set NSTextCheckingStreetKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingStreetKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingStreetKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSTextCheckingZIPKey') -external NSTextCheckingKey _NSTextCheckingZIPKey; - -DartNSTextCheckingKey get NSTextCheckingZIPKey => objc.NSString.fromPointer( - _NSTextCheckingZIPKey, - retain: true, - release: true, -); - -set NSTextCheckingZIPKey(DartNSTextCheckingKey value) { - objc.NSString.fromPointer( - _NSTextCheckingZIPKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTextCheckingZIPKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSThisDayDesignations') -external ffi.Pointer _NSThisDayDesignations; - -objc.NSString get NSThisDayDesignations => objc.NSString.fromPointer( - _NSThisDayDesignations, - retain: true, - release: true, -); - -set NSThisDayDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSThisDayDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSThisDayDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSThousandsSeparator') -external ffi.Pointer _NSThousandsSeparator; - -objc.NSString get NSThousandsSeparator => objc.NSString.fromPointer( - _NSThousandsSeparator, - retain: true, - release: true, -); - -set NSThousandsSeparator(objc.NSString value) { - objc.NSString.fromPointer( - _NSThousandsSeparator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSThousandsSeparator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSThreadWillExitNotification') -external NSNotificationName _NSThreadWillExitNotification; - -DartNSNotificationName get NSThreadWillExitNotification => - objc.NSString.fromPointer( - _NSThreadWillExitNotification, - retain: true, - release: true, - ); - -set NSThreadWillExitNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSThreadWillExitNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSThreadWillExitNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSThumbnail1024x1024SizeKey') -external NSURLThumbnailDictionaryItem _NSThumbnail1024x1024SizeKey; - -DartNSURLThumbnailDictionaryItem get NSThumbnail1024x1024SizeKey => - objc.NSString.fromPointer( - _NSThumbnail1024x1024SizeKey, - retain: true, - release: true, - ); - -set NSThumbnail1024x1024SizeKey(DartNSURLThumbnailDictionaryItem value) { - objc.NSString.fromPointer( - _NSThumbnail1024x1024SizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSThumbnail1024x1024SizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSTimeDateFormatString') -external ffi.Pointer _NSTimeDateFormatString; - -objc.NSString get NSTimeDateFormatString => objc.NSString.fromPointer( - _NSTimeDateFormatString, - retain: true, - release: true, -); - -set NSTimeDateFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSTimeDateFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTimeDateFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSTimeFormatString') -external ffi.Pointer _NSTimeFormatString; - -objc.NSString get NSTimeFormatString => - objc.NSString.fromPointer(_NSTimeFormatString, retain: true, release: true); - -set NSTimeFormatString(objc.NSString value) { - objc.NSString.fromPointer( - _NSTimeFormatString, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSTimeFormatString = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLAddedToDirectoryDateKey') -external NSURLResourceKey _NSURLAddedToDirectoryDateKey; - -DartNSURLResourceKey get NSURLAddedToDirectoryDateKey => - objc.NSString.fromPointer( - _NSURLAddedToDirectoryDateKey, - retain: true, - release: true, - ); - -set NSURLAddedToDirectoryDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLAddedToDirectoryDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAddedToDirectoryDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLApplicationIsScriptableKey') -external NSURLResourceKey _NSURLApplicationIsScriptableKey; - -DartNSURLResourceKey get NSURLApplicationIsScriptableKey => - objc.NSString.fromPointer( - _NSURLApplicationIsScriptableKey, - retain: true, - release: true, - ); - -set NSURLApplicationIsScriptableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLApplicationIsScriptableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLApplicationIsScriptableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLAttributeModificationDateKey') -external NSURLResourceKey _NSURLAttributeModificationDateKey; - -DartNSURLResourceKey get NSURLAttributeModificationDateKey => - objc.NSString.fromPointer( - _NSURLAttributeModificationDateKey, - retain: true, - release: true, - ); - -set NSURLAttributeModificationDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLAttributeModificationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAttributeModificationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodClientCertificate', -) -external ffi.Pointer -_NSURLAuthenticationMethodClientCertificate; - -objc.NSString get NSURLAuthenticationMethodClientCertificate => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodClientCertificate, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodClientCertificate(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodClientCertificate, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodClientCertificate = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodDefault', -) -external ffi.Pointer _NSURLAuthenticationMethodDefault; - -objc.NSString get NSURLAuthenticationMethodDefault => objc.NSString.fromPointer( - _NSURLAuthenticationMethodDefault, - retain: true, - release: true, -); - -set NSURLAuthenticationMethodDefault(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodDefault, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodDefault = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodHTMLForm', -) -external ffi.Pointer _NSURLAuthenticationMethodHTMLForm; - -objc.NSString get NSURLAuthenticationMethodHTMLForm => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTMLForm, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodHTMLForm(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTMLForm, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodHTMLForm = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodHTTPBasic', -) -external ffi.Pointer _NSURLAuthenticationMethodHTTPBasic; - -objc.NSString get NSURLAuthenticationMethodHTTPBasic => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTTPBasic, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodHTTPBasic(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTTPBasic, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodHTTPBasic = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodHTTPDigest', -) -external ffi.Pointer _NSURLAuthenticationMethodHTTPDigest; - -objc.NSString get NSURLAuthenticationMethodHTTPDigest => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTTPDigest, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodHTTPDigest(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodHTTPDigest, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodHTTPDigest = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodNTLM', -) -external ffi.Pointer _NSURLAuthenticationMethodNTLM; - -objc.NSString get NSURLAuthenticationMethodNTLM => objc.NSString.fromPointer( - _NSURLAuthenticationMethodNTLM, - retain: true, - release: true, -); - -set NSURLAuthenticationMethodNTLM(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodNTLM, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodNTLM = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodNegotiate', -) -external ffi.Pointer _NSURLAuthenticationMethodNegotiate; - -objc.NSString get NSURLAuthenticationMethodNegotiate => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodNegotiate, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodNegotiate(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodNegotiate, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodNegotiate = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLAuthenticationMethodServerTrust', -) -external ffi.Pointer _NSURLAuthenticationMethodServerTrust; - -objc.NSString get NSURLAuthenticationMethodServerTrust => - objc.NSString.fromPointer( - _NSURLAuthenticationMethodServerTrust, - retain: true, - release: true, - ); - -set NSURLAuthenticationMethodServerTrust(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLAuthenticationMethodServerTrust, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLAuthenticationMethodServerTrust = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLCanonicalPathKey') -external NSURLResourceKey _NSURLCanonicalPathKey; - -DartNSURLResourceKey get NSURLCanonicalPathKey => objc.NSString.fromPointer( - _NSURLCanonicalPathKey, - retain: true, - release: true, -); - -set NSURLCanonicalPathKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLCanonicalPathKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLCanonicalPathKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLContentAccessDateKey') -external NSURLResourceKey _NSURLContentAccessDateKey; - -DartNSURLResourceKey get NSURLContentAccessDateKey => objc.NSString.fromPointer( - _NSURLContentAccessDateKey, - retain: true, - release: true, -); - -set NSURLContentAccessDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLContentAccessDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLContentAccessDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLContentModificationDateKey') -external NSURLResourceKey _NSURLContentModificationDateKey; - -DartNSURLResourceKey get NSURLContentModificationDateKey => - objc.NSString.fromPointer( - _NSURLContentModificationDateKey, - retain: true, - release: true, - ); - -set NSURLContentModificationDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLContentModificationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLContentModificationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLContentTypeKey') -external NSURLResourceKey _NSURLContentTypeKey; - -DartNSURLResourceKey get NSURLContentTypeKey => objc.NSString.fromPointer( - _NSURLContentTypeKey, - retain: true, - release: true, -); - -set NSURLContentTypeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLContentTypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLContentTypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLCreationDateKey') -external NSURLResourceKey _NSURLCreationDateKey; - -DartNSURLResourceKey get NSURLCreationDateKey => objc.NSString.fromPointer( - _NSURLCreationDateKey, - retain: true, - release: true, -); - -set NSURLCreationDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLCreationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLCreationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLCredentialStorageChangedNotification', -) -external NSNotificationName _NSURLCredentialStorageChangedNotification; - -DartNSNotificationName get NSURLCredentialStorageChangedNotification => - objc.NSString.fromPointer( - _NSURLCredentialStorageChangedNotification, - retain: true, - release: true, - ); - -set NSURLCredentialStorageChangedNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSURLCredentialStorageChangedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLCredentialStorageChangedNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLCredentialStorageRemoveSynchronizableCredentials', -) -external ffi.Pointer -_NSURLCredentialStorageRemoveSynchronizableCredentials; - -objc.NSString get NSURLCredentialStorageRemoveSynchronizableCredentials => - objc.NSString.fromPointer( - _NSURLCredentialStorageRemoveSynchronizableCredentials, - retain: true, - release: true, - ); - -set NSURLCredentialStorageRemoveSynchronizableCredentials(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLCredentialStorageRemoveSynchronizableCredentials, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLCredentialStorageRemoveSynchronizableCredentials = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLCustomIconKey') -external NSURLResourceKey _NSURLCustomIconKey; - -DartNSURLResourceKey get NSURLCustomIconKey => - objc.NSString.fromPointer(_NSURLCustomIconKey, retain: true, release: true); - -set NSURLCustomIconKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLCustomIconKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLCustomIconKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLDirectoryEntryCountKey') -external NSURLResourceKey _NSURLDirectoryEntryCountKey; - -DartNSURLResourceKey get NSURLDirectoryEntryCountKey => - objc.NSString.fromPointer( - _NSURLDirectoryEntryCountKey, - retain: true, - release: true, - ); - -set NSURLDirectoryEntryCountKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLDirectoryEntryCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLDirectoryEntryCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLDocumentIdentifierKey') -external NSURLResourceKey _NSURLDocumentIdentifierKey; - -DartNSURLResourceKey get NSURLDocumentIdentifierKey => - objc.NSString.fromPointer( - _NSURLDocumentIdentifierKey, - retain: true, - release: true, - ); - -set NSURLDocumentIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLDocumentIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLDocumentIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLEffectiveIconKey') -external NSURLResourceKey _NSURLEffectiveIconKey; - -DartNSURLResourceKey get NSURLEffectiveIconKey => objc.NSString.fromPointer( - _NSURLEffectiveIconKey, - retain: true, - release: true, -); - -set NSURLEffectiveIconKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLEffectiveIconKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLEffectiveIconKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLErrorBackgroundTaskCancelledReasonKey', -) -external ffi.Pointer -_NSURLErrorBackgroundTaskCancelledReasonKey; - -objc.NSString get NSURLErrorBackgroundTaskCancelledReasonKey => - objc.NSString.fromPointer( - _NSURLErrorBackgroundTaskCancelledReasonKey, - retain: true, - release: true, - ); - -set NSURLErrorBackgroundTaskCancelledReasonKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLErrorBackgroundTaskCancelledReasonKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorBackgroundTaskCancelledReasonKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLErrorDomain') -external NSErrorDomain _NSURLErrorDomain; - -DartNSErrorDomain get NSURLErrorDomain => - objc.NSString.fromPointer(_NSURLErrorDomain, retain: true, release: true); - -set NSURLErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSURLErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLErrorFailingURLErrorKey', -) -external ffi.Pointer _NSURLErrorFailingURLErrorKey; - -objc.NSString get NSURLErrorFailingURLErrorKey => objc.NSString.fromPointer( - _NSURLErrorFailingURLErrorKey, - retain: true, - release: true, -); - -set NSURLErrorFailingURLErrorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLErrorFailingURLErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorFailingURLErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLErrorFailingURLPeerTrustErrorKey', -) -external ffi.Pointer -_NSURLErrorFailingURLPeerTrustErrorKey; - -objc.NSString get NSURLErrorFailingURLPeerTrustErrorKey => - objc.NSString.fromPointer( - _NSURLErrorFailingURLPeerTrustErrorKey, - retain: true, - release: true, - ); - -set NSURLErrorFailingURLPeerTrustErrorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLErrorFailingURLPeerTrustErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorFailingURLPeerTrustErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLErrorFailingURLStringErrorKey', -) -external ffi.Pointer _NSURLErrorFailingURLStringErrorKey; - -objc.NSString get NSURLErrorFailingURLStringErrorKey => - objc.NSString.fromPointer( - _NSURLErrorFailingURLStringErrorKey, - retain: true, - release: true, - ); - -set NSURLErrorFailingURLStringErrorKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLErrorFailingURLStringErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorFailingURLStringErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLErrorKey') -external NSErrorUserInfoKey _NSURLErrorKey; - -DartNSErrorUserInfoKey get NSURLErrorKey => - objc.NSString.fromPointer(_NSURLErrorKey, retain: true, release: true); - -set NSURLErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSURLErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLErrorNetworkUnavailableReasonKey') -external NSErrorUserInfoKey _NSURLErrorNetworkUnavailableReasonKey; - -DartNSErrorUserInfoKey get NSURLErrorNetworkUnavailableReasonKey => - objc.NSString.fromPointer( - _NSURLErrorNetworkUnavailableReasonKey, - retain: true, - release: true, - ); - -set NSURLErrorNetworkUnavailableReasonKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSURLErrorNetworkUnavailableReasonKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLErrorNetworkUnavailableReasonKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileAllocatedSizeKey') -external NSURLResourceKey _NSURLFileAllocatedSizeKey; - -DartNSURLResourceKey get NSURLFileAllocatedSizeKey => objc.NSString.fromPointer( - _NSURLFileAllocatedSizeKey, - retain: true, - release: true, -); - -set NSURLFileAllocatedSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileAllocatedSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileAllocatedSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileContentIdentifierKey') -external NSURLResourceKey _NSURLFileContentIdentifierKey; - -DartNSURLResourceKey get NSURLFileContentIdentifierKey => - objc.NSString.fromPointer( - _NSURLFileContentIdentifierKey, - retain: true, - release: true, - ); - -set NSURLFileContentIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileContentIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileContentIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileIdentifierKey') -external NSURLResourceKey _NSURLFileIdentifierKey; - -DartNSURLResourceKey get NSURLFileIdentifierKey => objc.NSString.fromPointer( - _NSURLFileIdentifierKey, - retain: true, - release: true, -); - -set NSURLFileIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileProtectionComplete') -external NSURLFileProtectionType _NSURLFileProtectionComplete; - -DartNSURLFileProtectionType get NSURLFileProtectionComplete => - objc.NSString.fromPointer( - _NSURLFileProtectionComplete, - retain: true, - release: true, - ); - -set NSURLFileProtectionComplete(DartNSURLFileProtectionType value) { - objc.NSString.fromPointer( - _NSURLFileProtectionComplete, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionComplete = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLFileProtectionCompleteUnlessOpen', -) -external NSURLFileProtectionType _NSURLFileProtectionCompleteUnlessOpen; - -DartNSURLFileProtectionType get NSURLFileProtectionCompleteUnlessOpen => - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteUnlessOpen, - retain: true, - release: true, - ); - -set NSURLFileProtectionCompleteUnlessOpen(DartNSURLFileProtectionType value) { - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteUnlessOpen, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionCompleteUnlessOpen = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLFileProtectionCompleteUntilFirstUserAuthentication', -) -external NSURLFileProtectionType -_NSURLFileProtectionCompleteUntilFirstUserAuthentication; - -DartNSURLFileProtectionType -get NSURLFileProtectionCompleteUntilFirstUserAuthentication => - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteUntilFirstUserAuthentication, - retain: true, - release: true, - ); - -set NSURLFileProtectionCompleteUntilFirstUserAuthentication( - DartNSURLFileProtectionType value, -) { - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteUntilFirstUserAuthentication, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionCompleteUntilFirstUserAuthentication = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLFileProtectionCompleteWhenUserInactive', -) -external NSURLFileProtectionType _NSURLFileProtectionCompleteWhenUserInactive; - -DartNSURLFileProtectionType get NSURLFileProtectionCompleteWhenUserInactive => - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteWhenUserInactive, - retain: true, - release: true, - ); - -set NSURLFileProtectionCompleteWhenUserInactive( - DartNSURLFileProtectionType value, -) { - objc.NSString.fromPointer( - _NSURLFileProtectionCompleteWhenUserInactive, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionCompleteWhenUserInactive = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileProtectionKey') -external NSURLResourceKey _NSURLFileProtectionKey; - -DartNSURLResourceKey get NSURLFileProtectionKey => objc.NSString.fromPointer( - _NSURLFileProtectionKey, - retain: true, - release: true, -); - -set NSURLFileProtectionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileProtectionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileProtectionNone') -external NSURLFileProtectionType _NSURLFileProtectionNone; - -DartNSURLFileProtectionType get NSURLFileProtectionNone => - objc.NSString.fromPointer( - _NSURLFileProtectionNone, - retain: true, - release: true, - ); - -set NSURLFileProtectionNone(DartNSURLFileProtectionType value) { - objc.NSString.fromPointer( - _NSURLFileProtectionNone, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileProtectionNone = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceIdentifierKey') -external NSURLResourceKey _NSURLFileResourceIdentifierKey; - -DartNSURLResourceKey get NSURLFileResourceIdentifierKey => - objc.NSString.fromPointer( - _NSURLFileResourceIdentifierKey, - retain: true, - release: true, - ); - -set NSURLFileResourceIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileResourceIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeBlockSpecial') -external NSURLFileResourceType _NSURLFileResourceTypeBlockSpecial; - -DartNSURLFileResourceType get NSURLFileResourceTypeBlockSpecial => - objc.NSString.fromPointer( - _NSURLFileResourceTypeBlockSpecial, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeBlockSpecial(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeBlockSpecial, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeBlockSpecial = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLFileResourceTypeCharacterSpecial', -) -external NSURLFileResourceType _NSURLFileResourceTypeCharacterSpecial; - -DartNSURLFileResourceType get NSURLFileResourceTypeCharacterSpecial => - objc.NSString.fromPointer( - _NSURLFileResourceTypeCharacterSpecial, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeCharacterSpecial(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeCharacterSpecial, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeCharacterSpecial = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeDirectory') -external NSURLFileResourceType _NSURLFileResourceTypeDirectory; - -DartNSURLFileResourceType get NSURLFileResourceTypeDirectory => - objc.NSString.fromPointer( - _NSURLFileResourceTypeDirectory, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeDirectory(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeDirectory, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeDirectory = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeKey') -external NSURLResourceKey _NSURLFileResourceTypeKey; - -DartNSURLResourceKey get NSURLFileResourceTypeKey => objc.NSString.fromPointer( - _NSURLFileResourceTypeKey, - retain: true, - release: true, -); - -set NSURLFileResourceTypeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeNamedPipe') -external NSURLFileResourceType _NSURLFileResourceTypeNamedPipe; - -DartNSURLFileResourceType get NSURLFileResourceTypeNamedPipe => - objc.NSString.fromPointer( - _NSURLFileResourceTypeNamedPipe, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeNamedPipe(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeNamedPipe, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeNamedPipe = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeRegular') -external NSURLFileResourceType _NSURLFileResourceTypeRegular; - -DartNSURLFileResourceType get NSURLFileResourceTypeRegular => - objc.NSString.fromPointer( - _NSURLFileResourceTypeRegular, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeRegular(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeRegular, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeRegular = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeSocket') -external NSURLFileResourceType _NSURLFileResourceTypeSocket; - -DartNSURLFileResourceType get NSURLFileResourceTypeSocket => - objc.NSString.fromPointer( - _NSURLFileResourceTypeSocket, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeSocket(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeSocket, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeSocket = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeSymbolicLink') -external NSURLFileResourceType _NSURLFileResourceTypeSymbolicLink; - -DartNSURLFileResourceType get NSURLFileResourceTypeSymbolicLink => - objc.NSString.fromPointer( - _NSURLFileResourceTypeSymbolicLink, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeSymbolicLink(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeSymbolicLink, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeSymbolicLink = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileResourceTypeUnknown') -external NSURLFileResourceType _NSURLFileResourceTypeUnknown; - -DartNSURLFileResourceType get NSURLFileResourceTypeUnknown => - objc.NSString.fromPointer( - _NSURLFileResourceTypeUnknown, - retain: true, - release: true, - ); - -set NSURLFileResourceTypeUnknown(DartNSURLFileResourceType value) { - objc.NSString.fromPointer( - _NSURLFileResourceTypeUnknown, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileResourceTypeUnknown = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSURLFileScheme') -external ffi.Pointer _NSURLFileScheme; - -objc.NSString get NSURLFileScheme => - objc.NSString.fromPointer(_NSURLFileScheme, retain: true, release: true); - -set NSURLFileScheme(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLFileScheme, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileScheme = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileSecurityKey') -external NSURLResourceKey _NSURLFileSecurityKey; - -DartNSURLResourceKey get NSURLFileSecurityKey => objc.NSString.fromPointer( - _NSURLFileSecurityKey, - retain: true, - release: true, -); - -set NSURLFileSecurityKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileSecurityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileSecurityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLFileSizeKey') -external NSURLResourceKey _NSURLFileSizeKey; - -DartNSURLResourceKey get NSURLFileSizeKey => - objc.NSString.fromPointer(_NSURLFileSizeKey, retain: true, release: true); - -set NSURLFileSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLFileSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLFileSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLGenerationIdentifierKey') -external NSURLResourceKey _NSURLGenerationIdentifierKey; - -DartNSURLResourceKey get NSURLGenerationIdentifierKey => - objc.NSString.fromPointer( - _NSURLGenerationIdentifierKey, - retain: true, - release: true, - ); - -set NSURLGenerationIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLGenerationIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLGenerationIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLHasHiddenExtensionKey') -external NSURLResourceKey _NSURLHasHiddenExtensionKey; - -DartNSURLResourceKey get NSURLHasHiddenExtensionKey => - objc.NSString.fromPointer( - _NSURLHasHiddenExtensionKey, - retain: true, - release: true, - ); - -set NSURLHasHiddenExtensionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLHasHiddenExtensionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLHasHiddenExtensionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsAliasFileKey') -external NSURLResourceKey _NSURLIsAliasFileKey; - -DartNSURLResourceKey get NSURLIsAliasFileKey => objc.NSString.fromPointer( - _NSURLIsAliasFileKey, - retain: true, - release: true, -); - -set NSURLIsAliasFileKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsAliasFileKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsAliasFileKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsApplicationKey') -external NSURLResourceKey _NSURLIsApplicationKey; - -DartNSURLResourceKey get NSURLIsApplicationKey => objc.NSString.fromPointer( - _NSURLIsApplicationKey, - retain: true, - release: true, -); - -set NSURLIsApplicationKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsApplicationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsApplicationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsDirectoryKey') -external NSURLResourceKey _NSURLIsDirectoryKey; - -DartNSURLResourceKey get NSURLIsDirectoryKey => objc.NSString.fromPointer( - _NSURLIsDirectoryKey, - retain: true, - release: true, -); - -set NSURLIsDirectoryKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsDirectoryKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsDirectoryKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsExcludedFromBackupKey') -external NSURLResourceKey _NSURLIsExcludedFromBackupKey; - -DartNSURLResourceKey get NSURLIsExcludedFromBackupKey => - objc.NSString.fromPointer( - _NSURLIsExcludedFromBackupKey, - retain: true, - release: true, - ); - -set NSURLIsExcludedFromBackupKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsExcludedFromBackupKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsExcludedFromBackupKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsExecutableKey') -external NSURLResourceKey _NSURLIsExecutableKey; - -DartNSURLResourceKey get NSURLIsExecutableKey => objc.NSString.fromPointer( - _NSURLIsExecutableKey, - retain: true, - release: true, -); - -set NSURLIsExecutableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsExecutableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsExecutableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsHiddenKey') -external NSURLResourceKey _NSURLIsHiddenKey; - -DartNSURLResourceKey get NSURLIsHiddenKey => - objc.NSString.fromPointer(_NSURLIsHiddenKey, retain: true, release: true); - -set NSURLIsHiddenKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsHiddenKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsHiddenKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsMountTriggerKey') -external NSURLResourceKey _NSURLIsMountTriggerKey; - -DartNSURLResourceKey get NSURLIsMountTriggerKey => objc.NSString.fromPointer( - _NSURLIsMountTriggerKey, - retain: true, - release: true, -); - -set NSURLIsMountTriggerKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsMountTriggerKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsMountTriggerKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsPackageKey') -external NSURLResourceKey _NSURLIsPackageKey; - -DartNSURLResourceKey get NSURLIsPackageKey => - objc.NSString.fromPointer(_NSURLIsPackageKey, retain: true, release: true); - -set NSURLIsPackageKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsPackageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsPackageKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsPurgeableKey') -external NSURLResourceKey _NSURLIsPurgeableKey; - -DartNSURLResourceKey get NSURLIsPurgeableKey => objc.NSString.fromPointer( - _NSURLIsPurgeableKey, - retain: true, - release: true, -); - -set NSURLIsPurgeableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsPurgeableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsPurgeableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsReadableKey') -external NSURLResourceKey _NSURLIsReadableKey; - -DartNSURLResourceKey get NSURLIsReadableKey => - objc.NSString.fromPointer(_NSURLIsReadableKey, retain: true, release: true); - -set NSURLIsReadableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsReadableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsReadableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsRegularFileKey') -external NSURLResourceKey _NSURLIsRegularFileKey; - -DartNSURLResourceKey get NSURLIsRegularFileKey => objc.NSString.fromPointer( - _NSURLIsRegularFileKey, - retain: true, - release: true, -); - -set NSURLIsRegularFileKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsRegularFileKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsRegularFileKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsSparseKey') -external NSURLResourceKey _NSURLIsSparseKey; - -DartNSURLResourceKey get NSURLIsSparseKey => - objc.NSString.fromPointer(_NSURLIsSparseKey, retain: true, release: true); - -set NSURLIsSparseKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsSparseKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsSparseKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsSymbolicLinkKey') -external NSURLResourceKey _NSURLIsSymbolicLinkKey; - -DartNSURLResourceKey get NSURLIsSymbolicLinkKey => objc.NSString.fromPointer( - _NSURLIsSymbolicLinkKey, - retain: true, - release: true, -); - -set NSURLIsSymbolicLinkKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsSymbolicLinkKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsSymbolicLinkKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsSystemImmutableKey') -external NSURLResourceKey _NSURLIsSystemImmutableKey; - -DartNSURLResourceKey get NSURLIsSystemImmutableKey => objc.NSString.fromPointer( - _NSURLIsSystemImmutableKey, - retain: true, - release: true, -); - -set NSURLIsSystemImmutableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsSystemImmutableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsSystemImmutableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsUbiquitousItemKey') -external NSURLResourceKey _NSURLIsUbiquitousItemKey; - -DartNSURLResourceKey get NSURLIsUbiquitousItemKey => objc.NSString.fromPointer( - _NSURLIsUbiquitousItemKey, - retain: true, - release: true, -); - -set NSURLIsUbiquitousItemKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsUbiquitousItemKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsUbiquitousItemKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsUserImmutableKey') -external NSURLResourceKey _NSURLIsUserImmutableKey; - -DartNSURLResourceKey get NSURLIsUserImmutableKey => objc.NSString.fromPointer( - _NSURLIsUserImmutableKey, - retain: true, - release: true, -); - -set NSURLIsUserImmutableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsUserImmutableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsUserImmutableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsVolumeKey') -external NSURLResourceKey _NSURLIsVolumeKey; - -DartNSURLResourceKey get NSURLIsVolumeKey => - objc.NSString.fromPointer(_NSURLIsVolumeKey, retain: true, release: true); - -set NSURLIsVolumeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsVolumeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsVolumeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLIsWritableKey') -external NSURLResourceKey _NSURLIsWritableKey; - -DartNSURLResourceKey get NSURLIsWritableKey => - objc.NSString.fromPointer(_NSURLIsWritableKey, retain: true, release: true); - -set NSURLIsWritableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLIsWritableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLIsWritableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLKeysOfUnsetValuesKey') -external NSURLResourceKey _NSURLKeysOfUnsetValuesKey; - -DartNSURLResourceKey get NSURLKeysOfUnsetValuesKey => objc.NSString.fromPointer( - _NSURLKeysOfUnsetValuesKey, - retain: true, - release: true, -); - -set NSURLKeysOfUnsetValuesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLKeysOfUnsetValuesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLKeysOfUnsetValuesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLabelColorKey') -external NSURLResourceKey _NSURLLabelColorKey; - -DartNSURLResourceKey get NSURLLabelColorKey => - objc.NSString.fromPointer(_NSURLLabelColorKey, retain: true, release: true); - -set NSURLLabelColorKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLabelColorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLabelColorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLabelNumberKey') -external NSURLResourceKey _NSURLLabelNumberKey; - -DartNSURLResourceKey get NSURLLabelNumberKey => objc.NSString.fromPointer( - _NSURLLabelNumberKey, - retain: true, - release: true, -); - -set NSURLLabelNumberKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLabelNumberKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLabelNumberKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLinkCountKey') -external NSURLResourceKey _NSURLLinkCountKey; - -DartNSURLResourceKey get NSURLLinkCountKey => - objc.NSString.fromPointer(_NSURLLinkCountKey, retain: true, release: true); - -set NSURLLinkCountKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLinkCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLinkCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLocalizedLabelKey') -external NSURLResourceKey _NSURLLocalizedLabelKey; - -DartNSURLResourceKey get NSURLLocalizedLabelKey => objc.NSString.fromPointer( - _NSURLLocalizedLabelKey, - retain: true, - release: true, -); - -set NSURLLocalizedLabelKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLocalizedLabelKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLocalizedLabelKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLocalizedNameKey') -external NSURLResourceKey _NSURLLocalizedNameKey; - -DartNSURLResourceKey get NSURLLocalizedNameKey => objc.NSString.fromPointer( - _NSURLLocalizedNameKey, - retain: true, - release: true, -); - -set NSURLLocalizedNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLocalizedNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLocalizedNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLLocalizedTypeDescriptionKey') -external NSURLResourceKey _NSURLLocalizedTypeDescriptionKey; - -DartNSURLResourceKey get NSURLLocalizedTypeDescriptionKey => - objc.NSString.fromPointer( - _NSURLLocalizedTypeDescriptionKey, - retain: true, - release: true, - ); - -set NSURLLocalizedTypeDescriptionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLLocalizedTypeDescriptionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLLocalizedTypeDescriptionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLMayHaveExtendedAttributesKey') -external NSURLResourceKey _NSURLMayHaveExtendedAttributesKey; - -DartNSURLResourceKey get NSURLMayHaveExtendedAttributesKey => - objc.NSString.fromPointer( - _NSURLMayHaveExtendedAttributesKey, - retain: true, - release: true, - ); - -set NSURLMayHaveExtendedAttributesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLMayHaveExtendedAttributesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLMayHaveExtendedAttributesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLMayShareFileContentKey') -external NSURLResourceKey _NSURLMayShareFileContentKey; - -DartNSURLResourceKey get NSURLMayShareFileContentKey => - objc.NSString.fromPointer( - _NSURLMayShareFileContentKey, - retain: true, - release: true, - ); - -set NSURLMayShareFileContentKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLMayShareFileContentKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLMayShareFileContentKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLNameKey') -external NSURLResourceKey _NSURLNameKey; - -DartNSURLResourceKey get NSURLNameKey => - objc.NSString.fromPointer(_NSURLNameKey, retain: true, release: true); - -set NSURLNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLParentDirectoryURLKey') -external NSURLResourceKey _NSURLParentDirectoryURLKey; - -DartNSURLResourceKey get NSURLParentDirectoryURLKey => - objc.NSString.fromPointer( - _NSURLParentDirectoryURLKey, - retain: true, - release: true, - ); - -set NSURLParentDirectoryURLKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLParentDirectoryURLKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLParentDirectoryURLKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLPathKey') -external NSURLResourceKey _NSURLPathKey; - -DartNSURLResourceKey get NSURLPathKey => - objc.NSString.fromPointer(_NSURLPathKey, retain: true, release: true); - -set NSURLPathKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLPathKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLPathKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLPreferredIOBlockSizeKey') -external NSURLResourceKey _NSURLPreferredIOBlockSizeKey; - -DartNSURLResourceKey get NSURLPreferredIOBlockSizeKey => - objc.NSString.fromPointer( - _NSURLPreferredIOBlockSizeKey, - retain: true, - release: true, - ); - -set NSURLPreferredIOBlockSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLPreferredIOBlockSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLPreferredIOBlockSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSURLProtectionSpaceFTP') -external ffi.Pointer _NSURLProtectionSpaceFTP; - -objc.NSString get NSURLProtectionSpaceFTP => objc.NSString.fromPointer( - _NSURLProtectionSpaceFTP, - retain: true, - release: true, -); - -set NSURLProtectionSpaceFTP(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceFTP, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceFTP = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceFTPProxy', -) -external ffi.Pointer _NSURLProtectionSpaceFTPProxy; - -objc.NSString get NSURLProtectionSpaceFTPProxy => objc.NSString.fromPointer( - _NSURLProtectionSpaceFTPProxy, - retain: true, - release: true, -); - -set NSURLProtectionSpaceFTPProxy(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceFTPProxy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceFTPProxy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceHTTP', -) -external ffi.Pointer _NSURLProtectionSpaceHTTP; - -objc.NSString get NSURLProtectionSpaceHTTP => objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTP, - retain: true, - release: true, -); - -set NSURLProtectionSpaceHTTP(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTP, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceHTTP = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceHTTPProxy', -) -external ffi.Pointer _NSURLProtectionSpaceHTTPProxy; - -objc.NSString get NSURLProtectionSpaceHTTPProxy => objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPProxy, - retain: true, - release: true, -); - -set NSURLProtectionSpaceHTTPProxy(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPProxy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceHTTPProxy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceHTTPS', -) -external ffi.Pointer _NSURLProtectionSpaceHTTPS; - -objc.NSString get NSURLProtectionSpaceHTTPS => objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPS, - retain: true, - release: true, -); - -set NSURLProtectionSpaceHTTPS(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPS, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceHTTPS = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceHTTPSProxy', -) -external ffi.Pointer _NSURLProtectionSpaceHTTPSProxy; - -objc.NSString get NSURLProtectionSpaceHTTPSProxy => objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPSProxy, - retain: true, - release: true, -); - -set NSURLProtectionSpaceHTTPSProxy(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceHTTPSProxy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceHTTPSProxy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLProtectionSpaceSOCKSProxy', -) -external ffi.Pointer _NSURLProtectionSpaceSOCKSProxy; - -objc.NSString get NSURLProtectionSpaceSOCKSProxy => objc.NSString.fromPointer( - _NSURLProtectionSpaceSOCKSProxy, - retain: true, - release: true, -); - -set NSURLProtectionSpaceSOCKSProxy(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLProtectionSpaceSOCKSProxy, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLProtectionSpaceSOCKSProxy = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLQuarantinePropertiesKey') -external NSURLResourceKey _NSURLQuarantinePropertiesKey; - -DartNSURLResourceKey get NSURLQuarantinePropertiesKey => - objc.NSString.fromPointer( - _NSURLQuarantinePropertiesKey, - retain: true, - release: true, - ); - -set NSURLQuarantinePropertiesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLQuarantinePropertiesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLQuarantinePropertiesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSURLSessionDownloadTaskResumeData', -) -external ffi.Pointer _NSURLSessionDownloadTaskResumeData; - -objc.NSString get NSURLSessionDownloadTaskResumeData => - objc.NSString.fromPointer( - _NSURLSessionDownloadTaskResumeData, - retain: true, - release: true, - ); - -set NSURLSessionDownloadTaskResumeData(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLSessionDownloadTaskResumeData, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLSessionDownloadTaskResumeData = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final double NSURLSessionTaskPriorityDefault; - -@ffi.Native() -external final double NSURLSessionTaskPriorityHigh; - -@ffi.Native() -external final double NSURLSessionTaskPriorityLow; - -@ffi.Native() -external final int NSURLSessionTransferSizeUnknown; - -@ffi.Native>( - symbol: 'NSURLSessionUploadTaskResumeData', -) -external ffi.Pointer _NSURLSessionUploadTaskResumeData; - -objc.NSString get NSURLSessionUploadTaskResumeData => objc.NSString.fromPointer( - _NSURLSessionUploadTaskResumeData, - retain: true, - release: true, -); - -set NSURLSessionUploadTaskResumeData(objc.NSString value) { - objc.NSString.fromPointer( - _NSURLSessionUploadTaskResumeData, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLSessionUploadTaskResumeData = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLTagNamesKey') -external NSURLResourceKey _NSURLTagNamesKey; - -DartNSURLResourceKey get NSURLTagNamesKey => - objc.NSString.fromPointer(_NSURLTagNamesKey, retain: true, release: true); - -set NSURLTagNamesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLTagNamesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLTagNamesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLThumbnailDictionaryKey') -external NSURLResourceKey _NSURLThumbnailDictionaryKey; - -DartNSURLResourceKey get NSURLThumbnailDictionaryKey => - objc.NSString.fromPointer( - _NSURLThumbnailDictionaryKey, - retain: true, - release: true, - ); - -set NSURLThumbnailDictionaryKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLThumbnailDictionaryKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLThumbnailDictionaryKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLThumbnailKey') -external NSURLResourceKey _NSURLThumbnailKey; - -DartNSURLResourceKey get NSURLThumbnailKey => - objc.NSString.fromPointer(_NSURLThumbnailKey, retain: true, release: true); - -set NSURLThumbnailKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLThumbnailKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLThumbnailKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLTotalFileAllocatedSizeKey') -external NSURLResourceKey _NSURLTotalFileAllocatedSizeKey; - -DartNSURLResourceKey get NSURLTotalFileAllocatedSizeKey => - objc.NSString.fromPointer( - _NSURLTotalFileAllocatedSizeKey, - retain: true, - release: true, - ); - -set NSURLTotalFileAllocatedSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLTotalFileAllocatedSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLTotalFileAllocatedSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLTotalFileSizeKey') -external NSURLResourceKey _NSURLTotalFileSizeKey; - -DartNSURLResourceKey get NSURLTotalFileSizeKey => objc.NSString.fromPointer( - _NSURLTotalFileSizeKey, - retain: true, - release: true, -); - -set NSURLTotalFileSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLTotalFileSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLTotalFileSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLTypeIdentifierKey') -external NSURLResourceKey _NSURLTypeIdentifierKey; - -DartNSURLResourceKey get NSURLTypeIdentifierKey => objc.NSString.fromPointer( - _NSURLTypeIdentifierKey, - retain: true, - release: true, -); - -set NSURLTypeIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLTypeIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLTypeIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemContainerDisplayNameKey', -) -external NSURLResourceKey _NSURLUbiquitousItemContainerDisplayNameKey; - -DartNSURLResourceKey get NSURLUbiquitousItemContainerDisplayNameKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemContainerDisplayNameKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemContainerDisplayNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemContainerDisplayNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemContainerDisplayNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadRequestedKey') -external NSURLResourceKey _NSURLUbiquitousItemDownloadRequestedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemDownloadRequestedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadRequestedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemDownloadRequestedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadRequestedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadRequestedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadingErrorKey') -external NSURLResourceKey _NSURLUbiquitousItemDownloadingErrorKey; - -DartNSURLResourceKey get NSURLUbiquitousItemDownloadingErrorKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingErrorKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemDownloadingErrorKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadingErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemDownloadingStatusCurrent', -) -external NSURLUbiquitousItemDownloadingStatus -_NSURLUbiquitousItemDownloadingStatusCurrent; - -DartNSURLUbiquitousItemDownloadingStatus -get NSURLUbiquitousItemDownloadingStatusCurrent => objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusCurrent, - retain: true, - release: true, -); - -set NSURLUbiquitousItemDownloadingStatusCurrent( - DartNSURLUbiquitousItemDownloadingStatus value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusCurrent, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadingStatusCurrent = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemDownloadingStatusDownloaded', -) -external NSURLUbiquitousItemDownloadingStatus -_NSURLUbiquitousItemDownloadingStatusDownloaded; - -DartNSURLUbiquitousItemDownloadingStatus -get NSURLUbiquitousItemDownloadingStatusDownloaded => objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusDownloaded, - retain: true, - release: true, -); - -set NSURLUbiquitousItemDownloadingStatusDownloaded( - DartNSURLUbiquitousItemDownloadingStatus value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusDownloaded, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadingStatusDownloaded = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemDownloadingStatusKey') -external NSURLResourceKey _NSURLUbiquitousItemDownloadingStatusKey; - -DartNSURLResourceKey get NSURLUbiquitousItemDownloadingStatusKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemDownloadingStatusKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadingStatusKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemDownloadingStatusNotDownloaded', -) -external NSURLUbiquitousItemDownloadingStatus -_NSURLUbiquitousItemDownloadingStatusNotDownloaded; - -DartNSURLUbiquitousItemDownloadingStatus -get NSURLUbiquitousItemDownloadingStatusNotDownloaded => - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusNotDownloaded, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemDownloadingStatusNotDownloaded( - DartNSURLUbiquitousItemDownloadingStatus value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemDownloadingStatusNotDownloaded, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemDownloadingStatusNotDownloaded = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemHasUnresolvedConflictsKey', -) -external NSURLResourceKey _NSURLUbiquitousItemHasUnresolvedConflictsKey; - -DartNSURLResourceKey get NSURLUbiquitousItemHasUnresolvedConflictsKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemHasUnresolvedConflictsKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemHasUnresolvedConflictsKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemHasUnresolvedConflictsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemHasUnresolvedConflictsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsDownloadedKey') -external NSURLResourceKey _NSURLUbiquitousItemIsDownloadedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsDownloadedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsDownloadedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsDownloadedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsDownloadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsDownloadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsDownloadingKey') -external NSURLResourceKey _NSURLUbiquitousItemIsDownloadingKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsDownloadingKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsDownloadingKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsDownloadingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsDownloadingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsDownloadingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemIsExcludedFromSyncKey', -) -external NSURLResourceKey _NSURLUbiquitousItemIsExcludedFromSyncKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsExcludedFromSyncKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsExcludedFromSyncKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsExcludedFromSyncKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsExcludedFromSyncKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsExcludedFromSyncKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsSharedKey') -external NSURLResourceKey _NSURLUbiquitousItemIsSharedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsSharedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsSharedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsSharedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsSharedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsSharedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsSyncPausedKey') -external NSURLResourceKey _NSURLUbiquitousItemIsSyncPausedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsSyncPausedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsSyncPausedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsSyncPausedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsSyncPausedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsSyncPausedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsUploadedKey') -external NSURLResourceKey _NSURLUbiquitousItemIsUploadedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsUploadedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsUploadedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsUploadedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsUploadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsUploadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemIsUploadingKey') -external NSURLResourceKey _NSURLUbiquitousItemIsUploadingKey; - -DartNSURLResourceKey get NSURLUbiquitousItemIsUploadingKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsUploadingKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemIsUploadingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemIsUploadingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemIsUploadingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemPercentDownloadedKey') -external NSURLResourceKey _NSURLUbiquitousItemPercentDownloadedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemPercentDownloadedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemPercentDownloadedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemPercentDownloadedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemPercentDownloadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemPercentDownloadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemPercentUploadedKey') -external NSURLResourceKey _NSURLUbiquitousItemPercentUploadedKey; - -DartNSURLResourceKey get NSURLUbiquitousItemPercentUploadedKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemPercentUploadedKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemPercentUploadedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemPercentUploadedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemPercentUploadedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousItemSupportedSyncControlsKey', -) -external NSURLResourceKey _NSURLUbiquitousItemSupportedSyncControlsKey; - -DartNSURLResourceKey get NSURLUbiquitousItemSupportedSyncControlsKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemSupportedSyncControlsKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemSupportedSyncControlsKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemSupportedSyncControlsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemSupportedSyncControlsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLUbiquitousItemUploadingErrorKey') -external NSURLResourceKey _NSURLUbiquitousItemUploadingErrorKey; - -DartNSURLResourceKey get NSURLUbiquitousItemUploadingErrorKey => - objc.NSString.fromPointer( - _NSURLUbiquitousItemUploadingErrorKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousItemUploadingErrorKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousItemUploadingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousItemUploadingErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemCurrentUserPermissionsKey', -) -external NSURLResourceKey _NSURLUbiquitousSharedItemCurrentUserPermissionsKey; - -DartNSURLResourceKey get NSURLUbiquitousSharedItemCurrentUserPermissionsKey => - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemCurrentUserPermissionsKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousSharedItemCurrentUserPermissionsKey( - DartNSURLResourceKey value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemCurrentUserPermissionsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemCurrentUserPermissionsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemCurrentUserRoleKey', -) -external NSURLResourceKey _NSURLUbiquitousSharedItemCurrentUserRoleKey; - -DartNSURLResourceKey get NSURLUbiquitousSharedItemCurrentUserRoleKey => - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemCurrentUserRoleKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousSharedItemCurrentUserRoleKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemCurrentUserRoleKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemCurrentUserRoleKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey', -) -external NSURLResourceKey -_NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey; - -DartNSURLResourceKey -get NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey => - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey( - DartNSURLResourceKey value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemOwnerNameComponentsKey', -) -external NSURLResourceKey _NSURLUbiquitousSharedItemOwnerNameComponentsKey; - -DartNSURLResourceKey get NSURLUbiquitousSharedItemOwnerNameComponentsKey => - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemOwnerNameComponentsKey, - retain: true, - release: true, - ); - -set NSURLUbiquitousSharedItemOwnerNameComponentsKey( - DartNSURLResourceKey value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemOwnerNameComponentsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemOwnerNameComponentsKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemPermissionsReadOnly', -) -external NSURLUbiquitousSharedItemPermissions -_NSURLUbiquitousSharedItemPermissionsReadOnly; - -DartNSURLUbiquitousSharedItemPermissions -get NSURLUbiquitousSharedItemPermissionsReadOnly => objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemPermissionsReadOnly, - retain: true, - release: true, -); - -set NSURLUbiquitousSharedItemPermissionsReadOnly( - DartNSURLUbiquitousSharedItemPermissions value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemPermissionsReadOnly, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemPermissionsReadOnly = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemPermissionsReadWrite', -) -external NSURLUbiquitousSharedItemPermissions -_NSURLUbiquitousSharedItemPermissionsReadWrite; - -DartNSURLUbiquitousSharedItemPermissions -get NSURLUbiquitousSharedItemPermissionsReadWrite => objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemPermissionsReadWrite, - retain: true, - release: true, -); - -set NSURLUbiquitousSharedItemPermissionsReadWrite( - DartNSURLUbiquitousSharedItemPermissions value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemPermissionsReadWrite, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemPermissionsReadWrite = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemRoleOwner', -) -external NSURLUbiquitousSharedItemRole _NSURLUbiquitousSharedItemRoleOwner; - -DartNSURLUbiquitousSharedItemRole get NSURLUbiquitousSharedItemRoleOwner => - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemRoleOwner, - retain: true, - release: true, - ); - -set NSURLUbiquitousSharedItemRoleOwner( - DartNSURLUbiquitousSharedItemRole value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemRoleOwner, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemRoleOwner = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLUbiquitousSharedItemRoleParticipant', -) -external NSURLUbiquitousSharedItemRole -_NSURLUbiquitousSharedItemRoleParticipant; - -DartNSURLUbiquitousSharedItemRole -get NSURLUbiquitousSharedItemRoleParticipant => objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemRoleParticipant, - retain: true, - release: true, -); - -set NSURLUbiquitousSharedItemRoleParticipant( - DartNSURLUbiquitousSharedItemRole value, -) { - objc.NSString.fromPointer( - _NSURLUbiquitousSharedItemRoleParticipant, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLUbiquitousSharedItemRoleParticipant = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeAvailableCapacityForImportantUsageKey', -) -external NSURLResourceKey _NSURLVolumeAvailableCapacityForImportantUsageKey; - -DartNSURLResourceKey get NSURLVolumeAvailableCapacityForImportantUsageKey => - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityForImportantUsageKey, - retain: true, - release: true, - ); - -set NSURLVolumeAvailableCapacityForImportantUsageKey( - DartNSURLResourceKey value, -) { - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityForImportantUsageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeAvailableCapacityForImportantUsageKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeAvailableCapacityForOpportunisticUsageKey', -) -external NSURLResourceKey _NSURLVolumeAvailableCapacityForOpportunisticUsageKey; - -DartNSURLResourceKey get NSURLVolumeAvailableCapacityForOpportunisticUsageKey => - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityForOpportunisticUsageKey, - retain: true, - release: true, - ); - -set NSURLVolumeAvailableCapacityForOpportunisticUsageKey( - DartNSURLResourceKey value, -) { - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityForOpportunisticUsageKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeAvailableCapacityForOpportunisticUsageKey = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeAvailableCapacityKey') -external NSURLResourceKey _NSURLVolumeAvailableCapacityKey; - -DartNSURLResourceKey get NSURLVolumeAvailableCapacityKey => - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityKey, - retain: true, - release: true, - ); - -set NSURLVolumeAvailableCapacityKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeAvailableCapacityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeAvailableCapacityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeCreationDateKey') -external NSURLResourceKey _NSURLVolumeCreationDateKey; - -DartNSURLResourceKey get NSURLVolumeCreationDateKey => - objc.NSString.fromPointer( - _NSURLVolumeCreationDateKey, - retain: true, - release: true, - ); - -set NSURLVolumeCreationDateKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeCreationDateKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeCreationDateKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIdentifierKey') -external NSURLResourceKey _NSURLVolumeIdentifierKey; - -DartNSURLResourceKey get NSURLVolumeIdentifierKey => objc.NSString.fromPointer( - _NSURLVolumeIdentifierKey, - retain: true, - release: true, -); - -set NSURLVolumeIdentifierKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIdentifierKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIdentifierKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsAutomountedKey') -external NSURLResourceKey _NSURLVolumeIsAutomountedKey; - -DartNSURLResourceKey get NSURLVolumeIsAutomountedKey => - objc.NSString.fromPointer( - _NSURLVolumeIsAutomountedKey, - retain: true, - release: true, - ); - -set NSURLVolumeIsAutomountedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsAutomountedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsAutomountedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsBrowsableKey') -external NSURLResourceKey _NSURLVolumeIsBrowsableKey; - -DartNSURLResourceKey get NSURLVolumeIsBrowsableKey => objc.NSString.fromPointer( - _NSURLVolumeIsBrowsableKey, - retain: true, - release: true, -); - -set NSURLVolumeIsBrowsableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsBrowsableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsBrowsableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsEjectableKey') -external NSURLResourceKey _NSURLVolumeIsEjectableKey; - -DartNSURLResourceKey get NSURLVolumeIsEjectableKey => objc.NSString.fromPointer( - _NSURLVolumeIsEjectableKey, - retain: true, - release: true, -); - -set NSURLVolumeIsEjectableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsEjectableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsEjectableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsEncryptedKey') -external NSURLResourceKey _NSURLVolumeIsEncryptedKey; - -DartNSURLResourceKey get NSURLVolumeIsEncryptedKey => objc.NSString.fromPointer( - _NSURLVolumeIsEncryptedKey, - retain: true, - release: true, -); - -set NSURLVolumeIsEncryptedKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsEncryptedKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsEncryptedKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsInternalKey') -external NSURLResourceKey _NSURLVolumeIsInternalKey; - -DartNSURLResourceKey get NSURLVolumeIsInternalKey => objc.NSString.fromPointer( - _NSURLVolumeIsInternalKey, - retain: true, - release: true, -); - -set NSURLVolumeIsInternalKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsInternalKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsInternalKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsJournalingKey') -external NSURLResourceKey _NSURLVolumeIsJournalingKey; - -DartNSURLResourceKey get NSURLVolumeIsJournalingKey => - objc.NSString.fromPointer( - _NSURLVolumeIsJournalingKey, - retain: true, - release: true, - ); - -set NSURLVolumeIsJournalingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsJournalingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsJournalingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsLocalKey') -external NSURLResourceKey _NSURLVolumeIsLocalKey; - -DartNSURLResourceKey get NSURLVolumeIsLocalKey => objc.NSString.fromPointer( - _NSURLVolumeIsLocalKey, - retain: true, - release: true, -); - -set NSURLVolumeIsLocalKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsLocalKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsLocalKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsReadOnlyKey') -external NSURLResourceKey _NSURLVolumeIsReadOnlyKey; - -DartNSURLResourceKey get NSURLVolumeIsReadOnlyKey => objc.NSString.fromPointer( - _NSURLVolumeIsReadOnlyKey, - retain: true, - release: true, -); - -set NSURLVolumeIsReadOnlyKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsReadOnlyKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsReadOnlyKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsRemovableKey') -external NSURLResourceKey _NSURLVolumeIsRemovableKey; - -DartNSURLResourceKey get NSURLVolumeIsRemovableKey => objc.NSString.fromPointer( - _NSURLVolumeIsRemovableKey, - retain: true, - release: true, -); - -set NSURLVolumeIsRemovableKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsRemovableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsRemovableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeIsRootFileSystemKey') -external NSURLResourceKey _NSURLVolumeIsRootFileSystemKey; - -DartNSURLResourceKey get NSURLVolumeIsRootFileSystemKey => - objc.NSString.fromPointer( - _NSURLVolumeIsRootFileSystemKey, - retain: true, - release: true, - ); - -set NSURLVolumeIsRootFileSystemKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeIsRootFileSystemKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeIsRootFileSystemKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeLocalizedFormatDescriptionKey', -) -external NSURLResourceKey _NSURLVolumeLocalizedFormatDescriptionKey; - -DartNSURLResourceKey get NSURLVolumeLocalizedFormatDescriptionKey => - objc.NSString.fromPointer( - _NSURLVolumeLocalizedFormatDescriptionKey, - retain: true, - release: true, - ); - -set NSURLVolumeLocalizedFormatDescriptionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeLocalizedFormatDescriptionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeLocalizedFormatDescriptionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeLocalizedNameKey') -external NSURLResourceKey _NSURLVolumeLocalizedNameKey; - -DartNSURLResourceKey get NSURLVolumeLocalizedNameKey => - objc.NSString.fromPointer( - _NSURLVolumeLocalizedNameKey, - retain: true, - release: true, - ); - -set NSURLVolumeLocalizedNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeLocalizedNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeLocalizedNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeMaximumFileSizeKey') -external NSURLResourceKey _NSURLVolumeMaximumFileSizeKey; - -DartNSURLResourceKey get NSURLVolumeMaximumFileSizeKey => - objc.NSString.fromPointer( - _NSURLVolumeMaximumFileSizeKey, - retain: true, - release: true, - ); - -set NSURLVolumeMaximumFileSizeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeMaximumFileSizeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeMaximumFileSizeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeMountFromLocationKey') -external NSURLResourceKey _NSURLVolumeMountFromLocationKey; - -DartNSURLResourceKey get NSURLVolumeMountFromLocationKey => - objc.NSString.fromPointer( - _NSURLVolumeMountFromLocationKey, - retain: true, - release: true, - ); - -set NSURLVolumeMountFromLocationKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeMountFromLocationKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeMountFromLocationKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeNameKey') -external NSURLResourceKey _NSURLVolumeNameKey; - -DartNSURLResourceKey get NSURLVolumeNameKey => - objc.NSString.fromPointer(_NSURLVolumeNameKey, retain: true, release: true); - -set NSURLVolumeNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeResourceCountKey') -external NSURLResourceKey _NSURLVolumeResourceCountKey; - -DartNSURLResourceKey get NSURLVolumeResourceCountKey => - objc.NSString.fromPointer( - _NSURLVolumeResourceCountKey, - retain: true, - release: true, - ); - -set NSURLVolumeResourceCountKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeResourceCountKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeResourceCountKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSubtypeKey') -external NSURLResourceKey _NSURLVolumeSubtypeKey; - -DartNSURLResourceKey get NSURLVolumeSubtypeKey => objc.NSString.fromPointer( - _NSURLVolumeSubtypeKey, - retain: true, - release: true, -); - -set NSURLVolumeSubtypeKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSubtypeKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSubtypeKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsAccessPermissionsKey') -external NSURLResourceKey _NSURLVolumeSupportsAccessPermissionsKey; - -DartNSURLResourceKey get NSURLVolumeSupportsAccessPermissionsKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsAccessPermissionsKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsAccessPermissionsKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsAccessPermissionsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsAccessPermissionsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeSupportsAdvisoryFileLockingKey', -) -external NSURLResourceKey _NSURLVolumeSupportsAdvisoryFileLockingKey; - -DartNSURLResourceKey get NSURLVolumeSupportsAdvisoryFileLockingKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsAdvisoryFileLockingKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsAdvisoryFileLockingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsAdvisoryFileLockingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsAdvisoryFileLockingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeSupportsCasePreservedNamesKey', -) -external NSURLResourceKey _NSURLVolumeSupportsCasePreservedNamesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsCasePreservedNamesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsCasePreservedNamesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsCasePreservedNamesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsCasePreservedNamesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsCasePreservedNamesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeSupportsCaseSensitiveNamesKey', -) -external NSURLResourceKey _NSURLVolumeSupportsCaseSensitiveNamesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsCaseSensitiveNamesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsCaseSensitiveNamesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsCaseSensitiveNamesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsCaseSensitiveNamesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsCaseSensitiveNamesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsCompressionKey') -external NSURLResourceKey _NSURLVolumeSupportsCompressionKey; - -DartNSURLResourceKey get NSURLVolumeSupportsCompressionKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsCompressionKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsCompressionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsCompressionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsCompressionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsExclusiveRenamingKey') -external NSURLResourceKey _NSURLVolumeSupportsExclusiveRenamingKey; - -DartNSURLResourceKey get NSURLVolumeSupportsExclusiveRenamingKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsExclusiveRenamingKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsExclusiveRenamingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsExclusiveRenamingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsExclusiveRenamingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsExtendedSecurityKey') -external NSURLResourceKey _NSURLVolumeSupportsExtendedSecurityKey; - -DartNSURLResourceKey get NSURLVolumeSupportsExtendedSecurityKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsExtendedSecurityKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsExtendedSecurityKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsExtendedSecurityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsExtendedSecurityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsFileCloningKey') -external NSURLResourceKey _NSURLVolumeSupportsFileCloningKey; - -DartNSURLResourceKey get NSURLVolumeSupportsFileCloningKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsFileCloningKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsFileCloningKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsFileCloningKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsFileCloningKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsFileProtectionKey') -external NSURLResourceKey _NSURLVolumeSupportsFileProtectionKey; - -DartNSURLResourceKey get NSURLVolumeSupportsFileProtectionKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsFileProtectionKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsFileProtectionKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsFileProtectionKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsFileProtectionKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsHardLinksKey') -external NSURLResourceKey _NSURLVolumeSupportsHardLinksKey; - -DartNSURLResourceKey get NSURLVolumeSupportsHardLinksKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsHardLinksKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsHardLinksKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsHardLinksKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsHardLinksKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsImmutableFilesKey') -external NSURLResourceKey _NSURLVolumeSupportsImmutableFilesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsImmutableFilesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsImmutableFilesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsImmutableFilesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsImmutableFilesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsImmutableFilesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsJournalingKey') -external NSURLResourceKey _NSURLVolumeSupportsJournalingKey; - -DartNSURLResourceKey get NSURLVolumeSupportsJournalingKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsJournalingKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsJournalingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsJournalingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsJournalingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsPersistentIDsKey') -external NSURLResourceKey _NSURLVolumeSupportsPersistentIDsKey; - -DartNSURLResourceKey get NSURLVolumeSupportsPersistentIDsKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsPersistentIDsKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsPersistentIDsKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsPersistentIDsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsPersistentIDsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsRenamingKey') -external NSURLResourceKey _NSURLVolumeSupportsRenamingKey; - -DartNSURLResourceKey get NSURLVolumeSupportsRenamingKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsRenamingKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsRenamingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsRenamingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsRenamingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSURLVolumeSupportsRootDirectoryDatesKey', -) -external NSURLResourceKey _NSURLVolumeSupportsRootDirectoryDatesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsRootDirectoryDatesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsRootDirectoryDatesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsRootDirectoryDatesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsRootDirectoryDatesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsRootDirectoryDatesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsSparseFilesKey') -external NSURLResourceKey _NSURLVolumeSupportsSparseFilesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsSparseFilesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsSparseFilesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsSparseFilesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsSparseFilesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsSparseFilesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsSwapRenamingKey') -external NSURLResourceKey _NSURLVolumeSupportsSwapRenamingKey; - -DartNSURLResourceKey get NSURLVolumeSupportsSwapRenamingKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsSwapRenamingKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsSwapRenamingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsSwapRenamingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsSwapRenamingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsSymbolicLinksKey') -external NSURLResourceKey _NSURLVolumeSupportsSymbolicLinksKey; - -DartNSURLResourceKey get NSURLVolumeSupportsSymbolicLinksKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsSymbolicLinksKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsSymbolicLinksKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsSymbolicLinksKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsSymbolicLinksKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsVolumeSizesKey') -external NSURLResourceKey _NSURLVolumeSupportsVolumeSizesKey; - -DartNSURLResourceKey get NSURLVolumeSupportsVolumeSizesKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsVolumeSizesKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsVolumeSizesKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsVolumeSizesKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsVolumeSizesKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeSupportsZeroRunsKey') -external NSURLResourceKey _NSURLVolumeSupportsZeroRunsKey; - -DartNSURLResourceKey get NSURLVolumeSupportsZeroRunsKey => - objc.NSString.fromPointer( - _NSURLVolumeSupportsZeroRunsKey, - retain: true, - release: true, - ); - -set NSURLVolumeSupportsZeroRunsKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeSupportsZeroRunsKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeSupportsZeroRunsKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeTotalCapacityKey') -external NSURLResourceKey _NSURLVolumeTotalCapacityKey; - -DartNSURLResourceKey get NSURLVolumeTotalCapacityKey => - objc.NSString.fromPointer( - _NSURLVolumeTotalCapacityKey, - retain: true, - release: true, - ); - -set NSURLVolumeTotalCapacityKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeTotalCapacityKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeTotalCapacityKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeTypeNameKey') -external NSURLResourceKey _NSURLVolumeTypeNameKey; - -DartNSURLResourceKey get NSURLVolumeTypeNameKey => objc.NSString.fromPointer( - _NSURLVolumeTypeNameKey, - retain: true, - release: true, -); - -set NSURLVolumeTypeNameKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeTypeNameKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeTypeNameKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeURLForRemountingKey') -external NSURLResourceKey _NSURLVolumeURLForRemountingKey; - -DartNSURLResourceKey get NSURLVolumeURLForRemountingKey => - objc.NSString.fromPointer( - _NSURLVolumeURLForRemountingKey, - retain: true, - release: true, - ); - -set NSURLVolumeURLForRemountingKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeURLForRemountingKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeURLForRemountingKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeURLKey') -external NSURLResourceKey _NSURLVolumeURLKey; - -DartNSURLResourceKey get NSURLVolumeURLKey => - objc.NSString.fromPointer(_NSURLVolumeURLKey, retain: true, release: true); - -set NSURLVolumeURLKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeURLKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeURLKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSURLVolumeUUIDStringKey') -external NSURLResourceKey _NSURLVolumeUUIDStringKey; - -DartNSURLResourceKey get NSURLVolumeUUIDStringKey => objc.NSString.fromPointer( - _NSURLVolumeUUIDStringKey, - retain: true, - release: true, -); - -set NSURLVolumeUUIDStringKey(DartNSURLResourceKey value) { - objc.NSString.fromPointer( - _NSURLVolumeUUIDStringKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSURLVolumeUUIDStringKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSUbiquitousKeyValueStoreChangeReasonKey', -) -external ffi.Pointer -_NSUbiquitousKeyValueStoreChangeReasonKey; - -objc.NSString get NSUbiquitousKeyValueStoreChangeReasonKey => - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreChangeReasonKey, - retain: true, - release: true, - ); - -set NSUbiquitousKeyValueStoreChangeReasonKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreChangeReasonKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousKeyValueStoreChangeReasonKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSUbiquitousKeyValueStoreChangedKeysKey', -) -external ffi.Pointer -_NSUbiquitousKeyValueStoreChangedKeysKey; - -objc.NSString get NSUbiquitousKeyValueStoreChangedKeysKey => - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreChangedKeysKey, - retain: true, - release: true, - ); - -set NSUbiquitousKeyValueStoreChangedKeysKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreChangedKeysKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousKeyValueStoreChangedKeysKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUbiquitousKeyValueStoreDidChangeExternallyNotification', -) -external NSNotificationName -_NSUbiquitousKeyValueStoreDidChangeExternallyNotification; - -DartNSNotificationName -get NSUbiquitousKeyValueStoreDidChangeExternallyNotification => - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreDidChangeExternallyNotification, - retain: true, - release: true, - ); - -set NSUbiquitousKeyValueStoreDidChangeExternallyNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSUbiquitousKeyValueStoreDidChangeExternallyNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousKeyValueStoreDidChangeExternallyNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUbiquitousUserDefaultsCompletedInitialSyncNotification', -) -external NSNotificationName -_NSUbiquitousUserDefaultsCompletedInitialSyncNotification; - -DartNSNotificationName -get NSUbiquitousUserDefaultsCompletedInitialSyncNotification => - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsCompletedInitialSyncNotification, - retain: true, - release: true, - ); - -set NSUbiquitousUserDefaultsCompletedInitialSyncNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsCompletedInitialSyncNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousUserDefaultsCompletedInitialSyncNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUbiquitousUserDefaultsDidChangeAccountsNotification', -) -external NSNotificationName -_NSUbiquitousUserDefaultsDidChangeAccountsNotification; - -DartNSNotificationName -get NSUbiquitousUserDefaultsDidChangeAccountsNotification => - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsDidChangeAccountsNotification, - retain: true, - release: true, - ); - -set NSUbiquitousUserDefaultsDidChangeAccountsNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsDidChangeAccountsNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousUserDefaultsDidChangeAccountsNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUbiquitousUserDefaultsNoCloudAccountNotification', -) -external NSNotificationName _NSUbiquitousUserDefaultsNoCloudAccountNotification; - -DartNSNotificationName get NSUbiquitousUserDefaultsNoCloudAccountNotification => - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsNoCloudAccountNotification, - retain: true, - release: true, - ); - -set NSUbiquitousUserDefaultsNoCloudAccountNotification( - DartNSNotificationName value, -) { - objc.NSString.fromPointer( - _NSUbiquitousUserDefaultsNoCloudAccountNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquitousUserDefaultsNoCloudAccountNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUbiquityIdentityDidChangeNotification', -) -external NSNotificationName _NSUbiquityIdentityDidChangeNotification; - -DartNSNotificationName get NSUbiquityIdentityDidChangeNotification => - objc.NSString.fromPointer( - _NSUbiquityIdentityDidChangeNotification, - retain: true, - release: true, - ); - -set NSUbiquityIdentityDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUbiquityIdentityDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUbiquityIdentityDidChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUnarchiveFromDataTransformerName', -) -external NSValueTransformerName _NSUnarchiveFromDataTransformerName; - -DartNSValueTransformerName get NSUnarchiveFromDataTransformerName => - objc.NSString.fromPointer( - _NSUnarchiveFromDataTransformerName, - retain: true, - release: true, - ); - -set NSUnarchiveFromDataTransformerName(DartNSValueTransformerName value) { - objc.NSString.fromPointer( - _NSUnarchiveFromDataTransformerName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUnarchiveFromDataTransformerName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUndefinedKeyException') -external NSExceptionName _NSUndefinedKeyException; - -DartNSExceptionName get NSUndefinedKeyException => objc.NSString.fromPointer( - _NSUndefinedKeyException, - retain: true, - release: true, -); - -set NSUndefinedKeyException(DartNSExceptionName value) { - objc.NSString.fromPointer( - _NSUndefinedKeyException, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndefinedKeyException = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUnderlyingErrorKey') -external NSErrorUserInfoKey _NSUnderlyingErrorKey; - -DartNSErrorUserInfoKey get NSUnderlyingErrorKey => objc.NSString.fromPointer( - _NSUnderlyingErrorKey, - retain: true, - release: true, -); - -set NSUnderlyingErrorKey(DartNSErrorUserInfoKey value) { - objc.NSString.fromPointer( - _NSUnderlyingErrorKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUnderlyingErrorKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUndoManagerCheckpointNotification') -external NSNotificationName _NSUndoManagerCheckpointNotification; - -DartNSNotificationName get NSUndoManagerCheckpointNotification => - objc.NSString.fromPointer( - _NSUndoManagerCheckpointNotification, - retain: true, - release: true, - ); - -set NSUndoManagerCheckpointNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerCheckpointNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerCheckpointNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerDidCloseUndoGroupNotification', -) -external NSNotificationName _NSUndoManagerDidCloseUndoGroupNotification; - -DartNSNotificationName get NSUndoManagerDidCloseUndoGroupNotification => - objc.NSString.fromPointer( - _NSUndoManagerDidCloseUndoGroupNotification, - retain: true, - release: true, - ); - -set NSUndoManagerDidCloseUndoGroupNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerDidCloseUndoGroupNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerDidCloseUndoGroupNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerDidOpenUndoGroupNotification', -) -external NSNotificationName _NSUndoManagerDidOpenUndoGroupNotification; - -DartNSNotificationName get NSUndoManagerDidOpenUndoGroupNotification => - objc.NSString.fromPointer( - _NSUndoManagerDidOpenUndoGroupNotification, - retain: true, - release: true, - ); - -set NSUndoManagerDidOpenUndoGroupNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerDidOpenUndoGroupNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerDidOpenUndoGroupNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerDidRedoChangeNotification', -) -external NSNotificationName _NSUndoManagerDidRedoChangeNotification; - -DartNSNotificationName get NSUndoManagerDidRedoChangeNotification => - objc.NSString.fromPointer( - _NSUndoManagerDidRedoChangeNotification, - retain: true, - release: true, - ); - -set NSUndoManagerDidRedoChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerDidRedoChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerDidRedoChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerDidUndoChangeNotification', -) -external NSNotificationName _NSUndoManagerDidUndoChangeNotification; - -DartNSNotificationName get NSUndoManagerDidUndoChangeNotification => - objc.NSString.fromPointer( - _NSUndoManagerDidUndoChangeNotification, - retain: true, - release: true, - ); - -set NSUndoManagerDidUndoChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerDidUndoChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerDidUndoChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSUndoManagerGroupIsDiscardableKey', -) -external ffi.Pointer _NSUndoManagerGroupIsDiscardableKey; - -objc.NSString get NSUndoManagerGroupIsDiscardableKey => - objc.NSString.fromPointer( - _NSUndoManagerGroupIsDiscardableKey, - retain: true, - release: true, - ); - -set NSUndoManagerGroupIsDiscardableKey(objc.NSString value) { - objc.NSString.fromPointer( - _NSUndoManagerGroupIsDiscardableKey, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerGroupIsDiscardableKey = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerWillCloseUndoGroupNotification', -) -external NSNotificationName _NSUndoManagerWillCloseUndoGroupNotification; - -DartNSNotificationName get NSUndoManagerWillCloseUndoGroupNotification => - objc.NSString.fromPointer( - _NSUndoManagerWillCloseUndoGroupNotification, - retain: true, - release: true, - ); - -set NSUndoManagerWillCloseUndoGroupNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerWillCloseUndoGroupNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerWillCloseUndoGroupNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerWillRedoChangeNotification', -) -external NSNotificationName _NSUndoManagerWillRedoChangeNotification; - -DartNSNotificationName get NSUndoManagerWillRedoChangeNotification => - objc.NSString.fromPointer( - _NSUndoManagerWillRedoChangeNotification, - retain: true, - release: true, - ); - -set NSUndoManagerWillRedoChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerWillRedoChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerWillRedoChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUndoManagerWillUndoChangeNotification', -) -external NSNotificationName _NSUndoManagerWillUndoChangeNotification; - -DartNSNotificationName get NSUndoManagerWillUndoChangeNotification => - objc.NSString.fromPointer( - _NSUndoManagerWillUndoChangeNotification, - retain: true, - release: true, - ); - -set NSUndoManagerWillUndoChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUndoManagerWillUndoChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUndoManagerWillUndoChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUnionOfArraysKeyValueOperator') -external NSKeyValueOperator _NSUnionOfArraysKeyValueOperator; - -DartNSKeyValueOperator get NSUnionOfArraysKeyValueOperator => - objc.NSString.fromPointer( - _NSUnionOfArraysKeyValueOperator, - retain: true, - release: true, - ); - -set NSUnionOfArraysKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSUnionOfArraysKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUnionOfArraysKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUnionOfObjectsKeyValueOperator') -external NSKeyValueOperator _NSUnionOfObjectsKeyValueOperator; - -DartNSKeyValueOperator get NSUnionOfObjectsKeyValueOperator => - objc.NSString.fromPointer( - _NSUnionOfObjectsKeyValueOperator, - retain: true, - release: true, - ); - -set NSUnionOfObjectsKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSUnionOfObjectsKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUnionOfObjectsKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUnionOfSetsKeyValueOperator') -external NSKeyValueOperator _NSUnionOfSetsKeyValueOperator; - -DartNSKeyValueOperator get NSUnionOfSetsKeyValueOperator => - objc.NSString.fromPointer( - _NSUnionOfSetsKeyValueOperator, - retain: true, - release: true, - ); - -set NSUnionOfSetsKeyValueOperator(DartNSKeyValueOperator value) { - objc.NSString.fromPointer( - _NSUnionOfSetsKeyValueOperator, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUnionOfSetsKeyValueOperator = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external NSRange NSUnionRange(NSRange range1, NSRange range2); - -@ffi.Native() -external NSRect NSUnionRect(NSRect aRect, NSRect bRect); - -@ffi.Native>( - symbol: 'NSUserActivityTypeBrowsingWeb', -) -external ffi.Pointer _NSUserActivityTypeBrowsingWeb; - -objc.NSString get NSUserActivityTypeBrowsingWeb => objc.NSString.fromPointer( - _NSUserActivityTypeBrowsingWeb, - retain: true, - release: true, -); - -set NSUserActivityTypeBrowsingWeb(objc.NSString value) { - objc.NSString.fromPointer( - _NSUserActivityTypeBrowsingWeb, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUserActivityTypeBrowsingWeb = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSUserDefaultsDidChangeNotification') -external NSNotificationName _NSUserDefaultsDidChangeNotification; - -DartNSNotificationName get NSUserDefaultsDidChangeNotification => - objc.NSString.fromPointer( - _NSUserDefaultsDidChangeNotification, - retain: true, - release: true, - ); - -set NSUserDefaultsDidChangeNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUserDefaultsDidChangeNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUserDefaultsDidChangeNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native( - symbol: 'NSUserDefaultsSizeLimitExceededNotification', -) -external NSNotificationName _NSUserDefaultsSizeLimitExceededNotification; - -DartNSNotificationName get NSUserDefaultsSizeLimitExceededNotification => - objc.NSString.fromPointer( - _NSUserDefaultsSizeLimitExceededNotification, - retain: true, - release: true, - ); - -set NSUserDefaultsSizeLimitExceededNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSUserDefaultsSizeLimitExceededNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUserDefaultsSizeLimitExceededNotification = _$$ref - .retainAndReturnPointer(); -} - -@ffi.Native Function()>(symbol: 'NSUserName') -external ffi.Pointer _NSUserName(); - -objc.NSString NSUserName() { - return objc.NSString.fromPointer(_NSUserName(), retain: true, release: true); -} - -@ffi.Native>( - symbol: 'NSUserNotificationDefaultSoundName', -) -external ffi.Pointer _NSUserNotificationDefaultSoundName; - -objc.NSString get NSUserNotificationDefaultSoundName => - objc.NSString.fromPointer( - _NSUserNotificationDefaultSoundName, - retain: true, - release: true, - ); - -set NSUserNotificationDefaultSoundName(objc.NSString value) { - objc.NSString.fromPointer( - _NSUserNotificationDefaultSoundName, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSUserNotificationDefaultSoundName = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSWeekDayNameArray') -external ffi.Pointer _NSWeekDayNameArray; - -objc.NSString get NSWeekDayNameArray => - objc.NSString.fromPointer(_NSWeekDayNameArray, retain: true, release: true); - -set NSWeekDayNameArray(objc.NSString value) { - objc.NSString.fromPointer( - _NSWeekDayNameArray, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSWeekDayNameArray = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSWillBecomeMultiThreadedNotification') -external NSNotificationName _NSWillBecomeMultiThreadedNotification; - -DartNSNotificationName get NSWillBecomeMultiThreadedNotification => - objc.NSString.fromPointer( - _NSWillBecomeMultiThreadedNotification, - retain: true, - release: true, - ); - -set NSWillBecomeMultiThreadedNotification(DartNSNotificationName value) { - objc.NSString.fromPointer( - _NSWillBecomeMultiThreadedNotification, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSWillBecomeMultiThreadedNotification = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: 'NSXMLParserErrorDomain') -external NSErrorDomain _NSXMLParserErrorDomain; - -DartNSErrorDomain get NSXMLParserErrorDomain => objc.NSString.fromPointer( - _NSXMLParserErrorDomain, - retain: true, - release: true, -); - -set NSXMLParserErrorDomain(DartNSErrorDomain value) { - objc.NSString.fromPointer( - _NSXMLParserErrorDomain, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSXMLParserErrorDomain = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSYearMonthWeekDesignations', -) -external ffi.Pointer _NSYearMonthWeekDesignations; - -objc.NSString get NSYearMonthWeekDesignations => objc.NSString.fromPointer( - _NSYearMonthWeekDesignations, - retain: true, - release: true, -); - -set NSYearMonthWeekDesignations(objc.NSString value) { - objc.NSString.fromPointer( - _NSYearMonthWeekDesignations, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _NSYearMonthWeekDesignations = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external final NSPoint NSZeroPoint; - -@ffi.Native() -external final NSRect NSZeroRect; - -@ffi.Native() -external final NSSize NSZeroSize; - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, NSUInteger, NSUInteger) ->() -external ffi.Pointer NSZoneCalloc( - ffi.Pointer zone, - int numElems, - int byteSize, -); - -@ffi.Native, ffi.Pointer)>() -external void NSZoneFree(ffi.Pointer zone, ffi.Pointer ptr); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer NSZoneFromPointer(ffi.Pointer ptr); - -@ffi.Native Function(ffi.Pointer, NSUInteger)>() -external ffi.Pointer NSZoneMalloc(ffi.Pointer zone, int size); - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'NSZoneName', -) -external ffi.Pointer _NSZoneName(ffi.Pointer zone); - -objc.NSString NSZoneName(ffi.Pointer zone) { - return objc.NSString.fromPointer( - _NSZoneName(zone), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->() -external ffi.Pointer NSZoneRealloc( - ffi.Pointer zone, - ffi.Pointer ptr, - int size, -); - -@Deprecated('Not supported') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'NXReadNSObjectFromCoder') -external ffi.Pointer _NXReadNSObjectFromCoder( - ffi.Pointer decoder, -); - -objc.NSObject? NXReadNSObjectFromCoder(objc.NSCoder decoder) { - final _$$ref = decoder.ref; - return _NXReadNSObjectFromCoder(_$$ref.pointer).address == 0 - ? null - : objc.NSObject.fromPointer( - _NXReadNSObjectFromCoder(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime NanosecondsToAbsolute(Nanoseconds nanoseconds); - -@Deprecated('Deprecated') -@ffi.Native() -external int NanosecondsToDuration(Nanoseconds theNanoseconds); - -@ffi.Native< - OSStatus Function( - TextEncoding, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int NearestMacTextEncodings( - int generalEncoding, - ffi.Pointer bestMacEncoding, - ffi.Pointer alternateMacEncoding, -); - -@ffi.Native() -external AECoerceDescUPP NewAECoerceDescUPP(AECoerceDescProcPtr userRoutine); - -@ffi.Native() -external AECoercePtrUPP NewAECoercePtrUPP(AECoercePtrProcPtr userRoutine); - -@ffi.Native() -external AEDisposeExternalUPP NewAEDisposeExternalUPP( - AEDisposeExternalProcPtr userRoutine, -); - -@ffi.Native() -external AEEventHandlerUPP NewAEEventHandlerUPP( - AEEventHandlerProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Collection NewCollection(); - -@Deprecated('Deprecated') -@ffi.Native() -external CollectionExceptionUPP NewCollectionExceptionUPP( - CollectionExceptionProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external CollectionFlattenUPP NewCollectionFlattenUPP( - CollectionFlattenProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external ComponentFunctionUPP NewComponentFunctionUPP( - ProcPtr userRoutine, - int procInfo, -); - -@Deprecated('Deprecated') -@ffi.Native< - ComponentMPWorkFunctionUPP Function(ComponentMPWorkFunctionProcPtr) ->() -external ComponentMPWorkFunctionUPP NewComponentMPWorkFunctionUPP( - ComponentMPWorkFunctionProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external ComponentRoutineUPP NewComponentRoutineUPP( - ComponentRoutineProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native< - DebugAssertOutputHandlerUPP Function(DebugAssertOutputHandlerProcPtr) ->() -external DebugAssertOutputHandlerUPP NewDebugAssertOutputHandlerUPP( - DebugAssertOutputHandlerProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(OSType, ConstStr255Param, DebugComponentCallbackUPP) ->() -external int NewDebugComponent( - int componentSignature, - ConstStr255Param componentName, - DebugComponentCallbackUPP componentCallback, -); - -@Deprecated('Deprecated') -@ffi.Native() -external DebugComponentCallbackUPP NewDebugComponentCallbackUPP( - DebugComponentCallbackProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int NewDebugOption( - int componentSignature, - int optionSelectorNum, - ConstStr255Param optionName, -); - -@Deprecated('Deprecated') -@ffi.Native() -external DebuggerDisposeThreadUPP NewDebuggerDisposeThreadUPP( - DebuggerDisposeThreadProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external DebuggerNewThreadUPP NewDebuggerNewThreadUPP( - DebuggerNewThreadProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native< - DebuggerThreadSchedulerUPP Function(DebuggerThreadSchedulerProcPtr) ->() -external DebuggerThreadSchedulerUPP NewDebuggerThreadSchedulerUPP( - DebuggerThreadSchedulerProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external DeferredTaskUPP NewDeferredTaskUPP(DeferredTaskProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle NewEmptyHandle(); - -@Deprecated('No longer supported') -@ffi.Native() -external ExceptionHandlerUPP NewExceptionHandlerUPP( - ExceptionHandlerProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external FNSubscriptionUPP NewFNSubscriptionUPP( - FNSubscriptionProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external FSVolumeEjectUPP NewFSVolumeEjectUPP(FSVolumeEjectProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external FSVolumeMountUPP NewFSVolumeMountUPP(FSVolumeMountProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external FSVolumeUnmountUPP NewFSVolumeUnmountUPP( - FSVolumeUnmountProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native< - FolderManagerNotificationUPP Function(FolderManagerNotificationProcPtr) ->() -external FolderManagerNotificationUPP NewFolderManagerNotificationUPP( - FolderManagerNotificationProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int NewGestaltValue(int selector, int newValue); - -@Deprecated('Deprecated') -@ffi.Native< - GetMissingComponentResourceUPP Function(GetMissingComponentResourceProcPtr) ->() -external GetMissingComponentResourceUPP NewGetMissingComponentResourceUPP( - GetMissingComponentResourceProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle NewHandle(int byteCount); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle NewHandleClear(int byteCount); - -@Deprecated('Deprecated') -@ffi.Native() -external IOCompletionUPP NewIOCompletionUPP(IOCompletionProcPtr userRoutine); - -@ffi.Native() -external IconActionUPP NewIconActionUPP(IconActionProcPtr userRoutine); - -@ffi.Native() -external IconGetterUPP NewIconGetterUPP(IconGetterProcPtr userRoutine); - -@ffi.Native() -external IndexToUCStringUPP NewIndexToUCStringUPP( - IndexToUCStringProcPtr userRoutine, -); - -@Deprecated('No longer supported') -@ffi.Native() -external KCCallbackUPP NewKCCallbackUPP(KCCallbackProcPtr userRoutine); - -@ffi.Native() -external OSLAccessorUPP NewOSLAccessorUPP(OSLAccessorProcPtr userRoutine); - -@ffi.Native() -external OSLAdjustMarksUPP NewOSLAdjustMarksUPP( - OSLAdjustMarksProcPtr userRoutine, -); - -@ffi.Native() -external OSLCompareUPP NewOSLCompareUPP(OSLCompareProcPtr userRoutine); - -@ffi.Native() -external OSLCountUPP NewOSLCountUPP(OSLCountProcPtr userRoutine); - -@ffi.Native() -external OSLDisposeTokenUPP NewOSLDisposeTokenUPP( - OSLDisposeTokenProcPtr userRoutine, -); - -@ffi.Native() -external OSLGetErrDescUPP NewOSLGetErrDescUPP(OSLGetErrDescProcPtr userRoutine); - -@ffi.Native() -external OSLGetMarkTokenUPP NewOSLGetMarkTokenUPP( - OSLGetMarkTokenProcPtr userRoutine, -); - -@ffi.Native() -external OSLMarkUPP NewOSLMarkUPP(OSLMarkProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr NewPtr(int byteCount); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr NewPtrClear(int byteCount); - -@Deprecated('Deprecated') -@ffi.Native() -external ResErrUPP NewResErrUPP(ResErrProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external SelectorFunctionUPP NewSelectorFunctionUPP( - SelectorFunctionProcPtr userRoutine, -); - -@Deprecated('No longer supported') -@ffi.Native() -external SleepQUPP NewSleepQUPP(SleepQProcPtr userRoutine); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer) ->() -external int NewSpeechChannel( - ffi.Pointer voice, - ffi.Pointer chan, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechDoneUPP NewSpeechDoneUPP(SpeechDoneProcPtr userRoutine); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechErrorUPP NewSpeechErrorUPP(SpeechErrorProcPtr userRoutine); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechPhonemeUPP NewSpeechPhonemeUPP(SpeechPhonemeProcPtr userRoutine); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechSyncUPP NewSpeechSyncUPP(SpeechSyncProcPtr userRoutine); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechTextDoneUPP NewSpeechTextDoneUPP( - SpeechTextDoneProcPtr userRoutine, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external SpeechWordUPP NewSpeechWordUPP(SpeechWordProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ThreadStyle, - ThreadEntryTPP, - ffi.Pointer, - Size, - ThreadOptions, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int NewThread( - int threadStyle, - ThreadEntryTPP threadEntry, - ffi.Pointer threadParam, - int stackSize, - int options, - ffi.Pointer> threadResult, - ffi.Pointer threadMade, -); - -@Deprecated('Deprecated') -@ffi.Native() -external ThreadEntryUPP NewThreadEntryUPP(ThreadEntryProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external ThreadSchedulerUPP NewThreadSchedulerUPP( - ThreadSchedulerProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external ThreadSwitchUPP NewThreadSwitchUPP(ThreadSwitchProcPtr userRoutine); - -@Deprecated('Deprecated') -@ffi.Native() -external ThreadTerminationUPP NewThreadTerminationUPP( - ThreadTerminationProcPtr userRoutine, -); - -@Deprecated('Deprecated') -@ffi.Native() -external TimerUPP NewTimerUPP(TimerProcPtr userRoutine); - -@ffi.Native() -external UnicodeToTextFallbackUPP NewUnicodeToTextFallbackUPP( - UnicodeToTextFallbackProcPtr userRoutine, -); - -@Deprecated( - 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicAdd32(int __theAmount, ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_add() from instead') -@ffi.Native)>() -external int OSAtomicAdd32Barrier( - int __theAmount, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', -) -@ffi.Native< - ffi.Int64 Function(ffi.Int64, ffi.Pointer) ->() -external int OSAtomicAdd64( - int __theAmount, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_add() from instead') -@ffi.Native< - ffi.Int64 Function(ffi.Int64, ffi.Pointer) ->() -external int OSAtomicAdd64Barrier( - int __theAmount, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_and_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicAnd32(int __theMask, ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_and() from instead') -@ffi.Native)>() -external int OSAtomicAnd32Barrier( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_and_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicAnd32Orig( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_and() from instead') -@ffi.Native)>() -external int OSAtomicAnd32OrigBarrier( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external bool OSAtomicCompareAndSwap32( - int __oldValue, - int __newValue, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_compare_exchange_strong() from instead') -@ffi.Native)>() -external bool OSAtomicCompareAndSwap32Barrier( - int __oldValue, - int __newValue, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', -) -@ffi.Native< - ffi.Bool Function( - ffi.Int64, - ffi.Int64, - ffi.Pointer, - ) ->() -external bool OSAtomicCompareAndSwap64( - int __oldValue, - int __newValue, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_compare_exchange_strong() from instead') -@ffi.Native< - ffi.Bool Function( - ffi.Int64, - ffi.Int64, - ffi.Pointer, - ) ->() -external bool OSAtomicCompareAndSwap64Barrier( - int __oldValue, - int __newValue, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from instead', -) -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external bool OSAtomicCompareAndSwapPtr( - ffi.Pointer __oldValue, - ffi.Pointer __newValue, - ffi.Pointer> __theValue, -); - -@Deprecated('Use atomic_compare_exchange_strong() from instead') -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external bool OSAtomicCompareAndSwapPtrBarrier( - ffi.Pointer __oldValue, - ffi.Pointer __newValue, - ffi.Pointer> __theValue, -); - -@Deprecated( - 'Use atomic_fetch_sub_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicDecrement32(ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_sub() from instead') -@ffi.Native)>() -external int OSAtomicDecrement32Barrier(ffi.Pointer __theValue); - -@Deprecated( - 'Use atomic_fetch_sub_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicDecrement64( - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_sub() from instead') -@ffi.Native)>() -external int OSAtomicDecrement64Barrier( - ffi.Pointer __theValue, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Size) ->() -external ffi.Pointer OSAtomicDequeue( - ffi.Pointer __list, - int __offset, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external void OSAtomicEnqueue( - ffi.Pointer __list, - ffi.Pointer __new, - int __offset, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Size) ->() -external ffi.Pointer OSAtomicFifoDequeue( - ffi.Pointer __list, - int __offset, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external void OSAtomicFifoEnqueue( - ffi.Pointer __list, - ffi.Pointer __new, - int __offset, -); - -@Deprecated( - 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicIncrement32(ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_add() from instead') -@ffi.Native)>() -external int OSAtomicIncrement32Barrier(ffi.Pointer __theValue); - -@Deprecated( - 'Use atomic_fetch_add_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicIncrement64( - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_add() from instead') -@ffi.Native)>() -external int OSAtomicIncrement64Barrier( - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_or_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicOr32(int __theMask, ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_or() from instead') -@ffi.Native)>() -external int OSAtomicOr32Barrier( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_or_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicOr32Orig( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_or() from instead') -@ffi.Native)>() -external int OSAtomicOr32OrigBarrier( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_xor_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicXor32(int __theMask, ffi.Pointer __theValue); - -@Deprecated('Use atomic_fetch_xor() from instead') -@ffi.Native)>() -external int OSAtomicXor32Barrier( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated( - 'Use atomic_fetch_xor_explicit(memory_order_relaxed) from instead', -) -@ffi.Native)>() -external int OSAtomicXor32Orig( - int __theMask, - ffi.Pointer __theValue, -); - -@Deprecated('Use atomic_fetch_xor() from instead') -@ffi.Native)>() -external int OSAtomicXor32OrigBarrier( - int __theMask, - ffi.Pointer __theValue, -); - -@ffi.Native< - kern_return_t Function( - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int OSGetNotificationFromMessage( - ffi.Pointer msg, - int index$1, - ffi.Pointer type, - ffi.Pointer reference, - ffi.Pointer> content, - ffi.Pointer size, -); - -@Deprecated('Use atomic_thread_fence() from instead') -@ffi.Native() -external void OSMemoryBarrier(); - -@Deprecated('Use os_unfair_lock_lock() from instead') -@ffi.Native)>() -external void OSSpinLockLock(ffi.Pointer __lock); - -@Deprecated('Use os_unfair_lock_trylock() from instead') -@ffi.Native)>() -external bool OSSpinLockTry(ffi.Pointer __lock); - -@Deprecated('Use os_unfair_lock_unlock() from instead') -@ffi.Native)>() -external void OSSpinLockUnlock(ffi.Pointer __lock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int OpenAComponent( - Component aComponent, - ffi.Pointer ci, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int OpenAComponentResFile( - Component aComponent, - ffi.Pointer resRef, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int OpenADefaultComponent( - int componentType, - int componentSubType, - ffi.Pointer ci, -); - -@Deprecated('Deprecated') -@ffi.Native() -external ComponentInstance OpenComponent(Component aComponent); - -@Deprecated('Deprecated') -@ffi.Native() -external int OpenComponentResFile(Component aComponent); - -@Deprecated('Deprecated') -@ffi.Native() -external ComponentInstance OpenDefaultComponent( - int componentType, - int componentSubType, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int OverrideIconRef(IconRef oldIconRef, IconRef newIconRef); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBAllocateForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBAllocateForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCatalogSearchAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCatalogSearchSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCloseForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCloseForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCloseIteratorAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCloseIteratorSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCompareFSRefsAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCompareFSRefsSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCreateDirectoryUnicodeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCreateDirectoryUnicodeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external void PBCreateFileAndOpenForkUnicodeAsync( - FSRefForkIOParamPtr paramBlock, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBCreateFileAndOpenForkUnicodeSync(FSRefForkIOParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCreateFileUnicodeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCreateFileUnicodeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBCreateForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBCreateForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBDeleteForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBDeleteForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBDeleteObjectAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBDeleteObjectSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBExchangeObjectsAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBExchangeObjectsSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFSCopyFileAsync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFSCopyFileSync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFSResolveNodeIDAsync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFSResolveNodeIDSync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBFlushForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBFlushForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFlushVolumeAsync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBFlushVolumeSync(FSRefParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetCatalogInfoAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetCatalogInfoBulkAsync( - ffi.Pointer paramBlock, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetCatalogInfoBulkSync( - ffi.Pointer paramBlock, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetCatalogInfoSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetForkCBInfoAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetForkCBInfoSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetForkPositionAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetForkPositionSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetForkSizeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetForkSizeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBGetVolumeInfoAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBGetVolumeInfoSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBIterateForksAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBIterateForksSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBMakeFSRefUnicodeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBMakeFSRefUnicodeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBMoveObjectAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBMoveObjectSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBOpenForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBOpenForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBOpenIteratorAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBOpenIteratorSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBReadForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBReadForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBRenameUnicodeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBRenameUnicodeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBSetCatalogInfoAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBSetCatalogInfoSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBSetForkPositionAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBSetForkPositionSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBSetForkSizeAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBSetForkSizeSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBSetVolumeInfoAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBSetVolumeInfoSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBUnlinkObjectAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBUnlinkObjectSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void PBWriteForkAsync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int PBWriteForkSync(ffi.Pointer paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBXLockRangeAsync(FSRangeLockParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBXLockRangeSync(FSRangeLockParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBXUnlockRangeAsync(FSRangeLockParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PBXUnlockRangeSync(FSRangeLockParamPtr paramBlock); - -@Deprecated('Deprecated') -@ffi.Native() -external int PLpos(ConstStr255Param str1, ConstStr255Param searchStr); - -@Deprecated('Deprecated') -@ffi.Native() -external StringPtr PLstrcat(StringPtr str, ConstStr255Param append); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr PLstrchr(ConstStr255Param str1, int ch1); - -@Deprecated('Deprecated') -@ffi.Native() -external int PLstrcmp(ConstStr255Param str1, ConstStr255Param str2); - -@Deprecated('Deprecated') -@ffi.Native() -external StringPtr PLstrcpy(StringPtr dest, ConstStr255Param source); - -@Deprecated('Deprecated') -@ffi.Native() -external int PLstrlen(ConstStr255Param str); - -@Deprecated('Deprecated') -@ffi.Native() -external StringPtr PLstrncat(StringPtr str1, ConstStr255Param append, int num); - -@Deprecated('Deprecated') -@ffi.Native() -external int PLstrncmp(ConstStr255Param str1, ConstStr255Param str2, int num); - -@Deprecated('Deprecated') -@ffi.Native() -external StringPtr PLstrncpy(StringPtr dest, ConstStr255Param source, int num); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr PLstrpbrk(ConstStr255Param str1, ConstStr255Param charSet); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr PLstrrchr(ConstStr255Param str1, int ch1); - -@Deprecated('Deprecated') -@ffi.Native() -external int PLstrspn(ConstStr255Param str1, ConstStr255Param charSet); - -@Deprecated('Deprecated') -@ffi.Native() -external Ptr PLstrstr(ConstStr255Param str1, ConstStr255Param searchStr); - -@ffi.Native() -external CGImageRef PMCGImageCreateWithEPSDataProvider( - CGDataProviderRef epsDataProvider, - CGImageRef epsPreview, -); - -@ffi.Native)>() -external int PMCopyAvailablePPDs(int domain, ffi.Pointer ppds); - -@ffi.Native)>() -external int PMCopyLocalizedPPD( - CFURLRef ppd, - ffi.Pointer localizedPPD, -); - -@ffi.Native)>() -external int PMCopyPPDData(CFURLRef ppd, ffi.Pointer data); - -@ffi.Native() -external int PMCopyPageFormat(PMPageFormat formatSrc, PMPageFormat formatDest); - -@ffi.Native() -external int PMCopyPrintSettings( - PMPrintSettings settingSrc, - PMPrintSettings settingDest, -); - -@ffi.Native)>() -external int PMCreateGenericPrinter(ffi.Pointer printer); - -@ffi.Native)>() -external int PMCreatePageFormat(ffi.Pointer pageFormat); - -@ffi.Native, PMPaper)>() -external int PMCreatePageFormatWithPMPaper( - ffi.Pointer pageFormat, - PMPaper paper, -); - -@ffi.Native)>() -external int PMCreatePrintSettings(ffi.Pointer printSettings); - -@ffi.Native)>() -external int PMCreateSession(ffi.Pointer printSession); - -@ffi.Native)>() -external int PMGetAdjustedPageRect( - PMPageFormat pageFormat, - ffi.Pointer pageRect, -); - -@ffi.Native)>() -external int PMGetAdjustedPaperRect( - PMPageFormat pageFormat, - ffi.Pointer paperRect, -); - -@ffi.Native)>() -external int PMGetCollate( - PMPrintSettings printSettings, - ffi.Pointer collate, -); - -@ffi.Native)>() -external int PMGetCopies( - PMPrintSettings printSettings, - ffi.Pointer copies, -); - -@ffi.Native)>() -external int PMGetDuplex( - PMPrintSettings printSettings, - ffi.Pointer duplexSetting, -); - -@ffi.Native)>() -external int PMGetFirstPage( - PMPrintSettings printSettings, - ffi.Pointer first, -); - -@ffi.Native)>() -external int PMGetLastPage( - PMPrintSettings printSettings, - ffi.Pointer last, -); - -@ffi.Native)>() -external int PMGetOrientation( - PMPageFormat pageFormat, - ffi.Pointer orientation, -); - -@ffi.Native< - OSStatus Function( - PMPageFormat, - OSType, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int PMGetPageFormatExtendedData( - PMPageFormat pageFormat, - int dataID, - ffi.Pointer size, - ffi.Pointer extendedData, -); - -@ffi.Native)>() -external int PMGetPageFormatPaper( - PMPageFormat format, - ffi.Pointer paper, -); - -@ffi.Native< - OSStatus Function(PMPrintSettings, ffi.Pointer, ffi.Pointer) ->() -external int PMGetPageRange( - PMPrintSettings printSettings, - ffi.Pointer minPage, - ffi.Pointer maxPage, -); - -@ffi.Native)>() -external int PMGetScale(PMPageFormat pageFormat, ffi.Pointer scale); - -@ffi.Native)>() -external int PMGetUnadjustedPageRect( - PMPageFormat pageFormat, - ffi.Pointer pageRect, -); - -@ffi.Native)>() -external int PMGetUnadjustedPaperRect( - PMPageFormat pageFormat, - ffi.Pointer paperRect, -); - -@ffi.Native< - OSStatus Function(PMPageFormat, ffi.Pointer, ffi.UnsignedInt) ->(symbol: 'PMPageFormatCreateDataRepresentation') -external int _PMPageFormatCreateDataRepresentation( - PMPageFormat pageFormat, - ffi.Pointer data, - int format, -); - -DartSInt32 PMPageFormatCreateDataRepresentation( - PMPageFormat pageFormat, - ffi.Pointer data, - PMDataFormat format, -) { - return _PMPageFormatCreateDataRepresentation(pageFormat, data, format.value); -} - -@ffi.Native)>() -external int PMPageFormatCreateWithDataRepresentation( - CFDataRef data, - ffi.Pointer pageFormat, -); - -@ffi.Native)>() -external int PMPageFormatGetPrinterID( - PMPageFormat pageFormat, - ffi.Pointer printerID, -); - -@ffi.Native< - OSStatus Function( - PMPrinter, - CFStringRef, - CFStringRef, - ffi.Double, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int PMPaperCreateCustom( - PMPrinter printer, - CFStringRef id, - CFStringRef name, - double width, - double height, - ffi.Pointer margins, - ffi.Pointer paperP, -); - -@ffi.Native)>() -external int PMPaperCreateLocalizedName( - PMPaper paper, - PMPrinter printer, - ffi.Pointer paperName, -); - -@ffi.Native)>() -external int PMPaperGetHeight( - PMPaper paper, - ffi.Pointer paperHeight, -); - -@ffi.Native)>() -external int PMPaperGetID(PMPaper paper, ffi.Pointer paperID); - -@ffi.Native)>() -external int PMPaperGetMargins( - PMPaper paper, - ffi.Pointer paperMargins, -); - -@ffi.Native)>() -external int PMPaperGetPPDPaperName( - PMPaper paper, - ffi.Pointer paperName, -); - -@ffi.Native)>() -external int PMPaperGetPrinterID( - PMPaper paper, - ffi.Pointer printerID, -); - -@ffi.Native)>() -external int PMPaperGetWidth(PMPaper paper, ffi.Pointer paperWidth); - -@ffi.Native() -external int PMPaperIsCustom(PMPaper paper); - -@ffi.Native)>() -external int PMPresetCopyName(PMPreset preset, ffi.Pointer name); - -@ffi.Native< - OSStatus Function(PMPreset, PMPrintSession, ffi.Pointer) ->() -external int PMPresetCreatePrintSettings( - PMPreset preset, - PMPrintSession session, - ffi.Pointer printSettings, -); - -@ffi.Native)>() -external int PMPresetGetAttributes( - PMPreset preset, - ffi.Pointer attributes, -); - -@ffi.Native)>() -external int PMPrintSettingsCopyAsDictionary( - PMPrintSettings printSettings, - ffi.Pointer settingsDictionary, -); - -@ffi.Native)>() -external int PMPrintSettingsCopyKeys( - PMPrintSettings printSettings, - ffi.Pointer settingsKeys, -); - -@ffi.Native< - OSStatus Function(PMPrintSettings, ffi.Pointer, ffi.UnsignedInt) ->(symbol: 'PMPrintSettingsCreateDataRepresentation') -external int _PMPrintSettingsCreateDataRepresentation( - PMPrintSettings printSettings, - ffi.Pointer data, - int format, -); - -DartSInt32 PMPrintSettingsCreateDataRepresentation( - PMPrintSettings printSettings, - ffi.Pointer data, - PMDataFormat format, -) { - return _PMPrintSettingsCreateDataRepresentation( - printSettings, - data, - format.value, - ); -} - -@ffi.Native)>() -external int PMPrintSettingsCreateWithDataRepresentation( - CFDataRef data, - ffi.Pointer printSettings, -); - -@ffi.Native)>() -external int PMPrintSettingsGetJobName( - PMPrintSettings printSettings, - ffi.Pointer name, -); - -@ffi.Native< - OSStatus Function(PMPrintSettings, CFStringRef, ffi.Pointer) ->() -external int PMPrintSettingsGetValue( - PMPrintSettings printSettings, - CFStringRef key, - ffi.Pointer value, -); - -@ffi.Native() -external int PMPrintSettingsSetJobName( - PMPrintSettings printSettings, - CFStringRef name, -); - -@ffi.Native< - OSStatus Function(PMPrintSettings, CFStringRef, CFTypeRef, Boolean) ->() -external int PMPrintSettingsSetValue( - PMPrintSettings printSettings, - CFStringRef key, - CFTypeRef value, - int locked, -); - -@ffi.Native< - OSStatus Function(PMPrintSettings, ffi.Pointer>) ->() -external int PMPrintSettingsToOptions( - PMPrintSettings settings, - ffi.Pointer> options, -); - -@ffi.Native< - OSStatus Function( - PMPrintSettings, - PMPrinter, - PMPageFormat, - ffi.Pointer>, - ) ->() -external int PMPrintSettingsToOptionsWithPrinterAndPageFormat( - PMPrintSettings settings, - PMPrinter printer, - PMPageFormat pageFormat, - ffi.Pointer> options, -); - -@ffi.Native)>() -external int PMPrinterCopyDescriptionURL( - PMPrinter printer, - CFStringRef descriptionType, - ffi.Pointer fileURL, -); - -@ffi.Native)>() -external int PMPrinterCopyDeviceURI( - PMPrinter printer, - ffi.Pointer deviceURI, -); - -@ffi.Native)>() -external int PMPrinterCopyHostName( - PMPrinter printer, - ffi.Pointer hostNameP, -); - -@ffi.Native)>() -external int PMPrinterCopyPresets( - PMPrinter printer, - ffi.Pointer presetList, -); - -@ffi.Native)>() -external int PMPrinterCopyState( - PMPrinter printer, - ffi.Pointer stateDict, -); - -@ffi.Native() -external PMPrinter PMPrinterCreateFromPrinterID(CFStringRef printerID); - -@ffi.Native< - OSStatus Function(PMPrinter, ffi.Pointer, ffi.Pointer) ->() -external int PMPrinterGetCommInfo( - PMPrinter printer, - ffi.Pointer supportsControlCharRangeP, - ffi.Pointer supportsEightBitP, -); - -@ffi.Native)>() -external int PMPrinterGetDriverCreator( - PMPrinter printer, - ffi.Pointer creator, -); - -@ffi.Native)>() -external int PMPrinterGetDriverReleaseInfo( - PMPrinter printer, - ffi.Pointer release, -); - -@ffi.Native() -external CFStringRef PMPrinterGetID(PMPrinter printer); - -@ffi.Native)>() -external int PMPrinterGetIndexedPrinterResolution( - PMPrinter printer, - int index$1, - ffi.Pointer resolutionP, -); - -@ffi.Native)>() -external int PMPrinterGetLanguageInfo( - PMPrinter printer, - ffi.Pointer info, -); - -@ffi.Native() -external CFStringRef PMPrinterGetLocation(PMPrinter printer); - -@ffi.Native)>() -external int PMPrinterGetMakeAndModelName( - PMPrinter printer, - ffi.Pointer makeAndModel, -); - -@ffi.Native< - OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) ->() -external int PMPrinterGetMimeTypes( - PMPrinter printer, - PMPrintSettings settings, - ffi.Pointer mimeTypes, -); - -@ffi.Native() -external CFStringRef PMPrinterGetName(PMPrinter printer); - -@ffi.Native< - OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) ->() -external int PMPrinterGetOutputResolution( - PMPrinter printer, - PMPrintSettings printSettings, - ffi.Pointer resolutionP, -); - -@ffi.Native)>() -external int PMPrinterGetPaperList( - PMPrinter printer, - ffi.Pointer paperList, -); - -@ffi.Native)>() -external int PMPrinterGetPrinterResolutionCount( - PMPrinter printer, - ffi.Pointer countP, -); - -@ffi.Native)>() -external int PMPrinterGetState( - PMPrinter printer, - ffi.Pointer state, -); - -@ffi.Native() -external int PMPrinterIsDefault(PMPrinter printer); - -@ffi.Native() -external int PMPrinterIsFavorite(PMPrinter printer); - -@ffi.Native() -external int PMPrinterIsPostScriptCapable(PMPrinter printer); - -@ffi.Native)>() -external int PMPrinterIsPostScriptPrinter( - PMPrinter printer, - ffi.Pointer isPSPrinter, -); - -@ffi.Native)>() -external int PMPrinterIsRemote( - PMPrinter printer, - ffi.Pointer isRemoteP, -); - -@ffi.Native< - OSStatus Function( - PMPrinter, - PMPrintSettings, - PMPageFormat, - CFStringRef, - CFURLRef, - ) ->() -external int PMPrinterPrintWithFile( - PMPrinter printer, - PMPrintSettings settings, - PMPageFormat format, - CFStringRef mimeType, - CFURLRef fileURL, -); - -@ffi.Native< - OSStatus Function( - PMPrinter, - PMPrintSettings, - PMPageFormat, - CFStringRef, - CGDataProviderRef, - ) ->() -external int PMPrinterPrintWithProvider( - PMPrinter printer, - PMPrintSettings settings, - PMPageFormat format, - CFStringRef mimeType, - CGDataProviderRef provider, -); - -@ffi.Native< - OSStatus Function(PMPrinter, CFStringRef, CFStringRef, CFDictionaryRef) ->() -external int PMPrinterSendCommand( - PMPrinter printer, - CFStringRef commandString, - CFStringRef jobTitle, - CFDictionaryRef options, -); - -@ffi.Native() -external int PMPrinterSetDefault(PMPrinter printer); - -@ffi.Native< - OSStatus Function(PMPrinter, PMPrintSettings, ffi.Pointer) ->() -external int PMPrinterSetOutputResolution( - PMPrinter printer, - PMPrintSettings printSettings, - ffi.Pointer resolutionP, -); - -@ffi.Native< - OSStatus Function( - PMPrinter, - PMPrintSettings, - PMPageFormat, - CFStringRef, - CFURLRef, - CFURLRef, - ) ->() -external int PMPrinterWritePostScriptToURL( - PMPrinter printer, - PMPrintSettings settings, - PMPageFormat format, - CFStringRef mimeType, - CFURLRef sourceFileURL, - CFURLRef destinationFileURL, -); - -@ffi.Native() -external int PMRelease(PMObject object); - -@ffi.Native() -external int PMRetain(PMObject object); - -@ffi.Native)>() -external int PMServerCreatePrinterList( - PMServer server, - ffi.Pointer printerList, -); - -@ffi.Native() -external int PMServerLaunchPrinterBrowser( - PMServer server, - CFDictionaryRef options, -); - -@ffi.Native() -external int PMSessionBeginCGDocumentNoDialog( - PMPrintSession printSession, - PMPrintSettings printSettings, - PMPageFormat pageFormat, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPageFormat, ffi.Pointer) ->() -external int PMSessionBeginPageNoDialog( - PMPrintSession printSession, - PMPageFormat pageFormat, - ffi.Pointer pageFrame, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) ->() -external int PMSessionCopyDestinationFormat( - PMPrintSession printSession, - PMPrintSettings printSettings, - ffi.Pointer destFormatP, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) ->() -external int PMSessionCopyDestinationLocation( - PMPrintSession printSession, - PMPrintSettings printSettings, - ffi.Pointer destLocationP, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMDestinationType, ffi.Pointer) ->() -external int PMSessionCopyOutputFormatList( - PMPrintSession printSession, - int destType, - ffi.Pointer documentFormatP, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPrinter, ffi.Pointer) ->() -external int PMSessionCreatePageFormatList( - PMPrintSession printSession, - PMPrinter printer, - ffi.Pointer pageFormatList, -); - -@ffi.Native< - OSStatus Function( - PMPrintSession, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int PMSessionCreatePrinterList( - PMPrintSession printSession, - ffi.Pointer printerList, - ffi.Pointer currentIndex, - ffi.Pointer currentPrinter, -); - -@ffi.Native() -external int PMSessionDefaultPageFormat( - PMPrintSession printSession, - PMPageFormat pageFormat, -); - -@ffi.Native() -external int PMSessionDefaultPrintSettings( - PMPrintSession printSession, - PMPrintSettings printSettings, -); - -@ffi.Native() -external int PMSessionEndDocumentNoDialog(PMPrintSession printSession); - -@ffi.Native() -external int PMSessionEndPageNoDialog(PMPrintSession printSession); - -@ffi.Native() -external int PMSessionError(PMPrintSession printSession); - -@ffi.Native)>() -external int PMSessionGetCGGraphicsContext( - PMPrintSession printSession, - ffi.Pointer context, -); - -@ffi.Native)>() -external int PMSessionGetCurrentPrinter( - PMPrintSession printSession, - ffi.Pointer currentPrinter, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, CFStringRef, ffi.Pointer) ->() -external int PMSessionGetDataFromSession( - PMPrintSession printSession, - CFStringRef key, - ffi.Pointer data, -); - -@ffi.Native< - OSStatus Function( - PMPrintSession, - PMPrintSettings, - ffi.Pointer, - ) ->() -external int PMSessionGetDestinationType( - PMPrintSession printSession, - PMPrintSettings printSettings, - ffi.Pointer destTypeP, -); - -@ffi.Native() -external int PMSessionSetCurrentPMPrinter( - PMPrintSession session, - PMPrinter printer, -); - -@ffi.Native() -external int PMSessionSetDataInSession( - PMPrintSession printSession, - CFStringRef key, - CFTypeRef data, -); - -@ffi.Native< - OSStatus Function( - PMPrintSession, - PMPrintSettings, - PMDestinationType, - CFStringRef, - CFURLRef, - ) ->() -external int PMSessionSetDestination( - PMPrintSession printSession, - PMPrintSettings printSettings, - int destType, - CFStringRef destFormat, - CFURLRef destLocation, -); - -@ffi.Native() -external int PMSessionSetError(PMPrintSession printSession, int printError); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPageFormat, ffi.Pointer) ->() -external int PMSessionValidatePageFormat( - PMPrintSession printSession, - PMPageFormat pageFormat, - ffi.Pointer changed, -); - -@ffi.Native< - OSStatus Function(PMPrintSession, PMPrintSettings, ffi.Pointer) ->() -external int PMSessionValidatePrintSettings( - PMPrintSession printSession, - PMPrintSettings printSettings, - ffi.Pointer changed, -); - -@ffi.Native() -external int PMSetCollate(PMPrintSettings printSettings, int collate); - -@ffi.Native() -external int PMSetCopies(PMPrintSettings printSettings, int copies, int lock); - -@ffi.Native() -external int PMSetDuplex(PMPrintSettings printSettings, int duplexSetting); - -@ffi.Native() -external int PMSetFirstPage(PMPrintSettings printSettings, int first, int lock); - -@ffi.Native() -external int PMSetLastPage(PMPrintSettings printSettings, int last, int lock); - -@ffi.Native() -external int PMSetOrientation( - PMPageFormat pageFormat, - int orientation, - int lock, -); - -@ffi.Native< - OSStatus Function(PMPageFormat, OSType, UInt32, ffi.Pointer) ->() -external int PMSetPageFormatExtendedData( - PMPageFormat pageFormat, - int dataID, - int size, - ffi.Pointer extendedData, -); - -@ffi.Native() -external int PMSetPageRange( - PMPrintSettings printSettings, - int minPage, - int maxPage, -); - -@ffi.Native() -external int PMSetScale(PMPageFormat pageFormat, double scale); - -@ffi.Native)>() -external int PMWorkflowCopyItems(ffi.Pointer workflowItems); - -@ffi.Native< - OSStatus Function(CFURLRef, CFStringRef, ffi.Pointer, CFURLRef) ->() -external int PMWorkflowSubmitPDFWithOptions( - CFURLRef workflowItem, - CFStringRef title, - ffi.Pointer options, - CFURLRef pdfFile, -); - -@ffi.Native() -external int PMWorkflowSubmitPDFWithSettings( - CFURLRef workflowItem, - PMPrintSettings settings, - CFURLRef pdfFile, -); - -@ffi.Native() -external int PasteboardClear(PasteboardRef inPasteboard); - -@ffi.Native< - OSStatus Function( - PasteboardRef, - PasteboardItemID, - CFStringRef, - ffi.Pointer, - ) ->() -external int PasteboardCopyItemFlavorData( - PasteboardRef inPasteboard, - PasteboardItemID inItem, - CFStringRef inFlavorType, - ffi.Pointer outData, -); - -@ffi.Native< - OSStatus Function(PasteboardRef, PasteboardItemID, ffi.Pointer) ->() -external int PasteboardCopyItemFlavors( - PasteboardRef inPasteboard, - PasteboardItemID inItem, - ffi.Pointer outFlavorTypes, -); - -@ffi.Native)>() -external int PasteboardCopyName( - PasteboardRef inPasteboard, - ffi.Pointer outName, -); - -@ffi.Native)>() -external int PasteboardCopyPasteLocation( - PasteboardRef inPasteboard, - ffi.Pointer outPasteLocation, -); - -@ffi.Native)>() -external int PasteboardCreate( - CFStringRef inName, - ffi.Pointer outPasteboard, -); - -@ffi.Native)>() -external int PasteboardGetItemCount( - PasteboardRef inPasteboard, - ffi.Pointer outItemCount, -); - -@ffi.Native< - OSStatus Function( - PasteboardRef, - PasteboardItemID, - CFStringRef, - ffi.Pointer, - ) ->() -external int PasteboardGetItemFlavorFlags( - PasteboardRef inPasteboard, - PasteboardItemID inItem, - CFStringRef inFlavorType, - ffi.Pointer outFlags, -); - -@ffi.Native< - OSStatus Function(PasteboardRef, CFIndex, ffi.Pointer) ->() -external int PasteboardGetItemIdentifier( - PasteboardRef inPasteboard, - int inIndex, - ffi.Pointer outItem, -); - -@ffi.Native() -external int PasteboardGetTypeID(); - -@ffi.Native< - OSStatus Function( - PasteboardRef, - PasteboardItemID, - CFStringRef, - CFDataRef, - OptionBits, - ) ->() -external int PasteboardPutItemFlavor( - PasteboardRef inPasteboard, - PasteboardItemID inItem, - CFStringRef inFlavorType, - CFDataRef inData, - int inFlags, -); - -@ffi.Native() -external int PasteboardResolvePromises(PasteboardRef inPasteboard); - -@ffi.Native() -external int PasteboardSetPasteLocation( - PasteboardRef inPasteboard, - CFURLRef inPasteLocation, -); - -@ffi.Native< - OSStatus Function( - PasteboardRef, - PasteboardPromiseKeeperProcPtr, - ffi.Pointer, - ) ->() -external int PasteboardSetPromiseKeeper( - PasteboardRef inPasteboard, - PasteboardPromiseKeeperProcPtr inPromiseKeeper, - ffi.Pointer inContext, -); - -@ffi.Native() -external int PasteboardSynchronize(PasteboardRef inPasteboard); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int PauseSpeechAt(SpeechChannel chan, int whereToPause); - -@ffi.Native< - OSStatus Function( - CGContextRef, - ffi.Pointer, - IconAlignmentType, - IconTransformType, - ffi.Pointer, - PlotIconRefFlags, - IconRef, - ) ->() -external int PlotIconRefInContext( - CGContextRef inContext, - ffi.Pointer inRect, - int inAlign, - int inTransform, - ffi.Pointer inLabelColor, - int inFlags, - IconRef inIconRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void PrimeTime(QElemPtr tmTaskPtr, int count); - -@Deprecated('Deprecated') -@ffi.Native() -external int PrimeTimeTask(QElemPtr tmTaskPtr, int count); - -@Deprecated('Deprecated') -@ffi.Native< - CFDictionaryRef Function(ffi.Pointer, UInt32) ->() -external CFDictionaryRef ProcessInformationCopyDictionary( - ffi.Pointer PSN, - int infoToReturn, -); - -@Deprecated('Deprecated') -@ffi.Native, Handle, ffi.Long)>() -external int PtrAndHand(ffi.Pointer ptr1, Handle hand2, int size); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ffi.Pointer, ffi.Pointer, ffi.Long) ->() -external int PtrToHand( - ffi.Pointer srcPtr, - ffi.Pointer dstHndl, - int size, -); - -@Deprecated('Deprecated') -@ffi.Native, Handle, ffi.Long)>() -external int PtrToXHand(ffi.Pointer srcPtr, Handle dstHndl, int size); - -@Deprecated('Deprecated') -@ffi.Native() -external void PurgeCollection( - Collection c, - int whichAttributes, - int matchingAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void PurgeCollectionTag(Collection c, int tag); - -@ffi.Native< - OSStatus Function( - OptionBits, - ConstUnicodeMappingPtr, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int QueryUnicodeMappings( - int iFilter, - ConstUnicodeMappingPtr iFindMapping, - int iMaxCount, - ffi.Pointer oActualCount, - ffi.Pointer oReturnedMappings, -); - -@Deprecated('Use -[NSWorkspace iconForFile:] instead.') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int ReadIconFromFSRef( - ffi.Pointer ref, - ffi.Pointer iconFamily, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void ReadLocation(ffi.Pointer loc); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(Handle, ffi.Long, ffi.Pointer, ffi.Long) ->() -external void ReadPartialResource( - Handle theResource, - int offset, - ffi.Pointer buffer, - int count, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void ReallocateHandle(Handle h, int byteCount); - -@Deprecated('Deprecated') -@ffi.Native() -external Handle RecoverHandle(Ptr p); - -@Deprecated('Deprecated') -@ffi.Native< - Component Function( - ffi.Pointer, - ComponentRoutineUPP, - SInt16, - Handle, - Handle, - Handle, - ) ->() -external Component RegisterComponent( - ffi.Pointer cd, - ComponentRoutineUPP componentEntryPoint, - int global, - Handle componentName, - Handle componentInfo, - Handle componentIcon, -); - -@Deprecated('Deprecated') -@ffi.Native, SInt16)>() -external int RegisterComponentFileRef(ffi.Pointer ref, int global); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - SInt16, - ffi.Pointer, - UInt32, - ) ->() -external int RegisterComponentFileRefEntries( - ffi.Pointer ref, - int global, - ffi.Pointer toRegister, - int registerCount, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Component RegisterComponentResource( - ComponentResourceHandle cr, - int global, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int RegisterComponentResourceFile(int resRefNum, int global); - -@Deprecated( - 'You do not need to register .icns files to use them with -[NSImage initWithContentsOfURL:].', -) -@ffi.Native< - OSStatus Function(OSType, OSType, ffi.Pointer, ffi.Pointer) ->() -external int RegisterIconRefFromFSRef( - int creator, - int iconType, - ffi.Pointer iconFile, - ffi.Pointer theIconRef, -); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native< - OSErr Function(OSType, OSType, IconFamilyHandle, ffi.Pointer) ->() -external int RegisterIconRefFromIconFamily( - int creator, - int iconType, - IconFamilyHandle iconFamily, - ffi.Pointer theIconRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ReleaseCollection(Collection c); - -@Deprecated('Deprecated') -@ffi.Native() -external int ReleaseFolder(int vRefNum, int folderType); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int ReleaseIconRef(IconRef theIconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external void ReleaseResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external int RemoveCollectionItem(Collection c, int tag, int id); - -@Deprecated('Deprecated') -@ffi.Native() -external int RemoveFolderDescriptor(int foldType); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int RemoveIconRefOverride(IconRef theIconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external int RemoveIndexedCollectionItem(Collection c, int itemIndex); - -@Deprecated('Deprecated') -@ffi.Native() -external void RemoveResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external int RemoveTimeTask(QElemPtr tmTaskPtr); - -@Deprecated('Deprecated') -@ffi.Native() -external int ReplaceGestaltValue(int selector, int replacementValue); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ReplaceIndexedCollectionItem( - Collection c, - int itemIndex, - int itemSize, - ffi.Pointer itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ReplaceIndexedCollectionItemHdl( - Collection aCollection, - int itemIndex, - Handle itemData, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ResError(); - -@ffi.Native() -external int ResetTextToUnicodeInfo(TextToUnicodeInfo ioTextToUnicodeInfo); - -@ffi.Native() -external int ResetUnicodeToTextInfo(UnicodeToTextInfo ioUnicodeToTextInfo); - -@ffi.Native() -external int ResetUnicodeToTextRunInfo( - UnicodeToTextRunInfo ioUnicodeToTextRunInfo, -); - -@Deprecated('Deprecated') -@ffi.Native() -external Component ResolveComponentAlias(Component aComponent); - -@ffi.Native() -external int ResolveDefaultTextEncoding(int encoding); - -@Deprecated('Deprecated') -@ffi.Native() -external int RetainCollection(Collection c); - -@ffi.Native< - OSStatus Function( - TextEncoding, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int RevertTextEncodingToScriptInfo( - int iEncoding, - ffi.Pointer oTextScriptID, - ffi.Pointer oTextLanguageID, - ffi.Pointer oTextFontname, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void RmvTime(QElemPtr tmTaskPtr); - -@ffi.Native() -external int S64Absolute(int value); - -@ffi.Native() -external CFURLRef SKDocumentCopyURL(SKDocumentRef inDocument); - -@ffi.Native() -external SKDocumentRef SKDocumentCreate( - CFStringRef inScheme, - SKDocumentRef inParent, - CFStringRef inName, -); - -@ffi.Native() -external SKDocumentRef SKDocumentCreateWithURL(CFURLRef inURL); - -@ffi.Native() -external CFStringRef SKDocumentGetName(SKDocumentRef inDocument); - -@ffi.Native() -external SKDocumentRef SKDocumentGetParent(SKDocumentRef inDocument); - -@ffi.Native() -external CFStringRef SKDocumentGetSchemeName(SKDocumentRef inDocument); - -@ffi.Native() -external int SKDocumentGetTypeID(); - -@ffi.Native() -external int SKIndexAddDocument( - SKIndexRef inIndex, - SKDocumentRef inDocument, - CFStringRef inMIMETypeHint, - int inCanReplace, -); - -@ffi.Native() -external int SKIndexAddDocumentWithText( - SKIndexRef inIndex, - SKDocumentRef inDocument, - CFStringRef inDocumentText, - int inCanReplace, -); - -@ffi.Native() -external void SKIndexClose(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexCompact(SKIndexRef inIndex); - -@ffi.Native() -external SKDocumentRef SKIndexCopyDocumentForDocumentID( - SKIndexRef inIndex, - int inDocumentID, -); - -@ffi.Native() -external CFArrayRef SKIndexCopyDocumentIDArrayForTermID( - SKIndexRef inIndex, - int inTermID, -); - -@ffi.Native() -external CFDictionaryRef SKIndexCopyDocumentProperties( - SKIndexRef inIndex, - SKDocumentRef inDocument, -); - -@ffi.Native< - ffi.Void Function( - SKIndexRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void SKIndexCopyDocumentRefsForDocumentIDs( - SKIndexRef inIndex, - int inCount, - ffi.Pointer inDocumentIDsArray, - ffi.Pointer outDocumentRefsArray, -); - -@ffi.Native< - ffi.Void Function( - SKIndexRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void SKIndexCopyDocumentURLsForDocumentIDs( - SKIndexRef inIndex, - int inCount, - ffi.Pointer inDocumentIDsArray, - ffi.Pointer outDocumentURLsArray, -); - -@ffi.Native< - ffi.Void Function( - SKIndexRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void SKIndexCopyInfoForDocumentIDs( - SKIndexRef inIndex, - int inCount, - ffi.Pointer inDocumentIDsArray, - ffi.Pointer outNamesArray, - ffi.Pointer outParentIDsArray, -); - -@ffi.Native() -external CFArrayRef SKIndexCopyTermIDArrayForDocumentID( - SKIndexRef inIndex, - int inDocumentID, -); - -@ffi.Native() -external CFStringRef SKIndexCopyTermStringForTermID( - SKIndexRef inIndex, - int inTermID, -); - -@ffi.Native< - SKIndexRef Function( - CFMutableDataRef, - CFStringRef, - ffi.UnsignedInt, - CFDictionaryRef, - ) ->(symbol: 'SKIndexCreateWithMutableData') -external SKIndexRef _SKIndexCreateWithMutableData( - CFMutableDataRef inData, - CFStringRef inIndexName, - int inIndexType, - CFDictionaryRef inAnalysisProperties, -); - -SKIndexRef SKIndexCreateWithMutableData( - CFMutableDataRef inData, - CFStringRef inIndexName, - SKIndexType inIndexType, - CFDictionaryRef inAnalysisProperties, -) { - return _SKIndexCreateWithMutableData( - inData, - inIndexName, - inIndexType.value, - inAnalysisProperties, - ); -} - -@ffi.Native< - SKIndexRef Function(CFURLRef, CFStringRef, ffi.UnsignedInt, CFDictionaryRef) ->(symbol: 'SKIndexCreateWithURL') -external SKIndexRef _SKIndexCreateWithURL( - CFURLRef inURL, - CFStringRef inIndexName, - int inIndexType, - CFDictionaryRef inAnalysisProperties, -); - -SKIndexRef SKIndexCreateWithURL( - CFURLRef inURL, - CFStringRef inIndexName, - SKIndexType inIndexType, - CFDictionaryRef inAnalysisProperties, -) { - return _SKIndexCreateWithURL( - inURL, - inIndexName, - inIndexType.value, - inAnalysisProperties, - ); -} - -@ffi.Native() -external SKDocumentRef SKIndexDocumentIteratorCopyNext( - SKIndexDocumentIteratorRef inIterator, -); - -@ffi.Native() -external SKIndexDocumentIteratorRef SKIndexDocumentIteratorCreate( - SKIndexRef inIndex, - SKDocumentRef inParentDocument, -); - -@ffi.Native() -external int SKIndexDocumentIteratorGetTypeID(); - -@ffi.Native() -external int SKIndexFlush(SKIndexRef inIndex); - -@ffi.Native() -external CFDictionaryRef SKIndexGetAnalysisProperties(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexGetDocumentCount(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexGetDocumentID(SKIndexRef inIndex, SKDocumentRef inDocument); - -@ffi.Native( - symbol: 'SKIndexGetDocumentState', -) -external int _SKIndexGetDocumentState( - SKIndexRef inIndex, - SKDocumentRef inDocument, -); - -SKDocumentIndexState SKIndexGetDocumentState( - SKIndexRef inIndex, - SKDocumentRef inDocument, -) { - return SKDocumentIndexState.fromValue( - _SKIndexGetDocumentState(inIndex, inDocument), - ); -} - -@ffi.Native() -external int SKIndexGetDocumentTermCount(SKIndexRef inIndex, int inDocumentID); - -@ffi.Native() -external int SKIndexGetDocumentTermFrequency( - SKIndexRef inIndex, - int inDocumentID, - int inTermID, -); - -@ffi.Native(symbol: 'SKIndexGetIndexType') -external int _SKIndexGetIndexType(SKIndexRef inIndex); - -SKIndexType SKIndexGetIndexType(SKIndexRef inIndex) { - return SKIndexType.fromValue(_SKIndexGetIndexType(inIndex)); -} - -@ffi.Native() -external int SKIndexGetMaximumBytesBeforeFlush(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexGetMaximumDocumentID(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexGetMaximumTermID(SKIndexRef inIndex); - -@ffi.Native() -external int SKIndexGetTermDocumentCount(SKIndexRef inIndex, int inTermID); - -@ffi.Native() -external int SKIndexGetTermIDForTermString( - SKIndexRef inIndex, - CFStringRef inTermString, -); - -@ffi.Native() -external int SKIndexGetTypeID(); - -@ffi.Native() -external int SKIndexMoveDocument( - SKIndexRef inIndex, - SKDocumentRef inDocument, - SKDocumentRef inNewParent, -); - -@ffi.Native() -external SKIndexRef SKIndexOpenWithData( - CFDataRef inData, - CFStringRef inIndexName, -); - -@ffi.Native() -external SKIndexRef SKIndexOpenWithMutableData( - CFMutableDataRef inData, - CFStringRef inIndexName, -); - -@ffi.Native() -external SKIndexRef SKIndexOpenWithURL( - CFURLRef inURL, - CFStringRef inIndexName, - int inWriteAccess, -); - -@ffi.Native() -external int SKIndexRemoveDocument( - SKIndexRef inIndex, - SKDocumentRef inDocument, -); - -@ffi.Native() -external int SKIndexRenameDocument( - SKIndexRef inIndex, - SKDocumentRef inDocument, - CFStringRef inNewName, -); - -@ffi.Native() -external void SKIndexSetDocumentProperties( - SKIndexRef inIndex, - SKDocumentRef inDocument, - CFDictionaryRef inProperties, -); - -@ffi.Native() -external void SKIndexSetMaximumBytesBeforeFlush( - SKIndexRef inIndex, - int inBytesForUpdate, -); - -@ffi.Native() -external void SKLoadDefaultExtractorPlugIns(); - -@ffi.Native() -external void SKSearchCancel(SKSearchRef inSearch); - -@ffi.Native() -external SKSearchRef SKSearchCreate( - SKIndexRef inIndex, - CFStringRef inQuery, - int inSearchOptions, -); - -@ffi.Native< - Boolean Function( - SKSearchRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - CFTimeInterval, - ffi.Pointer, - ) ->() -external int SKSearchFindMatches( - SKSearchRef inSearch, - int inMaximumCount, - ffi.Pointer outDocumentIDsArray, - ffi.Pointer outScoresArray, - double maximumTime, - ffi.Pointer outFoundCount, -); - -@ffi.Native() -external int SKSearchGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native() -external CFArrayRef SKSearchGroupCopyIndexes(SKSearchGroupRef inSearchGroup); - -@Deprecated('No longer supported') -@ffi.Native() -external SKSearchGroupRef SKSearchGroupCreate(CFArrayRef inArrayOfInIndexes); - -@Deprecated('No longer supported') -@ffi.Native() -external int SKSearchGroupGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native() -external CFArrayRef SKSearchResultsCopyMatchingTerms( - SKSearchResultsRef inSearchResults, - int inItem, -); - -@Deprecated('No longer supported') -@ffi.Native< - SKSearchResultsRef Function( - SKSearchGroupRef, - CFArrayRef, - CFIndex, - ffi.Pointer, - SKSearchResultsFilterCallBack, - ) ->() -external SKSearchResultsRef SKSearchResultsCreateWithDocuments( - SKSearchGroupRef inSearchGroup, - CFArrayRef inExampleDocuments, - int inMaxFoundDocuments, - ffi.Pointer inContext, - SKSearchResultsFilterCallBack inFilterCallBack, -); - -@Deprecated('No longer supported') -@ffi.Native< - SKSearchResultsRef Function( - SKSearchGroupRef, - CFStringRef, - ffi.UnsignedInt, - CFIndex, - ffi.Pointer, - SKSearchResultsFilterCallBack, - ) ->(symbol: 'SKSearchResultsCreateWithQuery') -external SKSearchResultsRef _SKSearchResultsCreateWithQuery( - SKSearchGroupRef inSearchGroup, - CFStringRef inQuery, - int inSearchType, - int inMaxFoundDocuments, - ffi.Pointer inContext, - SKSearchResultsFilterCallBack inFilterCallBack, -); - -SKSearchResultsRef SKSearchResultsCreateWithQuery( - SKSearchGroupRef inSearchGroup, - CFStringRef inQuery, - SKSearchType inSearchType, - DartCFIndex inMaxFoundDocuments, - ffi.Pointer inContext, - SKSearchResultsFilterCallBack inFilterCallBack, -) { - return _SKSearchResultsCreateWithQuery( - inSearchGroup, - inQuery, - inSearchType.value, - inMaxFoundDocuments, - inContext, - inFilterCallBack, - ); -} - -@Deprecated('No longer supported') -@ffi.Native() -external int SKSearchResultsGetCount(SKSearchResultsRef inSearchResults); - -@Deprecated('No longer supported') -@ffi.Native< - CFIndex Function( - SKSearchResultsRef, - CFRange, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SKSearchResultsGetInfoInRange( - SKSearchResultsRef inSearchResults, - CFRange inRange, - ffi.Pointer outDocumentsArray, - ffi.Pointer outIndexesArray, - ffi.Pointer outScoresArray, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int SKSearchResultsGetTypeID(); - -@ffi.Native() -external CFStringRef SKSummaryCopyParagraphAtIndex(SKSummaryRef summary, int i); - -@ffi.Native() -external CFStringRef SKSummaryCopyParagraphSummaryString( - SKSummaryRef summary, - int numParagraphs, -); - -@ffi.Native() -external CFStringRef SKSummaryCopySentenceAtIndex(SKSummaryRef summary, int i); - -@ffi.Native() -external CFStringRef SKSummaryCopySentenceSummaryString( - SKSummaryRef summary, - int numSentences, -); - -@ffi.Native() -external SKSummaryRef SKSummaryCreateWithString(CFStringRef inString); - -@ffi.Native() -external int SKSummaryGetParagraphCount(SKSummaryRef summary); - -@ffi.Native< - CFIndex Function( - SKSummaryRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SKSummaryGetParagraphSummaryInfo( - SKSummaryRef summary, - int numParagraphsInSummary, - ffi.Pointer outRankOrderOfParagraphs, - ffi.Pointer outParagraphIndexOfParagraphs, -); - -@ffi.Native() -external int SKSummaryGetSentenceCount(SKSummaryRef summary); - -@ffi.Native< - CFIndex Function( - SKSummaryRef, - CFIndex, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SKSummaryGetSentenceSummaryInfo( - SKSummaryRef summary, - int numSentencesInSummary, - ffi.Pointer outRankOrderOfSentences, - ffi.Pointer outSentenceIndexOfSentences, - ffi.Pointer outParagraphIndexOfSentences, -); - -@ffi.Native() -external int SKSummaryGetTypeID(); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native, ffi.Size)>() -external int SSLAddDistinguishedName( - SSLContextRef context, - ffi.Pointer derDN, - int derDNLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLClose(SSLContextRef context); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLContextGetTypeID(); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyALPNProtocols( - SSLContextRef context, - ffi.Pointer protocols, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyCertificateAuthorities( - SSLContextRef context, - ffi.Pointer certificates, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyDistinguishedNames( - SSLContextRef context, - ffi.Pointer names, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyPeerCertificates( - SSLContextRef context, - ffi.Pointer certs, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyPeerTrust( - SSLContextRef context, - ffi.Pointer trust, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Pointer) ->() -external int SSLCopyRequestedPeerName( - SSLContextRef context, - ffi.Pointer peerName, - ffi.Pointer peerNameLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyRequestedPeerNameLength( - SSLContextRef ctx, - ffi.Pointer peerNameLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLCopyTrustedRoots( - SSLContextRef context, - ffi.Pointer trustedRoots, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - SSLContextRef Function(CFAllocatorRef, ffi.UnsignedInt, ffi.UnsignedInt) ->(symbol: 'SSLCreateContext') -external SSLContextRef _SSLCreateContext( - CFAllocatorRef alloc, - int protocolSide, - int connectionType, -); - -SSLContextRef SSLCreateContext( - CFAllocatorRef alloc, - SSLProtocolSide protocolSide, - SSLConnectionType connectionType, -) { - return _SSLCreateContext(alloc, protocolSide.value, connectionType.value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLDisposeContext(SSLContextRef context); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetAllowsAnyRoot( - SSLContextRef context, - ffi.Pointer anyRoot, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetAllowsExpiredCerts( - SSLContextRef context, - ffi.Pointer allowsExpired, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetAllowsExpiredRoots( - SSLContextRef context, - ffi.Pointer allowsExpired, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetBufferedReadSize( - SSLContextRef context, - ffi.Pointer bufferSize, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetClientCertificateState( - SSLContextRef context, - ffi.Pointer clientState, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetConnection( - SSLContextRef context, - ffi.Pointer connection, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetDatagramWriteSize( - SSLContextRef dtlsContext, - ffi.Pointer bufSize, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int SSLGetDiffieHellmanParams( - SSLContextRef context, - ffi.Pointer> dhParams, - ffi.Pointer dhParamsLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetEnableCertVerify( - SSLContextRef context, - ffi.Pointer enableVerify, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SSLGetEnabledCiphers( - SSLContextRef context, - ffi.Pointer ciphers, - ffi.Pointer numCiphers, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetMaxDatagramRecordSize( - SSLContextRef dtlsContext, - ffi.Pointer maxSize, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetNegotiatedCipher( - SSLContextRef context, - ffi.Pointer cipherSuite, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetNegotiatedProtocolVersion( - SSLContextRef context, - ffi.Pointer protocol, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetNumberEnabledCiphers( - SSLContextRef context, - ffi.Pointer numCiphers, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetNumberSupportedCiphers( - SSLContextRef context, - ffi.Pointer numCiphers, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Pointer) ->() -external int SSLGetPeerDomainName( - SSLContextRef context, - ffi.Pointer peerName, - ffi.Pointer peerNameLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetPeerDomainNameLength( - SSLContextRef context, - ffi.Pointer peerNameLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int SSLGetPeerID( - SSLContextRef context, - ffi.Pointer> peerID, - ffi.Pointer peerIDLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetProtocolVersion( - SSLContextRef context, - ffi.Pointer protocol, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function(SSLContextRef, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'SSLGetProtocolVersionEnabled') -external int _SSLGetProtocolVersionEnabled( - SSLContextRef context, - int protocol, - ffi.Pointer enable, -); - -DartSInt32 SSLGetProtocolVersionEnabled( - SSLContextRef context, - SSLProtocol protocol, - ffi.Pointer enable, -) { - return _SSLGetProtocolVersionEnabled(context, protocol.value, enable); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetProtocolVersionMax( - SSLContextRef context, - ffi.Pointer maxVersion, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetProtocolVersionMin( - SSLContextRef context, - ffi.Pointer minVersion, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetRsaBlinding( - SSLContextRef context, - ffi.Pointer blinding, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function(SSLContextRef, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'SSLGetSessionOption') -external int _SSLGetSessionOption( - SSLContextRef context, - int option, - ffi.Pointer value, -); - -DartSInt32 SSLGetSessionOption( - SSLContextRef context, - SSLSessionOption option, - ffi.Pointer value, -) { - return _SSLGetSessionOption(context, option.value, value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLGetSessionState( - SSLContextRef context, - ffi.Pointer state, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SSLGetSupportedCiphers( - SSLContextRef context, - ffi.Pointer ciphers, - ffi.Pointer numCiphers, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLHandshake(SSLContextRef context); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native)>() -external int SSLNewContext(int isServer, ffi.Pointer contextPtr); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLReHandshake(SSLContextRef context); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external int SSLRead( - SSLContextRef context, - ffi.Pointer data, - int dataLength, - ffi.Pointer processed, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetALPNProtocols(SSLContextRef context, CFArrayRef protocols); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetAllowsAnyRoot(SSLContextRef context, int anyRoot); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetAllowsExpiredCerts(SSLContextRef context, int allowsExpired); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetAllowsExpiredRoots(SSLContextRef context, int allowsExpired); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetCertificate(SSLContextRef context, CFArrayRef certRefs); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetCertificateAuthorities( - SSLContextRef context, - CFTypeRef certificateOrArray, - int replaceExisting, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetClientSideAuthenticate', -) -external int _SSLSetClientSideAuthenticate(SSLContextRef context, int auth); - -DartSInt32 SSLSetClientSideAuthenticate( - SSLContextRef context, - SSLAuthenticate auth, -) { - return _SSLSetClientSideAuthenticate(context, auth.value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetConnection( - SSLContextRef context, - SSLConnectionRef connection, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native, ffi.Size)>() -external int SSLSetDatagramHelloCookie( - SSLContextRef dtlsContext, - ffi.Pointer cookie, - int cookieLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native, ffi.Size)>() -external int SSLSetDiffieHellmanParams( - SSLContextRef context, - ffi.Pointer dhParams, - int dhParamsLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetEnableCertVerify(SSLContextRef context, int enableVerify); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function(SSLContextRef, ffi.Pointer, ffi.Size) ->() -external int SSLSetEnabledCiphers( - SSLContextRef context, - ffi.Pointer ciphers, - int numCiphers, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetEncryptionCertificate( - SSLContextRef context, - CFArrayRef certRefs, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetError(SSLContextRef context, int status); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetIOFuncs( - SSLContextRef context, - SSLReadFunc readFunc, - SSLWriteFunc writeFunc, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetMaxDatagramRecordSize( - SSLContextRef dtlsContext, - int maxSize, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetOCSPResponse(SSLContextRef context, CFDataRef response); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native, ffi.Size)>() -external int SSLSetPeerDomainName( - SSLContextRef context, - ffi.Pointer peerName, - int peerNameLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native, ffi.Size)>() -external int SSLSetPeerID( - SSLContextRef context, - ffi.Pointer peerID, - int peerIDLen, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetProtocolVersion', -) -external int _SSLSetProtocolVersion(SSLContextRef context, int version); - -DartSInt32 SSLSetProtocolVersion(SSLContextRef context, SSLProtocol version) { - return _SSLSetProtocolVersion(context, version.value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetProtocolVersionEnabled', -) -external int _SSLSetProtocolVersionEnabled( - SSLContextRef context, - int protocol, - int enable, -); - -DartSInt32 SSLSetProtocolVersionEnabled( - SSLContextRef context, - SSLProtocol protocol, - DartBoolean enable, -) { - return _SSLSetProtocolVersionEnabled(context, protocol.value, enable); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetProtocolVersionMax', -) -external int _SSLSetProtocolVersionMax(SSLContextRef context, int maxVersion); - -DartSInt32 SSLSetProtocolVersionMax( - SSLContextRef context, - SSLProtocol maxVersion, -) { - return _SSLSetProtocolVersionMax(context, maxVersion.value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetProtocolVersionMin', -) -external int _SSLSetProtocolVersionMin(SSLContextRef context, int minVersion); - -DartSInt32 SSLSetProtocolVersionMin( - SSLContextRef context, - SSLProtocol minVersion, -) { - return _SSLSetProtocolVersionMin(context, minVersion.value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetRsaBlinding(SSLContextRef context, int blinding); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetSessionConfig(SSLContextRef context, CFStringRef config); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native( - symbol: 'SSLSetSessionOption', -) -external int _SSLSetSessionOption(SSLContextRef context, int option, int value); - -DartSInt32 SSLSetSessionOption( - SSLContextRef context, - SSLSessionOption option, - DartBoolean value, -) { - return _SSLSetSessionOption(context, option.value, value); -} - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetSessionTicketsEnabled(SSLContextRef context, int enabled); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native() -external int SSLSetTrustedRoots( - SSLContextRef context, - CFArrayRef trustedRoots, - int replaceExisting, -); - -@Deprecated('No longer supported. Use Network.framework.') -@ffi.Native< - OSStatus Function( - SSLContextRef, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external int SSLWrite( - SSLContextRef context, - ffi.Pointer data, - int dataLength, - ffi.Pointer processed, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SameProcess( - ffi.Pointer PSN1, - ffi.Pointer PSN2, - ffi.Pointer result, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external CFArrayRef SecACLCopyAuthorizations(SecACLRef acl); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecACLRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecACLCopyContents( - SecACLRef acl, - ffi.Pointer applicationList, - ffi.Pointer description, - ffi.Pointer promptSelector, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecACLRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecACLCopySimpleContents( - SecACLRef acl, - ffi.Pointer applicationList, - ffi.Pointer description, - ffi.Pointer promptSelector, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecAccessRef, - CFArrayRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecACLCreateFromSimpleContents( - SecAccessRef access$1, - CFArrayRef applicationList, - CFStringRef description, - ffi.Pointer promptSelector, - ffi.Pointer newAcl, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecAccessRef, - CFArrayRef, - CFStringRef, - uint16, - ffi.Pointer, - ) ->() -external int SecACLCreateWithSimpleContents( - SecAccessRef access$1, - CFArrayRef applicationList, - CFStringRef description, - int promptSelector, - ffi.Pointer newAcl, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecACLRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecACLGetAuthorizations( - SecACLRef acl, - ffi.Pointer tags, - ffi.Pointer tagCount, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecACLGetTypeID(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecACLRemove(SecACLRef aclRef); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function(SecACLRef, ffi.Pointer, uint32) ->() -external int SecACLSetAuthorizations( - SecACLRef acl, - ffi.Pointer tags, - int tagCount, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecACLSetContents( - SecACLRef acl, - CFArrayRef applicationList, - CFStringRef description, - int promptSelector, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecACLRef, - CFArrayRef, - CFStringRef, - ffi.Pointer, - ) ->() -external int SecACLSetSimpleContents( - SecACLRef acl, - CFArrayRef applicationList, - CFStringRef description, - ffi.Pointer promptSelector, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecACLUpdateAuthorizations( - SecACLRef acl, - CFArrayRef authorizations, -); - -@ffi.Native< - SecAccessControlRef Function( - CFAllocatorRef, - CFTypeRef, - CFOptionFlags, - ffi.Pointer, - ) ->() -external SecAccessControlRef SecAccessControlCreateWithFlags( - CFAllocatorRef allocator, - CFTypeRef protection, - int flags, - ffi.Pointer error, -); - -@ffi.Native() -external int SecAccessControlGetTypeID(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecAccessCopyACLList( - SecAccessRef accessRef, - ffi.Pointer aclList, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external CFArrayRef SecAccessCopyMatchingACLList( - SecAccessRef accessRef, - CFTypeRef authorizationTag, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecAccessRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecAccessCopyOwnerAndACL( - SecAccessRef accessRef, - ffi.Pointer userId, - ffi.Pointer groupId, - ffi.Pointer ownerType, - ffi.Pointer aclList, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecAccessRef, - CSSM_ACL_AUTHORIZATION_TAG, - ffi.Pointer, - ) ->() -external int SecAccessCopySelectedACLList( - SecAccessRef accessRef, - int action, - ffi.Pointer aclList, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(CFStringRef, CFArrayRef, ffi.Pointer) ->() -external int SecAccessCreate( - CFStringRef descriptor, - CFArrayRef trustedlist, - ffi.Pointer accessRef, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - uint32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecAccessCreateFromOwnerAndACL( - ffi.Pointer owner, - int aclCount, - ffi.Pointer acls, - ffi.Pointer accessRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - SecAccessRef Function( - uid_t, - gid_t, - SecAccessOwnerType, - CFArrayRef, - ffi.Pointer, - ) ->() -external SecAccessRef SecAccessCreateWithOwnerAndACL( - int userId, - int groupId, - int ownerType, - CFArrayRef acls, - ffi.Pointer error, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecAccessRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecAccessGetOwnerAndACL( - SecAccessRef accessRef, - ffi.Pointer owner, - ffi.Pointer aclCount, - ffi.Pointer acls, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecAccessGetTypeID(); - -@ffi.Native< - ffi.Void Function( - CFStringRef, - CFStringRef, - CFStringRef, - ffi.Pointer, - ) ->(symbol: 'SecAddSharedWebCredential') -external void _SecAddSharedWebCredential( - CFStringRef fqdn, - CFStringRef account, - CFStringRef password, - ffi.Pointer completionHandler, -); - -void SecAddSharedWebCredential( - CFStringRef fqdn, - CFStringRef account, - CFStringRef password, - objc.ObjCBlock)> completionHandler, -) { - final _$$ref = completionHandler.ref; - return _SecAddSharedWebCredential(fqdn, account, password, _$$ref.pointer); -} - -@ffi.Native() -external int SecCertificateAddToKeychain( - SecCertificateRef certificate, - SecKeychainRef keychain, -); - -@ffi.Native)>() -external int SecCertificateCopyCommonName( - SecCertificateRef certificate, - ffi.Pointer commonName, -); - -@ffi.Native() -external CFDataRef SecCertificateCopyData(SecCertificateRef certificate); - -@ffi.Native)>() -external int SecCertificateCopyEmailAddresses( - SecCertificateRef certificate, - ffi.Pointer emailAddresses, -); - -@ffi.Native() -external SecKeyRef SecCertificateCopyKey(SecCertificateRef certificate); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - SecCertificateRef, - ffi.Pointer, - ) ->() -external CFStringRef SecCertificateCopyLongDescription( - CFAllocatorRef alloc, - SecCertificateRef certificate, - ffi.Pointer error, -); - -@Deprecated( - 'SecCertificateCopyNormalizedIssuerContent is deprecated. Use SecCertificateCopyNormalizedIssuerSequence instead.', -) -@ffi.Native)>() -external CFDataRef SecCertificateCopyNormalizedIssuerContent( - SecCertificateRef certificate, - ffi.Pointer error, -); - -@ffi.Native() -external CFDataRef SecCertificateCopyNormalizedIssuerSequence( - SecCertificateRef certificate, -); - -@Deprecated( - 'SecCertificateCopyNormalizedSubjectContent is deprecated. Use SecCertificateCopyNormalizedSubjectSequence instead.', -) -@ffi.Native)>() -external CFDataRef SecCertificateCopyNormalizedSubjectContent( - SecCertificateRef certificate, - ffi.Pointer error, -); - -@ffi.Native() -external CFDataRef SecCertificateCopyNormalizedSubjectSequence( - SecCertificateRef certificate, -); - -@ffi.Native() -external CFDateRef SecCertificateCopyNotValidAfterDate( - SecCertificateRef certificate, -); - -@ffi.Native() -external CFDateRef SecCertificateCopyNotValidBeforeDate( - SecCertificateRef certificate, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(CFStringRef, uint32, ffi.Pointer) ->() -external int SecCertificateCopyPreference( - CFStringRef name, - int keyUsage, - ffi.Pointer certificate, -); - -@ffi.Native() -external SecCertificateRef SecCertificateCopyPreferred( - CFStringRef name, - CFArrayRef keyUsage, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecCertificateCopyPublicKey( - SecCertificateRef certificate, - ffi.Pointer key, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external CFDataRef SecCertificateCopySerialNumber( - SecCertificateRef certificate, - ffi.Pointer error, -); - -@ffi.Native)>() -external CFDataRef SecCertificateCopySerialNumberData( - SecCertificateRef certificate, - ffi.Pointer error, -); - -@ffi.Native< - CFStringRef Function( - CFAllocatorRef, - SecCertificateRef, - ffi.Pointer, - ) ->() -external CFStringRef SecCertificateCopyShortDescription( - CFAllocatorRef alloc, - SecCertificateRef certificate, - ffi.Pointer error, -); - -@ffi.Native() -external CFStringRef SecCertificateCopySubjectSummary( - SecCertificateRef certificate, -); - -@ffi.Native< - CFDictionaryRef Function( - SecCertificateRef, - CFArrayRef, - ffi.Pointer, - ) ->() -external CFDictionaryRef SecCertificateCopyValues( - SecCertificateRef certificate, - CFArrayRef keys, - ffi.Pointer error, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - CSSM_CERT_TYPE, - CSSM_CERT_ENCODING, - ffi.Pointer, - ) ->() -external int SecCertificateCreateFromData( - ffi.Pointer data, - int type, - int encoding, - ffi.Pointer certificate, -); - -@ffi.Native() -external SecCertificateRef SecCertificateCreateWithData( - CFAllocatorRef allocator, - CFDataRef data, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecCertificateRef, ffi.Pointer>) ->() -external int SecCertificateGetAlgorithmID( - SecCertificateRef certificate, - ffi.Pointer> algid, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecCertificateGetCLHandle( - SecCertificateRef certificate, - ffi.Pointer clHandle, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecCertificateGetData( - SecCertificateRef certificate, - CSSM_DATA_PTR data, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecCertificateRef, ffi.Pointer>) ->() -external int SecCertificateGetIssuer( - SecCertificateRef certificate, - ffi.Pointer> issuer, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecCertificateRef, ffi.Pointer>) ->() -external int SecCertificateGetSubject( - SecCertificateRef certificate, - ffi.Pointer> subject, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecCertificateGetType( - SecCertificateRef certificate, - ffi.Pointer certificateType, -); - -@ffi.Native() -external int SecCertificateGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecCertificateRef, CFStringRef, uint32, CFDateRef) ->() -external int SecCertificateSetPreference( - SecCertificateRef certificate, - CFStringRef name, - int keyUsage, - CFDateRef date, -); - -@ffi.Native() -external int SecCertificateSetPreferred( - SecCertificateRef certificate, - CFStringRef name, - CFArrayRef keyUsage, -); - -@ffi.Native() -external int SecCodeCheckValidity( - SecCodeRef code, - int flags, - SecRequirementRef requirement, -); - -@ffi.Native< - OSStatus Function( - SecCodeRef, - ffi.Uint32, - SecRequirementRef, - ffi.Pointer, - ) ->() -external int SecCodeCheckValidityWithErrors( - SecCodeRef code, - int flags, - SecRequirementRef requirement, - ffi.Pointer errors, -); - -@ffi.Native< - OSStatus Function( - SecStaticCodeRef, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int SecCodeCopyDesignatedRequirement( - SecStaticCodeRef code, - int flags, - ffi.Pointer requirement, -); - -@ffi.Native< - OSStatus Function( - SecCodeRef, - CFDictionaryRef, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int SecCodeCopyGuestWithAttributes( - SecCodeRef host, - CFDictionaryRef attributes, - int flags, - ffi.Pointer guest, -); - -@ffi.Native< - OSStatus Function(SecCodeRef, ffi.Uint32, ffi.Pointer) ->() -external int SecCodeCopyHost( - SecCodeRef guest, - int flags, - ffi.Pointer host, -); - -@ffi.Native< - OSStatus Function(SecStaticCodeRef, ffi.Uint32, ffi.Pointer) ->() -external int SecCodeCopyPath( - SecStaticCodeRef staticCode, - int flags, - ffi.Pointer path, -); - -@ffi.Native)>() -external int SecCodeCopySelf(int flags, ffi.Pointer self); - -@ffi.Native< - OSStatus Function(SecStaticCodeRef, ffi.Uint32, ffi.Pointer) ->() -external int SecCodeCopySigningInformation( - SecStaticCodeRef code, - int flags, - ffi.Pointer information, -); - -@ffi.Native< - OSStatus Function(SecCodeRef, ffi.Uint32, ffi.Pointer) ->() -external int SecCodeCopyStaticCode( - SecCodeRef code, - int flags, - ffi.Pointer staticCode, -); - -@ffi.Native< - OSStatus Function(xpc_object_t, ffi.Uint32, ffi.Pointer) ->(symbol: 'SecCodeCreateWithXPCMessage') -external int _SecCodeCreateWithXPCMessage( - xpc_object_t message, - int flags, - ffi.Pointer target, -); - -DartSInt32 SecCodeCreateWithXPCMessage( - Dartxpc_object_t message, - int flags, - ffi.Pointer target, -) { - final _$$ref = message.ref; - return _SecCodeCreateWithXPCMessage(_$$ref.pointer, flags, target); -} - -@ffi.Native() -external int SecCodeGetTypeID(); - -@ffi.Native() -external int SecCodeMapMemory(SecStaticCodeRef code, int flags); - -@ffi.Native< - OSStatus Function(SecStaticCodeRef, CFStringRef, CFDataRef, ffi.Uint32) ->() -external int SecCodeValidateFileResource( - SecStaticCodeRef code, - CFStringRef relativePath, - CFDataRef fileData, - int flags, -); - -@ffi.Native)>() -external CFStringRef SecCopyErrorMessageString( - int status, - ffi.Pointer reserved, -); - -@ffi.Native() -external CFStringRef SecCreateSharedWebCredentialPassword(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecDecodeTransformCreate( - CFTypeRef DecodeType, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecDecryptTransformCreate( - SecKeyRef keyRef, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external int SecDecryptTransformGetTypeID(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - SecTransformRef Function(CFTypeRef, CFIndex, ffi.Pointer) ->() -external SecTransformRef SecDigestTransformCreate( - CFTypeRef digestType, - int digestLength, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external int SecDigestTransformGetTypeID(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecEncodeTransformCreate( - CFTypeRef encodeType, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecEncryptTransformCreate( - SecKeyRef keyRef, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external int SecEncryptTransformGetTypeID(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external int SecGroupTransformGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - SecGuestRef, - ffi.Uint32, - CFURLRef, - CFDictionaryRef, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int SecHostCreateGuest( - int host, - int status, - CFURLRef path, - CFDictionaryRef attributes, - int flags, - ffi.Pointer newGuest, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecHostRemoveGuest(int host, int guest, int flags); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecHostSelectGuest(int guestRef, int flags); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecHostSelectedGuest(int flags, ffi.Pointer guestRef); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecGuestRef, ffi.Uint32, CFDictionaryRef, ffi.Uint32) ->() -external int SecHostSetGuestStatus( - int guestRef, - int status, - CFDictionaryRef attributes, - int flags, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecHostSetHostingPort(int hostingPort, int flags); - -@ffi.Native)>() -external int SecIdentityCopyCertificate( - SecIdentityRef identityRef, - ffi.Pointer certificateRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFStringRef, - CSSM_KEYUSE, - CFArrayRef, - ffi.Pointer, - ) ->() -external int SecIdentityCopyPreference( - CFStringRef name, - int keyUsage, - CFArrayRef validIssuers, - ffi.Pointer identity, -); - -@ffi.Native() -external SecIdentityRef SecIdentityCopyPreferred( - CFStringRef name, - CFArrayRef keyUsage, - CFArrayRef validIssuers, -); - -@ffi.Native)>() -external int SecIdentityCopyPrivateKey( - SecIdentityRef identityRef, - ffi.Pointer privateKeyRef, -); - -@ffi.Native< - OSStatus Function( - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecIdentityCopySystemIdentity( - CFStringRef domain, - ffi.Pointer idRef, - ffi.Pointer actualDomain, -); - -@ffi.Native< - SecIdentityRef Function(CFAllocatorRef, SecCertificateRef, SecKeyRef) ->() -external SecIdentityRef SecIdentityCreate( - CFAllocatorRef allocator, - SecCertificateRef certificate, - SecKeyRef privateKey, -); - -@ffi.Native< - OSStatus Function(CFTypeRef, SecCertificateRef, ffi.Pointer) ->() -external int SecIdentityCreateWithCertificate( - CFTypeRef keychainOrArray, - SecCertificateRef certificateRef, - ffi.Pointer identityRef, -); - -@ffi.Native() -external int SecIdentityGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecIdentitySearchRef, ffi.Pointer) ->() -external int SecIdentitySearchCopyNext( - SecIdentitySearchRef searchRef, - ffi.Pointer identity, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(CFTypeRef, CSSM_KEYUSE, ffi.Pointer) ->() -external int SecIdentitySearchCreate( - CFTypeRef keychainOrArray, - int keyUsage, - ffi.Pointer searchRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecIdentitySearchGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecIdentitySetPreference( - SecIdentityRef identity, - CFStringRef name, - int keyUsage, -); - -@ffi.Native() -external int SecIdentitySetPreferred( - SecIdentityRef identity, - CFStringRef name, - CFArrayRef keyUsage, -); - -@ffi.Native() -external int SecIdentitySetSystemIdentity( - CFStringRef domain, - SecIdentityRef idRef, -); - -@ffi.Native)>() -external int SecItemAdd( - CFDictionaryRef attributes, - ffi.Pointer result, -); - -@ffi.Native)>() -external int SecItemCopyMatching( - CFDictionaryRef query, - ffi.Pointer result, -); - -@ffi.Native() -external int SecItemDelete(CFDictionaryRef query); - -@ffi.Native< - OSStatus Function( - CFTypeRef, - ffi.Uint32, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'SecItemExport') -external int _SecItemExport( - CFTypeRef secItemOrArray, - int outputFormat, - int flags, - ffi.Pointer keyParams, - ffi.Pointer exportedData, -); - -DartSInt32 SecItemExport( - CFTypeRef secItemOrArray, - SecExternalFormat outputFormat, - int flags, - ffi.Pointer keyParams, - ffi.Pointer exportedData, -) { - return _SecItemExport( - secItemOrArray, - outputFormat.value, - flags, - keyParams, - exportedData, - ); -} - -@ffi.Native< - OSStatus Function( - CFDataRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - SecKeychainRef, - ffi.Pointer, - ) ->() -external int SecItemImport( - CFDataRef importedData, - CFStringRef fileNameOrExtension, - ffi.Pointer inputFormat, - ffi.Pointer itemType, - int flags, - ffi.Pointer keyParams, - SecKeychainRef importKeychain, - ffi.Pointer outItems, -); - -@ffi.Native() -external int SecItemUpdate( - CFDictionaryRef query, - CFDictionaryRef attributesToUpdate, -); - -@ffi.Native() -external CFDictionaryRef SecKeyCopyAttributes(SecKeyRef key); - -@ffi.Native)>() -external CFDataRef SecKeyCopyExternalRepresentation( - SecKeyRef key, - ffi.Pointer error, -); - -@ffi.Native< - CFDataRef Function( - SecKeyRef, - SecKeyAlgorithm, - SecKeyRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external CFDataRef SecKeyCopyKeyExchangeResult( - SecKeyRef privateKey, - SecKeyAlgorithm algorithm, - SecKeyRef publicKey, - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@ffi.Native() -external SecKeyRef SecKeyCopyPublicKey(SecKeyRef key); - -@ffi.Native< - CFDataRef Function( - SecKeyRef, - SecKeyAlgorithm, - CFDataRef, - ffi.Pointer, - ) ->() -external CFDataRef SecKeyCreateDecryptedData( - SecKeyRef key, - SecKeyAlgorithm algorithm, - CFDataRef ciphertext, - ffi.Pointer error, -); - -@ffi.Native< - CFDataRef Function( - SecKeyRef, - SecKeyAlgorithm, - CFDataRef, - ffi.Pointer, - ) ->() -external CFDataRef SecKeyCreateEncryptedData( - SecKeyRef key, - SecKeyAlgorithm algorithm, - CFDataRef plaintext, - ffi.Pointer error, -); - -@Deprecated('No longer supported') -@ffi.Native< - SecKeyRef Function(CFDictionaryRef, CFDataRef, ffi.Pointer) ->() -external SecKeyRef SecKeyCreateFromData( - CFDictionaryRef parameters, - CFDataRef keyData, - ffi.Pointer error, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecKeychainRef, - CSSM_ALGORITHMS, - uint32, - CSSM_CC_HANDLE, - CSSM_KEYUSE, - uint32, - CSSM_KEYUSE, - uint32, - SecAccessRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecKeyCreatePair( - SecKeychainRef keychainRef, - int algorithm, - int keySizeInBits, - int contextHandle, - int publicKeyUsage, - int publicKeyAttr, - int privateKeyUsage, - int privateKeyAttr, - SecAccessRef initialAccess, - ffi.Pointer publicKey, - ffi.Pointer privateKey, -); - -@ffi.Native)>() -external SecKeyRef SecKeyCreateRandomKey( - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@ffi.Native< - CFDataRef Function( - SecKeyRef, - SecKeyAlgorithm, - CFDataRef, - ffi.Pointer, - ) ->() -external CFDataRef SecKeyCreateSignature( - SecKeyRef key, - SecKeyAlgorithm algorithm, - CFDataRef dataToSign, - ffi.Pointer error, -); - -@ffi.Native< - SecKeyRef Function(CFDataRef, CFDictionaryRef, ffi.Pointer) ->() -external SecKeyRef SecKeyCreateWithData( - CFDataRef keyData, - CFDictionaryRef attributes, - ffi.Pointer error, -); - -@Deprecated('No longer supported') -@ffi.Native< - SecKeyRef Function(CFStringRef, CFDictionaryRef, ffi.Pointer) ->() -external SecKeyRef SecKeyDeriveFromPassword( - CFStringRef password, - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecKeychainRef, - CSSM_ALGORITHMS, - uint32, - CSSM_CC_HANDLE, - CSSM_KEYUSE, - uint32, - SecAccessRef, - ffi.Pointer, - ) ->() -external int SecKeyGenerate( - SecKeychainRef keychainRef, - int algorithm, - int keySizeInBits, - int contextHandle, - int keyUsage, - int keyAttr, - SecAccessRef initialAccess, - ffi.Pointer keyRef, -); - -@Deprecated('Use SecKeyCreateRandomKey') -@ffi.Native< - OSStatus Function( - CFDictionaryRef, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecKeyGeneratePair( - CFDictionaryRef parameters, - ffi.Pointer publicKey, - ffi.Pointer privateKey, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(CFDictionaryRef, dispatch_queue_t, SecKeyGeneratePairBlock) ->(symbol: 'SecKeyGeneratePairAsync') -external void _SecKeyGeneratePairAsync( - CFDictionaryRef parameters, - dispatch_queue_t deliveryQueue, - SecKeyGeneratePairBlock result, -); - -void SecKeyGeneratePairAsync( - CFDictionaryRef parameters, - Dartdispatch_queue_t deliveryQueue, - DartSecKeyGeneratePairBlock result, -) { - final _$$ref = deliveryQueue.ref; - final _$$ref$1 = result.ref; - return _SecKeyGeneratePairAsync(parameters, _$$ref.pointer, _$$ref$1.pointer); -} - -@Deprecated('No longer supported') -@ffi.Native)>() -external SecKeyRef SecKeyGenerateSymmetric( - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@ffi.Native() -external int SecKeyGetBlockSize(SecKeyRef key); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecKeyGetCSPHandle( - SecKeyRef keyRef, - ffi.Pointer cspHandle, -); - -@Deprecated('Deprecated') -@ffi.Native>)>() -external int SecKeyGetCSSMKey( - SecKeyRef key, - ffi.Pointer> cssmKey, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - SecKeyRef, - CSSM_ACL_AUTHORIZATION_TAG, - uint32, - ffi.Pointer>, - ) ->(symbol: 'SecKeyGetCredentials') -external int _SecKeyGetCredentials( - SecKeyRef keyRef, - int operation, - int credentialType, - ffi.Pointer> outCredentials, -); - -DartSInt32 SecKeyGetCredentials( - SecKeyRef keyRef, - Dartsint32 operation, - SecCredentialType credentialType, - ffi.Pointer> outCredentials, -) { - return _SecKeyGetCredentials( - keyRef, - operation, - credentialType.value, - outCredentials, - ); -} - -@ffi.Native() -external int SecKeyGetTypeID(); - -@ffi.Native( - symbol: 'SecKeyIsAlgorithmSupported', -) -external int _SecKeyIsAlgorithmSupported( - SecKeyRef key, - int operation, - SecKeyAlgorithm algorithm, -); - -DartBoolean SecKeyIsAlgorithmSupported( - SecKeyRef key, - SecKeyOperationType operation, - SecKeyAlgorithm algorithm, -) { - return _SecKeyIsAlgorithmSupported(key, operation.value, algorithm); -} - -@Deprecated('No longer supported') -@ffi.Native< - SecKeyRef Function( - ffi.Pointer, - SecKeyRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external SecKeyRef SecKeyUnwrapSymmetric( - ffi.Pointer keyToUnwrap, - SecKeyRef unwrappingKey, - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@ffi.Native< - Boolean Function( - SecKeyRef, - SecKeyAlgorithm, - CFDataRef, - CFDataRef, - ffi.Pointer, - ) ->() -external int SecKeyVerifySignature( - SecKeyRef key, - SecKeyAlgorithm algorithm, - CFDataRef signedData, - CFDataRef signature, - ffi.Pointer error, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDataRef Function( - SecKeyRef, - SecKeyRef, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external CFDataRef SecKeyWrapSymmetric( - SecKeyRef keyToWrap, - SecKeyRef wrappingKey, - CFDictionaryRef parameters, - ffi.Pointer error, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainCallback, UInt32, ffi.Pointer) ->() -external int SecKeychainAddCallback( - SecKeychainCallback callbackFunction, - int eventMask, - ffi.Pointer userContext, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainRef, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecKeychainAddGenericPassword( - SecKeychainRef keychain, - int serviceNameLength, - ffi.Pointer serviceName, - int accountNameLength, - ffi.Pointer accountName, - int passwordLength, - ffi.Pointer passwordData, - ffi.Pointer itemRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainRef, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt16, - FourCharCode, - FourCharCode, - UInt32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'SecKeychainAddInternetPassword') -external int _SecKeychainAddInternetPassword( - SecKeychainRef keychain, - int serverNameLength, - ffi.Pointer serverName, - int securityDomainLength, - ffi.Pointer securityDomain, - int accountNameLength, - ffi.Pointer accountName, - int pathLength, - ffi.Pointer path, - int port, - int protocol, - int authenticationType, - int passwordLength, - ffi.Pointer passwordData, - ffi.Pointer itemRef, -); - -DartSInt32 SecKeychainAddInternetPassword( - SecKeychainRef keychain, - DartUInt32 serverNameLength, - ffi.Pointer serverName, - DartUInt32 securityDomainLength, - ffi.Pointer securityDomain, - DartUInt32 accountNameLength, - ffi.Pointer accountName, - DartUInt32 pathLength, - ffi.Pointer path, - DartUInt16 port, - SecProtocolType protocol, - SecAuthenticationType authenticationType, - DartUInt32 passwordLength, - ffi.Pointer passwordData, - ffi.Pointer itemRef, -) { - return _SecKeychainAddInternetPassword( - keychain, - serverNameLength, - serverName, - securityDomainLength, - securityDomain, - accountNameLength, - accountName, - pathLength, - path, - port, - protocol.value, - authenticationType.value, - passwordLength, - passwordData, - itemRef, - ); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainRef, - UInt32, - ffi.Pointer>, - ) ->() -external int SecKeychainAttributeInfoForItemID( - SecKeychainRef keychain, - int itemID, - ffi.Pointer> info, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainCopyAccess( - SecKeychainRef keychain, - ffi.Pointer access$1, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainCopyDefault(ffi.Pointer keychain); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>( - symbol: 'SecKeychainCopyDomainDefault', -) -external int _SecKeychainCopyDomainDefault( - int domain, - ffi.Pointer keychain, -); - -DartSInt32 SecKeychainCopyDomainDefault( - SecPreferencesDomain domain, - ffi.Pointer keychain, -) { - return _SecKeychainCopyDomainDefault(domain.value, keychain); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>( - symbol: 'SecKeychainCopyDomainSearchList', -) -external int _SecKeychainCopyDomainSearchList( - int domain, - ffi.Pointer searchList, -); - -DartSInt32 SecKeychainCopyDomainSearchList( - SecPreferencesDomain domain, - ffi.Pointer searchList, -) { - return _SecKeychainCopyDomainSearchList(domain.value, searchList); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainCopySearchList(ffi.Pointer searchList); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainRef, ffi.Pointer) ->() -external int SecKeychainCopySettings( - SecKeychainRef keychain, - ffi.Pointer outSettings, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - UInt32, - ffi.Pointer, - Boolean, - SecAccessRef, - ffi.Pointer, - ) ->() -external int SecKeychainCreate( - ffi.Pointer pathName, - int passwordLength, - ffi.Pointer password, - int promptUser, - SecAccessRef initialAccess, - ffi.Pointer keychain, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainDelete(SecKeychainRef keychainOrArray); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - CFTypeRef, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int SecKeychainFindGenericPassword( - CFTypeRef keychainOrArray, - int serviceNameLength, - ffi.Pointer serviceName, - int accountNameLength, - ffi.Pointer accountName, - ffi.Pointer passwordLength, - ffi.Pointer> passwordData, - ffi.Pointer itemRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - CFTypeRef, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt32, - ffi.Pointer, - UInt16, - FourCharCode, - FourCharCode, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->(symbol: 'SecKeychainFindInternetPassword') -external int _SecKeychainFindInternetPassword( - CFTypeRef keychainOrArray, - int serverNameLength, - ffi.Pointer serverName, - int securityDomainLength, - ffi.Pointer securityDomain, - int accountNameLength, - ffi.Pointer accountName, - int pathLength, - ffi.Pointer path, - int port, - int protocol, - int authenticationType, - ffi.Pointer passwordLength, - ffi.Pointer> passwordData, - ffi.Pointer itemRef, -); - -DartSInt32 SecKeychainFindInternetPassword( - CFTypeRef keychainOrArray, - DartUInt32 serverNameLength, - ffi.Pointer serverName, - DartUInt32 securityDomainLength, - ffi.Pointer securityDomain, - DartUInt32 accountNameLength, - ffi.Pointer accountName, - DartUInt32 pathLength, - ffi.Pointer path, - DartUInt16 port, - SecProtocolType protocol, - SecAuthenticationType authenticationType, - ffi.Pointer passwordLength, - ffi.Pointer> passwordData, - ffi.Pointer itemRef, -) { - return _SecKeychainFindInternetPassword( - keychainOrArray, - serverNameLength, - serverName, - securityDomainLength, - securityDomain, - accountNameLength, - accountName, - pathLength, - path, - port, - protocol.value, - authenticationType.value, - passwordLength, - passwordData, - itemRef, - ); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainFreeAttributeInfo( - ffi.Pointer info, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecKeychainGetCSPHandle( - SecKeychainRef keychain, - ffi.Pointer cspHandle, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecKeychainGetDLDBHandle( - SecKeychainRef keychain, - ffi.Pointer dldbHandle, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainRef, ffi.Pointer, ffi.Pointer) ->() -external int SecKeychainGetPath( - SecKeychainRef keychain, - ffi.Pointer ioPathLength, - ffi.Pointer pathName, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainGetPreferenceDomain( - ffi.Pointer domain, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainGetStatus( - SecKeychainRef keychain, - ffi.Pointer keychainStatus, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainGetTypeID(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainGetUserInteractionAllowed(ffi.Pointer state); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainGetVersion(ffi.Pointer returnVers); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainItemCopyAccess( - SecKeychainItemRef itemRef, - ffi.Pointer access$1, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int SecKeychainItemCopyAttributesAndData( - SecKeychainItemRef itemRef, - ffi.Pointer info, - ffi.Pointer itemClass, - ffi.Pointer> attrList, - ffi.Pointer length, - ffi.Pointer> outData, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int SecKeychainItemCopyContent( - SecKeychainItemRef itemRef, - ffi.Pointer itemClass, - ffi.Pointer attrList, - ffi.Pointer length, - ffi.Pointer> outData, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainItemCopyFromPersistentReference( - CFDataRef persistentItemRef, - ffi.Pointer itemRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainItemRef, ffi.Pointer) ->() -external int SecKeychainItemCopyKeychain( - SecKeychainItemRef itemRef, - ffi.Pointer keychainRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - SecKeychainRef, - SecAccessRef, - ffi.Pointer, - ) ->() -external int SecKeychainItemCreateCopy( - SecKeychainItemRef itemRef, - SecKeychainRef destKeychainRef, - SecAccessRef initialAccess, - ffi.Pointer itemCopy, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - FourCharCode, - ffi.Pointer, - UInt32, - ffi.Pointer, - SecKeychainRef, - SecAccessRef, - ffi.Pointer, - ) ->(symbol: 'SecKeychainItemCreateFromContent') -external int _SecKeychainItemCreateFromContent( - int itemClass, - ffi.Pointer attrList, - int length, - ffi.Pointer data, - SecKeychainRef keychainRef, - SecAccessRef initialAccess, - ffi.Pointer itemRef, -); - -DartSInt32 SecKeychainItemCreateFromContent( - SecItemClass itemClass, - ffi.Pointer attrList, - DartUInt32 length, - ffi.Pointer data, - SecKeychainRef keychainRef, - SecAccessRef initialAccess, - ffi.Pointer itemRef, -) { - return _SecKeychainItemCreateFromContent( - itemClass.value, - attrList, - length, - data, - keychainRef, - initialAccess, - itemRef, - ); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native)>() -external int SecKeychainItemCreatePersistentReference( - SecKeychainItemRef itemRef, - ffi.Pointer persistentItemRef, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainItemDelete(SecKeychainItemRef itemRef); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFTypeRef, - ffi.Uint32, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'SecKeychainItemExport') -external int _SecKeychainItemExport( - CFTypeRef keychainItemOrArray, - int outputFormat, - int flags, - ffi.Pointer keyParams, - ffi.Pointer exportedData, -); - -DartSInt32 SecKeychainItemExport( - CFTypeRef keychainItemOrArray, - SecExternalFormat outputFormat, - int flags, - ffi.Pointer keyParams, - ffi.Pointer exportedData, -) { - return _SecKeychainItemExport( - keychainItemOrArray, - outputFormat.value, - flags, - keyParams, - exportedData, - ); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecKeychainItemFreeAttributesAndData( - ffi.Pointer attrList, - ffi.Pointer data, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecKeychainItemFreeContent( - ffi.Pointer attrList, - ffi.Pointer data, -); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function(SecKeychainItemRef, ffi.Pointer) ->() -external int SecKeychainItemGetDLDBHandle( - SecKeychainItemRef keyItemRef, - ffi.Pointer dldbHandle, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainItemGetTypeID(); - -@Deprecated('CSSM is not supported') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - ffi.Pointer>, - ) ->() -external int SecKeychainItemGetUniqueRecordID( - SecKeychainItemRef itemRef, - ffi.Pointer> uniqueRecordID, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CFDataRef, - CFStringRef, - ffi.Pointer, - ffi.Pointer, - ffi.Uint32, - ffi.Pointer, - SecKeychainRef, - ffi.Pointer, - ) ->() -external int SecKeychainItemImport( - CFDataRef importedData, - CFStringRef fileNameOrExtension, - ffi.Pointer inputFormat, - ffi.Pointer itemType, - int flags, - ffi.Pointer keyParams, - SecKeychainRef importKeychain, - ffi.Pointer outItems, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - ffi.Pointer, - UInt32, - ffi.Pointer, - ) ->() -external int SecKeychainItemModifyAttributesAndData( - SecKeychainItemRef itemRef, - ffi.Pointer attrList, - int length, - ffi.Pointer data, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - SecKeychainItemRef, - ffi.Pointer, - UInt32, - ffi.Pointer, - ) ->() -external int SecKeychainItemModifyContent( - SecKeychainItemRef itemRef, - ffi.Pointer attrList, - int length, - ffi.Pointer data, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainItemSetAccess( - SecKeychainItemRef itemRef, - SecAccessRef access$1, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainLock(SecKeychainRef keychain); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainLockAll(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int SecKeychainOpen( - ffi.Pointer pathName, - ffi.Pointer keychain, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainRemoveCallback(SecKeychainCallback callbackFunction); - -@Deprecated('SecKeychainSearch is not supported') -@ffi.Native< - OSStatus Function(SecKeychainSearchRef, ffi.Pointer) ->() -external int SecKeychainSearchCopyNext( - SecKeychainSearchRef searchRef, - ffi.Pointer itemRef, -); - -@Deprecated('SecKeychainSearch is not supported') -@ffi.Native< - OSStatus Function( - CFTypeRef, - FourCharCode, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'SecKeychainSearchCreateFromAttributes') -external int _SecKeychainSearchCreateFromAttributes( - CFTypeRef keychainOrArray, - int itemClass, - ffi.Pointer attrList, - ffi.Pointer searchRef, -); - -DartSInt32 SecKeychainSearchCreateFromAttributes( - CFTypeRef keychainOrArray, - SecItemClass itemClass, - ffi.Pointer attrList, - ffi.Pointer searchRef, -) { - return _SecKeychainSearchCreateFromAttributes( - keychainOrArray, - itemClass.value, - attrList, - searchRef, - ); -} - -@Deprecated('SecKeychainSearch is not supported') -@ffi.Native() -external int SecKeychainSearchGetTypeID(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainSetAccess( - SecKeychainRef keychain, - SecAccessRef access$1, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainSetDefault(SecKeychainRef keychain); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native( - symbol: 'SecKeychainSetDomainDefault', -) -external int _SecKeychainSetDomainDefault(int domain, SecKeychainRef keychain); - -DartSInt32 SecKeychainSetDomainDefault( - SecPreferencesDomain domain, - SecKeychainRef keychain, -) { - return _SecKeychainSetDomainDefault(domain.value, keychain); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native( - symbol: 'SecKeychainSetDomainSearchList', -) -external int _SecKeychainSetDomainSearchList(int domain, CFArrayRef searchList); - -DartSInt32 SecKeychainSetDomainSearchList( - SecPreferencesDomain domain, - CFArrayRef searchList, -) { - return _SecKeychainSetDomainSearchList(domain.value, searchList); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native( - symbol: 'SecKeychainSetPreferenceDomain', -) -external int _SecKeychainSetPreferenceDomain(int domain); - -DartSInt32 SecKeychainSetPreferenceDomain(SecPreferencesDomain domain) { - return _SecKeychainSetPreferenceDomain(domain.value); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainSetSearchList(CFArrayRef searchList); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainRef, ffi.Pointer) ->() -external int SecKeychainSetSettings( - SecKeychainRef keychain, - ffi.Pointer newSettings, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecKeychainSetUserInteractionAllowed(int state); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecKeychainRef, UInt32, ffi.Pointer, Boolean) ->() -external int SecKeychainUnlock( - SecKeychainRef keychain, - int passwordLength, - ffi.Pointer password, - int usePassword, -); - -@ffi.Native< - OSStatus Function(CFDataRef, CFDictionaryRef, ffi.Pointer) ->() -external int SecPKCS12Import( - CFDataRef pkcs12_data, - CFDictionaryRef options, - ffi.Pointer items, -); - -@ffi.Native() -external CFDictionaryRef SecPolicyCopyProperties(SecPolicyRef policyRef); - -@ffi.Native() -external SecPolicyRef SecPolicyCreateBasicX509(); - -@ffi.Native() -external SecPolicyRef SecPolicyCreateRevocation(int revocationFlags); - -@ffi.Native() -external SecPolicyRef SecPolicyCreateSSL(int server, CFStringRef hostname); - -@Deprecated('Deprecated') -@ffi.Native() -external SecPolicyRef SecPolicyCreateWithOID(CFTypeRef policyOID); - -@ffi.Native() -external SecPolicyRef SecPolicyCreateWithProperties( - CFTypeRef policyIdentifier, - CFDictionaryRef properties, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecPolicyGetOID( - SecPolicyRef policyRef, - ffi.Pointer oid, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecPolicyGetTPHandle( - SecPolicyRef policyRef, - ffi.Pointer tpHandle, -); - -@ffi.Native() -external int SecPolicyGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecPolicyGetValue( - SecPolicyRef policyRef, - ffi.Pointer value, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecPolicySearchCopyNext( - SecPolicySearchRef searchRef, - ffi.Pointer policyRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - CSSM_CERT_TYPE, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecPolicySearchCreate( - int certType, - ffi.Pointer policyOID, - ffi.Pointer value, - ffi.Pointer searchRef, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecPolicySearchGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecPolicySetProperties( - SecPolicyRef policyRef, - CFDictionaryRef properties, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecPolicySetValue( - SecPolicyRef policyRef, - ffi.Pointer value, -); - -@ffi.Native)>() -external int SecRandomCopyBytes( - SecRandomRef rnd, - int count, - ffi.Pointer bytes, -); - -@Deprecated( - 'Use ASAuthorizationController to make an ASAuthorizationPasswordRequest (AuthenticationServices framework)', -) -@ffi.Native< - ffi.Void Function(CFStringRef, CFStringRef, ffi.Pointer) ->(symbol: 'SecRequestSharedWebCredential') -external void _SecRequestSharedWebCredential( - CFStringRef fqdn, - CFStringRef account, - ffi.Pointer completionHandler, -); - -void SecRequestSharedWebCredential( - CFStringRef fqdn, - CFStringRef account, - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - completionHandler, -) { - final _$$ref = completionHandler.ref; - return _SecRequestSharedWebCredential(fqdn, account, _$$ref.pointer); -} - -@ffi.Native< - OSStatus Function(SecRequirementRef, ffi.Uint32, ffi.Pointer) ->() -external int SecRequirementCopyData( - SecRequirementRef requirement, - int flags, - ffi.Pointer data, -); - -@ffi.Native< - OSStatus Function(SecRequirementRef, ffi.Uint32, ffi.Pointer) ->() -external int SecRequirementCopyString( - SecRequirementRef requirement, - int flags, - ffi.Pointer text, -); - -@ffi.Native< - OSStatus Function(CFDataRef, ffi.Uint32, ffi.Pointer) ->() -external int SecRequirementCreateWithData( - CFDataRef data, - int flags, - ffi.Pointer requirement, -); - -@ffi.Native< - OSStatus Function(CFStringRef, ffi.Uint32, ffi.Pointer) ->() -external int SecRequirementCreateWithString( - CFStringRef text, - int flags, - ffi.Pointer requirement, -); - -@ffi.Native< - OSStatus Function( - CFStringRef, - ffi.Uint32, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecRequirementCreateWithStringAndErrors( - CFStringRef text, - int flags, - ffi.Pointer errors, - ffi.Pointer requirement, -); - -@ffi.Native() -external int SecRequirementGetTypeID(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecSignTransformCreate( - SecKeyRef key, - ffi.Pointer error, -); - -@ffi.Native< - OSStatus Function(SecStaticCodeRef, ffi.Uint32, SecRequirementRef) ->() -external int SecStaticCodeCheckValidity( - SecStaticCodeRef staticCode, - int flags, - SecRequirementRef requirement, -); - -@ffi.Native< - OSStatus Function( - SecStaticCodeRef, - ffi.Uint32, - SecRequirementRef, - ffi.Pointer, - ) ->() -external int SecStaticCodeCheckValidityWithErrors( - SecStaticCodeRef staticCode, - int flags, - SecRequirementRef requirement, - ffi.Pointer errors, -); - -@ffi.Native< - OSStatus Function(CFURLRef, ffi.Uint32, ffi.Pointer) ->() -external int SecStaticCodeCreateWithPath( - CFURLRef path, - int flags, - ffi.Pointer staticCode, -); - -@ffi.Native< - OSStatus Function( - CFURLRef, - ffi.Uint32, - CFDictionaryRef, - ffi.Pointer, - ) ->() -external int SecStaticCodeCreateWithPathAndAttributes( - CFURLRef path, - int flags, - CFDictionaryRef attributes, - ffi.Pointer staticCode, -); - -@ffi.Native() -external int SecStaticCodeGetTypeID(); - -@ffi.Native)>() -external CFStringRef SecTaskCopySigningIdentifier( - SecTaskRef task, - ffi.Pointer error, -); - -@ffi.Native< - CFTypeRef Function(SecTaskRef, CFStringRef, ffi.Pointer) ->() -external CFTypeRef SecTaskCopyValueForEntitlement( - SecTaskRef task, - CFStringRef entitlement, - ffi.Pointer error, -); - -@ffi.Native< - CFDictionaryRef Function(SecTaskRef, CFArrayRef, ffi.Pointer) ->() -external CFDictionaryRef SecTaskCopyValuesForEntitlements( - SecTaskRef task, - CFArrayRef entitlements, - ffi.Pointer error, -); - -@ffi.Native() -external SecTaskRef SecTaskCreateFromSelf(CFAllocatorRef allocator); - -@ffi.Native() -external SecTaskRef SecTaskCreateWithAuditToken( - CFAllocatorRef allocator, - audit_token_t token, -); - -@ffi.Native() -external int SecTaskGetCodeSignStatus(SecTaskRef task); - -@ffi.Native() -external int SecTaskGetTypeID(); - -@Deprecated('Deprecated') -@ffi.Native< - CFTypeRef Function( - SecTransformImplementationRef, - SecTransformStringOrAttributeRef, - CFIndex, - ) ->(symbol: 'SecTranformCustomGetAttribute') -external CFTypeRef _SecTranformCustomGetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - int type, -); - -CFTypeRef SecTranformCustomGetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - SecTransformMetaAttributeType type, -) { - return _SecTranformCustomGetAttribute(ref, attribute, type.value); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - SecGroupTransformRef Function( - SecTransformRef, - CFStringRef, - SecTransformRef, - CFStringRef, - SecGroupTransformRef, - ffi.Pointer, - ) ->() -external SecGroupTransformRef SecTransformConnectTransforms( - SecTransformRef sourceTransformRef, - CFStringRef sourceAttributeName, - SecTransformRef destinationTransformRef, - CFStringRef destinationAttributeName, - SecGroupTransformRef group, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external CFDictionaryRef SecTransformCopyExternalRepresentation( - SecTransformRef transformRef, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external SecTransformRef SecTransformCreate( - CFStringRef name, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - SecTransformRef Function(CFDictionaryRef, ffi.Pointer) ->() -external SecTransformRef SecTransformCreateFromExternalRepresentation( - CFDictionaryRef dictionary, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external SecGroupTransformRef SecTransformCreateGroupTransform(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external SecTransformRef SecTransformCreateReadTransformWithReadStream( - CFReadStreamRef inputStream, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFTypeRef Function( - SecTransformImplementationRef, - SecTransformStringOrAttributeRef, - CFIndex, - ) ->(symbol: 'SecTransformCustomGetAttribute') -external CFTypeRef _SecTransformCustomGetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - int type, -); - -CFTypeRef SecTransformCustomGetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - SecTransformMetaAttributeType type, -) { - return _SecTransformCustomGetAttribute(ref, attribute, type.value); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFTypeRef Function( - SecTransformImplementationRef, - SecTransformStringOrAttributeRef, - CFIndex, - CFTypeRef, - ) ->(symbol: 'SecTransformCustomSetAttribute') -external CFTypeRef _SecTransformCustomSetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - int type, - CFTypeRef value, -); - -CFTypeRef SecTransformCustomSetAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - SecTransformMetaAttributeType type, - CFTypeRef value, -) { - return _SecTransformCustomSetAttribute(ref, attribute, type.value, value); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native)>() -external CFTypeRef SecTransformExecute( - SecTransformRef transformRef, - ffi.Pointer errorRef, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - ffi.Void Function(SecTransformRef, dispatch_queue_t, SecMessageBlock) ->(symbol: 'SecTransformExecuteAsync') -external void _SecTransformExecuteAsync( - SecTransformRef transformRef, - dispatch_queue_t deliveryQueue, - SecMessageBlock deliveryBlock, -); - -void SecTransformExecuteAsync( - SecTransformRef transformRef, - Dartdispatch_queue_t deliveryQueue, - DartSecMessageBlock deliveryBlock, -) { - final _$$ref = deliveryQueue.ref; - final _$$ref$1 = deliveryBlock.ref; - return _SecTransformExecuteAsync( - transformRef, - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external SecTransformRef SecTransformFindByName( - SecGroupTransformRef transform, - CFStringRef name, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external CFTypeRef SecTransformGetAttribute( - SecTransformRef transformRef, - CFStringRef key, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external int SecTransformGetTypeID(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native() -external CFTypeRef SecTransformNoData(); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFTypeRef Function( - SecTransformImplementationRef, - SecTransformStringOrAttributeRef, - CFTypeRef, - ) ->() -external CFTypeRef SecTransformPushbackAttribute( - SecTransformImplementationRef ref, - SecTransformStringOrAttributeRef attribute, - CFTypeRef value, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - Boolean Function(CFStringRef, SecTransformCreateFP, ffi.Pointer) ->() -external int SecTransformRegister( - CFStringRef uniqueName, - SecTransformCreateFP createTransformFunction, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - Boolean Function( - SecTransformRef, - CFStringRef, - CFTypeRef, - ffi.Pointer, - ) ->() -external int SecTransformSetAttribute( - SecTransformRef transformRef, - CFStringRef key, - CFTypeRef value, - ffi.Pointer error, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFErrorRef Function( - SecTransformImplementationRef, - CFStringRef, - SecTransformStringOrAttributeRef, - SecTransformAttributeActionBlock, - ) ->(symbol: 'SecTransformSetAttributeAction') -external CFErrorRef _SecTransformSetAttributeAction( - SecTransformImplementationRef ref, - CFStringRef action, - SecTransformStringOrAttributeRef attribute, - SecTransformAttributeActionBlock newAction, -); - -CFErrorRef SecTransformSetAttributeAction( - SecTransformImplementationRef ref, - CFStringRef action, - SecTransformStringOrAttributeRef attribute, - DartSecTransformAttributeActionBlock newAction, -) { - final _$$ref = newAction.ref; - return _SecTransformSetAttributeAction( - ref, - action, - attribute, - _$$ref.pointer, - ); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFErrorRef Function( - SecTransformImplementationRef, - CFStringRef, - SecTransformDataBlock, - ) ->(symbol: 'SecTransformSetDataAction') -external CFErrorRef _SecTransformSetDataAction( - SecTransformImplementationRef ref, - CFStringRef action, - SecTransformDataBlock newAction, -); - -CFErrorRef SecTransformSetDataAction( - SecTransformImplementationRef ref, - CFStringRef action, - DartSecTransformDataBlock newAction, -) { - final _$$ref = newAction.ref; - return _SecTransformSetDataAction(ref, action, _$$ref.pointer); -} - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - CFErrorRef Function( - SecTransformImplementationRef, - CFStringRef, - SecTransformActionBlock, - ) ->(symbol: 'SecTransformSetTransformAction') -external CFErrorRef _SecTransformSetTransformAction( - SecTransformImplementationRef ref, - CFStringRef action, - SecTransformActionBlock newAction, -); - -CFErrorRef SecTransformSetTransformAction( - SecTransformImplementationRef ref, - CFStringRef action, - DartSecTransformActionBlock newAction, -) { - final _$$ref = newAction.ref; - return _SecTransformSetTransformAction(ref, action, _$$ref.pointer); -} - -@ffi.Native)>() -external int SecTrustCopyAnchorCertificates(ffi.Pointer anchors); - -@ffi.Native() -external CFArrayRef SecTrustCopyCertificateChain(SecTrustRef trust); - -@ffi.Native)>() -external int SecTrustCopyCustomAnchorCertificates( - SecTrustRef trust, - ffi.Pointer anchors, -); - -@ffi.Native() -external CFDataRef SecTrustCopyExceptions(SecTrustRef trust); - -@ffi.Native() -external SecKeyRef SecTrustCopyKey(SecTrustRef trust); - -@ffi.Native)>() -external int SecTrustCopyPolicies( - SecTrustRef trust, - ffi.Pointer policies, -); - -@Deprecated('Deprecated') -@ffi.Native() -external CFArrayRef SecTrustCopyProperties(SecTrustRef trust); - -@Deprecated('Deprecated') -@ffi.Native() -external SecKeyRef SecTrustCopyPublicKey(SecTrustRef trust); - -@ffi.Native() -external CFDictionaryRef SecTrustCopyResult(SecTrustRef trust); - -@ffi.Native)>() -external int SecTrustCreateWithCertificates( - CFTypeRef certificates, - CFTypeRef policies, - ffi.Pointer trust, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecTrustEvaluate( - SecTrustRef trust, - ffi.Pointer result, -); - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'SecTrustEvaluateAsync', -) -external int _SecTrustEvaluateAsync( - SecTrustRef trust, - dispatch_queue_t queue, - SecTrustCallback result, -); - -DartSInt32 SecTrustEvaluateAsync( - SecTrustRef trust, - Dartdispatch_queue_t? queue, - DartSecTrustCallback result, -) { - final _$$ref = queue?.ref; - final _$$ref$1 = result.ref; - return _SecTrustEvaluateAsync( - trust, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - OSStatus Function(SecTrustRef, dispatch_queue_t, SecTrustWithErrorCallback) ->(symbol: 'SecTrustEvaluateAsyncWithError') -external int _SecTrustEvaluateAsyncWithError( - SecTrustRef trust, - dispatch_queue_t queue, - SecTrustWithErrorCallback result, -); - -DartSInt32 SecTrustEvaluateAsyncWithError( - SecTrustRef trust, - Dartdispatch_queue_t queue, - DartSecTrustWithErrorCallback result, -) { - final _$$ref = queue.ref; - final _$$ref$1 = result.ref; - return _SecTrustEvaluateAsyncWithError( - trust, - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native)>() -external bool SecTrustEvaluateWithError( - SecTrustRef trust, - ffi.Pointer error, -); - -@Deprecated('Deprecated') -@ffi.Native() -external SecCertificateRef SecTrustGetCertificateAtIndex( - SecTrustRef trust, - int ix, -); - -@ffi.Native() -external int SecTrustGetCertificateCount(SecTrustRef trust); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function(SecTrustRef, ffi.Pointer) ->() -external int SecTrustGetCssmResult( - SecTrustRef trust, - ffi.Pointer result, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecTrustGetCssmResultCode( - SecTrustRef trust, - ffi.Pointer resultCode, -); - -@ffi.Native)>() -external int SecTrustGetNetworkFetchAllowed( - SecTrustRef trust, - ffi.Pointer allowFetch, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - SecTrustRef, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int SecTrustGetResult( - SecTrustRef trustRef, - ffi.Pointer result, - ffi.Pointer certChain, - ffi.Pointer> statusChain, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SecTrustGetTPHandle( - SecTrustRef trust, - ffi.Pointer handle, -); - -@ffi.Native)>() -external int SecTrustGetTrustResult( - SecTrustRef trust, - ffi.Pointer result, -); - -@ffi.Native() -external int SecTrustGetTypeID(); - -@ffi.Native() -external double SecTrustGetVerifyTime(SecTrustRef trust); - -@ffi.Native() -external int SecTrustSetAnchorCertificates( - SecTrustRef trust, - CFArrayRef anchorCertificates, -); - -@ffi.Native() -external int SecTrustSetAnchorCertificatesOnly( - SecTrustRef trust, - int anchorCertificatesOnly, -); - -@ffi.Native() -external bool SecTrustSetExceptions(SecTrustRef trust, CFDataRef exceptions); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecTrustSetKeychains(SecTrustRef trust, CFTypeRef keychainOrArray); - -@ffi.Native() -external int SecTrustSetNetworkFetchAllowed(SecTrustRef trust, int allowFetch); - -@ffi.Native() -external int SecTrustSetOCSPResponse(SecTrustRef trust, CFTypeRef responseData); - -@ffi.Native() -external int SecTrustSetOptions(SecTrustRef trustRef, int options); - -@Deprecated('Deprecated') -@ffi.Native() -external int SecTrustSetParameters( - SecTrustRef trustRef, - int action, - CFDataRef actionData, -); - -@ffi.Native() -external int SecTrustSetPolicies(SecTrustRef trust, CFTypeRef policies); - -@ffi.Native() -external int SecTrustSetSignedCertificateTimestamps( - SecTrustRef trust, - CFArrayRef sctArray, -); - -@ffi.Native() -external int SecTrustSetVerifyDate(SecTrustRef trust, CFDateRef verifyDate); - -@ffi.Native)>( - symbol: 'SecTrustSettingsCopyCertificates', -) -external int _SecTrustSettingsCopyCertificates( - int domain, - ffi.Pointer certArray, -); - -DartSInt32 SecTrustSettingsCopyCertificates( - SecTrustSettingsDomain domain, - ffi.Pointer certArray, -) { - return _SecTrustSettingsCopyCertificates(domain.value, certArray); -} - -@ffi.Native< - OSStatus Function(SecCertificateRef, ffi.Uint32, ffi.Pointer) ->(symbol: 'SecTrustSettingsCopyModificationDate') -external int _SecTrustSettingsCopyModificationDate( - SecCertificateRef certRef, - int domain, - ffi.Pointer modificationDate, -); - -DartSInt32 SecTrustSettingsCopyModificationDate( - SecCertificateRef certRef, - SecTrustSettingsDomain domain, - ffi.Pointer modificationDate, -) { - return _SecTrustSettingsCopyModificationDate( - certRef, - domain.value, - modificationDate, - ); -} - -@ffi.Native< - OSStatus Function(SecCertificateRef, ffi.Uint32, ffi.Pointer) ->(symbol: 'SecTrustSettingsCopyTrustSettings') -external int _SecTrustSettingsCopyTrustSettings( - SecCertificateRef certRef, - int domain, - ffi.Pointer trustSettings, -); - -DartSInt32 SecTrustSettingsCopyTrustSettings( - SecCertificateRef certRef, - SecTrustSettingsDomain domain, - ffi.Pointer trustSettings, -) { - return _SecTrustSettingsCopyTrustSettings( - certRef, - domain.value, - trustSettings, - ); -} - -@ffi.Native)>( - symbol: 'SecTrustSettingsCreateExternalRepresentation', -) -external int _SecTrustSettingsCreateExternalRepresentation( - int domain, - ffi.Pointer trustSettings, -); - -DartSInt32 SecTrustSettingsCreateExternalRepresentation( - SecTrustSettingsDomain domain, - ffi.Pointer trustSettings, -) { - return _SecTrustSettingsCreateExternalRepresentation( - domain.value, - trustSettings, - ); -} - -@ffi.Native( - symbol: 'SecTrustSettingsImportExternalRepresentation', -) -external int _SecTrustSettingsImportExternalRepresentation( - int domain, - CFDataRef trustSettings, -); - -DartSInt32 SecTrustSettingsImportExternalRepresentation( - SecTrustSettingsDomain domain, - CFDataRef trustSettings, -) { - return _SecTrustSettingsImportExternalRepresentation( - domain.value, - trustSettings, - ); -} - -@ffi.Native( - symbol: 'SecTrustSettingsRemoveTrustSettings', -) -external int _SecTrustSettingsRemoveTrustSettings( - SecCertificateRef certRef, - int domain, -); - -DartSInt32 SecTrustSettingsRemoveTrustSettings( - SecCertificateRef certRef, - SecTrustSettingsDomain domain, -) { - return _SecTrustSettingsRemoveTrustSettings(certRef, domain.value); -} - -@ffi.Native( - symbol: 'SecTrustSettingsSetTrustSettings', -) -external int _SecTrustSettingsSetTrustSettings( - SecCertificateRef certRef, - int domain, - CFTypeRef trustSettingsDictOrArray, -); - -DartSInt32 SecTrustSettingsSetTrustSettings( - SecCertificateRef certRef, - SecTrustSettingsDomain domain, - CFTypeRef trustSettingsDictOrArray, -) { - return _SecTrustSettingsSetTrustSettings( - certRef, - domain.value, - trustSettingsDictOrArray, - ); -} - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function(SecTrustedApplicationRef, ffi.Pointer) ->() -external int SecTrustedApplicationCopyData( - SecTrustedApplicationRef appRef, - ffi.Pointer data, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SecTrustedApplicationCreateFromPath( - ffi.Pointer path, - ffi.Pointer app, -); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecTrustedApplicationGetTypeID(); - -@Deprecated('SecKeychain is deprecated') -@ffi.Native() -external int SecTrustedApplicationSetData( - SecTrustedApplicationRef appRef, - CFDataRef data, -); - -@Deprecated('SecTransform is no longer supported') -@ffi.Native< - SecTransformRef Function(SecKeyRef, CFDataRef, ffi.Pointer) ->() -external SecTransformRef SecVerifyTransformCreate( - SecKeyRef key, - CFDataRef signature, - ffi.Pointer error, -); - -@ffi.Native() -external int SessionCreate(int flags, int attributes); - -@ffi.Native< - OSStatus Function( - SecuritySessionId, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int SessionGetInfo( - int session, - ffi.Pointer sessionId, - ffi.Pointer attributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetAliasUserType(AliasHandle alias, int userType); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetAliasUserTypeWithPtr(AliasPtr alias, int userType); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetCollectionDefaultAttributes( - Collection c, - int whichAttributes, - int newAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetCollectionExceptionProc( - Collection c, - CollectionExceptionUPP exceptionProc, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetCollectionItemInfo( - Collection c, - int tag, - int id, - int whichAttributes, - int newAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetComponentInstanceError( - ComponentInstance aComponentInstance, - int theError, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetComponentInstanceStorage( - ComponentInstance aComponentInstance, - Handle theStorage, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetComponentRefcon(Component aComponent, int theRefcon); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int SetCustomIconsEnabled(int vRefNum, int enableCustomIcons); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetDebugOptionValue( - int componentSignature, - int optionSelectorNum, - int newOptionSetting, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function( - DebuggerNewThreadTPP, - DebuggerDisposeThreadTPP, - DebuggerThreadSchedulerTPP, - ) ->() -external int SetDebuggerNotificationProcs( - DebuggerNewThreadTPP notifyNewThread, - DebuggerDisposeThreadTPP notifyDisposeThread, - DebuggerThreadSchedulerTPP notifyThreadScheduler, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetDefaultComponent(Component aComponent, int flags); - -@ffi.Native< - OSStatus Function( - UnicodeToTextInfo, - UnicodeToTextFallbackUPP, - OptionBits, - LogicalAddress, - ) ->() -external int SetFallbackUnicodeToText( - UnicodeToTextInfo iUnicodeToTextInfo, - UnicodeToTextFallbackUPP iFallback, - int iControlFlags, - LogicalAddress iInfoPtr, -); - -@ffi.Native< - OSStatus Function( - UnicodeToTextRunInfo, - UnicodeToTextFallbackUPP, - OptionBits, - LogicalAddress, - ) ->() -external int SetFallbackUnicodeToTextRun( - UnicodeToTextRunInfo iUnicodeToTextRunInfo, - UnicodeToTextFallbackUPP iFallback, - int iControlFlags, - LogicalAddress iInfoPtr, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int SetFrontProcess(ffi.Pointer pPSN); - -@Deprecated('Deprecated') -@ffi.Native, OptionBits)>() -external int SetFrontProcessWithOptions( - ffi.Pointer inProcess, - int inOptions, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetGestaltValue(int selector, int newValue); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetHandleSize(Handle h, int newSize); - -@ffi.Native() -external int SetIconFamilyData( - IconFamilyHandle iconFamily, - int iconType, - Handle h, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetIndexedCollectionItemInfo( - Collection c, - int itemIndex, - int whichAttributes, - int newAttributes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetPtrSize(Ptr p, int newSize); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResAttrs(Handle theResource, int attrs); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResFileAttrs(int refNum, int attrs); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResInfo(Handle theResource, int theID, ConstStr255Param name); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResLoad(int load); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResPurge(int install); - -@Deprecated('Deprecated') -@ffi.Native() -external void SetResourceSize(Handle theResource, int newSize); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetScriptManagerVariable(int selector, int param); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native)>() -external int SetSpeechInfo( - SpeechChannel chan, - int selector, - ffi.Pointer speechInfo, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SetSpeechPitch(SpeechChannel chan, int pitch); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SetSpeechProperty( - SpeechChannel chan, - CFStringRef property, - CFTypeRef object, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SetSpeechRate(SpeechChannel chan, int rate); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetThreadReadyGivenTaskRef( - ThreadTaskRef threadTRef, - int threadToSet, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetThreadScheduler(ThreadSchedulerTPP threadScheduler); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetThreadState(int threadToSet, int newState, int suggestedThread); - -@Deprecated('Deprecated') -@ffi.Native() -external int SetThreadStateEndCritical( - int threadToSet, - int newState, - int suggestedThread, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ThreadID, ThreadSwitchTPP, ffi.Pointer, Boolean) ->() -external int SetThreadSwitcher( - int thread, - ThreadSwitchTPP threadSwitcher, - ffi.Pointer switchProcParam, - int inOrOut, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(ThreadID, ThreadTerminationTPP, ffi.Pointer) ->() -external int SetThreadTerminator( - int thread, - ThreadTerminationTPP threadTerminator, - ffi.Pointer terminationProcParam, -); - -@Deprecated('Deprecated') -@ffi.Native, Boolean)>() -external int ShowHideProcess(ffi.Pointer psn, int visible); - -@Deprecated('No longer supported') -@ffi.Native() -external void SleepQInstall(SleepQRecPtr qRecPtr); - -@Deprecated('No longer supported') -@ffi.Native() -external void SleepQRemove(SleepQRecPtr qRecPtr); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(SpeechChannel, ffi.Pointer, ffi.UnsignedLong, SInt32) ->() -external int SpeakBuffer( - SpeechChannel chan, - ffi.Pointer textBuf, - int textBytes, - int controlFlags, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeakCFString( - SpeechChannel chan, - CFStringRef aString, - CFDictionaryRef options, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeakString(ConstStr255Param textToBeSpoken); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function(SpeechChannel, ffi.Pointer, ffi.UnsignedLong) ->() -external int SpeakText( - SpeechChannel chan, - ffi.Pointer textBuf, - int textBytes, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeechBusy(); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeechBusySystemWide(); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external NumVersion SpeechManagerVersion(); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeechSynthesisRegisterModuleURL(CFURLRef url); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int SpeechSynthesisUnregisterModuleURL(CFURLRef url); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int StopSpeech(SpeechChannel chan); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int StopSpeechAt(SpeechChannel chan, int whereToStop); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime SubAbsoluteFromAbsolute( - AbsoluteTime leftAbsoluteTime, - AbsoluteTime rightAbsoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime SubDurationFromAbsolute( - int duration, - AbsoluteTime absoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime SubNanosecondsFromAbsolute( - Nanoseconds nanoseconds, - AbsoluteTime absoluteTime, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void SysBreak(); - -@Deprecated('Deprecated') -@ffi.Native() -external void SysBreakFunc(ConstStr255Param debuggerMsg); - -@Deprecated('Deprecated') -@ffi.Native() -external void SysBreakStr(ConstStr255Param debuggerMsg); - -@Deprecated('Deprecated') -@ffi.Native() -external void SysError(int errorCode); - -@ffi.Native() -external int TECClearConverterContextInfo(TECObjectRef encodingConverter); - -@ffi.Native() -external int TECClearSnifferContextInfo(TECSnifferObjectRef encodingSniffer); - -@ffi.Native< - OSStatus Function( - TECObjectRef, - ConstTextPtr, - ByteCount, - ffi.Pointer, - TextPtr, - ByteCount, - ffi.Pointer, - ) ->() -external int TECConvertText( - TECObjectRef encodingConverter, - ConstTextPtr inputBuffer, - int inputBufferLength, - ffi.Pointer actualInputLength, - TextPtr outputBuffer, - int outputBufferLength, - ffi.Pointer actualOutputLength, -); - -@ffi.Native< - OSStatus Function( - TECObjectRef, - ConstTextPtr, - ByteCount, - ffi.Pointer, - TextPtr, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECConvertTextToMultipleEncodings( - TECObjectRef encodingConverter, - ConstTextPtr inputBuffer, - int inputBufferLength, - ffi.Pointer actualInputLength, - TextPtr outputBuffer, - int outputBufferLength, - ffi.Pointer actualOutputLength, - ffi.Pointer outEncodingsBuffer, - int maxOutEncodingRuns, - ffi.Pointer actualOutEncodingRuns, -); - -@ffi.Native< - OSStatus Function( - TextEncoding, - TECInternetNameUsageMask, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int TECCopyTextEncodingInternetNameAndMIB( - int textEncoding, - int usage, - ffi.Pointer encodingNamePtr, - ffi.Pointer mibEnumPtr, -); - -@ffi.Native)>() -external int TECCountAvailableSniffers( - ffi.Pointer numberOfEncodings, -); - -@ffi.Native)>() -external int TECCountAvailableTextEncodings( - ffi.Pointer numberEncodings, -); - -@ffi.Native)>() -external int TECCountDestinationTextEncodings( - int inputEncoding, - ffi.Pointer numberOfEncodings, -); - -@ffi.Native)>() -external int TECCountDirectTextEncodingConversions( - ffi.Pointer numberOfEncodings, -); - -@ffi.Native)>() -external int TECCountMailTextEncodings( - int locale, - ffi.Pointer numberEncodings, -); - -@ffi.Native)>() -external int TECCountSubTextEncodings( - int inputEncoding, - ffi.Pointer numberOfEncodings, -); - -@ffi.Native)>() -external int TECCountWebTextEncodings( - int locale, - ffi.Pointer numberEncodings, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, TextEncoding, TextEncoding) ->() -external int TECCreateConverter( - ffi.Pointer newEncodingConverter, - int inputEncoding, - int outputEncoding, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ItemCount, - ) ->() -external int TECCreateConverterFromPath( - ffi.Pointer newEncodingConverter, - ffi.Pointer inPath, - int inEncodings, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - TextEncoding, - ItemCount, - ffi.Pointer, - ) ->() -external int TECCreateOneToManyConverter( - ffi.Pointer newEncodingConverter, - int inputEncoding, - int numOutputEncodings, - ffi.Pointer outputEncodings, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ItemCount, - ) ->() -external int TECCreateSniffer( - ffi.Pointer encodingSniffer, - ffi.Pointer testEncodings, - int numTextEncodings, -); - -@ffi.Native() -external int TECDisposeConverter(TECObjectRef newEncodingConverter); - -@ffi.Native() -external int TECDisposeSniffer(TECSnifferObjectRef encodingSniffer); - -@ffi.Native< - OSStatus Function( - TECObjectRef, - TextPtr, - ByteCount, - ffi.Pointer, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECFlushMultipleEncodings( - TECObjectRef encodingConverter, - TextPtr outputBuffer, - int outputBufferLength, - ffi.Pointer actualOutputLength, - ffi.Pointer outEncodingsBuffer, - int maxOutEncodingRuns, - ffi.Pointer actualOutEncodingRuns, -); - -@ffi.Native< - OSStatus Function(TECObjectRef, TextPtr, ByteCount, ffi.Pointer) ->() -external int TECFlushText( - TECObjectRef encodingConverter, - TextPtr outputBuffer, - int outputBufferLength, - ffi.Pointer actualOutputLength, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetAvailableSniffers( - ffi.Pointer availableSniffers, - int maxAvailableSniffers, - ffi.Pointer actualAvailableSniffers, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetAvailableTextEncodings( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, -); - -@ffi.Native< - OSStatus Function( - TextEncoding, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetDestinationTextEncodings( - int inputEncoding, - ffi.Pointer destinationEncodings, - int maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetDirectTextEncodingConversions( - ffi.Pointer availableConversions, - int maxAvailableConversions, - ffi.Pointer actualAvailableConversions, -); - -@ffi.Native< - OSStatus Function(TECObjectRef, ffi.Pointer, ffi.Pointer) ->() -external int TECGetEncodingList( - TECObjectRef encodingConverter, - ffi.Pointer numEncodings, - ffi.Pointer encodingList, -); - -@ffi.Native)>() -external int TECGetInfo(ffi.Pointer tecInfo); - -@ffi.Native< - OSStatus Function( - RegionCode, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetMailTextEncodings( - int locale, - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, -); - -@ffi.Native< - OSStatus Function( - TextEncoding, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetSubTextEncodings( - int inputEncoding, - ffi.Pointer subEncodings, - int maxSubEncodings, - ffi.Pointer actualSubEncodings, -); - -@ffi.Native, ConstStr255Param)>() -external int TECGetTextEncodingFromInternetName( - ffi.Pointer textEncoding, - ConstStr255Param encodingName, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - TECInternetNameUsageMask, - CFStringRef, - SInt32, - ) ->() -external int TECGetTextEncodingFromInternetNameOrMIB( - ffi.Pointer textEncodingPtr, - int usage, - CFStringRef encodingName, - int mibEnum, -); - -@ffi.Native)>() -external int TECGetTextEncodingInternetName( - int textEncoding, - ffi.Pointer encodingName, -); - -@ffi.Native< - OSStatus Function( - RegionCode, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ) ->() -external int TECGetWebTextEncodings( - int locale, - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, -); - -@ffi.Native() -external int TECSetBasicOptions( - TECObjectRef encodingConverter, - int controlFlags, -); - -@ffi.Native< - OSStatus Function( - TECSnifferObjectRef, - ConstTextPtr, - ByteCount, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ItemCount, - ) ->() -external int TECSniffTextEncoding( - TECSnifferObjectRef encodingSniffer, - ConstTextPtr inputBuffer, - int inputBufferLength, - ffi.Pointer testEncodings, - int numTextEncodings, - ffi.Pointer numErrsArray, - int maxErrs, - ffi.Pointer numFeaturesArray, - int maxFeatures, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int TaskLevel(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external Handle TempNewHandle(int logicalSize, ffi.Pointer resultCode); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int TestAndClear(int bit, ffi.Pointer address); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int TestAndSet(int bit, ffi.Pointer address); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native< - OSErr Function( - SpeechChannel, - ffi.Pointer, - ffi.UnsignedLong, - Handle, - ffi.Pointer, - ) ->() -external int TextToPhonemes( - SpeechChannel chan, - ffi.Pointer textBuf, - int textBytes, - Handle phonemeBuf, - ffi.Pointer phonemeBytes, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ThreadBeginCritical(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int ThreadCurrentStackSpace( - int thread, - ffi.Pointer freeStack, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int ThreadEndCritical(); - -@Deprecated('Deprecated') -@ffi.Native() -external int TickCount(); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ProcessApplicationTransformState, - ) ->() -external int TransformProcessType( - ffi.Pointer psn, - int transformState, -); - -@ffi.Native)>() -external int TranslationCopyDestinationType( - TranslationRef inTranslation, - ffi.Pointer outDestinationType, -); - -@ffi.Native)>() -external int TranslationCopySourceType( - TranslationRef inTranslation, - ffi.Pointer outSourceType, -); - -@ffi.Native< - OSStatus Function( - CFStringRef, - CFStringRef, - TranslationFlags, - ffi.Pointer, - ) ->() -external int TranslationCreate( - CFStringRef inSourceType, - CFStringRef inDestinationType, - int inTranslationFlags, - ffi.Pointer outTranslation, -); - -@ffi.Native< - OSStatus Function( - CFArrayRef, - TranslationFlags, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int TranslationCreateWithSourceArray( - CFArrayRef inSourceTypes, - int inTranslationFlags, - ffi.Pointer outDestinationTypes, - ffi.Pointer outTranslations, -); - -@ffi.Native)>() -external int TranslationGetTranslationFlags( - TranslationRef inTranslation, - ffi.Pointer outTranslationFlags, -); - -@ffi.Native() -external int TranslationGetTypeID(); - -@ffi.Native< - OSStatus Function(TranslationRef, CFDataRef, ffi.Pointer) ->() -external int TranslationPerformForData( - TranslationRef inTranslation, - CFDataRef inSourceData, - ffi.Pointer outDestinationData, -); - -@ffi.Native< - OSStatus Function( - TranslationRef, - ffi.Pointer, - ffi.Pointer, - CFStringRef, - ffi.Pointer, - ) ->() -external int TranslationPerformForFile( - TranslationRef inTranslation, - ffi.Pointer inSourceFile, - ffi.Pointer inDestinationDirectory, - CFStringRef inDestinationName, - ffi.Pointer outTranslatedFile, -); - -@ffi.Native< - OSStatus Function(TranslationRef, CFURLRef, CFURLRef, ffi.Pointer) ->() -external int TranslationPerformForURL( - TranslationRef inTranslation, - CFURLRef inSourceURL, - CFURLRef inDestinationURL, - ffi.Pointer outTranslatedURL, -); - -@ffi.Native< - OSStatus Function( - ConstTextToUnicodeInfo, - ByteCount, - ConstLogicalAddress, - ByteCount, - ffi.Pointer, - ) ->() -external int TruncateForTextToUnicode( - ConstTextToUnicodeInfo iTextToUnicodeInfo, - int iSourceLen, - ConstLogicalAddress iSourceStr, - int iMaxLen, - ffi.Pointer oTruncatedLen, -); - -@ffi.Native< - OSStatus Function( - ConstUnicodeToTextInfo, - ByteCount, - ffi.Pointer, - OptionBits, - ByteCount, - ffi.Pointer, - ) ->() -external int TruncateForUnicodeToText( - ConstUnicodeToTextInfo iUnicodeToTextInfo, - int iSourceLen, - ffi.Pointer iSourceStr, - int iControlFlags, - int iMaxLen, - ffi.Pointer oTruncatedLen, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int U64Compare(int left, int right); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - UAZoomChangeFocusType, - ) ->() -external int UAZoomChangeFocus( - ffi.Pointer inRect, - ffi.Pointer inHighlightRect, - int inType, -); - -@ffi.Native() -external int UAZoomEnabled(); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ItemCount, - ffi.Pointer, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCCompareCollationKeys( - ffi.Pointer key1Ptr, - int key1Length, - ffi.Pointer key2Ptr, - int key2Length, - ffi.Pointer equivalent, - ffi.Pointer order, -); - -@ffi.Native< - OSStatus Function( - CollatorRef, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCCompareText( - CollatorRef collatorRef, - ffi.Pointer text1Ptr, - int text1Length, - ffi.Pointer text2Ptr, - int text2Length, - ffi.Pointer equivalent, - ffi.Pointer order, -); - -@ffi.Native< - OSStatus Function( - UCCollateOptions, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCCompareTextDefault( - int options, - ffi.Pointer text1Ptr, - int text1Length, - ffi.Pointer text2Ptr, - int text2Length, - ffi.Pointer equivalent, - ffi.Pointer order, -); - -@ffi.Native< - OSStatus Function( - UCCollateOptions, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCCompareTextNoLocale( - int options, - ffi.Pointer text1Ptr, - int text1Length, - ffi.Pointer text2Ptr, - int text2Length, - ffi.Pointer equivalent, - ffi.Pointer order, -); - -@ffi.Native)>() -external int UCConvertCFAbsoluteTimeToLongDateTime( - double iCFTime, - ffi.Pointer oLongDate, -); - -@ffi.Native)>() -external int UCConvertCFAbsoluteTimeToSeconds( - double iCFTime, - ffi.Pointer oSeconds, -); - -@ffi.Native)>() -external int UCConvertCFAbsoluteTimeToUTCDateTime( - double iCFTime, - ffi.Pointer oUTCDate, -); - -@ffi.Native)>() -external int UCConvertLongDateTimeToCFAbsoluteTime( - int iLongTime, - ffi.Pointer oCFTime, -); - -@ffi.Native)>() -external int UCConvertSecondsToCFAbsoluteTime( - int iSeconds, - ffi.Pointer oCFTime, -); - -@ffi.Native< - OSStatus Function(ffi.Pointer, ffi.Pointer) ->() -external int UCConvertUTCDateTimeToCFAbsoluteTime( - ffi.Pointer iUTCDate, - ffi.Pointer oCFTime, -); - -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - UCCollateOptions, - ffi.Pointer, - ) ->() -external int UCCreateCollator( - LocaleRef locale, - int opVariant, - int options, - ffi.Pointer collatorRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - UCTextBreakType, - ffi.Pointer, - ) ->() -external int UCCreateTextBreakLocator( - LocaleRef locale, - int opVariant, - int breakTypes, - ffi.Pointer breakRef, -); - -@ffi.Native)>() -external int UCDisposeCollator(ffi.Pointer collatorRef); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int UCDisposeTextBreakLocator( - ffi.Pointer breakRef, -); - -@Deprecated('Deprecated') -@ffi.Native< - OSStatus Function( - TextBreakLocatorRef, - UCTextBreakType, - UCTextBreakOptions, - ffi.Pointer, - UniCharCount, - UniCharArrayOffset, - ffi.Pointer, - ) ->() -external int UCFindTextBreak( - TextBreakLocatorRef breakRef, - int breakType, - int options, - ffi.Pointer textPtr, - int textLength, - int startOffset, - ffi.Pointer breakOffset, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - UniCharCount, - UCCharPropertyType, - ffi.Pointer, - ) ->() -external int UCGetCharProperty( - ffi.Pointer charPtr, - int textLength, - int propType, - ffi.Pointer propValue, -); - -@ffi.Native< - OSStatus Function( - CollatorRef, - ffi.Pointer, - UniCharCount, - ItemCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCGetCollationKey( - CollatorRef collatorRef, - ffi.Pointer textPtr, - int textLength, - int maxKeySize, - ffi.Pointer actualKeySize, - ffi.Pointer collationKey, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - UInt16, - UInt16, - UInt32, - UInt32, - OptionBits, - ffi.Pointer, - UniCharCount, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int UCKeyTranslate( - ffi.Pointer keyLayoutPtr, - int virtualKeyCode, - int keyAction, - int modifierKeyState, - int keyboardType, - int keyTranslateOptions, - ffi.Pointer deadKeyState, - int maxStringLength, - ffi.Pointer actualStringLength, - ffi.Pointer unicodeString, -); - -@ffi.Native< - OSStatus Function( - UCTypeSelectRef, - CFStringRef, - ffi.Double, - ffi.Pointer, - ) ->() -external int UCTypeSelectAddKeyToSelector( - UCTypeSelectRef inRef, - CFStringRef inText, - double inEventTime, - ffi.Pointer updateFlag, -); - -@ffi.Native< - OSStatus Function( - UCTypeSelectRef, - CFStringRef, - ffi.Pointer, - ) ->() -external int UCTypeSelectCompare( - UCTypeSelectRef ref, - CFStringRef inText, - ffi.Pointer result, -); - -@ffi.Native< - OSStatus Function( - LocaleRef, - LocaleOperationVariant, - UCCollateOptions, - ffi.Pointer, - ) ->() -external int UCTypeSelectCreateSelector( - LocaleRef locale, - int opVariant, - int options, - ffi.Pointer newSelector, -); - -@ffi.Native< - OSStatus Function( - UCTypeSelectRef, - UInt32, - ffi.Pointer, - ffi.Pointer, - IndexToUCStringUPP, - ffi.Pointer, - ) ->() -external int UCTypeSelectFindItem( - UCTypeSelectRef ref, - int listSize, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - IndexToUCStringUPP userUPP, - ffi.Pointer closestItem, -); - -@ffi.Native() -external int UCTypeSelectFlushSelectorData(UCTypeSelectRef ref); - -@ffi.Native)>() -external int UCTypeSelectReleaseSelector(ffi.Pointer ref); - -@ffi.Native< - OSStatus Function( - UCTypeSelectRef, - CFStringRef, - UCTSWalkDirection, - UInt32, - ffi.Pointer, - ffi.Pointer, - IndexToUCStringUPP, - ffi.Pointer, - ) ->() -external int UCTypeSelectWalkList( - UCTypeSelectRef ref, - CFStringRef currSelect, - int direction, - int listSize, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - IndexToUCStringUPP userUPP, - ffi.Pointer closestItem, -); - -@ffi.Native() -external int UCTypeSelectWouldResetBuffer( - UCTypeSelectRef inRef, - CFStringRef inText, - double inEventTime, -); - -@Deprecated('HFS type codes are obsolete.') -@ffi.Native() -external CFStringRef UTCreateStringForOSType(int inOSType); - -@Deprecated('HFS type codes are obsolete.') -@ffi.Native() -external int UTGetOSTypeFromString(CFStringRef inString); - -@Deprecated('Use -[UTType conformsToType:] instead.') -@ffi.Native() -external int UTTypeConformsTo(CFStringRef inUTI, CFStringRef inConformsToUTI); - -@Deprecated('Use the UTType class instead.') -@ffi.Native() -external CFArrayRef UTTypeCopyAllTagsWithClass( - CFStringRef inUTI, - CFStringRef inTagClass, -); - -@Deprecated('Use the UTType class instead.') -@ffi.Native() -external CFDictionaryRef UTTypeCopyDeclaration(CFStringRef inUTI); - -@Deprecated('Deprecated') -@ffi.Native() -external CFURLRef UTTypeCopyDeclaringBundleURL(CFStringRef inUTI); - -@Deprecated('Use UTType.localizedDescription instead.') -@ffi.Native() -external CFStringRef UTTypeCopyDescription(CFStringRef inUTI); - -@Deprecated('Use the UTType class instead.') -@ffi.Native() -external CFStringRef UTTypeCopyPreferredTagWithClass( - CFStringRef inUTI, - CFStringRef inTagClass, -); - -@Deprecated('Use the UTType class instead.') -@ffi.Native() -external CFArrayRef UTTypeCreateAllIdentifiersForTag( - CFStringRef inTagClass, - CFStringRef inTag, - CFStringRef inConformingToUTI, -); - -@Deprecated('Use the UTType class instead.') -@ffi.Native() -external CFStringRef UTTypeCreatePreferredIdentifierForTag( - CFStringRef inTagClass, - CFStringRef inTag, - CFStringRef inConformingToUTI, -); - -@Deprecated('Use -[UTType isEqual:] instead.') -@ffi.Native() -external int UTTypeEqual(CFStringRef inUTI1, CFStringRef inUTI2); - -@Deprecated('Use UTType.declared instead.') -@ffi.Native() -external int UTTypeIsDeclared(CFStringRef inUTI); - -@Deprecated('Use UTType.dynamic instead.') -@ffi.Native() -external int UTTypeIsDynamic(CFStringRef inUTI); - -@ffi.Array.multi([16]) -@ffi.Native>() -external final ffi.Pointer UUID_NULL; - -@Deprecated('Deprecated') -@ffi.Native() -external int UncaptureComponent(Component aComponent); - -@Deprecated('Deprecated') -@ffi.Native< - OSErr Function(Collection, CollectionFlattenUPP, ffi.Pointer) ->() -external int UnflattenCollection( - Collection c, - CollectionFlattenUPP flattenProc, - ffi.Pointer refCon, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int UnflattenCollectionFromHdl( - Collection aCollection, - Handle flattened, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int Unique1ID(int theType); - -@Deprecated('Deprecated') -@ffi.Native() -external int UniqueID(int theType); - -@Deprecated('Deprecated') -@ffi.Native() -external int UnregisterComponent(Component aComponent); - -@Deprecated('You do not need to unregister icons.') -@ffi.Native() -external int UnregisterIconRef(int creator, int iconType); - -@Deprecated('Deprecated') -@ffi.Native< - UnsignedFixed Function(UnsignedFixed, UnsignedFixed, UnsignedFixed) ->() -external int UnsignedFixedMulDiv(int value, int multiplier, int divisor); - -@Deprecated('Deprecated') -@ffi.Native() -external AbsoluteTime UpTime(); - -@Deprecated( - 'This function is no longer supported. Use NSWorkspace and NSImage to get icons.', -) -@ffi.Native() -external int UpdateIconRef(IconRef theIconRef); - -@Deprecated('Deprecated') -@ffi.Native() -external void UpdateResFile(int refNum); - -@Deprecated('No longer supported') -@ffi.Native() -external int UpdateSystemActivity(int activity); - -@ffi.Native< - OSStatus Function( - ScriptCode, - LangCode, - RegionCode, - ConstStr255Param, - ffi.Pointer, - ) ->() -external int UpgradeScriptInfoToTextEncoding( - int iTextScriptID, - int iTextLanguageID, - int iRegionID, - ConstStr255Param iTextFontname, - ffi.Pointer oEncoding, -); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int UseDictionary(SpeechChannel chan, Handle dictionary); - -@Deprecated('Deprecated') -@ffi.Native() -external void UseResFile(int refNum); - -@Deprecated('Use AVSpeechSynthesizer in AVFoundation framework') -@ffi.Native() -external int UseSpeechDictionary( - SpeechChannel chan, - CFDictionaryRef speechDictionary, -); - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'WSGetCFTypeIDFromWSTypeID', -) -external int _WSGetCFTypeIDFromWSTypeID(int typeID); - -DartCFTypeID WSGetCFTypeIDFromWSTypeID(WSTypeID typeID) { - return _WSGetCFTypeIDFromWSTypeID(typeID.value); -} - -@Deprecated('No longer supported') -@ffi.Native( - symbol: 'WSGetWSTypeIDFromCFType', -) -external int _WSGetWSTypeIDFromCFType(CFTypeRef ref); - -WSTypeID WSGetWSTypeIDFromCFType(CFTypeRef ref) { - return WSTypeID.fromValue(_WSGetWSTypeIDFromCFType(ref)); -} - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - WSMethodInvocationRef, - CFStringRef, - CFStringRef, - WSMethodInvocationDeserializationProcPtr, - ffi.Pointer, - ) ->() -external void WSMethodInvocationAddDeserializationOverride( - WSMethodInvocationRef invocation, - CFStringRef typeNamespace, - CFStringRef typeName, - WSMethodInvocationDeserializationProcPtr deserializationProc, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - WSMethodInvocationRef, - CFTypeID, - WSMethodInvocationSerializationProcPtr, - ffi.Pointer, - ) ->() -external void WSMethodInvocationAddSerializationOverride( - WSMethodInvocationRef invocation, - int objType, - WSMethodInvocationSerializationProcPtr serializationProc, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDictionaryRef Function(WSMethodInvocationRef, ffi.Pointer) ->() -external CFDictionaryRef WSMethodInvocationCopyParameters( - WSMethodInvocationRef invocation, - ffi.Pointer parameterOrder, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFTypeRef WSMethodInvocationCopyProperty( - WSMethodInvocationRef invocation, - CFStringRef propertyName, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFDataRef WSMethodInvocationCopySerialization( - WSMethodInvocationRef invocation, -); - -@Deprecated('No longer supported') -@ffi.Native< - WSMethodInvocationRef Function(CFURLRef, CFStringRef, CFStringRef) ->() -external WSMethodInvocationRef WSMethodInvocationCreate( - CFURLRef url, - CFStringRef methodName, - CFStringRef protocol, -); - -@Deprecated('No longer supported') -@ffi.Native() -external WSMethodInvocationRef WSMethodInvocationCreateFromSerialization( - CFDataRef contract, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int WSMethodInvocationGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native() -external CFDictionaryRef WSMethodInvocationInvoke( - WSMethodInvocationRef invocation, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(WSMethodInvocationRef, CFRunLoopRef, CFStringRef) ->() -external void WSMethodInvocationScheduleWithRunLoop( - WSMethodInvocationRef invocation, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - WSMethodInvocationRef, - WSMethodInvocationCallBackProcPtr, - ffi.Pointer, - ) ->() -external void WSMethodInvocationSetCallBack( - WSMethodInvocationRef invocation, - WSMethodInvocationCallBackProcPtr clientCB, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(WSMethodInvocationRef, CFDictionaryRef, CFArrayRef) ->() -external void WSMethodInvocationSetParameters( - WSMethodInvocationRef invocation, - CFDictionaryRef parameters, - CFArrayRef parameterOrder, -); - -@Deprecated('No longer supported') -@ffi.Native() -external void WSMethodInvocationSetProperty( - WSMethodInvocationRef invocation, - CFStringRef propertyName, - CFTypeRef propertyValue, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function(WSMethodInvocationRef, CFRunLoopRef, CFStringRef) ->() -external void WSMethodInvocationUnscheduleFromRunLoop( - WSMethodInvocationRef invocation, - CFRunLoopRef runLoop, - CFStringRef runLoopMode, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int WSMethodResultIsFault(CFDictionaryRef methodResult); - -@Deprecated('No longer supported') -@ffi.Native< - CFDataRef Function(WSProtocolHandlerRef, CFDictionaryRef, CFDictionaryRef) ->() -external CFDataRef WSProtocolHandlerCopyFaultDocument( - WSProtocolHandlerRef ref, - CFDictionaryRef methodContext, - CFDictionaryRef faultDict, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFTypeRef WSProtocolHandlerCopyProperty( - WSProtocolHandlerRef ref, - CFStringRef propertyName, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDictionaryRef Function(WSProtocolHandlerRef, CFStringRef, CFDataRef) ->() -external CFDictionaryRef WSProtocolHandlerCopyReplyDictionary( - WSProtocolHandlerRef ref, - CFStringRef methodName, - CFDataRef data, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDataRef Function(WSProtocolHandlerRef, CFDictionaryRef, CFTypeRef) ->() -external CFDataRef WSProtocolHandlerCopyReplyDocument( - WSProtocolHandlerRef ref, - CFDictionaryRef methodContext, - CFTypeRef resultValue, -); - -@Deprecated('No longer supported') -@ffi.Native() -external CFDictionaryRef WSProtocolHandlerCopyRequestDictionary( - WSProtocolHandlerRef ref, - CFDataRef data, -); - -@Deprecated('No longer supported') -@ffi.Native< - CFDataRef Function( - WSProtocolHandlerRef, - CFStringRef, - CFDictionaryRef, - CFArrayRef, - CFDictionaryRef, - ) ->() -external CFDataRef WSProtocolHandlerCopyRequestDocument( - WSProtocolHandlerRef ref, - CFStringRef methodName, - CFDictionaryRef methodParams, - CFArrayRef methodParamOrder, - CFDictionaryRef methodExtras, -); - -@Deprecated('No longer supported') -@ffi.Native() -external WSProtocolHandlerRef WSProtocolHandlerCreate( - CFAllocatorRef allocator, - CFStringRef protocol, -); - -@Deprecated('No longer supported') -@ffi.Native() -external int WSProtocolHandlerGetTypeID(); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - WSProtocolHandlerRef, - CFStringRef, - CFStringRef, - WSProtocolHandlerDeserializationProcPtr, - ffi.Pointer, - ) ->() -external void WSProtocolHandlerSetDeserializationOverride( - WSProtocolHandlerRef protocol, - CFStringRef typeNamespace, - CFStringRef typeName, - WSProtocolHandlerDeserializationProcPtr deserializationProc, - ffi.Pointer context, -); - -@Deprecated('No longer supported') -@ffi.Native() -external void WSProtocolHandlerSetProperty( - WSProtocolHandlerRef ref, - CFStringRef propertyName, - CFTypeRef propertyValue, -); - -@Deprecated('No longer supported') -@ffi.Native< - ffi.Void Function( - WSProtocolHandlerRef, - CFTypeID, - WSProtocolHandlerSerializationProcPtr, - ffi.Pointer, - ) ->() -external void WSProtocolHandlerSetSerializationOverride( - WSProtocolHandlerRef protocol, - int objType, - WSProtocolHandlerSerializationProcPtr serializationProc, - ffi.Pointer context, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int WakeUpProcess(ffi.Pointer PSN); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() -external ffi.Pointer WideAdd( - ffi.Pointer target, - ffi.Pointer source, -); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer, SInt32)>() -external ffi.Pointer WideBitShift(ffi.Pointer target, int shift); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Pointer)>() -external int WideCompare(ffi.Pointer target, ffi.Pointer source); - -@Deprecated('Deprecated') -@ffi.Native, SInt32, ffi.Pointer)>() -external int WideDivide( - ffi.Pointer dividend, - int divisor, - ffi.Pointer remainder$1, -); - -@Deprecated('Deprecated') -@ffi.Native Function(SInt32, SInt32, ffi.Pointer)>() -external ffi.Pointer WideMultiply( - int multiplicand, - int multiplier, - ffi.Pointer target, -); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer WideNegate(ffi.Pointer target); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer, SInt32)>() -external ffi.Pointer WideShift(ffi.Pointer target, int shift); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int WideSquareRoot(ffi.Pointer source); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() -external ffi.Pointer WideSubtract( - ffi.Pointer target, - ffi.Pointer source, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, SInt32, ffi.Pointer) ->() -external ffi.Pointer WideWideDivide( - ffi.Pointer dividend, - int divisor, - ffi.Pointer remainder$1, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(Handle, ffi.Long, ffi.Pointer, ffi.Long) ->() -external void WritePartialResource( - Handle theResource, - int offset, - ffi.Pointer buffer, - int count, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void WriteResource(Handle theResource); - -@Deprecated('Deprecated') -@ffi.Native() -external int X2Fix(double x); - -@Deprecated('Deprecated') -@ffi.Native() -external int X2Frac(double x); - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_ALLOW_BATTERY; - -@ffi.Native(symbol: 'XPC_ACTIVITY_CHECK_IN') -external xpc_object_t _XPC_ACTIVITY_CHECK_IN; - -Dartxpc_object_t get XPC_ACTIVITY_CHECK_IN => objc.NSObject.fromPointer( - _XPC_ACTIVITY_CHECK_IN, - retain: true, - release: true, -); - -set XPC_ACTIVITY_CHECK_IN(Dartxpc_object_t value) { - objc.NSObject.fromPointer( - _XPC_ACTIVITY_CHECK_IN, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - _XPC_ACTIVITY_CHECK_IN = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_DELAY; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_GRACE_PERIOD; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_INTERVAL; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_15_MIN; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_1_DAY; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_1_HOUR; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_1_MIN; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_30_MIN; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_4_HOURS; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_5_MIN; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_7_DAYS; - -@ffi.Native() -external final int XPC_ACTIVITY_INTERVAL_8_HOURS; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_PREVENT_DEVICE_SLEEP; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_PRIORITY; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_PRIORITY_MAINTENANCE; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_PRIORITY_UTILITY; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_REPEATING; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_REQUIRE_BATTERY_LEVEL; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_REQUIRE_HDD_SPINNING; - -@ffi.Native>() -external ffi.Pointer XPC_ACTIVITY_REQUIRE_SCREEN_SLEEP; - -@Deprecated('Deprecated') -@ffi.Native() -external int YieldToAnyThread(); - -@Deprecated('Deprecated') -@ffi.Native() -external int YieldToThread(int suggestedThread); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_1037nh9( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) ->() -external void _1uu024u_protocolTrampoline_10lndml( - ffi.Pointer target, - ffi.Pointer arg0, - bool arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_10vn635( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - ) ->() -external void _1uu024u_protocolTrampoline_15e9dqx( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_18v1jvf( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_19u921t( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - PMPrintSession Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external PMPrintSession _1uu024u_protocolTrampoline_1ch2rph( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSTextCheckingTypes, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_1chy5b9( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_1cn988u( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native< - PMPrintSettings Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external PMPrintSettings _1uu024u_protocolTrampoline_1cwrrqo( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _1uu024u_protocolTrampoline_1em3l8z( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) ->() -external NSRange _1uu024u_protocolTrampoline_1j6oadz( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - bool arg5, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->() -external void _1uu024u_protocolTrampoline_1j7coyk( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_1l4hxwm( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_1lx650f( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_1mbt9g9( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_1p0fswn( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - CGImageRef Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - CGFloat, - ffi.Pointer, - ffi.Pointer, - ) ->() -external CGImageRef _1uu024u_protocolTrampoline_1p89e63( - ffi.Pointer target, - ffi.Pointer arg0, - objc.CGSize arg1, - double arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - PMPageFormat Function(ffi.Pointer, ffi.Pointer) ->() -external PMPageFormat _1uu024u_protocolTrampoline_1pm5t72( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) ->() -external void _1uu024u_protocolTrampoline_1qf1qkl( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_1tz5yf( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_1yw2rcr( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _1uu024u_protocolTrampoline_2n06mv( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) ->() -external void _1uu024u_protocolTrampoline_34xzuf( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _1uu024u_protocolTrampoline_3su7tt( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - NSUInteger Function(ffi.Pointer, ffi.Pointer) ->() -external int _1uu024u_protocolTrampoline_5cb1bj( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_738w24( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) ->() -external void _1uu024u_protocolTrampoline_8acz2h( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_8jfq1p( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ) ->() -external void _1uu024u_protocolTrampoline_9crvvv( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_bklti2( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) ->() -external bool _1uu024u_protocolTrampoline_e3qsqz( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_fjrv01( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) ->() -external void _1uu024u_protocolTrampoline_h68abb( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, -); - -@ffi.Native< - PMPrinter Function(ffi.Pointer, ffi.Pointer) ->() -external PMPrinter _1uu024u_protocolTrampoline_h8xvuu( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_jk1ljc( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _1uu024u_protocolTrampoline_jk8du5( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external bool _1uu024u_protocolTrampoline_jp3gca( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer> arg1, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_jyim80( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_l2g8ke( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ) ->() -external void _1uu024u_protocolTrampoline_ly2579( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_m09tr7( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void _1uu024u_protocolTrampoline_ovsamd( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Short Function(ffi.Pointer, ffi.Pointer) ->() -external int _1uu024u_protocolTrampoline_p984hf( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_wpy7aa( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->() -external void _1uu024u_protocolTrampoline_wy9lus( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_xr62hr( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external NSRange _1uu024u_protocolTrampoline_xsqx6i( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _1uu024u_protocolTrampoline_xx612k( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _1uu024u_protocolTrampoline_zi5eed( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) ->() -external void _1uu024u_protocolTrampoline_zuf90e( - ffi.Pointer target, - ffi.Pointer arg0, - int arg1, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) ->() -external void _1uu024u_protocolTrampoline_zzthnb( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - bool arg2, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1037nh9( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_10lndml( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_10ssdng( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_115kkcp( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_11t2oft( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_132rcs6( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_15e9dqx( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_15f11yh( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_15ghdzk( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_16sve1d( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_18kzm6a( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_18qun1e( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_18v1jvf( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1a22wz( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1b3bb6a( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1cn988u( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1ctgxtl( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1dqvvol( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1j7coyk( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1kwz7d1( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1l4hxwm( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1lx650f( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1otpo83( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1pl9qdv( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1qf1qkl( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1rz4y3( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1s56lr9( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1tz5yf( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_1yrznn1( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_34xzuf( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_6enxqz( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_6jvo9y( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_8acz2h( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_8jfq1p( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_9crvvv( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_9fms3g( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_9o8504( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_b3tf6o( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_bklti2( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_du1izn( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_f167m6( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_fjrv01( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_gwxhxt( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_h68abb( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_hk7n97( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_jk1ljc( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_jyim80( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_k73ff5( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_l2g8ke( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_l3f29g( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_lmc3p5( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_ly2579( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_m09tr7( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_n8yd09( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_o762yo( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_og5b6y( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_ovsamd( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_pfv6jd( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_r8gdi7( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_rdj45r( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_tg5tbv( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_wy9lus( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_xtuoz7( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_xx612k( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_zuf90e( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapBlockingBlock_zzthnb( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1037nh9( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_10lndml( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_10ssdng( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_115kkcp( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_11t2oft( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_132rcs6( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_15e9dqx( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_15f11yh( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_15ghdzk( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_16sve1d( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_18kzm6a( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_18qun1e( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_18v1jvf( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1a22wz( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1b3bb6a( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1cn988u( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1ctgxtl( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1dqvvol( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1j7coyk( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1kwz7d1( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1l4hxwm( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1lx650f( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1otpo83( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1pl9qdv( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1qf1qkl( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1rz4y3( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1s56lr9( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1tz5yf( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_1yrznn1( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_34xzuf( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_6enxqz( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_6jvo9y( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_8acz2h( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_8jfq1p( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_9crvvv( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_9fms3g( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_9o8504( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_b3tf6o( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_bklti2( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_du1izn( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_f167m6( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_fjrv01( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_gwxhxt( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_h68abb( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_hk7n97( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_jk1ljc( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_jyim80( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_k73ff5( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_l2g8ke( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_l3f29g( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_lmc3p5( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_ly2579( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_m09tr7( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_n8yd09( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_o762yo( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_og5b6y( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_ovsamd( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_pfv6jd( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_r8gdi7( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_rdj45r( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_tg5tbv( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_wy9lus( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_xtuoz7( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_xx612k( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_zuf90e( - int port, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _1uu024u_wrapListenerBlock_zzthnb( - int port, - ffi.Pointer context, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer _Block_copy(ffi.Pointer aBlock); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external void _Block_object_assign( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native, ffi.Int)>() -external void _Block_object_dispose(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external void _Block_release(ffi.Pointer aBlock); - -@ffi.Native>() -external ffi.Pointer<_RuneLocale> _CurrentRuneLocale; - -@ffi.Native<_RuneLocale>() -external _RuneLocale _DefaultRuneLocale; - -@ffi.Native() -external void _Exit(int arg0); - -@ffi.Native() -external final fenv_t _FE_DFL_DISABLE_DENORMS_ENV; - -@ffi.Native() -external final fenv_t _FE_DFL_ENV; - -@Deprecated('No longer useful (always true)') -@ffi.Native() -external int _MPIsFullyInitialized(); - -@Deprecated('Use libDispatch') -@ffi.Native< - Boolean Function(ffi.Pointer, UInt32, UInt32, UInt32, UInt32) ->() -external int _MPLibraryIsCompatible( - ffi.Pointer versionCString, - int major, - int minor, - int release, - int revision, -); - -@Deprecated('No longer useful') -@ffi.Native< - ffi.Void Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _MPLibraryVersion( - ffi.Pointer> versionCString, - ffi.Pointer major, - ffi.Pointer minor, - ffi.Pointer release, - ffi.Pointer revision, -); - -@ffi.Array.multi([32]) -@ffi.Native>>() -external ffi.Array> _NSConcreteGlobalBlock; - -@ffi.Array.multi([32]) -@ffi.Native>>() -external ffi.Array> _NSConcreteStackBlock; - -@ffi.Native() -external CFRange __CFRangeMake(int loc, int len); - -@ffi.Native)>() -external CFStringRef __CFStringMakeConstantString(ffi.Pointer cStr); - -@ffi.Native() -external CFDictionaryRef __MDItemCopyAttributesEllipsis1(MDItemRef item); - -@ffi.Native() -external int ___runetype(int arg0); - -@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() -external int ___tolower(int arg0); - -@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() -external int ___toupper(int arg0); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external void __assert_rtn( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native() -external double __cospi(double arg0); - -@ffi.Native() -external double __cospif(double arg0); - -@ffi.Native, ffi.Int)>() -external int __darwin_check_fd_set_overflow( - int arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native Function()>() -external ffi.Pointer __error(); - -@ffi.Native() -external double __exp10(double arg0); - -@ffi.Native() -external double __exp10f(double arg0); - -@ffi.Native() -external int __fpclassifyd(double arg0); - -@ffi.Native() -external int __fpclassifyf(double arg0); - -@ffi.Native() -external int __maskrune(int arg0, int arg1); - -@ffi.Native() -external int __math_errhandling(); - -@ffi.Native() -external int __mb_cur_max; - -@ffi.Native<__double2 Function(ffi.Double)>() -external __double2 __sincos_stret(double arg0); - -@ffi.Native<__float2 Function(ffi.Float)>() -external __float2 __sincosf_stret(double arg0); - -@ffi.Native<__double2 Function(ffi.Double)>() -external __double2 __sincospi_stret(double arg0); - -@ffi.Native<__float2 Function(ffi.Float)>() -external __float2 __sincospif_stret(double arg0); - -@ffi.Native() -external double __sinpi(double arg0); - -@ffi.Native() -external double __sinpif(double arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Size, - ffi.Pointer, - ) ->() -external int __snprintf_chk( - ffi.Pointer arg0, - int __maxlen, - int arg2, - int arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Size, - ffi.Pointer, - ) ->() -external int __sprintf_chk( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native)>() -external int __srget(ffi.Pointer arg0); - -@ffi.Native>() -external ffi.Pointer __stderrp; - -@ffi.Native>() -external ffi.Pointer __stdinp; - -@ffi.Native>() -external ffi.Pointer __stdoutp; - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) ->() -external int __svfscanf( - ffi.Pointer arg0, - ffi.Pointer arg1, - va_list arg2, -); - -@ffi.Native)>() -external int __swbuf(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external double __tanpi(double arg0); - -@ffi.Native() -external double __tanpif(double arg0); - -@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() -external int __tolower(int arg0); - -@ffi.Native<__darwin_ct_rune_t Function(__darwin_ct_rune_t)>() -external int __toupper(int arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Size, - ffi.Pointer, - va_list, - ) ->() -external int __vsnprintf_chk( - ffi.Pointer arg0, - int __maxlen, - int arg2, - int arg3, - ffi.Pointer arg4, - va_list arg5, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Size, - ffi.Pointer, - va_list, - ) ->() -external int __vsprintf_chk( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - va_list arg4, -); - -@ffi.Native(symbol: '_dispatch_data_destructor_free') -external dispatch_block_t __dispatch_data_destructor_free; - -Dartdispatch_block_t get _dispatch_data_destructor_free => - ObjCBlock_ffiVoid.fromPointer( - __dispatch_data_destructor_free, - retain: true, - release: true, - ); - -set _dispatch_data_destructor_free(Dartdispatch_block_t value) { - ObjCBlock_ffiVoid.fromPointer( - __dispatch_data_destructor_free, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - __dispatch_data_destructor_free = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native(symbol: '_dispatch_data_destructor_munmap') -external dispatch_block_t __dispatch_data_destructor_munmap; - -Dartdispatch_block_t get _dispatch_data_destructor_munmap => - ObjCBlock_ffiVoid.fromPointer( - __dispatch_data_destructor_munmap, - retain: true, - release: true, - ); - -set _dispatch_data_destructor_munmap(Dartdispatch_block_t value) { - ObjCBlock_ffiVoid.fromPointer( - __dispatch_data_destructor_munmap, - retain: false, - release: true, - ).ref.release(); - final _$$ref = value.ref; - __dispatch_data_destructor_munmap = _$$ref.retainAndReturnPointer(); -} - -@ffi.Native() -external dispatch_data_s _dispatch_data_empty; - -@ffi.Native() -external dispatch_queue_s _dispatch_main_q; - -@ffi.Native() -external dispatch_queue_attr_s _dispatch_queue_attr_concurrent; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_data_add; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_data_or; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_data_replace; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_mach_recv; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_mach_send; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_memorypressure; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_proc; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_read; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_signal; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_timer; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_vnode; - -@ffi.Native() -external final dispatch_source_type_s _dispatch_source_type_write; - -@ffi.Native() -external void _exit(int arg0); - -@ffi.Native)>() -external int _host_page_size(int host, ffi.Pointer out_page_size); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_right_t, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_port_allocate_trap( - int target, - int right, - ffi.Pointer name, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_port_construct_trap( - int target, - ffi.Pointer options, - int context, - ffi.Pointer name, -); - -@ffi.Native() -external int _kernelrpc_mach_port_deallocate_trap(int target, int name); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_name_t, - mach_port_delta_t, - ffi.Uint64, - ) ->() -external int _kernelrpc_mach_port_destruct_trap( - int target, - int name, - int srdelta, - int guard, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) ->() -external int _kernelrpc_mach_port_extract_member_trap( - int target, - int name, - int pset, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_name_t, - mach_port_flavor_t, - mach_port_info_t, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_port_get_attributes_trap( - int target, - int name, - int flavor, - mach_port_info_t port_info_out, - ffi.Pointer port_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_name_t, - ffi.Uint64, - boolean_t, - ) ->() -external int _kernelrpc_mach_port_guard_trap( - int target, - int name, - int guard, - int strict, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) ->() -external int _kernelrpc_mach_port_insert_member_trap( - int target, - int name, - int pset, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_name_t, - mach_port_name_t, - mach_msg_type_name_t, - ) ->() -external int _kernelrpc_mach_port_insert_right_trap( - int target, - int name, - int poly, - int polyPoly, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_port_name_t, - mach_port_right_t, - mach_port_delta_t, - ) ->() -external int _kernelrpc_mach_port_mod_refs_trap( - int target, - int name, - int right, - int delta, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, mach_port_name_t, mach_port_name_t) ->() -external int _kernelrpc_mach_port_move_member_trap( - int target, - int member, - int after, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_msg_id_t, - mach_port_mscount_t, - mach_port_name_t, - mach_msg_type_name_t, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_port_request_notification_trap( - int task, - int name, - int msgid, - int sync$1, - int notify, - int notifyPoly, - ffi.Pointer previous, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_port_type_trap( - int task, - int name, - ffi.Pointer ptype, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, mach_port_name_t, ffi.Uint64) ->() -external int _kernelrpc_mach_port_unguard_trap(int target, int name, int guard); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Pointer, - mach_vm_size_t, - ffi.Int, - ) ->() -external int _kernelrpc_mach_vm_allocate_trap( - int target, - ffi.Pointer addr, - int size, - int flags, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, mach_vm_address_t, mach_vm_size_t) ->() -external int _kernelrpc_mach_vm_deallocate_trap( - int target, - int address, - int size, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Pointer, - mach_vm_size_t, - mach_vm_offset_t, - ffi.Int, - vm_prot_t, - ) ->() -external int _kernelrpc_mach_vm_map_trap( - int target, - ffi.Pointer address, - int size, - int mask, - int flags, - int cur_protection, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_vm_address_t, - mach_vm_size_t, - boolean_t, - vm_prot_t, - ) ->() -external int _kernelrpc_mach_vm_protect_trap( - int target, - int address, - int size, - int set_maximum, - int new_protection, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_vm_offset_t, - vm_purgable_t, - ffi.Pointer, - ) ->() -external int _kernelrpc_mach_vm_purgable_control_trap( - int target, - int address, - int control, - ffi.Pointer state, -); - -@ffi.Native, ffi.Int)>() -external void _longjmp(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int _setjmp(ffi.Pointer arg0); - -@ffi.Native<_xpc_bool_s>() -external final _xpc_bool_s _xpc_bool_false; - -@ffi.Native<_xpc_bool_s>() -external final _xpc_bool_s _xpc_bool_true; - -@ffi.Native<_xpc_dictionary_s>() -external final _xpc_dictionary_s _xpc_error_connection_interrupted; - -@ffi.Native<_xpc_dictionary_s>() -external final _xpc_dictionary_s _xpc_error_connection_invalid; - -@ffi.Native>() -external ffi.Pointer _xpc_error_key_description; - -@ffi.Native<_xpc_dictionary_s>() -external final _xpc_dictionary_s _xpc_error_peer_code_signing_requirement; - -@ffi.Native<_xpc_dictionary_s>() -external final _xpc_dictionary_s _xpc_error_termination_imminent; - -@ffi.Native>() -external ffi.Pointer _xpc_event_key_name; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_activity; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_array; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_bool; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_connection; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_data; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_date; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_dictionary; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_double; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_endpoint; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_error; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_fd; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_int64; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_null; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_rich_error; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_session; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_shmem; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_string; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_uint64; - -@ffi.Native<_xpc_type_s>() -external final _xpc_type_s _xpc_type_uuid; - -@ffi.Native)>() -external int a64l(ffi.Pointer arg0); - -@ffi.Native() -external void abort(); - -@ffi.Native() -external int abs(int arg0); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int accept( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native, ffi.Int)>() -external int access(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - uid_t, - ) ->() -external int accessx_np( - ffi.Pointer arg0, - int __sz, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native)>() -external int acct(ffi.Pointer arg0); - -@ffi.Native( - symbol: 'acl_add_flag_np', -) -external int _acl_add_flag_np(acl_flagset_t flagset_d, int flag); - -int acl_add_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { - return _acl_add_flag_np(flagset_d, flag.value); -} - -@ffi.Native( - symbol: 'acl_add_perm', -) -external int _acl_add_perm(acl_permset_t permset_d, int perm); - -int acl_add_perm(acl_permset_t permset_d, acl_perm_t perm) { - return _acl_add_perm(permset_d, perm.value); -} - -@ffi.Native)>() -external int acl_calc_mask(ffi.Pointer acl_p); - -@ffi.Native() -external int acl_clear_flags_np(acl_flagset_t flagset_d); - -@ffi.Native() -external int acl_clear_perms(acl_permset_t permset_d); - -@ffi.Native() -external int acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d); - -@ffi.Native, acl_t, ssize_t)>() -external int acl_copy_ext(ffi.Pointer buf_p, acl_t acl, int size); - -@ffi.Native, acl_t, ssize_t)>() -external int acl_copy_ext_native( - ffi.Pointer buf_p, - acl_t acl, - int size, -); - -@ffi.Native)>() -external acl_t acl_copy_int(ffi.Pointer buf_p); - -@ffi.Native)>() -external acl_t acl_copy_int_native(ffi.Pointer buf_p); - -@ffi.Native, ffi.Pointer)>() -external int acl_create_entry( - ffi.Pointer acl_p, - ffi.Pointer entry_p, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int acl_create_entry_np( - ffi.Pointer acl_p, - ffi.Pointer entry_p, - int entry_index, -); - -@ffi.Native)>() -external int acl_delete_def_file(ffi.Pointer path_p); - -@ffi.Native() -external int acl_delete_entry(acl_t acl, acl_entry_t entry_d); - -@ffi.Native( - symbol: 'acl_delete_flag_np', -) -external int _acl_delete_flag_np(acl_flagset_t flagset_d, int flag); - -int acl_delete_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { - return _acl_delete_flag_np(flagset_d, flag.value); -} - -@ffi.Native( - symbol: 'acl_delete_perm', -) -external int _acl_delete_perm(acl_permset_t permset_d, int perm); - -int acl_delete_perm(acl_permset_t permset_d, acl_perm_t perm) { - return _acl_delete_perm(permset_d, perm.value); -} - -@ffi.Native() -external acl_t acl_dup(acl_t acl); - -@ffi.Native)>() -external int acl_free(ffi.Pointer obj_p); - -@ffi.Native)>() -external acl_t acl_from_text(ffi.Pointer buf_p); - -@ffi.Native)>() -external int acl_get_entry( - acl_t acl, - int entry_id, - ffi.Pointer entry_p, -); - -@ffi.Native() -external acl_t acl_get_fd(int fd); - -@ffi.Native(symbol: 'acl_get_fd_np') -external acl_t _acl_get_fd_np(int fd, int type); - -acl_t acl_get_fd_np(int fd, acl_type_t type) { - return _acl_get_fd_np(fd, type.value); -} - -@ffi.Native, ffi.UnsignedInt)>( - symbol: 'acl_get_file', -) -external acl_t _acl_get_file(ffi.Pointer path_p, int type); - -acl_t acl_get_file(ffi.Pointer path_p, acl_type_t type) { - return _acl_get_file(path_p, type.value); -} - -@ffi.Native( - symbol: 'acl_get_flag_np', -) -external int _acl_get_flag_np(acl_flagset_t flagset_d, int flag); - -int acl_get_flag_np(acl_flagset_t flagset_d, acl_flag_t flag) { - return _acl_get_flag_np(flagset_d, flag.value); -} - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int acl_get_flagset_np( - ffi.Pointer obj_p, - ffi.Pointer flagset_p, -); - -@ffi.Native, ffi.UnsignedInt)>( - symbol: 'acl_get_link_np', -) -external acl_t _acl_get_link_np(ffi.Pointer path_p, int type); - -acl_t acl_get_link_np(ffi.Pointer path_p, acl_type_t type) { - return _acl_get_link_np(path_p, type.value); -} - -@ffi.Native( - symbol: 'acl_get_perm_np', -) -external int _acl_get_perm_np(acl_permset_t permset_d, int perm); - -int acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm) { - return _acl_get_perm_np(permset_d, perm.value); -} - -@ffi.Native)>() -external int acl_get_permset( - acl_entry_t entry_d, - ffi.Pointer permset_p, -); - -@ffi.Native)>() -external int acl_get_permset_mask_np( - acl_entry_t entry_d, - ffi.Pointer mask_p, -); - -@ffi.Native Function(acl_entry_t)>() -external ffi.Pointer acl_get_qualifier(acl_entry_t entry_d); - -@ffi.Native)>() -external int acl_get_tag_type( - acl_entry_t entry_d, - ffi.Pointer tag_type_p, -); - -@ffi.Native() -external acl_t acl_init(int count); - -@ffi.Native)>() -external int acl_maximal_permset_mask_np( - ffi.Pointer mask_p, -); - -@ffi.Native() -external int acl_set_fd(int fd, acl_t acl); - -@ffi.Native( - symbol: 'acl_set_fd_np', -) -external int _acl_set_fd_np(int fd, acl_t acl, int acl_type); - -int acl_set_fd_np(int fd, acl_t acl, acl_type_t acl_type) { - return _acl_set_fd_np(fd, acl, acl_type.value); -} - -@ffi.Native, ffi.UnsignedInt, acl_t)>( - symbol: 'acl_set_file', -) -external int _acl_set_file(ffi.Pointer path_p, int type, acl_t acl); - -int acl_set_file(ffi.Pointer path_p, acl_type_t type, acl_t acl) { - return _acl_set_file(path_p, type.value, acl); -} - -@ffi.Native, acl_flagset_t)>() -external int acl_set_flagset_np( - ffi.Pointer obj_p, - acl_flagset_t flagset_d, -); - -@ffi.Native, ffi.UnsignedInt, acl_t)>( - symbol: 'acl_set_link_np', -) -external int _acl_set_link_np( - ffi.Pointer path_p, - int type, - acl_t acl, -); - -int acl_set_link_np(ffi.Pointer path_p, acl_type_t type, acl_t acl) { - return _acl_set_link_np(path_p, type.value, acl); -} - -@ffi.Native() -external int acl_set_permset(acl_entry_t entry_d, acl_permset_t permset_d); - -@ffi.Native() -external int acl_set_permset_mask_np(acl_entry_t entry_d, int mask); - -@ffi.Native)>() -external int acl_set_qualifier( - acl_entry_t entry_d, - ffi.Pointer tag_qualifier_p, -); - -@ffi.Native( - symbol: 'acl_set_tag_type', -) -external int _acl_set_tag_type(acl_entry_t entry_d, int tag_type); - -int acl_set_tag_type(acl_entry_t entry_d, acl_tag_t tag_type) { - return _acl_set_tag_type(entry_d, tag_type.value); -} - -@ffi.Native() -external int acl_size(acl_t acl); - -@ffi.Native Function(acl_t, ffi.Pointer)>() -external ffi.Pointer acl_to_text( - acl_t acl, - ffi.Pointer len_p, -); - -@ffi.Native() -external int acl_valid(acl_t acl); - -@ffi.Native( - symbol: 'acl_valid_fd_np', -) -external int _acl_valid_fd_np(int fd, int type, acl_t acl); - -int acl_valid_fd_np(int fd, acl_type_t type, acl_t acl) { - return _acl_valid_fd_np(fd, type.value, acl); -} - -@ffi.Native, ffi.UnsignedInt, acl_t)>( - symbol: 'acl_valid_file_np', -) -external int _acl_valid_file_np( - ffi.Pointer path, - int type, - acl_t acl, -); - -int acl_valid_file_np(ffi.Pointer path, acl_type_t type, acl_t acl) { - return _acl_valid_file_np(path, type.value, acl); -} - -@ffi.Native, ffi.UnsignedInt, acl_t)>( - symbol: 'acl_valid_link_np', -) -external int _acl_valid_link_np( - ffi.Pointer path, - int type, - acl_t acl, -); - -int acl_valid_link_np(ffi.Pointer path, acl_type_t type, acl_t acl) { - return _acl_valid_link_np(path, type.value, acl); -} - -@ffi.Native() -external double acos(double arg0); - -@ffi.Native() -external double acosf(double arg0); - -@ffi.Native() -external double acosh(double arg0); - -@ffi.Native() -external double acoshf(double arg0); - -@ffi.Native< - kern_return_t Function( - thread_read_t, - ffi.Int, - thread_state_t, - ffi.Pointer, - ) ->() -external int act_get_state( - int target_act, - int flavor, - thread_state_t old_state, - ffi.Pointer old_stateCnt, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - ffi.Int, - thread_state_t, - mach_msg_type_number_t, - ) ->() -external int act_set_state( - int target_act, - int flavor, - thread_state_t new_state, - int new_stateCnt, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.UnsignedLong, - ffi.UnsignedInt, - ) ->() -external int add_profil( - ffi.Pointer arg0, - int __bufsiz, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer addr2ascii( - int arg0, - ffi.Pointer arg1, - int __size, - ffi.Pointer arg3, -); - -@ffi.Native, ffi.Pointer)>() -external int adjtime(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external int alarm(int arg0); - -@ffi.Native Function(ffi.Size, ffi.Size)>() -external ffi.Pointer aligned_alloc(int __alignment, int __size); - -@ffi.Native Function(ffi.Size)>() -external ffi.Pointer alloca(int __size); - -@Deprecated('Deprecated') -@ffi.Native() -external double annuity(double rate, double periods); - -@ffi.Native() -external int arc4random(); - -@Deprecated('use arc4random_stir') -@ffi.Native, ffi.Int)>() -external void arc4random_addrandom( - ffi.Pointer arg0, - int __datlen, -); - -@ffi.Native, ffi.Size)>() -external void arc4random_buf(ffi.Pointer __buf, int __nbytes); - -@ffi.Native() -external void arc4random_stir(); - -@ffi.Native() -external int arc4random_uniform(int __upper_bound); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int ascii2addr( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer asctime(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer asctime_r( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external double asin(double arg0); - -@ffi.Native() -external double asinf(double arg0); - -@ffi.Native() -external double asinh(double arg0); - -@ffi.Native() -external double asinhf(double arg0); - -@ffi.Native< - ffi.Int Function(ffi.Pointer>, ffi.Pointer) ->() -external int asprintf( - ffi.Pointer> arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer>) ->() -external int at_quick_exit( - ffi.Pointer> arg0, -); - -@ffi.Native() -external double atan(double arg0); - -@ffi.Native() -external double atan2(double arg0, double arg1); - -@ffi.Native() -external double atan2f(double arg0, double arg1); - -@ffi.Native() -external double atanf(double arg0); - -@ffi.Native() -external double atanh(double arg0); - -@ffi.Native() -external double atanhf(double arg0); - -@ffi.Native< - ffi.Int Function(ffi.Pointer>) ->() -external int atexit(ffi.Pointer> arg0); - -@ffi.Native)>( - symbol: 'atexit_b', -) -external int _atexit_b(ffi.Pointer arg0); - -int atexit_b(objc.ObjCBlock arg0) { - final _$$ref = arg0.ref; - return _atexit_b(_$$ref.pointer); -} - -@ffi.Native)>() -external double atof(ffi.Pointer arg0); - -@ffi.Native)>() -external int atoi(ffi.Pointer arg0); - -@ffi.Native)>() -external int atol(ffi.Pointer arg0); - -@ffi.Native)>() -external int atoll(ffi.Pointer arg0); - -@Deprecated('audit is deprecated') -@ffi.Native, ffi.Int)>() -external int audit(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int audit_session_join(int port); - -@ffi.Native)>() -external int audit_session_port( - int asid, - ffi.Pointer portname, -); - -@ffi.Native() -external int audit_session_self(); - -@Deprecated('audit is deprecated') -@ffi.Native)>() -external int auditctl(ffi.Pointer arg0); - -@Deprecated('audit is deprecated') -@ffi.Native, ffi.Int)>() -external int auditon(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int bcmp( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external void bcopy( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, -); - -@ffi.Native, socklen_t)>() -external int bind(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native)>() -external int bindresvport(int arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external int bindresvport_sa(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external int bootstrap_port; - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer brk(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer> Function( - ffi.Int, - ffi.Pointer>, - ) ->() -external ffi.Pointer> bsd_signal( - int arg0, - ffi.Pointer> arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >, - ) ->() -external ffi.Pointer bsearch( - ffi.Pointer __key, - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - __compar, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'bsearch_b') -external ffi.Pointer _bsearch_b( - ffi.Pointer __key, - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer __compar, -); - -ffi.Pointer bsearch_b( - ffi.Pointer __key, - ffi.Pointer __base, - int __nel, - int __width, - objc.ObjCBlock, ffi.Pointer)> - __compar, -) { - final _$$ref = __compar.ref; - return _bsearch_b(__key, __base, __nel, __width, _$$ref.pointer); -} - -@ffi.Native, ffi.Size)>() -external void bzero(ffi.Pointer arg0, int __n); - -@ffi.Native Function(ffi.Size, ffi.Size)>() -external ffi.Pointer calloc(int __count, int __size); - -@ffi.Native() -external double cbrt(double arg0); - -@ffi.Native() -external double cbrtf(double arg0); - -@ffi.Native() -external double ceil(double arg0); - -@ffi.Native() -external double ceilf(double arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer cgetcap( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native() -external int cgetclose(); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int cgetent( - ffi.Pointer> arg0, - ffi.Pointer> arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int cgetfirst( - ffi.Pointer> arg0, - ffi.Pointer> arg1, -); - -@ffi.Native, ffi.Pointer)>() -external int cgetmatch(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int cgetnext( - ffi.Pointer> arg0, - ffi.Pointer> arg1, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cgetnum( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native)>() -external int cgetset(ffi.Pointer arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int cgetstr( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int cgetustr( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, -); - -@ffi.Native)>() -external int chdir(ffi.Pointer arg0); - -@ffi.Native, uid_t, gid_t)>() -external int chown(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native)>() -external int chroot(ffi.Pointer arg0); - -@ffi.Native)>() -external void clearerr(ffi.Pointer arg0); - -@ffi.Native() -external int clock(); - -@ffi.Native)>() -external int clock_get_res(int arg0, ffi.Pointer arg1); - -@ffi.Native)>( - symbol: 'clock_getres', -) -external int _clock_getres(int __clock_id, ffi.Pointer __res); - -int clock_getres(clockid_t __clock_id, ffi.Pointer __res) { - return _clock_getres(__clock_id.value, __res); -} - -@ffi.Native)>( - symbol: 'clock_gettime', -) -external int _clock_gettime(int __clock_id, ffi.Pointer __tp); - -int clock_gettime(clockid_t __clock_id, ffi.Pointer __tp) { - return _clock_gettime(__clock_id.value, __tp); -} - -@ffi.Native<__uint64_t Function(ffi.UnsignedInt)>( - symbol: 'clock_gettime_nsec_np', -) -external int _clock_gettime_nsec_np(int __clock_id); - -Dart__uint64_t clock_gettime_nsec_np(clockid_t __clock_id) { - return _clock_gettime_nsec_np(__clock_id.value); -} - -@ffi.Native< - kern_return_t Function( - clock_ctrl_t, - clock_flavor_t, - clock_attr_t, - mach_msg_type_number_t, - ) ->() -external int clock_set_attributes( - int clock_ctrl, - int flavor, - clock_attr_t clock_attr, - int clock_attrCnt, -); - -@ffi.Native() -external int clock_set_res(int arg0, int arg1); - -@ffi.Native() -external int clock_set_time(int clock_ctrl, mach_timespec_t new_time); - -@ffi.Native)>( - symbol: 'clock_settime', -) -external int _clock_settime(int __clock_id, ffi.Pointer __tp); - -int clock_settime(clockid_t __clock_id, ffi.Pointer __tp) { - return _clock_settime(__clock_id.value, __tp); -} - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Int, - mach_timespec_t, - ffi.Pointer, - ) ->() -external int clock_sleep( - int arg0, - int arg1, - mach_timespec_t arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - sleep_type_t, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->() -external int clock_sleep_trap( - int clock_name, - int sleep_type, - int sleep_sec, - int sleep_nsec, - ffi.Pointer wakeup_time, -); - -@ffi.Native() -external int close(int arg0); - -@Deprecated('Deprecated') -@ffi.Native() -external double compound(double rate, double periods); - -@ffi.Native, ffi.Size)>() -external int confstr(int arg0, ffi.Pointer arg1, int __len); - -@ffi.Native, socklen_t)>() -external int connect(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - sae_associd_t, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int connectx( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ffi.Pointer arg4, - int arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, -); - -@ffi.Native() -external double copysign(double arg0, double arg1); - -@ffi.Native() -external double copysignf(double arg0, double arg1); - -@ffi.Native() -external double cos(double arg0); - -@ffi.Native() -external double cosf(double arg0); - -@ffi.Native() -external double cosh(double arg0); - -@ffi.Native() -external double coshf(double arg0); - -@ffi.Native, mode_t)>() -external int creat(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer crypt( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native Function(CSSM_ALGORITHMS)>() -external ffi.Pointer cssmAlgToOid(int algId); - -@ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) ->() -external bool cssmOidToAlg( - ffi.Pointer oid, - ffi.Pointer alg, -); - -@ffi.Native, CSSM_RETURN)>() -external void cssmPerror(ffi.Pointer how, int error); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ctermid(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ctermid_r(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ctime(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer ctime_r( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsAddDest( - ffi.Pointer name, - ffi.Pointer instance, - int num_dests, - ffi.Pointer> dests, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsAddDestMediaOptions( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - int flags, - ffi.Pointer size, - int num_options, - ffi.Pointer> options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsAddIntegerOption( - ffi.Pointer name, - int value, - int num_options, - ffi.Pointer> options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsAddOption( - ffi.Pointer name, - ffi.Pointer value, - int num_options, - ffi.Pointer> options, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int cupsArrayAdd(ffi.Pointer a, ffi.Pointer e); - -@ffi.Native)>() -external void cupsArrayClear(ffi.Pointer a); - -@ffi.Native)>() -external int cupsArrayCount(ffi.Pointer a); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayCurrent(ffi.Pointer a); - -@ffi.Native)>() -external void cupsArrayDelete(ffi.Pointer a); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayDup(ffi.Pointer a); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsArrayFind( - ffi.Pointer a, - ffi.Pointer e, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayFirst(ffi.Pointer a); - -@ffi.Native)>() -external int cupsArrayGetIndex(ffi.Pointer a); - -@ffi.Native)>() -external int cupsArrayGetInsert(ffi.Pointer a); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int) ->() -external ffi.Pointer cupsArrayIndex( - ffi.Pointer a, - int n, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int cupsArrayInsert( - ffi.Pointer a, - ffi.Pointer e, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayLast(ffi.Pointer a); - -@ffi.Native< - ffi.Pointer Function(cups_array_func_t, ffi.Pointer) ->() -external ffi.Pointer cupsArrayNew( - cups_array_func_t f, - ffi.Pointer d, -); - -@ffi.Native< - ffi.Pointer Function( - cups_array_func_t, - ffi.Pointer, - cups_ahash_func_t, - ffi.Int, - ) ->() -external ffi.Pointer cupsArrayNew2( - cups_array_func_t f, - ffi.Pointer d, - cups_ahash_func_t h, - int hsize, -); - -@ffi.Native< - ffi.Pointer Function( - cups_array_func_t, - ffi.Pointer, - cups_ahash_func_t, - ffi.Int, - cups_acopy_func_t, - cups_afree_func_t, - ) ->() -external ffi.Pointer cupsArrayNew3( - cups_array_func_t f, - ffi.Pointer d, - cups_ahash_func_t h, - int hsize, - cups_acopy_func_t cf, - cups_afree_func_t ff, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayNext(ffi.Pointer a); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayPrev(ffi.Pointer a); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int cupsArrayRemove( - ffi.Pointer a, - ffi.Pointer e, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayRestore(ffi.Pointer a); - -@ffi.Native)>() -external int cupsArraySave(ffi.Pointer a); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsArrayUserData(ffi.Pointer a); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->(symbol: 'cupsCancelDestJob') -external int _cupsCancelDestJob( - ffi.Pointer http, - ffi.Pointer dest, - int job_id, -); - -ipp_status_e cupsCancelDestJob( - ffi.Pointer http, - ffi.Pointer dest, - int job_id, -) { - return ipp_status_e.fromValue(_cupsCancelDestJob(http, dest, job_id)); -} - -@ffi.Native, ffi.Int)>() -external int cupsCancelJob(ffi.Pointer name, int job_id); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Int) ->(symbol: 'cupsCancelJob2') -external int _cupsCancelJob2( - ffi.Pointer http, - ffi.Pointer name, - int job_id, - int purge, -); - -ipp_status_e cupsCancelJob2( - ffi.Pointer http, - ffi.Pointer name, - int job_id, - int purge, -) { - return ipp_status_e.fromValue(_cupsCancelJob2(http, name, job_id, purge)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsCheckDestSupported( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - ffi.Pointer option, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'cupsCloseDestJob') -external int _cupsCloseDestJob( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int job_id, -); - -ipp_status_e cupsCloseDestJob( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int job_id, -) { - return ipp_status_e.fromValue(_cupsCloseDestJob(http, dest, info, job_id)); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - cups_dest_cb_t, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsConnectDest( - ffi.Pointer dest, - int flags, - int msec, - ffi.Pointer cancel, - ffi.Pointer resource, - int resourcesize, - cups_dest_cb_t cb, - ffi.Pointer user_data, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - cups_dest_block_t, - ) ->(symbol: 'cupsConnectDestBlock') -external ffi.Pointer _cupsConnectDestBlock( - ffi.Pointer dest, - int flags, - int msec, - ffi.Pointer cancel, - ffi.Pointer resource, - int resourcesize, - cups_dest_block_t block, -); - -ffi.Pointer cupsConnectDestBlock( - ffi.Pointer dest, - int flags, - int msec, - ffi.Pointer cancel, - ffi.Pointer resource, - int resourcesize, - Dartcups_dest_block_t block, -) { - final _$$ref = block.ref; - return _cupsConnectDestBlock( - dest, - flags, - msec, - cancel, - resource, - resourcesize, - _$$ref.pointer, - ); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsCopyDest( - ffi.Pointer dest, - int num_dests, - ffi.Pointer> dests, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int cupsCopyDestConflicts( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int num_options, - ffi.Pointer options, - ffi.Pointer new_option, - ffi.Pointer new_value, - ffi.Pointer num_conflicts, - ffi.Pointer> conflicts, - ffi.Pointer num_resolved, - ffi.Pointer> resolved, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsCopyDestInfo( - ffi.Pointer http, - ffi.Pointer dest, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'cupsCreateDestJob') -external int _cupsCreateDestJob( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - ffi.Pointer job_id, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -ipp_status_e cupsCreateDestJob( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - ffi.Pointer job_id, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -) { - return ipp_status_e.fromValue( - _cupsCreateDestJob(http, dest, info, job_id, title, num_options, options), - ); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int cupsCreateJob( - ffi.Pointer http, - ffi.Pointer name, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsDoAuthentication( - ffi.Pointer http, - ffi.Pointer method, - ffi.Pointer resource, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsDoFileRequest( - ffi.Pointer http, - ffi.Pointer request, - ffi.Pointer resource, - ffi.Pointer filename, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ) ->() -external ffi.Pointer cupsDoIORequest( - ffi.Pointer http, - ffi.Pointer request, - ffi.Pointer resource, - int infile, - int outfile, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsDoRequest( - ffi.Pointer http, - ffi.Pointer request, - ffi.Pointer resource, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'cupsEncodeOption') -external ffi.Pointer _cupsEncodeOption( - ffi.Pointer ipp, - int group_tag, - ffi.Pointer name, - ffi.Pointer value, -); - -ffi.Pointer cupsEncodeOption( - ffi.Pointer ipp, - ipp_tag_e group_tag, - ffi.Pointer name, - ffi.Pointer value, -) { - return _cupsEncodeOption(ipp, group_tag.value, name, value); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external void cupsEncodeOptions( - ffi.Pointer ipp, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'cupsEncodeOptions2') -external void _cupsEncodeOptions2( - ffi.Pointer ipp, - int num_options, - ffi.Pointer options, - int group_tag, -); - -void cupsEncodeOptions2( - ffi.Pointer ipp, - int num_options, - ffi.Pointer options, - ipp_tag_e group_tag, -) { - return _cupsEncodeOptions2(ipp, num_options, options, group_tag.value); -} - -@ffi.Native(symbol: 'cupsEncryption') -external int _cupsEncryption(); - -http_encryption_e cupsEncryption() { - return http_encryption_e.fromValue(_cupsEncryption()); -} - -@ffi.Native< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Int, - ffi.Pointer, - cups_ptype_t, - cups_ptype_t, - cups_dest_cb_t, - ffi.Pointer, - ) ->() -external int cupsEnumDests( - int flags, - int msec, - ffi.Pointer cancel, - int type, - int mask, - cups_dest_cb_t cb, - ffi.Pointer user_data, -); - -@ffi.Native< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Int, - ffi.Pointer, - cups_ptype_t, - cups_ptype_t, - cups_dest_block_t, - ) ->(symbol: 'cupsEnumDestsBlock') -external int _cupsEnumDestsBlock( - int flags, - int msec, - ffi.Pointer cancel, - int type, - int mask, - cups_dest_block_t block, -); - -int cupsEnumDestsBlock( - int flags, - int msec, - ffi.Pointer cancel, - Dartcups_ptype_t type, - Dartcups_ptype_t mask, - Dartcups_dest_block_t block, -) { - final _$$ref = block.ref; - return _cupsEnumDestsBlock(flags, msec, cancel, type, mask, _$$ref.pointer); -} - -@ffi.Native)>() -external int cupsFileClose(ffi.Pointer fp); - -@ffi.Native)>() -external int cupsFileCompression(ffi.Pointer fp); - -@ffi.Native)>() -external int cupsFileEOF(ffi.Pointer fp); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer cupsFileFind( - ffi.Pointer filename, - ffi.Pointer path, - int executable, - ffi.Pointer buffer, - int bufsize, -); - -@ffi.Native)>() -external int cupsFileFlush(ffi.Pointer fp); - -@ffi.Native)>() -external int cupsFileGetChar(ffi.Pointer fp); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsFileGetConf( - ffi.Pointer fp, - ffi.Pointer buf, - int buflen, - ffi.Pointer> value, - ffi.Pointer linenum, -); - -@ffi.Native< - ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int cupsFileGetLine( - ffi.Pointer fp, - ffi.Pointer buf, - int buflen, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer cupsFileGets( - ffi.Pointer fp, - ffi.Pointer buf, - int buflen, -); - -@ffi.Native, ffi.Int)>() -external int cupsFileLock(ffi.Pointer fp, int block); - -@ffi.Native)>() -external int cupsFileNumber(ffi.Pointer fp); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsFileOpen( - ffi.Pointer filename, - ffi.Pointer mode, -); - -@ffi.Native Function(ffi.Int, ffi.Pointer)>() -external ffi.Pointer cupsFileOpenFd( - int fd, - ffi.Pointer mode, -); - -@ffi.Native)>() -external int cupsFilePeekChar(ffi.Pointer fp); - -@ffi.Native, ffi.Pointer)>() -external int cupsFilePrintf( - ffi.Pointer fp, - ffi.Pointer format, -); - -@ffi.Native, ffi.Int)>() -external int cupsFilePutChar(ffi.Pointer fp, int c); - -@ffi.Native< - ssize_t Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsFilePutConf( - ffi.Pointer fp, - ffi.Pointer directive, - ffi.Pointer value, -); - -@ffi.Native, ffi.Pointer)>() -external int cupsFilePuts(ffi.Pointer fp, ffi.Pointer s); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int cupsFileRead( - ffi.Pointer fp, - ffi.Pointer buf, - int bytes, -); - -@ffi.Native)>() -external int cupsFileRewind(ffi.Pointer fp); - -@ffi.Native, off_t)>() -external int cupsFileSeek(ffi.Pointer fp, int pos); - -@ffi.Native Function()>() -external ffi.Pointer cupsFileStderr(); - -@ffi.Native Function()>() -external ffi.Pointer cupsFileStdin(); - -@ffi.Native Function()>() -external ffi.Pointer cupsFileStdout(); - -@ffi.Native)>() -external int cupsFileTell(ffi.Pointer fp); - -@ffi.Native)>() -external int cupsFileUnlock(ffi.Pointer fp); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int cupsFileWrite( - ffi.Pointer fp, - ffi.Pointer buf, - int bytes, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsFindDestDefault( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - ffi.Pointer option, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsFindDestReady( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - ffi.Pointer option, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsFindDestSupported( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - ffi.Pointer option, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'cupsFinishDestDocument') -external int _cupsFinishDestDocument( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, -); - -ipp_status_e cupsFinishDestDocument( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, -) { - return ipp_status_e.fromValue(_cupsFinishDestDocument(http, dest, info)); -} - -@ffi.Native, ffi.Pointer)>( - symbol: 'cupsFinishDocument', -) -external int _cupsFinishDocument( - ffi.Pointer http, - ffi.Pointer name, -); - -ipp_status_e cupsFinishDocument( - ffi.Pointer http, - ffi.Pointer name, -) { - return ipp_status_e.fromValue(_cupsFinishDocument(http, name)); -} - -@ffi.Native)>() -external void cupsFreeDestInfo(ffi.Pointer dinfo); - -@ffi.Native)>() -external void cupsFreeDests(int num_dests, ffi.Pointer dests); - -@ffi.Native)>() -external void cupsFreeJobs(int num_jobs, ffi.Pointer jobs); - -@ffi.Native)>() -external void cupsFreeOptions( - int num_options, - ffi.Pointer options, -); - -@Deprecated('Use cupsEnumDests instead.') -@ffi.Native>>)>() -external int cupsGetClasses( - ffi.Pointer>> classes, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int cupsGetConflicts( - ffi.Pointer ppd, - ffi.Pointer option, - ffi.Pointer choice, - ffi.Pointer> options, -); - -@ffi.Native Function()>() -external ffi.Pointer cupsGetDefault(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsGetDefault2(ffi.Pointer http); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsGetDest( - ffi.Pointer name, - ffi.Pointer instance, - int num_dests, - ffi.Pointer dests, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external int cupsGetDestMediaByIndex( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - int n, - int flags, - ffi.Pointer size, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external int cupsGetDestMediaByName( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - ffi.Pointer media, - int flags, - ffi.Pointer size, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external int cupsGetDestMediaBySize( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - int width, - int length, - int flags, - ffi.Pointer size, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int cupsGetDestMediaCount( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - int flags, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external int cupsGetDestMediaDefault( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer dinfo, - int flags, - ffi.Pointer size, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsGetDestWithURI( - ffi.Pointer name, - ffi.Pointer uri, -); - -@ffi.Native>)>() -external int cupsGetDests(ffi.Pointer> dests); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer>) ->() -external int cupsGetDests2( - ffi.Pointer http, - ffi.Pointer> dests, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->(symbol: 'cupsGetFd') -external int _cupsGetFd( - ffi.Pointer http, - ffi.Pointer resource, - int fd, -); - -http_status_e cupsGetFd( - ffi.Pointer http, - ffi.Pointer resource, - int fd, -) { - return http_status_e.fromValue(_cupsGetFd(http, resource, fd)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'cupsGetFile') -external int _cupsGetFile( - ffi.Pointer http, - ffi.Pointer resource, - ffi.Pointer filename, -); - -http_status_e cupsGetFile( - ffi.Pointer http, - ffi.Pointer resource, - ffi.Pointer filename, -) { - return http_status_e.fromValue(_cupsGetFile(http, resource, filename)); -} - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int cupsGetIntegerOption( - ffi.Pointer name, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Int, - ) ->() -external int cupsGetJobs( - ffi.Pointer> jobs, - ffi.Pointer name, - int myjobs, - int whichjobs, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Int, - ) ->() -external int cupsGetJobs2( - ffi.Pointer http, - ffi.Pointer> jobs, - ffi.Pointer name, - int myjobs, - int whichjobs, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsGetNamedDest( - ffi.Pointer http, - ffi.Pointer name, - ffi.Pointer instance, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsGetOption( - ffi.Pointer name, - int num_options, - ffi.Pointer options, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsGetPPD(ffi.Pointer name); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer cupsGetPPD2( - ffi.Pointer http, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'cupsGetPPD3') -external int _cupsGetPPD3( - ffi.Pointer http, - ffi.Pointer name, - ffi.Pointer modtime, - ffi.Pointer buffer, - int bufsize, -); - -http_status_e cupsGetPPD3( - ffi.Pointer http, - ffi.Pointer name, - ffi.Pointer modtime, - ffi.Pointer buffer, - int bufsize, -) { - return http_status_e.fromValue( - _cupsGetPPD3(http, name, modtime, buffer, bufsize), - ); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsGetPassword(ffi.Pointer prompt); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsGetPassword2( - ffi.Pointer prompt, - ffi.Pointer http, - ffi.Pointer method, - ffi.Pointer resource, -); - -@Deprecated('Use cupsEnumDests instead.') -@ffi.Native>>)>() -external int cupsGetPrinters( - ffi.Pointer>> printers, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer cupsGetResponse( - ffi.Pointer http, - ffi.Pointer resource, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer cupsGetServerPPD( - ffi.Pointer http, - ffi.Pointer name, -); - -@ffi.Native< - ssize_t Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) ->() -external int cupsHashData( - ffi.Pointer algorithm, - ffi.Pointer data, - int datalen, - ffi.Pointer hash, - int hashsize, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer cupsHashString( - ffi.Pointer hash, - int hashsize, - ffi.Pointer buffer, - int bufsize, -); - -@ffi.Native Function()>() -external ffi.Pointer cupsLangDefault(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsLangEncoding(ffi.Pointer lang); - -@ffi.Native() -external void cupsLangFlush(); - -@ffi.Native)>() -external void cupsLangFree(ffi.Pointer lang); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer cupsLangGet(ffi.Pointer language); - -@ffi.Native(symbol: 'cupsLastError') -external int _cupsLastError(); - -ipp_status_e cupsLastError() { - return ipp_status_e.fromValue(_cupsLastError()); -} - -@ffi.Native Function()>() -external ffi.Pointer cupsLastErrorString(); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsLocalizeDestMedia( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int flags, - ffi.Pointer size, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsLocalizeDestOption( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - ffi.Pointer option, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer cupsLocalizeDestValue( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - ffi.Pointer option, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - time_t, - ) ->() -external int cupsMakeServerCredentials( - ffi.Pointer path, - ffi.Pointer common_name, - int num_alt_names, - ffi.Pointer> alt_names, - int expiration_date, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int cupsMarkOptions( - ffi.Pointer ppd, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer cupsNotifySubject( - ffi.Pointer lang, - ffi.Pointer event, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer cupsNotifyText( - ffi.Pointer lang, - ffi.Pointer event, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsParseOptions( - ffi.Pointer arg, - int num_options, - ffi.Pointer> options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int cupsPrintFile( - ffi.Pointer name, - ffi.Pointer filename, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int cupsPrintFile2( - ffi.Pointer http, - ffi.Pointer name, - ffi.Pointer filename, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int cupsPrintFiles( - ffi.Pointer name, - int num_files, - ffi.Pointer> files, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int cupsPrintFiles2( - ffi.Pointer http, - ffi.Pointer name, - int num_files, - ffi.Pointer> files, - ffi.Pointer title, - int num_options, - ffi.Pointer options, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->(symbol: 'cupsPutFd') -external int _cupsPutFd( - ffi.Pointer http, - ffi.Pointer resource, - int fd, -); - -http_status_e cupsPutFd( - ffi.Pointer http, - ffi.Pointer resource, - int fd, -) { - return http_status_e.fromValue(_cupsPutFd(http, resource, fd)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'cupsPutFile') -external int _cupsPutFile( - ffi.Pointer http, - ffi.Pointer resource, - ffi.Pointer filename, -); - -http_status_e cupsPutFile( - ffi.Pointer http, - ffi.Pointer resource, - ffi.Pointer filename, -) { - return http_status_e.fromValue(_cupsPutFile(http, resource, filename)); -} - -@ffi.Native)>() -external void cupsRasterClose(ffi.Pointer r); - -@ffi.Native Function()>() -external ffi.Pointer cupsRasterErrorString(); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsRasterInitPWGHeader( - ffi.Pointer h, - ffi.Pointer media, - ffi.Pointer type, - int xdpi, - int ydpi, - ffi.Pointer sides, - ffi.Pointer sheet_back, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - cups_interpret_cb_t, - ) ->() -external int cupsRasterInterpretPPD( - ffi.Pointer h, - ffi.Pointer ppd, - int num_options, - ffi.Pointer options, - cups_interpret_cb_t func, -); - -@ffi.Native Function(ffi.Int, ffi.UnsignedInt)>( - symbol: 'cupsRasterOpen', -) -external ffi.Pointer _cupsRasterOpen(int fd, int mode); - -ffi.Pointer cupsRasterOpen(int fd, cups_mode_e mode) { - return _cupsRasterOpen(fd, mode.value); -} - -@ffi.Native< - ffi.Pointer Function( - cups_raster_iocb_t, - ffi.Pointer, - ffi.UnsignedInt, - ) ->(symbol: 'cupsRasterOpenIO') -external ffi.Pointer _cupsRasterOpenIO( - cups_raster_iocb_t iocb, - ffi.Pointer ctx, - int mode, -); - -ffi.Pointer cupsRasterOpenIO( - cups_raster_iocb_t iocb, - ffi.Pointer ctx, - cups_mode_e mode, -) { - return _cupsRasterOpenIO(iocb, ctx, mode.value); -} - -@Deprecated('Use cupsRasterReadHeader2 instead.') -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsRasterReadHeader( - ffi.Pointer r, - ffi.Pointer h, -); - -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsRasterReadHeader2( - ffi.Pointer r, - ffi.Pointer h, -); - -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int cupsRasterReadPixels( - ffi.Pointer r, - ffi.Pointer p, - int len, -); - -@Deprecated('Use cupsRasterWriteHeader2 instead.') -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsRasterWriteHeader( - ffi.Pointer r, - ffi.Pointer h, -); - -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external int cupsRasterWriteHeader2( - ffi.Pointer r, - ffi.Pointer h, -); - -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int cupsRasterWritePixels( - ffi.Pointer r, - ffi.Pointer p, - int len, -); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int cupsReadResponseData( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsRemoveDest( - ffi.Pointer name, - ffi.Pointer instance, - int num_dests, - ffi.Pointer> dests, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external int cupsRemoveOption( - ffi.Pointer name, - int num_options, - ffi.Pointer> options, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int cupsResolveConflicts( - ffi.Pointer ppd, - ffi.Pointer option, - ffi.Pointer choice, - ffi.Pointer num_options, - ffi.Pointer> options, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'cupsSendRequest') -external int _cupsSendRequest( - ffi.Pointer http, - ffi.Pointer request, - ffi.Pointer resource, - int length, -); - -http_status_e cupsSendRequest( - ffi.Pointer http, - ffi.Pointer request, - ffi.Pointer resource, - int length, -) { - return http_status_e.fromValue( - _cupsSendRequest(http, request, resource, length), - ); -} - -@ffi.Native Function()>() -external ffi.Pointer cupsServer(); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - bearer_token_callback_t, - ffi.Pointer, - ) ->() -external void cupsSetBearerTokenCB( - ffi.Pointer http, - bearer_token_callback_t cb, - ffi.Pointer user_data, -); - -@ffi.Native)>() -external void cupsSetClientCertCB( - cups_client_cert_cb_t cb, - ffi.Pointer user_data, -); - -@ffi.Native)>() -external int cupsSetCredentials(ffi.Pointer certs); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external void cupsSetDefaultDest( - ffi.Pointer name, - ffi.Pointer instance, - int num_dests, - ffi.Pointer dests, -); - -@ffi.Native)>() -external void cupsSetDests(int num_dests, ffi.Pointer dests); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int cupsSetDests2( - ffi.Pointer http, - int num_dests, - ffi.Pointer dests, -); - -@ffi.Native(symbol: 'cupsSetEncryption') -external void _cupsSetEncryption(int e); - -void cupsSetEncryption(http_encryption_e e) { - return _cupsSetEncryption(e.value); -} - -@ffi.Native() -external void cupsSetPasswordCB(cups_password_cb_t cb); - -@ffi.Native)>() -external void cupsSetPasswordCB2( - cups_password_cb2_t cb, - ffi.Pointer user_data, -); - -@ffi.Native)>() -external void cupsSetServer(ffi.Pointer server); - -@ffi.Native)>() -external void cupsSetServerCertCB( - cups_server_cert_cb_t cb, - ffi.Pointer user_data, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int cupsSetServerCredentials( - ffi.Pointer path, - ffi.Pointer common_name, - int auto_create, -); - -@ffi.Native)>() -external void cupsSetUser(ffi.Pointer user); - -@ffi.Native)>() -external void cupsSetUserAgent(ffi.Pointer user_agent); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'cupsStartDestDocument') -external int _cupsStartDestDocument( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int job_id, - ffi.Pointer docname, - ffi.Pointer format, - int num_options, - ffi.Pointer options, - int last_document, -); - -http_status_e cupsStartDestDocument( - ffi.Pointer http, - ffi.Pointer dest, - ffi.Pointer info, - int job_id, - ffi.Pointer docname, - ffi.Pointer format, - int num_options, - ffi.Pointer options, - int last_document, -) { - return http_status_e.fromValue( - _cupsStartDestDocument( - http, - dest, - info, - job_id, - docname, - format, - num_options, - options, - last_document, - ), - ); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'cupsStartDocument') -external int _cupsStartDocument( - ffi.Pointer http, - ffi.Pointer name, - int job_id, - ffi.Pointer docname, - ffi.Pointer format, - int last_document, -); - -http_status_e cupsStartDocument( - ffi.Pointer http, - ffi.Pointer name, - int job_id, - ffi.Pointer docname, - ffi.Pointer format, - int last_document, -) { - return http_status_e.fromValue( - _cupsStartDocument(http, name, job_id, docname, format, last_document), - ); -} - -@ffi.Native, ffi.Int)>() -external int cupsTempFd(ffi.Pointer filename, int len); - -@Deprecated('Use cupsTempFd or cupsTempFile2 instead.') -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer cupsTempFile( - ffi.Pointer filename, - int len, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer cupsTempFile2( - ffi.Pointer filename, - int len, -); - -@ffi.Native Function()>() -external ffi.Pointer cupsUser(); - -@ffi.Native Function()>() -external ffi.Pointer cupsUserAgent(); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->(symbol: 'cupsWriteRequestData') -external int _cupsWriteRequestData( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -http_status_e cupsWriteRequestData( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -) { - return http_status_e.fromValue(_cupsWriteRequestData(http, buffer, length)); -} - -@Deprecated('Use posix_spawn APIs instead.') -@ffi.Native() -external int daemon(int arg0, int arg1); - -@ffi.Native() -external int daylight; - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Int, - ffi.Pointer, - ) ->() -external int debug_control_port_for_pid( - int target_tport, - int pid, - ffi.Pointer t, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external double dec2f(ffi.Pointer d); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int dec2l(ffi.Pointer d); - -@Deprecated('Deprecated') -@ffi.Native)>() -external double dec2num(ffi.Pointer d); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int dec2s(ffi.Pointer d); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void dec2str( - ffi.Pointer f, - ffi.Pointer d, - ffi.Pointer s, -); - -@ffi.Native Function(dev_t, mode_t)>() -external ffi.Pointer devname(int arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function(dev_t, mode_t, ffi.Pointer, ffi.Int) ->() -external ffi.Pointer devname_r( - int arg0, - int arg1, - ffi.Pointer buf, - int len, -); - -@ffi.Native() -external double difftime(int arg0, int arg1); - -@ffi.Native() -external int disconnectx(int arg0, int arg1, int arg2); - -@ffi.Native(symbol: 'dispatch_activate') -external void _dispatch_activate(dispatch_object_t object); - -void dispatch_activate(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_activate(_$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function(dispatch_time_t, dispatch_queue_t, dispatch_block_t) ->(symbol: 'dispatch_after') -external void _dispatch_after( - int when, - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_after( - Dartdispatch_time_t when, - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_after(when, _$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_time_t, - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_after_f') -external void _dispatch_after_f( - int when, - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_after_f( - Dartdispatch_time_t when, - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_after_f(when, _$$ref.pointer, context, work); -} - -@ffi.Native() -external int dispatch_allow_send_signals(int preserve_signum); - -@ffi.Native< - ffi.Void Function(ffi.Size, dispatch_queue_t, ffi.Pointer) ->(symbol: 'dispatch_apply') -external void _dispatch_apply( - int iterations, - dispatch_queue_t queue, - ffi.Pointer block, -); - -void dispatch_apply( - int iterations, - Dartdispatch_queue_t? queue, - objc.ObjCBlock block, -) { - final _$$ref = queue?.ref; - final _$$ref$1 = block.ref; - return _dispatch_apply( - iterations, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Void Function( - ffi.Size, - dispatch_queue_t, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer context, ffi.Size iteration) - > - >, - ) ->(symbol: 'dispatch_apply_f') -external void _dispatch_apply_f( - int iterations, - dispatch_queue_t queue, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer context, ffi.Size iteration) - > - > - work, -); - -void dispatch_apply_f( - int iterations, - Dartdispatch_queue_t? queue, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer context, ffi.Size iteration) - > - > - work, -) { - final _$$ref = queue?.ref; - return _dispatch_apply_f( - iterations, - _$$ref?.pointer ?? ffi.nullptr, - context, - work, - ); -} - -@ffi.Native( - symbol: 'dispatch_assert_queue', -) -external void _dispatch_assert_queue(dispatch_queue_t queue); - -void dispatch_assert_queue(Dartdispatch_queue_t queue) { - final _$$ref = queue.ref; - return _dispatch_assert_queue(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_assert_queue_barrier', -) -external void _dispatch_assert_queue_barrier(dispatch_queue_t queue); - -void dispatch_assert_queue_barrier(Dartdispatch_queue_t queue) { - final _$$ref = queue.ref; - return _dispatch_assert_queue_barrier(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_assert_queue_not', -) -external void _dispatch_assert_queue_not(dispatch_queue_t queue); - -void dispatch_assert_queue_not(Dartdispatch_queue_t queue) { - final _$$ref = queue.ref; - return _dispatch_assert_queue_not(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_async', -) -external void _dispatch_async(dispatch_queue_t queue, dispatch_block_t block); - -void dispatch_async(Dartdispatch_queue_t queue, Dartdispatch_block_t block) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_async(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'dispatch_async_and_wait', -) -external void _dispatch_async_and_wait( - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_async_and_wait( - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_async_and_wait(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_async_and_wait_f') -external void _dispatch_async_and_wait_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_async_and_wait_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_async_and_wait_f(_$$ref.pointer, context, work); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_async_f') -external void _dispatch_async_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_async_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_async_f(_$$ref.pointer, context, work); -} - -@ffi.Native( - symbol: 'dispatch_barrier_async', -) -external void _dispatch_barrier_async( - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_barrier_async( - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_barrier_async(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'dispatch_barrier_async_and_wait', -) -external void _dispatch_barrier_async_and_wait( - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_barrier_async_and_wait( - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_barrier_async_and_wait(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_barrier_async_and_wait_f') -external void _dispatch_barrier_async_and_wait_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_barrier_async_and_wait_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_barrier_async_and_wait_f(_$$ref.pointer, context, work); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_barrier_async_f') -external void _dispatch_barrier_async_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_barrier_async_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_barrier_async_f(_$$ref.pointer, context, work); -} - -@ffi.Native( - symbol: 'dispatch_barrier_sync', -) -external void _dispatch_barrier_sync( - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_barrier_sync( - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_barrier_sync(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_barrier_sync_f') -external void _dispatch_barrier_sync_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_barrier_sync_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_barrier_sync_f(_$$ref.pointer, context, work); -} - -@ffi.Native( - symbol: 'dispatch_block_cancel', -) -external void _dispatch_block_cancel(dispatch_block_t block); - -void dispatch_block_cancel(Dartdispatch_block_t block) { - final _$$ref = block.ref; - return _dispatch_block_cancel(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_block_create', -) -external dispatch_block_t _dispatch_block_create( - int flags, - dispatch_block_t block, -); - -Dartdispatch_block_t dispatch_block_create( - int flags, - Dartdispatch_block_t block, -) { - final _$$ref = block.ref; - return ObjCBlock_ffiVoid.fromPointer( - _dispatch_block_create(flags, _$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_block_t Function( - ffi.UnsignedLong, - ffi.UnsignedInt, - ffi.Int, - dispatch_block_t, - ) ->(symbol: 'dispatch_block_create_with_qos_class') -external dispatch_block_t _dispatch_block_create_with_qos_class( - int flags, - int qos_class, - int relative_priority, - dispatch_block_t block, -); - -Dartdispatch_block_t dispatch_block_create_with_qos_class( - int flags, - qos_class_t qos_class, - int relative_priority, - Dartdispatch_block_t block, -) { - final _$$ref = block.ref; - return ObjCBlock_ffiVoid.fromPointer( - _dispatch_block_create_with_qos_class( - flags, - qos_class.value, - relative_priority, - _$$ref.pointer, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Void Function(dispatch_block_t, dispatch_queue_t, dispatch_block_t) ->(symbol: 'dispatch_block_notify') -external void _dispatch_block_notify( - dispatch_block_t block, - dispatch_queue_t queue, - dispatch_block_t notification_block, -); - -void dispatch_block_notify( - Dartdispatch_block_t block, - Dartdispatch_queue_t queue, - Dartdispatch_block_t notification_block, -) { - final _$$ref = block.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = notification_block.ref; - return _dispatch_block_notify( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native( - symbol: 'dispatch_block_perform', -) -external void _dispatch_block_perform(int flags, dispatch_block_t block); - -void dispatch_block_perform(int flags, Dartdispatch_block_t block) { - final _$$ref = block.ref; - return _dispatch_block_perform(flags, _$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_block_testcancel', -) -external int _dispatch_block_testcancel(dispatch_block_t block); - -int dispatch_block_testcancel(Dartdispatch_block_t block) { - final _$$ref = block.ref; - return _dispatch_block_testcancel(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_block_wait', -) -external int _dispatch_block_wait(dispatch_block_t block, int timeout); - -int dispatch_block_wait( - Dartdispatch_block_t block, - Dartdispatch_time_t timeout, -) { - final _$$ref = block.ref; - return _dispatch_block_wait(_$$ref.pointer, timeout); -} - -@ffi.Native( - symbol: 'dispatch_data_apply', -) -external bool _dispatch_data_apply( - dispatch_data_t data, - dispatch_data_applier_t applier, -); - -bool dispatch_data_apply( - Dartdispatch_data_t data, - Dartdispatch_data_applier_t applier, -) { - final _$$ref = data.ref; - final _$$ref$1 = applier.ref; - return _dispatch_data_apply(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - dispatch_data_t Function(dispatch_data_t, ffi.Size, ffi.Pointer) ->(symbol: 'dispatch_data_copy_region') -external dispatch_data_t _dispatch_data_copy_region( - dispatch_data_t data, - int location, - ffi.Pointer offset_ptr, -); - -Dartdispatch_data_t dispatch_data_copy_region( - Dartdispatch_data_t data, - int location, - ffi.Pointer offset_ptr, -) { - final _$$ref = data.ref; - return objc.NSObject.fromPointer( - _dispatch_data_copy_region(_$$ref.pointer, location, offset_ptr), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_data_t Function( - ffi.Pointer, - ffi.Size, - dispatch_queue_t, - dispatch_block_t, - ) ->(symbol: 'dispatch_data_create') -external dispatch_data_t _dispatch_data_create( - ffi.Pointer buffer, - int size, - dispatch_queue_t queue, - dispatch_block_t destructor, -); - -Dartdispatch_data_t dispatch_data_create( - ffi.Pointer buffer, - int size, - Dartdispatch_queue_t? queue, - Dartdispatch_block_t? destructor, -) { - final _$$ref = queue?.ref; - final _$$ref$1 = destructor?.ref; - return objc.NSObject.fromPointer( - _dispatch_data_create( - buffer, - size, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_data_create_concat', -) -external dispatch_data_t _dispatch_data_create_concat( - dispatch_data_t data1, - dispatch_data_t data2, -); - -Dartdispatch_data_t dispatch_data_create_concat( - Dartdispatch_data_t data1, - Dartdispatch_data_t data2, -) { - final _$$ref = data1.ref; - final _$$ref$1 = data2.ref; - return objc.NSObject.fromPointer( - _dispatch_data_create_concat(_$$ref.pointer, _$$ref$1.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_data_t Function( - dispatch_data_t, - ffi.Pointer>, - ffi.Pointer, - ) ->(symbol: 'dispatch_data_create_map') -external dispatch_data_t _dispatch_data_create_map( - dispatch_data_t data, - ffi.Pointer> buffer_ptr, - ffi.Pointer size_ptr, -); - -Dartdispatch_data_t dispatch_data_create_map( - Dartdispatch_data_t data, - ffi.Pointer> buffer_ptr, - ffi.Pointer size_ptr, -) { - final _$$ref = data.ref; - return objc.NSObject.fromPointer( - _dispatch_data_create_map(_$$ref.pointer, buffer_ptr, size_ptr), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_data_create_subrange', -) -external dispatch_data_t _dispatch_data_create_subrange( - dispatch_data_t data, - int offset, - int length, -); - -Dartdispatch_data_t dispatch_data_create_subrange( - Dartdispatch_data_t data, - int offset, - int length, -) { - final _$$ref = data.ref; - return objc.NSObject.fromPointer( - _dispatch_data_create_subrange(_$$ref.pointer, offset, length), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_data_get_size', -) -external int _dispatch_data_get_size(dispatch_data_t data); - -int dispatch_data_get_size(Dartdispatch_data_t data) { - final _$$ref = data.ref; - return _dispatch_data_get_size(_$$ref.pointer); -} - -@Deprecated('unsupported interface') -@ffi.Native)>( - symbol: 'dispatch_debug', -) -external void _dispatch_debug( - dispatch_object_t object, - ffi.Pointer message, -); - -void dispatch_debug( - Dartdispatch_object_t object, - ffi.Pointer message, -) { - final _$$ref = object.ref; - return _dispatch_debug(_$$ref.pointer, message); -} - -@Deprecated('unsupported interface') -@ffi.Native< - ffi.Void Function(dispatch_object_t, ffi.Pointer, va_list) ->(symbol: 'dispatch_debugv') -external void _dispatch_debugv( - dispatch_object_t object, - ffi.Pointer message, - va_list ap, -); - -void dispatch_debugv( - Dartdispatch_object_t object, - ffi.Pointer message, - va_list ap, -) { - final _$$ref = object.ref; - return _dispatch_debugv(_$$ref.pointer, message, ap); -} - -@ffi.Native Function(dispatch_object_t)>( - symbol: 'dispatch_get_context', -) -external ffi.Pointer _dispatch_get_context(dispatch_object_t object); - -ffi.Pointer dispatch_get_context(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_get_context(_$$ref.pointer); -} - -@Deprecated('unsupported interface') -@ffi.Native(symbol: 'dispatch_get_current_queue') -external dispatch_queue_t _dispatch_get_current_queue(); - -Dartdispatch_queue_t dispatch_get_current_queue() { - return objc.NSObject.fromPointer( - _dispatch_get_current_queue(), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_get_global_queue', -) -external dispatch_queue_global_t _dispatch_get_global_queue( - int identifier, - int flags, -); - -Dartdispatch_queue_global_t dispatch_get_global_queue( - int identifier, - int flags, -) { - return objc.NSObject.fromPointer( - _dispatch_get_global_queue(identifier, flags), - retain: true, - release: true, - ); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer dispatch_get_specific(ffi.Pointer key); - -@ffi.Native< - ffi.Void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t) ->(symbol: 'dispatch_group_async') -external void _dispatch_group_async( - dispatch_group_t group, - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_group_async( - Dartdispatch_group_t group, - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = group.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = block.ref; - return _dispatch_group_async( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native< - ffi.Void Function( - dispatch_group_t, - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_group_async_f') -external void _dispatch_group_async_f( - dispatch_group_t group, - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_group_async_f( - Dartdispatch_group_t group, - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = group.ref; - final _$$ref$1 = queue.ref; - return _dispatch_group_async_f( - _$$ref.pointer, - _$$ref$1.pointer, - context, - work, - ); -} - -@ffi.Native(symbol: 'dispatch_group_create') -external dispatch_group_t _dispatch_group_create(); - -Dartdispatch_group_t dispatch_group_create() { - return objc.NSObject.fromPointer( - _dispatch_group_create(), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'dispatch_group_enter') -external void _dispatch_group_enter(dispatch_group_t group); - -void dispatch_group_enter(Dartdispatch_group_t group) { - final _$$ref = group.ref; - return _dispatch_group_enter(_$$ref.pointer); -} - -@ffi.Native(symbol: 'dispatch_group_leave') -external void _dispatch_group_leave(dispatch_group_t group); - -void dispatch_group_leave(Dartdispatch_group_t group) { - final _$$ref = group.ref; - return _dispatch_group_leave(_$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function(dispatch_group_t, dispatch_queue_t, dispatch_block_t) ->(symbol: 'dispatch_group_notify') -external void _dispatch_group_notify( - dispatch_group_t group, - dispatch_queue_t queue, - dispatch_block_t block, -); - -void dispatch_group_notify( - Dartdispatch_group_t group, - Dartdispatch_queue_t queue, - Dartdispatch_block_t block, -) { - final _$$ref = group.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = block.ref; - return _dispatch_group_notify( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native< - ffi.Void Function( - dispatch_group_t, - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_group_notify_f') -external void _dispatch_group_notify_f( - dispatch_group_t group, - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_group_notify_f( - Dartdispatch_group_t group, - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = group.ref; - final _$$ref$1 = queue.ref; - return _dispatch_group_notify_f( - _$$ref.pointer, - _$$ref$1.pointer, - context, - work, - ); -} - -@ffi.Native( - symbol: 'dispatch_group_wait', -) -external int _dispatch_group_wait(dispatch_group_t group, int timeout); - -int dispatch_group_wait( - Dartdispatch_group_t group, - Dartdispatch_time_t timeout, -) { - final _$$ref = group.ref; - return _dispatch_group_wait(_$$ref.pointer, timeout); -} - -@ffi.Native( - symbol: 'dispatch_io_barrier', -) -external void _dispatch_io_barrier( - dispatch_io_t channel, - dispatch_block_t barrier, -); - -void dispatch_io_barrier( - Dartdispatch_io_t channel, - Dartdispatch_block_t barrier, -) { - final _$$ref = channel.ref; - final _$$ref$1 = barrier.ref; - return _dispatch_io_barrier(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'dispatch_io_close', -) -external void _dispatch_io_close(dispatch_io_t channel, int flags); - -void dispatch_io_close( - Dartdispatch_io_t channel, - Dartdispatch_io_close_flags_t flags, -) { - final _$$ref = channel.ref; - return _dispatch_io_close(_$$ref.pointer, flags); -} - -@ffi.Native< - dispatch_io_t Function( - dispatch_io_type_t, - dispatch_fd_t, - dispatch_queue_t, - ffi.Pointer, - ) ->(symbol: 'dispatch_io_create') -external dispatch_io_t _dispatch_io_create( - int type, - int fd, - dispatch_queue_t queue, - ffi.Pointer cleanup_handler, -); - -Dartdispatch_io_t dispatch_io_create( - Dartdispatch_io_type_t type, - Dartdispatch_fd_t fd, - Dartdispatch_queue_t queue, - objc.ObjCBlock cleanup_handler, -) { - final _$$ref = queue.ref; - final _$$ref$1 = cleanup_handler.ref; - return objc.NSObject.fromPointer( - _dispatch_io_create(type, fd, _$$ref.pointer, _$$ref$1.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_io_t Function( - dispatch_io_type_t, - dispatch_io_t, - dispatch_queue_t, - ffi.Pointer, - ) ->(symbol: 'dispatch_io_create_with_io') -external dispatch_io_t _dispatch_io_create_with_io( - int type, - dispatch_io_t io, - dispatch_queue_t queue, - ffi.Pointer cleanup_handler, -); - -Dartdispatch_io_t dispatch_io_create_with_io( - Dartdispatch_io_type_t type, - Dartdispatch_io_t io, - Dartdispatch_queue_t queue, - objc.ObjCBlock cleanup_handler, -) { - final _$$ref = io.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = cleanup_handler.ref; - return objc.NSObject.fromPointer( - _dispatch_io_create_with_io( - type, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_io_t Function( - dispatch_io_type_t, - ffi.Pointer, - ffi.Int, - mode_t, - dispatch_queue_t, - ffi.Pointer, - ) ->(symbol: 'dispatch_io_create_with_path') -external dispatch_io_t _dispatch_io_create_with_path( - int type, - ffi.Pointer path, - int oflag, - int mode, - dispatch_queue_t queue, - ffi.Pointer cleanup_handler, -); - -Dartdispatch_io_t dispatch_io_create_with_path( - Dartdispatch_io_type_t type, - ffi.Pointer path, - int oflag, - Dart__uint16_t mode, - Dartdispatch_queue_t queue, - objc.ObjCBlock cleanup_handler, -) { - final _$$ref = queue.ref; - final _$$ref$1 = cleanup_handler.ref; - return objc.NSObject.fromPointer( - _dispatch_io_create_with_path( - type, - path, - oflag, - mode, - _$$ref.pointer, - _$$ref$1.pointer, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_io_get_descriptor', -) -external int _dispatch_io_get_descriptor(dispatch_io_t channel); - -Dartdispatch_fd_t dispatch_io_get_descriptor(Dartdispatch_io_t channel) { - final _$$ref = channel.ref; - return _dispatch_io_get_descriptor(_$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_io_t, - off_t, - ffi.Size, - dispatch_queue_t, - dispatch_io_handler_t, - ) ->(symbol: 'dispatch_io_read') -external void _dispatch_io_read( - dispatch_io_t channel, - int offset, - int length, - dispatch_queue_t queue, - dispatch_io_handler_t io_handler, -); - -void dispatch_io_read( - Dartdispatch_io_t channel, - Dart__int64_t offset, - int length, - Dartdispatch_queue_t queue, - Dartdispatch_io_handler_t io_handler, -) { - final _$$ref = channel.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = io_handler.ref; - return _dispatch_io_read( - _$$ref.pointer, - offset, - length, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native( - symbol: 'dispatch_io_set_high_water', -) -external void _dispatch_io_set_high_water( - dispatch_io_t channel, - int high_water, -); - -void dispatch_io_set_high_water(Dartdispatch_io_t channel, int high_water) { - final _$$ref = channel.ref; - return _dispatch_io_set_high_water(_$$ref.pointer, high_water); -} - -@ffi.Native< - ffi.Void Function(dispatch_io_t, ffi.Uint64, dispatch_io_interval_flags_t) ->(symbol: 'dispatch_io_set_interval') -external void _dispatch_io_set_interval( - dispatch_io_t channel, - int interval, - int flags, -); - -void dispatch_io_set_interval( - Dartdispatch_io_t channel, - int interval, - Dartdispatch_io_interval_flags_t flags, -) { - final _$$ref = channel.ref; - return _dispatch_io_set_interval(_$$ref.pointer, interval, flags); -} - -@ffi.Native( - symbol: 'dispatch_io_set_low_water', -) -external void _dispatch_io_set_low_water(dispatch_io_t channel, int low_water); - -void dispatch_io_set_low_water(Dartdispatch_io_t channel, int low_water) { - final _$$ref = channel.ref; - return _dispatch_io_set_low_water(_$$ref.pointer, low_water); -} - -@ffi.Native< - ffi.Void Function( - dispatch_io_t, - off_t, - dispatch_data_t, - dispatch_queue_t, - dispatch_io_handler_t, - ) ->(symbol: 'dispatch_io_write') -external void _dispatch_io_write( - dispatch_io_t channel, - int offset, - dispatch_data_t data, - dispatch_queue_t queue, - dispatch_io_handler_t io_handler, -); - -void dispatch_io_write( - Dartdispatch_io_t channel, - Dart__int64_t offset, - Dartdispatch_data_t data, - Dartdispatch_queue_t queue, - Dartdispatch_io_handler_t io_handler, -) { - final _$$ref = channel.ref; - final _$$ref$1 = data.ref; - final _$$ref$2 = queue.ref; - final _$$ref$3 = io_handler.ref; - return _dispatch_io_write( - _$$ref.pointer, - offset, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); -} - -@ffi.Native() -external void dispatch_main(); - -@ffi.Native, dispatch_block_t)>( - symbol: 'dispatch_once', -) -external void _dispatch_once( - ffi.Pointer predicate, - dispatch_block_t block, -); - -void dispatch_once( - ffi.Pointer predicate, - Dartdispatch_block_t block, -) { - final _$$ref = block.ref; - return _dispatch_once(predicate, _$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - dispatch_function_t, - ) ->() -external void dispatch_once_f( - ffi.Pointer predicate, - ffi.Pointer context, - dispatch_function_t function, -); - -@ffi.Native( - symbol: 'dispatch_queue_attr_make_initially_inactive', -) -external dispatch_queue_attr_t _dispatch_queue_attr_make_initially_inactive( - dispatch_queue_attr_t attr, -); - -Dartdispatch_queue_attr_t dispatch_queue_attr_make_initially_inactive( - Dartdispatch_queue_attr_t? attr, -) { - final _$$ref = attr?.ref; - return objc.NSObject.fromPointer( - _dispatch_queue_attr_make_initially_inactive( - _$$ref?.pointer ?? ffi.nullptr, - ), - retain: true, - release: true, - ); -} - -@ffi.Native< - dispatch_queue_attr_t Function(dispatch_queue_attr_t, ffi.UnsignedLong) ->(symbol: 'dispatch_queue_attr_make_with_autorelease_frequency') -external dispatch_queue_attr_t -_dispatch_queue_attr_make_with_autorelease_frequency( - dispatch_queue_attr_t attr, - int frequency, -); - -Dartdispatch_queue_attr_t dispatch_queue_attr_make_with_autorelease_frequency( - Dartdispatch_queue_attr_t? attr, - dispatch_autorelease_frequency_t frequency, -) { - final _$$ref = attr?.ref; - return objc.NSObject.fromPointer( - _dispatch_queue_attr_make_with_autorelease_frequency( - _$$ref?.pointer ?? ffi.nullptr, - frequency.value, - ), - retain: true, - release: true, - ); -} - -@ffi.Native< - dispatch_queue_attr_t Function( - dispatch_queue_attr_t, - ffi.UnsignedInt, - ffi.Int, - ) ->(symbol: 'dispatch_queue_attr_make_with_qos_class') -external dispatch_queue_attr_t _dispatch_queue_attr_make_with_qos_class( - dispatch_queue_attr_t attr, - int qos_class, - int relative_priority, -); - -Dartdispatch_queue_attr_t dispatch_queue_attr_make_with_qos_class( - Dartdispatch_queue_attr_t? attr, - qos_class_t qos_class, - int relative_priority, -) { - final _$$ref = attr?.ref; - return objc.NSObject.fromPointer( - _dispatch_queue_attr_make_with_qos_class( - _$$ref?.pointer ?? ffi.nullptr, - qos_class.value, - relative_priority, - ), - retain: true, - release: true, - ); -} - -@ffi.Native< - dispatch_queue_t Function(ffi.Pointer, dispatch_queue_attr_t) ->(symbol: 'dispatch_queue_create') -external dispatch_queue_t _dispatch_queue_create( - ffi.Pointer label, - dispatch_queue_attr_t attr, -); - -Dartdispatch_queue_t dispatch_queue_create( - ffi.Pointer label, - Dartdispatch_queue_attr_t? attr, -) { - final _$$ref = attr?.ref; - return objc.NSObject.fromPointer( - _dispatch_queue_create(label, _$$ref?.pointer ?? ffi.nullptr), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_queue_t Function( - ffi.Pointer, - dispatch_queue_attr_t, - dispatch_queue_t, - ) ->(symbol: 'dispatch_queue_create_with_target') -external dispatch_queue_t _dispatch_queue_create_with_target( - ffi.Pointer label, - dispatch_queue_attr_t attr, - dispatch_queue_t target, -); - -Dartdispatch_queue_t dispatch_queue_create_with_target( - ffi.Pointer label, - Dartdispatch_queue_attr_t? attr, - Dartdispatch_queue_t? target, -) { - final _$$ref = attr?.ref; - final _$$ref$1 = target?.ref; - return objc.NSObject.fromPointer( - _dispatch_queue_create_with_target( - label, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ), - retain: false, - release: true, - ); -} - -@ffi.Native Function(dispatch_queue_t)>( - symbol: 'dispatch_queue_get_label', -) -external ffi.Pointer _dispatch_queue_get_label( - dispatch_queue_t queue, -); - -ffi.Pointer dispatch_queue_get_label(Dartdispatch_queue_t? queue) { - final _$$ref = queue?.ref; - return _dispatch_queue_get_label(_$$ref?.pointer ?? ffi.nullptr); -} - -@ffi.Native)>( - symbol: 'dispatch_queue_get_qos_class', -) -external int _dispatch_queue_get_qos_class( - dispatch_queue_t queue, - ffi.Pointer relative_priority_ptr, -); - -qos_class_t dispatch_queue_get_qos_class( - Dartdispatch_queue_t queue, - ffi.Pointer relative_priority_ptr, -) { - final _$$ref = queue.ref; - return qos_class_t.fromValue( - _dispatch_queue_get_qos_class(_$$ref.pointer, relative_priority_ptr), - ); -} - -@ffi.Native< - ffi.Pointer Function(dispatch_queue_t, ffi.Pointer) ->(symbol: 'dispatch_queue_get_specific') -external ffi.Pointer _dispatch_queue_get_specific( - dispatch_queue_t queue, - ffi.Pointer key, -); - -ffi.Pointer dispatch_queue_get_specific( - Dartdispatch_queue_t queue, - ffi.Pointer key, -) { - final _$$ref = queue.ref; - return _dispatch_queue_get_specific(_$$ref.pointer, key); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_queue_set_specific') -external void _dispatch_queue_set_specific( - dispatch_queue_t queue, - ffi.Pointer key, - ffi.Pointer context, - dispatch_function_t destructor, -); - -void dispatch_queue_set_specific( - Dartdispatch_queue_t queue, - ffi.Pointer key, - ffi.Pointer context, - dispatch_function_t destructor, -) { - final _$$ref = queue.ref; - return _dispatch_queue_set_specific(_$$ref.pointer, key, context, destructor); -} - -@ffi.Native< - ffi.Void Function( - dispatch_fd_t, - ffi.Size, - dispatch_queue_t, - ffi.Pointer, - ) ->(symbol: 'dispatch_read') -external void _dispatch_read( - int fd, - int length, - dispatch_queue_t queue, - ffi.Pointer handler, -); - -void dispatch_read( - Dartdispatch_fd_t fd, - int length, - Dartdispatch_queue_t queue, - objc.ObjCBlock handler, -) { - final _$$ref = queue.ref; - final _$$ref$1 = handler.ref; - return _dispatch_read(fd, length, _$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native(symbol: 'dispatch_release') -external void _dispatch_release(dispatch_object_t object); - -void dispatch_release(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_release(_$$ref.pointer); -} - -@ffi.Native(symbol: 'dispatch_resume') -external void _dispatch_resume(dispatch_object_t object); - -void dispatch_resume(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_resume(_$$ref.pointer); -} - -@ffi.Native(symbol: 'dispatch_retain') -external void _dispatch_retain(dispatch_object_t object); - -void dispatch_retain(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_retain(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_semaphore_create', -) -external dispatch_semaphore_t _dispatch_semaphore_create(int value); - -Dartdispatch_semaphore_t dispatch_semaphore_create(int value) { - return objc.NSObject.fromPointer( - _dispatch_semaphore_create(value), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_semaphore_signal', -) -external int _dispatch_semaphore_signal(dispatch_semaphore_t dsema); - -int dispatch_semaphore_signal(Dartdispatch_semaphore_t dsema) { - final _$$ref = dsema.ref; - return _dispatch_semaphore_signal(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_semaphore_wait', -) -external int _dispatch_semaphore_wait(dispatch_semaphore_t dsema, int timeout); - -int dispatch_semaphore_wait( - Dartdispatch_semaphore_t dsema, - Dartdispatch_time_t timeout, -) { - final _$$ref = dsema.ref; - return _dispatch_semaphore_wait(_$$ref.pointer, timeout); -} - -@ffi.Native)>( - symbol: 'dispatch_set_context', -) -external void _dispatch_set_context( - dispatch_object_t object, - ffi.Pointer context, -); - -void dispatch_set_context( - Dartdispatch_object_t object, - ffi.Pointer context, -) { - final _$$ref = object.ref; - return _dispatch_set_context(_$$ref.pointer, context); -} - -@ffi.Native( - symbol: 'dispatch_set_finalizer_f', -) -external void _dispatch_set_finalizer_f( - dispatch_object_t object, - dispatch_function_t finalizer, -); - -void dispatch_set_finalizer_f( - Dartdispatch_object_t object, - dispatch_function_t finalizer, -) { - final _$$ref = object.ref; - return _dispatch_set_finalizer_f(_$$ref.pointer, finalizer); -} - -@ffi.Native( - symbol: 'dispatch_set_qos_class_floor', -) -external void _dispatch_set_qos_class_floor( - dispatch_object_t object, - int qos_class, - int relative_priority, -); - -void dispatch_set_qos_class_floor( - Dartdispatch_object_t object, - qos_class_t qos_class, - int relative_priority, -) { - final _$$ref = object.ref; - return _dispatch_set_qos_class_floor( - _$$ref.pointer, - qos_class.value, - relative_priority, - ); -} - -@ffi.Native( - symbol: 'dispatch_set_target_queue', -) -external void _dispatch_set_target_queue( - dispatch_object_t object, - dispatch_queue_t queue, -); - -void dispatch_set_target_queue( - Dartdispatch_object_t object, - Dartdispatch_queue_t? queue, -) { - final _$$ref = object.ref; - final _$$ref$1 = queue?.ref; - return _dispatch_set_target_queue( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native( - symbol: 'dispatch_source_cancel', -) -external void _dispatch_source_cancel(dispatch_source_t source); - -void dispatch_source_cancel(Dartdispatch_source_t source) { - final _$$ref = source.ref; - return _dispatch_source_cancel(_$$ref.pointer); -} - -@ffi.Native< - dispatch_source_t Function( - dispatch_source_type_t, - ffi.UintPtr, - ffi.UintPtr, - dispatch_queue_t, - ) ->(symbol: 'dispatch_source_create') -external dispatch_source_t _dispatch_source_create( - dispatch_source_type_t type, - int handle, - int mask, - dispatch_queue_t queue, -); - -Dartdispatch_source_t dispatch_source_create( - dispatch_source_type_t type, - int handle, - int mask, - Dartdispatch_queue_t? queue, -) { - final _$$ref = queue?.ref; - return objc.NSObject.fromPointer( - _dispatch_source_create(type, handle, mask, _$$ref?.pointer ?? ffi.nullptr), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_source_get_data', -) -external int _dispatch_source_get_data(dispatch_source_t source); - -int dispatch_source_get_data(Dartdispatch_source_t source) { - final _$$ref = source.ref; - return _dispatch_source_get_data(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_source_get_handle', -) -external int _dispatch_source_get_handle(dispatch_source_t source); - -int dispatch_source_get_handle(Dartdispatch_source_t source) { - final _$$ref = source.ref; - return _dispatch_source_get_handle(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_source_get_mask', -) -external int _dispatch_source_get_mask(dispatch_source_t source); - -int dispatch_source_get_mask(Dartdispatch_source_t source) { - final _$$ref = source.ref; - return _dispatch_source_get_mask(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_source_merge_data', -) -external void _dispatch_source_merge_data(dispatch_source_t source, int value); - -void dispatch_source_merge_data(Dartdispatch_source_t source, int value) { - final _$$ref = source.ref; - return _dispatch_source_merge_data(_$$ref.pointer, value); -} - -@ffi.Native( - symbol: 'dispatch_source_set_cancel_handler', -) -external void _dispatch_source_set_cancel_handler( - dispatch_source_t source, - dispatch_block_t handler, -); - -void dispatch_source_set_cancel_handler( - Dartdispatch_source_t source, - Dartdispatch_block_t? handler, -) { - final _$$ref = source.ref; - final _$$ref$1 = handler?.ref; - return _dispatch_source_set_cancel_handler( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native( - symbol: 'dispatch_source_set_cancel_handler_f', -) -external void _dispatch_source_set_cancel_handler_f( - dispatch_source_t source, - dispatch_function_t handler, -); - -void dispatch_source_set_cancel_handler_f( - Dartdispatch_source_t source, - dispatch_function_t handler, -) { - final _$$ref = source.ref; - return _dispatch_source_set_cancel_handler_f(_$$ref.pointer, handler); -} - -@ffi.Native( - symbol: 'dispatch_source_set_event_handler', -) -external void _dispatch_source_set_event_handler( - dispatch_source_t source, - dispatch_block_t handler, -); - -void dispatch_source_set_event_handler( - Dartdispatch_source_t source, - Dartdispatch_block_t? handler, -) { - final _$$ref = source.ref; - final _$$ref$1 = handler?.ref; - return _dispatch_source_set_event_handler( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native( - symbol: 'dispatch_source_set_event_handler_f', -) -external void _dispatch_source_set_event_handler_f( - dispatch_source_t source, - dispatch_function_t handler, -); - -void dispatch_source_set_event_handler_f( - Dartdispatch_source_t source, - dispatch_function_t handler, -) { - final _$$ref = source.ref; - return _dispatch_source_set_event_handler_f(_$$ref.pointer, handler); -} - -@ffi.Native( - symbol: 'dispatch_source_set_registration_handler', -) -external void _dispatch_source_set_registration_handler( - dispatch_source_t source, - dispatch_block_t handler, -); - -void dispatch_source_set_registration_handler( - Dartdispatch_source_t source, - Dartdispatch_block_t? handler, -) { - final _$$ref = source.ref; - final _$$ref$1 = handler?.ref; - return _dispatch_source_set_registration_handler( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native( - symbol: 'dispatch_source_set_registration_handler_f', -) -external void _dispatch_source_set_registration_handler_f( - dispatch_source_t source, - dispatch_function_t handler, -); - -void dispatch_source_set_registration_handler_f( - Dartdispatch_source_t source, - dispatch_function_t handler, -) { - final _$$ref = source.ref; - return _dispatch_source_set_registration_handler_f(_$$ref.pointer, handler); -} - -@ffi.Native< - ffi.Void Function(dispatch_source_t, dispatch_time_t, ffi.Uint64, ffi.Uint64) ->(symbol: 'dispatch_source_set_timer') -external void _dispatch_source_set_timer( - dispatch_source_t source, - int start, - int interval, - int leeway, -); - -void dispatch_source_set_timer( - Dartdispatch_source_t source, - Dartdispatch_time_t start, - int interval, - int leeway, -) { - final _$$ref = source.ref; - return _dispatch_source_set_timer(_$$ref.pointer, start, interval, leeway); -} - -@ffi.Native( - symbol: 'dispatch_source_testcancel', -) -external int _dispatch_source_testcancel(dispatch_source_t source); - -int dispatch_source_testcancel(Dartdispatch_source_t source) { - final _$$ref = source.ref; - return _dispatch_source_testcancel(_$$ref.pointer); -} - -@ffi.Native(symbol: 'dispatch_suspend') -external void _dispatch_suspend(dispatch_object_t object); - -void dispatch_suspend(Dartdispatch_object_t object) { - final _$$ref = object.ref; - return _dispatch_suspend(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'dispatch_sync', -) -external void _dispatch_sync(dispatch_queue_t queue, dispatch_block_t block); - -void dispatch_sync(Dartdispatch_queue_t queue, Dartdispatch_block_t block) { - final _$$ref = queue.ref; - final _$$ref$1 = block.ref; - return _dispatch_sync(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_queue_t, - ffi.Pointer, - dispatch_function_t, - ) ->(symbol: 'dispatch_sync_f') -external void _dispatch_sync_f( - dispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -); - -void dispatch_sync_f( - Dartdispatch_queue_t queue, - ffi.Pointer context, - dispatch_function_t work, -) { - final _$$ref = queue.ref; - return _dispatch_sync_f(_$$ref.pointer, context, work); -} - -@ffi.Native() -external int dispatch_time(int when, int delta); - -@ffi.Native, ffi.Int64)>() -external int dispatch_walltime(ffi.Pointer when, int delta); - -@ffi.Native)>( - symbol: 'dispatch_workloop_create', -) -external dispatch_workloop_t _dispatch_workloop_create( - ffi.Pointer label, -); - -Dartdispatch_workloop_t dispatch_workloop_create(ffi.Pointer label) { - return objc.NSObject.fromPointer( - _dispatch_workloop_create(label), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'dispatch_workloop_create_inactive', -) -external dispatch_workloop_t _dispatch_workloop_create_inactive( - ffi.Pointer label, -); - -Dartdispatch_workloop_t dispatch_workloop_create_inactive( - ffi.Pointer label, -) { - return objc.NSObject.fromPointer( - _dispatch_workloop_create_inactive(label), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'dispatch_workloop_set_autorelease_frequency', -) -external void _dispatch_workloop_set_autorelease_frequency( - dispatch_workloop_t workloop, - int frequency, -); - -void dispatch_workloop_set_autorelease_frequency( - Dartdispatch_workloop_t workloop, - dispatch_autorelease_frequency_t frequency, -) { - final _$$ref = workloop.ref; - return _dispatch_workloop_set_autorelease_frequency( - _$$ref.pointer, - frequency.value, - ); -} - -@ffi.Native( - symbol: 'dispatch_workloop_set_os_workgroup', -) -external void _dispatch_workloop_set_os_workgroup( - dispatch_workloop_t workloop, - os_workgroup_t workgroup, -); - -void dispatch_workloop_set_os_workgroup( - Dartdispatch_workloop_t workloop, - Dartos_workgroup_t workgroup, -) { - final _$$ref = workloop.ref; - final _$$ref$1 = workgroup.ref; - return _dispatch_workloop_set_os_workgroup(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - dispatch_fd_t, - dispatch_data_t, - dispatch_queue_t, - ffi.Pointer, - ) ->(symbol: 'dispatch_write') -external void _dispatch_write( - int fd, - dispatch_data_t data, - dispatch_queue_t queue, - ffi.Pointer handler, -); - -void dispatch_write( - Dartdispatch_fd_t fd, - Dartdispatch_data_t data, - Dartdispatch_queue_t queue, - objc.ObjCBlock handler, -) { - final _$$ref = data.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = handler.ref; - return _dispatch_write( - fd, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native() -external div_t div(int arg0, int arg1); - -@ffi.Native)>() -external int dprintf(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external double drand48(); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void dtox80(ffi.Pointer x, ffi.Pointer x80); - -@ffi.Native() -external int dup(int arg0); - -@ffi.Native() -external int dup2(int arg0, int arg1); - -@ffi.Native() -external locale_t duplocale(locale_t arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Double, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ecvt( - double arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native, ffi.Int)>() -external void encrypt(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external void endhostent(); - -@ffi.Native() -external void endnetent(); - -@ffi.Native() -external void endnetgrent(); - -@ffi.Native() -external void endprotoent(); - -@ffi.Native() -external void endrpcent(); - -@ffi.Native() -external void endservent(); - -@ffi.Native() -external void endusershell(); - -@ffi.Native)>() -external double erand48(ffi.Pointer arg0); - -@ffi.Native() -external double erf(double arg0); - -@ffi.Native() -external double erfc(double arg0); - -@ffi.Native() -external double erfcf(double arg0); - -@ffi.Native() -external double erff(double arg0); - -@ffi.Native() -external int etap_trace_thread(int target_act, int trace_status); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int exchangedata( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native, ffi.Pointer)>() -external int execl(ffi.Pointer __path, ffi.Pointer __arg0); - -@ffi.Native, ffi.Pointer)>() -external int execle(ffi.Pointer __path, ffi.Pointer __arg0); - -@ffi.Native, ffi.Pointer)>() -external int execlp(ffi.Pointer __file, ffi.Pointer __arg0); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer>) ->() -external int execv( - ffi.Pointer __path, - ffi.Pointer> __argv, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int execvP( - ffi.Pointer __file, - ffi.Pointer __searchpath, - ffi.Pointer> __argv, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int execve( - ffi.Pointer __file, - ffi.Pointer> __argv, - ffi.Pointer> __envp, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer>) ->() -external int execvp( - ffi.Pointer __file, - ffi.Pointer> __argv, -); - -@ffi.Native() -external void exit(int arg0); - -@ffi.Native() -external double exp(double arg0); - -@ffi.Native() -external double exp2(double arg0); - -@ffi.Native() -external double exp2f(double arg0); - -@ffi.Native() -external double expf(double arg0); - -@ffi.Native() -external double expm1(double arg0); - -@ffi.Native() -external double expm1f(double arg0); - -@ffi.Native() -external double fabs(double arg0); - -@ffi.Native() -external double fabsf(double arg0); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) ->() -external int faccessat( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, -); - -@ffi.Native() -external int fchdir(int arg0); - -@ffi.Native() -external int fchown(int arg0, int arg1, int arg2); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, uid_t, gid_t, ffi.Int) ->() -external int fchownat( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, -); - -@ffi.Native)>() -external int fclose(ffi.Pointer arg0); - -@ffi.Native() -external int fcntl(int arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.Double, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer fcvt( - double arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native() -external double fdim(double arg0, double arg1); - -@ffi.Native() -external double fdimf(double arg0, double arg1); - -@ffi.Native Function(ffi.Int, ffi.Pointer)>() -external ffi.Pointer fdopen(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external int feclearexcept(int arg0); - -@ffi.Native)>() -external int fegetenv(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int fegetexceptflag(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int fegetround(); - -@ffi.Native)>() -external int feholdexcept(ffi.Pointer arg0); - -@ffi.Native)>() -external int feof(ffi.Pointer arg0); - -@ffi.Native() -external int feraiseexcept(int arg0); - -@ffi.Native)>() -external int ferror(ffi.Pointer arg0); - -@ffi.Native)>() -external int fesetenv(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int fesetexceptflag(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int fesetround(int arg0); - -@ffi.Native() -external int fetestexcept(int arg0); - -@ffi.Native)>() -external int feupdateenv(ffi.Pointer arg0); - -@ffi.Native Function(ffi.UnsignedLong)>() -external ffi.Pointer fflagstostr(int arg0); - -@ffi.Native)>() -external int fflush(ffi.Pointer arg0); - -@ffi.Native() -external int ffs(int arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int ffsctl(int arg0, int arg1, ffi.Pointer arg2, int arg3); - -@ffi.Native() -external int ffsl(int arg0); - -@ffi.Native() -external int ffsll(int arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt, - ) ->() -external int fgetattrlist( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, - int arg4, -); - -@ffi.Native)>() -external int fgetc(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer fgetln( - ffi.Pointer arg0, - ffi.Pointer __len, -); - -@ffi.Native, ffi.Pointer)>() -external int fgetpos(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer fgets( - ffi.Pointer arg0, - int __size, - ffi.Pointer arg2, -); - -@ffi.Native)>() -external int fileno(ffi.Pointer arg0); - -@ffi.Native() -external filesec_t filesec_dup(filesec_t arg0); - -@ffi.Native() -external void filesec_free(filesec_t arg0); - -@ffi.Native< - ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'filesec_get_property') -external int _filesec_get_property( - filesec_t arg0, - int arg1, - ffi.Pointer arg2, -); - -int filesec_get_property( - filesec_t arg0, - filesec_property_t arg1, - ffi.Pointer arg2, -) { - return _filesec_get_property(arg0, arg1.value, arg2); -} - -@ffi.Native() -external filesec_t filesec_init(); - -@ffi.Native)>( - symbol: 'filesec_query_property', -) -external int _filesec_query_property( - filesec_t arg0, - int arg1, - ffi.Pointer arg2, -); - -int filesec_query_property( - filesec_t arg0, - filesec_property_t arg1, - ffi.Pointer arg2, -) { - return _filesec_query_property(arg0, arg1.value, arg2); -} - -@ffi.Native< - ffi.Int Function(filesec_t, ffi.UnsignedInt, ffi.Pointer) ->(symbol: 'filesec_set_property') -external int _filesec_set_property( - filesec_t arg0, - int arg1, - ffi.Pointer arg2, -); - -int filesec_set_property( - filesec_t arg0, - filesec_property_t arg1, - ffi.Pointer arg2, -) { - return _filesec_set_property(arg0, arg1.value, arg2); -} - -@ffi.Native( - symbol: 'filesec_unset_property', -) -external int _filesec_unset_property(filesec_t arg0, int arg1); - -int filesec_unset_property(filesec_t arg0, filesec_property_t arg1) { - return _filesec_unset_property(arg0, arg1.value); -} - -@ffi.Native() -external int flock(int arg0, int arg1); - -@ffi.Native)>() -external void flockfile(ffi.Pointer arg0); - -@ffi.Native() -external double floor(double arg0); - -@ffi.Native() -external double floorf(double arg0); - -@ffi.Native() -external int fls(int arg0); - -@ffi.Native() -external int flsl(int arg0); - -@ffi.Native() -external int flsll(int arg0); - -@ffi.Native() -external double fma(double arg0, double arg1, double arg2); - -@ffi.Native() -external double fmaf(double arg0, double arg1, double arg2); - -@ffi.Native() -external double fmax(double arg0, double arg1); - -@ffi.Native() -external double fmaxf(double arg0, double arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ) ->() -external ffi.Pointer fmemopen( - ffi.Pointer __buf, - int __size, - ffi.Pointer __mode, -); - -@ffi.Native() -external double fmin(double arg0, double arg1); - -@ffi.Native() -external double fminf(double arg0, double arg1); - -@ffi.Native() -external double fmod(double arg0, double arg1); - -@ffi.Native() -external double fmodf(double arg0, double arg1); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer fmtcheck( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer fopen( - ffi.Pointer __filename, - ffi.Pointer __mode, -); - -@ffi.Native() -external int fork(); - -@ffi.Native() -external int fpathconf(int arg0, int arg1); - -@ffi.Native, ffi.Pointer)>() -external int fprintf(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external int fpurge(ffi.Pointer arg0); - -@ffi.Native)>() -external int fputc(int arg0, ffi.Pointer arg1); - -@ffi.Native, ffi.Pointer)>() -external int fputs(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->() -external int fread( - ffi.Pointer __ptr, - int __size, - int __nitems, - ffi.Pointer __stream, -); - -@ffi.Native, ffi.Size)>() -external int freadlink(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native)>() -external void free(ffi.Pointer arg0); - -@ffi.Native)>() -external void freeaddrinfo(ffi.Pointer arg0); - -@ffi.Native)>() -external void freehostent(ffi.Pointer arg0); - -@ffi.Native() -external int freelocale(locale_t arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer freopen( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native)>() -external double frexp(double arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external double frexpf(double arg0, ffi.Pointer arg1); - -@ffi.Native, ffi.Pointer)>() -external int fscanf(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int fsctl( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native, ffi.Long, ffi.Int)>() -external int fseek(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native, off_t, ffi.Int)>() -external int fseeko(ffi.Pointer __stream, int __offset, int __whence); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt, - ) ->() -external int fsetattrlist( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, - int arg4, -); - -@ffi.Native, ffi.Pointer)>() -external int fsetpos(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external int fsync(int arg0); - -@ffi.Native() -external int fsync_volume_np(int arg0, int arg1); - -@ffi.Native)>() -external int ftell(ffi.Pointer arg0); - -@ffi.Native)>() -external int ftello(ffi.Pointer __stream); - -@ffi.Native() -external int ftruncate(int arg0, int arg1); - -@ffi.Native)>() -external int ftrylockfile(ffi.Pointer arg0); - -@ffi.Native)>() -external void funlockfile(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - >, - ffi.Pointer< - ffi.NativeFunction< - fpos_t Function(ffi.Pointer, fpos_t, ffi.Int) - > - >, - ffi.Pointer)>>, - ) ->() -external ffi.Pointer funopen( - ffi.Pointer arg0, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - > - arg1, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - > - arg2, - ffi.Pointer< - ffi.NativeFunction, fpos_t, ffi.Int)> - > - arg3, - ffi.Pointer)>> arg4, -); - -@ffi.Native)>() -external int futimes(int arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->() -external int fwrite( - ffi.Pointer __ptr, - int __size, - int __nitems, - ffi.Pointer __stream, -); - -@ffi.Native() -external final CSSM_GUID gGuidAppleCSP; - -@ffi.Native() -external final CSSM_GUID gGuidAppleCSPDL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleDotMacDL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleDotMacTP; - -@ffi.Native() -external final CSSM_GUID gGuidAppleFileDL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleLDAPDL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleSdCSPDL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleX509CL; - -@ffi.Native() -external final CSSM_GUID gGuidAppleX509TP; - -@ffi.Native() -external final CSSM_GUID gGuidCssm; - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer gai_strerror(int arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Double, ffi.Int, ffi.Pointer) ->() -external ffi.Pointer gcvt( - double arg0, - int arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int getaddrinfo( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt, - ) ->() -external int getattrlist( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, - int arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedLong, - ) ->() -external int getattrlistat( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - int arg4, - int arg5, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Uint64, - ) ->() -external int getattrlistbulk( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int getaudit(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int getaudit_addr(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int getauid(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer getbsize( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native)>() -external int getc(ffi.Pointer arg0); - -@ffi.Native)>() -external int getc_unlocked(ffi.Pointer arg0); - -@ffi.Native() -external int getchar(); - -@ffi.Native() -external int getchar_unlocked(); - -@ffi.Native Function(ffi.Pointer, ffi.Size)>() -external ffi.Pointer getcwd(ffi.Pointer arg0, int __size); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getdate(ffi.Pointer arg0); - -@ffi.Native() -external int getdate_err; - -@ffi.Native< - ssize_t Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int getdelim( - ffi.Pointer> __linep, - ffi.Pointer __linecapp, - int __delimiter, - ffi.Pointer __stream, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int getdirentriesattr( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, - ffi.Pointer arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - int arg7, -); - -@ffi.Native, ffi.Int)>() -external int getdomainname(ffi.Pointer arg0, int __namelen); - -@ffi.Native() -external int getdtablesize(); - -@ffi.Native() -external int getegid(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getenv(ffi.Pointer arg0); - -@ffi.Native() -external int geteuid(); - -@ffi.Native() -external int getgid(); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int getgrouplist( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer __ngroups, -); - -@ffi.Native)>() -external int getgroups(int __gidsetsize, ffi.Pointer arg1); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, socklen_t, ffi.Int) ->() -external ffi.Pointer gethostbyaddr( - ffi.Pointer arg0, - int arg1, - int arg2, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer gethostbyname(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer gethostbyname2( - ffi.Pointer arg0, - int arg1, -); - -@ffi.Native Function()>() -external ffi.Pointer gethostent(); - -@ffi.Native() -external int gethostid(); - -@ffi.Native, ffi.Size)>() -external int gethostname(ffi.Pointer arg0, int __namelen); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int gethostuuid( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int getiopolicy_np(int arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer getipnodebyaddr( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer getipnodebyname( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - in_addr, - in_addr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int getipv4sourcefilter( - int arg0, - in_addr arg1, - in_addr arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native)>() -external int getitimer(int arg0, ffi.Pointer arg1); - -@ffi.Native< - ssize_t Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int getline( - ffi.Pointer> __linep, - ffi.Pointer __linecapp, - ffi.Pointer __stream, -); - -@ffi.Native, ffi.Int)>() -external int getloadavg(ffi.Pointer arg0, int __nelem); - -@ffi.Native Function()>() -external ffi.Pointer getlogin(); - -@ffi.Native, ffi.Size)>() -external int getlogin_r(ffi.Pointer arg0, int __namelen); - -@ffi.Native, mode_t)>() -external int getmode(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - socklen_t, - ffi.Pointer, - socklen_t, - ffi.Pointer, - socklen_t, - ffi.Int, - ) ->() -external int getnameinfo( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - int arg5, - int arg6, -); - -@ffi.Native Function(ffi.Uint32, ffi.Int)>() -external ffi.Pointer getnetbyaddr(int arg0, int arg1); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getnetbyname(ffi.Pointer arg0); - -@ffi.Native Function()>() -external ffi.Pointer getnetent(); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int getnetgrent( - ffi.Pointer> arg0, - ffi.Pointer> arg1, - ffi.Pointer> arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int getopt( - int __argc, - ffi.Pointer> arg1, - ffi.Pointer arg2, -); - -@ffi.Native() -external int getpagesize(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getpass(ffi.Pointer arg0); - -@ffi.Native, ffi.Pointer)>() -external int getpeereid( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int getpeername( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native() -external int getpgid(int arg0); - -@ffi.Native() -external int getpgrp(); - -@ffi.Native() -external int getpid(); - -@ffi.Native() -external int getppid(); - -@ffi.Native() -external int getpriority(int arg0, int arg1); - -@ffi.Native Function()>() -external ffi.Pointer getprogname(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getprotobyname(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer getprotobynumber(int arg0); - -@ffi.Native Function()>() -external ffi.Pointer getprotoent(); - -@ffi.Native)>() -external int getrlimit(int arg0, ffi.Pointer arg1); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getrpcbyname(ffi.Pointer name); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer getrpcbynumber(int number); - -@ffi.Native Function()>() -external ffi.Pointer getrpcent(); - -@ffi.Native)>() -external int getrusage(int arg0, ffi.Pointer arg1); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of gets(3), it is highly recommended that you use fgets(3) instead.', -) -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer gets(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer getservbyname( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native Function(ffi.Int, ffi.Pointer)>() -external ffi.Pointer getservbyport( - int arg0, - ffi.Pointer arg1, -); - -@ffi.Native Function()>() -external ffi.Pointer getservent(); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int getsgroups_np( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int getsid(int arg0); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int getsockname( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int getsockopt( - int arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Uint32, - ffi.Pointer, - socklen_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int getsourcefilter( - int arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external int getsubopt( - ffi.Pointer> arg0, - ffi.Pointer> arg1, - ffi.Pointer> arg2, -); - -@ffi.Native, ffi.Pointer)>() -external int gettimeofday( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int getuid(); - -@ffi.Native Function()>() -external ffi.Pointer getusershell(); - -@ffi.Native)>() -external int getw(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer getwd(ffi.Pointer arg0); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int getwgroups_np( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer gmtime(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() -external ffi.Pointer gmtime_r( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int grantpt(int arg0); - -@ffi.Native() -external int h_errno; - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >, - ) ->() -external int heapsort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - __compar, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'heapsort_b') -external int _heapsort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer __compar, -); - -int heapsort_b( - ffi.Pointer __base, - int __nel, - int __width, - objc.ObjCBlock, ffi.Pointer)> - __compar, -) { - final _$$ref = __compar.ref; - return _heapsort_b(__base, __nel, __width, _$$ref.pointer); -} - -@ffi.Native)>() -external void herror(ffi.Pointer arg0); - -@ffi.Native)>() -external int host_check_multiuser_mode( - int host, - ffi.Pointer multiuser_mode, -); - -@ffi.Native< - kern_return_t Function( - host_t, - mach_voucher_attr_raw_recipe_array_t, - mach_msg_type_number_t, - ffi.Pointer, - ) ->() -external int host_create_mach_voucher( - int host, - mach_voucher_attr_raw_recipe_array_t recipes, - int recipesCnt, - ffi.Pointer voucher, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_voucher_attr_raw_recipe_array_t, - ffi.Int, - ffi.Pointer, - ) ->() -external int host_create_mach_voucher_trap( - int host, - mach_voucher_attr_raw_recipe_array_t recipes, - int recipes_size, - ffi.Pointer voucher, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - ffi.Pointer, - memory_object_cluster_size_t, - ) ->() -external int host_default_memory_manager( - int host_priv, - ffi.Pointer default_manager, - int cluster_size, -); - -@ffi.Native)>() -external int host_get_UNDServer(int host, ffi.Pointer server); - -@ffi.Native)>() -external int host_get_atm_diagnostic_flag( - int host, - ffi.Pointer diagnostic_flag, -); - -@ffi.Native)>() -external int host_get_boot_info(int host_priv, ffi.Pointer boot_info); - -@ffi.Native< - kern_return_t Function(host_priv_t, clock_id_t, ffi.Pointer) ->() -external int host_get_clock_control( - int host_priv, - int clock_id, - ffi.Pointer clock_ctrl, -); - -@ffi.Native< - kern_return_t Function(host_t, clock_id_t, ffi.Pointer) ->() -external int host_get_clock_service( - int host, - int clock_id, - ffi.Pointer clock_serv, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - exception_mask_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int host_get_exception_ports( - int host_priv, - int exception_mask, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlers, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native)>() -external int host_get_io_main(int host, ffi.Pointer io_main); - -@ffi.Native)>() -external int host_get_multiuser_config_flags( - int host, - ffi.Pointer multiuser_flags, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->() -external int host_get_special_port( - int host_priv, - int node, - int which, - ffi.Pointer port, -); - -@ffi.Native< - kern_return_t Function( - host_t, - host_flavor_t, - host_info_t, - ffi.Pointer, - ) ->() -external int host_info( - int host, - int flavor, - host_info_t host_info_out, - ffi.Pointer host_info_outCnt, -); - -@ffi.Native)>() -external int host_kernel_version( - int host, - ffi.Pointer kernel_version, -); - -@ffi.Native< - kern_return_t Function( - host_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_lockgroup_info( - int host, - ffi.Pointer lockgroup_info$1, - ffi.Pointer lockgroup_infoCnt, -); - -@ffi.Native)>() -external int host_page_size(int arg0, ffi.Pointer arg1); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - host_flavor_t, - host_info_t, - ffi.Pointer, - ) ->() -external int host_priv_statistics( - int host_priv, - int flavor, - host_info_t host_info_out, - ffi.Pointer host_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - host_t, - processor_flavor_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_processor_info( - int host, - int flavor, - ffi.Pointer out_processor_count, - ffi.Pointer out_processor_info, - ffi.Pointer out_processor_infoCnt, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - processor_set_name_t, - ffi.Pointer, - ) ->() -external int host_processor_set_priv( - int host_priv, - int set_name, - ffi.Pointer set, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_processor_sets( - int host_priv, - ffi.Pointer processor_sets, - ffi.Pointer processor_setsCnt, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_processors( - int host_priv, - ffi.Pointer out_processor_list, - ffi.Pointer out_processor_listCnt, -); - -@ffi.Native() -external int host_reboot(int host_priv, int options); - -@ffi.Native< - kern_return_t Function( - host_t, - mach_voucher_attr_manager_t, - mach_voucher_attr_value_handle_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_register_mach_voucher_attr_manager( - int host, - int attr_manager, - int default_value, - ffi.Pointer new_key, - ffi.Pointer new_attr_control, -); - -@ffi.Native< - kern_return_t Function( - host_t, - mach_voucher_attr_manager_t, - mach_voucher_attr_value_handle_t, - mach_voucher_attr_key_t, - ffi.Pointer, - ) ->() -external int host_register_well_known_mach_voucher_attr_manager( - int host, - int attr_manager, - int default_value, - int key, - ffi.Pointer new_attr_control, -); - -@ffi.Native() -external int host_request_notification( - int host, - int notify_type, - int notify_port, -); - -@ffi.Native< - kern_return_t Function( - host_security_t, - task_t, - security_token_t, - audit_token_t, - host_t, - ledger_array_t, - mach_msg_type_number_t, - boolean_t, - ffi.Pointer, - ) ->() -external int host_security_create_task_token( - int host_security, - int parent_task, - security_token_t sec_token, - audit_token_t audit_token, - int host, - ledger_array_t ledgers, - int ledgersCnt, - int inherit_memory, - ffi.Pointer child_task, -); - -@ffi.Native< - kern_return_t Function( - host_security_t, - task_t, - security_token_t, - audit_token_t, - host_t, - ) ->() -external int host_security_set_task_token( - int host_security, - int target_task, - security_token_t sec_token, - audit_token_t audit_token, - int host, -); - -@ffi.Native() -external int host_set_UNDServer(int host, int server); - -@ffi.Native() -external int host_set_atm_diagnostic_flag(int host, int diagnostic_flag); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - ) ->() -external int host_set_exception_ports( - int host_priv, - int exception_mask, - int new_port, - int behavior, - int new_flavor, -); - -@ffi.Native() -external int host_set_multiuser_config_flags( - int host_priv, - int multiuser_flags, -); - -@ffi.Native() -external int host_set_special_port(int host_priv, int which, int port); - -@ffi.Native< - kern_return_t Function( - host_t, - host_flavor_t, - host_info_t, - ffi.Pointer, - ) ->() -external int host_statistics( - int host_priv, - int flavor, - host_info_t host_info_out, - ffi.Pointer host_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - host_t, - host_flavor_t, - host_info64_t, - ffi.Pointer, - ) ->() -external int host_statistics64( - int host_priv, - int flavor, - host_info64_t host_info64_out, - ffi.Pointer host_info64_outCnt, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int host_swap_exception_ports( - int host_priv, - int exception_mask, - int new_port, - int behavior, - int new_flavor, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlerss, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - host_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int host_virtual_physical_table_info( - int host, - ffi.Pointer info, - ffi.Pointer infoCnt, -); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer hstrerror(int arg0); - -@ffi.Native Function(ffi.Int, ffi.Int)>() -external ffi.Pointer httpAcceptConnection(int fd, int blocking); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int httpAddCredential( - ffi.Pointer credentials, - ffi.Pointer data, - int datalen, -); - -@ffi.Native)>() -external int httpAddrAny(ffi.Pointer addr); - -@ffi.Native, ffi.Int)>() -external int httpAddrClose(ffi.Pointer addr, int fd); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer httpAddrConnect( - ffi.Pointer addrlist, - ffi.Pointer sock, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer httpAddrConnect2( - ffi.Pointer addrlist, - ffi.Pointer sock, - int msec, - ffi.Pointer cancel, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->() -external ffi.Pointer httpAddrCopyList( - ffi.Pointer src, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int httpAddrEqual( - ffi.Pointer addr1, - ffi.Pointer addr2, -); - -@ffi.Native)>() -external int httpAddrFamily(ffi.Pointer addr); - -@ffi.Native)>() -external void httpAddrFreeList(ffi.Pointer addrlist); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer httpAddrGetList( - ffi.Pointer hostname, - int family, - ffi.Pointer service, -); - -@ffi.Native)>() -external int httpAddrLength(ffi.Pointer addr); - -@ffi.Native, ffi.Int)>() -external int httpAddrListen(ffi.Pointer addr, int port); - -@ffi.Native)>() -external int httpAddrLocalhost(ffi.Pointer addr); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer httpAddrLookup( - ffi.Pointer addr, - ffi.Pointer name, - int namelen, -); - -@ffi.Native)>() -external int httpAddrPort(ffi.Pointer addr); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer httpAddrString( - ffi.Pointer addr, - ffi.Pointer s, - int slen, -); - -@ffi.Native< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'httpAssembleURI') -external int _httpAssembleURI( - int encoding, - ffi.Pointer uri, - int urilen, - ffi.Pointer scheme, - ffi.Pointer username, - ffi.Pointer host, - int port, - ffi.Pointer resource, -); - -http_uri_status_e httpAssembleURI( - http_uri_coding_e encoding, - ffi.Pointer uri, - int urilen, - ffi.Pointer scheme, - ffi.Pointer username, - ffi.Pointer host, - int port, - ffi.Pointer resource, -) { - return http_uri_status_e.fromValue( - _httpAssembleURI( - encoding.value, - uri, - urilen, - scheme, - username, - host, - port, - resource, - ), - ); -} - -@ffi.Native< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'httpAssembleURIf') -external int _httpAssembleURIf( - int encoding, - ffi.Pointer uri, - int urilen, - ffi.Pointer scheme, - ffi.Pointer username, - ffi.Pointer host, - int port, - ffi.Pointer resourcef, -); - -http_uri_status_e httpAssembleURIf( - http_uri_coding_e encoding, - ffi.Pointer uri, - int urilen, - ffi.Pointer scheme, - ffi.Pointer username, - ffi.Pointer host, - int port, - ffi.Pointer resourcef, -) { - return http_uri_status_e.fromValue( - _httpAssembleURIf( - encoding.value, - uri, - urilen, - scheme, - username, - host, - port, - resourcef, - ), - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer httpAssembleUUID( - ffi.Pointer server, - int port, - ffi.Pointer name, - int number, - ffi.Pointer buffer, - int bufsize, -); - -@ffi.Native, ffi.Int)>() -external void httpBlocking(ffi.Pointer http, int b); - -@ffi.Native)>() -external int httpCheck(ffi.Pointer http); - -@ffi.Native)>() -external void httpClearCookie(ffi.Pointer http); - -@ffi.Native)>() -external void httpClearFields(ffi.Pointer http); - -@ffi.Native)>() -external void httpClose(ffi.Pointer http); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int httpCompareCredentials( - ffi.Pointer cred1, - ffi.Pointer cred2, -); - -@Deprecated('Use httpConnect2 instead.') -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer httpConnect(ffi.Pointer host, int port); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.UnsignedInt, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'httpConnect2') -external ffi.Pointer _httpConnect2( - ffi.Pointer host, - int port, - ffi.Pointer addrlist, - int family, - int encryption, - int blocking, - int msec, - ffi.Pointer cancel, -); - -ffi.Pointer httpConnect2( - ffi.Pointer host, - int port, - ffi.Pointer addrlist, - int family, - http_encryption_e encryption, - int blocking, - int msec, - ffi.Pointer cancel, -) { - return _httpConnect2( - host, - port, - addrlist, - family, - encryption.value, - blocking, - msec, - cancel, - ); -} - -@Deprecated('Use httpConnect2 instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.UnsignedInt) ->(symbol: 'httpConnectEncrypt') -external ffi.Pointer _httpConnectEncrypt( - ffi.Pointer host, - int port, - int encryption, -); - -ffi.Pointer httpConnectEncrypt( - ffi.Pointer host, - int port, - http_encryption_e encryption, -) { - return _httpConnectEncrypt(host, port, encryption.value); -} - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer>) ->() -external int httpCopyCredentials( - ffi.Pointer http, - ffi.Pointer> credentials, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int httpCredentialsAreValidForName( - ffi.Pointer credentials, - ffi.Pointer common_name, -); - -@ffi.Native)>() -external int httpCredentialsGetExpiration( - ffi.Pointer credentials, -); - -@ffi.Native< - ffi.UnsignedInt Function(ffi.Pointer, ffi.Pointer) ->(symbol: 'httpCredentialsGetTrust') -external int _httpCredentialsGetTrust( - ffi.Pointer credentials, - ffi.Pointer common_name, -); - -http_trust_e httpCredentialsGetTrust( - ffi.Pointer credentials, - ffi.Pointer common_name, -) { - return http_trust_e.fromValue( - _httpCredentialsGetTrust(credentials, common_name), - ); -} - -@ffi.Native< - ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int httpCredentialsString( - ffi.Pointer credentials, - ffi.Pointer buffer, - int bufsize, -); - -@Deprecated('Use httpDecode64_2 instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer httpDecode64( - ffi.Pointer out, - ffi.Pointer in$, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer httpDecode64_2( - ffi.Pointer out, - ffi.Pointer outlen, - ffi.Pointer in$, -); - -@ffi.Native, ffi.Pointer)>() -external int httpDelete(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native)>() -external int httpDeleteCredentials(ffi.Pointer common_name); - -@Deprecated('Use httpEncode64_2 instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer httpEncode64( - ffi.Pointer out, - ffi.Pointer in$, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer httpEncode64_2( - ffi.Pointer out, - int outlen, - ffi.Pointer in$, - int inlen, -); - -@ffi.Native, ffi.UnsignedInt)>( - symbol: 'httpEncryption', -) -external int _httpEncryption(ffi.Pointer http, int e); - -int httpEncryption(ffi.Pointer http, http_encryption_e e) { - return _httpEncryption(http, e.value); -} - -@ffi.Native)>() -external int httpError(ffi.Pointer http); - -@ffi.Native)>(symbol: 'httpFieldValue') -external int _httpFieldValue(ffi.Pointer name); - -http_field_e httpFieldValue(ffi.Pointer name) { - return http_field_e.fromValue(_httpFieldValue(name)); -} - -@ffi.Native)>() -external void httpFlush(ffi.Pointer http); - -@ffi.Native)>() -external int httpFlushWrite(ffi.Pointer http); - -@ffi.Native)>() -external void httpFreeCredentials(ffi.Pointer certs); - -@ffi.Native, ffi.Pointer)>() -external int httpGet(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native)>() -external int httpGetActivity(ffi.Pointer http); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer httpGetAddress(ffi.Pointer http); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer httpGetAuthString(ffi.Pointer http); - -@ffi.Native)>() -external int httpGetBlocking(ffi.Pointer http); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer httpGetContentEncoding(ffi.Pointer http); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer httpGetCookie(ffi.Pointer http); - -@ffi.Native Function(time_t)>() -external ffi.Pointer httpGetDateString(int t); - -@ffi.Native< - ffi.Pointer Function(time_t, ffi.Pointer, ffi.Int) ->() -external ffi.Pointer httpGetDateString2( - int t, - ffi.Pointer s, - int slen, -); - -@ffi.Native)>() -external int httpGetDateTime(ffi.Pointer s); - -@ffi.Native)>( - symbol: 'httpGetEncryption', -) -external int _httpGetEncryption(ffi.Pointer http); - -http_encryption_e httpGetEncryption(ffi.Pointer http) { - return http_encryption_e.fromValue(_httpGetEncryption(http)); -} - -@ffi.Native)>(symbol: 'httpGetExpect') -external int _httpGetExpect(ffi.Pointer http); - -http_status_e httpGetExpect(ffi.Pointer http) { - return http_status_e.fromValue(_httpGetExpect(http)); -} - -@ffi.Native)>() -external int httpGetFd(ffi.Pointer http); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>( - symbol: 'httpGetField', -) -external ffi.Pointer _httpGetField( - ffi.Pointer http, - int field, -); - -ffi.Pointer httpGetField( - ffi.Pointer http, - http_field_e field, -) { - return _httpGetField(http, field.value); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer httpGetHostByName(ffi.Pointer name); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer httpGetHostname( - ffi.Pointer http, - ffi.Pointer s, - int slen, -); - -@ffi.Native)>( - symbol: 'httpGetKeepAlive', -) -external int _httpGetKeepAlive(ffi.Pointer http); - -http_keepalive_e httpGetKeepAlive(ffi.Pointer http) { - return http_keepalive_e.fromValue(_httpGetKeepAlive(http)); -} - -@Deprecated('Use httpGetLength2 instead.') -@ffi.Native)>() -external int httpGetLength(ffi.Pointer http); - -@ffi.Native)>() -external int httpGetLength2(ffi.Pointer http); - -@ffi.Native)>() -external int httpGetPending(ffi.Pointer http); - -@ffi.Native)>() -external int httpGetReady(ffi.Pointer http); - -@ffi.Native)>() -external int httpGetRemaining(ffi.Pointer http); - -@ffi.Native)>(symbol: 'httpGetState') -external int _httpGetState(ffi.Pointer http); - -http_state_e httpGetState(ffi.Pointer http) { - return http_state_e.fromValue(_httpGetState(http)); -} - -@ffi.Native)>(symbol: 'httpGetStatus') -external int _httpGetStatus(ffi.Pointer http); - -http_status_e httpGetStatus(ffi.Pointer http) { - return http_status_e.fromValue(_httpGetStatus(http)); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'httpGetSubField') -external ffi.Pointer _httpGetSubField( - ffi.Pointer http, - int field, - ffi.Pointer name, - ffi.Pointer value, -); - -ffi.Pointer httpGetSubField( - ffi.Pointer http, - http_field_e field, - ffi.Pointer name, - ffi.Pointer value, -) { - return _httpGetSubField(http, field.value, name, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'httpGetSubField2') -external ffi.Pointer _httpGetSubField2( - ffi.Pointer http, - int field, - ffi.Pointer name, - ffi.Pointer value, - int valuelen, -); - -ffi.Pointer httpGetSubField2( - ffi.Pointer http, - http_field_e field, - ffi.Pointer name, - ffi.Pointer value, - int valuelen, -) { - return _httpGetSubField2(http, field.value, name, value, valuelen); -} - -@ffi.Native)>( - symbol: 'httpGetVersion', -) -external int _httpGetVersion(ffi.Pointer http); - -http_version_e httpGetVersion(ffi.Pointer http) { - return http_version_e.fromValue(_httpGetVersion(http)); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer httpGets( - ffi.Pointer line, - int length, - ffi.Pointer http, -); - -@ffi.Native, ffi.Pointer)>() -external int httpHead(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native() -external void httpInitialize(); - -@ffi.Native)>() -external int httpIsChunked(ffi.Pointer http); - -@ffi.Native)>() -external int httpIsEncrypted(ffi.Pointer http); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int httpLoadCredentials( - ffi.Pointer path, - ffi.Pointer> credentials, - ffi.Pointer common_name, -); - -@Deprecated('Use cupsDoAuth or cupsHashData instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer httpMD5( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@Deprecated('Use cupsDoAuth or cupsHashData instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer httpMD5Final( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@Deprecated('Use cupsHashString instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer httpMD5String( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native, ffi.Pointer)>() -external int httpOptions(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int httpPeek( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native, ffi.Pointer)>() -external int httpPost(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native, ffi.Pointer)>() -external int httpPrintf(ffi.Pointer http, ffi.Pointer format); - -@ffi.Native, ffi.Pointer)>() -external int httpPut(ffi.Pointer http, ffi.Pointer uri); - -@Deprecated('Use httpRead2 instead.') -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int httpRead( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int httpRead2( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->(symbol: 'httpReadRequest') -external int _httpReadRequest( - ffi.Pointer http, - ffi.Pointer resource, - int resourcelen, -); - -http_state_e httpReadRequest( - ffi.Pointer http, - ffi.Pointer resource, - int resourcelen, -) { - return http_state_e.fromValue(_httpReadRequest(http, resource, resourcelen)); -} - -@Deprecated('Use httpReconnect2 instead.') -@ffi.Native)>() -external int httpReconnect(ffi.Pointer http); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int httpReconnect2( - ffi.Pointer http, - int msec, - ffi.Pointer cancel, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer httpResolveHostname( - ffi.Pointer http, - ffi.Pointer buffer, - int bufsize, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int httpSaveCredentials( - ffi.Pointer path, - ffi.Pointer credentials, - ffi.Pointer common_name, -); - -@Deprecated('Use httpSeparateURI instead.') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void httpSeparate( - ffi.Pointer uri, - ffi.Pointer method, - ffi.Pointer username, - ffi.Pointer host, - ffi.Pointer port, - ffi.Pointer resource, -); - -@Deprecated('Use httpSeparateURI instead.') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external void httpSeparate2( - ffi.Pointer uri, - ffi.Pointer method, - int methodlen, - ffi.Pointer username, - int usernamelen, - ffi.Pointer host, - int hostlen, - ffi.Pointer port, - ffi.Pointer resource, - int resourcelen, -); - -@ffi.Native< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'httpSeparateURI') -external int _httpSeparateURI( - int decoding, - ffi.Pointer uri, - ffi.Pointer scheme, - int schemelen, - ffi.Pointer username, - int usernamelen, - ffi.Pointer host, - int hostlen, - ffi.Pointer port, - ffi.Pointer resource, - int resourcelen, -); - -http_uri_status_e httpSeparateURI( - http_uri_coding_e decoding, - ffi.Pointer uri, - ffi.Pointer scheme, - int schemelen, - ffi.Pointer username, - int usernamelen, - ffi.Pointer host, - int hostlen, - ffi.Pointer port, - ffi.Pointer resource, - int resourcelen, -) { - return http_uri_status_e.fromValue( - _httpSeparateURI( - decoding.value, - uri, - scheme, - schemelen, - username, - usernamelen, - host, - hostlen, - port, - resource, - resourcelen, - ), - ); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void httpSetAuthString( - ffi.Pointer http, - ffi.Pointer scheme, - ffi.Pointer data, -); - -@ffi.Native, ffi.Pointer)>() -external void httpSetCookie( - ffi.Pointer http, - ffi.Pointer cookie, -); - -@ffi.Native, ffi.Pointer)>() -external int httpSetCredentials( - ffi.Pointer http, - ffi.Pointer certs, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->(symbol: 'httpSetDefaultField') -external void _httpSetDefaultField( - ffi.Pointer http, - int field, - ffi.Pointer value, -); - -void httpSetDefaultField( - ffi.Pointer http, - http_field_e field, - ffi.Pointer value, -) { - return _httpSetDefaultField(http, field.value, value); -} - -@ffi.Native, ffi.Int)>( - symbol: 'httpSetExpect', -) -external void _httpSetExpect(ffi.Pointer http, int expect); - -void httpSetExpect(ffi.Pointer http, http_status_e expect) { - return _httpSetExpect(http, expect.value); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->(symbol: 'httpSetField') -external void _httpSetField( - ffi.Pointer http, - int field, - ffi.Pointer value, -); - -void httpSetField( - ffi.Pointer http, - http_field_e field, - ffi.Pointer value, -) { - return _httpSetField(http, field.value, value); -} - -@ffi.Native, ffi.UnsignedInt)>( - symbol: 'httpSetKeepAlive', -) -external void _httpSetKeepAlive(ffi.Pointer http, int keep_alive); - -void httpSetKeepAlive(ffi.Pointer http, http_keepalive_e keep_alive) { - return _httpSetKeepAlive(http, keep_alive.value); -} - -@ffi.Native, ffi.Size)>() -external void httpSetLength(ffi.Pointer http, int length); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Double, - http_timeout_cb_t, - ffi.Pointer, - ) ->() -external void httpSetTimeout( - ffi.Pointer http, - double timeout, - http_timeout_cb_t cb, - ffi.Pointer user_data, -); - -@ffi.Native)>() -external void httpShutdown(ffi.Pointer http); - -@ffi.Native Function(ffi.Int)>(symbol: 'httpStateString') -external ffi.Pointer _httpStateString(int state); - -ffi.Pointer httpStateString(http_state_e state) { - return _httpStateString(state.value); -} - -@ffi.Native Function(ffi.Int)>(symbol: 'httpStatus') -external ffi.Pointer _httpStatus(int status); - -ffi.Pointer httpStatus(http_status_e status) { - return _httpStatus(status.value); -} - -@ffi.Native, ffi.Pointer)>() -external int httpTrace(ffi.Pointer http, ffi.Pointer uri); - -@ffi.Native Function(ffi.Int)>( - symbol: 'httpURIStatusString', -) -external ffi.Pointer _httpURIStatusString(int status); - -ffi.Pointer httpURIStatusString(http_uri_status_e status) { - return _httpURIStatusString(status.value); -} - -@ffi.Native)>(symbol: 'httpUpdate') -external int _httpUpdate(ffi.Pointer http); - -http_status_e httpUpdate(ffi.Pointer http) { - return http_status_e.fromValue(_httpUpdate(http)); -} - -@ffi.Native, ffi.Int)>() -external int httpWait(ffi.Pointer http, int msec); - -@Deprecated('Use httpWrite2 instead.') -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int httpWrite( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int httpWrite2( - ffi.Pointer http, - ffi.Pointer buffer, - int length, -); - -@ffi.Native, ffi.Int)>( - symbol: 'httpWriteResponse', -) -external int _httpWriteResponse(ffi.Pointer http, int status); - -http_state_e httpWriteResponse(ffi.Pointer http, http_status_e status) { - return http_state_e.fromValue(_httpWriteResponse(http, status.value)); -} - -@ffi.Native() -external double hypot(double arg0, double arg1); - -@ffi.Native() -external double hypotf(double arg0, double arg1); - -@ffi.Native() -external int ilogb(double arg0); - -@ffi.Native() -external int ilogbf(double arg0); - -@ffi.Native() -external int imaxabs(int j); - -@ffi.Native() -external imaxdiv_t imaxdiv(int __numer, int __denom); - -@ffi.Native() -external final in6_addr in6addr_any; - -@ffi.Native() -external final in6_addr in6addr_linklocal_allnodes; - -@ffi.Native() -external final in6_addr in6addr_linklocal_allrouters; - -@ffi.Native() -external final in6_addr in6addr_linklocal_allv2routers; - -@ffi.Native() -external final in6_addr in6addr_loopback; - -@ffi.Native() -external final in6_addr in6addr_nodelocal_allnodes; - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer index(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - socklen_t, - ffi.Int, - __uint8_t, - socklen_t, - __uint8_t, - ffi.Pointer>, - ) ->() -external int inet6_opt_append( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, - int arg4, - int arg5, - ffi.Pointer> arg6, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - socklen_t, - ffi.Int, - __uint8_t, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int inet6_opt_find( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, - ffi.Pointer arg4, - ffi.Pointer> arg5, -); - -@ffi.Native, socklen_t, ffi.Int)>() -external int inet6_opt_finish(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - socklen_t, - ) ->() -external int inet6_opt_get_val( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native, socklen_t)>() -external int inet6_opt_init(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - socklen_t, - ffi.Int, - ffi.Pointer<__uint8_t>, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external int inet6_opt_next( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer<__uint8_t> arg3, - ffi.Pointer arg4, - ffi.Pointer> arg5, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - socklen_t, - ) ->() -external int inet6_opt_set_val( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native< - ffi.Pointer<__uint8_t> Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Int, - ) ->() -external ffi.Pointer<__uint8_t> inet6_option_alloc( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer<__uint8_t>, - ffi.Int, - ffi.Int, - ) ->() -external int inet6_option_append( - ffi.Pointer arg0, - ffi.Pointer<__uint8_t> arg1, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int inet6_option_find( - ffi.Pointer arg0, - ffi.Pointer> arg1, - int arg2, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int inet6_option_init( - ffi.Pointer arg0, - ffi.Pointer> arg1, - int arg2, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer>) ->() -external int inet6_option_next( - ffi.Pointer arg0, - ffi.Pointer> arg1, -); - -@ffi.Native() -external int inet6_option_space(int arg0); - -@ffi.Native, ffi.Pointer)>() -external int inet6_rth_add( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer inet6_rth_getaddr( - ffi.Pointer arg0, - int arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - socklen_t, - ffi.Int, - ffi.Int, - ) ->() -external ffi.Pointer inet6_rth_init( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native, ffi.Pointer)>() -external int inet6_rth_reverse( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native)>() -external int inet6_rth_segments(ffi.Pointer arg0); - -@ffi.Native() -external int inet6_rth_space(int arg0, int arg1); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt) ->() -external int inet6_rthdr_add( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer inet6_rthdr_getaddr( - ffi.Pointer arg0, - int arg1, -); - -@ffi.Native, ffi.Int)>() -external int inet6_rthdr_getflags(ffi.Pointer arg0, int arg1); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer inet6_rthdr_init( - ffi.Pointer arg0, - int arg1, -); - -@ffi.Native, ffi.UnsignedInt)>() -external int inet6_rthdr_lasthop(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int inet6_rthdr_segments(ffi.Pointer arg0); - -@ffi.Native() -external int inet6_rthdr_space(int arg0, int arg1); - -@ffi.Native)>() -external int inet_addr(ffi.Pointer arg0); - -@ffi.Native, ffi.Pointer)>() -external int inet_aton(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external int inet_lnaof(in_addr arg0); - -@ffi.Native() -external in_addr inet_makeaddr(int arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - __darwin_size_t, - ) ->() -external ffi.Pointer inet_net_ntop( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - int __size, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - __darwin_size_t, - ) ->() -external int inet_net_pton( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __size, -); - -@ffi.Native< - ffi.Pointer Function( - in_addr_t, - ffi.Pointer, - __darwin_size_t, - ) ->() -external ffi.Pointer inet_neta( - int arg0, - ffi.Pointer arg1, - int __size, -); - -@ffi.Native() -external int inet_netof(in_addr arg0); - -@ffi.Native)>() -external int inet_network(ffi.Pointer arg0); - -@ffi.Native< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external int inet_nsap_addr( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __maxlen, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer inet_nsap_ntoa( - int __binlen, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native Function(in_addr)>() -external ffi.Pointer inet_ntoa(in_addr arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - socklen_t, - ) ->() -external ffi.Pointer inet_ntop( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __size, -); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int inet_pton( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native, ffi.Int)>() -external int initgroups(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Pointer Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer initstate( - int arg0, - ffi.Pointer arg1, - int __size, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int innetgr( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Char, - ) ->(symbol: 'ippAddBoolean') -external ffi.Pointer _ippAddBoolean( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int value, -); - -ffi.Pointer ippAddBoolean( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int value, -) { - return _ippAddBoolean(ipp, group.value, name, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'ippAddBooleans') -external ffi.Pointer _ippAddBooleans( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int num_values, - ffi.Pointer values, -); - -ffi.Pointer ippAddBooleans( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int num_values, - ffi.Pointer values, -) { - return _ippAddBooleans(ipp, group.value, name, num_values, values); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddCollection') -external ffi.Pointer _ippAddCollection( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - ffi.Pointer value, -); - -ffi.Pointer ippAddCollection( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - ffi.Pointer value, -) { - return _ippAddCollection(ipp, group.value, name, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->(symbol: 'ippAddCollections') -external ffi.Pointer _ippAddCollections( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int num_values, - ffi.Pointer> values, -); - -ffi.Pointer ippAddCollections( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int num_values, - ffi.Pointer> values, -) { - return _ippAddCollections(ipp, group.value, name, num_values, values); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddDate') -external ffi.Pointer _ippAddDate( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - ffi.Pointer value, -); - -ffi.Pointer ippAddDate( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - ffi.Pointer value, -) { - return _ippAddDate(ipp, group.value, name, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'ippAddInteger') -external ffi.Pointer _ippAddInteger( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - int value, -); - -ffi.Pointer ippAddInteger( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - int value, -) { - return _ippAddInteger(ipp, group.value, value_tag.value, name, value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'ippAddIntegers') -external ffi.Pointer _ippAddIntegers( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - int num_values, - ffi.Pointer values, -); - -ffi.Pointer ippAddIntegers( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - int num_values, - ffi.Pointer values, -) { - return _ippAddIntegers( - ipp, - group.value, - value_tag.value, - name, - num_values, - values, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'ippAddOctetString') -external ffi.Pointer _ippAddOctetString( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - ffi.Pointer data, - int datalen, -); - -ffi.Pointer ippAddOctetString( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - ffi.Pointer data, - int datalen, -) { - return _ippAddOctetString(ipp, group.value, name, data, datalen); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->(symbol: 'ippAddOutOfBand') -external ffi.Pointer _ippAddOutOfBand( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, -); - -ffi.Pointer ippAddOutOfBand( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, -) { - return _ippAddOutOfBand(ipp, group.value, value_tag.value, name); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Int, - ) ->(symbol: 'ippAddRange') -external ffi.Pointer _ippAddRange( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int lower, - int upper, -); - -ffi.Pointer ippAddRange( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int lower, - int upper, -) { - return _ippAddRange(ipp, group.value, name, lower, upper); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddRanges') -external ffi.Pointer _ippAddRanges( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int num_values, - ffi.Pointer lower, - ffi.Pointer upper, -); - -ffi.Pointer ippAddRanges( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int num_values, - ffi.Pointer lower, - ffi.Pointer upper, -) { - return _ippAddRanges(ipp, group.value, name, num_values, lower, upper); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ffi.Int, - ) ->(symbol: 'ippAddResolution') -external ffi.Pointer _ippAddResolution( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int units, - int xres, - int yres, -); - -ffi.Pointer ippAddResolution( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - ipp_res_e units, - int xres, - int yres, -) { - return _ippAddResolution(ipp, group.value, name, units.value, xres, yres); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddResolutions') -external ffi.Pointer _ippAddResolutions( - ffi.Pointer ipp, - int group, - ffi.Pointer name, - int num_values, - int units, - ffi.Pointer xres, - ffi.Pointer yres, -); - -ffi.Pointer ippAddResolutions( - ffi.Pointer ipp, - ipp_tag_e group, - ffi.Pointer name, - int num_values, - ipp_res_e units, - ffi.Pointer xres, - ffi.Pointer yres, -) { - return _ippAddResolutions( - ipp, - group.value, - name, - num_values, - units.value, - xres, - yres, - ); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippAddSeparator(ffi.Pointer ipp); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddString') -external ffi.Pointer _ippAddString( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer value, -); - -ffi.Pointer ippAddString( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer value, -) { - return _ippAddString( - ipp, - group.value, - value_tag.value, - name, - language, - value, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippAddStringf') -external ffi.Pointer _ippAddStringf( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer format, -); - -ffi.Pointer ippAddStringf( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer format, -) { - return _ippAddStringf( - ipp, - group.value, - value_tag.value, - name, - language, - format, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - va_list, - ) ->(symbol: 'ippAddStringfv') -external ffi.Pointer _ippAddStringfv( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer format, - va_list ap, -); - -ffi.Pointer ippAddStringfv( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - ffi.Pointer language, - ffi.Pointer format, - va_list ap, -) { - return _ippAddStringfv( - ipp, - group.value, - value_tag.value, - name, - language, - format, - ap, - ); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer>, - ) ->(symbol: 'ippAddStrings') -external ffi.Pointer _ippAddStrings( - ffi.Pointer ipp, - int group, - int value_tag, - ffi.Pointer name, - int num_values, - ffi.Pointer language, - ffi.Pointer> values, -); - -ffi.Pointer ippAddStrings( - ffi.Pointer ipp, - ipp_tag_e group, - ipp_tag_e value_tag, - ffi.Pointer name, - int num_values, - ffi.Pointer language, - ffi.Pointer> values, -) { - return _ippAddStrings( - ipp, - group.value, - value_tag.value, - name, - num_values, - language, - values, - ); -} - -@ffi.Native< - ffi.Size Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external int ippAttributeString( - ffi.Pointer attr, - ffi.Pointer buffer, - int bufsize, -); - -@ffi.Native, ffi.Int)>() -external int ippContainsInteger(ffi.Pointer attr, int value); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int ippContainsString( - ffi.Pointer attr, - ffi.Pointer value, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external ffi.Pointer ippCopyAttribute( - ffi.Pointer dst, - ffi.Pointer attr, - int quickcopy, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ipp_copycb_t, - ffi.Pointer, - ) ->() -external int ippCopyAttributes( - ffi.Pointer dst, - ffi.Pointer src, - int quickcopy, - ipp_copycb_t cb, - ffi.Pointer context, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippCreateRequestedArray( - ffi.Pointer request, -); - -@ffi.Native)>() -external int ippDateToTime(ffi.Pointer date); - -@ffi.Native)>() -external void ippDelete(ffi.Pointer ipp); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void ippDeleteAttribute( - ffi.Pointer ipp, - ffi.Pointer attr, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Int, - ) ->() -external int ippDeleteValues( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - int count, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer ippEnumString( - ffi.Pointer attrname, - int enumvalue, -); - -@ffi.Native, ffi.Pointer)>() -external int ippEnumValue( - ffi.Pointer attrname, - ffi.Pointer enumstring, -); - -@ffi.Native Function(ffi.Int)>(symbol: 'ippErrorString') -external ffi.Pointer _ippErrorString(int error); - -ffi.Pointer ippErrorString(ipp_status_e error) { - return _ippErrorString(error.value); -} - -@ffi.Native)>(symbol: 'ippErrorValue') -external int _ippErrorValue(ffi.Pointer name); - -ipp_status_e ippErrorValue(ffi.Pointer name) { - return ipp_status_e.fromValue(_ippErrorValue(name)); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'ippFindAttribute') -external ffi.Pointer _ippFindAttribute( - ffi.Pointer ipp, - ffi.Pointer name, - int value_tag, -); - -ffi.Pointer ippFindAttribute( - ffi.Pointer ipp, - ffi.Pointer name, - ipp_tag_e value_tag, -) { - return _ippFindAttribute(ipp, name, value_tag.value); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->(symbol: 'ippFindNextAttribute') -external ffi.Pointer _ippFindNextAttribute( - ffi.Pointer ipp, - ffi.Pointer name, - int value_tag, -); - -ffi.Pointer ippFindNextAttribute( - ffi.Pointer ipp, - ffi.Pointer name, - ipp_tag_e value_tag, -) { - return _ippFindNextAttribute(ipp, name, value_tag.value); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippFirstAttribute(ffi.Pointer ipp); - -@ffi.Native, ffi.Int)>() -external int ippGetBoolean(ffi.Pointer attr, int element); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int) ->() -external ffi.Pointer ippGetCollection( - ffi.Pointer attr, - int element, -); - -@ffi.Native)>() -external int ippGetCount(ffi.Pointer attr); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int) ->() -external ffi.Pointer ippGetDate( - ffi.Pointer attr, - int element, -); - -@ffi.Native)>( - symbol: 'ippGetGroupTag', -) -external int _ippGetGroupTag(ffi.Pointer attr); - -ipp_tag_e ippGetGroupTag(ffi.Pointer attr) { - return ipp_tag_e.fromValue(_ippGetGroupTag(attr)); -} - -@ffi.Native, ffi.Int)>() -external int ippGetInteger(ffi.Pointer attr, int element); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippGetName(ffi.Pointer attr); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external ffi.Pointer ippGetOctetString( - ffi.Pointer attr, - int element, - ffi.Pointer datalen, -); - -@ffi.Native)>(symbol: 'ippGetOperation') -external int _ippGetOperation(ffi.Pointer ipp); - -ipp_op_e ippGetOperation(ffi.Pointer ipp) { - return ipp_op_e.fromValue(_ippGetOperation(ipp)); -} - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int ippGetRange( - ffi.Pointer attr, - int element, - ffi.Pointer upper, -); - -@ffi.Native)>() -external int ippGetRequestId(ffi.Pointer ipp); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ippGetResolution( - ffi.Pointer attr, - int element, - ffi.Pointer yres, - ffi.Pointer units, -); - -@ffi.Native)>(symbol: 'ippGetState') -external int _ippGetState(ffi.Pointer ipp); - -ipp_state_e ippGetState(ffi.Pointer ipp) { - return ipp_state_e.fromValue(_ippGetState(ipp)); -} - -@ffi.Native)>(symbol: 'ippGetStatusCode') -external int _ippGetStatusCode(ffi.Pointer ipp); - -ipp_status_e ippGetStatusCode(ffi.Pointer ipp) { - return ipp_status_e.fromValue(_ippGetStatusCode(ipp)); -} - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) ->() -external ffi.Pointer ippGetString( - ffi.Pointer attr, - int element, - ffi.Pointer> language, -); - -@ffi.Native)>( - symbol: 'ippGetValueTag', -) -external int _ippGetValueTag(ffi.Pointer attr); - -ipp_tag_e ippGetValueTag(ffi.Pointer attr) { - return ipp_tag_e.fromValue(_ippGetValueTag(attr)); -} - -@ffi.Native, ffi.Pointer)>() -external int ippGetVersion(ffi.Pointer ipp, ffi.Pointer minor); - -@ffi.Native)>() -external int ippLength(ffi.Pointer ipp); - -@ffi.Native Function()>() -external ffi.Pointer ippNew(); - -@ffi.Native Function(ffi.Int)>(symbol: 'ippNewRequest') -external ffi.Pointer _ippNewRequest(int op); - -ffi.Pointer ippNewRequest(ipp_op_e op) { - return _ippNewRequest(op.value); -} - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippNewResponse(ffi.Pointer request); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ippNextAttribute(ffi.Pointer ipp); - -@ffi.Native Function(ffi.Int)>(symbol: 'ippOpString') -external ffi.Pointer _ippOpString(int op); - -ffi.Pointer ippOpString(ipp_op_e op) { - return _ippOpString(op.value); -} - -@ffi.Native)>(symbol: 'ippOpValue') -external int _ippOpValue(ffi.Pointer name); - -ipp_op_e ippOpValue(ffi.Pointer name) { - return ipp_op_e.fromValue(_ippOpValue(name)); -} - -@ffi.Native() -external int ippPort(); - -@ffi.Native, ffi.Pointer)>( - symbol: 'ippRead', -) -external int _ippRead(ffi.Pointer http, ffi.Pointer ipp); - -ipp_state_e ippRead(ffi.Pointer http, ffi.Pointer ipp) { - return ipp_state_e.fromValue(_ippRead(http, ipp)); -} - -@ffi.Native)>( - symbol: 'ippReadFile', -) -external int _ippReadFile(int fd, ffi.Pointer ipp); - -ipp_state_e ippReadFile(int fd, ffi.Pointer ipp) { - return ipp_state_e.fromValue(_ippReadFile(fd, ipp)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ipp_iocb_t, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippReadIO') -external int _ippReadIO( - ffi.Pointer src, - ipp_iocb_t cb, - int blocking, - ffi.Pointer parent, - ffi.Pointer ipp, -); - -ipp_state_e ippReadIO( - ffi.Pointer src, - ipp_iocb_t cb, - int blocking, - ffi.Pointer parent, - ffi.Pointer ipp, -) { - return ipp_state_e.fromValue(_ippReadIO(src, cb, blocking, parent, ipp)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Int, - ) ->() -external int ippSetBoolean( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - int boolvalue, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ) ->() -external int ippSetCollection( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer colvalue, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ) ->() -external int ippSetDate( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer datevalue, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->(symbol: 'ippSetGroupTag') -external int _ippSetGroupTag( - ffi.Pointer ipp, - ffi.Pointer> attr, - int group_tag, -); - -int ippSetGroupTag( - ffi.Pointer ipp, - ffi.Pointer> attr, - ipp_tag_e group_tag, -) { - return _ippSetGroupTag(ipp, attr, group_tag.value); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Int, - ) ->() -external int ippSetInteger( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - int intvalue, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int ippSetName( - ffi.Pointer ipp, - ffi.Pointer> attr, - ffi.Pointer name, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->() -external int ippSetOctetString( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer data, - int datalen, -); - -@ffi.Native, ffi.Int)>( - symbol: 'ippSetOperation', -) -external int _ippSetOperation(ffi.Pointer ipp, int op); - -int ippSetOperation(ffi.Pointer ipp, ipp_op_e op) { - return _ippSetOperation(ipp, op.value); -} - -@ffi.Native() -external void ippSetPort(int p); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Int, - ffi.Int, - ) ->() -external int ippSetRange( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - int lowervalue, - int uppervalue, -); - -@ffi.Native, ffi.Int)>() -external int ippSetRequestId(ffi.Pointer ipp, int request_id); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.UnsignedInt, - ffi.Int, - ffi.Int, - ) ->(symbol: 'ippSetResolution') -external int _ippSetResolution( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - int unitsvalue, - int xresvalue, - int yresvalue, -); - -int ippSetResolution( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ipp_res_e unitsvalue, - int xresvalue, - int yresvalue, -) { - return _ippSetResolution( - ipp, - attr, - element, - unitsvalue.value, - xresvalue, - yresvalue, - ); -} - -@ffi.Native, ffi.Int)>( - symbol: 'ippSetState', -) -external int _ippSetState(ffi.Pointer ipp, int state); - -int ippSetState(ffi.Pointer ipp, ipp_state_e state) { - return _ippSetState(ipp, state.value); -} - -@ffi.Native, ffi.Int)>( - symbol: 'ippSetStatusCode', -) -external int _ippSetStatusCode(ffi.Pointer ipp, int status); - -int ippSetStatusCode(ffi.Pointer ipp, ipp_status_e status) { - return _ippSetStatusCode(ipp, status.value); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ) ->() -external int ippSetString( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer strvalue, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ) ->() -external int ippSetStringf( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer format, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - va_list, - ) ->() -external int ippSetStringfv( - ffi.Pointer ipp, - ffi.Pointer> attr, - int element, - ffi.Pointer format, - va_list ap, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->(symbol: 'ippSetValueTag') -external int _ippSetValueTag( - ffi.Pointer ipp, - ffi.Pointer> attr, - int value_tag, -); - -int ippSetValueTag( - ffi.Pointer ipp, - ffi.Pointer> attr, - ipp_tag_e value_tag, -) { - return _ippSetValueTag(ipp, attr, value_tag.value); -} - -@ffi.Native, ffi.Int, ffi.Int)>() -external int ippSetVersion(ffi.Pointer ipp, int major, int minor); - -@ffi.Native Function(ffi.Int)>(symbol: 'ippStateString') -external ffi.Pointer _ippStateString(int state); - -ffi.Pointer ippStateString(ipp_state_e state) { - return _ippStateString(state.value); -} - -@ffi.Native Function(ffi.Int)>(symbol: 'ippTagString') -external ffi.Pointer _ippTagString(int tag); - -ffi.Pointer ippTagString(ipp_tag_e tag) { - return _ippTagString(tag.value); -} - -@ffi.Native)>(symbol: 'ippTagValue') -external int _ippTagValue(ffi.Pointer name); - -ipp_tag_e ippTagValue(ffi.Pointer name) { - return ipp_tag_e.fromValue(_ippTagValue(name)); -} - -@ffi.Native Function(time_t)>() -external ffi.Pointer ippTimeToDate(int t); - -@ffi.Native)>() -external int ippValidateAttribute(ffi.Pointer attr); - -@ffi.Native)>() -external int ippValidateAttributes(ffi.Pointer ipp); - -@ffi.Native, ffi.Pointer)>( - symbol: 'ippWrite', -) -external int _ippWrite(ffi.Pointer http, ffi.Pointer ipp); - -ipp_state_e ippWrite(ffi.Pointer http, ffi.Pointer ipp) { - return ipp_state_e.fromValue(_ippWrite(http, ipp)); -} - -@ffi.Native)>( - symbol: 'ippWriteFile', -) -external int _ippWriteFile(int fd, ffi.Pointer ipp); - -ipp_state_e ippWriteFile(int fd, ffi.Pointer ipp) { - return ipp_state_e.fromValue(_ippWriteFile(fd, ipp)); -} - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ipp_iocb_t, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'ippWriteIO') -external int _ippWriteIO( - ffi.Pointer dst, - ipp_iocb_t cb, - int blocking, - ffi.Pointer parent, - ffi.Pointer ipp, -); - -ipp_state_e ippWriteIO( - ffi.Pointer dst, - ipp_iocb_t cb, - int blocking, - ffi.Pointer parent, - ffi.Pointer ipp, -) { - return ipp_state_e.fromValue(_ippWriteIO(dst, cb, blocking, parent, ipp)); -} - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Int Function( - ffi.UnsignedLong, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int iruserok( - int arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int iruserok_sa( - ffi.Pointer arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native() -external int isatty(int arg0); - -@ffi.Native() -external int issetugid(); - -@ffi.Native() -external double j0(double arg0); - -@ffi.Native() -external double j1(double arg0); - -@ffi.Native() -external double jn(int arg0, double arg1); - -@ffi.Native)>() -external int jrand48(ffi.Pointer arg0); - -@ffi.Native() -external final CFStringRef kAERemoteProcessNameKey; - -@ffi.Native() -external final CFStringRef kAERemoteProcessProcessIDKey; - -@ffi.Native() -external final CFStringRef kAERemoteProcessURLKey; - -@ffi.Native() -external final CFStringRef kAERemoteProcessUserIDKey; - -@ffi.Native() -external CFStringRef kAXAttachmentTextAttribute; - -@ffi.Native() -external CFStringRef kAXAutocorrectedTextAttribute; - -@ffi.Native() -external CFStringRef kAXBackgroundColorTextAttribute; - -@ffi.Native() -external CFStringRef kAXFontFamilyKey; - -@ffi.Native() -external CFStringRef kAXFontNameKey; - -@ffi.Native() -external CFStringRef kAXFontSizeKey; - -@ffi.Native() -external CFStringRef kAXFontTextAttribute; - -@ffi.Native() -external CFStringRef kAXForegoundColorTextAttribute; - -@ffi.Native() -external CFStringRef kAXForegroundColorTextAttribute; - -@ffi.Native() -external CFStringRef kAXLinkTextAttribute; - -@ffi.Native() -external CFStringRef kAXListItemIndexTextAttribute; - -@ffi.Native() -external CFStringRef kAXListItemLevelTextAttribute; - -@ffi.Native() -external CFStringRef kAXListItemPrefixTextAttribute; - -@ffi.Native() -external CFStringRef kAXMarkedMisspelledTextAttribute; - -@ffi.Native() -external CFStringRef kAXMisspelledTextAttribute; - -@ffi.Native() -external CFStringRef kAXNaturalLanguageTextAttribute; - -@ffi.Native() -external CFStringRef kAXReplacementStringTextAttribute; - -@ffi.Native() -external CFStringRef kAXShadowTextAttribute; - -@ffi.Native() -external CFStringRef kAXStrikethroughColorTextAttribute; - -@ffi.Native() -external CFStringRef kAXStrikethroughTextAttribute; - -@ffi.Native() -external CFStringRef kAXSuperscriptTextAttribute; - -@ffi.Native() -external CFStringRef kAXTrustedCheckOptionPrompt; - -@ffi.Native() -external CFStringRef kAXUnderlineColorTextAttribute; - -@ffi.Native() -external CFStringRef kAXUnderlineTextAttribute; - -@ffi.Native() -external CFStringRef kAXVisibleNameKey; - -@ffi.Native() -external final double kCFAbsoluteTimeIntervalSince1904; - -@ffi.Native() -external final double kCFAbsoluteTimeIntervalSince1970; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorDefault; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorMalloc; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorMallocZone; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorNull; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorSystemDefault; - -@ffi.Native() -external final CFAllocatorRef kCFAllocatorUseContext; - -@ffi.Native() -external final CFCalendarIdentifier kCFBanglaCalendar; - -@ffi.Native() -external final CFBooleanRef kCFBooleanFalse; - -@ffi.Native() -external final CFBooleanRef kCFBooleanTrue; - -@ffi.Native() -external final CFCalendarIdentifier kCFBuddhistCalendar; - -@ffi.Native() -external final CFStringRef kCFBundleDevelopmentRegionKey; - -@ffi.Native() -external final CFStringRef kCFBundleExecutableKey; - -@ffi.Native() -external final CFStringRef kCFBundleIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFBundleInfoDictionaryVersionKey; - -@ffi.Native() -external final CFStringRef kCFBundleLocalizationsKey; - -@ffi.Native() -external final CFStringRef kCFBundleNameKey; - -@ffi.Native() -external final CFStringRef kCFBundleVersionKey; - -@ffi.Native() -external final CFCalendarIdentifier kCFChineseCalendar; - -@ffi.Native() -external final CFBagCallBacks kCFCopyStringBagCallBacks; - -@ffi.Native() -external final CFDictionaryKeyCallBacks kCFCopyStringDictionaryKeyCallBacks; - -@ffi.Native() -external final CFSetCallBacks kCFCopyStringSetCallBacks; - -@ffi.Native() -external double kCFCoreFoundationVersionNumber; - -@ffi.Native() -external CFStringRef kCFDNSServiceFailureKey; - -@ffi.Native() -external final CFCalendarIdentifier kCFDangiCalendar; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterAMSymbol; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterCalendar; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterCalendarName; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterDefaultDate; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterDefaultFormat; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterDoesRelativeDateFormattingKey; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterEraSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterGregorianStartDate; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterIsLenient; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterLongEraSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterPMSymbol; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterQuarterSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortQuarterSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortStandaloneMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortStandaloneQuarterSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortStandaloneWeekdaySymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterShortWeekdaySymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterStandaloneMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterStandaloneQuarterSymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterStandaloneWeekdaySymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterTimeZone; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterTwoDigitStartDate; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterVeryShortMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey -kCFDateFormatterVeryShortStandaloneMonthSymbols; - -@ffi.Native() -external final CFDateFormatterKey -kCFDateFormatterVeryShortStandaloneWeekdaySymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterVeryShortWeekdaySymbols; - -@ffi.Native() -external final CFDateFormatterKey kCFDateFormatterWeekdaySymbols; - -@ffi.Native() -external final CFStringRef kCFErrorDescriptionKey; - -@ffi.Native() -external CFStringRef kCFErrorDomainCFNetwork; - -@ffi.Native() -external final CFStringRef kCFErrorDomainCGImageMetadata; - -@ffi.Native() -external final CFErrorDomain kCFErrorDomainCocoa; - -@ffi.Native() -external final CFErrorDomain kCFErrorDomainMach; - -@ffi.Native() -external final CFErrorDomain kCFErrorDomainOSStatus; - -@ffi.Native() -external final CFErrorDomain kCFErrorDomainPOSIX; - -@ffi.Native() -external CFStringRef kCFErrorDomainWinSock; - -@ffi.Native() -external final CFStringRef kCFErrorFilePathKey; - -@ffi.Native() -external final CFStringRef kCFErrorLocalizedDescriptionKey; - -@ffi.Native() -external final CFStringRef kCFErrorLocalizedFailureKey; - -@ffi.Native() -external final CFStringRef kCFErrorLocalizedFailureReasonKey; - -@ffi.Native() -external final CFStringRef kCFErrorLocalizedRecoverySuggestionKey; - -@ffi.Native() -external final CFStringRef kCFErrorURLKey; - -@ffi.Native() -external final CFStringRef kCFErrorUnderlyingErrorKey; - -@ffi.Native() -external CFStringRef kCFFTPResourceGroup; - -@ffi.Native() -external CFStringRef kCFFTPResourceLink; - -@ffi.Native() -external CFStringRef kCFFTPResourceModDate; - -@ffi.Native() -external CFStringRef kCFFTPResourceMode; - -@ffi.Native() -external CFStringRef kCFFTPResourceName; - -@ffi.Native() -external CFStringRef kCFFTPResourceOwner; - -@ffi.Native() -external CFStringRef kCFFTPResourceSize; - -@ffi.Native() -external CFStringRef kCFFTPResourceType; - -@ffi.Native() -external CFStringRef kCFFTPStatusCodeKey; - -@ffi.Native() -external CFStringRef kCFGetAddrInfoFailureKey; - -@ffi.Native() -external final CFCalendarIdentifier kCFGregorianCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFGujaratiCalendar; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationAccountDomain; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationPassword; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeBasic; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeDigest; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeKerberos; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeNTLM; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeNegotiate; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeNegotiate2; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationSchemeXMobileMeAuthToken; - -@ffi.Native() -external CFStringRef kCFHTTPAuthenticationUsername; - -@ffi.Native() -external CFStringRef kCFHTTPVersion1_0; - -@ffi.Native() -external CFStringRef kCFHTTPVersion1_1; - -@ffi.Native() -external CFStringRef kCFHTTPVersion2_0; - -@ffi.Native() -external CFStringRef kCFHTTPVersion3_0; - -@ffi.Native() -external final CFCalendarIdentifier kCFHebrewCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFISO8601Calendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFIndianCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFIslamicCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFIslamicCivilCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFIslamicTabularCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFJapaneseCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFKannadaCalendar; - -@ffi.Native() -external final CFLocaleKey kCFLocaleAlternateQuotationBeginDelimiterKey; - -@ffi.Native() -external final CFLocaleKey kCFLocaleAlternateQuotationEndDelimiterKey; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCalendar; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCalendarIdentifier; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCollationIdentifier; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCollatorIdentifier; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCountryCode; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCurrencyCode; - -@ffi.Native() -external final CFLocaleKey kCFLocaleCurrencySymbol; - -@ffi.Native() -external final CFNotificationName kCFLocaleCurrentLocaleDidChangeNotification; - -@ffi.Native() -external final CFLocaleKey kCFLocaleDecimalSeparator; - -@ffi.Native() -external final CFLocaleKey kCFLocaleExemplarCharacterSet; - -@ffi.Native() -external final CFLocaleKey kCFLocaleGroupingSeparator; - -@ffi.Native() -external final CFLocaleKey kCFLocaleIdentifier; - -@ffi.Native() -external final CFLocaleKey kCFLocaleLanguageCode; - -@ffi.Native() -external final CFLocaleKey kCFLocaleMeasurementSystem; - -@ffi.Native() -external final CFLocaleKey kCFLocaleQuotationBeginDelimiterKey; - -@ffi.Native() -external final CFLocaleKey kCFLocaleQuotationEndDelimiterKey; - -@ffi.Native() -external final CFLocaleKey kCFLocaleScriptCode; - -@ffi.Native() -external final CFLocaleKey kCFLocaleUsesMetricSystem; - -@ffi.Native() -external final CFLocaleKey kCFLocaleVariantCode; - -@ffi.Native() -external final CFCalendarIdentifier kCFMalayalamCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFMarathiCalendar; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesExceptionsList; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesExcludeSimpleHostnames; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesFTPEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesFTPPassive; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesFTPPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesFTPProxy; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesGopherEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesGopherPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesGopherProxy; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPProxy; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPSEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPSPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesHTTPSProxy; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesProxyAutoConfigEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesProxyAutoConfigJavaScript; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesProxyAutoConfigURLString; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesProxyAutoDiscoveryEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesRTSPEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesRTSPPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesRTSPProxy; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesSOCKSEnable; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesSOCKSPort; - -@ffi.Native() -external CFStringRef kCFNetworkProxiesSOCKSProxy; - -@ffi.Native() -external final CFNullRef kCFNull; - -@ffi.Native() -external final CFNumberFormatterKey -kCFNumberFormatterAlwaysShowDecimalSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterCurrencyCode; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterCurrencyDecimalSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterCurrencyGroupingSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterCurrencySymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterDecimalSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterDefaultFormat; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterExponentSymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterFormatWidth; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterGroupingSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterGroupingSize; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterInfinitySymbol; - -@ffi.Native() -external final CFNumberFormatterKey -kCFNumberFormatterInternationalCurrencySymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterIsLenient; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMaxFractionDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMaxIntegerDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMaxSignificantDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMinFractionDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMinGroupingDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMinIntegerDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMinSignificantDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMinusSign; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterMultiplier; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterNaNSymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterNegativePrefix; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterNegativeSuffix; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPaddingCharacter; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPaddingPosition; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPerMillSymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPercentSymbol; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPlusSign; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPositivePrefix; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterPositiveSuffix; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterRoundingIncrement; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterRoundingMode; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterSecondaryGroupingSize; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterUseGroupingSeparator; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterUseSignificantDigits; - -@ffi.Native() -external final CFNumberFormatterKey kCFNumberFormatterZeroSymbol; - -@ffi.Native() -external final CFNumberRef kCFNumberNaN; - -@ffi.Native() -external final CFNumberRef kCFNumberNegativeInfinity; - -@ffi.Native() -external final CFNumberRef kCFNumberPositiveInfinity; - -@ffi.Native() -external final CFCalendarIdentifier kCFOdiaCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFPersianCalendar; - -@ffi.Native() -external final CFStringRef kCFPlugInDynamicRegisterFunctionKey; - -@ffi.Native() -external final CFStringRef kCFPlugInDynamicRegistrationKey; - -@ffi.Native() -external final CFStringRef kCFPlugInFactoriesKey; - -@ffi.Native() -external final CFStringRef kCFPlugInTypesKey; - -@ffi.Native() -external final CFStringRef kCFPlugInUnloadFunctionKey; - -@ffi.Native() -external CFStringRef kCFPreferencesAnyApplication; - -@ffi.Native() -external CFStringRef kCFPreferencesAnyHost; - -@ffi.Native() -external CFStringRef kCFPreferencesAnyUser; - -@ffi.Native() -external CFStringRef kCFPreferencesCurrentApplication; - -@ffi.Native() -external CFStringRef kCFPreferencesCurrentHost; - -@ffi.Native() -external CFStringRef kCFPreferencesCurrentUser; - -@ffi.Native() -external CFStringRef kCFProxyAutoConfigurationHTTPResponseKey; - -@ffi.Native() -external CFStringRef kCFProxyAutoConfigurationJavaScriptKey; - -@ffi.Native() -external CFStringRef kCFProxyAutoConfigurationURLKey; - -@ffi.Native() -external CFStringRef kCFProxyHostNameKey; - -@ffi.Native() -external CFStringRef kCFProxyPasswordKey; - -@ffi.Native() -external CFStringRef kCFProxyPortNumberKey; - -@ffi.Native() -external CFStringRef kCFProxyTypeAutoConfigurationJavaScript; - -@ffi.Native() -external CFStringRef kCFProxyTypeAutoConfigurationURL; - -@ffi.Native() -external CFStringRef kCFProxyTypeFTP; - -@ffi.Native() -external CFStringRef kCFProxyTypeHTTP; - -@ffi.Native() -external CFStringRef kCFProxyTypeHTTPS; - -@ffi.Native() -external CFStringRef kCFProxyTypeKey; - -@ffi.Native() -external CFStringRef kCFProxyTypeNone; - -@ffi.Native() -external CFStringRef kCFProxyTypeSOCKS; - -@ffi.Native() -external CFStringRef kCFProxyUsernameKey; - -@ffi.Native() -external final CFCalendarIdentifier kCFRepublicOfChinaCalendar; - -@ffi.Native() -external final CFRunLoopMode kCFRunLoopCommonModes; - -@ffi.Native() -external final CFRunLoopMode kCFRunLoopDefaultMode; - -@ffi.Native() -external CFStringRef kCFSOCKSNegotiationMethodKey; - -@ffi.Native() -external CFStringRef kCFSOCKSStatusCodeKey; - -@ffi.Native() -external CFStringRef kCFSOCKSVersionKey; - -@ffi.Native() -external final CFStringRef kCFSocketCommandKey; - -@ffi.Native() -external final CFStringRef kCFSocketErrorKey; - -@ffi.Native() -external final CFStringRef kCFSocketNameKey; - -@ffi.Native() -external final CFStringRef kCFSocketRegisterCommand; - -@ffi.Native() -external final CFStringRef kCFSocketResultKey; - -@ffi.Native() -external final CFStringRef kCFSocketRetrieveCommand; - -@ffi.Native() -external final CFStringRef kCFSocketValueKey; - -@ffi.Native() -external final int kCFStreamErrorDomainFTP; - -@ffi.Native() -external final int kCFStreamErrorDomainHTTP; - -@ffi.Native() -external final int kCFStreamErrorDomainMach; - -@ffi.Native() -external final int kCFStreamErrorDomainNetDB; - -@ffi.Native() -external final int kCFStreamErrorDomainNetServices; - -@ffi.Native() -external final int kCFStreamErrorDomainSOCKS; - -@ffi.Native() -external final int kCFStreamErrorDomainSSL; - -@ffi.Native() -external final int kCFStreamErrorDomainSystemConfiguration; - -@ffi.Native() -external final int kCFStreamErrorDomainWinSock; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceType; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeAVStreaming; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeBackground; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeCallSignaling; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeResponsiveAV; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeResponsiveData; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeVideo; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeVoIP; - -@ffi.Native() -external CFStringRef kCFStreamNetworkServiceTypeVoice; - -@ffi.Native() -external CFStringRef kCFStreamPropertyAllowConstrainedNetworkAccess; - -@ffi.Native() -external CFStringRef kCFStreamPropertyAllowExpensiveNetworkAccess; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertyAppendToFile; - -@ffi.Native() -external CFStringRef kCFStreamPropertyConnectionIsCellular; - -@ffi.Native() -external CFStringRef kCFStreamPropertyConnectionIsExpensive; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertyDataWritten; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPAttemptPersistentConnection; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPFetchResourceInfo; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPFileTransferOffset; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPPassword; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPProxy; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPProxyHost; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPProxyPassword; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPProxyPort; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPProxyUser; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPResourceSize; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPUsePassiveMode; - -@ffi.Native() -external CFStringRef kCFStreamPropertyFTPUserName; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertyFileCurrentOffset; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPAttemptPersistentConnection; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPFinalRequest; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPFinalURL; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPProxy; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPProxyHost; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPProxyPort; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPRequestBytesWrittenCount; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPResponseHeader; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPSProxyHost; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPSProxyPort; - -@ffi.Native() -external CFStringRef kCFStreamPropertyHTTPShouldAutoredirect; - -@ffi.Native() -external CFStringRef kCFStreamPropertyNoCellular; - -@ffi.Native() -external CFStringRef kCFStreamPropertyProxyLocalBypass; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSPassword; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSProxy; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSProxyHost; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSProxyPort; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSUser; - -@ffi.Native() -external CFStringRef kCFStreamPropertySOCKSVersion; - -@ffi.Native() -external CFStringRef kCFStreamPropertySSLContext; - -@ffi.Native() -external CFStringRef kCFStreamPropertySSLPeerCertificates; - -@ffi.Native() -external CFStringRef kCFStreamPropertySSLPeerTrust; - -@ffi.Native() -external CFStringRef kCFStreamPropertySSLSettings; - -@ffi.Native() -external CFStringRef kCFStreamPropertyShouldCloseNativeSocket; - -@ffi.Native() -external CFStringRef kCFStreamPropertySocketExtendedBackgroundIdleMode; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertySocketNativeHandle; - -@ffi.Native() -external CFStringRef kCFStreamPropertySocketRemoteHost; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertySocketRemoteHostName; - -@ffi.Native() -external CFStringRef kCFStreamPropertySocketRemoteNetService; - -@ffi.Native() -external final CFStreamPropertyKey kCFStreamPropertySocketRemotePortNumber; - -@ffi.Native() -external CFStringRef kCFStreamPropertySocketSecurityLevel; - -@ffi.Native() -external CFStringRef kCFStreamSSLAllowsAnyRoot; - -@ffi.Native() -external CFStringRef kCFStreamSSLAllowsExpiredCertificates; - -@ffi.Native() -external CFStringRef kCFStreamSSLAllowsExpiredRoots; - -@ffi.Native() -external CFStringRef kCFStreamSSLCertificates; - -@ffi.Native() -external CFStringRef kCFStreamSSLIsServer; - -@ffi.Native() -external CFStringRef kCFStreamSSLLevel; - -@ffi.Native() -external CFStringRef kCFStreamSSLPeerName; - -@ffi.Native() -external CFStringRef kCFStreamSSLValidatesCertificateChain; - -@ffi.Native() -external CFStringRef kCFStreamSocketSOCKSVersion4; - -@ffi.Native() -external CFStringRef kCFStreamSocketSOCKSVersion5; - -@ffi.Native() -external CFStringRef kCFStreamSocketSecurityLevelNegotiatedSSL; - -@ffi.Native() -external CFStringRef kCFStreamSocketSecurityLevelNone; - -@ffi.Native() -external CFStringRef kCFStreamSocketSecurityLevelSSLv2; - -@ffi.Native() -external CFStringRef kCFStreamSocketSecurityLevelSSLv3; - -@ffi.Native() -external CFStringRef kCFStreamSocketSecurityLevelTLSv1; - -@ffi.Native() -external final CFBinaryHeapCallBacks kCFStringBinaryHeapCallBacks; - -@ffi.Native() -external final CFStringRef kCFStringTransformFullwidthHalfwidth; - -@ffi.Native() -external final CFStringRef kCFStringTransformHiraganaKatakana; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinArabic; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinCyrillic; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinGreek; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinHangul; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinHebrew; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinHiragana; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinKatakana; - -@ffi.Native() -external final CFStringRef kCFStringTransformLatinThai; - -@ffi.Native() -external final CFStringRef kCFStringTransformMandarinLatin; - -@ffi.Native() -external final CFStringRef kCFStringTransformStripCombiningMarks; - -@ffi.Native() -external final CFStringRef kCFStringTransformStripDiacritics; - -@ffi.Native() -external final CFStringRef kCFStringTransformToLatin; - -@ffi.Native() -external final CFStringRef kCFStringTransformToUnicodeName; - -@ffi.Native() -external final CFStringRef kCFStringTransformToXMLHex; - -@ffi.Native() -external final CFCalendarIdentifier kCFTamilCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFTeluguCalendar; - -@ffi.Native() -external final CFNotificationName -kCFTimeZoneSystemTimeZoneDidChangeNotification; - -@ffi.Native() -external final CFArrayCallBacks kCFTypeArrayCallBacks; - -@ffi.Native() -external final CFBagCallBacks kCFTypeBagCallBacks; - -@ffi.Native() -external final CFDictionaryKeyCallBacks kCFTypeDictionaryKeyCallBacks; - -@ffi.Native() -external final CFDictionaryValueCallBacks kCFTypeDictionaryValueCallBacks; - -@ffi.Native() -external final CFSetCallBacks kCFTypeSetCallBacks; - -@ffi.Native() -external final CFStringRef kCFURLAddedToDirectoryDateKey; - -@ffi.Native() -external final CFStringRef kCFURLApplicationIsScriptableKey; - -@ffi.Native() -external final CFStringRef kCFURLAttributeModificationDateKey; - -@ffi.Native() -external final CFStringRef kCFURLCanonicalPathKey; - -@ffi.Native() -external final CFStringRef kCFURLContentAccessDateKey; - -@ffi.Native() -external final CFStringRef kCFURLContentModificationDateKey; - -@ffi.Native() -external final CFStringRef kCFURLCreationDateKey; - -@ffi.Native() -external final CFStringRef kCFURLCustomIconKey; - -@ffi.Native() -external final CFStringRef kCFURLDirectoryEntryCountKey; - -@ffi.Native() -external final CFStringRef kCFURLDocumentIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLEffectiveIconKey; - -@ffi.Native() -external CFStringRef kCFURLErrorFailingURLErrorKey; - -@ffi.Native() -external CFStringRef kCFURLErrorFailingURLStringErrorKey; - -@ffi.Native() -external final CFStringRef kCFURLFileAllocatedSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLFileContentIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLFileDirectoryContents; - -@ffi.Native() -external final CFStringRef kCFURLFileExists; - -@ffi.Native() -external final CFStringRef kCFURLFileIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLFileLastModificationTime; - -@ffi.Native() -external final CFStringRef kCFURLFileLength; - -@ffi.Native() -external final CFStringRef kCFURLFileOwnerID; - -@ffi.Native() -external final CFStringRef kCFURLFilePOSIXMode; - -@ffi.Native() -external final CFStringRef kCFURLFileProtectionComplete; - -@ffi.Native() -external final CFStringRef kCFURLFileProtectionCompleteUnlessOpen; - -@ffi.Native() -external final CFStringRef -kCFURLFileProtectionCompleteUntilFirstUserAuthentication; - -@ffi.Native() -external final CFStringRef kCFURLFileProtectionCompleteWhenUserInactive; - -@ffi.Native() -external final CFStringRef kCFURLFileProtectionKey; - -@ffi.Native() -external final CFStringRef kCFURLFileProtectionNone; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeBlockSpecial; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeCharacterSpecial; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeDirectory; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeKey; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeNamedPipe; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeRegular; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeSocket; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeSymbolicLink; - -@ffi.Native() -external final CFStringRef kCFURLFileResourceTypeUnknown; - -@ffi.Native() -external final CFStringRef kCFURLFileSecurityKey; - -@ffi.Native() -external final CFStringRef kCFURLFileSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLGenerationIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLHTTPStatusCode; - -@ffi.Native() -external final CFStringRef kCFURLHTTPStatusLine; - -@ffi.Native() -external final CFStringRef kCFURLHasHiddenExtensionKey; - -@ffi.Native() -external final CFStringRef kCFURLIsAliasFileKey; - -@ffi.Native() -external final CFStringRef kCFURLIsApplicationKey; - -@ffi.Native() -external final CFStringRef kCFURLIsDirectoryKey; - -@ffi.Native() -external final CFStringRef kCFURLIsExcludedFromBackupKey; - -@ffi.Native() -external final CFStringRef kCFURLIsExecutableKey; - -@ffi.Native() -external final CFStringRef kCFURLIsHiddenKey; - -@ffi.Native() -external final CFStringRef kCFURLIsMountTriggerKey; - -@ffi.Native() -external final CFStringRef kCFURLIsPackageKey; - -@ffi.Native() -external final CFStringRef kCFURLIsPurgeableKey; - -@ffi.Native() -external final CFStringRef kCFURLIsReadableKey; - -@ffi.Native() -external final CFStringRef kCFURLIsRegularFileKey; - -@ffi.Native() -external final CFStringRef kCFURLIsSparseKey; - -@ffi.Native() -external final CFStringRef kCFURLIsSymbolicLinkKey; - -@ffi.Native() -external final CFStringRef kCFURLIsSystemImmutableKey; - -@ffi.Native() -external final CFStringRef kCFURLIsUbiquitousItemKey; - -@ffi.Native() -external final CFStringRef kCFURLIsUserImmutableKey; - -@ffi.Native() -external final CFStringRef kCFURLIsVolumeKey; - -@ffi.Native() -external final CFStringRef kCFURLIsWritableKey; - -@ffi.Native() -external final CFStringRef kCFURLKeysOfUnsetValuesKey; - -@ffi.Native() -external final CFStringRef kCFURLLabelColorKey; - -@ffi.Native() -external final CFStringRef kCFURLLabelNumberKey; - -@ffi.Native() -external final CFStringRef kCFURLLinkCountKey; - -@ffi.Native() -external final CFStringRef kCFURLLocalizedLabelKey; - -@ffi.Native() -external final CFStringRef kCFURLLocalizedNameKey; - -@ffi.Native() -external final CFStringRef kCFURLLocalizedTypeDescriptionKey; - -@ffi.Native() -external final CFStringRef kCFURLMayHaveExtendedAttributesKey; - -@ffi.Native() -external final CFStringRef kCFURLMayShareFileContentKey; - -@ffi.Native() -external final CFStringRef kCFURLNameKey; - -@ffi.Native() -external final CFStringRef kCFURLParentDirectoryURLKey; - -@ffi.Native() -external final CFStringRef kCFURLPathKey; - -@ffi.Native() -external final CFStringRef kCFURLPreferredIOBlockSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLQuarantinePropertiesKey; - -@ffi.Native() -external final CFStringRef kCFURLTagNamesKey; - -@ffi.Native() -external final CFStringRef kCFURLTotalFileAllocatedSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLTotalFileSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLTypeIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemDownloadingErrorKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemDownloadingStatusCurrent; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemDownloadingStatusDownloaded; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemDownloadingStatusKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemDownloadingStatusNotDownloaded; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemHasUnresolvedConflictsKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsDownloadedKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsDownloadingKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsExcludedFromSyncKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsSyncPausedKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsUploadedKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemIsUploadingKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemPercentDownloadedKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemPercentUploadedKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemSupportedSyncControlsKey; - -@ffi.Native() -external final CFStringRef kCFURLUbiquitousItemUploadingErrorKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeAvailableCapacityForImportantUsageKey; - -@ffi.Native() -external final CFStringRef -kCFURLVolumeAvailableCapacityForOpportunisticUsageKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeAvailableCapacityKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeCreationDateKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIdentifierKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsAutomountedKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsBrowsableKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsEjectableKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsEncryptedKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsInternalKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsJournalingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsLocalKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsReadOnlyKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsRemovableKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeIsRootFileSystemKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeLocalizedFormatDescriptionKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeLocalizedNameKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeMaximumFileSizeKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeMountFromLocationKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeNameKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeResourceCountKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSubtypeKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsAccessPermissionsKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsAdvisoryFileLockingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsCasePreservedNamesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsCaseSensitiveNamesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsCompressionKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsExclusiveRenamingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsExtendedSecurityKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsFileCloningKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsFileProtectionKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsHardLinksKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsImmutableFilesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsJournalingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsPersistentIDsKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsRenamingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsRootDirectoryDatesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsSparseFilesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsSwapRenamingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsSymbolicLinksKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsVolumeSizesKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeSupportsZeroRunsKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeTotalCapacityKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeTypeNameKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeURLForRemountingKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeURLKey; - -@ffi.Native() -external final CFStringRef kCFURLVolumeUUIDStringKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationAlertHeaderKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationAlertMessageKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationAlertTopMostKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationAlternateButtonTitleKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationCheckBoxTitlesKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationDefaultButtonTitleKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationIconURLKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationKeyboardTypesKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationLocalizationURLKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationOtherButtonTitleKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationPopUpSelectionKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationPopUpTitlesKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationProgressIndicatorValueKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationSoundURLKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationTextFieldTitlesKey; - -@ffi.Native() -external final CFStringRef kCFUserNotificationTextFieldValuesKey; - -@ffi.Native() -external final CFCalendarIdentifier kCFVietnameseCalendar; - -@ffi.Native() -external final CFCalendarIdentifier kCFVikramCalendar; - -@ffi.Native() -external final CFStringRef kCFXMLTreeErrorDescription; - -@ffi.Native() -external final CFStringRef kCFXMLTreeErrorLineNumber; - -@ffi.Native() -external final CFStringRef kCFXMLTreeErrorLocation; - -@ffi.Native() -external final CFStringRef kCFXMLTreeErrorStatusCode; - -@ffi.Native() -external CFStringRef kCGAdaptiveMaximumBitDepth; - -@ffi.Native() -external CFStringRef kCGColorBlack; - -@ffi.Native() -external CFStringRef kCGColorClear; - -@ffi.Native() -external CFStringRef kCGColorConversionBlackPointCompensation; - -@ffi.Native() -external CFStringRef kCGColorConversionTRCSize; - -@ffi.Native() -external CFStringRef kCGColorSpaceACESCGLinear; - -@ffi.Native() -external CFStringRef kCGColorSpaceAdobeRGB1998; - -@ffi.Native() -external CFStringRef kCGColorSpaceCoreMedia709; - -@ffi.Native() -external CFStringRef kCGColorSpaceDCIP3; - -@ffi.Native() -external CFStringRef kCGColorSpaceDisplayP3; - -@ffi.Native() -external CFStringRef kCGColorSpaceDisplayP3_HLG; - -@ffi.Native() -external CFStringRef kCGColorSpaceDisplayP3_PQ; - -@ffi.Native() -external CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedDisplayP3; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedGray; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedITUR_2020; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedLinearDisplayP3; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedLinearGray; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedLinearITUR_2020; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedLinearSRGB; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedRange; - -@ffi.Native() -external CFStringRef kCGColorSpaceExtendedSRGB; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericCMYK; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericGray; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericGrayGamma2_2; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericLab; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericRGB; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericRGBLinear; - -@ffi.Native() -external CFStringRef kCGColorSpaceGenericXYZ; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2020; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2020_HLG; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2020_PQ; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2020_sRGBGamma; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2100_HLG; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_2100_PQ; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_709; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_709_HLG; - -@ffi.Native() -external CFStringRef kCGColorSpaceITUR_709_PQ; - -@ffi.Native() -external CFStringRef kCGColorSpaceLinearDisplayP3; - -@ffi.Native() -external CFStringRef kCGColorSpaceLinearGray; - -@ffi.Native() -external CFStringRef kCGColorSpaceLinearITUR_2020; - -@ffi.Native() -external CFStringRef kCGColorSpaceLinearSRGB; - -@ffi.Native() -external CFStringRef kCGColorSpaceROMMRGB; - -@ffi.Native() -external CFStringRef kCGColorSpaceSRGB; - -@ffi.Native() -external CFStringRef kCGColorWhite; - -@ffi.Native() -external CFStringRef kCGComputeHDRStats; - -@ffi.Native() -external CFStringRef kCGContentAverageLightLevel; - -@ffi.Native() -external CFStringRef kCGContentAverageLightLevelNits; - -@ffi.Native() -external double kCGDefaultHDRImageContentHeadroom; - -@ffi.Native() -external CFStringRef kCGDisplayShowDuplicateLowResolutionModes; - -@ffi.Native() -external CFStringRef kCGDisplayStreamColorSpace; - -@ffi.Native() -external CFStringRef kCGDisplayStreamDestinationRect; - -@ffi.Native() -external CFStringRef kCGDisplayStreamMinimumFrameTime; - -@ffi.Native() -external CFStringRef kCGDisplayStreamPreserveAspectRatio; - -@ffi.Native() -external CFStringRef kCGDisplayStreamQueueDepth; - -@ffi.Native() -external CFStringRef kCGDisplayStreamShowCursor; - -@ffi.Native() -external CFStringRef kCGDisplayStreamSourceRect; - -@ffi.Native() -external CFStringRef kCGDisplayStreamYCbCrMatrix; - -@ffi.Native() -external CFStringRef kCGDisplayStreamYCbCrMatrix_ITU_R_601_4; - -@ffi.Native() -external CFStringRef kCGDisplayStreamYCbCrMatrix_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCGDisplayStreamYCbCrMatrix_SMPTE_240M_1995; - -@ffi.Native() -external CFStringRef kCGDynamicRangeConstrained; - -@ffi.Native() -external CFStringRef kCGDynamicRangeHigh; - -@ffi.Native() -external CFStringRef kCGDynamicRangeStandard; - -@ffi.Native() -external CFStringRef kCGEXRToneMappingGammaDefog; - -@ffi.Native() -external CFStringRef kCGEXRToneMappingGammaExposure; - -@ffi.Native() -external CFStringRef kCGEXRToneMappingGammaKneeHigh; - -@ffi.Native() -external CFStringRef kCGEXRToneMappingGammaKneeLow; - -@ffi.Native() -external CFStringRef kCGFontVariationAxisDefaultValue; - -@ffi.Native() -external CFStringRef kCGFontVariationAxisMaxValue; - -@ffi.Native() -external CFStringRef kCGFontVariationAxisMinValue; - -@ffi.Native() -external CFStringRef kCGFontVariationAxisName; - -@ffi.Native() -external CFStringRef kCGImageAnimationDelayTime; - -@ffi.Native() -external CFStringRef kCGImageAnimationLoopCount; - -@ffi.Native() -external CFStringRef kCGImageAnimationStartIndex; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataInfoColorSpace; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataInfoData; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataInfoDataDescription; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataInfoMetadata; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeDepth; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeDisparity; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeHDRGainMap; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeISOGainMap; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypePortraitEffectsMatte; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationGlassesMatte; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationHairMatte; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationSkinMatte; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationSkyMatte; - -@ffi.Native() -external CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationTeethMatte; - -@ffi.Native() -external CFStringRef kCGImageDestinationBackgroundColor; - -@ffi.Native() -external CFStringRef kCGImageDestinationDateTime; - -@ffi.Native() -external CFStringRef kCGImageDestinationEmbedThumbnail; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeAlternateColorSpace; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeBaseColorSpace; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeBaseIsSDR; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeBasePixelFormatRequest; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeGainMapPixelFormatRequest; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeGainMapSubsampleFactor; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeGenerateGainMapWithBaseImage; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeIsBaseImage; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeRequest; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeRequestOptions; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeToISOGainmap; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeToISOHDR; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeToSDR; - -@ffi.Native() -external CFStringRef kCGImageDestinationEncodeTonemapMode; - -@ffi.Native() -external CFStringRef kCGImageDestinationImageMaxPixelSize; - -@ffi.Native() -external CFStringRef kCGImageDestinationLossyCompressionQuality; - -@ffi.Native() -external CFStringRef kCGImageDestinationMergeMetadata; - -@ffi.Native() -external CFStringRef kCGImageDestinationMetadata; - -@ffi.Native() -external CFStringRef kCGImageDestinationOptimizeColorForSharing; - -@ffi.Native() -external CFStringRef kCGImageDestinationOrientation; - -@ffi.Native() -external CFStringRef kCGImageDestinationPreserveGainMap; - -@ffi.Native() -external final CFStringRef kCGImageMetadataEnumerateRecursively; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceDublinCore; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceExif; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceExifAux; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceExifEX; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceIPTCCore; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceIPTCExtension; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespacePhotoshop; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceTIFF; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceXMPBasic; - -@ffi.Native() -external CFStringRef kCGImageMetadataNamespaceXMPRights; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixDublinCore; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixExif; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixExifAux; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixExifEX; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixIPTCCore; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixIPTCExtension; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixPhotoshop; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixTIFF; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixXMPBasic; - -@ffi.Native() -external CFStringRef kCGImageMetadataPrefixXMPRights; - -@ffi.Native() -external CFStringRef kCGImageMetadataShouldExcludeGPS; - -@ffi.Native() -external CFStringRef kCGImageMetadataShouldExcludeXMP; - -@ffi.Native() -external CFStringRef kCGImageProperty8BIMDictionary; - -@ffi.Native() -external CFStringRef kCGImageProperty8BIMLayerNames; - -@ffi.Native() -external CFStringRef kCGImageProperty8BIMVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGCanvasPixelHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGCanvasPixelWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGFrameInfoArray; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGLoopCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyAPNGUnclampedDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyASTCBlockSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyASTCBlockSize4x4; - -@ffi.Native() -external CFStringRef kCGImagePropertyASTCBlockSize8x8; - -@ffi.Native() -external CFStringRef kCGImagePropertyASTCEncoder; - -@ffi.Native() -external CFStringRef kCGImagePropertyAVISDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyAuxiliaryData; - -@ffi.Native() -external CFStringRef kCGImagePropertyAuxiliaryDataType; - -@ffi.Native() -external CFStringRef kCGImagePropertyBCEncoder; - -@ffi.Native() -external CFStringRef kCGImagePropertyBCFormat; - -@ffi.Native() -external CFStringRef kCGImagePropertyBytesPerRow; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFCameraSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFContinuousDrive; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFFirmware; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFFlashExposureComp; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFFocusMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFImageFileName; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFImageName; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFImageSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFLensMaxMM; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFLensMinMM; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFLensModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFMeasuredEV; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFMeteringMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFOwnerName; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFRecordID; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFReleaseMethod; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFReleaseTiming; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFSelfTimingTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFShootingMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyCIFFWhiteBalanceIndex; - -@ffi.Native() -external CFStringRef kCGImagePropertyColorModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyColorModelCMYK; - -@ffi.Native() -external CFStringRef kCGImagePropertyColorModelGray; - -@ffi.Native() -external CFStringRef kCGImagePropertyColorModelLab; - -@ffi.Native() -external CFStringRef kCGImagePropertyColorModelRGB; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGActiveArea; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAnalogBalance; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAntiAliasStrength; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAsShotICCProfile; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAsShotNeutral; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAsShotPreProfileMatrix; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAsShotProfileName; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGAsShotWhiteXY; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBackwardVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBaselineExposure; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBaselineExposureOffset; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBaselineNoise; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBaselineSharpness; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBayerGreenSplit; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBestQualityScale; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBlackLevel; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBlackLevelDeltaH; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBlackLevelDeltaV; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGBlackLevelRepeatDim; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCFALayout; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCFAPlaneColor; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCalibrationIlluminant1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCalibrationIlluminant2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCameraCalibration1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCameraCalibration2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCameraCalibrationSignature; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCameraSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGChromaBlurRadius; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGColorMatrix1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGColorMatrix2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGColorimetricReference; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCurrentICCProfile; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGCurrentPreProfileMatrix; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDefaultBlackRender; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDefaultCropOrigin; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDefaultCropSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDefaultScale; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDefaultUserCrop; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGExtraCameraProfiles; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGFixVignetteRadial; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGForwardMatrix1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGForwardMatrix2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGLensInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGLinearResponseLimit; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGLinearizationTable; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGLocalizedCameraModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGMakerNoteSafety; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGMaskedAreas; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGNewRawImageDigest; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGNoiseProfile; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGNoiseReductionApplied; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOpcodeList1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOpcodeList2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOpcodeList3; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalBestQualityFinalSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalDefaultCropSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalDefaultFinalSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalRawFileData; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalRawFileDigest; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGOriginalRawFileName; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewApplicationName; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewApplicationVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewColorSpace; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewDateTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewSettingsDigest; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPreviewSettingsName; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGPrivateData; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileCalibrationSignature; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileCopyright; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileEmbedPolicy; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileHueSatMapData1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileHueSatMapData2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileHueSatMapDims; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileHueSatMapEncoding; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileLookTableData; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileLookTableDims; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileLookTableEncoding; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileName; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGProfileToneCurve; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGRawDataUniqueID; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGRawImageDigest; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGRawToPreviewGain; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGReductionMatrix1; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGReductionMatrix2; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGRowInterleaveFactor; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGShadowScale; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGSubTileBlockSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGUniqueCameraModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGWarpFisheye; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGWarpRectilinear; - -@ffi.Native() -external CFStringRef kCGImagePropertyDNGWhiteLevel; - -@ffi.Native() -external CFStringRef kCGImagePropertyDPIHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyDPIWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyDepth; - -@ffi.Native() -external CFStringRef kCGImagePropertyEncoder; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifApertureValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxFirmware; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxFlashCompensation; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxImageNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxLensID; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxLensInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxLensModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxLensSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxOwnerName; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifAuxSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifBodySerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifBrightnessValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifCFAPattern; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifCameraOwnerName; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifColorSpace; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifComponentsConfiguration; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifCompositeImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifCompressedBitsPerPixel; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifContrast; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifCustomRendered; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifDateTimeDigitized; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifDateTimeOriginal; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifDeviceSettingDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifDigitalZoomRatio; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifExposureBiasValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifExposureIndex; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifExposureMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifExposureProgram; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifExposureTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFileSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFlash; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFlashEnergy; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFlashPixVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFocalLenIn35mmFilm; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFocalLength; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFocalPlaneResolutionUnit; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFocalPlaneXResolution; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifFocalPlaneYResolution; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifGainControl; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifGamma; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifISOSpeed; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifISOSpeedLatitudeyyy; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifISOSpeedLatitudezzz; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifISOSpeedRatings; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifImageUniqueID; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifLensMake; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifLensModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifLensSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifLensSpecification; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifLightSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifMakerNote; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifMaxApertureValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifMeteringMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifOECF; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifOffsetTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifOffsetTimeDigitized; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifOffsetTimeOriginal; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifPixelXDimension; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifPixelYDimension; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifRecommendedExposureIndex; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifRelatedSoundFile; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSaturation; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSceneCaptureType; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSceneType; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSensingMethod; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSensitivityType; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSharpness; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifShutterSpeedValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSourceExposureTimesOfCompositeImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSourceImageNumberOfCompositeImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSpatialFrequencyResponse; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSpectralSensitivity; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifStandardOutputSensitivity; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubjectArea; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubjectDistRange; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubjectDistance; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubjectLocation; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubsecTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubsecTimeDigitized; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubsecTimeOrginal; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifSubsecTimeOriginal; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifUserComment; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyExifWhiteBalance; - -@ffi.Native() -external CFStringRef kCGImagePropertyFileContentsDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyFileSize; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFCanvasPixelHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFCanvasPixelWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFFrameInfoArray; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFHasGlobalColorMap; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFImageColorMap; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFLoopCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyGIFUnclampedDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSAltitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSAltitudeRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSAreaInformation; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDOP; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDateStamp; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestBearing; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestBearingRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestDistance; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestDistanceRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestLatitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestLatitudeRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestLongitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDestLongitudeRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSDifferental; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSHPositioningError; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSImgDirection; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSImgDirectionRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSLatitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSLatitudeRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSLongitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSLongitudeRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSMapDatum; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSMeasureMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSProcessingMethod; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSSatellites; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSSpeed; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSSpeedRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSStatus; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSTimeStamp; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSTrack; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSTrackRef; - -@ffi.Native() -external CFStringRef kCGImagePropertyGPSVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageBaseline; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageDisparityAdjustment; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIndexLeft; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIndexMonoscopic; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIndexRight; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIsAlternateImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIsLeftImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIsMonoscopicImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageIsRightImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImageStereoAggressors; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupImagesAlternate; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupIndex; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupMonoscopicImageLocation; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupType; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupTypeAlternate; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroupTypeStereoPair; - -@ffi.Native() -external CFStringRef kCGImagePropertyGroups; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSCanvasPixelHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSCanvasPixelWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSFrameInfoArray; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSLoopCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEICSUnclampedDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyHEIFDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyHasAlpha; - -@ffi.Native() -external CFStringRef kCGImagePropertyHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCActionAdvised; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCByline; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCBylineTitle; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCaptionAbstract; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCategory; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCity; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContact; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoAddress; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoCity; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoCountry; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoEmails; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoPhones; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoPostalCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoStateProvince; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContactInfoWebURLs; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContentLocationCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCContentLocationName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCopyrightNotice; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCountryPrimaryLocationCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCountryPrimaryLocationName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCreatorContactInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCCredit; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCDateCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCDigitalCreationDate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCDigitalCreationTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCEditStatus; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCEditorialUpdate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExpirationDate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExpirationTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAboutCvTerm; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAboutCvTermCvId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAboutCvTermId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAboutCvTermName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAboutCvTermRefinedAbout; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAddlModelInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCircaDateCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkContentDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkContributionDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightNotice; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightOwnerID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightOwnerName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCreator; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkCreatorID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkDateCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkLicensorID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkLicensorName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkOrObject; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkPhysicalDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkSourceInvURL; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkSourceInventoryNo; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkStylePeriod; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtArtworkTitle; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAudioBitrate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAudioBitrateMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtAudioChannelCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCircaDateCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContainerFormat; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContainerFormatIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContainerFormatName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContributor; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContributorIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContributorName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtContributorRole; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtControlledVocabularyTerm; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCopyrightYear; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCreator; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCreatorIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCreatorName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtCreatorRole; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreen; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegion; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionD; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionH; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionText; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionUnit; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionW; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionX; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionY; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDigitalImageGUID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDigitalSourceFileType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDigitalSourceType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDopesheet; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDopesheetLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDopesheetLinkLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtDopesheetLinkLinkQualifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEmbdEncRightsExpr; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExpr; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprLangID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEpisode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEpisodeIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEpisodeName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEpisodeNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtEvent; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtExternalMetadataLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtFeedIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtGenre; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtGenreCvId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtGenreCvTermId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtGenreCvTermName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtGenreCvTermRefinedAbout; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtHeadline; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtIPTCLastEdited; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLinkedEncRightsExpr; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExpr; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExprLangID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExprType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationCity; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationCountryCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationCountryName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationGPSAltitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationGPSLatitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationGPSLongitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationLocationId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationLocationName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationProvinceState; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationShown; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationSublocation; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtLocationWorldRegion; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtMaxAvailHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtMaxAvailWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtModelAge; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtOrganisationInImageCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtOrganisationInImageName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonHeard; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonHeardIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonHeardName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageCharacteristic; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermCvId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermRefinedAbout; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPersonInImageWDetails; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtProductInImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtProductInImageDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtProductInImageGTIN; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtProductInImageName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPublicationEvent; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPublicationEventDate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPublicationEventIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtPublicationEventName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRating; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRatingRegion; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionCity; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionCountryCode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionCountryName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSAltitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSLatitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSLongitude; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionLocationId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionLocationName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionProvinceState; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionSublocation; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingRegionWorldRegion; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingScaleMaxValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingScaleMinValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingSourceLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingValue; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRatingValueLogoLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRegistryEntryRole; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRegistryID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRegistryItemID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtRegistryOrganisationID; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtReleaseReady; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeason; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeasonIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeasonName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeasonNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeries; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeriesIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSeriesName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtShownEvent; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtShownEventIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtShownEventName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtStorylineIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtStreamReady; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtStylePeriod; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSupplyChainSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSupplyChainSourceIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtSupplyChainSourceName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTemporalCoverage; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTemporalCoverageFrom; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTemporalCoverageTo; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTranscript; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTranscriptLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTranscriptLinkLink; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtTranscriptLinkLinkQualifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoBitrate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoBitrateMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoDisplayAspectRatio; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoEncodingProfile; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoShotType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoShotTypeIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoShotTypeName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVideoStreamsCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtVisualColor; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtWorkflowTag; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermId; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermRefinedAbout; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCFixtureIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCHeadline; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCImageOrientation; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCImageType; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCKeywords; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCLanguageIdentifier; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCObjectAttributeReference; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCObjectCycle; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCObjectName; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCObjectTypeReference; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCOriginalTransmissionReference; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCOriginatingProgram; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCProgramVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCProvinceState; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCReferenceDate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCReferenceNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCReferenceService; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCReleaseDate; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCReleaseTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCRightsUsageTerms; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCScene; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCSpecialInstructions; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCStarRating; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCSubLocation; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCSubjectReference; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCSupplementalCategory; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCTimeCreated; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCUrgency; - -@ffi.Native() -external CFStringRef kCGImagePropertyIPTCWriterEditor; - -@ffi.Native() -external CFStringRef kCGImagePropertyImageCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyImageIndex; - -@ffi.Native() -external CFStringRef kCGImagePropertyImages; - -@ffi.Native() -external CFStringRef kCGImagePropertyIsFloat; - -@ffi.Native() -external CFStringRef kCGImagePropertyIsIndexed; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFDensityUnit; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFIsProgressive; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFVersion; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFXDensity; - -@ffi.Native() -external CFStringRef kCGImagePropertyJFIFYDensity; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerAppleDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonAspectRatioInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonCameraSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonContinuousDrive; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonFirmware; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonFlashExposureComp; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonImageSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonLensModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerCanonOwnerName; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerFujiDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerMinoltaDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonCameraSerialNumber; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonColorMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonDigitalZoom; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonFlashExposureComp; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonFlashSetting; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonFocusDistance; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonFocusMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonISOSelection; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonISOSetting; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonImageAdjustment; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonLensAdapter; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonLensInfo; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonLensType; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonQuality; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonSharpenMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonShootingMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonShutterCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerNikonWhiteBalanceMode; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerOlympusDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyMakerPentaxDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyNamedColorSpace; - -@ffi.Native() -external CFStringRef kCGImagePropertyOpenEXRAspectRatio; - -@ffi.Native() -external CFStringRef kCGImagePropertyOpenEXRCompression; - -@ffi.Native() -external CFStringRef kCGImagePropertyOpenEXRDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyOrientation; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGAuthor; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGChromaticities; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGComment; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGCompressionFilter; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGCopyright; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGCreationTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGDisclaimer; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGGamma; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGInterlaceType; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGModificationTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGPixelsAspectRatio; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGSoftware; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGSource; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGTitle; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGTransparency; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGWarning; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGXPixelsPerMeter; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGYPixelsPerMeter; - -@ffi.Native() -external CFStringRef kCGImagePropertyPNGsRGBIntent; - -@ffi.Native() -external CFStringRef kCGImagePropertyPVREncoder; - -@ffi.Native() -external CFStringRef kCGImagePropertyPixelFormat; - -@ffi.Native() -external CFStringRef kCGImagePropertyPixelHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyPixelWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyPrimaryImage; - -@ffi.Native() -external CFStringRef kCGImagePropertyProfileName; - -@ffi.Native() -external CFStringRef kCGImagePropertyRawDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyTGACompression; - -@ffi.Native() -external CFStringRef kCGImagePropertyTGADictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFArtist; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFCompression; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFCopyright; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFDateTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFDocumentName; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFHostComputer; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFImageDescription; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFMake; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFModel; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFOrientation; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFPhotometricInterpretation; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFPrimaryChromaticities; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFResolutionUnit; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFSoftware; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFTileLength; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFTileWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFTransferFunction; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFWhitePoint; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFXPosition; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFXResolution; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFYPosition; - -@ffi.Native() -external CFStringRef kCGImagePropertyTIFFYResolution; - -@ffi.Native() -external CFStringRef kCGImagePropertyThumbnailImages; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPCanvasPixelHeight; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPCanvasPixelWidth; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPDictionary; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPFrameInfoArray; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPLoopCount; - -@ffi.Native() -external CFStringRef kCGImagePropertyWebPUnclampedDelayTime; - -@ffi.Native() -external CFStringRef kCGImagePropertyWidth; - -@ffi.Native() -external CFStringRef kCGImageProviderPreferredTileHeight; - -@ffi.Native() -external CFStringRef kCGImageProviderPreferredTileWidth; - -@ffi.Native() -external CFStringRef kCGImageSourceCreateThumbnailFromImageAlways; - -@ffi.Native() -external CFStringRef kCGImageSourceCreateThumbnailFromImageIfAbsent; - -@ffi.Native() -external CFStringRef kCGImageSourceCreateThumbnailWithTransform; - -@ffi.Native() -external CFStringRef kCGImageSourceDecodeRequest; - -@ffi.Native() -external CFStringRef kCGImageSourceDecodeRequestOptions; - -@ffi.Native() -external CFStringRef kCGImageSourceDecodeToHDR; - -@ffi.Native() -external CFStringRef kCGImageSourceDecodeToSDR; - -@ffi.Native() -external CFStringRef kCGImageSourceGenerateImageSpecificLumaScaling; - -@ffi.Native() -external CFStringRef kCGImageSourceShouldAllowFloat; - -@ffi.Native() -external CFStringRef kCGImageSourceShouldCache; - -@ffi.Native() -external CFStringRef kCGImageSourceShouldCacheImmediately; - -@ffi.Native() -external CFStringRef kCGImageSourceSubsampleFactor; - -@ffi.Native() -external CFStringRef kCGImageSourceThumbnailMaxPixelSize; - -@ffi.Native() -external CFStringRef kCGImageSourceTypeIdentifierHint; - -@ffi.Native() -external CFStringRef kCGPDFContextAccessPermissions; - -@ffi.Native() -external CFStringRef kCGPDFContextAllowsCopying; - -@ffi.Native() -external CFStringRef kCGPDFContextAllowsPrinting; - -@ffi.Native() -external CFStringRef kCGPDFContextArtBox; - -@ffi.Native() -external CFStringRef kCGPDFContextAuthor; - -@ffi.Native() -external CFStringRef kCGPDFContextBleedBox; - -@ffi.Native() -external CFStringRef kCGPDFContextCreateLinearizedPDF; - -@ffi.Native() -external CFStringRef kCGPDFContextCreatePDFA; - -@ffi.Native() -external CFStringRef kCGPDFContextCreator; - -@ffi.Native() -external CFStringRef kCGPDFContextCropBox; - -@ffi.Native() -external CFStringRef kCGPDFContextEncryptionKeyLength; - -@ffi.Native() -external CFStringRef kCGPDFContextKeywords; - -@ffi.Native() -external CFStringRef kCGPDFContextMediaBox; - -@ffi.Native() -external CFStringRef kCGPDFContextOutputIntent; - -@ffi.Native() -external CFStringRef kCGPDFContextOutputIntents; - -@ffi.Native() -external CFStringRef kCGPDFContextOwnerPassword; - -@ffi.Native() -external CFStringRef kCGPDFContextSubject; - -@ffi.Native() -external CFStringRef kCGPDFContextTitle; - -@ffi.Native() -external CFStringRef kCGPDFContextTrimBox; - -@ffi.Native() -external CFStringRef kCGPDFContextUserPassword; - -@ffi.Native() -external CFStringRef kCGPDFOutlineChildren; - -@ffi.Native() -external CFStringRef kCGPDFOutlineDestination; - -@ffi.Native() -external CFStringRef kCGPDFOutlineDestinationRect; - -@ffi.Native() -external CFStringRef kCGPDFOutlineTitle; - -@ffi.Native() -external final CGPDFTagProperty kCGPDFTagPropertyActualText; - -@ffi.Native() -external final CGPDFTagProperty kCGPDFTagPropertyAlternativeText; - -@ffi.Native() -external final CGPDFTagProperty kCGPDFTagPropertyLanguageText; - -@ffi.Native() -external final CGPDFTagProperty kCGPDFTagPropertyTitleText; - -@ffi.Native() -external CFStringRef kCGPDFXDestinationOutputProfile; - -@ffi.Native() -external CFStringRef kCGPDFXInfo; - -@ffi.Native() -external CFStringRef kCGPDFXOutputCondition; - -@ffi.Native() -external CFStringRef kCGPDFXOutputConditionIdentifier; - -@ffi.Native() -external CFStringRef kCGPDFXOutputIntentSubtype; - -@ffi.Native() -external CFStringRef kCGPDFXRegistryName; - -@ffi.Native() -external CFStringRef kCGPreferredDynamicRange; - -@ffi.Native() -external CFStringRef kCGSkipBoostToHDR; - -@ffi.Native() -external CFStringRef kCGUse100nitsHLGOOTF; - -@ffi.Native() -external CFStringRef kCGUseBT1886ForCoreVideoGamma; - -@ffi.Native() -external CFStringRef kCGUseLegacyHDREcosystem; - -@ffi.Native() -external CFStringRef kCGWindowAlpha; - -@ffi.Native() -external CFStringRef kCGWindowBackingLocationVideoMemory; - -@ffi.Native() -external CFStringRef kCGWindowBounds; - -@ffi.Native() -external CFStringRef kCGWindowIsOnscreen; - -@ffi.Native() -external CFStringRef kCGWindowLayer; - -@ffi.Native() -external CFStringRef kCGWindowMemoryUsage; - -@ffi.Native() -external CFStringRef kCGWindowName; - -@ffi.Native() -external CFStringRef kCGWindowNumber; - -@ffi.Native() -external CFStringRef kCGWindowOwnerName; - -@ffi.Native() -external CFStringRef kCGWindowOwnerPID; - -@ffi.Native() -external CFStringRef kCGWindowSharingState; - -@ffi.Native() -external CFStringRef kCGWindowStoreType; - -@ffi.Native() -external CFStringRef kCGWindowWorkspace; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionAlphaChannelMode_PremultipliedAlpha; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionAlphaChannelMode_StraightAlpha; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibrationExtrinsicOriginSource_StereoCameraSystemBaseline; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibrationLensAlgorithmKind_ParametricLens; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibrationLensDomain_Color; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Left; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Mono; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibrationLensRole_Right; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_ExtrinsicOrientationQuaternion; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_ExtrinsicOriginSource; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_IntrinsicMatrix; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_IntrinsicMatrixProjectionOffset; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_IntrinsicMatrixReferenceDimensions; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_LensAlgorithmKind; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_LensDistortions; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_LensDomain; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialX; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionCameraCalibration_LensFrameAdjustmentsPolynomialY; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_LensIdentifier; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_LensRole; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionCameraCalibration_RadialAngleLimit; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_Bottom; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_BottomLeft; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_Center; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_DV420; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_Left; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_Top; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionChromaLocation_TopLeft; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_DCI_P3; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_EBU_3213; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_P22; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_P3_D65; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionColorPrimaries_SMPTE_C; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionConformsToMPEG2VideoProfile; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtensionKey_MetadataKeyTable; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_AlphaChannelMode; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_AlternativeTransferCharacteristics; - -@ffi.Native() -external final CFStringRef -kCMFormatDescriptionExtension_AmbientViewingEnvironment; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_AuxiliaryTypeInfo; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_BitsPerComponent; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_BytesPerRow; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_CameraCalibrationDataLensCollection; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ChromaLocationBottomField; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ChromaLocationTopField; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_CleanAperture; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ColorPrimaries; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ContainsAlphaChannel; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ContentColorVolume; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ContentLightLevelInfo; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_ConvertedFromExternalSphericalTags; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_Depth; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_FieldCount; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_FieldDetail; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_FormatName; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_FullRangeVideo; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_GammaLevel; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_HasAdditionalViews; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_HasLeftStereoEyeView; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_HasRightStereoEyeView; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_HeroEye; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_HorizontalDisparityAdjustment; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_HorizontalFieldOfView; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ICCProfile; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_LogTransferFunction; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_MasteringDisplayColorVolume; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_OriginalCompressionSettings; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_PixelAspectRatio; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ProjectionKind; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_ProtectedContentOriginalFormat; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_RevisionLevel; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionExtension_SampleDescriptionExtensionAtoms; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_SpatialQuality; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_StereoCameraBaseline; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_TemporalQuality; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_TransferFunction; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_Vendor; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_VerbatimISOSampleEntry; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_VerbatimImageDescription; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_VerbatimSampleDescription; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_Version; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_ViewPackingKind; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionExtension_YCbCrMatrix; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionFieldDetail_SpatialFirstLineEarly; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionFieldDetail_SpatialFirstLineLate; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionFieldDetail_TemporalBottomFirst; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionFieldDetail_TemporalTopFirst; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionHeroEye_Left; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionHeroEye_Right; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureHeight; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureHeightRational; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureHorizontalOffset; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionKey_CleanApertureHorizontalOffsetRational; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureVerticalOffset; - -@ffi.Native() -external CFStringRef -kCMFormatDescriptionKey_CleanApertureVerticalOffsetRational; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureWidth; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_CleanApertureWidthRational; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionLogTransferFunction_AppleLog; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionProjectionKind_AppleImmersiveVideo; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionProjectionKind_Equirectangular; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionProjectionKind_HalfEquirectangular; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionProjectionKind_ParametricImmersive; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionProjectionKind_Rectilinear; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_2100_HLG; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_Linear; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_240M_1995; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_ST_2084_PQ; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_SMPTE_ST_428_1; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_UseGamma; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionTransferFunction_sRGB; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionVendor_Apple; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionViewPackingKind_OverUnder; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionViewPackingKind_SideBySide; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_601_4; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionYCbCrMatrix_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCMFormatDescriptionYCbCrMatrix_SMPTE_240M_1995; - -@ffi.Native() -external CFStringRef kCMMApplyTransformProcName; - -@ffi.Native() -external CFStringRef kCMMCreateTransformPropertyProcName; - -@ffi.Native() -external CFStringRef kCMMInitializeLinkProfileProcName; - -@ffi.Native() -external CFStringRef kCMMInitializeTransformProcName; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_ConformingDataTypes; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_DataType; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_DataTypeNamespace; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_LanguageTag; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_LocalID; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_Namespace; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_SetupData; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_StructuralDependency; - -@ffi.Native() -external CFStringRef kCMMetadataFormatDescriptionKey_Value; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescriptionMetadataSpecificationKey_DataType; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescriptionMetadataSpecificationKey_ExtendedLanguageTag; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescriptionMetadataSpecificationKey_SetupData; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescriptionMetadataSpecificationKey_StructuralDependency; - -@ffi.Native() -external CFStringRef -kCMMetadataFormatDescription_StructuralDependencyKey_DependencyIsInvalidFlag; - -@ffi.Native() -external CFStringRef kCMSEncoderDigestAlgorithmSHA1; - -@ffi.Native() -external CFStringRef kCMSEncoderDigestAlgorithmSHA256; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionColor_Alpha; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionColor_Blue; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionColor_Green; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionColor_Red; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_BackgroundColor; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_DefaultFontName; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_DefaultStyle; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_DefaultTextBox; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_DisplayFlags; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_FontTable; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_HorizontalJustification; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_TextJustification; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionExtension_VerticalJustification; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionRect_Bottom; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionRect_Left; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionRect_Right; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionRect_Top; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_Ascent; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_EndChar; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_Font; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_FontFace; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_FontSize; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_ForegroundColor; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_Height; - -@ffi.Native() -external CFStringRef kCMTextFormatDescriptionStyle_StartChar; - -@ffi.Native() -external CFStringRef kCMTimeCodeFormatDescriptionExtension_SourceReferenceName; - -@ffi.Native() -external CFStringRef kCMTimeCodeFormatDescriptionKey_LangCode; - -@ffi.Native() -external CFStringRef kCMTimeCodeFormatDescriptionKey_Value; - -@ffi.Native() -external CFStringRef kCMTimeEpochKey; - -@ffi.Native() -external CFStringRef kCMTimeFlagsKey; - -@ffi.Native() -external final CMTime kCMTimeIndefinite; - -@ffi.Native() -external final CMTime kCMTimeInvalid; - -@ffi.Native() -external final CMTime kCMTimeNegativeInfinity; - -@ffi.Native() -external final CMTime kCMTimePositiveInfinity; - -@ffi.Native() -external CFStringRef kCMTimeScaleKey; - -@ffi.Native() -external CFStringRef kCMTimeValueKey; - -@ffi.Native() -external final CMTime kCMTimeZero; - -@ffi.Native() -external final CFStringRef kCSIdentityErrorDomain; - -@ffi.Native() -external final CFStringRef kCSIdentityGeneratePosixName; - -@ffi.Native() -external CFStringRef kCTAdaptiveImageProviderAttributeName; - -@ffi.Native() -external CFStringRef kCTBackgroundColorAttributeName; - -@ffi.Native() -external CFStringRef kCTBaselineClassAttributeName; - -@ffi.Native() -external CFStringRef kCTBaselineClassHanging; - -@ffi.Native() -external CFStringRef kCTBaselineClassIdeographicCentered; - -@ffi.Native() -external CFStringRef kCTBaselineClassIdeographicHigh; - -@ffi.Native() -external CFStringRef kCTBaselineClassIdeographicLow; - -@ffi.Native() -external CFStringRef kCTBaselineClassMath; - -@ffi.Native() -external CFStringRef kCTBaselineClassRoman; - -@ffi.Native() -external CFStringRef kCTBaselineInfoAttributeName; - -@ffi.Native() -external CFStringRef kCTBaselineOffsetAttributeName; - -@ffi.Native() -external CFStringRef kCTBaselineOriginalFont; - -@ffi.Native() -external CFStringRef kCTBaselineReferenceFont; - -@ffi.Native() -external CFStringRef kCTBaselineReferenceInfoAttributeName; - -@ffi.Native() -external CFStringRef kCTCharacterShapeAttributeName; - -@ffi.Native() -external CFStringRef kCTFontAttributeName; - -@ffi.Native() -external CFStringRef kCTFontBaselineAdjustAttribute; - -@ffi.Native() -external CFStringRef kCTFontCascadeListAttribute; - -@ffi.Native() -external CFStringRef kCTFontCharacterSetAttribute; - -@ffi.Native() -external CFStringRef kCTFontCollectionDisallowAutoActivationOption; - -@ffi.Native() -external CFStringRef kCTFontCollectionIncludeDisabledFontsOption; - -@ffi.Native() -external CFStringRef kCTFontCollectionRemoveDuplicatesOption; - -@ffi.Native() -external CFStringRef kCTFontCopyrightNameKey; - -@ffi.Native() -external CFStringRef kCTFontDescriptionNameKey; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingCurrentAssetSize; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingDescriptors; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingError; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingPercentage; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingResult; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingSourceDescriptor; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingTotalAssetSize; - -@ffi.Native() -external CFStringRef kCTFontDescriptorMatchingTotalDownloadedSize; - -@ffi.Native() -external CFStringRef kCTFontDesignerNameKey; - -@ffi.Native() -external CFStringRef kCTFontDesignerURLNameKey; - -@ffi.Native() -external CFStringRef kCTFontDisplayNameAttribute; - -@ffi.Native() -external CFStringRef kCTFontDownloadableAttribute; - -@ffi.Native() -external CFStringRef kCTFontDownloadedAttribute; - -@ffi.Native() -external CFStringRef kCTFontEnabledAttribute; - -@ffi.Native() -external CFStringRef kCTFontFamilyNameAttribute; - -@ffi.Native() -external CFStringRef kCTFontFamilyNameKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSampleTextKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSelectorDefaultKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSelectorIdentifierKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSelectorNameKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSelectorSettingKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureSettingsAttribute; - -@ffi.Native() -external CFStringRef kCTFontFeatureTooltipTextKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureTypeExclusiveKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureTypeIdentifierKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureTypeNameKey; - -@ffi.Native() -external CFStringRef kCTFontFeatureTypeSelectorsKey; - -@ffi.Native() -external CFStringRef kCTFontFeaturesAttribute; - -@ffi.Native() -external CFStringRef kCTFontFixedAdvanceAttribute; - -@ffi.Native() -external CFStringRef kCTFontFormatAttribute; - -@ffi.Native() -external CFStringRef kCTFontFullNameKey; - -@ffi.Native() -external CFStringRef kCTFontLanguagesAttribute; - -@ffi.Native() -external CFStringRef kCTFontLicenseNameKey; - -@ffi.Native() -external CFStringRef kCTFontLicenseURLNameKey; - -@ffi.Native() -external CFStringRef kCTFontMacintoshEncodingsAttribute; - -@ffi.Native() -external CFStringRef kCTFontManagerBundleIdentifier; - -@ffi.Native() -external CFStringRef kCTFontManagerErrorDomain; - -@ffi.Native() -external CFStringRef kCTFontManagerErrorFontAssetNameKey; - -@ffi.Native() -external CFStringRef kCTFontManagerErrorFontDescriptorsKey; - -@ffi.Native() -external CFStringRef kCTFontManagerErrorFontURLsKey; - -@ffi.Native() -external CFStringRef kCTFontManagerRegisteredFontsChangedNotification; - -@ffi.Native() -external CFStringRef kCTFontManufacturerNameKey; - -@ffi.Native() -external CFStringRef kCTFontMatrixAttribute; - -@ffi.Native() -external CFStringRef kCTFontNameAttribute; - -@ffi.Native() -external CFStringRef kCTFontOpenTypeFeatureTag; - -@ffi.Native() -external CFStringRef kCTFontOpenTypeFeatureValue; - -@ffi.Native() -external CFStringRef kCTFontOpticalSizeAttribute; - -@ffi.Native() -external CFStringRef kCTFontOrientationAttribute; - -@ffi.Native() -external CFStringRef kCTFontPostScriptCIDNameKey; - -@ffi.Native() -external CFStringRef kCTFontPostScriptNameKey; - -@ffi.Native() -external CFStringRef kCTFontPriorityAttribute; - -@ffi.Native() -external CFStringRef kCTFontRegistrationScopeAttribute; - -@ffi.Native() -external CFStringRef kCTFontRegistrationUserInfoAttribute; - -@ffi.Native() -external CFStringRef kCTFontSampleTextNameKey; - -@ffi.Native() -external CFStringRef kCTFontSizeAttribute; - -@ffi.Native() -external CFStringRef kCTFontSlantTrait; - -@ffi.Native() -external CFStringRef kCTFontStyleNameAttribute; - -@ffi.Native() -external CFStringRef kCTFontStyleNameKey; - -@ffi.Native() -external CFStringRef kCTFontSubFamilyNameKey; - -@ffi.Native() -external CFStringRef kCTFontSymbolicTrait; - -@ffi.Native() -external CFStringRef kCTFontTrademarkNameKey; - -@ffi.Native() -external CFStringRef kCTFontTraitsAttribute; - -@ffi.Native() -external CFStringRef kCTFontURLAttribute; - -@ffi.Native() -external CFStringRef kCTFontUniqueNameKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAttribute; - -@ffi.Native() -external CFStringRef kCTFontVariationAxesAttribute; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisDefaultValueKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisHiddenKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisIdentifierKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisMaximumValueKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisMinimumValueKey; - -@ffi.Native() -external CFStringRef kCTFontVariationAxisNameKey; - -@ffi.Native() -external CFStringRef kCTFontVendorURLNameKey; - -@ffi.Native() -external CFStringRef kCTFontVersionNameKey; - -@ffi.Native() -external CFStringRef kCTFontWeightTrait; - -@ffi.Native() -external CFStringRef kCTFontWidthTrait; - -@ffi.Native() -external CFStringRef kCTForegroundColorAttributeName; - -@ffi.Native() -external CFStringRef kCTForegroundColorFromContextAttributeName; - -@ffi.Native() -external CFStringRef kCTFrameClippingPathsAttributeName; - -@ffi.Native() -external CFStringRef kCTFramePathClippingPathAttributeName; - -@ffi.Native() -external CFStringRef kCTFramePathFillRuleAttributeName; - -@ffi.Native() -external CFStringRef kCTFramePathWidthAttributeName; - -@ffi.Native() -external CFStringRef kCTFrameProgressionAttributeName; - -@ffi.Native() -external CFStringRef kCTGlyphInfoAttributeName; - -@ffi.Native() -external CFStringRef kCTHorizontalInVerticalFormsAttributeName; - -@ffi.Native() -external CFStringRef kCTKernAttributeName; - -@ffi.Native() -external CFStringRef kCTLanguageAttributeName; - -@ffi.Native() -external CFStringRef kCTLigatureAttributeName; - -@ffi.Native() -external CFStringRef kCTParagraphStyleAttributeName; - -@ffi.Native() -external CFStringRef kCTRubyAnnotationAttributeName; - -@ffi.Native() -external CFStringRef kCTRubyAnnotationScaleToFitAttributeName; - -@ffi.Native() -external CFStringRef kCTRubyAnnotationSizeFactorAttributeName; - -@ffi.Native() -external CFStringRef kCTRunDelegateAttributeName; - -@ffi.Native() -external CFStringRef kCTStrokeColorAttributeName; - -@ffi.Native() -external CFStringRef kCTStrokeWidthAttributeName; - -@ffi.Native() -external CFStringRef kCTSuperscriptAttributeName; - -@ffi.Native() -external CFStringRef kCTTabColumnTerminatorsAttributeName; - -@ffi.Native() -external CFStringRef kCTTrackingAttributeName; - -@ffi.Native() -external CFStringRef kCTTypesetterOptionAllowUnboundedLayout; - -@ffi.Native() -external CFStringRef kCTTypesetterOptionDisableBidiProcessing; - -@ffi.Native() -external CFStringRef kCTTypesetterOptionForcedEmbeddingLevel; - -@ffi.Native() -external CFStringRef kCTUnderlineColorAttributeName; - -@ffi.Native() -external CFStringRef kCTUnderlineStyleAttributeName; - -@ffi.Native() -external CFStringRef kCTVerticalFormsAttributeName; - -@ffi.Native() -external CFStringRef kCTWritingDirectionAttributeName; - -@ffi.Native() -external CFStringRef kCVBufferMovieTimeKey; - -@ffi.Native() -external CFStringRef kCVBufferNonPropagatedAttachmentsKey; - -@ffi.Native() -external CFStringRef kCVBufferPropagatedAttachmentsKey; - -@ffi.Native() -external CFStringRef kCVBufferTimeScaleKey; - -@ffi.Native() -external CFStringRef kCVBufferTimeValueKey; - -@ffi.Native() -external CFStringRef kCVImageBufferAlphaChannelIsOpaque; - -@ffi.Native() -external CFStringRef kCVImageBufferAlphaChannelModeKey; - -@ffi.Native() -external CFStringRef kCVImageBufferAlphaChannelMode_PremultipliedAlpha; - -@ffi.Native() -external CFStringRef kCVImageBufferAlphaChannelMode_StraightAlpha; - -@ffi.Native() -external final CFStringRef kCVImageBufferAmbientViewingEnvironmentKey; - -@ffi.Native() -external CFStringRef kCVImageBufferCGColorSpaceKey; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocationBottomFieldKey; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocationTopFieldKey; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_Bottom; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_BottomLeft; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_Center; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_DV420; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_Left; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_Top; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaLocation_TopLeft; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaSubsamplingKey; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaSubsampling_411; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaSubsampling_420; - -@ffi.Native() -external CFStringRef kCVImageBufferChromaSubsampling_422; - -@ffi.Native() -external CFStringRef kCVImageBufferCleanApertureHeightKey; - -@ffi.Native() -external CFStringRef kCVImageBufferCleanApertureHorizontalOffsetKey; - -@ffi.Native() -external CFStringRef kCVImageBufferCleanApertureKey; - -@ffi.Native() -external CFStringRef kCVImageBufferCleanApertureVerticalOffsetKey; - -@ffi.Native() -external CFStringRef kCVImageBufferCleanApertureWidthKey; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimariesKey; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_DCI_P3; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_EBU_3213; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_P22; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_P3_D65; - -@ffi.Native() -external CFStringRef kCVImageBufferColorPrimaries_SMPTE_C; - -@ffi.Native() -external CFStringRef kCVImageBufferContentLightLevelInfoKey; - -@ffi.Native() -external CFStringRef kCVImageBufferDisplayDimensionsKey; - -@ffi.Native() -external CFStringRef kCVImageBufferDisplayHeightKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangleKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangleStereoLeftKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangleStereoRightKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangle_LeftEdgePointsKey; - -@ffi.Native() -external final CFStringRef -kCVImageBufferDisplayMaskRectangle_RectangleHeightKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleLeftKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleTopKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferDisplayMaskRectangle_RectangleWidthKey; - -@ffi.Native() -external final CFStringRef -kCVImageBufferDisplayMaskRectangle_ReferenceRasterHeightKey; - -@ffi.Native() -external final CFStringRef -kCVImageBufferDisplayMaskRectangle_ReferenceRasterWidthKey; - -@ffi.Native() -external final CFStringRef -kCVImageBufferDisplayMaskRectangle_RightEdgePointsKey; - -@ffi.Native() -external CFStringRef kCVImageBufferDisplayWidthKey; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldCountKey; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldDetailKey; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldDetailSpatialFirstLineEarly; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldDetailSpatialFirstLineLate; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldDetailTemporalBottomFirst; - -@ffi.Native() -external CFStringRef kCVImageBufferFieldDetailTemporalTopFirst; - -@ffi.Native() -external CFStringRef kCVImageBufferGammaLevelKey; - -@ffi.Native() -external CFStringRef kCVImageBufferICCProfileKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferLogTransferFunctionKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferLogTransferFunction_AppleLog; - -@ffi.Native() -external final CFStringRef kCVImageBufferLogTransferFunction_AppleLog2; - -@ffi.Native() -external CFStringRef kCVImageBufferMasteringDisplayColorVolumeKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPixelAspectRatioHorizontalSpacingKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPixelAspectRatioKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPixelAspectRatioVerticalSpacingKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPostDecodeProcessingFrameMetadataKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPostDecodeProcessingSequenceMetadataKey; - -@ffi.Native() -external CFStringRef kCVImageBufferPreferredCleanApertureKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferRegionOfInterestKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferSceneIlluminationKey; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunctionKey; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_EBU_3213; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_ITU_R_2100_HLG; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_ITU_R_709_2; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_Linear; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_SMPTE_240M_1995; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_SMPTE_C; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_SMPTE_ST_428_1; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_UseGamma; - -@ffi.Native() -external CFStringRef kCVImageBufferTransferFunction_sRGB; - -@ffi.Native() -external CFStringRef kCVImageBufferYCbCrMatrixKey; - -@ffi.Native() -external final CFStringRef kCVImageBufferYCbCrMatrix_DCI_P3; - -@ffi.Native() -external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_2020; - -@ffi.Native() -external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_601_4; - -@ffi.Native() -external CFStringRef kCVImageBufferYCbCrMatrix_ITU_R_709_2; - -@ffi.Native() -external final CFStringRef kCVImageBufferYCbCrMatrix_P3_D65; - -@ffi.Native() -external CFStringRef kCVImageBufferYCbCrMatrix_SMPTE_240M_1995; - -@ffi.Native() -external final CVTime kCVIndefiniteTime; - -@ffi.Native() -external CFStringRef kCVMetalBufferCacheMaximumBufferAgeKey; - -@ffi.Native() -external CFStringRef kCVMetalTextureCacheMaximumTextureAgeKey; - -@ffi.Native() -external CFStringRef kCVMetalTextureStorageMode; - -@ffi.Native() -external CFStringRef kCVMetalTextureUsage; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferHeight; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferInternalFormat; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferMaximumMipmapLevel; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferPoolMaximumBufferAgeKey; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferPoolMinimumBufferCountKey; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferTarget; - -@ffi.Native() -external CFStringRef kCVOpenGLBufferWidth; - -@ffi.Native() -external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeAutomatic; - -@ffi.Native() -external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeBestPerformance; - -@ffi.Native() -external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeHighestQuality; - -@ffi.Native() -external CFStringRef kCVOpenGLTextureCacheChromaSamplingModeKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferBytesPerRowAlignmentKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferCGBitmapContextCompatibilityKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferCGImageCompatibilityKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferExtendedPixelsBottomKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferExtendedPixelsLeftKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferExtendedPixelsRightKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferExtendedPixelsTopKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferHeightKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferIOSurfaceOpenGLESFBOCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferIOSurfaceOpenGLESTextureCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferIOSurfacePropertiesKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferIOSurfacePurgeableKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferMemoryAllocatorKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferMetalCompatibilityKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferOpenGLCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferOpenGLESCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferOpenGLESTextureCacheCompatibilityKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferOpenGLTextureCacheCompatibilityKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferPixelFormatTypeKey; - -@ffi.Native() -external final CFStringRef kCVPixelBufferPlaneAlignmentKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferPoolAllocationThresholdKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferPoolFreeBufferNotification; - -@ffi.Native() -external CFStringRef kCVPixelBufferPoolMaximumBufferAgeKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferPoolMinimumBufferCountKey; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_BlackLevel; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_ColorMatrix; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_GainFactor; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_MetadataExtension; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_RecommendedCrop; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_SenselSitingOffsets; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceCCT; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor; - -@ffi.Native() -external CFStringRef kCVPixelBufferProResRAWKey_WhiteLevel; - -@ffi.Native() -external CFStringRef kCVPixelBufferVersatileBayerKey_BayerPattern; - -@ffi.Native() -external final CFStringRef kCVPixelBufferWidthKey; - -@ffi.Native() -external CFStringRef kCVPixelFormatBitsPerBlock; - -@ffi.Native() -external final CFStringRef kCVPixelFormatBitsPerComponent; - -@ffi.Native() -external CFStringRef kCVPixelFormatBlackBlock; - -@ffi.Native() -external CFStringRef kCVPixelFormatBlockHeight; - -@ffi.Native() -external CFStringRef kCVPixelFormatBlockHorizontalAlignment; - -@ffi.Native() -external CFStringRef kCVPixelFormatBlockVerticalAlignment; - -@ffi.Native() -external CFStringRef kCVPixelFormatBlockWidth; - -@ffi.Native() -external final CFStringRef kCVPixelFormatCGBitmapContextCompatibility; - -@ffi.Native() -external CFStringRef kCVPixelFormatCGBitmapInfo; - -@ffi.Native() -external final CFStringRef kCVPixelFormatCGImageCompatibility; - -@ffi.Native() -external CFStringRef kCVPixelFormatCodecType; - -@ffi.Native() -external CFStringRef kCVPixelFormatComponentRange; - -@ffi.Native() -external CFStringRef kCVPixelFormatComponentRange_FullRange; - -@ffi.Native() -external CFStringRef kCVPixelFormatComponentRange_VideoRange; - -@ffi.Native() -external CFStringRef kCVPixelFormatComponentRange_WideRange; - -@ffi.Native() -external CFStringRef kCVPixelFormatConstant; - -@ffi.Native() -external CFStringRef kCVPixelFormatContainsAlpha; - -@ffi.Native() -external CFStringRef kCVPixelFormatContainsGrayscale; - -@ffi.Native() -external CFStringRef kCVPixelFormatContainsRGB; - -@ffi.Native() -external final CFStringRef kCVPixelFormatContainsSenselArray; - -@ffi.Native() -external CFStringRef kCVPixelFormatContainsYCbCr; - -@ffi.Native() -external CFStringRef kCVPixelFormatFillExtendedPixelsCallback; - -@ffi.Native() -external CFStringRef kCVPixelFormatFourCC; - -@ffi.Native() -external CFStringRef kCVPixelFormatHorizontalSubsampling; - -@ffi.Native() -external CFStringRef kCVPixelFormatName; - -@ffi.Native() -external final CFStringRef kCVPixelFormatOpenGLCompatibility; - -@ffi.Native() -external CFStringRef kCVPixelFormatOpenGLESCompatibility; - -@ffi.Native() -external CFStringRef kCVPixelFormatOpenGLFormat; - -@ffi.Native() -external CFStringRef kCVPixelFormatOpenGLInternalFormat; - -@ffi.Native() -external CFStringRef kCVPixelFormatOpenGLType; - -@ffi.Native() -external CFStringRef kCVPixelFormatPlanes; - -@ffi.Native() -external final CFStringRef kCVPixelFormatQDCompatibility; - -@ffi.Native() -external CFStringRef kCVPixelFormatVerticalSubsampling; - -@ffi.Native() -external final CVTime kCVZeroTime; - -@ffi.Native() -external CFStringRef kColorSyncACESCGLinearProfile; - -@ffi.Native() -external CFStringRef kColorSyncAdobeRGB1998Profile; - -@ffi.Native() -external CFStringRef kColorSyncBestQuality; - -@ffi.Native() -external CFStringRef kColorSyncBlackPointCompensation; - -@ffi.Native() -external CFStringRef kColorSyncCameraDeviceClass; - -@ffi.Native() -external CFStringRef kColorSyncConversion1DLut; - -@ffi.Native() -external CFStringRef kColorSyncConversion3DLut; - -@ffi.Native() -external CFStringRef kColorSyncConversionBPC; - -@ffi.Native() -external CFStringRef kColorSyncConversionChannelID; - -@ffi.Native() -external CFStringRef kColorSyncConversionGridPoints; - -@ffi.Native() -external CFStringRef kColorSyncConversionInpChan; - -@ffi.Native() -external CFStringRef kColorSyncConversionMatrix; - -@ffi.Native() -external CFStringRef kColorSyncConversionNDLut; - -@ffi.Native() -external CFStringRef kColorSyncConversionOutChan; - -@ffi.Native() -external CFStringRef kColorSyncConversionParamCurve0; - -@ffi.Native() -external CFStringRef kColorSyncConversionParamCurve1; - -@ffi.Native() -external CFStringRef kColorSyncConversionParamCurve2; - -@ffi.Native() -external CFStringRef kColorSyncConversionParamCurve3; - -@ffi.Native() -external CFStringRef kColorSyncConversionParamCurve4; - -@ffi.Native() -external CFStringRef kColorSyncConvertQuality; - -@ffi.Native() -external CFStringRef kColorSyncConvertUseExtendedRange; - -@ffi.Native() -external CFStringRef kColorSyncCustomProfiles; - -@ffi.Native() -external CFStringRef kColorSyncDCIP3Profile; - -@ffi.Native() -external CFStringRef kColorSyncDeviceClass; - -@ffi.Native() -external CFStringRef kColorSyncDeviceDefaultProfileID; - -@ffi.Native() -external CFStringRef kColorSyncDeviceDescription; - -@ffi.Native() -external CFStringRef kColorSyncDeviceDescriptions; - -@ffi.Native() -external CFStringRef kColorSyncDeviceHostScope; - -@ffi.Native() -external CFStringRef kColorSyncDeviceID; - -@ffi.Native() -external CFStringRef kColorSyncDeviceModeDescription; - -@ffi.Native() -external CFStringRef kColorSyncDeviceModeDescriptions; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfileID; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfileIsCurrent; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfileIsDefault; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfileIsFactory; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfileURL; - -@ffi.Native() -external CFStringRef kColorSyncDeviceProfilesNotification; - -@ffi.Native() -external CFStringRef kColorSyncDeviceRegisteredNotification; - -@ffi.Native() -external CFStringRef kColorSyncDeviceUnregisteredNotification; - -@ffi.Native() -external CFStringRef kColorSyncDeviceUserScope; - -@ffi.Native() -external CFStringRef kColorSyncDisplayDeviceClass; - -@ffi.Native() -external CFStringRef kColorSyncDisplayDeviceProfilesNotification; - -@ffi.Native() -external CFStringRef kColorSyncDisplayP3Profile; - -@ffi.Native() -external CFStringRef kColorSyncDraftQuality; - -@ffi.Native() -external CFStringRef kColorSyncExtendedRange; - -@ffi.Native() -external CFStringRef kColorSyncFactoryProfiles; - -@ffi.Native() -external CFStringRef kColorSyncFixedPointRange; - -@ffi.Native() -external CFStringRef kColorSyncGenericCMYKProfile; - -@ffi.Native() -external CFStringRef kColorSyncGenericGrayGamma22Profile; - -@ffi.Native() -external CFStringRef kColorSyncGenericGrayProfile; - -@ffi.Native() -external CFStringRef kColorSyncGenericLabProfile; - -@ffi.Native() -external CFStringRef kColorSyncGenericRGBProfile; - -@ffi.Native() -external CFStringRef kColorSyncGenericXYZProfile; - -@ffi.Native() -external CFStringRef kColorSyncHDRDerivative; - -@ffi.Native() -external CFStringRef kColorSyncHLGDerivative; - -@ffi.Native() -external CFStringRef kColorSyncITUR2020Profile; - -@ffi.Native() -external CFStringRef kColorSyncITUR709Profile; - -@ffi.Native() -external CFStringRef kColorSyncNormalQuality; - -@ffi.Native() -external CFStringRef kColorSyncPQDerivative; - -@ffi.Native() -external CFStringRef kColorSyncPreferredCMM; - -@ffi.Native() -external CFStringRef kColorSyncPrinterDeviceClass; - -@ffi.Native() -external CFStringRef kColorSyncProfile; - -@ffi.Native() -external CFStringRef kColorSyncProfileCacheSeed; - -@ffi.Native() -external CFStringRef kColorSyncProfileClass; - -@ffi.Native() -external CFStringRef kColorSyncProfileColorSpace; - -@ffi.Native() -external CFStringRef kColorSyncProfileComputerDomain; - -@ffi.Native() -external CFStringRef kColorSyncProfileDescription; - -@ffi.Native() -external CFStringRef kColorSyncProfileHeader; - -@ffi.Native() -external CFStringRef kColorSyncProfileHostScope; - -@ffi.Native() -external CFStringRef kColorSyncProfileIsValid; - -@ffi.Native() -external CFStringRef kColorSyncProfileMD5Digest; - -@ffi.Native() -external CFStringRef kColorSyncProfilePCS; - -@ffi.Native() -external CFStringRef kColorSyncProfileRepositoryChangeNotification; - -@ffi.Native() -external CFStringRef kColorSyncProfileURL; - -@ffi.Native() -external CFStringRef kColorSyncProfileUserDomain; - -@ffi.Native() -external CFStringRef kColorSyncProfileUserScope; - -@ffi.Native() -external CFStringRef kColorSyncROMMRGBProfile; - -@ffi.Native() -external CFStringRef kColorSyncRegistrationUpdateWindowServer; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntent; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntentAbsolute; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntentPerceptual; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntentRelative; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntentSaturation; - -@ffi.Native() -external CFStringRef kColorSyncRenderingIntentUseProfileHeader; - -@ffi.Native() -external CFStringRef kColorSyncSRGBProfile; - -@ffi.Native() -external CFStringRef kColorSyncScannerDeviceClass; - -@ffi.Native() -external CFStringRef kColorSyncSigAToB0Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigAToB1Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigAToB2Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigAbstractClass; - -@ffi.Native() -external CFStringRef kColorSyncSigBToA0Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigBToA1Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigBToA2Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigBlueColorantTag; - -@ffi.Native() -external CFStringRef kColorSyncSigBlueTRCTag; - -@ffi.Native() -external CFStringRef kColorSyncSigCmykData; - -@ffi.Native() -external CFStringRef kColorSyncSigColorSpaceClass; - -@ffi.Native() -external CFStringRef kColorSyncSigCopyrightTag; - -@ffi.Native() -external CFStringRef kColorSyncSigDeviceMfgDescTag; - -@ffi.Native() -external CFStringRef kColorSyncSigDeviceModelDescTag; - -@ffi.Native() -external CFStringRef kColorSyncSigDisplayClass; - -@ffi.Native() -external CFStringRef kColorSyncSigGamutTag; - -@ffi.Native() -external CFStringRef kColorSyncSigGrayData; - -@ffi.Native() -external CFStringRef kColorSyncSigGrayTRCTag; - -@ffi.Native() -external CFStringRef kColorSyncSigGreenColorantTag; - -@ffi.Native() -external CFStringRef kColorSyncSigGreenTRCTag; - -@ffi.Native() -external CFStringRef kColorSyncSigInputClass; - -@ffi.Native() -external CFStringRef kColorSyncSigLabData; - -@ffi.Native() -external CFStringRef kColorSyncSigLinkClass; - -@ffi.Native() -external CFStringRef kColorSyncSigMediaBlackPointTag; - -@ffi.Native() -external CFStringRef kColorSyncSigMediaWhitePointTag; - -@ffi.Native() -external CFStringRef kColorSyncSigNamedColor2Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigNamedColorClass; - -@ffi.Native() -external CFStringRef kColorSyncSigOutputClass; - -@ffi.Native() -external CFStringRef kColorSyncSigPreview0Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigPreview1Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigPreview2Tag; - -@ffi.Native() -external CFStringRef kColorSyncSigProfileDescriptionTag; - -@ffi.Native() -external CFStringRef kColorSyncSigProfileSequenceDescTag; - -@ffi.Native() -external CFStringRef kColorSyncSigRedColorantTag; - -@ffi.Native() -external CFStringRef kColorSyncSigRedTRCTag; - -@ffi.Native() -external CFStringRef kColorSyncSigRgbData; - -@ffi.Native() -external CFStringRef kColorSyncSigTechnologyTag; - -@ffi.Native() -external CFStringRef kColorSyncSigViewingCondDescTag; - -@ffi.Native() -external CFStringRef kColorSyncSigViewingConditionsTag; - -@ffi.Native() -external CFStringRef kColorSyncSigXYZData; - -@ffi.Native() -external CFStringRef kColorSyncTransformCodeFragmentMD5; - -@ffi.Native() -external CFStringRef kColorSyncTransformCodeFragmentType; - -@ffi.Native() -external CFStringRef kColorSyncTransformCreator; - -@ffi.Native() -external CFStringRef kColorSyncTransformDeviceToDevice; - -@ffi.Native() -external CFStringRef kColorSyncTransformDeviceToPCS; - -@ffi.Native() -external CFStringRef kColorSyncTransformDstSpace; - -@ffi.Native() -external CFStringRef kColorSyncTransformFullConversionData; - -@ffi.Native() -external CFStringRef kColorSyncTransformGamutCheck; - -@ffi.Native() -external CFStringRef kColorSyncTransformInfo; - -@ffi.Native() -external CFStringRef kColorSyncTransformPCSToDevice; - -@ffi.Native() -external CFStringRef kColorSyncTransformPCSToPCS; - -@ffi.Native() -external CFStringRef kColorSyncTransformParametricConversionData; - -@ffi.Native() -external CFStringRef kColorSyncTransformProfileSequnce; - -@ffi.Native() -external CFStringRef kColorSyncTransformSimplifiedConversionData; - -@ffi.Native() -external CFStringRef kColorSyncTransformSrcSpace; - -@ffi.Native() -external CFStringRef kColorSyncTransformTag; - -@ffi.Native() -external CFStringRef kColorSyncTransformUseITU709OETF; - -@ffi.Native() -external CFStringRef kColorSyncWaitForCacheReply; - -@ffi.Native() -external CFStringRef kColorSyncWebSafeColorsProfile; - -@ffi.Native() -external CFStringRef kDADiskDescriptionBusNameKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionBusPathKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceGUIDKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceInternalKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceModelKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDevicePathKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceProtocolKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceRevisionKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceTDMLockedKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceUnitKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionDeviceVendorKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionFSKitPrefix; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaBSDMajorKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaBSDMinorKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaBSDNameKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaBSDUnitKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaBlockSizeKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaContentKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaEjectableKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaEncryptedKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaEncryptionDetailKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaIconKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaKindKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaLeafKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaNameKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaPathKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaRemovableKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaSizeKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaTypeKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaUUIDKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaWholeKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionMediaWritableKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionRepairRunningKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeKindKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeMountableKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeNameKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeNetworkKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumePathKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeTypeKey; - -@ffi.Native() -external CFStringRef kDADiskDescriptionVolumeUUIDKey; - -@ffi.Native() -external final CFStringRef kFSOperationBytesCompleteKey; - -@ffi.Native() -external final CFStringRef kFSOperationBytesRemainingKey; - -@ffi.Native() -external final CFStringRef kFSOperationObjectsCompleteKey; - -@ffi.Native() -external final CFStringRef kFSOperationObjectsRemainingKey; - -@ffi.Native() -external final CFStringRef kFSOperationThroughputKey; - -@ffi.Native() -external final CFStringRef kFSOperationTotalBytesKey; - -@ffi.Native() -external final CFStringRef kFSOperationTotalObjectsKey; - -@ffi.Native() -external final CFStringRef kFSOperationTotalUserVisibleObjectsKey; - -@ffi.Native() -external final CFStringRef kFSOperationUserVisibleObjectsCompleteKey; - -@ffi.Native() -external final CFStringRef kFSOperationUserVisibleObjectsRemainingKey; - -@ffi.Native() -external CFStringRef kIIOCameraExtrinsics_CoordinateSystemID; - -@ffi.Native() -external CFStringRef kIIOCameraExtrinsics_Position; - -@ffi.Native() -external CFStringRef kIIOCameraExtrinsics_Rotation; - -@ffi.Native() -external CFStringRef kIIOCameraModelType_GenericPinhole; - -@ffi.Native() -external CFStringRef kIIOCameraModelType_SimplifiedPinhole; - -@ffi.Native() -external CFStringRef kIIOCameraModel_Intrinsics; - -@ffi.Native() -external CFStringRef kIIOCameraModel_ModelType; - -@ffi.Native() -external CFStringRef kIIOMetadata_CameraExtrinsicsKey; - -@ffi.Native() -external CFStringRef kIIOMetadata_CameraModelKey; - -@ffi.Native() -external CFStringRef kIIOMonoscopicImageLocation_Center; - -@ffi.Native() -external CFStringRef kIIOMonoscopicImageLocation_Left; - -@ffi.Native() -external CFStringRef kIIOMonoscopicImageLocation_Right; - -@ffi.Native() -external CFStringRef kIIOMonoscopicImageLocation_Unspecified; - -@ffi.Native() -external CFStringRef kIIOStereoAggressors_Severity; - -@ffi.Native() -external CFStringRef kIIOStereoAggressors_SubTypeURI; - -@ffi.Native() -external CFStringRef kIIOStereoAggressors_Type; - -@ffi.Native() -external final int kIOMainPortDefault; - -@ffi.Native() -external final int kIOMasterPortDefault; - -@ffi.Native() -external CFStringRef kIOSurfaceAllocSize; - -@ffi.Native() -external CFStringRef kIOSurfaceBytesPerElement; - -@ffi.Native() -external CFStringRef kIOSurfaceBytesPerRow; - -@ffi.Native() -external CFStringRef kIOSurfaceCacheMode; - -@ffi.Native() -external CFStringRef kIOSurfaceColorSpace; - -@ffi.Native() -external CFStringRef kIOSurfaceContentHeadroom; - -@ffi.Native() -external CFStringRef kIOSurfaceElementHeight; - -@ffi.Native() -external CFStringRef kIOSurfaceElementWidth; - -@ffi.Native() -external CFStringRef kIOSurfaceHeight; - -@ffi.Native() -external CFStringRef kIOSurfaceICCProfile; - -@ffi.Native() -external CFStringRef kIOSurfaceIsGlobal; - -@ffi.Native() -external CFStringRef kIOSurfaceName; - -@ffi.Native() -external CFStringRef kIOSurfaceOffset; - -@ffi.Native() -external CFStringRef kIOSurfacePixelFormat; - -@ffi.Native() -external CFStringRef kIOSurfacePixelSizeCastingAllowed; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneBase; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneBitsPerElement; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneBytesPerElement; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneBytesPerRow; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneComponentBitDepths; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneComponentBitOffsets; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneComponentNames; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneComponentRanges; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneComponentTypes; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneElementHeight; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneElementWidth; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneHeight; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneInfo; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneOffset; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneSize; - -@ffi.Native() -external CFStringRef kIOSurfacePlaneWidth; - -@ffi.Native() -external CFStringRef kIOSurfaceSubsampling; - -@ffi.Native() -external CFStringRef kIOSurfaceWidth; - -@ffi.Native() -external final CFStringRef kLSItemContentType; - -@ffi.Native() -external final CFStringRef kLSItemDisplayKind; - -@ffi.Native() -external final CFStringRef kLSItemDisplayName; - -@ffi.Native() -external final CFStringRef kLSItemExtension; - -@ffi.Native() -external final CFStringRef kLSItemExtensionIsHidden; - -@ffi.Native() -external final CFStringRef kLSItemFileCreator; - -@ffi.Native() -external final CFStringRef kLSItemFileType; - -@ffi.Native() -external final CFStringRef kLSItemIsInvisible; - -@ffi.Native() -external final CFStringRef kLSItemQuarantineProperties; - -@ffi.Native() -external final CFStringRef kLSItemRoleHandlerDisplayName; - -@ffi.Native() -external CFStringRef kLSQuarantineAgentBundleIdentifierKey; - -@ffi.Native() -external CFStringRef kLSQuarantineAgentNameKey; - -@ffi.Native() -external CFStringRef kLSQuarantineDataURLKey; - -@ffi.Native() -external CFStringRef kLSQuarantineOriginURLKey; - -@ffi.Native() -external CFStringRef kLSQuarantineTimeStampKey; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeCalendarEventAttachment; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeEmailAttachment; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeInstantMessageAttachment; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeKey; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeOtherAttachment; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeOtherDownload; - -@ffi.Native() -external CFStringRef kLSQuarantineTypeWebDownload; - -@ffi.Native() -external CFStringRef kLSSharedFileListFavoriteItems; - -@ffi.Native() -external CFStringRef kLSSharedFileListFavoriteVolumes; - -@ffi.Native() -external CFStringRef kLSSharedFileListGlobalLoginItems; - -@ffi.Native() -external LSSharedFileListItemRef kLSSharedFileListItemBeforeFirst; - -@ffi.Native() -external CFStringRef kLSSharedFileListItemHidden; - -@ffi.Native() -external LSSharedFileListItemRef kLSSharedFileListItemLast; - -@ffi.Native() -external CFStringRef kLSSharedFileListLoginItemHidden; - -@ffi.Native() -external CFStringRef kLSSharedFileListRecentApplicationItems; - -@ffi.Native() -external CFStringRef kLSSharedFileListRecentDocumentItems; - -@ffi.Native() -external CFStringRef kLSSharedFileListRecentItemsMaxAmount; - -@ffi.Native() -external CFStringRef kLSSharedFileListRecentServerItems; - -@ffi.Native() -external CFStringRef kLSSharedFileListSessionLoginItems; - -@ffi.Native() -external CFStringRef kLSSharedFileListVolumesComputerVisible; - -@ffi.Native() -external CFStringRef kLSSharedFileListVolumesIDiskVisible; - -@ffi.Native() -external CFStringRef kLSSharedFileListVolumesNetworkVisible; - -@ffi.Native() -external final CFStringRef kMDAttributeAllValues; - -@ffi.Native() -external final CFStringRef kMDAttributeDisplayValues; - -@ffi.Native() -external final CFStringRef kMDAttributeMultiValued; - -@ffi.Native() -external final CFStringRef kMDAttributeName; - -@ffi.Native() -external final CFStringRef kMDAttributeReadOnlyValues; - -@ffi.Native() -external final CFStringRef kMDAttributeType; - -@ffi.Native() -external final CFStringRef kMDExporterAvaliable; - -@ffi.Native() -external final CFStringRef kMDItemAcquisitionMake; - -@ffi.Native() -external final CFStringRef kMDItemAcquisitionModel; - -@ffi.Native() -external final CFStringRef kMDItemAlbum; - -@ffi.Native() -external final CFStringRef kMDItemAltitude; - -@ffi.Native() -external final CFStringRef kMDItemAperture; - -@ffi.Native() -external final CFStringRef kMDItemAppleLoopDescriptors; - -@ffi.Native() -external final CFStringRef kMDItemAppleLoopsKeyFilterType; - -@ffi.Native() -external final CFStringRef kMDItemAppleLoopsLoopMode; - -@ffi.Native() -external final CFStringRef kMDItemAppleLoopsRootKey; - -@ffi.Native() -external final CFStringRef kMDItemApplicationCategories; - -@ffi.Native() -external final CFStringRef kMDItemAttributeChangeDate; - -@ffi.Native() -external final CFStringRef kMDItemAudiences; - -@ffi.Native() -external final CFStringRef kMDItemAudioBitRate; - -@ffi.Native() -external final CFStringRef kMDItemAudioChannelCount; - -@ffi.Native() -external final CFStringRef kMDItemAudioEncodingApplication; - -@ffi.Native() -external final CFStringRef kMDItemAudioSampleRate; - -@ffi.Native() -external final CFStringRef kMDItemAudioTrackNumber; - -@ffi.Native() -external final CFStringRef kMDItemAuthorAddresses; - -@ffi.Native() -external final CFStringRef kMDItemAuthorEmailAddresses; - -@ffi.Native() -external final CFStringRef kMDItemAuthors; - -@ffi.Native() -external final CFStringRef kMDItemBitsPerSample; - -@ffi.Native() -external final CFStringRef kMDItemCFBundleIdentifier; - -@ffi.Native() -external final CFStringRef kMDItemCameraOwner; - -@ffi.Native() -external final CFStringRef kMDItemCity; - -@ffi.Native() -external final CFStringRef kMDItemCodecs; - -@ffi.Native() -external final CFStringRef kMDItemColorSpace; - -@ffi.Native() -external final CFStringRef kMDItemComment; - -@ffi.Native() -external final CFStringRef kMDItemComposer; - -@ffi.Native() -external final CFStringRef kMDItemContactKeywords; - -@ffi.Native() -external final CFStringRef kMDItemContentCreationDate; - -@ffi.Native() -external final CFStringRef kMDItemContentModificationDate; - -@ffi.Native() -external final CFStringRef kMDItemContentType; - -@ffi.Native() -external final CFStringRef kMDItemContentTypeTree; - -@ffi.Native() -external final CFStringRef kMDItemContributors; - -@ffi.Native() -external final CFStringRef kMDItemCopyright; - -@ffi.Native() -external final CFStringRef kMDItemCountry; - -@ffi.Native() -external final CFStringRef kMDItemCoverage; - -@ffi.Native() -external final CFStringRef kMDItemCreator; - -@ffi.Native() -external final CFStringRef kMDItemDateAdded; - -@ffi.Native() -external final CFStringRef kMDItemDeliveryType; - -@ffi.Native() -external final CFStringRef kMDItemDescription; - -@ffi.Native() -external final CFStringRef kMDItemDirector; - -@ffi.Native() -external final CFStringRef kMDItemDisplayName; - -@ffi.Native() -external final CFStringRef kMDItemDownloadedDate; - -@ffi.Native() -external final CFStringRef kMDItemDueDate; - -@ffi.Native() -external final CFStringRef kMDItemDurationSeconds; - -@ffi.Native() -external final CFStringRef kMDItemEXIFGPSVersion; - -@ffi.Native() -external final CFStringRef kMDItemEXIFVersion; - -@ffi.Native() -external final CFStringRef kMDItemEditors; - -@ffi.Native() -external final CFStringRef kMDItemEmailAddresses; - -@ffi.Native() -external final CFStringRef kMDItemEncodingApplications; - -@ffi.Native() -external final CFStringRef kMDItemExecutableArchitectures; - -@ffi.Native() -external final CFStringRef kMDItemExecutablePlatform; - -@ffi.Native() -external final CFStringRef kMDItemExposureMode; - -@ffi.Native() -external final CFStringRef kMDItemExposureProgram; - -@ffi.Native() -external final CFStringRef kMDItemExposureTimeSeconds; - -@ffi.Native() -external final CFStringRef kMDItemExposureTimeString; - -@ffi.Native() -external final CFStringRef kMDItemFNumber; - -@ffi.Native() -external final CFStringRef kMDItemFSContentChangeDate; - -@ffi.Native() -external final CFStringRef kMDItemFSCreationDate; - -@ffi.Native() -external final CFStringRef kMDItemFSExists; - -@ffi.Native() -external final CFStringRef kMDItemFSHasCustomIcon; - -@ffi.Native() -external final CFStringRef kMDItemFSInvisible; - -@ffi.Native() -external final CFStringRef kMDItemFSIsExtensionHidden; - -@ffi.Native() -external final CFStringRef kMDItemFSIsReadable; - -@ffi.Native() -external final CFStringRef kMDItemFSIsStationery; - -@ffi.Native() -external final CFStringRef kMDItemFSIsWriteable; - -@ffi.Native() -external final CFStringRef kMDItemFSLabel; - -@ffi.Native() -external final CFStringRef kMDItemFSName; - -@ffi.Native() -external final CFStringRef kMDItemFSNodeCount; - -@ffi.Native() -external final CFStringRef kMDItemFSOwnerGroupID; - -@ffi.Native() -external final CFStringRef kMDItemFSOwnerUserID; - -@ffi.Native() -external final CFStringRef kMDItemFSSize; - -@ffi.Native() -external final CFStringRef kMDItemFinderComment; - -@ffi.Native() -external final CFStringRef kMDItemFlashOnOff; - -@ffi.Native() -external final CFStringRef kMDItemFocalLength; - -@ffi.Native() -external final CFStringRef kMDItemFocalLength35mm; - -@ffi.Native() -external final CFStringRef kMDItemFonts; - -@ffi.Native() -external final CFStringRef kMDItemGPSAreaInformation; - -@ffi.Native() -external final CFStringRef kMDItemGPSDOP; - -@ffi.Native() -external final CFStringRef kMDItemGPSDateStamp; - -@ffi.Native() -external final CFStringRef kMDItemGPSDestBearing; - -@ffi.Native() -external final CFStringRef kMDItemGPSDestDistance; - -@ffi.Native() -external final CFStringRef kMDItemGPSDestLatitude; - -@ffi.Native() -external final CFStringRef kMDItemGPSDestLongitude; - -@ffi.Native() -external final CFStringRef kMDItemGPSDifferental; - -@ffi.Native() -external final CFStringRef kMDItemGPSMapDatum; - -@ffi.Native() -external final CFStringRef kMDItemGPSMeasureMode; - -@ffi.Native() -external final CFStringRef kMDItemGPSProcessingMethod; - -@ffi.Native() -external final CFStringRef kMDItemGPSStatus; - -@ffi.Native() -external final CFStringRef kMDItemGPSTrack; - -@ffi.Native() -external final CFStringRef kMDItemGenre; - -@ffi.Native() -external final CFStringRef kMDItemHTMLContent; - -@ffi.Native() -external final CFStringRef kMDItemHasAlphaChannel; - -@ffi.Native() -external final CFStringRef kMDItemHeadline; - -@ffi.Native() -external final CFStringRef kMDItemISOSpeed; - -@ffi.Native() -external final CFStringRef kMDItemIdentifier; - -@ffi.Native() -external final CFStringRef kMDItemImageDirection; - -@ffi.Native() -external final CFStringRef kMDItemInformation; - -@ffi.Native() -external final CFStringRef kMDItemInstantMessageAddresses; - -@ffi.Native() -external final CFStringRef kMDItemInstructions; - -@ffi.Native() -external final CFStringRef kMDItemIsApplicationManaged; - -@ffi.Native() -external final CFStringRef kMDItemIsGeneralMIDISequence; - -@ffi.Native() -external final CFStringRef kMDItemIsLikelyJunk; - -@ffi.Native() -external final CFStringRef kMDItemKeySignature; - -@ffi.Native() -external final CFStringRef kMDItemKeywords; - -@ffi.Native() -external final CFStringRef kMDItemKind; - -@ffi.Native() -external final CFStringRef kMDItemLabelID; - -@ffi.Native() -external final CFStringRef kMDItemLabelIcon; - -@ffi.Native() -external final CFStringRef kMDItemLabelKind; - -@ffi.Native() -external final CFStringRef kMDItemLabelUUID; - -@ffi.Native() -external final CFStringRef kMDItemLanguages; - -@ffi.Native() -external final CFStringRef kMDItemLastUsedDate; - -@ffi.Native() -external final CFStringRef kMDItemLatitude; - -@ffi.Native() -external final CFStringRef kMDItemLayerNames; - -@ffi.Native() -external final CFStringRef kMDItemLensModel; - -@ffi.Native() -external final CFStringRef kMDItemLongitude; - -@ffi.Native() -external final CFStringRef kMDItemLyricist; - -@ffi.Native() -external final CFStringRef kMDItemMaxAperture; - -@ffi.Native() -external final CFStringRef kMDItemMediaExtensions; - -@ffi.Native() -external final CFStringRef kMDItemMediaTypes; - -@ffi.Native() -external final CFStringRef kMDItemMeteringMode; - -@ffi.Native() -external final CFStringRef kMDItemMusicalGenre; - -@ffi.Native() -external final CFStringRef kMDItemMusicalInstrumentCategory; - -@ffi.Native() -external final CFStringRef kMDItemMusicalInstrumentName; - -@ffi.Native() -external final CFStringRef kMDItemNamedLocation; - -@ffi.Native() -external final CFStringRef kMDItemNumberOfPages; - -@ffi.Native() -external final CFStringRef kMDItemOrganizations; - -@ffi.Native() -external final CFStringRef kMDItemOrientation; - -@ffi.Native() -external final CFStringRef kMDItemOriginalFormat; - -@ffi.Native() -external final CFStringRef kMDItemOriginalSource; - -@ffi.Native() -external final CFStringRef kMDItemPageHeight; - -@ffi.Native() -external final CFStringRef kMDItemPageWidth; - -@ffi.Native() -external final CFStringRef kMDItemParticipants; - -@ffi.Native() -external final CFStringRef kMDItemPath; - -@ffi.Native() -external final CFStringRef kMDItemPerformers; - -@ffi.Native() -external final CFStringRef kMDItemPhoneNumbers; - -@ffi.Native() -external final CFStringRef kMDItemPixelCount; - -@ffi.Native() -external final CFStringRef kMDItemPixelHeight; - -@ffi.Native() -external final CFStringRef kMDItemPixelWidth; - -@ffi.Native() -external final CFStringRef kMDItemProducer; - -@ffi.Native() -external final CFStringRef kMDItemProfileName; - -@ffi.Native() -external final CFStringRef kMDItemProjects; - -@ffi.Native() -external final CFStringRef kMDItemPublishers; - -@ffi.Native() -external final CFStringRef kMDItemRecipientAddresses; - -@ffi.Native() -external final CFStringRef kMDItemRecipientEmailAddresses; - -@ffi.Native() -external final CFStringRef kMDItemRecipients; - -@ffi.Native() -external final CFStringRef kMDItemRecordingDate; - -@ffi.Native() -external final CFStringRef kMDItemRecordingYear; - -@ffi.Native() -external final CFStringRef kMDItemRedEyeOnOff; - -@ffi.Native() -external final CFStringRef kMDItemResolutionHeightDPI; - -@ffi.Native() -external final CFStringRef kMDItemResolutionWidthDPI; - -@ffi.Native() -external final CFStringRef kMDItemRights; - -@ffi.Native() -external final CFStringRef kMDItemSecurityMethod; - -@ffi.Native() -external final CFStringRef kMDItemSpeed; - -@ffi.Native() -external final CFStringRef kMDItemStarRating; - -@ffi.Native() -external final CFStringRef kMDItemStateOrProvince; - -@ffi.Native() -external final CFStringRef kMDItemStreamable; - -@ffi.Native() -external final CFStringRef kMDItemSubject; - -@ffi.Native() -external final CFStringRef kMDItemSupportFileType; - -@ffi.Native() -external final CFStringRef kMDItemTempo; - -@ffi.Native() -external final CFStringRef kMDItemTextContent; - -@ffi.Native() -external final CFStringRef kMDItemTheme; - -@ffi.Native() -external final CFStringRef kMDItemTimeSignature; - -@ffi.Native() -external final CFStringRef kMDItemTimestamp; - -@ffi.Native() -external final CFStringRef kMDItemTitle; - -@ffi.Native() -external final CFStringRef kMDItemTotalBitRate; - -@ffi.Native() -external final CFStringRef kMDItemURL; - -@ffi.Native() -external final CFStringRef kMDItemVersion; - -@ffi.Native() -external final CFStringRef kMDItemVideoBitRate; - -@ffi.Native() -external final CFStringRef kMDItemWhereFroms; - -@ffi.Native() -external final CFStringRef kMDItemWhiteBalance; - -@ffi.Native() -external final CFStringRef kMDItemXMPCredit; - -@ffi.Native() -external final CFStringRef kMDItemXMPDigitalSourceType; - -@ffi.Native() -external final CFStringRef kMDLabelAddedNotification; - -@ffi.Native() -external CFStringRef kMDLabelBundleURL; - -@ffi.Native() -external final CFStringRef kMDLabelChangedNotification; - -@ffi.Native() -external CFStringRef kMDLabelContentChangeDate; - -@ffi.Native() -external CFStringRef kMDLabelDisplayName; - -@ffi.Native() -external CFStringRef kMDLabelIconData; - -@ffi.Native() -external CFStringRef kMDLabelIconUUID; - -@ffi.Native() -external CFStringRef kMDLabelIsMutuallyExclusiveSetMember; - -@ffi.Native() -external CFStringRef kMDLabelKind; - -@ffi.Native() -external CFStringRef kMDLabelKindIsMutuallyExclusiveSetKey; - -@ffi.Native() -external CFStringRef kMDLabelKindVisibilityKey; - -@ffi.Native() -external final CFStringRef kMDLabelRemovedNotification; - -@ffi.Native() -external CFStringRef kMDLabelSetsFinderColor; - -@ffi.Native() -external CFStringRef kMDLabelUUID; - -@ffi.Native() -external CFStringRef kMDLabelVisibility; - -@ffi.Native() -external CFStringRef kMDPrivateVisibility; - -@ffi.Native() -external CFStringRef kMDPublicVisibility; - -@ffi.Native() -external final CFStringRef kMDQueryDidFinishNotification; - -@ffi.Native() -external final CFStringRef kMDQueryDidUpdateNotification; - -@ffi.Native() -external final CFStringRef kMDQueryProgressNotification; - -@ffi.Native() -external final CFStringRef kMDQueryResultContentRelevance; - -@ffi.Native() -external final CFStringRef kMDQueryScopeAllIndexed; - -@ffi.Native() -external final CFStringRef kMDQueryScopeComputer; - -@ffi.Native() -external final CFStringRef kMDQueryScopeComputerIndexed; - -@ffi.Native() -external final CFStringRef kMDQueryScopeHome; - -@ffi.Native() -external final CFStringRef kMDQueryScopeNetwork; - -@ffi.Native() -external final CFStringRef kMDQueryScopeNetworkIndexed; - -@ffi.Native() -external final CFStringRef kMDQueryUpdateAddedItems; - -@ffi.Native() -external final CFStringRef kMDQueryUpdateChangedItems; - -@ffi.Native() -external final CFStringRef kMDQueryUpdateRemovedItems; - -@ffi.Native() -external final CFStringRef kSKEndTermChars; - -@ffi.Native() -external final CFStringRef kSKLanguageTypes; - -@ffi.Native() -external final CFStringRef kSKMaximumTerms; - -@ffi.Native() -external final CFStringRef kSKMinTermLength; - -@ffi.Native() -external final CFStringRef kSKProximityIndexing; - -@ffi.Native() -external final CFStringRef kSKStartTermChars; - -@ffi.Native() -external final CFStringRef kSKStopWords; - -@ffi.Native() -external final CFStringRef kSKSubstitutions; - -@ffi.Native() -external final CFStringRef kSKTermChars; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_3DES_fallback; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_ATSv1; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_ATSv1_noPFS; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_RC4_fallback; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_TLSv1_3DES_fallback; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_TLSv1_RC4_fallback; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_TLSv1_fallback; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_anonymous; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_default; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_legacy; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_legacy_DHE; - -@ffi.Native() -external CFStringRef kSSLSessionConfig_standard; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationAny; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationChangeACL; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationChangeOwner; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationDecrypt; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationDelete; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationDerive; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationEncrypt; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationExportClear; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationExportWrapped; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationGenKey; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationImportClear; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationImportWrapped; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationIntegrity; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainCreate; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainDelete; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainItemDelete; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainItemInsert; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainItemModify; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationKeychainItemRead; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationLogin; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationMAC; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationPartitionID; - -@ffi.Native() -external CFStringRef kSecACLAuthorizationSign; - -@ffi.Native() -external CFStringRef kSecAttrAccess; - -@ffi.Native() -external CFStringRef kSecAttrAccessControl; - -@ffi.Native() -external CFStringRef kSecAttrAccessGroup; - -@ffi.Native() -external CFStringRef kSecAttrAccessGroupToken; - -@ffi.Native() -external CFStringRef kSecAttrAccessible; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleAfterFirstUnlock; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleAlways; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleAlwaysThisDeviceOnly; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleWhenUnlocked; - -@ffi.Native() -external CFStringRef kSecAttrAccessibleWhenUnlockedThisDeviceOnly; - -@ffi.Native() -external CFStringRef kSecAttrAccount; - -@ffi.Native() -external CFStringRef kSecAttrApplicationLabel; - -@ffi.Native() -external CFStringRef kSecAttrApplicationTag; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationType; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeDPA; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeDefault; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeHTMLForm; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeHTTPBasic; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeHTTPDigest; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeMSN; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeNTLM; - -@ffi.Native() -external CFStringRef kSecAttrAuthenticationTypeRPA; - -@ffi.Native() -external CFStringRef kSecAttrCanDecrypt; - -@ffi.Native() -external CFStringRef kSecAttrCanDerive; - -@ffi.Native() -external CFStringRef kSecAttrCanEncrypt; - -@ffi.Native() -external CFStringRef kSecAttrCanSign; - -@ffi.Native() -external CFStringRef kSecAttrCanUnwrap; - -@ffi.Native() -external CFStringRef kSecAttrCanVerify; - -@ffi.Native() -external CFStringRef kSecAttrCanWrap; - -@ffi.Native() -external CFStringRef kSecAttrCertificateEncoding; - -@ffi.Native() -external CFStringRef kSecAttrCertificateType; - -@ffi.Native() -external CFStringRef kSecAttrComment; - -@ffi.Native() -external CFStringRef kSecAttrCreationDate; - -@ffi.Native() -external CFStringRef kSecAttrCreator; - -@ffi.Native() -external CFStringRef kSecAttrDescription; - -@ffi.Native() -external CFStringRef kSecAttrEffectiveKeySize; - -@ffi.Native() -external CFStringRef kSecAttrGeneric; - -@ffi.Native() -external CFStringRef kSecAttrIsExtractable; - -@ffi.Native() -external CFStringRef kSecAttrIsInvisible; - -@ffi.Native() -external CFStringRef kSecAttrIsNegative; - -@ffi.Native() -external CFStringRef kSecAttrIsPermanent; - -@ffi.Native() -external CFStringRef kSecAttrIsSensitive; - -@ffi.Native() -external CFStringRef kSecAttrIssuer; - -@ffi.Native() -external CFStringRef kSecAttrKeyClass; - -@ffi.Native() -external CFStringRef kSecAttrKeyClassPrivate; - -@ffi.Native() -external CFStringRef kSecAttrKeyClassPublic; - -@ffi.Native() -external CFStringRef kSecAttrKeyClassSymmetric; - -@ffi.Native() -external CFStringRef kSecAttrKeySizeInBits; - -@ffi.Native() -external CFStringRef kSecAttrKeyType; - -@ffi.Native() -external CFStringRef kSecAttrKeyType3DES; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeAES; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeCAST; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeDES; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeDSA; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeEC; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeECDSA; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeECSECPrimeRandom; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeRC2; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeRC4; - -@ffi.Native() -external CFStringRef kSecAttrKeyTypeRSA; - -@ffi.Native() -external CFStringRef kSecAttrLabel; - -@ffi.Native() -external CFStringRef kSecAttrModificationDate; - -@ffi.Native() -external CFStringRef kSecAttrPRF; - -@ffi.Native() -external CFStringRef kSecAttrPRFHmacAlgSHA1; - -@ffi.Native() -external CFStringRef kSecAttrPRFHmacAlgSHA224; - -@ffi.Native() -external CFStringRef kSecAttrPRFHmacAlgSHA256; - -@ffi.Native() -external CFStringRef kSecAttrPRFHmacAlgSHA384; - -@ffi.Native() -external CFStringRef kSecAttrPRFHmacAlgSHA512; - -@ffi.Native() -external CFStringRef kSecAttrPath; - -@ffi.Native() -external CFStringRef kSecAttrPersistantReference; - -@ffi.Native() -external CFStringRef kSecAttrPersistentReference; - -@ffi.Native() -external CFStringRef kSecAttrPort; - -@ffi.Native() -external CFStringRef kSecAttrProtocol; - -@ffi.Native() -external CFStringRef kSecAttrProtocolAFP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolAppleTalk; - -@ffi.Native() -external CFStringRef kSecAttrProtocolDAAP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolEPPC; - -@ffi.Native() -external CFStringRef kSecAttrProtocolFTP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolFTPAccount; - -@ffi.Native() -external CFStringRef kSecAttrProtocolFTPProxy; - -@ffi.Native() -external CFStringRef kSecAttrProtocolFTPS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolHTTP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolHTTPProxy; - -@ffi.Native() -external CFStringRef kSecAttrProtocolHTTPS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolHTTPSProxy; - -@ffi.Native() -external CFStringRef kSecAttrProtocolIMAP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolIMAPS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolIPP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolIRC; - -@ffi.Native() -external CFStringRef kSecAttrProtocolIRCS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolLDAP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolLDAPS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolNNTP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolNNTPS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolPOP3; - -@ffi.Native() -external CFStringRef kSecAttrProtocolPOP3S; - -@ffi.Native() -external CFStringRef kSecAttrProtocolRTSP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolRTSPProxy; - -@ffi.Native() -external CFStringRef kSecAttrProtocolSMB; - -@ffi.Native() -external CFStringRef kSecAttrProtocolSMTP; - -@ffi.Native() -external CFStringRef kSecAttrProtocolSOCKS; - -@ffi.Native() -external CFStringRef kSecAttrProtocolSSH; - -@ffi.Native() -external CFStringRef kSecAttrProtocolTelnet; - -@ffi.Native() -external CFStringRef kSecAttrProtocolTelnetS; - -@ffi.Native() -external CFStringRef kSecAttrPublicKeyHash; - -@ffi.Native() -external CFStringRef kSecAttrRounds; - -@ffi.Native() -external CFStringRef kSecAttrSalt; - -@ffi.Native() -external CFStringRef kSecAttrSecurityDomain; - -@ffi.Native() -external CFStringRef kSecAttrSerialNumber; - -@ffi.Native() -external CFStringRef kSecAttrServer; - -@ffi.Native() -external CFStringRef kSecAttrService; - -@ffi.Native() -external CFStringRef kSecAttrSubject; - -@ffi.Native() -external CFStringRef kSecAttrSubjectKeyID; - -@ffi.Native() -external CFStringRef kSecAttrSyncViewHint; - -@ffi.Native() -external CFStringRef kSecAttrSynchronizable; - -@ffi.Native() -external CFStringRef kSecAttrSynchronizableAny; - -@ffi.Native() -external CFStringRef kSecAttrTokenID; - -@ffi.Native() -external CFStringRef kSecAttrTokenIDSecureEnclave; - -@ffi.Native() -external CFStringRef kSecAttrType; - -@ffi.Native() -external CFStringRef kSecBase32Encoding; - -@ffi.Native() -external CFStringRef kSecBase64Encoding; - -@ffi.Native() -external CFStringRef kSecCFErrorArchitecture; - -@ffi.Native() -external CFStringRef kSecCFErrorGuestAttributes; - -@ffi.Native() -external CFStringRef kSecCFErrorInfoPlist; - -@ffi.Native() -external CFStringRef kSecCFErrorPath; - -@ffi.Native() -external CFStringRef kSecCFErrorPattern; - -@ffi.Native() -external CFStringRef kSecCFErrorRequirementSyntax; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceAdded; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceAltered; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceMissing; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceRecursive; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceSeal; - -@ffi.Native() -external CFStringRef kSecCFErrorResourceSideband; - -@ffi.Native() -external CFStringRef kSecClass; - -@ffi.Native() -external CFStringRef kSecClassCertificate; - -@ffi.Native() -external CFStringRef kSecClassGenericPassword; - -@ffi.Native() -external CFStringRef kSecClassIdentity; - -@ffi.Native() -external CFStringRef kSecClassInternetPassword; - -@ffi.Native() -external CFStringRef kSecClassKey; - -@ffi.Native() -external CFStringRef kSecCodeAttributeArchitecture; - -@ffi.Native() -external CFStringRef kSecCodeAttributeBundleVersion; - -@ffi.Native() -external CFStringRef kSecCodeAttributeSubarchitecture; - -@ffi.Native() -external CFStringRef kSecCodeAttributeUniversalFileOffset; - -@ffi.Native() -external CFStringRef kSecCodeInfoCMS; - -@ffi.Native() -external CFStringRef kSecCodeInfoCdHashes; - -@ffi.Native() -external CFStringRef kSecCodeInfoCertificates; - -@ffi.Native() -external CFStringRef kSecCodeInfoChangedFiles; - -@ffi.Native() -external CFStringRef kSecCodeInfoDefaultDesignatedLightweightCodeRequirement; - -@ffi.Native() -external CFStringRef kSecCodeInfoDesignatedRequirement; - -@ffi.Native() -external CFStringRef kSecCodeInfoDigestAlgorithm; - -@ffi.Native() -external CFStringRef kSecCodeInfoDigestAlgorithms; - -@ffi.Native() -external CFStringRef kSecCodeInfoEntitlements; - -@ffi.Native() -external CFStringRef kSecCodeInfoEntitlementsDict; - -@ffi.Native() -external CFStringRef kSecCodeInfoFlags; - -@ffi.Native() -external CFStringRef kSecCodeInfoFormat; - -@ffi.Native() -external CFStringRef kSecCodeInfoIdentifier; - -@ffi.Native() -external CFStringRef kSecCodeInfoImplicitDesignatedRequirement; - -@ffi.Native() -external CFStringRef kSecCodeInfoMainExecutable; - -@ffi.Native() -external CFStringRef kSecCodeInfoPList; - -@ffi.Native() -external CFStringRef kSecCodeInfoPlatformIdentifier; - -@ffi.Native() -external CFStringRef kSecCodeInfoRequirementData; - -@ffi.Native() -external CFStringRef kSecCodeInfoRequirements; - -@ffi.Native() -external CFStringRef kSecCodeInfoRuntimeVersion; - -@ffi.Native() -external CFStringRef kSecCodeInfoSource; - -@ffi.Native() -external CFStringRef kSecCodeInfoStapledNotarizationTicket; - -@ffi.Native() -external CFStringRef kSecCodeInfoStatus; - -@ffi.Native() -external CFStringRef kSecCodeInfoTeamIdentifier; - -@ffi.Native() -external CFStringRef kSecCodeInfoTime; - -@ffi.Native() -external CFStringRef kSecCodeInfoTimestamp; - -@ffi.Native() -external CFStringRef kSecCodeInfoTrust; - -@ffi.Native() -external CFStringRef kSecCodeInfoUnique; - -@ffi.Native() -external CFStringRef kSecCompressionRatio; - -@ffi.Native() -external CFStringRef kSecDecodeTypeAttribute; - -@ffi.Native() -external CFStringRef kSecDigestHMACKeyAttribute; - -@ffi.Native() -external CFStringRef kSecDigestHMACMD5; - -@ffi.Native() -external CFStringRef kSecDigestHMACSHA1; - -@ffi.Native() -external CFStringRef kSecDigestHMACSHA2; - -@ffi.Native() -external CFStringRef kSecDigestLengthAttribute; - -@ffi.Native() -external CFStringRef kSecDigestMD2; - -@ffi.Native() -external CFStringRef kSecDigestMD4; - -@ffi.Native() -external CFStringRef kSecDigestMD5; - -@ffi.Native() -external CFStringRef kSecDigestSHA1; - -@ffi.Native() -external CFStringRef kSecDigestSHA2; - -@ffi.Native() -external CFStringRef kSecDigestTypeAttribute; - -@ffi.Native() -external CFStringRef kSecEncodeLineLengthAttribute; - -@ffi.Native() -external CFStringRef kSecEncodeTypeAttribute; - -@ffi.Native() -external CFStringRef kSecEncryptKey; - -@ffi.Native() -external CFStringRef kSecEncryptionMode; - -@ffi.Native() -external CFStringRef kSecGuestAttributeArchitecture; - -@ffi.Native() -external CFStringRef kSecGuestAttributeAudit; - -@ffi.Native() -external CFStringRef kSecGuestAttributeCanonical; - -@ffi.Native() -external CFStringRef kSecGuestAttributeDynamicCode; - -@ffi.Native() -external CFStringRef kSecGuestAttributeDynamicCodeInfoPlist; - -@ffi.Native() -external CFStringRef kSecGuestAttributeHash; - -@ffi.Native() -external CFStringRef kSecGuestAttributeMachPort; - -@ffi.Native() -external CFStringRef kSecGuestAttributePid; - -@ffi.Native() -external CFStringRef kSecGuestAttributeSubarchitecture; - -@ffi.Native() -external CFStringRef kSecIVKey; - -@ffi.Native() -external CFStringRef kSecIdentityDomainDefault; - -@ffi.Native() -external CFStringRef kSecIdentityDomainKerberosKDC; - -@ffi.Native() -external CFStringRef kSecImportExportAccess; - -@ffi.Native() -external CFStringRef kSecImportExportKeychain; - -@ffi.Native() -external CFStringRef kSecImportExportPassphrase; - -@ffi.Native() -external CFStringRef kSecImportItemCertChain; - -@ffi.Native() -external CFStringRef kSecImportItemIdentity; - -@ffi.Native() -external CFStringRef kSecImportItemKeyID; - -@ffi.Native() -external CFStringRef kSecImportItemLabel; - -@ffi.Native() -external CFStringRef kSecImportItemTrust; - -@ffi.Native() -external CFStringRef kSecImportToMemoryOnly; - -@ffi.Native() -external CFStringRef kSecInputIsAttributeName; - -@ffi.Native() -external final CFStringRef kSecInputIsDigest; - -@ffi.Native() -external CFStringRef kSecInputIsPlainText; - -@ffi.Native() -external CFStringRef kSecInputIsRaw; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactor; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandard; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestRFC4754SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageRFC4754SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureRFC4754; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA224AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA256AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA384AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA512AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA1AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorX963SHA224AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorX963SHA256AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorX963SHA384AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionCofactorX963SHA512AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA224AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA384AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA512AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA1AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardX963SHA224AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardX963SHA256AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardX963SHA384AESGCM; - -@ffi.Native() -external SecKeyAlgorithm -kSecKeyAlgorithmECIESEncryptionStandardX963SHA512AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512AESGCM; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionPKCS1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionRaw; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15Raw; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA1; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA224; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA256; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA384; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA512; - -@ffi.Native() -external SecKeyAlgorithm kSecKeyAlgorithmRSASignatureRaw; - -@ffi.Native() -external CFStringRef kSecKeyAttributeName; - -@ffi.Native() -external SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterRequestedSize; - -@ffi.Native() -external SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterSharedInfo; - -@ffi.Native() -external CFStringRef kSecLineLength64; - -@ffi.Native() -external CFStringRef kSecLineLength76; - -@ffi.Native() -external CFStringRef kSecMatchCaseInsensitive; - -@ffi.Native() -external CFStringRef kSecMatchDiacriticInsensitive; - -@ffi.Native() -external CFStringRef kSecMatchEmailAddressIfPresent; - -@ffi.Native() -external CFStringRef kSecMatchHostOrSubdomainOfHost; - -@ffi.Native() -external CFStringRef kSecMatchIssuers; - -@ffi.Native() -external CFStringRef kSecMatchItemList; - -@ffi.Native() -external CFStringRef kSecMatchLimit; - -@ffi.Native() -external CFStringRef kSecMatchLimitAll; - -@ffi.Native() -external CFStringRef kSecMatchLimitOne; - -@ffi.Native() -external CFStringRef kSecMatchPolicy; - -@ffi.Native() -external CFStringRef kSecMatchSearchList; - -@ffi.Native() -external CFStringRef kSecMatchSubjectContains; - -@ffi.Native() -external CFStringRef kSecMatchSubjectEndsWith; - -@ffi.Native() -external CFStringRef kSecMatchSubjectStartsWith; - -@ffi.Native() -external CFStringRef kSecMatchSubjectWholeString; - -@ffi.Native() -external CFStringRef kSecMatchTrustedOnly; - -@ffi.Native() -external CFStringRef kSecMatchValidOnDate; - -@ffi.Native() -external CFStringRef kSecMatchWidthInsensitive; - -@ffi.Native() -external CFStringRef kSecModeCBCKey; - -@ffi.Native() -external CFStringRef kSecModeCFBKey; - -@ffi.Native() -external CFStringRef kSecModeECBKey; - -@ffi.Native() -external CFStringRef kSecModeNoneKey; - -@ffi.Native() -external CFStringRef kSecModeOFBKey; - -@ffi.Native() -external CFStringRef kSecOAEPEncodingParametersAttributeName; - -@ffi.Native() -external CFStringRef kSecOAEPMGF1DigestAlgorithmAttributeName; - -@ffi.Native() -external CFStringRef kSecOAEPMessageLengthAttributeName; - -@ffi.Native() -external CFStringRef kSecOIDADC_CERT_POLICY; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_CERT_POLICY; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_CODE_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_CODE_SIGNING_DEV; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_ICHAT_ENCRYPTION; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_ICHAT_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_RESOURCE_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EKU_SYSTEM_IDENTITY; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_AAI_INTERMEDIATE; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_ADC_APPLE_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_ADC_DEV_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_APPLEID_INTERMEDIATE; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_APPLE_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_CODE_SIGNING; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_INTERMEDIATE_MARKER; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_ITMS_INTERMEDIATE; - -@ffi.Native() -external CFStringRef kSecOIDAPPLE_EXTENSION_WWDR_INTERMEDIATE; - -@ffi.Native() -external CFStringRef kSecOIDAuthorityInfoAccess; - -@ffi.Native() -external CFStringRef kSecOIDAuthorityKeyIdentifier; - -@ffi.Native() -external CFStringRef kSecOIDBasicConstraints; - -@ffi.Native() -external CFStringRef kSecOIDBiometricInfo; - -@ffi.Native() -external CFStringRef kSecOIDCSSMKeyStruct; - -@ffi.Native() -external CFStringRef kSecOIDCertIssuer; - -@ffi.Native() -external CFStringRef kSecOIDCertificatePolicies; - -@ffi.Native() -external CFStringRef kSecOIDClientAuth; - -@ffi.Native() -external CFStringRef kSecOIDCollectiveStateProvinceName; - -@ffi.Native() -external CFStringRef kSecOIDCollectiveStreetAddress; - -@ffi.Native() -external CFStringRef kSecOIDCommonName; - -@ffi.Native() -external CFStringRef kSecOIDCountryName; - -@ffi.Native() -external CFStringRef kSecOIDCrlDistributionPoints; - -@ffi.Native() -external CFStringRef kSecOIDCrlNumber; - -@ffi.Native() -external CFStringRef kSecOIDCrlReason; - -@ffi.Native() -external CFStringRef kSecOIDDOTMAC_CERT_EMAIL_ENCRYPT; - -@ffi.Native() -external CFStringRef kSecOIDDOTMAC_CERT_EMAIL_SIGN; - -@ffi.Native() -external CFStringRef kSecOIDDOTMAC_CERT_EXTENSION; - -@ffi.Native() -external CFStringRef kSecOIDDOTMAC_CERT_IDENTITY; - -@ffi.Native() -external CFStringRef kSecOIDDOTMAC_CERT_POLICY; - -@ffi.Native() -external CFStringRef kSecOIDDeltaCrlIndicator; - -@ffi.Native() -external CFStringRef kSecOIDDescription; - -@ffi.Native() -external CFStringRef kSecOIDEKU_IPSec; - -@ffi.Native() -external CFStringRef kSecOIDEmailAddress; - -@ffi.Native() -external CFStringRef kSecOIDEmailProtection; - -@ffi.Native() -external CFStringRef kSecOIDExtendedKeyUsage; - -@ffi.Native() -external CFStringRef kSecOIDExtendedKeyUsageAny; - -@ffi.Native() -external CFStringRef kSecOIDExtendedUseCodeSigning; - -@ffi.Native() -external CFStringRef kSecOIDGivenName; - -@ffi.Native() -external CFStringRef kSecOIDHoldInstructionCode; - -@ffi.Native() -external CFStringRef kSecOIDInvalidityDate; - -@ffi.Native() -external CFStringRef kSecOIDIssuerAltName; - -@ffi.Native() -external CFStringRef kSecOIDIssuingDistributionPoint; - -@ffi.Native() -external CFStringRef kSecOIDIssuingDistributionPoints; - -@ffi.Native() -external CFStringRef kSecOIDKERBv5_PKINIT_KP_CLIENT_AUTH; - -@ffi.Native() -external CFStringRef kSecOIDKERBv5_PKINIT_KP_KDC; - -@ffi.Native() -external CFStringRef kSecOIDKeyUsage; - -@ffi.Native() -external CFStringRef kSecOIDLocalityName; - -@ffi.Native() -external CFStringRef kSecOIDMS_NTPrincipalName; - -@ffi.Native() -external CFStringRef kSecOIDMicrosoftSGC; - -@ffi.Native() -external CFStringRef kSecOIDNameConstraints; - -@ffi.Native() -external CFStringRef kSecOIDNetscapeCertSequence; - -@ffi.Native() -external CFStringRef kSecOIDNetscapeCertType; - -@ffi.Native() -external CFStringRef kSecOIDNetscapeSGC; - -@ffi.Native() -external CFStringRef kSecOIDOCSPSigning; - -@ffi.Native() -external CFStringRef kSecOIDOrganizationName; - -@ffi.Native() -external CFStringRef kSecOIDOrganizationalUnitName; - -@ffi.Native() -external CFStringRef kSecOIDPolicyConstraints; - -@ffi.Native() -external CFStringRef kSecOIDPolicyMappings; - -@ffi.Native() -external CFStringRef kSecOIDPrivateKeyUsagePeriod; - -@ffi.Native() -external CFStringRef kSecOIDQC_Statements; - -@ffi.Native() -external CFStringRef kSecOIDSRVName; - -@ffi.Native() -external CFStringRef kSecOIDSerialNumber; - -@ffi.Native() -external CFStringRef kSecOIDServerAuth; - -@ffi.Native() -external CFStringRef kSecOIDStateProvinceName; - -@ffi.Native() -external CFStringRef kSecOIDStreetAddress; - -@ffi.Native() -external CFStringRef kSecOIDSubjectAltName; - -@ffi.Native() -external CFStringRef kSecOIDSubjectDirectoryAttributes; - -@ffi.Native() -external CFStringRef kSecOIDSubjectEmailAddress; - -@ffi.Native() -external CFStringRef kSecOIDSubjectInfoAccess; - -@ffi.Native() -external CFStringRef kSecOIDSubjectKeyIdentifier; - -@ffi.Native() -external CFStringRef kSecOIDSubjectPicture; - -@ffi.Native() -external CFStringRef kSecOIDSubjectSignatureBitmap; - -@ffi.Native() -external CFStringRef kSecOIDSurname; - -@ffi.Native() -external CFStringRef kSecOIDTimeStamping; - -@ffi.Native() -external CFStringRef kSecOIDTitle; - -@ffi.Native() -external CFStringRef kSecOIDUseExemptions; - -@ffi.Native() -external CFStringRef kSecOIDX509V1CertificateIssuerUniqueId; - -@ffi.Native() -external CFStringRef kSecOIDX509V1CertificateSubjectUniqueId; - -@ffi.Native() -external CFStringRef kSecOIDX509V1IssuerName; - -@ffi.Native() -external CFStringRef kSecOIDX509V1IssuerNameCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V1IssuerNameLDAP; - -@ffi.Native() -external CFStringRef kSecOIDX509V1IssuerNameStd; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SerialNumber; - -@ffi.Native() -external CFStringRef kSecOIDX509V1Signature; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SignatureAlgorithm; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SignatureAlgorithmParameters; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SignatureAlgorithmTBS; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SignatureCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SignatureStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectName; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectNameCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectNameLDAP; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectNameStd; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectPublicKey; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectPublicKeyAlgorithm; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectPublicKeyAlgorithmParameters; - -@ffi.Native() -external CFStringRef kSecOIDX509V1SubjectPublicKeyCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V1ValidityNotAfter; - -@ffi.Native() -external CFStringRef kSecOIDX509V1ValidityNotBefore; - -@ffi.Native() -external CFStringRef kSecOIDX509V1Version; - -@ffi.Native() -external CFStringRef kSecOIDX509V3Certificate; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionCritical; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionId; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionType; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionValue; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionsCStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateExtensionsStruct; - -@ffi.Native() -external CFStringRef kSecOIDX509V3CertificateNumberOfExtensions; - -@ffi.Native() -external CFStringRef kSecOIDX509V3SignedCertificate; - -@ffi.Native() -external CFStringRef kSecOIDX509V3SignedCertificateCStruct; - -@ffi.Native() -external CFStringRef kSecPaddingKey; - -@ffi.Native() -external CFStringRef kSecPaddingNoneKey; - -@ffi.Native() -external CFStringRef kSecPaddingOAEPKey; - -@ffi.Native() -external CFStringRef kSecPaddingPKCS1Key; - -@ffi.Native() -external CFStringRef kSecPaddingPKCS5Key; - -@ffi.Native() -external CFStringRef kSecPaddingPKCS7Key; - -@ffi.Native() -external CFStringRef kSecPolicyAppleCodeSigning; - -@ffi.Native() -external CFStringRef kSecPolicyAppleEAP; - -@ffi.Native() -external CFStringRef kSecPolicyAppleEAPClient; - -@ffi.Native() -external CFStringRef kSecPolicyAppleEAPServer; - -@ffi.Native() -external CFStringRef kSecPolicyAppleIDValidation; - -@ffi.Native() -external CFStringRef kSecPolicyAppleIPSecClient; - -@ffi.Native() -external CFStringRef kSecPolicyAppleIPSecServer; - -@ffi.Native() -external CFStringRef kSecPolicyAppleIPsec; - -@ffi.Native() -external CFStringRef kSecPolicyApplePKINITClient; - -@ffi.Native() -external CFStringRef kSecPolicyApplePKINITServer; - -@ffi.Native() -external CFStringRef kSecPolicyApplePassbookSigning; - -@ffi.Native() -external CFStringRef kSecPolicyApplePayIssuerEncryption; - -@ffi.Native() -external CFStringRef kSecPolicyAppleRevocation; - -@ffi.Native() -external CFStringRef kSecPolicyAppleSMIME; - -@ffi.Native() -external CFStringRef kSecPolicyAppleSSL; - -@ffi.Native() -external CFStringRef kSecPolicyAppleSSLClient; - -@ffi.Native() -external CFStringRef kSecPolicyAppleSSLServer; - -@ffi.Native() -external CFStringRef kSecPolicyAppleTimeStamping; - -@ffi.Native() -external CFStringRef kSecPolicyAppleX509Basic; - -@ffi.Native() -external CFStringRef kSecPolicyAppleiChat; - -@ffi.Native() -external CFStringRef kSecPolicyClient; - -@ffi.Native() -external CFStringRef kSecPolicyKU_CRLSign; - -@ffi.Native() -external CFStringRef kSecPolicyKU_DataEncipherment; - -@ffi.Native() -external CFStringRef kSecPolicyKU_DecipherOnly; - -@ffi.Native() -external CFStringRef kSecPolicyKU_DigitalSignature; - -@ffi.Native() -external CFStringRef kSecPolicyKU_EncipherOnly; - -@ffi.Native() -external CFStringRef kSecPolicyKU_KeyAgreement; - -@ffi.Native() -external CFStringRef kSecPolicyKU_KeyCertSign; - -@ffi.Native() -external CFStringRef kSecPolicyKU_KeyEncipherment; - -@ffi.Native() -external CFStringRef kSecPolicyKU_NonRepudiation; - -@ffi.Native() -external CFStringRef kSecPolicyMacAppStoreReceipt; - -@ffi.Native() -external CFStringRef kSecPolicyName; - -@ffi.Native() -external CFStringRef kSecPolicyOid; - -@ffi.Native() -external CFStringRef kSecPolicyRevocationFlags; - -@ffi.Native() -external CFStringRef kSecPolicyTeamIdentifier; - -@ffi.Native() -external CFStringRef kSecPrivateKeyAttrs; - -@ffi.Native() -external CFStringRef kSecPropertyKeyLabel; - -@ffi.Native() -external CFStringRef kSecPropertyKeyLocalizedLabel; - -@ffi.Native() -external CFStringRef kSecPropertyKeyType; - -@ffi.Native() -external CFStringRef kSecPropertyKeyValue; - -@ffi.Native() -external CFStringRef kSecPropertyTypeArray; - -@ffi.Native() -external CFStringRef kSecPropertyTypeData; - -@ffi.Native() -external CFStringRef kSecPropertyTypeDate; - -@ffi.Native() -external CFStringRef kSecPropertyTypeError; - -@ffi.Native() -external CFStringRef kSecPropertyTypeNumber; - -@ffi.Native() -external CFStringRef kSecPropertyTypeSection; - -@ffi.Native() -external CFStringRef kSecPropertyTypeString; - -@ffi.Native() -external CFStringRef kSecPropertyTypeSuccess; - -@ffi.Native() -external CFStringRef kSecPropertyTypeTitle; - -@ffi.Native() -external CFStringRef kSecPropertyTypeURL; - -@ffi.Native() -external CFStringRef kSecPropertyTypeWarning; - -@ffi.Native() -external CFStringRef kSecPublicKeyAttrs; - -@ffi.Native() -external SecRandomRef kSecRandomDefault; - -@ffi.Native() -external CFStringRef kSecReturnAttributes; - -@ffi.Native() -external CFStringRef kSecReturnData; - -@ffi.Native() -external CFStringRef kSecReturnPersistentRef; - -@ffi.Native() -external CFStringRef kSecReturnRef; - -@ffi.Native() -external CFStringRef kSecSharedPassword; - -@ffi.Native() -external final CFStringRef kSecSignatureAttributeName; - -@ffi.Native() -external CFStringRef kSecTransformAbortAttributeName; - -@ffi.Native() -external CFStringRef kSecTransformAbortOriginatorKey; - -@ffi.Native() -external CFStringRef kSecTransformActionAttributeNotification; - -@ffi.Native() -external CFStringRef kSecTransformActionAttributeValidation; - -@ffi.Native() -external CFStringRef kSecTransformActionCanExecute; - -@ffi.Native() -external CFStringRef kSecTransformActionExternalizeExtraData; - -@ffi.Native() -external CFStringRef kSecTransformActionFinalize; - -@ffi.Native() -external CFStringRef kSecTransformActionInternalizeExtraData; - -@ffi.Native() -external CFStringRef kSecTransformActionProcessData; - -@ffi.Native() -external CFStringRef kSecTransformActionStartingExecution; - -@ffi.Native() -external CFStringRef kSecTransformDebugAttributeName; - -@ffi.Native() -external CFStringRef kSecTransformErrorDomain; - -@ffi.Native() -external CFStringRef kSecTransformInputAttributeName; - -@ffi.Native() -external CFStringRef kSecTransformOutputAttributeName; - -@ffi.Native() -external CFStringRef kSecTransformPreviousErrorKey; - -@ffi.Native() -external CFStringRef kSecTransformTransformName; - -@ffi.Native() -external CFStringRef kSecTrustCertificateTransparency; - -@ffi.Native() -external CFStringRef kSecTrustCertificateTransparencyWhiteList; - -@ffi.Native() -external CFStringRef kSecTrustEvaluationDate; - -@ffi.Native() -external CFStringRef kSecTrustExtendedValidation; - -@ffi.Native() -external CFStringRef kSecTrustOrganizationName; - -@ffi.Native() -external CFStringRef kSecTrustQCStatements; - -@ffi.Native() -external CFStringRef kSecTrustQWACValidation; - -@ffi.Native() -external CFStringRef kSecTrustResultValue; - -@ffi.Native() -external CFStringRef kSecTrustRevocationChecked; - -@ffi.Native() -external CFStringRef kSecTrustRevocationValidUntilDate; - -@ffi.Native() -external CFStringRef kSecUseAuthenticationContext; - -@ffi.Native() -external CFStringRef kSecUseAuthenticationUI; - -@ffi.Native() -external CFStringRef kSecUseAuthenticationUIAllow; - -@ffi.Native() -external CFStringRef kSecUseAuthenticationUIFail; - -@ffi.Native() -external CFStringRef kSecUseAuthenticationUISkip; - -@ffi.Native() -external CFStringRef kSecUseDataProtectionKeychain; - -@ffi.Native() -external CFStringRef kSecUseItemList; - -@ffi.Native() -external CFStringRef kSecUseKeychain; - -@ffi.Native() -external CFStringRef kSecUseNoAuthenticationUI; - -@ffi.Native() -external CFStringRef kSecUseOperationPrompt; - -@ffi.Native() -external CFStringRef kSecUseUserIndependentKeychain; - -@ffi.Native() -external CFStringRef kSecValueData; - -@ffi.Native() -external CFStringRef kSecValuePersistentRef; - -@ffi.Native() -external CFStringRef kSecValueRef; - -@ffi.Native() -external CFStringRef kSecZLibEncoding; - -@ffi.Native() -external CFStringRef kSpeechAudioGraphProperty; - -@ffi.Native() -external CFStringRef kSpeechAudioOutputFormatProperty; - -@ffi.Native() -external CFStringRef kSpeechAudioUnitProperty; - -@ffi.Native() -external CFStringRef kSpeechCharacterModeProperty; - -@ffi.Native() -external CFStringRef kSpeechCommandDelimiterProperty; - -@ffi.Native() -external CFStringRef kSpeechCommandPrefix; - -@ffi.Native() -external CFStringRef kSpeechCommandSuffix; - -@ffi.Native() -external CFStringRef kSpeechCurrentVoiceProperty; - -@ffi.Native() -external CFStringRef kSpeechDictionaryAbbreviations; - -@ffi.Native() -external CFStringRef kSpeechDictionaryEntryPhonemes; - -@ffi.Native() -external CFStringRef kSpeechDictionaryEntrySpelling; - -@ffi.Native() -external CFStringRef kSpeechDictionaryLocaleIdentifier; - -@ffi.Native() -external CFStringRef kSpeechDictionaryModificationDate; - -@ffi.Native() -external CFStringRef kSpeechDictionaryPronunciations; - -@ffi.Native() -external CFStringRef kSpeechErrorCFCallBack; - -@ffi.Native() -external CFStringRef kSpeechErrorCallbackCharacterOffset; - -@ffi.Native() -external CFStringRef kSpeechErrorCallbackSpokenString; - -@ffi.Native() -external CFStringRef kSpeechErrorCount; - -@ffi.Native() -external CFStringRef kSpeechErrorNewest; - -@ffi.Native() -external CFStringRef kSpeechErrorNewestCharacterOffset; - -@ffi.Native() -external CFStringRef kSpeechErrorOldest; - -@ffi.Native() -external CFStringRef kSpeechErrorOldestCharacterOffset; - -@ffi.Native() -external CFStringRef kSpeechErrorsProperty; - -@ffi.Native() -external CFStringRef kSpeechInputModeProperty; - -@ffi.Native() -external CFStringRef kSpeechModeLiteral; - -@ffi.Native() -external CFStringRef kSpeechModeNormal; - -@ffi.Native() -external CFStringRef kSpeechModePhoneme; - -@ffi.Native() -external CFStringRef kSpeechModeText; - -@ffi.Native() -external CFStringRef kSpeechModeTune; - -@ffi.Native() -external CFStringRef kSpeechNoEndingProsody; - -@ffi.Native() -external CFStringRef kSpeechNoSpeechInterrupt; - -@ffi.Native() -external CFStringRef kSpeechNumberModeProperty; - -@ffi.Native() -external CFStringRef kSpeechOutputChannelMapProperty; - -@ffi.Native() -external CFStringRef kSpeechOutputToAudioDeviceProperty; - -@ffi.Native() -external CFStringRef kSpeechOutputToExtAudioFileProperty; - -@ffi.Native() -external CFStringRef kSpeechOutputToFileDescriptorProperty; - -@ffi.Native() -external CFStringRef kSpeechOutputToFileURLProperty; - -@ffi.Native() -external CFStringRef kSpeechPhonemeCallBack; - -@ffi.Native() -external CFStringRef kSpeechPhonemeInfoExample; - -@ffi.Native() -external CFStringRef kSpeechPhonemeInfoHiliteEnd; - -@ffi.Native() -external CFStringRef kSpeechPhonemeInfoHiliteStart; - -@ffi.Native() -external CFStringRef kSpeechPhonemeInfoOpcode; - -@ffi.Native() -external CFStringRef kSpeechPhonemeInfoSymbol; - -@ffi.Native() -external CFStringRef kSpeechPhonemeOptionsProperty; - -@ffi.Native() -external CFStringRef kSpeechPhonemeSymbolsProperty; - -@ffi.Native() -external CFStringRef kSpeechPitchBaseProperty; - -@ffi.Native() -external CFStringRef kSpeechPitchModProperty; - -@ffi.Native() -external CFStringRef kSpeechPreflightThenPause; - -@ffi.Native() -external CFStringRef kSpeechRateProperty; - -@ffi.Native() -external CFStringRef kSpeechRecentSyncProperty; - -@ffi.Native() -external CFStringRef kSpeechRefConProperty; - -@ffi.Native() -external CFStringRef kSpeechResetProperty; - -@ffi.Native() -external CFStringRef kSpeechSpeechDoneCallBack; - -@ffi.Native() -external CFStringRef kSpeechStatusNumberOfCharactersLeft; - -@ffi.Native() -external CFStringRef kSpeechStatusOutputBusy; - -@ffi.Native() -external CFStringRef kSpeechStatusOutputPaused; - -@ffi.Native() -external CFStringRef kSpeechStatusPhonemeCode; - -@ffi.Native() -external CFStringRef kSpeechStatusProperty; - -@ffi.Native() -external CFStringRef kSpeechSyncCallBack; - -@ffi.Native() -external CFStringRef kSpeechSynthExtensionProperty; - -@ffi.Native() -external CFStringRef kSpeechSynthesizerInfoIdentifier; - -@ffi.Native() -external CFStringRef kSpeechSynthesizerInfoManufacturer; - -@ffi.Native() -external CFStringRef kSpeechSynthesizerInfoProperty; - -@ffi.Native() -external CFStringRef kSpeechSynthesizerInfoVersion; - -@ffi.Native() -external CFStringRef kSpeechTextDoneCallBack; - -@ffi.Native() -external CFStringRef kSpeechVoiceCreator; - -@ffi.Native() -external CFStringRef kSpeechVoiceID; - -@ffi.Native() -external CFStringRef kSpeechVolumeProperty; - -@ffi.Native() -external CFStringRef kSpeechWordCFCallBack; - -@ffi.Native() -external CFStringRef kUTExportedTypeDeclarationsKey; - -@ffi.Native() -external CFStringRef kUTImportedTypeDeclarationsKey; - -@ffi.Native() -external CFStringRef kUTTagClassFilenameExtension; - -@ffi.Native() -external CFStringRef kUTTagClassMIMEType; - -@ffi.Native() -external CFStringRef kUTTagClassNSPboardType; - -@ffi.Native() -external CFStringRef kUTTagClassOSType; - -@ffi.Native() -external CFStringRef kUTType3DContent; - -@ffi.Native() -external CFStringRef kUTTypeAVIMovie; - -@ffi.Native() -external CFStringRef kUTTypeAliasFile; - -@ffi.Native() -external CFStringRef kUTTypeAliasRecord; - -@ffi.Native() -external CFStringRef kUTTypeAppleICNS; - -@ffi.Native() -external CFStringRef kUTTypeAppleProtectedMPEG4Audio; - -@ffi.Native() -external CFStringRef kUTTypeAppleProtectedMPEG4Video; - -@ffi.Native() -external CFStringRef kUTTypeAppleScript; - -@ffi.Native() -external CFStringRef kUTTypeApplication; - -@ffi.Native() -external CFStringRef kUTTypeApplicationBundle; - -@ffi.Native() -external CFStringRef kUTTypeApplicationFile; - -@ffi.Native() -external CFStringRef kUTTypeArchive; - -@ffi.Native() -external CFStringRef kUTTypeAssemblyLanguageSource; - -@ffi.Native() -external CFStringRef kUTTypeAudio; - -@ffi.Native() -external CFStringRef kUTTypeAudioInterchangeFileFormat; - -@ffi.Native() -external CFStringRef kUTTypeAudiovisualContent; - -@ffi.Native() -external CFStringRef kUTTypeBMP; - -@ffi.Native() -external CFStringRef kUTTypeBinaryPropertyList; - -@ffi.Native() -external CFStringRef kUTTypeBookmark; - -@ffi.Native() -external CFStringRef kUTTypeBundle; - -@ffi.Native() -external CFStringRef kUTTypeBzip2Archive; - -@ffi.Native() -external CFStringRef kUTTypeCHeader; - -@ffi.Native() -external CFStringRef kUTTypeCPlusPlusHeader; - -@ffi.Native() -external CFStringRef kUTTypeCPlusPlusSource; - -@ffi.Native() -external CFStringRef kUTTypeCSource; - -@ffi.Native() -external CFStringRef kUTTypeCalendarEvent; - -@ffi.Native() -external CFStringRef kUTTypeCommaSeparatedText; - -@ffi.Native() -external CFStringRef kUTTypeCompositeContent; - -@ffi.Native() -external CFStringRef kUTTypeConformsToKey; - -@ffi.Native() -external CFStringRef kUTTypeContact; - -@ffi.Native() -external CFStringRef kUTTypeContent; - -@ffi.Native() -external CFStringRef kUTTypeData; - -@ffi.Native() -external CFStringRef kUTTypeDatabase; - -@ffi.Native() -external CFStringRef kUTTypeDelimitedText; - -@ffi.Native() -external CFStringRef kUTTypeDescriptionKey; - -@ffi.Native() -external CFStringRef kUTTypeDirectory; - -@ffi.Native() -external CFStringRef kUTTypeDiskImage; - -@ffi.Native() -external CFStringRef kUTTypeElectronicPublication; - -@ffi.Native() -external CFStringRef kUTTypeEmailMessage; - -@ffi.Native() -external CFStringRef kUTTypeExecutable; - -@ffi.Native() -external CFStringRef kUTTypeFileURL; - -@ffi.Native() -external CFStringRef kUTTypeFlatRTFD; - -@ffi.Native() -external CFStringRef kUTTypeFolder; - -@ffi.Native() -external CFStringRef kUTTypeFont; - -@ffi.Native() -external CFStringRef kUTTypeFramework; - -@ffi.Native() -external CFStringRef kUTTypeGIF; - -@ffi.Native() -external CFStringRef kUTTypeGNUZipArchive; - -@ffi.Native() -external CFStringRef kUTTypeHTML; - -@ffi.Native() -external CFStringRef kUTTypeICO; - -@ffi.Native() -external CFStringRef kUTTypeIconFileKey; - -@ffi.Native() -external CFStringRef kUTTypeIdentifierKey; - -@ffi.Native() -external CFStringRef kUTTypeImage; - -@ffi.Native() -external CFStringRef kUTTypeInkText; - -@ffi.Native() -external CFStringRef kUTTypeInternetLocation; - -@ffi.Native() -external CFStringRef kUTTypeItem; - -@ffi.Native() -external CFStringRef kUTTypeJPEG; - -@ffi.Native() -external CFStringRef kUTTypeJPEG2000; - -@ffi.Native() -external CFStringRef kUTTypeJSON; - -@ffi.Native() -external CFStringRef kUTTypeJavaArchive; - -@ffi.Native() -external CFStringRef kUTTypeJavaClass; - -@ffi.Native() -external CFStringRef kUTTypeJavaScript; - -@ffi.Native() -external CFStringRef kUTTypeJavaSource; - -@ffi.Native() -external CFStringRef kUTTypeLivePhoto; - -@ffi.Native() -external CFStringRef kUTTypeLog; - -@ffi.Native() -external CFStringRef kUTTypeM3UPlaylist; - -@ffi.Native() -external CFStringRef kUTTypeMIDIAudio; - -@ffi.Native() -external CFStringRef kUTTypeMP3; - -@ffi.Native() -external CFStringRef kUTTypeMPEG; - -@ffi.Native() -external CFStringRef kUTTypeMPEG2TransportStream; - -@ffi.Native() -external CFStringRef kUTTypeMPEG2Video; - -@ffi.Native() -external CFStringRef kUTTypeMPEG4; - -@ffi.Native() -external CFStringRef kUTTypeMPEG4Audio; - -@ffi.Native() -external CFStringRef kUTTypeMessage; - -@ffi.Native() -external CFStringRef kUTTypeMountPoint; - -@ffi.Native() -external CFStringRef kUTTypeMovie; - -@ffi.Native() -external CFStringRef kUTTypeOSAScript; - -@ffi.Native() -external CFStringRef kUTTypeOSAScriptBundle; - -@ffi.Native() -external CFStringRef kUTTypeObjectiveCPlusPlusSource; - -@ffi.Native() -external CFStringRef kUTTypeObjectiveCSource; - -@ffi.Native() -external CFStringRef kUTTypePDF; - -@ffi.Native() -external CFStringRef kUTTypePHPScript; - -@ffi.Native() -external CFStringRef kUTTypePICT; - -@ffi.Native() -external CFStringRef kUTTypePKCS12; - -@ffi.Native() -external CFStringRef kUTTypePNG; - -@ffi.Native() -external CFStringRef kUTTypePackage; - -@ffi.Native() -external CFStringRef kUTTypePerlScript; - -@ffi.Native() -external CFStringRef kUTTypePlainText; - -@ffi.Native() -external CFStringRef kUTTypePlaylist; - -@ffi.Native() -external CFStringRef kUTTypePluginBundle; - -@ffi.Native() -external CFStringRef kUTTypePresentation; - -@ffi.Native() -external CFStringRef kUTTypePropertyList; - -@ffi.Native() -external CFStringRef kUTTypePythonScript; - -@ffi.Native() -external CFStringRef kUTTypeQuickLookGenerator; - -@ffi.Native() -external CFStringRef kUTTypeQuickTimeImage; - -@ffi.Native() -external CFStringRef kUTTypeQuickTimeMovie; - -@ffi.Native() -external CFStringRef kUTTypeRTF; - -@ffi.Native() -external CFStringRef kUTTypeRTFD; - -@ffi.Native() -external CFStringRef kUTTypeRawImage; - -@ffi.Native() -external CFStringRef kUTTypeReferenceURLKey; - -@ffi.Native() -external CFStringRef kUTTypeResolvable; - -@ffi.Native() -external CFStringRef kUTTypeRubyScript; - -@ffi.Native() -external CFStringRef kUTTypeScalableVectorGraphics; - -@ffi.Native() -external CFStringRef kUTTypeScript; - -@ffi.Native() -external CFStringRef kUTTypeShellScript; - -@ffi.Native() -external CFStringRef kUTTypeSourceCode; - -@ffi.Native() -external CFStringRef kUTTypeSpotlightImporter; - -@ffi.Native() -external CFStringRef kUTTypeSpreadsheet; - -@ffi.Native() -external CFStringRef kUTTypeSwiftSource; - -@ffi.Native() -external CFStringRef kUTTypeSymLink; - -@ffi.Native() -external CFStringRef kUTTypeSystemPreferencesPane; - -@ffi.Native() -external CFStringRef kUTTypeTIFF; - -@ffi.Native() -external CFStringRef kUTTypeTXNTextAndMultimediaData; - -@ffi.Native() -external CFStringRef kUTTypeTabSeparatedText; - -@ffi.Native() -external CFStringRef kUTTypeTagSpecificationKey; - -@ffi.Native() -external CFStringRef kUTTypeText; - -@ffi.Native() -external CFStringRef kUTTypeToDoItem; - -@ffi.Native() -external CFStringRef kUTTypeURL; - -@ffi.Native() -external CFStringRef kUTTypeURLBookmarkData; - -@ffi.Native() -external CFStringRef kUTTypeUTF16ExternalPlainText; - -@ffi.Native() -external CFStringRef kUTTypeUTF16PlainText; - -@ffi.Native() -external CFStringRef kUTTypeUTF8PlainText; - -@ffi.Native() -external CFStringRef kUTTypeUTF8TabSeparatedText; - -@ffi.Native() -external CFStringRef kUTTypeUnixExecutable; - -@ffi.Native() -external CFStringRef kUTTypeVCard; - -@ffi.Native() -external CFStringRef kUTTypeVersionKey; - -@ffi.Native() -external CFStringRef kUTTypeVideo; - -@ffi.Native() -external CFStringRef kUTTypeVolume; - -@ffi.Native() -external CFStringRef kUTTypeWaveformAudio; - -@ffi.Native() -external CFStringRef kUTTypeWebArchive; - -@ffi.Native() -external CFStringRef kUTTypeWindowsExecutable; - -@ffi.Native() -external CFStringRef kUTTypeX509Certificate; - -@ffi.Native() -external CFStringRef kUTTypeXML; - -@ffi.Native() -external CFStringRef kUTTypeXMLPropertyList; - -@ffi.Native() -external CFStringRef kUTTypeXPCService; - -@ffi.Native() -external CFStringRef kUTTypeZipArchive; - -@ffi.Native() -external CFStringRef kWSDebugIncomingBody; - -@ffi.Native() -external CFStringRef kWSDebugIncomingHeaders; - -@ffi.Native() -external CFStringRef kWSDebugOutgoingBody; - -@ffi.Native() -external CFStringRef kWSDebugOutgoingHeaders; - -@ffi.Native() -external CFStringRef kWSFaultCode; - -@ffi.Native() -external CFStringRef kWSFaultExtra; - -@ffi.Native() -external CFStringRef kWSFaultString; - -@ffi.Native() -external CFStringRef kWSHTTPExtraHeaders; - -@ffi.Native() -external CFStringRef kWSHTTPFollowsRedirects; - -@ffi.Native() -external CFStringRef kWSHTTPMessage; - -@ffi.Native() -external CFStringRef kWSHTTPProxy; - -@ffi.Native() -external CFStringRef kWSHTTPResponseMessage; - -@ffi.Native() -external CFStringRef kWSHTTPVersion; - -@ffi.Native() -external CFStringRef kWSMethodInvocationResult; - -@ffi.Native() -external CFStringRef kWSMethodInvocationResultParameterName; - -@ffi.Native() -external CFStringRef kWSMethodInvocationTimeoutValue; - -@ffi.Native() -external CFStringRef kWSNetworkStreamFaultString; - -@ffi.Native() -external CFStringRef kWSRecordNamespaceURI; - -@ffi.Native() -external CFStringRef kWSRecordParameterOrder; - -@ffi.Native() -external CFStringRef kWSRecordType; - -@ffi.Native() -external CFStringRef kWSSOAP1999Protocol; - -@ffi.Native() -external CFStringRef kWSSOAP2001Protocol; - -@ffi.Native() -external CFStringRef kWSSOAPBodyEncodingStyle; - -@ffi.Native() -external CFStringRef kWSSOAPMessageHeaders; - -@ffi.Native() -external CFStringRef kWSSOAPMethodNamespaceURI; - -@ffi.Native() -external CFStringRef kWSSOAPStyleDoc; - -@ffi.Native() -external CFStringRef kWSSOAPStyleRPC; - -@ffi.Native() -external CFStringRef kWSStreamErrorDomain; - -@ffi.Native() -external CFStringRef kWSStreamErrorError; - -@ffi.Native() -external CFStringRef kWSStreamErrorMessage; - -@ffi.Native() -external CFStringRef kWSXMLRPCProtocol; - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kcfindapplesharepassword( - ffi.Pointer> serverSignature, - ffi.Pointer serverAddress, - ffi.Pointer serverName, - ffi.Pointer volumeName, - ffi.Pointer accountName, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kcfindgenericpassword( - ffi.Pointer serviceName, - ffi.Pointer accountName, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - UInt16, - OSType, - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kcfindinternetpassword( - ffi.Pointer serverName, - ffi.Pointer securityDomain, - ffi.Pointer accountName, - int port, - int protocol, - int authType, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - UInt16, - OSType, - OSType, - UInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kcfindinternetpasswordwithpath( - ffi.Pointer serverName, - ffi.Pointer securityDomain, - ffi.Pointer accountName, - ffi.Pointer path, - int port, - int protocol, - int authType, - int maxLength, - ffi.Pointer passwordData, - ffi.Pointer actualLength, - ffi.Pointer item, -); - -@Deprecated('No longer supported') -@ffi.Native)>() -external int kcgetkeychainname( - KCRef keychain, - ffi.Pointer keychainName, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - ffi.Uint32, - vm_offset_t, - mach_msg_type_number_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kext_request( - int host_priv, - int user_log_flags, - int request_data, - int request_dataCnt, - ffi.Pointer response_data, - ffi.Pointer response_dataCnt, - ffi.Pointer log_data, - ffi.Pointer log_dataCnt, - ffi.Pointer op_result, -); - -@ffi.Native() -external int kill(int arg0, int arg1); - -@ffi.Native() -external int killpg(int arg0, int arg1); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - kmod_t, - kmod_control_flavor_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kmod_control( - int host_priv, - int module, - int flavor, - ffi.Pointer data, - ffi.Pointer dataCnt, -); - -@ffi.Native< - kern_return_t Function(host_priv_t, vm_address_t, ffi.Pointer) ->() -external int kmod_create(int host_priv, int info, ffi.Pointer module); - -@ffi.Native() -external int kmod_destroy(int host_priv, int module); - -@ffi.Native< - kern_return_t Function( - host_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int kmod_get_info( - int host, - ffi.Pointer modules, - ffi.Pointer modulesCnt, -); - -@ffi.Native Function(ffi.Long)>() -external ffi.Pointer l64a(int arg0); - -@ffi.Native() -external int labs(int arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) ->() -external int launch_activate_socket( - ffi.Pointer name, - ffi.Pointer> fds, - ffi.Pointer cnt, -); - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'launch_data_alloc', -) -external launch_data_t _launch_data_alloc(int type); - -launch_data_t launch_data_alloc(launch_data_type_t type) { - return _launch_data_alloc(type.value); -} - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_array_get_count(launch_data_t larray); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_array_get_index( - launch_data_t larray, - int idx, -); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_array_set_index( - launch_data_t larray, - launch_data_t lval, - int idx, -); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_copy(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_dict_get_count(launch_data_t ldict); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Bool Function(launch_data_t, launch_data_t, ffi.Pointer) ->() -external bool launch_data_dict_insert( - launch_data_t ldict, - launch_data_t lval, - ffi.Pointer key, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - launch_data_t, - launch_data_dict_iterator_t, - ffi.Pointer, - ) ->() -external void launch_data_dict_iterate( - launch_data_t ldict, - launch_data_dict_iterator_t iterator, - ffi.Pointer ctx, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external launch_data_t launch_data_dict_lookup( - launch_data_t ldict, - ffi.Pointer key, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external bool launch_data_dict_remove( - launch_data_t ldict, - ffi.Pointer key, -); - -@Deprecated('Deprecated') -@ffi.Native() -external void launch_data_free(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_get_bool(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_get_errno(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_get_fd(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_get_integer(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_get_machport(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native Function(launch_data_t)>() -external ffi.Pointer launch_data_get_opaque(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_data_get_opaque_size(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native() -external double launch_data_get_real(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native Function(launch_data_t)>() -external ffi.Pointer launch_data_get_string(launch_data_t ld); - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'launch_data_get_type', -) -external int _launch_data_get_type(launch_data_t ld); - -launch_data_type_t launch_data_get_type(launch_data_t ld) { - return launch_data_type_t.fromValue(_launch_data_get_type(ld)); -} - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_new_bool(bool val); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_new_fd(int fd); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_new_integer(int val); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_new_machport(int val); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Size)>() -external launch_data_t launch_data_new_opaque( - ffi.Pointer bytes, - int sz, -); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_data_new_real(double val); - -@Deprecated('Deprecated') -@ffi.Native)>() -external launch_data_t launch_data_new_string(ffi.Pointer val); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_set_bool(launch_data_t ld, bool val); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_set_fd(launch_data_t ld, int fd); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_set_integer(launch_data_t ld, int val); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_set_machport(launch_data_t ld, int mp); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Size)>() -external bool launch_data_set_opaque( - launch_data_t ld, - ffi.Pointer bytes, - int sz, -); - -@Deprecated('Deprecated') -@ffi.Native() -external bool launch_data_set_real(launch_data_t ld, double val); - -@Deprecated('Deprecated') -@ffi.Native)>() -external bool launch_data_set_string( - launch_data_t ld, - ffi.Pointer val, -); - -@Deprecated('Deprecated') -@ffi.Native() -external int launch_get_fd(); - -@Deprecated('Deprecated') -@ffi.Native() -external launch_data_t launch_msg(launch_data_t request); - -@ffi.Native, uid_t, gid_t)>() -external int lchown(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native)>() -external void lcong48(ffi.Pointer arg0); - -@ffi.Native() -external double ldexp(double arg0, int arg1); - -@ffi.Native() -external double ldexpf(double arg0, int arg1); - -@ffi.Native() -external ldiv_t ldiv(int arg0, int arg1); - -@ffi.Native() -external double lgamma(double arg0); - -@ffi.Native() -external double lgammaf(double arg0); - -@ffi.Native, ffi.Pointer)>() -external int link(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ) ->() -external int linkat( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - int arg4, -); - -@ffi.Native() -external int listen(int arg0, int arg1); - -@ffi.Native() -external int llabs(int arg0); - -@ffi.Native() -external lldiv_t lldiv(int arg0, int arg1); - -@ffi.Native() -external int llrint(double arg0); - -@ffi.Native() -external int llrintf(double arg0); - -@ffi.Native() -external int llround(double arg0); - -@ffi.Native() -external int llroundf(double arg0); - -@ffi.Native Function()>() -external ffi.Pointer localeconv(); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer localtime(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer, ffi.Pointer)>() -external ffi.Pointer localtime_r( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - kern_return_t Function(task_t, ffi.Pointer, ffi.Int, ffi.Int) ->() -external int lock_set_create( - int task, - ffi.Pointer new_lock_set, - int n_ulocks, - int policy, -); - -@ffi.Native() -external int lock_set_destroy(int task, int lock_set); - -@ffi.Native() -external int lockf(int arg0, int arg1, int arg2); - -@ffi.Native() -external double log(double arg0); - -@ffi.Native() -external double log10(double arg0); - -@ffi.Native() -external double log10f(double arg0); - -@ffi.Native() -external double log1p(double arg0); - -@ffi.Native() -external double log1pf(double arg0); - -@ffi.Native() -external double log2(double arg0); - -@ffi.Native() -external double log2f(double arg0); - -@ffi.Native() -external double logb(double arg0); - -@ffi.Native() -external double logbf(double arg0); - -@ffi.Native() -external double logf(double arg0); - -@ffi.Native, ffi.Int)>() -external void longjmp(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external void longjmperror(); - -@ffi.Native() -external int lrand48(); - -@ffi.Native() -external int lrint(double arg0); - -@ffi.Native() -external int lrintf(double arg0); - -@ffi.Native() -external int lround(double arg0); - -@ffi.Native() -external int lroundf(double arg0); - -@ffi.Native() -external int lseek(int arg0, int arg1, int arg2); - -@ffi.Native, ffi.Pointer)>() -external int lutimes(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native, mach_error_t)>() -external void mach_error(ffi.Pointer str, int error_value); - -@ffi.Native Function(mach_error_t)>() -external ffi.Pointer mach_error_string(int error_value); - -@ffi.Native Function(mach_error_t)>() -external ffi.Pointer mach_error_type(int error_value); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, ffi.Int, ffi.Pointer) ->() -external int mach_generate_activity_id( - int target, - int count, - ffi.Pointer activity_id, -); - -@ffi.Native() -external int mach_host_self(); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_offset_t, - vm_prot_t, - ffi.Pointer, - mem_entry_name_port_t, - ) ->() -external int mach_make_memory_entry( - int target_task, - ffi.Pointer size, - int offset, - int permission, - ffi.Pointer object_handle, - int parent_entry, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - memory_object_offset_t, - vm_prot_t, - ffi.Pointer, - mem_entry_name_port_t, - ) ->() -external int mach_make_memory_entry_64( - int target_task, - ffi.Pointer size, - int offset, - int permission, - ffi.Pointer object_handle, - int parent_entry, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_memory_info( - int host, - ffi.Pointer names, - ffi.Pointer namesCnt, - ffi.Pointer info, - ffi.Pointer infoCnt, - ffi.Pointer memory_info, - ffi.Pointer memory_infoCnt, -); - -@ffi.Native< - kern_return_t Function( - host_t, - boolean_t, - vm_size_t, - vm_prot_t, - memory_object_t, - ffi.Pointer, - ) ->() -external int mach_memory_object_memory_entry( - int host, - int internal, - int size, - int permission, - int pager, - ffi.Pointer entry_handle, -); - -@ffi.Native< - kern_return_t Function( - host_t, - boolean_t, - memory_object_size_t, - vm_prot_t, - memory_object_t, - ffi.Pointer, - ) ->() -external int mach_memory_object_memory_entry_64( - int host, - int internal, - int size, - int permission, - int pager, - ffi.Pointer entry_handle, -); - -@ffi.Native< - mach_msg_return_t Function( - ffi.Pointer, - mach_msg_option_t, - mach_msg_size_t, - mach_msg_size_t, - mach_port_name_t, - mach_msg_timeout_t, - mach_port_name_t, - ) ->() -external int mach_msg( - ffi.Pointer msg, - int option, - int send_size, - int rcv_size, - int rcv_name, - int timeout, - int notify, -); - -@ffi.Native)>() -external void mach_msg_destroy(ffi.Pointer arg0); - -@ffi.Native< - mach_msg_return_t Function( - ffi.Pointer, - mach_msg_option_t, - mach_msg_size_t, - mach_msg_size_t, - mach_port_name_t, - mach_msg_timeout_t, - mach_port_name_t, - ffi.Pointer, - mach_msg_size_t, - ) ->() -external int mach_msg_overwrite( - ffi.Pointer msg, - int option, - int send_size, - int rcv_size, - int rcv_name, - int timeout, - int notify, - ffi.Pointer rcv_msg, - int rcv_limit, -); - -@ffi.Native)>() -external int mach_msg_receive(ffi.Pointer arg0); - -@ffi.Native)>() -external int mach_msg_send(ffi.Pointer arg0); - -@ffi.Native< - mach_msg_return_t Function( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >, - mach_msg_size_t, - mach_port_t, - mach_msg_options_t, - ) ->() -external int mach_msg_server( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native< - mach_msg_return_t Function( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >, - mach_msg_size_t, - mach_port_t, - mach_msg_options_t, - ) ->() -external int mach_msg_server_importance( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native< - mach_msg_return_t Function( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >, - mach_msg_size_t, - mach_port_t, - mach_msg_options_t, - ) ->() -external int mach_msg_server_once( - ffi.Pointer< - ffi.NativeFunction< - boolean_t Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_right_t, - ffi.Pointer, - ) ->() -external int mach_port_allocate( - int task, - int right, - ffi.Pointer name, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_right_t, - mach_port_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_allocate_full( - int task, - int right, - int proto, - ffi.Pointer qos, - ffi.Pointer name, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_right_t, mach_port_name_t) ->() -external int mach_port_allocate_name(int task, int right, int name); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_right_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_allocate_qos( - int task, - int right, - ffi.Pointer qos, - ffi.Pointer name, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_flavor_t, - mach_port_info_t, - mach_msg_type_number_t, - ) ->() -external int mach_port_assert_attributes( - int task, - int name, - int flavor, - mach_port_info_t info, - int infoCnt, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_options_ptr_t, - mach_port_context_t, - ffi.Pointer, - ) ->() -external int mach_port_construct( - int task, - mach_port_options_ptr_t options, - int context, - ffi.Pointer name, -); - -@ffi.Native() -external int mach_port_deallocate(int task, int name); - -@Deprecated( - 'Inherently unsafe API: instead manage rights with mach_port_destruct(), mach_port_deallocate() or mach_port_mod_refs()', -) -@ffi.Native() -external int mach_port_destroy(int task, int name); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_delta_t, - mach_port_context_t, - ) ->() -external int mach_port_destruct(int task, int name, int srdelta, int guard); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_dnrequest_info( - int task, - int name, - ffi.Pointer dnr_total, - ffi.Pointer dnr_used, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) ->() -external int mach_port_extract_member(int task, int name, int pset); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_msg_type_name_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_extract_right( - int task, - int name, - int msgt_name, - ffi.Pointer poly, - ffi.Pointer polyPoly, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - mach_port_flavor_t, - mach_port_info_t, - ffi.Pointer, - ) ->() -external int mach_port_get_attributes( - int task, - int name, - int flavor, - mach_port_info_t port_info_out, - ffi.Pointer port_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int mach_port_get_context( - int task, - int name, - ffi.Pointer context, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_right_t, - ffi.Pointer, - ) ->() -external int mach_port_get_refs( - int task, - int name, - int right, - ffi.Pointer refs, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int mach_port_get_service_port_info( - int task, - int name, - ffi.Pointer sp_info_out, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_get_set_status( - int task, - int name, - ffi.Pointer members, - ffi.Pointer membersCnt, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int mach_port_get_srights( - int task, - int name, - ffi.Pointer srights, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_context_t, - boolean_t, - ) ->() -external int mach_port_guard(int task, int name, int guard, int strict); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_context_t, - ffi.Uint64, - ) ->() -external int mach_port_guard_with_flags( - int task, - int name, - int guard, - int flags, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) ->() -external int mach_port_insert_member(int task, int name, int pset); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_t, - mach_msg_type_name_t, - ) ->() -external int mach_port_insert_right(int task, int name, int poly, int polyPoly); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int mach_port_is_connection_for_service( - int task, - int connection_port, - int service_port, - ffi.Pointer filter_policy_id, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_kernel_object( - int task, - int name, - ffi.Pointer object_type, - ffi.Pointer object_addr, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_kobject( - int task, - int name, - ffi.Pointer object_type, - ffi.Pointer object_addr, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - mach_port_name_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_kobject_description( - int task, - int name, - ffi.Pointer object_type, - ffi.Pointer object_addr, - ffi.Pointer description, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_right_t, - mach_port_delta_t, - ) ->() -external int mach_port_mod_refs(int task, int name, int right, int delta); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) ->() -external int mach_port_move_member(int task, int member, int after); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_names( - int task, - ffi.Pointer names, - ffi.Pointer namesCnt, - ffi.Pointer types, - ffi.Pointer typesCnt, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_msg_trailer_type_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - mach_msg_trailer_info_t, - ffi.Pointer, - ) ->() -external int mach_port_peek( - int task, - int name, - int trailer_type, - ffi.Pointer request_seqnop, - ffi.Pointer msg_sizep, - ffi.Pointer msg_idp, - mach_msg_trailer_info_t trailer_infop, - ffi.Pointer trailer_infopCnt, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_name_t) ->() -external int mach_port_rename(int task, int old_name, int new_name); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_msg_id_t, - mach_port_mscount_t, - mach_port_t, - mach_msg_type_name_t, - ffi.Pointer, - ) ->() -external int mach_port_request_notification( - int task, - int name, - int msgid, - int sync$1, - int notify, - int notifyPoly, - ffi.Pointer previous, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_flavor_t, - mach_port_info_t, - mach_msg_type_number_t, - ) ->() -external int mach_port_set_attributes( - int task, - int name, - int flavor, - mach_port_info_t port_info, - int port_infoCnt, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_context_t) ->() -external int mach_port_set_context(int task, int name, int context); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_mscount_t) ->() -external int mach_port_set_mscount(int task, int name, int mscount); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_seqno_t) ->() -external int mach_port_set_seqno(int task, int name, int seqno); - -@ffi.Native< - kern_return_t Function( - ipc_space_inspect_t, - ffi.Pointer, - ) ->() -external int mach_port_space_basic_info( - int task, - ffi.Pointer basic_info, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_read_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_port_space_info( - int space, - ffi.Pointer space_info, - ffi.Pointer table_info, - ffi.Pointer table_infoCnt, - ffi.Pointer tree_info, - ffi.Pointer tree_infoCnt, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - mach_port_context_t, - mach_port_context_t, - ) ->() -external int mach_port_swap_guard( - int task, - int name, - int old_guard, - int new_guard, -); - -@ffi.Native< - kern_return_t Function( - ipc_space_t, - mach_port_name_t, - ffi.Pointer, - ) ->() -external int mach_port_type( - int task, - int name, - ffi.Pointer ptype, -); - -@ffi.Native< - kern_return_t Function(ipc_space_t, mach_port_name_t, mach_port_context_t) ->() -external int mach_port_unguard(int task, int name, int guard); - -@ffi.Native< - kern_return_t Function( - task_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_ports_lookup( - int target_task, - ffi.Pointer init_port_set, - ffi.Pointer init_port_setCnt, -); - -@ffi.Native< - kern_return_t Function(task_t, mach_port_array_t, mach_msg_type_number_t) ->() -external int mach_ports_register( - int target_task, - mach_port_array_t init_port_set, - int init_port_setCnt, -); - -@ffi.Native() -external int mach_task_is_self(int task); - -@ffi.Native() -external int mach_task_self_; - -@ffi.Native() -external int mach_thread_self(); - -@ffi.Native)>() -external int mach_vm_reclaim_update_kernel_accounting_trap( - int target_tport, - ffi.Pointer bytes_reclaimed, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - vm_address_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_vm_region_info( - int task, - int address, - ffi.Pointer region, - ffi.Pointer objects, - ffi.Pointer objectsCnt, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - vm_address_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_vm_region_info_64( - int task, - int address, - ffi.Pointer region, - ffi.Pointer objects, - ffi.Pointer objectsCnt, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - vm_map_t, - mach_vm_address_t, - mach_vm_size_t, - vm_prot_t, - ) ->() -external int mach_vm_wire( - int host_priv, - int task, - int address, - int size, - int desired_access, -); - -@ffi.Native() -external int mach_voucher_deallocate(int voucher); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - mach_voucher_attr_key_t, - mach_voucher_attr_raw_recipe_t, - ffi.Pointer, - ) ->() -external int mach_voucher_extract_attr_recipe_trap( - int voucher_name, - int key, - mach_voucher_attr_raw_recipe_t recipe, - ffi.Pointer recipe_size, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int mach_zone_info( - int host, - ffi.Pointer names, - ffi.Pointer namesCnt, - ffi.Pointer info, - ffi.Pointer infoCnt, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - mach_zone_name_t, - ffi.Pointer, - ) ->() -external int mach_zone_info_for_zone( - int host, - mach_zone_name_t name, - ffi.Pointer info, -); - -@ffi.Native() -external int macx_backing_store_recovery(int pid); - -@ffi.Native() -external int macx_backing_store_suspend(int suspend); - -@ffi.Native() -external int macx_swapoff(int filename, int flags); - -@ffi.Native() -external int macx_swapon(int filename, int flags, int size, int priority); - -@ffi.Native() -external int macx_triggers( - int hi_water, - int low_water, - int flags, - int alert_port, -); - -@ffi.Native, ffi.Size, ffi.Int)>() -external int madvise(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native Function(ffi.Size)>() -external ffi.Pointer malloc(int __size); - -@ffi.Native< - ffi.Pointer Function(ffi.Size, ffi.Size, malloc_type_id_t) ->() -external ffi.Pointer malloc_type_aligned_alloc( - int alignment, - int size, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Size, ffi.Size, malloc_type_id_t) ->() -external ffi.Pointer malloc_type_calloc( - int count, - int size, - int type_id, -); - -@ffi.Native, malloc_type_id_t)>() -external void malloc_type_free(ffi.Pointer ptr, int type_id); - -@ffi.Native Function(ffi.Size, malloc_type_id_t)>() -external ffi.Pointer malloc_type_malloc(int size, int type_id); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Size, - ffi.Size, - malloc_type_id_t, - ) ->() -external int malloc_type_posix_memalign( - ffi.Pointer> memptr, - int alignment, - int size, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_realloc( - ffi.Pointer ptr, - int size, - int type_id, -); - -@ffi.Native Function(ffi.Size, malloc_type_id_t)>() -external ffi.Pointer malloc_type_valloc(int size, int type_id); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_zone_calloc( - ffi.Pointer zone, - int count, - int size, - int type_id, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - malloc_type_id_t, - ) ->() -external void malloc_type_zone_free( - ffi.Pointer zone, - ffi.Pointer ptr, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_zone_malloc( - ffi.Pointer zone, - int size, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_zone_memalign( - ffi.Pointer zone, - int alignment, - int size, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_zone_realloc( - ffi.Pointer zone, - ffi.Pointer ptr, - int size, - int type_id, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - malloc_type_id_t, - ) ->() -external ffi.Pointer malloc_type_zone_valloc( - ffi.Pointer zone, - int size, - int type_id, -); - -@ffi.Native, ffi.Size)>() -external int mblen(ffi.Pointer __s, int __n); - -@ffi.Native< - ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int mbstowcs( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int mbtowc( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Size, - ) ->() -external ffi.Pointer memccpy( - ffi.Pointer __dst, - ffi.Pointer __src, - int __c, - int __n, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Size) ->() -external ffi.Pointer memchr( - ffi.Pointer __s, - int __c, - int __n, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int memcmp( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer memcpy( - ffi.Pointer __dst, - ffi.Pointer __src, - int __n, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer memmem( - ffi.Pointer __big, - int __big_len, - ffi.Pointer __little, - int __little_len, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer memmove( - ffi.Pointer __dst, - ffi.Pointer __src, - int __len, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Int, ffi.Size) ->() -external ffi.Pointer memset( - ffi.Pointer __b, - int __c, - int __len, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external void memset_pattern16( - ffi.Pointer __b, - ffi.Pointer __pattern16, - int __len, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external void memset_pattern4( - ffi.Pointer __b, - ffi.Pointer __pattern4, - int __len, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external void memset_pattern8( - ffi.Pointer __b, - ffi.Pointer __pattern8, - int __len, -); - -@ffi.Native< - errno_t Function(ffi.Pointer, rsize_t, ffi.Int, rsize_t) ->() -external int memset_s(ffi.Pointer __s, int __smax, int __c, int __n); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >, - ) ->() -external int mergesort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - __compar, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'mergesort_b') -external int _mergesort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer __compar, -); - -int mergesort_b( - ffi.Pointer __base, - int __nel, - int __width, - objc.ObjCBlock, ffi.Pointer)> - __compar, -) { - final _$$ref = __compar.ref; - return _mergesort_b(__base, __nel, __width, _$$ref.pointer); -} - -@ffi.Native, vm_size_t)>() -external void mig_allocate(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external void mig_dealloc_reply_port(int reply_port); - -@ffi.Native() -external void mig_deallocate(int arg0, int arg1); - -@ffi.Native() -external int mig_get_reply_port(); - -@ffi.Native() -external void mig_put_reply_port(int reply_port); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external void mig_reply_setup( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int mig_strncpy( - ffi.Pointer dest, - ffi.Pointer src, - int len, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int mig_strncpy_zerofill( - ffi.Pointer dest, - ffi.Pointer src, - int len, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Pointer) ->() -external int mincore( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -); - -@ffi.Native, ffi.Size, ffi.Int)>() -external int minherit(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer mkdtemp(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Int, ffi.Pointer)>() -external ffi.Pointer mkdtempat_np( - int dfd, - ffi.Pointer path, -); - -@ffi.Native, mode_t, dev_t)>() -external int mknod(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native, ffi.Int)>() -external int mkostemp(ffi.Pointer path, int oflags); - -@ffi.Native, ffi.Int, ffi.Int)>() -external int mkostemps(ffi.Pointer path, int slen, int oflags); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) ->() -external int mkostempsat_np( - int dfd, - ffi.Pointer path, - int slen, - int oflags, -); - -@ffi.Native, mode_t)>() -external int mkpath_np(ffi.Pointer path, int omode); - -@ffi.Native, mode_t)>() -external int mkpathat_np(int dfd, ffi.Pointer path, int omode); - -@ffi.Native)>() -external int mkstemp(ffi.Pointer arg0); - -@ffi.Native, ffi.Int, ffi.Int)>() -external int mkstemp_dprotected_np( - ffi.Pointer path, - int dpclass, - int dpflags, -); - -@ffi.Native, ffi.Int)>() -external int mkstemps(ffi.Pointer arg0, int arg1); - -@ffi.Native, ffi.Int)>() -external int mkstempsat_np(int dfd, ffi.Pointer path, int slen); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.', -) -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer mktemp(ffi.Pointer arg0); - -@ffi.Native)>() -external int mktime(ffi.Pointer arg0); - -@ffi.Native, ffi.Size)>() -external int mlock(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int mlockall(int arg0); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Int, - ffi.Int, - off_t, - ) ->() -external ffi.Pointer mmap( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, - int arg4, - int arg5, -); - -@ffi.Native)>() -external double modf(double arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external double modff(double arg0, ffi.Pointer arg1); - -@ffi.Native, ffi.Size, ffi.Int)>() -external int mprotect(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native() -external int mrand48(); - -@ffi.Native, ffi.Size, ffi.Int)>() -external int msync(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native, ffi.Size)>() -external int munlock(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int munlockall(); - -@ffi.Native, ffi.Size)>() -external int munmap(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external double nan(ffi.Pointer arg0); - -@ffi.Native)>() -external double nanf(ffi.Pointer arg0); - -@ffi.Native, ffi.Pointer)>() -external int nanosleep( - ffi.Pointer __rqtp, - ffi.Pointer __rmtp, -); - -@ffi.Native() -external double nearbyint(double arg0); - -@ffi.Native() -external double nearbyintf(double arg0); - -@ffi.Native, locale_t)>() -external locale_t newlocale( - int arg0, - ffi.Pointer arg1, - locale_t arg2, -); - -@ffi.Native() -external double nextafter(double arg0, double arg1); - -@ffi.Native() -external double nextafterf(double arg0, double arg1); - -@ffi.Native)>() -external int nfssvc(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external int nice(int arg0); - -@ffi.Native)>() -external int nrand48(ffi.Pointer arg0); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function(ffi.Pointer, double_t, ffi.Pointer) ->() -external void num2dec(ffi.Pointer f, double x, ffi.Pointer d); - -@Deprecated('Deprecated') -@ffi.Native)>() -external void numtostring(int theNum, ffi.Pointer theString); - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'object_getClassName', -) -external ffi.Pointer _object_getClassName( - ffi.Pointer obj, -); - -ffi.Pointer object_getClassName(objc.ObjCObject? obj) { - final _$$ref = obj?.ref; - return _object_getClassName(_$$ref?.pointer ?? ffi.nullptr); -} - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'object_getIndexedIvars', -) -external ffi.Pointer _object_getIndexedIvars( - ffi.Pointer obj, -); - -ffi.Pointer object_getIndexedIvars(objc.ObjCObject? obj) { - final _$$ref = obj?.ref; - return _object_getIndexedIvars(_$$ref?.pointer ?? ffi.nullptr); -} - -@ffi.Native() -external final DERItem oidAdCAIssuer; - -@ffi.Native() -external final DERItem oidAdOCSP; - -@ffi.Native() -external final DERItem oidAnsip384r1; - -@ffi.Native() -external final DERItem oidAnsip521r1; - -@ffi.Native() -external final DERItem oidAnyExtendedKeyUsage; - -@ffi.Native() -external final DERItem oidAnyPolicy; - -@ffi.Native() -external final DERItem oidAuthorityInfoAccess; - -@ffi.Native() -external final DERItem oidAuthorityKeyIdentifier; - -@ffi.Native() -external final DERItem oidBasicConstraints; - -@ffi.Native() -external final DERItem oidCertificatePolicies; - -@ffi.Native() -external final DERItem oidCommonName; - -@ffi.Native() -external final DERItem oidCountryName; - -@ffi.Native() -external final DERItem oidCrlDistributionPoints; - -@ffi.Native() -external final DERItem oidDescription; - -@ffi.Native() -external final DERItem oidEcPrime192v1; - -@ffi.Native() -external final DERItem oidEcPrime256v1; - -@ffi.Native() -external final DERItem oidEcPubKey; - -@ffi.Native() -external final DERItem oidEmailAddress; - -@ffi.Native() -external final DERItem oidEntrustVersInfo; - -@ffi.Native() -external final DERItem oidExtendedKeyUsage; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageClientAuth; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageCodeSigning; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageEmailProtection; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageIPSec; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageMicrosoftSGC; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageNetscapeSGC; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageOCSPSigning; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageServerAuth; - -@ffi.Native() -external final DERItem oidExtendedKeyUsageTimeStamping; - -@ffi.Native() -external final DERItem oidFee; - -@ffi.Native() -external final DERItem oidFriendlyName; - -@ffi.Native() -external final DERItem oidGoogleEmbeddedSignedCertificateTimestamp; - -@ffi.Native() -external final DERItem oidGoogleOCSPSignedCertificateTimestamp; - -@ffi.Native() -external final DERItem oidInhibitAnyPolicy; - -@ffi.Native() -external final DERItem oidIssuerAltName; - -@ffi.Native() -external final DERItem oidKeyUsage; - -@ffi.Native() -external final DERItem oidLocalKeyId; - -@ffi.Native() -external final DERItem oidLocalityName; - -@ffi.Native() -external final DERItem oidMSNTPrincipalName; - -@ffi.Native() -external final DERItem oidMd2; - -@ffi.Native() -external final DERItem oidMd2Rsa; - -@ffi.Native() -external final DERItem oidMd4; - -@ffi.Native() -external final DERItem oidMd4Rsa; - -@ffi.Native() -external final DERItem oidMd5; - -@ffi.Native() -external final DERItem oidMd5Fee; - -@ffi.Native() -external final DERItem oidMd5Rsa; - -@ffi.Native() -external final DERItem oidNameConstraints; - -@ffi.Native() -external final DERItem oidNetscapeCertType; - -@ffi.Native() -external final DERItem oidOrganizationName; - -@ffi.Native() -external final DERItem oidOrganizationalUnitName; - -@ffi.Native() -external final DERItem oidPolicyConstraints; - -@ffi.Native() -external final DERItem oidPolicyMappings; - -@ffi.Native() -external final DERItem oidPrivateKeyUsagePeriod; - -@ffi.Native() -external final DERItem oidQtCps; - -@ffi.Native() -external final DERItem oidQtUNotice; - -@ffi.Native() -external final DERItem oidRsa; - -@ffi.Native() -external final DERItem oidSha1; - -@ffi.Native() -external final DERItem oidSha1Dsa; - -@ffi.Native() -external final DERItem oidSha1DsaCommonOIW; - -@ffi.Native() -external final DERItem oidSha1DsaOIW; - -@ffi.Native() -external final DERItem oidSha1Ecdsa; - -@ffi.Native() -external final DERItem oidSha1Fee; - -@ffi.Native() -external final DERItem oidSha1Rsa; - -@ffi.Native() -external final DERItem oidSha1RsaOIW; - -@ffi.Native() -external final DERItem oidSha224; - -@ffi.Native() -external final DERItem oidSha224Ecdsa; - -@ffi.Native() -external final DERItem oidSha224Rsa; - -@ffi.Native() -external final DERItem oidSha256; - -@ffi.Native() -external final DERItem oidSha256Ecdsa; - -@ffi.Native() -external final DERItem oidSha256Rsa; - -@ffi.Native() -external final DERItem oidSha384; - -@ffi.Native() -external final DERItem oidSha384Ecdsa; - -@ffi.Native() -external final DERItem oidSha384Rsa; - -@ffi.Native() -external final DERItem oidSha512; - -@ffi.Native() -external final DERItem oidSha512Ecdsa; - -@ffi.Native() -external final DERItem oidSha512Rsa; - -@ffi.Native() -external final DERItem oidStateOrProvinceName; - -@ffi.Native() -external final DERItem oidSubjectAltName; - -@ffi.Native() -external final DERItem oidSubjectInfoAccess; - -@ffi.Native() -external final DERItem oidSubjectKeyIdentifier; - -@ffi.Native, ffi.Int)>() -external int open(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int, ffi.Int) ->() -external int open_dprotected_np( - ffi.Pointer arg0, - int arg1, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer>, - ffi.Pointer, - ) ->() -external ffi.Pointer open_memstream( - ffi.Pointer> __bufp, - ffi.Pointer __sizep, -); - -@ffi.Native, ffi.Int)>() -external int openat(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int) ->() -external int openat_authenticated_np( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Int, ffi.Int, ffi.Int) ->() -external int openat_dprotected_np( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, -); - -@ffi.Native, ffi.Int, filesec_t)>() -external int openx_np(ffi.Pointer arg0, int arg1, filesec_t arg2); - -@ffi.Native>() -external ffi.Pointer optarg; - -@ffi.Native() -external int opterr; - -@ffi.Native() -external int optind; - -@ffi.Native() -external int optopt; - -@ffi.Native() -external int optreset; - -@ffi.Native)>() -external void os_release(ffi.Pointer object); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer os_retain(ffi.Pointer object); - -@ffi.Native(symbol: 'os_workgroup_cancel') -external void _os_workgroup_cancel(os_workgroup_t wg); - -void os_workgroup_cancel(Dartos_workgroup_t wg) { - final _$$ref = wg.ref; - return _os_workgroup_cancel(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'os_workgroup_copy_port', -) -external int _os_workgroup_copy_port( - os_workgroup_t wg, - ffi.Pointer mach_port_out, -); - -int os_workgroup_copy_port( - Dartos_workgroup_t wg, - ffi.Pointer mach_port_out, -) { - final _$$ref = wg.ref; - return _os_workgroup_copy_port(_$$ref.pointer, mach_port_out); -} - -@ffi.Native, mach_port_t)>( - symbol: 'os_workgroup_create_with_port', -) -external os_workgroup_t _os_workgroup_create_with_port( - ffi.Pointer name, - int mach_port, -); - -Dartos_workgroup_t? os_workgroup_create_with_port( - ffi.Pointer name, - Dart__darwin_natural_t mach_port, -) { - return _os_workgroup_create_with_port(name, mach_port).address == 0 - ? null - : OS_os_workgroup.fromPointer( - _os_workgroup_create_with_port(name, mach_port), - retain: false, - release: true, - ); -} - -@ffi.Native, os_workgroup_t)>( - symbol: 'os_workgroup_create_with_workgroup', -) -external os_workgroup_t _os_workgroup_create_with_workgroup( - ffi.Pointer name, - os_workgroup_t wg, -); - -Dartos_workgroup_t? os_workgroup_create_with_workgroup( - ffi.Pointer name, - Dartos_workgroup_t wg, -) { - final _$$ref = wg.ref; - return _os_workgroup_create_with_workgroup(name, _$$ref.pointer).address == 0 - ? null - : OS_os_workgroup.fromPointer( - _os_workgroup_create_with_workgroup(name, _$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function( - os_workgroup_t, - ffi.Pointer, - ) ->(symbol: 'os_workgroup_get_working_arena') -external ffi.Pointer _os_workgroup_get_working_arena( - os_workgroup_t wg, - ffi.Pointer index_out, -); - -ffi.Pointer os_workgroup_get_working_arena( - Dartos_workgroup_t wg, - ffi.Pointer index_out, -) { - final _$$ref = wg.ref; - return _os_workgroup_get_working_arena(_$$ref.pointer, index_out); -} - -@ffi.Native< - ffi.Int Function(os_workgroup_interval_t, os_workgroup_interval_data_t) ->(symbol: 'os_workgroup_interval_finish') -external int _os_workgroup_interval_finish( - os_workgroup_interval_t wg, - os_workgroup_interval_data_t data, -); - -int os_workgroup_interval_finish( - Dartos_workgroup_interval_t wg, - os_workgroup_interval_data_t data, -) { - final _$$ref = wg.ref; - return _os_workgroup_interval_finish(_$$ref.pointer, data); -} - -@ffi.Native< - ffi.Int Function( - os_workgroup_interval_t, - ffi.Uint64, - ffi.Uint64, - os_workgroup_interval_data_t, - ) ->(symbol: 'os_workgroup_interval_start') -external int _os_workgroup_interval_start( - os_workgroup_interval_t wg, - int start, - int deadline, - os_workgroup_interval_data_t data, -); - -int os_workgroup_interval_start( - Dartos_workgroup_interval_t wg, - int start, - int deadline, - os_workgroup_interval_data_t data, -) { - final _$$ref = wg.ref; - return _os_workgroup_interval_start(_$$ref.pointer, start, deadline, data); -} - -@ffi.Native< - ffi.Int Function( - os_workgroup_interval_t, - ffi.Uint64, - os_workgroup_interval_data_t, - ) ->(symbol: 'os_workgroup_interval_update') -external int _os_workgroup_interval_update( - os_workgroup_interval_t wg, - int deadline, - os_workgroup_interval_data_t data, -); - -int os_workgroup_interval_update( - Dartos_workgroup_interval_t wg, - int deadline, - os_workgroup_interval_data_t data, -) { - final _$$ref = wg.ref; - return _os_workgroup_interval_update(_$$ref.pointer, deadline, data); -} - -@ffi.Native( - symbol: 'os_workgroup_join', -) -external int _os_workgroup_join( - os_workgroup_t wg, - os_workgroup_join_token_t token_out, -); - -int os_workgroup_join( - Dartos_workgroup_t wg, - os_workgroup_join_token_t token_out, -) { - final _$$ref = wg.ref; - return _os_workgroup_join(_$$ref.pointer, token_out); -} - -@ffi.Native( - symbol: 'os_workgroup_leave', -) -external void _os_workgroup_leave( - os_workgroup_t wg, - os_workgroup_join_token_t token, -); - -void os_workgroup_leave( - Dartos_workgroup_t wg, - os_workgroup_join_token_t token, -) { - final _$$ref = wg.ref; - return _os_workgroup_leave(_$$ref.pointer, token); -} - -@ffi.Native( - symbol: 'os_workgroup_max_parallel_threads', -) -external int _os_workgroup_max_parallel_threads( - os_workgroup_t wg, - os_workgroup_mpt_attr_t attr, -); - -int os_workgroup_max_parallel_threads( - Dartos_workgroup_t wg, - os_workgroup_mpt_attr_t attr, -) { - final _$$ref = wg.ref; - return _os_workgroup_max_parallel_threads(_$$ref.pointer, attr); -} - -@ffi.Native< - os_workgroup_parallel_t Function(ffi.Pointer, os_workgroup_attr_t) ->(symbol: 'os_workgroup_parallel_create') -external os_workgroup_parallel_t _os_workgroup_parallel_create( - ffi.Pointer name, - os_workgroup_attr_t attr, -); - -Dartos_workgroup_parallel_t? os_workgroup_parallel_create( - ffi.Pointer name, - os_workgroup_attr_t attr, -) { - return _os_workgroup_parallel_create(name, attr).address == 0 - ? null - : OS_os_workgroup.fromPointer( - _os_workgroup_parallel_create(name, attr), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Int Function( - os_workgroup_t, - ffi.Pointer, - ffi.Uint32, - os_workgroup_working_arena_destructor_t, - ) ->(symbol: 'os_workgroup_set_working_arena') -external int _os_workgroup_set_working_arena( - os_workgroup_t wg, - ffi.Pointer arena, - int max_workers, - os_workgroup_working_arena_destructor_t destructor, -); - -int os_workgroup_set_working_arena( - Dartos_workgroup_t wg, - ffi.Pointer arena, - int max_workers, - os_workgroup_working_arena_destructor_t destructor, -) { - final _$$ref = wg.ref; - return _os_workgroup_set_working_arena( - _$$ref.pointer, - arena, - max_workers, - destructor, - ); -} - -@ffi.Native( - symbol: 'os_workgroup_testcancel', -) -external bool _os_workgroup_testcancel(os_workgroup_t wg); - -bool os_workgroup_testcancel(Dartos_workgroup_t wg) { - final _$$ref = wg.ref; - return _os_workgroup_testcancel(_$$ref.pointer); -} - -@ffi.Native)>() -external void panic(ffi.Pointer arg0); - -@ffi.Native() -external void panic_init(int arg0); - -@ffi.Native, ffi.Int)>() -external int pathconf(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int pause(); - -@ffi.Native)>() -external int pclose(ffi.Pointer arg0); - -@ffi.Native)>() -external void perror(ffi.Pointer arg0); - -@ffi.Native)>() -external void pfctlinput(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external final double pi; - -@ffi.Native)>() -external int pid_for_task(int t, ffi.Pointer x); - -@ffi.Native)>() -external int pipe(ffi.Pointer arg0); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer popen( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int posix2time(int arg0); - -@ffi.Native, ffi.Size, ffi.Int)>() -external int posix_madvise(ffi.Pointer arg0, int arg1, int arg2); - -@ffi.Native< - ffi.Int Function(ffi.Pointer>, ffi.Size, ffi.Size) ->() -external int posix_memalign( - ffi.Pointer> __memptr, - int __alignment, - int __size, -); - -@ffi.Native() -external int posix_openpt(int arg0); - -@ffi.Native() -external double pow(double arg0, double arg1); - -@ffi.Native() -external double powf(double arg0, double arg1); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native)>() -external void ppdClose(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer>>, - ) ->(symbol: 'ppdCollect') -external int _ppdCollect( - ffi.Pointer ppd, - int section, - ffi.Pointer>> choices, -); - -int ppdCollect( - ffi.Pointer ppd, - ppd_section_e section, - ffi.Pointer>> choices, -) { - return _ppdCollect(ppd, section.value, choices); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Float, - ffi.Pointer>>, - ) ->(symbol: 'ppdCollect2') -external int _ppdCollect2( - ffi.Pointer ppd, - int section, - double min_order, - ffi.Pointer>> choices, -); - -int ppdCollect2( - ffi.Pointer ppd, - ppd_section_e section, - double min_order, - ffi.Pointer>> choices, -) { - return _ppdCollect2(ppd, section.value, min_order, choices); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native)>() -external int ppdConflicts(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt) ->(symbol: 'ppdEmit') -external int _ppdEmit( - ffi.Pointer ppd, - ffi.Pointer fp, - int section, -); - -int ppdEmit( - ffi.Pointer ppd, - ffi.Pointer fp, - ppd_section_e section, -) { - return _ppdEmit(ppd, fp, section.value); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ffi.Float, - ) ->(symbol: 'ppdEmitAfterOrder') -external int _ppdEmitAfterOrder( - ffi.Pointer ppd, - ffi.Pointer fp, - int section, - int limit, - double min_order, -); - -int ppdEmitAfterOrder( - ffi.Pointer ppd, - ffi.Pointer fp, - ppd_section_e section, - int limit, - double min_order, -) { - return _ppdEmitAfterOrder(ppd, fp, section.value, limit, min_order); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.UnsignedInt) ->(symbol: 'ppdEmitFd') -external int _ppdEmitFd(ffi.Pointer ppd, int fd, int section); - -int ppdEmitFd(ffi.Pointer ppd, int fd, ppd_section_e section) { - return _ppdEmitFd(ppd, fd, section.value); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ppdEmitJCL( - ffi.Pointer ppd, - ffi.Pointer fp, - int job_id, - ffi.Pointer user, - ffi.Pointer title, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native, ffi.Pointer)>() -external int ppdEmitJCLEnd(ffi.Pointer ppd, ffi.Pointer fp); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Float, - ) ->(symbol: 'ppdEmitString') -external ffi.Pointer _ppdEmitString( - ffi.Pointer ppd, - int section, - double min_order, -); - -ffi.Pointer ppdEmitString( - ffi.Pointer ppd, - ppd_section_e section, - double min_order, -) { - return _ppdEmitString(ppd, section.value, min_order); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.UnsignedInt)>( - symbol: 'ppdErrorString', -) -external ffi.Pointer _ppdErrorString(int status); - -ffi.Pointer ppdErrorString(ppd_status_e status) { - return _ppdErrorString(status.value); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindAttr( - ffi.Pointer ppd, - ffi.Pointer name, - ffi.Pointer spec, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindChoice( - ffi.Pointer o, - ffi.Pointer option, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindCustomOption( - ffi.Pointer ppd, - ffi.Pointer keyword, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindCustomParam( - ffi.Pointer opt, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindMarkedChoice( - ffi.Pointer ppd, - ffi.Pointer keyword, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindNextAttr( - ffi.Pointer ppd, - ffi.Pointer name, - ffi.Pointer spec, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdFindOption( - ffi.Pointer ppd, - ffi.Pointer keyword, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdFirstCustomParam( - ffi.Pointer opt, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdFirstOption(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ppdInstallableConflict( - ffi.Pointer ppd, - ffi.Pointer option, - ffi.Pointer choice, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ppdIsMarked( - ffi.Pointer ppd, - ffi.Pointer keyword, - ffi.Pointer option, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native)>( - symbol: 'ppdLastError', -) -external int _ppdLastError(ffi.Pointer line); - -ppd_status_e ppdLastError(ffi.Pointer line) { - return ppd_status_e.fromValue(_ppdLastError(line)); -} - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native)>() -external int ppdLocalize(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdLocalizeAttr( - ffi.Pointer ppd, - ffi.Pointer keyword, - ffi.Pointer spec, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer ppdLocalizeIPPReason( - ffi.Pointer ppd, - ffi.Pointer reason, - ffi.Pointer scheme, - ffi.Pointer buffer, - int bufsize, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer ppdLocalizeMarkerName( - ffi.Pointer ppd, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native)>() -external void ppdMarkDefaults(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ppdMarkOption( - ffi.Pointer ppd, - ffi.Pointer keyword, - ffi.Pointer option, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdNextCustomParam( - ffi.Pointer opt, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdNextOption(ffi.Pointer ppd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdOpen(ffi.Pointer fp); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdOpen2(ffi.Pointer fp); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer ppdOpenFd(int fd); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer ppdOpenFile(ffi.Pointer filename); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Float Function(ffi.Pointer, ffi.Pointer) ->() -external double ppdPageLength( - ffi.Pointer ppd, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer ppdPageSize( - ffi.Pointer ppd, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ppdPageSizeLimits( - ffi.Pointer ppd, - ffi.Pointer minimum, - ffi.Pointer maximum, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native< - ffi.Float Function(ffi.Pointer, ffi.Pointer) ->() -external double ppdPageWidth( - ffi.Pointer ppd, - ffi.Pointer name, -); - -@Deprecated('Use cupsCopyDestInfo and friends instead.') -@ffi.Native(symbol: 'ppdSetConformance') -external void _ppdSetConformance(int c); - -void ppdSetConformance(ppd_conform_e c) { - return _ppdSetConformance(c.value); -} - -@ffi.Native, ffi.Size, off_t)>() -external int pread( - int __fd, - ffi.Pointer __buf, - int __nbyte, - int __offset, -); - -@ffi.Native)>() -external int printf(ffi.Pointer arg0); - -@ffi.Native() -external int processor_assign(int processor, int new_set, int wait$2); - -@ffi.Native< - kern_return_t Function(processor_t, processor_info_t, mach_msg_type_number_t) ->() -external int processor_control( - int processor, - processor_info_t processor_cmd, - int processor_cmdCnt, -); - -@ffi.Native() -external int processor_exit(int processor); - -@ffi.Native< - kern_return_t Function(processor_t, ffi.Pointer) ->() -external int processor_get_assignment( - int processor, - ffi.Pointer assigned_set, -); - -@ffi.Native< - kern_return_t Function( - processor_t, - processor_flavor_t, - ffi.Pointer, - processor_info_t, - ffi.Pointer, - ) ->() -external int processor_info( - int processor, - int flavor, - ffi.Pointer host, - processor_info_t processor_info_out, - ffi.Pointer processor_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - host_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int processor_set_create( - int host, - ffi.Pointer new_set, - ffi.Pointer new_name, -); - -@ffi.Native)>() -external int processor_set_default( - int host, - ffi.Pointer default_set, -); - -@ffi.Native() -external int processor_set_destroy(int set); - -@ffi.Native< - kern_return_t Function( - processor_set_name_t, - ffi.Int, - ffi.Pointer, - processor_set_info_t, - ffi.Pointer, - ) ->() -external int processor_set_info( - int set_name, - int flavor, - ffi.Pointer host, - processor_set_info_t info_out, - ffi.Pointer info_outCnt, -); - -@ffi.Native() -external int processor_set_max_priority( - int processor_set, - int max_priority, - int change_threads, -); - -@ffi.Native< - kern_return_t Function( - processor_set_t, - processor_set_flavor_t, - processor_set_info_t, - mach_msg_type_number_t, - boolean_t, - ) ->() -external int processor_set_policy_control( - int pset, - int flavor, - processor_set_info_t policy_info, - int policy_infoCnt, - int change, -); - -@ffi.Native() -external int processor_set_policy_disable( - int processor_set, - int policy, - int change_threads, -); - -@ffi.Native() -external int processor_set_policy_enable(int processor_set, int policy); - -@ffi.Native< - kern_return_t Function( - processor_set_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int processor_set_stack_usage( - int pset, - ffi.Pointer ltotal, - ffi.Pointer space, - ffi.Pointer resident, - ffi.Pointer maxusage, - ffi.Pointer maxstack, -); - -@ffi.Native< - kern_return_t Function( - processor_set_name_t, - processor_set_flavor_t, - processor_set_info_t, - ffi.Pointer, - ) ->() -external int processor_set_statistics( - int pset, - int flavor, - processor_set_info_t info_out, - ffi.Pointer info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - processor_set_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int processor_set_tasks( - int processor_set, - ffi.Pointer task_list, - ffi.Pointer task_listCnt, -); - -@ffi.Native< - kern_return_t Function( - processor_set_t, - mach_task_flavor_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int processor_set_tasks_with_flavor( - int processor_set, - int flavor, - ffi.Pointer task_list, - ffi.Pointer task_listCnt, -); - -@ffi.Native< - kern_return_t Function( - processor_set_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int processor_set_threads( - int processor_set, - ffi.Pointer thread_list, - ffi.Pointer thread_listCnt, -); - -@ffi.Native() -external int processor_start(int processor); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.UnsignedLong, - ffi.UnsignedInt, - ) ->() -external int profil( - ffi.Pointer arg0, - int __bufsiz, - int arg2, - int arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int pselect( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native)>() -external void psignal(int arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >, - ) ->() -external void psort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - __compar, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'psort_b') -external void _psort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer __compar, -); - -void psort_b( - ffi.Pointer __base, - int __nel, - int __width, - objc.ObjCBlock, ffi.Pointer)> - __compar, -) { - final _$$ref = __compar.ref; - return _psort_b(__base, __nel, __width, _$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ) ->() -external void psort_r( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer arg3, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - __compar, -); - -@ffi.Native, ffi.Pointer)>() -external int pthread_getugid_np( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int pthread_kill(pthread_t arg0, int arg1); - -@Deprecated( - 'Use of per-thread security contexts is error-prone and discouraged.', -) -@ffi.Native() -external int pthread_setugid_np(int arg0, int arg1); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int pthread_sigmask( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer ptsname(int arg0); - -@ffi.Native, ffi.Size)>() -external int ptsname_r(int fildes, ffi.Pointer buffer, int buflen); - -@ffi.Native)>() -external int putc(int arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external int putc_unlocked(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external int putchar(int arg0); - -@ffi.Native() -external int putchar_unlocked(int arg0); - -@ffi.Native)>() -external int putenv(ffi.Pointer arg0); - -@ffi.Native)>() -external int puts(ffi.Pointer arg0); - -@ffi.Native)>() -external int putw(int arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) ->() -external int pwgFormatSizeName( - ffi.Pointer keyword, - int keysize, - ffi.Pointer prefix, - ffi.Pointer name, - int width, - int length, - ffi.Pointer units, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int pwgInitSize( - ffi.Pointer size, - ffi.Pointer job, - ffi.Pointer margins_set, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer pwgMediaForLegacy( - ffi.Pointer legacy, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer pwgMediaForPPD(ffi.Pointer ppd); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer pwgMediaForPWG(ffi.Pointer pwg); - -@ffi.Native Function(ffi.Int, ffi.Int)>() -external ffi.Pointer pwgMediaForSize(int width, int length); - -@ffi.Native, ffi.Size, off_t)>() -external int pwrite( - int __fd, - ffi.Pointer __buf, - int __nbyte, - int __offset, -); - -@ffi.Native(symbol: 'qos_class_main') -external int _qos_class_main(); - -qos_class_t qos_class_main() { - return qos_class_t.fromValue(_qos_class_main()); -} - -@ffi.Native(symbol: 'qos_class_self') -external int _qos_class_self(); - -qos_class_t qos_class_self() { - return qos_class_t.fromValue(_qos_class_self()); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >, - ) ->() -external void qsort( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - __compar, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ) ->(symbol: 'qsort_b') -external void _qsort_b( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer __compar, -); - -void qsort_b( - ffi.Pointer __base, - int __nel, - int __width, - objc.ObjCBlock, ffi.Pointer)> - __compar, -) { - final _$$ref = __compar.ref; - return _qsort_b(__base, __nel, __width, _$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - ffi.Size, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ) ->() -external void qsort_r( - ffi.Pointer __base, - int __nel, - int __width, - ffi.Pointer arg3, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - __compar, -); - -@ffi.Native() -external void quick_exit(int arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int radixsort( - ffi.Pointer> __base, - int __nel, - ffi.Pointer __table, - int __endbyte, -); - -@ffi.Native() -external int raise(int arg0); - -@ffi.Native() -external int rand(); - -@ffi.Native)>() -external int rand_r(ffi.Pointer arg0); - -@ffi.Native() -external int random(); - -@Deprecated('Deprecated') -@ffi.Native)>() -external double randomx(ffi.Pointer x); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int rcmd( - ffi.Pointer> arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external int rcmd_af( - ffi.Pointer> arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - int arg6, -); - -@ffi.Native, ffi.Size)>() -external int read(int arg0, ffi.Pointer arg1, int __nbyte); - -@ffi.Native< - ssize_t Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int readlink( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __bufsize, -); - -@ffi.Native< - ssize_t Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external int readlinkat( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, -); - -@ffi.Native Function(ffi.Pointer, ffi.Size)>() -external ffi.Pointer realloc(ffi.Pointer __ptr, int __size); - -@ffi.Native Function(ffi.Pointer, ffi.Size)>() -external ffi.Pointer reallocf( - ffi.Pointer __ptr, - int __size, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer realpath( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int reboot(int arg0); - -@ffi.Native< - ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size, ffi.Int) ->() -external int recv(int arg0, ffi.Pointer arg1, int arg2, int arg3); - -@ffi.Native< - ssize_t Function( - ffi.Int, - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int recvfrom( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, -); - -@ffi.Native, ffi.Int)>() -external int recvmsg(int arg0, ffi.Pointer arg1, int arg2); - -@Deprecated('Deprecated') -@ffi.Native() -external int relation(double x, double y); - -@ffi.Native() -external double remainder(double arg0, double arg1); - -@ffi.Native() -external double remainderf(double arg0, double arg1); - -@ffi.Native)>() -external int remove(ffi.Pointer arg0); - -@ffi.Native)>() -external double remquo(double arg0, double arg1, ffi.Pointer arg2); - -@ffi.Native)>() -external double remquof(double arg0, double arg1, ffi.Pointer arg2); - -@ffi.Native, ffi.Pointer)>() -external int rename(ffi.Pointer __old, ffi.Pointer __new); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) ->() -external int renameat( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int renameatx_np( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - int arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int renamex_np( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native)>() -external int revoke(ffi.Pointer arg0); - -@ffi.Native)>() -external void rewind(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer rindex(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external double rint(double arg0); - -@ffi.Native() -external double rintf(double arg0); - -@ffi.Native)>() -external int rmdir(ffi.Pointer arg0); - -@ffi.Native() -external double round(double arg0); - -@ffi.Native() -external double roundf(double arg0); - -@ffi.Native)>() -external int rpmatch(ffi.Pointer arg0); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int rresvport(ffi.Pointer arg0); - -@Deprecated('Deprecated') -@ffi.Native, ffi.Int)>() -external int rresvport_af(ffi.Pointer arg0, int arg1); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int ruserok( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@Deprecated('Deprecated') -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer sbrk(int arg0); - -@ffi.Native() -external double scalb(double arg0, double arg1); - -@ffi.Native() -external double scalbln(double arg0, int arg1); - -@ffi.Native() -external double scalblnf(double arg0, int arg1); - -@ffi.Native() -external double scalbn(double arg0, int arg1); - -@ffi.Native() -external double scalbnf(double arg0, int arg1); - -@ffi.Native)>() -external int scanf(ffi.Pointer arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ) ->() -external int searchfs( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ffi.Pointer arg5, -); - -@ffi.Native( - symbol: 'sec_certificate_copy_ref', -) -external SecCertificateRef _sec_certificate_copy_ref( - sec_certificate_t certificate, -); - -SecCertificateRef sec_certificate_copy_ref(Dartsec_certificate_t certificate) { - final _$$ref = certificate.ref; - return _sec_certificate_copy_ref(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'sec_certificate_create', -) -external sec_certificate_t _sec_certificate_create( - SecCertificateRef certificate, -); - -Dartsec_certificate_t? sec_certificate_create(SecCertificateRef certificate) { - return _sec_certificate_create(certificate).address == 0 - ? null - : objc.NSObject.fromPointer( - _sec_certificate_create(certificate), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'sec_identity_access_certificates', -) -external bool _sec_identity_access_certificates( - sec_identity_t identity, - ffi.Pointer handler, -); - -bool sec_identity_access_certificates( - Dartsec_identity_t identity, - objc.ObjCBlock handler, -) { - final _$$ref = identity.ref; - final _$$ref$1 = handler.ref; - return _sec_identity_access_certificates(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'sec_identity_copy_certificates_ref', -) -external CFArrayRef _sec_identity_copy_certificates_ref( - sec_identity_t identity, -); - -CFArrayRef sec_identity_copy_certificates_ref(Dartsec_identity_t identity) { - final _$$ref = identity.ref; - return _sec_identity_copy_certificates_ref(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'sec_identity_copy_ref', -) -external SecIdentityRef _sec_identity_copy_ref(sec_identity_t identity); - -SecIdentityRef sec_identity_copy_ref(Dartsec_identity_t identity) { - final _$$ref = identity.ref; - return _sec_identity_copy_ref(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'sec_identity_create', -) -external sec_identity_t _sec_identity_create(SecIdentityRef identity); - -Dartsec_identity_t? sec_identity_create(SecIdentityRef identity) { - return _sec_identity_create(identity).address == 0 - ? null - : objc.NSObject.fromPointer( - _sec_identity_create(identity), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'sec_identity_create_with_certificates', -) -external sec_identity_t _sec_identity_create_with_certificates( - SecIdentityRef identity, - CFArrayRef certificates, -); - -Dartsec_identity_t? sec_identity_create_with_certificates( - SecIdentityRef identity, - CFArrayRef certificates, -) { - return _sec_identity_create_with_certificates( - identity, - certificates, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _sec_identity_create_with_certificates(identity, certificates), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) ->(symbol: 'sec_protocol_metadata_access_distinguished_names') -external bool _sec_protocol_metadata_access_distinguished_names( - sec_protocol_metadata_t metadata, - ffi.Pointer handler, -); - -bool sec_protocol_metadata_access_distinguished_names( - Dartsec_protocol_metadata_t metadata, - objc.ObjCBlock handler, -) { - final _$$ref = metadata.ref; - final _$$ref$1 = handler.ref; - return _sec_protocol_metadata_access_distinguished_names( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) ->(symbol: 'sec_protocol_metadata_access_ocsp_response') -external bool _sec_protocol_metadata_access_ocsp_response( - sec_protocol_metadata_t metadata, - ffi.Pointer handler, -); - -bool sec_protocol_metadata_access_ocsp_response( - Dartsec_protocol_metadata_t metadata, - objc.ObjCBlock handler, -) { - final _$$ref = metadata.ref; - final _$$ref$1 = handler.ref; - return _sec_protocol_metadata_access_ocsp_response( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) ->(symbol: 'sec_protocol_metadata_access_peer_certificate_chain') -external bool _sec_protocol_metadata_access_peer_certificate_chain( - sec_protocol_metadata_t metadata, - ffi.Pointer handler, -); - -bool sec_protocol_metadata_access_peer_certificate_chain( - Dartsec_protocol_metadata_t metadata, - objc.ObjCBlock handler, -) { - final _$$ref = metadata.ref; - final _$$ref$1 = handler.ref; - return _sec_protocol_metadata_access_peer_certificate_chain( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) ->(symbol: 'sec_protocol_metadata_access_pre_shared_keys') -external bool _sec_protocol_metadata_access_pre_shared_keys( - sec_protocol_metadata_t metadata, - ffi.Pointer handler, -); - -bool sec_protocol_metadata_access_pre_shared_keys( - Dartsec_protocol_metadata_t metadata, - objc.ObjCBlock handler, -) { - final _$$ref = metadata.ref; - final _$$ref$1 = handler.ref; - return _sec_protocol_metadata_access_pre_shared_keys( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, ffi.Pointer) ->(symbol: 'sec_protocol_metadata_access_supported_signature_algorithms') -external bool _sec_protocol_metadata_access_supported_signature_algorithms( - sec_protocol_metadata_t metadata, - ffi.Pointer handler, -); - -bool sec_protocol_metadata_access_supported_signature_algorithms( - Dartsec_protocol_metadata_t metadata, - objc.ObjCBlock handler, -) { - final _$$ref = metadata.ref; - final _$$ref$1 = handler.ref; - return _sec_protocol_metadata_access_supported_signature_algorithms( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) ->(symbol: 'sec_protocol_metadata_challenge_parameters_are_equal') -external bool _sec_protocol_metadata_challenge_parameters_are_equal( - sec_protocol_metadata_t metadataA, - sec_protocol_metadata_t metadataB, -); - -bool sec_protocol_metadata_challenge_parameters_are_equal( - Dartsec_protocol_metadata_t metadataA, - Dartsec_protocol_metadata_t metadataB, -) { - final _$$ref = metadataA.ref; - final _$$ref$1 = metadataB.ref; - return _sec_protocol_metadata_challenge_parameters_are_equal( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native Function(sec_protocol_metadata_t)>( - symbol: 'sec_protocol_metadata_copy_negotiated_protocol', -) -external ffi.Pointer _sec_protocol_metadata_copy_negotiated_protocol( - sec_protocol_metadata_t metadata, -); - -ffi.Pointer sec_protocol_metadata_copy_negotiated_protocol( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_copy_negotiated_protocol(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'sec_protocol_metadata_copy_peer_public_key', -) -external dispatch_data_t _sec_protocol_metadata_copy_peer_public_key( - sec_protocol_metadata_t metadata, -); - -Dartdispatch_data_t? sec_protocol_metadata_copy_peer_public_key( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_copy_peer_public_key(_$$ref.pointer).address == - 0 - ? null - : objc.NSObject.fromPointer( - _sec_protocol_metadata_copy_peer_public_key(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native Function(sec_protocol_metadata_t)>( - symbol: 'sec_protocol_metadata_copy_server_name', -) -external ffi.Pointer _sec_protocol_metadata_copy_server_name( - sec_protocol_metadata_t metadata, -); - -ffi.Pointer sec_protocol_metadata_copy_server_name( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_copy_server_name(_$$ref.pointer); -} - -@ffi.Native< - dispatch_data_t Function( - sec_protocol_metadata_t, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'sec_protocol_metadata_create_secret') -external dispatch_data_t _sec_protocol_metadata_create_secret( - sec_protocol_metadata_t metadata, - int label_len, - ffi.Pointer label, - int exporter_length, -); - -Dartdispatch_data_t? sec_protocol_metadata_create_secret( - Dartsec_protocol_metadata_t metadata, - int label_len, - ffi.Pointer label, - int exporter_length, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_create_secret( - _$$ref.pointer, - label_len, - label, - exporter_length, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _sec_protocol_metadata_create_secret( - _$$ref.pointer, - label_len, - label, - exporter_length, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - dispatch_data_t Function( - sec_protocol_metadata_t, - ffi.Size, - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'sec_protocol_metadata_create_secret_with_context') -external dispatch_data_t _sec_protocol_metadata_create_secret_with_context( - sec_protocol_metadata_t metadata, - int label_len, - ffi.Pointer label, - int context_len, - ffi.Pointer context, - int exporter_length, -); - -Dartdispatch_data_t? sec_protocol_metadata_create_secret_with_context( - Dartsec_protocol_metadata_t metadata, - int label_len, - ffi.Pointer label, - int context_len, - ffi.Pointer context, - int exporter_length, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_create_secret_with_context( - _$$ref.pointer, - label_len, - label, - context_len, - context, - exporter_length, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _sec_protocol_metadata_create_secret_with_context( - _$$ref.pointer, - label_len, - label, - context_len, - context, - exporter_length, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_metadata_get_early_data_accepted', -) -external bool _sec_protocol_metadata_get_early_data_accepted( - sec_protocol_metadata_t metadata, -); - -bool sec_protocol_metadata_get_early_data_accepted( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_get_early_data_accepted(_$$ref.pointer); -} - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'sec_protocol_metadata_get_negotiated_ciphersuite', -) -external int _sec_protocol_metadata_get_negotiated_ciphersuite( - sec_protocol_metadata_t metadata, -); - -DartSSLCipherSuite sec_protocol_metadata_get_negotiated_ciphersuite( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_get_negotiated_ciphersuite(_$$ref.pointer); -} - -@Deprecated('Deprecated') -@ffi.Native Function(sec_protocol_metadata_t)>( - symbol: 'sec_protocol_metadata_get_negotiated_protocol', -) -external ffi.Pointer _sec_protocol_metadata_get_negotiated_protocol( - sec_protocol_metadata_t metadata, -); - -ffi.Pointer sec_protocol_metadata_get_negotiated_protocol( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_get_negotiated_protocol(_$$ref.pointer); -} - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'sec_protocol_metadata_get_negotiated_protocol_version', -) -external int _sec_protocol_metadata_get_negotiated_protocol_version( - sec_protocol_metadata_t metadata, -); - -SSLProtocol sec_protocol_metadata_get_negotiated_protocol_version( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return SSLProtocol.fromValue( - _sec_protocol_metadata_get_negotiated_protocol_version(_$$ref.pointer), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_metadata_get_negotiated_tls_ciphersuite', -) -external int _sec_protocol_metadata_get_negotiated_tls_ciphersuite( - sec_protocol_metadata_t metadata, -); - -tls_ciphersuite_t sec_protocol_metadata_get_negotiated_tls_ciphersuite( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return tls_ciphersuite_t.fromValue( - _sec_protocol_metadata_get_negotiated_tls_ciphersuite(_$$ref.pointer), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_metadata_get_negotiated_tls_protocol_version', -) -external int _sec_protocol_metadata_get_negotiated_tls_protocol_version( - sec_protocol_metadata_t metadata, -); - -tls_protocol_version_t -sec_protocol_metadata_get_negotiated_tls_protocol_version( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return tls_protocol_version_t.fromValue( - _sec_protocol_metadata_get_negotiated_tls_protocol_version(_$$ref.pointer), - ); -} - -@Deprecated('Deprecated') -@ffi.Native Function(sec_protocol_metadata_t)>( - symbol: 'sec_protocol_metadata_get_server_name', -) -external ffi.Pointer _sec_protocol_metadata_get_server_name( - sec_protocol_metadata_t metadata, -); - -ffi.Pointer sec_protocol_metadata_get_server_name( - Dartsec_protocol_metadata_t metadata, -) { - final _$$ref = metadata.ref; - return _sec_protocol_metadata_get_server_name(_$$ref.pointer); -} - -@ffi.Native< - ffi.Bool Function(sec_protocol_metadata_t, sec_protocol_metadata_t) ->(symbol: 'sec_protocol_metadata_peers_are_equal') -external bool _sec_protocol_metadata_peers_are_equal( - sec_protocol_metadata_t metadataA, - sec_protocol_metadata_t metadataB, -); - -bool sec_protocol_metadata_peers_are_equal( - Dartsec_protocol_metadata_t metadataA, - Dartsec_protocol_metadata_t metadataB, -) { - final _$$ref = metadataA.ref; - final _$$ref$1 = metadataB.ref; - return _sec_protocol_metadata_peers_are_equal( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native< - ffi.Void Function(sec_protocol_options_t, dispatch_data_t, dispatch_data_t) ->(symbol: 'sec_protocol_options_add_pre_shared_key') -external void _sec_protocol_options_add_pre_shared_key( - sec_protocol_options_t options, - dispatch_data_t psk, - dispatch_data_t psk_identity, -); - -void sec_protocol_options_add_pre_shared_key( - Dartsec_protocol_options_t options, - Dartdispatch_data_t psk, - Dartdispatch_data_t psk_identity, -) { - final _$$ref = options.ref; - final _$$ref$1 = psk.ref; - final _$$ref$2 = psk_identity.ref; - return _sec_protocol_options_add_pre_shared_key( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native)>( - symbol: 'sec_protocol_options_add_tls_application_protocol', -) -external void _sec_protocol_options_add_tls_application_protocol( - sec_protocol_options_t options, - ffi.Pointer application_protocol, -); - -void sec_protocol_options_add_tls_application_protocol( - Dartsec_protocol_options_t options, - ffi.Pointer application_protocol, -) { - final _$$ref = options.ref; - return _sec_protocol_options_add_tls_application_protocol( - _$$ref.pointer, - application_protocol, - ); -} - -@Deprecated('Use sec_protocol_options_append_tls_ciphersuite') -@ffi.Native( - symbol: 'sec_protocol_options_add_tls_ciphersuite', -) -external void _sec_protocol_options_add_tls_ciphersuite( - sec_protocol_options_t options, - int ciphersuite, -); - -void sec_protocol_options_add_tls_ciphersuite( - Dartsec_protocol_options_t options, - DartSSLCipherSuite ciphersuite, -) { - final _$$ref = options.ref; - return _sec_protocol_options_add_tls_ciphersuite(_$$ref.pointer, ciphersuite); -} - -@Deprecated('Use sec_protocol_options_append_tls_ciphersuite_group') -@ffi.Native( - symbol: 'sec_protocol_options_add_tls_ciphersuite_group', -) -external void _sec_protocol_options_add_tls_ciphersuite_group( - sec_protocol_options_t options, - int group, -); - -void sec_protocol_options_add_tls_ciphersuite_group( - Dartsec_protocol_options_t options, - SSLCiphersuiteGroup group, -) { - final _$$ref = options.ref; - return _sec_protocol_options_add_tls_ciphersuite_group( - _$$ref.pointer, - group.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_append_tls_ciphersuite', -) -external void _sec_protocol_options_append_tls_ciphersuite( - sec_protocol_options_t options, - int ciphersuite, -); - -void sec_protocol_options_append_tls_ciphersuite( - Dartsec_protocol_options_t options, - tls_ciphersuite_t ciphersuite, -) { - final _$$ref = options.ref; - return _sec_protocol_options_append_tls_ciphersuite( - _$$ref.pointer, - ciphersuite.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_append_tls_ciphersuite_group', -) -external void _sec_protocol_options_append_tls_ciphersuite_group( - sec_protocol_options_t options, - int group, -); - -void sec_protocol_options_append_tls_ciphersuite_group( - Dartsec_protocol_options_t options, - tls_ciphersuite_group_t group, -) { - final _$$ref = options.ref; - return _sec_protocol_options_append_tls_ciphersuite_group( - _$$ref.pointer, - group.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_are_equal', -) -external bool _sec_protocol_options_are_equal( - sec_protocol_options_t optionsA, - sec_protocol_options_t optionsB, -); - -bool sec_protocol_options_are_equal( - Dartsec_protocol_options_t optionsA, - Dartsec_protocol_options_t optionsB, -) { - final _$$ref = optionsA.ref; - final _$$ref$1 = optionsB.ref; - return _sec_protocol_options_are_equal(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_default_max_dtls_protocol_version', -) -external int _sec_protocol_options_get_default_max_dtls_protocol_version(); - -tls_protocol_version_t -sec_protocol_options_get_default_max_dtls_protocol_version() { - return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_max_dtls_protocol_version(), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_default_max_tls_protocol_version', -) -external int _sec_protocol_options_get_default_max_tls_protocol_version(); - -tls_protocol_version_t -sec_protocol_options_get_default_max_tls_protocol_version() { - return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_max_tls_protocol_version(), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_default_min_dtls_protocol_version', -) -external int _sec_protocol_options_get_default_min_dtls_protocol_version(); - -tls_protocol_version_t -sec_protocol_options_get_default_min_dtls_protocol_version() { - return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_min_dtls_protocol_version(), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_default_min_tls_protocol_version', -) -external int _sec_protocol_options_get_default_min_tls_protocol_version(); - -tls_protocol_version_t -sec_protocol_options_get_default_min_tls_protocol_version() { - return tls_protocol_version_t.fromValue( - _sec_protocol_options_get_default_min_tls_protocol_version(), - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_enable_encrypted_client_hello', -) -external bool _sec_protocol_options_get_enable_encrypted_client_hello( - sec_protocol_options_t options, -); - -bool sec_protocol_options_get_enable_encrypted_client_hello( - Dartsec_protocol_options_t options, -) { - final _$$ref = options.ref; - return _sec_protocol_options_get_enable_encrypted_client_hello( - _$$ref.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_get_quic_use_legacy_codepoint', -) -external bool _sec_protocol_options_get_quic_use_legacy_codepoint( - sec_protocol_options_t options, -); - -bool sec_protocol_options_get_quic_use_legacy_codepoint( - Dartsec_protocol_options_t options, -) { - final _$$ref = options.ref; - return _sec_protocol_options_get_quic_use_legacy_codepoint(_$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function( - sec_protocol_options_t, - sec_protocol_challenge_t, - dispatch_queue_t, - ) ->(symbol: 'sec_protocol_options_set_challenge_block') -external void _sec_protocol_options_set_challenge_block( - sec_protocol_options_t options, - sec_protocol_challenge_t challenge_block, - dispatch_queue_t challenge_queue, -); - -void sec_protocol_options_set_challenge_block( - Dartsec_protocol_options_t options, - Dartsec_protocol_challenge_t challenge_block, - Dartdispatch_queue_t challenge_queue, -) { - final _$$ref = options.ref; - final _$$ref$1 = challenge_block.ref; - final _$$ref$2 = challenge_queue.ref; - return _sec_protocol_options_set_challenge_block( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_enable_encrypted_client_hello', -) -external void _sec_protocol_options_set_enable_encrypted_client_hello( - sec_protocol_options_t options, - bool enable_encrypted_client_hello, -); - -void sec_protocol_options_set_enable_encrypted_client_hello( - Dartsec_protocol_options_t options, - bool enable_encrypted_client_hello, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_enable_encrypted_client_hello( - _$$ref.pointer, - enable_encrypted_client_hello, - ); -} - -@ffi.Native< - ffi.Void Function( - sec_protocol_options_t, - sec_protocol_key_update_t, - dispatch_queue_t, - ) ->(symbol: 'sec_protocol_options_set_key_update_block') -external void _sec_protocol_options_set_key_update_block( - sec_protocol_options_t options, - sec_protocol_key_update_t key_update_block, - dispatch_queue_t key_update_queue, -); - -void sec_protocol_options_set_key_update_block( - Dartsec_protocol_options_t options, - Dartsec_protocol_key_update_t key_update_block, - Dartdispatch_queue_t key_update_queue, -) { - final _$$ref = options.ref; - final _$$ref$1 = key_update_block.ref; - final _$$ref$2 = key_update_queue.ref; - return _sec_protocol_options_set_key_update_block( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_local_identity', -) -external void _sec_protocol_options_set_local_identity( - sec_protocol_options_t options, - sec_identity_t identity, -); - -void sec_protocol_options_set_local_identity( - Dartsec_protocol_options_t options, - Dartsec_identity_t identity, -) { - final _$$ref = options.ref; - final _$$ref$1 = identity.ref; - return _sec_protocol_options_set_local_identity( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_max_tls_protocol_version', -) -external void _sec_protocol_options_set_max_tls_protocol_version( - sec_protocol_options_t options, - int version, -); - -void sec_protocol_options_set_max_tls_protocol_version( - Dartsec_protocol_options_t options, - tls_protocol_version_t version, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_max_tls_protocol_version( - _$$ref.pointer, - version.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_min_tls_protocol_version', -) -external void _sec_protocol_options_set_min_tls_protocol_version( - sec_protocol_options_t options, - int version, -); - -void sec_protocol_options_set_min_tls_protocol_version( - Dartsec_protocol_options_t options, - tls_protocol_version_t version, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_min_tls_protocol_version( - _$$ref.pointer, - version.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_peer_authentication_optional', -) -external void _sec_protocol_options_set_peer_authentication_optional( - sec_protocol_options_t options, - bool peer_authentication_optional, -); - -void sec_protocol_options_set_peer_authentication_optional( - Dartsec_protocol_options_t options, - bool peer_authentication_optional, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_peer_authentication_optional( - _$$ref.pointer, - peer_authentication_optional, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_peer_authentication_required', -) -external void _sec_protocol_options_set_peer_authentication_required( - sec_protocol_options_t options, - bool peer_authentication_required, -); - -void sec_protocol_options_set_peer_authentication_required( - Dartsec_protocol_options_t options, - bool peer_authentication_required, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_peer_authentication_required( - _$$ref.pointer, - peer_authentication_required, - ); -} - -@ffi.Native< - ffi.Void Function( - sec_protocol_options_t, - sec_protocol_pre_shared_key_selection_t, - dispatch_queue_t, - ) ->(symbol: 'sec_protocol_options_set_pre_shared_key_selection_block') -external void _sec_protocol_options_set_pre_shared_key_selection_block( - sec_protocol_options_t options, - sec_protocol_pre_shared_key_selection_t psk_selection_block, - dispatch_queue_t psk_selection_queue, -); - -void sec_protocol_options_set_pre_shared_key_selection_block( - Dartsec_protocol_options_t options, - Dartsec_protocol_pre_shared_key_selection_t psk_selection_block, - Dartdispatch_queue_t psk_selection_queue, -) { - final _$$ref = options.ref; - final _$$ref$1 = psk_selection_block.ref; - final _$$ref$2 = psk_selection_queue.ref; - return _sec_protocol_options_set_pre_shared_key_selection_block( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_quic_use_legacy_codepoint', -) -external void _sec_protocol_options_set_quic_use_legacy_codepoint( - sec_protocol_options_t options, - bool quic_use_legacy_codepoint, -); - -void sec_protocol_options_set_quic_use_legacy_codepoint( - Dartsec_protocol_options_t options, - bool quic_use_legacy_codepoint, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_quic_use_legacy_codepoint( - _$$ref.pointer, - quic_use_legacy_codepoint, - ); -} - -@Deprecated('DHE ciphersuites are no longer supported') -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_diffie_hellman_parameters', -) -external void _sec_protocol_options_set_tls_diffie_hellman_parameters( - sec_protocol_options_t options, - dispatch_data_t params, -); - -void sec_protocol_options_set_tls_diffie_hellman_parameters( - Dartsec_protocol_options_t options, - Dartdispatch_data_t params, -) { - final _$$ref = options.ref; - final _$$ref$1 = params.ref; - return _sec_protocol_options_set_tls_diffie_hellman_parameters( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_false_start_enabled', -) -external void _sec_protocol_options_set_tls_false_start_enabled( - sec_protocol_options_t options, - bool false_start_enabled, -); - -void sec_protocol_options_set_tls_false_start_enabled( - Dartsec_protocol_options_t options, - bool false_start_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_false_start_enabled( - _$$ref.pointer, - false_start_enabled, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_is_fallback_attempt', -) -external void _sec_protocol_options_set_tls_is_fallback_attempt( - sec_protocol_options_t options, - bool is_fallback_attempt, -); - -void sec_protocol_options_set_tls_is_fallback_attempt( - Dartsec_protocol_options_t options, - bool is_fallback_attempt, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_is_fallback_attempt( - _$$ref.pointer, - is_fallback_attempt, - ); -} - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_max_version', -) -external void _sec_protocol_options_set_tls_max_version( - sec_protocol_options_t options, - int version, -); - -void sec_protocol_options_set_tls_max_version( - Dartsec_protocol_options_t options, - SSLProtocol version, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_max_version( - _$$ref.pointer, - version.value, - ); -} - -@Deprecated('Deprecated') -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_min_version', -) -external void _sec_protocol_options_set_tls_min_version( - sec_protocol_options_t options, - int version, -); - -void sec_protocol_options_set_tls_min_version( - Dartsec_protocol_options_t options, - SSLProtocol version, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_min_version( - _$$ref.pointer, - version.value, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_ocsp_enabled', -) -external void _sec_protocol_options_set_tls_ocsp_enabled( - sec_protocol_options_t options, - bool ocsp_enabled, -); - -void sec_protocol_options_set_tls_ocsp_enabled( - Dartsec_protocol_options_t options, - bool ocsp_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_ocsp_enabled( - _$$ref.pointer, - ocsp_enabled, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_pre_shared_key_identity_hint', -) -external void _sec_protocol_options_set_tls_pre_shared_key_identity_hint( - sec_protocol_options_t options, - dispatch_data_t psk_identity_hint, -); - -void sec_protocol_options_set_tls_pre_shared_key_identity_hint( - Dartsec_protocol_options_t options, - Dartdispatch_data_t psk_identity_hint, -) { - final _$$ref = options.ref; - final _$$ref$1 = psk_identity_hint.ref; - return _sec_protocol_options_set_tls_pre_shared_key_identity_hint( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_renegotiation_enabled', -) -external void _sec_protocol_options_set_tls_renegotiation_enabled( - sec_protocol_options_t options, - bool renegotiation_enabled, -); - -void sec_protocol_options_set_tls_renegotiation_enabled( - Dartsec_protocol_options_t options, - bool renegotiation_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_renegotiation_enabled( - _$$ref.pointer, - renegotiation_enabled, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_resumption_enabled', -) -external void _sec_protocol_options_set_tls_resumption_enabled( - sec_protocol_options_t options, - bool resumption_enabled, -); - -void sec_protocol_options_set_tls_resumption_enabled( - Dartsec_protocol_options_t options, - bool resumption_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_resumption_enabled( - _$$ref.pointer, - resumption_enabled, - ); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_sct_enabled', -) -external void _sec_protocol_options_set_tls_sct_enabled( - sec_protocol_options_t options, - bool sct_enabled, -); - -void sec_protocol_options_set_tls_sct_enabled( - Dartsec_protocol_options_t options, - bool sct_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_sct_enabled(_$$ref.pointer, sct_enabled); -} - -@ffi.Native)>( - symbol: 'sec_protocol_options_set_tls_server_name', -) -external void _sec_protocol_options_set_tls_server_name( - sec_protocol_options_t options, - ffi.Pointer server_name, -); - -void sec_protocol_options_set_tls_server_name( - Dartsec_protocol_options_t options, - ffi.Pointer server_name, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_server_name(_$$ref.pointer, server_name); -} - -@ffi.Native( - symbol: 'sec_protocol_options_set_tls_tickets_enabled', -) -external void _sec_protocol_options_set_tls_tickets_enabled( - sec_protocol_options_t options, - bool tickets_enabled, -); - -void sec_protocol_options_set_tls_tickets_enabled( - Dartsec_protocol_options_t options, - bool tickets_enabled, -) { - final _$$ref = options.ref; - return _sec_protocol_options_set_tls_tickets_enabled( - _$$ref.pointer, - tickets_enabled, - ); -} - -@ffi.Native< - ffi.Void Function( - sec_protocol_options_t, - sec_protocol_verify_t, - dispatch_queue_t, - ) ->(symbol: 'sec_protocol_options_set_verify_block') -external void _sec_protocol_options_set_verify_block( - sec_protocol_options_t options, - sec_protocol_verify_t verify_block, - dispatch_queue_t verify_block_queue, -); - -void sec_protocol_options_set_verify_block( - Dartsec_protocol_options_t options, - Dartsec_protocol_verify_t verify_block, - Dartdispatch_queue_t verify_block_queue, -) { - final _$$ref = options.ref; - final _$$ref$1 = verify_block.ref; - final _$$ref$2 = verify_block_queue.ref; - return _sec_protocol_options_set_verify_block( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native)>() -external void sec_release(ffi.Pointer obj); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer sec_retain(ffi.Pointer obj); - -@ffi.Native(symbol: 'sec_trust_copy_ref') -external SecTrustRef _sec_trust_copy_ref(sec_trust_t trust); - -SecTrustRef sec_trust_copy_ref(Dartsec_trust_t trust) { - final _$$ref = trust.ref; - return _sec_trust_copy_ref(_$$ref.pointer); -} - -@ffi.Native(symbol: 'sec_trust_create') -external sec_trust_t _sec_trust_create(SecTrustRef trust); - -Dartsec_trust_t? sec_trust_create(SecTrustRef trust) { - return _sec_trust_create(trust).address == 0 - ? null - : objc.NSObject.fromPointer( - _sec_trust_create(trust), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->() -external ffi.Pointer seed48( - ffi.Pointer arg0, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer sel_getName(ffi.Pointer sel); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer sel_getUid(ffi.Pointer str); - -@ffi.Native)>() -external bool sel_isMapped(ffi.Pointer sel); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer sel_registerName( - ffi.Pointer str, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int select( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -); - -@ffi.Native< - kern_return_t Function(task_t, ffi.Pointer, ffi.Int, ffi.Int) ->() -external int semaphore_create( - int task, - ffi.Pointer semaphore, - int policy, - int value, -); - -@ffi.Native() -external int semaphore_destroy(int task, int semaphore); - -@ffi.Native() -external int semaphore_signal(int semaphore); - -@ffi.Native() -external int semaphore_signal_all(int semaphore); - -@ffi.Native() -external int semaphore_signal_thread(int semaphore, int thread); - -@ffi.Native() -external int semaphore_timedwait(int semaphore, mach_timespec_t wait_time); - -@ffi.Native() -external int semaphore_timedwait_signal( - int wait_semaphore, - int signal_semaphore, - mach_timespec_t wait_time, -); - -@ffi.Native() -external int semaphore_wait(int semaphore); - -@ffi.Native() -external int semaphore_wait_signal(int wait_semaphore, int signal_semaphore); - -@ffi.Native< - ssize_t Function(ffi.Int, ffi.Pointer, ffi.Size, ffi.Int) ->() -external int send(int arg0, ffi.Pointer arg1, int arg2, int arg3); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Int, - off_t, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) ->() -external int sendfile( - int arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - int arg5, -); - -@ffi.Native, ffi.Int)>() -external int sendmsg(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native< - ssize_t Function( - ffi.Int, - ffi.Pointer, - ffi.Size, - ffi.Int, - ffi.Pointer, - socklen_t, - ) ->() -external int sendto( - int arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ffi.Pointer arg4, - int arg5, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.UnsignedInt, - ) ->() -external int setattrlist( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int __attrBufSize, - int arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Uint32, - ) ->() -external int setattrlistat( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - int arg4, - int arg5, -); - -@Deprecated('Deprecated') -@ffi.Native)>() -external int setaudit(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int setaudit_addr(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int setauid(ffi.Pointer arg0); - -@ffi.Native, ffi.Pointer)>() -external void setbuf(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external void setbuffer( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __size, -); - -@ffi.Native, ffi.Int)>() -external int setdomainname(ffi.Pointer arg0, int __namelen); - -@ffi.Native() -external int setegid(int arg0); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) ->() -external int setenv( - ffi.Pointer __name, - ffi.Pointer __value, - int __overwrite, -); - -@ffi.Native() -external int seteuid(int arg0); - -@ffi.Native() -external int setgid(int arg0); - -@ffi.Native)>() -external int setgroups(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external void sethostent(int arg0); - -@ffi.Native() -external void sethostid(int arg0); - -@ffi.Native, ffi.Int)>() -external int sethostname(ffi.Pointer arg0, int __namelen); - -@ffi.Native() -external int setiopolicy_np(int arg0, int arg1, int arg2); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - in_addr, - in_addr, - ffi.Uint32, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int setipv4sourcefilter( - int arg0, - in_addr arg1, - in_addr arg2, - int arg3, - int arg4, - ffi.Pointer arg5, -); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int setitimer( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native)>() -external int setjmp(ffi.Pointer arg0); - -@ffi.Native)>() -external void setkey(ffi.Pointer arg0); - -@ffi.Native)>() -external int setlinebuf(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Int, ffi.Pointer)>() -external ffi.Pointer setlocale(int arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external int setlogin(ffi.Pointer arg0); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer setmode(ffi.Pointer arg0); - -@ffi.Native() -external void setnetent(int arg0); - -@ffi.Native)>() -external void setnetgrent(ffi.Pointer arg0); - -@ffi.Native() -external int setpgid(int arg0, int arg1); - -@ffi.Native() -external int setpgrp(); - -@ffi.Native() -external int setpriority(int arg0, int arg1, int arg2); - -@ffi.Native)>() -external void setprogname(ffi.Pointer arg0); - -@ffi.Native() -external void setprotoent(int arg0); - -@ffi.Native() -external int setregid(int arg0, int arg1); - -@ffi.Native() -external int setreuid(int arg0, int arg1); - -@ffi.Native() -external int setrgid(int arg0); - -@ffi.Native)>() -external int setrlimit(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external void setrpcent(int stayopen); - -@ffi.Native() -external int setruid(int arg0); - -@ffi.Native() -external void setservent(int arg0); - -@ffi.Native)>() -external int setsgroups_np(int arg0, ffi.Pointer arg1); - -@ffi.Native() -external int setsid(); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Int, ffi.Int, ffi.Pointer, socklen_t) ->() -external int setsockopt( - int arg0, - int arg1, - int arg2, - ffi.Pointer arg3, - int arg4, -); - -@ffi.Native< - ffi.Int Function( - ffi.Int, - ffi.Uint32, - ffi.Pointer, - socklen_t, - ffi.Uint32, - ffi.Uint32, - ffi.Pointer, - ) ->() -external int setsourcefilter( - int arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ffi.Pointer arg6, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer setstate(ffi.Pointer arg0); - -@ffi.Native, ffi.Pointer)>() -external int settimeofday( - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native() -external int setuid(int arg0); - -@ffi.Native() -external void setusershell(); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Size) ->() -external int setvbuf( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int __size, -); - -@ffi.Native)>() -external int setwgroups_np(int arg0, ffi.Pointer arg1); - -@ffi.Native, ffi.Int)>() -external int shm_open(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int shm_unlink(ffi.Pointer arg0); - -@ffi.Native() -external int shutdown(int arg0, int arg1); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int sigaction( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native, ffi.Int)>() -external int sigaddset(ffi.Pointer arg0, int arg1); - -@ffi.Native, ffi.Pointer)>() -external int sigaltstack(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external int sigblock(int arg0); - -@ffi.Native, ffi.Int)>() -external int sigdelset(ffi.Pointer arg0, int arg1); - -@ffi.Native)>() -external int sigemptyset(ffi.Pointer arg0); - -@ffi.Native)>() -external int sigfillset(ffi.Pointer arg0); - -@ffi.Native() -external int sighold(int arg0); - -@ffi.Native() -external int sigignore(int arg0); - -@ffi.Native() -external int siginterrupt(int arg0, int arg1); - -@ffi.Native, ffi.Int)>() -external int sigismember(ffi.Pointer arg0, int arg1); - -@ffi.Native, ffi.Int)>() -external void siglongjmp(ffi.Pointer arg0, int arg1); - -@ffi.Native< - ffi.Pointer> Function( - ffi.Int, - ffi.Pointer>, - ) ->() -external ffi.Pointer> signal( - int arg0, - ffi.Pointer> arg1, -); - -@ffi.Native() -external int signgam; - -@ffi.Native() -external int sigpause(int arg0); - -@ffi.Native)>() -external int sigpending(ffi.Pointer arg0); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int sigprocmask( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native() -external int sigrelse(int arg0); - -@ffi.Native< - ffi.Pointer> Function( - ffi.Int, - ffi.Pointer>, - ) ->() -external ffi.Pointer> sigset( - int arg0, - ffi.Pointer> arg1, -); - -@ffi.Native, ffi.Int)>() -external int sigsetjmp(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external int sigsetmask(int arg0); - -@ffi.Native)>() -external int sigsuspend(ffi.Pointer arg0); - -@ffi.Native< - ffi.Int Function(ffi.Int, ffi.Pointer, ffi.Pointer) ->() -external int sigvec( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native, ffi.Pointer)>() -external int sigwait(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external double sin(double arg0); - -@ffi.Native() -external double sinf(double arg0); - -@ffi.Native() -external double sinh(double arg0); - -@ffi.Native() -external double sinhf(double arg0); - -@ffi.Native() -external int sleep(int arg0); - -@ffi.Native< - ffi.Void Function( - cpu_type_t, - cpu_subtype_t, - ffi.Pointer>, - ffi.Pointer>, - ) ->() -external void slot_name( - int arg0, - int arg1, - ffi.Pointer> arg2, - ffi.Pointer> arg3, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Size, ffi.Pointer) ->() -external int snprintf( - ffi.Pointer __str, - int __size, - ffi.Pointer __format, -); - -@ffi.Native() -external int sockatmark(int arg0); - -@ffi.Native() -external int socket(int arg0, int arg1, int arg2); - -@ffi.Native)>() -external int socketpair( - int arg0, - int arg1, - int arg2, - ffi.Pointer arg3, -); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.', -) -@ffi.Native, ffi.Pointer)>() -external int sprintf(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native() -external double sqrt(double arg0); - -@ffi.Native() -external double sqrtf(double arg0); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ) ->() -external int sradixsort( - ffi.Pointer> __base, - int __nel, - ffi.Pointer __table, - int __endbyte, -); - -@ffi.Native() -external void srand(int arg0); - -@ffi.Native() -external void srand48(int arg0); - -@ffi.Native() -external void sranddev(); - -@ffi.Native() -external void srandom(int arg0); - -@ffi.Native() -external void srandomdev(); - -@ffi.Native, ffi.Pointer)>() -external int sscanf(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer stpcpy( - ffi.Pointer __dst, - ffi.Pointer __src, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer stpncpy( - ffi.Pointer __dst, - ffi.Pointer __src, - int __n, -); - -@Deprecated('Deprecated') -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void str2dec( - ffi.Pointer s, - ffi.Pointer ix, - ffi.Pointer d, - ffi.Pointer vp, -); - -@ffi.Native, ffi.Pointer)>() -external int strcasecmp(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strcasestr( - ffi.Pointer __big, - ffi.Pointer __little, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strcat( - ffi.Pointer __s1, - ffi.Pointer __s2, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer strchr(ffi.Pointer __s, int __c); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer strchrnul(ffi.Pointer __s, int __c); - -@ffi.Native, ffi.Pointer)>() -external int strcmp(ffi.Pointer __s1, ffi.Pointer __s2); - -@ffi.Native, ffi.Pointer)>() -external int strcoll(ffi.Pointer __s1, ffi.Pointer __s2); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strcpy( - ffi.Pointer __dst, - ffi.Pointer __src, -); - -@ffi.Native< - ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) ->() -external int strcspn( - ffi.Pointer __s, - ffi.Pointer __charset, -); - -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer strdup(ffi.Pointer __s1); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer strerror(int __errnum); - -@ffi.Native, ffi.Size)>() -external int strerror_r( - int __errnum, - ffi.Pointer __strerrbuf, - int __buflen, -); - -@ffi.Native< - ffi.Size Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int strftime( - ffi.Pointer arg0, - int __maxsize, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external int strlcat( - ffi.Pointer __dst, - ffi.Pointer __source, - int __size, -); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external int strlcpy( - ffi.Pointer __dst, - ffi.Pointer __source, - int __size, -); - -@ffi.Native)>() -external int strlen(ffi.Pointer __s); - -@ffi.Native)>() -external void strmode(int __mode, ffi.Pointer __bp); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int strncasecmp( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer strncat( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int strncmp( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer strncpy( - ffi.Pointer __dst, - ffi.Pointer __src, - int __n, -); - -@ffi.Native Function(ffi.Pointer, ffi.Size)>() -external ffi.Pointer strndup(ffi.Pointer __s1, int __n); - -@ffi.Native, ffi.Size)>() -external int strnlen(ffi.Pointer __s1, int __n); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external ffi.Pointer strnstr( - ffi.Pointer __big, - ffi.Pointer __little, - int __len, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strpbrk( - ffi.Pointer __s, - ffi.Pointer __charset, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer strptime( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native Function(ffi.Pointer, ffi.Int)>() -external ffi.Pointer strrchr(ffi.Pointer __s, int __c); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer>, - ffi.Pointer, - ) ->() -external ffi.Pointer strsep( - ffi.Pointer> __stringp, - ffi.Pointer __delim, -); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer strsignal(int __sig); - -@ffi.Native, ffi.Size)>() -external int strsignal_r( - int __sig, - ffi.Pointer __strsignalbuf, - int __buflen, -); - -@ffi.Native< - ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) ->() -external int strspn(ffi.Pointer __s, ffi.Pointer __charset); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strstr( - ffi.Pointer __big, - ffi.Pointer __little, -); - -@ffi.Native< - ffi.Double Function(ffi.Pointer, ffi.Pointer>) ->() -external double strtod( - ffi.Pointer arg0, - ffi.Pointer> arg1, -); - -@ffi.Native< - ffi.Float Function(ffi.Pointer, ffi.Pointer>) ->() -external double strtof( - ffi.Pointer arg0, - ffi.Pointer> arg1, -); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int strtofflags( - ffi.Pointer> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - intmax_t Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoimax( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer strtok( - ffi.Pointer __str, - ffi.Pointer __sep, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external ffi.Pointer strtok_r( - ffi.Pointer __str, - ffi.Pointer __sep, - ffi.Pointer> __lasts, -); - -@ffi.Native< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtol( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.LongLong Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoll( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.LongLong Function( - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.Pointer>, - ) ->() -external int strtonum( - ffi.Pointer __numstr, - int __minval, - int __maxval, - ffi.Pointer> __errstrp, -); - -@ffi.Native< - ffi.LongLong Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoq( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoul( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.UnsignedLongLong Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoull( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - uintmax_t Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtoumax( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.UnsignedLongLong Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int strtouq( - ffi.Pointer __str, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->() -external int strxfrm( - ffi.Pointer __s1, - ffi.Pointer __s2, - int __n, -); - -@ffi.Native>() -external ffi.Pointer suboptarg; - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, ssize_t) ->() -external void swab( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __len, -); - -@ffi.Native)>() -external int swapon(ffi.Pointer arg0); - -@ffi.Native() -external int swtch(); - -@ffi.Native() -external int swtch_pri(int pri); - -@ffi.Native, ffi.Pointer)>() -external int symlink(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int symlinkat( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -); - -@ffi.Native() -external void sync(); - -@ffi.Native, ffi.Int)>() -external int sync_volume_np(ffi.Pointer arg0, int arg1); - -@ffi.Native>>() -external ffi.Pointer> sys_errlist; - -@ffi.Native() -external final int sys_nerr; - -@ffi.Array.multi([32]) -@ffi.Native>>() -external ffi.Array> sys_siglist; - -@ffi.Array.multi([32]) -@ffi.Native>>() -external ffi.Array> sys_signame; - -@Deprecated( - 'syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost().', -) -@ffi.Native() -external int syscall(int arg0); - -@ffi.Native() -external int sysconf(int arg0); - -@ffi.Native)>() -external int system(ffi.Pointer arg0); - -@ffi.Native() -external double tan(double arg0); - -@ffi.Native() -external double tanf(double arg0); - -@ffi.Native() -external double tanh(double arg0); - -@ffi.Native() -external double tanhf(double arg0); - -@ffi.Native() -external int task_assign(int task, int new_set, int assign_threads); - -@ffi.Native() -external int task_assign_default(int task, int assign_threads); - -@ffi.Native< - kern_return_t Function( - task_t, - ledger_array_t, - mach_msg_type_number_t, - boolean_t, - ffi.Pointer, - ) ->() -external int task_create( - int target_task, - ledger_array_t ledgers, - int ledgersCnt, - int inherit_memory, - ffi.Pointer child_task, -); - -@ffi.Native)>() -external int task_create_identity_token( - int task, - ffi.Pointer token, -); - -@ffi.Native() -external int task_dyld_process_info_notify_deregister( - int target_task, - int notify, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_array_t, ffi.Pointer) ->() -external int task_dyld_process_info_notify_get( - mach_port_name_array_t names_addr, - ffi.Pointer names_count_addr, -); - -@ffi.Native() -external int task_dyld_process_info_notify_register( - int target_task, - int notify, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Int, - ffi.Pointer, - ) ->() -external int task_for_pid( - int target_tport, - int pid, - ffi.Pointer t, -); - -@ffi.Native)>() -external int task_generate_corpse( - int task, - ffi.Pointer corpse_task_port, -); - -@ffi.Native< - kern_return_t Function(task_inspect_t, ffi.Pointer) ->() -external int task_get_assignment( - int task, - ffi.Pointer assigned_set, -); - -@ffi.Native< - kern_return_t Function( - task_read_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_get_dyld_image_infos( - int task, - ffi.Pointer dyld_images, - ffi.Pointer dyld_imagesCnt, -); - -@ffi.Native< - kern_return_t Function( - task_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_get_emulation_vector( - int task, - ffi.Pointer vector_start, - ffi.Pointer emulation_vector, - ffi.Pointer emulation_vectorCnt, -); - -@ffi.Native< - kern_return_t Function(task_inspect_t, ffi.Pointer) ->() -external int task_get_exc_guard_behavior( - int task, - ffi.Pointer behavior, -); - -@ffi.Native< - kern_return_t Function( - task_t, - exception_mask_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int task_get_exception_ports( - int task, - int exception_mask, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlers, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - exception_mask_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_info_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int task_get_exception_ports_info( - int port, - int exception_mask, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_info_array_t old_handlers_info, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - task_read_t, - mach_voucher_selector_t, - ffi.Pointer, - ) ->() -external int task_get_mach_voucher( - int task, - int which, - ffi.Pointer voucher, -); - -@ffi.Native< - kern_return_t Function(task_inspect_t, ffi.Int, ffi.Pointer) ->() -external int task_get_special_port( - int task, - int which_port, - ffi.Pointer special_port, -); - -@ffi.Native< - kern_return_t Function( - task_read_t, - thread_state_flavor_t, - thread_state_t, - ffi.Pointer, - ) ->() -external int task_get_state( - int task, - int flavor, - thread_state_t old_state, - ffi.Pointer old_stateCnt, -); - -@ffi.Native< - kern_return_t Function( - task_id_token_t, - task_flavor_t, - ffi.Pointer, - ) ->() -external int task_identity_token_get_task_port( - int token, - int flavor, - ffi.Pointer task_port, -); - -@ffi.Native< - kern_return_t Function( - task_name_t, - task_flavor_t, - task_info_t, - ffi.Pointer, - ) ->() -external int task_info( - int target_task, - int flavor, - task_info_t task_info_out, - ffi.Pointer task_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - task_inspect_t, - task_inspect_flavor_t, - task_inspect_info_t, - ffi.Pointer, - ) ->() -external int task_inspect( - int task, - int flavor, - task_inspect_info_t info_out, - ffi.Pointer info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - task_t, - task_read_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_map_corpse_info( - int task, - int corspe_task, - ffi.Pointer kcd_addr_begin, - ffi.Pointer kcd_size, -); - -@ffi.Native< - kern_return_t Function( - task_t, - task_read_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_map_corpse_info_64( - int task, - int corspe_task, - ffi.Pointer kcd_addr_begin, - ffi.Pointer kcd_size, -); - -@ffi.Native< - kern_return_t Function( - task_t, - kcdata_object_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_map_kcdata_object_64( - int task, - int kcdata_object, - ffi.Pointer kcd_addr_begin, - ffi.Pointer kcd_size, -); - -@ffi.Native< - kern_return_t Function( - mach_port_name_t, - ffi.Int, - ffi.Pointer, - ) ->() -external int task_name_for_pid( - int target_tport, - int pid, - ffi.Pointer tn, -); - -@ffi.Native< - kern_return_t Function( - task_t, - policy_t, - policy_base_t, - mach_msg_type_number_t, - boolean_t, - boolean_t, - ) ->() -external int task_policy( - int task, - int policy, - policy_base_t base, - int baseCnt, - int set_limit, - int change, -); - -@ffi.Native< - kern_return_t Function( - task_policy_get_t, - task_policy_flavor_t, - task_policy_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_policy_get( - int task, - int flavor, - task_policy_t policy_info, - ffi.Pointer policy_infoCnt, - ffi.Pointer get_default, -); - -@ffi.Native< - kern_return_t Function( - task_policy_set_t, - task_policy_flavor_t, - task_policy_t, - mach_msg_type_number_t, - ) ->() -external int task_policy_set( - int task, - int flavor, - task_policy_t policy_info, - int policy_infoCnt, -); - -@ffi.Native< - kern_return_t Function(task_inspect_t, ffi.Pointer) ->() -external int task_purgable_info( - int task, - ffi.Pointer stats, -); - -@ffi.Native< - kern_return_t Function(task_t, ffi.Pointer) ->() -external int task_register_dyld_get_process_state( - int task, - ffi.Pointer dyld_process_state, -); - -@ffi.Native< - kern_return_t Function( - task_t, - dyld_kernel_image_info_array_t, - mach_msg_type_number_t, - ) ->() -external int task_register_dyld_image_infos( - int task, - dyld_kernel_image_info_array_t dyld_images, - int dyld_imagesCnt, -); - -@ffi.Native() -external int task_register_dyld_set_dyld_state(int task, int dyld_state); - -@ffi.Native< - kern_return_t Function(task_t, dyld_kernel_image_info_t, boolean_t, boolean_t) ->() -external int task_register_dyld_shared_cache_image_info( - int task, - dyld_kernel_image_info_t dyld_cache_image, - int no_cache, - int private_cache, -); - -@ffi.Native< - kern_return_t Function( - task_t, - ffi.Uint32, - exception_mask_t, - exception_behavior_t, - thread_state_flavor_t, - mach_port_t, - ) ->() -external int task_register_hardened_exception_handler( - int task, - int signed_pc_key, - int exceptions_allowed, - int behaviors_allowed, - int flavors_allowed, - int new_exception_port, -); - -@ffi.Native() -external int task_resume(int target_task); - -@ffi.Native() -external int task_resume2(int suspend_token); - -@ffi.Native() -external int task_sample(int task, int reply); - -@ffi.Native() -external int task_self_trap(); - -@ffi.Native() -external int task_set_corpse_forking_behavior(int task, int behavior); - -@ffi.Native() -external int task_set_emulation( - int target_port, - int routine_entry_pt, - int routine_number, -); - -@ffi.Native< - kern_return_t Function( - task_t, - ffi.Int, - emulation_vector_t, - mach_msg_type_number_t, - ) ->() -external int task_set_emulation_vector( - int task, - int vector_start, - emulation_vector_t emulation_vector, - int emulation_vectorCnt, -); - -@ffi.Native() -external int task_set_exc_guard_behavior(int task, int behavior); - -@ffi.Native< - kern_return_t Function( - task_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - ) ->() -external int task_set_exception_ports( - int task, - int exception_mask, - int new_port, - int behavior, - int new_flavor, -); - -@ffi.Native< - kern_return_t Function( - task_t, - task_flavor_t, - task_info_t, - mach_msg_type_number_t, - ) ->() -external int task_set_info( - int target_task, - int flavor, - task_info_t task_info_in, - int task_info_inCnt, -); - -@ffi.Native() -external int task_set_mach_voucher(int task, int voucher); - -@ffi.Native)>() -external int task_set_phys_footprint_limit( - int task, - int new_limit, - ffi.Pointer old_limit, -); - -@ffi.Native< - kern_return_t Function( - task_t, - processor_set_t, - policy_t, - policy_base_t, - mach_msg_type_number_t, - policy_limit_t, - mach_msg_type_number_t, - boolean_t, - ) ->() -external int task_set_policy( - int task, - int pset, - int policy, - policy_base_t base, - int baseCnt, - policy_limit_t limit, - int limitCnt, - int change, -); - -@ffi.Native() -external int task_set_port_space(int task, int table_entries); - -@ffi.Native() -external int task_set_ras_pc(int target_task, int basepc, int boundspc); - -@ffi.Native() -external int task_set_special_port(int task, int which_port, int special_port); - -@ffi.Native< - kern_return_t Function( - task_t, - thread_state_flavor_t, - thread_state_t, - mach_msg_type_number_t, - ) ->() -external int task_set_state( - int task, - int flavor, - thread_state_t new_state, - int new_stateCnt, -); - -@ffi.Native() -external int task_suspend(int target_task); - -@ffi.Native< - kern_return_t Function(task_read_t, ffi.Pointer) ->() -external int task_suspend2( - int target_task, - ffi.Pointer suspend_token, -); - -@ffi.Native< - kern_return_t Function( - task_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int task_swap_exception_ports( - int task, - int exception_mask, - int new_port, - int behavior, - int new_flavor, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlers, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function(task_t, ipc_voucher_t, ffi.Pointer) ->() -external int task_swap_mach_voucher( - int task, - int new_voucher, - ffi.Pointer old_voucher, -); - -@ffi.Native() -external int task_terminate(int target_task); - -@ffi.Native() -external int task_test_async_upcall_propagation( - int task, - int port, - int qos, - int iotier, -); - -@ffi.Native() -external int task_test_sync_upcall(int task, int port); - -@ffi.Native< - kern_return_t Function( - task_inspect_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_threads( - int target_task, - ffi.Pointer act_list, - ffi.Pointer act_listCnt, -); - -@ffi.Native< - kern_return_t Function( - task_t, - dyld_kernel_image_info_array_t, - mach_msg_type_number_t, - ) ->() -external int task_unregister_dyld_image_infos( - int task, - dyld_kernel_image_info_array_t dyld_images, - int dyld_imagesCnt, -); - -@ffi.Native() -external int task_wire(int target_task, int must_wire); - -@ffi.Native< - kern_return_t Function( - task_inspect_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int task_zone_info( - int target_task, - ffi.Pointer names, - ffi.Pointer namesCnt, - ffi.Pointer info, - ffi.Pointer infoCnt, -); - -@ffi.Native() -external int tcgetpgrp(int arg0); - -@ffi.Native() -external int tcsetpgrp(int arg0, int arg1); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead.', -) -@ffi.Native< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) ->() -external ffi.Pointer tempnam( - ffi.Pointer __dir, - ffi.Pointer __prefix, -); - -@ffi.Native() -external double tgamma(double arg0); - -@ffi.Native() -external double tgammaf(double arg0); - -@ffi.Native() -external int thread_abort(int target_act); - -@ffi.Native() -external int thread_abort_safely(int target_act); - -@ffi.Native< - kern_return_t Function( - thread_t, - mach_port_t, - exception_mask_t, - exception_behavior_t, - thread_state_flavor_t, - ) ->() -external int thread_adopt_exception_handler( - int thread, - int exc_port, - int exc_mask, - int behavior_mask, - int flavor_mask, -); - -@ffi.Native() -external int thread_assign(int thread, int new_set); - -@ffi.Native() -external int thread_assign_default(int thread); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - ffi.Int, - thread_state_flavor_t, - thread_state_t, - mach_msg_type_number_t, - thread_state_t, - ffi.Pointer, - ) ->() -external int thread_convert_thread_state( - int thread, - int direction, - int flavor, - thread_state_t in_state, - int in_stateCnt, - thread_state_t out_state, - ffi.Pointer out_stateCnt, -); - -@ffi.Native)>() -external int thread_create( - int parent_task, - ffi.Pointer child_act, -); - -@ffi.Native< - kern_return_t Function( - task_t, - thread_state_flavor_t, - thread_state_t, - mach_msg_type_number_t, - ffi.Pointer, - ) ->() -external int thread_create_running( - int parent_task, - int flavor, - thread_state_t new_state, - int new_stateCnt, - ffi.Pointer child_act, -); - -@ffi.Native() -external int thread_depress_abort(int thread); - -@ffi.Native< - kern_return_t Function(thread_inspect_t, ffi.Pointer) ->() -external int thread_get_assignment( - int thread, - ffi.Pointer assigned_set, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - exception_mask_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int thread_get_exception_ports( - int thread, - int exception_mask, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlers, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - mach_port_t, - exception_mask_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_info_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int thread_get_exception_ports_info( - int port, - int exception_mask, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_info_array_t old_handlers_info, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - thread_read_t, - mach_voucher_selector_t, - ffi.Pointer, - ) ->() -external int thread_get_mach_voucher( - int thr_act, - int which, - ffi.Pointer voucher, -); - -@ffi.Native< - kern_return_t Function(thread_inspect_t, ffi.Int, ffi.Pointer) ->() -external int thread_get_special_port( - int thr_act, - int which_port, - ffi.Pointer special_port, -); - -@ffi.Native< - kern_return_t Function( - thread_read_t, - thread_state_flavor_t, - thread_state_t, - ffi.Pointer, - ) ->() -external int thread_get_state( - int target_act, - int flavor, - thread_state_t old_state, - ffi.Pointer old_stateCnt, -); - -@ffi.Native< - kern_return_t Function( - thread_inspect_t, - thread_flavor_t, - thread_info_t, - ffi.Pointer, - ) ->() -external int thread_info( - int target_act, - int flavor, - thread_info_t thread_info_out, - ffi.Pointer thread_info_outCnt, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - policy_t, - policy_base_t, - mach_msg_type_number_t, - boolean_t, - ) ->() -external int thread_policy( - int thr_act, - int policy, - policy_base_t base, - int baseCnt, - int set_limit, -); - -@ffi.Native< - kern_return_t Function( - thread_inspect_t, - thread_policy_flavor_t, - thread_policy_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int thread_policy_get( - int thread, - int flavor, - thread_policy_t policy_info, - ffi.Pointer policy_infoCnt, - ffi.Pointer get_default, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - thread_policy_flavor_t, - thread_policy_t, - mach_msg_type_number_t, - ) ->() -external int thread_policy_set( - int thread, - int flavor, - thread_policy_t policy_info, - int policy_infoCnt, -); - -@ffi.Native() -external int thread_resume(int target_act); - -@ffi.Native() -external int thread_sample(int thread, int reply); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - ) ->() -external int thread_set_exception_ports( - int thread, - int exception_mask, - int new_port, - int behavior, - int new_flavor, -); - -@ffi.Native() -external int thread_set_mach_voucher(int thr_act, int voucher); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - processor_set_t, - policy_t, - policy_base_t, - mach_msg_type_number_t, - policy_limit_t, - mach_msg_type_number_t, - ) ->() -external int thread_set_policy( - int thr_act, - int pset, - int policy, - policy_base_t base, - int baseCnt, - policy_limit_t limit, - int limitCnt, -); - -@ffi.Native() -external int thread_set_special_port( - int thr_act, - int which_port, - int special_port, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - thread_state_flavor_t, - thread_state_t, - mach_msg_type_number_t, - ) ->() -external int thread_set_state( - int target_act, - int flavor, - thread_state_t new_state, - int new_stateCnt, -); - -@ffi.Native() -external int thread_suspend(int target_act); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - exception_mask_t, - mach_port_t, - exception_behavior_t, - thread_state_flavor_t, - exception_mask_array_t, - ffi.Pointer, - exception_handler_array_t, - exception_behavior_array_t, - exception_flavor_array_t, - ) ->() -external int thread_swap_exception_ports( - int thread, - int exception_mask, - int new_port, - int behavior, - int new_flavor, - exception_mask_array_t masks, - ffi.Pointer masksCnt, - exception_handler_array_t old_handlers, - exception_behavior_array_t old_behaviors, - exception_flavor_array_t old_flavors, -); - -@ffi.Native< - kern_return_t Function( - thread_act_t, - ipc_voucher_t, - ffi.Pointer, - ) ->() -external int thread_swap_mach_voucher( - int thr_act, - int new_voucher, - ffi.Pointer old_voucher, -); - -@ffi.Native< - kern_return_t Function(mach_port_name_t, ffi.Int, mach_msg_timeout_t) ->() -external int thread_switch(int thread_name, int option, int option_time); - -@ffi.Native() -external int thread_terminate(int target_act); - -@ffi.Native() -external int thread_wire(int host_priv, int thread, int wired); - -@ffi.Native)>() -external int time(ffi.Pointer arg0); - -@ffi.Native() -external int time2posix(int arg0); - -@ffi.Native)>() -external int timegm(ffi.Pointer arg0); - -@ffi.Native)>() -external int timelocal(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int timespec_get(ffi.Pointer ts, int base); - -@ffi.Native(symbol: 'timezone') -external int timezone$1; - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int timingsafe_bcmp( - ffi.Pointer __b1, - ffi.Pointer __b2, - int __len, -); - -@ffi.Native Function()>() -external ffi.Pointer tmpfile(); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.', -) -@ffi.Native Function(ffi.Pointer)>() -external ffi.Pointer tmpnam(ffi.Pointer arg0); - -@ffi.Native() -external double trunc(double arg0); - -@ffi.Native, off_t)>() -external int truncate(ffi.Pointer arg0, int arg1); - -@ffi.Native() -external double truncf(double arg0); - -@ffi.Native Function(ffi.Int)>() -external ffi.Pointer ttyname(int arg0); - -@ffi.Native, ffi.Size)>() -external int ttyname_r(int arg0, ffi.Pointer arg1, int __len); - -@ffi.Native() -external int ttyslot(); - -@ffi.Native>>() -external ffi.Pointer> tzname; - -@ffi.Native() -external void tzset(); - -@ffi.Native() -external void tzsetwall(); - -@ffi.Native() -external int ualarm(int arg0, int arg1); - -@ffi.Native)>() -external int undelete(ffi.Pointer arg0); - -@ffi.Native)>() -external int ungetc(int arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external int unlink(ffi.Pointer arg0); - -@ffi.Native, ffi.Int)>() -external int unlinkat(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native() -external int unlockpt(int arg0); - -@ffi.Native)>() -external int unsetenv(ffi.Pointer arg0); - -@ffi.Native)>() -external int unwhiteout(ffi.Pointer arg0); - -@ffi.Native() -external locale_t uselocale(locale_t arg0); - -@ffi.Native() -external int usleep(int arg0); - -@ffi.Native, ffi.Pointer)>() -external int utimes(ffi.Pointer arg0, ffi.Pointer arg1); - -@ffi.Native)>() -external void uuid_clear(ffi.Pointer uu); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int uuid_compare( - ffi.Pointer uu1, - ffi.Pointer uu2, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external void uuid_copy( - ffi.Pointer dst, - ffi.Pointer src, -); - -@ffi.Native)>() -external void uuid_generate(ffi.Pointer out); - -@ffi.Native)>() -external void uuid_generate_random(ffi.Pointer out); - -@ffi.Native)>() -external void uuid_generate_time(ffi.Pointer out); - -@ffi.Native)>() -external int uuid_is_null(ffi.Pointer uu); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer) ->() -external int uuid_parse( - ffi.Pointer in$, - ffi.Pointer uu, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void uuid_unparse( - ffi.Pointer uu, - ffi.Pointer out, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void uuid_unparse_lower( - ffi.Pointer uu, - ffi.Pointer out, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void uuid_unparse_upper( - ffi.Pointer uu, - ffi.Pointer out, -); - -@ffi.Native< - OSStatus Function( - AEEventClass, - AEEventID, - DescType, - ffi.Pointer, - Size, - SInt16, - SInt32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - va_list, - ) ->() -external int vAEBuildAppleEvent( - int theClass, - int theID, - int addressType, - ffi.Pointer addressData, - int addressLength, - int returnID, - int transactionID, - ffi.Pointer resultEvt, - ffi.Pointer error, - ffi.Pointer paramsFmt, - va_list args, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - va_list, - ) ->() -external int vAEBuildDesc( - ffi.Pointer dst, - ffi.Pointer error, - ffi.Pointer src, - va_list args, -); - -@ffi.Native< - OSStatus Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - va_list, - ) ->() -external int vAEBuildParameters( - ffi.Pointer event, - ffi.Pointer error, - ffi.Pointer format, - va_list args, -); - -@ffi.Native Function(ffi.Size)>() -external ffi.Pointer valloc(int __size); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer>, - ffi.Pointer, - va_list, - ) ->() -external int vasprintf( - ffi.Pointer> arg0, - ffi.Pointer arg1, - va_list arg2, -); - -@ffi.Native, va_list)>() -external int vdprintf(int arg0, ffi.Pointer arg1, va_list arg2); - -@Deprecated('Use posix_spawn or fork') -@ffi.Native() -external int vfork(); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) ->() -external int vfprintf( - ffi.Pointer arg0, - ffi.Pointer arg1, - va_list arg2, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) ->() -external int vfscanf( - ffi.Pointer __stream, - ffi.Pointer __format, - va_list arg2, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_size_t, - ffi.Int, - ) ->() -external int vm_allocate( - int target_task, - ffi.Pointer address, - int size, - int flags, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - vm_map_t, - ffi.Pointer, - vm_size_t, - ffi.Int, - ) ->() -external int vm_allocate_cpm( - int host_priv, - int task, - ffi.Pointer address, - int size, - int flags, -); - -@ffi.Native< - kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_behavior_t) ->() -external int vm_behavior_set( - int target_task, - int address, - int size, - int new_behavior, -); - -@ffi.Native< - kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_address_t) ->() -external int vm_copy( - int target_task, - int source_address, - int size, - int dest_address, -); - -@ffi.Native() -external int vm_deallocate(int target_task, int address, int size); - -@ffi.Native< - kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_inherit_t) ->() -external int vm_inherit( - int target_task, - int address, - int size, - int new_inheritance, -); - -@ffi.Native() -external int vm_kernel_page_mask; - -@ffi.Native() -external int vm_kernel_page_shift; - -@ffi.Native() -external int vm_kernel_page_size; - -@ffi.Native< - kern_return_t Function( - vm_map_t, - vm_address_t, - vm_size_t, - vm_machine_attribute_t, - ffi.Pointer, - ) ->() -external int vm_machine_attribute( - int target_task, - int address, - int size, - int attribute, - ffi.Pointer value, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_size_t, - vm_address_t, - ffi.Int, - mem_entry_name_port_t, - vm_offset_t, - boolean_t, - vm_prot_t, - vm_prot_t, - vm_inherit_t, - ) ->() -external int vm_map( - int target_task, - ffi.Pointer address, - int size, - int mask, - int flags, - int object, - int offset, - int copy, - int cur_protection, - int max_protection, - int inheritance, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_size_t, - vm_address_t, - ffi.Int, - mem_entry_name_port_t, - memory_object_offset_t, - boolean_t, - vm_prot_t, - vm_prot_t, - vm_inherit_t, - ) ->() -external int vm_map_64( - int target_task, - ffi.Pointer address, - int size, - int mask, - int flags, - int object, - int offset, - int copy, - int cur_protection, - int max_protection, - int inheritance, -); - -@ffi.Native() -external int vm_map_exec_lockdown(int target_task); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - vm_offset_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int vm_map_page_query( - int target_map, - int offset, - ffi.Pointer disposition, - ffi.Pointer ref_count, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int vm_mapped_pages_info( - int task, - ffi.Pointer pages, - ffi.Pointer pagesCnt, -); - -@ffi.Native< - kern_return_t Function(vm_map_t, vm_address_t, vm_size_t, vm_sync_t) ->() -external int vm_msync(int target_task, int address, int size, int sync_flags); - -@ffi.Native() -external int vm_page_mask; - -@ffi.Native() -external int vm_page_shift; - -@ffi.Native() -external int vm_page_size; - -@ffi.Native< - kern_return_t Function( - vm_map_t, - vm_address_t, - vm_size_t, - boolean_t, - vm_prot_t, - ) ->() -external int vm_protect( - int target_task, - int address, - int size, - int set_maximum, - int new_protection, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - vm_address_t, - vm_purgable_t, - ffi.Pointer, - ) ->() -external int vm_purgable_control( - int target_task, - int address, - int control, - ffi.Pointer state, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - vm_address_t, - vm_size_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int vm_read( - int target_task, - int address, - int size, - ffi.Pointer data, - ffi.Pointer dataCnt, -); - -@ffi.Native< - kern_return_t Function(vm_map_read_t, ffi.Pointer, natural_t) ->() -external int vm_read_list( - int target_task, - ffi.Pointer data_list, - int count, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - vm_address_t, - vm_size_t, - vm_address_t, - ffi.Pointer, - ) ->() -external int vm_read_overwrite( - int target_task, - int address, - int size, - int data, - ffi.Pointer outsize, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - ffi.Pointer, - ffi.Pointer, - vm_region_flavor_t, - vm_region_info_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int vm_region( - int target_task, - ffi.Pointer address, - ffi.Pointer size, - int flavor, - vm_region_info_t info, - ffi.Pointer infoCnt, - ffi.Pointer object_name, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - ffi.Pointer, - ffi.Pointer, - vm_region_flavor_t, - vm_region_info_t, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int vm_region_64( - int target_task, - ffi.Pointer address, - ffi.Pointer size, - int flavor, - vm_region_info_t info, - ffi.Pointer infoCnt, - ffi.Pointer object_name, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - vm_region_recurse_info_t, - ffi.Pointer, - ) ->() -external int vm_region_recurse( - int target_task, - ffi.Pointer address, - ffi.Pointer size, - ffi.Pointer nesting_depth, - vm_region_recurse_info_t info, - ffi.Pointer infoCnt, -); - -@ffi.Native< - kern_return_t Function( - vm_map_read_t, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - vm_region_recurse_info_t, - ffi.Pointer, - ) ->() -external int vm_region_recurse_64( - int target_task, - ffi.Pointer address, - ffi.Pointer size, - ffi.Pointer nesting_depth, - vm_region_recurse_info_t info, - ffi.Pointer infoCnt, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_size_t, - vm_address_t, - ffi.Int, - vm_map_t, - vm_address_t, - boolean_t, - ffi.Pointer, - ffi.Pointer, - vm_inherit_t, - ) ->() -external int vm_remap( - int target_task, - ffi.Pointer target_address, - int size, - int mask, - int flags, - int src_task, - int src_address, - int copy, - ffi.Pointer cur_protection, - ffi.Pointer max_protection, - int inheritance, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - ffi.Pointer, - vm_size_t, - vm_address_t, - ffi.Int, - vm_map_read_t, - vm_address_t, - boolean_t, - ffi.Pointer, - ffi.Pointer, - vm_inherit_t, - ) ->() -external int vm_remap_new( - int target_task, - ffi.Pointer target_address, - int size, - int mask, - int flags, - int src_task, - int src_address, - int copy, - ffi.Pointer cur_protection, - ffi.Pointer max_protection, - int inheritance, -); - -@ffi.Native< - kern_return_t Function(ffi.Pointer, ffi.Pointer) ->() -external int vm_stats( - ffi.Pointer info, - ffi.Pointer count, -); - -@ffi.Native< - kern_return_t Function( - host_priv_t, - vm_map_t, - vm_address_t, - vm_size_t, - vm_prot_t, - ) ->() -external int vm_wire( - int host_priv, - int task, - int address, - int size, - int desired_access, -); - -@ffi.Native< - kern_return_t Function( - vm_map_t, - vm_address_t, - vm_offset_t, - mach_msg_type_number_t, - ) ->() -external int vm_write(int target_task, int address, int data, int dataCnt); - -@ffi.Native)>() -external voucher_mach_msg_state_t voucher_mach_msg_adopt( - ffi.Pointer msg, -); - -@ffi.Native)>() -external void voucher_mach_msg_clear(ffi.Pointer msg); - -@ffi.Native() -external void voucher_mach_msg_revert(voucher_mach_msg_state_t state); - -@ffi.Native)>() -external int voucher_mach_msg_set(ffi.Pointer msg); - -@ffi.Native, va_list)>() -external int vprintf(ffi.Pointer arg0, va_list arg1); - -@ffi.Native< - ffi.Pointer< - ffi.NativeFunction, va_list)> - > ->() -external ffi.Pointer< - ffi.NativeFunction, va_list)> -> -vprintf_stderr_func; - -@ffi.Native, va_list)>() -external int vscanf(ffi.Pointer __format, va_list arg1); - -@ffi.Native< - ffi.Int Function( - ffi.Pointer, - ffi.Size, - ffi.Pointer, - va_list, - ) ->() -external int vsnprintf( - ffi.Pointer __str, - int __size, - ffi.Pointer __format, - va_list arg3, -); - -@Deprecated( - 'This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead.', -) -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) ->() -external int vsprintf( - ffi.Pointer arg0, - ffi.Pointer arg1, - va_list arg2, -); - -@ffi.Native< - ffi.Int Function(ffi.Pointer, ffi.Pointer, va_list) ->() -external int vsscanf( - ffi.Pointer __str, - ffi.Pointer __format, - va_list arg2, -); - -@ffi.Native)>() -external int wait(ffi.Pointer arg0); - -@ffi.Native< - pid_t Function(ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int wait3( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - pid_t Function(pid_t, ffi.Pointer, ffi.Int, ffi.Pointer) ->() -external int wait4( - int arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Int Function(ffi.UnsignedInt, id_t, ffi.Pointer, ffi.Int) ->(symbol: 'waitid') -external int _waitid(int arg0, int arg1, ffi.Pointer arg2, int arg3); - -int waitid( - idtype_t arg0, - Dart__uint32_t arg1, - ffi.Pointer arg2, - int arg3, -) { - return _waitid(arg0.value, arg1, arg2, arg3); -} - -@ffi.Native, ffi.Int)>() -external int waitpid(int arg0, ffi.Pointer arg1, int arg2); - -@ffi.Native< - intmax_t Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int wcstoimax( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native< - ffi.Size Function(ffi.Pointer, ffi.Pointer, ffi.Size) ->() -external int wcstombs( - ffi.Pointer arg0, - ffi.Pointer arg1, - int __n, -); - -@ffi.Native< - uintmax_t Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ) ->() -external int wcstoumax( - ffi.Pointer __nptr, - ffi.Pointer> __endptr, - int __base, -); - -@ffi.Native, ffi.WChar)>() -external int wctomb(ffi.Pointer arg0, int arg1); - -@ffi.Native, ffi.Size)>() -external int write(int __fd, ffi.Pointer __buf, int __nbyte); - -@Deprecated('Deprecated') -@ffi.Native)>() -external double x80tod(ffi.Pointer x80); - -@ffi.Native( - symbol: 'xpc_activity_copy_criteria', -) -external xpc_object_t _xpc_activity_copy_criteria(xpc_activity_t activity); - -Dartxpc_object_t? xpc_activity_copy_criteria(Dartxpc_object_t activity) { - final _$$ref = activity.ref; - return _xpc_activity_copy_criteria(_$$ref.pointer).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_activity_copy_criteria(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_activity_get_state', -) -external int _xpc_activity_get_state(xpc_activity_t activity); - -Dartxpc_activity_state_t xpc_activity_get_state(Dartxpc_object_t activity) { - final _$$ref = activity.ref; - return _xpc_activity_get_state(_$$ref.pointer); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, xpc_object_t, xpc_activity_handler_t) ->(symbol: 'xpc_activity_register') -external void _xpc_activity_register( - ffi.Pointer identifier, - xpc_object_t criteria, - xpc_activity_handler_t handler, -); - -void xpc_activity_register( - ffi.Pointer identifier, - Dartxpc_object_t criteria, - Dartxpc_activity_handler_t handler, -) { - final _$$ref = criteria.ref; - final _$$ref$1 = handler.ref; - return _xpc_activity_register(identifier, _$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_activity_set_criteria', -) -external void _xpc_activity_set_criteria( - xpc_activity_t activity, - xpc_object_t criteria, -); - -void xpc_activity_set_criteria( - Dartxpc_object_t activity, - Dartxpc_object_t criteria, -) { - final _$$ref = activity.ref; - final _$$ref$1 = criteria.ref; - return _xpc_activity_set_criteria(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_activity_set_state', -) -external bool _xpc_activity_set_state(xpc_activity_t activity, int state); - -bool xpc_activity_set_state( - Dartxpc_object_t activity, - Dartxpc_activity_state_t state, -) { - final _$$ref = activity.ref; - return _xpc_activity_set_state(_$$ref.pointer, state); -} - -@ffi.Native( - symbol: 'xpc_activity_should_defer', -) -external bool _xpc_activity_should_defer(xpc_activity_t activity); - -bool xpc_activity_should_defer(Dartxpc_object_t activity) { - final _$$ref = activity.ref; - return _xpc_activity_should_defer(_$$ref.pointer); -} - -@ffi.Native)>() -external void xpc_activity_unregister(ffi.Pointer identifier); - -@ffi.Native( - symbol: 'xpc_array_append_value', -) -external void _xpc_array_append_value(xpc_object_t xarray, xpc_object_t value); - -void xpc_array_append_value(Dartxpc_object_t xarray, Dartxpc_object_t value) { - final _$$ref = xarray.ref; - final _$$ref$1 = value.ref; - return _xpc_array_append_value(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_array_apply', -) -external bool _xpc_array_apply( - xpc_object_t xarray, - xpc_array_applier_t applier, -); - -bool xpc_array_apply(Dartxpc_object_t xarray, Dartxpc_array_applier_t applier) { - final _$$ref = xarray.ref; - final _$$ref$1 = applier.ref; - return _xpc_array_apply(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native, ffi.Size)>( - symbol: 'xpc_array_create', -) -external xpc_object_t _xpc_array_create( - ffi.Pointer objects, - int count, -); - -Dartxpc_object_t xpc_array_create( - ffi.Pointer objects, - int count, -) { - return objc.NSObject.fromPointer( - _xpc_array_create(objects, count), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_array_create_connection', -) -external xpc_connection_t _xpc_array_create_connection( - xpc_object_t xarray, - int index$1, -); - -Dartxpc_object_t? xpc_array_create_connection( - Dartxpc_object_t xarray, - int index$1, -) { - final _$$ref = xarray.ref; - return _xpc_array_create_connection(_$$ref.pointer, index$1).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_array_create_connection(_$$ref.pointer, index$1), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_array_create_empty') -external xpc_object_t _xpc_array_create_empty(); - -Dartxpc_object_t xpc_array_create_empty() { - return objc.NSObject.fromPointer( - _xpc_array_create_empty(), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_array_dup_fd', -) -external int _xpc_array_dup_fd(xpc_object_t xarray, int index$1); - -int xpc_array_dup_fd(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_dup_fd(_$$ref.pointer, index$1); -} - -@ffi.Native( - symbol: 'xpc_array_get_array', -) -external xpc_object_t _xpc_array_get_array(xpc_object_t xarray, int index$1); - -Dartxpc_object_t? xpc_array_get_array(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_array(_$$ref.pointer, index$1).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_array_get_array(_$$ref.pointer, index$1), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_array_get_bool', -) -external bool _xpc_array_get_bool(xpc_object_t xarray, int index$1); - -bool xpc_array_get_bool(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_bool(_$$ref.pointer, index$1); -} - -@ffi.Native(symbol: 'xpc_array_get_count') -external int _xpc_array_get_count(xpc_object_t xarray); - -int xpc_array_get_count(Dartxpc_object_t xarray) { - final _$$ref = xarray.ref; - return _xpc_array_get_count(_$$ref.pointer); -} - -@ffi.Native< - ffi.Pointer Function(xpc_object_t, ffi.Size, ffi.Pointer) ->(symbol: 'xpc_array_get_data') -external ffi.Pointer _xpc_array_get_data( - xpc_object_t xarray, - int index$1, - ffi.Pointer length, -); - -ffi.Pointer xpc_array_get_data( - Dartxpc_object_t xarray, - int index$1, - ffi.Pointer length, -) { - final _$$ref = xarray.ref; - return _xpc_array_get_data(_$$ref.pointer, index$1, length); -} - -@ffi.Native( - symbol: 'xpc_array_get_date', -) -external int _xpc_array_get_date(xpc_object_t xarray, int index$1); - -int xpc_array_get_date(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_date(_$$ref.pointer, index$1); -} - -@ffi.Native( - symbol: 'xpc_array_get_dictionary', -) -external xpc_object_t _xpc_array_get_dictionary( - xpc_object_t xarray, - int index$1, -); - -Dartxpc_object_t? xpc_array_get_dictionary( - Dartxpc_object_t xarray, - int index$1, -) { - final _$$ref = xarray.ref; - return _xpc_array_get_dictionary(_$$ref.pointer, index$1).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_array_get_dictionary(_$$ref.pointer, index$1), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_array_get_double', -) -external double _xpc_array_get_double(xpc_object_t xarray, int index$1); - -double xpc_array_get_double(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_double(_$$ref.pointer, index$1); -} - -@ffi.Native( - symbol: 'xpc_array_get_int64', -) -external int _xpc_array_get_int64(xpc_object_t xarray, int index$1); - -int xpc_array_get_int64(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_int64(_$$ref.pointer, index$1); -} - -@ffi.Native Function(xpc_object_t, ffi.Size)>( - symbol: 'xpc_array_get_string', -) -external ffi.Pointer _xpc_array_get_string( - xpc_object_t xarray, - int index$1, -); - -ffi.Pointer xpc_array_get_string( - Dartxpc_object_t xarray, - int index$1, -) { - final _$$ref = xarray.ref; - return _xpc_array_get_string(_$$ref.pointer, index$1); -} - -@ffi.Native( - symbol: 'xpc_array_get_uint64', -) -external int _xpc_array_get_uint64(xpc_object_t xarray, int index$1); - -int xpc_array_get_uint64(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return _xpc_array_get_uint64(_$$ref.pointer, index$1); -} - -@ffi.Native Function(xpc_object_t, ffi.Size)>( - symbol: 'xpc_array_get_uuid', -) -external ffi.Pointer _xpc_array_get_uuid( - xpc_object_t xarray, - int index$1, -); - -ffi.Pointer xpc_array_get_uuid( - Dartxpc_object_t xarray, - int index$1, -) { - final _$$ref = xarray.ref; - return _xpc_array_get_uuid(_$$ref.pointer, index$1); -} - -@ffi.Native( - symbol: 'xpc_array_get_value', -) -external xpc_object_t _xpc_array_get_value(xpc_object_t xarray, int index$1); - -Dartxpc_object_t xpc_array_get_value(Dartxpc_object_t xarray, int index$1) { - final _$$ref = xarray.ref; - return objc.NSObject.fromPointer( - _xpc_array_get_value(_$$ref.pointer, index$1), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_array_set_bool', -) -external void _xpc_array_set_bool(xpc_object_t xarray, int index$1, bool value); - -void xpc_array_set_bool(Dartxpc_object_t xarray, int index$1, bool value) { - final _$$ref = xarray.ref; - return _xpc_array_set_bool(_$$ref.pointer, index$1, value); -} - -@ffi.Native( - symbol: 'xpc_array_set_connection', -) -external void _xpc_array_set_connection( - xpc_object_t xarray, - int index$1, - xpc_connection_t connection, -); - -void xpc_array_set_connection( - Dartxpc_object_t xarray, - int index$1, - Dartxpc_object_t connection, -) { - final _$$ref = xarray.ref; - final _$$ref$1 = connection.ref; - return _xpc_array_set_connection(_$$ref.pointer, index$1, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Size, ffi.Pointer, ffi.Size) ->(symbol: 'xpc_array_set_data') -external void _xpc_array_set_data( - xpc_object_t xarray, - int index$1, - ffi.Pointer bytes, - int length, -); - -void xpc_array_set_data( - Dartxpc_object_t xarray, - int index$1, - ffi.Pointer bytes, - int length, -) { - final _$$ref = xarray.ref; - return _xpc_array_set_data(_$$ref.pointer, index$1, bytes, length); -} - -@ffi.Native( - symbol: 'xpc_array_set_date', -) -external void _xpc_array_set_date(xpc_object_t xarray, int index$1, int value); - -void xpc_array_set_date(Dartxpc_object_t xarray, int index$1, int value) { - final _$$ref = xarray.ref; - return _xpc_array_set_date(_$$ref.pointer, index$1, value); -} - -@ffi.Native( - symbol: 'xpc_array_set_double', -) -external void _xpc_array_set_double( - xpc_object_t xarray, - int index$1, - double value, -); - -void xpc_array_set_double(Dartxpc_object_t xarray, int index$1, double value) { - final _$$ref = xarray.ref; - return _xpc_array_set_double(_$$ref.pointer, index$1, value); -} - -@ffi.Native( - symbol: 'xpc_array_set_fd', -) -external void _xpc_array_set_fd(xpc_object_t xarray, int index$1, int fd); - -void xpc_array_set_fd(Dartxpc_object_t xarray, int index$1, int fd) { - final _$$ref = xarray.ref; - return _xpc_array_set_fd(_$$ref.pointer, index$1, fd); -} - -@ffi.Native( - symbol: 'xpc_array_set_int64', -) -external void _xpc_array_set_int64(xpc_object_t xarray, int index$1, int value); - -void xpc_array_set_int64(Dartxpc_object_t xarray, int index$1, int value) { - final _$$ref = xarray.ref; - return _xpc_array_set_int64(_$$ref.pointer, index$1, value); -} - -@ffi.Native)>( - symbol: 'xpc_array_set_string', -) -external void _xpc_array_set_string( - xpc_object_t xarray, - int index$1, - ffi.Pointer string, -); - -void xpc_array_set_string( - Dartxpc_object_t xarray, - int index$1, - ffi.Pointer string, -) { - final _$$ref = xarray.ref; - return _xpc_array_set_string(_$$ref.pointer, index$1, string); -} - -@ffi.Native( - symbol: 'xpc_array_set_uint64', -) -external void _xpc_array_set_uint64( - xpc_object_t xarray, - int index$1, - int value, -); - -void xpc_array_set_uint64(Dartxpc_object_t xarray, int index$1, int value) { - final _$$ref = xarray.ref; - return _xpc_array_set_uint64(_$$ref.pointer, index$1, value); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Size, ffi.Pointer) ->(symbol: 'xpc_array_set_uuid') -external void _xpc_array_set_uuid( - xpc_object_t xarray, - int index$1, - ffi.Pointer uuid, -); - -void xpc_array_set_uuid( - Dartxpc_object_t xarray, - int index$1, - ffi.Pointer uuid, -) { - final _$$ref = xarray.ref; - return _xpc_array_set_uuid(_$$ref.pointer, index$1, uuid); -} - -@ffi.Native( - symbol: 'xpc_array_set_value', -) -external void _xpc_array_set_value( - xpc_object_t xarray, - int index$1, - xpc_object_t value, -); - -void xpc_array_set_value( - Dartxpc_object_t xarray, - int index$1, - Dartxpc_object_t value, -) { - final _$$ref = xarray.ref; - final _$$ref$1 = value.ref; - return _xpc_array_set_value(_$$ref.pointer, index$1, _$$ref$1.pointer); -} - -@ffi.Native(symbol: 'xpc_bool_create') -external xpc_object_t _xpc_bool_create(bool value); - -Dartxpc_object_t xpc_bool_create(bool value) { - return objc.NSObject.fromPointer( - _xpc_bool_create(value), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_bool_get_value') -external bool _xpc_bool_get_value(xpc_object_t xbool); - -bool xpc_bool_get_value(Dartxpc_object_t xbool) { - final _$$ref = xbool.ref; - return _xpc_bool_get_value(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_activate', -) -external void _xpc_connection_activate(xpc_connection_t connection); - -void xpc_connection_activate(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_activate(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_cancel', -) -external void _xpc_connection_cancel(xpc_connection_t connection); - -void xpc_connection_cancel(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_cancel(_$$ref.pointer); -} - -@ffi.Native Function(xpc_connection_t)>( - symbol: 'xpc_connection_copy_invalidation_reason', -) -external ffi.Pointer _xpc_connection_copy_invalidation_reason( - xpc_connection_t connection, -); - -ffi.Pointer xpc_connection_copy_invalidation_reason( - Dartxpc_object_t connection, -) { - final _$$ref = connection.ref; - return _xpc_connection_copy_invalidation_reason(_$$ref.pointer); -} - -@ffi.Native, dispatch_queue_t)>( - symbol: 'xpc_connection_create', -) -external xpc_connection_t _xpc_connection_create( - ffi.Pointer name, - dispatch_queue_t targetq, -); - -Dartxpc_object_t xpc_connection_create( - ffi.Pointer name, - Dartdispatch_queue_t? targetq, -) { - final _$$ref = targetq?.ref; - return objc.NSObject.fromPointer( - _xpc_connection_create(name, _$$ref?.pointer ?? ffi.nullptr), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_create_from_endpoint', -) -external xpc_connection_t _xpc_connection_create_from_endpoint( - xpc_endpoint_t endpoint, -); - -Dartxpc_object_t xpc_connection_create_from_endpoint( - Dartxpc_object_t endpoint, -) { - final _$$ref = endpoint.ref; - return objc.NSObject.fromPointer( - _xpc_connection_create_from_endpoint(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_connection_t Function(ffi.Pointer, dispatch_queue_t, ffi.Uint64) ->(symbol: 'xpc_connection_create_mach_service') -external xpc_connection_t _xpc_connection_create_mach_service( - ffi.Pointer name, - dispatch_queue_t targetq, - int flags, -); - -Dartxpc_object_t xpc_connection_create_mach_service( - ffi.Pointer name, - Dartdispatch_queue_t? targetq, - int flags, -) { - final _$$ref = targetq?.ref; - return objc.NSObject.fromPointer( - _xpc_connection_create_mach_service( - name, - _$$ref?.pointer ?? ffi.nullptr, - flags, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_get_asid', -) -external int _xpc_connection_get_asid(xpc_connection_t connection); - -Dart__int32_t xpc_connection_get_asid(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_asid(_$$ref.pointer); -} - -@ffi.Native Function(xpc_connection_t)>( - symbol: 'xpc_connection_get_context', -) -external ffi.Pointer _xpc_connection_get_context( - xpc_connection_t connection, -); - -ffi.Pointer xpc_connection_get_context(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_context(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_connection_get_egid') -external int _xpc_connection_get_egid(xpc_connection_t connection); - -Dart__uint32_t xpc_connection_get_egid(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_egid(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_connection_get_euid') -external int _xpc_connection_get_euid(xpc_connection_t connection); - -Dart__uint32_t xpc_connection_get_euid(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_euid(_$$ref.pointer); -} - -@ffi.Native Function(xpc_connection_t)>( - symbol: 'xpc_connection_get_name', -) -external ffi.Pointer _xpc_connection_get_name( - xpc_connection_t connection, -); - -ffi.Pointer xpc_connection_get_name(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_name(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_connection_get_pid') -external int _xpc_connection_get_pid(xpc_connection_t connection); - -Dart__int32_t xpc_connection_get_pid(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_get_pid(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_resume', -) -external void _xpc_connection_resume(xpc_connection_t connection); - -void xpc_connection_resume(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_resume(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_send_barrier', -) -external void _xpc_connection_send_barrier( - xpc_connection_t connection, - dispatch_block_t barrier, -); - -void xpc_connection_send_barrier( - Dartxpc_object_t connection, - Dartdispatch_block_t barrier, -) { - final _$$ref = connection.ref; - final _$$ref$1 = barrier.ref; - return _xpc_connection_send_barrier(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_send_message', -) -external void _xpc_connection_send_message( - xpc_connection_t connection, - xpc_object_t message, -); - -void xpc_connection_send_message( - Dartxpc_object_t connection, - Dartxpc_object_t message, -) { - final _$$ref = connection.ref; - final _$$ref$1 = message.ref; - return _xpc_connection_send_message(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - xpc_connection_t, - xpc_object_t, - dispatch_queue_t, - xpc_handler_t, - ) ->(symbol: 'xpc_connection_send_message_with_reply') -external void _xpc_connection_send_message_with_reply( - xpc_connection_t connection, - xpc_object_t message, - dispatch_queue_t replyq, - xpc_handler_t handler, -); - -void xpc_connection_send_message_with_reply( - Dartxpc_object_t connection, - Dartxpc_object_t message, - Dartdispatch_queue_t? replyq, - Dartxpc_handler_t handler, -) { - final _$$ref = connection.ref; - final _$$ref$1 = message.ref; - final _$$ref$2 = replyq?.ref; - final _$$ref$3 = handler.ref; - return _xpc_connection_send_message_with_reply( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3.pointer, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_send_message_with_reply_sync', -) -external xpc_object_t _xpc_connection_send_message_with_reply_sync( - xpc_connection_t connection, - xpc_object_t message, -); - -Dartxpc_object_t xpc_connection_send_message_with_reply_sync( - Dartxpc_object_t connection, - Dartxpc_object_t message, -) { - final _$$ref = connection.ref; - final _$$ref$1 = message.ref; - return objc.NSObject.fromPointer( - _xpc_connection_send_message_with_reply_sync( - _$$ref.pointer, - _$$ref$1.pointer, - ), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_connection_set_context', -) -external void _xpc_connection_set_context( - xpc_connection_t connection, - ffi.Pointer context, -); - -void xpc_connection_set_context( - Dartxpc_object_t connection, - ffi.Pointer context, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_context(_$$ref.pointer, context); -} - -@ffi.Native( - symbol: 'xpc_connection_set_event_handler', -) -external void _xpc_connection_set_event_handler( - xpc_connection_t connection, - xpc_handler_t handler, -); - -void xpc_connection_set_event_handler( - Dartxpc_object_t connection, - Dartxpc_handler_t handler, -) { - final _$$ref = connection.ref; - final _$$ref$1 = handler.ref; - return _xpc_connection_set_event_handler(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_connection_set_finalizer_f', -) -external void _xpc_connection_set_finalizer_f( - xpc_connection_t connection, - xpc_finalizer_t finalizer, -); - -void xpc_connection_set_finalizer_f( - Dartxpc_object_t connection, - xpc_finalizer_t finalizer, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_finalizer_f(_$$ref.pointer, finalizer); -} - -@ffi.Native)>( - symbol: 'xpc_connection_set_peer_code_signing_requirement', -) -external int _xpc_connection_set_peer_code_signing_requirement( - xpc_connection_t connection, - ffi.Pointer requirement, -); - -int xpc_connection_set_peer_code_signing_requirement( - Dartxpc_object_t connection, - ffi.Pointer requirement, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_peer_code_signing_requirement( - _$$ref.pointer, - requirement, - ); -} - -@ffi.Native)>( - symbol: 'xpc_connection_set_peer_entitlement_exists_requirement', -) -external int _xpc_connection_set_peer_entitlement_exists_requirement( - xpc_connection_t connection, - ffi.Pointer entitlement, -); - -int xpc_connection_set_peer_entitlement_exists_requirement( - Dartxpc_object_t connection, - ffi.Pointer entitlement, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_peer_entitlement_exists_requirement( - _$$ref.pointer, - entitlement, - ); -} - -@ffi.Native< - ffi.Int Function(xpc_connection_t, ffi.Pointer, xpc_object_t) ->(symbol: 'xpc_connection_set_peer_entitlement_matches_value_requirement') -external int _xpc_connection_set_peer_entitlement_matches_value_requirement( - xpc_connection_t connection, - ffi.Pointer entitlement, - xpc_object_t value, -); - -int xpc_connection_set_peer_entitlement_matches_value_requirement( - Dartxpc_object_t connection, - ffi.Pointer entitlement, - Dartxpc_object_t value, -) { - final _$$ref = connection.ref; - final _$$ref$1 = value.ref; - return _xpc_connection_set_peer_entitlement_matches_value_requirement( - _$$ref.pointer, - entitlement, - _$$ref$1.pointer, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_set_peer_lightweight_code_requirement', -) -external int _xpc_connection_set_peer_lightweight_code_requirement( - xpc_connection_t connection, - xpc_object_t lwcr, -); - -int xpc_connection_set_peer_lightweight_code_requirement( - Dartxpc_object_t connection, - Dartxpc_object_t lwcr, -) { - final _$$ref = connection.ref; - final _$$ref$1 = lwcr.ref; - return _xpc_connection_set_peer_lightweight_code_requirement( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native)>( - symbol: 'xpc_connection_set_peer_platform_identity_requirement', -) -external int _xpc_connection_set_peer_platform_identity_requirement( - xpc_connection_t connection, - ffi.Pointer signing_identifier, -); - -int xpc_connection_set_peer_platform_identity_requirement( - Dartxpc_object_t connection, - ffi.Pointer signing_identifier, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_peer_platform_identity_requirement( - _$$ref.pointer, - signing_identifier, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_set_peer_requirement', -) -external void _xpc_connection_set_peer_requirement( - xpc_connection_t connection, - xpc_peer_requirement_t peer_requirement, -); - -void xpc_connection_set_peer_requirement( - Dartxpc_object_t connection, - Dartxpc_peer_requirement_t peer_requirement, -) { - final _$$ref = connection.ref; - final _$$ref$1 = peer_requirement.ref; - return _xpc_connection_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native)>( - symbol: 'xpc_connection_set_peer_team_identity_requirement', -) -external int _xpc_connection_set_peer_team_identity_requirement( - xpc_connection_t connection, - ffi.Pointer signing_identifier, -); - -int xpc_connection_set_peer_team_identity_requirement( - Dartxpc_object_t connection, - ffi.Pointer signing_identifier, -) { - final _$$ref = connection.ref; - return _xpc_connection_set_peer_team_identity_requirement( - _$$ref.pointer, - signing_identifier, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_set_target_queue', -) -external void _xpc_connection_set_target_queue( - xpc_connection_t connection, - dispatch_queue_t targetq, -); - -void xpc_connection_set_target_queue( - Dartxpc_object_t connection, - Dartdispatch_queue_t? targetq, -) { - final _$$ref = connection.ref; - final _$$ref$1 = targetq?.ref; - return _xpc_connection_set_target_queue( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native( - symbol: 'xpc_connection_suspend', -) -external void _xpc_connection_suspend(xpc_connection_t connection); - -void xpc_connection_suspend(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return _xpc_connection_suspend(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_copy') -external xpc_object_t _xpc_copy(xpc_object_t object); - -Dartxpc_object_t? xpc_copy(Dartxpc_object_t object) { - final _$$ref = object.ref; - return _xpc_copy(_$$ref.pointer).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_copy(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native Function(xpc_object_t)>( - symbol: 'xpc_copy_description', -) -external ffi.Pointer _xpc_copy_description(xpc_object_t object); - -ffi.Pointer xpc_copy_description(Dartxpc_object_t object) { - final _$$ref = object.ref; - return _xpc_copy_description(_$$ref.pointer); -} - -@ffi.Native, ffi.Size)>( - symbol: 'xpc_data_create', -) -external xpc_object_t _xpc_data_create(ffi.Pointer bytes, int length); - -Dartxpc_object_t xpc_data_create(ffi.Pointer bytes, int length) { - return objc.NSObject.fromPointer( - _xpc_data_create(bytes, length), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_data_create_with_dispatch_data', -) -external xpc_object_t _xpc_data_create_with_dispatch_data( - dispatch_data_t ddata, -); - -Dartxpc_object_t xpc_data_create_with_dispatch_data(Dartdispatch_data_t ddata) { - final _$$ref = ddata.ref; - return objc.NSObject.fromPointer( - _xpc_data_create_with_dispatch_data(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Size Function(xpc_object_t, ffi.Pointer, ffi.Size, ffi.Size) ->(symbol: 'xpc_data_get_bytes') -external int _xpc_data_get_bytes( - xpc_object_t xdata, - ffi.Pointer buffer, - int off, - int length, -); - -int xpc_data_get_bytes( - Dartxpc_object_t xdata, - ffi.Pointer buffer, - int off, - int length, -) { - final _$$ref = xdata.ref; - return _xpc_data_get_bytes(_$$ref.pointer, buffer, off, length); -} - -@ffi.Native Function(xpc_object_t)>( - symbol: 'xpc_data_get_bytes_ptr', -) -external ffi.Pointer _xpc_data_get_bytes_ptr(xpc_object_t xdata); - -ffi.Pointer xpc_data_get_bytes_ptr(Dartxpc_object_t xdata) { - final _$$ref = xdata.ref; - return _xpc_data_get_bytes_ptr(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_data_get_length') -external int _xpc_data_get_length(xpc_object_t xdata); - -int xpc_data_get_length(Dartxpc_object_t xdata) { - final _$$ref = xdata.ref; - return _xpc_data_get_length(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_date_create') -external xpc_object_t _xpc_date_create(int interval); - -Dartxpc_object_t xpc_date_create(int interval) { - return objc.NSObject.fromPointer( - _xpc_date_create(interval), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_date_create_from_current') -external xpc_object_t _xpc_date_create_from_current(); - -Dartxpc_object_t xpc_date_create_from_current() { - return objc.NSObject.fromPointer( - _xpc_date_create_from_current(), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_date_get_value') -external int _xpc_date_get_value(xpc_object_t xdate); - -int xpc_date_get_value(Dartxpc_object_t xdate) { - final _$$ref = xdate.ref; - return _xpc_date_get_value(_$$ref.pointer); -} - -@ffi.Native Function()>() -external ffi.Pointer xpc_debugger_api_misuse_info(); - -@ffi.Native( - symbol: 'xpc_dictionary_apply', -) -external bool _xpc_dictionary_apply( - xpc_object_t xdict, - xpc_dictionary_applier_t applier, -); - -bool xpc_dictionary_apply( - Dartxpc_object_t xdict, - Dartxpc_dictionary_applier_t applier, -) { - final _$$ref = xdict.ref; - final _$$ref$1 = applier.ref; - return _xpc_dictionary_apply(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_copy_mach_send', -) -external int _xpc_dictionary_copy_mach_send( - xpc_object_t xdict, - ffi.Pointer key, -); - -Dart__darwin_natural_t xpc_dictionary_copy_mach_send( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_copy_mach_send(_$$ref.pointer, key); -} - -@ffi.Native< - xpc_object_t Function( - ffi.Pointer>, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'xpc_dictionary_create') -external xpc_object_t _xpc_dictionary_create( - ffi.Pointer> keys, - ffi.Pointer values, - int count, -); - -Dartxpc_object_t xpc_dictionary_create( - ffi.Pointer> keys, - ffi.Pointer values, - int count, -) { - return objc.NSObject.fromPointer( - _xpc_dictionary_create(keys, values, count), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_create_connection', -) -external xpc_connection_t _xpc_dictionary_create_connection( - xpc_object_t xdict, - ffi.Pointer key, -); - -Dartxpc_object_t? xpc_dictionary_create_connection( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_create_connection(_$$ref.pointer, key).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_create_connection(_$$ref.pointer, key), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_dictionary_create_empty') -external xpc_object_t _xpc_dictionary_create_empty(); - -Dartxpc_object_t xpc_dictionary_create_empty() { - return objc.NSObject.fromPointer( - _xpc_dictionary_create_empty(), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_dictionary_create_reply', -) -external xpc_object_t _xpc_dictionary_create_reply(xpc_object_t original); - -Dartxpc_object_t? xpc_dictionary_create_reply(Dartxpc_object_t original) { - final _$$ref = original.ref; - return _xpc_dictionary_create_reply(_$$ref.pointer).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_create_reply(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_dup_fd', -) -external int _xpc_dictionary_dup_fd( - xpc_object_t xdict, - ffi.Pointer key, -); - -int xpc_dictionary_dup_fd(Dartxpc_object_t xdict, ffi.Pointer key) { - final _$$ref = xdict.ref; - return _xpc_dictionary_dup_fd(_$$ref.pointer, key); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_array', -) -external xpc_object_t _xpc_dictionary_get_array( - xpc_object_t xdict, - ffi.Pointer key, -); - -Dartxpc_object_t? xpc_dictionary_get_array( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_array(_$$ref.pointer, key).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_get_array(_$$ref.pointer, key), - retain: true, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_bool', -) -external bool _xpc_dictionary_get_bool( - xpc_object_t xdict, - ffi.Pointer key, -); - -bool xpc_dictionary_get_bool( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_bool(_$$ref.pointer, key); -} - -@ffi.Native(symbol: 'xpc_dictionary_get_count') -external int _xpc_dictionary_get_count(xpc_object_t xdict); - -int xpc_dictionary_get_count(Dartxpc_object_t xdict) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_count(_$$ref.pointer); -} - -@ffi.Native< - ffi.Pointer Function( - xpc_object_t, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'xpc_dictionary_get_data') -external ffi.Pointer _xpc_dictionary_get_data( - xpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer length, -); - -ffi.Pointer xpc_dictionary_get_data( - Dartxpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer length, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_data(_$$ref.pointer, key, length); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_date', -) -external int _xpc_dictionary_get_date( - xpc_object_t xdict, - ffi.Pointer key, -); - -int xpc_dictionary_get_date(Dartxpc_object_t xdict, ffi.Pointer key) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_date(_$$ref.pointer, key); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_dictionary', -) -external xpc_object_t _xpc_dictionary_get_dictionary( - xpc_object_t xdict, - ffi.Pointer key, -); - -Dartxpc_object_t? xpc_dictionary_get_dictionary( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_dictionary(_$$ref.pointer, key).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_get_dictionary(_$$ref.pointer, key), - retain: true, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_double', -) -external double _xpc_dictionary_get_double( - xpc_object_t xdict, - ffi.Pointer key, -); - -double xpc_dictionary_get_double( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_double(_$$ref.pointer, key); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_int64', -) -external int _xpc_dictionary_get_int64( - xpc_object_t xdict, - ffi.Pointer key, -); - -int xpc_dictionary_get_int64( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_int64(_$$ref.pointer, key); -} - -@ffi.Native( - symbol: 'xpc_dictionary_get_remote_connection', -) -external xpc_connection_t _xpc_dictionary_get_remote_connection( - xpc_object_t xdict, -); - -Dartxpc_object_t? xpc_dictionary_get_remote_connection(Dartxpc_object_t xdict) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_remote_connection(_$$ref.pointer).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_get_remote_connection(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native< - ffi.Pointer Function(xpc_object_t, ffi.Pointer) ->(symbol: 'xpc_dictionary_get_string') -external ffi.Pointer _xpc_dictionary_get_string( - xpc_object_t xdict, - ffi.Pointer key, -); - -ffi.Pointer xpc_dictionary_get_string( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_string(_$$ref.pointer, key); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_uint64', -) -external int _xpc_dictionary_get_uint64( - xpc_object_t xdict, - ffi.Pointer key, -); - -int xpc_dictionary_get_uint64( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_uint64(_$$ref.pointer, key); -} - -@ffi.Native< - ffi.Pointer Function(xpc_object_t, ffi.Pointer) ->(symbol: 'xpc_dictionary_get_uuid') -external ffi.Pointer _xpc_dictionary_get_uuid( - xpc_object_t xdict, - ffi.Pointer key, -); - -ffi.Pointer xpc_dictionary_get_uuid( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_uuid(_$$ref.pointer, key); -} - -@ffi.Native)>( - symbol: 'xpc_dictionary_get_value', -) -external xpc_object_t _xpc_dictionary_get_value( - xpc_object_t xdict, - ffi.Pointer key, -); - -Dartxpc_object_t? xpc_dictionary_get_value( - Dartxpc_object_t xdict, - ffi.Pointer key, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_get_value(_$$ref.pointer, key).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_dictionary_get_value(_$$ref.pointer, key), - retain: true, - release: true, - ); -} - -@ffi.Native, ffi.Bool)>( - symbol: 'xpc_dictionary_set_bool', -) -external void _xpc_dictionary_set_bool( - xpc_object_t xdict, - ffi.Pointer key, - bool value, -); - -void xpc_dictionary_set_bool( - Dartxpc_object_t xdict, - ffi.Pointer key, - bool value, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_bool(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Pointer, xpc_connection_t) ->(symbol: 'xpc_dictionary_set_connection') -external void _xpc_dictionary_set_connection( - xpc_object_t xdict, - ffi.Pointer key, - xpc_connection_t connection, -); - -void xpc_dictionary_set_connection( - Dartxpc_object_t xdict, - ffi.Pointer key, - Dartxpc_object_t connection, -) { - final _$$ref = xdict.ref; - final _$$ref$1 = connection.ref; - return _xpc_dictionary_set_connection(_$$ref.pointer, key, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function( - xpc_object_t, - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ) ->(symbol: 'xpc_dictionary_set_data') -external void _xpc_dictionary_set_data( - xpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer bytes, - int length, -); - -void xpc_dictionary_set_data( - Dartxpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer bytes, - int length, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_data(_$$ref.pointer, key, bytes, length); -} - -@ffi.Native, ffi.Int64)>( - symbol: 'xpc_dictionary_set_date', -) -external void _xpc_dictionary_set_date( - xpc_object_t xdict, - ffi.Pointer key, - int value, -); - -void xpc_dictionary_set_date( - Dartxpc_object_t xdict, - ffi.Pointer key, - int value, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_date(_$$ref.pointer, key, value); -} - -@ffi.Native, ffi.Double)>( - symbol: 'xpc_dictionary_set_double', -) -external void _xpc_dictionary_set_double( - xpc_object_t xdict, - ffi.Pointer key, - double value, -); - -void xpc_dictionary_set_double( - Dartxpc_object_t xdict, - ffi.Pointer key, - double value, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_double(_$$ref.pointer, key, value); -} - -@ffi.Native, ffi.Int)>( - symbol: 'xpc_dictionary_set_fd', -) -external void _xpc_dictionary_set_fd( - xpc_object_t xdict, - ffi.Pointer key, - int fd, -); - -void xpc_dictionary_set_fd( - Dartxpc_object_t xdict, - ffi.Pointer key, - int fd, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_fd(_$$ref.pointer, key, fd); -} - -@ffi.Native, ffi.Int64)>( - symbol: 'xpc_dictionary_set_int64', -) -external void _xpc_dictionary_set_int64( - xpc_object_t xdict, - ffi.Pointer key, - int value, -); - -void xpc_dictionary_set_int64( - Dartxpc_object_t xdict, - ffi.Pointer key, - int value, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_int64(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Pointer, mach_port_t) ->(symbol: 'xpc_dictionary_set_mach_send') -external void _xpc_dictionary_set_mach_send( - xpc_object_t xdict, - ffi.Pointer key, - int p, -); - -void xpc_dictionary_set_mach_send( - Dartxpc_object_t xdict, - ffi.Pointer key, - Dart__darwin_natural_t p, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_mach_send(_$$ref.pointer, key, p); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Pointer, ffi.Pointer) ->(symbol: 'xpc_dictionary_set_string') -external void _xpc_dictionary_set_string( - xpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer string, -); - -void xpc_dictionary_set_string( - Dartxpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer string, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_string(_$$ref.pointer, key, string); -} - -@ffi.Native, ffi.Uint64)>( - symbol: 'xpc_dictionary_set_uint64', -) -external void _xpc_dictionary_set_uint64( - xpc_object_t xdict, - ffi.Pointer key, - int value, -); - -void xpc_dictionary_set_uint64( - Dartxpc_object_t xdict, - ffi.Pointer key, - int value, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_uint64(_$$ref.pointer, key, value); -} - -@ffi.Native< - ffi.Void Function( - xpc_object_t, - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'xpc_dictionary_set_uuid') -external void _xpc_dictionary_set_uuid( - xpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer uuid, -); - -void xpc_dictionary_set_uuid( - Dartxpc_object_t xdict, - ffi.Pointer key, - ffi.Pointer uuid, -) { - final _$$ref = xdict.ref; - return _xpc_dictionary_set_uuid(_$$ref.pointer, key, uuid); -} - -@ffi.Native< - ffi.Void Function(xpc_object_t, ffi.Pointer, xpc_object_t) ->(symbol: 'xpc_dictionary_set_value') -external void _xpc_dictionary_set_value( - xpc_object_t xdict, - ffi.Pointer key, - xpc_object_t value, -); - -void xpc_dictionary_set_value( - Dartxpc_object_t xdict, - ffi.Pointer key, - Dartxpc_object_t? value, -) { - final _$$ref = xdict.ref; - final _$$ref$1 = value?.ref; - return _xpc_dictionary_set_value( - _$$ref.pointer, - key, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native(symbol: 'xpc_double_create') -external xpc_object_t _xpc_double_create(double value); - -Dartxpc_object_t xpc_double_create(double value) { - return objc.NSObject.fromPointer( - _xpc_double_create(value), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_double_get_value') -external double _xpc_double_get_value(xpc_object_t xdouble); - -double xpc_double_get_value(Dartxpc_object_t xdouble) { - final _$$ref = xdouble.ref; - return _xpc_double_get_value(_$$ref.pointer); -} - -@ffi.Native( - symbol: 'xpc_endpoint_create', -) -external xpc_endpoint_t _xpc_endpoint_create(xpc_connection_t connection); - -Dartxpc_object_t xpc_endpoint_create(Dartxpc_object_t connection) { - final _$$ref = connection.ref; - return objc.NSObject.fromPointer( - _xpc_endpoint_create(_$$ref.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_equal') -external bool _xpc_equal(xpc_object_t object1, xpc_object_t object2); - -bool xpc_equal(Dartxpc_object_t object1, Dartxpc_object_t object2) { - final _$$ref = object1.ref; - final _$$ref$1 = object2.ref; - return _xpc_equal(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native(symbol: 'xpc_fd_create') -external xpc_object_t _xpc_fd_create(int fd); - -Dartxpc_object_t? xpc_fd_create(int fd) { - return _xpc_fd_create(fd).address == 0 - ? null - : objc.NSObject.fromPointer( - _xpc_fd_create(fd), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_fd_dup') -external int _xpc_fd_dup(xpc_object_t xfd); - -int xpc_fd_dup(Dartxpc_object_t xfd) { - final _$$ref = xfd.ref; - return _xpc_fd_dup(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_get_type') -external xpc_type_t _xpc_get_type(xpc_object_t object); - -xpc_type_t xpc_get_type(Dartxpc_object_t object) { - final _$$ref = object.ref; - return _xpc_get_type(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_hash') -external int _xpc_hash(xpc_object_t object); - -int xpc_hash(Dartxpc_object_t object) { - final _$$ref = object.ref; - return _xpc_hash(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_int64_create') -external xpc_object_t _xpc_int64_create(int value); - -Dartxpc_object_t xpc_int64_create(int value) { - return objc.NSObject.fromPointer( - _xpc_int64_create(value), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_int64_get_value') -external int _xpc_int64_get_value(xpc_object_t xint); - -int xpc_int64_get_value(Dartxpc_object_t xint) { - final _$$ref = xint.ref; - return _xpc_int64_get_value(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'xpc_listener_activate', -) -external bool _xpc_listener_activate( - xpc_listener_t listener, - ffi.Pointer error_out, -); - -bool xpc_listener_activate( - Dartxpc_listener_t listener, - ffi.Pointer error_out, -) { - final _$$ref = listener.ref; - return _xpc_listener_activate(_$$ref.pointer, error_out); -} - -@ffi.Native(symbol: 'xpc_listener_cancel') -external void _xpc_listener_cancel(xpc_listener_t listener); - -void xpc_listener_cancel(Dartxpc_listener_t listener) { - final _$$ref = listener.ref; - return _xpc_listener_cancel(_$$ref.pointer); -} - -@ffi.Native Function(xpc_listener_t)>( - symbol: 'xpc_listener_copy_description', -) -external ffi.Pointer _xpc_listener_copy_description( - xpc_listener_t listener, -); - -ffi.Pointer xpc_listener_copy_description( - Dartxpc_listener_t listener, -) { - final _$$ref = listener.ref; - return _xpc_listener_copy_description(_$$ref.pointer); -} - -@ffi.Native< - xpc_listener_t Function( - ffi.Pointer, - dispatch_queue_t, - ffi.Uint64, - xpc_listener_incoming_session_handler_t, - ffi.Pointer, - ) ->(symbol: 'xpc_listener_create') -external xpc_listener_t _xpc_listener_create( - ffi.Pointer service, - dispatch_queue_t target_queue, - int flags, - xpc_listener_incoming_session_handler_t incoming_session_handler, - ffi.Pointer error_out, -); - -Dartxpc_listener_t? xpc_listener_create( - ffi.Pointer service, - Dartdispatch_queue_t? target_queue, - int flags, - Dartxpc_listener_incoming_session_handler_t incoming_session_handler, - ffi.Pointer error_out, -) { - final _$$ref = target_queue?.ref; - final _$$ref$1 = incoming_session_handler.ref; - return _xpc_listener_create( - service, - _$$ref?.pointer ?? ffi.nullptr, - flags, - _$$ref$1.pointer, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_listener_create( - service, - _$$ref?.pointer ?? ffi.nullptr, - flags, - _$$ref$1.pointer, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_listener_reject_peer', -) -external void _xpc_listener_reject_peer( - xpc_session_t peer, - ffi.Pointer reason, -); - -void xpc_listener_reject_peer( - Dartxpc_session_t peer, - ffi.Pointer reason, -) { - final _$$ref = peer.ref; - return _xpc_listener_reject_peer(_$$ref.pointer, reason); -} - -@ffi.Native)>( - symbol: 'xpc_listener_set_peer_code_signing_requirement', -) -external int _xpc_listener_set_peer_code_signing_requirement( - xpc_listener_t listener, - ffi.Pointer requirement, -); - -int xpc_listener_set_peer_code_signing_requirement( - Dartxpc_listener_t listener, - ffi.Pointer requirement, -) { - final _$$ref = listener.ref; - return _xpc_listener_set_peer_code_signing_requirement( - _$$ref.pointer, - requirement, - ); -} - -@ffi.Native( - symbol: 'xpc_listener_set_peer_requirement', -) -external void _xpc_listener_set_peer_requirement( - xpc_listener_t listener, - xpc_peer_requirement_t requirement, -); - -void xpc_listener_set_peer_requirement( - Dartxpc_listener_t listener, - Dartxpc_peer_requirement_t requirement, -) { - final _$$ref = listener.ref; - final _$$ref$1 = requirement.ref; - return _xpc_listener_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native() -external void xpc_main(xpc_connection_handler_t handler); - -@ffi.Native(symbol: 'xpc_null_create') -external xpc_object_t _xpc_null_create(); - -Dartxpc_object_t xpc_null_create() { - return objc.NSObject.fromPointer( - _xpc_null_create(), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_peer_requirement_t Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'xpc_peer_requirement_create_entitlement_exists') -external xpc_peer_requirement_t _xpc_peer_requirement_create_entitlement_exists( - ffi.Pointer entitlement, - ffi.Pointer error_out, -); - -Dartxpc_peer_requirement_t? xpc_peer_requirement_create_entitlement_exists( - ffi.Pointer entitlement, - ffi.Pointer error_out, -) { - return _xpc_peer_requirement_create_entitlement_exists( - entitlement, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_peer_requirement_create_entitlement_exists( - entitlement, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_peer_requirement_t Function( - ffi.Pointer, - xpc_object_t, - ffi.Pointer, - ) ->(symbol: 'xpc_peer_requirement_create_entitlement_matches_value') -external xpc_peer_requirement_t -_xpc_peer_requirement_create_entitlement_matches_value( - ffi.Pointer entitlement, - xpc_object_t value, - ffi.Pointer error_out, -); - -Dartxpc_peer_requirement_t? -xpc_peer_requirement_create_entitlement_matches_value( - ffi.Pointer entitlement, - Dartxpc_object_t value, - ffi.Pointer error_out, -) { - final _$$ref = value.ref; - return _xpc_peer_requirement_create_entitlement_matches_value( - entitlement, - _$$ref.pointer, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_peer_requirement_create_entitlement_matches_value( - entitlement, - _$$ref.pointer, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_peer_requirement_t Function(xpc_object_t, ffi.Pointer) ->(symbol: 'xpc_peer_requirement_create_lwcr') -external xpc_peer_requirement_t _xpc_peer_requirement_create_lwcr( - xpc_object_t lwcr, - ffi.Pointer error_out, -); - -Dartxpc_peer_requirement_t? xpc_peer_requirement_create_lwcr( - Dartxpc_object_t lwcr, - ffi.Pointer error_out, -) { - final _$$ref = lwcr.ref; - return _xpc_peer_requirement_create_lwcr(_$$ref.pointer, error_out).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_peer_requirement_create_lwcr(_$$ref.pointer, error_out), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_peer_requirement_t Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'xpc_peer_requirement_create_platform_identity') -external xpc_peer_requirement_t _xpc_peer_requirement_create_platform_identity( - ffi.Pointer signing_identifier, - ffi.Pointer error_out, -); - -Dartxpc_peer_requirement_t? xpc_peer_requirement_create_platform_identity( - ffi.Pointer signing_identifier, - ffi.Pointer error_out, -) { - return _xpc_peer_requirement_create_platform_identity( - signing_identifier, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_peer_requirement_create_platform_identity( - signing_identifier, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_peer_requirement_t Function( - ffi.Pointer, - ffi.Pointer, - ) ->(symbol: 'xpc_peer_requirement_create_team_identity') -external xpc_peer_requirement_t _xpc_peer_requirement_create_team_identity( - ffi.Pointer signing_identifier, - ffi.Pointer error_out, -); - -Dartxpc_peer_requirement_t? xpc_peer_requirement_create_team_identity( - ffi.Pointer signing_identifier, - ffi.Pointer error_out, -) { - return _xpc_peer_requirement_create_team_identity( - signing_identifier, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_peer_requirement_create_team_identity( - signing_identifier, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Bool Function( - xpc_peer_requirement_t, - xpc_object_t, - ffi.Pointer, - ) ->(symbol: 'xpc_peer_requirement_match_received_message') -external bool _xpc_peer_requirement_match_received_message( - xpc_peer_requirement_t peer_requirement, - xpc_object_t message, - ffi.Pointer error_out, -); - -bool xpc_peer_requirement_match_received_message( - Dartxpc_peer_requirement_t peer_requirement, - Dartxpc_object_t message, - ffi.Pointer error_out, -) { - final _$$ref = peer_requirement.ref; - final _$$ref$1 = message.ref; - return _xpc_peer_requirement_match_received_message( - _$$ref.pointer, - _$$ref$1.pointer, - error_out, - ); -} - -@ffi.Native(symbol: 'xpc_release') -external void _xpc_release(xpc_object_t object); - -void xpc_release(Dartxpc_object_t object) { - final _$$ref = object.ref; - return _xpc_release(_$$ref.pointer); -} - -@ffi.Native(symbol: 'xpc_retain') -external xpc_object_t _xpc_retain(xpc_object_t object); - -Dartxpc_object_t xpc_retain(Dartxpc_object_t object) { - final _$$ref = object.ref; - return objc.NSObject.fromPointer( - _xpc_retain(_$$ref.pointer), - retain: true, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_rich_error_can_retry', -) -external bool _xpc_rich_error_can_retry(xpc_rich_error_t error); - -bool xpc_rich_error_can_retry(Dartxpc_object_t error) { - final _$$ref = error.ref; - return _xpc_rich_error_can_retry(_$$ref.pointer); -} - -@ffi.Native Function(xpc_rich_error_t)>( - symbol: 'xpc_rich_error_copy_description', -) -external ffi.Pointer _xpc_rich_error_copy_description( - xpc_rich_error_t error, -); - -ffi.Pointer xpc_rich_error_copy_description(Dartxpc_object_t error) { - final _$$ref = error.ref; - return _xpc_rich_error_copy_description(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'xpc_session_activate', -) -external bool _xpc_session_activate( - xpc_session_t session, - ffi.Pointer error_out, -); - -bool xpc_session_activate( - Dartxpc_session_t session, - ffi.Pointer error_out, -) { - final _$$ref = session.ref; - return _xpc_session_activate(_$$ref.pointer, error_out); -} - -@ffi.Native(symbol: 'xpc_session_cancel') -external void _xpc_session_cancel(xpc_session_t session); - -void xpc_session_cancel(Dartxpc_session_t session) { - final _$$ref = session.ref; - return _xpc_session_cancel(_$$ref.pointer); -} - -@ffi.Native Function(xpc_session_t)>( - symbol: 'xpc_session_copy_description', -) -external ffi.Pointer _xpc_session_copy_description( - xpc_session_t session, -); - -ffi.Pointer xpc_session_copy_description(Dartxpc_session_t session) { - final _$$ref = session.ref; - return _xpc_session_copy_description(_$$ref.pointer); -} - -@ffi.Native< - xpc_session_t Function( - ffi.Pointer, - dispatch_queue_t, - ffi.Uint64, - ffi.Pointer, - ) ->(symbol: 'xpc_session_create_mach_service') -external xpc_session_t _xpc_session_create_mach_service( - ffi.Pointer mach_service, - dispatch_queue_t target_queue, - int flags, - ffi.Pointer error_out, -); - -Dartxpc_session_t? xpc_session_create_mach_service( - ffi.Pointer mach_service, - Dartdispatch_queue_t? target_queue, - int flags, - ffi.Pointer error_out, -) { - final _$$ref = target_queue?.ref; - return _xpc_session_create_mach_service( - mach_service, - _$$ref?.pointer ?? ffi.nullptr, - flags, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_session_create_mach_service( - mach_service, - _$$ref?.pointer ?? ffi.nullptr, - flags, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native< - xpc_session_t Function( - ffi.Pointer, - dispatch_queue_t, - ffi.Uint64, - ffi.Pointer, - ) ->(symbol: 'xpc_session_create_xpc_service') -external xpc_session_t _xpc_session_create_xpc_service( - ffi.Pointer name, - dispatch_queue_t target_queue, - int flags, - ffi.Pointer error_out, -); - -Dartxpc_session_t? xpc_session_create_xpc_service( - ffi.Pointer name, - Dartdispatch_queue_t? target_queue, - int flags, - ffi.Pointer error_out, -) { - final _$$ref = target_queue?.ref; - return _xpc_session_create_xpc_service( - name, - _$$ref?.pointer ?? ffi.nullptr, - flags, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_session_create_xpc_service( - name, - _$$ref?.pointer ?? ffi.nullptr, - flags, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_session_send_message', -) -external xpc_rich_error_t _xpc_session_send_message( - xpc_session_t session, - xpc_object_t message, -); - -Dartxpc_object_t? xpc_session_send_message( - Dartxpc_session_t session, - Dartxpc_object_t message, -) { - final _$$ref = session.ref; - final _$$ref$1 = message.ref; - return _xpc_session_send_message(_$$ref.pointer, _$$ref$1.pointer).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_session_send_message(_$$ref.pointer, _$$ref$1.pointer), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Void Function(xpc_session_t, xpc_object_t, xpc_session_reply_handler_t) ->(symbol: 'xpc_session_send_message_with_reply_async') -external void _xpc_session_send_message_with_reply_async( - xpc_session_t session, - xpc_object_t message, - xpc_session_reply_handler_t reply_handler, -); - -void xpc_session_send_message_with_reply_async( - Dartxpc_session_t session, - Dartxpc_object_t message, - Dartxpc_session_reply_handler_t reply_handler, -) { - final _$$ref = session.ref; - final _$$ref$1 = message.ref; - final _$$ref$2 = reply_handler.ref; - return _xpc_session_send_message_with_reply_async( - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); -} - -@ffi.Native< - xpc_object_t Function( - xpc_session_t, - xpc_object_t, - ffi.Pointer, - ) ->(symbol: 'xpc_session_send_message_with_reply_sync') -external xpc_object_t _xpc_session_send_message_with_reply_sync( - xpc_session_t session, - xpc_object_t message, - ffi.Pointer error_out, -); - -Dartxpc_object_t? xpc_session_send_message_with_reply_sync( - Dartxpc_session_t session, - Dartxpc_object_t message, - ffi.Pointer error_out, -) { - final _$$ref = session.ref; - final _$$ref$1 = message.ref; - return _xpc_session_send_message_with_reply_sync( - _$$ref.pointer, - _$$ref$1.pointer, - error_out, - ).address == - 0 - ? null - : objc.NSObject.fromPointer( - _xpc_session_send_message_with_reply_sync( - _$$ref.pointer, - _$$ref$1.pointer, - error_out, - ), - retain: false, - release: true, - ); -} - -@ffi.Native( - symbol: 'xpc_session_set_cancel_handler', -) -external void _xpc_session_set_cancel_handler( - xpc_session_t session, - xpc_session_cancel_handler_t cancel_handler, -); - -void xpc_session_set_cancel_handler( - Dartxpc_session_t session, - Dartxpc_session_cancel_handler_t cancel_handler, -) { - final _$$ref = session.ref; - final _$$ref$1 = cancel_handler.ref; - return _xpc_session_set_cancel_handler(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native< - ffi.Void Function(xpc_session_t, xpc_session_incoming_message_handler_t) ->(symbol: 'xpc_session_set_incoming_message_handler') -external void _xpc_session_set_incoming_message_handler( - xpc_session_t session, - xpc_session_incoming_message_handler_t handler, -); - -void xpc_session_set_incoming_message_handler( - Dartxpc_session_t session, - Dartxpc_session_incoming_message_handler_t handler, -) { - final _$$ref = session.ref; - final _$$ref$1 = handler.ref; - return _xpc_session_set_incoming_message_handler( - _$$ref.pointer, - _$$ref$1.pointer, - ); -} - -@ffi.Native)>( - symbol: 'xpc_session_set_peer_code_signing_requirement', -) -external int _xpc_session_set_peer_code_signing_requirement( - xpc_session_t session, - ffi.Pointer requirement, -); - -int xpc_session_set_peer_code_signing_requirement( - Dartxpc_session_t session, - ffi.Pointer requirement, -) { - final _$$ref = session.ref; - return _xpc_session_set_peer_code_signing_requirement( - _$$ref.pointer, - requirement, - ); -} - -@ffi.Native( - symbol: 'xpc_session_set_peer_requirement', -) -external void _xpc_session_set_peer_requirement( - xpc_session_t session, - xpc_peer_requirement_t requirement, -); - -void xpc_session_set_peer_requirement( - Dartxpc_session_t session, - Dartxpc_peer_requirement_t requirement, -) { - final _$$ref = session.ref; - final _$$ref$1 = requirement.ref; - return _xpc_session_set_peer_requirement(_$$ref.pointer, _$$ref$1.pointer); -} - -@ffi.Native( - symbol: 'xpc_session_set_target_queue', -) -external void _xpc_session_set_target_queue( - xpc_session_t session, - dispatch_queue_t target_queue, -); - -void xpc_session_set_target_queue( - Dartxpc_session_t session, - Dartdispatch_queue_t? target_queue, -) { - final _$$ref = session.ref; - final _$$ref$1 = target_queue?.ref; - return _xpc_session_set_target_queue( - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); -} - -@ffi.Native< - ffi.Void Function(ffi.Pointer, dispatch_queue_t, xpc_handler_t) ->(symbol: 'xpc_set_event_stream_handler') -external void _xpc_set_event_stream_handler( - ffi.Pointer stream, - dispatch_queue_t targetq, - xpc_handler_t handler, -); - -void xpc_set_event_stream_handler( - ffi.Pointer stream, - Dartdispatch_queue_t? targetq, - Dartxpc_handler_t handler, -) { - final _$$ref = targetq?.ref; - final _$$ref$1 = handler.ref; - return _xpc_set_event_stream_handler( - stream, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1.pointer, - ); -} - -@ffi.Native, ffi.Size)>( - symbol: 'xpc_shmem_create', -) -external xpc_object_t _xpc_shmem_create( - ffi.Pointer region, - int length, -); - -Dartxpc_object_t xpc_shmem_create(ffi.Pointer region, int length) { - return objc.NSObject.fromPointer( - _xpc_shmem_create(region, length), - retain: false, - release: true, - ); -} - -@ffi.Native< - ffi.Size Function(xpc_object_t, ffi.Pointer>) ->(symbol: 'xpc_shmem_map') -external int _xpc_shmem_map( - xpc_object_t xshmem, - ffi.Pointer> region, -); - -int xpc_shmem_map( - Dartxpc_object_t xshmem, - ffi.Pointer> region, -) { - final _$$ref = xshmem.ref; - return _xpc_shmem_map(_$$ref.pointer, region); -} - -@ffi.Native)>( - symbol: 'xpc_string_create', -) -external xpc_object_t _xpc_string_create(ffi.Pointer string); - -Dartxpc_object_t xpc_string_create(ffi.Pointer string) { - return objc.NSObject.fromPointer( - _xpc_string_create(string), - retain: false, - release: true, - ); -} - -@ffi.Native)>( - symbol: 'xpc_string_create_with_format', -) -external xpc_object_t _xpc_string_create_with_format(ffi.Pointer fmt); - -Dartxpc_object_t xpc_string_create_with_format(ffi.Pointer fmt) { - return objc.NSObject.fromPointer( - _xpc_string_create_with_format(fmt), - retain: false, - release: true, - ); -} - -@ffi.Native, va_list)>( - symbol: 'xpc_string_create_with_format_and_arguments', -) -external xpc_object_t _xpc_string_create_with_format_and_arguments( - ffi.Pointer fmt, - va_list ap, -); - -Dartxpc_object_t xpc_string_create_with_format_and_arguments( - ffi.Pointer fmt, - va_list ap, -) { - return objc.NSObject.fromPointer( - _xpc_string_create_with_format_and_arguments(fmt, ap), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_string_get_length') -external int _xpc_string_get_length(xpc_object_t xstring); - -int xpc_string_get_length(Dartxpc_object_t xstring) { - final _$$ref = xstring.ref; - return _xpc_string_get_length(_$$ref.pointer); -} - -@ffi.Native Function(xpc_object_t)>( - symbol: 'xpc_string_get_string_ptr', -) -external ffi.Pointer _xpc_string_get_string_ptr(xpc_object_t xstring); - -ffi.Pointer xpc_string_get_string_ptr(Dartxpc_object_t xstring) { - final _$$ref = xstring.ref; - return _xpc_string_get_string_ptr(_$$ref.pointer); -} - -@ffi.Native() -external void xpc_transaction_begin(); - -@ffi.Native() -external void xpc_transaction_end(); - -@ffi.Native Function(xpc_type_t)>() -external ffi.Pointer xpc_type_get_name(xpc_type_t type); - -@ffi.Native(symbol: 'xpc_uint64_create') -external xpc_object_t _xpc_uint64_create(int value); - -Dartxpc_object_t xpc_uint64_create(int value) { - return objc.NSObject.fromPointer( - _xpc_uint64_create(value), - retain: false, - release: true, - ); -} - -@ffi.Native(symbol: 'xpc_uint64_get_value') -external int _xpc_uint64_get_value(xpc_object_t xuint); - -int xpc_uint64_get_value(Dartxpc_object_t xuint) { - final _$$ref = xuint.ref; - return _xpc_uint64_get_value(_$$ref.pointer); -} - -@ffi.Native)>( - symbol: 'xpc_uuid_create', -) -external xpc_object_t _xpc_uuid_create(ffi.Pointer uuid); - -Dartxpc_object_t xpc_uuid_create(ffi.Pointer uuid) { - return objc.NSObject.fromPointer( - _xpc_uuid_create(uuid), - retain: false, - release: true, - ); -} - -@ffi.Native Function(xpc_object_t)>( - symbol: 'xpc_uuid_get_bytes', -) -external ffi.Pointer _xpc_uuid_get_bytes(xpc_object_t xuuid); - -ffi.Pointer xpc_uuid_get_bytes(Dartxpc_object_t xuuid) { - final _$$ref = xuuid.ref; - return _xpc_uuid_get_bytes(_$$ref.pointer); -} - -@ffi.Native() -external double y0(double arg0); - -@ffi.Native() -external double y1(double arg0); - -@ffi.Native() -external double yn(int arg0, double arg1); - -const int AAPNotCreatedErr = -2120; - -const int AAPNotFoundErr = -2121; - -const int ACE2Type = 1094927666; - -const int ACE8Type = 1094927672; - -typedef AEAddressDesc = objc.AEDesc; - -final class AEArrayData extends ffi.Union { - @ffi.Array.multi([1]) - external ffi.Array kAEDataArray$1; - - @ffi.Array.multi([1]) - external ffi.Array kAEPackedArray$1; - - @ffi.Array.multi([1]) - external ffi.Array kAEHandleArray$1; - - @ffi.Array.multi([1]) - external ffi.Array kAEDescArray$1; - - @ffi.Array.multi([1]) - external ffi.Array kAEKeyDescArray$1; -} - -typedef AEArrayDataPointer = ffi.Pointer; -typedef AEArrayType = SInt8; - -@ffi.Packed(2) -final class AEBuildError extends ffi.Struct { - @AEBuildErrorCode() - external int fError; - - @UInt32() - external int fErrorPos; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fError, - required int fErrorPos, - }) => $allocator() - ..ref.fError = fError - ..ref.fErrorPos = fErrorPos; -} - -typedef AEBuildErrorCode = UInt32; -typedef AECoerceDescProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - ffi.Pointer fromDesc, - DescType toType, - SRefCon handlerRefcon, - ffi.Pointer toDesc, - ) - > - >; -typedef AECoerceDescUPP = AECoerceDescProcPtr; -typedef AECoercePtrProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - DescType typeCode, - ffi.Pointer dataPtr, - Size dataSize, - DescType toType, - SRefCon handlerRefcon, - ffi.Pointer result, - ) - > - >; -typedef AECoercePtrUPP = AECoercePtrProcPtr; -typedef AECoercionHandlerUPP = AECoerceDescUPP; -typedef AEDataStorage = ffi.Pointer; -typedef AEDataStorageType = ffi.Pointer; -typedef AEDescList = objc.AEDesc; -typedef AEDescPtr = ffi.Pointer; -typedef AEDisposeExternalProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer dataPtr, - Size dataLength, - SRefCon refcon, - ) - > - >; -typedef AEDisposeExternalUPP = AEDisposeExternalProcPtr; -typedef AEEventClass = FourCharCode; -typedef AEEventHandlerProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - SRefCon handlerRefcon, - ) - > - >; -typedef AEEventHandlerUPP = AEEventHandlerProcPtr; -typedef AEEventID = FourCharCode; -typedef AEEventSource = SInt8; - -@ffi.Packed(2) -final class AEKeyDesc extends ffi.Struct { - @AEKeyword() - external int descKey; - - external objc.AEDesc descContent; -} - -typedef AEKeyword = FourCharCode; -typedef AERecord = AEDescList; - -final class AERemoteProcessResolver extends ffi.Opaque {} - -typedef AERemoteProcessResolverCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - AERemoteProcessResolverRef ref, - ffi.Pointer info, - ) - > - >; - -@ffi.Packed(2) -final class AERemoteProcessResolverContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef AERemoteProcessResolverRef = ffi.Pointer; -typedef AEReturnID = SInt16; -typedef AESendMode = SInt32; -typedef AESendPriority = SInt16; -typedef AEStreamRef = ffi.Pointer; -typedef AETransactionID = SInt32; - -final class AFPAlternateAddress extends ffi.Struct { - @UInt8() - external int fVersion; - - @UInt8() - external int fAddressCount; - - @ffi.Array.multi([1]) - external ffi.Array fAddressList; -} - -final class AFPTagData extends ffi.Struct { - @UInt8() - external int fLength; - - @UInt8() - external int fType; - - @ffi.Array.multi([1]) - external ffi.Array fData; -} - -@ffi.Packed(2) -final class AFPVolMountInfo extends ffi.Struct { - @SInt16() - external int length; - - @VolumeType() - external int media; - - @SInt16() - external int flags; - - @SInt8() - external int nbpInterval; - - @SInt8() - external int nbpCount; - - @SInt16() - external int uamType; - - @SInt16() - external int zoneNameOffset; - - @SInt16() - external int serverNameOffset; - - @SInt16() - external int volNameOffset; - - @SInt16() - external int userNameOffset; - - @SInt16() - external int userPasswordOffset; - - @SInt16() - external int volPasswordOffset; - - @ffi.Array.multi([144]) - external ffi.Array AFPData; -} - -typedef AFPVolMountInfoPtr = ffi.Pointer; - -@ffi.Packed(2) -final class AFPXVolMountInfo extends ffi.Struct { - @SInt16() - external int length; - - @VolumeType() - external int media; - - @SInt16() - external int flags; - - @SInt8() - external int nbpInterval; - - @SInt8() - external int nbpCount; - - @SInt16() - external int uamType; - - @SInt16() - external int zoneNameOffset; - - @SInt16() - external int serverNameOffset; - - @SInt16() - external int volNameOffset; - - @SInt16() - external int userNameOffset; - - @SInt16() - external int userPasswordOffset; - - @SInt16() - external int volPasswordOffset; - - @SInt16() - external int extendedFlags; - - @SInt16() - external int uamNameOffset; - - @SInt16() - external int alternateAddressOffset; - - @ffi.Array.multi([176]) - external ffi.Array AFPData; -} - -typedef AFPXVolMountInfoPtr = ffi.Pointer; - -const int AIFCID = 1095321155; - -const int AIFCVersion1 = -1568648896; - -const int AIFFID = 1095321158; - -final class AIFFLoop extends ffi.Struct { - @SInt16() - external int playMode; - - @MarkerIdType() - external int beginLoop; - - @MarkerIdType() - external int endLoop; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int playMode, - required int beginLoop, - required int endLoop, - }) => $allocator() - ..ref.playMode = playMode - ..ref.beginLoop = beginLoop - ..ref.endLoop = endLoop; -} - -final class ALMXGlyphEntry extends ffi.Struct { - @SInt16() - external int GlyphIndexOffset; - - @SInt16() - external int HorizontalAdvance; - - @SInt16() - external int XOffsetToHOrigin; - - @SInt16() - external int VerticalAdvance; - - @SInt16() - external int YOffsetToVOrigin; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int GlyphIndexOffset, - required int HorizontalAdvance, - required int XOffsetToHOrigin, - required int VerticalAdvance, - required int YOffsetToVOrigin, - }) => $allocator() - ..ref.GlyphIndexOffset = GlyphIndexOffset - ..ref.HorizontalAdvance = HorizontalAdvance - ..ref.XOffsetToHOrigin = XOffsetToHOrigin - ..ref.VerticalAdvance = VerticalAdvance - ..ref.YOffsetToVOrigin = YOffsetToVOrigin; -} - -@ffi.Packed(2) -final class ALMXHeader extends ffi.Struct { - @Fixed() - external int Version; - - @UInt16() - external int Flags; - - @UInt16() - external int NMasters; - - @UInt16() - external int FirstGlyph; - - @UInt16() - external int LastGlyph; - - external SFNTLookupTable lookup; -} - -const int ASDBadForkErr = -2123; - -const int ASDBadHeaderErr = -2122; - -const int ASDEntryNotFoundErr = -2124; - -typedef ATSCubicClosePathProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function(ffi.Pointer callBackDataPtr) - > - >; -typedef ATSCubicClosePathUPP = ATSCubicClosePathProcPtr; -typedef ATSCubicCurveToProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer pt3, - ffi.Pointer callBackDataPtr, - ) - > - >; -typedef ATSCubicCurveToUPP = ATSCubicCurveToProcPtr; -typedef ATSCubicLineToProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ) - > - >; -typedef ATSCubicLineToUPP = ATSCubicLineToProcPtr; -typedef ATSCubicMoveToProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ) - > - >; -typedef ATSCubicMoveToUPP = ATSCubicMoveToProcPtr; -typedef ATSCurveType = UInt16; - -@ffi.Packed(2) -final class ATSFlatDataFontNameDataHeader extends ffi.Struct { - @ATSFlatDataFontSpeciferType() - external int nameSpecifierType; - - @UInt32() - external int nameSpecifierSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nameSpecifierType, - required int nameSpecifierSize, - }) => $allocator() - ..ref.nameSpecifierType = nameSpecifierType - ..ref.nameSpecifierSize = nameSpecifierSize; -} - -@ffi.Packed(2) -final class ATSFlatDataFontSpecRawNameData extends ffi.Struct { - @FontNameCode() - external int fontNameType; - - @FontPlatformCode() - external int fontNamePlatform; - - @FontScriptCode() - external int fontNameScript; - - @FontLanguageCode() - external int fontNameLanguage; - - @UInt32() - external int fontNameLength; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fontNameType, - required int fontNamePlatform, - required int fontNameScript, - required int fontNameLanguage, - required int fontNameLength, - }) => $allocator() - ..ref.fontNameType = fontNameType - ..ref.fontNamePlatform = fontNamePlatform - ..ref.fontNameScript = fontNameScript - ..ref.fontNameLanguage = fontNameLanguage - ..ref.fontNameLength = fontNameLength; -} - -@ffi.Packed(2) -final class ATSFlatDataFontSpecRawNameDataHeader extends ffi.Struct { - @UInt32() - external int numberOfFlattenedNames; - - @ffi.Array.multi([1]) - external ffi.Array nameDataArray; -} - -typedef ATSFlatDataFontSpeciferType = UInt32; - -@ffi.Packed(2) -final class ATSFlatDataLayoutControlsDataHeader extends ffi.Struct { - @UInt32() - external int numberOfLayoutControls; - - @ffi.Array.multi([1]) - external ffi.Array controlArray; -} - -@ffi.Packed(2) -final class ATSFlatDataLineInfoData extends ffi.Struct { - @UInt32() - external int lineLength; - - @UInt32() - external int numberOfLineControls; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lineLength, - required int numberOfLineControls, - }) => $allocator() - ..ref.lineLength = lineLength - ..ref.numberOfLineControls = numberOfLineControls; -} - -@ffi.Packed(2) -final class ATSFlatDataLineInfoHeader extends ffi.Struct { - @UInt32() - external int numberOfLines; - - @ffi.Array.multi([1]) - external ffi.Array lineInfoArray; -} - -@ffi.Packed(2) -final class ATSFlatDataMainHeaderBlock extends ffi.Struct { - @UInt32() - external int version; - - @UInt32() - external int sizeOfDataBlock; - - @UInt32() - external int offsetToTextLayouts; - - @UInt32() - external int offsetToStyleRuns; - - @UInt32() - external int offsetToStyleList; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int sizeOfDataBlock, - required int offsetToTextLayouts, - required int offsetToStyleRuns, - required int offsetToStyleList, - }) => $allocator() - ..ref.version = version - ..ref.sizeOfDataBlock = sizeOfDataBlock - ..ref.offsetToTextLayouts = offsetToTextLayouts - ..ref.offsetToStyleRuns = offsetToStyleRuns - ..ref.offsetToStyleList = offsetToStyleList; -} - -final class ATSFlatDataStyleListFeatureData extends ffi.Struct { - @ATSUFontFeatureType() - external int theFeatureType; - - @ATSUFontFeatureSelector() - external int theFeatureSelector; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int theFeatureType, - required int theFeatureSelector, - }) => $allocator() - ..ref.theFeatureType = theFeatureType - ..ref.theFeatureSelector = theFeatureSelector; -} - -@ffi.Packed(2) -final class ATSFlatDataStyleListHeader extends ffi.Struct { - @UInt32() - external int numberOfStyles; - - @ffi.Array.multi([1]) - external ffi.Array styleDataArray; -} - -@ffi.Packed(2) -final class ATSFlatDataStyleListStyleDataHeader extends ffi.Struct { - @UInt32() - external int sizeOfStyleInfo; - - @UInt32() - external int numberOfSetAttributes; - - @UInt32() - external int numberOfSetFeatures; - - @UInt32() - external int numberOfSetVariations; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sizeOfStyleInfo, - required int numberOfSetAttributes, - required int numberOfSetFeatures, - required int numberOfSetVariations, - }) => $allocator() - ..ref.sizeOfStyleInfo = sizeOfStyleInfo - ..ref.numberOfSetAttributes = numberOfSetAttributes - ..ref.numberOfSetFeatures = numberOfSetFeatures - ..ref.numberOfSetVariations = numberOfSetVariations; -} - -@ffi.Packed(2) -final class ATSFlatDataStyleListVariationData extends ffi.Struct { - @ATSUFontVariationAxis() - external int theVariationAxis; - - @ATSUFontVariationValue() - external int theVariationValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int theVariationAxis, - required int theVariationValue, - }) => $allocator() - ..ref.theVariationAxis = theVariationAxis - ..ref.theVariationValue = theVariationValue; -} - -@ffi.Packed(2) -final class ATSFlatDataStyleRunDataHeader extends ffi.Struct { - @UInt32() - external int numberOfStyleRuns; - - @ffi.Array.multi([1]) - external ffi.Array styleRunArray; -} - -@ffi.Packed(2) -final class ATSFlatDataTextLayoutDataHeader extends ffi.Struct { - @UInt32() - external int sizeOfLayoutData; - - @UInt32() - external int textLayoutLength; - - @UInt32() - external int offsetToLayoutControls; - - @UInt32() - external int offsetToLineInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sizeOfLayoutData, - required int textLayoutLength, - required int offsetToLayoutControls, - required int offsetToLineInfo, - }) => $allocator() - ..ref.sizeOfLayoutData = sizeOfLayoutData - ..ref.textLayoutLength = textLayoutLength - ..ref.offsetToLayoutControls = offsetToLayoutControls - ..ref.offsetToLineInfo = offsetToLineInfo; -} - -@ffi.Packed(2) -final class ATSFlatDataTextLayoutHeader extends ffi.Struct { - @UInt32() - external int numFlattenedTextLayouts; - - @ffi.Array.multi([1]) - external ffi.Array flattenedTextLayouts; -} - -typedef ATSFontApplierFunction = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function(ATSFontRef iFont, ffi.Pointer iRefCon) - > - >; -typedef ATSFontAutoActivationSetting = UInt32; -typedef ATSFontContainerRef = UInt32; -typedef ATSFontContext = UInt32; -typedef ATSFontFamilyApplierFunction = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ATSFontFamilyRef iFamily, - ffi.Pointer iRefCon, - ) - > - >; -typedef ATSFontFamilyIterator = ffi.Pointer; - -final class ATSFontFamilyIterator_ extends ffi.Opaque {} - -typedef ATSFontFamilyRef = UInt32; - -@ffi.Packed(2) -final class ATSFontFilter extends ffi.Struct { - @UInt32() - external int version; - - @ffi.UnsignedInt() - external int filterSelectorAsInt; - - ATSFontFilterSelector get filterSelector => - ATSFontFilterSelector.fromValue(filterSelectorAsInt); - set filterSelector(ATSFontFilterSelector value) => - filterSelectorAsInt = value.value; - - external UnnamedUnion$6 filter; -} - -enum ATSFontFilterSelector { - kATSFontFilterSelectorUnspecified(0), - kATSFontFilterSelectorGeneration(3), - kATSFontFilterSelectorFontFamily(7), - kATSFontFilterSelectorFontFamilyApplierFunction(8), - kATSFontFilterSelectorFontApplierFunction(9), - kATSFileReferenceFilterSelector(10); - - final int value; - const ATSFontFilterSelector(this.value); - - static ATSFontFilterSelector fromValue(int value) => switch (value) { - 0 => kATSFontFilterSelectorUnspecified, - 3 => kATSFontFilterSelectorGeneration, - 7 => kATSFontFilterSelectorFontFamily, - 8 => kATSFontFilterSelectorFontFamilyApplierFunction, - 9 => kATSFontFilterSelectorFontApplierFunction, - 10 => kATSFileReferenceFilterSelector, - _ => throw ArgumentError('Unknown value for ATSFontFilterSelector: $value'), - }; -} - -typedef ATSFontFormat = UInt32; -typedef ATSFontIterator = ffi.Pointer; - -final class ATSFontIterator_ extends ffi.Opaque {} - -@ffi.Packed(2) -final class ATSFontMetrics extends ffi.Struct { - @UInt32() - external int version; - - @CGFloat() - external double ascent; - - @CGFloat() - external double descent; - - @CGFloat() - external double leading; - - @CGFloat() - external double avgAdvanceWidth; - - @CGFloat() - external double maxAdvanceWidth; - - @CGFloat() - external double minLeftSideBearing; - - @CGFloat() - external double minRightSideBearing; - - @CGFloat() - external double stemWidth; - - @CGFloat() - external double stemHeight; - - @CGFloat() - external double capHeight; - - @CGFloat() - external double xHeight; - - @CGFloat() - external double italicAngle; - - @CGFloat() - external double underlinePosition; - - @CGFloat() - external double underlineThickness; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required double ascent, - required double descent, - required double leading, - required double avgAdvanceWidth, - required double maxAdvanceWidth, - required double minLeftSideBearing, - required double minRightSideBearing, - required double stemWidth, - required double stemHeight, - required double capHeight, - required double xHeight, - required double italicAngle, - required double underlinePosition, - required double underlineThickness, - }) => $allocator() - ..ref.version = version - ..ref.ascent = ascent - ..ref.descent = descent - ..ref.leading = leading - ..ref.avgAdvanceWidth = avgAdvanceWidth - ..ref.maxAdvanceWidth = maxAdvanceWidth - ..ref.minLeftSideBearing = minLeftSideBearing - ..ref.minRightSideBearing = minRightSideBearing - ..ref.stemWidth = stemWidth - ..ref.stemHeight = stemHeight - ..ref.capHeight = capHeight - ..ref.xHeight = xHeight - ..ref.italicAngle = italicAngle - ..ref.underlinePosition = underlinePosition - ..ref.underlineThickness = underlineThickness; -} - -typedef ATSFontNotificationInfoRef = ffi.Pointer; - -final class ATSFontNotificationInfoRef_ extends ffi.Opaque {} - -typedef ATSFontNotificationRef = ffi.Pointer; - -final class ATSFontNotificationRef_ extends ffi.Opaque {} - -enum ATSFontNotifyAction { - kATSFontNotifyActionFontsChanged(1), - kATSFontNotifyActionDirectoriesChanged(2); - - final int value; - const ATSFontNotifyAction(this.value); - - static ATSFontNotifyAction fromValue(int value) => switch (value) { - 1 => kATSFontNotifyActionFontsChanged, - 2 => kATSFontNotifyActionDirectoriesChanged, - _ => throw ArgumentError('Unknown value for ATSFontNotifyAction: $value'), - }; -} - -enum ATSFontNotifyOption { - kATSFontNotifyOptionDefault(0), - kATSFontNotifyOptionReceiveWhileSuspended(1); - - final int value; - const ATSFontNotifyOption(this.value); - - static ATSFontNotifyOption fromValue(int value) => switch (value) { - 0 => kATSFontNotifyOptionDefault, - 1 => kATSFontNotifyOptionReceiveWhileSuspended, - _ => throw ArgumentError('Unknown value for ATSFontNotifyOption: $value'), - }; -} - -typedef ATSFontQueryCallback = - ffi.Pointer< - ffi.NativeFunction< - CFPropertyListRef Function( - ffi.UnsignedInt msgid, - CFPropertyListRef data, - ffi.Pointer refCon, - ) - > - >; - -enum ATSFontQueryMessageID { - kATSQueryActivateFontMessage(1635021665); - - final int value; - const ATSFontQueryMessageID(this.value); - - static ATSFontQueryMessageID fromValue(int value) => switch (value) { - 1635021665 => kATSQueryActivateFontMessage, - _ => throw ArgumentError('Unknown value for ATSFontQueryMessageID: $value'), - }; -} - -@ffi.Packed(2) -final class ATSFontQuerySourceContext extends ffi.Struct { - @UInt32() - external int version; - - external ffi.Pointer refCon; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer refCon, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - }) => $allocator() - ..ref.version = version - ..ref.refCon = refCon - ..ref.retain = retain - ..ref.release = release; -} - -typedef ATSFontRef = UInt32; -typedef ATSFontSize = CGFloat; -typedef ATSGeneration = UInt32; - -@ffi.Packed(2) -final class ATSGlyphIdealMetrics extends ffi.Struct { - external ATSPoint advance; - - external ATSPoint sideBearing; - - external ATSPoint otherSideBearing; -} - -typedef ATSGlyphInfoFlags = UInt32; -typedef ATSGlyphRef = UInt16; - -@ffi.Packed(2) -final class ATSGlyphScreenMetrics extends ffi.Struct { - external ATSPoint deviceAdvance; - - external ATSPoint topLeft; - - @UInt32() - external int height; - - @UInt32() - external int width; - - external ATSPoint sideBearing; - - external ATSPoint otherSideBearing; -} - -@ffi.Packed(2) -final class ATSJustWidthDeltaEntryOverride extends ffi.Struct { - @Fixed() - external int beforeGrowLimit; - - @Fixed() - external int beforeShrinkLimit; - - @Fixed() - external int afterGrowLimit; - - @Fixed() - external int afterShrinkLimit; - - @JustificationFlags() - external int growFlags; - - @JustificationFlags() - external int shrinkFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int beforeGrowLimit, - required int beforeShrinkLimit, - required int afterGrowLimit, - required int afterShrinkLimit, - required int growFlags, - required int shrinkFlags, - }) => $allocator() - ..ref.beforeGrowLimit = beforeGrowLimit - ..ref.beforeShrinkLimit = beforeShrinkLimit - ..ref.afterGrowLimit = afterGrowLimit - ..ref.afterShrinkLimit = afterShrinkLimit - ..ref.growFlags = growFlags - ..ref.shrinkFlags = shrinkFlags; -} - -@ffi.Packed(2) -final class ATSLayoutRecord extends ffi.Struct { - @ATSGlyphRef() - external int glyphID; - - @ATSGlyphInfoFlags() - external int flags; - - @ByteCount() - external int originalOffset; - - @Fixed() - external int realPos; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int glyphID, - required int flags, - required int originalOffset, - required int realPos, - }) => $allocator() - ..ref.glyphID = glyphID - ..ref.flags = flags - ..ref.originalOffset = originalOffset - ..ref.realPos = realPos; -} - -typedef ATSLineLayoutOptions = UInt32; -typedef ATSNotificationCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ATSFontNotificationInfoRef info, - ffi.Pointer refCon, - ) - > - >; -typedef ATSOptionFlags = OptionBits; -typedef ATSPoint = objc.CGPoint; -typedef ATSQuadraticClosePathProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function(ffi.Pointer callBackDataPtr) - > - >; -typedef ATSQuadraticClosePathUPP = ATSQuadraticClosePathProcPtr; -typedef ATSQuadraticCurveProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer pt1, - ffi.Pointer controlPt, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ) - > - >; -typedef ATSQuadraticCurveUPP = ATSQuadraticCurveProcPtr; -typedef ATSQuadraticLineProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ) - > - >; -typedef ATSQuadraticLineUPP = ATSQuadraticLineProcPtr; -typedef ATSQuadraticNewPathProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function(ffi.Pointer callBackDataPtr) - > - >; -typedef ATSQuadraticNewPathUPP = ATSQuadraticNewPathProcPtr; -typedef ATSStyleRenderingOptions = UInt32; - -final class ATSTrapezoid extends ffi.Struct { - external FixedPoint upperLeft; - - external FixedPoint upperRight; - - external FixedPoint lowerRight; - - external FixedPoint lowerLeft; -} - -@ffi.Packed(2) -final class ATSUAttributeInfo extends ffi.Struct { - @ATSUAttributeTag() - external int fTag; - - @ByteCount() - external int fValueSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fTag, - required int fValueSize, - }) => $allocator() - ..ref.fTag = fTag - ..ref.fValueSize = fValueSize; -} - -typedef ATSUAttributeTag = UInt32; -typedef ATSUAttributeValuePtr = ffi.Pointer; -typedef ATSUBackgroundColor = ATSURGBAlphaColor; - -final class ATSUBackgroundData extends ffi.Union { - external ATSUBackgroundColor backgroundColor; - - external RedrawBackgroundUPP backgroundUPP; -} - -typedef ATSUBackgroundDataType = UInt32; - -@ffi.Packed(2) -final class ATSUCaret extends ffi.Struct { - @Fixed() - external int fX; - - @Fixed() - external int fY; - - @Fixed() - external int fDeltaX; - - @Fixed() - external int fDeltaY; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fX, - required int fY, - required int fDeltaX, - required int fDeltaY, - }) => $allocator() - ..ref.fX = fX - ..ref.fY = fY - ..ref.fDeltaX = fDeltaX - ..ref.fDeltaY = fDeltaY; -} - -typedef ATSUCursorMovementType = UInt16; - -@ffi.Packed(2) -final class ATSUCurvePath extends ffi.Struct { - @UInt32() - external int vectors; - - @ffi.Array.multi([1]) - external ffi.Array controlBits; - - @ffi.Array.multi([1]) - external ffi.Array vector; -} - -@ffi.Packed(2) -final class ATSUCurvePaths extends ffi.Struct { - @UInt32() - external int contours; - - @ffi.Array.multi([1]) - external ffi.Array contour; -} - -typedef ATSUDirectDataSelector = UInt32; -typedef ATSUFlattenStyleRunOptions = UInt32; -typedef ATSUFlattenedDataStreamFormat = UInt32; -typedef ATSUFontFallbackMethod = UInt16; -typedef ATSUFontFallbacks = ffi.Pointer; -typedef ATSUFontFeatureSelector = UInt16; -typedef ATSUFontFeatureType = UInt16; -typedef ATSUFontID = FMFont; -typedef ATSUFontVariationAxis = FourCharCode; -typedef ATSUFontVariationValue = Fixed; - -@ffi.Packed(2) -final class ATSUGlyphInfo extends ffi.Struct { - @GlyphID() - external int glyphID; - - @UInt16() - external int reserved; - - @UInt32() - external int layoutFlags; - - @UniCharArrayOffset() - external int charIndex; - - external ATSUStyle style; - - @Float32() - external double deltaY; - - @Float32() - external double idealX; - - @SInt16() - external int screenX; - - @SInt16() - external int caretX; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int glyphID, - required int reserved, - required int layoutFlags, - required int charIndex, - required ATSUStyle style, - required double deltaY, - required double idealX, - required int screenX, - required int caretX, - }) => $allocator() - ..ref.glyphID = glyphID - ..ref.reserved = reserved - ..ref.layoutFlags = layoutFlags - ..ref.charIndex = charIndex - ..ref.style = style - ..ref.deltaY = deltaY - ..ref.idealX = idealX - ..ref.screenX = screenX - ..ref.caretX = caretX; -} - -@ffi.Packed(2) -final class ATSUGlyphInfoArray extends ffi.Struct { - external ATSUTextLayout layout; - - @ItemCount() - external int numGlyphs; - - @ffi.Array.multi([1]) - external ffi.Array glyphs; -} - -final class ATSUGlyphSelector extends ffi.Struct { - @GlyphCollection() - external int collection; - - @GlyphID() - external int glyphID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int collection, - required int glyphID, - }) => $allocator() - ..ref.collection = collection - ..ref.glyphID = glyphID; -} - -typedef ATSUHighlightMethod = UInt32; -typedef ATSULayoutOperationCallbackStatus = UInt32; -typedef ATSULayoutOperationSelector = UInt32; -typedef ATSULineTruncation = UInt32; - -@ffi.Packed(2) -final class ATSURGBAlphaColor extends ffi.Struct { - @ffi.Float() - external double red; - - @ffi.Float() - external double green; - - @ffi.Float() - external double blue; - - @ffi.Float() - external double alpha; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double red, - required double green, - required double blue, - required double alpha, - }) => $allocator() - ..ref.red = red - ..ref.green = green - ..ref.blue = blue - ..ref.alpha = alpha; -} - -typedef ATSUStyle = ffi.Pointer; -typedef ATSUStyleComparison = UInt16; -typedef ATSUStyleLineCountType = UInt16; - -@ffi.Packed(2) -final class ATSUStyleRunInfo extends ffi.Struct { - @UInt32() - external int runLength; - - @UInt32() - external int styleObjectIndex; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int runLength, - required int styleObjectIndex, - }) => $allocator() - ..ref.runLength = runLength - ..ref.styleObjectIndex = styleObjectIndex; -} - -typedef ATSUStyleSettingRef = ffi.Pointer; - -@ffi.Packed(2) -final class ATSUTab extends ffi.Struct { - @ATSUTextMeasurement() - external int tabPosition; - - @ATSUTabType() - external int tabType; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tabPosition, - required int tabType, - }) => $allocator() - ..ref.tabPosition = tabPosition - ..ref.tabType = tabType; -} - -typedef ATSUTabType = UInt16; -typedef ATSUTextLayout = ffi.Pointer; -typedef ATSUTextMeasurement = Fixed; -typedef ATSUUnFlattenStyleRunOptions = UInt32; - -@ffi.Packed(2) -final class ATSUUnhighlightData extends ffi.Struct { - @ATSUBackgroundDataType() - external int dataType; - - external ATSUBackgroundData unhighlightData; -} - -typedef ATSUVerticalCharacterType = UInt16; - -final class AVAudio3DAngularOrientation extends ffi.Struct { - @ffi.Float() - external double yaw; - - @ffi.Float() - external double pitch; - - @ffi.Float() - external double roll; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double yaw, - required double pitch, - required double roll, - }) => $allocator() - ..ref.yaw = yaw - ..ref.pitch = pitch - ..ref.roll = roll; -} - -final class AVAudio3DPoint extends ffi.Struct { - @ffi.Float() - external double x; - - @ffi.Float() - external double y; - - @ffi.Float() - external double z; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double x, - required double y, - required double z, - }) => $allocator() - ..ref.x = x - ..ref.y = y - ..ref.z = z; -} - -typedef AVAudio3DVector = AVAudio3DPoint; - -final class AVAudio3DVectorOrientation extends ffi.Struct { - external AVAudio3DVector forward; - - external AVAudio3DVector up; -} - -typedef AVAudioChannelCount = ffi.Uint32; -typedef DartAVAudioChannelCount = int; - -enum AVAudioCommonFormat { - AVAudioOtherFormat(0), - AVAudioPCMFormatFloat32(1), - AVAudioPCMFormatFloat64(2), - AVAudioPCMFormatInt16(3), - AVAudioPCMFormatInt32(4); - - final int value; - const AVAudioCommonFormat(this.value); - - static AVAudioCommonFormat fromValue(int value) => switch (value) { - 0 => AVAudioOtherFormat, - 1 => AVAudioPCMFormatFloat32, - 2 => AVAudioPCMFormatFloat64, - 3 => AVAudioPCMFormatInt16, - 4 => AVAudioPCMFormatInt32, - _ => throw ArgumentError('Unknown value for AVAudioCommonFormat: $value'), - }; -} - -enum AVAudioContentSource { - AVAudioContentSource_Unspecified(-1), - AVAudioContentSource_Reserved(0), - AVAudioContentSource_AppleCapture_Traditional(1), - AVAudioContentSource_AppleCapture_Spatial(2), - AVAudioContentSource_AppleCapture_Spatial_Enhanced(3), - AVAudioContentSource_AppleMusic_Traditional(4), - AVAudioContentSource_AppleMusic_Spatial(5), - AVAudioContentSource_AppleAV_Traditional_Offline(6), - AVAudioContentSource_AppleAV_Spatial_Offline(7), - AVAudioContentSource_AppleAV_Traditional_Live(8), - AVAudioContentSource_AppleAV_Spatial_Live(9), - AVAudioContentSource_ApplePassthrough(10), - AVAudioContentSource_Capture_Traditional(33), - AVAudioContentSource_Capture_Spatial(34), - AVAudioContentSource_Capture_Spatial_Enhanced(35), - AVAudioContentSource_Music_Traditional(36), - AVAudioContentSource_Music_Spatial(37), - AVAudioContentSource_AV_Traditional_Offline(38), - AVAudioContentSource_AV_Spatial_Offline(39), - AVAudioContentSource_AV_Traditional_Live(40), - AVAudioContentSource_AV_Spatial_Live(41), - AVAudioContentSource_Passthrough(42); - - final int value; - const AVAudioContentSource(this.value); - - static AVAudioContentSource fromValue(int value) => switch (value) { - -1 => AVAudioContentSource_Unspecified, - 0 => AVAudioContentSource_Reserved, - 1 => AVAudioContentSource_AppleCapture_Traditional, - 2 => AVAudioContentSource_AppleCapture_Spatial, - 3 => AVAudioContentSource_AppleCapture_Spatial_Enhanced, - 4 => AVAudioContentSource_AppleMusic_Traditional, - 5 => AVAudioContentSource_AppleMusic_Spatial, - 6 => AVAudioContentSource_AppleAV_Traditional_Offline, - 7 => AVAudioContentSource_AppleAV_Spatial_Offline, - 8 => AVAudioContentSource_AppleAV_Traditional_Live, - 9 => AVAudioContentSource_AppleAV_Spatial_Live, - 10 => AVAudioContentSource_ApplePassthrough, - 33 => AVAudioContentSource_Capture_Traditional, - 34 => AVAudioContentSource_Capture_Spatial, - 35 => AVAudioContentSource_Capture_Spatial_Enhanced, - 36 => AVAudioContentSource_Music_Traditional, - 37 => AVAudioContentSource_Music_Spatial, - 38 => AVAudioContentSource_AV_Traditional_Offline, - 39 => AVAudioContentSource_AV_Spatial_Offline, - 40 => AVAudioContentSource_AV_Traditional_Live, - 41 => AVAudioContentSource_AV_Spatial_Live, - 42 => AVAudioContentSource_Passthrough, - _ => throw ArgumentError('Unknown value for AVAudioContentSource: $value'), - }; -} - -enum AVAudioDynamicRangeControlConfiguration { - AVAudioDynamicRangeControlConfiguration_None(0), - AVAudioDynamicRangeControlConfiguration_Music(1), - AVAudioDynamicRangeControlConfiguration_Speech(2), - AVAudioDynamicRangeControlConfiguration_Movie(3), - AVAudioDynamicRangeControlConfiguration_Capture(4); - - final int value; - const AVAudioDynamicRangeControlConfiguration(this.value); - - static AVAudioDynamicRangeControlConfiguration fromValue(int value) => - switch (value) { - 0 => AVAudioDynamicRangeControlConfiguration_None, - 1 => AVAudioDynamicRangeControlConfiguration_Music, - 2 => AVAudioDynamicRangeControlConfiguration_Speech, - 3 => AVAudioDynamicRangeControlConfiguration_Movie, - 4 => AVAudioDynamicRangeControlConfiguration_Capture, - _ => throw ArgumentError( - 'Unknown value for AVAudioDynamicRangeControlConfiguration: $value', - ), - }; -} - -/// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include -/// AVAudioFormat in your config's objc-interfaces list. -/// -/// AVAudioFormat -extension type AVAudioFormat._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [AVAudioFormat] that points to the same underlying object as [other]. - AVAudioFormat.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioFormat', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } - - /// Constructs a [AVAudioFormat] that wraps the given raw object pointer. - AVAudioFormat.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioFormat', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } -} - -typedef AVAudioFrameCount = ffi.Uint32; -typedef DartAVAudioFrameCount = int; -typedef AVAudioFramePosition = ffi.Int64; -typedef DartAVAudioFramePosition = int; -typedef AVAudioInteger = ffi.Long; -typedef DartAVAudioInteger = int; -typedef AVAudioNodeBus = NSUInteger; -typedef AVAudioNodeCompletionHandler = ffi.Pointer; -typedef DartAVAudioNodeCompletionHandler = objc.ObjCBlock; -typedef AVAudioPacketCount = ffi.Uint32; -typedef DartAVAudioPacketCount = int; - -/// AVAudioPlayer -extension type AVAudioPlayer._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioPlayer] that points to the same underlying object as [other]. - AVAudioPlayer.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioPlayer', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - assert(isA(object$)); - } - - /// Constructs a [AVAudioPlayer] that wraps the given raw object pointer. - AVAudioPlayer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioPlayer', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [AVAudioPlayer]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_AVAudioPlayer, - ); - - /// alloc - static AVAudioPlayer alloc() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_alloc); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// allocWithZone: - static AVAudioPlayer allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_AVAudioPlayer, - _sel_allocWithZone_, - zone, - ); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// new - static AVAudioPlayer new$() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayer, _sel_new); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// Returns a new instance of AVAudioPlayer constructed with the default `new` method. - AVAudioPlayer() : this.as(new$().object$); -} - -extension AVAudioPlayer$Methods on AVAudioPlayer { - /// averagePowerForChannel: - double averagePowerForChannel(DartNSUInteger channelNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.averagePowerForChannel:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_65s5ywFpret( - _$$ref.pointer, - _sel_averagePowerForChannel_, - channelNumber, - ) - : _objc_msgSend_65s5yw( - _$$ref.pointer, - _sel_averagePowerForChannel_, - channelNumber, - ); - } - - /// channelAssignments - objc.NSArray? get channelAssignments { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.channelAssignments', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_channelAssignments); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// currentDevice - objc.NSString? get currentDevice { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.currentDevice', - iOS: (true, null), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// currentTime - DartNSTimeInterval get currentTime { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.currentTime', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); - } - - /// data - objc.NSData? get data { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.data', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// delegate - AVAudioPlayerDelegate? get delegate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.delegate', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); - return $ret.address == 0 - ? null - : AVAudioPlayerDelegate.fromPointer($ret, retain: true, release: true); - } - - /// deviceCurrentTime - DartNSTimeInterval get deviceCurrentTime { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.deviceCurrentTime', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); - } - - /// duration - DartNSTimeInterval get duration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.duration', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); - } - - /// enableRate - bool get enableRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.enableRate', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); - } - - /// format - AVAudioFormat get format { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.format', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); - return AVAudioFormat.fromPointer($ret, retain: true, release: true); - } - - /// init - AVAudioPlayer init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL:error: - AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithContentsOfURL:error:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithContentsOfURL:fileTypeHint:error: - AVAudioPlayer? initWithContentsOfURL$1( - objc.NSURL url, { - objc.NSString? fileTypeHint, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = fileTypeHint?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithContentsOfURL:fileTypeHint:error:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_fileTypeHint_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithData:error: - AVAudioPlayer? initWithData(objc.NSData data) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithData:error:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithData_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithData:fileTypeHint:error: - AVAudioPlayer? initWithData$1( - objc.NSData data, { - objc.NSString? fileTypeHint, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - final _$$ref$2 = fileTypeHint?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.initWithData:fileTypeHint:error:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _$$ref.retainAndReturnPointer(), - _sel_initWithData_fileTypeHint_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : AVAudioPlayer.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// intendedSpatialExperience - CASpatialAudioExperience get intendedSpatialExperience { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.intendedSpatialExperience', - iOS: (true, null), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_intendedSpatialExperience, - ); - return CASpatialAudioExperience.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// isMeteringEnabled - bool get isMeteringEnabled { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.isMeteringEnabled', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); - } - - /// isPlaying - bool get isPlaying { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.isPlaying', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); - } - - /// numberOfChannels - DartNSUInteger get numberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.numberOfChannels', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfChannels); - } - - /// numberOfLoops - DartNSInteger get numberOfLoops { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.numberOfLoops', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); - } - - /// pan - double get pan { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.pan', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); - } - - /// pause - void pause$1() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.pause', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); - } - - /// peakPowerForChannel: - double peakPowerForChannel(DartNSUInteger channelNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.peakPowerForChannel:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_65s5ywFpret( - _$$ref.pointer, - _sel_peakPowerForChannel_, - channelNumber, - ) - : _objc_msgSend_65s5yw( - _$$ref.pointer, - _sel_peakPowerForChannel_, - channelNumber, - ); - } - - /// play - bool play() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.play', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); - } - - /// playAtTime: - bool playAtTime(DartNSTimeInterval time$1) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.playAtTime:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time$1); - } - - /// prepareToPlay - bool prepareToPlay() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.prepareToPlay', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); - } - - /// rate - double get rate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.rate', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); - } - - /// setChannelAssignments: - set channelAssignments(objc.NSArray? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setChannelAssignments:', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setChannelAssignments_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setCurrentDevice: - set currentDevice(objc.NSString? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setCurrentDevice:', - iOS: (true, null), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setCurrentDevice_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setCurrentTime: - set currentTime(DartNSTimeInterval value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setCurrentTime:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); - } - - /// setDelegate: - set delegate(AVAudioPlayerDelegate? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setDelegate:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setDelegate_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setEnableRate: - set enableRate(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setEnableRate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); - } - - /// setIntendedSpatialExperience: - set intendedSpatialExperience(CASpatialAudioExperience value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setIntendedSpatialExperience:', - iOS: (true, null), - macOS: (true, null), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setIntendedSpatialExperience_, - _$$ref$1.pointer, - ); - } - - /// setMeteringEnabled: - set isMeteringEnabled(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setMeteringEnabled:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setMeteringEnabled_, value); - } - - /// setNumberOfLoops: - set numberOfLoops(DartNSInteger value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setNumberOfLoops:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); - } - - /// setPan: - set pan(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setPan:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); - } - - /// setRate: - set rate(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setRate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); - } - - /// setVolume: - set volume(double value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setVolume:', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); - } - - /// setVolume:fadeDuration: - void setVolume(double volume, {required DartNSTimeInterval fadeDuration}) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.setVolume:fadeDuration:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - _objc_msgSend_1p4uk9e( - _$$ref.pointer, - _sel_setVolume_fadeDuration_, - volume, - fadeDuration, - ); - } - - /// settings - objc.NSDictionary get settings { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.settings', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_settings); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// stop - void stop() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.stop', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); - } - - /// updateMeters - void updateMeters() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.updateMeters', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); - } - - /// url - objc.NSURL? get url { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.url', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// volume - double get volume { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioPlayer.volume', - iOS: (false, (2, 2, 0)), - macOS: (false, (10, 7, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); - } -} - -/// AVAudioPlayerDelegate -extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [AVAudioPlayerDelegate] that points to the same underlying object as [other]. - AVAudioPlayerDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [AVAudioPlayerDelegate] that wraps the given raw object pointer. - AVAudioPlayerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [AVAudioPlayerDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_AVAudioPlayerDelegate, - ); - } -} - -extension AVAudioPlayerDelegate$Methods on AVAudioPlayerDelegate { - /// audioPlayerDecodeErrorDidOccur:error: - void audioPlayerDecodeErrorDidOccur( - AVAudioPlayer player, { - objc.NSError? error, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = player.ref; - final _$$ref$2 = error?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_audioPlayerDecodeErrorDidOccur_error_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioPlayerDelegate', - 'audioPlayerDecodeErrorDidOccur:error:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_audioPlayerDecodeErrorDidOccur_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// audioPlayerDidFinishPlaying:successfully: - void audioPlayerDidFinishPlaying( - AVAudioPlayer player, { - required bool successfully, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = player.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_audioPlayerDidFinishPlaying_successfully_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioPlayerDelegate', - 'audioPlayerDidFinishPlaying:successfully:', - ); - } - _objc_msgSend_6p7ndb( - _$$ref.pointer, - _sel_audioPlayerDidFinishPlaying_successfully_, - _$$ref$1.pointer, - successfully, - ); - } -} - -interface class AVAudioPlayerDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_AVAudioPlayerDelegate.cast()); - - /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioPlayerDelegate implement({ - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioPlayerDelegate', - ); - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implement(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implement(builder, audioPlayerDidFinishPlaying_successfully_); - builder.addProtocol($protocol); - return AVAudioPlayerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implement(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implement(builder, audioPlayerDidFinishPlaying_successfully_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioPlayerDelegate implementAsListener({ - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioPlayerDelegate', - ); - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implementAsListener(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implementAsListener( - builder, - audioPlayerDidFinishPlaying_successfully_, - ); - builder.addProtocol($protocol); - return AVAudioPlayerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implementAsListener(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implementAsListener( - builder, - audioPlayerDidFinishPlaying_successfully_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the AVAudioPlayerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioPlayerDelegate implementAsBlocking({ - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioPlayerDelegate', - ); - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implementAsBlocking(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implementAsBlocking( - builder, - audioPlayerDidFinishPlaying_successfully_, - ); - builder.addProtocol($protocol); - return AVAudioPlayerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioPlayerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(AVAudioPlayer, objc.NSError?)? - audioPlayerDecodeErrorDidOccur_error_, - void Function(AVAudioPlayer, bool)? - audioPlayerDidFinishPlaying_successfully_, - bool $keepIsolateAlive = true, - }) { - AVAudioPlayerDelegate$Builder.audioPlayerDecodeErrorDidOccur_error_ - .implementAsBlocking(builder, audioPlayerDecodeErrorDidOccur_error_); - AVAudioPlayerDelegate$Builder.audioPlayerDidFinishPlaying_successfully_ - .implementAsBlocking( - builder, - audioPlayerDidFinishPlaying_successfully_, - ); - builder.addProtocol($protocol); - } - - /// audioPlayerDecodeErrorDidOccur:error: - static final audioPlayerDecodeErrorDidOccur_error_ = - objc.ObjCProtocolListenableMethod< - void Function(AVAudioPlayer, objc.NSError?) - >( - _protocol_AVAudioPlayerDelegate, - _sel_audioPlayerDecodeErrorDidOccur_error_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioPlayerDelegate, - _sel_audioPlayerDecodeErrorDidOccur_error_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(AVAudioPlayer, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.fromFunction( - ( - ffi.Pointer _, - AVAudioPlayer arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(AVAudioPlayer, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.listener( - ( - ffi.Pointer _, - AVAudioPlayer arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(AVAudioPlayer, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError.blocking( - ( - ffi.Pointer _, - AVAudioPlayer arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// audioPlayerDidFinishPlaying:successfully: - static final audioPlayerDidFinishPlaying_successfully_ = - objc.ObjCProtocolListenableMethod( - _protocol_AVAudioPlayerDelegate, - _sel_audioPlayerDidFinishPlaying_successfully_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_zzthnb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioPlayerDelegate, - _sel_audioPlayerDidFinishPlaying_successfully_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(AVAudioPlayer, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.fromFunction( - (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => - func(arg1, arg2), - ), - (void Function(AVAudioPlayer, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.listener( - (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => - func(arg1, arg2), - ), - (void Function(AVAudioPlayer, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool.blocking( - (ffi.Pointer _, AVAudioPlayer arg1, bool arg2) => - func(arg1, arg2), - ), - ); -} - -enum AVAudioQuality { - AVAudioQualityMin(0), - AVAudioQualityLow(32), - AVAudioQualityMedium(64), - AVAudioQualityHigh(96), - AVAudioQualityMax(127); - - final int value; - const AVAudioQuality(this.value); - - static AVAudioQuality fromValue(int value) => switch (value) { - 0 => AVAudioQualityMin, - 32 => AVAudioQualityLow, - 64 => AVAudioQualityMedium, - 96 => AVAudioQualityHigh, - 127 => AVAudioQualityMax, - _ => throw ArgumentError('Unknown value for AVAudioQuality: $value'), - }; -} - -/// WARNING: AVAudioSession is a stub. To generate bindings for this class, include -/// AVAudioSession in your config's objc-interfaces list. -/// -/// AVAudioSession -extension type AVAudioSession._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioSession] that points to the same underlying object as [other]. - AVAudioSession.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioSession', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - } - - /// Constructs a [AVAudioSession] that wraps the given raw object pointer. - AVAudioSession.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioSession', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - } -} - -sealed class AVAudioSessionActivationOptions { - static const AVAudioSessionActivationOptionNone = 0; -} - -typedef AVAudioSessionCategory = ffi.Pointer; -typedef DartAVAudioSessionCategory = objc.NSString; - -sealed class AVAudioSessionCategoryOptions { - static const AVAudioSessionCategoryOptionMixWithOthers = 1; - static const AVAudioSessionCategoryOptionDuckOthers = 2; - static const AVAudioSessionCategoryOptionAllowBluetooth = 4; - static const AVAudioSessionCategoryOptionAllowBluetoothHFP = 4; - static const AVAudioSessionCategoryOptionDefaultToSpeaker = 8; - static const AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers = - 17; - static const AVAudioSessionCategoryOptionAllowBluetoothA2DP = 32; - static const AVAudioSessionCategoryOptionAllowAirPlay = 64; - static const AVAudioSessionCategoryOptionOverrideMutedMicrophoneInterruption = - 128; - static const AVAudioSessionCategoryOptionBluetoothHighQualityRecording = - 524288; -} - -/// WARNING: AVAudioSessionDataSourceDescription is a stub. To generate bindings for this class, include -/// AVAudioSessionDataSourceDescription in your config's objc-interfaces list. -/// -/// AVAudioSessionDataSourceDescription -extension type AVAudioSessionDataSourceDescription._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioSessionDataSourceDescription] that points to the same underlying object as [other]. - AVAudioSessionDataSourceDescription.as(objc.ObjCObject other) - : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioSessionDataSourceDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } - - /// Constructs a [AVAudioSessionDataSourceDescription] that wraps the given raw object pointer. - AVAudioSessionDataSourceDescription.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioSessionDataSourceDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } -} - -/// AVAudioSessionDelegate -@Deprecated('No longer supported') -extension type AVAudioSessionDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [AVAudioSessionDelegate] that points to the same underlying object as [other]. - AVAudioSessionDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [AVAudioSessionDelegate] that wraps the given raw object pointer. - AVAudioSessionDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [AVAudioSessionDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_AVAudioSessionDelegate, - ); - } -} - -extension AVAudioSessionDelegate$Methods on AVAudioSessionDelegate { - /// beginInterruption - @Deprecated('No longer supported') - void beginInterruption() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSessionDelegate.beginInterruption', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_beginInterruption)) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioSessionDelegate', - 'beginInterruption', - ); - } - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_beginInterruption); - } - - /// endInterruption - @Deprecated('No longer supported') - void endInterruption() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSessionDelegate.endInterruption', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_endInterruption)) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioSessionDelegate', - 'endInterruption', - ); - } - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endInterruption); - } - - /// endInterruptionWithFlags: - void endInterruptionWithFlags(DartNSUInteger flags) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSessionDelegate.endInterruptionWithFlags:', - iOS: (false, (4, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_endInterruptionWithFlags_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioSessionDelegate', - 'endInterruptionWithFlags:', - ); - } - _objc_msgSend_1i9r4xy( - _$$ref.pointer, - _sel_endInterruptionWithFlags_, - flags, - ); - } - - /// inputIsAvailableChanged: - @Deprecated('No longer supported') - void inputIsAvailableChanged(bool isInputAvailable) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSessionDelegate.inputIsAvailableChanged:', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_inputIsAvailableChanged_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'AVAudioSessionDelegate', - 'inputIsAvailableChanged:', - ); - } - _objc_msgSend_1s56lr9( - _$$ref.pointer, - _sel_inputIsAvailableChanged_, - isInputAvailable, - ); - } -} - -interface class AVAudioSessionDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_AVAudioSessionDelegate.cast()); - - /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioSessionDelegate implement({ - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioSessionDelegate', - ); - AVAudioSessionDelegate$Builder.beginInterruption.implement( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implement( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_.implement( - builder, - endInterruptionWithFlags_, - ); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implement( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - return AVAudioSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - AVAudioSessionDelegate$Builder.beginInterruption.implement( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implement( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_.implement( - builder, - endInterruptionWithFlags_, - ); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implement( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioSessionDelegate implementAsListener({ - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioSessionDelegate', - ); - AVAudioSessionDelegate$Builder.beginInterruption.implementAsListener( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implementAsListener( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ - .implementAsListener(builder, endInterruptionWithFlags_); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsListener( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - return AVAudioSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - AVAudioSessionDelegate$Builder.beginInterruption.implementAsListener( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implementAsListener( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ - .implementAsListener(builder, endInterruptionWithFlags_); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsListener( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the AVAudioSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static AVAudioSessionDelegate implementAsBlocking({ - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'AVAudioSessionDelegate', - ); - AVAudioSessionDelegate$Builder.beginInterruption.implementAsBlocking( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implementAsBlocking( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ - .implementAsBlocking(builder, endInterruptionWithFlags_); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsBlocking( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - return AVAudioSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the AVAudioSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function()? beginInterruption, - void Function()? endInterruption, - void Function(DartNSUInteger)? endInterruptionWithFlags_, - void Function(bool)? inputIsAvailableChanged_, - bool $keepIsolateAlive = true, - }) { - AVAudioSessionDelegate$Builder.beginInterruption.implementAsBlocking( - builder, - beginInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruption.implementAsBlocking( - builder, - endInterruption, - ); - AVAudioSessionDelegate$Builder.endInterruptionWithFlags_ - .implementAsBlocking(builder, endInterruptionWithFlags_); - AVAudioSessionDelegate$Builder.inputIsAvailableChanged_.implementAsBlocking( - builder, - inputIsAvailableChanged_, - ); - builder.addProtocol($protocol); - } - - /// beginInterruption - static final beginInterruption = - objc.ObjCProtocolListenableMethod( - _protocol_AVAudioSessionDelegate, - _sel_beginInterruption, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ovsamd) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioSessionDelegate, - _sel_beginInterruption, - isRequired: false, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// endInterruption - static final endInterruption = - objc.ObjCProtocolListenableMethod( - _protocol_AVAudioSessionDelegate, - _sel_endInterruption, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ovsamd) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioSessionDelegate, - _sel_endInterruption, - isRequired: false, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// endInterruptionWithFlags: - static final endInterruptionWithFlags_ = - objc.ObjCProtocolListenableMethod( - _protocol_AVAudioSessionDelegate, - _sel_endInterruptionWithFlags_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >(_1uu024u_protocolTrampoline_zuf90e) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioSessionDelegate, - _sel_endInterruptionWithFlags_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUInteger.fromFunction( - (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), - ), - (void Function(DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUInteger.listener( - (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), - ), - (void Function(DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUInteger.blocking( - (ffi.Pointer _, DartNSUInteger arg1) => func(arg1), - ), - ); - - /// inputIsAvailableChanged: - static final inputIsAvailableChanged_ = - objc.ObjCProtocolListenableMethod( - _protocol_AVAudioSessionDelegate, - _sel_inputIsAvailableChanged_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_10lndml) - .cast(), - objc.getProtocolMethodSignature( - _protocol_AVAudioSessionDelegate, - _sel_inputIsAvailableChanged_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(bool) func) => - ObjCBlock_ffiVoid_ffiVoid_bool.fromFunction( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.listener( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.blocking( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - ); -} - -/// AVAudioSessionDeprecated -extension AVAudioSessionDeprecated on AVAudioSession { - /// currentHardwareInputNumberOfChannels - @Deprecated('Deprecated') - DartNSInteger get currentHardwareInputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.currentHardwareInputNumberOfChannels', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_1hz7y9r( - _$$ref.pointer, - _sel_currentHardwareInputNumberOfChannels, - ); - } - - /// currentHardwareOutputNumberOfChannels - @Deprecated('Deprecated') - DartNSInteger get currentHardwareOutputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.currentHardwareOutputNumberOfChannels', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_1hz7y9r( - _$$ref.pointer, - _sel_currentHardwareOutputNumberOfChannels, - ); - } - - /// currentHardwareSampleRate - @Deprecated('Deprecated') - double get currentHardwareSampleRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.currentHardwareSampleRate', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - _$$ref.pointer, - _sel_currentHardwareSampleRate, - ) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentHardwareSampleRate); - } - - /// delegate - @Deprecated('No longer supported') - AVAudioSessionDelegate? get delegate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.delegate', - iOS: (false, (4, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_delegate); - return $ret.address == 0 - ? null - : AVAudioSessionDelegate.fromPointer($ret, retain: true, release: true); - } - - /// inputIsAvailable - @Deprecated('Deprecated') - bool get inputIsAvailable { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputIsAvailable', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_inputIsAvailable); - } - - /// preferredHardwareSampleRate - @Deprecated('Deprecated') - double get preferredHardwareSampleRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredHardwareSampleRate', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - _$$ref.pointer, - _sel_preferredHardwareSampleRate, - ) - : _objc_msgSend_1ukqyt8( - _$$ref.pointer, - _sel_preferredHardwareSampleRate, - ); - } - - /// setActive:withFlags:error: - @Deprecated('Deprecated') - bool setActive(bool active, {required DartNSInteger withFlags}) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setActive:withFlags:error:', - iOS: (false, (4, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_tpnpd0( - _$$ref.pointer, - _sel_setActive_withFlags_error_, - active, - withFlags, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setDelegate: - @Deprecated('No longer supported') - set delegate(AVAudioSessionDelegate? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setDelegate:', - iOS: (false, (4, 0, 0)), - macOS: (true, null), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setDelegate_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setPreferredHardwareSampleRate:error: - @Deprecated('Deprecated') - bool setPreferredHardwareSampleRate(double sampleRate) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredHardwareSampleRate:error:', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_xhvge5( - _$$ref.pointer, - _sel_setPreferredHardwareSampleRate_error_, - sampleRate, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -enum AVAudioSessionErrorCode { - AVAudioSessionErrorCodeNone(0), - AVAudioSessionErrorCodeMediaServicesFailed(1836282486), - AVAudioSessionErrorCodeIsBusy(560030580), - AVAudioSessionErrorCodeIncompatibleCategory(560161140), - AVAudioSessionErrorCodeCannotInterruptOthers(560557684), - AVAudioSessionErrorCodeMissingEntitlement(1701737535), - AVAudioSessionErrorCodeSiriIsRecording(1936290409), - AVAudioSessionErrorCodeCannotStartPlaying(561015905), - AVAudioSessionErrorCodeCannotStartRecording(561145187), - AVAudioSessionErrorCodeBadParam(-50), - AVAudioSessionErrorCodeInsufficientPriority(561017449), - AVAudioSessionErrorCodeResourceNotAvailable(561145203), - AVAudioSessionErrorCodeUnspecified(2003329396), - AVAudioSessionErrorCodeExpiredSession(561210739), - AVAudioSessionErrorCodeSessionNotActive(1768841571); - - final int value; - const AVAudioSessionErrorCode(this.value); - - static AVAudioSessionErrorCode fromValue(int value) => switch (value) { - 0 => AVAudioSessionErrorCodeNone, - 1836282486 => AVAudioSessionErrorCodeMediaServicesFailed, - 560030580 => AVAudioSessionErrorCodeIsBusy, - 560161140 => AVAudioSessionErrorCodeIncompatibleCategory, - 560557684 => AVAudioSessionErrorCodeCannotInterruptOthers, - 1701737535 => AVAudioSessionErrorCodeMissingEntitlement, - 1936290409 => AVAudioSessionErrorCodeSiriIsRecording, - 561015905 => AVAudioSessionErrorCodeCannotStartPlaying, - 561145187 => AVAudioSessionErrorCodeCannotStartRecording, - -50 => AVAudioSessionErrorCodeBadParam, - 561017449 => AVAudioSessionErrorCodeInsufficientPriority, - 561145203 => AVAudioSessionErrorCodeResourceNotAvailable, - 2003329396 => AVAudioSessionErrorCodeUnspecified, - 561210739 => AVAudioSessionErrorCodeExpiredSession, - 1768841571 => AVAudioSessionErrorCodeSessionNotActive, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionErrorCode: $value', - ), - }; -} - -@Deprecated('Deprecated') -const int AVAudioSessionErrorInsufficientPriority = 561017449; - -/// AVAudioSessionHardwareConfiguration -extension AVAudioSessionHardwareConfiguration on AVAudioSession { - /// IOBufferDuration - DartNSTimeInterval get IOBufferDuration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.IOBufferDuration', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_IOBufferDuration) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_IOBufferDuration); - } - - /// inputDataSource - AVAudioSessionDataSourceDescription? get inputDataSource { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputDataSource', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_inputDataSource); - return $ret.address == 0 - ? null - : AVAudioSessionDataSourceDescription.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// inputDataSources - objc.NSArray? get inputDataSources { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputDataSources', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_inputDataSources); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// inputGain - double get inputGain { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputGain', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_inputGain) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_inputGain); - } - - /// inputLatency - DartNSTimeInterval get inputLatency { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputLatency', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_inputLatency) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_inputLatency); - } - - /// inputNumberOfChannels - DartNSInteger get inputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputNumberOfChannels', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_inputNumberOfChannels); - } - - /// inputOrientation - AVAudioStereoOrientation get inputOrientation { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.inputOrientation', - iOS: (false, (14, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_1n4ndiq(_$$ref.pointer, _sel_inputOrientation); - return AVAudioStereoOrientation.fromValue($ret); - } - - /// isInputAvailable - bool get isInputAvailable { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.isInputAvailable', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isInputAvailable); - } - - /// isInputGainSettable - bool get isInputGainSettable { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.isInputGainSettable', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isInputGainSettable); - } - - /// maximumInputNumberOfChannels - DartNSInteger get maximumInputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.maximumInputNumberOfChannels', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_1hz7y9r( - _$$ref.pointer, - _sel_maximumInputNumberOfChannels, - ); - } - - /// maximumOutputNumberOfChannels - DartNSInteger get maximumOutputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.maximumOutputNumberOfChannels', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_1hz7y9r( - _$$ref.pointer, - _sel_maximumOutputNumberOfChannels, - ); - } - - /// outputDataSource - AVAudioSessionDataSourceDescription? get outputDataSource { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.outputDataSource', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_outputDataSource); - return $ret.address == 0 - ? null - : AVAudioSessionDataSourceDescription.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// outputDataSources - objc.NSArray? get outputDataSources { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.outputDataSources', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_outputDataSources); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// outputLatency - DartNSTimeInterval get outputLatency { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.outputLatency', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_outputLatency) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_outputLatency); - } - - /// outputNumberOfChannels - DartNSInteger get outputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.outputNumberOfChannels', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_outputNumberOfChannels); - } - - /// preferredIOBufferDuration - DartNSTimeInterval get preferredIOBufferDuration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredIOBufferDuration', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - _$$ref.pointer, - _sel_preferredIOBufferDuration, - ) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_preferredIOBufferDuration); - } - - /// preferredInputNumberOfChannels - DartNSInteger get preferredInputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredInputNumberOfChannels', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_1hz7y9r( - _$$ref.pointer, - _sel_preferredInputNumberOfChannels, - ); - } - - /// preferredInputOrientation - AVAudioStereoOrientation get preferredInputOrientation { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredInputOrientation', - iOS: (false, (14, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_1n4ndiq( - _$$ref.pointer, - _sel_preferredInputOrientation, - ); - return AVAudioStereoOrientation.fromValue($ret); - } - - /// preferredOutputNumberOfChannels - DartNSInteger get preferredOutputNumberOfChannels { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredOutputNumberOfChannels', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_1hz7y9r( - _$$ref.pointer, - _sel_preferredOutputNumberOfChannels, - ); - } - - /// preferredSampleRate - double get preferredSampleRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredSampleRate', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_preferredSampleRate) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_preferredSampleRate); - } - - /// sampleRate - double get sampleRate { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.sampleRate', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_sampleRate) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_sampleRate); - } - - /// setInputDataSource:error: - bool setInputDataSource(AVAudioSessionDataSourceDescription? dataSource) { - final _$$ref = object$.ref; - final _$$ref$1 = dataSource?.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setInputDataSource:error:', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_l9p60w( - _$$ref.pointer, - _sel_setInputDataSource_error_, - _$$ref$1?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setInputGain:error: - bool setInputGain(double gain) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setInputGain:error:', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1c1ssyi( - _$$ref.pointer, - _sel_setInputGain_error_, - gain, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setOutputDataSource:error: - bool setOutputDataSource(AVAudioSessionDataSourceDescription? dataSource) { - final _$$ref = object$.ref; - final _$$ref$1 = dataSource?.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setOutputDataSource:error:', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_l9p60w( - _$$ref.pointer, - _sel_setOutputDataSource_error_, - _$$ref$1?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPreferredIOBufferDuration:error: - bool setPreferredIOBufferDuration(DartNSTimeInterval duration) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredIOBufferDuration:error:', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_xhvge5( - _$$ref.pointer, - _sel_setPreferredIOBufferDuration_error_, - duration, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPreferredInputNumberOfChannels:error: - bool setPreferredInputNumberOfChannels(DartNSInteger count) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredInputNumberOfChannels:error:', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_165e55c( - _$$ref.pointer, - _sel_setPreferredInputNumberOfChannels_error_, - count, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPreferredInputOrientation:error: - bool setPreferredInputOrientation(AVAudioStereoOrientation orientation) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredInputOrientation:error:', - iOS: (false, (14, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1db3yj( - _$$ref.pointer, - _sel_setPreferredInputOrientation_error_, - orientation.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPreferredOutputNumberOfChannels:error: - bool setPreferredOutputNumberOfChannels(DartNSInteger count) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredOutputNumberOfChannels:error:', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_165e55c( - _$$ref.pointer, - _sel_setPreferredOutputNumberOfChannels_error_, - count, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPreferredSampleRate:error: - bool setPreferredSampleRate(double sampleRate) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredSampleRate:error:', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_xhvge5( - _$$ref.pointer, - _sel_setPreferredSampleRate_error_, - sampleRate, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// supportedOutputChannelLayouts - objc.NSArray get supportedOutputChannelLayouts { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.supportedOutputChannelLayouts', - iOS: (false, (17, 2, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_supportedOutputChannelLayouts, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -enum AVAudioSessionIOType { - AVAudioSessionIOTypeNotSpecified(0), - AVAudioSessionIOTypeAggregated(1); - - final int value; - const AVAudioSessionIOType(this.value); - - static AVAudioSessionIOType fromValue(int value) => switch (value) { - 0 => AVAudioSessionIOTypeNotSpecified, - 1 => AVAudioSessionIOTypeAggregated, - _ => throw ArgumentError('Unknown value for AVAudioSessionIOType: $value'), - }; -} - -@Deprecated('Deprecated') -const int AVAudioSessionInterruptionFlags_ShouldResume = 1; - -sealed class AVAudioSessionInterruptionOptions { - static const AVAudioSessionInterruptionOptionShouldResume = 1; -} - -enum AVAudioSessionInterruptionReason { - AVAudioSessionInterruptionReasonDefault(0), - AVAudioSessionInterruptionReasonAppWasSuspended(1), - AVAudioSessionInterruptionReasonBuiltInMicMuted(2), - AVAudioSessionInterruptionReasonRouteDisconnected(4); - - final int value; - const AVAudioSessionInterruptionReason(this.value); - - static AVAudioSessionInterruptionReason fromValue(int value) => - switch (value) { - 0 => AVAudioSessionInterruptionReasonDefault, - 1 => AVAudioSessionInterruptionReasonAppWasSuspended, - 2 => AVAudioSessionInterruptionReasonBuiltInMicMuted, - 4 => AVAudioSessionInterruptionReasonRouteDisconnected, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionInterruptionReason: $value', - ), - }; -} - -enum AVAudioSessionInterruptionType { - AVAudioSessionInterruptionTypeBegan(1), - AVAudioSessionInterruptionTypeEnded(0); - - final int value; - const AVAudioSessionInterruptionType(this.value); - - static AVAudioSessionInterruptionType fromValue(int value) => switch (value) { - 1 => AVAudioSessionInterruptionTypeBegan, - 0 => AVAudioSessionInterruptionTypeEnded, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionInterruptionType: $value', - ), - }; -} - -typedef AVAudioSessionLocation = ffi.Pointer; -typedef DartAVAudioSessionLocation = objc.NSString; - -enum AVAudioSessionMicrophoneInjectionMode { - AVAudioSessionMicrophoneInjectionModeNone(0), - AVAudioSessionMicrophoneInjectionModeSpokenAudio(1); - - final int value; - const AVAudioSessionMicrophoneInjectionMode(this.value); - - static AVAudioSessionMicrophoneInjectionMode fromValue(int value) => - switch (value) { - 0 => AVAudioSessionMicrophoneInjectionModeNone, - 1 => AVAudioSessionMicrophoneInjectionModeSpokenAudio, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionMicrophoneInjectionMode: $value', - ), - }; -} - -typedef AVAudioSessionMode = ffi.Pointer; -typedef DartAVAudioSessionMode = objc.NSString; -typedef AVAudioSessionOrientation = ffi.Pointer; -typedef DartAVAudioSessionOrientation = objc.NSString; -typedef AVAudioSessionPolarPattern = ffi.Pointer; -typedef DartAVAudioSessionPolarPattern = objc.NSString; -typedef AVAudioSessionPort = ffi.Pointer; -typedef DartAVAudioSessionPort = objc.NSString; - -/// WARNING: AVAudioSessionPortDescription is a stub. To generate bindings for this class, include -/// AVAudioSessionPortDescription in your config's objc-interfaces list. -/// -/// AVAudioSessionPortDescription -extension type AVAudioSessionPortDescription._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioSessionPortDescription] that points to the same underlying object as [other]. - AVAudioSessionPortDescription.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioSessionPortDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } - - /// Constructs a [AVAudioSessionPortDescription] that wraps the given raw object pointer. - AVAudioSessionPortDescription.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioSessionPortDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } -} - -/// WARNING: AVAudioSessionPortExtensionBluetoothMicrophone is a stub. To generate bindings for this class, include -/// AVAudioSessionPortExtensionBluetoothMicrophone in your config's objc-interfaces list. -/// -/// AVAudioSessionPortExtensionBluetoothMicrophone -extension type AVAudioSessionPortExtensionBluetoothMicrophone._( - objc.ObjCObject object$ -) implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioSessionPortExtensionBluetoothMicrophone] that points to the same underlying object as [other]. - AVAudioSessionPortExtensionBluetoothMicrophone.as(objc.ObjCObject other) - : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioSessionPortExtensionBluetoothMicrophone', - iOS: (false, (26, 0, 0)), - macOS: (true, null), - ); - } - - /// Constructs a [AVAudioSessionPortExtensionBluetoothMicrophone] that wraps the given raw object pointer. - AVAudioSessionPortExtensionBluetoothMicrophone.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioSessionPortExtensionBluetoothMicrophone', - iOS: (false, (26, 0, 0)), - macOS: (true, null), - ); - } -} - -enum AVAudioSessionPortOverride { - AVAudioSessionPortOverrideNone(0), - AVAudioSessionPortOverrideSpeaker(1936747378); - - final int value; - const AVAudioSessionPortOverride(this.value); - - static AVAudioSessionPortOverride fromValue(int value) => switch (value) { - 0 => AVAudioSessionPortOverrideNone, - 1936747378 => AVAudioSessionPortOverrideSpeaker, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionPortOverride: $value', - ), - }; -} - -enum AVAudioSessionPromptStyle { - AVAudioSessionPromptStyleNone(1852796517), - AVAudioSessionPromptStyleShort(1936224884), - AVAudioSessionPromptStyleNormal(1852992876); - - final int value; - const AVAudioSessionPromptStyle(this.value); - - static AVAudioSessionPromptStyle fromValue(int value) => switch (value) { - 1852796517 => AVAudioSessionPromptStyleNone, - 1936224884 => AVAudioSessionPromptStyleShort, - 1852992876 => AVAudioSessionPromptStyleNormal, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionPromptStyle: $value', - ), - }; -} - -enum AVAudioSessionRecordPermission { - AVAudioSessionRecordPermissionUndetermined(1970168948), - AVAudioSessionRecordPermissionDenied(1684369017), - AVAudioSessionRecordPermissionGranted(1735552628); - - final int value; - const AVAudioSessionRecordPermission(this.value); - - static AVAudioSessionRecordPermission fromValue(int value) => switch (value) { - 1970168948 => AVAudioSessionRecordPermissionUndetermined, - 1684369017 => AVAudioSessionRecordPermissionDenied, - 1735552628 => AVAudioSessionRecordPermissionGranted, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionRecordPermission: $value', - ), - }; -} - -enum AVAudioSessionRenderingMode { - AVAudioSessionRenderingModeNotApplicable(0), - AVAudioSessionRenderingModeMonoStereo(1), - AVAudioSessionRenderingModeSurround(2), - AVAudioSessionRenderingModeSpatialAudio(3), - AVAudioSessionRenderingModeDolbyAudio(4), - AVAudioSessionRenderingModeDolbyAtmos(5); - - final int value; - const AVAudioSessionRenderingMode(this.value); - - static AVAudioSessionRenderingMode fromValue(int value) => switch (value) { - 0 => AVAudioSessionRenderingModeNotApplicable, - 1 => AVAudioSessionRenderingModeMonoStereo, - 2 => AVAudioSessionRenderingModeSurround, - 3 => AVAudioSessionRenderingModeSpatialAudio, - 4 => AVAudioSessionRenderingModeDolbyAudio, - 5 => AVAudioSessionRenderingModeDolbyAtmos, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionRenderingMode: $value', - ), - }; -} - -enum AVAudioSessionRouteChangeReason { - AVAudioSessionRouteChangeReasonUnknown(0), - AVAudioSessionRouteChangeReasonNewDeviceAvailable(1), - AVAudioSessionRouteChangeReasonOldDeviceUnavailable(2), - AVAudioSessionRouteChangeReasonCategoryChange(3), - AVAudioSessionRouteChangeReasonOverride(4), - AVAudioSessionRouteChangeReasonWakeFromSleep(6), - AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory(7), - AVAudioSessionRouteChangeReasonRouteConfigurationChange(8); - - final int value; - const AVAudioSessionRouteChangeReason(this.value); - - static AVAudioSessionRouteChangeReason fromValue(int value) => - switch (value) { - 0 => AVAudioSessionRouteChangeReasonUnknown, - 1 => AVAudioSessionRouteChangeReasonNewDeviceAvailable, - 2 => AVAudioSessionRouteChangeReasonOldDeviceUnavailable, - 3 => AVAudioSessionRouteChangeReasonCategoryChange, - 4 => AVAudioSessionRouteChangeReasonOverride, - 6 => AVAudioSessionRouteChangeReasonWakeFromSleep, - 7 => AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory, - 8 => AVAudioSessionRouteChangeReasonRouteConfigurationChange, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionRouteChangeReason: $value', - ), - }; -} - -/// WARNING: AVAudioSessionRouteDescription is a stub. To generate bindings for this class, include -/// AVAudioSessionRouteDescription in your config's objc-interfaces list. -/// -/// AVAudioSessionRouteDescription -extension type AVAudioSessionRouteDescription._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [AVAudioSessionRouteDescription] that points to the same underlying object as [other]. - AVAudioSessionRouteDescription.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'AVAudioSessionRouteDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } - - /// Constructs a [AVAudioSessionRouteDescription] that wraps the given raw object pointer. - AVAudioSessionRouteDescription.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'AVAudioSessionRouteDescription', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - } -} - -enum AVAudioSessionRouteSharingPolicy { - AVAudioSessionRouteSharingPolicyDefault(0), - AVAudioSessionRouteSharingPolicyLongFormAudio(1), - AVAudioSessionRouteSharingPolicyIndependent(2), - AVAudioSessionRouteSharingPolicyLongFormVideo(3); - - static const AVAudioSessionRouteSharingPolicyLongForm = - AVAudioSessionRouteSharingPolicyLongFormAudio; - - final int value; - const AVAudioSessionRouteSharingPolicy(this.value); - - static AVAudioSessionRouteSharingPolicy fromValue(int value) => - switch (value) { - 0 => AVAudioSessionRouteSharingPolicyDefault, - 1 => AVAudioSessionRouteSharingPolicyLongFormAudio, - 2 => AVAudioSessionRouteSharingPolicyIndependent, - 3 => AVAudioSessionRouteSharingPolicyLongFormVideo, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionRouteSharingPolicy: $value', - ), - }; - - @override - String toString() { - if (this == AVAudioSessionRouteSharingPolicyLongFormAudio) - return "AVAudioSessionRouteSharingPolicy.AVAudioSessionRouteSharingPolicyLongFormAudio, AVAudioSessionRouteSharingPolicy.AVAudioSessionRouteSharingPolicyLongForm"; - return super.toString(); - } -} - -@Deprecated('Deprecated') -const int AVAudioSessionSetActiveFlags_NotifyOthersOnDeactivation = 1; - -sealed class AVAudioSessionSetActiveOptions { - static const AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation = 1; -} - -enum AVAudioSessionSilenceSecondaryAudioHintType { - AVAudioSessionSilenceSecondaryAudioHintTypeBegin(1), - AVAudioSessionSilenceSecondaryAudioHintTypeEnd(0); - - final int value; - const AVAudioSessionSilenceSecondaryAudioHintType(this.value); - - static AVAudioSessionSilenceSecondaryAudioHintType fromValue( - int value, - ) => switch (value) { - 1 => AVAudioSessionSilenceSecondaryAudioHintTypeBegin, - 0 => AVAudioSessionSilenceSecondaryAudioHintTypeEnd, - _ => throw ArgumentError( - 'Unknown value for AVAudioSessionSilenceSecondaryAudioHintType: $value', - ), - }; -} - -enum AVAudioStereoOrientation { - AVAudioStereoOrientationNone(0), - AVAudioStereoOrientationPortrait(1), - AVAudioStereoOrientationPortraitUpsideDown(2), - AVAudioStereoOrientationLandscapeRight(3), - AVAudioStereoOrientationLandscapeLeft(4); - - final int value; - const AVAudioStereoOrientation(this.value); - - static AVAudioStereoOrientation fromValue(int value) => switch (value) { - 0 => AVAudioStereoOrientationNone, - 1 => AVAudioStereoOrientationPortrait, - 2 => AVAudioStereoOrientationPortraitUpsideDown, - 3 => AVAudioStereoOrientationLandscapeRight, - 4 => AVAudioStereoOrientationLandscapeLeft, - _ => throw ArgumentError( - 'Unknown value for AVAudioStereoOrientation: $value', - ), - }; -} - -typedef AVAudioUInteger = ffi.UnsignedLong; -typedef DartAVAudioUInteger = int; -typedef AVMusicTimeStamp = ffi.Double; -typedef DartAVMusicTimeStamp = double; - -sealed class AXCopyMultipleAttributeOptions { - static const kAXCopyMultipleAttributeOptionStopOnError = 1; -} - -enum AXError { - kAXErrorSuccess(0), - kAXErrorFailure(-25200), - kAXErrorIllegalArgument(-25201), - kAXErrorInvalidUIElement(-25202), - kAXErrorInvalidUIElementObserver(-25203), - kAXErrorCannotComplete(-25204), - kAXErrorAttributeUnsupported(-25205), - kAXErrorActionUnsupported(-25206), - kAXErrorNotificationUnsupported(-25207), - kAXErrorNotImplemented(-25208), - kAXErrorNotificationAlreadyRegistered(-25209), - kAXErrorNotificationNotRegistered(-25210), - kAXErrorAPIDisabled(-25211), - kAXErrorNoValue(-25212), - kAXErrorParameterizedAttributeUnsupported(-25213), - kAXErrorNotEnoughPrecision(-25214); - - final int value; - const AXError(this.value); - - static AXError fromValue(int value) => switch (value) { - 0 => kAXErrorSuccess, - -25200 => kAXErrorFailure, - -25201 => kAXErrorIllegalArgument, - -25202 => kAXErrorInvalidUIElement, - -25203 => kAXErrorInvalidUIElementObserver, - -25204 => kAXErrorCannotComplete, - -25205 => kAXErrorAttributeUnsupported, - -25206 => kAXErrorActionUnsupported, - -25207 => kAXErrorNotificationUnsupported, - -25208 => kAXErrorNotImplemented, - -25209 => kAXErrorNotificationAlreadyRegistered, - -25210 => kAXErrorNotificationNotRegistered, - -25211 => kAXErrorAPIDisabled, - -25212 => kAXErrorNoValue, - -25213 => kAXErrorParameterizedAttributeUnsupported, - -25214 => kAXErrorNotEnoughPrecision, - _ => throw ArgumentError('Unknown value for AXError: $value'), - }; -} - -sealed class AXMenuItemModifiers { - static const kAXMenuItemModifierNone = 0; - static const kAXMenuItemModifierShift = 1; - static const kAXMenuItemModifierOption = 2; - static const kAXMenuItemModifierControl = 4; - static const kAXMenuItemModifierNoCommand = 8; -} - -typedef AXObserverCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, - ffi.Pointer refcon, - ) - > - >; -typedef AXObserverCallbackWithInfo = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - AXObserverRef observer, - AXUIElementRef element, - CFStringRef notification, - CFDictionaryRef info, - ffi.Pointer refcon, - ) - > - >; -typedef AXObserverRef = ffi.Pointer<__AXObserver>; - -enum AXPriority { - kAXPriorityLow(10), - kAXPriorityMedium(50), - kAXPriorityHigh(90); - - final int value; - const AXPriority(this.value); - - static AXPriority fromValue(int value) => switch (value) { - 10 => kAXPriorityLow, - 50 => kAXPriorityMedium, - 90 => kAXPriorityHigh, - _ => throw ArgumentError('Unknown value for AXPriority: $value'), - }; -} - -typedef AXTextMarkerRangeRef = ffi.Pointer<__AXTextMarkerRange>; -typedef AXTextMarkerRef = ffi.Pointer<__AXTextMarker>; -typedef AXUIElementRef = ffi.Pointer<__AXUIElement>; - -enum AXUnderlineStyle { - kAXUnderlineStyleNone(0), - kAXUnderlineStyleSingle(1), - kAXUnderlineStyleThick(2), - kAXUnderlineStyleDouble(9); - - final int value; - const AXUnderlineStyle(this.value); - - static AXUnderlineStyle fromValue(int value) => switch (value) { - 0 => kAXUnderlineStyleNone, - 1 => kAXUnderlineStyleSingle, - 2 => kAXUnderlineStyleThick, - 9 => kAXUnderlineStyleDouble, - _ => throw ArgumentError('Unknown value for AXUnderlineStyle: $value'), - }; -} - -typedef AXValueRef = ffi.Pointer<__AXValue>; - -enum AXValueType { - kAXValueTypeCGPoint(1), - kAXValueTypeCGSize(2), - kAXValueTypeCGRect(3), - kAXValueTypeCFRange(4), - kAXValueTypeAXError(5), - kAXValueTypeIllegal(0); - - final int value; - const AXValueType(this.value); - - static AXValueType fromValue(int value) => switch (value) { - 1 => kAXValueTypeCGPoint, - 2 => kAXValueTypeCGSize, - 3 => kAXValueTypeCGRect, - 4 => kAXValueTypeCFRange, - 5 => kAXValueTypeAXError, - 0 => kAXValueTypeIllegal, - _ => throw ArgumentError('Unknown value for AXValueType: $value'), - }; -} - -typedef AbsoluteTime = UnsignedWide; - -/// Activation -extension Activation on AVAudioSession { - /// activateWithOptions:completionHandler: - void activateWithOptions( - DartNSUInteger options, { - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = completionHandler.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.activateWithOptions:completionHandler:', - iOS: (true, null), - macOS: (true, null), - ); - _objc_msgSend_ivnkdn( - _$$ref.pointer, - _sel_activateWithOptions_completionHandler_, - options, - _$$ref$1.pointer, - ); - } - - /// setActive:error: - bool setActive(bool active) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setActive:error:', - iOS: (false, (3, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_164wts2( - _$$ref.pointer, - _sel_setActive_error_, - active, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setActive:withOptions:error: - bool setActive$1(bool active, {required DartNSUInteger withOptions}) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setActive:withOptions:error:', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1nqw6vl( - _$$ref.pointer, - _sel_setActive_withOptions_error_, - active, - withOptions, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -typedef AliasHandle = ffi.Pointer; -typedef AliasInfoType = ffi.Short; -typedef DartAliasInfoType = int; -typedef AliasPtr = ffi.Pointer; - -final class AliasRecord extends ffi.Struct { - @ffi.Array.multi([6]) - external ffi.Array hidden; -} - -final class AnchorPoint extends ffi.Struct { - @SInt16() - external int x; - - @SInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -@ffi.Packed(2) -final class AnchorPointTable extends ffi.Struct { - @UInt32() - external int nPoints; - - @ffi.Array.multi([1]) - external ffi.Array points; -} - -@ffi.Packed(2) -final class AnkrTable extends ffi.Struct { - @UInt16() - external int version; - - @UInt16() - external int flags; - - @UInt32() - external int lookupTableOffset; - - @UInt32() - external int anchorPointTableOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int flags, - required int lookupTableOffset, - required int anchorPointTableOffset, - }) => $allocator() - ..ref.version = version - ..ref.flags = flags - ..ref.lookupTableOffset = lookupTableOffset - ..ref.anchorPointTableOffset = anchorPointTableOffset; -} - -const int AnnotationID = 1095650895; - -@ffi.Packed(2) -final class AppParameters extends ffi.Struct { - external UnnamedStruct theMsgEvent; - - @UInt32() - external int eventRefCon; - - @UInt32() - external int messageLength; -} - -typedef AppParametersPtr = ffi.Pointer; -typedef AppleEvent = AERecord; -typedef AppleEventPtr = ffi.Pointer; - -const int AppleShareMediaType = 1634103405; - -@ffi.Packed(2) -final class ApplicationSpecificChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @OSType() - external int applicationSignature; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef ApplicationSpecificChunkPtr = ffi.Pointer; - -const int ApplicationSpecificID = 1095782476; - -typedef AreaID = ffi.Pointer; - -final class AsscEntry extends ffi.Struct { - @SInt16() - external int fontSize; - - @SInt16() - external int fontStyle; - - @SInt16() - external int fontID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fontSize, - required int fontStyle, - required int fontID, - }) => $allocator() - ..ref.fontSize = fontSize - ..ref.fontStyle = fontStyle - ..ref.fontID = fontID; -} - -final class AudioBuffer extends ffi.Struct { - @UInt32() - external int mNumberChannels; - - @UInt32() - external int mDataByteSize; - - external ffi.Pointer mData; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mNumberChannels, - required int mDataByteSize, - required ffi.Pointer mData, - }) => $allocator() - ..ref.mNumberChannels = mNumberChannels - ..ref.mDataByteSize = mDataByteSize - ..ref.mData = mData; -} - -final class AudioBufferList extends ffi.Struct { - @UInt32() - external int mNumberBuffers; - - @ffi.Array.multi([1]) - external ffi.Array mBuffers; -} - -sealed class AudioChannelBitmap { - static const kAudioChannelBit_Left = 1; - static const kAudioChannelBit_Right = 2; - static const kAudioChannelBit_Center = 4; - static const kAudioChannelBit_LFEScreen = 8; - static const kAudioChannelBit_LeftSurround = 16; - static const kAudioChannelBit_RightSurround = 32; - static const kAudioChannelBit_LeftCenter = 64; - static const kAudioChannelBit_RightCenter = 128; - static const kAudioChannelBit_CenterSurround = 256; - static const kAudioChannelBit_LeftSurroundDirect = 512; - static const kAudioChannelBit_RightSurroundDirect = 1024; - static const kAudioChannelBit_TopCenterSurround = 2048; - static const kAudioChannelBit_VerticalHeightLeft = 4096; - static const kAudioChannelBit_VerticalHeightCenter = 8192; - static const kAudioChannelBit_VerticalHeightRight = 16384; - static const kAudioChannelBit_TopBackLeft = 32768; - static const kAudioChannelBit_TopBackCenter = 65536; - static const kAudioChannelBit_TopBackRight = 131072; - static const kAudioChannelBit_LeftTopFront = 4096; - static const kAudioChannelBit_CenterTopFront = 8192; - static const kAudioChannelBit_RightTopFront = 16384; - static const kAudioChannelBit_LeftTopMiddle = 2097152; - static const kAudioChannelBit_CenterTopMiddle = 2048; - static const kAudioChannelBit_RightTopMiddle = 8388608; - static const kAudioChannelBit_LeftTopRear = 16777216; - static const kAudioChannelBit_CenterTopRear = 33554432; - static const kAudioChannelBit_RightTopRear = 67108864; -} - -enum AudioChannelCoordinateIndex { - kAudioChannelCoordinates_LeftRight(0), - kAudioChannelCoordinates_BackFront(1), - kAudioChannelCoordinates_DownUp(2); - - static const kAudioChannelCoordinates_Azimuth = - kAudioChannelCoordinates_LeftRight; - static const kAudioChannelCoordinates_Elevation = - kAudioChannelCoordinates_BackFront; - static const kAudioChannelCoordinates_Distance = - kAudioChannelCoordinates_DownUp; - - final int value; - const AudioChannelCoordinateIndex(this.value); - - static AudioChannelCoordinateIndex fromValue(int value) => switch (value) { - 0 => kAudioChannelCoordinates_LeftRight, - 1 => kAudioChannelCoordinates_BackFront, - 2 => kAudioChannelCoordinates_DownUp, - _ => throw ArgumentError( - 'Unknown value for AudioChannelCoordinateIndex: $value', - ), - }; - - @override - String toString() { - if (this == kAudioChannelCoordinates_LeftRight) - return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_LeftRight, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Azimuth"; - if (this == kAudioChannelCoordinates_BackFront) - return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_BackFront, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Elevation"; - if (this == kAudioChannelCoordinates_DownUp) - return "AudioChannelCoordinateIndex.kAudioChannelCoordinates_DownUp, AudioChannelCoordinateIndex.kAudioChannelCoordinates_Distance"; - return super.toString(); - } -} - -final class AudioChannelDescription extends ffi.Struct { - @AudioChannelLabel() - external int mChannelLabel; - - @UInt32() - external int mChannelFlags; - - @ffi.Array.multi([3]) - external ffi.Array mCoordinates; -} - -sealed class AudioChannelFlags { - static const kAudioChannelFlags_AllOff = 0; - static const kAudioChannelFlags_RectangularCoordinates = 1; - static const kAudioChannelFlags_SphericalCoordinates = 2; - static const kAudioChannelFlags_Meters = 4; -} - -typedef AudioChannelLabel = UInt32; - -final class AudioChannelLayout extends ffi.Struct { - @AudioChannelLayoutTag() - external int mChannelLayoutTag; - - @UInt32() - external int mChannelBitmap; - - @UInt32() - external int mNumberChannelDescriptions; - - @ffi.Array.multi([1]) - external ffi.Array mChannelDescriptions; -} - -typedef AudioChannelLayoutTag = UInt32; - -final class AudioClassDescription extends ffi.Struct { - @OSType() - external int mType; - - @OSType() - external int mSubType; - - @OSType() - external int mManufacturer; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mType, - required int mSubType, - required int mManufacturer, - }) => $allocator() - ..ref.mType = mType - ..ref.mSubType = mSubType - ..ref.mManufacturer = mManufacturer; -} - -typedef AudioFormatFlags = UInt32; -typedef AudioFormatID = UInt32; - -final class AudioFormatListItem extends ffi.Struct { - external AudioStreamBasicDescription mASBD; - - @AudioChannelLayoutTag() - external int mChannelLayoutTag; -} - -@ffi.Packed(2) -final class AudioRecordingChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @ffi.Array.multi([24]) - external ffi.Array AESChannelStatus; -} - -typedef AudioRecordingChunkPtr = ffi.Pointer; - -const int AudioRecordingID = 1095062340; - -typedef AudioSampleType = Float32; -typedef AudioSessionID = ffi.Uint32; -typedef DartAudioSessionID = int; - -final class AudioStreamBasicDescription extends ffi.Struct { - @Float64() - external double mSampleRate; - - @AudioFormatID() - external int mFormatID; - - @AudioFormatFlags() - external int mFormatFlags; - - @UInt32() - external int mBytesPerPacket; - - @UInt32() - external int mFramesPerPacket; - - @UInt32() - external int mBytesPerFrame; - - @UInt32() - external int mChannelsPerFrame; - - @UInt32() - external int mBitsPerChannel; - - @UInt32() - external int mReserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double mSampleRate, - required int mFormatID, - required int mFormatFlags, - required int mBytesPerPacket, - required int mFramesPerPacket, - required int mBytesPerFrame, - required int mChannelsPerFrame, - required int mBitsPerChannel, - required int mReserved, - }) => $allocator() - ..ref.mSampleRate = mSampleRate - ..ref.mFormatID = mFormatID - ..ref.mFormatFlags = mFormatFlags - ..ref.mBytesPerPacket = mBytesPerPacket - ..ref.mFramesPerPacket = mFramesPerPacket - ..ref.mBytesPerFrame = mBytesPerFrame - ..ref.mChannelsPerFrame = mChannelsPerFrame - ..ref.mBitsPerChannel = mBitsPerChannel - ..ref.mReserved = mReserved; -} - -final class AudioStreamPacketDependencyDescription extends ffi.Struct { - @UInt32() - external int mIsIndependentlyDecodable; - - @UInt32() - external int mPreRollCount; - - @UInt32() - external int mFlags; - - @UInt32() - external int mReserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mIsIndependentlyDecodable, - required int mPreRollCount, - required int mFlags, - required int mReserved, - }) => $allocator() - ..ref.mIsIndependentlyDecodable = mIsIndependentlyDecodable - ..ref.mPreRollCount = mPreRollCount - ..ref.mFlags = mFlags - ..ref.mReserved = mReserved; -} - -final class AudioStreamPacketDescription extends ffi.Struct { - @SInt64() - external int mStartOffset; - - @UInt32() - external int mVariableFramesInPacket; - - @UInt32() - external int mDataByteSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mStartOffset, - required int mVariableFramesInPacket, - required int mDataByteSize, - }) => $allocator() - ..ref.mStartOffset = mStartOffset - ..ref.mVariableFramesInPacket = mVariableFramesInPacket - ..ref.mDataByteSize = mDataByteSize; -} - -final class AudioTimeStamp extends ffi.Struct { - @Float64() - external double mSampleTime; - - @UInt64() - external int mHostTime; - - @Float64() - external double mRateScalar; - - @UInt64() - external int mWordClockTime; - - external SMPTETime mSMPTETime; - - @UInt32() - external int mFlags; - - @UInt32() - external int mReserved; -} - -sealed class AudioTimeStampFlags { - static const kAudioTimeStampNothingValid = 0; - static const kAudioTimeStampSampleTimeValid = 1; - static const kAudioTimeStampHostTimeValid = 2; - static const kAudioTimeStampRateScalarValid = 4; - static const kAudioTimeStampWordClockTimeValid = 8; - static const kAudioTimeStampSMPTETimeValid = 16; - static const kAudioTimeStampSampleHostTimeValid = 3; -} - -typedef AudioUnitSampleType = Float32; - -final class AudioValueRange extends ffi.Struct { - @Float64() - external double mMinimum; - - @Float64() - external double mMaximum; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double mMinimum, - required double mMaximum, - }) => $allocator() - ..ref.mMinimum = mMinimum - ..ref.mMaximum = mMaximum; -} - -final class AudioValueTranslation extends ffi.Struct { - external ffi.Pointer mInputData; - - @UInt32() - external int mInputDataSize; - - external ffi.Pointer mOutputData; - - @UInt32() - external int mOutputDataSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer mInputData, - required int mInputDataSize, - required ffi.Pointer mOutputData, - required int mOutputDataSize, - }) => $allocator() - ..ref.mInputData = mInputData - ..ref.mInputDataSize = mInputDataSize - ..ref.mOutputData = mOutputData - ..ref.mOutputDataSize = mOutputDataSize; -} - -const int AuthorID = 1096111176; - -typedef AuthorizationAsyncCallback = ffi.Pointer; -typedef DartAuthorizationAsyncCallback = - objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >; -typedef AuthorizationEnvironment = AuthorizationItemSet; - -final class AuthorizationExternalForm extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array bytes; -} - -sealed class AuthorizationFlags { - static const kAuthorizationFlagDefaults = 0; - static const kAuthorizationFlagInteractionAllowed = 1; - static const kAuthorizationFlagExtendRights = 2; - static const kAuthorizationFlagPartialRights = 4; - static const kAuthorizationFlagDestroyRights = 8; - static const kAuthorizationFlagPreAuthorize = 16; - static const kAuthorizationFlagSkipInternalAuth = 512; - static const kAuthorizationFlagNoData = 1048576; -} - -final class AuthorizationItem extends ffi.Struct { - external AuthorizationString name; - - @ffi.Size() - external int valueLength; - - external ffi.Pointer value; - - @UInt32() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required AuthorizationString name, - required int valueLength, - required ffi.Pointer value, - required int flags, - }) => $allocator() - ..ref.name = name - ..ref.valueLength = valueLength - ..ref.value = value - ..ref.flags = flags; -} - -final class AuthorizationItemSet extends ffi.Struct { - @UInt32() - external int count; - - external ffi.Pointer items; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required ffi.Pointer items, - }) => $allocator() - ..ref.count = count - ..ref.items = items; -} - -final class AuthorizationOpaqueRef extends ffi.Opaque {} - -typedef AuthorizationRef = ffi.Pointer; -typedef AuthorizationRights = AuthorizationItemSet; -typedef AuthorizationString = ffi.Pointer; - -@ffi.Packed(2) -final class BTHeaderRec extends ffi.Struct { - @u_int16_t() - external int treeDepth; - - @u_int32_t() - external int rootNode; - - @u_int32_t() - external int leafRecords; - - @u_int32_t() - external int firstLeafNode; - - @u_int32_t() - external int lastLeafNode; - - @u_int16_t() - external int nodeSize; - - @u_int16_t() - external int maxKeyLength; - - @u_int32_t() - external int totalNodes; - - @u_int32_t() - external int freeNodes; - - @u_int16_t() - external int reserved1; - - @u_int32_t() - external int clumpSize; - - @u_int8_t() - external int btreeType; - - @u_int8_t() - external int keyCompareType; - - @u_int32_t() - external int attributes; - - @ffi.Array.multi([16]) - external ffi.Array reserved3; -} - -@ffi.Packed(2) -final class BTNodeDescriptor extends ffi.Struct { - @u_int32_t() - external int fLink; - - @u_int32_t() - external int bLink; - - @ffi.Int8() - external int kind; - - @u_int8_t() - external int height; - - @u_int16_t() - external int numRecords; - - @u_int16_t() - external int reserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fLink, - required int bLink, - required int kind, - required int height, - required int numRecords, - required int reserved, - }) => $allocator() - ..ref.fLink = fLink - ..ref.bLink = bLink - ..ref.kind = kind - ..ref.height = height - ..ref.numRecords = numRecords - ..ref.reserved = reserved; -} - -final class BTreeKey extends ffi.Union { - @u_int8_t() - external int length8; - - @u_int16_t() - external int length16; - - @ffi.Array.multi([522]) - external ffi.Array rawData; -} - -enum BTreeKeyLimits { - kMaxKeyLength(520); - - final int value; - const BTreeKeyLimits(this.value); - - static BTreeKeyLimits fromValue(int value) => switch (value) { - 520 => kMaxKeyLength, - _ => throw ArgumentError('Unknown value for BTreeKeyLimits: $value'), - }; -} - -@ffi.Packed(2) -final class BigEndianFixed extends ffi.Struct { - @Fixed() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BigEndianLong extends ffi.Struct { - @ffi.Long() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BigEndianOSType extends ffi.Struct { - @OSType() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => $allocator()..ref.bigEndianValue = bigEndianValue; -} - -final class BigEndianShort extends ffi.Struct { - @ffi.Short() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BigEndianUInt32 extends ffi.Struct { - @UInt32() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BigEndianUnsignedFixed extends ffi.Struct { - @UnsignedFixed() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => - $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BigEndianUnsignedLong extends ffi.Struct { - @ffi.UnsignedLong() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => - $allocator()..ref.bigEndianValue = bigEndianValue; -} - -final class BigEndianUnsignedShort extends ffi.Struct { - @ffi.UnsignedShort() - external int bigEndianValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int bigEndianValue, - }) => - $allocator()..ref.bigEndianValue = bigEndianValue; -} - -@ffi.Packed(2) -final class BitMap extends ffi.Struct { - external Ptr baseAddr; - - @ffi.Short() - external int rowBytes; - - external Rect bounds; -} - -typedef BitMapHandle = ffi.Pointer; -typedef BitMapPtr = ffi.Pointer; - -/// BluetoothMicrophoneExtension -extension BluetoothMicrophoneExtension on AVAudioSessionPortDescription { - /// bluetoothMicrophoneExtension - AVAudioSessionPortExtensionBluetoothMicrophone? - get bluetoothMicrophoneExtension { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSessionPortDescription.bluetoothMicrophoneExtension', - iOS: (false, (26, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_bluetoothMicrophoneExtension, - ); - return $ret.address == 0 - ? null - : AVAudioSessionPortExtensionBluetoothMicrophone.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -typedef Boolean = ffi.UnsignedChar; -typedef DartBoolean = int; -typedef BslnBaselineClass = UInt32; - -final class BslnFormat0Part extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array deltas; -} - -final class BslnFormat1Part extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array deltas; - - external SFNTLookupTable mappingData; -} - -final class BslnFormat2Part extends ffi.Struct { - @UInt16() - external int stdGlyph; - - @ffi.Array.multi([32]) - external ffi.Array ctlPoints; -} - -final class BslnFormat3Part extends ffi.Struct { - @UInt16() - external int stdGlyph; - - @ffi.Array.multi([32]) - external ffi.Array ctlPoints; - - external SFNTLookupTable mappingData; -} - -final class BslnFormatUnion extends ffi.Union { - external BslnFormat0Part fmt0Part; - - external BslnFormat1Part fmt1Part; - - external BslnFormat2Part fmt2Part; - - external BslnFormat3Part fmt3Part; -} - -@ffi.Packed(2) -final class BslnTable extends ffi.Struct { - @Fixed() - external int version; - - @BslnTableFormat() - external int format; - - @UInt16() - external int defaultBaseline; - - external BslnFormatUnion parts; -} - -typedef BslnTableFormat = UInt16; -typedef BslnTablePtr = ffi.Pointer; -typedef Byte = UInt8; -typedef ByteCount = ffi.UnsignedLong; -typedef DartByteCount = int; -typedef ByteOffset = ffi.UnsignedLong; -typedef DartByteOffset = int; -typedef BytePtr = ffi.Pointer; - -/// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include -/// CASpatialAudioExperience in your config's objc-interfaces list. -/// -/// CASpatialAudioExperience -extension type CASpatialAudioExperience._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [CASpatialAudioExperience] that points to the same underlying object as [other]. - CASpatialAudioExperience.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [CASpatialAudioExperience] that wraps the given raw object pointer. - CASpatialAudioExperience.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -const int CDEFNFnd = 88; - -typedef CE_AccessDescription = __CE_AccessDescription; -typedef CE_AuthorityInfoAccess = __CE_AuthorityInfoAccess; -typedef CE_AuthorityKeyID = __CE_AuthorityKeyID; -typedef CE_BasicConstraints = __CE_BasicConstraints; -typedef CE_CRLDistPointsSyntax = __CE_CRLDistPointsSyntax; -typedef CE_CRLDistributionPoint = __CE_CRLDistributionPoint; -typedef CE_CertPolicies = __CE_CertPolicies; -typedef CE_CrlDistReasonFlags = uint8; -typedef CE_CrlNumber = uint32; -typedef CE_CrlReason = uint32; - -final class CE_Data extends ffi.Union { - external CE_AuthorityKeyID authorityKeyID; - - external CE_SubjectKeyID subjectKeyID; - - @CE_KeyUsage() - external int keyUsage; - - external CE_GeneralNames subjectAltName; - - external CE_GeneralNames issuerAltName; - - external CE_ExtendedKeyUsage extendedKeyUsage; - - external CE_BasicConstraints basicConstraints; - - external CE_CertPolicies certPolicies; - - @CE_NetscapeCertType() - external int netscapeCertType; - - @CE_CrlNumber() - external int crlNumber; - - @CE_DeltaCrl() - external int deltaCrl; - - @CE_CrlReason() - external int crlReason; - - external CE_CRLDistPointsSyntax crlDistPoints; - - external CE_IssuingDistributionPoint issuingDistPoint; - - external CE_AuthorityInfoAccess authorityInfoAccess; - - external CE_QC_Statements qualifiedCertStatements; - - external CE_NameConstraints nameConstraints; - - external CE_PolicyMappings policyMappings; - - external CE_PolicyConstraints policyConstraints; - - @CE_InhibitAnyPolicy() - external int inhibitAnyPolicy; - - external SecAsn1Item rawData; -} - -typedef CE_DataAndType = __CE_DataAndType; -typedef CE_DeltaCrl = uint32; -typedef CE_DistributionPointName = __CE_DistributionPointName; -typedef CE_ExtendedKeyUsage = __CE_ExtendedKeyUsage; -typedef CE_GeneralName = __CE_GeneralName; -typedef CE_GeneralNames = __CE_GeneralNames; -typedef CE_GeneralSubtree = __CE_GeneralSubtree; -typedef CE_GeneralSubtrees = __CE_GeneralSubtrees; -typedef CE_InhibitAnyPolicy = uint32; -typedef CE_IssuingDistributionPoint = __CE_IssuingDistributionPoint; -typedef CE_KeyUsage = uint16; -typedef CE_NameConstraints = __CE_NameConstraints; -typedef CE_NameRegistrationAuthorities = CE_GeneralNames; -typedef CE_NetscapeCertType = uint16; -typedef CE_OtherName = __CE_OtherName; -typedef CE_PolicyConstraints = __CE_PolicyConstraints; -typedef CE_PolicyInformation = __CE_PolicyInformation; -typedef CE_PolicyMapping = __CE_PolicyMapping; -typedef CE_PolicyMappings = __CE_PolicyMappings; -typedef CE_PolicyQualifierInfo = __CE_PolicyQualifierInfo; -typedef CE_QC_Statement = __CE_QC_Statement; -typedef CE_QC_Statements = __CE_QC_Statements; -typedef CE_SemanticsInformation = __CE_SemanticsInformation; -typedef CE_SubjectKeyID = SecAsn1Item; -typedef CFAbsoluteTime = CFTimeInterval; -typedef CFAllocatorAllocateCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFIndex allocSize, - CFOptionFlags hint, - ffi.Pointer info, - ) - > - >; - -final class CFAllocatorContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - external CFAllocatorAllocateCallBack allocate; - - external CFAllocatorReallocateCallBack reallocate; - - external CFAllocatorDeallocateCallBack deallocate; - - external CFAllocatorPreferredSizeCallBack preferredSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - required CFAllocatorAllocateCallBack allocate, - required CFAllocatorReallocateCallBack reallocate, - required CFAllocatorDeallocateCallBack deallocate, - required CFAllocatorPreferredSizeCallBack preferredSize, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.allocate = allocate - ..ref.reallocate = reallocate - ..ref.deallocate = deallocate - ..ref.preferredSize = preferredSize; -} - -typedef CFAllocatorCopyDescriptionCallBack = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef CFAllocatorDeallocateCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info) - > - >; -typedef CFAllocatorPreferredSizeCallBack = - ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - CFIndex size, - CFOptionFlags hint, - ffi.Pointer info, - ) - > - >; -typedef CFAllocatorReallocateCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer ptr, - CFIndex newsize, - CFOptionFlags hint, - ffi.Pointer info, - ) - > - >; -typedef CFAllocatorRef = ffi.Pointer<__CFAllocator>; -typedef CFAllocatorReleaseCallBack = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef CFAllocatorRetainCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - >; -typedef CFAllocatorTypeID = ffi.UnsignedLongLong; -typedef DartCFAllocatorTypeID = int; -typedef CFArrayApplierFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ) - > - >; - -final class CFArrayCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFArrayRetainCallBack retain; - - external CFArrayReleaseCallBack release; - - external CFArrayCopyDescriptionCallBack copyDescription; - - external CFArrayEqualCallBack equal; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFArrayRetainCallBack retain, - required CFArrayReleaseCallBack release, - required CFArrayCopyDescriptionCallBack copyDescription, - required CFArrayEqualCallBack equal, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal; -} - -typedef CFArrayCopyDescriptionCallBack = - ffi.Pointer< - ffi.NativeFunction value)> - >; -typedef CFArrayEqualCallBack = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ) - > - >; -typedef CFArrayRef = ffi.Pointer<__CFArray>; -typedef CFArrayReleaseCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value) - > - >; -typedef CFArrayRetainCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer value, - ) - > - >; -typedef CFAttributedStringRef = ffi.Pointer<__CFAttributedString>; -typedef CFBagApplierFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ) - > - >; - -final class CFBagCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFBagRetainCallBack retain; - - external CFBagReleaseCallBack release; - - external CFBagCopyDescriptionCallBack copyDescription; - - external CFBagEqualCallBack equal; - - external CFBagHashCallBack hash; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFBagRetainCallBack retain, - required CFBagReleaseCallBack release, - required CFBagCopyDescriptionCallBack copyDescription, - required CFBagEqualCallBack equal, - required CFBagHashCallBack hash, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal - ..ref.hash = hash; -} - -typedef CFBagCopyDescriptionCallBack = - ffi.Pointer< - ffi.NativeFunction value)> - >; -typedef CFBagEqualCallBack = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ) - > - >; -typedef CFBagHashCallBack = - ffi.Pointer< - ffi.NativeFunction value)> - >; -typedef CFBagRef = ffi.Pointer<__CFBag>; -typedef CFBagReleaseCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value) - > - >; -typedef CFBagRetainCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer value, - ) - > - >; -typedef CFBinaryHeapApplierFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer val, - ffi.Pointer context, - ) - > - >; - -final class CFBinaryHeapCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer ptr, - ) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer ptr) - > - > - release; - - external ffi.Pointer< - ffi.NativeFunction ptr)> - > - copyDescription; - - external ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer ptr1, - ffi.Pointer ptr2, - ffi.Pointer context, - ) - > - > - compare; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer ptr, - ) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer ptr) - > - > - release, - required ffi.Pointer< - ffi.NativeFunction ptr)> - > - copyDescription, - required ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer ptr1, - ffi.Pointer ptr2, - ffi.Pointer context, - ) - > - > - compare, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.compare = compare; -} - -final class CFBinaryHeapCompareContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFBinaryHeapRef = ffi.Pointer<__CFBinaryHeap>; -typedef CFBit = UInt32; -typedef CFBitVectorRef = ffi.Pointer<__CFBitVector>; -typedef CFBooleanRef = ffi.Pointer<__CFBoolean>; -typedef CFBundleRef = ffi.Pointer<__CFBundle>; -typedef CFBundleRefNum = ffi.Int; -typedef DartCFBundleRefNum = int; -typedef CFByteOrder = CFIndex; -typedef CFCalendarIdentifier = CFStringRef; -typedef CFCalendarRef = ffi.Pointer<__CFCalendar>; - -sealed class CFCalendarUnit { - static const kCFCalendarUnitEra = 2; - static const kCFCalendarUnitYear = 4; - static const kCFCalendarUnitMonth = 8; - static const kCFCalendarUnitDay = 16; - static const kCFCalendarUnitHour = 32; - static const kCFCalendarUnitMinute = 64; - static const kCFCalendarUnitSecond = 128; - static const kCFCalendarUnitWeek = 256; - static const kCFCalendarUnitWeekday = 512; - static const kCFCalendarUnitWeekdayOrdinal = 1024; - static const kCFCalendarUnitQuarter = 2048; - static const kCFCalendarUnitWeekOfMonth = 4096; - static const kCFCalendarUnitWeekOfYear = 8192; - static const kCFCalendarUnitYearForWeekOfYear = 16384; - static const kCFCalendarUnitDayOfYear = 65536; -} - -enum CFCharacterSetPredefinedSet { - kCFCharacterSetControl(1), - kCFCharacterSetWhitespace(2), - kCFCharacterSetWhitespaceAndNewline(3), - kCFCharacterSetDecimalDigit(4), - kCFCharacterSetLetter(5), - kCFCharacterSetLowercaseLetter(6), - kCFCharacterSetUppercaseLetter(7), - kCFCharacterSetNonBase(8), - kCFCharacterSetDecomposable(9), - kCFCharacterSetAlphaNumeric(10), - kCFCharacterSetPunctuation(11), - kCFCharacterSetCapitalizedLetter(13), - kCFCharacterSetSymbol(14), - kCFCharacterSetNewline(15), - kCFCharacterSetIllegal(12); - - final int value; - const CFCharacterSetPredefinedSet(this.value); - - static CFCharacterSetPredefinedSet fromValue(int value) => switch (value) { - 1 => kCFCharacterSetControl, - 2 => kCFCharacterSetWhitespace, - 3 => kCFCharacterSetWhitespaceAndNewline, - 4 => kCFCharacterSetDecimalDigit, - 5 => kCFCharacterSetLetter, - 6 => kCFCharacterSetLowercaseLetter, - 7 => kCFCharacterSetUppercaseLetter, - 8 => kCFCharacterSetNonBase, - 9 => kCFCharacterSetDecomposable, - 10 => kCFCharacterSetAlphaNumeric, - 11 => kCFCharacterSetPunctuation, - 13 => kCFCharacterSetCapitalizedLetter, - 14 => kCFCharacterSetSymbol, - 15 => kCFCharacterSetNewline, - 12 => kCFCharacterSetIllegal, - _ => throw ArgumentError( - 'Unknown value for CFCharacterSetPredefinedSet: $value', - ), - }; -} - -typedef CFCharacterSetRef = ffi.Pointer<__CFCharacterSet>; -typedef CFComparatorFunction = - ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ) - > - >; - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef CFDataRef = ffi.Pointer<__CFData>; - -sealed class CFDataSearchFlags { - static const kCFDataSearchBackwards = 1; - static const kCFDataSearchAnchored = 2; -} - -typedef CFDateFormatterKey = CFStringRef; -typedef CFDateFormatterRef = ffi.Pointer<__CFDateFormatter>; - -enum CFDateFormatterStyle { - kCFDateFormatterNoStyle(0), - kCFDateFormatterShortStyle(1), - kCFDateFormatterMediumStyle(2), - kCFDateFormatterLongStyle(3), - kCFDateFormatterFullStyle(4); - - final int value; - const CFDateFormatterStyle(this.value); - - static CFDateFormatterStyle fromValue(int value) => switch (value) { - 0 => kCFDateFormatterNoStyle, - 1 => kCFDateFormatterShortStyle, - 2 => kCFDateFormatterMediumStyle, - 3 => kCFDateFormatterLongStyle, - 4 => kCFDateFormatterFullStyle, - _ => throw ArgumentError('Unknown value for CFDateFormatterStyle: $value'), - }; -} - -typedef CFDateRef = ffi.Pointer<__CFDate>; -typedef CFDictionaryApplierFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ) - > - >; -typedef CFDictionaryCopyDescriptionCallBack = - ffi.Pointer< - ffi.NativeFunction value)> - >; -typedef CFDictionaryEqualCallBack = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ) - > - >; -typedef CFDictionaryHashCallBack = - ffi.Pointer< - ffi.NativeFunction value)> - >; - -final class CFDictionaryKeyCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFDictionaryRetainCallBack retain; - - external CFDictionaryReleaseCallBack release; - - external CFDictionaryCopyDescriptionCallBack copyDescription; - - external CFDictionaryEqualCallBack equal; - - external CFDictionaryHashCallBack hash; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFDictionaryRetainCallBack retain, - required CFDictionaryReleaseCallBack release, - required CFDictionaryCopyDescriptionCallBack copyDescription, - required CFDictionaryEqualCallBack equal, - required CFDictionaryHashCallBack hash, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal - ..ref.hash = hash; -} - -typedef CFDictionaryRef = ffi.Pointer<__CFDictionary>; -typedef CFDictionaryReleaseCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value) - > - >; -typedef CFDictionaryRetainCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer value, - ) - > - >; - -final class CFDictionaryValueCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFDictionaryRetainCallBack retain; - - external CFDictionaryReleaseCallBack release; - - external CFDictionaryCopyDescriptionCallBack copyDescription; - - external CFDictionaryEqualCallBack equal; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFDictionaryRetainCallBack retain, - required CFDictionaryReleaseCallBack release, - required CFDictionaryCopyDescriptionCallBack copyDescription, - required CFDictionaryEqualCallBack equal, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal; -} - -typedef CFErrorDomain = CFStringRef; -typedef CFErrorRef = ffi.Pointer<__CFError>; -typedef CFFileDescriptorCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFFileDescriptorRef f, - CFOptionFlags callBackTypes, - ffi.Pointer info, - ) - > - >; - -final class CFFileDescriptorContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFFileDescriptorNativeDescriptor = ffi.Int; -typedef DartCFFileDescriptorNativeDescriptor = int; -typedef CFFileDescriptorRef = ffi.Pointer<__CFFileDescriptor>; - -sealed class CFFileSecurityClearOptions { - static const kCFFileSecurityClearOwner = 1; - static const kCFFileSecurityClearGroup = 2; - static const kCFFileSecurityClearMode = 4; - static const kCFFileSecurityClearOwnerUUID = 8; - static const kCFFileSecurityClearGroupUUID = 16; - static const kCFFileSecurityClearAccessControlList = 32; -} - -typedef CFFileSecurityRef = ffi.Pointer<__CFFileSecurity>; - -final class CFGregorianDate extends ffi.Struct { - @SInt32() - external int year; - - @SInt8() - external int month; - - @SInt8() - external int day; - - @SInt8() - external int hour; - - @SInt8() - external int minute; - - @ffi.Double() - external double second; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int year, - required int month, - required int day, - required int hour, - required int minute, - required double second, - }) => $allocator() - ..ref.year = year - ..ref.month = month - ..ref.day = day - ..ref.hour = hour - ..ref.minute = minute - ..ref.second = second; -} - -sealed class CFGregorianUnitFlags { - static const kCFGregorianUnitsYears = 1; - static const kCFGregorianUnitsMonths = 2; - static const kCFGregorianUnitsDays = 4; - static const kCFGregorianUnitsHours = 8; - static const kCFGregorianUnitsMinutes = 16; - static const kCFGregorianUnitsSeconds = 32; - static const kCFGregorianAllUnits = 16777215; -} - -final class CFGregorianUnits extends ffi.Struct { - @SInt32() - external int years; - - @SInt32() - external int months; - - @SInt32() - external int days; - - @SInt32() - external int hours; - - @SInt32() - external int minutes; - - @ffi.Double() - external double seconds; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int years, - required int months, - required int days, - required int hours, - required int minutes, - required double seconds, - }) => $allocator() - ..ref.years = years - ..ref.months = months - ..ref.days = days - ..ref.hours = hours - ..ref.minutes = minutes - ..ref.seconds = seconds; -} - -typedef CFHTTPAuthenticationRef = ffi.Pointer<_CFHTTPAuthentication>; -typedef CFHTTPMessageRef = ffi.Pointer<__CFHTTPMessage>; -typedef CFHashCode = ffi.UnsignedLong; -typedef DartCFHashCode = int; -typedef CFHostClientCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFHostRef theHost, - ffi.UnsignedInt typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ) - > - >; - -@ffi.Packed(2) -final class CFHostClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -enum CFHostInfoType { - kCFHostAddresses(0), - kCFHostNames(1), - kCFHostReachability(2); - - final int value; - const CFHostInfoType(this.value); - - static CFHostInfoType fromValue(int value) => switch (value) { - 0 => kCFHostAddresses, - 1 => kCFHostNames, - 2 => kCFHostReachability, - _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), - }; -} - -typedef CFHostRef = ffi.Pointer<__CFHost>; - -sealed class CFISO8601DateFormatOptions { - static const kCFISO8601DateFormatWithYear = 1; - static const kCFISO8601DateFormatWithMonth = 2; - static const kCFISO8601DateFormatWithWeekOfYear = 4; - static const kCFISO8601DateFormatWithDay = 16; - static const kCFISO8601DateFormatWithTime = 32; - static const kCFISO8601DateFormatWithTimeZone = 64; - static const kCFISO8601DateFormatWithSpaceBetweenDateAndTime = 128; - static const kCFISO8601DateFormatWithDashSeparatorInDate = 256; - static const kCFISO8601DateFormatWithColonSeparatorInTime = 512; - static const kCFISO8601DateFormatWithColonSeparatorInTimeZone = 1024; - static const kCFISO8601DateFormatWithFractionalSeconds = 2048; - static const kCFISO8601DateFormatWithFullDate = 275; - static const kCFISO8601DateFormatWithFullTime = 1632; - static const kCFISO8601DateFormatWithInternetDateTime = 1907; -} - -typedef CFIndex = ffi.Long; -typedef DartCFIndex = int; -typedef CFLocaleIdentifier = CFStringRef; -typedef CFLocaleKey = CFStringRef; - -enum CFLocaleLanguageDirection { - kCFLocaleLanguageDirectionUnknown(0), - kCFLocaleLanguageDirectionLeftToRight(1), - kCFLocaleLanguageDirectionRightToLeft(2), - kCFLocaleLanguageDirectionTopToBottom(3), - kCFLocaleLanguageDirectionBottomToTop(4); - - final int value; - const CFLocaleLanguageDirection(this.value); - - static CFLocaleLanguageDirection fromValue(int value) => switch (value) { - 0 => kCFLocaleLanguageDirectionUnknown, - 1 => kCFLocaleLanguageDirectionLeftToRight, - 2 => kCFLocaleLanguageDirectionRightToLeft, - 3 => kCFLocaleLanguageDirectionTopToBottom, - 4 => kCFLocaleLanguageDirectionBottomToTop, - _ => throw ArgumentError( - 'Unknown value for CFLocaleLanguageDirection: $value', - ), - }; -} - -typedef CFLocaleRef = ffi.Pointer<__CFLocale>; -typedef CFMachPortCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFMachPortRef port, - ffi.Pointer msg, - CFIndex size, - ffi.Pointer info, - ) - > - >; - -final class CFMachPortContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFMachPortInvalidationCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFMachPortRef port, ffi.Pointer info) - > - >; -typedef CFMachPortRef = ffi.Pointer<__CFMachPort>; -typedef CFMessagePortCallBack = - ffi.Pointer< - ffi.NativeFunction< - CFDataRef Function( - CFMessagePortRef local, - SInt32 msgid, - CFDataRef data, - ffi.Pointer info, - ) - > - >; - -final class CFMessagePortContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFMessagePortInvalidationCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFMessagePortRef ms, ffi.Pointer info) - > - >; -typedef CFMessagePortRef = ffi.Pointer<__CFMessagePort>; -typedef CFMutableArrayRef = ffi.Pointer<__CFArray>; -typedef CFMutableAttributedStringRef = ffi.Pointer<__CFAttributedString>; -typedef CFMutableBagRef = ffi.Pointer<__CFBag>; -typedef CFMutableBitVectorRef = ffi.Pointer<__CFBitVector>; -typedef CFMutableCharacterSetRef = ffi.Pointer<__CFCharacterSet>; -typedef CFMutableDataRef = ffi.Pointer<__CFData>; -typedef CFMutableDictionaryRef = ffi.Pointer<__CFDictionary>; -typedef CFMutableSetRef = ffi.Pointer<__CFSet>; -typedef CFMutableStringRef = ffi.Pointer; -typedef CFNetDiagnosticRef = ffi.Pointer<__CFNetDiagnostic>; -typedef CFNetDiagnosticStatus = CFIndex; - -@Deprecated('Deprecated') -enum CFNetDiagnosticStatusValues { - kCFNetDiagnosticNoErr(0), - kCFNetDiagnosticErr(-66560), - kCFNetDiagnosticConnectionUp(-66559), - kCFNetDiagnosticConnectionIndeterminate(-66558), - kCFNetDiagnosticConnectionDown(-66557); - - final int value; - const CFNetDiagnosticStatusValues(this.value); - - static CFNetDiagnosticStatusValues fromValue(int value) => switch (value) { - 0 => kCFNetDiagnosticNoErr, - -66560 => kCFNetDiagnosticErr, - -66559 => kCFNetDiagnosticConnectionUp, - -66558 => kCFNetDiagnosticConnectionIndeterminate, - -66557 => kCFNetDiagnosticConnectionDown, - _ => throw ArgumentError( - 'Unknown value for CFNetDiagnosticStatusValues: $value', - ), - }; -} - -typedef CFNetServiceBrowserClientCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFNetServiceBrowserRef browser, - CFOptionFlags flags, - CFTypeRef domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ) - > - >; - -sealed class CFNetServiceBrowserFlags { - static const kCFNetServiceFlagMoreComing = 1; - static const kCFNetServiceFlagIsDomain = 2; - static const kCFNetServiceFlagIsDefault = 4; - static const kCFNetServiceFlagIsRegistrationDomain = 4; - static const kCFNetServiceFlagRemove = 8; -} - -typedef CFNetServiceBrowserRef = ffi.Pointer<__CFNetServiceBrowser>; -typedef CFNetServiceClientCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFNetServiceRef theService, - ffi.Pointer error, - ffi.Pointer info, - ) - > - >; - -@ffi.Packed(2) -final class CFNetServiceClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFNetServiceMonitorClientCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFNetServiceMonitorRef theMonitor, - CFNetServiceRef theService, - ffi.UnsignedInt typeInfo, - CFDataRef rdata, - ffi.Pointer error, - ffi.Pointer info, - ) - > - >; -typedef CFNetServiceMonitorRef = ffi.Pointer<__CFNetServiceMonitor>; - -enum CFNetServiceMonitorType { - kCFNetServiceMonitorTXT(1); - - final int value; - const CFNetServiceMonitorType(this.value); - - static CFNetServiceMonitorType fromValue(int value) => switch (value) { - 1 => kCFNetServiceMonitorTXT, - _ => throw ArgumentError( - 'Unknown value for CFNetServiceMonitorType: $value', - ), - }; -} - -typedef CFNetServiceRef = ffi.Pointer<__CFNetService>; - -sealed class CFNetServiceRegisterFlags { - static const kCFNetServiceFlagNoAutoRename = 1; -} - -enum CFNetServicesError { - kCFNetServicesErrorUnknown(-72000), - kCFNetServicesErrorCollision(-72001), - kCFNetServicesErrorNotFound(-72002), - kCFNetServicesErrorInProgress(-72003), - kCFNetServicesErrorBadArgument(-72004), - kCFNetServicesErrorCancel(-72005), - kCFNetServicesErrorInvalid(-72006), - kCFNetServicesErrorTimeout(-72007), - kCFNetServicesErrorMissingRequiredConfiguration(-72008); - - final int value; - const CFNetServicesError(this.value); - - static CFNetServicesError fromValue(int value) => switch (value) { - -72000 => kCFNetServicesErrorUnknown, - -72001 => kCFNetServicesErrorCollision, - -72002 => kCFNetServicesErrorNotFound, - -72003 => kCFNetServicesErrorInProgress, - -72004 => kCFNetServicesErrorBadArgument, - -72005 => kCFNetServicesErrorCancel, - -72006 => kCFNetServicesErrorInvalid, - -72007 => kCFNetServicesErrorTimeout, - -72008 => kCFNetServicesErrorMissingRequiredConfiguration, - _ => throw ArgumentError('Unknown value for CFNetServicesError: $value'), - }; -} - -enum CFNetworkErrors { - kCFHostErrorHostNotFound(1), - kCFHostErrorUnknown(2), - kCFSOCKSErrorUnknownClientVersion(100), - kCFSOCKSErrorUnsupportedServerVersion(101), - kCFSOCKS4ErrorRequestFailed(110), - kCFSOCKS4ErrorIdentdFailed(111), - kCFSOCKS4ErrorIdConflict(112), - kCFSOCKS4ErrorUnknownStatusCode(113), - kCFSOCKS5ErrorBadState(120), - kCFSOCKS5ErrorBadResponseAddr(121), - kCFSOCKS5ErrorBadCredentials(122), - kCFSOCKS5ErrorUnsupportedNegotiationMethod(123), - kCFSOCKS5ErrorNoAcceptableMethod(124), - kCFFTPErrorUnexpectedStatusCode(200), - kCFErrorHTTPAuthenticationTypeUnsupported(300), - kCFErrorHTTPBadCredentials(301), - kCFErrorHTTPConnectionLost(302), - kCFErrorHTTPParseFailure(303), - kCFErrorHTTPRedirectionLoopDetected(304), - kCFErrorHTTPBadURL(305), - kCFErrorHTTPProxyConnectionFailure(306), - kCFErrorHTTPBadProxyCredentials(307), - kCFErrorPACFileError(308), - kCFErrorPACFileAuth(309), - kCFErrorHTTPSProxyConnectionFailure(310), - kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod(311), - kCFURLErrorBackgroundSessionInUseByAnotherProcess(-996), - kCFURLErrorBackgroundSessionWasDisconnected(-997), - kCFURLErrorUnknown(-998), - kCFURLErrorCancelled(-999), - kCFURLErrorBadURL(-1000), - kCFURLErrorTimedOut(-1001), - kCFURLErrorUnsupportedURL(-1002), - kCFURLErrorCannotFindHost(-1003), - kCFURLErrorCannotConnectToHost(-1004), - kCFURLErrorNetworkConnectionLost(-1005), - kCFURLErrorDNSLookupFailed(-1006), - kCFURLErrorHTTPTooManyRedirects(-1007), - kCFURLErrorResourceUnavailable(-1008), - kCFURLErrorNotConnectedToInternet(-1009), - kCFURLErrorRedirectToNonExistentLocation(-1010), - kCFURLErrorBadServerResponse(-1011), - kCFURLErrorUserCancelledAuthentication(-1012), - kCFURLErrorUserAuthenticationRequired(-1013), - kCFURLErrorZeroByteResource(-1014), - kCFURLErrorCannotDecodeRawData(-1015), - kCFURLErrorCannotDecodeContentData(-1016), - kCFURLErrorCannotParseResponse(-1017), - kCFURLErrorInternationalRoamingOff(-1018), - kCFURLErrorCallIsActive(-1019), - kCFURLErrorDataNotAllowed(-1020), - kCFURLErrorRequestBodyStreamExhausted(-1021), - kCFURLErrorAppTransportSecurityRequiresSecureConnection(-1022), - kCFURLErrorFileDoesNotExist(-1100), - kCFURLErrorFileIsDirectory(-1101), - kCFURLErrorNoPermissionsToReadFile(-1102), - kCFURLErrorDataLengthExceedsMaximum(-1103), - kCFURLErrorFileOutsideSafeArea(-1104), - kCFURLErrorSecureConnectionFailed(-1200), - kCFURLErrorServerCertificateHasBadDate(-1201), - kCFURLErrorServerCertificateUntrusted(-1202), - kCFURLErrorServerCertificateHasUnknownRoot(-1203), - kCFURLErrorServerCertificateNotYetValid(-1204), - kCFURLErrorClientCertificateRejected(-1205), - kCFURLErrorClientCertificateRequired(-1206), - kCFURLErrorCannotLoadFromNetwork(-2000), - kCFURLErrorCannotCreateFile(-3000), - kCFURLErrorCannotOpenFile(-3001), - kCFURLErrorCannotCloseFile(-3002), - kCFURLErrorCannotWriteToFile(-3003), - kCFURLErrorCannotRemoveFile(-3004), - kCFURLErrorCannotMoveFile(-3005), - kCFURLErrorDownloadDecodingFailedMidStream(-3006), - kCFURLErrorDownloadDecodingFailedToComplete(-3007), - kCFHTTPCookieCannotParseCookieFile(-4000), - kCFNetServiceErrorUnknown(-72000), - kCFNetServiceErrorCollision(-72001), - kCFNetServiceErrorNotFound(-72002), - kCFNetServiceErrorInProgress(-72003), - kCFNetServiceErrorBadArgument(-72004), - kCFNetServiceErrorCancel(-72005), - kCFNetServiceErrorInvalid(-72006), - kCFNetServiceErrorTimeout(-72007), - kCFNetServiceErrorDNSServiceFailure(-73000); - - final int value; - const CFNetworkErrors(this.value); - - static CFNetworkErrors fromValue(int value) => switch (value) { - 1 => kCFHostErrorHostNotFound, - 2 => kCFHostErrorUnknown, - 100 => kCFSOCKSErrorUnknownClientVersion, - 101 => kCFSOCKSErrorUnsupportedServerVersion, - 110 => kCFSOCKS4ErrorRequestFailed, - 111 => kCFSOCKS4ErrorIdentdFailed, - 112 => kCFSOCKS4ErrorIdConflict, - 113 => kCFSOCKS4ErrorUnknownStatusCode, - 120 => kCFSOCKS5ErrorBadState, - 121 => kCFSOCKS5ErrorBadResponseAddr, - 122 => kCFSOCKS5ErrorBadCredentials, - 123 => kCFSOCKS5ErrorUnsupportedNegotiationMethod, - 124 => kCFSOCKS5ErrorNoAcceptableMethod, - 200 => kCFFTPErrorUnexpectedStatusCode, - 300 => kCFErrorHTTPAuthenticationTypeUnsupported, - 301 => kCFErrorHTTPBadCredentials, - 302 => kCFErrorHTTPConnectionLost, - 303 => kCFErrorHTTPParseFailure, - 304 => kCFErrorHTTPRedirectionLoopDetected, - 305 => kCFErrorHTTPBadURL, - 306 => kCFErrorHTTPProxyConnectionFailure, - 307 => kCFErrorHTTPBadProxyCredentials, - 308 => kCFErrorPACFileError, - 309 => kCFErrorPACFileAuth, - 310 => kCFErrorHTTPSProxyConnectionFailure, - 311 => kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod, - -996 => kCFURLErrorBackgroundSessionInUseByAnotherProcess, - -997 => kCFURLErrorBackgroundSessionWasDisconnected, - -998 => kCFURLErrorUnknown, - -999 => kCFURLErrorCancelled, - -1000 => kCFURLErrorBadURL, - -1001 => kCFURLErrorTimedOut, - -1002 => kCFURLErrorUnsupportedURL, - -1003 => kCFURLErrorCannotFindHost, - -1004 => kCFURLErrorCannotConnectToHost, - -1005 => kCFURLErrorNetworkConnectionLost, - -1006 => kCFURLErrorDNSLookupFailed, - -1007 => kCFURLErrorHTTPTooManyRedirects, - -1008 => kCFURLErrorResourceUnavailable, - -1009 => kCFURLErrorNotConnectedToInternet, - -1010 => kCFURLErrorRedirectToNonExistentLocation, - -1011 => kCFURLErrorBadServerResponse, - -1012 => kCFURLErrorUserCancelledAuthentication, - -1013 => kCFURLErrorUserAuthenticationRequired, - -1014 => kCFURLErrorZeroByteResource, - -1015 => kCFURLErrorCannotDecodeRawData, - -1016 => kCFURLErrorCannotDecodeContentData, - -1017 => kCFURLErrorCannotParseResponse, - -1018 => kCFURLErrorInternationalRoamingOff, - -1019 => kCFURLErrorCallIsActive, - -1020 => kCFURLErrorDataNotAllowed, - -1021 => kCFURLErrorRequestBodyStreamExhausted, - -1022 => kCFURLErrorAppTransportSecurityRequiresSecureConnection, - -1100 => kCFURLErrorFileDoesNotExist, - -1101 => kCFURLErrorFileIsDirectory, - -1102 => kCFURLErrorNoPermissionsToReadFile, - -1103 => kCFURLErrorDataLengthExceedsMaximum, - -1104 => kCFURLErrorFileOutsideSafeArea, - -1200 => kCFURLErrorSecureConnectionFailed, - -1201 => kCFURLErrorServerCertificateHasBadDate, - -1202 => kCFURLErrorServerCertificateUntrusted, - -1203 => kCFURLErrorServerCertificateHasUnknownRoot, - -1204 => kCFURLErrorServerCertificateNotYetValid, - -1205 => kCFURLErrorClientCertificateRejected, - -1206 => kCFURLErrorClientCertificateRequired, - -2000 => kCFURLErrorCannotLoadFromNetwork, - -3000 => kCFURLErrorCannotCreateFile, - -3001 => kCFURLErrorCannotOpenFile, - -3002 => kCFURLErrorCannotCloseFile, - -3003 => kCFURLErrorCannotWriteToFile, - -3004 => kCFURLErrorCannotRemoveFile, - -3005 => kCFURLErrorCannotMoveFile, - -3006 => kCFURLErrorDownloadDecodingFailedMidStream, - -3007 => kCFURLErrorDownloadDecodingFailedToComplete, - -4000 => kCFHTTPCookieCannotParseCookieFile, - -72000 => kCFNetServiceErrorUnknown, - -72001 => kCFNetServiceErrorCollision, - -72002 => kCFNetServiceErrorNotFound, - -72003 => kCFNetServiceErrorInProgress, - -72004 => kCFNetServiceErrorBadArgument, - -72005 => kCFNetServiceErrorCancel, - -72006 => kCFNetServiceErrorInvalid, - -72007 => kCFNetServiceErrorTimeout, - -73000 => kCFNetServiceErrorDNSServiceFailure, - _ => throw ArgumentError('Unknown value for CFNetworkErrors: $value'), - }; -} - -typedef CFNotificationCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFNotificationCenterRef center, - ffi.Pointer observer, - CFNotificationName name, - ffi.Pointer object, - CFDictionaryRef userInfo, - ) - > - >; -typedef CFNotificationCenterRef = ffi.Pointer<__CFNotificationCenter>; -typedef CFNotificationName = CFStringRef; - -enum CFNotificationSuspensionBehavior { - CFNotificationSuspensionBehaviorDrop(1), - CFNotificationSuspensionBehaviorCoalesce(2), - CFNotificationSuspensionBehaviorHold(3), - CFNotificationSuspensionBehaviorDeliverImmediately(4); - - final int value; - const CFNotificationSuspensionBehavior(this.value); - - static CFNotificationSuspensionBehavior fromValue(int value) => - switch (value) { - 1 => CFNotificationSuspensionBehaviorDrop, - 2 => CFNotificationSuspensionBehaviorCoalesce, - 3 => CFNotificationSuspensionBehaviorHold, - 4 => CFNotificationSuspensionBehaviorDeliverImmediately, - _ => throw ArgumentError( - 'Unknown value for CFNotificationSuspensionBehavior: $value', - ), - }; -} - -typedef CFNullRef = ffi.Pointer<__CFNull>; -typedef CFNumberFormatterKey = CFStringRef; - -sealed class CFNumberFormatterOptionFlags { - static const kCFNumberFormatterParseIntegersOnly = 1; -} - -enum CFNumberFormatterPadPosition { - kCFNumberFormatterPadBeforePrefix(0), - kCFNumberFormatterPadAfterPrefix(1), - kCFNumberFormatterPadBeforeSuffix(2), - kCFNumberFormatterPadAfterSuffix(3); - - final int value; - const CFNumberFormatterPadPosition(this.value); - - static CFNumberFormatterPadPosition fromValue(int value) => switch (value) { - 0 => kCFNumberFormatterPadBeforePrefix, - 1 => kCFNumberFormatterPadAfterPrefix, - 2 => kCFNumberFormatterPadBeforeSuffix, - 3 => kCFNumberFormatterPadAfterSuffix, - _ => throw ArgumentError( - 'Unknown value for CFNumberFormatterPadPosition: $value', - ), - }; -} - -typedef CFNumberFormatterRef = ffi.Pointer<__CFNumberFormatter>; - -enum CFNumberFormatterRoundingMode { - kCFNumberFormatterRoundCeiling(0), - kCFNumberFormatterRoundFloor(1), - kCFNumberFormatterRoundDown(2), - kCFNumberFormatterRoundUp(3), - kCFNumberFormatterRoundHalfEven(4), - kCFNumberFormatterRoundHalfDown(5), - kCFNumberFormatterRoundHalfUp(6); - - final int value; - const CFNumberFormatterRoundingMode(this.value); - - static CFNumberFormatterRoundingMode fromValue(int value) => switch (value) { - 0 => kCFNumberFormatterRoundCeiling, - 1 => kCFNumberFormatterRoundFloor, - 2 => kCFNumberFormatterRoundDown, - 3 => kCFNumberFormatterRoundUp, - 4 => kCFNumberFormatterRoundHalfEven, - 5 => kCFNumberFormatterRoundHalfDown, - 6 => kCFNumberFormatterRoundHalfUp, - _ => throw ArgumentError( - 'Unknown value for CFNumberFormatterRoundingMode: $value', - ), - }; -} - -enum CFNumberFormatterStyle { - kCFNumberFormatterNoStyle(0), - kCFNumberFormatterDecimalStyle(1), - kCFNumberFormatterCurrencyStyle(2), - kCFNumberFormatterPercentStyle(3), - kCFNumberFormatterScientificStyle(4), - kCFNumberFormatterSpellOutStyle(5), - kCFNumberFormatterOrdinalStyle(6), - kCFNumberFormatterCurrencyISOCodeStyle(8), - kCFNumberFormatterCurrencyPluralStyle(9), - kCFNumberFormatterCurrencyAccountingStyle(10); - - final int value; - const CFNumberFormatterStyle(this.value); - - static CFNumberFormatterStyle fromValue(int value) => switch (value) { - 0 => kCFNumberFormatterNoStyle, - 1 => kCFNumberFormatterDecimalStyle, - 2 => kCFNumberFormatterCurrencyStyle, - 3 => kCFNumberFormatterPercentStyle, - 4 => kCFNumberFormatterScientificStyle, - 5 => kCFNumberFormatterSpellOutStyle, - 6 => kCFNumberFormatterOrdinalStyle, - 8 => kCFNumberFormatterCurrencyISOCodeStyle, - 9 => kCFNumberFormatterCurrencyPluralStyle, - 10 => kCFNumberFormatterCurrencyAccountingStyle, - _ => throw ArgumentError( - 'Unknown value for CFNumberFormatterStyle: $value', - ), - }; -} - -typedef CFNumberRef = ffi.Pointer<__CFNumber>; - -enum CFNumberType { - kCFNumberSInt8Type(1), - kCFNumberSInt16Type(2), - kCFNumberSInt32Type(3), - kCFNumberSInt64Type(4), - kCFNumberFloat32Type(5), - kCFNumberFloat64Type(6), - kCFNumberCharType(7), - kCFNumberShortType(8), - kCFNumberIntType(9), - kCFNumberLongType(10), - kCFNumberLongLongType(11), - kCFNumberFloatType(12), - kCFNumberDoubleType(13), - kCFNumberCFIndexType(14), - kCFNumberNSIntegerType(15), - kCFNumberCGFloatType(16); - - static const kCFNumberMaxType = kCFNumberCGFloatType; - - final int value; - const CFNumberType(this.value); - - static CFNumberType fromValue(int value) => switch (value) { - 1 => kCFNumberSInt8Type, - 2 => kCFNumberSInt16Type, - 3 => kCFNumberSInt32Type, - 4 => kCFNumberSInt64Type, - 5 => kCFNumberFloat32Type, - 6 => kCFNumberFloat64Type, - 7 => kCFNumberCharType, - 8 => kCFNumberShortType, - 9 => kCFNumberIntType, - 10 => kCFNumberLongType, - 11 => kCFNumberLongLongType, - 12 => kCFNumberFloatType, - 13 => kCFNumberDoubleType, - 14 => kCFNumberCFIndexType, - 15 => kCFNumberNSIntegerType, - 16 => kCFNumberCGFloatType, - _ => throw ArgumentError('Unknown value for CFNumberType: $value'), - }; - - @override - String toString() { - if (this == kCFNumberCGFloatType) - return "CFNumberType.kCFNumberCGFloatType, CFNumberType.kCFNumberMaxType"; - return super.toString(); - } -} - -typedef CFOptionFlags = ffi.UnsignedLong; -typedef DartCFOptionFlags = int; -typedef CFPlugInDynamicRegisterFunction = - ffi.Pointer>; -typedef CFPlugInFactoryFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, - CFUUIDRef typeUUID, - ) - > - >; -typedef CFPlugInInstanceDeallocateInstanceDataFunction = - ffi.Pointer< - ffi.NativeFunction instanceData)> - >; -typedef CFPlugInInstanceGetInterfaceFunction = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - CFPlugInInstanceRef instance, - CFStringRef interfaceName, - ffi.Pointer> ftbl, - ) - > - >; -typedef CFPlugInInstanceRef = ffi.Pointer<__CFPlugInInstance>; -typedef CFPlugInRef = ffi.Pointer<__CFBundle>; -typedef CFPlugInUnloadFunction = - ffi.Pointer>; - -enum CFPropertyListFormat { - kCFPropertyListOpenStepFormat(1), - kCFPropertyListXMLFormat_v1_0(100), - kCFPropertyListBinaryFormat_v1_0(200); - - final int value; - const CFPropertyListFormat(this.value); - - static CFPropertyListFormat fromValue(int value) => switch (value) { - 1 => kCFPropertyListOpenStepFormat, - 100 => kCFPropertyListXMLFormat_v1_0, - 200 => kCFPropertyListBinaryFormat_v1_0, - _ => throw ArgumentError('Unknown value for CFPropertyListFormat: $value'), - }; -} - -sealed class CFPropertyListMutabilityOptions { - static const kCFPropertyListImmutable = 0; - static const kCFPropertyListMutableContainers = 1; - static const kCFPropertyListMutableContainersAndLeaves = 2; -} - -typedef CFPropertyListRef = CFTypeRef; -typedef CFProxyAutoConfigurationResultCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer client, - CFArrayRef proxyList, - CFErrorRef error, - ) - > - >; - -final class CFRange extends ffi.Struct { - @CFIndex() - external int location; - - @CFIndex() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int location, - required int length, - }) => $allocator() - ..ref.location = location - ..ref.length = length; -} - -typedef CFReadStreamClientCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFReadStreamRef stream, - CFOptionFlags type, - ffi.Pointer clientCallBackInfo, - ) - > - >; -typedef CFReadStreamRef = ffi.Pointer<__CFReadStream>; - -sealed class CFRunLoopActivity { - static const kCFRunLoopEntry = 1; - static const kCFRunLoopBeforeTimers = 2; - static const kCFRunLoopBeforeSources = 4; - static const kCFRunLoopBeforeWaiting = 32; - static const kCFRunLoopAfterWaiting = 64; - static const kCFRunLoopExit = 128; - static const kCFRunLoopAllActivities = 268435455; -} - -typedef CFRunLoopMode = CFStringRef; -typedef CFRunLoopObserverCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFRunLoopObserverRef observer, - CFOptionFlags activity, - ffi.Pointer info, - ) - > - >; - -final class CFRunLoopObserverContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFRunLoopObserverRef = ffi.Pointer<__CFRunLoopObserver>; -typedef CFRunLoopRef = ffi.Pointer; - -enum CFRunLoopRunResult { - kCFRunLoopRunFinished(1), - kCFRunLoopRunStopped(2), - kCFRunLoopRunTimedOut(3), - kCFRunLoopRunHandledSource(4); - - final int value; - const CFRunLoopRunResult(this.value); - - static CFRunLoopRunResult fromValue(int value) => switch (value) { - 1 => kCFRunLoopRunFinished, - 2 => kCFRunLoopRunStopped, - 3 => kCFRunLoopRunTimedOut, - 4 => kCFRunLoopRunHandledSource, - _ => throw ArgumentError('Unknown value for CFRunLoopRunResult: $value'), - }; -} - -final class CFRunLoopSourceContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - external ffi.Pointer< - ffi.NativeFunction< - Boolean Function(ffi.Pointer info1, ffi.Pointer info2) - > - > - equal; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - hash; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - CFRunLoopRef rl, - CFRunLoopMode mode, - ) - > - > - schedule; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - CFRunLoopRef rl, - CFRunLoopMode mode, - ) - > - > - cancel; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - perform; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - required ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer info1, - ffi.Pointer info2, - ) - > - > - equal, - required ffi.Pointer< - ffi.NativeFunction info)> - > - hash, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - CFRunLoopRef rl, - CFRunLoopMode mode, - ) - > - > - schedule, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - CFRunLoopRef rl, - CFRunLoopMode mode, - ) - > - > - cancel, - required ffi.Pointer< - ffi.NativeFunction info)> - > - perform, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal - ..ref.hash = hash - ..ref.schedule = schedule - ..ref.cancel = cancel - ..ref.perform = perform; -} - -final class CFRunLoopSourceContext1 extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - external ffi.Pointer< - ffi.NativeFunction< - Boolean Function(ffi.Pointer info1, ffi.Pointer info2) - > - > - equal; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - hash; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - getPort; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer msg, - CFIndex size, - CFAllocatorRef allocator, - ffi.Pointer info, - ) - > - > - perform; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - required ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer info1, - ffi.Pointer info2, - ) - > - > - equal, - required ffi.Pointer< - ffi.NativeFunction info)> - > - hash, - required ffi.Pointer< - ffi.NativeFunction info)> - > - getPort, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer msg, - CFIndex size, - CFAllocatorRef allocator, - ffi.Pointer info, - ) - > - > - perform, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal - ..ref.hash = hash - ..ref.getPort = getPort - ..ref.perform = perform; -} - -typedef CFRunLoopSourceRef = ffi.Pointer<__CFRunLoopSource>; -typedef CFRunLoopTimerCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopTimerRef timer, ffi.Pointer info) - > - >; - -final class CFRunLoopTimerContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFRunLoopTimerRef = ffi.Pointer<__CFRunLoopTimer>; -typedef CFSetApplierFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ) - > - >; - -final class CFSetCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFSetRetainCallBack retain; - - external CFSetReleaseCallBack release; - - external CFSetCopyDescriptionCallBack copyDescription; - - external CFSetEqualCallBack equal; - - external CFSetHashCallBack hash; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFSetRetainCallBack retain, - required CFSetReleaseCallBack release, - required CFSetCopyDescriptionCallBack copyDescription, - required CFSetEqualCallBack equal, - required CFSetHashCallBack hash, - }) => $allocator() - ..ref.version = version - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.equal = equal - ..ref.hash = hash; -} - -typedef CFSetCopyDescriptionCallBack = - ffi.Pointer< - ffi.NativeFunction value)> - >; -typedef CFSetEqualCallBack = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer value1, - ffi.Pointer value2, - ) - > - >; -typedef CFSetHashCallBack = - ffi.Pointer< - ffi.NativeFunction value)> - >; -typedef CFSetRef = ffi.Pointer<__CFSet>; -typedef CFSetReleaseCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value) - > - >; -typedef CFSetRetainCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFAllocatorRef allocator, - ffi.Pointer value, - ) - > - >; -typedef CFSocketCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFSocketRef s, - CFOptionFlags type, - CFDataRef address, - ffi.Pointer data, - ffi.Pointer info, - ) - > - >; - -sealed class CFSocketCallBackType { - static const kCFSocketNoCallBack = 0; - static const kCFSocketReadCallBack = 1; - static const kCFSocketAcceptCallBack = 2; - static const kCFSocketDataCallBack = 3; - static const kCFSocketConnectCallBack = 4; - static const kCFSocketWriteCallBack = 8; -} - -final class CFSocketContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -enum CFSocketError { - kCFSocketSuccess(0), - kCFSocketError(-1), - kCFSocketTimeout(-2); - - final int value; - const CFSocketError(this.value); - - static CFSocketError fromValue(int value) => switch (value) { - 0 => kCFSocketSuccess, - -1 => kCFSocketError, - -2 => kCFSocketTimeout, - _ => throw ArgumentError('Unknown value for CFSocketError: $value'), - }; -} - -typedef CFSocketNativeHandle = ffi.Int; -typedef DartCFSocketNativeHandle = int; -typedef CFSocketRef = ffi.Pointer<__CFSocket>; - -final class CFSocketSignature extends ffi.Struct { - @SInt32() - external int protocolFamily; - - @SInt32() - external int socketType; - - @SInt32() - external int protocol; - - external CFDataRef address; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protocolFamily, - required int socketType, - required int protocol, - required CFDataRef address, - }) => $allocator() - ..ref.protocolFamily = protocolFamily - ..ref.socketType = socketType - ..ref.protocol = protocol - ..ref.address = address; -} - -final class CFStreamClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - release; - - external ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction info)> - > - release, - required ffi.Pointer< - ffi.NativeFunction info)> - > - copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -final class CFStreamError extends ffi.Struct { - @CFIndex() - external int domain; - - @SInt32() - external int error; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int domain, - required int error, - }) => $allocator() - ..ref.domain = domain - ..ref.error = error; -} - -enum CFStreamErrorDomain { - kCFStreamErrorDomainCustom(-1), - kCFStreamErrorDomainPOSIX(1), - kCFStreamErrorDomainMacOSStatus(2); - - final int value; - const CFStreamErrorDomain(this.value); - - static CFStreamErrorDomain fromValue(int value) => switch (value) { - -1 => kCFStreamErrorDomainCustom, - 1 => kCFStreamErrorDomainPOSIX, - 2 => kCFStreamErrorDomainMacOSStatus, - _ => throw ArgumentError('Unknown value for CFStreamErrorDomain: $value'), - }; -} - -enum CFStreamErrorHTTP { - kCFStreamErrorHTTPParseFailure(-1), - kCFStreamErrorHTTPRedirectionLoop(-2), - kCFStreamErrorHTTPBadURL(-3); - - final int value; - const CFStreamErrorHTTP(this.value); - - static CFStreamErrorHTTP fromValue(int value) => switch (value) { - -1 => kCFStreamErrorHTTPParseFailure, - -2 => kCFStreamErrorHTTPRedirectionLoop, - -3 => kCFStreamErrorHTTPBadURL, - _ => throw ArgumentError('Unknown value for CFStreamErrorHTTP: $value'), - }; -} - -enum CFStreamErrorHTTPAuthentication { - kCFStreamErrorHTTPAuthenticationTypeUnsupported(-1000), - kCFStreamErrorHTTPAuthenticationBadUserName(-1001), - kCFStreamErrorHTTPAuthenticationBadPassword(-1002); - - final int value; - const CFStreamErrorHTTPAuthentication(this.value); - - static CFStreamErrorHTTPAuthentication fromValue(int value) => - switch (value) { - -1000 => kCFStreamErrorHTTPAuthenticationTypeUnsupported, - -1001 => kCFStreamErrorHTTPAuthenticationBadUserName, - -1002 => kCFStreamErrorHTTPAuthenticationBadPassword, - _ => throw ArgumentError( - 'Unknown value for CFStreamErrorHTTPAuthentication: $value', - ), - }; -} - -sealed class CFStreamEventType { - static const kCFStreamEventNone = 0; - static const kCFStreamEventOpenCompleted = 1; - static const kCFStreamEventHasBytesAvailable = 2; - static const kCFStreamEventCanAcceptBytes = 4; - static const kCFStreamEventErrorOccurred = 8; - static const kCFStreamEventEndEncountered = 16; -} - -typedef CFStreamPropertyKey = CFStringRef; - -enum CFStreamStatus { - kCFStreamStatusNotOpen(0), - kCFStreamStatusOpening(1), - kCFStreamStatusOpen(2), - kCFStreamStatusReading(3), - kCFStreamStatusWriting(4), - kCFStreamStatusAtEnd(5), - kCFStreamStatusClosed(6), - kCFStreamStatusError(7); - - final int value; - const CFStreamStatus(this.value); - - static CFStreamStatus fromValue(int value) => switch (value) { - 0 => kCFStreamStatusNotOpen, - 1 => kCFStreamStatusOpening, - 2 => kCFStreamStatusOpen, - 3 => kCFStreamStatusReading, - 4 => kCFStreamStatusWriting, - 5 => kCFStreamStatusAtEnd, - 6 => kCFStreamStatusClosed, - 7 => kCFStreamStatusError, - _ => throw ArgumentError('Unknown value for CFStreamStatus: $value'), - }; -} - -enum CFStringBuiltInEncodings { - kCFStringEncodingMacRoman(0), - kCFStringEncodingWindowsLatin1(1280), - kCFStringEncodingISOLatin1(513), - kCFStringEncodingNextStepLatin(2817), - kCFStringEncodingASCII(1536), - kCFStringEncodingUnicode(256), - kCFStringEncodingUTF8(134217984), - kCFStringEncodingNonLossyASCII(3071), - kCFStringEncodingUTF16BE(268435712), - kCFStringEncodingUTF16LE(335544576), - kCFStringEncodingUTF32(201326848), - kCFStringEncodingUTF32BE(402653440), - kCFStringEncodingUTF32LE(469762304); - - static const kCFStringEncodingUTF16 = kCFStringEncodingUnicode; - - final int value; - const CFStringBuiltInEncodings(this.value); - - static CFStringBuiltInEncodings fromValue(int value) => switch (value) { - 0 => kCFStringEncodingMacRoman, - 1280 => kCFStringEncodingWindowsLatin1, - 513 => kCFStringEncodingISOLatin1, - 2817 => kCFStringEncodingNextStepLatin, - 1536 => kCFStringEncodingASCII, - 256 => kCFStringEncodingUnicode, - 134217984 => kCFStringEncodingUTF8, - 3071 => kCFStringEncodingNonLossyASCII, - 268435712 => kCFStringEncodingUTF16BE, - 335544576 => kCFStringEncodingUTF16LE, - 201326848 => kCFStringEncodingUTF32, - 402653440 => kCFStringEncodingUTF32BE, - 469762304 => kCFStringEncodingUTF32LE, - _ => throw ArgumentError( - 'Unknown value for CFStringBuiltInEncodings: $value', - ), - }; - - @override - String toString() { - if (this == kCFStringEncodingUnicode) - return "CFStringBuiltInEncodings.kCFStringEncodingUnicode, CFStringBuiltInEncodings.kCFStringEncodingUTF16"; - return super.toString(); - } -} - -sealed class CFStringCompareFlags { - static const kCFCompareCaseInsensitive = 1; - static const kCFCompareBackwards = 4; - static const kCFCompareAnchored = 8; - static const kCFCompareNonliteral = 16; - static const kCFCompareLocalized = 32; - static const kCFCompareNumerically = 64; - static const kCFCompareDiacriticInsensitive = 128; - static const kCFCompareWidthInsensitive = 256; - static const kCFCompareForcedOrdering = 512; -} - -typedef CFStringEncoding = UInt32; - -enum CFStringEncodings { - kCFStringEncodingMacJapanese(1), - kCFStringEncodingMacChineseTrad(2), - kCFStringEncodingMacKorean(3), - kCFStringEncodingMacArabic(4), - kCFStringEncodingMacHebrew(5), - kCFStringEncodingMacGreek(6), - kCFStringEncodingMacCyrillic(7), - kCFStringEncodingMacDevanagari(9), - kCFStringEncodingMacGurmukhi(10), - kCFStringEncodingMacGujarati(11), - kCFStringEncodingMacOriya(12), - kCFStringEncodingMacBengali(13), - kCFStringEncodingMacTamil(14), - kCFStringEncodingMacTelugu(15), - kCFStringEncodingMacKannada(16), - kCFStringEncodingMacMalayalam(17), - kCFStringEncodingMacSinhalese(18), - kCFStringEncodingMacBurmese(19), - kCFStringEncodingMacKhmer(20), - kCFStringEncodingMacThai(21), - kCFStringEncodingMacLaotian(22), - kCFStringEncodingMacGeorgian(23), - kCFStringEncodingMacArmenian(24), - kCFStringEncodingMacChineseSimp(25), - kCFStringEncodingMacTibetan(26), - kCFStringEncodingMacMongolian(27), - kCFStringEncodingMacEthiopic(28), - kCFStringEncodingMacCentralEurRoman(29), - kCFStringEncodingMacVietnamese(30), - kCFStringEncodingMacExtArabic(31), - kCFStringEncodingMacSymbol(33), - kCFStringEncodingMacDingbats(34), - kCFStringEncodingMacTurkish(35), - kCFStringEncodingMacCroatian(36), - kCFStringEncodingMacIcelandic(37), - kCFStringEncodingMacRomanian(38), - kCFStringEncodingMacCeltic(39), - kCFStringEncodingMacGaelic(40), - kCFStringEncodingMacFarsi(140), - kCFStringEncodingMacUkrainian(152), - kCFStringEncodingMacInuit(236), - kCFStringEncodingMacVT100(252), - kCFStringEncodingMacHFS(255), - kCFStringEncodingISOLatin2(514), - kCFStringEncodingISOLatin3(515), - kCFStringEncodingISOLatin4(516), - kCFStringEncodingISOLatinCyrillic(517), - kCFStringEncodingISOLatinArabic(518), - kCFStringEncodingISOLatinGreek(519), - kCFStringEncodingISOLatinHebrew(520), - kCFStringEncodingISOLatin5(521), - kCFStringEncodingISOLatin6(522), - kCFStringEncodingISOLatinThai(523), - kCFStringEncodingISOLatin7(525), - kCFStringEncodingISOLatin8(526), - kCFStringEncodingISOLatin9(527), - kCFStringEncodingISOLatin10(528), - kCFStringEncodingDOSLatinUS(1024), - kCFStringEncodingDOSGreek(1029), - kCFStringEncodingDOSBalticRim(1030), - kCFStringEncodingDOSLatin1(1040), - kCFStringEncodingDOSGreek1(1041), - kCFStringEncodingDOSLatin2(1042), - kCFStringEncodingDOSCyrillic(1043), - kCFStringEncodingDOSTurkish(1044), - kCFStringEncodingDOSPortuguese(1045), - kCFStringEncodingDOSIcelandic(1046), - kCFStringEncodingDOSHebrew(1047), - kCFStringEncodingDOSCanadianFrench(1048), - kCFStringEncodingDOSArabic(1049), - kCFStringEncodingDOSNordic(1050), - kCFStringEncodingDOSRussian(1051), - kCFStringEncodingDOSGreek2(1052), - kCFStringEncodingDOSThai(1053), - kCFStringEncodingDOSJapanese(1056), - kCFStringEncodingDOSChineseSimplif(1057), - kCFStringEncodingDOSKorean(1058), - kCFStringEncodingDOSChineseTrad(1059), - kCFStringEncodingWindowsLatin2(1281), - kCFStringEncodingWindowsCyrillic(1282), - kCFStringEncodingWindowsGreek(1283), - kCFStringEncodingWindowsLatin5(1284), - kCFStringEncodingWindowsHebrew(1285), - kCFStringEncodingWindowsArabic(1286), - kCFStringEncodingWindowsBalticRim(1287), - kCFStringEncodingWindowsVietnamese(1288), - kCFStringEncodingWindowsKoreanJohab(1296), - kCFStringEncodingANSEL(1537), - kCFStringEncodingJIS_X0201_76(1568), - kCFStringEncodingJIS_X0208_83(1569), - kCFStringEncodingJIS_X0208_90(1570), - kCFStringEncodingJIS_X0212_90(1571), - kCFStringEncodingJIS_C6226_78(1572), - kCFStringEncodingShiftJIS_X0213(1576), - kCFStringEncodingShiftJIS_X0213_MenKuTen(1577), - kCFStringEncodingGB_2312_80(1584), - kCFStringEncodingGBK_95(1585), - kCFStringEncodingGB_18030_2000(1586), - kCFStringEncodingKSC_5601_87(1600), - kCFStringEncodingKSC_5601_92_Johab(1601), - kCFStringEncodingCNS_11643_92_P1(1617), - kCFStringEncodingCNS_11643_92_P2(1618), - kCFStringEncodingCNS_11643_92_P3(1619), - kCFStringEncodingISO_2022_JP(2080), - kCFStringEncodingISO_2022_JP_2(2081), - kCFStringEncodingISO_2022_JP_1(2082), - kCFStringEncodingISO_2022_JP_3(2083), - kCFStringEncodingISO_2022_CN(2096), - kCFStringEncodingISO_2022_CN_EXT(2097), - kCFStringEncodingISO_2022_KR(2112), - kCFStringEncodingEUC_JP(2336), - kCFStringEncodingEUC_CN(2352), - kCFStringEncodingEUC_TW(2353), - kCFStringEncodingEUC_KR(2368), - kCFStringEncodingShiftJIS(2561), - kCFStringEncodingKOI8_R(2562), - kCFStringEncodingBig5(2563), - kCFStringEncodingMacRomanLatin1(2564), - kCFStringEncodingHZ_GB_2312(2565), - kCFStringEncodingBig5_HKSCS_1999(2566), - kCFStringEncodingVISCII(2567), - kCFStringEncodingKOI8_U(2568), - kCFStringEncodingBig5_E(2569), - kCFStringEncodingNextStepJapanese(2818), - kCFStringEncodingEBCDIC_US(3073), - kCFStringEncodingEBCDIC_CP037(3074), - kCFStringEncodingUTF7(67109120), - kCFStringEncodingUTF7_IMAP(2576); - - static const kCFStringEncodingShiftJIS_X0213_00 = - kCFStringEncodingShiftJIS_X0213; - - final int value; - const CFStringEncodings(this.value); - - static CFStringEncodings fromValue(int value) => switch (value) { - 1 => kCFStringEncodingMacJapanese, - 2 => kCFStringEncodingMacChineseTrad, - 3 => kCFStringEncodingMacKorean, - 4 => kCFStringEncodingMacArabic, - 5 => kCFStringEncodingMacHebrew, - 6 => kCFStringEncodingMacGreek, - 7 => kCFStringEncodingMacCyrillic, - 9 => kCFStringEncodingMacDevanagari, - 10 => kCFStringEncodingMacGurmukhi, - 11 => kCFStringEncodingMacGujarati, - 12 => kCFStringEncodingMacOriya, - 13 => kCFStringEncodingMacBengali, - 14 => kCFStringEncodingMacTamil, - 15 => kCFStringEncodingMacTelugu, - 16 => kCFStringEncodingMacKannada, - 17 => kCFStringEncodingMacMalayalam, - 18 => kCFStringEncodingMacSinhalese, - 19 => kCFStringEncodingMacBurmese, - 20 => kCFStringEncodingMacKhmer, - 21 => kCFStringEncodingMacThai, - 22 => kCFStringEncodingMacLaotian, - 23 => kCFStringEncodingMacGeorgian, - 24 => kCFStringEncodingMacArmenian, - 25 => kCFStringEncodingMacChineseSimp, - 26 => kCFStringEncodingMacTibetan, - 27 => kCFStringEncodingMacMongolian, - 28 => kCFStringEncodingMacEthiopic, - 29 => kCFStringEncodingMacCentralEurRoman, - 30 => kCFStringEncodingMacVietnamese, - 31 => kCFStringEncodingMacExtArabic, - 33 => kCFStringEncodingMacSymbol, - 34 => kCFStringEncodingMacDingbats, - 35 => kCFStringEncodingMacTurkish, - 36 => kCFStringEncodingMacCroatian, - 37 => kCFStringEncodingMacIcelandic, - 38 => kCFStringEncodingMacRomanian, - 39 => kCFStringEncodingMacCeltic, - 40 => kCFStringEncodingMacGaelic, - 140 => kCFStringEncodingMacFarsi, - 152 => kCFStringEncodingMacUkrainian, - 236 => kCFStringEncodingMacInuit, - 252 => kCFStringEncodingMacVT100, - 255 => kCFStringEncodingMacHFS, - 514 => kCFStringEncodingISOLatin2, - 515 => kCFStringEncodingISOLatin3, - 516 => kCFStringEncodingISOLatin4, - 517 => kCFStringEncodingISOLatinCyrillic, - 518 => kCFStringEncodingISOLatinArabic, - 519 => kCFStringEncodingISOLatinGreek, - 520 => kCFStringEncodingISOLatinHebrew, - 521 => kCFStringEncodingISOLatin5, - 522 => kCFStringEncodingISOLatin6, - 523 => kCFStringEncodingISOLatinThai, - 525 => kCFStringEncodingISOLatin7, - 526 => kCFStringEncodingISOLatin8, - 527 => kCFStringEncodingISOLatin9, - 528 => kCFStringEncodingISOLatin10, - 1024 => kCFStringEncodingDOSLatinUS, - 1029 => kCFStringEncodingDOSGreek, - 1030 => kCFStringEncodingDOSBalticRim, - 1040 => kCFStringEncodingDOSLatin1, - 1041 => kCFStringEncodingDOSGreek1, - 1042 => kCFStringEncodingDOSLatin2, - 1043 => kCFStringEncodingDOSCyrillic, - 1044 => kCFStringEncodingDOSTurkish, - 1045 => kCFStringEncodingDOSPortuguese, - 1046 => kCFStringEncodingDOSIcelandic, - 1047 => kCFStringEncodingDOSHebrew, - 1048 => kCFStringEncodingDOSCanadianFrench, - 1049 => kCFStringEncodingDOSArabic, - 1050 => kCFStringEncodingDOSNordic, - 1051 => kCFStringEncodingDOSRussian, - 1052 => kCFStringEncodingDOSGreek2, - 1053 => kCFStringEncodingDOSThai, - 1056 => kCFStringEncodingDOSJapanese, - 1057 => kCFStringEncodingDOSChineseSimplif, - 1058 => kCFStringEncodingDOSKorean, - 1059 => kCFStringEncodingDOSChineseTrad, - 1281 => kCFStringEncodingWindowsLatin2, - 1282 => kCFStringEncodingWindowsCyrillic, - 1283 => kCFStringEncodingWindowsGreek, - 1284 => kCFStringEncodingWindowsLatin5, - 1285 => kCFStringEncodingWindowsHebrew, - 1286 => kCFStringEncodingWindowsArabic, - 1287 => kCFStringEncodingWindowsBalticRim, - 1288 => kCFStringEncodingWindowsVietnamese, - 1296 => kCFStringEncodingWindowsKoreanJohab, - 1537 => kCFStringEncodingANSEL, - 1568 => kCFStringEncodingJIS_X0201_76, - 1569 => kCFStringEncodingJIS_X0208_83, - 1570 => kCFStringEncodingJIS_X0208_90, - 1571 => kCFStringEncodingJIS_X0212_90, - 1572 => kCFStringEncodingJIS_C6226_78, - 1576 => kCFStringEncodingShiftJIS_X0213, - 1577 => kCFStringEncodingShiftJIS_X0213_MenKuTen, - 1584 => kCFStringEncodingGB_2312_80, - 1585 => kCFStringEncodingGBK_95, - 1586 => kCFStringEncodingGB_18030_2000, - 1600 => kCFStringEncodingKSC_5601_87, - 1601 => kCFStringEncodingKSC_5601_92_Johab, - 1617 => kCFStringEncodingCNS_11643_92_P1, - 1618 => kCFStringEncodingCNS_11643_92_P2, - 1619 => kCFStringEncodingCNS_11643_92_P3, - 2080 => kCFStringEncodingISO_2022_JP, - 2081 => kCFStringEncodingISO_2022_JP_2, - 2082 => kCFStringEncodingISO_2022_JP_1, - 2083 => kCFStringEncodingISO_2022_JP_3, - 2096 => kCFStringEncodingISO_2022_CN, - 2097 => kCFStringEncodingISO_2022_CN_EXT, - 2112 => kCFStringEncodingISO_2022_KR, - 2336 => kCFStringEncodingEUC_JP, - 2352 => kCFStringEncodingEUC_CN, - 2353 => kCFStringEncodingEUC_TW, - 2368 => kCFStringEncodingEUC_KR, - 2561 => kCFStringEncodingShiftJIS, - 2562 => kCFStringEncodingKOI8_R, - 2563 => kCFStringEncodingBig5, - 2564 => kCFStringEncodingMacRomanLatin1, - 2565 => kCFStringEncodingHZ_GB_2312, - 2566 => kCFStringEncodingBig5_HKSCS_1999, - 2567 => kCFStringEncodingVISCII, - 2568 => kCFStringEncodingKOI8_U, - 2569 => kCFStringEncodingBig5_E, - 2818 => kCFStringEncodingNextStepJapanese, - 3073 => kCFStringEncodingEBCDIC_US, - 3074 => kCFStringEncodingEBCDIC_CP037, - 67109120 => kCFStringEncodingUTF7, - 2576 => kCFStringEncodingUTF7_IMAP, - _ => throw ArgumentError('Unknown value for CFStringEncodings: $value'), - }; - - @override - String toString() { - if (this == kCFStringEncodingShiftJIS_X0213) - return "CFStringEncodings.kCFStringEncodingShiftJIS_X0213, CFStringEncodings.kCFStringEncodingShiftJIS_X0213_00"; - return super.toString(); - } -} - -final class CFStringInlineBuffer extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array buffer; - - external CFStringRef theString; - - external ffi.Pointer directUniCharBuffer; - - external ffi.Pointer directCStringBuffer; - - external CFRange rangeToBuffer; - - @CFIndex() - external int bufferedRangeStart; - - @CFIndex() - external int bufferedRangeEnd; -} - -enum CFStringNormalizationForm { - kCFStringNormalizationFormD(0), - kCFStringNormalizationFormKD(1), - kCFStringNormalizationFormC(2), - kCFStringNormalizationFormKC(3); - - final int value; - const CFStringNormalizationForm(this.value); - - static CFStringNormalizationForm fromValue(int value) => switch (value) { - 0 => kCFStringNormalizationFormD, - 1 => kCFStringNormalizationFormKD, - 2 => kCFStringNormalizationFormC, - 3 => kCFStringNormalizationFormKC, - _ => throw ArgumentError( - 'Unknown value for CFStringNormalizationForm: $value', - ), - }; -} - -typedef CFStringRef = ffi.Pointer; -typedef CFStringTokenizerRef = ffi.Pointer<__CFStringTokenizer>; - -sealed class CFStringTokenizerTokenType { - static const kCFStringTokenizerTokenNone = 0; - static const kCFStringTokenizerTokenNormal = 1; - static const kCFStringTokenizerTokenHasSubTokensMask = 2; - static const kCFStringTokenizerTokenHasDerivedSubTokensMask = 4; - static const kCFStringTokenizerTokenHasHasNumbersMask = 8; - static const kCFStringTokenizerTokenHasNonLettersMask = 16; - static const kCFStringTokenizerTokenIsCJWordMask = 32; -} - -final class CFSwappedFloat32 extends ffi.Struct { - @ffi.Uint32() - external int v; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - }) => $allocator()..ref.v = v; -} - -final class CFSwappedFloat64 extends ffi.Struct { - @ffi.Uint64() - external int v; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - }) => $allocator()..ref.v = v; -} - -typedef CFTimeInterval = ffi.Double; -typedef DartCFTimeInterval = double; - -enum CFTimeZoneNameStyle { - kCFTimeZoneNameStyleStandard(0), - kCFTimeZoneNameStyleShortStandard(1), - kCFTimeZoneNameStyleDaylightSaving(2), - kCFTimeZoneNameStyleShortDaylightSaving(3), - kCFTimeZoneNameStyleGeneric(4), - kCFTimeZoneNameStyleShortGeneric(5); - - final int value; - const CFTimeZoneNameStyle(this.value); - - static CFTimeZoneNameStyle fromValue(int value) => switch (value) { - 0 => kCFTimeZoneNameStyleStandard, - 1 => kCFTimeZoneNameStyleShortStandard, - 2 => kCFTimeZoneNameStyleDaylightSaving, - 3 => kCFTimeZoneNameStyleShortDaylightSaving, - 4 => kCFTimeZoneNameStyleGeneric, - 5 => kCFTimeZoneNameStyleShortGeneric, - _ => throw ArgumentError('Unknown value for CFTimeZoneNameStyle: $value'), - }; -} - -typedef CFTimeZoneRef = ffi.Pointer<__CFTimeZone>; -typedef CFTreeApplierFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ) - > - >; - -final class CFTreeContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFTreeRetainCallBack retain; - - external CFTreeReleaseCallBack release; - - external CFTreeCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFTreeRetainCallBack retain, - required CFTreeReleaseCallBack release, - required CFTreeCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFTreeCopyDescriptionCallBack = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef CFTreeRef = ffi.Pointer<__CFTree>; -typedef CFTreeReleaseCallBack = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef CFTreeRetainCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - >; -typedef CFTypeID = ffi.UnsignedLong; -typedef DartCFTypeID = int; -typedef CFTypeRef = ffi.Pointer; - -sealed class CFURLBookmarkCreationOptions { - static const kCFURLBookmarkCreationMinimalBookmarkMask = 512; - static const kCFURLBookmarkCreationSuitableForBookmarkFile = 1024; - static const kCFURLBookmarkCreationWithSecurityScope = 2048; - static const kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; - static const kCFURLBookmarkCreationWithoutImplicitSecurityScope = 536870912; - static const kCFURLBookmarkCreationPreferFileIDResolutionMask = 256; -} - -typedef CFURLBookmarkFileCreationOptions = CFOptionFlags; - -sealed class CFURLBookmarkResolutionOptions { - static const kCFURLBookmarkResolutionWithoutUIMask = 256; - static const kCFURLBookmarkResolutionWithoutMountingMask = 512; - static const kCFURLBookmarkResolutionWithSecurityScope = 1024; - static const kCFURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; - static const kCFBookmarkResolutionWithoutUIMask = 256; - static const kCFBookmarkResolutionWithoutMountingMask = 512; -} - -enum CFURLComponentType { - kCFURLComponentScheme(1), - kCFURLComponentNetLocation(2), - kCFURLComponentPath(3), - kCFURLComponentResourceSpecifier(4), - kCFURLComponentUser(5), - kCFURLComponentPassword(6), - kCFURLComponentUserInfo(7), - kCFURLComponentHost(8), - kCFURLComponentPort(9), - kCFURLComponentParameterString(10), - kCFURLComponentQuery(11), - kCFURLComponentFragment(12); - - final int value; - const CFURLComponentType(this.value); - - static CFURLComponentType fromValue(int value) => switch (value) { - 1 => kCFURLComponentScheme, - 2 => kCFURLComponentNetLocation, - 3 => kCFURLComponentPath, - 4 => kCFURLComponentResourceSpecifier, - 5 => kCFURLComponentUser, - 6 => kCFURLComponentPassword, - 7 => kCFURLComponentUserInfo, - 8 => kCFURLComponentHost, - 9 => kCFURLComponentPort, - 10 => kCFURLComponentParameterString, - 11 => kCFURLComponentQuery, - 12 => kCFURLComponentFragment, - _ => throw ArgumentError('Unknown value for CFURLComponentType: $value'), - }; -} - -sealed class CFURLEnumeratorOptions { - static const kCFURLEnumeratorDefaultBehavior = 0; - static const kCFURLEnumeratorDescendRecursively = 1; - static const kCFURLEnumeratorSkipInvisibles = 2; - static const kCFURLEnumeratorGenerateFileReferenceURLs = 4; - static const kCFURLEnumeratorSkipPackageContents = 8; - static const kCFURLEnumeratorIncludeDirectoriesPreOrder = 16; - static const kCFURLEnumeratorIncludeDirectoriesPostOrder = 32; - static const kCFURLEnumeratorGenerateRelativePathURLs = 64; -} - -typedef CFURLEnumeratorRef = ffi.Pointer<__CFURLEnumerator>; - -enum CFURLEnumeratorResult { - kCFURLEnumeratorSuccess(1), - kCFURLEnumeratorEnd(2), - kCFURLEnumeratorError(3), - kCFURLEnumeratorDirectoryPostOrderSuccess(4); - - final int value; - const CFURLEnumeratorResult(this.value); - - static CFURLEnumeratorResult fromValue(int value) => switch (value) { - 1 => kCFURLEnumeratorSuccess, - 2 => kCFURLEnumeratorEnd, - 3 => kCFURLEnumeratorError, - 4 => kCFURLEnumeratorDirectoryPostOrderSuccess, - _ => throw ArgumentError('Unknown value for CFURLEnumeratorResult: $value'), - }; -} - -@Deprecated('Use CFError codes instead') -enum CFURLError { - kCFURLUnknownError(-10), - kCFURLUnknownSchemeError(-11), - kCFURLResourceNotFoundError(-12), - kCFURLResourceAccessViolationError(-13), - kCFURLRemoteHostUnavailableError(-14), - kCFURLImproperArgumentsError(-15), - kCFURLUnknownPropertyKeyError(-16), - kCFURLPropertyKeyUnavailableError(-17), - kCFURLTimeoutError(-18); - - final int value; - const CFURLError(this.value); - - static CFURLError fromValue(int value) => switch (value) { - -10 => kCFURLUnknownError, - -11 => kCFURLUnknownSchemeError, - -12 => kCFURLResourceNotFoundError, - -13 => kCFURLResourceAccessViolationError, - -14 => kCFURLRemoteHostUnavailableError, - -15 => kCFURLImproperArgumentsError, - -16 => kCFURLUnknownPropertyKeyError, - -17 => kCFURLPropertyKeyUnavailableError, - -18 => kCFURLTimeoutError, - _ => throw ArgumentError('Unknown value for CFURLError: $value'), - }; -} - -enum CFURLPathStyle { - kCFURLPOSIXPathStyle(0), - kCFURLHFSPathStyle(1), - kCFURLWindowsPathStyle(2); - - final int value; - const CFURLPathStyle(this.value); - - static CFURLPathStyle fromValue(int value) => switch (value) { - 0 => kCFURLPOSIXPathStyle, - 1 => kCFURLHFSPathStyle, - 2 => kCFURLWindowsPathStyle, - _ => throw ArgumentError('Unknown value for CFURLPathStyle: $value'), - }; -} - -typedef CFURLRef = ffi.Pointer<__CFURL>; - -final class CFUUIDBytes extends ffi.Struct { - @UInt8() - external int byte0; - - @UInt8() - external int byte1; - - @UInt8() - external int byte2; - - @UInt8() - external int byte3; - - @UInt8() - external int byte4; - - @UInt8() - external int byte5; - - @UInt8() - external int byte6; - - @UInt8() - external int byte7; - - @UInt8() - external int byte8; - - @UInt8() - external int byte9; - - @UInt8() - external int byte10; - - @UInt8() - external int byte11; - - @UInt8() - external int byte12; - - @UInt8() - external int byte13; - - @UInt8() - external int byte14; - - @UInt8() - external int byte15; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int byte0, - required int byte1, - required int byte2, - required int byte3, - required int byte4, - required int byte5, - required int byte6, - required int byte7, - required int byte8, - required int byte9, - required int byte10, - required int byte11, - required int byte12, - required int byte13, - required int byte14, - required int byte15, - }) => $allocator() - ..ref.byte0 = byte0 - ..ref.byte1 = byte1 - ..ref.byte2 = byte2 - ..ref.byte3 = byte3 - ..ref.byte4 = byte4 - ..ref.byte5 = byte5 - ..ref.byte6 = byte6 - ..ref.byte7 = byte7 - ..ref.byte8 = byte8 - ..ref.byte9 = byte9 - ..ref.byte10 = byte10 - ..ref.byte11 = byte11 - ..ref.byte12 = byte12 - ..ref.byte13 = byte13 - ..ref.byte14 = byte14 - ..ref.byte15 = byte15; -} - -typedef CFUUIDRef = ffi.Pointer<__CFUUID>; -typedef CFUserNotificationCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFUserNotificationRef userNotification, - CFOptionFlags responseFlags, - ) - > - >; -typedef CFUserNotificationRef = ffi.Pointer<__CFUserNotification>; -typedef CFWriteStreamClientCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFWriteStreamRef stream, - CFOptionFlags type, - ffi.Pointer clientCallBackInfo, - ) - > - >; -typedef CFWriteStreamRef = ffi.Pointer<__CFWriteStream>; - -final class CFXMLAttributeDeclarationInfo extends ffi.Struct { - external CFStringRef attributeName; - - external CFStringRef typeString; - - external CFStringRef defaultString; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFStringRef attributeName, - required CFStringRef typeString, - required CFStringRef defaultString, - }) => $allocator() - ..ref.attributeName = attributeName - ..ref.typeString = typeString - ..ref.defaultString = defaultString; -} - -final class CFXMLAttributeListDeclarationInfo extends ffi.Struct { - @CFIndex() - external int numberOfAttributes; - - external ffi.Pointer attributes; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfAttributes, - required ffi.Pointer attributes, - }) => $allocator() - ..ref.numberOfAttributes = numberOfAttributes - ..ref.attributes = attributes; -} - -final class CFXMLDocumentInfo extends ffi.Struct { - external CFURLRef sourceURL; - - @CFStringEncoding() - external int encoding; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFURLRef sourceURL, - required int encoding, - }) => $allocator() - ..ref.sourceURL = sourceURL - ..ref.encoding = encoding; -} - -final class CFXMLDocumentTypeInfo extends ffi.Struct { - external CFXMLExternalID externalID; -} - -final class CFXMLElementInfo extends ffi.Struct { - external CFDictionaryRef attributes; - - external CFArrayRef attributeOrder; - - @Boolean() - external int isEmpty; - - @ffi.Array.multi([3]) - external ffi.Array _reserved; -} - -final class CFXMLElementTypeDeclarationInfo extends ffi.Struct { - external CFStringRef contentDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFStringRef contentDescription, - }) => - $allocator() - ..ref.contentDescription = contentDescription; -} - -final class CFXMLEntityInfo extends ffi.Struct { - @CFIndex() - external int entityTypeAsInt; - - CFXMLEntityTypeCode get entityType => - CFXMLEntityTypeCode.fromValue(entityTypeAsInt); - set entityType(CFXMLEntityTypeCode value) => entityTypeAsInt = value.value; - - external CFStringRef replacementText; - - external CFXMLExternalID entityID; - - external CFStringRef notationName; -} - -final class CFXMLEntityReferenceInfo extends ffi.Struct { - @CFIndex() - external int entityTypeAsInt; - - CFXMLEntityTypeCode get entityType => - CFXMLEntityTypeCode.fromValue(entityTypeAsInt); - set entityType(CFXMLEntityTypeCode value) => entityTypeAsInt = value.value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFXMLEntityTypeCode entityType, - }) => $allocator()..ref.entityType = entityType; -} - -enum CFXMLEntityTypeCode { - kCFXMLEntityTypeParameter(0), - kCFXMLEntityTypeParsedInternal(1), - kCFXMLEntityTypeParsedExternal(2), - kCFXMLEntityTypeUnparsed(3), - kCFXMLEntityTypeCharacter(4); - - final int value; - const CFXMLEntityTypeCode(this.value); - - static CFXMLEntityTypeCode fromValue(int value) => switch (value) { - 0 => kCFXMLEntityTypeParameter, - 1 => kCFXMLEntityTypeParsedInternal, - 2 => kCFXMLEntityTypeParsedExternal, - 3 => kCFXMLEntityTypeUnparsed, - 4 => kCFXMLEntityTypeCharacter, - _ => throw ArgumentError('Unknown value for CFXMLEntityTypeCode: $value'), - }; -} - -final class CFXMLExternalID extends ffi.Struct { - external CFURLRef systemID; - - external CFStringRef publicID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFURLRef systemID, - required CFStringRef publicID, - }) => $allocator() - ..ref.systemID = systemID - ..ref.publicID = publicID; -} - -typedef CFXMLNodeRef = ffi.Pointer<__CFXMLNode>; - -enum CFXMLNodeTypeCode { - kCFXMLNodeTypeDocument(1), - kCFXMLNodeTypeElement(2), - kCFXMLNodeTypeAttribute(3), - kCFXMLNodeTypeProcessingInstruction(4), - kCFXMLNodeTypeComment(5), - kCFXMLNodeTypeText(6), - kCFXMLNodeTypeCDATASection(7), - kCFXMLNodeTypeDocumentFragment(8), - kCFXMLNodeTypeEntity(9), - kCFXMLNodeTypeEntityReference(10), - kCFXMLNodeTypeDocumentType(11), - kCFXMLNodeTypeWhitespace(12), - kCFXMLNodeTypeNotation(13), - kCFXMLNodeTypeElementTypeDeclaration(14), - kCFXMLNodeTypeAttributeListDeclaration(15); - - final int value; - const CFXMLNodeTypeCode(this.value); - - static CFXMLNodeTypeCode fromValue(int value) => switch (value) { - 1 => kCFXMLNodeTypeDocument, - 2 => kCFXMLNodeTypeElement, - 3 => kCFXMLNodeTypeAttribute, - 4 => kCFXMLNodeTypeProcessingInstruction, - 5 => kCFXMLNodeTypeComment, - 6 => kCFXMLNodeTypeText, - 7 => kCFXMLNodeTypeCDATASection, - 8 => kCFXMLNodeTypeDocumentFragment, - 9 => kCFXMLNodeTypeEntity, - 10 => kCFXMLNodeTypeEntityReference, - 11 => kCFXMLNodeTypeDocumentType, - 12 => kCFXMLNodeTypeWhitespace, - 13 => kCFXMLNodeTypeNotation, - 14 => kCFXMLNodeTypeElementTypeDeclaration, - 15 => kCFXMLNodeTypeAttributeListDeclaration, - _ => throw ArgumentError('Unknown value for CFXMLNodeTypeCode: $value'), - }; -} - -final class CFXMLNotationInfo extends ffi.Struct { - external CFXMLExternalID externalID; -} - -typedef CFXMLParserAddChildCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFXMLParserRef parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ) - > - >; - -final class CFXMLParserCallBacks extends ffi.Struct { - @CFIndex() - external int version; - - external CFXMLParserCreateXMLStructureCallBack createXMLStructure; - - external CFXMLParserAddChildCallBack addChild; - - external CFXMLParserEndXMLStructureCallBack endXMLStructure; - - external CFXMLParserResolveExternalEntityCallBack resolveExternalEntity; - - external CFXMLParserHandleErrorCallBack handleError; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFXMLParserCreateXMLStructureCallBack createXMLStructure, - required CFXMLParserAddChildCallBack addChild, - required CFXMLParserEndXMLStructureCallBack endXMLStructure, - required CFXMLParserResolveExternalEntityCallBack resolveExternalEntity, - required CFXMLParserHandleErrorCallBack handleError, - }) => $allocator() - ..ref.version = version - ..ref.createXMLStructure = createXMLStructure - ..ref.addChild = addChild - ..ref.endXMLStructure = endXMLStructure - ..ref.resolveExternalEntity = resolveExternalEntity - ..ref.handleError = handleError; -} - -final class CFXMLParserContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFXMLParserRetainCallBack retain; - - external CFXMLParserReleaseCallBack release; - - external CFXMLParserCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFXMLParserRetainCallBack retain, - required CFXMLParserReleaseCallBack release, - required CFXMLParserCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef CFXMLParserCopyDescriptionCallBack = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef CFXMLParserCreateXMLStructureCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CFXMLParserRef parser, - CFXMLNodeRef nodeDesc, - ffi.Pointer info, - ) - > - >; -typedef CFXMLParserEndXMLStructureCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFXMLParserRef parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ) - > - >; -typedef CFXMLParserHandleErrorCallBack = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - CFXMLParserRef parser, - CFIndex error, - ffi.Pointer info, - ) - > - >; - -sealed class CFXMLParserOptions { - static const kCFXMLParserValidateDocument = 1; - static const kCFXMLParserSkipMetaData = 2; - static const kCFXMLParserReplacePhysicalEntities = 4; - static const kCFXMLParserSkipWhitespace = 8; - static const kCFXMLParserResolveExternalEntities = 16; - static const kCFXMLParserAddImpliedAttributes = 32; - static const kCFXMLParserAllOptions = 16777215; - static const kCFXMLParserNoOptions = 0; -} - -typedef CFXMLParserRef = ffi.Pointer<__CFXMLParser>; -typedef CFXMLParserReleaseCallBack = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef CFXMLParserResolveExternalEntityCallBack = - ffi.Pointer< - ffi.NativeFunction< - CFDataRef Function( - CFXMLParserRef parser, - ffi.Pointer extID, - ffi.Pointer info, - ) - > - >; -typedef CFXMLParserRetainCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - >; - -sealed class CFXMLParserStatusCode { - static const kCFXMLStatusParseNotBegun = -2; - static const kCFXMLStatusParseInProgress = -1; - static const kCFXMLStatusParseSuccessful = 0; - static const kCFXMLErrorUnexpectedEOF = 1; - static const kCFXMLErrorUnknownEncoding = 2; - static const kCFXMLErrorEncodingConversionFailure = 3; - static const kCFXMLErrorMalformedProcessingInstruction = 4; - static const kCFXMLErrorMalformedDTD = 5; - static const kCFXMLErrorMalformedName = 6; - static const kCFXMLErrorMalformedCDSect = 7; - static const kCFXMLErrorMalformedCloseTag = 8; - static const kCFXMLErrorMalformedStartTag = 9; - static const kCFXMLErrorMalformedDocument = 10; - static const kCFXMLErrorElementlessDocument = 11; - static const kCFXMLErrorMalformedComment = 12; - static const kCFXMLErrorMalformedCharacterReference = 13; - static const kCFXMLErrorMalformedParsedCharacterData = 14; - static const kCFXMLErrorNoData = 15; -} - -final class CFXMLProcessingInstructionInfo extends ffi.Struct { - external CFStringRef dataString; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFStringRef dataString, - }) => - $allocator()..ref.dataString = dataString; -} - -typedef CFXMLTreeRef = CFTreeRef; - -final class CGAffineTransform extends ffi.Struct { - @CGFloat() - external double a; - - @CGFloat() - external double b; - - @CGFloat() - external double c; - - @CGFloat() - external double d; - - @CGFloat() - external double tx; - - @CGFloat() - external double ty; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double a, - required double b, - required double c, - required double d, - required double tx, - required double ty, - }) => $allocator() - ..ref.a = a - ..ref.b = b - ..ref.c = c - ..ref.d = d - ..ref.tx = tx - ..ref.ty = ty; -} - -final class CGAffineTransformComponents extends ffi.Struct { - external objc.CGSize scale; - - @CGFloat() - external double horizontalShear; - - @CGFloat() - external double rotation; - - external CGVector translation; -} - -typedef CGBitmapContextReleaseDataCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer releaseInfo, - ffi.Pointer data, - ) - > - >; - -sealed class CGBitmapInfo { - static const kCGBitmapAlphaInfoMask = 31; - static const kCGBitmapComponentInfoMask = 3840; - static const kCGBitmapByteOrderInfoMask = 28672; - static const kCGBitmapPixelFormatInfoMask = 983040; - static const kCGBitmapFloatInfoMask = 3840; - static const kCGBitmapByteOrderMask = 28672; - static const kCGBitmapFloatComponents = 256; - static const kCGBitmapByteOrderDefault = 0; - static const kCGBitmapByteOrder16Little = 4096; - static const kCGBitmapByteOrder32Little = 8192; - static const kCGBitmapByteOrder16Big = 12288; - static const kCGBitmapByteOrder32Big = 16384; -} - -enum CGBitmapLayout { - kCGBitmapLayoutAlphaOnly(0), - kCGBitmapLayoutGray(1), - kCGBitmapLayoutGrayAlpha(2), - kCGBitmapLayoutRGBA(3), - kCGBitmapLayoutARGB(4), - kCGBitmapLayoutRGBX(5), - kCGBitmapLayoutXRGB(6), - kCGBitmapLayoutBGRA(7), - kCGBitmapLayoutBGRX(8), - kCGBitmapLayoutABGR(9), - kCGBitmapLayoutXBGR(10), - kCGBitmapLayoutCMYK(11); - - final int value; - const CGBitmapLayout(this.value); - - static CGBitmapLayout fromValue(int value) => switch (value) { - 0 => kCGBitmapLayoutAlphaOnly, - 1 => kCGBitmapLayoutGray, - 2 => kCGBitmapLayoutGrayAlpha, - 3 => kCGBitmapLayoutRGBA, - 4 => kCGBitmapLayoutARGB, - 5 => kCGBitmapLayoutRGBX, - 6 => kCGBitmapLayoutXRGB, - 7 => kCGBitmapLayoutBGRA, - 8 => kCGBitmapLayoutBGRX, - 9 => kCGBitmapLayoutABGR, - 10 => kCGBitmapLayoutXBGR, - 11 => kCGBitmapLayoutCMYK, - _ => throw ArgumentError('Unknown value for CGBitmapLayout: $value'), - }; -} - -final class CGBitmapParameters extends ffi.Struct { - @ffi.Size() - external int width; - - @ffi.Size() - external int height; - - @ffi.Size() - external int bytesPerPixel; - - @ffi.Size() - external int alignedBytesPerRow; - - @ffi.Uint32() - external int componentAsInt; - - CGComponent get component => CGComponent.fromValue(componentAsInt); - set component(CGComponent value) => componentAsInt = value.value; - - @ffi.Uint32() - external int layoutAsInt; - - CGBitmapLayout get layout => CGBitmapLayout.fromValue(layoutAsInt); - set layout(CGBitmapLayout value) => layoutAsInt = value.value; - - @ffi.Uint32() - external int formatAsInt; - - CGImagePixelFormatInfo get format => - CGImagePixelFormatInfo.fromValue(formatAsInt); - set format(CGImagePixelFormatInfo value) => formatAsInt = value.value; - - external CGColorSpaceRef colorSpace; - - @ffi.Bool() - external bool hasPremultipliedAlpha; - - @CFByteOrder() - external int byteOrder; - - @ffi.Float() - external double edrTargetHeadroom; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int width, - required int height, - required int bytesPerPixel, - required int alignedBytesPerRow, - required CGComponent component, - required CGBitmapLayout layout, - required CGImagePixelFormatInfo format, - required CGColorSpaceRef colorSpace, - required bool hasPremultipliedAlpha, - required int byteOrder, - required double edrTargetHeadroom, - }) => $allocator() - ..ref.width = width - ..ref.height = height - ..ref.bytesPerPixel = bytesPerPixel - ..ref.alignedBytesPerRow = alignedBytesPerRow - ..ref.component = component - ..ref.layout = layout - ..ref.format = format - ..ref.colorSpace = colorSpace - ..ref.hasPremultipliedAlpha = hasPremultipliedAlpha - ..ref.byteOrder = byteOrder - ..ref.edrTargetHeadroom = edrTargetHeadroom; -} - -enum CGBlendMode { - kCGBlendModeNormal(0), - kCGBlendModeMultiply(1), - kCGBlendModeScreen(2), - kCGBlendModeOverlay(3), - kCGBlendModeDarken(4), - kCGBlendModeLighten(5), - kCGBlendModeColorDodge(6), - kCGBlendModeColorBurn(7), - kCGBlendModeSoftLight(8), - kCGBlendModeHardLight(9), - kCGBlendModeDifference(10), - kCGBlendModeExclusion(11), - kCGBlendModeHue(12), - kCGBlendModeSaturation(13), - kCGBlendModeColor(14), - kCGBlendModeLuminosity(15), - kCGBlendModeClear(16), - kCGBlendModeCopy(17), - kCGBlendModeSourceIn(18), - kCGBlendModeSourceOut(19), - kCGBlendModeSourceAtop(20), - kCGBlendModeDestinationOver(21), - kCGBlendModeDestinationIn(22), - kCGBlendModeDestinationOut(23), - kCGBlendModeDestinationAtop(24), - kCGBlendModeXOR(25), - kCGBlendModePlusDarker(26), - kCGBlendModePlusLighter(27); - - final int value; - const CGBlendMode(this.value); - - static CGBlendMode fromValue(int value) => switch (value) { - 0 => kCGBlendModeNormal, - 1 => kCGBlendModeMultiply, - 2 => kCGBlendModeScreen, - 3 => kCGBlendModeOverlay, - 4 => kCGBlendModeDarken, - 5 => kCGBlendModeLighten, - 6 => kCGBlendModeColorDodge, - 7 => kCGBlendModeColorBurn, - 8 => kCGBlendModeSoftLight, - 9 => kCGBlendModeHardLight, - 10 => kCGBlendModeDifference, - 11 => kCGBlendModeExclusion, - 12 => kCGBlendModeHue, - 13 => kCGBlendModeSaturation, - 14 => kCGBlendModeColor, - 15 => kCGBlendModeLuminosity, - 16 => kCGBlendModeClear, - 17 => kCGBlendModeCopy, - 18 => kCGBlendModeSourceIn, - 19 => kCGBlendModeSourceOut, - 20 => kCGBlendModeSourceAtop, - 21 => kCGBlendModeDestinationOver, - 22 => kCGBlendModeDestinationIn, - 23 => kCGBlendModeDestinationOut, - 24 => kCGBlendModeDestinationAtop, - 25 => kCGBlendModeXOR, - 26 => kCGBlendModePlusDarker, - 27 => kCGBlendModePlusLighter, - _ => throw ArgumentError('Unknown value for CGBlendMode: $value'), - }; -} - -typedef CGButtonCount = ffi.Uint32; -typedef DartCGButtonCount = int; - -sealed class CGCaptureOptions { - static const kCGCaptureNoOptions = 0; - static const kCGCaptureNoFill = 1; -} - -typedef CGCharCode = ffi.Uint16; -typedef DartCGCharCode = int; - -final class CGColor extends ffi.Opaque {} - -final class CGColorBufferFormat extends ffi.Struct { - @ffi.Uint32() - external int version; - - @ffi.Uint32() - external int bitmapInfo; - - @ffi.Size() - external int bitsPerComponent; - - @ffi.Size() - external int bitsPerPixel; - - @ffi.Size() - external int bytesPerRow; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int bitmapInfo, - required int bitsPerComponent, - required int bitsPerPixel, - required int bytesPerRow, - }) => $allocator() - ..ref.version = version - ..ref.bitmapInfo = bitmapInfo - ..ref.bitsPerComponent = bitsPerComponent - ..ref.bitsPerPixel = bitsPerPixel - ..ref.bytesPerRow = bytesPerRow; -} - -final class CGColorConversionInfo extends ffi.Opaque {} - -typedef CGColorConversionInfoRef = ffi.Pointer; - -enum CGColorConversionInfoTransformType { - kCGColorConversionTransformFromSpace(0), - kCGColorConversionTransformToSpace(1), - kCGColorConversionTransformApplySpace(2); - - final int value; - const CGColorConversionInfoTransformType(this.value); - - static CGColorConversionInfoTransformType fromValue(int value) => - switch (value) { - 0 => kCGColorConversionTransformFromSpace, - 1 => kCGColorConversionTransformToSpace, - 2 => kCGColorConversionTransformApplySpace, - _ => throw ArgumentError( - 'Unknown value for CGColorConversionInfoTransformType: $value', - ), - }; -} - -final class CGColorDataFormat extends ffi.Struct { - @ffi.Uint32() - external int version; - - external CFTypeRef colorspace_info; - - @ffi.Uint32() - external int bitmap_info; - - @ffi.Size() - external int bits_per_component; - - @ffi.Size() - external int bytes_per_row; - - @ffi.Int32() - external int intentAsInt; - - CGColorRenderingIntent get intent => - CGColorRenderingIntent.fromValue(intentAsInt); - set intent(CGColorRenderingIntent value) => intentAsInt = value.value; - - external ffi.Pointer decode; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CFTypeRef colorspace_info, - required int bitmap_info, - required int bits_per_component, - required int bytes_per_row, - required CGColorRenderingIntent intent, - required ffi.Pointer decode, - }) => $allocator() - ..ref.version = version - ..ref.colorspace_info = colorspace_info - ..ref.bitmap_info = bitmap_info - ..ref.bits_per_component = bits_per_component - ..ref.bytes_per_row = bytes_per_row - ..ref.intent = intent - ..ref.decode = decode; -} - -sealed class CGColorModel { - static const kCGColorModelNoColorant = 0; - static const kCGColorModelGray = 1; - static const kCGColorModelRGB = 2; - static const kCGColorModelCMYK = 4; - static const kCGColorModelLab = 8; - static const kCGColorModelDeviceN = 16; -} - -typedef CGColorRef = ffi.Pointer; - -enum CGColorRenderingIntent { - kCGRenderingIntentDefault(0), - kCGRenderingIntentAbsoluteColorimetric(1), - kCGRenderingIntentRelativeColorimetric(2), - kCGRenderingIntentPerceptual(3), - kCGRenderingIntentSaturation(4); - - final int value; - const CGColorRenderingIntent(this.value); - - static CGColorRenderingIntent fromValue(int value) => switch (value) { - 0 => kCGRenderingIntentDefault, - 1 => kCGRenderingIntentAbsoluteColorimetric, - 2 => kCGRenderingIntentRelativeColorimetric, - 3 => kCGRenderingIntentPerceptual, - 4 => kCGRenderingIntentSaturation, - _ => throw ArgumentError( - 'Unknown value for CGColorRenderingIntent: $value', - ), - }; -} - -final class CGColorSpace extends ffi.Opaque {} - -enum CGColorSpaceModel { - kCGColorSpaceModelUnknown(-1), - kCGColorSpaceModelMonochrome(0), - kCGColorSpaceModelRGB(1), - kCGColorSpaceModelCMYK(2), - kCGColorSpaceModelLab(3), - kCGColorSpaceModelDeviceN(4), - kCGColorSpaceModelIndexed(5), - kCGColorSpaceModelPattern(6), - kCGColorSpaceModelXYZ(7); - - final int value; - const CGColorSpaceModel(this.value); - - static CGColorSpaceModel fromValue(int value) => switch (value) { - -1 => kCGColorSpaceModelUnknown, - 0 => kCGColorSpaceModelMonochrome, - 1 => kCGColorSpaceModelRGB, - 2 => kCGColorSpaceModelCMYK, - 3 => kCGColorSpaceModelLab, - 4 => kCGColorSpaceModelDeviceN, - 5 => kCGColorSpaceModelIndexed, - 6 => kCGColorSpaceModelPattern, - 7 => kCGColorSpaceModelXYZ, - _ => throw ArgumentError('Unknown value for CGColorSpaceModel: $value'), - }; -} - -typedef CGColorSpaceRef = ffi.Pointer; - -enum CGComponent { - kCGComponentUnknown(0), - kCGComponentInteger8Bit(1), - kCGComponentInteger10Bit(6), - kCGComponentInteger16Bit(2), - kCGComponentInteger32Bit(3), - kCGComponentFloat16Bit(5), - kCGComponentFloat32Bit(4); - - final int value; - const CGComponent(this.value); - - static CGComponent fromValue(int value) => switch (value) { - 0 => kCGComponentUnknown, - 1 => kCGComponentInteger8Bit, - 6 => kCGComponentInteger10Bit, - 2 => kCGComponentInteger16Bit, - 3 => kCGComponentInteger32Bit, - 5 => kCGComponentFloat16Bit, - 4 => kCGComponentFloat32Bit, - _ => throw ArgumentError('Unknown value for CGComponent: $value'), - }; -} - -sealed class CGConfigureOption { - static const kCGConfigureForAppOnly = 0; - static const kCGConfigureForSession = 1; - static const kCGConfigurePermanently = 2; -} - -final class CGContentInfo extends ffi.Struct { - @ffi.Uint32() - external int deepestImageComponentAsInt; - - CGComponent get deepestImageComponent => - CGComponent.fromValue(deepestImageComponentAsInt); - set deepestImageComponent(CGComponent value) => - deepestImageComponentAsInt = value.value; - - @ffi.Uint32() - external int contentColorModels; - - @ffi.Bool() - external bool hasWideGamut; - - @ffi.Bool() - external bool hasTransparency; - - @ffi.Float() - external double largestContentHeadroom; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CGComponent deepestImageComponent, - required int contentColorModels, - required bool hasWideGamut, - required bool hasTransparency, - required double largestContentHeadroom, - }) => $allocator() - ..ref.deepestImageComponent = deepestImageComponent - ..ref.contentColorModels = contentColorModels - ..ref.hasWideGamut = hasWideGamut - ..ref.hasTransparency = hasTransparency - ..ref.largestContentHeadroom = largestContentHeadroom; -} - -final class CGContentToneMappingInfo extends ffi.Struct { - @ffi.Uint32() - external int methodAsInt; - - CGToneMapping get method => CGToneMapping.fromValue(methodAsInt); - set method(CGToneMapping value) => methodAsInt = value.value; - - external CFDictionaryRef options; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CGToneMapping method, - required CFDictionaryRef options, - }) => $allocator() - ..ref.method = method - ..ref.options = options; -} - -final class CGContext extends ffi.Opaque {} - -typedef CGContextRef = ffi.Pointer; - -final class CGDataConsumer extends ffi.Opaque {} - -final class CGDataConsumerCallbacks extends ffi.Struct { - external CGDataConsumerPutBytesCallback putBytes; - - external CGDataConsumerReleaseInfoCallback releaseConsumer; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CGDataConsumerPutBytesCallback putBytes, - required CGDataConsumerReleaseInfoCallback releaseConsumer, - }) => $allocator() - ..ref.putBytes = putBytes - ..ref.releaseConsumer = releaseConsumer; -} - -typedef CGDataConsumerPutBytesCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - ffi.Size count, - ) - > - >; -typedef CGDataConsumerRef = ffi.Pointer; -typedef CGDataConsumerReleaseInfoCallback = - ffi.Pointer< - ffi.NativeFunction info)> - >; - -final class CGDataProvider extends ffi.Opaque {} - -final class CGDataProviderDirectCallbacks extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external CGDataProviderGetBytePointerCallback getBytePointer; - - external CGDataProviderReleaseBytePointerCallback releaseBytePointer; - - external CGDataProviderGetBytesAtPositionCallback getBytesAtPosition; - - external CGDataProviderReleaseInfoCallback releaseInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CGDataProviderGetBytePointerCallback getBytePointer, - required CGDataProviderReleaseBytePointerCallback releaseBytePointer, - required CGDataProviderGetBytesAtPositionCallback getBytesAtPosition, - required CGDataProviderReleaseInfoCallback releaseInfo, - }) => $allocator() - ..ref.version = version - ..ref.getBytePointer = getBytePointer - ..ref.releaseBytePointer = releaseBytePointer - ..ref.getBytesAtPosition = getBytesAtPosition - ..ref.releaseInfo = releaseInfo; -} - -typedef CGDataProviderGetBytePointerCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - >; -typedef CGDataProviderGetBytesAtPositionCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - off_t pos, - ffi.Size cnt, - ) - > - >; -typedef CGDataProviderGetBytesCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - ffi.Size count, - ) - > - >; -typedef CGDataProviderRef = ffi.Pointer; -typedef CGDataProviderReleaseBytePointerCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer pointer, - ) - > - >; -typedef CGDataProviderReleaseDataCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer data, - ffi.Size size, - ) - > - >; -typedef CGDataProviderReleaseInfoCallback = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef CGDataProviderRewindCallback = - ffi.Pointer< - ffi.NativeFunction info)> - >; - -final class CGDataProviderSequentialCallbacks extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external CGDataProviderGetBytesCallback getBytes; - - external CGDataProviderSkipForwardCallback skipForward; - - external CGDataProviderRewindCallback rewind$1; - - external CGDataProviderReleaseInfoCallback releaseInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CGDataProviderGetBytesCallback getBytes, - required CGDataProviderSkipForwardCallback skipForward, - required CGDataProviderRewindCallback rewind$1, - required CGDataProviderReleaseInfoCallback releaseInfo, - }) => $allocator() - ..ref.version = version - ..ref.getBytes = getBytes - ..ref.skipForward = skipForward - ..ref.rewind$1 = rewind$1 - ..ref.releaseInfo = releaseInfo; -} - -typedef CGDataProviderSkipForwardCallback = - ffi.Pointer< - ffi.NativeFunction< - off_t Function(ffi.Pointer info, off_t count) - > - >; - -final class CGDeviceColor extends ffi.Struct { - @ffi.Float() - external double red; - - @ffi.Float() - external double green; - - @ffi.Float() - external double blue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double red, - required double green, - required double blue, - }) => $allocator() - ..ref.red = red - ..ref.green = green - ..ref.blue = blue; -} - -typedef CGDirectDisplayID = ffi.Uint32; -typedef DartCGDirectDisplayID = int; -typedef CGDisplayBlendFraction = ffi.Float; -typedef DartCGDisplayBlendFraction = double; - -sealed class CGDisplayChangeSummaryFlags { - static const kCGDisplayBeginConfigurationFlag = 1; - static const kCGDisplayMovedFlag = 2; - static const kCGDisplaySetMainFlag = 4; - static const kCGDisplaySetModeFlag = 8; - static const kCGDisplayAddFlag = 16; - static const kCGDisplayRemoveFlag = 32; - static const kCGDisplayEnabledFlag = 256; - static const kCGDisplayDisabledFlag = 512; - static const kCGDisplayMirrorFlag = 1024; - static const kCGDisplayUnMirrorFlag = 2048; - static const kCGDisplayDesktopShapeChangedFlag = 4096; -} - -typedef CGDisplayConfigRef = ffi.Pointer<_CGDisplayConfigRef>; -typedef CGDisplayCount = ffi.Uint32; -typedef DartCGDisplayCount = int; -typedef CGDisplayFadeInterval = ffi.Float; -typedef DartCGDisplayFadeInterval = double; -typedef CGDisplayFadeReservationToken = ffi.Uint32; -typedef DartCGDisplayFadeReservationToken = int; - -final class CGDisplayMode extends ffi.Opaque {} - -typedef CGDisplayModeRef = ffi.Pointer; -typedef CGDisplayReconfigurationCallBack = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CGDirectDisplayID display, - ffi.Uint32 flags, - ffi.Pointer userInfo, - ) - > - >; -typedef CGDisplayReservationInterval = ffi.Float; -typedef DartCGDisplayReservationInterval = double; - -final class CGDisplayStream extends ffi.Opaque {} - -typedef CGDisplayStreamFrameAvailableHandler = ffi.Pointer; -typedef DartCGDisplayStreamFrameAvailableHandler = - objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >; - -enum CGDisplayStreamFrameStatus { - kCGDisplayStreamFrameStatusFrameComplete(0), - kCGDisplayStreamFrameStatusFrameIdle(1), - kCGDisplayStreamFrameStatusFrameBlank(2), - kCGDisplayStreamFrameStatusStopped(3); - - final int value; - const CGDisplayStreamFrameStatus(this.value); - - static CGDisplayStreamFrameStatus fromValue(int value) => switch (value) { - 0 => kCGDisplayStreamFrameStatusFrameComplete, - 1 => kCGDisplayStreamFrameStatusFrameIdle, - 2 => kCGDisplayStreamFrameStatusFrameBlank, - 3 => kCGDisplayStreamFrameStatusStopped, - _ => throw ArgumentError( - 'Unknown value for CGDisplayStreamFrameStatus: $value', - ), - }; -} - -typedef CGDisplayStreamRef = ffi.Pointer; - -final class CGDisplayStreamUpdate extends ffi.Opaque {} - -enum CGDisplayStreamUpdateRectType { - kCGDisplayStreamUpdateRefreshedRects(0), - kCGDisplayStreamUpdateMovedRects(1), - kCGDisplayStreamUpdateDirtyRects(2), - kCGDisplayStreamUpdateReducedDirtyRects(3); - - final int value; - const CGDisplayStreamUpdateRectType(this.value); - - static CGDisplayStreamUpdateRectType fromValue(int value) => switch (value) { - 0 => kCGDisplayStreamUpdateRefreshedRects, - 1 => kCGDisplayStreamUpdateMovedRects, - 2 => kCGDisplayStreamUpdateDirtyRects, - 3 => kCGDisplayStreamUpdateReducedDirtyRects, - _ => throw ArgumentError( - 'Unknown value for CGDisplayStreamUpdateRectType: $value', - ), - }; -} - -typedef CGDisplayStreamUpdateRef = ffi.Pointer; - -enum CGError { - kCGErrorSuccess(0), - kCGErrorFailure(1000), - kCGErrorIllegalArgument(1001), - kCGErrorInvalidConnection(1002), - kCGErrorInvalidContext(1003), - kCGErrorCannotComplete(1004), - kCGErrorNotImplemented(1006), - kCGErrorRangeCheck(1007), - kCGErrorTypeCheck(1008), - kCGErrorInvalidOperation(1010), - kCGErrorNoneAvailable(1011); - - final int value; - const CGError(this.value); - - static CGError fromValue(int value) => switch (value) { - 0 => kCGErrorSuccess, - 1000 => kCGErrorFailure, - 1001 => kCGErrorIllegalArgument, - 1002 => kCGErrorInvalidConnection, - 1003 => kCGErrorInvalidContext, - 1004 => kCGErrorCannotComplete, - 1006 => kCGErrorNotImplemented, - 1007 => kCGErrorRangeCheck, - 1008 => kCGErrorTypeCheck, - 1010 => kCGErrorInvalidOperation, - 1011 => kCGErrorNoneAvailable, - _ => throw ArgumentError('Unknown value for CGError: $value'), - }; -} - -typedef CGErrorCallback = ffi.Pointer>; - -enum CGEventField { - kCGMouseEventNumber(0), - kCGMouseEventClickState(1), - kCGMouseEventPressure(2), - kCGMouseEventButtonNumber(3), - kCGMouseEventDeltaX(4), - kCGMouseEventDeltaY(5), - kCGMouseEventInstantMouser(6), - kCGMouseEventSubtype(7), - kCGKeyboardEventAutorepeat(8), - kCGKeyboardEventKeycode(9), - kCGKeyboardEventKeyboardType(10), - kCGScrollWheelEventDeltaAxis1(11), - kCGScrollWheelEventDeltaAxis2(12), - kCGScrollWheelEventDeltaAxis3(13), - kCGScrollWheelEventFixedPtDeltaAxis1(93), - kCGScrollWheelEventFixedPtDeltaAxis2(94), - kCGScrollWheelEventFixedPtDeltaAxis3(95), - kCGScrollWheelEventPointDeltaAxis1(96), - kCGScrollWheelEventPointDeltaAxis2(97), - kCGScrollWheelEventPointDeltaAxis3(98), - kCGScrollWheelEventScrollPhase(99), - kCGScrollWheelEventScrollCount(100), - kCGScrollWheelEventMomentumPhase(123), - kCGScrollWheelEventInstantMouser(14), - kCGTabletEventPointX(15), - kCGTabletEventPointY(16), - kCGTabletEventPointZ(17), - kCGTabletEventPointButtons(18), - kCGTabletEventPointPressure(19), - kCGTabletEventTiltX(20), - kCGTabletEventTiltY(21), - kCGTabletEventRotation(22), - kCGTabletEventTangentialPressure(23), - kCGTabletEventDeviceID(24), - kCGTabletEventVendor1(25), - kCGTabletEventVendor2(26), - kCGTabletEventVendor3(27), - kCGTabletProximityEventVendorID(28), - kCGTabletProximityEventTabletID(29), - kCGTabletProximityEventPointerID(30), - kCGTabletProximityEventDeviceID(31), - kCGTabletProximityEventSystemTabletID(32), - kCGTabletProximityEventVendorPointerType(33), - kCGTabletProximityEventVendorPointerSerialNumber(34), - kCGTabletProximityEventVendorUniqueID(35), - kCGTabletProximityEventCapabilityMask(36), - kCGTabletProximityEventPointerType(37), - kCGTabletProximityEventEnterProximity(38), - kCGEventTargetProcessSerialNumber(39), - kCGEventTargetUnixProcessID(40), - kCGEventSourceUnixProcessID(41), - kCGEventSourceUserData(42), - kCGEventSourceUserID(43), - kCGEventSourceGroupID(44), - kCGEventSourceStateID(45), - kCGScrollWheelEventIsContinuous(88), - kCGMouseEventWindowUnderMousePointer(91), - kCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent(92), - kCGEventUnacceleratedPointerMovementX(170), - kCGEventUnacceleratedPointerMovementY(171), - kCGScrollWheelEventMomentumOptionPhase(173), - kCGScrollWheelEventAcceleratedDeltaAxis1(176), - kCGScrollWheelEventAcceleratedDeltaAxis2(175), - kCGScrollWheelEventRawDeltaAxis1(178), - kCGScrollWheelEventRawDeltaAxis2(177); - - final int value; - const CGEventField(this.value); - - static CGEventField fromValue(int value) => switch (value) { - 0 => kCGMouseEventNumber, - 1 => kCGMouseEventClickState, - 2 => kCGMouseEventPressure, - 3 => kCGMouseEventButtonNumber, - 4 => kCGMouseEventDeltaX, - 5 => kCGMouseEventDeltaY, - 6 => kCGMouseEventInstantMouser, - 7 => kCGMouseEventSubtype, - 8 => kCGKeyboardEventAutorepeat, - 9 => kCGKeyboardEventKeycode, - 10 => kCGKeyboardEventKeyboardType, - 11 => kCGScrollWheelEventDeltaAxis1, - 12 => kCGScrollWheelEventDeltaAxis2, - 13 => kCGScrollWheelEventDeltaAxis3, - 93 => kCGScrollWheelEventFixedPtDeltaAxis1, - 94 => kCGScrollWheelEventFixedPtDeltaAxis2, - 95 => kCGScrollWheelEventFixedPtDeltaAxis3, - 96 => kCGScrollWheelEventPointDeltaAxis1, - 97 => kCGScrollWheelEventPointDeltaAxis2, - 98 => kCGScrollWheelEventPointDeltaAxis3, - 99 => kCGScrollWheelEventScrollPhase, - 100 => kCGScrollWheelEventScrollCount, - 123 => kCGScrollWheelEventMomentumPhase, - 14 => kCGScrollWheelEventInstantMouser, - 15 => kCGTabletEventPointX, - 16 => kCGTabletEventPointY, - 17 => kCGTabletEventPointZ, - 18 => kCGTabletEventPointButtons, - 19 => kCGTabletEventPointPressure, - 20 => kCGTabletEventTiltX, - 21 => kCGTabletEventTiltY, - 22 => kCGTabletEventRotation, - 23 => kCGTabletEventTangentialPressure, - 24 => kCGTabletEventDeviceID, - 25 => kCGTabletEventVendor1, - 26 => kCGTabletEventVendor2, - 27 => kCGTabletEventVendor3, - 28 => kCGTabletProximityEventVendorID, - 29 => kCGTabletProximityEventTabletID, - 30 => kCGTabletProximityEventPointerID, - 31 => kCGTabletProximityEventDeviceID, - 32 => kCGTabletProximityEventSystemTabletID, - 33 => kCGTabletProximityEventVendorPointerType, - 34 => kCGTabletProximityEventVendorPointerSerialNumber, - 35 => kCGTabletProximityEventVendorUniqueID, - 36 => kCGTabletProximityEventCapabilityMask, - 37 => kCGTabletProximityEventPointerType, - 38 => kCGTabletProximityEventEnterProximity, - 39 => kCGEventTargetProcessSerialNumber, - 40 => kCGEventTargetUnixProcessID, - 41 => kCGEventSourceUnixProcessID, - 42 => kCGEventSourceUserData, - 43 => kCGEventSourceUserID, - 44 => kCGEventSourceGroupID, - 45 => kCGEventSourceStateID, - 88 => kCGScrollWheelEventIsContinuous, - 91 => kCGMouseEventWindowUnderMousePointer, - 92 => kCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent, - 170 => kCGEventUnacceleratedPointerMovementX, - 171 => kCGEventUnacceleratedPointerMovementY, - 173 => kCGScrollWheelEventMomentumOptionPhase, - 176 => kCGScrollWheelEventAcceleratedDeltaAxis1, - 175 => kCGScrollWheelEventAcceleratedDeltaAxis2, - 178 => kCGScrollWheelEventRawDeltaAxis1, - 177 => kCGScrollWheelEventRawDeltaAxis2, - _ => throw ArgumentError('Unknown value for CGEventField: $value'), - }; -} - -sealed class CGEventFilterMask { - static const kCGEventFilterMaskPermitLocalMouseEvents = 1; - static const kCGEventFilterMaskPermitLocalKeyboardEvents = 2; - static const kCGEventFilterMaskPermitSystemDefinedEvents = 4; -} - -sealed class CGEventFlags { - static const kCGEventFlagMaskAlphaShift = 65536; - static const kCGEventFlagMaskShift = 131072; - static const kCGEventFlagMaskControl = 262144; - static const kCGEventFlagMaskAlternate = 524288; - static const kCGEventFlagMaskCommand = 1048576; - static const kCGEventFlagMaskHelp = 4194304; - static const kCGEventFlagMaskSecondaryFn = 8388608; - static const kCGEventFlagMaskNumericPad = 2097152; - static const kCGEventFlagMaskNonCoalesced = 256; -} - -typedef CGEventMask = ffi.Uint64; -typedef DartCGEventMask = int; - -enum CGEventMouseSubtype { - kCGEventMouseSubtypeDefault(0), - kCGEventMouseSubtypeTabletPoint(1), - kCGEventMouseSubtypeTabletProximity(2); - - final int value; - const CGEventMouseSubtype(this.value); - - static CGEventMouseSubtype fromValue(int value) => switch (value) { - 0 => kCGEventMouseSubtypeDefault, - 1 => kCGEventMouseSubtypeTabletPoint, - 2 => kCGEventMouseSubtypeTabletProximity, - _ => throw ArgumentError('Unknown value for CGEventMouseSubtype: $value'), - }; -} - -typedef CGEventRef = ffi.Pointer<__CGEvent>; -typedef CGEventSourceKeyboardType = ffi.Uint32; -typedef DartCGEventSourceKeyboardType = int; -typedef CGEventSourceRef = ffi.Pointer<__CGEventSource>; - -enum CGEventSourceStateID { - kCGEventSourceStatePrivate(-1), - kCGEventSourceStateCombinedSessionState(0), - kCGEventSourceStateHIDSystemState(1); - - final int value; - const CGEventSourceStateID(this.value); - - static CGEventSourceStateID fromValue(int value) => switch (value) { - -1 => kCGEventSourceStatePrivate, - 0 => kCGEventSourceStateCombinedSessionState, - 1 => kCGEventSourceStateHIDSystemState, - _ => throw ArgumentError('Unknown value for CGEventSourceStateID: $value'), - }; -} - -enum CGEventSuppressionState { - kCGEventSuppressionStateSuppressionInterval(0), - kCGEventSuppressionStateRemoteMouseDrag(1), - kCGNumberOfEventSuppressionStates(2); - - final int value; - const CGEventSuppressionState(this.value); - - static CGEventSuppressionState fromValue(int value) => switch (value) { - 0 => kCGEventSuppressionStateSuppressionInterval, - 1 => kCGEventSuppressionStateRemoteMouseDrag, - 2 => kCGNumberOfEventSuppressionStates, - _ => throw ArgumentError( - 'Unknown value for CGEventSuppressionState: $value', - ), - }; -} - -typedef CGEventTapCallBack = - ffi.Pointer< - ffi.NativeFunction< - CGEventRef Function( - CGEventTapProxy proxy, - ffi.Uint32 type, - CGEventRef event, - ffi.Pointer userInfo, - ) - > - >; -typedef CGEventTapInformation = __CGEventTapInformation; - -enum CGEventTapLocation { - kCGHIDEventTap(0), - kCGSessionEventTap(1), - kCGAnnotatedSessionEventTap(2); - - final int value; - const CGEventTapLocation(this.value); - - static CGEventTapLocation fromValue(int value) => switch (value) { - 0 => kCGHIDEventTap, - 1 => kCGSessionEventTap, - 2 => kCGAnnotatedSessionEventTap, - _ => throw ArgumentError('Unknown value for CGEventTapLocation: $value'), - }; -} - -enum CGEventTapOptions { - kCGEventTapOptionDefault(0), - kCGEventTapOptionListenOnly(1); - - final int value; - const CGEventTapOptions(this.value); - - static CGEventTapOptions fromValue(int value) => switch (value) { - 0 => kCGEventTapOptionDefault, - 1 => kCGEventTapOptionListenOnly, - _ => throw ArgumentError('Unknown value for CGEventTapOptions: $value'), - }; -} - -enum CGEventTapPlacement { - kCGHeadInsertEventTap(0), - kCGTailAppendEventTap(1); - - final int value; - const CGEventTapPlacement(this.value); - - static CGEventTapPlacement fromValue(int value) => switch (value) { - 0 => kCGHeadInsertEventTap, - 1 => kCGTailAppendEventTap, - _ => throw ArgumentError('Unknown value for CGEventTapPlacement: $value'), - }; -} - -typedef CGEventTapProxy = ffi.Pointer<__CGEventTapProxy>; -typedef CGEventTimestamp = ffi.Uint64; -typedef DartCGEventTimestamp = int; - -enum CGEventType { - kCGEventNull(0), - kCGEventLeftMouseDown(1), - kCGEventLeftMouseUp(2), - kCGEventRightMouseDown(3), - kCGEventRightMouseUp(4), - kCGEventMouseMoved(5), - kCGEventLeftMouseDragged(6), - kCGEventRightMouseDragged(7), - kCGEventKeyDown(10), - kCGEventKeyUp(11), - kCGEventFlagsChanged(12), - kCGEventScrollWheel(22), - kCGEventTabletPointer(23), - kCGEventTabletProximity(24), - kCGEventOtherMouseDown(25), - kCGEventOtherMouseUp(26), - kCGEventOtherMouseDragged(27), - kCGEventTapDisabledByTimeout(-2), - kCGEventTapDisabledByUserInput(-1); - - final int value; - const CGEventType(this.value); - - static CGEventType fromValue(int value) => switch (value) { - 0 => kCGEventNull, - 1 => kCGEventLeftMouseDown, - 2 => kCGEventLeftMouseUp, - 3 => kCGEventRightMouseDown, - 4 => kCGEventRightMouseUp, - 5 => kCGEventMouseMoved, - 6 => kCGEventLeftMouseDragged, - 7 => kCGEventRightMouseDragged, - 10 => kCGEventKeyDown, - 11 => kCGEventKeyUp, - 12 => kCGEventFlagsChanged, - 22 => kCGEventScrollWheel, - 23 => kCGEventTabletPointer, - 24 => kCGEventTabletProximity, - 25 => kCGEventOtherMouseDown, - 26 => kCGEventOtherMouseUp, - 27 => kCGEventOtherMouseDragged, - -2 => kCGEventTapDisabledByTimeout, - -1 => kCGEventTapDisabledByUserInput, - _ => throw ArgumentError('Unknown value for CGEventType: $value'), - }; -} - -typedef CGFloat = ffi.Double; -typedef DartCGFloat = double; - -final class CGFont extends ffi.Opaque {} - -typedef CGFontIndex = ffi.UnsignedShort; -typedef DartCGFontIndex = int; - -enum CGFontPostScriptFormat { - kCGFontPostScriptFormatType1(1), - kCGFontPostScriptFormatType3(3), - kCGFontPostScriptFormatType42(42); - - final int value; - const CGFontPostScriptFormat(this.value); - - static CGFontPostScriptFormat fromValue(int value) => switch (value) { - 1 => kCGFontPostScriptFormatType1, - 3 => kCGFontPostScriptFormatType3, - 42 => kCGFontPostScriptFormatType42, - _ => throw ArgumentError( - 'Unknown value for CGFontPostScriptFormat: $value', - ), - }; -} - -typedef CGFontRef = ffi.Pointer; - -final class CGFunction extends ffi.Opaque {} - -final class CGFunctionCallbacks extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external CGFunctionEvaluateCallback evaluate; - - external CGFunctionReleaseInfoCallback releaseInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CGFunctionEvaluateCallback evaluate, - required CGFunctionReleaseInfoCallback releaseInfo, - }) => $allocator() - ..ref.version = version - ..ref.evaluate = evaluate - ..ref.releaseInfo = releaseInfo; -} - -typedef CGFunctionEvaluateCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer in$, - ffi.Pointer out, - ) - > - >; -typedef CGFunctionRef = ffi.Pointer; -typedef CGFunctionReleaseInfoCallback = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef CGGammaValue = ffi.Float; -typedef DartCGGammaValue = double; - -enum CGGesturePhase { - kCGGesturePhaseNone(0), - kCGGesturePhaseBegan(1), - kCGGesturePhaseChanged(2), - kCGGesturePhaseEnded(4), - kCGGesturePhaseCancelled(8), - kCGGesturePhaseMayBegin(128); - - final int value; - const CGGesturePhase(this.value); - - static CGGesturePhase fromValue(int value) => switch (value) { - 0 => kCGGesturePhaseNone, - 1 => kCGGesturePhaseBegan, - 2 => kCGGesturePhaseChanged, - 4 => kCGGesturePhaseEnded, - 8 => kCGGesturePhaseCancelled, - 128 => kCGGesturePhaseMayBegin, - _ => throw ArgumentError('Unknown value for CGGesturePhase: $value'), - }; -} - -typedef CGGlyph = CGFontIndex; - -enum CGGlyphDeprecatedEnum { - CGGlyphMin(0), - CGGlyphMax(1); - - final int value; - const CGGlyphDeprecatedEnum(this.value); - - static CGGlyphDeprecatedEnum fromValue(int value) => switch (value) { - 0 => CGGlyphMin, - 1 => CGGlyphMax, - _ => throw ArgumentError('Unknown value for CGGlyphDeprecatedEnum: $value'), - }; -} - -final class CGGradient extends ffi.Opaque {} - -sealed class CGGradientDrawingOptions { - static const kCGGradientDrawsBeforeStartLocation = 1; - static const kCGGradientDrawsAfterEndLocation = 2; -} - -typedef CGGradientRef = ffi.Pointer; - -final class CGImage extends ffi.Opaque {} - -enum CGImageAlphaInfo { - kCGImageAlphaNone(0), - kCGImageAlphaPremultipliedLast(1), - kCGImageAlphaPremultipliedFirst(2), - kCGImageAlphaLast(3), - kCGImageAlphaFirst(4), - kCGImageAlphaNoneSkipLast(5), - kCGImageAlphaNoneSkipFirst(6), - kCGImageAlphaOnly(7); - - final int value; - const CGImageAlphaInfo(this.value); - - static CGImageAlphaInfo fromValue(int value) => switch (value) { - 0 => kCGImageAlphaNone, - 1 => kCGImageAlphaPremultipliedLast, - 2 => kCGImageAlphaPremultipliedFirst, - 3 => kCGImageAlphaLast, - 4 => kCGImageAlphaFirst, - 5 => kCGImageAlphaNoneSkipLast, - 6 => kCGImageAlphaNoneSkipFirst, - 7 => kCGImageAlphaOnly, - _ => throw ArgumentError('Unknown value for CGImageAlphaInfo: $value'), - }; -} - -enum CGImageAnimationStatus { - kCGImageAnimationStatus_ParameterError(-22140), - kCGImageAnimationStatus_CorruptInputImage(-22141), - kCGImageAnimationStatus_UnsupportedFormat(-22142), - kCGImageAnimationStatus_IncompleteInputImage(-22143), - kCGImageAnimationStatus_AllocationFailure(-22144); - - final int value; - const CGImageAnimationStatus(this.value); - - static CGImageAnimationStatus fromValue(int value) => switch (value) { - -22140 => kCGImageAnimationStatus_ParameterError, - -22141 => kCGImageAnimationStatus_CorruptInputImage, - -22142 => kCGImageAnimationStatus_UnsupportedFormat, - -22143 => kCGImageAnimationStatus_IncompleteInputImage, - -22144 => kCGImageAnimationStatus_AllocationFailure, - _ => throw ArgumentError( - 'Unknown value for CGImageAnimationStatus: $value', - ), - }; -} - -enum CGImageByteOrderInfo { - kCGImageByteOrderMask(28672), - kCGImageByteOrderDefault(0), - kCGImageByteOrder16Little(4096), - kCGImageByteOrder32Little(8192), - kCGImageByteOrder16Big(12288), - kCGImageByteOrder32Big(16384); - - static const kCGImageByteOrder16Host = kCGImageByteOrder16Little; - static const kCGImageByteOrder32Host = kCGImageByteOrder32Little; - - final int value; - const CGImageByteOrderInfo(this.value); - - static CGImageByteOrderInfo fromValue(int value) => switch (value) { - 28672 => kCGImageByteOrderMask, - 0 => kCGImageByteOrderDefault, - 4096 => kCGImageByteOrder16Little, - 8192 => kCGImageByteOrder32Little, - 12288 => kCGImageByteOrder16Big, - 16384 => kCGImageByteOrder32Big, - _ => throw ArgumentError('Unknown value for CGImageByteOrderInfo: $value'), - }; - - @override - String toString() { - if (this == kCGImageByteOrder16Little) - return "CGImageByteOrderInfo.kCGImageByteOrder16Little, CGImageByteOrderInfo.kCGImageByteOrder16Host"; - if (this == kCGImageByteOrder32Little) - return "CGImageByteOrderInfo.kCGImageByteOrder32Little, CGImageByteOrderInfo.kCGImageByteOrder32Host"; - return super.toString(); - } -} - -enum CGImageComponentInfo { - kCGImageComponentInteger(0), - kCGImageComponentFloat(256); - - final int value; - const CGImageComponentInfo(this.value); - - static CGImageComponentInfo fromValue(int value) => switch (value) { - 0 => kCGImageComponentInteger, - 256 => kCGImageComponentFloat, - _ => throw ArgumentError('Unknown value for CGImageComponentInfo: $value'), - }; -} - -final class CGImageDestination extends ffi.Opaque {} - -typedef CGImageDestinationRef = ffi.Pointer; - -final class CGImageMetadata extends ffi.Opaque {} - -enum CGImageMetadataErrors { - kCGImageMetadataErrorUnknown(0), - kCGImageMetadataErrorUnsupportedFormat(1), - kCGImageMetadataErrorBadArgument(2), - kCGImageMetadataErrorConflictingArguments(3), - kCGImageMetadataErrorPrefixConflict(4); - - final int value; - const CGImageMetadataErrors(this.value); - - static CGImageMetadataErrors fromValue(int value) => switch (value) { - 0 => kCGImageMetadataErrorUnknown, - 1 => kCGImageMetadataErrorUnsupportedFormat, - 2 => kCGImageMetadataErrorBadArgument, - 3 => kCGImageMetadataErrorConflictingArguments, - 4 => kCGImageMetadataErrorPrefixConflict, - _ => throw ArgumentError('Unknown value for CGImageMetadataErrors: $value'), - }; -} - -typedef CGImageMetadataRef = ffi.Pointer; - -final class CGImageMetadataTag extends ffi.Opaque {} - -typedef CGImageMetadataTagBlock = ffi.Pointer; -typedef DartCGImageMetadataTagBlock = - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >; -typedef CGImageMetadataTagRef = ffi.Pointer; - -enum CGImageMetadataType { - kCGImageMetadataTypeInvalid(-1), - kCGImageMetadataTypeDefault(0), - kCGImageMetadataTypeString(1), - kCGImageMetadataTypeArrayUnordered(2), - kCGImageMetadataTypeArrayOrdered(3), - kCGImageMetadataTypeAlternateArray(4), - kCGImageMetadataTypeAlternateText(5), - kCGImageMetadataTypeStructure(6); - - final int value; - const CGImageMetadataType(this.value); - - static CGImageMetadataType fromValue(int value) => switch (value) { - -1 => kCGImageMetadataTypeInvalid, - 0 => kCGImageMetadataTypeDefault, - 1 => kCGImageMetadataTypeString, - 2 => kCGImageMetadataTypeArrayUnordered, - 3 => kCGImageMetadataTypeArrayOrdered, - 4 => kCGImageMetadataTypeAlternateArray, - 5 => kCGImageMetadataTypeAlternateText, - 6 => kCGImageMetadataTypeStructure, - _ => throw ArgumentError('Unknown value for CGImageMetadataType: $value'), - }; -} - -enum CGImagePixelFormatInfo { - kCGImagePixelFormatMask(983040), - kCGImagePixelFormatPacked(0), - kCGImagePixelFormatRGB555(65536), - kCGImagePixelFormatRGB565(131072), - kCGImagePixelFormatRGB101010(196608), - kCGImagePixelFormatRGBCIF10(262144); - - final int value; - const CGImagePixelFormatInfo(this.value); - - static CGImagePixelFormatInfo fromValue(int value) => switch (value) { - 983040 => kCGImagePixelFormatMask, - 0 => kCGImagePixelFormatPacked, - 65536 => kCGImagePixelFormatRGB555, - 131072 => kCGImagePixelFormatRGB565, - 196608 => kCGImagePixelFormatRGB101010, - 262144 => kCGImagePixelFormatRGBCIF10, - _ => throw ArgumentError( - 'Unknown value for CGImagePixelFormatInfo: $value', - ), - }; -} - -enum CGImagePropertyOrientation { - kCGImagePropertyOrientationUp(1), - kCGImagePropertyOrientationUpMirrored(2), - kCGImagePropertyOrientationDown(3), - kCGImagePropertyOrientationDownMirrored(4), - kCGImagePropertyOrientationLeftMirrored(5), - kCGImagePropertyOrientationRight(6), - kCGImagePropertyOrientationRightMirrored(7), - kCGImagePropertyOrientationLeft(8); - - final int value; - const CGImagePropertyOrientation(this.value); - - static CGImagePropertyOrientation fromValue(int value) => switch (value) { - 1 => kCGImagePropertyOrientationUp, - 2 => kCGImagePropertyOrientationUpMirrored, - 3 => kCGImagePropertyOrientationDown, - 4 => kCGImagePropertyOrientationDownMirrored, - 5 => kCGImagePropertyOrientationLeftMirrored, - 6 => kCGImagePropertyOrientationRight, - 7 => kCGImagePropertyOrientationRightMirrored, - 8 => kCGImagePropertyOrientationLeft, - _ => throw ArgumentError( - 'Unknown value for CGImagePropertyOrientation: $value', - ), - }; -} - -enum CGImagePropertyTGACompression { - kCGImageTGACompressionNone(0), - kCGImageTGACompressionRLE(1); - - final int value; - const CGImagePropertyTGACompression(this.value); - - static CGImagePropertyTGACompression fromValue(int value) => switch (value) { - 0 => kCGImageTGACompressionNone, - 1 => kCGImageTGACompressionRLE, - _ => throw ArgumentError( - 'Unknown value for CGImagePropertyTGACompression: $value', - ), - }; -} - -typedef CGImageRef = ffi.Pointer; - -final class CGImageSource extends ffi.Opaque {} - -typedef CGImageSourceAnimationBlock = ffi.Pointer; -typedef DartCGImageSourceAnimationBlock = - objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >; -typedef CGImageSourceRef = ffi.Pointer; - -enum CGImageSourceStatus { - kCGImageStatusUnexpectedEOF(-5), - kCGImageStatusInvalidData(-4), - kCGImageStatusUnknownType(-3), - kCGImageStatusReadingHeader(-2), - kCGImageStatusIncomplete(-1), - kCGImageStatusComplete(0); - - final int value; - const CGImageSourceStatus(this.value); - - static CGImageSourceStatus fromValue(int value) => switch (value) { - -5 => kCGImageStatusUnexpectedEOF, - -4 => kCGImageStatusInvalidData, - -3 => kCGImageStatusUnknownType, - -2 => kCGImageStatusReadingHeader, - -1 => kCGImageStatusIncomplete, - 0 => kCGImageStatusComplete, - _ => throw ArgumentError('Unknown value for CGImageSourceStatus: $value'), - }; -} - -enum CGInterpolationQuality { - kCGInterpolationDefault(0), - kCGInterpolationNone(1), - kCGInterpolationLow(2), - kCGInterpolationMedium(4), - kCGInterpolationHigh(3); - - final int value; - const CGInterpolationQuality(this.value); - - static CGInterpolationQuality fromValue(int value) => switch (value) { - 0 => kCGInterpolationDefault, - 1 => kCGInterpolationNone, - 2 => kCGInterpolationLow, - 4 => kCGInterpolationMedium, - 3 => kCGInterpolationHigh, - _ => throw ArgumentError( - 'Unknown value for CGInterpolationQuality: $value', - ), - }; -} - -typedef CGKeyCode = ffi.Uint16; -typedef DartCGKeyCode = int; - -enum CGLCPContextPriorityRequest { - kCGLCPContextPriorityRequestHigh(0), - kCGLCPContextPriorityRequestNormal(1), - kCGLCPContextPriorityRequestLow(2); - - final int value; - const CGLCPContextPriorityRequest(this.value); - - static CGLCPContextPriorityRequest fromValue(int value) => switch (value) { - 0 => kCGLCPContextPriorityRequestHigh, - 1 => kCGLCPContextPriorityRequestNormal, - 2 => kCGLCPContextPriorityRequestLow, - _ => throw ArgumentError( - 'Unknown value for CGLCPContextPriorityRequest: $value', - ), - }; -} - -typedef CGLContextObj = ffi.Pointer<_CGLContextObject>; -typedef CGLPBufferObj = ffi.Pointer<_CGLPBufferObject>; -typedef CGLPixelFormatObj = ffi.Pointer<_CGLPixelFormatObject>; -typedef CGLRendererInfoObj = ffi.Pointer<_CGLRendererInfoObject>; -typedef CGLShareGroupObj = ffi.Pointer; - -final class CGLShareGroupRec extends ffi.Opaque {} - -final class CGLayer extends ffi.Opaque {} - -typedef CGLayerRef = ffi.Pointer; - -enum CGLineCap { - kCGLineCapButt(0), - kCGLineCapRound(1), - kCGLineCapSquare(2); - - final int value; - const CGLineCap(this.value); - - static CGLineCap fromValue(int value) => switch (value) { - 0 => kCGLineCapButt, - 1 => kCGLineCapRound, - 2 => kCGLineCapSquare, - _ => throw ArgumentError('Unknown value for CGLineCap: $value'), - }; -} - -enum CGLineJoin { - kCGLineJoinMiter(0), - kCGLineJoinRound(1), - kCGLineJoinBevel(2); - - final int value; - const CGLineJoin(this.value); - - static CGLineJoin fromValue(int value) => switch (value) { - 0 => kCGLineJoinMiter, - 1 => kCGLineJoinRound, - 2 => kCGLineJoinBevel, - _ => throw ArgumentError('Unknown value for CGLineJoin: $value'), - }; -} - -enum CGMomentumScrollPhase { - kCGMomentumScrollPhaseNone(0), - kCGMomentumScrollPhaseBegin(1), - kCGMomentumScrollPhaseContinue(2), - kCGMomentumScrollPhaseEnd(3); - - final int value; - const CGMomentumScrollPhase(this.value); - - static CGMomentumScrollPhase fromValue(int value) => switch (value) { - 0 => kCGMomentumScrollPhaseNone, - 1 => kCGMomentumScrollPhaseBegin, - 2 => kCGMomentumScrollPhaseContinue, - 3 => kCGMomentumScrollPhaseEnd, - _ => throw ArgumentError('Unknown value for CGMomentumScrollPhase: $value'), - }; -} - -enum CGMouseButton { - kCGMouseButtonLeft(0), - kCGMouseButtonRight(1), - kCGMouseButtonCenter(2); - - final int value; - const CGMouseButton(this.value); - - static CGMouseButton fromValue(int value) => switch (value) { - 0 => kCGMouseButtonLeft, - 1 => kCGMouseButtonRight, - 2 => kCGMouseButtonCenter, - _ => throw ArgumentError('Unknown value for CGMouseButton: $value'), - }; -} - -typedef CGMutableImageMetadataRef = ffi.Pointer; -typedef CGMutablePathRef = ffi.Pointer; -typedef CGOpenGLDisplayMask = ffi.Uint32; -typedef DartCGOpenGLDisplayMask = int; - -sealed class CGPDFAccessPermissions { - static const kCGPDFAllowsLowQualityPrinting = 1; - static const kCGPDFAllowsHighQualityPrinting = 2; - static const kCGPDFAllowsDocumentChanges = 4; - static const kCGPDFAllowsDocumentAssembly = 8; - static const kCGPDFAllowsContentCopying = 16; - static const kCGPDFAllowsContentAccessibility = 32; - static const kCGPDFAllowsCommenting = 64; - static const kCGPDFAllowsFormFieldEntry = 128; -} - -final class CGPDFArray extends ffi.Opaque {} - -typedef CGPDFArrayApplierBlock = ffi.Pointer; -typedef DartCGPDFArrayApplierBlock = - objc.ObjCBlock< - ffi.Bool Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - >; -typedef CGPDFArrayRef = ffi.Pointer; -typedef CGPDFBoolean = ffi.UnsignedChar; -typedef DartCGPDFBoolean = int; - -enum CGPDFBox { - kCGPDFMediaBox(0), - kCGPDFCropBox(1), - kCGPDFBleedBox(2), - kCGPDFTrimBox(3), - kCGPDFArtBox(4); - - final int value; - const CGPDFBox(this.value); - - static CGPDFBox fromValue(int value) => switch (value) { - 0 => kCGPDFMediaBox, - 1 => kCGPDFCropBox, - 2 => kCGPDFBleedBox, - 3 => kCGPDFTrimBox, - 4 => kCGPDFArtBox, - _ => throw ArgumentError('Unknown value for CGPDFBox: $value'), - }; -} - -final class CGPDFContentStream extends ffi.Opaque {} - -typedef CGPDFContentStreamRef = ffi.Pointer; - -enum CGPDFDataFormat { - CGPDFDataFormatRaw(0), - CGPDFDataFormatJPEGEncoded(1), - CGPDFDataFormatJPEG2000(2); - - final int value; - const CGPDFDataFormat(this.value); - - static CGPDFDataFormat fromValue(int value) => switch (value) { - 0 => CGPDFDataFormatRaw, - 1 => CGPDFDataFormatJPEGEncoded, - 2 => CGPDFDataFormatJPEG2000, - _ => throw ArgumentError('Unknown value for CGPDFDataFormat: $value'), - }; -} - -final class CGPDFDictionary extends ffi.Opaque {} - -typedef CGPDFDictionaryApplierBlock = ffi.Pointer; -typedef DartCGPDFDictionaryApplierBlock = - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >; -typedef CGPDFDictionaryApplierFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer key, - CGPDFObjectRef value, - ffi.Pointer info, - ) - > - >; -typedef CGPDFDictionaryRef = ffi.Pointer; - -final class CGPDFDocument extends ffi.Opaque {} - -typedef CGPDFDocumentRef = ffi.Pointer; -typedef CGPDFInteger = ffi.Long; -typedef DartCGPDFInteger = int; - -final class CGPDFObject extends ffi.Opaque {} - -typedef CGPDFObjectRef = ffi.Pointer; - -enum CGPDFObjectType { - kCGPDFObjectTypeNull(1), - kCGPDFObjectTypeBoolean(2), - kCGPDFObjectTypeInteger(3), - kCGPDFObjectTypeReal(4), - kCGPDFObjectTypeName(5), - kCGPDFObjectTypeString(6), - kCGPDFObjectTypeArray(7), - kCGPDFObjectTypeDictionary(8), - kCGPDFObjectTypeStream(9); - - final int value; - const CGPDFObjectType(this.value); - - static CGPDFObjectType fromValue(int value) => switch (value) { - 1 => kCGPDFObjectTypeNull, - 2 => kCGPDFObjectTypeBoolean, - 3 => kCGPDFObjectTypeInteger, - 4 => kCGPDFObjectTypeReal, - 5 => kCGPDFObjectTypeName, - 6 => kCGPDFObjectTypeString, - 7 => kCGPDFObjectTypeArray, - 8 => kCGPDFObjectTypeDictionary, - 9 => kCGPDFObjectTypeStream, - _ => throw ArgumentError('Unknown value for CGPDFObjectType: $value'), - }; -} - -typedef CGPDFOperatorCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CGPDFScannerRef scanner, ffi.Pointer info) - > - >; - -final class CGPDFOperatorTable extends ffi.Opaque {} - -typedef CGPDFOperatorTableRef = ffi.Pointer; - -final class CGPDFPage extends ffi.Opaque {} - -typedef CGPDFPageRef = ffi.Pointer; -typedef CGPDFReal = CGFloat; - -final class CGPDFScanner extends ffi.Opaque {} - -typedef CGPDFScannerRef = ffi.Pointer; - -final class CGPDFStream extends ffi.Opaque {} - -typedef CGPDFStreamRef = ffi.Pointer; - -final class CGPDFString extends ffi.Opaque {} - -typedef CGPDFStringRef = ffi.Pointer; -typedef CGPDFTagProperty = CFStringRef; - -enum CGPDFTagType { - CGPDFTagTypeDocument(100), - CGPDFTagTypePart(101), - CGPDFTagTypeArt(102), - CGPDFTagTypeSection(103), - CGPDFTagTypeDiv(104), - CGPDFTagTypeBlockQuote(105), - CGPDFTagTypeCaption(106), - CGPDFTagTypeTOC(107), - CGPDFTagTypeTOCI(108), - CGPDFTagTypeIndex(109), - CGPDFTagTypeNonStructure(110), - CGPDFTagTypePrivate(111), - CGPDFTagTypeParagraph(200), - CGPDFTagTypeHeader(201), - CGPDFTagTypeHeader1(202), - CGPDFTagTypeHeader2(203), - CGPDFTagTypeHeader3(204), - CGPDFTagTypeHeader4(205), - CGPDFTagTypeHeader5(206), - CGPDFTagTypeHeader6(207), - CGPDFTagTypeList(300), - CGPDFTagTypeListItem(301), - CGPDFTagTypeLabel(302), - CGPDFTagTypeListBody(303), - CGPDFTagTypeTable(400), - CGPDFTagTypeTableRow(401), - CGPDFTagTypeTableHeaderCell(402), - CGPDFTagTypeTableDataCell(403), - CGPDFTagTypeTableHeader(404), - CGPDFTagTypeTableBody(405), - CGPDFTagTypeTableFooter(406), - CGPDFTagTypeSpan(500), - CGPDFTagTypeQuote(501), - CGPDFTagTypeNote(502), - CGPDFTagTypeReference(503), - CGPDFTagTypeBibliography(504), - CGPDFTagTypeCode(505), - CGPDFTagTypeLink(506), - CGPDFTagTypeAnnotation(507), - CGPDFTagTypeRuby(600), - CGPDFTagTypeRubyBaseText(601), - CGPDFTagTypeRubyAnnotationText(602), - CGPDFTagTypeRubyPunctuation(603), - CGPDFTagTypeWarichu(604), - CGPDFTagTypeWarichuText(605), - CGPDFTagTypeWarichuPunctiation(606), - CGPDFTagTypeFigure(700), - CGPDFTagTypeFormula(701), - CGPDFTagTypeForm(702), - CGPDFTagTypeObject(800); - - final int value; - const CGPDFTagType(this.value); - - static CGPDFTagType fromValue(int value) => switch (value) { - 100 => CGPDFTagTypeDocument, - 101 => CGPDFTagTypePart, - 102 => CGPDFTagTypeArt, - 103 => CGPDFTagTypeSection, - 104 => CGPDFTagTypeDiv, - 105 => CGPDFTagTypeBlockQuote, - 106 => CGPDFTagTypeCaption, - 107 => CGPDFTagTypeTOC, - 108 => CGPDFTagTypeTOCI, - 109 => CGPDFTagTypeIndex, - 110 => CGPDFTagTypeNonStructure, - 111 => CGPDFTagTypePrivate, - 200 => CGPDFTagTypeParagraph, - 201 => CGPDFTagTypeHeader, - 202 => CGPDFTagTypeHeader1, - 203 => CGPDFTagTypeHeader2, - 204 => CGPDFTagTypeHeader3, - 205 => CGPDFTagTypeHeader4, - 206 => CGPDFTagTypeHeader5, - 207 => CGPDFTagTypeHeader6, - 300 => CGPDFTagTypeList, - 301 => CGPDFTagTypeListItem, - 302 => CGPDFTagTypeLabel, - 303 => CGPDFTagTypeListBody, - 400 => CGPDFTagTypeTable, - 401 => CGPDFTagTypeTableRow, - 402 => CGPDFTagTypeTableHeaderCell, - 403 => CGPDFTagTypeTableDataCell, - 404 => CGPDFTagTypeTableHeader, - 405 => CGPDFTagTypeTableBody, - 406 => CGPDFTagTypeTableFooter, - 500 => CGPDFTagTypeSpan, - 501 => CGPDFTagTypeQuote, - 502 => CGPDFTagTypeNote, - 503 => CGPDFTagTypeReference, - 504 => CGPDFTagTypeBibliography, - 505 => CGPDFTagTypeCode, - 506 => CGPDFTagTypeLink, - 507 => CGPDFTagTypeAnnotation, - 600 => CGPDFTagTypeRuby, - 601 => CGPDFTagTypeRubyBaseText, - 602 => CGPDFTagTypeRubyAnnotationText, - 603 => CGPDFTagTypeRubyPunctuation, - 604 => CGPDFTagTypeWarichu, - 605 => CGPDFTagTypeWarichuText, - 606 => CGPDFTagTypeWarichuPunctiation, - 700 => CGPDFTagTypeFigure, - 701 => CGPDFTagTypeFormula, - 702 => CGPDFTagTypeForm, - 800 => CGPDFTagTypeObject, - _ => throw ArgumentError('Unknown value for CGPDFTagType: $value'), - }; -} - -final class CGPSConverter extends ffi.Opaque {} - -typedef CGPSConverterBeginDocumentCallback = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef CGPSConverterBeginPageCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - ffi.Size pageNumber, - CFDictionaryRef pageInfo, - ) - > - >; - -final class CGPSConverterCallbacks extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external CGPSConverterBeginDocumentCallback beginDocument; - - external CGPSConverterEndDocumentCallback endDocument; - - external CGPSConverterBeginPageCallback beginPage; - - external CGPSConverterEndPageCallback endPage; - - external CGPSConverterProgressCallback noteProgress; - - external CGPSConverterMessageCallback noteMessage; - - external CGPSConverterReleaseInfoCallback releaseInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CGPSConverterBeginDocumentCallback beginDocument, - required CGPSConverterEndDocumentCallback endDocument, - required CGPSConverterBeginPageCallback beginPage, - required CGPSConverterEndPageCallback endPage, - required CGPSConverterProgressCallback noteProgress, - required CGPSConverterMessageCallback noteMessage, - required CGPSConverterReleaseInfoCallback releaseInfo, - }) => $allocator() - ..ref.version = version - ..ref.beginDocument = beginDocument - ..ref.endDocument = endDocument - ..ref.beginPage = beginPage - ..ref.endPage = endPage - ..ref.noteProgress = noteProgress - ..ref.noteMessage = noteMessage - ..ref.releaseInfo = releaseInfo; -} - -typedef CGPSConverterEndDocumentCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer info, ffi.Bool success) - > - >; -typedef CGPSConverterEndPageCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - ffi.Size pageNumber, - CFDictionaryRef pageInfo, - ) - > - >; -typedef CGPSConverterMessageCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer info, CFStringRef message) - > - >; -typedef CGPSConverterProgressCallback = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef CGPSConverterRef = ffi.Pointer; -typedef CGPSConverterReleaseInfoCallback = - ffi.Pointer< - ffi.NativeFunction info)> - >; - -final class CGPath extends ffi.Opaque {} - -typedef CGPathApplierFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer element, - ) - > - >; -typedef CGPathApplyBlock = ffi.Pointer; -typedef DartCGPathApplyBlock = - objc.ObjCBlock)>; - -enum CGPathDrawingMode { - kCGPathFill(0), - kCGPathEOFill(1), - kCGPathStroke(2), - kCGPathFillStroke(3), - kCGPathEOFillStroke(4); - - final int value; - const CGPathDrawingMode(this.value); - - static CGPathDrawingMode fromValue(int value) => switch (value) { - 0 => kCGPathFill, - 1 => kCGPathEOFill, - 2 => kCGPathStroke, - 3 => kCGPathFillStroke, - 4 => kCGPathEOFillStroke, - _ => throw ArgumentError('Unknown value for CGPathDrawingMode: $value'), - }; -} - -final class CGPathElement extends ffi.Struct { - @ffi.Int32() - external int typeAsInt; - - CGPathElementType get type => CGPathElementType.fromValue(typeAsInt); - set type(CGPathElementType value) => typeAsInt = value.value; - - external ffi.Pointer points; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CGPathElementType type, - required ffi.Pointer points, - }) => $allocator() - ..ref.type = type - ..ref.points = points; -} - -enum CGPathElementType { - kCGPathElementMoveToPoint(0), - kCGPathElementAddLineToPoint(1), - kCGPathElementAddQuadCurveToPoint(2), - kCGPathElementAddCurveToPoint(3), - kCGPathElementCloseSubpath(4); - - final int value; - const CGPathElementType(this.value); - - static CGPathElementType fromValue(int value) => switch (value) { - 0 => kCGPathElementMoveToPoint, - 1 => kCGPathElementAddLineToPoint, - 2 => kCGPathElementAddQuadCurveToPoint, - 3 => kCGPathElementAddCurveToPoint, - 4 => kCGPathElementCloseSubpath, - _ => throw ArgumentError('Unknown value for CGPathElementType: $value'), - }; -} - -typedef CGPathRef = ffi.Pointer; - -final class CGPattern extends ffi.Opaque {} - -final class CGPatternCallbacks extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external CGPatternDrawPatternCallback drawPattern; - - external CGPatternReleaseInfoCallback releaseInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CGPatternDrawPatternCallback drawPattern, - required CGPatternReleaseInfoCallback releaseInfo, - }) => $allocator() - ..ref.version = version - ..ref.drawPattern = drawPattern - ..ref.releaseInfo = releaseInfo; -} - -typedef CGPatternDrawPatternCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer info, CGContextRef context) - > - >; -typedef CGPatternRef = ffi.Pointer; -typedef CGPatternReleaseInfoCallback = - ffi.Pointer< - ffi.NativeFunction info)> - >; - -enum CGPatternTiling { - kCGPatternTilingNoDistortion(0), - kCGPatternTilingConstantSpacingMinimalDistortion(1), - kCGPatternTilingConstantSpacing(2); - - final int value; - const CGPatternTiling(this.value); - - static CGPatternTiling fromValue(int value) => switch (value) { - 0 => kCGPatternTilingNoDistortion, - 1 => kCGPatternTilingConstantSpacingMinimalDistortion, - 2 => kCGPatternTilingConstantSpacing, - _ => throw ArgumentError('Unknown value for CGPatternTiling: $value'), - }; -} - -typedef CGRectCount = ffi.Uint32; -typedef DartCGRectCount = int; - -enum CGRectEdge { - CGRectMinXEdge(0), - CGRectMinYEdge(1), - CGRectMaxXEdge(2), - CGRectMaxYEdge(3); - - final int value; - const CGRectEdge(this.value); - - static CGRectEdge fromValue(int value) => switch (value) { - 0 => CGRectMinXEdge, - 1 => CGRectMinYEdge, - 2 => CGRectMaxXEdge, - 3 => CGRectMaxYEdge, - _ => throw ArgumentError('Unknown value for CGRectEdge: $value'), - }; -} - -typedef CGRefreshRate = ffi.Double; -typedef DartCGRefreshRate = double; - -final class CGRenderingBufferProvider extends ffi.Opaque {} - -typedef CGRenderingBufferProviderRef = ffi.Pointer; -typedef CGScreenRefreshCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Uint32 count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ) - > - >; -typedef CGScreenUpdateMoveCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CGScreenUpdateMoveDelta delta, - ffi.Size count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ) - > - >; - -final class CGScreenUpdateMoveDelta extends ffi.Struct { - @ffi.Int32() - external int dX; - - @ffi.Int32() - external int dY; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int dX, - required int dY, - }) => $allocator() - ..ref.dX = dX - ..ref.dY = dY; -} - -sealed class CGScreenUpdateOperation { - static const kCGScreenUpdateOperationRefresh = 0; - static const kCGScreenUpdateOperationMove = 1; - static const kCGScreenUpdateOperationReducedDirtyRectangleCount = -2147483648; -} - -enum CGScrollEventUnit { - kCGScrollEventUnitPixel(0), - kCGScrollEventUnitLine(1); - - final int value; - const CGScrollEventUnit(this.value); - - static CGScrollEventUnit fromValue(int value) => switch (value) { - 0 => kCGScrollEventUnitPixel, - 1 => kCGScrollEventUnitLine, - _ => throw ArgumentError('Unknown value for CGScrollEventUnit: $value'), - }; -} - -enum CGScrollPhase { - kCGScrollPhaseBegan(1), - kCGScrollPhaseChanged(2), - kCGScrollPhaseEnded(4), - kCGScrollPhaseCancelled(8), - kCGScrollPhaseMayBegin(128); - - final int value; - const CGScrollPhase(this.value); - - static CGScrollPhase fromValue(int value) => switch (value) { - 1 => kCGScrollPhaseBegan, - 2 => kCGScrollPhaseChanged, - 4 => kCGScrollPhaseEnded, - 8 => kCGScrollPhaseCancelled, - 128 => kCGScrollPhaseMayBegin, - _ => throw ArgumentError('Unknown value for CGScrollPhase: $value'), - }; -} - -final class CGShading extends ffi.Opaque {} - -typedef CGShadingRef = ffi.Pointer; - -enum CGTextDrawingMode { - kCGTextFill(0), - kCGTextStroke(1), - kCGTextFillStroke(2), - kCGTextInvisible(3), - kCGTextFillClip(4), - kCGTextStrokeClip(5), - kCGTextFillStrokeClip(6), - kCGTextClip(7); - - final int value; - const CGTextDrawingMode(this.value); - - static CGTextDrawingMode fromValue(int value) => switch (value) { - 0 => kCGTextFill, - 1 => kCGTextStroke, - 2 => kCGTextFillStroke, - 3 => kCGTextInvisible, - 4 => kCGTextFillClip, - 5 => kCGTextStrokeClip, - 6 => kCGTextFillStrokeClip, - 7 => kCGTextClip, - _ => throw ArgumentError('Unknown value for CGTextDrawingMode: $value'), - }; -} - -@Deprecated('No longer supported') -enum CGTextEncoding { - kCGEncodingFontSpecific(0), - kCGEncodingMacRoman(1); - - final int value; - const CGTextEncoding(this.value); - - static CGTextEncoding fromValue(int value) => switch (value) { - 0 => kCGEncodingFontSpecific, - 1 => kCGEncodingMacRoman, - _ => throw ArgumentError('Unknown value for CGTextEncoding: $value'), - }; -} - -enum CGToneMapping { - kCGToneMappingDefault(0), - kCGToneMappingImageSpecificLumaScaling(1), - kCGToneMappingReferenceWhiteBased(2), - kCGToneMappingITURecommended(3), - kCGToneMappingEXRGamma(4), - kCGToneMappingNone(5); - - final int value; - const CGToneMapping(this.value); - - static CGToneMapping fromValue(int value) => switch (value) { - 0 => kCGToneMappingDefault, - 1 => kCGToneMappingImageSpecificLumaScaling, - 2 => kCGToneMappingReferenceWhiteBased, - 3 => kCGToneMappingITURecommended, - 4 => kCGToneMappingEXRGamma, - 5 => kCGToneMappingNone, - _ => throw ArgumentError('Unknown value for CGToneMapping: $value'), - }; -} - -final class CGVector extends ffi.Struct { - @CGFloat() - external double dx; - - @CGFloat() - external double dy; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double dx, - required double dy, - }) => $allocator() - ..ref.dx = dx - ..ref.dy = dy; -} - -typedef CGWheelCount = ffi.Uint32; -typedef DartCGWheelCount = int; - -enum CGWindowBackingType { - kCGBackingStoreRetained(0), - kCGBackingStoreNonretained(1), - kCGBackingStoreBuffered(2); - - final int value; - const CGWindowBackingType(this.value); - - static CGWindowBackingType fromValue(int value) => switch (value) { - 0 => kCGBackingStoreRetained, - 1 => kCGBackingStoreNonretained, - 2 => kCGBackingStoreBuffered, - _ => throw ArgumentError('Unknown value for CGWindowBackingType: $value'), - }; -} - -typedef CGWindowID = ffi.Uint32; -typedef DartCGWindowID = int; - -sealed class CGWindowImageOption { - static const kCGWindowImageDefault = 0; - static const kCGWindowImageBoundsIgnoreFraming = 1; - static const kCGWindowImageShouldBeOpaque = 2; - static const kCGWindowImageOnlyShadows = 4; - static const kCGWindowImageBestResolution = 8; - static const kCGWindowImageNominalResolution = 16; -} - -typedef CGWindowLevel = ffi.Int32; -typedef DartCGWindowLevel = int; - -enum CGWindowLevelKey { - kCGBaseWindowLevelKey(0), - kCGMinimumWindowLevelKey(1), - kCGDesktopWindowLevelKey(2), - kCGBackstopMenuLevelKey(3), - kCGNormalWindowLevelKey(4), - kCGFloatingWindowLevelKey(5), - kCGTornOffMenuWindowLevelKey(6), - kCGDockWindowLevelKey(7), - kCGMainMenuWindowLevelKey(8), - kCGStatusWindowLevelKey(9), - kCGModalPanelWindowLevelKey(10), - kCGPopUpMenuWindowLevelKey(11), - kCGDraggingWindowLevelKey(12), - kCGScreenSaverWindowLevelKey(13), - kCGMaximumWindowLevelKey(14), - kCGOverlayWindowLevelKey(15), - kCGHelpWindowLevelKey(16), - kCGUtilityWindowLevelKey(17), - kCGDesktopIconWindowLevelKey(18), - kCGCursorWindowLevelKey(19), - kCGAssistiveTechHighWindowLevelKey(20), - kCGNumberOfWindowLevelKeys(21); - - final int value; - const CGWindowLevelKey(this.value); - - static CGWindowLevelKey fromValue(int value) => switch (value) { - 0 => kCGBaseWindowLevelKey, - 1 => kCGMinimumWindowLevelKey, - 2 => kCGDesktopWindowLevelKey, - 3 => kCGBackstopMenuLevelKey, - 4 => kCGNormalWindowLevelKey, - 5 => kCGFloatingWindowLevelKey, - 6 => kCGTornOffMenuWindowLevelKey, - 7 => kCGDockWindowLevelKey, - 8 => kCGMainMenuWindowLevelKey, - 9 => kCGStatusWindowLevelKey, - 10 => kCGModalPanelWindowLevelKey, - 11 => kCGPopUpMenuWindowLevelKey, - 12 => kCGDraggingWindowLevelKey, - 13 => kCGScreenSaverWindowLevelKey, - 14 => kCGMaximumWindowLevelKey, - 15 => kCGOverlayWindowLevelKey, - 16 => kCGHelpWindowLevelKey, - 17 => kCGUtilityWindowLevelKey, - 18 => kCGDesktopIconWindowLevelKey, - 19 => kCGCursorWindowLevelKey, - 20 => kCGAssistiveTechHighWindowLevelKey, - 21 => kCGNumberOfWindowLevelKeys, - _ => throw ArgumentError('Unknown value for CGWindowLevelKey: $value'), - }; -} - -sealed class CGWindowListOption { - static const kCGWindowListOptionAll = 0; - static const kCGWindowListOptionOnScreenOnly = 1; - static const kCGWindowListOptionOnScreenAboveWindow = 2; - static const kCGWindowListOptionOnScreenBelowWindow = 4; - static const kCGWindowListOptionIncludingWindow = 8; - static const kCGWindowListExcludeDesktopElements = 16; -} - -enum CGWindowSharingType { - kCGWindowSharingNone(0), - kCGWindowSharingReadOnly(1), - kCGWindowSharingReadWrite(2); - - final int value; - const CGWindowSharingType(this.value); - - static CGWindowSharingType fromValue(int value) => switch (value) { - 0 => kCGWindowSharingNone, - 1 => kCGWindowSharingReadOnly, - 2 => kCGWindowSharingReadWrite, - _ => throw ArgumentError('Unknown value for CGWindowSharingType: $value'), - }; -} - -typedef CGrafPort = GrafPort; -typedef CGrafPtr = GrafPtr; - -@ffi.Packed(2) -final class CM2Header extends ffi.Struct { - @UInt32() - external int size; - - @OSType() - external int CMMType; - - @UInt32() - external int profileVersion; - - @OSType() - external int profileClass; - - @OSType() - external int dataColorSpace; - - @OSType() - external int profileConnectionSpace; - - external CMDateTime dateTime; - - @OSType() - external int CS2profileSignature; - - @OSType() - external int platform; - - @UInt32() - external int flags; - - @OSType() - external int deviceManufacturer; - - @UInt32() - external int deviceModel; - - @ffi.Array.multi([2]) - external ffi.Array deviceAttributes; - - @UInt32() - external int renderingIntent; - - external CMFixedXYZColor white; - - @OSType() - external int creator; - - @ffi.Array.multi([44]) - external ffi.Array reserved; -} - -final class CM2Profile extends ffi.Struct { - external CM2Header header; - - external CMTagElemTable tagTable; - - @ffi.Array.multi([1]) - external ffi.Array elemData; -} - -typedef CM2ProfileHandle = ffi.Pointer>; -typedef CM2ProfilePtr = ffi.Pointer; - -@ffi.Packed(2) -final class CM4Header extends ffi.Struct { - @UInt32() - external int size; - - @OSType() - external int CMMType; - - @UInt32() - external int profileVersion; - - @OSType() - external int profileClass; - - @OSType() - external int dataColorSpace; - - @OSType() - external int profileConnectionSpace; - - external CMDateTime dateTime; - - @OSType() - external int CS2profileSignature; - - @OSType() - external int platform; - - @UInt32() - external int flags; - - @OSType() - external int deviceManufacturer; - - @UInt32() - external int deviceModel; - - @ffi.Array.multi([2]) - external ffi.Array deviceAttributes; - - @UInt32() - external int renderingIntent; - - external CMFixedXYZColor white; - - @OSType() - external int creator; - - @ffi.Array.multi([16]) - external ffi.Array digest; - - @ffi.Array.multi([28]) - external ffi.Array reserved; -} - -@ffi.Packed(2) -final class CMAdaptationMatrixType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([9]) - external ffi.Array adaptationMatrix; -} - -final class CMAppleProfileHeader extends ffi.Union { - external CM2Header cm2; - - external CM4Header cm4; -} - -typedef CMAudioCodecType = FourCharCode; -typedef CMAudioFormatDescriptionMask = ffi.Uint32; -typedef DartCMAudioFormatDescriptionMask = int; -typedef CMAudioFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMBaseClassVersion = ffi.UintPtr; -typedef DartCMBaseClassVersion = int; - -final class CMBitmap extends ffi.Struct { - external ffi.Pointer image; - - @ffi.Size() - external int width; - - @ffi.Size() - external int height; - - @ffi.Size() - external int rowBytes; - - @ffi.Size() - external int pixelSize; - - @CMBitmapColorSpace() - external int space; - - @UInt32() - external int user1; - - @UInt32() - external int user2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer image, - required int width, - required int height, - required int rowBytes, - required int pixelSize, - required int space, - required int user1, - required int user2, - }) => $allocator() - ..ref.image = image - ..ref.width = width - ..ref.height = height - ..ref.rowBytes = rowBytes - ..ref.pixelSize = pixelSize - ..ref.space = space - ..ref.user1 = user1 - ..ref.user2 = user2; -} - -typedef CMBitmapCallBackProcPtr = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function(SInt32 progress, ffi.Pointer refCon) - > - >; -typedef CMBitmapCallBackUPP = CMBitmapCallBackProcPtr; -typedef CMBitmapColorSpace = UInt32; - -final class CMBufferLocation extends ffi.Struct { - external ffi.Pointer buffer; - - @UInt32() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer buffer, - required int size, - }) => $allocator() - ..ref.buffer = buffer - ..ref.size = size; -} - -final class CMCMYColor extends ffi.Struct { - @UInt16() - external int cyan; - - @UInt16() - external int magenta; - - @UInt16() - external int yellow; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cyan, - required int magenta, - required int yellow, - }) => $allocator() - ..ref.cyan = cyan - ..ref.magenta = magenta - ..ref.yellow = yellow; -} - -final class CMCMYKColor extends ffi.Struct { - @UInt16() - external int cyan; - - @UInt16() - external int magenta; - - @UInt16() - external int yellow; - - @UInt16() - external int black; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cyan, - required int magenta, - required int yellow, - required int black, - }) => $allocator() - ..ref.cyan = cyan - ..ref.magenta = magenta - ..ref.yellow = yellow - ..ref.black = black; -} - -typedef CMChromaticAdaptation = UInt32; -typedef CMClosedCaptionFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMClosedCaptionFormatType = FourCharCode; - -final class CMColor extends ffi.Union { - external CMRGBColor rgb; - - external CMHSVColor hsv; - - external CMHLSColor hls; - - external CMXYZColor XYZ; - - external CMLabColor Lab; - - external CMLuvColor Luv; - - external CMYxyColor Yxy; - - external CMCMYKColor cmyk; - - external CMCMYColor cmy; - - external CMGrayColor gray; - - external CMMultichannel5Color mc5; - - external CMMultichannel6Color mc6; - - external CMMultichannel7Color mc7; - - external CMMultichannel8Color mc8; - - external CMNamedColor namedColor; -} - -typedef CMConcatCallBackProcPtr = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function(SInt32 progress, ffi.Pointer refCon) - > - >; -typedef CMConcatCallBackUPP = CMConcatCallBackProcPtr; - -final class CMConcatProfileSet extends ffi.Struct { - @UInt16() - external int keyIndex; - - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array profileSet; -} - -@ffi.Packed(2) -final class CMCurveType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int countValue; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -@ffi.Packed(2) -final class CMDataType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int dataFlag; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -final class CMDateTime extends ffi.Struct { - @UInt16() - external int year; - - @UInt16() - external int month; - - @UInt16() - external int dayOfTheMonth; - - @UInt16() - external int hours; - - @UInt16() - external int minutes; - - @UInt16() - external int seconds; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int year, - required int month, - required int dayOfTheMonth, - required int hours, - required int minutes, - required int seconds, - }) => $allocator() - ..ref.year = year - ..ref.month = month - ..ref.dayOfTheMonth = dayOfTheMonth - ..ref.hours = hours - ..ref.minutes = minutes - ..ref.seconds = seconds; -} - -@ffi.Packed(2) -final class CMDateTimeType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - external CMDateTime dateTime; -} - -typedef CMDeviceClass = OSType; -typedef CMDeviceID = UInt32; - -final class CMDeviceInfo extends ffi.Struct { - @UInt32() - external int dataVersion; - - @CMDeviceClass() - external int deviceClass; - - @CMDeviceID() - external int deviceID; - - external CMDeviceScope deviceScope; - - @CMDeviceState() - external int deviceState; - - @CMDeviceProfileID() - external int defaultProfileID; - - external ffi.Pointer deviceName; - - @UInt32() - external int profileCount; - - @UInt32() - external int reserved; -} - -typedef CMDeviceInfoPtr = ffi.Pointer; - -final class CMDeviceProfileArray extends ffi.Struct { - @UInt32() - external int profileCount; - - @ffi.Array.multi([1]) - external ffi.Array profiles; -} - -typedef CMDeviceProfileArrayPtr = ffi.Pointer; -typedef CMDeviceProfileID = UInt32; - -final class CMDeviceProfileInfo extends ffi.Struct { - @UInt32() - external int dataVersion; - - @CMDeviceProfileID() - external int profileID; - - external CMProfileLocation profileLoc; - - external CFDictionaryRef profileName; - - @UInt32() - external int reserved; -} - -typedef CMDeviceProfileScope = CMDeviceScope; - -final class CMDeviceScope extends ffi.Struct { - external CFStringRef deviceUser; - - external CFStringRef deviceHost; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFStringRef deviceUser, - required CFStringRef deviceHost, - }) => $allocator() - ..ref.deviceUser = deviceUser - ..ref.deviceHost = deviceHost; -} - -typedef CMDeviceState = UInt32; -typedef CMDisplayIDType = UInt32; - -@ffi.Packed(2) -final class CMFixedXYColor extends ffi.Struct { - @Fixed() - external int x; - - @Fixed() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -@ffi.Packed(2) -final class CMFixedXYZColor extends ffi.Struct { - @Fixed() - external int X; - - @Fixed() - external int Y; - - @Fixed() - external int Z; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int X, - required int Y, - required int Z, - }) => $allocator() - ..ref.X = X - ..ref.Y = Y - ..ref.Z = Z; -} - -typedef CMFlattenProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - SInt32 command, - ffi.Pointer size, - ffi.Pointer data, - ffi.Pointer refCon, - ) - > - >; -typedef CMFlattenUPP = CMFlattenProcPtr; - -final class CMFloatBitmap extends ffi.Struct { - @ffi.UnsignedLong() - external int version; - - @ffi.Array.multi([16]) - external ffi.Array> buffers; - - @ffi.Size() - external int height; - - @ffi.Size() - external int width; - - @ptrdiff_t() - external int rowStride; - - @ptrdiff_t() - external int colStride; - - @OSType() - external int space; - - @ffi.UnsignedInt() - external int flagsAsInt; - - CMFloatBitmapFlags get flags => CMFloatBitmapFlags.fromValue(flagsAsInt); - set flags(CMFloatBitmapFlags value) => flagsAsInt = value.value; -} - -enum CMFloatBitmapFlags { - kCMFloatBitmapFlagsNone(0), - kCMFloatBitmapFlagsAlpha(1), - kCMFloatBitmapFlagsAlphaPremul(2), - kCMFloatBitmapFlagsRangeClipped(4); - - final int value; - const CMFloatBitmapFlags(this.value); - - static CMFloatBitmapFlags fromValue(int value) => switch (value) { - 0 => kCMFloatBitmapFlagsNone, - 1 => kCMFloatBitmapFlagsAlpha, - 2 => kCMFloatBitmapFlagsAlphaPremul, - 4 => kCMFloatBitmapFlagsRangeClipped, - _ => throw ArgumentError('Unknown value for CMFloatBitmapFlags: $value'), - }; -} - -typedef CMFormatDescriptionRef = ffi.Pointer; - -final class CMGrayColor extends ffi.Struct { - @UInt16() - external int gray; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int gray, - }) => $allocator()..ref.gray = gray; -} - -final class CMHLSColor extends ffi.Struct { - @UInt16() - external int hue; - - @UInt16() - external int lightness; - - @UInt16() - external int saturation; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int hue, - required int lightness, - required int saturation, - }) => $allocator() - ..ref.hue = hue - ..ref.lightness = lightness - ..ref.saturation = saturation; -} - -final class CMHSVColor extends ffi.Struct { - @UInt16() - external int hue; - - @UInt16() - external int saturation; - - @UInt16() - external int value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int hue, - required int saturation, - required int value, - }) => $allocator() - ..ref.hue = hue - ..ref.saturation = saturation - ..ref.value = value; -} - -final class CMHandleLocation extends ffi.Struct { - external Handle h; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required Handle h, - }) => $allocator()..ref.h = h; -} - -@ffi.Packed(2) -final class CMIntentCRDVMSize extends ffi.Struct { - @UInt32() - external int renderingIntent; - - @UInt32() - external int VMSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int renderingIntent, - required int VMSize, - }) => $allocator() - ..ref.renderingIntent = renderingIntent - ..ref.VMSize = VMSize; -} - -typedef CMItemCount = CFIndex; -typedef CMItemIndex = CFIndex; -typedef CMIterateDeviceInfoProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - ffi.Pointer deviceInfo, - ffi.Pointer refCon, - ) - > - >; -typedef CMIterateDeviceProfileProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - ffi.Pointer deviceInfo, - ffi.Pointer profileInfo, - ffi.Pointer refCon, - ) - > - >; - -final class CMLabColor extends ffi.Struct { - @UInt16() - external int L; - - @UInt16() - external int a; - - @UInt16() - external int b; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int L, - required int a, - required int b, - }) => $allocator() - ..ref.L = L - ..ref.a = a - ..ref.b = b; -} - -typedef CMLabToLabProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer L, - ffi.Pointer a, - ffi.Pointer b, - ffi.Pointer refcon, - ) - > - >; - -@ffi.Packed(2) -final class CMLut16Type extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt8() - external int inputChannels; - - @UInt8() - external int outputChannels; - - @UInt8() - external int gridPoints; - - @UInt8() - external int reserved2; - - @ffi.Array.multi([3, 3]) - external ffi.Array> matrix; - - @UInt16() - external int inputTableEntries; - - @UInt16() - external int outputTableEntries; - - @ffi.Array.multi([1]) - external ffi.Array inputTable; -} - -@ffi.Packed(2) -final class CMLut8Type extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt8() - external int inputChannels; - - @UInt8() - external int outputChannels; - - @UInt8() - external int gridPoints; - - @UInt8() - external int reserved2; - - @ffi.Array.multi([3, 3]) - external ffi.Array> matrix; - - @ffi.Array.multi([1]) - external ffi.Array inputTable; -} - -final class CMLuvColor extends ffi.Struct { - @UInt16() - external int L; - - @UInt16() - external int u; - - @UInt16() - external int v; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int L, - required int u, - required int v, - }) => $allocator() - ..ref.L = L - ..ref.u = u - ..ref.v = v; -} - -typedef CMMApplyTransformProc = - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ColorSyncTransformRef transform, - ffi.Size width, - ffi.Size height, - ffi.Size dstPlanes, - ffi.Pointer> dst, - ffi.UnsignedInt dstDepth, - ColorSyncDataLayout dstFormat, - ffi.Size dstBytesPerRow, - ffi.Size srcPlanes, - ffi.Pointer> src, - ffi.UnsignedInt srcDepth, - ColorSyncDataLayout srcFormat, - ffi.Size srcBytesPerRow, - CFDictionaryRef options, - ) - > - >; -typedef CMMCreateTransformPropertyProc = - ffi.Pointer< - ffi.NativeFunction< - CFTypeRef Function( - ColorSyncTransformRef transform, - CFTypeRef key, - CFDictionaryRef options, - ) - > - >; - -final class CMMInfo extends ffi.Struct { - @ffi.Size() - external int dataSize; - - @OSType() - external int CMMType; - - @OSType() - external int CMMMfr; - - @UInt32() - external int CMMVersion; - - @ffi.Array.multi([32]) - external ffi.Array ASCIIName; - - @ffi.Array.multi([256]) - external ffi.Array ASCIIDesc; - - @UniCharCount() - external int UniCodeNameCount; - - @ffi.Array.multi([32]) - external ffi.Array UniCodeName; - - @UniCharCount() - external int UniCodeDescCount; - - @ffi.Array.multi([256]) - external ffi.Array UniCodeDesc; -} - -typedef CMMInitializeLinkProfileProc = - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ColorSyncMutableProfileRef, - CFArrayRef, - CFDictionaryRef, - ) - > - >; -typedef CMMInitializeTransformProc = - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ColorSyncTransformRef, CFArrayRef, CFDictionaryRef) - > - >; -typedef CMMIterateProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ) - > - >; -typedef CMMIterateUPP = CMMIterateProcPtr; - -@ffi.Packed(2) -final class CMMakeAndModel extends ffi.Struct { - @OSType() - external int manufacturer; - - @UInt32() - external int model; - - @UInt32() - external int serialNumber; - - @UInt32() - external int manufactureDate; - - @UInt32() - external int reserved1; - - @UInt32() - external int reserved2; - - @UInt32() - external int reserved3; - - @UInt32() - external int reserved4; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int manufacturer, - required int model, - required int serialNumber, - required int manufactureDate, - required int reserved1, - required int reserved2, - required int reserved3, - required int reserved4, - }) => $allocator() - ..ref.manufacturer = manufacturer - ..ref.model = model - ..ref.serialNumber = serialNumber - ..ref.manufactureDate = manufactureDate - ..ref.reserved1 = reserved1 - ..ref.reserved2 = reserved2 - ..ref.reserved3 = reserved3 - ..ref.reserved4 = reserved4; -} - -@ffi.Packed(2) -final class CMMakeAndModelType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - external CMMakeAndModel makeAndModel; -} - -@ffi.Packed(2) -final class CMMeasurementType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int standardObserver; - - external CMFixedXYZColor backingXYZ; - - @UInt32() - external int geometry; - - @UInt32() - external int flare; - - @UInt32() - external int illuminant; -} - -typedef CMMediaType = FourCharCode; -typedef CMMetadataFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMMetadataFormatType = FourCharCode; - -final class CMMultiFunctCLUTType extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array gridPoints; - - @UInt8() - external int entrySize; - - @ffi.Array.multi([3]) - external ffi.Array reserved; - - @ffi.Array.multi([2]) - external ffi.Array data; -} - -typedef CMMultiFunctLutA2BType = CMMultiFunctLutType; -typedef CMMultiFunctLutB2AType = CMMultiFunctLutType; - -@ffi.Packed(2) -final class CMMultiFunctLutType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt8() - external int inputChannels; - - @UInt8() - external int outputChannels; - - @UInt16() - external int reserved2; - - @UInt32() - external int offsetBcurves; - - @UInt32() - external int offsetMatrix; - - @UInt32() - external int offsetMcurves; - - @UInt32() - external int offsetCLUT; - - @UInt32() - external int offsetAcurves; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -@ffi.Packed(2) -final class CMMultiLocalizedUniCodeEntryRec extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array languageCode; - - @ffi.Array.multi([2]) - external ffi.Array regionCode; - - @UInt32() - external int textLength; - - @UInt32() - external int textOffset; -} - -@ffi.Packed(2) -final class CMMultiLocalizedUniCodeType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int entryCount; - - @UInt32() - external int entrySize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int typeDescriptor, - required int reserved, - required int entryCount, - required int entrySize, - }) => $allocator() - ..ref.typeDescriptor = typeDescriptor - ..ref.reserved = reserved - ..ref.entryCount = entryCount - ..ref.entrySize = entrySize; -} - -final class CMMultichannel5Color extends ffi.Struct { - @ffi.Array.multi([5]) - external ffi.Array components; -} - -final class CMMultichannel6Color extends ffi.Struct { - @ffi.Array.multi([6]) - external ffi.Array components; -} - -final class CMMultichannel7Color extends ffi.Struct { - @ffi.Array.multi([7]) - external ffi.Array components; -} - -final class CMMultichannel8Color extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array components; -} - -typedef CMMuxedFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMMuxedStreamType = FourCharCode; - -final class CMNamedColor extends ffi.Struct { - @UInt32() - external int namedColorIndex; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int namedColorIndex, - }) => $allocator()..ref.namedColorIndex = namedColorIndex; -} - -final class CMNamedColor2EntryType extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array rootName; - - @ffi.Array.multi([3]) - external ffi.Array PCSColorCoords; - - @ffi.Array.multi([1]) - external ffi.Array DeviceColorCoords; -} - -@ffi.Packed(2) -final class CMNamedColor2Type extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int vendorFlag; - - @UInt32() - external int count; - - @UInt32() - external int deviceChannelCount; - - @ffi.Array.multi([32]) - external ffi.Array prefixName; - - @ffi.Array.multi([32]) - external ffi.Array suffixName; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -@ffi.Packed(2) -final class CMNamedColorType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int vendorFlag; - - @UInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array prefixName; -} - -@ffi.Packed(2) -final class CMNativeDisplayInfo extends ffi.Struct { - @UInt32() - external int dataSize; - - external CMFixedXYColor redPhosphor; - - external CMFixedXYColor greenPhosphor; - - external CMFixedXYColor bluePhosphor; - - external CMFixedXYColor whitePoint; - - @Fixed() - external int redGammaValue; - - @Fixed() - external int greenGammaValue; - - @Fixed() - external int blueGammaValue; - - @UInt16() - external int gammaChannels; - - @UInt16() - external int gammaEntryCount; - - @UInt16() - external int gammaEntrySize; - - @ffi.Array.multi([1]) - external ffi.Array gammaData; -} - -@ffi.Packed(2) -final class CMNativeDisplayInfoType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - external CMNativeDisplayInfo nativeDisplayInfo; -} - -@ffi.Packed(2) -final class CMPS2CRDVMSizeType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array intentCRD; -} - -@ffi.Packed(2) -final class CMParametricCurveType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt16() - external int functionType; - - @UInt16() - external int reserved2; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -final class CMPathLocation extends ffi.Struct { - @ffi.Array.multi([1024]) - external ffi.Array path; -} - -typedef CMPersistentTrackID = ffi.Int32; -typedef DartCMPersistentTrackID = int; -typedef CMPixelFormatType = FourCharCode; - -final class CMProfLoc extends ffi.Union { - external CMHandleLocation handleLoc; - - external CMPathLocation pathLoc; - - external CMBufferLocation bufferLoc; -} - -final class CMProfileIterateData extends ffi.Struct { - @UInt32() - external int dataVersion; - - external CM2Header header; - - @ScriptCode() - external int code; - - @ffi.Array.multi([256]) - external ffi.Array name; - - external CMProfileLocation location; - - @UniCharCount() - external int uniCodeNameCount; - - external ffi.Pointer uniCodeName; - - external ffi.Pointer asciiName; - - external ffi.Pointer makeAndModel; - - external ffi.Pointer> digest; -} - -typedef CMProfileIterateProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ) - > - >; -typedef CMProfileIterateUPP = CMProfileIterateProcPtr; - -final class CMProfileLocation extends ffi.Struct { - @ffi.Short() - external int locType; - - external CMProfLoc u; -} - -typedef CMProfileMD5Ptr = ffi.Pointer>; -typedef CMProfileRef = ffi.Pointer; - -@ffi.Packed(2) -final class CMProfileSequenceDescType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -final class CMRGBColor extends ffi.Struct { - @UInt16() - external int red; - - @UInt16() - external int green; - - @UInt16() - external int blue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int red, - required int green, - required int blue, - }) => $allocator() - ..ref.red = red - ..ref.green = green - ..ref.blue = blue; -} - -@ffi.Packed(2) -final class CMS15Fixed16ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -enum CMSCertificateChainMode { - kCMSCertificateNone(0), - kCMSCertificateSignerOnly(1), - kCMSCertificateChain(2), - kCMSCertificateChainWithRoot(3), - kCMSCertificateChainWithRootOrFail(4); - - final int value; - const CMSCertificateChainMode(this.value); - - static CMSCertificateChainMode fromValue(int value) => switch (value) { - 0 => kCMSCertificateNone, - 1 => kCMSCertificateSignerOnly, - 2 => kCMSCertificateChain, - 3 => kCMSCertificateChainWithRoot, - 4 => kCMSCertificateChainWithRootOrFail, - _ => throw ArgumentError( - 'Unknown value for CMSCertificateChainMode: $value', - ), - }; -} - -typedef CMSDecoderRef = ffi.Pointer<_CMSDecoder>; -typedef CMSEncoderRef = ffi.Pointer<_CMSEncoder>; - -sealed class CMSSignedAttributes { - static const kCMSAttrNone = 0; - static const kCMSAttrSmimeCapabilities = 1; - static const kCMSAttrSmimeEncryptionKeyPrefs = 2; - static const kCMSAttrSmimeMSEncryptionKeyPrefs = 4; - static const kCMSAttrSigningTime = 8; - static const kCMSAttrAppleCodesigningHashAgility = 16; - static const kCMSAttrAppleCodesigningHashAgilityV2 = 32; - static const kCMSAttrAppleExpirationTime = 64; -} - -enum CMSSignerStatus { - kCMSSignerUnsigned(0), - kCMSSignerValid(1), - kCMSSignerNeedsDetachedContent(2), - kCMSSignerInvalidSignature(3), - kCMSSignerInvalidCert(4), - kCMSSignerInvalidIndex(5); - - final int value; - const CMSSignerStatus(this.value); - - static CMSSignerStatus fromValue(int value) => switch (value) { - 0 => kCMSSignerUnsigned, - 1 => kCMSSignerValid, - 2 => kCMSSignerNeedsDetachedContent, - 3 => kCMSSignerInvalidSignature, - 4 => kCMSSignerInvalidCert, - 5 => kCMSSignerInvalidIndex, - _ => throw ArgumentError('Unknown value for CMSSignerStatus: $value'), - }; -} - -@ffi.Packed(2) -final class CMScreeningChannelRec extends ffi.Struct { - @Fixed() - external int frequency; - - @Fixed() - external int angle; - - @UInt32() - external int spotFunction; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int frequency, - required int angle, - required int spotFunction, - }) => $allocator() - ..ref.frequency = frequency - ..ref.angle = angle - ..ref.spotFunction = spotFunction; -} - -@ffi.Packed(2) -final class CMScreeningType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int screeningFlag; - - @UInt32() - external int channelCount; - - @ffi.Array.multi([1]) - external ffi.Array channelInfo; -} - -@ffi.Packed(2) -final class CMSignatureType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @OSType() - external int signature; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int typeDescriptor, - required int reserved, - required int signature, - }) => $allocator() - ..ref.typeDescriptor = typeDescriptor - ..ref.reserved = reserved - ..ref.signature = signature; -} - -typedef CMStructVersion = ffi.UintPtr; -typedef DartCMStructVersion = int; -typedef CMSubtitleFormatType = FourCharCode; - -@ffi.Packed(2) -final class CMTagElemTable extends ffi.Struct { - @UInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array tagList; -} - -@ffi.Packed(2) -final class CMTagRecord extends ffi.Struct { - @OSType() - external int tag; - - @UInt32() - external int elementOffset; - - @UInt32() - external int elementSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tag, - required int elementOffset, - required int elementSize, - }) => $allocator() - ..ref.tag = tag - ..ref.elementOffset = elementOffset - ..ref.elementSize = elementSize; -} - -typedef CMTaggedBufferGroupFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMTaggedBufferGroupFormatType = FourCharCode; - -@ffi.Packed(2) -final class CMTextDescriptionType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int ASCIICount; - - @ffi.Array.multi([2]) - external ffi.Array ASCIIName; -} - -typedef CMTextDisplayFlags = ffi.Uint32; -typedef DartCMTextDisplayFlags = int; -typedef CMTextFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMTextFormatType = FourCharCode; -typedef CMTextJustificationValue = ffi.Int8; -typedef DartCMTextJustificationValue = int; - -@ffi.Packed(2) -final class CMTextType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array text; -} - -@ffi.Packed(4) -final class CMTime extends ffi.Struct { - @CMTimeValue() - external int value; - - @CMTimeScale() - external int timescale; - - @ffi.Uint32() - external int flags; - - @CMTimeEpoch() - external int epoch; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int value, - required int timescale, - required int flags, - required int epoch, - }) => $allocator() - ..ref.value = value - ..ref.timescale = timescale - ..ref.flags = flags - ..ref.epoch = epoch; -} - -typedef CMTimeCodeFormatDescriptionRef = CMFormatDescriptionRef; -typedef CMTimeCodeFormatType = FourCharCode; -typedef CMTimeEpoch = ffi.Int64; -typedef DartCMTimeEpoch = int; - -sealed class CMTimeFlags { - static const kCMTimeFlags_Valid = 1; - static const kCMTimeFlags_HasBeenRounded = 2; - static const kCMTimeFlags_PositiveInfinity = 4; - static const kCMTimeFlags_NegativeInfinity = 8; - static const kCMTimeFlags_Indefinite = 16; - static const kCMTimeFlags_ImpliedValueFlagsMask = 28; -} - -enum CMTimeRoundingMethod { - kCMTimeRoundingMethod_RoundHalfAwayFromZero(1), - kCMTimeRoundingMethod_RoundTowardZero(2), - kCMTimeRoundingMethod_RoundAwayFromZero(3), - kCMTimeRoundingMethod_QuickTime(4), - kCMTimeRoundingMethod_RoundTowardPositiveInfinity(5), - kCMTimeRoundingMethod_RoundTowardNegativeInfinity(6); - - static const kCMTimeRoundingMethod_Default = - kCMTimeRoundingMethod_RoundHalfAwayFromZero; - - final int value; - const CMTimeRoundingMethod(this.value); - - static CMTimeRoundingMethod fromValue(int value) => switch (value) { - 1 => kCMTimeRoundingMethod_RoundHalfAwayFromZero, - 2 => kCMTimeRoundingMethod_RoundTowardZero, - 3 => kCMTimeRoundingMethod_RoundAwayFromZero, - 4 => kCMTimeRoundingMethod_QuickTime, - 5 => kCMTimeRoundingMethod_RoundTowardPositiveInfinity, - 6 => kCMTimeRoundingMethod_RoundTowardNegativeInfinity, - _ => throw ArgumentError('Unknown value for CMTimeRoundingMethod: $value'), - }; - - @override - String toString() { - if (this == kCMTimeRoundingMethod_RoundHalfAwayFromZero) - return "CMTimeRoundingMethod.kCMTimeRoundingMethod_RoundHalfAwayFromZero, CMTimeRoundingMethod.kCMTimeRoundingMethod_Default"; - return super.toString(); - } -} - -typedef CMTimeScale = ffi.Int32; -typedef DartCMTimeScale = int; -typedef CMTimeValue = ffi.Int64; -typedef DartCMTimeValue = int; - -@ffi.Packed(2) -final class CMU16Fixed16ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -@ffi.Packed(2) -final class CMUInt16ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -@ffi.Packed(2) -final class CMUInt32ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -@ffi.Packed(2) -final class CMUInt64ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -@ffi.Packed(2) -final class CMUInt8ArrayType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -@ffi.Packed(2) -final class CMUcrBgType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @UInt32() - external int ucrCount; - - @ffi.Array.multi([1]) - external ffi.Array ucrValues; -} - -@ffi.Packed(2) -final class CMUnicodeTextType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array text; -} - -@ffi.Packed(2) -final class CMVideoCardGamma extends ffi.Struct { - @UInt32() - external int tagType; - - external UnnamedUnion$7 u; -} - -@ffi.Packed(2) -final class CMVideoCardGammaFormula extends ffi.Struct { - @Fixed() - external int redGamma; - - @Fixed() - external int redMin; - - @Fixed() - external int redMax; - - @Fixed() - external int greenGamma; - - @Fixed() - external int greenMin; - - @Fixed() - external int greenMax; - - @Fixed() - external int blueGamma; - - @Fixed() - external int blueMin; - - @Fixed() - external int blueMax; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int redGamma, - required int redMin, - required int redMax, - required int greenGamma, - required int greenMin, - required int greenMax, - required int blueGamma, - required int blueMin, - required int blueMax, - }) => $allocator() - ..ref.redGamma = redGamma - ..ref.redMin = redMin - ..ref.redMax = redMax - ..ref.greenGamma = greenGamma - ..ref.greenMin = greenMin - ..ref.greenMax = greenMax - ..ref.blueGamma = blueGamma - ..ref.blueMin = blueMin - ..ref.blueMax = blueMax; -} - -final class CMVideoCardGammaTable extends ffi.Struct { - @UInt16() - external int channels; - - @UInt16() - external int entryCount; - - @UInt16() - external int entrySize; - - @ffi.Array.multi([1]) - external ffi.Array data; -} - -@ffi.Packed(2) -final class CMVideoCardGammaType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - external CMVideoCardGamma gamma; -} - -typedef CMVideoCodecType = FourCharCode; - -final class CMVideoDimensions extends ffi.Struct { - @ffi.Int32() - external int width; - - @ffi.Int32() - external int height; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int width, - required int height, - }) => $allocator() - ..ref.width = width - ..ref.height = height; -} - -typedef CMVideoFormatDescriptionRef = CMFormatDescriptionRef; - -@ffi.Packed(2) -final class CMViewingConditionsType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - external CMFixedXYZColor illuminant; - - external CMFixedXYZColor surround; - - @UInt32() - external int stdIlluminant; -} - -typedef CMWorldRef = ffi.Pointer; - -final class CMXYZColor extends ffi.Struct { - @CMXYZComponent() - external int X; - - @CMXYZComponent() - external int Y; - - @CMXYZComponent() - external int Z; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int X, - required int Y, - required int Z, - }) => $allocator() - ..ref.X = X - ..ref.Y = Y - ..ref.Z = Z; -} - -typedef CMXYZComponent = UInt16; - -@ffi.Packed(2) -final class CMXYZType extends ffi.Struct { - @OSType() - external int typeDescriptor; - - @UInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array XYZ; -} - -final class CMYxyColor extends ffi.Struct { - @UInt16() - external int capY; - - @UInt16() - external int x; - - @UInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int capY, - required int x, - required int y, - }) => $allocator() - ..ref.capY = capY - ..ref.x = x - ..ref.y = y; -} - -@ffi.Packed(2) -final class CQDProcs extends ffi.Struct { - external QDTextUPP textProc; - - external QDLineUPP lineProc; - - external QDRectUPP rectProc; - - external QDRRectUPP rRectProc; - - external QDOvalUPP ovalProc; - - external QDArcUPP arcProc; - - external QDPolyUPP polyProc; - - external QDRgnUPP rgnProc; - - external QDBitsUPP bitsProc; - - external QDCommentUPP commentProc; - - external QDTxMeasUPP txMeasProc; - - external QDGetPicUPP getPicProc; - - external QDPutPicUPP putPicProc; - - external QDOpcodeUPP opcodeProc; - - external UniversalProcPtr newProc1; - - external QDStdGlyphsUPP glyphsProc; - - external QDPrinterStatusUPP printerStatusProc; - - external UniversalProcPtr newProc4; - - external UniversalProcPtr newProc5; - - external UniversalProcPtr newProc6; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QDTextUPP textProc, - required QDLineUPP lineProc, - required QDRectUPP rectProc, - required QDRRectUPP rRectProc, - required QDOvalUPP ovalProc, - required QDArcUPP arcProc, - required QDPolyUPP polyProc, - required QDRgnUPP rgnProc, - required QDBitsUPP bitsProc, - required QDCommentUPP commentProc, - required QDTxMeasUPP txMeasProc, - required QDGetPicUPP getPicProc, - required QDPutPicUPP putPicProc, - required QDOpcodeUPP opcodeProc, - required UniversalProcPtr newProc1, - required QDStdGlyphsUPP glyphsProc, - required QDPrinterStatusUPP printerStatusProc, - required UniversalProcPtr newProc4, - required UniversalProcPtr newProc5, - required UniversalProcPtr newProc6, - }) => $allocator() - ..ref.textProc = textProc - ..ref.lineProc = lineProc - ..ref.rectProc = rectProc - ..ref.rRectProc = rRectProc - ..ref.ovalProc = ovalProc - ..ref.arcProc = arcProc - ..ref.polyProc = polyProc - ..ref.rgnProc = rgnProc - ..ref.bitsProc = bitsProc - ..ref.commentProc = commentProc - ..ref.txMeasProc = txMeasProc - ..ref.getPicProc = getPicProc - ..ref.putPicProc = putPicProc - ..ref.opcodeProc = opcodeProc - ..ref.newProc1 = newProc1 - ..ref.glyphsProc = glyphsProc - ..ref.printerStatusProc = printerStatusProc - ..ref.newProc4 = newProc4 - ..ref.newProc5 = newProc5 - ..ref.newProc6 = newProc6; -} - -typedef CQDProcsPtr = ffi.Pointer; -typedef CSComponentsThreadMode = UInt32; -typedef CSDiskSpaceRecoveryCallback = ffi.Pointer; -typedef DartCSDiskSpaceRecoveryCallback = - objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >; -typedef CSDiskSpaceRecoveryOptions = ffi.Int; -typedef DartCSDiskSpaceRecoveryOptions = int; -typedef CSIdentityAuthorityRef = ffi.Pointer<__CSIdentityAuthority>; -typedef CSIdentityClass = CFIndex; - -@ffi.Packed(2) -final class CSIdentityClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - external CSIdentityStatusUpdatedCallback statusUpdated; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - required CSIdentityStatusUpdatedCallback statusUpdated, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription - ..ref.statusUpdated = statusUpdated; -} - -typedef CSIdentityFlags = CFOptionFlags; - -@ffi.Packed(2) -final class CSIdentityQueryClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retainInfo; - - external CFAllocatorReleaseCallBack releaseInfo; - - external CFAllocatorCopyDescriptionCallBack copyInfoDescription; - - external CSIdentityQueryReceiveEventCallback receiveEvent; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retainInfo, - required CFAllocatorReleaseCallBack releaseInfo, - required CFAllocatorCopyDescriptionCallBack copyInfoDescription, - required CSIdentityQueryReceiveEventCallback receiveEvent, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retainInfo = retainInfo - ..ref.releaseInfo = releaseInfo - ..ref.copyInfoDescription = copyInfoDescription - ..ref.receiveEvent = receiveEvent; -} - -typedef CSIdentityQueryEvent = CFIndex; -typedef CSIdentityQueryFlags = CFOptionFlags; -typedef CSIdentityQueryReceiveEventCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CSIdentityQueryRef query, - CSIdentityQueryEvent event, - CFArrayRef identities, - CFErrorRef error, - ffi.Pointer info, - ) - > - >; -typedef CSIdentityQueryRef = ffi.Pointer<__CSIdentityQuery>; -typedef CSIdentityQueryStringComparisonMethod = CFIndex; -typedef CSIdentityRef = ffi.Pointer<__CSIdentity>; -typedef CSIdentityStatusUpdatedCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CSIdentityRef identity, - CFIndex status, - CFErrorRef error, - ffi.Pointer info, - ) - > - >; - -const int CSSMERR_AC_DEVICE_FAILED = -2147405595; - -const int CSSMERR_AC_DEVICE_RESET = -2147405596; - -const int CSSMERR_AC_FUNCTION_FAILED = -2147405814; - -const int CSSMERR_AC_FUNCTION_NOT_IMPLEMENTED = -2147405817; - -const int CSSMERR_AC_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147405597; - -const int CSSMERR_AC_INTERNAL_ERROR = -2147405823; - -const int CSSMERR_AC_INVALID_BASE_ACLS = -2147405567; - -const int CSSMERR_AC_INVALID_CL_HANDLE = -2147405742; - -const int CSSMERR_AC_INVALID_CONTEXT_HANDLE = -2147405760; - -const int CSSMERR_AC_INVALID_DATA = -2147405754; - -const int CSSMERR_AC_INVALID_DB_HANDLE = -2147405750; - -const int CSSMERR_AC_INVALID_DB_LIST = -2147405748; - -const int CSSMERR_AC_INVALID_DB_LIST_POINTER = -2147405747; - -const int CSSMERR_AC_INVALID_DL_HANDLE = -2147405743; - -const int CSSMERR_AC_INVALID_ENCODING = -2147405565; - -const int CSSMERR_AC_INVALID_INPUT_POINTER = -2147405819; - -const int CSSMERR_AC_INVALID_OUTPUT_POINTER = -2147405818; - -const int CSSMERR_AC_INVALID_PASSTHROUGH_ID = -2147405738; - -const int CSSMERR_AC_INVALID_POINTER = -2147405820; - -const int CSSMERR_AC_INVALID_REQUESTOR = -2147405563; - -const int CSSMERR_AC_INVALID_REQUEST_DESCRIPTOR = -2147405562; - -const int CSSMERR_AC_INVALID_TP_HANDLE = -2147405741; - -const int CSSMERR_AC_INVALID_TUPLE_CREDENTIALS = -2147405566; - -const int CSSMERR_AC_INVALID_VALIDITY_PERIOD = -2147405564; - -const int CSSMERR_AC_IN_DARK_WAKE = -2147405594; - -const int CSSMERR_AC_MDS_ERROR = -2147405821; - -const int CSSMERR_AC_MEMORY_ERROR = -2147405822; - -const int CSSMERR_AC_NO_USER_INTERACTION = -2147405600; - -const int CSSMERR_AC_OS_ACCESS_DENIED = -2147405815; - -const int CSSMERR_AC_SELF_CHECK_FAILED = -2147405816; - -const int CSSMERR_AC_SERVICE_NOT_AVAILABLE = -2147405598; - -const int CSSMERR_AC_USER_CANCELED = -2147405599; - -const int CSSMERR_APPLEDL_DISK_FULL = -2147412991; - -const int CSSMERR_APPLEDL_FILE_TOO_BIG = -2147412989; - -const int CSSMERR_APPLEDL_INCOMPATIBLE_DATABASE_BLOB = -2147412986; - -const int CSSMERR_APPLEDL_INCOMPATIBLE_KEY_BLOB = -2147412985; - -const int CSSMERR_APPLEDL_INVALID_DATABASE_BLOB = -2147412988; - -const int CSSMERR_APPLEDL_INVALID_KEY_BLOB = -2147412987; - -const int CSSMERR_APPLEDL_INVALID_OPEN_PARAMETERS = -2147412992; - -const int CSSMERR_APPLEDL_QUOTA_EXCEEDED = -2147412990; - -const int CSSMERR_APPLETP_BAD_CERT_FROM_ISSUER = -2147408873; - -const int CSSMERR_APPLETP_CA_PIN_MISMATCH = -2147408836; - -const int CSSMERR_APPLETP_CERT_NOT_FOUND_FROM_ISSUER = -2147408874; - -const int CSSMERR_APPLETP_CODE_SIGN_DEVELOPMENT = -2147408845; - -const int CSSMERR_APPLETP_CRL_BAD_URI = -2147408881; - -const int CSSMERR_APPLETP_CRL_EXPIRED = -2147408885; - -const int CSSMERR_APPLETP_CRL_INVALID_ANCHOR_CERT = -2147408877; - -const int CSSMERR_APPLETP_CRL_NOT_FOUND = -2147408883; - -const int CSSMERR_APPLETP_CRL_NOT_TRUSTED = -2147408878; - -const int CSSMERR_APPLETP_CRL_NOT_VALID_YET = -2147408884; - -const int CSSMERR_APPLETP_CRL_POLICY_FAIL = -2147408876; - -const int CSSMERR_APPLETP_CRL_SERVER_DOWN = -2147408882; - -const int CSSMERR_APPLETP_CS_BAD_CERT_CHAIN_LENGTH = -2147408849; - -const int CSSMERR_APPLETP_CS_BAD_PATH_LENGTH = -2147408847; - -const int CSSMERR_APPLETP_CS_NO_BASIC_CONSTRAINTS = -2147408848; - -const int CSSMERR_APPLETP_CS_NO_EXTENDED_KEY_USAGE = -2147408846; - -const int CSSMERR_APPLETP_EXT_KEYUSAGE_NOT_CRITICAL = -2147408838; - -const int CSSMERR_APPLETP_HOSTNAME_MISMATCH = -2147408896; - -const int CSSMERR_APPLETP_IDENTIFIER_MISSING = -2147408837; - -const int CSSMERR_APPLETP_IDP_FAIL = -2147408875; - -const int CSSMERR_APPLETP_INCOMPLETE_REVOCATION_CHECK = -2147408861; - -const int CSSMERR_APPLETP_INVALID_AUTHORITY_ID = -2147408892; - -const int CSSMERR_APPLETP_INVALID_CA = -2147408893; - -const int CSSMERR_APPLETP_INVALID_EMPTY_SUBJECT = -2147408841; - -const int CSSMERR_APPLETP_INVALID_EXTENDED_KEY_USAGE = -2147408889; - -const int CSSMERR_APPLETP_INVALID_ID_LINKAGE = -2147408888; - -const int CSSMERR_APPLETP_INVALID_KEY_USAGE = -2147408890; - -const int CSSMERR_APPLETP_INVALID_ROOT = -2147408886; - -const int CSSMERR_APPLETP_INVALID_SUBJECT_ID = -2147408891; - -const int CSSMERR_APPLETP_LEAF_PIN_MISMATCH = -2147408835; - -const int CSSMERR_APPLETP_MISSING_REQUIRED_EXTENSION = -2147408839; - -const int CSSMERR_APPLETP_NETWORK_FAILURE = -2147408860; - -const int CSSMERR_APPLETP_NO_BASIC_CONSTRAINTS = -2147408894; - -const int CSSMERR_APPLETP_OCSP_BAD_REQUEST = -2147408864; - -const int CSSMERR_APPLETP_OCSP_BAD_RESPONSE = -2147408865; - -const int CSSMERR_APPLETP_OCSP_INVALID_ANCHOR_CERT = -2147408858; - -const int CSSMERR_APPLETP_OCSP_NONCE_MISMATCH = -2147408850; - -const int CSSMERR_APPLETP_OCSP_NOT_TRUSTED = -2147408859; - -const int CSSMERR_APPLETP_OCSP_NO_SIGNER = -2147408856; - -const int CSSMERR_APPLETP_OCSP_RESP_INTERNAL_ERR = -2147408854; - -const int CSSMERR_APPLETP_OCSP_RESP_MALFORMED_REQ = -2147408855; - -const int CSSMERR_APPLETP_OCSP_RESP_SIG_REQUIRED = -2147408852; - -const int CSSMERR_APPLETP_OCSP_RESP_TRY_LATER = -2147408853; - -const int CSSMERR_APPLETP_OCSP_RESP_UNAUTHORIZED = -2147408851; - -const int CSSMERR_APPLETP_OCSP_SIG_ERROR = -2147408857; - -const int CSSMERR_APPLETP_OCSP_STATUS_UNRECOGNIZED = -2147408862; - -const int CSSMERR_APPLETP_OCSP_UNAVAILABLE = -2147408863; - -const int CSSMERR_APPLETP_PATH_LEN_CONSTRAINT = -2147408887; - -const int CSSMERR_APPLETP_RS_BAD_CERT_CHAIN_LENGTH = -2147408844; - -const int CSSMERR_APPLETP_RS_BAD_EXTENDED_KEY_USAGE = -2147408843; - -const int CSSMERR_APPLETP_SMIME_BAD_EXT_KEY_USE = -2147408871; - -const int CSSMERR_APPLETP_SMIME_BAD_KEY_USE = -2147408870; - -const int CSSMERR_APPLETP_SMIME_EMAIL_ADDRS_NOT_FOUND = -2147408872; - -const int CSSMERR_APPLETP_SMIME_KEYUSAGE_NOT_CRITICAL = -2147408869; - -const int CSSMERR_APPLETP_SMIME_NO_EMAIL_ADDRS = -2147408868; - -const int CSSMERR_APPLETP_SMIME_SUBJ_ALT_NAME_NOT_CRIT = -2147408867; - -const int CSSMERR_APPLETP_SSL_BAD_EXT_KEY_USE = -2147408866; - -const int CSSMERR_APPLETP_TRUST_SETTING_DENY = -2147408842; - -const int CSSMERR_APPLETP_UNKNOWN_CERT_EXTEN = -2147408880; - -const int CSSMERR_APPLETP_UNKNOWN_CRITICAL_EXTEN = -2147408895; - -const int CSSMERR_APPLETP_UNKNOWN_CRL_EXTEN = -2147408879; - -const int CSSMERR_APPLETP_UNKNOWN_QUAL_CERT_STATEMENT = -2147408840; - -const int CSSMERR_APPLE_DOTMAC_CSR_VERIFY_FAIL = -2147408785; - -const int CSSMERR_APPLE_DOTMAC_FAILED_CONSISTENCY_CHECK = -2147408784; - -const int CSSMERR_APPLE_DOTMAC_NO_REQ_PENDING = -2147408786; - -const int CSSMERR_APPLE_DOTMAC_REQ_IS_PENDING = -2147408787; - -const int CSSMERR_APPLE_DOTMAC_REQ_QUEUED = -2147408796; - -const int CSSMERR_APPLE_DOTMAC_REQ_REDIRECT = -2147408795; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ALREADY_EXIST = -2147408789; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_AUTH = -2147408792; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_ERR = -2147408794; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_NOT_AVAIL = -2147408790; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_PARAM = -2147408793; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_SERVICE_ERROR = -2147408788; - -const int CSSMERR_APPLE_DOTMAC_REQ_SERVER_UNIMPL = -2147408791; - -const int CSSMERR_CL_CRL_ALREADY_SIGNED = -2147411897; - -const int CSSMERR_CL_DEVICE_FAILED = -2147411739; - -const int CSSMERR_CL_DEVICE_RESET = -2147411740; - -const int CSSMERR_CL_FUNCTION_FAILED = -2147411958; - -const int CSSMERR_CL_FUNCTION_NOT_IMPLEMENTED = -2147411961; - -const int CSSMERR_CL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147411741; - -const int CSSMERR_CL_INTERNAL_ERROR = -2147411967; - -const int CSSMERR_CL_INVALID_BUNDLE_INFO = -2147411708; - -const int CSSMERR_CL_INVALID_BUNDLE_POINTER = -2147411711; - -const int CSSMERR_CL_INVALID_CACHE_HANDLE = -2147411710; - -const int CSSMERR_CL_INVALID_CERTGROUP_POINTER = -2147411902; - -const int CSSMERR_CL_INVALID_CERT_POINTER = -2147411901; - -const int CSSMERR_CL_INVALID_CONTEXT_HANDLE = -2147411904; - -const int CSSMERR_CL_INVALID_CRL_INDEX = -2147411707; - -const int CSSMERR_CL_INVALID_CRL_POINTER = -2147411900; - -const int CSSMERR_CL_INVALID_DATA = -2147411898; - -const int CSSMERR_CL_INVALID_FIELD_POINTER = -2147411899; - -const int CSSMERR_CL_INVALID_INPUT_POINTER = -2147411963; - -const int CSSMERR_CL_INVALID_NUMBER_OF_FIELDS = -2147411896; - -const int CSSMERR_CL_INVALID_OUTPUT_POINTER = -2147411962; - -const int CSSMERR_CL_INVALID_PASSTHROUGH_ID = -2147411882; - -const int CSSMERR_CL_INVALID_POINTER = -2147411964; - -const int CSSMERR_CL_INVALID_RESULTS_HANDLE = -2147411709; - -const int CSSMERR_CL_INVALID_SCOPE = -2147411706; - -const int CSSMERR_CL_IN_DARK_WAKE = -2147411738; - -const int CSSMERR_CL_MDS_ERROR = -2147411965; - -const int CSSMERR_CL_MEMORY_ERROR = -2147411966; - -const int CSSMERR_CL_NO_FIELD_VALUES = -2147411705; - -const int CSSMERR_CL_NO_USER_INTERACTION = -2147411744; - -const int CSSMERR_CL_OS_ACCESS_DENIED = -2147411959; - -const int CSSMERR_CL_SCOPE_NOT_SUPPORTED = -2147411704; - -const int CSSMERR_CL_SELF_CHECK_FAILED = -2147411960; - -const int CSSMERR_CL_SERVICE_NOT_AVAILABLE = -2147411742; - -const int CSSMERR_CL_UNKNOWN_FORMAT = -2147411890; - -const int CSSMERR_CL_UNKNOWN_TAG = -2147411889; - -const int CSSMERR_CL_USER_CANCELED = -2147411743; - -const int CSSMERR_CL_VERIFICATION_FAILURE = -2147411895; - -const int CSSMERR_CSPDL_APPLE_DL_CONVERSION_ERROR = -2147415035; - -const int CSSMERR_CSP_ACL_ADD_FAILED = -2147416010; - -const int CSSMERR_CSP_ACL_BASE_CERTS_NOT_SUPPORTED = -2147416025; - -const int CSSMERR_CSP_ACL_CHALLENGE_CALLBACK_FAILED = -2147416019; - -const int CSSMERR_CSP_ACL_CHANGE_FAILED = -2147416015; - -const int CSSMERR_CSP_ACL_DELETE_FAILED = -2147416012; - -const int CSSMERR_CSP_ACL_ENTRY_TAG_NOT_FOUND = -2147416017; - -const int CSSMERR_CSP_ACL_REPLACE_FAILED = -2147416011; - -const int CSSMERR_CSP_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147416021; - -const int CSSMERR_CSP_ALGID_MISMATCH = -2147415789; - -const int CSSMERR_CSP_ALREADY_LOGGED_IN = -2147415726; - -const int CSSMERR_CSP_APPLE_ADD_APPLICATION_ACL_SUBJECT = -2147415040; - -const int CSSMERR_CSP_APPLE_INVALID_KEY_END_DATE = -2147415036; - -const int CSSMERR_CSP_APPLE_INVALID_KEY_START_DATE = -2147415037; - -const int CSSMERR_CSP_APPLE_PUBLIC_KEY_INCOMPLETE = -2147415039; - -const int CSSMERR_CSP_APPLE_SIGNATURE_MISMATCH = -2147415038; - -const int CSSMERR_CSP_APPLE_SSLv2_ROLLBACK = -2147415034; - -const int CSSMERR_CSP_ATTACH_HANDLE_BUSY = -2147415802; - -const int CSSMERR_CSP_BLOCK_SIZE_MISMATCH = -2147415731; - -const int CSSMERR_CSP_CRYPTO_DATA_CALLBACK_FAILED = -2147415722; - -const int CSSMERR_CSP_DEVICE_ERROR = -2147415804; - -const int CSSMERR_CSP_DEVICE_FAILED = -2147415835; - -const int CSSMERR_CSP_DEVICE_MEMORY_ERROR = -2147415803; - -const int CSSMERR_CSP_DEVICE_RESET = -2147415836; - -const int CSSMERR_CSP_DEVICE_VERIFY_FAILED = -2147415728; - -const int CSSMERR_CSP_FUNCTION_FAILED = -2147416054; - -const int CSSMERR_CSP_FUNCTION_NOT_IMPLEMENTED = -2147416057; - -const int CSSMERR_CSP_INPUT_LENGTH_ERROR = -2147415807; - -const int CSSMERR_CSP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147415837; - -const int CSSMERR_CSP_INTERNAL_ERROR = -2147416063; - -const int CSSMERR_CSP_INVALID_ACCESS_CREDENTIALS = -2147416027; - -const int CSSMERR_CSP_INVALID_ACL_BASE_CERTS = -2147416026; - -const int CSSMERR_CSP_INVALID_ACL_CHALLENGE_CALLBACK = -2147416020; - -const int CSSMERR_CSP_INVALID_ACL_EDIT_MODE = -2147416016; - -const int CSSMERR_CSP_INVALID_ACL_ENTRY_TAG = -2147416018; - -const int CSSMERR_CSP_INVALID_ACL_SUBJECT_VALUE = -2147416022; - -const int CSSMERR_CSP_INVALID_ALGORITHM = -2147415759; - -const int CSSMERR_CSP_INVALID_ATTR_ACCESS_CREDENTIALS = -2147415678; - -const int CSSMERR_CSP_INVALID_ATTR_ALG_PARAMS = -2147415704; - -const int CSSMERR_CSP_INVALID_ATTR_BASE = -2147415686; - -const int CSSMERR_CSP_INVALID_ATTR_BLOCK_SIZE = -2147415738; - -const int CSSMERR_CSP_INVALID_ATTR_DL_DB_HANDLE = -2147415680; - -const int CSSMERR_CSP_INVALID_ATTR_EFFECTIVE_BITS = -2147415696; - -const int CSSMERR_CSP_INVALID_ATTR_END_DATE = -2147415692; - -const int CSSMERR_CSP_INVALID_ATTR_INIT_VECTOR = -2147415752; - -const int CSSMERR_CSP_INVALID_ATTR_ITERATION_COUNT = -2147415682; - -const int CSSMERR_CSP_INVALID_ATTR_KEY = -2147415754; - -const int CSSMERR_CSP_INVALID_ATTR_KEY_LENGTH = -2147415740; - -const int CSSMERR_CSP_INVALID_ATTR_KEY_TYPE = -2147415700; - -const int CSSMERR_CSP_INVALID_ATTR_LABEL = -2147415702; - -const int CSSMERR_CSP_INVALID_ATTR_MODE = -2147415698; - -const int CSSMERR_CSP_INVALID_ATTR_OUTPUT_SIZE = -2147415708; - -const int CSSMERR_CSP_INVALID_ATTR_PADDING = -2147415748; - -const int CSSMERR_CSP_INVALID_ATTR_PASSPHRASE = -2147415742; - -const int CSSMERR_CSP_INVALID_ATTR_PRIME = -2147415688; - -const int CSSMERR_CSP_INVALID_ATTR_PRIVATE_KEY_FORMAT = -2147415674; - -const int CSSMERR_CSP_INVALID_ATTR_PUBLIC_KEY_FORMAT = -2147415676; - -const int CSSMERR_CSP_INVALID_ATTR_RANDOM = -2147415746; - -const int CSSMERR_CSP_INVALID_ATTR_ROUNDS = -2147415706; - -const int CSSMERR_CSP_INVALID_ATTR_SALT = -2147415750; - -const int CSSMERR_CSP_INVALID_ATTR_SEED = -2147415744; - -const int CSSMERR_CSP_INVALID_ATTR_START_DATE = -2147415694; - -const int CSSMERR_CSP_INVALID_ATTR_SUBPRIME = -2147415684; - -const int CSSMERR_CSP_INVALID_ATTR_SYMMETRIC_KEY_FORMAT = -2147415672; - -const int CSSMERR_CSP_INVALID_ATTR_VERSION = -2147415690; - -const int CSSMERR_CSP_INVALID_ATTR_WRAPPED_KEY_FORMAT = -2147415670; - -const int CSSMERR_CSP_INVALID_CONTEXT = -2147415760; - -const int CSSMERR_CSP_INVALID_CONTEXT_HANDLE = -2147416000; - -const int CSSMERR_CSP_INVALID_CRYPTO_DATA = -2147415976; - -const int CSSMERR_CSP_INVALID_DATA = -2147415994; - -const int CSSMERR_CSP_INVALID_DATA_COUNT = -2147415768; - -const int CSSMERR_CSP_INVALID_DIGEST_ALGORITHM = -2147415723; - -const int CSSMERR_CSP_INVALID_INPUT_POINTER = -2147416059; - -const int CSSMERR_CSP_INVALID_INPUT_VECTOR = -2147415766; - -const int CSSMERR_CSP_INVALID_KEY = -2147415792; - -const int CSSMERR_CSP_INVALID_KEYATTR_MASK = -2147415780; - -const int CSSMERR_CSP_INVALID_KEYUSAGE_MASK = -2147415782; - -const int CSSMERR_CSP_INVALID_KEY_CLASS = -2147415790; - -const int CSSMERR_CSP_INVALID_KEY_FORMAT = -2147415776; - -const int CSSMERR_CSP_INVALID_KEY_LABEL = -2147415778; - -const int CSSMERR_CSP_INVALID_KEY_POINTER = -2147415783; - -const int CSSMERR_CSP_INVALID_KEY_REFERENCE = -2147415791; - -const int CSSMERR_CSP_INVALID_LOGIN_NAME = -2147415727; - -const int CSSMERR_CSP_INVALID_NEW_ACL_ENTRY = -2147416014; - -const int CSSMERR_CSP_INVALID_NEW_ACL_OWNER = -2147416013; - -const int CSSMERR_CSP_INVALID_OUTPUT_POINTER = -2147416058; - -const int CSSMERR_CSP_INVALID_OUTPUT_VECTOR = -2147415765; - -const int CSSMERR_CSP_INVALID_PASSTHROUGH_ID = -2147415978; - -const int CSSMERR_CSP_INVALID_POINTER = -2147416060; - -const int CSSMERR_CSP_INVALID_SAMPLE_VALUE = -2147416024; - -const int CSSMERR_CSP_INVALID_SIGNATURE = -2147415733; - -const int CSSMERR_CSP_IN_DARK_WAKE = -2147415834; - -const int CSSMERR_CSP_KEY_BLOB_TYPE_INCORRECT = -2147415787; - -const int CSSMERR_CSP_KEY_HEADER_INCONSISTENT = -2147415786; - -const int CSSMERR_CSP_KEY_LABEL_ALREADY_EXISTS = -2147415724; - -const int CSSMERR_CSP_KEY_USAGE_INCORRECT = -2147415788; - -const int CSSMERR_CSP_MDS_ERROR = -2147416061; - -const int CSSMERR_CSP_MEMORY_ERROR = -2147416062; - -const int CSSMERR_CSP_MISSING_ATTR_ACCESS_CREDENTIALS = -2147415677; - -const int CSSMERR_CSP_MISSING_ATTR_ALG_PARAMS = -2147415703; - -const int CSSMERR_CSP_MISSING_ATTR_BASE = -2147415685; - -const int CSSMERR_CSP_MISSING_ATTR_BLOCK_SIZE = -2147415737; - -const int CSSMERR_CSP_MISSING_ATTR_DL_DB_HANDLE = -2147415679; - -const int CSSMERR_CSP_MISSING_ATTR_EFFECTIVE_BITS = -2147415695; - -const int CSSMERR_CSP_MISSING_ATTR_END_DATE = -2147415691; - -const int CSSMERR_CSP_MISSING_ATTR_INIT_VECTOR = -2147415751; - -const int CSSMERR_CSP_MISSING_ATTR_ITERATION_COUNT = -2147415681; - -const int CSSMERR_CSP_MISSING_ATTR_KEY = -2147415753; - -const int CSSMERR_CSP_MISSING_ATTR_KEY_LENGTH = -2147415739; - -const int CSSMERR_CSP_MISSING_ATTR_KEY_TYPE = -2147415699; - -const int CSSMERR_CSP_MISSING_ATTR_LABEL = -2147415701; - -const int CSSMERR_CSP_MISSING_ATTR_MODE = -2147415697; - -const int CSSMERR_CSP_MISSING_ATTR_OUTPUT_SIZE = -2147415707; - -const int CSSMERR_CSP_MISSING_ATTR_PADDING = -2147415747; - -const int CSSMERR_CSP_MISSING_ATTR_PASSPHRASE = -2147415741; - -const int CSSMERR_CSP_MISSING_ATTR_PRIME = -2147415687; - -const int CSSMERR_CSP_MISSING_ATTR_PRIVATE_KEY_FORMAT = -2147415673; - -const int CSSMERR_CSP_MISSING_ATTR_PUBLIC_KEY_FORMAT = -2147415675; - -const int CSSMERR_CSP_MISSING_ATTR_RANDOM = -2147415745; - -const int CSSMERR_CSP_MISSING_ATTR_ROUNDS = -2147415705; - -const int CSSMERR_CSP_MISSING_ATTR_SALT = -2147415749; - -const int CSSMERR_CSP_MISSING_ATTR_SEED = -2147415743; - -const int CSSMERR_CSP_MISSING_ATTR_START_DATE = -2147415693; - -const int CSSMERR_CSP_MISSING_ATTR_SUBPRIME = -2147415683; - -const int CSSMERR_CSP_MISSING_ATTR_SYMMETRIC_KEY_FORMAT = -2147415671; - -const int CSSMERR_CSP_MISSING_ATTR_VERSION = -2147415689; - -const int CSSMERR_CSP_MISSING_ATTR_WRAPPED_KEY_FORMAT = -2147415669; - -const int CSSMERR_CSP_NOT_LOGGED_IN = -2147415801; - -const int CSSMERR_CSP_NO_USER_INTERACTION = -2147415840; - -const int CSSMERR_CSP_OBJECT_ACL_NOT_SUPPORTED = -2147416029; - -const int CSSMERR_CSP_OBJECT_ACL_REQUIRED = -2147416028; - -const int CSSMERR_CSP_OBJECT_MANIP_AUTH_DENIED = -2147416030; - -const int CSSMERR_CSP_OBJECT_USE_AUTH_DENIED = -2147416031; - -const int CSSMERR_CSP_OPERATION_AUTH_DENIED = -2147416032; - -const int CSSMERR_CSP_OS_ACCESS_DENIED = -2147416055; - -const int CSSMERR_CSP_OUTPUT_LENGTH_ERROR = -2147415806; - -const int CSSMERR_CSP_PRIVATE_KEY_ALREADY_EXISTS = -2147415725; - -const int CSSMERR_CSP_PRIVATE_KEY_NOT_FOUND = -2147415730; - -const int CSSMERR_CSP_PRIVILEGE_NOT_GRANTED = -2147415989; - -const int CSSMERR_CSP_PRIVILEGE_NOT_SUPPORTED = -2147415805; - -const int CSSMERR_CSP_PUBLIC_KEY_INCONSISTENT = -2147415729; - -const int CSSMERR_CSP_QUERY_SIZE_UNKNOWN = -2147415732; - -const int CSSMERR_CSP_SAMPLE_VALUE_NOT_SUPPORTED = -2147416023; - -const int CSSMERR_CSP_SELF_CHECK_FAILED = -2147416056; - -const int CSSMERR_CSP_SERVICE_NOT_AVAILABLE = -2147415838; - -const int CSSMERR_CSP_STAGED_OPERATION_IN_PROGRESS = -2147415736; - -const int CSSMERR_CSP_STAGED_OPERATION_NOT_STARTED = -2147415735; - -const int CSSMERR_CSP_UNSUPPORTED_KEYATTR_MASK = -2147415779; - -const int CSSMERR_CSP_UNSUPPORTED_KEYUSAGE_MASK = -2147415781; - -const int CSSMERR_CSP_UNSUPPORTED_KEY_FORMAT = -2147415785; - -const int CSSMERR_CSP_UNSUPPORTED_KEY_LABEL = -2147415777; - -const int CSSMERR_CSP_UNSUPPORTED_KEY_SIZE = -2147415784; - -const int CSSMERR_CSP_USER_CANCELED = -2147415839; - -const int CSSMERR_CSP_VECTOR_OF_BUFS_UNSUPPORTED = -2147415767; - -const int CSSMERR_CSP_VERIFY_FAILED = -2147415734; - -const int CSSMERR_CSSM_ADDIN_AUTHENTICATE_FAILED = -2147417828; - -const int CSSMERR_CSSM_ADDIN_LOAD_FAILED = -2147417834; - -const int CSSMERR_CSSM_ADDIN_UNLOAD_FAILED = -2147417832; - -const int CSSMERR_CSSM_ATTRIBUTE_NOT_IN_CONTEXT = -2147417822; - -const int CSSMERR_CSSM_BUFFER_TOO_SMALL = -2147417824; - -const int CSSMERR_CSSM_DEVICE_FAILED = -2147417883; - -const int CSSMERR_CSSM_DEVICE_RESET = -2147417884; - -const int CSSMERR_CSSM_EMM_AUTHENTICATE_FAILED = -2147417829; - -const int CSSMERR_CSSM_EMM_LOAD_FAILED = -2147417836; - -const int CSSMERR_CSSM_EMM_UNLOAD_FAILED = -2147417835; - -const int CSSMERR_CSSM_EVENT_NOTIFICATION_CALLBACK_NOT_FOUND = -2147417819; - -const int CSSMERR_CSSM_FUNCTION_FAILED = -2147418102; - -const int CSSMERR_CSSM_FUNCTION_INTEGRITY_FAIL = -2147417851; - -const int CSSMERR_CSSM_FUNCTION_NOT_IMPLEMENTED = -2147418105; - -const int CSSMERR_CSSM_INCOMPATIBLE_VERSION = -2147418047; - -const int CSSMERR_CSSM_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147417885; - -const int CSSMERR_CSSM_INTERNAL_ERROR = -2147418111; - -const int CSSMERR_CSSM_INVALID_ADDIN_FUNCTION_TABLE = -2147417830; - -const int CSSMERR_CSSM_INVALID_ADDIN_HANDLE = -2147417855; - -const int CSSMERR_CSSM_INVALID_ATTRIBUTE = -2147417823; - -const int CSSMERR_CSSM_INVALID_CONTEXT_HANDLE = -2147418048; - -const int CSSMERR_CSSM_INVALID_GUID = -2147418100; - -const int CSSMERR_CSSM_INVALID_HANDLE_USAGE = -2147417853; - -const int CSSMERR_CSSM_INVALID_INPUT_POINTER = -2147418107; - -const int CSSMERR_CSSM_INVALID_KEY_HIERARCHY = -2147417833; - -const int CSSMERR_CSSM_INVALID_OUTPUT_POINTER = -2147418106; - -const int CSSMERR_CSSM_INVALID_POINTER = -2147418108; - -const int CSSMERR_CSSM_INVALID_PVC = -2147417837; - -const int CSSMERR_CSSM_INVALID_SERVICE_MASK = -2147417827; - -const int CSSMERR_CSSM_INVALID_SUBSERVICEID = -2147417825; - -const int CSSMERR_CSSM_IN_DARK_WAKE = -2147417882; - -const int CSSMERR_CSSM_LIB_REF_NOT_FOUND = -2147417831; - -const int CSSMERR_CSSM_MDS_ERROR = -2147418109; - -const int CSSMERR_CSSM_MEMORY_ERROR = -2147418110; - -const int CSSMERR_CSSM_MODULE_MANAGER_INITIALIZE_FAIL = -2147417821; - -const int CSSMERR_CSSM_MODULE_MANAGER_NOT_FOUND = -2147417820; - -const int CSSMERR_CSSM_MODULE_MANIFEST_VERIFY_FAILED = -2147418101; - -const int CSSMERR_CSSM_MODULE_NOT_LOADED = -2147417826; - -const int CSSMERR_CSSM_NOT_INITIALIZED = -2147417854; - -const int CSSMERR_CSSM_NO_USER_INTERACTION = -2147417888; - -const int CSSMERR_CSSM_OS_ACCESS_DENIED = -2147418103; - -const int CSSMERR_CSSM_PRIVILEGE_NOT_GRANTED = -2147418037; - -const int CSSMERR_CSSM_PVC_ALREADY_CONFIGURED = -2147417838; - -const int CSSMERR_CSSM_PVC_REFERENT_NOT_FOUND = -2147417852; - -const int CSSMERR_CSSM_SCOPE_NOT_SUPPORTED = -2147417839; - -const int CSSMERR_CSSM_SELF_CHECK_FAILED = -2147418104; - -const int CSSMERR_CSSM_SERVICE_NOT_AVAILABLE = -2147417886; - -const int CSSMERR_CSSM_USER_CANCELED = -2147417887; - -const int CSSMERR_DL_ACL_ADD_FAILED = -2147413962; - -const int CSSMERR_DL_ACL_BASE_CERTS_NOT_SUPPORTED = -2147413977; - -const int CSSMERR_DL_ACL_CHALLENGE_CALLBACK_FAILED = -2147413971; - -const int CSSMERR_DL_ACL_CHANGE_FAILED = -2147413967; - -const int CSSMERR_DL_ACL_DELETE_FAILED = -2147413964; - -const int CSSMERR_DL_ACL_ENTRY_TAG_NOT_FOUND = -2147413969; - -const int CSSMERR_DL_ACL_REPLACE_FAILED = -2147413963; - -const int CSSMERR_DL_ACL_SUBJECT_TYPE_NOT_SUPPORTED = -2147413973; - -const int CSSMERR_DL_DATABASE_CORRUPT = -2147413759; - -const int CSSMERR_DL_DATASTORE_ALREADY_EXISTS = -2147413736; - -const int CSSMERR_DL_DATASTORE_DOESNOT_EXIST = -2147413737; - -const int CSSMERR_DL_DATASTORE_IS_OPEN = -2147413734; - -const int CSSMERR_DL_DB_LOCKED = -2147413735; - -const int CSSMERR_DL_DEVICE_FAILED = -2147413787; - -const int CSSMERR_DL_DEVICE_RESET = -2147413788; - -const int CSSMERR_DL_ENDOFDATA = -2147413715; - -const int CSSMERR_DL_FIELD_SPECIFIED_MULTIPLE = -2147413742; - -const int CSSMERR_DL_FUNCTION_FAILED = -2147414006; - -const int CSSMERR_DL_FUNCTION_NOT_IMPLEMENTED = -2147414009; - -const int CSSMERR_DL_INCOMPATIBLE_FIELD_FORMAT = -2147413741; - -const int CSSMERR_DL_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147413789; - -const int CSSMERR_DL_INTERNAL_ERROR = -2147414015; - -const int CSSMERR_DL_INVALID_ACCESS_CREDENTIALS = -2147413979; - -const int CSSMERR_DL_INVALID_ACCESS_REQUEST = -2147413724; - -const int CSSMERR_DL_INVALID_ACL_BASE_CERTS = -2147413978; - -const int CSSMERR_DL_INVALID_ACL_CHALLENGE_CALLBACK = -2147413972; - -const int CSSMERR_DL_INVALID_ACL_EDIT_MODE = -2147413968; - -const int CSSMERR_DL_INVALID_ACL_ENTRY_TAG = -2147413970; - -const int CSSMERR_DL_INVALID_ACL_SUBJECT_VALUE = -2147413974; - -const int CSSMERR_DL_INVALID_CL_HANDLE = -2147413934; - -const int CSSMERR_DL_INVALID_CSP_HANDLE = -2147413936; - -const int CSSMERR_DL_INVALID_DB_HANDLE = -2147413942; - -const int CSSMERR_DL_INVALID_DB_LIST_POINTER = -2147413939; - -const int CSSMERR_DL_INVALID_DB_LOCATION = -2147413725; - -const int CSSMERR_DL_INVALID_DB_NAME = -2147413738; - -const int CSSMERR_DL_INVALID_DL_HANDLE = -2147413935; - -const int CSSMERR_DL_INVALID_FIELD_NAME = -2147413750; - -const int CSSMERR_DL_INVALID_INDEX_INFO = -2147413723; - -const int CSSMERR_DL_INVALID_INPUT_POINTER = -2147414011; - -const int CSSMERR_DL_INVALID_MODIFY_MODE = -2147413718; - -const int CSSMERR_DL_INVALID_NETWORK_ADDR = -2147413929; - -const int CSSMERR_DL_INVALID_NEW_ACL_ENTRY = -2147413966; - -const int CSSMERR_DL_INVALID_NEW_ACL_OWNER = -2147413965; - -const int CSSMERR_DL_INVALID_NEW_OWNER = -2147413721; - -const int CSSMERR_DL_INVALID_OPEN_PARAMETERS = -2147413717; - -const int CSSMERR_DL_INVALID_OUTPUT_POINTER = -2147414010; - -const int CSSMERR_DL_INVALID_PARSING_MODULE = -2147413740; - -const int CSSMERR_DL_INVALID_PASSTHROUGH_ID = -2147413930; - -const int CSSMERR_DL_INVALID_POINTER = -2147414012; - -const int CSSMERR_DL_INVALID_QUERY = -2147413714; - -const int CSSMERR_DL_INVALID_RECORDTYPE = -2147413751; - -const int CSSMERR_DL_INVALID_RECORD_INDEX = -2147413752; - -const int CSSMERR_DL_INVALID_RECORD_UID = -2147413720; - -const int CSSMERR_DL_INVALID_RESULTS_HANDLE = -2147413726; - -const int CSSMERR_DL_INVALID_SAMPLE_VALUE = -2147413976; - -const int CSSMERR_DL_INVALID_SELECTION_TAG = -2147413722; - -const int CSSMERR_DL_INVALID_UNIQUE_INDEX_DATA = -2147413719; - -const int CSSMERR_DL_INVALID_VALUE = -2147413713; - -const int CSSMERR_DL_IN_DARK_WAKE = -2147413786; - -const int CSSMERR_DL_MDS_ERROR = -2147414013; - -const int CSSMERR_DL_MEMORY_ERROR = -2147414014; - -const int CSSMERR_DL_MISSING_VALUE = -2147413732; - -const int CSSMERR_DL_MULTIPLE_VALUES_UNSUPPORTED = -2147413712; - -const int CSSMERR_DL_NO_USER_INTERACTION = -2147413792; - -const int CSSMERR_DL_OBJECT_ACL_NOT_SUPPORTED = -2147413981; - -const int CSSMERR_DL_OBJECT_ACL_REQUIRED = -2147413980; - -const int CSSMERR_DL_OBJECT_MANIP_AUTH_DENIED = -2147413982; - -const int CSSMERR_DL_OBJECT_USE_AUTH_DENIED = -2147413983; - -const int CSSMERR_DL_OPERATION_AUTH_DENIED = -2147413984; - -const int CSSMERR_DL_OS_ACCESS_DENIED = -2147414007; - -const int CSSMERR_DL_RECORD_MODIFIED = -2147413716; - -const int CSSMERR_DL_RECORD_NOT_FOUND = -2147413733; - -const int CSSMERR_DL_SAMPLE_VALUE_NOT_SUPPORTED = -2147413975; - -const int CSSMERR_DL_SELF_CHECK_FAILED = -2147414008; - -const int CSSMERR_DL_SERVICE_NOT_AVAILABLE = -2147413790; - -const int CSSMERR_DL_STALE_UNIQUE_RECORD = -2147413711; - -const int CSSMERR_DL_UNSUPPORTED_FIELD_FORMAT = -2147413749; - -const int CSSMERR_DL_UNSUPPORTED_INDEX_INFO = -2147413748; - -const int CSSMERR_DL_UNSUPPORTED_LOCALITY = -2147413747; - -const int CSSMERR_DL_UNSUPPORTED_NUM_ATTRIBUTES = -2147413746; - -const int CSSMERR_DL_UNSUPPORTED_NUM_INDEXES = -2147413745; - -const int CSSMERR_DL_UNSUPPORTED_NUM_RECORDTYPES = -2147413744; - -const int CSSMERR_DL_UNSUPPORTED_NUM_SELECTION_PREDS = -2147413729; - -const int CSSMERR_DL_UNSUPPORTED_OPERATOR = -2147413727; - -const int CSSMERR_DL_UNSUPPORTED_QUERY = -2147413731; - -const int CSSMERR_DL_UNSUPPORTED_QUERY_LIMITS = -2147413730; - -const int CSSMERR_DL_UNSUPPORTED_RECORDTYPE = -2147413743; - -const int CSSMERR_DL_USER_CANCELED = -2147413791; - -const int CSSMERR_TP_AUTHENTICATION_FAILED = -2147409657; - -const int CSSMERR_TP_CERTGROUP_INCOMPLETE = -2147409656; - -const int CSSMERR_TP_CERTIFICATE_CANT_OPERATE = -2147409655; - -const int CSSMERR_TP_CERT_EXPIRED = -2147409654; - -const int CSSMERR_TP_CERT_NOT_VALID_YET = -2147409653; - -const int CSSMERR_TP_CERT_REVOKED = -2147409652; - -const int CSSMERR_TP_CERT_SUSPENDED = -2147409651; - -const int CSSMERR_TP_CRL_ALREADY_SIGNED = -2147409849; - -const int CSSMERR_TP_DEVICE_FAILED = -2147409691; - -const int CSSMERR_TP_DEVICE_RESET = -2147409692; - -const int CSSMERR_TP_FUNCTION_FAILED = -2147409910; - -const int CSSMERR_TP_FUNCTION_NOT_IMPLEMENTED = -2147409913; - -const int CSSMERR_TP_INSUFFICIENT_CLIENT_IDENTIFICATION = -2147409693; - -const int CSSMERR_TP_INSUFFICIENT_CREDENTIALS = -2147409650; - -const int CSSMERR_TP_INTERNAL_ERROR = -2147409919; - -const int CSSMERR_TP_INVALID_ACTION = -2147409649; - -const int CSSMERR_TP_INVALID_ACTION_DATA = -2147409648; - -const int CSSMERR_TP_INVALID_ANCHOR_CERT = -2147409646; - -const int CSSMERR_TP_INVALID_AUTHORITY = -2147409645; - -const int CSSMERR_TP_INVALID_CALLBACK = -2147409625; - -const int CSSMERR_TP_INVALID_CALLERAUTH_CONTEXT_POINTER = -2147409663; - -const int CSSMERR_TP_INVALID_CERTGROUP = -2147409660; - -const int CSSMERR_TP_INVALID_CERTGROUP_POINTER = -2147409854; - -const int CSSMERR_TP_INVALID_CERTIFICATE = -2147409643; - -const int CSSMERR_TP_INVALID_CERT_AUTHORITY = -2147409642; - -const int CSSMERR_TP_INVALID_CERT_POINTER = -2147409853; - -const int CSSMERR_TP_INVALID_CL_HANDLE = -2147409838; - -const int CSSMERR_TP_INVALID_CONTEXT_HANDLE = -2147409856; - -const int CSSMERR_TP_INVALID_CRL = -2147409638; - -const int CSSMERR_TP_INVALID_CRLGROUP = -2147409659; - -const int CSSMERR_TP_INVALID_CRLGROUP_POINTER = -2147409658; - -const int CSSMERR_TP_INVALID_CRL_AUTHORITY = -2147409641; - -const int CSSMERR_TP_INVALID_CRL_ENCODING = -2147409640; - -const int CSSMERR_TP_INVALID_CRL_POINTER = -2147409852; - -const int CSSMERR_TP_INVALID_CRL_TYPE = -2147409639; - -const int CSSMERR_TP_INVALID_CSP_HANDLE = -2147409840; - -const int CSSMERR_TP_INVALID_DATA = -2147409850; - -const int CSSMERR_TP_INVALID_DB_HANDLE = -2147409846; - -const int CSSMERR_TP_INVALID_DB_LIST = -2147409844; - -const int CSSMERR_TP_INVALID_DB_LIST_POINTER = -2147409843; - -const int CSSMERR_TP_INVALID_DL_HANDLE = -2147409839; - -const int CSSMERR_TP_INVALID_FIELD_POINTER = -2147409851; - -const int CSSMERR_TP_INVALID_FORM_TYPE = -2147409637; - -const int CSSMERR_TP_INVALID_ID = -2147409636; - -const int CSSMERR_TP_INVALID_IDENTIFIER = -2147409635; - -const int CSSMERR_TP_INVALID_IDENTIFIER_POINTER = -2147409662; - -const int CSSMERR_TP_INVALID_INDEX = -2147409634; - -const int CSSMERR_TP_INVALID_INPUT_POINTER = -2147409915; - -const int CSSMERR_TP_INVALID_KEYCACHE_HANDLE = -2147409661; - -const int CSSMERR_TP_INVALID_NAME = -2147409633; - -const int CSSMERR_TP_INVALID_NETWORK_ADDR = -2147409833; - -const int CSSMERR_TP_INVALID_NUMBER_OF_FIELDS = -2147409848; - -const int CSSMERR_TP_INVALID_OUTPUT_POINTER = -2147409914; - -const int CSSMERR_TP_INVALID_PASSTHROUGH_ID = -2147409834; - -const int CSSMERR_TP_INVALID_POINTER = -2147409916; - -const int CSSMERR_TP_INVALID_POLICY_IDENTIFIERS = -2147409632; - -const int CSSMERR_TP_INVALID_REASON = -2147409630; - -const int CSSMERR_TP_INVALID_REQUEST_INPUTS = -2147409629; - -const int CSSMERR_TP_INVALID_RESPONSE_VECTOR = -2147409628; - -const int CSSMERR_TP_INVALID_SIGNATURE = -2147409627; - -const int CSSMERR_TP_INVALID_STOP_ON_POLICY = -2147409626; - -const int CSSMERR_TP_INVALID_TIMESTRING = -2147409631; - -const int CSSMERR_TP_INVALID_TUPLE = -2147409624; - -const int CSSMERR_TP_INVALID_TUPLEGROUP = -2147409614; - -const int CSSMERR_TP_INVALID_TUPLEGROUP_POINTER = -2147409615; - -const int CSSMERR_TP_IN_DARK_WAKE = -2147409690; - -const int CSSMERR_TP_MDS_ERROR = -2147409917; - -const int CSSMERR_TP_MEMORY_ERROR = -2147409918; - -const int CSSMERR_TP_NOT_SIGNER = -2147409623; - -const int CSSMERR_TP_NOT_TRUSTED = -2147409622; - -const int CSSMERR_TP_NO_DEFAULT_AUTHORITY = -2147409621; - -const int CSSMERR_TP_NO_USER_INTERACTION = -2147409696; - -const int CSSMERR_TP_OS_ACCESS_DENIED = -2147409911; - -const int CSSMERR_TP_REJECTED_FORM = -2147409620; - -const int CSSMERR_TP_REQUEST_LOST = -2147409619; - -const int CSSMERR_TP_REQUEST_REJECTED = -2147409618; - -const int CSSMERR_TP_SELF_CHECK_FAILED = -2147409912; - -const int CSSMERR_TP_SERVICE_NOT_AVAILABLE = -2147409694; - -const int CSSMERR_TP_UNKNOWN_FORMAT = -2147409842; - -const int CSSMERR_TP_UNKNOWN_TAG = -2147409841; - -const int CSSMERR_TP_UNSUPPORTED_ADDR_TYPE = -2147409617; - -const int CSSMERR_TP_UNSUPPORTED_SERVICE = -2147409616; - -const int CSSMERR_TP_USER_CANCELED = -2147409695; - -const int CSSMERR_TP_VERIFICATION_FAILURE = -2147409847; - -const int CSSMERR_TP_VERIFY_ACTION_FAILED = -2147409644; - -typedef CSSM_ACCESS_CREDENTIALS = cssm_access_credentials; -typedef CSSM_ACCESS_CREDENTIALS_PTR = ffi.Pointer; - -const int CSSM_ACL_AUTHORIZATION_ANY = 1; - -const int CSSM_ACL_AUTHORIZATION_CHANGE_ACL = 65536; - -const int CSSM_ACL_AUTHORIZATION_CHANGE_OWNER = 65537; - -const int CSSM_ACL_AUTHORIZATION_DBS_CREATE = 22; - -const int CSSM_ACL_AUTHORIZATION_DBS_DELETE = 23; - -const int CSSM_ACL_AUTHORIZATION_DB_DELETE = 17; - -const int CSSM_ACL_AUTHORIZATION_DB_INSERT = 19; - -const int CSSM_ACL_AUTHORIZATION_DB_MODIFY = 20; - -const int CSSM_ACL_AUTHORIZATION_DB_READ = 21; - -const int CSSM_ACL_AUTHORIZATION_DECRYPT = 24; - -const int CSSM_ACL_AUTHORIZATION_DELETE = 25; - -const int CSSM_ACL_AUTHORIZATION_DERIVE = 28; - -const int CSSM_ACL_AUTHORIZATION_ENCRYPT = 35; - -const int CSSM_ACL_AUTHORIZATION_EXPORT_CLEAR = 37; - -const int CSSM_ACL_AUTHORIZATION_EXPORT_WRAPPED = 38; - -const int CSSM_ACL_AUTHORIZATION_GENKEY = 41; - -const int CSSM_ACL_AUTHORIZATION_IMPORT_CLEAR = 47; - -const int CSSM_ACL_AUTHORIZATION_IMPORT_WRAPPED = 48; - -const int CSSM_ACL_AUTHORIZATION_INTEGRITY = 65539; - -const int CSSM_ACL_AUTHORIZATION_LOGIN = 57; - -const int CSSM_ACL_AUTHORIZATION_MAC = 59; - -const int CSSM_ACL_AUTHORIZATION_PARTITION_ID = 65538; - -const int CSSM_ACL_AUTHORIZATION_PREAUTH_BASE = 16842752; - -const int CSSM_ACL_AUTHORIZATION_PREAUTH_END = 16908288; - -const int CSSM_ACL_AUTHORIZATION_SIGN = 115; - -typedef CSSM_ACL_AUTHORIZATION_TAG = sint32; - -const int CSSM_ACL_AUTHORIZATION_TAG_VENDOR_DEFINED_START = 65536; - -const int CSSM_ACL_CODE_SIGNATURE_INVALID = 0; - -const int CSSM_ACL_CODE_SIGNATURE_OSX = 1; - -typedef CSSM_ACL_EDIT = cssm_acl_edit; -typedef CSSM_ACL_EDIT_MODE = uint32; - -const int CSSM_ACL_EDIT_MODE_ADD = 1; - -const int CSSM_ACL_EDIT_MODE_DELETE = 2; - -const int CSSM_ACL_EDIT_MODE_REPLACE = 3; - -typedef CSSM_ACL_EDIT_PTR = ffi.Pointer; -typedef CSSM_ACL_ENTRY_INFO = cssm_acl_entry_info; -typedef CSSM_ACL_ENTRY_INFO_PTR = ffi.Pointer; -typedef CSSM_ACL_ENTRY_INPUT = cssm_acl_entry_input; -typedef CSSM_ACL_ENTRY_INPUT_PTR = ffi.Pointer; -typedef CSSM_ACL_ENTRY_PROTOTYPE = cssm_acl_entry_prototype; -typedef CSSM_ACL_ENTRY_PROTOTYPE_PTR = ffi.Pointer; -typedef CSSM_ACL_HANDLE = CSSM_HANDLE; - -const int CSSM_ACL_KEYCHAIN_PROMPT_CURRENT_VERSION = 257; - -const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID = 64; - -const int CSSM_ACL_KEYCHAIN_PROMPT_INVALID_ACT = 128; - -const int CSSM_ACL_KEYCHAIN_PROMPT_REQUIRE_PASSPHRASE = 1; - -typedef CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR = cssm_acl_keychain_prompt_selector; - -const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED = 16; - -const int CSSM_ACL_KEYCHAIN_PROMPT_UNSIGNED_ACT = 32; - -const int CSSM_ACL_MATCH_BITS = 3; - -const int CSSM_ACL_MATCH_GID = 2; - -const int CSSM_ACL_MATCH_HONOR_ROOT = 256; - -const int CSSM_ACL_MATCH_UID = 1; - -typedef CSSM_ACL_OWNER_PROTOTYPE = cssm_acl_owner_prototype; -typedef CSSM_ACL_OWNER_PROTOTYPE_PTR = ffi.Pointer; - -const int CSSM_ACL_PREAUTH_TRACKING_AUTHORIZED = -2147483648; - -const int CSSM_ACL_PREAUTH_TRACKING_BLOCKED = 0; - -const int CSSM_ACL_PREAUTH_TRACKING_COUNT_MASK = 255; - -typedef CSSM_ACL_PREAUTH_TRACKING_STATE = uint32; - -const int CSSM_ACL_PREAUTH_TRACKING_UNKNOWN = 1073741824; - -const int CSSM_ACL_PROCESS_SELECTOR_CURRENT_VERSION = 257; - -typedef CSSM_ACL_PROCESS_SUBJECT_SELECTOR = cssm_acl_process_subject_selector; -typedef CSSM_ACL_SUBJECT_CALLBACK = - ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer SubjectRequest, - CSSM_LIST_PTR SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, - ) - > - >; -typedef CSSM_ACL_SUBJECT_TYPE = sint32; - -const int CSSM_ACL_SUBJECT_TYPE_ANY = 1; - -const int CSSM_ACL_SUBJECT_TYPE_ASYMMETRIC_KEY = 65547; - -const int CSSM_ACL_SUBJECT_TYPE_BIOMETRIC = 8; - -const int CSSM_ACL_SUBJECT_TYPE_CODE_SIGNATURE = 116; - -const int CSSM_ACL_SUBJECT_TYPE_COMMENT = 12; - -const int CSSM_ACL_SUBJECT_TYPE_EXT_PAM_NAME = 78; - -const int CSSM_ACL_SUBJECT_TYPE_HASHED_SUBJECT = 44; - -const int CSSM_ACL_SUBJECT_TYPE_KEYCHAIN_PROMPT = 65536; - -const int CSSM_ACL_SUBJECT_TYPE_LOGIN_NAME = 58; - -const int CSSM_ACL_SUBJECT_TYPE_PARTITION = 65548; - -const int CSSM_ACL_SUBJECT_TYPE_PASSWORD = 79; - -const int CSSM_ACL_SUBJECT_TYPE_PREAUTH = 65545; - -const int CSSM_ACL_SUBJECT_TYPE_PREAUTH_SOURCE = 65546; - -const int CSSM_ACL_SUBJECT_TYPE_PROCESS = 65539; - -const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_BIOMETRIC = 83; - -const int CSSM_ACL_SUBJECT_TYPE_PROMPTED_PASSWORD = 84; - -const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_BIOMETRIC = 86; - -const int CSSM_ACL_SUBJECT_TYPE_PROTECTED_PASSWORD = 87; - -const int CSSM_ACL_SUBJECT_TYPE_PUBLIC_KEY = 89; - -const int CSSM_ACL_SUBJECT_TYPE_SYMMETRIC_KEY = 65541; - -const int CSSM_ACL_SUBJECT_TYPE_THRESHOLD = 123; - -typedef CSSM_ACL_VALIDITY_PERIOD = cssm_acl_validity_period; -typedef CSSM_ACL_VALIDITY_PERIOD_PTR = ffi.Pointer; - -const int CSSM_AC_BASE_AC_ERROR = -2147405568; - -const int CSSM_AC_BASE_ERROR = -2147405824; - -typedef CSSM_AC_HANDLE = CSSM_MODULE_HANDLE; - -const int CSSM_AC_PRIVATE_ERROR = -2147404800; - -const int CSSM_ADDR_CUSTOM = 1; - -const int CSSM_ADDR_NAME = 4; - -const int CSSM_ADDR_NONE = 0; - -const int CSSM_ADDR_SOCKADDR = 3; - -const int CSSM_ADDR_URL = 2; - -const int CSSM_ALGCLASS_ASYMMETRIC = 8; - -const int CSSM_ALGCLASS_CUSTOM = 1; - -const int CSSM_ALGCLASS_DERIVEKEY = 10; - -const int CSSM_ALGCLASS_DIGEST = 4; - -const int CSSM_ALGCLASS_KEYGEN = 9; - -const int CSSM_ALGCLASS_MAC = 7; - -const int CSSM_ALGCLASS_NONE = 0; - -const int CSSM_ALGCLASS_RANDOMGEN = 5; - -const int CSSM_ALGCLASS_SIGNATURE = 2; - -const int CSSM_ALGCLASS_SYMMETRIC = 3; - -const int CSSM_ALGCLASS_UNIQUEGEN = 6; - -const int CSSM_ALGID_3DES = 77; - -const int CSSM_ALGID_3DES_1KEY = 20; - -const int CSSM_ALGID_3DES_1KEY_EEE = 19; - -const int CSSM_ALGID_3DES_2KEY = 18; - -const int CSSM_ALGID_3DES_2KEY_EDE = 18; - -const int CSSM_ALGID_3DES_2KEY_EEE = 21; - -const int CSSM_ALGID_3DES_3KEY = 17; - -const int CSSM_ALGID_3DES_3KEY_EDE = 17; - -const int CSSM_ALGID_3DES_3KEY_EEE = 20; - -const int CSSM_ALGID_AES = -2147483647; - -const int CSSM_ALGID_APPLE_YARROW = -2147483648; - -const int CSSM_ALGID_ASC = -2147483641; - -const int CSSM_ALGID_BATON = 72; - -const int CSSM_ALGID_BLOWFISH = 28; - -const int CSSM_ALGID_CAST = 27; - -const int CSSM_ALGID_CAST3 = 53; - -const int CSSM_ALGID_CAST5 = 54; - -const int CSSM_ALGID_CDMF = 52; - -const int CSSM_ALGID_CRAB = 41; - -const int CSSM_ALGID_CUSTOM = 1; - -const int CSSM_ALGID_ConcatBaseAndData = 58; - -const int CSSM_ALGID_ConcatBaseAndKey = 56; - -const int CSSM_ALGID_ConcatDataAndBase = 59; - -const int CSSM_ALGID_ConcatKeyAndBase = 57; - -const int CSSM_ALGID_DES = 14; - -const int CSSM_ALGID_DESRandom = 50; - -const int CSSM_ALGID_DESX = 15; - -const int CSSM_ALGID_DH = 2; - -const int CSSM_ALGID_DSA = 43; - -const int CSSM_ALGID_DSA_BSAFE = 83; - -const int CSSM_ALGID_ECAES = 90; - -const int CSSM_ALGID_ECC = 93; - -const int CSSM_ALGID_ECDH = 84; - -const int CSSM_ALGID_ECDH_X963_KDF = -2147483619; - -const int CSSM_ALGID_ECDSA = 73; - -const int CSSM_ALGID_ECDSA_SPECIFIED = -2147483620; - -const int CSSM_ALGID_ECES = 89; - -const int CSSM_ALGID_ECMQV = 85; - -const int CSSM_ALGID_ECNRA = 87; - -const int CSSM_ALGID_ENTROPY_DEFAULT = -2147483631; - -const int CSSM_ALGID_ElGamal = 46; - -const int CSSM_ALGID_ExtractFromKey = 61; - -const int CSSM_ALGID_FASTHASH = 76; - -const int CSSM_ALGID_FEAL = 32; - -const int CSSM_ALGID_FEE = -2147483646; - -const int CSSM_ALGID_FEED = -2147483643; - -const int CSSM_ALGID_FEEDEXP = -2147483642; - -const int CSSM_ALGID_FEE_MD5 = -2147483645; - -const int CSSM_ALGID_FEE_SHA1 = -2147483644; - -const int CSSM_ALGID_FIPS186Random = 92; - -const int CSSM_ALGID_FortezzaTimestamp = 80; - -const int CSSM_ALGID_GOST = 39; - -const int CSSM_ALGID_GenericSecret = 55; - -const int CSSM_ALGID_HAVAL = 10; - -const int CSSM_ALGID_HAVAL3 = 98; - -const int CSSM_ALGID_HAVAL4 = 99; - -const int CSSM_ALGID_HAVAL5 = 100; - -const int CSSM_ALGID_IBCHASH = 12; - -const int CSSM_ALGID_IDEA = 22; - -const int CSSM_ALGID_IntelPlatformRandom = 96; - -const int CSSM_ALGID_JUNIPER = 75; - -const int CSSM_ALGID_KEA = 4; - -const int CSSM_ALGID_KEYCHAIN_KEY = -2147483639; - -const int CSSM_ALGID_KHAFRE = 37; - -const int CSSM_ALGID_KHUFU = 36; - -const int CSSM_ALGID_LAST = 2147483647; - -const int CSSM_ALGID_LOKI = 35; - -const int CSSM_ALGID_LUCIFER = 30; - -const int CSSM_ALGID_MADRYGA = 31; - -const int CSSM_ALGID_MAYFLY = 74; - -const int CSSM_ALGID_MD2 = 5; - -const int CSSM_ALGID_MD2Random = 47; - -const int CSSM_ALGID_MD2WithRSA = 45; - -const int CSSM_ALGID_MD4 = 6; - -const int CSSM_ALGID_MD5 = 7; - -const int CSSM_ALGID_MD5HMAC = 102; - -const int CSSM_ALGID_MD5Random = 48; - -const int CSSM_ALGID_MD5WithRSA = 44; - -const int CSSM_ALGID_MMB = 38; - -const int CSSM_ALGID_MQV = 94; - -const int CSSM_ALGID_NHASH = 9; - -const int CSSM_ALGID_NONE = 0; - -const int CSSM_ALGID_NRA = 95; - -const int CSSM_ALGID_OPENSSH1 = -2147483625; - -const int CSSM_ALGID_PBE_OPENSSL_MD5 = -2147483635; - -const int CSSM_ALGID_PH = 3; - -const int CSSM_ALGID_PKCS12_PBE_ENCR = -2147483638; - -const int CSSM_ALGID_PKCS12_PBE_MAC = -2147483637; - -const int CSSM_ALGID_PKCS12_SHA1_PBE = 86; - -const int CSSM_ALGID_PKCS5_PBKDF1_MD2 = 68; - -const int CSSM_ALGID_PKCS5_PBKDF1_MD5 = 67; - -const int CSSM_ALGID_PKCS5_PBKDF1_SHA1 = 69; - -const int CSSM_ALGID_PKCS5_PBKDF2 = 103; - -const int CSSM_ALGID_RC2 = 23; - -const int CSSM_ALGID_RC4 = 25; - -const int CSSM_ALGID_RC5 = 24; - -const int CSSM_ALGID_RDES = 16; - -const int CSSM_ALGID_REDOC = 33; - -const int CSSM_ALGID_REDOC3 = 34; - -const int CSSM_ALGID_RIPEMAC = 13; - -const int CSSM_ALGID_RIPEMD = 11; - -const int CSSM_ALGID_RSA = 42; - -const int CSSM_ALGID_RUNNING_COUNTER = 104; - -const int CSSM_ALGID_SAFER = 40; - -const int CSSM_ALGID_SEAL = 26; - -const int CSSM_ALGID_SECURE_PASSPHRASE = -2147483636; - -const int CSSM_ALGID_SHA1 = 8; - -const int CSSM_ALGID_SHA1HMAC = 91; - -const int CSSM_ALGID_SHA1HMAC_LEGACY = -2147483640; - -const int CSSM_ALGID_SHA1WithDSA = 81; - -const int CSSM_ALGID_SHA1WithECDSA = 82; - -const int CSSM_ALGID_SHA1WithECNRA = 88; - -const int CSSM_ALGID_SHA1WithRSA = 51; - -const int CSSM_ALGID_SHA224 = -2147483630; - -const int CSSM_ALGID_SHA224WithECDSA = -2147483624; - -const int CSSM_ALGID_SHA224WithRSA = -2147483629; - -const int CSSM_ALGID_SHA256 = -2147483634; - -const int CSSM_ALGID_SHA256WithECDSA = -2147483623; - -const int CSSM_ALGID_SHA256WithRSA = -2147483628; - -const int CSSM_ALGID_SHA384 = -2147483633; - -const int CSSM_ALGID_SHA384WithECDSA = -2147483622; - -const int CSSM_ALGID_SHA384WithRSA = -2147483627; - -const int CSSM_ALGID_SHA512 = -2147483632; - -const int CSSM_ALGID_SHA512WithECDSA = -2147483621; - -const int CSSM_ALGID_SHA512WithRSA = -2147483626; - -const int CSSM_ALGID_SHARandom = 49; - -const int CSSM_ALGID_SKIPJACK = 29; - -const int CSSM_ALGID_SSL3KeyAndMacDerive = 64; - -const int CSSM_ALGID_SSL3MD5 = 78; - -const int CSSM_ALGID_SSL3MD5_MAC = 65; - -@Deprecated('Deprecated') -const int CSSM_ALGID_SSL3MasterDerive = 63; - -@Deprecated('Deprecated') -const int CSSM_ALGID_SSL3PreMasterGen = 62; - -const int CSSM_ALGID_SSL3PrePrimaryGen = 62; - -const int CSSM_ALGID_SSL3PrimaryDerive = 63; - -const int CSSM_ALGID_SSL3SHA1 = 79; - -const int CSSM_ALGID_SSL3SHA1_MAC = 66; - -const int CSSM_ALGID_TIGER = 101; - -const int CSSM_ALGID_UTC = 97; - -const int CSSM_ALGID_VENDOR_DEFINED = -2147483648; - -const int CSSM_ALGID_WrapLynks = 70; - -const int CSSM_ALGID_WrapSET_OAEP = 71; - -const int CSSM_ALGID_XORBaseAndData = 60; - -const int CSSM_ALGID__FIRST_UNUSED = -2147483618; - -const int CSSM_ALGMODE_BC = 14; - -const int CSSM_ALGMODE_CBC = 4; - -const int CSSM_ALGMODE_CBC128 = 36; - -const int CSSM_ALGMODE_CBC64 = 25; - -const int CSSM_ALGMODE_CBCC = 16; - -const int CSSM_ALGMODE_CBCPD = 20; - -const int CSSM_ALGMODE_CBCPadIV8 = 6; - -const int CSSM_ALGMODE_CBC_IV8 = 5; - -const int CSSM_ALGMODE_CFB = 7; - -const int CSSM_ALGMODE_CFB16 = 29; - -const int CSSM_ALGMODE_CFB32 = 28; - -const int CSSM_ALGMODE_CFB8 = 30; - -const int CSSM_ALGMODE_CFBPadIV8 = 9; - -const int CSSM_ALGMODE_CFB_IV8 = 8; - -const int CSSM_ALGMODE_COUNTER = 13; - -const int CSSM_ALGMODE_CUSTOM = 1; - -const int CSSM_ALGMODE_ECB = 2; - -const int CSSM_ALGMODE_ECB128 = 34; - -const int CSSM_ALGMODE_ECB64 = 24; - -const int CSSM_ALGMODE_ECB96 = 35; - -const int CSSM_ALGMODE_ECBPad = 3; - -const int CSSM_ALGMODE_ISO_9796 = 41; - -const int CSSM_ALGMODE_LAST = 2147483647; - -const int CSSM_ALGMODE_NONE = 0; - -const int CSSM_ALGMODE_OAEP_HASH = 37; - -const int CSSM_ALGMODE_OFB = 10; - -const int CSSM_ALGMODE_OFB64 = 26; - -const int CSSM_ALGMODE_OFBNLF = 17; - -const int CSSM_ALGMODE_OFBPadIV8 = 12; - -const int CSSM_ALGMODE_OFB_IV8 = 11; - -const int CSSM_ALGMODE_PBC = 18; - -const int CSSM_ALGMODE_PCBC = 15; - -const int CSSM_ALGMODE_PFB = 19; - -const int CSSM_ALGMODE_PKCS1_EME_OAEP = 39; - -const int CSSM_ALGMODE_PKCS1_EME_V15 = 38; - -const int CSSM_ALGMODE_PKCS1_EMSA_V15 = 40; - -const int CSSM_ALGMODE_PRIVATE_KEY = 22; - -const int CSSM_ALGMODE_PRIVATE_WRAP = 32; - -const int CSSM_ALGMODE_PUBLIC_KEY = 21; - -const int CSSM_ALGMODE_RELAYX = 33; - -const int CSSM_ALGMODE_SHUFFLE = 23; - -const int CSSM_ALGMODE_VENDOR_DEFINED = -2147483648; - -const int CSSM_ALGMODE_WRAP = 31; - -const int CSSM_ALGMODE_X9_31 = 42; - -typedef CSSM_ALGORITHMS = uint32; -typedef CSSM_API_MEMORY_FUNCS = CSSM_MEMORY_FUNCS; -typedef CSSM_API_MEMORY_FUNCS_PTR = ffi.Pointer; -typedef CSSM_API_ModuleEventHandler = - ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - uint32 SubserviceId, - CSSM_SERVICE_TYPE ServiceType, - CSSM_MODULE_EVENT EventType, - ) - > - >; - -const int CSSM_APPLECSPDL_DB_CHANGE_PASSWORD = 5; - -typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS = - cssm_applecspdl_db_change_password_parameters; -typedef CSSM_APPLECSPDL_DB_CHANGE_PASSWORD_PARAMETERS_PTR = - ffi.Pointer; - -const int CSSM_APPLECSPDL_DB_GET_HANDLE = 6; - -const int CSSM_APPLECSPDL_DB_GET_SETTINGS = 2; - -const int CSSM_APPLECSPDL_DB_IS_LOCKED = 4; - -typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS = - cssm_applecspdl_db_is_locked_parameters; -typedef CSSM_APPLECSPDL_DB_IS_LOCKED_PARAMETERS_PTR = - ffi.Pointer; - -const int CSSM_APPLECSPDL_DB_LOCK = 0; - -typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS = - cssm_applecspdl_db_settings_parameters; -typedef CSSM_APPLECSPDL_DB_SETTINGS_PARAMETERS_PTR = - ffi.Pointer; - -const int CSSM_APPLECSPDL_DB_SET_SETTINGS = 3; - -const int CSSM_APPLECSPDL_DB_UNLOCK = 1; - -const int CSSM_APPLECSP_KEYDIGEST = 256; - -const int CSSM_APPLECSP_PUBKEY = 257; - -typedef CSSM_APPLEDL_OPEN_PARAMETERS = cssm_appledl_open_parameters; -typedef CSSM_APPLEDL_OPEN_PARAMETERS_PTR = - ffi.Pointer; - -const int CSSM_APPLEDL_OPEN_PARAMETERS_VERSION = 1; - -const int CSSM_APPLEFILEDL_COMMIT = 1; - -const int CSSM_APPLEFILEDL_DELETE_FILE = 6; - -const int CSSM_APPLEFILEDL_MAKE_BACKUP = 4; - -const int CSSM_APPLEFILEDL_MAKE_COPY = 5; - -const int CSSM_APPLEFILEDL_ROLLBACK = 2; - -const int CSSM_APPLEFILEDL_TAKE_FILE_LOCK = 3; - -const int CSSM_APPLEFILEDL_TOGGLE_AUTOCOMMIT = 0; - -const int CSSM_APPLESCPDL_CSP_GET_KEYHANDLE = 7; - -const int CSSM_APPLEX509CL_OBTAIN_CSR = 0; - -const int CSSM_APPLEX509CL_VERIFY_CSR = 1; - -final class CSSM_APPLE_CL_CSR_REQUEST extends ffi.Struct { - external CSSM_X509_NAME_PTR subjectNameX509; - - @CSSM_ALGORITHMS() - external int signatureAlg; - - external SecAsn1Oid signatureOid; - - @CSSM_CSP_HANDLE() - external int cspHand; - - external ffi.Pointer subjectPublicKey; - - external ffi.Pointer subjectPrivateKey; - - external ffi.Pointer challengeString; -} - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_10 = 10; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_11 = 11; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_12 = 12; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_13 = 13; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_14 = 14; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_15 = 15; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_16 = 16; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_17 = 17; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_18 = 18; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_19 = 19; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_20 = 20; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_21 = 21; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_22 = 22; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_23 = 23; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_24 = 24; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_25 = 25; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_26 = 26; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_27 = 27; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_28 = 28; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_8 = 8; - -const int CSSM_APPLE_PRIVATE_CSPDL_CODE_9 = 9; - -final class CSSM_APPLE_TP_ACTION_DATA extends ffi.Struct { - @uint32() - external int Version; - - @CSSM_APPLE_TP_ACTION_FLAGS() - external int ActionFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Version, - required int ActionFlags, - }) => $allocator() - ..ref.Version = Version - ..ref.ActionFlags = ActionFlags; -} - -typedef CSSM_APPLE_TP_ACTION_FLAGS = uint32; - -final class CSSM_APPLE_TP_CERT_REQUEST extends ffi.Struct { - @CSSM_CSP_HANDLE() - external int cspHand; - - @CSSM_CL_HANDLE() - external int clHand; - - @uint32() - external int serialNumber; - - @uint32() - external int numSubjectNames; - - external ffi.Pointer subjectNames; - - @uint32() - external int numIssuerNames; - - external ffi.Pointer issuerNames; - - external CSSM_X509_NAME_PTR issuerNameX509; - - external ffi.Pointer certPublicKey; - - external ffi.Pointer issuerPrivateKey; - - @CSSM_ALGORITHMS() - external int signatureAlg; - - external SecAsn1Oid signatureOid; - - @uint32() - external int notBefore; - - @uint32() - external int notAfter; - - @uint32() - external int numExtensions; - - external ffi.Pointer extensions; - - external ffi.Pointer challengeString; -} - -final class CSSM_APPLE_TP_CRL_OPTIONS extends ffi.Struct { - @uint32() - external int Version; - - @CSSM_APPLE_TP_CRL_OPT_FLAGS() - external int CrlFlags; - - external CSSM_DL_DB_HANDLE_PTR crlStore; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Version, - required int CrlFlags, - required CSSM_DL_DB_HANDLE_PTR crlStore, - }) => $allocator() - ..ref.Version = Version - ..ref.CrlFlags = CrlFlags - ..ref.crlStore = crlStore; -} - -typedef CSSM_APPLE_TP_CRL_OPT_FLAGS = uint32; - -final class CSSM_APPLE_TP_NAME_OID extends ffi.Struct { - external ffi.Pointer string; - - external ffi.Pointer oid; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer string, - required ffi.Pointer oid, - }) => $allocator() - ..ref.string = string - ..ref.oid = oid; -} - -final class CSSM_APPLE_TP_SMIME_OPTIONS extends ffi.Struct { - @uint32() - external int Version; - - @CE_KeyUsage() - external int IntendedUsage; - - @uint32() - external int SenderEmailLen; - - external ffi.Pointer SenderEmail; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Version, - required int IntendedUsage, - required int SenderEmailLen, - required ffi.Pointer SenderEmail, - }) => $allocator() - ..ref.Version = Version - ..ref.IntendedUsage = IntendedUsage - ..ref.SenderEmailLen = SenderEmailLen - ..ref.SenderEmail = SenderEmail; -} - -final class CSSM_APPLE_TP_SSL_OPTIONS extends ffi.Struct { - @uint32() - external int Version; - - @uint32() - external int ServerNameLen; - - external ffi.Pointer ServerName; - - @uint32() - external int Flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Version, - required int ServerNameLen, - required ffi.Pointer ServerName, - required int Flags, - }) => $allocator() - ..ref.Version = Version - ..ref.ServerNameLen = ServerNameLen - ..ref.ServerName = ServerName - ..ref.Flags = Flags; -} - -const int CSSM_APPLE_UNLOCK_TYPE_KEYBAG = 3; - -const int CSSM_APPLE_UNLOCK_TYPE_KEY_DIRECT = 1; - -const int CSSM_APPLE_UNLOCK_TYPE_WRAPPED_PRIVATE = 2; - -const int CSSM_ASC_OPTIMIZE_ASCII = 5; - -const int CSSM_ASC_OPTIMIZE_DEFAULT = 0; - -const int CSSM_ASC_OPTIMIZE_SECURITY = 2; - -const int CSSM_ASC_OPTIMIZE_SIZE = 1; - -const int CSSM_ASC_OPTIMIZE_TIME = 3; - -const int CSSM_ASC_OPTIMIZE_TIME_SIZE = 4; - -typedef CSSM_ATTACH_FLAGS = uint32; - -const int CSSM_ATTACH_READ_ONLY = 1; - -const int CSSM_ATTRIBUTE_ACCESS_CREDENTIALS = -2147483612; - -const int CSSM_ATTRIBUTE_ALERT_TITLE = 545259527; - -const int CSSM_ATTRIBUTE_ALG_ID = 268435485; - -const int CSSM_ATTRIBUTE_ALG_PARAMS = 536870928; - -const int CSSM_ATTRIBUTE_ASC_OPTIMIZATION = 276824067; - -const int CSSM_ATTRIBUTE_BASE = 536870939; - -const int CSSM_ATTRIBUTE_BLOCK_SIZE = 268435468; - -const int CSSM_ATTRIBUTE_CSP_HANDLE = 268435490; - -const int CSSM_ATTRIBUTE_CUSTOM = 536870913; - -const int CSSM_ATTRIBUTE_DATA_ACCESS_CREDENTIALS = -2147483648; - -const int CSSM_ATTRIBUTE_DATA_CRYPTO_DATA = 805306368; - -const int CSSM_ATTRIBUTE_DATA_CSSM_DATA = 536870912; - -const int CSSM_ATTRIBUTE_DATA_DATE = 1610612736; - -const int CSSM_ATTRIBUTE_DATA_DL_DB_HANDLE = 33554432; - -const int CSSM_ATTRIBUTE_DATA_KEY = 1073741824; - -const int CSSM_ATTRIBUTE_DATA_KR_PROFILE = 50331648; - -const int CSSM_ATTRIBUTE_DATA_NONE = 0; - -const int CSSM_ATTRIBUTE_DATA_RANGE = 1879048192; - -const int CSSM_ATTRIBUTE_DATA_STRING = 1342177280; - -const int CSSM_ATTRIBUTE_DATA_UINT32 = 268435456; - -const int CSSM_ATTRIBUTE_DATA_VERSION = 16777216; - -const int CSSM_ATTRIBUTE_DESCRIPTION = 1342177282; - -const int CSSM_ATTRIBUTE_DL_DB_HANDLE = 33554467; - -const int CSSM_ATTRIBUTE_EFFECTIVE_BITS = 268435476; - -const int CSSM_ATTRIBUTE_END_DATE = 1610612758; - -const int CSSM_ATTRIBUTE_FEE_CURVE_TYPE = 276824066; - -const int CSSM_ATTRIBUTE_FEE_PRIME_TYPE = 276824065; - -const int CSSM_ATTRIBUTE_INIT_VECTOR = 536870916; - -const int CSSM_ATTRIBUTE_ITERATION_COUNT = 268435486; - -const int CSSM_ATTRIBUTE_IV_SIZE = 268435471; - -const int CSSM_ATTRIBUTE_KEY = 1073741827; - -const int CSSM_ATTRIBUTE_KEYATTR = 268435480; - -const int CSSM_ATTRIBUTE_KEYUSAGE = 268435479; - -const int CSSM_ATTRIBUTE_KEY_LENGTH = 268435466; - -const int CSSM_ATTRIBUTE_KEY_LENGTH_RANGE = 1879048203; - -const int CSSM_ATTRIBUTE_KEY_TYPE = 268435474; - -const int CSSM_ATTRIBUTE_KRPROFILE_LOCAL = 50331680; - -const int CSSM_ATTRIBUTE_KRPROFILE_REMOTE = 50331681; - -const int CSSM_ATTRIBUTE_LABEL = 536870929; - -const int CSSM_ATTRIBUTE_MODE = 268435475; - -const int CSSM_ATTRIBUTE_NONE = 0; - -const int CSSM_ATTRIBUTE_OUTPUT_SIZE = 268435469; - -const int CSSM_ATTRIBUTE_PADDING = 268435462; - -const int CSSM_ATTRIBUTE_PARAM_KEY = 1082130437; - -const int CSSM_ATTRIBUTE_PASSPHRASE = 805306377; - -const int CSSM_ATTRIBUTE_PRIME = 536870938; - -const int CSSM_ATTRIBUTE_PRIVATE_KEY_FORMAT = 268435494; - -const int CSSM_ATTRIBUTE_PROMPT = 545259526; - -const int CSSM_ATTRIBUTE_PUBLIC_KEY = 1082130432; - -const int CSSM_ATTRIBUTE_PUBLIC_KEY_FORMAT = 268435493; - -const int CSSM_ATTRIBUTE_RANDOM = 536870919; - -const int CSSM_ATTRIBUTE_ROUNDS = 268435470; - -const int CSSM_ATTRIBUTE_ROUNDS_RANGE = 1879048223; - -const int CSSM_ATTRIBUTE_RSA_BLINDING = 276824068; - -const int CSSM_ATTRIBUTE_SALT = 536870917; - -const int CSSM_ATTRIBUTE_SEED = 805306376; - -const int CSSM_ATTRIBUTE_START_DATE = 1610612757; - -const int CSSM_ATTRIBUTE_SUBPRIME = 536870940; - -const int CSSM_ATTRIBUTE_SYMMETRIC_KEY_FORMAT = 268435495; - -typedef CSSM_ATTRIBUTE_TYPE = uint32; - -const int CSSM_ATTRIBUTE_TYPE_MASK = -16777216; - -const int CSSM_ATTRIBUTE_VENDOR_DEFINED = 8388608; - -const int CSSM_ATTRIBUTE_VERIFY_PASSPHRASE = 276824072; - -const int CSSM_ATTRIBUTE_VERSION = 16777241; - -const int CSSM_ATTRIBUTE_WRAPPED_KEY_FORMAT = 268435496; - -typedef CSSM_AUTHORIZATIONGROUP = cssm_authorizationgroup; -typedef CSSM_AUTHORIZATIONGROUP_PTR = ffi.Pointer; -typedef CSSM_BASE_CERTS = cssm_base_certs; -typedef CSSM_BASE_CERTS_PTR = ffi.Pointer; - -const int CSSM_BASE_ERROR = -2147418112; - -typedef CSSM_BER_TAG = uint8; -typedef CSSM_BITMASK = uint32; -typedef CSSM_BOOL = sint32; -typedef CSSM_CALLBACK = - ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DATA_PTR OutData, - ffi.Pointer CallerCtx, - ) - > - >; -typedef CSSM_CALLOC = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - uint32 num, - CSSM_SIZE size, - ffi.Pointer allocref, - ) - > - >; -typedef CSSM_CC_HANDLE = CSSM_LONG_HANDLE; -typedef CSSM_CERTGROUP = cssm_certgroup; - -const int CSSM_CERTGROUP_CERT_PAIR = 3; - -const int CSSM_CERTGROUP_DATA = 0; - -const int CSSM_CERTGROUP_ENCODED_CERT = 1; - -const int CSSM_CERTGROUP_PARSED_CERT = 2; - -typedef CSSM_CERTGROUP_PTR = ffi.Pointer; -typedef CSSM_CERTGROUP_TYPE = uint32; -typedef CSSM_CERTGROUP_TYPE_PTR = ffi.Pointer; - -const int CSSM_CERT_ACL_ENTRY = 12; - -typedef CSSM_CERT_BUNDLE = cssm_cert_bundle; - -const int CSSM_CERT_BUNDLE_CUSTOM = 1; - -typedef CSSM_CERT_BUNDLE_ENCODING = uint32; - -const int CSSM_CERT_BUNDLE_ENCODING_BER = 2; - -const int CSSM_CERT_BUNDLE_ENCODING_CUSTOM = 1; - -const int CSSM_CERT_BUNDLE_ENCODING_DER = 3; - -const int CSSM_CERT_BUNDLE_ENCODING_PGP = 5; - -const int CSSM_CERT_BUNDLE_ENCODING_SEXPR = 4; - -const int CSSM_CERT_BUNDLE_ENCODING_UNKNOWN = 0; - -typedef CSSM_CERT_BUNDLE_HEADER = cssm_cert_bundle_header; -typedef CSSM_CERT_BUNDLE_HEADER_PTR = ffi.Pointer; - -const int CSSM_CERT_BUNDLE_LAST = 32767; - -const int CSSM_CERT_BUNDLE_PFX = 5; - -const int CSSM_CERT_BUNDLE_PGP_KEYRING = 7; - -const int CSSM_CERT_BUNDLE_PKCS12 = 4; - -const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_DATA = 2; - -const int CSSM_CERT_BUNDLE_PKCS7_SIGNED_ENVELOPED_DATA = 3; - -typedef CSSM_CERT_BUNDLE_PTR = ffi.Pointer; - -const int CSSM_CERT_BUNDLE_SPKI_SEQUENCE = 6; - -typedef CSSM_CERT_BUNDLE_TYPE = uint32; - -const int CSSM_CERT_BUNDLE_UNKNOWN = 0; - -typedef CSSM_CERT_ENCODING = uint32; - -const int CSSM_CERT_ENCODING_BER = 2; - -const int CSSM_CERT_ENCODING_CUSTOM = 1; - -const int CSSM_CERT_ENCODING_DER = 3; - -const int CSSM_CERT_ENCODING_LAST = 32767; - -const int CSSM_CERT_ENCODING_MULTIPLE = 32766; - -const int CSSM_CERT_ENCODING_NDR = 4; - -const int CSSM_CERT_ENCODING_PGP = 6; - -typedef CSSM_CERT_ENCODING_PTR = ffi.Pointer; - -const int CSSM_CERT_ENCODING_SEXPR = 5; - -const int CSSM_CERT_ENCODING_UNKNOWN = 0; - -const int CSSM_CERT_Intel = 8; - -const int CSSM_CERT_LAST = 32767; - -const int CSSM_CERT_MULTIPLE = 32766; - -typedef CSSM_CERT_PAIR = cssm_cert_pair; -typedef CSSM_CERT_PAIR_PTR = ffi.Pointer; -typedef CSSM_CERT_PARSE_FORMAT = uint32; - -const int CSSM_CERT_PARSE_FORMAT_COMPLEX = 3; - -const int CSSM_CERT_PARSE_FORMAT_CUSTOM = 1; - -const int CSSM_CERT_PARSE_FORMAT_LAST = 32767; - -const int CSSM_CERT_PARSE_FORMAT_MULTIPLE = 32766; - -const int CSSM_CERT_PARSE_FORMAT_NONE = 0; - -const int CSSM_CERT_PARSE_FORMAT_OID_NAMED = 4; - -typedef CSSM_CERT_PARSE_FORMAT_PTR = ffi.Pointer; - -const int CSSM_CERT_PARSE_FORMAT_SEXPR = 2; - -const int CSSM_CERT_PARSE_FORMAT_TUPLE = 5; - -const int CSSM_CERT_PGP = 4; - -const int CSSM_CERT_SDSIv1 = 6; - -const int CSSM_CERT_SPKI = 5; - -const int CSSM_CERT_STATUS_EXPIRED = 1; - -const int CSSM_CERT_STATUS_IS_FROM_NET = 32; - -const int CSSM_CERT_STATUS_IS_IN_ANCHORS = 8; - -const int CSSM_CERT_STATUS_IS_IN_INPUT_CERTS = 4; - -const int CSSM_CERT_STATUS_IS_ROOT = 16; - -const int CSSM_CERT_STATUS_NOT_VALID_YET = 2; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_DENY = 1024; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_ADMIN = 128; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_SYSTEM = 256; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_FOUND_USER = 64; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_IGNORED_ERROR = 2048; - -const int CSSM_CERT_STATUS_TRUST_SETTINGS_TRUST = 512; - -const int CSSM_CERT_TUPLE = 11; - -typedef CSSM_CERT_TYPE = uint32; -typedef CSSM_CERT_TYPE_PTR = ffi.Pointer; - -const int CSSM_CERT_UNKNOWN = 0; - -const int CSSM_CERT_X9_ATTRIBUTE = 10; - -const int CSSM_CERT_X_509_ATTRIBUTE = 9; - -const int CSSM_CERT_X_509v1 = 1; - -const int CSSM_CERT_X_509v2 = 2; - -const int CSSM_CERT_X_509v3 = 3; - -typedef CSSM_CHALLENGE_CALLBACK = - ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer Challenge, - CSSM_SAMPLEGROUP_PTR Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ) - > - >; - -const int CSSM_CL_BASE_CL_ERROR = -2147411712; - -const int CSSM_CL_BASE_ERROR = -2147411968; - -const int CSSM_CL_CUSTOM_CERT_BUNDLE_TYPE = 32768; - -const int CSSM_CL_CUSTOM_CERT_ENCODING = 32768; - -const int CSSM_CL_CUSTOM_CERT_PARSE_FORMAT = 32768; - -const int CSSM_CL_CUSTOM_CERT_TYPE = 32768; - -const int CSSM_CL_CUSTOM_CRL_PARSE_FORMAT = 32768; - -typedef CSSM_CL_HANDLE = CSSM_MODULE_HANDLE; - -const int CSSM_CL_PRIVATE_ERROR = -2147410944; - -const int CSSM_CL_TEMPLATE_INTERMEDIATE_CERT = 1; - -const int CSSM_CL_TEMPLATE_PKIX_CERTTEMPLATE = 2; - -typedef CSSM_CL_TEMPLATE_TYPE = uint32; -typedef CSSM_CONTEXT = cssm_context; -typedef CSSM_CONTEXT_ATTRIBUTE = cssm_context_attribute; -typedef CSSM_CONTEXT_ATTRIBUTE_PTR = ffi.Pointer; -typedef CSSM_CONTEXT_EVENT = uint32; - -const int CSSM_CONTEXT_EVENT_CREATE = 1; - -const int CSSM_CONTEXT_EVENT_DELETE = 2; - -const int CSSM_CONTEXT_EVENT_UPDATE = 3; - -typedef CSSM_CONTEXT_PTR = ffi.Pointer; -typedef CSSM_CONTEXT_TYPE = uint32; -typedef CSSM_CRLGROUP = cssm_crlgroup; - -const int CSSM_CRLGROUP_CRL_PAIR = 3; - -const int CSSM_CRLGROUP_DATA = 0; - -const int CSSM_CRLGROUP_ENCODED_CRL = 1; - -const int CSSM_CRLGROUP_PARSED_CRL = 2; - -typedef CSSM_CRLGROUP_PTR = ffi.Pointer; -typedef CSSM_CRLGROUP_TYPE = uint32; -typedef CSSM_CRLGROUP_TYPE_PTR = ffi.Pointer; -typedef CSSM_CRL_ENCODING = uint32; - -const int CSSM_CRL_ENCODING_BER = 2; - -const int CSSM_CRL_ENCODING_BLOOM = 4; - -const int CSSM_CRL_ENCODING_CUSTOM = 1; - -const int CSSM_CRL_ENCODING_DER = 3; - -const int CSSM_CRL_ENCODING_MULTIPLE = 32766; - -typedef CSSM_CRL_ENCODING_PTR = ffi.Pointer; - -const int CSSM_CRL_ENCODING_SEXPR = 5; - -const int CSSM_CRL_ENCODING_UNKNOWN = 0; - -typedef CSSM_CRL_PAIR = cssm_crl_pair; -typedef CSSM_CRL_PAIR_PTR = ffi.Pointer; -typedef CSSM_CRL_PARSE_FORMAT = uint32; - -const int CSSM_CRL_PARSE_FORMAT_COMPLEX = 3; - -const int CSSM_CRL_PARSE_FORMAT_CUSTOM = 1; - -const int CSSM_CRL_PARSE_FORMAT_LAST = 32767; - -const int CSSM_CRL_PARSE_FORMAT_MULTIPLE = 32766; - -const int CSSM_CRL_PARSE_FORMAT_NONE = 0; - -const int CSSM_CRL_PARSE_FORMAT_OID_NAMED = 4; - -typedef CSSM_CRL_PARSE_FORMAT_PTR = ffi.Pointer; - -const int CSSM_CRL_PARSE_FORMAT_SEXPR = 2; - -const int CSSM_CRL_PARSE_FORMAT_TUPLE = 5; - -typedef CSSM_CRL_TYPE = uint32; - -const int CSSM_CRL_TYPE_MULTIPLE = 32766; - -typedef CSSM_CRL_TYPE_PTR = ffi.Pointer; - -const int CSSM_CRL_TYPE_SPKI = 3; - -const int CSSM_CRL_TYPE_UNKNOWN = 0; - -const int CSSM_CRL_TYPE_X_509v1 = 1; - -const int CSSM_CRL_TYPE_X_509v2 = 2; - -typedef CSSM_CRYPTO_DATA = cssm_crypto_data; -typedef CSSM_CRYPTO_DATA_PTR = ffi.Pointer; -typedef CSSM_CSPTYPE = uint32; - -const int CSSM_CSP_BASE_CSP_ERROR = -2147415808; - -const int CSSM_CSP_BASE_ERROR = -2147416064; - -typedef CSSM_CSP_FLAGS = uint32; -typedef CSSM_CSP_HANDLE = CSSM_MODULE_HANDLE; - -const int CSSM_CSP_HARDWARE = 2; - -const int CSSM_CSP_HYBRID = 3; - -typedef CSSM_CSP_OPERATIONAL_STATISTICS = cssm_csp_operational_statistics; -typedef CSSM_CSP_OPERATIONAL_STATISTICS_PTR = - ffi.Pointer; - -const int CSSM_CSP_PRIVATE_ERROR = -2147415040; - -const int CSSM_CSP_RDR_EXISTS = 2; - -const int CSSM_CSP_RDR_HW = 4; - -const int CSSM_CSP_RDR_TOKENPRESENT = 1; - -typedef CSSM_CSP_READER_FLAGS = uint32; - -const int CSSM_CSP_SOFTWARE = 1; - -const int CSSM_CSP_STORES_CERTIFICATES = 134217728; - -const int CSSM_CSP_STORES_GENERIC = 268435456; - -const int CSSM_CSP_STORES_PRIVATE_KEYS = 16777216; - -const int CSSM_CSP_STORES_PUBLIC_KEYS = 33554432; - -const int CSSM_CSP_STORES_SESSION_KEYS = 67108864; - -const int CSSM_CSP_TOK_CLOCK_EXISTS = 64; - -const int CSSM_CSP_TOK_LOGIN_REQUIRED = 4; - -const int CSSM_CSP_TOK_PRIVATE_KEY_PASSWORD = 4194304; - -const int CSSM_CSP_TOK_PROT_AUTHENTICATION = 256; - -const int CSSM_CSP_TOK_RNG = 1; - -const int CSSM_CSP_TOK_SESSION_KEY_PASSWORD = 2097152; - -const int CSSM_CSP_TOK_USER_PIN_EXPIRED = 1048576; - -const int CSSM_CSP_TOK_USER_PIN_INITIALIZED = 8; - -const int CSSM_CSP_TOK_WRITE_PROTECTED = 2; - -const int CSSM_CSSM_BASE_CSSM_ERROR = -2147417840; - -const int CSSM_CSSM_BASE_ERROR = -2147418112; - -const int CSSM_CSSM_PRIVATE_ERROR = -2147417088; - -const int CSSM_CUSTOM_COMMON_ERROR_EXTENT = 224; - -typedef CSSM_DATA_PTR = ffi.Pointer; -typedef CSSM_DATE = cssm_date; -typedef CSSM_DATE_PTR = ffi.Pointer; -typedef CSSM_DBINFO = cssm_dbinfo; -typedef CSSM_DBINFO_PTR = ffi.Pointer; - -const int CSSM_DB_ACCESS_PRIVILEGED = 4; - -const int CSSM_DB_ACCESS_READ = 1; - -const int CSSM_DB_ACCESS_RESET = 65536; - -typedef CSSM_DB_ACCESS_TYPE = uint32; -typedef CSSM_DB_ACCESS_TYPE_PTR = ffi.Pointer; - -const int CSSM_DB_ACCESS_WRITE = 2; - -const int CSSM_DB_AND = 1; - -typedef CSSM_DB_ATTRIBUTE_DATA = cssm_db_attribute_data; -typedef CSSM_DB_ATTRIBUTE_DATA_PTR = ffi.Pointer; -typedef CSSM_DB_ATTRIBUTE_FORMAT = uint32; - -const int CSSM_DB_ATTRIBUTE_FORMAT_BIG_NUM = 3; - -const int CSSM_DB_ATTRIBUTE_FORMAT_BLOB = 6; - -const int CSSM_DB_ATTRIBUTE_FORMAT_COMPLEX = 8; - -const int CSSM_DB_ATTRIBUTE_FORMAT_MULTI_UINT32 = 7; - -typedef CSSM_DB_ATTRIBUTE_FORMAT_PTR = ffi.Pointer; - -const int CSSM_DB_ATTRIBUTE_FORMAT_REAL = 4; - -const int CSSM_DB_ATTRIBUTE_FORMAT_SINT32 = 1; - -const int CSSM_DB_ATTRIBUTE_FORMAT_STRING = 0; - -const int CSSM_DB_ATTRIBUTE_FORMAT_TIME_DATE = 5; - -const int CSSM_DB_ATTRIBUTE_FORMAT_UINT32 = 2; - -typedef CSSM_DB_ATTRIBUTE_INFO = cssm_db_attribute_info; -typedef CSSM_DB_ATTRIBUTE_INFO_PTR = ffi.Pointer; - -const int CSSM_DB_ATTRIBUTE_NAME_AS_INTEGER = 2; - -const int CSSM_DB_ATTRIBUTE_NAME_AS_OID = 1; - -const int CSSM_DB_ATTRIBUTE_NAME_AS_STRING = 0; - -typedef CSSM_DB_ATTRIBUTE_NAME_FORMAT = uint32; -typedef CSSM_DB_ATTRIBUTE_NAME_FORMAT_PTR = ffi.Pointer; - -const int CSSM_DB_CERT_USE_OWNER = 4; - -const int CSSM_DB_CERT_USE_PRIVACY = 32; - -const int CSSM_DB_CERT_USE_REVOKED = 8; - -const int CSSM_DB_CERT_USE_SIGNING = 16; - -const int CSSM_DB_CERT_USE_SYSTEM = 2; - -const int CSSM_DB_CERT_USE_TRUSTED = 1; - -typedef CSSM_DB_CONJUNCTIVE = uint32; -typedef CSSM_DB_CONJUNCTIVE_PTR = ffi.Pointer; - -const int CSSM_DB_CONTAINS = 4; - -const int CSSM_DB_CONTAINS_FINAL_SUBSTRING = 6; - -const int CSSM_DB_CONTAINS_INITIAL_SUBSTRING = 5; - -const int CSSM_DB_DATASTORES_UNKNOWN = -1; - -const int CSSM_DB_EQUAL = 0; - -const int CSSM_DB_FILESYSTEMSCAN_MODE = 1; - -const int CSSM_DB_GREATER_THAN = 3; - -typedef CSSM_DB_HANDLE = CSSM_MODULE_HANDLE; -typedef CSSM_DB_INDEXED_DATA_LOCATION = uint32; -typedef CSSM_DB_INDEX_INFO = cssm_db_index_info; -typedef CSSM_DB_INDEX_INFO_PTR = ffi.Pointer; - -const int CSSM_DB_INDEX_NONUNIQUE = 1; - -const int CSSM_DB_INDEX_ON_ATTRIBUTE = 1; - -const int CSSM_DB_INDEX_ON_RECORD = 2; - -const int CSSM_DB_INDEX_ON_UNKNOWN = 0; - -typedef CSSM_DB_INDEX_TYPE = uint32; - -const int CSSM_DB_INDEX_UNIQUE = 0; - -const int CSSM_DB_LESS_THAN = 2; - -const int CSSM_DB_MODIFY_ATTRIBUTE_ADD = 1; - -const int CSSM_DB_MODIFY_ATTRIBUTE_DELETE = 2; - -const int CSSM_DB_MODIFY_ATTRIBUTE_NONE = 0; - -const int CSSM_DB_MODIFY_ATTRIBUTE_REPLACE = 3; - -typedef CSSM_DB_MODIFY_MODE = uint32; - -const int CSSM_DB_NONE = 0; - -const int CSSM_DB_NOT_EQUAL = 1; - -typedef CSSM_DB_OPERATOR = uint32; -typedef CSSM_DB_OPERATOR_PTR = ffi.Pointer; - -const int CSSM_DB_OR = 2; - -typedef CSSM_DB_PARSING_MODULE_INFO = cssm_db_parsing_module_info; -typedef CSSM_DB_PARSING_MODULE_INFO_PTR = - ffi.Pointer; -typedef CSSM_DB_RECORDTYPE = uint32; - -const int CSSM_DB_RECORDTYPE_APP_DEFINED_END = -1; - -const int CSSM_DB_RECORDTYPE_APP_DEFINED_START = -2147483648; - -const int CSSM_DB_RECORDTYPE_OPEN_GROUP_END = 18; - -const int CSSM_DB_RECORDTYPE_OPEN_GROUP_START = 10; - -const int CSSM_DB_RECORDTYPE_SCHEMA_END = 4; - -const int CSSM_DB_RECORDTYPE_SCHEMA_START = 0; - -typedef CSSM_DB_RECORD_ATTRIBUTE_DATA = cssm_db_record_attribute_data; -typedef CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR = - ffi.Pointer; -typedef CSSM_DB_RECORD_ATTRIBUTE_INFO = cssm_db_record_attribute_info; -typedef CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR = - ffi.Pointer; -typedef CSSM_DB_RECORD_INDEX_INFO = cssm_db_record_index_info; -typedef CSSM_DB_RECORD_INDEX_INFO_PTR = ffi.Pointer; -typedef CSSM_DB_RETRIEVAL_MODES = uint32; -typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO = cssm_db_schema_attribute_info; -typedef CSSM_DB_SCHEMA_ATTRIBUTE_INFO_PTR = - ffi.Pointer; -typedef CSSM_DB_SCHEMA_INDEX_INFO = cssm_db_schema_index_info; -typedef CSSM_DB_SCHEMA_INDEX_INFO_PTR = ffi.Pointer; - -const int CSSM_DB_TRANSACTIONAL_MODE = 0; - -typedef CSSM_DB_UNIQUE_RECORD = cssm_db_unique_record; -typedef CSSM_DB_UNIQUE_RECORD_PTR = ffi.Pointer; -typedef CSSM_DLTYPE = uint32; -typedef CSSM_DLTYPE_PTR = ffi.Pointer; - -const int CSSM_DL_BASE_DL_ERROR = -2147413760; - -const int CSSM_DL_BASE_ERROR = -2147414016; - -const int CSSM_DL_CUSTOM = 1; - -typedef CSSM_DL_CUSTOM_ATTRIBUTES = ffi.Pointer; -typedef CSSM_DL_DB_HANDLE = cssm_dl_db_handle; -typedef CSSM_DL_DB_HANDLE_PTR = ffi.Pointer; -typedef CSSM_DL_DB_LIST = cssm_dl_db_list; -typedef CSSM_DL_DB_LIST_PTR = ffi.Pointer; - -const int CSSM_DL_DB_RECORD_ALL_KEYS = 18; - -const int CSSM_DL_DB_RECORD_ANY = 10; - -const int CSSM_DL_DB_RECORD_APPLESHARE_PASSWORD = -2147483646; - -const int CSSM_DL_DB_RECORD_CERT = 11; - -const int CSSM_DL_DB_RECORD_CRL = 12; - -const int CSSM_DL_DB_RECORD_EXTENDED_ATTRIBUTE = -2147479548; - -const int CSSM_DL_DB_RECORD_GENERIC = 14; - -const int CSSM_DL_DB_RECORD_GENERIC_PASSWORD = -2147483648; - -const int CSSM_DL_DB_RECORD_INTERNET_PASSWORD = -2147483647; - -const int CSSM_DL_DB_RECORD_METADATA = -2147450880; - -const int CSSM_DL_DB_RECORD_POLICY = 13; - -const int CSSM_DL_DB_RECORD_PRIVATE_KEY = 16; - -const int CSSM_DL_DB_RECORD_PUBLIC_KEY = 15; - -const int CSSM_DL_DB_RECORD_SYMMETRIC_KEY = 17; - -const int CSSM_DL_DB_RECORD_UNLOCK_REFERRAL = -2147479549; - -const int CSSM_DL_DB_RECORD_USER_TRUST = -2147479551; - -const int CSSM_DL_DB_RECORD_X509_CERTIFICATE = -2147479552; - -const int CSSM_DL_DB_RECORD_X509_CRL = -2147479550; - -const int CSSM_DL_DB_SCHEMA_ATTRIBUTES = 2; - -const int CSSM_DL_DB_SCHEMA_INDEXES = 1; - -const int CSSM_DL_DB_SCHEMA_INFO = 0; - -const int CSSM_DL_DB_SCHEMA_PARSING_MODULE = 3; - -const int CSSM_DL_FFS = 5; - -typedef CSSM_DL_FFS_ATTRIBUTES = ffi.Pointer; -typedef CSSM_DL_HANDLE = CSSM_MODULE_HANDLE; - -const int CSSM_DL_LDAP = 2; - -typedef CSSM_DL_LDAP_ATTRIBUTES = ffi.Pointer; - -const int CSSM_DL_MEMORY = 6; - -const int CSSM_DL_ODBC = 3; - -typedef CSSM_DL_ODBC_ATTRIBUTES = ffi.Pointer; - -const int CSSM_DL_PKCS11 = 4; - -typedef CSSM_DL_PKCS11_ATTRIBUTE = ffi.Pointer; -typedef CSSM_DL_PKCS11_ATTRIBUTE_PTR = ffi.Pointer; - -const int CSSM_DL_PRIVATE_ERROR = -2147412992; - -const int CSSM_DL_REMOTEDIR = 7; - -const int CSSM_DL_UNKNOWN = 0; - -const int CSSM_ELAPSED_TIME_COMPLETE = -2; - -const int CSSM_ELAPSED_TIME_UNKNOWN = -1; - -typedef CSSM_ENCODED_CERT = cssm_encoded_cert; -typedef CSSM_ENCODED_CERT_PTR = ffi.Pointer; -typedef CSSM_ENCODED_CRL = cssm_encoded_crl; -typedef CSSM_ENCODED_CRL_PTR = ffi.Pointer; -typedef CSSM_ENCRYPT_MODE = uint32; - -const int CSSM_ERRCODE_ACL_ADD_FAILED = 54; - -const int CSSM_ERRCODE_ACL_BASE_CERTS_NOT_SUPPORTED = 39; - -const int CSSM_ERRCODE_ACL_CHALLENGE_CALLBACK_FAILED = 45; - -const int CSSM_ERRCODE_ACL_CHANGE_FAILED = 49; - -const int CSSM_ERRCODE_ACL_DELETE_FAILED = 52; - -const int CSSM_ERRCODE_ACL_ENTRY_TAG_NOT_FOUND = 47; - -const int CSSM_ERRCODE_ACL_REPLACE_FAILED = 53; - -const int CSSM_ERRCODE_ACL_SUBJECT_TYPE_NOT_SUPPORTED = 43; - -const int CSSM_ERRCODE_CRL_ALREADY_SIGNED = 71; - -const int CSSM_ERRCODE_DEVICE_FAILED = 229; - -const int CSSM_ERRCODE_DEVICE_RESET = 228; - -const int CSSM_ERRCODE_FUNCTION_FAILED = 10; - -const int CSSM_ERRCODE_FUNCTION_NOT_IMPLEMENTED = 7; - -const int CSSM_ERRCODE_INCOMPATIBLE_VERSION = 65; - -const int CSSM_ERRCODE_INSUFFICIENT_CLIENT_IDENTIFICATION = 227; - -const int CSSM_ERRCODE_INTERNAL_ERROR = 1; - -const int CSSM_ERRCODE_INVALID_ACCESS_CREDENTIALS = 37; - -const int CSSM_ERRCODE_INVALID_ACL_BASE_CERTS = 38; - -const int CSSM_ERRCODE_INVALID_ACL_CHALLENGE_CALLBACK = 44; - -const int CSSM_ERRCODE_INVALID_ACL_EDIT_MODE = 48; - -const int CSSM_ERRCODE_INVALID_ACL_ENTRY_TAG = 46; - -const int CSSM_ERRCODE_INVALID_ACL_SUBJECT_VALUE = 42; - -const int CSSM_ERRCODE_INVALID_AC_HANDLE = 85; - -const int CSSM_ERRCODE_INVALID_CERTGROUP_POINTER = 66; - -const int CSSM_ERRCODE_INVALID_CERT_POINTER = 67; - -const int CSSM_ERRCODE_INVALID_CL_HANDLE = 82; - -const int CSSM_ERRCODE_INVALID_CONTEXT_HANDLE = 64; - -const int CSSM_ERRCODE_INVALID_CRL_POINTER = 68; - -const int CSSM_ERRCODE_INVALID_CRYPTO_DATA = 88; - -const int CSSM_ERRCODE_INVALID_CSP_HANDLE = 80; - -const int CSSM_ERRCODE_INVALID_DATA = 70; - -const int CSSM_ERRCODE_INVALID_DB_HANDLE = 74; - -const int CSSM_ERRCODE_INVALID_DB_LIST = 76; - -const int CSSM_ERRCODE_INVALID_DB_LIST_POINTER = 77; - -const int CSSM_ERRCODE_INVALID_DL_HANDLE = 81; - -const int CSSM_ERRCODE_INVALID_FIELD_POINTER = 69; - -const int CSSM_ERRCODE_INVALID_GUID = 12; - -const int CSSM_ERRCODE_INVALID_INPUT_POINTER = 5; - -const int CSSM_ERRCODE_INVALID_KR_HANDLE = 84; - -const int CSSM_ERRCODE_INVALID_NETWORK_ADDR = 87; - -const int CSSM_ERRCODE_INVALID_NEW_ACL_ENTRY = 50; - -const int CSSM_ERRCODE_INVALID_NEW_ACL_OWNER = 51; - -const int CSSM_ERRCODE_INVALID_NUMBER_OF_FIELDS = 72; - -const int CSSM_ERRCODE_INVALID_OUTPUT_POINTER = 6; - -const int CSSM_ERRCODE_INVALID_PASSTHROUGH_ID = 86; - -const int CSSM_ERRCODE_INVALID_POINTER = 4; - -const int CSSM_ERRCODE_INVALID_SAMPLE_VALUE = 40; - -const int CSSM_ERRCODE_INVALID_TP_HANDLE = 83; - -const int CSSM_ERRCODE_IN_DARK_WAKE = 230; - -const int CSSM_ERRCODE_MDS_ERROR = 3; - -const int CSSM_ERRCODE_MEMORY_ERROR = 2; - -const int CSSM_ERRCODE_MODULE_MANIFEST_VERIFY_FAILED = 11; - -const int CSSM_ERRCODE_NO_USER_INTERACTION = 224; - -const int CSSM_ERRCODE_OBJECT_ACL_NOT_SUPPORTED = 35; - -const int CSSM_ERRCODE_OBJECT_ACL_REQUIRED = 36; - -const int CSSM_ERRCODE_OBJECT_MANIP_AUTH_DENIED = 34; - -const int CSSM_ERRCODE_OBJECT_USE_AUTH_DENIED = 33; - -const int CSSM_ERRCODE_OPERATION_AUTH_DENIED = 32; - -const int CSSM_ERRCODE_OS_ACCESS_DENIED = 9; - -const int CSSM_ERRCODE_PRIVILEGE_NOT_GRANTED = 75; - -const int CSSM_ERRCODE_SAMPLE_VALUE_NOT_SUPPORTED = 41; - -const int CSSM_ERRCODE_SELF_CHECK_FAILED = 8; - -const int CSSM_ERRCODE_SERVICE_NOT_AVAILABLE = 226; - -const int CSSM_ERRCODE_UNKNOWN_FORMAT = 78; - -const int CSSM_ERRCODE_UNKNOWN_TAG = 79; - -const int CSSM_ERRCODE_USER_CANCELED = 225; - -const int CSSM_ERRCODE_VERIFICATION_FAILURE = 73; - -const int CSSM_ERRORCODE_COMMON_EXTENT = 256; - -const int CSSM_ERRORCODE_CUSTOM_OFFSET = 1024; - -const int CSSM_ERRORCODE_MODULE_EXTENT = 2048; - -const int CSSM_ESTIMATED_TIME_UNKNOWN = -1; - -typedef CSSM_EVIDENCE = cssm_evidence; -typedef CSSM_EVIDENCE_FORM = uint32; - -const int CSSM_EVIDENCE_FORM_APPLE_CERTGROUP = -2147483647; - -const int CSSM_EVIDENCE_FORM_APPLE_CERT_INFO = -2147483646; - -const int CSSM_EVIDENCE_FORM_APPLE_HEADER = -2147483648; - -const int CSSM_EVIDENCE_FORM_CERT = 1; - -const int CSSM_EVIDENCE_FORM_CERT_ID = 3; - -const int CSSM_EVIDENCE_FORM_CRL = 2; - -const int CSSM_EVIDENCE_FORM_CRL_ID = 4; - -const int CSSM_EVIDENCE_FORM_CRL_NEXTTIME = 7; - -const int CSSM_EVIDENCE_FORM_CRL_THISTIME = 6; - -const int CSSM_EVIDENCE_FORM_POLICYINFO = 8; - -const int CSSM_EVIDENCE_FORM_TUPLEGROUP = 9; - -const int CSSM_EVIDENCE_FORM_UNSPECIFIC = 0; - -const int CSSM_EVIDENCE_FORM_VERIFIER_TIME = 5; - -typedef CSSM_EVIDENCE_PTR = ffi.Pointer; - -const int CSSM_FALSE = 0; - -const int CSSM_FEE_CURVE_TYPE_ANSI_X9_62 = 3; - -const int CSSM_FEE_CURVE_TYPE_DEFAULT = 0; - -const int CSSM_FEE_CURVE_TYPE_MONTGOMERY = 1; - -const int CSSM_FEE_CURVE_TYPE_WEIERSTRASS = 2; - -const int CSSM_FEE_PRIME_TYPE_DEFAULT = 0; - -const int CSSM_FEE_PRIME_TYPE_FEE = 2; - -const int CSSM_FEE_PRIME_TYPE_GENERAL = 3; - -const int CSSM_FEE_PRIME_TYPE_MERSENNE = 1; - -typedef CSSM_FIELD = cssm_field; -typedef CSSM_FIELDGROUP = cssm_fieldgroup; -typedef CSSM_FIELDGROUP_PTR = ffi.Pointer; - -const int CSSM_FIELDVALUE_COMPLEX_DATA_TYPE = -1; - -typedef CSSM_FIELD_PTR = ffi.Pointer; -typedef CSSM_FREE = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ) - > - >; -typedef CSSM_FUNC_NAME_ADDR = cssm_func_name_addr; -typedef CSSM_FUNC_NAME_ADDR_PTR = ffi.Pointer; -typedef CSSM_GUID = cssm_guid; -typedef CSSM_GUID_PTR = ffi.Pointer; -typedef CSSM_HANDLE = CSSM_INTPTR; -typedef CSSM_HANDLE_PTR = ffi.Pointer; -typedef CSSM_HEADERVERSION = uint32; - -const int CSSM_HINT_ADDRESS_APP = 1; - -const int CSSM_HINT_ADDRESS_SP = 2; - -const int CSSM_HINT_NONE = 0; - -typedef CSSM_INTPTR = ffi.IntPtr; -typedef DartCSSM_INTPTR = int; - -const int CSSM_INVALID_HANDLE = 0; - -typedef CSSM_KEA_DERIVE_PARAMS = cssm_kea_derive_params; -typedef CSSM_KEA_DERIVE_PARAMS_PTR = ffi.Pointer; -typedef CSSM_KEY = cssm_key; - -const int CSSM_KEYATTR_ALWAYS_SENSITIVE = 16; - -const int CSSM_KEYATTR_EXTRACTABLE = 32; - -typedef CSSM_KEYATTR_FLAGS = uint32; - -const int CSSM_KEYATTR_MODIFIABLE = 4; - -const int CSSM_KEYATTR_NEVER_EXTRACTABLE = 64; - -const int CSSM_KEYATTR_PARTIAL = 65536; - -const int CSSM_KEYATTR_PERMANENT = 1; - -const int CSSM_KEYATTR_PRIVATE = 2; - -const int CSSM_KEYATTR_PUBLIC_KEY_ENCRYPT = 131072; - -const int CSSM_KEYATTR_RETURN_DATA = 268435456; - -const int CSSM_KEYATTR_RETURN_DEFAULT = 0; - -const int CSSM_KEYATTR_RETURN_NONE = 1073741824; - -const int CSSM_KEYATTR_RETURN_REF = 536870912; - -const int CSSM_KEYATTR_SENSITIVE = 8; - -typedef CSSM_KEYBLOB_FORMAT = uint32; - -const int CSSM_KEYBLOB_OTHER = -1; - -const int CSSM_KEYBLOB_RAW = 0; - -const int CSSM_KEYBLOB_RAW_FORMAT_BSAFE = 6; - -const int CSSM_KEYBLOB_RAW_FORMAT_CCA = 9; - -const int CSSM_KEYBLOB_RAW_FORMAT_FIPS186 = 5; - -const int CSSM_KEYBLOB_RAW_FORMAT_MSCAPI = 3; - -const int CSSM_KEYBLOB_RAW_FORMAT_NONE = 0; - -const int CSSM_KEYBLOB_RAW_FORMAT_OCTET_STRING = 12; - -const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH = -2147483647; - -const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSH2 = -2147483645; - -const int CSSM_KEYBLOB_RAW_FORMAT_OPENSSL = -2147483646; - -const int CSSM_KEYBLOB_RAW_FORMAT_OTHER = -1; - -const int CSSM_KEYBLOB_RAW_FORMAT_PGP = 4; - -const int CSSM_KEYBLOB_RAW_FORMAT_PKCS1 = 1; - -const int CSSM_KEYBLOB_RAW_FORMAT_PKCS3 = 2; - -const int CSSM_KEYBLOB_RAW_FORMAT_PKCS8 = 10; - -const int CSSM_KEYBLOB_RAW_FORMAT_SPKI = 11; - -const int CSSM_KEYBLOB_RAW_FORMAT_VENDOR_DEFINED = -2147483648; - -const int CSSM_KEYBLOB_RAW_FORMAT_X509 = -2147483648; - -const int CSSM_KEYBLOB_REFERENCE = 2; - -const int CSSM_KEYBLOB_REF_FORMAT_INTEGER = 0; - -const int CSSM_KEYBLOB_REF_FORMAT_OTHER = -1; - -const int CSSM_KEYBLOB_REF_FORMAT_SPKI = 2; - -const int CSSM_KEYBLOB_REF_FORMAT_STRING = 1; - -typedef CSSM_KEYBLOB_TYPE = uint32; - -const int CSSM_KEYBLOB_WRAPPED = 3; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_APPLE_CUSTOM = 100; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_MSCAPI = 3; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_NONE = 0; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSH1 = 102; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_OPENSSL = 101; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_OTHER = -1; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS7 = 2; - -const int CSSM_KEYBLOB_WRAPPED_FORMAT_PKCS8 = 1; - -typedef CSSM_KEYCLASS = uint32; - -const int CSSM_KEYCLASS_OTHER = -1; - -const int CSSM_KEYCLASS_PRIVATE_KEY = 1; - -const int CSSM_KEYCLASS_PUBLIC_KEY = 0; - -const int CSSM_KEYCLASS_SECRET_PART = 3; - -const int CSSM_KEYCLASS_SESSION_KEY = 2; - -typedef CSSM_KEYHEADER = cssm_keyheader; -typedef CSSM_KEYHEADER_PTR = ffi.Pointer; - -const int CSSM_KEYHEADER_VERSION = 2; - -typedef CSSM_KEYUSE = uint32; - -const int CSSM_KEYUSE_ANY = -2147483648; - -const int CSSM_KEYUSE_DECRYPT = 2; - -const int CSSM_KEYUSE_DERIVE = 256; - -const int CSSM_KEYUSE_ENCRYPT = 1; - -const int CSSM_KEYUSE_SIGN = 4; - -const int CSSM_KEYUSE_SIGN_RECOVER = 16; - -const int CSSM_KEYUSE_UNWRAP = 128; - -const int CSSM_KEYUSE_VERIFY = 8; - -const int CSSM_KEYUSE_VERIFY_RECOVER = 32; - -const int CSSM_KEYUSE_WRAP = 64; - -typedef CSSM_KEY_HIERARCHY = CSSM_BITMASK; - -const int CSSM_KEY_HIERARCHY_EXPORT = 2; - -const int CSSM_KEY_HIERARCHY_INTEG = 1; - -const int CSSM_KEY_HIERARCHY_NONE = 0; - -typedef CSSM_KEY_PTR = ffi.Pointer; -typedef CSSM_KEY_SIZE = cssm_key_size; -typedef CSSM_KEY_SIZE_PTR = ffi.Pointer; -typedef CSSM_KEY_TYPE = CSSM_ALGORITHMS; -typedef CSSM_KRSP_HANDLE = uint32; -typedef CSSM_KRSUBSERVICE = cssm_krsubservice; -typedef CSSM_KRSUBSERVICE_PTR = ffi.Pointer; - -const int CSSM_KR_BASE_ERROR = -2147407872; - -typedef CSSM_KR_NAME = cssm_kr_name; -typedef CSSM_KR_POLICY_FLAGS = uint32; -typedef CSSM_KR_POLICY_INFO = cssm_kr_policy_info; -typedef CSSM_KR_POLICY_INFO_PTR = ffi.Pointer; -typedef CSSM_KR_POLICY_LIST_ITEM = cssm_kr_policy_list_item; -typedef CSSM_KR_POLICY_LIST_ITEM_PTR = ffi.Pointer; -typedef CSSM_KR_POLICY_TYPE = uint32; - -const int CSSM_KR_PRIVATE_ERROR = -2147406848; - -typedef CSSM_KR_PROFILE = cssm_kr_profile; -typedef CSSM_KR_PROFILE_PTR = ffi.Pointer; -typedef CSSM_KR_WRAPPEDPRODUCT_INFO = cssm_kr_wrappedproductinfo; -typedef CSSM_KR_WRAPPEDPRODUCT_INFO_PTR = - ffi.Pointer; -typedef CSSM_LIST = cssm_list; -typedef CSSM_LIST_ELEMENT = cssm_list_element; - -const int CSSM_LIST_ELEMENT_DATUM = 0; - -typedef CSSM_LIST_ELEMENT_PTR = ffi.Pointer; - -const int CSSM_LIST_ELEMENT_SUBLIST = 1; - -typedef CSSM_LIST_ELEMENT_TYPE = uint32; -typedef CSSM_LIST_ELEMENT_TYPE_PTR = ffi.Pointer; - -const int CSSM_LIST_ELEMENT_WORDID = 2; - -typedef CSSM_LIST_PTR = ffi.Pointer; -typedef CSSM_LIST_TYPE = uint32; - -const int CSSM_LIST_TYPE_CUSTOM = 1; - -typedef CSSM_LIST_TYPE_PTR = ffi.Pointer; - -const int CSSM_LIST_TYPE_SEXPR = 2; - -const int CSSM_LIST_TYPE_UNKNOWN = 0; - -typedef CSSM_LONG_HANDLE = uint64; -typedef CSSM_LONG_HANDLE_PTR = ffi.Pointer; -typedef CSSM_MALLOC = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CSSM_SIZE size, - ffi.Pointer allocref, - ) - > - >; -typedef CSSM_MANAGER_EVENT_NOTIFICATION = cssm_manager_event_notification; -typedef CSSM_MANAGER_EVENT_NOTIFICATION_PTR = - ffi.Pointer; -typedef CSSM_MANAGER_EVENT_TYPES = uint32; -typedef CSSM_MANAGER_REGISTRATION_INFO = cssm_manager_registration_info; -typedef CSSM_MANAGER_REGISTRATION_INFO_PTR = - ffi.Pointer; - -const int CSSM_MDS_BASE_ERROR = -2147414016; - -const int CSSM_MDS_PRIVATE_ERROR = -2147412992; - -typedef CSSM_MEMORY_FUNCS = cssm_memory_funcs; -typedef CSSM_MEMORY_FUNCS_PTR = ffi.Pointer; -typedef CSSM_MODULE_EVENT = uint32; -typedef CSSM_MODULE_EVENT_PTR = ffi.Pointer; -typedef CSSM_MODULE_FUNCS = cssm_module_funcs; -typedef CSSM_MODULE_FUNCS_PTR = ffi.Pointer; -typedef CSSM_MODULE_HANDLE = CSSM_HANDLE; -typedef CSSM_MODULE_HANDLE_PTR = ffi.Pointer; - -const int CSSM_MODULE_STRING_SIZE = 64; - -typedef CSSM_NAME_LIST = cssm_name_list; -typedef CSSM_NAME_LIST_PTR = ffi.Pointer; -typedef CSSM_NET_ADDRESS = cssm_net_address; -typedef CSSM_NET_ADDRESS_PTR = ffi.Pointer; -typedef CSSM_NET_ADDRESS_TYPE = uint32; -typedef CSSM_NET_PROTOCOL = uint32; - -const int CSSM_NET_PROTO_CMP = 10; - -const int CSSM_NET_PROTO_CMPS = 11; - -const int CSSM_NET_PROTO_CUSTOM = 1; - -const int CSSM_NET_PROTO_FTP = 7; - -const int CSSM_NET_PROTO_FTPS = 8; - -const int CSSM_NET_PROTO_LDAP = 3; - -const int CSSM_NET_PROTO_LDAPNS = 5; - -const int CSSM_NET_PROTO_LDAPS = 4; - -const int CSSM_NET_PROTO_NONE = 0; - -const int CSSM_NET_PROTO_OCSP = 9; - -const int CSSM_NET_PROTO_UNSPECIFIED = 2; - -const int CSSM_NET_PROTO_X500DAP = 6; - -const int CSSM_NOTIFY_FAULT = 3; - -const int CSSM_NOTIFY_INSERT = 1; - -const int CSSM_NOTIFY_REMOVE = 2; - -typedef CSSM_OID_PTR = ffi.Pointer; - -const int CSSM_OK = 0; - -typedef CSSM_PADDING = uint32; - -const int CSSM_PADDING_ALTERNATE = 4; - -const int CSSM_PADDING_APPLE_SSLv2 = -2147483648; - -const int CSSM_PADDING_CIPHERSTEALING = 8; - -const int CSSM_PADDING_CUSTOM = 1; - -const int CSSM_PADDING_FF = 5; - -const int CSSM_PADDING_NONE = 0; - -const int CSSM_PADDING_ONE = 3; - -const int CSSM_PADDING_PKCS1 = 10; - -const int CSSM_PADDING_PKCS5 = 6; - -const int CSSM_PADDING_PKCS7 = 7; - -const int CSSM_PADDING_RANDOM = 9; - -const int CSSM_PADDING_SIGRAW = 11; - -const int CSSM_PADDING_VENDOR_DEFINED = -2147483648; - -const int CSSM_PADDING_ZERO = 2; - -typedef CSSM_PARSED_CERT = cssm_parsed_cert; -typedef CSSM_PARSED_CERT_PTR = ffi.Pointer; -typedef CSSM_PARSED_CRL = cssm_parsed_crl; -typedef CSSM_PARSED_CRL_PTR = ffi.Pointer; -typedef CSSM_PKCS1_OAEP_PARAMS = cssm_pkcs1_oaep_params; -typedef CSSM_PKCS1_OAEP_PARAMS_PTR = ffi.Pointer; -typedef CSSM_PKCS5_PBKDF1_PARAMS = cssm_pkcs5_pbkdf1_params; -typedef CSSM_PKCS5_PBKDF1_PARAMS_PTR = ffi.Pointer; -typedef CSSM_PKCS5_PBKDF2_PARAMS = cssm_pkcs5_pbkdf2_params; -typedef CSSM_PKCS5_PBKDF2_PARAMS_PTR = ffi.Pointer; -typedef CSSM_PKCS5_PBKDF2_PRF = uint32; - -const int CSSM_PKCS5_PBKDF2_PRF_HMAC_SHA1 = 0; - -typedef CSSM_PKCS_OAEP_MGF = uint32; - -const int CSSM_PKCS_OAEP_MGF1_MD5 = 2; - -const int CSSM_PKCS_OAEP_MGF1_SHA1 = 1; - -const int CSSM_PKCS_OAEP_MGF_NONE = 0; - -typedef CSSM_PKCS_OAEP_PSOURCE = uint32; - -const int CSSM_PKCS_OAEP_PSOURCE_NONE = 0; - -const int CSSM_PKCS_OAEP_PSOURCE_Pspecified = 1; - -typedef CSSM_PRIVILEGE = uint64; -typedef CSSM_PRIVILEGE_SCOPE = uint32; - -const int CSSM_PRIVILEGE_SCOPE_NONE = 0; - -const int CSSM_PRIVILEGE_SCOPE_PROCESS = 1; - -const int CSSM_PRIVILEGE_SCOPE_THREAD = 2; - -typedef CSSM_PROC_ADDR = ffi.Pointer>; -typedef CSSM_PROC_ADDR_PTR = ffi.Pointer; - -const int CSSM_PVC_APP = 1; - -typedef CSSM_PVC_MODE = CSSM_BITMASK; - -const int CSSM_PVC_NONE = 0; - -const int CSSM_PVC_SP = 2; - -typedef CSSM_QUERY = cssm_query; -typedef CSSM_QUERY_FLAGS = uint32; -typedef CSSM_QUERY_LIMITS = cssm_query_limits; -typedef CSSM_QUERY_LIMITS_PTR = ffi.Pointer; -typedef CSSM_QUERY_PTR = ffi.Pointer; - -const int CSSM_QUERY_RETURN_DATA = 1; - -const int CSSM_QUERY_SIZELIMIT_NONE = 0; - -typedef CSSM_QUERY_SIZE_DATA = cssm_query_size_data; -typedef CSSM_QUERY_SIZE_DATA_PTR = ffi.Pointer; - -const int CSSM_QUERY_TIMELIMIT_NONE = 0; - -typedef CSSM_RANGE = cssm_range; -typedef CSSM_RANGE_PTR = ffi.Pointer; -typedef CSSM_REALLOC = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer memblock, - CSSM_SIZE size, - ffi.Pointer allocref, - ) - > - >; -typedef CSSM_RESOURCE_CONTROL_CONTEXT = cssm_resource_control_context; -typedef CSSM_RESOURCE_CONTROL_CONTEXT_PTR = - ffi.Pointer; -typedef CSSM_RETURN = sint32; -typedef CSSM_SAMPLE = cssm_sample; -typedef CSSM_SAMPLEGROUP = cssm_samplegroup; -typedef CSSM_SAMPLEGROUP_PTR = ffi.Pointer; -typedef CSSM_SAMPLE_PTR = ffi.Pointer; -typedef CSSM_SAMPLE_TYPE = CSSM_WORDID_TYPE; - -const int CSSM_SAMPLE_TYPE_ASYMMETRIC_KEY = 65547; - -const int CSSM_SAMPLE_TYPE_BIOMETRIC = 8; - -const int CSSM_SAMPLE_TYPE_COMMENT = 12; - -const int CSSM_SAMPLE_TYPE_HASHED_PASSWORD = 43; - -const int CSSM_SAMPLE_TYPE_KEYBAG_KEY = 65549; - -const int CSSM_SAMPLE_TYPE_KEYCHAIN_CHANGE_LOCK = 65538; - -const int CSSM_SAMPLE_TYPE_KEYCHAIN_LOCK = 65537; - -const int CSSM_SAMPLE_TYPE_KEYCHAIN_PROMPT = 65536; - -const int CSSM_SAMPLE_TYPE_PASSWORD = 79; - -const int CSSM_SAMPLE_TYPE_PREAUTH = 65545; - -const int CSSM_SAMPLE_TYPE_PROCESS = 65539; - -const int CSSM_SAMPLE_TYPE_PROMPTED_BIOMETRIC = 83; - -const int CSSM_SAMPLE_TYPE_PROMPTED_PASSWORD = 84; - -const int CSSM_SAMPLE_TYPE_PROTECTED_BIOMETRIC = 86; - -const int CSSM_SAMPLE_TYPE_PROTECTED_PASSWORD = 87; - -const int CSSM_SAMPLE_TYPE_RETRY_ID = 85; - -const int CSSM_SAMPLE_TYPE_SIGNED_NONCE = 117; - -const int CSSM_SAMPLE_TYPE_SIGNED_SECRET = 118; - -const int CSSM_SAMPLE_TYPE_SYMMETRIC_KEY = 65541; - -const int CSSM_SAMPLE_TYPE_THRESHOLD = 123; - -typedef CSSM_SC_FLAGS = uint32; -typedef CSSM_SELECTION_PREDICATE = cssm_selection_predicate; -typedef CSSM_SELECTION_PREDICATE_PTR = ffi.Pointer; - -const int CSSM_SERVICE_AC = 32; - -const int CSSM_SERVICE_CL = 8; - -const int CSSM_SERVICE_CSP = 2; - -const int CSSM_SERVICE_CSSM = 1; - -const int CSSM_SERVICE_DL = 4; - -const int CSSM_SERVICE_KR = 64; - -typedef CSSM_SERVICE_MASK = uint32; - -const int CSSM_SERVICE_TP = 16; - -typedef CSSM_SERVICE_TYPE = CSSM_SERVICE_MASK; -typedef CSSM_SIZE = ffi.Size; -typedef DartCSSM_SIZE = int; -typedef CSSM_SPI_AC_FUNCS = cssm_spi_ac_funcs; -typedef CSSM_SPI_AC_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SPI_CL_FUNCS = cssm_spi_cl_funcs; -typedef CSSM_SPI_CL_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SPI_CSP_FUNCS = cssm_spi_csp_funcs; -typedef CSSM_SPI_CSP_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SPI_DL_FUNCS = cssm_spi_dl_funcs; -typedef CSSM_SPI_DL_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SPI_KR_FUNCS = cssm_spi_kr_funcs; -typedef CSSM_SPI_KR_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SPI_ModuleEventHandler = - ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - uint32 SubserviceId, - CSSM_SERVICE_TYPE ServiceType, - CSSM_MODULE_EVENT EventType, - ) - > - >; -typedef CSSM_SPI_TP_FUNCS = cssm_spi_tp_funcs; -typedef CSSM_SPI_TP_FUNCS_PTR = ffi.Pointer; -typedef CSSM_STATE_FUNCS = cssm_state_funcs; -typedef CSSM_STATE_FUNCS_PTR = ffi.Pointer; -typedef CSSM_SUBSERVICE_UID = cssm_subservice_uid; -typedef CSSM_SUBSERVICE_UID_PTR = ffi.Pointer; -typedef CSSM_TIMESTRING = ffi.Pointer; -typedef CSSM_TP_ACTION = uint32; - -const int CSSM_TP_ACTION_ALLOW_EXPIRED = 1; - -const int CSSM_TP_ACTION_ALLOW_EXPIRED_ROOT = 8; - -const int CSSM_TP_ACTION_CRL_SUFFICIENT = 4; - -const int CSSM_TP_ACTION_DEFAULT = 0; - -const int CSSM_TP_ACTION_FETCH_CERT_FROM_NET = 4; - -const int CSSM_TP_ACTION_FETCH_CRL_FROM_NET = 2; - -const int CSSM_TP_ACTION_IMPLICIT_ANCHORS = 64; - -const int CSSM_TP_ACTION_LEAF_IS_CA = 2; - -const int CSSM_TP_ACTION_REQUIRE_CRL_IF_PRESENT = 8; - -const int CSSM_TP_ACTION_REQUIRE_CRL_PER_CERT = 1; - -const int CSSM_TP_ACTION_REQUIRE_REV_PER_CERT = 16; - -const int CSSM_TP_ACTION_TRUST_SETTINGS = 32; - -typedef CSSM_TP_APPLE_CERT_STATUS = uint32; - -final class CSSM_TP_APPLE_EVIDENCE_HEADER extends ffi.Struct { - @uint32() - external int Version; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Version, - }) => $allocator()..ref.Version = Version; -} - -@Deprecated('Deprecated') -final class CSSM_TP_APPLE_EVIDENCE_INFO extends ffi.Struct { - @CSSM_TP_APPLE_CERT_STATUS() - external int StatusBits; - - @uint32() - external int NumStatusCodes; - - external ffi.Pointer StatusCodes; - - @uint32() - external int Index; - - external CSSM_DL_DB_HANDLE DlDbHandle; - - external CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord; -} - -typedef CSSM_TP_AUTHORITY_ID = cssm_tp_authority_id; -typedef CSSM_TP_AUTHORITY_ID_PTR = ffi.Pointer; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTISSUE = 1; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTNOTARIZE = 6; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTRESUME = 4; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTREVOKE = 2; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTSUSPEND = 3; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTUSERECOVER = 7; - -const int CSSM_TP_AUTHORITY_REQUEST_CERTVERIFY = 5; - -const int CSSM_TP_AUTHORITY_REQUEST_CRLISSUE = 256; - -typedef CSSM_TP_AUTHORITY_REQUEST_TYPE = uint32; -typedef CSSM_TP_AUTHORITY_REQUEST_TYPE_PTR = ffi.Pointer; - -const int CSSM_TP_BASE_ERROR = -2147409920; - -const int CSSM_TP_BASE_TP_ERROR = -2147409664; - -typedef CSSM_TP_CALLERAUTH_CONTEXT = cssm_tp_callerauth_context; -typedef CSSM_TP_CALLERAUTH_CONTEXT_PTR = - ffi.Pointer; -typedef CSSM_TP_CERTCHANGE_ACTION = uint32; - -const int CSSM_TP_CERTCHANGE_HOLD = 2; - -typedef CSSM_TP_CERTCHANGE_INPUT = cssm_tp_certchange_input; -typedef CSSM_TP_CERTCHANGE_INPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTCHANGE_NONE = 0; - -const int CSSM_TP_CERTCHANGE_NOT_AUTHORIZED = 5; - -const int CSSM_TP_CERTCHANGE_OK = 1; - -const int CSSM_TP_CERTCHANGE_OKWITHNEWTIME = 2; - -typedef CSSM_TP_CERTCHANGE_OUTPUT = cssm_tp_certchange_output; -typedef CSSM_TP_CERTCHANGE_OUTPUT_PTR = ffi.Pointer; -typedef CSSM_TP_CERTCHANGE_REASON = uint32; - -const int CSSM_TP_CERTCHANGE_REASON_AFFILIATIONCHANGE = 4; - -const int CSSM_TP_CERTCHANGE_REASON_CACOMPROMISE = 2; - -const int CSSM_TP_CERTCHANGE_REASON_CEASEOPERATION = 3; - -const int CSSM_TP_CERTCHANGE_REASON_HOLDRELEASE = 7; - -const int CSSM_TP_CERTCHANGE_REASON_KEYCOMPROMISE = 1; - -const int CSSM_TP_CERTCHANGE_REASON_SUPERCEDED = 5; - -const int CSSM_TP_CERTCHANGE_REASON_SUSPECTEDCOMPROMISE = 6; - -const int CSSM_TP_CERTCHANGE_REASON_UNKNOWN = 0; - -const int CSSM_TP_CERTCHANGE_REJECTED = 4; - -const int CSSM_TP_CERTCHANGE_RELEASE = 3; - -const int CSSM_TP_CERTCHANGE_REVOKE = 1; - -typedef CSSM_TP_CERTCHANGE_STATUS = uint32; - -const int CSSM_TP_CERTCHANGE_STATUS_UNKNOWN = 0; - -const int CSSM_TP_CERTCHANGE_WRONGCA = 3; - -typedef CSSM_TP_CERTISSUE_INPUT = cssm_tp_certissue_input; -typedef CSSM_TP_CERTISSUE_INPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTISSUE_NOT_AUTHORIZED = 5; - -const int CSSM_TP_CERTISSUE_OK = 1; - -const int CSSM_TP_CERTISSUE_OKWITHCERTMODS = 2; - -const int CSSM_TP_CERTISSUE_OKWITHSERVICEMODS = 3; - -typedef CSSM_TP_CERTISSUE_OUTPUT = cssm_tp_certissue_output; -typedef CSSM_TP_CERTISSUE_OUTPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTISSUE_REJECTED = 4; - -typedef CSSM_TP_CERTISSUE_STATUS = uint32; - -const int CSSM_TP_CERTISSUE_STATUS_UNKNOWN = 0; - -const int CSSM_TP_CERTISSUE_WILL_BE_REVOKED = 6; - -typedef CSSM_TP_CERTNOTARIZE_INPUT = cssm_tp_certnotarize_input; -typedef CSSM_TP_CERTNOTARIZE_INPUT_PTR = - ffi.Pointer; - -const int CSSM_TP_CERTNOTARIZE_NOT_AUTHORIZED = 5; - -const int CSSM_TP_CERTNOTARIZE_OK = 1; - -const int CSSM_TP_CERTNOTARIZE_OKWITHOUTFIELDS = 2; - -const int CSSM_TP_CERTNOTARIZE_OKWITHSERVICEMODS = 3; - -typedef CSSM_TP_CERTNOTARIZE_OUTPUT = cssm_tp_certnotarize_output; -typedef CSSM_TP_CERTNOTARIZE_OUTPUT_PTR = - ffi.Pointer; - -const int CSSM_TP_CERTNOTARIZE_REJECTED = 4; - -typedef CSSM_TP_CERTNOTARIZE_STATUS = uint32; - -const int CSSM_TP_CERTNOTARIZE_STATUS_UNKNOWN = 0; - -typedef CSSM_TP_CERTRECLAIM_INPUT = cssm_tp_certreclaim_input; -typedef CSSM_TP_CERTRECLAIM_INPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTRECLAIM_NOMATCH = 2; - -const int CSSM_TP_CERTRECLAIM_NOT_AUTHORIZED = 4; - -const int CSSM_TP_CERTRECLAIM_OK = 1; - -typedef CSSM_TP_CERTRECLAIM_OUTPUT = cssm_tp_certreclaim_output; -typedef CSSM_TP_CERTRECLAIM_OUTPUT_PTR = - ffi.Pointer; - -const int CSSM_TP_CERTRECLAIM_REJECTED = 3; - -typedef CSSM_TP_CERTRECLAIM_STATUS = uint32; - -const int CSSM_TP_CERTRECLAIM_STATUS_UNKNOWN = 0; - -const int CSSM_TP_CERTVERIFY_EXPIRED = 5; - -typedef CSSM_TP_CERTVERIFY_INPUT = cssm_tp_certverify_input; -typedef CSSM_TP_CERTVERIFY_INPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTVERIFY_INVALID = 2; - -const int CSSM_TP_CERTVERIFY_INVALID_AUTHORITY = 7; - -const int CSSM_TP_CERTVERIFY_INVALID_BASIC_CONSTRAINTS = 13; - -const int CSSM_TP_CERTVERIFY_INVALID_CERTGROUP = 10; - -const int CSSM_TP_CERTVERIFY_INVALID_CERT_VALUE = 9; - -const int CSSM_TP_CERTVERIFY_INVALID_CRL_DIST_PT = 14; - -const int CSSM_TP_CERTVERIFY_INVALID_NAME_TREE = 15; - -const int CSSM_TP_CERTVERIFY_INVALID_POLICY = 11; - -const int CSSM_TP_CERTVERIFY_INVALID_POLICY_IDS = 12; - -const int CSSM_TP_CERTVERIFY_INVALID_SIGNATURE = 8; - -const int CSSM_TP_CERTVERIFY_NOT_VALID_YET = 6; - -typedef CSSM_TP_CERTVERIFY_OUTPUT = cssm_tp_certverify_output; -typedef CSSM_TP_CERTVERIFY_OUTPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CERTVERIFY_REVOKED = 3; - -typedef CSSM_TP_CERTVERIFY_STATUS = uint32; - -const int CSSM_TP_CERTVERIFY_SUSPENDED = 4; - -const int CSSM_TP_CERTVERIFY_UNKNOWN = 0; - -const int CSSM_TP_CERTVERIFY_UNKNOWN_CRITICAL_EXT = 16; - -const int CSSM_TP_CERTVERIFY_VALID = 1; - -const int CSSM_TP_CERT_DIR_UPDATE = 8; - -const int CSSM_TP_CERT_NOTIFY_RENEW = 4; - -const int CSSM_TP_CERT_PUBLISH = 2; - -const int CSSM_TP_CONFIRM_ACCEPT = 1; - -const int CSSM_TP_CONFIRM_REJECT = 2; - -typedef CSSM_TP_CONFIRM_RESPONSE = cssm_tp_confirm_response; -typedef CSSM_TP_CONFIRM_RESPONSE_PTR = ffi.Pointer; -typedef CSSM_TP_CONFIRM_STATUS = uint32; -typedef CSSM_TP_CONFIRM_STATUS_PTR = ffi.Pointer; - -const int CSSM_TP_CONFIRM_STATUS_UNKNOWN = 0; - -typedef CSSM_TP_CRLISSUE_INPUT = cssm_tp_crlissue_input; -typedef CSSM_TP_CRLISSUE_INPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CRLISSUE_INVALID_DOMAIN = 3; - -const int CSSM_TP_CRLISSUE_NOT_AUTHORIZED = 6; - -const int CSSM_TP_CRLISSUE_NOT_CURRENT = 2; - -const int CSSM_TP_CRLISSUE_OK = 1; - -typedef CSSM_TP_CRLISSUE_OUTPUT = cssm_tp_crlissue_output; -typedef CSSM_TP_CRLISSUE_OUTPUT_PTR = ffi.Pointer; - -const int CSSM_TP_CRLISSUE_REJECTED = 5; - -typedef CSSM_TP_CRLISSUE_STATUS = uint32; - -const int CSSM_TP_CRLISSUE_STATUS_UNKNOWN = 0; - -const int CSSM_TP_CRLISSUE_UNKNOWN_IDENTIFIER = 4; - -const int CSSM_TP_CRL_DISTRIBUTE = 16; - -typedef CSSM_TP_FORM_TYPE = uint32; - -const int CSSM_TP_FORM_TYPE_GENERIC = 0; - -const int CSSM_TP_FORM_TYPE_REGISTRATION = 1; - -typedef CSSM_TP_HANDLE = CSSM_MODULE_HANDLE; - -const int CSSM_TP_KEY_ARCHIVE = 1; - -typedef CSSM_TP_POLICYINFO = cssm_tp_policyinfo; -typedef CSSM_TP_POLICYINFO_PTR = ffi.Pointer; - -const int CSSM_TP_PRIVATE_ERROR = -2147408896; - -typedef CSSM_TP_REQUEST_SET = cssm_tp_request_set; -typedef CSSM_TP_REQUEST_SET_PTR = ffi.Pointer; -typedef CSSM_TP_RESULT_SET = cssm_tp_result_set; -typedef CSSM_TP_RESULT_SET_PTR = ffi.Pointer; -typedef CSSM_TP_SERVICES = uint32; -typedef CSSM_TP_STOP_ON = uint32; - -const int CSSM_TP_STOP_ON_FIRST_FAIL = 3; - -const int CSSM_TP_STOP_ON_FIRST_PASS = 2; - -const int CSSM_TP_STOP_ON_NONE = 1; - -const int CSSM_TP_STOP_ON_POLICY = 0; - -typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACK = - ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE ModuleHandle, - ffi.Pointer CallerCtx, - CSSM_DATA_PTR VerifiedCert, - ) - > - >; -typedef CSSM_TP_VERIFY_CONTEXT = cssm_tp_verify_context; -typedef CSSM_TP_VERIFY_CONTEXT_PTR = ffi.Pointer; -typedef CSSM_TP_VERIFY_CONTEXT_RESULT = cssm_tp_verify_context_result; -typedef CSSM_TP_VERIFY_CONTEXT_RESULT_PTR = - ffi.Pointer; - -const int CSSM_TRUE = 1; - -@Deprecated('Deprecated') -final class CSSM_TUPLE extends ffi.Struct { - external CSSM_LIST Issuer; - - external CSSM_LIST Subject; - - @CSSM_BOOL() - external int Delegate; - - external CSSM_LIST AuthorizationTag; - - external CSSM_LIST ValidityPeriod; -} - -typedef CSSM_TUPLEGROUP = cssm_tuplegroup; -typedef CSSM_TUPLEGROUP_PTR = ffi.Pointer; -typedef CSSM_TUPLE_PTR = ffi.Pointer; -typedef CSSM_UPCALLS = cssm_upcalls; -typedef CSSM_UPCALLS_CALLOC = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CSSM_HANDLE AddInHandle, - ffi.Size num, - ffi.Size size, - ) - > - >; -typedef CSSM_UPCALLS_FREE = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CSSM_HANDLE AddInHandle, - ffi.Pointer memblock, - ) - > - >; -typedef CSSM_UPCALLS_MALLOC = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(CSSM_HANDLE AddInHandle, ffi.Size size) - > - >; -typedef CSSM_UPCALLS_PTR = ffi.Pointer; -typedef CSSM_UPCALLS_REALLOC = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CSSM_HANDLE AddInHandle, - ffi.Pointer memblock, - ffi.Size size, - ) - > - >; - -const int CSSM_USEE_AUTHENTICATION = 6; - -const int CSSM_USEE_DOMESTIC = 1; - -const int CSSM_USEE_FINANCIAL = 2; - -const int CSSM_USEE_INSURANCE = 9; - -const int CSSM_USEE_KEYEXCH = 7; - -const int CSSM_USEE_KRENT = 4; - -const int CSSM_USEE_KRLE = 3; - -const int CSSM_USEE_LAST = 255; - -const int CSSM_USEE_MEDICAL = 8; - -const int CSSM_USEE_NONE = 0; - -const int CSSM_USEE_SSL = 5; - -typedef CSSM_USEE_TAG = CSSM_PRIVILEGE; - -const int CSSM_USEE_WEAK = 10; - -const int CSSM_VALUE_NOT_AVAILABLE = -1; - -typedef CSSM_VERSION = cssm_version; -typedef CSSM_VERSION_PTR = ffi.Pointer; - -const int CSSM_WORDID_A = 2; - -const int CSSM_WORDID_ACL = 3; - -const int CSSM_WORDID_ALPHA = 4; - -const int CSSM_WORDID_ASYMMETRIC_KEY = 65547; - -const int CSSM_WORDID_B = 5; - -const int CSSM_WORDID_BER = 6; - -const int CSSM_WORDID_BINARY = 7; - -const int CSSM_WORDID_BIOMETRIC = 8; - -const int CSSM_WORDID_C = 9; - -const int CSSM_WORDID_CANCELED = 10; - -const int CSSM_WORDID_CERT = 11; - -const int CSSM_WORDID_COMMENT = 12; - -const int CSSM_WORDID_CRL = 13; - -const int CSSM_WORDID_CUSTOM = 14; - -const int CSSM_WORDID_D = 15; - -const int CSSM_WORDID_DATE = 16; - -const int CSSM_WORDID_DBS_CREATE = 22; - -const int CSSM_WORDID_DBS_DELETE = 23; - -const int CSSM_WORDID_DB_DELETE = 17; - -const int CSSM_WORDID_DB_EXEC_STORED_QUERY = 18; - -const int CSSM_WORDID_DB_INSERT = 19; - -const int CSSM_WORDID_DB_MODIFY = 20; - -const int CSSM_WORDID_DB_READ = 21; - -const int CSSM_WORDID_DECRYPT = 24; - -const int CSSM_WORDID_DELETE = 25; - -const int CSSM_WORDID_DELTA_CRL = 26; - -const int CSSM_WORDID_DER = 27; - -const int CSSM_WORDID_DERIVE = 28; - -const int CSSM_WORDID_DISPLAY = 29; - -const int CSSM_WORDID_DO = 30; - -const int CSSM_WORDID_DSA = 31; - -const int CSSM_WORDID_DSA_SHA1 = 32; - -const int CSSM_WORDID_E = 33; - -const int CSSM_WORDID_ELGAMAL = 34; - -const int CSSM_WORDID_ENCRYPT = 35; - -const int CSSM_WORDID_ENTRY = 36; - -const int CSSM_WORDID_EXPORT_CLEAR = 37; - -const int CSSM_WORDID_EXPORT_WRAPPED = 38; - -const int CSSM_WORDID_G = 39; - -const int CSSM_WORDID_GE = 40; - -const int CSSM_WORDID_GENKEY = 41; - -const int CSSM_WORDID_HASH = 42; - -const int CSSM_WORDID_HASHED_PASSWORD = 43; - -const int CSSM_WORDID_HASHED_SUBJECT = 44; - -const int CSSM_WORDID_HAVAL = 45; - -const int CSSM_WORDID_IBCHASH = 46; - -const int CSSM_WORDID_IMPORT_CLEAR = 47; - -const int CSSM_WORDID_IMPORT_WRAPPED = 48; - -const int CSSM_WORDID_INTEL = 49; - -const int CSSM_WORDID_ISSUER = 50; - -const int CSSM_WORDID_ISSUER_INFO = 51; - -const int CSSM_WORDID_KEA = 53; - -const int CSSM_WORDID_KEY = 65543; - -const int CSSM_WORDID_KEYBAG_KEY = 65549; - -const int CSSM_WORDID_KEYCHAIN_CHANGE_LOCK = 65538; - -const int CSSM_WORDID_KEYCHAIN_LOCK = 65537; - -const int CSSM_WORDID_KEYCHAIN_PROMPT = 65536; - -const int CSSM_WORDID_KEYHOLDER = 54; - -const int CSSM_WORDID_K_OF_N = 52; - -const int CSSM_WORDID_L = 55; - -const int CSSM_WORDID_LE = 56; - -const int CSSM_WORDID_LOGIN = 57; - -const int CSSM_WORDID_LOGIN_NAME = 58; - -const int CSSM_WORDID_MAC = 59; - -const int CSSM_WORDID_MD2 = 60; - -const int CSSM_WORDID_MD2WITHRSA = 61; - -const int CSSM_WORDID_MD4 = 62; - -const int CSSM_WORDID_MD5 = 63; - -const int CSSM_WORDID_MD5WITHRSA = 64; - -const int CSSM_WORDID_N = 65; - -const int CSSM_WORDID_NAME = 66; - -const int CSSM_WORDID_NDR = 67; - -const int CSSM_WORDID_NHASH = 68; - -const int CSSM_WORDID_NOT_AFTER = 69; - -const int CSSM_WORDID_NOT_BEFORE = 70; - -const int CSSM_WORDID_NULL = 71; - -const int CSSM_WORDID_NUMERIC = 72; - -const int CSSM_WORDID_OBJECT_HASH = 73; - -const int CSSM_WORDID_ONE_TIME = 74; - -const int CSSM_WORDID_ONLINE = 75; - -const int CSSM_WORDID_OWNER = 76; - -const int CSSM_WORDID_P = 77; - -const int CSSM_WORDID_PAM_NAME = 78; - -const int CSSM_WORDID_PARTITION = 65548; - -const int CSSM_WORDID_PASSWORD = 79; - -const int CSSM_WORDID_PGP = 80; - -const int CSSM_WORDID_PIN = 65544; - -const int CSSM_WORDID_PREAUTH = 65545; - -const int CSSM_WORDID_PREAUTH_SOURCE = 65546; - -const int CSSM_WORDID_PREFIX = 81; - -const int CSSM_WORDID_PRIVATE_KEY = 82; - -const int CSSM_WORDID_PROCESS = 65539; - -const int CSSM_WORDID_PROMPTED_BIOMETRIC = 83; - -const int CSSM_WORDID_PROMPTED_PASSWORD = 84; - -const int CSSM_WORDID_PROPAGATE = 85; - -const int CSSM_WORDID_PROTECTED_BIOMETRIC = 86; - -const int CSSM_WORDID_PROTECTED_PASSWORD = 87; - -const int CSSM_WORDID_PROTECTED_PIN = 88; - -const int CSSM_WORDID_PUBLIC_KEY = 89; - -const int CSSM_WORDID_PUBLIC_KEY_FROM_CERT = 90; - -const int CSSM_WORDID_Q = 91; - -const int CSSM_WORDID_RANGE = 92; - -const int CSSM_WORDID_REVAL = 93; - -const int CSSM_WORDID_RIPEMAC = 94; - -const int CSSM_WORDID_RIPEMD = 95; - -const int CSSM_WORDID_RIPEMD160 = 96; - -const int CSSM_WORDID_RSA = 97; - -const int CSSM_WORDID_RSA_ISO9796 = 98; - -const int CSSM_WORDID_RSA_PKCS = 99; - -const int CSSM_WORDID_RSA_PKCS1 = 102; - -const int CSSM_WORDID_RSA_PKCS1_MD5 = 103; - -const int CSSM_WORDID_RSA_PKCS1_SHA1 = 104; - -const int CSSM_WORDID_RSA_PKCS1_SIG = 105; - -const int CSSM_WORDID_RSA_PKCS_MD5 = 100; - -const int CSSM_WORDID_RSA_PKCS_SHA1 = 101; - -const int CSSM_WORDID_RSA_RAW = 106; - -const int CSSM_WORDID_SDSIV1 = 107; - -const int CSSM_WORDID_SEQUENCE = 108; - -const int CSSM_WORDID_SET = 109; - -const int CSSM_WORDID_SEXPR = 110; - -const int CSSM_WORDID_SHA1 = 111; - -const int CSSM_WORDID_SHA1WITHDSA = 112; - -const int CSSM_WORDID_SHA1WITHECDSA = 113; - -const int CSSM_WORDID_SHA1WITHRSA = 114; - -const int CSSM_WORDID_SIGN = 115; - -const int CSSM_WORDID_SIGNATURE = 116; - -const int CSSM_WORDID_SIGNED_NONCE = 117; - -const int CSSM_WORDID_SIGNED_SECRET = 118; - -const int CSSM_WORDID_SPKI = 119; - -const int CSSM_WORDID_SUBJECT = 120; - -const int CSSM_WORDID_SUBJECT_INFO = 121; - -const int CSSM_WORDID_SYMMETRIC_KEY = 65541; - -const int CSSM_WORDID_SYSTEM = 65542; - -const int CSSM_WORDID_TAG = 122; - -const int CSSM_WORDID_THRESHOLD = 123; - -const int CSSM_WORDID_TIME = 124; - -typedef CSSM_WORDID_TYPE = sint32; - -const int CSSM_WORDID_URI = 125; - -const int CSSM_WORDID_VENDOR_END = 2147418112; - -const int CSSM_WORDID_VENDOR_START = 65536; - -const int CSSM_WORDID_VERSION = 126; - -const int CSSM_WORDID_X509V1 = 128; - -const int CSSM_WORDID_X509V2 = 129; - -const int CSSM_WORDID_X509V3 = 130; - -const int CSSM_WORDID_X509_ATTRIBUTE = 127; - -const int CSSM_WORDID_X9_ATTRIBUTE = 131; - -const int CSSM_WORDID__FIRST_UNUSED = 65550; - -const int CSSM_WORDID__NLU_ = 0; - -const int CSSM_WORDID__RESERVED_1 = 65540; - -const int CSSM_WORDID__STAR_ = 1; - -const int CSSM_WORDID__UNK_ = -1; - -typedef CSSM_WRAP_KEY = CSSM_KEY; -typedef CSSM_WRAP_KEY_PTR = ffi.Pointer; -typedef CSSM_X509EXT_BASICCONSTRAINTS = cssm_x509ext_basicConstraints; -typedef CSSM_X509EXT_BASICCONSTRAINTS_PTR = - ffi.Pointer; -typedef CSSM_X509EXT_PAIR = cssm_x509ext_pair; -typedef CSSM_X509EXT_PAIR_PTR = ffi.Pointer; -typedef CSSM_X509EXT_POLICYINFO = cssm_x509ext_policyInfo; -typedef CSSM_X509EXT_POLICYINFO_PTR = ffi.Pointer; -typedef CSSM_X509EXT_POLICYQUALIFIERINFO = cssm_x509ext_policyQualifierInfo; -typedef CSSM_X509EXT_POLICYQUALIFIERINFO_PTR = - ffi.Pointer; -typedef CSSM_X509EXT_POLICYQUALIFIERS = cssm_x509ext_policyQualifiers; -typedef CSSM_X509EXT_POLICYQUALIFIERS_PTR = - ffi.Pointer; -typedef CSSM_X509EXT_TAGandVALUE = cssm_x509_extensionTagAndValue; -typedef CSSM_X509EXT_TAGandVALUE_PTR = - ffi.Pointer; -typedef CSSM_X509_ALGORITHM_IDENTIFIER_PTR = ffi.Pointer; -typedef CSSM_X509_EXTENSION = cssm_x509_extension; -typedef CSSM_X509_EXTENSIONS = cssm_x509_extensions; -typedef CSSM_X509_EXTENSIONS_PTR = ffi.Pointer; -typedef CSSM_X509_EXTENSION_PTR = ffi.Pointer; -typedef CSSM_X509_NAME = cssm_x509_name; -typedef CSSM_X509_NAME_PTR = ffi.Pointer; -typedef CSSM_X509_OPTION = CSSM_BOOL; -typedef CSSM_X509_RDN = cssm_x509_rdn; -typedef CSSM_X509_RDN_PTR = ffi.Pointer; -typedef CSSM_X509_REVOKED_CERT_ENTRY = cssm_x509_revoked_cert_entry; -typedef CSSM_X509_REVOKED_CERT_ENTRY_PTR = - ffi.Pointer; -typedef CSSM_X509_REVOKED_CERT_LIST = cssm_x509_revoked_cert_list; -typedef CSSM_X509_REVOKED_CERT_LIST_PTR = - ffi.Pointer; -typedef CSSM_X509_SIGNATURE = cssm_x509_signature; -typedef CSSM_X509_SIGNATURE_PTR = ffi.Pointer; -typedef CSSM_X509_SIGNED_CERTIFICATE = cssm_x509_signed_certificate; -typedef CSSM_X509_SIGNED_CERTIFICATE_PTR = - ffi.Pointer; -typedef CSSM_X509_SIGNED_CRL = cssm_x509_signed_crl; -typedef CSSM_X509_SIGNED_CRL_PTR = ffi.Pointer; -typedef CSSM_X509_SUBJECT_PUBLIC_KEY_INFO_PTR = ffi.Pointer; -typedef CSSM_X509_TBS_CERTIFICATE = cssm_x509_tbs_certificate; -typedef CSSM_X509_TBS_CERTIFICATE_PTR = ffi.Pointer; -typedef CSSM_X509_TBS_CERTLIST = cssm_x509_tbs_certlist; -typedef CSSM_X509_TBS_CERTLIST_PTR = ffi.Pointer; -typedef CSSM_X509_TIME = cssm_x509_time; -typedef CSSM_X509_TIME_PTR = ffi.Pointer; -typedef CSSM_X509_TYPE_VALUE_PAIR = cssm_x509_type_value_pair; -typedef CSSM_X509_TYPE_VALUE_PAIR_PTR = ffi.Pointer; -typedef CSSM_X509_VALIDITY = x509_validity; -typedef CSSM_X509_VALIDITY_PTR = ffi.Pointer; - -const int CS_MAX_PATH = 1024; - -/// CTAdaptiveImageProviding -extension type CTAdaptiveImageProviding._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [CTAdaptiveImageProviding] that points to the same underlying object as [other]. - CTAdaptiveImageProviding.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [CTAdaptiveImageProviding] that wraps the given raw object pointer. - CTAdaptiveImageProviding.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [CTAdaptiveImageProviding]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_CTAdaptiveImageProviding, - ); - } -} - -extension CTAdaptiveImageProviding$Methods on CTAdaptiveImageProviding { - /// imageForProposedSize:scaleFactor:imageOffset:imageSize: - CGImageRef imageForProposedSize( - objc.CGSize proposedSize, { - required DartCGFloat scaleFactor, - required ffi.Pointer imageOffset, - required ffi.Pointer imageSize, - }) { - final _$$ref = object$.ref; - return _objc_msgSend_wep107( - _$$ref.pointer, - _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, - proposedSize, - scaleFactor, - imageOffset, - imageSize, - ); - } -} - -interface class CTAdaptiveImageProviding$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_CTAdaptiveImageProviding.cast()); - - /// Builds an object that implements the CTAdaptiveImageProviding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static CTAdaptiveImageProviding implement({ - required CGImageRef Function( - objc.CGSize, - DartCGFloat, - ffi.Pointer, - ffi.Pointer, - ) - imageForProposedSize_scaleFactor_imageOffset_imageSize_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'CTAdaptiveImageProviding', - ); - CTAdaptiveImageProviding$Builder - .imageForProposedSize_scaleFactor_imageOffset_imageSize_ - .implement( - builder, - imageForProposedSize_scaleFactor_imageOffset_imageSize_, - ); - builder.addProtocol($protocol); - return CTAdaptiveImageProviding.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the CTAdaptiveImageProviding protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required CGImageRef Function( - objc.CGSize, - DartCGFloat, - ffi.Pointer, - ffi.Pointer, - ) - imageForProposedSize_scaleFactor_imageOffset_imageSize_, - bool $keepIsolateAlive = true, - }) { - CTAdaptiveImageProviding$Builder - .imageForProposedSize_scaleFactor_imageOffset_imageSize_ - .implement( - builder, - imageForProposedSize_scaleFactor_imageOffset_imageSize_, - ); - builder.addProtocol($protocol); - } - - /// imageForProposedSize:scaleFactor:imageOffset:imageSize: - static final imageForProposedSize_scaleFactor_imageOffset_imageSize_ = - objc.ObjCProtocolMethod< - CGImageRef Function( - objc.CGSize, - DartCGFloat, - ffi.Pointer, - ffi.Pointer, - ) - >( - _protocol_CTAdaptiveImageProviding, - _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, - ffi.Native.addressOf< - ffi.NativeFunction< - CGImageRef Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - CGFloat, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1p89e63) - .cast(), - objc.getProtocolMethodSignature( - _protocol_CTAdaptiveImageProviding, - _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_, - isRequired: true, - isInstanceMethod: true, - ), - ( - CGImageRef Function( - objc.CGSize, - DartCGFloat, - ffi.Pointer, - ffi.Pointer, - ) - func, - ) => - ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize.fromFunction( - ( - ffi.Pointer _, - objc.CGSize arg1, - DartCGFloat arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); -} - -enum CTCharacterCollection { - kCTCharacterCollectionIdentityMapping(0), - kCTCharacterCollectionAdobeCNS1(1), - kCTCharacterCollectionAdobeGB1(2), - kCTCharacterCollectionAdobeJapan1(3), - kCTCharacterCollectionAdobeJapan2(4), - kCTCharacterCollectionAdobeKorea1(5); - - static const kCTIdentityMappingCharacterCollection = - kCTCharacterCollectionIdentityMapping; - static const kCTAdobeCNS1CharacterCollection = - kCTCharacterCollectionAdobeCNS1; - static const kCTAdobeGB1CharacterCollection = kCTCharacterCollectionAdobeGB1; - static const kCTAdobeJapan1CharacterCollection = - kCTCharacterCollectionAdobeJapan1; - static const kCTAdobeJapan2CharacterCollection = - kCTCharacterCollectionAdobeJapan2; - static const kCTAdobeKorea1CharacterCollection = - kCTCharacterCollectionAdobeKorea1; - - final int value; - const CTCharacterCollection(this.value); - - static CTCharacterCollection fromValue(int value) => switch (value) { - 0 => kCTCharacterCollectionIdentityMapping, - 1 => kCTCharacterCollectionAdobeCNS1, - 2 => kCTCharacterCollectionAdobeGB1, - 3 => kCTCharacterCollectionAdobeJapan1, - 4 => kCTCharacterCollectionAdobeJapan2, - 5 => kCTCharacterCollectionAdobeKorea1, - _ => throw ArgumentError('Unknown value for CTCharacterCollection: $value'), - }; - - @override - String toString() { - if (this == kCTCharacterCollectionIdentityMapping) - return "CTCharacterCollection.kCTCharacterCollectionIdentityMapping, CTCharacterCollection.kCTIdentityMappingCharacterCollection"; - if (this == kCTCharacterCollectionAdobeCNS1) - return "CTCharacterCollection.kCTCharacterCollectionAdobeCNS1, CTCharacterCollection.kCTAdobeCNS1CharacterCollection"; - if (this == kCTCharacterCollectionAdobeGB1) - return "CTCharacterCollection.kCTCharacterCollectionAdobeGB1, CTCharacterCollection.kCTAdobeGB1CharacterCollection"; - if (this == kCTCharacterCollectionAdobeJapan1) - return "CTCharacterCollection.kCTCharacterCollectionAdobeJapan1, CTCharacterCollection.kCTAdobeJapan1CharacterCollection"; - if (this == kCTCharacterCollectionAdobeJapan2) - return "CTCharacterCollection.kCTCharacterCollectionAdobeJapan2, CTCharacterCollection.kCTAdobeJapan2CharacterCollection"; - if (this == kCTCharacterCollectionAdobeKorea1) - return "CTCharacterCollection.kCTCharacterCollectionAdobeKorea1, CTCharacterCollection.kCTAdobeKorea1CharacterCollection"; - return super.toString(); - } -} - -sealed class CTFontCollectionCopyOptions { - static const kCTFontCollectionCopyDefaultOptions = 0; - static const kCTFontCollectionCopyUnique = 1; - static const kCTFontCollectionCopyStandardSort = 2; -} - -typedef CTFontCollectionRef = ffi.Pointer<__CTFontCollection>; -typedef CTFontCollectionSortDescriptorsCallback = - ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - CTFontDescriptorRef first, - CTFontDescriptorRef second, - ffi.Pointer refCon, - ) - > - >; - -enum CTFontDescriptorMatchingState { - kCTFontDescriptorMatchingDidBegin(0), - kCTFontDescriptorMatchingDidFinish(1), - kCTFontDescriptorMatchingWillBeginQuerying(2), - kCTFontDescriptorMatchingStalled(3), - kCTFontDescriptorMatchingWillBeginDownloading(4), - kCTFontDescriptorMatchingDownloading(5), - kCTFontDescriptorMatchingDidFinishDownloading(6), - kCTFontDescriptorMatchingDidMatch(7), - kCTFontDescriptorMatchingDidFailWithError(8); - - final int value; - const CTFontDescriptorMatchingState(this.value); - - static CTFontDescriptorMatchingState fromValue(int value) => switch (value) { - 0 => kCTFontDescriptorMatchingDidBegin, - 1 => kCTFontDescriptorMatchingDidFinish, - 2 => kCTFontDescriptorMatchingWillBeginQuerying, - 3 => kCTFontDescriptorMatchingStalled, - 4 => kCTFontDescriptorMatchingWillBeginDownloading, - 5 => kCTFontDescriptorMatchingDownloading, - 6 => kCTFontDescriptorMatchingDidFinishDownloading, - 7 => kCTFontDescriptorMatchingDidMatch, - 8 => kCTFontDescriptorMatchingDidFailWithError, - _ => throw ArgumentError( - 'Unknown value for CTFontDescriptorMatchingState: $value', - ), - }; -} - -typedef CTFontDescriptorProgressHandler = ffi.Pointer; -typedef DartCTFontDescriptorProgressHandler = - objc.ObjCBlock)>; -typedef CTFontDescriptorRef = ffi.Pointer<__CTFontDescriptor>; - -enum CTFontFormat { - kCTFontFormatUnrecognized(0), - kCTFontFormatOpenTypePostScript(1), - kCTFontFormatOpenTypeTrueType(2), - kCTFontFormatTrueType(3), - kCTFontFormatPostScript(4), - kCTFontFormatBitmap(5); - - final int value; - const CTFontFormat(this.value); - - static CTFontFormat fromValue(int value) => switch (value) { - 0 => kCTFontFormatUnrecognized, - 1 => kCTFontFormatOpenTypePostScript, - 2 => kCTFontFormatOpenTypeTrueType, - 3 => kCTFontFormatTrueType, - 4 => kCTFontFormatPostScript, - 5 => kCTFontFormatBitmap, - _ => throw ArgumentError('Unknown value for CTFontFormat: $value'), - }; -} - -enum CTFontManagerAutoActivationSetting { - kCTFontManagerAutoActivationDefault(0), - kCTFontManagerAutoActivationDisabled(1), - kCTFontManagerAutoActivationEnabled(2), - kCTFontManagerAutoActivationPromptUser(3); - - final int value; - const CTFontManagerAutoActivationSetting(this.value); - - static CTFontManagerAutoActivationSetting fromValue(int value) => - switch (value) { - 0 => kCTFontManagerAutoActivationDefault, - 1 => kCTFontManagerAutoActivationDisabled, - 2 => kCTFontManagerAutoActivationEnabled, - 3 => kCTFontManagerAutoActivationPromptUser, - _ => throw ArgumentError( - 'Unknown value for CTFontManagerAutoActivationSetting: $value', - ), - }; -} - -enum CTFontManagerError { - kCTFontManagerErrorFileNotFound(101), - kCTFontManagerErrorInsufficientPermissions(102), - kCTFontManagerErrorUnrecognizedFormat(103), - kCTFontManagerErrorInvalidFontData(104), - kCTFontManagerErrorAlreadyRegistered(105), - kCTFontManagerErrorExceededResourceLimit(106), - kCTFontManagerErrorAssetNotFound(107), - kCTFontManagerErrorNotRegistered(201), - kCTFontManagerErrorInUse(202), - kCTFontManagerErrorSystemRequired(203), - kCTFontManagerErrorRegistrationFailed(301), - kCTFontManagerErrorMissingEntitlement(302), - kCTFontManagerErrorInsufficientInfo(303), - kCTFontManagerErrorCancelledByUser(304), - kCTFontManagerErrorDuplicatedName(305), - kCTFontManagerErrorInvalidFilePath(306), - kCTFontManagerErrorUnsupportedScope(307); - - final int value; - const CTFontManagerError(this.value); - - static CTFontManagerError fromValue(int value) => switch (value) { - 101 => kCTFontManagerErrorFileNotFound, - 102 => kCTFontManagerErrorInsufficientPermissions, - 103 => kCTFontManagerErrorUnrecognizedFormat, - 104 => kCTFontManagerErrorInvalidFontData, - 105 => kCTFontManagerErrorAlreadyRegistered, - 106 => kCTFontManagerErrorExceededResourceLimit, - 107 => kCTFontManagerErrorAssetNotFound, - 201 => kCTFontManagerErrorNotRegistered, - 202 => kCTFontManagerErrorInUse, - 203 => kCTFontManagerErrorSystemRequired, - 301 => kCTFontManagerErrorRegistrationFailed, - 302 => kCTFontManagerErrorMissingEntitlement, - 303 => kCTFontManagerErrorInsufficientInfo, - 304 => kCTFontManagerErrorCancelledByUser, - 305 => kCTFontManagerErrorDuplicatedName, - 306 => kCTFontManagerErrorInvalidFilePath, - 307 => kCTFontManagerErrorUnsupportedScope, - _ => throw ArgumentError('Unknown value for CTFontManagerError: $value'), - }; -} - -enum CTFontManagerScope { - kCTFontManagerScopeNone(0), - kCTFontManagerScopeProcess(1), - kCTFontManagerScopePersistent(2), - kCTFontManagerScopeSession(3); - - static const kCTFontManagerScopeUser = kCTFontManagerScopePersistent; - - final int value; - const CTFontManagerScope(this.value); - - static CTFontManagerScope fromValue(int value) => switch (value) { - 0 => kCTFontManagerScopeNone, - 1 => kCTFontManagerScopeProcess, - 2 => kCTFontManagerScopePersistent, - 3 => kCTFontManagerScopeSession, - _ => throw ArgumentError('Unknown value for CTFontManagerScope: $value'), - }; - - @override - String toString() { - if (this == kCTFontManagerScopePersistent) - return "CTFontManagerScope.kCTFontManagerScopePersistent, CTFontManagerScope.kCTFontManagerScopeUser"; - return super.toString(); - } -} - -sealed class CTFontOptions { - static const kCTFontOptionsDefault = 0; - static const kCTFontOptionsPreventAutoActivation = 1; - static const kCTFontOptionsPreventAutoDownload = 2; - static const kCTFontOptionsPreferSystemFont = 4; -} - -enum CTFontOrientation { - kCTFontOrientationDefault(0), - kCTFontOrientationHorizontal(1), - kCTFontOrientationVertical(2); - - static const kCTFontDefaultOrientation = kCTFontOrientationDefault; - static const kCTFontHorizontalOrientation = kCTFontOrientationHorizontal; - static const kCTFontVerticalOrientation = kCTFontOrientationVertical; - - final int value; - const CTFontOrientation(this.value); - - static CTFontOrientation fromValue(int value) => switch (value) { - 0 => kCTFontOrientationDefault, - 1 => kCTFontOrientationHorizontal, - 2 => kCTFontOrientationVertical, - _ => throw ArgumentError('Unknown value for CTFontOrientation: $value'), - }; - - @override - String toString() { - if (this == kCTFontOrientationDefault) - return "CTFontOrientation.kCTFontOrientationDefault, CTFontOrientation.kCTFontDefaultOrientation"; - if (this == kCTFontOrientationHorizontal) - return "CTFontOrientation.kCTFontOrientationHorizontal, CTFontOrientation.kCTFontHorizontalOrientation"; - if (this == kCTFontOrientationVertical) - return "CTFontOrientation.kCTFontOrientationVertical, CTFontOrientation.kCTFontVerticalOrientation"; - return super.toString(); - } -} - -typedef CTFontPriority = ffi.Uint32; -typedef DartCTFontPriority = int; -typedef CTFontRef = ffi.Pointer<__CTFont>; - -sealed class CTFontStylisticClass { - static const kCTFontClassUnknown = 0; - static const kCTFontClassOldStyleSerifs = 268435456; - static const kCTFontClassTransitionalSerifs = 536870912; - static const kCTFontClassModernSerifs = 805306368; - static const kCTFontClassClarendonSerifs = 1073741824; - static const kCTFontClassSlabSerifs = 1342177280; - static const kCTFontClassFreeformSerifs = 1879048192; - static const kCTFontClassSansSerif = -2147483648; - static const kCTFontClassOrnamentals = -1879048192; - static const kCTFontClassScripts = -1610612736; - static const kCTFontClassSymbolic = -1073741824; - static const kCTFontUnknownClass = 0; - static const kCTFontOldStyleSerifsClass = 268435456; - static const kCTFontTransitionalSerifsClass = 536870912; - static const kCTFontModernSerifsClass = 805306368; - static const kCTFontClarendonSerifsClass = 1073741824; - static const kCTFontSlabSerifsClass = 1342177280; - static const kCTFontFreeformSerifsClass = 1879048192; - static const kCTFontSansSerifClass = -2147483648; - static const kCTFontOrnamentalsClass = -1879048192; - static const kCTFontScriptsClass = -1610612736; - static const kCTFontSymbolicClass = -1073741824; -} - -sealed class CTFontSymbolicTraits { - static const kCTFontTraitItalic = 1; - static const kCTFontTraitBold = 2; - static const kCTFontTraitExpanded = 32; - static const kCTFontTraitCondensed = 64; - static const kCTFontTraitMonoSpace = 1024; - static const kCTFontTraitVertical = 2048; - static const kCTFontTraitUIOptimized = 4096; - static const kCTFontTraitColorGlyphs = 8192; - static const kCTFontTraitComposite = 16384; - static const kCTFontTraitClassMask = -268435456; - static const kCTFontItalicTrait = 1; - static const kCTFontBoldTrait = 2; - static const kCTFontExpandedTrait = 32; - static const kCTFontCondensedTrait = 64; - static const kCTFontMonoSpaceTrait = 1024; - static const kCTFontVerticalTrait = 2048; - static const kCTFontUIOptimizedTrait = 4096; - static const kCTFontColorGlyphsTrait = 8192; - static const kCTFontCompositeTrait = 16384; - static const kCTFontClassMaskTrait = -268435456; -} - -sealed class CTFontTableOptions { - static const kCTFontTableOptionNoOptions = 0; - static const kCTFontTableOptionExcludeSynthetic = 1; -} - -typedef CTFontTableTag = FourCharCode; - -enum CTFontUIFontType { - kCTFontUIFontNone(-1), - kCTFontUIFontUser(0), - kCTFontUIFontUserFixedPitch(1), - kCTFontUIFontSystem(2), - kCTFontUIFontEmphasizedSystem(3), - kCTFontUIFontSmallSystem(4), - kCTFontUIFontSmallEmphasizedSystem(5), - kCTFontUIFontMiniSystem(6), - kCTFontUIFontMiniEmphasizedSystem(7), - kCTFontUIFontViews(8), - kCTFontUIFontApplication(9), - kCTFontUIFontLabel(10), - kCTFontUIFontMenuTitle(11), - kCTFontUIFontMenuItem(12), - kCTFontUIFontMenuItemMark(13), - kCTFontUIFontMenuItemCmdKey(14), - kCTFontUIFontWindowTitle(15), - kCTFontUIFontPushButton(16), - kCTFontUIFontUtilityWindowTitle(17), - kCTFontUIFontAlertHeader(18), - kCTFontUIFontSystemDetail(19), - kCTFontUIFontEmphasizedSystemDetail(20), - kCTFontUIFontToolbar(21), - kCTFontUIFontSmallToolbar(22), - kCTFontUIFontMessage(23), - kCTFontUIFontPalette(24), - kCTFontUIFontToolTip(25), - kCTFontUIFontControlContent(26); - - static const kCTFontNoFontType = kCTFontUIFontNone; - static const kCTFontUserFontType = kCTFontUIFontUser; - static const kCTFontUserFixedPitchFontType = kCTFontUIFontUserFixedPitch; - static const kCTFontSystemFontType = kCTFontUIFontSystem; - static const kCTFontEmphasizedSystemFontType = kCTFontUIFontEmphasizedSystem; - static const kCTFontSmallSystemFontType = kCTFontUIFontSmallSystem; - static const kCTFontSmallEmphasizedSystemFontType = - kCTFontUIFontSmallEmphasizedSystem; - static const kCTFontMiniSystemFontType = kCTFontUIFontMiniSystem; - static const kCTFontMiniEmphasizedSystemFontType = - kCTFontUIFontMiniEmphasizedSystem; - static const kCTFontViewsFontType = kCTFontUIFontViews; - static const kCTFontApplicationFontType = kCTFontUIFontApplication; - static const kCTFontLabelFontType = kCTFontUIFontLabel; - static const kCTFontMenuTitleFontType = kCTFontUIFontMenuTitle; - static const kCTFontMenuItemFontType = kCTFontUIFontMenuItem; - static const kCTFontMenuItemMarkFontType = kCTFontUIFontMenuItemMark; - static const kCTFontMenuItemCmdKeyFontType = kCTFontUIFontMenuItemCmdKey; - static const kCTFontWindowTitleFontType = kCTFontUIFontWindowTitle; - static const kCTFontPushButtonFontType = kCTFontUIFontPushButton; - static const kCTFontUtilityWindowTitleFontType = - kCTFontUIFontUtilityWindowTitle; - static const kCTFontAlertHeaderFontType = kCTFontUIFontAlertHeader; - static const kCTFontSystemDetailFontType = kCTFontUIFontSystemDetail; - static const kCTFontEmphasizedSystemDetailFontType = - kCTFontUIFontEmphasizedSystemDetail; - static const kCTFontToolbarFontType = kCTFontUIFontToolbar; - static const kCTFontSmallToolbarFontType = kCTFontUIFontSmallToolbar; - static const kCTFontMessageFontType = kCTFontUIFontMessage; - static const kCTFontPaletteFontType = kCTFontUIFontPalette; - static const kCTFontToolTipFontType = kCTFontUIFontToolTip; - static const kCTFontControlContentFontType = kCTFontUIFontControlContent; - - final int value; - const CTFontUIFontType(this.value); - - static CTFontUIFontType fromValue(int value) => switch (value) { - -1 => kCTFontUIFontNone, - 0 => kCTFontUIFontUser, - 1 => kCTFontUIFontUserFixedPitch, - 2 => kCTFontUIFontSystem, - 3 => kCTFontUIFontEmphasizedSystem, - 4 => kCTFontUIFontSmallSystem, - 5 => kCTFontUIFontSmallEmphasizedSystem, - 6 => kCTFontUIFontMiniSystem, - 7 => kCTFontUIFontMiniEmphasizedSystem, - 8 => kCTFontUIFontViews, - 9 => kCTFontUIFontApplication, - 10 => kCTFontUIFontLabel, - 11 => kCTFontUIFontMenuTitle, - 12 => kCTFontUIFontMenuItem, - 13 => kCTFontUIFontMenuItemMark, - 14 => kCTFontUIFontMenuItemCmdKey, - 15 => kCTFontUIFontWindowTitle, - 16 => kCTFontUIFontPushButton, - 17 => kCTFontUIFontUtilityWindowTitle, - 18 => kCTFontUIFontAlertHeader, - 19 => kCTFontUIFontSystemDetail, - 20 => kCTFontUIFontEmphasizedSystemDetail, - 21 => kCTFontUIFontToolbar, - 22 => kCTFontUIFontSmallToolbar, - 23 => kCTFontUIFontMessage, - 24 => kCTFontUIFontPalette, - 25 => kCTFontUIFontToolTip, - 26 => kCTFontUIFontControlContent, - _ => throw ArgumentError('Unknown value for CTFontUIFontType: $value'), - }; - - @override - String toString() { - if (this == kCTFontUIFontNone) - return "CTFontUIFontType.kCTFontUIFontNone, CTFontUIFontType.kCTFontNoFontType"; - if (this == kCTFontUIFontUser) - return "CTFontUIFontType.kCTFontUIFontUser, CTFontUIFontType.kCTFontUserFontType"; - if (this == kCTFontUIFontUserFixedPitch) - return "CTFontUIFontType.kCTFontUIFontUserFixedPitch, CTFontUIFontType.kCTFontUserFixedPitchFontType"; - if (this == kCTFontUIFontSystem) - return "CTFontUIFontType.kCTFontUIFontSystem, CTFontUIFontType.kCTFontSystemFontType"; - if (this == kCTFontUIFontEmphasizedSystem) - return "CTFontUIFontType.kCTFontUIFontEmphasizedSystem, CTFontUIFontType.kCTFontEmphasizedSystemFontType"; - if (this == kCTFontUIFontSmallSystem) - return "CTFontUIFontType.kCTFontUIFontSmallSystem, CTFontUIFontType.kCTFontSmallSystemFontType"; - if (this == kCTFontUIFontSmallEmphasizedSystem) - return "CTFontUIFontType.kCTFontUIFontSmallEmphasizedSystem, CTFontUIFontType.kCTFontSmallEmphasizedSystemFontType"; - if (this == kCTFontUIFontMiniSystem) - return "CTFontUIFontType.kCTFontUIFontMiniSystem, CTFontUIFontType.kCTFontMiniSystemFontType"; - if (this == kCTFontUIFontMiniEmphasizedSystem) - return "CTFontUIFontType.kCTFontUIFontMiniEmphasizedSystem, CTFontUIFontType.kCTFontMiniEmphasizedSystemFontType"; - if (this == kCTFontUIFontViews) - return "CTFontUIFontType.kCTFontUIFontViews, CTFontUIFontType.kCTFontViewsFontType"; - if (this == kCTFontUIFontApplication) - return "CTFontUIFontType.kCTFontUIFontApplication, CTFontUIFontType.kCTFontApplicationFontType"; - if (this == kCTFontUIFontLabel) - return "CTFontUIFontType.kCTFontUIFontLabel, CTFontUIFontType.kCTFontLabelFontType"; - if (this == kCTFontUIFontMenuTitle) - return "CTFontUIFontType.kCTFontUIFontMenuTitle, CTFontUIFontType.kCTFontMenuTitleFontType"; - if (this == kCTFontUIFontMenuItem) - return "CTFontUIFontType.kCTFontUIFontMenuItem, CTFontUIFontType.kCTFontMenuItemFontType"; - if (this == kCTFontUIFontMenuItemMark) - return "CTFontUIFontType.kCTFontUIFontMenuItemMark, CTFontUIFontType.kCTFontMenuItemMarkFontType"; - if (this == kCTFontUIFontMenuItemCmdKey) - return "CTFontUIFontType.kCTFontUIFontMenuItemCmdKey, CTFontUIFontType.kCTFontMenuItemCmdKeyFontType"; - if (this == kCTFontUIFontWindowTitle) - return "CTFontUIFontType.kCTFontUIFontWindowTitle, CTFontUIFontType.kCTFontWindowTitleFontType"; - if (this == kCTFontUIFontPushButton) - return "CTFontUIFontType.kCTFontUIFontPushButton, CTFontUIFontType.kCTFontPushButtonFontType"; - if (this == kCTFontUIFontUtilityWindowTitle) - return "CTFontUIFontType.kCTFontUIFontUtilityWindowTitle, CTFontUIFontType.kCTFontUtilityWindowTitleFontType"; - if (this == kCTFontUIFontAlertHeader) - return "CTFontUIFontType.kCTFontUIFontAlertHeader, CTFontUIFontType.kCTFontAlertHeaderFontType"; - if (this == kCTFontUIFontSystemDetail) - return "CTFontUIFontType.kCTFontUIFontSystemDetail, CTFontUIFontType.kCTFontSystemDetailFontType"; - if (this == kCTFontUIFontEmphasizedSystemDetail) - return "CTFontUIFontType.kCTFontUIFontEmphasizedSystemDetail, CTFontUIFontType.kCTFontEmphasizedSystemDetailFontType"; - if (this == kCTFontUIFontToolbar) - return "CTFontUIFontType.kCTFontUIFontToolbar, CTFontUIFontType.kCTFontToolbarFontType"; - if (this == kCTFontUIFontSmallToolbar) - return "CTFontUIFontType.kCTFontUIFontSmallToolbar, CTFontUIFontType.kCTFontSmallToolbarFontType"; - if (this == kCTFontUIFontMessage) - return "CTFontUIFontType.kCTFontUIFontMessage, CTFontUIFontType.kCTFontMessageFontType"; - if (this == kCTFontUIFontPalette) - return "CTFontUIFontType.kCTFontUIFontPalette, CTFontUIFontType.kCTFontPaletteFontType"; - if (this == kCTFontUIFontToolTip) - return "CTFontUIFontType.kCTFontUIFontToolTip, CTFontUIFontType.kCTFontToolTipFontType"; - if (this == kCTFontUIFontControlContent) - return "CTFontUIFontType.kCTFontUIFontControlContent, CTFontUIFontType.kCTFontControlContentFontType"; - return super.toString(); - } -} - -enum CTFramePathFillRule { - kCTFramePathFillEvenOdd(0), - kCTFramePathFillWindingNumber(1); - - final int value; - const CTFramePathFillRule(this.value); - - static CTFramePathFillRule fromValue(int value) => switch (value) { - 0 => kCTFramePathFillEvenOdd, - 1 => kCTFramePathFillWindingNumber, - _ => throw ArgumentError('Unknown value for CTFramePathFillRule: $value'), - }; -} - -enum CTFrameProgression { - kCTFrameProgressionTopToBottom(0), - kCTFrameProgressionRightToLeft(1), - kCTFrameProgressionLeftToRight(2); - - final int value; - const CTFrameProgression(this.value); - - static CTFrameProgression fromValue(int value) => switch (value) { - 0 => kCTFrameProgressionTopToBottom, - 1 => kCTFrameProgressionRightToLeft, - 2 => kCTFrameProgressionLeftToRight, - _ => throw ArgumentError('Unknown value for CTFrameProgression: $value'), - }; -} - -typedef CTFrameRef = ffi.Pointer<__CTFrame>; -typedef CTFramesetterRef = ffi.Pointer<__CTFramesetter>; -typedef CTGlyphInfoRef = ffi.Pointer<__CTGlyphInfo>; - -sealed class CTLineBoundsOptions { - static const kCTLineBoundsExcludeTypographicLeading = 1; - static const kCTLineBoundsExcludeTypographicShifts = 2; - static const kCTLineBoundsUseHangingPunctuation = 4; - static const kCTLineBoundsUseGlyphPathBounds = 8; - static const kCTLineBoundsUseOpticalBounds = 16; - static const kCTLineBoundsIncludeLanguageExtents = 32; -} - -enum CTLineBreakMode { - kCTLineBreakByWordWrapping(0), - kCTLineBreakByCharWrapping(1), - kCTLineBreakByClipping(2), - kCTLineBreakByTruncatingHead(3), - kCTLineBreakByTruncatingTail(4), - kCTLineBreakByTruncatingMiddle(5); - - final int value; - const CTLineBreakMode(this.value); - - static CTLineBreakMode fromValue(int value) => switch (value) { - 0 => kCTLineBreakByWordWrapping, - 1 => kCTLineBreakByCharWrapping, - 2 => kCTLineBreakByClipping, - 3 => kCTLineBreakByTruncatingHead, - 4 => kCTLineBreakByTruncatingTail, - 5 => kCTLineBreakByTruncatingMiddle, - _ => throw ArgumentError('Unknown value for CTLineBreakMode: $value'), - }; -} - -typedef CTLineRef = ffi.Pointer<__CTLine>; - -enum CTLineTruncationType { - kCTLineTruncationStart(0), - kCTLineTruncationEnd(1), - kCTLineTruncationMiddle(2); - - final int value; - const CTLineTruncationType(this.value); - - static CTLineTruncationType fromValue(int value) => switch (value) { - 0 => kCTLineTruncationStart, - 1 => kCTLineTruncationEnd, - 2 => kCTLineTruncationMiddle, - _ => throw ArgumentError('Unknown value for CTLineTruncationType: $value'), - }; -} - -typedef CTMutableFontCollectionRef = ffi.Pointer<__CTFontCollection>; -typedef CTParagraphStyleRef = ffi.Pointer<__CTParagraphStyle>; - -final class CTParagraphStyleSetting extends ffi.Struct { - @ffi.Uint32() - external int specAsInt; - - CTParagraphStyleSpecifier get spec => - CTParagraphStyleSpecifier.fromValue(specAsInt); - set spec(CTParagraphStyleSpecifier value) => specAsInt = value.value; - - @ffi.Size() - external int valueSize; - - external ffi.Pointer value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CTParagraphStyleSpecifier spec, - required int valueSize, - required ffi.Pointer value, - }) => $allocator() - ..ref.spec = spec - ..ref.valueSize = valueSize - ..ref.value = value; -} - -enum CTParagraphStyleSpecifier { - kCTParagraphStyleSpecifierAlignment(0), - kCTParagraphStyleSpecifierFirstLineHeadIndent(1), - kCTParagraphStyleSpecifierHeadIndent(2), - kCTParagraphStyleSpecifierTailIndent(3), - kCTParagraphStyleSpecifierTabStops(4), - kCTParagraphStyleSpecifierDefaultTabInterval(5), - kCTParagraphStyleSpecifierLineBreakMode(6), - kCTParagraphStyleSpecifierLineHeightMultiple(7), - kCTParagraphStyleSpecifierMaximumLineHeight(8), - kCTParagraphStyleSpecifierMinimumLineHeight(9), - kCTParagraphStyleSpecifierLineSpacing(10), - kCTParagraphStyleSpecifierParagraphSpacing(11), - kCTParagraphStyleSpecifierParagraphSpacingBefore(12), - kCTParagraphStyleSpecifierBaseWritingDirection(13), - kCTParagraphStyleSpecifierMaximumLineSpacing(14), - kCTParagraphStyleSpecifierMinimumLineSpacing(15), - kCTParagraphStyleSpecifierLineSpacingAdjustment(16), - kCTParagraphStyleSpecifierLineBoundsOptions(17), - kCTParagraphStyleSpecifierCount(18); - - final int value; - const CTParagraphStyleSpecifier(this.value); - - static CTParagraphStyleSpecifier fromValue(int value) => switch (value) { - 0 => kCTParagraphStyleSpecifierAlignment, - 1 => kCTParagraphStyleSpecifierFirstLineHeadIndent, - 2 => kCTParagraphStyleSpecifierHeadIndent, - 3 => kCTParagraphStyleSpecifierTailIndent, - 4 => kCTParagraphStyleSpecifierTabStops, - 5 => kCTParagraphStyleSpecifierDefaultTabInterval, - 6 => kCTParagraphStyleSpecifierLineBreakMode, - 7 => kCTParagraphStyleSpecifierLineHeightMultiple, - 8 => kCTParagraphStyleSpecifierMaximumLineHeight, - 9 => kCTParagraphStyleSpecifierMinimumLineHeight, - 10 => kCTParagraphStyleSpecifierLineSpacing, - 11 => kCTParagraphStyleSpecifierParagraphSpacing, - 12 => kCTParagraphStyleSpecifierParagraphSpacingBefore, - 13 => kCTParagraphStyleSpecifierBaseWritingDirection, - 14 => kCTParagraphStyleSpecifierMaximumLineSpacing, - 15 => kCTParagraphStyleSpecifierMinimumLineSpacing, - 16 => kCTParagraphStyleSpecifierLineSpacingAdjustment, - 17 => kCTParagraphStyleSpecifierLineBoundsOptions, - 18 => kCTParagraphStyleSpecifierCount, - _ => throw ArgumentError( - 'Unknown value for CTParagraphStyleSpecifier: $value', - ), - }; -} - -enum CTRubyAlignment { - kCTRubyAlignmentInvalid(-1), - kCTRubyAlignmentAuto(0), - kCTRubyAlignmentStart(1), - kCTRubyAlignmentCenter(2), - kCTRubyAlignmentEnd(3), - kCTRubyAlignmentDistributeLetter(4), - kCTRubyAlignmentDistributeSpace(5), - kCTRubyAlignmentLineEdge(6); - - final int value; - const CTRubyAlignment(this.value); - - static CTRubyAlignment fromValue(int value) => switch (value) { - -1 => kCTRubyAlignmentInvalid, - 0 => kCTRubyAlignmentAuto, - 1 => kCTRubyAlignmentStart, - 2 => kCTRubyAlignmentCenter, - 3 => kCTRubyAlignmentEnd, - 4 => kCTRubyAlignmentDistributeLetter, - 5 => kCTRubyAlignmentDistributeSpace, - 6 => kCTRubyAlignmentLineEdge, - _ => throw ArgumentError('Unknown value for CTRubyAlignment: $value'), - }; -} - -typedef CTRubyAnnotationRef = ffi.Pointer<__CTRubyAnnotation>; - -enum CTRubyOverhang { - kCTRubyOverhangInvalid(-1), - kCTRubyOverhangAuto(0), - kCTRubyOverhangStart(1), - kCTRubyOverhangEnd(2), - kCTRubyOverhangNone(3); - - final int value; - const CTRubyOverhang(this.value); - - static CTRubyOverhang fromValue(int value) => switch (value) { - -1 => kCTRubyOverhangInvalid, - 0 => kCTRubyOverhangAuto, - 1 => kCTRubyOverhangStart, - 2 => kCTRubyOverhangEnd, - 3 => kCTRubyOverhangNone, - _ => throw ArgumentError('Unknown value for CTRubyOverhang: $value'), - }; -} - -enum CTRubyPosition { - kCTRubyPositionBefore(0), - kCTRubyPositionAfter(1), - kCTRubyPositionInterCharacter(2), - kCTRubyPositionInline(3), - kCTRubyPositionCount(4); - - final int value; - const CTRubyPosition(this.value); - - static CTRubyPosition fromValue(int value) => switch (value) { - 0 => kCTRubyPositionBefore, - 1 => kCTRubyPositionAfter, - 2 => kCTRubyPositionInterCharacter, - 3 => kCTRubyPositionInline, - 4 => kCTRubyPositionCount, - _ => throw ArgumentError('Unknown value for CTRubyPosition: $value'), - }; -} - -final class CTRunDelegateCallbacks extends ffi.Struct { - @CFIndex() - external int version; - - external CTRunDelegateDeallocateCallback dealloc; - - external CTRunDelegateGetAscentCallback getAscent; - - external CTRunDelegateGetDescentCallback getDescent; - - external CTRunDelegateGetWidthCallback getWidth; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CTRunDelegateDeallocateCallback dealloc, - required CTRunDelegateGetAscentCallback getAscent, - required CTRunDelegateGetDescentCallback getDescent, - required CTRunDelegateGetWidthCallback getWidth, - }) => $allocator() - ..ref.version = version - ..ref.dealloc = dealloc - ..ref.getAscent = getAscent - ..ref.getDescent = getDescent - ..ref.getWidth = getWidth; -} - -typedef CTRunDelegateDeallocateCallback = - ffi.Pointer< - ffi.NativeFunction refCon)> - >; -typedef CTRunDelegateGetAscentCallback = - ffi.Pointer< - ffi.NativeFunction refCon)> - >; -typedef CTRunDelegateGetDescentCallback = - ffi.Pointer< - ffi.NativeFunction refCon)> - >; -typedef CTRunDelegateGetWidthCallback = - ffi.Pointer< - ffi.NativeFunction refCon)> - >; -typedef CTRunDelegateRef = ffi.Pointer<__CTRunDelegate>; -typedef CTRunRef = ffi.Pointer<__CTRun>; - -sealed class CTRunStatus { - static const kCTRunStatusNoStatus = 0; - static const kCTRunStatusRightToLeft = 1; - static const kCTRunStatusNonMonotonic = 2; - static const kCTRunStatusHasNonIdentityMatrix = 4; -} - -enum CTTextAlignment { - kCTTextAlignmentLeft(0), - kCTTextAlignmentRight(1), - kCTTextAlignmentCenter(2), - kCTTextAlignmentJustified(3), - kCTTextAlignmentNatural(4); - - static const kCTLeftTextAlignment = kCTTextAlignmentLeft; - static const kCTRightTextAlignment = kCTTextAlignmentRight; - static const kCTCenterTextAlignment = kCTTextAlignmentCenter; - static const kCTJustifiedTextAlignment = kCTTextAlignmentJustified; - static const kCTNaturalTextAlignment = kCTTextAlignmentNatural; - - final int value; - const CTTextAlignment(this.value); - - static CTTextAlignment fromValue(int value) => switch (value) { - 0 => kCTTextAlignmentLeft, - 1 => kCTTextAlignmentRight, - 2 => kCTTextAlignmentCenter, - 3 => kCTTextAlignmentJustified, - 4 => kCTTextAlignmentNatural, - _ => throw ArgumentError('Unknown value for CTTextAlignment: $value'), - }; - - @override - String toString() { - if (this == kCTTextAlignmentLeft) - return "CTTextAlignment.kCTTextAlignmentLeft, CTTextAlignment.kCTLeftTextAlignment"; - if (this == kCTTextAlignmentRight) - return "CTTextAlignment.kCTTextAlignmentRight, CTTextAlignment.kCTRightTextAlignment"; - if (this == kCTTextAlignmentCenter) - return "CTTextAlignment.kCTTextAlignmentCenter, CTTextAlignment.kCTCenterTextAlignment"; - if (this == kCTTextAlignmentJustified) - return "CTTextAlignment.kCTTextAlignmentJustified, CTTextAlignment.kCTJustifiedTextAlignment"; - if (this == kCTTextAlignmentNatural) - return "CTTextAlignment.kCTTextAlignmentNatural, CTTextAlignment.kCTNaturalTextAlignment"; - return super.toString(); - } -} - -typedef CTTextTabRef = ffi.Pointer<__CTTextTab>; -typedef CTTypesetterRef = ffi.Pointer<__CTTypesetter>; - -sealed class CTUnderlineStyle { - static const kCTUnderlineStyleNone = 0; - static const kCTUnderlineStyleSingle = 1; - static const kCTUnderlineStyleThick = 2; - static const kCTUnderlineStyleDouble = 9; -} - -sealed class CTUnderlineStyleModifiers { - static const kCTUnderlinePatternSolid = 0; - static const kCTUnderlinePatternDot = 256; - static const kCTUnderlinePatternDash = 512; - static const kCTUnderlinePatternDashDot = 768; - static const kCTUnderlinePatternDashDotDot = 1024; -} - -enum CTWritingDirection { - kCTWritingDirectionNatural(-1), - kCTWritingDirectionLeftToRight(0), - kCTWritingDirectionRightToLeft(1); - - final int value; - const CTWritingDirection(this.value); - - static CTWritingDirection fromValue(int value) => switch (value) { - -1 => kCTWritingDirectionNatural, - 0 => kCTWritingDirectionLeftToRight, - 1 => kCTWritingDirectionRightToLeft, - _ => throw ArgumentError('Unknown value for CTWritingDirection: $value'), - }; -} - -typedef CTabHandle = ffi.Pointer; -typedef CTabPtr = ffi.Pointer; - -enum CVAttachmentMode { - kCVAttachmentMode_ShouldNotPropagate(0), - kCVAttachmentMode_ShouldPropagate(1); - - final int value; - const CVAttachmentMode(this.value); - - static CVAttachmentMode fromValue(int value) => switch (value) { - 0 => kCVAttachmentMode_ShouldNotPropagate, - 1 => kCVAttachmentMode_ShouldPropagate, - _ => throw ArgumentError('Unknown value for CVAttachmentMode: $value'), - }; -} - -typedef CVBufferRef = ffi.Pointer<__CVBuffer>; -typedef CVDisplayLinkOutputCallback = - ffi.Pointer< - ffi.NativeFunction< - CVReturn Function( - CVDisplayLinkRef displayLink, - ffi.Pointer inNow, - ffi.Pointer inOutputTime, - CVOptionFlags flagsIn, - ffi.Pointer flagsOut, - ffi.Pointer displayLinkContext, - ) - > - >; -typedef CVDisplayLinkOutputHandler = ffi.Pointer; -typedef DartCVDisplayLinkOutputHandler = - objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - >; -typedef CVDisplayLinkRef = ffi.Pointer<__CVDisplayLink>; -typedef CVFillExtendedPixelsCallBack = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - CVPixelBufferRef pixelBuffer, - ffi.Pointer refCon, - ) - > - >; - -final class CVFillExtendedPixelsCallBackData extends ffi.Struct { - @CFIndex() - external int version; - - external CVFillExtendedPixelsCallBack fillCallBack; - - external ffi.Pointer refCon; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required CVFillExtendedPixelsCallBack fillCallBack, - required ffi.Pointer refCon, - }) => $allocator() - ..ref.version = version - ..ref.fillCallBack = fillCallBack - ..ref.refCon = refCon; -} - -typedef CVImageBufferRef = CVBufferRef; -typedef CVMetalBufferCacheRef = ffi.Pointer<__CVMetalBufferCache>; -typedef CVMetalBufferRef = CVBufferRef; -typedef CVMetalTextureCacheRef = ffi.Pointer<__CVMetalTextureCache>; -typedef CVMetalTextureRef = CVImageBufferRef; -typedef CVOpenGLBufferPoolRef = ffi.Pointer<__CVOpenGLBufferPool>; -typedef CVOpenGLBufferRef = CVImageBufferRef; -typedef CVOpenGLTextureCacheRef = ffi.Pointer<__CVOpenGLTextureCache>; -typedef CVOpenGLTextureRef = CVImageBufferRef; -typedef CVOptionFlags = ffi.Uint64; -typedef DartCVOptionFlags = int; - -sealed class CVPixelBufferLockFlags { - static const kCVPixelBufferLock_ReadOnly = 1; -} - -sealed class CVPixelBufferPoolFlushFlags { - static const kCVPixelBufferPoolFlushExcessBuffers = 1; -} - -typedef CVPixelBufferPoolRef = ffi.Pointer<__CVPixelBufferPool>; -typedef CVPixelBufferRef = CVImageBufferRef; -typedef CVPixelBufferReleaseBytesCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer releaseRefCon, - ffi.Pointer baseAddress, - ) - > - >; -typedef CVPixelBufferReleasePlanarBytesCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer releaseRefCon, - ffi.Pointer dataPtr, - ffi.Size dataSize, - ffi.Size numberOfPlanes, - ffi.Pointer> planeAddresses, - ) - > - >; - -final class CVPlanarComponentInfo extends ffi.Struct { - @ffi.Int32() - external int offset; - - @ffi.Uint32() - external int rowBytes; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int rowBytes, - }) => $allocator() - ..ref.offset = offset - ..ref.rowBytes = rowBytes; -} - -final class CVPlanarPixelBufferInfo extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array componentInfo; -} - -final class CVPlanarPixelBufferInfo_YCbCrBiPlanar extends ffi.Struct { - external CVPlanarComponentInfo componentInfoY; - - external CVPlanarComponentInfo componentInfoCbCr; -} - -final class CVPlanarPixelBufferInfo_YCbCrPlanar extends ffi.Struct { - external CVPlanarComponentInfo componentInfoY; - - external CVPlanarComponentInfo componentInfoCb; - - external CVPlanarComponentInfo componentInfoCr; -} - -typedef CVReturn = ffi.Int32; -typedef DartCVReturn = int; - -final class CVSMPTETime extends ffi.Struct { - @SInt16() - external int subframes; - - @SInt16() - external int subframeDivisor; - - @UInt32() - external int counter; - - @UInt32() - external int type; - - @UInt32() - external int flags; - - @SInt16() - external int hours; - - @SInt16() - external int minutes; - - @SInt16() - external int seconds; - - @SInt16() - external int frames; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int subframes, - required int subframeDivisor, - required int counter, - required int type, - required int flags, - required int hours, - required int minutes, - required int seconds, - required int frames, - }) => $allocator() - ..ref.subframes = subframes - ..ref.subframeDivisor = subframeDivisor - ..ref.counter = counter - ..ref.type = type - ..ref.flags = flags - ..ref.hours = hours - ..ref.minutes = minutes - ..ref.seconds = seconds - ..ref.frames = frames; -} - -sealed class CVSMPTETimeFlags { - static const kCVSMPTETimeValid = 1; - static const kCVSMPTETimeRunning = 2; -} - -enum CVSMPTETimeType { - kCVSMPTETimeType24(0), - kCVSMPTETimeType25(1), - kCVSMPTETimeType30Drop(2), - kCVSMPTETimeType30(3), - kCVSMPTETimeType2997(4), - kCVSMPTETimeType2997Drop(5), - kCVSMPTETimeType60(6), - kCVSMPTETimeType5994(7); - - final int value; - const CVSMPTETimeType(this.value); - - static CVSMPTETimeType fromValue(int value) => switch (value) { - 0 => kCVSMPTETimeType24, - 1 => kCVSMPTETimeType25, - 2 => kCVSMPTETimeType30Drop, - 3 => kCVSMPTETimeType30, - 4 => kCVSMPTETimeType2997, - 5 => kCVSMPTETimeType2997Drop, - 6 => kCVSMPTETimeType60, - 7 => kCVSMPTETimeType5994, - _ => throw ArgumentError('Unknown value for CVSMPTETimeType: $value'), - }; -} - -final class CVTime extends ffi.Struct { - @ffi.Int64() - external int timeValue; - - @ffi.Int32() - external int timeScale; - - @ffi.Int32() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int timeValue, - required int timeScale, - required int flags, - }) => $allocator() - ..ref.timeValue = timeValue - ..ref.timeScale = timeScale - ..ref.flags = flags; -} - -sealed class CVTimeFlags { - static const kCVTimeIsIndefinite = 1; -} - -final class CVTimeStamp extends ffi.Struct { - @ffi.Uint32() - external int version; - - @ffi.Int32() - external int videoTimeScale; - - @ffi.Int64() - external int videoTime; - - @ffi.Uint64() - external int hostTime; - - @ffi.Double() - external double rateScalar; - - @ffi.Int64() - external int videoRefreshPeriod; - - external CVSMPTETime smpteTime; - - @ffi.Uint64() - external int flags; - - @ffi.Uint64() - external int reserved; -} - -sealed class CVTimeStampFlags { - static const kCVTimeStampVideoTimeValid = 1; - static const kCVTimeStampHostTimeValid = 2; - static const kCVTimeStampSMPTETimeValid = 4; - static const kCVTimeStampVideoRefreshPeriodValid = 8; - static const kCVTimeStampRateScalarValid = 16; - static const kCVTimeStampTopField = 65536; - static const kCVTimeStampBottomField = 131072; - static const kCVTimeStampVideoHostTimeValid = 3; - static const kCVTimeStampIsInterlaced = 196608; -} - -typedef CallingConventionType = ffi.UnsignedShort; -typedef DartCallingConventionType = int; - -const int CantDecompress = -186; - -@ffi.Packed(2) -final class CatPositionRec extends ffi.Struct { - @SInt32() - external int initialize; - - @ffi.Array.multi([6]) - external ffi.Array priv; -} - -typedef CharParameter = ffi.Short; -typedef DartCharParameter = int; - -@ffi.Packed(2) -final class ChunkHeader extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ckID, - required int ckSize, - }) => $allocator() - ..ref.ckID = ckID - ..ref.ckSize = ckSize; -} - -typedef CollatorRef = ffi.Pointer; -typedef Collection = ffi.Pointer; -typedef CollectionExceptionProcPtr = - ffi.Pointer>; -typedef CollectionExceptionUPP = CollectionExceptionProcPtr; -typedef CollectionFlattenProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - SInt32 size, - ffi.Pointer data, - ffi.Pointer refCon, - ) - > - >; -typedef CollectionFlattenUPP = CollectionFlattenProcPtr; -typedef CollectionTag = FourCharCode; -typedef ColorComplementProcPtr = - ffi.Pointer< - ffi.NativeFunction rgb)> - >; -typedef ColorComplementUPP = ColorComplementProcPtr; -typedef ColorSearchProcPtr = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer rgb, - ffi.Pointer position, - ) - > - >; -typedef ColorSearchUPP = ColorSearchProcPtr; - -final class ColorSpec extends ffi.Struct { - @ffi.Short() - external int value; - - external RGBColor rgb; -} - -typedef ColorSpecPtr = ffi.Pointer; - -enum ColorSyncAlphaInfo { - kColorSyncAlphaNone(0), - kColorSyncAlphaPremultipliedLast(1), - kColorSyncAlphaPremultipliedFirst(2), - kColorSyncAlphaLast(3), - kColorSyncAlphaFirst(4), - kColorSyncAlphaNoneSkipLast(5), - kColorSyncAlphaNoneSkipFirst(6); - - final int value; - const ColorSyncAlphaInfo(this.value); - - static ColorSyncAlphaInfo fromValue(int value) => switch (value) { - 0 => kColorSyncAlphaNone, - 1 => kColorSyncAlphaPremultipliedLast, - 2 => kColorSyncAlphaPremultipliedFirst, - 3 => kColorSyncAlphaLast, - 4 => kColorSyncAlphaFirst, - 5 => kColorSyncAlphaNoneSkipLast, - 6 => kColorSyncAlphaNoneSkipFirst, - _ => throw ArgumentError('Unknown value for ColorSyncAlphaInfo: $value'), - }; -} - -final class ColorSyncCMM extends ffi.Opaque {} - -typedef ColorSyncCMMIterateCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ColorSyncCMMRef cmm, ffi.Pointer userInfo) - > - >; -typedef ColorSyncCMMRef = ffi.Pointer; - -enum ColorSyncDataDepth { - kColorSync1BitGamut(1), - kColorSync8BitInteger(2), - kColorSync16BitInteger(3), - kColorSync16BitFloat(4), - kColorSync32BitInteger(5), - kColorSync32BitNamedColorIndex(6), - kColorSync32BitFloat(7), - kColorSync10BitInteger(8); - - final int value; - const ColorSyncDataDepth(this.value); - - static ColorSyncDataDepth fromValue(int value) => switch (value) { - 1 => kColorSync1BitGamut, - 2 => kColorSync8BitInteger, - 3 => kColorSync16BitInteger, - 4 => kColorSync16BitFloat, - 5 => kColorSync32BitInteger, - 6 => kColorSync32BitNamedColorIndex, - 7 => kColorSync32BitFloat, - 8 => kColorSync10BitInteger, - _ => throw ArgumentError('Unknown value for ColorSyncDataDepth: $value'), - }; -} - -typedef ColorSyncDataLayout = ffi.Uint32; -typedef DartColorSyncDataLayout = int; -typedef ColorSyncDeviceProfileIterateCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - CFDictionaryRef colorSyncDeviceProfileInfo, - ffi.Pointer userInfo, - ) - > - >; - -final class ColorSyncMD5 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array digest; -} - -typedef ColorSyncMutableProfileRef = ffi.Pointer; - -final class ColorSyncProfile extends ffi.Opaque {} - -typedef ColorSyncProfileIterateCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - CFDictionaryRef profileInfo, - ffi.Pointer userInfo, - ) - > - >; -typedef ColorSyncProfileRef = ffi.Pointer; - -final class ColorSyncTransform extends ffi.Opaque {} - -typedef ColorSyncTransformRef = ffi.Pointer; - -@ffi.Packed(2) -final class ColorTable extends ffi.Struct { - @SInt32() - external int ctSeed; - - @ffi.Short() - external int ctFlags; - - @ffi.Short() - external int ctSize; - - @ffi.Array.multi([1]) - external ffi.Array ctTable; -} - -@ffi.Packed(2) -final class Comment extends ffi.Struct { - @UInt32() - external int timeStamp; - - @MarkerIdType() - external int marker; - - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array text; -} - -const int CommentID = 1129270612; - -@ffi.Packed(2) -final class CommentsChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt16() - external int numComments; - - @ffi.Array.multi([1]) - external ffi.Array comments; -} - -typedef CommentsChunkPtr = ffi.Pointer; - -@ffi.Packed(2) -final class CommonChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @SInt16() - external int numChannels; - - @UInt32() - external int numSampleFrames; - - @SInt16() - external int sampleSize; - - external extended80 sampleRate; -} - -typedef CommonChunkPtr = ffi.Pointer; - -const int CommonID = 1129270605; - -typedef CompTimeValue = wide; -typedef Component = ffi.Pointer; - -final class ComponentAliasResource extends ffi.Struct { - external ComponentResource cr; - - external ComponentDescription aliasCD; -} - -@ffi.Packed(2) -final class ComponentDescription extends ffi.Struct { - @OSType() - external int componentType; - - @OSType() - external int componentSubType; - - @OSType() - external int componentManufacturer; - - @UInt32() - external int componentFlags; - - @UInt32() - external int componentFlagsMask; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int componentType, - required int componentSubType, - required int componentManufacturer, - required int componentFlags, - required int componentFlagsMask, - }) => $allocator() - ..ref.componentType = componentType - ..ref.componentSubType = componentSubType - ..ref.componentManufacturer = componentManufacturer - ..ref.componentFlags = componentFlags - ..ref.componentFlagsMask = componentFlagsMask; -} - -typedef ComponentFunctionUPP = UniversalProcPtr; -typedef ComponentInstance = ffi.Pointer; - -@ffi.Packed(2) -final class ComponentInstanceRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -@ffi.Packed(2) -final class ComponentMPWorkFunctionHeaderRecord extends ffi.Struct { - @UInt32() - external int headerSize; - - @UInt32() - external int recordSize; - - @UInt32() - external int workFlags; - - @UInt16() - external int processorCount; - - @UInt8() - external int unused; - - @UInt8() - external int isRunning; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int headerSize, - required int recordSize, - required int workFlags, - required int processorCount, - required int unused, - required int isRunning, - }) => $allocator() - ..ref.headerSize = headerSize - ..ref.recordSize = recordSize - ..ref.workFlags = workFlags - ..ref.processorCount = processorCount - ..ref.unused = unused - ..ref.isRunning = isRunning; -} - -typedef ComponentMPWorkFunctionHeaderRecordPtr = - ffi.Pointer; -typedef ComponentMPWorkFunctionProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ComponentResult Function( - ffi.Pointer globalRefCon, - ComponentMPWorkFunctionHeaderRecordPtr header, - ) - > - >; -typedef ComponentMPWorkFunctionUPP = ComponentMPWorkFunctionProcPtr; - -@ffi.Packed(2) -final class ComponentParameters extends ffi.Struct { - @UInt8() - external int flags; - - @UInt8() - external int paramSize; - - @SInt16() - external int what; - - @UInt32() - external int padding; - - @ffi.Array.multi([1]) - external ffi.Array params; -} - -@ffi.Packed(2) -final class ComponentPlatformInfo extends ffi.Struct { - @SInt32() - external int componentFlags; - - external ResourceSpec component; - - @SInt16() - external int platformType; -} - -@ffi.Packed(2) -final class ComponentPlatformInfoArray extends ffi.Struct { - @SInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array platformArray; -} - -@ffi.Packed(2) -final class ComponentRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -final class ComponentResource extends ffi.Struct { - external ComponentDescription cd; - - external ResourceSpec component; - - external ResourceSpec componentName; - - external ResourceSpec componentInfo; - - external ResourceSpec componentIcon; -} - -@ffi.Packed(2) -final class ComponentResourceExtension extends ffi.Struct { - @SInt32() - external int componentVersion; - - @SInt32() - external int componentRegisterFlags; - - @SInt16() - external int componentIconFamily; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int componentVersion, - required int componentRegisterFlags, - required int componentIconFamily, - }) => $allocator() - ..ref.componentVersion = componentVersion - ..ref.componentRegisterFlags = componentRegisterFlags - ..ref.componentIconFamily = componentIconFamily; -} - -typedef ComponentResourceHandle = ffi.Pointer; -typedef ComponentResourcePtr = ffi.Pointer; -typedef ComponentResult = SInt32; -typedef ComponentRoutineProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ComponentResult Function( - ffi.Pointer cp, - Handle componentStorage, - ) - > - >; -typedef ComponentRoutineUPP = ComponentRoutineProcPtr; -typedef ConstATSUAttributeValuePtr = ffi.Pointer; -typedef ConstFSEventStreamRef = ffi.Pointer<__FSEventStream>; -typedef ConstFSSpecPtr = ffi.Pointer; -typedef ConstHFSUniStr255Param = ffi.Pointer; -typedef ConstLogicalAddress = ffi.Pointer; -typedef ConstScriptCodeRunPtr = ffi.Pointer; -typedef ConstStr15Param = ffi.Pointer; -typedef ConstStr255Param = ffi.Pointer; -typedef ConstStr27Param = ffi.Pointer; -typedef ConstStr31Param = ffi.Pointer; -typedef ConstStr32Param = ffi.Pointer; -typedef ConstStr63Param = ffi.Pointer; -typedef ConstStrFileNameParam = ConstStr63Param; -typedef ConstStringPtr = ffi.Pointer; -typedef ConstTextEncodingRunPtr = ffi.Pointer; -typedef ConstTextPtr = ffi.Pointer; -typedef ConstTextToUnicodeInfo = TextToUnicodeInfo; -typedef ConstUniCharArrayPtr = ffi.Pointer; -typedef ConstUnicodeMappingPtr = ffi.Pointer; -typedef ConstUnicodeToTextInfo = UnicodeToTextInfo; - -@ffi.Packed(2) -final class ContainerChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt32() - external int formType; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ckID, - required int ckSize, - required int formType, - }) => $allocator() - ..ref.ckID = ckID - ..ref.ckSize = ckSize - ..ref.formType = formType; -} - -const int CopyrightID = 677587232; - -typedef CoreEndianFlipProc = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - OSType dataDomain, - OSType dataType, - SInt16 id, - ffi.Pointer dataPtr, - ByteCount dataSize, - Boolean currentlyNative, - ffi.Pointer refcon, - ) - > - >; - -@ffi.Packed(2) -final class CustomBadgeResource extends ffi.Struct { - @SInt16() - external int version; - - @SInt16() - external int customBadgeResourceID; - - @OSType() - external int customBadgeType; - - @OSType() - external int customBadgeCreator; - - @OSType() - external int windowBadgeType; - - @OSType() - external int windowBadgeCreator; - - @OSType() - external int overrideType; - - @OSType() - external int overrideCreator; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int customBadgeResourceID, - required int customBadgeType, - required int customBadgeCreator, - required int windowBadgeType, - required int windowBadgeCreator, - required int overrideType, - required int overrideCreator, - }) => $allocator() - ..ref.version = version - ..ref.customBadgeResourceID = customBadgeResourceID - ..ref.customBadgeType = customBadgeType - ..ref.customBadgeCreator = customBadgeCreator - ..ref.windowBadgeType = windowBadgeType - ..ref.windowBadgeCreator = windowBadgeCreator - ..ref.overrideType = overrideType - ..ref.overrideCreator = overrideCreator; -} - -typedef CustomBadgeResourceHandle = ffi.Pointer; -typedef CustomBadgeResourcePtr = ffi.Pointer; -typedef DAApprovalSessionRef = ffi.Pointer<__DASession>; -typedef DADiskRef = ffi.Pointer<__DADisk>; -typedef DASessionRef = ffi.Pointer<__DASession>; -typedef DCSDictionaryRef = ffi.Pointer<__DCSDictionary>; -typedef DERByte = ffi.Uint8; -typedef DartDERByte = int; -typedef DERInt = ffi.Uint32; -typedef DartDERInt = int; - -final class DERItem extends ffi.Struct { - external ffi.Pointer data; - - @DERSize() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer data, - required int length, - }) => $allocator() - ..ref.data = data - ..ref.length = length; -} - -typedef DERLong = ffi.Uint64; -typedef DartDERLong = int; -typedef DERShort = ffi.Uint16; -typedef DartDERShort = int; -typedef DERSignedInt = ffi.Int32; -typedef DartDERSignedInt = int; -typedef DERSignedLong = ffi.Int64; -typedef DartDERSignedLong = int; -typedef DERSize = ffi.Size; -typedef DartDERSize = int; -typedef DERTag = DERLong; - -const int DISPATCH_WALLTIME_NOW = -2; - -final class DInfo extends ffi.Struct { - external Rect frRect; - - @UInt16() - external int frFlags; - - external Point frLocation; - - @SInt16() - external int frView; -} - -@ffi.Packed(2) -final class DXInfo extends ffi.Struct { - external Point frScroll; - - @SInt32() - external int frOpenChain; - - @SInt8() - external int frScript; - - @SInt8() - external int frXFlags; - - @SInt16() - external int frComment; - - @SInt32() - external int frPutAway; -} - -typedef DateCachePtr = ffi.Pointer; - -final class DateCacheRecord extends ffi.Struct { - @ffi.Array.multi([256]) - external ffi.Array hidden; -} - -typedef DateDelta = SInt8; -typedef DateForm = SInt8; -typedef DateOrders = SInt8; - -final class DateTimeRec extends ffi.Struct { - @ffi.Short() - external int year; - - @ffi.Short() - external int month; - - @ffi.Short() - external int day; - - @ffi.Short() - external int hour; - - @ffi.Short() - external int minute; - - @ffi.Short() - external int second; - - @ffi.Short() - external int dayOfWeek; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int year, - required int month, - required int day, - required int hour, - required int minute, - required int second, - required int dayOfWeek, - }) => $allocator() - ..ref.year = year - ..ref.month = month - ..ref.day = day - ..ref.hour = hour - ..ref.minute = minute - ..ref.second = second - ..ref.dayOfWeek = dayOfWeek; -} - -typedef DebugAssertOutputHandlerProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - OSType componentSignature, - UInt32 options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - ffi.Long lineNumber, - ffi.Pointer value, - ConstStr255Param outputMsg, - ) - > - >; -typedef DebugAssertOutputHandlerUPP = DebugAssertOutputHandlerProcPtr; -typedef DebugComponentCallbackProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - SInt32 optionSelectorNum, - UInt32 command, - ffi.Pointer optionSetting, - ) - > - >; -typedef DebugComponentCallbackUPP = DebugComponentCallbackProcPtr; -typedef DebuggerDisposeThreadProcPtr = - ffi.Pointer>; -typedef DebuggerDisposeThreadTPP = DebuggerDisposeThreadUPP; -typedef DebuggerDisposeThreadUPP = DebuggerDisposeThreadProcPtr; -typedef DebuggerNewThreadProcPtr = - ffi.Pointer>; -typedef DebuggerNewThreadTPP = DebuggerNewThreadUPP; -typedef DebuggerNewThreadUPP = DebuggerNewThreadProcPtr; -typedef DebuggerThreadSchedulerProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef DebuggerThreadSchedulerTPP = DebuggerThreadSchedulerUPP; -typedef DebuggerThreadSchedulerUPP = DebuggerThreadSchedulerProcPtr; - -final class DeferredTask extends ffi.Opaque {} - -typedef DeferredTaskProcPtr = - ffi.Pointer>; -typedef DeferredTaskPtr = ffi.Pointer; -typedef DeferredTaskUPP = DeferredTaskProcPtr; - -final class DelimiterInfo extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array startDelimiter; - - @ffi.Array.multi([2]) - external ffi.Array endDelimiter; -} - -typedef DescType = ResType; -typedef DialogPtr = ffi.Pointer; -typedef DragConstraint = UInt16; -typedef DragGrayRgnProcPtr = - ffi.Pointer>; -typedef DragGrayRgnUPP = DragGrayRgnProcPtr; -typedef Duration = SInt32; - -const int EQUALTO = 2; - -enum EvCmd { - EVNOP(0), - EVHIDE(1), - EVSHOW(2), - EVMOVE(3), - EVLEVEL(4); - - final int value; - const EvCmd(this.value); - - static EvCmd fromValue(int value) => switch (value) { - 0 => EVNOP, - 1 => EVHIDE, - 2 => EVSHOW, - 3 => EVMOVE, - 4 => EVLEVEL, - _ => throw ArgumentError('Unknown value for EvCmd: $value'), - }; -} - -typedef ExceptionHandler = ExceptionHandlerTPP; -typedef ExceptionHandlerProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function(ffi.Pointer theException) - > - >; -typedef ExceptionHandlerTPP = ExceptionHandlerUPP; -typedef ExceptionHandlerUPP = ExceptionHandlerProcPtr; - -final class ExceptionInfo extends ffi.Union { - external ffi.Pointer memoryInfo; -} - -final class ExceptionInformation extends ffi.Struct { - @ExceptionKind() - external int theKind; - - external ffi.Pointer machineState; - - external ffi.Pointer registerImage; - - external ffi.Pointer FPUImage; - - external ExceptionInfo info; - - external ffi.Pointer vectorImage; -} - -final class ExceptionInformationPowerPC extends ffi.Struct { - @ExceptionKind() - external int theKind; - - external ffi.Pointer machineState; - - external ffi.Pointer registerImage; - - external ffi.Pointer FPUImage; - - external ExceptionInfo info; - - external ffi.Pointer vectorImage; -} - -typedef ExceptionKind = ffi.UnsignedLong; -typedef DartExceptionKind = int; - -@ffi.Packed(2) -final class ExtCommonChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @SInt16() - external int numChannels; - - @UInt32() - external int numSampleFrames; - - @SInt16() - external int sampleSize; - - external extended80 sampleRate; - - @UInt32() - external int compressionType; - - @ffi.Array.multi([1]) - external ffi.Array compressionName; -} - -typedef ExtCommonChunkPtr = ffi.Pointer; - -@ffi.Packed(2) -final class ExtComponentResource extends ffi.Struct { - external ComponentDescription cd; - - external ResourceSpec component; - - external ResourceSpec componentName; - - external ResourceSpec componentInfo; - - external ResourceSpec componentIcon; - - @SInt32() - external int componentVersion; - - @SInt32() - external int componentRegisterFlags; - - @SInt16() - external int componentIconFamily; - - @SInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array platformArray; -} - -typedef ExtComponentResourceHandle = ffi.Pointer; -typedef ExtComponentResourcePtr = ffi.Pointer; - -@ffi.Packed(2) -final class ExtendedFileInfo extends ffi.Struct { - @ffi.Array.multi([4]) - external ffi.Array reserved1; - - @UInt16() - external int extendedFinderFlags; - - @SInt16() - external int reserved2; - - @SInt32() - external int putAwayFolderID; -} - -@ffi.Packed(2) -final class ExtendedFolderInfo extends ffi.Struct { - external Point scrollPosition; - - @SInt32() - external int reserved1; - - @UInt16() - external int extendedFinderFlags; - - @SInt16() - external int reserved2; - - @SInt32() - external int putAwayFolderID; -} - -typedef FILE = __sFILE; - -@ffi.Packed(2) -final class FInfo extends ffi.Struct { - @OSType() - external int fdType; - - @OSType() - external int fdCreator; - - @UInt16() - external int fdFlags; - - external Point fdLocation; - - @SInt16() - external int fdFldr; -} - -typedef FMFilterSelector = UInt32; -typedef FMFont = UInt32; -typedef FMFontFamily = SInt16; - -final class FMFontFamilyInstance extends ffi.Struct { - @FMFontFamily() - external int fontFamily; - - @FMFontStyle() - external int fontStyle; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fontFamily, - required int fontStyle, - }) => $allocator() - ..ref.fontFamily = fontFamily - ..ref.fontStyle = fontStyle; -} - -@ffi.Packed(2) -final class FMFontFamilyInstanceIterator extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array reserved; -} - -@ffi.Packed(2) -final class FMFontFamilyIterator extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array reserved; -} - -@ffi.Packed(2) -final class FMFontIterator extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array reserved; -} - -typedef FMFontSize = SInt16; -typedef FMFontStyle = SInt16; -typedef FMGeneration = UInt32; - -final class FMInput extends ffi.Struct { - @ffi.Short() - external int family; - - @ffi.Short() - external int size; - - @Style() - external int face; - - @Boolean() - external int needBits; - - @ffi.Short() - external int device; - - external Point numer; - - external Point denom; -} - -typedef FNMessage = UInt32; -typedef FNSubscriptionProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - FNMessage message, - OptionBits flags, - ffi.Pointer refcon, - FNSubscriptionRef subscription, - ) - > - >; -typedef FNSubscriptionRef = ffi.Pointer; -typedef FNSubscriptionUPP = FNSubscriptionProcPtr; - -const int FORMID = 1179603533; - -final class FPUInformation extends ffi.Struct { - external ffi.Pointer __unusedFPUInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedFPUInformationField, - }) => - $allocator() - ..ref.__unusedFPUInformationField = $unusedFPUInformationField; -} - -final class FPUInformationPowerPC extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array Registers; - - @ffi.UnsignedLong() - external int FPSCR; - - @ffi.UnsignedLong() - external int Reserved; -} - -typedef FSAliasFilterProcPtr = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - Ptr myDataPtr, - ) - > - >; - -@ffi.Packed(2) -final class FSAliasInfo extends ffi.Struct { - external UTCDateTime volumeCreateDate; - - external UTCDateTime targetCreateDate; - - @OSType() - external int fileType; - - @OSType() - external int fileCreator; - - @UInt32() - external int parentDirID; - - @UInt32() - external int nodeID; - - @UInt16() - external int filesystemID; - - @UInt16() - external int signature; - - @Boolean() - external int volumeIsBootVolume; - - @Boolean() - external int volumeIsAutomounted; - - @Boolean() - external int volumeIsEjectable; - - @Boolean() - external int volumeHasPersistentFileIDs; - - @Boolean() - external int isDirectory; -} - -typedef FSAliasInfoBitmap = UInt32; -typedef FSAliasInfoPtr = ffi.Pointer; -typedef FSAllocationFlags = UInt16; - -@ffi.Packed(2) -final class FSCatalogBulkParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - @Boolean() - external int containerChanged; - - @UInt8() - external int reserved; - - @FSIteratorFlags() - external int iteratorFlags; - - external FSIterator iterator; - - external ffi.Pointer container; - - @ItemCount() - external int maximumItems; - - @ItemCount() - external int actualItems; - - @FSCatalogInfoBitmap() - external int whichInfo; - - external ffi.Pointer catalogInfo; - - external ffi.Pointer refs; - - external FSSpecPtr specs; - - external ffi.Pointer names; - - external ffi.Pointer searchParams; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required int containerChanged, - required int reserved, - required int iteratorFlags, - required FSIterator iterator, - required ffi.Pointer container, - required int maximumItems, - required int actualItems, - required int whichInfo, - required ffi.Pointer catalogInfo, - required ffi.Pointer refs, - required FSSpecPtr specs, - required ffi.Pointer names, - required ffi.Pointer searchParams, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.containerChanged = containerChanged - ..ref.reserved = reserved - ..ref.iteratorFlags = iteratorFlags - ..ref.iterator = iterator - ..ref.container = container - ..ref.maximumItems = maximumItems - ..ref.actualItems = actualItems - ..ref.whichInfo = whichInfo - ..ref.catalogInfo = catalogInfo - ..ref.refs = refs - ..ref.specs = specs - ..ref.names = names - ..ref.searchParams = searchParams; -} - -typedef FSCatalogBulkParamPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FSCatalogInfo extends ffi.Struct { - @UInt16() - external int nodeFlags; - - @FSVolumeRefNum() - external int volume; - - @UInt32() - external int parentDirID; - - @UInt32() - external int nodeID; - - @UInt8() - external int sharingFlags; - - @UInt8() - external int userPrivileges; - - @UInt8() - external int reserved1; - - @UInt8() - external int reserved2; - - external UTCDateTime createDate; - - external UTCDateTime contentModDate; - - external UTCDateTime attributeModDate; - - external UTCDateTime accessDate; - - external UTCDateTime backupDate; - - external FSPermissionInfo permissions; - - @ffi.Array.multi([16]) - external ffi.Array finderInfo; - - @ffi.Array.multi([16]) - external ffi.Array extFinderInfo; - - @UInt64() - external int dataLogicalSize; - - @UInt64() - external int dataPhysicalSize; - - @UInt64() - external int rsrcLogicalSize; - - @UInt64() - external int rsrcPhysicalSize; - - @UInt32() - external int valence; - - @TextEncoding() - external int textEncodingHint; -} - -typedef FSCatalogInfoBitmap = UInt32; -typedef FSCatalogInfoPtr = ffi.Pointer; -typedef FSEjectStatus = UInt32; -typedef FSEventStreamCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ConstFSEventStreamRef streamRef, - ffi.Pointer clientCallBackInfo, - ffi.Size numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ) - > - >; - -@ffi.Packed(2) -final class FSEventStreamContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef FSEventStreamCreateFlags = UInt32; -typedef FSEventStreamEventFlags = UInt32; -typedef FSEventStreamEventId = UInt64; -typedef FSEventStreamRef = ffi.Pointer<__FSEventStream>; - -@ffi.Packed(2) -final class FSFileOperationClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external CFAllocatorRetainCallBack retain; - - external CFAllocatorReleaseCallBack release; - - external CFAllocatorCopyDescriptionCallBack copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required CFAllocatorRetainCallBack retain, - required CFAllocatorReleaseCallBack release, - required CFAllocatorCopyDescriptionCallBack copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef FSFileOperationRef = ffi.Pointer<__FSFileOperation>; -typedef FSFileOperationStage = UInt32; -typedef FSFileOperationStatusProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - FSFileOperationRef fileOp, - ffi.Pointer currentItem, - FSFileOperationStage stage, - OSStatus error, - CFDictionaryRef statusDictionary, - ffi.Pointer info, - ) - > - >; -typedef FSFileSecurityRef = ffi.Pointer<__FSFileSecurity>; - -@ffi.Packed(2) -final class FSForkCBInfoParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - @FSIORefNum() - external int desiredRefNum; - - @FSVolumeRefNum() - external int volumeRefNum; - - @FSIORefNum() - external int iterator; - - @FSVolumeRefNum() - external int actualRefNum; - - external ffi.Pointer ref; - - external ffi.Pointer forkInfo; - - external ffi.Pointer forkName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required int desiredRefNum, - required int volumeRefNum, - required int iterator, - required int actualRefNum, - required ffi.Pointer ref, - required ffi.Pointer forkInfo, - required ffi.Pointer forkName, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.desiredRefNum = desiredRefNum - ..ref.volumeRefNum = volumeRefNum - ..ref.iterator = iterator - ..ref.actualRefNum = actualRefNum - ..ref.ref = ref - ..ref.forkInfo = forkInfo - ..ref.forkName = forkName; -} - -typedef FSForkCBInfoParamPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FSForkIOParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - external ffi.Pointer reserved1; - - @SInt16() - external int reserved2; - - @FSIORefNum() - external int forkRefNum; - - @UInt8() - external int reserved3; - - @SInt8() - external int permissions; - - external ffi.Pointer ref; - - external Ptr buffer; - - @UInt32() - external int requestCount; - - @UInt32() - external int actualCount; - - @UInt16() - external int positionMode; - - @SInt64() - external int positionOffset; - - @FSAllocationFlags() - external int allocationFlags; - - @UInt64() - external int allocationAmount; - - @UniCharCount() - external int forkNameLength; - - external ffi.Pointer forkName; - - external CatPositionRec forkIterator; - - external ffi.Pointer outForkName; -} - -typedef FSForkIOParamPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FSForkInfo extends ffi.Struct { - @FSForkInfoFlags() - external int flags; - - @SInt8() - external int permissions; - - @FSVolumeRefNum() - external int volume; - - @UInt32() - external int reserved2; - - @UInt32() - external int nodeID; - - @UInt32() - external int forkID; - - @UInt64() - external int currentPosition; - - @UInt64() - external int logicalEOF; - - @UInt64() - external int physicalEOF; - - @UInt64() - external int process; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int permissions, - required int volume, - required int reserved2, - required int nodeID, - required int forkID, - required int currentPosition, - required int logicalEOF, - required int physicalEOF, - required int process, - }) => $allocator() - ..ref.flags = flags - ..ref.permissions = permissions - ..ref.volume = volume - ..ref.reserved2 = reserved2 - ..ref.nodeID = nodeID - ..ref.forkID = forkID - ..ref.currentPosition = currentPosition - ..ref.logicalEOF = logicalEOF - ..ref.physicalEOF = physicalEOF - ..ref.process = process; -} - -typedef FSForkInfoFlags = UInt8; -typedef FSForkInfoPtr = ffi.Pointer; -typedef FSIORefNum = ffi.Int; -typedef DartFSIORefNum = int; -typedef FSIterator = ffi.Pointer; -typedef FSIteratorFlags = OptionBits; -typedef FSMountStatus = UInt32; -typedef FSPathFileOperationStatusProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - FSFileOperationRef fileOp, - ffi.Pointer currentItem, - FSFileOperationStage stage, - OSStatus error, - CFDictionaryRef statusDictionary, - ffi.Pointer info, - ) - > - >; - -@ffi.Packed(2) -final class FSPermissionInfo extends ffi.Struct { - @UInt32() - external int userID; - - @UInt32() - external int groupID; - - @UInt8() - external int reserved1; - - @UInt8() - external int userAccess; - - @UInt16() - external int mode; - - external FSFileSecurityRef fileSec; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int userID, - required int groupID, - required int reserved1, - required int userAccess, - required int mode, - required FSFileSecurityRef fileSec, - }) => $allocator() - ..ref.userID = userID - ..ref.groupID = groupID - ..ref.reserved1 = reserved1 - ..ref.userAccess = userAccess - ..ref.mode = mode - ..ref.fileSec = fileSec; -} - -@ffi.Packed(2) -final class FSRangeLockParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - @FSIORefNum() - external int forkRefNum; - - @UInt64() - external int requestCount; - - @UInt16() - external int positionMode; - - @SInt64() - external int positionOffset; - - @UInt64() - external int rangeStart; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required int forkRefNum, - required int requestCount, - required int positionMode, - required int positionOffset, - required int rangeStart, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.forkRefNum = forkRefNum - ..ref.requestCount = requestCount - ..ref.positionMode = positionMode - ..ref.positionOffset = positionOffset - ..ref.rangeStart = rangeStart; -} - -typedef FSRangeLockParamPtr = ffi.Pointer; - -final class FSRef extends ffi.Struct { - @ffi.Array.multi([80]) - external ffi.Array hidden; -} - -@ffi.Packed(2) -final class FSRefForkIOParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - external ffi.Pointer parentRef; - - @UniCharCount() - external int nameLength; - - external ffi.Pointer name; - - @FSCatalogInfoBitmap() - external int whichInfo; - - external ffi.Pointer catInfo; - - @UniCharCount() - external int forkNameLength; - - external ffi.Pointer forkName; - - @SInt8() - external int permissions; - - @UInt8() - external int reserved1; - - @FSIORefNum() - external int forkRefNum; - - external ffi.Pointer newRef; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required ffi.Pointer parentRef, - required int nameLength, - required ffi.Pointer name, - required int whichInfo, - required ffi.Pointer catInfo, - required int forkNameLength, - required ffi.Pointer forkName, - required int permissions, - required int reserved1, - required int forkRefNum, - required ffi.Pointer newRef, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.parentRef = parentRef - ..ref.nameLength = nameLength - ..ref.name = name - ..ref.whichInfo = whichInfo - ..ref.catInfo = catInfo - ..ref.forkNameLength = forkNameLength - ..ref.forkName = forkName - ..ref.permissions = permissions - ..ref.reserved1 = reserved1 - ..ref.forkRefNum = forkRefNum - ..ref.newRef = newRef; -} - -typedef FSRefForkIOParamPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FSRefParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - external ConstStringPtr ioNamePtr; - - @FSVolumeRefNum() - external int ioVRefNum; - - @SInt16() - external int reserved1; - - @UInt8() - external int reserved2; - - @UInt8() - external int reserved3; - - external ffi.Pointer ref; - - @FSCatalogInfoBitmap() - external int whichInfo; - - external ffi.Pointer catInfo; - - @UniCharCount() - external int nameLength; - - external ffi.Pointer name; - - @UInt32() - external int ioDirID; - - external FSSpecPtr spec; - - external ffi.Pointer parentRef; - - external ffi.Pointer newRef; - - @TextEncoding() - external int textEncodingHint; - - external ffi.Pointer outName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required ConstStringPtr ioNamePtr, - required int ioVRefNum, - required int reserved1, - required int reserved2, - required int reserved3, - required ffi.Pointer ref, - required int whichInfo, - required ffi.Pointer catInfo, - required int nameLength, - required ffi.Pointer name, - required int ioDirID, - required FSSpecPtr spec, - required ffi.Pointer parentRef, - required ffi.Pointer newRef, - required int textEncodingHint, - required ffi.Pointer outName, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.ioNamePtr = ioNamePtr - ..ref.ioVRefNum = ioVRefNum - ..ref.reserved1 = reserved1 - ..ref.reserved2 = reserved2 - ..ref.reserved3 = reserved3 - ..ref.ref = ref - ..ref.whichInfo = whichInfo - ..ref.catInfo = catInfo - ..ref.nameLength = nameLength - ..ref.name = name - ..ref.ioDirID = ioDirID - ..ref.spec = spec - ..ref.parentRef = parentRef - ..ref.newRef = newRef - ..ref.textEncodingHint = textEncodingHint - ..ref.outName = outName; -} - -typedef FSRefParamPtr = ffi.Pointer; -typedef FSRefPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FSSearchParams extends ffi.Struct { - @Duration() - external int searchTime; - - @OptionBits() - external int searchBits; - - @UniCharCount() - external int searchNameLength; - - external ffi.Pointer searchName; - - external ffi.Pointer searchInfo1; - - external ffi.Pointer searchInfo2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int searchTime, - required int searchBits, - required int searchNameLength, - required ffi.Pointer searchName, - required ffi.Pointer searchInfo1, - required ffi.Pointer searchInfo2, - }) => $allocator() - ..ref.searchTime = searchTime - ..ref.searchBits = searchBits - ..ref.searchNameLength = searchNameLength - ..ref.searchName = searchName - ..ref.searchInfo1 = searchInfo1 - ..ref.searchInfo2 = searchInfo2; -} - -typedef FSSearchParamsPtr = ffi.Pointer; - -final class FSSpec extends ffi.Struct { - @ffi.Array.multi([70]) - external ffi.Array hidden; -} - -typedef FSSpecArrayPtr = FSSpecPtr; -typedef FSSpecHandle = ffi.Pointer; -typedef FSSpecPtr = ffi.Pointer; -typedef FSUnmountStatus = UInt32; -typedef FSVolumeEjectProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - OSStatus err, - FSVolumeRefNum volumeRefNum, - pid_t dissenter, - ) - > - >; -typedef FSVolumeEjectUPP = FSVolumeEjectProcPtr; - -@ffi.Packed(2) -final class FSVolumeInfo extends ffi.Struct { - external UTCDateTime createDate; - - external UTCDateTime modifyDate; - - external UTCDateTime backupDate; - - external UTCDateTime checkedDate; - - @UInt32() - external int fileCount; - - @UInt32() - external int folderCount; - - @UInt64() - external int totalBytes; - - @UInt64() - external int freeBytes; - - @UInt32() - external int blockSize; - - @UInt32() - external int totalBlocks; - - @UInt32() - external int freeBlocks; - - @UInt32() - external int nextAllocation; - - @UInt32() - external int rsrcClumpSize; - - @UInt32() - external int dataClumpSize; - - @UInt32() - external int nextCatalogID; - - @ffi.Array.multi([32]) - external ffi.Array finderInfo; - - @UInt16() - external int flags; - - @UInt16() - external int filesystemID; - - @UInt16() - external int signature; - - @UInt16() - external int driveNumber; - - @FSIORefNum() - external int driverRefNum; -} - -typedef FSVolumeInfoBitmap = UInt32; - -@ffi.Packed(2) -final class FSVolumeInfoParam extends ffi.Struct { - external QElemPtr qLink; - - @SInt16() - external int qType; - - @SInt16() - external int ioTrap; - - external Ptr ioCmdAddr; - - external IOCompletionUPP ioCompletion; - - @OSErr() - external int ioResult; - - external StringPtr ioNamePtr; - - @FSVolumeRefNum() - external int ioVRefNum; - - @UInt32() - external int volumeIndex; - - @FSVolumeInfoBitmap() - external int whichInfo; - - external ffi.Pointer volumeInfo; - - external ffi.Pointer volumeName; - - external ffi.Pointer ref; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required int ioTrap, - required Ptr ioCmdAddr, - required IOCompletionUPP ioCompletion, - required int ioResult, - required StringPtr ioNamePtr, - required int ioVRefNum, - required int volumeIndex, - required int whichInfo, - required ffi.Pointer volumeInfo, - required ffi.Pointer volumeName, - required ffi.Pointer ref, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.ioTrap = ioTrap - ..ref.ioCmdAddr = ioCmdAddr - ..ref.ioCompletion = ioCompletion - ..ref.ioResult = ioResult - ..ref.ioNamePtr = ioNamePtr - ..ref.ioVRefNum = ioVRefNum - ..ref.volumeIndex = volumeIndex - ..ref.whichInfo = whichInfo - ..ref.volumeInfo = volumeInfo - ..ref.volumeName = volumeName - ..ref.ref = ref; -} - -typedef FSVolumeInfoParamPtr = ffi.Pointer; -typedef FSVolumeInfoPtr = ffi.Pointer; -typedef FSVolumeMountProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - OSStatus err, - FSVolumeRefNum mountedVolumeRefNum, - ) - > - >; -typedef FSVolumeMountUPP = FSVolumeMountProcPtr; -typedef FSVolumeOperation = ffi.Pointer; -typedef FSVolumeRefNum = SInt16; -typedef FSVolumeUnmountProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - FSVolumeOperation volumeOp, - ffi.Pointer clientData, - OSStatus err, - FSVolumeRefNum volumeRefNum, - pid_t dissenter, - ) - > - >; -typedef FSVolumeUnmountUPP = FSVolumeUnmountProcPtr; - -final class FVector extends ffi.Struct { - @ffi.Short() - external int start; - - @ffi.Short() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int start, - required int length, - }) => $allocator() - ..ref.start = start - ..ref.length = length; -} - -@ffi.Packed(2) -final class FXInfo extends ffi.Struct { - @SInt16() - external int fdIconID; - - @ffi.Array.multi([3]) - external ffi.Array fdReserved; - - @SInt8() - external int fdScript; - - @SInt8() - external int fdXFlags; - - @SInt16() - external int fdComment; - - @SInt32() - external int fdPutAway; -} - -@ffi.Packed(2) -final class FamRec extends ffi.Struct { - @SInt16() - external int ffFlags; - - @SInt16() - external int ffFamID; - - @SInt16() - external int ffFirstChar; - - @SInt16() - external int ffLastChar; - - @SInt16() - external int ffAscent; - - @SInt16() - external int ffDescent; - - @SInt16() - external int ffLeading; - - @SInt16() - external int ffWidMax; - - @SInt32() - external int ffWTabOff; - - @SInt32() - external int ffKernOff; - - @SInt32() - external int ffStylOff; - - @ffi.Array.multi([9]) - external ffi.Array ffProperty; - - @ffi.Array.multi([2]) - external ffi.Array ffIntl; - - @SInt16() - external int ffVersion; -} - -@ffi.Packed(2) -final class FileInfo extends ffi.Struct { - @OSType() - external int fileType; - - @OSType() - external int fileCreator; - - @UInt16() - external int finderFlags; - - external Point location; - - @UInt16() - external int reservedField; -} - -typedef Fixed = SInt32; - -@ffi.Packed(2) -final class FixedPoint extends ffi.Struct { - @Fixed() - external int x; - - @Fixed() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -typedef FixedPtr = ffi.Pointer; - -@ffi.Packed(2) -final class FixedRect extends ffi.Struct { - @Fixed() - external int left; - - @Fixed() - external int top; - - @Fixed() - external int right; - - @Fixed() - external int bottom; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int left, - required int top, - required int right, - required int bottom, - }) => $allocator() - ..ref.left = left - ..ref.top = top - ..ref.right = right - ..ref.bottom = bottom; -} - -typedef Float32 = ffi.Float; -typedef DartFloat32 = double; - -@ffi.Packed(2) -final class Float32Point extends ffi.Struct { - @Float32() - external double x; - - @Float32() - external double y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double x, - required double y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -typedef Float64 = ffi.Double; -typedef DartFloat64 = double; - -final class Float80 extends ffi.Struct { - @SInt16() - external int exp$1; - - @ffi.Array.multi([4]) - external ffi.Array man; -} - -final class Float96 extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array exp$1; - - @ffi.Array.multi([4]) - external ffi.Array man; -} - -@ffi.Packed(2) -final class FndrDirInfo extends ffi.Struct { - external UnnamedStruct$5 frRect; - - @ffi.UnsignedShort() - external int frFlags; - - external UnnamedStruct$6 frLocation; - - @ffi.Int16() - external int opaque; -} - -@ffi.Packed(2) -final class FndrExtendedDirInfo extends ffi.Struct { - @u_int32_t() - external int document_id; - - @u_int32_t() - external int date_added; - - @u_int16_t() - external int extended_flags; - - @u_int16_t() - external int reserved3; - - @u_int32_t() - external int write_gen_counter; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int document_id, - required int date_added, - required int extended_flags, - required int reserved3, - required int write_gen_counter, - }) => $allocator() - ..ref.document_id = document_id - ..ref.date_added = date_added - ..ref.extended_flags = extended_flags - ..ref.reserved3 = reserved3 - ..ref.write_gen_counter = write_gen_counter; -} - -@ffi.Packed(2) -final class FndrExtendedFileInfo extends ffi.Struct { - @u_int32_t() - external int document_id; - - @u_int32_t() - external int date_added; - - @u_int16_t() - external int extended_flags; - - @u_int16_t() - external int reserved2; - - @u_int32_t() - external int write_gen_counter; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int document_id, - required int date_added, - required int extended_flags, - required int reserved2, - required int write_gen_counter, - }) => $allocator() - ..ref.document_id = document_id - ..ref.date_added = date_added - ..ref.extended_flags = extended_flags - ..ref.reserved2 = reserved2 - ..ref.write_gen_counter = write_gen_counter; -} - -@ffi.Packed(2) -final class FndrFileInfo extends ffi.Struct { - @u_int32_t() - external int fdType; - - @u_int32_t() - external int fdCreator; - - @u_int16_t() - external int fdFlags; - - external UnnamedStruct$7 fdLocation; - - @ffi.Int16() - external int opaque; -} - -@ffi.Packed(2) -final class FndrOpaqueInfo extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array opaque; -} - -typedef FolderClass = OSType; - -@ffi.Packed(2) -final class FolderDesc extends ffi.Struct { - @Size() - external int descSize; - - @FolderType() - external int foldType; - - @FolderDescFlags() - external int flags; - - @FolderClass() - external int foldClass; - - @FolderType() - external int foldLocation; - - @OSType() - external int badgeSignature; - - @OSType() - external int badgeType; - - @UInt32() - external int reserved; - - @ffi.Array.multi([64]) - external ffi.Array name; -} - -typedef FolderDescFlags = UInt32; -typedef FolderDescPtr = ffi.Pointer; - -final class FolderInfo extends ffi.Struct { - external Rect windowBounds; - - @UInt16() - external int finderFlags; - - external Point location; - - @UInt16() - external int reservedField; -} - -typedef FolderLocation = OSType; -typedef FolderManagerNotificationProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - OSType message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ) - > - >; -typedef FolderManagerNotificationUPP = FolderManagerNotificationProcPtr; - -@ffi.Packed(2) -final class FolderRouting extends ffi.Struct { - @Size() - external int descSize; - - @OSType() - external int fileType; - - @FolderType() - external int routeFromFolder; - - @FolderType() - external int routeToFolder; - - @RoutingFlags() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int descSize, - required int fileType, - required int routeFromFolder, - required int routeToFolder, - required int flags, - }) => $allocator() - ..ref.descSize = descSize - ..ref.fileType = fileType - ..ref.routeFromFolder = routeFromFolder - ..ref.routeToFolder = routeToFolder - ..ref.flags = flags; -} - -typedef FolderRoutingPtr = ffi.Pointer; -typedef FolderType = OSType; - -final class FontAssoc extends ffi.Struct { - @SInt16() - external int numAssoc; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numAssoc, - }) => $allocator()..ref.numAssoc = numAssoc; -} - -final class FontInfo extends ffi.Struct { - @ffi.Short() - external int ascent; - - @ffi.Short() - external int descent; - - @ffi.Short() - external int widMax; - - @ffi.Short() - external int leading; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ascent, - required int descent, - required int widMax, - required int leading, - }) => $allocator() - ..ref.ascent = ascent - ..ref.descent = descent - ..ref.widMax = widMax - ..ref.leading = leading; -} - -typedef FontLanguageCode = UInt32; -typedef FontNameCode = UInt32; -typedef FontPlatformCode = UInt32; - -final class FontRec extends ffi.Struct { - @SInt16() - external int fontType; - - @SInt16() - external int firstChar; - - @SInt16() - external int lastChar; - - @SInt16() - external int widMax; - - @SInt16() - external int kernMax; - - @SInt16() - external int nDescent; - - @SInt16() - external int fRectWidth; - - @SInt16() - external int fRectHeight; - - @UInt16() - external int owTLoc; - - @SInt16() - external int ascent; - - @SInt16() - external int descent; - - @SInt16() - external int leading; - - @SInt16() - external int rowWords; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fontType, - required int firstChar, - required int lastChar, - required int widMax, - required int kernMax, - required int nDescent, - required int fRectWidth, - required int fRectHeight, - required int owTLoc, - required int ascent, - required int descent, - required int leading, - required int rowWords, - }) => $allocator() - ..ref.fontType = fontType - ..ref.firstChar = firstChar - ..ref.lastChar = lastChar - ..ref.widMax = widMax - ..ref.kernMax = kernMax - ..ref.nDescent = nDescent - ..ref.fRectWidth = fRectWidth - ..ref.fRectHeight = fRectHeight - ..ref.owTLoc = owTLoc - ..ref.ascent = ascent - ..ref.descent = descent - ..ref.leading = leading - ..ref.rowWords = rowWords; -} - -typedef FontRecHdl = ffi.Pointer; -typedef FontRecPtr = ffi.Pointer; -typedef FontScriptCode = UInt32; - -@ffi.Packed(2) -final class FontVariation extends ffi.Struct { - @FourCharCode() - external int name; - - @Fixed() - external int value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int name, - required int value, - }) => $allocator() - ..ref.name = name - ..ref.value = value; -} - -typedef FormatClass = SInt8; -typedef FormatResultType = SInt8; -typedef FormatStatus = ffi.Short; -typedef DartFormatStatus = int; - -@ffi.Packed(2) -final class FormatVersionChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt32() - external int timestamp; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ckID, - required int ckSize, - required int timestamp, - }) => $allocator() - ..ref.ckID = ckID - ..ref.ckSize = ckSize - ..ref.timestamp = timestamp; -} - -typedef FormatVersionChunkPtr = ffi.Pointer; - -const int FormatVersionID = 1180058962; - -const int ForwardBackwardLooping = 2; - -const int ForwardLooping = 1; - -typedef FourCharCode = UInt32; -typedef Fract = SInt32; -typedef FractPtr = ffi.Pointer; -typedef GDHandle = ffi.Pointer; -typedef GDPtr = ffi.Pointer; - -@ffi.Packed(2) -final class GDevice extends ffi.Struct { - @ffi.Short() - external int gdRefNum; - - @ffi.Short() - external int gdID; - - @ffi.Short() - external int gdType; - - external Handle gdITable; - - @ffi.Short() - external int gdResPref; - - external Handle gdSearchProc; - - external Handle gdCompProc; - - @ffi.Short() - external int gdFlags; - - external PixMapHandle gdPMap; - - @SInt32() - external int gdRefCon; - - external GDHandle gdNextGD; - - external Rect gdRect; - - @SInt32() - external int gdMode; - - @ffi.Short() - external int gdCCBytes; - - @ffi.Short() - external int gdCCDepth; - - external Handle gdCCXData; - - external Handle gdCCXMask; - - external Handle gdExt; -} - -typedef GLbitfield = ffi.Uint32; -typedef DartGLbitfield = int; -typedef GLboolean = ffi.Uint8; -typedef DartGLboolean = int; -typedef GLbyte = ffi.Int8; -typedef DartGLbyte = int; -typedef GLchar = ffi.Char; -typedef DartGLchar = int; -typedef GLcharARB = ffi.Char; -typedef DartGLcharARB = int; -typedef GLclampd = ffi.Double; -typedef DartGLclampd = double; -typedef GLclampf = ffi.Float; -typedef DartGLclampf = double; -typedef GLdouble = ffi.Double; -typedef DartGLdouble = double; -typedef GLenum = ffi.Uint32; -typedef DartGLenum = int; -typedef GLfixed = ffi.Int32; -typedef DartGLfixed = int; -typedef GLfloat = ffi.Float; -typedef DartGLfloat = double; -typedef GLhalf = ffi.Uint16; -typedef DartGLhalf = int; -typedef GLhalfARB = ffi.Uint16; -typedef DartGLhalfARB = int; -typedef GLhandleARB = ffi.Pointer; -typedef GLint = ffi.Int32; -typedef DartGLint = int; -typedef GLint64 = ffi.Int64; -typedef DartGLint64 = int; -typedef GLint64EXT = ffi.Int64; -typedef DartGLint64EXT = int; -typedef GLintptr = ffi.IntPtr; -typedef DartGLintptr = int; -typedef GLintptrARB = ffi.IntPtr; -typedef DartGLintptrARB = int; -typedef GLshort = ffi.Int16; -typedef DartGLshort = int; -typedef GLsizei = ffi.Int32; -typedef DartGLsizei = int; -typedef GLsizeiptr = ffi.IntPtr; -typedef DartGLsizeiptr = int; -typedef GLsizeiptrARB = ffi.IntPtr; -typedef DartGLsizeiptrARB = int; -typedef GLsync = ffi.Pointer<__GLsync>; -typedef GLubyte = ffi.Uint8; -typedef DartGLubyte = int; -typedef GLuint = ffi.Uint32; -typedef DartGLuint = int; -typedef GLuint64 = ffi.Uint64; -typedef DartGLuint64 = int; -typedef GLuint64EXT = ffi.Uint64; -typedef DartGLuint64EXT = int; -typedef GLushort = ffi.Uint16; -typedef DartGLushort = int; -typedef GLvoid = ffi.Void; -typedef DartGLvoid = void; - -const int GREATERTHAN = 0; - -typedef GWorldFlags = ffi.UnsignedLong; -typedef DartGWorldFlags = int; -typedef GWorldPtr = CGrafPtr; -typedef GetMissingComponentResourceProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - Component c, - OSType resType, - SInt16 resID, - ffi.Pointer refCon, - ffi.Pointer resource, - ) - > - >; -typedef GetMissingComponentResourceUPP = GetMissingComponentResourceProcPtr; - -@ffi.Packed(2) -final class GetVolParmsInfoBuffer extends ffi.Struct { - @SInt16() - external int vMVersion; - - @SInt32() - external int vMAttrib; - - external Handle vMLocalHand; - - @SInt32() - external int vMServerAdr; - - @SInt32() - external int vMVolumeGrade; - - @SInt16() - external int vMForeignPrivID; - - @SInt32() - external int vMExtendedAttributes; - - external ffi.Pointer vMDeviceID; - - @UniCharCount() - external int vMMaxNameLength; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int vMVersion, - required int vMAttrib, - required Handle vMLocalHand, - required int vMServerAdr, - required int vMVolumeGrade, - required int vMForeignPrivID, - required int vMExtendedAttributes, - required ffi.Pointer vMDeviceID, - required int vMMaxNameLength, - }) => $allocator() - ..ref.vMVersion = vMVersion - ..ref.vMAttrib = vMAttrib - ..ref.vMLocalHand = vMLocalHand - ..ref.vMServerAdr = vMServerAdr - ..ref.vMVolumeGrade = vMVolumeGrade - ..ref.vMForeignPrivID = vMForeignPrivID - ..ref.vMExtendedAttributes = vMExtendedAttributes - ..ref.vMDeviceID = vMDeviceID - ..ref.vMMaxNameLength = vMMaxNameLength; -} - -typedef GlyphCollection = UInt16; -typedef GlyphID = ATSGlyphRef; - -final class GrafPort extends ffi.Struct { - @ffi.Array.multi([87]) - external ffi.Array whatever; -} - -typedef GrafPtr = ffi.Pointer; -typedef GrafVerb = SInt8; - -const int HDActivity = 3; - -@ffi.Packed(2) -final class HFSCatalogFile extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @u_int8_t() - external int flags; - - @ffi.Int8() - external int fileType; - - external FndrFileInfo userInfo; - - @u_int32_t() - external int fileID; - - @u_int16_t() - external int dataStartBlock; - - @ffi.Int32() - external int dataLogicalSize; - - @ffi.Int32() - external int dataPhysicalSize; - - @u_int16_t() - external int rsrcStartBlock; - - @ffi.Int32() - external int rsrcLogicalSize; - - @ffi.Int32() - external int rsrcPhysicalSize; - - @u_int32_t() - external int createDate; - - @u_int32_t() - external int modifyDate; - - @u_int32_t() - external int backupDate; - - external FndrOpaqueInfo finderInfo; - - @u_int16_t() - external int clumpSize; - - @ffi.Array.multi([3]) - external ffi.Array dataExtents; - - @ffi.Array.multi([3]) - external ffi.Array rsrcExtents; - - @u_int32_t() - external int reserved; -} - -@ffi.Packed(2) -final class HFSCatalogFolder extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @u_int16_t() - external int flags; - - @u_int16_t() - external int valence; - - @u_int32_t() - external int folderID; - - @u_int32_t() - external int createDate; - - @u_int32_t() - external int modifyDate; - - @u_int32_t() - external int backupDate; - - external FndrDirInfo userInfo; - - external FndrOpaqueInfo finderInfo; - - @ffi.Array.multi([4]) - external ffi.Array reserved; -} - -@ffi.Packed(2) -final class HFSCatalogKey extends ffi.Struct { - @u_int8_t() - external int keyLength; - - @u_int8_t() - external int reserved; - - @u_int32_t() - external int parentID; - - @ffi.Array.multi([32]) - external ffi.Array nodeName; -} - -typedef HFSCatalogNodeID = UInt32; - -@ffi.Packed(2) -final class HFSCatalogThread extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @ffi.Array.multi([2]) - external ffi.Array reserved; - - @u_int32_t() - external int parentID; - - @ffi.Array.multi([32]) - external ffi.Array nodeName; -} - -@ffi.Packed(2) -final class HFSExtentDescriptor extends ffi.Struct { - @u_int16_t() - external int startBlock; - - @u_int16_t() - external int blockCount; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int startBlock, - required int blockCount, - }) => $allocator() - ..ref.startBlock = startBlock - ..ref.blockCount = blockCount; -} - -@ffi.Packed(2) -final class HFSExtentKey extends ffi.Struct { - @u_int8_t() - external int keyLength; - - @u_int8_t() - external int forkType; - - @u_int32_t() - external int fileID; - - @u_int16_t() - external int startBlock; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int keyLength, - required int forkType, - required int fileID, - required int startBlock, - }) => $allocator() - ..ref.keyLength = keyLength - ..ref.forkType = forkType - ..ref.fileID = fileID - ..ref.startBlock = startBlock; -} - -@ffi.Packed(2) -final class HFSMasterDirectoryBlock extends ffi.Struct { - @u_int16_t() - external int drSigWord; - - @u_int32_t() - external int drCrDate; - - @u_int32_t() - external int drLsMod; - - @u_int16_t() - external int drAtrb; - - @u_int16_t() - external int drNmFls; - - @u_int16_t() - external int drVBMSt; - - @u_int16_t() - external int drAllocPtr; - - @u_int16_t() - external int drNmAlBlks; - - @u_int32_t() - external int drAlBlkSiz; - - @u_int32_t() - external int drClpSiz; - - @u_int16_t() - external int drAlBlSt; - - @u_int32_t() - external int drNxtCNID; - - @u_int16_t() - external int drFreeBks; - - @ffi.Array.multi([28]) - external ffi.Array drVN; - - @u_int32_t() - external int drVolBkUp; - - @u_int16_t() - external int drVSeqNum; - - @u_int32_t() - external int drWrCnt; - - @u_int32_t() - external int drXTClpSiz; - - @u_int32_t() - external int drCTClpSiz; - - @u_int16_t() - external int drNmRtDirs; - - @u_int32_t() - external int drFilCnt; - - @u_int32_t() - external int drDirCnt; - - @ffi.Array.multi([8]) - external ffi.Array drFndrInfo; - - @u_int16_t() - external int drEmbedSigWord; - - external HFSExtentDescriptor drEmbedExtent; - - @u_int32_t() - external int drXTFlSize; - - @ffi.Array.multi([3]) - external ffi.Array drXTExtRec; - - @u_int32_t() - external int drCTFlSize; - - @ffi.Array.multi([3]) - external ffi.Array drCTExtRec; -} - -@ffi.Packed(2) -final class HFSPlusAttrData extends ffi.Struct { - @u_int32_t() - external int recordType; - - @ffi.Array.multi([2]) - external ffi.Array reserved; - - @u_int32_t() - external int attrSize; - - @ffi.Array.multi([2]) - external ffi.Array attrData; -} - -@ffi.Packed(2) -final class HFSPlusAttrExtents extends ffi.Struct { - @u_int32_t() - external int recordType; - - @u_int32_t() - external int reserved; - - @ffi.Array.multi([8]) - external ffi.Array extents; -} - -@ffi.Packed(2) -final class HFSPlusAttrForkData extends ffi.Struct { - @u_int32_t() - external int recordType; - - @u_int32_t() - external int reserved; - - external HFSPlusForkData theFork; -} - -@ffi.Packed(2) -final class HFSPlusAttrInlineData extends ffi.Struct { - @u_int32_t() - external int recordType; - - @u_int32_t() - external int reserved; - - @u_int32_t() - external int logicalSize; - - @ffi.Array.multi([2]) - external ffi.Array userData; -} - -@ffi.Packed(2) -final class HFSPlusAttrKey extends ffi.Struct { - @u_int16_t() - external int keyLength; - - @u_int16_t() - external int pad; - - @u_int32_t() - external int fileID; - - @u_int32_t() - external int startBlock; - - @u_int16_t() - external int attrNameLen; - - @ffi.Array.multi([127]) - external ffi.Array attrName; -} - -final class HFSPlusAttrRecord extends ffi.Union { - @u_int32_t() - external int recordType; - - external HFSPlusAttrInlineData inlineData; - - external HFSPlusAttrData attrData; - - external HFSPlusAttrForkData forkData; - - external HFSPlusAttrExtents overflowExtents; -} - -@ffi.Packed(2) -final class HFSPlusBSDInfo extends ffi.Struct { - @u_int32_t() - external int ownerID; - - @u_int32_t() - external int groupID; - - @u_int8_t() - external int adminFlags; - - @u_int8_t() - external int ownerFlags; - - @u_int16_t() - external int fileMode; - - external UnnamedUnion$9 special; -} - -@ffi.Packed(2) -final class HFSPlusCatalogFile extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @u_int16_t() - external int flags; - - @u_int32_t() - external int reserved1; - - @u_int32_t() - external int fileID; - - @u_int32_t() - external int createDate; - - @u_int32_t() - external int contentModDate; - - @u_int32_t() - external int attributeModDate; - - @u_int32_t() - external int accessDate; - - @u_int32_t() - external int backupDate; - - external HFSPlusBSDInfo bsdInfo; - - external FndrFileInfo userInfo; - - external FndrOpaqueInfo finderInfo; - - @u_int32_t() - external int textEncoding; - - @u_int32_t() - external int reserved2; - - external HFSPlusForkData dataFork; - - external HFSPlusForkData resourceFork; -} - -@ffi.Packed(2) -final class HFSPlusCatalogFolder extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @u_int16_t() - external int flags; - - @u_int32_t() - external int valence; - - @u_int32_t() - external int folderID; - - @u_int32_t() - external int createDate; - - @u_int32_t() - external int contentModDate; - - @u_int32_t() - external int attributeModDate; - - @u_int32_t() - external int accessDate; - - @u_int32_t() - external int backupDate; - - external HFSPlusBSDInfo bsdInfo; - - external FndrDirInfo userInfo; - - external FndrOpaqueInfo finderInfo; - - @u_int32_t() - external int textEncoding; - - @u_int32_t() - external int folderCount; -} - -@ffi.Packed(2) -final class HFSPlusCatalogKey extends ffi.Struct { - @u_int16_t() - external int keyLength; - - @u_int32_t() - external int parentID; - - external HFSUniStr255 nodeName; -} - -@ffi.Packed(2) -final class HFSPlusCatalogThread extends ffi.Struct { - @ffi.Int16() - external int recordType; - - @ffi.Int16() - external int reserved; - - @u_int32_t() - external int parentID; - - external HFSUniStr255 nodeName; -} - -@ffi.Packed(2) -final class HFSPlusExtentDescriptor extends ffi.Struct { - @u_int32_t() - external int startBlock; - - @u_int32_t() - external int blockCount; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int startBlock, - required int blockCount, - }) => $allocator() - ..ref.startBlock = startBlock - ..ref.blockCount = blockCount; -} - -@ffi.Packed(2) -final class HFSPlusExtentKey extends ffi.Struct { - @u_int16_t() - external int keyLength; - - @u_int8_t() - external int forkType; - - @u_int8_t() - external int pad; - - @u_int32_t() - external int fileID; - - @u_int32_t() - external int startBlock; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int keyLength, - required int forkType, - required int pad, - required int fileID, - required int startBlock, - }) => $allocator() - ..ref.keyLength = keyLength - ..ref.forkType = forkType - ..ref.pad = pad - ..ref.fileID = fileID - ..ref.startBlock = startBlock; -} - -@ffi.Packed(2) -final class HFSPlusForkData extends ffi.Struct { - @u_int64_t() - external int logicalSize; - - @u_int32_t() - external int clumpSize; - - @u_int32_t() - external int totalBlocks; - - @ffi.Array.multi([8]) - external ffi.Array extents; -} - -@ffi.Packed(2) -final class HFSPlusVolumeHeader extends ffi.Struct { - @u_int16_t() - external int signature; - - @u_int16_t() - external int version; - - @u_int32_t() - external int attributes; - - @u_int32_t() - external int lastMountedVersion; - - @u_int32_t() - external int journalInfoBlock; - - @u_int32_t() - external int createDate; - - @u_int32_t() - external int modifyDate; - - @u_int32_t() - external int backupDate; - - @u_int32_t() - external int checkedDate; - - @u_int32_t() - external int fileCount; - - @u_int32_t() - external int folderCount; - - @u_int32_t() - external int blockSize; - - @u_int32_t() - external int totalBlocks; - - @u_int32_t() - external int freeBlocks; - - @u_int32_t() - external int nextAllocation; - - @u_int32_t() - external int rsrcClumpSize; - - @u_int32_t() - external int dataClumpSize; - - @u_int32_t() - external int nextCatalogID; - - @u_int32_t() - external int writeCount; - - @u_int64_t() - external int encodingsBitmap; - - @ffi.Array.multi([32]) - external ffi.Array finderInfo; - - external HFSPlusForkData allocationFile; - - external HFSPlusForkData extentsFile; - - external HFSPlusForkData catalogFile; - - external HFSPlusForkData attributesFile; - - external HFSPlusForkData startupFile; -} - -@ffi.Packed(2) -final class HFSUniStr255 extends ffi.Struct { - @u_int16_t() - external int length; - - @ffi.Array.multi([255]) - external ffi.Array unicode; -} - -typedef HIMutableShapeRef = ffi.Pointer<__HIShape>; -typedef HIShapeEnumerateProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Int inMessage, - HIShapeRef inShape, - ffi.Pointer inRect, - ffi.Pointer inRefcon, - ) - > - >; -typedef HIShapeRef = ffi.Pointer<__HIShape>; -typedef Handle = ffi.Pointer; - -@ffi.Packed(2) -final class ICAppSpec extends ffi.Struct { - @OSType() - external int fCreator; - - @ffi.Array.multi([64]) - external ffi.Array name; -} - -typedef ICAppSpecHandle = ffi.Pointer; - -final class ICAppSpecList extends ffi.Struct { - @SInt16() - external int numberOfItems; - - @ffi.Array.multi([1]) - external ffi.Array appSpecs; -} - -typedef ICAppSpecListHandle = ffi.Pointer; -typedef ICAppSpecListPtr = ffi.Pointer; -typedef ICAppSpecPtr = ffi.Pointer; -typedef ICAttr = UInt32; - -final class ICCharTable extends ffi.Struct { - @ffi.Array.multi([256]) - external ffi.Array netToMac; - - @ffi.Array.multi([256]) - external ffi.Array macToNet; -} - -typedef ICCharTableHandle = ffi.Pointer; -typedef ICCharTablePtr = ffi.Pointer; - -@ffi.Packed(2) -final class ICFileSpec extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array volName; - - @SInt32() - external int volCreationDate; - - external FSSpec fss; - - external AliasRecord alias; -} - -typedef ICFileSpecHandle = ffi.Pointer; -typedef ICFileSpecPtr = ffi.Pointer; -typedef ICFixedLength = SInt16; - -final class ICFontRecord extends ffi.Struct { - @SInt16() - external int size; - - @Style() - external int face; - - @ffi.Char() - external int pad; - - @ffi.Array.multi([256]) - external ffi.Array font; -} - -typedef ICFontRecordHandle = ffi.Pointer; -typedef ICFontRecordPtr = ffi.Pointer; -typedef ICInstance = ffi.Pointer; - -@ffi.Packed(2) -final class ICMapEntry extends ffi.Struct { - @SInt16() - external int totalLength; - - @ICFixedLength() - external int fixedLength; - - @SInt16() - external int version; - - @OSType() - external int fileType; - - @OSType() - external int fileCreator; - - @OSType() - external int postCreator; - - @ICMapEntryFlags() - external int flags; - - @ffi.Array.multi([256]) - external ffi.Array extension; - - @ffi.Array.multi([256]) - external ffi.Array creatorAppName; - - @ffi.Array.multi([256]) - external ffi.Array postAppName; - - @ffi.Array.multi([256]) - external ffi.Array MIMEType; - - @ffi.Array.multi([256]) - external ffi.Array entryName; -} - -typedef ICMapEntryFlags = SInt32; -typedef ICMapEntryHandle = ffi.Pointer; -typedef ICMapEntryPtr = ffi.Pointer; -typedef ICPerm = UInt8; -typedef ICProfileID = SInt32; -typedef ICProfileIDPtr = ffi.Pointer; - -final class ICServiceEntry extends ffi.Struct { - @ffi.Array.multi([256]) - external ffi.Array name; - - @SInt16() - external int port; - - @ICServiceEntryFlags() - external int flags; -} - -typedef ICServiceEntryFlags = SInt16; -typedef ICServiceEntryHandle = ffi.Pointer; -typedef ICServiceEntryPtr = ffi.Pointer; - -final class ICServices extends ffi.Struct { - @SInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array services; -} - -typedef ICServicesHandle = ffi.Pointer; -typedef ICServicesPtr = ffi.Pointer; -typedef IMP = ffi.Pointer>; -typedef IOAddressRange = IOVirtualRange; -typedef IOAlignment = ffi.UnsignedInt; -typedef DartIOAlignment = int; -typedef IOAppleTimingID = UInt32; -typedef IOAsyncCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer refcon, - IOReturn result, - ffi.Pointer> args, - ffi.Uint32 numArgs, - ) - > - >; -typedef IOAsyncCallback0 = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer refcon, IOReturn result) - > - >; -typedef IOAsyncCallback1 = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer refcon, - IOReturn result, - ffi.Pointer arg0, - ) - > - >; -typedef IOAsyncCallback2 = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer refcon, - IOReturn result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >; - -final class IOAsyncCompletionContent extends ffi.Opaque {} - -typedef IOByteCount = IOByteCount64; -typedef IOByteCount32 = UInt32; -typedef IOByteCount64 = UInt64; -typedef IOCacheMode = UInt32; -typedef IOColorComponent = UInt16; - -final class IOColorEntry extends ffi.Struct { - @UInt16() - external int index$1; - - @IOColorComponent() - external int red; - - @IOColorComponent() - external int green; - - @IOColorComponent() - external int blue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int index$1, - required int red, - required int green, - required int blue, - }) => $allocator() - ..ref.index$1 = index$1 - ..ref.red = red - ..ref.green = green - ..ref.blue = blue; -} - -typedef IOCompletionProcPtr = - ffi.Pointer>; -typedef IOCompletionUPP = IOCompletionProcPtr; -typedef IODetailedTimingInformation = IODetailedTimingInformationV2; - -final class IODetailedTimingInformationV1 extends ffi.Struct { - @UInt32() - external int pixelClock; - - @UInt32() - external int horizontalActive; - - @UInt32() - external int horizontalBlanking; - - @UInt32() - external int horizontalBorder; - - @UInt32() - external int horizontalSyncOffset; - - @UInt32() - external int horizontalSyncWidth; - - @UInt32() - external int verticalActive; - - @UInt32() - external int verticalBlanking; - - @UInt32() - external int verticalBorder; - - @UInt32() - external int verticalSyncOffset; - - @UInt32() - external int verticalSyncWidth; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int pixelClock, - required int horizontalActive, - required int horizontalBlanking, - required int horizontalBorder, - required int horizontalSyncOffset, - required int horizontalSyncWidth, - required int verticalActive, - required int verticalBlanking, - required int verticalBorder, - required int verticalSyncOffset, - required int verticalSyncWidth, - }) => $allocator() - ..ref.pixelClock = pixelClock - ..ref.horizontalActive = horizontalActive - ..ref.horizontalBlanking = horizontalBlanking - ..ref.horizontalBorder = horizontalBorder - ..ref.horizontalSyncOffset = horizontalSyncOffset - ..ref.horizontalSyncWidth = horizontalSyncWidth - ..ref.verticalActive = verticalActive - ..ref.verticalBlanking = verticalBlanking - ..ref.verticalBorder = verticalBorder - ..ref.verticalSyncOffset = verticalSyncOffset - ..ref.verticalSyncWidth = verticalSyncWidth; -} - -final class IODetailedTimingInformationV2 extends ffi.Struct { - @ffi.Array.multi([3]) - external ffi.Array __reservedA; - - @UInt32() - external int horizontalScaledInset; - - @UInt32() - external int verticalScaledInset; - - @UInt32() - external int scalerFlags; - - @UInt32() - external int horizontalScaled; - - @UInt32() - external int verticalScaled; - - @UInt32() - external int signalConfig; - - @UInt32() - external int signalLevels; - - @UInt64() - external int pixelClock; - - @UInt64() - external int minPixelClock; - - @UInt64() - external int maxPixelClock; - - @UInt32() - external int horizontalActive; - - @UInt32() - external int horizontalBlanking; - - @UInt32() - external int horizontalSyncOffset; - - @UInt32() - external int horizontalSyncPulseWidth; - - @UInt32() - external int verticalActive; - - @UInt32() - external int verticalBlanking; - - @UInt32() - external int verticalSyncOffset; - - @UInt32() - external int verticalSyncPulseWidth; - - @UInt32() - external int horizontalBorderLeft; - - @UInt32() - external int horizontalBorderRight; - - @UInt32() - external int verticalBorderTop; - - @UInt32() - external int verticalBorderBottom; - - @UInt32() - external int horizontalSyncConfig; - - @UInt32() - external int horizontalSyncLevel; - - @UInt32() - external int verticalSyncConfig; - - @UInt32() - external int verticalSyncLevel; - - @UInt32() - external int numLinks; - - @UInt32() - external int verticalBlankingExtension; - - @UInt16() - external int pixelEncoding; - - @UInt16() - external int bitsPerColorComponent; - - @UInt16() - external int colorimetry; - - @UInt16() - external int dynamicRange; - - @UInt16() - external int dscCompressedBitsPerPixel; - - @UInt16() - external int dscSliceHeight; - - @UInt16() - external int dscSliceWidth; - - @UInt16() - external int verticalBlankingMaxStretchPerFrame; - - @UInt16() - external int verticalBlankingMaxShrinkPerFrame; - - @ffi.Array.multi([3]) - external ffi.Array __reservedB; -} - -typedef IODeviceNumber = ffi.UnsignedInt; -typedef DartIODeviceNumber = int; -typedef IODisplayModeID = SInt32; - -final class IODisplayModeInformation extends ffi.Struct { - @UInt32() - external int nominalWidth; - - @UInt32() - external int nominalHeight; - - @IOFixed1616() - external int refreshRate; - - @IOIndex() - external int maxDepthIndex; - - @UInt32() - external int flags; - - @UInt16() - external int imageWidth; - - @UInt16() - external int imageHeight; - - @ffi.Array.multi([3]) - external ffi.Array reserved; -} - -typedef IODisplayProductID = UInt32; - -final class IODisplayScalerInformation extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array __reservedA; - - @UInt32() - external int version; - - @ffi.Array.multi([2]) - external ffi.Array __reservedB; - - @IOOptionBits() - external int scalerFeatures; - - @UInt32() - external int maxHorizontalPixels; - - @UInt32() - external int maxVerticalPixels; - - @ffi.Array.multi([5]) - external ffi.Array __reservedC; -} - -typedef IODisplayTimingRange = IODisplayTimingRangeV2; - -final class IODisplayTimingRangeV1 extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array __reservedA; - - @UInt32() - external int version; - - @ffi.Array.multi([5]) - external ffi.Array __reservedB; - - @UInt64() - external int minPixelClock; - - @UInt64() - external int maxPixelClock; - - @UInt32() - external int maxPixelError; - - @UInt32() - external int supportedSyncFlags; - - @UInt32() - external int supportedSignalLevels; - - @UInt32() - external int supportedSignalConfigs; - - @UInt32() - external int minFrameRate; - - @UInt32() - external int maxFrameRate; - - @UInt32() - external int minLineRate; - - @UInt32() - external int maxLineRate; - - @UInt32() - external int maxHorizontalTotal; - - @UInt32() - external int maxVerticalTotal; - - @ffi.Array.multi([2]) - external ffi.Array __reservedD; - - @UInt8() - external int charSizeHorizontalActive; - - @UInt8() - external int charSizeHorizontalBlanking; - - @UInt8() - external int charSizeHorizontalSyncOffset; - - @UInt8() - external int charSizeHorizontalSyncPulse; - - @UInt8() - external int charSizeVerticalActive; - - @UInt8() - external int charSizeVerticalBlanking; - - @UInt8() - external int charSizeVerticalSyncOffset; - - @UInt8() - external int charSizeVerticalSyncPulse; - - @UInt8() - external int charSizeHorizontalBorderLeft; - - @UInt8() - external int charSizeHorizontalBorderRight; - - @UInt8() - external int charSizeVerticalBorderTop; - - @UInt8() - external int charSizeVerticalBorderBottom; - - @UInt8() - external int charSizeHorizontalTotal; - - @UInt8() - external int charSizeVerticalTotal; - - @UInt16() - external int __reservedE; - - @UInt32() - external int minHorizontalActiveClocks; - - @UInt32() - external int maxHorizontalActiveClocks; - - @UInt32() - external int minHorizontalBlankingClocks; - - @UInt32() - external int maxHorizontalBlankingClocks; - - @UInt32() - external int minHorizontalSyncOffsetClocks; - - @UInt32() - external int maxHorizontalSyncOffsetClocks; - - @UInt32() - external int minHorizontalPulseWidthClocks; - - @UInt32() - external int maxHorizontalPulseWidthClocks; - - @UInt32() - external int minVerticalActiveClocks; - - @UInt32() - external int maxVerticalActiveClocks; - - @UInt32() - external int minVerticalBlankingClocks; - - @UInt32() - external int maxVerticalBlankingClocks; - - @UInt32() - external int minVerticalSyncOffsetClocks; - - @UInt32() - external int maxVerticalSyncOffsetClocks; - - @UInt32() - external int minVerticalPulseWidthClocks; - - @UInt32() - external int maxVerticalPulseWidthClocks; - - @UInt32() - external int minHorizontalBorderLeft; - - @UInt32() - external int maxHorizontalBorderLeft; - - @UInt32() - external int minHorizontalBorderRight; - - @UInt32() - external int maxHorizontalBorderRight; - - @UInt32() - external int minVerticalBorderTop; - - @UInt32() - external int maxVerticalBorderTop; - - @UInt32() - external int minVerticalBorderBottom; - - @UInt32() - external int maxVerticalBorderBottom; - - @UInt32() - external int maxNumLinks; - - @UInt32() - external int minLink0PixelClock; - - @UInt32() - external int maxLink0PixelClock; - - @UInt32() - external int minLink1PixelClock; - - @UInt32() - external int maxLink1PixelClock; - - @UInt16() - external int supportedPixelEncoding; - - @UInt16() - external int supportedBitsPerColorComponent; - - @UInt16() - external int supportedColorimetryModes; - - @UInt16() - external int supportedDynamicRangeModes; - - @ffi.Array.multi([1]) - external ffi.Array __reservedF; -} - -final class IODisplayTimingRangeV2 extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array __reservedA; - - @UInt32() - external int version; - - @ffi.Array.multi([5]) - external ffi.Array __reservedB; - - @UInt64() - external int minPixelClock; - - @UInt64() - external int maxPixelClock; - - @UInt32() - external int maxPixelError; - - @UInt32() - external int supportedSyncFlags; - - @UInt32() - external int supportedSignalLevels; - - @UInt32() - external int supportedSignalConfigs; - - @UInt32() - external int minFrameRate; - - @UInt32() - external int maxFrameRate; - - @UInt32() - external int minLineRate; - - @UInt32() - external int maxLineRate; - - @UInt32() - external int maxHorizontalTotal; - - @UInt32() - external int maxVerticalTotal; - - @ffi.Array.multi([2]) - external ffi.Array __reservedD; - - @UInt8() - external int charSizeHorizontalActive; - - @UInt8() - external int charSizeHorizontalBlanking; - - @UInt8() - external int charSizeHorizontalSyncOffset; - - @UInt8() - external int charSizeHorizontalSyncPulse; - - @UInt8() - external int charSizeVerticalActive; - - @UInt8() - external int charSizeVerticalBlanking; - - @UInt8() - external int charSizeVerticalSyncOffset; - - @UInt8() - external int charSizeVerticalSyncPulse; - - @UInt8() - external int charSizeHorizontalBorderLeft; - - @UInt8() - external int charSizeHorizontalBorderRight; - - @UInt8() - external int charSizeVerticalBorderTop; - - @UInt8() - external int charSizeVerticalBorderBottom; - - @UInt8() - external int charSizeHorizontalTotal; - - @UInt8() - external int charSizeVerticalTotal; - - @UInt16() - external int __reservedE; - - @UInt32() - external int minHorizontalActiveClocks; - - @UInt32() - external int maxHorizontalActiveClocks; - - @UInt32() - external int minHorizontalBlankingClocks; - - @UInt32() - external int maxHorizontalBlankingClocks; - - @UInt32() - external int minHorizontalSyncOffsetClocks; - - @UInt32() - external int maxHorizontalSyncOffsetClocks; - - @UInt32() - external int minHorizontalPulseWidthClocks; - - @UInt32() - external int maxHorizontalPulseWidthClocks; - - @UInt32() - external int minVerticalActiveClocks; - - @UInt32() - external int maxVerticalActiveClocks; - - @UInt32() - external int minVerticalBlankingClocks; - - @UInt32() - external int maxVerticalBlankingClocks; - - @UInt32() - external int minVerticalSyncOffsetClocks; - - @UInt32() - external int maxVerticalSyncOffsetClocks; - - @UInt32() - external int minVerticalPulseWidthClocks; - - @UInt32() - external int maxVerticalPulseWidthClocks; - - @UInt32() - external int minHorizontalBorderLeft; - - @UInt32() - external int maxHorizontalBorderLeft; - - @UInt32() - external int minHorizontalBorderRight; - - @UInt32() - external int maxHorizontalBorderRight; - - @UInt32() - external int minVerticalBorderTop; - - @UInt32() - external int maxVerticalBorderTop; - - @UInt32() - external int minVerticalBorderBottom; - - @UInt32() - external int maxVerticalBorderBottom; - - @UInt32() - external int maxNumLinks; - - @UInt32() - external int minLink0PixelClock; - - @UInt32() - external int maxLink0PixelClock; - - @UInt32() - external int minLink1PixelClock; - - @UInt32() - external int maxLink1PixelClock; - - @UInt16() - external int supportedPixelEncoding; - - @UInt16() - external int supportedBitsPerColorComponent; - - @UInt16() - external int supportedColorimetryModes; - - @UInt16() - external int supportedDynamicRangeModes; - - @ffi.Array.multi([1]) - external ffi.Array __reservedF; - - @UInt64() - external int maxBandwidth; - - @UInt32() - external int dscMinSliceHeight; - - @UInt32() - external int dscMaxSliceHeight; - - @UInt32() - external int dscMinSliceWidth; - - @UInt32() - external int dscMaxSliceWidth; - - @UInt32() - external int dscMinSlicePerLine; - - @UInt32() - external int dscMaxSlicePerLine; - - @UInt16() - external int dscMinBPC; - - @UInt16() - external int dscMaxBPC; - - @UInt16() - external int dscMinBPP; - - @UInt16() - external int dscMaxBPP; - - @UInt8() - external int dscVBR; - - @UInt8() - external int dscBlockPredEnable; - - @ffi.Array.multi([6]) - external ffi.Array __reservedC; -} - -typedef IODisplayVendorID = UInt32; - -final class IOFBDPLinkConfig extends ffi.Struct { - @ffi.Uint16() - external int version; - - @ffi.Uint8() - external int bitRate; - - @ffi.Array.multi([1]) - external ffi.Array __reservedA; - - @ffi.Uint16() - external int t1Time; - - @ffi.Uint16() - external int t2Time; - - @ffi.Uint16() - external int t3Time; - - @ffi.Uint8() - external int idlePatterns; - - @ffi.Uint8() - external int laneCount; - - @ffi.Uint8() - external int voltage; - - @ffi.Uint8() - external int preEmphasis; - - @ffi.Uint8() - external int downspread; - - @ffi.Uint8() - external int scrambler; - - @ffi.Uint8() - external int maxBitRate; - - @ffi.Uint8() - external int maxLaneCount; - - @ffi.Uint8() - external int maxDownspread; - - @ffi.Array.multi([9]) - external ffi.Array __reservedB; -} - -@ffi.Packed(4) -final class IOFBDisplayModeDescription extends ffi.Struct { - external IODisplayModeInformation info; - - external IOTimingInformation timingInfo; -} - -final class IOFBHDRMetaData extends ffi.Union { - external IOFBHDRMetaDataV1 v1; -} - -final class IOFBHDRMetaDataV1 extends ffi.Struct { - @ffi.Uint16() - external int displayPrimary_X0; - - @ffi.Uint16() - external int displayPrimary_Y0; - - @ffi.Uint16() - external int displayPrimary_X1; - - @ffi.Uint16() - external int displayPrimary_Y1; - - @ffi.Uint16() - external int displayPrimary_X2; - - @ffi.Uint16() - external int displayPrimary_Y2; - - @ffi.Uint16() - external int displayPrimary_X; - - @ffi.Uint16() - external int displayPrimary_Y; - - @ffi.Uint16() - external int desiredLuminance_Max; - - @ffi.Uint16() - external int desiredLuminance_Min; - - @ffi.Uint16() - external int desiredLightLevel_Avg; - - @ffi.Uint16() - external int desiredLightLevel_Max; - - @ffi.Array.multi([5]) - external ffi.Array __reservedA; -} - -typedef IOFixed = SInt32; -typedef IOFixed1616 = UInt32; -typedef IOFixedPoint32 = __IOFixedPoint32; - -final class IOFramebufferInformation extends ffi.Struct { - @IOPhysicalAddress() - external int baseAddress; - - @UInt32() - external int activeWidth; - - @UInt32() - external int activeHeight; - - @IOByteCount() - external int bytesPerRow; - - @IOByteCount() - external int bytesPerPlane; - - @UInt32() - external int bitsPerPixel; - - @UInt32() - external int pixelType; - - @UInt32() - external int flags; - - @ffi.Array.multi([4]) - external ffi.Array reserved; -} - -final class IOGBounds extends ffi.Struct { - @SInt16() - external int minx; - - @SInt16() - external int maxx; - - @SInt16() - external int miny; - - @SInt16() - external int maxy; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int minx, - required int maxx, - required int miny, - required int maxy, - }) => $allocator() - ..ref.minx = minx - ..ref.maxx = maxx - ..ref.miny = miny - ..ref.maxy = maxy; -} - -final class IOGPoint extends ffi.Struct { - @SInt16() - external int x; - - @SInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -final class IOGSize extends ffi.Struct { - @SInt16() - external int width; - - @SInt16() - external int height; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int width, - required int height, - }) => $allocator() - ..ref.width = width - ..ref.height = height; -} - -final class IOHardwareCursorDescriptor extends ffi.Struct { - @UInt16() - external int majorVersion; - - @UInt16() - external int minorVersion; - - @UInt32() - external int height; - - @UInt32() - external int width; - - @UInt32() - external int bitDepth; - - @UInt32() - external int maskBitDepth; - - @UInt32() - external int numColors; - - external ffi.Pointer colorEncodings; - - @UInt32() - external int flags; - - @UInt32() - external int supportedSpecialEncodings; - - @ffi.Array.multi([16]) - external ffi.Array specialEncodings; -} - -final class IOHardwareCursorInfo extends ffi.Struct { - @UInt16() - external int majorVersion; - - @UInt16() - external int minorVersion; - - @UInt32() - external int cursorHeight; - - @UInt32() - external int cursorWidth; - - external ffi.Pointer colorMap; - - external ffi.Pointer hardwareCursorData; - - @UInt16() - external int cursorHotSpotX; - - @UInt16() - external int cursorHotSpotY; - - @ffi.Array.multi([5]) - external ffi.Array reserved; -} - -typedef IOIndex = SInt32; -typedef IOItemCount = UInt32; -typedef IOLogicalAddress = IOVirtualAddress; - -final class IONamedValue extends ffi.Struct { - @ffi.Int() - external int value; - - external ffi.Pointer name; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int value, - required ffi.Pointer name, - }) => $allocator() - ..ref.value = value - ..ref.name = name; -} - -final class IONotificationPort extends ffi.Opaque {} - -typedef IONotificationPortRef = ffi.Pointer; -typedef IOOptionBits = UInt32; -typedef IOPhysicalAddress = IOPhysicalAddress64; -typedef IOPhysicalAddress32 = UInt32; -typedef IOPhysicalAddress64 = UInt64; -typedef IOPhysicalLength = IOPhysicalLength64; -typedef IOPhysicalLength32 = UInt32; -typedef IOPhysicalLength64 = UInt64; - -final class IOPhysicalRange extends ffi.Struct { - @IOPhysicalAddress() - external int address; - - @IOByteCount() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int address, - required int length, - }) => $allocator() - ..ref.address = address - ..ref.length = length; -} - -typedef IOPixelAperture = IOIndex; - -final class IOPixelInformation extends ffi.Struct { - @UInt32() - external int bytesPerRow; - - @UInt32() - external int bytesPerPlane; - - @UInt32() - external int bitsPerPixel; - - @UInt32() - external int pixelType; - - @UInt32() - external int componentCount; - - @UInt32() - external int bitsPerComponent; - - @ffi.Array.multi([16]) - external ffi.Array componentMasks; - - @ffi.Array.multi([64]) - external ffi.Array pixelFormat; - - @UInt32() - external int flags; - - @UInt32() - external int activeWidth; - - @UInt32() - external int activeHeight; - - @ffi.Array.multi([2]) - external ffi.Array reserved; -} - -typedef IOReturn = kern_return_t; -typedef IOSelect = UInt32; -typedef IOServiceInterestCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer refcon, - io_service_t service, - ffi.Uint32 messageType, - ffi.Pointer messageArgument, - ) - > - >; - -@ffi.Packed(4) -final class IOServiceInterestContent extends ffi.Struct { - @natural_t() - external int messageType; - - @ffi.Array.multi([1]) - external ffi.Array> messageArgument; -} - -@ffi.Packed(4) -final class IOServiceInterestContent64 extends ffi.Struct { - @natural_t() - external int messageType; - - @ffi.Array.multi([1]) - external ffi.Array messageArgument; -} - -typedef IOServiceMatchingCallback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer refcon, io_iterator_t iterator) - > - >; - -enum IOSurfaceComponentName { - kIOSurfaceComponentNameUnknown(0), - kIOSurfaceComponentNameAlpha(1), - kIOSurfaceComponentNameRed(2), - kIOSurfaceComponentNameGreen(3), - kIOSurfaceComponentNameBlue(4), - kIOSurfaceComponentNameLuma(5), - kIOSurfaceComponentNameChromaRed(6), - kIOSurfaceComponentNameChromaBlue(7); - - final int value; - const IOSurfaceComponentName(this.value); - - static IOSurfaceComponentName fromValue(int value) => switch (value) { - 0 => kIOSurfaceComponentNameUnknown, - 1 => kIOSurfaceComponentNameAlpha, - 2 => kIOSurfaceComponentNameRed, - 3 => kIOSurfaceComponentNameGreen, - 4 => kIOSurfaceComponentNameBlue, - 5 => kIOSurfaceComponentNameLuma, - 6 => kIOSurfaceComponentNameChromaRed, - 7 => kIOSurfaceComponentNameChromaBlue, - _ => throw ArgumentError( - 'Unknown value for IOSurfaceComponentName: $value', - ), - }; -} - -enum IOSurfaceComponentRange { - kIOSurfaceComponentRangeUnknown(0), - kIOSurfaceComponentRangeFullRange(1), - kIOSurfaceComponentRangeVideoRange(2), - kIOSurfaceComponentRangeWideRange(3); - - final int value; - const IOSurfaceComponentRange(this.value); - - static IOSurfaceComponentRange fromValue(int value) => switch (value) { - 0 => kIOSurfaceComponentRangeUnknown, - 1 => kIOSurfaceComponentRangeFullRange, - 2 => kIOSurfaceComponentRangeVideoRange, - 3 => kIOSurfaceComponentRangeWideRange, - _ => throw ArgumentError( - 'Unknown value for IOSurfaceComponentRange: $value', - ), - }; -} - -enum IOSurfaceComponentType { - kIOSurfaceComponentTypeUnknown(0), - kIOSurfaceComponentTypeUnsignedInteger(1), - kIOSurfaceComponentTypeSignedInteger(2), - kIOSurfaceComponentTypeFloat(3), - kIOSurfaceComponentTypeSignedNormalized(4); - - final int value; - const IOSurfaceComponentType(this.value); - - static IOSurfaceComponentType fromValue(int value) => switch (value) { - 0 => kIOSurfaceComponentTypeUnknown, - 1 => kIOSurfaceComponentTypeUnsignedInteger, - 2 => kIOSurfaceComponentTypeSignedInteger, - 3 => kIOSurfaceComponentTypeFloat, - 4 => kIOSurfaceComponentTypeSignedNormalized, - _ => throw ArgumentError( - 'Unknown value for IOSurfaceComponentType: $value', - ), - }; -} - -typedef IOSurfaceID = ffi.Uint32; -typedef DartIOSurfaceID = int; - -sealed class IOSurfaceLockOptions { - static const kIOSurfaceLockReadOnly = 1; - static const kIOSurfaceLockAvoidSync = 2; -} - -sealed class IOSurfaceMemoryLedgerFlags { - static const kIOSurfaceMemoryLedgerFlagNoFootprint = 1; -} - -enum IOSurfaceMemoryLedgerTags { - kIOSurfaceMemoryLedgerTagDefault(1), - kIOSurfaceMemoryLedgerTagNetwork(2), - kIOSurfaceMemoryLedgerTagMedia(3), - kIOSurfaceMemoryLedgerTagGraphics(4), - kIOSurfaceMemoryLedgerTagNeural(5); - - final int value; - const IOSurfaceMemoryLedgerTags(this.value); - - static IOSurfaceMemoryLedgerTags fromValue(int value) => switch (value) { - 1 => kIOSurfaceMemoryLedgerTagDefault, - 2 => kIOSurfaceMemoryLedgerTagNetwork, - 3 => kIOSurfaceMemoryLedgerTagMedia, - 4 => kIOSurfaceMemoryLedgerTagGraphics, - 5 => kIOSurfaceMemoryLedgerTagNeural, - _ => throw ArgumentError( - 'Unknown value for IOSurfaceMemoryLedgerTags: $value', - ), - }; -} - -sealed class IOSurfacePurgeabilityState { - static const kIOSurfacePurgeableNonVolatile = 0; - static const kIOSurfacePurgeableVolatile = 1; - static const kIOSurfacePurgeableEmpty = 2; - static const kIOSurfacePurgeableKeepCurrent = 3; -} - -typedef IOSurfaceRef = ffi.Pointer<__IOSurface>; - -enum IOSurfaceSubsampling { - kIOSurfaceSubsamplingUnknown(0), - kIOSurfaceSubsamplingNone(1), - kIOSurfaceSubsampling422(2), - kIOSurfaceSubsampling420(3), - kIOSurfaceSubsampling411(4); - - final int value; - const IOSurfaceSubsampling(this.value); - - static IOSurfaceSubsampling fromValue(int value) => switch (value) { - 0 => kIOSurfaceSubsamplingUnknown, - 1 => kIOSurfaceSubsamplingNone, - 2 => kIOSurfaceSubsampling422, - 3 => kIOSurfaceSubsampling420, - 4 => kIOSurfaceSubsampling411, - _ => throw ArgumentError('Unknown value for IOSurfaceSubsampling: $value'), - }; -} - -final class IOTimingInformation extends ffi.Struct { - @IOAppleTimingID() - external int appleTimingID; - - @UInt32() - external int flags; - - external UnnamedUnion$10 detailedInfo; -} - -typedef IOVersion = UInt32; -typedef IOVirtualAddress = mach_vm_address_t; - -final class IOVirtualRange extends ffi.Struct { - @IOVirtualAddress() - external int address; - - @IOByteCount() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int address, - required int length, - }) => $allocator() - ..ref.address = address - ..ref.length = length; -} - -typedef ISAType = SInt8; -typedef IconActionProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - ResType theType, - ffi.Pointer theIcon, - ffi.Pointer yourDataPtr, - ) - > - >; -typedef IconActionUPP = IconActionProcPtr; -typedef IconAlignmentType = SInt16; - -@ffi.Packed(2) -final class IconFamilyElement extends ffi.Struct { - @OSType() - external int elementType; - - @SInt32() - external int elementSize; - - @ffi.Array.multi([1]) - external ffi.Array elementData; -} - -typedef IconFamilyHandle = ffi.Pointer; -typedef IconFamilyPtr = ffi.Pointer; - -@ffi.Packed(2) -final class IconFamilyResource extends ffi.Struct { - @OSType() - external int resourceType; - - @SInt32() - external int resourceSize; - - @ffi.Array.multi([1]) - external ffi.Array elements; -} - -typedef IconGetterProcPtr = - ffi.Pointer< - ffi.NativeFunction< - Handle Function(ResType theType, ffi.Pointer yourDataPtr) - > - >; -typedef IconGetterUPP = IconGetterProcPtr; -typedef IconRef = ffi.Pointer; -typedef IconSelectorValue = UInt32; -typedef IconServicesUsageFlags = UInt32; -typedef IconTransformType = SInt16; - -const int IdleActivity = 4; - -typedef IndexToUCStringProcPtr = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - UInt32 index$1, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer outString, - ffi.Pointer tsOptions, - ) - > - >; -typedef IndexToUCStringUPP = IndexToUCStringProcPtr; - -@ffi.Packed(2) -final class InstrumentChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt8() - external int baseFrequency; - - @UInt8() - external int detune; - - @UInt8() - external int lowFrequency; - - @UInt8() - external int highFrequency; - - @UInt8() - external int lowVelocity; - - @UInt8() - external int highVelocity; - - @SInt16() - external int gain; - - external AIFFLoop sustainLoop; - - external AIFFLoop releaseLoop; -} - -typedef InstrumentChunkPtr = ffi.Pointer; - -const int InstrumentID = 1229869908; - -typedef Intl0Hndl = ffi.Pointer; -typedef Intl0Ptr = ffi.Pointer; - -final class Intl0Rec extends ffi.Struct { - @ffi.Char() - external int decimalPt; - - @ffi.Char() - external int thousSep; - - @ffi.Char() - external int listSep; - - @ffi.Char() - external int currSym1; - - @ffi.Char() - external int currSym2; - - @ffi.Char() - external int currSym3; - - @UInt8() - external int currFmt; - - @UInt8() - external int dateOrder; - - @UInt8() - external int shrtDateFmt; - - @ffi.Char() - external int dateSep; - - @UInt8() - external int timeCycle; - - @UInt8() - external int timeFmt; - - @ffi.Array.multi([4]) - external ffi.Array mornStr; - - @ffi.Array.multi([4]) - external ffi.Array eveStr; - - @ffi.Char() - external int timeSep; - - @ffi.Char() - external int time1Suff; - - @ffi.Char() - external int time2Suff; - - @ffi.Char() - external int time3Suff; - - @ffi.Char() - external int time4Suff; - - @ffi.Char() - external int time5Suff; - - @ffi.Char() - external int time6Suff; - - @ffi.Char() - external int time7Suff; - - @ffi.Char() - external int time8Suff; - - @UInt8() - external int metricSys; - - @ffi.Short() - external int intl0Vers; -} - -typedef Intl1Hndl = ffi.Pointer; -typedef Intl1Ptr = ffi.Pointer; - -final class Intl1Rec extends ffi.Struct { - @ffi.Array.multi([7, 16]) - external ffi.Array> days; - - @ffi.Array.multi([12, 16]) - external ffi.Array> months; - - @UInt8() - external int suppressDay; - - @UInt8() - external int lngDateFmt; - - @UInt8() - external int dayLeading0; - - @UInt8() - external int abbrLen; - - @ffi.Array.multi([4]) - external ffi.Array st0; - - @ffi.Array.multi([4]) - external ffi.Array st1; - - @ffi.Array.multi([4]) - external ffi.Array st2; - - @ffi.Array.multi([4]) - external ffi.Array st3; - - @ffi.Array.multi([4]) - external ffi.Array st4; - - @ffi.Short() - external int intl1Vers; - - @ffi.Array.multi([1]) - external ffi.Array localRtn; -} - -final class IntlText extends ffi.Struct { - @ScriptCode() - external int theScriptCode; - - @LangCode() - external int theLangCode; - - @ffi.Array.multi([1]) - external ffi.Array theText; -} - -typedef ItemCount = ffi.UnsignedLong; -typedef DartItemCount = int; - -@ffi.Packed(2) -final class Itl1ExtRec extends ffi.Struct { - external Intl1Rec base; - - @ffi.Short() - external int version; - - @ffi.Short() - external int format; - - @ffi.Short() - external int calendarCode; - - @SInt32() - external int extraDaysTableOffset; - - @SInt32() - external int extraDaysTableLength; - - @SInt32() - external int extraMonthsTableOffset; - - @SInt32() - external int extraMonthsTableLength; - - @SInt32() - external int abbrevDaysTableOffset; - - @SInt32() - external int abbrevDaysTableLength; - - @SInt32() - external int abbrevMonthsTableOffset; - - @SInt32() - external int abbrevMonthsTableLength; - - @SInt32() - external int extraSepsTableOffset; - - @SInt32() - external int extraSepsTableLength; - - @ffi.Array.multi([1]) - external ffi.Array tables; -} - -typedef Itl4Handle = ffi.Pointer; -typedef Itl4Ptr = ffi.Pointer; - -@ffi.Packed(2) -final class Itl4Rec extends ffi.Struct { - @ffi.Short() - external int flags; - - @SInt32() - external int resourceType; - - @ffi.Short() - external int resourceNum; - - @ffi.Short() - external int version; - - @SInt32() - external int resHeader1; - - @SInt32() - external int resHeader2; - - @ffi.Short() - external int numTables; - - @SInt32() - external int mapOffset; - - @SInt32() - external int strOffset; - - @SInt32() - external int fetchOffset; - - @SInt32() - external int unTokenOffset; - - @SInt32() - external int defPartsOffset; - - @SInt32() - external int resOffset6; - - @SInt32() - external int resOffset7; - - @SInt32() - external int resOffset8; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int resourceType, - required int resourceNum, - required int version, - required int resHeader1, - required int resHeader2, - required int numTables, - required int mapOffset, - required int strOffset, - required int fetchOffset, - required int unTokenOffset, - required int defPartsOffset, - required int resOffset6, - required int resOffset7, - required int resOffset8, - }) => $allocator() - ..ref.flags = flags - ..ref.resourceType = resourceType - ..ref.resourceNum = resourceNum - ..ref.version = version - ..ref.resHeader1 = resHeader1 - ..ref.resHeader2 = resHeader2 - ..ref.numTables = numTables - ..ref.mapOffset = mapOffset - ..ref.strOffset = strOffset - ..ref.fetchOffset = fetchOffset - ..ref.unTokenOffset = unTokenOffset - ..ref.defPartsOffset = defPartsOffset - ..ref.resOffset6 = resOffset6 - ..ref.resOffset7 = resOffset7 - ..ref.resOffset8 = resOffset8; -} - -@ffi.Packed(2) -final class Itl5Record extends ffi.Struct { - @Fixed() - external int versionNumber; - - @ffi.UnsignedShort() - external int numberOfTables; - - @ffi.Array.multi([3]) - external ffi.Array reserved; - - @ffi.Array.multi([1]) - external ffi.Array tableDirectory; -} - -@ffi.Packed(2) -final class ItlbExtRecord extends ffi.Struct { - external ItlbRecord base; - - @SInt32() - external int itlbLocalSize; - - @ffi.Short() - external int itlbMonoFond; - - @ffi.Short() - external int itlbMonoSize; - - @ffi.Short() - external int itlbPrefFond; - - @ffi.Short() - external int itlbPrefSize; - - @ffi.Short() - external int itlbSmallFond; - - @ffi.Short() - external int itlbSmallSize; - - @ffi.Short() - external int itlbSysFond; - - @ffi.Short() - external int itlbSysSize; - - @ffi.Short() - external int itlbAppFond; - - @ffi.Short() - external int itlbAppSize; - - @ffi.Short() - external int itlbHelpFond; - - @ffi.Short() - external int itlbHelpSize; - - @Style() - external int itlbValidStyles; - - @Style() - external int itlbAliasStyle; -} - -final class ItlbRecord extends ffi.Struct { - @ffi.Short() - external int itlbNumber; - - @ffi.Short() - external int itlbDate; - - @ffi.Short() - external int itlbSort; - - @ffi.Short() - external int itlbFlags; - - @ffi.Short() - external int itlbToken; - - @ffi.Short() - external int itlbEncoding; - - @ffi.Short() - external int itlbLang; - - @SInt8() - external int itlbNumRep; - - @SInt8() - external int itlbDateRep; - - @ffi.Short() - external int itlbKeys; - - @ffi.Short() - external int itlbIcon; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int itlbNumber, - required int itlbDate, - required int itlbSort, - required int itlbFlags, - required int itlbToken, - required int itlbEncoding, - required int itlbLang, - required int itlbNumRep, - required int itlbDateRep, - required int itlbKeys, - required int itlbIcon, - }) => $allocator() - ..ref.itlbNumber = itlbNumber - ..ref.itlbDate = itlbDate - ..ref.itlbSort = itlbSort - ..ref.itlbFlags = itlbFlags - ..ref.itlbToken = itlbToken - ..ref.itlbEncoding = itlbEncoding - ..ref.itlbLang = itlbLang - ..ref.itlbNumRep = itlbNumRep - ..ref.itlbDateRep = itlbDateRep - ..ref.itlbKeys = itlbKeys - ..ref.itlbIcon = itlbIcon; -} - -final class ItlcRecord extends ffi.Struct { - @ffi.Short() - external int itlcSystem; - - @ffi.Short() - external int itlcReserved; - - @SInt8() - external int itlcFontForce; - - @SInt8() - external int itlcIntlForce; - - @SInt8() - external int itlcOldKybd; - - @SInt8() - external int itlcFlags; - - @ffi.Short() - external int itlcIconOffset; - - @SInt8() - external int itlcIconSide; - - @SInt8() - external int itlcIconRsvd; - - @ffi.Short() - external int itlcRegionCode; - - @ffi.Short() - external int itlcSysFlags; - - @ffi.Array.multi([32]) - external ffi.Array itlcReserved4; -} - -@ffi.Packed(2) -final class JournalInfoBlock extends ffi.Struct { - @u_int32_t() - external int flags; - - @ffi.Array.multi([8]) - external ffi.Array device_signature; - - @u_int64_t() - external int offset; - - @u_int64_t() - external int size; - - @ffi.Array.multi([37]) - external ffi.Array ext_jnl_uuid; - - @ffi.Array.multi([48]) - external ffi.Array machine_serial_num; - - @ffi.Array.multi([43]) - external ffi.Array reserved; -} - -final class JustDirectionTable extends ffi.Struct { - @UInt16() - external int justClass; - - @UInt16() - external int widthDeltaClusters; - - @UInt16() - external int postcomp; - - external SFNTLookupTable lookup; -} - -@ffi.Packed(2) -final class JustPCAction extends ffi.Struct { - @UInt32() - external int actionCount; - - @ffi.Array.multi([1]) - external ffi.Array actions; -} - -@ffi.Packed(2) -final class JustPCActionSubrecord extends ffi.Struct { - @UInt16() - external int theClass; - - @JustPCActionType() - external int theType; - - @UInt32() - external int length; - - @UInt32() - external int data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int theClass, - required int theType, - required int length, - required int data, - }) => $allocator() - ..ref.theClass = theClass - ..ref.theType = theType - ..ref.length = length - ..ref.data = data; -} - -typedef JustPCActionType = UInt16; - -@ffi.Packed(2) -final class JustPCConditionalAddAction extends ffi.Struct { - @Fixed() - external int substThreshold; - - @UInt16() - external int addGlyph; - - @UInt16() - external int substGlyph; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int substThreshold, - required int addGlyph, - required int substGlyph, - }) => $allocator() - ..ref.substThreshold = substThreshold - ..ref.addGlyph = addGlyph - ..ref.substGlyph = substGlyph; -} - -@ffi.Packed(2) -final class JustPCDecompositionAction extends ffi.Struct { - @Fixed() - external int lowerLimit; - - @Fixed() - external int upperLimit; - - @UInt16() - external int order; - - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array glyphs; -} - -@ffi.Packed(2) -final class JustPCDuctilityAction extends ffi.Struct { - @UInt32() - external int ductilityAxis; - - @Fixed() - external int minimumLimit; - - @Fixed() - external int noStretchValue; - - @Fixed() - external int maximumLimit; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ductilityAxis, - required int minimumLimit, - required int noStretchValue, - required int maximumLimit, - }) => $allocator() - ..ref.ductilityAxis = ductilityAxis - ..ref.minimumLimit = minimumLimit - ..ref.noStretchValue = noStretchValue - ..ref.maximumLimit = maximumLimit; -} - -final class JustPCGlyphRepeatAddAction extends ffi.Struct { - @UInt16() - external int flags; - - @UInt16() - external int glyph; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int glyph, - }) => $allocator() - ..ref.flags = flags - ..ref.glyph = glyph; -} - -typedef JustPCUnconditionalAddAction = UInt16; - -final class JustPostcompTable extends ffi.Struct { - external SFNTLookupTable lookupTable; -} - -@ffi.Packed(2) -final class JustTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt16() - external int format; - - @UInt16() - external int horizHeaderOffset; - - @UInt16() - external int vertHeaderOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int format, - required int horizHeaderOffset, - required int vertHeaderOffset, - }) => $allocator() - ..ref.version = version - ..ref.format = format - ..ref.horizHeaderOffset = horizHeaderOffset - ..ref.vertHeaderOffset = vertHeaderOffset; -} - -@ffi.Packed(2) -final class JustWidthDeltaEntry extends ffi.Struct { - @UInt32() - external int justClass; - - @Fixed() - external int beforeGrowLimit; - - @Fixed() - external int beforeShrinkLimit; - - @Fixed() - external int afterGrowLimit; - - @Fixed() - external int afterShrinkLimit; - - @JustificationFlags() - external int growFlags; - - @JustificationFlags() - external int shrinkFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int justClass, - required int beforeGrowLimit, - required int beforeShrinkLimit, - required int afterGrowLimit, - required int afterShrinkLimit, - required int growFlags, - required int shrinkFlags, - }) => $allocator() - ..ref.justClass = justClass - ..ref.beforeGrowLimit = beforeGrowLimit - ..ref.beforeShrinkLimit = beforeShrinkLimit - ..ref.afterGrowLimit = afterGrowLimit - ..ref.afterShrinkLimit = afterShrinkLimit - ..ref.growFlags = growFlags - ..ref.shrinkFlags = shrinkFlags; -} - -@ffi.Packed(2) -final class JustWidthDeltaGroup extends ffi.Struct { - @UInt32() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array entries; -} - -typedef JustificationFlags = UInt16; - -const int KAEISHandleCGI = 1935961955; - -typedef KCAttrType = SecKeychainAttrType; -typedef KCAttribute = SecKeychainAttribute; -typedef KCAttributeList = SecKeychainAttributeList; -typedef KCAuthType = FourCharCode; - -@ffi.Packed(2) -final class KCCallbackInfo extends ffi.Struct { - @UInt32() - external int version; - - external KCItemRef item; - - @ffi.Array.multi([2]) - external ffi.Array processID; - - @ffi.Array.multi([4]) - external ffi.Array event; - - external KCRef keychain; -} - -typedef KCCallbackProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - KCEvent keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ) - > - >; -typedef KCCallbackUPP = KCCallbackProcPtr; -typedef KCCertAddOptions = UInt32; -typedef KCCertSearchOptions = UInt32; -typedef KCEvent = UInt16; -typedef KCEventMask = UInt16; -typedef KCItemAttr = FourCharCode; -typedef KCItemClass = FourCharCode; -typedef KCItemRef = SecKeychainItemRef; -typedef KCProtocolType = FourCharCode; -typedef KCRef = SecKeychainRef; -typedef KCSearchRef = SecKeychainSearchRef; -typedef KCStatus = SecKeychainStatus; -typedef KCVerifyStopOn = UInt16; -typedef KernArrayOffset = UInt16; - -final class KernEntry extends ffi.Struct { - @SInt16() - external int kernStyle; - - @SInt16() - external int kernLength; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int kernStyle, - required int kernLength, - }) => $allocator() - ..ref.kernStyle = kernStyle - ..ref.kernLength = kernLength; -} - -final class KernFormatSpecificHeader extends ffi.Union { - external KernOrderedListHeader orderedList; - - external KernStateHeader stateTable; - - external KernSimpleArrayHeader simpleArray; - - external KernIndexArrayHeader indexArray; -} - -final class KernIndexArrayHeader extends ffi.Struct { - @UInt16() - external int glyphCount; - - @UInt8() - external int kernValueCount; - - @UInt8() - external int leftClassCount; - - @UInt8() - external int rightClassCount; - - @UInt8() - external int flags; - - @ffi.Array.multi([1]) - external ffi.Array kernValue; - - @ffi.Array.multi([1]) - external ffi.Array leftClass; - - @ffi.Array.multi([1]) - external ffi.Array rightClass; - - @ffi.Array.multi([1]) - external ffi.Array kernIndex; -} - -final class KernKerningPair extends ffi.Struct { - @UInt16() - external int left; - - @UInt16() - external int right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int left, - required int right, - }) => $allocator() - ..ref.left = left - ..ref.right = right; -} - -typedef KernKerningValue = SInt16; - -final class KernOffsetTable extends ffi.Struct { - @UInt16() - external int firstGlyph; - - @UInt16() - external int nGlyphs; - - @ffi.Array.multi([1]) - external ffi.Array offsetTable; -} - -typedef KernOffsetTablePtr = ffi.Pointer; - -final class KernOrderedListEntry extends ffi.Struct { - external KernKerningPair pair; - - @KernKerningValue() - external int value; -} - -typedef KernOrderedListEntryPtr = ffi.Pointer; - -final class KernOrderedListHeader extends ffi.Struct { - @UInt16() - external int nPairs; - - @UInt16() - external int searchRange; - - @UInt16() - external int entrySelector; - - @UInt16() - external int rangeShift; - - @ffi.Array.multi([1]) - external ffi.Array table; -} - -final class KernPair extends ffi.Struct { - @ffi.Char() - external int kernFirst; - - @ffi.Char() - external int kernSecond; - - @SInt16() - external int kernWidth; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int kernFirst, - required int kernSecond, - required int kernWidth, - }) => $allocator() - ..ref.kernFirst = kernFirst - ..ref.kernSecond = kernSecond - ..ref.kernWidth = kernWidth; -} - -final class KernSimpleArrayHeader extends ffi.Struct { - @UInt16() - external int rowWidth; - - @UInt16() - external int leftOffsetTable; - - @UInt16() - external int rightOffsetTable; - - @KernArrayOffset() - external int theArray; - - @ffi.Array.multi([1]) - external ffi.Array firstTable; -} - -final class KernStateEntry extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags; -} - -final class KernStateHeader extends ffi.Struct { - external STHeader header; - - @UInt16() - external int valueTable; - - @ffi.Array.multi([1]) - external ffi.Array firstTable; -} - -@ffi.Packed(2) -final class KernSubtableHeader extends ffi.Struct { - @SInt32() - external int length; - - @KernSubtableInfo() - external int stInfo; - - @SInt16() - external int tupleIndex; - - external KernFormatSpecificHeader fsHeader; -} - -typedef KernSubtableHeaderPtr = ffi.Pointer; -typedef KernSubtableInfo = UInt16; - -final class KernTable extends ffi.Struct { - @SInt16() - external int numKerns; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numKerns, - }) => $allocator()..ref.numKerns = numKerns; -} - -typedef KernTableFormat = UInt8; - -@ffi.Packed(2) -final class KernTableHeader extends ffi.Struct { - @Fixed() - external int version; - - @SInt32() - external int nTables; - - @ffi.Array.multi([1]) - external ffi.Array firstSubtable; -} - -typedef KernTableHeaderHandle = ffi.Pointer; -typedef KernTableHeaderPtr = ffi.Pointer; - -final class KernVersion0Header extends ffi.Struct { - @UInt16() - external int version; - - @UInt16() - external int nTables; - - @ffi.Array.multi([1]) - external ffi.Array firstSubtable; -} - -final class KernVersion0SubtableHeader extends ffi.Struct { - @UInt16() - external int version; - - @UInt16() - external int length; - - @KernSubtableInfo() - external int stInfo; - - external KernFormatSpecificHeader fsHeader; -} - -final class KerxAnchorPointAction extends ffi.Struct { - @UInt16() - external int markAnchorPoint; - - @UInt16() - external int currAnchorPoint; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int markAnchorPoint, - required int currAnchorPoint, - }) => $allocator() - ..ref.markAnchorPoint = markAnchorPoint - ..ref.currAnchorPoint = currAnchorPoint; -} - -typedef KerxArrayOffset = UInt32; - -final class KerxControlPointAction extends ffi.Struct { - @UInt16() - external int markControlPoint; - - @UInt16() - external int currControlPoint; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int markControlPoint, - required int currControlPoint, - }) => $allocator() - ..ref.markControlPoint = markControlPoint - ..ref.currControlPoint = currControlPoint; -} - -final class KerxControlPointEntry extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int actionIndex; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int actionIndex, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.actionIndex = actionIndex; -} - -@ffi.Packed(2) -final class KerxControlPointHeader extends ffi.Struct { - external STXHeader header; - - @UInt32() - external int flags; - - @ffi.Array.multi([1]) - external ffi.Array firstTable; -} - -final class KerxCoordinateAction extends ffi.Struct { - @UInt16() - external int markX; - - @UInt16() - external int markY; - - @UInt16() - external int currX; - - @UInt16() - external int currY; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int markX, - required int markY, - required int currX, - required int currY, - }) => $allocator() - ..ref.markX = markX - ..ref.markY = markY - ..ref.currX = currX - ..ref.currY = currY; -} - -final class KerxFormatSpecificHeader extends ffi.Union { - external KerxOrderedListHeader orderedList; - - external KerxStateHeader stateTable; - - external KerxSimpleArrayHeader simpleArray; - - external KerxIndexArrayHeader indexArray; - - external KerxControlPointHeader controlPoint; -} - -@ffi.Packed(2) -final class KerxIndexArrayHeader extends ffi.Struct { - @UInt32() - external int flags; - - @UInt16() - external int rowCount; - - @UInt16() - external int columnCount; - - @UInt32() - external int rowIndexTableOffset; - - @UInt32() - external int columnIndexTableOffset; - - @UInt32() - external int kerningArrayOffset; - - @UInt32() - external int kerningVectorOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int rowCount, - required int columnCount, - required int rowIndexTableOffset, - required int columnIndexTableOffset, - required int kerningArrayOffset, - required int kerningVectorOffset, - }) => $allocator() - ..ref.flags = flags - ..ref.rowCount = rowCount - ..ref.columnCount = columnCount - ..ref.rowIndexTableOffset = rowIndexTableOffset - ..ref.columnIndexTableOffset = columnIndexTableOffset - ..ref.kerningArrayOffset = kerningArrayOffset - ..ref.kerningVectorOffset = kerningVectorOffset; -} - -final class KerxKerningPair extends ffi.Struct { - @UInt16() - external int left; - - @UInt16() - external int right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int left, - required int right, - }) => $allocator() - ..ref.left = left - ..ref.right = right; -} - -final class KerxOrderedListEntry extends ffi.Struct { - external KerxKerningPair pair; - - @KernKerningValue() - external int value; -} - -typedef KerxOrderedListEntryPtr = ffi.Pointer; - -@ffi.Packed(2) -final class KerxOrderedListHeader extends ffi.Struct { - @UInt32() - external int nPairs; - - @UInt32() - external int searchRange; - - @UInt32() - external int entrySelector; - - @UInt32() - external int rangeShift; - - @ffi.Array.multi([1]) - external ffi.Array table; -} - -@ffi.Packed(2) -final class KerxSimpleArrayHeader extends ffi.Struct { - @UInt32() - external int rowWidth; - - @UInt32() - external int leftOffsetTable; - - @UInt32() - external int rightOffsetTable; - - @KerxArrayOffset() - external int theArray; - - @ffi.Array.multi([1]) - external ffi.Array firstTable; -} - -final class KerxStateEntry extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int valueIndex; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int valueIndex, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.valueIndex = valueIndex; -} - -@ffi.Packed(2) -final class KerxStateHeader extends ffi.Struct { - external STXHeader header; - - @UInt32() - external int valueTable; - - @ffi.Array.multi([1]) - external ffi.Array firstTable; -} - -typedef KerxSubtableCoverage = UInt32; - -@ffi.Packed(2) -final class KerxSubtableHeader extends ffi.Struct { - @UInt32() - external int length; - - @KerxSubtableCoverage() - external int stInfo; - - @UInt32() - external int tupleCount; - - external KerxFormatSpecificHeader fsHeader; -} - -typedef KerxSubtableHeaderPtr = ffi.Pointer; - -@ffi.Packed(2) -final class KerxTableHeader extends ffi.Struct { - @Fixed() - external int version; - - @UInt32() - external int nTables; - - @ffi.Array.multi([1]) - external ffi.Array firstSubtable; -} - -typedef KerxTableHeaderHandle = ffi.Pointer; -typedef KerxTableHeaderPtr = ffi.Pointer; - -const int LESSTHAN = 1; - -final class LLCStyleInfo extends ffi.Opaque {} - -sealed class LSAcceptanceFlags { - static const kLSAcceptDefault = 1; - static const kLSAcceptAllowLoginUI = 2; -} - -@ffi.Packed(2) -final class LSApplicationParameters extends ffi.Struct { - @CFIndex() - external int version; - - @OptionBits() - external int flags; - - external ffi.Pointer application; - - external ffi.Pointer asyncLaunchRefCon; - - external CFDictionaryRef environment; - - external CFArrayRef argv; - - external ffi.Pointer initialEvent; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int flags, - required ffi.Pointer application, - required ffi.Pointer asyncLaunchRefCon, - required CFDictionaryRef environment, - required CFArrayRef argv, - required ffi.Pointer initialEvent, - }) => $allocator() - ..ref.version = version - ..ref.flags = flags - ..ref.application = application - ..ref.asyncLaunchRefCon = asyncLaunchRefCon - ..ref.environment = environment - ..ref.argv = argv - ..ref.initialEvent = initialEvent; -} - -sealed class LSHandlerOptions { - static const kLSHandlerOptionsDefault = 0; - static const kLSHandlerOptionsIgnoreCreator = 1; -} - -sealed class LSItemInfoFlags { - static const kLSItemInfoIsPlainFile = 1; - static const kLSItemInfoIsPackage = 2; - static const kLSItemInfoIsApplication = 4; - static const kLSItemInfoIsContainer = 8; - static const kLSItemInfoIsAliasFile = 16; - static const kLSItemInfoIsSymlink = 32; - static const kLSItemInfoIsInvisible = 64; - static const kLSItemInfoIsNativeApp = 128; - static const kLSItemInfoIsClassicApp = 256; - static const kLSItemInfoAppPrefersNative = 512; - static const kLSItemInfoAppPrefersClassic = 1024; - static const kLSItemInfoAppIsScriptable = 2048; - static const kLSItemInfoIsVolume = 4096; - static const kLSItemInfoExtensionIsHidden = 1048576; -} - -@ffi.Packed(2) -final class LSItemInfoRecord extends ffi.Struct { - @OptionBits() - external int flags; - - @OSType() - external int filetype; - - @OSType() - external int creator; - - external CFStringRef extension; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int filetype, - required int creator, - required CFStringRef extension, - }) => $allocator() - ..ref.flags = flags - ..ref.filetype = filetype - ..ref.creator = creator - ..ref.extension = extension; -} - -@ffi.Packed(2) -final class LSLaunchFSRefSpec extends ffi.Struct { - external ffi.Pointer appRef; - - @ItemCount() - external int numDocs; - - external ffi.Pointer itemRefs; - - external ffi.Pointer passThruParams; - - @OptionBits() - external int launchFlags; - - external ffi.Pointer asyncRefCon; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer appRef, - required int numDocs, - required ffi.Pointer itemRefs, - required ffi.Pointer passThruParams, - required int launchFlags, - required ffi.Pointer asyncRefCon, - }) => $allocator() - ..ref.appRef = appRef - ..ref.numDocs = numDocs - ..ref.itemRefs = itemRefs - ..ref.passThruParams = passThruParams - ..ref.launchFlags = launchFlags - ..ref.asyncRefCon = asyncRefCon; -} - -sealed class LSLaunchFlags { - static const kLSLaunchDefaults = 1; - static const kLSLaunchAndPrint = 2; - static const kLSLaunchAndDisplayErrors = 64; - static const kLSLaunchDontAddToRecents = 256; - static const kLSLaunchDontSwitch = 512; - static const kLSLaunchAsync = 65536; - static const kLSLaunchNewInstance = 524288; - static const kLSLaunchAndHide = 1048576; - static const kLSLaunchAndHideOthers = 2097152; -} - -@ffi.Packed(2) -final class LSLaunchURLSpec extends ffi.Struct { - external CFURLRef appURL; - - external CFArrayRef itemURLs; - - external ffi.Pointer passThruParams; - - @OptionBits() - external int launchFlags; - - external ffi.Pointer asyncRefCon; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CFURLRef appURL, - required CFArrayRef itemURLs, - required ffi.Pointer passThruParams, - required int launchFlags, - required ffi.Pointer asyncRefCon, - }) => $allocator() - ..ref.appURL = appURL - ..ref.itemURLs = itemURLs - ..ref.passThruParams = passThruParams - ..ref.launchFlags = launchFlags - ..ref.asyncRefCon = asyncRefCon; -} - -sealed class LSRequestedInfo { - static const kLSRequestExtension = 1; - static const kLSRequestTypeCreator = 2; - static const kLSRequestBasicFlagsOnly = 4; - static const kLSRequestAppTypeFlags = 8; - static const kLSRequestAllFlags = 16; - static const kLSRequestIconAndKind = 32; - static const kLSRequestExtensionFlagsOnly = 64; - static const kLSRequestAllInfo = -1; -} - -sealed class LSRolesMask { - static const kLSRolesNone = 1; - static const kLSRolesViewer = 2; - static const kLSRolesEditor = 4; - static const kLSRolesShell = 8; - static const kLSRolesAll = -1; -} - -typedef LSSharedFileListChangedProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - LSSharedFileListRef inList, - ffi.Pointer context, - ) - > - >; -typedef LSSharedFileListItemRef = ffi.Pointer; -typedef LSSharedFileListRef = ffi.Pointer; -typedef LSSharedFileListResolutionFlags = UInt32; -typedef LangCode = SInt16; -typedef LaunchFlags = UInt16; -typedef LaunchPBPtr = ffi.Pointer; - -@ffi.Packed(2) -final class LaunchParamBlockRec extends ffi.Struct { - @UInt32() - external int reserved1; - - @UInt16() - external int reserved2; - - @UInt16() - external int launchBlockID; - - @UInt32() - external int launchEPBLength; - - @UInt16() - external int launchFileFlags; - - @LaunchFlags() - external int launchControlFlags; - - external FSRefPtr launchAppRef; - - external ProcessSerialNumber launchProcessSN; - - @UInt32() - external int launchPreferredSize; - - @UInt32() - external int launchMinimumSize; - - @UInt32() - external int launchAvailableSize; - - external AppParametersPtr launchAppParameters; -} - -final class LcarCaretClassEntry extends ffi.Struct { - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array partials; -} - -@ffi.Packed(2) -final class LcarCaretTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt16() - external int format; - - external SFNTLookupTable lookup; -} - -typedef LcarCaretTablePtr = ffi.Pointer; - -@ffi.Packed(2) -final class LocalDateTime extends ffi.Struct { - @UInt16() - external int highSeconds; - - @UInt32() - external int lowSeconds; - - @UInt16() - external int fraction$1; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int highSeconds, - required int lowSeconds, - required int fraction$1, - }) => $allocator() - ..ref.highSeconds = highSeconds - ..ref.lowSeconds = lowSeconds - ..ref.fraction$1 = fraction$1; -} - -typedef LocalDateTimeHandle = ffi.Pointer; -typedef LocalDateTimePtr = ffi.Pointer; - -@ffi.Packed(2) -final class LocaleAndVariant extends ffi.Struct { - external LocaleRef locale; - - @LocaleOperationVariant() - external int opVariant; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required LocaleRef locale, - required int opVariant, - }) => $allocator() - ..ref.locale = locale - ..ref.opVariant = opVariant; -} - -typedef LocaleNameMask = UInt32; -typedef LocaleOperationClass = FourCharCode; -typedef LocaleOperationVariant = FourCharCode; -typedef LocalePartMask = UInt32; -typedef LocaleRef = ffi.Pointer; -typedef LogicalAddress = ffi.Pointer; - -final class LongDateCvt extends ffi.Union { - @SInt64() - external int c; - - external UnnamedStruct$14 hl; -} - -typedef LongDateField = SInt8; - -final class LongDateRec extends ffi.Union { - external UnnamedStruct$15 ld; - - @ffi.Array.multi([14]) - external ffi.Array list; - - external UnnamedStruct$16 od; -} - -typedef LongDateTime = SInt64; - -final class LtagStringRange extends ffi.Struct { - @UInt16() - external int offset; - - @UInt16() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int length, - }) => $allocator() - ..ref.offset = offset - ..ref.length = length; -} - -@ffi.Packed(2) -final class LtagTable extends ffi.Struct { - @UInt32() - external int version; - - @UInt32() - external int flags; - - @UInt32() - external int numTags; - - @ffi.Array.multi([1]) - external ffi.Array tagRange; -} - -const int MACE3Type = 1296122675; - -const int MACE6Type = 1296122678; - -typedef MDItemRef = ffi.Pointer<__MDItem>; - -enum MDLabelDomain { - kMDLabelUserDomain(0), - kMDLabelLocalDomain(1); - - final int value; - const MDLabelDomain(this.value); - - static MDLabelDomain fromValue(int value) => switch (value) { - 0 => kMDLabelUserDomain, - 1 => kMDLabelLocalDomain, - _ => throw ArgumentError('Unknown value for MDLabelDomain: $value'), - }; -} - -typedef MDLabelRef = ffi.Pointer<__MDLabel>; - -final class MDQueryBatchingParams extends ffi.Struct { - @ffi.Size() - external int first_max_num; - - @ffi.Size() - external int first_max_ms; - - @ffi.Size() - external int progress_max_num; - - @ffi.Size() - external int progress_max_ms; - - @ffi.Size() - external int update_max_num; - - @ffi.Size() - external int update_max_ms; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int first_max_num, - required int first_max_ms, - required int progress_max_num, - required int progress_max_ms, - required int update_max_num, - required int update_max_ms, - }) => $allocator() - ..ref.first_max_num = first_max_num - ..ref.first_max_ms = first_max_ms - ..ref.progress_max_num = progress_max_num - ..ref.progress_max_ms = progress_max_ms - ..ref.update_max_num = update_max_num - ..ref.update_max_ms = update_max_ms; -} - -typedef MDQueryCreateResultFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - MDQueryRef query, - MDItemRef item, - ffi.Pointer context, - ) - > - >; -typedef MDQueryCreateValueFunction = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - MDQueryRef query, - CFStringRef attrName, - CFTypeRef attrValue, - ffi.Pointer context, - ) - > - >; - -enum MDQueryOptionFlags { - kMDQuerySynchronous(1), - kMDQueryWantsUpdates(4), - kMDQueryAllowFSTranslation(8); - - final int value; - const MDQueryOptionFlags(this.value); - - static MDQueryOptionFlags fromValue(int value) => switch (value) { - 1 => kMDQuerySynchronous, - 4 => kMDQueryWantsUpdates, - 8 => kMDQueryAllowFSTranslation, - _ => throw ArgumentError('Unknown value for MDQueryOptionFlags: $value'), - }; -} - -typedef MDQueryRef = ffi.Pointer<__MDQuery>; -typedef MDQuerySortComparatorFunction = - ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer attrs1, - ffi.Pointer attrs2, - ffi.Pointer context, - ) - > - >; - -enum MDQuerySortOptionFlags { - kMDQueryReverseSortOrderFlag(1); - - final int value; - const MDQuerySortOptionFlags(this.value); - - static MDQuerySortOptionFlags fromValue(int value) => switch (value) { - 1 => kMDQueryReverseSortOrderFlag, - _ => throw ArgumentError( - 'Unknown value for MDQuerySortOptionFlags: $value', - ), - }; -} - -typedef MDS_DB_HANDLE = CSSM_DL_DB_HANDLE; -typedef MDS_FUNCS = mds_funcs; -typedef MDS_FUNCS_PTR = ffi.Pointer; -typedef MDS_HANDLE = CSSM_DL_HANDLE; - -@ffi.Packed(2) -final class MIDIDataChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @ffi.Array.multi([1]) - external ffi.Array MIDIdata; -} - -typedef MIDIDataChunkPtr = ffi.Pointer; - -const int MIDIDataID = 1296647241; - -typedef MPAddressSpaceID = ffi.Pointer; - -final class MPAddressSpaceInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - external MPCoherenceID groupID; - - @ItemCount() - external int nTasks; - - @ffi.Array.multi([16]) - external ffi.Array vsid; -} - -typedef MPAreaID = ffi.Pointer; -typedef MPCoherenceID = ffi.Pointer; -typedef MPConsoleID = ffi.Pointer; -typedef MPCpuID = ffi.Pointer; -typedef MPCriticalRegionID = ffi.Pointer; - -final class MPCriticalRegionInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - @OSType() - external int regionName; - - @ItemCount() - external int nWaiting; - - external MPTaskID waitingTaskID; - - external MPTaskID owningTask; - - @ItemCount() - external int count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required MPProcessID processID, - required int regionName, - required int nWaiting, - required MPTaskID waitingTaskID, - required MPTaskID owningTask, - required int count, - }) => $allocator() - ..ref.version = version - ..ref.processID = processID - ..ref.regionName = regionName - ..ref.nWaiting = nWaiting - ..ref.waitingTaskID = waitingTaskID - ..ref.owningTask = owningTask - ..ref.count = count; -} - -typedef MPDebuggerLevel = UInt32; - -enum MPEG4ObjectID { - kMPEG4Object_AAC_Main(1), - kMPEG4Object_AAC_LC(2), - kMPEG4Object_AAC_SSR(3), - kMPEG4Object_AAC_LTP(4), - kMPEG4Object_AAC_SBR(5), - kMPEG4Object_AAC_Scalable(6), - kMPEG4Object_TwinVQ(7), - kMPEG4Object_CELP(8), - kMPEG4Object_HVXC(9); - - final int value; - const MPEG4ObjectID(this.value); - - static MPEG4ObjectID fromValue(int value) => switch (value) { - 1 => kMPEG4Object_AAC_Main, - 2 => kMPEG4Object_AAC_LC, - 3 => kMPEG4Object_AAC_SSR, - 4 => kMPEG4Object_AAC_LTP, - 5 => kMPEG4Object_AAC_SBR, - 6 => kMPEG4Object_AAC_Scalable, - 7 => kMPEG4Object_TwinVQ, - 8 => kMPEG4Object_CELP, - 9 => kMPEG4Object_HVXC, - _ => throw ArgumentError('Unknown value for MPEG4ObjectID: $value'), - }; -} - -typedef MPEventFlags = UInt32; -typedef MPEventID = ffi.Pointer; - -final class MPEventInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - @OSType() - external int eventName; - - @ItemCount() - external int nWaiting; - - external MPTaskID waitingTaskID; - - @MPEventFlags() - external int events; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required MPProcessID processID, - required int eventName, - required int nWaiting, - required MPTaskID waitingTaskID, - required int events, - }) => $allocator() - ..ref.version = version - ..ref.processID = processID - ..ref.eventName = eventName - ..ref.nWaiting = nWaiting - ..ref.waitingTaskID = waitingTaskID - ..ref.events = events; -} - -typedef MPExceptionKind = UInt32; -typedef MPIsFullyInitializedProc = - ffi.Pointer>; -@Deprecated('Deprecated') -const int MPLibrary_DevelopmentRevision = 1; - -@Deprecated('Deprecated') -const int MPLibrary_MajorVersion = 2; - -@Deprecated('Deprecated') -const int MPLibrary_MinorVersion = 3; - -@Deprecated('Deprecated') -const int MPLibrary_Release = 1; - -typedef MPNotificationID = ffi.Pointer; - -final class MPNotificationInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - @OSType() - external int notificationName; - - external MPQueueID queueID; - - external ffi.Pointer p1; - - external ffi.Pointer p2; - - external ffi.Pointer p3; - - external MPEventID eventID; - - @MPEventFlags() - external int events; - - external MPSemaphoreID semaphoreID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required MPProcessID processID, - required int notificationName, - required MPQueueID queueID, - required ffi.Pointer p1, - required ffi.Pointer p2, - required ffi.Pointer p3, - required MPEventID eventID, - required int events, - required MPSemaphoreID semaphoreID, - }) => $allocator() - ..ref.version = version - ..ref.processID = processID - ..ref.notificationName = notificationName - ..ref.queueID = queueID - ..ref.p1 = p1 - ..ref.p2 = p2 - ..ref.p3 = p3 - ..ref.eventID = eventID - ..ref.events = events - ..ref.semaphoreID = semaphoreID; -} - -typedef MPOpaqueID = ffi.Pointer; -typedef MPOpaqueIDClass = UInt32; -typedef MPPageSizeClass = UInt32; -typedef MPProcessID = ffi.Pointer; -typedef MPQueueID = ffi.Pointer; - -final class MPQueueInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - @OSType() - external int queueName; - - @ItemCount() - external int nWaiting; - - external MPTaskID waitingTaskID; - - @ItemCount() - external int nMessages; - - @ItemCount() - external int nReserved; - - external ffi.Pointer p1; - - external ffi.Pointer p2; - - external ffi.Pointer p3; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required MPProcessID processID, - required int queueName, - required int nWaiting, - required MPTaskID waitingTaskID, - required int nMessages, - required int nReserved, - required ffi.Pointer p1, - required ffi.Pointer p2, - required ffi.Pointer p3, - }) => $allocator() - ..ref.version = version - ..ref.processID = processID - ..ref.queueName = queueName - ..ref.nWaiting = nWaiting - ..ref.waitingTaskID = waitingTaskID - ..ref.nMessages = nMessages - ..ref.nReserved = nReserved - ..ref.p1 = p1 - ..ref.p2 = p2 - ..ref.p3 = p3; -} - -typedef MPRemoteContext = UInt8; -typedef MPRemoteProcedure = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer parameter) - > - >; -typedef MPSemaphoreCount = ItemCount; -typedef MPSemaphoreID = ffi.Pointer; - -final class MPSemaphoreInfo extends ffi.Struct { - @PBVersion() - external int version; - - external MPProcessID processID; - - @OSType() - external int semaphoreName; - - @ItemCount() - external int nWaiting; - - external MPTaskID waitingTaskID; - - @ItemCount() - external int maximum; - - @ItemCount() - external int count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required MPProcessID processID, - required int semaphoreName, - required int nWaiting, - required MPTaskID waitingTaskID, - required int maximum, - required int count, - }) => $allocator() - ..ref.version = version - ..ref.processID = processID - ..ref.semaphoreName = semaphoreName - ..ref.nWaiting = nWaiting - ..ref.waitingTaskID = waitingTaskID - ..ref.maximum = maximum - ..ref.count = count; -} - -typedef MPTaskID = ffi.Pointer; - -final class MPTaskInfo extends ffi.Struct { - @PBVersion() - external int version; - - @OSType() - external int name; - - @OSType() - external int queueName; - - @UInt16() - external int runState; - - @UInt16() - external int lastCPU; - - @UInt32() - external int weight; - - external MPProcessID processID; - - external AbsoluteTime cpuTime; - - external AbsoluteTime schedTime; - - external AbsoluteTime creationTime; - - @ItemCount() - external int codePageFaults; - - @ItemCount() - external int dataPageFaults; - - @ItemCount() - external int preemptions; - - external MPCpuID cpuID; - - external MPOpaqueID blockedObject; - - external MPAddressSpaceID spaceID; - - external LogicalAddress stackBase; - - external LogicalAddress stackLimit; - - external LogicalAddress stackCurr; -} - -final class MPTaskInfoVersion2 extends ffi.Struct { - @PBVersion() - external int version; - - @OSType() - external int name; - - @OSType() - external int queueName; - - @UInt16() - external int runState; - - @UInt16() - external int lastCPU; - - @UInt32() - external int weight; - - external MPProcessID processID; - - external AbsoluteTime cpuTime; - - external AbsoluteTime schedTime; - - external AbsoluteTime creationTime; - - @ItemCount() - external int codePageFaults; - - @ItemCount() - external int dataPageFaults; - - @ItemCount() - external int preemptions; - - external MPCpuID cpuID; -} - -typedef MPTaskOptions = OptionBits; -typedef MPTaskStateKind = UInt32; -typedef MPTaskWeight = UInt32; -typedef MPTimerID = ffi.Pointer; - -/// WARNING: MTLBuffer is a stub. To generate bindings for this class, include -/// MTLBuffer in your config's objc-protocols list. -/// -/// MTLBuffer -extension type MTLBuffer._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [MTLBuffer] that points to the same underlying object as [other]. - MTLBuffer.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [MTLBuffer] that wraps the given raw object pointer. - MTLBuffer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: MTLDevice is a stub. To generate bindings for this class, include -/// MTLDevice in your config's objc-protocols list. -/// -/// MTLDevice -extension type MTLDevice._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [MTLDevice] that points to the same underlying object as [other]. - MTLDevice.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [MTLDevice] that wraps the given raw object pointer. - MTLDevice.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -enum MTLPixelFormat { - MTLPixelFormatInvalid(0), - MTLPixelFormatA8Unorm(1), - MTLPixelFormatR8Unorm(10), - MTLPixelFormatR8Unorm_sRGB(11), - MTLPixelFormatR8Snorm(12), - MTLPixelFormatR8Uint(13), - MTLPixelFormatR8Sint(14), - MTLPixelFormatR16Unorm(20), - MTLPixelFormatR16Snorm(22), - MTLPixelFormatR16Uint(23), - MTLPixelFormatR16Sint(24), - MTLPixelFormatR16Float(25), - MTLPixelFormatRG8Unorm(30), - MTLPixelFormatRG8Unorm_sRGB(31), - MTLPixelFormatRG8Snorm(32), - MTLPixelFormatRG8Uint(33), - MTLPixelFormatRG8Sint(34), - MTLPixelFormatB5G6R5Unorm(40), - MTLPixelFormatA1BGR5Unorm(41), - MTLPixelFormatABGR4Unorm(42), - MTLPixelFormatBGR5A1Unorm(43), - MTLPixelFormatR32Uint(53), - MTLPixelFormatR32Sint(54), - MTLPixelFormatR32Float(55), - MTLPixelFormatRG16Unorm(60), - MTLPixelFormatRG16Snorm(62), - MTLPixelFormatRG16Uint(63), - MTLPixelFormatRG16Sint(64), - MTLPixelFormatRG16Float(65), - MTLPixelFormatRGBA8Unorm(70), - MTLPixelFormatRGBA8Unorm_sRGB(71), - MTLPixelFormatRGBA8Snorm(72), - MTLPixelFormatRGBA8Uint(73), - MTLPixelFormatRGBA8Sint(74), - MTLPixelFormatBGRA8Unorm(80), - MTLPixelFormatBGRA8Unorm_sRGB(81), - MTLPixelFormatRGB10A2Unorm(90), - MTLPixelFormatRGB10A2Uint(91), - MTLPixelFormatRG11B10Float(92), - MTLPixelFormatRGB9E5Float(93), - MTLPixelFormatBGR10A2Unorm(94), - MTLPixelFormatBGR10_XR(554), - MTLPixelFormatBGR10_XR_sRGB(555), - MTLPixelFormatRG32Uint(103), - MTLPixelFormatRG32Sint(104), - MTLPixelFormatRG32Float(105), - MTLPixelFormatRGBA16Unorm(110), - MTLPixelFormatRGBA16Snorm(112), - MTLPixelFormatRGBA16Uint(113), - MTLPixelFormatRGBA16Sint(114), - MTLPixelFormatRGBA16Float(115), - MTLPixelFormatBGRA10_XR(552), - MTLPixelFormatBGRA10_XR_sRGB(553), - MTLPixelFormatRGBA32Uint(123), - MTLPixelFormatRGBA32Sint(124), - MTLPixelFormatRGBA32Float(125), - MTLPixelFormatBC1_RGBA(130), - MTLPixelFormatBC1_RGBA_sRGB(131), - MTLPixelFormatBC2_RGBA(132), - MTLPixelFormatBC2_RGBA_sRGB(133), - MTLPixelFormatBC3_RGBA(134), - MTLPixelFormatBC3_RGBA_sRGB(135), - MTLPixelFormatBC4_RUnorm(140), - MTLPixelFormatBC4_RSnorm(141), - MTLPixelFormatBC5_RGUnorm(142), - MTLPixelFormatBC5_RGSnorm(143), - MTLPixelFormatBC6H_RGBFloat(150), - MTLPixelFormatBC6H_RGBUfloat(151), - MTLPixelFormatBC7_RGBAUnorm(152), - MTLPixelFormatBC7_RGBAUnorm_sRGB(153), - MTLPixelFormatPVRTC_RGB_2BPP(160), - MTLPixelFormatPVRTC_RGB_2BPP_sRGB(161), - MTLPixelFormatPVRTC_RGB_4BPP(162), - MTLPixelFormatPVRTC_RGB_4BPP_sRGB(163), - MTLPixelFormatPVRTC_RGBA_2BPP(164), - MTLPixelFormatPVRTC_RGBA_2BPP_sRGB(165), - MTLPixelFormatPVRTC_RGBA_4BPP(166), - MTLPixelFormatPVRTC_RGBA_4BPP_sRGB(167), - MTLPixelFormatEAC_R11Unorm(170), - MTLPixelFormatEAC_R11Snorm(172), - MTLPixelFormatEAC_RG11Unorm(174), - MTLPixelFormatEAC_RG11Snorm(176), - MTLPixelFormatEAC_RGBA8(178), - MTLPixelFormatEAC_RGBA8_sRGB(179), - MTLPixelFormatETC2_RGB8(180), - MTLPixelFormatETC2_RGB8_sRGB(181), - MTLPixelFormatETC2_RGB8A1(182), - MTLPixelFormatETC2_RGB8A1_sRGB(183), - MTLPixelFormatASTC_4x4_sRGB(186), - MTLPixelFormatASTC_5x4_sRGB(187), - MTLPixelFormatASTC_5x5_sRGB(188), - MTLPixelFormatASTC_6x5_sRGB(189), - MTLPixelFormatASTC_6x6_sRGB(190), - MTLPixelFormatASTC_8x5_sRGB(192), - MTLPixelFormatASTC_8x6_sRGB(193), - MTLPixelFormatASTC_8x8_sRGB(194), - MTLPixelFormatASTC_10x5_sRGB(195), - MTLPixelFormatASTC_10x6_sRGB(196), - MTLPixelFormatASTC_10x8_sRGB(197), - MTLPixelFormatASTC_10x10_sRGB(198), - MTLPixelFormatASTC_12x10_sRGB(199), - MTLPixelFormatASTC_12x12_sRGB(200), - MTLPixelFormatASTC_4x4_LDR(204), - MTLPixelFormatASTC_5x4_LDR(205), - MTLPixelFormatASTC_5x5_LDR(206), - MTLPixelFormatASTC_6x5_LDR(207), - MTLPixelFormatASTC_6x6_LDR(208), - MTLPixelFormatASTC_8x5_LDR(210), - MTLPixelFormatASTC_8x6_LDR(211), - MTLPixelFormatASTC_8x8_LDR(212), - MTLPixelFormatASTC_10x5_LDR(213), - MTLPixelFormatASTC_10x6_LDR(214), - MTLPixelFormatASTC_10x8_LDR(215), - MTLPixelFormatASTC_10x10_LDR(216), - MTLPixelFormatASTC_12x10_LDR(217), - MTLPixelFormatASTC_12x12_LDR(218), - MTLPixelFormatASTC_4x4_HDR(222), - MTLPixelFormatASTC_5x4_HDR(223), - MTLPixelFormatASTC_5x5_HDR(224), - MTLPixelFormatASTC_6x5_HDR(225), - MTLPixelFormatASTC_6x6_HDR(226), - MTLPixelFormatASTC_8x5_HDR(228), - MTLPixelFormatASTC_8x6_HDR(229), - MTLPixelFormatASTC_8x8_HDR(230), - MTLPixelFormatASTC_10x5_HDR(231), - MTLPixelFormatASTC_10x6_HDR(232), - MTLPixelFormatASTC_10x8_HDR(233), - MTLPixelFormatASTC_10x10_HDR(234), - MTLPixelFormatASTC_12x10_HDR(235), - MTLPixelFormatASTC_12x12_HDR(236), - MTLPixelFormatGBGR422(240), - MTLPixelFormatBGRG422(241), - MTLPixelFormatDepth16Unorm(250), - MTLPixelFormatDepth32Float(252), - MTLPixelFormatStencil8(253), - MTLPixelFormatDepth24Unorm_Stencil8(255), - MTLPixelFormatDepth32Float_Stencil8(260), - MTLPixelFormatX32_Stencil8(261), - MTLPixelFormatX24_Stencil8(262), - MTLPixelFormatUnspecialized(263); - - final int value; - const MTLPixelFormat(this.value); - - static MTLPixelFormat fromValue(int value) => switch (value) { - 0 => MTLPixelFormatInvalid, - 1 => MTLPixelFormatA8Unorm, - 10 => MTLPixelFormatR8Unorm, - 11 => MTLPixelFormatR8Unorm_sRGB, - 12 => MTLPixelFormatR8Snorm, - 13 => MTLPixelFormatR8Uint, - 14 => MTLPixelFormatR8Sint, - 20 => MTLPixelFormatR16Unorm, - 22 => MTLPixelFormatR16Snorm, - 23 => MTLPixelFormatR16Uint, - 24 => MTLPixelFormatR16Sint, - 25 => MTLPixelFormatR16Float, - 30 => MTLPixelFormatRG8Unorm, - 31 => MTLPixelFormatRG8Unorm_sRGB, - 32 => MTLPixelFormatRG8Snorm, - 33 => MTLPixelFormatRG8Uint, - 34 => MTLPixelFormatRG8Sint, - 40 => MTLPixelFormatB5G6R5Unorm, - 41 => MTLPixelFormatA1BGR5Unorm, - 42 => MTLPixelFormatABGR4Unorm, - 43 => MTLPixelFormatBGR5A1Unorm, - 53 => MTLPixelFormatR32Uint, - 54 => MTLPixelFormatR32Sint, - 55 => MTLPixelFormatR32Float, - 60 => MTLPixelFormatRG16Unorm, - 62 => MTLPixelFormatRG16Snorm, - 63 => MTLPixelFormatRG16Uint, - 64 => MTLPixelFormatRG16Sint, - 65 => MTLPixelFormatRG16Float, - 70 => MTLPixelFormatRGBA8Unorm, - 71 => MTLPixelFormatRGBA8Unorm_sRGB, - 72 => MTLPixelFormatRGBA8Snorm, - 73 => MTLPixelFormatRGBA8Uint, - 74 => MTLPixelFormatRGBA8Sint, - 80 => MTLPixelFormatBGRA8Unorm, - 81 => MTLPixelFormatBGRA8Unorm_sRGB, - 90 => MTLPixelFormatRGB10A2Unorm, - 91 => MTLPixelFormatRGB10A2Uint, - 92 => MTLPixelFormatRG11B10Float, - 93 => MTLPixelFormatRGB9E5Float, - 94 => MTLPixelFormatBGR10A2Unorm, - 554 => MTLPixelFormatBGR10_XR, - 555 => MTLPixelFormatBGR10_XR_sRGB, - 103 => MTLPixelFormatRG32Uint, - 104 => MTLPixelFormatRG32Sint, - 105 => MTLPixelFormatRG32Float, - 110 => MTLPixelFormatRGBA16Unorm, - 112 => MTLPixelFormatRGBA16Snorm, - 113 => MTLPixelFormatRGBA16Uint, - 114 => MTLPixelFormatRGBA16Sint, - 115 => MTLPixelFormatRGBA16Float, - 552 => MTLPixelFormatBGRA10_XR, - 553 => MTLPixelFormatBGRA10_XR_sRGB, - 123 => MTLPixelFormatRGBA32Uint, - 124 => MTLPixelFormatRGBA32Sint, - 125 => MTLPixelFormatRGBA32Float, - 130 => MTLPixelFormatBC1_RGBA, - 131 => MTLPixelFormatBC1_RGBA_sRGB, - 132 => MTLPixelFormatBC2_RGBA, - 133 => MTLPixelFormatBC2_RGBA_sRGB, - 134 => MTLPixelFormatBC3_RGBA, - 135 => MTLPixelFormatBC3_RGBA_sRGB, - 140 => MTLPixelFormatBC4_RUnorm, - 141 => MTLPixelFormatBC4_RSnorm, - 142 => MTLPixelFormatBC5_RGUnorm, - 143 => MTLPixelFormatBC5_RGSnorm, - 150 => MTLPixelFormatBC6H_RGBFloat, - 151 => MTLPixelFormatBC6H_RGBUfloat, - 152 => MTLPixelFormatBC7_RGBAUnorm, - 153 => MTLPixelFormatBC7_RGBAUnorm_sRGB, - 160 => MTLPixelFormatPVRTC_RGB_2BPP, - 161 => MTLPixelFormatPVRTC_RGB_2BPP_sRGB, - 162 => MTLPixelFormatPVRTC_RGB_4BPP, - 163 => MTLPixelFormatPVRTC_RGB_4BPP_sRGB, - 164 => MTLPixelFormatPVRTC_RGBA_2BPP, - 165 => MTLPixelFormatPVRTC_RGBA_2BPP_sRGB, - 166 => MTLPixelFormatPVRTC_RGBA_4BPP, - 167 => MTLPixelFormatPVRTC_RGBA_4BPP_sRGB, - 170 => MTLPixelFormatEAC_R11Unorm, - 172 => MTLPixelFormatEAC_R11Snorm, - 174 => MTLPixelFormatEAC_RG11Unorm, - 176 => MTLPixelFormatEAC_RG11Snorm, - 178 => MTLPixelFormatEAC_RGBA8, - 179 => MTLPixelFormatEAC_RGBA8_sRGB, - 180 => MTLPixelFormatETC2_RGB8, - 181 => MTLPixelFormatETC2_RGB8_sRGB, - 182 => MTLPixelFormatETC2_RGB8A1, - 183 => MTLPixelFormatETC2_RGB8A1_sRGB, - 186 => MTLPixelFormatASTC_4x4_sRGB, - 187 => MTLPixelFormatASTC_5x4_sRGB, - 188 => MTLPixelFormatASTC_5x5_sRGB, - 189 => MTLPixelFormatASTC_6x5_sRGB, - 190 => MTLPixelFormatASTC_6x6_sRGB, - 192 => MTLPixelFormatASTC_8x5_sRGB, - 193 => MTLPixelFormatASTC_8x6_sRGB, - 194 => MTLPixelFormatASTC_8x8_sRGB, - 195 => MTLPixelFormatASTC_10x5_sRGB, - 196 => MTLPixelFormatASTC_10x6_sRGB, - 197 => MTLPixelFormatASTC_10x8_sRGB, - 198 => MTLPixelFormatASTC_10x10_sRGB, - 199 => MTLPixelFormatASTC_12x10_sRGB, - 200 => MTLPixelFormatASTC_12x12_sRGB, - 204 => MTLPixelFormatASTC_4x4_LDR, - 205 => MTLPixelFormatASTC_5x4_LDR, - 206 => MTLPixelFormatASTC_5x5_LDR, - 207 => MTLPixelFormatASTC_6x5_LDR, - 208 => MTLPixelFormatASTC_6x6_LDR, - 210 => MTLPixelFormatASTC_8x5_LDR, - 211 => MTLPixelFormatASTC_8x6_LDR, - 212 => MTLPixelFormatASTC_8x8_LDR, - 213 => MTLPixelFormatASTC_10x5_LDR, - 214 => MTLPixelFormatASTC_10x6_LDR, - 215 => MTLPixelFormatASTC_10x8_LDR, - 216 => MTLPixelFormatASTC_10x10_LDR, - 217 => MTLPixelFormatASTC_12x10_LDR, - 218 => MTLPixelFormatASTC_12x12_LDR, - 222 => MTLPixelFormatASTC_4x4_HDR, - 223 => MTLPixelFormatASTC_5x4_HDR, - 224 => MTLPixelFormatASTC_5x5_HDR, - 225 => MTLPixelFormatASTC_6x5_HDR, - 226 => MTLPixelFormatASTC_6x6_HDR, - 228 => MTLPixelFormatASTC_8x5_HDR, - 229 => MTLPixelFormatASTC_8x6_HDR, - 230 => MTLPixelFormatASTC_8x8_HDR, - 231 => MTLPixelFormatASTC_10x5_HDR, - 232 => MTLPixelFormatASTC_10x6_HDR, - 233 => MTLPixelFormatASTC_10x8_HDR, - 234 => MTLPixelFormatASTC_10x10_HDR, - 235 => MTLPixelFormatASTC_12x10_HDR, - 236 => MTLPixelFormatASTC_12x12_HDR, - 240 => MTLPixelFormatGBGR422, - 241 => MTLPixelFormatBGRG422, - 250 => MTLPixelFormatDepth16Unorm, - 252 => MTLPixelFormatDepth32Float, - 253 => MTLPixelFormatStencil8, - 255 => MTLPixelFormatDepth24Unorm_Stencil8, - 260 => MTLPixelFormatDepth32Float_Stencil8, - 261 => MTLPixelFormatX32_Stencil8, - 262 => MTLPixelFormatX24_Stencil8, - 263 => MTLPixelFormatUnspecialized, - _ => throw ArgumentError('Unknown value for MTLPixelFormat: $value'), - }; -} - -/// WARNING: MTLTexture is a stub. To generate bindings for this class, include -/// MTLTexture in your config's objc-protocols list. -/// -/// MTLTexture -extension type MTLTexture._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [MTLTexture] that points to the same underlying object as [other]. - MTLTexture.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [MTLTexture] that wraps the given raw object pointer. - MTLTexture.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -final class MacPolygon extends ffi.Struct { - @ffi.Short() - external int polySize; - - external Rect polyBBox; - - @ffi.Array.multi([1]) - external ffi.Array polyPoints; -} - -final class MachineInformation extends ffi.Struct { - external ffi.Pointer __unusedMachineInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedMachineInformationField, - }) => - $allocator() - ..ref.__unusedMachineInformationField = $unusedMachineInformationField; -} - -final class MachineInformationPowerPC extends ffi.Struct { - external UnsignedWide CTR; - - external UnsignedWide LR; - - external UnsignedWide PC; - - @ffi.UnsignedLong() - external int CRRegister; - - @ffi.UnsignedLong() - external int XER; - - @ffi.UnsignedLong() - external int MSR; - - @ffi.UnsignedLong() - external int MQ; - - @ffi.UnsignedLong() - external int ExceptKind; - - @ffi.UnsignedLong() - external int DSISR; - - external UnsignedWide DAR; - - external UnsignedWide Reserved; -} - -@ffi.Packed(2) -final class MachineLocation extends ffi.Struct { - @Fract() - external int latitude; - - @Fract() - external int longitude; - - external UnnamedUnion$3 u; -} - -@ffi.Packed(2) -final class Marker extends ffi.Struct { - @MarkerIdType() - external int id; - - @UInt32() - external int position; - - @ffi.Array.multi([256]) - external ffi.Array markerName; -} - -@ffi.Packed(2) -final class MarkerChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt16() - external int numMarkers; - - @ffi.Array.multi([1]) - external ffi.Array Markers; -} - -typedef MarkerChunkPtr = ffi.Pointer; - -const int MarkerID = 1296126539; - -typedef MarkerIdType = SInt16; - -final class MemoryExceptionInformation extends ffi.Struct { - external AreaID theArea; - - external LogicalAddress theAddress; - - @OSStatus() - external int theError; - - @MemoryReferenceKind() - external int theReference; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required AreaID theArea, - required LogicalAddress theAddress, - required int theError, - required int theReference, - }) => $allocator() - ..ref.theArea = theArea - ..ref.theAddress = theAddress - ..ref.theError = theError - ..ref.theReference = theReference; -} - -typedef MemoryReferenceKind = ffi.UnsignedLong; -typedef DartMemoryReferenceKind = int; - -/// MicrophoneInjection -extension MicrophoneInjection on AVAudioSession { - /// isMicrophoneInjectionAvailable - bool get isMicrophoneInjectionAvailable { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.isMicrophoneInjectionAvailable', - iOS: (false, (18, 2, 0)), - macOS: (true, null), - ); - return _objc_msgSend_91o635( - _$$ref.pointer, - _sel_isMicrophoneInjectionAvailable, - ); - } - - /// preferredMicrophoneInjectionMode - AVAudioSessionMicrophoneInjectionMode get preferredMicrophoneInjectionMode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.preferredMicrophoneInjectionMode', - iOS: (false, (18, 2, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_6pykvq( - _$$ref.pointer, - _sel_preferredMicrophoneInjectionMode, - ); - return AVAudioSessionMicrophoneInjectionMode.fromValue($ret); - } - - /// setPreferredMicrophoneInjectionMode:error: - bool setPreferredMicrophoneInjectionMode( - AVAudioSessionMicrophoneInjectionMode inValue, - ) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPreferredMicrophoneInjectionMode:error:', - iOS: (false, (18, 2, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_2naryv( - _$$ref.pointer, - _sel_setPreferredMicrophoneInjectionMode_error_, - inValue.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -@ffi.Packed(2) -final class MixedModeStateRecord extends ffi.Struct { - @UInt32() - external int state1; - - @UInt32() - external int state2; - - @UInt32() - external int state3; - - @UInt32() - external int state4; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int state1, - required int state2, - required int state3, - required int state4, - }) => $allocator() - ..ref.state1 = state1 - ..ref.state2 = state2 - ..ref.state3 = state3 - ..ref.state4 = state4; -} - -@ffi.Packed(2) -final class MortChain extends ffi.Struct { - @MortSubtableMaskFlags() - external int defaultFlags; - - @UInt32() - external int length; - - @UInt16() - external int nFeatures; - - @UInt16() - external int nSubtables; - - @ffi.Array.multi([1]) - external ffi.Array featureEntries; -} - -final class MortContextualSubtable extends ffi.Struct { - external STHeader header; - - @UInt16() - external int substitutionTableOffset; -} - -@ffi.Packed(2) -final class MortFeatureEntry extends ffi.Struct { - @UInt16() - external int featureType; - - @UInt16() - external int featureSelector; - - @MortSubtableMaskFlags() - external int enableFlags; - - @MortSubtableMaskFlags() - external int disableFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int featureType, - required int featureSelector, - required int enableFlags, - required int disableFlags, - }) => $allocator() - ..ref.featureType = featureType - ..ref.featureSelector = featureSelector - ..ref.enableFlags = enableFlags - ..ref.disableFlags = disableFlags; -} - -final class MortInsertionSubtable extends ffi.Struct { - external STHeader header; -} - -typedef MortLigatureActionEntry = UInt32; - -final class MortLigatureSubtable extends ffi.Struct { - external STHeader header; - - @UInt16() - external int ligatureActionTableOffset; - - @UInt16() - external int componentTableOffset; - - @UInt16() - external int ligatureTableOffset; -} - -final class MortRearrangementSubtable extends ffi.Struct { - external STHeader header; -} - -final class MortSpecificSubtable extends ffi.Union { - external MortRearrangementSubtable rearrangement; - - external MortContextualSubtable contextual; - - external MortLigatureSubtable ligature; - - external MortSwashSubtable swash; - - external MortInsertionSubtable insertion; -} - -@ffi.Packed(2) -final class MortSubtable extends ffi.Struct { - @UInt16() - external int length; - - @UInt16() - external int coverage; - - @MortSubtableMaskFlags() - external int flags; - - external MortSpecificSubtable u; -} - -typedef MortSubtableMaskFlags = UInt32; - -final class MortSwashSubtable extends ffi.Struct { - external SFNTLookupTable lookup; -} - -@ffi.Packed(2) -final class MortTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt32() - external int nChains; - - @ffi.Array.multi([1]) - external ffi.Array chains; -} - -@ffi.Packed(2) -final class MorxChain extends ffi.Struct { - @MortSubtableMaskFlags() - external int defaultFlags; - - @UInt32() - external int length; - - @UInt32() - external int nFeatures; - - @UInt32() - external int nSubtables; - - @ffi.Array.multi([1]) - external ffi.Array featureEntries; -} - -@ffi.Packed(2) -final class MorxContextualSubtable extends ffi.Struct { - external STXHeader header; - - @UInt32() - external int substitutionTableOffset; -} - -@ffi.Packed(2) -final class MorxInsertionSubtable extends ffi.Struct { - external STXHeader header; - - @UInt32() - external int insertionGlyphTableOffset; -} - -@ffi.Packed(2) -final class MorxLigatureSubtable extends ffi.Struct { - external STXHeader header; - - @UInt32() - external int ligatureActionTableOffset; - - @UInt32() - external int componentTableOffset; - - @UInt32() - external int ligatureTableOffset; -} - -final class MorxRearrangementSubtable extends ffi.Struct { - external STXHeader header; -} - -final class MorxSpecificSubtable extends ffi.Union { - external MorxRearrangementSubtable rearrangement; - - external MorxContextualSubtable contextual; - - external MorxLigatureSubtable ligature; - - external MortSwashSubtable swash; - - external MorxInsertionSubtable insertion; -} - -@ffi.Packed(2) -final class MorxSubtable extends ffi.Struct { - @UInt32() - external int length; - - @UInt32() - external int coverage; - - @MortSubtableMaskFlags() - external int flags; - - external MorxSpecificSubtable u; -} - -@ffi.Packed(2) -final class MorxTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt32() - external int nChains; - - @ffi.Array.multi([1]) - external ffi.Array chains; -} - -final class NCMConcatProfileSet extends ffi.Struct { - @OSType() - external int cmm; - - @UInt32() - external int flags; - - @UInt32() - external int flagsMask; - - @UInt32() - external int profileCount; - - @ffi.Array.multi([1]) - external ffi.Array profileSpecs; -} - -final class NCMConcatProfileSpec extends ffi.Struct { - @UInt32() - external int renderingIntent; - - @UInt32() - external int transformTag; - - external CMProfileRef profile; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int renderingIntent, - required int transformTag, - required CMProfileRef profile, - }) => $allocator() - ..ref.renderingIntent = renderingIntent - ..ref.transformTag = transformTag - ..ref.profile = profile; -} - -final class NCMDeviceProfileInfo extends ffi.Struct { - @UInt32() - external int dataVersion; - - @CMDeviceProfileID() - external int profileID; - - external CMProfileLocation profileLoc; - - external CFDictionaryRef profileName; - - external CMDeviceProfileScope profileScope; - - @UInt32() - external int reserved; -} - -final class NDR_record_t extends ffi.Struct { - @ffi.UnsignedChar() - external int mig_vers; - - @ffi.UnsignedChar() - external int if_vers; - - @ffi.UnsignedChar() - external int reserved1; - - @ffi.UnsignedChar() - external int mig_encoding; - - @ffi.UnsignedChar() - external int int_rep; - - @ffi.UnsignedChar() - external int char_rep; - - @ffi.UnsignedChar() - external int float_rep; - - @ffi.UnsignedChar() - external int reserved2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mig_vers, - required int if_vers, - required int reserved1, - required int mig_encoding, - required int int_rep, - required int char_rep, - required int float_rep, - required int reserved2, - }) => $allocator() - ..ref.mig_vers = mig_vers - ..ref.if_vers = if_vers - ..ref.reserved1 = reserved1 - ..ref.mig_encoding = mig_encoding - ..ref.int_rep = int_rep - ..ref.char_rep = char_rep - ..ref.float_rep = float_rep - ..ref.reserved2 = reserved2; -} - -typedef NItl4Handle = ffi.Pointer; -typedef NItl4Ptr = ffi.Pointer; - -@ffi.Packed(2) -final class NItl4Rec extends ffi.Struct { - @ffi.Short() - external int flags; - - @SInt32() - external int resourceType; - - @ffi.Short() - external int resourceNum; - - @ffi.Short() - external int version; - - @ffi.Short() - external int format; - - @ffi.Short() - external int resHeader; - - @SInt32() - external int resHeader2; - - @ffi.Short() - external int numTables; - - @SInt32() - external int mapOffset; - - @SInt32() - external int strOffset; - - @SInt32() - external int fetchOffset; - - @SInt32() - external int unTokenOffset; - - @SInt32() - external int defPartsOffset; - - @SInt32() - external int whtSpListOffset; - - @SInt32() - external int resOffset7; - - @SInt32() - external int resOffset8; - - @ffi.Short() - external int resLength1; - - @ffi.Short() - external int resLength2; - - @ffi.Short() - external int resLength3; - - @ffi.Short() - external int unTokenLength; - - @ffi.Short() - external int defPartsLength; - - @ffi.Short() - external int whtSpListLength; - - @ffi.Short() - external int resLength7; - - @ffi.Short() - external int resLength8; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int resourceType, - required int resourceNum, - required int version, - required int format, - required int resHeader, - required int resHeader2, - required int numTables, - required int mapOffset, - required int strOffset, - required int fetchOffset, - required int unTokenOffset, - required int defPartsOffset, - required int whtSpListOffset, - required int resOffset7, - required int resOffset8, - required int resLength1, - required int resLength2, - required int resLength3, - required int unTokenLength, - required int defPartsLength, - required int whtSpListLength, - required int resLength7, - required int resLength8, - }) => $allocator() - ..ref.flags = flags - ..ref.resourceType = resourceType - ..ref.resourceNum = resourceNum - ..ref.version = version - ..ref.format = format - ..ref.resHeader = resHeader - ..ref.resHeader2 = resHeader2 - ..ref.numTables = numTables - ..ref.mapOffset = mapOffset - ..ref.strOffset = strOffset - ..ref.fetchOffset = fetchOffset - ..ref.unTokenOffset = unTokenOffset - ..ref.defPartsOffset = defPartsOffset - ..ref.whtSpListOffset = whtSpListOffset - ..ref.resOffset7 = resOffset7 - ..ref.resOffset8 = resOffset8 - ..ref.resLength1 = resLength1 - ..ref.resLength2 = resLength2 - ..ref.resLength3 = resLength3 - ..ref.unTokenLength = unTokenLength - ..ref.defPartsLength = defPartsLength - ..ref.whtSpListLength = whtSpListLength - ..ref.resLength7 = resLength7 - ..ref.resLength8 = resLength8; -} - -const int NSASCIIStringEncoding = 1; - -sealed class NSActivityOptions { - static const NSActivityIdleDisplaySleepDisabled = 1099511627776; - static const NSActivityIdleSystemSleepDisabled = 1048576; - static const NSActivitySuddenTerminationDisabled = 16384; - static const NSActivityAutomaticTerminationDisabled = 32768; - static const NSActivityAnimationTrackingEnabled = 35184372088832; - static const NSActivityTrackingEnabled = 70368744177664; - static const NSActivityUserInitiated = 16777215; - static const NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; - static const NSActivityBackground = 255; - static const NSActivityLatencyCritical = 1095216660480; - static const NSActivityUserInteractive = 1095233437695; -} - -final class NSAffineTransformStruct extends ffi.Struct { - @CGFloat() - external double m11; - - @CGFloat() - external double m12; - - @CGFloat() - external double m21; - - @CGFloat() - external double m22; - - @CGFloat() - external double tX; - - @CGFloat() - external double tY; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double m11, - required double m12, - required double m21, - required double m22, - required double tX, - required double tY, - }) => $allocator() - ..ref.m11 = m11 - ..ref.m12 = m12 - ..ref.m21 = m21 - ..ref.m22 = m22 - ..ref.tX = tX - ..ref.tY = tY; -} - -sealed class NSAlignmentOptions { - static const NSAlignMinXInward = 1; - static const NSAlignMinYInward = 2; - static const NSAlignMaxXInward = 4; - static const NSAlignMaxYInward = 8; - static const NSAlignWidthInward = 16; - static const NSAlignHeightInward = 32; - static const NSAlignMinXOutward = 256; - static const NSAlignMinYOutward = 512; - static const NSAlignMaxXOutward = 1024; - static const NSAlignMaxYOutward = 2048; - static const NSAlignWidthOutward = 4096; - static const NSAlignHeightOutward = 8192; - static const NSAlignMinXNearest = 65536; - static const NSAlignMinYNearest = 131072; - static const NSAlignMaxXNearest = 262144; - static const NSAlignMaxYNearest = 524288; - static const NSAlignWidthNearest = 1048576; - static const NSAlignHeightNearest = 2097152; - static const NSAlignRectFlipped = -9223372036854775808; - static const NSAlignAllEdgesInward = 15; - static const NSAlignAllEdgesOutward = 3840; - static const NSAlignAllEdgesNearest = 983040; -} - -/// WARNING: NSAppleEventDescriptor is a stub. To generate bindings for this class, include -/// NSAppleEventDescriptor in your config's objc-interfaces list. -/// -/// NSAppleEventDescriptor -extension type NSAppleEventDescriptor._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSAppleEventDescriptor] that points to the same underlying object as [other]. - NSAppleEventDescriptor.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSAppleEventDescriptor] that wraps the given raw object pointer. - NSAppleEventDescriptor.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -typedef NSAppleEventManagerSuspensionID = - ffi.Pointer<__NSAppleEventManagerSuspension>; - -/// WARNING: NSArchiver is a stub. To generate bindings for this class, include -/// NSArchiver in your config's objc-interfaces list. -/// -/// NSArchiver -@Deprecated('Use NSKeyedArchiver instead') -extension type NSArchiver._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSCoder { - /// Constructs a [NSArchiver] that points to the same underlying object as [other]. - NSArchiver.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSArchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSArchiver] that wraps the given raw object pointer. - NSArchiver.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSArchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -/// NSArchiverCallback -extension NSArchiverCallback on objc.NSObject { - /// classForArchiver - objc.ObjCObject? get classForArchiver { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classForArchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForArchiver); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// replacementObjectForArchiver: - @Deprecated('Deprecated') - objc.ObjCObject? replacementObjectForArchiver(NSArchiver archiver) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - objc.checkOsVersionInternal( - 'NSObject.replacementObjectForArchiver:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_replacementObjectForArchiver_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -const int NSArgumentEvaluationScriptError = 3; - -const int NSArgumentsWrongScriptError = 6; - -/// NSArrayCreation -extension NSArrayCreation on objc.NSArray { - /// initWithArray: - objc.NSArray initWithArray(objc.NSArray array) { - final _$$ref = object$.ref; - final _$$ref$1 = array.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - objc.NSArray initWithArray$1(objc.NSArray array, {required bool copyItems}) { - final _$$ref = object$.ref; - final _$$ref$1 = array.ref; - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSArray.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL:error: - objc.NSArray? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSArray.initWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithObjects: - objc.NSArray initWithObjects$1(objc.ObjCObject firstObj) { - final _$$ref = object$.ref; - final _$$ref$1 = firstObj.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjects_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: false, release: true); - } - - /// array - static objc.NSArray array() { - final $ret = _objc_msgSend_151sglz(_class_NSArray, _sel_array); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithArray: - static objc.NSArray arrayWithArray(objc.NSArray array) { - final _$$ref = array.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithArray_, - _$$ref.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithContentsOfURL:error: - static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSArray.arrayWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _class_NSArray, - _sel_arrayWithContentsOfURL_error_, - _$$ref.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// arrayWithObject: - static objc.NSArray arrayWithObject(objc.ObjCObject anObject) { - final _$$ref = anObject.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithObject_, - _$$ref.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithObjects: - static objc.NSArray arrayWithObjects(objc.ObjCObject firstObj) { - final _$$ref = firstObj.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithObjects_, - _$$ref.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithObjects:count: - static objc.NSArray arrayWithObjects$1( - ffi.Pointer> objects, { - required DartNSUInteger count, - }) { - final $ret = _objc_msgSend_zmbtbd( - _class_NSArray, - _sel_arrayWithObjects_count_, - objects, - count, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSArrayDiffing -extension NSArrayDiffing on objc.NSArray { - /// arrayByApplyingDifference: - objc.NSArray? arrayByApplyingDifference( - objc.NSOrderedCollectionDifference difference, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = difference.ref; - objc.checkOsVersionInternal( - 'NSArray.arrayByApplyingDifference:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_arrayByApplyingDifference_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// differenceFromArray: - objc.NSOrderedCollectionDifference differenceFromArray(objc.NSArray other) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - objc.checkOsVersionInternal( - 'NSArray.differenceFromArray:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_differenceFromArray_, - _$$ref$1.pointer, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// differenceFromArray:withOptions: - objc.NSOrderedCollectionDifference differenceFromArray$1( - objc.NSArray other, { - required DartNSUInteger withOptions, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - objc.checkOsVersionInternal( - 'NSArray.differenceFromArray:withOptions:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1wtpmu7( - _$$ref.pointer, - _sel_differenceFromArray_withOptions_, - _$$ref$1.pointer, - withOptions, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// differenceFromArray:withOptions:usingEquivalenceTest: - objc.NSOrderedCollectionDifference differenceFromArray$2( - objc.NSArray other, { - required DartNSUInteger withOptions, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingEquivalenceTest, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - final _$$ref$2 = usingEquivalenceTest.ref; - objc.checkOsVersionInternal( - 'NSArray.differenceFromArray:withOptions:usingEquivalenceTest:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1415lvo( - _$$ref.pointer, - _sel_differenceFromArray_withOptions_usingEquivalenceTest_, - _$$ref$1.pointer, - withOptions, - _$$ref$2.pointer, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSArrayPathExtensions -extension NSArrayPathExtensions on objc.NSArray { - /// pathsMatchingExtensions: - objc.NSArray pathsMatchingExtensions(objc.NSArray filterTypes) { - final _$$ref = object$.ref; - final _$$ref$1 = filterTypes.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_pathsMatchingExtensions_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSAttributedStringCreateFromMarkdown -extension NSAttributedStringCreateFromMarkdown on objc.NSAttributedString { - /// initWithContentsOfMarkdownFileAtURL:options:baseURL:error: - objc.NSAttributedString? initWithContentsOfMarkdownFileAtURL( - objc.NSURL markdownFile, { - objc.NSAttributedStringMarkdownParsingOptions? options, - objc.NSURL? baseURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markdownFile.ref; - final _$$ref$2 = options?.ref; - final _$$ref$3 = baseURL?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithContentsOfMarkdownFileAtURL:options:baseURL:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1k0ezzm( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithMarkdown:options:baseURL:error: - objc.NSAttributedString? initWithMarkdown( - objc.NSData markdown, { - objc.NSAttributedStringMarkdownParsingOptions? options, - objc.NSURL? baseURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markdown.ref; - final _$$ref$2 = options?.ref; - final _$$ref$3 = baseURL?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithMarkdown:options:baseURL:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1k0ezzm( - _$$ref.retainAndReturnPointer(), - _sel_initWithMarkdown_options_baseURL_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithMarkdownString:options:baseURL:error: - objc.NSAttributedString? initWithMarkdownString( - objc.NSString markdownString, { - objc.NSAttributedStringMarkdownParsingOptions? options, - objc.NSURL? baseURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markdownString.ref; - final _$$ref$2 = options?.ref; - final _$$ref$3 = baseURL?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithMarkdownString:options:baseURL:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1k0ezzm( - _$$ref.retainAndReturnPointer(), - _sel_initWithMarkdownString_options_baseURL_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -/// NSAttributedStringFormatting -extension NSAttributedStringFormatting on objc.NSAttributedString { - /// initWithFormat:options:locale: - objc.NSAttributedString initWithFormat( - objc.NSAttributedString format, { - required DartNSUInteger options, - objc.NSLocale? locale, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - final _$$ref$2 = locale?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithFormat:options:locale:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_187k8ck( - _$$ref.retainAndReturnPointer(), - _sel_initWithFormat_options_locale_, - _$$ref$1.pointer, - options, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// initWithFormat:options:locale:context: - objc.NSAttributedString initWithFormat$1( - objc.NSAttributedString format, { - required DartNSUInteger options, - objc.NSLocale? locale, - required objc.NSDictionary context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - final _$$ref$2 = locale?.ref; - final _$$ref$3 = context.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithFormat:options:locale:context:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_3fn4ca( - _$$ref.retainAndReturnPointer(), - _sel_initWithFormat_options_locale_context_, - _$$ref$1.pointer, - options, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// localizedAttributedStringWithFormat: - static objc.NSAttributedString localizedAttributedStringWithFormat( - objc.NSAttributedString format, - ) { - final _$$ref = format.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_, - _$$ref.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// localizedAttributedStringWithFormat:context: - static objc.NSAttributedString localizedAttributedStringWithFormat$1( - objc.NSAttributedString format, { - required objc.NSDictionary context, - }) { - final _$$ref = format.ref; - final _$$ref$1 = context.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:context:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_context_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// localizedAttributedStringWithFormat:options: - static objc.NSAttributedString localizedAttributedStringWithFormat$2( - objc.NSAttributedString format, { - required DartNSUInteger options, - }) { - final _$$ref = format.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:options:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_s058d2( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_options_, - _$$ref.pointer, - options, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// localizedAttributedStringWithFormat:options:context: - static objc.NSAttributedString localizedAttributedStringWithFormat$3( - objc.NSAttributedString format, { - required DartNSUInteger options, - required objc.NSDictionary context, - }) { - final _$$ref = format.ref; - final _$$ref$1 = context.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:options:context:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_187k8ck( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_options_context_, - _$$ref.pointer, - options, - _$$ref$1.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -typedef NSAttributedStringFormattingContextKey = - ffi.Pointer; -typedef DartNSAttributedStringFormattingContextKey = objc.NSString; -typedef NSAttributedStringKey = ffi.Pointer; -typedef DartNSAttributedStringKey = objc.NSString; -typedef NSBackgroundActivityCompletionHandler = ffi.Pointer; -typedef DartNSBackgroundActivityCompletionHandler = - objc.ObjCBlock; - -enum NSBackgroundActivityResult { - NSBackgroundActivityResultFinished(1), - NSBackgroundActivityResultDeferred(2); - - final int value; - const NSBackgroundActivityResult(this.value); - - static NSBackgroundActivityResult fromValue(int value) => switch (value) { - 1 => NSBackgroundActivityResultFinished, - 2 => NSBackgroundActivityResultDeferred, - _ => throw ArgumentError( - 'Unknown value for NSBackgroundActivityResult: $value', - ), - }; -} - -const int NSBundleErrorMaximum = 5119; - -const int NSBundleErrorMinimum = 4992; - -const int NSBundleExecutableArchitectureARM64 = 16777228; - -const int NSBundleExecutableArchitectureI386 = 7; - -const int NSBundleExecutableArchitecturePPC = 18; - -const int NSBundleExecutableArchitecturePPC64 = 16777234; - -const int NSBundleExecutableArchitectureX86_64 = 16777223; - -/// NSBundleExtensionMethods -extension NSBundleExtensionMethods on objc.NSString { - /// variantFittingPresentationWidth: - objc.NSString variantFittingPresentationWidth(DartNSInteger width) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.variantFittingPresentationWidth:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $ret = _objc_msgSend_qugqlf( - _$$ref.pointer, - _sel_variantFittingPresentationWidth_, - width, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -const int NSBundleOnDemandResourceExceededMaximumSizeError = 4993; - -const int NSBundleOnDemandResourceInvalidTagError = 4994; - -const int NSBundleOnDemandResourceOutOfSpaceError = 4992; - -/// NSBundleResourceRequestAdditions -extension NSBundleResourceRequestAdditions on objc.NSBundle { - /// preservationPriorityForTag: - double preservationPriorityForTag(objc.NSString tag) { - final _$$ref = object$.ref; - final _$$ref$1 = tag.ref; - objc.checkOsVersionInternal( - 'NSBundle.preservationPriorityForTag:', - iOS: (false, (9, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_mabicuFpret( - _$$ref.pointer, - _sel_preservationPriorityForTag_, - _$$ref$1.pointer, - ) - : _objc_msgSend_mabicu( - _$$ref.pointer, - _sel_preservationPriorityForTag_, - _$$ref$1.pointer, - ); - } - - /// setPreservationPriority:forTags: - void setPreservationPriority(double priority, {required objc.NSSet forTags}) { - final _$$ref = object$.ref; - final _$$ref$1 = forTags.ref; - objc.checkOsVersionInternal( - 'NSBundle.setPreservationPriority:forTags:', - iOS: (false, (9, 0, 0)), - macOS: (true, null), - ); - _objc_msgSend_130mcug( - _$$ref.pointer, - _sel_setPreservationPriority_forTags_, - priority, - _$$ref$1.pointer, - ); - } -} - -enum NSByteCountFormatterCountStyle { - NSByteCountFormatterCountStyleFile(0), - NSByteCountFormatterCountStyleMemory(1), - NSByteCountFormatterCountStyleDecimal(2), - NSByteCountFormatterCountStyleBinary(3); - - final int value; - const NSByteCountFormatterCountStyle(this.value); - - static NSByteCountFormatterCountStyle fromValue(int value) => switch (value) { - 0 => NSByteCountFormatterCountStyleFile, - 1 => NSByteCountFormatterCountStyleMemory, - 2 => NSByteCountFormatterCountStyleDecimal, - 3 => NSByteCountFormatterCountStyleBinary, - _ => throw ArgumentError( - 'Unknown value for NSByteCountFormatterCountStyle: $value', - ), - }; -} - -sealed class NSByteCountFormatterUnits { - static const NSByteCountFormatterUseDefault = 0; - static const NSByteCountFormatterUseBytes = 1; - static const NSByteCountFormatterUseKB = 2; - static const NSByteCountFormatterUseMB = 4; - static const NSByteCountFormatterUseGB = 8; - static const NSByteCountFormatterUseTB = 16; - static const NSByteCountFormatterUsePB = 32; - static const NSByteCountFormatterUseEB = 64; - static const NSByteCountFormatterUseZB = 128; - static const NSByteCountFormatterUseYBOrHigher = 65280; - static const NSByteCountFormatterUseAll = 65535; -} - -/// WARNING: NSCache is a stub. To generate bindings for this class, include -/// NSCache in your config's objc-interfaces list. -/// -/// NSCache -extension type NSCache._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSCache] that points to the same underlying object as [other]. - NSCache.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSCache', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } - - /// Constructs a [NSCache] that wraps the given raw object pointer. - NSCache.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSCache', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } -} - -/// NSCacheDelegate -extension type NSCacheDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSCacheDelegate] that points to the same underlying object as [other]. - NSCacheDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSCacheDelegate] that wraps the given raw object pointer. - NSCacheDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSCacheDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSCacheDelegate, - ); - } -} - -extension NSCacheDelegate$Methods on NSCacheDelegate { - /// cache:willEvictObject: - void cache(NSCache cache, {required objc.ObjCObject willEvictObject}) { - final _$$ref = object$.ref; - final _$$ref$1 = cache.ref; - final _$$ref$2 = willEvictObject.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_cache_willEvictObject_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSCacheDelegate', - 'cache:willEvictObject:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_cache_willEvictObject_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSCacheDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSCacheDelegate.cast()); - - /// Builds an object that implements the NSCacheDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCacheDelegate implement({ - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); - NSCacheDelegate$Builder.cache_willEvictObject_.implement( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - return NSCacheDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCacheDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - NSCacheDelegate$Builder.cache_willEvictObject_.implement( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSCacheDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCacheDelegate implementAsListener({ - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); - NSCacheDelegate$Builder.cache_willEvictObject_.implementAsListener( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - return NSCacheDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCacheDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - NSCacheDelegate$Builder.cache_willEvictObject_.implementAsListener( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSCacheDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCacheDelegate implementAsBlocking({ - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCacheDelegate'); - NSCacheDelegate$Builder.cache_willEvictObject_.implementAsBlocking( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - return NSCacheDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCacheDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSCache, objc.ObjCObject)? cache_willEvictObject_, - bool $keepIsolateAlive = true, - }) { - NSCacheDelegate$Builder.cache_willEvictObject_.implementAsBlocking( - builder, - cache_willEvictObject_, - ); - builder.addProtocol($protocol); - } - - /// cache:willEvictObject: - static final cache_willEvictObject_ = - objc.ObjCProtocolListenableMethod< - void Function(NSCache, objc.ObjCObject) - >( - _protocol_NSCacheDelegate, - _sel_cache_willEvictObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCacheDelegate, - _sel_cache_willEvictObject_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSCache, objc.ObjCObject) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.fromFunction( - (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => - func(arg1, arg2), - ), - (void Function(NSCache, objc.ObjCObject) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.listener( - (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => - func(arg1, arg2), - ), - (void Function(NSCache, objc.ObjCObject) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl.blocking( - (ffi.Pointer _, NSCache arg1, objc.ObjCObject arg2) => - func(arg1, arg2), - ), - ); -} - -/// WARNING: NSCachedURLResponse is a stub. To generate bindings for this class, include -/// NSCachedURLResponse in your config's objc-interfaces list. -/// -/// NSCachedURLResponse -extension type NSCachedURLResponse._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSCachedURLResponse] that points to the same underlying object as [other]. - NSCachedURLResponse.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSCachedURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSCachedURLResponse] that wraps the given raw object pointer. - NSCachedURLResponse.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSCachedURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -enum NSCalculationError { - NSCalculationNoError(0), - NSCalculationLossOfPrecision(1), - NSCalculationUnderflow(2), - NSCalculationOverflow(3), - NSCalculationDivideByZero(4); - - final int value; - const NSCalculationError(this.value); - - static NSCalculationError fromValue(int value) => switch (value) { - 0 => NSCalculationNoError, - 1 => NSCalculationLossOfPrecision, - 2 => NSCalculationUnderflow, - 3 => NSCalculationOverflow, - 4 => NSCalculationDivideByZero, - _ => throw ArgumentError('Unknown value for NSCalculationError: $value'), - }; -} - -/// WARNING: NSCalendarDate is a stub. To generate bindings for this class, include -/// NSCalendarDate in your config's objc-interfaces list. -/// -/// NSCalendarDate -@Deprecated('Use NSCalendar and NSDateComponents and NSDateFormatter instead') -extension type NSCalendarDate._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSDate { - /// Constructs a [NSCalendarDate] that points to the same underlying object as [other]. - NSCalendarDate.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSCalendarDate', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } - - /// Constructs a [NSCalendarDate] that wraps the given raw object pointer. - NSCalendarDate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSCalendarDate', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } -} - -/// NSCalendarDateExtras -extension NSCalendarDateExtras on objc.NSDate { - /// dateWithCalendarFormat:timeZone: - @Deprecated('Deprecated') - NSCalendarDate dateWithCalendarFormat( - objc.NSString? format, { - NSTimeZone? timeZone, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format?.ref; - final _$$ref$2 = timeZone?.ref; - objc.checkOsVersionInternal( - 'NSDate.dateWithCalendarFormat:timeZone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_dateWithCalendarFormat_timeZone_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return NSCalendarDate.fromPointer($ret, retain: true, release: true); - } - - /// descriptionWithCalendarFormat:timeZone:locale: - @Deprecated('Deprecated') - objc.NSString? descriptionWithCalendarFormat( - objc.NSString? format, { - NSTimeZone? timeZone, - objc.ObjCObject? locale, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format?.ref; - final _$$ref$2 = timeZone?.ref; - final _$$ref$3 = locale?.ref; - objc.checkOsVersionInternal( - 'NSDate.descriptionWithCalendarFormat:timeZone:locale:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_11spmsz( - _$$ref.pointer, - _sel_descriptionWithCalendarFormat_timeZone_locale_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// initWithString: - @Deprecated('Use NSDateFormatter instead') - objc.ObjCObject? initWithString(objc.NSString description) { - final _$$ref = object$.ref; - final _$$ref$1 = description.ref; - objc.checkOsVersionInternal( - 'NSDate.initWithString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithString_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// dateWithNaturalLanguageString: - @Deprecated( - 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', - ) - static objc.ObjCObject? dateWithNaturalLanguageString(objc.NSString string) { - final _$$ref = string.ref; - objc.checkOsVersionInternal( - 'NSDate.dateWithNaturalLanguageString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSDate, - _sel_dateWithNaturalLanguageString_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// dateWithNaturalLanguageString:locale: - @Deprecated( - 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', - ) - static objc.ObjCObject? dateWithNaturalLanguageString$1( - objc.NSString string, { - objc.ObjCObject? locale, - }) { - final _$$ref = string.ref; - final _$$ref$1 = locale?.ref; - objc.checkOsVersionInternal( - 'NSDate.dateWithNaturalLanguageString:locale:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _class_NSDate, - _sel_dateWithNaturalLanguageString_locale_, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// dateWithString: - @Deprecated('Use NSDateFormatter instead') - static objc.ObjCObject dateWithString(objc.NSString aString) { - final _$$ref = aString.ref; - objc.checkOsVersionInternal( - 'NSDate.dateWithString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSDate, - _sel_dateWithString_, - _$$ref.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -typedef NSCalendarIdentifier = ffi.Pointer; -typedef DartNSCalendarIdentifier = objc.NSString; - -sealed class NSCalendarOptions { - static const NSCalendarWrapComponents = 1; - static const NSCalendarMatchStrictly = 2; - static const NSCalendarSearchBackwards = 4; - static const NSCalendarMatchPreviousTimePreservingSmallerUnits = 256; - static const NSCalendarMatchNextTimePreservingSmallerUnits = 512; - static const NSCalendarMatchNextTime = 1024; - static const NSCalendarMatchFirst = 4096; - static const NSCalendarMatchLast = 8192; -} - -sealed class NSCalendarUnit { - static const NSCalendarUnitEra = 2; - static const NSCalendarUnitYear = 4; - static const NSCalendarUnitMonth = 8; - static const NSCalendarUnitDay = 16; - static const NSCalendarUnitHour = 32; - static const NSCalendarUnitMinute = 64; - static const NSCalendarUnitSecond = 128; - static const NSCalendarUnitWeekday = 512; - static const NSCalendarUnitWeekdayOrdinal = 1024; - static const NSCalendarUnitQuarter = 2048; - static const NSCalendarUnitWeekOfMonth = 4096; - static const NSCalendarUnitWeekOfYear = 8192; - static const NSCalendarUnitYearForWeekOfYear = 16384; - static const NSCalendarUnitNanosecond = 32768; - static const NSCalendarUnitDayOfYear = 65536; - static const NSCalendarUnitCalendar = 1048576; - static const NSCalendarUnitTimeZone = 2097152; - static const NSCalendarUnitIsLeapMonth = 1073741824; - static const NSCalendarUnitIsRepeatedDay = 2147483648; - static const NSEraCalendarUnit = 2; - static const NSYearCalendarUnit = 4; - static const NSMonthCalendarUnit = 8; - static const NSDayCalendarUnit = 16; - static const NSHourCalendarUnit = 32; - static const NSMinuteCalendarUnit = 64; - static const NSSecondCalendarUnit = 128; - static const NSWeekCalendarUnit = 256; - static const NSWeekdayCalendarUnit = 512; - static const NSWeekdayOrdinalCalendarUnit = 1024; - static const NSQuarterCalendarUnit = 2048; - static const NSWeekOfMonthCalendarUnit = 4096; - static const NSWeekOfYearCalendarUnit = 8192; - static const NSYearForWeekOfYearCalendarUnit = 16384; - static const NSCalendarCalendarUnit = 1048576; - static const NSTimeZoneCalendarUnit = 2097152; -} - -const int NSCannotCreateScriptCommandError = 10; - -/// WARNING: NSClassDescription is a stub. To generate bindings for this class, include -/// NSClassDescription in your config's objc-interfaces list. -/// -/// NSClassDescription -extension type NSClassDescription._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSClassDescription] that points to the same underlying object as [other]. - NSClassDescription.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSClassDescription] that wraps the given raw object pointer. - NSClassDescription.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSClassDescriptionPrimitives -extension NSClassDescriptionPrimitives on objc.NSObject { - /// attributeKeys - objc.NSArray get attributeKeys { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.attributeKeys', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_attributeKeys); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// classDescription - NSClassDescription get classDescription { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classDescription', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classDescription); - return NSClassDescription.fromPointer($ret, retain: true, release: true); - } - - /// inverseForRelationshipKey: - objc.NSString? inverseForRelationshipKey(objc.NSString relationshipKey) { - final _$$ref = object$.ref; - final _$$ref$1 = relationshipKey.ref; - objc.checkOsVersionInternal( - 'NSObject.inverseForRelationshipKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_inverseForRelationshipKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// toManyRelationshipKeys - objc.NSArray get toManyRelationshipKeys { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.toManyRelationshipKeys', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_toManyRelationshipKeys, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// toOneRelationshipKeys - objc.NSArray get toOneRelationshipKeys { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.toOneRelationshipKeys', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_toOneRelationshipKeys, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSClientCertificate -extension NSClientCertificate on NSURLCredential { - /// certificates - objc.NSArray get certificates { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.certificates', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_certificates); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// identity - SecIdentityRef get identity { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.identity', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - return _objc_msgSend_nkb3zz(_$$ref.pointer, _sel_identity); - } - - /// credentialWithIdentity:certificates:persistence: - static NSURLCredential credentialWithIdentity( - SecIdentityRef identity, { - objc.NSArray? certificates, - required NSURLCredentialPersistence persistence, - }) { - final _$$ref = certificates?.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.credentialWithIdentity:certificates:persistence:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_jfo4g1( - _class_NSURLCredential, - _sel_credentialWithIdentity_certificates_persistence_, - identity, - _$$ref?.pointer ?? ffi.nullptr, - persistence.value, - ); - return NSURLCredential.fromPointer($ret, retain: true, release: true); - } -} - -/// NSClientCertificateSpace -extension NSClientCertificateSpace on NSURLProtectionSpace { - /// distinguishedNames - objc.NSArray? get distinguishedNames { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLProtectionSpace.distinguishedNames', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_distinguishedNames); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -const int NSCloudSharingConflictError = 5123; - -const int NSCloudSharingErrorMaximum = 5375; - -const int NSCloudSharingErrorMinimum = 5120; - -const int NSCloudSharingNetworkFailureError = 5120; - -const int NSCloudSharingNoPermissionError = 5124; - -const int NSCloudSharingOtherError = 5375; - -const int NSCloudSharingQuotaExceededError = 5121; - -const int NSCloudSharingTooManyParticipantsError = 5122; - -const int NSCoderErrorMaximum = 4991; - -const int NSCoderErrorMinimum = 4864; - -const int NSCoderInvalidValueError = 4866; - -/// NSCoderMethods -extension NSCoderMethods on objc.NSObject { - /// awakeAfterUsingCoder: - objc.ObjCObject? awakeAfterUsingCoder(objc.NSCoder coder) { - final _$$ref = object$.ref; - final _$$ref$1 = coder.ref; - objc.checkOsVersionInternal( - 'NSObject.awakeAfterUsingCoder:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_awakeAfterUsingCoder_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// classForCoder - objc.ObjCObject get classForCoder { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classForCoder', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForCoder); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// replacementObjectForCoder: - objc.ObjCObject? replacementObjectForCoder(objc.NSCoder coder) { - final _$$ref = object$.ref; - final _$$ref$1 = coder.ref; - objc.checkOsVersionInternal( - 'NSObject.replacementObjectForCoder:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_replacementObjectForCoder_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// setVersion: - static void setVersion(DartNSInteger aVersion) { - objc.checkOsVersionInternal( - 'NSObject.setVersion:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_4sp4xj(_class_NSObject, _sel_setVersion_, aVersion); - } - - /// version - static DartNSInteger version() { - objc.checkOsVersionInternal( - 'NSObject.version', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1hz7y9r(_class_NSObject, _sel_version); - } -} - -const int NSCoderReadCorruptError = 4864; - -const int NSCoderValueNotFoundError = 4865; - -const int NSCollectorDisabledOption = 2; - -typedef NSComparator = ffi.Pointer; -typedef DartNSComparator = - objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >; - -/// NSComparisonMethods -extension NSComparisonMethods on objc.NSObject { - /// doesContain: - bool doesContain(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.doesContain:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_doesContain_, - _$$ref$1.pointer, - ); - } - - /// isCaseInsensitiveLike: - bool isCaseInsensitiveLike(objc.NSString object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.isCaseInsensitiveLike:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isCaseInsensitiveLike_, - _$$ref$1.pointer, - ); - } - - /// isEqualTo: - bool isEqualTo(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isEqualTo_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// isGreaterThan: - bool isGreaterThan(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isGreaterThan:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isGreaterThan_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// isGreaterThanOrEqualTo: - bool isGreaterThanOrEqualTo(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isGreaterThanOrEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isGreaterThanOrEqualTo_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// isLessThan: - bool isLessThan(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isLessThan:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isLessThan_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// isLessThanOrEqualTo: - bool isLessThanOrEqualTo(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isLessThanOrEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isLessThanOrEqualTo_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// isLike: - bool isLike(objc.NSString object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.isLike:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isLike_, - _$$ref$1.pointer, - ); - } - - /// isNotEqualTo: - bool isNotEqualTo(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.isNotEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isNotEqualTo_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -enum NSComparisonPredicateModifier { - NSDirectPredicateModifier(0), - NSAllPredicateModifier(1), - NSAnyPredicateModifier(2); - - final int value; - const NSComparisonPredicateModifier(this.value); - - static NSComparisonPredicateModifier fromValue(int value) => switch (value) { - 0 => NSDirectPredicateModifier, - 1 => NSAllPredicateModifier, - 2 => NSAnyPredicateModifier, - _ => throw ArgumentError( - 'Unknown value for NSComparisonPredicateModifier: $value', - ), - }; -} - -sealed class NSComparisonPredicateOptions { - static const NSCaseInsensitivePredicateOption = 1; - static const NSDiacriticInsensitivePredicateOption = 2; - static const NSNormalizedPredicateOption = 4; -} - -enum NSCompoundPredicateType { - NSNotPredicateType(0), - NSAndPredicateType(1), - NSOrPredicateType(2); - - final int value; - const NSCompoundPredicateType(this.value); - - static NSCompoundPredicateType fromValue(int value) => switch (value) { - 0 => NSNotPredicateType, - 1 => NSAndPredicateType, - 2 => NSOrPredicateType, - _ => throw ArgumentError( - 'Unknown value for NSCompoundPredicateType: $value', - ), - }; -} - -const int NSCompressionErrorMaximum = 5503; - -const int NSCompressionErrorMinimum = 5376; - -const int NSCompressionFailedError = 5376; - -/// WARNING: NSConnection is a stub. To generate bindings for this class, include -/// NSConnection in your config's objc-interfaces list. -/// -/// NSConnection -@Deprecated('Use NSXPCConnection instead') -extension type NSConnection._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSConnection] that points to the same underlying object as [other]. - NSConnection.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSConnection', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSConnection] that wraps the given raw object pointer. - NSConnection.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSConnection', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -/// NSConnectionDelegate -@Deprecated('Use NSXPCConnection instead') -extension type NSConnectionDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSConnectionDelegate] that points to the same underlying object as [other]. - NSConnectionDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSConnectionDelegate] that wraps the given raw object pointer. - NSConnectionDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSConnectionDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSConnectionDelegate, - ); - } -} - -extension NSConnectionDelegate$Methods on NSConnectionDelegate { - /// authenticateComponents:withData: - @Deprecated('Use NSXPCConnection instead') - bool authenticateComponents( - objc.NSArray components, { - required objc.NSData withData, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = components.ref; - final _$$ref$2 = withData.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.authenticateComponents:withData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_authenticateComponents_withData_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'authenticateComponents:withData:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_authenticateComponents_withData_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// authenticationDataForComponents: - @Deprecated('Use NSXPCConnection instead') - objc.NSData authenticationDataForComponents(objc.NSArray components) { - final _$$ref = object$.ref; - final _$$ref$1 = components.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.authenticationDataForComponents:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_authenticationDataForComponents_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'authenticationDataForComponents:', - ); - } - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_authenticationDataForComponents_, - _$$ref$1.pointer, - ); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// connection:handleRequest: - @Deprecated('Use NSXPCConnection instead') - bool connection( - NSConnection connection, { - required NSDistantObjectRequest handleRequest, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = handleRequest.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.connection:handleRequest:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_handleRequest_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'connection:handleRequest:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_connection_handleRequest_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:shouldMakeNewConnection: - @Deprecated('Use NSXPCConnection instead') - bool connection$1( - NSConnection ancestor, { - required NSConnection shouldMakeNewConnection, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = ancestor.ref; - final _$$ref$2 = shouldMakeNewConnection.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.connection:shouldMakeNewConnection:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_shouldMakeNewConnection_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'connection:shouldMakeNewConnection:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_connection_shouldMakeNewConnection_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// createConversationForConnection: - @Deprecated('Use NSXPCConnection instead') - objc.ObjCObject createConversationForConnection(NSConnection conn) { - final _$$ref = object$.ref; - final _$$ref$1 = conn.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.createConversationForConnection:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_createConversationForConnection_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'createConversationForConnection:', - ); - } - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_createConversationForConnection_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// makeNewConnection:sender: - @Deprecated('Use NSXPCConnection instead') - bool makeNewConnection(NSConnection conn, {required NSConnection sender}) { - final _$$ref = object$.ref; - final _$$ref$1 = conn.ref; - final _$$ref$2 = sender.ref; - objc.checkOsVersionInternal( - 'NSConnectionDelegate.makeNewConnection:sender:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_makeNewConnection_sender_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSConnectionDelegate', - 'makeNewConnection:sender:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_makeNewConnection_sender_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSConnectionDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSConnectionDelegate.cast()); - - /// Builds an object that implements the NSConnectionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSConnectionDelegate implement({ - bool Function(objc.NSArray, objc.NSData)? authenticateComponents_withData_, - objc.NSData Function(objc.NSArray)? authenticationDataForComponents_, - bool Function(NSConnection, NSDistantObjectRequest)? - connection_handleRequest_, - bool Function(NSConnection, NSConnection)? - connection_shouldMakeNewConnection_, - objc.ObjCObject Function(NSConnection)? createConversationForConnection_, - bool Function(NSConnection, NSConnection)? makeNewConnection_sender_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSConnectionDelegate'); - NSConnectionDelegate$Builder.authenticateComponents_withData_.implement( - builder, - authenticateComponents_withData_, - ); - NSConnectionDelegate$Builder.authenticationDataForComponents_.implement( - builder, - authenticationDataForComponents_, - ); - NSConnectionDelegate$Builder.connection_handleRequest_.implement( - builder, - connection_handleRequest_, - ); - NSConnectionDelegate$Builder.connection_shouldMakeNewConnection_.implement( - builder, - connection_shouldMakeNewConnection_, - ); - NSConnectionDelegate$Builder.createConversationForConnection_.implement( - builder, - createConversationForConnection_, - ); - NSConnectionDelegate$Builder.makeNewConnection_sender_.implement( - builder, - makeNewConnection_sender_, - ); - builder.addProtocol($protocol); - return NSConnectionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSConnectionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(objc.NSArray, objc.NSData)? authenticateComponents_withData_, - objc.NSData Function(objc.NSArray)? authenticationDataForComponents_, - bool Function(NSConnection, NSDistantObjectRequest)? - connection_handleRequest_, - bool Function(NSConnection, NSConnection)? - connection_shouldMakeNewConnection_, - objc.ObjCObject Function(NSConnection)? createConversationForConnection_, - bool Function(NSConnection, NSConnection)? makeNewConnection_sender_, - bool $keepIsolateAlive = true, - }) { - NSConnectionDelegate$Builder.authenticateComponents_withData_.implement( - builder, - authenticateComponents_withData_, - ); - NSConnectionDelegate$Builder.authenticationDataForComponents_.implement( - builder, - authenticationDataForComponents_, - ); - NSConnectionDelegate$Builder.connection_handleRequest_.implement( - builder, - connection_handleRequest_, - ); - NSConnectionDelegate$Builder.connection_shouldMakeNewConnection_.implement( - builder, - connection_shouldMakeNewConnection_, - ); - NSConnectionDelegate$Builder.createConversationForConnection_.implement( - builder, - createConversationForConnection_, - ); - NSConnectionDelegate$Builder.makeNewConnection_sender_.implement( - builder, - makeNewConnection_sender_, - ); - builder.addProtocol($protocol); - } - - /// authenticateComponents:withData: - static final authenticateComponents_withData_ = - objc.ObjCProtocolMethod( - _protocol_NSConnectionDelegate, - _sel_authenticateComponents_withData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_authenticateComponents_withData_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(objc.NSArray, objc.NSData) func) => - ObjCBlock_bool_ffiVoid_NSArray_NSData.fromFunction( - (ffi.Pointer _, objc.NSArray arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - ); - - /// authenticationDataForComponents: - static final authenticationDataForComponents_ = - objc.ObjCProtocolMethod( - _protocol_NSConnectionDelegate, - _sel_authenticationDataForComponents_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xr62hr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_authenticationDataForComponents_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.NSData Function(objc.NSArray) func) => - ObjCBlock_NSData_ffiVoid_NSArray.fromFunction( - (ffi.Pointer _, objc.NSArray arg1) => func(arg1), - ), - ); - - /// connection:handleRequest: - static final connection_handleRequest_ = - objc.ObjCProtocolMethod< - bool Function(NSConnection, NSDistantObjectRequest) - >( - _protocol_NSConnectionDelegate, - _sel_connection_handleRequest_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_connection_handleRequest_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSConnection, NSDistantObjectRequest) func) => - ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest.fromFunction( - ( - ffi.Pointer _, - NSConnection arg1, - NSDistantObjectRequest arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:shouldMakeNewConnection: - static final connection_shouldMakeNewConnection_ = - objc.ObjCProtocolMethod( - _protocol_NSConnectionDelegate, - _sel_connection_shouldMakeNewConnection_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_connection_shouldMakeNewConnection_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSConnection, NSConnection) func) => - ObjCBlock_bool_ffiVoid_NSConnection_NSConnection.fromFunction( - (ffi.Pointer _, NSConnection arg1, NSConnection arg2) => - func(arg1, arg2), - ), - ); - - /// createConversationForConnection: - static final createConversationForConnection_ = - objc.ObjCProtocolMethod( - _protocol_NSConnectionDelegate, - _sel_createConversationForConnection_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xr62hr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_createConversationForConnection_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.ObjCObject Function(NSConnection) func) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection.fromFunction( - (ffi.Pointer _, NSConnection arg1) => func(arg1), - ), - ); - - /// makeNewConnection:sender: - static final makeNewConnection_sender_ = - objc.ObjCProtocolMethod( - _protocol_NSConnectionDelegate, - _sel_makeNewConnection_sender_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSConnectionDelegate, - _sel_makeNewConnection_sender_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSConnection, NSConnection) func) => - ObjCBlock_bool_ffiVoid_NSConnection_NSConnection.fromFunction( - (ffi.Pointer _, NSConnection arg1, NSConnection arg2) => - func(arg1, arg2), - ), - ); -} - -const int NSContainerSpecifierError = 2; - -/// NSCopyLinkMoveHandler -extension NSCopyLinkMoveHandler on objc.NSObject { - /// fileManager:shouldProceedAfterError: - @Deprecated(' Handler API no longer supported') - bool fileManager( - NSFileManager fm, { - required objc.NSDictionary shouldProceedAfterError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fm.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - objc.checkOsVersionInternal( - 'NSObject.fileManager:shouldProceedAfterError:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// fileManager:willProcessPath: - @Deprecated('Handler API no longer supported') - void fileManager$1( - NSFileManager fm, { - required objc.NSString willProcessPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fm.ref; - final _$$ref$2 = willProcessPath.ref; - objc.checkOsVersionInternal( - 'NSObject.fileManager:willProcessPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_fileManager_willProcessPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSCustomPronouns -@Deprecated('Use NSTermOfAddress instead') -extension NSCustomPronouns on NSMorphology$1 { - /// customPronounForLanguage: - @Deprecated('Use NSTermOfAddress instead') - NSMorphologyCustomPronoun? customPronounForLanguage(objc.NSString language) { - final _$$ref = object$.ref; - final _$$ref$1 = language.ref; - objc.checkOsVersionInternal( - 'NSMorphology.customPronounForLanguage:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_customPronounForLanguage_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : NSMorphologyCustomPronoun.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// setCustomPronoun:forLanguage:error: - @Deprecated('Use NSTermOfAddress instead') - bool setCustomPronoun( - NSMorphologyCustomPronoun? features, { - required objc.NSString forLanguage, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = features?.ref; - final _$$ref$2 = forLanguage.ref; - objc.checkOsVersionInternal( - 'NSMorphology.setCustomPronoun:forLanguage:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_6z4k82( - _$$ref.pointer, - _sel_setCustomPronoun_forLanguage_error_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -/// NSDataBase64Encoding -extension NSDataBase64Encoding on objc.NSData { - /// base64EncodedDataWithOptions: - objc.NSData base64EncodedDataWithOptions(DartNSUInteger options) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.base64EncodedDataWithOptions:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_ylninc( - _$$ref.pointer, - _sel_base64EncodedDataWithOptions_, - options, - ); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// base64EncodedStringWithOptions: - objc.NSString base64EncodedStringWithOptions(DartNSUInteger options) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.base64EncodedStringWithOptions:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_ylninc( - _$$ref.pointer, - _sel_base64EncodedStringWithOptions_, - options, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// initWithBase64EncodedData:options: - objc.NSData? initWithBase64EncodedData( - objc.NSData base64Data, { - required DartNSUInteger options, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = base64Data.ref; - objc.checkOsVersionInternal( - 'NSData.initWithBase64EncodedData:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_7kpg7m( - _$$ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedData_options_, - _$$ref$1.pointer, - options, - ); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: false, release: true); - } - - /// initWithBase64EncodedString:options: - objc.NSData? initWithBase64EncodedString( - objc.NSString base64String, { - required DartNSUInteger options, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = base64String.ref; - objc.checkOsVersionInternal( - 'NSData.initWithBase64EncodedString:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_7kpg7m( - _$$ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedString_options_, - _$$ref$1.pointer, - options, - ); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: false, release: true); - } -} - -/// NSDataCompression -extension NSDataCompression on objc.NSData { - /// compressedDataUsingAlgorithm:error: - objc.NSData? compressedDataUsingAlgorithm( - objc.NSDataCompressionAlgorithm algorithm, - ) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.compressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1vnlaqg( - _$$ref.pointer, - _sel_compressedDataUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decompressedDataUsingAlgorithm:error: - objc.NSData? decompressedDataUsingAlgorithm( - objc.NSDataCompressionAlgorithm algorithm, - ) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.decompressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1vnlaqg( - _$$ref.pointer, - _sel_decompressedDataUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -const int NSDateComponentUndefined = 9223372036854775807; - -enum NSDateComponentsFormatterUnitsStyle { - NSDateComponentsFormatterUnitsStylePositional(0), - NSDateComponentsFormatterUnitsStyleAbbreviated(1), - NSDateComponentsFormatterUnitsStyleShort(2), - NSDateComponentsFormatterUnitsStyleFull(3), - NSDateComponentsFormatterUnitsStyleSpellOut(4), - NSDateComponentsFormatterUnitsStyleBrief(5); - - final int value; - const NSDateComponentsFormatterUnitsStyle(this.value); - - static NSDateComponentsFormatterUnitsStyle fromValue(int value) => - switch (value) { - 0 => NSDateComponentsFormatterUnitsStylePositional, - 1 => NSDateComponentsFormatterUnitsStyleAbbreviated, - 2 => NSDateComponentsFormatterUnitsStyleShort, - 3 => NSDateComponentsFormatterUnitsStyleFull, - 4 => NSDateComponentsFormatterUnitsStyleSpellOut, - 5 => NSDateComponentsFormatterUnitsStyleBrief, - _ => throw ArgumentError( - 'Unknown value for NSDateComponentsFormatterUnitsStyle: $value', - ), - }; -} - -sealed class NSDateComponentsFormatterZeroFormattingBehavior { - static const NSDateComponentsFormatterZeroFormattingBehaviorNone = 0; - static const NSDateComponentsFormatterZeroFormattingBehaviorDefault = 1; - static const NSDateComponentsFormatterZeroFormattingBehaviorDropLeading = 2; - static const NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle = 4; - static const NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing = 8; - static const NSDateComponentsFormatterZeroFormattingBehaviorDropAll = 14; - static const NSDateComponentsFormatterZeroFormattingBehaviorPad = 65536; -} - -/// NSDateCreation -extension NSDateCreation on objc.NSDate { - /// initWithTimeInterval:sinceDate: - objc.NSDate initWithTimeInterval( - DartNSTimeInterval secsToBeAdded, { - required objc.NSDate sinceDate, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sinceDate.ref; - final $ret = _objc_msgSend_1ozwf6k( - _$$ref.retainAndReturnPointer(), - _sel_initWithTimeInterval_sinceDate_, - secsToBeAdded, - _$$ref$1.pointer, - ); - return objc.NSDate.fromPointer($ret, retain: false, release: true); - } - - /// initWithTimeIntervalSince1970: - objc.NSDate initWithTimeIntervalSince1970(DartNSTimeInterval secs) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_oa8mke( - _$$ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSince1970_, - secs, - ); - return objc.NSDate.fromPointer($ret, retain: false, release: true); - } - - /// initWithTimeIntervalSinceNow: - objc.NSDate initWithTimeIntervalSinceNow(DartNSTimeInterval secs) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_oa8mke( - _$$ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSinceNow_, - secs, - ); - return objc.NSDate.fromPointer($ret, retain: false, release: true); - } - - /// date - static objc.NSDate date() { - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_date); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// dateWithTimeInterval:sinceDate: - static objc.NSDate dateWithTimeInterval( - DartNSTimeInterval secsToBeAdded, { - required objc.NSDate sinceDate, - }) { - final _$$ref = sinceDate.ref; - final $ret = _objc_msgSend_1ozwf6k( - _class_NSDate, - _sel_dateWithTimeInterval_sinceDate_, - secsToBeAdded, - _$$ref.pointer, - ); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSince1970: - static objc.NSDate dateWithTimeIntervalSince1970(DartNSTimeInterval secs) { - final $ret = _objc_msgSend_oa8mke( - _class_NSDate, - _sel_dateWithTimeIntervalSince1970_, - secs, - ); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSinceNow: - static objc.NSDate dateWithTimeIntervalSinceNow(DartNSTimeInterval secs) { - final $ret = _objc_msgSend_oa8mke( - _class_NSDate, - _sel_dateWithTimeIntervalSinceNow_, - secs, - ); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSinceReferenceDate: - static objc.NSDate dateWithTimeIntervalSinceReferenceDate( - DartNSTimeInterval ti, - ) { - final $ret = _objc_msgSend_oa8mke( - _class_NSDate, - _sel_dateWithTimeIntervalSinceReferenceDate_, - ti, - ); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// distantFuture - static objc.NSDate getDistantFuture() { - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantFuture); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// distantPast - static objc.NSDate getDistantPast() { - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantPast); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// now - static objc.NSDate getNow() { - objc.checkOsVersionInternal( - 'NSDate.now', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_now); - return objc.NSDate.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSDateFormatter is a stub. To generate bindings for this class, include -/// NSDateFormatter in your config's objc-interfaces list. -/// -/// NSDateFormatter -extension type NSDateFormatter._(objc.ObjCObject object$) - implements objc.ObjCObject, NSFormatter { - /// Constructs a [NSDateFormatter] that points to the same underlying object as [other]. - NSDateFormatter.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSDateFormatter] that wraps the given raw object pointer. - NSDateFormatter.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -enum NSDateFormatterBehavior { - NSDateFormatterBehaviorDefault(0), - NSDateFormatterBehavior10_0(1000), - NSDateFormatterBehavior10_4(1040); - - final int value; - const NSDateFormatterBehavior(this.value); - - static NSDateFormatterBehavior fromValue(int value) => switch (value) { - 0 => NSDateFormatterBehaviorDefault, - 1000 => NSDateFormatterBehavior10_0, - 1040 => NSDateFormatterBehavior10_4, - _ => throw ArgumentError( - 'Unknown value for NSDateFormatterBehavior: $value', - ), - }; -} - -/// NSDateFormatterCompatibility -extension NSDateFormatterCompatibility on NSDateFormatter { - /// allowsNaturalLanguage - @Deprecated('There is no replacement') - bool allowsNaturalLanguage() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSDateFormatter.allowsNaturalLanguage', - macOS: (false, (10, 4, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_allowsNaturalLanguage); - } - - /// initWithDateFormat:allowNaturalLanguage: - @Deprecated( - 'Create an NSDateFormatter with `init` and set the dateFormat property instead.', - ) - objc.ObjCObject initWithDateFormat( - objc.NSString format, { - required bool allowNaturalLanguage, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - objc.checkOsVersionInternal( - 'NSDateFormatter.initWithDateFormat:allowNaturalLanguage:', - macOS: (false, (10, 4, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithDateFormat_allowNaturalLanguage_, - _$$ref$1.pointer, - allowNaturalLanguage, - ); - return objc.ObjCObject($ret, retain: false, release: true); - } -} - -enum NSDateFormatterStyle { - NSDateFormatterNoStyle(0), - NSDateFormatterShortStyle(1), - NSDateFormatterMediumStyle(2), - NSDateFormatterLongStyle(3), - NSDateFormatterFullStyle(4); - - final int value; - const NSDateFormatterStyle(this.value); - - static NSDateFormatterStyle fromValue(int value) => switch (value) { - 0 => NSDateFormatterNoStyle, - 1 => NSDateFormatterShortStyle, - 2 => NSDateFormatterMediumStyle, - 3 => NSDateFormatterLongStyle, - 4 => NSDateFormatterFullStyle, - _ => throw ArgumentError('Unknown value for NSDateFormatterStyle: $value'), - }; -} - -enum NSDateIntervalFormatterStyle { - NSDateIntervalFormatterNoStyle(0), - NSDateIntervalFormatterShortStyle(1), - NSDateIntervalFormatterMediumStyle(2), - NSDateIntervalFormatterLongStyle(3), - NSDateIntervalFormatterFullStyle(4); - - final int value; - const NSDateIntervalFormatterStyle(this.value); - - static NSDateIntervalFormatterStyle fromValue(int value) => switch (value) { - 0 => NSDateIntervalFormatterNoStyle, - 1 => NSDateIntervalFormatterShortStyle, - 2 => NSDateIntervalFormatterMediumStyle, - 3 => NSDateIntervalFormatterLongStyle, - 4 => NSDateIntervalFormatterFullStyle, - _ => throw ArgumentError( - 'Unknown value for NSDateIntervalFormatterStyle: $value', - ), - }; -} - -final class NSDecimal extends ffi.Opaque {} - -/// WARNING: NSDecimalNumber is a stub. To generate bindings for this class, include -/// NSDecimalNumber in your config's objc-interfaces list. -/// -/// NSDecimalNumber -extension type NSDecimalNumber._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSNumber { - /// Constructs a [NSDecimalNumber] that points to the same underlying object as [other]. - NSDecimalNumber.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSDecimalNumber] that wraps the given raw object pointer. - NSDecimalNumber.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSDecimalNumberBehaviors -extension type NSDecimalNumberBehaviors._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSDecimalNumberBehaviors] that points to the same underlying object as [other]. - NSDecimalNumberBehaviors.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSDecimalNumberBehaviors] that wraps the given raw object pointer. - NSDecimalNumberBehaviors.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSDecimalNumberBehaviors]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSDecimalNumberBehaviors, - ); - } -} - -extension NSDecimalNumberBehaviors$Methods on NSDecimalNumberBehaviors { - /// exceptionDuringOperation:error:leftOperand:rightOperand: - NSDecimalNumber? exceptionDuringOperation( - ffi.Pointer operation, { - required NSCalculationError error, - required NSDecimalNumber leftOperand, - NSDecimalNumber? rightOperand, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = leftOperand.ref; - final _$$ref$2 = rightOperand?.ref; - final $ret = _objc_msgSend_1qldcx0( - _$$ref.pointer, - _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, - operation, - error.value, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : NSDecimalNumber.fromPointer($ret, retain: true, release: true); - } - - /// roundingMode - NSRoundingMode roundingMode() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_15dzt85(_$$ref.pointer, _sel_roundingMode); - return NSRoundingMode.fromValue($ret); - } - - /// scale - int scale() { - final _$$ref = object$.ref; - return _objc_msgSend_1jwityx(_$$ref.pointer, _sel_scale); - } -} - -interface class NSDecimalNumberBehaviors$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSDecimalNumberBehaviors.cast()); - - /// Builds an object that implements the NSDecimalNumberBehaviors protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSDecimalNumberBehaviors implement({ - required NSDecimalNumber? Function( - ffi.Pointer, - NSCalculationError, - NSDecimalNumber, - NSDecimalNumber?, - ) - exceptionDuringOperation_error_leftOperand_rightOperand_, - required NSRoundingMode Function() roundingMode, - required int Function() scale, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSDecimalNumberBehaviors', - ); - NSDecimalNumberBehaviors$Builder - .exceptionDuringOperation_error_leftOperand_rightOperand_ - .implement( - builder, - exceptionDuringOperation_error_leftOperand_rightOperand_, - ); - NSDecimalNumberBehaviors$Builder.roundingMode.implement( - builder, - roundingMode, - ); - NSDecimalNumberBehaviors$Builder.scale.implement(builder, scale); - builder.addProtocol($protocol); - return NSDecimalNumberBehaviors.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSDecimalNumberBehaviors protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required NSDecimalNumber? Function( - ffi.Pointer, - NSCalculationError, - NSDecimalNumber, - NSDecimalNumber?, - ) - exceptionDuringOperation_error_leftOperand_rightOperand_, - required NSRoundingMode Function() roundingMode, - required int Function() scale, - bool $keepIsolateAlive = true, - }) { - NSDecimalNumberBehaviors$Builder - .exceptionDuringOperation_error_leftOperand_rightOperand_ - .implement( - builder, - exceptionDuringOperation_error_leftOperand_rightOperand_, - ); - NSDecimalNumberBehaviors$Builder.roundingMode.implement( - builder, - roundingMode, - ); - NSDecimalNumberBehaviors$Builder.scale.implement(builder, scale); - builder.addProtocol($protocol); - } - - /// exceptionDuringOperation:error:leftOperand:rightOperand: - static final exceptionDuringOperation_error_leftOperand_rightOperand_ = - objc.ObjCProtocolMethod< - NSDecimalNumber? Function( - ffi.Pointer, - NSCalculationError, - NSDecimalNumber, - NSDecimalNumber?, - ) - >( - _protocol_NSDecimalNumberBehaviors, - _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_738w24) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDecimalNumberBehaviors, - _sel_exceptionDuringOperation_error_leftOperand_rightOperand_, - isRequired: true, - isInstanceMethod: true, - ), - ( - NSDecimalNumber? Function( - ffi.Pointer, - NSCalculationError, - NSDecimalNumber, - NSDecimalNumber?, - ) - func, - ) => - ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer arg1, - NSCalculationError arg2, - NSDecimalNumber arg3, - NSDecimalNumber? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// roundingMode - static final roundingMode = - objc.ObjCProtocolMethod( - _protocol_NSDecimalNumberBehaviors, - _sel_roundingMode, - ffi.Native.addressOf< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_5cb1bj) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDecimalNumberBehaviors, - _sel_roundingMode, - isRequired: true, - isInstanceMethod: true, - ), - (NSRoundingMode Function() func) => - ObjCBlock_NSRoundingMode_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// scale - static final scale = objc.ObjCProtocolMethod( - _protocol_NSDecimalNumberBehaviors, - _sel_scale, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_p984hf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDecimalNumberBehaviors, - _sel_scale, - isRequired: true, - isInstanceMethod: true, - ), - (int Function() func) => ObjCBlock_ffiShort_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); -} - -/// NSDecimalNumberExtensions -extension NSDecimalNumberExtensions on objc.NSNumber {} - -/// WARNING: NSDecimalNumberHandler is a stub. To generate bindings for this class, include -/// NSDecimalNumberHandler in your config's objc-interfaces list. -/// -/// NSDecimalNumberHandler -extension type NSDecimalNumberHandler._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - NSDecimalNumberBehaviors, - objc.NSCoding { - /// Constructs a [NSDecimalNumberHandler] that points to the same underlying object as [other]. - NSDecimalNumberHandler.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSDecimalNumberHandler] that wraps the given raw object pointer. - NSDecimalNumberHandler.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSDecimalNumberScanning -extension NSDecimalNumberScanning on NSScanner { - /// scanDecimal: - bool scanDecimal(ffi.Pointer dcm) { - final _$$ref = object$.ref; - return _objc_msgSend_ijkvzl(_$$ref.pointer, _sel_scanDecimal_, dcm); - } -} - -const int NSDecompressionFailedError = 5377; - -/// NSDelayedPerforming -extension NSDelayedPerforming on objc.NSObject { - /// performSelector:withObject:afterDelay: - void performSelector$3( - ffi.Pointer aSelector, { - objc.ObjCObject? withObject, - required DartNSTimeInterval afterDelay, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withObject?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelector:withObject:afterDelay:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_7ql5kn( - _$$ref.pointer, - _sel_performSelector_withObject_afterDelay_, - aSelector, - _$$ref$1?.pointer ?? ffi.nullptr, - afterDelay, - ); - } - - /// performSelector:withObject:afterDelay:inModes: - void performSelector$4( - ffi.Pointer aSelector, { - objc.ObjCObject? withObject, - required DartNSTimeInterval afterDelay, - required objc.NSArray inModes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withObject?.ref; - final _$$ref$2 = inModes.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelector:withObject:afterDelay:inModes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_t8ajot( - _$$ref.pointer, - _sel_performSelector_withObject_afterDelay_inModes_, - aSelector, - _$$ref$1?.pointer ?? ffi.nullptr, - afterDelay, - _$$ref$2.pointer, - ); - } - - /// cancelPreviousPerformRequestsWithTarget: - static void cancelPreviousPerformRequestsWithTarget(objc.ObjCObject aTarget) { - final _$$ref = aTarget.ref; - objc.checkOsVersionInternal( - 'NSObject.cancelPreviousPerformRequestsWithTarget:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _class_NSObject, - _sel_cancelPreviousPerformRequestsWithTarget_, - _$$ref.pointer, - ); - } - - /// cancelPreviousPerformRequestsWithTarget:selector:object: - static void cancelPreviousPerformRequestsWithTarget$1( - objc.ObjCObject aTarget, { - required ffi.Pointer selector, - objc.ObjCObject? object, - }) { - final _$$ref = aTarget.ref; - final _$$ref$1 = object?.ref; - objc.checkOsVersionInternal( - 'NSObject.cancelPreviousPerformRequestsWithTarget:selector:object:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1ygbbzi( - _class_NSObject, - _sel_cancelPreviousPerformRequestsWithTarget_selector_object_, - _$$ref.pointer, - selector, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// NSDeprecated -extension NSDeprecated on objc.NSDictionary { - /// getObjects:andKeys: - @Deprecated('Use -getObjects:andKeys:count: instead') - void getObjects( - ffi.Pointer> objects, { - required ffi.Pointer> andKeys, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSDictionary.getObjects:andKeys:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_hefmm1( - _$$ref.pointer, - _sel_getObjects_andKeys_, - objects, - andKeys, - ); - } - - /// initWithContentsOfFile: - @Deprecated('Deprecated') - objc.NSDictionary? initWithContentsOfFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSDictionary.initWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - @Deprecated('Deprecated') - objc.NSDictionary? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.initWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// writeToFile:atomically: - @Deprecated('Deprecated') - bool writeToFile(objc.NSString path, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSDictionary.writeToFile:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1iyq28l( - _$$ref.pointer, - _sel_writeToFile_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// writeToURL:atomically: - @Deprecated('Deprecated') - bool writeToURL(objc.NSURL url, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.writeToURL:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1iyq28l( - _$$ref.pointer, - _sel_writeToURL_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// dictionaryWithContentsOfFile: - @Deprecated('Deprecated') - static objc.NSDictionary? dictionaryWithContentsOfFile(objc.NSString path) { - final _$$ref = path.ref; - objc.checkOsVersionInternal( - 'NSDictionary.dictionaryWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, - _sel_dictionaryWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithContentsOfURL: - @Deprecated('Deprecated') - static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.dictionaryWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, - _sel_dictionaryWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$1 on objc.NSArray { - /// getObjects: - @Deprecated('Use -getObjects:range: instead') - void getObjects(ffi.Pointer> objects) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSArray.getObjects:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1dau4w(_$$ref.pointer, _sel_getObjects_, objects); - } - - /// initWithContentsOfFile: - @Deprecated('Deprecated') - objc.NSArray? initWithContentsOfFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSArray.initWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - @Deprecated('Deprecated') - objc.NSArray? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSArray.initWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: false, release: true); - } - - /// writeToFile:atomically: - @Deprecated('Deprecated') - bool writeToFile(objc.NSString path, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSArray.writeToFile:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1iyq28l( - _$$ref.pointer, - _sel_writeToFile_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// writeToURL:atomically: - @Deprecated('Deprecated') - bool writeToURL(objc.NSURL url, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSArray.writeToURL:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1iyq28l( - _$$ref.pointer, - _sel_writeToURL_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// arrayWithContentsOfFile: - @Deprecated('Deprecated') - static objc.NSArray? arrayWithContentsOfFile(objc.NSString path) { - final _$$ref = path.ref; - objc.checkOsVersionInternal( - 'NSArray.arrayWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithContentsOfURL: - @Deprecated('Deprecated') - static objc.NSArray? arrayWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSArray.arrayWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$10 on NSFileWrapper { - /// addFileWithPath: - @Deprecated( - 'Instantiate a new NSFileWrapper with -initWithURL:options:error:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.', - ) - objc.NSString addFileWithPath(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.addFileWithPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_addFileWithPath_, - _$$ref$1.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// addSymbolicLinkWithDestination:preferredFilename: - @Deprecated( - 'Instantiate a new NSFileWrapper with -initWithSymbolicLinkDestinationURL:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.', - ) - objc.NSString addSymbolicLinkWithDestination( - objc.NSString path, { - required objc.NSString preferredFilename, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final _$$ref$2 = preferredFilename.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.addSymbolicLinkWithDestination:preferredFilename:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_addSymbolicLinkWithDestination_preferredFilename_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// initSymbolicLinkWithDestination: - @Deprecated( - 'Use -initSymbolicLinkWithDestinationURL: and -setPreferredFileName:, if necessary, instead.', - ) - objc.ObjCObject initSymbolicLinkWithDestination(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.initSymbolicLinkWithDestination:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initSymbolicLinkWithDestination_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithPath: - @Deprecated('Use -initWithURL:options:error: instead.') - objc.ObjCObject? initWithPath(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.initWithPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithPath_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// needsToBeUpdatedFromPath: - @Deprecated('Use -matchesContentsOfURL: instead.') - bool needsToBeUpdatedFromPath(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.needsToBeUpdatedFromPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_needsToBeUpdatedFromPath_, - _$$ref$1.pointer, - ); - } - - /// symbolicLinkDestination - @Deprecated('Use -symbolicLinkDestinationURL instead.') - objc.NSString symbolicLinkDestination() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.symbolicLinkDestination', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_symbolicLinkDestination, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// updateFromPath: - @Deprecated('Use -readFromURL:options:error: instead.') - bool updateFromPath(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.updateFromPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_updateFromPath_, - _$$ref$1.pointer, - ); - } - - /// writeToFile:atomically:updateFilenames: - @Deprecated('Use -writeToURL:options:originalContentsURL:error: instead.') - bool writeToFile( - objc.NSString path, { - required bool atomically, - required bool updateFilenames, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSFileWrapper.writeToFile:atomically:updateFilenames:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_126fd3h( - _$$ref.pointer, - _sel_writeToFile_atomically_updateFilenames_, - _$$ref$1.pointer, - atomically, - updateFilenames, - ); - } -} - -/// NSDeprecated -extension NSDeprecated$2 on objc.NSValue { - /// getValue: - @Deprecated('Deprecated') - void getValue$1(ffi.Pointer value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSValue.getValue:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_ovsamd(_$$ref.pointer, _sel_getValue_, value); - } -} - -/// NSDeprecated -extension NSDeprecated$3 on objc.NSData { - /// base64Encoding - @Deprecated('Use base64EncodedStringWithOptions: instead') - objc.NSString base64Encoding() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.base64Encoding', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_base64Encoding); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// getBytes: - @Deprecated( - 'This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead.', - ) - void getBytes(ffi.Pointer buffer) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.getBytes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_ovsamd(_$$ref.pointer, _sel_getBytes_, buffer); - } - - /// initWithBase64Encoding: - @Deprecated('Use initWithBase64EncodedString:options: instead') - objc.ObjCObject? initWithBase64Encoding(objc.NSString base64String) { - final _$$ref = object$.ref; - final _$$ref$1 = base64String.ref; - objc.checkOsVersionInternal( - 'NSData.initWithBase64Encoding:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithBase64Encoding_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithContentsOfMappedFile: - @Deprecated( - 'Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.', - ) - objc.ObjCObject? initWithContentsOfMappedFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSData.initWithContentsOfMappedFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfMappedFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// dataWithContentsOfMappedFile: - @Deprecated( - 'Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.', - ) - static objc.ObjCObject? dataWithContentsOfMappedFile(objc.NSString path) { - final _$$ref = path.ref; - objc.checkOsVersionInternal( - 'NSData.dataWithContentsOfMappedFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSData, - _sel_dataWithContentsOfMappedFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$4 on objc.NSCoder { - /// decodeValueOfObjCType:at: - @Deprecated('Deprecated') - void decodeValueOfObjCType$1( - ffi.Pointer type, { - required ffi.Pointer at, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeValueOfObjCType:at:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1flkydz( - _$$ref.pointer, - _sel_decodeValueOfObjCType_at_, - type, - at, - ); - } -} - -/// NSDeprecated -extension NSDeprecated$5 on NSIndexPath { - /// getIndexes: - @Deprecated('Deprecated') - void getIndexes(ffi.Pointer indexes) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSIndexPath.getIndexes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_h1puss(_$$ref.pointer, _sel_getIndexes_, indexes); - } -} - -/// NSDeprecated -extension NSDeprecated$6 on NSOperationQueue { - /// operationCount - @Deprecated('Deprecated') - DartNSUInteger get operationCount { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSOperationQueue.operationCount', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_operationCount); - } - - /// operations - @Deprecated( - 'access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead', - ) - objc.NSArray get operations { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSOperationQueue.operations', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_operations); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$7 on NSTask { - /// currentDirectoryPath - @Deprecated('Deprecated') - objc.NSString get currentDirectoryPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTask.currentDirectoryPath', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_currentDirectoryPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// launch - @Deprecated('Deprecated') - void launch() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTask.launch', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_launch); - } - - /// launchPath - @Deprecated('Deprecated') - objc.NSString? get launchPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTask.launchPath', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_launchPath); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// setCurrentDirectoryPath: - @Deprecated('Deprecated') - set currentDirectoryPath(objc.NSString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - objc.checkOsVersionInternal( - 'NSTask.setCurrentDirectoryPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setCurrentDirectoryPath_, - _$$ref$1.pointer, - ); - } - - /// setLaunchPath: - @Deprecated('Deprecated') - set launchPath(objc.NSString? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSTask.setLaunchPath:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setLaunchPath_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// launchedTaskWithLaunchPath:arguments: - @Deprecated('Deprecated') - static NSTask launchedTaskWithLaunchPath( - objc.NSString path, { - required objc.NSArray arguments, - }) { - final _$$ref = path.ref; - final _$$ref$1 = arguments.ref; - objc.checkOsVersionInternal( - 'NSTask.launchedTaskWithLaunchPath:arguments:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _class_NSTask, - _sel_launchedTaskWithLaunchPath_arguments_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return NSTask.fromPointer($ret, retain: true, release: true); - } -} - -/// NSDeprecated -extension NSDeprecated$8 on NSXMLElement { - /// setAttributesAsDictionary: - @Deprecated('Deprecated') - void setAttributesAsDictionary(objc.NSDictionary attributes) { - final _$$ref = object$.ref; - final _$$ref$1 = attributes.ref; - objc.checkOsVersionInternal( - 'NSXMLElement.setAttributesAsDictionary:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setAttributesAsDictionary_, - _$$ref$1.pointer, - ); - } -} - -/// NSDeprecated -extension NSDeprecated$9 on NSScriptClassDescription$1 { - /// isReadOnlyKey: - @Deprecated('Deprecated') - bool isReadOnlyKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSScriptClassDescription.isReadOnlyKey:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isReadOnlyKey_, - _$$ref$1.pointer, - ); - } -} - -/// NSDeprecatedKeyValueCoding -extension NSDeprecatedKeyValueCoding on objc.NSObject { - /// handleQueryWithUnboundKey: - @Deprecated('Legacy KVC API') - objc.ObjCObject? handleQueryWithUnboundKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.handleQueryWithUnboundKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_handleQueryWithUnboundKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// handleTakeValue:forUnboundKey: - @Deprecated('Legacy KVC API') - void handleTakeValue( - objc.ObjCObject? value, { - required objc.NSString forUnboundKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forUnboundKey.ref; - objc.checkOsVersionInternal( - 'NSObject.handleTakeValue:forUnboundKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_handleTakeValue_forUnboundKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// storedValueForKey: - @Deprecated('Legacy KVC API') - objc.ObjCObject? storedValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.storedValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_storedValueForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// takeStoredValue:forKey: - @Deprecated('Legacy KVC API') - void takeStoredValue( - objc.ObjCObject? value, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.takeStoredValue:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_takeStoredValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// takeValue:forKey: - @Deprecated('Legacy KVC API') - void takeValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.takeValue:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_takeValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// takeValue:forKeyPath: - @Deprecated('Legacy KVC API') - void takeValue$1( - objc.ObjCObject? value, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.takeValue:forKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_takeValue_forKeyPath_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// takeValuesFromDictionary: - @Deprecated('Legacy KVC API') - void takeValuesFromDictionary(objc.NSDictionary properties) { - final _$$ref = object$.ref; - final _$$ref$1 = properties.ref; - objc.checkOsVersionInternal( - 'NSObject.takeValuesFromDictionary:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_takeValuesFromDictionary_, - _$$ref$1.pointer, - ); - } - - /// unableToSetNilForKey: - @Deprecated('Legacy KVC API') - void unableToSetNilForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.unableToSetNilForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_unableToSetNilForKey_, - _$$ref$1.pointer, - ); - } - - /// valuesForKeys: - @Deprecated('Legacy KVC API') - objc.NSDictionary valuesForKeys(objc.NSArray keys) { - final _$$ref = object$.ref; - final _$$ref$1 = keys.ref; - objc.checkOsVersionInternal( - 'NSObject.valuesForKeys:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_valuesForKeys_, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// useStoredAccessor - @Deprecated('Legacy KVC API') - static bool useStoredAccessor() { - objc.checkOsVersionInternal( - 'NSObject.useStoredAccessor', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_91o635(_class_NSObject, _sel_useStoredAccessor); - } -} - -/// NSDeprecatedKeyValueObservingCustomization -extension NSDeprecatedKeyValueObservingCustomization on objc.NSObject { - /// setKeys:triggerChangeNotificationsForDependentKey: - @Deprecated('Use +keyPathsForValuesAffectingValueForKey instead') - static void setKeys( - objc.NSArray keys, { - required objc.NSString triggerChangeNotificationsForDependentKey, - }) { - final _$$ref = keys.ref; - final _$$ref$1 = triggerChangeNotificationsForDependentKey.ref; - objc.checkOsVersionInternal( - 'NSObject.setKeys:triggerChangeNotificationsForDependentKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _class_NSObject, - _sel_setKeys_triggerChangeNotificationsForDependentKey_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - } -} - -/// NSDeprecatedMethods -extension NSDeprecatedMethods on objc.NSObject {} - -/// NSDictionaryCreation -extension NSDictionaryCreation on objc.NSDictionary { - /// initWithContentsOfURL:error: - objc.NSDictionary? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.initWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithDictionary: - objc.NSDictionary initWithDictionary(objc.NSDictionary otherDictionary) { - final _$$ref = object$.ref; - final _$$ref$1 = otherDictionary.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithDictionary_, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// initWithDictionary:copyItems: - objc.NSDictionary initWithDictionary$1( - objc.NSDictionary otherDictionary, { - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = otherDictionary.ref; - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithDictionary_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// initWithObjects:forKeys: - objc.NSDictionary initWithObjects$1( - objc.NSArray objects, { - required objc.NSArray forKeys, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = objects.ref; - final _$$ref$2 = forKeys.ref; - final $ret = _objc_msgSend_15qeuct( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// initWithObjectsAndKeys: - objc.NSDictionary initWithObjectsAndKeys(objc.ObjCObject firstObject) { - final _$$ref = object$.ref; - final _$$ref$1 = firstObject.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjectsAndKeys_, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: false, release: true); - } - - /// dictionary - static objc.NSDictionary dictionary() { - final $ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_dictionary); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithContentsOfURL:error: - static objc.NSDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.dictionaryWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _class_NSDictionary, - _sel_dictionaryWithContentsOfURL_error_, - _$$ref.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// dictionaryWithDictionary: - static objc.NSDictionary dictionaryWithDictionary(objc.NSDictionary dict) { - final _$$ref = dict.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, - _sel_dictionaryWithDictionary_, - _$$ref.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithObject:forKey: - static objc.NSDictionary dictionaryWithObject( - objc.ObjCObject object, { - required objc.NSCopying forKey, - }) { - final _$$ref = object.ref; - final _$$ref$1 = forKey.ref; - final $ret = _objc_msgSend_15qeuct( - _class_NSDictionary, - _sel_dictionaryWithObject_forKey_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithObjects:forKeys: - static objc.NSDictionary dictionaryWithObjects( - objc.NSArray objects, { - required objc.NSArray forKeys, - }) { - final _$$ref = objects.ref; - final _$$ref$1 = forKeys.ref; - final $ret = _objc_msgSend_15qeuct( - _class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithObjects:forKeys:count: - static objc.NSDictionary dictionaryWithObjects$1( - ffi.Pointer> objects, { - required ffi.Pointer> forKeys, - required DartNSUInteger count, - }) { - final $ret = _objc_msgSend_1dydpdi( - _class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_count_, - objects, - forKeys, - count, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithObjectsAndKeys: - static objc.NSDictionary dictionaryWithObjectsAndKeys( - objc.ObjCObject firstObject, - ) { - final _$$ref = firstObject.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, - _sel_dictionaryWithObjectsAndKeys_, - _$$ref.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -sealed class NSDirectoryEnumerationOptions { - static const NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1; - static const NSDirectoryEnumerationSkipsPackageDescendants = 2; - static const NSDirectoryEnumerationSkipsHiddenFiles = 4; - static const NSDirectoryEnumerationIncludesDirectoriesPostOrder = 8; - static const NSDirectoryEnumerationProducesRelativePathURLs = 16; -} - -/// NSDiscardableContent -extension type NSDiscardableContent._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSDiscardableContent] that points to the same underlying object as [other]. - NSDiscardableContent.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSDiscardableContent] that wraps the given raw object pointer. - NSDiscardableContent.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSDiscardableContent]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSDiscardableContent, - ); - } -} - -extension NSDiscardableContent$Methods on NSDiscardableContent { - /// beginContentAccess - bool beginContentAccess() { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_beginContentAccess); - } - - /// discardContentIfPossible - void discardContentIfPossible() { - final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_discardContentIfPossible); - } - - /// endContentAccess - void endContentAccess() { - final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endContentAccess); - } - - /// isContentDiscarded - bool isContentDiscarded() { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isContentDiscarded); - } -} - -interface class NSDiscardableContent$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSDiscardableContent.cast()); - - /// Builds an object that implements the NSDiscardableContent protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSDiscardableContent implement({ - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implement( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implement( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - return NSDiscardableContent.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSDiscardableContent protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implement( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implement( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSDiscardableContent protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSDiscardableContent implementAsListener({ - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implementAsListener( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implementAsListener( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - return NSDiscardableContent.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSDiscardableContent protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implementAsListener( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implementAsListener( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSDiscardableContent protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSDiscardableContent implementAsBlocking({ - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSDiscardableContent'); - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implementAsBlocking( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implementAsBlocking( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - return NSDiscardableContent.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSDiscardableContent protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required bool Function() beginContentAccess, - required void Function() discardContentIfPossible, - required void Function() endContentAccess, - required bool Function() isContentDiscarded, - bool $keepIsolateAlive = true, - }) { - NSDiscardableContent$Builder.beginContentAccess.implement( - builder, - beginContentAccess, - ); - NSDiscardableContent$Builder.discardContentIfPossible.implementAsBlocking( - builder, - discardContentIfPossible, - ); - NSDiscardableContent$Builder.endContentAccess.implementAsBlocking( - builder, - endContentAccess, - ); - NSDiscardableContent$Builder.isContentDiscarded.implement( - builder, - isContentDiscarded, - ); - builder.addProtocol($protocol); - } - - /// beginContentAccess - static final beginContentAccess = objc.ObjCProtocolMethod( - _protocol_NSDiscardableContent, - _sel_beginContentAccess, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_e3qsqz) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDiscardableContent, - _sel_beginContentAccess, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// discardContentIfPossible - static final discardContentIfPossible = - objc.ObjCProtocolListenableMethod( - _protocol_NSDiscardableContent, - _sel_discardContentIfPossible, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ovsamd) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDiscardableContent, - _sel_discardContentIfPossible, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// endContentAccess - static final endContentAccess = - objc.ObjCProtocolListenableMethod( - _protocol_NSDiscardableContent, - _sel_endContentAccess, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ovsamd) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDiscardableContent, - _sel_endContentAccess, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// isContentDiscarded - static final isContentDiscarded = objc.ObjCProtocolMethod( - _protocol_NSDiscardableContent, - _sel_isContentDiscarded, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_e3qsqz) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSDiscardableContent, - _sel_isContentDiscarded, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); -} - -/// NSDiscardableContentProxy -extension NSDiscardableContentProxy on objc.NSObject { - /// autoContentAccessingProxy - objc.ObjCObject get autoContentAccessingProxy { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.autoContentAccessingProxy', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_autoContentAccessingProxy, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// WARNING: NSDistantObjectRequest is a stub. To generate bindings for this class, include -/// NSDistantObjectRequest in your config's objc-interfaces list. -/// -/// NSDistantObjectRequest -@Deprecated('Use NSXPCConnection instead') -extension type NSDistantObjectRequest._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSDistantObjectRequest] that points to the same underlying object as [other]. - NSDistantObjectRequest.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSDistantObjectRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSDistantObjectRequest] that wraps the given raw object pointer. - NSDistantObjectRequest.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSDistantObjectRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -typedef NSDistributedNotificationCenterType = ffi.Pointer; -typedef DartNSDistributedNotificationCenterType = objc.NSString; - -sealed class NSDistributedNotificationOptions { - static const NSDistributedNotificationDeliverImmediately = 1; - static const NSDistributedNotificationPostToAllSessions = 2; -} - -/// NSDistributedObjects -extension NSDistributedObjects on objc.NSObject { - /// classForPortCoder - @Deprecated('Use NSXPCConnection instead') - objc.ObjCObject get classForPortCoder { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classForPortCoder', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_classForPortCoder); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// replacementObjectForPortCoder: - @Deprecated('Use NSXPCConnection instead') - objc.ObjCObject? replacementObjectForPortCoder(NSPortCoder coder) { - final _$$ref = object$.ref; - final _$$ref$1 = coder.ref; - objc.checkOsVersionInternal( - 'NSObject.replacementObjectForPortCoder:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_replacementObjectForPortCoder_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -enum NSEnergyFormatterUnit { - NSEnergyFormatterUnitJoule(11), - NSEnergyFormatterUnitKilojoule(14), - NSEnergyFormatterUnitCalorie(1793), - NSEnergyFormatterUnitKilocalorie(1794); - - final int value; - const NSEnergyFormatterUnit(this.value); - - static NSEnergyFormatterUnit fromValue(int value) => switch (value) { - 11 => NSEnergyFormatterUnitJoule, - 14 => NSEnergyFormatterUnitKilojoule, - 1793 => NSEnergyFormatterUnitCalorie, - 1794 => NSEnergyFormatterUnitKilocalorie, - _ => throw ArgumentError('Unknown value for NSEnergyFormatterUnit: $value'), - }; -} - -typedef NSErrorDomain = ffi.Pointer; -typedef DartNSErrorDomain = objc.NSString; - -/// NSErrorRecoveryAttempting -extension NSErrorRecoveryAttempting on objc.NSObject { - /// attemptRecoveryFromError:optionIndex: - bool attemptRecoveryFromError( - objc.NSError error, { - required DartNSUInteger optionIndex, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = error.ref; - objc.checkOsVersionInternal( - 'NSObject.attemptRecoveryFromError:optionIndex:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_z7gxsm( - _$$ref.pointer, - _sel_attemptRecoveryFromError_optionIndex_, - _$$ref$1.pointer, - optionIndex, - ); - } - - /// attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo: - void attemptRecoveryFromError$1( - objc.NSError error, { - required DartNSUInteger optionIndex, - objc.ObjCObject? delegate, - required ffi.Pointer didRecoverSelector, - required ffi.Pointer contextInfo, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = error.ref; - final _$$ref$2 = delegate?.ref; - objc.checkOsVersionInternal( - 'NSObject.attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_10txwc9( - _$$ref.pointer, - _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_, - _$$ref$1.pointer, - optionIndex, - _$$ref$2?.pointer ?? ffi.nullptr, - didRecoverSelector, - contextInfo, - ); - } -} - -typedef NSErrorUserInfoKey = ffi.Pointer; -typedef DartNSErrorUserInfoKey = objc.NSString; - -/// WARNING: NSException is a stub. To generate bindings for this class, include -/// NSException in your config's objc-interfaces list. -/// -/// NSException -extension type NSException._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSException] that points to the same underlying object as [other]. - NSException.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSException] that wraps the given raw object pointer. - NSException.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -typedef NSExceptionName = ffi.Pointer; -typedef DartNSExceptionName = objc.NSString; - -/// NSExceptionRaisingConveniences -extension NSExceptionRaisingConveniences on NSException { - /// raise:format: - static void raise$1( - DartNSExceptionName name, { - required objc.NSString format, - }) { - final _$$ref = name.ref; - final _$$ref$1 = format.ref; - _objc_msgSend_pfv6jd( - _class_NSException, - _sel_raise_format_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - } -} - -const int NSExecutableArchitectureMismatchError = 3585; - -const int NSExecutableErrorMaximum = 3839; - -const int NSExecutableErrorMinimum = 3584; - -const int NSExecutableLinkError = 3588; - -const int NSExecutableLoadError = 3587; - -const int NSExecutableNotLoadableError = 3584; - -const int NSExecutableRuntimeMismatchError = 3586; - -enum NSExpressionType { - NSConstantValueExpressionType(0), - NSEvaluatedObjectExpressionType(1), - NSVariableExpressionType(2), - NSKeyPathExpressionType(3), - NSFunctionExpressionType(4), - NSUnionSetExpressionType(5), - NSIntersectSetExpressionType(6), - NSMinusSetExpressionType(7), - NSSubqueryExpressionType(13), - NSAggregateExpressionType(14), - NSAnyKeyExpressionType(15), - NSBlockExpressionType(19), - NSConditionalExpressionType(20); - - final int value; - const NSExpressionType(this.value); - - static NSExpressionType fromValue(int value) => switch (value) { - 0 => NSConstantValueExpressionType, - 1 => NSEvaluatedObjectExpressionType, - 2 => NSVariableExpressionType, - 3 => NSKeyPathExpressionType, - 4 => NSFunctionExpressionType, - 5 => NSUnionSetExpressionType, - 6 => NSIntersectSetExpressionType, - 7 => NSMinusSetExpressionType, - 13 => NSSubqueryExpressionType, - 14 => NSAggregateExpressionType, - 15 => NSAnyKeyExpressionType, - 19 => NSBlockExpressionType, - 20 => NSConditionalExpressionType, - _ => throw ArgumentError('Unknown value for NSExpressionType: $value'), - }; -} - -/// NSExtendedAttributedString -extension NSExtendedAttributedString on objc.NSAttributedString { - /// attribute:atIndex:effectiveRange: - objc.ObjCObject? attribute( - DartNSAttributedStringKey attrName, { - required DartNSUInteger atIndex, - required NSRangePointer effectiveRange, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = attrName.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.attribute:atIndex:effectiveRange:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_7km9vu( - _$$ref.pointer, - _sel_attribute_atIndex_effectiveRange_, - _$$ref$1.pointer, - atIndex, - effectiveRange, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// attribute:atIndex:longestEffectiveRange:inRange: - objc.ObjCObject? attribute$1( - DartNSAttributedStringKey attrName, { - required DartNSUInteger atIndex, - required NSRangePointer longestEffectiveRange, - required NSRange inRange, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = attrName.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.attribute:atIndex:longestEffectiveRange:inRange:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1k1akuq( - _$$ref.pointer, - _sel_attribute_atIndex_longestEffectiveRange_inRange_, - _$$ref$1.pointer, - atIndex, - longestEffectiveRange, - inRange, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// attributedSubstringFromRange: - objc.NSAttributedString attributedSubstringFromRange(NSRange range) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.attributedSubstringFromRange:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1k1o1s7( - _$$ref.pointer, - _sel_attributedSubstringFromRange_, - range, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// attributesAtIndex:longestEffectiveRange:inRange: - objc.NSDictionary attributesAtIndex$1( - DartNSUInteger location, { - required NSRangePointer longestEffectiveRange, - required NSRange inRange, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.attributesAtIndex:longestEffectiveRange:inRange:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1pp2gs8( - _$$ref.pointer, - _sel_attributesAtIndex_longestEffectiveRange_inRange_, - location, - longestEffectiveRange, - inRange, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// enumerateAttribute:inRange:options:usingBlock: - void enumerateAttribute( - DartNSAttributedStringKey attrName, { - required NSRange inRange, - required DartNSUInteger options, - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = attrName.ref; - final _$$ref$2 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.enumerateAttribute:inRange:options:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_ipgwfh( - _$$ref.pointer, - _sel_enumerateAttribute_inRange_options_usingBlock_, - _$$ref$1.pointer, - inRange, - options, - _$$ref$2.pointer, - ); - } - - /// enumerateAttributesInRange:options:usingBlock: - void enumerateAttributesInRange( - NSRange enumerationRange, { - required DartNSUInteger options, - required objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.enumerateAttributesInRange:options:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_1kok4b( - _$$ref.pointer, - _sel_enumerateAttributesInRange_options_usingBlock_, - enumerationRange, - options, - _$$ref$1.pointer, - ); - } - - /// initWithAttributedString: - objc.NSAttributedString initWithAttributedString( - objc.NSAttributedString attrStr, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = attrStr.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithAttributedString_, - _$$ref$1.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// initWithString: - objc.NSAttributedString initWithString(objc.NSString str) { - final _$$ref = object$.ref; - final _$$ref$1 = str.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithString_, - _$$ref$1.pointer, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// initWithString:attributes: - objc.NSAttributedString initWithString$1( - objc.NSString str, { - objc.NSDictionary? attributes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = str.ref; - final _$$ref$2 = attributes?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithString:attributes:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.retainAndReturnPointer(), - _sel_initWithString_attributes_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// isEqualToAttributedString: - bool isEqualToAttributedString(objc.NSAttributedString other) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.isEqualToAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isEqualToAttributedString_, - _$$ref$1.pointer, - ); - } - - /// length - DartNSUInteger get length { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.length', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_length); - } -} - -/// NSExtendedCoder -extension NSExtendedCoder on objc.NSCoder { - /// allowedClasses - objc.NSSet? get allowedClasses { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.allowedClasses', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allowedClasses); - return $ret.address == 0 - ? null - : objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// allowsKeyedCoding - bool get allowsKeyedCoding { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_allowsKeyedCoding); - } - - /// containsValueForKey: - bool containsValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_containsValueForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeArrayOfObjCType:count:at: - void decodeArrayOfObjCType( - ffi.Pointer itemType, { - required DartNSUInteger count, - required ffi.Pointer at, - }) { - final _$$ref = object$.ref; - _objc_msgSend_1lwwnes( - _$$ref.pointer, - _sel_decodeArrayOfObjCType_count_at_, - itemType, - count, - at, - ); - } - - /// decodeArrayOfObjectsOfClass:forKey: - objc.NSArray? decodeArrayOfObjectsOfClass( - objc.ObjCObject cls, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = cls.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeArrayOfObjectsOfClass:forKey:', - iOS: (false, (14, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_decodeArrayOfObjectsOfClass_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// decodeArrayOfObjectsOfClasses:forKey: - objc.NSArray? decodeArrayOfObjectsOfClasses( - objc.NSSet classes, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = classes.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeArrayOfObjectsOfClasses:forKey:', - iOS: (false, (14, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_decodeArrayOfObjectsOfClasses_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// decodeBoolForKey: - bool decodeBoolForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_decodeBoolForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeBytesForKey:minimumLength: - ffi.Pointer decodeBytesForKey( - objc.NSString key, { - required DartNSUInteger minimumLength, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeBytesForKey:minimumLength:', - iOS: (false, (18, 4, 0)), - macOS: (false, (15, 4, 0)), - ); - return _objc_msgSend_nk32k5( - _$$ref.pointer, - _sel_decodeBytesForKey_minimumLength_, - _$$ref$1.pointer, - minimumLength, - ); - } - - /// decodeBytesForKey:returnedLength: - ffi.Pointer decodeBytesForKey$1( - objc.NSString key, { - required ffi.Pointer returnedLength, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_1pvm3yv( - _$$ref.pointer, - _sel_decodeBytesForKey_returnedLength_, - _$$ref$1.pointer, - returnedLength, - ); - } - - /// decodeBytesWithMinimumLength: - ffi.Pointer decodeBytesWithMinimumLength(DartNSUInteger length) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeBytesWithMinimumLength:', - iOS: (false, (18, 4, 0)), - macOS: (false, (15, 4, 0)), - ); - return _objc_msgSend_16bn854( - _$$ref.pointer, - _sel_decodeBytesWithMinimumLength_, - length, - ); - } - - /// decodeBytesWithReturnedLength: - ffi.Pointer decodeBytesWithReturnedLength( - ffi.Pointer lengthp, - ) { - final _$$ref = object$.ref; - return _objc_msgSend_2p9qiq( - _$$ref.pointer, - _sel_decodeBytesWithReturnedLength_, - lengthp, - ); - } - - /// decodeDictionaryWithKeysOfClass:objectsOfClass:forKey: - objc.NSDictionary? decodeDictionaryWithKeysOfClass( - objc.ObjCObject keyCls, { - required objc.ObjCObject objectsOfClass, - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = keyCls.ref; - final _$$ref$2 = objectsOfClass.ref; - final _$$ref$3 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:', - iOS: (false, (14, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - final $ret = _objc_msgSend_11spmsz( - _$$ref.pointer, - _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey: - objc.NSDictionary? decodeDictionaryWithKeysOfClasses( - objc.NSSet keyClasses, { - required objc.NSSet objectsOfClasses, - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = keyClasses.ref; - final _$$ref$2 = objectsOfClasses.ref; - final _$$ref$3 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:', - iOS: (false, (14, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - final $ret = _objc_msgSend_11spmsz( - _$$ref.pointer, - _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// decodeDoubleForKey: - double decodeDoubleForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return objc.useMsgSendVariants - ? _objc_msgSend_mabicuFpret( - _$$ref.pointer, - _sel_decodeDoubleForKey_, - _$$ref$1.pointer, - ) - : _objc_msgSend_mabicu( - _$$ref.pointer, - _sel_decodeDoubleForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeFloatForKey: - double decodeFloatForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return objc.useMsgSendVariants - ? _objc_msgSend_g4ia9xFpret( - _$$ref.pointer, - _sel_decodeFloatForKey_, - _$$ref$1.pointer, - ) - : _objc_msgSend_g4ia9x( - _$$ref.pointer, - _sel_decodeFloatForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeInt32ForKey: - int decodeInt32ForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_fd28sq( - _$$ref.pointer, - _sel_decodeInt32ForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeInt64ForKey: - int decodeInt64ForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_1oj5o8z( - _$$ref.pointer, - _sel_decodeInt64ForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeIntForKey: - int decodeIntForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - return _objc_msgSend_hws22w( - _$$ref.pointer, - _sel_decodeIntForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeIntegerForKey: - DartNSInteger decodeIntegerForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeIntegerForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1r6ymhb( - _$$ref.pointer, - _sel_decodeIntegerForKey_, - _$$ref$1.pointer, - ); - } - - /// decodeObject - objc.ObjCObject? decodeObject() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodeObject); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodeObjectForKey: - objc.ObjCObject? decodeObjectForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_decodeObjectForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodeObjectOfClass:forKey: - objc.ObjCObject? decodeObjectOfClass( - objc.ObjCObject aClass, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = aClass.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeObjectOfClass:forKey:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_decodeObjectOfClass_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodeObjectOfClasses:forKey: - objc.ObjCObject? decodeObjectOfClasses( - objc.NSSet? classes, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = classes?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeObjectOfClasses:forKey:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_decodeObjectOfClasses_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodePropertyList - objc.ObjCObject? decodePropertyList() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodePropertyList); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodePropertyListForKey: - objc.ObjCObject? decodePropertyListForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodePropertyListForKey:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_decodePropertyListForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// decodeTopLevelObjectAndReturnError: - objc.ObjCObject? decodeTopLevelObjectAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeTopLevelObjectAndReturnError:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1w05pgk( - _$$ref.pointer, - _sel_decodeTopLevelObjectAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decodeTopLevelObjectForKey:error: - objc.ObjCObject? decodeTopLevelObjectForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeTopLevelObjectForKey:error:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.pointer, - _sel_decodeTopLevelObjectForKey_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decodeTopLevelObjectOfClass:forKey:error: - objc.ObjCObject? decodeTopLevelObjectOfClass( - objc.ObjCObject aClass, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = aClass.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeTopLevelObjectOfClass:forKey:error:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _$$ref.pointer, - _sel_decodeTopLevelObjectOfClass_forKey_error_, - _$$ref$1.pointer, - _$$ref$2.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decodeTopLevelObjectOfClasses:forKey:error: - objc.ObjCObject? decodeTopLevelObjectOfClasses( - objc.NSSet? classes, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = classes?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeTopLevelObjectOfClasses:forKey:error:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _$$ref.pointer, - _sel_decodeTopLevelObjectOfClasses_forKey_error_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decodeValuesOfObjCTypes: - void decodeValuesOfObjCTypes(ffi.Pointer types) { - final _$$ref = object$.ref; - _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_decodeValuesOfObjCTypes_, types); - } - - /// decodingFailurePolicy - objc.NSDecodingFailurePolicy get decodingFailurePolicy { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodingFailurePolicy', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $ret = _objc_msgSend_dgx62p( - _$$ref.pointer, - _sel_decodingFailurePolicy, - ); - return objc.NSDecodingFailurePolicy.fromValue($ret); - } - - /// encodeArrayOfObjCType:count:at: - void encodeArrayOfObjCType( - ffi.Pointer type, { - required DartNSUInteger count, - required ffi.Pointer at, - }) { - final _$$ref = object$.ref; - _objc_msgSend_1lwwnes( - _$$ref.pointer, - _sel_encodeArrayOfObjCType_count_at_, - type, - count, - at, - ); - } - - /// encodeBool:forKey: - void encodeBool(bool value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_hk7n97( - _$$ref.pointer, - _sel_encodeBool_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeBycopyObject: - void encodeBycopyObject(objc.ObjCObject? anObject) { - final _$$ref = object$.ref; - final _$$ref$1 = anObject?.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_encodeBycopyObject_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// encodeByrefObject: - void encodeByrefObject(objc.ObjCObject? anObject) { - final _$$ref = object$.ref; - final _$$ref$1 = anObject?.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_encodeByrefObject_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// encodeBytes:length: - void encodeBytes( - ffi.Pointer byteaddr, { - required DartNSUInteger length, - }) { - final _$$ref = object$.ref; - _objc_msgSend_zuf90e( - _$$ref.pointer, - _sel_encodeBytes_length_, - byteaddr, - length, - ); - } - - /// encodeBytes:length:forKey: - void encodeBytes$1( - ffi.Pointer bytes, { - required DartNSUInteger length, - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_18flwjr( - _$$ref.pointer, - _sel_encodeBytes_length_forKey_, - bytes, - length, - _$$ref$1.pointer, - ); - } - - /// encodeConditionalObject: - void encodeConditionalObject(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_encodeConditionalObject_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// encodeConditionalObject:forKey: - void encodeConditionalObject$1( - objc.ObjCObject? object, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - final _$$ref$2 = forKey.ref; - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_encodeConditionalObject_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// encodeDouble:forKey: - void encodeDouble(double value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_130mcug( - _$$ref.pointer, - _sel_encodeDouble_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeFloat:forKey: - void encodeFloat(double value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_quo6mj( - _$$ref.pointer, - _sel_encodeFloat_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeInt32:forKey: - void encodeInt32(int value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_lof6g0( - _$$ref.pointer, - _sel_encodeInt32_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeInt64:forKey: - void encodeInt64(int value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_mpxix1( - _$$ref.pointer, - _sel_encodeInt64_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeInt:forKey: - void encodeInt(int value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_d8c3m2( - _$$ref.pointer, - _sel_encodeInt_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeInteger:forKey: - void encodeInteger(DartNSInteger value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - objc.checkOsVersionInternal( - 'NSCoder.encodeInteger:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_1kva9v1( - _$$ref.pointer, - _sel_encodeInteger_forKey_, - value, - _$$ref$1.pointer, - ); - } - - /// encodeObject: - void encodeObject(objc.ObjCObject? object) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_encodeObject_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// encodeObject:forKey: - void encodeObject$1( - objc.ObjCObject? object, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = object?.ref; - final _$$ref$2 = forKey.ref; - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_encodeObject_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// encodePropertyList: - void encodePropertyList(objc.ObjCObject aPropertyList) { - final _$$ref = object$.ref; - final _$$ref$1 = aPropertyList.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_encodePropertyList_, - _$$ref$1.pointer, - ); - } - - /// encodeRootObject: - void encodeRootObject(objc.ObjCObject rootObject) { - final _$$ref = object$.ref; - final _$$ref$1 = rootObject.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_encodeRootObject_, - _$$ref$1.pointer, - ); - } - - /// encodeValuesOfObjCTypes: - void encodeValuesOfObjCTypes(ffi.Pointer types) { - final _$$ref = object$.ref; - _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_encodeValuesOfObjCTypes_, types); - } - - /// error - objc.NSError? get error { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.error', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_error); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } - - /// failWithError: - void failWithError(objc.NSError error) { - final _$$ref = object$.ref; - final _$$ref$1 = error.ref; - objc.checkOsVersionInternal( - 'NSCoder.failWithError:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_failWithError_, _$$ref$1.pointer); - } - - /// objectZone - ffi.Pointer objectZone() { - final _$$ref = object$.ref; - return _objc_msgSend_sz90oi(_$$ref.pointer, _sel_objectZone); - } - - /// requiresSecureCoding - bool get requiresSecureCoding { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.requiresSecureCoding', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_requiresSecureCoding); - } - - /// setObjectZone: - void setObjectZone(ffi.Pointer zone) { - final _$$ref = object$.ref; - _objc_msgSend_1lonves(_$$ref.pointer, _sel_setObjectZone_, zone); - } - - /// systemVersion - int get systemVersion { - final _$$ref = object$.ref; - return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_systemVersion); - } -} - -/// NSExtendedLocale -extension NSExtendedLocale on objc.NSLocale { - /// alternateQuotationBeginDelimiter - objc.NSString get alternateQuotationBeginDelimiter { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.alternateQuotationBeginDelimiter', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_alternateQuotationBeginDelimiter, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// alternateQuotationEndDelimiter - objc.NSString get alternateQuotationEndDelimiter { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.alternateQuotationEndDelimiter', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_alternateQuotationEndDelimiter, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// calendarIdentifier - objc.NSString get calendarIdentifier { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.calendarIdentifier', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_calendarIdentifier); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// collationIdentifier - objc.NSString? get collationIdentifier { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.collationIdentifier', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_collationIdentifier, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// collatorIdentifier - objc.NSString get collatorIdentifier { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.collatorIdentifier', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_collatorIdentifier); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// countryCode - @Deprecated('Deprecated') - objc.NSString? get countryCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.countryCode', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_countryCode); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// currencyCode - objc.NSString? get currencyCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.currencyCode', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currencyCode); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// currencySymbol - objc.NSString get currencySymbol { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.currencySymbol', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currencySymbol); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// decimalSeparator - objc.NSString get decimalSeparator { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.decimalSeparator', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decimalSeparator); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// exemplarCharacterSet - objc.NSCharacterSet get exemplarCharacterSet { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.exemplarCharacterSet', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_exemplarCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// groupingSeparator - objc.NSString get groupingSeparator { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.groupingSeparator', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_groupingSeparator); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// languageCode - objc.NSString get languageCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.languageCode', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_languageCode); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// languageIdentifier - objc.NSString get languageIdentifier { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.languageIdentifier', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_languageIdentifier); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localeIdentifier - objc.NSString get localeIdentifier { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_localeIdentifier); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForCalendarIdentifier: - objc.NSString? localizedStringForCalendarIdentifier( - objc.NSString calendarIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = calendarIdentifier.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForCalendarIdentifier:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_localizedStringForCalendarIdentifier_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForCollationIdentifier: - objc.NSString? localizedStringForCollationIdentifier( - objc.NSString collationIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = collationIdentifier.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForCollationIdentifier:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_localizedStringForCollationIdentifier_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForCollatorIdentifier: - objc.NSString? localizedStringForCollatorIdentifier( - objc.NSString collatorIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = collatorIdentifier.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForCollatorIdentifier:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_localizedStringForCollatorIdentifier_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForCountryCode: - objc.NSString? localizedStringForCountryCode(objc.NSString countryCode) { - final _$$ref = object$.ref; - final _$$ref$1 = countryCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForCountryCode:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_localizedStringForCountryCode_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForCurrencyCode: - objc.NSString? localizedStringForCurrencyCode(objc.NSString currencyCode) { - final _$$ref = object$.ref; - final _$$ref$1 = currencyCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForCurrencyCode:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_localizedStringForCurrencyCode_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForLanguageCode: - objc.NSString? localizedStringForLanguageCode(objc.NSString languageCode) { - final _$$ref = object$.ref; - final _$$ref$1 = languageCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForLanguageCode:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_localizedStringForLanguageCode_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForLocaleIdentifier: - objc.NSString localizedStringForLocaleIdentifier( - objc.NSString localeIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = localeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForLocaleIdentifier:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_localizedStringForLocaleIdentifier_, - _$$ref$1.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForScriptCode: - objc.NSString? localizedStringForScriptCode(objc.NSString scriptCode) { - final _$$ref = object$.ref; - final _$$ref$1 = scriptCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForScriptCode:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_localizedStringForScriptCode_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localizedStringForVariantCode: - objc.NSString? localizedStringForVariantCode(objc.NSString variantCode) { - final _$$ref = object$.ref; - final _$$ref$1 = variantCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.localizedStringForVariantCode:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_localizedStringForVariantCode_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// quotationBeginDelimiter - objc.NSString get quotationBeginDelimiter { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.quotationBeginDelimiter', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_quotationBeginDelimiter, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// quotationEndDelimiter - objc.NSString get quotationEndDelimiter { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.quotationEndDelimiter', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_quotationEndDelimiter, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// regionCode - objc.NSString? get regionCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.regionCode', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_regionCode); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// scriptCode - objc.NSString? get scriptCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.scriptCode', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_scriptCode); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// usesMetricSystem - bool get usesMetricSystem { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.usesMetricSystem', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_usesMetricSystem); - } - - /// variantCode - objc.NSString? get variantCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSLocale.variantCode', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_variantCode); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// NSExtendedMutableAttributedString -extension NSExtendedMutableAttributedString on NSMutableAttributedString { - /// addAttribute:value:range: - void addAttribute( - DartNSAttributedStringKey name, { - required objc.ObjCObject value, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = name.ref; - final _$$ref$2 = value.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.addAttribute:value:range:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_6h5ewf( - _$$ref.pointer, - _sel_addAttribute_value_range_, - _$$ref$1.pointer, - _$$ref$2.pointer, - range, - ); - } - - /// addAttributes:range: - void addAttributes(objc.NSDictionary attrs, {required NSRange range}) { - final _$$ref = object$.ref; - final _$$ref$1 = attrs.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.addAttributes:range:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1oteutl( - _$$ref.pointer, - _sel_addAttributes_range_, - _$$ref$1.pointer, - range, - ); - } - - /// appendAttributedString: - void appendAttributedString(objc.NSAttributedString attrString) { - final _$$ref = object$.ref; - final _$$ref$1 = attrString.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.appendAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_appendAttributedString_, - _$$ref$1.pointer, - ); - } - - /// beginEditing - void beginEditing() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.beginEditing', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_beginEditing); - } - - /// deleteCharactersInRange: - void deleteCharactersInRange(NSRange range) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.deleteCharactersInRange:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_deleteCharactersInRange_, range); - } - - /// endEditing - void endEditing() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.endEditing', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_endEditing); - } - - /// insertAttributedString:atIndex: - void insertAttributedString( - objc.NSAttributedString attrString, { - required DartNSUInteger atIndex, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = attrString.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.insertAttributedString:atIndex:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_djsa9o( - _$$ref.pointer, - _sel_insertAttributedString_atIndex_, - _$$ref$1.pointer, - atIndex, - ); - } - - /// mutableString - objc.NSMutableString get mutableString { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.mutableString', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_mutableString); - return objc.NSMutableString.fromPointer($ret, retain: true, release: true); - } - - /// removeAttribute:range: - void removeAttribute( - DartNSAttributedStringKey name, { - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = name.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.removeAttribute:range:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1oteutl( - _$$ref.pointer, - _sel_removeAttribute_range_, - _$$ref$1.pointer, - range, - ); - } - - /// replaceCharactersInRange:withAttributedString: - void replaceCharactersInRange( - NSRange range, { - required objc.NSAttributedString withAttributedString, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withAttributedString.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.replaceCharactersInRange:withAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1tv4uax( - _$$ref.pointer, - _sel_replaceCharactersInRange_withAttributedString_, - range, - _$$ref$1.pointer, - ); - } - - /// setAttributedString: - void setAttributedString(objc.NSAttributedString attrString) { - final _$$ref = object$.ref; - final _$$ref$1 = attrString.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.setAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setAttributedString_, - _$$ref$1.pointer, - ); - } -} - -/// NSExtendedScanner -extension NSExtendedScanner on NSScanner { - /// isAtEnd - bool get isAtEnd { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isAtEnd); - } - - /// scanCharactersFromSet:intoString: - bool scanCharactersFromSet( - objc.NSCharacterSet set, { - required ffi.Pointer> intoString, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - return _objc_msgSend_l9p60w( - _$$ref.pointer, - _sel_scanCharactersFromSet_intoString_, - _$$ref$1.pointer, - intoString, - ); - } - - /// scanDouble: - bool scanDouble(ffi.Pointer result) { - final _$$ref = object$.ref; - return _objc_msgSend_lzroim(_$$ref.pointer, _sel_scanDouble_, result); - } - - /// scanFloat: - bool scanFloat(ffi.Pointer result) { - final _$$ref = object$.ref; - return _objc_msgSend_1kz7g09(_$$ref.pointer, _sel_scanFloat_, result); - } - - /// scanHexDouble: - bool scanHexDouble(ffi.Pointer result) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSScanner.scanHexDouble:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_lzroim(_$$ref.pointer, _sel_scanHexDouble_, result); - } - - /// scanHexFloat: - bool scanHexFloat(ffi.Pointer result) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSScanner.scanHexFloat:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1kz7g09(_$$ref.pointer, _sel_scanHexFloat_, result); - } - - /// scanHexInt: - bool scanHexInt(ffi.Pointer result) { - final _$$ref = object$.ref; - return _objc_msgSend_11a6od8(_$$ref.pointer, _sel_scanHexInt_, result); - } - - /// scanHexLongLong: - bool scanHexLongLong(ffi.Pointer result) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSScanner.scanHexLongLong:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1513vdc(_$$ref.pointer, _sel_scanHexLongLong_, result); - } - - /// scanInt: - bool scanInt(ffi.Pointer result) { - final _$$ref = object$.ref; - return _objc_msgSend_h10lj0(_$$ref.pointer, _sel_scanInt_, result); - } - - /// scanInteger: - bool scanInteger(ffi.Pointer result) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSScanner.scanInteger:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_5bd8xr(_$$ref.pointer, _sel_scanInteger_, result); - } - - /// scanLongLong: - bool scanLongLong(ffi.Pointer result) { - final _$$ref = object$.ref; - return _objc_msgSend_1ea59hv(_$$ref.pointer, _sel_scanLongLong_, result); - } - - /// scanString:intoString: - bool scanString( - objc.NSString string, { - required ffi.Pointer> intoString, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - return _objc_msgSend_l9p60w( - _$$ref.pointer, - _sel_scanString_intoString_, - _$$ref$1.pointer, - intoString, - ); - } - - /// scanUnsignedLongLong: - bool scanUnsignedLongLong(ffi.Pointer result) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSScanner.scanUnsignedLongLong:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_1513vdc( - _$$ref.pointer, - _sel_scanUnsignedLongLong_, - result, - ); - } - - /// scanUpToCharactersFromSet:intoString: - bool scanUpToCharactersFromSet( - objc.NSCharacterSet set, { - required ffi.Pointer> intoString, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - return _objc_msgSend_l9p60w( - _$$ref.pointer, - _sel_scanUpToCharactersFromSet_intoString_, - _$$ref$1.pointer, - intoString, - ); - } - - /// scanUpToString:intoString: - bool scanUpToString( - objc.NSString string, { - required ffi.Pointer> intoString, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - return _objc_msgSend_l9p60w( - _$$ref.pointer, - _sel_scanUpToString_intoString_, - _$$ref$1.pointer, - intoString, - ); - } - - /// localizedScannerWithString: - static objc.ObjCObject localizedScannerWithString(objc.NSString string) { - final _$$ref = string.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSScanner, - _sel_localizedScannerWithString_, - _$$ref.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSExtendedStringPropertyListParsing -extension NSExtendedStringPropertyListParsing on objc.NSString { - /// propertyList - objc.ObjCObject propertyList() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_propertyList); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// propertyListFromStringsFileFormat - objc.NSDictionary? propertyListFromStringsFileFormat() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_propertyListFromStringsFileFormat, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -/// NSExtendedTimeZone -extension NSExtendedTimeZone on NSTimeZone { - /// abbreviation - objc.NSString? get abbreviation { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_abbreviation); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// daylightSavingTimeOffset - DartNSTimeInterval get daylightSavingTimeOffset { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTimeZone.daylightSavingTimeOffset', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - _$$ref.pointer, - _sel_daylightSavingTimeOffset, - ) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_daylightSavingTimeOffset); - } - - /// description - objc.NSString get description$1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_description); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// isDaylightSavingTime - bool get isDaylightSavingTime { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isDaylightSavingTime); - } - - /// isEqualToTimeZone: - bool isEqualToTimeZone(NSTimeZone aTimeZone) { - final _$$ref = object$.ref; - final _$$ref$1 = aTimeZone.ref; - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isEqualToTimeZone_, - _$$ref$1.pointer, - ); - } - - /// localizedName:locale: - objc.NSString? localizedName( - NSTimeZoneNameStyle style, { - objc.NSLocale? locale, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = locale?.ref; - objc.checkOsVersionInternal( - 'NSTimeZone.localizedName:locale:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_1xmmt6t( - _$$ref.pointer, - _sel_localizedName_locale_, - style.value, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// nextDaylightSavingTimeTransition - objc.NSDate? get nextDaylightSavingTimeTransition { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTimeZone.nextDaylightSavingTimeTransition', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_nextDaylightSavingTimeTransition, - ); - return $ret.address == 0 - ? null - : objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// secondsFromGMT - DartNSInteger get secondsFromGMT { - final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_secondsFromGMT); - } - - /// abbreviationDictionary - static objc.NSDictionary getAbbreviationDictionary() { - objc.checkOsVersionInternal( - 'NSTimeZone.abbreviationDictionary', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSTimeZone, - _sel_abbreviationDictionary, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// defaultTimeZone - static NSTimeZone getDefaultTimeZone() { - final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_defaultTimeZone); - return NSTimeZone.fromPointer($ret, retain: true, release: true); - } - - /// knownTimeZoneNames - static objc.NSArray getKnownTimeZoneNames() { - final $ret = _objc_msgSend_151sglz( - _class_NSTimeZone, - _sel_knownTimeZoneNames, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// localTimeZone - static NSTimeZone getLocalTimeZone() { - final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_localTimeZone); - return NSTimeZone.fromPointer($ret, retain: true, release: true); - } - - /// resetSystemTimeZone - static void resetSystemTimeZone() { - _objc_msgSend_1pl9qdv(_class_NSTimeZone, _sel_resetSystemTimeZone); - } - - /// setAbbreviationDictionary: - static void setAbbreviationDictionary(objc.NSDictionary value) { - final _$$ref = value.ref; - objc.checkOsVersionInternal( - 'NSTimeZone.setAbbreviationDictionary:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_xtuoz7( - _class_NSTimeZone, - _sel_setAbbreviationDictionary_, - _$$ref.pointer, - ); - } - - /// setDefaultTimeZone: - static void setDefaultTimeZone(NSTimeZone value) { - final _$$ref = value.ref; - _objc_msgSend_xtuoz7( - _class_NSTimeZone, - _sel_setDefaultTimeZone_, - _$$ref.pointer, - ); - } - - /// systemTimeZone - static NSTimeZone getSystemTimeZone() { - final $ret = _objc_msgSend_151sglz(_class_NSTimeZone, _sel_systemTimeZone); - return NSTimeZone.fromPointer($ret, retain: true, release: true); - } - - /// timeZoneDataVersion - static objc.NSString getTimeZoneDataVersion() { - objc.checkOsVersionInternal( - 'NSTimeZone.timeZoneDataVersion', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSTimeZone, - _sel_timeZoneDataVersion, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSExtensionContext is a stub. To generate bindings for this class, include -/// NSExtensionContext in your config's objc-interfaces list. -/// -/// NSExtensionContext -extension type NSExtensionContext._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSExtensionContext] that points to the same underlying object as [other]. - NSExtensionContext.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSExtensionContext', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } - - /// Constructs a [NSExtensionContext] that wraps the given raw object pointer. - NSExtensionContext.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSExtensionContext', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } -} - -/// NSExtensionRequestHandling -extension type NSExtensionRequestHandling._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSExtensionRequestHandling] that points to the same underlying object as [other]. - NSExtensionRequestHandling.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSExtensionRequestHandling] that wraps the given raw object pointer. - NSExtensionRequestHandling.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSExtensionRequestHandling]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSExtensionRequestHandling, - ); - } -} - -extension NSExtensionRequestHandling$Methods on NSExtensionRequestHandling { - /// beginRequestWithExtensionContext: - void beginRequestWithExtensionContext(NSExtensionContext context) { - final _$$ref = object$.ref; - final _$$ref$1 = context.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_beginRequestWithExtensionContext_, - _$$ref$1.pointer, - ); - } -} - -interface class NSExtensionRequestHandling$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSExtensionRequestHandling.cast()); - - /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSExtensionRequestHandling implement({ - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSExtensionRequestHandling', - ); - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implement(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - return NSExtensionRequestHandling.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implement(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSExtensionRequestHandling implementAsListener({ - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSExtensionRequestHandling', - ); - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implementAsListener(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - return NSExtensionRequestHandling.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implementAsListener(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSExtensionRequestHandling protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSExtensionRequestHandling implementAsBlocking({ - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSExtensionRequestHandling', - ); - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implementAsBlocking(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - return NSExtensionRequestHandling.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSExtensionRequestHandling protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(NSExtensionContext) - beginRequestWithExtensionContext_, - bool $keepIsolateAlive = true, - }) { - NSExtensionRequestHandling$Builder.beginRequestWithExtensionContext_ - .implementAsBlocking(builder, beginRequestWithExtensionContext_); - builder.addProtocol($protocol); - } - - /// beginRequestWithExtensionContext: - static final beginRequestWithExtensionContext_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSExtensionRequestHandling, - _sel_beginRequestWithExtensionContext_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSExtensionRequestHandling, - _sel_beginRequestWithExtensionContext_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSExtensionContext) func) => - ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.fromFunction( - (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), - ), - (void Function(NSExtensionContext) func) => - ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.listener( - (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), - ), - (void Function(NSExtensionContext) func) => - ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext.blocking( - (ffi.Pointer _, NSExtensionContext arg1) => func(arg1), - ), - ); -} - -const int NSFeatureUnsupportedError = 3328; - -typedef NSFileAttributeKey = ffi.Pointer; -typedef DartNSFileAttributeKey = objc.NSString; -typedef NSFileAttributeType = ffi.Pointer; -typedef DartNSFileAttributeType = objc.NSString; - -/// NSFileAttributes -extension NSFileAttributes on objc.NSDictionary { - /// fileCreationDate - objc.NSDate? fileCreationDate() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileCreationDate); - return $ret.address == 0 - ? null - : objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// fileExtensionHidden - bool fileExtensionHidden() { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileExtensionHidden); - } - - /// fileGroupOwnerAccountID - objc.NSNumber? fileGroupOwnerAccountID() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_fileGroupOwnerAccountID, - ); - return $ret.address == 0 - ? null - : objc.NSNumber.fromPointer($ret, retain: true, release: true); - } - - /// fileGroupOwnerAccountName - objc.NSString? fileGroupOwnerAccountName() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_fileGroupOwnerAccountName, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// fileHFSCreatorCode - DartUInt32 fileHFSCreatorCode() { - final _$$ref = object$.ref; - return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_fileHFSCreatorCode); - } - - /// fileHFSTypeCode - DartUInt32 fileHFSTypeCode() { - final _$$ref = object$.ref; - return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_fileHFSTypeCode); - } - - /// fileIsAppendOnly - bool fileIsAppendOnly() { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileIsAppendOnly); - } - - /// fileIsImmutable - bool fileIsImmutable() { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_fileIsImmutable); - } - - /// fileModificationDate - objc.NSDate? fileModificationDate() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_fileModificationDate, - ); - return $ret.address == 0 - ? null - : objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// fileOwnerAccountID - objc.NSNumber? fileOwnerAccountID() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileOwnerAccountID); - return $ret.address == 0 - ? null - : objc.NSNumber.fromPointer($ret, retain: true, release: true); - } - - /// fileOwnerAccountName - objc.NSString? fileOwnerAccountName() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_fileOwnerAccountName, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// filePosixPermissions - DartNSUInteger filePosixPermissions() { - final _$$ref = object$.ref; - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_filePosixPermissions); - } - - /// fileSize - int fileSize() { - final _$$ref = object$.ref; - return _objc_msgSend_1p4gbjy(_$$ref.pointer, _sel_fileSize); - } - - /// fileSystemFileNumber - DartNSUInteger fileSystemFileNumber() { - final _$$ref = object$.ref; - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_fileSystemFileNumber); - } - - /// fileSystemNumber - DartNSInteger fileSystemNumber() { - final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_fileSystemNumber); - } - - /// fileType - objc.NSString? fileType() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fileType); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -sealed class NSFileCoordinatorReadingOptions { - static const NSFileCoordinatorReadingWithoutChanges = 1; - static const NSFileCoordinatorReadingResolvesSymbolicLink = 2; - static const NSFileCoordinatorReadingImmediatelyAvailableMetadataOnly = 4; - static const NSFileCoordinatorReadingForUploading = 8; -} - -sealed class NSFileCoordinatorWritingOptions { - static const NSFileCoordinatorWritingForDeleting = 1; - static const NSFileCoordinatorWritingForMoving = 2; - static const NSFileCoordinatorWritingForMerging = 4; - static const NSFileCoordinatorWritingForReplacing = 8; - static const NSFileCoordinatorWritingContentIndependentMetadataOnly = 16; -} - -const int NSFileErrorMaximum = 1023; - -const int NSFileErrorMinimum = 0; - -/// WARNING: NSFileHandle is a stub. To generate bindings for this class, include -/// NSFileHandle in your config's objc-interfaces list. -/// -/// NSFileHandle -extension type NSFileHandle._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [NSFileHandle] that points to the same underlying object as [other]. - NSFileHandle.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSFileHandle] that wraps the given raw object pointer. - NSFileHandle.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSFileHandleAsynchronousAccess -extension NSFileHandleAsynchronousAccess on NSFileHandle { - /// acceptConnectionInBackgroundAndNotify - void acceptConnectionInBackgroundAndNotify() { - final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv( - _$$ref.pointer, - _sel_acceptConnectionInBackgroundAndNotify, - ); - } - - /// acceptConnectionInBackgroundAndNotifyForModes: - void acceptConnectionInBackgroundAndNotifyForModes(objc.NSArray? modes) { - final _$$ref = object$.ref; - final _$$ref$1 = modes?.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_acceptConnectionInBackgroundAndNotifyForModes_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// readInBackgroundAndNotify - void readInBackgroundAndNotify() { - final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_readInBackgroundAndNotify); - } - - /// readInBackgroundAndNotifyForModes: - void readInBackgroundAndNotifyForModes(objc.NSArray? modes) { - final _$$ref = object$.ref; - final _$$ref$1 = modes?.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_readInBackgroundAndNotifyForModes_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// readToEndOfFileInBackgroundAndNotify - void readToEndOfFileInBackgroundAndNotify() { - final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv( - _$$ref.pointer, - _sel_readToEndOfFileInBackgroundAndNotify, - ); - } - - /// readToEndOfFileInBackgroundAndNotifyForModes: - void readToEndOfFileInBackgroundAndNotifyForModes(objc.NSArray? modes) { - final _$$ref = object$.ref; - final _$$ref$1 = modes?.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_readToEndOfFileInBackgroundAndNotifyForModes_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// readabilityHandler - objc.ObjCBlock? get readabilityHandler { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFileHandle.readabilityHandler', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_readabilityHandler); - return $ret.address == 0 - ? null - : ObjCBlock_ffiVoid_NSFileHandle.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// setReadabilityHandler: - set readabilityHandler( - objc.ObjCBlock? value, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSFileHandle.setReadabilityHandler:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_f167m6( - _$$ref.pointer, - _sel_setReadabilityHandler_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setWriteabilityHandler: - set writeabilityHandler( - objc.ObjCBlock? value, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSFileHandle.setWriteabilityHandler:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_f167m6( - _$$ref.pointer, - _sel_setWriteabilityHandler_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// waitForDataInBackgroundAndNotify - void waitForDataInBackgroundAndNotify() { - final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv( - _$$ref.pointer, - _sel_waitForDataInBackgroundAndNotify, - ); - } - - /// waitForDataInBackgroundAndNotifyForModes: - void waitForDataInBackgroundAndNotifyForModes(objc.NSArray? modes) { - final _$$ref = object$.ref; - final _$$ref$1 = modes?.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_waitForDataInBackgroundAndNotifyForModes_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// writeabilityHandler - objc.ObjCBlock? get writeabilityHandler { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFileHandle.writeabilityHandler', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_writeabilityHandler); - return $ret.address == 0 - ? null - : ObjCBlock_ffiVoid_NSFileHandle.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSFileHandleCreation -extension NSFileHandleCreation on NSFileHandle { - /// fileHandleWithNullDevice - static NSFileHandle getFileHandleWithNullDevice() { - final $ret = _objc_msgSend_151sglz( - _class_NSFileHandle, - _sel_fileHandleWithNullDevice, - ); - return NSFileHandle.fromPointer($ret, retain: true, release: true); - } - - /// fileHandleWithStandardError - static NSFileHandle getFileHandleWithStandardError() { - final $ret = _objc_msgSend_151sglz( - _class_NSFileHandle, - _sel_fileHandleWithStandardError, - ); - return NSFileHandle.fromPointer($ret, retain: true, release: true); - } - - /// fileHandleWithStandardInput - static NSFileHandle getFileHandleWithStandardInput() { - final $ret = _objc_msgSend_151sglz( - _class_NSFileHandle, - _sel_fileHandleWithStandardInput, - ); - return NSFileHandle.fromPointer($ret, retain: true, release: true); - } - - /// fileHandleWithStandardOutput - static NSFileHandle getFileHandleWithStandardOutput() { - final $ret = _objc_msgSend_151sglz( - _class_NSFileHandle, - _sel_fileHandleWithStandardOutput, - ); - return NSFileHandle.fromPointer($ret, retain: true, release: true); - } -} - -/// NSFileHandlePlatformSpecific -extension NSFileHandlePlatformSpecific on NSFileHandle { - /// fileDescriptor - int get fileDescriptor { - final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_fileDescriptor); - } -} - -const int NSFileLockingError = 255; - -/// WARNING: NSFileManager is a stub. To generate bindings for this class, include -/// NSFileManager in your config's objc-interfaces list. -/// -/// NSFileManager -extension type NSFileManager._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSFileManager] that points to the same underlying object as [other]. - NSFileManager.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSFileManager] that wraps the given raw object pointer. - NSFileManager.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSFileManagerDelegate -extension type NSFileManagerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSFileManagerDelegate] that points to the same underlying object as [other]. - NSFileManagerDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSFileManagerDelegate] that wraps the given raw object pointer. - NSFileManagerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSFileManagerDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSFileManagerDelegate, - ); - } -} - -extension NSFileManagerDelegate$Methods on NSFileManagerDelegate { - /// fileManager:shouldCopyItemAtPath:toPath: - bool fileManager( - NSFileManager fileManager, { - required objc.NSString shouldCopyItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldCopyItemAtPath.ref; - final _$$ref$3 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldCopyItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldCopyItemAtPath:toPath:', - ); - } - return _objc_msgSend_gtxojt( - _$$ref.pointer, - _sel_fileManager_shouldCopyItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldCopyItemAtURL:toURL: - bool fileManager$1( - NSFileManager fileManager, { - required objc.NSURL shouldCopyItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldCopyItemAtURL.ref; - final _$$ref$3 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldCopyItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldCopyItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldCopyItemAtURL:toURL:', - ); - } - return _objc_msgSend_gtxojt( - _$$ref.pointer, - _sel_fileManager_shouldCopyItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldLinkItemAtPath:toPath: - bool fileManager$2( - NSFileManager fileManager, { - required objc.NSString shouldLinkItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldLinkItemAtPath.ref; - final _$$ref$3 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldLinkItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldLinkItemAtPath:toPath:', - ); - } - return _objc_msgSend_gtxojt( - _$$ref.pointer, - _sel_fileManager_shouldLinkItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldLinkItemAtURL:toURL: - bool fileManager$3( - NSFileManager fileManager, { - required objc.NSURL shouldLinkItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldLinkItemAtURL.ref; - final _$$ref$3 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldLinkItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldLinkItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldLinkItemAtURL:toURL:', - ); - } - return _objc_msgSend_gtxojt( - _$$ref.pointer, - _sel_fileManager_shouldLinkItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldMoveItemAtPath:toPath: - bool fileManager$4( - NSFileManager fileManager, { - required objc.NSString shouldMoveItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldMoveItemAtPath.ref; - final _$$ref$3 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldMoveItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldMoveItemAtPath:toPath:', - ); - } - return _objc_msgSend_gtxojt( - _$$ref.pointer, - _sel_fileManager_shouldMoveItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldMoveItemAtURL:toURL: - bool fileManager$5( - NSFileManager fileManager, { - required objc.NSURL shouldMoveItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldMoveItemAtURL.ref; - final _$$ref$3 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldMoveItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldMoveItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldMoveItemAtURL:toURL:', - ); - } - return _objc_msgSend_gtxojt( - _$$ref.pointer, - _sel_fileManager_shouldMoveItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: - bool fileManager$6( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSString copyingItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = copyingItemAtPath.ref; - final _$$ref$4 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:', - ); - } - return _objc_msgSend_h42mdr( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:copyingItemAtURL:toURL: - bool fileManager$7( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSURL copyingItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = copyingItemAtURL.ref; - final _$$ref$4 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:', - ); - } - return _objc_msgSend_h42mdr( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: - bool fileManager$8( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSString linkingItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = linkingItemAtPath.ref; - final _$$ref$4 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:', - ); - } - return _objc_msgSend_h42mdr( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:linkingItemAtURL:toURL: - bool fileManager$9( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSURL linkingItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = linkingItemAtURL.ref; - final _$$ref$4 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:', - ); - } - return _objc_msgSend_h42mdr( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:movingItemAtPath:toPath: - bool fileManager$10( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSString movingItemAtPath, - required objc.NSString toPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = movingItemAtPath.ref; - final _$$ref$4 = toPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:movingItemAtPath:toPath:', - ); - } - return _objc_msgSend_h42mdr( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:movingItemAtURL:toURL: - bool fileManager$11( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSURL movingItemAtURL, - required objc.NSURL toURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = movingItemAtURL.ref; - final _$$ref$4 = toURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:movingItemAtURL:toURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:movingItemAtURL:toURL:', - ); - } - return _objc_msgSend_h42mdr( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:removingItemAtPath: - bool fileManager$12( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSString removingItemAtPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = removingItemAtPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:removingItemAtPath:', - ); - } - return _objc_msgSend_gtxojt( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldProceedAfterError:removingItemAtURL: - bool fileManager$13( - NSFileManager fileManager, { - required objc.NSError shouldProceedAfterError, - required objc.NSURL removingItemAtURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldProceedAfterError.ref; - final _$$ref$3 = removingItemAtURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldProceedAfterError:removingItemAtURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldProceedAfterError:removingItemAtURL:', - ); - } - return _objc_msgSend_gtxojt( - _$$ref.pointer, - _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// fileManager:shouldRemoveItemAtPath: - bool fileManager$14( - NSFileManager fileManager, { - required objc.NSString shouldRemoveItemAtPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldRemoveItemAtPath.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldRemoveItemAtPath_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldRemoveItemAtPath:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_fileManager_shouldRemoveItemAtPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// fileManager:shouldRemoveItemAtURL: - bool fileManager$15( - NSFileManager fileManager, { - required objc.NSURL shouldRemoveItemAtURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fileManager.ref; - final _$$ref$2 = shouldRemoveItemAtURL.ref; - objc.checkOsVersionInternal( - 'NSFileManagerDelegate.fileManager:shouldRemoveItemAtURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_fileManager_shouldRemoveItemAtURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFileManagerDelegate', - 'fileManager:shouldRemoveItemAtURL:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_fileManager_shouldRemoveItemAtURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSFileManagerDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSFileManagerDelegate.cast()); - - /// Builds an object that implements the NSFileManagerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSFileManagerDelegate implement({ - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldCopyItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldCopyItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldLinkItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldLinkItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldMoveItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldMoveItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString)? - fileManager_shouldProceedAfterError_removingItemAtPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL)? - fileManager_shouldProceedAfterError_removingItemAtURL_, - bool Function(NSFileManager, objc.NSString)? - fileManager_shouldRemoveItemAtPath_, - bool Function(NSFileManager, objc.NSURL)? - fileManager_shouldRemoveItemAtURL_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSFileManagerDelegate', - ); - NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtPath_toPath_ - .implement(builder, fileManager_shouldCopyItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtURL_toURL_ - .implement(builder, fileManager_shouldCopyItemAtURL_toURL_); - NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtPath_toPath_ - .implement(builder, fileManager_shouldLinkItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtURL_toURL_ - .implement(builder, fileManager_shouldLinkItemAtURL_toURL_); - NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtPath_toPath_ - .implement(builder, fileManager_shouldMoveItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtURL_toURL_ - .implement(builder, fileManager_shouldMoveItemAtURL_toURL_); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_removingItemAtPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_removingItemAtPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_removingItemAtURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_removingItemAtURL_, - ); - NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtPath_.implement( - builder, - fileManager_shouldRemoveItemAtPath_, - ); - NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtURL_.implement( - builder, - fileManager_shouldRemoveItemAtURL_, - ); - builder.addProtocol($protocol); - return NSFileManagerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSFileManagerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldCopyItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldCopyItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldLinkItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldLinkItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSString, objc.NSString)? - fileManager_shouldMoveItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSURL, objc.NSURL)? - fileManager_shouldMoveItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString)? - fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)? - fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - bool Function(NSFileManager, objc.NSError, objc.NSString)? - fileManager_shouldProceedAfterError_removingItemAtPath_, - bool Function(NSFileManager, objc.NSError, objc.NSURL)? - fileManager_shouldProceedAfterError_removingItemAtURL_, - bool Function(NSFileManager, objc.NSString)? - fileManager_shouldRemoveItemAtPath_, - bool Function(NSFileManager, objc.NSURL)? - fileManager_shouldRemoveItemAtURL_, - bool $keepIsolateAlive = true, - }) { - NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtPath_toPath_ - .implement(builder, fileManager_shouldCopyItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldCopyItemAtURL_toURL_ - .implement(builder, fileManager_shouldCopyItemAtURL_toURL_); - NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtPath_toPath_ - .implement(builder, fileManager_shouldLinkItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldLinkItemAtURL_toURL_ - .implement(builder, fileManager_shouldLinkItemAtURL_toURL_); - NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtPath_toPath_ - .implement(builder, fileManager_shouldMoveItemAtPath_toPath_); - NSFileManagerDelegate$Builder.fileManager_shouldMoveItemAtURL_toURL_ - .implement(builder, fileManager_shouldMoveItemAtURL_toURL_); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_removingItemAtPath_ - .implement( - builder, - fileManager_shouldProceedAfterError_removingItemAtPath_, - ); - NSFileManagerDelegate$Builder - .fileManager_shouldProceedAfterError_removingItemAtURL_ - .implement( - builder, - fileManager_shouldProceedAfterError_removingItemAtURL_, - ); - NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtPath_.implement( - builder, - fileManager_shouldRemoveItemAtPath_, - ); - NSFileManagerDelegate$Builder.fileManager_shouldRemoveItemAtURL_.implement( - builder, - fileManager_shouldRemoveItemAtURL_, - ); - builder.addProtocol($protocol); - } - - /// fileManager:shouldCopyItemAtPath:toPath: - static final fileManager_shouldCopyItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldCopyItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jk8du5) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldCopyItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldCopyItemAtURL:toURL: - static final fileManager_shouldCopyItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldCopyItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jk8du5) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldCopyItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSURL arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldLinkItemAtPath:toPath: - static final fileManager_shouldLinkItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldLinkItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jk8du5) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldLinkItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldLinkItemAtURL:toURL: - static final fileManager_shouldLinkItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldLinkItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jk8du5) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldLinkItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSURL arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldMoveItemAtPath:toPath: - static final fileManager_shouldMoveItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldMoveItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jk8du5) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldMoveItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSString, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldMoveItemAtURL:toURL: - static final fileManager_shouldMoveItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldMoveItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jk8du5) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldMoveItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSURL, objc.NSURL) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSURL arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: - static final fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1em3l8z) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function( - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - objc.NSString arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:copyingItemAtURL:toURL: - static final fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1em3l8z) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - objc.NSURL arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: - static final fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1em3l8z) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function( - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - objc.NSString arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:linkingItemAtURL:toURL: - static final fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1em3l8z) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - objc.NSURL arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:movingItemAtPath:toPath: - static final fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSString, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1em3l8z) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function( - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - objc.NSString arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:movingItemAtURL:toURL: - static final fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1em3l8z) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_, - isRequired: false, - isInstanceMethod: true, - ), - ( - bool Function(NSFileManager, objc.NSError, objc.NSURL, objc.NSURL) - func, - ) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - objc.NSURL arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// fileManager:shouldProceedAfterError:removingItemAtPath: - static final fileManager_shouldProceedAfterError_removingItemAtPath_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSString) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jk8du5) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_removingItemAtPath_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSError, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldProceedAfterError:removingItemAtURL: - static final fileManager_shouldProceedAfterError_removingItemAtURL_ = - objc.ObjCProtocolMethod< - bool Function(NSFileManager, objc.NSError, objc.NSURL) - >( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jk8du5) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldProceedAfterError_removingItemAtURL_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSError, objc.NSURL) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// fileManager:shouldRemoveItemAtPath: - static final fileManager_shouldRemoveItemAtPath_ = - objc.ObjCProtocolMethod( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldRemoveItemAtPath_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldRemoveItemAtPath_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSString.fromFunction( - ( - ffi.Pointer _, - NSFileManager arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// fileManager:shouldRemoveItemAtURL: - static final fileManager_shouldRemoveItemAtURL_ = - objc.ObjCProtocolMethod( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldRemoveItemAtURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFileManagerDelegate, - _sel_fileManager_shouldRemoveItemAtURL_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSFileManager, objc.NSURL) func) => - ObjCBlock_bool_ffiVoid_NSFileManager_NSURL.fromFunction( - (ffi.Pointer _, NSFileManager arg1, objc.NSURL arg2) => - func(arg1, arg2), - ), - ); -} - -sealed class NSFileManagerItemReplacementOptions { - static const NSFileManagerItemReplacementUsingNewMetadataOnly = 1; - static const NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; -} - -enum NSFileManagerResumeSyncBehavior { - NSFileManagerResumeSyncBehaviorPreserveLocalChanges(0), - NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict(1), - NSFileManagerResumeSyncBehaviorDropLocalChanges(2); - - final int value; - const NSFileManagerResumeSyncBehavior(this.value); - - static NSFileManagerResumeSyncBehavior fromValue(int value) => - switch (value) { - 0 => NSFileManagerResumeSyncBehaviorPreserveLocalChanges, - 1 => NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict, - 2 => NSFileManagerResumeSyncBehaviorDropLocalChanges, - _ => throw ArgumentError( - 'Unknown value for NSFileManagerResumeSyncBehavior: $value', - ), - }; -} - -sealed class NSFileManagerSupportedSyncControls { - static const NSFileManagerSupportedSyncControlsPauseSync = 1; - static const NSFileManagerSupportedSyncControlsFailUploadOnConflict = 2; -} - -const int NSFileManagerUnmountBusyError = 769; - -sealed class NSFileManagerUnmountOptions { - static const NSFileManagerUnmountAllPartitionsAndEjectDisk = 1; - static const NSFileManagerUnmountWithoutUI = 2; -} - -const int NSFileManagerUnmountUnknownError = 768; - -enum NSFileManagerUploadLocalVersionConflictPolicy { - NSFileManagerUploadConflictPolicyDefault(0), - NSFileManagerUploadConflictPolicyFailOnConflict(1); - - final int value; - const NSFileManagerUploadLocalVersionConflictPolicy(this.value); - - static NSFileManagerUploadLocalVersionConflictPolicy fromValue( - int value, - ) => switch (value) { - 0 => NSFileManagerUploadConflictPolicyDefault, - 1 => NSFileManagerUploadConflictPolicyFailOnConflict, - _ => throw ArgumentError( - 'Unknown value for NSFileManagerUploadLocalVersionConflictPolicy: $value', - ), - }; -} - -const int NSFileNoSuchFileError = 4; - -/// NSFilePresenter -extension type NSFilePresenter._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSFilePresenter] that points to the same underlying object as [other]. - NSFilePresenter.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSFilePresenter] that wraps the given raw object pointer. - NSFilePresenter.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSFilePresenter]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSFilePresenter, - ); - } -} - -extension NSFilePresenter$Methods on NSFilePresenter { - /// accommodatePresentedItemDeletionWithCompletionHandler: - void accommodatePresentedItemDeletionWithCompletionHandler( - objc.ObjCBlock completionHandler, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = completionHandler.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_accommodatePresentedItemDeletionWithCompletionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'accommodatePresentedItemDeletionWithCompletionHandler:', - ); - } - _objc_msgSend_f167m6( - _$$ref.pointer, - _sel_accommodatePresentedItemDeletionWithCompletionHandler_, - _$$ref$1.pointer, - ); - } - - /// accommodatePresentedItemEvictionWithCompletionHandler: - void accommodatePresentedItemEvictionWithCompletionHandler( - objc.ObjCBlock completionHandler, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSFilePresenter.accommodatePresentedItemEvictionWithCompletionHandler:', - iOS: (false, (17, 4, 0)), - macOS: (false, (14, 4, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_accommodatePresentedItemEvictionWithCompletionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'accommodatePresentedItemEvictionWithCompletionHandler:', - ); - } - _objc_msgSend_f167m6( - _$$ref.pointer, - _sel_accommodatePresentedItemEvictionWithCompletionHandler_, - _$$ref$1.pointer, - ); - } - - /// accommodatePresentedSubitemDeletionAtURL:completionHandler: - void accommodatePresentedSubitemDeletionAtURL( - objc.NSURL url, { - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = completionHandler.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'accommodatePresentedSubitemDeletionAtURL:completionHandler:', - ); - } - _objc_msgSend_o762yo( - _$$ref.pointer, - _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// observedPresentedItemUbiquityAttributes - objc.NSSet get observedPresentedItemUbiquityAttributes { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFilePresenter.observedPresentedItemUbiquityAttributes', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_observedPresentedItemUbiquityAttributes, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'observedPresentedItemUbiquityAttributes', - ); - } - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_observedPresentedItemUbiquityAttributes, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// presentedItemDidChange - void presentedItemDidChange() { - final _$$ref = object$.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_presentedItemDidChange)) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidChange', - ); - } - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_presentedItemDidChange); - } - - /// presentedItemDidChangeUbiquityAttributes: - void presentedItemDidChangeUbiquityAttributes(objc.NSSet attributes) { - final _$$ref = object$.ref; - final _$$ref$1 = attributes.ref; - objc.checkOsVersionInternal( - 'NSFilePresenter.presentedItemDidChangeUbiquityAttributes:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedItemDidChangeUbiquityAttributes_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidChangeUbiquityAttributes:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_presentedItemDidChangeUbiquityAttributes_, - _$$ref$1.pointer, - ); - } - - /// presentedItemDidGainVersion: - void presentedItemDidGainVersion(NSFileVersion version) { - final _$$ref = object$.ref; - final _$$ref$1 = version.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedItemDidGainVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidGainVersion:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_presentedItemDidGainVersion_, - _$$ref$1.pointer, - ); - } - - /// presentedItemDidLoseVersion: - void presentedItemDidLoseVersion(NSFileVersion version) { - final _$$ref = object$.ref; - final _$$ref$1 = version.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedItemDidLoseVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidLoseVersion:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_presentedItemDidLoseVersion_, - _$$ref$1.pointer, - ); - } - - /// presentedItemDidMoveToURL: - void presentedItemDidMoveToURL(objc.NSURL newURL) { - final _$$ref = object$.ref; - final _$$ref$1 = newURL.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedItemDidMoveToURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidMoveToURL:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_presentedItemDidMoveToURL_, - _$$ref$1.pointer, - ); - } - - /// presentedItemDidResolveConflictVersion: - void presentedItemDidResolveConflictVersion(NSFileVersion version) { - final _$$ref = object$.ref; - final _$$ref$1 = version.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedItemDidResolveConflictVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedItemDidResolveConflictVersion:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_presentedItemDidResolveConflictVersion_, - _$$ref$1.pointer, - ); - } - - /// presentedItemOperationQueue - NSOperationQueue get presentedItemOperationQueue { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_presentedItemOperationQueue, - ); - return NSOperationQueue.fromPointer($ret, retain: true, release: true); - } - - /// presentedItemURL - objc.NSURL? get presentedItemURL { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_presentedItemURL); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// presentedSubitemAtURL:didGainVersion: - void presentedSubitemAtURL( - objc.NSURL url, { - required NSFileVersion didGainVersion, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = didGainVersion.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didGainVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemAtURL:didGainVersion:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didGainVersion_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// presentedSubitemAtURL:didLoseVersion: - void presentedSubitemAtURL$1( - objc.NSURL url, { - required NSFileVersion didLoseVersion, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = didLoseVersion.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didLoseVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemAtURL:didLoseVersion:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didLoseVersion_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// presentedSubitemAtURL:didMoveToURL: - void presentedSubitemAtURL$2( - objc.NSURL oldURL, { - required objc.NSURL didMoveToURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = oldURL.ref; - final _$$ref$2 = didMoveToURL.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didMoveToURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemAtURL:didMoveToURL:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didMoveToURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// presentedSubitemAtURL:didResolveConflictVersion: - void presentedSubitemAtURL$3( - objc.NSURL url, { - required NSFileVersion didResolveConflictVersion, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = didResolveConflictVersion.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didResolveConflictVersion_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemAtURL:didResolveConflictVersion:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_presentedSubitemAtURL_didResolveConflictVersion_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// presentedSubitemDidAppearAtURL: - void presentedSubitemDidAppearAtURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemDidAppearAtURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemDidAppearAtURL:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_presentedSubitemDidAppearAtURL_, - _$$ref$1.pointer, - ); - } - - /// presentedSubitemDidChangeAtURL: - void presentedSubitemDidChangeAtURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_presentedSubitemDidChangeAtURL_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'presentedSubitemDidChangeAtURL:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_presentedSubitemDidChangeAtURL_, - _$$ref$1.pointer, - ); - } - - /// primaryPresentedItemURL - objc.NSURL? get primaryPresentedItemURL { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFilePresenter.primaryPresentedItemURL', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_primaryPresentedItemURL, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'primaryPresentedItemURL', - ); - } - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_primaryPresentedItemURL, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// relinquishPresentedItemToReader: - void relinquishPresentedItemToReader( - objc.ObjCBlock?)> - reader, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = reader.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_relinquishPresentedItemToReader_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'relinquishPresentedItemToReader:', - ); - } - _objc_msgSend_f167m6( - _$$ref.pointer, - _sel_relinquishPresentedItemToReader_, - _$$ref$1.pointer, - ); - } - - /// relinquishPresentedItemToWriter: - void relinquishPresentedItemToWriter( - objc.ObjCBlock?)> - writer, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = writer.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_relinquishPresentedItemToWriter_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'relinquishPresentedItemToWriter:', - ); - } - _objc_msgSend_f167m6( - _$$ref.pointer, - _sel_relinquishPresentedItemToWriter_, - _$$ref$1.pointer, - ); - } - - /// savePresentedItemChangesWithCompletionHandler: - void savePresentedItemChangesWithCompletionHandler( - objc.ObjCBlock completionHandler, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = completionHandler.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_savePresentedItemChangesWithCompletionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSFilePresenter', - 'savePresentedItemChangesWithCompletionHandler:', - ); - } - _objc_msgSend_f167m6( - _$$ref.pointer, - _sel_savePresentedItemChangesWithCompletionHandler_, - _$$ref$1.pointer, - ); - } -} - -interface class NSFilePresenter$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSFilePresenter.cast()); - - /// Builds an object that implements the NSFilePresenter protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSFilePresenter implement({ - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implement( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implement( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implement( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implement( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_.implement( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implement( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implement( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implement( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_.implement( - builder, - presentedItemDidResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_.implement( - builder, - presentedSubitemAtURL_didGainVersion_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_.implement( - builder, - presentedSubitemAtURL_didLoseVersion_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_.implement( - builder, - presentedSubitemAtURL_didMoveToURL_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implement(builder, presentedSubitemAtURL_didResolveConflictVersion_); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implement( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implement( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_.implement( - builder, - relinquishPresentedItemToReader_, - ); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_.implement( - builder, - relinquishPresentedItemToWriter_, - ); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implement(builder, savePresentedItemChangesWithCompletionHandler_); - builder.addProtocol($protocol); - return NSFilePresenter.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSFilePresenter protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implement( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implement( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implement( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implement( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_.implement( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implement( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implement( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implement( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_.implement( - builder, - presentedItemDidResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_.implement( - builder, - presentedSubitemAtURL_didGainVersion_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_.implement( - builder, - presentedSubitemAtURL_didLoseVersion_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_.implement( - builder, - presentedSubitemAtURL_didMoveToURL_, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implement(builder, presentedSubitemAtURL_didResolveConflictVersion_); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implement( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implement( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_.implement( - builder, - relinquishPresentedItemToReader_, - ); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_.implement( - builder, - relinquishPresentedItemToWriter_, - ); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implement(builder, savePresentedItemChangesWithCompletionHandler_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSFilePresenter protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSFilePresenter implementAsListener({ - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implementAsListener( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implementAsListener( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implementAsListener( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implementAsListener( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ - .implementAsListener( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsListener( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsListener( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsListener( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ - .implementAsListener(builder, presentedItemDidResolveConflictVersion_); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ - .implementAsListener(builder, presentedSubitemAtURL_didGainVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ - .implementAsListener(builder, presentedSubitemAtURL_didLoseVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ - .implementAsListener(builder, presentedSubitemAtURL_didMoveToURL_); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implementAsListener( - builder, - presentedSubitemAtURL_didResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsListener( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsListener( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_ - .implementAsListener(builder, relinquishPresentedItemToReader_); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_ - .implementAsListener(builder, relinquishPresentedItemToWriter_); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implementAsListener( - builder, - savePresentedItemChangesWithCompletionHandler_, - ); - builder.addProtocol($protocol); - return NSFilePresenter.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSFilePresenter protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implementAsListener( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implementAsListener( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implementAsListener( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implementAsListener( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ - .implementAsListener( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsListener( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsListener( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsListener( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ - .implementAsListener(builder, presentedItemDidResolveConflictVersion_); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ - .implementAsListener(builder, presentedSubitemAtURL_didGainVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ - .implementAsListener(builder, presentedSubitemAtURL_didLoseVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ - .implementAsListener(builder, presentedSubitemAtURL_didMoveToURL_); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implementAsListener( - builder, - presentedSubitemAtURL_didResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsListener( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsListener( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_ - .implementAsListener(builder, relinquishPresentedItemToReader_); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_ - .implementAsListener(builder, relinquishPresentedItemToWriter_); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implementAsListener( - builder, - savePresentedItemChangesWithCompletionHandler_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSFilePresenter protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSFilePresenter implementAsBlocking({ - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSFilePresenter'); - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implementAsBlocking( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ - .implementAsBlocking( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsBlocking( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsBlocking( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsBlocking( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ - .implementAsBlocking(builder, presentedItemDidResolveConflictVersion_); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ - .implementAsBlocking(builder, presentedSubitemAtURL_didGainVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ - .implementAsBlocking(builder, presentedSubitemAtURL_didLoseVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ - .implementAsBlocking(builder, presentedSubitemAtURL_didMoveToURL_); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implementAsBlocking( - builder, - presentedSubitemAtURL_didResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsBlocking( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsBlocking( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_ - .implementAsBlocking(builder, relinquishPresentedItemToReader_); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_ - .implementAsBlocking(builder, relinquishPresentedItemToWriter_); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implementAsBlocking( - builder, - savePresentedItemChangesWithCompletionHandler_, - ); - builder.addProtocol($protocol); - return NSFilePresenter.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSFilePresenter protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(objc.ObjCBlock)? - accommodatePresentedItemDeletionWithCompletionHandler_, - void Function(objc.ObjCBlock)? - accommodatePresentedItemEvictionWithCompletionHandler_, - void Function(objc.NSURL, objc.ObjCBlock)? - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - objc.NSSet Function()? observedPresentedItemUbiquityAttributes, - void Function()? presentedItemDidChange, - void Function(objc.NSSet)? presentedItemDidChangeUbiquityAttributes_, - void Function(NSFileVersion)? presentedItemDidGainVersion_, - void Function(NSFileVersion)? presentedItemDidLoseVersion_, - void Function(objc.NSURL)? presentedItemDidMoveToURL_, - void Function(NSFileVersion)? presentedItemDidResolveConflictVersion_, - required NSOperationQueue Function() presentedItemOperationQueue, - required objc.NSURL? Function() presentedItemURL, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didGainVersion_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didLoseVersion_, - void Function(objc.NSURL, objc.NSURL)? presentedSubitemAtURL_didMoveToURL_, - void Function(objc.NSURL, NSFileVersion)? - presentedSubitemAtURL_didResolveConflictVersion_, - void Function(objc.NSURL)? presentedSubitemDidAppearAtURL_, - void Function(objc.NSURL)? presentedSubitemDidChangeAtURL_, - objc.NSURL? Function()? primaryPresentedItemURL, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToReader_, - void Function( - objc.ObjCBlock?)>, - )? - relinquishPresentedItemToWriter_, - void Function(objc.ObjCBlock)? - savePresentedItemChangesWithCompletionHandler_, - bool $keepIsolateAlive = true, - }) { - NSFilePresenter$Builder - .accommodatePresentedItemDeletionWithCompletionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedItemDeletionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedItemEvictionWithCompletionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedItemEvictionWithCompletionHandler_, - ); - NSFilePresenter$Builder - .accommodatePresentedSubitemDeletionAtURL_completionHandler_ - .implementAsBlocking( - builder, - accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ); - NSFilePresenter$Builder.observedPresentedItemUbiquityAttributes.implement( - builder, - observedPresentedItemUbiquityAttributes, - ); - NSFilePresenter$Builder.presentedItemDidChange.implementAsBlocking( - builder, - presentedItemDidChange, - ); - NSFilePresenter$Builder.presentedItemDidChangeUbiquityAttributes_ - .implementAsBlocking( - builder, - presentedItemDidChangeUbiquityAttributes_, - ); - NSFilePresenter$Builder.presentedItemDidGainVersion_.implementAsBlocking( - builder, - presentedItemDidGainVersion_, - ); - NSFilePresenter$Builder.presentedItemDidLoseVersion_.implementAsBlocking( - builder, - presentedItemDidLoseVersion_, - ); - NSFilePresenter$Builder.presentedItemDidMoveToURL_.implementAsBlocking( - builder, - presentedItemDidMoveToURL_, - ); - NSFilePresenter$Builder.presentedItemDidResolveConflictVersion_ - .implementAsBlocking(builder, presentedItemDidResolveConflictVersion_); - NSFilePresenter$Builder.presentedItemOperationQueue.implement( - builder, - presentedItemOperationQueue, - ); - NSFilePresenter$Builder.presentedItemURL.implement( - builder, - presentedItemURL, - ); - NSFilePresenter$Builder.presentedSubitemAtURL_didGainVersion_ - .implementAsBlocking(builder, presentedSubitemAtURL_didGainVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didLoseVersion_ - .implementAsBlocking(builder, presentedSubitemAtURL_didLoseVersion_); - NSFilePresenter$Builder.presentedSubitemAtURL_didMoveToURL_ - .implementAsBlocking(builder, presentedSubitemAtURL_didMoveToURL_); - NSFilePresenter$Builder.presentedSubitemAtURL_didResolveConflictVersion_ - .implementAsBlocking( - builder, - presentedSubitemAtURL_didResolveConflictVersion_, - ); - NSFilePresenter$Builder.presentedSubitemDidAppearAtURL_.implementAsBlocking( - builder, - presentedSubitemDidAppearAtURL_, - ); - NSFilePresenter$Builder.presentedSubitemDidChangeAtURL_.implementAsBlocking( - builder, - presentedSubitemDidChangeAtURL_, - ); - NSFilePresenter$Builder.primaryPresentedItemURL.implement( - builder, - primaryPresentedItemURL, - ); - NSFilePresenter$Builder.relinquishPresentedItemToReader_ - .implementAsBlocking(builder, relinquishPresentedItemToReader_); - NSFilePresenter$Builder.relinquishPresentedItemToWriter_ - .implementAsBlocking(builder, relinquishPresentedItemToWriter_); - NSFilePresenter$Builder.savePresentedItemChangesWithCompletionHandler_ - .implementAsBlocking( - builder, - savePresentedItemChangesWithCompletionHandler_, - ); - builder.addProtocol($protocol); - } - - /// accommodatePresentedItemDeletionWithCompletionHandler: - static final accommodatePresentedItemDeletionWithCompletionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.ObjCBlock) - >( - _protocol_NSFilePresenter, - _sel_accommodatePresentedItemDeletionWithCompletionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1l4hxwm) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_accommodatePresentedItemDeletionWithCompletionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ); - - /// accommodatePresentedItemEvictionWithCompletionHandler: - static final accommodatePresentedItemEvictionWithCompletionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.ObjCBlock) - >( - _protocol_NSFilePresenter, - _sel_accommodatePresentedItemEvictionWithCompletionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1l4hxwm) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_accommodatePresentedItemEvictionWithCompletionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ); - - /// accommodatePresentedSubitemDeletionAtURL:completionHandler: - static final accommodatePresentedSubitemDeletionAtURL_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - objc.NSURL, - objc.ObjCBlock, - ) - >( - _protocol_NSFilePresenter, - _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jk1ljc) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - objc.NSURL, - objc.ObjCBlock, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.NSURL arg1, - objc.ObjCBlock arg2, - ) => func(arg1, arg2), - ), - ( - void Function( - objc.NSURL, - objc.ObjCBlock, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.listener( - ( - ffi.Pointer _, - objc.NSURL arg1, - objc.ObjCBlock arg2, - ) => func(arg1, arg2), - ), - ( - void Function( - objc.NSURL, - objc.ObjCBlock, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError.blocking( - ( - ffi.Pointer _, - objc.NSURL arg1, - objc.ObjCBlock arg2, - ) => func(arg1, arg2), - ), - ); - - /// observedPresentedItemUbiquityAttributes - static final observedPresentedItemUbiquityAttributes = - objc.ObjCProtocolMethod( - _protocol_NSFilePresenter, - _sel_observedPresentedItemUbiquityAttributes, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_observedPresentedItemUbiquityAttributes, - isRequired: false, - isInstanceMethod: true, - ), - (objc.NSSet Function() func) => ObjCBlock_NSSet_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// presentedItemDidChange - static final presentedItemDidChange = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidChange, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ovsamd) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidChange, - isRequired: false, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// presentedItemDidChangeUbiquityAttributes: - static final presentedItemDidChangeUbiquityAttributes_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidChangeUbiquityAttributes_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidChangeUbiquityAttributes_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSSet) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSet.fromFunction( - (ffi.Pointer _, objc.NSSet arg1) => func(arg1), - ), - (void Function(objc.NSSet) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSet.listener( - (ffi.Pointer _, objc.NSSet arg1) => func(arg1), - ), - (void Function(objc.NSSet) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSet.blocking( - (ffi.Pointer _, objc.NSSet arg1) => func(arg1), - ), - ); - - /// presentedItemDidGainVersion: - static final presentedItemDidGainVersion_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidGainVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidGainVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - ); - - /// presentedItemDidLoseVersion: - static final presentedItemDidLoseVersion_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidLoseVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidLoseVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - ); - - /// presentedItemDidMoveToURL: - static final presentedItemDidMoveToURL_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidMoveToURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidMoveToURL_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - ); - - /// presentedItemDidResolveConflictVersion: - static final presentedItemDidResolveConflictVersion_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedItemDidResolveConflictVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemDidResolveConflictVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.fromFunction( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.listener( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - (void Function(NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSFileVersion.blocking( - (ffi.Pointer _, NSFileVersion arg1) => func(arg1), - ), - ); - - /// presentedItemOperationQueue - static final presentedItemOperationQueue = - objc.ObjCProtocolMethod( - _protocol_NSFilePresenter, - _sel_presentedItemOperationQueue, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemOperationQueue, - isRequired: true, - isInstanceMethod: true, - ), - (NSOperationQueue Function() func) => - ObjCBlock_NSOperationQueue_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// presentedItemURL - static final presentedItemURL = - objc.ObjCProtocolMethod( - _protocol_NSFilePresenter, - _sel_presentedItemURL, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedItemURL, - isRequired: true, - isInstanceMethod: true, - ), - (objc.NSURL? Function() func) => ObjCBlock_NSURL_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// presentedSubitemAtURL:didGainVersion: - static final presentedSubitemAtURL_didGainVersion_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSURL, NSFileVersion) - >( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didGainVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didGainVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - ); - - /// presentedSubitemAtURL:didLoseVersion: - static final presentedSubitemAtURL_didLoseVersion_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSURL, NSFileVersion) - >( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didLoseVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didLoseVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - ); - - /// presentedSubitemAtURL:didMoveToURL: - static final presentedSubitemAtURL_didMoveToURL_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didMoveToURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didMoveToURL_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.fromFunction( - (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.listener( - (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL.blocking( - (ffi.Pointer _, objc.NSURL arg1, objc.NSURL arg2) => - func(arg1, arg2), - ), - ); - - /// presentedSubitemAtURL:didResolveConflictVersion: - static final presentedSubitemAtURL_didResolveConflictVersion_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSURL, NSFileVersion) - >( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didResolveConflictVersion_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemAtURL_didResolveConflictVersion_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.fromFunction( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.listener( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - (void Function(objc.NSURL, NSFileVersion) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion.blocking( - (ffi.Pointer _, objc.NSURL arg1, NSFileVersion arg2) => - func(arg1, arg2), - ), - ); - - /// presentedSubitemDidAppearAtURL: - static final presentedSubitemDidAppearAtURL_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedSubitemDidAppearAtURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemDidAppearAtURL_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - ); - - /// presentedSubitemDidChangeAtURL: - static final presentedSubitemDidChangeAtURL_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSFilePresenter, - _sel_presentedSubitemDidChangeAtURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_presentedSubitemDidChangeAtURL_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.fromFunction( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.listener( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - (void Function(objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURL.blocking( - (ffi.Pointer _, objc.NSURL arg1) => func(arg1), - ), - ); - - /// primaryPresentedItemURL - static final primaryPresentedItemURL = - objc.ObjCProtocolMethod( - _protocol_NSFilePresenter, - _sel_primaryPresentedItemURL, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_primaryPresentedItemURL, - isRequired: false, - isInstanceMethod: true, - ), - (objc.NSURL? Function() func) => ObjCBlock_NSURL_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// relinquishPresentedItemToReader: - static final relinquishPresentedItemToReader_ = - objc.ObjCProtocolListenableMethod< - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - >( - _protocol_NSFilePresenter, - _sel_relinquishPresentedItemToReader_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1l4hxwm) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_relinquishPresentedItemToReader_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.listener( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.blocking( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ); - - /// relinquishPresentedItemToWriter: - static final relinquishPresentedItemToWriter_ = - objc.ObjCProtocolListenableMethod< - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - >( - _protocol_NSFilePresenter, - _sel_relinquishPresentedItemToWriter_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1l4hxwm) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_relinquishPresentedItemToWriter_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.listener( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ( - void Function( - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid.blocking( - ( - ffi.Pointer _, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - > - arg1, - ) => func(arg1), - ), - ); - - /// savePresentedItemChangesWithCompletionHandler: - static final savePresentedItemChangesWithCompletionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.ObjCBlock) - >( - _protocol_NSFilePresenter, - _sel_savePresentedItemChangesWithCompletionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1l4hxwm) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFilePresenter, - _sel_savePresentedItemChangesWithCompletionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.listener( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ( - void Function(objc.ObjCBlock) func, - ) => ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError.blocking( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ); -} - -typedef NSFileProtectionType = ffi.Pointer; -typedef DartNSFileProtectionType = objc.NSString; -typedef NSFileProviderServiceName = ffi.Pointer; -typedef DartNSFileProviderServiceName = objc.NSString; - -const int NSFileReadCorruptFileError = 259; - -const int NSFileReadInapplicableStringEncodingError = 261; - -const int NSFileReadInvalidFileNameError = 258; - -const int NSFileReadNoPermissionError = 257; - -const int NSFileReadNoSuchFileError = 260; - -const int NSFileReadTooLargeError = 263; - -const int NSFileReadUnknownError = 256; - -const int NSFileReadUnknownStringEncodingError = 264; - -const int NSFileReadUnsupportedSchemeError = 262; - -/// WARNING: NSFileVersion is a stub. To generate bindings for this class, include -/// NSFileVersion in your config's objc-interfaces list. -/// -/// NSFileVersion -extension type NSFileVersion._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSFileVersion] that points to the same underlying object as [other]. - NSFileVersion.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSFileVersion', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } - - /// Constructs a [NSFileVersion] that wraps the given raw object pointer. - NSFileVersion.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSFileVersion', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } -} - -sealed class NSFileVersionAddingOptions { - static const NSFileVersionAddingByMoving = 1; -} - -sealed class NSFileVersionReplacingOptions { - static const NSFileVersionReplacingByMoving = 1; -} - -/// WARNING: NSFileWrapper is a stub. To generate bindings for this class, include -/// NSFileWrapper in your config's objc-interfaces list. -/// -/// NSFileWrapper -extension type NSFileWrapper._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [NSFileWrapper] that points to the same underlying object as [other]. - NSFileWrapper.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSFileWrapper', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSFileWrapper] that wraps the given raw object pointer. - NSFileWrapper.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSFileWrapper', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -sealed class NSFileWrapperReadingOptions { - static const NSFileWrapperReadingImmediate = 1; - static const NSFileWrapperReadingWithoutMapping = 2; -} - -sealed class NSFileWrapperWritingOptions { - static const NSFileWrapperWritingAtomic = 1; - static const NSFileWrapperWritingWithNameUpdating = 2; -} - -const int NSFileWriteFileExistsError = 516; - -const int NSFileWriteInapplicableStringEncodingError = 517; - -const int NSFileWriteInvalidFileNameError = 514; - -const int NSFileWriteNoPermissionError = 513; - -const int NSFileWriteOutOfSpaceError = 640; - -const int NSFileWriteUnknownError = 512; - -const int NSFileWriteUnsupportedSchemeError = 518; - -const int NSFileWriteVolumeReadOnlyError = 642; - -/// WARNING: NSFormatter is a stub. To generate bindings for this class, include -/// NSFormatter in your config's objc-interfaces list. -/// -/// NSFormatter -extension type NSFormatter._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCopying, objc.NSCoding { - /// Constructs a [NSFormatter] that points to the same underlying object as [other]. - NSFormatter.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSFormatter] that wraps the given raw object pointer. - NSFormatter.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -enum NSFormattingContext { - NSFormattingContextUnknown(0), - NSFormattingContextDynamic(1), - NSFormattingContextStandalone(2), - NSFormattingContextListItem(3), - NSFormattingContextBeginningOfSentence(4), - NSFormattingContextMiddleOfSentence(5); - - final int value; - const NSFormattingContext(this.value); - - static NSFormattingContext fromValue(int value) => switch (value) { - 0 => NSFormattingContextUnknown, - 1 => NSFormattingContextDynamic, - 2 => NSFormattingContextStandalone, - 3 => NSFormattingContextListItem, - 4 => NSFormattingContextBeginningOfSentence, - 5 => NSFormattingContextMiddleOfSentence, - _ => throw ArgumentError('Unknown value for NSFormattingContext: $value'), - }; -} - -const int NSFormattingError = 2048; - -const int NSFormattingErrorMaximum = 2559; - -const int NSFormattingErrorMinimum = 2048; - -enum NSFormattingUnitStyle { - NSFormattingUnitStyleShort(1), - NSFormattingUnitStyleMedium(2), - NSFormattingUnitStyleLong(3); - - final int value; - const NSFormattingUnitStyle(this.value); - - static NSFormattingUnitStyle fromValue(int value) => switch (value) { - 1 => NSFormattingUnitStyleShort, - 2 => NSFormattingUnitStyleMedium, - 3 => NSFormattingUnitStyleLong, - _ => throw ArgumentError('Unknown value for NSFormattingUnitStyle: $value'), - }; -} - -/// NSGenericFastEnumeration -extension NSGenericFastEnumeration on objc.NSDictionary { - /// countByEnumeratingWithState:objects:count: - DartNSUInteger countByEnumeratingWithState$1( - ffi.Pointer state, { - required ffi.Pointer> objects, - required DartNSUInteger count, - }) { - final _$$ref = object$.ref; - return _objc_msgSend_1b5ysjl( - _$$ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count, - ); - } -} - -/// NSGeometryCoding -extension NSGeometryCoding on objc.NSCoder { - /// decodePoint - NSPoint decodePoint() { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1uwdhlkStret($ptr, _$$ref.pointer, _sel_decodePoint) - : $ptr.ref = _objc_msgSend_1uwdhlk(_$$ref.pointer, _sel_decodePoint); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// decodeRect - NSRect decodeRect() { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_bu1hbwStret($ptr, _$$ref.pointer, _sel_decodeRect) - : $ptr.ref = _objc_msgSend_bu1hbw(_$$ref.pointer, _sel_decodeRect); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// decodeSize - NSSize decodeSize() { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_decodeSize) - : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_decodeSize); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// encodePoint: - void encodePoint(NSPoint point) { - final _$$ref = object$.ref; - _objc_msgSend_iy8iz6(_$$ref.pointer, _sel_encodePoint_, point); - } - - /// encodeRect: - void encodeRect(NSRect rect) { - final _$$ref = object$.ref; - _objc_msgSend_1okkq16(_$$ref.pointer, _sel_encodeRect_, rect); - } - - /// encodeSize: - void encodeSize(NSSize size) { - final _$$ref = object$.ref; - _objc_msgSend_13lgpwz(_$$ref.pointer, _sel_encodeSize_, size); - } -} - -/// NSGeometryKeyedCoding -extension NSGeometryKeyedCoding on objc.NSCoder { - /// decodePointForKey: - NSPoint decodePointForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1mpyy6yStret( - $ptr, - _$$ref.pointer, - _sel_decodePointForKey_, - _$$ref$1.pointer, - ) - : $ptr.ref = _objc_msgSend_1mpyy6y( - _$$ref.pointer, - _sel_decodePointForKey_, - _$$ref$1.pointer, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// decodeRectForKey: - NSRect decodeRectForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_qrtfceStret( - $ptr, - _$$ref.pointer, - _sel_decodeRectForKey_, - _$$ref$1.pointer, - ) - : $ptr.ref = _objc_msgSend_qrtfce( - _$$ref.pointer, - _sel_decodeRectForKey_, - _$$ref$1.pointer, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// decodeSizeForKey: - NSSize decodeSizeForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_18r320vStret( - $ptr, - _$$ref.pointer, - _sel_decodeSizeForKey_, - _$$ref$1.pointer, - ) - : $ptr.ref = _objc_msgSend_18r320v( - _$$ref.pointer, - _sel_decodeSizeForKey_, - _$$ref$1.pointer, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// encodePoint:forKey: - void encodePoint(NSPoint point, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_bkebbk( - _$$ref.pointer, - _sel_encodePoint_forKey_, - point, - _$$ref$1.pointer, - ); - } - - /// encodeRect:forKey: - void encodeRect(NSRect rect, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_f227js( - _$$ref.pointer, - _sel_encodeRect_forKey_, - rect, - _$$ref$1.pointer, - ); - } - - /// encodeSize:forKey: - void encodeSize(NSSize size, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - _objc_msgSend_11tcc61( - _$$ref.pointer, - _sel_encodeSize_forKey_, - size, - _$$ref$1.pointer, - ); - } -} - -enum NSGrammaticalCase { - NSGrammaticalCaseNotSet(0), - NSGrammaticalCaseNominative(1), - NSGrammaticalCaseAccusative(2), - NSGrammaticalCaseDative(3), - NSGrammaticalCaseGenitive(4), - NSGrammaticalCasePrepositional(5), - NSGrammaticalCaseAblative(6), - NSGrammaticalCaseAdessive(7), - NSGrammaticalCaseAllative(8), - NSGrammaticalCaseElative(9), - NSGrammaticalCaseIllative(10), - NSGrammaticalCaseEssive(11), - NSGrammaticalCaseInessive(12), - NSGrammaticalCaseLocative(13), - NSGrammaticalCaseTranslative(14); - - final int value; - const NSGrammaticalCase(this.value); - - static NSGrammaticalCase fromValue(int value) => switch (value) { - 0 => NSGrammaticalCaseNotSet, - 1 => NSGrammaticalCaseNominative, - 2 => NSGrammaticalCaseAccusative, - 3 => NSGrammaticalCaseDative, - 4 => NSGrammaticalCaseGenitive, - 5 => NSGrammaticalCasePrepositional, - 6 => NSGrammaticalCaseAblative, - 7 => NSGrammaticalCaseAdessive, - 8 => NSGrammaticalCaseAllative, - 9 => NSGrammaticalCaseElative, - 10 => NSGrammaticalCaseIllative, - 11 => NSGrammaticalCaseEssive, - 12 => NSGrammaticalCaseInessive, - 13 => NSGrammaticalCaseLocative, - 14 => NSGrammaticalCaseTranslative, - _ => throw ArgumentError('Unknown value for NSGrammaticalCase: $value'), - }; -} - -enum NSGrammaticalDefiniteness { - NSGrammaticalDefinitenessNotSet(0), - NSGrammaticalDefinitenessIndefinite(1), - NSGrammaticalDefinitenessDefinite(2); - - final int value; - const NSGrammaticalDefiniteness(this.value); - - static NSGrammaticalDefiniteness fromValue(int value) => switch (value) { - 0 => NSGrammaticalDefinitenessNotSet, - 1 => NSGrammaticalDefinitenessIndefinite, - 2 => NSGrammaticalDefinitenessDefinite, - _ => throw ArgumentError( - 'Unknown value for NSGrammaticalDefiniteness: $value', - ), - }; -} - -enum NSGrammaticalDetermination { - NSGrammaticalDeterminationNotSet(0), - NSGrammaticalDeterminationIndependent(1), - NSGrammaticalDeterminationDependent(2); - - final int value; - const NSGrammaticalDetermination(this.value); - - static NSGrammaticalDetermination fromValue(int value) => switch (value) { - 0 => NSGrammaticalDeterminationNotSet, - 1 => NSGrammaticalDeterminationIndependent, - 2 => NSGrammaticalDeterminationDependent, - _ => throw ArgumentError( - 'Unknown value for NSGrammaticalDetermination: $value', - ), - }; -} - -enum NSGrammaticalGender { - NSGrammaticalGenderNotSet(0), - NSGrammaticalGenderFeminine(1), - NSGrammaticalGenderMasculine(2), - NSGrammaticalGenderNeuter(3); - - final int value; - const NSGrammaticalGender(this.value); - - static NSGrammaticalGender fromValue(int value) => switch (value) { - 0 => NSGrammaticalGenderNotSet, - 1 => NSGrammaticalGenderFeminine, - 2 => NSGrammaticalGenderMasculine, - 3 => NSGrammaticalGenderNeuter, - _ => throw ArgumentError('Unknown value for NSGrammaticalGender: $value'), - }; -} - -enum NSGrammaticalNumber { - NSGrammaticalNumberNotSet(0), - NSGrammaticalNumberSingular(1), - NSGrammaticalNumberZero(2), - NSGrammaticalNumberPlural(3), - NSGrammaticalNumberPluralTwo(4), - NSGrammaticalNumberPluralFew(5), - NSGrammaticalNumberPluralMany(6); - - final int value; - const NSGrammaticalNumber(this.value); - - static NSGrammaticalNumber fromValue(int value) => switch (value) { - 0 => NSGrammaticalNumberNotSet, - 1 => NSGrammaticalNumberSingular, - 2 => NSGrammaticalNumberZero, - 3 => NSGrammaticalNumberPlural, - 4 => NSGrammaticalNumberPluralTwo, - 5 => NSGrammaticalNumberPluralFew, - 6 => NSGrammaticalNumberPluralMany, - _ => throw ArgumentError('Unknown value for NSGrammaticalNumber: $value'), - }; -} - -enum NSGrammaticalPartOfSpeech { - NSGrammaticalPartOfSpeechNotSet(0), - NSGrammaticalPartOfSpeechDeterminer(1), - NSGrammaticalPartOfSpeechPronoun(2), - NSGrammaticalPartOfSpeechLetter(3), - NSGrammaticalPartOfSpeechAdverb(4), - NSGrammaticalPartOfSpeechParticle(5), - NSGrammaticalPartOfSpeechAdjective(6), - NSGrammaticalPartOfSpeechAdposition(7), - NSGrammaticalPartOfSpeechVerb(8), - NSGrammaticalPartOfSpeechNoun(9), - NSGrammaticalPartOfSpeechConjunction(10), - NSGrammaticalPartOfSpeechNumeral(11), - NSGrammaticalPartOfSpeechInterjection(12), - NSGrammaticalPartOfSpeechPreposition(13), - NSGrammaticalPartOfSpeechAbbreviation(14); - - final int value; - const NSGrammaticalPartOfSpeech(this.value); - - static NSGrammaticalPartOfSpeech fromValue(int value) => switch (value) { - 0 => NSGrammaticalPartOfSpeechNotSet, - 1 => NSGrammaticalPartOfSpeechDeterminer, - 2 => NSGrammaticalPartOfSpeechPronoun, - 3 => NSGrammaticalPartOfSpeechLetter, - 4 => NSGrammaticalPartOfSpeechAdverb, - 5 => NSGrammaticalPartOfSpeechParticle, - 6 => NSGrammaticalPartOfSpeechAdjective, - 7 => NSGrammaticalPartOfSpeechAdposition, - 8 => NSGrammaticalPartOfSpeechVerb, - 9 => NSGrammaticalPartOfSpeechNoun, - 10 => NSGrammaticalPartOfSpeechConjunction, - 11 => NSGrammaticalPartOfSpeechNumeral, - 12 => NSGrammaticalPartOfSpeechInterjection, - 13 => NSGrammaticalPartOfSpeechPreposition, - 14 => NSGrammaticalPartOfSpeechAbbreviation, - _ => throw ArgumentError( - 'Unknown value for NSGrammaticalPartOfSpeech: $value', - ), - }; -} - -enum NSGrammaticalPerson { - NSGrammaticalPersonNotSet(0), - NSGrammaticalPersonFirst(1), - NSGrammaticalPersonSecond(2), - NSGrammaticalPersonThird(3); - - final int value; - const NSGrammaticalPerson(this.value); - - static NSGrammaticalPerson fromValue(int value) => switch (value) { - 0 => NSGrammaticalPersonNotSet, - 1 => NSGrammaticalPersonFirst, - 2 => NSGrammaticalPersonSecond, - 3 => NSGrammaticalPersonThird, - _ => throw ArgumentError('Unknown value for NSGrammaticalPerson: $value'), - }; -} - -enum NSGrammaticalPronounType { - NSGrammaticalPronounTypeNotSet(0), - NSGrammaticalPronounTypePersonal(1), - NSGrammaticalPronounTypeReflexive(2), - NSGrammaticalPronounTypePossessive(3); - - final int value; - const NSGrammaticalPronounType(this.value); - - static NSGrammaticalPronounType fromValue(int value) => switch (value) { - 0 => NSGrammaticalPronounTypeNotSet, - 1 => NSGrammaticalPronounTypePersonal, - 2 => NSGrammaticalPronounTypeReflexive, - 3 => NSGrammaticalPronounTypePossessive, - _ => throw ArgumentError( - 'Unknown value for NSGrammaticalPronounType: $value', - ), - }; -} - -@Deprecated('Not supported') -const int NSHPUXOperatingSystem = 4; - -enum NSHTTPCookieAcceptPolicy { - NSHTTPCookieAcceptPolicyAlways(0), - NSHTTPCookieAcceptPolicyNever(1), - NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain(2); - - final int value; - const NSHTTPCookieAcceptPolicy(this.value); - - static NSHTTPCookieAcceptPolicy fromValue(int value) => switch (value) { - 0 => NSHTTPCookieAcceptPolicyAlways, - 1 => NSHTTPCookieAcceptPolicyNever, - 2 => NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain, - _ => throw ArgumentError( - 'Unknown value for NSHTTPCookieAcceptPolicy: $value', - ), - }; -} - -typedef NSHTTPCookiePropertyKey = ffi.Pointer; -typedef DartNSHTTPCookiePropertyKey = objc.NSString; - -/// WARNING: NSHTTPCookieStorage is a stub. To generate bindings for this class, include -/// NSHTTPCookieStorage in your config's objc-interfaces list. -/// -/// NSHTTPCookieStorage -extension type NSHTTPCookieStorage._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSHTTPCookieStorage] that points to the same underlying object as [other]. - NSHTTPCookieStorage.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSHTTPCookieStorage', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSHTTPCookieStorage] that wraps the given raw object pointer. - NSHTTPCookieStorage.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSHTTPCookieStorage', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -typedef NSHTTPCookieStringPolicy = ffi.Pointer; -typedef DartNSHTTPCookieStringPolicy = objc.NSString; - -/// NSHTTPURLRequest -extension NSHTTPURLRequest on NSURLRequest { - /// HTTPBody - objc.NSData? get HTTPBody { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.HTTPBody', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBody); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// HTTPBodyStream - objc.NSInputStream? get HTTPBodyStream { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.HTTPBodyStream', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBodyStream); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// HTTPMethod - objc.NSString? get HTTPMethod { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.HTTPMethod', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPMethod); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// HTTPShouldHandleCookies - bool get HTTPShouldHandleCookies { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.HTTPShouldHandleCookies', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldHandleCookies); - } - - /// HTTPShouldUsePipelining - @Deprecated( - 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', - ) - bool get HTTPShouldUsePipelining { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.HTTPShouldUsePipelining', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldUsePipelining); - } - - /// allHTTPHeaderFields - objc.NSDictionary? get allHTTPHeaderFields { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.allHTTPHeaderFields', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_allHTTPHeaderFields, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// valueForHTTPHeaderField: - objc.NSString? valueForHTTPHeaderField(objc.NSString field) { - final _$$ref = object$.ref; - final _$$ref$1 = field.ref; - objc.checkOsVersionInternal( - 'NSURLRequest.valueForHTTPHeaderField:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_valueForHTTPHeaderField_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSHTTPURLResponse is a stub. To generate bindings for this class, include -/// NSHTTPURLResponse in your config's objc-interfaces list. -/// -/// NSHTTPURLResponse -extension type NSHTTPURLResponse._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLResponse { - /// Constructs a [NSHTTPURLResponse] that points to the same underlying object as [other]. - NSHTTPURLResponse.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSHTTPURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSHTTPURLResponse] that wraps the given raw object pointer. - NSHTTPURLResponse.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSHTTPURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -final class NSHashEnumerator extends ffi.Struct { - @NSUInteger() - external int _pi; - - @NSUInteger() - external int _si; - - external ffi.Pointer _bs; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int $pi, - required int $si, - required ffi.Pointer $bs, - }) => $allocator() - ..ref._pi = $pi - ..ref._si = $si - ..ref._bs = $bs; -} - -/// WARNING: NSHashTable is a stub. To generate bindings for this class, include -/// NSHashTable in your config's objc-interfaces list. -/// -/// NSHashTable -extension type NSHashTable._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding, - objc.NSFastEnumeration { - /// Constructs a [NSHashTable] that points to the same underlying object as [other]. - NSHashTable.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSHashTable', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } - - /// Constructs a [NSHashTable] that wraps the given raw object pointer. - NSHashTable.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSHashTable', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } -} - -final class NSHashTableCallBacks extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - hash; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - isEqual; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - release; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - hash, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - isEqual, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - release, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe, - }) => $allocator() - ..ref.hash = hash - ..ref.isEqual = isEqual - ..ref.retain = retain - ..ref.release = release - ..ref.describe = describe; -} - -const int NSHashTableCopyIn = 65536; - -const int NSHashTableObjectPointerPersonality = 512; - -typedef NSHashTableOptions = NSUInteger; - -const int NSHashTableStrongMemory = 0; - -const int NSHashTableWeakMemory = 5; - -const int NSHashTableZeroingWeakMemory = 1; - -/// WARNING: NSHost is a stub. To generate bindings for this class, include -/// NSHost in your config's objc-interfaces list. -/// -/// NSHost -@Deprecated( - 'Use Network framework instead, see deprecation notice in ', -) -extension type NSHost._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSHost] that points to the same underlying object as [other]. - NSHost.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSHost', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSHost] that wraps the given raw object pointer. - NSHost.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSHost', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - } -} - -const int NSISO2022JPStringEncoding = 21; - -sealed class NSISO8601DateFormatOptions { - static const NSISO8601DateFormatWithYear = 1; - static const NSISO8601DateFormatWithMonth = 2; - static const NSISO8601DateFormatWithWeekOfYear = 4; - static const NSISO8601DateFormatWithDay = 16; - static const NSISO8601DateFormatWithTime = 32; - static const NSISO8601DateFormatWithTimeZone = 64; - static const NSISO8601DateFormatWithSpaceBetweenDateAndTime = 128; - static const NSISO8601DateFormatWithDashSeparatorInDate = 256; - static const NSISO8601DateFormatWithColonSeparatorInTime = 512; - static const NSISO8601DateFormatWithColonSeparatorInTimeZone = 1024; - static const NSISO8601DateFormatWithFractionalSeconds = 2048; - static const NSISO8601DateFormatWithFullDate = 275; - static const NSISO8601DateFormatWithFullTime = 1632; - static const NSISO8601DateFormatWithInternetDateTime = 1907; -} - -const int NSISOLatin1StringEncoding = 5; - -const int NSISOLatin2StringEncoding = 9; - -/// WARNING: NSIndexPath is a stub. To generate bindings for this class, include -/// NSIndexPath in your config's objc-interfaces list. -/// -/// NSIndexPath -extension type NSIndexPath._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSIndexPath] that points to the same underlying object as [other]. - NSIndexPath.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSIndexPath] that wraps the given raw object pointer. - NSIndexPath.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSInflectionAvailability -extension NSInflectionAvailability on NSInflectionRule { - /// canInflectLanguage: - static bool canInflectLanguage(objc.NSString language) { - final _$$ref = language.ref; - objc.checkOsVersionInternal( - 'NSInflectionRule.canInflectLanguage:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _class_NSInflectionRule, - _sel_canInflectLanguage_, - _$$ref.pointer, - ); - } - - /// canInflectPreferredLocalization - static bool getCanInflectPreferredLocalization() { - objc.checkOsVersionInternal( - 'NSInflectionRule.canInflectPreferredLocalization', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - return _objc_msgSend_91o635( - _class_NSInflectionRule, - _sel_canInflectPreferredLocalization, - ); - } -} - -/// WARNING: NSInflectionRule is a stub. To generate bindings for this class, include -/// NSInflectionRule in your config's objc-interfaces list. -/// -/// NSInflectionRule -extension type NSInflectionRule._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSInflectionRule] that points to the same underlying object as [other]. - NSInflectionRule.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSInflectionRule', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } - - /// Constructs a [NSInflectionRule] that wraps the given raw object pointer. - NSInflectionRule.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSInflectionRule', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } -} - -sealed class NSInlinePresentationIntent { - static const NSInlinePresentationIntentEmphasized = 1; - static const NSInlinePresentationIntentStronglyEmphasized = 2; - static const NSInlinePresentationIntentCode = 4; - static const NSInlinePresentationIntentStrikethrough = 32; - static const NSInlinePresentationIntentSoftBreak = 64; - static const NSInlinePresentationIntentLineBreak = 128; - static const NSInlinePresentationIntentInlineHTML = 256; - static const NSInlinePresentationIntentBlockHTML = 512; -} - -/// NSInputStreamExtensions -extension NSInputStreamExtensions on objc.NSInputStream { - /// initWithFileAtPath: - objc.NSInputStream? initWithFileAtPath(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithFileAtPath_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: false, release: true); - } - - /// inputStreamWithData: - static objc.NSInputStream? inputStreamWithData(objc.NSData data) { - final _$$ref = data.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithData_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// inputStreamWithFileAtPath: - static objc.NSInputStream? inputStreamWithFileAtPath(objc.NSString path) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithFileAtPath_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// inputStreamWithURL: - static objc.NSInputStream? inputStreamWithURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSInputStream.inputStreamWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } -} - -enum NSInsertionPosition { - NSPositionAfter(0), - NSPositionBefore(1), - NSPositionBeginning(2), - NSPositionEnd(3), - NSPositionReplace(4); - - final int value; - const NSInsertionPosition(this.value); - - static NSInsertionPosition fromValue(int value) => switch (value) { - 0 => NSPositionAfter, - 1 => NSPositionBefore, - 2 => NSPositionBeginning, - 3 => NSPositionEnd, - 4 => NSPositionReplace, - _ => throw ArgumentError('Unknown value for NSInsertionPosition: $value'), - }; -} - -typedef NSInteger = ffi.Long; -typedef DartNSInteger = int; - -const int NSInternalScriptError = 8; - -const int NSInternalSpecifierError = 5; - -/// NSInternetPassword -extension NSInternetPassword on NSURLCredential { - /// hasPassword - bool get hasPassword { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.hasPassword', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasPassword); - } - - /// password - objc.NSString? get password { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.password', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_password); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// user - objc.NSString? get user { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.user', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_user); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// credentialWithUser:password:persistence: - static NSURLCredential credentialWithUser( - objc.NSString user, { - required objc.NSString password, - required NSURLCredentialPersistence persistence, - }) { - final _$$ref = user.ref; - final _$$ref$1 = password.ref; - objc.checkOsVersionInternal( - 'NSURLCredential.credentialWithUser:password:persistence:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_17ns785( - _class_NSURLCredential, - _sel_credentialWithUser_password_persistence_, - _$$ref.pointer, - _$$ref$1.pointer, - persistence.value, - ); - return NSURLCredential.fromPointer($ret, retain: true, release: true); - } -} - -const int NSInvalidIndexSpecifierError = 4; - -/// NSItemProvider -extension NSItemProvider on objc.NSURL { - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier( - objc.NSString typeIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_16fy0up( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref$1.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - objc.NSProgress? loadDataWithTypeIdentifier( - objc.NSString typeIdentifier, { - required objc.ObjCBlock - forItemProviderCompletionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - final _$$ref$2 = forItemProviderCompletionHandler.ref; - objc.checkOsVersionInternal( - 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSProgress.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - objc.NSArray get writableTypeIdentifiersForItemProvider { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'writableTypeIdentifiersForItemProvider', - ); - } - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier$1( - objc.NSString typeIdentifier, - ) { - final _$$ref = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_16fy0up( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSURL? objectWithItemProviderData( - objc.NSData data, { - required objc.NSString typeIdentifier, - }) { - final _$$ref = data.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _class_NSURL, - _sel_objectWithItemProviderData_typeIdentifier_error_, - _$$ref.pointer, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// readableTypeIdentifiersForItemProvider - static objc.NSArray getReadableTypeIdentifiersForItemProvider() { - objc.checkOsVersionInternal( - 'NSURL.readableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSURL, - _sel_readableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { - objc.checkOsVersionInternal( - 'NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSURL, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSItemProvider -extension NSItemProvider$1 on objc.NSString { - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier( - objc.NSString typeIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSString', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_16fy0up( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref$1.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - objc.NSProgress? loadDataWithTypeIdentifier( - objc.NSString typeIdentifier, { - required objc.ObjCBlock - forItemProviderCompletionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - final _$$ref$2 = forItemProviderCompletionHandler.ref; - objc.checkOsVersionInternal( - 'NSString.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSProgress.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - objc.NSArray get writableTypeIdentifiersForItemProvider { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSString', - 'writableTypeIdentifiersForItemProvider', - ); - } - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier$1( - objc.NSString typeIdentifier, - ) { - final _$$ref = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSString.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _class_NSString, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSString', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_16fy0up( - _class_NSString, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSString? objectWithItemProviderData( - objc.NSData data, { - required objc.NSString typeIdentifier, - }) { - final _$$ref = data.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSString.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_objectWithItemProviderData_typeIdentifier_error_, - _$$ref.pointer, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// readableTypeIdentifiersForItemProvider - static objc.NSArray getReadableTypeIdentifiersForItemProvider() { - objc.checkOsVersionInternal( - 'NSString.readableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSString, - _sel_readableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { - objc.checkOsVersionInternal( - 'NSString.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSString, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -typedef NSItemProviderCompletionHandler = ffi.Pointer; -typedef DartNSItemProviderCompletionHandler = - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >; - -enum NSItemProviderErrorCode { - NSItemProviderUnknownError(-1), - NSItemProviderItemUnavailableError(-1000), - NSItemProviderUnexpectedValueClassError(-1100), - NSItemProviderUnavailableCoercionError(-1200); - - final int value; - const NSItemProviderErrorCode(this.value); - - static NSItemProviderErrorCode fromValue(int value) => switch (value) { - -1 => NSItemProviderUnknownError, - -1000 => NSItemProviderItemUnavailableError, - -1100 => NSItemProviderUnexpectedValueClassError, - -1200 => NSItemProviderUnavailableCoercionError, - _ => throw ArgumentError( - 'Unknown value for NSItemProviderErrorCode: $value', - ), - }; -} - -typedef NSItemProviderLoadHandler = ffi.Pointer; -typedef DartNSItemProviderLoadHandler = - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >; - -sealed class NSJSONReadingOptions { - static const NSJSONReadingMutableContainers = 1; - static const NSJSONReadingMutableLeaves = 2; - static const NSJSONReadingFragmentsAllowed = 4; - static const NSJSONReadingJSON5Allowed = 8; - static const NSJSONReadingTopLevelDictionaryAssumed = 16; - static const NSJSONReadingAllowFragments = 4; -} - -sealed class NSJSONWritingOptions { - static const NSJSONWritingPrettyPrinted = 1; - static const NSJSONWritingSortedKeys = 2; - static const NSJSONWritingFragmentsAllowed = 4; - static const NSJSONWritingWithoutEscapingSlashes = 8; -} - -const int NSJapaneseEUCStringEncoding = 3; - -const int NSKeySpecifierEvaluationScriptError = 2; - -typedef NSKeyValueChangeKey = ffi.Pointer; -typedef DartNSKeyValueChangeKey = objc.NSString; - -/// NSKeyValueCoding -extension NSKeyValueCoding on objc.NSArray { - /// setValue:forKey: - void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_setValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// valueForKey: - objc.ObjCObject valueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_valueForKey_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSKeyValueCoding -extension NSKeyValueCoding$1 on objc.NSDictionary { - /// valueForKey: - objc.ObjCObject? valueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_valueForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSKeyValueCoding -extension NSKeyValueCoding$2 on objc.NSSet { - /// setValue:forKey: - void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_setValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// valueForKey: - objc.ObjCObject valueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_valueForKey_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSKeyValueCoding -extension NSKeyValueCoding$3 on objc.NSObject { - /// dictionaryWithValuesForKeys: - objc.NSDictionary dictionaryWithValuesForKeys(objc.NSArray keys) { - final _$$ref = object$.ref; - final _$$ref$1 = keys.ref; - objc.checkOsVersionInternal( - 'NSObject.dictionaryWithValuesForKeys:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_dictionaryWithValuesForKeys_, - _$$ref$1.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// mutableArrayValueForKey: - objc.NSMutableArray mutableArrayValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableArrayValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_mutableArrayValueForKey_, - _$$ref$1.pointer, - ); - return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); - } - - /// mutableArrayValueForKeyPath: - objc.NSMutableArray mutableArrayValueForKeyPath(objc.NSString keyPath) { - final _$$ref = object$.ref; - final _$$ref$1 = keyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableArrayValueForKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_mutableArrayValueForKeyPath_, - _$$ref$1.pointer, - ); - return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); - } - - /// mutableOrderedSetValueForKey: - objc.NSMutableOrderedSet mutableOrderedSetValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableOrderedSetValueForKey:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_mutableOrderedSetValueForKey_, - _$$ref$1.pointer, - ); - return objc.NSMutableOrderedSet.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// mutableOrderedSetValueForKeyPath: - objc.NSMutableOrderedSet mutableOrderedSetValueForKeyPath( - objc.NSString keyPath, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = keyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableOrderedSetValueForKeyPath:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_mutableOrderedSetValueForKeyPath_, - _$$ref$1.pointer, - ); - return objc.NSMutableOrderedSet.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// mutableSetValueForKey: - objc.NSMutableSet mutableSetValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableSetValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_mutableSetValueForKey_, - _$$ref$1.pointer, - ); - return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); - } - - /// mutableSetValueForKeyPath: - objc.NSMutableSet mutableSetValueForKeyPath(objc.NSString keyPath) { - final _$$ref = object$.ref; - final _$$ref$1 = keyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.mutableSetValueForKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_mutableSetValueForKeyPath_, - _$$ref$1.pointer, - ); - return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); - } - - /// setNilValueForKey: - void setNilValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.setNilValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setNilValueForKey_, - _$$ref$1.pointer, - ); - } - - /// setValue:forKey: - void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.setValue:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_setValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// setValue:forKeyPath: - void setValue$1(objc.ObjCObject? value, {required objc.NSString forKeyPath}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.setValue:forKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_setValue_forKeyPath_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// setValue:forUndefinedKey: - void setValue$2( - objc.ObjCObject? value, { - required objc.NSString forUndefinedKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forUndefinedKey.ref; - objc.checkOsVersionInternal( - 'NSObject.setValue:forUndefinedKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_setValue_forUndefinedKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// setValuesForKeysWithDictionary: - void setValuesForKeysWithDictionary(objc.NSDictionary keyedValues) { - final _$$ref = object$.ref; - final _$$ref$1 = keyedValues.ref; - objc.checkOsVersionInternal( - 'NSObject.setValuesForKeysWithDictionary:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setValuesForKeysWithDictionary_, - _$$ref$1.pointer, - ); - } - - /// validateValue:forKey:error: - bool validateValue( - ffi.Pointer> ioValue, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.validateValue:forKey:error:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1j9bhml( - _$$ref.pointer, - _sel_validateValue_forKey_error_, - ioValue, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// validateValue:forKeyPath:error: - bool validateValue$1( - ffi.Pointer> ioValue, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.validateValue:forKeyPath:error:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1j9bhml( - _$$ref.pointer, - _sel_validateValue_forKeyPath_error_, - ioValue, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// valueForKey: - objc.ObjCObject? valueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.valueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_valueForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// valueForKeyPath: - objc.ObjCObject? valueForKeyPath(objc.NSString keyPath) { - final _$$ref = object$.ref; - final _$$ref$1 = keyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.valueForKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_valueForKeyPath_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// valueForUndefinedKey: - objc.ObjCObject? valueForUndefinedKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.valueForUndefinedKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_valueForUndefinedKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// accessInstanceVariablesDirectly - static bool getAccessInstanceVariablesDirectly() { - objc.checkOsVersionInternal( - 'NSObject.accessInstanceVariablesDirectly', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_91o635( - _class_NSObject, - _sel_accessInstanceVariablesDirectly, - ); - } -} - -/// NSKeyValueCoding -extension NSKeyValueCoding$4 on objc.NSOrderedSet { - /// setValue:forKey: - void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.setValue:forKey:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_setValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } - - /// valueForKey: - objc.ObjCObject valueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.valueForKey:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_valueForKey_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSKeyValueCoding -extension NSKeyValueCoding$5 on objc.NSMutableDictionary { - /// setValue:forKey: - void setValue(objc.ObjCObject? value, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_setValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } -} - -/// NSKeyValueObserverNotification -extension NSKeyValueObserverNotification on objc.NSObject { - /// didChange:valuesAtIndexes:forKey: - void didChange( - objc.NSKeyValueChange changeKind, { - required objc.NSIndexSet valuesAtIndexes, - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = valuesAtIndexes.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.didChange:valuesAtIndexes:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1diehjo( - _$$ref.pointer, - _sel_didChange_valuesAtIndexes_forKey_, - changeKind.value, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// didChangeValueForKey: - void didChangeValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.didChangeValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_didChangeValueForKey_, - _$$ref$1.pointer, - ); - } - - /// didChangeValueForKey:withSetMutation:usingObjects: - void didChangeValueForKey$1( - objc.NSString key, { - required objc.NSKeyValueSetMutationKind withSetMutation, - required objc.NSSet usingObjects, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final _$$ref$2 = usingObjects.ref; - objc.checkOsVersionInternal( - 'NSObject.didChangeValueForKey:withSetMutation:usingObjects:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_7w1jp7( - _$$ref.pointer, - _sel_didChangeValueForKey_withSetMutation_usingObjects_, - _$$ref$1.pointer, - withSetMutation.value, - _$$ref$2.pointer, - ); - } - - /// willChange:valuesAtIndexes:forKey: - void willChange( - objc.NSKeyValueChange changeKind, { - required objc.NSIndexSet valuesAtIndexes, - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = valuesAtIndexes.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.willChange:valuesAtIndexes:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1diehjo( - _$$ref.pointer, - _sel_willChange_valuesAtIndexes_forKey_, - changeKind.value, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// willChangeValueForKey: - void willChangeValueForKey(objc.NSString key) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - objc.checkOsVersionInternal( - 'NSObject.willChangeValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_willChangeValueForKey_, - _$$ref$1.pointer, - ); - } - - /// willChangeValueForKey:withSetMutation:usingObjects: - void willChangeValueForKey$1( - objc.NSString key, { - required objc.NSKeyValueSetMutationKind withSetMutation, - required objc.NSSet usingObjects, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = key.ref; - final _$$ref$2 = usingObjects.ref; - objc.checkOsVersionInternal( - 'NSObject.willChangeValueForKey:withSetMutation:usingObjects:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_7w1jp7( - _$$ref.pointer, - _sel_willChangeValueForKey_withSetMutation_usingObjects_, - _$$ref$1.pointer, - withSetMutation.value, - _$$ref$2.pointer, - ); - } -} - -/// NSKeyValueObserverRegistration -extension NSKeyValueObserverRegistration on objc.NSArray { - /// addObserver:forKeyPath:options:context: - void addObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required DartNSUInteger options, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_akk2cd( - _$$ref.pointer, - _sel_addObserver_forKeyPath_options_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - options, - context, - ); - } - - /// addObserver:toObjectsAtIndexes:forKeyPath:options:context: - void addObserver$1( - objc.NSObject observer, { - required objc.NSIndexSet toObjectsAtIndexes, - required objc.NSString forKeyPath, - required DartNSUInteger options, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = toObjectsAtIndexes.ref; - final _$$ref$3 = forKeyPath.ref; - _objc_msgSend_1vfgg7v( - _$$ref.pointer, - _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - options, - context, - ); - } - - /// removeObserver:forKeyPath: - void removeObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeObserver:forKeyPath:context: - void removeObserver$1( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSArray.removeObserver:forKeyPath:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1jed5jl( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - context, - ); - } - - /// removeObserver:fromObjectsAtIndexes:forKeyPath: - void removeObserver$2( - objc.NSObject observer, { - required objc.NSIndexSet fromObjectsAtIndexes, - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = fromObjectsAtIndexes.ref; - final _$$ref$3 = forKeyPath.ref; - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// removeObserver:fromObjectsAtIndexes:forKeyPath:context: - void removeObserver$3( - objc.NSObject observer, { - required objc.NSIndexSet fromObjectsAtIndexes, - required objc.NSString forKeyPath, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = fromObjectsAtIndexes.ref; - final _$$ref$3 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSArray.removeObserver:fromObjectsAtIndexes:forKeyPath:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl4k3n( - _$$ref.pointer, - _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - context, - ); - } -} - -/// NSKeyValueObserverRegistration -extension NSKeyValueObserverRegistration$1 on objc.NSSet { - /// addObserver:forKeyPath:options:context: - void addObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required DartNSUInteger options, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_akk2cd( - _$$ref.pointer, - _sel_addObserver_forKeyPath_options_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - options, - context, - ); - } - - /// removeObserver:forKeyPath: - void removeObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeObserver:forKeyPath:context: - void removeObserver$1( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSSet.removeObserver:forKeyPath:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1jed5jl( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - context, - ); - } -} - -/// NSKeyValueObserverRegistration -extension NSKeyValueObserverRegistration$2 on objc.NSOrderedSet { - /// addObserver:forKeyPath:options:context: - void addObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required DartNSUInteger options, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.addObserver:forKeyPath:options:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_akk2cd( - _$$ref.pointer, - _sel_addObserver_forKeyPath_options_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - options, - context, - ); - } - - /// removeObserver:forKeyPath: - void removeObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.removeObserver:forKeyPath:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeObserver:forKeyPath:context: - void removeObserver$1( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.removeObserver:forKeyPath:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1jed5jl( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - context, - ); - } -} - -/// NSKeyValueObserverRegistration -extension NSKeyValueObserverRegistration$3 on objc.NSObject { - /// addObserver:forKeyPath:options:context: - void addObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required DartNSUInteger options, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.addObserver:forKeyPath:options:context:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_akk2cd( - _$$ref.pointer, - _sel_addObserver_forKeyPath_options_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - options, - context, - ); - } - - /// removeObserver:forKeyPath: - void removeObserver( - objc.NSObject observer, { - required objc.NSString forKeyPath, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.removeObserver:forKeyPath:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeObserver:forKeyPath:context: - void removeObserver$1( - objc.NSObject observer, { - required objc.NSString forKeyPath, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = observer.ref; - final _$$ref$2 = forKeyPath.ref; - objc.checkOsVersionInternal( - 'NSObject.removeObserver:forKeyPath:context:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1jed5jl( - _$$ref.pointer, - _sel_removeObserver_forKeyPath_context_, - _$$ref$1.pointer, - _$$ref$2.pointer, - context, - ); - } -} - -/// NSKeyValueObserving -extension NSKeyValueObserving on objc.NSObject { - /// observeValueForKeyPath:ofObject:change:context: - void observeValueForKeyPath( - objc.NSString? keyPath, { - objc.ObjCObject? ofObject, - objc.NSDictionary? change, - required ffi.Pointer context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = keyPath?.ref; - final _$$ref$2 = ofObject?.ref; - final _$$ref$3 = change?.ref; - objc.checkOsVersionInternal( - 'NSObject.observeValueForKeyPath:ofObject:change:context:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1pl4k3n( - _$$ref.pointer, - _sel_observeValueForKeyPath_ofObject_change_context_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - context, - ); - } -} - -/// NSKeyValueObservingCustomization -extension NSKeyValueObservingCustomization on objc.NSObject { - /// observationInfo - ffi.Pointer get observationInfo { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.observationInfo', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_observationInfo); - } - - /// setObservationInfo: - set observationInfo(ffi.Pointer value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.setObservationInfo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_ovsamd(_$$ref.pointer, _sel_setObservationInfo_, value); - } - - /// automaticallyNotifiesObserversForKey: - static bool automaticallyNotifiesObserversForKey(objc.NSString key) { - final _$$ref = key.ref; - objc.checkOsVersionInternal( - 'NSObject.automaticallyNotifiesObserversForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _class_NSObject, - _sel_automaticallyNotifiesObserversForKey_, - _$$ref.pointer, - ); - } - - /// keyPathsForValuesAffectingValueForKey: - static objc.NSSet keyPathsForValuesAffectingValueForKey(objc.NSString key) { - final _$$ref = key.ref; - objc.checkOsVersionInternal( - 'NSObject.keyPathsForValuesAffectingValueForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSObject, - _sel_keyPathsForValuesAffectingValueForKey_, - _$$ref.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } -} - -typedef NSKeyValueOperator = ffi.Pointer; -typedef DartNSKeyValueOperator = objc.NSString; - -/// NSKeyValueSharedObserverRegistration -extension NSKeyValueSharedObserverRegistration on objc.NSObject { - /// setSharedObservers: - void setSharedObservers(NSKeyValueSharedObserversSnapshot? sharedObservers) { - final _$$ref = object$.ref; - final _$$ref$1 = sharedObservers?.ref; - objc.checkOsVersionInternal( - 'NSObject.setSharedObservers:', - iOS: (false, (18, 0, 0)), - macOS: (false, (15, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setSharedObservers_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// WARNING: NSKeyValueSharedObserversSnapshot is a stub. To generate bindings for this class, include -/// NSKeyValueSharedObserversSnapshot in your config's objc-interfaces list. -/// -/// NSKeyValueSharedObserversSnapshot -extension type NSKeyValueSharedObserversSnapshot._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSKeyValueSharedObserversSnapshot] that points to the same underlying object as [other]. - NSKeyValueSharedObserversSnapshot.as(objc.ObjCObject other) - : object$ = other { - objc.checkOsVersionInternal( - 'NSKeyValueSharedObserversSnapshot', - iOS: (false, (18, 0, 0)), - macOS: (false, (15, 0, 0)), - ); - } - - /// Constructs a [NSKeyValueSharedObserversSnapshot] that wraps the given raw object pointer. - NSKeyValueSharedObserversSnapshot.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSKeyValueSharedObserversSnapshot', - iOS: (false, (18, 0, 0)), - macOS: (false, (15, 0, 0)), - ); - } -} - -/// NSKeyValueSorting -extension NSKeyValueSorting on objc.NSMutableOrderedSet { - /// sortUsingDescriptors: - void sortUsingDescriptors(objc.NSArray sortDescriptors) { - final _$$ref = object$.ref; - final _$$ref$1 = sortDescriptors.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.sortUsingDescriptors:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_sortUsingDescriptors_, - _$$ref$1.pointer, - ); - } -} - -/// NSKeyValueSorting -extension NSKeyValueSorting$1 on objc.NSOrderedSet { - /// sortedArrayUsingDescriptors: - objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { - final _$$ref = object$.ref; - final _$$ref$1 = sortDescriptors.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.sortedArrayUsingDescriptors:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_sortedArrayUsingDescriptors_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -const int NSKeyValueValidationError = 1024; - -/// WARNING: NSKeyedArchiver is a stub. To generate bindings for this class, include -/// NSKeyedArchiver in your config's objc-interfaces list. -/// -/// NSKeyedArchiver -extension type NSKeyedArchiver._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSCoder { - /// Constructs a [NSKeyedArchiver] that points to the same underlying object as [other]. - NSKeyedArchiver.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSKeyedArchiver] that wraps the given raw object pointer. - NSKeyedArchiver.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSKeyedArchiverDelegate -extension type NSKeyedArchiverDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSKeyedArchiverDelegate] that points to the same underlying object as [other]. - NSKeyedArchiverDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSKeyedArchiverDelegate] that wraps the given raw object pointer. - NSKeyedArchiverDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSKeyedArchiverDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSKeyedArchiverDelegate, - ); - } -} - -extension NSKeyedArchiverDelegate$Methods on NSKeyedArchiverDelegate { - /// archiver:didEncodeObject: - void archiver(NSKeyedArchiver archiver, {objc.ObjCObject? didEncodeObject}) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - final _$$ref$2 = didEncodeObject?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_archiver_didEncodeObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedArchiverDelegate', - 'archiver:didEncodeObject:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_archiver_didEncodeObject_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// archiver:willEncodeObject: - objc.ObjCObject? archiver$1( - NSKeyedArchiver archiver, { - required objc.ObjCObject willEncodeObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - final _$$ref$2 = willEncodeObject.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_archiver_willEncodeObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedArchiverDelegate', - 'archiver:willEncodeObject:', - ); - } - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_archiver_willEncodeObject_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// archiver:willReplaceObject:withObject: - void archiver$2( - NSKeyedArchiver archiver, { - objc.ObjCObject? willReplaceObject, - objc.ObjCObject? withObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - final _$$ref$2 = willReplaceObject?.ref; - final _$$ref$3 = withObject?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_archiver_willReplaceObject_withObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedArchiverDelegate', - 'archiver:willReplaceObject:withObject:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_archiver_willReplaceObject_withObject_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// archiverDidFinish: - void archiverDidFinish(NSKeyedArchiver archiver) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_archiverDidFinish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedArchiverDelegate', - 'archiverDidFinish:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_archiverDidFinish_, - _$$ref$1.pointer, - ); - } - - /// archiverWillFinish: - void archiverWillFinish(NSKeyedArchiver archiver) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_archiverWillFinish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedArchiverDelegate', - 'archiverWillFinish:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_archiverWillFinish_, - _$$ref$1.pointer, - ); - } -} - -interface class NSKeyedArchiverDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSKeyedArchiverDelegate.cast()); - - /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedArchiverDelegate implement({ - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedArchiverDelegate', - ); - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_.implement( - builder, - archiver_didEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implement(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implement( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implement( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedArchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_.implement( - builder, - archiver_didEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implement(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implement( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implement( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedArchiverDelegate implementAsListener({ - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedArchiverDelegate', - ); - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ - .implementAsListener(builder, archiver_didEncodeObject_); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implementAsListener(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsListener( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsListener( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedArchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ - .implementAsListener(builder, archiver_didEncodeObject_); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implementAsListener(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsListener( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsListener( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSKeyedArchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedArchiverDelegate implementAsBlocking({ - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedArchiverDelegate', - ); - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ - .implementAsBlocking(builder, archiver_didEncodeObject_); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implementAsBlocking(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsBlocking( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsBlocking( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedArchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedArchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSKeyedArchiver, objc.ObjCObject?)? archiver_didEncodeObject_, - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject)? - archiver_willEncodeObject_, - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?)? - archiver_willReplaceObject_withObject_, - void Function(NSKeyedArchiver)? archiverDidFinish_, - void Function(NSKeyedArchiver)? archiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedArchiverDelegate$Builder.archiver_didEncodeObject_ - .implementAsBlocking(builder, archiver_didEncodeObject_); - NSKeyedArchiverDelegate$Builder.archiver_willEncodeObject_.implement( - builder, - archiver_willEncodeObject_, - ); - NSKeyedArchiverDelegate$Builder.archiver_willReplaceObject_withObject_ - .implementAsBlocking(builder, archiver_willReplaceObject_withObject_); - NSKeyedArchiverDelegate$Builder.archiverDidFinish_.implementAsBlocking( - builder, - archiverDidFinish_, - ); - NSKeyedArchiverDelegate$Builder.archiverWillFinish_.implementAsBlocking( - builder, - archiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// archiver:didEncodeObject: - static final archiver_didEncodeObject_ = - objc.ObjCProtocolListenableMethod< - void Function(NSKeyedArchiver, objc.ObjCObject?) - >( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_didEncodeObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_didEncodeObject_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.listener( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSKeyedArchiver, objc.ObjCObject?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.blocking( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - ) => func(arg1, arg2), - ), - ); - - /// archiver:willEncodeObject: - static final archiver_willEncodeObject_ = - objc.ObjCProtocolMethod< - objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject) - >( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_willEncodeObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_zi5eed) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_willEncodeObject_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.ObjCObject? Function(NSKeyedArchiver, objc.ObjCObject) func) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject arg2, - ) => func(arg1, arg2), - ), - ); - - /// archiver:willReplaceObject:withObject: - static final archiver_willReplaceObject_withObject_ = - objc.ObjCProtocolListenableMethod< - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) - >( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_willReplaceObject_withObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedArchiverDelegate, - _sel_archiver_willReplaceObject_withObject_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - objc.ObjCObject? arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.listener( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - objc.ObjCObject? arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSKeyedArchiver, objc.ObjCObject?, objc.ObjCObject?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl.blocking( - ( - ffi.Pointer _, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - objc.ObjCObject? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// archiverDidFinish: - static final archiverDidFinish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSKeyedArchiverDelegate, - _sel_archiverDidFinish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedArchiverDelegate, - _sel_archiverDidFinish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.fromFunction( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.listener( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.blocking( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - ); - - /// archiverWillFinish: - static final archiverWillFinish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSKeyedArchiverDelegate, - _sel_archiverWillFinish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedArchiverDelegate, - _sel_archiverWillFinish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.fromFunction( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.listener( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - (void Function(NSKeyedArchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver.blocking( - (ffi.Pointer _, NSKeyedArchiver arg1) => func(arg1), - ), - ); -} - -/// NSKeyedArchiverObjectSubstitution -extension NSKeyedArchiverObjectSubstitution on objc.NSObject { - /// classForKeyedArchiver - objc.ObjCObject? get classForKeyedArchiver { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classForKeyedArchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_classForKeyedArchiver, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// replacementObjectForKeyedArchiver: - objc.ObjCObject? replacementObjectForKeyedArchiver(NSKeyedArchiver archiver) { - final _$$ref = object$.ref; - final _$$ref$1 = archiver.ref; - objc.checkOsVersionInternal( - 'NSObject.replacementObjectForKeyedArchiver:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_replacementObjectForKeyedArchiver_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// classFallbacksForKeyedArchiver - static objc.NSArray classFallbacksForKeyedArchiver() { - objc.checkOsVersionInternal( - 'NSObject.classFallbacksForKeyedArchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSObject, - _sel_classFallbacksForKeyedArchiver, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSKeyedUnarchiver is a stub. To generate bindings for this class, include -/// NSKeyedUnarchiver in your config's objc-interfaces list. -/// -/// NSKeyedUnarchiver -extension type NSKeyedUnarchiver._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSCoder { - /// Constructs a [NSKeyedUnarchiver] that points to the same underlying object as [other]. - NSKeyedUnarchiver.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSKeyedUnarchiver] that wraps the given raw object pointer. - NSKeyedUnarchiver.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSKeyedUnarchiverDelegate -extension type NSKeyedUnarchiverDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSKeyedUnarchiverDelegate] that points to the same underlying object as [other]. - NSKeyedUnarchiverDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSKeyedUnarchiverDelegate] that wraps the given raw object pointer. - NSKeyedUnarchiverDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSKeyedUnarchiverDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSKeyedUnarchiverDelegate, - ); - } -} - -extension NSKeyedUnarchiverDelegate$Methods on NSKeyedUnarchiverDelegate { - /// unarchiver:cannotDecodeObjectOfClassName:originalClasses: - objc.ObjCObject? unarchiver( - NSKeyedUnarchiver unarchiver, { - required objc.NSString cannotDecodeObjectOfClassName, - required objc.NSArray originalClasses, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = unarchiver.ref; - final _$$ref$2 = cannotDecodeObjectOfClassName.ref; - final _$$ref$3 = originalClasses.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedUnarchiverDelegate', - 'unarchiver:cannotDecodeObjectOfClassName:originalClasses:', - ); - } - final $ret = _objc_msgSend_11spmsz( - _$$ref.pointer, - _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// unarchiver:didDecodeObject: - objc.ObjCObject? unarchiver$1( - NSKeyedUnarchiver unarchiver, { - objc.ObjCObject? didDecodeObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = unarchiver.ref; - final _$$ref$2 = didDecodeObject?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_unarchiver_didDecodeObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedUnarchiverDelegate', - 'unarchiver:didDecodeObject:', - ); - } - final $ret = _objc_msgSend_wfjd8v( - _$$ref.pointer, - _sel_unarchiver_didDecodeObject_, - _$$ref$1.pointer, - _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// unarchiver:willReplaceObject:withObject: - void unarchiver$2( - NSKeyedUnarchiver unarchiver, { - required objc.ObjCObject willReplaceObject, - required objc.ObjCObject withObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = unarchiver.ref; - final _$$ref$2 = willReplaceObject.ref; - final _$$ref$3 = withObject.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_unarchiver_willReplaceObject_withObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedUnarchiverDelegate', - 'unarchiver:willReplaceObject:withObject:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_unarchiver_willReplaceObject_withObject_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// unarchiverDidFinish: - void unarchiverDidFinish(NSKeyedUnarchiver unarchiver) { - final _$$ref = object$.ref; - final _$$ref$1 = unarchiver.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_unarchiverDidFinish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedUnarchiverDelegate', - 'unarchiverDidFinish:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_unarchiverDidFinish_, - _$$ref$1.pointer, - ); - } - - /// unarchiverWillFinish: - void unarchiverWillFinish(NSKeyedUnarchiver unarchiver) { - final _$$ref = object$.ref; - final _$$ref$1 = unarchiver.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_unarchiverWillFinish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSKeyedUnarchiverDelegate', - 'unarchiverWillFinish:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_unarchiverWillFinish_, - _$$ref$1.pointer, - ); - } -} - -interface class NSKeyedUnarchiverDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSKeyedUnarchiverDelegate.cast()); - - /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedUnarchiverDelegate implement({ - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedUnarchiverDelegate', - ); - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implement(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implement( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implement( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedUnarchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implement(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implement( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implement( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedUnarchiverDelegate implementAsListener({ - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedUnarchiverDelegate', - ); - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implementAsListener(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsListener( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsListener( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedUnarchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implementAsListener(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsListener( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsListener( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSKeyedUnarchiverDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSKeyedUnarchiverDelegate implementAsBlocking({ - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSKeyedUnarchiverDelegate', - ); - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implementAsBlocking(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsBlocking( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsBlocking( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - return NSKeyedUnarchiverDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSKeyedUnarchiverDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.NSString, objc.NSArray)? - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?)? - unarchiver_didDecodeObject_, - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject)? - unarchiver_willReplaceObject_withObject_, - void Function(NSKeyedUnarchiver)? unarchiverDidFinish_, - void Function(NSKeyedUnarchiver)? unarchiverWillFinish_, - bool $keepIsolateAlive = true, - }) { - NSKeyedUnarchiverDelegate$Builder - .unarchiver_cannotDecodeObjectOfClassName_originalClasses_ - .implement( - builder, - unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_didDecodeObject_.implement( - builder, - unarchiver_didDecodeObject_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiver_willReplaceObject_withObject_ - .implementAsBlocking(builder, unarchiver_willReplaceObject_withObject_); - NSKeyedUnarchiverDelegate$Builder.unarchiverDidFinish_.implementAsBlocking( - builder, - unarchiverDidFinish_, - ); - NSKeyedUnarchiverDelegate$Builder.unarchiverWillFinish_.implementAsBlocking( - builder, - unarchiverWillFinish_, - ); - builder.addProtocol($protocol); - } - - /// unarchiver:cannotDecodeObjectOfClassName:originalClasses: - static final unarchiver_cannotDecodeObjectOfClassName_originalClasses_ = - objc.ObjCProtocolMethod< - objc.ObjCObject? Function( - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - >( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1yw2rcr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.ObjCObject? Function( - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - func, - ) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray.fromFunction( - ( - ffi.Pointer _, - NSKeyedUnarchiver arg1, - objc.NSString arg2, - objc.NSArray arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// unarchiver:didDecodeObject: - static final unarchiver_didDecodeObject_ = - objc.ObjCProtocolMethod< - objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?) - >( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_didDecodeObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1p0fswn) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_didDecodeObject_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.ObjCObject? Function(NSKeyedUnarchiver, objc.ObjCObject?) func) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSKeyedUnarchiver arg1, - objc.ObjCObject? arg2, - ) => func(arg1, arg2), - ), - ); - - /// unarchiver:willReplaceObject:withObject: - static final unarchiver_willReplaceObject_withObject_ = - objc.ObjCProtocolListenableMethod< - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) - >( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_willReplaceObject_withObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiver_willReplaceObject_withObject_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSKeyedUnarchiver arg1, - objc.ObjCObject arg2, - objc.ObjCObject arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.listener( - ( - ffi.Pointer _, - NSKeyedUnarchiver arg1, - objc.ObjCObject arg2, - objc.ObjCObject arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSKeyedUnarchiver, objc.ObjCObject, objc.ObjCObject) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl.blocking( - ( - ffi.Pointer _, - NSKeyedUnarchiver arg1, - objc.ObjCObject arg2, - objc.ObjCObject arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// unarchiverDidFinish: - static final unarchiverDidFinish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiverDidFinish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiverDidFinish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.fromFunction( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.listener( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.blocking( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - ); - - /// unarchiverWillFinish: - static final unarchiverWillFinish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiverWillFinish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSKeyedUnarchiverDelegate, - _sel_unarchiverWillFinish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.fromFunction( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.listener( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - (void Function(NSKeyedUnarchiver) func) => - ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver.blocking( - (ffi.Pointer _, NSKeyedUnarchiver arg1) => func(arg1), - ), - ); -} - -/// NSKeyedUnarchiverObjectSubstitution -extension NSKeyedUnarchiverObjectSubstitution on objc.NSObject { - /// classForKeyedUnarchiver - static objc.ObjCObject classForKeyedUnarchiver() { - objc.checkOsVersionInternal( - 'NSObject.classForKeyedUnarchiver', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSObject, - _sel_classForKeyedUnarchiver, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -enum NSLengthFormatterUnit { - NSLengthFormatterUnitMillimeter(8), - NSLengthFormatterUnitCentimeter(9), - NSLengthFormatterUnitMeter(11), - NSLengthFormatterUnitKilometer(14), - NSLengthFormatterUnitInch(1281), - NSLengthFormatterUnitFoot(1282), - NSLengthFormatterUnitYard(1283), - NSLengthFormatterUnitMile(1284); - - final int value; - const NSLengthFormatterUnit(this.value); - - static NSLengthFormatterUnit fromValue(int value) => switch (value) { - 8 => NSLengthFormatterUnitMillimeter, - 9 => NSLengthFormatterUnitCentimeter, - 11 => NSLengthFormatterUnitMeter, - 14 => NSLengthFormatterUnitKilometer, - 1281 => NSLengthFormatterUnitInch, - 1282 => NSLengthFormatterUnitFoot, - 1283 => NSLengthFormatterUnitYard, - 1284 => NSLengthFormatterUnitMile, - _ => throw ArgumentError('Unknown value for NSLengthFormatterUnit: $value'), - }; -} - -/// NSLinguisticAnalysis -extension NSLinguisticAnalysis on objc.NSString { - /// enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock: - @Deprecated( - 'All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API', - ) - void enumerateLinguisticTagsInRange( - NSRange range, { - required DartNSLinguisticTagScheme scheme, - required DartNSUInteger options, - NSOrthography? orthography, - required objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = scheme.ref; - final _$$ref$2 = orthography?.ref; - final _$$ref$3 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSString.enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_vij4rw( - _$$ref.pointer, - _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_, - range, - _$$ref$1.pointer, - options, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3.pointer, - ); - } - - /// linguisticTagsInRange:scheme:options:orthography:tokenRanges: - @Deprecated( - 'All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API', - ) - objc.NSArray linguisticTagsInRange( - NSRange range, { - required DartNSLinguisticTagScheme scheme, - required DartNSUInteger options, - NSOrthography? orthography, - required ffi.Pointer> tokenRanges, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = scheme.ref; - final _$$ref$2 = orthography?.ref; - objc.checkOsVersionInternal( - 'NSString.linguisticTagsInRange:scheme:options:orthography:tokenRanges:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1l09uru( - _$$ref.pointer, - _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_, - range, - _$$ref$1.pointer, - options, - _$$ref$2?.pointer ?? ffi.nullptr, - tokenRanges, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -typedef NSLinguisticTag = ffi.Pointer; -typedef DartNSLinguisticTag = objc.NSString; -typedef NSLinguisticTagScheme = ffi.Pointer; -typedef DartNSLinguisticTagScheme = objc.NSString; - -enum NSLinguisticTaggerUnit { - NSLinguisticTaggerUnitWord(0), - NSLinguisticTaggerUnitSentence(1), - NSLinguisticTaggerUnitParagraph(2), - NSLinguisticTaggerUnitDocument(3); - - final int value; - const NSLinguisticTaggerUnit(this.value); - - static NSLinguisticTaggerUnit fromValue(int value) => switch (value) { - 0 => NSLinguisticTaggerUnitWord, - 1 => NSLinguisticTaggerUnitSentence, - 2 => NSLinguisticTaggerUnitParagraph, - 3 => NSLinguisticTaggerUnitDocument, - _ => throw ArgumentError( - 'Unknown value for NSLinguisticTaggerUnit: $value', - ), - }; -} - -/// NSLocaleCreation -extension NSLocaleCreation on objc.NSLocale { - /// autoupdatingCurrentLocale - static objc.NSLocale getAutoupdatingCurrentLocale() { - objc.checkOsVersionInternal( - 'NSLocale.autoupdatingCurrentLocale', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSLocale, - _sel_autoupdatingCurrentLocale, - ); - return objc.NSLocale.fromPointer($ret, retain: true, release: true); - } - - /// currentLocale - static objc.NSLocale getCurrentLocale() { - final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_currentLocale); - return objc.NSLocale.fromPointer($ret, retain: true, release: true); - } - - /// localeWithLocaleIdentifier: - static objc.NSLocale localeWithLocaleIdentifier(objc.NSString ident) { - final _$$ref = ident.ref; - objc.checkOsVersionInternal( - 'NSLocale.localeWithLocaleIdentifier:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSLocale, - _sel_localeWithLocaleIdentifier_, - _$$ref.pointer, - ); - return objc.NSLocale.fromPointer($ret, retain: true, release: true); - } - - /// systemLocale - static objc.NSLocale getSystemLocale() { - final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_systemLocale); - return objc.NSLocale.fromPointer($ret, retain: true, release: true); - } -} - -/// NSLocaleGeneralInfo -extension NSLocaleGeneralInfo on objc.NSLocale { - /// ISOCountryCodes - static objc.NSArray getISOCountryCodes() { - final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOCountryCodes); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// ISOCurrencyCodes - static objc.NSArray getISOCurrencyCodes() { - final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOCurrencyCodes); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// ISOLanguageCodes - static objc.NSArray getISOLanguageCodes() { - final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_ISOLanguageCodes); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// availableLocaleIdentifiers - static objc.NSArray getAvailableLocaleIdentifiers() { - final $ret = _objc_msgSend_151sglz( - _class_NSLocale, - _sel_availableLocaleIdentifiers, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// canonicalLanguageIdentifierFromString: - static objc.NSString canonicalLanguageIdentifierFromString( - objc.NSString string, - ) { - final _$$ref = string.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSLocale, - _sel_canonicalLanguageIdentifierFromString_, - _$$ref.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// canonicalLocaleIdentifierFromString: - static objc.NSString canonicalLocaleIdentifierFromString( - objc.NSString string, - ) { - final _$$ref = string.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSLocale, - _sel_canonicalLocaleIdentifierFromString_, - _$$ref.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// characterDirectionForLanguage: - static objc.NSLocaleLanguageDirection characterDirectionForLanguage( - objc.NSString isoLangCode, - ) { - final _$$ref = isoLangCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.characterDirectionForLanguage:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1kn7frf( - _class_NSLocale, - _sel_characterDirectionForLanguage_, - _$$ref.pointer, - ); - return objc.NSLocaleLanguageDirection.fromValue($ret); - } - - /// commonISOCurrencyCodes - static objc.NSArray getCommonISOCurrencyCodes() { - objc.checkOsVersionInternal( - 'NSLocale.commonISOCurrencyCodes', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSLocale, - _sel_commonISOCurrencyCodes, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// componentsFromLocaleIdentifier: - static objc.NSDictionary componentsFromLocaleIdentifier( - objc.NSString string, - ) { - final _$$ref = string.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSLocale, - _sel_componentsFromLocaleIdentifier_, - _$$ref.pointer, - ); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// lineDirectionForLanguage: - static objc.NSLocaleLanguageDirection lineDirectionForLanguage( - objc.NSString isoLangCode, - ) { - final _$$ref = isoLangCode.ref; - objc.checkOsVersionInternal( - 'NSLocale.lineDirectionForLanguage:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1kn7frf( - _class_NSLocale, - _sel_lineDirectionForLanguage_, - _$$ref.pointer, - ); - return objc.NSLocaleLanguageDirection.fromValue($ret); - } - - /// localeIdentifierFromComponents: - static objc.NSString localeIdentifierFromComponents(objc.NSDictionary dict) { - final _$$ref = dict.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSLocale, - _sel_localeIdentifierFromComponents_, - _$$ref.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// localeIdentifierFromWindowsLocaleCode: - static objc.NSString? localeIdentifierFromWindowsLocaleCode(int lcid) { - objc.checkOsVersionInternal( - 'NSLocale.localeIdentifierFromWindowsLocaleCode:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_lx7wnn( - _class_NSLocale, - _sel_localeIdentifierFromWindowsLocaleCode_, - lcid, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// preferredLanguages - static objc.NSArray getPreferredLanguages() { - objc.checkOsVersionInternal( - 'NSLocale.preferredLanguages', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSLocale, - _sel_preferredLanguages, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// windowsLocaleCodeFromLocaleIdentifier: - static int windowsLocaleCodeFromLocaleIdentifier( - objc.NSString localeIdentifier, - ) { - final _$$ref = localeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSLocale.windowsLocaleCodeFromLocaleIdentifier:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_1nwix4r( - _class_NSLocale, - _sel_windowsLocaleCodeFromLocaleIdentifier_, - _$$ref.pointer, - ); - } -} - -typedef NSLocaleKey = ffi.Pointer; -typedef DartNSLocaleKey = objc.NSString; - -/// NSLocking -extension type NSLocking._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSLocking] that points to the same underlying object as [other]. - NSLocking.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSLocking] that wraps the given raw object pointer. - NSLocking.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSLocking]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSLocking, - ); - } -} - -extension NSLocking$Methods on NSLocking { - /// lock - void lock() { - final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_lock); - } - - /// unlock - void unlock() { - final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_unlock); - } -} - -interface class NSLocking$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSLocking.cast()); - - /// Builds an object that implements the NSLocking protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSLocking implement({ - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); - NSLocking$Builder.lock.implement(builder, lock); - NSLocking$Builder.unlock.implement(builder, unlock); - builder.addProtocol($protocol); - return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the NSLocking protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - NSLocking$Builder.lock.implement(builder, lock); - NSLocking$Builder.unlock.implement(builder, unlock); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSLocking protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSLocking implementAsListener({ - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); - NSLocking$Builder.lock.implementAsListener(builder, lock); - NSLocking$Builder.unlock.implementAsListener(builder, unlock); - builder.addProtocol($protocol); - return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the NSLocking protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - NSLocking$Builder.lock.implementAsListener(builder, lock); - NSLocking$Builder.unlock.implementAsListener(builder, unlock); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSLocking protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSLocking implementAsBlocking({ - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSLocking'); - NSLocking$Builder.lock.implementAsBlocking(builder, lock); - NSLocking$Builder.unlock.implementAsBlocking(builder, unlock); - builder.addProtocol($protocol); - return NSLocking.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the NSLocking protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function() lock, - required void Function() unlock, - bool $keepIsolateAlive = true, - }) { - NSLocking$Builder.lock.implementAsBlocking(builder, lock); - NSLocking$Builder.unlock.implementAsBlocking(builder, unlock); - builder.addProtocol($protocol); - } - - /// lock - static final lock = objc.ObjCProtocolListenableMethod( - _protocol_NSLocking, - _sel_lock, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ovsamd) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSLocking, - _sel_lock, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); - - /// unlock - static final unlock = objc.ObjCProtocolListenableMethod( - _protocol_NSLocking, - _sel_unlock, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ovsamd) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSLocking, - _sel_unlock, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); -} - -@Deprecated('Not supported') -const int NSMACHOperatingSystem = 5; - -const int NSMacOSRomanStringEncoding = 30; - -/// NSMachPortDelegate -extension type NSMachPortDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSPortDelegate { - /// Constructs a [NSMachPortDelegate] that points to the same underlying object as [other]. - NSMachPortDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSMachPortDelegate] that wraps the given raw object pointer. - NSMachPortDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMachPortDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSMachPortDelegate, - ); - } -} - -extension NSMachPortDelegate$Methods on NSMachPortDelegate { - /// handleMachMessage: - void handleMachMessage(ffi.Pointer msg) { - final _$$ref = object$.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_handleMachMessage_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSMachPortDelegate', - 'handleMachMessage:', - ); - } - _objc_msgSend_ovsamd(_$$ref.pointer, _sel_handleMachMessage_, msg); - } - - /// handlePortMessage: - void handlePortMessage(objc.NSPortMessage message) { - final _$$ref = object$.ref; - final _$$ref$1 = message.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_handlePortMessage_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSMachPortDelegate', - 'handlePortMessage:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_handlePortMessage_, - _$$ref$1.pointer, - ); - } -} - -interface class NSMachPortDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSMachPortDelegate.cast()); - - /// Builds an object that implements the NSMachPortDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSMachPortDelegate implement({ - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); - NSMachPortDelegate$Builder.handleMachMessage_.implement( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implement( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - return NSMachPortDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSMachPortDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - NSMachPortDelegate$Builder.handleMachMessage_.implement( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implement( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSMachPortDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSMachPortDelegate implementAsListener({ - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); - NSMachPortDelegate$Builder.handleMachMessage_.implementAsListener( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implementAsListener( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - return NSMachPortDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSMachPortDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - NSMachPortDelegate$Builder.handleMachMessage_.implementAsListener( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implementAsListener( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSMachPortDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSMachPortDelegate implementAsBlocking({ - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSMachPortDelegate'); - NSMachPortDelegate$Builder.handleMachMessage_.implementAsBlocking( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implementAsBlocking( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - return NSMachPortDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSMachPortDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(ffi.Pointer)? handleMachMessage_, - void Function(objc.NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - NSMachPortDelegate$Builder.handleMachMessage_.implementAsBlocking( - builder, - handleMachMessage_, - ); - NSMachPortDelegate$Builder.handlePortMessage_.implementAsBlocking( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - } - - /// handleMachMessage: - static final handleMachMessage_ = - objc.ObjCProtocolListenableMethod)>( - _protocol_NSMachPortDelegate, - _sel_handleMachMessage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1037nh9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMachPortDelegate, - _sel_handleMachMessage_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(ffi.Pointer) func) => - ObjCBlock_ffiVoid_ffiVoid_ffiVoid.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1), - ), - (void Function(ffi.Pointer) func) => - ObjCBlock_ffiVoid_ffiVoid_ffiVoid.listener( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1), - ), - (void Function(ffi.Pointer) func) => - ObjCBlock_ffiVoid_ffiVoid_ffiVoid.blocking( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1), - ), - ); - - /// handlePortMessage: - static final handlePortMessage_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSMachPortDelegate, - _sel_handlePortMessage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMachPortDelegate, - _sel_handlePortMessage_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(objc.NSPortMessage) func) => - ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.fromFunction( - (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), - ), - (void Function(objc.NSPortMessage) func) => - ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.listener( - (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), - ), - (void Function(objc.NSPortMessage) func) => - ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.blocking( - (ffi.Pointer _, objc.NSPortMessage arg1) => func(arg1), - ), - ); -} - -sealed class NSMachPortOptions { - static const NSMachPortDeallocateNone = 0; - static const NSMachPortDeallocateSendRight = 1; - static const NSMachPortDeallocateReceiveRight = 2; -} - -final class NSMapEnumerator extends ffi.Struct { - @NSUInteger() - external int _pi; - - @NSUInteger() - external int _si; - - external ffi.Pointer _bs; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int $pi, - required int $si, - required ffi.Pointer $bs, - }) => $allocator() - ..ref._pi = $pi - ..ref._si = $si - ..ref._bs = $bs; -} - -/// WARNING: NSMapTable is a stub. To generate bindings for this class, include -/// NSMapTable in your config's objc-interfaces list. -/// -/// NSMapTable -extension type NSMapTable._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding, - objc.NSFastEnumeration { - /// Constructs a [NSMapTable] that points to the same underlying object as [other]. - NSMapTable.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMapTable', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } - - /// Constructs a [NSMapTable] that wraps the given raw object pointer. - NSMapTable.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMapTable', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } -} - -const int NSMapTableCopyIn = 65536; - -final class NSMapTableKeyCallBacks extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - hash; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - isEqual; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - release; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe; - - external ffi.Pointer notAKeyMarker; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - hash, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - isEqual, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - release, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe, - required ffi.Pointer notAKeyMarker, - }) => $allocator() - ..ref.hash = hash - ..ref.isEqual = isEqual - ..ref.retain = retain - ..ref.release = release - ..ref.describe = describe - ..ref.notAKeyMarker = notAKeyMarker; -} - -const int NSMapTableObjectPointerPersonality = 512; - -typedef NSMapTableOptions = NSUInteger; - -const int NSMapTableStrongMemory = 0; - -final class NSMapTableValueCallBacks extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - retain; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - release; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - retain, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - release, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - describe, - }) => $allocator() - ..ref.retain = retain - ..ref.release = release - ..ref.describe = describe; -} - -const int NSMapTableWeakMemory = 5; - -const int NSMapTableZeroingWeakMemory = 1; - -enum NSMassFormatterUnit { - NSMassFormatterUnitGram(11), - NSMassFormatterUnitKilogram(14), - NSMassFormatterUnitOunce(1537), - NSMassFormatterUnitPound(1538), - NSMassFormatterUnitStone(1539); - - final int value; - const NSMassFormatterUnit(this.value); - - static NSMassFormatterUnit fromValue(int value) => switch (value) { - 11 => NSMassFormatterUnitGram, - 14 => NSMassFormatterUnitKilogram, - 1537 => NSMassFormatterUnitOunce, - 1538 => NSMassFormatterUnitPound, - 1539 => NSMassFormatterUnitStone, - _ => throw ArgumentError('Unknown value for NSMassFormatterUnit: $value'), - }; -} - -/// NSMatching -extension NSMatching on NSRegularExpression { - /// enumerateMatchesInString:options:range:usingBlock: - void enumerateMatchesInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - required objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - > - usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - final _$$ref$2 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.enumerateMatchesInString:options:range:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_105ehca( - _$$ref.pointer, - _sel_enumerateMatchesInString_options_range_usingBlock_, - _$$ref$1.pointer, - options, - range, - _$$ref$2.pointer, - ); - } - - /// firstMatchInString:options:range: - NSTextCheckingResult? firstMatchInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.firstMatchInString:options:range:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_pccgql( - _$$ref.pointer, - _sel_firstMatchInString_options_range_, - _$$ref$1.pointer, - options, - range, - ); - return $ret.address == 0 - ? null - : NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// matchesInString:options:range: - objc.NSArray matchesInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.matchesInString:options:range:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_pccgql( - _$$ref.pointer, - _sel_matchesInString_options_range_, - _$$ref$1.pointer, - options, - range, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// numberOfMatchesInString:options:range: - DartNSUInteger numberOfMatchesInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.numberOfMatchesInString:options:range:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_1rbikrg( - _$$ref.pointer, - _sel_numberOfMatchesInString_options_range_, - _$$ref$1.pointer, - options, - range, - ); - } - - /// rangeOfFirstMatchInString:options:range: - NSRange rangeOfFirstMatchInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.rangeOfFirstMatchInString:options:range:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_yl37m5Stret( - $ptr, - _$$ref.pointer, - _sel_rangeOfFirstMatchInString_options_range_, - _$$ref$1.pointer, - options, - range, - ) - : $ptr.ref = _objc_msgSend_yl37m5( - _$$ref.pointer, - _sel_rangeOfFirstMatchInString_options_range_, - _$$ref$1.pointer, - options, - range, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } -} - -sealed class NSMatchingFlags { - static const NSMatchingProgress = 1; - static const NSMatchingCompleted = 2; - static const NSMatchingHitEnd = 4; - static const NSMatchingRequiredEnd = 8; - static const NSMatchingInternalError = 16; -} - -sealed class NSMatchingOptions { - static const NSMatchingReportProgress = 1; - static const NSMatchingReportCompletion = 2; - static const NSMatchingAnchored = 4; - static const NSMatchingWithTransparentBounds = 8; - static const NSMatchingWithoutAnchoringBounds = 16; -} - -sealed class NSMeasurementFormatterUnitOptions { - static const NSMeasurementFormatterUnitOptionsProvidedUnit = 1; - static const NSMeasurementFormatterUnitOptionsNaturalScale = 2; - static const NSMeasurementFormatterUnitOptionsTemperatureWithoutUnit = 4; -} - -/// WARNING: NSMetadataItem is a stub. To generate bindings for this class, include -/// NSMetadataItem in your config's objc-interfaces list. -/// -/// NSMetadataItem -extension type NSMetadataItem._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSMetadataItem] that points to the same underlying object as [other]. - NSMetadataItem.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMetadataItem', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } - - /// Constructs a [NSMetadataItem] that wraps the given raw object pointer. - NSMetadataItem.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMetadataItem', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } -} - -/// WARNING: NSMetadataQuery is a stub. To generate bindings for this class, include -/// NSMetadataQuery in your config's objc-interfaces list. -/// -/// NSMetadataQuery -extension type NSMetadataQuery._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSMetadataQuery] that points to the same underlying object as [other]. - NSMetadataQuery.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMetadataQuery', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } - - /// Constructs a [NSMetadataQuery] that wraps the given raw object pointer. - NSMetadataQuery.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMetadataQuery', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } -} - -/// NSMetadataQueryDelegate -extension type NSMetadataQueryDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSMetadataQueryDelegate] that points to the same underlying object as [other]. - NSMetadataQueryDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSMetadataQueryDelegate] that wraps the given raw object pointer. - NSMetadataQueryDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMetadataQueryDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSMetadataQueryDelegate, - ); - } -} - -extension NSMetadataQueryDelegate$Methods on NSMetadataQueryDelegate { - /// metadataQuery:replacementObjectForResultObject: - objc.ObjCObject metadataQuery( - NSMetadataQuery query, { - required NSMetadataItem replacementObjectForResultObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = query.ref; - final _$$ref$2 = replacementObjectForResultObject.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_metadataQuery_replacementObjectForResultObject_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSMetadataQueryDelegate', - 'metadataQuery:replacementObjectForResultObject:', - ); - } - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_metadataQuery_replacementObjectForResultObject_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// metadataQuery:replacementValueForAttribute:value: - objc.ObjCObject metadataQuery$1( - NSMetadataQuery query, { - required objc.NSString replacementValueForAttribute, - required objc.ObjCObject value, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = query.ref; - final _$$ref$2 = replacementValueForAttribute.ref; - final _$$ref$3 = value.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_metadataQuery_replacementValueForAttribute_value_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSMetadataQueryDelegate', - 'metadataQuery:replacementValueForAttribute:value:', - ); - } - final $ret = _objc_msgSend_11spmsz( - _$$ref.pointer, - _sel_metadataQuery_replacementValueForAttribute_value_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -interface class NSMetadataQueryDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSMetadataQueryDelegate.cast()); - - /// Builds an object that implements the NSMetadataQueryDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSMetadataQueryDelegate implement({ - objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem)? - metadataQuery_replacementObjectForResultObject_, - objc.ObjCObject Function(NSMetadataQuery, objc.NSString, objc.ObjCObject)? - metadataQuery_replacementValueForAttribute_value_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSMetadataQueryDelegate', - ); - NSMetadataQueryDelegate$Builder - .metadataQuery_replacementObjectForResultObject_ - .implement(builder, metadataQuery_replacementObjectForResultObject_); - NSMetadataQueryDelegate$Builder - .metadataQuery_replacementValueForAttribute_value_ - .implement(builder, metadataQuery_replacementValueForAttribute_value_); - builder.addProtocol($protocol); - return NSMetadataQueryDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSMetadataQueryDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem)? - metadataQuery_replacementObjectForResultObject_, - objc.ObjCObject Function(NSMetadataQuery, objc.NSString, objc.ObjCObject)? - metadataQuery_replacementValueForAttribute_value_, - bool $keepIsolateAlive = true, - }) { - NSMetadataQueryDelegate$Builder - .metadataQuery_replacementObjectForResultObject_ - .implement(builder, metadataQuery_replacementObjectForResultObject_); - NSMetadataQueryDelegate$Builder - .metadataQuery_replacementValueForAttribute_value_ - .implement(builder, metadataQuery_replacementValueForAttribute_value_); - builder.addProtocol($protocol); - } - - /// metadataQuery:replacementObjectForResultObject: - static final metadataQuery_replacementObjectForResultObject_ = - objc.ObjCProtocolMethod< - objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem) - >( - _protocol_NSMetadataQueryDelegate, - _sel_metadataQuery_replacementObjectForResultObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_zi5eed) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMetadataQueryDelegate, - _sel_metadataQuery_replacementObjectForResultObject_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.ObjCObject Function(NSMetadataQuery, NSMetadataItem) func) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem.fromFunction( - ( - ffi.Pointer _, - NSMetadataQuery arg1, - NSMetadataItem arg2, - ) => func(arg1, arg2), - ), - ); - - /// metadataQuery:replacementValueForAttribute:value: - static final metadataQuery_replacementValueForAttribute_value_ = - objc.ObjCProtocolMethod< - objc.ObjCObject Function( - NSMetadataQuery, - objc.NSString, - objc.ObjCObject, - ) - >( - _protocol_NSMetadataQueryDelegate, - _sel_metadataQuery_replacementValueForAttribute_value_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1yw2rcr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMetadataQueryDelegate, - _sel_metadataQuery_replacementValueForAttribute_value_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.ObjCObject Function( - NSMetadataQuery, - objc.NSString, - objc.ObjCObject, - ) - func, - ) => - ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl.fromFunction( - ( - ffi.Pointer _, - NSMetadataQuery arg1, - objc.NSString arg2, - objc.ObjCObject arg3, - ) => func(arg1, arg2, arg3), - ), - ); -} - -/// NSMorphology -extension NSMorphology on objc.NSAttributedString { - /// attributedStringByInflectingString - objc.NSAttributedString attributedStringByInflectingString() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.attributedStringByInflectingString', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_attributedStringByInflectingString, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// WARNING: NSMorphology$1 is a stub. To generate bindings for this class, include -/// NSMorphology in your config's objc-interfaces list. -/// -/// NSMorphology -extension type NSMorphology$1._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSMorphology$1] that points to the same underlying object as [other]. - NSMorphology$1.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMorphology', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } - - /// Constructs a [NSMorphology$1] that wraps the given raw object pointer. - NSMorphology$1.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMorphology', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } -} - -/// WARNING: NSMorphologyCustomPronoun is a stub. To generate bindings for this class, include -/// NSMorphologyCustomPronoun in your config's objc-interfaces list. -/// -/// NSMorphologyCustomPronoun -@Deprecated('Use NSTermOfAddress instead') -extension type NSMorphologyCustomPronoun._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSMorphologyCustomPronoun] that points to the same underlying object as [other]. - NSMorphologyCustomPronoun.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMorphologyCustomPronoun', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } - - /// Constructs a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. - NSMorphologyCustomPronoun.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMorphologyCustomPronoun', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - } -} - -/// NSMorphologyUserSettings -extension NSMorphologyUserSettings on NSMorphology$1 { - /// isUnspecified - bool get isUnspecified { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMorphology.isUnspecified', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isUnspecified); - } - - /// userMorphology - static NSMorphology$1 getUserMorphology() { - objc.checkOsVersionInternal( - 'NSMorphology.userMorphology', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSMorphology, - _sel_userMorphology, - ); - return NSMorphology$1.fromPointer($ret, retain: true, release: true); - } -} - -/// NSMutableArrayCreation -extension NSMutableArrayCreation on objc.NSMutableArray { - /// initWithContentsOfFile: - objc.NSMutableArray? initWithContentsOfFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableArray.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - objc.NSMutableArray? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableArray.fromPointer($ret, retain: false, release: true); - } - - /// arrayWithCapacity: - static objc.NSMutableArray arrayWithCapacity(DartNSUInteger numItems) { - final $ret = _objc_msgSend_14hpxwa( - _class_NSMutableArray, - _sel_arrayWithCapacity_, - numItems, - ); - return objc.NSMutableArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithContentsOfFile: - static objc.NSMutableArray? arrayWithContentsOfFile(objc.NSString path) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, - _sel_arrayWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithContentsOfURL: - static objc.NSMutableArray? arrayWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, - _sel_arrayWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSMutableArrayDiffing -extension NSMutableArrayDiffing on objc.NSMutableArray { - /// applyDifference: - void applyDifference(objc.NSOrderedCollectionDifference difference) { - final _$$ref = object$.ref; - final _$$ref$1 = difference.ref; - objc.checkOsVersionInternal( - 'NSMutableArray.applyDifference:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_applyDifference_, - _$$ref$1.pointer, - ); - } -} - -/// WARNING: NSMutableAttributedString is a stub. To generate bindings for this class, include -/// NSMutableAttributedString in your config's objc-interfaces list. -/// -/// NSMutableAttributedString -extension type NSMutableAttributedString._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSAttributedString { - /// Constructs a [NSMutableAttributedString] that points to the same underlying object as [other]. - NSMutableAttributedString.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMutableAttributedString', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSMutableAttributedString] that wraps the given raw object pointer. - NSMutableAttributedString.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMutableAttributedString', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -/// NSMutableAttributedStringFormatting -extension NSMutableAttributedStringFormatting on NSMutableAttributedString { - /// appendLocalizedFormat: - void appendLocalizedFormat(objc.NSAttributedString format) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - objc.checkOsVersionInternal( - 'NSMutableAttributedString.appendLocalizedFormat:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_appendLocalizedFormat_, - _$$ref$1.pointer, - ); - } -} - -/// NSMutableDataCompression -extension NSMutableDataCompression on objc.NSMutableData { - /// compressUsingAlgorithm:error: - bool compressUsingAlgorithm(objc.NSDataCompressionAlgorithm algorithm) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableData.compressUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_15v716q( - _$$ref.pointer, - _sel_compressUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decompressUsingAlgorithm:error: - bool decompressUsingAlgorithm(objc.NSDataCompressionAlgorithm algorithm) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableData.decompressUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_15v716q( - _$$ref.pointer, - _sel_decompressUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -/// NSMutableDataCreation -extension NSMutableDataCreation on objc.NSMutableData { - /// initWithCapacity: - objc.NSMutableData? initWithCapacity(DartNSUInteger capacity) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_14hpxwa( - _$$ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - capacity, - ); - return $ret.address == 0 - ? null - : objc.NSMutableData.fromPointer($ret, retain: false, release: true); - } - - /// initWithLength: - objc.NSMutableData? initWithLength(DartNSUInteger length) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_14hpxwa( - _$$ref.retainAndReturnPointer(), - _sel_initWithLength_, - length, - ); - return $ret.address == 0 - ? null - : objc.NSMutableData.fromPointer($ret, retain: false, release: true); - } - - /// dataWithCapacity: - static objc.NSMutableData? dataWithCapacity(DartNSUInteger aNumItems) { - final $ret = _objc_msgSend_14hpxwa( - _class_NSMutableData, - _sel_dataWithCapacity_, - aNumItems, - ); - return $ret.address == 0 - ? null - : objc.NSMutableData.fromPointer($ret, retain: true, release: true); - } - - /// dataWithLength: - static objc.NSMutableData? dataWithLength(DartNSUInteger length) { - final $ret = _objc_msgSend_14hpxwa( - _class_NSMutableData, - _sel_dataWithLength_, - length, - ); - return $ret.address == 0 - ? null - : objc.NSMutableData.fromPointer($ret, retain: true, release: true); - } -} - -/// NSMutableDictionaryCreation -extension NSMutableDictionaryCreation on objc.NSMutableDictionary { - /// initWithContentsOfFile: - objc.NSMutableDictionary? initWithContentsOfFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableDictionary.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// initWithContentsOfURL: - objc.NSMutableDictionary? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableDictionary.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// dictionaryWithCapacity: - static objc.NSMutableDictionary dictionaryWithCapacity( - DartNSUInteger numItems, - ) { - final $ret = _objc_msgSend_14hpxwa( - _class_NSMutableDictionary, - _sel_dictionaryWithCapacity_, - numItems, - ); - return objc.NSMutableDictionary.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithContentsOfFile: - static objc.NSMutableDictionary? dictionaryWithContentsOfFile( - objc.NSString path, - ) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableDictionary, - _sel_dictionaryWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableDictionary.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithContentsOfURL: - static objc.NSMutableDictionary? dictionaryWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableDictionary, - _sel_dictionaryWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSMutableDictionary.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSMutableHTTPURLRequest -extension NSMutableHTTPURLRequest on NSMutableURLRequest { - /// HTTPBody - objc.NSData? get HTTPBody { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.HTTPBody', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBody); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// HTTPBodyStream - objc.NSInputStream? get HTTPBodyStream { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.HTTPBodyStream', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPBodyStream); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// HTTPMethod - objc.NSString get HTTPMethod { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.HTTPMethod', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_HTTPMethod); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// HTTPShouldHandleCookies - bool get HTTPShouldHandleCookies { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.HTTPShouldHandleCookies', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldHandleCookies); - } - - /// HTTPShouldUsePipelining - @Deprecated( - 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', - ) - bool get HTTPShouldUsePipelining { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.HTTPShouldUsePipelining', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_HTTPShouldUsePipelining); - } - - /// addValue:forHTTPHeaderField: - void addValue( - objc.NSString value, { - required objc.NSString forHTTPHeaderField, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - final _$$ref$2 = forHTTPHeaderField.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.addValue:forHTTPHeaderField:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_addValue_forHTTPHeaderField_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// allHTTPHeaderFields - objc.NSDictionary? get allHTTPHeaderFields { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.allHTTPHeaderFields', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_allHTTPHeaderFields, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// setAllHTTPHeaderFields: - set allHTTPHeaderFields(objc.NSDictionary? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setAllHTTPHeaderFields:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setAllHTTPHeaderFields_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setHTTPBody: - set HTTPBody(objc.NSData? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPBody:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setHTTPBody_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setHTTPBodyStream: - set HTTPBodyStream(objc.NSInputStream? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPBodyStream:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setHTTPBodyStream_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// setHTTPMethod: - set HTTPMethod(objc.NSString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPMethod:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setHTTPMethod_, _$$ref$1.pointer); - } - - /// setHTTPShouldHandleCookies: - set HTTPShouldHandleCookies(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPShouldHandleCookies:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1s56lr9( - _$$ref.pointer, - _sel_setHTTPShouldHandleCookies_, - value, - ); - } - - /// setHTTPShouldUsePipelining: - @Deprecated( - 'Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead', - ) - set HTTPShouldUsePipelining(bool value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setHTTPShouldUsePipelining:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1s56lr9( - _$$ref.pointer, - _sel_setHTTPShouldUsePipelining_, - value, - ); - } - - /// setValue:forHTTPHeaderField: - void setValue( - objc.NSString? value, { - required objc.NSString forHTTPHeaderField, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forHTTPHeaderField.ref; - objc.checkOsVersionInternal( - 'NSMutableURLRequest.setValue:forHTTPHeaderField:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_setValue_forHTTPHeaderField_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } -} - -/// NSMutableOrderedSetCreation -extension NSMutableOrderedSetCreation on objc.NSMutableOrderedSet { - /// orderedSetWithCapacity: - static objc.NSMutableOrderedSet orderedSetWithCapacity( - DartNSUInteger numItems, - ) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithCapacity:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_14hpxwa( - _class_NSMutableOrderedSet, - _sel_orderedSetWithCapacity_, - numItems, - ); - return objc.NSMutableOrderedSet.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSMutableOrderedSetDiffing -extension NSMutableOrderedSetDiffing on objc.NSMutableOrderedSet { - /// applyDifference: - void applyDifference(objc.NSOrderedCollectionDifference difference) { - final _$$ref = object$.ref; - final _$$ref$1 = difference.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.applyDifference:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_applyDifference_, - _$$ref$1.pointer, - ); - } -} - -/// NSMutableSetCreation -extension NSMutableSetCreation on objc.NSMutableSet { - /// setWithCapacity: - static objc.NSMutableSet setWithCapacity(DartNSUInteger numItems) { - final $ret = _objc_msgSend_14hpxwa( - _class_NSMutableSet, - _sel_setWithCapacity_, - numItems, - ); - return objc.NSMutableSet.fromPointer($ret, retain: true, release: true); - } -} - -/// NSMutableStringExtensionMethods -extension NSMutableStringExtensionMethods on objc.NSMutableString { - /// appendFormat: - void appendFormat(objc.NSString format) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_appendFormat_, _$$ref$1.pointer); - } - - /// appendString: - void appendString(objc.NSString aString) { - final _$$ref = object$.ref; - final _$$ref$1 = aString.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_appendString_, _$$ref$1.pointer); - } - - /// applyTransform:reverse:range:updatedRange: - bool applyTransform( - DartNSStringTransform transform, { - required bool reverse, - required NSRange range, - required NSRangePointer updatedRange, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = transform.ref; - objc.checkOsVersionInternal( - 'NSMutableString.applyTransform:reverse:range:updatedRange:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - return _objc_msgSend_zy00wz( - _$$ref.pointer, - _sel_applyTransform_reverse_range_updatedRange_, - _$$ref$1.pointer, - reverse, - range, - updatedRange, - ); - } - - /// deleteCharactersInRange: - void deleteCharactersInRange(NSRange range) { - final _$$ref = object$.ref; - _objc_msgSend_1e3pm0z(_$$ref.pointer, _sel_deleteCharactersInRange_, range); - } - - /// initWithCapacity: - objc.NSMutableString initWithCapacity(DartNSUInteger capacity) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_14hpxwa( - _$$ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - capacity, - ); - return objc.NSMutableString.fromPointer($ret, retain: false, release: true); - } - - /// insertString:atIndex: - void insertString(objc.NSString aString, {required DartNSUInteger atIndex}) { - final _$$ref = object$.ref; - final _$$ref$1 = aString.ref; - _objc_msgSend_djsa9o( - _$$ref.pointer, - _sel_insertString_atIndex_, - _$$ref$1.pointer, - atIndex, - ); - } - - /// replaceOccurrencesOfString:withString:options:range: - DartNSUInteger replaceOccurrencesOfString( - objc.NSString target, { - required objc.NSString withString, - required DartNSUInteger options, - required NSRange range, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = target.ref; - final _$$ref$2 = withString.ref; - return _objc_msgSend_1upeo1d( - _$$ref.pointer, - _sel_replaceOccurrencesOfString_withString_options_range_, - _$$ref$1.pointer, - _$$ref$2.pointer, - options, - range, - ); - } - - /// setString: - void setString(objc.NSString aString) { - final _$$ref = object$.ref; - final _$$ref$1 = aString.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setString_, _$$ref$1.pointer); - } - - /// stringWithCapacity: - static objc.NSMutableString stringWithCapacity(DartNSUInteger capacity) { - final $ret = _objc_msgSend_14hpxwa( - _class_NSMutableString, - _sel_stringWithCapacity_, - capacity, - ); - return objc.NSMutableString.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSMutableURLRequest is a stub. To generate bindings for this class, include -/// NSMutableURLRequest in your config's objc-interfaces list. -/// -/// NSMutableURLRequest -extension type NSMutableURLRequest._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLRequest { - /// Constructs a [NSMutableURLRequest] that points to the same underlying object as [other]. - NSMutableURLRequest.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSMutableURLRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSMutableURLRequest] that wraps the given raw object pointer. - NSMutableURLRequest.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMutableURLRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -const int NSNEXTSTEPStringEncoding = 2; - -/// WARNING: NSNetService is a stub. To generate bindings for this class, include -/// NSNetService in your config's objc-interfaces list. -/// -/// NSNetService -@Deprecated('Use nw_connection_t or nw_listener_t in Network framework instead') -extension type NSNetService._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSNetService] that points to the same underlying object as [other]. - NSNetService.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSNetService', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSNetService] that wraps the given raw object pointer. - NSNetService.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSNetService', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// WARNING: NSNetServiceBrowser is a stub. To generate bindings for this class, include -/// NSNetServiceBrowser in your config's objc-interfaces list. -/// -/// NSNetServiceBrowser -@Deprecated('Use nw_browser_t in Network framework instead') -extension type NSNetServiceBrowser._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSNetServiceBrowser] that points to the same underlying object as [other]. - NSNetServiceBrowser.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSNetServiceBrowser', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSNetServiceBrowser] that wraps the given raw object pointer. - NSNetServiceBrowser.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSNetServiceBrowser', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// NSNetServiceBrowserDelegate -extension type NSNetServiceBrowserDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSNetServiceBrowserDelegate] that points to the same underlying object as [other]. - NSNetServiceBrowserDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSNetServiceBrowserDelegate] that wraps the given raw object pointer. - NSNetServiceBrowserDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSNetServiceBrowserDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSNetServiceBrowserDelegate, - ); - } -} - -extension NSNetServiceBrowserDelegate$Methods on NSNetServiceBrowserDelegate { - /// netServiceBrowser:didFindDomain:moreComing: - void netServiceBrowser( - NSNetServiceBrowser browser, { - required objc.NSString didFindDomain, - required bool moreComing, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - final _$$ref$2 = didFindDomain.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowser:didFindDomain:moreComing:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowser_didFindDomain_moreComing_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowser:didFindDomain:moreComing:', - ); - } - _objc_msgSend_1lhy15d( - _$$ref.pointer, - _sel_netServiceBrowser_didFindDomain_moreComing_, - _$$ref$1.pointer, - _$$ref$2.pointer, - moreComing, - ); - } - - /// netServiceBrowser:didFindService:moreComing: - void netServiceBrowser$1( - NSNetServiceBrowser browser, { - required NSNetService didFindService, - required bool moreComing, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - final _$$ref$2 = didFindService.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowser:didFindService:moreComing:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowser_didFindService_moreComing_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowser:didFindService:moreComing:', - ); - } - _objc_msgSend_1lhy15d( - _$$ref.pointer, - _sel_netServiceBrowser_didFindService_moreComing_, - _$$ref$1.pointer, - _$$ref$2.pointer, - moreComing, - ); - } - - /// netServiceBrowser:didNotSearch: - void netServiceBrowser$2( - NSNetServiceBrowser browser, { - required objc.NSDictionary didNotSearch, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - final _$$ref$2 = didNotSearch.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowser:didNotSearch:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowser_didNotSearch_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowser:didNotSearch:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_netServiceBrowser_didNotSearch_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// netServiceBrowser:didRemoveDomain:moreComing: - void netServiceBrowser$3( - NSNetServiceBrowser browser, { - required objc.NSString didRemoveDomain, - required bool moreComing, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - final _$$ref$2 = didRemoveDomain.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowser:didRemoveDomain:moreComing:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowser_didRemoveDomain_moreComing_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowser:didRemoveDomain:moreComing:', - ); - } - _objc_msgSend_1lhy15d( - _$$ref.pointer, - _sel_netServiceBrowser_didRemoveDomain_moreComing_, - _$$ref$1.pointer, - _$$ref$2.pointer, - moreComing, - ); - } - - /// netServiceBrowser:didRemoveService:moreComing: - void netServiceBrowser$4( - NSNetServiceBrowser browser, { - required NSNetService didRemoveService, - required bool moreComing, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - final _$$ref$2 = didRemoveService.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowser:didRemoveService:moreComing:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowser_didRemoveService_moreComing_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowser:didRemoveService:moreComing:', - ); - } - _objc_msgSend_1lhy15d( - _$$ref.pointer, - _sel_netServiceBrowser_didRemoveService_moreComing_, - _$$ref$1.pointer, - _$$ref$2.pointer, - moreComing, - ); - } - - /// netServiceBrowserDidStopSearch: - void netServiceBrowserDidStopSearch(NSNetServiceBrowser browser) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowserDidStopSearch:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowserDidStopSearch_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowserDidStopSearch:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_netServiceBrowserDidStopSearch_, - _$$ref$1.pointer, - ); - } - - /// netServiceBrowserWillSearch: - void netServiceBrowserWillSearch(NSNetServiceBrowser browser) { - final _$$ref = object$.ref; - final _$$ref$1 = browser.ref; - objc.checkOsVersionInternal( - 'NSNetServiceBrowserDelegate.netServiceBrowserWillSearch:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceBrowserWillSearch_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceBrowserDelegate', - 'netServiceBrowserWillSearch:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_netServiceBrowserWillSearch_, - _$$ref$1.pointer, - ); - } -} - -interface class NSNetServiceBrowserDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSNetServiceBrowserDelegate.cast()); - - /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceBrowserDelegate implement({ - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSNetServiceBrowserDelegate', - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implement(builder, netServiceBrowser_didFindDomain_moreComing_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implement(builder, netServiceBrowser_didFindService_moreComing_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implement(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implement(builder, netServiceBrowser_didRemoveDomain_moreComing_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implement(builder, netServiceBrowser_didRemoveService_moreComing_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implement(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_.implement( - builder, - netServiceBrowserWillSearch_, - ); - builder.addProtocol($protocol); - return NSNetServiceBrowserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implement(builder, netServiceBrowser_didFindDomain_moreComing_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implement(builder, netServiceBrowser_didFindService_moreComing_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implement(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implement(builder, netServiceBrowser_didRemoveDomain_moreComing_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implement(builder, netServiceBrowser_didRemoveService_moreComing_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implement(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_.implement( - builder, - netServiceBrowserWillSearch_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceBrowserDelegate implementAsListener({ - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSNetServiceBrowserDelegate', - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didFindDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didFindService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implementAsListener(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didRemoveDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didRemoveService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implementAsListener(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ - .implementAsListener(builder, netServiceBrowserWillSearch_); - builder.addProtocol($protocol); - return NSNetServiceBrowserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didFindDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didFindService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implementAsListener(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didRemoveDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implementAsListener( - builder, - netServiceBrowser_didRemoveService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implementAsListener(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ - .implementAsListener(builder, netServiceBrowserWillSearch_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSNetServiceBrowserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceBrowserDelegate implementAsBlocking({ - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSNetServiceBrowserDelegate', - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didFindDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didFindService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implementAsBlocking(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didRemoveDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didRemoveService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implementAsBlocking(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ - .implementAsBlocking(builder, netServiceBrowserWillSearch_); - builder.addProtocol($protocol); - return NSNetServiceBrowserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceBrowserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didFindDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didFindService_moreComing_, - void Function(NSNetServiceBrowser, objc.NSDictionary)? - netServiceBrowser_didNotSearch_, - void Function(NSNetServiceBrowser, objc.NSString, bool)? - netServiceBrowser_didRemoveDomain_moreComing_, - void Function(NSNetServiceBrowser, NSNetService, bool)? - netServiceBrowser_didRemoveService_moreComing_, - void Function(NSNetServiceBrowser)? netServiceBrowserDidStopSearch_, - void Function(NSNetServiceBrowser)? netServiceBrowserWillSearch_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindDomain_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didFindDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didFindService_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didFindService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowser_didNotSearch_ - .implementAsBlocking(builder, netServiceBrowser_didNotSearch_); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveDomain_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didRemoveDomain_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder - .netServiceBrowser_didRemoveService_moreComing_ - .implementAsBlocking( - builder, - netServiceBrowser_didRemoveService_moreComing_, - ); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserDidStopSearch_ - .implementAsBlocking(builder, netServiceBrowserDidStopSearch_); - NSNetServiceBrowserDelegate$Builder.netServiceBrowserWillSearch_ - .implementAsBlocking(builder, netServiceBrowserWillSearch_); - builder.addProtocol($protocol); - } - - /// netServiceBrowser:didFindDomain:moreComing: - static final netServiceBrowser_didFindDomain_moreComing_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetServiceBrowser, objc.NSString, bool) - >( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didFindDomain_moreComing_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_8acz2h) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didFindDomain_moreComing_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.fromFunction( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.listener( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.blocking( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// netServiceBrowser:didFindService:moreComing: - static final netServiceBrowser_didFindService_moreComing_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetServiceBrowser, NSNetService, bool) - >( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didFindService_moreComing_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_8acz2h) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didFindService_moreComing_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.fromFunction( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.listener( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.blocking( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// netServiceBrowser:didNotSearch: - static final netServiceBrowser_didNotSearch_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetServiceBrowser, objc.NSDictionary) - >( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didNotSearch_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didNotSearch_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.fromFunction( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.listener( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetServiceBrowser, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary.blocking( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - ); - - /// netServiceBrowser:didRemoveDomain:moreComing: - static final netServiceBrowser_didRemoveDomain_moreComing_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetServiceBrowser, objc.NSString, bool) - >( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didRemoveDomain_moreComing_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_8acz2h) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didRemoveDomain_moreComing_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.fromFunction( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.listener( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, objc.NSString, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool.blocking( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// netServiceBrowser:didRemoveService:moreComing: - static final netServiceBrowser_didRemoveService_moreComing_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetServiceBrowser, NSNetService, bool) - >( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didRemoveService_moreComing_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_8acz2h) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowser_didRemoveService_moreComing_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.fromFunction( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.listener( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSNetServiceBrowser, NSNetService, bool) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool.blocking( - ( - ffi.Pointer _, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// netServiceBrowserDidStopSearch: - static final netServiceBrowserDidStopSearch_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowserDidStopSearch_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowserDidStopSearch_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.fromFunction( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.listener( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.blocking( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - ); - - /// netServiceBrowserWillSearch: - static final netServiceBrowserWillSearch_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowserWillSearch_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceBrowserDelegate, - _sel_netServiceBrowserWillSearch_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.fromFunction( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.listener( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - (void Function(NSNetServiceBrowser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser.blocking( - (ffi.Pointer _, NSNetServiceBrowser arg1) => func(arg1), - ), - ); -} - -/// NSNetServiceDelegate -extension type NSNetServiceDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSNetServiceDelegate] that points to the same underlying object as [other]. - NSNetServiceDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSNetServiceDelegate] that wraps the given raw object pointer. - NSNetServiceDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSNetServiceDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSNetServiceDelegate, - ); - } -} - -extension NSNetServiceDelegate$Methods on NSNetServiceDelegate { - /// netService:didAcceptConnectionWithInputStream:outputStream: - void netService( - NSNetService sender, { - required objc.NSInputStream didAcceptConnectionWithInputStream, - required objc.NSOutputStream outputStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didAcceptConnectionWithInputStream.ref; - final _$$ref$3 = outputStream.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netService:didAcceptConnectionWithInputStream:outputStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netService_didAcceptConnectionWithInputStream_outputStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netService:didAcceptConnectionWithInputStream:outputStream:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_netService_didAcceptConnectionWithInputStream_outputStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// netService:didNotPublish: - void netService$1( - NSNetService sender, { - required objc.NSDictionary didNotPublish, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didNotPublish.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netService:didNotPublish:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netService_didNotPublish_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netService:didNotPublish:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_netService_didNotPublish_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// netService:didNotResolve: - void netService$2( - NSNetService sender, { - required objc.NSDictionary didNotResolve, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didNotResolve.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netService:didNotResolve:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netService_didNotResolve_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netService:didNotResolve:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_netService_didNotResolve_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// netService:didUpdateTXTRecordData: - void netService$3( - NSNetService sender, { - required objc.NSData didUpdateTXTRecordData, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didUpdateTXTRecordData.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netService:didUpdateTXTRecordData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netService_didUpdateTXTRecordData_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netService:didUpdateTXTRecordData:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_netService_didUpdateTXTRecordData_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// netServiceDidPublish: - void netServiceDidPublish(NSNetService sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netServiceDidPublish:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceDidPublish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netServiceDidPublish:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_netServiceDidPublish_, - _$$ref$1.pointer, - ); - } - - /// netServiceDidResolveAddress: - void netServiceDidResolveAddress(NSNetService sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netServiceDidResolveAddress:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_netServiceDidResolveAddress_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netServiceDidResolveAddress:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_netServiceDidResolveAddress_, - _$$ref$1.pointer, - ); - } - - /// netServiceDidStop: - void netServiceDidStop(NSNetService sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netServiceDidStop:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceDidStop_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netServiceDidStop:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_netServiceDidStop_, - _$$ref$1.pointer, - ); - } - - /// netServiceWillPublish: - void netServiceWillPublish(NSNetService sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netServiceWillPublish:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceWillPublish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netServiceWillPublish:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_netServiceWillPublish_, - _$$ref$1.pointer, - ); - } - - /// netServiceWillResolve: - void netServiceWillResolve(NSNetService sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSNetServiceDelegate.netServiceWillResolve:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_netServiceWillResolve_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSNetServiceDelegate', - 'netServiceWillResolve:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_netServiceWillResolve_, - _$$ref$1.pointer, - ); - } -} - -interface class NSNetServiceDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSNetServiceDelegate.cast()); - - /// Builds an object that implements the NSNetServiceDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceDelegate implement({ - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implement( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implement( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implement( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_.implement( - builder, - netService_didUpdateTXTRecordData_, - ); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implement( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_.implement( - builder, - netServiceDidResolveAddress_, - ); - NSNetServiceDelegate$Builder.netServiceDidStop_.implement( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implement( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implement( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - return NSNetServiceDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implement( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implement( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implement( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_.implement( - builder, - netService_didUpdateTXTRecordData_, - ); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implement( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_.implement( - builder, - netServiceDidResolveAddress_, - ); - NSNetServiceDelegate$Builder.netServiceDidStop_.implement( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implement( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implement( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSNetServiceDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceDelegate implementAsListener({ - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implementAsListener( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsListener( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsListener( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ - .implementAsListener(builder, netService_didUpdateTXTRecordData_); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsListener( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ - .implementAsListener(builder, netServiceDidResolveAddress_); - NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsListener( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsListener( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsListener( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - return NSNetServiceDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implementAsListener( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsListener( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsListener( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ - .implementAsListener(builder, netService_didUpdateTXTRecordData_); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsListener( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ - .implementAsListener(builder, netServiceDidResolveAddress_); - NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsListener( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsListener( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsListener( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSNetServiceDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSNetServiceDelegate implementAsBlocking({ - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSNetServiceDelegate'); - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implementAsBlocking( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsBlocking( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsBlocking( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ - .implementAsBlocking(builder, netService_didUpdateTXTRecordData_); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsBlocking( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ - .implementAsBlocking(builder, netServiceDidResolveAddress_); - NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsBlocking( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsBlocking( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsBlocking( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - return NSNetServiceDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSNetServiceDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream)? - netService_didAcceptConnectionWithInputStream_outputStream_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotPublish_, - void Function(NSNetService, objc.NSDictionary)? netService_didNotResolve_, - void Function(NSNetService, objc.NSData)? - netService_didUpdateTXTRecordData_, - void Function(NSNetService)? netServiceDidPublish_, - void Function(NSNetService)? netServiceDidResolveAddress_, - void Function(NSNetService)? netServiceDidStop_, - void Function(NSNetService)? netServiceWillPublish_, - void Function(NSNetService)? netServiceWillResolve_, - bool $keepIsolateAlive = true, - }) { - NSNetServiceDelegate$Builder - .netService_didAcceptConnectionWithInputStream_outputStream_ - .implementAsBlocking( - builder, - netService_didAcceptConnectionWithInputStream_outputStream_, - ); - NSNetServiceDelegate$Builder.netService_didNotPublish_.implementAsBlocking( - builder, - netService_didNotPublish_, - ); - NSNetServiceDelegate$Builder.netService_didNotResolve_.implementAsBlocking( - builder, - netService_didNotResolve_, - ); - NSNetServiceDelegate$Builder.netService_didUpdateTXTRecordData_ - .implementAsBlocking(builder, netService_didUpdateTXTRecordData_); - NSNetServiceDelegate$Builder.netServiceDidPublish_.implementAsBlocking( - builder, - netServiceDidPublish_, - ); - NSNetServiceDelegate$Builder.netServiceDidResolveAddress_ - .implementAsBlocking(builder, netServiceDidResolveAddress_); - NSNetServiceDelegate$Builder.netServiceDidStop_.implementAsBlocking( - builder, - netServiceDidStop_, - ); - NSNetServiceDelegate$Builder.netServiceWillPublish_.implementAsBlocking( - builder, - netServiceWillPublish_, - ); - NSNetServiceDelegate$Builder.netServiceWillResolve_.implementAsBlocking( - builder, - netServiceWillResolve_, - ); - builder.addProtocol($protocol); - } - - /// netService:didAcceptConnectionWithInputStream:outputStream: - static final netService_didAcceptConnectionWithInputStream_outputStream_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) - >( - _protocol_NSNetServiceDelegate, - _sel_netService_didAcceptConnectionWithInputStream_outputStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netService_didAcceptConnectionWithInputStream_outputStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.fromFunction( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.listener( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSNetService, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream.blocking( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// netService:didNotPublish: - static final netService_didNotPublish_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetService, objc.NSDictionary) - >( - _protocol_NSNetServiceDelegate, - _sel_netService_didNotPublish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netService_didNotPublish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.fromFunction( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.listener( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.blocking( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - ); - - /// netService:didNotResolve: - static final netService_didNotResolve_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetService, objc.NSDictionary) - >( - _protocol_NSNetServiceDelegate, - _sel_netService_didNotResolve_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netService_didNotResolve_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.fromFunction( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.listener( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSDictionary) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary.blocking( - ( - ffi.Pointer _, - NSNetService arg1, - objc.NSDictionary arg2, - ) => func(arg1, arg2), - ), - ); - - /// netService:didUpdateTXTRecordData: - static final netService_didUpdateTXTRecordData_ = - objc.ObjCProtocolListenableMethod< - void Function(NSNetService, objc.NSData) - >( - _protocol_NSNetServiceDelegate, - _sel_netService_didUpdateTXTRecordData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netService_didUpdateTXTRecordData_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.fromFunction( - (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.listener( - (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSNetService, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData.blocking( - (ffi.Pointer _, NSNetService arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - ); - - /// netServiceDidPublish: - static final netServiceDidPublish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidPublish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidPublish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - ); - - /// netServiceDidResolveAddress: - static final netServiceDidResolveAddress_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidResolveAddress_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidResolveAddress_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - ); - - /// netServiceDidStop: - static final netServiceDidStop_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidStop_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netServiceDidStop_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - ); - - /// netServiceWillPublish: - static final netServiceWillPublish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceDelegate, - _sel_netServiceWillPublish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netServiceWillPublish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - ); - - /// netServiceWillResolve: - static final netServiceWillResolve_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSNetServiceDelegate, - _sel_netServiceWillResolve_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSNetServiceDelegate, - _sel_netServiceWillResolve_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.fromFunction( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.listener( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - (void Function(NSNetService) func) => - ObjCBlock_ffiVoid_ffiVoid_NSNetService.blocking( - (ffi.Pointer _, NSNetService arg1) => func(arg1), - ), - ); -} - -sealed class NSNetServiceOptions { - static const NSNetServiceNoAutoRename = 1; - static const NSNetServiceListenForConnections = 2; -} - -enum NSNetServicesError { - NSNetServicesUnknownError(-72000), - NSNetServicesCollisionError(-72001), - NSNetServicesNotFoundError(-72002), - NSNetServicesActivityInProgress(-72003), - NSNetServicesBadArgumentError(-72004), - NSNetServicesCancelledError(-72005), - NSNetServicesInvalidError(-72006), - NSNetServicesTimeoutError(-72007), - NSNetServicesMissingRequiredConfigurationError(-72008); - - final int value; - const NSNetServicesError(this.value); - - static NSNetServicesError fromValue(int value) => switch (value) { - -72000 => NSNetServicesUnknownError, - -72001 => NSNetServicesCollisionError, - -72002 => NSNetServicesNotFoundError, - -72003 => NSNetServicesActivityInProgress, - -72004 => NSNetServicesBadArgumentError, - -72005 => NSNetServicesCancelledError, - -72006 => NSNetServicesInvalidError, - -72007 => NSNetServicesTimeoutError, - -72008 => NSNetServicesMissingRequiredConfigurationError, - _ => throw ArgumentError('Unknown value for NSNetServicesError: $value'), - }; -} - -const int NSNoScriptError = 0; - -const int NSNoSpecifierError = 0; - -const int NSNoTopLevelContainersSpecifierError = 1; - -const int NSNonLossyASCIIStringEncoding = 7; - -const int NSNotFound = 9223372036854775807; - -sealed class NSNotificationCoalescing { - static const NSNotificationNoCoalescing = 0; - static const NSNotificationCoalescingOnName = 1; - static const NSNotificationCoalescingOnSender = 2; -} - -/// NSNotificationCreation -extension NSNotificationCreation on objc.NSNotification { - /// init - objc.NSNotification init$1() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return objc.NSNotification.fromPointer($ret, retain: false, release: true); - } - - /// notificationWithName:object: - static objc.NSNotification notificationWithName( - DartNSNotificationName aName, { - objc.ObjCObject? object, - }) { - final _$$ref = aName.ref; - final _$$ref$1 = object?.ref; - final $ret = _objc_msgSend_15qeuct( - _class_NSNotification, - _sel_notificationWithName_object_, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - return objc.NSNotification.fromPointer($ret, retain: true, release: true); - } - - /// notificationWithName:object:userInfo: - static objc.NSNotification notificationWithName$1( - DartNSNotificationName aName, { - objc.ObjCObject? object, - objc.NSDictionary? userInfo, - }) { - final _$$ref = aName.ref; - final _$$ref$1 = object?.ref; - final _$$ref$2 = userInfo?.ref; - final $ret = _objc_msgSend_11spmsz( - _class_NSNotification, - _sel_notificationWithName_object_userInfo_, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return objc.NSNotification.fromPointer($ret, retain: true, release: true); - } -} - -const int NSNotificationDeliverImmediately = 1; - -typedef NSNotificationName = ffi.Pointer; -typedef DartNSNotificationName = objc.NSString; - -const int NSNotificationPostToAllSessions = 2; - -enum NSNotificationSuspensionBehavior { - NSNotificationSuspensionBehaviorDrop(1), - NSNotificationSuspensionBehaviorCoalesce(2), - NSNotificationSuspensionBehaviorHold(3), - NSNotificationSuspensionBehaviorDeliverImmediately(4); - - final int value; - const NSNotificationSuspensionBehavior(this.value); - - static NSNotificationSuspensionBehavior fromValue(int value) => - switch (value) { - 1 => NSNotificationSuspensionBehaviorDrop, - 2 => NSNotificationSuspensionBehaviorCoalesce, - 3 => NSNotificationSuspensionBehaviorHold, - 4 => NSNotificationSuspensionBehaviorDeliverImmediately, - _ => throw ArgumentError( - 'Unknown value for NSNotificationSuspensionBehavior: $value', - ), - }; -} - -/// WARNING: NSNumberFormatter is a stub. To generate bindings for this class, include -/// NSNumberFormatter in your config's objc-interfaces list. -/// -/// NSNumberFormatter -extension type NSNumberFormatter._(objc.ObjCObject object$) - implements objc.ObjCObject, NSFormatter { - /// Constructs a [NSNumberFormatter] that points to the same underlying object as [other]. - NSNumberFormatter.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSNumberFormatter] that wraps the given raw object pointer. - NSNumberFormatter.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -enum NSNumberFormatterBehavior { - NSNumberFormatterBehaviorDefault(0), - NSNumberFormatterBehavior10_0(1000), - NSNumberFormatterBehavior10_4(1040); - - final int value; - const NSNumberFormatterBehavior(this.value); - - static NSNumberFormatterBehavior fromValue(int value) => switch (value) { - 0 => NSNumberFormatterBehaviorDefault, - 1000 => NSNumberFormatterBehavior10_0, - 1040 => NSNumberFormatterBehavior10_4, - _ => throw ArgumentError( - 'Unknown value for NSNumberFormatterBehavior: $value', - ), - }; -} - -/// NSNumberFormatterCompatibility -extension NSNumberFormatterCompatibility on NSNumberFormatter { - /// attributedStringForNil - objc.NSAttributedString get attributedStringForNil { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_attributedStringForNil, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// attributedStringForNotANumber - objc.NSAttributedString get attributedStringForNotANumber { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_attributedStringForNotANumber, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// attributedStringForZero - objc.NSAttributedString get attributedStringForZero { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_attributedStringForZero, - ); - return objc.NSAttributedString.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// format - objc.NSString get format { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// hasThousandSeparators - bool get hasThousandSeparators { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_hasThousandSeparators); - } - - /// localizesFormat - bool get localizesFormat { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_localizesFormat); - } - - /// roundingBehavior - NSDecimalNumberHandler get roundingBehavior { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_roundingBehavior); - return NSDecimalNumberHandler.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// setAttributedStringForNil: - set attributedStringForNil(objc.NSAttributedString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setAttributedStringForNil_, - _$$ref$1.pointer, - ); - } - - /// setAttributedStringForNotANumber: - set attributedStringForNotANumber(objc.NSAttributedString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setAttributedStringForNotANumber_, - _$$ref$1.pointer, - ); - } - - /// setAttributedStringForZero: - set attributedStringForZero(objc.NSAttributedString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setAttributedStringForZero_, - _$$ref$1.pointer, - ); - } - - /// setFormat: - set format(objc.NSString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setFormat_, _$$ref$1.pointer); - } - - /// setHasThousandSeparators: - set hasThousandSeparators(bool value) { - final _$$ref = object$.ref; - _objc_msgSend_1s56lr9( - _$$ref.pointer, - _sel_setHasThousandSeparators_, - value, - ); - } - - /// setLocalizesFormat: - set localizesFormat(bool value) { - final _$$ref = object$.ref; - _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setLocalizesFormat_, value); - } - - /// setRoundingBehavior: - set roundingBehavior(NSDecimalNumberHandler value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setRoundingBehavior_, - _$$ref$1.pointer, - ); - } - - /// setThousandSeparator: - set thousandSeparator(objc.NSString value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setThousandSeparator_, - _$$ref$1.pointer, - ); - } - - /// thousandSeparator - objc.NSString get thousandSeparator { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_thousandSeparator); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -enum NSNumberFormatterPadPosition { - NSNumberFormatterPadBeforePrefix(0), - NSNumberFormatterPadAfterPrefix(1), - NSNumberFormatterPadBeforeSuffix(2), - NSNumberFormatterPadAfterSuffix(3); - - final int value; - const NSNumberFormatterPadPosition(this.value); - - static NSNumberFormatterPadPosition fromValue(int value) => switch (value) { - 0 => NSNumberFormatterPadBeforePrefix, - 1 => NSNumberFormatterPadAfterPrefix, - 2 => NSNumberFormatterPadBeforeSuffix, - 3 => NSNumberFormatterPadAfterSuffix, - _ => throw ArgumentError( - 'Unknown value for NSNumberFormatterPadPosition: $value', - ), - }; -} - -enum NSNumberFormatterRoundingMode { - NSNumberFormatterRoundCeiling(0), - NSNumberFormatterRoundFloor(1), - NSNumberFormatterRoundDown(2), - NSNumberFormatterRoundUp(3), - NSNumberFormatterRoundHalfEven(4), - NSNumberFormatterRoundHalfDown(5), - NSNumberFormatterRoundHalfUp(6); - - final int value; - const NSNumberFormatterRoundingMode(this.value); - - static NSNumberFormatterRoundingMode fromValue(int value) => switch (value) { - 0 => NSNumberFormatterRoundCeiling, - 1 => NSNumberFormatterRoundFloor, - 2 => NSNumberFormatterRoundDown, - 3 => NSNumberFormatterRoundUp, - 4 => NSNumberFormatterRoundHalfEven, - 5 => NSNumberFormatterRoundHalfDown, - 6 => NSNumberFormatterRoundHalfUp, - _ => throw ArgumentError( - 'Unknown value for NSNumberFormatterRoundingMode: $value', - ), - }; -} - -enum NSNumberFormatterStyle { - NSNumberFormatterNoStyle(0), - NSNumberFormatterDecimalStyle(1), - NSNumberFormatterCurrencyStyle(2), - NSNumberFormatterPercentStyle(3), - NSNumberFormatterScientificStyle(4), - NSNumberFormatterSpellOutStyle(5), - NSNumberFormatterOrdinalStyle(6), - NSNumberFormatterCurrencyISOCodeStyle(8), - NSNumberFormatterCurrencyPluralStyle(9), - NSNumberFormatterCurrencyAccountingStyle(10); - - final int value; - const NSNumberFormatterStyle(this.value); - - static NSNumberFormatterStyle fromValue(int value) => switch (value) { - 0 => NSNumberFormatterNoStyle, - 1 => NSNumberFormatterDecimalStyle, - 2 => NSNumberFormatterCurrencyStyle, - 3 => NSNumberFormatterPercentStyle, - 4 => NSNumberFormatterScientificStyle, - 5 => NSNumberFormatterSpellOutStyle, - 6 => NSNumberFormatterOrdinalStyle, - 8 => NSNumberFormatterCurrencyISOCodeStyle, - 9 => NSNumberFormatterCurrencyPluralStyle, - 10 => NSNumberFormatterCurrencyAccountingStyle, - _ => throw ArgumentError( - 'Unknown value for NSNumberFormatterStyle: $value', - ), - }; -} - -@Deprecated('Not supported') -const int NSOSF1OperatingSystem = 7; - -const int NSOpenStepUnicodeReservedBase = 62464; - -final class NSOperatingSystemVersion extends ffi.Struct { - @NSInteger() - external int majorVersion; - - @NSInteger() - external int minorVersion; - - @NSInteger() - external int patchVersion; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int majorVersion, - required int minorVersion, - required int patchVersion, - }) => $allocator() - ..ref.majorVersion = majorVersion - ..ref.minorVersion = minorVersion - ..ref.patchVersion = patchVersion; -} - -const int NSOperationNotSupportedForKeyScriptError = 9; - -const int NSOperationNotSupportedForKeySpecifierError = 6; - -/// WARNING: NSOperationQueue is a stub. To generate bindings for this class, include -/// NSOperationQueue in your config's objc-interfaces list. -/// -/// NSOperationQueue -extension type NSOperationQueue._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, NSProgressReporting { - /// Constructs a [NSOperationQueue] that points to the same underlying object as [other]. - NSOperationQueue.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSOperationQueue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } - - /// Constructs a [NSOperationQueue] that wraps the given raw object pointer. - NSOperationQueue.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSOperationQueue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } -} - -const int NSOperationQueueDefaultMaxConcurrentOperationCount = -1; - -enum NSOperationQueuePriority { - NSOperationQueuePriorityVeryLow(-8), - NSOperationQueuePriorityLow(-4), - NSOperationQueuePriorityNormal(0), - NSOperationQueuePriorityHigh(4), - NSOperationQueuePriorityVeryHigh(8); - - final int value; - const NSOperationQueuePriority(this.value); - - static NSOperationQueuePriority fromValue(int value) => switch (value) { - -8 => NSOperationQueuePriorityVeryLow, - -4 => NSOperationQueuePriorityLow, - 0 => NSOperationQueuePriorityNormal, - 4 => NSOperationQueuePriorityHigh, - 8 => NSOperationQueuePriorityVeryHigh, - _ => throw ArgumentError( - 'Unknown value for NSOperationQueuePriority: $value', - ), - }; -} - -/// NSOrderedPerform -extension NSOrderedPerform on objc.NSRunLoop { - /// cancelPerformSelector:target:argument: - void cancelPerformSelector( - ffi.Pointer aSelector, { - required objc.ObjCObject target, - objc.ObjCObject? argument, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = target.ref; - final _$$ref$2 = argument?.ref; - _objc_msgSend_lzbvjm( - _$$ref.pointer, - _sel_cancelPerformSelector_target_argument_, - aSelector, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// cancelPerformSelectorsWithTarget: - void cancelPerformSelectorsWithTarget(objc.ObjCObject target) { - final _$$ref = object$.ref; - final _$$ref$1 = target.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_cancelPerformSelectorsWithTarget_, - _$$ref$1.pointer, - ); - } - - /// performSelector:target:argument:order:modes: - void performSelector$3( - ffi.Pointer aSelector, { - required objc.ObjCObject target, - objc.ObjCObject? argument, - required DartNSUInteger order, - required objc.NSArray modes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = target.ref; - final _$$ref$2 = argument?.ref; - final _$$ref$3 = modes.ref; - _objc_msgSend_11hj8md( - _$$ref.pointer, - _sel_performSelector_target_argument_order_modes_, - aSelector, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - order, - _$$ref$3.pointer, - ); - } -} - -/// NSOrderedSetCreation -extension NSOrderedSetCreation on objc.NSOrderedSet { - /// initWithArray: - objc.NSOrderedSet initWithArray(objc.NSArray array) { - final _$$ref = object$.ref; - final _$$ref$1 = array.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - objc.NSOrderedSet initWithArray$1( - objc.NSArray set, { - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithArray:range:copyItems: - objc.NSOrderedSet initWithArray$2( - objc.NSArray set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_range_copyItems_, - _$$ref$1.pointer, - range, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithObject: - objc.NSOrderedSet initWithObject(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithObject_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithObjects: - objc.NSOrderedSet initWithObjects$1(objc.ObjCObject firstObj) { - final _$$ref = object$.ref; - final _$$ref$1 = firstObj.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjects_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithOrderedSet: - objc.NSOrderedSet initWithOrderedSet(objc.NSOrderedSet set) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithOrderedSet:copyItems: - objc.NSOrderedSet initWithOrderedSet$1( - objc.NSOrderedSet set, { - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithOrderedSet:range:copyItems: - objc.NSOrderedSet initWithOrderedSet$2( - objc.NSOrderedSet set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_range_copyItems_, - _$$ref$1.pointer, - range, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet: - objc.NSOrderedSet initWithSet(objc.NSSet set) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - objc.NSOrderedSet initWithSet$1(objc.NSSet set, {required bool copyItems}) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// orderedSet - static objc.NSOrderedSet orderedSet() { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithArray: - static objc.NSOrderedSet orderedSetWithArray(objc.NSArray array) { - final _$$ref = array.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithArray_, - _$$ref.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithArray:range:copyItems: - static objc.NSOrderedSet orderedSetWithArray$1( - objc.NSArray array, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = array.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _class_NSOrderedSet, - _sel_orderedSetWithArray_range_copyItems_, - _$$ref.pointer, - range, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObject: - static objc.NSOrderedSet orderedSetWithObject(objc.ObjCObject object) { - final _$$ref = object.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithObject_, - _$$ref.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObjects: - static objc.NSOrderedSet orderedSetWithObjects(objc.ObjCObject firstObj) { - final _$$ref = firstObj.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithObjects_, - _$$ref.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObjects:count: - static objc.NSOrderedSet orderedSetWithObjects$1( - ffi.Pointer> objects, { - required DartNSUInteger count, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zmbtbd( - _class_NSOrderedSet, - _sel_orderedSetWithObjects_count_, - objects, - count, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet: - static objc.NSOrderedSet orderedSetWithOrderedSet(objc.NSOrderedSet set) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_, - _$$ref.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet:range:copyItems: - static objc.NSOrderedSet orderedSetWithOrderedSet$1( - objc.NSOrderedSet set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_range_copyItems_, - _$$ref.pointer, - range, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithSet: - static objc.NSOrderedSet orderedSetWithSet(objc.NSSet set) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithSet_, - _$$ref.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithSet:copyItems: - static objc.NSOrderedSet orderedSetWithSet$1( - objc.NSSet set, { - required bool copyItems, - }) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _class_NSOrderedSet, - _sel_orderedSetWithSet_copyItems_, - _$$ref.pointer, - copyItems, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } -} - -/// NSOrderedSetDiffing -extension NSOrderedSetDiffing on objc.NSOrderedSet { - /// differenceFromOrderedSet: - objc.NSOrderedCollectionDifference differenceFromOrderedSet( - objc.NSOrderedSet other, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.differenceFromOrderedSet:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_differenceFromOrderedSet_, - _$$ref$1.pointer, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// differenceFromOrderedSet:withOptions: - objc.NSOrderedCollectionDifference differenceFromOrderedSet$1( - objc.NSOrderedSet other, { - required DartNSUInteger withOptions, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.differenceFromOrderedSet:withOptions:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1wtpmu7( - _$$ref.pointer, - _sel_differenceFromOrderedSet_withOptions_, - _$$ref$1.pointer, - withOptions, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// differenceFromOrderedSet:withOptions:usingEquivalenceTest: - objc.NSOrderedCollectionDifference differenceFromOrderedSet$2( - objc.NSOrderedSet other, { - required DartNSUInteger withOptions, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingEquivalenceTest, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = other.ref; - final _$$ref$2 = usingEquivalenceTest.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.differenceFromOrderedSet:withOptions:usingEquivalenceTest:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1415lvo( - _$$ref.pointer, - _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_, - _$$ref$1.pointer, - withOptions, - _$$ref$2.pointer, - ); - return objc.NSOrderedCollectionDifference.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// orderedSetByApplyingDifference: - objc.NSOrderedSet? orderedSetByApplyingDifference( - objc.NSOrderedCollectionDifference difference, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = difference.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetByApplyingDifference:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_orderedSetByApplyingDifference_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSOrthography is a stub. To generate bindings for this class, include -/// NSOrthography in your config's objc-interfaces list. -/// -/// NSOrthography -extension type NSOrthography._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSOrthography] that points to the same underlying object as [other]. - NSOrthography.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSOrthography', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } - - /// Constructs a [NSOrthography] that wraps the given raw object pointer. - NSOrthography.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSOrthography', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } -} - -/// NSOrthographyCreation -extension NSOrthographyCreation on NSOrthography {} - -/// NSOrthographyExtended -extension NSOrthographyExtended on NSOrthography { - /// allLanguages - objc.NSArray get allLanguages { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSOrthography.allLanguages', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allLanguages); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// allScripts - objc.NSArray get allScripts { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSOrthography.allScripts', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allScripts); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// dominantLanguage - objc.NSString get dominantLanguage { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSOrthography.dominantLanguage', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_dominantLanguage); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// dominantLanguageForScript: - objc.NSString? dominantLanguageForScript(objc.NSString script) { - final _$$ref = object$.ref; - final _$$ref$1 = script.ref; - objc.checkOsVersionInternal( - 'NSOrthography.dominantLanguageForScript:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_dominantLanguageForScript_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// languagesForScript: - objc.NSArray? languagesForScript(objc.NSString script) { - final _$$ref = object$.ref; - final _$$ref$1 = script.ref; - objc.checkOsVersionInternal( - 'NSOrthography.languagesForScript:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_languagesForScript_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSOutputStreamExtensions -extension NSOutputStreamExtensions on objc.NSOutputStream { - /// initToFileAtPath:append: - objc.NSOutputStream? initToFileAtPath( - objc.NSString path, { - required bool append, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initToFileAtPath_append_, - _$$ref$1.pointer, - append, - ); - return $ret.address == 0 - ? null - : objc.NSOutputStream.fromPointer($ret, retain: false, release: true); - } - - /// outputStreamToBuffer:capacity: - static objc.NSOutputStream outputStreamToBuffer( - ffi.Pointer buffer, { - required DartNSUInteger capacity, - }) { - final $ret = _objc_msgSend_158ju31( - _class_NSOutputStream, - _sel_outputStreamToBuffer_capacity_, - buffer, - capacity, - ); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } - - /// outputStreamToFileAtPath:append: - static objc.NSOutputStream outputStreamToFileAtPath( - objc.NSString path, { - required bool append, - }) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_17amj0z( - _class_NSOutputStream, - _sel_outputStreamToFileAtPath_append_, - _$$ref.pointer, - append, - ); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } - - /// outputStreamToMemory - static objc.NSOutputStream outputStreamToMemory() { - final $ret = _objc_msgSend_151sglz( - _class_NSOutputStream, - _sel_outputStreamToMemory, - ); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } - - /// outputStreamWithURL:append: - static objc.NSOutputStream? outputStreamWithURL( - objc.NSURL url, { - required bool append, - }) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSOutputStream.outputStreamWithURL:append:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _class_NSOutputStream, - _sel_outputStreamWithURL_append_, - _$$ref.pointer, - append, - ); - return $ret.address == 0 - ? null - : objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } -} - -sealed class NSPersonNameComponentsFormatterOptions { - static const NSPersonNameComponentsFormatterPhonetic = 2; -} - -enum NSPersonNameComponentsFormatterStyle { - NSPersonNameComponentsFormatterStyleDefault(0), - NSPersonNameComponentsFormatterStyleShort(1), - NSPersonNameComponentsFormatterStyleMedium(2), - NSPersonNameComponentsFormatterStyleLong(3), - NSPersonNameComponentsFormatterStyleAbbreviated(4); - - final int value; - const NSPersonNameComponentsFormatterStyle(this.value); - - static NSPersonNameComponentsFormatterStyle fromValue(int value) => - switch (value) { - 0 => NSPersonNameComponentsFormatterStyleDefault, - 1 => NSPersonNameComponentsFormatterStyleShort, - 2 => NSPersonNameComponentsFormatterStyleMedium, - 3 => NSPersonNameComponentsFormatterStyleLong, - 4 => NSPersonNameComponentsFormatterStyleAbbreviated, - _ => throw ArgumentError( - 'Unknown value for NSPersonNameComponentsFormatterStyle: $value', - ), - }; -} - -typedef NSPoint = objc.CGPoint; -typedef NSPointArray = ffi.Pointer; -typedef NSPointPointer = ffi.Pointer; - -/// WARNING: NSPointerArray is a stub. To generate bindings for this class, include -/// NSPointerArray in your config's objc-interfaces list. -/// -/// NSPointerArray -extension type NSPointerArray._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSFastEnumeration, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSPointerArray] that points to the same underlying object as [other]. - NSPointerArray.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSPointerArray', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } - - /// Constructs a [NSPointerArray] that wraps the given raw object pointer. - NSPointerArray.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSPointerArray', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - } -} - -/// NSPointerArrayConveniences -extension NSPointerArrayConveniences on NSPointerArray { - /// allObjects - objc.NSArray get allObjects { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSPointerArray.allObjects', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_allObjects); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// pointerArrayWithStrongObjects - @Deprecated('GC no longer supported') - static objc.ObjCObject pointerArrayWithStrongObjects() { - objc.checkOsVersionInternal( - 'NSPointerArray.pointerArrayWithStrongObjects', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSPointerArray, - _sel_pointerArrayWithStrongObjects, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// pointerArrayWithWeakObjects - @Deprecated('GC no longer supported') - static objc.ObjCObject pointerArrayWithWeakObjects() { - objc.checkOsVersionInternal( - 'NSPointerArray.pointerArrayWithWeakObjects', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSPointerArray, - _sel_pointerArrayWithWeakObjects, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// strongObjectsPointerArray - static NSPointerArray strongObjectsPointerArray() { - objc.checkOsVersionInternal( - 'NSPointerArray.strongObjectsPointerArray', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSPointerArray, - _sel_strongObjectsPointerArray, - ); - return NSPointerArray.fromPointer($ret, retain: true, release: true); - } - - /// weakObjectsPointerArray - static NSPointerArray weakObjectsPointerArray() { - objc.checkOsVersionInternal( - 'NSPointerArray.weakObjectsPointerArray', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSPointerArray, - _sel_weakObjectsPointerArray, - ); - return NSPointerArray.fromPointer($ret, retain: true, release: true); - } -} - -sealed class NSPointerFunctionsOptions { - static const NSPointerFunctionsStrongMemory = 0; - static const NSPointerFunctionsZeroingWeakMemory = 1; - static const NSPointerFunctionsOpaqueMemory = 2; - static const NSPointerFunctionsMallocMemory = 3; - static const NSPointerFunctionsMachVirtualMemory = 4; - static const NSPointerFunctionsWeakMemory = 5; - static const NSPointerFunctionsObjectPersonality = 0; - static const NSPointerFunctionsOpaquePersonality = 256; - static const NSPointerFunctionsObjectPointerPersonality = 512; - static const NSPointerFunctionsCStringPersonality = 768; - static const NSPointerFunctionsStructPersonality = 1024; - static const NSPointerFunctionsIntegerPersonality = 1280; - static const NSPointerFunctionsCopyIn = 65536; -} - -/// WARNING: NSPortCoder is a stub. To generate bindings for this class, include -/// NSPortCoder in your config's objc-interfaces list. -/// -/// NSPortCoder -@Deprecated('Use NSXPCConnection instead') -extension type NSPortCoder._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSCoder { - /// Constructs a [NSPortCoder] that points to the same underlying object as [other]. - NSPortCoder.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSPortCoder', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSPortCoder] that wraps the given raw object pointer. - NSPortCoder.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSPortCoder', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } -} - -enum NSPostingStyle { - NSPostWhenIdle(1), - NSPostASAP(2), - NSPostNow(3); - - final int value; - const NSPostingStyle(this.value); - - static NSPostingStyle fromValue(int value) => switch (value) { - 1 => NSPostWhenIdle, - 2 => NSPostASAP, - 3 => NSPostNow, - _ => throw ArgumentError('Unknown value for NSPostingStyle: $value'), - }; -} - -/// WARNING: NSPredicate is a stub. To generate bindings for this class, include -/// NSPredicate in your config's objc-interfaces list. -/// -/// NSPredicate -extension type NSPredicate._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSPredicate] that points to the same underlying object as [other]. - NSPredicate.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSPredicate', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } - - /// Constructs a [NSPredicate] that wraps the given raw object pointer. - NSPredicate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSPredicate', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 4, 0)), - ); - } -} - -enum NSPredicateOperatorType { - NSLessThanPredicateOperatorType(0), - NSLessThanOrEqualToPredicateOperatorType(1), - NSGreaterThanPredicateOperatorType(2), - NSGreaterThanOrEqualToPredicateOperatorType(3), - NSEqualToPredicateOperatorType(4), - NSNotEqualToPredicateOperatorType(5), - NSMatchesPredicateOperatorType(6), - NSLikePredicateOperatorType(7), - NSBeginsWithPredicateOperatorType(8), - NSEndsWithPredicateOperatorType(9), - NSInPredicateOperatorType(10), - NSCustomSelectorPredicateOperatorType(11), - NSContainsPredicateOperatorType(99), - NSBetweenPredicateOperatorType(100); - - final int value; - const NSPredicateOperatorType(this.value); - - static NSPredicateOperatorType fromValue(int value) => switch (value) { - 0 => NSLessThanPredicateOperatorType, - 1 => NSLessThanOrEqualToPredicateOperatorType, - 2 => NSGreaterThanPredicateOperatorType, - 3 => NSGreaterThanOrEqualToPredicateOperatorType, - 4 => NSEqualToPredicateOperatorType, - 5 => NSNotEqualToPredicateOperatorType, - 6 => NSMatchesPredicateOperatorType, - 7 => NSLikePredicateOperatorType, - 8 => NSBeginsWithPredicateOperatorType, - 9 => NSEndsWithPredicateOperatorType, - 10 => NSInPredicateOperatorType, - 11 => NSCustomSelectorPredicateOperatorType, - 99 => NSContainsPredicateOperatorType, - 100 => NSBetweenPredicateOperatorType, - _ => throw ArgumentError( - 'Unknown value for NSPredicateOperatorType: $value', - ), - }; -} - -/// NSPredicateSupport -extension NSPredicateSupport on objc.NSArray { - /// filteredArrayUsingPredicate: - objc.NSArray filteredArrayUsingPredicate(NSPredicate predicate) { - final _$$ref = object$.ref; - final _$$ref$1 = predicate.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_filteredArrayUsingPredicate_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSPredicateSupport -extension NSPredicateSupport$1 on objc.NSSet { - /// filteredSetUsingPredicate: - objc.NSSet filteredSetUsingPredicate(NSPredicate predicate) { - final _$$ref = object$.ref; - final _$$ref$1 = predicate.ref; - objc.checkOsVersionInternal( - 'NSSet.filteredSetUsingPredicate:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_filteredSetUsingPredicate_, - _$$ref$1.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } -} - -/// NSPredicateSupport -extension NSPredicateSupport$2 on objc.NSMutableArray { - /// filterUsingPredicate: - void filterUsingPredicate(NSPredicate predicate) { - final _$$ref = object$.ref; - final _$$ref$1 = predicate.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_filterUsingPredicate_, - _$$ref$1.pointer, - ); - } -} - -/// NSPredicateSupport -extension NSPredicateSupport$3 on objc.NSMutableOrderedSet { - /// filterUsingPredicate: - void filterUsingPredicate(NSPredicate p) { - final _$$ref = object$.ref; - final _$$ref$1 = p.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.filterUsingPredicate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_filterUsingPredicate_, - _$$ref$1.pointer, - ); - } -} - -/// NSPredicateSupport -extension NSPredicateSupport$4 on objc.NSOrderedSet { - /// filteredOrderedSetUsingPredicate: - objc.NSOrderedSet filteredOrderedSetUsingPredicate(NSPredicate p) { - final _$$ref = object$.ref; - final _$$ref$1 = p.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.filteredOrderedSetUsingPredicate:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_filteredOrderedSetUsingPredicate_, - _$$ref$1.pointer, - ); - return objc.NSOrderedSet.fromPointer($ret, retain: true, release: true); - } -} - -/// NSPredicateSupport -extension NSPredicateSupport$5 on objc.NSMutableSet { - /// filterUsingPredicate: - void filterUsingPredicate(NSPredicate predicate) { - final _$$ref = object$.ref; - final _$$ref$1 = predicate.ref; - objc.checkOsVersionInternal( - 'NSMutableSet.filterUsingPredicate:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_filterUsingPredicate_, - _$$ref$1.pointer, - ); - } -} - -enum NSPresentationIntentKind { - NSPresentationIntentKindParagraph(0), - NSPresentationIntentKindHeader(1), - NSPresentationIntentKindOrderedList(2), - NSPresentationIntentKindUnorderedList(3), - NSPresentationIntentKindListItem(4), - NSPresentationIntentKindCodeBlock(5), - NSPresentationIntentKindBlockQuote(6), - NSPresentationIntentKindThematicBreak(7), - NSPresentationIntentKindTable(8), - NSPresentationIntentKindTableHeaderRow(9), - NSPresentationIntentKindTableRow(10), - NSPresentationIntentKindTableCell(11); - - final int value; - const NSPresentationIntentKind(this.value); - - static NSPresentationIntentKind fromValue(int value) => switch (value) { - 0 => NSPresentationIntentKindParagraph, - 1 => NSPresentationIntentKindHeader, - 2 => NSPresentationIntentKindOrderedList, - 3 => NSPresentationIntentKindUnorderedList, - 4 => NSPresentationIntentKindListItem, - 5 => NSPresentationIntentKindCodeBlock, - 6 => NSPresentationIntentKindBlockQuote, - 7 => NSPresentationIntentKindThematicBreak, - 8 => NSPresentationIntentKindTable, - 9 => NSPresentationIntentKindTableHeaderRow, - 10 => NSPresentationIntentKindTableRow, - 11 => NSPresentationIntentKindTableCell, - _ => throw ArgumentError( - 'Unknown value for NSPresentationIntentKind: $value', - ), - }; -} - -enum NSPresentationIntentTableColumnAlignment { - NSPresentationIntentTableColumnAlignmentLeft(0), - NSPresentationIntentTableColumnAlignmentCenter(1), - NSPresentationIntentTableColumnAlignmentRight(2); - - final int value; - const NSPresentationIntentTableColumnAlignment(this.value); - - static NSPresentationIntentTableColumnAlignment fromValue(int value) => - switch (value) { - 0 => NSPresentationIntentTableColumnAlignmentLeft, - 1 => NSPresentationIntentTableColumnAlignmentCenter, - 2 => NSPresentationIntentTableColumnAlignmentRight, - _ => throw ArgumentError( - 'Unknown value for NSPresentationIntentTableColumnAlignment: $value', - ), - }; -} - -/// NSPreviewSupport -extension NSPreviewSupport on objc.NSItemProvider { - /// loadPreviewImageWithOptions:completionHandler: - void loadPreviewImageWithOptions( - objc.NSDictionary options, { - required DartNSItemProviderCompletionHandler completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = options.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSItemProvider.loadPreviewImageWithOptions:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_o762yo( - _$$ref.pointer, - _sel_loadPreviewImageWithOptions_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// previewImageHandler - DartNSItemProviderLoadHandler? get previewImageHandler { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSItemProvider.previewImageHandler', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_previewImageHandler); - return $ret.address == 0 - ? null - : ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// setPreviewImageHandler: - set previewImageHandler(DartNSItemProviderLoadHandler? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSItemProvider.setPreviewImageHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_f167m6( - _$$ref.pointer, - _sel_setPreviewImageHandler_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// WARNING: NSProcessInfo is a stub. To generate bindings for this class, include -/// NSProcessInfo in your config's objc-interfaces list. -/// -/// NSProcessInfo -extension type NSProcessInfo._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSProcessInfo] that points to the same underlying object as [other]. - NSProcessInfo.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSProcessInfo] that wraps the given raw object pointer. - NSProcessInfo.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSProcessInfoActivity -extension NSProcessInfoActivity on NSProcessInfo { - /// beginActivityWithOptions:reason: - objc.NSObjectProtocol beginActivityWithOptions( - int options, { - required objc.NSString reason, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = reason.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.beginActivityWithOptions:reason:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_u2drt1( - _$$ref.pointer, - _sel_beginActivityWithOptions_reason_, - options, - _$$ref$1.pointer, - ); - return objc.NSObjectProtocol.fromPointer($ret, retain: true, release: true); - } - - /// endActivity: - void endActivity(objc.NSObjectProtocol activity) { - final _$$ref = object$.ref; - final _$$ref$1 = activity.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.endActivity:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_endActivity_, _$$ref$1.pointer); - } - - /// performActivityWithOptions:reason:usingBlock: - void performActivityWithOptions( - int options, { - required objc.NSString reason, - required objc.ObjCBlock usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = reason.ref; - final _$$ref$2 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.performActivityWithOptions:reason:usingBlock:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1jz97e( - _$$ref.pointer, - _sel_performActivityWithOptions_reason_usingBlock_, - options, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// performExpiringActivityWithReason:usingBlock: - void performExpiringActivityWithReason( - objc.NSString reason, { - required objc.ObjCBlock usingBlock, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = reason.ref; - final _$$ref$2 = usingBlock.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.performExpiringActivityWithReason:usingBlock:', - iOS: (false, (8, 2, 0)), - macOS: (true, null), - ); - _objc_msgSend_o762yo( - _$$ref.pointer, - _sel_performExpiringActivityWithReason_usingBlock_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSProcessInfoPlatform -extension NSProcessInfoPlatform on NSProcessInfo { - /// isMacCatalystApp - bool get isMacCatalystApp { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.isMacCatalystApp', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMacCatalystApp); - } - - /// isiOSAppOnMac - bool get isiOSAppOnMac { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.isiOSAppOnMac', - iOS: (false, (14, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isiOSAppOnMac); - } -} - -/// NSProcessInfoPowerState -extension NSProcessInfoPowerState on NSProcessInfo { - /// isLowPowerModeEnabled - bool get isLowPowerModeEnabled { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.isLowPowerModeEnabled', - iOS: (false, (9, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isLowPowerModeEnabled); - } -} - -enum NSProcessInfoThermalState { - NSProcessInfoThermalStateNominal(0), - NSProcessInfoThermalStateFair(1), - NSProcessInfoThermalStateSerious(2), - NSProcessInfoThermalStateCritical(3); - - final int value; - const NSProcessInfoThermalState(this.value); - - static NSProcessInfoThermalState fromValue(int value) => switch (value) { - 0 => NSProcessInfoThermalStateNominal, - 1 => NSProcessInfoThermalStateFair, - 2 => NSProcessInfoThermalStateSerious, - 3 => NSProcessInfoThermalStateCritical, - _ => throw ArgumentError( - 'Unknown value for NSProcessInfoThermalState: $value', - ), - }; -} - -/// NSProcessInfoThermalState -extension NSProcessInfoThermalState$1 on NSProcessInfo { - /// thermalState - NSProcessInfoThermalState get thermalState { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.thermalState', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 10, 3)), - ); - final $ret = _objc_msgSend_1fnsr6j(_$$ref.pointer, _sel_thermalState); - return NSProcessInfoThermalState.fromValue($ret); - } -} - -typedef NSProgressFileOperationKind = ffi.Pointer; -typedef DartNSProgressFileOperationKind = objc.NSString; -typedef NSProgressKind = ffi.Pointer; -typedef DartNSProgressKind = objc.NSString; -typedef NSProgressPublishingHandler = ffi.Pointer; -typedef DartNSProgressPublishingHandler = - objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - >; - -/// NSProgressReporting -extension type NSProgressReporting._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSProgressReporting] that points to the same underlying object as [other]. - NSProgressReporting.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSProgressReporting] that wraps the given raw object pointer. - NSProgressReporting.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSProgressReporting]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSProgressReporting, - ); - } -} - -extension NSProgressReporting$Methods on NSProgressReporting { - /// progress - objc.NSProgress get progress { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_progress); - return objc.NSProgress.fromPointer($ret, retain: true, release: true); - } -} - -interface class NSProgressReporting$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSProgressReporting.cast()); - - /// Builds an object that implements the NSProgressReporting protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSProgressReporting implement({ - required objc.NSProgress Function() progress, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSProgressReporting'); - NSProgressReporting$Builder.progress.implement(builder, progress); - builder.addProtocol($protocol); - return NSProgressReporting.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSProgressReporting protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.NSProgress Function() progress, - bool $keepIsolateAlive = true, - }) { - NSProgressReporting$Builder.progress.implement(builder, progress); - builder.addProtocol($protocol); - } - - /// progress - static final progress = objc.ObjCProtocolMethod( - _protocol_NSProgressReporting, - _sel_progress, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSProgressReporting, - _sel_progress, - isRequired: true, - isInstanceMethod: true, - ), - (objc.NSProgress Function() func) => - ObjCBlock_NSProgress_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); -} - -typedef NSProgressUnpublishingHandler = ffi.Pointer; -typedef DartNSProgressUnpublishingHandler = objc.ObjCBlock; -typedef NSProgressUserInfoKey = ffi.Pointer; -typedef DartNSProgressUserInfoKey = objc.NSString; - -/// NSPromisedItems -extension NSPromisedItems on objc.NSURL { - /// checkPromisedItemIsReachableAndReturnError: - bool checkPromisedItemIsReachableAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.checkPromisedItemIsReachableAndReturnError:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1dom33q( - _$$ref.pointer, - _sel_checkPromisedItemIsReachableAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// getPromisedItemResourceValue:forKey:error: - bool getPromisedItemResourceValue( - ffi.Pointer> value, { - required DartNSURLResourceKey forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - objc.checkOsVersionInternal( - 'NSURL.getPromisedItemResourceValue:forKey:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1j9bhml( - _$$ref.pointer, - _sel_getPromisedItemResourceValue_forKey_error_, - value, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// promisedItemResourceValuesForKeys:error: - objc.NSDictionary? promisedItemResourceValuesForKeys(objc.NSArray keys) { - final _$$ref = object$.ref; - final _$$ref$1 = keys.ref; - objc.checkOsVersionInternal( - 'NSURL.promisedItemResourceValuesForKeys:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.pointer, - _sel_promisedItemResourceValuesForKeys_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -const int NSPropertyListErrorMaximum = 4095; - -const int NSPropertyListErrorMinimum = 3840; - -sealed class NSPropertyListMutabilityOptions { - static const NSPropertyListImmutable = 0; - static const NSPropertyListMutableContainers = 1; - static const NSPropertyListMutableContainersAndLeaves = 2; -} - -const int NSPropertyListReadCorruptError = 3840; - -const int NSPropertyListReadStreamError = 3842; - -const int NSPropertyListReadUnknownVersionError = 3841; - -const int NSPropertyListWriteInvalidError = 3852; - -typedef NSPropertyListWriteOptions = NSUInteger; - -const int NSPropertyListWriteStreamError = 3851; - -const int NSProprietaryStringEncoding = 65536; - -/// WARNING: NSProtocolChecker is a stub. To generate bindings for this class, include -/// NSProtocolChecker in your config's objc-interfaces list. -/// -/// NSProtocolChecker -extension type NSProtocolChecker._(objc.ObjCObject object$) - implements objc.ObjCObject, NSProxy { - /// Constructs a [NSProtocolChecker] that points to the same underlying object as [other]. - NSProtocolChecker.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSProtocolChecker] that wraps the given raw object pointer. - NSProtocolChecker.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSProtocolCheckerCreation -extension NSProtocolCheckerCreation on NSProtocolChecker {} - -/// WARNING: NSProxy is a stub. To generate bindings for this class, include -/// NSProxy in your config's objc-interfaces list. -/// -/// NSProxy -extension type NSProxy._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObjectProtocol { - /// Constructs a [NSProxy] that points to the same underlying object as [other]. - NSProxy.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSProxy] that wraps the given raw object pointer. - NSProxy.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -typedef NSRange = objc.NSRange; -typedef NSRangePointer = ffi.Pointer; - -const int NSReceiverEvaluationScriptError = 1; - -const int NSReceiversCantHandleCommandScriptError = 4; - -typedef NSRect = objc.CGRect; -typedef NSRectArray = ffi.Pointer; - -enum NSRectEdge { - NSRectEdgeMinX(0), - NSRectEdgeMinY(1), - NSRectEdgeMaxX(2), - NSRectEdgeMaxY(3); - - static const NSMinXEdge = NSRectEdgeMinX; - static const NSMinYEdge = NSRectEdgeMinY; - static const NSMaxXEdge = NSRectEdgeMaxX; - static const NSMaxYEdge = NSRectEdgeMaxY; - - final int value; - const NSRectEdge(this.value); - - static NSRectEdge fromValue(int value) => switch (value) { - 0 => NSRectEdgeMinX, - 1 => NSRectEdgeMinY, - 2 => NSRectEdgeMaxX, - 3 => NSRectEdgeMaxY, - _ => throw ArgumentError('Unknown value for NSRectEdge: $value'), - }; - - @override - String toString() { - if (this == NSRectEdgeMinX) - return "NSRectEdge.NSRectEdgeMinX, NSRectEdge.NSMinXEdge"; - if (this == NSRectEdgeMinY) - return "NSRectEdge.NSRectEdgeMinY, NSRectEdge.NSMinYEdge"; - if (this == NSRectEdgeMaxX) - return "NSRectEdge.NSRectEdgeMaxX, NSRectEdge.NSMaxXEdge"; - if (this == NSRectEdgeMaxY) - return "NSRectEdge.NSRectEdgeMaxY, NSRectEdge.NSMaxYEdge"; - return super.toString(); - } -} - -typedef NSRectPointer = ffi.Pointer; - -/// WARNING: NSRegularExpression is a stub. To generate bindings for this class, include -/// NSRegularExpression in your config's objc-interfaces list. -/// -/// NSRegularExpression -extension type NSRegularExpression._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSRegularExpression] that points to the same underlying object as [other]. - NSRegularExpression.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSRegularExpression', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } - - /// Constructs a [NSRegularExpression] that wraps the given raw object pointer. - NSRegularExpression.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSRegularExpression', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } -} - -sealed class NSRegularExpressionOptions { - static const NSRegularExpressionCaseInsensitive = 1; - static const NSRegularExpressionAllowCommentsAndWhitespace = 2; - static const NSRegularExpressionIgnoreMetacharacters = 4; - static const NSRegularExpressionDotMatchesLineSeparators = 8; - static const NSRegularExpressionAnchorsMatchLines = 16; - static const NSRegularExpressionUseUnixLineSeparators = 32; - static const NSRegularExpressionUseUnicodeWordBoundaries = 64; -} - -enum NSRelativeDateTimeFormatterStyle { - NSRelativeDateTimeFormatterStyleNumeric(0), - NSRelativeDateTimeFormatterStyleNamed(1); - - final int value; - const NSRelativeDateTimeFormatterStyle(this.value); - - static NSRelativeDateTimeFormatterStyle fromValue(int value) => - switch (value) { - 0 => NSRelativeDateTimeFormatterStyleNumeric, - 1 => NSRelativeDateTimeFormatterStyleNamed, - _ => throw ArgumentError( - 'Unknown value for NSRelativeDateTimeFormatterStyle: $value', - ), - }; -} - -enum NSRelativeDateTimeFormatterUnitsStyle { - NSRelativeDateTimeFormatterUnitsStyleFull(0), - NSRelativeDateTimeFormatterUnitsStyleSpellOut(1), - NSRelativeDateTimeFormatterUnitsStyleShort(2), - NSRelativeDateTimeFormatterUnitsStyleAbbreviated(3); - - final int value; - const NSRelativeDateTimeFormatterUnitsStyle(this.value); - - static NSRelativeDateTimeFormatterUnitsStyle fromValue(int value) => - switch (value) { - 0 => NSRelativeDateTimeFormatterUnitsStyleFull, - 1 => NSRelativeDateTimeFormatterUnitsStyleSpellOut, - 2 => NSRelativeDateTimeFormatterUnitsStyleShort, - 3 => NSRelativeDateTimeFormatterUnitsStyleAbbreviated, - _ => throw ArgumentError( - 'Unknown value for NSRelativeDateTimeFormatterUnitsStyle: $value', - ), - }; -} - -enum NSRelativePosition { - NSRelativeAfter(0), - NSRelativeBefore(1); - - final int value; - const NSRelativePosition(this.value); - - static NSRelativePosition fromValue(int value) => switch (value) { - 0 => NSRelativeAfter, - 1 => NSRelativeBefore, - _ => throw ArgumentError('Unknown value for NSRelativePosition: $value'), - }; -} - -/// NSReplacement -extension NSReplacement on NSRegularExpression { - /// replaceMatchesInString:options:range:withTemplate: - DartNSUInteger replaceMatchesInString( - objc.NSMutableString string, { - required DartNSUInteger options, - required NSRange range, - required objc.NSString withTemplate, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - final _$$ref$2 = withTemplate.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.replaceMatchesInString:options:range:withTemplate:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_kgvd6q( - _$$ref.pointer, - _sel_replaceMatchesInString_options_range_withTemplate_, - _$$ref$1.pointer, - options, - range, - _$$ref$2.pointer, - ); - } - - /// replacementStringForResult:inString:offset:template: - objc.NSString replacementStringForResult( - NSTextCheckingResult result, { - required objc.NSString inString, - required DartNSInteger offset, - required objc.NSString template, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = result.ref; - final _$$ref$2 = inString.ref; - final _$$ref$3 = template.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.replacementStringForResult:inString:offset:template:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_l9ppnx( - _$$ref.pointer, - _sel_replacementStringForResult_inString_offset_template_, - _$$ref$1.pointer, - _$$ref$2.pointer, - offset, - _$$ref$3.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByReplacingMatchesInString:options:range:withTemplate: - objc.NSString stringByReplacingMatchesInString( - objc.NSString string, { - required DartNSUInteger options, - required NSRange range, - required objc.NSString withTemplate, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = string.ref; - final _$$ref$2 = withTemplate.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.stringByReplacingMatchesInString:options:range:withTemplate:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1lk7ow3( - _$$ref.pointer, - _sel_stringByReplacingMatchesInString_options_range_withTemplate_, - _$$ref$1.pointer, - options, - range, - _$$ref$2.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// escapedTemplateForString: - static objc.NSString escapedTemplateForString(objc.NSString string) { - final _$$ref = string.ref; - objc.checkOsVersionInternal( - 'NSRegularExpression.escapedTemplateForString:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSRegularExpression, - _sel_escapedTemplateForString_, - _$$ref.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -const int NSRequiredArgumentsMissingScriptError = 5; - -enum NSRoundingMode { - NSRoundPlain(0), - NSRoundDown(1), - NSRoundUp(2), - NSRoundBankers(3); - - final int value; - const NSRoundingMode(this.value); - - static NSRoundingMode fromValue(int value) => switch (value) { - 0 => NSRoundPlain, - 1 => NSRoundDown, - 2 => NSRoundUp, - 3 => NSRoundBankers, - _ => throw ArgumentError('Unknown value for NSRoundingMode: $value'), - }; -} - -/// NSRunLoopConveniences -extension NSRunLoopConveniences on objc.NSRunLoop { - /// configureAsServer - @Deprecated('Not supported') - void configureAsServer() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSRunLoop.configureAsServer', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_configureAsServer); - } - - /// performBlock: - void performBlock(objc.ObjCBlock block) { - final _$$ref = object$.ref; - final _$$ref$1 = block.ref; - objc.checkOsVersionInternal( - 'NSRunLoop.performBlock:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - _objc_msgSend_f167m6(_$$ref.pointer, _sel_performBlock_, _$$ref$1.pointer); - } - - /// performInModes:block: - void performInModes( - objc.NSArray modes, { - required objc.ObjCBlock block, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = modes.ref; - final _$$ref$2 = block.ref; - objc.checkOsVersionInternal( - 'NSRunLoop.performInModes:block:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - _objc_msgSend_o762yo( - _$$ref.pointer, - _sel_performInModes_block_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// run - void run() { - final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_run); - } - - /// runMode:beforeDate: - bool runMode(DartNSRunLoopMode mode, {required objc.NSDate beforeDate}) { - final _$$ref = object$.ref; - final _$$ref$1 = mode.ref; - final _$$ref$2 = beforeDate.ref; - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_runMode_beforeDate_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// runUntilDate: - void runUntilDate(objc.NSDate limitDate) { - final _$$ref = object$.ref; - final _$$ref$1 = limitDate.ref; - _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_runUntilDate_, _$$ref$1.pointer); - } -} - -typedef NSRunLoopMode = ffi.Pointer; -typedef DartNSRunLoopMode = objc.NSString; - -enum NSSaveOptions { - NSSaveOptionsYes(0), - NSSaveOptionsNo(1), - NSSaveOptionsAsk(2); - - final int value; - const NSSaveOptions(this.value); - - static NSSaveOptions fromValue(int value) => switch (value) { - 0 => NSSaveOptionsYes, - 1 => NSSaveOptionsNo, - 2 => NSSaveOptionsAsk, - _ => throw ArgumentError('Unknown value for NSSaveOptions: $value'), - }; -} - -const int NSScannedOption = 1; - -/// WARNING: NSScanner is a stub. To generate bindings for this class, include -/// NSScanner in your config's objc-interfaces list. -/// -/// NSScanner -extension type NSScanner._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCopying { - /// Constructs a [NSScanner] that points to the same underlying object as [other]. - NSScanner.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSScanner] that wraps the given raw object pointer. - NSScanner.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSScriptClassDescription -extension NSScriptClassDescription on objc.NSObject { - /// classCode - DartUInt32 get classCode { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.classCode', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_3pyzne(_$$ref.pointer, _sel_classCode); - } - - /// className - objc.NSString get className { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.className', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_className); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSScriptClassDescription$1 is a stub. To generate bindings for this class, include -/// NSScriptClassDescription in your config's objc-interfaces list. -/// -/// NSScriptClassDescription -extension type NSScriptClassDescription$1._(objc.ObjCObject object$) - implements objc.ObjCObject, NSClassDescription { - /// Constructs a [NSScriptClassDescription$1] that points to the same underlying object as [other]. - NSScriptClassDescription$1.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSScriptClassDescription$1] that wraps the given raw object pointer. - NSScriptClassDescription$1.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSScriptKeyValueCoding -extension NSScriptKeyValueCoding on objc.NSObject { - /// coerceValue:forKey: - objc.ObjCObject? coerceValue( - objc.ObjCObject? value, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSObject.coerceValue:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_coerceValue_forKey_, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// insertValue:atIndex:inPropertyWithKey: - void insertValue( - objc.ObjCObject value, { - required DartNSUInteger atIndex, - required objc.NSString inPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - final _$$ref$2 = inPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.insertValue:atIndex:inPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_10nfbmq( - _$$ref.pointer, - _sel_insertValue_atIndex_inPropertyWithKey_, - _$$ref$1.pointer, - atIndex, - _$$ref$2.pointer, - ); - } - - /// insertValue:inPropertyWithKey: - void insertValue$1( - objc.ObjCObject value, { - required objc.NSString inPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - final _$$ref$2 = inPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.insertValue:inPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_insertValue_inPropertyWithKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeValueAtIndex:fromPropertyWithKey: - void removeValueAtIndex( - DartNSUInteger index$1, { - required objc.NSString fromPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = fromPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.removeValueAtIndex:fromPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1gypgok( - _$$ref.pointer, - _sel_removeValueAtIndex_fromPropertyWithKey_, - index$1, - _$$ref$1.pointer, - ); - } - - /// replaceValueAtIndex:inPropertyWithKey:withValue: - void replaceValueAtIndex( - DartNSUInteger index$1, { - required objc.NSString inPropertyWithKey, - required objc.ObjCObject withValue, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = inPropertyWithKey.ref; - final _$$ref$2 = withValue.ref; - objc.checkOsVersionInternal( - 'NSObject.replaceValueAtIndex:inPropertyWithKey:withValue:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_rutu22( - _$$ref.pointer, - _sel_replaceValueAtIndex_inPropertyWithKey_withValue_, - index$1, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// valueAtIndex:inPropertyWithKey: - objc.ObjCObject? valueAtIndex( - DartNSUInteger index$1, { - required objc.NSString inPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = inPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.valueAtIndex:inPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_vbc8p4( - _$$ref.pointer, - _sel_valueAtIndex_inPropertyWithKey_, - index$1, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// valueWithName:inPropertyWithKey: - objc.ObjCObject? valueWithName( - objc.NSString name, { - required objc.NSString inPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = name.ref; - final _$$ref$2 = inPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.valueWithName:inPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_valueWithName_inPropertyWithKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// valueWithUniqueID:inPropertyWithKey: - objc.ObjCObject? valueWithUniqueID( - objc.ObjCObject uniqueID, { - required objc.NSString inPropertyWithKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = uniqueID.ref; - final _$$ref$2 = inPropertyWithKey.ref; - objc.checkOsVersionInternal( - 'NSObject.valueWithUniqueID:inPropertyWithKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_valueWithUniqueID_inPropertyWithKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// WARNING: NSScriptObjectSpecifier is a stub. To generate bindings for this class, include -/// NSScriptObjectSpecifier in your config's objc-interfaces list. -/// -/// NSScriptObjectSpecifier -extension type NSScriptObjectSpecifier._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCoding { - /// Constructs a [NSScriptObjectSpecifier] that points to the same underlying object as [other]. - NSScriptObjectSpecifier.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSScriptObjectSpecifier] that wraps the given raw object pointer. - NSScriptObjectSpecifier.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSScriptObjectSpecifiers -extension NSScriptObjectSpecifiers on objc.NSObject { - /// indicesOfObjectsByEvaluatingObjectSpecifier: - objc.NSArray? indicesOfObjectsByEvaluatingObjectSpecifier( - NSScriptObjectSpecifier specifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = specifier.ref; - objc.checkOsVersionInternal( - 'NSObject.indicesOfObjectsByEvaluatingObjectSpecifier:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_indicesOfObjectsByEvaluatingObjectSpecifier_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// objectSpecifier - NSScriptObjectSpecifier? get objectSpecifier { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.objectSpecifier', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_objectSpecifier); - return $ret.address == 0 - ? null - : NSScriptObjectSpecifier.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSScripting -extension NSScripting on objc.NSObject { - /// copyScriptingValue:forKey:withProperties: - objc.ObjCObject? copyScriptingValue( - objc.ObjCObject value, { - required objc.NSString forKey, - required objc.NSDictionary withProperties, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - final _$$ref$2 = forKey.ref; - final _$$ref$3 = withProperties.ref; - objc.checkOsVersionInternal( - 'NSObject.copyScriptingValue:forKey:withProperties:', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_11spmsz( - _$$ref.pointer, - _sel_copyScriptingValue_forKey_withProperties_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// newScriptingObjectOfClass:forValueForKey:withContentsValue:properties: - objc.ObjCObject? newScriptingObjectOfClass( - objc.ObjCObject objectClass, { - required objc.NSString forValueForKey, - objc.ObjCObject? withContentsValue, - required objc.NSDictionary properties, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = objectClass.ref; - final _$$ref$2 = forValueForKey.ref; - final _$$ref$3 = withContentsValue?.ref; - final _$$ref$4 = properties.ref; - objc.checkOsVersionInternal( - 'NSObject.newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_s92gih( - _$$ref.pointer, - _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// scriptingProperties - objc.NSDictionary? get scriptingProperties { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingProperties', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_scriptingProperties, - ); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// scriptingValueForSpecifier: - objc.ObjCObject? scriptingValueForSpecifier( - NSScriptObjectSpecifier objectSpecifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = objectSpecifier.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingValueForSpecifier:', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_scriptingValueForSpecifier_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// setScriptingProperties: - set scriptingProperties(objc.NSDictionary? value) { - final _$$ref = object$.ref; - final _$$ref$1 = value?.ref; - objc.checkOsVersionInternal( - 'NSObject.setScriptingProperties:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_setScriptingProperties_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// NSScriptingComparisonMethods -extension NSScriptingComparisonMethods on objc.NSObject { - /// scriptingBeginsWith: - bool scriptingBeginsWith(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingBeginsWith:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_scriptingBeginsWith_, - _$$ref$1.pointer, - ); - } - - /// scriptingContains: - bool scriptingContains(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingContains:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_scriptingContains_, - _$$ref$1.pointer, - ); - } - - /// scriptingEndsWith: - bool scriptingEndsWith(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingEndsWith:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_scriptingEndsWith_, - _$$ref$1.pointer, - ); - } - - /// scriptingIsEqualTo: - bool scriptingIsEqualTo(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingIsEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_scriptingIsEqualTo_, - _$$ref$1.pointer, - ); - } - - /// scriptingIsGreaterThan: - bool scriptingIsGreaterThan(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingIsGreaterThan:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_scriptingIsGreaterThan_, - _$$ref$1.pointer, - ); - } - - /// scriptingIsGreaterThanOrEqualTo: - bool scriptingIsGreaterThanOrEqualTo(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingIsGreaterThanOrEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_scriptingIsGreaterThanOrEqualTo_, - _$$ref$1.pointer, - ); - } - - /// scriptingIsLessThan: - bool scriptingIsLessThan(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingIsLessThan:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_scriptingIsLessThan_, - _$$ref$1.pointer, - ); - } - - /// scriptingIsLessThanOrEqualTo: - bool scriptingIsLessThanOrEqualTo(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSObject.scriptingIsLessThanOrEqualTo:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_scriptingIsLessThanOrEqualTo_, - _$$ref$1.pointer, - ); - } -} - -enum NSSearchPathDirectory { - NSApplicationDirectory(1), - NSDemoApplicationDirectory(2), - NSDeveloperApplicationDirectory(3), - NSAdminApplicationDirectory(4), - NSLibraryDirectory(5), - NSDeveloperDirectory(6), - NSUserDirectory(7), - NSDocumentationDirectory(8), - NSDocumentDirectory(9), - NSCoreServiceDirectory(10), - NSAutosavedInformationDirectory(11), - NSDesktopDirectory(12), - NSCachesDirectory(13), - NSApplicationSupportDirectory(14), - NSDownloadsDirectory(15), - NSInputMethodsDirectory(16), - NSMoviesDirectory(17), - NSMusicDirectory(18), - NSPicturesDirectory(19), - NSPrinterDescriptionDirectory(20), - NSSharedPublicDirectory(21), - NSPreferencePanesDirectory(22), - NSApplicationScriptsDirectory(23), - NSItemReplacementDirectory(99), - NSAllApplicationsDirectory(100), - NSAllLibrariesDirectory(101), - NSTrashDirectory(102); - - final int value; - const NSSearchPathDirectory(this.value); - - static NSSearchPathDirectory fromValue(int value) => switch (value) { - 1 => NSApplicationDirectory, - 2 => NSDemoApplicationDirectory, - 3 => NSDeveloperApplicationDirectory, - 4 => NSAdminApplicationDirectory, - 5 => NSLibraryDirectory, - 6 => NSDeveloperDirectory, - 7 => NSUserDirectory, - 8 => NSDocumentationDirectory, - 9 => NSDocumentDirectory, - 10 => NSCoreServiceDirectory, - 11 => NSAutosavedInformationDirectory, - 12 => NSDesktopDirectory, - 13 => NSCachesDirectory, - 14 => NSApplicationSupportDirectory, - 15 => NSDownloadsDirectory, - 16 => NSInputMethodsDirectory, - 17 => NSMoviesDirectory, - 18 => NSMusicDirectory, - 19 => NSPicturesDirectory, - 20 => NSPrinterDescriptionDirectory, - 21 => NSSharedPublicDirectory, - 22 => NSPreferencePanesDirectory, - 23 => NSApplicationScriptsDirectory, - 99 => NSItemReplacementDirectory, - 100 => NSAllApplicationsDirectory, - 101 => NSAllLibrariesDirectory, - 102 => NSTrashDirectory, - _ => throw ArgumentError('Unknown value for NSSearchPathDirectory: $value'), - }; -} - -sealed class NSSearchPathDomainMask { - static const NSUserDomainMask = 1; - static const NSLocalDomainMask = 2; - static const NSNetworkDomainMask = 4; - static const NSSystemDomainMask = 8; - static const NSAllDomainsMask = 65535; -} - -/// NSServerTrust -extension NSServerTrust on NSURLCredential { - /// credentialForTrust: - static NSURLCredential credentialForTrust(SecTrustRef trust) { - objc.checkOsVersionInternal( - 'NSURLCredential.credentialForTrust:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1s3ecd1( - _class_NSURLCredential, - _sel_credentialForTrust_, - trust, - ); - return NSURLCredential.fromPointer($ret, retain: true, release: true); - } -} - -/// NSServerTrustValidationSpace -extension NSServerTrustValidationSpace on NSURLProtectionSpace { - /// serverTrust - SecTrustRef get serverTrust { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLProtectionSpace.serverTrust', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_serverTrust); - } -} - -/// NSSetCreation -extension NSSetCreation on objc.NSSet { - /// initWithArray: - objc.NSSet initWithArray(objc.NSArray array) { - final _$$ref = object$.ref; - final _$$ref$1 = array.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_, - _$$ref$1.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithObjects: - objc.NSSet initWithObjects$1(objc.ObjCObject firstObj) { - final _$$ref = object$.ref; - final _$$ref$1 = firstObj.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjects_, - _$$ref$1.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet: - objc.NSSet initWithSet(objc.NSSet set) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_, - _$$ref$1.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - objc.NSSet initWithSet$1(objc.NSSet set, {required bool copyItems}) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return objc.NSSet.fromPointer($ret, retain: false, release: true); - } - - /// set - static objc.NSSet set() { - final $ret = _objc_msgSend_151sglz(_class_NSSet, _sel_set); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// setWithArray: - static objc.NSSet setWithArray(objc.NSArray array) { - final _$$ref = array.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithArray_, - _$$ref.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// setWithObject: - static objc.NSSet setWithObject(objc.ObjCObject object) { - final _$$ref = object.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithObject_, - _$$ref.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// setWithObjects: - static objc.NSSet setWithObjects(objc.ObjCObject firstObj) { - final _$$ref = firstObj.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithObjects_, - _$$ref.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// setWithObjects:count: - static objc.NSSet setWithObjects$1( - ffi.Pointer> objects, { - required DartNSUInteger count, - }) { - final $ret = _objc_msgSend_zmbtbd( - _class_NSSet, - _sel_setWithObjects_count_, - objects, - count, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } - - /// setWithSet: - static objc.NSSet setWithSet(objc.NSSet set) { - final _$$ref = set.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithSet_, - _$$ref.pointer, - ); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } -} - -/// NSSharedKeySetDictionary -extension NSSharedKeySetDictionary on objc.NSDictionary { - /// sharedKeySetForKeys: - static objc.ObjCObject sharedKeySetForKeys(objc.NSArray keys) { - final _$$ref = keys.ref; - objc.checkOsVersionInternal( - 'NSDictionary.sharedKeySetForKeys:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, - _sel_sharedKeySetForKeys_, - _$$ref.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// NSSharedKeySetDictionary -extension NSSharedKeySetDictionary$1 on objc.NSMutableDictionary { - /// dictionaryWithSharedKeySet: - static objc.NSMutableDictionary dictionaryWithSharedKeySet( - objc.ObjCObject keyset, - ) { - final _$$ref = keyset.ref; - objc.checkOsVersionInternal( - 'NSMutableDictionary.dictionaryWithSharedKeySet:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableDictionary, - _sel_dictionaryWithSharedKeySet_, - _$$ref.pointer, - ); - return objc.NSMutableDictionary.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -const int NSShiftJISStringEncoding = 8; - -typedef NSSize = objc.CGSize; -typedef NSSizeArray = ffi.Pointer; -typedef NSSizePointer = ffi.Pointer; -typedef NSSocketNativeHandle = ffi.Int; -typedef DartNSSocketNativeHandle = int; - -/// NSSocketStreamCreationExtensions -extension NSSocketStreamCreationExtensions on objc.NSStream { - /// getStreamsToHost:port:inputStream:outputStream: - @Deprecated('Use nw_connection_t in Network framework instead') - static void getStreamsToHost( - NSHost host, { - required DartNSInteger port, - required ffi.Pointer> inputStream, - required ffi.Pointer> outputStream, - }) { - final _$$ref = host.ref; - objc.checkOsVersionInternal( - 'NSStream.getStreamsToHost:port:inputStream:outputStream:', - iOS: (true, null), - macOS: (false, (10, 3, 0)), - ); - _objc_msgSend_1jknn71( - _class_NSStream, - _sel_getStreamsToHost_port_inputStream_outputStream_, - _$$ref.pointer, - port, - inputStream, - outputStream, - ); - } - - /// getStreamsToHostWithName:port:inputStream:outputStream: - @Deprecated('Use nw_connection_t in Network framework instead') - static void getStreamsToHostWithName( - objc.NSString hostname, { - required DartNSInteger port, - required ffi.Pointer> inputStream, - required ffi.Pointer> outputStream, - }) { - final _$$ref = hostname.ref; - objc.checkOsVersionInternal( - 'NSStream.getStreamsToHostWithName:port:inputStream:outputStream:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_1jknn71( - _class_NSStream, - _sel_getStreamsToHostWithName_port_inputStream_outputStream_, - _$$ref.pointer, - port, - inputStream, - outputStream, - ); - } -} - -@Deprecated('Not supported') -const int NSSolarisOperatingSystem = 3; - -/// NSSortDescriptorSorting -extension NSSortDescriptorSorting on objc.NSArray { - /// sortedArrayUsingDescriptors: - objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { - final _$$ref = object$.ref; - final _$$ref$1 = sortDescriptors.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_sortedArrayUsingDescriptors_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSSortDescriptorSorting -extension NSSortDescriptorSorting$1 on objc.NSSet { - /// sortedArrayUsingDescriptors: - objc.NSArray sortedArrayUsingDescriptors(objc.NSArray sortDescriptors) { - final _$$ref = object$.ref; - final _$$ref$1 = sortDescriptors.ref; - objc.checkOsVersionInternal( - 'NSSet.sortedArrayUsingDescriptors:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_sortedArrayUsingDescriptors_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSSortDescriptorSorting -extension NSSortDescriptorSorting$2 on objc.NSMutableArray { - /// sortUsingDescriptors: - void sortUsingDescriptors(objc.NSArray sortDescriptors) { - final _$$ref = object$.ref; - final _$$ref$1 = sortDescriptors.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_sortUsingDescriptors_, - _$$ref$1.pointer, - ); - } -} - -/// WARNING: NSSpellServer is a stub. To generate bindings for this class, include -/// NSSpellServer in your config's objc-interfaces list. -/// -/// NSSpellServer -extension type NSSpellServer._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSSpellServer] that points to the same underlying object as [other]. - NSSpellServer.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSSpellServer] that wraps the given raw object pointer. - NSSpellServer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSSpellServerDelegate -extension type NSSpellServerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSSpellServerDelegate] that points to the same underlying object as [other]. - NSSpellServerDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSSpellServerDelegate] that wraps the given raw object pointer. - NSSpellServerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSSpellServerDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSSpellServerDelegate, - ); - } -} - -extension NSSpellServerDelegate$Methods on NSSpellServerDelegate { - /// spellServer:checkGrammarInString:language:details: - NSRange spellServer( - NSSpellServer sender, { - required objc.NSString checkGrammarInString, - objc.NSString? language, - required ffi.Pointer> details, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = checkGrammarInString.ref; - final _$$ref$3 = language?.ref; - objc.checkOsVersionInternal( - 'NSSpellServerDelegate.spellServer:checkGrammarInString:language:details:', - iOS: (true, null), - macOS: (false, (10, 5, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_checkGrammarInString_language_details_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:checkGrammarInString:language:details:', - ); - } - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1r9lliaStret( - $ptr, - _$$ref.pointer, - _sel_spellServer_checkGrammarInString_language_details_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - details, - ) - : $ptr.ref = _objc_msgSend_1r9llia( - _$$ref.pointer, - _sel_spellServer_checkGrammarInString_language_details_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - details, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// spellServer:checkString:offset:types:options:orthography:wordCount: - objc.NSArray? spellServer$1( - NSSpellServer sender, { - required objc.NSString checkString, - required DartNSUInteger offset, - required DartNSTextCheckingTypes types, - objc.NSDictionary? options, - NSOrthography? orthography, - required ffi.Pointer wordCount, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = checkString.ref; - final _$$ref$3 = options?.ref; - final _$$ref$4 = orthography?.ref; - objc.checkOsVersionInternal( - 'NSSpellServerDelegate.spellServer:checkString:offset:types:options:orthography:wordCount:', - iOS: (true, null), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:checkString:offset:types:options:orthography:wordCount:', - ); - } - final $ret = _objc_msgSend_z7lrh9( - _$$ref.pointer, - _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, - _$$ref$1.pointer, - _$$ref$2.pointer, - offset, - types, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - wordCount, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// spellServer:didForgetWord:inLanguage: - void spellServer$2( - NSSpellServer sender, { - required objc.NSString didForgetWord, - required objc.NSString inLanguage, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didForgetWord.ref; - final _$$ref$3 = inLanguage.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_didForgetWord_inLanguage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:didForgetWord:inLanguage:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_spellServer_didForgetWord_inLanguage_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// spellServer:didLearnWord:inLanguage: - void spellServer$3( - NSSpellServer sender, { - required objc.NSString didLearnWord, - required objc.NSString inLanguage, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = didLearnWord.ref; - final _$$ref$3 = inLanguage.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_didLearnWord_inLanguage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:didLearnWord:inLanguage:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_spellServer_didLearnWord_inLanguage_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// spellServer:findMisspelledWordInString:language:wordCount:countOnly: - NSRange spellServer$4( - NSSpellServer sender, { - required objc.NSString findMisspelledWordInString, - required objc.NSString language, - required ffi.Pointer wordCount, - required bool countOnly, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = findMisspelledWordInString.ref; - final _$$ref$3 = language.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:findMisspelledWordInString:language:wordCount:countOnly:', - ); - } - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1orxdfjStret( - $ptr, - _$$ref.pointer, - _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - wordCount, - countOnly, - ) - : $ptr.ref = _objc_msgSend_1orxdfj( - _$$ref.pointer, - _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - wordCount, - countOnly, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// spellServer:recordResponse:toCorrection:forWord:language: - void spellServer$5( - NSSpellServer sender, { - required DartNSUInteger recordResponse, - required objc.NSString toCorrection, - required objc.NSString forWord, - required objc.NSString language, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = toCorrection.ref; - final _$$ref$3 = forWord.ref; - final _$$ref$4 = language.ref; - objc.checkOsVersionInternal( - 'NSSpellServerDelegate.spellServer:recordResponse:toCorrection:forWord:language:', - iOS: (true, null), - macOS: (false, (10, 7, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_recordResponse_toCorrection_forWord_language_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:recordResponse:toCorrection:forWord:language:', - ); - } - _objc_msgSend_y1woti( - _$$ref.pointer, - _sel_spellServer_recordResponse_toCorrection_forWord_language_, - _$$ref$1.pointer, - recordResponse, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// spellServer:suggestCompletionsForPartialWordRange:inString:language: - objc.NSArray? spellServer$6( - NSSpellServer sender, { - required NSRange suggestCompletionsForPartialWordRange, - required objc.NSString inString, - required objc.NSString language, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = inString.ref; - final _$$ref$3 = language.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:suggestCompletionsForPartialWordRange:inString:language:', - ); - } - final $ret = _objc_msgSend_13fklwp( - _$$ref.pointer, - _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, - _$$ref$1.pointer, - suggestCompletionsForPartialWordRange, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// spellServer:suggestGuessesForWord:inLanguage: - objc.NSArray? spellServer$7( - NSSpellServer sender, { - required objc.NSString suggestGuessesForWord, - required objc.NSString inLanguage, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = suggestGuessesForWord.ref; - final _$$ref$3 = inLanguage.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_spellServer_suggestGuessesForWord_inLanguage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSSpellServerDelegate', - 'spellServer:suggestGuessesForWord:inLanguage:', - ); - } - final $ret = _objc_msgSend_11spmsz( - _$$ref.pointer, - _sel_spellServer_suggestGuessesForWord_inLanguage_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -interface class NSSpellServerDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSSpellServerDelegate.cast()); - - /// Builds an object that implements the NSSpellServerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSpellServerDelegate implement({ - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSSpellServerDelegate', - ); - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implement(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implement(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implement( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - return NSSpellServerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSpellServerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implement(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implement(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implement( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSSpellServerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSpellServerDelegate implementAsListener({ - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSSpellServerDelegate', - ); - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implementAsListener(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implementAsListener(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implementAsListener( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - return NSSpellServerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSpellServerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implementAsListener(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implementAsListener(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implementAsListener( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSSpellServerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSpellServerDelegate implementAsBlocking({ - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSSpellServerDelegate', - ); - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implementAsBlocking(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implementAsBlocking(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implementAsBlocking( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - return NSSpellServerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSpellServerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - )? - spellServer_checkGrammarInString_language_details_, - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - )? - spellServer_checkString_offset_types_options_orthography_wordCount_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didForgetWord_inLanguage_, - void Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_didLearnWord_inLanguage_, - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - )? - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - )? - spellServer_recordResponse_toCorrection_forWord_language_, - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - )? - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString)? - spellServer_suggestGuessesForWord_inLanguage_, - bool $keepIsolateAlive = true, - }) { - NSSpellServerDelegate$Builder - .spellServer_checkGrammarInString_language_details_ - .implement(builder, spellServer_checkGrammarInString_language_details_); - NSSpellServerDelegate$Builder - .spellServer_checkString_offset_types_options_orthography_wordCount_ - .implement( - builder, - spellServer_checkString_offset_types_options_orthography_wordCount_, - ); - NSSpellServerDelegate$Builder.spellServer_didForgetWord_inLanguage_ - .implementAsBlocking(builder, spellServer_didForgetWord_inLanguage_); - NSSpellServerDelegate$Builder.spellServer_didLearnWord_inLanguage_ - .implementAsBlocking(builder, spellServer_didLearnWord_inLanguage_); - NSSpellServerDelegate$Builder - .spellServer_findMisspelledWordInString_language_wordCount_countOnly_ - .implement( - builder, - spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ); - NSSpellServerDelegate$Builder - .spellServer_recordResponse_toCorrection_forWord_language_ - .implementAsBlocking( - builder, - spellServer_recordResponse_toCorrection_forWord_language_, - ); - NSSpellServerDelegate$Builder - .spellServer_suggestCompletionsForPartialWordRange_inString_language_ - .implement( - builder, - spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ); - NSSpellServerDelegate$Builder.spellServer_suggestGuessesForWord_inLanguage_ - .implement(builder, spellServer_suggestGuessesForWord_inLanguage_); - builder.addProtocol($protocol); - } - - /// spellServer:checkGrammarInString:language:details: - static final spellServer_checkGrammarInString_language_details_ = - objc.ObjCProtocolMethod< - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_checkGrammarInString_language_details_, - ffi.Native.addressOf< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >(_1uu024u_protocolTrampoline_xsqx6i) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_checkGrammarInString_language_details_, - isRequired: false, - isInstanceMethod: true, - ), - ( - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - func, - ) => - ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString? arg3, - ffi.Pointer> arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// spellServer:checkString:offset:types:options:orthography:wordCount: - static final spellServer_checkString_offset_types_options_orthography_wordCount_ = - objc.ObjCProtocolMethod< - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSTextCheckingTypes, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1chy5b9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_checkString_offset_types_options_orthography_wordCount_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.NSArray? Function( - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - func, - ) => - ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - DartNSUInteger arg3, - DartNSTextCheckingTypes arg4, - objc.NSDictionary? arg5, - NSOrthography? arg6, - ffi.Pointer arg7, - ) => func(arg1, arg2, arg3, arg4, arg5, arg6, arg7), - ), - ); - - /// spellServer:didForgetWord:inLanguage: - static final spellServer_didForgetWord_inLanguage_ = - objc.ObjCProtocolListenableMethod< - void Function(NSSpellServer, objc.NSString, objc.NSString) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_didForgetWord_inLanguage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_didForgetWord_inLanguage_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.listener( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// spellServer:didLearnWord:inLanguage: - static final spellServer_didLearnWord_inLanguage_ = - objc.ObjCProtocolListenableMethod< - void Function(NSSpellServer, objc.NSString, objc.NSString) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_didLearnWord_inLanguage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_didLearnWord_inLanguage_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.listener( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSSpellServer, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// spellServer:findMisspelledWordInString:language:wordCount:countOnly: - static final spellServer_findMisspelledWordInString_language_wordCount_countOnly_ = - objc.ObjCProtocolMethod< - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - ) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - ffi.Native.addressOf< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_1j6oadz) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_, - isRequired: false, - isInstanceMethod: true, - ), - ( - NSRange Function( - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - ) - func, - ) => - ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ffi.Pointer arg4, - bool arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// spellServer:recordResponse:toCorrection:forWord:language: - static final spellServer_recordResponse_toCorrection_forWord_language_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_recordResponse_toCorrection_forWord_language_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1cn988u) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_recordResponse_toCorrection_forWord_language_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - DartNSUInteger arg2, - objc.NSString arg3, - objc.NSString arg4, - objc.NSString arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.listener( - ( - ffi.Pointer _, - NSSpellServer arg1, - DartNSUInteger arg2, - objc.NSString arg3, - objc.NSString arg4, - objc.NSString arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSSpellServer arg1, - DartNSUInteger arg2, - objc.NSString arg3, - objc.NSString arg4, - objc.NSString arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// spellServer:suggestCompletionsForPartialWordRange:inString:language: - static final spellServer_suggestCompletionsForPartialWordRange_inString_language_ = - objc.ObjCProtocolMethod< - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - ) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_19u921t) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.NSArray? Function( - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - ) - func, - ) => - ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - NSRange arg2, - objc.NSString arg3, - objc.NSString arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// spellServer:suggestGuessesForWord:inLanguage: - static final spellServer_suggestGuessesForWord_inLanguage_ = - objc.ObjCProtocolMethod< - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString) - >( - _protocol_NSSpellServerDelegate, - _sel_spellServer_suggestGuessesForWord_inLanguage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1yw2rcr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSpellServerDelegate, - _sel_spellServer_suggestGuessesForWord_inLanguage_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.NSArray? Function(NSSpellServer, objc.NSString, objc.NSString) - func, - ) => - ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); -} - -/// NSStreamBoundPairCreationExtensions -extension NSStreamBoundPairCreationExtensions on objc.NSStream { - /// getBoundStreamsWithBufferSize:inputStream:outputStream: - static void getBoundStreamsWithBufferSize( - DartNSUInteger bufferSize, { - required ffi.Pointer> inputStream, - required ffi.Pointer> outputStream, - }) { - objc.checkOsVersionInternal( - 'NSStream.getBoundStreamsWithBufferSize:inputStream:outputStream:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_1i17va2( - _class_NSStream, - _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_, - bufferSize, - inputStream, - outputStream, - ); - } -} - -typedef NSStreamNetworkServiceTypeValue = ffi.Pointer; -typedef DartNSStreamNetworkServiceTypeValue = objc.NSString; -typedef NSStreamPropertyKey = ffi.Pointer; -typedef DartNSStreamPropertyKey = objc.NSString; -typedef NSStreamSOCKSProxyConfiguration = ffi.Pointer; -typedef DartNSStreamSOCKSProxyConfiguration = objc.NSString; -typedef NSStreamSOCKSProxyVersion = ffi.Pointer; -typedef DartNSStreamSOCKSProxyVersion = objc.NSString; -typedef NSStreamSocketSecurityLevel = ffi.Pointer; -typedef DartNSStreamSocketSecurityLevel = objc.NSString; - -/// NSStringDeprecated -extension NSStringDeprecated on objc.NSString { - /// cString - @Deprecated('Use -cStringUsingEncoding: instead') - ffi.Pointer cString() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.cString', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_cString); - } - - /// cStringLength - @Deprecated('Use -lengthOfBytesUsingEncoding: instead') - DartNSUInteger cStringLength() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.cStringLength', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_cStringLength); - } - - /// getCString: - @Deprecated('Use -getCString:maxLength:encoding: instead') - void getCString(ffi.Pointer bytes) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.getCString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1r7ue5f(_$$ref.pointer, _sel_getCString_, bytes); - } - - /// getCString:maxLength: - @Deprecated('Use -getCString:maxLength:encoding: instead') - void getCString$1( - ffi.Pointer bytes, { - required DartNSUInteger maxLength, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.getCString:maxLength:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1h3mito( - _$$ref.pointer, - _sel_getCString_maxLength_, - bytes, - maxLength, - ); - } - - /// getCString:maxLength:range:remainingRange: - @Deprecated('Use -getCString:maxLength:encoding: instead') - void getCString$2( - ffi.Pointer bytes, { - required DartNSUInteger maxLength, - required NSRange range, - required NSRangePointer remainingRange, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.getCString:maxLength:range:remainingRange:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_3gpdva( - _$$ref.pointer, - _sel_getCString_maxLength_range_remainingRange_, - bytes, - maxLength, - range, - remainingRange, - ); - } - - /// getCharacters: - void getCharacters(ffi.Pointer buffer) { - final _$$ref = object$.ref; - _objc_msgSend_g3kdhc(_$$ref.pointer, _sel_getCharacters_, buffer); - } - - /// initWithCString: - @Deprecated('Use -initWithCString:encoding: instead') - objc.ObjCObject? initWithCString(ffi.Pointer bytes) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.initWithCString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_56zxyn( - _$$ref.retainAndReturnPointer(), - _sel_initWithCString_, - bytes, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithCString:length: - @Deprecated('Use -initWithCString:encoding: instead') - objc.ObjCObject? initWithCString$1( - ffi.Pointer bytes, { - required DartNSUInteger length, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.initWithCString:length:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_erqryg( - _$$ref.retainAndReturnPointer(), - _sel_initWithCString_length_, - bytes, - length, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithCStringNoCopy:length:freeWhenDone: - @Deprecated('Use -initWithCString:encoding: instead') - objc.ObjCObject? initWithCStringNoCopy( - ffi.Pointer bytes, { - required DartNSUInteger length, - required bool freeWhenDone, - }) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.initWithCStringNoCopy:length:freeWhenDone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1ojrli4( - _$$ref.retainAndReturnPointer(), - _sel_initWithCStringNoCopy_length_freeWhenDone_, - bytes, - length, - freeWhenDone, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithContentsOfFile: - @Deprecated('Use -initWithContentsOfFile:encoding:error: instead') - objc.ObjCObject? initWithContentsOfFile(objc.NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSString.initWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - @Deprecated('Use -initWithContentsOfURL:encoding:error: instead') - objc.ObjCObject? initWithContentsOfURL(objc.NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSString.initWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: false, release: true); - } - - /// lossyCString - @Deprecated('Use -cStringUsingEncoding: instead') - ffi.Pointer lossyCString() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.lossyCString', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_lossyCString); - } - - /// writeToFile:atomically: - @Deprecated('Use -writeToFile:atomically:encoding:error: instead') - bool writeToFile(objc.NSString path, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - objc.checkOsVersionInternal( - 'NSString.writeToFile:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1iyq28l( - _$$ref.pointer, - _sel_writeToFile_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// writeToURL:atomically: - @Deprecated('Use -writeToURL:atomically:encoding:error: instead') - bool writeToURL(objc.NSURL url, {required bool atomically}) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSString.writeToURL:atomically:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1iyq28l( - _$$ref.pointer, - _sel_writeToURL_atomically_, - _$$ref$1.pointer, - atomically, - ); - } - - /// stringWithCString: - @Deprecated('Use +stringWithCString:encoding: instead') - static objc.ObjCObject? stringWithCString(ffi.Pointer bytes) { - objc.checkOsVersionInternal( - 'NSString.stringWithCString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_56zxyn( - _class_NSString, - _sel_stringWithCString_, - bytes, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// stringWithCString:length: - @Deprecated('Use +stringWithCString:encoding:') - static objc.ObjCObject? stringWithCString$1( - ffi.Pointer bytes, { - required DartNSUInteger length, - }) { - objc.checkOsVersionInternal( - 'NSString.stringWithCString:length:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_erqryg( - _class_NSString, - _sel_stringWithCString_length_, - bytes, - length, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// stringWithContentsOfFile: - @Deprecated('Use +stringWithContentsOfFile:encoding:error: instead') - static objc.ObjCObject? stringWithContentsOfFile(objc.NSString path) { - final _$$ref = path.ref; - objc.checkOsVersionInternal( - 'NSString.stringWithContentsOfFile:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSString, - _sel_stringWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// stringWithContentsOfURL: - @Deprecated('Use +stringWithContentsOfURL:encoding:error: instead') - static objc.ObjCObject? stringWithContentsOfURL(objc.NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSString.stringWithContentsOfURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSString, - _sel_stringWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -typedef NSStringEncoding = NSUInteger; - -/// NSStringEncodingDetection -extension NSStringEncodingDetection on objc.NSString { - /// stringEncodingForData:encodingOptions:convertedString:usedLossyConversion: - static DartNSUInteger stringEncodingForData( - objc.NSData data, { - objc.NSDictionary? encodingOptions, - required ffi.Pointer> convertedString, - required ffi.Pointer usedLossyConversion, - }) { - final _$$ref = data.ref; - final _$$ref$1 = encodingOptions?.ref; - objc.checkOsVersionInternal( - 'NSString.stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - return _objc_msgSend_1q2ox4r( - _class_NSString, - _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - convertedString, - usedLossyConversion, - ); - } -} - -typedef NSStringEncodingDetectionOptionsKey = ffi.Pointer; -typedef DartNSStringEncodingDetectionOptionsKey = objc.NSString; - -/// NSStringPathExtensions -extension NSStringPathExtensions on objc.NSString { - /// completePathIntoString:caseSensitive:matchesIntoArray:filterTypes: - DartNSUInteger completePathIntoString( - ffi.Pointer> outputName, { - required bool caseSensitive, - required ffi.Pointer> matchesIntoArray, - objc.NSArray? filterTypes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = filterTypes?.ref; - return _objc_msgSend_8mvqcu( - _$$ref.pointer, - _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_, - outputName, - caseSensitive, - matchesIntoArray, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// fileSystemRepresentation - ffi.Pointer get fileSystemRepresentation { - final _$$ref = object$.ref; - return _objc_msgSend_1fuqfwb(_$$ref.pointer, _sel_fileSystemRepresentation); - } - - /// getFileSystemRepresentation:maxLength: - bool getFileSystemRepresentation( - ffi.Pointer cname, { - required DartNSUInteger maxLength, - }) { - final _$$ref = object$.ref; - return _objc_msgSend_8cymbm( - _$$ref.pointer, - _sel_getFileSystemRepresentation_maxLength_, - cname, - maxLength, - ); - } - - /// isAbsolutePath - bool get isAbsolutePath { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isAbsolutePath); - } - - /// lastPathComponent - objc.NSString get lastPathComponent { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// pathComponents - objc.NSArray get pathComponents { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// pathExtension - objc.NSString get pathExtension { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByAbbreviatingWithTildeInPath - objc.NSString get stringByAbbreviatingWithTildeInPath { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_stringByAbbreviatingWithTildeInPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByAppendingPathComponent: - objc.NSString stringByAppendingPathComponent(objc.NSString str) { - final _$$ref = object$.ref; - final _$$ref$1 = str.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_stringByAppendingPathComponent_, - _$$ref$1.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByAppendingPathExtension: - objc.NSString? stringByAppendingPathExtension(objc.NSString str) { - final _$$ref = object$.ref; - final _$$ref$1 = str.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_stringByAppendingPathExtension_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByDeletingLastPathComponent - objc.NSString get stringByDeletingLastPathComponent { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_stringByDeletingLastPathComponent, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByDeletingPathExtension - objc.NSString get stringByDeletingPathExtension { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_stringByDeletingPathExtension, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByExpandingTildeInPath - objc.NSString get stringByExpandingTildeInPath { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_stringByExpandingTildeInPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByResolvingSymlinksInPath - objc.NSString get stringByResolvingSymlinksInPath { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_stringByResolvingSymlinksInPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByStandardizingPath - objc.NSString get stringByStandardizingPath { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_stringByStandardizingPath, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringsByAppendingPaths: - objc.NSArray stringsByAppendingPaths(objc.NSArray paths) { - final _$$ref = object$.ref; - final _$$ref$1 = paths.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_stringsByAppendingPaths_, - _$$ref$1.pointer, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// pathWithComponents: - static objc.NSString pathWithComponents(objc.NSArray components) { - final _$$ref = components.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSString, - _sel_pathWithComponents_, - _$$ref.pointer, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -typedef NSStringTransform = ffi.Pointer; -typedef DartNSStringTransform = objc.NSString; -@Deprecated('Not supported') -const int NSSunOSOperatingSystem = 6; - -final class NSSwappedDouble extends ffi.Struct { - @ffi.UnsignedLongLong() - external int v; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - }) => $allocator()..ref.v = v; -} - -final class NSSwappedFloat extends ffi.Struct { - @ffi.UnsignedInt() - external int v; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - }) => $allocator()..ref.v = v; -} - -const int NSSymbolStringEncoding = 6; - -/// WARNING: NSTask is a stub. To generate bindings for this class, include -/// NSTask in your config's objc-interfaces list. -/// -/// NSTask -extension type NSTask._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSTask] that points to the same underlying object as [other]. - NSTask.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSTask] that wraps the given raw object pointer. - NSTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSTaskConveniences -extension NSTaskConveniences on NSTask { - /// waitUntilExit - void waitUntilExit() { - final _$$ref = object$.ref; - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_waitUntilExit); - } - - /// launchedTaskWithExecutableURL:arguments:error:terminationHandler: - static NSTask? launchedTaskWithExecutableURL( - objc.NSURL url, { - required objc.NSArray arguments, - required ffi.Pointer> error, - objc.ObjCBlock? terminationHandler, - }) { - final _$$ref = url.ref; - final _$$ref$1 = arguments.ref; - final _$$ref$2 = terminationHandler?.ref; - objc.checkOsVersionInternal( - 'NSTask.launchedTaskWithExecutableURL:arguments:error:terminationHandler:', - iOS: (true, null), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_1f2nccz( - _class_NSTask, - _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_, - _$$ref.pointer, - _$$ref$1.pointer, - error, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : NSTask.fromPointer($ret, retain: true, release: true); - } -} - -enum NSTaskTerminationReason { - NSTaskTerminationReasonExit(1), - NSTaskTerminationReasonUncaughtSignal(2); - - final int value; - const NSTaskTerminationReason(this.value); - - static NSTaskTerminationReason fromValue(int value) => switch (value) { - 1 => NSTaskTerminationReasonExit, - 2 => NSTaskTerminationReasonUncaughtSignal, - _ => throw ArgumentError( - 'Unknown value for NSTaskTerminationReason: $value', - ), - }; -} - -enum NSTestComparisonOperation { - NSEqualToComparison(0), - NSLessThanOrEqualToComparison(1), - NSLessThanComparison(2), - NSGreaterThanOrEqualToComparison(3), - NSGreaterThanComparison(4), - NSBeginsWithComparison(5), - NSEndsWithComparison(6), - NSContainsComparison(7); - - final int value; - const NSTestComparisonOperation(this.value); - - static NSTestComparisonOperation fromValue(int value) => switch (value) { - 0 => NSEqualToComparison, - 1 => NSLessThanOrEqualToComparison, - 2 => NSLessThanComparison, - 3 => NSGreaterThanOrEqualToComparison, - 4 => NSGreaterThanComparison, - 5 => NSBeginsWithComparison, - 6 => NSEndsWithComparison, - 7 => NSContainsComparison, - _ => throw ArgumentError( - 'Unknown value for NSTestComparisonOperation: $value', - ), - }; -} - -const int NSTextCheckingAllCustomTypes = -4294967296; - -const int NSTextCheckingAllSystemTypes = 4294967295; - -const int NSTextCheckingAllTypes = -1; - -typedef NSTextCheckingKey = ffi.Pointer; -typedef DartNSTextCheckingKey = objc.NSString; - -/// WARNING: NSTextCheckingResult is a stub. To generate bindings for this class, include -/// NSTextCheckingResult in your config's objc-interfaces list. -/// -/// NSTextCheckingResult -extension type NSTextCheckingResult._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSTextCheckingResult] that points to the same underlying object as [other]. - NSTextCheckingResult.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSTextCheckingResult', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } - - /// Constructs a [NSTextCheckingResult] that wraps the given raw object pointer. - NSTextCheckingResult.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSTextCheckingResult', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - } -} - -/// NSTextCheckingResultCreation -extension NSTextCheckingResultCreation on NSTextCheckingResult { - /// addressCheckingResultWithRange:components: - static NSTextCheckingResult addressCheckingResultWithRange( - NSRange range, { - required objc.NSDictionary components, - }) { - final _$$ref = components.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.addressCheckingResultWithRange:components:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_addressCheckingResultWithRange_components_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// correctionCheckingResultWithRange:replacementString: - static NSTextCheckingResult correctionCheckingResultWithRange( - NSRange range, { - required objc.NSString replacementString, - }) { - final _$$ref = replacementString.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.correctionCheckingResultWithRange:replacementString:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_correctionCheckingResultWithRange_replacementString_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// correctionCheckingResultWithRange:replacementString:alternativeStrings: - static NSTextCheckingResult correctionCheckingResultWithRange$1( - NSRange range, { - required objc.NSString replacementString, - required objc.NSArray alternativeStrings, - }) { - final _$$ref = replacementString.ref; - final _$$ref$1 = alternativeStrings.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.correctionCheckingResultWithRange:replacementString:alternativeStrings:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_1llrn9f( - _class_NSTextCheckingResult, - _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_, - range, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// dashCheckingResultWithRange:replacementString: - static NSTextCheckingResult dashCheckingResultWithRange( - NSRange range, { - required objc.NSString replacementString, - }) { - final _$$ref = replacementString.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.dashCheckingResultWithRange:replacementString:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_dashCheckingResultWithRange_replacementString_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// dateCheckingResultWithRange:date: - static NSTextCheckingResult dateCheckingResultWithRange( - NSRange range, { - required objc.NSDate date, - }) { - final _$$ref = date.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.dateCheckingResultWithRange:date:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_dateCheckingResultWithRange_date_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// dateCheckingResultWithRange:date:timeZone:duration: - static NSTextCheckingResult dateCheckingResultWithRange$1( - NSRange range, { - required objc.NSDate date, - required NSTimeZone timeZone, - required DartNSTimeInterval duration, - }) { - final _$$ref = date.ref; - final _$$ref$1 = timeZone.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.dateCheckingResultWithRange:date:timeZone:duration:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_u8u7og( - _class_NSTextCheckingResult, - _sel_dateCheckingResultWithRange_date_timeZone_duration_, - range, - _$$ref.pointer, - _$$ref$1.pointer, - duration, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// grammarCheckingResultWithRange:details: - static NSTextCheckingResult grammarCheckingResultWithRange( - NSRange range, { - required objc.NSArray details, - }) { - final _$$ref = details.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.grammarCheckingResultWithRange:details:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_grammarCheckingResultWithRange_details_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// linkCheckingResultWithRange:URL: - static NSTextCheckingResult linkCheckingResultWithRange( - NSRange range, { - required objc.NSURL URL, - }) { - final _$$ref = URL.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.linkCheckingResultWithRange:URL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_linkCheckingResultWithRange_URL_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// orthographyCheckingResultWithRange:orthography: - static NSTextCheckingResult orthographyCheckingResultWithRange( - NSRange range, { - required NSOrthography orthography, - }) { - final _$$ref = orthography.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.orthographyCheckingResultWithRange:orthography:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_orthographyCheckingResultWithRange_orthography_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// phoneNumberCheckingResultWithRange:phoneNumber: - static NSTextCheckingResult phoneNumberCheckingResultWithRange( - NSRange range, { - required objc.NSString phoneNumber, - }) { - final _$$ref = phoneNumber.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.phoneNumberCheckingResultWithRange:phoneNumber:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_phoneNumberCheckingResultWithRange_phoneNumber_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// quoteCheckingResultWithRange:replacementString: - static NSTextCheckingResult quoteCheckingResultWithRange( - NSRange range, { - required objc.NSString replacementString, - }) { - final _$$ref = replacementString.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.quoteCheckingResultWithRange:replacementString:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_quoteCheckingResultWithRange_replacementString_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// regularExpressionCheckingResultWithRanges:count:regularExpression: - static NSTextCheckingResult regularExpressionCheckingResultWithRanges( - NSRangePointer ranges, { - required DartNSUInteger count, - required NSRegularExpression regularExpression, - }) { - final _$$ref = regularExpression.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.regularExpressionCheckingResultWithRanges:count:regularExpression:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1fs7dv0( - _class_NSTextCheckingResult, - _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_, - ranges, - count, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// replacementCheckingResultWithRange:replacementString: - static NSTextCheckingResult replacementCheckingResultWithRange( - NSRange range, { - required objc.NSString replacementString, - }) { - final _$$ref = replacementString.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.replacementCheckingResultWithRange:replacementString:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_replacementCheckingResultWithRange_replacementString_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// spellCheckingResultWithRange: - static NSTextCheckingResult spellCheckingResultWithRange(NSRange range) { - objc.checkOsVersionInternal( - 'NSTextCheckingResult.spellCheckingResultWithRange:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1k1o1s7( - _class_NSTextCheckingResult, - _sel_spellCheckingResultWithRange_, - range, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// transitInformationCheckingResultWithRange:components: - static NSTextCheckingResult transitInformationCheckingResultWithRange( - NSRange range, { - required objc.NSDictionary components, - }) { - final _$$ref = components.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.transitInformationCheckingResultWithRange:components:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_bstjp9( - _class_NSTextCheckingResult, - _sel_transitInformationCheckingResultWithRange_components_, - range, - _$$ref.pointer, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } -} - -/// NSTextCheckingResultOptional -extension NSTextCheckingResultOptional on NSTextCheckingResult { - /// URL - objc.NSURL? get URL { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.URL', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_URL); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// addressComponents - objc.NSDictionary? get addressComponents { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.addressComponents', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_addressComponents); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// alternativeStrings - objc.NSArray? get alternativeStrings { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.alternativeStrings', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_alternativeStrings); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// components - objc.NSDictionary? get components { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.components', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_components); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// date - objc.NSDate? get date { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.date', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_date); - return $ret.address == 0 - ? null - : objc.NSDate.fromPointer($ret, retain: true, release: true); - } - - /// duration - DartNSTimeInterval get duration { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.duration', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); - } - - /// grammarDetails - objc.NSArray? get grammarDetails { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.grammarDetails', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_grammarDetails); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// numberOfRanges - DartNSUInteger get numberOfRanges { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.numberOfRanges', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_numberOfRanges); - } - - /// orthography - NSOrthography? get orthography { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.orthography', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_orthography); - return $ret.address == 0 - ? null - : NSOrthography.fromPointer($ret, retain: true, release: true); - } - - /// phoneNumber - objc.NSString? get phoneNumber { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.phoneNumber', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_phoneNumber); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// rangeAtIndex: - NSRange rangeAtIndex(DartNSUInteger idx) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.rangeAtIndex:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_d3i1uyStret( - $ptr, - _$$ref.pointer, - _sel_rangeAtIndex_, - idx, - ) - : $ptr.ref = _objc_msgSend_d3i1uy( - _$$ref.pointer, - _sel_rangeAtIndex_, - idx, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// rangeWithName: - NSRange rangeWithName(objc.NSString name) { - final _$$ref = object$.ref; - final _$$ref$1 = name.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.rangeWithName:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret( - $ptr, - _$$ref.pointer, - _sel_rangeWithName_, - _$$ref$1.pointer, - ) - : $ptr.ref = _objc_msgSend_182fzon( - _$$ref.pointer, - _sel_rangeWithName_, - _$$ref$1.pointer, - ); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// regularExpression - NSRegularExpression? get regularExpression { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.regularExpression', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_regularExpression); - return $ret.address == 0 - ? null - : NSRegularExpression.fromPointer($ret, retain: true, release: true); - } - - /// replacementString - objc.NSString? get replacementString { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.replacementString', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_replacementString); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// resultByAdjustingRangesWithOffset: - NSTextCheckingResult resultByAdjustingRangesWithOffset(DartNSInteger offset) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.resultByAdjustingRangesWithOffset:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_qugqlf( - _$$ref.pointer, - _sel_resultByAdjustingRangesWithOffset_, - offset, - ); - return NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - /// timeZone - NSTimeZone? get timeZone { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextCheckingResult.timeZone', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_timeZone); - return $ret.address == 0 - ? null - : NSTimeZone.fromPointer($ret, retain: true, release: true); - } -} - -sealed class NSTextCheckingType { - static const NSTextCheckingTypeOrthography = 1; - static const NSTextCheckingTypeSpelling = 2; - static const NSTextCheckingTypeGrammar = 4; - static const NSTextCheckingTypeDate = 8; - static const NSTextCheckingTypeAddress = 16; - static const NSTextCheckingTypeLink = 32; - static const NSTextCheckingTypeQuote = 64; - static const NSTextCheckingTypeDash = 128; - static const NSTextCheckingTypeReplacement = 256; - static const NSTextCheckingTypeCorrection = 512; - static const NSTextCheckingTypeRegularExpression = 1024; - static const NSTextCheckingTypePhoneNumber = 2048; - static const NSTextCheckingTypeTransitInformation = 4096; -} - -typedef NSTextCheckingTypes = ffi.Uint64; -typedef DartNSTextCheckingTypes = int; - -/// WARNING: NSThread is a stub. To generate bindings for this class, include -/// NSThread in your config's objc-interfaces list. -/// -/// NSThread -extension type NSThread._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSThread] that points to the same underlying object as [other]. - NSThread.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSThread] that wraps the given raw object pointer. - NSThread.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSThreadPerformAdditions -extension NSThreadPerformAdditions on objc.NSObject { - /// performSelector:onThread:withObject:waitUntilDone: - void performSelector$3( - ffi.Pointer aSelector, { - required NSThread onThread, - objc.ObjCObject? withObject, - required bool waitUntilDone, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = onThread.ref; - final _$$ref$2 = withObject?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelector:onThread:withObject:waitUntilDone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_1whyima( - _$$ref.pointer, - _sel_performSelector_onThread_withObject_waitUntilDone_, - aSelector, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - waitUntilDone, - ); - } - - /// performSelector:onThread:withObject:waitUntilDone:modes: - void performSelector$4( - ffi.Pointer aSelector, { - required NSThread onThread, - objc.ObjCObject? withObject, - required bool waitUntilDone, - objc.NSArray? modes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = onThread.ref; - final _$$ref$2 = withObject?.ref; - final _$$ref$3 = modes?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelector:onThread:withObject:waitUntilDone:modes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_1cc1buo( - _$$ref.pointer, - _sel_performSelector_onThread_withObject_waitUntilDone_modes_, - aSelector, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - waitUntilDone, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// performSelectorInBackground:withObject: - void performSelectorInBackground( - ffi.Pointer aSelector, { - objc.ObjCObject? withObject, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withObject?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelectorInBackground:withObject:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - _objc_msgSend_1qv0eq4( - _$$ref.pointer, - _sel_performSelectorInBackground_withObject_, - aSelector, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// performSelectorOnMainThread:withObject:waitUntilDone: - void performSelectorOnMainThread( - ffi.Pointer aSelector, { - objc.ObjCObject? withObject, - required bool waitUntilDone, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withObject?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelectorOnMainThread:withObject:waitUntilDone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_tsocn4( - _$$ref.pointer, - _sel_performSelectorOnMainThread_withObject_waitUntilDone_, - aSelector, - _$$ref$1?.pointer ?? ffi.nullptr, - waitUntilDone, - ); - } - - /// performSelectorOnMainThread:withObject:waitUntilDone:modes: - void performSelectorOnMainThread$1( - ffi.Pointer aSelector, { - objc.ObjCObject? withObject, - required bool waitUntilDone, - objc.NSArray? modes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = withObject?.ref; - final _$$ref$2 = modes?.ref; - objc.checkOsVersionInternal( - 'NSObject.performSelectorOnMainThread:withObject:waitUntilDone:modes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1fdou4m( - _$$ref.pointer, - _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_, - aSelector, - _$$ref$1?.pointer ?? ffi.nullptr, - waitUntilDone, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -typedef NSTimeInterval = ffi.Double; -typedef DartNSTimeInterval = double; - -/// WARNING: NSTimeZone is a stub. To generate bindings for this class, include -/// NSTimeZone in your config's objc-interfaces list. -/// -/// NSTimeZone -extension type NSTimeZone._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - objc.NSSecureCoding { - /// Constructs a [NSTimeZone] that points to the same underlying object as [other]. - NSTimeZone.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSTimeZone] that wraps the given raw object pointer. - NSTimeZone.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSTimeZoneCreation -extension NSTimeZoneCreation on NSTimeZone {} - -enum NSTimeZoneNameStyle { - NSTimeZoneNameStyleStandard(0), - NSTimeZoneNameStyleShortStandard(1), - NSTimeZoneNameStyleDaylightSaving(2), - NSTimeZoneNameStyleShortDaylightSaving(3), - NSTimeZoneNameStyleGeneric(4), - NSTimeZoneNameStyleShortGeneric(5); - - final int value; - const NSTimeZoneNameStyle(this.value); - - static NSTimeZoneNameStyle fromValue(int value) => switch (value) { - 0 => NSTimeZoneNameStyleStandard, - 1 => NSTimeZoneNameStyleShortStandard, - 2 => NSTimeZoneNameStyleDaylightSaving, - 3 => NSTimeZoneNameStyleShortDaylightSaving, - 4 => NSTimeZoneNameStyleGeneric, - 5 => NSTimeZoneNameStyleShortGeneric, - _ => throw ArgumentError('Unknown value for NSTimeZoneNameStyle: $value'), - }; -} - -/// NSTypedstreamCompatibility -extension NSTypedstreamCompatibility on objc.NSCoder { - /// decodeNXObject - @Deprecated('Not supported') - objc.ObjCObject? decodeNXObject() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSCoder.decodeNXObject', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_decodeNXObject); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// encodeNXObject: - @Deprecated('Not supported') - void encodeNXObject(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSCoder.encodeNXObject:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_encodeNXObject_, - _$$ref$1.pointer, - ); - } -} - -typedef NSUInteger = ffi.UnsignedLong; -typedef DartNSUInteger = int; - -/// WARNING: NSURLAuthenticationChallenge is a stub. To generate bindings for this class, include -/// NSURLAuthenticationChallenge in your config's objc-interfaces list. -/// -/// NSURLAuthenticationChallenge -extension type NSURLAuthenticationChallenge._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSSecureCoding { - /// Constructs a [NSURLAuthenticationChallenge] that points to the same underlying object as [other]. - NSURLAuthenticationChallenge.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallenge', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLAuthenticationChallenge] that wraps the given raw object pointer. - NSURLAuthenticationChallenge.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallenge', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// NSURLAuthenticationChallengeSender -extension type NSURLAuthenticationChallengeSender._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSURLAuthenticationChallengeSender] that points to the same underlying object as [other]. - NSURLAuthenticationChallengeSender.as(objc.ObjCObject other) - : object$ = other; - - /// Constructs a [NSURLAuthenticationChallengeSender] that wraps the given raw object pointer. - NSURLAuthenticationChallengeSender.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLAuthenticationChallengeSender]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLAuthenticationChallengeSender, - ); - } -} - -extension NSURLAuthenticationChallengeSender$Methods - on NSURLAuthenticationChallengeSender { - /// cancelAuthenticationChallenge: - void cancelAuthenticationChallenge(NSURLAuthenticationChallenge challenge) { - final _$$ref = object$.ref; - final _$$ref$1 = challenge.ref; - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallengeSender.cancelAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_cancelAuthenticationChallenge_, - _$$ref$1.pointer, - ); - } - - /// continueWithoutCredentialForAuthenticationChallenge: - void continueWithoutCredentialForAuthenticationChallenge( - NSURLAuthenticationChallenge challenge, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = challenge.ref; - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallengeSender.continueWithoutCredentialForAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_continueWithoutCredentialForAuthenticationChallenge_, - _$$ref$1.pointer, - ); - } - - /// performDefaultHandlingForAuthenticationChallenge: - void performDefaultHandlingForAuthenticationChallenge( - NSURLAuthenticationChallenge challenge, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = challenge.ref; - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallengeSender.performDefaultHandlingForAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_performDefaultHandlingForAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLAuthenticationChallengeSender', - 'performDefaultHandlingForAuthenticationChallenge:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_performDefaultHandlingForAuthenticationChallenge_, - _$$ref$1.pointer, - ); - } - - /// rejectProtectionSpaceAndContinueWithChallenge: - void rejectProtectionSpaceAndContinueWithChallenge( - NSURLAuthenticationChallenge challenge, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = challenge.ref; - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallengeSender.rejectProtectionSpaceAndContinueWithChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_rejectProtectionSpaceAndContinueWithChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLAuthenticationChallengeSender', - 'rejectProtectionSpaceAndContinueWithChallenge:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_rejectProtectionSpaceAndContinueWithChallenge_, - _$$ref$1.pointer, - ); - } - - /// useCredential:forAuthenticationChallenge: - void useCredential( - NSURLCredential credential, { - required NSURLAuthenticationChallenge forAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = credential.ref; - final _$$ref$2 = forAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLAuthenticationChallengeSender.useCredential:forAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_useCredential_forAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSURLAuthenticationChallengeSender$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => objc.Protocol.fromPointer( - _protocol_NSURLAuthenticationChallengeSender.cast(), - ); - - /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLAuthenticationChallengeSender implement({ - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLAuthenticationChallengeSender', - ); - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implement(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implement( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implement(builder, performDefaultHandlingForAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implement(builder, rejectProtectionSpaceAndContinueWithChallenge_); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implement(builder, useCredential_forAuthenticationChallenge_); - builder.addProtocol($protocol); - return NSURLAuthenticationChallengeSender.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implement(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implement( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implement(builder, performDefaultHandlingForAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implement(builder, rejectProtectionSpaceAndContinueWithChallenge_); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implement(builder, useCredential_forAuthenticationChallenge_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLAuthenticationChallengeSender implementAsListener({ - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLAuthenticationChallengeSender', - ); - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implementAsListener(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implementAsListener( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implementAsListener( - builder, - performDefaultHandlingForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implementAsListener( - builder, - rejectProtectionSpaceAndContinueWithChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implementAsListener( - builder, - useCredential_forAuthenticationChallenge_, - ); - builder.addProtocol($protocol); - return NSURLAuthenticationChallengeSender.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implementAsListener(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implementAsListener( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implementAsListener( - builder, - performDefaultHandlingForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implementAsListener( - builder, - rejectProtectionSpaceAndContinueWithChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implementAsListener( - builder, - useCredential_forAuthenticationChallenge_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLAuthenticationChallengeSender protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLAuthenticationChallengeSender implementAsBlocking({ - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLAuthenticationChallengeSender', - ); - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implementAsBlocking(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implementAsBlocking( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implementAsBlocking( - builder, - performDefaultHandlingForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implementAsBlocking( - builder, - rejectProtectionSpaceAndContinueWithChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implementAsBlocking( - builder, - useCredential_forAuthenticationChallenge_, - ); - builder.addProtocol($protocol); - return NSURLAuthenticationChallengeSender.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLAuthenticationChallengeSender protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLAuthenticationChallenge) - cancelAuthenticationChallenge_, - required void Function(NSURLAuthenticationChallenge) - continueWithoutCredentialForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - performDefaultHandlingForAuthenticationChallenge_, - void Function(NSURLAuthenticationChallenge)? - rejectProtectionSpaceAndContinueWithChallenge_, - required void Function(NSURLCredential, NSURLAuthenticationChallenge) - useCredential_forAuthenticationChallenge_, - bool $keepIsolateAlive = true, - }) { - NSURLAuthenticationChallengeSender$Builder.cancelAuthenticationChallenge_ - .implementAsBlocking(builder, cancelAuthenticationChallenge_); - NSURLAuthenticationChallengeSender$Builder - .continueWithoutCredentialForAuthenticationChallenge_ - .implementAsBlocking( - builder, - continueWithoutCredentialForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .performDefaultHandlingForAuthenticationChallenge_ - .implementAsBlocking( - builder, - performDefaultHandlingForAuthenticationChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .rejectProtectionSpaceAndContinueWithChallenge_ - .implementAsBlocking( - builder, - rejectProtectionSpaceAndContinueWithChallenge_, - ); - NSURLAuthenticationChallengeSender$Builder - .useCredential_forAuthenticationChallenge_ - .implementAsBlocking( - builder, - useCredential_forAuthenticationChallenge_, - ); - builder.addProtocol($protocol); - } - - /// cancelAuthenticationChallenge: - static final cancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLAuthenticationChallenge) - >( - _protocol_NSURLAuthenticationChallengeSender, - _sel_cancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLAuthenticationChallengeSender, - _sel_cancelAuthenticationChallenge_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - ); - - /// continueWithoutCredentialForAuthenticationChallenge: - static final continueWithoutCredentialForAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLAuthenticationChallenge) - >( - _protocol_NSURLAuthenticationChallengeSender, - _sel_continueWithoutCredentialForAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLAuthenticationChallengeSender, - _sel_continueWithoutCredentialForAuthenticationChallenge_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - ); - - /// performDefaultHandlingForAuthenticationChallenge: - static final performDefaultHandlingForAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLAuthenticationChallenge) - >( - _protocol_NSURLAuthenticationChallengeSender, - _sel_performDefaultHandlingForAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLAuthenticationChallengeSender, - _sel_performDefaultHandlingForAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - ); - - /// rejectProtectionSpaceAndContinueWithChallenge: - static final rejectProtectionSpaceAndContinueWithChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLAuthenticationChallenge) - >( - _protocol_NSURLAuthenticationChallengeSender, - _sel_rejectProtectionSpaceAndContinueWithChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLAuthenticationChallengeSender, - _sel_rejectProtectionSpaceAndContinueWithChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.fromFunction( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.listener( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - (void Function(NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge.blocking( - (ffi.Pointer _, NSURLAuthenticationChallenge arg1) => - func(arg1), - ), - ); - - /// useCredential:forAuthenticationChallenge: - static final useCredential_forAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLCredential, NSURLAuthenticationChallenge) - >( - _protocol_NSURLAuthenticationChallengeSender, - _sel_useCredential_forAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLAuthenticationChallengeSender, - _sel_useCredential_forAuthenticationChallenge_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLCredential arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLCredential arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLCredential, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLCredential arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); -} - -typedef NSURLBookmarkFileCreationOptions = NSUInteger; - -/// WARNING: NSURLCache is a stub. To generate bindings for this class, include -/// NSURLCache in your config's objc-interfaces list. -/// -/// NSURLCache -extension type NSURLCache._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLCache] that points to the same underlying object as [other]. - NSURLCache.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLCache', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLCache] that wraps the given raw object pointer. - NSURLCache.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLCache', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -enum NSURLCacheStoragePolicy { - NSURLCacheStorageAllowed(0), - NSURLCacheStorageAllowedInMemoryOnly(1), - NSURLCacheStorageNotAllowed(2); - - final int value; - const NSURLCacheStoragePolicy(this.value); - - static NSURLCacheStoragePolicy fromValue(int value) => switch (value) { - 0 => NSURLCacheStorageAllowed, - 1 => NSURLCacheStorageAllowedInMemoryOnly, - 2 => NSURLCacheStorageNotAllowed, - _ => throw ArgumentError( - 'Unknown value for NSURLCacheStoragePolicy: $value', - ), - }; -} - -/// NSURLClient -extension NSURLClient on objc.NSObject { - /// URL:resourceDataDidBecomeAvailable: - @Deprecated('Use NSURLConnection instead') - void URL( - objc.NSURL sender, { - required objc.NSData resourceDataDidBecomeAvailable, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = resourceDataDidBecomeAvailable.ref; - objc.checkOsVersionInternal( - 'NSObject.URL:resourceDataDidBecomeAvailable:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URL_resourceDataDidBecomeAvailable_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URL:resourceDidFailLoadingWithReason: - @Deprecated('Use NSURLConnection instead') - void URL$1( - objc.NSURL sender, { - required objc.NSString resourceDidFailLoadingWithReason, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = resourceDidFailLoadingWithReason.ref; - objc.checkOsVersionInternal( - 'NSObject.URL:resourceDidFailLoadingWithReason:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URL_resourceDidFailLoadingWithReason_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLResourceDidCancelLoading: - @Deprecated('Use NSURLConnection instead') - void URLResourceDidCancelLoading(objc.NSURL sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSObject.URLResourceDidCancelLoading:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLResourceDidCancelLoading_, - _$$ref$1.pointer, - ); - } - - /// URLResourceDidFinishLoading: - @Deprecated('Use NSURLConnection instead') - void URLResourceDidFinishLoading(objc.NSURL sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSObject.URLResourceDidFinishLoading:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLResourceDidFinishLoading_, - _$$ref$1.pointer, - ); - } -} - -/// WARNING: NSURLConnection is a stub. To generate bindings for this class, include -/// NSURLConnection in your config's objc-interfaces list. -/// -/// NSURLConnection -extension type NSURLConnection._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLConnection] that points to the same underlying object as [other]. - NSURLConnection.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLConnection', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLConnection] that wraps the given raw object pointer. - NSURLConnection.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLConnection', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// NSURLConnectionDataDelegate -extension type NSURLConnectionDataDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLConnectionDelegate { - /// Constructs a [NSURLConnectionDataDelegate] that points to the same underlying object as [other]. - NSURLConnectionDataDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLConnectionDataDelegate] that wraps the given raw object pointer. - NSURLConnectionDataDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLConnectionDataDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLConnectionDataDelegate, - ); - } -} - -extension NSURLConnectionDataDelegate$Methods on NSURLConnectionDataDelegate { - /// connection:canAuthenticateAgainstProtectionSpace: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - bool connection( - NSURLConnection connection, { - required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:canAuthenticateAgainstProtectionSpace:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:canAuthenticateAgainstProtectionSpace:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didCancelAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$1( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didCancelAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didCancelAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didCancelAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didFailWithError: - void connection$2( - NSURLConnection connection, { - required objc.NSError didFailWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didFailWithError.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didFailWithError:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didFailWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didFailWithError:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didFailWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didReceiveAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$3( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didReceiveAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didReceiveAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didReceiveAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didReceiveData: - void connection$4( - NSURLConnection connection, { - required objc.NSData didReceiveData, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didReceiveData.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didReceiveData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didReceiveData_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didReceiveData:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didReceiveData_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didReceiveResponse: - void connection$5( - NSURLConnection connection, { - required NSURLResponse didReceiveResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didReceiveResponse.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didReceiveResponse:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didReceiveResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didReceiveResponse:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didReceiveResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite: - void connection$6( - NSURLConnection connection, { - required DartNSInteger didSendBodyData, - required DartNSInteger totalBytesWritten, - required DartNSInteger totalBytesExpectedToWrite, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:', - ); - } - _objc_msgSend_ifge4x( - _$$ref.pointer, - _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - _$$ref$1.pointer, - didSendBodyData, - totalBytesWritten, - totalBytesExpectedToWrite, - ); - } - - /// connection:needNewBodyStream: - objc.NSInputStream? connection$7( - NSURLConnection connection, { - required NSURLRequest needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:needNewBodyStream:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:needNewBodyStream:', - ); - } - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_connection_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// connection:willCacheResponse: - NSCachedURLResponse? connection$8( - NSURLConnection connection, { - required NSCachedURLResponse willCacheResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = willCacheResponse.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:willCacheResponse:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_willCacheResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:willCacheResponse:', - ); - } - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_connection_willCacheResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : NSCachedURLResponse.fromPointer($ret, retain: true, release: true); - } - - /// connection:willSendRequest:redirectResponse: - NSURLRequest? connection$9( - NSURLConnection connection, { - required NSURLRequest willSendRequest, - NSURLResponse? redirectResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = willSendRequest.ref; - final _$$ref$3 = redirectResponse?.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:willSendRequest:redirectResponse:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_willSendRequest_redirectResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:willSendRequest:redirectResponse:', - ); - } - final $ret = _objc_msgSend_11spmsz( - _$$ref.pointer, - _sel_connection_willSendRequest_redirectResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : NSURLRequest.fromPointer($ret, retain: true, release: true); - } - - /// connection:willSendRequestForAuthenticationChallenge: - void connection$10( - NSURLConnection connection, { - required NSURLAuthenticationChallenge - willSendRequestForAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connection:willSendRequestForAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connection:willSendRequestForAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connectionDidFinishLoading: - void connectionDidFinishLoading(NSURLConnection connection) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connectionDidFinishLoading:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connectionDidFinishLoading_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connectionDidFinishLoading:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_connectionDidFinishLoading_, - _$$ref$1.pointer, - ); - } - - /// connectionShouldUseCredentialStorage: - bool connectionShouldUseCredentialStorage(NSURLConnection connection) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDataDelegate.connectionShouldUseCredentialStorage:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDataDelegate', - 'connectionShouldUseCredentialStorage:', - ); - } - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLConnectionDataDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLConnectionDataDelegate.cast()); - - /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDataDelegate implement({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDataDelegate', - ); - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_.implement( - builder, - connection_didFailWithError_, - ); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_.implement( - builder, - connection_didReceiveData_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implement(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implement( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_.implement( - builder, - connectionDidFinishLoading_, - ); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_.implement( - builder, - connection_didFailWithError_, - ); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_.implement( - builder, - connection_didReceiveData_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implement(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implement( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_.implement( - builder, - connectionDidFinishLoading_, - ); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDataDelegate implementAsListener({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDataDelegate', - ); - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ - .implementAsListener(builder, connection_didReceiveData_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implementAsListener(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsListener( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ - .implementAsListener(builder, connectionDidFinishLoading_); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ - .implementAsListener(builder, connection_didReceiveData_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implementAsListener(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsListener( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ - .implementAsListener(builder, connectionDidFinishLoading_); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDataDelegate implementAsBlocking({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDataDelegate', - ); - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ - .implementAsBlocking(builder, connection_didReceiveData_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implementAsBlocking(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsBlocking( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ - .implementAsBlocking(builder, connectionDidFinishLoading_); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSData)? connection_didReceiveData_, - void Function(NSURLConnection, NSURLResponse)? - connection_didReceiveResponse_, - void Function(NSURLConnection, DartNSInteger, DartNSInteger, DartNSInteger)? - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - objc.NSInputStream? Function(NSURLConnection, NSURLRequest)? - connection_needNewBodyStream_, - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse)? - connection_willCacheResponse_, - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?)? - connection_willSendRequest_redirectResponse_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - void Function(NSURLConnection)? connectionDidFinishLoading_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDataDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDataDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDataDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connection_didReceiveData_ - .implementAsBlocking(builder, connection_didReceiveData_); - NSURLConnectionDataDelegate$Builder.connection_didReceiveResponse_ - .implementAsBlocking(builder, connection_didReceiveResponse_); - NSURLConnectionDataDelegate$Builder - .connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ - .implementAsBlocking( - builder, - connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLConnectionDataDelegate$Builder.connection_needNewBodyStream_.implement( - builder, - connection_needNewBodyStream_, - ); - NSURLConnectionDataDelegate$Builder.connection_willCacheResponse_.implement( - builder, - connection_willCacheResponse_, - ); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequest_redirectResponse_ - .implement(builder, connection_willSendRequest_redirectResponse_); - NSURLConnectionDataDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDataDelegate$Builder.connectionDidFinishLoading_ - .implementAsBlocking(builder, connectionDidFinishLoading_); - NSURLConnectionDataDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// connection:canAuthenticateAgainstProtectionSpace: - static final connection_canAuthenticateAgainstProtectionSpace_ = - objc.ObjCProtocolMethod< - bool Function(NSURLConnection, NSURLProtectionSpace) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection, NSURLProtectionSpace) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLProtectionSpace arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didCancelAuthenticationChallenge: - static final connection_didCancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didFailWithError: - static final connection_didFailWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, objc.NSError) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didFailWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didFailWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didReceiveAuthenticationChallenge: - static final connection_didReceiveAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didReceiveData: - static final connection_didReceiveData_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, objc.NSData) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveData_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didReceiveResponse: - static final connection_didReceiveResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLResponse) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didReceiveResponse_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite: - static final connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - ) - > - >(_1uu024u_protocolTrampoline_15e9dqx) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - DartNSInteger arg2, - DartNSInteger arg3, - DartNSInteger arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - DartNSInteger arg2, - DartNSInteger arg3, - DartNSInteger arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - DartNSInteger arg2, - DartNSInteger arg3, - DartNSInteger arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// connection:needNewBodyStream: - static final connection_needNewBodyStream_ = - objc.ObjCProtocolMethod< - objc.NSInputStream? Function(NSURLConnection, NSURLRequest) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_zi5eed) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - (objc.NSInputStream? Function(NSURLConnection, NSURLRequest) func) => - ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLRequest arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:willCacheResponse: - static final connection_willCacheResponse_ = - objc.ObjCProtocolMethod< - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willCacheResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_zi5eed) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willCacheResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - NSCachedURLResponse? Function(NSURLConnection, NSCachedURLResponse) - func, - ) => - ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSCachedURLResponse arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:willSendRequest:redirectResponse: - static final connection_willSendRequest_redirectResponse_ = - objc.ObjCProtocolMethod< - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willSendRequest_redirectResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1yw2rcr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willSendRequest_redirectResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - NSURLRequest? Function(NSURLConnection, NSURLRequest, NSURLResponse?) - func, - ) => - ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLRequest arg2, - NSURLResponse? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// connection:willSendRequestForAuthenticationChallenge: - static final connection_willSendRequestForAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connectionDidFinishLoading: - static final connectionDidFinishLoading_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLConnectionDataDelegate, - _sel_connectionDidFinishLoading_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connectionDidFinishLoading_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.fromFunction( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - (void Function(NSURLConnection) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.listener( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - (void Function(NSURLConnection) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection.blocking( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - ); - - /// connectionShouldUseCredentialStorage: - static final connectionShouldUseCredentialStorage_ = - objc.ObjCProtocolMethod( - _protocol_NSURLConnectionDataDelegate, - _sel_connectionShouldUseCredentialStorage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDataDelegate, - _sel_connectionShouldUseCredentialStorage_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - ); -} - -/// NSURLConnectionDelegate -extension type NSURLConnectionDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSURLConnectionDelegate] that points to the same underlying object as [other]. - NSURLConnectionDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLConnectionDelegate] that wraps the given raw object pointer. - NSURLConnectionDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLConnectionDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLConnectionDelegate, - ); - } -} - -extension NSURLConnectionDelegate$Methods on NSURLConnectionDelegate { - /// connection:canAuthenticateAgainstProtectionSpace: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - bool connection( - NSURLConnection connection, { - required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connection:canAuthenticateAgainstProtectionSpace:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connection:canAuthenticateAgainstProtectionSpace:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didCancelAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$1( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didCancelAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connection:didCancelAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connection:didCancelAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didFailWithError: - void connection$2( - NSURLConnection connection, { - required objc.NSError didFailWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didFailWithError.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connection:didFailWithError:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didFailWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connection:didFailWithError:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didFailWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didReceiveAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$3( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didReceiveAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connection:didReceiveAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connection:didReceiveAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:willSendRequestForAuthenticationChallenge: - void connection$4( - NSURLConnection connection, { - required NSURLAuthenticationChallenge - willSendRequestForAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connection:willSendRequestForAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connection:willSendRequestForAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connectionShouldUseCredentialStorage: - bool connectionShouldUseCredentialStorage(NSURLConnection connection) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDelegate.connectionShouldUseCredentialStorage:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDelegate', - 'connectionShouldUseCredentialStorage:', - ); - } - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLConnectionDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLConnectionDelegate.cast()); - - /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDelegate implement({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDelegate', - ); - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDelegate$Builder.connection_didFailWithError_.implement( - builder, - connection_didFailWithError_, - ); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDelegate$Builder.connection_didFailWithError_.implement( - builder, - connection_didFailWithError_, - ); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDelegate implementAsListener({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDelegate', - ); - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDelegate implementAsBlocking({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDelegate', - ); - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDelegate$Builder.connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDelegate$Builder.connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// connection:canAuthenticateAgainstProtectionSpace: - static final connection_canAuthenticateAgainstProtectionSpace_ = - objc.ObjCProtocolMethod< - bool Function(NSURLConnection, NSURLProtectionSpace) - >( - _protocol_NSURLConnectionDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection, NSURLProtectionSpace) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLProtectionSpace arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didCancelAuthenticationChallenge: - static final connection_didCancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didFailWithError: - static final connection_didFailWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, objc.NSError) - >( - _protocol_NSURLConnectionDelegate, - _sel_connection_didFailWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connection_didFailWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didReceiveAuthenticationChallenge: - static final connection_didReceiveAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:willSendRequestForAuthenticationChallenge: - static final connection_willSendRequestForAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connectionShouldUseCredentialStorage: - static final connectionShouldUseCredentialStorage_ = - objc.ObjCProtocolMethod( - _protocol_NSURLConnectionDelegate, - _sel_connectionShouldUseCredentialStorage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDelegate, - _sel_connectionShouldUseCredentialStorage_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - ); -} - -/// NSURLConnectionDownloadDelegate -extension type NSURLConnectionDownloadDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLConnectionDelegate { - /// Constructs a [NSURLConnectionDownloadDelegate] that points to the same underlying object as [other]. - NSURLConnectionDownloadDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLConnectionDownloadDelegate] that wraps the given raw object pointer. - NSURLConnectionDownloadDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLConnectionDownloadDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLConnectionDownloadDelegate, - ); - } -} - -extension NSURLConnectionDownloadDelegate$Methods - on NSURLConnectionDownloadDelegate { - /// connection:canAuthenticateAgainstProtectionSpace: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - bool connection( - NSURLConnection connection, { - required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:canAuthenticateAgainstProtectionSpace:', - iOS: (false, (3, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:canAuthenticateAgainstProtectionSpace:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didCancelAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$1( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didCancelAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:didCancelAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:didCancelAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didCancelAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didFailWithError: - void connection$2( - NSURLConnection connection, { - required objc.NSError didFailWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didFailWithError.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:didFailWithError:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didFailWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:didFailWithError:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didFailWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didReceiveAuthenticationChallenge: - @Deprecated( - 'Use -connection:willSendRequestForAuthenticationChallenge: instead.', - ) - void connection$3( - NSURLConnection connection, { - required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = didReceiveAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:didReceiveAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:didReceiveAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_didReceiveAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connection:didWriteData:totalBytesWritten:expectedTotalBytes: - void connection$4( - NSURLConnection connection, { - required int didWriteData, - required int totalBytesWritten, - required int expectedTotalBytes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:didWriteData:totalBytesWritten:expectedTotalBytes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:didWriteData:totalBytesWritten:expectedTotalBytes:', - ); - } - _objc_msgSend_3ow0v1( - _$$ref.pointer, - _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - _$$ref$1.pointer, - didWriteData, - totalBytesWritten, - expectedTotalBytes, - ); - } - - /// connection:willSendRequestForAuthenticationChallenge: - void connection$5( - NSURLConnection connection, { - required NSURLAuthenticationChallenge - willSendRequestForAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = willSendRequestForAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connection:willSendRequestForAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connection:willSendRequestForAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connection_willSendRequestForAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connectionDidFinishDownloading:destinationURL: - void connectionDidFinishDownloading( - NSURLConnection connection, { - required objc.NSURL destinationURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = destinationURL.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connectionDidFinishDownloading:destinationURL:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_connectionDidFinishDownloading_destinationURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes: - void connectionDidResumeDownloading( - NSURLConnection connection, { - required int totalBytesWritten, - required int expectedTotalBytes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:', - ); - } - _objc_msgSend_6cylk3( - _$$ref.pointer, - _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - _$$ref$1.pointer, - totalBytesWritten, - expectedTotalBytes, - ); - } - - /// connectionShouldUseCredentialStorage: - bool connectionShouldUseCredentialStorage(NSURLConnection connection) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - objc.checkOsVersionInternal( - 'NSURLConnectionDownloadDelegate.connectionShouldUseCredentialStorage:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLConnectionDownloadDelegate', - 'connectionShouldUseCredentialStorage:', - ); - } - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_connectionShouldUseCredentialStorage_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLConnectionDownloadDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => objc.Protocol.fromPointer( - _protocol_NSURLConnectionDownloadDelegate.cast(), - ); - - /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDownloadDelegate implement({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDownloadDelegate', - ); - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implement(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implement( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implement(builder, connectionDidFinishDownloading_destinationURL_); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implement( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implement(builder, connection_didCancelAuthenticationChallenge_); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implement(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implement(builder, connection_didReceiveAuthenticationChallenge_); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implement( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implement( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implement(builder, connectionDidFinishDownloading_destinationURL_); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implement( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDownloadDelegate implementAsListener({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDownloadDelegate', - ); - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implementAsListener( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implementAsListener( - builder, - connectionDidFinishDownloading_destinationURL_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implementAsListener( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implementAsListener(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implementAsListener( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsListener( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implementAsListener( - builder, - connectionDidFinishDownloading_destinationURL_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implementAsListener( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLConnectionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLConnectionDownloadDelegate implementAsBlocking({ - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLConnectionDownloadDelegate', - ); - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implementAsBlocking( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implementAsBlocking( - builder, - connectionDidFinishDownloading_destinationURL_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implementAsBlocking( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - return NSURLConnectionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLConnectionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLConnection, NSURLProtectionSpace)? - connection_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didCancelAuthenticationChallenge_, - void Function(NSURLConnection, objc.NSError)? connection_didFailWithError_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_didReceiveAuthenticationChallenge_, - void Function(NSURLConnection, int, int, int)? - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - void Function(NSURLConnection, NSURLAuthenticationChallenge)? - connection_willSendRequestForAuthenticationChallenge_, - required void Function(NSURLConnection, objc.NSURL) - connectionDidFinishDownloading_destinationURL_, - void Function(NSURLConnection, int, int)? - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - bool Function(NSURLConnection)? connectionShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLConnectionDownloadDelegate$Builder - .connection_canAuthenticateAgainstProtectionSpace_ - .implement(builder, connection_canAuthenticateAgainstProtectionSpace_); - NSURLConnectionDownloadDelegate$Builder - .connection_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didCancelAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder.connection_didFailWithError_ - .implementAsBlocking(builder, connection_didFailWithError_); - NSURLConnectionDownloadDelegate$Builder - .connection_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_didReceiveAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_didWriteData_totalBytesWritten_expectedTotalBytes_ - .implementAsBlocking( - builder, - connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connection_willSendRequestForAuthenticationChallenge_ - .implementAsBlocking( - builder, - connection_willSendRequestForAuthenticationChallenge_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidFinishDownloading_destinationURL_ - .implementAsBlocking( - builder, - connectionDidFinishDownloading_destinationURL_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ - .implementAsBlocking( - builder, - connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ); - NSURLConnectionDownloadDelegate$Builder - .connectionShouldUseCredentialStorage_ - .implement(builder, connectionShouldUseCredentialStorage_); - builder.addProtocol($protocol); - } - - /// connection:canAuthenticateAgainstProtectionSpace: - static final connection_canAuthenticateAgainstProtectionSpace_ = - objc.ObjCProtocolMethod< - bool Function(NSURLConnection, NSURLProtectionSpace) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_canAuthenticateAgainstProtectionSpace_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection, NSURLProtectionSpace) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLProtectionSpace arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didCancelAuthenticationChallenge: - static final connection_didCancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didCancelAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didFailWithError: - static final connection_didFailWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, objc.NSError) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didFailWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didFailWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didReceiveAuthenticationChallenge: - static final connection_didReceiveAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didReceiveAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connection:didWriteData:totalBytesWritten:expectedTotalBytes: - static final connection_didWriteData_totalBytesWritten_expectedTotalBytes_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, int, int, int) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - >(_1uu024u_protocolTrampoline_1qf1qkl) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - (void Function(NSURLConnection, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - (void Function(NSURLConnection, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// connection:willSendRequestForAuthenticationChallenge: - static final connection_willSendRequestForAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, NSURLAuthenticationChallenge) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connection_willSendRequestForAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// connectionDidFinishDownloading:destinationURL: - static final connectionDidFinishDownloading_destinationURL_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, objc.NSURL) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionDidFinishDownloading_destinationURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionDidFinishDownloading_destinationURL_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSURL arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSURL arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLConnection, objc.NSURL) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - objc.NSURL arg2, - ) => func(arg1, arg2), - ), - ); - - /// connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes: - static final connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLConnection, int, int) - >( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ) - > - >(_1uu024u_protocolTrampoline_9crvvv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLConnection, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.fromFunction( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLConnection, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.listener( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLConnection, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong.blocking( - ( - ffi.Pointer _, - NSURLConnection arg1, - int arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// connectionShouldUseCredentialStorage: - static final connectionShouldUseCredentialStorage_ = - objc.ObjCProtocolMethod( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionShouldUseCredentialStorage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLConnectionDownloadDelegate, - _sel_connectionShouldUseCredentialStorage_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLConnection) func) => - ObjCBlock_bool_ffiVoid_NSURLConnection.fromFunction( - (ffi.Pointer _, NSURLConnection arg1) => func(arg1), - ), - ); -} - -/// NSURLConnectionQueuedLoading -extension NSURLConnectionQueuedLoading on NSURLConnection { - /// sendAsynchronousRequest:queue:completionHandler: - @Deprecated( - 'Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h', - ) - static void sendAsynchronousRequest( - NSURLRequest request, { - required NSOperationQueue queue, - required objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = request.ref; - final _$$ref$1 = queue.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLConnection.sendAsynchronousRequest:queue:completionHandler:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_18qun1e( - _class_NSURLConnection, - _sel_sendAsynchronousRequest_queue_completionHandler_, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSURLConnectionSynchronousLoading -extension NSURLConnectionSynchronousLoading on NSURLConnection { - /// sendSynchronousRequest:returningResponse:error: - @Deprecated( - 'Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h', - ) - static objc.NSData? sendSynchronousRequest( - NSURLRequest request, { - required ffi.Pointer> returningResponse, - }) { - final _$$ref = request.ref; - objc.checkOsVersionInternal( - 'NSURLConnection.sendSynchronousRequest:returningResponse:error:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 3, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_b99g2z( - _class_NSURLConnection, - _sel_sendSynchronousRequest_returningResponse_error_, - _$$ref.pointer, - returningResponse, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - -/// WARNING: NSURLCredential is a stub. To generate bindings for this class, include -/// NSURLCredential in your config's objc-interfaces list. -/// -/// NSURLCredential -extension type NSURLCredential._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSURLCredential] that points to the same underlying object as [other]. - NSURLCredential.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLCredential', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLCredential] that wraps the given raw object pointer. - NSURLCredential.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLCredential', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -enum NSURLCredentialPersistence { - NSURLCredentialPersistenceNone(0), - NSURLCredentialPersistenceForSession(1), - NSURLCredentialPersistencePermanent(2), - NSURLCredentialPersistenceSynchronizable(3); - - final int value; - const NSURLCredentialPersistence(this.value); - - static NSURLCredentialPersistence fromValue(int value) => switch (value) { - 0 => NSURLCredentialPersistenceNone, - 1 => NSURLCredentialPersistenceForSession, - 2 => NSURLCredentialPersistencePermanent, - 3 => NSURLCredentialPersistenceSynchronizable, - _ => throw ArgumentError( - 'Unknown value for NSURLCredentialPersistence: $value', - ), - }; -} - -/// WARNING: NSURLCredentialStorage is a stub. To generate bindings for this class, include -/// NSURLCredentialStorage in your config's objc-interfaces list. -/// -/// NSURLCredentialStorage -extension type NSURLCredentialStorage._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLCredentialStorage] that points to the same underlying object as [other]. - NSURLCredentialStorage.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLCredentialStorage', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLCredentialStorage] that wraps the given raw object pointer. - NSURLCredentialStorage.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLCredentialStorage', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// WARNING: NSURLDownload is a stub. To generate bindings for this class, include -/// NSURLDownload in your config's objc-interfaces list. -/// -/// NSURLDownload -extension type NSURLDownload._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLDownload] that points to the same underlying object as [other]. - NSURLDownload.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLDownload', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLDownload] that wraps the given raw object pointer. - NSURLDownload.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLDownload', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// NSURLDownloadDelegate -extension type NSURLDownloadDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSURLDownloadDelegate] that points to the same underlying object as [other]. - NSURLDownloadDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLDownloadDelegate] that wraps the given raw object pointer. - NSURLDownloadDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLDownloadDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLDownloadDelegate, - ); - } -} - -extension NSURLDownloadDelegate$Methods on NSURLDownloadDelegate { - /// download:canAuthenticateAgainstProtectionSpace: - bool download( - NSURLDownload connection, { - required NSURLProtectionSpace canAuthenticateAgainstProtectionSpace, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = connection.ref; - final _$$ref$2 = canAuthenticateAgainstProtectionSpace.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:canAuthenticateAgainstProtectionSpace:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_canAuthenticateAgainstProtectionSpace_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:canAuthenticateAgainstProtectionSpace:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_download_canAuthenticateAgainstProtectionSpace_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:decideDestinationWithSuggestedFilename: - void download$1( - NSURLDownload download, { - required objc.NSString decideDestinationWithSuggestedFilename, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = decideDestinationWithSuggestedFilename.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:decideDestinationWithSuggestedFilename:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_decideDestinationWithSuggestedFilename_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:decideDestinationWithSuggestedFilename:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_download_decideDestinationWithSuggestedFilename_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:didCancelAuthenticationChallenge: - void download$2( - NSURLDownload download, { - required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = didCancelAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didCancelAuthenticationChallenge:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didCancelAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didCancelAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_download_didCancelAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:didCreateDestination: - void download$3( - NSURLDownload download, { - required objc.NSString didCreateDestination, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = didCreateDestination.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didCreateDestination:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didCreateDestination_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didCreateDestination:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_download_didCreateDestination_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:didFailWithError: - void download$4( - NSURLDownload download, { - required objc.NSError didFailWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = didFailWithError.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didFailWithError:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didFailWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didFailWithError:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_download_didFailWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:didReceiveAuthenticationChallenge: - void download$5( - NSURLDownload download, { - required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = didReceiveAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didReceiveAuthenticationChallenge:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didReceiveAuthenticationChallenge_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didReceiveAuthenticationChallenge:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_download_didReceiveAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:didReceiveDataOfLength: - void download$6( - NSURLDownload download, { - required DartNSUInteger didReceiveDataOfLength, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didReceiveDataOfLength:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didReceiveDataOfLength_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didReceiveDataOfLength:', - ); - } - _objc_msgSend_djsa9o( - _$$ref.pointer, - _sel_download_didReceiveDataOfLength_, - _$$ref$1.pointer, - didReceiveDataOfLength, - ); - } - - /// download:didReceiveResponse: - void download$7( - NSURLDownload download, { - required NSURLResponse didReceiveResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = didReceiveResponse.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:didReceiveResponse:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_didReceiveResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:didReceiveResponse:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_download_didReceiveResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:shouldDecodeSourceDataOfMIMEType: - bool download$8( - NSURLDownload download, { - required objc.NSString shouldDecodeSourceDataOfMIMEType, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = shouldDecodeSourceDataOfMIMEType.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:shouldDecodeSourceDataOfMIMEType:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_shouldDecodeSourceDataOfMIMEType_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:shouldDecodeSourceDataOfMIMEType:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_download_shouldDecodeSourceDataOfMIMEType_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// download:willResumeWithResponse:fromByte: - void download$9( - NSURLDownload download, { - required NSURLResponse willResumeWithResponse, - required int fromByte, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = willResumeWithResponse.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:willResumeWithResponse:fromByte:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_willResumeWithResponse_fromByte_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:willResumeWithResponse:fromByte:', - ); - } - _objc_msgSend_wp1dbz( - _$$ref.pointer, - _sel_download_willResumeWithResponse_fromByte_, - _$$ref$1.pointer, - _$$ref$2.pointer, - fromByte, - ); - } - - /// download:willSendRequest:redirectResponse: - NSURLRequest? download$10( - NSURLDownload download, { - required NSURLRequest willSendRequest, - NSURLResponse? redirectResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - final _$$ref$2 = willSendRequest.ref; - final _$$ref$3 = redirectResponse?.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.download:willSendRequest:redirectResponse:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_download_willSendRequest_redirectResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'download:willSendRequest:redirectResponse:', - ); - } - final $ret = _objc_msgSend_11spmsz( - _$$ref.pointer, - _sel_download_willSendRequest_redirectResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : NSURLRequest.fromPointer($ret, retain: true, release: true); - } - - /// downloadDidBegin: - void downloadDidBegin(NSURLDownload download) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.downloadDidBegin:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_downloadDidBegin_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'downloadDidBegin:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_downloadDidBegin_, - _$$ref$1.pointer, - ); - } - - /// downloadDidFinish: - void downloadDidFinish(NSURLDownload download) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.downloadDidFinish:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_downloadDidFinish_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'downloadDidFinish:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_downloadDidFinish_, - _$$ref$1.pointer, - ); - } - - /// downloadShouldUseCredentialStorage: - bool downloadShouldUseCredentialStorage(NSURLDownload download) { - final _$$ref = object$.ref; - final _$$ref$1 = download.ref; - objc.checkOsVersionInternal( - 'NSURLDownloadDelegate.downloadShouldUseCredentialStorage:', - iOS: (true, null), - macOS: (false, (10, 2, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_downloadShouldUseCredentialStorage_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLDownloadDelegate', - 'downloadShouldUseCredentialStorage:', - ); - } - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_downloadShouldUseCredentialStorage_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLDownloadDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLDownloadDelegate.cast()); - - /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLDownloadDelegate implement({ - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLDownloadDelegate', - ); - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implement(builder, download_decideDestinationWithSuggestedFilename_); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implement(builder, download_didCancelAuthenticationChallenge_); - NSURLDownloadDelegate$Builder.download_didCreateDestination_.implement( - builder, - download_didCreateDestination_, - ); - NSURLDownloadDelegate$Builder.download_didFailWithError_.implement( - builder, - download_didFailWithError_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implement(builder, download_didReceiveAuthenticationChallenge_); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_.implement( - builder, - download_didReceiveDataOfLength_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_.implement( - builder, - download_didReceiveResponse_, - ); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implement(builder, download_willResumeWithResponse_fromByte_); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implement( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implement( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - return NSURLDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implement(builder, download_decideDestinationWithSuggestedFilename_); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implement(builder, download_didCancelAuthenticationChallenge_); - NSURLDownloadDelegate$Builder.download_didCreateDestination_.implement( - builder, - download_didCreateDestination_, - ); - NSURLDownloadDelegate$Builder.download_didFailWithError_.implement( - builder, - download_didFailWithError_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implement(builder, download_didReceiveAuthenticationChallenge_); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_.implement( - builder, - download_didReceiveDataOfLength_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_.implement( - builder, - download_didReceiveResponse_, - ); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implement(builder, download_willResumeWithResponse_fromByte_); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implement( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implement( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLDownloadDelegate implementAsListener({ - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLDownloadDelegate', - ); - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implementAsListener( - builder, - download_decideDestinationWithSuggestedFilename_, - ); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - download_didCancelAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didCreateDestination_ - .implementAsListener(builder, download_didCreateDestination_); - NSURLDownloadDelegate$Builder.download_didFailWithError_ - .implementAsListener(builder, download_didFailWithError_); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - download_didReceiveAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ - .implementAsListener(builder, download_didReceiveDataOfLength_); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_ - .implementAsListener(builder, download_didReceiveResponse_); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implementAsListener( - builder, - download_willResumeWithResponse_fromByte_, - ); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsListener( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsListener( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - return NSURLDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implementAsListener( - builder, - download_decideDestinationWithSuggestedFilename_, - ); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implementAsListener( - builder, - download_didCancelAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didCreateDestination_ - .implementAsListener(builder, download_didCreateDestination_); - NSURLDownloadDelegate$Builder.download_didFailWithError_ - .implementAsListener(builder, download_didFailWithError_); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implementAsListener( - builder, - download_didReceiveAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ - .implementAsListener(builder, download_didReceiveDataOfLength_); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_ - .implementAsListener(builder, download_didReceiveResponse_); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implementAsListener( - builder, - download_willResumeWithResponse_fromByte_, - ); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsListener( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsListener( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLDownloadDelegate implementAsBlocking({ - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLDownloadDelegate', - ); - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implementAsBlocking( - builder, - download_decideDestinationWithSuggestedFilename_, - ); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - download_didCancelAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didCreateDestination_ - .implementAsBlocking(builder, download_didCreateDestination_); - NSURLDownloadDelegate$Builder.download_didFailWithError_ - .implementAsBlocking(builder, download_didFailWithError_); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - download_didReceiveAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ - .implementAsBlocking(builder, download_didReceiveDataOfLength_); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_ - .implementAsBlocking(builder, download_didReceiveResponse_); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implementAsBlocking( - builder, - download_willResumeWithResponse_fromByte_, - ); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsBlocking( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsBlocking( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - return NSURLDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - bool Function(NSURLDownload, NSURLProtectionSpace)? - download_canAuthenticateAgainstProtectionSpace_, - void Function(NSURLDownload, objc.NSString)? - download_decideDestinationWithSuggestedFilename_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didCancelAuthenticationChallenge_, - void Function(NSURLDownload, objc.NSString)? download_didCreateDestination_, - void Function(NSURLDownload, objc.NSError)? download_didFailWithError_, - void Function(NSURLDownload, NSURLAuthenticationChallenge)? - download_didReceiveAuthenticationChallenge_, - void Function(NSURLDownload, DartNSUInteger)? - download_didReceiveDataOfLength_, - void Function(NSURLDownload, NSURLResponse)? download_didReceiveResponse_, - bool Function(NSURLDownload, objc.NSString)? - download_shouldDecodeSourceDataOfMIMEType_, - void Function(NSURLDownload, NSURLResponse, int)? - download_willResumeWithResponse_fromByte_, - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?)? - download_willSendRequest_redirectResponse_, - void Function(NSURLDownload)? downloadDidBegin_, - void Function(NSURLDownload)? downloadDidFinish_, - bool Function(NSURLDownload)? downloadShouldUseCredentialStorage_, - bool $keepIsolateAlive = true, - }) { - NSURLDownloadDelegate$Builder - .download_canAuthenticateAgainstProtectionSpace_ - .implement(builder, download_canAuthenticateAgainstProtectionSpace_); - NSURLDownloadDelegate$Builder - .download_decideDestinationWithSuggestedFilename_ - .implementAsBlocking( - builder, - download_decideDestinationWithSuggestedFilename_, - ); - NSURLDownloadDelegate$Builder.download_didCancelAuthenticationChallenge_ - .implementAsBlocking( - builder, - download_didCancelAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didCreateDestination_ - .implementAsBlocking(builder, download_didCreateDestination_); - NSURLDownloadDelegate$Builder.download_didFailWithError_ - .implementAsBlocking(builder, download_didFailWithError_); - NSURLDownloadDelegate$Builder.download_didReceiveAuthenticationChallenge_ - .implementAsBlocking( - builder, - download_didReceiveAuthenticationChallenge_, - ); - NSURLDownloadDelegate$Builder.download_didReceiveDataOfLength_ - .implementAsBlocking(builder, download_didReceiveDataOfLength_); - NSURLDownloadDelegate$Builder.download_didReceiveResponse_ - .implementAsBlocking(builder, download_didReceiveResponse_); - NSURLDownloadDelegate$Builder.download_shouldDecodeSourceDataOfMIMEType_ - .implement(builder, download_shouldDecodeSourceDataOfMIMEType_); - NSURLDownloadDelegate$Builder.download_willResumeWithResponse_fromByte_ - .implementAsBlocking( - builder, - download_willResumeWithResponse_fromByte_, - ); - NSURLDownloadDelegate$Builder.download_willSendRequest_redirectResponse_ - .implement(builder, download_willSendRequest_redirectResponse_); - NSURLDownloadDelegate$Builder.downloadDidBegin_.implementAsBlocking( - builder, - downloadDidBegin_, - ); - NSURLDownloadDelegate$Builder.downloadDidFinish_.implementAsBlocking( - builder, - downloadDidFinish_, - ); - NSURLDownloadDelegate$Builder.downloadShouldUseCredentialStorage_.implement( - builder, - downloadShouldUseCredentialStorage_, - ); - builder.addProtocol($protocol); - } - - /// download:canAuthenticateAgainstProtectionSpace: - static final download_canAuthenticateAgainstProtectionSpace_ = - objc.ObjCProtocolMethod< - bool Function(NSURLDownload, NSURLProtectionSpace) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_canAuthenticateAgainstProtectionSpace_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_canAuthenticateAgainstProtectionSpace_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLDownload, NSURLProtectionSpace) func) => - ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLProtectionSpace arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:decideDestinationWithSuggestedFilename: - static final download_decideDestinationWithSuggestedFilename_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, objc.NSString) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_decideDestinationWithSuggestedFilename_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_decideDestinationWithSuggestedFilename_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didCancelAuthenticationChallenge: - static final download_didCancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, NSURLAuthenticationChallenge) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didCancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didCancelAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didCreateDestination: - static final download_didCreateDestination_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, objc.NSString) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didCreateDestination_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didCreateDestination_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didFailWithError: - static final download_didFailWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, objc.NSError) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didFailWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didFailWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didReceiveAuthenticationChallenge: - static final download_didReceiveAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, NSURLAuthenticationChallenge) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveAuthenticationChallenge_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didReceiveDataOfLength: - static final download_didReceiveDataOfLength_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, DartNSUInteger) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveDataOfLength_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >(_1uu024u_protocolTrampoline_wy9lus) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveDataOfLength_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - DartNSUInteger arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - DartNSUInteger arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, DartNSUInteger) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - DartNSUInteger arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:didReceiveResponse: - static final download_didReceiveResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, NSURLResponse) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_didReceiveResponse_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLDownload, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:shouldDecodeSourceDataOfMIMEType: - static final download_shouldDecodeSourceDataOfMIMEType_ = - objc.ObjCProtocolMethod( - _protocol_NSURLDownloadDelegate, - _sel_download_shouldDecodeSourceDataOfMIMEType_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_shouldDecodeSourceDataOfMIMEType_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLDownload, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSURLDownload_NSString.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// download:willResumeWithResponse:fromByte: - static final download_willResumeWithResponse_fromByte_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLDownload, NSURLResponse, int) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_willResumeWithResponse_fromByte_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) - > - >(_1uu024u_protocolTrampoline_34xzuf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_willResumeWithResponse_fromByte_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload, NSURLResponse, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLDownload, NSURLResponse, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.listener( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLDownload, NSURLResponse, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong.blocking( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLResponse arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// download:willSendRequest:redirectResponse: - static final download_willSendRequest_redirectResponse_ = - objc.ObjCProtocolMethod< - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?) - >( - _protocol_NSURLDownloadDelegate, - _sel_download_willSendRequest_redirectResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1yw2rcr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_download_willSendRequest_redirectResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - NSURLRequest? Function(NSURLDownload, NSURLRequest, NSURLResponse?) - func, - ) => - ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLDownload arg1, - NSURLRequest arg2, - NSURLResponse? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// downloadDidBegin: - static final downloadDidBegin_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLDownloadDelegate, - _sel_downloadDidBegin_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_downloadDidBegin_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.fromFunction( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.listener( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.blocking( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - ); - - /// downloadDidFinish: - static final downloadDidFinish_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLDownloadDelegate, - _sel_downloadDidFinish_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_downloadDidFinish_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.fromFunction( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.listener( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - (void Function(NSURLDownload) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLDownload.blocking( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - ); - - /// downloadShouldUseCredentialStorage: - static final downloadShouldUseCredentialStorage_ = - objc.ObjCProtocolMethod( - _protocol_NSURLDownloadDelegate, - _sel_downloadShouldUseCredentialStorage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLDownloadDelegate, - _sel_downloadShouldUseCredentialStorage_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSURLDownload) func) => - ObjCBlock_bool_ffiVoid_NSURLDownload.fromFunction( - (ffi.Pointer _, NSURLDownload arg1) => func(arg1), - ), - ); -} - -const int NSURLErrorAppTransportSecurityRequiresSecureConnection = -1022; - -const int NSURLErrorBackgroundSessionInUseByAnotherProcess = -996; - -const int NSURLErrorBackgroundSessionRequiresSharedContainer = -995; - -const int NSURLErrorBackgroundSessionWasDisconnected = -997; - -const int NSURLErrorBadServerResponse = -1011; - -const int NSURLErrorBadURL = -1000; - -const int NSURLErrorCallIsActive = -1019; - -const int NSURLErrorCancelled = -999; - -const int NSURLErrorCancelledReasonBackgroundUpdatesDisabled = 1; - -const int NSURLErrorCancelledReasonInsufficientSystemResources = 2; - -const int NSURLErrorCancelledReasonUserForceQuitApplication = 0; - -const int NSURLErrorCannotCloseFile = -3002; - -const int NSURLErrorCannotConnectToHost = -1004; - -const int NSURLErrorCannotCreateFile = -3000; - -const int NSURLErrorCannotDecodeContentData = -1016; - -const int NSURLErrorCannotDecodeRawData = -1015; - -const int NSURLErrorCannotFindHost = -1003; - -const int NSURLErrorCannotLoadFromNetwork = -2000; - -const int NSURLErrorCannotMoveFile = -3005; - -const int NSURLErrorCannotOpenFile = -3001; - -const int NSURLErrorCannotParseResponse = -1017; - -const int NSURLErrorCannotRemoveFile = -3004; - -const int NSURLErrorCannotWriteToFile = -3003; - -const int NSURLErrorClientCertificateRejected = -1205; - -const int NSURLErrorClientCertificateRequired = -1206; - -const int NSURLErrorDNSLookupFailed = -1006; - -const int NSURLErrorDataLengthExceedsMaximum = -1103; - -const int NSURLErrorDataNotAllowed = -1020; - -const int NSURLErrorDownloadDecodingFailedMidStream = -3006; - -const int NSURLErrorDownloadDecodingFailedToComplete = -3007; - -const int NSURLErrorFileDoesNotExist = -1100; - -const int NSURLErrorFileIsDirectory = -1101; - -const int NSURLErrorFileOutsideSafeArea = -1104; - -const int NSURLErrorHTTPTooManyRedirects = -1007; - -const int NSURLErrorInternationalRoamingOff = -1018; - -const int NSURLErrorNetworkConnectionLost = -1005; - -enum NSURLErrorNetworkUnavailableReason { - NSURLErrorNetworkUnavailableReasonCellular(0), - NSURLErrorNetworkUnavailableReasonExpensive(1), - NSURLErrorNetworkUnavailableReasonConstrained(2); - - final int value; - const NSURLErrorNetworkUnavailableReason(this.value); - - static NSURLErrorNetworkUnavailableReason fromValue(int value) => - switch (value) { - 0 => NSURLErrorNetworkUnavailableReasonCellular, - 1 => NSURLErrorNetworkUnavailableReasonExpensive, - 2 => NSURLErrorNetworkUnavailableReasonConstrained, - _ => throw ArgumentError( - 'Unknown value for NSURLErrorNetworkUnavailableReason: $value', - ), - }; -} - -const int NSURLErrorNoPermissionsToReadFile = -1102; - -const int NSURLErrorNotConnectedToInternet = -1009; - -const int NSURLErrorRedirectToNonExistentLocation = -1010; - -const int NSURLErrorRequestBodyStreamExhausted = -1021; - -const int NSURLErrorResourceUnavailable = -1008; - -const int NSURLErrorSecureConnectionFailed = -1200; - -const int NSURLErrorServerCertificateHasBadDate = -1201; - -const int NSURLErrorServerCertificateHasUnknownRoot = -1203; - -const int NSURLErrorServerCertificateNotYetValid = -1204; - -const int NSURLErrorServerCertificateUntrusted = -1202; - -const int NSURLErrorTimedOut = -1001; - -const int NSURLErrorUnknown = -1; - -const int NSURLErrorUnsupportedURL = -1002; - -const int NSURLErrorUserAuthenticationRequired = -1013; - -const int NSURLErrorUserCancelledAuthentication = -1012; - -const int NSURLErrorZeroByteResource = -1014; - -typedef NSURLFileProtectionType = ffi.Pointer; -typedef DartNSURLFileProtectionType = objc.NSString; -typedef NSURLFileResourceType = ffi.Pointer; -typedef DartNSURLFileResourceType = objc.NSString; - -/// NSURLHandleClient -@Deprecated('Deprecated') -extension type NSURLHandleClient._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSURLHandleClient] that points to the same underlying object as [other]. - NSURLHandleClient.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLHandleClient] that wraps the given raw object pointer. - NSURLHandleClient.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLHandleClient]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLHandleClient, - ); - } -} - -extension NSURLHandleClient$Methods on NSURLHandleClient { - /// URLHandle:resourceDataDidBecomeAvailable: - @Deprecated('Deprecated') - void URLHandle( - objc.NSURLHandle sender, { - required objc.NSData resourceDataDidBecomeAvailable, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = resourceDataDidBecomeAvailable.ref; - objc.checkOsVersionInternal( - 'NSURLHandleClient.URLHandle:resourceDataDidBecomeAvailable:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLHandle_resourceDataDidBecomeAvailable_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLHandle:resourceDidFailLoadingWithReason: - @Deprecated('Deprecated') - void URLHandle$1( - objc.NSURLHandle sender, { - required objc.NSString resourceDidFailLoadingWithReason, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - final _$$ref$2 = resourceDidFailLoadingWithReason.ref; - objc.checkOsVersionInternal( - 'NSURLHandleClient.URLHandle:resourceDidFailLoadingWithReason:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLHandle_resourceDidFailLoadingWithReason_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLHandleResourceDidBeginLoading: - @Deprecated('Deprecated') - void URLHandleResourceDidBeginLoading(objc.NSURLHandle sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSURLHandleClient.URLHandleResourceDidBeginLoading:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLHandleResourceDidBeginLoading_, - _$$ref$1.pointer, - ); - } - - /// URLHandleResourceDidCancelLoading: - @Deprecated('Deprecated') - void URLHandleResourceDidCancelLoading(objc.NSURLHandle sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSURLHandleClient.URLHandleResourceDidCancelLoading:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLHandleResourceDidCancelLoading_, - _$$ref$1.pointer, - ); - } - - /// URLHandleResourceDidFinishLoading: - @Deprecated('Deprecated') - void URLHandleResourceDidFinishLoading(objc.NSURLHandle sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender.ref; - objc.checkOsVersionInternal( - 'NSURLHandleClient.URLHandleResourceDidFinishLoading:', - iOS: (true, null), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLHandleResourceDidFinishLoading_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLHandleClient$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLHandleClient.cast()); - - /// Builds an object that implements the NSURLHandleClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLHandleClient implement({ - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implement( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implement( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidBeginLoading_.implement( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidCancelLoading_.implement( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidFinishLoading_.implement( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLHandleClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLHandleClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implement( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implement( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidBeginLoading_.implement( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidCancelLoading_.implement( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder.URLHandleResourceDidFinishLoading_.implement( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLHandleClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLHandleClient implementAsListener({ - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implementAsListener( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implementAsListener( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidBeginLoading_.implementAsListener( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidCancelLoading_.implementAsListener( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidFinishLoading_.implementAsListener( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLHandleClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLHandleClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implementAsListener( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implementAsListener( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidBeginLoading_.implementAsListener( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidCancelLoading_.implementAsListener( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidFinishLoading_.implementAsListener( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLHandleClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLHandleClient implementAsBlocking({ - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLHandleClient'); - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implementAsBlocking( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implementAsBlocking( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidBeginLoading_.implementAsBlocking( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidCancelLoading_.implementAsBlocking( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidFinishLoading_.implementAsBlocking( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLHandleClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLHandleClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSURLHandle, objc.NSData) - URLHandle_resourceDataDidBecomeAvailable_, - required void Function(objc.NSURLHandle, objc.NSString) - URLHandle_resourceDidFailLoadingWithReason_, - required void Function(objc.NSURLHandle) URLHandleResourceDidBeginLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidCancelLoading_, - required void Function(objc.NSURLHandle) URLHandleResourceDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLHandleClient$Builder - .URLHandle_resourceDataDidBecomeAvailable_.implementAsBlocking( - builder, - URLHandle_resourceDataDidBecomeAvailable_, - ); - NSURLHandleClient$Builder - .URLHandle_resourceDidFailLoadingWithReason_.implementAsBlocking( - builder, - URLHandle_resourceDidFailLoadingWithReason_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidBeginLoading_.implementAsBlocking( - builder, - URLHandleResourceDidBeginLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidCancelLoading_.implementAsBlocking( - builder, - URLHandleResourceDidCancelLoading_, - ); - NSURLHandleClient$Builder - .URLHandleResourceDidFinishLoading_.implementAsBlocking( - builder, - URLHandleResourceDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// URLHandle:resourceDataDidBecomeAvailable: - static final URLHandle_resourceDataDidBecomeAvailable_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSURLHandle, objc.NSData) - >( - _protocol_NSURLHandleClient, - _sel_URLHandle_resourceDataDidBecomeAvailable_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLHandleClient, - _sel_URLHandle_resourceDataDidBecomeAvailable_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSURLHandle, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.fromFunction( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSURLHandle, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.listener( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSURLHandle, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData.blocking( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSData arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLHandle:resourceDidFailLoadingWithReason: - static final URLHandle_resourceDidFailLoadingWithReason_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSURLHandle, objc.NSString) - >( - _protocol_NSURLHandleClient, - _sel_URLHandle_resourceDidFailLoadingWithReason_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLHandleClient, - _sel_URLHandle_resourceDidFailLoadingWithReason_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSURLHandle, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.fromFunction( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSURLHandle, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.listener( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSURLHandle, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString.blocking( - ( - ffi.Pointer _, - objc.NSURLHandle arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLHandleResourceDidBeginLoading: - static final URLHandleResourceDidBeginLoading_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidBeginLoading_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidBeginLoading_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - ); - - /// URLHandleResourceDidCancelLoading: - static final URLHandleResourceDidCancelLoading_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidCancelLoading_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidCancelLoading_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - ); - - /// URLHandleResourceDidFinishLoading: - static final URLHandleResourceDidFinishLoading_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidFinishLoading_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLHandleClient, - _sel_URLHandleResourceDidFinishLoading_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.fromFunction( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.listener( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - (void Function(objc.NSURLHandle) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLHandle.blocking( - (ffi.Pointer _, objc.NSURLHandle arg1) => func(arg1), - ), - ); -} - -/// NSURLLoading -extension NSURLLoading on objc.NSURL { - /// URLHandleUsingCache: - @Deprecated('Use NSURLConnection instead') - objc.NSURLHandle? URLHandleUsingCache(bool shouldUseCache) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLHandleUsingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1t6aok9( - _$$ref.pointer, - _sel_URLHandleUsingCache_, - shouldUseCache, - ); - return $ret.address == 0 - ? null - : objc.NSURLHandle.fromPointer($ret, retain: true, release: true); - } - - /// loadResourceDataNotifyingClient:usingCache: - @Deprecated('Use NSURLConnection instead') - void loadResourceDataNotifyingClient( - objc.ObjCObject client, { - required bool usingCache, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = client.ref; - objc.checkOsVersionInternal( - 'NSURL.loadResourceDataNotifyingClient:usingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_6p7ndb( - _$$ref.pointer, - _sel_loadResourceDataNotifyingClient_usingCache_, - _$$ref$1.pointer, - usingCache, - ); - } - - /// propertyForKey: - @Deprecated('Use NSURLConnection instead') - objc.ObjCObject? propertyForKey(objc.NSString propertyKey) { - final _$$ref = object$.ref; - final _$$ref$1 = propertyKey.ref; - objc.checkOsVersionInternal( - 'NSURL.propertyForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_propertyForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// resourceDataUsingCache: - @Deprecated('Use NSURLConnection instead') - objc.NSData? resourceDataUsingCache(bool shouldUseCache) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.resourceDataUsingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1t6aok9( - _$$ref.pointer, - _sel_resourceDataUsingCache_, - shouldUseCache, - ); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// setProperty:forKey: - @Deprecated('Use NSURLConnection instead') - bool setProperty(objc.ObjCObject property, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = property.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSURL.setProperty:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_setProperty_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// setResourceData: - @Deprecated('Use NSURLConnection instead') - bool setResourceData(objc.NSData data) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - objc.checkOsVersionInternal( - 'NSURL.setResourceData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_setResourceData_, - _$$ref$1.pointer, - ); - } -} - -/// NSURLPathUtilities -extension NSURLPathUtilities on objc.NSURL { - /// URLByAppendingPathComponent: - objc.NSURL? URLByAppendingPathComponent(objc.NSString pathComponent) { - final _$$ref = object$.ref; - final _$$ref$1 = pathComponent.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathComponent:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_URLByAppendingPathComponent_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByAppendingPathComponent:isDirectory: - objc.NSURL? URLByAppendingPathComponent$1( - objc.NSString pathComponent, { - required bool isDirectory, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = pathComponent.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathComponent:isDirectory:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.pointer, - _sel_URLByAppendingPathComponent_isDirectory_, - _$$ref$1.pointer, - isDirectory, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByAppendingPathExtension: - objc.NSURL? URLByAppendingPathExtension(objc.NSString pathExtension) { - final _$$ref = object$.ref; - final _$$ref$1 = pathExtension.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathExtension:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_URLByAppendingPathExtension_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByDeletingLastPathComponent - objc.NSURL? get URLByDeletingLastPathComponent { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByDeletingLastPathComponent', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByDeletingLastPathComponent, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByDeletingPathExtension - objc.NSURL? get URLByDeletingPathExtension { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByDeletingPathExtension', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByDeletingPathExtension, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByResolvingSymlinksInPath - objc.NSURL? get URLByResolvingSymlinksInPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByResolvingSymlinksInPath', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByResolvingSymlinksInPath, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByStandardizingPath - objc.NSURL? get URLByStandardizingPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByStandardizingPath', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByStandardizingPath, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// checkResourceIsReachableAndReturnError: - bool checkResourceIsReachableAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.checkResourceIsReachableAndReturnError:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1dom33q( - _$$ref.pointer, - _sel_checkResourceIsReachableAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// lastPathComponent - objc.NSString? get lastPathComponent { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.lastPathComponent', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// pathComponents - objc.NSArray? get pathComponents { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.pathComponents', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// pathExtension - objc.NSString? get pathExtension { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.pathExtension', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// fileURLWithPathComponents: - static objc.NSURL? fileURLWithPathComponents(objc.NSArray components) { - final _$$ref = components.ref; - objc.checkOsVersionInternal( - 'NSURL.fileURLWithPathComponents:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSURL, - _sel_fileURLWithPathComponents_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSURLProtectionSpace is a stub. To generate bindings for this class, include -/// NSURLProtectionSpace in your config's objc-interfaces list. -/// -/// NSURLProtectionSpace -extension type NSURLProtectionSpace._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSURLProtectionSpace] that points to the same underlying object as [other]. - NSURLProtectionSpace.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLProtectionSpace', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLProtectionSpace] that wraps the given raw object pointer. - NSURLProtectionSpace.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLProtectionSpace', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// WARNING: NSURLProtocol is a stub. To generate bindings for this class, include -/// NSURLProtocol in your config's objc-interfaces list. -/// -/// NSURLProtocol -extension type NSURLProtocol._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLProtocol] that points to the same underlying object as [other]. - NSURLProtocol.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLProtocol', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLProtocol] that wraps the given raw object pointer. - NSURLProtocol.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLProtocol', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// NSURLProtocolClient -extension type NSURLProtocolClient._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSURLProtocolClient] that points to the same underlying object as [other]. - NSURLProtocolClient.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLProtocolClient] that wraps the given raw object pointer. - NSURLProtocolClient.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLProtocolClient]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLProtocolClient, - ); - } -} - -extension NSURLProtocolClient$Methods on NSURLProtocolClient { - /// URLProtocol:cachedResponseIsValid: - void URLProtocol( - NSURLProtocol protocol, { - required NSCachedURLResponse cachedResponseIsValid, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = cachedResponseIsValid.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:cachedResponseIsValid:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLProtocol_cachedResponseIsValid_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLProtocol:didCancelAuthenticationChallenge: - void URLProtocol$1( - NSURLProtocol protocol, { - required NSURLAuthenticationChallenge didCancelAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = didCancelAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:didCancelAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLProtocol_didCancelAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLProtocol:didFailWithError: - void URLProtocol$2( - NSURLProtocol protocol, { - required objc.NSError didFailWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = didFailWithError.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:didFailWithError:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLProtocol_didFailWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLProtocol:didLoadData: - void URLProtocol$3( - NSURLProtocol protocol, { - required objc.NSData didLoadData, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = didLoadData.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:didLoadData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLProtocol_didLoadData_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLProtocol:didReceiveAuthenticationChallenge: - void URLProtocol$4( - NSURLProtocol protocol, { - required NSURLAuthenticationChallenge didReceiveAuthenticationChallenge, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = didReceiveAuthenticationChallenge.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:didReceiveAuthenticationChallenge:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLProtocol_didReceiveAuthenticationChallenge_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLProtocol:didReceiveResponse:cacheStoragePolicy: - void URLProtocol$5( - NSURLProtocol protocol, { - required NSURLResponse didReceiveResponse, - required NSURLCacheStoragePolicy cacheStoragePolicy, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = didReceiveResponse.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:didReceiveResponse:cacheStoragePolicy:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_1mik4ys( - _$$ref.pointer, - _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, - _$$ref$1.pointer, - _$$ref$2.pointer, - cacheStoragePolicy.value, - ); - } - - /// URLProtocol:wasRedirectedToRequest:redirectResponse: - void URLProtocol$6( - NSURLProtocol protocol, { - required NSURLRequest wasRedirectedToRequest, - required NSURLResponse redirectResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - final _$$ref$2 = wasRedirectedToRequest.ref; - final _$$ref$3 = redirectResponse.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocol:wasRedirectedToRequest:redirectResponse:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLProtocolDidFinishLoading: - void URLProtocolDidFinishLoading(NSURLProtocol protocol) { - final _$$ref = object$.ref; - final _$$ref$1 = protocol.ref; - objc.checkOsVersionInternal( - 'NSURLProtocolClient.URLProtocolDidFinishLoading:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLProtocolDidFinishLoading_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLProtocolClient$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLProtocolClient.cast()); - - /// Builds an object that implements the NSURLProtocolClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLProtocolClient implement({ - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); - NSURLProtocolClient$Builder.URLProtocol_cachedResponseIsValid_.implement( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implement( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder.URLProtocol_didFailWithError_.implement( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implement( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implement( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implement( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implement( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder.URLProtocolDidFinishLoading_.implement( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLProtocolClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLProtocolClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLProtocolClient$Builder.URLProtocol_cachedResponseIsValid_.implement( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implement( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder.URLProtocol_didFailWithError_.implement( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implement( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implement( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implement( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implement( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder.URLProtocolDidFinishLoading_.implement( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLProtocolClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLProtocolClient implementAsListener({ - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); - NSURLProtocolClient$Builder - .URLProtocol_cachedResponseIsValid_.implementAsListener( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implementAsListener( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didFailWithError_.implementAsListener( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsListener( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implementAsListener( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsListener( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsListener( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder - .URLProtocolDidFinishLoading_.implementAsListener( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLProtocolClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLProtocolClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLProtocolClient$Builder - .URLProtocol_cachedResponseIsValid_.implementAsListener( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implementAsListener( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didFailWithError_.implementAsListener( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsListener( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implementAsListener( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsListener( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsListener( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder - .URLProtocolDidFinishLoading_.implementAsListener( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLProtocolClient protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLProtocolClient implementAsBlocking({ - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLProtocolClient'); - NSURLProtocolClient$Builder - .URLProtocol_cachedResponseIsValid_.implementAsBlocking( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implementAsBlocking( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didFailWithError_.implementAsBlocking( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsBlocking( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implementAsBlocking( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsBlocking( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsBlocking( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder - .URLProtocolDidFinishLoading_.implementAsBlocking( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - return NSURLProtocolClient.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLProtocolClient protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(NSURLProtocol, NSCachedURLResponse) - URLProtocol_cachedResponseIsValid_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didCancelAuthenticationChallenge_, - required void Function(NSURLProtocol, objc.NSError) - URLProtocol_didFailWithError_, - required void Function(NSURLProtocol, objc.NSData) URLProtocol_didLoadData_, - required void Function(NSURLProtocol, NSURLAuthenticationChallenge) - URLProtocol_didReceiveAuthenticationChallenge_, - required void Function( - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - required void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - URLProtocol_wasRedirectedToRequest_redirectResponse_, - required void Function(NSURLProtocol) URLProtocolDidFinishLoading_, - bool $keepIsolateAlive = true, - }) { - NSURLProtocolClient$Builder - .URLProtocol_cachedResponseIsValid_.implementAsBlocking( - builder, - URLProtocol_cachedResponseIsValid_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didCancelAuthenticationChallenge_.implementAsBlocking( - builder, - URLProtocol_didCancelAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didFailWithError_.implementAsBlocking( - builder, - URLProtocol_didFailWithError_, - ); - NSURLProtocolClient$Builder.URLProtocol_didLoadData_.implementAsBlocking( - builder, - URLProtocol_didLoadData_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveAuthenticationChallenge_.implementAsBlocking( - builder, - URLProtocol_didReceiveAuthenticationChallenge_, - ); - NSURLProtocolClient$Builder - .URLProtocol_didReceiveResponse_cacheStoragePolicy_.implementAsBlocking( - builder, - URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ); - NSURLProtocolClient$Builder - .URLProtocol_wasRedirectedToRequest_redirectResponse_.implementAsBlocking( - builder, - URLProtocol_wasRedirectedToRequest_redirectResponse_, - ); - NSURLProtocolClient$Builder - .URLProtocolDidFinishLoading_.implementAsBlocking( - builder, - URLProtocolDidFinishLoading_, - ); - builder.addProtocol($protocol); - } - - /// URLProtocol:cachedResponseIsValid: - static final URLProtocol_cachedResponseIsValid_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, NSCachedURLResponse) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_cachedResponseIsValid_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_cachedResponseIsValid_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, NSCachedURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSCachedURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSCachedURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSCachedURLResponse arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSCachedURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSCachedURLResponse arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLProtocol:didCancelAuthenticationChallenge: - static final URLProtocol_didCancelAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, NSURLAuthenticationChallenge) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didCancelAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didCancelAuthenticationChallenge_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLProtocol:didFailWithError: - static final URLProtocol_didFailWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, objc.NSError) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didFailWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didFailWithError_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - objc.NSError arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLProtocol:didLoadData: - static final URLProtocol_didLoadData_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, objc.NSData) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didLoadData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didLoadData_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.fromFunction( - (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSURLProtocol, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.listener( - (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSURLProtocol, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData.blocking( - (ffi.Pointer _, NSURLProtocol arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - ); - - /// URLProtocol:didReceiveAuthenticationChallenge: - static final URLProtocol_didReceiveAuthenticationChallenge_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, NSURLAuthenticationChallenge) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didReceiveAuthenticationChallenge_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didReceiveAuthenticationChallenge_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLProtocol, NSURLAuthenticationChallenge) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLProtocol:didReceiveResponse:cacheStoragePolicy: - static final URLProtocol_didReceiveResponse_cacheStoragePolicy_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >(_1uu024u_protocolTrampoline_1j7coyk) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_, - isRequired: true, - isInstanceMethod: true, - ), - ( - void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLResponse arg2, - NSURLCacheStoragePolicy arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLResponse arg2, - NSURLCacheStoragePolicy arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLProtocol, NSURLResponse, NSURLCacheStoragePolicy) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLResponse arg2, - NSURLCacheStoragePolicy arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLProtocol:wasRedirectedToRequest:redirectResponse: - static final URLProtocol_wasRedirectedToRequest_redirectResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLProtocol, NSURLRequest, NSURLResponse) - >( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLRequest arg2, - NSURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.listener( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLRequest arg2, - NSURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLProtocol, NSURLRequest, NSURLResponse) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse.blocking( - ( - ffi.Pointer _, - NSURLProtocol arg1, - NSURLRequest arg2, - NSURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLProtocolDidFinishLoading: - static final URLProtocolDidFinishLoading_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLProtocolClient, - _sel_URLProtocolDidFinishLoading_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLProtocolClient, - _sel_URLProtocolDidFinishLoading_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSURLProtocol) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.fromFunction( - (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), - ), - (void Function(NSURLProtocol) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.listener( - (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), - ), - (void Function(NSURLProtocol) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol.blocking( - (ffi.Pointer _, NSURLProtocol arg1) => func(arg1), - ), - ); -} - -enum NSURLRelationship { - NSURLRelationshipContains(0), - NSURLRelationshipSame(1), - NSURLRelationshipOther(2); - - final int value; - const NSURLRelationship(this.value); - - static NSURLRelationship fromValue(int value) => switch (value) { - 0 => NSURLRelationshipContains, - 1 => NSURLRelationshipSame, - 2 => NSURLRelationshipOther, - _ => throw ArgumentError('Unknown value for NSURLRelationship: $value'), - }; -} - -/// WARNING: NSURLRequest is a stub. To generate bindings for this class, include -/// NSURLRequest in your config's objc-interfaces list. -/// -/// NSURLRequest -extension type NSURLRequest._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying, - objc.NSMutableCopying { - /// Constructs a [NSURLRequest] that points to the same underlying object as [other]. - NSURLRequest.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLRequest] that wraps the given raw object pointer. - NSURLRequest.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLRequest', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -enum NSURLRequestAttribution { - NSURLRequestAttributionDeveloper(0), - NSURLRequestAttributionUser(1); - - final int value; - const NSURLRequestAttribution(this.value); - - static NSURLRequestAttribution fromValue(int value) => switch (value) { - 0 => NSURLRequestAttributionDeveloper, - 1 => NSURLRequestAttributionUser, - _ => throw ArgumentError( - 'Unknown value for NSURLRequestAttribution: $value', - ), - }; -} - -enum NSURLRequestCachePolicy { - NSURLRequestUseProtocolCachePolicy(0), - NSURLRequestReloadIgnoringLocalCacheData(1), - NSURLRequestReloadIgnoringLocalAndRemoteCacheData(4), - NSURLRequestReturnCacheDataElseLoad(2), - NSURLRequestReturnCacheDataDontLoad(3), - NSURLRequestReloadRevalidatingCacheData(5); - - static const NSURLRequestReloadIgnoringCacheData = - NSURLRequestReloadIgnoringLocalCacheData; - - final int value; - const NSURLRequestCachePolicy(this.value); - - static NSURLRequestCachePolicy fromValue(int value) => switch (value) { - 0 => NSURLRequestUseProtocolCachePolicy, - 1 => NSURLRequestReloadIgnoringLocalCacheData, - 4 => NSURLRequestReloadIgnoringLocalAndRemoteCacheData, - 2 => NSURLRequestReturnCacheDataElseLoad, - 3 => NSURLRequestReturnCacheDataDontLoad, - 5 => NSURLRequestReloadRevalidatingCacheData, - _ => throw ArgumentError( - 'Unknown value for NSURLRequestCachePolicy: $value', - ), - }; - - @override - String toString() { - if (this == NSURLRequestReloadIgnoringLocalCacheData) - return "NSURLRequestCachePolicy.NSURLRequestReloadIgnoringLocalCacheData, NSURLRequestCachePolicy.NSURLRequestReloadIgnoringCacheData"; - return super.toString(); - } -} - -enum NSURLRequestNetworkServiceType { - NSURLNetworkServiceTypeDefault(0), - NSURLNetworkServiceTypeVoIP(1), - NSURLNetworkServiceTypeVideo(2), - NSURLNetworkServiceTypeBackground(3), - NSURLNetworkServiceTypeVoice(4), - NSURLNetworkServiceTypeResponsiveData(6), - NSURLNetworkServiceTypeAVStreaming(8), - NSURLNetworkServiceTypeResponsiveAV(9), - NSURLNetworkServiceTypeCallSignaling(11); - - final int value; - const NSURLRequestNetworkServiceType(this.value); - - static NSURLRequestNetworkServiceType fromValue(int value) => switch (value) { - 0 => NSURLNetworkServiceTypeDefault, - 1 => NSURLNetworkServiceTypeVoIP, - 2 => NSURLNetworkServiceTypeVideo, - 3 => NSURLNetworkServiceTypeBackground, - 4 => NSURLNetworkServiceTypeVoice, - 6 => NSURLNetworkServiceTypeResponsiveData, - 8 => NSURLNetworkServiceTypeAVStreaming, - 9 => NSURLNetworkServiceTypeResponsiveAV, - 11 => NSURLNetworkServiceTypeCallSignaling, - _ => throw ArgumentError( - 'Unknown value for NSURLRequestNetworkServiceType: $value', - ), - }; -} - -typedef NSURLResourceKey = ffi.Pointer; -typedef DartNSURLResourceKey = objc.NSString; - -/// WARNING: NSURLResponse is a stub. To generate bindings for this class, include -/// NSURLResponse in your config's objc-interfaces list. -/// -/// NSURLResponse -extension type NSURLResponse._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSURLResponse] that points to the same underlying object as [other]. - NSURLResponse.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } - - /// Constructs a [NSURLResponse] that wraps the given raw object pointer. - NSURLResponse.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLResponse', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - } -} - -/// WARNING: NSURLSession is a stub. To generate bindings for this class, include -/// NSURLSession in your config's objc-interfaces list. -/// -/// NSURLSession -extension type NSURLSession._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLSession] that points to the same underlying object as [other]. - NSURLSession.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSession', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSession] that wraps the given raw object pointer. - NSURLSession.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSession', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -/// NSURLSessionAsynchronousConvenience -extension NSURLSessionAsynchronousConvenience on NSURLSession { - /// dataTaskWithRequest:completionHandler: - NSURLSessionDataTask dataTaskWithRequest( - NSURLRequest request, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = request.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.dataTaskWithRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_dataTaskWithRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - /// dataTaskWithURL:completionHandler: - NSURLSessionDataTask dataTaskWithURL( - objc.NSURL url, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.dataTaskWithURL:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_dataTaskWithURL_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - /// downloadTaskWithRequest:completionHandler: - NSURLSessionDownloadTask downloadTaskWithRequest( - NSURLRequest request, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = request.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.downloadTaskWithRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_downloadTaskWithRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// downloadTaskWithResumeData:completionHandler: - NSURLSessionDownloadTask downloadTaskWithResumeData( - objc.NSData resumeData, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = resumeData.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.downloadTaskWithResumeData:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_downloadTaskWithResumeData_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// downloadTaskWithURL:completionHandler: - NSURLSessionDownloadTask downloadTaskWithURL( - objc.NSURL url, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.downloadTaskWithURL:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_downloadTaskWithURL_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// uploadTaskWithRequest:fromData:completionHandler: - NSURLSessionUploadTask uploadTaskWithRequest( - NSURLRequest request, { - objc.NSData? fromData, - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = request.ref; - final _$$ref$2 = fromData?.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.uploadTaskWithRequest:fromData:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_2wiv66( - _$$ref.pointer, - _sel_uploadTaskWithRequest_fromData_completionHandler_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3.pointer, - ); - return NSURLSessionUploadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// uploadTaskWithRequest:fromFile:completionHandler: - NSURLSessionUploadTask uploadTaskWithRequest$1( - NSURLRequest request, { - required objc.NSURL fromFile, - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = request.ref; - final _$$ref$2 = fromFile.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.uploadTaskWithRequest:fromFile:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_2wiv66( - _$$ref.pointer, - _sel_uploadTaskWithRequest_fromFile_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - return NSURLSessionUploadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// uploadTaskWithResumeData:completionHandler: - NSURLSessionUploadTask uploadTaskWithResumeData( - objc.NSData resumeData, { - required objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = resumeData.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSession.uploadTaskWithResumeData:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_uploadTaskWithResumeData_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return NSURLSessionUploadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -enum NSURLSessionAuthChallengeDisposition { - NSURLSessionAuthChallengeUseCredential(0), - NSURLSessionAuthChallengePerformDefaultHandling(1), - NSURLSessionAuthChallengeCancelAuthenticationChallenge(2), - NSURLSessionAuthChallengeRejectProtectionSpace(3); - - final int value; - const NSURLSessionAuthChallengeDisposition(this.value); - - static NSURLSessionAuthChallengeDisposition fromValue(int value) => - switch (value) { - 0 => NSURLSessionAuthChallengeUseCredential, - 1 => NSURLSessionAuthChallengePerformDefaultHandling, - 2 => NSURLSessionAuthChallengeCancelAuthenticationChallenge, - 3 => NSURLSessionAuthChallengeRejectProtectionSpace, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionAuthChallengeDisposition: $value', - ), - }; -} - -/// WARNING: NSURLSessionConfiguration is a stub. To generate bindings for this class, include -/// NSURLSessionConfiguration in your config's objc-interfaces list. -/// -/// NSURLSessionConfiguration -extension type NSURLSessionConfiguration._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCopying { - /// Constructs a [NSURLSessionConfiguration] that points to the same underlying object as [other]. - NSURLSessionConfiguration.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionConfiguration', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSessionConfiguration] that wraps the given raw object pointer. - NSURLSessionConfiguration.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionConfiguration', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -/// NSURLSessionDataDelegate -extension type NSURLSessionDataDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLSessionTaskDelegate { - /// Constructs a [NSURLSessionDataDelegate] that points to the same underlying object as [other]. - NSURLSessionDataDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionDataDelegate] that wraps the given raw object pointer. - NSURLSessionDataDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionDataDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionDataDelegate, - ); - } -} - -extension NSURLSessionDataDelegate$Methods on NSURLSessionDataDelegate { - /// URLSession:dataTask:didBecomeDownloadTask: - void URLSession( - NSURLSession session, { - required NSURLSessionDataTask dataTask, - required NSURLSessionDownloadTask didBecomeDownloadTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = dataTask.ref; - final _$$ref$3 = didBecomeDownloadTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:dataTask:didBecomeDownloadTask:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_dataTask_didBecomeDownloadTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:dataTask:didBecomeDownloadTask:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_dataTask_didBecomeDownloadTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:dataTask:didBecomeStreamTask: - void URLSession$1( - NSURLSession session, { - required NSURLSessionDataTask dataTask, - required NSURLSessionStreamTask didBecomeStreamTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = dataTask.ref; - final _$$ref$3 = didBecomeStreamTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:dataTask:didBecomeStreamTask:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_dataTask_didBecomeStreamTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:dataTask:didBecomeStreamTask:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_dataTask_didBecomeStreamTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:dataTask:didReceiveData: - void URLSession$2( - NSURLSession session, { - required NSURLSessionDataTask dataTask, - required objc.NSData didReceiveData, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = dataTask.ref; - final _$$ref$3 = didReceiveData.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:dataTask:didReceiveData:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_dataTask_didReceiveData_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:dataTask:didReceiveData:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_dataTask_didReceiveData_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:dataTask:didReceiveResponse:completionHandler: - void URLSession$3( - NSURLSession session, { - required NSURLSessionDataTask dataTask, - required NSURLResponse didReceiveResponse, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = dataTask.ref; - final _$$ref$3 = didReceiveResponse.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:dataTask:didReceiveResponse:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:dataTask:didReceiveResponse:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:dataTask:willCacheResponse:completionHandler: - void URLSession$4( - NSURLSession session, { - required NSURLSessionDataTask dataTask, - required NSCachedURLResponse willCacheResponse, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = dataTask.ref; - final _$$ref$3 = willCacheResponse.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:dataTask:willCacheResponse:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_dataTask_willCacheResponse_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:dataTask:willCacheResponse:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_dataTask_willCacheResponse_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:didBecomeInvalidWithError: - void URLSession$5( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didCreateTask: - void URLSession$6( - NSURLSession session, { - required NSURLSessionTask didCreateTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didCreateTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:didCreateTask:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:didCreateTask:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$7( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didCompleteWithError: - void URLSession$8( - NSURLSession session, { - required NSURLSessionTask task, - objc.NSError? didCompleteWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didCompleteWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:didCompleteWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:didCompleteWithError:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:task:didFinishCollectingMetrics: - void URLSession$9( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLSessionTaskMetrics didFinishCollectingMetrics, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didFinishCollectingMetrics.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:didFinishCollectingMetrics:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:didFinishCollectingMetrics:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didReceiveChallenge:completionHandler: - void URLSession$10( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveChallenge.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didReceiveInformationalResponse: - void URLSession$11( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse didReceiveInformationalResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveInformationalResponse.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:didReceiveInformationalResponse:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:didReceiveInformationalResponse:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - void URLSession$12( - NSURLSession session, { - required NSURLSessionTask task, - required int didSendBodyData, - required int totalBytesSent, - required int totalBytesExpectedToSend, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - ); - } - _objc_msgSend_1modw1b( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didSendBodyData, - totalBytesSent, - totalBytesExpectedToSend, - ); - } - - /// URLSession:task:needNewBodyStream: - void URLSession$13( - NSURLSession session, { - required NSURLSessionTask task, - required objc.ObjCBlock - needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:needNewBodyStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:needNewBodyStream:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - void URLSession$14( - NSURLSession session, { - required NSURLSessionTask task, - required int needNewBodyStreamFromOffset, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - ); - } - _objc_msgSend_9cddqw( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - needNewBodyStreamFromOffset, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - void URLSession$15( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLRequest willBeginDelayedRequest, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willBeginDelayedRequest.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:willBeginDelayedRequest:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - void URLSession$16( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse willPerformHTTPRedirection, - required NSURLRequest newRequest, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willPerformHTTPRedirection.ref; - final _$$ref$4 = newRequest.ref; - final _$$ref$5 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - ); - } - _objc_msgSend_e1wgee( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - _$$ref$5.pointer, - ); - } - - /// URLSession:taskIsWaitingForConnectivity: - void URLSession$17( - NSURLSession session, { - required NSURLSessionTask taskIsWaitingForConnectivity, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = taskIsWaitingForConnectivity.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSession:taskIsWaitingForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSession:taskIsWaitingForConnectivity:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDataDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDataDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionDataDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionDataDelegate.cast()); - - /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDataDelegate implement({ - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDataDelegate', - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implement( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implement( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implement( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implement( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implement( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implement( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implement( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implement( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implement( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implement( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDataDelegate implementAsListener({ - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDataDelegate', - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implementAsListener( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implementAsListener( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implementAsListener( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsListener( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsListener( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implementAsListener( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implementAsListener( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implementAsListener( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsListener( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsListener( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDataDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDataDelegate implementAsBlocking({ - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDataDelegate', - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implementAsBlocking( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implementAsBlocking( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implementAsBlocking( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsBlocking( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsBlocking( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDataDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDataDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)? - URLSession_dataTask_didBecomeDownloadTask_, - void Function(NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)? - URLSession_dataTask_didBecomeStreamTask_, - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData)? - URLSession_dataTask_didReceiveData_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_didReceiveResponse_completionHandler_, - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - )? - URLSession_dataTask_willCacheResponse_completionHandler_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeDownloadTask_.implementAsBlocking( - builder, - URLSession_dataTask_didBecomeDownloadTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didBecomeStreamTask_.implementAsBlocking( - builder, - URLSession_dataTask_didBecomeStreamTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveData_.implementAsBlocking( - builder, - URLSession_dataTask_didReceiveData_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_didReceiveResponse_completionHandler_.implementAsBlocking( - builder, - URLSession_dataTask_didReceiveResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_dataTask_willCacheResponse_completionHandler_.implementAsBlocking( - builder, - URLSession_dataTask_willCacheResponse_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDataDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDataDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:dataTask:didBecomeDownloadTask: - static final URLSession_dataTask_didBecomeDownloadTask_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeDownloadTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeDownloadTask_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionDownloadTask arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionDownloadTask arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionDownloadTask arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:dataTask:didBecomeStreamTask: - static final URLSession_dataTask_didBecomeStreamTask_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeStreamTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didBecomeStreamTask_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionStreamTask arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionStreamTask arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionStreamTask arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:dataTask:didReceiveData: - static final URLSession_dataTask_didReceiveData_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveData_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveData_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - objc.NSData arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - objc.NSData arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionDataTask, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - objc.NSData arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:dataTask:didReceiveResponse:completionHandler: - static final URLSession_dataTask_didReceiveResponse_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_didReceiveResponse_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:dataTask:willCacheResponse:completionHandler: - static final URLSession_dataTask_willCacheResponse_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_willCacheResponse_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_dataTask_willCacheResponse_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didCreateTask: - static final URLSession_didCreateTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didCompleteWithError: - static final URLSession_task_didCompleteWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didFinishCollectingMetrics: - static final URLSession_task_didFinishCollectingMetrics_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didReceiveChallenge:completionHandler: - static final URLSession_task_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didReceiveInformationalResponse: - static final URLSession_task_didReceiveInformationalResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_h68abb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:needNewBodyStream: - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jyim80) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - static final URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_l2g8ke) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:taskIsWaitingForConnectivity: - static final URLSession_taskIsWaitingForConnectivity_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionDataDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDataDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -/// WARNING: NSURLSessionDataTask is a stub. To generate bindings for this class, include -/// NSURLSessionDataTask in your config's objc-interfaces list. -/// -/// NSURLSessionDataTask -extension type NSURLSessionDataTask._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLSessionTask { - /// Constructs a [NSURLSessionDataTask] that points to the same underlying object as [other]. - NSURLSessionDataTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionDataTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSessionDataTask] that wraps the given raw object pointer. - NSURLSessionDataTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionDataTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -enum NSURLSessionDelayedRequestDisposition { - NSURLSessionDelayedRequestContinueLoading(0), - NSURLSessionDelayedRequestUseNewRequest(1), - NSURLSessionDelayedRequestCancel(2); - - final int value; - const NSURLSessionDelayedRequestDisposition(this.value); - - static NSURLSessionDelayedRequestDisposition fromValue(int value) => - switch (value) { - 0 => NSURLSessionDelayedRequestContinueLoading, - 1 => NSURLSessionDelayedRequestUseNewRequest, - 2 => NSURLSessionDelayedRequestCancel, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionDelayedRequestDisposition: $value', - ), - }; -} - -/// NSURLSessionDelegate -extension type NSURLSessionDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSURLSessionDelegate] that points to the same underlying object as [other]. - NSURLSessionDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionDelegate] that wraps the given raw object pointer. - NSURLSessionDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionDelegate, - ); - } -} - -extension NSURLSessionDelegate$Methods on NSURLSessionDelegate { - /// URLSession:didBecomeInvalidWithError: - void URLSession( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$1( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionDelegate.cast()); - - /// Builds an object that implements the NSURLSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDelegate implement({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDelegate implementAsListener({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDelegate implementAsBlocking({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSURLSessionDelegate'); - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -/// NSURLSessionDeprecated -extension NSURLSessionDeprecated on NSURLSessionConfiguration { - /// backgroundSessionConfiguration: - @Deprecated('Deprecated') - static NSURLSessionConfiguration backgroundSessionConfiguration( - objc.NSString identifier, - ) { - final _$$ref = identifier.ref; - objc.checkOsVersionInternal( - 'NSURLSessionConfiguration.backgroundSessionConfiguration:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSURLSessionConfiguration, - _sel_backgroundSessionConfiguration_, - _$$ref.pointer, - ); - return NSURLSessionConfiguration.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -/// NSURLSessionDownloadDelegate -extension type NSURLSessionDownloadDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLSessionTaskDelegate { - /// Constructs a [NSURLSessionDownloadDelegate] that points to the same underlying object as [other]. - NSURLSessionDownloadDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionDownloadDelegate] that wraps the given raw object pointer. - NSURLSessionDownloadDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionDownloadDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionDownloadDelegate, - ); - } -} - -extension NSURLSessionDownloadDelegate$Methods on NSURLSessionDownloadDelegate { - /// URLSession:didBecomeInvalidWithError: - void URLSession( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didCreateTask: - void URLSession$1( - NSURLSession session, { - required NSURLSessionTask didCreateTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didCreateTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:didCreateTask:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:didCreateTask:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$2( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:downloadTask:didFinishDownloadingToURL: - void URLSession$3( - NSURLSession session, { - required NSURLSessionDownloadTask downloadTask, - required objc.NSURL didFinishDownloadingToURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = downloadTask.ref; - final _$$ref$3 = didFinishDownloadingToURL.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didFinishDownloadingToURL:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_downloadTask_didFinishDownloadingToURL_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes: - void URLSession$4( - NSURLSession session, { - required NSURLSessionDownloadTask downloadTask, - required int didResumeAtOffset, - required int expectedTotalBytes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = downloadTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:', - ); - } - _objc_msgSend_fm5719( - _$$ref.pointer, - _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didResumeAtOffset, - expectedTotalBytes, - ); - } - - /// URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite: - void URLSession$5( - NSURLSession session, { - required NSURLSessionDownloadTask downloadTask, - required int didWriteData, - required int totalBytesWritten, - required int totalBytesExpectedToWrite, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = downloadTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:', - ); - } - _objc_msgSend_1modw1b( - _$$ref.pointer, - _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didWriteData, - totalBytesWritten, - totalBytesExpectedToWrite, - ); - } - - /// URLSession:task:didCompleteWithError: - void URLSession$6( - NSURLSession session, { - required NSURLSessionTask task, - objc.NSError? didCompleteWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didCompleteWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:didCompleteWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:didCompleteWithError:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:task:didFinishCollectingMetrics: - void URLSession$7( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLSessionTaskMetrics didFinishCollectingMetrics, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didFinishCollectingMetrics.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:didFinishCollectingMetrics:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:didFinishCollectingMetrics:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didReceiveChallenge:completionHandler: - void URLSession$8( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveChallenge.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didReceiveInformationalResponse: - void URLSession$9( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse didReceiveInformationalResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveInformationalResponse.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:didReceiveInformationalResponse:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:didReceiveInformationalResponse:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - void URLSession$10( - NSURLSession session, { - required NSURLSessionTask task, - required int didSendBodyData, - required int totalBytesSent, - required int totalBytesExpectedToSend, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - ); - } - _objc_msgSend_1modw1b( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didSendBodyData, - totalBytesSent, - totalBytesExpectedToSend, - ); - } - - /// URLSession:task:needNewBodyStream: - void URLSession$11( - NSURLSession session, { - required NSURLSessionTask task, - required objc.ObjCBlock - needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:needNewBodyStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:needNewBodyStream:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - void URLSession$12( - NSURLSession session, { - required NSURLSessionTask task, - required int needNewBodyStreamFromOffset, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - ); - } - _objc_msgSend_9cddqw( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - needNewBodyStreamFromOffset, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - void URLSession$13( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLRequest willBeginDelayedRequest, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willBeginDelayedRequest.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:willBeginDelayedRequest:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - void URLSession$14( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse willPerformHTTPRedirection, - required NSURLRequest newRequest, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willPerformHTTPRedirection.ref; - final _$$ref$4 = newRequest.ref; - final _$$ref$5 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - ); - } - _objc_msgSend_e1wgee( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - _$$ref$5.pointer, - ); - } - - /// URLSession:taskIsWaitingForConnectivity: - void URLSession$15( - NSURLSession session, { - required NSURLSessionTask taskIsWaitingForConnectivity, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = taskIsWaitingForConnectivity.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSession:taskIsWaitingForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSession:taskIsWaitingForConnectivity:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionDownloadDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionDownloadDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionDownloadDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionDownloadDelegate.cast()); - - /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDownloadDelegate implement({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDownloadDelegate', - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implement( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implement( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implement( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implement( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implement( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implement( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDownloadDelegate implementAsListener({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDownloadDelegate', - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsListener( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsListener( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsListener( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsListener( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsListener( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsListener( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionDownloadDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionDownloadDelegate implementAsBlocking({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionDownloadDelegate', - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsBlocking( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsBlocking( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsBlocking( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionDownloadDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionDownloadDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - required void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - URLSession_downloadTask_didFinishDownloadingToURL_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int)? - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int)? - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionDownloadDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didFinishDownloadingToURL_.implementAsBlocking( - builder, - URLSession_downloadTask_didFinishDownloadingToURL_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_.implementAsBlocking( - builder, - URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_.implementAsBlocking( - builder, - URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionDownloadDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didCreateTask: - static final URLSession_didCreateTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:downloadTask:didFinishDownloadingToURL: - static final URLSession_downloadTask_didFinishDownloadingToURL_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didFinishDownloadingToURL_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didFinishDownloadingToURL_, - isRequired: true, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, objc.NSURL) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - objc.NSURL arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes: - static final URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDownloadTask, int, int) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_ly2579) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite: - static final URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_h68abb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function(NSURLSession, NSURLSessionDownloadTask, int, int, int) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:didCompleteWithError: - static final URLSession_task_didCompleteWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didFinishCollectingMetrics: - static final URLSession_task_didFinishCollectingMetrics_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didReceiveChallenge:completionHandler: - static final URLSession_task_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didReceiveInformationalResponse: - static final URLSession_task_didReceiveInformationalResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_h68abb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:needNewBodyStream: - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jyim80) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - static final URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_l2g8ke) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:taskIsWaitingForConnectivity: - static final URLSession_taskIsWaitingForConnectivity_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionDownloadDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -/// WARNING: NSURLSessionDownloadTask is a stub. To generate bindings for this class, include -/// NSURLSessionDownloadTask in your config's objc-interfaces list. -/// -/// NSURLSessionDownloadTask -extension type NSURLSessionDownloadTask._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLSessionTask { - /// Constructs a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. - NSURLSessionDownloadTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionDownloadTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSessionDownloadTask] that wraps the given raw object pointer. - NSURLSessionDownloadTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionDownloadTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -enum NSURLSessionMultipathServiceType { - NSURLSessionMultipathServiceTypeNone(0), - NSURLSessionMultipathServiceTypeHandover(1), - NSURLSessionMultipathServiceTypeInteractive(2), - NSURLSessionMultipathServiceTypeAggregate(3); - - final int value; - const NSURLSessionMultipathServiceType(this.value); - - static NSURLSessionMultipathServiceType fromValue(int value) => - switch (value) { - 0 => NSURLSessionMultipathServiceTypeNone, - 1 => NSURLSessionMultipathServiceTypeHandover, - 2 => NSURLSessionMultipathServiceTypeInteractive, - 3 => NSURLSessionMultipathServiceTypeAggregate, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionMultipathServiceType: $value', - ), - }; -} - -enum NSURLSessionResponseDisposition { - NSURLSessionResponseCancel(0), - NSURLSessionResponseAllow(1), - NSURLSessionResponseBecomeDownload(2), - NSURLSessionResponseBecomeStream(3); - - final int value; - const NSURLSessionResponseDisposition(this.value); - - static NSURLSessionResponseDisposition fromValue(int value) => - switch (value) { - 0 => NSURLSessionResponseCancel, - 1 => NSURLSessionResponseAllow, - 2 => NSURLSessionResponseBecomeDownload, - 3 => NSURLSessionResponseBecomeStream, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionResponseDisposition: $value', - ), - }; -} - -/// NSURLSessionStreamDelegate -extension type NSURLSessionStreamDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLSessionTaskDelegate { - /// Constructs a [NSURLSessionStreamDelegate] that points to the same underlying object as [other]. - NSURLSessionStreamDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionStreamDelegate] that wraps the given raw object pointer. - NSURLSessionStreamDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionStreamDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionStreamDelegate, - ); - } -} - -extension NSURLSessionStreamDelegate$Methods on NSURLSessionStreamDelegate { - /// URLSession:betterRouteDiscoveredForStreamTask: - void URLSession( - NSURLSession session, { - required NSURLSessionStreamTask betterRouteDiscoveredForStreamTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = betterRouteDiscoveredForStreamTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:betterRouteDiscoveredForStreamTask:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_betterRouteDiscoveredForStreamTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:betterRouteDiscoveredForStreamTask:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_betterRouteDiscoveredForStreamTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didBecomeInvalidWithError: - void URLSession$1( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didCreateTask: - void URLSession$2( - NSURLSession session, { - required NSURLSessionTask didCreateTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didCreateTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:didCreateTask:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:didCreateTask:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$3( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:readClosedForStreamTask: - void URLSession$4( - NSURLSession session, { - required NSURLSessionStreamTask readClosedForStreamTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = readClosedForStreamTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:readClosedForStreamTask:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_readClosedForStreamTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:readClosedForStreamTask:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_readClosedForStreamTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:streamTask:didBecomeInputStream:outputStream: - void URLSession$5( - NSURLSession session, { - required NSURLSessionStreamTask streamTask, - required objc.NSInputStream didBecomeInputStream, - required objc.NSOutputStream outputStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = streamTask.ref; - final _$$ref$3 = didBecomeInputStream.ref; - final _$$ref$4 = outputStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:streamTask:didBecomeInputStream:outputStream:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:streamTask:didBecomeInputStream:outputStream:', - ); - } - _objc_msgSend_mlcr8l( - _$$ref.pointer, - _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didCompleteWithError: - void URLSession$6( - NSURLSession session, { - required NSURLSessionTask task, - objc.NSError? didCompleteWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didCompleteWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:didCompleteWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:didCompleteWithError:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:task:didFinishCollectingMetrics: - void URLSession$7( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLSessionTaskMetrics didFinishCollectingMetrics, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didFinishCollectingMetrics.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:didFinishCollectingMetrics:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:didFinishCollectingMetrics:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didReceiveChallenge:completionHandler: - void URLSession$8( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveChallenge.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didReceiveInformationalResponse: - void URLSession$9( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse didReceiveInformationalResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveInformationalResponse.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:didReceiveInformationalResponse:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:didReceiveInformationalResponse:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - void URLSession$10( - NSURLSession session, { - required NSURLSessionTask task, - required int didSendBodyData, - required int totalBytesSent, - required int totalBytesExpectedToSend, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - ); - } - _objc_msgSend_1modw1b( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didSendBodyData, - totalBytesSent, - totalBytesExpectedToSend, - ); - } - - /// URLSession:task:needNewBodyStream: - void URLSession$11( - NSURLSession session, { - required NSURLSessionTask task, - required objc.ObjCBlock - needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:needNewBodyStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:needNewBodyStream:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - void URLSession$12( - NSURLSession session, { - required NSURLSessionTask task, - required int needNewBodyStreamFromOffset, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - ); - } - _objc_msgSend_9cddqw( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - needNewBodyStreamFromOffset, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - void URLSession$13( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLRequest willBeginDelayedRequest, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willBeginDelayedRequest.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:willBeginDelayedRequest:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - void URLSession$14( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse willPerformHTTPRedirection, - required NSURLRequest newRequest, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willPerformHTTPRedirection.ref; - final _$$ref$4 = newRequest.ref; - final _$$ref$5 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - ); - } - _objc_msgSend_e1wgee( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - _$$ref$5.pointer, - ); - } - - /// URLSession:taskIsWaitingForConnectivity: - void URLSession$15( - NSURLSession session, { - required NSURLSessionTask taskIsWaitingForConnectivity, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = taskIsWaitingForConnectivity.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:taskIsWaitingForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:taskIsWaitingForConnectivity:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:writeClosedForStreamTask: - void URLSession$16( - NSURLSession session, { - required NSURLSessionStreamTask writeClosedForStreamTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = writeClosedForStreamTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSession:writeClosedForStreamTask:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_writeClosedForStreamTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSession:writeClosedForStreamTask:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_writeClosedForStreamTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionStreamDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionStreamDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionStreamDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionStreamDelegate.cast()); - - /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionStreamDelegate implement({ - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionStreamDelegate', - ); - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implement( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implement( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implement( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implement( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionStreamDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implement( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implement( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implement( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implement( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionStreamDelegate implementAsListener({ - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionStreamDelegate', - ); - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implementAsListener( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implementAsListener( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsListener( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implementAsListener( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionStreamDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implementAsListener( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implementAsListener( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsListener( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implementAsListener( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionStreamDelegate implementAsBlocking({ - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionStreamDelegate', - ); - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implementAsBlocking( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implementAsBlocking( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsBlocking( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implementAsBlocking( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionStreamDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_betterRouteDiscoveredForStreamTask_, - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_readClosedForStreamTask_, - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - )? - URLSession_streamTask_didBecomeInputStream_outputStream_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession, NSURLSessionStreamTask)? - URLSession_writeClosedForStreamTask_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionStreamDelegate$Builder - .URLSession_betterRouteDiscoveredForStreamTask_.implementAsBlocking( - builder, - URLSession_betterRouteDiscoveredForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_readClosedForStreamTask_.implementAsBlocking( - builder, - URLSession_readClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_streamTask_didBecomeInputStream_outputStream_.implementAsBlocking( - builder, - URLSession_streamTask_didBecomeInputStream_outputStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionStreamDelegate$Builder - .URLSession_writeClosedForStreamTask_.implementAsBlocking( - builder, - URLSession_writeClosedForStreamTask_, - ); - NSURLSessionStreamDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:betterRouteDiscoveredForStreamTask: - static final URLSession_betterRouteDiscoveredForStreamTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionStreamTask) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_betterRouteDiscoveredForStreamTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_betterRouteDiscoveredForStreamTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didCreateTask: - static final URLSession_didCreateTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:readClosedForStreamTask: - static final URLSession_readClosedForStreamTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionStreamTask) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_readClosedForStreamTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_readClosedForStreamTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:streamTask:didBecomeInputStream:outputStream: - static final URLSession_streamTask_didBecomeInputStream_outputStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_8jfq1p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_streamTask_didBecomeInputStream_outputStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - objc.NSInputStream arg3, - objc.NSOutputStream arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - objc.NSInputStream arg3, - objc.NSOutputStream arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - objc.NSInputStream arg3, - objc.NSOutputStream arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didCompleteWithError: - static final URLSession_task_didCompleteWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didFinishCollectingMetrics: - static final URLSession_task_didFinishCollectingMetrics_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didReceiveChallenge:completionHandler: - static final URLSession_task_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didReceiveInformationalResponse: - static final URLSession_task_didReceiveInformationalResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_h68abb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:needNewBodyStream: - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jyim80) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - static final URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_l2g8ke) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:taskIsWaitingForConnectivity: - static final URLSession_taskIsWaitingForConnectivity_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:writeClosedForStreamTask: - static final URLSession_writeClosedForStreamTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionStreamTask) - >( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_writeClosedForStreamTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSession_writeClosedForStreamTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionStreamTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionStreamDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -/// WARNING: NSURLSessionStreamTask is a stub. To generate bindings for this class, include -/// NSURLSessionStreamTask in your config's objc-interfaces list. -/// -/// NSURLSessionStreamTask -extension type NSURLSessionStreamTask._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLSessionTask { - /// Constructs a [NSURLSessionStreamTask] that points to the same underlying object as [other]. - NSURLSessionStreamTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionStreamTask', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - } - - /// Constructs a [NSURLSessionStreamTask] that wraps the given raw object pointer. - NSURLSessionStreamTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionStreamTask', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - } -} - -/// WARNING: NSURLSessionTask is a stub. To generate bindings for this class, include -/// NSURLSessionTask in your config's objc-interfaces list. -/// -/// NSURLSessionTask -extension type NSURLSessionTask._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSCopying, - NSProgressReporting { - /// Constructs a [NSURLSessionTask] that points to the same underlying object as [other]. - NSURLSessionTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSessionTask] that wraps the given raw object pointer. - NSURLSessionTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -/// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions on NSURLCache { - /// getCachedResponseForDataTask:completionHandler: - void getCachedResponseForDataTask( - NSURLSessionDataTask dataTask, { - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = dataTask.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLCache.getCachedResponseForDataTask:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_o762yo( - _$$ref.pointer, - _sel_getCachedResponseForDataTask_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// removeCachedResponseForDataTask: - void removeCachedResponseForDataTask(NSURLSessionDataTask dataTask) { - final _$$ref = object$.ref; - final _$$ref$1 = dataTask.ref; - objc.checkOsVersionInternal( - 'NSURLCache.removeCachedResponseForDataTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_removeCachedResponseForDataTask_, - _$$ref$1.pointer, - ); - } - - /// storeCachedResponse:forDataTask: - void storeCachedResponse( - NSCachedURLResponse cachedResponse, { - required NSURLSessionDataTask forDataTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = cachedResponse.ref; - final _$$ref$2 = forDataTask.ref; - objc.checkOsVersionInternal( - 'NSURLCache.storeCachedResponse:forDataTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_storeCachedResponse_forDataTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions$1 on NSHTTPCookieStorage { - /// getCookiesForTask:completionHandler: - void getCookiesForTask( - NSURLSessionTask task, { - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = task.ref; - final _$$ref$2 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSHTTPCookieStorage.getCookiesForTask:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_o762yo( - _$$ref.pointer, - _sel_getCookiesForTask_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// storeCookies:forTask: - void storeCookies(objc.NSArray cookies, {required NSURLSessionTask forTask}) { - final _$$ref = object$.ref; - final _$$ref$1 = cookies.ref; - final _$$ref$2 = forTask.ref; - objc.checkOsVersionInternal( - 'NSHTTPCookieStorage.storeCookies:forTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_storeCookies_forTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions$2 on NSURLCredentialStorage { - /// getCredentialsForProtectionSpace:task:completionHandler: - void getCredentialsForProtectionSpace( - NSURLProtectionSpace protectionSpace, { - required NSURLSessionTask task, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = protectionSpace.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLCredentialStorage.getCredentialsForProtectionSpace:task:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_getCredentialsForProtectionSpace_task_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// getDefaultCredentialForProtectionSpace:task:completionHandler: - void getDefaultCredentialForProtectionSpace( - NSURLProtectionSpace space, { - required NSURLSessionTask task, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = space.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLCredentialStorage.getDefaultCredentialForProtectionSpace:task:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// removeCredential:forProtectionSpace:options:task: - void removeCredential( - NSURLCredential credential, { - required NSURLProtectionSpace forProtectionSpace, - objc.NSDictionary? options, - required NSURLSessionTask task, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = credential.ref; - final _$$ref$2 = forProtectionSpace.ref; - final _$$ref$3 = options?.ref; - final _$$ref$4 = task.ref; - objc.checkOsVersionInternal( - 'NSURLCredentialStorage.removeCredential:forProtectionSpace:options:task:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_mlcr8l( - _$$ref.pointer, - _sel_removeCredential_forProtectionSpace_options_task_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4.pointer, - ); - } - - /// setCredential:forProtectionSpace:task: - void setCredential( - NSURLCredential credential, { - required NSURLProtectionSpace forProtectionSpace, - required NSURLSessionTask task, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = credential.ref; - final _$$ref$2 = forProtectionSpace.ref; - final _$$ref$3 = task.ref; - objc.checkOsVersionInternal( - 'NSURLCredentialStorage.setCredential:forProtectionSpace:task:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_setCredential_forProtectionSpace_task_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// setDefaultCredential:forProtectionSpace:task: - void setDefaultCredential( - NSURLCredential credential, { - required NSURLProtectionSpace forProtectionSpace, - required NSURLSessionTask task, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = credential.ref; - final _$$ref$2 = forProtectionSpace.ref; - final _$$ref$3 = task.ref; - objc.checkOsVersionInternal( - 'NSURLCredentialStorage.setDefaultCredential:forProtectionSpace:task:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_setDefaultCredential_forProtectionSpace_task_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// NSURLSessionTaskAdditions -extension NSURLSessionTaskAdditions$3 on NSURLProtocol { - /// task - NSURLSessionTask? get task { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURLProtocol.task', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_task); - return $ret.address == 0 - ? null - : NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - /// canInitWithTask: - static bool canInitWithTask(NSURLSessionTask task) { - final _$$ref = task.ref; - objc.checkOsVersionInternal( - 'NSURLProtocol.canInitWithTask:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - return _objc_msgSend_19nvye5( - _class_NSURLProtocol, - _sel_canInitWithTask_, - _$$ref.pointer, - ); - } -} - -/// NSURLSessionTaskDelegate -extension type NSURLSessionTaskDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLSessionDelegate { - /// Constructs a [NSURLSessionTaskDelegate] that points to the same underlying object as [other]. - NSURLSessionTaskDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionTaskDelegate] that wraps the given raw object pointer. - NSURLSessionTaskDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionTaskDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionTaskDelegate, - ); - } -} - -extension NSURLSessionTaskDelegate$Methods on NSURLSessionTaskDelegate { - /// URLSession:didBecomeInvalidWithError: - void URLSession( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didCreateTask: - void URLSession$1( - NSURLSession session, { - required NSURLSessionTask didCreateTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didCreateTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:didCreateTask:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:didCreateTask:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$2( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didCompleteWithError: - void URLSession$3( - NSURLSession session, { - required NSURLSessionTask task, - objc.NSError? didCompleteWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didCompleteWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:didCompleteWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:didCompleteWithError:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:task:didFinishCollectingMetrics: - void URLSession$4( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLSessionTaskMetrics didFinishCollectingMetrics, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didFinishCollectingMetrics.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:didFinishCollectingMetrics:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:didFinishCollectingMetrics:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didReceiveChallenge:completionHandler: - void URLSession$5( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveChallenge.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didReceiveInformationalResponse: - void URLSession$6( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse didReceiveInformationalResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveInformationalResponse.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:didReceiveInformationalResponse:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:didReceiveInformationalResponse:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - void URLSession$7( - NSURLSession session, { - required NSURLSessionTask task, - required int didSendBodyData, - required int totalBytesSent, - required int totalBytesExpectedToSend, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - ); - } - _objc_msgSend_1modw1b( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didSendBodyData, - totalBytesSent, - totalBytesExpectedToSend, - ); - } - - /// URLSession:task:needNewBodyStream: - void URLSession$8( - NSURLSession session, { - required NSURLSessionTask task, - required objc.ObjCBlock - needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:needNewBodyStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:needNewBodyStream:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - void URLSession$9( - NSURLSession session, { - required NSURLSessionTask task, - required int needNewBodyStreamFromOffset, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - ); - } - _objc_msgSend_9cddqw( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - needNewBodyStreamFromOffset, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - void URLSession$10( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLRequest willBeginDelayedRequest, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willBeginDelayedRequest.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:willBeginDelayedRequest:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - void URLSession$11( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse willPerformHTTPRedirection, - required NSURLRequest newRequest, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willPerformHTTPRedirection.ref; - final _$$ref$4 = newRequest.ref; - final _$$ref$5 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - ); - } - _objc_msgSend_e1wgee( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - _$$ref$5.pointer, - ); - } - - /// URLSession:taskIsWaitingForConnectivity: - void URLSession$12( - NSURLSession session, { - required NSURLSessionTask taskIsWaitingForConnectivity, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = taskIsWaitingForConnectivity.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSession:taskIsWaitingForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSession:taskIsWaitingForConnectivity:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionTaskDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionTaskDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionTaskDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionTaskDelegate.cast()); - - /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionTaskDelegate implement({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionTaskDelegate', - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionTaskDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionTaskDelegate implementAsListener({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionTaskDelegate', - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionTaskDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionTaskDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionTaskDelegate implementAsBlocking({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionTaskDelegate', - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionTaskDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionTaskDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionTaskDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionTaskDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionTaskDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didCreateTask: - static final URLSession_didCreateTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didCompleteWithError: - static final URLSession_task_didCompleteWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didFinishCollectingMetrics: - static final URLSession_task_didFinishCollectingMetrics_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didReceiveChallenge:completionHandler: - static final URLSession_task_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didReceiveInformationalResponse: - static final URLSession_task_didReceiveInformationalResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_h68abb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:needNewBodyStream: - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jyim80) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - static final URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_l2g8ke) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:taskIsWaitingForConnectivity: - static final URLSession_taskIsWaitingForConnectivity_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionTaskDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -/// WARNING: NSURLSessionTaskMetrics is a stub. To generate bindings for this class, include -/// NSURLSessionTaskMetrics in your config's objc-interfaces list. -/// -/// NSURLSessionTaskMetrics -extension type NSURLSessionTaskMetrics._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSURLSessionTaskMetrics] that points to the same underlying object as [other]. - NSURLSessionTaskMetrics.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionTaskMetrics', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - } - - /// Constructs a [NSURLSessionTaskMetrics] that wraps the given raw object pointer. - NSURLSessionTaskMetrics.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionTaskMetrics', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - } -} - -enum NSURLSessionTaskMetricsDomainResolutionProtocol { - NSURLSessionTaskMetricsDomainResolutionProtocolUnknown(0), - NSURLSessionTaskMetricsDomainResolutionProtocolUDP(1), - NSURLSessionTaskMetricsDomainResolutionProtocolTCP(2), - NSURLSessionTaskMetricsDomainResolutionProtocolTLS(3), - NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS(4); - - final int value; - const NSURLSessionTaskMetricsDomainResolutionProtocol(this.value); - - static NSURLSessionTaskMetricsDomainResolutionProtocol fromValue( - int value, - ) => switch (value) { - 0 => NSURLSessionTaskMetricsDomainResolutionProtocolUnknown, - 1 => NSURLSessionTaskMetricsDomainResolutionProtocolUDP, - 2 => NSURLSessionTaskMetricsDomainResolutionProtocolTCP, - 3 => NSURLSessionTaskMetricsDomainResolutionProtocolTLS, - 4 => NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionTaskMetricsDomainResolutionProtocol: $value', - ), - }; -} - -enum NSURLSessionTaskMetricsResourceFetchType { - NSURLSessionTaskMetricsResourceFetchTypeUnknown(0), - NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad(1), - NSURLSessionTaskMetricsResourceFetchTypeServerPush(2), - NSURLSessionTaskMetricsResourceFetchTypeLocalCache(3); - - final int value; - const NSURLSessionTaskMetricsResourceFetchType(this.value); - - static NSURLSessionTaskMetricsResourceFetchType fromValue(int value) => - switch (value) { - 0 => NSURLSessionTaskMetricsResourceFetchTypeUnknown, - 1 => NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad, - 2 => NSURLSessionTaskMetricsResourceFetchTypeServerPush, - 3 => NSURLSessionTaskMetricsResourceFetchTypeLocalCache, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionTaskMetricsResourceFetchType: $value', - ), - }; -} - -enum NSURLSessionTaskState { - NSURLSessionTaskStateRunning(0), - NSURLSessionTaskStateSuspended(1), - NSURLSessionTaskStateCanceling(2), - NSURLSessionTaskStateCompleted(3); - - final int value; - const NSURLSessionTaskState(this.value); - - static NSURLSessionTaskState fromValue(int value) => switch (value) { - 0 => NSURLSessionTaskStateRunning, - 1 => NSURLSessionTaskStateSuspended, - 2 => NSURLSessionTaskStateCanceling, - 3 => NSURLSessionTaskStateCompleted, - _ => throw ArgumentError('Unknown value for NSURLSessionTaskState: $value'), - }; -} - -/// WARNING: NSURLSessionUploadTask is a stub. To generate bindings for this class, include -/// NSURLSessionUploadTask in your config's objc-interfaces list. -/// -/// NSURLSessionUploadTask -extension type NSURLSessionUploadTask._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLSessionDataTask { - /// Constructs a [NSURLSessionUploadTask] that points to the same underlying object as [other]. - NSURLSessionUploadTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionUploadTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } - - /// Constructs a [NSURLSessionUploadTask] that wraps the given raw object pointer. - NSURLSessionUploadTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionUploadTask', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - } -} - -enum NSURLSessionWebSocketCloseCode { - NSURLSessionWebSocketCloseCodeInvalid(0), - NSURLSessionWebSocketCloseCodeNormalClosure(1000), - NSURLSessionWebSocketCloseCodeGoingAway(1001), - NSURLSessionWebSocketCloseCodeProtocolError(1002), - NSURLSessionWebSocketCloseCodeUnsupportedData(1003), - NSURLSessionWebSocketCloseCodeNoStatusReceived(1005), - NSURLSessionWebSocketCloseCodeAbnormalClosure(1006), - NSURLSessionWebSocketCloseCodeInvalidFramePayloadData(1007), - NSURLSessionWebSocketCloseCodePolicyViolation(1008), - NSURLSessionWebSocketCloseCodeMessageTooBig(1009), - NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing(1010), - NSURLSessionWebSocketCloseCodeInternalServerError(1011), - NSURLSessionWebSocketCloseCodeTLSHandshakeFailure(1015); - - final int value; - const NSURLSessionWebSocketCloseCode(this.value); - - static NSURLSessionWebSocketCloseCode fromValue(int value) => switch (value) { - 0 => NSURLSessionWebSocketCloseCodeInvalid, - 1000 => NSURLSessionWebSocketCloseCodeNormalClosure, - 1001 => NSURLSessionWebSocketCloseCodeGoingAway, - 1002 => NSURLSessionWebSocketCloseCodeProtocolError, - 1003 => NSURLSessionWebSocketCloseCodeUnsupportedData, - 1005 => NSURLSessionWebSocketCloseCodeNoStatusReceived, - 1006 => NSURLSessionWebSocketCloseCodeAbnormalClosure, - 1007 => NSURLSessionWebSocketCloseCodeInvalidFramePayloadData, - 1008 => NSURLSessionWebSocketCloseCodePolicyViolation, - 1009 => NSURLSessionWebSocketCloseCodeMessageTooBig, - 1010 => NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing, - 1011 => NSURLSessionWebSocketCloseCodeInternalServerError, - 1015 => NSURLSessionWebSocketCloseCodeTLSHandshakeFailure, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionWebSocketCloseCode: $value', - ), - }; -} - -/// NSURLSessionWebSocketDelegate -extension type NSURLSessionWebSocketDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, NSURLSessionTaskDelegate { - /// Constructs a [NSURLSessionWebSocketDelegate] that points to the same underlying object as [other]. - NSURLSessionWebSocketDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSURLSessionWebSocketDelegate] that wraps the given raw object pointer. - NSURLSessionWebSocketDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLSessionWebSocketDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSURLSessionWebSocketDelegate, - ); - } -} - -extension NSURLSessionWebSocketDelegate$Methods - on NSURLSessionWebSocketDelegate { - /// URLSession:didBecomeInvalidWithError: - void URLSession( - NSURLSession session, { - objc.NSError? didBecomeInvalidWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didBecomeInvalidWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:didBecomeInvalidWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:didBecomeInvalidWithError:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didBecomeInvalidWithError_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:didCreateTask: - void URLSession$1( - NSURLSession session, { - required NSURLSessionTask didCreateTask, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didCreateTask.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:didCreateTask:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:didCreateTask:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_didCreateTask_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:didReceiveChallenge:completionHandler: - void URLSession$2( - NSURLSession session, { - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = didReceiveChallenge.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didCompleteWithError: - void URLSession$3( - NSURLSession session, { - required NSURLSessionTask task, - objc.NSError? didCompleteWithError, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didCompleteWithError?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:didCompleteWithError:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:didCompleteWithError:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didCompleteWithError_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:task:didFinishCollectingMetrics: - void URLSession$4( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLSessionTaskMetrics didFinishCollectingMetrics, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didFinishCollectingMetrics.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:didFinishCollectingMetrics:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:didFinishCollectingMetrics:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didFinishCollectingMetrics_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didReceiveChallenge:completionHandler: - void URLSession$5( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLAuthenticationChallenge didReceiveChallenge, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveChallenge.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:didReceiveChallenge:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:didReceiveChallenge:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:didReceiveInformationalResponse: - void URLSession$6( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse didReceiveInformationalResponse, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = didReceiveInformationalResponse.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:didReceiveInformationalResponse:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:didReceiveInformationalResponse:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_task_didReceiveInformationalResponse_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - void URLSession$7( - NSURLSession session, { - required NSURLSessionTask task, - required int didSendBodyData, - required int totalBytesSent, - required int totalBytesExpectedToSend, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:', - ); - } - _objc_msgSend_1modw1b( - _$$ref.pointer, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didSendBodyData, - totalBytesSent, - totalBytesExpectedToSend, - ); - } - - /// URLSession:task:needNewBodyStream: - void URLSession$8( - NSURLSession session, { - required NSURLSessionTask task, - required objc.ObjCBlock - needNewBodyStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = needNewBodyStream.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:needNewBodyStream:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:needNewBodyStream:', - ); - } - _objc_msgSend_18qun1e( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - void URLSession$9( - NSURLSession session, { - required NSURLSessionTask task, - required int needNewBodyStreamFromOffset, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:needNewBodyStreamFromOffset:completionHandler:', - ); - } - _objc_msgSend_9cddqw( - _$$ref.pointer, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - needNewBodyStreamFromOffset, - _$$ref$3.pointer, - ); - } - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - void URLSession$10( - NSURLSession session, { - required NSURLSessionTask task, - required NSURLRequest willBeginDelayedRequest, - required objc.ObjCBlock - completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willBeginDelayedRequest.ref; - final _$$ref$4 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:willBeginDelayedRequest:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:willBeginDelayedRequest:completionHandler:', - ); - } - _objc_msgSend_m7tls4( - _$$ref.pointer, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - void URLSession$11( - NSURLSession session, { - required NSURLSessionTask task, - required NSHTTPURLResponse willPerformHTTPRedirection, - required NSURLRequest newRequest, - required objc.ObjCBlock completionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = task.ref; - final _$$ref$3 = willPerformHTTPRedirection.ref; - final _$$ref$4 = newRequest.ref; - final _$$ref$5 = completionHandler.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:', - ); - } - _objc_msgSend_e1wgee( - _$$ref.pointer, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - _$$ref$5.pointer, - ); - } - - /// URLSession:taskIsWaitingForConnectivity: - void URLSession$12( - NSURLSession session, { - required NSURLSessionTask taskIsWaitingForConnectivity, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = taskIsWaitingForConnectivity.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:taskIsWaitingForConnectivity:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:taskIsWaitingForConnectivity:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_URLSession_taskIsWaitingForConnectivity_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// URLSession:webSocketTask:didCloseWithCode:reason: - void URLSession$13( - NSURLSession session, { - required NSURLSessionWebSocketTask webSocketTask, - required NSURLSessionWebSocketCloseCode didCloseWithCode, - objc.NSData? reason, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = webSocketTask.ref; - final _$$ref$3 = reason?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:webSocketTask:didCloseWithCode:reason:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_webSocketTask_didCloseWithCode_reason_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:webSocketTask:didCloseWithCode:reason:', - ); - } - _objc_msgSend_d9bpjb( - _$$ref.pointer, - _sel_URLSession_webSocketTask_didCloseWithCode_reason_, - _$$ref$1.pointer, - _$$ref$2.pointer, - didCloseWithCode.value, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSession:webSocketTask:didOpenWithProtocol: - void URLSession$14( - NSURLSession session, { - required NSURLSessionWebSocketTask webSocketTask, - objc.NSString? didOpenWithProtocol, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - final _$$ref$2 = webSocketTask.ref; - final _$$ref$3 = didOpenWithProtocol?.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSession:webSocketTask:didOpenWithProtocol:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSession_webSocketTask_didOpenWithProtocol_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSession:webSocketTask:didOpenWithProtocol:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_URLSession_webSocketTask_didOpenWithProtocol_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// URLSessionDidFinishEventsForBackgroundURLSession: - void URLSessionDidFinishEventsForBackgroundURLSession(NSURLSession session) { - final _$$ref = object$.ref; - final _$$ref$1 = session.ref; - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketDelegate.URLSessionDidFinishEventsForBackgroundURLSession:', - iOS: (false, (7, 0, 0)), - macOS: (false, (11, 0, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURLSessionWebSocketDelegate', - 'URLSessionDidFinishEventsForBackgroundURLSession:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - _$$ref$1.pointer, - ); - } -} - -interface class NSURLSessionWebSocketDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSURLSessionWebSocketDelegate.cast()); - - /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionWebSocketDelegate implement({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionWebSocketDelegate', - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implement( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implement( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionWebSocketDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implement( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder.URLSession_didCreateTask_.implement( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implement( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implement( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implement( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implement( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implement( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implement( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implement( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implement( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implement( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implement( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implement( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implement( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implement( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionWebSocketDelegate implementAsListener({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionWebSocketDelegate', - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsListener( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implementAsListener( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionWebSocketDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsListener( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didCreateTask_.implementAsListener( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsListener( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsListener( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsListener( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsListener( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsListener( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsListener( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsListener( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsListener( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsListener( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsListener( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implementAsListener( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsListener( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSURLSessionWebSocketDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSURLSessionWebSocketDelegate implementAsBlocking({ - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSURLSessionWebSocketDelegate', - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsBlocking( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implementAsBlocking( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - return NSURLSessionWebSocketDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSURLSessionWebSocketDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSURLSession, objc.NSError?)? - URLSession_didBecomeInvalidWithError_, - void Function(NSURLSession, NSURLSessionTask)? URLSession_didCreateTask_, - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, objc.NSError?)? - URLSession_task_didCompleteWithError_, - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)? - URLSession_task_didFinishCollectingMetrics_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - )? - URLSession_task_didReceiveChallenge_completionHandler_, - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse)? - URLSession_task_didReceiveInformationalResponse_, - void Function(NSURLSession, NSURLSessionTask, int, int, int)? - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStream_, - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - )? - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willBeginDelayedRequest_completionHandler_, - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - )? - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - void Function(NSURLSession, NSURLSessionTask)? - URLSession_taskIsWaitingForConnectivity_, - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - )? - URLSession_webSocketTask_didCloseWithCode_reason_, - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)? - URLSession_webSocketTask_didOpenWithProtocol_, - void Function(NSURLSession)? - URLSessionDidFinishEventsForBackgroundURLSession_, - bool $keepIsolateAlive = true, - }) { - NSURLSessionWebSocketDelegate$Builder - .URLSession_didBecomeInvalidWithError_.implementAsBlocking( - builder, - URLSession_didBecomeInvalidWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didCreateTask_.implementAsBlocking( - builder, - URLSession_didCreateTask_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didCompleteWithError_.implementAsBlocking( - builder, - URLSession_task_didCompleteWithError_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didFinishCollectingMetrics_.implementAsBlocking( - builder, - URLSession_task_didFinishCollectingMetrics_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveChallenge_completionHandler_.implementAsBlocking( - builder, - URLSession_task_didReceiveChallenge_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didReceiveInformationalResponse_.implementAsBlocking( - builder, - URLSession_task_didReceiveInformationalResponse_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_.implementAsBlocking( - builder, - URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStream_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStream_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_needNewBodyStreamFromOffset_completionHandler_.implementAsBlocking( - builder, - URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willBeginDelayedRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willBeginDelayedRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_.implementAsBlocking( - builder, - URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_taskIsWaitingForConnectivity_.implementAsBlocking( - builder, - URLSession_taskIsWaitingForConnectivity_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didCloseWithCode_reason_.implementAsBlocking( - builder, - URLSession_webSocketTask_didCloseWithCode_reason_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSession_webSocketTask_didOpenWithProtocol_.implementAsBlocking( - builder, - URLSession_webSocketTask_didOpenWithProtocol_, - ); - NSURLSessionWebSocketDelegate$Builder - .URLSessionDidFinishEventsForBackgroundURLSession_.implementAsBlocking( - builder, - URLSessionDidFinishEventsForBackgroundURLSession_, - ); - builder.addProtocol($protocol); - } - - /// URLSession:didBecomeInvalidWithError: - static final URLSession_didBecomeInvalidWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, objc.NSError?) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didBecomeInvalidWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - objc.NSError? arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didCreateTask: - static final URLSession_didCreateTask_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didCreateTask_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didCreateTask_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:didReceiveChallenge:completionHandler: - static final URLSession_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock - arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didCompleteWithError: - static final URLSession_task_didCompleteWithError_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, objc.NSError?) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didCompleteWithError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didCompleteWithError_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSURLSession, NSURLSessionTask, objc.NSError?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didFinishCollectingMetrics: - static final URLSession_task_didFinishCollectingMetrics_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didFinishCollectingMetrics_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didReceiveChallenge:completionHandler: - static final URLSession_task_didReceiveChallenge_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveChallenge_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:didReceiveInformationalResponse: - static final URLSession_task_didReceiveInformationalResponse_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didReceiveInformationalResponse_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionTask, NSHTTPURLResponse) func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend: - static final URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask, int, int, int) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >(_1uu024u_protocolTrampoline_h68abb) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - (void Function(NSURLSession, NSURLSessionTask, int, int, int) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:task:needNewBodyStream: - static final URLSession_task_needNewBodyStream_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_bklti2) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSession:task:needNewBodyStreamFromOffset:completionHandler: - static final URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_jyim80) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willBeginDelayedRequest:completionHandler: - static final URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xx612k) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willBeginDelayedRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock - arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler: - static final URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_l2g8ke) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// URLSession:taskIsWaitingForConnectivity: - static final URLSession_taskIsWaitingForConnectivity_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionTask) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_taskIsWaitingForConnectivity_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - (void Function(NSURLSession, NSURLSessionTask) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionTask arg2, - ) => func(arg1, arg2), - ), - ); - - /// URLSession:webSocketTask:didCloseWithCode:reason: - static final URLSession_webSocketTask_didCloseWithCode_reason_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didCloseWithCode_reason_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1lx650f) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didCloseWithCode_reason_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - NSURLSessionWebSocketCloseCode arg3, - objc.NSData? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - NSURLSessionWebSocketCloseCode arg3, - objc.NSData? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - NSURLSessionWebSocketCloseCode arg3, - objc.NSData? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// URLSession:webSocketTask:didOpenWithProtocol: - static final URLSession_webSocketTask_didOpenWithProtocol_ = - objc.ObjCProtocolListenableMethod< - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - >( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didOpenWithProtocol_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSession_webSocketTask_didOpenWithProtocol_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.fromFunction( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.listener( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSURLSession, NSURLSessionWebSocketTask, objc.NSString?) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString.blocking( - ( - ffi.Pointer _, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// URLSessionDidFinishEventsForBackgroundURLSession: - static final URLSessionDidFinishEventsForBackgroundURLSession_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSURLSessionWebSocketDelegate, - _sel_URLSessionDidFinishEventsForBackgroundURLSession_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.fromFunction( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.listener( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - (void Function(NSURLSession) func) => - ObjCBlock_ffiVoid_ffiVoid_NSURLSession.blocking( - (ffi.Pointer _, NSURLSession arg1) => func(arg1), - ), - ); -} - -enum NSURLSessionWebSocketMessageType { - NSURLSessionWebSocketMessageTypeData(0), - NSURLSessionWebSocketMessageTypeString(1); - - final int value; - const NSURLSessionWebSocketMessageType(this.value); - - static NSURLSessionWebSocketMessageType fromValue(int value) => - switch (value) { - 0 => NSURLSessionWebSocketMessageTypeData, - 1 => NSURLSessionWebSocketMessageTypeString, - _ => throw ArgumentError( - 'Unknown value for NSURLSessionWebSocketMessageType: $value', - ), - }; -} - -/// WARNING: NSURLSessionWebSocketTask is a stub. To generate bindings for this class, include -/// NSURLSessionWebSocketTask in your config's objc-interfaces list. -/// -/// NSURLSessionWebSocketTask -extension type NSURLSessionWebSocketTask._(objc.ObjCObject object$) - implements objc.ObjCObject, NSURLSessionTask { - /// Constructs a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. - NSURLSessionWebSocketTask.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketTask', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - } - - /// Constructs a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. - NSURLSessionWebSocketTask.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSURLSessionWebSocketTask', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - } -} - -typedef NSURLThumbnailDictionaryItem = ffi.Pointer; -typedef DartNSURLThumbnailDictionaryItem = objc.NSString; -typedef NSURLUbiquitousItemDownloadingStatus = ffi.Pointer; -typedef DartNSURLUbiquitousItemDownloadingStatus = objc.NSString; -typedef NSURLUbiquitousSharedItemPermissions = ffi.Pointer; -typedef DartNSURLUbiquitousSharedItemPermissions = objc.NSString; -typedef NSURLUbiquitousSharedItemRole = ffi.Pointer; -typedef DartNSURLUbiquitousSharedItemRole = objc.NSString; - -/// NSURLUtilities -extension NSURLUtilities on objc.NSString { - /// stringByAddingPercentEncodingWithAllowedCharacters: - objc.NSString? stringByAddingPercentEncodingWithAllowedCharacters( - objc.NSCharacterSet allowedCharacters, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = allowedCharacters.ref; - objc.checkOsVersionInternal( - 'NSString.stringByAddingPercentEncodingWithAllowedCharacters:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_stringByAddingPercentEncodingWithAllowedCharacters_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByAddingPercentEscapesUsingEncoding: - @Deprecated( - 'Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.', - ) - objc.NSString? stringByAddingPercentEscapesUsingEncoding(DartNSUInteger enc) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.stringByAddingPercentEscapesUsingEncoding:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_14hpxwa( - _$$ref.pointer, - _sel_stringByAddingPercentEscapesUsingEncoding_, - enc, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByRemovingPercentEncoding - objc.NSString? get stringByRemovingPercentEncoding { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.stringByRemovingPercentEncoding', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_stringByRemovingPercentEncoding, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// stringByReplacingPercentEscapesUsingEncoding: - @Deprecated( - 'Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding.', - ) - objc.NSString? stringByReplacingPercentEscapesUsingEncoding( - DartNSUInteger enc, - ) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSString.stringByReplacingPercentEscapesUsingEncoding:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_14hpxwa( - _$$ref.pointer, - _sel_stringByReplacingPercentEscapesUsingEncoding_, - enc, - ); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// NSURLUtilities -extension NSURLUtilities$1 on objc.NSCharacterSet { - /// URLFragmentAllowedCharacterSet - static objc.NSCharacterSet getURLFragmentAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLFragmentAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_URLFragmentAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// URLHostAllowedCharacterSet - static objc.NSCharacterSet getURLHostAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLHostAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_URLHostAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// URLPasswordAllowedCharacterSet - static objc.NSCharacterSet getURLPasswordAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLPasswordAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_URLPasswordAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// URLPathAllowedCharacterSet - static objc.NSCharacterSet getURLPathAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLPathAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_URLPathAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// URLQueryAllowedCharacterSet - static objc.NSCharacterSet getURLQueryAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLQueryAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_URLQueryAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } - - /// URLUserAllowedCharacterSet - static objc.NSCharacterSet getURLUserAllowedCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.URLUserAllowedCharacterSet', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_URLUserAllowedCharacterSet, - ); - return objc.NSCharacterSet.fromPointer($ret, retain: true, release: true); - } -} - -const int NSUTF16BigEndianStringEncoding = 2415919360; - -const int NSUTF16LittleEndianStringEncoding = 2483028224; - -const int NSUTF16StringEncoding = 10; - -const int NSUTF32BigEndianStringEncoding = 2550137088; - -const int NSUTF32LittleEndianStringEncoding = 2617245952; - -const int NSUTF32StringEncoding = 2348810496; - -const int NSUTF8StringEncoding = 4; - -const int NSUbiquitousFileErrorMaximum = 4607; - -const int NSUbiquitousFileErrorMinimum = 4352; - -const int NSUbiquitousFileNotUploadedDueToQuotaError = 4354; - -const int NSUbiquitousFileUbiquityServerNotAvailable = 4355; - -const int NSUbiquitousFileUnavailableError = 4353; - -const int NSUbiquitousKeyValueStoreAccountChange = 3; - -const int NSUbiquitousKeyValueStoreInitialSyncChange = 1; - -const int NSUbiquitousKeyValueStoreQuotaViolationChange = 2; - -const int NSUbiquitousKeyValueStoreServerChange = 0; - -typedef NSUncaughtExceptionHandler = - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer exception$1) - >; -@Deprecated('Deprecated') -const int NSUndefinedDateComponent = 9223372036854775807; - -const int NSUndoCloseGroupingRunLoopOrdering = 350000; - -typedef NSUndoManagerUserInfoKey = ffi.Pointer; -typedef DartNSUndoManagerUserInfoKey = objc.NSString; - -const int NSUnicodeStringEncoding = 10; - -const int NSUnknownKeyScriptError = 7; - -const int NSUnknownKeySpecifierError = 3; - -/// WARNING: NSUserActivity is a stub. To generate bindings for this class, include -/// NSUserActivity in your config's objc-interfaces list. -/// -/// NSUserActivity -extension type NSUserActivity._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSUserActivity] that points to the same underlying object as [other]. - NSUserActivity.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSUserActivity', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } - - /// Constructs a [NSUserActivity] that wraps the given raw object pointer. - NSUserActivity.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSUserActivity', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } -} - -const int NSUserActivityConnectionUnavailableError = 4609; - -/// NSUserActivityDelegate -extension type NSUserActivityDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSUserActivityDelegate] that points to the same underlying object as [other]. - NSUserActivityDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSUserActivityDelegate] that wraps the given raw object pointer. - NSUserActivityDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSUserActivityDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSUserActivityDelegate, - ); - } -} - -extension NSUserActivityDelegate$Methods on NSUserActivityDelegate { - /// userActivity:didReceiveInputStream:outputStream: - void userActivity( - NSUserActivity userActivity, { - required objc.NSInputStream didReceiveInputStream, - required objc.NSOutputStream outputStream, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = userActivity.ref; - final _$$ref$2 = didReceiveInputStream.ref; - final _$$ref$3 = outputStream.ref; - objc.checkOsVersionInternal( - 'NSUserActivityDelegate.userActivity:didReceiveInputStream:outputStream:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_userActivity_didReceiveInputStream_outputStream_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserActivityDelegate', - 'userActivity:didReceiveInputStream:outputStream:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_userActivity_didReceiveInputStream_outputStream_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// userActivityWasContinued: - void userActivityWasContinued(NSUserActivity userActivity) { - final _$$ref = object$.ref; - final _$$ref$1 = userActivity.ref; - objc.checkOsVersionInternal( - 'NSUserActivityDelegate.userActivityWasContinued:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_userActivityWasContinued_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserActivityDelegate', - 'userActivityWasContinued:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_userActivityWasContinued_, - _$$ref$1.pointer, - ); - } - - /// userActivityWillSave: - void userActivityWillSave(NSUserActivity userActivity) { - final _$$ref = object$.ref; - final _$$ref$1 = userActivity.ref; - objc.checkOsVersionInternal( - 'NSUserActivityDelegate.userActivityWillSave:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_userActivityWillSave_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserActivityDelegate', - 'userActivityWillSave:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_userActivityWillSave_, - _$$ref$1.pointer, - ); - } -} - -interface class NSUserActivityDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSUserActivityDelegate.cast()); - - /// Builds an object that implements the NSUserActivityDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserActivityDelegate implement({ - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserActivityDelegate', - ); - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implement(builder, userActivity_didReceiveInputStream_outputStream_); - NSUserActivityDelegate$Builder.userActivityWasContinued_.implement( - builder, - userActivityWasContinued_, - ); - NSUserActivityDelegate$Builder.userActivityWillSave_.implement( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - return NSUserActivityDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserActivityDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implement(builder, userActivity_didReceiveInputStream_outputStream_); - NSUserActivityDelegate$Builder.userActivityWasContinued_.implement( - builder, - userActivityWasContinued_, - ); - NSUserActivityDelegate$Builder.userActivityWillSave_.implement( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSUserActivityDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserActivityDelegate implementAsListener({ - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserActivityDelegate', - ); - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implementAsListener( - builder, - userActivity_didReceiveInputStream_outputStream_, - ); - NSUserActivityDelegate$Builder.userActivityWasContinued_ - .implementAsListener(builder, userActivityWasContinued_); - NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsListener( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - return NSUserActivityDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserActivityDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implementAsListener( - builder, - userActivity_didReceiveInputStream_outputStream_, - ); - NSUserActivityDelegate$Builder.userActivityWasContinued_ - .implementAsListener(builder, userActivityWasContinued_); - NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsListener( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSUserActivityDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserActivityDelegate implementAsBlocking({ - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserActivityDelegate', - ); - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implementAsBlocking( - builder, - userActivity_didReceiveInputStream_outputStream_, - ); - NSUserActivityDelegate$Builder.userActivityWasContinued_ - .implementAsBlocking(builder, userActivityWasContinued_); - NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsBlocking( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - return NSUserActivityDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserActivityDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream)? - userActivity_didReceiveInputStream_outputStream_, - void Function(NSUserActivity)? userActivityWasContinued_, - void Function(NSUserActivity)? userActivityWillSave_, - bool $keepIsolateAlive = true, - }) { - NSUserActivityDelegate$Builder - .userActivity_didReceiveInputStream_outputStream_ - .implementAsBlocking( - builder, - userActivity_didReceiveInputStream_outputStream_, - ); - NSUserActivityDelegate$Builder.userActivityWasContinued_ - .implementAsBlocking(builder, userActivityWasContinued_); - NSUserActivityDelegate$Builder.userActivityWillSave_.implementAsBlocking( - builder, - userActivityWillSave_, - ); - builder.addProtocol($protocol); - } - - /// userActivity:didReceiveInputStream:outputStream: - static final userActivity_didReceiveInputStream_outputStream_ = - objc.ObjCProtocolListenableMethod< - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) - >( - _protocol_NSUserActivityDelegate, - _sel_userActivity_didReceiveInputStream_outputStream_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserActivityDelegate, - _sel_userActivity_didReceiveInputStream_outputStream_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.fromFunction( - ( - ffi.Pointer _, - NSUserActivity arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.listener( - ( - ffi.Pointer _, - NSUserActivity arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ( - void Function(NSUserActivity, objc.NSInputStream, objc.NSOutputStream) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream.blocking( - ( - ffi.Pointer _, - NSUserActivity arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// userActivityWasContinued: - static final userActivityWasContinued_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSUserActivityDelegate, - _sel_userActivityWasContinued_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserActivityDelegate, - _sel_userActivityWasContinued_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.fromFunction( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.listener( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.blocking( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - ); - - /// userActivityWillSave: - static final userActivityWillSave_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSUserActivityDelegate, - _sel_userActivityWillSave_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserActivityDelegate, - _sel_userActivityWillSave_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.fromFunction( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.listener( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - (void Function(NSUserActivity) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserActivity.blocking( - (ffi.Pointer _, NSUserActivity arg1) => func(arg1), - ), - ); -} - -const int NSUserActivityErrorMaximum = 4863; - -const int NSUserActivityErrorMinimum = 4608; - -const int NSUserActivityHandoffFailedError = 4608; - -const int NSUserActivityHandoffUserInfoTooLargeError = 4611; - -typedef NSUserActivityPersistentIdentifier = ffi.Pointer; -typedef DartNSUserActivityPersistentIdentifier = objc.NSString; - -const int NSUserActivityRemoteApplicationTimedOutError = 4610; - -typedef NSUserAppleScriptTaskCompletionHandler = - ffi.Pointer; -typedef DartNSUserAppleScriptTaskCompletionHandler = - objc.ObjCBlock; -typedef NSUserAutomatorTaskCompletionHandler = ffi.Pointer; -typedef DartNSUserAutomatorTaskCompletionHandler = - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >; - -const int NSUserCancelledError = 3072; - -/// NSUserInformation -extension NSUserInformation on NSProcessInfo { - /// fullUserName - objc.NSString get fullUserName { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.fullUserName', - iOS: (true, null), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_fullUserName); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// userName - objc.NSString get userName { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSProcessInfo.userName', - iOS: (true, null), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_userName); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// NSUserInformation -extension NSUserInformation$1 on NSFileManager { - /// homeDirectoryForCurrentUser - objc.NSURL get homeDirectoryForCurrentUser { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFileManager.homeDirectoryForCurrentUser', - iOS: (true, null), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_homeDirectoryForCurrentUser, - ); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// homeDirectoryForUser: - objc.NSURL? homeDirectoryForUser(objc.NSString userName) { - final _$$ref = object$.ref; - final _$$ref$1 = userName.ref; - objc.checkOsVersionInternal( - 'NSFileManager.homeDirectoryForUser:', - iOS: (true, null), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_homeDirectoryForUser_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// temporaryDirectory - objc.NSURL get temporaryDirectory { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSFileManager.temporaryDirectory', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_temporaryDirectory); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSUserNotification is a stub. To generate bindings for this class, include -/// NSUserNotification in your config's objc-interfaces list. -/// -/// NSUserNotification -@Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', -) -extension type NSUserNotification._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCopying { - /// Constructs a [NSUserNotification] that points to the same underlying object as [other]. - NSUserNotification.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSUserNotification', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - } - - /// Constructs a [NSUserNotification] that wraps the given raw object pointer. - NSUserNotification.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSUserNotification', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - } -} - -@Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', -) -enum NSUserNotificationActivationType { - NSUserNotificationActivationTypeNone(0), - NSUserNotificationActivationTypeContentsClicked(1), - NSUserNotificationActivationTypeActionButtonClicked(2), - NSUserNotificationActivationTypeReplied(3), - NSUserNotificationActivationTypeAdditionalActionClicked(4); - - final int value; - const NSUserNotificationActivationType(this.value); - - static NSUserNotificationActivationType fromValue(int value) => - switch (value) { - 0 => NSUserNotificationActivationTypeNone, - 1 => NSUserNotificationActivationTypeContentsClicked, - 2 => NSUserNotificationActivationTypeActionButtonClicked, - 3 => NSUserNotificationActivationTypeReplied, - 4 => NSUserNotificationActivationTypeAdditionalActionClicked, - _ => throw ArgumentError( - 'Unknown value for NSUserNotificationActivationType: $value', - ), - }; -} - -/// WARNING: NSUserNotificationCenter is a stub. To generate bindings for this class, include -/// NSUserNotificationCenter in your config's objc-interfaces list. -/// -/// NSUserNotificationCenter -@Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', -) -extension type NSUserNotificationCenter._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSUserNotificationCenter] that points to the same underlying object as [other]. - NSUserNotificationCenter.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSUserNotificationCenter', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - } - - /// Constructs a [NSUserNotificationCenter] that wraps the given raw object pointer. - NSUserNotificationCenter.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSUserNotificationCenter', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - } -} - -/// NSUserNotificationCenterDelegate -extension type NSUserNotificationCenterDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSUserNotificationCenterDelegate] that points to the same underlying object as [other]. - NSUserNotificationCenterDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSUserNotificationCenterDelegate] that wraps the given raw object pointer. - NSUserNotificationCenterDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSUserNotificationCenterDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSUserNotificationCenterDelegate, - ); - } -} - -extension NSUserNotificationCenterDelegate$Methods - on NSUserNotificationCenterDelegate { - /// userNotificationCenter:didActivateNotification: - @Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', - ) - void userNotificationCenter( - NSUserNotificationCenter center, { - required NSUserNotification didActivateNotification, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = center.ref; - final _$$ref$2 = didActivateNotification.ref; - objc.checkOsVersionInternal( - 'NSUserNotificationCenterDelegate.userNotificationCenter:didActivateNotification:', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_userNotificationCenter_didActivateNotification_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserNotificationCenterDelegate', - 'userNotificationCenter:didActivateNotification:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_userNotificationCenter_didActivateNotification_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// userNotificationCenter:didDeliverNotification: - @Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', - ) - void userNotificationCenter$1( - NSUserNotificationCenter center, { - required NSUserNotification didDeliverNotification, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = center.ref; - final _$$ref$2 = didDeliverNotification.ref; - objc.checkOsVersionInternal( - 'NSUserNotificationCenterDelegate.userNotificationCenter:didDeliverNotification:', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_userNotificationCenter_didDeliverNotification_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserNotificationCenterDelegate', - 'userNotificationCenter:didDeliverNotification:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_userNotificationCenter_didDeliverNotification_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// userNotificationCenter:shouldPresentNotification: - @Deprecated( - 'All NSUserNotifications API should be replaced with UserNotifications.frameworks API', - ) - bool userNotificationCenter$2( - NSUserNotificationCenter center, { - required NSUserNotification shouldPresentNotification, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = center.ref; - final _$$ref$2 = shouldPresentNotification.ref; - objc.checkOsVersionInternal( - 'NSUserNotificationCenterDelegate.userNotificationCenter:shouldPresentNotification:', - iOS: (true, null), - macOS: (false, (10, 8, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_userNotificationCenter_shouldPresentNotification_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSUserNotificationCenterDelegate', - 'userNotificationCenter:shouldPresentNotification:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_userNotificationCenter_shouldPresentNotification_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSUserNotificationCenterDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => objc.Protocol.fromPointer( - _protocol_NSUserNotificationCenterDelegate.cast(), - ); - - /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserNotificationCenterDelegate implement({ - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserNotificationCenterDelegate', - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implement(builder, userNotificationCenter_didActivateNotification_); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implement(builder, userNotificationCenter_didDeliverNotification_); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - return NSUserNotificationCenterDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implement(builder, userNotificationCenter_didActivateNotification_); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implement(builder, userNotificationCenter_didDeliverNotification_); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserNotificationCenterDelegate implementAsListener({ - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserNotificationCenterDelegate', - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implementAsListener( - builder, - userNotificationCenter_didActivateNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implementAsListener( - builder, - userNotificationCenter_didDeliverNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - return NSUserNotificationCenterDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implementAsListener( - builder, - userNotificationCenter_didActivateNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implementAsListener( - builder, - userNotificationCenter_didDeliverNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSUserNotificationCenterDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSUserNotificationCenterDelegate implementAsBlocking({ - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSUserNotificationCenterDelegate', - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implementAsBlocking( - builder, - userNotificationCenter_didActivateNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implementAsBlocking( - builder, - userNotificationCenter_didDeliverNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - return NSUserNotificationCenterDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSUserNotificationCenterDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didActivateNotification_, - void Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_didDeliverNotification_, - bool Function(NSUserNotificationCenter, NSUserNotification)? - userNotificationCenter_shouldPresentNotification_, - bool $keepIsolateAlive = true, - }) { - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didActivateNotification_ - .implementAsBlocking( - builder, - userNotificationCenter_didActivateNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_didDeliverNotification_ - .implementAsBlocking( - builder, - userNotificationCenter_didDeliverNotification_, - ); - NSUserNotificationCenterDelegate$Builder - .userNotificationCenter_shouldPresentNotification_ - .implement(builder, userNotificationCenter_shouldPresentNotification_); - builder.addProtocol($protocol); - } - - /// userNotificationCenter:didActivateNotification: - static final userNotificationCenter_didActivateNotification_ = - objc.ObjCProtocolListenableMethod< - void Function(NSUserNotificationCenter, NSUserNotification) - >( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_didActivateNotification_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_didActivateNotification_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.listener( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.blocking( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - ); - - /// userNotificationCenter:didDeliverNotification: - static final userNotificationCenter_didDeliverNotification_ = - objc.ObjCProtocolListenableMethod< - void Function(NSUserNotificationCenter, NSUserNotification) - >( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_didDeliverNotification_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_didDeliverNotification_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.listener( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - (void Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification.blocking( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - ); - - /// userNotificationCenter:shouldPresentNotification: - static final userNotificationCenter_shouldPresentNotification_ = - objc.ObjCProtocolMethod< - bool Function(NSUserNotificationCenter, NSUserNotification) - >( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_shouldPresentNotification_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSUserNotificationCenterDelegate, - _sel_userNotificationCenter_shouldPresentNotification_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSUserNotificationCenter, NSUserNotification) func) => - ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification.fromFunction( - ( - ffi.Pointer _, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) => func(arg1, arg2), - ), - ); -} - -typedef NSUserScriptTaskCompletionHandler = ffi.Pointer; -typedef DartNSUserScriptTaskCompletionHandler = - objc.ObjCBlock; -typedef NSUserUnixTaskCompletionHandler = ffi.Pointer; -typedef DartNSUserUnixTaskCompletionHandler = - objc.ObjCBlock; - -const int NSValidationErrorMaximum = 2047; - -const int NSValidationErrorMinimum = 1024; - -/// NSValueCreation -extension NSValueCreation on objc.NSValue { - /// value:withObjCType: - static objc.NSValue value( - ffi.Pointer value, { - required ffi.Pointer withObjCType, - }) { - final $ret = _objc_msgSend_e9mncn( - _class_NSValue, - _sel_value_withObjCType_, - value, - withObjCType, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } - - /// valueWithBytes:objCType: - static objc.NSValue valueWithBytes( - ffi.Pointer value, { - required ffi.Pointer objCType, - }) { - final $ret = _objc_msgSend_e9mncn( - _class_NSValue, - _sel_valueWithBytes_objCType_, - value, - objCType, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } -} - -/// NSValueExtensionMethods -extension NSValueExtensionMethods on objc.NSValue { - /// isEqualToValue: - bool isEqualToValue(objc.NSValue value) { - final _$$ref = object$.ref; - final _$$ref$1 = value.ref; - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_isEqualToValue_, - _$$ref$1.pointer, - ); - } - - /// nonretainedObjectValue - objc.ObjCObject? get nonretainedObjectValue { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_nonretainedObjectValue, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// pointerValue - ffi.Pointer get pointerValue { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_pointerValue); - } - - /// valueWithNonretainedObject: - static objc.NSValue valueWithNonretainedObject(objc.ObjCObject? anObject) { - final _$$ref = anObject?.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSValue, - _sel_valueWithNonretainedObject_, - _$$ref?.pointer ?? ffi.nullptr, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } - - /// valueWithPointer: - static objc.NSValue valueWithPointer(ffi.Pointer pointer) { - final $ret = _objc_msgSend_1mbt9g9( - _class_NSValue, - _sel_valueWithPointer_, - pointer, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } -} - -/// NSValueGeometryExtensions -extension NSValueGeometryExtensions on objc.NSValue { - /// edgeInsetsValue - objc.NSEdgeInsets get edgeInsetsValue { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSValue.edgeInsetsValue', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_sl0cgwStret($ptr, _$$ref.pointer, _sel_edgeInsetsValue) - : $ptr.ref = _objc_msgSend_sl0cgw(_$$ref.pointer, _sel_edgeInsetsValue); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// pointValue - NSPoint get pointValue { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1uwdhlkStret($ptr, _$$ref.pointer, _sel_pointValue) - : $ptr.ref = _objc_msgSend_1uwdhlk(_$$ref.pointer, _sel_pointValue); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// rectValue - NSRect get rectValue { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_bu1hbwStret($ptr, _$$ref.pointer, _sel_rectValue) - : $ptr.ref = _objc_msgSend_bu1hbw(_$$ref.pointer, _sel_rectValue); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// sizeValue - NSSize get sizeValue { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_sizeValue) - : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_sizeValue); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// valueWithEdgeInsets: - static objc.NSValue valueWithEdgeInsets(objc.NSEdgeInsets insets) { - objc.checkOsVersionInternal( - 'NSValue.valueWithEdgeInsets:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $ret = _objc_msgSend_sax6zm( - _class_NSValue, - _sel_valueWithEdgeInsets_, - insets, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } - - /// valueWithPoint: - static objc.NSValue valueWithPoint(NSPoint point) { - final $ret = _objc_msgSend_wgkxx2( - _class_NSValue, - _sel_valueWithPoint_, - point, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } - - /// valueWithRect: - static objc.NSValue valueWithRect(NSRect rect) { - final $ret = _objc_msgSend_15yz4e6( - _class_NSValue, - _sel_valueWithRect_, - rect, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } - - /// valueWithSize: - static objc.NSValue valueWithSize(NSSize size) { - final $ret = _objc_msgSend_1c2zpn3( - _class_NSValue, - _sel_valueWithSize_, - size, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } -} - -/// NSValueRangeExtensions -extension NSValueRangeExtensions on objc.NSValue { - /// rangeValue - NSRange get rangeValue { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_rangeValue) - : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_rangeValue); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// valueWithRange: - static objc.NSValue valueWithRange(NSRange range) { - final $ret = _objc_msgSend_1k1o1s7( - _class_NSValue, - _sel_valueWithRange_, - range, - ); - return objc.NSValue.fromPointer($ret, retain: true, release: true); - } -} - -typedef NSValueTransformerName = ffi.Pointer; -typedef DartNSValueTransformerName = objc.NSString; - -/// WARNING: NSView is a stub. To generate bindings for this class, include -/// NSView in your config's objc-interfaces list. -/// -/// NSView -extension type NSView._(objc.ObjCObject object$) implements objc.ObjCObject { - /// Constructs a [NSView] that points to the same underlying object as [other]. - NSView.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSView] that wraps the given raw object pointer. - NSView.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -sealed class NSVolumeEnumerationOptions { - static const NSVolumeEnumerationSkipHiddenVolumes = 2; - static const NSVolumeEnumerationProduceFileReferenceURLs = 4; -} - -enum NSWhoseSubelementIdentifier { - NSIndexSubelement(0), - NSEverySubelement(1), - NSMiddleSubelement(2), - NSRandomSubelement(3), - NSNoSubelement(4); - - final int value; - const NSWhoseSubelementIdentifier(this.value); - - static NSWhoseSubelementIdentifier fromValue(int value) => switch (value) { - 0 => NSIndexSubelement, - 1 => NSEverySubelement, - 2 => NSMiddleSubelement, - 3 => NSRandomSubelement, - 4 => NSNoSubelement, - _ => throw ArgumentError( - 'Unknown value for NSWhoseSubelementIdentifier: $value', - ), - }; -} - -@Deprecated('Not supported') -const int NSWindows95OperatingSystem = 2; - -const int NSWindowsCP1250StringEncoding = 15; - -const int NSWindowsCP1251StringEncoding = 11; - -const int NSWindowsCP1252StringEncoding = 12; - -const int NSWindowsCP1253StringEncoding = 13; - -const int NSWindowsCP1254StringEncoding = 14; - -@Deprecated('Not supported') -const int NSWindowsNTOperatingSystem = 1; - -@Deprecated('Deprecated') -const int NSWrapCalendarComponents = 1; - -enum NSXMLDTDNodeKind { - NSXMLEntityGeneralKind(1), - NSXMLEntityParsedKind(2), - NSXMLEntityUnparsedKind(3), - NSXMLEntityParameterKind(4), - NSXMLEntityPredefined(5), - NSXMLAttributeCDATAKind(6), - NSXMLAttributeIDKind(7), - NSXMLAttributeIDRefKind(8), - NSXMLAttributeIDRefsKind(9), - NSXMLAttributeEntityKind(10), - NSXMLAttributeEntitiesKind(11), - NSXMLAttributeNMTokenKind(12), - NSXMLAttributeNMTokensKind(13), - NSXMLAttributeEnumerationKind(14), - NSXMLAttributeNotationKind(15), - NSXMLElementDeclarationUndefinedKind(16), - NSXMLElementDeclarationEmptyKind(17), - NSXMLElementDeclarationAnyKind(18), - NSXMLElementDeclarationMixedKind(19), - NSXMLElementDeclarationElementKind(20); - - final int value; - const NSXMLDTDNodeKind(this.value); - - static NSXMLDTDNodeKind fromValue(int value) => switch (value) { - 1 => NSXMLEntityGeneralKind, - 2 => NSXMLEntityParsedKind, - 3 => NSXMLEntityUnparsedKind, - 4 => NSXMLEntityParameterKind, - 5 => NSXMLEntityPredefined, - 6 => NSXMLAttributeCDATAKind, - 7 => NSXMLAttributeIDKind, - 8 => NSXMLAttributeIDRefKind, - 9 => NSXMLAttributeIDRefsKind, - 10 => NSXMLAttributeEntityKind, - 11 => NSXMLAttributeEntitiesKind, - 12 => NSXMLAttributeNMTokenKind, - 13 => NSXMLAttributeNMTokensKind, - 14 => NSXMLAttributeEnumerationKind, - 15 => NSXMLAttributeNotationKind, - 16 => NSXMLElementDeclarationUndefinedKind, - 17 => NSXMLElementDeclarationEmptyKind, - 18 => NSXMLElementDeclarationAnyKind, - 19 => NSXMLElementDeclarationMixedKind, - 20 => NSXMLElementDeclarationElementKind, - _ => throw ArgumentError('Unknown value for NSXMLDTDNodeKind: $value'), - }; -} - -enum NSXMLDocumentContentKind { - NSXMLDocumentXMLKind(0), - NSXMLDocumentXHTMLKind(1), - NSXMLDocumentHTMLKind(2), - NSXMLDocumentTextKind(3); - - final int value; - const NSXMLDocumentContentKind(this.value); - - static NSXMLDocumentContentKind fromValue(int value) => switch (value) { - 0 => NSXMLDocumentXMLKind, - 1 => NSXMLDocumentXHTMLKind, - 2 => NSXMLDocumentHTMLKind, - 3 => NSXMLDocumentTextKind, - _ => throw ArgumentError( - 'Unknown value for NSXMLDocumentContentKind: $value', - ), - }; -} - -/// WARNING: NSXMLElement is a stub. To generate bindings for this class, include -/// NSXMLElement in your config's objc-interfaces list. -/// -/// NSXMLElement -extension type NSXMLElement._(objc.ObjCObject object$) - implements objc.ObjCObject, NSXMLNode { - /// Constructs a [NSXMLElement] that points to the same underlying object as [other]. - NSXMLElement.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSXMLElement] that wraps the given raw object pointer. - NSXMLElement.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// WARNING: NSXMLNode is a stub. To generate bindings for this class, include -/// NSXMLNode in your config's objc-interfaces list. -/// -/// NSXMLNode -extension type NSXMLNode._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCopying { - /// Constructs a [NSXMLNode] that points to the same underlying object as [other]. - NSXMLNode.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSXMLNode] that wraps the given raw object pointer. - NSXMLNode.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -enum NSXMLNodeKind { - NSXMLInvalidKind(0), - NSXMLDocumentKind(1), - NSXMLElementKind(2), - NSXMLAttributeKind(3), - NSXMLNamespaceKind(4), - NSXMLProcessingInstructionKind(5), - NSXMLCommentKind(6), - NSXMLTextKind(7), - NSXMLDTDKind(8), - NSXMLEntityDeclarationKind(9), - NSXMLAttributeDeclarationKind(10), - NSXMLElementDeclarationKind(11), - NSXMLNotationDeclarationKind(12); - - final int value; - const NSXMLNodeKind(this.value); - - static NSXMLNodeKind fromValue(int value) => switch (value) { - 0 => NSXMLInvalidKind, - 1 => NSXMLDocumentKind, - 2 => NSXMLElementKind, - 3 => NSXMLAttributeKind, - 4 => NSXMLNamespaceKind, - 5 => NSXMLProcessingInstructionKind, - 6 => NSXMLCommentKind, - 7 => NSXMLTextKind, - 8 => NSXMLDTDKind, - 9 => NSXMLEntityDeclarationKind, - 10 => NSXMLAttributeDeclarationKind, - 11 => NSXMLElementDeclarationKind, - 12 => NSXMLNotationDeclarationKind, - _ => throw ArgumentError('Unknown value for NSXMLNodeKind: $value'), - }; -} - -sealed class NSXMLNodeOptions { - static const NSXMLNodeOptionsNone = 0; - static const NSXMLNodeIsCDATA = 1; - static const NSXMLNodeExpandEmptyElement = 2; - static const NSXMLNodeCompactEmptyElement = 4; - static const NSXMLNodeUseSingleQuotes = 8; - static const NSXMLNodeUseDoubleQuotes = 16; - static const NSXMLNodeNeverEscapeContents = 32; - static const NSXMLDocumentTidyHTML = 512; - static const NSXMLDocumentTidyXML = 1024; - static const NSXMLDocumentValidate = 8192; - static const NSXMLNodeLoadExternalEntitiesAlways = 16384; - static const NSXMLNodeLoadExternalEntitiesSameOriginOnly = 32768; - static const NSXMLNodeLoadExternalEntitiesNever = 524288; - static const NSXMLDocumentXInclude = 65536; - static const NSXMLNodePrettyPrint = 131072; - static const NSXMLDocumentIncludeContentTypeDeclaration = 262144; - static const NSXMLNodePreserveNamespaceOrder = 1048576; - static const NSXMLNodePreserveAttributeOrder = 2097152; - static const NSXMLNodePreserveEntities = 4194304; - static const NSXMLNodePreservePrefixes = 8388608; - static const NSXMLNodePreserveCDATA = 16777216; - static const NSXMLNodePreserveWhitespace = 33554432; - static const NSXMLNodePreserveDTD = 67108864; - static const NSXMLNodePreserveCharacterReferences = 134217728; - static const NSXMLNodePromoteSignificantWhitespace = 268435456; - static const NSXMLNodePreserveEmptyElements = 6; - static const NSXMLNodePreserveQuotes = 24; - static const NSXMLNodePreserveAll = 4293918750; -} - -/// WARNING: NSXMLParser is a stub. To generate bindings for this class, include -/// NSXMLParser in your config's objc-interfaces list. -/// -/// NSXMLParser -extension type NSXMLParser._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSXMLParser] that points to the same underlying object as [other]. - NSXMLParser.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSXMLParser] that wraps the given raw object pointer. - NSXMLParser.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// NSXMLParserDelegate -extension type NSXMLParserDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSXMLParserDelegate] that points to the same underlying object as [other]. - NSXMLParserDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSXMLParserDelegate] that wraps the given raw object pointer. - NSXMLParserDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSXMLParserDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSXMLParserDelegate, - ); - } -} - -extension NSXMLParserDelegate$Methods on NSXMLParserDelegate { - /// parser:didEndElement:namespaceURI:qualifiedName: - void parser( - NSXMLParser parser, { - required objc.NSString didEndElement, - objc.NSString? namespaceURI, - objc.NSString? qualifiedName, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = didEndElement.ref; - final _$$ref$3 = namespaceURI?.ref; - final _$$ref$4 = qualifiedName?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_didEndElement_namespaceURI_qualifiedName_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:didEndElement:namespaceURI:qualifiedName:', - ); - } - _objc_msgSend_mlcr8l( - _$$ref.pointer, - _sel_parser_didEndElement_namespaceURI_qualifiedName_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - ); - } - - /// parser:didEndMappingPrefix: - void parser$1( - NSXMLParser parser, { - required objc.NSString didEndMappingPrefix, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = didEndMappingPrefix.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_didEndMappingPrefix_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:didEndMappingPrefix:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_parser_didEndMappingPrefix_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:didStartElement:namespaceURI:qualifiedName:attributes: - void parser$2( - NSXMLParser parser, { - required objc.NSString didStartElement, - objc.NSString? namespaceURI, - objc.NSString? qualifiedName, - required objc.NSDictionary attributes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = didStartElement.ref; - final _$$ref$3 = namespaceURI?.ref; - final _$$ref$4 = qualifiedName?.ref; - final _$$ref$5 = attributes.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:didStartElement:namespaceURI:qualifiedName:attributes:', - ); - } - _objc_msgSend_1wqutdn( - _$$ref.pointer, - _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - _$$ref$5.pointer, - ); - } - - /// parser:didStartMappingPrefix:toURI: - void parser$3( - NSXMLParser parser, { - required objc.NSString didStartMappingPrefix, - required objc.NSString toURI, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = didStartMappingPrefix.ref; - final _$$ref$3 = toURI.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_didStartMappingPrefix_toURI_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:didStartMappingPrefix:toURI:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_parser_didStartMappingPrefix_toURI_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: - void parser$4( - NSXMLParser parser, { - required objc.NSString foundAttributeDeclarationWithName, - required objc.NSString forElement, - objc.NSString? type, - objc.NSString? defaultValue, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundAttributeDeclarationWithName.ref; - final _$$ref$3 = forElement.ref; - final _$$ref$4 = type?.ref; - final _$$ref$5 = defaultValue?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:', - ); - } - _objc_msgSend_1wqutdn( - _$$ref.pointer, - _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4?.pointer ?? ffi.nullptr, - _$$ref$5?.pointer ?? ffi.nullptr, - ); - } - - /// parser:foundCDATA: - void parser$5(NSXMLParser parser, {required objc.NSData foundCDATA}) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundCDATA.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_parser_foundCDATA_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundCDATA:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_parser_foundCDATA_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:foundCharacters: - void parser$6(NSXMLParser parser, {required objc.NSString foundCharacters}) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundCharacters.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundCharacters_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundCharacters:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_parser_foundCharacters_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:foundComment: - void parser$7(NSXMLParser parser, {required objc.NSString foundComment}) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundComment.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_parser_foundComment_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundComment:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_parser_foundComment_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:foundElementDeclarationWithName:model: - void parser$8( - NSXMLParser parser, { - required objc.NSString foundElementDeclarationWithName, - required objc.NSString model, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundElementDeclarationWithName.ref; - final _$$ref$3 = model.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundElementDeclarationWithName_model_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundElementDeclarationWithName:model:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_parser_foundElementDeclarationWithName_model_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } - - /// parser:foundExternalEntityDeclarationWithName:publicID:systemID: - void parser$9( - NSXMLParser parser, { - required objc.NSString foundExternalEntityDeclarationWithName, - objc.NSString? publicID, - objc.NSString? systemID, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundExternalEntityDeclarationWithName.ref; - final _$$ref$3 = publicID?.ref; - final _$$ref$4 = systemID?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundExternalEntityDeclarationWithName:publicID:systemID:', - ); - } - _objc_msgSend_mlcr8l( - _$$ref.pointer, - _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - ); - } - - /// parser:foundIgnorableWhitespace: - void parser$10( - NSXMLParser parser, { - required objc.NSString foundIgnorableWhitespace, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundIgnorableWhitespace.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundIgnorableWhitespace_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundIgnorableWhitespace:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_parser_foundIgnorableWhitespace_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:foundInternalEntityDeclarationWithName:value: - void parser$11( - NSXMLParser parser, { - required objc.NSString foundInternalEntityDeclarationWithName, - objc.NSString? value, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundInternalEntityDeclarationWithName.ref; - final _$$ref$3 = value?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundInternalEntityDeclarationWithName_value_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundInternalEntityDeclarationWithName:value:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_parser_foundInternalEntityDeclarationWithName_value_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// parser:foundNotationDeclarationWithName:publicID:systemID: - void parser$12( - NSXMLParser parser, { - required objc.NSString foundNotationDeclarationWithName, - objc.NSString? publicID, - objc.NSString? systemID, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundNotationDeclarationWithName.ref; - final _$$ref$3 = publicID?.ref; - final _$$ref$4 = systemID?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundNotationDeclarationWithName:publicID:systemID:', - ); - } - _objc_msgSend_mlcr8l( - _$$ref.pointer, - _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - ); - } - - /// parser:foundProcessingInstructionWithTarget:data: - void parser$13( - NSXMLParser parser, { - required objc.NSString foundProcessingInstructionWithTarget, - objc.NSString? data, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundProcessingInstructionWithTarget.ref; - final _$$ref$3 = data?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundProcessingInstructionWithTarget_data_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundProcessingInstructionWithTarget:data:', - ); - } - _objc_msgSend_r8gdi7( - _$$ref.pointer, - _sel_parser_foundProcessingInstructionWithTarget_data_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } - - /// parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName: - void parser$14( - NSXMLParser parser, { - required objc.NSString foundUnparsedEntityDeclarationWithName, - objc.NSString? publicID, - objc.NSString? systemID, - objc.NSString? notationName, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = foundUnparsedEntityDeclarationWithName.ref; - final _$$ref$3 = publicID?.ref; - final _$$ref$4 = systemID?.ref; - final _$$ref$5 = notationName?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:', - ); - } - _objc_msgSend_1wqutdn( - _$$ref.pointer, - _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - _$$ref$5?.pointer ?? ffi.nullptr, - ); - } - - /// parser:parseErrorOccurred: - void parser$15( - NSXMLParser parser, { - required objc.NSError parseErrorOccurred, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = parseErrorOccurred.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_parseErrorOccurred_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:parseErrorOccurred:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_parser_parseErrorOccurred_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parser:resolveExternalEntityName:systemID: - objc.NSData? parser$16( - NSXMLParser parser, { - required objc.NSString resolveExternalEntityName, - objc.NSString? systemID, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = resolveExternalEntityName.ref; - final _$$ref$3 = systemID?.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_resolveExternalEntityName_systemID_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:resolveExternalEntityName:systemID:', - ); - } - final $ret = _objc_msgSend_11spmsz( - _$$ref.pointer, - _sel_parser_resolveExternalEntityName_systemID_, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// parser:validationErrorOccurred: - void parser$17( - NSXMLParser parser, { - required objc.NSError validationErrorOccurred, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - final _$$ref$2 = validationErrorOccurred.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parser_validationErrorOccurred_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parser:validationErrorOccurred:', - ); - } - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_parser_validationErrorOccurred_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// parserDidEndDocument: - void parserDidEndDocument(NSXMLParser parser) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - if (!objc.respondsToSelector(_$$ref.pointer, _sel_parserDidEndDocument_)) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parserDidEndDocument:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_parserDidEndDocument_, - _$$ref$1.pointer, - ); - } - - /// parserDidStartDocument: - void parserDidStartDocument(NSXMLParser parser) { - final _$$ref = object$.ref; - final _$$ref$1 = parser.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_parserDidStartDocument_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXMLParserDelegate', - 'parserDidStartDocument:', - ); - } - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_parserDidStartDocument_, - _$$ref$1.pointer, - ); - } -} - -interface class NSXMLParserDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSXMLParserDelegate.cast()); - - /// Builds an object that implements the NSXMLParserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSXMLParserDelegate implement({ - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implement(builder, parser_didEndElement_namespaceURI_qualifiedName_); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implement( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implement( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_.implement( - builder, - parser_didStartMappingPrefix_toURI_, - ); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implement( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implement( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implement( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implement( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implement(builder, parser_foundElementDeclarationWithName_model_); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implement( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_.implement( - builder, - parser_foundIgnorableWhitespace_, - ); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implement( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implement( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implement(builder, parser_foundProcessingInstructionWithTarget_data_); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implement( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implement( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_.implement( - builder, - parser_validationErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implement( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implement( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - return NSXMLParserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSXMLParserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implement(builder, parser_didEndElement_namespaceURI_qualifiedName_); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implement( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implement( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_.implement( - builder, - parser_didStartMappingPrefix_toURI_, - ); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implement( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implement( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implement( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implement( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implement(builder, parser_foundElementDeclarationWithName_model_); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implement( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_.implement( - builder, - parser_foundIgnorableWhitespace_, - ); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implement( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implement( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implement(builder, parser_foundProcessingInstructionWithTarget_data_); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implement( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implement( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_.implement( - builder, - parser_validationErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implement( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implement( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSXMLParserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSXMLParserDelegate implementAsListener({ - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implementAsListener( - builder, - parser_didEndElement_namespaceURI_qualifiedName_, - ); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsListener( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implementAsListener( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ - .implementAsListener(builder, parser_didStartMappingPrefix_toURI_); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implementAsListener( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsListener( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsListener( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implementAsListener( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implementAsListener( - builder, - parser_foundElementDeclarationWithName_model_, - ); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implementAsListener( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ - .implementAsListener(builder, parser_foundIgnorableWhitespace_); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implementAsListener( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implementAsListener( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implementAsListener( - builder, - parser_foundProcessingInstructionWithTarget_data_, - ); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implementAsListener( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsListener( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ - .implementAsListener(builder, parser_validationErrorOccurred_); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsListener( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsListener( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - return NSXMLParserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSXMLParserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implementAsListener( - builder, - parser_didEndElement_namespaceURI_qualifiedName_, - ); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsListener( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implementAsListener( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ - .implementAsListener(builder, parser_didStartMappingPrefix_toURI_); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implementAsListener( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsListener( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsListener( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implementAsListener( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implementAsListener( - builder, - parser_foundElementDeclarationWithName_model_, - ); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implementAsListener( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ - .implementAsListener(builder, parser_foundIgnorableWhitespace_); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implementAsListener( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implementAsListener( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implementAsListener( - builder, - parser_foundProcessingInstructionWithTarget_data_, - ); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implementAsListener( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsListener( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ - .implementAsListener(builder, parser_validationErrorOccurred_); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsListener( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsListener( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSXMLParserDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSXMLParserDelegate implementAsBlocking({ - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSXMLParserDelegate'); - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implementAsBlocking( - builder, - parser_didEndElement_namespaceURI_qualifiedName_, - ); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsBlocking( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implementAsBlocking( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ - .implementAsBlocking(builder, parser_didStartMappingPrefix_toURI_); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implementAsBlocking( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsBlocking( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsBlocking( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implementAsBlocking( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implementAsBlocking( - builder, - parser_foundElementDeclarationWithName_model_, - ); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implementAsBlocking( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ - .implementAsBlocking(builder, parser_foundIgnorableWhitespace_); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implementAsBlocking( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implementAsBlocking( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implementAsBlocking( - builder, - parser_foundProcessingInstructionWithTarget_data_, - ); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implementAsBlocking( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsBlocking( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ - .implementAsBlocking(builder, parser_validationErrorOccurred_); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsBlocking( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsBlocking( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - return NSXMLParserDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSXMLParserDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_didEndElement_namespaceURI_qualifiedName_, - void Function(NSXMLParser, objc.NSString)? parser_didEndMappingPrefix_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - )? - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_didStartMappingPrefix_toURI_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - )? - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - void Function(NSXMLParser, objc.NSData)? parser_foundCDATA_, - void Function(NSXMLParser, objc.NSString)? parser_foundCharacters_, - void Function(NSXMLParser, objc.NSString)? parser_foundComment_, - void Function(NSXMLParser, objc.NSString, objc.NSString)? - parser_foundElementDeclarationWithName_model_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString)? parser_foundIgnorableWhitespace_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundInternalEntityDeclarationWithName_value_, - void Function(NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)? - parser_foundNotationDeclarationWithName_publicID_systemID_, - void Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_foundProcessingInstructionWithTarget_data_, - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - )? - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - void Function(NSXMLParser, objc.NSError)? parser_parseErrorOccurred_, - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?)? - parser_resolveExternalEntityName_systemID_, - void Function(NSXMLParser, objc.NSError)? parser_validationErrorOccurred_, - void Function(NSXMLParser)? parserDidEndDocument_, - void Function(NSXMLParser)? parserDidStartDocument_, - bool $keepIsolateAlive = true, - }) { - NSXMLParserDelegate$Builder.parser_didEndElement_namespaceURI_qualifiedName_ - .implementAsBlocking( - builder, - parser_didEndElement_namespaceURI_qualifiedName_, - ); - NSXMLParserDelegate$Builder.parser_didEndMappingPrefix_.implementAsBlocking( - builder, - parser_didEndMappingPrefix_, - ); - NSXMLParserDelegate$Builder - .parser_didStartElement_namespaceURI_qualifiedName_attributes_ - .implementAsBlocking( - builder, - parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ); - NSXMLParserDelegate$Builder.parser_didStartMappingPrefix_toURI_ - .implementAsBlocking(builder, parser_didStartMappingPrefix_toURI_); - NSXMLParserDelegate$Builder - .parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ - .implementAsBlocking( - builder, - parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ); - NSXMLParserDelegate$Builder.parser_foundCDATA_.implementAsBlocking( - builder, - parser_foundCDATA_, - ); - NSXMLParserDelegate$Builder.parser_foundCharacters_.implementAsBlocking( - builder, - parser_foundCharacters_, - ); - NSXMLParserDelegate$Builder.parser_foundComment_.implementAsBlocking( - builder, - parser_foundComment_, - ); - NSXMLParserDelegate$Builder.parser_foundElementDeclarationWithName_model_ - .implementAsBlocking( - builder, - parser_foundElementDeclarationWithName_model_, - ); - NSXMLParserDelegate$Builder - .parser_foundExternalEntityDeclarationWithName_publicID_systemID_ - .implementAsBlocking( - builder, - parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder.parser_foundIgnorableWhitespace_ - .implementAsBlocking(builder, parser_foundIgnorableWhitespace_); - NSXMLParserDelegate$Builder - .parser_foundInternalEntityDeclarationWithName_value_ - .implementAsBlocking( - builder, - parser_foundInternalEntityDeclarationWithName_value_, - ); - NSXMLParserDelegate$Builder - .parser_foundNotationDeclarationWithName_publicID_systemID_ - .implementAsBlocking( - builder, - parser_foundNotationDeclarationWithName_publicID_systemID_, - ); - NSXMLParserDelegate$Builder - .parser_foundProcessingInstructionWithTarget_data_ - .implementAsBlocking( - builder, - parser_foundProcessingInstructionWithTarget_data_, - ); - NSXMLParserDelegate$Builder - .parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ - .implementAsBlocking( - builder, - parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ); - NSXMLParserDelegate$Builder.parser_parseErrorOccurred_.implementAsBlocking( - builder, - parser_parseErrorOccurred_, - ); - NSXMLParserDelegate$Builder.parser_resolveExternalEntityName_systemID_ - .implement(builder, parser_resolveExternalEntityName_systemID_); - NSXMLParserDelegate$Builder.parser_validationErrorOccurred_ - .implementAsBlocking(builder, parser_validationErrorOccurred_); - NSXMLParserDelegate$Builder.parserDidEndDocument_.implementAsBlocking( - builder, - parserDidEndDocument_, - ); - NSXMLParserDelegate$Builder.parserDidStartDocument_.implementAsBlocking( - builder, - parserDidStartDocument_, - ); - builder.addProtocol($protocol); - } - - /// parser:didEndElement:namespaceURI:qualifiedName: - static final parser_didEndElement_namespaceURI_qualifiedName_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_didEndElement_namespaceURI_qualifiedName_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_8jfq1p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_didEndElement_namespaceURI_qualifiedName_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// parser:didEndMappingPrefix: - static final parser_didEndMappingPrefix_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_didEndMappingPrefix_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_didEndMappingPrefix_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - ); - - /// parser:didStartElement:namespaceURI:qualifiedName:attributes: - static final parser_didStartElement_namespaceURI_qualifiedName_attributes_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_m09tr7) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSDictionary arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSDictionary arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSDictionary arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// parser:didStartMappingPrefix:toURI: - static final parser_didStartMappingPrefix_toURI_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_didStartMappingPrefix_toURI_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_didStartMappingPrefix_toURI_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: - static final parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_m09tr7) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// parser:foundCDATA: - static final parser_foundCDATA_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSData) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundCDATA_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundCDATA_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSData) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSData arg2) => - func(arg1, arg2), - ), - ); - - /// parser:foundCharacters: - static final parser_foundCharacters_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundCharacters_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundCharacters_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - ); - - /// parser:foundComment: - static final parser_foundComment_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundComment_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundComment_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - ); - - /// parser:foundElementDeclarationWithName:model: - static final parser_foundElementDeclarationWithName_model_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundElementDeclarationWithName_model_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundElementDeclarationWithName_model_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// parser:foundExternalEntityDeclarationWithName:publicID:systemID: - static final parser_foundExternalEntityDeclarationWithName_publicID_systemID_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_8jfq1p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// parser:foundIgnorableWhitespace: - static final parser_foundIgnorableWhitespace_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundIgnorableWhitespace_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundIgnorableWhitespace_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSString arg2) => - func(arg1, arg2), - ), - ); - - /// parser:foundInternalEntityDeclarationWithName:value: - static final parser_foundInternalEntityDeclarationWithName_value_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString, objc.NSString?) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundInternalEntityDeclarationWithName_value_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundInternalEntityDeclarationWithName_value_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// parser:foundNotationDeclarationWithName:publicID:systemID: - static final parser_foundNotationDeclarationWithName_publicID_systemID_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_8jfq1p) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundNotationDeclarationWithName_publicID_systemID_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); - - /// parser:foundProcessingInstructionWithTarget:data: - static final parser_foundProcessingInstructionWithTarget_data_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSString, objc.NSString?) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundProcessingInstructionWithTarget_data_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1tz5yf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundProcessingInstructionWithTarget_data_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - (void Function(NSXMLParser, objc.NSString, objc.NSString?) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName: - static final parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_m09tr7) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_, - isRequired: false, - isInstanceMethod: true, - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.listener( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ( - void Function( - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1.blocking( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) => func(arg1, arg2, arg3, arg4, arg5), - ), - ); - - /// parser:parseErrorOccurred: - static final parser_parseErrorOccurred_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSError) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_parseErrorOccurred_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_parseErrorOccurred_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - ); - - /// parser:resolveExternalEntityName:systemID: - static final parser_resolveExternalEntityName_systemID_ = - objc.ObjCProtocolMethod< - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_resolveExternalEntityName_systemID_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1yw2rcr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_resolveExternalEntityName_systemID_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.NSData? Function(NSXMLParser, objc.NSString, objc.NSString?) - func, - ) => - ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// parser:validationErrorOccurred: - static final parser_validationErrorOccurred_ = - objc.ObjCProtocolListenableMethod< - void Function(NSXMLParser, objc.NSError) - >( - _protocol_NSXMLParserDelegate, - _sel_parser_validationErrorOccurred_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parser_validationErrorOccurred_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.fromFunction( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.listener( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - (void Function(NSXMLParser, objc.NSError) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError.blocking( - (ffi.Pointer _, NSXMLParser arg1, objc.NSError arg2) => - func(arg1, arg2), - ), - ); - - /// parserDidEndDocument: - static final parserDidEndDocument_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSXMLParserDelegate, - _sel_parserDidEndDocument_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parserDidEndDocument_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.fromFunction( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.listener( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.blocking( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - ); - - /// parserDidStartDocument: - static final parserDidStartDocument_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSXMLParserDelegate, - _sel_parserDidStartDocument_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXMLParserDelegate, - _sel_parserDidStartDocument_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.fromFunction( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.listener( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - (void Function(NSXMLParser) func) => - ObjCBlock_ffiVoid_ffiVoid_NSXMLParser.blocking( - (ffi.Pointer _, NSXMLParser arg1) => func(arg1), - ), - ); -} - -enum NSXMLParserError { - NSXMLParserInternalError(1), - NSXMLParserOutOfMemoryError(2), - NSXMLParserDocumentStartError(3), - NSXMLParserEmptyDocumentError(4), - NSXMLParserPrematureDocumentEndError(5), - NSXMLParserInvalidHexCharacterRefError(6), - NSXMLParserInvalidDecimalCharacterRefError(7), - NSXMLParserInvalidCharacterRefError(8), - NSXMLParserInvalidCharacterError(9), - NSXMLParserCharacterRefAtEOFError(10), - NSXMLParserCharacterRefInPrologError(11), - NSXMLParserCharacterRefInEpilogError(12), - NSXMLParserCharacterRefInDTDError(13), - NSXMLParserEntityRefAtEOFError(14), - NSXMLParserEntityRefInPrologError(15), - NSXMLParserEntityRefInEpilogError(16), - NSXMLParserEntityRefInDTDError(17), - NSXMLParserParsedEntityRefAtEOFError(18), - NSXMLParserParsedEntityRefInPrologError(19), - NSXMLParserParsedEntityRefInEpilogError(20), - NSXMLParserParsedEntityRefInInternalSubsetError(21), - NSXMLParserEntityReferenceWithoutNameError(22), - NSXMLParserEntityReferenceMissingSemiError(23), - NSXMLParserParsedEntityRefNoNameError(24), - NSXMLParserParsedEntityRefMissingSemiError(25), - NSXMLParserUndeclaredEntityError(26), - NSXMLParserUnparsedEntityError(28), - NSXMLParserEntityIsExternalError(29), - NSXMLParserEntityIsParameterError(30), - NSXMLParserUnknownEncodingError(31), - NSXMLParserEncodingNotSupportedError(32), - NSXMLParserStringNotStartedError(33), - NSXMLParserStringNotClosedError(34), - NSXMLParserNamespaceDeclarationError(35), - NSXMLParserEntityNotStartedError(36), - NSXMLParserEntityNotFinishedError(37), - NSXMLParserLessThanSymbolInAttributeError(38), - NSXMLParserAttributeNotStartedError(39), - NSXMLParserAttributeNotFinishedError(40), - NSXMLParserAttributeHasNoValueError(41), - NSXMLParserAttributeRedefinedError(42), - NSXMLParserLiteralNotStartedError(43), - NSXMLParserLiteralNotFinishedError(44), - NSXMLParserCommentNotFinishedError(45), - NSXMLParserProcessingInstructionNotStartedError(46), - NSXMLParserProcessingInstructionNotFinishedError(47), - NSXMLParserNotationNotStartedError(48), - NSXMLParserNotationNotFinishedError(49), - NSXMLParserAttributeListNotStartedError(50), - NSXMLParserAttributeListNotFinishedError(51), - NSXMLParserMixedContentDeclNotStartedError(52), - NSXMLParserMixedContentDeclNotFinishedError(53), - NSXMLParserElementContentDeclNotStartedError(54), - NSXMLParserElementContentDeclNotFinishedError(55), - NSXMLParserXMLDeclNotStartedError(56), - NSXMLParserXMLDeclNotFinishedError(57), - NSXMLParserConditionalSectionNotStartedError(58), - NSXMLParserConditionalSectionNotFinishedError(59), - NSXMLParserExternalSubsetNotFinishedError(60), - NSXMLParserDOCTYPEDeclNotFinishedError(61), - NSXMLParserMisplacedCDATAEndStringError(62), - NSXMLParserCDATANotFinishedError(63), - NSXMLParserMisplacedXMLDeclarationError(64), - NSXMLParserSpaceRequiredError(65), - NSXMLParserSeparatorRequiredError(66), - NSXMLParserNMTOKENRequiredError(67), - NSXMLParserNAMERequiredError(68), - NSXMLParserPCDATARequiredError(69), - NSXMLParserURIRequiredError(70), - NSXMLParserPublicIdentifierRequiredError(71), - NSXMLParserLTRequiredError(72), - NSXMLParserGTRequiredError(73), - NSXMLParserLTSlashRequiredError(74), - NSXMLParserEqualExpectedError(75), - NSXMLParserTagNameMismatchError(76), - NSXMLParserUnfinishedTagError(77), - NSXMLParserStandaloneValueError(78), - NSXMLParserInvalidEncodingNameError(79), - NSXMLParserCommentContainsDoubleHyphenError(80), - NSXMLParserInvalidEncodingError(81), - NSXMLParserExternalStandaloneEntityError(82), - NSXMLParserInvalidConditionalSectionError(83), - NSXMLParserEntityValueRequiredError(84), - NSXMLParserNotWellBalancedError(85), - NSXMLParserExtraContentError(86), - NSXMLParserInvalidCharacterInEntityError(87), - NSXMLParserParsedEntityRefInInternalError(88), - NSXMLParserEntityRefLoopError(89), - NSXMLParserEntityBoundaryError(90), - NSXMLParserInvalidURIError(91), - NSXMLParserURIFragmentError(92), - NSXMLParserNoDTDError(94), - NSXMLParserDelegateAbortedParseError(512); - - final int value; - const NSXMLParserError(this.value); - - static NSXMLParserError fromValue(int value) => switch (value) { - 1 => NSXMLParserInternalError, - 2 => NSXMLParserOutOfMemoryError, - 3 => NSXMLParserDocumentStartError, - 4 => NSXMLParserEmptyDocumentError, - 5 => NSXMLParserPrematureDocumentEndError, - 6 => NSXMLParserInvalidHexCharacterRefError, - 7 => NSXMLParserInvalidDecimalCharacterRefError, - 8 => NSXMLParserInvalidCharacterRefError, - 9 => NSXMLParserInvalidCharacterError, - 10 => NSXMLParserCharacterRefAtEOFError, - 11 => NSXMLParserCharacterRefInPrologError, - 12 => NSXMLParserCharacterRefInEpilogError, - 13 => NSXMLParserCharacterRefInDTDError, - 14 => NSXMLParserEntityRefAtEOFError, - 15 => NSXMLParserEntityRefInPrologError, - 16 => NSXMLParserEntityRefInEpilogError, - 17 => NSXMLParserEntityRefInDTDError, - 18 => NSXMLParserParsedEntityRefAtEOFError, - 19 => NSXMLParserParsedEntityRefInPrologError, - 20 => NSXMLParserParsedEntityRefInEpilogError, - 21 => NSXMLParserParsedEntityRefInInternalSubsetError, - 22 => NSXMLParserEntityReferenceWithoutNameError, - 23 => NSXMLParserEntityReferenceMissingSemiError, - 24 => NSXMLParserParsedEntityRefNoNameError, - 25 => NSXMLParserParsedEntityRefMissingSemiError, - 26 => NSXMLParserUndeclaredEntityError, - 28 => NSXMLParserUnparsedEntityError, - 29 => NSXMLParserEntityIsExternalError, - 30 => NSXMLParserEntityIsParameterError, - 31 => NSXMLParserUnknownEncodingError, - 32 => NSXMLParserEncodingNotSupportedError, - 33 => NSXMLParserStringNotStartedError, - 34 => NSXMLParserStringNotClosedError, - 35 => NSXMLParserNamespaceDeclarationError, - 36 => NSXMLParserEntityNotStartedError, - 37 => NSXMLParserEntityNotFinishedError, - 38 => NSXMLParserLessThanSymbolInAttributeError, - 39 => NSXMLParserAttributeNotStartedError, - 40 => NSXMLParserAttributeNotFinishedError, - 41 => NSXMLParserAttributeHasNoValueError, - 42 => NSXMLParserAttributeRedefinedError, - 43 => NSXMLParserLiteralNotStartedError, - 44 => NSXMLParserLiteralNotFinishedError, - 45 => NSXMLParserCommentNotFinishedError, - 46 => NSXMLParserProcessingInstructionNotStartedError, - 47 => NSXMLParserProcessingInstructionNotFinishedError, - 48 => NSXMLParserNotationNotStartedError, - 49 => NSXMLParserNotationNotFinishedError, - 50 => NSXMLParserAttributeListNotStartedError, - 51 => NSXMLParserAttributeListNotFinishedError, - 52 => NSXMLParserMixedContentDeclNotStartedError, - 53 => NSXMLParserMixedContentDeclNotFinishedError, - 54 => NSXMLParserElementContentDeclNotStartedError, - 55 => NSXMLParserElementContentDeclNotFinishedError, - 56 => NSXMLParserXMLDeclNotStartedError, - 57 => NSXMLParserXMLDeclNotFinishedError, - 58 => NSXMLParserConditionalSectionNotStartedError, - 59 => NSXMLParserConditionalSectionNotFinishedError, - 60 => NSXMLParserExternalSubsetNotFinishedError, - 61 => NSXMLParserDOCTYPEDeclNotFinishedError, - 62 => NSXMLParserMisplacedCDATAEndStringError, - 63 => NSXMLParserCDATANotFinishedError, - 64 => NSXMLParserMisplacedXMLDeclarationError, - 65 => NSXMLParserSpaceRequiredError, - 66 => NSXMLParserSeparatorRequiredError, - 67 => NSXMLParserNMTOKENRequiredError, - 68 => NSXMLParserNAMERequiredError, - 69 => NSXMLParserPCDATARequiredError, - 70 => NSXMLParserURIRequiredError, - 71 => NSXMLParserPublicIdentifierRequiredError, - 72 => NSXMLParserLTRequiredError, - 73 => NSXMLParserGTRequiredError, - 74 => NSXMLParserLTSlashRequiredError, - 75 => NSXMLParserEqualExpectedError, - 76 => NSXMLParserTagNameMismatchError, - 77 => NSXMLParserUnfinishedTagError, - 78 => NSXMLParserStandaloneValueError, - 79 => NSXMLParserInvalidEncodingNameError, - 80 => NSXMLParserCommentContainsDoubleHyphenError, - 81 => NSXMLParserInvalidEncodingError, - 82 => NSXMLParserExternalStandaloneEntityError, - 83 => NSXMLParserInvalidConditionalSectionError, - 84 => NSXMLParserEntityValueRequiredError, - 85 => NSXMLParserNotWellBalancedError, - 86 => NSXMLParserExtraContentError, - 87 => NSXMLParserInvalidCharacterInEntityError, - 88 => NSXMLParserParsedEntityRefInInternalError, - 89 => NSXMLParserEntityRefLoopError, - 90 => NSXMLParserEntityBoundaryError, - 91 => NSXMLParserInvalidURIError, - 92 => NSXMLParserURIFragmentError, - 94 => NSXMLParserNoDTDError, - 512 => NSXMLParserDelegateAbortedParseError, - _ => throw ArgumentError('Unknown value for NSXMLParserError: $value'), - }; -} - -enum NSXMLParserExternalEntityResolvingPolicy { - NSXMLParserResolveExternalEntitiesNever(0), - NSXMLParserResolveExternalEntitiesNoNetwork(1), - NSXMLParserResolveExternalEntitiesSameOriginOnly(2), - NSXMLParserResolveExternalEntitiesAlways(3); - - final int value; - const NSXMLParserExternalEntityResolvingPolicy(this.value); - - static NSXMLParserExternalEntityResolvingPolicy fromValue(int value) => - switch (value) { - 0 => NSXMLParserResolveExternalEntitiesNever, - 1 => NSXMLParserResolveExternalEntitiesNoNetwork, - 2 => NSXMLParserResolveExternalEntitiesSameOriginOnly, - 3 => NSXMLParserResolveExternalEntitiesAlways, - _ => throw ArgumentError( - 'Unknown value for NSXMLParserExternalEntityResolvingPolicy: $value', - ), - }; -} - -/// NSXMLParserLocatorAdditions -extension NSXMLParserLocatorAdditions on NSXMLParser { - /// columnNumber - DartNSInteger get columnNumber { - final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_columnNumber); - } - - /// lineNumber - DartNSInteger get lineNumber { - final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_lineNumber); - } - - /// publicID - objc.NSString? get publicID { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_publicID); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// systemID - objc.NSString? get systemID { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_systemID); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -/// WARNING: NSXPCConnection is a stub. To generate bindings for this class, include -/// NSXPCConnection in your config's objc-interfaces list. -/// -/// NSXPCConnection -extension type NSXPCConnection._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, NSXPCProxyCreating { - /// Constructs a [NSXPCConnection] that points to the same underlying object as [other]. - NSXPCConnection.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSXPCConnection', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - } - - /// Constructs a [NSXPCConnection] that wraps the given raw object pointer. - NSXPCConnection.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSXPCConnection', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - } -} - -const int NSXPCConnectionCodeSigningRequirementFailure = 4102; - -const int NSXPCConnectionErrorMaximum = 4224; - -const int NSXPCConnectionErrorMinimum = 4096; - -const int NSXPCConnectionInterrupted = 4097; - -const int NSXPCConnectionInvalid = 4099; - -sealed class NSXPCConnectionOptions { - static const NSXPCConnectionPrivileged = 4096; -} - -const int NSXPCConnectionReplyInvalid = 4101; - -/// WARNING: NSXPCListener is a stub. To generate bindings for this class, include -/// NSXPCListener in your config's objc-interfaces list. -/// -/// NSXPCListener -extension type NSXPCListener._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [NSXPCListener] that points to the same underlying object as [other]. - NSXPCListener.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSXPCListener', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - } - - /// Constructs a [NSXPCListener] that wraps the given raw object pointer. - NSXPCListener.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSXPCListener', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - } -} - -/// NSXPCListenerDelegate -extension type NSXPCListenerDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSXPCListenerDelegate] that points to the same underlying object as [other]. - NSXPCListenerDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSXPCListenerDelegate] that wraps the given raw object pointer. - NSXPCListenerDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSXPCListenerDelegate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSXPCListenerDelegate, - ); - } -} - -extension NSXPCListenerDelegate$Methods on NSXPCListenerDelegate { - /// listener:shouldAcceptNewConnection: - bool listener( - NSXPCListener listener, { - required NSXPCConnection shouldAcceptNewConnection, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = listener.ref; - final _$$ref$2 = shouldAcceptNewConnection.ref; - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_listener_shouldAcceptNewConnection_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXPCListenerDelegate', - 'listener:shouldAcceptNewConnection:', - ); - } - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_listener_shouldAcceptNewConnection_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class NSXPCListenerDelegate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSXPCListenerDelegate.cast()); - - /// Builds an object that implements the NSXPCListenerDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSXPCListenerDelegate implement({ - bool Function(NSXPCListener, NSXPCConnection)? - listener_shouldAcceptNewConnection_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSXPCListenerDelegate', - ); - NSXPCListenerDelegate$Builder.listener_shouldAcceptNewConnection_.implement( - builder, - listener_shouldAcceptNewConnection_, - ); - builder.addProtocol($protocol); - return NSXPCListenerDelegate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSXPCListenerDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool Function(NSXPCListener, NSXPCConnection)? - listener_shouldAcceptNewConnection_, - bool $keepIsolateAlive = true, - }) { - NSXPCListenerDelegate$Builder.listener_shouldAcceptNewConnection_.implement( - builder, - listener_shouldAcceptNewConnection_, - ); - builder.addProtocol($protocol); - } - - /// listener:shouldAcceptNewConnection: - static final listener_shouldAcceptNewConnection_ = - objc.ObjCProtocolMethod( - _protocol_NSXPCListenerDelegate, - _sel_listener_shouldAcceptNewConnection_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXPCListenerDelegate, - _sel_listener_shouldAcceptNewConnection_, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function(NSXPCListener, NSXPCConnection) func) => - ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection.fromFunction( - ( - ffi.Pointer _, - NSXPCListener arg1, - NSXPCConnection arg2, - ) => func(arg1, arg2), - ), - ); -} - -/// NSXPCProxyCreating -extension type NSXPCProxyCreating._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSXPCProxyCreating] that points to the same underlying object as [other]. - NSXPCProxyCreating.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSXPCProxyCreating] that wraps the given raw object pointer. - NSXPCProxyCreating.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSXPCProxyCreating]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSXPCProxyCreating, - ); - } -} - -extension NSXPCProxyCreating$Methods on NSXPCProxyCreating { - /// remoteObjectProxy - objc.ObjCObject remoteObjectProxy() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_remoteObjectProxy); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// remoteObjectProxyWithErrorHandler: - objc.ObjCObject remoteObjectProxyWithErrorHandler( - objc.ObjCBlock handler, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = handler.ref; - final $ret = _objc_msgSend_nnxkei( - _$$ref.pointer, - _sel_remoteObjectProxyWithErrorHandler_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } - - /// synchronousRemoteObjectProxyWithErrorHandler: - objc.ObjCObject synchronousRemoteObjectProxyWithErrorHandler( - objc.ObjCBlock handler, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = handler.ref; - objc.checkOsVersionInternal( - 'NSXPCProxyCreating.synchronousRemoteObjectProxyWithErrorHandler:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_synchronousRemoteObjectProxyWithErrorHandler_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSXPCProxyCreating', - 'synchronousRemoteObjectProxyWithErrorHandler:', - ); - } - final $ret = _objc_msgSend_nnxkei( - _$$ref.pointer, - _sel_synchronousRemoteObjectProxyWithErrorHandler_, - _$$ref$1.pointer, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -interface class NSXPCProxyCreating$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_NSXPCProxyCreating.cast()); - - /// Builds an object that implements the NSXPCProxyCreating protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSXPCProxyCreating implement({ - required objc.ObjCObject Function() remoteObjectProxy, - required objc.ObjCObject Function( - objc.ObjCBlock, - ) - remoteObjectProxyWithErrorHandler_, - objc.ObjCObject Function(objc.ObjCBlock)? - synchronousRemoteObjectProxyWithErrorHandler_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSXPCProxyCreating'); - NSXPCProxyCreating$Builder.remoteObjectProxy.implement( - builder, - remoteObjectProxy, - ); - NSXPCProxyCreating$Builder.remoteObjectProxyWithErrorHandler_.implement( - builder, - remoteObjectProxyWithErrorHandler_, - ); - NSXPCProxyCreating$Builder.synchronousRemoteObjectProxyWithErrorHandler_ - .implement(builder, synchronousRemoteObjectProxyWithErrorHandler_); - builder.addProtocol($protocol); - return NSXPCProxyCreating.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSXPCProxyCreating protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObject Function() remoteObjectProxy, - required objc.ObjCObject Function( - objc.ObjCBlock, - ) - remoteObjectProxyWithErrorHandler_, - objc.ObjCObject Function(objc.ObjCBlock)? - synchronousRemoteObjectProxyWithErrorHandler_, - bool $keepIsolateAlive = true, - }) { - NSXPCProxyCreating$Builder.remoteObjectProxy.implement( - builder, - remoteObjectProxy, - ); - NSXPCProxyCreating$Builder.remoteObjectProxyWithErrorHandler_.implement( - builder, - remoteObjectProxyWithErrorHandler_, - ); - NSXPCProxyCreating$Builder.synchronousRemoteObjectProxyWithErrorHandler_ - .implement(builder, synchronousRemoteObjectProxyWithErrorHandler_); - builder.addProtocol($protocol); - } - - /// remoteObjectProxy - static final remoteObjectProxy = - objc.ObjCProtocolMethod( - _protocol_NSXPCProxyCreating, - _sel_remoteObjectProxy, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXPCProxyCreating, - _sel_remoteObjectProxy, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObject Function() func) => - ObjCBlock_objcObjCObjectImpl_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// remoteObjectProxyWithErrorHandler: - static final remoteObjectProxyWithErrorHandler_ = - objc.ObjCProtocolMethod< - objc.ObjCObject Function( - objc.ObjCBlock, - ) - >( - _protocol_NSXPCProxyCreating, - _sel_remoteObjectProxyWithErrorHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_wpy7aa) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXPCProxyCreating, - _sel_remoteObjectProxyWithErrorHandler_, - isRequired: true, - isInstanceMethod: true, - ), - ( - objc.ObjCObject Function( - objc.ObjCBlock, - ) - func, - ) => ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ); - - /// synchronousRemoteObjectProxyWithErrorHandler: - static final synchronousRemoteObjectProxyWithErrorHandler_ = - objc.ObjCProtocolMethod< - objc.ObjCObject Function( - objc.ObjCBlock, - ) - >( - _protocol_NSXPCProxyCreating, - _sel_synchronousRemoteObjectProxyWithErrorHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_wpy7aa) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSXPCProxyCreating, - _sel_synchronousRemoteObjectProxyWithErrorHandler_, - isRequired: false, - isInstanceMethod: true, - ), - ( - objc.ObjCObject Function( - objc.ObjCBlock, - ) - func, - ) => ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError.fromFunction( - ( - ffi.Pointer _, - objc.ObjCBlock arg1, - ) => func(arg1), - ), - ); -} - -typedef NSZone = objc.NSZone; - -const int NS_BigEndian = 2; - -const int NS_LittleEndian = 1; - -const int NS_UnknownByteOrder = 0; - -typedef NXCoord = ffi.Float; -typedef DartNXCoord = double; -typedef NXEvent = _NXEvent; - -final class NXEventData extends ffi.Union { - external UnnamedStruct$18 mouse; - - external UnnamedStruct$10 mouseMove; - - external UnnamedStruct$9 key; - - external UnnamedStruct$13 tracking; - - external UnnamedStruct$19 scrollWheel; - - external UnnamedStruct$19 zoom; - - external UnnamedStruct$17 compound$1; - - external UnnamedStruct$21 tablet; - - external UnnamedStruct$12 proximity; -} - -typedef NXEventExt = _NXEventExt; -typedef NXEventExtension = _NXEventExtension; -typedef NXEventPtr = ffi.Pointer<_NXEvent>; - -final class NXEventSystemDevice extends ffi.Struct { - @ffi.Int() - external int interface; - - @ffi.Int() - external int interface_addr; - - @ffi.Int() - external int dev_type; - - @ffi.Int() - external int id; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int interface, - required int interface_addr, - required int dev_type, - required int id, - }) => $allocator() - ..ref.interface = interface - ..ref.interface_addr = interface_addr - ..ref.dev_type = dev_type - ..ref.id = id; -} - -final class NXEventSystemDeviceList extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array dev; -} - -typedef NXEventSystemInfoType = ffi.Pointer; -typedef NXKeyMapping = evsioKeymapping; - -enum NXMouseButton { - NX_OneButton(0), - NX_LeftButton(1), - NX_RightButton(2); - - final int value; - const NXMouseButton(this.value); - - static NXMouseButton fromValue(int value) => switch (value) { - 0 => NX_OneButton, - 1 => NX_LeftButton, - 2 => NX_RightButton, - _ => throw ArgumentError('Unknown value for NXMouseButton: $value'), - }; -} - -typedef NXMouseScaling = evsioMouseScaling; -typedef NXPoint = _NXPoint; -typedef NXSize = _NXSize; -typedef NXTabletPointData = _NXTabletPointData; -typedef NXTabletPointDataPtr = ffi.Pointer<_NXTabletPointData>; -typedef NXTabletProximityData = _NXTabletProximityData; -typedef NXTabletProximityDataPtr = ffi.Pointer<_NXTabletProximityData>; - -const int NameID = 1312902469; - -final class NameTable extends ffi.Struct { - @SInt16() - external int stringCount; - - @ffi.Array.multi([256]) - external ffi.Array baseFontName; -} - -typedef Nanoseconds = UnsignedWide; - -const int NetActivity = 2; - -const int NoLooping = 0; - -const int NoneType = 1313820229; - -final class NumFormatString extends ffi.Struct { - @UInt8() - external int fLength; - - @UInt8() - external int fVersion; - - @ffi.Array.multi([254]) - external ffi.Array data; -} - -typedef NumFormatStringRec = NumFormatString; - -final class NumVersion extends ffi.Struct { - @UInt8() - external int nonRelRev; - - @UInt8() - external int stage; - - @UInt8() - external int minorAndBugRev; - - @UInt8() - external int majorRev; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nonRelRev, - required int stage, - required int minorAndBugRev, - required int majorRev, - }) => $allocator() - ..ref.nonRelRev = nonRelRev - ..ref.stage = stage - ..ref.minorAndBugRev = minorAndBugRev - ..ref.majorRev = majorRev; -} - -final class NumVersionVariant extends ffi.Union { - external NumVersion parts; - - @UInt32() - external int whole; -} - -typedef NumVersionVariantHandle = ffi.Pointer; -typedef NumVersionVariantPtr = ffi.Pointer; - -final class NumberParts extends ffi.Struct { - @ffi.Short() - external int version; - - @ffi.Array.multi([31]) - external ffi.Array data; - - external WideCharArr pePlus; - - external WideCharArr peMinus; - - external WideCharArr peMinusPlus; - - external WideCharArr altNumTable; - - @ffi.Array.multi([20]) - external ffi.Array reserved; -} - -typedef NumberPartsPtr = ffi.Pointer; - -const int OSAControlFlowError = -2755; - -const int OSADuplicateHandler = -2752; - -const int OSADuplicateParameter = -2750; - -const int OSADuplicateProperty = -2751; - -const int OSAIllegalAccess = -1723; - -const int OSAIllegalAssign = -10003; - -const int OSAIllegalIndex = -1719; - -const int OSAIllegalRange = -1720; - -const int OSAInconsistentDeclarations = -2754; - -const int OSAMessageNotUnderstood = -1708; - -const int OSAMissingParameter = -1701; - -const int OSAParameterMismatch = -1721; - -const int OSASyntaxError = -2740; - -const int OSASyntaxTypeError = -2741; - -const int OSATokenTooLong = -2742; - -const int OSAUndefinedHandler = -1717; - -const int OSAUndefinedVariable = -2753; - -typedef OSAtomic_int64_aligned64_t = ffi.Int64; -typedef DartOSAtomic_int64_aligned64_t = int; - -const int OSBigEndian = 2; - -typedef OSErr = SInt16; -typedef OSFifoQueueHead = UnnamedStruct$2; -typedef OSLAccessorProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - DescType desiredClass, - ffi.Pointer container, - DescType containerClass, - DescType form, - ffi.Pointer selectionData, - ffi.Pointer value, - SRefCon accessorRefcon, - ) - > - >; -typedef OSLAccessorUPP = OSLAccessorProcPtr; -typedef OSLAdjustMarksProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - ffi.Long newStart, - ffi.Long newStop, - ffi.Pointer markToken, - ) - > - >; -typedef OSLAdjustMarksUPP = OSLAdjustMarksProcPtr; -typedef OSLCompareProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - DescType oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ) - > - >; -typedef OSLCompareUPP = OSLCompareProcPtr; -typedef OSLCountProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - DescType desiredType, - DescType containerClass, - ffi.Pointer container, - ffi.Pointer result, - ) - > - >; -typedef OSLCountUPP = OSLCountProcPtr; -typedef OSLDisposeTokenProcPtr = - ffi.Pointer< - ffi.NativeFunction unneededToken)> - >; -typedef OSLDisposeTokenUPP = OSLDisposeTokenProcPtr; -typedef OSLGetErrDescProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function(ffi.Pointer> appDescPtr) - > - >; -typedef OSLGetErrDescUPP = OSLGetErrDescProcPtr; -typedef OSLGetMarkTokenProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - ffi.Pointer dContainerToken, - DescType containerClass, - ffi.Pointer result, - ) - > - >; -typedef OSLGetMarkTokenUPP = OSLGetMarkTokenProcPtr; -typedef OSLMarkProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - ffi.Long index$1, - ) - > - >; -typedef OSLMarkUPP = OSLMarkProcPtr; - -const int OSLittleEndian = 1; - -final class OSNotificationHeader extends ffi.Opaque {} - -final class OSNotificationHeader64 extends ffi.Opaque {} - -typedef OSQueueHead = UnnamedStruct$1; -typedef OSSpinLock = ffi.Int32; -typedef DartOSSpinLock = int; -typedef OSStatus = SInt32; -typedef OSType = FourCharCode; -typedef OSTypePtr = ffi.Pointer; - -const int OSUnknownByteOrder = 0; - -/// OS_dispatch_data -extension type OS_dispatch_data._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_data] that points to the same underlying object as [other]. - OS_dispatch_data.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_data] that wraps the given raw object pointer. - OS_dispatch_data.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_data]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_data, - ); - } -} - -extension OS_dispatch_data$Methods on OS_dispatch_data {} - -interface class OS_dispatch_data$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_data.cast()); - - /// Builds an object that implements the OS_dispatch_data protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_data implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_data'); - - builder.addProtocol($protocol); - return OS_dispatch_data.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_data protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_group -extension type OS_dispatch_group._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_group] that points to the same underlying object as [other]. - OS_dispatch_group.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_group] that wraps the given raw object pointer. - OS_dispatch_group.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_group]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_group, - ); - } -} - -extension OS_dispatch_group$Methods on OS_dispatch_group {} - -interface class OS_dispatch_group$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_group.cast()); - - /// Builds an object that implements the OS_dispatch_group protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_group implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_group'); - - builder.addProtocol($protocol); - return OS_dispatch_group.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_group protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_io -extension type OS_dispatch_io._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_io] that points to the same underlying object as [other]. - OS_dispatch_io.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_io] that wraps the given raw object pointer. - OS_dispatch_io.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_io]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_io, - ); - } -} - -extension OS_dispatch_io$Methods on OS_dispatch_io {} - -interface class OS_dispatch_io$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_io.cast()); - - /// Builds an object that implements the OS_dispatch_io protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_io implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_io'); - - builder.addProtocol($protocol); - return OS_dispatch_io.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_io protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_object -extension type OS_dispatch_object._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_dispatch_object] that points to the same underlying object as [other]. - OS_dispatch_object.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_object] that wraps the given raw object pointer. - OS_dispatch_object.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_object]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_object, - ); - } -} - -extension OS_dispatch_object$Methods on OS_dispatch_object {} - -interface class OS_dispatch_object$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_object.cast()); - - /// Builds an object that implements the OS_dispatch_object protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_object implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_object'); - - builder.addProtocol($protocol); - return OS_dispatch_object.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_object protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue -extension type OS_dispatch_queue._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_queue] that points to the same underlying object as [other]. - OS_dispatch_queue.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue] that wraps the given raw object pointer. - OS_dispatch_queue.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue, - ); - } -} - -extension OS_dispatch_queue$Methods on OS_dispatch_queue {} - -interface class OS_dispatch_queue$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue.cast()); - - /// Builds an object that implements the OS_dispatch_queue protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_queue'); - - builder.addProtocol($protocol); - return OS_dispatch_queue.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_attr -extension type OS_dispatch_queue_attr._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_queue_attr] that points to the same underlying object as [other]. - OS_dispatch_queue_attr.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_attr] that wraps the given raw object pointer. - OS_dispatch_queue_attr.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_attr]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_attr, - ); - } -} - -extension OS_dispatch_queue_attr$Methods on OS_dispatch_queue_attr {} - -interface class OS_dispatch_queue_attr$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_attr.cast()); - - /// Builds an object that implements the OS_dispatch_queue_attr protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_attr implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_attr', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_attr.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_attr protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_concurrent -extension type OS_dispatch_queue_concurrent._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue { - /// Constructs a [OS_dispatch_queue_concurrent] that points to the same underlying object as [other]. - OS_dispatch_queue_concurrent.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_concurrent] that wraps the given raw object pointer. - OS_dispatch_queue_concurrent.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_concurrent]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_concurrent, - ); - } -} - -extension OS_dispatch_queue_concurrent$Methods - on OS_dispatch_queue_concurrent {} - -interface class OS_dispatch_queue_concurrent$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_concurrent.cast()); - - /// Builds an object that implements the OS_dispatch_queue_concurrent protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_concurrent implement({ - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_concurrent', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_concurrent.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_concurrent protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_global -extension type OS_dispatch_queue_global._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue { - /// Constructs a [OS_dispatch_queue_global] that points to the same underlying object as [other]. - OS_dispatch_queue_global.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_global] that wraps the given raw object pointer. - OS_dispatch_queue_global.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_global]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_global, - ); - } -} - -extension OS_dispatch_queue_global$Methods on OS_dispatch_queue_global {} - -interface class OS_dispatch_queue_global$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_global.cast()); - - /// Builds an object that implements the OS_dispatch_queue_global protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_global implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_global', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_global.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_global protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_main -extension type OS_dispatch_queue_main._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue_serial { - /// Constructs a [OS_dispatch_queue_main] that points to the same underlying object as [other]. - OS_dispatch_queue_main.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_main] that wraps the given raw object pointer. - OS_dispatch_queue_main.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_main]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_main, - ); - } -} - -extension OS_dispatch_queue_main$Methods on OS_dispatch_queue_main {} - -interface class OS_dispatch_queue_main$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_main.cast()); - - /// Builds an object that implements the OS_dispatch_queue_main protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_main implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_main', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_main.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_main protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_serial -extension type OS_dispatch_queue_serial._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue { - /// Constructs a [OS_dispatch_queue_serial] that points to the same underlying object as [other]. - OS_dispatch_queue_serial.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_serial] that wraps the given raw object pointer. - OS_dispatch_queue_serial.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_serial]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_serial, - ); - } -} - -extension OS_dispatch_queue_serial$Methods on OS_dispatch_queue_serial {} - -interface class OS_dispatch_queue_serial$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_queue_serial.cast()); - - /// Builds an object that implements the OS_dispatch_queue_serial protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_serial implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_serial', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_serial.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_serial protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_queue_serial_executor -extension type OS_dispatch_queue_serial_executor._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue { - /// Constructs a [OS_dispatch_queue_serial_executor] that points to the same underlying object as [other]. - OS_dispatch_queue_serial_executor.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_queue_serial_executor] that wraps the given raw object pointer. - OS_dispatch_queue_serial_executor.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_queue_serial_executor]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_queue_serial_executor, - ); - } -} - -extension OS_dispatch_queue_serial_executor$Methods - on OS_dispatch_queue_serial_executor {} - -interface class OS_dispatch_queue_serial_executor$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => objc.Protocol.fromPointer( - _protocol_OS_dispatch_queue_serial_executor.cast(), - ); - - /// Builds an object that implements the OS_dispatch_queue_serial_executor protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_queue_serial_executor implement({ - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_queue_serial_executor', - ); - - builder.addProtocol($protocol); - return OS_dispatch_queue_serial_executor.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_queue_serial_executor protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_semaphore -extension type OS_dispatch_semaphore._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_semaphore] that points to the same underlying object as [other]. - OS_dispatch_semaphore.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_semaphore] that wraps the given raw object pointer. - OS_dispatch_semaphore.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_semaphore]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_semaphore, - ); - } -} - -extension OS_dispatch_semaphore$Methods on OS_dispatch_semaphore {} - -interface class OS_dispatch_semaphore$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_semaphore.cast()); - - /// Builds an object that implements the OS_dispatch_semaphore protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_semaphore implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_dispatch_semaphore', - ); - - builder.addProtocol($protocol); - return OS_dispatch_semaphore.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_semaphore protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_source -extension type OS_dispatch_source._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_object { - /// Constructs a [OS_dispatch_source] that points to the same underlying object as [other]. - OS_dispatch_source.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_source] that wraps the given raw object pointer. - OS_dispatch_source.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_source]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_source, - ); - } -} - -extension OS_dispatch_source$Methods on OS_dispatch_source {} - -interface class OS_dispatch_source$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_source.cast()); - - /// Builds an object that implements the OS_dispatch_source protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_source implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_source'); - - builder.addProtocol($protocol); - return OS_dispatch_source.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_source protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_dispatch_workloop -extension type OS_dispatch_workloop._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, OS_dispatch_queue { - /// Constructs a [OS_dispatch_workloop] that points to the same underlying object as [other]. - OS_dispatch_workloop.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_dispatch_workloop] that wraps the given raw object pointer. - OS_dispatch_workloop.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_dispatch_workloop]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_dispatch_workloop, - ); - } -} - -extension OS_dispatch_workloop$Methods on OS_dispatch_workloop {} - -interface class OS_dispatch_workloop$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_dispatch_workloop.cast()); - - /// Builds an object that implements the OS_dispatch_workloop protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_dispatch_workloop implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_dispatch_workloop'); - - builder.addProtocol($protocol); - return OS_dispatch_workloop.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_dispatch_workloop protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// WARNING: OS_object is a stub. To generate bindings for this class, include -/// OS_object in your config's objc-interfaces list. -/// -/// OS_object -extension type OS_object._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject { - /// Constructs a [OS_object] that points to the same underlying object as [other]. - OS_object.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [OS_object] that wraps the given raw object pointer. - OS_object.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// WARNING: OS_os_workgroup is a stub. To generate bindings for this class, include -/// OS_os_workgroup in your config's objc-interfaces list. -/// -/// OS_os_workgroup -extension type OS_os_workgroup._(objc.ObjCObject object$) - implements objc.ObjCObject, OS_object { - /// Constructs a [OS_os_workgroup] that points to the same underlying object as [other]. - OS_os_workgroup.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [OS_os_workgroup] that wraps the given raw object pointer. - OS_os_workgroup.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// OS_os_workgroup_interval -extension type OS_os_workgroup_interval._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [OS_os_workgroup_interval] that points to the same underlying object as [other]. - OS_os_workgroup_interval.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_os_workgroup_interval] that wraps the given raw object pointer. - OS_os_workgroup_interval.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_os_workgroup_interval]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_os_workgroup_interval, - ); - } -} - -extension OS_os_workgroup_interval$Methods on OS_os_workgroup_interval {} - -interface class OS_os_workgroup_interval$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_os_workgroup_interval.cast()); - - /// Builds an object that implements the OS_os_workgroup_interval protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_os_workgroup_interval implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_os_workgroup_interval', - ); - - builder.addProtocol($protocol); - return OS_os_workgroup_interval.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_os_workgroup_interval protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_os_workgroup_parallel -extension type OS_os_workgroup_parallel._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [OS_os_workgroup_parallel] that points to the same underlying object as [other]. - OS_os_workgroup_parallel.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_os_workgroup_parallel] that wraps the given raw object pointer. - OS_os_workgroup_parallel.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_os_workgroup_parallel]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_os_workgroup_parallel, - ); - } -} - -extension OS_os_workgroup_parallel$Methods on OS_os_workgroup_parallel {} - -interface class OS_os_workgroup_parallel$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_os_workgroup_parallel.cast()); - - /// Builds an object that implements the OS_os_workgroup_parallel protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_os_workgroup_parallel implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_os_workgroup_parallel', - ); - - builder.addProtocol($protocol); - return OS_os_workgroup_parallel.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_os_workgroup_parallel protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_certificate -extension type OS_sec_certificate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_certificate] that points to the same underlying object as [other]. - OS_sec_certificate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_certificate] that wraps the given raw object pointer. - OS_sec_certificate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_certificate]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_certificate, - ); - } -} - -extension OS_sec_certificate$Methods on OS_sec_certificate {} - -interface class OS_sec_certificate$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_certificate.cast()); - - /// Builds an object that implements the OS_sec_certificate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_certificate implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_certificate'); - - builder.addProtocol($protocol); - return OS_sec_certificate.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_sec_certificate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_identity -extension type OS_sec_identity._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_identity] that points to the same underlying object as [other]. - OS_sec_identity.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_identity] that wraps the given raw object pointer. - OS_sec_identity.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_identity]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_identity, - ); - } -} - -extension OS_sec_identity$Methods on OS_sec_identity {} - -interface class OS_sec_identity$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_identity.cast()); - - /// Builds an object that implements the OS_sec_identity protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_identity implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_identity'); - - builder.addProtocol($protocol); - return OS_sec_identity.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_sec_identity protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_object -extension type OS_sec_object._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_object] that points to the same underlying object as [other]. - OS_sec_object.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_object] that wraps the given raw object pointer. - OS_sec_object.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_object]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_object, - ); - } -} - -extension OS_sec_object$Methods on OS_sec_object {} - -interface class OS_sec_object$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_object.cast()); - - /// Builds an object that implements the OS_sec_object protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_object implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_object'); - - builder.addProtocol($protocol); - return OS_sec_object.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the OS_sec_object protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_protocol_metadata -extension type OS_sec_protocol_metadata._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_protocol_metadata] that points to the same underlying object as [other]. - OS_sec_protocol_metadata.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_protocol_metadata] that wraps the given raw object pointer. - OS_sec_protocol_metadata.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_protocol_metadata]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_protocol_metadata, - ); - } -} - -extension OS_sec_protocol_metadata$Methods on OS_sec_protocol_metadata {} - -interface class OS_sec_protocol_metadata$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_protocol_metadata.cast()); - - /// Builds an object that implements the OS_sec_protocol_metadata protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_protocol_metadata implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_sec_protocol_metadata', - ); - - builder.addProtocol($protocol); - return OS_sec_protocol_metadata.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_sec_protocol_metadata protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_protocol_options -extension type OS_sec_protocol_options._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_protocol_options] that points to the same underlying object as [other]. - OS_sec_protocol_options.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_protocol_options] that wraps the given raw object pointer. - OS_sec_protocol_options.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_protocol_options]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_protocol_options, - ); - } -} - -extension OS_sec_protocol_options$Methods on OS_sec_protocol_options {} - -interface class OS_sec_protocol_options$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_protocol_options.cast()); - - /// Builds an object that implements the OS_sec_protocol_options protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_protocol_options implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_sec_protocol_options', - ); - - builder.addProtocol($protocol); - return OS_sec_protocol_options.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_sec_protocol_options protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_sec_trust -extension type OS_sec_trust._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_sec_trust] that points to the same underlying object as [other]. - OS_sec_trust.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_sec_trust] that wraps the given raw object pointer. - OS_sec_trust.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_sec_trust]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_sec_trust, - ); - } -} - -extension OS_sec_trust$Methods on OS_sec_trust {} - -interface class OS_sec_trust$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_sec_trust.cast()); - - /// Builds an object that implements the OS_sec_trust protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_sec_trust implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_sec_trust'); - - builder.addProtocol($protocol); - return OS_sec_trust.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the OS_sec_trust protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_xpc_listener -extension type OS_xpc_listener._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_xpc_listener] that points to the same underlying object as [other]. - OS_xpc_listener.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_xpc_listener] that wraps the given raw object pointer. - OS_xpc_listener.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_xpc_listener]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_xpc_listener, - ); - } -} - -extension OS_xpc_listener$Methods on OS_xpc_listener {} - -interface class OS_xpc_listener$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_xpc_listener.cast()); - - /// Builds an object that implements the OS_xpc_listener protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_xpc_listener implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_listener'); - - builder.addProtocol($protocol); - return OS_xpc_listener.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_xpc_listener protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_xpc_object -extension type OS_xpc_object._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_xpc_object] that points to the same underlying object as [other]. - OS_xpc_object.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_xpc_object] that wraps the given raw object pointer. - OS_xpc_object.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_xpc_object]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_xpc_object, - ); - } -} - -extension OS_xpc_object$Methods on OS_xpc_object {} - -interface class OS_xpc_object$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_xpc_object.cast()); - - /// Builds an object that implements the OS_xpc_object protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_xpc_object implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_object'); - - builder.addProtocol($protocol); - return OS_xpc_object.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the OS_xpc_object protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_xpc_peer_requirement -extension type OS_xpc_peer_requirement._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_xpc_peer_requirement] that points to the same underlying object as [other]. - OS_xpc_peer_requirement.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_xpc_peer_requirement] that wraps the given raw object pointer. - OS_xpc_peer_requirement.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_xpc_peer_requirement]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_xpc_peer_requirement, - ); - } -} - -extension OS_xpc_peer_requirement$Methods on OS_xpc_peer_requirement {} - -interface class OS_xpc_peer_requirement$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_xpc_peer_requirement.cast()); - - /// Builds an object that implements the OS_xpc_peer_requirement protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_xpc_peer_requirement implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'OS_xpc_peer_requirement', - ); - - builder.addProtocol($protocol); - return OS_xpc_peer_requirement.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_xpc_peer_requirement protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// OS_xpc_session -extension type OS_xpc_session._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [OS_xpc_session] that points to the same underlying object as [other]. - OS_xpc_session.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [OS_xpc_session] that wraps the given raw object pointer. - OS_xpc_session.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [OS_xpc_session]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_OS_xpc_session, - ); - } -} - -extension OS_xpc_session$Methods on OS_xpc_session {} - -interface class OS_xpc_session$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_OS_xpc_session.cast()); - - /// Builds an object that implements the OS_xpc_session protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static OS_xpc_session implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder(debugName: 'OS_xpc_session'); - - builder.addProtocol($protocol); - return OS_xpc_session.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the OS_xpc_session protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer<__CFDictionary>, ffi.Int)>`. -abstract final class ObjCBlock_CFArrayRef_CFDictionaryRef_pidt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - > - fromFunction( - CFArrayRef Function(CFDictionaryRef, Dart__int32_t) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - >( - objc.newClosureBlock(_closureCallable, ( - CFDictionaryRef arg0, - int arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CFArrayRef _fnPtrTrampoline( - ffi.Pointer block, - CFDictionaryRef arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CFArrayRef Function(CFDictionaryRef arg0, pid_t arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFArrayRef Function( - ffi.Pointer, - CFDictionaryRef, - pid_t, - ) - >(_fnPtrTrampoline) - .cast(); - static CFArrayRef _closureTrampoline( - ffi.Pointer block, - CFDictionaryRef arg0, - int arg1, - ) => - (objc.getBlockClosure(block) - as CFArrayRef Function(CFDictionaryRef, int))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFArrayRef Function( - ffi.Pointer, - CFDictionaryRef, - pid_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer<__CFDictionary>, ffi.Int)>`. -extension ObjCBlock_CFArrayRef_CFDictionaryRef_pidt$CallExtension - on - objc.ObjCBlock< - ffi.Pointer<__CFArray> Function(ffi.Pointer<__CFDictionary>, ffi.Int) - > { - CFArrayRef call(CFDictionaryRef arg0, Dart__int32_t arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFArrayRef Function( - ffi.Pointer block, - CFDictionaryRef arg0, - pid_t arg1, - ) - > - >() - .asFunction< - CFArrayRef Function( - ffi.Pointer, - CFDictionaryRef, - int, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_CFComparisonResult_CFTypeRef_CFTypeRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - CFComparisonResult Function(ffi.Pointer, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1).value; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFIndex Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as int Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFIndex Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_CFComparisonResult_CFTypeRef_CFTypeRef$CallExtension - on - objc.ObjCBlock< - CFIndex Function(ffi.Pointer, ffi.Pointer) - > { - CFComparisonResult call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return CFComparisonResult.fromValue( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFIndex Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1), - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function()>`. -abstract final class ObjCBlock_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function()> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function()>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function()> fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock Function()>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function()> fromFunction( - CFErrorRef Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function()>( - objc.newClosureBlock(_closureCallable, () { - return fn(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CFErrorRef _fnPtrTrampoline(ffi.Pointer block) => - block.ref.target - .cast>() - .asFunction()(); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFErrorRef Function(ffi.Pointer) - >(_fnPtrTrampoline) - .cast(); - static CFErrorRef _closureTrampoline(ffi.Pointer block) => - (objc.getBlockClosure(block) as CFErrorRef Function())(); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFErrorRef Function(ffi.Pointer) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function()>`. -extension ObjCBlock_CFErrorRef$CallExtension - on objc.ObjCBlock Function()> { - CFErrorRef call() { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFErrorRef Function(ffi.Pointer block) - > - >() - .asFunction)>()( - ref.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function()>`. -abstract final class ObjCBlock_CFTypeRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function()> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function()>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function()> fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock Function()>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function()> fromFunction( - CFTypeRef Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function()>( - objc.newClosureBlock(_closureCallable, () { - return fn(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CFTypeRef _fnPtrTrampoline(ffi.Pointer block) => - block.ref.target - .cast>() - .asFunction()(); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function(ffi.Pointer) - >(_fnPtrTrampoline) - .cast(); - static CFTypeRef _closureTrampoline(ffi.Pointer block) => - (objc.getBlockClosure(block) as CFTypeRef Function())(); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function(ffi.Pointer) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function()>`. -extension ObjCBlock_CFTypeRef$CallExtension - on objc.ObjCBlock Function()> { - CFTypeRef call() { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFTypeRef Function(ffi.Pointer block) - > - >() - .asFunction)>()( - ref.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_CFTypeRef_SecTransformAttributeRef_CFTypeRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - CFTypeRef Function(SecTransformAttributeRef arg0, CFTypeRef arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - CFTypeRef Function(SecTransformAttributeRef, CFTypeRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - SecTransformAttributeRef arg0, - CFTypeRef arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CFTypeRef _fnPtrTrampoline( - ffi.Pointer block, - SecTransformAttributeRef arg0, - CFTypeRef arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CFTypeRef Function(SecTransformAttributeRef arg0, CFTypeRef arg1) - > - >() - .asFunction< - CFTypeRef Function(SecTransformAttributeRef, CFTypeRef) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function( - ffi.Pointer, - SecTransformAttributeRef, - CFTypeRef, - ) - >(_fnPtrTrampoline) - .cast(); - static CFTypeRef _closureTrampoline( - ffi.Pointer block, - SecTransformAttributeRef arg0, - CFTypeRef arg1, - ) => - (objc.getBlockClosure(block) - as CFTypeRef Function(SecTransformAttributeRef, CFTypeRef))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function( - ffi.Pointer, - SecTransformAttributeRef, - CFTypeRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_CFTypeRef_SecTransformAttributeRef_CFTypeRef$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - CFTypeRef call(SecTransformAttributeRef arg0, CFTypeRef arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFTypeRef Function( - ffi.Pointer block, - SecTransformAttributeRef arg0, - CFTypeRef arg1, - ) - > - >() - .asFunction< - CFTypeRef Function( - ffi.Pointer, - SecTransformAttributeRef, - CFTypeRef, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, objc.CGSize, ffi.Double, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - CGImageRef Function( - ffi.Pointer arg0, - objc.CGSize arg1, - CGFloat arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - CGImageRef Function( - ffi.Pointer, - objc.CGSize, - DartCGFloat, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - objc.CGSize arg1, - double arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn(arg0, arg1, arg2, arg3, arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CGImageRef _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - objc.CGSize arg1, - double arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CGImageRef Function( - ffi.Pointer arg0, - objc.CGSize arg1, - CGFloat arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - CGImageRef Function( - ffi.Pointer, - objc.CGSize, - double, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CGImageRef Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - CGFloat, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static CGImageRef _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - objc.CGSize arg1, - double arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as CGImageRef Function( - ffi.Pointer, - objc.CGSize, - double, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CGImageRef Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - CGFloat, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, objc.CGSize, ffi.Double, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_CGImageRef_ffiVoid_CGSize_CGFloat_CGPoint_CGSize$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - > { - CGImageRef call( - ffi.Pointer arg0, - objc.CGSize arg1, - DartCGFloat arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CGImageRef Function( - ffi.Pointer block, - ffi.Pointer arg0, - objc.CGSize arg1, - CGFloat arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - CGImageRef Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - double, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2, arg3, arg4); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CGRenderingBufferProviderRef _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static CGRenderingBufferProviderRef _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - CGRenderingBufferProviderRef call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - CGRenderingBufferProviderRef Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer, ffi.Uint64, ffi.Pointer)>`. -abstract final class ObjCBlock_CVReturn_CVDisplayLinkRef_CVTimeStamp_CVTimeStamp_CVOptionFlags_CVOptionFlags { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - CVReturn Function( - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - CVOptionFlags arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - > - fromFunction( - DartCVReturn Function( - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - DartCVOptionFlags, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) { - return fn(arg0, arg1, arg2, arg3, arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - CVReturn Function( - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - CVOptionFlags arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - int Function( - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CVReturn Function( - ffi.Pointer, - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - CVOptionFlags, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as int Function( - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CVReturn Function( - ffi.Pointer, - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - CVOptionFlags, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer, ffi.Uint64, ffi.Pointer)>`. -extension ObjCBlock_CVReturn_CVDisplayLinkRef_CVTimeStamp_CVTimeStamp_CVOptionFlags_CVOptionFlags$CallExtension - on - objc.ObjCBlock< - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink>, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - > { - DartCVReturn call( - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - DartCVOptionFlags arg3, - ffi.Pointer arg4, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CVReturn Function( - ffi.Pointer block, - CVDisplayLinkRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - CVOptionFlags arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - CVDisplayLinkRef, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2, arg3, arg4); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSArray_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSArray? Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0)?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSArray_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSArray? call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0) - .address == - 0 - ? null - : objc.NSArray.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSRange, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - NSRange, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - final _$$ref = fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - arg2, - objc.NSString.fromPointer(arg3, retain: true, release: true), - objc.NSString.fromPointer(arg4, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSRange, objc.NSString, objc.NSString)>`. -extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSRange_NSString_NSString$CallExtension - on - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSRange, - objc.NSString, - objc.NSString, - ) - > { - objc.NSArray? call( - ffi.Pointer arg0, - NSSpellServer arg1, - NSRange arg2, - objc.NSString arg3, - objc.NSString arg4, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - arg2, - _$$ref$2.pointer, - _$$ref$3.pointer, - ) - .address == - 0 - ? null - : objc.NSArray.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSRange arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - arg2, - _$$ref$2.pointer, - _$$ref$3.pointer, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. -extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSString$CallExtension - on - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > { - objc.NSArray? call( - ffi.Pointer arg0, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ) - .address == - 0 - ? null - : objc.NSArray.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, ffi.UnsignedLong, ffi.Uint64, objc.NSDictionary?, NSOrthography?, ffi.Pointer)>`. -abstract final class ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - NSTextCheckingTypes arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - > - fromFunction( - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - DartNSUInteger, - DartNSTextCheckingTypes, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) { - final _$$ref = fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3, - arg4, - arg5.address == 0 - ? null - : objc.NSDictionary.fromPointer( - arg5, - retain: true, - release: true, - ), - arg6.address == 0 - ? null - : NSOrthography.fromPointer(arg6, retain: true, release: true), - arg7, - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - NSTextCheckingTypes arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSTextCheckingTypes, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSTextCheckingTypes, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, ffi.UnsignedLong, ffi.Uint64, objc.NSDictionary?, NSOrthography?, ffi.Pointer)>`. -extension ObjCBlock_NSArray_ffiVoid_NSSpellServer_NSString_NSUInteger_NSTextCheckingTypes_NSDictionary_NSOrthography_NSInteger$CallExtension - on - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - ffi.UnsignedLong, - ffi.Uint64, - objc.NSDictionary?, - NSOrthography?, - ffi.Pointer, - ) - > { - objc.NSArray? call( - ffi.Pointer arg0, - NSSpellServer arg1, - objc.NSString arg2, - DartNSUInteger arg3, - DartNSTextCheckingTypes arg4, - objc.NSDictionary? arg5, - NSOrthography? arg6, - ffi.Pointer arg7, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg5?.ref; - final _$$ref$4 = arg6?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - NSTextCheckingTypes arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - arg3, - arg4, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - arg7, - ) - .address == - 0 - ? null - : objc.NSArray.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - NSTextCheckingTypes arg4, - ffi.Pointer arg5, - ffi.Pointer arg6, - ffi.Pointer arg7, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - arg3, - arg4, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - arg7, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSString, ffi.Pointer)>`. -abstract final class ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - > - fromFunction( - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - PDEPlugInCallbackProtocol, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - objc.NSString.fromPointer(arg1, retain: true, release: true), - PDEPlugInCallbackProtocol.fromPointer( - arg2, - retain: true, - release: true, - ), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSString, ffi.Pointer)>`. -extension ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol$CallExtension - on - objc.ObjCBlock< - objc.NSArray? Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - ) - > { - objc.NSArray? call( - ffi.Pointer arg0, - objc.NSString arg1, - PDEPlugInCallbackProtocol arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) - .address == - 0 - ? null - : objc.NSArray.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSCachedURLResponse)>`. -abstract final class ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - > - fromFunction( - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSCachedURLResponse.fromPointer(arg2, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSCachedURLResponse)>`. -extension ObjCBlock_NSCachedURLResponse_ffiVoid_NSURLConnection_NSCachedURLResponse$CallExtension - on - objc.ObjCBlock< - NSCachedURLResponse? Function( - ffi.Pointer, - NSURLConnection, - NSCachedURLResponse, - ) - > { - NSCachedURLResponse? call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSCachedURLResponse arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) - .address == - 0 - ? null - : NSCachedURLResponse.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_NSComparisonResult_objcObjCObjectImpl_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - objc.NSComparisonResult Function(objc.ObjCObject, objc.ObjCObject) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - objc.ObjCObject(arg0, retain: true, release: true), - objc.ObjCObject(arg1, retain: true, release: true), - ).value; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as int Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_NSComparisonResult_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - objc.NSComparisonResult call(objc.ObjCObject arg0, objc.ObjCObject arg1) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - return objc.NSComparisonResult.fromValue( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer), - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSArray)>`. -abstract final class ObjCBlock_NSData_ffiVoid_NSArray { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSData Function(ffi.Pointer, objc.NSArray) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock, objc.NSArray)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSData Function(ffi.Pointer, objc.NSArray) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock, objc.NSArray)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSData Function(ffi.Pointer, objc.NSArray) - > - fromFunction( - objc.NSData Function(ffi.Pointer, objc.NSArray) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock, objc.NSArray)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - final _$$ref = fn( - arg0, - objc.NSArray.fromPointer(arg1, retain: true, release: true), - ).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSArray)>`. -extension ObjCBlock_NSData_ffiVoid_NSArray$CallExtension - on - objc.ObjCBlock< - objc.NSData Function(ffi.Pointer, objc.NSArray) - > { - objc.NSData call(ffi.Pointer arg0, objc.NSArray arg1) { - final _$$ref$1 = arg1.ref; - return objc.NSData.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. -abstract final class ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromFunction( - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. -extension ObjCBlock_NSData_ffiVoid_NSXMLParser_NSString_NSString$CallExtension - on - objc.ObjCBlock< - objc.NSData? Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > { - objc.NSData? call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ) - .address == - 0 - ? null - : objc.NSData.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, NSUInteger, NSDecimalNumber, NSDecimalNumber?)>`. -abstract final class ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - > - fromFunction( - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSCalculationError, - NSDecimalNumber, - NSDecimalNumber?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - final _$$ref = fn( - arg0, - arg1, - NSCalculationError.fromValue(arg2), - NSDecimalNumber.fromPointer(arg3, retain: true, release: true), - arg4.address == 0 - ? null - : NSDecimalNumber.fromPointer( - arg4, - retain: true, - release: true, - ), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, NSUInteger, NSDecimalNumber, NSDecimalNumber?)>`. -extension ObjCBlock_NSDecimalNumber_ffiVoid_objcObjCSelector_NSCalculationError_NSDecimalNumber_NSDecimalNumber$CallExtension - on - objc.ObjCBlock< - NSDecimalNumber? Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - NSDecimalNumber, - NSDecimalNumber?, - ) - > { - NSDecimalNumber? call( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSCalculationError arg2, - NSDecimalNumber arg3, - NSDecimalNumber? arg4, - ) { - final _$$ref$1 = arg3.ref; - final _$$ref$2 = arg4?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - arg1, - arg2.value, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ) - .address == - 0 - ? null - : NSDecimalNumber.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - arg1, - arg2.value, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSDictionary_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSDictionary? Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0)?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSDictionary_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSDictionary? call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0) - .address == - 0 - ? null - : objc.NSDictionary.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLRequest)>`. -abstract final class ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - > - fromFunction( - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSURLRequest.fromPointer(arg2, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLRequest)>`. -extension ObjCBlock_NSInputStream_ffiVoid_NSURLConnection_NSURLRequest$CallExtension - on - objc.ObjCBlock< - objc.NSInputStream? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - ) - > { - objc.NSInputStream? call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSURLRequest arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) - .address == - 0 - ? null - : objc.NSInputStream.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSOperationQueue_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - NSOperationQueue Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSOperationQueue_ffiVoid$CallExtension - on objc.ObjCBlock)> { - NSOperationQueue call(ffi.Pointer arg0) { - return NSOperationQueue.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock? Function(objc.NSProgress)>`. -abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - > - fromFunction( - DartNSProgressUnpublishingHandler? Function(objc.NSProgress) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - final _$$ref = fn( - objc.NSProgress.fromPointer(arg0, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static NSProgressUnpublishingHandler _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer arg0, - ) - > - >() - .asFunction< - NSProgressUnpublishingHandler Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static NSProgressUnpublishingHandler _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as NSProgressUnpublishingHandler Function( - ffi.Pointer, - ))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock? Function(objc.NSProgress)>`. -extension ObjCBlock_NSProgressUnpublishingHandler_NSProgress$CallExtension - on - objc.ObjCBlock< - objc.ObjCBlock? Function(objc.NSProgress) - > { - DartNSProgressUnpublishingHandler? call(objc.NSProgress arg0) { - final _$$ref$1 = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref$1.pointer) - .address == - 0 - ? null - : ObjCBlock_ffiVoid.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - NSProgressUnpublishingHandler Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref$1.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSProgress_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSProgress Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSProgress_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSProgress call(ffi.Pointer arg0) { - return objc.NSProgress.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString?, ffi.Pointer>)>`. -abstract final class ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - > - fromFunction( - NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) { - return fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static NSRange _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_fnPtrTrampoline) - .cast(); - static NSRange _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) => - (objc.getBlockClosure(block) - as NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString?, ffi.Pointer>)>`. -extension ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSArray$CallExtension - on - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString?, - ffi.Pointer>, - ) - > { - NSRange call( - ffi.Pointer arg0, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString? arg3, - ffi.Pointer> arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer> arg4, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - arg4, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString, ffi.Pointer, ffi.Bool)>`. -abstract final class ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Bool arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - > - fromFunction( - NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - bool arg5, - ) { - return fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4, - arg5, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static NSRange _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - bool arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Bool arg5, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_fnPtrTrampoline) - .cast(); - static NSRange _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - bool arg5, - ) => - (objc.getBlockClosure(block) - as NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString, ffi.Pointer, ffi.Bool)>`. -extension ObjCBlock_NSRange_ffiVoid_NSSpellServer_NSString_NSString_NSInteger_bool$CallExtension - on - objc.ObjCBlock< - objc.NSRange Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ffi.Pointer, - ffi.Bool, - ) - > { - NSRange call( - ffi.Pointer arg0, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ffi.Pointer arg4, - bool arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Bool arg5, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - arg4, - arg5, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSRoundingMode_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - NSRoundingMode Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0).value; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSRoundingMode_ffiVoid$CallExtension - on objc.ObjCBlock)> { - NSRoundingMode call(ffi.Pointer arg0) { - return NSRoundingMode.fromValue( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0), - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSSet_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSSet Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSSet_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSSet call(ffi.Pointer arg0) { - return objc.NSSet.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSString_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSString Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSString_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSString call(ffi.Pointer arg0) { - return objc.NSString.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLRequest, NSURLResponse?)>`. -abstract final class ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - > - fromFunction( - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSURLRequest.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : NSURLResponse.fromPointer(arg3, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLRequest, NSURLResponse?)>`. -extension ObjCBlock_NSURLRequest_ffiVoid_NSURLConnection_NSURLRequest_NSURLResponse$CallExtension - on - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLConnection, - NSURLRequest, - NSURLResponse?, - ) - > { - NSURLRequest? call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSURLRequest arg2, - NSURLResponse? arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ) - .address == - 0 - ? null - : NSURLRequest.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLRequest, NSURLResponse?)>`. -abstract final class ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - > - fromFunction( - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - NSURLRequest.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : NSURLResponse.fromPointer(arg3, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLRequest, NSURLResponse?)>`. -extension ObjCBlock_NSURLRequest_ffiVoid_NSURLDownload_NSURLRequest_NSURLResponse$CallExtension - on - objc.ObjCBlock< - NSURLRequest? Function( - ffi.Pointer, - NSURLDownload, - NSURLRequest, - NSURLResponse?, - ) - > { - NSURLRequest? call( - ffi.Pointer arg0, - NSURLDownload arg1, - NSURLRequest arg2, - NSURLResponse? arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ) - .address == - 0 - ? null - : NSURLRequest.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSURL_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - objc.NSURL? Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0)?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSURL_ffiVoid$CallExtension - on objc.ObjCBlock)> { - objc.NSURL? call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0) - .address == - 0 - ? null - : objc.NSURL.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSView_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - NSView? Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0)?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSView_ffiVoid$CallExtension - on objc.ObjCBlock)> { - NSView? call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0) - .address == - 0 - ? null - : NSView.fromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_PMPageFormat_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - PMPageFormat Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static PMPageFormat _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - PMPageFormat Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static PMPageFormat _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as PMPageFormat Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - PMPageFormat Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_PMPageFormat_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - PMPageFormat call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - PMPageFormat Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - PMPageFormat Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_PMPrintSession_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - PMPrintSession Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static PMPrintSession _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - PMPrintSession Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static PMPrintSession _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as PMPrintSession Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - PMPrintSession Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_PMPrintSession_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - PMPrintSession call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - PMPrintSession Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - PMPrintSession Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_PMPrintSettings_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - PMPrintSettings Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static PMPrintSettings _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - PMPrintSettings Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static PMPrintSettings _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as PMPrintSettings Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - PMPrintSettings Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_PMPrintSettings_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - PMPrintSettings call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - PMPrintSettings Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - PMPrintSettings Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_PMPrinter_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - PMPrinter Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static PMPrinter _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - PMPrinter Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static PMPrinter _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as PMPrinter Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - PMPrinter Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_PMPrinter_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - PMPrinter call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - PMPrinter Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - PMPrinter Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Bool)>`. -abstract final class ObjCBlock_bool_CFArrayRef_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, ffi.Bool)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, ffi.Bool)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, ffi.Bool)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => objc.ObjCBlock, ffi.Bool)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Bool)> - fromFunction( - bool Function(CFArrayRef, bool) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, ffi.Bool)>( - objc.newClosureBlock(_closureCallable, (CFArrayRef arg0, bool arg1) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - bool arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - CFArrayRef, - ffi.Bool, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - bool arg1, - ) => (objc.getBlockClosure(block) as bool Function(CFArrayRef, bool))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - CFArrayRef, - ffi.Bool, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Bool)>`. -extension ObjCBlock_bool_CFArrayRef_bool$CallExtension - on objc.ObjCBlock, ffi.Bool)> { - bool call(CFArrayRef arg0, bool arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - CFArrayRef arg0, - ffi.Bool arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, CFArrayRef, bool) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_CFStringRef_CGImageMetadataTagRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(CFStringRef arg0, CGImageMetadataTagRef arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - bool Function(CFStringRef, CGImageMetadataTagRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - CFStringRef arg0, - CGImageMetadataTagRef arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - CFStringRef arg0, - CGImageMetadataTagRef arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(CFStringRef arg0, CGImageMetadataTagRef arg1) - > - >() - .asFunction()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - CFStringRef, - CGImageMetadataTagRef, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - CFStringRef arg0, - CGImageMetadataTagRef arg1, - ) => - (objc.getBlockClosure(block) - as bool Function(CFStringRef, CGImageMetadataTagRef))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - CFStringRef, - CGImageMetadataTagRef, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_CFStringRef_CGImageMetadataTagRef$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call(CFStringRef arg0, CGImageMetadataTagRef arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - CFStringRef arg0, - CGImageMetadataTagRef arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - CFStringRef, - CGImageMetadataTagRef, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_CGContentInfo_CGBitmapParameters { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - bool Function(ffi.Pointer, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_CGContentInfo_CGBitmapParameters$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_bool_CTFontDescriptorMatchingState_CFDictionaryRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Uint32 arg0, CFDictionaryRef arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - > - fromFunction( - bool Function(CTFontDescriptorMatchingState, CFDictionaryRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - CFDictionaryRef arg1, - ) { - return fn(CTFontDescriptorMatchingState.fromValue(arg0), arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - CFDictionaryRef arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Uint32 arg0, CFDictionaryRef arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Uint32, - CFDictionaryRef, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - int arg0, - CFDictionaryRef arg1, - ) => (objc.getBlockClosure(block) as bool Function(int, CFDictionaryRef))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Uint32, - CFDictionaryRef, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_bool_CTFontDescriptorMatchingState_CFDictionaryRef$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Uint32, ffi.Pointer<__CFDictionary>) - > { - bool call(CTFontDescriptorMatchingState arg0, CFDictionaryRef arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Uint32 arg0, - CFDictionaryRef arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, int, CFDictionaryRef) - >()(ref.pointer, arg0.value, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ObjectType_ObjectType { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - bool Function(objc.ObjCObject, objc.ObjCObject) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - objc.ObjCObject(arg0, retain: true, release: true), - objc.ObjCObject(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ObjectType_ObjectType$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call(objc.ObjCObject arg0, objc.ObjCObject arg1) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Size)>`. -abstract final class ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - dispatch_data_t arg0, - ffi.Size arg1, - ffi.Pointer arg2, - ffi.Size arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(objc.NSObject, ffi.Size, ffi.Pointer, ffi.Size) - > - fromFunction( - bool Function(Dartdispatch_data_t, int, ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >( - objc.newClosureBlock(_closureCallable, ( - dispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - arg1, - arg2, - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - dispatch_data_t arg0, - ffi.Size arg1, - ffi.Pointer arg2, - ffi.Size arg3, - ) - > - >() - .asFunction< - bool Function(dispatch_data_t, int, ffi.Pointer, int) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - dispatch_data_t, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ) => - (objc.getBlockClosure(block) - as bool Function(dispatch_data_t, int, ffi.Pointer, int))( - arg0, - arg1, - arg2, - arg3, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - dispatch_data_t, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Size)>`. -extension ObjCBlock_bool_dispatchdatat_ffiSize_ffiVoid_ffiSize$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - > { - bool call( - Dartdispatch_data_t arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - dispatch_data_t arg0, - ffi.Size arg1, - ffi.Pointer arg2, - ffi.Size arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - dispatch_data_t, - int, - ffi.Pointer, - int, - ) - >()(ref.pointer, _$$ref.pointer, arg1, arg2, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ffiChar_CGPDFObjectRef_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - bool Function(ffi.Pointer, CGPDFObjectRef, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - CGPDFObjectRef, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - CGPDFObjectRef, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - CGPDFObjectRef, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - CGPDFObjectRef, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_bool_ffiChar_CGPDFObjectRef_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call( - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - CGPDFObjectRef, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSObject)>`. -abstract final class ObjCBlock_bool_ffiChar_xpcobjectt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, objc.NSObject)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, objc.NSObject)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, objc.NSObject)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, xpc_object_t arg1) - > - > - ptr, - ) => objc.ObjCBlock, objc.NSObject)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSObject)> - fromFunction( - bool Function(ffi.Pointer, Dartxpc_object_t) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, objc.NSObject)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - xpc_object_t arg1, - ) { - return fn( - arg0, - objc.NSObject.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - xpc_object_t arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, xpc_object_t arg1) - > - >() - .asFunction, xpc_object_t)>()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - xpc_object_t, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - xpc_object_t arg1, - ) => - (objc.getBlockClosure(block) - as bool Function(ffi.Pointer, xpc_object_t))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - xpc_object_t, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSObject)>`. -extension ObjCBlock_bool_ffiChar_xpcobjectt$CallExtension - on objc.ObjCBlock, objc.NSObject)> { - bool call(ffi.Pointer arg0, Dartxpc_object_t arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - xpc_object_t arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - xpc_object_t, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ffiSize_CGPDFObjectRef_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Size arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromFunction( - bool Function(int, CGPDFObjectRef, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Size arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function(int, CGPDFObjectRef, ffi.Pointer) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Size, - CGPDFObjectRef, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - int arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function(int, CGPDFObjectRef, ffi.Pointer))( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Size, - CGPDFObjectRef, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ffiSize_CGPDFObjectRef_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call(int arg0, CGPDFObjectRef arg1, ffi.Pointer arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Size arg0, - CGPDFObjectRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - int, - CGPDFObjectRef, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_bool_ffiSize_xpcobjectt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - bool Function(int, Dartxpc_object_t) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0, xpc_object_t arg1) { - return fn( - arg0, - objc.NSObject.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - xpc_object_t arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Size, - xpc_object_t, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - int arg0, - xpc_object_t arg1, - ) => (objc.getBlockClosure(block) as bool Function(int, xpc_object_t))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Size, - xpc_object_t, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_bool_ffiSize_xpcobjectt$CallExtension - on objc.ObjCBlock { - bool call(int arg0, Dartxpc_object_t arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Size arg0, - xpc_object_t arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, int, xpc_object_t) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_bool_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - bool Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast arg0)>>() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => (objc.getBlockClosure(block) as bool Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_bool_ffiVoid$CallExtension - on objc.ObjCBlock)> { - bool call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSArray, objc.NSData)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSArray_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - > - fromFunction( - bool Function(ffi.Pointer, objc.NSArray, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSArray.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSArray, objc.NSData)>`. -extension ObjCBlock_bool_ffiVoid_NSArray_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSArray, objc.NSData) - > { - bool call(ffi.Pointer arg0, objc.NSArray arg1, objc.NSData arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSConnection, NSConnection)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSConnection_NSConnection { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - > - fromFunction( - bool Function(ffi.Pointer, NSConnection, NSConnection) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSConnection.fromPointer(arg1, retain: true, release: true), - NSConnection.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSConnection, NSConnection)>`. -extension ObjCBlock_bool_ffiVoid_NSConnection_NSConnection$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSConnection, NSConnection) - > { - bool call(ffi.Pointer arg0, NSConnection arg1, NSConnection arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSConnection, NSDistantObjectRequest)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - > - fromFunction( - bool Function(ffi.Pointer, NSConnection, NSDistantObjectRequest) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSConnection.fromPointer(arg1, retain: true, release: true), - NSDistantObjectRequest.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSConnection, NSDistantObjectRequest)>`. -extension ObjCBlock_bool_ffiVoid_NSConnection_NSDistantObjectRequest$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSConnection, - NSDistantObjectRequest, - ) - > { - bool call( - ffi.Pointer arg0, - NSConnection arg1, - NSDistantObjectRequest arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer>)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer>, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer>)>`. -extension ObjCBlock_bool_ffiVoid_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer>, - ) - > { - bool call( - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer> arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - objc.NSString.fromPointer(arg4, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSString, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSString, - objc.NSString, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSError arg2, - objc.NSString arg3, - objc.NSString arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - objc.NSURL.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - objc.NSURL.fromPointer(arg3, retain: true, release: true), - objc.NSURL.fromPointer(arg4, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSError, objc.NSURL, objc.NSURL)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSError_NSURL_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSError, - objc.NSURL, - objc.NSURL, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSError arg2, - objc.NSURL arg3, - objc.NSURL arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - > - fromFunction( - bool Function(ffi.Pointer, NSFileManager, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSString) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSString, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSString, - objc.NSString, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSString arg2, - objc.NSString arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSURL)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - > - fromFunction( - bool Function(ffi.Pointer, NSFileManager, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSURL.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSURL)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSFileManager, objc.NSURL) - > { - bool call(ffi.Pointer arg0, NSFileManager arg1, objc.NSURL arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileManager, objc.NSURL, objc.NSURL)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - > - fromFunction( - bool Function(ffi.Pointer, NSFileManager, objc.NSURL, objc.NSURL) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSFileManager.fromPointer(arg1, retain: true, release: true), - objc.NSURL.fromPointer(arg2, retain: true, release: true), - objc.NSURL.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileManager, objc.NSURL, objc.NSURL)>`. -extension ObjCBlock_bool_ffiVoid_NSFileManager_NSURL_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSFileManager, - objc.NSURL, - objc.NSURL, - ) - > { - bool call( - ffi.Pointer arg0, - NSFileManager arg1, - objc.NSURL arg2, - objc.NSURL arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromFunction( - bool Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSString.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, objc.NSString, objc.NSString) - > { - bool call( - ffi.Pointer arg0, - objc.NSString arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSURLConnection { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLConnection) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock, NSURLConnection)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLConnection) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock, NSURLConnection)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLConnection) - > - fromFunction( - bool Function(ffi.Pointer, NSURLConnection) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock, NSURLConnection)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection)>`. -extension ObjCBlock_bool_ffiVoid_NSURLConnection$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLConnection) - > { - bool call(ffi.Pointer arg0, NSURLConnection arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLProtectionSpace)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - > - fromFunction( - bool Function(ffi.Pointer, NSURLConnection, NSURLProtectionSpace) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSURLProtectionSpace.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLProtectionSpace)>`. -extension ObjCBlock_bool_ffiVoid_NSURLConnection_NSURLProtectionSpace$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLConnection, - NSURLProtectionSpace, - ) - > { - bool call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSURLProtectionSpace arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSURLDownload)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSURLDownload)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSURLDownload)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSURLDownload)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLDownload)> - fromFunction( - bool Function(ffi.Pointer, NSURLDownload) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSURLDownload)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload)>`. -extension ObjCBlock_bool_ffiVoid_NSURLDownload$CallExtension - on objc.ObjCBlock, NSURLDownload)> { - bool call(ffi.Pointer arg0, NSURLDownload arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromFunction( - bool Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. -extension ObjCBlock_bool_ffiVoid_NSURLDownload_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSURLDownload, objc.NSString) - > { - bool call( - ffi.Pointer arg0, - NSURLDownload arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLProtectionSpace)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - > - fromFunction( - bool Function(ffi.Pointer, NSURLDownload, NSURLProtectionSpace) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - NSURLProtectionSpace.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLProtectionSpace)>`. -extension ObjCBlock_bool_ffiVoid_NSURLDownload_NSURLProtectionSpace$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSURLDownload, - NSURLProtectionSpace, - ) - > { - bool call( - ffi.Pointer arg0, - NSURLDownload arg1, - NSURLProtectionSpace arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromFunction( - bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSUserNotificationCenter.fromPointer( - arg1, - retain: true, - release: true, - ), - NSUserNotification.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. -extension ObjCBlock_bool_ffiVoid_NSUserNotificationCenter_NSUserNotification$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > { - bool call( - ffi.Pointer arg0, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXPCListener, NSXPCConnection)>`. -abstract final class ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - > - fromFunction( - bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, NSXPCListener, NSXPCConnection) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSXPCListener.fromPointer(arg1, retain: true, release: true), - NSXPCConnection.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static bool _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, false) - .cast(); - static bool _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, false) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXPCListener, NSXPCConnection)>`. -extension ObjCBlock_bool_ffiVoid_NSXPCListener_NSXPCConnection$CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - NSXPCListener, - NSXPCConnection, - ) - > { - bool call( - ffi.Pointer arg0, - NSXPCListener arg1, - NSXPCConnection arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiInt_ffiUnsignedInt_cupsdestt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.UnsignedInt arg0, ffi.Pointer arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - > - fromFunction( - int Function(int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int Function(ffi.UnsignedInt arg0, ffi.Pointer arg1) - > - >() - .asFunction)>()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as int Function(int, ffi.Pointer))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiInt_ffiUnsignedInt_cupsdestt$CallExtension - on - objc.ObjCBlock< - ffi.Int Function(ffi.UnsignedInt, ffi.Pointer) - > { - int call(int arg0, ffi.Pointer arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer block, - ffi.UnsignedInt arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiInt_ffiVoid_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer arg0, ffi.Pointer arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - int Function(ffi.Pointer, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as int Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiInt_ffiVoid_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > { - int call(ffi.Pointer arg0, ffi.Pointer arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiShort_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - int Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static int _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Short Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline, 0) - .cast(); - static int _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Short Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline, 0) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiShort_ffiVoid$CallExtension - on objc.ObjCBlock)> { - int call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, () { - return fn(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function() fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort( - _1uu024u_wrapListenerBlock_1pl9qdv, - (ffi.Pointer rawArgs) => fn(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function() fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort( - _1uu024u_wrapBlockingBlock_1pl9qdv, - (ffi.Pointer rawArgs) => fn(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline(ffi.Pointer block) => block - .ref - .target - .cast>() - .asFunction()(); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline(ffi.Pointer block) => - (objc.getBlockClosure(block) as void Function())(); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid$CallExtension - on objc.ObjCBlock { - void call() { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block) - > - >() - .asFunction)>()( - ref.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_Boolean_UInt64_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(Boolean arg0, UInt64 arg1, CFErrorRef arg2) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > - fromFunction( - void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - int arg1, - CFErrorRef arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > - listener( - void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_115kkcp, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_zgaes8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > - blocking( - void Function(DartBoolean, DartUInt64, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_115kkcp, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_zgaes8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - int arg1, - CFErrorRef arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(Boolean arg0, UInt64 arg1, CFErrorRef arg2) - > - >() - .asFunction()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - Boolean, - UInt64, - CFErrorRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - int arg1, - CFErrorRef arg2, - ) => (objc.getBlockClosure(block) as void Function(int, int, CFErrorRef))( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - Boolean, - UInt64, - CFErrorRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_Boolean_UInt64_CFErrorRef$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.UnsignedChar, - ffi.UnsignedLongLong, - ffi.Pointer<__CFError>, - ) - > { - void call(DartBoolean arg0, DartUInt64 arg1, CFErrorRef arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - Boolean arg0, - UInt64 arg1, - CFErrorRef arg2, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, int, int, CFErrorRef) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_CFArrayRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - void Function(CFArrayRef) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (CFArrayRef arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> listener( - void Function(CFArrayRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9fms3g, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vgtcpl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> blocking( - void Function(CFArrayRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9fms3g, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vgtcpl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, CFArrayRef) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - ) => (objc.getBlockClosure(block) as void Function(CFArrayRef))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, CFArrayRef) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_CFArrayRef$CallExtension - on objc.ObjCBlock)> { - void call(CFArrayRef arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFArrayRef arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, CFArrayRef) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__CFError>)>`. -abstract final class ObjCBlock_ffiVoid_CFArrayRef_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - fromFunction( - void Function(CFArrayRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - >( - objc.newClosureBlock(_closureCallable, ( - CFArrayRef arg0, - CFErrorRef arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - listener( - void Function(CFArrayRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_15ghdzk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17mefw7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > - blocking( - void Function(CFArrayRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15ghdzk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17mefw7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - CFErrorRef arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFArrayRef, - CFErrorRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFArrayRef arg0, - CFErrorRef arg1, - ) => (objc.getBlockClosure(block) as void Function(CFArrayRef, CFErrorRef))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFArrayRef, - CFErrorRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer<__CFError>)>`. -extension ObjCBlock_ffiVoid_CFArrayRef_CFErrorRef$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFArray>, ffi.Pointer<__CFError>) - > { - void call(CFArrayRef arg0, CFErrorRef arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFArrayRef arg0, - CFErrorRef arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, CFArrayRef, CFErrorRef) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - void Function(CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (CFErrorRef arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> listener( - void Function(CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1kwz7d1, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13g89k6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> blocking( - void Function(CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1kwz7d1, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13g89k6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFErrorRef arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, CFErrorRef) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFErrorRef arg0, - ) => (objc.getBlockClosure(block) as void Function(CFErrorRef))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, CFErrorRef) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_CFErrorRef$CallExtension - on objc.ObjCBlock)> { - void call(CFErrorRef arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFErrorRef arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, CFErrorRef) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_CFErrorRef_CGContentInfo_CGBitmapParameters { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - void Function( - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > - listener( - void Function( - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1yrznn1, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hs0ws6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > - blocking( - void Function( - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1yrznn1, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hs0ws6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_CFErrorRef_CGContentInfo_CGBitmapParameters$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__CFError>, - ffi.Pointer, - ffi.Pointer, - ) - > { - void call( - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFErrorRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - CFErrorRef, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, CFOptionFlags)>`. -abstract final class ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopObserverRef arg0, CFOptionFlags arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - fromFunction( - void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - >( - objc.newClosureBlock(_closureCallable, ( - CFRunLoopObserverRef arg0, - int arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - listener( - void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_tg5tbv, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_14lm7fk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > - blocking( - void Function(CFRunLoopObserverRef, DartCFOptionFlags) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_tg5tbv, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_14lm7fk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFRunLoopObserverRef arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(CFRunLoopObserverRef arg0, CFOptionFlags arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFRunLoopObserverRef, - CFOptionFlags, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFRunLoopObserverRef arg0, - int arg1, - ) => - (objc.getBlockClosure(block) as void Function(CFRunLoopObserverRef, int))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFRunLoopObserverRef, - CFOptionFlags, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, CFOptionFlags)>`. -extension ObjCBlock_ffiVoid_CFRunLoopObserverRef_CFRunLoopActivity$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__CFRunLoopObserver>, CFOptionFlags) - > { - void call(CFRunLoopObserverRef arg0, DartCFOptionFlags arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFRunLoopObserverRef arg0, - CFOptionFlags arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - CFRunLoopObserverRef, - int, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_CFRunLoopTimerRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer> - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - void Function(CFRunLoopTimerRef) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (CFRunLoopTimerRef arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - listener( - void Function(CFRunLoopTimerRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1dqvvol, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_n2dxuu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> - blocking( - void Function(CFRunLoopTimerRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1dqvvol, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_n2dxuu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFRunLoopTimerRef arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFRunLoopTimerRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFRunLoopTimerRef arg0, - ) => (objc.getBlockClosure(block) as void Function(CFRunLoopTimerRef))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFRunLoopTimerRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_CFRunLoopTimerRef$CallExtension - on objc.ObjCBlock)> { - void call(CFRunLoopTimerRef arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFRunLoopTimerRef arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, CFRunLoopTimerRef) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__CFError>, ffi.UnsignedChar)>`. -abstract final class ObjCBlock_ffiVoid_CFTypeRef_CFErrorRef_Boolean { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CFTypeRef arg0, CFErrorRef arg1, Boolean arg2) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > - fromFunction( - void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >( - objc.newClosureBlock(_closureCallable, ( - CFTypeRef arg0, - CFErrorRef arg1, - int arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > - listener( - void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_b3tf6o, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1sucxsg.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > - blocking( - void Function(CFTypeRef, CFErrorRef, DartBoolean) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_b3tf6o, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1sucxsg.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CFTypeRef arg0, - CFErrorRef arg1, - int arg2, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(CFTypeRef arg0, CFErrorRef arg1, Boolean arg2) - > - >() - .asFunction()( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFTypeRef, - CFErrorRef, - Boolean, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CFTypeRef arg0, - CFErrorRef arg1, - int arg2, - ) => - (objc.getBlockClosure(block) - as void Function(CFTypeRef, CFErrorRef, int))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CFTypeRef, - CFErrorRef, - Boolean, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer<__CFError>, ffi.UnsignedChar)>`. -extension ObjCBlock_ffiVoid_CFTypeRef_CFErrorRef_Boolean$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - > { - void call(CFTypeRef arg0, CFErrorRef arg1, DartBoolean arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CFTypeRef arg0, - CFErrorRef arg1, - Boolean arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - CFTypeRef, - CFErrorRef, - int, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_CGDisplayStreamFrameStatus_Uint64_IOSurfaceRef_CGDisplayStreamUpdateRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int32 arg0, - ffi.Uint64 arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > - fromFunction( - void Function( - CGDisplayStreamFrameStatus, - int, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - int arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) { - return fn( - CGDisplayStreamFrameStatus.fromValue(arg0), - arg1, - arg2, - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > - listener( - void Function( - CGDisplayStreamFrameStatus, - int, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_du1izn, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1lr5l4t.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > - blocking( - void Function( - CGDisplayStreamFrameStatus, - int, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_du1izn, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1lr5l4t.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - int arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int32 arg0, - ffi.Uint64 arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) - > - >() - .asFunction< - void Function(int, int, IOSurfaceRef, CGDisplayStreamUpdateRef) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int32, - ffi.Uint64, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - int arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) => - (objc.getBlockClosure(block) - as void Function(int, int, IOSurfaceRef, CGDisplayStreamUpdateRef))( - arg0, - arg1, - arg2, - arg3, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int32, - ffi.Uint64, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_CGDisplayStreamFrameStatus_Uint64_IOSurfaceRef_CGDisplayStreamUpdateRef$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Int32, - ffi.Uint64, - ffi.Pointer<__IOSurface>, - ffi.Pointer, - ) - > { - void call( - CGDisplayStreamFrameStatus arg0, - int arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Int32 arg0, - ffi.Uint64 arg1, - IOSurfaceRef arg2, - CGDisplayStreamUpdateRef arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - int, - IOSurfaceRef, - CGDisplayStreamUpdateRef, - ) - >()(ref.pointer, arg0.value, arg1, arg2, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_CGPathElement { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1ctgxtl, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_dmvhfp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1ctgxtl, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_dmvhfp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_CGPathElement$CallExtension - on objc.ObjCBlock)> { - void call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - void Function( - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - listener( - void Function( - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_rdj45r, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v1zq3a.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - blocking( - void Function( - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_rdj45r, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v1zq3a.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_CGRenderingBufferProviderRef_CGContentInfo_CGBitmapParameters$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - void call( - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - CGRenderingBufferProviderRef arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - CGRenderingBufferProviderRef, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSAppleEventDescriptor_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > - fromFunction( - void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : NSAppleEventDescriptor.fromPointer( - arg0, - retain: true, - release: true, - ), - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > - listener( - void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1gmgda9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > - blocking( - void Function(NSAppleEventDescriptor?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1gmgda9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSAppleEventDescriptor_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(NSAppleEventDescriptor?, objc.NSError?) - > { - void call(NSAppleEventDescriptor? arg0, objc.NSError? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSArray { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSArray?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSArray.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(objc.NSArray?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1p7ak3v.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(objc.NSArray?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1p7ak3v.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSArray$CallExtension - on objc.ObjCBlock { - void call(objc.NSArray? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSBackgroundActivityResult { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSBackgroundActivityResult) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0) { - return fn(NSBackgroundActivityResult.fromValue(arg0)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSBackgroundActivityResult) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_10ssdng, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_ldsont.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSBackgroundActivityResult) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_10ssdng, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_ldsont.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ) => (objc.getBlockClosure(block) as void Function(int))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSBackgroundActivityResult$CallExtension - on objc.ObjCBlock { - void call(NSBackgroundActivityResult arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSInteger arg0, - ) - > - >() - .asFunction, int)>()( - ref.pointer, - arg0.value, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSCachedURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSCachedURLResponse?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : NSCachedURLResponse.fromPointer( - arg0, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSCachedURLResponse?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_wtbfzi.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSCachedURLResponse?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_wtbfzi.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSCachedURLResponse$CallExtension - on objc.ObjCBlock { - void call(NSCachedURLResponse? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSData_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSData.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x5cg0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x5cg0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension - on objc.ObjCBlock { - void call(objc.NSData? arg0, objc.NSError? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - fromFunction( - void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSData.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : NSURLResponse.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - listener( - void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1mv87bk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > - blocking( - void Function(objc.NSData?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1mv87bk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(objc.NSData?, NSURLResponse?, objc.NSError?) - > { - void call(objc.NSData? arg0, NSURLResponse? arg1, objc.NSError? arg2) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - final _$$ref$2 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSDictionary?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSDictionary.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(objc.NSDictionary?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_6tydoo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(objc.NSDictionary?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_6tydoo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSDictionary$CallExtension - on objc.ObjCBlock { - void call(objc.NSDictionary? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSDictionary, - objc.NSRange, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSDictionary, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - fromFunction( - void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSDictionary, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) { - return fn( - objc.NSDictionary.fromPointer(arg0, retain: true, release: true), - arg1, - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - listener( - void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1a22wz, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v8in3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - > - blocking( - void Function(objc.NSDictionary, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSDictionary, objc.NSRange, ffi.Pointer) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1a22wz, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v8in3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSDictionary_NSRange_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.NSDictionary, - objc.NSRange, - ffi.Pointer, - ) - > { - void call(objc.NSDictionary arg0, NSRange arg1, ffi.Pointer arg2) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSError.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_117e0ww.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_117e0ww.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSError$CallExtension - on objc.ObjCBlock { - void call(objc.NSError? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSError$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn(objc.NSError.fromPointer(arg0, retain: true, release: true)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_b9s2kt.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_b9s2kt.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSError$1$CallExtension - on objc.ObjCBlock { - void call(objc.NSError arg0) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSFileHandle { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSFileHandle) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn(NSFileHandle.fromPointer(arg0, retain: true, release: true)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSFileHandle) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v5xz31.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSFileHandle) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_v5xz31.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSFileHandle$CallExtension - on objc.ObjCBlock { - void call(NSFileHandle arg0) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSInputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(objc.NSInputStream?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSInputStream.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(objc.NSInputStream?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ura76.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(objc.NSInputStream?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ura76.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSInputStream$CallExtension - on objc.ObjCBlock { - void call(objc.NSInputStream? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>`. -abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > - fromFunction( - void Function( - DartNSItemProviderCompletionHandler, - objc.ObjCObject, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >( - objc.newClosureBlock(_closureCallable, ( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( - arg0, - retain: true, - release: true, - ), - objc.ObjCObject(arg1, retain: true, release: true), - objc.NSDictionary.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > - listener( - void Function( - DartNSItemProviderCompletionHandler, - objc.ObjCObject, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1b3bb6a, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_6yk1dr.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > - blocking( - void Function( - DartNSItemProviderCompletionHandler, - objc.ObjCObject, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1b3bb6a, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_6yk1dr.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?, objc.NSError)>, ffi.Pointer, objc.NSDictionary)>`. -extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObjectImpl_NSDictionary$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >, - ffi.Pointer, - objc.NSDictionary, - ) - > { - void call( - DartNSItemProviderCompletionHandler arg0, - objc.ObjCObject arg1, - objc.NSDictionary arg2, - ) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSItemProviderCompletionHandler arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSItemProviderCompletionHandler, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSObject { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(Dartsec_certificate_t) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (sec_certificate_t arg0) { - return fn(objc.NSObject.fromPointer(arg0, retain: true, release: true)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(Dartsec_certificate_t) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1q305zu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(Dartsec_certificate_t) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1q305zu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - sec_certificate_t arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_certificate_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - sec_certificate_t arg0, - ) => (objc.getBlockClosure(block) as void Function(sec_certificate_t))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_certificate_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSObject$CallExtension - on objc.ObjCBlock { - void call(Dartsec_certificate_t arg0) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_certificate_t arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, sec_certificate_t) - >()(ref.pointer, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSObject$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(Dartdispatch_data_t?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0) { - return fn( - arg0.address == 0 - ? null - : objc.NSObject.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(Dartdispatch_data_t?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n468bj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(Dartdispatch_data_t?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n468bj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, dispatch_data_t) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, dispatch_data_t) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSObject$1$CallExtension - on objc.ObjCBlock { - void call(Dartdispatch_data_t? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - dispatch_data_t arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, dispatch_data_t) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - fromFunction( - void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSString.fromPointer(arg0, retain: true, release: true), - arg1, - arg2, - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - listener( - void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_lmc3p5, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pvrxoh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > - blocking( - void Function(objc.NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_lmc3p5, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pvrxoh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.NSString?, - objc.NSRange, - objc.NSRange, - ffi.Pointer, - ) - > { - void call( - objc.NSString? arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSTask { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSTask) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn(NSTask.fromPointer(arg0, retain: true, release: true)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSTask) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_347s5u.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSTask) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_347s5u.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSTask$CallExtension - on objc.ObjCBlock { - void call(NSTask arg0) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) - > - fromFunction( - void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0.address == 0 - ? null - : NSTextCheckingResult.fromPointer( - arg0, - retain: true, - release: true, - ), - arg1, - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) - > - listener( - void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_6jvo9y, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1uc4fg7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(NSTextCheckingResult?, NSUInteger, ffi.Pointer) - > - blocking( - void Function(NSTextCheckingResult?, DartNSUInteger, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6jvo9y, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1uc4fg7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - NSTextCheckingResult?, - NSUInteger, - ffi.Pointer, - ) - > { - void call( - NSTextCheckingResult? arg0, - DartNSUInteger arg1, - ffi.Pointer arg2, - ) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSUInteger arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLCredential { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : NSURLCredential.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13o2rom.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13o2rom.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLCredential$CallExtension - on objc.ObjCBlock { - void call(NSURLCredential? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : NSURLRequest.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n6ph2.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xtuoz7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n6ph2.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLRequest$CallExtension - on objc.ObjCBlock { - void call(NSURLRequest? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - fromFunction( - void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0.address == 0 - ? null - : NSURLResponse.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSData.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - listener( - void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1oftdow.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > - blocking( - void Function(NSURLResponse?, objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1oftdow.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(NSURLResponse?, objc.NSData?, objc.NSError?) - > { - void call(NSURLResponse? arg0, objc.NSData? arg1, objc.NSError? arg2) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - final _$$ref$2 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - int arg0, - ffi.Pointer arg1, - ) { - return fn( - NSURLSessionAuthChallengeDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLCredential.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_n8yd09, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_u65oe8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(NSURLSessionAuthChallengeDisposition, NSURLCredential?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_n8yd09, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_u65oe8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - NSInteger arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function(int, ffi.Pointer))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential$CallExtension - on objc.ObjCBlock { - void call(NSURLSessionAuthChallengeDisposition arg0, NSURLCredential? arg1) { - final _$$ref = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSInteger arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0.value, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(NSInteger arg0, ffi.Pointer arg1) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - int arg0, - ffi.Pointer arg1, - ) { - return fn( - NSURLSessionDelayedRequestDisposition.fromValue(arg0), - arg1.address == 0 - ? null - : NSURLRequest.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1otpo83, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_171cldw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURLSessionDelayedRequestDisposition, NSURLRequest?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1otpo83, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_171cldw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - NSInteger arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function(int, ffi.Pointer))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest$CallExtension - on objc.ObjCBlock { - void call(NSURLSessionDelayedRequestDisposition arg0, NSURLRequest? arg1) { - final _$$ref = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSInteger arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0.value, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURLSessionResponseDisposition { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSURLSessionResponseDisposition) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0) { - return fn(NSURLSessionResponseDisposition.fromValue(arg0)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURLSessionResponseDisposition) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_16sve1d, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1y7f3jy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURLSessionResponseDisposition) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_16sve1d, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1y7f3jy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ) => (objc.getBlockClosure(block) as void Function(int))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, NSInteger) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURLSessionResponseDisposition$CallExtension - on objc.ObjCBlock { - void call(NSURLSessionResponseDisposition arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSInteger arg0, - ) - > - >() - .asFunction, int)>()( - ref.pointer, - arg0.value, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - fromFunction( - void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSURL.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : NSURLResponse.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - listener( - void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_r8gdi7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3gru2r.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > - blocking( - void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_r8gdi7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3gru2r.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(objc.NSURL?, NSURLResponse?, objc.NSError?) - > { - void call(objc.NSURL? arg0, NSURLResponse? arg1, objc.NSError? arg2) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - final _$$ref$2 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_OSStatus_AuthorizationRights { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(OSStatus arg0, ffi.Pointer arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > - fromFunction( - void Function(DartSInt32, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > - listener( - void Function(DartSInt32, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_l3f29g, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1v0sc8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > - blocking( - void Function(DartSInt32, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_l3f29g, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1v0sc8.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - OSStatus arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - OSStatus, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function(int, ffi.Pointer))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - OSStatus, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_OSStatus_AuthorizationRights$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Int, ffi.Pointer) - > { - void call(DartSInt32 arg0, ffi.Pointer arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - OSStatus arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer<__SecKey>, ffi.Pointer<__CFError>)>`. -abstract final class ObjCBlock_ffiVoid_SecKeyRef_SecKeyRef_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > - fromFunction( - void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - SecKeyRef arg0, - SecKeyRef arg1, - CFErrorRef arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > - listener( - void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1rz4y3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_5zyi3o.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > - blocking( - void Function(SecKeyRef, SecKeyRef, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1rz4y3, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_5zyi3o.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - SecKeyRef arg0, - SecKeyRef arg1, - CFErrorRef arg2, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) - > - >() - .asFunction()( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecKeyRef, - SecKeyRef, - CFErrorRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - SecKeyRef arg0, - SecKeyRef arg1, - CFErrorRef arg2, - ) => - (objc.getBlockClosure(block) - as void Function(SecKeyRef, SecKeyRef, CFErrorRef))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecKeyRef, - SecKeyRef, - CFErrorRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer<__SecKey>, ffi.Pointer<__CFError>)>`. -extension ObjCBlock_ffiVoid_SecKeyRef_SecKeyRef_CFErrorRef$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - > { - void call(SecKeyRef arg0, SecKeyRef arg1, CFErrorRef arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - SecKeyRef arg0, - SecKeyRef arg1, - CFErrorRef arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - SecKeyRef, - SecKeyRef, - CFErrorRef, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Uint32)>`. -abstract final class ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, ffi.Uint32)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, ffi.Uint32)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, ffi.Uint32)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => objc.ObjCBlock, ffi.Uint32)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Uint32)> - fromFunction( - void Function(SecTrustRef, SecTrustResultType) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, ffi.Uint32)>( - objc.newClosureBlock(_closureCallable, (SecTrustRef arg0, int arg1) { - return fn(arg0, SecTrustResultType.fromValue(arg1)); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Uint32)> - listener( - void Function(SecTrustRef, SecTrustResultType) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_gwxhxt, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12rv5aa.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, ffi.Uint32)> - blocking( - void Function(SecTrustRef, SecTrustResultType) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Uint32) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_gwxhxt, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12rv5aa.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecTrustRef, - ffi.Uint32, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - int arg1, - ) => (objc.getBlockClosure(block) as void Function(SecTrustRef, int))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecTrustRef, - ffi.Uint32, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Uint32)>`. -extension ObjCBlock_ffiVoid_SecTrustRef_SecTrustResultType$CallExtension - on objc.ObjCBlock, ffi.Uint32)> { - void call(SecTrustRef arg0, SecTrustResultType arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - SecTrustRef arg0, - ffi.Uint32 arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, SecTrustRef, int) - >()(ref.pointer, arg0, arg1.value); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)>`. -abstract final class ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(SecTrustRef arg0, ffi.Bool arg1, CFErrorRef arg2) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) - > - fromFunction( - void Function(SecTrustRef, bool, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - SecTrustRef arg0, - bool arg1, - CFErrorRef arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) - > - listener( - void Function(SecTrustRef, bool, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_k73ff5, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_j3xbuw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer<__SecTrust>, ffi.Bool, ffi.Pointer<__CFError>) - > - blocking( - void Function(SecTrustRef, bool, CFErrorRef) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_k73ff5, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_j3xbuw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - bool arg1, - CFErrorRef arg2, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - SecTrustRef arg0, - ffi.Bool arg1, - CFErrorRef arg2, - ) - > - >() - .asFunction()( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecTrustRef, - ffi.Bool, - CFErrorRef, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - SecTrustRef arg0, - bool arg1, - CFErrorRef arg2, - ) => - (objc.getBlockClosure(block) - as void Function(SecTrustRef, bool, CFErrorRef))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - SecTrustRef, - ffi.Bool, - CFErrorRef, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Bool, ffi.Pointer<__CFError>)>`. -extension ObjCBlock_ffiVoid_SecTrustRef_bool_CFErrorRef$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - > { - void call(SecTrustRef arg0, bool arg1, CFErrorRef arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - SecTrustRef arg0, - ffi.Bool arg1, - CFErrorRef arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - SecTrustRef, - bool, - CFErrorRef, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_Uint16 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_15f11yh, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_tbof01.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15f11yh, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_tbof01.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Uint16) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ) => (objc.getBlockClosure(block) as void Function(int))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Uint16) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_Uint16$CallExtension - on objc.ObjCBlock { - void call(int arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Uint16 arg0, - ) - > - >() - .asFunction, int)>()( - ref.pointer, - arg0, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(bool) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (bool arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1s56lr9, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k4je64.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1s56lr9, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k4je64.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - bool arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Bool) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - bool arg0, - ) => (objc.getBlockClosure(block) as void Function(bool))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Bool) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_bool$CallExtension - on objc.ObjCBlock { - void call(bool arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Bool arg0, - ) - > - >() - .asFunction, bool)>()( - ref.pointer, - arg0, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_bool_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Bool arg0, ffi.Pointer arg1) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(bool, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - bool arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(bool, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_hk7n97, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_syyzqk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(bool, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_hk7n97, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_syyzqk.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - bool arg0, - ffi.Pointer arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Bool arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - bool arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function(bool, ffi.Pointer))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_bool_NSError$CallExtension - on objc.ObjCBlock { - void call(bool arg0, objc.NSError? arg1) { - final _$$ref = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Bool arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - bool, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Bool arg0, dispatch_data_t arg1, ffi.Int arg2) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(bool, Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - bool arg0, - dispatch_data_t arg1, - int arg2, - ) { - return fn( - arg0, - arg1.address == 0 - ? null - : objc.NSObject.fromPointer(arg1, retain: true, release: true), - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(bool, Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_og5b6y, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_uul9n9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(bool, Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_og5b6y, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_uul9n9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - bool arg0, - dispatch_data_t arg1, - int arg2, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Bool arg0, - dispatch_data_t arg1, - ffi.Int arg2, - ) - > - >() - .asFunction()( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Bool, - dispatch_data_t, - ffi.Int, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - bool arg0, - dispatch_data_t arg1, - int arg2, - ) => - (objc.getBlockClosure(block) - as void Function(bool, dispatch_data_t, int))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Bool, - dispatch_data_t, - ffi.Int, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_bool_dispatchdatat_ffiInt$CallExtension - on objc.ObjCBlock { - void call(bool arg0, Dartdispatch_data_t? arg1, int arg2) { - final _$$ref = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Bool arg0, - dispatch_data_t arg1, - ffi.Int arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - bool, - dispatch_data_t, - int, - ) - >()(ref.pointer, arg0, _$$ref?.pointer ?? ffi.nullptr, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - dispatch_data_t arg0, - dispatch_data_t arg1, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - objc.NSObject.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_lmnq5k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(Dartdispatch_data_t, Dartdispatch_data_t) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_lmnq5k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - dispatch_data_t arg1, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, dispatch_data_t arg1) - > - >() - .asFunction()( - arg0, - arg1, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - dispatch_data_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - dispatch_data_t arg1, - ) => - (objc.getBlockClosure(block) - as void Function(dispatch_data_t, dispatch_data_t))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - dispatch_data_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_dispatchdatat_dispatchdatat$CallExtension - on objc.ObjCBlock { - void call(Dartdispatch_data_t arg0, Dartdispatch_data_t arg1) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - dispatch_data_t arg0, - dispatch_data_t arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - dispatch_data_t, - dispatch_data_t, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(Dartdispatch_data_t, int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0, int arg1) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - arg1, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(Dartdispatch_data_t, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18kzm6a, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k4eb20.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(Dartdispatch_data_t, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18kzm6a, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k4eb20.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - ffi.Int, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - ffi.Int, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_dispatchdatat_ffiInt$CallExtension - on objc.ObjCBlock { - void call(Dartdispatch_data_t arg0, int arg1) { - final _$$ref = arg0.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - dispatch_data_t arg0, - ffi.Int arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, dispatch_data_t, int) - >()(ref.pointer, _$$ref.pointer, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (dispatch_data_t arg0, int arg1) { - return fn( - arg0.address == 0 - ? null - : objc.NSObject.fromPointer(arg0, retain: true, release: true), - arg1, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18kzm6a, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_11uyayp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(Dartdispatch_data_t?, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18kzm6a, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_11uyayp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(dispatch_data_t arg0, ffi.Int arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - ffi.Int, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - dispatch_data_t arg0, - int arg1, - ) => (objc.getBlockClosure(block) as void Function(dispatch_data_t, int))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - dispatch_data_t, - ffi.Int, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_dispatchdatat_ffiInt$1$CallExtension - on objc.ObjCBlock { - void call(Dartdispatch_data_t? arg0, int arg1) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - dispatch_data_t arg0, - ffi.Int arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, dispatch_data_t, int) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Double arg0, - CFIndex arg1, - ffi.Bool arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - fromFunction( - void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - double arg0, - int arg1, - bool arg2, - ffi.Pointer arg3, - ) { - return fn(arg0, arg1, arg2, arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - listener( - void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_132rcs6, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1xkpqmj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - > - blocking( - void Function(double, DartCFIndex, bool, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_132rcs6, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1xkpqmj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - double arg0, - int arg1, - bool arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Double arg0, - CFIndex arg1, - ffi.Bool arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function(double, int, bool, ffi.Pointer) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Double, - CFIndex, - ffi.Bool, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - double arg0, - int arg1, - bool arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function(double, int, bool, ffi.Pointer))( - arg0, - arg1, - arg2, - arg3, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Double, - CFIndex, - ffi.Bool, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Double, - ffi.Long, - ffi.Bool, - ffi.Pointer, - ) - > { - void call( - double arg0, - DartCFIndex arg1, - bool arg2, - ffi.Pointer arg3, - ) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Double arg0, - CFIndex arg1, - ffi.Bool arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - double, - int, - bool, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_ffiInt { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9o8504, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1s2j81k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9o8504, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1s2j81k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Int) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ) => (objc.getBlockClosure(block) as void Function(int))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Int) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_ffiInt$CallExtension - on objc.ObjCBlock { - void call(int arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Int arg0, - ) - > - >() - .asFunction, int)>()( - ref.pointer, - arg0, - ); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_ffiSize { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, (int arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_6enxqz, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_kqbpyy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_6enxqz, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_kqbpyy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Size) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - ) => (objc.getBlockClosure(block) as void Function(int))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Size) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_ffiSize$CallExtension - on objc.ObjCBlock { - void call(int arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Size arg0, - ) - > - >() - .asFunction, int)>()( - ref.pointer, - arg0, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiSize_CGImageRef_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Size arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - fromFunction( - void Function(int, CGImageRef, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - int arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) { - return fn(arg0, arg1, arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - listener( - void Function(int, CGImageRef, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_11t2oft, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1x2wp90.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - > - blocking( - void Function(int, CGImageRef, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Size, ffi.Pointer, ffi.Pointer) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_11t2oft, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1x2wp90.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - int arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Size arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - CGImageRef, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - int arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function(int, CGImageRef, ffi.Pointer))( - arg0, - arg1, - arg2, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Size, - CGImageRef, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiSize_CGImageRef_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Size, - ffi.Pointer, - ffi.Pointer, - ) - > { - void call(int arg0, CGImageRef arg1, ffi.Pointer arg2) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Size arg0, - CGImageRef arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - CGImageRef, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function(ffi.Pointer)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunction( - CFTypeRef Function(CFTypeRef) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newClosureBlock(_closureCallable, (CFTypeRef arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static CFTypeRef _fnPtrTrampoline( - ffi.Pointer block, - CFTypeRef arg0, - ) => block.ref.target - .cast>() - .asFunction()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function(ffi.Pointer, CFTypeRef) - >(_fnPtrTrampoline) - .cast(); - static CFTypeRef _closureTrampoline( - ffi.Pointer block, - CFTypeRef arg0, - ) => (objc.getBlockClosure(block) as CFTypeRef Function(CFTypeRef))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - CFTypeRef Function(ffi.Pointer, CFTypeRef) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid$CallExtension - on objc.ObjCBlock Function(ffi.Pointer)> { - CFTypeRef call(CFTypeRef arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - CFTypeRef Function( - ffi.Pointer block, - CFTypeRef arg0, - ) - > - >() - .asFunction< - CFTypeRef Function(ffi.Pointer, CFTypeRef) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_ovsamd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_awd5mj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ovsamd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_awd5mj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast arg0)>>() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => (objc.getBlockClosure(block) as void Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid$1$CallExtension - on objc.ObjCBlock)> { - void call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); - } -} - -/// Construction methods for `objc.ObjCBlock?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid$2 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock?)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock?)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock?)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock?)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?)> - fromFunction( - void Function(objc.ObjCBlock?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock?)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ) { - return fn( - arg0.address == 0 - ? null - : ObjCBlock_ffiVoid.fromPointer(arg0, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?)> - listener( - void Function(objc.ObjCBlock?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_f167m6, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12cm2y5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock?)> - blocking( - void Function(objc.ObjCBlock?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_f167m6, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12cm2y5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0) - > - >() - .asFunction)>()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?)>`. -extension ObjCBlock_ffiVoid_ffiVoid$2$CallExtension - on objc.ObjCBlock?)> { - void call(objc.ObjCBlock? arg0) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); - } -} - -/// Construction methods for `objc.ObjCBlock, AVAudioPlayer, objc.NSError?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > - fromFunction( - void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - AVAudioPlayer.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > - listener( - void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3prg4b.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > - blocking( - void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3prg4b.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, AVAudioPlayer, objc.NSError?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, objc.NSError?) - > { - void call( - ffi.Pointer arg0, - AVAudioPlayer arg1, - objc.NSError? arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, AVAudioPlayer, ffi.Bool)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Bool arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > - fromFunction( - void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - bool arg2, - ) { - return fn( - arg0, - AVAudioPlayer.fromPointer(arg1, retain: true, release: true), - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > - listener( - void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_zzthnb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1giidhf.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > - blocking( - void Function(ffi.Pointer, AVAudioPlayer, bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_zzthnb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1giidhf.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - bool arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Bool arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - bool arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, AVAudioPlayer, ffi.Bool)>`. -extension ObjCBlock_ffiVoid_ffiVoid_AVAudioPlayer_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, AVAudioPlayer, ffi.Bool) - > { - void call(ffi.Pointer arg0, AVAudioPlayer arg1, bool arg2) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Bool arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(ref.pointer, arg0, _$$ref.pointer, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, NSCache, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > - fromFunction( - void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSCache.fromPointer(arg1, retain: true, release: true), - objc.ObjCObject(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > - listener( - void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1sy9q99.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > - blocking( - void Function(ffi.Pointer, NSCache, objc.ObjCObject) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1sy9q99.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSCache, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSCache_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSCache, - ffi.Pointer, - ) - > { - void call(ffi.Pointer arg0, NSCache arg1, objc.ObjCObject arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSExtensionContext)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > - fromFunction( - void Function(ffi.Pointer, NSExtensionContext) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSExtensionContext.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > - listener( - void Function(ffi.Pointer, NSExtensionContext) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_truc42.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > - blocking( - void Function(ffi.Pointer, NSExtensionContext) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_truc42.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSExtensionContext)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSExtensionContext$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSExtensionContext) - > { - void call(ffi.Pointer arg0, NSExtensionContext arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSFileVersion)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSFileVersion { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSFileVersion)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSFileVersion)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSFileVersion)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSFileVersion)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSFileVersion)> - fromFunction( - void Function(ffi.Pointer, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSFileVersion)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSFileVersion.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSFileVersion)> - listener( - void Function(ffi.Pointer, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSFileVersion) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1y4tc38.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSFileVersion)> - blocking( - void Function(ffi.Pointer, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSFileVersion) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1y4tc38.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSFileVersion)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSFileVersion$CallExtension - on objc.ObjCBlock, NSFileVersion)> { - void call(ffi.Pointer arg0, NSFileVersion arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock, NSKeyedArchiver)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock, NSKeyedArchiver)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > - fromFunction( - void Function(ffi.Pointer, NSKeyedArchiver) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock, NSKeyedArchiver)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > - listener( - void Function(ffi.Pointer, NSKeyedArchiver) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ciefi0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > - blocking( - void Function(ffi.Pointer, NSKeyedArchiver) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ciefi0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSKeyedArchiver)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedArchiver) - > { - void call(ffi.Pointer arg0, NSKeyedArchiver arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > - fromFunction( - void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.ObjCObject(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > - listener( - void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1oetg5g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > - blocking( - void Function(ffi.Pointer, NSKeyedArchiver, objc.ObjCObject?) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1oetg5g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ) - > { - void call( - ffi.Pointer arg0, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?, ffi.Pointer?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSKeyedArchiver, - objc.ObjCObject?, - objc.ObjCObject?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.ObjCObject(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.ObjCObject(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > - listener( - void Function( - ffi.Pointer, - NSKeyedArchiver, - objc.ObjCObject?, - objc.ObjCObject?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_170i760.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSKeyedArchiver, - objc.ObjCObject?, - objc.ObjCObject?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_170i760.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSKeyedArchiver, ffi.Pointer?, ffi.Pointer?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer?, - ffi.Pointer?, - ) - > { - void call( - ffi.Pointer arg0, - NSKeyedArchiver arg1, - objc.ObjCObject? arg2, - objc.ObjCObject? arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2?.ref; - final _$$ref$2 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSKeyedUnarchiver)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > - fromFunction( - void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > - listener( - void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pfw36l.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > - blocking( - void Function(ffi.Pointer, NSKeyedUnarchiver) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pfw36l.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSKeyedUnarchiver)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSKeyedUnarchiver) - > { - void call(ffi.Pointer arg0, NSKeyedUnarchiver arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSKeyedUnarchiver, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.ObjCObject, - objc.ObjCObject, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), - objc.ObjCObject(arg2, retain: true, release: true), - objc.ObjCObject(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > - listener( - void Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.ObjCObject, - objc.ObjCObject, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1o2efq5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > - blocking( - void Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.ObjCObject, - objc.ObjCObject, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1o2efq5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSKeyedUnarchiver, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSKeyedUnarchiver, - ffi.Pointer, - ffi.Pointer, - ) - > { - void call( - ffi.Pointer arg0, - NSKeyedUnarchiver arg1, - objc.ObjCObject arg2, - objc.ObjCObject arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetService)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSNetService)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSNetService)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSNetService)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSNetService)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSNetService)> - fromFunction( - void Function(ffi.Pointer, NSNetService) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSNetService)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSNetService.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSNetService)> - listener( - void Function(ffi.Pointer, NSNetService) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_u4a6zc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSNetService)> - blocking( - void Function(ffi.Pointer, NSNetService) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_u4a6zc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetService)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetService$CallExtension - on objc.ObjCBlock, NSNetService)> { - void call(ffi.Pointer arg0, NSNetService arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > - fromFunction( - void Function(ffi.Pointer, NSNetServiceBrowser) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > - listener( - void Function(ffi.Pointer, NSNetServiceBrowser) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_19rrqmo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > - blocking( - void Function(ffi.Pointer, NSNetServiceBrowser) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_19rrqmo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetServiceBrowser) - > { - void call(ffi.Pointer arg0, NSNetServiceBrowser arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSDictionary)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > - fromFunction( - void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), - objc.NSDictionary.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > - listener( - void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_adcfsd.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > - blocking( - void Function(ffi.Pointer, NSNetServiceBrowser, objc.NSDictionary) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_adcfsd.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSDictionary)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSDictionary$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSDictionary, - ) - > { - void call( - ffi.Pointer arg0, - NSNetServiceBrowser arg1, - objc.NSDictionary arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, NSNetService, ffi.Bool)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) { - return fn( - arg0, - NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), - NSNetService.fromPointer(arg2, retain: true, release: true), - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > - listener( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_8acz2h, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x7mqjz.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > - blocking( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8acz2h, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x7mqjz.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, NSNetService, ffi.Bool)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSNetService_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - NSNetService, - ffi.Bool, - ) - > { - void call( - ffi.Pointer arg0, - NSNetServiceBrowser arg1, - NSNetService arg2, - bool arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSString, ffi.Bool)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) { - return fn( - arg0, - NSNetServiceBrowser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > - listener( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_8acz2h, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1nn0na.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > - blocking( - void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - bool, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8acz2h, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1nn0na.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - bool arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetServiceBrowser, objc.NSString, ffi.Bool)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetServiceBrowser_NSString_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetServiceBrowser, - objc.NSString, - ffi.Bool, - ) - > { - void call( - ffi.Pointer arg0, - NSNetServiceBrowser arg1, - objc.NSString arg2, - bool arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Bool arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > - fromFunction( - void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSNetService.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > - listener( - void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pj0but.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > - blocking( - void Function(ffi.Pointer, NSNetService, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pj0but.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSData) - > { - void call(ffi.Pointer arg0, NSNetService arg1, objc.NSData arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSDictionary)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSDictionary, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSDictionary, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - > - fromFunction( - void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSDictionary, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSNetService.fromPointer(arg1, retain: true, release: true), - objc.NSDictionary.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - > - listener( - void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_16t4ozp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - > - blocking( - void Function(ffi.Pointer, NSNetService, objc.NSDictionary) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSNetService, objc.NSDictionary) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_16t4ozp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSDictionary)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSDictionary$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSDictionary, - ) - > { - void call( - ffi.Pointer arg0, - NSNetService arg1, - objc.NSDictionary arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSNetService, objc.NSInputStream, objc.NSOutputStream)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSNetService.fromPointer(arg1, retain: true, release: true), - objc.NSInputStream.fromPointer(arg2, retain: true, release: true), - objc.NSOutputStream.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - listener( - void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_tikg8p.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - blocking( - void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_tikg8p.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSNetService, objc.NSInputStream, objc.NSOutputStream)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSNetService_NSInputStream_NSOutputStream$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSNetService, - objc.NSInputStream, - objc.NSOutputStream, - ) - > { - void call( - ffi.Pointer arg0, - NSNetService arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSPortMessage)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSPortMessage { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > - fromFunction( - void Function(ffi.Pointer, objc.NSPortMessage) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - objc.NSPortMessage.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > - listener( - void Function(ffi.Pointer, objc.NSPortMessage) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1e1kc88.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > - blocking( - void Function(ffi.Pointer, objc.NSPortMessage) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1e1kc88.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSPortMessage)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSPortMessage$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSPortMessage) - > { - void call(ffi.Pointer arg0, objc.NSPortMessage arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSSet)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSet { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, objc.NSSet)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, objc.NSSet)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, objc.NSSet)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, objc.NSSet)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSSet)> - fromFunction( - void Function(ffi.Pointer, objc.NSSet) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, objc.NSSet)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - objc.NSSet.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSSet)> - listener( - void Function(ffi.Pointer, objc.NSSet) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, objc.NSSet)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k2hpmy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, objc.NSSet)> - blocking( - void Function(ffi.Pointer, objc.NSSet) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, objc.NSSet)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k2hpmy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSSet)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSSet$CallExtension - on objc.ObjCBlock, objc.NSSet)> { - void call(ffi.Pointer arg0, objc.NSSet arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - listener( - void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1usrzbh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > - blocking( - void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1usrzbh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, objc.NSString, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - objc.NSString, - objc.NSString, - ) - > { - void call( - ffi.Pointer arg0, - NSSpellServer arg1, - objc.NSString arg2, - objc.NSString arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSSpellServer, ffi.UnsignedLong, objc.NSString, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) { - return fn( - arg0, - NSSpellServer.fromPointer(arg1, retain: true, release: true), - arg2, - objc.NSString.fromPointer(arg3, retain: true, release: true), - objc.NSString.fromPointer(arg4, retain: true, release: true), - objc.NSString.fromPointer(arg5, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > - listener( - void Function( - ffi.Pointer, - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1cn988u, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_gcznpv.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > - blocking( - void Function( - ffi.Pointer, - NSSpellServer, - DartNSUInteger, - objc.NSString, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1cn988u, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_gcznpv.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSSpellServer, ffi.UnsignedLong, objc.NSString, objc.NSString, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSSpellServer_NSUInteger_NSString_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSSpellServer, - ffi.UnsignedLong, - objc.NSString, - objc.NSString, - objc.NSString, - ) - > { - void call( - ffi.Pointer arg0, - NSSpellServer arg1, - DartNSUInteger arg2, - objc.NSString arg3, - objc.NSString arg4, - objc.NSString arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg3.ref; - final _$$ref$2 = arg4.ref; - final _$$ref$3 = arg5.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - arg2, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > - fromFunction( - void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSString.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > - listener( - void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ptzs7z.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > - blocking( - void Function(ffi.Pointer, objc.NSString, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ptzs7z.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSString, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSString, objc.NSString) - > { - void call( - ffi.Pointer arg0, - objc.NSString arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - int arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_zuf90e, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ltqoqj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_zuf90e, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ltqoqj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, NSUInteger arg1) - > - >() - .asFunction, int)>()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, int))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSUInteger$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > { - void call(ffi.Pointer arg0, DartNSUInteger arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSUInteger arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURL)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, objc.NSURL)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, objc.NSURL)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, objc.NSURL)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, objc.NSURL)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSURL)> - fromFunction( - void Function(ffi.Pointer, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, objc.NSURL)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - objc.NSURL.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, objc.NSURL)> - listener( - void Function(ffi.Pointer, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, objc.NSURL)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_461rr9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, objc.NSURL)> - blocking( - void Function(ffi.Pointer, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, objc.NSURL)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_461rr9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURL)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURL$CallExtension - on objc.ObjCBlock, objc.NSURL)> { - void call(ffi.Pointer arg0, objc.NSURL arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLAuthenticationChallenge)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > - fromFunction( - void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLAuthenticationChallenge.fromPointer( - arg1, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > - listener( - void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1z0whcc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > - blocking( - void Function(ffi.Pointer, NSURLAuthenticationChallenge) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1z0whcc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLAuthenticationChallenge)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLAuthenticationChallenge$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLAuthenticationChallenge) - > { - void call(ffi.Pointer arg0, NSURLAuthenticationChallenge arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock, NSURLConnection)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock, NSURLConnection)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock, NSURLConnection)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > - listener( - void Function(ffi.Pointer, NSURLConnection) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15jt9u5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > - blocking( - void Function(ffi.Pointer, NSURLConnection) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15jt9u5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection) - > { - void call(ffi.Pointer arg0, NSURLConnection arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > - listener( - void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15vjajw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15vjajw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSData) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - objc.NSData arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSError)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - > - listener( - void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vpa8ji.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSError) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vpa8ji.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSError)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - objc.NSError, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - objc.NSError arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.Long, ffi.Long, ffi.Long)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSInteger arg2, - NSInteger arg3, - NSInteger arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - arg2, - arg3, - arg4, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_15e9dqx, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_133h48c.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLConnection, - DartNSInteger, - DartNSInteger, - DartNSInteger, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_15e9dqx, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_133h48c.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSInteger arg2, - NSInteger arg3, - NSInteger arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - NSInteger, - NSInteger, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.Long, ffi.Long, ffi.Long)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSInteger_NSInteger_NSInteger$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - DartNSInteger arg2, - DartNSInteger arg3, - DartNSInteger arg4, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSInteger arg2, - NSInteger arg3, - NSInteger arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3, arg4); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, objc.NSURL)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - objc.NSURL.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > - listener( - void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1odc9lb.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1odc9lb.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, objc.NSURL)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, objc.NSURL) - > { - void call(ffi.Pointer arg0, NSURLConnection arg1, objc.NSURL arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLAuthenticationChallenge)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_aec946.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_aec946.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLAuthenticationChallenge)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLAuthenticationChallenge$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLAuthenticationChallenge, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSURLAuthenticationChallenge arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, NSURLResponse)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - NSURLResponse.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - > - listener( - void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1i7oea2.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLConnection, NSURLResponse) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1i7oea2.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, NSURLResponse)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_NSURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - NSURLResponse, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - NSURLResponse arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, int, int) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - arg2, - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > - listener( - void Function(ffi.Pointer, NSURLConnection, int, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_9crvvv, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_5wf51x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, int, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_9crvvv, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_5wf51x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - int arg2, - int arg3, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong, ffi.LongLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ffi.LongLong arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - fromFunction( - void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) { - return fn( - arg0, - NSURLConnection.fromPointer(arg1, retain: true, release: true), - arg2, - arg3, - arg4, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - listener( - void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1qf1qkl, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3jhjrc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - blocking( - void Function(ffi.Pointer, NSURLConnection, int, int, int) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1qf1qkl, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_3jhjrc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ffi.LongLong arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - int arg3, - int arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLConnection, ffi.LongLong, ffi.LongLong, ffi.LongLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLConnection_ffiLongLong_ffiLongLong_ffiLongLong$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLConnection, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > { - void call( - ffi.Pointer arg0, - NSURLConnection arg1, - int arg2, - int arg3, - int arg4, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.LongLong arg2, - ffi.LongLong arg3, - ffi.LongLong arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, arg2, arg3, arg4); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLCredential, NSURLAuthenticationChallenge)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLCredential.fromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1o8dtl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1o8dtl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLCredential, NSURLAuthenticationChallenge)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLCredential_NSURLAuthenticationChallenge$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLCredential, - NSURLAuthenticationChallenge, - ) - > { - void call( - ffi.Pointer arg0, - NSURLCredential arg1, - NSURLAuthenticationChallenge arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSURLDownload)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSURLDownload)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSURLDownload)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSURLDownload)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLDownload)> - fromFunction( - void Function(ffi.Pointer, NSURLDownload) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSURLDownload)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLDownload)> - listener( - void Function(ffi.Pointer, NSURLDownload) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13sb76x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSURLDownload)> - blocking( - void Function(ffi.Pointer, NSURLDownload) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_13sb76x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload$CallExtension - on objc.ObjCBlock, NSURLDownload)> { - void call(ffi.Pointer arg0, NSURLDownload arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSError)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > - fromFunction( - void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > - listener( - void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_14dahaa.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > - blocking( - void Function(ffi.Pointer, NSURLDownload, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_14dahaa.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSError)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSError) - > { - void call(ffi.Pointer arg0, NSURLDownload arg1, objc.NSError arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - fromFunction( - void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - listener( - void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_18kc0nv.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > - blocking( - void Function(ffi.Pointer, NSURLDownload, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_18kc0nv.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, objc.NSString) - > { - void call( - ffi.Pointer arg0, - NSURLDownload arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - ffi.UnsignedLong, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - ffi.UnsignedLong, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - ffi.UnsignedLong, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_wy9lus, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_19pyqcd.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, NSURLDownload, DartNSUInteger) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, ffi.UnsignedLong) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_wy9lus, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_19pyqcd.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSUInteger$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - ffi.UnsignedLong, - ) - > { - void call( - ffi.Pointer arg0, - NSURLDownload arg1, - DartNSUInteger arg2, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - NSUInteger arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLAuthenticationChallenge)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hwelu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hwelu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLAuthenticationChallenge)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLAuthenticationChallenge$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLAuthenticationChallenge, - ) - > { - void call( - ffi.Pointer arg0, - NSURLDownload arg1, - NSURLAuthenticationChallenge arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLResponse)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > - fromFunction( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - NSURLResponse.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > - listener( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hj9xku.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > - blocking( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1hj9xku.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLResponse)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLDownload, NSURLResponse) - > { - void call( - ffi.Pointer arg0, - NSURLDownload arg1, - NSURLResponse arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLDownload, NSURLResponse, ffi.LongLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.LongLong arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > - fromFunction( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) { - return fn( - arg0, - NSURLDownload.fromPointer(arg1, retain: true, release: true), - NSURLResponse.fromPointer(arg2, retain: true, release: true), - arg3, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > - listener( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_34xzuf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12tf05r.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > - blocking( - void Function(ffi.Pointer, NSURLDownload, NSURLResponse, int) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_34xzuf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12tf05r.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.LongLong arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLDownload, NSURLResponse, ffi.LongLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLDownload_NSURLResponse_ffiLongLong$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLDownload, - NSURLResponse, - ffi.LongLong, - ) - > { - void call( - ffi.Pointer arg0, - NSURLDownload arg1, - NSURLResponse arg2, - int arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.LongLong arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > - fromFunction( - void Function(ffi.Pointer, objc.NSURLHandle) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > - listener( - void Function(ffi.Pointer, objc.NSURLHandle) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xj71gr.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > - blocking( - void Function(ffi.Pointer, objc.NSURLHandle) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xj71gr.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURLHandle)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle) - > { - void call(ffi.Pointer arg0, objc.NSURLHandle arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - > - fromFunction( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - > - listener( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_136y7ma.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - > - blocking( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSData) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_136y7ma.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURLHandle, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURLHandle, - objc.NSData, - ) - > { - void call( - ffi.Pointer arg0, - objc.NSURLHandle arg1, - objc.NSData arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURLHandle, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURLHandle, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURLHandle, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - > - fromFunction( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURLHandle, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSURLHandle.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - > - listener( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_teaic5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - > - blocking( - void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURLHandle, objc.NSString) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_teaic5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURLHandle, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLHandle_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURLHandle, - objc.NSString, - ) - > { - void call( - ffi.Pointer arg0, - objc.NSURLHandle arg1, - objc.NSString arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSURLProtocol)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSURLProtocol)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSURLProtocol)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSURLProtocol)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLProtocol)> - fromFunction( - void Function(ffi.Pointer, NSURLProtocol) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSURLProtocol)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLProtocol)> - listener( - void Function(ffi.Pointer, NSURLProtocol) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1jcra61.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSURLProtocol)> - blocking( - void Function(ffi.Pointer, NSURLProtocol) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1jcra61.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol$CallExtension - on objc.ObjCBlock, NSURLProtocol)> { - void call(ffi.Pointer arg0, NSURLProtocol arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSCachedURLResponse)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - > - fromFunction( - void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - NSCachedURLResponse.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - > - listener( - void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_s52y0g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - > - blocking( - void Function(ffi.Pointer, NSURLProtocol, NSCachedURLResponse) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_s52y0g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSCachedURLResponse)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSCachedURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSCachedURLResponse, - ) - > { - void call( - ffi.Pointer arg0, - NSURLProtocol arg1, - NSCachedURLResponse arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > - fromFunction( - void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > - listener( - void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1p1ax08.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > - blocking( - void Function(ffi.Pointer, NSURLProtocol, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1p1ax08.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSData) - > { - void call(ffi.Pointer arg0, NSURLProtocol arg1, objc.NSData arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, objc.NSError)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > - fromFunction( - void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > - listener( - void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_rojepe.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > - blocking( - void Function(ffi.Pointer, NSURLProtocol, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_rojepe.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, objc.NSError)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLProtocol, objc.NSError) - > { - void call(ffi.Pointer arg0, NSURLProtocol arg1, objc.NSError arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLAuthenticationChallenge)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ek5uoy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ek5uoy.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLAuthenticationChallenge)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLAuthenticationChallenge$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLAuthenticationChallenge, - ) - > { - void call( - ffi.Pointer arg0, - NSURLProtocol arg1, - NSURLAuthenticationChallenge arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLRequest, NSURLResponse)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - NSURLRequest.fromPointer(arg2, retain: true, release: true), - NSURLResponse.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12ykekb.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_12ykekb.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLRequest, NSURLResponse)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLRequest_NSURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLRequest, - NSURLResponse, - ) - > { - void call( - ffi.Pointer arg0, - NSURLProtocol arg1, - NSURLRequest arg2, - NSURLResponse arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLProtocol, NSURLResponse, NSUInteger)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) { - return fn( - arg0, - NSURLProtocol.fromPointer(arg1, retain: true, release: true), - NSURLResponse.fromPointer(arg2, retain: true, release: true), - NSURLCacheStoragePolicy.fromValue(arg3), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1j7coyk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_abn34x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSURLCacheStoragePolicy, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1j7coyk, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_abn34x.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLProtocol, NSURLResponse, NSUInteger)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLProtocol_NSURLResponse_NSURLCacheStoragePolicy$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLProtocol, - NSURLResponse, - NSUInteger, - ) - > { - void call( - ffi.Pointer arg0, - NSURLProtocol arg1, - NSURLResponse arg2, - NSURLCacheStoragePolicy arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSUInteger arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3.value); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSURLSession)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSURLSession)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSURLSession)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSURLSession)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession)> - fromFunction( - void Function(ffi.Pointer, NSURLSession) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSURLSession)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSURLSession)> - listener( - void Function(ffi.Pointer, NSURLSession) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_7xicdf.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSURLSession)> - blocking( - void Function(ffi.Pointer, NSURLSession) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_7xicdf.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession$CallExtension - on objc.ObjCBlock, NSURLSession)> { - void call(ffi.Pointer arg0, NSURLSession arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, objc.NSError?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > - fromFunction( - void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > - listener( - void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1f64crj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > - blocking( - void Function(ffi.Pointer, NSURLSession, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1f64crj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, objc.NSError?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, objc.NSError?) - > { - void call(ffi.Pointer arg0, NSURLSession arg1, objc.NSError? arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg2, - retain: true, - release: true, - ), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( - arg3, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_bklti2, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_de64m.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_bklti2, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_de64m.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLAuthenticationChallenge arg2, - objc.ObjCBlock arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), - NSCachedURLResponse.fromPointer(arg3, retain: true, release: true), - ObjCBlock_ffiVoid_NSCachedURLResponse.fromPointer( - arg4, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15cdu5z.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_15cdu5z.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSCachedURLResponse, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSCachedURLResponse_ffiVoidNSCachedURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSCachedURLResponse, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSCachedURLResponse arg3, - objc.ObjCBlock arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), - objc.NSData.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_16ix251.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_16ix251.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - objc.NSData, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - objc.NSData arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), - NSURLResponse.fromPointer(arg3, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.fromPointer( - arg4, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1xfn2k3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1xfn2k3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLResponse, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLResponse, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLResponse arg3, - objc.ObjCBlock arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), - NSURLSessionDownloadTask.fromPointer( - arg3, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_140cpyj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_140cpyj.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionDownloadTask)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionDownloadTask$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionDownloadTask, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionDownloadTask arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDataTask.fromPointer(arg2, retain: true, release: true), - NSURLSessionStreamTask.fromPointer( - arg3, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_43hp0b.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_43hp0b.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDataTask, NSURLSessionStreamTask)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLSessionStreamTask$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDataTask, - NSURLSessionStreamTask, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDataTask arg2, - NSURLSessionStreamTask arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDownloadTask.fromPointer( - arg2, - retain: true, - release: true, - ), - arg3, - arg4, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_ly2579, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1l7b9ji.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_ly2579, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1l7b9ji.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer, arg3, arg4); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDownloadTask.fromPointer( - arg2, - retain: true, - release: true, - ), - arg3, - arg4, - arg5, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_h68abb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pfucun.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_h68abb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1pfucun.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_Int64_Int64_Int64$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - int arg3, - int arg4, - int arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - arg3, - arg4, - arg5, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionDownloadTask.fromPointer( - arg2, - retain: true, - release: true, - ), - objc.NSURL.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_pm23bg.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_pm23bg.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionDownloadTask, objc.NSURL)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDownloadTask_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionDownloadTask, - objc.NSURL, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionDownloadTask arg2, - objc.NSURL arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > - fromFunction( - void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionStreamTask.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > - listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_qss5hc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > - blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionStreamTask) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_qss5hc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask, objc.NSInputStream, objc.NSOutputStream)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionStreamTask.fromPointer( - arg2, - retain: true, - release: true, - ), - objc.NSInputStream.fromPointer(arg3, retain: true, release: true), - objc.NSOutputStream.fromPointer(arg4, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_8jfq1p, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_nhk5a9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8jfq1p, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_nhk5a9.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionStreamTask, objc.NSInputStream, objc.NSOutputStream)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionStreamTask_NSInputStream_NSOutputStream$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionStreamTask, - objc.NSInputStream, - objc.NSOutputStream, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionStreamTask arg2, - objc.NSInputStream arg3, - objc.NSOutputStream arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - > - fromFunction( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - > - listener( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k1nazc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - > - blocking( - void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSURLSession, NSURLSessionTask) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_k1nazc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - arg3, - arg4, - arg5, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_h68abb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xh08sz.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - int, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_h68abb, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xh08sz.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - int arg4, - int arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, ffi.Int64, ffi.Int64)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_Int64_Int64$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - int arg4, - int arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Int64 arg4, - ffi.Int64 arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - arg3, - arg4, - arg5, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - arg3, - ObjCBlock_ffiVoid_NSInputStream.fromPointer( - arg4, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_jyim80, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_99x6vt.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - int, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_jyim80, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_99x6vt.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, ffi.Int64, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_Int64_ffiVoidNSInputStream$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - ffi.Int64, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - int arg3, - objc.ObjCBlock arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Int64 arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - arg3, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSError.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_qjjttc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_qjjttc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.NSError?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.NSError?, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.NSError? arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - NSHTTPURLResponse.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n5meg5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1n5meg5.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - NSHTTPURLResponse.fromPointer(arg3, retain: true, release: true), - NSURLRequest.fromPointer(arg4, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLRequest.fromPointer( - arg5, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_l2g8ke, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ayzt6i.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_l2g8ke, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1ayzt6i.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSHTTPURLResponse, NSURLRequest, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSHTTPURLResponse_NSURLRequest_ffiVoidNSURLRequest$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSHTTPURLResponse, - NSURLRequest, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSHTTPURLResponse arg3, - NSURLRequest arg4, - objc.ObjCBlock arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - final _$$ref$4 = arg5.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - _$$ref$4.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - NSURLAuthenticationChallenge.fromPointer( - arg3, - retain: true, - release: true, - ), - ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( - arg4, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_31cygh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_31cygh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLAuthenticationChallenge_ffiVoidNSURLSessionAuthChallengeDispositionNSURLCredential$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLAuthenticationChallenge, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLAuthenticationChallenge arg3, - objc.ObjCBlock arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - NSURLRequest.fromPointer(arg3, retain: true, release: true), - ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.fromPointer( - arg4, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_xx612k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_jqba1.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_xx612k, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_jqba1.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLRequest, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLRequest_ffiVoidNSURLSessionDelayedRequestDispositionNSURLRequest$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLRequest, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLRequest arg3, - objc.ObjCBlock arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - NSURLSessionTaskMetrics.fromPointer( - arg3, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_i7wriu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_i7wriu.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, NSURLSessionTaskMetrics)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSURLSessionTaskMetrics$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - NSURLSessionTaskMetrics, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - NSURLSessionTaskMetrics arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionTask.fromPointer(arg2, retain: true, release: true), - ObjCBlock_ffiVoid_NSInputStream.fromPointer( - arg3, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_bklti2, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_112ozxo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_bklti2, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_112ozxo.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionTask, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_ffiVoidNSInputStream$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionTask, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionTask arg2, - objc.ObjCBlock arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionWebSocketTask.fromPointer( - arg2, - retain: true, - release: true, - ), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xcrg5s.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_xcrg5s.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, objc.NSString?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - objc.NSString?, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - objc.NSString? arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSInteger arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSURLSession.fromPointer(arg1, retain: true, release: true), - NSURLSessionWebSocketTask.fromPointer( - arg2, - retain: true, - release: true, - ), - NSURLSessionWebSocketCloseCode.fromValue(arg3), - arg4.address == 0 - ? null - : objc.NSData.fromPointer(arg4, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > - listener( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1lx650f, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17jmtfx.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSURLSessionWebSocketCloseCode, - objc.NSData?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1lx650f, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17jmtfx.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSInteger arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSURLSession, NSURLSessionWebSocketTask, NSInteger, objc.NSData?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionWebSocketTask_NSURLSessionWebSocketCloseCode_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSURLSession, - NSURLSessionWebSocketTask, - NSInteger, - objc.NSData?, - ) - > { - void call( - ffi.Pointer arg0, - NSURLSession arg1, - NSURLSessionWebSocketTask arg2, - NSURLSessionWebSocketCloseCode arg3, - objc.NSData? arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg4?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - NSInteger arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - arg3.value, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURL, NSFileVersion)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > - fromFunction( - void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSURL.fromPointer(arg1, retain: true, release: true), - NSFileVersion.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > - listener( - void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1siniii.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > - blocking( - void Function(ffi.Pointer, objc.NSURL, NSFileVersion) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1siniii.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURL, NSFileVersion)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURL_NSFileVersion$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, NSFileVersion) - > { - void call(ffi.Pointer arg0, objc.NSURL arg1, NSFileVersion arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURL, objc.NSURL)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > - fromFunction( - void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSURL.fromPointer(arg1, retain: true, release: true), - objc.NSURL.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > - listener( - void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_jzitwn.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > - blocking( - void Function(ffi.Pointer, objc.NSURL, objc.NSURL) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_jzitwn.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURL, objc.NSURL)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURL_NSURL$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSURL, objc.NSURL) - > { - void call(ffi.Pointer arg0, objc.NSURL arg1, objc.NSURL arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.NSURL, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - objc.NSURL.fromPointer(arg1, retain: true, release: true), - ObjCBlock_ffiVoid_NSError.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_jk1ljc, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_pfi7f3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_jk1ljc, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_pfi7f3.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.NSURL, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSURL_ffiVoidNSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSURL, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - objc.NSURL arg1, - objc.ObjCBlock arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSUserActivity)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock, NSUserActivity)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSUserActivity)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > - fromFunction( - void Function(ffi.Pointer, NSUserActivity) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock, NSUserActivity)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSUserActivity.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > - listener( - void Function(ffi.Pointer, NSUserActivity) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_197qivc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > - blocking( - void Function(ffi.Pointer, NSUserActivity) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_197qivc.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSUserActivity)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSUserActivity$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSUserActivity) - > { - void call(ffi.Pointer arg0, NSUserActivity arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSUserActivity, objc.NSInputStream, objc.NSOutputStream)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSUserActivity.fromPointer(arg1, retain: true, release: true), - objc.NSInputStream.fromPointer(arg2, retain: true, release: true), - objc.NSOutputStream.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - listener( - void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1j32c3t.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > - blocking( - void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1j32c3t.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSUserActivity, objc.NSInputStream, objc.NSOutputStream)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSUserActivity_NSInputStream_NSOutputStream$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserActivity, - objc.NSInputStream, - objc.NSOutputStream, - ) - > { - void call( - ffi.Pointer arg0, - NSUserActivity arg1, - objc.NSInputStream arg2, - objc.NSOutputStream arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSUserNotificationCenter.fromPointer( - arg1, - retain: true, - release: true, - ), - NSUserNotification.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - listener( - void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_blvx9k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > - blocking( - void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_blvx9k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSUserNotificationCenter, NSUserNotification)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSUserNotificationCenter_NSUserNotification$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSUserNotificationCenter, - NSUserNotification, - ) - > { - void call( - ffi.Pointer arg0, - NSUserNotificationCenter arg1, - NSUserNotification arg2, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSXMLParser)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSXMLParser)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, NSXMLParser)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSXMLParser)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSXMLParser)> - fromFunction( - void Function(ffi.Pointer, NSXMLParser) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSXMLParser)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSXMLParser)> - listener( - void Function(ffi.Pointer, NSXMLParser) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1fj0jrw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSXMLParser)> - blocking( - void Function(ffi.Pointer, NSXMLParser) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18v1jvf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1fj0jrw.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser$CallExtension - on objc.ObjCBlock, NSXMLParser)> { - void call(ffi.Pointer arg0, NSXMLParser arg1) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSData)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > - fromFunction( - void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSData.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > - listener( - void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vaglpl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > - blocking( - void Function(ffi.Pointer, NSXMLParser, objc.NSData) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vaglpl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSData)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSData$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSData) - > { - void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSData arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSError)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > - fromFunction( - void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSError.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > - listener( - void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17xklgp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > - blocking( - void Function(ffi.Pointer, NSXMLParser, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_17xklgp.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSError)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSError) - > { - void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSError arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > - fromFunction( - void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > - listener( - void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1r6tt56.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > - blocking( - void Function(ffi.Pointer, NSXMLParser, objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_fjrv01, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1r6tt56.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSXMLParser, objc.NSString) - > { - void call(ffi.Pointer arg0, NSXMLParser arg1, objc.NSString arg2) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_121fmzs.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_121fmzs.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_nemba7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1tz5yf, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_nemba7.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString$1$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4.address == 0 - ? null - : objc.NSString.fromPointer(arg4, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_8jfq1p, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hacm4k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_8jfq1p, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hacm4k.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - final _$$ref$3 = arg4?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSDictionary)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4.address == 0 - ? null - : objc.NSString.fromPointer(arg4, retain: true, release: true), - objc.NSDictionary.fromPointer(arg5, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1kowxjl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1kowxjl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSDictionary)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSDictionary$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSDictionary, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSDictionary arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - final _$$ref$3 = arg4?.ref; - final _$$ref$4 = arg5.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString, objc.NSString?, objc.NSString?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4.address == 0 - ? null - : objc.NSString.fromPointer(arg4, retain: true, release: true), - arg5.address == 0 - ? null - : objc.NSString.fromPointer(arg5, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vx7t4i.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_vx7t4i.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString, objc.NSString?, objc.NSString?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString, - objc.NSString?, - objc.NSString?, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3.ref; - final _$$ref$3 = arg4?.ref; - final _$$ref$4 = arg5?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSString?)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1 { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) { - return fn( - arg0, - NSXMLParser.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - arg3.address == 0 - ? null - : objc.NSString.fromPointer(arg3, retain: true, release: true), - arg4.address == 0 - ? null - : objc.NSString.fromPointer(arg4, retain: true, release: true), - arg5.address == 0 - ? null - : objc.NSString.fromPointer(arg5, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > - listener( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_m09tr7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_t3r59d.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > - blocking( - void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_m09tr7, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_t3r59d.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2, args.arg3, args.arg4, args.arg5); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4, arg5); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, NSXMLParser, objc.NSString, objc.NSString?, objc.NSString?, objc.NSString?)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSXMLParser_NSString_NSString_NSString_NSString$1$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSXMLParser, - objc.NSString, - objc.NSString?, - objc.NSString?, - objc.NSString?, - ) - > { - void call( - ffi.Pointer arg0, - NSXMLParser arg1, - objc.NSString arg2, - objc.NSString? arg3, - objc.NSString? arg4, - objc.NSString? arg5, - ) { - final _$$ref = arg1.ref; - final _$$ref$1 = arg2.ref; - final _$$ref$2 = arg3?.ref; - final _$$ref$3 = arg4?.ref; - final _$$ref$4 = arg5?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ffi.Pointer arg5, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref.pointer, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - _$$ref$4?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Bool)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, ffi.Bool)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, ffi.Bool)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock, ffi.Bool)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1) - > - > - ptr, - ) => objc.ObjCBlock, ffi.Bool)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Bool)> - fromFunction( - void Function(ffi.Pointer, bool) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, ffi.Bool)>( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - bool arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, ffi.Bool)> - listener( - void Function(ffi.Pointer, bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, ffi.Bool)>( - objc.newBlockPort(_1uu024u_wrapListenerBlock_10lndml, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_wpl2gn.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, ffi.Bool)> - blocking( - void Function(ffi.Pointer, bool) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock, ffi.Bool)>( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_10lndml, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_wpl2gn.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - bool arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1) - > - >() - .asFunction, bool)>()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - bool arg1, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, bool))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Bool)>`. -extension ObjCBlock_ffiVoid_ffiVoid_bool$CallExtension - on objc.ObjCBlock, ffi.Bool)> { - void call(ffi.Pointer arg0, bool arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Bool arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - void Function(ffi.Pointer, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn(arg0, arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - listener( - void Function(ffi.Pointer, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1037nh9, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hj6v1u.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - blocking( - void Function(ffi.Pointer, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1037nh9, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hj6v1u.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > { - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - ObjCBlock_ffiVoid_NSError.fromPointer( - arg1, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - listener( - void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1l4hxwm, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1s0z6xl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - blocking( - void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1l4hxwm, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1s0z6xl.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_ffiVoidNSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > { - void call( - ffi.Pointer arg0, - objc.ObjCBlock arg1, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock, objc.ObjCBlock?)>)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - > - fromFunction( - void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0, - ObjCBlock_ffiVoid_ffiVoid$2.fromPointer( - arg1, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - > - listener( - void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1l4hxwm, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_eu2222.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - > - blocking( - void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock?)>, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1l4hxwm, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_eu2222.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock, objc.ObjCBlock?)>)>`. -extension ObjCBlock_ffiVoid_ffiVoid_ffiVoidffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock?) - >, - ) - > { - void call( - ffi.Pointer arg0, - objc.ObjCBlock?)> - arg1, - ) { - final _$$ref = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock?, objc.NSError)>`. -abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > - fromFunction( - void Function(objc.NSSecureCoding?, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSSecureCoding.fromPointer( - arg0, - retain: true, - release: true, - ), - objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > - listener( - void Function(objc.NSSecureCoding?, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_krrtfh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > - blocking( - void Function(objc.NSSecureCoding?, objc.NSError) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_krrtfh.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?, objc.NSError)>`. -extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError) - > { - void call(objc.NSSecureCoding? arg0, objc.NSError arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock?, objc.NSError?)>`. -abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > - fromFunction( - void Function(objc.ObjCObject?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.ObjCObject(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > - listener( - void Function(objc.ObjCObject?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1tklz9g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > - blocking( - void Function(objc.ObjCObject?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1tklz9g.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?, objc.NSError?)>`. -extension ObjCBlock_ffiVoid_objcObjCObjectImpl_NSError$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, objc.NSError?) - > { - void call(objc.ObjCObject? arg0, objc.NSError? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock?, objc.NSRange, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - fromFunction( - void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) { - return fn( - arg0.address == 0 - ? null - : objc.ObjCObject(arg0, retain: true, release: true), - arg1, - arg2, - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - listener( - void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_1a22wz, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_q6fcam.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > - blocking( - void Function(objc.ObjCObject?, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_1a22wz, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_q6fcam.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?, objc.NSRange, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_objcObjCObjectImpl_NSRange_bool$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer?, - objc.NSRange, - ffi.Pointer, - ) - > { - void call(objc.ObjCObject? arg0, NSRange arg1, ffi.Pointer arg2) { - final _$$ref = arg0?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr, arg1, arg2); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - Dartsec_protocol_metadata_t, - Dartdispatch_data_t?, - Dartsec_protocol_pre_shared_key_selection_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSObject.fromPointer(arg1, retain: true, release: true), - ObjCBlock_ffiVoid_NSObject$1.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > - listener( - void Function( - Dartsec_protocol_metadata_t, - Dartdispatch_data_t?, - Dartsec_protocol_pre_shared_key_selection_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18qun1e, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1nq9pr6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > - blocking( - void Function( - Dartsec_protocol_metadata_t, - Dartdispatch_data_t?, - Dartsec_protocol_pre_shared_key_selection_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18qun1e, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1nq9pr6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) - > - >() - .asFunction< - void Function( - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_secprotocolmetadatat_dispatchdatat_secprotocolpresharedkeyselectioncompletet$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - > { - void call( - Dartsec_protocol_metadata_t arg0, - Dartdispatch_data_t? arg1, - Dartsec_protocol_pre_shared_key_selection_complete_t arg2, - ) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1?.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - dispatch_data_t arg1, - sec_protocol_pre_shared_key_selection_complete_t arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - dispatch_data_t, - sec_protocol_pre_shared_key_selection_complete_t, - ) - >()( - ref.pointer, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2.pointer, - ); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_challenge_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - ObjCBlock_ffiVoid_NSObject$1.fromPointer( - arg1, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > - listener( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_challenge_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_o762yo, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hj4uui.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > - blocking( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_challenge_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_o762yo, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_hj4uui.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) - > - >() - .asFunction< - void Function( - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolchallengecompletet$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - > { - void call( - Dartsec_protocol_metadata_t arg0, - Dartsec_protocol_challenge_complete_t arg1, - ) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_challenge_complete_t arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_challenge_complete_t, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > - fromFunction( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_key_update_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >( - objc.newClosureBlock(_closureCallable, ( - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - ObjCBlock_ffiVoid.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > - listener( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_key_update_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_o762yo, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_di5ft6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > - blocking( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_protocol_key_update_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_o762yo, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_di5ft6.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) - > - >() - .asFunction< - void Function( - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet$CallExtension - on - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - > { - void call( - Dartsec_protocol_metadata_t arg0, - Dartsec_protocol_key_update_complete_t arg1, - ) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_protocol_key_update_complete_t arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_protocol_key_update_complete_t, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > - fromFunction( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_trust_t, - Dartsec_protocol_verify_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) { - return fn( - objc.NSObject.fromPointer(arg0, retain: true, release: true), - objc.NSObject.fromPointer(arg1, retain: true, release: true), - ObjCBlock_ffiVoid_bool.fromPointer( - arg2, - retain: true, - release: true, - ), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > - listener( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_trust_t, - Dartsec_protocol_verify_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newBlockPort(_1uu024u_wrapListenerBlock_18qun1e, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1e3xl1p.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > - blocking( - void Function( - Dartsec_protocol_metadata_t, - Dartsec_trust_t, - Dartsec_protocol_verify_complete_t, - ) - fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_18qun1e, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1e3xl1p.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1, args.arg2); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) - > - >() - .asFunction< - void Function( - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) => - (objc.getBlockClosure(block) - as void Function( - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_secprotocolmetadatat_sectrustt_secprotocolverifycompletet$CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - > { - void call( - Dartsec_protocol_metadata_t arg0, - Dartsec_trust_t arg1, - Dartsec_protocol_verify_complete_t arg2, - ) { - final _$$ref = arg0.ref; - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - sec_protocol_metadata_t arg0, - sec_trust_t arg1, - sec_protocol_verify_complete_t arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - sec_protocol_metadata_t, - sec_trust_t, - sec_protocol_verify_complete_t, - ) - >()(ref.pointer, _$$ref.pointer, _$$ref$1.pointer, _$$ref$2.pointer); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_xpcobjectt_xpcricherrort { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(xpc_object_t arg0, xpc_rich_error_t arg1) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - xpc_object_t arg0, - xpc_rich_error_t arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSObject.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSObject.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_1uu024u_wrapListenerBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1uox71a.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(Dartxpc_object_t?, Dartxpc_object_t?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_1uu024u_wrapBlockingBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_1uox71a.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - xpc_object_t arg0, - xpc_rich_error_t arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(xpc_object_t arg0, xpc_rich_error_t arg1) - > - >() - .asFunction()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - xpc_object_t, - xpc_rich_error_t, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - xpc_object_t arg0, - xpc_rich_error_t arg1, - ) => - (objc.getBlockClosure(block) - as void Function(xpc_object_t, xpc_rich_error_t))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - xpc_object_t, - xpc_rich_error_t, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_xpcobjectt_xpcricherrort$CallExtension - on objc.ObjCBlock { - void call(Dartxpc_object_t? arg0, Dartxpc_object_t? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - xpc_object_t arg0, - xpc_rich_error_t arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - xpc_object_t, - xpc_rich_error_t, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, objc.NSBundle)>`. -abstract final class ObjCBlock_instancetype_ffiVoid_NSBundle { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - > - fromFunction( - Dartinstancetype? Function(ffi.Pointer, objc.NSBundle) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - final _$$ref = fn( - arg0, - objc.NSBundle.fromPointer(arg1, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndReturnPointer() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static instancetype _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static instancetype _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as instancetype Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, objc.NSBundle)>`. -extension ObjCBlock_instancetype_ffiVoid_NSBundle$CallExtension - on - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - objc.NSBundle, - ) - > { - Dartinstancetype? call(ffi.Pointer arg0, objc.NSBundle arg1) { - final _$$ref$1 = arg1.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer) - .address == - 0 - ? null - : objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer), - retain: false, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - objc.ObjCObject Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - final _$$ref = fn(arg0).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - objc.ObjCObject call(ffi.Pointer arg0) { - return objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSConnection)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - > - fromFunction( - objc.ObjCObject Function(ffi.Pointer, NSConnection) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - final _$$ref = fn( - arg0, - NSConnection.fromPointer(arg1, retain: true, release: true), - ).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSConnection)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSConnection$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSConnection, - ) - > { - objc.ObjCObject call(ffi.Pointer arg0, NSConnection arg1) { - final _$$ref$1 = arg1.ref; - return objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedArchiver, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObject? Function( - ffi.Pointer, - NSKeyedArchiver, - objc.ObjCObject, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - NSKeyedArchiver.fromPointer(arg1, retain: true, release: true), - objc.ObjCObject(arg2, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedArchiver, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedArchiver_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedArchiver, - ffi.Pointer, - ) - > { - objc.ObjCObject? call( - ffi.Pointer arg0, - NSKeyedArchiver arg1, - objc.ObjCObject arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer) - .address == - 0 - ? null - : objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedUnarchiver, objc.NSString, objc.NSArray)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - > - fromFunction( - objc.ObjCObject? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.NSArray.fromPointer(arg3, retain: true, release: true), - )?.ref; - return _$$ref?.retainAndAutorelease() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSKeyedUnarchiver, objc.NSString, objc.NSArray)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_NSString_NSArray$CallExtension - on - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.NSString, - objc.NSArray, - ) - > { - objc.ObjCObject? call( - ffi.Pointer arg0, - NSKeyedUnarchiver arg1, - objc.NSString arg2, - objc.NSArray arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ) - .address == - 0 - ? null - : objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, NSKeyedUnarchiver, objc.Consumed?>)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - > - fromFunction( - objc.ObjCObject? Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.ObjCObject?, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - NSKeyedUnarchiver.fromPointer(arg1, retain: true, release: true), - arg2.address == 0 - ? null - : objc.ObjCObject(arg2, retain: false, release: true), - )?.ref; - return _$$ref?.retainAndReturnPointer() ?? ffi.nullptr; - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, NSKeyedUnarchiver, objc.Consumed?>)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSKeyedUnarchiver_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSKeyedUnarchiver, - objc.Consumed?>, - ) - > { - objc.ObjCObject? call( - ffi.Pointer arg0, - NSKeyedUnarchiver arg1, - objc.ObjCObject? arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, - ) - .address == - 0 - ? null - : objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2?.retainAndReturnPointer() ?? ffi.nullptr, - ), - retain: false, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, NSMetadataItem)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - > - fromFunction( - objc.ObjCObject Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - final _$$ref = fn( - arg0, - NSMetadataQuery.fromPointer(arg1, retain: true, release: true), - NSMetadataItem.fromPointer(arg2, retain: true, release: true), - ).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, NSMetadataItem)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSMetadataItem$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - NSMetadataItem, - ) - > { - objc.ObjCObject call( - ffi.Pointer arg0, - NSMetadataQuery arg1, - NSMetadataItem arg2, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - return objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer, _$$ref$2.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, objc.NSString, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObject Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - objc.ObjCObject, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) { - final _$$ref = fn( - arg0, - NSMetadataQuery.fromPointer(arg1, retain: true, release: true), - objc.NSString.fromPointer(arg2, retain: true, release: true), - objc.ObjCObject(arg3, retain: true, release: true), - ).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, NSMetadataQuery, objc.NSString, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_NSMetadataQuery_NSString_objcObjCObjectImpl$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - NSMetadataQuery, - objc.NSString, - ffi.Pointer, - ) - > { - objc.ObjCObject call( - ffi.Pointer arg0, - NSMetadataQuery arg1, - objc.NSString arg2, - objc.ObjCObject arg3, - ) { - final _$$ref$1 = arg1.ref; - final _$$ref$2 = arg2.ref; - final _$$ref$3 = arg3.ref; - return objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - _$$ref$1.pointer, - _$$ref$2.pointer, - _$$ref$3.pointer, - ), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, objc.ObjCBlock)>`. -abstract final class ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > - fromFunction( - objc.ObjCObject Function( - ffi.Pointer, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - final _$$ref = fn( - arg0, - ObjCBlock_ffiVoid_NSError$1.fromPointer( - arg1, - retain: true, - release: true, - ), - ).ref; - return _$$ref.retainAndAutorelease(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, objc.ObjCBlock)>`. -extension ObjCBlock_objcObjCObjectImpl_ffiVoid_ffiVoidNSError$CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - objc.ObjCBlock, - ) - > { - objc.ObjCObject call( - ffi.Pointer arg0, - objc.ObjCBlock arg1, - ) { - final _$$ref$1 = arg1.ref; - return objc.ObjCObject( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, _$$ref$1.pointer), - retain: true, - release: true, - ); - } -} - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_ppdfiles_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function(ffi.Pointer)> - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunction( - ffi.Pointer Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newClosureBlock(_closureCallable, (ffi.Pointer arg0) { - return fn(arg0); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_ppdfiles_ffiVoid$CallExtension - on objc.ObjCBlock Function(ffi.Pointer)> { - ffi.Pointer call(ffi.Pointer arg0) { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); - } -} - -/// Observation -extension Observation on AVAudioSession { - /// isOtherAudioPlaying - bool get isOtherAudioPlaying { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.isOtherAudioPlaying', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOtherAudioPlaying); - } - - /// outputVolume - double get outputVolume { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.outputVolume', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_outputVolume) - : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_outputVolume); - } - - /// promptStyle - AVAudioSessionPromptStyle get promptStyle { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.promptStyle', - iOS: (false, (13, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_fooyu3(_$$ref.pointer, _sel_promptStyle); - return AVAudioSessionPromptStyle.fromValue($ret); - } - - /// secondaryAudioShouldBeSilencedHint - bool get secondaryAudioShouldBeSilencedHint { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.secondaryAudioShouldBeSilencedHint', - iOS: (false, (8, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_91o635( - _$$ref.pointer, - _sel_secondaryAudioShouldBeSilencedHint, - ); - } -} - -final class OffPair extends ffi.Struct { - @ffi.Short() - external int offFirst; - - @ffi.Short() - external int offSecond; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offFirst, - required int offSecond, - }) => $allocator() - ..ref.offFirst = offFirst - ..ref.offSecond = offSecond; -} - -@ffi.Packed(2) -final class OffsetArray extends ffi.Struct { - @SInt16() - external int fNumOfOffsets; - - @ffi.Array.multi([1]) - external ffi.Array fOffset; -} - -typedef OffsetArrayHandle = ffi.Pointer; -typedef OffsetArrayPtr = ffi.Pointer; - -final class OpaqueAEStreamRef extends ffi.Opaque {} - -final class OpaqueATSUFontFallbacks extends ffi.Opaque {} - -final class OpaqueATSUStyle extends ffi.Opaque {} - -final class OpaqueATSUTextLayout extends ffi.Opaque {} - -final class OpaqueAreaID extends ffi.Opaque {} - -final class OpaqueCMProfileRef extends ffi.Opaque {} - -final class OpaqueCMWorldRef extends ffi.Opaque {} - -final class OpaqueCollatorRef extends ffi.Opaque {} - -final class OpaqueCollection extends ffi.Opaque {} - -final class OpaqueDialogPtr extends ffi.Opaque {} - -final class OpaqueFNSubscriptionRef extends ffi.Opaque {} - -final class OpaqueFSIterator extends ffi.Opaque {} - -final class OpaqueFSVolumeOperation extends ffi.Opaque {} - -final class OpaqueGrafPtr extends ffi.Opaque {} - -final class OpaqueICInstance extends ffi.Opaque {} - -final class OpaqueIconRef extends ffi.Opaque {} - -final class OpaqueLSSharedFileListItemRef extends ffi.Opaque {} - -final class OpaqueLSSharedFileListRef extends ffi.Opaque {} - -final class OpaqueLocaleRef extends ffi.Opaque {} - -final class OpaqueMPAddressSpaceID extends ffi.Opaque {} - -final class OpaqueMPAreaID extends ffi.Opaque {} - -final class OpaqueMPCoherenceID extends ffi.Opaque {} - -final class OpaqueMPConsoleID extends ffi.Opaque {} - -final class OpaqueMPCpuID extends ffi.Opaque {} - -final class OpaqueMPCriticalRegionID extends ffi.Opaque {} - -final class OpaqueMPEventID extends ffi.Opaque {} - -final class OpaqueMPNotificationID extends ffi.Opaque {} - -final class OpaqueMPOpaqueID extends ffi.Opaque {} - -final class OpaqueMPProcessID extends ffi.Opaque {} - -final class OpaqueMPQueueID extends ffi.Opaque {} - -final class OpaqueMPSemaphoreID extends ffi.Opaque {} - -final class OpaqueMPTaskID extends ffi.Opaque {} - -final class OpaqueMPTimerID extends ffi.Opaque {} - -final class OpaquePMPageFormat extends ffi.Opaque {} - -final class OpaquePMPaper extends ffi.Opaque {} - -final class OpaquePMPreset extends ffi.Opaque {} - -final class OpaquePMPrintSession extends ffi.Opaque {} - -final class OpaquePMPrintSettings extends ffi.Opaque {} - -final class OpaquePMPrinter extends ffi.Opaque {} - -final class OpaquePMServer extends ffi.Opaque {} - -final class OpaquePasteboardRef extends ffi.Opaque {} - -final class OpaquePolicySearchRef extends ffi.Opaque {} - -final class OpaqueRgnHandle extends ffi.Opaque {} - -typedef OpaqueSecAccessRef = __SecAccess; -typedef OpaqueSecCertificateRef = __SecCertificate; -typedef OpaqueSecIdentityRef = __SecIdentity; - -final class OpaqueSecIdentitySearchRef extends ffi.Opaque {} - -typedef OpaqueSecKeyRef = __SecKey; - -final class OpaqueSecTransformImplementation extends ffi.Opaque {} - -final class OpaqueTECObjectRef extends ffi.Opaque {} - -final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} - -final class OpaqueTextBreakLocatorRef extends ffi.Opaque {} - -final class OpaqueTextToUnicodeInfo extends ffi.Opaque {} - -final class OpaqueTranslationRef extends ffi.Opaque {} - -final class OpaqueUCTypeSelectRef extends ffi.Opaque {} - -final class OpaqueUnicodeToTextInfo extends ffi.Opaque {} - -final class OpaqueUnicodeToTextRunInfo extends ffi.Opaque {} - -final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} - -final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} - -final class OpaqueWindowPtr extends ffi.Opaque {} - -final class OpbdSideValues extends ffi.Struct { - @SInt16() - external int leftSideShift; - - @SInt16() - external int topSideShift; - - @SInt16() - external int rightSideShift; - - @SInt16() - external int bottomSideShift; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int leftSideShift, - required int topSideShift, - required int rightSideShift, - required int bottomSideShift, - }) => $allocator() - ..ref.leftSideShift = leftSideShift - ..ref.topSideShift = topSideShift - ..ref.rightSideShift = rightSideShift - ..ref.bottomSideShift = bottomSideShift; -} - -@ffi.Packed(2) -final class OpbdTable extends ffi.Struct { - @Fixed() - external int version; - - @OpbdTableFormat() - external int format; - - external SFNTLookupTable lookupTable; -} - -typedef OpbdTableFormat = UInt16; - -@ffi.Packed(2) -final class OpenCPicParams extends ffi.Struct { - external Rect srcRect; - - @Fixed() - external int hRes; - - @Fixed() - external int vRes; - - @ffi.Short() - external int version; - - @ffi.Short() - external int reserved1; - - @SInt32() - external int reserved2; -} - -typedef OptionBits = UInt32; - -const int OverallAct = 0; - -typedef PBVersion = UInt32; - -/// PDEPanel -extension type PDEPanel._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [PDEPanel] that points to the same underlying object as [other]. - PDEPanel.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [PDEPanel] that wraps the given raw object pointer. - PDEPanel.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [PDEPanel]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_PDEPanel, - ); - } -} - -extension PDEPanel$Methods on PDEPanel { - /// PPDOptionKeyValueDidChange:ppdChoice: - void PPDOptionKeyValueDidChange( - objc.NSString option, { - required objc.NSString ppdChoice, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = option.ref; - final _$$ref$2 = ppdChoice.ref; - objc.checkOsVersionInternal( - 'PDEPanel.PPDOptionKeyValueDidChange:ppdChoice:', - iOS: (true, null), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_PPDOptionKeyValueDidChange_ppdChoice_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// panelKind - objc.NSString panelKind() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.panelKind', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelKind); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// panelName - objc.NSString panelName() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.panelName', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelName); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// panelView - NSView? panelView() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.panelView', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_panelView); - return $ret.address == 0 - ? null - : NSView.fromPointer($ret, retain: true, release: true); - } - - /// printWindowWillClose: - void printWindowWillClose(bool userCanceled) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPanel.printWindowWillClose:', - iOS: (true, null), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_printWindowWillClose_)) { - throw objc.UnimplementedOptionalMethodException( - 'PDEPanel', - 'printWindowWillClose:', - ); - } - _objc_msgSend_1s56lr9( - _$$ref.pointer, - _sel_printWindowWillClose_, - userCanceled, - ); - } - - /// restoreValuesAndReturnError: - bool restoreValuesAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPanel.restoreValuesAndReturnError:', - iOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1dom33q( - _$$ref.pointer, - _sel_restoreValuesAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// saveValuesAndReturnError: - bool saveValuesAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPanel.saveValuesAndReturnError:', - iOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1dom33q( - _$$ref.pointer, - _sel_saveValuesAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// shouldHide - bool shouldHide() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.shouldHide', iOS: (true, null)); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldHide); - } - - /// shouldPrint - bool shouldPrint() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.shouldPrint', iOS: (true, null)); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_shouldPrint)) { - throw objc.UnimplementedOptionalMethodException( - 'PDEPanel', - 'shouldPrint', - ); - } - return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldPrint); - } - - /// shouldShowHelp - bool shouldShowHelp() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.shouldShowHelp', iOS: (true, null)); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_shouldShowHelp)) { - throw objc.UnimplementedOptionalMethodException( - 'PDEPanel', - 'shouldShowHelp', - ); - } - return _objc_msgSend_91o635(_$$ref.pointer, _sel_shouldShowHelp); - } - - /// summaryInfo - objc.NSDictionary? summaryInfo() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.summaryInfo', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_summaryInfo); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - /// supportedPPDOptionKeys - objc.NSArray? supportedPPDOptionKeys() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPanel.supportedPPDOptionKeys', - iOS: (true, null), - ); - if (!objc.respondsToSelector(_$$ref.pointer, _sel_supportedPPDOptionKeys)) { - throw objc.UnimplementedOptionalMethodException( - 'PDEPanel', - 'supportedPPDOptionKeys', - ); - } - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_supportedPPDOptionKeys, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// willShow - void willShow() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('PDEPanel.willShow', iOS: (true, null)); - _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_willShow); - } -} - -interface class PDEPanel$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_PDEPanel.cast()); - - /// Builds an object that implements the PDEPanel protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static PDEPanel implement({ - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implement( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implement( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implement(builder, willShow); - builder.addProtocol($protocol); - return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the PDEPanel protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implement( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implement( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implement(builder, willShow); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the PDEPanel protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static PDEPanel implementAsListener({ - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsListener( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implementAsListener( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implementAsListener(builder, willShow); - builder.addProtocol($protocol); - return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the PDEPanel protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsListener( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implementAsListener( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implementAsListener(builder, willShow); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the PDEPanel protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static PDEPanel implementAsBlocking({ - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPanel'); - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsBlocking( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implementAsBlocking( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implementAsBlocking(builder, willShow); - builder.addProtocol($protocol); - return PDEPanel.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the PDEPanel protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(objc.NSString, objc.NSString) - PPDOptionKeyValueDidChange_ppdChoice_, - required objc.NSString Function() panelKind, - required objc.NSString Function() panelName, - required NSView? Function() panelView, - void Function(bool)? printWindowWillClose_, - required bool Function(ffi.Pointer>) - restoreValuesAndReturnError_, - required bool Function(ffi.Pointer>) - saveValuesAndReturnError_, - required bool Function() shouldHide, - bool Function()? shouldPrint, - bool Function()? shouldShowHelp, - required objc.NSDictionary? Function() summaryInfo, - objc.NSArray? Function()? supportedPPDOptionKeys, - required void Function() willShow, - bool $keepIsolateAlive = true, - }) { - PDEPanel$Builder.PPDOptionKeyValueDidChange_ppdChoice_.implementAsBlocking( - builder, - PPDOptionKeyValueDidChange_ppdChoice_, - ); - PDEPanel$Builder.panelKind.implement(builder, panelKind); - PDEPanel$Builder.panelName.implement(builder, panelName); - PDEPanel$Builder.panelView.implement(builder, panelView); - PDEPanel$Builder.printWindowWillClose_.implementAsBlocking( - builder, - printWindowWillClose_, - ); - PDEPanel$Builder.restoreValuesAndReturnError_.implement( - builder, - restoreValuesAndReturnError_, - ); - PDEPanel$Builder.saveValuesAndReturnError_.implement( - builder, - saveValuesAndReturnError_, - ); - PDEPanel$Builder.shouldHide.implement(builder, shouldHide); - PDEPanel$Builder.shouldPrint.implement(builder, shouldPrint); - PDEPanel$Builder.shouldShowHelp.implement(builder, shouldShowHelp); - PDEPanel$Builder.summaryInfo.implement(builder, summaryInfo); - PDEPanel$Builder.supportedPPDOptionKeys.implement( - builder, - supportedPPDOptionKeys, - ); - PDEPanel$Builder.willShow.implementAsBlocking(builder, willShow); - builder.addProtocol($protocol); - } - - /// PPDOptionKeyValueDidChange:ppdChoice: - static final PPDOptionKeyValueDidChange_ppdChoice_ = - objc.ObjCProtocolListenableMethod< - void Function(objc.NSString, objc.NSString) - >( - _protocol_PDEPanel, - _sel_PPDOptionKeyValueDidChange_ppdChoice_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_fjrv01) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_PPDOptionKeyValueDidChange_ppdChoice_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.listener( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - (void Function(objc.NSString, objc.NSString) func) => - ObjCBlock_ffiVoid_ffiVoid_NSString_NSString.blocking( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); - - /// panelKind - static final panelKind = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_panelKind, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_panelKind, - isRequired: true, - isInstanceMethod: true, - ), - (objc.NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// panelName - static final panelName = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_panelName, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_panelName, - isRequired: true, - isInstanceMethod: true, - ), - (objc.NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// panelView - static final panelView = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_panelView, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_panelView, - isRequired: true, - isInstanceMethod: true, - ), - (NSView? Function() func) => ObjCBlock_NSView_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// printWindowWillClose: - static final printWindowWillClose_ = - objc.ObjCProtocolListenableMethod( - _protocol_PDEPanel, - _sel_printWindowWillClose_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >(_1uu024u_protocolTrampoline_10lndml) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_printWindowWillClose_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(bool) func) => - ObjCBlock_ffiVoid_ffiVoid_bool.fromFunction( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.listener( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - (void Function(bool) func) => ObjCBlock_ffiVoid_ffiVoid_bool.blocking( - (ffi.Pointer _, bool arg1) => func(arg1), - ), - ); - - /// restoreValuesAndReturnError: - static final restoreValuesAndReturnError_ = - objc.ObjCProtocolMethod< - bool Function(ffi.Pointer>) - >( - _protocol_PDEPanel, - _sel_restoreValuesAndReturnError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >(_1uu024u_protocolTrampoline_jp3gca) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_restoreValuesAndReturnError_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(ffi.Pointer>) func) => - ObjCBlock_bool_ffiVoid_NSError.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer> arg1, - ) => func(arg1), - ), - ); - - /// saveValuesAndReturnError: - static final saveValuesAndReturnError_ = - objc.ObjCProtocolMethod< - bool Function(ffi.Pointer>) - >( - _protocol_PDEPanel, - _sel_saveValuesAndReturnError_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >(_1uu024u_protocolTrampoline_jp3gca) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_saveValuesAndReturnError_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(ffi.Pointer>) func) => - ObjCBlock_bool_ffiVoid_NSError.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer> arg1, - ) => func(arg1), - ), - ); - - /// shouldHide - static final shouldHide = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_shouldHide, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_e3qsqz) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_shouldHide, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// shouldPrint - static final shouldPrint = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_shouldPrint, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_e3qsqz) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_shouldPrint, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// shouldShowHelp - static final shouldShowHelp = objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_shouldShowHelp, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_e3qsqz) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_shouldShowHelp, - isRequired: false, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// summaryInfo - static final summaryInfo = - objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_summaryInfo, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_summaryInfo, - isRequired: true, - isInstanceMethod: true, - ), - (objc.NSDictionary? Function() func) => - ObjCBlock_NSDictionary_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// supportedPPDOptionKeys - static final supportedPPDOptionKeys = - objc.ObjCProtocolMethod( - _protocol_PDEPanel, - _sel_supportedPPDOptionKeys, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_supportedPPDOptionKeys, - isRequired: false, - isInstanceMethod: true, - ), - (objc.NSArray? Function() func) => - ObjCBlock_NSArray_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// willShow - static final willShow = objc.ObjCProtocolListenableMethod( - _protocol_PDEPanel, - _sel_willShow, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_ovsamd) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPanel, - _sel_willShow, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.listener( - (ffi.Pointer _) => func(), - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid$1.blocking( - (ffi.Pointer _) => func(), - ), - ); -} - -/// PDEPlugIn -extension type PDEPlugIn._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [PDEPlugIn] that points to the same underlying object as [other]. - PDEPlugIn.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [PDEPlugIn] that wraps the given raw object pointer. - PDEPlugIn.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [PDEPlugIn]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_PDEPlugIn, - ); - } -} - -extension PDEPlugIn$Methods on PDEPlugIn { - /// PDEPanelsForType:withHostInfo: - objc.NSArray? PDEPanelsForType( - objc.NSString pdeType, { - required PDEPlugInCallbackProtocol withHostInfo, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = pdeType.ref; - final _$$ref$2 = withHostInfo.ref; - objc.checkOsVersionInternal( - 'PDEPlugIn.PDEPanelsForType:withHostInfo:', - iOS: (true, null), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.pointer, - _sel_PDEPanelsForType_withHostInfo_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// initWithBundle: - PDEPlugIn? initWithBundle(objc.NSBundle theBundle) { - final _$$ref = object$.ref; - final _$$ref$1 = theBundle.ref; - objc.checkOsVersionInternal('PDEPlugIn.initWithBundle:', iOS: (true, null)); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithBundle_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : PDEPlugIn.fromPointer($ret, retain: false, release: true); - } -} - -interface class PDEPlugIn$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_PDEPlugIn.cast()); - - /// Builds an object that implements the PDEPlugIn protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static PDEPlugIn implement({ - required objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) - PDEPanelsForType_withHostInfo_, - required Dartinstancetype? Function(objc.NSBundle) initWithBundle_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'PDEPlugIn'); - PDEPlugIn$Builder.PDEPanelsForType_withHostInfo_.implement( - builder, - PDEPanelsForType_withHostInfo_, - ); - PDEPlugIn$Builder.initWithBundle_.implement(builder, initWithBundle_); - builder.addProtocol($protocol); - return PDEPlugIn.as(builder.build(keepIsolateAlive: $keepIsolateAlive)); - } - - /// Adds the implementation of the PDEPlugIn protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) - PDEPanelsForType_withHostInfo_, - required Dartinstancetype? Function(objc.NSBundle) initWithBundle_, - bool $keepIsolateAlive = true, - }) { - PDEPlugIn$Builder.PDEPanelsForType_withHostInfo_.implement( - builder, - PDEPanelsForType_withHostInfo_, - ); - PDEPlugIn$Builder.initWithBundle_.implement(builder, initWithBundle_); - builder.addProtocol($protocol); - } - - /// PDEPanelsForType:withHostInfo: - static final PDEPanelsForType_withHostInfo_ = - objc.ObjCProtocolMethod< - objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) - >( - _protocol_PDEPlugIn, - _sel_PDEPanelsForType_withHostInfo_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_zi5eed) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugIn, - _sel_PDEPanelsForType_withHostInfo_, - isRequired: true, - isInstanceMethod: true, - ), - ( - objc.NSArray? Function(objc.NSString, PDEPlugInCallbackProtocol) func, - ) => - ObjCBlock_NSArray_ffiVoid_NSString_idPDEPlugInCallbackProtocol.fromFunction( - ( - ffi.Pointer _, - objc.NSString arg1, - PDEPlugInCallbackProtocol arg2, - ) => func(arg1, arg2), - ), - ); - - /// initWithBundle: - static final initWithBundle_ = - objc.ObjCProtocolMethod( - _protocol_PDEPlugIn, - _sel_initWithBundle_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_xr62hr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugIn, - _sel_initWithBundle_, - isRequired: true, - isInstanceMethod: true, - ), - (Dartinstancetype? Function(objc.NSBundle) func) => - ObjCBlock_instancetype_ffiVoid_NSBundle.fromFunction( - (ffi.Pointer _, objc.NSBundle arg1) => func(arg1), - ), - ); -} - -/// PDEPlugInCallbackProtocol -extension type PDEPlugInCallbackProtocol._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [PDEPlugInCallbackProtocol] that points to the same underlying object as [other]. - PDEPlugInCallbackProtocol.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [PDEPlugInCallbackProtocol] that wraps the given raw object pointer. - PDEPlugInCallbackProtocol.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [PDEPlugInCallbackProtocol]. - static bool conformsTo(objc.ObjCObject obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_PDEPlugInCallbackProtocol, - ); - } -} - -extension PDEPlugInCallbackProtocol$Methods on PDEPlugInCallbackProtocol { - /// PMPrinter - PMPrinter PMPrinter$1() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.PMPrinter', - iOS: (true, null), - ); - return _objc_msgSend_bm6pu2(_$$ref.pointer, _sel_PMPrinter); - } - - /// pageFormat - PMPageFormat pageFormat() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.pageFormat', - iOS: (true, null), - ); - return _objc_msgSend_1dcy00i(_$$ref.pointer, _sel_pageFormat); - } - - /// ppdFile - ffi.Pointer ppdFile() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.ppdFile', - iOS: (true, null), - ); - return _objc_msgSend_wbgokv(_$$ref.pointer, _sel_ppdFile); - } - - /// printSession - PMPrintSession printSession() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.printSession', - iOS: (true, null), - ); - return _objc_msgSend_esp80j(_$$ref.pointer, _sel_printSession); - } - - /// printSettings - PMPrintSettings printSettings() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.printSettings', - iOS: (true, null), - ); - return _objc_msgSend_1tqkjbg(_$$ref.pointer, _sel_printSettings); - } - - /// willChangePPDOptionKeyValue:ppdChoice: - bool willChangePPDOptionKeyValue( - objc.NSString option, { - required objc.NSString ppdChoice, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = option.ref; - final _$$ref$2 = ppdChoice.ref; - objc.checkOsVersionInternal( - 'PDEPlugInCallbackProtocol.willChangePPDOptionKeyValue:ppdChoice:', - iOS: (true, null), - ); - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_willChangePPDOptionKeyValue_ppdChoice_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } -} - -interface class PDEPlugInCallbackProtocol$Builder { - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.fromPointer(_protocol_PDEPlugInCallbackProtocol.cast()); - - /// Builds an object that implements the PDEPlugInCallbackProtocol protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static PDEPlugInCallbackProtocol implement({ - required PMPrinter Function() PMPrinter$1, - required PMPageFormat Function() pageFormat, - required ffi.Pointer Function() ppdFile, - required PMPrintSession Function() printSession, - required PMPrintSettings Function() printSettings, - required bool Function(objc.NSString, objc.NSString) - willChangePPDOptionKeyValue_ppdChoice_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'PDEPlugInCallbackProtocol', - ); - PDEPlugInCallbackProtocol$Builder.PMPrinter$1.implement( - builder, - PMPrinter$1, - ); - PDEPlugInCallbackProtocol$Builder.pageFormat.implement(builder, pageFormat); - PDEPlugInCallbackProtocol$Builder.ppdFile.implement(builder, ppdFile); - PDEPlugInCallbackProtocol$Builder.printSession.implement( - builder, - printSession, - ); - PDEPlugInCallbackProtocol$Builder.printSettings.implement( - builder, - printSettings, - ); - PDEPlugInCallbackProtocol$Builder.willChangePPDOptionKeyValue_ppdChoice_ - .implement(builder, willChangePPDOptionKeyValue_ppdChoice_); - builder.addProtocol($protocol); - return PDEPlugInCallbackProtocol.as( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the PDEPlugInCallbackProtocol protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required PMPrinter Function() PMPrinter$1, - required PMPageFormat Function() pageFormat, - required ffi.Pointer Function() ppdFile, - required PMPrintSession Function() printSession, - required PMPrintSettings Function() printSettings, - required bool Function(objc.NSString, objc.NSString) - willChangePPDOptionKeyValue_ppdChoice_, - bool $keepIsolateAlive = true, - }) { - PDEPlugInCallbackProtocol$Builder.PMPrinter$1.implement( - builder, - PMPrinter$1, - ); - PDEPlugInCallbackProtocol$Builder.pageFormat.implement(builder, pageFormat); - PDEPlugInCallbackProtocol$Builder.ppdFile.implement(builder, ppdFile); - PDEPlugInCallbackProtocol$Builder.printSession.implement( - builder, - printSession, - ); - PDEPlugInCallbackProtocol$Builder.printSettings.implement( - builder, - printSettings, - ); - PDEPlugInCallbackProtocol$Builder.willChangePPDOptionKeyValue_ppdChoice_ - .implement(builder, willChangePPDOptionKeyValue_ppdChoice_); - builder.addProtocol($protocol); - } - - /// PMPrinter - static final PMPrinter$1 = objc.ObjCProtocolMethod( - _protocol_PDEPlugInCallbackProtocol, - _sel_PMPrinter, - ffi.Native.addressOf< - ffi.NativeFunction< - PMPrinter Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_h8xvuu) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_PMPrinter, - isRequired: true, - isInstanceMethod: true, - ), - (PMPrinter Function() func) => ObjCBlock_PMPrinter_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// pageFormat - static final pageFormat = objc.ObjCProtocolMethod( - _protocol_PDEPlugInCallbackProtocol, - _sel_pageFormat, - ffi.Native.addressOf< - ffi.NativeFunction< - PMPageFormat Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1pm5t72) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_pageFormat, - isRequired: true, - isInstanceMethod: true, - ), - (PMPageFormat Function() func) => - ObjCBlock_PMPageFormat_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// ppdFile - static final ppdFile = - objc.ObjCProtocolMethod Function()>( - _protocol_PDEPlugInCallbackProtocol, - _sel_ppdFile, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_10vn635) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_ppdFile, - isRequired: true, - isInstanceMethod: true, - ), - (ffi.Pointer Function() func) => - ObjCBlock_ppdfiles_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// printSession - static final printSession = - objc.ObjCProtocolMethod( - _protocol_PDEPlugInCallbackProtocol, - _sel_printSession, - ffi.Native.addressOf< - ffi.NativeFunction< - PMPrintSession Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1ch2rph) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_printSession, - isRequired: true, - isInstanceMethod: true, - ), - (PMPrintSession Function() func) => - ObjCBlock_PMPrintSession_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// printSettings - static final printSettings = - objc.ObjCProtocolMethod( - _protocol_PDEPlugInCallbackProtocol, - _sel_printSettings, - ffi.Native.addressOf< - ffi.NativeFunction< - PMPrintSettings Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_1cwrrqo) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_printSettings, - isRequired: true, - isInstanceMethod: true, - ), - (PMPrintSettings Function() func) => - ObjCBlock_PMPrintSettings_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// willChangePPDOptionKeyValue:ppdChoice: - static final willChangePPDOptionKeyValue_ppdChoice_ = - objc.ObjCProtocolMethod( - _protocol_PDEPlugInCallbackProtocol, - _sel_willChangePPDOptionKeyValue_ppdChoice_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_1uu024u_protocolTrampoline_2n06mv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_PDEPlugInCallbackProtocol, - _sel_willChangePPDOptionKeyValue_ppdChoice_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.NSString, objc.NSString) func) => - ObjCBlock_bool_ffiVoid_NSString_NSString.fromFunction( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.NSString arg2, - ) => func(arg1, arg2), - ), - ); -} - -@ffi.Packed(2) -final class PEFContainerHeader extends ffi.Struct { - @OSType() - external int tag1; - - @OSType() - external int tag2; - - @OSType() - external int architecture; - - @UInt32() - external int formatVersion; - - @UInt32() - external int dateTimeStamp; - - @UInt32() - external int oldDefVersion; - - @UInt32() - external int oldImpVersion; - - @UInt32() - external int currentVersion; - - @UInt16() - external int sectionCount; - - @UInt16() - external int instSectionCount; - - @UInt32() - external int reservedA; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tag1, - required int tag2, - required int architecture, - required int formatVersion, - required int dateTimeStamp, - required int oldDefVersion, - required int oldImpVersion, - required int currentVersion, - required int sectionCount, - required int instSectionCount, - required int reservedA, - }) => $allocator() - ..ref.tag1 = tag1 - ..ref.tag2 = tag2 - ..ref.architecture = architecture - ..ref.formatVersion = formatVersion - ..ref.dateTimeStamp = dateTimeStamp - ..ref.oldDefVersion = oldDefVersion - ..ref.oldImpVersion = oldImpVersion - ..ref.currentVersion = currentVersion - ..ref.sectionCount = sectionCount - ..ref.instSectionCount = instSectionCount - ..ref.reservedA = reservedA; -} - -@ffi.Packed(2) -final class PEFExportedSymbol extends ffi.Struct { - @UInt32() - external int classAndName; - - @UInt32() - external int symbolValue; - - @SInt16() - external int sectionIndex; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int classAndName, - required int symbolValue, - required int sectionIndex, - }) => $allocator() - ..ref.classAndName = classAndName - ..ref.symbolValue = symbolValue - ..ref.sectionIndex = sectionIndex; -} - -@ffi.Packed(2) -final class PEFExportedSymbolHashSlot extends ffi.Struct { - @UInt32() - external int countAndStart; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int countAndStart, - }) => - $allocator() - ..ref.countAndStart = countAndStart; -} - -final class PEFExportedSymbolKey extends ffi.Struct { - external UnnamedUnion$11 u; -} - -@ffi.Packed(2) -final class PEFImportedLibrary extends ffi.Struct { - @UInt32() - external int nameOffset; - - @UInt32() - external int oldImpVersion; - - @UInt32() - external int currentVersion; - - @UInt32() - external int importedSymbolCount; - - @UInt32() - external int firstImportedSymbol; - - @UInt8() - external int options; - - @UInt8() - external int reservedA; - - @UInt16() - external int reservedB; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nameOffset, - required int oldImpVersion, - required int currentVersion, - required int importedSymbolCount, - required int firstImportedSymbol, - required int options, - required int reservedA, - required int reservedB, - }) => $allocator() - ..ref.nameOffset = nameOffset - ..ref.oldImpVersion = oldImpVersion - ..ref.currentVersion = currentVersion - ..ref.importedSymbolCount = importedSymbolCount - ..ref.firstImportedSymbol = firstImportedSymbol - ..ref.options = options - ..ref.reservedA = reservedA - ..ref.reservedB = reservedB; -} - -@ffi.Packed(2) -final class PEFImportedSymbol extends ffi.Struct { - @UInt32() - external int classAndName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int classAndName, - }) => $allocator()..ref.classAndName = classAndName; -} - -@ffi.Packed(2) -final class PEFLoaderInfoHeader extends ffi.Struct { - @SInt32() - external int mainSection; - - @UInt32() - external int mainOffset; - - @SInt32() - external int initSection; - - @UInt32() - external int initOffset; - - @SInt32() - external int termSection; - - @UInt32() - external int termOffset; - - @UInt32() - external int importedLibraryCount; - - @UInt32() - external int totalImportedSymbolCount; - - @UInt32() - external int relocSectionCount; - - @UInt32() - external int relocInstrOffset; - - @UInt32() - external int loaderStringsOffset; - - @UInt32() - external int exportHashOffset; - - @UInt32() - external int exportHashTablePower; - - @UInt32() - external int exportedSymbolCount; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mainSection, - required int mainOffset, - required int initSection, - required int initOffset, - required int termSection, - required int termOffset, - required int importedLibraryCount, - required int totalImportedSymbolCount, - required int relocSectionCount, - required int relocInstrOffset, - required int loaderStringsOffset, - required int exportHashOffset, - required int exportHashTablePower, - required int exportedSymbolCount, - }) => $allocator() - ..ref.mainSection = mainSection - ..ref.mainOffset = mainOffset - ..ref.initSection = initSection - ..ref.initOffset = initOffset - ..ref.termSection = termSection - ..ref.termOffset = termOffset - ..ref.importedLibraryCount = importedLibraryCount - ..ref.totalImportedSymbolCount = totalImportedSymbolCount - ..ref.relocSectionCount = relocSectionCount - ..ref.relocInstrOffset = relocInstrOffset - ..ref.loaderStringsOffset = loaderStringsOffset - ..ref.exportHashOffset = exportHashOffset - ..ref.exportHashTablePower = exportHashTablePower - ..ref.exportedSymbolCount = exportedSymbolCount; -} - -@ffi.Packed(2) -final class PEFLoaderRelocationHeader extends ffi.Struct { - @UInt16() - external int sectionIndex; - - @UInt16() - external int reservedA; - - @UInt32() - external int relocCount; - - @UInt32() - external int firstRelocOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sectionIndex, - required int reservedA, - required int relocCount, - required int firstRelocOffset, - }) => $allocator() - ..ref.sectionIndex = sectionIndex - ..ref.reservedA = reservedA - ..ref.relocCount = relocCount - ..ref.firstRelocOffset = firstRelocOffset; -} - -typedef PEFRelocChunk = UInt16; - -@ffi.Packed(2) -final class PEFSectionHeader extends ffi.Struct { - @SInt32() - external int nameOffset; - - @UInt32() - external int defaultAddress; - - @UInt32() - external int totalLength; - - @UInt32() - external int unpackedLength; - - @UInt32() - external int containerLength; - - @UInt32() - external int containerOffset; - - @UInt8() - external int sectionKind; - - @UInt8() - external int shareKind; - - @UInt8() - external int alignment; - - @UInt8() - external int reservedA; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nameOffset, - required int defaultAddress, - required int totalLength, - required int unpackedLength, - required int containerLength, - required int containerOffset, - required int sectionKind, - required int shareKind, - required int alignment, - required int reservedA, - }) => $allocator() - ..ref.nameOffset = nameOffset - ..ref.defaultAddress = defaultAddress - ..ref.totalLength = totalLength - ..ref.unpackedLength = unpackedLength - ..ref.containerLength = containerLength - ..ref.containerOffset = containerOffset - ..ref.sectionKind = sectionKind - ..ref.shareKind = shareKind - ..ref.alignment = alignment - ..ref.reservedA = reservedA; -} - -final class PEFSplitHashWord extends ffi.Struct { - @UInt16() - external int nameLength; - - @UInt16() - external int hashValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nameLength, - required int hashValue, - }) => $allocator() - ..ref.nameLength = nameLength - ..ref.hashValue = hashValue; -} - -typedef PMBorderType = UInt16; -typedef PMColorSpaceModel = UInt32; - -enum PMDataFormat { - kPMDataFormatXMLDefault(0), - kPMDataFormatXMLMinimal(1), - kPMDataFormatXMLCompressed(2); - - final int value; - const PMDataFormat(this.value); - - static PMDataFormat fromValue(int value) => switch (value) { - 0 => kPMDataFormatXMLDefault, - 1 => kPMDataFormatXMLMinimal, - 2 => kPMDataFormatXMLCompressed, - _ => throw ArgumentError('Unknown value for PMDataFormat: $value'), - }; -} - -typedef PMDestinationType = UInt16; -typedef PMDuplexMode = UInt32; - -final class PMLanguageInfo extends ffi.Struct { - @ffi.Array.multi([33]) - external ffi.Array level; - - @ffi.Array.multi([33]) - external ffi.Array version; - - @ffi.Array.multi([33]) - external ffi.Array release; -} - -typedef PMLayoutDirection = UInt16; -typedef PMObject = ffi.Pointer; -typedef PMOrientation = UInt16; -typedef PMPPDDomain = UInt16; -typedef PMPageFormat = ffi.Pointer; - -enum PMPageToPaperMappingType { - kPMPageToPaperMappingNone(1), - kPMPageToPaperMappingScaleToFit(2); - - final int value; - const PMPageToPaperMappingType(this.value); - - static PMPageToPaperMappingType fromValue(int value) => switch (value) { - 1 => kPMPageToPaperMappingNone, - 2 => kPMPageToPaperMappingScaleToFit, - _ => throw ArgumentError( - 'Unknown value for PMPageToPaperMappingType: $value', - ), - }; -} - -typedef PMPaper = ffi.Pointer; -typedef PMPaperMargins = PMRect; -typedef PMPaperType = UInt32; -typedef PMPreset = ffi.Pointer; -typedef PMPrintDialogOptionFlags = OptionBits; -typedef PMPrintSession = ffi.Pointer; -typedef PMPrintSettings = ffi.Pointer; -typedef PMPrinter = ffi.Pointer; -typedef PMPrinterState = UInt16; -typedef PMQualityMode = UInt32; - -final class PMRect extends ffi.Struct { - @ffi.Double() - external double top; - - @ffi.Double() - external double left; - - @ffi.Double() - external double bottom; - - @ffi.Double() - external double right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double top, - required double left, - required double bottom, - required double right, - }) => $allocator() - ..ref.top = top - ..ref.left = left - ..ref.bottom = bottom - ..ref.right = right; -} - -final class PMResolution extends ffi.Struct { - @ffi.Double() - external double hRes; - - @ffi.Double() - external double vRes; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double hRes, - required double vRes, - }) => $allocator() - ..ref.hRes = hRes - ..ref.vRes = vRes; -} - -typedef PMScalingAlignment = UInt16; -typedef PMServer = ffi.Pointer; -typedef PRefCon = ffi.Pointer; - -final class ParamBlockRec extends ffi.Opaque {} - -typedef ParmBlkPtr = ffi.Pointer; - -sealed class PasteboardFlavorFlags { - static const kPasteboardFlavorNoFlags = 0; - static const kPasteboardFlavorSenderOnly = 1; - static const kPasteboardFlavorSenderTranslated = 2; - static const kPasteboardFlavorNotSaved = 4; - static const kPasteboardFlavorRequestOnly = 8; - static const kPasteboardFlavorSystemTranslated = 256; - static const kPasteboardFlavorPromised = 512; -} - -typedef PasteboardItemID = ffi.Pointer; -typedef PasteboardPromiseKeeperProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - PasteboardRef pasteboard, - PasteboardItemID item, - CFStringRef flavorType, - ffi.Pointer context, - ) - > - >; -typedef PasteboardRef = ffi.Pointer; - -enum PasteboardStandardLocation { - kPasteboardStandardLocationTrash(1953657704), - kPasteboardStandardLocationUnknown(1970170734); - - final int value; - const PasteboardStandardLocation(this.value); - - static PasteboardStandardLocation fromValue(int value) => switch (value) { - 1953657704 => kPasteboardStandardLocationTrash, - 1970170734 => kPasteboardStandardLocationUnknown, - _ => throw ArgumentError( - 'Unknown value for PasteboardStandardLocation: $value', - ), - }; -} - -sealed class PasteboardSyncFlags { - static const kPasteboardModified = 1; - static const kPasteboardClientIsOwner = 2; -} - -typedef PatHandle = ffi.Pointer; -typedef PatPtr = ffi.Pointer; - -final class Pattern extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array pat; -} - -final class PhonemeDescriptor extends ffi.Struct { - @SInt16() - external int phonemeCount; - - @ffi.Array.multi([1]) - external ffi.Array thePhonemes; -} - -final class PhonemeInfo extends ffi.Struct { - @SInt16() - external int opcode; - - @ffi.Array.multi([16]) - external ffi.Array phStr; - - @ffi.Array.multi([32]) - external ffi.Array exampleStr; - - @SInt16() - external int hiliteStart; - - @SInt16() - external int hiliteEnd; -} - -typedef PhysicalAddress = ffi.Pointer; -typedef PicHandle = ffi.Pointer; -typedef PicPtr = ffi.Pointer; - -final class Picture extends ffi.Struct { - @ffi.Short() - external int picSize; - - external Rect picFrame; -} - -@ffi.Packed(2) -final class PixMap extends ffi.Struct { - external Ptr baseAddr; - - @ffi.Short() - external int rowBytes; - - external Rect bounds; - - @ffi.Short() - external int pmVersion; - - @ffi.Short() - external int packType; - - @SInt32() - external int packSize; - - @Fixed() - external int hRes; - - @Fixed() - external int vRes; - - @ffi.Short() - external int pixelType; - - @ffi.Short() - external int pixelSize; - - @ffi.Short() - external int cmpCount; - - @ffi.Short() - external int cmpSize; - - @OSType() - external int pixelFormat; - - external CTabHandle pmTable; - - external ffi.Pointer pmExt; -} - -typedef PixMapHandle = ffi.Pointer; -typedef PixMapPtr = ffi.Pointer; - -@ffi.Packed(2) -final class PixPat extends ffi.Struct { - @ffi.Short() - external int patType; - - external PixMapHandle patMap; - - external Handle patData; - - external Handle patXData; - - @ffi.Short() - external int patXValid; - - external Handle patXMap; - - external Pattern pat1Data; -} - -typedef PixPatHandle = ffi.Pointer; -typedef PixPatPtr = ffi.Pointer; -typedef PlotIconRefFlags = UInt32; - -final class Point extends ffi.Struct { - @ffi.Short() - external int v; - - @ffi.Short() - external int h; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - required int h, - }) => $allocator() - ..ref.v = v - ..ref.h = h; -} - -typedef PointPtr = ffi.Pointer; -typedef PolyHandle = ffi.Pointer; -typedef PolyPtr = ffi.Pointer; -typedef Polygon = MacPolygon; -typedef PrinterStatusOpcode = SInt32; -typedef ProcHandle = ffi.Pointer; -typedef ProcInfoType = ffi.UnsignedLong; -typedef DartProcInfoType = int; -typedef ProcPtr = ffi.Pointer>; -typedef ProcessApplicationTransformState = UInt32; - -@ffi.Packed(2) -final class ProcessInfoExtendedRec extends ffi.Struct { - @UInt32() - external int processInfoLength; - - external StringPtr processName; - - external ProcessSerialNumber processNumber; - - @UInt32() - external int processType; - - @OSType() - external int processSignature; - - @UInt32() - external int processMode; - - external Ptr processLocation; - - @UInt32() - external int processSize; - - @UInt32() - external int processFreeMem; - - external ProcessSerialNumber processLauncher; - - @UInt32() - external int processLaunchDate; - - @UInt32() - external int processActiveTime; - - external FSRefPtr processAppRef; - - @UInt32() - external int processTempMemTotal; - - @UInt32() - external int processPurgeableTempMemTotal; -} - -typedef ProcessInfoExtendedRecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class ProcessInfoRec extends ffi.Struct { - @UInt32() - external int processInfoLength; - - external StringPtr processName; - - external ProcessSerialNumber processNumber; - - @UInt32() - external int processType; - - @OSType() - external int processSignature; - - @UInt32() - external int processMode; - - external Ptr processLocation; - - @UInt32() - external int processSize; - - @UInt32() - external int processFreeMem; - - external ProcessSerialNumber processLauncher; - - @UInt32() - external int processLaunchDate; - - @UInt32() - external int processActiveTime; - - external FSRefPtr processAppRef; -} - -typedef ProcessInfoRecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class ProcessSerialNumber extends ffi.Struct { - @UInt32() - external int highLongOfPSN; - - @UInt32() - external int lowLongOfPSN; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int highLongOfPSN, - required int lowLongOfPSN, - }) => $allocator() - ..ref.highLongOfPSN = highLongOfPSN - ..ref.lowLongOfPSN = lowLongOfPSN; -} - -typedef ProcessSerialNumberPtr = ffi.Pointer; -typedef PropCharProperties = UInt16; - -final class PropLookupSegment extends ffi.Struct { - @UInt16() - external int lastGlyph; - - @UInt16() - external int firstGlyph; - - @UInt16() - external int value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lastGlyph, - required int firstGlyph, - required int value, - }) => $allocator() - ..ref.lastGlyph = lastGlyph - ..ref.firstGlyph = firstGlyph - ..ref.value = value; -} - -final class PropLookupSingle extends ffi.Struct { - @UInt16() - external int glyph; - - @PropCharProperties() - external int props; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int glyph, - required int props, - }) => $allocator() - ..ref.glyph = glyph - ..ref.props = props; -} - -@ffi.Packed(2) -final class PropTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt16() - external int format; - - @PropCharProperties() - external int defaultProps; - - external SFNTLookupTable lookup; -} - -typedef Ptr = ffi.Pointer; -typedef QDArcProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - GrafVerb verb, - ffi.Pointer r, - ffi.Short startAngle, - ffi.Short arcAngle, - ) - > - >; -typedef QDArcUPP = QDArcProcPtr; -typedef QDBitsProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer srcBits, - ffi.Pointer srcRect, - ffi.Pointer dstRect, - ffi.Short mode, - RgnHandle maskRgn, - ) - > - >; -typedef QDBitsUPP = QDBitsProcPtr; -typedef QDCommentProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Short kind, ffi.Short dataSize, Handle dataHandle) - > - >; -typedef QDCommentUPP = QDCommentProcPtr; -typedef QDErr = ffi.Short; -typedef DartQDErr = int; -typedef QDGetPicProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount) - > - >; -typedef QDGetPicUPP = QDGetPicProcPtr; -typedef QDJShieldCursorProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Short left, - ffi.Short top, - ffi.Short right, - ffi.Short bottom, - ) - > - >; -typedef QDJShieldCursorUPP = QDJShieldCursorProcPtr; -typedef QDLineProcPtr = - ffi.Pointer>; -typedef QDLineUPP = QDLineProcPtr; -typedef QDOpcodeProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer fromRect, - ffi.Pointer toRect, - UInt16 opcode, - SInt16 version, - ) - > - >; -typedef QDOpcodeUPP = QDOpcodeProcPtr; -typedef QDOvalProcPtr = - ffi.Pointer< - ffi.NativeFunction r)> - >; -typedef QDOvalUPP = QDOvalProcPtr; -typedef QDPolyProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef QDPolyUPP = QDPolyProcPtr; -typedef QDPrinterStatusProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - PrinterStatusOpcode opcode, - CGrafPtr currentPort, - ffi.Pointer printerStatus, - ) - > - >; -typedef QDPrinterStatusUPP = QDPrinterStatusProcPtr; -typedef QDPutPicProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount) - > - >; -typedef QDPutPicUPP = QDPutPicProcPtr; -typedef QDRRectProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - GrafVerb verb, - ffi.Pointer r, - ffi.Short ovalWidth, - ffi.Short ovalHeight, - ) - > - >; -typedef QDRRectUPP = QDRRectProcPtr; -typedef QDRectProcPtr = - ffi.Pointer< - ffi.NativeFunction r)> - >; -typedef QDRectUPP = QDRectProcPtr; -typedef QDRegionParseDirection = SInt32; -typedef QDRgnProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef QDRgnUPP = QDRgnProcPtr; -typedef QDStdGlyphsProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function(ffi.Pointer dataStream, ByteCount size) - > - >; -typedef QDStdGlyphsUPP = QDStdGlyphsProcPtr; -typedef QDTextProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Short byteCount, - ffi.Pointer textBuf, - Point numer, - Point denom, - ) - > - >; -typedef QDTextUPP = QDTextProcPtr; -typedef QDTxMeasProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Short Function( - ffi.Short byteCount, - ffi.Pointer textAddr, - ffi.Pointer numer, - ffi.Pointer denom, - ffi.Pointer info, - ) - > - >; -typedef QDTxMeasUPP = QDTxMeasProcPtr; - -@ffi.Packed(2) -final class QElem extends ffi.Struct { - external ffi.Pointer qLink; - - @ffi.Short() - external int qType; - - @ffi.Array.multi([1]) - external ffi.Array qData; -} - -typedef QElemPtr = ffi.Pointer; - -final class QHdr extends ffi.Opaque {} - -typedef QHdrPtr = ffi.Pointer; -typedef QTypes = SignedByte; -typedef RDFlagsType = UInt8; - -final class RGBColor extends ffi.Struct { - @ffi.UnsignedShort() - external int red; - - @ffi.UnsignedShort() - external int green; - - @ffi.UnsignedShort() - external int blue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int red, - required int green, - required int blue, - }) => $allocator() - ..ref.red = red - ..ref.green = green - ..ref.blue = blue; -} - -final class ROTAGlyphEntry extends ffi.Struct { - @SInt16() - external int GlyphIndexOffset; - - @SInt16() - external int HBaselineOffset; - - @SInt16() - external int VBaselineOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int GlyphIndexOffset, - required int HBaselineOffset, - required int VBaselineOffset, - }) => $allocator() - ..ref.GlyphIndexOffset = GlyphIndexOffset - ..ref.HBaselineOffset = HBaselineOffset - ..ref.VBaselineOffset = VBaselineOffset; -} - -@ffi.Packed(2) -final class ROTAHeader extends ffi.Struct { - @Fixed() - external int Version; - - @UInt16() - external int Flags; - - @UInt16() - external int NMasters; - - @UInt16() - external int FirstGlyph; - - @UInt16() - external int LastGlyph; - - external SFNTLookupTable lookup; -} - -typedef RTAType = SInt8; - -final class Rect extends ffi.Struct { - @ffi.Short() - external int top; - - @ffi.Short() - external int left; - - @ffi.Short() - external int bottom; - - @ffi.Short() - external int right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int top, - required int left, - required int bottom, - required int right, - }) => $allocator() - ..ref.top = top - ..ref.left = left - ..ref.bottom = bottom - ..ref.right = right; -} - -typedef RectPtr = ffi.Pointer; -typedef RedrawBackgroundProcPtr = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - ATSUTextLayout iLayout, - UniCharArrayOffset iTextOffset, - UniCharCount iTextLength, - ffi.Pointer iUnhighlightArea, - ItemCount iTrapezoidCount, - ) - > - >; -typedef RedrawBackgroundUPP = RedrawBackgroundProcPtr; -typedef RegionCode = SInt16; -typedef RegionToRectsProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - UInt16 message, - RgnHandle rgn, - ffi.Pointer rect, - ffi.Pointer refCon, - ) - > - >; -typedef RegionToRectsUPP = RegionToRectsProcPtr; -typedef Register68kProcPtr = - ffi.Pointer>; - -final class RegisterInformation extends ffi.Struct { - external ffi.Pointer __unusedRegisterInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedRegisterInformationField, - }) => $allocator() - ..ref.__unusedRegisterInformationField = $unusedRegisterInformationField; -} - -final class RegisterInformationPowerPC extends ffi.Struct { - external UnsignedWide R0; - - external UnsignedWide R1; - - external UnsignedWide R2; - - external UnsignedWide R3; - - external UnsignedWide R4; - - external UnsignedWide R5; - - external UnsignedWide R6; - - external UnsignedWide R7; - - external UnsignedWide R8; - - external UnsignedWide R9; - - external UnsignedWide R10; - - external UnsignedWide R11; - - external UnsignedWide R12; - - external UnsignedWide R13; - - external UnsignedWide R14; - - external UnsignedWide R15; - - external UnsignedWide R16; - - external UnsignedWide R17; - - external UnsignedWide R18; - - external UnsignedWide R19; - - external UnsignedWide R20; - - external UnsignedWide R21; - - external UnsignedWide R22; - - external UnsignedWide R23; - - external UnsignedWide R24; - - external UnsignedWide R25; - - external UnsignedWide R26; - - external UnsignedWide R27; - - external UnsignedWide R28; - - external UnsignedWide R29; - - external UnsignedWide R30; - - external UnsignedWide R31; -} - -@ffi.Packed(2) -final class RegisteredComponentInstanceRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef RegisteredComponentInstanceRecordPtr = - ffi.Pointer; - -@ffi.Packed(2) -final class RegisteredComponentRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef RegisteredComponentRecordPtr = ffi.Pointer; -typedef ResAttributes = SInt16; -typedef ResErrProcPtr = - ffi.Pointer>; -typedef ResErrUPP = ResErrProcPtr; -typedef ResFileAttributes = SInt16; -typedef ResFileRefNum = FSIORefNum; -typedef ResID = SInt16; -typedef ResType = FourCharCode; -typedef ResTypePtr = ffi.Pointer; -typedef ResourceCount = SInt16; -typedef ResourceEndianFilterPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function(Handle theResource, Boolean currentlyNativeEndian) - > - >; -typedef ResourceIndex = SInt16; - -@ffi.Packed(2) -final class ResourceSpec extends ffi.Struct { - @OSType() - external int resType; - - @SInt16() - external int resID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int resType, - required int resID, - }) => $allocator() - ..ref.resType = resType - ..ref.resID = resID; -} - -typedef RgnHandle = ffi.Pointer; - -@ffi.Packed(2) -final class RoutineDescriptor extends ffi.Struct { - @UInt16() - external int goMixedModeTrap; - - @SInt8() - external int version; - - @RDFlagsType() - external int routineDescriptorFlags; - - @UInt32() - external int reserved1; - - @UInt8() - external int reserved2; - - @UInt8() - external int selectorInfo; - - @UInt16() - external int routineCount; - - @ffi.Array.multi([1]) - external ffi.Array routineRecords; -} - -typedef RoutineDescriptorHandle = ffi.Pointer; -typedef RoutineDescriptorPtr = ffi.Pointer; -typedef RoutineFlagsType = ffi.UnsignedShort; -typedef DartRoutineFlagsType = int; - -@ffi.Packed(2) -final class RoutineRecord extends ffi.Struct { - @ProcInfoType() - external int procInfo; - - @SInt8() - external int reserved1; - - @ISAType() - external int ISA; - - @RoutineFlagsType() - external int routineFlags; - - external ProcPtr procDescriptor; - - @UInt32() - external int reserved2; - - @UInt32() - external int selector; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int procInfo, - required int reserved1, - required int ISA, - required int routineFlags, - required ProcPtr procDescriptor, - required int reserved2, - required int selector, - }) => $allocator() - ..ref.procInfo = procInfo - ..ref.reserved1 = reserved1 - ..ref.ISA = ISA - ..ref.routineFlags = routineFlags - ..ref.procDescriptor = procDescriptor - ..ref.reserved2 = reserved2 - ..ref.selector = selector; -} - -typedef RoutineRecordHandle = ffi.Pointer; -typedef RoutineRecordPtr = ffi.Pointer; - -/// RoutingConfiguration -extension RoutingConfiguration on AVAudioSession { - /// availableInputs - objc.NSArray? get availableInputs { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.availableInputs', - iOS: (false, (7, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_availableInputs); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// currentRoute - AVAudioSessionRouteDescription get currentRoute { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.currentRoute', - iOS: (false, (6, 0, 0)), - macOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentRoute); - return AVAudioSessionRouteDescription.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - /// prefersInterruptionOnRouteDisconnect - bool get prefersInterruptionOnRouteDisconnect { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.prefersInterruptionOnRouteDisconnect', - iOS: (false, (17, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_91o635( - _$$ref.pointer, - _sel_prefersInterruptionOnRouteDisconnect, - ); - } - - /// setAggregatedIOPreference:error: - bool setAggregatedIOPreference(AVAudioSessionIOType inIOType) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setAggregatedIOPreference:error:', - iOS: (false, (10, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_vqual9( - _$$ref.pointer, - _sel_setAggregatedIOPreference_error_, - inIOType.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setPrefersInterruptionOnRouteDisconnect:error: - bool setPrefersInterruptionOnRouteDisconnect(bool inValue) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setPrefersInterruptionOnRouteDisconnect:error:', - iOS: (false, (17, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_164wts2( - _$$ref.pointer, - _sel_setPrefersInterruptionOnRouteDisconnect_error_, - inValue, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// setSupportsMultichannelContent:error: - bool setSupportsMultichannelContent(bool inValue) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.setSupportsMultichannelContent:error:', - iOS: (false, (15, 0, 0)), - macOS: (true, null), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_164wts2( - _$$ref.pointer, - _sel_setSupportsMultichannelContent_error_, - inValue, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// supportsMultichannelContent - bool get supportsMultichannelContent { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'AVAudioSession.supportsMultichannelContent', - iOS: (false, (15, 0, 0)), - macOS: (true, null), - ); - return _objc_msgSend_91o635( - _$$ref.pointer, - _sel_supportsMultichannelContent, - ); - } -} - -typedef RoutingFlags = UInt32; - -@ffi.Packed(2) -final class RoutingResourceEntry extends ffi.Struct { - @OSType() - external int creator; - - @OSType() - external int fileType; - - @OSType() - external int targetFolder; - - @OSType() - external int destinationFolder; - - @OSType() - external int reservedField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int creator, - required int fileType, - required int targetFolder, - required int destinationFolder, - required int reservedField, - }) => $allocator() - ..ref.creator = creator - ..ref.fileType = fileType - ..ref.targetFolder = targetFolder - ..ref.destinationFolder = destinationFolder - ..ref.reservedField = reservedField; -} - -typedef RoutingResourceHandle = ffi.Pointer; -typedef RoutingResourcePtr = ffi.Pointer; -typedef RsrcChainLocation = SInt16; - -final class RuleBasedTrslRecord extends ffi.Struct { - @ffi.Short() - external int sourceType; - - @ffi.Short() - external int targetType; - - @ffi.Short() - external int formatNumber; - - @ffi.Short() - external int propertyFlag; - - @ffi.Short() - external int numberOfRules; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sourceType, - required int targetType, - required int formatNumber, - required int propertyFlag, - required int numberOfRules, - }) => $allocator() - ..ref.sourceType = sourceType - ..ref.targetType = targetType - ..ref.formatNumber = formatNumber - ..ref.propertyFlag = propertyFlag - ..ref.numberOfRules = numberOfRules; -} - -final class SFNTLookupArrayHeader extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array lookupValues; -} - -final class SFNTLookupBinarySearchHeader extends ffi.Struct { - @UInt16() - external int unitSize; - - @UInt16() - external int nUnits; - - @UInt16() - external int searchRange; - - @UInt16() - external int entrySelector; - - @UInt16() - external int rangeShift; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int unitSize, - required int nUnits, - required int searchRange, - required int entrySelector, - required int rangeShift, - }) => $allocator() - ..ref.unitSize = unitSize - ..ref.nUnits = nUnits - ..ref.searchRange = searchRange - ..ref.entrySelector = entrySelector - ..ref.rangeShift = rangeShift; -} - -final class SFNTLookupFormatSpecificHeader extends ffi.Union { - external SFNTLookupArrayHeader theArray; - - external SFNTLookupSegmentHeader segment; - - external SFNTLookupSingleHeader single; - - external SFNTLookupTrimmedArrayHeader trimmedArray; - - external SFNTLookupVectorHeader vector; -} - -typedef SFNTLookupKind = UInt32; -typedef SFNTLookupOffset = UInt16; - -final class SFNTLookupSegment extends ffi.Struct { - @UInt16() - external int lastGlyph; - - @UInt16() - external int firstGlyph; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -final class SFNTLookupSegmentHeader extends ffi.Struct { - external SFNTLookupBinarySearchHeader binSearch; - - @ffi.Array.multi([1]) - external ffi.Array segments; -} - -final class SFNTLookupSingle extends ffi.Struct { - @UInt16() - external int glyph; - - @ffi.Array.multi([1]) - external ffi.Array value; -} - -final class SFNTLookupSingleHeader extends ffi.Struct { - external SFNTLookupBinarySearchHeader binSearch; - - @ffi.Array.multi([1]) - external ffi.Array entries; -} - -final class SFNTLookupTable extends ffi.Struct { - @SFNTLookupTableFormat() - external int format; - - external SFNTLookupFormatSpecificHeader fsHeader; -} - -typedef SFNTLookupTableFormat = UInt16; -typedef SFNTLookupTableHandle = ffi.Pointer; -typedef SFNTLookupTablePtr = ffi.Pointer; - -final class SFNTLookupTrimmedArrayHeader extends ffi.Struct { - @UInt16() - external int firstGlyph; - - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array valueArray; -} - -typedef SFNTLookupValue = UInt16; - -final class SFNTLookupVectorHeader extends ffi.Struct { - @UInt16() - external int valueSize; - - @UInt16() - external int firstGlyph; - - @UInt16() - external int count; - - @ffi.Array.multi([1]) - external ffi.Array values; -} - -typedef SInt = ffi.Int; -typedef DartSInt = int; -typedef SInt16 = ffi.Short; -typedef DartSInt16 = int; -typedef SInt32 = ffi.Int; -typedef DartSInt32 = int; -typedef SInt64 = ffi.LongLong; -typedef DartSInt64 = int; -typedef SInt8 = ffi.SignedChar; -typedef DartSInt8 = int; -typedef SKDocumentID = CFIndex; - -enum SKDocumentIndexState { - kSKDocumentStateNotIndexed(0), - kSKDocumentStateIndexed(1), - kSKDocumentStateAddPending(2), - kSKDocumentStateDeletePending(3); - - final int value; - const SKDocumentIndexState(this.value); - - static SKDocumentIndexState fromValue(int value) => switch (value) { - 0 => kSKDocumentStateNotIndexed, - 1 => kSKDocumentStateIndexed, - 2 => kSKDocumentStateAddPending, - 3 => kSKDocumentStateDeletePending, - _ => throw ArgumentError('Unknown value for SKDocumentIndexState: $value'), - }; -} - -typedef SKDocumentRef = CFTypeRef; -typedef SKIndexDocumentIteratorRef = ffi.Pointer<__SKIndexDocumentIterator>; -typedef SKIndexRef = ffi.Pointer<__SKIndex>; - -enum SKIndexType { - kSKIndexUnknown(0), - kSKIndexInverted(1), - kSKIndexVector(2), - kSKIndexInvertedVector(3); - - final int value; - const SKIndexType(this.value); - - static SKIndexType fromValue(int value) => switch (value) { - 0 => kSKIndexUnknown, - 1 => kSKIndexInverted, - 2 => kSKIndexVector, - 3 => kSKIndexInvertedVector, - _ => throw ArgumentError('Unknown value for SKIndexType: $value'), - }; -} - -typedef SKSearchGroupRef = ffi.Pointer<__SKSearchGroup>; -typedef SKSearchOptions = UInt32; -typedef SKSearchRef = ffi.Pointer<__SKSearch>; -typedef SKSearchResultsFilterCallBack = - ffi.Pointer< - ffi.NativeFunction< - Boolean Function( - SKIndexRef inIndex, - SKDocumentRef inDocument, - ffi.Pointer inContext, - ) - > - >; -typedef SKSearchResultsRef = ffi.Pointer<__SKSearchResults>; - -enum SKSearchType { - kSKSearchRanked(0), - kSKSearchBooleanRanked(1), - kSKSearchRequiredRanked(2), - kSKSearchPrefixRanked(3); - - final int value; - const SKSearchType(this.value); - - static SKSearchType fromValue(int value) => switch (value) { - 0 => kSKSearchRanked, - 1 => kSKSearchBooleanRanked, - 2 => kSKSearchRequiredRanked, - 3 => kSKSearchPrefixRanked, - _ => throw ArgumentError('Unknown value for SKSearchType: $value'), - }; -} - -typedef SKSummaryRef = ffi.Pointer<__SKSummary>; - -final class SMPTETime extends ffi.Struct { - @SInt16() - external int mSubframes; - - @SInt16() - external int mSubframeDivisor; - - @UInt32() - external int mCounter; - - @UInt32() - external int mTypeAsInt; - - SMPTETimeType get mType => SMPTETimeType.fromValue(mTypeAsInt); - set mType(SMPTETimeType value) => mTypeAsInt = value.value; - - @UInt32() - external int mFlags; - - @SInt16() - external int mHours; - - @SInt16() - external int mMinutes; - - @SInt16() - external int mSeconds; - - @SInt16() - external int mFrames; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mSubframes, - required int mSubframeDivisor, - required int mCounter, - required SMPTETimeType mType, - required int mFlags, - required int mHours, - required int mMinutes, - required int mSeconds, - required int mFrames, - }) => $allocator() - ..ref.mSubframes = mSubframes - ..ref.mSubframeDivisor = mSubframeDivisor - ..ref.mCounter = mCounter - ..ref.mType = mType - ..ref.mFlags = mFlags - ..ref.mHours = mHours - ..ref.mMinutes = mMinutes - ..ref.mSeconds = mSeconds - ..ref.mFrames = mFrames; -} - -sealed class SMPTETimeFlags { - static const kSMPTETimeUnknown = 0; - static const kSMPTETimeValid = 1; - static const kSMPTETimeRunning = 2; -} - -enum SMPTETimeType { - kSMPTETimeType24(0), - kSMPTETimeType25(1), - kSMPTETimeType30Drop(2), - kSMPTETimeType30(3), - kSMPTETimeType2997(4), - kSMPTETimeType2997Drop(5), - kSMPTETimeType60(6), - kSMPTETimeType5994(7), - kSMPTETimeType60Drop(8), - kSMPTETimeType5994Drop(9), - kSMPTETimeType50(10), - kSMPTETimeType2398(11); - - final int value; - const SMPTETimeType(this.value); - - static SMPTETimeType fromValue(int value) => switch (value) { - 0 => kSMPTETimeType24, - 1 => kSMPTETimeType25, - 2 => kSMPTETimeType30Drop, - 3 => kSMPTETimeType30, - 4 => kSMPTETimeType2997, - 5 => kSMPTETimeType2997Drop, - 6 => kSMPTETimeType60, - 7 => kSMPTETimeType5994, - 8 => kSMPTETimeType60Drop, - 9 => kSMPTETimeType5994Drop, - 10 => kSMPTETimeType50, - 11 => kSMPTETimeType2398, - _ => throw ArgumentError('Unknown value for SMPTETimeType: $value'), - }; -} - -typedef SRefCon = ffi.Pointer; - -enum SSLAuthenticate { - kNeverAuthenticate(0), - kAlwaysAuthenticate(1), - kTryAuthenticate(2); - - final int value; - const SSLAuthenticate(this.value); - - static SSLAuthenticate fromValue(int value) => switch (value) { - 0 => kNeverAuthenticate, - 1 => kAlwaysAuthenticate, - 2 => kTryAuthenticate, - _ => throw ArgumentError('Unknown value for SSLAuthenticate: $value'), - }; -} - -typedef SSLCipherSuite = ffi.Uint16; -typedef DartSSLCipherSuite = int; - -enum SSLCiphersuiteGroup { - kSSLCiphersuiteGroupDefault(0), - kSSLCiphersuiteGroupCompatibility(1), - kSSLCiphersuiteGroupLegacy(2), - kSSLCiphersuiteGroupATS(3), - kSSLCiphersuiteGroupATSCompatibility(4); - - final int value; - const SSLCiphersuiteGroup(this.value); - - static SSLCiphersuiteGroup fromValue(int value) => switch (value) { - 0 => kSSLCiphersuiteGroupDefault, - 1 => kSSLCiphersuiteGroupCompatibility, - 2 => kSSLCiphersuiteGroupLegacy, - 3 => kSSLCiphersuiteGroupATS, - 4 => kSSLCiphersuiteGroupATSCompatibility, - _ => throw ArgumentError('Unknown value for SSLCiphersuiteGroup: $value'), - }; -} - -enum SSLClientCertificateState { - kSSLClientCertNone(0), - kSSLClientCertRequested(1), - kSSLClientCertSent(2), - kSSLClientCertRejected(3); - - final int value; - const SSLClientCertificateState(this.value); - - static SSLClientCertificateState fromValue(int value) => switch (value) { - 0 => kSSLClientCertNone, - 1 => kSSLClientCertRequested, - 2 => kSSLClientCertSent, - 3 => kSSLClientCertRejected, - _ => throw ArgumentError( - 'Unknown value for SSLClientCertificateState: $value', - ), - }; -} - -typedef SSLConnectionRef = ffi.Pointer; - -enum SSLConnectionType { - kSSLStreamType(0), - kSSLDatagramType(1); - - final int value; - const SSLConnectionType(this.value); - - static SSLConnectionType fromValue(int value) => switch (value) { - 0 => kSSLStreamType, - 1 => kSSLDatagramType, - _ => throw ArgumentError('Unknown value for SSLConnectionType: $value'), - }; -} - -final class SSLContext extends ffi.Opaque {} - -typedef SSLContextRef = ffi.Pointer; - -enum SSLProtocol { - kSSLProtocolUnknown(0), - kTLSProtocol1(4), - kTLSProtocol11(7), - kTLSProtocol12(8), - kDTLSProtocol1(9), - kTLSProtocol13(10), - kDTLSProtocol12(11), - kTLSProtocolMaxSupported(999), - kSSLProtocol2(1), - kSSLProtocol3(2), - kSSLProtocol3Only(3), - kTLSProtocol1Only(5), - kSSLProtocolAll(6); - - final int value; - const SSLProtocol(this.value); - - static SSLProtocol fromValue(int value) => switch (value) { - 0 => kSSLProtocolUnknown, - 4 => kTLSProtocol1, - 7 => kTLSProtocol11, - 8 => kTLSProtocol12, - 9 => kDTLSProtocol1, - 10 => kTLSProtocol13, - 11 => kDTLSProtocol12, - 999 => kTLSProtocolMaxSupported, - 1 => kSSLProtocol2, - 2 => kSSLProtocol3, - 3 => kSSLProtocol3Only, - 5 => kTLSProtocol1Only, - 6 => kSSLProtocolAll, - _ => throw ArgumentError('Unknown value for SSLProtocol: $value'), - }; -} - -enum SSLProtocolSide { - kSSLServerSide(0), - kSSLClientSide(1); - - final int value; - const SSLProtocolSide(this.value); - - static SSLProtocolSide fromValue(int value) => switch (value) { - 0 => kSSLServerSide, - 1 => kSSLClientSide, - _ => throw ArgumentError('Unknown value for SSLProtocolSide: $value'), - }; -} - -typedef SSLReadFunc = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - SSLConnectionRef connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ) - > - >; - -enum SSLSessionOption { - kSSLSessionOptionBreakOnServerAuth(0), - kSSLSessionOptionBreakOnCertRequested(1), - kSSLSessionOptionBreakOnClientAuth(2), - kSSLSessionOptionFalseStart(3), - kSSLSessionOptionSendOneByteRecord(4), - kSSLSessionOptionAllowServerIdentityChange(5), - kSSLSessionOptionFallback(6), - kSSLSessionOptionBreakOnClientHello(7), - kSSLSessionOptionAllowRenegotiation(8), - kSSLSessionOptionEnableSessionTickets(9); - - final int value; - const SSLSessionOption(this.value); - - static SSLSessionOption fromValue(int value) => switch (value) { - 0 => kSSLSessionOptionBreakOnServerAuth, - 1 => kSSLSessionOptionBreakOnCertRequested, - 2 => kSSLSessionOptionBreakOnClientAuth, - 3 => kSSLSessionOptionFalseStart, - 4 => kSSLSessionOptionSendOneByteRecord, - 5 => kSSLSessionOptionAllowServerIdentityChange, - 6 => kSSLSessionOptionFallback, - 7 => kSSLSessionOptionBreakOnClientHello, - 8 => kSSLSessionOptionAllowRenegotiation, - 9 => kSSLSessionOptionEnableSessionTickets, - _ => throw ArgumentError('Unknown value for SSLSessionOption: $value'), - }; -} - -enum SSLSessionState { - kSSLIdle(0), - kSSLHandshake(1), - kSSLConnected(2), - kSSLClosed(3), - kSSLAborted(4); - - final int value; - const SSLSessionState(this.value); - - static SSLSessionState fromValue(int value) => switch (value) { - 0 => kSSLIdle, - 1 => kSSLHandshake, - 2 => kSSLConnected, - 3 => kSSLClosed, - 4 => kSSLAborted, - _ => throw ArgumentError('Unknown value for SSLSessionState: $value'), - }; -} - -typedef SSLWriteFunc = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - SSLConnectionRef connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ) - > - >; - -const int SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 17; - -const int SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; - -const int SSL_DHE_DSS_WITH_DES_CBC_SHA = 18; - -const int SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 20; - -const int SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; - -const int SSL_DHE_RSA_WITH_DES_CBC_SHA = 21; - -const int SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 11; - -const int SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; - -const int SSL_DH_DSS_WITH_DES_CBC_SHA = 12; - -const int SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 14; - -const int SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; - -const int SSL_DH_RSA_WITH_DES_CBC_SHA = 15; - -const int SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA = 25; - -const int SSL_DH_anon_EXPORT_WITH_RC4_40_MD5 = 23; - -const int SSL_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; - -const int SSL_DH_anon_WITH_DES_CBC_SHA = 26; - -const int SSL_DH_anon_WITH_RC4_128_MD5 = 24; - -const int SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA = 29; - -const int SSL_FORTEZZA_DMS_WITH_NULL_SHA = 28; - -const int SSL_NO_SUCH_CIPHERSUITE = -1; - -const int SSL_NULL_WITH_NULL_NULL = 0; - -const int SSL_RSA_EXPORT_WITH_DES40_CBC_SHA = 8; - -const int SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 6; - -const int SSL_RSA_EXPORT_WITH_RC4_40_MD5 = 3; - -const int SSL_RSA_WITH_3DES_EDE_CBC_MD5 = -125; - -const int SSL_RSA_WITH_3DES_EDE_CBC_SHA = 10; - -const int SSL_RSA_WITH_DES_CBC_MD5 = -126; - -const int SSL_RSA_WITH_DES_CBC_SHA = 9; - -const int SSL_RSA_WITH_IDEA_CBC_MD5 = -127; - -const int SSL_RSA_WITH_IDEA_CBC_SHA = 7; - -const int SSL_RSA_WITH_NULL_MD5 = 1; - -const int SSL_RSA_WITH_NULL_SHA = 2; - -const int SSL_RSA_WITH_RC2_CBC_MD5 = -128; - -const int SSL_RSA_WITH_RC4_128_MD5 = 4; - -const int SSL_RSA_WITH_RC4_128_SHA = 5; - -typedef STClass = UInt8; - -final class STClassTable extends ffi.Struct { - @UInt16() - external int firstGlyph; - - @UInt16() - external int nGlyphs; - - @ffi.Array.multi([1]) - external ffi.Array classes; -} - -typedef STEntryIndex = UInt8; - -final class STEntryOne extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int offset1; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int offset1, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.offset1 = offset1; -} - -final class STEntryTwo extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int offset1; - - @UInt16() - external int offset2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int offset1, - required int offset2, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.offset1 = offset1 - ..ref.offset2 = offset2; -} - -final class STEntryZero extends ffi.Struct { - @UInt16() - external int newState; - - @UInt16() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags; -} - -final class STHeader extends ffi.Struct { - @UInt8() - external int filler; - - @STClass() - external int nClasses; - - @UInt16() - external int classTableOffset; - - @UInt16() - external int stateArrayOffset; - - @UInt16() - external int entryTableOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int filler, - required int nClasses, - required int classTableOffset, - required int stateArrayOffset, - required int entryTableOffset, - }) => $allocator() - ..ref.filler = filler - ..ref.nClasses = nClasses - ..ref.classTableOffset = classTableOffset - ..ref.stateArrayOffset = stateArrayOffset - ..ref.entryTableOffset = entryTableOffset; -} - -typedef STXClass = UInt16; -typedef STXClassTable = SFNTLookupTable; -typedef STXEntryIndex = UInt16; - -final class STXEntryOne extends ffi.Struct { - @STXStateIndex() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int index1; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int index1, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.index1 = index1; -} - -final class STXEntryTwo extends ffi.Struct { - @STXStateIndex() - external int newState; - - @UInt16() - external int flags; - - @UInt16() - external int index1; - - @UInt16() - external int index2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - required int index1, - required int index2, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags - ..ref.index1 = index1 - ..ref.index2 = index2; -} - -final class STXEntryZero extends ffi.Struct { - @STXStateIndex() - external int newState; - - @UInt16() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int newState, - required int flags, - }) => $allocator() - ..ref.newState = newState - ..ref.flags = flags; -} - -@ffi.Packed(2) -final class STXHeader extends ffi.Struct { - @UInt32() - external int nClasses; - - @UInt32() - external int classTableOffset; - - @UInt32() - external int stateArrayOffset; - - @UInt32() - external int entryTableOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nClasses, - required int classTableOffset, - required int stateArrayOffset, - required int entryTableOffset, - }) => $allocator() - ..ref.nClasses = nClasses - ..ref.classTableOffset = classTableOffset - ..ref.stateArrayOffset = stateArrayOffset - ..ref.entryTableOffset = entryTableOffset; -} - -typedef STXStateIndex = UInt16; - -@ffi.Packed(2) -final class SchedulerInfoRec extends ffi.Struct { - @UInt32() - external int InfoRecSize; - - @ThreadID() - external int CurrentThreadID; - - @ThreadID() - external int SuggestedThreadID; - - @ThreadID() - external int InterruptedCoopThreadID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int InfoRecSize, - required int CurrentThreadID, - required int SuggestedThreadID, - required int InterruptedCoopThreadID, - }) => $allocator() - ..ref.InfoRecSize = InfoRecSize - ..ref.CurrentThreadID = CurrentThreadID - ..ref.SuggestedThreadID = SuggestedThreadID - ..ref.InterruptedCoopThreadID = InterruptedCoopThreadID; -} - -typedef SchedulerInfoRecPtr = ffi.Pointer; -typedef ScriptCode = SInt16; - -@ffi.Packed(2) -final class ScriptCodeRun extends ffi.Struct { - @ByteOffset() - external int offset; - - @ScriptCode() - external int script; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int script, - }) => $allocator() - ..ref.offset = offset - ..ref.script = script; -} - -typedef ScriptCodeRunPtr = ffi.Pointer; -typedef ScriptTokenType = ffi.Short; -typedef DartScriptTokenType = int; -typedef SecACLRef = ffi.Pointer<__SecACL>; - -sealed class SecAccessControlCreateFlags { - static const kSecAccessControlUserPresence = 1; - static const kSecAccessControlBiometryAny = 2; - static const kSecAccessControlTouchIDAny = 2; - static const kSecAccessControlBiometryCurrentSet = 8; - static const kSecAccessControlTouchIDCurrentSet = 8; - static const kSecAccessControlDevicePasscode = 16; - static const kSecAccessControlWatch = 32; - static const kSecAccessControlCompanion = 32; - static const kSecAccessControlOr = 16384; - static const kSecAccessControlAnd = 32768; - static const kSecAccessControlPrivateKeyUsage = 1073741824; - static const kSecAccessControlApplicationPassword = 2147483648; -} - -typedef SecAccessControlRef = ffi.Pointer<__SecAccessControl>; -typedef SecAccessOwnerType = UInt32; -typedef SecAccessRef = ffi.Pointer<__SecAccess>; - -@Deprecated('SecAsn1 is not supported') -final class SecAsn1AlgId extends ffi.Struct { - external SecAsn1Oid algorithm; - - external SecAsn1Item parameters; -} - -typedef SecAsn1Item = cssm_data; -typedef SecAsn1Oid = cssm_data; - -@Deprecated('SecAsn1 is not supported') -final class SecAsn1PubKeyInfo extends ffi.Struct { - external SecAsn1AlgId algorithm; - - external SecAsn1Item subjectPublicKey; -} - -typedef SecAsn1Template = SecAsn1Template_struct; -typedef SecAsn1TemplateChooser = - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg, - Boolean enc, - ffi.Pointer buf, - ffi.Size len, - ffi.Pointer dest, - ) - >; -typedef SecAsn1TemplateChooserPtr = ffi.Pointer; - -final class SecAsn1Template_struct extends ffi.Struct { - @ffi.Uint32() - external int kind; - - @ffi.Uint32() - external int offset; - - external ffi.Pointer sub; - - @ffi.Uint32() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int kind, - required int offset, - required ffi.Pointer sub, - required int size, - }) => $allocator() - ..ref.kind = kind - ..ref.offset = offset - ..ref.sub = sub - ..ref.size = size; -} - -enum SecAuthenticationType { - kSecAuthenticationTypeNTLM(1835824238), - kSecAuthenticationTypeMSN(1634628461), - kSecAuthenticationTypeDPA(1633775716), - kSecAuthenticationTypeRPA(1633775730), - kSecAuthenticationTypeHTTPBasic(1886680168), - kSecAuthenticationTypeHTTPDigest(1685353576), - kSecAuthenticationTypeHTMLForm(1836216166), - kSecAuthenticationTypeDefault(1953261156), - kSecAuthenticationTypeAny(0); - - final int value; - const SecAuthenticationType(this.value); - - static SecAuthenticationType fromValue(int value) => switch (value) { - 1835824238 => kSecAuthenticationTypeNTLM, - 1634628461 => kSecAuthenticationTypeMSN, - 1633775716 => kSecAuthenticationTypeDPA, - 1633775730 => kSecAuthenticationTypeRPA, - 1886680168 => kSecAuthenticationTypeHTTPBasic, - 1685353576 => kSecAuthenticationTypeHTTPDigest, - 1836216166 => kSecAuthenticationTypeHTMLForm, - 1953261156 => kSecAuthenticationTypeDefault, - 0 => kSecAuthenticationTypeAny, - _ => throw ArgumentError('Unknown value for SecAuthenticationType: $value'), - }; -} - -enum SecCSDigestAlgorithm { - kSecCodeSignatureNoHash(0), - kSecCodeSignatureHashSHA1(1), - kSecCodeSignatureHashSHA256(2), - kSecCodeSignatureHashSHA256Truncated(3), - kSecCodeSignatureHashSHA384(4), - kSecCodeSignatureHashSHA512(5); - - final int value; - const SecCSDigestAlgorithm(this.value); - - static SecCSDigestAlgorithm fromValue(int value) => switch (value) { - 0 => kSecCodeSignatureNoHash, - 1 => kSecCodeSignatureHashSHA1, - 2 => kSecCodeSignatureHashSHA256, - 3 => kSecCodeSignatureHashSHA256Truncated, - 4 => kSecCodeSignatureHashSHA384, - 5 => kSecCodeSignatureHashSHA512, - _ => throw ArgumentError('Unknown value for SecCSDigestAlgorithm: $value'), - }; -} - -sealed class SecCSFlags { - static const kSecCSDefaultFlags = 0; - static const kSecCSConsiderExpiration = -2147483648; - static const kSecCSEnforceRevocationChecks = 1073741824; - static const kSecCSNoNetworkAccess = 536870912; - static const kSecCSReportProgress = 268435456; - static const kSecCSCheckTrustedAnchors = 134217728; - static const kSecCSQuickCheck = 67108864; - static const kSecCSApplyEmbeddedPolicy = 33554432; - static const kSecCSStripDisallowedXattrs = 16777216; - static const kSecCSMatchGuestRequirementInKernel = 8388608; -} - -typedef SecCertificateRef = ffi.Pointer<__SecCertificate>; -typedef SecCodeRef = ffi.Pointer<__SecCode>; - -sealed class SecCodeSignatureFlags { - static const kSecCodeSignatureHost = 1; - static const kSecCodeSignatureAdhoc = 2; - static const kSecCodeSignatureForceHard = 256; - static const kSecCodeSignatureForceKill = 512; - static const kSecCodeSignatureForceExpiration = 1024; - static const kSecCodeSignatureRestrict = 2048; - static const kSecCodeSignatureEnforcement = 4096; - static const kSecCodeSignatureLibraryValidation = 8192; - static const kSecCodeSignatureRuntime = 65536; - static const kSecCodeSignatureLinkerSigned = 131072; -} - -sealed class SecCodeStatus { - static const kSecCodeStatusValid = 1; - static const kSecCodeStatusHard = 256; - static const kSecCodeStatusKill = 512; - static const kSecCodeStatusDebugged = 268435456; - static const kSecCodeStatusPlatform = 67108864; -} - -@Deprecated('No longer supported') -enum SecCredentialType { - kSecCredentialTypeDefault(0), - kSecCredentialTypeWithUI(1), - kSecCredentialTypeNoUI(2); - - final int value; - const SecCredentialType(this.value); - - static SecCredentialType fromValue(int value) => switch (value) { - 0 => kSecCredentialTypeDefault, - 1 => kSecCredentialTypeWithUI, - 2 => kSecCredentialTypeNoUI, - _ => throw ArgumentError('Unknown value for SecCredentialType: $value'), - }; -} - -enum SecExternalFormat { - kSecFormatUnknown(0), - kSecFormatOpenSSL(1), - kSecFormatSSH(2), - kSecFormatBSAFE(3), - kSecFormatRawKey(4), - kSecFormatWrappedPKCS8(5), - kSecFormatWrappedOpenSSL(6), - kSecFormatWrappedSSH(7), - kSecFormatWrappedLSH(8), - kSecFormatX509Cert(9), - kSecFormatPEMSequence(10), - kSecFormatPKCS7(11), - kSecFormatPKCS12(12), - kSecFormatNetscapeCertSequence(13), - kSecFormatSSHv2(14); - - final int value; - const SecExternalFormat(this.value); - - static SecExternalFormat fromValue(int value) => switch (value) { - 0 => kSecFormatUnknown, - 1 => kSecFormatOpenSSL, - 2 => kSecFormatSSH, - 3 => kSecFormatBSAFE, - 4 => kSecFormatRawKey, - 5 => kSecFormatWrappedPKCS8, - 6 => kSecFormatWrappedOpenSSL, - 7 => kSecFormatWrappedSSH, - 8 => kSecFormatWrappedLSH, - 9 => kSecFormatX509Cert, - 10 => kSecFormatPEMSequence, - 11 => kSecFormatPKCS7, - 12 => kSecFormatPKCS12, - 13 => kSecFormatNetscapeCertSequence, - 14 => kSecFormatSSHv2, - _ => throw ArgumentError('Unknown value for SecExternalFormat: $value'), - }; -} - -enum SecExternalItemType { - kSecItemTypeUnknown(0), - kSecItemTypePrivateKey(1), - kSecItemTypePublicKey(2), - kSecItemTypeSessionKey(3), - kSecItemTypeCertificate(4), - kSecItemTypeAggregate(5); - - final int value; - const SecExternalItemType(this.value); - - static SecExternalItemType fromValue(int value) => switch (value) { - 0 => kSecItemTypeUnknown, - 1 => kSecItemTypePrivateKey, - 2 => kSecItemTypePublicKey, - 3 => kSecItemTypeSessionKey, - 4 => kSecItemTypeCertificate, - 5 => kSecItemTypeAggregate, - _ => throw ArgumentError('Unknown value for SecExternalItemType: $value'), - }; -} - -typedef SecGroupTransformRef = CFTypeRef; -typedef SecGuestRef = u_int32_t; -typedef SecIdentityRef = ffi.Pointer<__SecIdentity>; -typedef SecIdentitySearchRef = ffi.Pointer; - -enum SecItemAttr { - kSecCreationDateItemAttr(1667522932), - kSecModDateItemAttr(1835295092), - kSecDescriptionItemAttr(1684370275), - kSecCommentItemAttr(1768123764), - kSecCreatorItemAttr(1668445298), - kSecTypeItemAttr(1954115685), - kSecScriptCodeItemAttr(1935897200), - kSecLabelItemAttr(1818321516), - kSecInvisibleItemAttr(1768846953), - kSecNegativeItemAttr(1852139361), - kSecCustomIconItemAttr(1668641641), - kSecAccountItemAttr(1633903476), - kSecServiceItemAttr(1937138533), - kSecGenericItemAttr(1734700641), - kSecSecurityDomainItemAttr(1935961454), - kSecServerItemAttr(1936881266), - kSecAuthenticationTypeItemAttr(1635023216), - kSecPortItemAttr(1886351988), - kSecPathItemAttr(1885434984), - kSecVolumeItemAttr(1986817381), - kSecAddressItemAttr(1633969266), - kSecSignatureItemAttr(1936943463), - kSecProtocolItemAttr(1886675820), - kSecCertificateType(1668577648), - kSecCertificateEncoding(1667591779), - kSecCrlType(1668445296), - kSecCrlEncoding(1668443747), - kSecAlias(1634494835); - - final int value; - const SecItemAttr(this.value); - - static SecItemAttr fromValue(int value) => switch (value) { - 1667522932 => kSecCreationDateItemAttr, - 1835295092 => kSecModDateItemAttr, - 1684370275 => kSecDescriptionItemAttr, - 1768123764 => kSecCommentItemAttr, - 1668445298 => kSecCreatorItemAttr, - 1954115685 => kSecTypeItemAttr, - 1935897200 => kSecScriptCodeItemAttr, - 1818321516 => kSecLabelItemAttr, - 1768846953 => kSecInvisibleItemAttr, - 1852139361 => kSecNegativeItemAttr, - 1668641641 => kSecCustomIconItemAttr, - 1633903476 => kSecAccountItemAttr, - 1937138533 => kSecServiceItemAttr, - 1734700641 => kSecGenericItemAttr, - 1935961454 => kSecSecurityDomainItemAttr, - 1936881266 => kSecServerItemAttr, - 1635023216 => kSecAuthenticationTypeItemAttr, - 1886351988 => kSecPortItemAttr, - 1885434984 => kSecPathItemAttr, - 1986817381 => kSecVolumeItemAttr, - 1633969266 => kSecAddressItemAttr, - 1936943463 => kSecSignatureItemAttr, - 1886675820 => kSecProtocolItemAttr, - 1668577648 => kSecCertificateType, - 1667591779 => kSecCertificateEncoding, - 1668445296 => kSecCrlType, - 1668443747 => kSecCrlEncoding, - 1634494835 => kSecAlias, - _ => throw ArgumentError('Unknown value for SecItemAttr: $value'), - }; -} - -enum SecItemClass { - kSecInternetPasswordItemClass(1768842612), - kSecGenericPasswordItemClass(1734700656), - kSecAppleSharePasswordItemClass(1634953328), - kSecCertificateItemClass(-2147479552), - kSecPublicKeyItemClass(15), - kSecPrivateKeyItemClass(16), - kSecSymmetricKeyItemClass(17); - - final int value; - const SecItemClass(this.value); - - static SecItemClass fromValue(int value) => switch (value) { - 1768842612 => kSecInternetPasswordItemClass, - 1734700656 => kSecGenericPasswordItemClass, - 1634953328 => kSecAppleSharePasswordItemClass, - -2147479552 => kSecCertificateItemClass, - 15 => kSecPublicKeyItemClass, - 16 => kSecPrivateKeyItemClass, - 17 => kSecSymmetricKeyItemClass, - _ => throw ArgumentError('Unknown value for SecItemClass: $value'), - }; -} - -sealed class SecItemImportExportFlags { - static const kSecItemPemArmour = 1; -} - -final class SecItemImportExportKeyParameters extends ffi.Struct { - @ffi.Uint32() - external int version; - - @ffi.Uint32() - external int flags; - - external CFTypeRef passphrase; - - external CFStringRef alertTitle; - - external CFStringRef alertPrompt; - - external SecAccessRef accessRef; - - external CFArrayRef keyUsage; - - external CFArrayRef keyAttributes; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int flags, - required CFTypeRef passphrase, - required CFStringRef alertTitle, - required CFStringRef alertPrompt, - required SecAccessRef accessRef, - required CFArrayRef keyUsage, - required CFArrayRef keyAttributes, - }) => $allocator() - ..ref.version = version - ..ref.flags = flags - ..ref.passphrase = passphrase - ..ref.alertTitle = alertTitle - ..ref.alertPrompt = alertPrompt - ..ref.accessRef = accessRef - ..ref.keyUsage = keyUsage - ..ref.keyAttributes = keyAttributes; -} - -typedef SecKeyAlgorithm = CFStringRef; -typedef SecKeyGeneratePairBlock = ffi.Pointer; -typedef DartSecKeyGeneratePairBlock = - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecKey>, - ffi.Pointer<__SecKey>, - ffi.Pointer<__CFError>, - ) - >; - -sealed class SecKeyImportExportFlags { - static const kSecKeyImportOnlyOne = 1; - static const kSecKeySecurePassphrase = 2; - static const kSecKeyNoAccessControl = 4; -} - -final class SecKeyImportExportParameters extends ffi.Struct { - @ffi.Uint32() - external int version; - - @ffi.Uint32() - external int flags; - - external CFTypeRef passphrase; - - external CFStringRef alertTitle; - - external CFStringRef alertPrompt; - - external SecAccessRef accessRef; - - @CSSM_KEYUSE() - external int keyUsage; - - @CSSM_KEYATTR_FLAGS() - external int keyAttributes; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int flags, - required CFTypeRef passphrase, - required CFStringRef alertTitle, - required CFStringRef alertPrompt, - required SecAccessRef accessRef, - required int keyUsage, - required int keyAttributes, - }) => $allocator() - ..ref.version = version - ..ref.flags = flags - ..ref.passphrase = passphrase - ..ref.alertTitle = alertTitle - ..ref.alertPrompt = alertPrompt - ..ref.accessRef = accessRef - ..ref.keyUsage = keyUsage - ..ref.keyAttributes = keyAttributes; -} - -typedef SecKeyKeyExchangeParameter = CFStringRef; - -enum SecKeyOperationType { - kSecKeyOperationTypeSign(0), - kSecKeyOperationTypeVerify(1), - kSecKeyOperationTypeEncrypt(2), - kSecKeyOperationTypeDecrypt(3), - kSecKeyOperationTypeKeyExchange(4); - - final int value; - const SecKeyOperationType(this.value); - - static SecKeyOperationType fromValue(int value) => switch (value) { - 0 => kSecKeyOperationTypeSign, - 1 => kSecKeyOperationTypeVerify, - 2 => kSecKeyOperationTypeEncrypt, - 3 => kSecKeyOperationTypeDecrypt, - 4 => kSecKeyOperationTypeKeyExchange, - _ => throw ArgumentError('Unknown value for SecKeyOperationType: $value'), - }; -} - -typedef SecKeyRef = ffi.Pointer<__SecKey>; - -@Deprecated('No longer supported') -enum SecKeySizes { - kSecDefaultKeySize(0), - kSec3DES192(192), - kSecAES128(128), - kSecAES256(256), - kSecp384r1(384), - kSecp521r1(521), - kSecRSAMin(1024), - kSecRSAMax(4096); - - static const kSecAES192 = kSec3DES192; - static const kSecp192r1 = kSec3DES192; - static const kSecp256r1 = kSecAES256; - - final int value; - const SecKeySizes(this.value); - - static SecKeySizes fromValue(int value) => switch (value) { - 0 => kSecDefaultKeySize, - 192 => kSec3DES192, - 128 => kSecAES128, - 256 => kSecAES256, - 384 => kSecp384r1, - 521 => kSecp521r1, - 1024 => kSecRSAMin, - 4096 => kSecRSAMax, - _ => throw ArgumentError('Unknown value for SecKeySizes: $value'), - }; - - @override - String toString() { - if (this == kSec3DES192) - return "SecKeySizes.kSec3DES192, SecKeySizes.kSecAES192, SecKeySizes.kSecp192r1"; - if (this == kSecAES256) - return "SecKeySizes.kSecAES256, SecKeySizes.kSecp256r1"; - return super.toString(); - } -} - -sealed class SecKeyUsage { - static const kSecKeyUsageUnspecified = 0; - static const kSecKeyUsageDigitalSignature = 1; - static const kSecKeyUsageNonRepudiation = 2; - static const kSecKeyUsageContentCommitment = 2; - static const kSecKeyUsageKeyEncipherment = 4; - static const kSecKeyUsageDataEncipherment = 8; - static const kSecKeyUsageKeyAgreement = 16; - static const kSecKeyUsageKeyCertSign = 32; - static const kSecKeyUsageCRLSign = 64; - static const kSecKeyUsageEncipherOnly = 128; - static const kSecKeyUsageDecipherOnly = 256; - static const kSecKeyUsageCritical = -2147483648; - static const kSecKeyUsageAll = 2147483647; -} - -typedef SecKeychainAttrType = OSType; - -final class SecKeychainAttribute extends ffi.Struct { - @SecKeychainAttrType() - external int tag; - - @UInt32() - external int length; - - external ffi.Pointer data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tag, - required int length, - required ffi.Pointer data, - }) => $allocator() - ..ref.tag = tag - ..ref.length = length - ..ref.data = data; -} - -final class SecKeychainAttributeInfo extends ffi.Struct { - @UInt32() - external int count; - - external ffi.Pointer tag; - - external ffi.Pointer format; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required ffi.Pointer tag, - required ffi.Pointer format, - }) => $allocator() - ..ref.count = count - ..ref.tag = tag - ..ref.format = format; -} - -final class SecKeychainAttributeList extends ffi.Struct { - @UInt32() - external int count; - - external ffi.Pointer attr; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required ffi.Pointer attr, - }) => $allocator() - ..ref.count = count - ..ref.attr = attr; -} - -typedef SecKeychainAttributePtr = ffi.Pointer; -typedef SecKeychainCallback = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - UInt32 keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ) - > - >; - -final class SecKeychainCallbackInfo extends ffi.Struct { - @UInt32() - external int version; - - external SecKeychainItemRef item; - - external SecKeychainRef keychain; - - @pid_t() - external int pid; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required SecKeychainItemRef item, - required SecKeychainRef keychain, - required int pid, - }) => $allocator() - ..ref.version = version - ..ref.item = item - ..ref.keychain = keychain - ..ref.pid = pid; -} - -enum SecKeychainEvent { - kSecLockEvent(1), - kSecUnlockEvent(2), - kSecAddEvent(3), - kSecDeleteEvent(4), - kSecUpdateEvent(5), - kSecPasswordChangedEvent(6), - kSecDefaultChangedEvent(9), - kSecDataAccessEvent(10), - kSecKeychainListChangedEvent(11), - kSecTrustSettingsChangedEvent(12); - - final int value; - const SecKeychainEvent(this.value); - - static SecKeychainEvent fromValue(int value) => switch (value) { - 1 => kSecLockEvent, - 2 => kSecUnlockEvent, - 3 => kSecAddEvent, - 4 => kSecDeleteEvent, - 5 => kSecUpdateEvent, - 6 => kSecPasswordChangedEvent, - 9 => kSecDefaultChangedEvent, - 10 => kSecDataAccessEvent, - 11 => kSecKeychainListChangedEvent, - 12 => kSecTrustSettingsChangedEvent, - _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), - }; -} - -sealed class SecKeychainEventMask { - static const kSecLockEventMask = 2; - static const kSecUnlockEventMask = 4; - static const kSecAddEventMask = 8; - static const kSecDeleteEventMask = 16; - static const kSecUpdateEventMask = 32; - static const kSecPasswordChangedEventMask = 64; - static const kSecDefaultChangedEventMask = 512; - static const kSecDataAccessEventMask = 1024; - static const kSecKeychainListChangedMask = 2048; - static const kSecTrustSettingsChangedEventMask = 4096; - static const kSecEveryEventMask = -1; -} - -typedef SecKeychainItemRef = ffi.Pointer<__SecKeychainItem>; - -sealed class SecKeychainPromptSelector { - static const kSecKeychainPromptRequirePassphase = 1; - static const kSecKeychainPromptUnsigned = 16; - static const kSecKeychainPromptUnsignedAct = 32; - static const kSecKeychainPromptInvalid = 64; - static const kSecKeychainPromptInvalidAct = 128; -} - -typedef SecKeychainRef = ffi.Pointer<__SecKeychain>; -typedef SecKeychainSearchRef = ffi.Pointer<__SecKeychainSearch>; - -final class SecKeychainSettings extends ffi.Struct { - @UInt32() - external int version; - - @Boolean() - external int lockOnSleep; - - @Boolean() - external int useLockInterval; - - @UInt32() - external int lockInterval; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int lockOnSleep, - required int useLockInterval, - required int lockInterval, - }) => $allocator() - ..ref.version = version - ..ref.lockOnSleep = lockOnSleep - ..ref.useLockInterval = useLockInterval - ..ref.lockInterval = lockInterval; -} - -typedef SecKeychainStatus = UInt32; -typedef SecMessageBlock = ffi.Pointer; -typedef DartSecMessageBlock = - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer<__CFError>, - ffi.UnsignedChar, - ) - >; - -@Deprecated('Replaced with SecKeyAlgorithm') -sealed class SecPadding { - static const kSecPaddingNone = 0; - static const kSecPaddingPKCS1 = 1; - static const kSecPaddingOAEP = 2; - static const kSecPaddingSigRaw = 16384; - static const kSecPaddingPKCS1MD2 = 32768; - static const kSecPaddingPKCS1MD5 = 32769; - static const kSecPaddingPKCS1SHA1 = 32770; - static const kSecPaddingPKCS1SHA224 = 32771; - static const kSecPaddingPKCS1SHA256 = 32772; - static const kSecPaddingPKCS1SHA384 = 32773; - static const kSecPaddingPKCS1SHA512 = 32774; -} - -typedef SecPasswordRef = ffi.Pointer<__SecPassword>; -typedef SecPolicyRef = ffi.Pointer<__SecPolicy>; -typedef SecPolicySearchRef = ffi.Pointer; - -enum SecPreferencesDomain { - kSecPreferencesDomainUser(0), - kSecPreferencesDomainSystem(1), - kSecPreferencesDomainCommon(2), - kSecPreferencesDomainDynamic(3); - - final int value; - const SecPreferencesDomain(this.value); - - static SecPreferencesDomain fromValue(int value) => switch (value) { - 0 => kSecPreferencesDomainUser, - 1 => kSecPreferencesDomainSystem, - 2 => kSecPreferencesDomainCommon, - 3 => kSecPreferencesDomainDynamic, - _ => throw ArgumentError('Unknown value for SecPreferencesDomain: $value'), - }; -} - -enum SecProtocolType { - kSecProtocolTypeFTP(1718906912), - kSecProtocolTypeFTPAccount(1718906977), - kSecProtocolTypeHTTP(1752462448), - kSecProtocolTypeIRC(1769104160), - kSecProtocolTypeNNTP(1852732528), - kSecProtocolTypePOP3(1886351411), - kSecProtocolTypeSMTP(1936553072), - kSecProtocolTypeSOCKS(1936685088), - kSecProtocolTypeIMAP(1768776048), - kSecProtocolTypeLDAP(1818517872), - kSecProtocolTypeAppleTalk(1635019883), - kSecProtocolTypeAFP(1634103328), - kSecProtocolTypeTelnet(1952803950), - kSecProtocolTypeSSH(1936943136), - kSecProtocolTypeFTPS(1718906995), - kSecProtocolTypeHTTPS(1752461427), - kSecProtocolTypeHTTPProxy(1752461432), - kSecProtocolTypeHTTPSProxy(1752462200), - kSecProtocolTypeFTPProxy(1718907000), - kSecProtocolTypeCIFS(1667851891), - kSecProtocolTypeSMB(1936548384), - kSecProtocolTypeRTSP(1920234352), - kSecProtocolTypeRTSPProxy(1920234360), - kSecProtocolTypeDAAP(1684103536), - kSecProtocolTypeEPPC(1701867619), - kSecProtocolTypeIPP(1768976416), - kSecProtocolTypeNNTPS(1853124723), - kSecProtocolTypeLDAPS(1818521715), - kSecProtocolTypeTelnetS(1952803955), - kSecProtocolTypeIMAPS(1768779891), - kSecProtocolTypeIRCS(1769104243), - kSecProtocolTypePOP3S(1886351475), - kSecProtocolTypeCVSpserver(1668707184), - kSecProtocolTypeSVN(1937141280), - kSecProtocolTypeAny(0); - - final int value; - const SecProtocolType(this.value); - - static SecProtocolType fromValue(int value) => switch (value) { - 1718906912 => kSecProtocolTypeFTP, - 1718906977 => kSecProtocolTypeFTPAccount, - 1752462448 => kSecProtocolTypeHTTP, - 1769104160 => kSecProtocolTypeIRC, - 1852732528 => kSecProtocolTypeNNTP, - 1886351411 => kSecProtocolTypePOP3, - 1936553072 => kSecProtocolTypeSMTP, - 1936685088 => kSecProtocolTypeSOCKS, - 1768776048 => kSecProtocolTypeIMAP, - 1818517872 => kSecProtocolTypeLDAP, - 1635019883 => kSecProtocolTypeAppleTalk, - 1634103328 => kSecProtocolTypeAFP, - 1952803950 => kSecProtocolTypeTelnet, - 1936943136 => kSecProtocolTypeSSH, - 1718906995 => kSecProtocolTypeFTPS, - 1752461427 => kSecProtocolTypeHTTPS, - 1752461432 => kSecProtocolTypeHTTPProxy, - 1752462200 => kSecProtocolTypeHTTPSProxy, - 1718907000 => kSecProtocolTypeFTPProxy, - 1667851891 => kSecProtocolTypeCIFS, - 1936548384 => kSecProtocolTypeSMB, - 1920234352 => kSecProtocolTypeRTSP, - 1920234360 => kSecProtocolTypeRTSPProxy, - 1684103536 => kSecProtocolTypeDAAP, - 1701867619 => kSecProtocolTypeEPPC, - 1768976416 => kSecProtocolTypeIPP, - 1853124723 => kSecProtocolTypeNNTPS, - 1818521715 => kSecProtocolTypeLDAPS, - 1952803955 => kSecProtocolTypeTelnetS, - 1768779891 => kSecProtocolTypeIMAPS, - 1769104243 => kSecProtocolTypeIRCS, - 1886351475 => kSecProtocolTypePOP3S, - 1668707184 => kSecProtocolTypeCVSpserver, - 1937141280 => kSecProtocolTypeSVN, - 0 => kSecProtocolTypeAny, - _ => throw ArgumentError('Unknown value for SecProtocolType: $value'), - }; -} - -typedef SecRandomRef = ffi.Pointer<__SecRandom>; -typedef SecRequirementRef = ffi.Pointer<__SecRequirement>; - -enum SecRequirementType { - kSecHostRequirementType(1), - kSecGuestRequirementType(2), - kSecDesignatedRequirementType(3), - kSecLibraryRequirementType(4), - kSecPluginRequirementType(5), - kSecInvalidRequirementType(6); - - static const kSecRequirementTypeCount = kSecInvalidRequirementType; - - final int value; - const SecRequirementType(this.value); - - static SecRequirementType fromValue(int value) => switch (value) { - 1 => kSecHostRequirementType, - 2 => kSecGuestRequirementType, - 3 => kSecDesignatedRequirementType, - 4 => kSecLibraryRequirementType, - 5 => kSecPluginRequirementType, - 6 => kSecInvalidRequirementType, - _ => throw ArgumentError('Unknown value for SecRequirementType: $value'), - }; - - @override - String toString() { - if (this == kSecInvalidRequirementType) - return "SecRequirementType.kSecInvalidRequirementType, SecRequirementType.kSecRequirementTypeCount"; - return super.toString(); - } -} - -typedef SecStaticCodeRef = ffi.Pointer<__SecCode>; -typedef SecTaskRef = ffi.Pointer<__SecTask>; -typedef SecTransformActionBlock = ffi.Pointer; -typedef DartSecTransformActionBlock = - objc.ObjCBlock Function()>; -typedef SecTransformAttributeActionBlock = ffi.Pointer; -typedef DartSecTransformAttributeActionBlock = - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >; -typedef SecTransformAttributeRef = CFTypeRef; -typedef SecTransformCreateFP = - ffi.Pointer< - ffi.NativeFunction< - SecTransformInstanceBlock Function( - CFStringRef name, - SecTransformRef newTransform, - SecTransformImplementationRef ref, - ) - > - >; -typedef SecTransformDataBlock = ffi.Pointer; -typedef DartSecTransformDataBlock = - objc.ObjCBlock Function(ffi.Pointer)>; -typedef SecTransformImplementationRef = - ffi.Pointer; -typedef SecTransformInstanceBlock = ffi.Pointer; -typedef DartSecTransformInstanceBlock = - objc.ObjCBlock Function()>; - -@Deprecated('SecTransform is no longer supported') -enum SecTransformMetaAttributeType { - kSecTransformMetaAttributeValue(0), - kSecTransformMetaAttributeName(1), - kSecTransformMetaAttributeRef(2), - kSecTransformMetaAttributeRequired(3), - kSecTransformMetaAttributeRequiresOutboundConnection(4), - kSecTransformMetaAttributeDeferred(5), - kSecTransformMetaAttributeStream(6), - kSecTransformMetaAttributeCanCycle(7), - kSecTransformMetaAttributeExternalize(8), - kSecTransformMetaAttributeHasOutboundConnections(9), - kSecTransformMetaAttributeHasInboundConnection(10); - - final int value; - const SecTransformMetaAttributeType(this.value); - - static SecTransformMetaAttributeType fromValue(int value) => switch (value) { - 0 => kSecTransformMetaAttributeValue, - 1 => kSecTransformMetaAttributeName, - 2 => kSecTransformMetaAttributeRef, - 3 => kSecTransformMetaAttributeRequired, - 4 => kSecTransformMetaAttributeRequiresOutboundConnection, - 5 => kSecTransformMetaAttributeDeferred, - 6 => kSecTransformMetaAttributeStream, - 7 => kSecTransformMetaAttributeCanCycle, - 8 => kSecTransformMetaAttributeExternalize, - 9 => kSecTransformMetaAttributeHasOutboundConnections, - 10 => kSecTransformMetaAttributeHasInboundConnection, - _ => throw ArgumentError( - 'Unknown value for SecTransformMetaAttributeType: $value', - ), - }; -} - -typedef SecTransformRef = CFTypeRef; -typedef SecTransformStringOrAttributeRef = CFTypeRef; -typedef SecTrustCallback = ffi.Pointer; -typedef DartSecTrustCallback = - objc.ObjCBlock, ffi.Uint32)>; - -sealed class SecTrustOptionFlags { - static const kSecTrustOptionAllowExpired = 1; - static const kSecTrustOptionLeafIsCA = 2; - static const kSecTrustOptionFetchIssuerFromNet = 4; - static const kSecTrustOptionAllowExpiredRoot = 8; - static const kSecTrustOptionRequireRevPerCert = 16; - static const kSecTrustOptionUseTrustSettings = 32; - static const kSecTrustOptionImplicitAnchors = 64; -} - -typedef SecTrustRef = ffi.Pointer<__SecTrust>; - -enum SecTrustResultType { - kSecTrustResultInvalid(0), - kSecTrustResultProceed(1), - kSecTrustResultConfirm(2), - kSecTrustResultDeny(3), - kSecTrustResultUnspecified(4), - kSecTrustResultRecoverableTrustFailure(5), - kSecTrustResultFatalTrustFailure(6), - kSecTrustResultOtherError(7); - - final int value; - const SecTrustResultType(this.value); - - static SecTrustResultType fromValue(int value) => switch (value) { - 0 => kSecTrustResultInvalid, - 1 => kSecTrustResultProceed, - 2 => kSecTrustResultConfirm, - 3 => kSecTrustResultDeny, - 4 => kSecTrustResultUnspecified, - 5 => kSecTrustResultRecoverableTrustFailure, - 6 => kSecTrustResultFatalTrustFailure, - 7 => kSecTrustResultOtherError, - _ => throw ArgumentError('Unknown value for SecTrustResultType: $value'), - }; -} - -enum SecTrustSettingsDomain { - kSecTrustSettingsDomainUser(0), - kSecTrustSettingsDomainAdmin(1), - kSecTrustSettingsDomainSystem(2); - - final int value; - const SecTrustSettingsDomain(this.value); - - static SecTrustSettingsDomain fromValue(int value) => switch (value) { - 0 => kSecTrustSettingsDomainUser, - 1 => kSecTrustSettingsDomainAdmin, - 2 => kSecTrustSettingsDomainSystem, - _ => throw ArgumentError( - 'Unknown value for SecTrustSettingsDomain: $value', - ), - }; -} - -sealed class SecTrustSettingsKeyUsage { - static const kSecTrustSettingsKeyUseSignature = 1; - static const kSecTrustSettingsKeyUseEnDecryptData = 2; - static const kSecTrustSettingsKeyUseEnDecryptKey = 4; - static const kSecTrustSettingsKeyUseSignCert = 8; - static const kSecTrustSettingsKeyUseSignRevocation = 16; - static const kSecTrustSettingsKeyUseKeyExchange = 32; - static const kSecTrustSettingsKeyUseAny = -1; -} - -enum SecTrustSettingsResult { - kSecTrustSettingsResultInvalid(0), - kSecTrustSettingsResultTrustRoot(1), - kSecTrustSettingsResultTrustAsRoot(2), - kSecTrustSettingsResultDeny(3), - kSecTrustSettingsResultUnspecified(4); - - final int value; - const SecTrustSettingsResult(this.value); - - static SecTrustSettingsResult fromValue(int value) => switch (value) { - 0 => kSecTrustSettingsResultInvalid, - 1 => kSecTrustSettingsResultTrustRoot, - 2 => kSecTrustSettingsResultTrustAsRoot, - 3 => kSecTrustSettingsResultDeny, - 4 => kSecTrustSettingsResultUnspecified, - _ => throw ArgumentError( - 'Unknown value for SecTrustSettingsResult: $value', - ), - }; -} - -typedef SecTrustWithErrorCallback = ffi.Pointer; -typedef DartSecTrustWithErrorCallback = - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer<__SecTrust>, - ffi.Bool, - ffi.Pointer<__CFError>, - ) - >; -typedef SecTrustedApplicationRef = ffi.Pointer<__SecTrustedApplication>; -typedef SecuritySessionId = UInt32; -typedef SelectorFunctionProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSErr Function(OSType selector, ffi.Pointer response) - > - >; -typedef SelectorFunctionUPP = SelectorFunctionProcPtr; - -sealed class SessionAttributeBits { - static const sessionIsRoot = 1; - static const sessionHasGraphicAccess = 16; - static const sessionHasTTY = 32; - static const sessionIsRemote = 4096; -} - -sealed class SessionCreationFlags { - static const sessionKeepCurrentBootstrap = 32768; -} - -typedef ShortFixed = ffi.Short; -typedef DartShortFixed = int; -typedef ShortFixedPtr = ffi.Pointer; -typedef SignedByte = SInt8; -typedef Size = ffi.Long; -typedef DartSize = int; - -@ffi.Packed(2) -final class SizeResourceRec extends ffi.Struct { - @UInt16() - external int flags; - - @UInt32() - external int preferredHeapSize; - - @UInt32() - external int minimumHeapSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - required int preferredHeapSize, - required int minimumHeapSize, - }) => $allocator() - ..ref.flags = flags - ..ref.preferredHeapSize = preferredHeapSize - ..ref.minimumHeapSize = minimumHeapSize; -} - -typedef SizeResourceRecHandle = ffi.Pointer; -typedef SizeResourceRecPtr = ffi.Pointer; -typedef SleepQProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Long message, SleepQRecPtr qRecPtr) - > - >; - -@ffi.Packed(2) -final class SleepQRec extends ffi.Struct { - external SleepQRecPtr sleepQLink; - - @ffi.Short() - external int sleepQType$1; - - external SleepQUPP sleepQProc; - - @ffi.Short() - external int sleepQFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required SleepQRecPtr sleepQLink, - required int sleepQType$1, - required SleepQUPP sleepQProc, - required int sleepQFlags, - }) => $allocator() - ..ref.sleepQLink = sleepQLink - ..ref.sleepQType$1 = sleepQType$1 - ..ref.sleepQProc = sleepQProc - ..ref.sleepQFlags = sleepQFlags; -} - -typedef SleepQRecPtr = ffi.Pointer; -typedef SleepQUPP = SleepQProcPtr; - -const int SlpTypeErr = -5; - -@ffi.Packed(2) -final class SoundDataChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @UInt32() - external int offset; - - @UInt32() - external int blockSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ckID, - required int ckSize, - required int offset, - required int blockSize, - }) => $allocator() - ..ref.ckID = ckID - ..ref.ckSize = ckSize - ..ref.offset = offset - ..ref.blockSize = blockSize; -} - -typedef SoundDataChunkPtr = ffi.Pointer; - -const int SoundDataID = 1397968452; - -typedef SpeechChannel = ffi.Pointer; - -@ffi.Packed(2) -final class SpeechChannelRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef SpeechDoneProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef SpeechDoneUPP = SpeechDoneProcPtr; -typedef SpeechErrorCFProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - CFErrorRef theError, - ) - > - >; - -@ffi.Packed(2) -final class SpeechErrorInfo extends ffi.Struct { - @SInt16() - external int count; - - @OSErr() - external int oldest; - - @ffi.Long() - external int oldPos; - - @OSErr() - external int newest; - - @ffi.Long() - external int newPos; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required int oldest, - required int oldPos, - required int newest, - required int newPos, - }) => $allocator() - ..ref.count = count - ..ref.oldest = oldest - ..ref.oldPos = oldPos - ..ref.newest = newest - ..ref.newPos = newPos; -} - -typedef SpeechErrorProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - OSErr theError, - ffi.Long bytePos, - ) - > - >; -typedef SpeechErrorUPP = SpeechErrorProcPtr; -typedef SpeechPhonemeProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - SInt16 phonemeOpcode, - ) - > - >; -typedef SpeechPhonemeUPP = SpeechPhonemeProcPtr; - -@ffi.Packed(2) -final class SpeechStatusInfo extends ffi.Struct { - @Boolean() - external int outputBusy; - - @Boolean() - external int outputPaused; - - @ffi.Long() - external int inputBytesLeft; - - @SInt16() - external int phonemeCode; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int outputBusy, - required int outputPaused, - required int inputBytesLeft, - required int phonemeCode, - }) => $allocator() - ..ref.outputBusy = outputBusy - ..ref.outputPaused = outputPaused - ..ref.inputBytesLeft = inputBytesLeft - ..ref.phonemeCode = phonemeCode; -} - -typedef SpeechSyncProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - OSType syncMessage, - ) - > - >; -typedef SpeechSyncUPP = SpeechSyncProcPtr; -typedef SpeechTextDoneProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - ffi.Pointer> nextBuf, - ffi.Pointer byteLen, - ffi.Pointer controlFlags, - ) - > - >; -typedef SpeechTextDoneUPP = SpeechTextDoneProcPtr; - -@ffi.Packed(2) -final class SpeechVersionInfo extends ffi.Struct { - @OSType() - external int synthType; - - @OSType() - external int synthSubType; - - @OSType() - external int synthManufacturer; - - @SInt32() - external int synthFlags; - - external NumVersion synthVersion; -} - -typedef SpeechWordCFProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - CFStringRef aString, - CFRange wordRange, - ) - > - >; -typedef SpeechWordProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - SpeechChannel chan, - SRefCon refCon, - ffi.UnsignedLong wordPos, - UInt16 wordLen, - ) - > - >; -typedef SpeechWordUPP = SpeechWordProcPtr; - -@ffi.Packed(2) -final class SpeechXtndData extends ffi.Struct { - @OSType() - external int synthCreator; - - @ffi.Array.multi([2]) - external ffi.Array synthData; -} - -typedef String2DateStatus = StringToDateStatus; -typedef StringHandle = ffi.Pointer; -typedef StringPtr = ffi.Pointer; -typedef StringToDateStatus = ffi.Short; -typedef DartStringToDateStatus = int; -typedef Style = ffi.UnsignedChar; -typedef DartStyle = int; -typedef StyleField = Style; -typedef StyleParameter = ffi.Short; -typedef DartStyleParameter = int; - -@ffi.Packed(2) -final class StyleTable extends ffi.Struct { - @SInt16() - external int fontClass; - - @SInt32() - external int offset; - - @SInt32() - external int reserved; - - @ffi.Array.multi([48]) - external ffi.Array indexes; -} - -typedef SysPPtr = ffi.Pointer; - -final class TECBufferContextRec extends ffi.Struct { - external ConstTextPtr textInputBuffer; - - external ConstTextPtr textInputBufferEnd; - - external TextPtr textOutputBuffer; - - external TextPtr textOutputBufferEnd; - - external ConstTextEncodingRunPtr encodingInputBuffer; - - external ConstTextEncodingRunPtr encodingInputBufferEnd; - - external TextEncodingRunPtr encodingOutputBuffer; - - external TextEncodingRunPtr encodingOutputBufferEnd; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ConstTextPtr textInputBuffer, - required ConstTextPtr textInputBufferEnd, - required TextPtr textOutputBuffer, - required TextPtr textOutputBufferEnd, - required ConstTextEncodingRunPtr encodingInputBuffer, - required ConstTextEncodingRunPtr encodingInputBufferEnd, - required TextEncodingRunPtr encodingOutputBuffer, - required TextEncodingRunPtr encodingOutputBufferEnd, - }) => $allocator() - ..ref.textInputBuffer = textInputBuffer - ..ref.textInputBufferEnd = textInputBufferEnd - ..ref.textOutputBuffer = textOutputBuffer - ..ref.textOutputBufferEnd = textOutputBufferEnd - ..ref.encodingInputBuffer = encodingInputBuffer - ..ref.encodingInputBufferEnd = encodingInputBufferEnd - ..ref.encodingOutputBuffer = encodingOutputBuffer - ..ref.encodingOutputBufferEnd = encodingOutputBufferEnd; -} - -@ffi.Packed(2) -final class TECConversionInfo extends ffi.Struct { - @TextEncoding() - external int sourceEncoding; - - @TextEncoding() - external int destinationEncoding; - - @UInt16() - external int reserved1; - - @UInt16() - external int reserved2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sourceEncoding, - required int destinationEncoding, - required int reserved1, - required int reserved2, - }) => $allocator() - ..ref.sourceEncoding = sourceEncoding - ..ref.destinationEncoding = destinationEncoding - ..ref.reserved1 = reserved1 - ..ref.reserved2 = reserved2; -} - -final class TECConverterContextRec extends ffi.Struct { - external Ptr pluginRec; - - @TextEncoding() - external int sourceEncoding; - - @TextEncoding() - external int destEncoding; - - @UInt32() - external int reserved1; - - @UInt32() - external int reserved2; - - external TECBufferContextRec bufferContext; - - external URefCon contextRefCon; - - external ProcPtr conversionProc; - - external ProcPtr flushProc; - - external ProcPtr clearContextInfoProc; - - @UInt32() - external int options1; - - @UInt32() - external int options2; - - external TECPluginStateRec pluginState; -} - -final class TECEncodingPairRec extends ffi.Struct { - external TextEncodingRec source; - - external TextEncodingRec dest; -} - -final class TECEncodingPairs extends ffi.Struct { - external TECEncodingPairRec encodingPair; - - @UInt32() - external int flags; - - @UInt32() - external int speed; -} - -typedef TECEncodingPairsHandle = ffi.Pointer; -typedef TECEncodingPairsPtr = ffi.Pointer; - -final class TECEncodingPairsRec extends ffi.Struct { - @UInt32() - external int count; - - external TECEncodingPairs encodingPairs; -} - -typedef TECEncodingsListHandle = ffi.Pointer; -typedef TECEncodingsListPtr = ffi.Pointer; - -final class TECEncodingsListRec extends ffi.Struct { - @UInt32() - external int count; - - external TextEncodingRec encodings; -} - -@ffi.Packed(2) -final class TECInfo extends ffi.Struct { - @UInt16() - external int format; - - @UInt16() - external int tecVersion; - - @UInt32() - external int tecTextConverterFeatures; - - @UInt32() - external int tecUnicodeConverterFeatures; - - @UInt32() - external int tecTextCommonFeatures; - - @ffi.Array.multi([32]) - external ffi.Array tecTextEncodingsFolderName; - - @ffi.Array.multi([32]) - external ffi.Array tecExtensionFileName; - - @UInt16() - external int tecLowestTEFileVersion; - - @UInt16() - external int tecHighestTEFileVersion; -} - -typedef TECInfoHandle = ffi.Pointer; -typedef TECInfoPtr = ffi.Pointer; - -final class TECInternetNameRec extends ffi.Struct { - @UInt32() - external int offset; - - external TextEncodingRec searchEncoding; - - @UInt8() - external int encodingNameLength; - - @ffi.Array.multi([1]) - external ffi.Array encodingName; -} - -typedef TECInternetNameUsageMask = UInt32; -typedef TECInternetNamesHandle = ffi.Pointer; -typedef TECInternetNamesPtr = ffi.Pointer; - -final class TECInternetNamesRec extends ffi.Struct { - @UInt32() - external int count; - - external TECInternetNameRec InternetNames; -} - -typedef TECLocaleListToEncodingListPtr = - ffi.Pointer; - -final class TECLocaleListToEncodingListRec extends ffi.Struct { - @UInt32() - external int offset; - - @UInt32() - external int count; - - @RegionCode() - external int locales; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int count, - required int locales, - }) => $allocator() - ..ref.offset = offset - ..ref.count = count - ..ref.locales = locales; -} - -typedef TECLocaleToEncodingsListHandle = - ffi.Pointer; -typedef TECLocaleToEncodingsListPtr = ffi.Pointer; - -final class TECLocaleToEncodingsListRec extends ffi.Struct { - @UInt32() - external int count; - - external TECLocaleListToEncodingListRec localeListToEncodingList; -} - -typedef TECObjectRef = ffi.Pointer; -typedef TECPluginClearContextInfoPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - TECObjectRef encodingConverter, - ffi.Pointer plugContext, - ) - > - >; -typedef TECPluginClearSnifferContextInfoPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - TECSnifferObjectRef encodingSniffer, - ffi.Pointer snifContext, - ) - > - >; -typedef TECPluginConvertTextEncodingPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - TECObjectRef encodingConverter, - ffi.Pointer plugContext, - ) - > - >; - -final class TECPluginDispatchTable extends ffi.Struct { - @TECPluginVersion() - external int version; - - @TECPluginVersion() - external int compatibleVersion; - - @TECPluginSignature() - external int PluginID; - - external TECPluginNewEncodingConverterPtr PluginNewEncodingConverter; - - external TECPluginClearContextInfoPtr PluginClearContextInfo; - - external TECPluginConvertTextEncodingPtr PluginConvertTextEncoding; - - external TECPluginFlushConversionPtr PluginFlushConversion; - - external TECPluginDisposeEncodingConverterPtr PluginDisposeEncodingConverter; - - external TECPluginNewEncodingSnifferPtr PluginNewEncodingSniffer; - - external TECPluginClearSnifferContextInfoPtr PluginClearSnifferContextInfo; - - external TECPluginSniffTextEncodingPtr PluginSniffTextEncoding; - - external TECPluginDisposeEncodingSnifferPtr PluginDisposeEncodingSniffer; - - external TECPluginGetCountAvailableTextEncodingsPtr - PluginGetCountAvailableTextEncodings; - - external TECPluginGetCountAvailableTextEncodingPairsPtr - PluginGetCountAvailableTextEncodingPairs; - - external TECPluginGetCountDestinationTextEncodingsPtr - PluginGetCountDestinationTextEncodings; - - external TECPluginGetCountSubTextEncodingsPtr PluginGetCountSubTextEncodings; - - external TECPluginGetCountAvailableSniffersPtr - PluginGetCountAvailableSniffers; - - external TECPluginGetCountWebEncodingsPtr PluginGetCountWebTextEncodings; - - external TECPluginGetCountMailEncodingsPtr PluginGetCountMailTextEncodings; - - external TECPluginGetTextEncodingInternetNamePtr - PluginGetTextEncodingInternetName; - - external TECPluginGetTextEncodingFromInternetNamePtr - PluginGetTextEncodingFromInternetName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int compatibleVersion, - required int PluginID, - required TECPluginNewEncodingConverterPtr PluginNewEncodingConverter, - required TECPluginClearContextInfoPtr PluginClearContextInfo, - required TECPluginConvertTextEncodingPtr PluginConvertTextEncoding, - required TECPluginFlushConversionPtr PluginFlushConversion, - required TECPluginDisposeEncodingConverterPtr - PluginDisposeEncodingConverter, - required TECPluginNewEncodingSnifferPtr PluginNewEncodingSniffer, - required TECPluginClearSnifferContextInfoPtr PluginClearSnifferContextInfo, - required TECPluginSniffTextEncodingPtr PluginSniffTextEncoding, - required TECPluginDisposeEncodingSnifferPtr PluginDisposeEncodingSniffer, - required TECPluginGetCountAvailableTextEncodingsPtr - PluginGetCountAvailableTextEncodings, - required TECPluginGetCountAvailableTextEncodingPairsPtr - PluginGetCountAvailableTextEncodingPairs, - required TECPluginGetCountDestinationTextEncodingsPtr - PluginGetCountDestinationTextEncodings, - required TECPluginGetCountSubTextEncodingsPtr - PluginGetCountSubTextEncodings, - required TECPluginGetCountAvailableSniffersPtr - PluginGetCountAvailableSniffers, - required TECPluginGetCountWebEncodingsPtr PluginGetCountWebTextEncodings, - required TECPluginGetCountMailEncodingsPtr PluginGetCountMailTextEncodings, - required TECPluginGetTextEncodingInternetNamePtr - PluginGetTextEncodingInternetName, - required TECPluginGetTextEncodingFromInternetNamePtr - PluginGetTextEncodingFromInternetName, - }) => $allocator() - ..ref.version = version - ..ref.compatibleVersion = compatibleVersion - ..ref.PluginID = PluginID - ..ref.PluginNewEncodingConverter = PluginNewEncodingConverter - ..ref.PluginClearContextInfo = PluginClearContextInfo - ..ref.PluginConvertTextEncoding = PluginConvertTextEncoding - ..ref.PluginFlushConversion = PluginFlushConversion - ..ref.PluginDisposeEncodingConverter = PluginDisposeEncodingConverter - ..ref.PluginNewEncodingSniffer = PluginNewEncodingSniffer - ..ref.PluginClearSnifferContextInfo = PluginClearSnifferContextInfo - ..ref.PluginSniffTextEncoding = PluginSniffTextEncoding - ..ref.PluginDisposeEncodingSniffer = PluginDisposeEncodingSniffer - ..ref.PluginGetCountAvailableTextEncodings = - PluginGetCountAvailableTextEncodings - ..ref.PluginGetCountAvailableTextEncodingPairs = - PluginGetCountAvailableTextEncodingPairs - ..ref.PluginGetCountDestinationTextEncodings = - PluginGetCountDestinationTextEncodings - ..ref.PluginGetCountSubTextEncodings = PluginGetCountSubTextEncodings - ..ref.PluginGetCountAvailableSniffers = PluginGetCountAvailableSniffers - ..ref.PluginGetCountWebTextEncodings = PluginGetCountWebTextEncodings - ..ref.PluginGetCountMailTextEncodings = PluginGetCountMailTextEncodings - ..ref.PluginGetTextEncodingInternetName = PluginGetTextEncodingInternetName - ..ref.PluginGetTextEncodingFromInternetName = - PluginGetTextEncodingFromInternetName; -} - -typedef TECPluginDisposeEncodingConverterPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - TECObjectRef newEncodingConverter, - ffi.Pointer plugContext, - ) - > - >; -typedef TECPluginDisposeEncodingSnifferPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - TECSnifferObjectRef encodingSniffer, - ffi.Pointer snifContext, - ) - > - >; -typedef TECPluginFlushConversionPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - TECObjectRef encodingConverter, - ffi.Pointer plugContext, - ) - > - >; -typedef TECPluginGetCountAvailableSniffersPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer availableEncodings, - ItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ) - > - >; -typedef TECPluginGetCountAvailableTextEncodingPairsPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer availableEncodings, - ItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ) - > - >; -typedef TECPluginGetCountAvailableTextEncodingsPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer availableEncodings, - ItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ) - > - >; -typedef TECPluginGetCountDestinationTextEncodingsPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - TextEncoding inputEncoding, - ffi.Pointer destinationEncodings, - ItemCount maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ) - > - >; -typedef TECPluginGetCountMailEncodingsPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer availableEncodings, - ItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ) - > - >; -typedef TECPluginGetCountSubTextEncodingsPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - TextEncoding inputEncoding, - ffi.Pointer subEncodings, - ItemCount maxSubEncodings, - ffi.Pointer actualSubEncodings, - ) - > - >; -typedef TECPluginGetCountWebEncodingsPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer availableEncodings, - ItemCount maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ) - > - >; -typedef TECPluginGetPluginDispatchTablePtr = - ffi.Pointer< - ffi.NativeFunction Function()> - >; -typedef TECPluginGetTextEncodingFromInternetNamePtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer textEncoding, - ConstStr255Param encodingName, - ) - > - >; -typedef TECPluginGetTextEncodingInternetNamePtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - TextEncoding textEncoding, - ffi.Pointer encodingName, - ) - > - >; -typedef TECPluginNewEncodingConverterPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - TextEncoding inputEncoding, - TextEncoding outputEncoding, - ) - > - >; -typedef TECPluginNewEncodingSnifferPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - TextEncoding inputEncoding, - ) - > - >; -typedef TECPluginSig = OSType; -typedef TECPluginSignature = OSType; -typedef TECPluginSniffTextEncodingPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - TECSnifferObjectRef encodingSniffer, - ffi.Pointer snifContext, - ) - > - >; - -final class TECPluginStateRec extends ffi.Struct { - @UInt8() - external int state1; - - @UInt8() - external int state2; - - @UInt8() - external int state3; - - @UInt8() - external int state4; - - @UInt32() - external int longState1; - - @UInt32() - external int longState2; - - @UInt32() - external int longState3; - - @UInt32() - external int longState4; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int state1, - required int state2, - required int state3, - required int state4, - required int longState1, - required int longState2, - required int longState3, - required int longState4, - }) => $allocator() - ..ref.state1 = state1 - ..ref.state2 = state2 - ..ref.state3 = state3 - ..ref.state4 = state4 - ..ref.longState1 = longState1 - ..ref.longState2 = longState2 - ..ref.longState3 = longState3 - ..ref.longState4 = longState4; -} - -typedef TECPluginVersion = UInt32; - -final class TECSnifferContextRec extends ffi.Struct { - external Ptr pluginRec; - - @TextEncoding() - external int encoding; - - @ItemCount() - external int maxErrors; - - @ItemCount() - external int maxFeatures; - - external ConstTextPtr textInputBuffer; - - external ConstTextPtr textInputBufferEnd; - - @ItemCount() - external int numFeatures; - - @ItemCount() - external int numErrors; - - external URefCon contextRefCon; - - external ProcPtr sniffProc; - - external ProcPtr clearContextInfoProc; - - external TECPluginStateRec pluginState; -} - -typedef TECSnifferObjectRef = ffi.Pointer; - -final class TECSubTextEncodingRec extends ffi.Struct { - @UInt32() - external int offset; - - external TextEncodingRec searchEncoding; - - @UInt32() - external int count; - - external TextEncodingRec subEncodings; -} - -typedef TECSubTextEncodingsHandle = ffi.Pointer; -typedef TECSubTextEncodingsPtr = ffi.Pointer; - -final class TECSubTextEncodingsRec extends ffi.Struct { - @UInt32() - external int count; - - external TECSubTextEncodingRec subTextEncodingRec; -} - -const int TLS_AES_128_CCM_8_SHA256 = 4869; - -const int TLS_AES_128_CCM_SHA256 = 4868; - -const int TLS_AES_128_GCM_SHA256 = 4865; - -const int TLS_AES_256_GCM_SHA384 = 4866; - -const int TLS_CHACHA20_POLY1305_SHA256 = 4867; - -const int TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; - -const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 50; - -const int TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = 64; - -const int TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 = 162; - -const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 56; - -const int TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = 106; - -const int TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 = 163; - -const int TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = 143; - -const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA = 144; - -const int TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 = 178; - -const int TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 = 170; - -const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA = 145; - -const int TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 = 179; - -const int TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 = 171; - -const int TLS_DHE_PSK_WITH_NULL_SHA = 45; - -const int TLS_DHE_PSK_WITH_NULL_SHA256 = 180; - -const int TLS_DHE_PSK_WITH_NULL_SHA384 = 181; - -const int TLS_DHE_PSK_WITH_RC4_128_SHA = 142; - -const int TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; - -const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 51; - -const int TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 103; - -const int TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = 158; - -const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 57; - -const int TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 107; - -const int TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = 159; - -const int TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; - -const int TLS_DH_DSS_WITH_AES_128_CBC_SHA = 48; - -const int TLS_DH_DSS_WITH_AES_128_CBC_SHA256 = 62; - -const int TLS_DH_DSS_WITH_AES_128_GCM_SHA256 = 164; - -const int TLS_DH_DSS_WITH_AES_256_CBC_SHA = 54; - -const int TLS_DH_DSS_WITH_AES_256_CBC_SHA256 = 104; - -const int TLS_DH_DSS_WITH_AES_256_GCM_SHA384 = 165; - -const int TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; - -const int TLS_DH_RSA_WITH_AES_128_CBC_SHA = 49; - -const int TLS_DH_RSA_WITH_AES_128_CBC_SHA256 = 63; - -const int TLS_DH_RSA_WITH_AES_128_GCM_SHA256 = 160; - -const int TLS_DH_RSA_WITH_AES_256_CBC_SHA = 55; - -const int TLS_DH_RSA_WITH_AES_256_CBC_SHA256 = 105; - -const int TLS_DH_RSA_WITH_AES_256_GCM_SHA384 = 161; - -const int TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; - -const int TLS_DH_anon_WITH_AES_128_CBC_SHA = 52; - -const int TLS_DH_anon_WITH_AES_128_CBC_SHA256 = 108; - -const int TLS_DH_anon_WITH_AES_128_GCM_SHA256 = 166; - -const int TLS_DH_anon_WITH_AES_256_CBC_SHA = 58; - -const int TLS_DH_anon_WITH_AES_256_CBC_SHA256 = 109; - -const int TLS_DH_anon_WITH_AES_256_GCM_SHA384 = 167; - -const int TLS_DH_anon_WITH_RC4_128_MD5 = 24; - -const int TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = -16376; - -const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = -16375; - -const int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = -16349; - -const int TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = -16341; - -const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = -16374; - -const int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = -16348; - -const int TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = -16340; - -const int TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = -13143; - -const int TLS_ECDHE_ECDSA_WITH_NULL_SHA = -16378; - -const int TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = -16377; - -const int TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA = -16331; - -const int TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA = -16330; - -const int TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 = -13140; - -const int TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = -16366; - -const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = -16365; - -const int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = -16345; - -const int TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = -16337; - -const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = -16364; - -const int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = -16344; - -const int TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = -16336; - -const int TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = -13144; - -const int TLS_ECDHE_RSA_WITH_NULL_SHA = -16368; - -const int TLS_ECDHE_RSA_WITH_RC4_128_SHA = -16367; - -const int TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = -16381; - -const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = -16380; - -const int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 = -16347; - -const int TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = -16339; - -const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = -16379; - -const int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 = -16346; - -const int TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = -16338; - -const int TLS_ECDH_ECDSA_WITH_NULL_SHA = -16383; - -const int TLS_ECDH_ECDSA_WITH_RC4_128_SHA = -16382; - -const int TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = -16371; - -const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = -16370; - -const int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 = -16343; - -const int TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 = -16335; - -const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = -16369; - -const int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 = -16342; - -const int TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 = -16334; - -const int TLS_ECDH_RSA_WITH_NULL_SHA = -16373; - -const int TLS_ECDH_RSA_WITH_RC4_128_SHA = -16372; - -const int TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = -16361; - -const int TLS_ECDH_anon_WITH_AES_128_CBC_SHA = -16360; - -const int TLS_ECDH_anon_WITH_AES_256_CBC_SHA = -16359; - -const int TLS_ECDH_anon_WITH_NULL_SHA = -16363; - -const int TLS_ECDH_anon_WITH_RC4_128_SHA = -16362; - -const int TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 255; - -const int TLS_NULL_WITH_NULL_NULL = 0; - -const int TLS_PSK_WITH_3DES_EDE_CBC_SHA = 139; - -const int TLS_PSK_WITH_AES_128_CBC_SHA = 140; - -const int TLS_PSK_WITH_AES_128_CBC_SHA256 = 174; - -const int TLS_PSK_WITH_AES_128_GCM_SHA256 = 168; - -const int TLS_PSK_WITH_AES_256_CBC_SHA = 141; - -const int TLS_PSK_WITH_AES_256_CBC_SHA384 = 175; - -const int TLS_PSK_WITH_AES_256_GCM_SHA384 = 169; - -const int TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 = -13141; - -const int TLS_PSK_WITH_NULL_SHA = 44; - -const int TLS_PSK_WITH_NULL_SHA256 = 176; - -const int TLS_PSK_WITH_NULL_SHA384 = 177; - -const int TLS_PSK_WITH_RC4_128_SHA = 138; - -const int TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = 147; - -const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA = 148; - -const int TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 = 182; - -const int TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 = 172; - -const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA = 149; - -const int TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 = 183; - -const int TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 = 173; - -const int TLS_RSA_PSK_WITH_NULL_SHA = 46; - -const int TLS_RSA_PSK_WITH_NULL_SHA256 = 184; - -const int TLS_RSA_PSK_WITH_NULL_SHA384 = 185; - -const int TLS_RSA_PSK_WITH_RC4_128_SHA = 146; - -const int TLS_RSA_WITH_3DES_EDE_CBC_SHA = 10; - -const int TLS_RSA_WITH_AES_128_CBC_SHA = 47; - -const int TLS_RSA_WITH_AES_128_CBC_SHA256 = 60; - -const int TLS_RSA_WITH_AES_128_GCM_SHA256 = 156; - -const int TLS_RSA_WITH_AES_256_CBC_SHA = 53; - -const int TLS_RSA_WITH_AES_256_CBC_SHA256 = 61; - -const int TLS_RSA_WITH_AES_256_GCM_SHA384 = 157; - -const int TLS_RSA_WITH_NULL_MD5 = 1; - -const int TLS_RSA_WITH_NULL_SHA = 2; - -const int TLS_RSA_WITH_NULL_SHA256 = 59; - -const int TLS_RSA_WITH_RC4_128_MD5 = 4; - -const int TLS_RSA_WITH_RC4_128_SHA = 5; - -@ffi.Packed(2) -final class TMTask extends ffi.Struct { - external QElemPtr qLink; - - @ffi.Short() - external int qType; - - external TimerUPP tmAddr; - - @ffi.Long() - external int tmCount; - - @ffi.Long() - external int tmWakeUp; - - @ffi.Long() - external int tmReserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required QElemPtr qLink, - required int qType, - required TimerUPP tmAddr, - required int tmCount, - required int tmWakeUp, - required int tmReserved, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.tmAddr = tmAddr - ..ref.tmCount = tmCount - ..ref.tmWakeUp = tmWakeUp - ..ref.tmReserved = tmReserved; -} - -typedef TMTaskPtr = ffi.Pointer; - -@ffi.Packed(2) -final class TScriptingSizeResource extends ffi.Struct { - @SInt16() - external int scriptingSizeFlags; - - @UInt32() - external int minStackSize; - - @UInt32() - external int preferredStackSize; - - @UInt32() - external int maxStackSize; - - @UInt32() - external int minHeapSize; - - @UInt32() - external int preferredHeapSize; - - @UInt32() - external int maxHeapSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int scriptingSizeFlags, - required int minStackSize, - required int preferredStackSize, - required int maxStackSize, - required int minHeapSize, - required int preferredHeapSize, - required int maxHeapSize, - }) => $allocator() - ..ref.scriptingSizeFlags = scriptingSizeFlags - ..ref.minStackSize = minStackSize - ..ref.preferredStackSize = preferredStackSize - ..ref.maxStackSize = maxStackSize - ..ref.minHeapSize = minHeapSize - ..ref.preferredHeapSize = preferredHeapSize - ..ref.maxHeapSize = maxHeapSize; -} - -@ffi.Packed(2) -final class TableDirectoryRecord extends ffi.Struct { - @OSType() - external int tableSignature; - - @UInt32() - external int reserved; - - @UInt32() - external int tableStartOffset; - - @UInt32() - external int tableSize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tableSignature, - required int reserved, - required int tableStartOffset, - required int tableSize, - }) => $allocator() - ..ref.tableSignature = tableSignature - ..ref.reserved = reserved - ..ref.tableStartOffset = tableStartOffset - ..ref.tableSize = tableSize; -} - -typedef TaskProc = - ffi.Pointer< - ffi.NativeFunction parameter)> - >; -typedef TaskStorageIndex = ItemCount; -typedef TaskStorageValue = LogicalAddress; -typedef TextBreakLocatorRef = ffi.Pointer; - -@ffi.Packed(2) -final class TextChunk extends ffi.Struct { - @UInt32() - external int ckID; - - @SInt32() - external int ckSize; - - @ffi.Array.multi([1]) - external ffi.Array text; -} - -typedef TextChunkPtr = ffi.Pointer; -typedef TextEncoding = UInt32; -typedef TextEncodingBase = UInt32; -typedef TextEncodingFormat = UInt32; -typedef TextEncodingNameSelector = UInt32; - -final class TextEncodingRec extends ffi.Struct { - @UInt32() - external int base; - - @UInt32() - external int variant; - - @UInt32() - external int format; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int base, - required int variant, - required int format, - }) => $allocator() - ..ref.base = base - ..ref.variant = variant - ..ref.format = format; -} - -@ffi.Packed(2) -final class TextEncodingRun extends ffi.Struct { - @ByteOffset() - external int offset; - - @TextEncoding() - external int textEncoding; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int textEncoding, - }) => $allocator() - ..ref.offset = offset - ..ref.textEncoding = textEncoding; -} - -typedef TextEncodingRunPtr = ffi.Pointer; -typedef TextEncodingVariant = UInt32; -typedef TextPtr = ffi.Pointer; - -@ffi.Packed(2) -final class TextRange extends ffi.Struct { - @SInt32() - external int fStart; - - @SInt32() - external int fEnd; - - @SInt16() - external int fHiliteStyle; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fStart, - required int fEnd, - required int fHiliteStyle, - }) => $allocator() - ..ref.fStart = fStart - ..ref.fEnd = fEnd - ..ref.fHiliteStyle = fHiliteStyle; -} - -final class TextRangeArray extends ffi.Struct { - @SInt16() - external int fNumOfRanges; - - @ffi.Array.multi([1]) - external ffi.Array fRange; -} - -typedef TextRangeArrayHandle = ffi.Pointer; -typedef TextRangeArrayPtr = ffi.Pointer; -typedef TextRangeHandle = ffi.Pointer; -typedef TextRangePtr = ffi.Pointer; -typedef TextToUnicodeInfo = ffi.Pointer; -typedef ThreadEntryProcPtr = - ffi.Pointer< - ffi.NativeFunction threadParam)> - >; -typedef ThreadEntryTPP = ThreadEntryUPP; -typedef ThreadEntryUPP = ThreadEntryProcPtr; -typedef ThreadID = ffi.UnsignedLong; -typedef DartThreadID = int; -typedef ThreadOptions = UInt32; -typedef ThreadSchedulerProcPtr = - ffi.Pointer< - ffi.NativeFunction - >; -typedef ThreadSchedulerTPP = ThreadSchedulerUPP; -typedef ThreadSchedulerUPP = ThreadSchedulerProcPtr; -typedef ThreadState = UInt16; -typedef ThreadStyle = UInt32; -typedef ThreadSwitchProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ThreadID threadBeingSwitched, - ffi.Pointer switchProcParam, - ) - > - >; -typedef ThreadSwitchTPP = ThreadSwitchUPP; -typedef ThreadSwitchUPP = ThreadSwitchProcPtr; -typedef ThreadTaskRef = ffi.Pointer; -typedef ThreadTerminationProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ThreadID threadTerminated, - ffi.Pointer terminationProcParam, - ) - > - >; -typedef ThreadTerminationTPP = ThreadTerminationUPP; -typedef ThreadTerminationUPP = ThreadTerminationProcPtr; -typedef TimeBase = ffi.Pointer; - -final class TimeBaseRecord extends ffi.Opaque {} - -@ffi.Packed(2) -final class TimeRecord extends ffi.Struct { - external CompTimeValue value; - - @TimeScale() - external int scale; - - external TimeBase base; -} - -typedef TimeScale = SInt32; -typedef TimeValue = SInt32; -typedef TimeValue64 = SInt64; -typedef TimerProcPtr = - ffi.Pointer>; -typedef TimerUPP = TimerProcPtr; - -@ffi.Packed(2) -final class TogglePB extends ffi.Struct { - @ffi.Long() - external int togFlags; - - @ResType() - external int amChars; - - @ResType() - external int pmChars; - - @ffi.Array.multi([4]) - external ffi.Array reserved; -} - -typedef ToggleResults = SInt16; - -@Deprecated('Deprecated') -@ffi.Packed(2) -final class TokenBlock extends ffi.Struct { - external Ptr source; - - @ffi.Long() - external int sourceLength; - - external Ptr tokenList; - - @ffi.Long() - external int tokenLength; - - @ffi.Long() - external int tokenCount; - - external Ptr stringList; - - @ffi.Long() - external int stringLength; - - @ffi.Long() - external int stringCount; - - @Boolean() - external int doString; - - @Boolean() - external int doAppend; - - @Boolean() - external int doAlphanumeric; - - @Boolean() - external int doNest; - - @ffi.Array.multi([2]) - external ffi.Array leftDelims; - - @ffi.Array.multi([2]) - external ffi.Array rightDelims; - - @ffi.Array.multi([4]) - external ffi.Array leftComment; - - @ffi.Array.multi([4]) - external ffi.Array rightComment; - - @ScriptTokenType() - external int escapeCode; - - @ScriptTokenType() - external int decimalCode; - - external Handle itlResource; - - @ffi.Array.multi([8]) - external ffi.Array reserved; -} - -typedef TokenBlockPtr = ffi.Pointer; - -@Deprecated('Deprecated') -@ffi.Packed(2) -final class TokenRec extends ffi.Struct { - @ScriptTokenType() - external int theToken; - - external Ptr position; - - @ffi.Long() - external int length; - - external StringPtr stringPosition; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int theToken, - required Ptr position, - required int length, - required StringPtr stringPosition, - }) => $allocator() - ..ref.theToken = theToken - ..ref.position = position - ..ref.length = length - ..ref.stringPosition = stringPosition; -} - -typedef TokenRecPtr = ffi.Pointer; -typedef TokenResults = SInt8; - -@ffi.Packed(2) -final class TrakTable extends ffi.Struct { - @Fixed() - external int version; - - @UInt16() - external int format; - - @UInt16() - external int horizOffset; - - @UInt16() - external int vertOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int format, - required int horizOffset, - required int vertOffset, - }) => $allocator() - ..ref.version = version - ..ref.format = format - ..ref.horizOffset = horizOffset - ..ref.vertOffset = vertOffset; -} - -@ffi.Packed(2) -final class TrakTableData extends ffi.Struct { - @UInt16() - external int nTracks; - - @UInt16() - external int nSizes; - - @UInt32() - external int sizeTableOffset; - - @ffi.Array.multi([1]) - external ffi.Array trakTable; -} - -@ffi.Packed(2) -final class TrakTableEntry extends ffi.Struct { - @Fixed() - external int track; - - @UInt16() - external int nameTableIndex; - - @UInt16() - external int sizesOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int track, - required int nameTableIndex, - required int sizesOffset, - }) => $allocator() - ..ref.track = track - ..ref.nameTableIndex = nameTableIndex - ..ref.sizesOffset = sizesOffset; -} - -typedef TrakValue = SInt16; -typedef TranslationFlags = OptionBits; -typedef TranslationRef = ffi.Pointer; -typedef TruncCode = ffi.Short; -typedef DartTruncCode = int; -typedef UAZoomChangeFocusType = UInt32; -typedef UCCharPropertyType = SInt32; -typedef UCCharPropertyValue = UInt32; -typedef UCCollateOptions = UInt32; -typedef UCCollationValue = UInt32; -typedef UCKeyCharSeq = UInt16; - -@ffi.Packed(2) -final class UCKeyLayoutFeatureInfo extends ffi.Struct { - @UInt16() - external int keyLayoutFeatureInfoFormat; - - @UInt16() - external int reserved; - - @UInt32() - external int maxOutputStringLength; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int keyLayoutFeatureInfoFormat, - required int reserved, - required int maxOutputStringLength, - }) => $allocator() - ..ref.keyLayoutFeatureInfoFormat = keyLayoutFeatureInfoFormat - ..ref.reserved = reserved - ..ref.maxOutputStringLength = maxOutputStringLength; -} - -@ffi.Packed(2) -final class UCKeyModifiersToTableNum extends ffi.Struct { - @UInt16() - external int keyModifiersToTableNumFormat; - - @UInt16() - external int defaultTableNum; - - @UInt32() - external int modifiersCount; - - @ffi.Array.multi([1]) - external ffi.Array tableNum; -} - -typedef UCKeyOutput = UInt16; - -final class UCKeySequenceDataIndex extends ffi.Struct { - @UInt16() - external int keySequenceDataIndexFormat; - - @UInt16() - external int charSequenceCount; - - @ffi.Array.multi([1]) - external ffi.Array charSequenceOffsets; -} - -final class UCKeyStateEntryRange extends ffi.Struct { - @UInt16() - external int curStateStart; - - @UInt8() - external int curStateRange; - - @UInt8() - external int deltaMultiplier; - - @UCKeyCharSeq() - external int charData; - - @UInt16() - external int nextState; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int curStateStart, - required int curStateRange, - required int deltaMultiplier, - required int charData, - required int nextState, - }) => $allocator() - ..ref.curStateStart = curStateStart - ..ref.curStateRange = curStateRange - ..ref.deltaMultiplier = deltaMultiplier - ..ref.charData = charData - ..ref.nextState = nextState; -} - -final class UCKeyStateEntryTerminal extends ffi.Struct { - @UInt16() - external int curState; - - @UCKeyCharSeq() - external int charData; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int curState, - required int charData, - }) => $allocator() - ..ref.curState = curState - ..ref.charData = charData; -} - -@ffi.Packed(2) -final class UCKeyStateRecord extends ffi.Struct { - @UCKeyCharSeq() - external int stateZeroCharData; - - @UInt16() - external int stateZeroNextState; - - @UInt16() - external int stateEntryCount; - - @UInt16() - external int stateEntryFormat; - - @ffi.Array.multi([1]) - external ffi.Array stateEntryData; -} - -@ffi.Packed(2) -final class UCKeyStateRecordsIndex extends ffi.Struct { - @UInt16() - external int keyStateRecordsIndexFormat; - - @UInt16() - external int keyStateRecordCount; - - @ffi.Array.multi([1]) - external ffi.Array keyStateRecordOffsets; -} - -final class UCKeyStateTerminators extends ffi.Struct { - @UInt16() - external int keyStateTerminatorsFormat; - - @UInt16() - external int keyStateTerminatorCount; - - @ffi.Array.multi([1]) - external ffi.Array keyStateTerminators; -} - -@ffi.Packed(2) -final class UCKeyToCharTableIndex extends ffi.Struct { - @UInt16() - external int keyToCharTableIndexFormat; - - @UInt16() - external int keyToCharTableSize; - - @UInt32() - external int keyToCharTableCount; - - @ffi.Array.multi([1]) - external ffi.Array keyToCharTableOffsets; -} - -@ffi.Packed(2) -final class UCKeyboardLayout extends ffi.Struct { - @UInt16() - external int keyLayoutHeaderFormat; - - @UInt16() - external int keyLayoutDataVersion; - - @UInt32() - external int keyLayoutFeatureInfoOffset; - - @UInt32() - external int keyboardTypeCount; - - @ffi.Array.multi([1]) - external ffi.Array keyboardTypeList; -} - -@ffi.Packed(2) -final class UCKeyboardTypeHeader extends ffi.Struct { - @UInt32() - external int keyboardTypeFirst; - - @UInt32() - external int keyboardTypeLast; - - @UInt32() - external int keyModifiersToTableNumOffset; - - @UInt32() - external int keyToCharTableIndexOffset; - - @UInt32() - external int keyStateRecordsIndexOffset; - - @UInt32() - external int keyStateTerminatorsOffset; - - @UInt32() - external int keySequenceDataIndexOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int keyboardTypeFirst, - required int keyboardTypeLast, - required int keyModifiersToTableNumOffset, - required int keyToCharTableIndexOffset, - required int keyStateRecordsIndexOffset, - required int keyStateTerminatorsOffset, - required int keySequenceDataIndexOffset, - }) => $allocator() - ..ref.keyboardTypeFirst = keyboardTypeFirst - ..ref.keyboardTypeLast = keyboardTypeLast - ..ref.keyModifiersToTableNumOffset = keyModifiersToTableNumOffset - ..ref.keyToCharTableIndexOffset = keyToCharTableIndexOffset - ..ref.keyStateRecordsIndexOffset = keyStateRecordsIndexOffset - ..ref.keyStateTerminatorsOffset = keyStateTerminatorsOffset - ..ref.keySequenceDataIndexOffset = keySequenceDataIndexOffset; -} - -typedef UCTSWalkDirection = UInt16; -typedef UCTextBreakOptions = UInt32; -typedef UCTextBreakType = UInt32; -typedef UCTypeSelectCompareResult = SInt32; -typedef UCTypeSelectOptions = UInt16; -typedef UCTypeSelectRef = ffi.Pointer; -typedef UInt = ffi.UnsignedInt; -typedef DartUInt = int; -typedef UInt16 = ffi.UnsignedShort; -typedef DartUInt16 = int; -typedef UInt32 = ffi.UnsignedInt; -typedef DartUInt32 = int; -typedef UInt64 = ffi.UnsignedLongLong; -typedef DartUInt64 = int; -typedef UInt8 = ffi.UnsignedChar; -typedef DartUInt8 = int; -typedef UNDServerRef = mach_port_t; - -const int UNORDERED = 3; - -typedef URefCon = ffi.Pointer; - -@ffi.Packed(2) -final class UTCDateTime extends ffi.Struct { - @UInt16() - external int highSeconds; - - @UInt32() - external int lowSeconds; - - @UInt16() - external int fraction$1; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int highSeconds, - required int lowSeconds, - required int fraction$1, - }) => $allocator() - ..ref.highSeconds = highSeconds - ..ref.lowSeconds = lowSeconds - ..ref.fraction$1 = fraction$1; -} - -typedef UTCDateTimeHandle = ffi.Pointer; -typedef UTCDateTimePtr = ffi.Pointer; -typedef UTF16Char = UInt16; -typedef UTF32Char = UInt32; -typedef UTF8Char = UInt8; -typedef UniChar = UInt16; -typedef UniCharArrayHandle = ffi.Pointer; -typedef UniCharArrayOffset = ffi.UnsignedLong; -typedef DartUniCharArrayOffset = int; -typedef UniCharArrayPtr = ffi.Pointer; -typedef UniCharCount = ffi.UnsignedLong; -typedef DartUniCharCount = int; -typedef UniCharCountPtr = ffi.Pointer; -typedef UniCharPtr = ffi.Pointer; -typedef UnicodeMapVersion = SInt32; - -@ffi.Packed(2) -final class UnicodeMapping extends ffi.Struct { - @TextEncoding() - external int unicodeEncoding; - - @TextEncoding() - external int otherEncoding; - - @UnicodeMapVersion() - external int mappingVersion; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int unicodeEncoding, - required int otherEncoding, - required int mappingVersion, - }) => $allocator() - ..ref.unicodeEncoding = unicodeEncoding - ..ref.otherEncoding = otherEncoding - ..ref.mappingVersion = mappingVersion; -} - -typedef UnicodeMappingPtr = ffi.Pointer; -typedef UnicodeScalarValue = UInt32; -typedef UnicodeToTextFallbackProcPtr = - ffi.Pointer< - ffi.NativeFunction< - OSStatus Function( - ffi.Pointer iSrcUniStr, - ByteCount iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - TextPtr oDestStr, - ByteCount iDestStrLen, - ffi.Pointer oDestConvLen, - LogicalAddress iInfoPtr, - ConstUnicodeMappingPtr iUnicodeMappingPtr, - ) - > - >; -typedef UnicodeToTextFallbackUPP = UnicodeToTextFallbackProcPtr; -typedef UnicodeToTextInfo = ffi.Pointer; -typedef UnicodeToTextRunInfo = ffi.Pointer; -typedef UniversalProcHandle = ffi.Pointer; -typedef UniversalProcPtr = ProcPtr; - -@ffi.Packed(2) -final class UnnamedStruct extends ffi.Struct { - @UInt16() - external int what; - - @UInt32() - external int message; - - @UInt32() - external int when; - - external Point where; - - @UInt16() - external int modifiers; -} - -final class UnnamedStruct$1 extends ffi.Struct { - external ffi.Pointer opaque1; - - @ffi.Long() - external int opaque2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer opaque1, - required int opaque2, - }) => $allocator() - ..ref.opaque1 = opaque1 - ..ref.opaque2 = opaque2; -} - -final class UnnamedStruct$10 extends ffi.Struct { - @SInt32() - external int dx; - - @SInt32() - external int dy; - - @UInt8() - external int subx; - - @UInt8() - external int suby; - - @UInt8() - external int subType; - - @UInt8() - external int reserved1; - - @SInt32() - external int reserved2; - - external UnnamedUnion$12 tablet; -} - -final class UnnamedStruct$11 extends ffi.Struct { - @SInt16() - external int x; - - @SInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -final class UnnamedStruct$12 extends ffi.Struct { - @UInt16() - external int vendorID; - - @UInt16() - external int tabletID; - - @UInt16() - external int pointerID; - - @UInt16() - external int deviceID; - - @UInt16() - external int systemTabletID; - - @UInt16() - external int vendorPointerType; - - @UInt32() - external int pointerSerialNumber; - - @UInt64() - external int uniqueID; - - @UInt32() - external int capabilityMask; - - @UInt8() - external int pointerType; - - @UInt8() - external int enterProximity; - - @SInt16() - external int reserved1; - - @ffi.Array.multi([4]) - external ffi.Array reserved2; -} - -final class UnnamedStruct$13 extends ffi.Struct { - @SInt16() - external int reserved; - - @SInt16() - external int eventNum; - - @SInt32() - external int trackingNum; - - @SInt32() - external int userData; - - @SInt32() - external int reserved1; - - @SInt32() - external int reserved2; - - @SInt32() - external int reserved3; - - @SInt32() - external int reserved4; - - @SInt32() - external int reserved5; - - @ffi.Array.multi([4]) - external ffi.Array reserved6; -} - -@ffi.Packed(2) -final class UnnamedStruct$14 extends ffi.Struct { - @UInt32() - external int lLow; - - @UInt32() - external int lHigh; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lLow, - required int lHigh, - }) => $allocator() - ..ref.lLow = lLow - ..ref.lHigh = lHigh; -} - -final class UnnamedStruct$15 extends ffi.Struct { - @ffi.Short() - external int era; - - @ffi.Short() - external int year; - - @ffi.Short() - external int month; - - @ffi.Short() - external int day; - - @ffi.Short() - external int hour; - - @ffi.Short() - external int minute; - - @ffi.Short() - external int second; - - @ffi.Short() - external int dayOfWeek; - - @ffi.Short() - external int dayOfYear; - - @ffi.Short() - external int weekOfYear; - - @ffi.Short() - external int pm; - - @ffi.Short() - external int res1; - - @ffi.Short() - external int res2; - - @ffi.Short() - external int res3; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int era, - required int year, - required int month, - required int day, - required int hour, - required int minute, - required int second, - required int dayOfWeek, - required int dayOfYear, - required int weekOfYear, - required int pm, - required int res1, - required int res2, - required int res3, - }) => $allocator() - ..ref.era = era - ..ref.year = year - ..ref.month = month - ..ref.day = day - ..ref.hour = hour - ..ref.minute = minute - ..ref.second = second - ..ref.dayOfWeek = dayOfWeek - ..ref.dayOfYear = dayOfYear - ..ref.weekOfYear = weekOfYear - ..ref.pm = pm - ..ref.res1 = res1 - ..ref.res2 = res2 - ..ref.res3 = res3; -} - -final class UnnamedStruct$16 extends ffi.Struct { - @ffi.Short() - external int eraAlt; - - external DateTimeRec oldDate; -} - -final class UnnamedStruct$17 extends ffi.Struct { - @SInt16() - external int reserved; - - @SInt16() - external int subType; - - external UnnamedUnion$13 misc; -} - -final class UnnamedStruct$18 extends ffi.Struct { - @UInt8() - external int subx; - - @UInt8() - external int suby; - - @SInt16() - external int eventNum; - - @SInt32() - external int click; - - @UInt8() - external int pressure; - - @UInt8() - external int buttonNumber; - - @UInt8() - external int subType; - - @UInt8() - external int reserved2; - - @SInt32() - external int reserved3; - - external UnnamedUnion$14 tablet; -} - -final class UnnamedStruct$19 extends ffi.Struct { - @SInt16() - external int deltaAxis1; - - @SInt16() - external int deltaAxis2; - - @SInt16() - external int deltaAxis3; - - @SInt16() - external int reserved1; - - @SInt32() - external int fixedDeltaAxis1; - - @SInt32() - external int fixedDeltaAxis2; - - @SInt32() - external int fixedDeltaAxis3; - - @SInt32() - external int pointDeltaAxis1; - - @SInt32() - external int pointDeltaAxis2; - - @SInt32() - external int pointDeltaAxis3; - - @ffi.Array.multi([4]) - external ffi.Array reserved8; -} - -final class UnnamedStruct$2 extends ffi.Struct { - external ffi.Pointer opaque1; - - external ffi.Pointer opaque2; - - @ffi.Int() - external int opaque3; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer opaque1, - required ffi.Pointer opaque2, - required int opaque3, - }) => $allocator() - ..ref.opaque1 = opaque1 - ..ref.opaque2 = opaque2 - ..ref.opaque3 = opaque3; -} - -final class UnnamedStruct$20 extends ffi.Struct { - @SInt32() - external int x; - - @SInt32() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -final class UnnamedStruct$21 extends ffi.Struct { - @SInt32() - external int x; - - @SInt32() - external int y; - - @SInt32() - external int z; - - @UInt16() - external int buttons; - - @UInt16() - external int pressure; - - external UnnamedStruct$22 tilt; - - @UInt16() - external int rotation; - - @SInt16() - external int tangentialPressure; - - @UInt16() - external int deviceID; - - @SInt16() - external int vendor1; - - @SInt16() - external int vendor2; - - @SInt16() - external int vendor3; - - @ffi.Array.multi([4]) - external ffi.Array reserved; -} - -final class UnnamedStruct$22 extends ffi.Struct { - @SInt16() - external int x; - - @SInt16() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -final class UnnamedStruct$3 extends ffi.Struct { - @ffi.Array.multi([3]) - external ffi.Array pad; - - @SInt8() - external int Delta; -} - -final class UnnamedStruct$4 extends ffi.Struct { - @ffi.UnsignedChar() - external int length; - - @ffi.Array.multi([36]) - external ffi.Array text; - - @ffi.UnsignedChar() - external int unused; -} - -final class UnnamedStruct$5 extends ffi.Struct { - @ffi.Int16() - external int top; - - @ffi.Int16() - external int left; - - @ffi.Int16() - external int bottom; - - @ffi.Int16() - external int right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int top, - required int left, - required int bottom, - required int right, - }) => $allocator() - ..ref.top = top - ..ref.left = left - ..ref.bottom = bottom - ..ref.right = right; -} - -final class UnnamedStruct$6 extends ffi.Struct { - @u_int16_t() - external int v; - - @u_int16_t() - external int h; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - required int h, - }) => $allocator() - ..ref.v = v - ..ref.h = h; -} - -final class UnnamedStruct$7 extends ffi.Struct { - @ffi.Int16() - external int v; - - @ffi.Int16() - external int h; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - required int h, - }) => $allocator() - ..ref.v = v - ..ref.h = h; -} - -final class UnnamedStruct$8 extends ffi.Struct { - @ffi.Char() - external int lo; - - @ffi.Char() - external int hi; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lo, - required int hi, - }) => $allocator() - ..ref.lo = lo - ..ref.hi = hi; -} - -final class UnnamedStruct$9 extends ffi.Struct { - @UInt16() - external int origCharSet; - - @SInt16() - external int repeat; - - @UInt16() - external int charSet; - - @UInt16() - external int charCode; - - @UInt16() - external int keyCode; - - @UInt16() - external int origCharCode; - - @SInt32() - external int reserved1; - - @UInt32() - external int keyboardType; - - @SInt32() - external int reserved2; - - @SInt32() - external int reserved3; - - @SInt32() - external int reserved4; - - @ffi.Array.multi([4]) - external ffi.Array reserved5; -} - -final class UnnamedUnion extends ffi.Union { - external CSSM_LIST Sublist; - - external SecAsn1Item Word; -} - -final class UnnamedUnion$1 extends ffi.Union { - external CSSM_DATA_PTR CertList; - - external CSSM_ENCODED_CERT_PTR EncodedCertList; - - external CSSM_PARSED_CERT_PTR ParsedCertList; - - external CSSM_CERT_PAIR_PTR PairCertList; -} - -final class UnnamedUnion$10 extends ffi.Union { - external IODetailedTimingInformationV1 v1; - - external IODetailedTimingInformationV2 v2; -} - -final class UnnamedUnion$11 extends ffi.Union { - @UInt32() - external int fullHashWord; - - external PEFSplitHashWord splitHashWord; -} - -final class UnnamedUnion$12 extends ffi.Union { - external NXTabletPointData point; - - external NXTabletProximityData proximity; -} - -final class UnnamedUnion$13 extends ffi.Union { - @ffi.Array.multi([11]) - external ffi.Array F; - - @ffi.Array.multi([11]) - external ffi.Array L; - - @ffi.Array.multi([22]) - external ffi.Array S; - - @ffi.Array.multi([44]) - external ffi.Array C; -} - -final class UnnamedUnion$14 extends ffi.Union { - external NXTabletPointData point; - - external NXTabletProximityData proximity; -} - -final class UnnamedUnion$15 extends ffi.Union { - external arm_thread_state32_t ts_32; - - external arm_thread_state64_t ts_64; -} - -final class UnnamedUnion$16 extends ffi.Union { - @boolean_t() - external int is_master; - - @boolean_t() - external int is_main; -} - -final class UnnamedUnion$2 extends ffi.Union { - external CSSM_DATA_PTR CrlList; - - external CSSM_ENCODED_CRL_PTR EncodedCrlList; - - external CSSM_PARSED_CRL_PTR ParsedCrlList; - - external CSSM_CRL_PAIR_PTR PairCrlList; -} - -final class UnnamedUnion$3 extends ffi.Union { - @ffi.Long() - external int gmtDelta; - - external UnnamedStruct$3 dls; -} - -final class UnnamedUnion$4 extends ffi.Union { - @ffi.Array.multi([2]) - external ffi.Array reserved; - - @mach_port_name_t() - external int work_interval_port; - - external mach_service_port_info_t service_port_info; - - @mach_port_name_t() - external int service_port_name; -} - -final class UnnamedUnion$5 extends ffi.Union { - @ffi.Array.multi([16]) - external ffi.Array<__uint8_t> __u6_addr8; - - @ffi.Array.multi([8]) - external ffi.Array<__uint16_t> __u6_addr16; - - @ffi.Array.multi([4]) - external ffi.Array<__uint32_t> __u6_addr32; -} - -final class UnnamedUnion$6 extends ffi.Union { - @ATSGeneration() - external int generationFilter; - - @ATSFontFamilyRef() - external int fontFamilyFilter; - - external ATSFontFamilyApplierFunction fontFamilyApplierFunctionFilter; - - external ATSFontApplierFunction fontApplierFunctionFilter; -} - -final class UnnamedUnion$7 extends ffi.Union { - external CMVideoCardGammaTable table; - - external CMVideoCardGammaFormula formula; -} - -final class UnnamedUnion$8 extends ffi.Union { - external ffi.Pointer fullName; - - external CSSM_X509_RDN_PTR rdn; -} - -final class UnnamedUnion$9 extends ffi.Union { - @u_int32_t() - external int iNodeNum; - - @u_int32_t() - external int linkCount; - - @u_int32_t() - external int rawDevice; -} - -typedef UnsignedFixed = UInt32; -typedef UnsignedFixedPtr = ffi.Pointer; - -@ffi.Packed(2) -final class UnsignedWide extends ffi.Struct { - @UInt32() - external int lo; - - @UInt32() - external int hi; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lo, - required int hi, - }) => $allocator() - ..ref.lo = lo - ..ref.hi = hi; -} - -typedef UnsignedWidePtr = ffi.Pointer; - -final class UntokenTable extends ffi.Struct { - @ffi.Short() - external int len; - - @ffi.Short() - external int lastToken; - - @ffi.Array.multi([256]) - external ffi.Array index$1; -} - -typedef UntokenTableHandle = ffi.Pointer; -typedef UntokenTablePtr = ffi.Pointer; - -const int UsrActivity = 1; - -typedef VDGamRecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class VDGammaRecord extends ffi.Struct { - external Ptr csGTable; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required Ptr csGTable, - }) => $allocator()..ref.csGTable = csGTable; -} - -typedef VHSelect = SInt8; - -final class Vector128 extends ffi.Union { - @ffi.Array.multi([4]) - external ffi.Array l; - - @ffi.Array.multi([8]) - external ffi.Array s; - - @ffi.Array.multi([16]) - external ffi.Array c; -} - -final class VectorInformation extends ffi.Struct { - external ffi.Pointer __unusedVectorInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedVectorInformationField, - }) => - $allocator() - ..ref.__unusedVectorInformationField = $unusedVectorInformationField; -} - -final class VectorInformationPowerPC extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array Registers; - - external Vector128 VSCR; - - @UInt32() - external int VRsave; -} - -final class VersRec extends ffi.Struct { - external NumVersion numericVersion; - - @ffi.Short() - external int countryCode; - - @ffi.Array.multi([256]) - external ffi.Array shortVersion; - - @ffi.Array.multi([256]) - external ffi.Array reserved; -} - -typedef VersRecHndl = ffi.Pointer; -typedef VersRecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class VoiceDescription extends ffi.Struct { - @SInt32() - external int length; - - external VoiceSpec voice; - - @SInt32() - external int version; - - @ffi.Array.multi([64]) - external ffi.Array name; - - @ffi.Array.multi([256]) - external ffi.Array comment; - - @SInt16() - external int gender; - - @SInt16() - external int age; - - @SInt16() - external int script; - - @SInt16() - external int language; - - @SInt16() - external int region; - - @ffi.Array.multi([4]) - external ffi.Array reserved; -} - -final class VoiceFileInfo extends ffi.Struct { - external FSSpec fileSpec; - - @SInt16() - external int resID; -} - -@ffi.Packed(2) -final class VoiceSpec extends ffi.Struct { - @OSType() - external int creator; - - @OSType() - external int id; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int creator, - required int id, - }) => $allocator() - ..ref.creator = creator - ..ref.id = id; -} - -typedef VoiceSpecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class VolMountInfoHeader extends ffi.Struct { - @SInt16() - external int length; - - @VolumeType() - external int media; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int length, - required int media, - }) => $allocator() - ..ref.length = length - ..ref.media = media; -} - -typedef VolMountInfoPtr = ffi.Pointer; - -@ffi.Packed(2) -final class VolumeMountInfoHeader extends ffi.Struct { - @SInt16() - external int length; - - @VolumeType() - external int media; - - @SInt16() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int length, - required int media, - required int flags, - }) => $allocator() - ..ref.length = length - ..ref.media = media - ..ref.flags = flags; -} - -typedef VolumeMountInfoHeaderPtr = ffi.Pointer; -typedef VolumeType = OSType; - -const int WDEFNFnd = 87; - -@ffi.Packed(2) -final class WSClientContext extends ffi.Struct { - @CFIndex() - external int version; - - external ffi.Pointer info; - - external WSClientContextRetainCallBackProcPtr retain; - - external WSClientContextReleaseCallBackProcPtr release; - - external WSClientContextCopyDescriptionCallBackProcPtr copyDescription; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer info, - required WSClientContextRetainCallBackProcPtr retain, - required WSClientContextReleaseCallBackProcPtr release, - required WSClientContextCopyDescriptionCallBackProcPtr copyDescription, - }) => $allocator() - ..ref.version = version - ..ref.info = info - ..ref.retain = retain - ..ref.release = release - ..ref.copyDescription = copyDescription; -} - -typedef WSClientContextCopyDescriptionCallBackProcPtr = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef WSClientContextReleaseCallBackProcPtr = - ffi.Pointer< - ffi.NativeFunction info)> - >; -typedef WSClientContextRetainCallBackProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer info) - > - >; -typedef WSMethodInvocationCallBackProcPtr = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - WSMethodInvocationRef invocation, - ffi.Pointer info, - CFDictionaryRef outRef, - ) - > - >; -typedef WSMethodInvocationDeserializationProcPtr = - ffi.Pointer< - ffi.NativeFunction< - CFTypeRef Function( - WSMethodInvocationRef invocation, - CFXMLTreeRef msgRoot, - CFXMLTreeRef deserializeRoot, - ffi.Pointer info, - ) - > - >; -typedef WSMethodInvocationRef = ffi.Pointer; -typedef WSMethodInvocationSerializationProcPtr = - ffi.Pointer< - ffi.NativeFunction< - CFStringRef Function( - WSMethodInvocationRef invocation, - CFTypeRef obj, - ffi.Pointer info, - ) - > - >; -typedef WSProtocolHandlerDeserializationProcPtr = - ffi.Pointer< - ffi.NativeFunction< - CFTypeRef Function( - WSProtocolHandlerRef protocol, - CFXMLTreeRef msgRoot, - CFXMLTreeRef deserializeRoot, - ffi.Pointer info, - ) - > - >; -typedef WSProtocolHandlerRef = ffi.Pointer; -typedef WSProtocolHandlerSerializationProcPtr = - ffi.Pointer< - ffi.NativeFunction< - CFStringRef Function( - WSProtocolHandlerRef protocol, - CFTypeRef obj, - ffi.Pointer info, - ) - > - >; - -enum WSTypeID { - eWSUnknownType(0), - eWSNullType(1), - eWSBooleanType(2), - eWSIntegerType(3), - eWSDoubleType(4), - eWSStringType(5), - eWSDateType(6), - eWSDataType(7), - eWSArrayType(8), - eWSDictionaryType(9); - - final int value; - const WSTypeID(this.value); - - static WSTypeID fromValue(int value) => switch (value) { - 0 => eWSUnknownType, - 1 => eWSNullType, - 2 => eWSBooleanType, - 3 => eWSIntegerType, - 4 => eWSDoubleType, - 5 => eWSStringType, - 6 => eWSDateType, - 7 => eWSDataType, - 8 => eWSArrayType, - 9 => eWSDictionaryType, - _ => throw ArgumentError('Unknown value for WSTypeID: $value'), - }; -} - -final class WideChar extends ffi.Union { - external UnnamedStruct$8 a; - - @ffi.Short() - external int b; -} - -final class WideCharArr extends ffi.Struct { - @ffi.Short() - external int size; - - @ffi.Array.multi([10]) - external ffi.Array data; -} - -typedef WidePtr = ffi.Pointer; -typedef WindowPtr = ffi.Pointer; -typedef WindowRef = WindowPtr; - -final class WritingCode extends ffi.Struct { - @ScriptCode() - external int theScriptCode; - - @LangCode() - external int theLangCode; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int theScriptCode, - required int theLangCode, - }) => $allocator() - ..ref.theScriptCode = theScriptCode - ..ref.theLangCode = theLangCode; -} - -@ffi.Packed(2) -final class XLibContainerHeader extends ffi.Struct { - @OSType() - external int tag1; - - @OSType() - external int tag2; - - @UInt32() - external int currentFormat; - - @UInt32() - external int containerStringsOffset; - - @UInt32() - external int exportHashOffset; - - @UInt32() - external int exportKeyOffset; - - @UInt32() - external int exportSymbolOffset; - - @UInt32() - external int exportNamesOffset; - - @UInt32() - external int exportHashTablePower; - - @UInt32() - external int exportedSymbolCount; - - @UInt32() - external int fragNameOffset; - - @UInt32() - external int fragNameLength; - - @UInt32() - external int dylibPathOffset; - - @UInt32() - external int dylibPathLength; - - @OSType() - external int cpuFamily; - - @OSType() - external int cpuModel; - - @UInt32() - external int dateTimeStamp; - - @UInt32() - external int currentVersion; - - @UInt32() - external int oldDefVersion; - - @UInt32() - external int oldImpVersion; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tag1, - required int tag2, - required int currentFormat, - required int containerStringsOffset, - required int exportHashOffset, - required int exportKeyOffset, - required int exportSymbolOffset, - required int exportNamesOffset, - required int exportHashTablePower, - required int exportedSymbolCount, - required int fragNameOffset, - required int fragNameLength, - required int dylibPathOffset, - required int dylibPathLength, - required int cpuFamily, - required int cpuModel, - required int dateTimeStamp, - required int currentVersion, - required int oldDefVersion, - required int oldImpVersion, - }) => $allocator() - ..ref.tag1 = tag1 - ..ref.tag2 = tag2 - ..ref.currentFormat = currentFormat - ..ref.containerStringsOffset = containerStringsOffset - ..ref.exportHashOffset = exportHashOffset - ..ref.exportKeyOffset = exportKeyOffset - ..ref.exportSymbolOffset = exportSymbolOffset - ..ref.exportNamesOffset = exportNamesOffset - ..ref.exportHashTablePower = exportHashTablePower - ..ref.exportedSymbolCount = exportedSymbolCount - ..ref.fragNameOffset = fragNameOffset - ..ref.fragNameLength = fragNameLength - ..ref.dylibPathOffset = dylibPathOffset - ..ref.dylibPathLength = dylibPathLength - ..ref.cpuFamily = cpuFamily - ..ref.cpuModel = cpuModel - ..ref.dateTimeStamp = dateTimeStamp - ..ref.currentVersion = currentVersion - ..ref.oldDefVersion = oldDefVersion - ..ref.oldImpVersion = oldImpVersion; -} - -@ffi.Packed(2) -final class XLibExportedSymbol extends ffi.Struct { - @UInt32() - external int classAndName; - - @UInt32() - external int bpOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int classAndName, - required int bpOffset, - }) => $allocator() - ..ref.classAndName = classAndName - ..ref.bpOffset = bpOffset; -} - -typedef XLibExportedSymbolHashSlot = PEFExportedSymbolHashSlot; -typedef XLibExportedSymbolKey = PEFExportedSymbolKey; - -const int XPC_ACTIVITY_STATE_CHECK_IN = 0; - -const int XPC_ACTIVITY_STATE_CONTINUE = 4; - -const int XPC_ACTIVITY_STATE_DEFER = 3; - -const int XPC_ACTIVITY_STATE_DONE = 5; - -const int XPC_ACTIVITY_STATE_RUN = 2; - -const int XPC_ACTIVITY_STATE_WAIT = 1; - -extension type _BlockArgs_112ozxo._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_112ozxo] that points to the same underlying object as [other]. - _BlockArgs_112ozxo.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_112ozxo] that wraps the given raw object pointer. - _BlockArgs_112ozxo.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_112ozxo]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_112ozxo, - ); -} - -extension _BlockArgs_112ozxo$Methods on _BlockArgs_112ozxo { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg3); - return ObjCBlock_ffiVoid_NSInputStream.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_117e0ww._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_117e0ww] that points to the same underlying object as [other]. - _BlockArgs_117e0ww.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_117e0ww] that wraps the given raw object pointer. - _BlockArgs_117e0ww.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_117e0ww]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_117e0ww, - ); -} - -extension _BlockArgs_117e0ww$Methods on _BlockArgs_117e0ww { - objc.NSError? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_11uyayp._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_11uyayp] that points to the same underlying object as [other]. - _BlockArgs_11uyayp.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_11uyayp] that wraps the given raw object pointer. - _BlockArgs_11uyayp.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_11uyayp]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_11uyayp, - ); -} - -extension _BlockArgs_11uyayp$Methods on _BlockArgs_11uyayp { - Dartdispatch_data_t? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - int get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_121fmzs._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_121fmzs] that points to the same underlying object as [other]. - _BlockArgs_121fmzs.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_121fmzs] that wraps the given raw object pointer. - _BlockArgs_121fmzs.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_121fmzs]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_121fmzs, - ); -} - -extension _BlockArgs_121fmzs$Methods on _BlockArgs_121fmzs { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_12cm2y5._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_12cm2y5] that points to the same underlying object as [other]. - _BlockArgs_12cm2y5.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_12cm2y5] that wraps the given raw object pointer. - _BlockArgs_12cm2y5.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_12cm2y5]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_12cm2y5, - ); -} - -extension _BlockArgs_12cm2y5$Methods on _BlockArgs_12cm2y5 { - objc.ObjCBlock? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_12rv5aa._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_12rv5aa] that points to the same underlying object as [other]. - _BlockArgs_12rv5aa.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_12rv5aa] that wraps the given raw object pointer. - _BlockArgs_12rv5aa.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_12rv5aa]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_12rv5aa, - ); -} - -extension _BlockArgs_12rv5aa$Methods on _BlockArgs_12rv5aa { - SecTrustRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_arg0); - } - - SecTrustResultType get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_1hbj4cd(_$$ref.pointer, _sel_arg1); - return SecTrustResultType.fromValue($ret); - } -} - -extension type _BlockArgs_12tf05r._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_12tf05r] that points to the same underlying object as [other]. - _BlockArgs_12tf05r.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_12tf05r] that wraps the given raw object pointer. - _BlockArgs_12tf05r.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_12tf05r]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_12tf05r, - ); -} - -extension _BlockArgs_12tf05r$Methods on _BlockArgs_12tf05r { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_12ykekb._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_12ykekb] that points to the same underlying object as [other]. - _BlockArgs_12ykekb.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_12ykekb] that wraps the given raw object pointer. - _BlockArgs_12ykekb.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_12ykekb]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_12ykekb, - ); -} - -extension _BlockArgs_12ykekb$Methods on _BlockArgs_12ykekb { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - NSURLRequest get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLRequest.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_133h48c._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_133h48c] that points to the same underlying object as [other]. - _BlockArgs_133h48c.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_133h48c] that wraps the given raw object pointer. - _BlockArgs_133h48c.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_133h48c]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_133h48c, - ); -} - -extension _BlockArgs_133h48c$Methods on _BlockArgs_133h48c { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - DartNSInteger get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg2); - } - - DartNSInteger get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg3); - } - - DartNSInteger get arg4 { - final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg4); - } -} - -extension type _BlockArgs_136y7ma._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_136y7ma] that points to the same underlying object as [other]. - _BlockArgs_136y7ma.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_136y7ma] that wraps the given raw object pointer. - _BlockArgs_136y7ma.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_136y7ma]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_136y7ma, - ); -} - -extension _BlockArgs_136y7ma$Methods on _BlockArgs_136y7ma { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.NSURLHandle get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_13g89k6._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_13g89k6] that points to the same underlying object as [other]. - _BlockArgs_13g89k6.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_13g89k6] that wraps the given raw object pointer. - _BlockArgs_13g89k6.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_13g89k6]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_13g89k6, - ); -} - -extension _BlockArgs_13g89k6$Methods on _BlockArgs_13g89k6 { - CFErrorRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_13o2rom._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_13o2rom] that points to the same underlying object as [other]. - _BlockArgs_13o2rom.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_13o2rom] that wraps the given raw object pointer. - _BlockArgs_13o2rom.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_13o2rom]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_13o2rom, - ); -} - -extension _BlockArgs_13o2rom$Methods on _BlockArgs_13o2rom { - NSURLCredential? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSURLCredential.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_13sb76x._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_13sb76x] that points to the same underlying object as [other]. - _BlockArgs_13sb76x.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_13sb76x] that wraps the given raw object pointer. - _BlockArgs_13sb76x.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_13sb76x]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_13sb76x, - ); -} - -extension _BlockArgs_13sb76x$Methods on _BlockArgs_13sb76x { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_140cpyj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_140cpyj] that points to the same underlying object as [other]. - _BlockArgs_140cpyj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_140cpyj] that wraps the given raw object pointer. - _BlockArgs_140cpyj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_140cpyj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_140cpyj, - ); -} - -extension _BlockArgs_140cpyj$Methods on _BlockArgs_140cpyj { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDataTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDownloadTask get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_14dahaa._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_14dahaa] that points to the same underlying object as [other]. - _BlockArgs_14dahaa.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_14dahaa] that wraps the given raw object pointer. - _BlockArgs_14dahaa.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_14dahaa]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_14dahaa, - ); -} - -extension _BlockArgs_14dahaa$Methods on _BlockArgs_14dahaa { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - objc.NSError get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_14lm7fk._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_14lm7fk] that points to the same underlying object as [other]. - _BlockArgs_14lm7fk.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_14lm7fk] that wraps the given raw object pointer. - _BlockArgs_14lm7fk.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_14lm7fk]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_14lm7fk, - ); -} - -extension _BlockArgs_14lm7fk$Methods on _BlockArgs_14lm7fk { - CFRunLoopObserverRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1bonwe(_$$ref.pointer, _sel_arg0); - } - - DartCFOptionFlags get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_vkpxx6(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_15cdu5z._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_15cdu5z] that points to the same underlying object as [other]. - _BlockArgs_15cdu5z.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_15cdu5z] that wraps the given raw object pointer. - _BlockArgs_15cdu5z.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_15cdu5z]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_15cdu5z, - ); -} - -extension _BlockArgs_15cdu5z$Methods on _BlockArgs_15cdu5z { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDataTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - NSCachedURLResponse get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return NSCachedURLResponse.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); - return ObjCBlock_ffiVoid_NSCachedURLResponse.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_15jt9u5._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_15jt9u5] that points to the same underlying object as [other]. - _BlockArgs_15jt9u5.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_15jt9u5] that wraps the given raw object pointer. - _BlockArgs_15jt9u5.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_15jt9u5]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_15jt9u5, - ); -} - -extension _BlockArgs_15jt9u5$Methods on _BlockArgs_15jt9u5 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_15vjajw._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_15vjajw] that points to the same underlying object as [other]. - _BlockArgs_15vjajw.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_15vjajw] that wraps the given raw object pointer. - _BlockArgs_15vjajw.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_15vjajw]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_15vjajw, - ); -} - -extension _BlockArgs_15vjajw$Methods on _BlockArgs_15vjajw { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_16ix251._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_16ix251] that points to the same underlying object as [other]. - _BlockArgs_16ix251.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_16ix251] that wraps the given raw object pointer. - _BlockArgs_16ix251.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_16ix251]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_16ix251, - ); -} - -extension _BlockArgs_16ix251$Methods on _BlockArgs_16ix251 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDataTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_16t4ozp._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_16t4ozp] that points to the same underlying object as [other]. - _BlockArgs_16t4ozp.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_16t4ozp] that wraps the given raw object pointer. - _BlockArgs_16t4ozp.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_16t4ozp]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_16t4ozp, - ); -} - -extension _BlockArgs_16t4ozp$Methods on _BlockArgs_16t4ozp { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSNetService get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSNetService.fromPointer($ret, retain: true, release: true); - } - - objc.NSDictionary get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_170i760._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_170i760] that points to the same underlying object as [other]. - _BlockArgs_170i760.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_170i760] that wraps the given raw object pointer. - _BlockArgs_170i760.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_170i760]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_170i760, - ); -} - -extension _BlockArgs_170i760$Methods on _BlockArgs_170i760 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSKeyedArchiver get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCObject? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - objc.ObjCObject? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_171cldw._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_171cldw] that points to the same underlying object as [other]. - _BlockArgs_171cldw.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_171cldw] that wraps the given raw object pointer. - _BlockArgs_171cldw.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_171cldw]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_171cldw, - ); -} - -extension _BlockArgs_171cldw$Methods on _BlockArgs_171cldw { - NSURLSessionDelayedRequestDisposition get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_tyifel(_$$ref.pointer, _sel_arg0); - return NSURLSessionDelayedRequestDisposition.fromValue($ret); - } - - NSURLRequest? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : NSURLRequest.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_17jmtfx._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_17jmtfx] that points to the same underlying object as [other]. - _BlockArgs_17jmtfx.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_17jmtfx] that wraps the given raw object pointer. - _BlockArgs_17jmtfx.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_17jmtfx]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_17jmtfx, - ); -} - -extension _BlockArgs_17jmtfx$Methods on _BlockArgs_17jmtfx { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionWebSocketTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionWebSocketTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - NSURLSessionWebSocketCloseCode get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_1rhk8uh(_$$ref.pointer, _sel_arg3); - return NSURLSessionWebSocketCloseCode.fromValue($ret); - } - - objc.NSData? get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_17mefw7._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_17mefw7] that points to the same underlying object as [other]. - _BlockArgs_17mefw7.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_17mefw7] that wraps the given raw object pointer. - _BlockArgs_17mefw7.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_17mefw7]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_17mefw7, - ); -} - -extension _BlockArgs_17mefw7$Methods on _BlockArgs_17mefw7 { - CFArrayRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_odvxky(_$$ref.pointer, _sel_arg0); - } - - CFErrorRef get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_17xklgp._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_17xklgp] that points to the same underlying object as [other]. - _BlockArgs_17xklgp.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_17xklgp] that wraps the given raw object pointer. - _BlockArgs_17xklgp.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_17xklgp]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_17xklgp, - ); -} - -extension _BlockArgs_17xklgp$Methods on _BlockArgs_17xklgp { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSError get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_18kc0nv._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_18kc0nv] that points to the same underlying object as [other]. - _BlockArgs_18kc0nv.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_18kc0nv] that wraps the given raw object pointer. - _BlockArgs_18kc0nv.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_18kc0nv]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_18kc0nv, - ); -} - -extension _BlockArgs_18kc0nv$Methods on _BlockArgs_18kc0nv { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_197qivc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_197qivc] that points to the same underlying object as [other]. - _BlockArgs_197qivc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_197qivc] that wraps the given raw object pointer. - _BlockArgs_197qivc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_197qivc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_197qivc, - ); -} - -extension _BlockArgs_197qivc$Methods on _BlockArgs_197qivc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSUserActivity get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSUserActivity.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_19pyqcd._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_19pyqcd] that points to the same underlying object as [other]. - _BlockArgs_19pyqcd.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_19pyqcd] that wraps the given raw object pointer. - _BlockArgs_19pyqcd.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_19pyqcd]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_19pyqcd, - ); -} - -extension _BlockArgs_19pyqcd$Methods on _BlockArgs_19pyqcd { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - DartNSUInteger get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_19rrqmo._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_19rrqmo] that points to the same underlying object as [other]. - _BlockArgs_19rrqmo.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_19rrqmo] that wraps the given raw object pointer. - _BlockArgs_19rrqmo.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_19rrqmo]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_19rrqmo, - ); -} - -extension _BlockArgs_19rrqmo$Methods on _BlockArgs_19rrqmo { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSNetServiceBrowser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1ayzt6i._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ayzt6i] that points to the same underlying object as [other]. - _BlockArgs_1ayzt6i.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ayzt6i] that wraps the given raw object pointer. - _BlockArgs_1ayzt6i.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ayzt6i]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ayzt6i, - ); -} - -extension _BlockArgs_1ayzt6i$Methods on _BlockArgs_1ayzt6i { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - NSHTTPURLResponse get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return NSHTTPURLResponse.fromPointer($ret, retain: true, release: true); - } - - NSURLRequest get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); - return NSURLRequest.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg5 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg5); - return ObjCBlock_ffiVoid_NSURLRequest.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1ciefi0._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ciefi0] that points to the same underlying object as [other]. - _BlockArgs_1ciefi0.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ciefi0] that wraps the given raw object pointer. - _BlockArgs_1ciefi0.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ciefi0]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ciefi0, - ); -} - -extension _BlockArgs_1ciefi0$Methods on _BlockArgs_1ciefi0 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSKeyedArchiver get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1e1kc88._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1e1kc88] that points to the same underlying object as [other]. - _BlockArgs_1e1kc88.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1e1kc88] that wraps the given raw object pointer. - _BlockArgs_1e1kc88.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1e1kc88]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1e1kc88, - ); -} - -extension _BlockArgs_1e1kc88$Methods on _BlockArgs_1e1kc88 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.NSPortMessage get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSPortMessage.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1e3xl1p._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1e3xl1p] that points to the same underlying object as [other]. - _BlockArgs_1e3xl1p.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1e3xl1p] that wraps the given raw object pointer. - _BlockArgs_1e3xl1p.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1e3xl1p]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1e3xl1p, - ); -} - -extension _BlockArgs_1e3xl1p$Methods on _BlockArgs_1e3xl1p { - Dartsec_protocol_metadata_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartsec_trust_t get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartsec_protocol_verify_complete_t get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); - return ObjCBlock_ffiVoid_bool.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1ek5uoy._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ek5uoy] that points to the same underlying object as [other]. - _BlockArgs_1ek5uoy.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ek5uoy] that wraps the given raw object pointer. - _BlockArgs_1ek5uoy.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ek5uoy]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ek5uoy, - ); -} - -extension _BlockArgs_1ek5uoy$Methods on _BlockArgs_1ek5uoy { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1f64crj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1f64crj] that points to the same underlying object as [other]. - _BlockArgs_1f64crj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1f64crj] that wraps the given raw object pointer. - _BlockArgs_1f64crj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1f64crj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1f64crj, - ); -} - -extension _BlockArgs_1f64crj$Methods on _BlockArgs_1f64crj { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1fj0jrw._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1fj0jrw] that points to the same underlying object as [other]. - _BlockArgs_1fj0jrw.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1fj0jrw] that wraps the given raw object pointer. - _BlockArgs_1fj0jrw.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1fj0jrw]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1fj0jrw, - ); -} - -extension _BlockArgs_1fj0jrw$Methods on _BlockArgs_1fj0jrw { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1giidhf._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1giidhf] that points to the same underlying object as [other]. - _BlockArgs_1giidhf.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1giidhf] that wraps the given raw object pointer. - _BlockArgs_1giidhf.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1giidhf]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1giidhf, - ); -} - -extension _BlockArgs_1giidhf$Methods on _BlockArgs_1giidhf { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - AVAudioPlayer get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return AVAudioPlayer.fromPointer($ret, retain: true, release: true); - } - - bool get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_1gmgda9._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1gmgda9] that points to the same underlying object as [other]. - _BlockArgs_1gmgda9.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1gmgda9] that wraps the given raw object pointer. - _BlockArgs_1gmgda9.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1gmgda9]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1gmgda9, - ); -} - -extension _BlockArgs_1gmgda9$Methods on _BlockArgs_1gmgda9 { - NSAppleEventDescriptor? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSAppleEventDescriptor.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1hj9xku._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1hj9xku] that points to the same underlying object as [other]. - _BlockArgs_1hj9xku.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1hj9xku] that wraps the given raw object pointer. - _BlockArgs_1hj9xku.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1hj9xku]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1hj9xku, - ); -} - -extension _BlockArgs_1hj9xku$Methods on _BlockArgs_1hj9xku { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1hs0ws6._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1hs0ws6] that points to the same underlying object as [other]. - _BlockArgs_1hs0ws6.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1hs0ws6] that wraps the given raw object pointer. - _BlockArgs_1hs0ws6.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1hs0ws6]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1hs0ws6, - ); -} - -extension _BlockArgs_1hs0ws6$Methods on _BlockArgs_1hs0ws6 { - CFErrorRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg0); - } - - ffi.Pointer get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1vkunzi(_$$ref.pointer, _sel_arg1); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1wgub22(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_1hwelu._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1hwelu] that points to the same underlying object as [other]. - _BlockArgs_1hwelu.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1hwelu] that wraps the given raw object pointer. - _BlockArgs_1hwelu.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1hwelu]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1hwelu, - ); -} - -extension _BlockArgs_1hwelu$Methods on _BlockArgs_1hwelu { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLDownload get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLDownload.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1i7oea2._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1i7oea2] that points to the same underlying object as [other]. - _BlockArgs_1i7oea2.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1i7oea2] that wraps the given raw object pointer. - _BlockArgs_1i7oea2.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1i7oea2]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1i7oea2, - ); -} - -extension _BlockArgs_1i7oea2$Methods on _BlockArgs_1i7oea2 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1j32c3t._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1j32c3t] that points to the same underlying object as [other]. - _BlockArgs_1j32c3t.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1j32c3t] that wraps the given raw object pointer. - _BlockArgs_1j32c3t.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1j32c3t]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1j32c3t, - ); -} - -extension _BlockArgs_1j32c3t$Methods on _BlockArgs_1j32c3t { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSUserActivity get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSUserActivity.fromPointer($ret, retain: true, release: true); - } - - objc.NSInputStream get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - objc.NSOutputStream get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1jcra61._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1jcra61] that points to the same underlying object as [other]. - _BlockArgs_1jcra61.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1jcra61] that wraps the given raw object pointer. - _BlockArgs_1jcra61.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1jcra61]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1jcra61, - ); -} - -extension _BlockArgs_1jcra61$Methods on _BlockArgs_1jcra61 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1kowxjl._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1kowxjl] that points to the same underlying object as [other]. - _BlockArgs_1kowxjl.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1kowxjl] that wraps the given raw object pointer. - _BlockArgs_1kowxjl.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1kowxjl]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1kowxjl, - ); -} - -extension _BlockArgs_1kowxjl$Methods on _BlockArgs_1kowxjl { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSDictionary get arg5 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1l7b9ji._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1l7b9ji] that points to the same underlying object as [other]. - _BlockArgs_1l7b9ji.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1l7b9ji] that wraps the given raw object pointer. - _BlockArgs_1l7b9ji.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1l7b9ji]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1l7b9ji, - ); -} - -extension _BlockArgs_1l7b9ji$Methods on _BlockArgs_1l7b9ji { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDownloadTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); - } - - int get arg4 { - final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); - } -} - -extension type _BlockArgs_1lr5l4t._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1lr5l4t] that points to the same underlying object as [other]. - _BlockArgs_1lr5l4t.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1lr5l4t] that wraps the given raw object pointer. - _BlockArgs_1lr5l4t.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1lr5l4t]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1lr5l4t, - ); -} - -extension _BlockArgs_1lr5l4t$Methods on _BlockArgs_1lr5l4t { - CGDisplayStreamFrameStatus get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_jbzgy2(_$$ref.pointer, _sel_arg0); - return CGDisplayStreamFrameStatus.fromValue($ret); - } - - int get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_9qbz9w(_$$ref.pointer, _sel_arg1); - } - - IOSurfaceRef get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_11nrymb(_$$ref.pointer, _sel_arg2); - } - - CGDisplayStreamUpdateRef get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_16a25o7(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_1ltqoqj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ltqoqj] that points to the same underlying object as [other]. - _BlockArgs_1ltqoqj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ltqoqj] that wraps the given raw object pointer. - _BlockArgs_1ltqoqj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ltqoqj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ltqoqj, - ); -} - -extension _BlockArgs_1ltqoqj$Methods on _BlockArgs_1ltqoqj { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - DartNSUInteger get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_1mv87bk._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1mv87bk] that points to the same underlying object as [other]. - _BlockArgs_1mv87bk.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1mv87bk] that wraps the given raw object pointer. - _BlockArgs_1mv87bk.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1mv87bk]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1mv87bk, - ); -} - -extension _BlockArgs_1mv87bk$Methods on _BlockArgs_1mv87bk { - objc.NSData? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1n468bj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1n468bj] that points to the same underlying object as [other]. - _BlockArgs_1n468bj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1n468bj] that wraps the given raw object pointer. - _BlockArgs_1n468bj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1n468bj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1n468bj, - ); -} - -extension _BlockArgs_1n468bj$Methods on _BlockArgs_1n468bj { - Dartdispatch_data_t? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1n5meg5._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1n5meg5] that points to the same underlying object as [other]. - _BlockArgs_1n5meg5.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1n5meg5] that wraps the given raw object pointer. - _BlockArgs_1n5meg5.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1n5meg5]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1n5meg5, - ); -} - -extension _BlockArgs_1n5meg5$Methods on _BlockArgs_1n5meg5 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - NSHTTPURLResponse get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return NSHTTPURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1n6ph2._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1n6ph2] that points to the same underlying object as [other]. - _BlockArgs_1n6ph2.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1n6ph2] that wraps the given raw object pointer. - _BlockArgs_1n6ph2.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1n6ph2]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1n6ph2, - ); -} - -extension _BlockArgs_1n6ph2$Methods on _BlockArgs_1n6ph2 { - NSURLRequest? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSURLRequest.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1nn0na._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1nn0na] that points to the same underlying object as [other]. - _BlockArgs_1nn0na.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1nn0na] that wraps the given raw object pointer. - _BlockArgs_1nn0na.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1nn0na]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1nn0na, - ); -} - -extension _BlockArgs_1nn0na$Methods on _BlockArgs_1nn0na { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSNetServiceBrowser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - bool get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_1nq9pr6._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1nq9pr6] that points to the same underlying object as [other]. - _BlockArgs_1nq9pr6.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1nq9pr6] that wraps the given raw object pointer. - _BlockArgs_1nq9pr6.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1nq9pr6]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1nq9pr6, - ); -} - -extension _BlockArgs_1nq9pr6$Methods on _BlockArgs_1nq9pr6 { - Dartsec_protocol_metadata_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartdispatch_data_t? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartsec_protocol_pre_shared_key_selection_complete_t get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); - return ObjCBlock_ffiVoid_NSObject$1.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1o2efq5._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1o2efq5] that points to the same underlying object as [other]. - _BlockArgs_1o2efq5.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1o2efq5] that wraps the given raw object pointer. - _BlockArgs_1o2efq5.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1o2efq5]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1o2efq5, - ); -} - -extension _BlockArgs_1o2efq5$Methods on _BlockArgs_1o2efq5 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSKeyedUnarchiver get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSKeyedUnarchiver.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCObject get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.ObjCObject($ret, retain: true, release: true); - } - - objc.ObjCObject get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1o8dtl._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1o8dtl] that points to the same underlying object as [other]. - _BlockArgs_1o8dtl.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1o8dtl] that wraps the given raw object pointer. - _BlockArgs_1o8dtl.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1o8dtl]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1o8dtl, - ); -} - -extension _BlockArgs_1o8dtl$Methods on _BlockArgs_1o8dtl { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLCredential get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLCredential.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1odc9lb._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1odc9lb] that points to the same underlying object as [other]. - _BlockArgs_1odc9lb.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1odc9lb] that wraps the given raw object pointer. - _BlockArgs_1odc9lb.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1odc9lb]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1odc9lb, - ); -} - -extension _BlockArgs_1odc9lb$Methods on _BlockArgs_1odc9lb { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - objc.NSURL get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1oetg5g._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1oetg5g] that points to the same underlying object as [other]. - _BlockArgs_1oetg5g.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1oetg5g] that wraps the given raw object pointer. - _BlockArgs_1oetg5g.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1oetg5g]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1oetg5g, - ); -} - -extension _BlockArgs_1oetg5g$Methods on _BlockArgs_1oetg5g { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSKeyedArchiver get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSKeyedArchiver.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCObject? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1oftdow._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1oftdow] that points to the same underlying object as [other]. - _BlockArgs_1oftdow.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1oftdow] that wraps the given raw object pointer. - _BlockArgs_1oftdow.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1oftdow]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1oftdow, - ); -} - -extension _BlockArgs_1oftdow$Methods on _BlockArgs_1oftdow { - NSURLResponse? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - objc.NSData? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1p1ax08._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1p1ax08] that points to the same underlying object as [other]. - _BlockArgs_1p1ax08.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1p1ax08] that wraps the given raw object pointer. - _BlockArgs_1p1ax08.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1p1ax08]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1p1ax08, - ); -} - -extension _BlockArgs_1p1ax08$Methods on _BlockArgs_1p1ax08 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1p7ak3v._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1p7ak3v] that points to the same underlying object as [other]. - _BlockArgs_1p7ak3v.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1p7ak3v] that wraps the given raw object pointer. - _BlockArgs_1p7ak3v.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1p7ak3v]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1p7ak3v, - ); -} - -extension _BlockArgs_1p7ak3v$Methods on _BlockArgs_1p7ak3v { - objc.NSArray? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1pfucun._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1pfucun] that points to the same underlying object as [other]. - _BlockArgs_1pfucun.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1pfucun] that wraps the given raw object pointer. - _BlockArgs_1pfucun.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1pfucun]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1pfucun, - ); -} - -extension _BlockArgs_1pfucun$Methods on _BlockArgs_1pfucun { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDownloadTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); - } - - int get arg4 { - final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); - } - - int get arg5 { - final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg5); - } -} - -extension type _BlockArgs_1pfw36l._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1pfw36l] that points to the same underlying object as [other]. - _BlockArgs_1pfw36l.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1pfw36l] that wraps the given raw object pointer. - _BlockArgs_1pfw36l.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1pfw36l]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1pfw36l, - ); -} - -extension _BlockArgs_1pfw36l$Methods on _BlockArgs_1pfw36l { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSKeyedUnarchiver get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSKeyedUnarchiver.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1pj0but._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1pj0but] that points to the same underlying object as [other]. - _BlockArgs_1pj0but.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1pj0but] that wraps the given raw object pointer. - _BlockArgs_1pj0but.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1pj0but]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1pj0but, - ); -} - -extension _BlockArgs_1pj0but$Methods on _BlockArgs_1pj0but { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSNetService get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSNetService.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1ptzs7z._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ptzs7z] that points to the same underlying object as [other]. - _BlockArgs_1ptzs7z.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ptzs7z] that wraps the given raw object pointer. - _BlockArgs_1ptzs7z.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ptzs7z]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ptzs7z, - ); -} - -extension _BlockArgs_1ptzs7z$Methods on _BlockArgs_1ptzs7z { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.NSString get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1pvrxoh._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1pvrxoh] that points to the same underlying object as [other]. - _BlockArgs_1pvrxoh.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1pvrxoh] that wraps the given raw object pointer. - _BlockArgs_1pvrxoh.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1pvrxoh]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1pvrxoh, - ); -} - -extension _BlockArgs_1pvrxoh$Methods on _BlockArgs_1pvrxoh { - objc.NSString? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - NSRange get arg1 { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - NSRange get arg2 { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg2) - : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg2); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - ffi.Pointer get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_1q305zu._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1q305zu] that points to the same underlying object as [other]. - _BlockArgs_1q305zu.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1q305zu] that wraps the given raw object pointer. - _BlockArgs_1q305zu.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1q305zu]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1q305zu, - ); -} - -extension _BlockArgs_1q305zu$Methods on _BlockArgs_1q305zu { - Dartsec_certificate_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1r6tt56._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1r6tt56] that points to the same underlying object as [other]. - _BlockArgs_1r6tt56.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1r6tt56] that wraps the given raw object pointer. - _BlockArgs_1r6tt56.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1r6tt56]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1r6tt56, - ); -} - -extension _BlockArgs_1r6tt56$Methods on _BlockArgs_1r6tt56 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1s0z6xl._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1s0z6xl] that points to the same underlying object as [other]. - _BlockArgs_1s0z6xl.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1s0z6xl] that wraps the given raw object pointer. - _BlockArgs_1s0z6xl.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1s0z6xl]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1s0z6xl, - ); -} - -extension _BlockArgs_1s0z6xl$Methods on _BlockArgs_1s0z6xl { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.ObjCBlock get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); - return ObjCBlock_ffiVoid_NSError.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1s2j81k._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1s2j81k] that points to the same underlying object as [other]. - _BlockArgs_1s2j81k.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1s2j81k] that wraps the given raw object pointer. - _BlockArgs_1s2j81k.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1s2j81k]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1s2j81k, - ); -} - -extension _BlockArgs_1s2j81k$Methods on _BlockArgs_1s2j81k { - int get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_1siniii._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1siniii] that points to the same underlying object as [other]. - _BlockArgs_1siniii.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1siniii] that wraps the given raw object pointer. - _BlockArgs_1siniii.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1siniii]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1siniii, - ); -} - -extension _BlockArgs_1siniii$Methods on _BlockArgs_1siniii { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.NSURL get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - NSFileVersion get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSFileVersion.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1sucxsg._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1sucxsg] that points to the same underlying object as [other]. - _BlockArgs_1sucxsg.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1sucxsg] that wraps the given raw object pointer. - _BlockArgs_1sucxsg.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1sucxsg]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1sucxsg, - ); -} - -extension _BlockArgs_1sucxsg$Methods on _BlockArgs_1sucxsg { - CFTypeRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - CFErrorRef get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg1); - } - - DartBoolean get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1ko4qka(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_1sy9q99._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1sy9q99] that points to the same underlying object as [other]. - _BlockArgs_1sy9q99.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1sy9q99] that wraps the given raw object pointer. - _BlockArgs_1sy9q99.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1sy9q99]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1sy9q99, - ); -} - -extension _BlockArgs_1sy9q99$Methods on _BlockArgs_1sy9q99 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSCache get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSCache.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCObject get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1tklz9g._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1tklz9g] that points to the same underlying object as [other]. - _BlockArgs_1tklz9g.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1tklz9g] that wraps the given raw object pointer. - _BlockArgs_1tklz9g.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1tklz9g]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1tklz9g, - ); -} - -extension _BlockArgs_1tklz9g$Methods on _BlockArgs_1tklz9g { - objc.ObjCObject? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1uc4fg7._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1uc4fg7] that points to the same underlying object as [other]. - _BlockArgs_1uc4fg7.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1uc4fg7] that wraps the given raw object pointer. - _BlockArgs_1uc4fg7.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1uc4fg7]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1uc4fg7, - ); -} - -extension _BlockArgs_1uc4fg7$Methods on _BlockArgs_1uc4fg7 { - NSTextCheckingResult? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSTextCheckingResult.fromPointer($ret, retain: true, release: true); - } - - DartNSUInteger get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1d2nxes(_$$ref.pointer, _sel_arg1); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_1uox71a._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1uox71a] that points to the same underlying object as [other]. - _BlockArgs_1uox71a.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1uox71a] that wraps the given raw object pointer. - _BlockArgs_1uox71a.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1uox71a]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1uox71a, - ); -} - -extension _BlockArgs_1uox71a$Methods on _BlockArgs_1uox71a { - Dartxpc_object_t? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartxpc_object_t? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1ura76._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1ura76] that points to the same underlying object as [other]. - _BlockArgs_1ura76.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1ura76] that wraps the given raw object pointer. - _BlockArgs_1ura76.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1ura76]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1ura76, - ); -} - -extension _BlockArgs_1ura76$Methods on _BlockArgs_1ura76 { - objc.NSInputStream? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1usrzbh._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1usrzbh] that points to the same underlying object as [other]. - _BlockArgs_1usrzbh.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1usrzbh] that wraps the given raw object pointer. - _BlockArgs_1usrzbh.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1usrzbh]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1usrzbh, - ); -} - -extension _BlockArgs_1usrzbh$Methods on _BlockArgs_1usrzbh { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSSpellServer get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSSpellServer.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1v0sc8._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1v0sc8] that points to the same underlying object as [other]. - _BlockArgs_1v0sc8.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1v0sc8] that wraps the given raw object pointer. - _BlockArgs_1v0sc8.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1v0sc8]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1v0sc8, - ); -} - -extension _BlockArgs_1v0sc8$Methods on _BlockArgs_1v0sc8 { - DartSInt32 get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg0); - } - - ffi.Pointer get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1dpg4ct(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_1x2wp90._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1x2wp90] that points to the same underlying object as [other]. - _BlockArgs_1x2wp90.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1x2wp90] that wraps the given raw object pointer. - _BlockArgs_1x2wp90.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1x2wp90]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1x2wp90, - ); -} - -extension _BlockArgs_1x2wp90$Methods on _BlockArgs_1x2wp90 { - int get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_h0gkbf(_$$ref.pointer, _sel_arg0); - } - - CGImageRef get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_y1izi1(_$$ref.pointer, _sel_arg1); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_1xfn2k3._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1xfn2k3] that points to the same underlying object as [other]. - _BlockArgs_1xfn2k3.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1xfn2k3] that wraps the given raw object pointer. - _BlockArgs_1xfn2k3.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1xfn2k3]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1xfn2k3, - ); -} - -extension _BlockArgs_1xfn2k3$Methods on _BlockArgs_1xfn2k3 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDataTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); - return ObjCBlock_ffiVoid_NSURLSessionResponseDisposition.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_1xkpqmj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1xkpqmj] that points to the same underlying object as [other]. - _BlockArgs_1xkpqmj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1xkpqmj] that wraps the given raw object pointer. - _BlockArgs_1xkpqmj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1xkpqmj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1xkpqmj, - ); -} - -extension _BlockArgs_1xkpqmj$Methods on _BlockArgs_1xkpqmj { - double get arg0 { - final _$$ref = object$.ref; - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_arg0) - : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_arg0); - } - - DartCFIndex get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_arg1); - } - - bool get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg2); - } - - ffi.Pointer get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_1y4tc38._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1y4tc38] that points to the same underlying object as [other]. - _BlockArgs_1y4tc38.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1y4tc38] that wraps the given raw object pointer. - _BlockArgs_1y4tc38.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1y4tc38]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1y4tc38, - ); -} - -extension _BlockArgs_1y4tc38$Methods on _BlockArgs_1y4tc38 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSFileVersion get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSFileVersion.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_1y7f3jy._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1y7f3jy] that points to the same underlying object as [other]. - _BlockArgs_1y7f3jy.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1y7f3jy] that wraps the given raw object pointer. - _BlockArgs_1y7f3jy.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1y7f3jy]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1y7f3jy, - ); -} - -extension _BlockArgs_1y7f3jy$Methods on _BlockArgs_1y7f3jy { - NSURLSessionResponseDisposition get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_129c579(_$$ref.pointer, _sel_arg0); - return NSURLSessionResponseDisposition.fromValue($ret); - } -} - -extension type _BlockArgs_1z0whcc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_1z0whcc] that points to the same underlying object as [other]. - _BlockArgs_1z0whcc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_1z0whcc] that wraps the given raw object pointer. - _BlockArgs_1z0whcc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_1z0whcc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_1z0whcc, - ); -} - -extension _BlockArgs_1z0whcc$Methods on _BlockArgs_1z0whcc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLAuthenticationChallenge get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_31cygh._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_31cygh] that points to the same underlying object as [other]. - _BlockArgs_31cygh.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_31cygh] that wraps the given raw object pointer. - _BlockArgs_31cygh.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_31cygh]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_31cygh, - ); -} - -extension _BlockArgs_31cygh$Methods on _BlockArgs_31cygh { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.ObjCBlock get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); - return ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_347s5u._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_347s5u] that points to the same underlying object as [other]. - _BlockArgs_347s5u.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_347s5u] that wraps the given raw object pointer. - _BlockArgs_347s5u.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_347s5u]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_347s5u, - ); -} - -extension _BlockArgs_347s5u$Methods on _BlockArgs_347s5u { - NSTask get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return NSTask.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_3gru2r._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_3gru2r] that points to the same underlying object as [other]. - _BlockArgs_3gru2r.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_3gru2r] that wraps the given raw object pointer. - _BlockArgs_3gru2r.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_3gru2r]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_3gru2r, - ); -} - -extension _BlockArgs_3gru2r$Methods on _BlockArgs_3gru2r { - objc.NSURL? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_3jhjrc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_3jhjrc] that points to the same underlying object as [other]. - _BlockArgs_3jhjrc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_3jhjrc] that wraps the given raw object pointer. - _BlockArgs_3jhjrc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_3jhjrc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_3jhjrc, - ); -} - -extension _BlockArgs_3jhjrc$Methods on _BlockArgs_3jhjrc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - int get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg2); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); - } - - int get arg4 { - final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg4); - } -} - -extension type _BlockArgs_3prg4b._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_3prg4b] that points to the same underlying object as [other]. - _BlockArgs_3prg4b.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_3prg4b] that wraps the given raw object pointer. - _BlockArgs_3prg4b.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_3prg4b]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_3prg4b, - ); -} - -extension _BlockArgs_3prg4b$Methods on _BlockArgs_3prg4b { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - AVAudioPlayer get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return AVAudioPlayer.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_43hp0b._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_43hp0b] that points to the same underlying object as [other]. - _BlockArgs_43hp0b.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_43hp0b] that wraps the given raw object pointer. - _BlockArgs_43hp0b.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_43hp0b]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_43hp0b, - ); -} - -extension _BlockArgs_43hp0b$Methods on _BlockArgs_43hp0b { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDataTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionDataTask.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionStreamTask get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return NSURLSessionStreamTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_461rr9._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_461rr9] that points to the same underlying object as [other]. - _BlockArgs_461rr9.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_461rr9] that wraps the given raw object pointer. - _BlockArgs_461rr9.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_461rr9]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_461rr9, - ); -} - -extension _BlockArgs_461rr9$Methods on _BlockArgs_461rr9 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.NSURL get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_5wf51x._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_5wf51x] that points to the same underlying object as [other]. - _BlockArgs_5wf51x.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_5wf51x] that wraps the given raw object pointer. - _BlockArgs_5wf51x.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_5wf51x]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_5wf51x, - ); -} - -extension _BlockArgs_5wf51x$Methods on _BlockArgs_5wf51x { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - int get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg2); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_1k101e3(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_5zyi3o._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_5zyi3o] that points to the same underlying object as [other]. - _BlockArgs_5zyi3o.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_5zyi3o] that wraps the given raw object pointer. - _BlockArgs_5zyi3o.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_5zyi3o]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_5zyi3o, - ); -} - -extension _BlockArgs_5zyi3o$Methods on _BlockArgs_5zyi3o { - SecKeyRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_oziolg(_$$ref.pointer, _sel_arg0); - } - - SecKeyRef get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_oziolg(_$$ref.pointer, _sel_arg1); - } - - CFErrorRef get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_6tydoo._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_6tydoo] that points to the same underlying object as [other]. - _BlockArgs_6tydoo.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_6tydoo] that wraps the given raw object pointer. - _BlockArgs_6tydoo.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_6tydoo]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_6tydoo, - ); -} - -extension _BlockArgs_6tydoo$Methods on _BlockArgs_6tydoo { - objc.NSDictionary? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_6yk1dr._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_6yk1dr] that points to the same underlying object as [other]. - _BlockArgs_6yk1dr.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_6yk1dr] that wraps the given raw object pointer. - _BlockArgs_6yk1dr.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_6yk1dr]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_6yk1dr, - ); -} - -extension _BlockArgs_6yk1dr$Methods on _BlockArgs_6yk1dr { - DartNSItemProviderCompletionHandler get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg0); - return ObjCBlock_ffiVoid_idNSSecureCoding_NSError.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.ObjCObject get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.ObjCObject($ret, retain: true, release: true); - } - - objc.NSDictionary get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_7xicdf._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_7xicdf] that points to the same underlying object as [other]. - _BlockArgs_7xicdf.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_7xicdf] that wraps the given raw object pointer. - _BlockArgs_7xicdf.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_7xicdf]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_7xicdf, - ); -} - -extension _BlockArgs_7xicdf$Methods on _BlockArgs_7xicdf { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_99x6vt._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_99x6vt] that points to the same underlying object as [other]. - _BlockArgs_99x6vt.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_99x6vt] that wraps the given raw object pointer. - _BlockArgs_99x6vt.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_99x6vt]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_99x6vt, - ); -} - -extension _BlockArgs_99x6vt$Methods on _BlockArgs_99x6vt { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); - } - - objc.ObjCBlock get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); - return ObjCBlock_ffiVoid_NSInputStream.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_abn34x._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_abn34x] that points to the same underlying object as [other]. - _BlockArgs_abn34x.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_abn34x] that wraps the given raw object pointer. - _BlockArgs_abn34x.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_abn34x]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_abn34x, - ); -} - -extension _BlockArgs_abn34x$Methods on _BlockArgs_abn34x { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - NSURLResponse get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLResponse.fromPointer($ret, retain: true, release: true); - } - - NSURLCacheStoragePolicy get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_4qsw9q(_$$ref.pointer, _sel_arg3); - return NSURLCacheStoragePolicy.fromValue($ret); - } -} - -extension type _BlockArgs_adcfsd._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_adcfsd] that points to the same underlying object as [other]. - _BlockArgs_adcfsd.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_adcfsd] that wraps the given raw object pointer. - _BlockArgs_adcfsd.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_adcfsd]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_adcfsd, - ); -} - -extension _BlockArgs_adcfsd$Methods on _BlockArgs_adcfsd { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSNetServiceBrowser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); - } - - objc.NSDictionary get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_aec946._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_aec946] that points to the same underlying object as [other]. - _BlockArgs_aec946.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_aec946] that wraps the given raw object pointer. - _BlockArgs_aec946.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_aec946]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_aec946, - ); -} - -extension _BlockArgs_aec946$Methods on _BlockArgs_aec946 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_awd5mj._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_awd5mj] that points to the same underlying object as [other]. - _BlockArgs_awd5mj.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_awd5mj] that wraps the given raw object pointer. - _BlockArgs_awd5mj.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_awd5mj]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_awd5mj, - ); -} - -extension _BlockArgs_awd5mj$Methods on _BlockArgs_awd5mj { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_b9s2kt._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_b9s2kt] that points to the same underlying object as [other]. - _BlockArgs_b9s2kt.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_b9s2kt] that wraps the given raw object pointer. - _BlockArgs_b9s2kt.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_b9s2kt]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_b9s2kt, - ); -} - -extension _BlockArgs_b9s2kt$Methods on _BlockArgs_b9s2kt { - objc.NSError get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_blvx9k._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_blvx9k] that points to the same underlying object as [other]. - _BlockArgs_blvx9k.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_blvx9k] that wraps the given raw object pointer. - _BlockArgs_blvx9k.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_blvx9k]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_blvx9k, - ); -} - -extension _BlockArgs_blvx9k$Methods on _BlockArgs_blvx9k { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSUserNotificationCenter get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSUserNotificationCenter.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - NSUserNotification get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSUserNotification.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_de64m._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_de64m] that points to the same underlying object as [other]. - _BlockArgs_de64m.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_de64m] that wraps the given raw object pointer. - _BlockArgs_de64m.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_de64m]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_de64m, - ); -} - -extension _BlockArgs_de64m$Methods on _BlockArgs_de64m { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLAuthenticationChallenge get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLAuthenticationChallenge.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.ObjCBlock get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg3); - return ObjCBlock_ffiVoid_NSURLSessionAuthChallengeDisposition_NSURLCredential.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_di5ft6._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_di5ft6] that points to the same underlying object as [other]. - _BlockArgs_di5ft6.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_di5ft6] that wraps the given raw object pointer. - _BlockArgs_di5ft6.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_di5ft6]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_di5ft6, - ); -} - -extension _BlockArgs_di5ft6$Methods on _BlockArgs_di5ft6 { - Dartsec_protocol_metadata_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartsec_protocol_key_update_complete_t get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); - return ObjCBlock_ffiVoid.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_dmvhfp._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_dmvhfp] that points to the same underlying object as [other]. - _BlockArgs_dmvhfp.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_dmvhfp] that wraps the given raw object pointer. - _BlockArgs_dmvhfp.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_dmvhfp]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_dmvhfp, - ); -} - -extension _BlockArgs_dmvhfp$Methods on _BlockArgs_dmvhfp { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_syi8bx(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_eu2222._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_eu2222] that points to the same underlying object as [other]. - _BlockArgs_eu2222.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_eu2222] that wraps the given raw object pointer. - _BlockArgs_eu2222.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_eu2222]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_eu2222, - ); -} - -extension _BlockArgs_eu2222$Methods on _BlockArgs_eu2222 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.ObjCBlock?)> - get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); - return ObjCBlock_ffiVoid_ffiVoid$2.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_gcznpv._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_gcznpv] that points to the same underlying object as [other]. - _BlockArgs_gcznpv.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_gcznpv] that wraps the given raw object pointer. - _BlockArgs_gcznpv.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_gcznpv]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_gcznpv, - ); -} - -extension _BlockArgs_gcznpv$Methods on _BlockArgs_gcznpv { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSSpellServer get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSSpellServer.fromPointer($ret, retain: true, release: true); - } - - DartNSUInteger get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_xw2lbc(_$$ref.pointer, _sel_arg2); - } - - objc.NSString get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg5 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_hacm4k._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_hacm4k] that points to the same underlying object as [other]. - _BlockArgs_hacm4k.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_hacm4k] that wraps the given raw object pointer. - _BlockArgs_hacm4k.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_hacm4k]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_hacm4k, - ); -} - -extension _BlockArgs_hacm4k$Methods on _BlockArgs_hacm4k { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_hj4uui._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_hj4uui] that points to the same underlying object as [other]. - _BlockArgs_hj4uui.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_hj4uui] that wraps the given raw object pointer. - _BlockArgs_hj4uui.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_hj4uui]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_hj4uui, - ); -} - -extension _BlockArgs_hj4uui$Methods on _BlockArgs_hj4uui { - Dartsec_protocol_metadata_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartsec_protocol_challenge_complete_t get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg1); - return ObjCBlock_ffiVoid_NSObject$1.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_hj6v1u._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_hj6v1u] that points to the same underlying object as [other]. - _BlockArgs_hj6v1u.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_hj6v1u] that wraps the given raw object pointer. - _BlockArgs_hj6v1u.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_hj6v1u]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_hj6v1u, - ); -} - -extension _BlockArgs_hj6v1u$Methods on _BlockArgs_hj6v1u { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - ffi.Pointer get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_i7wriu._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_i7wriu] that points to the same underlying object as [other]. - _BlockArgs_i7wriu.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_i7wriu] that wraps the given raw object pointer. - _BlockArgs_i7wriu.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_i7wriu]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_i7wriu, - ); -} - -extension _BlockArgs_i7wriu$Methods on _BlockArgs_i7wriu { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTaskMetrics get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return NSURLSessionTaskMetrics.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_ii17hk._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_ii17hk] that points to the same underlying object as [other]. - _BlockArgs_ii17hk.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_ii17hk] that wraps the given raw object pointer. - _BlockArgs_ii17hk.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_ii17hk]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_ii17hk, - ); -} - -extension _BlockArgs_ii17hk$Methods on _BlockArgs_ii17hk {} - -extension type _BlockArgs_j3xbuw._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_j3xbuw] that points to the same underlying object as [other]. - _BlockArgs_j3xbuw.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_j3xbuw] that wraps the given raw object pointer. - _BlockArgs_j3xbuw.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_j3xbuw]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_j3xbuw, - ); -} - -extension _BlockArgs_j3xbuw$Methods on _BlockArgs_j3xbuw { - SecTrustRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1ommad9(_$$ref.pointer, _sel_arg0); - } - - bool get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg1); - } - - CFErrorRef get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_jqba1._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_jqba1] that points to the same underlying object as [other]. - _BlockArgs_jqba1.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_jqba1] that wraps the given raw object pointer. - _BlockArgs_jqba1.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_jqba1]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_jqba1, - ); -} - -extension _BlockArgs_jqba1$Methods on _BlockArgs_jqba1 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - NSURLRequest get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return NSURLRequest.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg4); - return ObjCBlock_ffiVoid_NSURLSessionDelayedRequestDisposition_NSURLRequest.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_jzitwn._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_jzitwn] that points to the same underlying object as [other]. - _BlockArgs_jzitwn.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_jzitwn] that wraps the given raw object pointer. - _BlockArgs_jzitwn.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_jzitwn]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_jzitwn, - ); -} - -extension _BlockArgs_jzitwn$Methods on _BlockArgs_jzitwn { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.NSURL get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - objc.NSURL get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_k1nazc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_k1nazc] that points to the same underlying object as [other]. - _BlockArgs_k1nazc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_k1nazc] that wraps the given raw object pointer. - _BlockArgs_k1nazc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_k1nazc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_k1nazc, - ); -} - -extension _BlockArgs_k1nazc$Methods on _BlockArgs_k1nazc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_k2hpmy._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_k2hpmy] that points to the same underlying object as [other]. - _BlockArgs_k2hpmy.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_k2hpmy] that wraps the given raw object pointer. - _BlockArgs_k2hpmy.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_k2hpmy]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_k2hpmy, - ); -} - -extension _BlockArgs_k2hpmy$Methods on _BlockArgs_k2hpmy { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.NSSet get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSSet.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_k4eb20._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_k4eb20] that points to the same underlying object as [other]. - _BlockArgs_k4eb20.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_k4eb20] that wraps the given raw object pointer. - _BlockArgs_k4eb20.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_k4eb20]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_k4eb20, - ); -} - -extension _BlockArgs_k4eb20$Methods on _BlockArgs_k4eb20 { - Dartdispatch_data_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - int get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_k4je64._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_k4je64] that points to the same underlying object as [other]. - _BlockArgs_k4je64.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_k4je64] that wraps the given raw object pointer. - _BlockArgs_k4je64.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_k4je64]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_k4je64, - ); -} - -extension _BlockArgs_k4je64$Methods on _BlockArgs_k4je64 { - bool get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_kqbpyy._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_kqbpyy] that points to the same underlying object as [other]. - _BlockArgs_kqbpyy.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_kqbpyy] that wraps the given raw object pointer. - _BlockArgs_kqbpyy.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_kqbpyy]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_kqbpyy, - ); -} - -extension _BlockArgs_kqbpyy$Methods on _BlockArgs_kqbpyy { - int get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_h0gkbf(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_krrtfh._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_krrtfh] that points to the same underlying object as [other]. - _BlockArgs_krrtfh.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_krrtfh] that wraps the given raw object pointer. - _BlockArgs_krrtfh.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_krrtfh]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_krrtfh, - ); -} - -extension _BlockArgs_krrtfh$Methods on _BlockArgs_krrtfh { - objc.NSSecureCoding? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSSecureCoding.fromPointer($ret, retain: true, release: true); - } - - objc.NSError get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_ldsont._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_ldsont] that points to the same underlying object as [other]. - _BlockArgs_ldsont.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_ldsont] that wraps the given raw object pointer. - _BlockArgs_ldsont.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_ldsont]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_ldsont, - ); -} - -extension _BlockArgs_ldsont$Methods on _BlockArgs_ldsont { - NSBackgroundActivityResult get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_hjhgti(_$$ref.pointer, _sel_arg0); - return NSBackgroundActivityResult.fromValue($ret); - } -} - -extension type _BlockArgs_lmnq5k._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_lmnq5k] that points to the same underlying object as [other]. - _BlockArgs_lmnq5k.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_lmnq5k] that wraps the given raw object pointer. - _BlockArgs_lmnq5k.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_lmnq5k]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_lmnq5k, - ); -} - -extension _BlockArgs_lmnq5k$Methods on _BlockArgs_lmnq5k { - Dartdispatch_data_t get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - Dartdispatch_data_t get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSObject.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_n2dxuu._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_n2dxuu] that points to the same underlying object as [other]. - _BlockArgs_n2dxuu.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_n2dxuu] that wraps the given raw object pointer. - _BlockArgs_n2dxuu.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_n2dxuu]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_n2dxuu, - ); -} - -extension _BlockArgs_n2dxuu$Methods on _BlockArgs_n2dxuu { - CFRunLoopTimerRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1yyiln9(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_nemba7._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_nemba7] that points to the same underlying object as [other]. - _BlockArgs_nemba7.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_nemba7] that wraps the given raw object pointer. - _BlockArgs_nemba7.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_nemba7]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_nemba7, - ); -} - -extension _BlockArgs_nemba7$Methods on _BlockArgs_nemba7 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_nhk5a9._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_nhk5a9] that points to the same underlying object as [other]. - _BlockArgs_nhk5a9.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_nhk5a9] that wraps the given raw object pointer. - _BlockArgs_nhk5a9.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_nhk5a9]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_nhk5a9, - ); -} - -extension _BlockArgs_nhk5a9$Methods on _BlockArgs_nhk5a9 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionStreamTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionStreamTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.NSInputStream get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - objc.NSOutputStream get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_pfi7f3._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_pfi7f3] that points to the same underlying object as [other]. - _BlockArgs_pfi7f3.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_pfi7f3] that wraps the given raw object pointer. - _BlockArgs_pfi7f3.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_pfi7f3]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_pfi7f3, - ); -} - -extension _BlockArgs_pfi7f3$Methods on _BlockArgs_pfi7f3 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.NSURL get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - objc.ObjCBlock get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_uwvaik(_$$ref.pointer, _sel_arg2); - return ObjCBlock_ffiVoid_NSError.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_pm23bg._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_pm23bg] that points to the same underlying object as [other]. - _BlockArgs_pm23bg.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_pm23bg] that wraps the given raw object pointer. - _BlockArgs_pm23bg.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_pm23bg]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_pm23bg, - ); -} - -extension _BlockArgs_pm23bg$Methods on _BlockArgs_pm23bg { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionDownloadTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionDownloadTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.NSURL get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_q6fcam._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_q6fcam] that points to the same underlying object as [other]. - _BlockArgs_q6fcam.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_q6fcam] that wraps the given raw object pointer. - _BlockArgs_q6fcam.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_q6fcam]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_q6fcam, - ); -} - -extension _BlockArgs_q6fcam$Methods on _BlockArgs_q6fcam { - objc.ObjCObject? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - NSRange get arg1 { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_qjjttc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_qjjttc] that points to the same underlying object as [other]. - _BlockArgs_qjjttc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_qjjttc] that wraps the given raw object pointer. - _BlockArgs_qjjttc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_qjjttc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_qjjttc, - ); -} - -extension _BlockArgs_qjjttc$Methods on _BlockArgs_qjjttc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_qss5hc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_qss5hc] that points to the same underlying object as [other]. - _BlockArgs_qss5hc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_qss5hc] that wraps the given raw object pointer. - _BlockArgs_qss5hc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_qss5hc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_qss5hc, - ); -} - -extension _BlockArgs_qss5hc$Methods on _BlockArgs_qss5hc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionStreamTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionStreamTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } -} - -extension type _BlockArgs_rojepe._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_rojepe] that points to the same underlying object as [other]. - _BlockArgs_rojepe.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_rojepe] that wraps the given raw object pointer. - _BlockArgs_rojepe.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_rojepe]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_rojepe, - ); -} - -extension _BlockArgs_rojepe$Methods on _BlockArgs_rojepe { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - objc.NSError get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_s52y0g._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_s52y0g] that points to the same underlying object as [other]. - _BlockArgs_s52y0g.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_s52y0g] that wraps the given raw object pointer. - _BlockArgs_s52y0g.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_s52y0g]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_s52y0g, - ); -} - -extension _BlockArgs_s52y0g$Methods on _BlockArgs_s52y0g { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLProtocol get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLProtocol.fromPointer($ret, retain: true, release: true); - } - - NSCachedURLResponse get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSCachedURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_syyzqk._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_syyzqk] that points to the same underlying object as [other]. - _BlockArgs_syyzqk.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_syyzqk] that wraps the given raw object pointer. - _BlockArgs_syyzqk.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_syyzqk]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_syyzqk, - ); -} - -extension _BlockArgs_syyzqk$Methods on _BlockArgs_syyzqk { - bool get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_t3r59d._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_t3r59d] that points to the same underlying object as [other]. - _BlockArgs_t3r59d.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_t3r59d] that wraps the given raw object pointer. - _BlockArgs_t3r59d.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_t3r59d]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_t3r59d, - ); -} - -extension _BlockArgs_t3r59d$Methods on _BlockArgs_t3r59d { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg5 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_tbof01._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_tbof01] that points to the same underlying object as [other]. - _BlockArgs_tbof01.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_tbof01] that wraps the given raw object pointer. - _BlockArgs_tbof01.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_tbof01]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_tbof01, - ); -} - -extension _BlockArgs_tbof01$Methods on _BlockArgs_tbof01 { - int get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_rmqcvp(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_teaic5._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_teaic5] that points to the same underlying object as [other]. - _BlockArgs_teaic5.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_teaic5] that wraps the given raw object pointer. - _BlockArgs_teaic5.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_teaic5]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_teaic5, - ); -} - -extension _BlockArgs_teaic5$Methods on _BlockArgs_teaic5 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.NSURLHandle get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_tikg8p._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_tikg8p] that points to the same underlying object as [other]. - _BlockArgs_tikg8p.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_tikg8p] that wraps the given raw object pointer. - _BlockArgs_tikg8p.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_tikg8p]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_tikg8p, - ); -} - -extension _BlockArgs_tikg8p$Methods on _BlockArgs_tikg8p { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSNetService get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSNetService.fromPointer($ret, retain: true, release: true); - } - - objc.NSInputStream get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSInputStream.fromPointer($ret, retain: true, release: true); - } - - objc.NSOutputStream get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return objc.NSOutputStream.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_truc42._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_truc42] that points to the same underlying object as [other]. - _BlockArgs_truc42.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_truc42] that wraps the given raw object pointer. - _BlockArgs_truc42.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_truc42]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_truc42, - ); -} - -extension _BlockArgs_truc42$Methods on _BlockArgs_truc42 { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSExtensionContext get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSExtensionContext.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_u4a6zc._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_u4a6zc] that points to the same underlying object as [other]. - _BlockArgs_u4a6zc.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_u4a6zc] that wraps the given raw object pointer. - _BlockArgs_u4a6zc.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_u4a6zc]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_u4a6zc, - ); -} - -extension _BlockArgs_u4a6zc$Methods on _BlockArgs_u4a6zc { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSNetService get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSNetService.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_u65oe8._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_u65oe8] that points to the same underlying object as [other]. - _BlockArgs_u65oe8.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_u65oe8] that wraps the given raw object pointer. - _BlockArgs_u65oe8.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_u65oe8]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_u65oe8, - ); -} - -extension _BlockArgs_u65oe8$Methods on _BlockArgs_u65oe8 { - NSURLSessionAuthChallengeDisposition get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_1vfc2dz(_$$ref.pointer, _sel_arg0); - return NSURLSessionAuthChallengeDisposition.fromValue($ret); - } - - NSURLCredential? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : NSURLCredential.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_uul9n9._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_uul9n9] that points to the same underlying object as [other]. - _BlockArgs_uul9n9.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_uul9n9] that wraps the given raw object pointer. - _BlockArgs_uul9n9.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_uul9n9]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_uul9n9, - ); -} - -extension _BlockArgs_uul9n9$Methods on _BlockArgs_uul9n9 { - bool get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg0); - } - - Dartdispatch_data_t? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSObject.fromPointer($ret, retain: true, release: true); - } - - int get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_13yqbb6(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_v1zq3a._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_v1zq3a] that points to the same underlying object as [other]. - _BlockArgs_v1zq3a.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_v1zq3a] that wraps the given raw object pointer. - _BlockArgs_v1zq3a.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_v1zq3a]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_v1zq3a, - ); -} - -extension _BlockArgs_v1zq3a$Methods on _BlockArgs_v1zq3a { - CGRenderingBufferProviderRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1p2ukjz(_$$ref.pointer, _sel_arg0); - } - - ffi.Pointer get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1vkunzi(_$$ref.pointer, _sel_arg1); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1wgub22(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_v5xz31._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_v5xz31] that points to the same underlying object as [other]. - _BlockArgs_v5xz31.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_v5xz31] that wraps the given raw object pointer. - _BlockArgs_v5xz31.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_v5xz31]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_v5xz31, - ); -} - -extension _BlockArgs_v5xz31$Methods on _BlockArgs_v5xz31 { - NSFileHandle get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return NSFileHandle.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_v8in3._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_v8in3] that points to the same underlying object as [other]. - _BlockArgs_v8in3.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_v8in3] that wraps the given raw object pointer. - _BlockArgs_v8in3.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_v8in3]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_v8in3, - ); -} - -extension _BlockArgs_v8in3$Methods on _BlockArgs_v8in3 { - objc.NSDictionary get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } - - NSRange get arg1 { - final _$$ref = object$.ref; - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1u11dbbStret($ptr, _$$ref.pointer, _sel_arg1) - : $ptr.ref = _objc_msgSend_1u11dbb(_$$ref.pointer, _sel_arg1); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - ffi.Pointer get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1sbro63(_$$ref.pointer, _sel_arg2); - } -} - -extension type _BlockArgs_vaglpl._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_vaglpl] that points to the same underlying object as [other]. - _BlockArgs_vaglpl.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_vaglpl] that wraps the given raw object pointer. - _BlockArgs_vaglpl.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_vaglpl]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_vaglpl, - ); -} - -extension _BlockArgs_vaglpl$Methods on _BlockArgs_vaglpl { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSData get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSData.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_vgtcpl._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_vgtcpl] that points to the same underlying object as [other]. - _BlockArgs_vgtcpl.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_vgtcpl] that wraps the given raw object pointer. - _BlockArgs_vgtcpl.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_vgtcpl]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_vgtcpl, - ); -} - -extension _BlockArgs_vgtcpl$Methods on _BlockArgs_vgtcpl { - CFArrayRef get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_odvxky(_$$ref.pointer, _sel_arg0); - } -} - -extension type _BlockArgs_vpa8ji._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_vpa8ji] that points to the same underlying object as [other]. - _BlockArgs_vpa8ji.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_vpa8ji] that wraps the given raw object pointer. - _BlockArgs_vpa8ji.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_vpa8ji]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_vpa8ji, - ); -} - -extension _BlockArgs_vpa8ji$Methods on _BlockArgs_vpa8ji { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLConnection get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLConnection.fromPointer($ret, retain: true, release: true); - } - - objc.NSError get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_vx7t4i._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_vx7t4i] that points to the same underlying object as [other]. - _BlockArgs_vx7t4i.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_vx7t4i] that wraps the given raw object pointer. - _BlockArgs_vx7t4i.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_vx7t4i]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_vx7t4i, - ); -} - -extension _BlockArgs_vx7t4i$Methods on _BlockArgs_vx7t4i { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSXMLParser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSXMLParser.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg4 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg4); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - objc.NSString? get arg5 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg5); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_wpl2gn._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_wpl2gn] that points to the same underlying object as [other]. - _BlockArgs_wpl2gn.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_wpl2gn] that wraps the given raw object pointer. - _BlockArgs_wpl2gn.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_wpl2gn]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_wpl2gn, - ); -} - -extension _BlockArgs_wpl2gn$Methods on _BlockArgs_wpl2gn { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - bool get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg1); - } -} - -extension type _BlockArgs_wtbfzi._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_wtbfzi] that points to the same underlying object as [other]. - _BlockArgs_wtbfzi.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_wtbfzi] that wraps the given raw object pointer. - _BlockArgs_wtbfzi.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_wtbfzi]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_wtbfzi, - ); -} - -extension _BlockArgs_wtbfzi$Methods on _BlockArgs_wtbfzi { - NSCachedURLResponse? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : NSCachedURLResponse.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. - _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. - _BlockArgs_x5cg0.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_x5cg0, - ); -} - -extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { - objc.NSData? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_x7mqjz._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_x7mqjz] that points to the same underlying object as [other]. - _BlockArgs_x7mqjz.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_x7mqjz] that wraps the given raw object pointer. - _BlockArgs_x7mqjz.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_x7mqjz]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_x7mqjz, - ); -} - -extension _BlockArgs_x7mqjz$Methods on _BlockArgs_x7mqjz { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSNetServiceBrowser get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSNetServiceBrowser.fromPointer($ret, retain: true, release: true); - } - - NSNetService get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSNetService.fromPointer($ret, retain: true, release: true); - } - - bool get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_91o635(_$$ref.pointer, _sel_arg3); - } -} - -extension type _BlockArgs_xcrg5s._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_xcrg5s] that points to the same underlying object as [other]. - _BlockArgs_xcrg5s.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_xcrg5s] that wraps the given raw object pointer. - _BlockArgs_xcrg5s.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_xcrg5s]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_xcrg5s, - ); -} - -extension _BlockArgs_xcrg5s$Methods on _BlockArgs_xcrg5s { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionWebSocketTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionWebSocketTask.fromPointer( - $ret, - retain: true, - release: true, - ); - } - - objc.NSString? get arg3 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg3); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_xh08sz._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_xh08sz] that points to the same underlying object as [other]. - _BlockArgs_xh08sz.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_xh08sz] that wraps the given raw object pointer. - _BlockArgs_xh08sz.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_xh08sz]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_xh08sz, - ); -} - -extension _BlockArgs_xh08sz$Methods on _BlockArgs_xh08sz { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - NSURLSession get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return NSURLSession.fromPointer($ret, retain: true, release: true); - } - - NSURLSessionTask get arg2 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg2); - return NSURLSessionTask.fromPointer($ret, retain: true, release: true); - } - - int get arg3 { - final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg3); - } - - int get arg4 { - final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg4); - } - - int get arg5 { - final _$$ref = object$.ref; - return _objc_msgSend_pysgoz(_$$ref.pointer, _sel_arg5); - } -} - -extension type _BlockArgs_xj71gr._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_xj71gr] that points to the same underlying object as [other]. - _BlockArgs_xj71gr.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_xj71gr] that wraps the given raw object pointer. - _BlockArgs_xj71gr.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_xj71gr]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_xj71gr, - ); -} - -extension _BlockArgs_xj71gr$Methods on _BlockArgs_xj71gr { - ffi.Pointer get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_arg0); - } - - objc.NSURLHandle get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return objc.NSURLHandle.fromPointer($ret, retain: true, release: true); - } -} - -extension type _BlockArgs_zgaes8._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_zgaes8] that points to the same underlying object as [other]. - _BlockArgs_zgaes8.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_zgaes8] that wraps the given raw object pointer. - _BlockArgs_zgaes8.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_zgaes8]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_zgaes8, - ); -} - -extension _BlockArgs_zgaes8$Methods on _BlockArgs_zgaes8 { - DartBoolean get arg0 { - final _$$ref = object$.ref; - return _objc_msgSend_1ko4qka(_$$ref.pointer, _sel_arg0); - } - - DartUInt64 get arg1 { - final _$$ref = object$.ref; - return _objc_msgSend_1p4gbjy(_$$ref.pointer, _sel_arg1); - } - - CFErrorRef get arg2 { - final _$$ref = object$.ref; - return _objc_msgSend_1e3ic39(_$$ref.pointer, _sel_arg2); - } -} - -final class _CFHTTPAuthentication extends ffi.Opaque {} - -final class _CGDisplayConfigRef extends ffi.Opaque {} - -enum _CGLContextEnable { - kCGLCESwapRectangle(201), - kCGLCESwapLimit(203), - kCGLCERasterization(221), - kCGLCEStateValidation(301), - kCGLCESurfaceBackingSize(305), - kCGLCEDisplayListOptimization(307), - kCGLCEMPEngine(313), - kCGLCECrashOnRemovedFunctions(316); - - final int value; - const _CGLContextEnable(this.value); - - static _CGLContextEnable fromValue(int value) => switch (value) { - 201 => kCGLCESwapRectangle, - 203 => kCGLCESwapLimit, - 221 => kCGLCERasterization, - 301 => kCGLCEStateValidation, - 305 => kCGLCESurfaceBackingSize, - 307 => kCGLCEDisplayListOptimization, - 313 => kCGLCEMPEngine, - 316 => kCGLCECrashOnRemovedFunctions, - _ => throw ArgumentError('Unknown value for _CGLContextEnable: $value'), - }; -} - -final class _CGLContextObject extends ffi.Opaque {} - -enum _CGLContextParameter { - kCGLCPSwapRectangle(200), - kCGLCPSwapInterval(222), - kCGLCPDispatchTableSize(224), - kCGLCPClientStorage(226), - kCGLCPSurfaceTexture(228), - kCGLCPSurfaceOrder(235), - kCGLCPSurfaceOpacity(236), - kCGLCPSurfaceBackingSize(304), - kCGLCPSurfaceSurfaceVolatile(306), - kCGLCPReclaimResources(308), - kCGLCPCurrentRendererID(309), - kCGLCPGPUVertexProcessing(310), - kCGLCPGPUFragmentProcessing(311), - kCGLCPHasDrawable(314), - kCGLCPMPSwapsInFlight(315), - kCGLCPGPURestartStatus(317), - kCGLCPAbortOnGPURestartStatusBlacklisted(318), - kCGLCPSupportGPURestart(319), - kCGLCPSupportSeparateAddressSpace(320), - kCGLCPContextPriorityRequest(608); - - static const kCGLCPAbortOnGPURestartStatusDenied = - kCGLCPAbortOnGPURestartStatusBlacklisted; - - final int value; - const _CGLContextParameter(this.value); - - static _CGLContextParameter fromValue(int value) => switch (value) { - 200 => kCGLCPSwapRectangle, - 222 => kCGLCPSwapInterval, - 224 => kCGLCPDispatchTableSize, - 226 => kCGLCPClientStorage, - 228 => kCGLCPSurfaceTexture, - 235 => kCGLCPSurfaceOrder, - 236 => kCGLCPSurfaceOpacity, - 304 => kCGLCPSurfaceBackingSize, - 306 => kCGLCPSurfaceSurfaceVolatile, - 308 => kCGLCPReclaimResources, - 309 => kCGLCPCurrentRendererID, - 310 => kCGLCPGPUVertexProcessing, - 311 => kCGLCPGPUFragmentProcessing, - 314 => kCGLCPHasDrawable, - 315 => kCGLCPMPSwapsInFlight, - 317 => kCGLCPGPURestartStatus, - 318 => kCGLCPAbortOnGPURestartStatusBlacklisted, - 319 => kCGLCPSupportGPURestart, - 320 => kCGLCPSupportSeparateAddressSpace, - 608 => kCGLCPContextPriorityRequest, - _ => throw ArgumentError('Unknown value for _CGLContextParameter: $value'), - }; - - @override - String toString() { - if (this == kCGLCPAbortOnGPURestartStatusBlacklisted) - return "_CGLContextParameter.kCGLCPAbortOnGPURestartStatusBlacklisted, _CGLContextParameter.kCGLCPAbortOnGPURestartStatusDenied"; - return super.toString(); - } -} - -enum _CGLError { - kCGLNoError(0), - kCGLBadAttribute(10000), - kCGLBadProperty(10001), - kCGLBadPixelFormat(10002), - kCGLBadRendererInfo(10003), - kCGLBadContext(10004), - kCGLBadDrawable(10005), - kCGLBadDisplay(10006), - kCGLBadState(10007), - kCGLBadValue(10008), - kCGLBadMatch(10009), - kCGLBadEnumeration(10010), - kCGLBadOffScreen(10011), - kCGLBadFullScreen(10012), - kCGLBadWindow(10013), - kCGLBadAddress(10014), - kCGLBadCodeModule(10015), - kCGLBadAlloc(10016), - kCGLBadConnection(10017); - - final int value; - const _CGLError(this.value); - - static _CGLError fromValue(int value) => switch (value) { - 0 => kCGLNoError, - 10000 => kCGLBadAttribute, - 10001 => kCGLBadProperty, - 10002 => kCGLBadPixelFormat, - 10003 => kCGLBadRendererInfo, - 10004 => kCGLBadContext, - 10005 => kCGLBadDrawable, - 10006 => kCGLBadDisplay, - 10007 => kCGLBadState, - 10008 => kCGLBadValue, - 10009 => kCGLBadMatch, - 10010 => kCGLBadEnumeration, - 10011 => kCGLBadOffScreen, - 10012 => kCGLBadFullScreen, - 10013 => kCGLBadWindow, - 10014 => kCGLBadAddress, - 10015 => kCGLBadCodeModule, - 10016 => kCGLBadAlloc, - 10017 => kCGLBadConnection, - _ => throw ArgumentError('Unknown value for _CGLError: $value'), - }; -} - -enum _CGLGPURestartStatus { - kCGLCPGPURestartStatusNone(0), - kCGLCPGPURestartStatusCaused(1), - kCGLCPGPURestartStatusBlacklisted(2); - - static const kCGLCPGPURestartStatusDenied = kCGLCPGPURestartStatusBlacklisted; - - final int value; - const _CGLGPURestartStatus(this.value); - - static _CGLGPURestartStatus fromValue(int value) => switch (value) { - 0 => kCGLCPGPURestartStatusNone, - 1 => kCGLCPGPURestartStatusCaused, - 2 => kCGLCPGPURestartStatusBlacklisted, - _ => throw ArgumentError('Unknown value for _CGLGPURestartStatus: $value'), - }; - - @override - String toString() { - if (this == kCGLCPGPURestartStatusBlacklisted) - return "_CGLGPURestartStatus.kCGLCPGPURestartStatusBlacklisted, _CGLGPURestartStatus.kCGLCPGPURestartStatusDenied"; - return super.toString(); - } -} - -enum _CGLGlobalOption { - kCGLGOFormatCacheSize(501), - kCGLGOClearFormatCache(502), - kCGLGORetainRenderers(503), - kCGLGOUseBuildCache(506), - kCGLGOResetLibrary(504), - kCGLGOUseErrorHandler(505); - - final int value; - const _CGLGlobalOption(this.value); - - static _CGLGlobalOption fromValue(int value) => switch (value) { - 501 => kCGLGOFormatCacheSize, - 502 => kCGLGOClearFormatCache, - 503 => kCGLGORetainRenderers, - 506 => kCGLGOUseBuildCache, - 504 => kCGLGOResetLibrary, - 505 => kCGLGOUseErrorHandler, - _ => throw ArgumentError('Unknown value for _CGLGlobalOption: $value'), - }; -} - -enum _CGLOpenGLProfile { - kCGLOGLPVersion_Legacy(4096), - kCGLOGLPVersion_3_2_Core(12800), - kCGLOGLPVersion_GL4_Core(16640); - - static const kCGLOGLPVersion_GL3_Core = kCGLOGLPVersion_3_2_Core; - - final int value; - const _CGLOpenGLProfile(this.value); - - static _CGLOpenGLProfile fromValue(int value) => switch (value) { - 4096 => kCGLOGLPVersion_Legacy, - 12800 => kCGLOGLPVersion_3_2_Core, - 16640 => kCGLOGLPVersion_GL4_Core, - _ => throw ArgumentError('Unknown value for _CGLOpenGLProfile: $value'), - }; - - @override - String toString() { - if (this == kCGLOGLPVersion_3_2_Core) - return "_CGLOpenGLProfile.kCGLOGLPVersion_3_2_Core, _CGLOpenGLProfile.kCGLOGLPVersion_GL3_Core"; - return super.toString(); - } -} - -final class _CGLPBufferObject extends ffi.Opaque {} - -enum _CGLPixelFormatAttribute { - kCGLPFAAllRenderers(1), - kCGLPFATripleBuffer(3), - kCGLPFADoubleBuffer(5), - kCGLPFAColorSize(8), - kCGLPFAAlphaSize(11), - kCGLPFADepthSize(12), - kCGLPFAStencilSize(13), - kCGLPFAMinimumPolicy(51), - kCGLPFAMaximumPolicy(52), - kCGLPFASampleBuffers(55), - kCGLPFASamples(56), - kCGLPFAColorFloat(58), - kCGLPFAMultisample(59), - kCGLPFASupersample(60), - kCGLPFASampleAlpha(61), - kCGLPFARendererID(70), - kCGLPFANoRecovery(72), - kCGLPFAAccelerated(73), - kCGLPFAClosestPolicy(74), - kCGLPFABackingStore(76), - kCGLPFABackingVolatile(77), - kCGLPFADisplayMask(84), - kCGLPFAAllowOfflineRenderers(96), - kCGLPFAAcceleratedCompute(97), - kCGLPFAOpenGLProfile(99), - kCGLPFASupportsAutomaticGraphicsSwitching(101), - kCGLPFAVirtualScreenCount(128), - kCGLPFAAuxBuffers(7), - kCGLPFAAccumSize(14), - kCGLPFAAuxDepthStencil(57), - kCGLPFAStereo(6), - kCGLPFAOffScreen(53), - kCGLPFAWindow(80), - kCGLPFACompliant(83), - kCGLPFAPBuffer(90), - kCGLPFARemotePBuffer(91), - kCGLPFASingleRenderer(71), - kCGLPFARobust(75), - kCGLPFAMPSafe(78), - kCGLPFAMultiScreen(81), - kCGLPFAFullScreen(54); - - final int value; - const _CGLPixelFormatAttribute(this.value); - - static _CGLPixelFormatAttribute fromValue(int value) => switch (value) { - 1 => kCGLPFAAllRenderers, - 3 => kCGLPFATripleBuffer, - 5 => kCGLPFADoubleBuffer, - 8 => kCGLPFAColorSize, - 11 => kCGLPFAAlphaSize, - 12 => kCGLPFADepthSize, - 13 => kCGLPFAStencilSize, - 51 => kCGLPFAMinimumPolicy, - 52 => kCGLPFAMaximumPolicy, - 55 => kCGLPFASampleBuffers, - 56 => kCGLPFASamples, - 58 => kCGLPFAColorFloat, - 59 => kCGLPFAMultisample, - 60 => kCGLPFASupersample, - 61 => kCGLPFASampleAlpha, - 70 => kCGLPFARendererID, - 72 => kCGLPFANoRecovery, - 73 => kCGLPFAAccelerated, - 74 => kCGLPFAClosestPolicy, - 76 => kCGLPFABackingStore, - 77 => kCGLPFABackingVolatile, - 84 => kCGLPFADisplayMask, - 96 => kCGLPFAAllowOfflineRenderers, - 97 => kCGLPFAAcceleratedCompute, - 99 => kCGLPFAOpenGLProfile, - 101 => kCGLPFASupportsAutomaticGraphicsSwitching, - 128 => kCGLPFAVirtualScreenCount, - 7 => kCGLPFAAuxBuffers, - 14 => kCGLPFAAccumSize, - 57 => kCGLPFAAuxDepthStencil, - 6 => kCGLPFAStereo, - 53 => kCGLPFAOffScreen, - 80 => kCGLPFAWindow, - 83 => kCGLPFACompliant, - 90 => kCGLPFAPBuffer, - 91 => kCGLPFARemotePBuffer, - 71 => kCGLPFASingleRenderer, - 75 => kCGLPFARobust, - 78 => kCGLPFAMPSafe, - 81 => kCGLPFAMultiScreen, - 54 => kCGLPFAFullScreen, - _ => throw ArgumentError( - 'Unknown value for _CGLPixelFormatAttribute: $value', - ), - }; -} - -final class _CGLPixelFormatObject extends ffi.Opaque {} - -final class _CGLRendererInfoObject extends ffi.Opaque {} - -enum _CGLRendererProperty { - kCGLRPOffScreen(53), - kCGLRPRendererID(70), - kCGLRPAccelerated(73), - kCGLRPBackingStore(76), - kCGLRPWindow(80), - kCGLRPCompliant(83), - kCGLRPDisplayMask(84), - kCGLRPBufferModes(100), - kCGLRPColorModes(103), - kCGLRPAccumModes(104), - kCGLRPDepthModes(105), - kCGLRPStencilModes(106), - kCGLRPMaxAuxBuffers(107), - kCGLRPMaxSampleBuffers(108), - kCGLRPMaxSamples(109), - kCGLRPSampleModes(110), - kCGLRPSampleAlpha(111), - kCGLRPGPUVertProcCapable(122), - kCGLRPGPUFragProcCapable(123), - kCGLRPRendererCount(128), - kCGLRPOnline(129), - kCGLRPAcceleratedCompute(130), - kCGLRPVideoMemoryMegabytes(131), - kCGLRPTextureMemoryMegabytes(132), - kCGLRPMajorGLVersion(133), - kCGLRPRegistryIDLow(140), - kCGLRPRegistryIDHigh(141), - kCGLRPRemovable(142), - kCGLRPRobust(75), - kCGLRPMPSafe(78), - kCGLRPMultiScreen(81), - kCGLRPFullScreen(54), - kCGLRPVideoMemory(120), - kCGLRPTextureMemory(121); - - final int value; - const _CGLRendererProperty(this.value); - - static _CGLRendererProperty fromValue(int value) => switch (value) { - 53 => kCGLRPOffScreen, - 70 => kCGLRPRendererID, - 73 => kCGLRPAccelerated, - 76 => kCGLRPBackingStore, - 80 => kCGLRPWindow, - 83 => kCGLRPCompliant, - 84 => kCGLRPDisplayMask, - 100 => kCGLRPBufferModes, - 103 => kCGLRPColorModes, - 104 => kCGLRPAccumModes, - 105 => kCGLRPDepthModes, - 106 => kCGLRPStencilModes, - 107 => kCGLRPMaxAuxBuffers, - 108 => kCGLRPMaxSampleBuffers, - 109 => kCGLRPMaxSamples, - 110 => kCGLRPSampleModes, - 111 => kCGLRPSampleAlpha, - 122 => kCGLRPGPUVertProcCapable, - 123 => kCGLRPGPUFragProcCapable, - 128 => kCGLRPRendererCount, - 129 => kCGLRPOnline, - 130 => kCGLRPAcceleratedCompute, - 131 => kCGLRPVideoMemoryMegabytes, - 132 => kCGLRPTextureMemoryMegabytes, - 133 => kCGLRPMajorGLVersion, - 140 => kCGLRPRegistryIDLow, - 141 => kCGLRPRegistryIDHigh, - 142 => kCGLRPRemovable, - 75 => kCGLRPRobust, - 78 => kCGLRPMPSafe, - 81 => kCGLRPMultiScreen, - 54 => kCGLRPFullScreen, - 120 => kCGLRPVideoMemory, - 121 => kCGLRPTextureMemory, - _ => throw ArgumentError('Unknown value for _CGLRendererProperty: $value'), - }; -} - -final class _CMSDecoder extends ffi.Opaque {} - -final class _CMSEncoder extends ffi.Opaque {} - -@Deprecated('Deprecated') -const int _MixedModeMagic = 43774; - -final class _NXEvent extends ffi.Struct { - @SInt32() - external int type; - - external UnnamedStruct$20 location; - - @UInt64() - external int time$1; - - @SInt32() - external int flags; - - @UInt32() - external int window; - - @UInt64() - external int service_id; - - @SInt32() - external int ext_pid; - - external NXEventData data; -} - -final class _NXEventExt extends ffi.Struct { - external NXEvent payload; - - external NXEventExtension extension; -} - -final class _NXEventExtension extends ffi.Struct { - @UInt32() - external int flags; - - external audit_token_t audit$1; -} - -final class _NXPoint extends ffi.Struct { - @NXCoord() - external double x; - - @NXCoord() - external double y; -} - -final class _NXSize extends ffi.Struct { - @NXCoord() - external double width; - - @NXCoord() - external double height; -} - -final class _NXTabletPointData extends ffi.Struct { - @SInt32() - external int x; - - @SInt32() - external int y; - - @SInt32() - external int z; - - @UInt16() - external int buttons; - - @UInt16() - external int pressure; - - external UnnamedStruct$11 tilt; - - @UInt16() - external int rotation; - - @SInt16() - external int tangentialPressure; - - @UInt16() - external int deviceID; - - @SInt16() - external int vendor1; - - @SInt16() - external int vendor2; - - @SInt16() - external int vendor3; -} - -final class _NXTabletProximityData extends ffi.Struct { - @UInt16() - external int vendorID; - - @UInt16() - external int tabletID; - - @UInt16() - external int pointerID; - - @UInt16() - external int deviceID; - - @UInt16() - external int systemTabletID; - - @UInt16() - external int vendorPointerType; - - @UInt32() - external int pointerSerialNumber; - - @UInt64() - external int uniqueID; - - @UInt32() - external int capabilityMask; - - @UInt8() - external int pointerType; - - @UInt8() - external int enterProximity; - - @SInt16() - external int reserved1; -} - -@ffi.Packed(1) -final class _OSUnalignedU16 extends ffi.Struct { - @ffi.Uint16() - external int __val; -} - -@ffi.Packed(1) -final class _OSUnalignedU32 extends ffi.Struct { - @ffi.Uint32() - external int __val; -} - -@ffi.Packed(1) -final class _OSUnalignedU64 extends ffi.Struct { - @ffi.Uint64() - external int __val; -} - -final class _RuneCharClass extends ffi.Struct { - @ffi.Array.multi([14]) - external ffi.Array __name; - - @__uint32_t() - external int __mask; -} - -final class _RuneEntry extends ffi.Struct { - @__darwin_rune_t() - external int __min; - - @__darwin_rune_t() - external int __max; - - @__darwin_rune_t() - external int __map; - - external ffi.Pointer<__uint32_t> __types; -} - -final class _RuneLocale extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array __magic; - - @ffi.Array.multi([32]) - external ffi.Array __encoding; - - external ffi.Pointer< - ffi.NativeFunction< - __darwin_rune_t Function( - ffi.Pointer, - __darwin_size_t, - ffi.Pointer>, - ) - > - > - __sgetrune; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - __darwin_rune_t, - ffi.Pointer, - __darwin_size_t, - ffi.Pointer>, - ) - > - > - __sputrune; - - @__darwin_rune_t() - external int __invalid_rune; - - @ffi.Array.multi([256]) - external ffi.Array<__uint32_t> __runetype; - - @ffi.Array.multi([256]) - external ffi.Array<__darwin_rune_t> __maplower; - - @ffi.Array.multi([256]) - external ffi.Array<__darwin_rune_t> __mapupper; - - external _RuneRange __runetype_ext; - - external _RuneRange __maplower_ext; - - external _RuneRange __mapupper_ext; - - external ffi.Pointer __variable; - - @ffi.Int() - external int __variable_len; - - @ffi.Int() - external int __ncharclasses; - - external ffi.Pointer<_RuneCharClass> __charclasses; -} - -final class _RuneRange extends ffi.Struct { - @ffi.Int() - external int __nranges; - - external ffi.Pointer<_RuneEntry> __ranges; -} - -final class __AXObserver extends ffi.Opaque {} - -final class __AXTextMarker extends ffi.Opaque {} - -final class __AXTextMarkerRange extends ffi.Opaque {} - -final class __AXUIElement extends ffi.Opaque {} - -final class __AXValue extends ffi.Opaque {} - -final class __CE_AccessDescription extends ffi.Struct { - external SecAsn1Oid accessMethod; - - external CE_GeneralName accessLocation; -} - -final class __CE_AuthorityInfoAccess extends ffi.Struct { - @uint32() - external int numAccessDescriptions; - - external ffi.Pointer accessDescriptions; -} - -final class __CE_AuthorityKeyID extends ffi.Struct { - @CSSM_BOOL() - external int keyIdentifierPresent; - - external SecAsn1Item keyIdentifier; - - @CSSM_BOOL() - external int generalNamesPresent; - - external ffi.Pointer generalNames; - - @CSSM_BOOL() - external int serialNumberPresent; - - external SecAsn1Item serialNumber; -} - -final class __CE_BasicConstraints extends ffi.Struct { - @CSSM_BOOL() - external int cA; - - @CSSM_BOOL() - external int pathLenConstraintPresent; - - @uint32() - external int pathLenConstraint; -} - -final class __CE_CRLDistPointsSyntax extends ffi.Struct { - @uint32() - external int numDistPoints; - - external ffi.Pointer distPoints; -} - -final class __CE_CRLDistributionPoint extends ffi.Struct { - external ffi.Pointer distPointName; - - @CSSM_BOOL() - external int reasonsPresent; - - @CE_CrlDistReasonFlags() - external int reasons; - - external ffi.Pointer crlIssuer; -} - -final class __CE_CertPolicies extends ffi.Struct { - @uint32() - external int numPolicies; - - external ffi.Pointer policies; -} - -enum __CE_CrlDistributionPointNameType { - CE_CDNT_FullName(0), - CE_CDNT_NameRelativeToCrlIssuer(1); - - final int value; - const __CE_CrlDistributionPointNameType(this.value); - - static __CE_CrlDistributionPointNameType fromValue(int value) => - switch (value) { - 0 => CE_CDNT_FullName, - 1 => CE_CDNT_NameRelativeToCrlIssuer, - _ => throw ArgumentError( - 'Unknown value for __CE_CrlDistributionPointNameType: $value', - ), - }; -} - -final class __CE_DataAndType extends ffi.Struct { - @ffi.UnsignedInt() - external int typeAsInt; - - __CE_DataType get type => __CE_DataType.fromValue(typeAsInt); - set type(__CE_DataType value) => typeAsInt = value.value; - - external CE_Data extension; - - @CSSM_BOOL() - external int critical; -} - -enum __CE_DataType { - DT_AuthorityKeyID(0), - DT_SubjectKeyID(1), - DT_KeyUsage(2), - DT_SubjectAltName(3), - DT_IssuerAltName(4), - DT_ExtendedKeyUsage(5), - DT_BasicConstraints(6), - DT_CertPolicies(7), - DT_NetscapeCertType(8), - DT_CrlNumber(9), - DT_DeltaCrl(10), - DT_CrlReason(11), - DT_CrlDistributionPoints(12), - DT_IssuingDistributionPoint(13), - DT_AuthorityInfoAccess(14), - DT_Other(15), - DT_QC_Statements(16), - DT_NameConstraints(17), - DT_PolicyMappings(18), - DT_PolicyConstraints(19), - DT_InhibitAnyPolicy(20); - - final int value; - const __CE_DataType(this.value); - - static __CE_DataType fromValue(int value) => switch (value) { - 0 => DT_AuthorityKeyID, - 1 => DT_SubjectKeyID, - 2 => DT_KeyUsage, - 3 => DT_SubjectAltName, - 4 => DT_IssuerAltName, - 5 => DT_ExtendedKeyUsage, - 6 => DT_BasicConstraints, - 7 => DT_CertPolicies, - 8 => DT_NetscapeCertType, - 9 => DT_CrlNumber, - 10 => DT_DeltaCrl, - 11 => DT_CrlReason, - 12 => DT_CrlDistributionPoints, - 13 => DT_IssuingDistributionPoint, - 14 => DT_AuthorityInfoAccess, - 15 => DT_Other, - 16 => DT_QC_Statements, - 17 => DT_NameConstraints, - 18 => DT_PolicyMappings, - 19 => DT_PolicyConstraints, - 20 => DT_InhibitAnyPolicy, - _ => throw ArgumentError('Unknown value for __CE_DataType: $value'), - }; -} - -final class __CE_DistributionPointName extends ffi.Struct { - @ffi.UnsignedInt() - external int nameTypeAsInt; - - __CE_CrlDistributionPointNameType get nameType => - __CE_CrlDistributionPointNameType.fromValue(nameTypeAsInt); - set nameType(__CE_CrlDistributionPointNameType value) => - nameTypeAsInt = value.value; - - external UnnamedUnion$8 dpn; -} - -final class __CE_ExtendedKeyUsage extends ffi.Struct { - @uint32() - external int numPurposes; - - external CSSM_OID_PTR purposes; -} - -final class __CE_GeneralName extends ffi.Struct { - @ffi.UnsignedInt() - external int nameTypeAsInt; - - __CE_GeneralNameType get nameType => - __CE_GeneralNameType.fromValue(nameTypeAsInt); - set nameType(__CE_GeneralNameType value) => nameTypeAsInt = value.value; - - @CSSM_BOOL() - external int berEncoded; - - external SecAsn1Item name; -} - -enum __CE_GeneralNameType { - GNT_OtherName(0), - GNT_RFC822Name(1), - GNT_DNSName(2), - GNT_X400Address(3), - GNT_DirectoryName(4), - GNT_EdiPartyName(5), - GNT_URI(6), - GNT_IPAddress(7), - GNT_RegisteredID(8); - - final int value; - const __CE_GeneralNameType(this.value); - - static __CE_GeneralNameType fromValue(int value) => switch (value) { - 0 => GNT_OtherName, - 1 => GNT_RFC822Name, - 2 => GNT_DNSName, - 3 => GNT_X400Address, - 4 => GNT_DirectoryName, - 5 => GNT_EdiPartyName, - 6 => GNT_URI, - 7 => GNT_IPAddress, - 8 => GNT_RegisteredID, - _ => throw ArgumentError('Unknown value for __CE_GeneralNameType: $value'), - }; -} - -final class __CE_GeneralNames extends ffi.Struct { - @uint32() - external int numNames; - - external ffi.Pointer generalName; -} - -final class __CE_GeneralSubtree extends ffi.Struct { - external ffi.Pointer base; - - @uint32() - external int minimum; - - @CSSM_BOOL() - external int maximumPresent; - - @uint32() - external int maximum; -} - -final class __CE_GeneralSubtrees extends ffi.Struct { - @uint32() - external int numSubtrees; - - external ffi.Pointer subtrees; -} - -final class __CE_IssuingDistributionPoint extends ffi.Struct { - external ffi.Pointer distPointName; - - @CSSM_BOOL() - external int onlyUserCertsPresent; - - @CSSM_BOOL() - external int onlyUserCerts; - - @CSSM_BOOL() - external int onlyCACertsPresent; - - @CSSM_BOOL() - external int onlyCACerts; - - @CSSM_BOOL() - external int onlySomeReasonsPresent; - - @CE_CrlDistReasonFlags() - external int onlySomeReasons; - - @CSSM_BOOL() - external int indirectCrlPresent; - - @CSSM_BOOL() - external int indirectCrl; -} - -final class __CE_NameConstraints extends ffi.Struct { - external ffi.Pointer permitted; - - external ffi.Pointer excluded; -} - -final class __CE_OtherName extends ffi.Struct { - external SecAsn1Oid typeId; - - external SecAsn1Item value; -} - -final class __CE_PolicyConstraints extends ffi.Struct { - @CSSM_BOOL() - external int requireExplicitPolicyPresent; - - @uint32() - external int requireExplicitPolicy; - - @CSSM_BOOL() - external int inhibitPolicyMappingPresent; - - @uint32() - external int inhibitPolicyMapping; -} - -final class __CE_PolicyInformation extends ffi.Struct { - external SecAsn1Oid certPolicyId; - - @uint32() - external int numPolicyQualifiers; - - external ffi.Pointer policyQualifiers; -} - -final class __CE_PolicyMapping extends ffi.Struct { - external SecAsn1Oid issuerDomainPolicy; - - external SecAsn1Oid subjectDomainPolicy; -} - -final class __CE_PolicyMappings extends ffi.Struct { - @uint32() - external int numPolicyMappings; - - external ffi.Pointer policyMappings; -} - -final class __CE_PolicyQualifierInfo extends ffi.Struct { - external SecAsn1Oid policyQualifierId; - - external SecAsn1Item qualifier; -} - -final class __CE_QC_Statement extends ffi.Struct { - external SecAsn1Oid statementId; - - external ffi.Pointer semanticsInfo; - - external ffi.Pointer otherInfo; -} - -final class __CE_QC_Statements extends ffi.Struct { - @uint32() - external int numQCStatements; - - external ffi.Pointer qcStatements; -} - -final class __CE_SemanticsInformation extends ffi.Struct { - external ffi.Pointer semanticsIdentifier; - - external ffi.Pointer - nameRegistrationAuthorities; -} - -final class __CFAllocator extends ffi.Opaque {} - -final class __CFArray extends ffi.Opaque {} - -final class __CFAttributedString extends ffi.Opaque {} - -final class __CFBag extends ffi.Opaque {} - -final class __CFBinaryHeap extends ffi.Opaque {} - -final class __CFBitVector extends ffi.Opaque {} - -final class __CFBoolean extends ffi.Opaque {} - -final class __CFBundle extends ffi.Opaque {} - -enum __CFByteOrder { - CFByteOrderUnknown(0), - CFByteOrderLittleEndian(1), - CFByteOrderBigEndian(2); - - final int value; - const __CFByteOrder(this.value); - - static __CFByteOrder fromValue(int value) => switch (value) { - 0 => CFByteOrderUnknown, - 1 => CFByteOrderLittleEndian, - 2 => CFByteOrderBigEndian, - _ => throw ArgumentError('Unknown value for __CFByteOrder: $value'), - }; -} - -final class __CFCalendar extends ffi.Opaque {} - -final class __CFCharacterSet extends ffi.Opaque {} - -final class __CFData extends ffi.Opaque {} - -final class __CFDate extends ffi.Opaque {} - -final class __CFDateFormatter extends ffi.Opaque {} - -final class __CFDictionary extends ffi.Opaque {} - -final class __CFError extends ffi.Opaque {} - -final class __CFFileDescriptor extends ffi.Opaque {} - -final class __CFFileSecurity extends ffi.Opaque {} - -final class __CFHTTPMessage extends ffi.Opaque {} - -final class __CFHost extends ffi.Opaque {} - -final class __CFLocale extends ffi.Opaque {} - -final class __CFMachPort extends ffi.Opaque {} - -final class __CFMessagePort extends ffi.Opaque {} - -final class __CFNetDiagnostic extends ffi.Opaque {} - -final class __CFNetService extends ffi.Opaque {} - -final class __CFNetServiceBrowser extends ffi.Opaque {} - -final class __CFNetServiceMonitor extends ffi.Opaque {} - -final class __CFNotificationCenter extends ffi.Opaque {} - -final class __CFNull extends ffi.Opaque {} - -final class __CFNumber extends ffi.Opaque {} - -final class __CFNumberFormatter extends ffi.Opaque {} - -final class __CFPlugInInstance extends ffi.Opaque {} - -final class __CFReadStream extends ffi.Opaque {} - -final class __CFRunLoopObserver extends ffi.Opaque {} - -final class __CFRunLoopSource extends ffi.Opaque {} - -final class __CFRunLoopTimer extends ffi.Opaque {} - -final class __CFSet extends ffi.Opaque {} - -final class __CFSocket extends ffi.Opaque {} - -final class __CFStringTokenizer extends ffi.Opaque {} - -final class __CFTimeZone extends ffi.Opaque {} - -final class __CFTree extends ffi.Opaque {} - -final class __CFURL extends ffi.Opaque {} - -final class __CFURLEnumerator extends ffi.Opaque {} - -final class __CFUUID extends ffi.Opaque {} - -final class __CFUserNotification extends ffi.Opaque {} - -final class __CFWriteStream extends ffi.Opaque {} - -final class __CFXMLNode extends ffi.Opaque {} - -final class __CFXMLParser extends ffi.Opaque {} - -final class __CGEvent extends ffi.Opaque {} - -final class __CGEventSource extends ffi.Opaque {} - -final class __CGEventTapInformation extends ffi.Struct { - @ffi.Uint32() - external int eventTapID; - - @ffi.Uint32() - external int tapPointAsInt; - - CGEventTapLocation get tapPoint => - CGEventTapLocation.fromValue(tapPointAsInt); - set tapPoint(CGEventTapLocation value) => tapPointAsInt = value.value; - - @ffi.Uint32() - external int optionsAsInt; - - CGEventTapOptions get options => CGEventTapOptions.fromValue(optionsAsInt); - set options(CGEventTapOptions value) => optionsAsInt = value.value; - - @CGEventMask() - external int eventsOfInterest; - - @pid_t() - external int tappingProcess; - - @pid_t() - external int processBeingTapped; - - @ffi.Bool() - external bool enabled; - - @ffi.Float() - external double minUsecLatency; - - @ffi.Float() - external double avgUsecLatency; - - @ffi.Float() - external double maxUsecLatency; -} - -final class __CGEventTapProxy extends ffi.Opaque {} - -final class __CSIdentity extends ffi.Opaque {} - -final class __CSIdentityAuthority extends ffi.Opaque {} - -final class __CSIdentityQuery extends ffi.Opaque {} - -final class __CTFont extends ffi.Opaque {} - -final class __CTFontCollection extends ffi.Opaque {} - -final class __CTFontDescriptor extends ffi.Opaque {} - -final class __CTFrame extends ffi.Opaque {} - -final class __CTFramesetter extends ffi.Opaque {} - -final class __CTGlyphInfo extends ffi.Opaque {} - -final class __CTLine extends ffi.Opaque {} - -final class __CTParagraphStyle extends ffi.Opaque {} - -final class __CTRubyAnnotation extends ffi.Opaque {} - -final class __CTRun extends ffi.Opaque {} - -final class __CTRunDelegate extends ffi.Opaque {} - -final class __CTTextTab extends ffi.Opaque {} - -final class __CTTypesetter extends ffi.Opaque {} - -final class __CVBuffer extends ffi.Opaque {} - -final class __CVDisplayLink extends ffi.Opaque {} - -final class __CVMetalBufferCache extends ffi.Opaque {} - -final class __CVMetalTextureCache extends ffi.Opaque {} - -final class __CVOpenGLBufferPool extends ffi.Opaque {} - -final class __CVOpenGLTextureCache extends ffi.Opaque {} - -final class __CVPixelBufferPool extends ffi.Opaque {} - -final class __DADisk extends ffi.Opaque {} - -final class __DASession extends ffi.Opaque {} - -final class __DCSDictionary extends ffi.Opaque {} - -final class __FSEventStream extends ffi.Opaque {} - -final class __FSFileOperation extends ffi.Opaque {} - -final class __FSFileSecurity extends ffi.Opaque {} - -final class __GLsync extends ffi.Opaque {} - -final class __HIShape extends ffi.Opaque {} - -final class __IOFixedPoint32 extends ffi.Struct { - @ffi.Int32() - external int x; - - @ffi.Int32() - external int y; -} - -final class __IOSurface extends ffi.Opaque {} - -final class __MDItem extends ffi.Opaque {} - -final class __MDLabel extends ffi.Opaque {} - -final class __MDQuery extends ffi.Opaque {} - -final class __NSAppleEventManagerSuspension extends ffi.Opaque {} - -final class __ReplyUnion__clock_priv_subsystem extends ffi.Union { - external __Reply__clock_set_time_t Reply_clock_set_time; - - external __Reply__clock_set_attributes_t Reply_clock_set_attributes; -} - -final class __ReplyUnion__host_priv_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__host_security_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__mach_host_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__mach_port_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__processor_set_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__processor_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__task_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__thread_act_subsystem extends ffi.Opaque {} - -final class __ReplyUnion__vm_map_subsystem extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Reply___host_page_size_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_size_t() - external int out_page_size; -} - -final class __Reply__act_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int old_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array old_state; -} - -final class __Reply__act_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__clock_set_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__clock_set_time_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__etap_trace_thread_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_check_multiuser_mode_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Uint32() - external int multiuser_mode; -} - -final class __Reply__host_create_mach_voucher_t extends ffi.Opaque {} - -final class __Reply__host_default_memory_manager_t extends ffi.Opaque {} - -final class __Reply__host_get_UNDServer_t extends ffi.Opaque {} - -final class __Reply__host_get_atm_diagnostic_flag_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Uint32() - external int diagnostic_flag; -} - -final class __Reply__host_get_boot_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int boot_infoOffset; - - @mach_msg_type_number_t() - external int boot_infoCnt; - - @ffi.Array.multi([4096]) - external ffi.Array boot_info; -} - -final class __Reply__host_get_clock_control_t extends ffi.Opaque {} - -final class __Reply__host_get_clock_service_t extends ffi.Opaque {} - -final class __Reply__host_get_exception_ports_t extends ffi.Opaque {} - -final class __Reply__host_get_io_main_t extends ffi.Opaque {} - -final class __Reply__host_get_multiuser_config_flags_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Uint32() - external int multiuser_flags; -} - -final class __Reply__host_get_special_port_t extends ffi.Opaque {} - -final class __Reply__host_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int host_info_outCnt; - - @ffi.Array.multi([68]) - external ffi.Array host_info_out; -} - -final class __Reply__host_kernel_version_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int kernel_versionOffset; - - @mach_msg_type_number_t() - external int kernel_versionCnt; - - @ffi.Array.multi([512]) - external ffi.Array kernel_version; -} - -final class __Reply__host_lockgroup_info_t extends ffi.Opaque {} - -final class __Reply__host_priv_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int host_info_outCnt; - - @ffi.Array.multi([68]) - external ffi.Array host_info_out; -} - -final class __Reply__host_processor_info_t extends ffi.Opaque {} - -final class __Reply__host_processor_set_priv_t extends ffi.Opaque {} - -final class __Reply__host_processor_sets_t extends ffi.Opaque {} - -final class __Reply__host_processors_t extends ffi.Opaque {} - -final class __Reply__host_reboot_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_register_mach_voucher_attr_manager_t - extends ffi.Opaque {} - -final class __Reply__host_register_well_known_mach_voucher_attr_manager_t - extends ffi.Opaque {} - -final class __Reply__host_request_notification_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_security_create_task_token_t extends ffi.Opaque {} - -final class __Reply__host_security_set_task_token_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_set_UNDServer_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_set_atm_diagnostic_flag_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_set_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_set_multiuser_config_flags_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_set_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__host_statistics64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int host_info64_outCnt; - - @ffi.Array.multi([256]) - external ffi.Array host_info64_out; -} - -final class __Reply__host_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int host_info_outCnt; - - @ffi.Array.multi([68]) - external ffi.Array host_info_out; -} - -final class __Reply__host_swap_exception_ports_t extends ffi.Opaque {} - -final class __Reply__host_virtual_physical_table_info_t extends ffi.Opaque {} - -final class __Reply__kext_request_t extends ffi.Opaque {} - -final class __Reply__kmod_control_t extends ffi.Opaque {} - -final class __Reply__kmod_create_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @kmod_t() - external int module; -} - -final class __Reply__kmod_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__kmod_get_info_t extends ffi.Opaque {} - -final class __Reply__lock_set_create_t extends ffi.Opaque {} - -final class __Reply__lock_set_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_make_memory_entry_64_t extends ffi.Opaque {} - -final class __Reply__mach_make_memory_entry_t extends ffi.Opaque {} - -final class __Reply__mach_memory_info_t extends ffi.Opaque {} - -final class __Reply__mach_memory_object_memory_entry_64_t extends ffi.Opaque {} - -final class __Reply__mach_memory_object_memory_entry_t extends ffi.Opaque {} - -final class __Reply__mach_port_allocate_full_t extends ffi.Opaque {} - -final class __Reply__mach_port_allocate_name_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_allocate_qos_t extends ffi.Opaque {} - -final class __Reply__mach_port_allocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_name_t() - external int name; -} - -final class __Reply__mach_port_assert_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_construct_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_name_t() - external int name; -} - -final class __Reply__mach_port_deallocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_destruct_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_dnrequest_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.UnsignedInt() - external int dnr_total; - - @ffi.UnsignedInt() - external int dnr_used; -} - -final class __Reply__mach_port_extract_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_extract_right_t extends ffi.Opaque {} - -final class __Reply__mach_port_get_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int port_info_outCnt; - - @ffi.Array.multi([17]) - external ffi.Array port_info_out; -} - -@ffi.Packed(4) -final class __Reply__mach_port_get_context_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_context_t() - external int context; -} - -final class __Reply__mach_port_get_refs_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_urefs_t() - external int refs; -} - -final class __Reply__mach_port_get_service_port_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - external mach_service_port_info_data_t sp_info_out; -} - -final class __Reply__mach_port_get_set_status_t extends ffi.Opaque {} - -final class __Reply__mach_port_get_srights_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_rights_t() - external int srights; -} - -final class __Reply__mach_port_guard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_guard_with_flags_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_insert_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_insert_right_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -@ffi.Packed(4) -final class __Reply__mach_port_is_connection_for_service_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Uint64() - external int filter_policy_id; -} - -final class __Reply__mach_port_kernel_object_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.UnsignedInt() - external int object_type; - - @ffi.UnsignedInt() - external int object_addr; -} - -@ffi.Packed(4) -final class __Reply__mach_port_kobject_description_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @natural_t() - external int object_typeAsInt; - - ipc_info_object_type_t get object_type => - ipc_info_object_type_t.fromValue(object_typeAsInt); - set object_type(ipc_info_object_type_t value) => - object_typeAsInt = value.value; - - @mach_vm_address_t() - external int object_addr; - - @mach_msg_type_number_t() - external int descriptionOffset; - - @mach_msg_type_number_t() - external int descriptionCnt; - - @ffi.Array.multi([512]) - external ffi.Array description; -} - -@ffi.Packed(4) -final class __Reply__mach_port_kobject_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @natural_t() - external int object_typeAsInt; - - ipc_info_object_type_t get object_type => - ipc_info_object_type_t.fromValue(object_typeAsInt); - set object_type(ipc_info_object_type_t value) => - object_typeAsInt = value.value; - - @mach_vm_address_t() - external int object_addr; -} - -final class __Reply__mach_port_mod_refs_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_move_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_names_t extends ffi.Opaque {} - -final class __Reply__mach_port_peek_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_seqno_t() - external int request_seqnop; - - @mach_msg_size_t() - external int msg_sizep; - - @mach_msg_id_t() - external int msg_idp; - - @mach_msg_type_number_t() - external int trailer_infopCnt; - - @ffi.Array.multi([68]) - external ffi.Array trailer_infop; -} - -final class __Reply__mach_port_rename_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_request_notification_t extends ffi.Opaque {} - -final class __Reply__mach_port_set_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_set_context_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_set_mscount_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_set_seqno_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_space_basic_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - external ipc_info_space_basic_t basic_info; -} - -final class __Reply__mach_port_space_info_t extends ffi.Opaque {} - -final class __Reply__mach_port_swap_guard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_port_type_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_port_type_t() - external int ptype; -} - -final class __Reply__mach_port_unguard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_ports_lookup_t extends ffi.Opaque {} - -final class __Reply__mach_ports_register_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__mach_vm_region_info_64_t extends ffi.Opaque {} - -final class __Reply__mach_vm_region_info_t extends ffi.Opaque {} - -final class __Reply__mach_vm_wire_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -@ffi.Packed(4) -final class __Reply__mach_zone_info_for_zone_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - external mach_zone_info_t info; -} - -final class __Reply__mach_zone_info_t extends ffi.Opaque {} - -final class __Reply__processor_assign_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_exit_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_get_assignment_t extends ffi.Opaque {} - -final class __Reply__processor_info_t extends ffi.Opaque {} - -final class __Reply__processor_set_create_t extends ffi.Opaque {} - -final class __Reply__processor_set_default_t extends ffi.Opaque {} - -final class __Reply__processor_set_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_set_info_t extends ffi.Opaque {} - -final class __Reply__processor_set_max_priority_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_set_policy_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_set_policy_disable_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__processor_set_policy_enable_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -@ffi.Packed(4) -final class __Reply__processor_set_stack_usage_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.UnsignedInt() - external int ltotal; - - @vm_size_t() - external int space; - - @vm_size_t() - external int resident; - - @vm_size_t() - external int maxusage; - - @vm_offset_t() - external int maxstack; -} - -final class __Reply__processor_set_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int info_outCnt; - - @ffi.Array.multi([5]) - external ffi.Array info_out; -} - -final class __Reply__processor_set_tasks_t extends ffi.Opaque {} - -final class __Reply__processor_set_tasks_with_flavor_t extends ffi.Opaque {} - -final class __Reply__processor_set_threads_t extends ffi.Opaque {} - -final class __Reply__processor_start_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__semaphore_create_t extends ffi.Opaque {} - -final class __Reply__semaphore_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_assign_default_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_assign_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_create_identity_token_t extends ffi.Opaque {} - -final class __Reply__task_create_t extends ffi.Opaque {} - -final class __Reply__task_dyld_process_info_notify_deregister_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_dyld_process_info_notify_register_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_generate_corpse_t extends ffi.Opaque {} - -final class __Reply__task_get_assignment_t extends ffi.Opaque {} - -final class __Reply__task_get_dyld_image_infos_t extends ffi.Opaque {} - -final class __Reply__task_get_emulation_vector_t extends ffi.Opaque {} - -final class __Reply__task_get_exc_guard_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @task_exc_guard_behavior_t() - external int behavior; -} - -final class __Reply__task_get_exception_ports_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int masksCnt; - - @ffi.Array.multi([32]) - external ffi.Array masks; - - @ffi.Array.multi([32]) - external ffi.Array old_handlers_info; - - @ffi.Array.multi([32]) - external ffi.Array old_behaviors; - - @ffi.Array.multi([32]) - external ffi.Array old_flavors; -} - -final class __Reply__task_get_exception_ports_t extends ffi.Opaque {} - -final class __Reply__task_get_mach_voucher_t extends ffi.Opaque {} - -final class __Reply__task_get_special_port_t extends ffi.Opaque {} - -final class __Reply__task_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int old_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array old_state; -} - -final class __Reply__task_identity_token_get_task_port_t extends ffi.Opaque {} - -final class __Reply__task_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int task_info_outCnt; - - @ffi.Array.multi([94]) - external ffi.Array task_info_out; -} - -final class __Reply__task_inspect_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int info_outCnt; - - @ffi.Array.multi([4]) - external ffi.Array info_out; -} - -@ffi.Packed(4) -final class __Reply__task_map_corpse_info_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_vm_address_t() - external int kcd_addr_begin; - - @mach_vm_size_t() - external int kcd_size; -} - -@ffi.Packed(4) -final class __Reply__task_map_corpse_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int kcd_addr_begin; - - @ffi.Uint32() - external int kcd_size; -} - -@ffi.Packed(4) -final class __Reply__task_map_kcdata_object_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_vm_address_t() - external int kcd_addr_begin; - - @mach_vm_size_t() - external int kcd_size; -} - -final class __Reply__task_policy_get_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @ffi.Array.multi([16]) - external ffi.Array policy_info; - - @boolean_t() - external int get_default; -} - -final class __Reply__task_policy_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -@ffi.Packed(4) -final class __Reply__task_purgable_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - external task_purgable_info_t stats; -} - -@ffi.Packed(4) -final class __Reply__task_register_dyld_get_process_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - external dyld_kernel_process_info_t dyld_process_state; -} - -final class __Reply__task_register_dyld_image_infos_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_register_dyld_set_dyld_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_register_dyld_shared_cache_image_info_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_register_hardened_exception_handler_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_resume2_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_resume_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_sample_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_corpse_forking_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_emulation_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_emulation_vector_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_exc_guard_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_mach_voucher_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_phys_footprint_limit_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Int() - external int old_limit; -} - -final class __Reply__task_set_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_port_space_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_ras_pc_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_suspend2_t extends ffi.Opaque {} - -final class __Reply__task_suspend_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_swap_exception_ports_t extends ffi.Opaque {} - -final class __Reply__task_swap_mach_voucher_t extends ffi.Opaque {} - -final class __Reply__task_terminate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_test_async_upcall_propagation_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_test_sync_upcall_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_threads_t extends ffi.Opaque {} - -final class __Reply__task_unregister_dyld_image_infos_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_wire_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__task_zone_info_t extends ffi.Opaque {} - -final class __Reply__thread_abort_safely_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_abort_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_adopt_exception_handler_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_assign_default_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_assign_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_convert_thread_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int out_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array out_state; -} - -final class __Reply__thread_create_running_t extends ffi.Opaque {} - -final class __Reply__thread_create_t extends ffi.Opaque {} - -final class __Reply__thread_depress_abort_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_get_assignment_t extends ffi.Opaque {} - -final class __Reply__thread_get_exception_ports_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int masksCnt; - - @ffi.Array.multi([32]) - external ffi.Array masks; - - @ffi.Array.multi([32]) - external ffi.Array old_handlers_info; - - @ffi.Array.multi([32]) - external ffi.Array old_behaviors; - - @ffi.Array.multi([32]) - external ffi.Array old_flavors; -} - -final class __Reply__thread_get_exception_ports_t extends ffi.Opaque {} - -final class __Reply__thread_get_mach_voucher_t extends ffi.Opaque {} - -final class __Reply__thread_get_special_port_t extends ffi.Opaque {} - -final class __Reply__thread_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int old_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array old_state; -} - -final class __Reply__thread_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int thread_info_outCnt; - - @ffi.Array.multi([32]) - external ffi.Array thread_info_out; -} - -final class __Reply__thread_policy_get_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @ffi.Array.multi([16]) - external ffi.Array policy_info; - - @boolean_t() - external int get_default; -} - -final class __Reply__thread_policy_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_resume_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_sample_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_set_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_set_mach_voucher_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_set_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_set_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_suspend_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_swap_exception_ports_t extends ffi.Opaque {} - -final class __Reply__thread_swap_mach_voucher_t extends ffi.Opaque {} - -final class __Reply__thread_terminate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__thread_wire_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -@ffi.Packed(4) -final class __Reply__vm_allocate_cpm_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; -} - -@ffi.Packed(4) -final class __Reply__vm_allocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; -} - -final class __Reply__vm_behavior_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_copy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_deallocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_inherit_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_machine_attribute_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_machine_attribute_val_t() - external int value; -} - -@ffi.Packed(4) -final class __Reply__vm_map_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; -} - -final class __Reply__vm_map_exec_lockdown_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_map_page_query_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @integer_t() - external int disposition; - - @integer_t() - external int ref_count; -} - -@ffi.Packed(4) -final class __Reply__vm_map_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; -} - -final class __Reply__vm_mapped_pages_info_t extends ffi.Opaque {} - -final class __Reply__vm_msync_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_protect_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_purgable_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Int() - external int state; -} - -final class __Reply__vm_read_list_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @ffi.Array.multi([256]) - external ffi.Array data_list; -} - -@ffi.Packed(4) -final class __Reply__vm_read_overwrite_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_size_t() - external int outsize; -} - -final class __Reply__vm_read_t extends ffi.Opaque {} - -final class __Reply__vm_region_64_t extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Reply__vm_region_recurse_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @natural_t() - external int nesting_depth; - - @mach_msg_type_number_t() - external int infoCnt; - - @ffi.Array.multi([19]) - external ffi.Array info; -} - -@ffi.Packed(4) -final class __Reply__vm_region_recurse_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @natural_t() - external int nesting_depth; - - @mach_msg_type_number_t() - external int infoCnt; - - @ffi.Array.multi([19]) - external ffi.Array info; -} - -final class __Reply__vm_region_t extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Reply__vm_remap_new_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int target_address; - - @vm_prot_t() - external int cur_protection; - - @vm_prot_t() - external int max_protection; -} - -@ffi.Packed(4) -final class __Reply__vm_remap_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; - - @vm_address_t() - external int target_address; - - @vm_prot_t() - external int cur_protection; - - @vm_prot_t() - external int max_protection; -} - -final class __Reply__vm_wire_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __Reply__vm_write_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -final class __RequestUnion__clock_priv_subsystem extends ffi.Union { - external __Request__clock_set_time_t Request_clock_set_time; - - external __Request__clock_set_attributes_t Request_clock_set_attributes; -} - -final class __RequestUnion__host_priv_subsystem extends ffi.Opaque {} - -final class __RequestUnion__host_security_subsystem extends ffi.Opaque {} - -final class __RequestUnion__mach_host_subsystem extends ffi.Opaque {} - -final class __RequestUnion__mach_port_subsystem extends ffi.Opaque {} - -final class __RequestUnion__processor_set_subsystem extends ffi.Union { - external __Request__processor_set_statistics_t - Request_processor_set_statistics; - - external __Request__processor_set_destroy_t Request_processor_set_destroy; - - external __Request__processor_set_max_priority_t - Request_processor_set_max_priority; - - external __Request__processor_set_policy_enable_t - Request_processor_set_policy_enable; - - external __Request__processor_set_policy_disable_t - Request_processor_set_policy_disable; - - external __Request__processor_set_tasks_t Request_processor_set_tasks; - - external __Request__processor_set_threads_t Request_processor_set_threads; - - external __Request__processor_set_policy_control_t - Request_processor_set_policy_control; - - external __Request__processor_set_stack_usage_t - Request_processor_set_stack_usage; - - external __Request__processor_set_info_t Request_processor_set_info; - - external __Request__processor_set_tasks_with_flavor_t - Request_processor_set_tasks_with_flavor; -} - -final class __RequestUnion__processor_subsystem extends ffi.Opaque {} - -final class __RequestUnion__task_subsystem extends ffi.Opaque {} - -final class __RequestUnion__thread_act_subsystem extends ffi.Opaque {} - -final class __RequestUnion__vm_map_subsystem extends ffi.Opaque {} - -final class __Request___host_page_size_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__act_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int flavor; - - @mach_msg_type_number_t() - external int old_stateCnt; -} - -final class __Request__act_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int flavor; - - @mach_msg_type_number_t() - external int new_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array new_state; -} - -final class __Request__clock_set_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @clock_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int clock_attrCnt; - - @ffi.Array.multi([1]) - external ffi.Array clock_attr; -} - -final class __Request__clock_set_time_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - external mach_timespec_t new_time; -} - -final class __Request__etap_trace_thread_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @boolean_t() - external int trace_status; -} - -final class __Request__host_check_multiuser_mode_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_create_mach_voucher_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_msg_type_number_t() - external int recipesCnt; - - @ffi.Array.multi([5120]) - external ffi.Array recipes; -} - -final class __Request__host_default_memory_manager_t extends ffi.Opaque {} - -final class __Request__host_get_UNDServer_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_get_atm_diagnostic_flag_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_get_boot_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_get_clock_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @clock_id_t() - external int clock_id; -} - -final class __Request__host_get_clock_service_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @clock_id_t() - external int clock_id; -} - -final class __Request__host_get_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @exception_mask_t() - external int exception_mask; -} - -final class __Request__host_get_io_main_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_get_multiuser_config_flags_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_get_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int node; - - @ffi.Int() - external int which; -} - -final class __Request__host_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @host_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int host_info_outCnt; -} - -final class __Request__host_kernel_version_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_lockgroup_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_priv_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @host_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int host_info_outCnt; -} - -final class __Request__host_processor_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @processor_flavor_t() - external int flavor; -} - -final class __Request__host_processor_set_priv_t extends ffi.Opaque {} - -final class __Request__host_processor_sets_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_processors_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__host_reboot_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int options; -} - -final class __Request__host_register_mach_voucher_attr_manager_t - extends ffi.Opaque {} - -final class __Request__host_register_well_known_mach_voucher_attr_manager_t - extends ffi.Opaque {} - -final class __Request__host_request_notification_t extends ffi.Opaque {} - -final class __Request__host_security_create_task_token_t extends ffi.Opaque {} - -final class __Request__host_security_set_task_token_t extends ffi.Opaque {} - -final class __Request__host_set_UNDServer_t extends ffi.Opaque {} - -final class __Request__host_set_atm_diagnostic_flag_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Uint32() - external int diagnostic_flag; -} - -final class __Request__host_set_exception_ports_t extends ffi.Opaque {} - -final class __Request__host_set_multiuser_config_flags_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Uint32() - external int multiuser_flags; -} - -final class __Request__host_set_special_port_t extends ffi.Opaque {} - -final class __Request__host_statistics64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @host_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int host_info64_outCnt; -} - -final class __Request__host_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @host_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int host_info_outCnt; -} - -final class __Request__host_swap_exception_ports_t extends ffi.Opaque {} - -final class __Request__host_virtual_physical_table_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__kext_request_t extends ffi.Opaque {} - -final class __Request__kmod_control_t extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Request__kmod_create_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int info; -} - -final class __Request__kmod_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kmod_t() - external int module; -} - -final class __Request__kmod_get_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__lock_set_create_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int n_ulocks; - - @ffi.Int() - external int policy; -} - -final class __Request__lock_set_destroy_t extends ffi.Opaque {} - -final class __Request__mach_make_memory_entry_64_t extends ffi.Opaque {} - -final class __Request__mach_make_memory_entry_t extends ffi.Opaque {} - -final class __Request__mach_memory_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__mach_memory_object_memory_entry_64_t - extends ffi.Opaque {} - -final class __Request__mach_memory_object_memory_entry_t extends ffi.Opaque {} - -final class __Request__mach_port_allocate_full_t extends ffi.Opaque {} - -final class __Request__mach_port_allocate_name_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_right_t() - external int right; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_allocate_qos_t extends ffi.Opaque {} - -final class __Request__mach_port_allocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_right_t() - external int right; -} - -final class __Request__mach_port_assert_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int infoCnt; - - @ffi.Array.multi([17]) - external ffi.Array info; -} - -final class __Request__mach_port_construct_t extends ffi.Opaque {} - -final class __Request__mach_port_deallocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -@ffi.Packed(4) -final class __Request__mach_port_destruct_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_delta_t() - external int srdelta; - - @mach_port_context_t() - external int guard; -} - -final class __Request__mach_port_dnrequest_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_extract_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_name_t() - external int pset; -} - -final class __Request__mach_port_extract_right_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_msg_type_name_t() - external int msgt_name; -} - -final class __Request__mach_port_get_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int port_info_outCnt; -} - -final class __Request__mach_port_get_context_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_get_refs_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_right_t() - external int right; -} - -final class __Request__mach_port_get_service_port_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_get_set_status_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_get_srights_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -@ffi.Packed(4) -final class __Request__mach_port_guard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_context_t() - external int guard; - - @boolean_t() - external int strict; -} - -@ffi.Packed(4) -final class __Request__mach_port_guard_with_flags_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_context_t() - external int guard; - - @ffi.Uint64() - external int flags; -} - -final class __Request__mach_port_insert_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_name_t() - external int pset; -} - -final class __Request__mach_port_insert_right_t extends ffi.Opaque {} - -final class __Request__mach_port_is_connection_for_service_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int connection_port; - - @mach_port_name_t() - external int service_port; -} - -final class __Request__mach_port_kernel_object_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_kobject_description_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_kobject_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -final class __Request__mach_port_mod_refs_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_right_t() - external int right; - - @mach_port_delta_t() - external int delta; -} - -final class __Request__mach_port_move_member_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int member; - - @mach_port_name_t() - external int after; -} - -final class __Request__mach_port_names_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__mach_port_peek_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_msg_trailer_type_t() - external int trailer_type; - - @mach_port_seqno_t() - external int request_seqnop; - - @mach_msg_type_number_t() - external int trailer_infopCnt; -} - -final class __Request__mach_port_rename_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int old_name; - - @mach_port_name_t() - external int new_name; -} - -final class __Request__mach_port_request_notification_t extends ffi.Opaque {} - -final class __Request__mach_port_set_attributes_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int port_infoCnt; - - @ffi.Array.multi([17]) - external ffi.Array port_info; -} - -@ffi.Packed(4) -final class __Request__mach_port_set_context_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_context_t() - external int context; -} - -final class __Request__mach_port_set_mscount_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_mscount_t() - external int mscount; -} - -final class __Request__mach_port_set_seqno_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_seqno_t() - external int seqno; -} - -final class __Request__mach_port_space_basic_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__mach_port_space_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -@ffi.Packed(4) -final class __Request__mach_port_swap_guard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_context_t() - external int old_guard; - - @mach_port_context_t() - external int new_guard; -} - -final class __Request__mach_port_type_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; -} - -@ffi.Packed(4) -final class __Request__mach_port_unguard_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int name; - - @mach_port_context_t() - external int guard; -} - -final class __Request__mach_ports_lookup_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__mach_ports_register_t extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Request__mach_vm_region_info_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; -} - -@ffi.Packed(4) -final class __Request__mach_vm_region_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; -} - -final class __Request__mach_vm_wire_t extends ffi.Opaque {} - -final class __Request__mach_zone_info_for_zone_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - external mach_zone_name_t name; -} - -final class __Request__mach_zone_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_assign_t extends ffi.Opaque {} - -final class __Request__processor_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_msg_type_number_t() - external int processor_cmdCnt; - - @ffi.Array.multi([20]) - external ffi.Array processor_cmd; -} - -final class __Request__processor_exit_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_get_assignment_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @processor_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int processor_info_outCnt; -} - -final class __Request__processor_set_create_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_set_default_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_set_destroy_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_set_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int flavor; - - @mach_msg_type_number_t() - external int info_outCnt; -} - -final class __Request__processor_set_max_priority_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int max_priority; - - @boolean_t() - external int change_threads; -} - -final class __Request__processor_set_policy_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @processor_set_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @ffi.Array.multi([5]) - external ffi.Array policy_info; - - @boolean_t() - external int change; -} - -final class __Request__processor_set_policy_disable_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int policy; - - @boolean_t() - external int change_threads; -} - -final class __Request__processor_set_policy_enable_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int policy; -} - -final class __Request__processor_set_stack_usage_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_set_statistics_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @processor_set_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int info_outCnt; -} - -final class __Request__processor_set_tasks_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_set_tasks_with_flavor_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_task_flavor_t() - external int flavor; -} - -final class __Request__processor_set_threads_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__processor_start_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__semaphore_create_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int policy; - - @ffi.Int() - external int value; -} - -final class __Request__semaphore_destroy_t extends ffi.Opaque {} - -final class __Request__task_assign_default_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @boolean_t() - external int assign_threads; -} - -final class __Request__task_assign_t extends ffi.Opaque {} - -final class __Request__task_create_identity_token_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_create_t extends ffi.Opaque {} - -final class __Request__task_dyld_process_info_notify_deregister_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int notify; -} - -final class __Request__task_dyld_process_info_notify_register_t - extends ffi.Opaque {} - -final class __Request__task_generate_corpse_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_get_assignment_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_get_dyld_image_infos_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_get_emulation_vector_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_get_exc_guard_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_get_exception_ports_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @exception_mask_t() - external int exception_mask; -} - -final class __Request__task_get_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @exception_mask_t() - external int exception_mask; -} - -final class __Request__task_get_mach_voucher_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_voucher_selector_t() - external int which; -} - -final class __Request__task_get_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int which_port; -} - -final class __Request__task_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int old_stateCnt; -} - -final class __Request__task_identity_token_get_task_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_flavor_t() - external int flavor; -} - -final class __Request__task_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int task_info_outCnt; -} - -final class __Request__task_inspect_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_inspect_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int info_outCnt; -} - -final class __Request__task_map_corpse_info_64_t extends ffi.Opaque {} - -final class __Request__task_map_corpse_info_t extends ffi.Opaque {} - -final class __Request__task_map_kcdata_object_64_t extends ffi.Opaque {} - -final class __Request__task_policy_get_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_policy_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @boolean_t() - external int get_default; -} - -final class __Request__task_policy_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_policy_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @ffi.Array.multi([16]) - external ffi.Array policy_info; -} - -final class __Request__task_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @policy_t() - external int policy; - - @mach_msg_type_number_t() - external int baseCnt; - - @ffi.Array.multi([5]) - external ffi.Array base; - - @boolean_t() - external int set_limit; - - @boolean_t() - external int change; -} - -final class __Request__task_purgable_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_register_dyld_get_process_state_t - extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_register_dyld_image_infos_t extends ffi.Opaque {} - -final class __Request__task_register_dyld_set_dyld_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Uint8() - external int dyld_state; - - @ffi.Array.multi([3]) - external ffi.Array dyld_statePad; -} - -@ffi.Packed(4) -final class __Request__task_register_dyld_shared_cache_image_info_t - extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - external dyld_kernel_image_info_t dyld_cache_image; - - @boolean_t() - external int no_cache; - - @boolean_t() - external int private_cache; -} - -final class __Request__task_register_hardened_exception_handler_t - extends ffi.Opaque {} - -final class __Request__task_resume2_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_resume_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_sample_t extends ffi.Opaque {} - -final class __Request__task_set_corpse_forking_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_corpse_forking_behavior_t() - external int behavior; -} - -@ffi.Packed(4) -final class __Request__task_set_emulation_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int routine_entry_pt; - - @ffi.Int() - external int routine_number; -} - -final class __Request__task_set_emulation_vector_t extends ffi.Opaque {} - -final class __Request__task_set_exc_guard_behavior_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_exc_guard_behavior_t() - external int behavior; -} - -final class __Request__task_set_exception_ports_t extends ffi.Opaque {} - -final class __Request__task_set_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @task_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int task_info_inCnt; - - @ffi.Array.multi([94]) - external ffi.Array task_info_in; -} - -final class __Request__task_set_mach_voucher_t extends ffi.Opaque {} - -final class __Request__task_set_phys_footprint_limit_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int new_limit; -} - -final class __Request__task_set_policy_t extends ffi.Opaque {} - -final class __Request__task_set_port_space_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int table_entries; -} - -@ffi.Packed(4) -final class __Request__task_set_ras_pc_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int basepc; - - @vm_address_t() - external int boundspc; -} - -final class __Request__task_set_special_port_t extends ffi.Opaque {} - -final class __Request__task_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int new_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array new_state; -} - -final class __Request__task_suspend2_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_suspend_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_swap_exception_ports_t extends ffi.Opaque {} - -final class __Request__task_swap_mach_voucher_t extends ffi.Opaque {} - -final class __Request__task_terminate_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_test_async_upcall_propagation_t - extends ffi.Opaque {} - -final class __Request__task_test_sync_upcall_t extends ffi.Opaque {} - -final class __Request__task_threads_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__task_unregister_dyld_image_infos_t extends ffi.Opaque {} - -final class __Request__task_wire_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @boolean_t() - external int must_wire; -} - -final class __Request__task_zone_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_abort_safely_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_abort_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_adopt_exception_handler_t extends ffi.Opaque {} - -final class __Request__thread_assign_default_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_assign_t extends ffi.Opaque {} - -final class __Request__thread_convert_thread_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int direction; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int in_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array in_state; - - @mach_msg_type_number_t() - external int out_stateCnt; -} - -final class __Request__thread_create_running_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int new_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array new_state; -} - -final class __Request__thread_create_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_depress_abort_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_get_assignment_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_get_exception_ports_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @exception_mask_t() - external int exception_mask; -} - -final class __Request__thread_get_exception_ports_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @exception_mask_t() - external int exception_mask; -} - -final class __Request__thread_get_mach_voucher_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @mach_voucher_selector_t() - external int which; -} - -final class __Request__thread_get_special_port_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Int() - external int which_port; -} - -final class __Request__thread_get_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int old_stateCnt; -} - -final class __Request__thread_info_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int thread_info_outCnt; -} - -final class __Request__thread_policy_get_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_policy_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @boolean_t() - external int get_default; -} - -final class __Request__thread_policy_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_policy_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int policy_infoCnt; - - @ffi.Array.multi([16]) - external ffi.Array policy_info; -} - -final class __Request__thread_policy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @policy_t() - external int policy; - - @mach_msg_type_number_t() - external int baseCnt; - - @ffi.Array.multi([5]) - external ffi.Array base; - - @boolean_t() - external int set_limit; -} - -final class __Request__thread_resume_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_sample_t extends ffi.Opaque {} - -final class __Request__thread_set_exception_ports_t extends ffi.Opaque {} - -final class __Request__thread_set_mach_voucher_t extends ffi.Opaque {} - -final class __Request__thread_set_policy_t extends ffi.Opaque {} - -final class __Request__thread_set_special_port_t extends ffi.Opaque {} - -final class __Request__thread_set_state_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @thread_state_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int new_stateCnt; - - @ffi.Array.multi([1296]) - external ffi.Array new_state; -} - -final class __Request__thread_suspend_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_swap_exception_ports_t extends ffi.Opaque {} - -final class __Request__thread_swap_mach_voucher_t extends ffi.Opaque {} - -final class __Request__thread_terminate_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -final class __Request__thread_wire_t extends ffi.Opaque {} - -final class __Request__vm_allocate_cpm_t extends ffi.Opaque {} - -@ffi.Packed(4) -final class __Request__vm_allocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @ffi.Int() - external int flags; -} - -@ffi.Packed(4) -final class __Request__vm_behavior_set_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_behavior_t() - external int new_behavior; -} - -@ffi.Packed(4) -final class __Request__vm_copy_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int source_address; - - @vm_size_t() - external int size; - - @vm_address_t() - external int dest_address; -} - -@ffi.Packed(4) -final class __Request__vm_deallocate_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; -} - -@ffi.Packed(4) -final class __Request__vm_inherit_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_inherit_t() - external int new_inheritance; -} - -@ffi.Packed(4) -final class __Request__vm_machine_attribute_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_machine_attribute_t() - external int attribute; - - @vm_machine_attribute_val_t() - external int value; -} - -final class __Request__vm_map_64_t extends ffi.Opaque {} - -final class __Request__vm_map_exec_lockdown_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -@ffi.Packed(4) -final class __Request__vm_map_page_query_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_offset_t() - external int offset; -} - -final class __Request__vm_map_t extends ffi.Opaque {} - -final class __Request__vm_mapped_pages_info_t extends ffi.Struct { - external mach_msg_header_t Head; -} - -@ffi.Packed(4) -final class __Request__vm_msync_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_sync_t() - external int sync_flags; -} - -@ffi.Packed(4) -final class __Request__vm_protect_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @boolean_t() - external int set_maximum; - - @vm_prot_t() - external int new_protection; -} - -@ffi.Packed(4) -final class __Request__vm_purgable_control_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_purgable_t() - external int control; - - @ffi.Int() - external int state; -} - -final class __Request__vm_read_list_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @ffi.Array.multi([256]) - external ffi.Array data_list; - - @natural_t() - external int count; -} - -@ffi.Packed(4) -final class __Request__vm_read_overwrite_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_address_t() - external int data; -} - -@ffi.Packed(4) -final class __Request__vm_read_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; -} - -@ffi.Packed(4) -final class __Request__vm_region_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_region_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int infoCnt; -} - -@ffi.Packed(4) -final class __Request__vm_region_recurse_64_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @natural_t() - external int nesting_depth; - - @mach_msg_type_number_t() - external int infoCnt; -} - -@ffi.Packed(4) -final class __Request__vm_region_recurse_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @natural_t() - external int nesting_depth; - - @mach_msg_type_number_t() - external int infoCnt; -} - -@ffi.Packed(4) -final class __Request__vm_region_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @vm_address_t() - external int address; - - @vm_region_flavor_t() - external int flavor; - - @mach_msg_type_number_t() - external int infoCnt; -} - -final class __Request__vm_remap_new_t extends ffi.Opaque {} - -final class __Request__vm_remap_t extends ffi.Opaque {} - -final class __Request__vm_wire_t extends ffi.Opaque {} - -final class __Request__vm_write_t extends ffi.Opaque {} - -final class __SKIndex extends ffi.Opaque {} - -final class __SKIndexDocumentIterator extends ffi.Opaque {} - -final class __SKSearch extends ffi.Opaque {} - -final class __SKSearchGroup extends ffi.Opaque {} - -final class __SKSearchResults extends ffi.Opaque {} - -final class __SKSummary extends ffi.Opaque {} - -final class __SecACL extends ffi.Opaque {} - -final class __SecAccess extends ffi.Opaque {} - -final class __SecAccessControl extends ffi.Opaque {} - -final class __SecCertificate extends ffi.Opaque {} - -final class __SecCode extends ffi.Opaque {} - -final class __SecIdentity extends ffi.Opaque {} - -final class __SecKey extends ffi.Opaque {} - -final class __SecKeychain extends ffi.Opaque {} - -final class __SecKeychainItem extends ffi.Opaque {} - -final class __SecKeychainSearch extends ffi.Opaque {} - -final class __SecPassword extends ffi.Opaque {} - -final class __SecPolicy extends ffi.Opaque {} - -final class __SecRandom extends ffi.Opaque {} - -final class __SecRequirement extends ffi.Opaque {} - -final class __SecTask extends ffi.Opaque {} - -final class __SecTrust extends ffi.Opaque {} - -final class __SecTrustedApplication extends ffi.Opaque {} - -final class __arm_legacy_debug_state extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bcr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wcr; -} - -final class __arm_pagein_state extends ffi.Struct { - @ffi.Int() - external int __pagein_error; -} - -final class __darwin_arm_cpmu_state64 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __ctrs; -} - -final class __darwin_arm_debug_state32 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __bcr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint32_t> __wcr; - - @__uint64_t() - external int __mdscr_el1; -} - -final class __darwin_arm_debug_state64 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __bvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __bcr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __wvr; - - @ffi.Array.multi([16]) - external ffi.Array<__uint64_t> __wcr; - - @__uint64_t() - external int __mdscr_el1; -} - -final class __darwin_arm_exception_state extends ffi.Struct { - @__uint32_t() - external int __exception; - - @__uint32_t() - external int __fsr; - - @__uint32_t() - external int __far; -} - -final class __darwin_arm_exception_state64 extends ffi.Struct { - @__uint64_t() - external int __far; - - @__uint32_t() - external int __esr; - - @__uint32_t() - external int __exception; -} - -final class __darwin_arm_exception_state64_v2 extends ffi.Struct { - @__uint64_t() - external int __far; - - @__uint64_t() - external int __esr; -} - -final class __darwin_arm_neon_state extends ffi.Opaque {} - -final class __darwin_arm_neon_state64 extends ffi.Opaque {} - -final class __darwin_arm_sme2_state extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array __zt0; -} - -final class __darwin_arm_sme_state extends ffi.Struct { - @__uint64_t() - external int __svcr; - - @__uint64_t() - external int __tpidr2_el0; - - @__uint16_t() - external int __svl_b; -} - -final class __darwin_arm_sme_za_state extends ffi.Struct { - @ffi.Array.multi([4096]) - external ffi.Array __za; -} - -final class __darwin_arm_sve_p_state extends ffi.Struct { - @ffi.Array.multi([16, 32]) - external ffi.Array> __p; -} - -final class __darwin_arm_sve_z_state extends ffi.Struct { - @ffi.Array.multi([16, 256]) - external ffi.Array> __z; -} - -final class __darwin_arm_thread_state extends ffi.Struct { - @ffi.Array.multi([13]) - external ffi.Array<__uint32_t> __r; - - @__uint32_t() - external int __sp; - - @__uint32_t() - external int __lr; - - @__uint32_t() - external int __pc; - - @__uint32_t() - external int __cpsr; -} - -final class __darwin_arm_thread_state64 extends ffi.Struct { - @ffi.Array.multi([29]) - external ffi.Array<__uint64_t> __x; - - @__uint64_t() - external int __fp; - - @__uint64_t() - external int __lr; - - @__uint64_t() - external int __sp; - - @__uint64_t() - external int __pc; - - @__uint32_t() - external int __cpsr; - - @__uint32_t() - external int __pad; -} - -final class __darwin_arm_vfp_state extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array<__uint32_t> __r; - - @__uint32_t() - external int __fpscr; -} - -typedef __darwin_blkcnt_t = __int64_t; -typedef __darwin_blksize_t = __int32_t; -typedef __darwin_clock_t = ffi.UnsignedLong; -typedef Dart__darwin_clock_t = int; -typedef __darwin_ct_rune_t = ffi.Int; -typedef Dart__darwin_ct_rune_t = int; -typedef __darwin_dev_t = __int32_t; -typedef __darwin_fsblkcnt_t = ffi.UnsignedInt; -typedef Dart__darwin_fsblkcnt_t = int; -typedef __darwin_fsfilcnt_t = ffi.UnsignedInt; -typedef Dart__darwin_fsfilcnt_t = int; -typedef __darwin_gid_t = __uint32_t; -typedef __darwin_id_t = __uint32_t; -typedef __darwin_ino64_t = __uint64_t; -typedef __darwin_ino_t = __darwin_ino64_t; -typedef __darwin_intptr_t = ffi.Long; -typedef Dart__darwin_intptr_t = int; -typedef __darwin_mach_port_name_t = __darwin_natural_t; -typedef __darwin_mach_port_t = __darwin_mach_port_name_t; -typedef __darwin_mbstate_t = __mbstate_t; - -final class __darwin_mcontext32 extends ffi.Struct { - external __darwin_arm_exception_state __es; - - external __darwin_arm_thread_state __ss; - - external __darwin_arm_vfp_state __fs; -} - -final class __darwin_mcontext64 extends ffi.Opaque {} - -typedef __darwin_mode_t = __uint16_t; -typedef __darwin_natural_t = ffi.UnsignedInt; -typedef Dart__darwin_natural_t = int; -typedef __darwin_nl_item = ffi.Int; -typedef Dart__darwin_nl_item = int; -typedef __darwin_off_t = __int64_t; -typedef __darwin_pid_t = __int32_t; -typedef __darwin_pthread_attr_t = _opaque_pthread_attr_t; -typedef __darwin_pthread_cond_t = _opaque_pthread_cond_t; -typedef __darwin_pthread_condattr_t = _opaque_pthread_condattr_t; - -final class __darwin_pthread_handler_rec extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction)> - > - __routine; - - external ffi.Pointer __arg; - - external ffi.Pointer<__darwin_pthread_handler_rec> __next; -} - -typedef __darwin_pthread_key_t = ffi.UnsignedLong; -typedef Dart__darwin_pthread_key_t = int; -typedef __darwin_pthread_mutex_t = _opaque_pthread_mutex_t; -typedef __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t; -typedef __darwin_pthread_once_t = _opaque_pthread_once_t; -typedef __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t; -typedef __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t; -typedef __darwin_pthread_t = ffi.Pointer<_opaque_pthread_t>; -typedef __darwin_ptrdiff_t = ffi.Long; -typedef Dart__darwin_ptrdiff_t = int; -typedef __darwin_rune_t = __darwin_wchar_t; - -final class __darwin_sigaltstack extends ffi.Struct { - external ffi.Pointer ss_sp; - - @__darwin_size_t() - external int ss_size; - - @ffi.Int() - external int ss_flags; -} - -typedef __darwin_sigset_t = __uint32_t; -typedef __darwin_size_t = ffi.UnsignedLong; -typedef Dart__darwin_size_t = int; -typedef __darwin_socklen_t = __uint32_t; -typedef __darwin_ssize_t = ffi.Long; -typedef Dart__darwin_ssize_t = int; -typedef __darwin_suseconds_t = __int32_t; -typedef __darwin_time_t = ffi.Long; -typedef Dart__darwin_time_t = int; - -final class __darwin_ucontext extends ffi.Struct { - @ffi.Int() - external int uc_onstack; - - @__darwin_sigset_t() - external int uc_sigmask; - - external __darwin_sigaltstack uc_stack; - - external ffi.Pointer<__darwin_ucontext> uc_link; - - @__darwin_size_t() - external int uc_mcsize; - - external ffi.Pointer<__darwin_mcontext64> uc_mcontext; -} - -typedef __darwin_uid_t = __uint32_t; -typedef __darwin_useconds_t = __uint32_t; -typedef __darwin_va_list = ffi.Pointer; -typedef __darwin_wchar_t = ffi.Int; -typedef Dart__darwin_wchar_t = int; -typedef __darwin_wctrans_t = ffi.Int; -typedef Dart__darwin_wctrans_t = int; -typedef __darwin_wctype_t = __uint32_t; -typedef __darwin_wint_t = ffi.Int; -typedef Dart__darwin_wint_t = int; - -final class __double2 extends ffi.Struct { - @ffi.Double() - external double __sinval; - - @ffi.Double() - external double __cosval; -} - -final class __float2 extends ffi.Struct { - @ffi.Float() - external double __sinval; - - @ffi.Float() - external double __cosval; -} - -const int __fpcr_flush_to_zero = 16777216; - -const int __fpcr_trap_denormal = 32768; - -const int __fpcr_trap_divbyzero = 512; - -const int __fpcr_trap_inexact = 4096; - -const int __fpcr_trap_invalid = 256; - -const int __fpcr_trap_overflow = 1024; - -const int __fpcr_trap_underflow = 2048; - -const int __fpsr_saturation = 134217728; - -typedef __gnuc_va_list = ffi.Pointer; -typedef __int16_t = ffi.Short; -typedef Dart__int16_t = int; -typedef __int32_t = ffi.Int; -typedef Dart__int32_t = int; -typedef __int64_t = ffi.LongLong; -typedef Dart__int64_t = int; -typedef __int8_t = ffi.SignedChar; -typedef Dart__int8_t = int; - -final class __mbstate_t extends ffi.Union { - @ffi.Array.multi([128]) - external ffi.Array __mbstate8; - - @ffi.LongLong() - external int _mbstateL; -} - -@ffi.Packed(4) -final class __msfilterreq extends ffi.Struct { - @ffi.Uint32() - external int msfr_ifindex; - - @ffi.Uint32() - external int msfr_fmode; - - @ffi.Uint32() - external int msfr_nsrcs; - - @ffi.Uint32() - external int __msfr_align; - - external sockaddr_storage msfr_group; - - external ffi.Pointer msfr_srcs; -} - -final class __sFILE extends ffi.Struct { - external ffi.Pointer _p; - - @ffi.Int() - external int _r; - - @ffi.Int() - external int _w; - - @ffi.Short() - external int _flags; - - @ffi.Short() - external int _file; - - external __sbuf _bf; - - @ffi.Int() - external int _lbfsize; - - external ffi.Pointer _cookie; - - external ffi.Pointer< - ffi.NativeFunction)> - > - _close$1; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - > - _read$1; - - external ffi.Pointer< - ffi.NativeFunction, fpos_t, ffi.Int)> - > - _seek; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - > - _write$1; - - external __sbuf _ub; - - external ffi.Pointer<__sFILEX> _extra; - - @ffi.Int() - external int _ur; - - @ffi.Array.multi([3]) - external ffi.Array _ubuf; - - @ffi.Array.multi([1]) - external ffi.Array _nbuf; - - external __sbuf _lb; - - @ffi.Int() - external int _blksize; - - @fpos_t() - external int _offset; -} - -final class __sFILEX extends ffi.Opaque {} - -final class __sbuf extends ffi.Struct { - external ffi.Pointer _base; - - @ffi.Int() - external int _size; -} - -final class __sigaction extends ffi.Struct { - external __sigaction_u __sigaction_u$1; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - > - sa_tramp; - - @sigset_t() - external int sa_mask; - - @ffi.Int() - external int sa_flags; -} - -final class __sigaction_u extends ffi.Union { - external ffi.Pointer> - __sa_handler; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Int, ffi.Pointer<__siginfo>, ffi.Pointer) - > - > - __sa_sigaction; -} - -final class __siginfo extends ffi.Struct { - @ffi.Int() - external int si_signo; - - @ffi.Int() - external int si_errno; - - @ffi.Int() - external int si_code; - - @pid_t() - external int si_pid; - - @uid_t() - external int si_uid; - - @ffi.Int() - external int si_status; - - external ffi.Pointer si_addr; - - external sigval si_value; - - @ffi.Long() - external int si_band; - - @ffi.Array.multi([7]) - external ffi.Array __pad; -} - -final class __sockaddr_header extends ffi.Struct { - @__uint8_t() - external int sa_len; - - @sa_family_t() - external int sa_family; -} - -typedef __uint16_t = ffi.UnsignedShort; -typedef Dart__uint16_t = int; -typedef __uint32_t = ffi.UnsignedInt; -typedef Dart__uint32_t = int; -typedef __uint64_t = ffi.UnsignedLongLong; -typedef Dart__uint64_t = int; -typedef __uint8_t = ffi.UnsignedChar; -typedef Dart__uint8_t = int; - -final class _acl extends ffi.Opaque {} - -final class _acl_entry extends ffi.Opaque {} - -final class _acl_flagset extends ffi.Opaque {} - -final class _acl_permset extends ffi.Opaque {} - -final class _cl_device_id extends ffi.Opaque {} - -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_AVAudioPlayer', -) -external ffi.Pointer _class_AVAudioPlayer_raw; -final _class_AVAudioPlayer = objc.getClass( - "AVAudioPlayer", - () => ffi.Native.addressOf>( - _class_AVAudioPlayer_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_AVAudioSession', -) -external ffi.Pointer _class_AVAudioSession_raw; -final _class_AVAudioSession = objc.getClass( - "AVAudioSession", - () => ffi.Native.addressOf>( - _class_AVAudioSession_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_AVAudioSessionPortDescription', -) -external ffi.Pointer -_class_AVAudioSessionPortDescription_raw; -final _class_AVAudioSessionPortDescription = objc.getClass( - "AVAudioSessionPortDescription", - () => ffi.Native.addressOf>( - _class_AVAudioSessionPortDescription_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSArray') -external ffi.Pointer _class_NSArray_raw; -final _class_NSArray = objc.getClass( - "NSArray", - () => ffi.Native.addressOf>( - _class_NSArray_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSAttributedString', -) -external ffi.Pointer _class_NSAttributedString_raw; -final _class_NSAttributedString = objc.getClass( - "NSAttributedString", - () => ffi.Native.addressOf>( - _class_NSAttributedString_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSBundle') -external ffi.Pointer _class_NSBundle_raw; -final _class_NSBundle = objc.getClass( - "NSBundle", - () => ffi.Native.addressOf>( - _class_NSBundle_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSCharacterSet', -) -external ffi.Pointer _class_NSCharacterSet_raw; -final _class_NSCharacterSet = objc.getClass( - "NSCharacterSet", - () => ffi.Native.addressOf>( - _class_NSCharacterSet_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSCoder') -external ffi.Pointer _class_NSCoder_raw; -final _class_NSCoder = objc.getClass( - "NSCoder", - () => ffi.Native.addressOf>( - _class_NSCoder_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSData') -external ffi.Pointer _class_NSData_raw; -final _class_NSData = objc.getClass( - "NSData", - () => ffi.Native.addressOf>( - _class_NSData_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSDate') -external ffi.Pointer _class_NSDate_raw; -final _class_NSDate = objc.getClass( - "NSDate", - () => ffi.Native.addressOf>( - _class_NSDate_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSDateFormatter', -) -external ffi.Pointer _class_NSDateFormatter_raw; -final _class_NSDateFormatter = objc.getClass( - "NSDateFormatter", - () => ffi.Native.addressOf>( - _class_NSDateFormatter_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSDictionary', -) -external ffi.Pointer _class_NSDictionary_raw; -final _class_NSDictionary = objc.getClass( - "NSDictionary", - () => ffi.Native.addressOf>( - _class_NSDictionary_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSException', -) -external ffi.Pointer _class_NSException_raw; -final _class_NSException = objc.getClass( - "NSException", - () => ffi.Native.addressOf>( - _class_NSException_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSFileHandle', -) -external ffi.Pointer _class_NSFileHandle_raw; -final _class_NSFileHandle = objc.getClass( - "NSFileHandle", - () => ffi.Native.addressOf>( - _class_NSFileHandle_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSFileManager', -) -external ffi.Pointer _class_NSFileManager_raw; -final _class_NSFileManager = objc.getClass( - "NSFileManager", - () => ffi.Native.addressOf>( - _class_NSFileManager_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSFileWrapper', -) -external ffi.Pointer _class_NSFileWrapper_raw; -final _class_NSFileWrapper = objc.getClass( - "NSFileWrapper", - () => ffi.Native.addressOf>( - _class_NSFileWrapper_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSHTTPCookieStorage', -) -external ffi.Pointer _class_NSHTTPCookieStorage_raw; -final _class_NSHTTPCookieStorage = objc.getClass( - "NSHTTPCookieStorage", - () => ffi.Native.addressOf>( - _class_NSHTTPCookieStorage_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSIndexPath', -) -external ffi.Pointer _class_NSIndexPath_raw; -final _class_NSIndexPath = objc.getClass( - "NSIndexPath", - () => ffi.Native.addressOf>( - _class_NSIndexPath_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSInflectionRule', -) -external ffi.Pointer _class_NSInflectionRule_raw; -final _class_NSInflectionRule = objc.getClass( - "NSInflectionRule", - () => ffi.Native.addressOf>( - _class_NSInflectionRule_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSInputStream', -) -external ffi.Pointer _class_NSInputStream_raw; -final _class_NSInputStream = objc.getClass( - "NSInputStream", - () => ffi.Native.addressOf>( - _class_NSInputStream_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSItemProvider', -) -external ffi.Pointer _class_NSItemProvider_raw; -final _class_NSItemProvider = objc.getClass( - "NSItemProvider", - () => ffi.Native.addressOf>( - _class_NSItemProvider_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSLocale') -external ffi.Pointer _class_NSLocale_raw; -final _class_NSLocale = objc.getClass( - "NSLocale", - () => ffi.Native.addressOf>( - _class_NSLocale_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMorphology', -) -external ffi.Pointer _class_NSMorphology_raw; -final _class_NSMorphology = objc.getClass( - "NSMorphology", - () => ffi.Native.addressOf>( - _class_NSMorphology_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableArray', -) -external ffi.Pointer _class_NSMutableArray_raw; -final _class_NSMutableArray = objc.getClass( - "NSMutableArray", - () => ffi.Native.addressOf>( - _class_NSMutableArray_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableAttributedString', -) -external ffi.Pointer _class_NSMutableAttributedString_raw; -final _class_NSMutableAttributedString = objc.getClass( - "NSMutableAttributedString", - () => ffi.Native.addressOf>( - _class_NSMutableAttributedString_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableData', -) -external ffi.Pointer _class_NSMutableData_raw; -final _class_NSMutableData = objc.getClass( - "NSMutableData", - () => ffi.Native.addressOf>( - _class_NSMutableData_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableDictionary', -) -external ffi.Pointer _class_NSMutableDictionary_raw; -final _class_NSMutableDictionary = objc.getClass( - "NSMutableDictionary", - () => ffi.Native.addressOf>( - _class_NSMutableDictionary_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableOrderedSet', -) -external ffi.Pointer _class_NSMutableOrderedSet_raw; -final _class_NSMutableOrderedSet = objc.getClass( - "NSMutableOrderedSet", - () => ffi.Native.addressOf>( - _class_NSMutableOrderedSet_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableSet', -) -external ffi.Pointer _class_NSMutableSet_raw; -final _class_NSMutableSet = objc.getClass( - "NSMutableSet", - () => ffi.Native.addressOf>( - _class_NSMutableSet_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableString', -) -external ffi.Pointer _class_NSMutableString_raw; -final _class_NSMutableString = objc.getClass( - "NSMutableString", - () => ffi.Native.addressOf>( - _class_NSMutableString_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSMutableURLRequest', -) -external ffi.Pointer _class_NSMutableURLRequest_raw; -final _class_NSMutableURLRequest = objc.getClass( - "NSMutableURLRequest", - () => ffi.Native.addressOf>( - _class_NSMutableURLRequest_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSNotification', -) -external ffi.Pointer _class_NSNotification_raw; -final _class_NSNotification = objc.getClass( - "NSNotification", - () => ffi.Native.addressOf>( - _class_NSNotification_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSNumber') -external ffi.Pointer _class_NSNumber_raw; -final _class_NSNumber = objc.getClass( - "NSNumber", - () => ffi.Native.addressOf>( - _class_NSNumber_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSNumberFormatter', -) -external ffi.Pointer _class_NSNumberFormatter_raw; -final _class_NSNumberFormatter = objc.getClass( - "NSNumberFormatter", - () => ffi.Native.addressOf>( - _class_NSNumberFormatter_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSObject') -external ffi.Pointer _class_NSObject_raw; -final _class_NSObject = objc.getClass( - "NSObject", - () => ffi.Native.addressOf>( - _class_NSObject_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSOperationQueue', -) -external ffi.Pointer _class_NSOperationQueue_raw; -final _class_NSOperationQueue = objc.getClass( - "NSOperationQueue", - () => ffi.Native.addressOf>( - _class_NSOperationQueue_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSOrderedSet', -) -external ffi.Pointer _class_NSOrderedSet_raw; -final _class_NSOrderedSet = objc.getClass( - "NSOrderedSet", - () => ffi.Native.addressOf>( - _class_NSOrderedSet_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSOrthography', -) -external ffi.Pointer _class_NSOrthography_raw; -final _class_NSOrthography = objc.getClass( - "NSOrthography", - () => ffi.Native.addressOf>( - _class_NSOrthography_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSOutputStream', -) -external ffi.Pointer _class_NSOutputStream_raw; -final _class_NSOutputStream = objc.getClass( - "NSOutputStream", - () => ffi.Native.addressOf>( - _class_NSOutputStream_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSPointerArray', -) -external ffi.Pointer _class_NSPointerArray_raw; -final _class_NSPointerArray = objc.getClass( - "NSPointerArray", - () => ffi.Native.addressOf>( - _class_NSPointerArray_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSProcessInfo', -) -external ffi.Pointer _class_NSProcessInfo_raw; -final _class_NSProcessInfo = objc.getClass( - "NSProcessInfo", - () => ffi.Native.addressOf>( - _class_NSProcessInfo_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSProtocolChecker', -) -external ffi.Pointer _class_NSProtocolChecker_raw; -final _class_NSProtocolChecker = objc.getClass( - "NSProtocolChecker", - () => ffi.Native.addressOf>( - _class_NSProtocolChecker_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSRegularExpression', -) -external ffi.Pointer _class_NSRegularExpression_raw; -final _class_NSRegularExpression = objc.getClass( - "NSRegularExpression", - () => ffi.Native.addressOf>( - _class_NSRegularExpression_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSRunLoop') -external ffi.Pointer _class_NSRunLoop_raw; -final _class_NSRunLoop = objc.getClass( - "NSRunLoop", - () => ffi.Native.addressOf>( - _class_NSRunLoop_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSScanner') -external ffi.Pointer _class_NSScanner_raw; -final _class_NSScanner = objc.getClass( - "NSScanner", - () => ffi.Native.addressOf>( - _class_NSScanner_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSScriptClassDescription', -) -external ffi.Pointer _class_NSScriptClassDescription_raw; -final _class_NSScriptClassDescription = objc.getClass( - "NSScriptClassDescription", - () => ffi.Native.addressOf>( - _class_NSScriptClassDescription_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSSet') -external ffi.Pointer _class_NSSet_raw; -final _class_NSSet = objc.getClass( - "NSSet", - () => ffi.Native.addressOf>( - _class_NSSet_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSStream') -external ffi.Pointer _class_NSStream_raw; -final _class_NSStream = objc.getClass( - "NSStream", - () => ffi.Native.addressOf>( - _class_NSStream_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSString') -external ffi.Pointer _class_NSString_raw; -final _class_NSString = objc.getClass( - "NSString", - () => ffi.Native.addressOf>( - _class_NSString_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSTask') -external ffi.Pointer _class_NSTask_raw; -final _class_NSTask = objc.getClass( - "NSTask", - () => ffi.Native.addressOf>( - _class_NSTask_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSTextCheckingResult', -) -external ffi.Pointer _class_NSTextCheckingResult_raw; -final _class_NSTextCheckingResult = objc.getClass( - "NSTextCheckingResult", - () => ffi.Native.addressOf>( - _class_NSTextCheckingResult_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSTimeZone', -) -external ffi.Pointer _class_NSTimeZone_raw; -final _class_NSTimeZone = objc.getClass( - "NSTimeZone", - () => ffi.Native.addressOf>( - _class_NSTimeZone_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSURL') -external ffi.Pointer _class_NSURL_raw; -final _class_NSURL = objc.getClass( - "NSURL", - () => ffi.Native.addressOf>( - _class_NSURL_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLCache', -) -external ffi.Pointer _class_NSURLCache_raw; -final _class_NSURLCache = objc.getClass( - "NSURLCache", - () => ffi.Native.addressOf>( - _class_NSURLCache_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLConnection', -) -external ffi.Pointer _class_NSURLConnection_raw; -final _class_NSURLConnection = objc.getClass( - "NSURLConnection", - () => ffi.Native.addressOf>( - _class_NSURLConnection_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLCredential', -) -external ffi.Pointer _class_NSURLCredential_raw; -final _class_NSURLCredential = objc.getClass( - "NSURLCredential", - () => ffi.Native.addressOf>( - _class_NSURLCredential_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLCredentialStorage', -) -external ffi.Pointer _class_NSURLCredentialStorage_raw; -final _class_NSURLCredentialStorage = objc.getClass( - "NSURLCredentialStorage", - () => ffi.Native.addressOf>( - _class_NSURLCredentialStorage_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLProtectionSpace', -) -external ffi.Pointer _class_NSURLProtectionSpace_raw; -final _class_NSURLProtectionSpace = objc.getClass( - "NSURLProtectionSpace", - () => ffi.Native.addressOf>( - _class_NSURLProtectionSpace_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLProtocol', -) -external ffi.Pointer _class_NSURLProtocol_raw; -final _class_NSURLProtocol = objc.getClass( - "NSURLProtocol", - () => ffi.Native.addressOf>( - _class_NSURLProtocol_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLRequest', -) -external ffi.Pointer _class_NSURLRequest_raw; -final _class_NSURLRequest = objc.getClass( - "NSURLRequest", - () => ffi.Native.addressOf>( - _class_NSURLRequest_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLSession', -) -external ffi.Pointer _class_NSURLSession_raw; -final _class_NSURLSession = objc.getClass( - "NSURLSession", - () => ffi.Native.addressOf>( - _class_NSURLSession_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSURLSessionConfiguration', -) -external ffi.Pointer _class_NSURLSessionConfiguration_raw; -final _class_NSURLSessionConfiguration = objc.getClass( - "NSURLSessionConfiguration", - () => ffi.Native.addressOf>( - _class_NSURLSessionConfiguration_raw, - ).cast(), -); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSValue') -external ffi.Pointer _class_NSValue_raw; -final _class_NSValue = objc.getClass( - "NSValue", - () => ffi.Native.addressOf>( - _class_NSValue_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSXMLElement', -) -external ffi.Pointer _class_NSXMLElement_raw; -final _class_NSXMLElement = objc.getClass( - "NSXMLElement", - () => ffi.Native.addressOf>( - _class_NSXMLElement_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_NSXMLParser', -) -external ffi.Pointer _class_NSXMLParser_raw; -final _class_NSXMLParser = objc.getClass( - "NSXMLParser", - () => ffi.Native.addressOf>( - _class_NSXMLParser_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_bklti2', -) -external ffi.Pointer _class__BlockArgs_112ozxo_raw; -final _class__BlockArgs_112ozxo = objc.getClass( - "_1uu024u_BlockArgs_bklti2", - () => ffi.Native.addressOf>( - _class__BlockArgs_112ozxo_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_117e0ww_raw; -final _class__BlockArgs_117e0ww = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_117e0ww_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18kzm6a', -) -external ffi.Pointer _class__BlockArgs_11uyayp_raw; -final _class__BlockArgs_11uyayp = objc.getClass( - "_1uu024u_BlockArgs_18kzm6a", - () => ffi.Native.addressOf>( - _class__BlockArgs_11uyayp_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_121fmzs_raw; -final _class__BlockArgs_121fmzs = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_121fmzs_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_f167m6', -) -external ffi.Pointer _class__BlockArgs_12cm2y5_raw; -final _class__BlockArgs_12cm2y5 = objc.getClass( - "_1uu024u_BlockArgs_f167m6", - () => ffi.Native.addressOf>( - _class__BlockArgs_12cm2y5_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_gwxhxt', -) -external ffi.Pointer _class__BlockArgs_12rv5aa_raw; -final _class__BlockArgs_12rv5aa = objc.getClass( - "_1uu024u_BlockArgs_gwxhxt", - () => ffi.Native.addressOf>( - _class__BlockArgs_12rv5aa_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_34xzuf', -) -external ffi.Pointer _class__BlockArgs_12tf05r_raw; -final _class__BlockArgs_12tf05r = objc.getClass( - "_1uu024u_BlockArgs_34xzuf", - () => ffi.Native.addressOf>( - _class__BlockArgs_12tf05r_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_12ykekb_raw; -final _class__BlockArgs_12ykekb = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_12ykekb_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15e9dqx', -) -external ffi.Pointer _class__BlockArgs_133h48c_raw; -final _class__BlockArgs_133h48c = objc.getClass( - "_1uu024u_BlockArgs_15e9dqx", - () => ffi.Native.addressOf>( - _class__BlockArgs_133h48c_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_136y7ma_raw; -final _class__BlockArgs_136y7ma = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_136y7ma_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1kwz7d1', -) -external ffi.Pointer _class__BlockArgs_13g89k6_raw; -final _class__BlockArgs_13g89k6 = objc.getClass( - "_1uu024u_BlockArgs_1kwz7d1", - () => ffi.Native.addressOf>( - _class__BlockArgs_13g89k6_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_13o2rom_raw; -final _class__BlockArgs_13o2rom = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_13o2rom_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_13sb76x_raw; -final _class__BlockArgs_13sb76x = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_13sb76x_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_140cpyj_raw; -final _class__BlockArgs_140cpyj = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_140cpyj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_14dahaa_raw; -final _class__BlockArgs_14dahaa = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_14dahaa_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_tg5tbv', -) -external ffi.Pointer _class__BlockArgs_14lm7fk_raw; -final _class__BlockArgs_14lm7fk = objc.getClass( - "_1uu024u_BlockArgs_tg5tbv", - () => ffi.Native.addressOf>( - _class__BlockArgs_14lm7fk_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', -) -external ffi.Pointer _class__BlockArgs_15cdu5z_raw; -final _class__BlockArgs_15cdu5z = objc.getClass( - "_1uu024u_BlockArgs_xx612k", - () => ffi.Native.addressOf>( - _class__BlockArgs_15cdu5z_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_15jt9u5_raw; -final _class__BlockArgs_15jt9u5 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_15jt9u5_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_15vjajw_raw; -final _class__BlockArgs_15vjajw = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_15vjajw_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_16ix251_raw; -final _class__BlockArgs_16ix251 = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_16ix251_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_16t4ozp_raw; -final _class__BlockArgs_16t4ozp = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_16t4ozp_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_170i760_raw; -final _class__BlockArgs_170i760 = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_170i760_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1otpo83', -) -external ffi.Pointer _class__BlockArgs_171cldw_raw; -final _class__BlockArgs_171cldw = objc.getClass( - "_1uu024u_BlockArgs_1otpo83", - () => ffi.Native.addressOf>( - _class__BlockArgs_171cldw_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1lx650f', -) -external ffi.Pointer _class__BlockArgs_17jmtfx_raw; -final _class__BlockArgs_17jmtfx = objc.getClass( - "_1uu024u_BlockArgs_1lx650f", - () => ffi.Native.addressOf>( - _class__BlockArgs_17jmtfx_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15ghdzk', -) -external ffi.Pointer _class__BlockArgs_17mefw7_raw; -final _class__BlockArgs_17mefw7 = objc.getClass( - "_1uu024u_BlockArgs_15ghdzk", - () => ffi.Native.addressOf>( - _class__BlockArgs_17mefw7_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_17xklgp_raw; -final _class__BlockArgs_17xklgp = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_17xklgp_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_18kc0nv_raw; -final _class__BlockArgs_18kc0nv = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_18kc0nv_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_197qivc_raw; -final _class__BlockArgs_197qivc = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_197qivc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_wy9lus', -) -external ffi.Pointer _class__BlockArgs_19pyqcd_raw; -final _class__BlockArgs_19pyqcd = objc.getClass( - "_1uu024u_BlockArgs_wy9lus", - () => ffi.Native.addressOf>( - _class__BlockArgs_19pyqcd_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_19rrqmo_raw; -final _class__BlockArgs_19rrqmo = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_19rrqmo_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_l2g8ke', -) -external ffi.Pointer _class__BlockArgs_1ayzt6i_raw; -final _class__BlockArgs_1ayzt6i = objc.getClass( - "_1uu024u_BlockArgs_l2g8ke", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ayzt6i_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_1ciefi0_raw; -final _class__BlockArgs_1ciefi0 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ciefi0_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_1e1kc88_raw; -final _class__BlockArgs_1e1kc88 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1e1kc88_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18qun1e', -) -external ffi.Pointer _class__BlockArgs_1e3xl1p_raw; -final _class__BlockArgs_1e3xl1p = objc.getClass( - "_1uu024u_BlockArgs_18qun1e", - () => ffi.Native.addressOf>( - _class__BlockArgs_1e3xl1p_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1ek5uoy_raw; -final _class__BlockArgs_1ek5uoy = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ek5uoy_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1f64crj_raw; -final _class__BlockArgs_1f64crj = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1f64crj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_1fj0jrw_raw; -final _class__BlockArgs_1fj0jrw = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1fj0jrw_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_zzthnb', -) -external ffi.Pointer _class__BlockArgs_1giidhf_raw; -final _class__BlockArgs_1giidhf = objc.getClass( - "_1uu024u_BlockArgs_zzthnb", - () => ffi.Native.addressOf>( - _class__BlockArgs_1giidhf_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', -) -external ffi.Pointer _class__BlockArgs_1gmgda9_raw; -final _class__BlockArgs_1gmgda9 = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", - () => ffi.Native.addressOf>( - _class__BlockArgs_1gmgda9_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1hj9xku_raw; -final _class__BlockArgs_1hj9xku = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1hj9xku_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1yrznn1', -) -external ffi.Pointer _class__BlockArgs_1hs0ws6_raw; -final _class__BlockArgs_1hs0ws6 = objc.getClass( - "_1uu024u_BlockArgs_1yrznn1", - () => ffi.Native.addressOf>( - _class__BlockArgs_1hs0ws6_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1hwelu_raw; -final _class__BlockArgs_1hwelu = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1hwelu_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1i7oea2_raw; -final _class__BlockArgs_1i7oea2 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1i7oea2_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_1j32c3t_raw; -final _class__BlockArgs_1j32c3t = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1j32c3t_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_1jcra61_raw; -final _class__BlockArgs_1jcra61 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1jcra61_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', -) -external ffi.Pointer _class__BlockArgs_1kowxjl_raw; -final _class__BlockArgs_1kowxjl = objc.getClass( - "_1uu024u_BlockArgs_m09tr7", - () => ffi.Native.addressOf>( - _class__BlockArgs_1kowxjl_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ly2579', -) -external ffi.Pointer _class__BlockArgs_1l7b9ji_raw; -final _class__BlockArgs_1l7b9ji = objc.getClass( - "_1uu024u_BlockArgs_ly2579", - () => ffi.Native.addressOf>( - _class__BlockArgs_1l7b9ji_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_du1izn', -) -external ffi.Pointer _class__BlockArgs_1lr5l4t_raw; -final _class__BlockArgs_1lr5l4t = objc.getClass( - "_1uu024u_BlockArgs_du1izn", - () => ffi.Native.addressOf>( - _class__BlockArgs_1lr5l4t_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_zuf90e', -) -external ffi.Pointer _class__BlockArgs_1ltqoqj_raw; -final _class__BlockArgs_1ltqoqj = objc.getClass( - "_1uu024u_BlockArgs_zuf90e", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ltqoqj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', -) -external ffi.Pointer _class__BlockArgs_1mv87bk_raw; -final _class__BlockArgs_1mv87bk = objc.getClass( - "_1uu024u_BlockArgs_r8gdi7", - () => ffi.Native.addressOf>( - _class__BlockArgs_1mv87bk_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_1n468bj_raw; -final _class__BlockArgs_1n468bj = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_1n468bj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_1n5meg5_raw; -final _class__BlockArgs_1n5meg5 = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1n5meg5_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_1n6ph2_raw; -final _class__BlockArgs_1n6ph2 = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_1n6ph2_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8acz2h', -) -external ffi.Pointer _class__BlockArgs_1nn0na_raw; -final _class__BlockArgs_1nn0na = objc.getClass( - "_1uu024u_BlockArgs_8acz2h", - () => ffi.Native.addressOf>( - _class__BlockArgs_1nn0na_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18qun1e', -) -external ffi.Pointer _class__BlockArgs_1nq9pr6_raw; -final _class__BlockArgs_1nq9pr6 = objc.getClass( - "_1uu024u_BlockArgs_18qun1e", - () => ffi.Native.addressOf>( - _class__BlockArgs_1nq9pr6_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_1o2efq5_raw; -final _class__BlockArgs_1o2efq5 = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1o2efq5_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1o8dtl_raw; -final _class__BlockArgs_1o8dtl = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1o8dtl_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1odc9lb_raw; -final _class__BlockArgs_1odc9lb = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1odc9lb_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1oetg5g_raw; -final _class__BlockArgs_1oetg5g = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1oetg5g_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', -) -external ffi.Pointer _class__BlockArgs_1oftdow_raw; -final _class__BlockArgs_1oftdow = objc.getClass( - "_1uu024u_BlockArgs_r8gdi7", - () => ffi.Native.addressOf>( - _class__BlockArgs_1oftdow_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1p1ax08_raw; -final _class__BlockArgs_1p1ax08 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1p1ax08_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_1p7ak3v_raw; -final _class__BlockArgs_1p7ak3v = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_1p7ak3v_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_h68abb', -) -external ffi.Pointer _class__BlockArgs_1pfucun_raw; -final _class__BlockArgs_1pfucun = objc.getClass( - "_1uu024u_BlockArgs_h68abb", - () => ffi.Native.addressOf>( - _class__BlockArgs_1pfucun_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_1pfw36l_raw; -final _class__BlockArgs_1pfw36l = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1pfw36l_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1pj0but_raw; -final _class__BlockArgs_1pj0but = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1pj0but_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1ptzs7z_raw; -final _class__BlockArgs_1ptzs7z = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ptzs7z_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_lmc3p5', -) -external ffi.Pointer _class__BlockArgs_1pvrxoh_raw; -final _class__BlockArgs_1pvrxoh = objc.getClass( - "_1uu024u_BlockArgs_lmc3p5", - () => ffi.Native.addressOf>( - _class__BlockArgs_1pvrxoh_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_1q305zu_raw; -final _class__BlockArgs_1q305zu = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_1q305zu_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1r6tt56_raw; -final _class__BlockArgs_1r6tt56 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1r6tt56_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1l4hxwm', -) -external ffi.Pointer _class__BlockArgs_1s0z6xl_raw; -final _class__BlockArgs_1s0z6xl = objc.getClass( - "_1uu024u_BlockArgs_1l4hxwm", - () => ffi.Native.addressOf>( - _class__BlockArgs_1s0z6xl_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9o8504', -) -external ffi.Pointer _class__BlockArgs_1s2j81k_raw; -final _class__BlockArgs_1s2j81k = objc.getClass( - "_1uu024u_BlockArgs_9o8504", - () => ffi.Native.addressOf>( - _class__BlockArgs_1s2j81k_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1siniii_raw; -final _class__BlockArgs_1siniii = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1siniii_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_b3tf6o', -) -external ffi.Pointer _class__BlockArgs_1sucxsg_raw; -final _class__BlockArgs_1sucxsg = objc.getClass( - "_1uu024u_BlockArgs_b3tf6o", - () => ffi.Native.addressOf>( - _class__BlockArgs_1sucxsg_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_1sy9q99_raw; -final _class__BlockArgs_1sy9q99 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_1sy9q99_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', -) -external ffi.Pointer _class__BlockArgs_1tklz9g_raw; -final _class__BlockArgs_1tklz9g = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", - () => ffi.Native.addressOf>( - _class__BlockArgs_1tklz9g_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6jvo9y', -) -external ffi.Pointer _class__BlockArgs_1uc4fg7_raw; -final _class__BlockArgs_1uc4fg7 = objc.getClass( - "_1uu024u_BlockArgs_6jvo9y", - () => ffi.Native.addressOf>( - _class__BlockArgs_1uc4fg7_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', -) -external ffi.Pointer _class__BlockArgs_1uox71a_raw; -final _class__BlockArgs_1uox71a = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", - () => ffi.Native.addressOf>( - _class__BlockArgs_1uox71a_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_1ura76_raw; -final _class__BlockArgs_1ura76 = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_1ura76_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_1usrzbh_raw; -final _class__BlockArgs_1usrzbh = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1usrzbh_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_l3f29g', -) -external ffi.Pointer _class__BlockArgs_1v0sc8_raw; -final _class__BlockArgs_1v0sc8 = objc.getClass( - "_1uu024u_BlockArgs_l3f29g", - () => ffi.Native.addressOf>( - _class__BlockArgs_1v0sc8_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_11t2oft', -) -external ffi.Pointer _class__BlockArgs_1x2wp90_raw; -final _class__BlockArgs_1x2wp90 = objc.getClass( - "_1uu024u_BlockArgs_11t2oft", - () => ffi.Native.addressOf>( - _class__BlockArgs_1x2wp90_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', -) -external ffi.Pointer _class__BlockArgs_1xfn2k3_raw; -final _class__BlockArgs_1xfn2k3 = objc.getClass( - "_1uu024u_BlockArgs_xx612k", - () => ffi.Native.addressOf>( - _class__BlockArgs_1xfn2k3_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_132rcs6', -) -external ffi.Pointer _class__BlockArgs_1xkpqmj_raw; -final _class__BlockArgs_1xkpqmj = objc.getClass( - "_1uu024u_BlockArgs_132rcs6", - () => ffi.Native.addressOf>( - _class__BlockArgs_1xkpqmj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_1y4tc38_raw; -final _class__BlockArgs_1y4tc38 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1y4tc38_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_16sve1d', -) -external ffi.Pointer _class__BlockArgs_1y7f3jy_raw; -final _class__BlockArgs_1y7f3jy = objc.getClass( - "_1uu024u_BlockArgs_16sve1d", - () => ffi.Native.addressOf>( - _class__BlockArgs_1y7f3jy_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_1z0whcc_raw; -final _class__BlockArgs_1z0whcc = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_1z0whcc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', -) -external ffi.Pointer _class__BlockArgs_31cygh_raw; -final _class__BlockArgs_31cygh = objc.getClass( - "_1uu024u_BlockArgs_xx612k", - () => ffi.Native.addressOf>( - _class__BlockArgs_31cygh_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_347s5u_raw; -final _class__BlockArgs_347s5u = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_347s5u_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_r8gdi7', -) -external ffi.Pointer _class__BlockArgs_3gru2r_raw; -final _class__BlockArgs_3gru2r = objc.getClass( - "_1uu024u_BlockArgs_r8gdi7", - () => ffi.Native.addressOf>( - _class__BlockArgs_3gru2r_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1qf1qkl', -) -external ffi.Pointer _class__BlockArgs_3jhjrc_raw; -final _class__BlockArgs_3jhjrc = objc.getClass( - "_1uu024u_BlockArgs_1qf1qkl", - () => ffi.Native.addressOf>( - _class__BlockArgs_3jhjrc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_3prg4b_raw; -final _class__BlockArgs_3prg4b = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_3prg4b_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_43hp0b_raw; -final _class__BlockArgs_43hp0b = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_43hp0b_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_461rr9_raw; -final _class__BlockArgs_461rr9 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_461rr9_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9crvvv', -) -external ffi.Pointer _class__BlockArgs_5wf51x_raw; -final _class__BlockArgs_5wf51x = objc.getClass( - "_1uu024u_BlockArgs_9crvvv", - () => ffi.Native.addressOf>( - _class__BlockArgs_5wf51x_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1rz4y3', -) -external ffi.Pointer _class__BlockArgs_5zyi3o_raw; -final _class__BlockArgs_5zyi3o = objc.getClass( - "_1uu024u_BlockArgs_1rz4y3", - () => ffi.Native.addressOf>( - _class__BlockArgs_5zyi3o_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_6tydoo_raw; -final _class__BlockArgs_6tydoo = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_6tydoo_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1b3bb6a', -) -external ffi.Pointer _class__BlockArgs_6yk1dr_raw; -final _class__BlockArgs_6yk1dr = objc.getClass( - "_1uu024u_BlockArgs_1b3bb6a", - () => ffi.Native.addressOf>( - _class__BlockArgs_6yk1dr_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_7xicdf_raw; -final _class__BlockArgs_7xicdf = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_7xicdf_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_jyim80', -) -external ffi.Pointer _class__BlockArgs_99x6vt_raw; -final _class__BlockArgs_99x6vt = objc.getClass( - "_1uu024u_BlockArgs_jyim80", - () => ffi.Native.addressOf>( - _class__BlockArgs_99x6vt_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1j7coyk', -) -external ffi.Pointer _class__BlockArgs_abn34x_raw; -final _class__BlockArgs_abn34x = objc.getClass( - "_1uu024u_BlockArgs_1j7coyk", - () => ffi.Native.addressOf>( - _class__BlockArgs_abn34x_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_adcfsd_raw; -final _class__BlockArgs_adcfsd = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_adcfsd_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_aec946_raw; -final _class__BlockArgs_aec946 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_aec946_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_ovsamd', -) -external ffi.Pointer _class__BlockArgs_awd5mj_raw; -final _class__BlockArgs_awd5mj = objc.getClass( - "_1uu024u_BlockArgs_ovsamd", - () => ffi.Native.addressOf>( - _class__BlockArgs_awd5mj_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_b9s2kt_raw; -final _class__BlockArgs_b9s2kt = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_b9s2kt_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_blvx9k_raw; -final _class__BlockArgs_blvx9k = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_blvx9k_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_bklti2', -) -external ffi.Pointer _class__BlockArgs_de64m_raw; -final _class__BlockArgs_de64m = objc.getClass( - "_1uu024u_BlockArgs_bklti2", - () => ffi.Native.addressOf>( - _class__BlockArgs_de64m_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_o762yo', -) -external ffi.Pointer _class__BlockArgs_di5ft6_raw; -final _class__BlockArgs_di5ft6 = objc.getClass( - "_1uu024u_BlockArgs_o762yo", - () => ffi.Native.addressOf>( - _class__BlockArgs_di5ft6_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1ctgxtl', -) -external ffi.Pointer _class__BlockArgs_dmvhfp_raw; -final _class__BlockArgs_dmvhfp = objc.getClass( - "_1uu024u_BlockArgs_1ctgxtl", - () => ffi.Native.addressOf>( - _class__BlockArgs_dmvhfp_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1l4hxwm', -) -external ffi.Pointer _class__BlockArgs_eu2222_raw; -final _class__BlockArgs_eu2222 = objc.getClass( - "_1uu024u_BlockArgs_1l4hxwm", - () => ffi.Native.addressOf>( - _class__BlockArgs_eu2222_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1cn988u', -) -external ffi.Pointer _class__BlockArgs_gcznpv_raw; -final _class__BlockArgs_gcznpv = objc.getClass( - "_1uu024u_BlockArgs_1cn988u", - () => ffi.Native.addressOf>( - _class__BlockArgs_gcznpv_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8jfq1p', -) -external ffi.Pointer _class__BlockArgs_hacm4k_raw; -final _class__BlockArgs_hacm4k = objc.getClass( - "_1uu024u_BlockArgs_8jfq1p", - () => ffi.Native.addressOf>( - _class__BlockArgs_hacm4k_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_o762yo', -) -external ffi.Pointer _class__BlockArgs_hj4uui_raw; -final _class__BlockArgs_hj4uui = objc.getClass( - "_1uu024u_BlockArgs_o762yo", - () => ffi.Native.addressOf>( - _class__BlockArgs_hj4uui_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1037nh9', -) -external ffi.Pointer _class__BlockArgs_hj6v1u_raw; -final _class__BlockArgs_hj6v1u = objc.getClass( - "_1uu024u_BlockArgs_1037nh9", - () => ffi.Native.addressOf>( - _class__BlockArgs_hj6v1u_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_i7wriu_raw; -final _class__BlockArgs_i7wriu = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_i7wriu_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1pl9qdv', -) -external ffi.Pointer _class__BlockArgs_ii17hk_raw; -final _class__BlockArgs_ii17hk = objc.getClass( - "_1uu024u_BlockArgs_1pl9qdv", - () => ffi.Native.addressOf>( - _class__BlockArgs_ii17hk_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_k73ff5', -) -external ffi.Pointer _class__BlockArgs_j3xbuw_raw; -final _class__BlockArgs_j3xbuw = objc.getClass( - "_1uu024u_BlockArgs_k73ff5", - () => ffi.Native.addressOf>( - _class__BlockArgs_j3xbuw_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xx612k', -) -external ffi.Pointer _class__BlockArgs_jqba1_raw; -final _class__BlockArgs_jqba1 = objc.getClass( - "_1uu024u_BlockArgs_xx612k", - () => ffi.Native.addressOf>( - _class__BlockArgs_jqba1_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_jzitwn_raw; -final _class__BlockArgs_jzitwn = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_jzitwn_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_k1nazc_raw; -final _class__BlockArgs_k1nazc = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_k1nazc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_k2hpmy_raw; -final _class__BlockArgs_k2hpmy = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_k2hpmy_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18kzm6a', -) -external ffi.Pointer _class__BlockArgs_k4eb20_raw; -final _class__BlockArgs_k4eb20 = objc.getClass( - "_1uu024u_BlockArgs_18kzm6a", - () => ffi.Native.addressOf>( - _class__BlockArgs_k4eb20_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1s56lr9', -) -external ffi.Pointer _class__BlockArgs_k4je64_raw; -final _class__BlockArgs_k4je64 = objc.getClass( - "_1uu024u_BlockArgs_1s56lr9", - () => ffi.Native.addressOf>( - _class__BlockArgs_k4je64_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_6enxqz', -) -external ffi.Pointer _class__BlockArgs_kqbpyy_raw; -final _class__BlockArgs_kqbpyy = objc.getClass( - "_1uu024u_BlockArgs_6enxqz", - () => ffi.Native.addressOf>( - _class__BlockArgs_kqbpyy_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', -) -external ffi.Pointer _class__BlockArgs_krrtfh_raw; -final _class__BlockArgs_krrtfh = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", - () => ffi.Native.addressOf>( - _class__BlockArgs_krrtfh_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_10ssdng', -) -external ffi.Pointer _class__BlockArgs_ldsont_raw; -final _class__BlockArgs_ldsont = objc.getClass( - "_1uu024u_BlockArgs_10ssdng", - () => ffi.Native.addressOf>( - _class__BlockArgs_ldsont_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', -) -external ffi.Pointer _class__BlockArgs_lmnq5k_raw; -final _class__BlockArgs_lmnq5k = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", - () => ffi.Native.addressOf>( - _class__BlockArgs_lmnq5k_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1dqvvol', -) -external ffi.Pointer _class__BlockArgs_n2dxuu_raw; -final _class__BlockArgs_n2dxuu = objc.getClass( - "_1uu024u_BlockArgs_1dqvvol", - () => ffi.Native.addressOf>( - _class__BlockArgs_n2dxuu_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_nemba7_raw; -final _class__BlockArgs_nemba7 = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_nemba7_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8jfq1p', -) -external ffi.Pointer _class__BlockArgs_nhk5a9_raw; -final _class__BlockArgs_nhk5a9 = objc.getClass( - "_1uu024u_BlockArgs_8jfq1p", - () => ffi.Native.addressOf>( - _class__BlockArgs_nhk5a9_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_jk1ljc', -) -external ffi.Pointer _class__BlockArgs_pfi7f3_raw; -final _class__BlockArgs_pfi7f3 = objc.getClass( - "_1uu024u_BlockArgs_jk1ljc", - () => ffi.Native.addressOf>( - _class__BlockArgs_pfi7f3_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_pm23bg_raw; -final _class__BlockArgs_pm23bg = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_pm23bg_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1a22wz', -) -external ffi.Pointer _class__BlockArgs_q6fcam_raw; -final _class__BlockArgs_q6fcam = objc.getClass( - "_1uu024u_BlockArgs_1a22wz", - () => ffi.Native.addressOf>( - _class__BlockArgs_q6fcam_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_qjjttc_raw; -final _class__BlockArgs_qjjttc = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_qjjttc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_qss5hc_raw; -final _class__BlockArgs_qss5hc = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_qss5hc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_rojepe_raw; -final _class__BlockArgs_rojepe = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_rojepe_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_s52y0g_raw; -final _class__BlockArgs_s52y0g = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_s52y0g_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_hk7n97', -) -external ffi.Pointer _class__BlockArgs_syyzqk_raw; -final _class__BlockArgs_syyzqk = objc.getClass( - "_1uu024u_BlockArgs_hk7n97", - () => ffi.Native.addressOf>( - _class__BlockArgs_syyzqk_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', -) -external ffi.Pointer _class__BlockArgs_t3r59d_raw; -final _class__BlockArgs_t3r59d = objc.getClass( - "_1uu024u_BlockArgs_m09tr7", - () => ffi.Native.addressOf>( - _class__BlockArgs_t3r59d_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_15f11yh', -) -external ffi.Pointer _class__BlockArgs_tbof01_raw; -final _class__BlockArgs_tbof01 = objc.getClass( - "_1uu024u_BlockArgs_15f11yh", - () => ffi.Native.addressOf>( - _class__BlockArgs_tbof01_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_teaic5_raw; -final _class__BlockArgs_teaic5 = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_teaic5_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_tikg8p_raw; -final _class__BlockArgs_tikg8p = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_tikg8p_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_truc42_raw; -final _class__BlockArgs_truc42 = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_truc42_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_u4a6zc_raw; -final _class__BlockArgs_u4a6zc = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_u4a6zc_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_n8yd09', -) -external ffi.Pointer _class__BlockArgs_u65oe8_raw; -final _class__BlockArgs_u65oe8 = objc.getClass( - "_1uu024u_BlockArgs_n8yd09", - () => ffi.Native.addressOf>( - _class__BlockArgs_u65oe8_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_og5b6y', -) -external ffi.Pointer _class__BlockArgs_uul9n9_raw; -final _class__BlockArgs_uul9n9 = objc.getClass( - "_1uu024u_BlockArgs_og5b6y", - () => ffi.Native.addressOf>( - _class__BlockArgs_uul9n9_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_rdj45r', -) -external ffi.Pointer _class__BlockArgs_v1zq3a_raw; -final _class__BlockArgs_v1zq3a = objc.getClass( - "_1uu024u_BlockArgs_rdj45r", - () => ffi.Native.addressOf>( - _class__BlockArgs_v1zq3a_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_v5xz31_raw; -final _class__BlockArgs_v5xz31 = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_v5xz31_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1a22wz', -) -external ffi.Pointer _class__BlockArgs_v8in3_raw; -final _class__BlockArgs_v8in3 = objc.getClass( - "_1uu024u_BlockArgs_1a22wz", - () => ffi.Native.addressOf>( - _class__BlockArgs_v8in3_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_vaglpl_raw; -final _class__BlockArgs_vaglpl = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_vaglpl_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_9fms3g', -) -external ffi.Pointer _class__BlockArgs_vgtcpl_raw; -final _class__BlockArgs_vgtcpl = objc.getClass( - "_1uu024u_BlockArgs_9fms3g", - () => ffi.Native.addressOf>( - _class__BlockArgs_vgtcpl_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_fjrv01', -) -external ffi.Pointer _class__BlockArgs_vpa8ji_raw; -final _class__BlockArgs_vpa8ji = objc.getClass( - "_1uu024u_BlockArgs_fjrv01", - () => ffi.Native.addressOf>( - _class__BlockArgs_vpa8ji_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_m09tr7', -) -external ffi.Pointer _class__BlockArgs_vx7t4i_raw; -final _class__BlockArgs_vx7t4i = objc.getClass( - "_1uu024u_BlockArgs_m09tr7", - () => ffi.Native.addressOf>( - _class__BlockArgs_vx7t4i_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_10lndml', -) -external ffi.Pointer _class__BlockArgs_wpl2gn_raw; -final _class__BlockArgs_wpl2gn = objc.getClass( - "_1uu024u_BlockArgs_10lndml", - () => ffi.Native.addressOf>( - _class__BlockArgs_wpl2gn_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_xtuoz7', -) -external ffi.Pointer _class__BlockArgs_wtbfzi_raw; -final _class__BlockArgs_wtbfzi = objc.getClass( - "_1uu024u_BlockArgs_xtuoz7", - () => ffi.Native.addressOf>( - _class__BlockArgs_wtbfzi_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_pfv6jd', -) -external ffi.Pointer _class__BlockArgs_x5cg0_raw; -final _class__BlockArgs_x5cg0 = objc.getClass( - "_1uu024u_BlockArgs_pfv6jd", - () => ffi.Native.addressOf>( - _class__BlockArgs_x5cg0_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_8acz2h', -) -external ffi.Pointer _class__BlockArgs_x7mqjz_raw; -final _class__BlockArgs_x7mqjz = objc.getClass( - "_1uu024u_BlockArgs_8acz2h", - () => ffi.Native.addressOf>( - _class__BlockArgs_x7mqjz_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_1tz5yf', -) -external ffi.Pointer _class__BlockArgs_xcrg5s_raw; -final _class__BlockArgs_xcrg5s = objc.getClass( - "_1uu024u_BlockArgs_1tz5yf", - () => ffi.Native.addressOf>( - _class__BlockArgs_xcrg5s_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_h68abb', -) -external ffi.Pointer _class__BlockArgs_xh08sz_raw; -final _class__BlockArgs_xh08sz = objc.getClass( - "_1uu024u_BlockArgs_h68abb", - () => ffi.Native.addressOf>( - _class__BlockArgs_xh08sz_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_18v1jvf', -) -external ffi.Pointer _class__BlockArgs_xj71gr_raw; -final _class__BlockArgs_xj71gr = objc.getClass( - "_1uu024u_BlockArgs_18v1jvf", - () => ffi.Native.addressOf>( - _class__BlockArgs_xj71gr_raw, - ).cast(), -); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__1uu024u_BlockArgs_115kkcp', -) -external ffi.Pointer _class__BlockArgs_zgaes8_raw; -final _class__BlockArgs_zgaes8 = objc.getClass( - "_1uu024u_BlockArgs_115kkcp", - () => ffi.Native.addressOf>( - _class__BlockArgs_zgaes8_raw, - ).cast(), -); - -final class _cups_array_s extends ffi.Opaque {} - -final class _cups_dinfo_s extends ffi.Opaque {} - -final class _cups_file_s extends ffi.Opaque {} - -final class _cups_raster_s extends ffi.Opaque {} - -final class _filesec extends ffi.Opaque {} - -final class _http_addr_u extends ffi.Union { - external sockaddr addr; - - external sockaddr_in ipv4; - - external sockaddr_in6 ipv6; - - external sockaddr_un un; - - @ffi.Array.multi([256]) - external ffi.Array pad; -} - -final class _http_s extends ffi.Opaque {} - -final class _ipp_attribute_s extends ffi.Opaque {} - -final class _ipp_s extends ffi.Opaque {} - -final class _launch_data extends ffi.Opaque {} - -final class _malloc_zone_t extends ffi.Opaque {} - -final _objc_msgSend_105ehca = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_10nfbmq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_10txwc9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_11a6od8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_11hj8md = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_11nrymb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__IOSurface> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__IOSurface> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_11spmsz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_11tcc61 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ffi.Pointer, - ) - >(); -final _objc_msgSend_126fd3h = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Bool, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - bool, - ) - >(); -final _objc_msgSend_129c579 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_130mcug = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ) - >(); -final _objc_msgSend_13fklwp = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_13lgpwz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ) - >(); -final _objc_msgSend_13yqbb6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1415lvo = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_14hpxwa = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1513vdc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_151sglz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_158ju31 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_15dzt85 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_15qeuct = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_15v716q = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_15yz4e6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ) - >(); -final _objc_msgSend_164wts2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_165e55c = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_16a25o7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_16bn854 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_16fy0up = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_17amj0z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_17ns785 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_182fzon = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_182fzonStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_187k8ck = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18chyc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_18flwjr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18qun1e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18r320v = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGSize Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGSize Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18r320vStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1b5ysjl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_1bonwe = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFRunLoopObserver> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__CFRunLoopObserver> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1c1ssyi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1c2zpn3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ) - >(); -final _objc_msgSend_1cc1buo = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1d2nxes = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1dau4w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1db3yj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1dcy00i = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1diehjo = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1dom33q = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1dpg4ct = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1dydpdi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_1e3ic39 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFError> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__CFError> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1e3pm0z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_1ea59hv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1f2nccz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1fdou4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1flkydz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1fnsr6j = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1fs7dv0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1fuqfwb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1gypgok = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1h3mito = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1hbj4cd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Uint32 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1i17va2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1i9r4xy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1iyq28l = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1j9bhml = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1jed5jl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1jknn71 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1jwityx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1jz97e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1k0ezzm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1k101e3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.LongLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1k1akuq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_1k1o1s7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_1kn7frf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ko4qka = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedChar Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1kok4b = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1kva9v1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1kz7g09 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1l09uru = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1lhy15d = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1lk7ow3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1llrn9f = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lonves = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lsax7n = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lwwnes = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1mbt9g9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1mik4ys = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1modw1b = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >(); -final _objc_msgSend_1mpyy6y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGPoint Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGPoint Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1mpyy6yStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1n4ndiq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1nqw6vl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - NSUInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1nwix4r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Uint32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1oj5o8z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int64 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ojrli4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool, - ) - >(); -final _objc_msgSend_1okkq16 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ) - >(); -final _objc_msgSend_1ommad9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__SecTrust> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__SecTrust> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1orxdfj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1orxdfjStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1oteutl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_1ozwf6k = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1p2ukjz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1p4gbjy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLongLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1p4uk9e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - double, - ) - >(); -final _objc_msgSend_1pl4k3n = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1pp2gs8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_1pvm3yv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1q2ox4r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1qldcx0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1qv0eq4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1r6ymhb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1r7ue5f = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1r9llia = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1r9lliaStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1rbikrg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ) - >(); -final _objc_msgSend_1rhk8uh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1s3ecd1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecTrust>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecTrust>, - ) - >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1sbro63 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1sotr3r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1t6aok9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1tqkjbg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1tv4uax = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1u11dbb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1u11dbbStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1upeo1d = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ) - >(); -final _objc_msgSend_1uwdhlk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGPoint Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGPoint Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1uwdhlkStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vdfken = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGSize Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGSize Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vdfkenStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vfc2dz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vfgg7v = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vkunzi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vnlaqg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1w05pgk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1wgub22 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1whyima = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1wqutdn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1wtpmu7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1xmmt6t = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ygbbzi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1yyiln9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFRunLoopTimer> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__CFRunLoopTimer> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2naryv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_2p9qiq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2wiv66 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_3fn4ca = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_3gpdva = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_3ow0v1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ffi.LongLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >(); -final _objc_msgSend_3pyzne = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_4qsw9q = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_4sp4xj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_56zxyn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_5bd8xr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_65s5yw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_65s5ywFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_6cylk3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ffi.LongLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_6ex6p5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_6h5ewf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ) - >(); -final _objc_msgSend_6p7ndb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_6pykvq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_6z4k82 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_7km9vu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_7kpg7m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_7ql5kn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_7w1jp7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_8cymbm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_8mvqcu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Bool, - ffi.Pointer>, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - bool, - ffi.Pointer>, - ffi.Pointer, - ) - >(); -final _objc_msgSend_91o635 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_9cddqw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_9qbz9w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Uint64 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_akk2cd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_b99g2z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_bkebbk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ffi.Pointer, - ) - >(); -final _objc_msgSend_bm6pu2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_bstjp9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_bu1hbw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGRect Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGRect Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_bu1hbwStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_d3i1uy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_d3i1uyStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_d8c3m2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_d9bpjb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_dgx62p = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_djsa9o = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_e1wgee = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_e3qsqz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_e9mncn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_erqryg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_esp80j = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_f167m6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_f227js = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGRect, - ffi.Pointer, - ) - >(); -final _objc_msgSend_fd28sq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_fm5719 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_fooyu3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSUInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_g3kdhc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_g4ia9x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_g4ia9xFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_gtxojt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_h0gkbf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Size Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_h10lj0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_h1puss = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_h42mdr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_hefmm1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_hjhgti = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_hk7n97 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_hws22w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ifge4x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >(); -final _objc_msgSend_ijkvzl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ipgwfh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ivnkdn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_iy8iz6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ) - >(); -final _objc_msgSend_jbzgy2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_jfo4g1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecIdentity>, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecIdentity>, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_kgvd6q = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_l9p60w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_l9ppnx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_lof6g0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_lx7wnn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint32, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_lzbvjm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_lzroim = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_m7tls4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_mabicu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_mlcr8l = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_mpxix1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_nk32k5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_nkb3zz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__SecIdentity> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__SecIdentity> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_nnxkei = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_o762yo = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_oa8mke = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_odvxky = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFArray> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__CFArray> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ovsamd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_oziolg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer<__SecKey> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer<__SecKey> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_pccgql = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ) - >(); -final _objc_msgSend_pfv6jd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_pysgoz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int64 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_qrtfce = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.CGRect Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.CGRect Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_qrtfceStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_qugqlf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_quo6mj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ) - >(); -final _objc_msgSend_r0bo0s = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_r8gdi7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_rmqcvp = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Uint16 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_rutu22 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_s058d2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_s92gih = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_sax6zm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSEdgeInsets, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSEdgeInsets, - ) - >(); -final _objc_msgSend_sl0cgw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSEdgeInsets Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - objc.NSEdgeInsets Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_sl0cgwStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_syi8bx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_sz90oi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_t8ajot = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ) - >(); -final _objc_msgSend_tpnpd0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Long, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_tsocn4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_tyifel = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSInteger Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_u2drt1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_u8u7og = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_uwvaik = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_v5hmet = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_vbc8p4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_vij4rw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_vkpxx6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - CFOptionFlags Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_vqual9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_w9bq5x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - objc.NSRange, - bool, - ) - >(); -final _objc_msgSend_wbgokv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_wep107 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGSize, - double, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_wfjd8v = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_wgkxx2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - objc.CGPoint, - ) - >(); -final _objc_msgSend_wp1dbz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_xhvge5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_xw2lbc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_y1izi1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_y1woti = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_yl37m5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ) - > - >() - .asFunction< - objc.NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ) - >(); -final _objc_msgSend_yl37m5Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - objc.NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - objc.NSRange, - ) - >(); -final _objc_msgSend_ylninc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_z7gxsm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_z7lrh9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Uint64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_zmbtbd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_zuf90e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_zy00wz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - objc.NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - objc.NSRange, - ffi.Pointer, - ) - >(); - -final class _opaque_pthread_attr_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([56]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_cond_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([40]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_condattr_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([8]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_mutex_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([56]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_mutexattr_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([8]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_once_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([8]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_rwlock_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([192]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_rwlockattr_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - @ffi.Array.multi([16]) - external ffi.Array __opaque; -} - -final class _opaque_pthread_t extends ffi.Struct { - @ffi.Long() - external int __sig; - - external ffi.Pointer<__darwin_pthread_handler_rec> __cleanup_stack; - - @ffi.Array.multi([8176]) - external ffi.Array __opaque; -} - -final class _ppd_cache_s extends ffi.Opaque {} - -typedef _ppd_cache_t = _ppd_cache_s; -@ffi.Native Function()>( - symbol: '_1uu024u_AVAudioPlayerDelegate', -) -external ffi.Pointer -_protocol_AVAudioPlayerDelegate_raw(); -final _protocol_AVAudioPlayerDelegate = objc.getProtocol( - "AVAudioPlayerDelegate", - _protocol_AVAudioPlayerDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_AVAudioSessionDelegate', -) -external ffi.Pointer -_protocol_AVAudioSessionDelegate_raw(); -final _protocol_AVAudioSessionDelegate = objc.getProtocol( - "AVAudioSessionDelegate", - _protocol_AVAudioSessionDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_CTAdaptiveImageProviding', -) -external ffi.Pointer -_protocol_CTAdaptiveImageProviding_raw(); -final _protocol_CTAdaptiveImageProviding = objc.getProtocol( - "CTAdaptiveImageProviding", - _protocol_CTAdaptiveImageProviding_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSCacheDelegate', -) -external ffi.Pointer _protocol_NSCacheDelegate_raw(); -final _protocol_NSCacheDelegate = objc.getProtocol( - "NSCacheDelegate", - _protocol_NSCacheDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSConnectionDelegate', -) -external ffi.Pointer -_protocol_NSConnectionDelegate_raw(); -final _protocol_NSConnectionDelegate = objc.getProtocol( - "NSConnectionDelegate", - _protocol_NSConnectionDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSDecimalNumberBehaviors', -) -external ffi.Pointer -_protocol_NSDecimalNumberBehaviors_raw(); -final _protocol_NSDecimalNumberBehaviors = objc.getProtocol( - "NSDecimalNumberBehaviors", - _protocol_NSDecimalNumberBehaviors_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSDiscardableContent', -) -external ffi.Pointer -_protocol_NSDiscardableContent_raw(); -final _protocol_NSDiscardableContent = objc.getProtocol( - "NSDiscardableContent", - _protocol_NSDiscardableContent_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSExtensionRequestHandling', -) -external ffi.Pointer -_protocol_NSExtensionRequestHandling_raw(); -final _protocol_NSExtensionRequestHandling = objc.getProtocol( - "NSExtensionRequestHandling", - _protocol_NSExtensionRequestHandling_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSFileManagerDelegate', -) -external ffi.Pointer -_protocol_NSFileManagerDelegate_raw(); -final _protocol_NSFileManagerDelegate = objc.getProtocol( - "NSFileManagerDelegate", - _protocol_NSFileManagerDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSFilePresenter', -) -external ffi.Pointer _protocol_NSFilePresenter_raw(); -final _protocol_NSFilePresenter = objc.getProtocol( - "NSFilePresenter", - _protocol_NSFilePresenter_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSKeyedArchiverDelegate', -) -external ffi.Pointer -_protocol_NSKeyedArchiverDelegate_raw(); -final _protocol_NSKeyedArchiverDelegate = objc.getProtocol( - "NSKeyedArchiverDelegate", - _protocol_NSKeyedArchiverDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSKeyedUnarchiverDelegate', -) -external ffi.Pointer -_protocol_NSKeyedUnarchiverDelegate_raw(); -final _protocol_NSKeyedUnarchiverDelegate = objc.getProtocol( - "NSKeyedUnarchiverDelegate", - _protocol_NSKeyedUnarchiverDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSLocking', -) -external ffi.Pointer _protocol_NSLocking_raw(); -final _protocol_NSLocking = objc.getProtocol( - "NSLocking", - _protocol_NSLocking_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSMachPortDelegate', -) -external ffi.Pointer _protocol_NSMachPortDelegate_raw(); -final _protocol_NSMachPortDelegate = objc.getProtocol( - "NSMachPortDelegate", - _protocol_NSMachPortDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSMetadataQueryDelegate', -) -external ffi.Pointer -_protocol_NSMetadataQueryDelegate_raw(); -final _protocol_NSMetadataQueryDelegate = objc.getProtocol( - "NSMetadataQueryDelegate", - _protocol_NSMetadataQueryDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSNetServiceBrowserDelegate', -) -external ffi.Pointer -_protocol_NSNetServiceBrowserDelegate_raw(); -final _protocol_NSNetServiceBrowserDelegate = objc.getProtocol( - "NSNetServiceBrowserDelegate", - _protocol_NSNetServiceBrowserDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSNetServiceDelegate', -) -external ffi.Pointer -_protocol_NSNetServiceDelegate_raw(); -final _protocol_NSNetServiceDelegate = objc.getProtocol( - "NSNetServiceDelegate", - _protocol_NSNetServiceDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSProgressReporting', -) -external ffi.Pointer _protocol_NSProgressReporting_raw(); -final _protocol_NSProgressReporting = objc.getProtocol( - "NSProgressReporting", - _protocol_NSProgressReporting_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSSpellServerDelegate', -) -external ffi.Pointer -_protocol_NSSpellServerDelegate_raw(); -final _protocol_NSSpellServerDelegate = objc.getProtocol( - "NSSpellServerDelegate", - _protocol_NSSpellServerDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLAuthenticationChallengeSender', -) -external ffi.Pointer -_protocol_NSURLAuthenticationChallengeSender_raw(); -final _protocol_NSURLAuthenticationChallengeSender = objc.getProtocol( - "NSURLAuthenticationChallengeSender", - _protocol_NSURLAuthenticationChallengeSender_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLConnectionDataDelegate', -) -external ffi.Pointer -_protocol_NSURLConnectionDataDelegate_raw(); -final _protocol_NSURLConnectionDataDelegate = objc.getProtocol( - "NSURLConnectionDataDelegate", - _protocol_NSURLConnectionDataDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLConnectionDelegate', -) -external ffi.Pointer -_protocol_NSURLConnectionDelegate_raw(); -final _protocol_NSURLConnectionDelegate = objc.getProtocol( - "NSURLConnectionDelegate", - _protocol_NSURLConnectionDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLConnectionDownloadDelegate', -) -external ffi.Pointer -_protocol_NSURLConnectionDownloadDelegate_raw(); -final _protocol_NSURLConnectionDownloadDelegate = objc.getProtocol( - "NSURLConnectionDownloadDelegate", - _protocol_NSURLConnectionDownloadDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLDownloadDelegate', -) -external ffi.Pointer -_protocol_NSURLDownloadDelegate_raw(); -final _protocol_NSURLDownloadDelegate = objc.getProtocol( - "NSURLDownloadDelegate", - _protocol_NSURLDownloadDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLHandleClient', -) -external ffi.Pointer _protocol_NSURLHandleClient_raw(); -final _protocol_NSURLHandleClient = objc.getProtocol( - "NSURLHandleClient", - _protocol_NSURLHandleClient_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLProtocolClient', -) -external ffi.Pointer _protocol_NSURLProtocolClient_raw(); -final _protocol_NSURLProtocolClient = objc.getProtocol( - "NSURLProtocolClient", - _protocol_NSURLProtocolClient_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionDataDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionDataDelegate_raw(); -final _protocol_NSURLSessionDataDelegate = objc.getProtocol( - "NSURLSessionDataDelegate", - _protocol_NSURLSessionDataDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionDelegate_raw(); -final _protocol_NSURLSessionDelegate = objc.getProtocol( - "NSURLSessionDelegate", - _protocol_NSURLSessionDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionDownloadDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionDownloadDelegate_raw(); -final _protocol_NSURLSessionDownloadDelegate = objc.getProtocol( - "NSURLSessionDownloadDelegate", - _protocol_NSURLSessionDownloadDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionStreamDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionStreamDelegate_raw(); -final _protocol_NSURLSessionStreamDelegate = objc.getProtocol( - "NSURLSessionStreamDelegate", - _protocol_NSURLSessionStreamDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionTaskDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionTaskDelegate_raw(); -final _protocol_NSURLSessionTaskDelegate = objc.getProtocol( - "NSURLSessionTaskDelegate", - _protocol_NSURLSessionTaskDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSURLSessionWebSocketDelegate', -) -external ffi.Pointer -_protocol_NSURLSessionWebSocketDelegate_raw(); -final _protocol_NSURLSessionWebSocketDelegate = objc.getProtocol( - "NSURLSessionWebSocketDelegate", - _protocol_NSURLSessionWebSocketDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSUserActivityDelegate', -) -external ffi.Pointer -_protocol_NSUserActivityDelegate_raw(); -final _protocol_NSUserActivityDelegate = objc.getProtocol( - "NSUserActivityDelegate", - _protocol_NSUserActivityDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSUserNotificationCenterDelegate', -) -external ffi.Pointer -_protocol_NSUserNotificationCenterDelegate_raw(); -final _protocol_NSUserNotificationCenterDelegate = objc.getProtocol( - "NSUserNotificationCenterDelegate", - _protocol_NSUserNotificationCenterDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSXMLParserDelegate', -) -external ffi.Pointer _protocol_NSXMLParserDelegate_raw(); -final _protocol_NSXMLParserDelegate = objc.getProtocol( - "NSXMLParserDelegate", - _protocol_NSXMLParserDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSXPCListenerDelegate', -) -external ffi.Pointer -_protocol_NSXPCListenerDelegate_raw(); -final _protocol_NSXPCListenerDelegate = objc.getProtocol( - "NSXPCListenerDelegate", - _protocol_NSXPCListenerDelegate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_NSXPCProxyCreating', -) -external ffi.Pointer _protocol_NSXPCProxyCreating_raw(); -final _protocol_NSXPCProxyCreating = objc.getProtocol( - "NSXPCProxyCreating", - _protocol_NSXPCProxyCreating_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_data', -) -external ffi.Pointer _protocol_OS_dispatch_data_raw(); -final _protocol_OS_dispatch_data = objc.getProtocol( - "OS_dispatch_data", - _protocol_OS_dispatch_data_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_group', -) -external ffi.Pointer _protocol_OS_dispatch_group_raw(); -final _protocol_OS_dispatch_group = objc.getProtocol( - "OS_dispatch_group", - _protocol_OS_dispatch_group_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_io', -) -external ffi.Pointer _protocol_OS_dispatch_io_raw(); -final _protocol_OS_dispatch_io = objc.getProtocol( - "OS_dispatch_io", - _protocol_OS_dispatch_io_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_object', -) -external ffi.Pointer _protocol_OS_dispatch_object_raw(); -final _protocol_OS_dispatch_object = objc.getProtocol( - "OS_dispatch_object", - _protocol_OS_dispatch_object_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue', -) -external ffi.Pointer _protocol_OS_dispatch_queue_raw(); -final _protocol_OS_dispatch_queue = objc.getProtocol( - "OS_dispatch_queue", - _protocol_OS_dispatch_queue_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_attr', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_attr_raw(); -final _protocol_OS_dispatch_queue_attr = objc.getProtocol( - "OS_dispatch_queue_attr", - _protocol_OS_dispatch_queue_attr_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_concurrent', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_concurrent_raw(); -final _protocol_OS_dispatch_queue_concurrent = objc.getProtocol( - "OS_dispatch_queue_concurrent", - _protocol_OS_dispatch_queue_concurrent_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_global', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_global_raw(); -final _protocol_OS_dispatch_queue_global = objc.getProtocol( - "OS_dispatch_queue_global", - _protocol_OS_dispatch_queue_global_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_main', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_main_raw(); -final _protocol_OS_dispatch_queue_main = objc.getProtocol( - "OS_dispatch_queue_main", - _protocol_OS_dispatch_queue_main_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_serial', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_serial_raw(); -final _protocol_OS_dispatch_queue_serial = objc.getProtocol( - "OS_dispatch_queue_serial", - _protocol_OS_dispatch_queue_serial_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_queue_serial_executor', -) -external ffi.Pointer -_protocol_OS_dispatch_queue_serial_executor_raw(); -final _protocol_OS_dispatch_queue_serial_executor = objc.getProtocol( - "OS_dispatch_queue_serial_executor", - _protocol_OS_dispatch_queue_serial_executor_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_semaphore', -) -external ffi.Pointer -_protocol_OS_dispatch_semaphore_raw(); -final _protocol_OS_dispatch_semaphore = objc.getProtocol( - "OS_dispatch_semaphore", - _protocol_OS_dispatch_semaphore_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_source', -) -external ffi.Pointer _protocol_OS_dispatch_source_raw(); -final _protocol_OS_dispatch_source = objc.getProtocol( - "OS_dispatch_source", - _protocol_OS_dispatch_source_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_dispatch_workloop', -) -external ffi.Pointer -_protocol_OS_dispatch_workloop_raw(); -final _protocol_OS_dispatch_workloop = objc.getProtocol( - "OS_dispatch_workloop", - _protocol_OS_dispatch_workloop_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_os_workgroup_interval', -) -external ffi.Pointer -_protocol_OS_os_workgroup_interval_raw(); -final _protocol_OS_os_workgroup_interval = objc.getProtocol( - "OS_os_workgroup_interval", - _protocol_OS_os_workgroup_interval_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_os_workgroup_parallel', -) -external ffi.Pointer -_protocol_OS_os_workgroup_parallel_raw(); -final _protocol_OS_os_workgroup_parallel = objc.getProtocol( - "OS_os_workgroup_parallel", - _protocol_OS_os_workgroup_parallel_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_certificate', -) -external ffi.Pointer _protocol_OS_sec_certificate_raw(); -final _protocol_OS_sec_certificate = objc.getProtocol( - "OS_sec_certificate", - _protocol_OS_sec_certificate_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_identity', -) -external ffi.Pointer _protocol_OS_sec_identity_raw(); -final _protocol_OS_sec_identity = objc.getProtocol( - "OS_sec_identity", - _protocol_OS_sec_identity_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_object', -) -external ffi.Pointer _protocol_OS_sec_object_raw(); -final _protocol_OS_sec_object = objc.getProtocol( - "OS_sec_object", - _protocol_OS_sec_object_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_protocol_metadata', -) -external ffi.Pointer -_protocol_OS_sec_protocol_metadata_raw(); -final _protocol_OS_sec_protocol_metadata = objc.getProtocol( - "OS_sec_protocol_metadata", - _protocol_OS_sec_protocol_metadata_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_protocol_options', -) -external ffi.Pointer -_protocol_OS_sec_protocol_options_raw(); -final _protocol_OS_sec_protocol_options = objc.getProtocol( - "OS_sec_protocol_options", - _protocol_OS_sec_protocol_options_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_sec_trust', -) -external ffi.Pointer _protocol_OS_sec_trust_raw(); -final _protocol_OS_sec_trust = objc.getProtocol( - "OS_sec_trust", - _protocol_OS_sec_trust_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_xpc_listener', -) -external ffi.Pointer _protocol_OS_xpc_listener_raw(); -final _protocol_OS_xpc_listener = objc.getProtocol( - "OS_xpc_listener", - _protocol_OS_xpc_listener_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_xpc_object', -) -external ffi.Pointer _protocol_OS_xpc_object_raw(); -final _protocol_OS_xpc_object = objc.getProtocol( - "OS_xpc_object", - _protocol_OS_xpc_object_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_xpc_peer_requirement', -) -external ffi.Pointer -_protocol_OS_xpc_peer_requirement_raw(); -final _protocol_OS_xpc_peer_requirement = objc.getProtocol( - "OS_xpc_peer_requirement", - _protocol_OS_xpc_peer_requirement_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_OS_xpc_session', -) -external ffi.Pointer _protocol_OS_xpc_session_raw(); -final _protocol_OS_xpc_session = objc.getProtocol( - "OS_xpc_session", - _protocol_OS_xpc_session_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_PDEPanel', -) -external ffi.Pointer _protocol_PDEPanel_raw(); -final _protocol_PDEPanel = objc.getProtocol("PDEPanel", _protocol_PDEPanel_raw); -@ffi.Native Function()>( - symbol: '_1uu024u_PDEPlugIn', -) -external ffi.Pointer _protocol_PDEPlugIn_raw(); -final _protocol_PDEPlugIn = objc.getProtocol( - "PDEPlugIn", - _protocol_PDEPlugIn_raw, -); -@ffi.Native Function()>( - symbol: '_1uu024u_PDEPlugInCallbackProtocol', -) -external ffi.Pointer -_protocol_PDEPlugInCallbackProtocol_raw(); -final _protocol_PDEPlugInCallbackProtocol = objc.getProtocol( - "PDEPlugInCallbackProtocol", - _protocol_PDEPlugInCallbackProtocol_raw, -); -late final _sel_HTTPBody = objc.registerName("HTTPBody"); -late final _sel_HTTPBodyStream = objc.registerName("HTTPBodyStream"); -late final _sel_HTTPMethod = objc.registerName("HTTPMethod"); -late final _sel_HTTPShouldHandleCookies = objc.registerName( - "HTTPShouldHandleCookies", -); -late final _sel_HTTPShouldUsePipelining = objc.registerName( - "HTTPShouldUsePipelining", -); -late final _sel_IOBufferDuration = objc.registerName("IOBufferDuration"); -late final _sel_ISOCountryCodes = objc.registerName("ISOCountryCodes"); -late final _sel_ISOCurrencyCodes = objc.registerName("ISOCurrencyCodes"); -late final _sel_ISOLanguageCodes = objc.registerName("ISOLanguageCodes"); -late final _sel_PDEPanelsForType_withHostInfo_ = objc.registerName( - "PDEPanelsForType:withHostInfo:", -); -late final _sel_PMPrinter = objc.registerName("PMPrinter"); -late final _sel_PPDOptionKeyValueDidChange_ppdChoice_ = objc.registerName( - "PPDOptionKeyValueDidChange:ppdChoice:", -); -late final _sel_URL = objc.registerName("URL"); -late final _sel_URLByAppendingPathComponent_ = objc.registerName( - "URLByAppendingPathComponent:", -); -late final _sel_URLByAppendingPathComponent_isDirectory_ = objc.registerName( - "URLByAppendingPathComponent:isDirectory:", -); -late final _sel_URLByAppendingPathExtension_ = objc.registerName( - "URLByAppendingPathExtension:", -); -late final _sel_URLByDeletingLastPathComponent = objc.registerName( - "URLByDeletingLastPathComponent", -); -late final _sel_URLByDeletingPathExtension = objc.registerName( - "URLByDeletingPathExtension", -); -late final _sel_URLByResolvingSymlinksInPath = objc.registerName( - "URLByResolvingSymlinksInPath", -); -late final _sel_URLByStandardizingPath = objc.registerName( - "URLByStandardizingPath", -); -late final _sel_URLFragmentAllowedCharacterSet = objc.registerName( - "URLFragmentAllowedCharacterSet", -); -late final _sel_URLHandleResourceDidBeginLoading_ = objc.registerName( - "URLHandleResourceDidBeginLoading:", -); -late final _sel_URLHandleResourceDidCancelLoading_ = objc.registerName( - "URLHandleResourceDidCancelLoading:", -); -late final _sel_URLHandleResourceDidFinishLoading_ = objc.registerName( - "URLHandleResourceDidFinishLoading:", -); -late final _sel_URLHandleUsingCache_ = objc.registerName( - "URLHandleUsingCache:", -); -late final _sel_URLHandle_resourceDataDidBecomeAvailable_ = objc.registerName( - "URLHandle:resourceDataDidBecomeAvailable:", -); -late final _sel_URLHandle_resourceDidFailLoadingWithReason_ = objc.registerName( - "URLHandle:resourceDidFailLoadingWithReason:", -); -late final _sel_URLHostAllowedCharacterSet = objc.registerName( - "URLHostAllowedCharacterSet", -); -late final _sel_URLPasswordAllowedCharacterSet = objc.registerName( - "URLPasswordAllowedCharacterSet", -); -late final _sel_URLPathAllowedCharacterSet = objc.registerName( - "URLPathAllowedCharacterSet", -); -late final _sel_URLProtocolDidFinishLoading_ = objc.registerName( - "URLProtocolDidFinishLoading:", -); -late final _sel_URLProtocol_cachedResponseIsValid_ = objc.registerName( - "URLProtocol:cachedResponseIsValid:", -); -late final _sel_URLProtocol_didCancelAuthenticationChallenge_ = objc - .registerName("URLProtocol:didCancelAuthenticationChallenge:"); -late final _sel_URLProtocol_didFailWithError_ = objc.registerName( - "URLProtocol:didFailWithError:", -); -late final _sel_URLProtocol_didLoadData_ = objc.registerName( - "URLProtocol:didLoadData:", -); -late final _sel_URLProtocol_didReceiveAuthenticationChallenge_ = objc - .registerName("URLProtocol:didReceiveAuthenticationChallenge:"); -late final _sel_URLProtocol_didReceiveResponse_cacheStoragePolicy_ = objc - .registerName("URLProtocol:didReceiveResponse:cacheStoragePolicy:"); -late final _sel_URLProtocol_wasRedirectedToRequest_redirectResponse_ = objc - .registerName("URLProtocol:wasRedirectedToRequest:redirectResponse:"); -late final _sel_URLQueryAllowedCharacterSet = objc.registerName( - "URLQueryAllowedCharacterSet", -); -late final _sel_URLResourceDidCancelLoading_ = objc.registerName( - "URLResourceDidCancelLoading:", -); -late final _sel_URLResourceDidFinishLoading_ = objc.registerName( - "URLResourceDidFinishLoading:", -); -late final _sel_URLSessionDidFinishEventsForBackgroundURLSession_ = objc - .registerName("URLSessionDidFinishEventsForBackgroundURLSession:"); -late final _sel_URLSession_betterRouteDiscoveredForStreamTask_ = objc - .registerName("URLSession:betterRouteDiscoveredForStreamTask:"); -late final _sel_URLSession_dataTask_didBecomeDownloadTask_ = objc.registerName( - "URLSession:dataTask:didBecomeDownloadTask:", -); -late final _sel_URLSession_dataTask_didBecomeStreamTask_ = objc.registerName( - "URLSession:dataTask:didBecomeStreamTask:", -); -late final _sel_URLSession_dataTask_didReceiveData_ = objc.registerName( - "URLSession:dataTask:didReceiveData:", -); -late final _sel_URLSession_dataTask_didReceiveResponse_completionHandler_ = objc - .registerName("URLSession:dataTask:didReceiveResponse:completionHandler:"); -late final _sel_URLSession_dataTask_willCacheResponse_completionHandler_ = objc - .registerName("URLSession:dataTask:willCacheResponse:completionHandler:"); -late final _sel_URLSession_didBecomeInvalidWithError_ = objc.registerName( - "URLSession:didBecomeInvalidWithError:", -); -late final _sel_URLSession_didCreateTask_ = objc.registerName( - "URLSession:didCreateTask:", -); -late final _sel_URLSession_didReceiveChallenge_completionHandler_ = objc - .registerName("URLSession:didReceiveChallenge:completionHandler:"); -late final _sel_URLSession_downloadTask_didFinishDownloadingToURL_ = objc - .registerName("URLSession:downloadTask:didFinishDownloadingToURL:"); -late final _sel_URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes_ = - objc.registerName( - "URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:", - ); -late final _sel_URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite_ = - objc.registerName( - "URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:", - ); -late final _sel_URLSession_readClosedForStreamTask_ = objc.registerName( - "URLSession:readClosedForStreamTask:", -); -late final _sel_URLSession_streamTask_didBecomeInputStream_outputStream_ = objc - .registerName("URLSession:streamTask:didBecomeInputStream:outputStream:"); -late final _sel_URLSession_taskIsWaitingForConnectivity_ = objc.registerName( - "URLSession:taskIsWaitingForConnectivity:", -); -late final _sel_URLSession_task_didCompleteWithError_ = objc.registerName( - "URLSession:task:didCompleteWithError:", -); -late final _sel_URLSession_task_didFinishCollectingMetrics_ = objc.registerName( - "URLSession:task:didFinishCollectingMetrics:", -); -late final _sel_URLSession_task_didReceiveChallenge_completionHandler_ = objc - .registerName("URLSession:task:didReceiveChallenge:completionHandler:"); -late final _sel_URLSession_task_didReceiveInformationalResponse_ = objc - .registerName("URLSession:task:didReceiveInformationalResponse:"); -late final _sel_URLSession_task_didSendBodyData_totalBytesSent_totalBytesExpectedToSend_ = - objc.registerName( - "URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:", - ); -late final _sel_URLSession_task_needNewBodyStreamFromOffset_completionHandler_ = - objc.registerName( - "URLSession:task:needNewBodyStreamFromOffset:completionHandler:", - ); -late final _sel_URLSession_task_needNewBodyStream_ = objc.registerName( - "URLSession:task:needNewBodyStream:", -); -late final _sel_URLSession_task_willBeginDelayedRequest_completionHandler_ = - objc.registerName( - "URLSession:task:willBeginDelayedRequest:completionHandler:", - ); -late final _sel_URLSession_task_willPerformHTTPRedirection_newRequest_completionHandler_ = - objc.registerName( - "URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:", - ); -late final _sel_URLSession_webSocketTask_didCloseWithCode_reason_ = objc - .registerName("URLSession:webSocketTask:didCloseWithCode:reason:"); -late final _sel_URLSession_webSocketTask_didOpenWithProtocol_ = objc - .registerName("URLSession:webSocketTask:didOpenWithProtocol:"); -late final _sel_URLSession_writeClosedForStreamTask_ = objc.registerName( - "URLSession:writeClosedForStreamTask:", -); -late final _sel_URLUserAllowedCharacterSet = objc.registerName( - "URLUserAllowedCharacterSet", -); -late final _sel_URL_resourceDataDidBecomeAvailable_ = objc.registerName( - "URL:resourceDataDidBecomeAvailable:", -); -late final _sel_URL_resourceDidFailLoadingWithReason_ = objc.registerName( - "URL:resourceDidFailLoadingWithReason:", -); -late final _sel_abbreviation = objc.registerName("abbreviation"); -late final _sel_abbreviationDictionary = objc.registerName( - "abbreviationDictionary", -); -late final _sel_acceptConnectionInBackgroundAndNotify = objc.registerName( - "acceptConnectionInBackgroundAndNotify", -); -late final _sel_acceptConnectionInBackgroundAndNotifyForModes_ = objc - .registerName("acceptConnectionInBackgroundAndNotifyForModes:"); -late final _sel_accessInstanceVariablesDirectly = objc.registerName( - "accessInstanceVariablesDirectly", -); -late final _sel_accommodatePresentedItemDeletionWithCompletionHandler_ = objc - .registerName("accommodatePresentedItemDeletionWithCompletionHandler:"); -late final _sel_accommodatePresentedItemEvictionWithCompletionHandler_ = objc - .registerName("accommodatePresentedItemEvictionWithCompletionHandler:"); -late final _sel_accommodatePresentedSubitemDeletionAtURL_completionHandler_ = - objc.registerName( - "accommodatePresentedSubitemDeletionAtURL:completionHandler:", - ); -late final _sel_activateWithOptions_completionHandler_ = objc.registerName( - "activateWithOptions:completionHandler:", -); -late final _sel_addAttribute_value_range_ = objc.registerName( - "addAttribute:value:range:", -); -late final _sel_addAttributes_range_ = objc.registerName( - "addAttributes:range:", -); -late final _sel_addFileWithPath_ = objc.registerName("addFileWithPath:"); -late final _sel_addObserver_forKeyPath_options_context_ = objc.registerName( - "addObserver:forKeyPath:options:context:", -); -late final _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_ = - objc.registerName( - "addObserver:toObjectsAtIndexes:forKeyPath:options:context:", - ); -late final _sel_addSymbolicLinkWithDestination_preferredFilename_ = objc - .registerName("addSymbolicLinkWithDestination:preferredFilename:"); -late final _sel_addValue_forHTTPHeaderField_ = objc.registerName( - "addValue:forHTTPHeaderField:", -); -late final _sel_addressCheckingResultWithRange_components_ = objc.registerName( - "addressCheckingResultWithRange:components:", -); -late final _sel_addressComponents = objc.registerName("addressComponents"); -late final _sel_allHTTPHeaderFields = objc.registerName("allHTTPHeaderFields"); -late final _sel_allLanguages = objc.registerName("allLanguages"); -late final _sel_allObjects = objc.registerName("allObjects"); -late final _sel_allScripts = objc.registerName("allScripts"); -late final _sel_alloc = objc.registerName("alloc"); -late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); -late final _sel_allowedClasses = objc.registerName("allowedClasses"); -late final _sel_allowsKeyedCoding = objc.registerName("allowsKeyedCoding"); -late final _sel_allowsNaturalLanguage = objc.registerName( - "allowsNaturalLanguage", -); -late final _sel_alternateQuotationBeginDelimiter = objc.registerName( - "alternateQuotationBeginDelimiter", -); -late final _sel_alternateQuotationEndDelimiter = objc.registerName( - "alternateQuotationEndDelimiter", -); -late final _sel_alternativeStrings = objc.registerName("alternativeStrings"); -late final _sel_appendAttributedString_ = objc.registerName( - "appendAttributedString:", -); -late final _sel_appendFormat_ = objc.registerName("appendFormat:"); -late final _sel_appendLocalizedFormat_ = objc.registerName( - "appendLocalizedFormat:", -); -late final _sel_appendString_ = objc.registerName("appendString:"); -late final _sel_applyDifference_ = objc.registerName("applyDifference:"); -late final _sel_applyTransform_reverse_range_updatedRange_ = objc.registerName( - "applyTransform:reverse:range:updatedRange:", -); -late final _sel_archiverDidFinish_ = objc.registerName("archiverDidFinish:"); -late final _sel_archiverWillFinish_ = objc.registerName("archiverWillFinish:"); -late final _sel_archiver_didEncodeObject_ = objc.registerName( - "archiver:didEncodeObject:", -); -late final _sel_archiver_willEncodeObject_ = objc.registerName( - "archiver:willEncodeObject:", -); -late final _sel_archiver_willReplaceObject_withObject_ = objc.registerName( - "archiver:willReplaceObject:withObject:", -); -late final _sel_arg0 = objc.registerName("arg0"); -late final _sel_arg1 = objc.registerName("arg1"); -late final _sel_arg2 = objc.registerName("arg2"); -late final _sel_arg3 = objc.registerName("arg3"); -late final _sel_arg4 = objc.registerName("arg4"); -late final _sel_arg5 = objc.registerName("arg5"); -late final _sel_array = objc.registerName("array"); -late final _sel_arrayByApplyingDifference_ = objc.registerName( - "arrayByApplyingDifference:", -); -late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); -late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); -late final _sel_arrayWithContentsOfFile_ = objc.registerName( - "arrayWithContentsOfFile:", -); -late final _sel_arrayWithContentsOfURL_ = objc.registerName( - "arrayWithContentsOfURL:", -); -late final _sel_arrayWithContentsOfURL_error_ = objc.registerName( - "arrayWithContentsOfURL:error:", -); -late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); -late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); -late final _sel_arrayWithObjects_count_ = objc.registerName( - "arrayWithObjects:count:", -); -late final _sel_attemptRecoveryFromError_optionIndex_ = objc.registerName( - "attemptRecoveryFromError:optionIndex:", -); -late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_ = - objc.registerName( - "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:", - ); -late final _sel_attributeKeys = objc.registerName("attributeKeys"); -late final _sel_attribute_atIndex_effectiveRange_ = objc.registerName( - "attribute:atIndex:effectiveRange:", -); -late final _sel_attribute_atIndex_longestEffectiveRange_inRange_ = objc - .registerName("attribute:atIndex:longestEffectiveRange:inRange:"); -late final _sel_attributedStringByInflectingString = objc.registerName( - "attributedStringByInflectingString", -); -late final _sel_attributedStringForNil = objc.registerName( - "attributedStringForNil", -); -late final _sel_attributedStringForNotANumber = objc.registerName( - "attributedStringForNotANumber", -); -late final _sel_attributedStringForZero = objc.registerName( - "attributedStringForZero", -); -late final _sel_attributedSubstringFromRange_ = objc.registerName( - "attributedSubstringFromRange:", -); -late final _sel_attributesAtIndex_longestEffectiveRange_inRange_ = objc - .registerName("attributesAtIndex:longestEffectiveRange:inRange:"); -late final _sel_audioPlayerDecodeErrorDidOccur_error_ = objc.registerName( - "audioPlayerDecodeErrorDidOccur:error:", -); -late final _sel_audioPlayerDidFinishPlaying_successfully_ = objc.registerName( - "audioPlayerDidFinishPlaying:successfully:", -); -late final _sel_authenticateComponents_withData_ = objc.registerName( - "authenticateComponents:withData:", -); -late final _sel_authenticationDataForComponents_ = objc.registerName( - "authenticationDataForComponents:", -); -late final _sel_autoContentAccessingProxy = objc.registerName( - "autoContentAccessingProxy", -); -late final _sel_automaticallyNotifiesObserversForKey_ = objc.registerName( - "automaticallyNotifiesObserversForKey:", -); -late final _sel_autoupdatingCurrentLocale = objc.registerName( - "autoupdatingCurrentLocale", -); -late final _sel_availableInputs = objc.registerName("availableInputs"); -late final _sel_availableLocaleIdentifiers = objc.registerName( - "availableLocaleIdentifiers", -); -late final _sel_averagePowerForChannel_ = objc.registerName( - "averagePowerForChannel:", -); -late final _sel_awakeAfterUsingCoder_ = objc.registerName( - "awakeAfterUsingCoder:", -); -late final _sel_backgroundSessionConfiguration_ = objc.registerName( - "backgroundSessionConfiguration:", -); -late final _sel_base64EncodedDataWithOptions_ = objc.registerName( - "base64EncodedDataWithOptions:", -); -late final _sel_base64EncodedStringWithOptions_ = objc.registerName( - "base64EncodedStringWithOptions:", -); -late final _sel_base64Encoding = objc.registerName("base64Encoding"); -late final _sel_beginActivityWithOptions_reason_ = objc.registerName( - "beginActivityWithOptions:reason:", -); -late final _sel_beginContentAccess = objc.registerName("beginContentAccess"); -late final _sel_beginEditing = objc.registerName("beginEditing"); -late final _sel_beginInterruption = objc.registerName("beginInterruption"); -late final _sel_beginRequestWithExtensionContext_ = objc.registerName( - "beginRequestWithExtensionContext:", -); -late final _sel_bluetoothMicrophoneExtension = objc.registerName( - "bluetoothMicrophoneExtension", -); -late final _sel_cString = objc.registerName("cString"); -late final _sel_cStringLength = objc.registerName("cStringLength"); -late final _sel_cache_willEvictObject_ = objc.registerName( - "cache:willEvictObject:", -); -late final _sel_calendarIdentifier = objc.registerName("calendarIdentifier"); -late final _sel_canInflectLanguage_ = objc.registerName("canInflectLanguage:"); -late final _sel_canInflectPreferredLocalization = objc.registerName( - "canInflectPreferredLocalization", -); -late final _sel_canInitWithTask_ = objc.registerName("canInitWithTask:"); -late final _sel_cancelAuthenticationChallenge_ = objc.registerName( - "cancelAuthenticationChallenge:", -); -late final _sel_cancelPerformSelector_target_argument_ = objc.registerName( - "cancelPerformSelector:target:argument:", -); -late final _sel_cancelPerformSelectorsWithTarget_ = objc.registerName( - "cancelPerformSelectorsWithTarget:", -); -late final _sel_cancelPreviousPerformRequestsWithTarget_ = objc.registerName( - "cancelPreviousPerformRequestsWithTarget:", -); -late final _sel_cancelPreviousPerformRequestsWithTarget_selector_object_ = objc - .registerName("cancelPreviousPerformRequestsWithTarget:selector:object:"); -late final _sel_canonicalLanguageIdentifierFromString_ = objc.registerName( - "canonicalLanguageIdentifierFromString:", -); -late final _sel_canonicalLocaleIdentifierFromString_ = objc.registerName( - "canonicalLocaleIdentifierFromString:", -); -late final _sel_certificates = objc.registerName("certificates"); -late final _sel_channelAssignments = objc.registerName("channelAssignments"); -late final _sel_characterDirectionForLanguage_ = objc.registerName( - "characterDirectionForLanguage:", -); -late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( - "checkPromisedItemIsReachableAndReturnError:", -); -late final _sel_checkResourceIsReachableAndReturnError_ = objc.registerName( - "checkResourceIsReachableAndReturnError:", -); -late final _sel_classCode = objc.registerName("classCode"); -late final _sel_classDescription = objc.registerName("classDescription"); -late final _sel_classFallbacksForKeyedArchiver = objc.registerName( - "classFallbacksForKeyedArchiver", -); -late final _sel_classForArchiver = objc.registerName("classForArchiver"); -late final _sel_classForCoder = objc.registerName("classForCoder"); -late final _sel_classForKeyedArchiver = objc.registerName( - "classForKeyedArchiver", -); -late final _sel_classForKeyedUnarchiver = objc.registerName( - "classForKeyedUnarchiver", -); -late final _sel_classForPortCoder = objc.registerName("classForPortCoder"); -late final _sel_className = objc.registerName("className"); -late final _sel_coerceValue_forKey_ = objc.registerName("coerceValue:forKey:"); -late final _sel_collationIdentifier = objc.registerName("collationIdentifier"); -late final _sel_collatorIdentifier = objc.registerName("collatorIdentifier"); -late final _sel_columnNumber = objc.registerName("columnNumber"); -late final _sel_commonISOCurrencyCodes = objc.registerName( - "commonISOCurrencyCodes", -); -late final _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_ = - objc.registerName( - "completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:", - ); -late final _sel_components = objc.registerName("components"); -late final _sel_componentsFromLocaleIdentifier_ = objc.registerName( - "componentsFromLocaleIdentifier:", -); -late final _sel_compressUsingAlgorithm_error_ = objc.registerName( - "compressUsingAlgorithm:error:", -); -late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( - "compressedDataUsingAlgorithm:error:", -); -late final _sel_configureAsServer = objc.registerName("configureAsServer"); -late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); -late final _sel_connectionDidFinishDownloading_destinationURL_ = objc - .registerName("connectionDidFinishDownloading:destinationURL:"); -late final _sel_connectionDidFinishLoading_ = objc.registerName( - "connectionDidFinishLoading:", -); -late final _sel_connectionDidResumeDownloading_totalBytesWritten_expectedTotalBytes_ = - objc.registerName( - "connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:", - ); -late final _sel_connectionShouldUseCredentialStorage_ = objc.registerName( - "connectionShouldUseCredentialStorage:", -); -late final _sel_connection_canAuthenticateAgainstProtectionSpace_ = objc - .registerName("connection:canAuthenticateAgainstProtectionSpace:"); -late final _sel_connection_didCancelAuthenticationChallenge_ = objc - .registerName("connection:didCancelAuthenticationChallenge:"); -late final _sel_connection_didFailWithError_ = objc.registerName( - "connection:didFailWithError:", -); -late final _sel_connection_didReceiveAuthenticationChallenge_ = objc - .registerName("connection:didReceiveAuthenticationChallenge:"); -late final _sel_connection_didReceiveData_ = objc.registerName( - "connection:didReceiveData:", -); -late final _sel_connection_didReceiveResponse_ = objc.registerName( - "connection:didReceiveResponse:", -); -late final _sel_connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite_ = - objc.registerName( - "connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:", - ); -late final _sel_connection_didWriteData_totalBytesWritten_expectedTotalBytes_ = - objc.registerName( - "connection:didWriteData:totalBytesWritten:expectedTotalBytes:", - ); -late final _sel_connection_handleRequest_ = objc.registerName( - "connection:handleRequest:", -); -late final _sel_connection_needNewBodyStream_ = objc.registerName( - "connection:needNewBodyStream:", -); -late final _sel_connection_shouldMakeNewConnection_ = objc.registerName( - "connection:shouldMakeNewConnection:", -); -late final _sel_connection_willCacheResponse_ = objc.registerName( - "connection:willCacheResponse:", -); -late final _sel_connection_willSendRequestForAuthenticationChallenge_ = objc - .registerName("connection:willSendRequestForAuthenticationChallenge:"); -late final _sel_connection_willSendRequest_redirectResponse_ = objc - .registerName("connection:willSendRequest:redirectResponse:"); -late final _sel_containsValueForKey_ = objc.registerName( - "containsValueForKey:", -); -late final _sel_continueWithoutCredentialForAuthenticationChallenge_ = objc - .registerName("continueWithoutCredentialForAuthenticationChallenge:"); -late final _sel_copyScriptingValue_forKey_withProperties_ = objc.registerName( - "copyScriptingValue:forKey:withProperties:", -); -late final _sel_correctionCheckingResultWithRange_replacementString_ = objc - .registerName("correctionCheckingResultWithRange:replacementString:"); -late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_ = - objc.registerName( - "correctionCheckingResultWithRange:replacementString:alternativeStrings:", - ); -late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( - "countByEnumeratingWithState:objects:count:", -); -late final _sel_countryCode = objc.registerName("countryCode"); -late final _sel_createConversationForConnection_ = objc.registerName( - "createConversationForConnection:", -); -late final _sel_credentialForTrust_ = objc.registerName("credentialForTrust:"); -late final _sel_credentialWithIdentity_certificates_persistence_ = objc - .registerName("credentialWithIdentity:certificates:persistence:"); -late final _sel_credentialWithUser_password_persistence_ = objc.registerName( - "credentialWithUser:password:persistence:", -); -late final _sel_currencyCode = objc.registerName("currencyCode"); -late final _sel_currencySymbol = objc.registerName("currencySymbol"); -late final _sel_currentDevice = objc.registerName("currentDevice"); -late final _sel_currentDirectoryPath = objc.registerName( - "currentDirectoryPath", -); -late final _sel_currentHardwareInputNumberOfChannels = objc.registerName( - "currentHardwareInputNumberOfChannels", -); -late final _sel_currentHardwareOutputNumberOfChannels = objc.registerName( - "currentHardwareOutputNumberOfChannels", -); -late final _sel_currentHardwareSampleRate = objc.registerName( - "currentHardwareSampleRate", -); -late final _sel_currentLocale = objc.registerName("currentLocale"); -late final _sel_currentRoute = objc.registerName("currentRoute"); -late final _sel_currentTime = objc.registerName("currentTime"); -late final _sel_customPronounForLanguage_ = objc.registerName( - "customPronounForLanguage:", -); -late final _sel_dashCheckingResultWithRange_replacementString_ = objc - .registerName("dashCheckingResultWithRange:replacementString:"); -late final _sel_data = objc.registerName("data"); -late final _sel_dataTaskWithRequest_completionHandler_ = objc.registerName( - "dataTaskWithRequest:completionHandler:", -); -late final _sel_dataTaskWithURL_completionHandler_ = objc.registerName( - "dataTaskWithURL:completionHandler:", -); -late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); -late final _sel_dataWithContentsOfMappedFile_ = objc.registerName( - "dataWithContentsOfMappedFile:", -); -late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); -late final _sel_date = objc.registerName("date"); -late final _sel_dateCheckingResultWithRange_date_ = objc.registerName( - "dateCheckingResultWithRange:date:", -); -late final _sel_dateCheckingResultWithRange_date_timeZone_duration_ = objc - .registerName("dateCheckingResultWithRange:date:timeZone:duration:"); -late final _sel_dateWithCalendarFormat_timeZone_ = objc.registerName( - "dateWithCalendarFormat:timeZone:", -); -late final _sel_dateWithNaturalLanguageString_ = objc.registerName( - "dateWithNaturalLanguageString:", -); -late final _sel_dateWithNaturalLanguageString_locale_ = objc.registerName( - "dateWithNaturalLanguageString:locale:", -); -late final _sel_dateWithString_ = objc.registerName("dateWithString:"); -late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( - "dateWithTimeIntervalSince1970:", -); -late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( - "dateWithTimeIntervalSinceNow:", -); -late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( - "dateWithTimeIntervalSinceReferenceDate:", -); -late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( - "dateWithTimeInterval:sinceDate:", -); -late final _sel_daylightSavingTimeOffset = objc.registerName( - "daylightSavingTimeOffset", -); -late final _sel_decimalSeparator = objc.registerName("decimalSeparator"); -late final _sel_decodeArrayOfObjCType_count_at_ = objc.registerName( - "decodeArrayOfObjCType:count:at:", -); -late final _sel_decodeArrayOfObjectsOfClass_forKey_ = objc.registerName( - "decodeArrayOfObjectsOfClass:forKey:", -); -late final _sel_decodeArrayOfObjectsOfClasses_forKey_ = objc.registerName( - "decodeArrayOfObjectsOfClasses:forKey:", -); -late final _sel_decodeBoolForKey_ = objc.registerName("decodeBoolForKey:"); -late final _sel_decodeBytesForKey_minimumLength_ = objc.registerName( - "decodeBytesForKey:minimumLength:", -); -late final _sel_decodeBytesForKey_returnedLength_ = objc.registerName( - "decodeBytesForKey:returnedLength:", -); -late final _sel_decodeBytesWithMinimumLength_ = objc.registerName( - "decodeBytesWithMinimumLength:", -); -late final _sel_decodeBytesWithReturnedLength_ = objc.registerName( - "decodeBytesWithReturnedLength:", -); -late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_ = objc - .registerName("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); -late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_ = - objc.registerName( - "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:", - ); -late final _sel_decodeDoubleForKey_ = objc.registerName("decodeDoubleForKey:"); -late final _sel_decodeFloatForKey_ = objc.registerName("decodeFloatForKey:"); -late final _sel_decodeInt32ForKey_ = objc.registerName("decodeInt32ForKey:"); -late final _sel_decodeInt64ForKey_ = objc.registerName("decodeInt64ForKey:"); -late final _sel_decodeIntForKey_ = objc.registerName("decodeIntForKey:"); -late final _sel_decodeIntegerForKey_ = objc.registerName( - "decodeIntegerForKey:", -); -late final _sel_decodeNXObject = objc.registerName("decodeNXObject"); -late final _sel_decodeObject = objc.registerName("decodeObject"); -late final _sel_decodeObjectForKey_ = objc.registerName("decodeObjectForKey:"); -late final _sel_decodeObjectOfClass_forKey_ = objc.registerName( - "decodeObjectOfClass:forKey:", -); -late final _sel_decodeObjectOfClasses_forKey_ = objc.registerName( - "decodeObjectOfClasses:forKey:", -); -late final _sel_decodePoint = objc.registerName("decodePoint"); -late final _sel_decodePointForKey_ = objc.registerName("decodePointForKey:"); -late final _sel_decodePropertyList = objc.registerName("decodePropertyList"); -late final _sel_decodePropertyListForKey_ = objc.registerName( - "decodePropertyListForKey:", -); -late final _sel_decodeRect = objc.registerName("decodeRect"); -late final _sel_decodeRectForKey_ = objc.registerName("decodeRectForKey:"); -late final _sel_decodeSize = objc.registerName("decodeSize"); -late final _sel_decodeSizeForKey_ = objc.registerName("decodeSizeForKey:"); -late final _sel_decodeTopLevelObjectAndReturnError_ = objc.registerName( - "decodeTopLevelObjectAndReturnError:", -); -late final _sel_decodeTopLevelObjectForKey_error_ = objc.registerName( - "decodeTopLevelObjectForKey:error:", -); -late final _sel_decodeTopLevelObjectOfClass_forKey_error_ = objc.registerName( - "decodeTopLevelObjectOfClass:forKey:error:", -); -late final _sel_decodeTopLevelObjectOfClasses_forKey_error_ = objc.registerName( - "decodeTopLevelObjectOfClasses:forKey:error:", -); -late final _sel_decodeValueOfObjCType_at_ = objc.registerName( - "decodeValueOfObjCType:at:", -); -late final _sel_decodeValuesOfObjCTypes_ = objc.registerName( - "decodeValuesOfObjCTypes:", -); -late final _sel_decodingFailurePolicy = objc.registerName( - "decodingFailurePolicy", -); -late final _sel_decompressUsingAlgorithm_error_ = objc.registerName( - "decompressUsingAlgorithm:error:", -); -late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( - "decompressedDataUsingAlgorithm:error:", -); -late final _sel_defaultTimeZone = objc.registerName("defaultTimeZone"); -late final _sel_delegate = objc.registerName("delegate"); -late final _sel_deleteCharactersInRange_ = objc.registerName( - "deleteCharactersInRange:", -); -late final _sel_description = objc.registerName("description"); -late final _sel_descriptionWithCalendarFormat_timeZone_locale_ = objc - .registerName("descriptionWithCalendarFormat:timeZone:locale:"); -late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); -late final _sel_dictionary = objc.registerName("dictionary"); -late final _sel_dictionaryWithCapacity_ = objc.registerName( - "dictionaryWithCapacity:", -); -late final _sel_dictionaryWithContentsOfFile_ = objc.registerName( - "dictionaryWithContentsOfFile:", -); -late final _sel_dictionaryWithContentsOfURL_ = objc.registerName( - "dictionaryWithContentsOfURL:", -); -late final _sel_dictionaryWithContentsOfURL_error_ = objc.registerName( - "dictionaryWithContentsOfURL:error:", -); -late final _sel_dictionaryWithDictionary_ = objc.registerName( - "dictionaryWithDictionary:", -); -late final _sel_dictionaryWithObject_forKey_ = objc.registerName( - "dictionaryWithObject:forKey:", -); -late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( - "dictionaryWithObjectsAndKeys:", -); -late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( - "dictionaryWithObjects:forKeys:", -); -late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( - "dictionaryWithObjects:forKeys:count:", -); -late final _sel_dictionaryWithSharedKeySet_ = objc.registerName( - "dictionaryWithSharedKeySet:", -); -late final _sel_dictionaryWithValuesForKeys_ = objc.registerName( - "dictionaryWithValuesForKeys:", -); -late final _sel_didChangeValueForKey_ = objc.registerName( - "didChangeValueForKey:", -); -late final _sel_didChangeValueForKey_withSetMutation_usingObjects_ = objc - .registerName("didChangeValueForKey:withSetMutation:usingObjects:"); -late final _sel_didChange_valuesAtIndexes_forKey_ = objc.registerName( - "didChange:valuesAtIndexes:forKey:", -); -late final _sel_differenceFromArray_ = objc.registerName( - "differenceFromArray:", -); -late final _sel_differenceFromArray_withOptions_ = objc.registerName( - "differenceFromArray:withOptions:", -); -late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_ = objc - .registerName("differenceFromArray:withOptions:usingEquivalenceTest:"); -late final _sel_differenceFromOrderedSet_ = objc.registerName( - "differenceFromOrderedSet:", -); -late final _sel_differenceFromOrderedSet_withOptions_ = objc.registerName( - "differenceFromOrderedSet:withOptions:", -); -late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_ = - objc.registerName( - "differenceFromOrderedSet:withOptions:usingEquivalenceTest:", - ); -late final _sel_discardContentIfPossible = objc.registerName( - "discardContentIfPossible", -); -late final _sel_distantFuture = objc.registerName("distantFuture"); -late final _sel_distantPast = objc.registerName("distantPast"); -late final _sel_distinguishedNames = objc.registerName("distinguishedNames"); -late final _sel_doesContain_ = objc.registerName("doesContain:"); -late final _sel_dominantLanguage = objc.registerName("dominantLanguage"); -late final _sel_dominantLanguageForScript_ = objc.registerName( - "dominantLanguageForScript:", -); -late final _sel_downloadDidBegin_ = objc.registerName("downloadDidBegin:"); -late final _sel_downloadDidFinish_ = objc.registerName("downloadDidFinish:"); -late final _sel_downloadShouldUseCredentialStorage_ = objc.registerName( - "downloadShouldUseCredentialStorage:", -); -late final _sel_downloadTaskWithRequest_completionHandler_ = objc.registerName( - "downloadTaskWithRequest:completionHandler:", -); -late final _sel_downloadTaskWithResumeData_completionHandler_ = objc - .registerName("downloadTaskWithResumeData:completionHandler:"); -late final _sel_downloadTaskWithURL_completionHandler_ = objc.registerName( - "downloadTaskWithURL:completionHandler:", -); -late final _sel_download_canAuthenticateAgainstProtectionSpace_ = objc - .registerName("download:canAuthenticateAgainstProtectionSpace:"); -late final _sel_download_decideDestinationWithSuggestedFilename_ = objc - .registerName("download:decideDestinationWithSuggestedFilename:"); -late final _sel_download_didCancelAuthenticationChallenge_ = objc.registerName( - "download:didCancelAuthenticationChallenge:", -); -late final _sel_download_didCreateDestination_ = objc.registerName( - "download:didCreateDestination:", -); -late final _sel_download_didFailWithError_ = objc.registerName( - "download:didFailWithError:", -); -late final _sel_download_didReceiveAuthenticationChallenge_ = objc.registerName( - "download:didReceiveAuthenticationChallenge:", -); -late final _sel_download_didReceiveDataOfLength_ = objc.registerName( - "download:didReceiveDataOfLength:", -); -late final _sel_download_didReceiveResponse_ = objc.registerName( - "download:didReceiveResponse:", -); -late final _sel_download_shouldDecodeSourceDataOfMIMEType_ = objc.registerName( - "download:shouldDecodeSourceDataOfMIMEType:", -); -late final _sel_download_willResumeWithResponse_fromByte_ = objc.registerName( - "download:willResumeWithResponse:fromByte:", -); -late final _sel_download_willSendRequest_redirectResponse_ = objc.registerName( - "download:willSendRequest:redirectResponse:", -); -late final _sel_duration = objc.registerName("duration"); -late final _sel_edgeInsetsValue = objc.registerName("edgeInsetsValue"); -late final _sel_enableRate = objc.registerName("enableRate"); -late final _sel_encodeArrayOfObjCType_count_at_ = objc.registerName( - "encodeArrayOfObjCType:count:at:", -); -late final _sel_encodeBool_forKey_ = objc.registerName("encodeBool:forKey:"); -late final _sel_encodeBycopyObject_ = objc.registerName("encodeBycopyObject:"); -late final _sel_encodeByrefObject_ = objc.registerName("encodeByrefObject:"); -late final _sel_encodeBytes_length_ = objc.registerName("encodeBytes:length:"); -late final _sel_encodeBytes_length_forKey_ = objc.registerName( - "encodeBytes:length:forKey:", -); -late final _sel_encodeConditionalObject_ = objc.registerName( - "encodeConditionalObject:", -); -late final _sel_encodeConditionalObject_forKey_ = objc.registerName( - "encodeConditionalObject:forKey:", -); -late final _sel_encodeDouble_forKey_ = objc.registerName( - "encodeDouble:forKey:", -); -late final _sel_encodeFloat_forKey_ = objc.registerName("encodeFloat:forKey:"); -late final _sel_encodeInt32_forKey_ = objc.registerName("encodeInt32:forKey:"); -late final _sel_encodeInt64_forKey_ = objc.registerName("encodeInt64:forKey:"); -late final _sel_encodeInt_forKey_ = objc.registerName("encodeInt:forKey:"); -late final _sel_encodeInteger_forKey_ = objc.registerName( - "encodeInteger:forKey:", -); -late final _sel_encodeNXObject_ = objc.registerName("encodeNXObject:"); -late final _sel_encodeObject_ = objc.registerName("encodeObject:"); -late final _sel_encodeObject_forKey_ = objc.registerName( - "encodeObject:forKey:", -); -late final _sel_encodePoint_ = objc.registerName("encodePoint:"); -late final _sel_encodePoint_forKey_ = objc.registerName("encodePoint:forKey:"); -late final _sel_encodePropertyList_ = objc.registerName("encodePropertyList:"); -late final _sel_encodeRect_ = objc.registerName("encodeRect:"); -late final _sel_encodeRect_forKey_ = objc.registerName("encodeRect:forKey:"); -late final _sel_encodeRootObject_ = objc.registerName("encodeRootObject:"); -late final _sel_encodeSize_ = objc.registerName("encodeSize:"); -late final _sel_encodeSize_forKey_ = objc.registerName("encodeSize:forKey:"); -late final _sel_encodeValuesOfObjCTypes_ = objc.registerName( - "encodeValuesOfObjCTypes:", -); -late final _sel_endActivity_ = objc.registerName("endActivity:"); -late final _sel_endContentAccess = objc.registerName("endContentAccess"); -late final _sel_endEditing = objc.registerName("endEditing"); -late final _sel_endInterruption = objc.registerName("endInterruption"); -late final _sel_endInterruptionWithFlags_ = objc.registerName( - "endInterruptionWithFlags:", -); -late final _sel_enumerateAttribute_inRange_options_usingBlock_ = objc - .registerName("enumerateAttribute:inRange:options:usingBlock:"); -late final _sel_enumerateAttributesInRange_options_usingBlock_ = objc - .registerName("enumerateAttributesInRange:options:usingBlock:"); -late final _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_ = - objc.registerName( - "enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:", - ); -late final _sel_enumerateMatchesInString_options_range_usingBlock_ = objc - .registerName("enumerateMatchesInString:options:range:usingBlock:"); -late final _sel_error = objc.registerName("error"); -late final _sel_escapedTemplateForString_ = objc.registerName( - "escapedTemplateForString:", -); -late final _sel_exceptionDuringOperation_error_leftOperand_rightOperand_ = objc - .registerName("exceptionDuringOperation:error:leftOperand:rightOperand:"); -late final _sel_exemplarCharacterSet = objc.registerName( - "exemplarCharacterSet", -); -late final _sel_failWithError_ = objc.registerName("failWithError:"); -late final _sel_fileCreationDate = objc.registerName("fileCreationDate"); -late final _sel_fileDescriptor = objc.registerName("fileDescriptor"); -late final _sel_fileExtensionHidden = objc.registerName("fileExtensionHidden"); -late final _sel_fileGroupOwnerAccountID = objc.registerName( - "fileGroupOwnerAccountID", -); -late final _sel_fileGroupOwnerAccountName = objc.registerName( - "fileGroupOwnerAccountName", -); -late final _sel_fileHFSCreatorCode = objc.registerName("fileHFSCreatorCode"); -late final _sel_fileHFSTypeCode = objc.registerName("fileHFSTypeCode"); -late final _sel_fileHandleWithNullDevice = objc.registerName( - "fileHandleWithNullDevice", -); -late final _sel_fileHandleWithStandardError = objc.registerName( - "fileHandleWithStandardError", -); -late final _sel_fileHandleWithStandardInput = objc.registerName( - "fileHandleWithStandardInput", -); -late final _sel_fileHandleWithStandardOutput = objc.registerName( - "fileHandleWithStandardOutput", -); -late final _sel_fileIsAppendOnly = objc.registerName("fileIsAppendOnly"); -late final _sel_fileIsImmutable = objc.registerName("fileIsImmutable"); -late final _sel_fileManager_shouldCopyItemAtPath_toPath_ = objc.registerName( - "fileManager:shouldCopyItemAtPath:toPath:", -); -late final _sel_fileManager_shouldCopyItemAtURL_toURL_ = objc.registerName( - "fileManager:shouldCopyItemAtURL:toURL:", -); -late final _sel_fileManager_shouldLinkItemAtPath_toPath_ = objc.registerName( - "fileManager:shouldLinkItemAtPath:toPath:", -); -late final _sel_fileManager_shouldLinkItemAtURL_toURL_ = objc.registerName( - "fileManager:shouldLinkItemAtURL:toURL:", -); -late final _sel_fileManager_shouldMoveItemAtPath_toPath_ = objc.registerName( - "fileManager:shouldMoveItemAtPath:toPath:", -); -late final _sel_fileManager_shouldMoveItemAtURL_toURL_ = objc.registerName( - "fileManager:shouldMoveItemAtURL:toURL:", -); -late final _sel_fileManager_shouldProceedAfterError_ = objc.registerName( - "fileManager:shouldProceedAfterError:", -); -late final _sel_fileManager_shouldProceedAfterError_copyingItemAtPath_toPath_ = - objc.registerName( - "fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:", - ); -late final _sel_fileManager_shouldProceedAfterError_copyingItemAtURL_toURL_ = - objc.registerName( - "fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:", - ); -late final _sel_fileManager_shouldProceedAfterError_linkingItemAtPath_toPath_ = - objc.registerName( - "fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:", - ); -late final _sel_fileManager_shouldProceedAfterError_linkingItemAtURL_toURL_ = - objc.registerName( - "fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:", - ); -late final _sel_fileManager_shouldProceedAfterError_movingItemAtPath_toPath_ = - objc.registerName( - "fileManager:shouldProceedAfterError:movingItemAtPath:toPath:", - ); -late final _sel_fileManager_shouldProceedAfterError_movingItemAtURL_toURL_ = - objc.registerName( - "fileManager:shouldProceedAfterError:movingItemAtURL:toURL:", - ); -late final _sel_fileManager_shouldProceedAfterError_removingItemAtPath_ = objc - .registerName("fileManager:shouldProceedAfterError:removingItemAtPath:"); -late final _sel_fileManager_shouldProceedAfterError_removingItemAtURL_ = objc - .registerName("fileManager:shouldProceedAfterError:removingItemAtURL:"); -late final _sel_fileManager_shouldRemoveItemAtPath_ = objc.registerName( - "fileManager:shouldRemoveItemAtPath:", -); -late final _sel_fileManager_shouldRemoveItemAtURL_ = objc.registerName( - "fileManager:shouldRemoveItemAtURL:", -); -late final _sel_fileManager_willProcessPath_ = objc.registerName( - "fileManager:willProcessPath:", -); -late final _sel_fileModificationDate = objc.registerName( - "fileModificationDate", -); -late final _sel_fileOwnerAccountID = objc.registerName("fileOwnerAccountID"); -late final _sel_fileOwnerAccountName = objc.registerName( - "fileOwnerAccountName", -); -late final _sel_filePosixPermissions = objc.registerName( - "filePosixPermissions", -); -late final _sel_fileSize = objc.registerName("fileSize"); -late final _sel_fileSystemFileNumber = objc.registerName( - "fileSystemFileNumber", -); -late final _sel_fileSystemNumber = objc.registerName("fileSystemNumber"); -late final _sel_fileSystemRepresentation = objc.registerName( - "fileSystemRepresentation", -); -late final _sel_fileType = objc.registerName("fileType"); -late final _sel_fileURLWithPathComponents_ = objc.registerName( - "fileURLWithPathComponents:", -); -late final _sel_filterUsingPredicate_ = objc.registerName( - "filterUsingPredicate:", -); -late final _sel_filteredArrayUsingPredicate_ = objc.registerName( - "filteredArrayUsingPredicate:", -); -late final _sel_filteredOrderedSetUsingPredicate_ = objc.registerName( - "filteredOrderedSetUsingPredicate:", -); -late final _sel_filteredSetUsingPredicate_ = objc.registerName( - "filteredSetUsingPredicate:", -); -late final _sel_firstMatchInString_options_range_ = objc.registerName( - "firstMatchInString:options:range:", -); -late final _sel_format = objc.registerName("format"); -late final _sel_fullUserName = objc.registerName("fullUserName"); -late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_ = objc - .registerName("getBoundStreamsWithBufferSize:inputStream:outputStream:"); -late final _sel_getBytes_ = objc.registerName("getBytes:"); -late final _sel_getCString_ = objc.registerName("getCString:"); -late final _sel_getCString_maxLength_ = objc.registerName( - "getCString:maxLength:", -); -late final _sel_getCString_maxLength_range_remainingRange_ = objc.registerName( - "getCString:maxLength:range:remainingRange:", -); -late final _sel_getCachedResponseForDataTask_completionHandler_ = objc - .registerName("getCachedResponseForDataTask:completionHandler:"); -late final _sel_getCharacters_ = objc.registerName("getCharacters:"); -late final _sel_getCookiesForTask_completionHandler_ = objc.registerName( - "getCookiesForTask:completionHandler:", -); -late final _sel_getCredentialsForProtectionSpace_task_completionHandler_ = objc - .registerName("getCredentialsForProtectionSpace:task:completionHandler:"); -late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_ = - objc.registerName( - "getDefaultCredentialForProtectionSpace:task:completionHandler:", - ); -late final _sel_getFileSystemRepresentation_maxLength_ = objc.registerName( - "getFileSystemRepresentation:maxLength:", -); -late final _sel_getIndexes_ = objc.registerName("getIndexes:"); -late final _sel_getObjects_ = objc.registerName("getObjects:"); -late final _sel_getObjects_andKeys_ = objc.registerName("getObjects:andKeys:"); -late final _sel_getPromisedItemResourceValue_forKey_error_ = objc.registerName( - "getPromisedItemResourceValue:forKey:error:", -); -late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_ = objc - .registerName("getStreamsToHostWithName:port:inputStream:outputStream:"); -late final _sel_getStreamsToHost_port_inputStream_outputStream_ = objc - .registerName("getStreamsToHost:port:inputStream:outputStream:"); -late final _sel_getValue_ = objc.registerName("getValue:"); -late final _sel_grammarCheckingResultWithRange_details_ = objc.registerName( - "grammarCheckingResultWithRange:details:", -); -late final _sel_grammarDetails = objc.registerName("grammarDetails"); -late final _sel_groupingSeparator = objc.registerName("groupingSeparator"); -late final _sel_handleMachMessage_ = objc.registerName("handleMachMessage:"); -late final _sel_handlePortMessage_ = objc.registerName("handlePortMessage:"); -late final _sel_handleQueryWithUnboundKey_ = objc.registerName( - "handleQueryWithUnboundKey:", -); -late final _sel_handleTakeValue_forUnboundKey_ = objc.registerName( - "handleTakeValue:forUnboundKey:", -); -late final _sel_hasPassword = objc.registerName("hasPassword"); -late final _sel_hasThousandSeparators = objc.registerName( - "hasThousandSeparators", -); -late final _sel_homeDirectoryForCurrentUser = objc.registerName( - "homeDirectoryForCurrentUser", -); -late final _sel_homeDirectoryForUser_ = objc.registerName( - "homeDirectoryForUser:", -); -late final _sel_identity = objc.registerName("identity"); -late final _sel_imageForProposedSize_scaleFactor_imageOffset_imageSize_ = objc - .registerName("imageForProposedSize:scaleFactor:imageOffset:imageSize:"); -late final _sel_indicesOfObjectsByEvaluatingObjectSpecifier_ = objc - .registerName("indicesOfObjectsByEvaluatingObjectSpecifier:"); -late final _sel_init = objc.registerName("init"); -late final _sel_initSymbolicLinkWithDestination_ = objc.registerName( - "initSymbolicLinkWithDestination:", -); -late final _sel_initToFileAtPath_append_ = objc.registerName( - "initToFileAtPath:append:", -); -late final _sel_initWithArray_ = objc.registerName("initWithArray:"); -late final _sel_initWithArray_copyItems_ = objc.registerName( - "initWithArray:copyItems:", -); -late final _sel_initWithArray_range_copyItems_ = objc.registerName( - "initWithArray:range:copyItems:", -); -late final _sel_initWithAttributedString_ = objc.registerName( - "initWithAttributedString:", -); -late final _sel_initWithBase64EncodedData_options_ = objc.registerName( - "initWithBase64EncodedData:options:", -); -late final _sel_initWithBase64EncodedString_options_ = objc.registerName( - "initWithBase64EncodedString:options:", -); -late final _sel_initWithBase64Encoding_ = objc.registerName( - "initWithBase64Encoding:", -); -late final _sel_initWithBundle_ = objc.registerName("initWithBundle:"); -late final _sel_initWithCStringNoCopy_length_freeWhenDone_ = objc.registerName( - "initWithCStringNoCopy:length:freeWhenDone:", -); -late final _sel_initWithCString_ = objc.registerName("initWithCString:"); -late final _sel_initWithCString_length_ = objc.registerName( - "initWithCString:length:", -); -late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); -late final _sel_initWithContentsOfFile_ = objc.registerName( - "initWithContentsOfFile:", -); -late final _sel_initWithContentsOfMappedFile_ = objc.registerName( - "initWithContentsOfMappedFile:", -); -late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_ = - objc.registerName( - "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:", - ); -late final _sel_initWithContentsOfURL_ = objc.registerName( - "initWithContentsOfURL:", -); -late final _sel_initWithContentsOfURL_error_ = objc.registerName( - "initWithContentsOfURL:error:", -); -late final _sel_initWithContentsOfURL_fileTypeHint_error_ = objc.registerName( - "initWithContentsOfURL:fileTypeHint:error:", -); -late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); -late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( - "initWithData:fileTypeHint:error:", -); -late final _sel_initWithDateFormat_allowNaturalLanguage_ = objc.registerName( - "initWithDateFormat:allowNaturalLanguage:", -); -late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); -late final _sel_initWithDictionary_copyItems_ = objc.registerName( - "initWithDictionary:copyItems:", -); -late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); -late final _sel_initWithFormat_options_locale_ = objc.registerName( - "initWithFormat:options:locale:", -); -late final _sel_initWithFormat_options_locale_context_ = objc.registerName( - "initWithFormat:options:locale:context:", -); -late final _sel_initWithLength_ = objc.registerName("initWithLength:"); -late final _sel_initWithMarkdownString_options_baseURL_error_ = objc - .registerName("initWithMarkdownString:options:baseURL:error:"); -late final _sel_initWithMarkdown_options_baseURL_error_ = objc.registerName( - "initWithMarkdown:options:baseURL:error:", -); -late final _sel_initWithObject_ = objc.registerName("initWithObject:"); -late final _sel_initWithObjectsAndKeys_ = objc.registerName( - "initWithObjectsAndKeys:", -); -late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); -late final _sel_initWithObjects_forKeys_ = objc.registerName( - "initWithObjects:forKeys:", -); -late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); -late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( - "initWithOrderedSet:copyItems:", -); -late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( - "initWithOrderedSet:range:copyItems:", -); -late final _sel_initWithPath_ = objc.registerName("initWithPath:"); -late final _sel_initWithSet_ = objc.registerName("initWithSet:"); -late final _sel_initWithSet_copyItems_ = objc.registerName( - "initWithSet:copyItems:", -); -late final _sel_initWithString_ = objc.registerName("initWithString:"); -late final _sel_initWithString_attributes_ = objc.registerName( - "initWithString:attributes:", -); -late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( - "initWithTimeIntervalSince1970:", -); -late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( - "initWithTimeIntervalSinceNow:", -); -late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( - "initWithTimeInterval:sinceDate:", -); -late final _sel_inputDataSource = objc.registerName("inputDataSource"); -late final _sel_inputDataSources = objc.registerName("inputDataSources"); -late final _sel_inputGain = objc.registerName("inputGain"); -late final _sel_inputIsAvailable = objc.registerName("inputIsAvailable"); -late final _sel_inputIsAvailableChanged_ = objc.registerName( - "inputIsAvailableChanged:", -); -late final _sel_inputLatency = objc.registerName("inputLatency"); -late final _sel_inputNumberOfChannels = objc.registerName( - "inputNumberOfChannels", -); -late final _sel_inputOrientation = objc.registerName("inputOrientation"); -late final _sel_inputStreamWithData_ = objc.registerName( - "inputStreamWithData:", -); -late final _sel_inputStreamWithFileAtPath_ = objc.registerName( - "inputStreamWithFileAtPath:", -); -late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); -late final _sel_insertAttributedString_atIndex_ = objc.registerName( - "insertAttributedString:atIndex:", -); -late final _sel_insertString_atIndex_ = objc.registerName( - "insertString:atIndex:", -); -late final _sel_insertValue_atIndex_inPropertyWithKey_ = objc.registerName( - "insertValue:atIndex:inPropertyWithKey:", -); -late final _sel_insertValue_inPropertyWithKey_ = objc.registerName( - "insertValue:inPropertyWithKey:", -); -late final _sel_intendedSpatialExperience = objc.registerName( - "intendedSpatialExperience", -); -late final _sel_inverseForRelationshipKey_ = objc.registerName( - "inverseForRelationshipKey:", -); -late final _sel_isAbsolutePath = objc.registerName("isAbsolutePath"); -late final _sel_isAtEnd = objc.registerName("isAtEnd"); -late final _sel_isCaseInsensitiveLike_ = objc.registerName( - "isCaseInsensitiveLike:", -); -late final _sel_isContentDiscarded = objc.registerName("isContentDiscarded"); -late final _sel_isDaylightSavingTime = objc.registerName( - "isDaylightSavingTime", -); -late final _sel_isEqualToAttributedString_ = objc.registerName( - "isEqualToAttributedString:", -); -late final _sel_isEqualToTimeZone_ = objc.registerName("isEqualToTimeZone:"); -late final _sel_isEqualToValue_ = objc.registerName("isEqualToValue:"); -late final _sel_isEqualTo_ = objc.registerName("isEqualTo:"); -late final _sel_isGreaterThanOrEqualTo_ = objc.registerName( - "isGreaterThanOrEqualTo:", -); -late final _sel_isGreaterThan_ = objc.registerName("isGreaterThan:"); -late final _sel_isInputAvailable = objc.registerName("isInputAvailable"); -late final _sel_isInputGainSettable = objc.registerName("isInputGainSettable"); -late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_isLessThanOrEqualTo_ = objc.registerName( - "isLessThanOrEqualTo:", -); -late final _sel_isLessThan_ = objc.registerName("isLessThan:"); -late final _sel_isLike_ = objc.registerName("isLike:"); -late final _sel_isLowPowerModeEnabled = objc.registerName( - "isLowPowerModeEnabled", -); -late final _sel_isMacCatalystApp = objc.registerName("isMacCatalystApp"); -late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); -late final _sel_isMicrophoneInjectionAvailable = objc.registerName( - "isMicrophoneInjectionAvailable", -); -late final _sel_isNotEqualTo_ = objc.registerName("isNotEqualTo:"); -late final _sel_isOtherAudioPlaying = objc.registerName("isOtherAudioPlaying"); -late final _sel_isPlaying = objc.registerName("isPlaying"); -late final _sel_isReadOnlyKey_ = objc.registerName("isReadOnlyKey:"); -late final _sel_isUnspecified = objc.registerName("isUnspecified"); -late final _sel_isiOSAppOnMac = objc.registerName("isiOSAppOnMac"); -late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = - objc.registerName( - "itemProviderVisibilityForRepresentationWithTypeIdentifier:", - ); -late final _sel_keyPathsForValuesAffectingValueForKey_ = objc.registerName( - "keyPathsForValuesAffectingValueForKey:", -); -late final _sel_knownTimeZoneNames = objc.registerName("knownTimeZoneNames"); -late final _sel_languageCode = objc.registerName("languageCode"); -late final _sel_languageIdentifier = objc.registerName("languageIdentifier"); -late final _sel_languagesForScript_ = objc.registerName("languagesForScript:"); -late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); -late final _sel_launch = objc.registerName("launch"); -late final _sel_launchPath = objc.registerName("launchPath"); -late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_ = - objc.registerName( - "launchedTaskWithExecutableURL:arguments:error:terminationHandler:", - ); -late final _sel_launchedTaskWithLaunchPath_arguments_ = objc.registerName( - "launchedTaskWithLaunchPath:arguments:", -); -late final _sel_length = objc.registerName("length"); -late final _sel_lineDirectionForLanguage_ = objc.registerName( - "lineDirectionForLanguage:", -); -late final _sel_lineNumber = objc.registerName("lineNumber"); -late final _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_ = - objc.registerName( - "linguisticTagsInRange:scheme:options:orthography:tokenRanges:", - ); -late final _sel_linkCheckingResultWithRange_URL_ = objc.registerName( - "linkCheckingResultWithRange:URL:", -); -late final _sel_listener_shouldAcceptNewConnection_ = objc.registerName( - "listener:shouldAcceptNewConnection:", -); -late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = - objc.registerName( - "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", - ); -late final _sel_loadPreviewImageWithOptions_completionHandler_ = objc - .registerName("loadPreviewImageWithOptions:completionHandler:"); -late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( - "loadResourceDataNotifyingClient:usingCache:", -); -late final _sel_localTimeZone = objc.registerName("localTimeZone"); -late final _sel_localeIdentifier = objc.registerName("localeIdentifier"); -late final _sel_localeIdentifierFromComponents_ = objc.registerName( - "localeIdentifierFromComponents:", -); -late final _sel_localeIdentifierFromWindowsLocaleCode_ = objc.registerName( - "localeIdentifierFromWindowsLocaleCode:", -); -late final _sel_localeWithLocaleIdentifier_ = objc.registerName( - "localeWithLocaleIdentifier:", -); -late final _sel_localizedAttributedStringWithFormat_ = objc.registerName( - "localizedAttributedStringWithFormat:", -); -late final _sel_localizedAttributedStringWithFormat_context_ = objc - .registerName("localizedAttributedStringWithFormat:context:"); -late final _sel_localizedAttributedStringWithFormat_options_ = objc - .registerName("localizedAttributedStringWithFormat:options:"); -late final _sel_localizedAttributedStringWithFormat_options_context_ = objc - .registerName("localizedAttributedStringWithFormat:options:context:"); -late final _sel_localizedName_locale_ = objc.registerName( - "localizedName:locale:", -); -late final _sel_localizedScannerWithString_ = objc.registerName( - "localizedScannerWithString:", -); -late final _sel_localizedStringForCalendarIdentifier_ = objc.registerName( - "localizedStringForCalendarIdentifier:", -); -late final _sel_localizedStringForCollationIdentifier_ = objc.registerName( - "localizedStringForCollationIdentifier:", -); -late final _sel_localizedStringForCollatorIdentifier_ = objc.registerName( - "localizedStringForCollatorIdentifier:", -); -late final _sel_localizedStringForCountryCode_ = objc.registerName( - "localizedStringForCountryCode:", -); -late final _sel_localizedStringForCurrencyCode_ = objc.registerName( - "localizedStringForCurrencyCode:", -); -late final _sel_localizedStringForLanguageCode_ = objc.registerName( - "localizedStringForLanguageCode:", -); -late final _sel_localizedStringForLocaleIdentifier_ = objc.registerName( - "localizedStringForLocaleIdentifier:", -); -late final _sel_localizedStringForScriptCode_ = objc.registerName( - "localizedStringForScriptCode:", -); -late final _sel_localizedStringForVariantCode_ = objc.registerName( - "localizedStringForVariantCode:", -); -late final _sel_localizesFormat = objc.registerName("localizesFormat"); -late final _sel_lock = objc.registerName("lock"); -late final _sel_lossyCString = objc.registerName("lossyCString"); -late final _sel_makeNewConnection_sender_ = objc.registerName( - "makeNewConnection:sender:", -); -late final _sel_matchesInString_options_range_ = objc.registerName( - "matchesInString:options:range:", -); -late final _sel_maximumInputNumberOfChannels = objc.registerName( - "maximumInputNumberOfChannels", -); -late final _sel_maximumOutputNumberOfChannels = objc.registerName( - "maximumOutputNumberOfChannels", -); -late final _sel_metadataQuery_replacementObjectForResultObject_ = objc - .registerName("metadataQuery:replacementObjectForResultObject:"); -late final _sel_metadataQuery_replacementValueForAttribute_value_ = objc - .registerName("metadataQuery:replacementValueForAttribute:value:"); -late final _sel_mutableArrayValueForKeyPath_ = objc.registerName( - "mutableArrayValueForKeyPath:", -); -late final _sel_mutableArrayValueForKey_ = objc.registerName( - "mutableArrayValueForKey:", -); -late final _sel_mutableOrderedSetValueForKeyPath_ = objc.registerName( - "mutableOrderedSetValueForKeyPath:", -); -late final _sel_mutableOrderedSetValueForKey_ = objc.registerName( - "mutableOrderedSetValueForKey:", -); -late final _sel_mutableSetValueForKeyPath_ = objc.registerName( - "mutableSetValueForKeyPath:", -); -late final _sel_mutableSetValueForKey_ = objc.registerName( - "mutableSetValueForKey:", -); -late final _sel_mutableString = objc.registerName("mutableString"); -late final _sel_needsToBeUpdatedFromPath_ = objc.registerName( - "needsToBeUpdatedFromPath:", -); -late final _sel_netServiceBrowserDidStopSearch_ = objc.registerName( - "netServiceBrowserDidStopSearch:", -); -late final _sel_netServiceBrowserWillSearch_ = objc.registerName( - "netServiceBrowserWillSearch:", -); -late final _sel_netServiceBrowser_didFindDomain_moreComing_ = objc.registerName( - "netServiceBrowser:didFindDomain:moreComing:", -); -late final _sel_netServiceBrowser_didFindService_moreComing_ = objc - .registerName("netServiceBrowser:didFindService:moreComing:"); -late final _sel_netServiceBrowser_didNotSearch_ = objc.registerName( - "netServiceBrowser:didNotSearch:", -); -late final _sel_netServiceBrowser_didRemoveDomain_moreComing_ = objc - .registerName("netServiceBrowser:didRemoveDomain:moreComing:"); -late final _sel_netServiceBrowser_didRemoveService_moreComing_ = objc - .registerName("netServiceBrowser:didRemoveService:moreComing:"); -late final _sel_netServiceDidPublish_ = objc.registerName( - "netServiceDidPublish:", -); -late final _sel_netServiceDidResolveAddress_ = objc.registerName( - "netServiceDidResolveAddress:", -); -late final _sel_netServiceDidStop_ = objc.registerName("netServiceDidStop:"); -late final _sel_netServiceWillPublish_ = objc.registerName( - "netServiceWillPublish:", -); -late final _sel_netServiceWillResolve_ = objc.registerName( - "netServiceWillResolve:", -); -late final _sel_netService_didAcceptConnectionWithInputStream_outputStream_ = - objc.registerName( - "netService:didAcceptConnectionWithInputStream:outputStream:", - ); -late final _sel_netService_didNotPublish_ = objc.registerName( - "netService:didNotPublish:", -); -late final _sel_netService_didNotResolve_ = objc.registerName( - "netService:didNotResolve:", -); -late final _sel_netService_didUpdateTXTRecordData_ = objc.registerName( - "netService:didUpdateTXTRecordData:", -); -late final _sel_new = objc.registerName("new"); -late final _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_ = - objc.registerName( - "newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:", - ); -late final _sel_nextDaylightSavingTimeTransition = objc.registerName( - "nextDaylightSavingTimeTransition", -); -late final _sel_nonretainedObjectValue = objc.registerName( - "nonretainedObjectValue", -); -late final _sel_notificationWithName_object_ = objc.registerName( - "notificationWithName:object:", -); -late final _sel_notificationWithName_object_userInfo_ = objc.registerName( - "notificationWithName:object:userInfo:", -); -late final _sel_now = objc.registerName("now"); -late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); -late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); -late final _sel_numberOfMatchesInString_options_range_ = objc.registerName( - "numberOfMatchesInString:options:range:", -); -late final _sel_numberOfRanges = objc.registerName("numberOfRanges"); -late final _sel_objectSpecifier = objc.registerName("objectSpecifier"); -late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc - .registerName("objectWithItemProviderData:typeIdentifier:error:"); -late final _sel_objectZone = objc.registerName("objectZone"); -late final _sel_observationInfo = objc.registerName("observationInfo"); -late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc - .registerName("observeValueForKeyPath:ofObject:change:context:"); -late final _sel_observedPresentedItemUbiquityAttributes = objc.registerName( - "observedPresentedItemUbiquityAttributes", -); -late final _sel_operationCount = objc.registerName("operationCount"); -late final _sel_operations = objc.registerName("operations"); -late final _sel_orderedSet = objc.registerName("orderedSet"); -late final _sel_orderedSetByApplyingDifference_ = objc.registerName( - "orderedSetByApplyingDifference:", -); -late final _sel_orderedSetWithArray_ = objc.registerName( - "orderedSetWithArray:", -); -late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( - "orderedSetWithArray:range:copyItems:", -); -late final _sel_orderedSetWithCapacity_ = objc.registerName( - "orderedSetWithCapacity:", -); -late final _sel_orderedSetWithObject_ = objc.registerName( - "orderedSetWithObject:", -); -late final _sel_orderedSetWithObjects_ = objc.registerName( - "orderedSetWithObjects:", -); -late final _sel_orderedSetWithObjects_count_ = objc.registerName( - "orderedSetWithObjects:count:", -); -late final _sel_orderedSetWithOrderedSet_ = objc.registerName( - "orderedSetWithOrderedSet:", -); -late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( - "orderedSetWithOrderedSet:range:copyItems:", -); -late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); -late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( - "orderedSetWithSet:copyItems:", -); -late final _sel_orthography = objc.registerName("orthography"); -late final _sel_orthographyCheckingResultWithRange_orthography_ = objc - .registerName("orthographyCheckingResultWithRange:orthography:"); -late final _sel_outputDataSource = objc.registerName("outputDataSource"); -late final _sel_outputDataSources = objc.registerName("outputDataSources"); -late final _sel_outputLatency = objc.registerName("outputLatency"); -late final _sel_outputNumberOfChannels = objc.registerName( - "outputNumberOfChannels", -); -late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( - "outputStreamToBuffer:capacity:", -); -late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( - "outputStreamToFileAtPath:append:", -); -late final _sel_outputStreamToMemory = objc.registerName( - "outputStreamToMemory", -); -late final _sel_outputStreamWithURL_append_ = objc.registerName( - "outputStreamWithURL:append:", -); -late final _sel_outputVolume = objc.registerName("outputVolume"); -late final _sel_pageFormat = objc.registerName("pageFormat"); -late final _sel_pan = objc.registerName("pan"); -late final _sel_panelKind = objc.registerName("panelKind"); -late final _sel_panelName = objc.registerName("panelName"); -late final _sel_panelView = objc.registerName("panelView"); -late final _sel_parserDidEndDocument_ = objc.registerName( - "parserDidEndDocument:", -); -late final _sel_parserDidStartDocument_ = objc.registerName( - "parserDidStartDocument:", -); -late final _sel_parser_didEndElement_namespaceURI_qualifiedName_ = objc - .registerName("parser:didEndElement:namespaceURI:qualifiedName:"); -late final _sel_parser_didEndMappingPrefix_ = objc.registerName( - "parser:didEndMappingPrefix:", -); -late final _sel_parser_didStartElement_namespaceURI_qualifiedName_attributes_ = - objc.registerName( - "parser:didStartElement:namespaceURI:qualifiedName:attributes:", - ); -late final _sel_parser_didStartMappingPrefix_toURI_ = objc.registerName( - "parser:didStartMappingPrefix:toURI:", -); -late final _sel_parser_foundAttributeDeclarationWithName_forElement_type_defaultValue_ = - objc.registerName( - "parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:", - ); -late final _sel_parser_foundCDATA_ = objc.registerName("parser:foundCDATA:"); -late final _sel_parser_foundCharacters_ = objc.registerName( - "parser:foundCharacters:", -); -late final _sel_parser_foundComment_ = objc.registerName( - "parser:foundComment:", -); -late final _sel_parser_foundElementDeclarationWithName_model_ = objc - .registerName("parser:foundElementDeclarationWithName:model:"); -late final _sel_parser_foundExternalEntityDeclarationWithName_publicID_systemID_ = - objc.registerName( - "parser:foundExternalEntityDeclarationWithName:publicID:systemID:", - ); -late final _sel_parser_foundIgnorableWhitespace_ = objc.registerName( - "parser:foundIgnorableWhitespace:", -); -late final _sel_parser_foundInternalEntityDeclarationWithName_value_ = objc - .registerName("parser:foundInternalEntityDeclarationWithName:value:"); -late final _sel_parser_foundNotationDeclarationWithName_publicID_systemID_ = - objc.registerName( - "parser:foundNotationDeclarationWithName:publicID:systemID:", - ); -late final _sel_parser_foundProcessingInstructionWithTarget_data_ = objc - .registerName("parser:foundProcessingInstructionWithTarget:data:"); -late final _sel_parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName_ = - objc.registerName( - "parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:", - ); -late final _sel_parser_parseErrorOccurred_ = objc.registerName( - "parser:parseErrorOccurred:", -); -late final _sel_parser_resolveExternalEntityName_systemID_ = objc.registerName( - "parser:resolveExternalEntityName:systemID:", -); -late final _sel_parser_validationErrorOccurred_ = objc.registerName( - "parser:validationErrorOccurred:", -); -late final _sel_password = objc.registerName("password"); -late final _sel_pathComponents = objc.registerName("pathComponents"); -late final _sel_pathExtension = objc.registerName("pathExtension"); -late final _sel_pathWithComponents_ = objc.registerName("pathWithComponents:"); -late final _sel_pathsMatchingExtensions_ = objc.registerName( - "pathsMatchingExtensions:", -); -late final _sel_pause = objc.registerName("pause"); -late final _sel_peakPowerForChannel_ = objc.registerName( - "peakPowerForChannel:", -); -late final _sel_performActivityWithOptions_reason_usingBlock_ = objc - .registerName("performActivityWithOptions:reason:usingBlock:"); -late final _sel_performBlock_ = objc.registerName("performBlock:"); -late final _sel_performDefaultHandlingForAuthenticationChallenge_ = objc - .registerName("performDefaultHandlingForAuthenticationChallenge:"); -late final _sel_performExpiringActivityWithReason_usingBlock_ = objc - .registerName("performExpiringActivityWithReason:usingBlock:"); -late final _sel_performInModes_block_ = objc.registerName( - "performInModes:block:", -); -late final _sel_performSelectorInBackground_withObject_ = objc.registerName( - "performSelectorInBackground:withObject:", -); -late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_ = objc - .registerName("performSelectorOnMainThread:withObject:waitUntilDone:"); -late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_ = - objc.registerName( - "performSelectorOnMainThread:withObject:waitUntilDone:modes:", - ); -late final _sel_performSelector_onThread_withObject_waitUntilDone_ = objc - .registerName("performSelector:onThread:withObject:waitUntilDone:"); -late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_ = objc - .registerName("performSelector:onThread:withObject:waitUntilDone:modes:"); -late final _sel_performSelector_target_argument_order_modes_ = objc - .registerName("performSelector:target:argument:order:modes:"); -late final _sel_performSelector_withObject_afterDelay_ = objc.registerName( - "performSelector:withObject:afterDelay:", -); -late final _sel_performSelector_withObject_afterDelay_inModes_ = objc - .registerName("performSelector:withObject:afterDelay:inModes:"); -late final _sel_phoneNumber = objc.registerName("phoneNumber"); -late final _sel_phoneNumberCheckingResultWithRange_phoneNumber_ = objc - .registerName("phoneNumberCheckingResultWithRange:phoneNumber:"); -late final _sel_play = objc.registerName("play"); -late final _sel_playAtTime_ = objc.registerName("playAtTime:"); -late final _sel_pointValue = objc.registerName("pointValue"); -late final _sel_pointerArrayWithStrongObjects = objc.registerName( - "pointerArrayWithStrongObjects", -); -late final _sel_pointerArrayWithWeakObjects = objc.registerName( - "pointerArrayWithWeakObjects", -); -late final _sel_pointerValue = objc.registerName("pointerValue"); -late final _sel_ppdFile = objc.registerName("ppdFile"); -late final _sel_preferredHardwareSampleRate = objc.registerName( - "preferredHardwareSampleRate", -); -late final _sel_preferredIOBufferDuration = objc.registerName( - "preferredIOBufferDuration", -); -late final _sel_preferredInputNumberOfChannels = objc.registerName( - "preferredInputNumberOfChannels", -); -late final _sel_preferredInputOrientation = objc.registerName( - "preferredInputOrientation", -); -late final _sel_preferredLanguages = objc.registerName("preferredLanguages"); -late final _sel_preferredMicrophoneInjectionMode = objc.registerName( - "preferredMicrophoneInjectionMode", -); -late final _sel_preferredOutputNumberOfChannels = objc.registerName( - "preferredOutputNumberOfChannels", -); -late final _sel_preferredSampleRate = objc.registerName("preferredSampleRate"); -late final _sel_prefersInterruptionOnRouteDisconnect = objc.registerName( - "prefersInterruptionOnRouteDisconnect", -); -late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); -late final _sel_presentedItemDidChange = objc.registerName( - "presentedItemDidChange", -); -late final _sel_presentedItemDidChangeUbiquityAttributes_ = objc.registerName( - "presentedItemDidChangeUbiquityAttributes:", -); -late final _sel_presentedItemDidGainVersion_ = objc.registerName( - "presentedItemDidGainVersion:", -); -late final _sel_presentedItemDidLoseVersion_ = objc.registerName( - "presentedItemDidLoseVersion:", -); -late final _sel_presentedItemDidMoveToURL_ = objc.registerName( - "presentedItemDidMoveToURL:", -); -late final _sel_presentedItemDidResolveConflictVersion_ = objc.registerName( - "presentedItemDidResolveConflictVersion:", -); -late final _sel_presentedItemOperationQueue = objc.registerName( - "presentedItemOperationQueue", -); -late final _sel_presentedItemURL = objc.registerName("presentedItemURL"); -late final _sel_presentedSubitemAtURL_didGainVersion_ = objc.registerName( - "presentedSubitemAtURL:didGainVersion:", -); -late final _sel_presentedSubitemAtURL_didLoseVersion_ = objc.registerName( - "presentedSubitemAtURL:didLoseVersion:", -); -late final _sel_presentedSubitemAtURL_didMoveToURL_ = objc.registerName( - "presentedSubitemAtURL:didMoveToURL:", -); -late final _sel_presentedSubitemAtURL_didResolveConflictVersion_ = objc - .registerName("presentedSubitemAtURL:didResolveConflictVersion:"); -late final _sel_presentedSubitemDidAppearAtURL_ = objc.registerName( - "presentedSubitemDidAppearAtURL:", -); -late final _sel_presentedSubitemDidChangeAtURL_ = objc.registerName( - "presentedSubitemDidChangeAtURL:", -); -late final _sel_preservationPriorityForTag_ = objc.registerName( - "preservationPriorityForTag:", -); -late final _sel_previewImageHandler = objc.registerName("previewImageHandler"); -late final _sel_primaryPresentedItemURL = objc.registerName( - "primaryPresentedItemURL", -); -late final _sel_printSession = objc.registerName("printSession"); -late final _sel_printSettings = objc.registerName("printSettings"); -late final _sel_printWindowWillClose_ = objc.registerName( - "printWindowWillClose:", -); -late final _sel_progress = objc.registerName("progress"); -late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( - "promisedItemResourceValuesForKeys:error:", -); -late final _sel_promptStyle = objc.registerName("promptStyle"); -late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); -late final _sel_propertyList = objc.registerName("propertyList"); -late final _sel_propertyListFromStringsFileFormat = objc.registerName( - "propertyListFromStringsFileFormat", -); -late final _sel_publicID = objc.registerName("publicID"); -late final _sel_quotationBeginDelimiter = objc.registerName( - "quotationBeginDelimiter", -); -late final _sel_quotationEndDelimiter = objc.registerName( - "quotationEndDelimiter", -); -late final _sel_quoteCheckingResultWithRange_replacementString_ = objc - .registerName("quoteCheckingResultWithRange:replacementString:"); -late final _sel_raise_format_ = objc.registerName("raise:format:"); -late final _sel_rangeAtIndex_ = objc.registerName("rangeAtIndex:"); -late final _sel_rangeOfFirstMatchInString_options_range_ = objc.registerName( - "rangeOfFirstMatchInString:options:range:", -); -late final _sel_rangeValue = objc.registerName("rangeValue"); -late final _sel_rangeWithName_ = objc.registerName("rangeWithName:"); -late final _sel_rate = objc.registerName("rate"); -late final _sel_readInBackgroundAndNotify = objc.registerName( - "readInBackgroundAndNotify", -); -late final _sel_readInBackgroundAndNotifyForModes_ = objc.registerName( - "readInBackgroundAndNotifyForModes:", -); -late final _sel_readToEndOfFileInBackgroundAndNotify = objc.registerName( - "readToEndOfFileInBackgroundAndNotify", -); -late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_ = objc - .registerName("readToEndOfFileInBackgroundAndNotifyForModes:"); -late final _sel_readabilityHandler = objc.registerName("readabilityHandler"); -late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( - "readableTypeIdentifiersForItemProvider", -); -late final _sel_rectValue = objc.registerName("rectValue"); -late final _sel_regionCode = objc.registerName("regionCode"); -late final _sel_regularExpression = objc.registerName("regularExpression"); -late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_ = - objc.registerName( - "regularExpressionCheckingResultWithRanges:count:regularExpression:", - ); -late final _sel_rejectProtectionSpaceAndContinueWithChallenge_ = objc - .registerName("rejectProtectionSpaceAndContinueWithChallenge:"); -late final _sel_relinquishPresentedItemToReader_ = objc.registerName( - "relinquishPresentedItemToReader:", -); -late final _sel_relinquishPresentedItemToWriter_ = objc.registerName( - "relinquishPresentedItemToWriter:", -); -late final _sel_remoteObjectProxy = objc.registerName("remoteObjectProxy"); -late final _sel_remoteObjectProxyWithErrorHandler_ = objc.registerName( - "remoteObjectProxyWithErrorHandler:", -); -late final _sel_removeAttribute_range_ = objc.registerName( - "removeAttribute:range:", -); -late final _sel_removeCachedResponseForDataTask_ = objc.registerName( - "removeCachedResponseForDataTask:", -); -late final _sel_removeCredential_forProtectionSpace_options_task_ = objc - .registerName("removeCredential:forProtectionSpace:options:task:"); -late final _sel_removeObserver_forKeyPath_ = objc.registerName( - "removeObserver:forKeyPath:", -); -late final _sel_removeObserver_forKeyPath_context_ = objc.registerName( - "removeObserver:forKeyPath:context:", -); -late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_ = objc - .registerName("removeObserver:fromObjectsAtIndexes:forKeyPath:"); -late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_ = objc - .registerName("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"); -late final _sel_removeValueAtIndex_fromPropertyWithKey_ = objc.registerName( - "removeValueAtIndex:fromPropertyWithKey:", -); -late final _sel_replaceCharactersInRange_withAttributedString_ = objc - .registerName("replaceCharactersInRange:withAttributedString:"); -late final _sel_replaceMatchesInString_options_range_withTemplate_ = objc - .registerName("replaceMatchesInString:options:range:withTemplate:"); -late final _sel_replaceOccurrencesOfString_withString_options_range_ = objc - .registerName("replaceOccurrencesOfString:withString:options:range:"); -late final _sel_replaceValueAtIndex_inPropertyWithKey_withValue_ = objc - .registerName("replaceValueAtIndex:inPropertyWithKey:withValue:"); -late final _sel_replacementCheckingResultWithRange_replacementString_ = objc - .registerName("replacementCheckingResultWithRange:replacementString:"); -late final _sel_replacementObjectForArchiver_ = objc.registerName( - "replacementObjectForArchiver:", -); -late final _sel_replacementObjectForCoder_ = objc.registerName( - "replacementObjectForCoder:", -); -late final _sel_replacementObjectForKeyedArchiver_ = objc.registerName( - "replacementObjectForKeyedArchiver:", -); -late final _sel_replacementObjectForPortCoder_ = objc.registerName( - "replacementObjectForPortCoder:", -); -late final _sel_replacementString = objc.registerName("replacementString"); -late final _sel_replacementStringForResult_inString_offset_template_ = objc - .registerName("replacementStringForResult:inString:offset:template:"); -late final _sel_requiresSecureCoding = objc.registerName( - "requiresSecureCoding", -); -late final _sel_resetSystemTimeZone = objc.registerName("resetSystemTimeZone"); -late final _sel_resourceDataUsingCache_ = objc.registerName( - "resourceDataUsingCache:", -); -late final _sel_restoreValuesAndReturnError_ = objc.registerName( - "restoreValuesAndReturnError:", -); -late final _sel_resultByAdjustingRangesWithOffset_ = objc.registerName( - "resultByAdjustingRangesWithOffset:", -); -late final _sel_roundingBehavior = objc.registerName("roundingBehavior"); -late final _sel_roundingMode = objc.registerName("roundingMode"); -late final _sel_run = objc.registerName("run"); -late final _sel_runMode_beforeDate_ = objc.registerName("runMode:beforeDate:"); -late final _sel_runUntilDate_ = objc.registerName("runUntilDate:"); -late final _sel_sampleRate = objc.registerName("sampleRate"); -late final _sel_savePresentedItemChangesWithCompletionHandler_ = objc - .registerName("savePresentedItemChangesWithCompletionHandler:"); -late final _sel_saveValuesAndReturnError_ = objc.registerName( - "saveValuesAndReturnError:", -); -late final _sel_scale = objc.registerName("scale"); -late final _sel_scanCharactersFromSet_intoString_ = objc.registerName( - "scanCharactersFromSet:intoString:", -); -late final _sel_scanDecimal_ = objc.registerName("scanDecimal:"); -late final _sel_scanDouble_ = objc.registerName("scanDouble:"); -late final _sel_scanFloat_ = objc.registerName("scanFloat:"); -late final _sel_scanHexDouble_ = objc.registerName("scanHexDouble:"); -late final _sel_scanHexFloat_ = objc.registerName("scanHexFloat:"); -late final _sel_scanHexInt_ = objc.registerName("scanHexInt:"); -late final _sel_scanHexLongLong_ = objc.registerName("scanHexLongLong:"); -late final _sel_scanInt_ = objc.registerName("scanInt:"); -late final _sel_scanInteger_ = objc.registerName("scanInteger:"); -late final _sel_scanLongLong_ = objc.registerName("scanLongLong:"); -late final _sel_scanString_intoString_ = objc.registerName( - "scanString:intoString:", -); -late final _sel_scanUnsignedLongLong_ = objc.registerName( - "scanUnsignedLongLong:", -); -late final _sel_scanUpToCharactersFromSet_intoString_ = objc.registerName( - "scanUpToCharactersFromSet:intoString:", -); -late final _sel_scanUpToString_intoString_ = objc.registerName( - "scanUpToString:intoString:", -); -late final _sel_scriptCode = objc.registerName("scriptCode"); -late final _sel_scriptingBeginsWith_ = objc.registerName( - "scriptingBeginsWith:", -); -late final _sel_scriptingContains_ = objc.registerName("scriptingContains:"); -late final _sel_scriptingEndsWith_ = objc.registerName("scriptingEndsWith:"); -late final _sel_scriptingIsEqualTo_ = objc.registerName("scriptingIsEqualTo:"); -late final _sel_scriptingIsGreaterThanOrEqualTo_ = objc.registerName( - "scriptingIsGreaterThanOrEqualTo:", -); -late final _sel_scriptingIsGreaterThan_ = objc.registerName( - "scriptingIsGreaterThan:", -); -late final _sel_scriptingIsLessThanOrEqualTo_ = objc.registerName( - "scriptingIsLessThanOrEqualTo:", -); -late final _sel_scriptingIsLessThan_ = objc.registerName( - "scriptingIsLessThan:", -); -late final _sel_scriptingProperties = objc.registerName("scriptingProperties"); -late final _sel_scriptingValueForSpecifier_ = objc.registerName( - "scriptingValueForSpecifier:", -); -late final _sel_secondaryAudioShouldBeSilencedHint = objc.registerName( - "secondaryAudioShouldBeSilencedHint", -); -late final _sel_secondsFromGMT = objc.registerName("secondsFromGMT"); -late final _sel_sendAsynchronousRequest_queue_completionHandler_ = objc - .registerName("sendAsynchronousRequest:queue:completionHandler:"); -late final _sel_sendSynchronousRequest_returningResponse_error_ = objc - .registerName("sendSynchronousRequest:returningResponse:error:"); -late final _sel_serverTrust = objc.registerName("serverTrust"); -late final _sel_set = objc.registerName("set"); -late final _sel_setAbbreviationDictionary_ = objc.registerName( - "setAbbreviationDictionary:", -); -late final _sel_setActive_error_ = objc.registerName("setActive:error:"); -late final _sel_setActive_withFlags_error_ = objc.registerName( - "setActive:withFlags:error:", -); -late final _sel_setActive_withOptions_error_ = objc.registerName( - "setActive:withOptions:error:", -); -late final _sel_setAggregatedIOPreference_error_ = objc.registerName( - "setAggregatedIOPreference:error:", -); -late final _sel_setAllHTTPHeaderFields_ = objc.registerName( - "setAllHTTPHeaderFields:", -); -late final _sel_setAttributedStringForNil_ = objc.registerName( - "setAttributedStringForNil:", -); -late final _sel_setAttributedStringForNotANumber_ = objc.registerName( - "setAttributedStringForNotANumber:", -); -late final _sel_setAttributedStringForZero_ = objc.registerName( - "setAttributedStringForZero:", -); -late final _sel_setAttributedString_ = objc.registerName( - "setAttributedString:", -); -late final _sel_setAttributesAsDictionary_ = objc.registerName( - "setAttributesAsDictionary:", -); -late final _sel_setChannelAssignments_ = objc.registerName( - "setChannelAssignments:", -); -late final _sel_setCredential_forProtectionSpace_task_ = objc.registerName( - "setCredential:forProtectionSpace:task:", -); -late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); -late final _sel_setCurrentDirectoryPath_ = objc.registerName( - "setCurrentDirectoryPath:", -); -late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); -late final _sel_setCustomPronoun_forLanguage_error_ = objc.registerName( - "setCustomPronoun:forLanguage:error:", -); -late final _sel_setDefaultCredential_forProtectionSpace_task_ = objc - .registerName("setDefaultCredential:forProtectionSpace:task:"); -late final _sel_setDefaultTimeZone_ = objc.registerName("setDefaultTimeZone:"); -late final _sel_setDelegate_ = objc.registerName("setDelegate:"); -late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); -late final _sel_setFormat_ = objc.registerName("setFormat:"); -late final _sel_setHTTPBodyStream_ = objc.registerName("setHTTPBodyStream:"); -late final _sel_setHTTPBody_ = objc.registerName("setHTTPBody:"); -late final _sel_setHTTPMethod_ = objc.registerName("setHTTPMethod:"); -late final _sel_setHTTPShouldHandleCookies_ = objc.registerName( - "setHTTPShouldHandleCookies:", -); -late final _sel_setHTTPShouldUsePipelining_ = objc.registerName( - "setHTTPShouldUsePipelining:", -); -late final _sel_setHasThousandSeparators_ = objc.registerName( - "setHasThousandSeparators:", -); -late final _sel_setInputDataSource_error_ = objc.registerName( - "setInputDataSource:error:", -); -late final _sel_setInputGain_error_ = objc.registerName("setInputGain:error:"); -late final _sel_setIntendedSpatialExperience_ = objc.registerName( - "setIntendedSpatialExperience:", -); -late final _sel_setKeys_triggerChangeNotificationsForDependentKey_ = objc - .registerName("setKeys:triggerChangeNotificationsForDependentKey:"); -late final _sel_setLaunchPath_ = objc.registerName("setLaunchPath:"); -late final _sel_setLocalizesFormat_ = objc.registerName("setLocalizesFormat:"); -late final _sel_setMeteringEnabled_ = objc.registerName("setMeteringEnabled:"); -late final _sel_setNilValueForKey_ = objc.registerName("setNilValueForKey:"); -late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); -late final _sel_setObjectZone_ = objc.registerName("setObjectZone:"); -late final _sel_setObservationInfo_ = objc.registerName("setObservationInfo:"); -late final _sel_setOutputDataSource_error_ = objc.registerName( - "setOutputDataSource:error:", -); -late final _sel_setPan_ = objc.registerName("setPan:"); -late final _sel_setPreferredHardwareSampleRate_error_ = objc.registerName( - "setPreferredHardwareSampleRate:error:", -); -late final _sel_setPreferredIOBufferDuration_error_ = objc.registerName( - "setPreferredIOBufferDuration:error:", -); -late final _sel_setPreferredInputNumberOfChannels_error_ = objc.registerName( - "setPreferredInputNumberOfChannels:error:", -); -late final _sel_setPreferredInputOrientation_error_ = objc.registerName( - "setPreferredInputOrientation:error:", -); -late final _sel_setPreferredMicrophoneInjectionMode_error_ = objc.registerName( - "setPreferredMicrophoneInjectionMode:error:", -); -late final _sel_setPreferredOutputNumberOfChannels_error_ = objc.registerName( - "setPreferredOutputNumberOfChannels:error:", -); -late final _sel_setPreferredSampleRate_error_ = objc.registerName( - "setPreferredSampleRate:error:", -); -late final _sel_setPrefersInterruptionOnRouteDisconnect_error_ = objc - .registerName("setPrefersInterruptionOnRouteDisconnect:error:"); -late final _sel_setPreservationPriority_forTags_ = objc.registerName( - "setPreservationPriority:forTags:", -); -late final _sel_setPreviewImageHandler_ = objc.registerName( - "setPreviewImageHandler:", -); -late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); -late final _sel_setRate_ = objc.registerName("setRate:"); -late final _sel_setReadabilityHandler_ = objc.registerName( - "setReadabilityHandler:", -); -late final _sel_setResourceData_ = objc.registerName("setResourceData:"); -late final _sel_setRoundingBehavior_ = objc.registerName( - "setRoundingBehavior:", -); -late final _sel_setScriptingProperties_ = objc.registerName( - "setScriptingProperties:", -); -late final _sel_setSharedObservers_ = objc.registerName("setSharedObservers:"); -late final _sel_setString_ = objc.registerName("setString:"); -late final _sel_setSupportsMultichannelContent_error_ = objc.registerName( - "setSupportsMultichannelContent:error:", -); -late final _sel_setThousandSeparator_ = objc.registerName( - "setThousandSeparator:", -); -late final _sel_setValue_forHTTPHeaderField_ = objc.registerName( - "setValue:forHTTPHeaderField:", -); -late final _sel_setValue_forKeyPath_ = objc.registerName( - "setValue:forKeyPath:", -); -late final _sel_setValue_forKey_ = objc.registerName("setValue:forKey:"); -late final _sel_setValue_forUndefinedKey_ = objc.registerName( - "setValue:forUndefinedKey:", -); -late final _sel_setValuesForKeysWithDictionary_ = objc.registerName( - "setValuesForKeysWithDictionary:", -); -late final _sel_setVersion_ = objc.registerName("setVersion:"); -late final _sel_setVolume_ = objc.registerName("setVolume:"); -late final _sel_setVolume_fadeDuration_ = objc.registerName( - "setVolume:fadeDuration:", -); -late final _sel_setWithArray_ = objc.registerName("setWithArray:"); -late final _sel_setWithCapacity_ = objc.registerName("setWithCapacity:"); -late final _sel_setWithObject_ = objc.registerName("setWithObject:"); -late final _sel_setWithObjects_ = objc.registerName("setWithObjects:"); -late final _sel_setWithObjects_count_ = objc.registerName( - "setWithObjects:count:", -); -late final _sel_setWithSet_ = objc.registerName("setWithSet:"); -late final _sel_setWriteabilityHandler_ = objc.registerName( - "setWriteabilityHandler:", -); -late final _sel_settings = objc.registerName("settings"); -late final _sel_sharedKeySetForKeys_ = objc.registerName( - "sharedKeySetForKeys:", -); -late final _sel_shouldHide = objc.registerName("shouldHide"); -late final _sel_shouldPrint = objc.registerName("shouldPrint"); -late final _sel_shouldShowHelp = objc.registerName("shouldShowHelp"); -late final _sel_sizeValue = objc.registerName("sizeValue"); -late final _sel_sortUsingDescriptors_ = objc.registerName( - "sortUsingDescriptors:", -); -late final _sel_sortedArrayUsingDescriptors_ = objc.registerName( - "sortedArrayUsingDescriptors:", -); -late final _sel_spellCheckingResultWithRange_ = objc.registerName( - "spellCheckingResultWithRange:", -); -late final _sel_spellServer_checkGrammarInString_language_details_ = objc - .registerName("spellServer:checkGrammarInString:language:details:"); -late final _sel_spellServer_checkString_offset_types_options_orthography_wordCount_ = - objc.registerName( - "spellServer:checkString:offset:types:options:orthography:wordCount:", - ); -late final _sel_spellServer_didForgetWord_inLanguage_ = objc.registerName( - "spellServer:didForgetWord:inLanguage:", -); -late final _sel_spellServer_didLearnWord_inLanguage_ = objc.registerName( - "spellServer:didLearnWord:inLanguage:", -); -late final _sel_spellServer_findMisspelledWordInString_language_wordCount_countOnly_ = - objc.registerName( - "spellServer:findMisspelledWordInString:language:wordCount:countOnly:", - ); -late final _sel_spellServer_recordResponse_toCorrection_forWord_language_ = objc - .registerName("spellServer:recordResponse:toCorrection:forWord:language:"); -late final _sel_spellServer_suggestCompletionsForPartialWordRange_inString_language_ = - objc.registerName( - "spellServer:suggestCompletionsForPartialWordRange:inString:language:", - ); -late final _sel_spellServer_suggestGuessesForWord_inLanguage_ = objc - .registerName("spellServer:suggestGuessesForWord:inLanguage:"); -late final _sel_stop = objc.registerName("stop"); -late final _sel_storeCachedResponse_forDataTask_ = objc.registerName( - "storeCachedResponse:forDataTask:", -); -late final _sel_storeCookies_forTask_ = objc.registerName( - "storeCookies:forTask:", -); -late final _sel_storedValueForKey_ = objc.registerName("storedValueForKey:"); -late final _sel_stringByAbbreviatingWithTildeInPath = objc.registerName( - "stringByAbbreviatingWithTildeInPath", -); -late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_ = objc - .registerName("stringByAddingPercentEncodingWithAllowedCharacters:"); -late final _sel_stringByAddingPercentEscapesUsingEncoding_ = objc.registerName( - "stringByAddingPercentEscapesUsingEncoding:", -); -late final _sel_stringByAppendingPathComponent_ = objc.registerName( - "stringByAppendingPathComponent:", -); -late final _sel_stringByAppendingPathExtension_ = objc.registerName( - "stringByAppendingPathExtension:", -); -late final _sel_stringByDeletingLastPathComponent = objc.registerName( - "stringByDeletingLastPathComponent", -); -late final _sel_stringByDeletingPathExtension = objc.registerName( - "stringByDeletingPathExtension", -); -late final _sel_stringByExpandingTildeInPath = objc.registerName( - "stringByExpandingTildeInPath", -); -late final _sel_stringByRemovingPercentEncoding = objc.registerName( - "stringByRemovingPercentEncoding", -); -late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_ = - objc.registerName( - "stringByReplacingMatchesInString:options:range:withTemplate:", - ); -late final _sel_stringByReplacingPercentEscapesUsingEncoding_ = objc - .registerName("stringByReplacingPercentEscapesUsingEncoding:"); -late final _sel_stringByResolvingSymlinksInPath = objc.registerName( - "stringByResolvingSymlinksInPath", -); -late final _sel_stringByStandardizingPath = objc.registerName( - "stringByStandardizingPath", -); -late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_ = - objc.registerName( - "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:", - ); -late final _sel_stringWithCString_ = objc.registerName("stringWithCString:"); -late final _sel_stringWithCString_length_ = objc.registerName( - "stringWithCString:length:", -); -late final _sel_stringWithCapacity_ = objc.registerName("stringWithCapacity:"); -late final _sel_stringWithContentsOfFile_ = objc.registerName( - "stringWithContentsOfFile:", -); -late final _sel_stringWithContentsOfURL_ = objc.registerName( - "stringWithContentsOfURL:", -); -late final _sel_stringsByAppendingPaths_ = objc.registerName( - "stringsByAppendingPaths:", -); -late final _sel_strongObjectsPointerArray = objc.registerName( - "strongObjectsPointerArray", -); -late final _sel_summaryInfo = objc.registerName("summaryInfo"); -late final _sel_supportedOutputChannelLayouts = objc.registerName( - "supportedOutputChannelLayouts", -); -late final _sel_supportedPPDOptionKeys = objc.registerName( - "supportedPPDOptionKeys", -); -late final _sel_supportsMultichannelContent = objc.registerName( - "supportsMultichannelContent", -); -late final _sel_symbolicLinkDestination = objc.registerName( - "symbolicLinkDestination", -); -late final _sel_synchronousRemoteObjectProxyWithErrorHandler_ = objc - .registerName("synchronousRemoteObjectProxyWithErrorHandler:"); -late final _sel_systemID = objc.registerName("systemID"); -late final _sel_systemLocale = objc.registerName("systemLocale"); -late final _sel_systemTimeZone = objc.registerName("systemTimeZone"); -late final _sel_systemVersion = objc.registerName("systemVersion"); -late final _sel_takeStoredValue_forKey_ = objc.registerName( - "takeStoredValue:forKey:", -); -late final _sel_takeValue_forKeyPath_ = objc.registerName( - "takeValue:forKeyPath:", -); -late final _sel_takeValue_forKey_ = objc.registerName("takeValue:forKey:"); -late final _sel_takeValuesFromDictionary_ = objc.registerName( - "takeValuesFromDictionary:", -); -late final _sel_task = objc.registerName("task"); -late final _sel_temporaryDirectory = objc.registerName("temporaryDirectory"); -late final _sel_thermalState = objc.registerName("thermalState"); -late final _sel_thousandSeparator = objc.registerName("thousandSeparator"); -late final _sel_timeZone = objc.registerName("timeZone"); -late final _sel_timeZoneDataVersion = objc.registerName("timeZoneDataVersion"); -late final _sel_toManyRelationshipKeys = objc.registerName( - "toManyRelationshipKeys", -); -late final _sel_toOneRelationshipKeys = objc.registerName( - "toOneRelationshipKeys", -); -late final _sel_transitInformationCheckingResultWithRange_components_ = objc - .registerName("transitInformationCheckingResultWithRange:components:"); -late final _sel_unableToSetNilForKey_ = objc.registerName( - "unableToSetNilForKey:", -); -late final _sel_unarchiverDidFinish_ = objc.registerName( - "unarchiverDidFinish:", -); -late final _sel_unarchiverWillFinish_ = objc.registerName( - "unarchiverWillFinish:", -); -late final _sel_unarchiver_cannotDecodeObjectOfClassName_originalClasses_ = objc - .registerName("unarchiver:cannotDecodeObjectOfClassName:originalClasses:"); -late final _sel_unarchiver_didDecodeObject_ = objc.registerName( - "unarchiver:didDecodeObject:", -); -late final _sel_unarchiver_willReplaceObject_withObject_ = objc.registerName( - "unarchiver:willReplaceObject:withObject:", -); -late final _sel_unlock = objc.registerName("unlock"); -late final _sel_updateFromPath_ = objc.registerName("updateFromPath:"); -late final _sel_updateMeters = objc.registerName("updateMeters"); -late final _sel_uploadTaskWithRequest_fromData_completionHandler_ = objc - .registerName("uploadTaskWithRequest:fromData:completionHandler:"); -late final _sel_uploadTaskWithRequest_fromFile_completionHandler_ = objc - .registerName("uploadTaskWithRequest:fromFile:completionHandler:"); -late final _sel_uploadTaskWithResumeData_completionHandler_ = objc.registerName( - "uploadTaskWithResumeData:completionHandler:", -); -late final _sel_url = objc.registerName("url"); -late final _sel_useCredential_forAuthenticationChallenge_ = objc.registerName( - "useCredential:forAuthenticationChallenge:", -); -late final _sel_useStoredAccessor = objc.registerName("useStoredAccessor"); -late final _sel_user = objc.registerName("user"); -late final _sel_userActivityWasContinued_ = objc.registerName( - "userActivityWasContinued:", -); -late final _sel_userActivityWillSave_ = objc.registerName( - "userActivityWillSave:", -); -late final _sel_userActivity_didReceiveInputStream_outputStream_ = objc - .registerName("userActivity:didReceiveInputStream:outputStream:"); -late final _sel_userMorphology = objc.registerName("userMorphology"); -late final _sel_userName = objc.registerName("userName"); -late final _sel_userNotificationCenter_didActivateNotification_ = objc - .registerName("userNotificationCenter:didActivateNotification:"); -late final _sel_userNotificationCenter_didDeliverNotification_ = objc - .registerName("userNotificationCenter:didDeliverNotification:"); -late final _sel_userNotificationCenter_shouldPresentNotification_ = objc - .registerName("userNotificationCenter:shouldPresentNotification:"); -late final _sel_usesMetricSystem = objc.registerName("usesMetricSystem"); -late final _sel_validateValue_forKeyPath_error_ = objc.registerName( - "validateValue:forKeyPath:error:", -); -late final _sel_validateValue_forKey_error_ = objc.registerName( - "validateValue:forKey:error:", -); -late final _sel_valueAtIndex_inPropertyWithKey_ = objc.registerName( - "valueAtIndex:inPropertyWithKey:", -); -late final _sel_valueForHTTPHeaderField_ = objc.registerName( - "valueForHTTPHeaderField:", -); -late final _sel_valueForKeyPath_ = objc.registerName("valueForKeyPath:"); -late final _sel_valueForKey_ = objc.registerName("valueForKey:"); -late final _sel_valueForUndefinedKey_ = objc.registerName( - "valueForUndefinedKey:", -); -late final _sel_valueWithBytes_objCType_ = objc.registerName( - "valueWithBytes:objCType:", -); -late final _sel_valueWithEdgeInsets_ = objc.registerName( - "valueWithEdgeInsets:", -); -late final _sel_valueWithName_inPropertyWithKey_ = objc.registerName( - "valueWithName:inPropertyWithKey:", -); -late final _sel_valueWithNonretainedObject_ = objc.registerName( - "valueWithNonretainedObject:", -); -late final _sel_valueWithPoint_ = objc.registerName("valueWithPoint:"); -late final _sel_valueWithPointer_ = objc.registerName("valueWithPointer:"); -late final _sel_valueWithRange_ = objc.registerName("valueWithRange:"); -late final _sel_valueWithRect_ = objc.registerName("valueWithRect:"); -late final _sel_valueWithSize_ = objc.registerName("valueWithSize:"); -late final _sel_valueWithUniqueID_inPropertyWithKey_ = objc.registerName( - "valueWithUniqueID:inPropertyWithKey:", -); -late final _sel_value_withObjCType_ = objc.registerName("value:withObjCType:"); -late final _sel_valuesForKeys_ = objc.registerName("valuesForKeys:"); -late final _sel_variantCode = objc.registerName("variantCode"); -late final _sel_variantFittingPresentationWidth_ = objc.registerName( - "variantFittingPresentationWidth:", -); -late final _sel_version = objc.registerName("version"); -late final _sel_volume = objc.registerName("volume"); -late final _sel_waitForDataInBackgroundAndNotify = objc.registerName( - "waitForDataInBackgroundAndNotify", -); -late final _sel_waitForDataInBackgroundAndNotifyForModes_ = objc.registerName( - "waitForDataInBackgroundAndNotifyForModes:", -); -late final _sel_waitUntilExit = objc.registerName("waitUntilExit"); -late final _sel_weakObjectsPointerArray = objc.registerName( - "weakObjectsPointerArray", -); -late final _sel_willChangePPDOptionKeyValue_ppdChoice_ = objc.registerName( - "willChangePPDOptionKeyValue:ppdChoice:", -); -late final _sel_willChangeValueForKey_ = objc.registerName( - "willChangeValueForKey:", -); -late final _sel_willChangeValueForKey_withSetMutation_usingObjects_ = objc - .registerName("willChangeValueForKey:withSetMutation:usingObjects:"); -late final _sel_willChange_valuesAtIndexes_forKey_ = objc.registerName( - "willChange:valuesAtIndexes:forKey:", -); -late final _sel_willShow = objc.registerName("willShow"); -late final _sel_windowsLocaleCodeFromLocaleIdentifier_ = objc.registerName( - "windowsLocaleCodeFromLocaleIdentifier:", -); -late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( - "writableTypeIdentifiersForItemProvider", -); -late final _sel_writeToFile_atomically_ = objc.registerName( - "writeToFile:atomically:", -); -late final _sel_writeToFile_atomically_updateFilenames_ = objc.registerName( - "writeToFile:atomically:updateFilenames:", -); -late final _sel_writeToURL_atomically_ = objc.registerName( - "writeToURL:atomically:", -); -late final _sel_writeabilityHandler = objc.registerName("writeabilityHandler"); - -final class _xlocale extends ffi.Opaque {} - -final class _xpc_bool_s extends ffi.Opaque {} - -final class _xpc_dictionary_s extends ffi.Opaque {} - -final class _xpc_type_s extends ffi.Opaque {} - -const int abbrevDate = 2; - -const int abortErr = -27; - -final class accessx_descriptor extends ffi.Struct { - @ffi.UnsignedInt() - external int ad_name_offset; - - @ffi.Int() - external int ad_flags; - - @ffi.Array.multi([2]) - external ffi.Array ad_pad; -} - -enum acl_entry_id_t { - ACL_FIRST_ENTRY(0), - ACL_NEXT_ENTRY(-1), - ACL_LAST_ENTRY(-2); - - final int value; - const acl_entry_id_t(this.value); - - static acl_entry_id_t fromValue(int value) => switch (value) { - 0 => ACL_FIRST_ENTRY, - -1 => ACL_NEXT_ENTRY, - -2 => ACL_LAST_ENTRY, - _ => throw ArgumentError('Unknown value for acl_entry_id_t: $value'), - }; -} - -typedef acl_entry_t = ffi.Pointer<_acl_entry>; - -enum acl_flag_t { - ACL_FLAG_DEFER_INHERIT(1), - ACL_FLAG_NO_INHERIT(131072), - ACL_ENTRY_INHERITED(16), - ACL_ENTRY_FILE_INHERIT(32), - ACL_ENTRY_DIRECTORY_INHERIT(64), - ACL_ENTRY_LIMIT_INHERIT(128), - ACL_ENTRY_ONLY_INHERIT(256); - - final int value; - const acl_flag_t(this.value); - - static acl_flag_t fromValue(int value) => switch (value) { - 1 => ACL_FLAG_DEFER_INHERIT, - 131072 => ACL_FLAG_NO_INHERIT, - 16 => ACL_ENTRY_INHERITED, - 32 => ACL_ENTRY_FILE_INHERIT, - 64 => ACL_ENTRY_DIRECTORY_INHERIT, - 128 => ACL_ENTRY_LIMIT_INHERIT, - 256 => ACL_ENTRY_ONLY_INHERIT, - _ => throw ArgumentError('Unknown value for acl_flag_t: $value'), - }; -} - -typedef acl_flagset_t = ffi.Pointer<_acl_flagset>; - -enum acl_perm_t { - ACL_READ_DATA(2), - ACL_WRITE_DATA(4), - ACL_EXECUTE(8), - ACL_DELETE(16), - ACL_APPEND_DATA(32), - ACL_DELETE_CHILD(64), - ACL_READ_ATTRIBUTES(128), - ACL_WRITE_ATTRIBUTES(256), - ACL_READ_EXTATTRIBUTES(512), - ACL_WRITE_EXTATTRIBUTES(1024), - ACL_READ_SECURITY(2048), - ACL_WRITE_SECURITY(4096), - ACL_CHANGE_OWNER(8192), - ACL_SYNCHRONIZE(1048576); - - static const ACL_LIST_DIRECTORY = ACL_READ_DATA; - static const ACL_ADD_FILE = ACL_WRITE_DATA; - static const ACL_SEARCH = ACL_EXECUTE; - static const ACL_ADD_SUBDIRECTORY = ACL_APPEND_DATA; - - final int value; - const acl_perm_t(this.value); - - static acl_perm_t fromValue(int value) => switch (value) { - 2 => ACL_READ_DATA, - 4 => ACL_WRITE_DATA, - 8 => ACL_EXECUTE, - 16 => ACL_DELETE, - 32 => ACL_APPEND_DATA, - 64 => ACL_DELETE_CHILD, - 128 => ACL_READ_ATTRIBUTES, - 256 => ACL_WRITE_ATTRIBUTES, - 512 => ACL_READ_EXTATTRIBUTES, - 1024 => ACL_WRITE_EXTATTRIBUTES, - 2048 => ACL_READ_SECURITY, - 4096 => ACL_WRITE_SECURITY, - 8192 => ACL_CHANGE_OWNER, - 1048576 => ACL_SYNCHRONIZE, - _ => throw ArgumentError('Unknown value for acl_perm_t: $value'), - }; - - @override - String toString() { - if (this == ACL_READ_DATA) - return "acl_perm_t.ACL_READ_DATA, acl_perm_t.ACL_LIST_DIRECTORY"; - if (this == ACL_WRITE_DATA) - return "acl_perm_t.ACL_WRITE_DATA, acl_perm_t.ACL_ADD_FILE"; - if (this == ACL_EXECUTE) - return "acl_perm_t.ACL_EXECUTE, acl_perm_t.ACL_SEARCH"; - if (this == ACL_APPEND_DATA) - return "acl_perm_t.ACL_APPEND_DATA, acl_perm_t.ACL_ADD_SUBDIRECTORY"; - return super.toString(); - } -} - -typedef acl_permset_mask_t = u_int64_t; -typedef acl_permset_t = ffi.Pointer<_acl_permset>; -typedef acl_t = ffi.Pointer<_acl>; - -enum acl_tag_t { - ACL_UNDEFINED_TAG(0), - ACL_EXTENDED_ALLOW(1), - ACL_EXTENDED_DENY(2); - - final int value; - const acl_tag_t(this.value); - - static acl_tag_t fromValue(int value) => switch (value) { - 0 => ACL_UNDEFINED_TAG, - 1 => ACL_EXTENDED_ALLOW, - 2 => ACL_EXTENDED_DENY, - _ => throw ArgumentError('Unknown value for acl_tag_t: $value'), - }; -} - -enum acl_type_t { - ACL_TYPE_EXTENDED(256), - ACL_TYPE_ACCESS(0), - ACL_TYPE_DEFAULT(1), - ACL_TYPE_AFS(2), - ACL_TYPE_CODA(3), - ACL_TYPE_NTFS(4), - ACL_TYPE_NWFS(5); - - final int value; - const acl_type_t(this.value); - - static acl_type_t fromValue(int value) => switch (value) { - 256 => ACL_TYPE_EXTENDED, - 0 => ACL_TYPE_ACCESS, - 1 => ACL_TYPE_DEFAULT, - 2 => ACL_TYPE_AFS, - 3 => ACL_TYPE_CODA, - 4 => ACL_TYPE_NTFS, - 5 => ACL_TYPE_NWFS, - _ => throw ArgumentError('Unknown value for acl_type_t: $value'), - }; -} - -const int activDev = 5; - -@Deprecated('Deprecated') -const int acuteUprA = 231; - -@Deprecated('Deprecated') -const int acuteUprI = 234; - -@Deprecated('Deprecated') -const int acuteUprO = 238; - -@Deprecated('Deprecated') -const int acuteUprU = 242; - -const int addRefFailed = -195; - -const int addResFailed = -194; - -typedef addr64_t = ffi.Uint64; -typedef Dartaddr64_t = int; - -final class addrinfo extends ffi.Struct { - @ffi.Int() - external int ai_flags; - - @ffi.Int() - external int ai_family; - - @ffi.Int() - external int ai_socktype; - - @ffi.Int() - external int ai_protocol; - - @socklen_t() - external int ai_addrlen; - - external ffi.Pointer ai_canonname; - - external ffi.Pointer ai_addr; - - external ffi.Pointer ai_next; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ai_flags, - required int ai_family, - required int ai_socktype, - required int ai_protocol, - required int ai_addrlen, - required ffi.Pointer ai_canonname, - required ffi.Pointer ai_addr, - required ffi.Pointer ai_next, - }) => $allocator() - ..ref.ai_flags = ai_flags - ..ref.ai_family = ai_family - ..ref.ai_socktype = ai_socktype - ..ref.ai_protocol = ai_protocol - ..ref.ai_addrlen = ai_addrlen - ..ref.ai_canonname = ai_canonname - ..ref.ai_addr = ai_addr - ..ref.ai_next = ai_next; -} - -const int aeBuildSyntaxBadData = 12; - -const int aeBuildSyntaxBadDesc = 11; - -const int aeBuildSyntaxBadEOF = 2; - -const int aeBuildSyntaxBadHex = 6; - -const int aeBuildSyntaxBadNegative = 4; - -const int aeBuildSyntaxBadToken = 1; - -const int aeBuildSyntaxCoercedList = 18; - -const int aeBuildSyntaxMissingQuote = 5; - -const int aeBuildSyntaxNoCloseBrace = 15; - -const int aeBuildSyntaxNoCloseBracket = 14; - -const int aeBuildSyntaxNoCloseHex = 8; - -const int aeBuildSyntaxNoCloseParen = 13; - -const int aeBuildSyntaxNoCloseString = 10; - -const int aeBuildSyntaxNoColon = 17; - -const int aeBuildSyntaxNoEOF = 3; - -const int aeBuildSyntaxNoErr = 0; - -const int aeBuildSyntaxNoKey = 16; - -const int aeBuildSyntaxOddHex = 7; - -const int aeBuildSyntaxUncoercedDoubleAt = 19; - -const int aeBuildSyntaxUncoercedHex = 9; - -const int afpAccessDenied = -5000; - -const int afpAlreadyLoggedInErr = -5047; - -const int afpAlreadyMounted = -5062; - -const int afpAuthContinue = -5001; - -const int afpBadDirIDType = -5060; - -const int afpBadIDErr = -5039; - -const int afpBadUAM = -5002; - -const int afpBadVersNum = -5003; - -const int afpBitmapErr = -5004; - -const int afpCallNotAllowed = -5048; - -const int afpCallNotSupported = -5024; - -const int afpCantMountMoreSrvre = -5061; - -const int afpCantMove = -5005; - -const int afpCantRename = -5028; - -const int afpCatalogChanged = -5037; - -const int afpContainsSharedErr = -5033; - -const int afpDenyConflict = -5006; - -const int afpDiffVolErr = -5036; - -const int afpDirNotEmpty = -5007; - -const int afpDirNotFound = -5029; - -const int afpDiskFull = -5008; - -const int afpEofError = -5009; - -const int afpFileBusy = -5010; - -const int afpFlatVol = -5011; - -const int afpIDExists = -5035; - -const int afpIDNotFound = -5034; - -const int afpIconTypeError = -5030; - -const int afpInsideSharedErr = -5043; - -const int afpInsideTrashErr = -5044; - -const int afpItemNotFound = -5012; - -const int afpLockErr = -5013; - -const int afpMiscErr = -5014; - -const int afpNoMoreLocks = -5015; - -const int afpNoServer = -5016; - -const int afpObjectExists = -5017; - -const int afpObjectLocked = -5032; - -const int afpObjectNotFound = -5018; - -const int afpObjectTypeErr = -5025; - -const int afpParmErr = -5019; - -const int afpPwdExpiredErr = -5042; - -const int afpPwdNeedsChangeErr = -5045; - -const int afpPwdPolicyErr = -5046; - -const int afpPwdSameErr = -5040; - -const int afpPwdTooShortErr = -5041; - -const int afpRangeNotLocked = -5020; - -const int afpRangeOverlap = -5021; - -const int afpSameNodeErr = -5063; - -const int afpSameObjectErr = -5038; - -const int afpServerGoingDown = -5027; - -const int afpSessClosed = -5022; - -const int afpTooManyFilesOpen = -5026; - -const int afpUserNotAuth = -5023; - -const int afpVolLocked = -5031; - -typedef alarm_port_t = alarm_t; -typedef alarm_t = mach_port_t; -typedef alarm_type_t = ffi.Int; -typedef Dartalarm_type_t = int; - -const int alphaStage = 64; - -const int appIsDaemon = -606; - -const int appMemFullErr = -605; - -const int appModeErr = -602; - -const int appVersionTooOld = -876; - -@Deprecated('Deprecated') -const int appleLogo = 240; - -const int appleMenuFolderIconResource = -3982; - -typedef arcade_register_t = mach_port_t; -typedef arm_debug_state32_t = __darwin_arm_debug_state32; -typedef arm_debug_state64_t = __darwin_arm_debug_state64; -typedef arm_debug_state_t = __arm_legacy_debug_state; -typedef arm_exception_state32_t = __darwin_arm_exception_state; -typedef arm_exception_state64_t = __darwin_arm_exception_state64; -typedef arm_exception_state64_v2_t = __darwin_arm_exception_state64_v2; -typedef arm_exception_state_t = __darwin_arm_exception_state; -typedef arm_neon_state32_t = __darwin_arm_neon_state; -typedef arm_neon_state64_t = __darwin_arm_neon_state64; -typedef arm_neon_state_t = __darwin_arm_neon_state; -typedef arm_pagein_state_t = __arm_pagein_state; -typedef arm_sme2_state_t = __darwin_arm_sme2_state; -typedef arm_sme_state_t = __darwin_arm_sme_state; -typedef arm_sme_za_state_t = __darwin_arm_sme_za_state; - -final class arm_state_hdr extends ffi.Struct { - @ffi.Uint32() - external int flavor; - - @ffi.Uint32() - external int count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flavor, - required int count, - }) => $allocator() - ..ref.flavor = flavor - ..ref.count = count; -} - -typedef arm_state_hdr_t = arm_state_hdr; -typedef arm_sve_p_state_t = __darwin_arm_sve_p_state; -typedef arm_sve_z_state_t = __darwin_arm_sve_z_state; -typedef arm_thread_state32_t = __darwin_arm_thread_state; -typedef arm_thread_state64_t = __darwin_arm_thread_state64; -typedef arm_thread_state_t = __darwin_arm_thread_state; - -final class arm_unified_thread_state extends ffi.Struct { - external arm_state_hdr_t ash; - - external UnnamedUnion$15 uts; -} - -typedef arm_unified_thread_state_t = arm_unified_thread_state; -typedef arm_vfp_state_t = __darwin_arm_vfp_state; -@Deprecated('Deprecated') -const int asiAliasName = 0; - -@Deprecated('Deprecated') -const int asiParentName = 1; - -@Deprecated('Deprecated') -const int asiServerName = -2; - -@Deprecated('Deprecated') -const int asiVolumeName = -1; - -@Deprecated('Deprecated') -const int asiZoneName = -3; - -const int aspBadVersNum = -1066; - -const int aspBufTooSmall = -1067; - -const int aspNoAck = -1075; - -const int aspNoMoreSess = -1068; - -const int aspNoServers = -1069; - -const int aspParamErr = -1070; - -const int aspServerBusy = -1071; - -const int aspSessClosed = -1072; - -const int aspSizeErr = -1073; - -const int aspTooMany = -1074; - -const int atAbsoluteCenter = 5; - -const int atBottom = 3; - -const int atBottomLeft = 11; - -const int atBottomRight = 15; - -const int atCenterBottom = 7; - -const int atCenterLeft = 9; - -const int atCenterRight = 13; - -const int atCenterTop = 6; - -const int atHorizontalCenter = 4; - -const int atLeft = 8; - -const int atNone = 0; - -const int atRight = 12; - -const int atTop = 2; - -const int atTopLeft = 10; - -const int atTopRight = 14; - -const int atVerticalCenter = 1; - -const int atomIndexInvalidErr = -2104; - -const int atomsNotOfSameTypeErr = -2103; - -const int atpBadRsp = -3107; - -const int atpLenErr = -3106; - -typedef au_asflgs_t = u_int64_t; -typedef au_asid_t = pid_t; -typedef au_class_t = u_int32_t; -typedef au_ctlmode_t = ffi.UnsignedChar; -typedef Dartau_ctlmode_t = int; -typedef au_emod_t = u_int16_t; - -final class au_evclass_map extends ffi.Struct { - @au_event_t() - external int ec_number; - - @au_class_t() - external int ec_class; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ec_number, - required int ec_class, - }) => $allocator() - ..ref.ec_number = ec_number - ..ref.ec_class = ec_class; -} - -typedef au_evclass_map_t = au_evclass_map; -typedef au_event_t = u_int16_t; - -final class au_expire_after extends ffi.Struct { - @time_t() - external int age; - - @ffi.Size() - external int size; - - @ffi.UnsignedChar() - external int op_type; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int age, - required int size, - required int op_type, - }) => $allocator() - ..ref.age = age - ..ref.size = size - ..ref.op_type = op_type; -} - -typedef au_expire_after_t = au_expire_after; -typedef au_fstat_t = audit_fstat; -typedef au_id_t = uid_t; - -final class au_mask extends ffi.Struct { - @ffi.UnsignedInt() - external int am_success; - - @ffi.UnsignedInt() - external int am_failure; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int am_success, - required int am_failure, - }) => $allocator() - ..ref.am_success = am_success - ..ref.am_failure = am_failure; -} - -typedef au_mask_t = au_mask; - -final class au_qctrl extends ffi.Struct { - @ffi.Int() - external int aq_hiwater; - - @ffi.Int() - external int aq_lowater; - - @ffi.Int() - external int aq_bufsz; - - @ffi.Int() - external int aq_delay; - - @ffi.Int() - external int aq_minfree; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int aq_hiwater, - required int aq_lowater, - required int aq_bufsz, - required int aq_delay, - required int aq_minfree, - }) => $allocator() - ..ref.aq_hiwater = aq_hiwater - ..ref.aq_lowater = aq_lowater - ..ref.aq_bufsz = aq_bufsz - ..ref.aq_delay = aq_delay - ..ref.aq_minfree = aq_minfree; -} - -typedef au_qctrl_t = au_qctrl; - -final class au_session extends ffi.Struct { - external ffi.Pointer as_aia_p; - - external au_mask_t as_mask; -} - -typedef au_session_t = au_session; -typedef au_stat_t = audit_stat; - -final class au_tid extends ffi.Struct { - @dev_t() - external int port; - - @u_int32_t() - external int machine; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int port, - required int machine, - }) => $allocator() - ..ref.port = port - ..ref.machine = machine; -} - -final class au_tid_addr extends ffi.Struct { - @dev_t() - external int at_port; - - @u_int32_t() - external int at_type; - - @ffi.Array.multi([4]) - external ffi.Array at_addr; -} - -typedef au_tid_addr_t = au_tid_addr; -typedef au_tid_t = au_tid; - -final class au_token extends ffi.Opaque {} - -final class audit_fstat extends ffi.Struct { - @u_int64_t() - external int af_filesz; - - @u_int64_t() - external int af_currsz; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int af_filesz, - required int af_currsz, - }) => $allocator() - ..ref.af_filesz = af_filesz - ..ref.af_currsz = af_currsz; -} - -enum audit_session_flags { - AU_SESSION_FLAG_IS_INITIAL(1), - AU_SESSION_FLAG_HAS_GRAPHIC_ACCESS(16), - AU_SESSION_FLAG_HAS_TTY(32), - AU_SESSION_FLAG_IS_REMOTE(4096), - AU_SESSION_FLAG_HAS_CONSOLE_ACCESS(8192), - AU_SESSION_FLAG_HAS_AUTHENTICATED(16384); - - final int value; - const audit_session_flags(this.value); - - static audit_session_flags fromValue(int value) => switch (value) { - 1 => AU_SESSION_FLAG_IS_INITIAL, - 16 => AU_SESSION_FLAG_HAS_GRAPHIC_ACCESS, - 32 => AU_SESSION_FLAG_HAS_TTY, - 4096 => AU_SESSION_FLAG_IS_REMOTE, - 8192 => AU_SESSION_FLAG_HAS_CONSOLE_ACCESS, - 16384 => AU_SESSION_FLAG_HAS_AUTHENTICATED, - _ => throw ArgumentError('Unknown value for audit_session_flags: $value'), - }; -} - -final class audit_stat extends ffi.Struct { - @ffi.UnsignedInt() - external int as_version; - - @ffi.UnsignedInt() - external int as_numevent; - - @ffi.Int() - external int as_generated; - - @ffi.Int() - external int as_nonattrib; - - @ffi.Int() - external int as_kernel; - - @ffi.Int() - external int as_audit; - - @ffi.Int() - external int as_auditctl; - - @ffi.Int() - external int as_enqueue; - - @ffi.Int() - external int as_written; - - @ffi.Int() - external int as_wblocked; - - @ffi.Int() - external int as_rblocked; - - @ffi.Int() - external int as_dropped; - - @ffi.Int() - external int as_totalsize; - - @ffi.UnsignedInt() - external int as_memused; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int as_version, - required int as_numevent, - required int as_generated, - required int as_nonattrib, - required int as_kernel, - required int as_audit, - required int as_auditctl, - required int as_enqueue, - required int as_written, - required int as_wblocked, - required int as_rblocked, - required int as_dropped, - required int as_totalsize, - required int as_memused, - }) => $allocator() - ..ref.as_version = as_version - ..ref.as_numevent = as_numevent - ..ref.as_generated = as_generated - ..ref.as_nonattrib = as_nonattrib - ..ref.as_kernel = as_kernel - ..ref.as_audit = as_audit - ..ref.as_auditctl = as_auditctl - ..ref.as_enqueue = as_enqueue - ..ref.as_written = as_written - ..ref.as_wblocked = as_wblocked - ..ref.as_rblocked = as_rblocked - ..ref.as_dropped = as_dropped - ..ref.as_totalsize = as_totalsize - ..ref.as_memused = as_memused; -} - -final class audit_token_t extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array val; -} - -final class auditinfo extends ffi.Struct { - @au_id_t() - external int ai_auid; - - external au_mask_t ai_mask; - - external au_tid_t ai_termid; - - @au_asid_t() - external int ai_asid; -} - -final class auditinfo_addr extends ffi.Struct { - @au_id_t() - external int ai_auid; - - external au_mask_t ai_mask; - - external au_tid_addr_t ai_termid; - - @au_asid_t() - external int ai_asid; - - @au_asflgs_t() - external int ai_flags; -} - -typedef auditinfo_addr_t = auditinfo_addr; -typedef auditinfo_t = auditinfo; - -final class auditpinfo extends ffi.Struct { - @pid_t() - external int ap_pid; - - @au_id_t() - external int ap_auid; - - external au_mask_t ap_mask; - - external au_tid_t ap_termid; - - @au_asid_t() - external int ap_asid; -} - -final class auditpinfo_addr extends ffi.Struct { - @pid_t() - external int ap_pid; - - @au_id_t() - external int ap_auid; - - external au_mask_t ap_mask; - - external au_tid_addr_t ap_termid; - - @au_asid_t() - external int ap_asid; - - @au_asflgs_t() - external int ap_flags; -} - -typedef auditpinfo_addr_t = auditpinfo_addr; -typedef auditpinfo_t = auditpinfo; - -const int authFailErr = -927; - -const int auxiliaryExportDataUnavailable = -2058; - -const int bAccessCntl = 18; - -const int bAllowCDiDataHandler = 17; - -const int bAncestorModDateChanges = 11; - -const int bDoNotDisplay = 24; - -const int bHasBTreeMgr = 5; - -const int bHasBlankAccessPrivileges = 4; - -const int bHasCatSearch = 7; - -const int bHasCopyFile = 14; - -const int bHasDesktopMgr = 12; - -const int bHasDirectIO = 1; - -const int bHasExtFSVol = 16; - -const int bHasFileIDs = 6; - -const int bHasFolderLock = 10; - -const int bHasMoveRename = 13; - -const int bHasOpenDeny = 15; - -const int bHasPersonalAccessPrivileges = 9; - -const int bHasShortName = 11; - -const int bHasUserGroupList = 8; - -const int bIsAutoMounted = 14; - -const int bIsCasePreserving = 23; - -const int bIsCaseSensitive = 22; - -const int bIsEjectable = 0; - -const int bIsOnExternalBus = 27; - -const int bIsOnInternalBus = 21; - -const int bIsRemovable = 25; - -const int bL2PCanMapFileBlocks = 9; - -const int bLimitFCBs = 31; - -const int bLocalWList = 30; - -const int bNoBootBlks = 19; - -const int bNoDeskItems = 20; - -const int bNoLclSync = 27; - -const int bNoMiniFndr = 29; - -const int bNoRootTimes = 26; - -const int bNoSwitchTo = 25; - -const int bNoSysDir = 17; - -const int bNoVNEdit = 28; - -const int bNoVolumeSizes = 20; - -const int bParentModDateChanges = 10; - -const int bSupports2TBFiles = 4; - -const int bSupportsAsyncRequests = 3; - -const int bSupportsExclusiveLocks = 18; - -const int bSupportsExtendedFileSecurity = 28; - -const int bSupportsFSCatalogSearch = 2; - -const int bSupportsFSExchangeObjects = 3; - -const int bSupportsHFSPlusAPIs = 1; - -const int bSupportsJournaling = 19; - -const int bSupportsLongNames = 5; - -const int bSupportsMultiScriptNames = 6; - -const int bSupportsNamedForks = 7; - -const int bSupportsSubtreeIterators = 8; - -const int bSupportsSymbolicLinks = 13; - -const int bSupportsTrashVolumeCache = 2; - -const int bTrshOffLine = 26; - -const int badATPSkt = -1099; - -const int badBtSlpErr = -70; - -const int badBuffNum = -1100; - -const int badCallOrderErr = -2209; - -const int badChannel = -205; - -const int badCksmErr = -69; - -const int badCodecCharacterizationErr = -8993; - -const int badComponentInstance = -2147450879; - -const int badComponentSelector = -2147450878; - -const int badComponentType = -2005; - -const int badControllerHeight = -9994; - -const int badDBtSlp = -73; - -const int badDCksum = -72; - -const int badDataRefIndex = -2050; - -@Deprecated('Deprecated') -const int badDelim = 3; - -const int badDepthErr = -2207; - -const int badDictFormat = -246; - -const int badDragFlavorErr = -1852; - -const int badDragItemErr = -1851; - -const int badDragRefErr = -1850; - -const int badEditIndex = -2033; - -const int badEditList = -2017; - -const int badEditionFileErr = -453; - -@Deprecated('Deprecated') -const int badEnding = 4; - -const int badExtResource = -185; - -const int badFCBErr = -1327; - -const int badFidErr = -1307; - -const int badFileFormat = -208; - -const int badFolderDescErr = -4270; - -const int badFormat = -206; - -const int badImageDescription = -2001; - -const int badImageErr = -1861; - -const int badImageRgnErr = -1860; - -const int badInputText = -247; - -const int badLocNameErr = -931; - -const int badMDBErr = -60; - -const int badMovErr = -122; - -const int badPasteboardFlavorErr = -25133; - -const int badPasteboardIndexErr = -25131; - -const int badPasteboardItemErr = -25132; - -const int badPasteboardSyncErr = -25130; - -const int badPortNameErr = -919; - -const int badProfileError = -4008; - -const int badPublicMovieAtom = -2002; - -const int badReqErr = -909; - -const int badRoutingSizeErr = -4276; - -const int badSGChannel = -9406; - -const int badScrapRefErr = -4990; - -const int badSectionErr = -451; - -const int badServiceMethodErr = -930; - -const int badSubPartErr = -454; - -const int badTrackIndex = -2028; - -const int badTranslationRefErr = -3031; - -const int badTranslationSpecErr = -3031; - -const int badUnitErr = -21; - -@Deprecated('Deprecated') -const int baseDblQuote = 227; - -@Deprecated('Deprecated') -const int baseSingQuote = 226; - -const int bdNamErr = -37; - -typedef bearer_token_callback_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer http, - ffi.Pointer resource, - ffi.Pointer user_data, - ) - > - >; - -const int betaStage = 96; - -typedef blkcnt_t = __darwin_blkcnt_t; -typedef blksize_t = __darwin_blksize_t; - -const int bold = 1; - -typedef boolean_t = ffi.Int; -typedef Dartboolean_t = int; -typedef bootstrap_t = mach_port_t; - -const int breakRecd = -90; - -@Deprecated('Deprecated') -const int breveMark = 249; - -const int btDupRecErr = -414; - -const int btKeyAttrErr = -417; - -const int btKeyLenErr = -416; - -const int btNoSpace = -413; - -const int btRecNotFnd = -415; - -const int buf2SmallErr = -3101; - -const int bufTooSmall = -243; - -const int bufferIsSmall = -607; - -const int buffersTooSmall = -210; - -const int cADBAddress = 1667327074; - -const int cAEList = 1818850164; - -const int cAddressSpec = 1667327090; - -const int cAppleTalkAddress = 1667331104; - -const int cApplication = 1667330160; - -const int cArc = 1667330659; - -const int cBoolean = 1651470188; - -const int cBusAddress = 1667396979; - -const int cCell = 1667458412; - -const int cChar = 1667784992; - -const int cColorTable = 1668051572; - -const int cColumn = 1667460972; - -const int cDepthErr = -157; - -const int cDevErr = -155; - -const int cDevSpec = 1667523958; - -const int cDocument = 1685021557; - -const int cDrawingArea = 1667527287; - -const int cEnumeration = 1701737837; - -const int cEthernetAddress = 1667591712; - -const int cFTPItem = 1718906912; - -const int cFile = 1718185061; - -const int cFireWireAddress = 1667659552; - -const int cFixed = 1718188132; - -const int cFixedPoint = 1718644340; - -const int cFixedRectangle = 1718772596; - -const int cGraphicLine = 1735158126; - -const int cGraphicObject = 1667723106; - -const int cGraphicShape = 1667724136; - -const int cGraphicText = 1667724408; - -const int cGroupedGraphic = 1668311395; - -const int cHTML = 1752460652; - -const int cIPAddress = 1667854368; - -const int cInsertionLoc = 1768846188; - -const int cInsertionPoint = 1667853939; - -const int cInternetAddress = 1229996356; - -const int cIntlText = 1769240692; - -const int cIntlWritingCode = 1768846444; - -const int cItem = 1667855469; - -const int cKeystroke = 1802531443; - -const int cLine = 1668049262; - -const int cLocalTalkAddress = 1668052000; - -const int cLongDateTime = 1818522656; - -const int cLongFixed = 1818654820; - -const int cLongFixedPoint = 1818652788; - -const int cLongFixedRectangle = 1818653283; - -const int cLongInteger = 1819242087; - -const int cLongPoint = 1819307636; - -const int cLongRectangle = 1819435892; - -const int cMachineLoc = 1833725795; - -const int cMatchErr = -150; - -const int cMenu = 1668116085; - -const int cMenuItem = 1668113774; - -const int cNoMemErr = -152; - -const int cObject = 1668244074; - -const int cObjectSpecifier = 1868720672; - -const int cOpenableObject = 1668247394; - -const int cOval = 1668249196; - -const int cPICT = 1346978644; - -const int cParagraph = 1668309362; - -const int cPixel = 1668315244; - -const int cPixelMap = 1668311416; - -const int cPolygon = 1668310894; - -const int cProperty = 1886547824; - -const int cProtectErr = -154; - -const int cQDPoint = 1363439732; - -const int cQDRectangle = 1902408308; - -const int cRGBColor = 1666336578; - -const int cRangeErr = -153; - -const int cRectangle = 1668441443; - -const int cResErr = -156; - -const int cRotation = 1953656692; - -const int cRoundedRectangle = 1668444771; - -const int cRow = 1668444023; - -const int cSCSIAddress = 1668506483; - -const int cSelection = 1668506988; - -const int cShortInteger = 1936224114; - -const int cTable = 1668571756; - -const int cTempMemErr = -151; - -const int cText = 1668577396; - -const int cTextFlow = 1667656815; - -const int cTextStyles = 1953723513; - -const int cTokenRingAddress = 1668575083; - -const int cType = 1954115685; - -const int cURL = 1970433056; - -const int cUSBAddress = 1668641634; - -const int cVersion = 1986359923; - -const int cWindow = 1668770158; - -const int cWord = 1668771698; - -typedef caddr_t = ffi.Pointer; -@Deprecated('Deprecated') -const int calArabicCivil = 1; - -@Deprecated('Deprecated') -const int calArabicLunar = 2; - -@Deprecated('Deprecated') -const int calCoptic = 5; - -@Deprecated('Deprecated') -const int calGregorian = 0; - -@Deprecated('Deprecated') -const int calJapanese = 3; - -@Deprecated('Deprecated') -const int calJewish = 4; - -@Deprecated('Deprecated') -const int calPersian = 6; - -const int callNotSupportedByNodeErr = -30542; - -const int callerSecuritySession = -1; - -const int cannotBeLeafAtomErr = -2109; - -const int cannotDeferErr = -625; - -const int cannotFindAtomErr = -2101; - -const int cannotMakeContiguousErr = -622; - -const int cannotMoveAttachedController = -9999; - -const int cannotSetWidthOfAttachedController = -9997; - -const int cantCreatePickerWindow = -4004; - -const int cantCreateSingleForkFile = -2022; - -const int cantDoThatInCurrentMode = -9402; - -const int cantEnableTrack = -2035; - -const int cantFindHandler = -2003; - -const int cantGetFlavorErr = -1854; - -const int cantLoadPackage = -4005; - -const int cantLoadPickMethodErr = -11003; - -const int cantLoadPicker = -4003; - -const int cantOpenHandler = -2004; - -const int cantPutPublicMovieAtom = -2016; - -const int cantReadUtilities = 33280; - -const int cantReceiveFromSynthesizerOSErr = -2073; - -const int cantSendToSynthesizerOSErr = -2072; - -const int cantStepErr = -75; - -const int catChangedErr = -1304; - -const int cbNotFound = -1102; - -typedef ccntTokenRecHandle = ffi.Pointer; -typedef ccntTokenRecPtr = ffi.Pointer; - -@ffi.Packed(2) -final class ccntTokenRecord extends ffi.Struct { - @DescType() - external int tokenClass; - - external objc.AEDesc token; -} - -const int cdevGenErr = -1; - -const int cdevMemErr = 0; - -const int cdevResErr = 1; - -const int cdevUnset = 3; - -@Deprecated('Deprecated') -const int cedilla = 252; - -@Deprecated('Deprecated') -const int centeredDot = 225; - -const int century = 128; - -const int cfragAbortClosureErr = -2830; - -const int cfragArchitectureErr = -2823; - -const int cfragCFMInternalErr = -2819; - -const int cfragCFMStartupErr = -2818; - -const int cfragCFragRsrcErr = -2857; - -const int cfragClosureIDErr = -2829; - -const int cfragConnectionIDErr = -2801; - -const int cfragContainerIDErr = -2828; - -const int cfragContextIDErr = -2800; - -const int cfragDupRegistrationErr = -2805; - -const int cfragExecFileRefErr = -2854; - -const int cfragFileSizeErr = -2825; - -const int cfragFirstErrCode = -2800; - -const int cfragFirstReservedCode = -2897; - -const int cfragFragmentCorruptErr = -2820; - -const int cfragFragmentFormatErr = -2806; - -const int cfragFragmentUsageErr = -2824; - -const int cfragImportTooNewErr = -2814; - -const int cfragImportTooOldErr = -2813; - -const int cfragInitAtBootErr = -2816; - -const int cfragInitFunctionErr = -2821; - -const int cfragInitLoopErr = -2815; - -const int cfragInitOrderErr = -2812; - -const int cfragLastErrCode = -2899; - -const int cfragLibConnErr = -2817; - -const int cfragMapFileErr = -2851; - -const int cfragNoApplicationErr = -2822; - -const int cfragNoClientMemErr = -2810; - -const int cfragNoIDsErr = -2811; - -const int cfragNoLibraryErr = -2804; - -const int cfragNoPositionErr = -2808; - -const int cfragNoPrivateMemErr = -2809; - -const int cfragNoRegistrationErr = -2827; - -const int cfragNoSectionErr = -2803; - -const int cfragNoSymbolErr = -2802; - -const int cfragNotClosureErr = -2826; - -const int cfragOutputLengthErr = -2831; - -const int cfragReservedCode_1 = -2899; - -const int cfragReservedCode_2 = -2898; - -const int cfragReservedCode_3 = -2897; - -const int cfragRsrcForkErr = -2856; - -const int cfragStdFolderErr = -2855; - -const int cfragUnresolvedErr = -2807; - -const int channelBusy = -209; - -const int channelNotBusy = -211; - -@Deprecated('Deprecated') -const int circumflex = 246; - -@Deprecated('Deprecated') -const int circumflexUprA = 229; - -@Deprecated('Deprecated') -const int circumflexUprE = 230; - -@Deprecated('Deprecated') -const int circumflexUprI = 235; - -@Deprecated('Deprecated') -const int circumflexUprO = 239; - -@Deprecated('Deprecated') -const int circumflexUprU = 243; - -const int ckSumErr = -3103; - -typedef cl_device_id = ffi.Pointer<_cl_device_id>; - -const int clearDev = 13; - -const int clkRdErr = -85; - -const int clkWrErr = -86; - -typedef clock_attr_t = ffi.Pointer; -typedef clock_ctrl_port_t = clock_ctrl_t; -typedef clock_ctrl_t = mach_port_t; -typedef clock_flavor_t = ffi.Int; -typedef Dartclock_flavor_t = int; -typedef clock_id_t = ffi.Int; -typedef Dartclock_id_t = int; -typedef clock_reply_t = mach_port_t; -typedef clock_res_t = ffi.Int; -typedef Dartclock_res_t = int; -typedef clock_serv_port_t = clock_serv_t; -typedef clock_serv_t = mach_port_t; -typedef clock_t = __darwin_clock_t; - -enum clockid_t { - _CLOCK_REALTIME(0), - _CLOCK_MONOTONIC(6), - _CLOCK_MONOTONIC_RAW(4), - _CLOCK_MONOTONIC_RAW_APPROX(5), - _CLOCK_UPTIME_RAW(8), - _CLOCK_UPTIME_RAW_APPROX(9), - _CLOCK_PROCESS_CPUTIME_ID(12), - _CLOCK_THREAD_CPUTIME_ID(16); - - final int value; - const clockid_t(this.value); - - static clockid_t fromValue(int value) => switch (value) { - 0 => _CLOCK_REALTIME, - 6 => _CLOCK_MONOTONIC, - 4 => _CLOCK_MONOTONIC_RAW, - 5 => _CLOCK_MONOTONIC_RAW_APPROX, - 8 => _CLOCK_UPTIME_RAW, - 9 => _CLOCK_UPTIME_RAW_APPROX, - 12 => _CLOCK_PROCESS_CPUTIME_ID, - 16 => _CLOCK_THREAD_CPUTIME_ID, - _ => throw ArgumentError('Unknown value for clockid_t: $value'), - }; -} - -final class clockinfo extends ffi.Struct { - @ffi.Int() - external int hz; - - @ffi.Int() - external int tick; - - @ffi.Int() - external int tickadj; - - @ffi.Int() - external int stathz; - - @ffi.Int() - external int profhz; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int hz, - required int tick, - required int tickadj, - required int stathz, - required int profhz, - }) => $allocator() - ..ref.hz = hz - ..ref.tick = tick - ..ref.tickadj = tickadj - ..ref.stathz = stathz - ..ref.profhz = profhz; -} - -const int closErr = -24; - -const int closeDev = 2; - -const int cm10CLRData = 1094929490; - -const int cm11CLRData = 1111706706; - -const int cm12CLRData = 1128483922; - -const int cm13CLRData = 1145261138; - -const int cm14CLRData = 1162038354; - -const int cm15CLRData = 1178815570; - -const int cm16_8ColorPacking = 8192; - -const int cm24_8ColorPacking = 8448; - -const int cm32_16ColorPacking = 9728; - -const int cm32_32ColorPacking = 9984; - -const int cm32_8ColorPacking = 2048; - -const int cm3CLRData = 860048466; - -const int cm40_8ColorPacking = 8704; - -const int cm48_16ColorPacking = 10496; - -const int cm48_8ColorPacking = 8960; - -const int cm4CLRData = 876825682; - -const int cm56_8ColorPacking = 9216; - -const int cm5CLRData = 893602898; - -const int cm64_16ColorPacking = 10752; - -const int cm64_8ColorPacking = 9472; - -const int cm6CLRData = 910380114; - -const int cm7CLRData = 927157330; - -const int cm8CLRData = 943934546; - -const int cm8_8ColorPacking = 10240; - -const int cm9CLRData = 960711762; - -const int cmARGB32PmulSpace = 6337; - -const int cmARGB32Space = 6273; - -const int cmARGB64LPmulSpace = 31425; - -const int cmARGB64LSpace = 31361; - -const int cmARGB64PmulSpace = 15041; - -const int cmARGB64Space = 14977; - -const int cmAToB0Tag = 1093812784; - -const int cmAToB1Tag = 1093812785; - -const int cmAToB2Tag = 1093812786; - -const int cmAbortWriteAccess = 7; - -const int cmAbsoluteColorimetric = 3; - -const int cmAbstractClass = 1633842036; - -const int cmAlphaFirstPacking = 4096; - -const int cmAlphaLastPacking = 0; - -const int cmAlphaPmulSpace = 64; - -const int cmAlphaSpace = 128; - -const int cmAsciiData = 0; - -const int cmBToA0Tag = 1110589744; - -const int cmBToA1Tag = 1110589745; - -const int cmBToA2Tag = 1110589746; - -const int cmBeginAccess = 8; - -const int cmBestMode = 2; - -const int cmBinaryData = 1; - -const int cmBlackPointCompensation = 1; - -const int cmBlackPointCompensationMask = 4; - -const int cmBlueColorantTag = 1649957210; - -const int cmBlueTRCTag = 1649693251; - -const int cmBradfordChromaticAdaptation = 3; - -const int cmBufferBasedProfile = 6; - -const int cmCMSReservedFlagsMask = -65536; - -const int cmCMYData = 1129142560; - -const int cmCMYK32Space = 2050; - -const int cmCMYK64LSpace = 27138; - -const int cmCMYK64Space = 10754; - -const int cmCMYKData = 1129142603; - -const int cmCMYKSpace = 2; - -const int cmCS1ChromTag = 1667789421; - -const int cmCS1CustTag = 1668641652; - -const int cmCS1NameTag = 1851878757; - -const int cmCS1ProfileVersion = 256; - -const int cmCS1TRCTag = 1953653536; - -const int cmCS2ProfileVersion = 33554432; - -const int cmCalibrationDateTimeTag = 1667329140; - -const int cmCameraDeviceClass = 1668117089; - -const int cmCantConcatenateError = -178; - -const int cmCantCopyModifiedV1Profile = -4215; - -const int cmCantDeleteElement = -4202; - -const int cmCantDeleteProfile = -180; - -const int cmCantGamutCheckError = -4217; - -const int cmCantXYZ = -179; - -const int cmCharTargetTag = 1952543335; - -const int cmChromaticAdaptationTag = 1667785060; - -const int cmCloseAccess = 5; - -const int cmCloseSpool = 5; - -const int cmColorSpaceAlphaMask = 128; - -const int cmColorSpaceClass = 1936744803; - -const int cmColorSpaceEncodingMask = 983040; - -const int cmColorSpacePackingMask = 65280; - -const int cmColorSpacePremulAlphaMask = 64; - -const int cmColorSpaceReservedMask = -1048576; - -const int cmColorSpaceSpaceAndAlphaMask = 255; - -const int cmColorSpaceSpaceMask = 63; - -const int cmCopyrightTag = 1668313716; - -const int cmCreateNewAccess = 6; - -const int cmCurrentDeviceInfoVersion = 65536; - -const int cmCurrentProfileInfoVersion = 65536; - -const int cmCurrentProfileLocationSize = 1032; - -const int cmCurrentProfileMajorVersion = 33554432; - -const int cmDefaultDeviceID = 0; - -const int cmDefaultProfileID = 0; - -const int cmDeviceAlreadyRegistered = -4228; - -const int cmDeviceDBNotFoundErr = -4227; - -const int cmDeviceInfoVersion1 = 65536; - -const int cmDeviceMfgDescTag = 1684893284; - -const int cmDeviceModelDescTag = 1684890724; - -const int cmDeviceNotRegistered = -4229; - -const int cmDeviceProfileInfoVersion1 = 65536; - -const int cmDeviceProfileInfoVersion2 = 131072; - -const int cmDeviceProfilesNotFound = -4230; - -const int cmDeviceStateAppleRsvdBits = -16711681; - -const int cmDeviceStateBusy = 2; - -const int cmDeviceStateDefault = 0; - -const int cmDeviceStateDeviceRsvdBits = 16711680; - -const int cmDeviceStateForceNotify = -2147483648; - -const int cmDeviceStateOffline = 1; - -const int cmDisplayClass = 1835955314; - -const int cmDisplayDeviceClass = 1835955314; - -const int cmDisplayUse = 1685089401; - -const int cmDraftMode = 1; - -const int cmElementTagNotFound = -4200; - -const int cmEmbeddedMask = 1; - -const int cmEmbeddedProfile = 0; - -const int cmEmbeddedUse = 1; - -const int cmEmbeddedUseMask = 2; - -const int cmEndAccess = 9; - -const int cmErrIncompatibleProfile = -4208; - -const int cmFatalProfileErr = -4203; - -const int cmFlare0 = 0; - -const int cmFlare100 = 1; - -const int cmGamutCheckingMask = 524288; - -const int cmGamutResult1Space = 2828; - -const int cmGamutResultSpace = 12; - -const int cmGamutTag = 1734438260; - -const int cmGeometry045or450 = 1; - -const int cmGeometry0dord0 = 2; - -const int cmGeometryUnknown = 0; - -const int cmGlossy = 1; - -const int cmGlossyMatteMask = 2; - -const int cmGray16LSpace = 16394; - -const int cmGray16Space = 10; - -const int cmGray8Space = 10250; - -const int cmGrayA16PmulSpace = 8394; - -const int cmGrayA16Space = 8330; - -const int cmGrayA32LPmulSpace = 16586; - -const int cmGrayA32LSpace = 16522; - -const int cmGrayA32PmulSpace = 202; - -const int cmGrayA32Space = 138; - -const int cmGrayAPmulSpace = 202; - -const int cmGrayASpace = 138; - -const int cmGrayData = 1196573017; - -const int cmGraySpace = 10; - -const int cmGrayTRCTag = 1800688195; - -const int cmGreenColorantTag = 1733843290; - -const int cmGreenTRCTag = 1733579331; - -const int cmHLS32Space = 2564; - -const int cmHLSData = 1212961568; - -const int cmHLSSpace = 4; - -const int cmHSV32Space = 2563; - -const int cmHSVData = 1213421088; - -const int cmHSVSpace = 3; - -const int cmICCProfileVersion2 = 33554432; - -const int cmICCProfileVersion21 = 34603008; - -const int cmICCProfileVersion4 = 67108864; - -const int cmICCReservedFlagsMask = 65535; - -const int cmIlluminantA = 6; - -const int cmIlluminantD50 = 1; - -const int cmIlluminantD55 = 5; - -const int cmIlluminantD65 = 2; - -const int cmIlluminantD93 = 3; - -const int cmIlluminantEquiPower = 7; - -const int cmIlluminantF2 = 4; - -const int cmIlluminantF8 = 8; - -const int cmIlluminantUnknown = 0; - -const int cmIndexRangeErr = -4201; - -const int cmInputClass = 1935896178; - -const int cmInputUse = 1768845428; - -const int cmInternalCFErr = -4231; - -const int cmInterpolationMask = 262144; - -const int cmInvalidColorSpace = -4209; - -const int cmInvalidDstMap = -4211; - -const int cmInvalidProfile = -4204; - -const int cmInvalidProfileComment = -4213; - -const int cmInvalidProfileLocation = -4205; - -const int cmInvalidSearch = -4206; - -const int cmInvalidSrcMap = -4210; - -const int cmIterateAllDeviceProfiles = 4; - -const int cmIterateCurrentDeviceProfiles = 3; - -const int cmIterateCustomDeviceProfiles = 2; - -const int cmIterateDeviceProfilesMask = 15; - -const int cmIterateFactoryDeviceProfiles = 1; - -const int cmLAB24Space = 8456; - -const int cmLAB32Space = 2568; - -const int cmLAB48LSpace = 26888; - -const int cmLAB48Space = 10504; - -const int cmLABSpace = 8; - -const int cmLUV32Space = 2567; - -const int cmLUVSpace = 7; - -const int cmLabData = 1281450528; - -const int cmLinearChromaticAdaptation = 1; - -const int cmLinesPer = 1; - -const int cmLinkClass = 1818848875; - -const int cmLittleEndianPacking = 16384; - -const int cmLong10ColorPacking = 2560; - -const int cmLong8ColorPacking = 2048; - -const int cmLuminanceTag = 1819635049; - -const int cmLuvData = 1282766368; - -const int cmMCEight8Space = 9492; - -const int cmMCEightSpace = 20; - -const int cmMCFive8Space = 8721; - -const int cmMCFiveSpace = 17; - -const int cmMCH5Data = 1296255029; - -const int cmMCH6Data = 1296255030; - -const int cmMCH7Data = 1296255031; - -const int cmMCH8Data = 1296255032; - -const int cmMCSeven8Space = 9235; - -const int cmMCSevenSpace = 19; - -const int cmMCSix8Space = 8978; - -const int cmMCSixSpace = 18; - -const int cmMacintosh = 1095782476; - -const int cmMagicNumber = 1633907568; - -const int cmMakeAndModelTag = 1835888484; - -const int cmMeasurementTag = 1835360627; - -const int cmMediaBlackPointTag = 1651208308; - -const int cmMediaWhitePointTag = 2004119668; - -const int cmMethodError = -171; - -const int cmMethodNotFound = -175; - -const int cmMicrosoft = 1297303124; - -const int cmNamedColor2Tag = 1852009522; - -const int cmNamedColorClass = 1852662636; - -const int cmNamedColorNotFound = -4216; - -const int cmNamedColorTag = 1852010348; - -const int cmNamedData = 1312902469; - -const int cmNamedIndexed32LSpace = 26384; - -const int cmNamedIndexed32Space = 10000; - -const int cmNamedIndexedSpace = 16; - -const int cmNativeDisplayInfoTag = 1852074350; - -const int cmNoColorPacking = 0; - -const int cmNoCurrentProfile = -182; - -const int cmNoGDevicesError = -4212; - -const int cmNoProfileBase = 0; - -const int cmNoSpace = 0; - -const int cmNormalMode = 0; - -const int cmNumHeaderElements = 10; - -const int cmOneBitDirectPacking = 2816; - -const int cmOpenReadAccess = 1; - -const int cmOpenReadSpool = 1; - -const int cmOpenWriteAccess = 2; - -const int cmOpenWriteSpool = 2; - -const int cmOriginalProfileLocationSize = 72; - -const int cmOutputClass = 1886549106; - -const int cmOutputUse = 1869968496; - -const int cmPS2CRD0Tag = 1886610480; - -const int cmPS2CRD1Tag = 1886610481; - -const int cmPS2CRD2Tag = 1886610482; - -const int cmPS2CRD3Tag = 1886610483; - -const int cmPS2CRDVMSizeTag = 1886615149; - -const int cmPS2CSATag = 1886597747; - -const int cmPS2RenderingIntentTag = 1886597737; - -const int cmPS7bit = 1; - -const int cmPS8bit = 2; - -const int cmParametricType0 = 0; - -const int cmParametricType1 = 1; - -const int cmParametricType2 = 2; - -const int cmParametricType3 = 3; - -const int cmParametricType4 = 4; - -const int cmPathBasedProfile = 5; - -const int cmPerceptual = 0; - -const int cmPrefsSynchError = -4232; - -const int cmPreview0Tag = 1886545200; - -const int cmPreview1Tag = 1886545201; - -const int cmPreview2Tag = 1886545202; - -const int cmPrinterDeviceClass = 1886549106; - -const int cmProfileDescriptionMLTag = 1685283693; - -const int cmProfileDescriptionTag = 1684370275; - -const int cmProfileError = -170; - -const int cmProfileIterateDataVersion1 = 65536; - -const int cmProfileIterateDataVersion2 = 131072; - -const int cmProfileIterateDataVersion3 = 196608; - -const int cmProfileIterateDataVersion4 = 262144; - -const int cmProfileMajorVersionMask = -16777216; - -const int cmProfileNotFound = -176; - -const int cmProfileSequenceDescTag = 1886610801; - -const int cmProfilesIdentical = -177; - -const int cmProofDeviceClass = 1886549350; - -const int cmProofUse = 1886549350; - -const int cmPrtrDefaultScreens = 0; - -const int cmQualityMask = 196608; - -const int cmRGB16LSpace = 17665; - -const int cmRGB16Space = 1281; - -const int cmRGB24Space = 8449; - -const int cmRGB32Space = 2049; - -const int cmRGB48LSpace = 26881; - -const int cmRGB48Space = 10497; - -const int cmRGB565LSpace = 17921; - -const int cmRGB565Space = 1537; - -const int cmRGBA32PmulSpace = 2241; - -const int cmRGBA32Space = 2177; - -const int cmRGBA64LPmulSpace = 27329; - -const int cmRGBA64LSpace = 27265; - -const int cmRGBA64PmulSpace = 10945; - -const int cmRGBA64Space = 10881; - -const int cmRGBAPmulSpace = 193; - -const int cmRGBASpace = 129; - -const int cmRGBData = 1380401696; - -const int cmRGBSpace = 1; - -const int cmRangeOverFlow = -4214; - -const int cmReadAccess = 3; - -const int cmReadSpool = 3; - -const int cmRedColorantTag = 1918392666; - -const int cmRedTRCTag = 1918128707; - -const int cmReflective = 0; - -const int cmReflectiveTransparentMask = 1; - -const int cmRelativeColorimetric = 1; - -const int cmReservedSpace1 = 9; - -const int cmReservedSpace2 = 11; - -const int cmReverseChannelPacking = 32768; - -const int cmSRGB16ChannelEncoding = 65536; - -const int cmSRGBData = 1934772034; - -const int cmSaturation = 2; - -const int cmScannerDeviceClass = 1935896178; - -const int cmScreeningDescTag = 1935897188; - -const int cmScreeningTag = 1935897198; - -const int cmSearchError = -4207; - -const int cmSigCrdInfoType = 1668441193; - -const int cmSigCurveType = 1668641398; - -const int cmSigDataType = 1684108385; - -const int cmSigDateTimeType = 1685350765; - -const int cmSigLut16Type = 1835430962; - -const int cmSigLut8Type = 1835430961; - -const int cmSigMakeAndModelType = 1835888484; - -const int cmSigMeasurementType = 1835360627; - -const int cmSigMultiFunctA2BType = 1832993312; - -const int cmSigMultiFunctB2AType = 1833058592; - -const int cmSigMultiLocalizedUniCodeType = 1835824483; - -const int cmSigNamedColor2Type = 1852009522; - -const int cmSigNamedColorType = 1852010348; - -const int cmSigNativeDisplayInfoType = 1852074350; - -const int cmSigPS2CRDVMSizeType = 1886615149; - -const int cmSigParametricCurveType = 1885434465; - -const int cmSigProfileDescriptionType = 1684370275; - -const int cmSigProfileSequenceDescType = 1886610801; - -const int cmSigS15Fixed16Type = 1936077618; - -const int cmSigScreeningType = 1935897198; - -const int cmSigSignatureType = 1936287520; - -const int cmSigTextType = 1952807028; - -const int cmSigU16Fixed16Type = 1969632050; - -const int cmSigU1Fixed15Type = 1969631542; - -const int cmSigUInt16Type = 1969828150; - -const int cmSigUInt32Type = 1969828658; - -const int cmSigUInt64Type = 1969829428; - -const int cmSigUInt8Type = 1969827896; - -const int cmSigUcrBgType = 1650877472; - -const int cmSigUnicodeTextType = 1970567284; - -const int cmSigVideoCardGammaType = 1986226036; - -const int cmSigViewingConditionsType = 1986618743; - -const int cmSigXYZType = 1482250784; - -const int cmSiliconGraphics = 1397180704; - -const int cmSolaris = 1398099543; - -const int cmSpotFunctionCross = 7; - -const int cmSpotFunctionDefault = 1; - -const int cmSpotFunctionDiamond = 3; - -const int cmSpotFunctionEllipse = 4; - -const int cmSpotFunctionLine = 5; - -const int cmSpotFunctionRound = 2; - -const int cmSpotFunctionSquare = 6; - -const int cmSpotFunctionUnknown = 0; - -const int cmStdobs1931TwoDegrees = 1; - -const int cmStdobs1964TenDegrees = 2; - -const int cmStdobsUnknown = 0; - -const int cmTaligent = 1413959252; - -const int cmTechnologyAMDisplay = 1095582752; - -const int cmTechnologyCRTDisplay = 1129468960; - -const int cmTechnologyDigitalCamera = 1684234605; - -const int cmTechnologyDyeSublimationPrinter = 1685288290; - -const int cmTechnologyElectrophotographicPrinter = 1701865583; - -const int cmTechnologyElectrostaticPrinter = 1702065249; - -const int cmTechnologyFilmScanner = 1718838126; - -const int cmTechnologyFilmWriter = 1718645358; - -const int cmTechnologyFlexography = 1718379896; - -const int cmTechnologyGravure = 1735549302; - -const int cmTechnologyInkJetPrinter = 1768580468; - -const int cmTechnologyOffsetLithography = 1868981875; - -const int cmTechnologyPMDisplay = 1347240992; - -const int cmTechnologyPhotoCD = 1263551300; - -const int cmTechnologyPhotoImageSetter = 1768777587; - -const int cmTechnologyPhotographicPaperPrinter = 1919969391; - -const int cmTechnologyProjectionTelevision = 1886024822; - -const int cmTechnologyReflectiveScanner = 1920164718; - -const int cmTechnologySilkscreen = 1936288875; - -const int cmTechnologyTag = 1952801640; - -const int cmTechnologyThermalWaxPrinter = 1953980792; - -const int cmTechnologyVideoCamera = 1986618467; - -const int cmTechnologyVideoMonitor = 1986618477; - -const int cmUcrBgTag = 1650877472; - -const int cmUnsupportedDataType = -181; - -const int cmUseDefaultChromaticAdaptation = 0; - -const int cmVideoCardGammaFormulaType = 1; - -const int cmVideoCardGammaTableType = 0; - -const int cmVideoCardGammaTag = 1986226036; - -const int cmViewingConditionsDescTag = 1987405156; - -const int cmViewingConditionsTag = 1986618743; - -const int cmVonKriesChromaticAdaptation = 2; - -const int cmWord565ColorPacking = 1536; - -const int cmWord5ColorPacking = 1280; - -const int cmWriteAccess = 4; - -const int cmWriteSpool = 4; - -const int cmXYZ24Space = 8454; - -const int cmXYZ32Space = 2566; - -const int cmXYZ48LSpace = 26886; - -const int cmXYZ48Space = 10502; - -const int cmXYZData = 1482250784; - -const int cmXYZSpace = 6; - -const int cmYCbCrData = 1497588338; - -const int cmYXY32Space = 2565; - -const int cmYXYSpace = 5; - -const int cmYxyData = 1501067552; - -const int cmapFontTableTag = 1668112752; - -@Deprecated('Deprecated') -const int cmpAliasNoFlags = 0; - -@Deprecated('Deprecated') -const int cmpAliasOnlyThisFile = 1; - -@Deprecated('Deprecated') -const int cmpIsMissing = 536870912; - -@Deprecated('Deprecated') -const int cmpThreadSafe = 268435456; - -@Deprecated('Deprecated') -const int cmpWantsRegisterMessage = -2147483648; - -final class cmsghdr extends ffi.Struct { - @socklen_t() - external int cmsg_len; - - @ffi.Int() - external int cmsg_level; - - @ffi.Int() - external int cmsg_type; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cmsg_len, - required int cmsg_level, - required int cmsg_type, - }) => $allocator() - ..ref.cmsg_len = cmsg_len - ..ref.cmsg_level = cmsg_level - ..ref.cmsg_type = cmsg_type; -} - -typedef coalition_t = mach_port_t; - -const int codecAbortErr = -8967; - -const int codecBadDataErr = -8969; - -const int codecCantQueueErr = -8975; - -const int codecCantWhenErr = -8974; - -const int codecConditionErr = -8972; - -const int codecDataVersErr = -8970; - -const int codecDisabledErr = -8978; - -const int codecDroppedFrameErr = -8989; - -const int codecErr = -8960; - -const int codecExtensionNotFoundErr = -8971; - -const int codecImageBufErr = -8965; - -const int codecNeedAccessKeyErr = -8987; - -const int codecNeedToFlushChainErr = -8979; - -const int codecNoMemoryPleaseWaitErr = -8977; - -const int codecNothingToBlitErr = -8976; - -const int codecOffscreenFailedErr = -8988; - -const int codecOffscreenFailedPleaseRetryErr = -8992; - -const int codecOpenErr = -8973; - -const int codecParameterDialogConfirm = -8986; - -const int codecScreenBufErr = -8964; - -const int codecSizeErr = -8963; - -const int codecSpoolErr = -8966; - -const int codecUnimpErr = -8962; - -const int codecWouldOffscreenErr = -8968; - -const int collectionIndexRangeErr = -5752; - -const int collectionItemLockedErr = -5750; - -const int collectionItemNotFoundErr = -5751; - -const int collectionVersionErr = -5753; - -const int colorSyncNotInstalled = -4007; - -const int colorsRequestedErr = -11004; - -@Deprecated('Deprecated') -const int componentAutoVersionIncludeFlags = 4; - -const int componentDllEntryNotFoundErr = -2092; - -const int componentDllLoadErr = -2091; - -@Deprecated('Deprecated') -const int componentDoAutoVersion = 1; - -const int componentDontRegister = -3003; - -@Deprecated('Deprecated') -const int componentHasMultiplePlatforms = 8; - -@Deprecated('Deprecated') -const int componentLoadResident = 16; - -const int componentNotCaptured = -3002; - -const int componentNotThreadSafeErr = -2098; - -@Deprecated('Deprecated') -const int componentWantsUnregister = 2; - -const int condense = 32; - -const int connectionInvalid = -609; - -const int constraintReachedErr = -30541; - -const int containerAlreadyOpenWrn = -462; - -const int containerNotFoundWrn = -461; - -const int controlErr = -17; - -const int controlHandleInvalidErr = -30599; - -const int controlInvalidDataVersionErr = -30597; - -const int controlPanelFolderIconResource = -3976; - -const int controlPropertyInvalid = -5603; - -const int controlPropertyNotFoundErr = -5604; - -const int controllerBoundsNotExact = -9996; - -const int controllerHasFixedHeight = -9998; - -const int copyDev = 11; - -const int corErr = -3; - -const int coreFoundationUnknownErr = -4960; - -const int couldNotParseSourceFileErr = -3026; - -const int couldNotResolveDataRef = -2000; - -const int couldNotUseAnExistingSample = -2052; - -const int couldntGetRequiredComponent = -9405; - -typedef cpu_subtype_t = integer_t; -typedef cpu_threadtype_t = integer_t; -typedef cpu_type_t = integer_t; -@Deprecated('Deprecated') -const int crash = 5; - -@Deprecated('Deprecated') -final class cssm_access_credentials extends ffi.Struct { - @ffi.Array.multi([68]) - external ffi.Array EntryTag; - - external CSSM_BASE_CERTS BaseCerts; - - external CSSM_SAMPLEGROUP Samples; - - external CSSM_CHALLENGE_CALLBACK Callback; - - external ffi.Pointer CallerCtx; -} - -@Deprecated('Deprecated') -final class cssm_acl_edit extends ffi.Struct { - @CSSM_ACL_EDIT_MODE() - external int EditMode; - - @CSSM_ACL_HANDLE() - external int OldEntryHandle; - - external ffi.Pointer NewEntry; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int EditMode, - required int OldEntryHandle, - required ffi.Pointer NewEntry, - }) => $allocator() - ..ref.EditMode = EditMode - ..ref.OldEntryHandle = OldEntryHandle - ..ref.NewEntry = NewEntry; -} - -@Deprecated('Deprecated') -final class cssm_acl_entry_info extends ffi.Struct { - external CSSM_ACL_ENTRY_PROTOTYPE EntryPublicInfo; - - @CSSM_ACL_HANDLE() - external int EntryHandle; -} - -@Deprecated('Deprecated') -final class cssm_acl_entry_input extends ffi.Struct { - external CSSM_ACL_ENTRY_PROTOTYPE Prototype; - - external CSSM_ACL_SUBJECT_CALLBACK Callback; - - external ffi.Pointer CallerContext; -} - -@Deprecated('Deprecated') -final class cssm_acl_entry_prototype extends ffi.Struct { - external CSSM_LIST TypedSubject; - - @CSSM_BOOL() - external int Delegate; - - external CSSM_AUTHORIZATIONGROUP Authorization; - - external CSSM_ACL_VALIDITY_PERIOD TimeRange; - - @ffi.Array.multi([68]) - external ffi.Array EntryTag; -} - -final class cssm_acl_keychain_prompt_selector extends ffi.Struct { - @uint16() - external int version; - - @uint16() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int flags, - }) => $allocator() - ..ref.version = version - ..ref.flags = flags; -} - -@Deprecated('Deprecated') -final class cssm_acl_owner_prototype extends ffi.Struct { - external CSSM_LIST TypedSubject; - - @CSSM_BOOL() - external int Delegate; -} - -final class cssm_acl_process_subject_selector extends ffi.Struct { - @uint16() - external int version; - - @uint16() - external int mask; - - @uint32() - external int uid; - - @uint32() - external int gid; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int mask, - required int uid, - required int gid, - }) => $allocator() - ..ref.version = version - ..ref.mask = mask - ..ref.uid = uid - ..ref.gid = gid; -} - -@Deprecated('Deprecated') -final class cssm_acl_validity_period extends ffi.Struct { - external SecAsn1Item StartDate; - - external SecAsn1Item EndDate; -} - -final class cssm_applecspdl_db_change_password_parameters extends ffi.Struct { - external ffi.Pointer accessCredentials; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer accessCredentials, - }) => - $allocator() - ..ref.accessCredentials = accessCredentials; -} - -final class cssm_applecspdl_db_is_locked_parameters extends ffi.Struct { - @uint8() - external int isLocked; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int isLocked, - }) => - $allocator() - ..ref.isLocked = isLocked; -} - -final class cssm_applecspdl_db_settings_parameters extends ffi.Struct { - @uint32() - external int idleTimeout; - - @uint8() - external int lockOnSleep; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int idleTimeout, - required int lockOnSleep, - }) => $allocator() - ..ref.idleTimeout = idleTimeout - ..ref.lockOnSleep = lockOnSleep; -} - -final class cssm_appledl_open_parameters extends ffi.Struct { - @uint32() - external int length; - - @uint32() - external int version; - - @CSSM_BOOL() - external int autoCommit; - - @uint32() - external int mask; - - @mode_t() - external int mode; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int length, - required int version, - required int autoCommit, - required int mask, - required int mode, - }) => $allocator() - ..ref.length = length - ..ref.version = version - ..ref.autoCommit = autoCommit - ..ref.mask = mask - ..ref.mode = mode; -} - -enum cssm_appledl_open_parameters_mask { - kCSSM_APPLEDL_MASK_MODE(1); - - final int value; - const cssm_appledl_open_parameters_mask(this.value); - - static cssm_appledl_open_parameters_mask fromValue(int value) => - switch (value) { - 1 => kCSSM_APPLEDL_MASK_MODE, - _ => throw ArgumentError( - 'Unknown value for cssm_appledl_open_parameters_mask: $value', - ), - }; -} - -final class cssm_authorizationgroup extends ffi.Struct { - @uint32() - external int NumberOfAuthTags; - - external ffi.Pointer AuthTags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfAuthTags, - required ffi.Pointer AuthTags, - }) => $allocator() - ..ref.NumberOfAuthTags = NumberOfAuthTags - ..ref.AuthTags = AuthTags; -} - -@Deprecated('Deprecated') -final class cssm_base_certs extends ffi.Struct { - @CSSM_TP_HANDLE() - external int TPHandle; - - @CSSM_CL_HANDLE() - external int CLHandle; - - external CSSM_CERTGROUP Certs; -} - -@Deprecated('Deprecated') -final class cssm_cert_bundle extends ffi.Struct { - external CSSM_CERT_BUNDLE_HEADER BundleHeader; - - external SecAsn1Item Bundle; -} - -@Deprecated('Deprecated') -final class cssm_cert_bundle_header extends ffi.Struct { - @CSSM_CERT_BUNDLE_TYPE() - external int BundleType; - - @CSSM_CERT_BUNDLE_ENCODING() - external int BundleEncoding; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int BundleType, - required int BundleEncoding, - }) => $allocator() - ..ref.BundleType = BundleType - ..ref.BundleEncoding = BundleEncoding; -} - -@Deprecated('Deprecated') -final class cssm_cert_pair extends ffi.Struct { - external CSSM_ENCODED_CERT EncodedCert; - - external CSSM_PARSED_CERT ParsedCert; -} - -@Deprecated('Deprecated') -final class cssm_certgroup extends ffi.Struct { - @CSSM_CERT_TYPE() - external int CertType; - - @CSSM_CERT_ENCODING() - external int CertEncoding; - - @uint32() - external int NumCerts; - - external UnnamedUnion$1 GroupList; - - @CSSM_CERTGROUP_TYPE() - external int CertGroupType; - - external ffi.Pointer Reserved; -} - -@Deprecated('Deprecated') -final class cssm_context extends ffi.Struct { - @CSSM_CONTEXT_TYPE() - external int ContextType; - - @CSSM_ALGORITHMS() - external int AlgorithmType; - - @uint32() - external int NumberOfAttributes; - - external CSSM_CONTEXT_ATTRIBUTE_PTR ContextAttributes; - - @CSSM_CSP_HANDLE() - external int CSPHandle; - - @CSSM_BOOL() - external int Privileged; - - @uint32() - external int EncryptionProhibited; - - @uint32() - external int WorkFactor; - - @uint32() - external int Reserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ContextType, - required int AlgorithmType, - required int NumberOfAttributes, - required CSSM_CONTEXT_ATTRIBUTE_PTR ContextAttributes, - required int CSPHandle, - required int Privileged, - required int EncryptionProhibited, - required int WorkFactor, - required int Reserved, - }) => $allocator() - ..ref.ContextType = ContextType - ..ref.AlgorithmType = AlgorithmType - ..ref.NumberOfAttributes = NumberOfAttributes - ..ref.ContextAttributes = ContextAttributes - ..ref.CSPHandle = CSPHandle - ..ref.Privileged = Privileged - ..ref.EncryptionProhibited = EncryptionProhibited - ..ref.WorkFactor = WorkFactor - ..ref.Reserved = Reserved; -} - -@Deprecated('Deprecated') -final class cssm_context_attribute extends ffi.Struct { - @CSSM_ATTRIBUTE_TYPE() - external int AttributeType; - - @uint32() - external int AttributeLength; - - external cssm_context_attribute_value Attribute; -} - -@Deprecated('Deprecated') -final class cssm_context_attribute_value extends ffi.Union { - external ffi.Pointer String; - - @uint32() - external int Uint32; - - external CSSM_ACCESS_CREDENTIALS_PTR AccessCredentials; - - external CSSM_KEY_PTR Key; - - external CSSM_DATA_PTR Data; - - @CSSM_PADDING() - external int Padding; - - external CSSM_DATE_PTR Date; - - external CSSM_RANGE_PTR Range; - - external CSSM_CRYPTO_DATA_PTR CryptoData; - - external CSSM_VERSION_PTR Version; - - external CSSM_DL_DB_HANDLE_PTR DLDBHandle; - - external ffi.Pointer KRProfile; -} - -@Deprecated('Deprecated') -final class cssm_crl_pair extends ffi.Struct { - external CSSM_ENCODED_CRL EncodedCrl; - - external CSSM_PARSED_CRL ParsedCrl; -} - -@Deprecated('Deprecated') -final class cssm_crlgroup extends ffi.Struct { - @CSSM_CRL_TYPE() - external int CrlType; - - @CSSM_CRL_ENCODING() - external int CrlEncoding; - - @uint32() - external int NumberOfCrls; - - external UnnamedUnion$2 GroupCrlList; - - @CSSM_CRLGROUP_TYPE() - external int CrlGroupType; -} - -@Deprecated('Deprecated') -final class cssm_crypto_data extends ffi.Struct { - external SecAsn1Item Param; - - external CSSM_CALLBACK Callback; - - external ffi.Pointer CallerCtx; -} - -final class cssm_csp_operational_statistics extends ffi.Struct { - @CSSM_BOOL() - external int UserAuthenticated; - - @CSSM_CSP_FLAGS() - external int DeviceFlags; - - @uint32() - external int TokenMaxSessionCount; - - @uint32() - external int TokenOpenedSessionCount; - - @uint32() - external int TokenMaxRWSessionCount; - - @uint32() - external int TokenOpenedRWSessionCount; - - @uint32() - external int TokenTotalPublicMem; - - @uint32() - external int TokenFreePublicMem; - - @uint32() - external int TokenTotalPrivateMem; - - @uint32() - external int TokenFreePrivateMem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int UserAuthenticated, - required int DeviceFlags, - required int TokenMaxSessionCount, - required int TokenOpenedSessionCount, - required int TokenMaxRWSessionCount, - required int TokenOpenedRWSessionCount, - required int TokenTotalPublicMem, - required int TokenFreePublicMem, - required int TokenTotalPrivateMem, - required int TokenFreePrivateMem, - }) => $allocator() - ..ref.UserAuthenticated = UserAuthenticated - ..ref.DeviceFlags = DeviceFlags - ..ref.TokenMaxSessionCount = TokenMaxSessionCount - ..ref.TokenOpenedSessionCount = TokenOpenedSessionCount - ..ref.TokenMaxRWSessionCount = TokenMaxRWSessionCount - ..ref.TokenOpenedRWSessionCount = TokenOpenedRWSessionCount - ..ref.TokenTotalPublicMem = TokenTotalPublicMem - ..ref.TokenFreePublicMem = TokenFreePublicMem - ..ref.TokenTotalPrivateMem = TokenTotalPrivateMem - ..ref.TokenFreePrivateMem = TokenFreePrivateMem; -} - -final class cssm_data extends ffi.Struct { - @ffi.Size() - external int Length; - - external ffi.Pointer Data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Length, - required ffi.Pointer Data, - }) => $allocator() - ..ref.Length = Length - ..ref.Data = Data; -} - -final class cssm_date extends ffi.Struct { - @ffi.Array.multi([4]) - external ffi.Array Year; - - @ffi.Array.multi([2]) - external ffi.Array Month; - - @ffi.Array.multi([2]) - external ffi.Array Day; -} - -@Deprecated('Deprecated') -final class cssm_db_attribute_data extends ffi.Struct { - external CSSM_DB_ATTRIBUTE_INFO Info; - - @uint32() - external int NumberOfValues; - - external CSSM_DATA_PTR Value; -} - -@Deprecated('Deprecated') -final class cssm_db_attribute_info extends ffi.Struct { - @CSSM_DB_ATTRIBUTE_NAME_FORMAT() - external int AttributeNameFormat; - - external cssm_db_attribute_label Label; - - @CSSM_DB_ATTRIBUTE_FORMAT() - external int AttributeFormat; -} - -@Deprecated('Deprecated') -final class cssm_db_attribute_label extends ffi.Union { - external ffi.Pointer AttributeName; - - external SecAsn1Oid AttributeOID; - - @uint32() - external int AttributeID; -} - -@Deprecated('Deprecated') -final class cssm_db_index_info extends ffi.Struct { - @CSSM_DB_INDEX_TYPE() - external int IndexType; - - @CSSM_DB_INDEXED_DATA_LOCATION() - external int IndexedDataLocation; - - external CSSM_DB_ATTRIBUTE_INFO Info; -} - -@Deprecated('Deprecated') -final class cssm_db_parsing_module_info extends ffi.Struct { - @CSSM_DB_RECORDTYPE() - external int RecordType; - - external CSSM_SUBSERVICE_UID ModuleSubserviceUid; -} - -@Deprecated('Deprecated') -final class cssm_db_record_attribute_data extends ffi.Struct { - @CSSM_DB_RECORDTYPE() - external int DataRecordType; - - @uint32() - external int SemanticInformation; - - @uint32() - external int NumberOfAttributes; - - external CSSM_DB_ATTRIBUTE_DATA_PTR AttributeData; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int DataRecordType, - required int SemanticInformation, - required int NumberOfAttributes, - required CSSM_DB_ATTRIBUTE_DATA_PTR AttributeData, - }) => $allocator() - ..ref.DataRecordType = DataRecordType - ..ref.SemanticInformation = SemanticInformation - ..ref.NumberOfAttributes = NumberOfAttributes - ..ref.AttributeData = AttributeData; -} - -@Deprecated('Deprecated') -final class cssm_db_record_attribute_info extends ffi.Struct { - @CSSM_DB_RECORDTYPE() - external int DataRecordType; - - @uint32() - external int NumberOfAttributes; - - external CSSM_DB_ATTRIBUTE_INFO_PTR AttributeInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int DataRecordType, - required int NumberOfAttributes, - required CSSM_DB_ATTRIBUTE_INFO_PTR AttributeInfo, - }) => $allocator() - ..ref.DataRecordType = DataRecordType - ..ref.NumberOfAttributes = NumberOfAttributes - ..ref.AttributeInfo = AttributeInfo; -} - -@Deprecated('Deprecated') -final class cssm_db_record_index_info extends ffi.Struct { - @CSSM_DB_RECORDTYPE() - external int DataRecordType; - - @uint32() - external int NumberOfIndexes; - - external CSSM_DB_INDEX_INFO_PTR IndexInfo; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int DataRecordType, - required int NumberOfIndexes, - required CSSM_DB_INDEX_INFO_PTR IndexInfo, - }) => $allocator() - ..ref.DataRecordType = DataRecordType - ..ref.NumberOfIndexes = NumberOfIndexes - ..ref.IndexInfo = IndexInfo; -} - -@Deprecated('Deprecated') -final class cssm_db_schema_attribute_info extends ffi.Struct { - @uint32() - external int AttributeId; - - external ffi.Pointer AttributeName; - - external SecAsn1Oid AttributeNameID; - - @CSSM_DB_ATTRIBUTE_FORMAT() - external int DataType; -} - -final class cssm_db_schema_index_info extends ffi.Struct { - @uint32() - external int AttributeId; - - @uint32() - external int IndexId; - - @CSSM_DB_INDEX_TYPE() - external int IndexType; - - @CSSM_DB_INDEXED_DATA_LOCATION() - external int IndexedDataLocation; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int AttributeId, - required int IndexId, - required int IndexType, - required int IndexedDataLocation, - }) => $allocator() - ..ref.AttributeId = AttributeId - ..ref.IndexId = IndexId - ..ref.IndexType = IndexType - ..ref.IndexedDataLocation = IndexedDataLocation; -} - -@Deprecated('Deprecated') -final class cssm_db_unique_record extends ffi.Struct { - external CSSM_DB_INDEX_INFO RecordLocator; - - external SecAsn1Item RecordIdentifier; -} - -@Deprecated('Deprecated') -final class cssm_dbinfo extends ffi.Struct { - @uint32() - external int NumberOfRecordTypes; - - external CSSM_DB_PARSING_MODULE_INFO_PTR DefaultParsingModules; - - external CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR RecordAttributeNames; - - external CSSM_DB_RECORD_INDEX_INFO_PTR RecordIndexes; - - @CSSM_BOOL() - external int IsLocal; - - external ffi.Pointer AccessPath; - - external ffi.Pointer Reserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfRecordTypes, - required CSSM_DB_PARSING_MODULE_INFO_PTR DefaultParsingModules, - required CSSM_DB_RECORD_ATTRIBUTE_INFO_PTR RecordAttributeNames, - required CSSM_DB_RECORD_INDEX_INFO_PTR RecordIndexes, - required int IsLocal, - required ffi.Pointer AccessPath, - required ffi.Pointer Reserved, - }) => $allocator() - ..ref.NumberOfRecordTypes = NumberOfRecordTypes - ..ref.DefaultParsingModules = DefaultParsingModules - ..ref.RecordAttributeNames = RecordAttributeNames - ..ref.RecordIndexes = RecordIndexes - ..ref.IsLocal = IsLocal - ..ref.AccessPath = AccessPath - ..ref.Reserved = Reserved; -} - -final class cssm_dl_db_handle extends ffi.Struct { - @CSSM_DL_HANDLE() - external int DLHandle; - - @CSSM_DB_HANDLE() - external int DBHandle; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int DLHandle, - required int DBHandle, - }) => $allocator() - ..ref.DLHandle = DLHandle - ..ref.DBHandle = DBHandle; -} - -@Deprecated('Deprecated') -final class cssm_dl_db_list extends ffi.Struct { - @uint32() - external int NumHandles; - - external CSSM_DL_DB_HANDLE_PTR DLDBHandle; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumHandles, - required CSSM_DL_DB_HANDLE_PTR DLDBHandle, - }) => $allocator() - ..ref.NumHandles = NumHandles - ..ref.DLDBHandle = DLDBHandle; -} - -final class cssm_dl_pkcs11_attributes extends ffi.Struct { - @uint32() - external int DeviceAccessFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int DeviceAccessFlags, - }) => - $allocator() - ..ref.DeviceAccessFlags = DeviceAccessFlags; -} - -@Deprecated('Deprecated') -final class cssm_encoded_cert extends ffi.Struct { - @CSSM_CERT_TYPE() - external int CertType; - - @CSSM_CERT_ENCODING() - external int CertEncoding; - - external SecAsn1Item CertBlob; -} - -@Deprecated('Deprecated') -final class cssm_encoded_crl extends ffi.Struct { - @CSSM_CRL_TYPE() - external int CrlType; - - @CSSM_CRL_ENCODING() - external int CrlEncoding; - - external SecAsn1Item CrlBlob; -} - -@Deprecated('Deprecated') -final class cssm_evidence extends ffi.Struct { - @CSSM_EVIDENCE_FORM() - external int EvidenceForm; - - external ffi.Pointer Evidence; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int EvidenceForm, - required ffi.Pointer Evidence, - }) => $allocator() - ..ref.EvidenceForm = EvidenceForm - ..ref.Evidence = Evidence; -} - -@Deprecated('Deprecated') -final class cssm_field extends ffi.Struct { - external SecAsn1Oid FieldOid; - - external SecAsn1Item FieldValue; -} - -@Deprecated('Deprecated') -final class cssm_fieldgroup extends ffi.Struct { - @ffi.Int() - external int NumberOfFields; - - external CSSM_FIELD_PTR Fields; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfFields, - required CSSM_FIELD_PTR Fields, - }) => $allocator() - ..ref.NumberOfFields = NumberOfFields - ..ref.Fields = Fields; -} - -final class cssm_func_name_addr extends ffi.Struct { - @ffi.Array.multi([68]) - external ffi.Array Name; - - external CSSM_PROC_ADDR Address; -} - -final class cssm_guid extends ffi.Struct { - @uint32() - external int Data1; - - @uint16() - external int Data2; - - @uint16() - external int Data3; - - @ffi.Array.multi([8]) - external ffi.Array Data4; -} - -@Deprecated('Deprecated') -final class cssm_kea_derive_params extends ffi.Struct { - external SecAsn1Item Rb; - - external SecAsn1Item Yb; -} - -@Deprecated('Deprecated') -final class cssm_key extends ffi.Struct { - external CSSM_KEYHEADER KeyHeader; - - external SecAsn1Item KeyData; -} - -final class cssm_key_size extends ffi.Struct { - @uint32() - external int LogicalKeySizeInBits; - - @uint32() - external int EffectiveKeySizeInBits; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int LogicalKeySizeInBits, - required int EffectiveKeySizeInBits, - }) => $allocator() - ..ref.LogicalKeySizeInBits = LogicalKeySizeInBits - ..ref.EffectiveKeySizeInBits = EffectiveKeySizeInBits; -} - -@Deprecated('Deprecated') -final class cssm_keyheader extends ffi.Struct { - @CSSM_HEADERVERSION() - external int HeaderVersion; - - external CSSM_GUID CspId; - - @CSSM_KEYBLOB_TYPE() - external int BlobType; - - @CSSM_KEYBLOB_FORMAT() - external int Format; - - @CSSM_ALGORITHMS() - external int AlgorithmId; - - @CSSM_KEYCLASS() - external int KeyClass; - - @uint32() - external int LogicalKeySizeInBits; - - @CSSM_KEYATTR_FLAGS() - external int KeyAttr; - - @CSSM_KEYUSE() - external int KeyUsage; - - external CSSM_DATE StartDate; - - external CSSM_DATE EndDate; - - @CSSM_ALGORITHMS() - external int WrapAlgorithmId; - - @CSSM_ENCRYPT_MODE() - external int WrapMode; - - @uint32() - external int Reserved; -} - -final class cssm_kr_name extends ffi.Struct { - @uint8() - external int Type; - - @uint8() - external int Length; - - external ffi.Pointer Name; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Type, - required int Length, - required ffi.Pointer Name, - }) => $allocator() - ..ref.Type = Type - ..ref.Length = Length - ..ref.Name = Name; -} - -@Deprecated('Deprecated') -final class cssm_kr_policy_info extends ffi.Struct { - @CSSM_BOOL() - external int krbNotAllowed; - - @uint32() - external int numberOfEntries; - - external ffi.Pointer policyEntry; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int krbNotAllowed, - required int numberOfEntries, - required ffi.Pointer policyEntry, - }) => $allocator() - ..ref.krbNotAllowed = krbNotAllowed - ..ref.numberOfEntries = numberOfEntries - ..ref.policyEntry = policyEntry; -} - -@Deprecated('Deprecated') -final class cssm_kr_policy_list_item extends ffi.Struct { - external ffi.Pointer next; - - @CSSM_ALGORITHMS() - external int AlgorithmId; - - @CSSM_ENCRYPT_MODE() - external int Mode; - - @uint32() - external int MaxKeyLength; - - @uint32() - external int MaxRounds; - - @uint8() - external int WorkFactor; - - @CSSM_KR_POLICY_FLAGS() - external int PolicyFlags; - - @CSSM_CONTEXT_TYPE() - external int AlgClass; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer next, - required int AlgorithmId, - required int Mode, - required int MaxKeyLength, - required int MaxRounds, - required int WorkFactor, - required int PolicyFlags, - required int AlgClass, - }) => $allocator() - ..ref.next = next - ..ref.AlgorithmId = AlgorithmId - ..ref.Mode = Mode - ..ref.MaxKeyLength = MaxKeyLength - ..ref.MaxRounds = MaxRounds - ..ref.WorkFactor = WorkFactor - ..ref.PolicyFlags = PolicyFlags - ..ref.AlgClass = AlgClass; -} - -@Deprecated('Deprecated') -final class cssm_kr_profile extends ffi.Struct { - external CSSM_KR_NAME UserName; - - external CSSM_CERTGROUP_PTR UserCertificate; - - external CSSM_CERTGROUP_PTR KRSCertChain; - - @uint8() - external int LE_KRANum; - - external CSSM_CERTGROUP_PTR LE_KRACertChainList; - - @uint8() - external int ENT_KRANum; - - external CSSM_CERTGROUP_PTR ENT_KRACertChainList; - - @uint8() - external int INDIV_KRANum; - - external CSSM_CERTGROUP_PTR INDIV_KRACertChainList; - - external CSSM_DATA_PTR INDIV_AuthenticationInfo; - - @uint32() - external int KRSPFlags; - - external CSSM_DATA_PTR KRSPExtensions; -} - -@Deprecated('Deprecated') -final class cssm_kr_wrappedproductinfo extends ffi.Struct { - external CSSM_VERSION StandardVersion; - - @ffi.Array.multi([68]) - external ffi.Array StandardDescription; - - external CSSM_VERSION ProductVersion; - - @ffi.Array.multi([68]) - external ffi.Array ProductDescription; - - @ffi.Array.multi([68]) - external ffi.Array ProductVendor; - - @uint32() - external int ProductFlags; -} - -@Deprecated('Deprecated') -final class cssm_krsubservice extends ffi.Struct { - @uint32() - external int SubServiceId; - - external ffi.Pointer Description; - - external CSSM_KR_WRAPPEDPRODUCT_INFO WrappedProduct; -} - -final class cssm_list extends ffi.Struct { - @CSSM_LIST_TYPE() - external int ListType; - - external CSSM_LIST_ELEMENT_PTR Head; - - external CSSM_LIST_ELEMENT_PTR Tail; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ListType, - required CSSM_LIST_ELEMENT_PTR Head, - required CSSM_LIST_ELEMENT_PTR Tail, - }) => $allocator() - ..ref.ListType = ListType - ..ref.Head = Head - ..ref.Tail = Tail; -} - -@Deprecated('Deprecated') -final class cssm_list_element extends ffi.Struct { - external ffi.Pointer NextElement; - - @CSSM_WORDID_TYPE() - external int WordID; - - @CSSM_LIST_ELEMENT_TYPE() - external int ElementType; - - external UnnamedUnion Element; -} - -@Deprecated('Deprecated') -final class cssm_manager_event_notification extends ffi.Struct { - @CSSM_SERVICE_MASK() - external int DestinationModuleManagerType; - - @CSSM_SERVICE_MASK() - external int SourceModuleManagerType; - - @CSSM_MANAGER_EVENT_TYPES() - external int Event; - - @uint32() - external int EventId; - - external SecAsn1Item EventData; -} - -@Deprecated('Deprecated') -final class cssm_manager_registration_info extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction - > - Initialize; - - external ffi.Pointer> Terminate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_STATE_FUNCS_PTR CssmStateCallTable) - > - > - RegisterDispatchTable; - - external ffi.Pointer> - DeregisterDispatchTable; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer EventDescription, - ) - > - > - EventNotifyManager; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_FUNC_NAME_ADDR_PTR FuncNameAddrPtr, - uint32 NumOfFuncNameAddr, - ) - > - > - RefreshFunctionTable; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction - > - Initialize, - required ffi.Pointer> Terminate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_STATE_FUNCS_PTR CssmStateCallTable) - > - > - RegisterDispatchTable, - required ffi.Pointer> - DeregisterDispatchTable, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer EventDescription, - ) - > - > - EventNotifyManager, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_FUNC_NAME_ADDR_PTR FuncNameAddrPtr, - uint32 NumOfFuncNameAddr, - ) - > - > - RefreshFunctionTable, - }) => $allocator() - ..ref.Initialize = Initialize - ..ref.Terminate = Terminate - ..ref.RegisterDispatchTable = RegisterDispatchTable - ..ref.DeregisterDispatchTable = DeregisterDispatchTable - ..ref.EventNotifyManager = EventNotifyManager - ..ref.RefreshFunctionTable = RefreshFunctionTable; -} - -final class cssm_memory_funcs extends ffi.Struct { - external CSSM_MALLOC malloc_func; - - external CSSM_FREE free_func; - - external CSSM_REALLOC realloc_func; - - external CSSM_CALLOC calloc_func; - - external ffi.Pointer AllocRef; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CSSM_MALLOC malloc_func, - required CSSM_FREE free_func, - required CSSM_REALLOC realloc_func, - required CSSM_CALLOC calloc_func, - required ffi.Pointer AllocRef, - }) => $allocator() - ..ref.malloc_func = malloc_func - ..ref.free_func = free_func - ..ref.realloc_func = realloc_func - ..ref.calloc_func = calloc_func - ..ref.AllocRef = AllocRef; -} - -@Deprecated('Deprecated') -final class cssm_module_funcs extends ffi.Struct { - @CSSM_SERVICE_TYPE() - external int ServiceType; - - @uint32() - external int NumberOfServiceFuncs; - - external ffi.Pointer ServiceFuncs; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ServiceType, - required int NumberOfServiceFuncs, - required ffi.Pointer ServiceFuncs, - }) => $allocator() - ..ref.ServiceType = ServiceType - ..ref.NumberOfServiceFuncs = NumberOfServiceFuncs - ..ref.ServiceFuncs = ServiceFuncs; -} - -final class cssm_name_list extends ffi.Struct { - @uint32() - external int NumStrings; - - external ffi.Pointer> String; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumStrings, - required ffi.Pointer> String, - }) => $allocator() - ..ref.NumStrings = NumStrings - ..ref.String = String; -} - -@Deprecated('Deprecated') -final class cssm_net_address extends ffi.Struct { - @CSSM_NET_ADDRESS_TYPE() - external int AddressType; - - external SecAsn1Item Address; -} - -final class cssm_parsed_cert extends ffi.Struct { - @CSSM_CERT_TYPE() - external int CertType; - - @CSSM_CERT_PARSE_FORMAT() - external int ParsedCertFormat; - - external ffi.Pointer ParsedCert; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CertType, - required int ParsedCertFormat, - required ffi.Pointer ParsedCert, - }) => $allocator() - ..ref.CertType = CertType - ..ref.ParsedCertFormat = ParsedCertFormat - ..ref.ParsedCert = ParsedCert; -} - -final class cssm_parsed_crl extends ffi.Struct { - @CSSM_CRL_TYPE() - external int CrlType; - - @CSSM_CRL_PARSE_FORMAT() - external int ParsedCrlFormat; - - external ffi.Pointer ParsedCrl; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CrlType, - required int ParsedCrlFormat, - required ffi.Pointer ParsedCrl, - }) => $allocator() - ..ref.CrlType = CrlType - ..ref.ParsedCrlFormat = ParsedCrlFormat - ..ref.ParsedCrl = ParsedCrl; -} - -@Deprecated('Deprecated') -final class cssm_pkcs1_oaep_params extends ffi.Struct { - @uint32() - external int HashAlgorithm; - - external SecAsn1Item HashParams; - - @CSSM_PKCS_OAEP_MGF() - external int MGF; - - external SecAsn1Item MGFParams; - - @CSSM_PKCS_OAEP_PSOURCE() - external int PSource; - - external SecAsn1Item PSourceParams; -} - -@Deprecated('Deprecated') -final class cssm_pkcs5_pbkdf1_params extends ffi.Struct { - external SecAsn1Item Passphrase; - - external SecAsn1Item InitVector; -} - -@Deprecated('Deprecated') -final class cssm_pkcs5_pbkdf2_params extends ffi.Struct { - external SecAsn1Item Passphrase; - - @CSSM_PKCS5_PBKDF2_PRF() - external int PseudoRandomFunction; -} - -@Deprecated('Deprecated') -final class cssm_query extends ffi.Struct { - @CSSM_DB_RECORDTYPE() - external int RecordType; - - @CSSM_DB_CONJUNCTIVE() - external int Conjunctive; - - @uint32() - external int NumSelectionPredicates; - - external CSSM_SELECTION_PREDICATE_PTR SelectionPredicate; - - external CSSM_QUERY_LIMITS QueryLimits; - - @CSSM_QUERY_FLAGS() - external int QueryFlags; -} - -@Deprecated('Deprecated') -final class cssm_query_limits extends ffi.Struct { - @uint32() - external int TimeLimit; - - @uint32() - external int SizeLimit; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int TimeLimit, - required int SizeLimit, - }) => $allocator() - ..ref.TimeLimit = TimeLimit - ..ref.SizeLimit = SizeLimit; -} - -final class cssm_query_size_data extends ffi.Struct { - @uint32() - external int SizeInputBlock; - - @uint32() - external int SizeOutputBlock; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int SizeInputBlock, - required int SizeOutputBlock, - }) => $allocator() - ..ref.SizeInputBlock = SizeInputBlock - ..ref.SizeOutputBlock = SizeOutputBlock; -} - -final class cssm_range extends ffi.Struct { - @uint32() - external int Min; - - @uint32() - external int Max; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Min, - required int Max, - }) => $allocator() - ..ref.Min = Min - ..ref.Max = Max; -} - -@Deprecated('Deprecated') -final class cssm_resource_control_context extends ffi.Struct { - external CSSM_ACCESS_CREDENTIALS_PTR AccessCred; - - external CSSM_ACL_ENTRY_INPUT InitialAclEntry; -} - -@Deprecated('Deprecated') -final class cssm_sample extends ffi.Struct { - external CSSM_LIST TypedSample; - - external ffi.Pointer Verifier; -} - -@Deprecated('Deprecated') -final class cssm_samplegroup extends ffi.Struct { - @uint32() - external int NumberOfSamples; - - external ffi.Pointer Samples; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfSamples, - required ffi.Pointer Samples, - }) => $allocator() - ..ref.NumberOfSamples = NumberOfSamples - ..ref.Samples = Samples; -} - -@Deprecated('Deprecated') -final class cssm_selection_predicate extends ffi.Struct { - @CSSM_DB_OPERATOR() - external int DbOperator; - - external CSSM_DB_ATTRIBUTE_DATA Attribute; -} - -@Deprecated('Deprecated') -final class cssm_spi_ac_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_AC_HANDLE ACHandle, - ffi.Pointer BaseAuthorizations, - ffi.Pointer Credentials, - uint32 NumberOfRequestors, - ffi.Pointer Requestors, - ffi.Pointer RequestedAuthorizationPeriod, - ffi.Pointer RequestedAuthorization, - CSSM_TUPLEGROUP_PTR AuthorizationResult, - ) - > - > - AuthCompute; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_AC_HANDLE ACHandle, - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DBList, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_AC_HANDLE ACHandle, - ffi.Pointer BaseAuthorizations, - ffi.Pointer Credentials, - uint32 NumberOfRequestors, - ffi.Pointer Requestors, - ffi.Pointer RequestedAuthorizationPeriod, - ffi.Pointer RequestedAuthorization, - CSSM_TUPLEGROUP_PTR AuthorizationResult, - ) - > - > - AuthCompute, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_AC_HANDLE ACHandle, - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DBList, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough, - }) => $allocator() - ..ref.AuthCompute = AuthCompute - ..ref.PassThrough = PassThrough; -} - -@Deprecated('Deprecated') -final class cssm_spi_cl_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, - ) - > - > - CertCreateTemplate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllTemplateFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertTemplate, - ffi.Pointer SignScope, - uint32 ScopeSize, - CSSM_DATA_PTR SignedCert, - ) - > - > - CertSign; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - uint32 ScopeSize, - ) - > - > - CertVerify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertToBeVerified, - ) - > - > - CertVerifyWithKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CertGetFirstFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CertGetNextFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) - > - > - CertAbortQuery; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer Key, - ) - > - > - CertGetKeyInfo; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer FieldArray, - ) - > - > - FreeFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertOrCrlOid, - CSSM_DATA_PTR Value, - ) - > - > - FreeFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - CSSM_HANDLE_PTR CertHandle, - ) - > - > - CertCache; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CertHandle, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CertGetFirstCachedFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CertGetNextCachedFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CertHandle) - > - > - CertAbortCache; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertGroupToBundle, - ffi.Pointer BundleInfo, - CSSM_DATA_PTR SignedBundle, - ) - > - > - CertGroupToSignedBundle; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertBundle, - ffi.Pointer SignerCert, - ffi.Pointer CertGroup, - ) - > - > - CertGroupFromVerifiedBundle; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, - ) - > - > - CertDescribeFormat; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlTemplate, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlCreateTemplate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlTemplate, - ffi.Pointer OldCrl, - CSSM_DATA_PTR ModifiedCrl, - ) - > - > - CrlSetFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Cert, - uint32 NumberOfFields, - ffi.Pointer CrlEntryFields, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlAddCert; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlRemoveCert; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer UnsignedCrl, - ffi.Pointer SignScope, - uint32 ScopeSize, - CSSM_DATA_PTR SignedCrl, - ) - > - > - CrlSign; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - uint32 ScopeSize, - ) - > - > - CrlVerify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeVerified, - ) - > - > - CrlVerifyWithKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer Crl, - ffi.Pointer CertFound, - ) - > - > - IsCertInCrl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CrlGetFirstFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CrlGetNextFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) - > - > - CrlAbortQuery; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - ffi.Pointer NumberOfCrlFields, - ffi.Pointer CrlFields, - ) - > - > - CrlGetAllFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - CSSM_HANDLE_PTR CrlHandle, - ) - > - > - CrlCache; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - CSSM_HANDLE CrlHandle, - ffi.Pointer CertFound, - CSSM_DATA_PTR CrlRecordIndex, - ) - > - > - IsCertInCachedCrl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CrlGetFirstCachedFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CrlGetNextCachedFieldValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer NumberOfFields, - ffi.Pointer CrlFields, - ) - > - > - CrlGetAllCachedRecordFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CrlHandle) - > - > - CrlAbortCache; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, - ) - > - > - CrlDescribeFormat; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, - ) - > - > - CertCreateTemplate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllTemplateFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertTemplate, - ffi.Pointer SignScope, - uint32 ScopeSize, - CSSM_DATA_PTR SignedCert, - ) - > - > - CertSign, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - uint32 ScopeSize, - ) - > - > - CertVerify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertToBeVerified, - ) - > - > - CertVerifyWithKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CertGetFirstFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CertGetNextFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) - > - > - CertAbortQuery, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer Key, - ) - > - > - CertGetKeyInfo, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer FieldArray, - ) - > - > - FreeFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertOrCrlOid, - CSSM_DATA_PTR Value, - ) - > - > - FreeFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - CSSM_HANDLE_PTR CertHandle, - ) - > - > - CertCache, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CertHandle, - ffi.Pointer CertField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CertGetFirstCachedFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CertGetNextCachedFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CertHandle) - > - > - CertAbortCache, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertGroupToBundle, - ffi.Pointer BundleInfo, - CSSM_DATA_PTR SignedBundle, - ) - > - > - CertGroupToSignedBundle, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertBundle, - ffi.Pointer SignerCert, - ffi.Pointer CertGroup, - ) - > - > - CertGroupFromVerifiedBundle, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, - ) - > - > - CertDescribeFormat, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlTemplate, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlCreateTemplate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlTemplate, - ffi.Pointer OldCrl, - CSSM_DATA_PTR ModifiedCrl, - ) - > - > - CrlSetFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Cert, - uint32 NumberOfFields, - ffi.Pointer CrlEntryFields, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlAddCert, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer OldCrl, - CSSM_DATA_PTR NewCrl, - ) - > - > - CrlRemoveCert, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer UnsignedCrl, - ffi.Pointer SignScope, - uint32 ScopeSize, - CSSM_DATA_PTR SignedCrl, - ) - > - > - CrlSign, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCert, - ffi.Pointer VerifyScope, - uint32 ScopeSize, - ) - > - > - CrlVerify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeVerified, - ) - > - > - CrlVerifyWithKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - ffi.Pointer Crl, - ffi.Pointer CertFound, - ) - > - > - IsCertInCrl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CrlGetFirstFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CrlGetNextFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE ResultsHandle) - > - > - CrlAbortQuery, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - ffi.Pointer NumberOfCrlFields, - ffi.Pointer CrlFields, - ) - > - > - CrlGetAllFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Crl, - CSSM_HANDLE_PTR CrlHandle, - ) - > - > - CrlCache, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer Cert, - CSSM_HANDLE CrlHandle, - ffi.Pointer CertFound, - CSSM_DATA_PTR CrlRecordIndex, - ) - > - > - IsCertInCachedCrl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer CrlField, - CSSM_HANDLE_PTR ResultsHandle, - ffi.Pointer NumberOfMatchedFields, - ffi.Pointer Value, - ) - > - > - CrlGetFirstCachedFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE ResultsHandle, - ffi.Pointer Value, - ) - > - > - CrlGetNextCachedFieldValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_HANDLE CrlHandle, - ffi.Pointer CrlRecordIndex, - ffi.Pointer NumberOfFields, - ffi.Pointer CrlFields, - ) - > - > - CrlGetAllCachedRecordFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CL_HANDLE CLHandle, CSSM_HANDLE CrlHandle) - > - > - CrlAbortCache, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - ffi.Pointer NumberOfFields, - ffi.Pointer OidList, - ) - > - > - CrlDescribeFormat, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough, - }) => $allocator() - ..ref.CertCreateTemplate = CertCreateTemplate - ..ref.CertGetAllTemplateFields = CertGetAllTemplateFields - ..ref.CertSign = CertSign - ..ref.CertVerify = CertVerify - ..ref.CertVerifyWithKey = CertVerifyWithKey - ..ref.CertGetFirstFieldValue = CertGetFirstFieldValue - ..ref.CertGetNextFieldValue = CertGetNextFieldValue - ..ref.CertAbortQuery = CertAbortQuery - ..ref.CertGetKeyInfo = CertGetKeyInfo - ..ref.CertGetAllFields = CertGetAllFields - ..ref.FreeFields = FreeFields - ..ref.FreeFieldValue = FreeFieldValue - ..ref.CertCache = CertCache - ..ref.CertGetFirstCachedFieldValue = CertGetFirstCachedFieldValue - ..ref.CertGetNextCachedFieldValue = CertGetNextCachedFieldValue - ..ref.CertAbortCache = CertAbortCache - ..ref.CertGroupToSignedBundle = CertGroupToSignedBundle - ..ref.CertGroupFromVerifiedBundle = CertGroupFromVerifiedBundle - ..ref.CertDescribeFormat = CertDescribeFormat - ..ref.CrlCreateTemplate = CrlCreateTemplate - ..ref.CrlSetFields = CrlSetFields - ..ref.CrlAddCert = CrlAddCert - ..ref.CrlRemoveCert = CrlRemoveCert - ..ref.CrlSign = CrlSign - ..ref.CrlVerify = CrlVerify - ..ref.CrlVerifyWithKey = CrlVerifyWithKey - ..ref.IsCertInCrl = IsCertInCrl - ..ref.CrlGetFirstFieldValue = CrlGetFirstFieldValue - ..ref.CrlGetNextFieldValue = CrlGetNextFieldValue - ..ref.CrlAbortQuery = CrlAbortQuery - ..ref.CrlGetAllFields = CrlGetAllFields - ..ref.CrlCache = CrlCache - ..ref.IsCertInCachedCrl = IsCertInCachedCrl - ..ref.CrlGetFirstCachedFieldValue = CrlGetFirstCachedFieldValue - ..ref.CrlGetNextCachedFieldValue = CrlGetNextCachedFieldValue - ..ref.CrlGetAllCachedRecordFields = CrlGetAllCachedRecordFields - ..ref.CrlAbortCache = CrlAbortCache - ..ref.CrlDescribeFormat = CrlDescribeFormat - ..ref.PassThrough = PassThrough; -} - -@Deprecated('Deprecated') -final class cssm_spi_csp_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CONTEXT_EVENT Event, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - EventNotify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_BOOL Encrypt, - uint32 QuerySizeCount, - CSSM_QUERY_SIZE_DATA_PTR DataBlock, - ) - > - > - QuerySize; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_ALGORITHMS DigestAlgorithm, - CSSM_DATA_PTR Signature, - ) - > - > - SignData; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - SignDataInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - SignDataUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Signature, - ) - > - > - SignDataFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_ALGORITHMS DigestAlgorithm, - ffi.Pointer Signature, - ) - > - > - VerifyData; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - VerifyDataInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - VerifyDataUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Signature, - ) - > - > - VerifyDataFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_DATA_PTR Digest, - ) - > - > - DigestData; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - DigestDataInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - DigestDataUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_CC_HANDLE ClonedCCHandle, - ) - > - > - DigestDataClone; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Digest, - ) - > - > - DigestDataFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_DATA_PTR Mac, - ) - > - > - GenerateMac; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - GenerateMacInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - GenerateMacUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Mac, - ) - > - > - GenerateMacFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ffi.Pointer Mac, - ) - > - > - VerifyMac; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - VerifyMacInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - VerifyMacUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Mac, - ) - > - > - VerifyMacFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer ClearBufs, - uint32 ClearBufCount, - CSSM_DATA_PTR CipherBufs, - uint32 CipherBufCount, - ffi.Pointer bytesEncrypted, - CSSM_DATA_PTR RemData, - CSSM_PRIVILEGE Privilege, - ) - > - > - EncryptData; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_PRIVILEGE Privilege, - ) - > - > - EncryptDataInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer ClearBufs, - uint32 ClearBufCount, - CSSM_DATA_PTR CipherBufs, - uint32 CipherBufCount, - ffi.Pointer bytesEncrypted, - ) - > - > - EncryptDataUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR RemData, - ) - > - > - EncryptDataFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer CipherBufs, - uint32 CipherBufCount, - CSSM_DATA_PTR ClearBufs, - uint32 ClearBufCount, - ffi.Pointer bytesDecrypted, - CSSM_DATA_PTR RemData, - CSSM_PRIVILEGE Privilege, - ) - > - > - DecryptData; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_PRIVILEGE Privilege, - ) - > - > - DecryptDataInit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CipherBufs, - uint32 CipherBufCount, - CSSM_DATA_PTR ClearBufs, - uint32 ClearBufCount, - ffi.Pointer bytesDecrypted, - ) - > - > - DecryptDataUpdate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR RemData, - ) - > - > - DecryptDataFinal; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer Key, - CSSM_KEY_SIZE_PTR KeySize, - ) - > - > - QueryKeySizeInBits; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR Key, - CSSM_PRIVILEGE Privilege, - ) - > - > - GenerateKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 PublicKeyUsage, - uint32 PublicKeyAttr, - ffi.Pointer PublicKeyLabel, - CSSM_KEY_PTR PublicKey, - uint32 PrivateKeyUsage, - uint32 PrivateKeyAttr, - ffi.Pointer PrivateKeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR PrivateKey, - CSSM_PRIVILEGE Privilege, - ) - > - > - GenerateKeyPair; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_DATA_PTR RandomNumber, - ) - > - > - GenerateRandom; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 ParamBits, - CSSM_DATA_PTR Param, - ffi.Pointer NumberOfUpdatedAttibutes, - ffi.Pointer UpdatedAttributes, - ) - > - > - GenerateAlgorithmParams; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer DescriptiveData, - CSSM_WRAP_KEY_PTR WrappedKey, - CSSM_PRIVILEGE Privilege, - ) - > - > - WrapKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer PublicKey, - ffi.Pointer WrappedKey, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR UnwrappedKey, - CSSM_DATA_PTR DescriptiveData, - CSSM_PRIVILEGE Privilege, - ) - > - > - UnwrapKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_DATA_PTR Param, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR DerivedKey, - ) - > - > - DeriveKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - CSSM_KEY_PTR KeyPtr, - CSSM_BOOL Delete, - ) - > - > - FreeKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 PassThroughId, - ffi.Pointer InData, - ffi.Pointer> OutData, - ) - > - > - PassThrough; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer LoginName, - ffi.Pointer Reserved, - ) - > - > - Login; - - external ffi.Pointer< - ffi.NativeFunction - > - Logout; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ) - > - > - ChangeLoginAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer PublicKey, - CSSM_KEY_PTR PrivateKey, - ) - > - > - ObtainPrivateKeyFromPublicKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR UniqueID$1) - > - > - RetrieveUniqueId; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR Counter) - > - > - RetrieveCounter; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer DeviceCert, - ) - > - > - VerifyDevice; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_ALGORITHMS TimeAlgorithm, - ffi.Pointer TimeData, - ) - > - > - GetTimeValue; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Statistics, - ) - > - > - GetOperationalStatistics; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetLoginAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Key, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetKeyAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ffi.Pointer Key, - ) - > - > - ChangeKeyAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Key, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetKeyOwner; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer NewOwner, - ) - > - > - ChangeKeyOwner; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetLoginOwner; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, - ) - > - > - ChangeLoginOwner; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CONTEXT_EVENT Event, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - EventNotify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_BOOL Encrypt, - uint32 QuerySizeCount, - CSSM_QUERY_SIZE_DATA_PTR DataBlock, - ) - > - > - QuerySize, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_ALGORITHMS DigestAlgorithm, - CSSM_DATA_PTR Signature, - ) - > - > - SignData, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - SignDataInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - SignDataUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Signature, - ) - > - > - SignDataFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_ALGORITHMS DigestAlgorithm, - ffi.Pointer Signature, - ) - > - > - VerifyData, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - VerifyDataInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - VerifyDataUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Signature, - ) - > - > - VerifyDataFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_DATA_PTR Digest, - ) - > - > - DigestData, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - DigestDataInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - DigestDataUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_CC_HANDLE ClonedCCHandle, - ) - > - > - DigestDataClone, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Digest, - ) - > - > - DigestDataFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - CSSM_DATA_PTR Mac, - ) - > - > - GenerateMac, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - GenerateMacInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - GenerateMacUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR Mac, - ) - > - > - GenerateMacFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ffi.Pointer Mac, - ) - > - > - VerifyMac, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ) - > - > - VerifyMacInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DataBufs, - uint32 DataBufCount, - ) - > - > - VerifyMacUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Mac, - ) - > - > - VerifyMacFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer ClearBufs, - uint32 ClearBufCount, - CSSM_DATA_PTR CipherBufs, - uint32 CipherBufCount, - ffi.Pointer bytesEncrypted, - CSSM_DATA_PTR RemData, - CSSM_PRIVILEGE Privilege, - ) - > - > - EncryptData, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_PRIVILEGE Privilege, - ) - > - > - EncryptDataInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer ClearBufs, - uint32 ClearBufCount, - CSSM_DATA_PTR CipherBufs, - uint32 CipherBufCount, - ffi.Pointer bytesEncrypted, - ) - > - > - EncryptDataUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR RemData, - ) - > - > - EncryptDataFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer CipherBufs, - uint32 CipherBufCount, - CSSM_DATA_PTR ClearBufs, - uint32 ClearBufCount, - ffi.Pointer bytesDecrypted, - CSSM_DATA_PTR RemData, - CSSM_PRIVILEGE Privilege, - ) - > - > - DecryptData, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_PRIVILEGE Privilege, - ) - > - > - DecryptDataInit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CipherBufs, - uint32 CipherBufCount, - CSSM_DATA_PTR ClearBufs, - uint32 ClearBufCount, - ffi.Pointer bytesDecrypted, - ) - > - > - DecryptDataUpdate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - CSSM_DATA_PTR RemData, - ) - > - > - DecryptDataFinal, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer Key, - CSSM_KEY_SIZE_PTR KeySize, - ) - > - > - QueryKeySizeInBits, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR Key, - CSSM_PRIVILEGE Privilege, - ) - > - > - GenerateKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 PublicKeyUsage, - uint32 PublicKeyAttr, - ffi.Pointer PublicKeyLabel, - CSSM_KEY_PTR PublicKey, - uint32 PrivateKeyUsage, - uint32 PrivateKeyAttr, - ffi.Pointer PrivateKeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR PrivateKey, - CSSM_PRIVILEGE Privilege, - ) - > - > - GenerateKeyPair, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_DATA_PTR RandomNumber, - ) - > - > - GenerateRandom, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 ParamBits, - CSSM_DATA_PTR Param, - ffi.Pointer NumberOfUpdatedAttibutes, - ffi.Pointer UpdatedAttributes, - ) - > - > - GenerateAlgorithmParams, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer DescriptiveData, - CSSM_WRAP_KEY_PTR WrappedKey, - CSSM_PRIVILEGE Privilege, - ) - > - > - WrapKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - ffi.Pointer PublicKey, - ffi.Pointer WrappedKey, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR UnwrappedKey, - CSSM_DATA_PTR DescriptiveData, - CSSM_PRIVILEGE Privilege, - ) - > - > - UnwrapKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - CSSM_DATA_PTR Param, - uint32 KeyUsage, - uint32 KeyAttr, - ffi.Pointer KeyLabel, - ffi.Pointer CredAndAclEntry, - CSSM_KEY_PTR DerivedKey, - ) - > - > - DeriveKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - CSSM_KEY_PTR KeyPtr, - CSSM_BOOL Delete, - ) - > - > - FreeKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer Context, - uint32 PassThroughId, - ffi.Pointer InData, - ffi.Pointer> OutData, - ) - > - > - PassThrough, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer LoginName, - ffi.Pointer Reserved, - ) - > - > - Login, - required ffi.Pointer< - ffi.NativeFunction - > - Logout, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ) - > - > - ChangeLoginAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer PublicKey, - CSSM_KEY_PTR PrivateKey, - ) - > - > - ObtainPrivateKeyFromPublicKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_DATA_PTR UniqueID$1, - ) - > - > - RetrieveUniqueId, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_CSP_HANDLE CSPHandle, CSSM_DATA_PTR Counter) - > - > - RetrieveCounter, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer DeviceCert, - ) - > - > - VerifyDevice, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_ALGORITHMS TimeAlgorithm, - ffi.Pointer TimeData, - ) - > - > - GetTimeValue, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Statistics, - ) - > - > - GetOperationalStatistics, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetLoginAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Key, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetKeyAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ffi.Pointer Key, - ) - > - > - ChangeKeyAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer Key, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetKeyOwner, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer Key, - ffi.Pointer NewOwner, - ) - > - > - ChangeKeyOwner, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetLoginOwner, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, - ) - > - > - ChangeLoginOwner, - }) => $allocator() - ..ref.EventNotify = EventNotify - ..ref.QuerySize = QuerySize - ..ref.SignData = SignData - ..ref.SignDataInit = SignDataInit - ..ref.SignDataUpdate = SignDataUpdate - ..ref.SignDataFinal = SignDataFinal - ..ref.VerifyData = VerifyData - ..ref.VerifyDataInit = VerifyDataInit - ..ref.VerifyDataUpdate = VerifyDataUpdate - ..ref.VerifyDataFinal = VerifyDataFinal - ..ref.DigestData = DigestData - ..ref.DigestDataInit = DigestDataInit - ..ref.DigestDataUpdate = DigestDataUpdate - ..ref.DigestDataClone = DigestDataClone - ..ref.DigestDataFinal = DigestDataFinal - ..ref.GenerateMac = GenerateMac - ..ref.GenerateMacInit = GenerateMacInit - ..ref.GenerateMacUpdate = GenerateMacUpdate - ..ref.GenerateMacFinal = GenerateMacFinal - ..ref.VerifyMac = VerifyMac - ..ref.VerifyMacInit = VerifyMacInit - ..ref.VerifyMacUpdate = VerifyMacUpdate - ..ref.VerifyMacFinal = VerifyMacFinal - ..ref.EncryptData = EncryptData - ..ref.EncryptDataInit = EncryptDataInit - ..ref.EncryptDataUpdate = EncryptDataUpdate - ..ref.EncryptDataFinal = EncryptDataFinal - ..ref.DecryptData = DecryptData - ..ref.DecryptDataInit = DecryptDataInit - ..ref.DecryptDataUpdate = DecryptDataUpdate - ..ref.DecryptDataFinal = DecryptDataFinal - ..ref.QueryKeySizeInBits = QueryKeySizeInBits - ..ref.GenerateKey = GenerateKey - ..ref.GenerateKeyPair = GenerateKeyPair - ..ref.GenerateRandom = GenerateRandom - ..ref.GenerateAlgorithmParams = GenerateAlgorithmParams - ..ref.WrapKey = WrapKey - ..ref.UnwrapKey = UnwrapKey - ..ref.DeriveKey = DeriveKey - ..ref.FreeKey = FreeKey - ..ref.PassThrough = PassThrough - ..ref.Login = Login - ..ref.Logout = Logout - ..ref.ChangeLoginAcl = ChangeLoginAcl - ..ref.ObtainPrivateKeyFromPublicKey = ObtainPrivateKeyFromPublicKey - ..ref.RetrieveUniqueId = RetrieveUniqueId - ..ref.RetrieveCounter = RetrieveCounter - ..ref.VerifyDevice = VerifyDevice - ..ref.GetTimeValue = GetTimeValue - ..ref.GetOperationalStatistics = GetOperationalStatistics - ..ref.GetLoginAcl = GetLoginAcl - ..ref.GetKeyAcl = GetKeyAcl - ..ref.ChangeKeyAcl = ChangeKeyAcl - ..ref.GetKeyOwner = GetKeyOwner - ..ref.ChangeKeyOwner = ChangeKeyOwner - ..ref.GetLoginOwner = GetLoginOwner - ..ref.ChangeLoginOwner = ChangeLoginOwner; -} - -@Deprecated('Deprecated') -final class cssm_spi_dl_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, - ) - > - > - DbOpen; - - external ffi.Pointer< - ffi.NativeFunction - > - DbClose; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer DBInfo, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer CredAndAclEntry, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, - ) - > - > - DbCreate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer AccessCred, - ) - > - > - DbDelete; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RelationID, - ffi.Pointer RelationName, - uint32 NumberOfAttributes, - ffi.Pointer pAttributeInfo, - uint32 NumberOfIndexes, - ffi.Pointer pIndexInfo, - ) - > - > - CreateRelation; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RelationID, - ) - > - > - DestroyRelation; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ) - > - > - Authenticate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetDbAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ) - > - > - ChangeDbAcl; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetDbOwner; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, - ) - > - > - ChangeDbOwner; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer NameList, - ) - > - > - GetDbNames; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> DbName, - ) - > - > - GetDbNameFromHandle; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(CSSM_DL_HANDLE DLHandle, CSSM_NAME_LIST_PTR NameList) - > - > - FreeNameList; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RecordType, - ffi.Pointer Attributes, - ffi.Pointer Data, - ffi.Pointer UniqueId, - ) - > - > - DataInsert; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecordIdentifier, - ) - > - > - DataDelete; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RecordType, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, - ffi.Pointer AttributesToBeModified, - ffi.Pointer DataToBeModified, - CSSM_DB_MODIFY_MODE ModifyMode, - ) - > - > - DataModify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer Query, - CSSM_HANDLE_PTR ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetFirst; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_HANDLE ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetNext; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_HANDLE ResultsHandle, - ) - > - > - DataAbortQuery; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecord, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ) - > - > - DataGetFromUniqueRecordId; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, - ) - > - > - FreeUniqueRecord; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, - ) - > - > - DbOpen, - required ffi.Pointer< - ffi.NativeFunction - > - DbClose, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer DBInfo, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer CredAndAclEntry, - ffi.Pointer OpenParameters, - ffi.Pointer DbHandle, - ) - > - > - DbCreate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - ffi.Pointer AccessCred, - ) - > - > - DbDelete, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RelationID, - ffi.Pointer RelationName, - uint32 NumberOfAttributes, - ffi.Pointer pAttributeInfo, - uint32 NumberOfIndexes, - ffi.Pointer pIndexInfo, - ) - > - > - CreateRelation, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RelationID, - ) - > - > - DestroyRelation, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ) - > - > - Authenticate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> SelectionTag, - ffi.Pointer NumberOfAclInfos, - ffi.Pointer AclInfos, - ) - > - > - GetDbAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer AclEdit, - ) - > - > - ChangeDbAcl, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_ACL_OWNER_PROTOTYPE_PTR Owner, - ) - > - > - GetDbOwner, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer AccessCred, - ffi.Pointer NewOwner, - ) - > - > - ChangeDbOwner, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - ffi.Pointer NameList, - ) - > - > - GetDbNames, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer> DbName, - ) - > - > - GetDbNameFromHandle, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_HANDLE DLHandle, - CSSM_NAME_LIST_PTR NameList, - ) - > - > - FreeNameList, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RecordType, - ffi.Pointer Attributes, - ffi.Pointer Data, - ffi.Pointer UniqueId, - ) - > - > - DataInsert, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecordIdentifier, - ) - > - > - DataDelete, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_RECORDTYPE RecordType, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, - ffi.Pointer AttributesToBeModified, - ffi.Pointer DataToBeModified, - CSSM_DB_MODIFY_MODE ModifyMode, - ) - > - > - DataModify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer Query, - CSSM_HANDLE_PTR ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetFirst, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_HANDLE ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetNext, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_HANDLE ResultsHandle, - ) - > - > - DataAbortQuery, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - ffi.Pointer UniqueRecord, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ) - > - > - DataGetFromUniqueRecordId, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, - ) - > - > - FreeUniqueRecord, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_DL_DB_HANDLE DLDBHandle, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough, - }) => $allocator() - ..ref.DbOpen = DbOpen - ..ref.DbClose = DbClose - ..ref.DbCreate = DbCreate - ..ref.DbDelete = DbDelete - ..ref.CreateRelation = CreateRelation - ..ref.DestroyRelation = DestroyRelation - ..ref.Authenticate = Authenticate - ..ref.GetDbAcl = GetDbAcl - ..ref.ChangeDbAcl = ChangeDbAcl - ..ref.GetDbOwner = GetDbOwner - ..ref.ChangeDbOwner = ChangeDbOwner - ..ref.GetDbNames = GetDbNames - ..ref.GetDbNameFromHandle = GetDbNameFromHandle - ..ref.FreeNameList = FreeNameList - ..ref.DataInsert = DataInsert - ..ref.DataDelete = DataDelete - ..ref.DataModify = DataModify - ..ref.DataGetFirst = DataGetFirst - ..ref.DataGetNext = DataGetNext - ..ref.DataAbortQuery = DataAbortQuery - ..ref.DataGetFromUniqueRecordId = DataGetFromUniqueRecordId - ..ref.FreeUniqueRecord = FreeUniqueRecord - ..ref.PassThrough = PassThrough; -} - -@Deprecated('Deprecated') -final class cssm_spi_kr_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KRRegistrationContextHandle, - ffi.Pointer KRRegistrationContext, - ffi.Pointer KRInData, - ffi.Pointer AccessCredentials, - CSSM_KR_POLICY_FLAGS KRFlags, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR ReferenceHandle, - ) - > - > - RegistrationRequest; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ReferenceHandle, - ffi.Pointer EstimatedTime, - CSSM_KR_PROFILE_PTR KRProfile, - ) - > - > - RegistrationRetrieve; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KREnablementContextHandle, - ffi.Pointer KREnablementContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - ffi.Pointer KRSPOptions, - CSSM_KR_POLICY_FLAGS KRFlags, - CSSM_DATA_PTR KRFields, - ) - > - > - GenerateRecoveryFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KREnablementContextHandle, - ffi.Pointer KREnablementContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - ffi.Pointer KRSPOptions, - CSSM_KR_POLICY_FLAGS KRFlags, - ffi.Pointer KRFields, - ) - > - > - ProcessRecoveryFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KRRequestContextHandle, - ffi.Pointer KRRequestContext, - ffi.Pointer KRInData, - ffi.Pointer AccessCredentials, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR ReferenceHandle, - ) - > - > - RecoveryRequest; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ReferenceHandle, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR CacheHandle, - ffi.Pointer NumberOfRecoveredKeys, - ) - > - > - RecoveryRetrieve; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE CacheHandle, - uint32 IndexInResults, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CredAndAclEntry, - uint32 Flags, - CSSM_KEY_PTR RecoveredKey, - CSSM_DATA_PTR OtherInfo, - ) - > - > - GetRecoveredObject; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ResultsHandle, - ) - > - > - RecoveryRequestAbort; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KeyRecoveryContextHandle, - ffi.Pointer KeyRecoveryContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KRRegistrationContextHandle, - ffi.Pointer KRRegistrationContext, - ffi.Pointer KRInData, - ffi.Pointer AccessCredentials, - CSSM_KR_POLICY_FLAGS KRFlags, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR ReferenceHandle, - ) - > - > - RegistrationRequest, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ReferenceHandle, - ffi.Pointer EstimatedTime, - CSSM_KR_PROFILE_PTR KRProfile, - ) - > - > - RegistrationRetrieve, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KREnablementContextHandle, - ffi.Pointer KREnablementContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - ffi.Pointer KRSPOptions, - CSSM_KR_POLICY_FLAGS KRFlags, - CSSM_DATA_PTR KRFields, - ) - > - > - GenerateRecoveryFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KREnablementContextHandle, - ffi.Pointer KREnablementContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - ffi.Pointer KRSPOptions, - CSSM_KR_POLICY_FLAGS KRFlags, - ffi.Pointer KRFields, - ) - > - > - ProcessRecoveryFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KRRequestContextHandle, - ffi.Pointer KRRequestContext, - ffi.Pointer KRInData, - ffi.Pointer AccessCredentials, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR ReferenceHandle, - ) - > - > - RecoveryRequest, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ReferenceHandle, - ffi.Pointer EstimatedTime, - CSSM_HANDLE_PTR CacheHandle, - ffi.Pointer NumberOfRecoveredKeys, - ) - > - > - RecoveryRetrieve, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE CacheHandle, - uint32 IndexInResults, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CredAndAclEntry, - uint32 Flags, - CSSM_KEY_PTR RecoveredKey, - CSSM_DATA_PTR OtherInfo, - ) - > - > - GetRecoveredObject, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_HANDLE ResultsHandle, - ) - > - > - RecoveryRequestAbort, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_KRSP_HANDLE KRSPHandle, - CSSM_CC_HANDLE KeyRecoveryContextHandle, - ffi.Pointer KeyRecoveryContext, - CSSM_CC_HANDLE CryptoContextHandle, - ffi.Pointer CryptoContext, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough, - }) => $allocator() - ..ref.RegistrationRequest = RegistrationRequest - ..ref.RegistrationRetrieve = RegistrationRetrieve - ..ref.GenerateRecoveryFields = GenerateRecoveryFields - ..ref.ProcessRecoveryFields = ProcessRecoveryFields - ..ref.RecoveryRequest = RecoveryRequest - ..ref.RecoveryRetrieve = RecoveryRetrieve - ..ref.GetRecoveredObject = GetRecoveredObject - ..ref.RecoveryRequestAbort = RecoveryRequestAbort - ..ref.PassThrough = PassThrough; -} - -@Deprecated('Deprecated') -final class cssm_spi_tp_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer PreferredAuthority, - CSSM_TP_AUTHORITY_REQUEST_TYPE RequestType, - ffi.Pointer RequestInput, - ffi.Pointer CallerAuthContext, - ffi.Pointer EstimatedTime, - CSSM_DATA_PTR ReferenceIdentifier, - ) - > - > - SubmitCredRequest; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer EstimatedTime, - ffi.Pointer ConfirmationRequired, - ffi.Pointer RetrieveOutput, - ) - > - > - RetrieveCredResult; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer Responses, - ffi.Pointer PreferredAuthority, - ) - > - > - ConfirmCredResult; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer Responses, - ffi.Pointer ElapsedTime, - ) - > - > - ReceiveConfirmation; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer CertGroup, - uint32 CertIndex, - CSSM_LONG_HANDLE KeyCacheHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CredAndAclEntry, - ) - > - > - CertReclaimKey; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_LONG_HANDLE KeyCacheHandle, - ) - > - > - CertReclaimAbort; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer PreferredAuthority, - CSSM_TP_FORM_TYPE FormType, - CSSM_DATA_PTR BlankForm, - ) - > - > - FormRequest; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_TP_FORM_TYPE FormType, - ffi.Pointer Form, - ffi.Pointer ClearanceAuthority, - ffi.Pointer RepresentedAuthority, - CSSM_ACCESS_CREDENTIALS_PTR Credentials, - ) - > - > - FormSubmit; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CertGroupToBeVerified, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, - ) - > - > - CertGroupVerify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, - ) - > - > - CertCreateTemplate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllTemplateFields; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertTemplateToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCert, - ) - > - > - CertSign; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCertGroup, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - ) - > - > - CrlVerify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlFields, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CrlCreateTemplate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRevoked, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - CSSM_TP_CERTCHANGE_REASON Reason, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CertRevoke; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRemoved, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CertRemoveFromCrlTemplate; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCrl, - ) - > - > - CrlSign; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CrlToBeApplied, - ffi.Pointer SignerCertGroup, - ffi.Pointer ApplyCrlVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, - ) - > - > - ApplyCrlToDb; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer DBList, - ffi.Pointer ConstructParams, - ffi.Pointer CertGroupFrag, - ffi.Pointer CertGroup, - ) - > - > - CertGroupConstruct; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer DBList, - ffi.Pointer OrderedCertGroup, - ffi.Pointer PrunedCertGroup, - ) - > - > - CertGroupPrune; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertGroup, - ffi.Pointer TupleGroup, - ) - > - > - CertGroupToTupleGroup; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer TupleGroup, - ffi.Pointer CertTemplates, - ) - > - > - TupleGroupToCertGroup; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DBList, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer PreferredAuthority, - CSSM_TP_AUTHORITY_REQUEST_TYPE RequestType, - ffi.Pointer RequestInput, - ffi.Pointer CallerAuthContext, - ffi.Pointer EstimatedTime, - CSSM_DATA_PTR ReferenceIdentifier, - ) - > - > - SubmitCredRequest, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer EstimatedTime, - ffi.Pointer ConfirmationRequired, - ffi.Pointer RetrieveOutput, - ) - > - > - RetrieveCredResult, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer CallerAuthCredentials, - ffi.Pointer Responses, - ffi.Pointer PreferredAuthority, - ) - > - > - ConfirmCredResult, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer ReferenceIdentifier, - ffi.Pointer Responses, - ffi.Pointer ElapsedTime, - ) - > - > - ReceiveConfirmation, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer CertGroup, - uint32 CertIndex, - CSSM_LONG_HANDLE KeyCacheHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CredAndAclEntry, - ) - > - > - CertReclaimKey, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_LONG_HANDLE KeyCacheHandle, - ) - > - > - CertReclaimAbort, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - ffi.Pointer PreferredAuthority, - CSSM_TP_FORM_TYPE FormType, - CSSM_DATA_PTR BlankForm, - ) - > - > - FormRequest, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_TP_FORM_TYPE FormType, - ffi.Pointer Form, - ffi.Pointer ClearanceAuthority, - ffi.Pointer RepresentedAuthority, - CSSM_ACCESS_CREDENTIALS_PTR Credentials, - ) - > - > - FormSubmit, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CertGroupToBeVerified, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR VerifyContextResult, - ) - > - > - CertGroupVerify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CertFields, - CSSM_DATA_PTR CertTemplate, - ) - > - > - CertCreateTemplate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertTemplate, - ffi.Pointer NumberOfFields, - ffi.Pointer CertFields, - ) - > - > - CertGetAllTemplateFields, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CertTemplateToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCert, - ) - > - > - CertSign, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CrlToBeVerified, - ffi.Pointer SignerCertGroup, - ffi.Pointer VerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - ) - > - > - CrlVerify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - uint32 NumberOfFields, - ffi.Pointer CrlFields, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CrlCreateTemplate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRevoked, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - CSSM_TP_CERTCHANGE_REASON Reason, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CertRevoke, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer OldCrlTemplate, - ffi.Pointer CertGroupToBeRemoved, - ffi.Pointer RevokerCertGroup, - ffi.Pointer RevokerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR RevokerVerifyResult, - CSSM_DATA_PTR NewCrlTemplate, - ) - > - > - CertRemoveFromCrlTemplate, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer CrlToBeSigned, - ffi.Pointer SignerCertGroup, - ffi.Pointer SignerVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR SignerVerifyResult, - CSSM_DATA_PTR SignedCrl, - ) - > - > - CrlSign, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer CrlToBeApplied, - ffi.Pointer SignerCertGroup, - ffi.Pointer ApplyCrlVerifyContext, - CSSM_TP_VERIFY_CONTEXT_RESULT_PTR ApplyCrlVerifyResult, - ) - > - > - ApplyCrlToDb, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CSP_HANDLE CSPHandle, - ffi.Pointer DBList, - ffi.Pointer ConstructParams, - ffi.Pointer CertGroupFrag, - ffi.Pointer CertGroup, - ) - > - > - CertGroupConstruct, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer DBList, - ffi.Pointer OrderedCertGroup, - ffi.Pointer PrunedCertGroup, - ) - > - > - CertGroupPrune, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer CertGroup, - ffi.Pointer TupleGroup, - ) - > - > - CertGroupToTupleGroup, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - ffi.Pointer TupleGroup, - ffi.Pointer CertTemplates, - ) - > - > - TupleGroupToCertGroup, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_TP_HANDLE TPHandle, - CSSM_CL_HANDLE CLHandle, - CSSM_CC_HANDLE CCHandle, - ffi.Pointer DBList, - uint32 PassThroughId, - ffi.Pointer InputParams, - ffi.Pointer> OutputParams, - ) - > - > - PassThrough, - }) => $allocator() - ..ref.SubmitCredRequest = SubmitCredRequest - ..ref.RetrieveCredResult = RetrieveCredResult - ..ref.ConfirmCredResult = ConfirmCredResult - ..ref.ReceiveConfirmation = ReceiveConfirmation - ..ref.CertReclaimKey = CertReclaimKey - ..ref.CertReclaimAbort = CertReclaimAbort - ..ref.FormRequest = FormRequest - ..ref.FormSubmit = FormSubmit - ..ref.CertGroupVerify = CertGroupVerify - ..ref.CertCreateTemplate = CertCreateTemplate - ..ref.CertGetAllTemplateFields = CertGetAllTemplateFields - ..ref.CertSign = CertSign - ..ref.CrlVerify = CrlVerify - ..ref.CrlCreateTemplate = CrlCreateTemplate - ..ref.CertRevoke = CertRevoke - ..ref.CertRemoveFromCrlTemplate = CertRemoveFromCrlTemplate - ..ref.CrlSign = CrlSign - ..ref.ApplyCrlToDb = ApplyCrlToDb - ..ref.CertGroupConstruct = CertGroupConstruct - ..ref.CertGroupPrune = CertGroupPrune - ..ref.CertGroupToTupleGroup = CertGroupToTupleGroup - ..ref.TupleGroupToCertGroup = TupleGroupToCertGroup - ..ref.PassThrough = PassThrough; -} - -@Deprecated('Deprecated') -final class cssm_state_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddIn, - CSSM_SERVICE_MASK AddinType, - ffi.Pointer> SPFunctions, - CSSM_GUID_PTR Guid, - ffi.Pointer Serialized, - ) - > - > - cssm_GetAttachFunctions; - - external ffi.Pointer< - ffi.NativeFunction - > - cssm_ReleaseAttachFunctions; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddIn, - CSSM_UPCALLS_PTR UpcallTable, - ) - > - > - cssm_GetAppMemoryFunctions; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddin, - CSSM_PROC_ADDR SrcAddress, - CSSM_PROC_ADDR DestAddress, - CSSM_PRIVILEGE InPriv, - ffi.Pointer OutPriv, - CSSM_BITMASK Hints, - ffi.Pointer IsOK, - ) - > - > - cssm_IsFuncCallValid; - - external ffi.Pointer< - ffi.NativeFunction GUID)> - > - cssm_DeregisterManagerServices; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer EventDescription, - ) - > - > - cssm_DeliverModuleManagerEvent; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddIn, - CSSM_SERVICE_MASK AddinType, - ffi.Pointer> SPFunctions, - CSSM_GUID_PTR Guid, - ffi.Pointer Serialized, - ) - > - > - cssm_GetAttachFunctions, - required ffi.Pointer< - ffi.NativeFunction - > - cssm_ReleaseAttachFunctions, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddIn, - CSSM_UPCALLS_PTR UpcallTable, - ) - > - > - cssm_GetAppMemoryFunctions, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE hAddin, - CSSM_PROC_ADDR SrcAddress, - CSSM_PROC_ADDR DestAddress, - CSSM_PRIVILEGE InPriv, - ffi.Pointer OutPriv, - CSSM_BITMASK Hints, - ffi.Pointer IsOK, - ) - > - > - cssm_IsFuncCallValid, - required ffi.Pointer< - ffi.NativeFunction GUID)> - > - cssm_DeregisterManagerServices, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - ffi.Pointer EventDescription, - ) - > - > - cssm_DeliverModuleManagerEvent, - }) => $allocator() - ..ref.cssm_GetAttachFunctions = cssm_GetAttachFunctions - ..ref.cssm_ReleaseAttachFunctions = cssm_ReleaseAttachFunctions - ..ref.cssm_GetAppMemoryFunctions = cssm_GetAppMemoryFunctions - ..ref.cssm_IsFuncCallValid = cssm_IsFuncCallValid - ..ref.cssm_DeregisterManagerServices = cssm_DeregisterManagerServices - ..ref.cssm_DeliverModuleManagerEvent = cssm_DeliverModuleManagerEvent; -} - -@Deprecated('Deprecated') -final class cssm_subservice_uid extends ffi.Struct { - external CSSM_GUID Guid; - - external CSSM_VERSION Version; - - @uint32() - external int SubserviceId; - - @CSSM_SERVICE_TYPE() - external int SubserviceType; -} - -@Deprecated('Deprecated') -final class cssm_tp_authority_id extends ffi.Struct { - external ffi.Pointer AuthorityCert; - - external CSSM_NET_ADDRESS_PTR AuthorityLocation; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer AuthorityCert, - required CSSM_NET_ADDRESS_PTR AuthorityLocation, - }) => $allocator() - ..ref.AuthorityCert = AuthorityCert - ..ref.AuthorityLocation = AuthorityLocation; -} - -@Deprecated('Deprecated') -final class cssm_tp_callerauth_context extends ffi.Struct { - external CSSM_TP_POLICYINFO Policy; - - external CSSM_TIMESTRING VerifyTime; - - @CSSM_TP_STOP_ON() - external int VerificationAbortOn; - - external CSSM_TP_VERIFICATION_RESULTS_CALLBACK CallbackWithVerifiedCert; - - @uint32() - external int NumberOfAnchorCerts; - - external CSSM_DATA_PTR AnchorCerts; - - external CSSM_DL_DB_LIST_PTR DBList; - - external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_certchange_input extends ffi.Struct { - @CSSM_TP_CERTCHANGE_ACTION() - external int Action; - - @CSSM_TP_CERTCHANGE_REASON() - external int Reason; - - @CSSM_CL_HANDLE() - external int CLHandle; - - external CSSM_DATA_PTR Cert; - - external CSSM_FIELD_PTR ChangeInfo; - - external CSSM_TIMESTRING StartTime; - - external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Action, - required int Reason, - required int CLHandle, - required CSSM_DATA_PTR Cert, - required CSSM_FIELD_PTR ChangeInfo, - required CSSM_TIMESTRING StartTime, - required CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials, - }) => $allocator() - ..ref.Action = Action - ..ref.Reason = Reason - ..ref.CLHandle = CLHandle - ..ref.Cert = Cert - ..ref.ChangeInfo = ChangeInfo - ..ref.StartTime = StartTime - ..ref.CallerCredentials = CallerCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_certchange_output extends ffi.Struct { - @CSSM_TP_CERTCHANGE_STATUS() - external int ActionStatus; - - external CSSM_FIELD RevokeInfo; -} - -@Deprecated('Deprecated') -final class cssm_tp_certissue_input extends ffi.Struct { - external CSSM_SUBSERVICE_UID CSPSubserviceUid; - - @CSSM_CL_HANDLE() - external int CLHandle; - - @uint32() - external int NumberOfTemplateFields; - - external CSSM_FIELD_PTR SubjectCertFields; - - @CSSM_TP_SERVICES() - external int MoreServiceRequests; - - @uint32() - external int NumberOfServiceControls; - - external CSSM_FIELD_PTR ServiceControls; - - external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_certissue_output extends ffi.Struct { - @CSSM_TP_CERTISSUE_STATUS() - external int IssueStatus; - - external CSSM_CERTGROUP_PTR CertGroup; - - @CSSM_TP_SERVICES() - external int PerformedServiceRequests; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int IssueStatus, - required CSSM_CERTGROUP_PTR CertGroup, - required int PerformedServiceRequests, - }) => $allocator() - ..ref.IssueStatus = IssueStatus - ..ref.CertGroup = CertGroup - ..ref.PerformedServiceRequests = PerformedServiceRequests; -} - -@Deprecated('Deprecated') -final class cssm_tp_certnotarize_input extends ffi.Struct { - @CSSM_CL_HANDLE() - external int CLHandle; - - @uint32() - external int NumberOfFields; - - external CSSM_FIELD_PTR MoreFields; - - external CSSM_FIELD_PTR SignScope; - - @uint32() - external int ScopeSize; - - @CSSM_TP_SERVICES() - external int MoreServiceRequests; - - @uint32() - external int NumberOfServiceControls; - - external CSSM_FIELD_PTR ServiceControls; - - external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CLHandle, - required int NumberOfFields, - required CSSM_FIELD_PTR MoreFields, - required CSSM_FIELD_PTR SignScope, - required int ScopeSize, - required int MoreServiceRequests, - required int NumberOfServiceControls, - required CSSM_FIELD_PTR ServiceControls, - required CSSM_ACCESS_CREDENTIALS_PTR UserCredentials, - }) => $allocator() - ..ref.CLHandle = CLHandle - ..ref.NumberOfFields = NumberOfFields - ..ref.MoreFields = MoreFields - ..ref.SignScope = SignScope - ..ref.ScopeSize = ScopeSize - ..ref.MoreServiceRequests = MoreServiceRequests - ..ref.NumberOfServiceControls = NumberOfServiceControls - ..ref.ServiceControls = ServiceControls - ..ref.UserCredentials = UserCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_certnotarize_output extends ffi.Struct { - @CSSM_TP_CERTNOTARIZE_STATUS() - external int NotarizeStatus; - - external CSSM_CERTGROUP_PTR NotarizedCertGroup; - - @CSSM_TP_SERVICES() - external int PerformedServiceRequests; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NotarizeStatus, - required CSSM_CERTGROUP_PTR NotarizedCertGroup, - required int PerformedServiceRequests, - }) => $allocator() - ..ref.NotarizeStatus = NotarizeStatus - ..ref.NotarizedCertGroup = NotarizedCertGroup - ..ref.PerformedServiceRequests = PerformedServiceRequests; -} - -@Deprecated('Deprecated') -final class cssm_tp_certreclaim_input extends ffi.Struct { - @CSSM_CL_HANDLE() - external int CLHandle; - - @uint32() - external int NumberOfSelectionFields; - - external CSSM_FIELD_PTR SelectionFields; - - external CSSM_ACCESS_CREDENTIALS_PTR UserCredentials; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CLHandle, - required int NumberOfSelectionFields, - required CSSM_FIELD_PTR SelectionFields, - required CSSM_ACCESS_CREDENTIALS_PTR UserCredentials, - }) => $allocator() - ..ref.CLHandle = CLHandle - ..ref.NumberOfSelectionFields = NumberOfSelectionFields - ..ref.SelectionFields = SelectionFields - ..ref.UserCredentials = UserCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_certreclaim_output extends ffi.Struct { - @CSSM_TP_CERTRECLAIM_STATUS() - external int ReclaimStatus; - - external CSSM_CERTGROUP_PTR ReclaimedCertGroup; - - @CSSM_LONG_HANDLE() - external int KeyCacheHandle; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ReclaimStatus, - required CSSM_CERTGROUP_PTR ReclaimedCertGroup, - required int KeyCacheHandle, - }) => $allocator() - ..ref.ReclaimStatus = ReclaimStatus - ..ref.ReclaimedCertGroup = ReclaimedCertGroup - ..ref.KeyCacheHandle = KeyCacheHandle; -} - -@Deprecated('Deprecated') -final class cssm_tp_certverify_input extends ffi.Struct { - @CSSM_CL_HANDLE() - external int CLHandle; - - external CSSM_DATA_PTR Cert; - - external CSSM_TP_VERIFY_CONTEXT_PTR VerifyContext; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CLHandle, - required CSSM_DATA_PTR Cert, - required CSSM_TP_VERIFY_CONTEXT_PTR VerifyContext, - }) => $allocator() - ..ref.CLHandle = CLHandle - ..ref.Cert = Cert - ..ref.VerifyContext = VerifyContext; -} - -@Deprecated('Deprecated') -final class cssm_tp_certverify_output extends ffi.Struct { - @CSSM_TP_CERTVERIFY_STATUS() - external int VerifyStatus; - - @uint32() - external int NumberOfEvidence; - - external CSSM_EVIDENCE_PTR Evidence; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int VerifyStatus, - required int NumberOfEvidence, - required CSSM_EVIDENCE_PTR Evidence, - }) => $allocator() - ..ref.VerifyStatus = VerifyStatus - ..ref.NumberOfEvidence = NumberOfEvidence - ..ref.Evidence = Evidence; -} - -@Deprecated('Deprecated') -final class cssm_tp_confirm_response extends ffi.Struct { - @uint32() - external int NumberOfResponses; - - external CSSM_TP_CONFIRM_STATUS_PTR Responses; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfResponses, - required CSSM_TP_CONFIRM_STATUS_PTR Responses, - }) => $allocator() - ..ref.NumberOfResponses = NumberOfResponses - ..ref.Responses = Responses; -} - -@Deprecated('Deprecated') -final class cssm_tp_crlissue_input extends ffi.Struct { - @CSSM_CL_HANDLE() - external int CLHandle; - - @uint32() - external int CrlIdentifier; - - external CSSM_TIMESTRING CrlThisTime; - - external CSSM_FIELD_PTR PolicyIdentifier; - - external CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int CLHandle, - required int CrlIdentifier, - required CSSM_TIMESTRING CrlThisTime, - required CSSM_FIELD_PTR PolicyIdentifier, - required CSSM_ACCESS_CREDENTIALS_PTR CallerCredentials, - }) => $allocator() - ..ref.CLHandle = CLHandle - ..ref.CrlIdentifier = CrlIdentifier - ..ref.CrlThisTime = CrlThisTime - ..ref.PolicyIdentifier = PolicyIdentifier - ..ref.CallerCredentials = CallerCredentials; -} - -@Deprecated('Deprecated') -final class cssm_tp_crlissue_output extends ffi.Struct { - @CSSM_TP_CRLISSUE_STATUS() - external int IssueStatus; - - external CSSM_ENCODED_CRL_PTR Crl; - - external CSSM_TIMESTRING CrlNextTime; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int IssueStatus, - required CSSM_ENCODED_CRL_PTR Crl, - required CSSM_TIMESTRING CrlNextTime, - }) => $allocator() - ..ref.IssueStatus = IssueStatus - ..ref.Crl = Crl - ..ref.CrlNextTime = CrlNextTime; -} - -@Deprecated('Deprecated') -final class cssm_tp_policyinfo extends ffi.Struct { - @uint32() - external int NumberOfPolicyIds; - - external CSSM_FIELD_PTR PolicyIds; - - external ffi.Pointer PolicyControl; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfPolicyIds, - required CSSM_FIELD_PTR PolicyIds, - required ffi.Pointer PolicyControl, - }) => $allocator() - ..ref.NumberOfPolicyIds = NumberOfPolicyIds - ..ref.PolicyIds = PolicyIds - ..ref.PolicyControl = PolicyControl; -} - -@Deprecated('Deprecated') -final class cssm_tp_request_set extends ffi.Struct { - @uint32() - external int NumberOfRequests; - - external ffi.Pointer Requests; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfRequests, - required ffi.Pointer Requests, - }) => $allocator() - ..ref.NumberOfRequests = NumberOfRequests - ..ref.Requests = Requests; -} - -final class cssm_tp_result_set extends ffi.Struct { - @uint32() - external int NumberOfResults; - - external ffi.Pointer Results; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfResults, - required ffi.Pointer Results, - }) => $allocator() - ..ref.NumberOfResults = NumberOfResults - ..ref.Results = Results; -} - -@Deprecated('Deprecated') -final class cssm_tp_verify_context extends ffi.Struct { - @CSSM_TP_ACTION() - external int Action; - - external SecAsn1Item ActionData; - - external CSSM_CRLGROUP Crls; - - external CSSM_TP_CALLERAUTH_CONTEXT_PTR Cred; -} - -@Deprecated('Deprecated') -final class cssm_tp_verify_context_result extends ffi.Struct { - @uint32() - external int NumberOfEvidences; - - external CSSM_EVIDENCE_PTR Evidence; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfEvidences, - required CSSM_EVIDENCE_PTR Evidence, - }) => $allocator() - ..ref.NumberOfEvidences = NumberOfEvidences - ..ref.Evidence = Evidence; -} - -@Deprecated('Deprecated') -final class cssm_tuplegroup extends ffi.Struct { - @uint32() - external int NumberOfTuples; - - external CSSM_TUPLE_PTR Tuples; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfTuples, - required CSSM_TUPLE_PTR Tuples, - }) => $allocator() - ..ref.NumberOfTuples = NumberOfTuples - ..ref.Tuples = Tuples; -} - -@Deprecated('Deprecated') -final class cssm_upcalls extends ffi.Struct { - external CSSM_UPCALLS_MALLOC malloc_func; - - external CSSM_UPCALLS_FREE free_func; - - external CSSM_UPCALLS_REALLOC realloc_func; - - external CSSM_UPCALLS_CALLOC calloc_func; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CC_HANDLE Cc, - CSSM_MODULE_HANDLE_PTR ModuleHandle, - ) - > - > - CcToHandle_func; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE Module, - CSSM_GUID_PTR Guid, - CSSM_VERSION_PTR Version, - ffi.Pointer SubServiceId, - ffi.Pointer SubServiceType, - ffi.Pointer AttachFlags, - ffi.Pointer KeyHierarchy, - CSSM_API_MEMORY_FUNCS_PTR AttachedMemFuncs, - CSSM_FUNC_NAME_ADDR_PTR FunctionTable, - uint32 NumFunctions, - ) - > - > - GetModuleInfo_func; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CSSM_UPCALLS_MALLOC malloc_func, - required CSSM_UPCALLS_FREE free_func, - required CSSM_UPCALLS_REALLOC realloc_func, - required CSSM_UPCALLS_CALLOC calloc_func, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_CC_HANDLE Cc, - CSSM_MODULE_HANDLE_PTR ModuleHandle, - ) - > - > - CcToHandle_func, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - CSSM_MODULE_HANDLE Module, - CSSM_GUID_PTR Guid, - CSSM_VERSION_PTR Version, - ffi.Pointer SubServiceId, - ffi.Pointer SubServiceType, - ffi.Pointer AttachFlags, - ffi.Pointer KeyHierarchy, - CSSM_API_MEMORY_FUNCS_PTR AttachedMemFuncs, - CSSM_FUNC_NAME_ADDR_PTR FunctionTable, - uint32 NumFunctions, - ) - > - > - GetModuleInfo_func, - }) => $allocator() - ..ref.malloc_func = malloc_func - ..ref.free_func = free_func - ..ref.realloc_func = realloc_func - ..ref.calloc_func = calloc_func - ..ref.CcToHandle_func = CcToHandle_func - ..ref.GetModuleInfo_func = GetModuleInfo_func; -} - -final class cssm_version extends ffi.Struct { - @uint32() - external int Major; - - @uint32() - external int Minor; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Major, - required int Minor, - }) => $allocator() - ..ref.Major = Major - ..ref.Minor = Minor; -} - -@Deprecated('Deprecated') -final class cssm_x509_extension extends ffi.Struct { - external SecAsn1Oid extnId; - - @CSSM_BOOL() - external int critical; - - @ffi.UnsignedInt() - external int formatAsInt; - - extension_data_format get format => - extension_data_format.fromValue(formatAsInt); - set format(extension_data_format value) => formatAsInt = value.value; - - external cssm_x509ext_value value; - - external SecAsn1Item BERvalue; -} - -@Deprecated('Deprecated') -final class cssm_x509_extensionTagAndValue extends ffi.Struct { - @CSSM_BER_TAG() - external int type; - - external SecAsn1Item value; -} - -@Deprecated('Deprecated') -final class cssm_x509_extensions extends ffi.Struct { - @uint32() - external int numberOfExtensions; - - external CSSM_X509_EXTENSION_PTR extensions; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfExtensions, - required CSSM_X509_EXTENSION_PTR extensions, - }) => $allocator() - ..ref.numberOfExtensions = numberOfExtensions - ..ref.extensions = extensions; -} - -@Deprecated('Deprecated') -final class cssm_x509_name extends ffi.Struct { - @uint32() - external int numberOfRDNs; - - external CSSM_X509_RDN_PTR RelativeDistinguishedName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfRDNs, - required CSSM_X509_RDN_PTR RelativeDistinguishedName, - }) => $allocator() - ..ref.numberOfRDNs = numberOfRDNs - ..ref.RelativeDistinguishedName = RelativeDistinguishedName; -} - -@Deprecated('Deprecated') -final class cssm_x509_rdn extends ffi.Struct { - @uint32() - external int numberOfPairs; - - external CSSM_X509_TYPE_VALUE_PAIR_PTR AttributeTypeAndValue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfPairs, - required CSSM_X509_TYPE_VALUE_PAIR_PTR AttributeTypeAndValue, - }) => $allocator() - ..ref.numberOfPairs = numberOfPairs - ..ref.AttributeTypeAndValue = AttributeTypeAndValue; -} - -@Deprecated('Deprecated') -final class cssm_x509_revoked_cert_entry extends ffi.Struct { - external SecAsn1Item certificateSerialNumber; - - external CSSM_X509_TIME revocationDate; - - external CSSM_X509_EXTENSIONS extensions; -} - -@Deprecated('Deprecated') -final class cssm_x509_revoked_cert_list extends ffi.Struct { - @uint32() - external int numberOfRevokedCertEntries; - - external CSSM_X509_REVOKED_CERT_ENTRY_PTR revokedCertEntry; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfRevokedCertEntries, - required CSSM_X509_REVOKED_CERT_ENTRY_PTR revokedCertEntry, - }) => $allocator() - ..ref.numberOfRevokedCertEntries = numberOfRevokedCertEntries - ..ref.revokedCertEntry = revokedCertEntry; -} - -@Deprecated('Deprecated') -final class cssm_x509_signature extends ffi.Struct { - external SecAsn1AlgId algorithmIdentifier; - - external SecAsn1Item encrypted; -} - -@Deprecated('Deprecated') -final class cssm_x509_signed_certificate extends ffi.Struct { - external CSSM_X509_TBS_CERTIFICATE certificate; - - external CSSM_X509_SIGNATURE signature; -} - -@Deprecated('Deprecated') -final class cssm_x509_signed_crl extends ffi.Struct { - external CSSM_X509_TBS_CERTLIST tbsCertList; - - external CSSM_X509_SIGNATURE signature; -} - -@Deprecated('Deprecated') -final class cssm_x509_tbs_certificate extends ffi.Struct { - external SecAsn1Item version; - - external SecAsn1Item serialNumber; - - external SecAsn1AlgId signature; - - external CSSM_X509_NAME issuer; - - external CSSM_X509_VALIDITY validity; - - external CSSM_X509_NAME subject; - - external SecAsn1PubKeyInfo subjectPublicKeyInfo; - - external SecAsn1Item issuerUniqueIdentifier; - - external SecAsn1Item subjectUniqueIdentifier; - - external CSSM_X509_EXTENSIONS extensions; -} - -@Deprecated('Deprecated') -final class cssm_x509_tbs_certlist extends ffi.Struct { - external SecAsn1Item version; - - external SecAsn1AlgId signature; - - external CSSM_X509_NAME issuer; - - external CSSM_X509_TIME thisUpdate; - - external CSSM_X509_TIME nextUpdate; - - external CSSM_X509_REVOKED_CERT_LIST_PTR revokedCertificates; - - external CSSM_X509_EXTENSIONS extensions; -} - -@Deprecated('Deprecated') -final class cssm_x509_time extends ffi.Struct { - @CSSM_BER_TAG() - external int timeType; - - external SecAsn1Item time$1; -} - -@Deprecated('Deprecated') -final class cssm_x509_type_value_pair extends ffi.Struct { - external SecAsn1Oid type; - - @CSSM_BER_TAG() - external int valueType; - - external SecAsn1Item value; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_basicConstraints extends ffi.Struct { - @CSSM_BOOL() - external int cA; - - @CSSM_X509_OPTION() - external int pathLenConstraintPresent; - - @uint32() - external int pathLenConstraint; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cA, - required int pathLenConstraintPresent, - required int pathLenConstraint, - }) => $allocator() - ..ref.cA = cA - ..ref.pathLenConstraintPresent = pathLenConstraintPresent - ..ref.pathLenConstraint = pathLenConstraint; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_pair extends ffi.Struct { - external CSSM_X509EXT_TAGandVALUE tagAndValue; - - external ffi.Pointer parsedValue; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_policyInfo extends ffi.Struct { - external SecAsn1Oid policyIdentifier; - - external CSSM_X509EXT_POLICYQUALIFIERS policyQualifiers; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_policyQualifierInfo extends ffi.Struct { - external SecAsn1Oid policyQualifierId; - - external SecAsn1Item value; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_policyQualifiers extends ffi.Struct { - @uint32() - external int numberOfPolicyQualifiers; - - external ffi.Pointer policyQualifier; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int numberOfPolicyQualifiers, - required ffi.Pointer policyQualifier, - }) => $allocator() - ..ref.numberOfPolicyQualifiers = numberOfPolicyQualifiers - ..ref.policyQualifier = policyQualifier; -} - -@Deprecated('Deprecated') -final class cssm_x509ext_value extends ffi.Union { - external ffi.Pointer tagAndValue; - - external ffi.Pointer parsedValue; - - external ffi.Pointer valuePair; -} - -typedef ct_rune_t = __darwin_ct_rune_t; -typedef cups_acopy_func_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer element, - ffi.Pointer data, - ) - > - >; - -enum cups_adv_e { - CUPS_ADVANCE_NONE(0), - CUPS_ADVANCE_FILE(1), - CUPS_ADVANCE_JOB(2), - CUPS_ADVANCE_SET(3), - CUPS_ADVANCE_PAGE(4); - - final int value; - const cups_adv_e(this.value); - - static cups_adv_e fromValue(int value) => switch (value) { - 0 => CUPS_ADVANCE_NONE, - 1 => CUPS_ADVANCE_FILE, - 2 => CUPS_ADVANCE_JOB, - 3 => CUPS_ADVANCE_SET, - 4 => CUPS_ADVANCE_PAGE, - _ => throw ArgumentError('Unknown value for cups_adv_e: $value'), - }; -} - -typedef cups_afree_func_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer element, - ffi.Pointer data, - ) - > - >; -typedef cups_ahash_func_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer element, - ffi.Pointer data, - ) - > - >; -typedef cups_array_func_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer first, - ffi.Pointer second, - ffi.Pointer data, - ) - > - >; -typedef cups_array_t = _cups_array_s; - -enum cups_bool_e { - CUPS_FALSE(0), - CUPS_TRUE(1); - - final int value; - const cups_bool_e(this.value); - - static cups_bool_e fromValue(int value) => switch (value) { - 0 => CUPS_FALSE, - 1 => CUPS_TRUE, - _ => throw ArgumentError('Unknown value for cups_bool_e: $value'), - }; -} - -typedef cups_client_cert_cb_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer http, - ffi.Pointer tls, - ffi.Pointer distinguished_names, - ffi.Pointer user_data, - ) - > - >; - -enum cups_cspace_e { - CUPS_CSPACE_W(0), - CUPS_CSPACE_RGB(1), - CUPS_CSPACE_RGBA(2), - CUPS_CSPACE_K(3), - CUPS_CSPACE_CMY(4), - CUPS_CSPACE_YMC(5), - CUPS_CSPACE_CMYK(6), - CUPS_CSPACE_YMCK(7), - CUPS_CSPACE_KCMY(8), - CUPS_CSPACE_KCMYcm(9), - CUPS_CSPACE_GMCK(10), - CUPS_CSPACE_GMCS(11), - CUPS_CSPACE_WHITE(12), - CUPS_CSPACE_GOLD(13), - CUPS_CSPACE_SILVER(14), - CUPS_CSPACE_CIEXYZ(15), - CUPS_CSPACE_CIELab(16), - CUPS_CSPACE_RGBW(17), - CUPS_CSPACE_SW(18), - CUPS_CSPACE_SRGB(19), - CUPS_CSPACE_ADOBERGB(20), - CUPS_CSPACE_P3E(21), - CUPS_CSPACE_GRAYE(22), - CUPS_CSPACE_ICC1(32), - CUPS_CSPACE_ICC2(33), - CUPS_CSPACE_ICC3(34), - CUPS_CSPACE_ICC4(35), - CUPS_CSPACE_ICC5(36), - CUPS_CSPACE_ICC6(37), - CUPS_CSPACE_ICC7(38), - CUPS_CSPACE_ICC8(39), - CUPS_CSPACE_ICC9(40), - CUPS_CSPACE_ICCA(41), - CUPS_CSPACE_ICCB(42), - CUPS_CSPACE_ICCC(43), - CUPS_CSPACE_ICCD(44), - CUPS_CSPACE_ICCE(45), - CUPS_CSPACE_ICCF(46), - CUPS_CSPACE_DEVICE1(48), - CUPS_CSPACE_DEVICE2(49), - CUPS_CSPACE_DEVICE3(50), - CUPS_CSPACE_DEVICE4(51), - CUPS_CSPACE_DEVICE5(52), - CUPS_CSPACE_DEVICE6(53), - CUPS_CSPACE_DEVICE7(54), - CUPS_CSPACE_DEVICE8(55), - CUPS_CSPACE_DEVICE9(56), - CUPS_CSPACE_DEVICEA(57), - CUPS_CSPACE_DEVICEB(58), - CUPS_CSPACE_DEVICEC(59), - CUPS_CSPACE_DEVICED(60), - CUPS_CSPACE_DEVICEE(61), - CUPS_CSPACE_DEVICEF(62); - - final int value; - const cups_cspace_e(this.value); - - static cups_cspace_e fromValue(int value) => switch (value) { - 0 => CUPS_CSPACE_W, - 1 => CUPS_CSPACE_RGB, - 2 => CUPS_CSPACE_RGBA, - 3 => CUPS_CSPACE_K, - 4 => CUPS_CSPACE_CMY, - 5 => CUPS_CSPACE_YMC, - 6 => CUPS_CSPACE_CMYK, - 7 => CUPS_CSPACE_YMCK, - 8 => CUPS_CSPACE_KCMY, - 9 => CUPS_CSPACE_KCMYcm, - 10 => CUPS_CSPACE_GMCK, - 11 => CUPS_CSPACE_GMCS, - 12 => CUPS_CSPACE_WHITE, - 13 => CUPS_CSPACE_GOLD, - 14 => CUPS_CSPACE_SILVER, - 15 => CUPS_CSPACE_CIEXYZ, - 16 => CUPS_CSPACE_CIELab, - 17 => CUPS_CSPACE_RGBW, - 18 => CUPS_CSPACE_SW, - 19 => CUPS_CSPACE_SRGB, - 20 => CUPS_CSPACE_ADOBERGB, - 21 => CUPS_CSPACE_P3E, - 22 => CUPS_CSPACE_GRAYE, - 32 => CUPS_CSPACE_ICC1, - 33 => CUPS_CSPACE_ICC2, - 34 => CUPS_CSPACE_ICC3, - 35 => CUPS_CSPACE_ICC4, - 36 => CUPS_CSPACE_ICC5, - 37 => CUPS_CSPACE_ICC6, - 38 => CUPS_CSPACE_ICC7, - 39 => CUPS_CSPACE_ICC8, - 40 => CUPS_CSPACE_ICC9, - 41 => CUPS_CSPACE_ICCA, - 42 => CUPS_CSPACE_ICCB, - 43 => CUPS_CSPACE_ICCC, - 44 => CUPS_CSPACE_ICCD, - 45 => CUPS_CSPACE_ICCE, - 46 => CUPS_CSPACE_ICCF, - 48 => CUPS_CSPACE_DEVICE1, - 49 => CUPS_CSPACE_DEVICE2, - 50 => CUPS_CSPACE_DEVICE3, - 51 => CUPS_CSPACE_DEVICE4, - 52 => CUPS_CSPACE_DEVICE5, - 53 => CUPS_CSPACE_DEVICE6, - 54 => CUPS_CSPACE_DEVICE7, - 55 => CUPS_CSPACE_DEVICE8, - 56 => CUPS_CSPACE_DEVICE9, - 57 => CUPS_CSPACE_DEVICEA, - 58 => CUPS_CSPACE_DEVICEB, - 59 => CUPS_CSPACE_DEVICEC, - 60 => CUPS_CSPACE_DEVICED, - 61 => CUPS_CSPACE_DEVICEE, - 62 => CUPS_CSPACE_DEVICEF, - _ => throw ArgumentError('Unknown value for cups_cspace_e: $value'), - }; -} - -enum cups_cut_e { - CUPS_CUT_NONE(0), - CUPS_CUT_FILE(1), - CUPS_CUT_JOB(2), - CUPS_CUT_SET(3), - CUPS_CUT_PAGE(4); - - final int value; - const cups_cut_e(this.value); - - static cups_cut_e fromValue(int value) => switch (value) { - 0 => CUPS_CUT_NONE, - 1 => CUPS_CUT_FILE, - 2 => CUPS_CUT_JOB, - 3 => CUPS_CUT_SET, - 4 => CUPS_CUT_PAGE, - _ => throw ArgumentError('Unknown value for cups_cut_e: $value'), - }; -} - -typedef cups_dest_block_t = ffi.Pointer; -typedef Dartcups_dest_block_t = - objc.ObjCBlock)>; -typedef cups_dest_cb_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer user_data, - ffi.UnsignedInt flags, - ffi.Pointer dest, - ) - > - >; - -final class cups_dest_s extends ffi.Struct { - external ffi.Pointer name; - - external ffi.Pointer instance; - - @ffi.Int() - external int is_default; - - @ffi.Int() - external int num_options; - - external ffi.Pointer options; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer name, - required ffi.Pointer instance, - required int is_default, - required int num_options, - required ffi.Pointer options, - }) => $allocator() - ..ref.name = name - ..ref.instance = instance - ..ref.is_default = is_default - ..ref.num_options = num_options - ..ref.options = options; -} - -typedef cups_dest_t = cups_dest_s; -typedef cups_dinfo_t = _cups_dinfo_s; - -enum cups_edge_e { - CUPS_EDGE_TOP(0), - CUPS_EDGE_RIGHT(1), - CUPS_EDGE_BOTTOM(2), - CUPS_EDGE_LEFT(3); - - final int value; - const cups_edge_e(this.value); - - static cups_edge_e fromValue(int value) => switch (value) { - 0 => CUPS_EDGE_TOP, - 1 => CUPS_EDGE_RIGHT, - 2 => CUPS_EDGE_BOTTOM, - 3 => CUPS_EDGE_LEFT, - _ => throw ArgumentError('Unknown value for cups_edge_e: $value'), - }; -} - -enum cups_encoding_e { - CUPS_AUTO_ENCODING(-1), - CUPS_US_ASCII(0), - CUPS_ISO8859_1(1), - CUPS_ISO8859_2(2), - CUPS_ISO8859_3(3), - CUPS_ISO8859_4(4), - CUPS_ISO8859_5(5), - CUPS_ISO8859_6(6), - CUPS_ISO8859_7(7), - CUPS_ISO8859_8(8), - CUPS_ISO8859_9(9), - CUPS_ISO8859_10(10), - CUPS_UTF8(11), - CUPS_ISO8859_13(12), - CUPS_ISO8859_14(13), - CUPS_ISO8859_15(14), - CUPS_WINDOWS_874(15), - CUPS_WINDOWS_1250(16), - CUPS_WINDOWS_1251(17), - CUPS_WINDOWS_1252(18), - CUPS_WINDOWS_1253(19), - CUPS_WINDOWS_1254(20), - CUPS_WINDOWS_1255(21), - CUPS_WINDOWS_1256(22), - CUPS_WINDOWS_1257(23), - CUPS_WINDOWS_1258(24), - CUPS_KOI8_R(25), - CUPS_KOI8_U(26), - CUPS_ISO8859_11(27), - CUPS_ISO8859_16(28), - CUPS_MAC_ROMAN(29), - CUPS_ENCODING_SBCS_END(63), - CUPS_WINDOWS_932(64), - CUPS_WINDOWS_936(65), - CUPS_WINDOWS_949(66), - CUPS_WINDOWS_950(67), - CUPS_WINDOWS_1361(68), - CUPS_ENCODING_DBCS_END(127), - CUPS_EUC_CN(128), - CUPS_EUC_JP(129), - CUPS_EUC_KR(130), - CUPS_EUC_TW(131), - CUPS_JIS_X0213(132), - CUPS_ENCODING_VBCS_END(191); - - final int value; - const cups_encoding_e(this.value); - - static cups_encoding_e fromValue(int value) => switch (value) { - -1 => CUPS_AUTO_ENCODING, - 0 => CUPS_US_ASCII, - 1 => CUPS_ISO8859_1, - 2 => CUPS_ISO8859_2, - 3 => CUPS_ISO8859_3, - 4 => CUPS_ISO8859_4, - 5 => CUPS_ISO8859_5, - 6 => CUPS_ISO8859_6, - 7 => CUPS_ISO8859_7, - 8 => CUPS_ISO8859_8, - 9 => CUPS_ISO8859_9, - 10 => CUPS_ISO8859_10, - 11 => CUPS_UTF8, - 12 => CUPS_ISO8859_13, - 13 => CUPS_ISO8859_14, - 14 => CUPS_ISO8859_15, - 15 => CUPS_WINDOWS_874, - 16 => CUPS_WINDOWS_1250, - 17 => CUPS_WINDOWS_1251, - 18 => CUPS_WINDOWS_1252, - 19 => CUPS_WINDOWS_1253, - 20 => CUPS_WINDOWS_1254, - 21 => CUPS_WINDOWS_1255, - 22 => CUPS_WINDOWS_1256, - 23 => CUPS_WINDOWS_1257, - 24 => CUPS_WINDOWS_1258, - 25 => CUPS_KOI8_R, - 26 => CUPS_KOI8_U, - 27 => CUPS_ISO8859_11, - 28 => CUPS_ISO8859_16, - 29 => CUPS_MAC_ROMAN, - 63 => CUPS_ENCODING_SBCS_END, - 64 => CUPS_WINDOWS_932, - 65 => CUPS_WINDOWS_936, - 66 => CUPS_WINDOWS_949, - 67 => CUPS_WINDOWS_950, - 68 => CUPS_WINDOWS_1361, - 127 => CUPS_ENCODING_DBCS_END, - 128 => CUPS_EUC_CN, - 129 => CUPS_EUC_JP, - 130 => CUPS_EUC_KR, - 131 => CUPS_EUC_TW, - 132 => CUPS_JIS_X0213, - 191 => CUPS_ENCODING_VBCS_END, - _ => throw ArgumentError('Unknown value for cups_encoding_e: $value'), - }; -} - -typedef cups_file_t = _cups_file_s; -typedef cups_interpret_cb_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer header, - ffi.Int preferred_bits, - ) - > - >; - -final class cups_job_s extends ffi.Struct { - @ffi.Int() - external int id; - - external ffi.Pointer dest; - - external ffi.Pointer title; - - external ffi.Pointer user; - - external ffi.Pointer format; - - @ffi.UnsignedInt() - external int stateAsInt; - - ipp_jstate_e get state => ipp_jstate_e.fromValue(stateAsInt); - set state(ipp_jstate_e value) => stateAsInt = value.value; - - @ffi.Int() - external int size; - - @ffi.Int() - external int priority; - - @time_t() - external int completed_time; - - @time_t() - external int creation_time; - - @time_t() - external int processing_time; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int id, - required ffi.Pointer dest, - required ffi.Pointer title, - required ffi.Pointer user, - required ffi.Pointer format, - required ipp_jstate_e state, - required int size, - required int priority, - required int completed_time, - required int creation_time, - required int processing_time, - }) => $allocator() - ..ref.id = id - ..ref.dest = dest - ..ref.title = title - ..ref.user = user - ..ref.format = format - ..ref.state = state - ..ref.size = size - ..ref.priority = priority - ..ref.completed_time = completed_time - ..ref.creation_time = creation_time - ..ref.processing_time = processing_time; -} - -typedef cups_job_t = cups_job_s; - -enum cups_jog_e { - CUPS_JOG_NONE(0), - CUPS_JOG_FILE(1), - CUPS_JOG_JOB(2), - CUPS_JOG_SET(3); - - final int value; - const cups_jog_e(this.value); - - static cups_jog_e fromValue(int value) => switch (value) { - 0 => CUPS_JOG_NONE, - 1 => CUPS_JOG_FILE, - 2 => CUPS_JOG_JOB, - 3 => CUPS_JOG_SET, - _ => throw ArgumentError('Unknown value for cups_jog_e: $value'), - }; -} - -final class cups_lang_s extends ffi.Struct { - external ffi.Pointer next; - - @ffi.Int() - external int used; - - @ffi.Int() - external int encodingAsInt; - - cups_encoding_e get encoding => cups_encoding_e.fromValue(encodingAsInt); - set encoding(cups_encoding_e value) => encodingAsInt = value.value; - - @ffi.Array.multi([16]) - external ffi.Array language; - - external ffi.Pointer strings; -} - -typedef cups_lang_t = cups_lang_s; - -enum cups_mode_e { - CUPS_RASTER_READ(0), - CUPS_RASTER_WRITE(1), - CUPS_RASTER_WRITE_COMPRESSED(2), - CUPS_RASTER_WRITE_PWG(3), - CUPS_RASTER_WRITE_APPLE(4); - - final int value; - const cups_mode_e(this.value); - - static cups_mode_e fromValue(int value) => switch (value) { - 0 => CUPS_RASTER_READ, - 1 => CUPS_RASTER_WRITE, - 2 => CUPS_RASTER_WRITE_COMPRESSED, - 3 => CUPS_RASTER_WRITE_PWG, - 4 => CUPS_RASTER_WRITE_APPLE, - _ => throw ArgumentError('Unknown value for cups_mode_e: $value'), - }; -} - -final class cups_option_s extends ffi.Struct { - external ffi.Pointer name; - - external ffi.Pointer value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer name, - required ffi.Pointer value, - }) => $allocator() - ..ref.name = name - ..ref.value = value; -} - -typedef cups_option_t = cups_option_s; - -enum cups_order_e { - CUPS_ORDER_CHUNKED(0), - CUPS_ORDER_BANDED(1), - CUPS_ORDER_PLANAR(2); - - final int value; - const cups_order_e(this.value); - - static cups_order_e fromValue(int value) => switch (value) { - 0 => CUPS_ORDER_CHUNKED, - 1 => CUPS_ORDER_BANDED, - 2 => CUPS_ORDER_PLANAR, - _ => throw ArgumentError('Unknown value for cups_order_e: $value'), - }; -} - -enum cups_orient_e { - CUPS_ORIENT_0(0), - CUPS_ORIENT_90(1), - CUPS_ORIENT_180(2), - CUPS_ORIENT_270(3); - - final int value; - const cups_orient_e(this.value); - - static cups_orient_e fromValue(int value) => switch (value) { - 0 => CUPS_ORIENT_0, - 1 => CUPS_ORIENT_90, - 2 => CUPS_ORIENT_180, - 3 => CUPS_ORIENT_270, - _ => throw ArgumentError('Unknown value for cups_orient_e: $value'), - }; -} - -final class cups_page_header2_s extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array MediaClass; - - @ffi.Array.multi([64]) - external ffi.Array MediaColor; - - @ffi.Array.multi([64]) - external ffi.Array MediaType; - - @ffi.Array.multi([64]) - external ffi.Array OutputType; - - @ffi.UnsignedInt() - external int AdvanceDistance; - - @ffi.UnsignedInt() - external int AdvanceMediaAsInt; - - cups_adv_e get AdvanceMedia => cups_adv_e.fromValue(AdvanceMediaAsInt); - set AdvanceMedia(cups_adv_e value) => AdvanceMediaAsInt = value.value; - - @ffi.UnsignedInt() - external int CollateAsInt; - - cups_bool_e get Collate => cups_bool_e.fromValue(CollateAsInt); - set Collate(cups_bool_e value) => CollateAsInt = value.value; - - @ffi.UnsignedInt() - external int CutMediaAsInt; - - cups_cut_e get CutMedia => cups_cut_e.fromValue(CutMediaAsInt); - set CutMedia(cups_cut_e value) => CutMediaAsInt = value.value; - - @ffi.UnsignedInt() - external int DuplexAsInt; - - cups_bool_e get Duplex => cups_bool_e.fromValue(DuplexAsInt); - set Duplex(cups_bool_e value) => DuplexAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array HWResolution; - - @ffi.Array.multi([4]) - external ffi.Array ImagingBoundingBox; - - @ffi.UnsignedInt() - external int InsertSheetAsInt; - - cups_bool_e get InsertSheet => cups_bool_e.fromValue(InsertSheetAsInt); - set InsertSheet(cups_bool_e value) => InsertSheetAsInt = value.value; - - @ffi.UnsignedInt() - external int JogAsInt; - - cups_jog_e get Jog => cups_jog_e.fromValue(JogAsInt); - set Jog(cups_jog_e value) => JogAsInt = value.value; - - @ffi.UnsignedInt() - external int LeadingEdgeAsInt; - - cups_edge_e get LeadingEdge => cups_edge_e.fromValue(LeadingEdgeAsInt); - set LeadingEdge(cups_edge_e value) => LeadingEdgeAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array Margins; - - @ffi.UnsignedInt() - external int ManualFeedAsInt; - - cups_bool_e get ManualFeed => cups_bool_e.fromValue(ManualFeedAsInt); - set ManualFeed(cups_bool_e value) => ManualFeedAsInt = value.value; - - @ffi.UnsignedInt() - external int MediaPosition; - - @ffi.UnsignedInt() - external int MediaWeight; - - @ffi.UnsignedInt() - external int MirrorPrintAsInt; - - cups_bool_e get MirrorPrint => cups_bool_e.fromValue(MirrorPrintAsInt); - set MirrorPrint(cups_bool_e value) => MirrorPrintAsInt = value.value; - - @ffi.UnsignedInt() - external int NegativePrintAsInt; - - cups_bool_e get NegativePrint => cups_bool_e.fromValue(NegativePrintAsInt); - set NegativePrint(cups_bool_e value) => NegativePrintAsInt = value.value; - - @ffi.UnsignedInt() - external int NumCopies; - - @ffi.UnsignedInt() - external int OrientationAsInt; - - cups_orient_e get Orientation => cups_orient_e.fromValue(OrientationAsInt); - set Orientation(cups_orient_e value) => OrientationAsInt = value.value; - - @ffi.UnsignedInt() - external int OutputFaceUpAsInt; - - cups_bool_e get OutputFaceUp => cups_bool_e.fromValue(OutputFaceUpAsInt); - set OutputFaceUp(cups_bool_e value) => OutputFaceUpAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array PageSize; - - @ffi.UnsignedInt() - external int SeparationsAsInt; - - cups_bool_e get Separations => cups_bool_e.fromValue(SeparationsAsInt); - set Separations(cups_bool_e value) => SeparationsAsInt = value.value; - - @ffi.UnsignedInt() - external int TraySwitchAsInt; - - cups_bool_e get TraySwitch => cups_bool_e.fromValue(TraySwitchAsInt); - set TraySwitch(cups_bool_e value) => TraySwitchAsInt = value.value; - - @ffi.UnsignedInt() - external int TumbleAsInt; - - cups_bool_e get Tumble => cups_bool_e.fromValue(TumbleAsInt); - set Tumble(cups_bool_e value) => TumbleAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsWidth; - - @ffi.UnsignedInt() - external int cupsHeight; - - @ffi.UnsignedInt() - external int cupsMediaType; - - @ffi.UnsignedInt() - external int cupsBitsPerColor; - - @ffi.UnsignedInt() - external int cupsBitsPerPixel; - - @ffi.UnsignedInt() - external int cupsBytesPerLine; - - @ffi.UnsignedInt() - external int cupsColorOrderAsInt; - - cups_order_e get cupsColorOrder => - cups_order_e.fromValue(cupsColorOrderAsInt); - set cupsColorOrder(cups_order_e value) => cupsColorOrderAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsColorSpaceAsInt; - - cups_cspace_e get cupsColorSpace => - cups_cspace_e.fromValue(cupsColorSpaceAsInt); - set cupsColorSpace(cups_cspace_e value) => cupsColorSpaceAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsCompression; - - @ffi.UnsignedInt() - external int cupsRowCount; - - @ffi.UnsignedInt() - external int cupsRowFeed; - - @ffi.UnsignedInt() - external int cupsRowStep; - - @ffi.UnsignedInt() - external int cupsNumColors; - - @ffi.Float() - external double cupsBorderlessScalingFactor; - - @ffi.Array.multi([2]) - external ffi.Array cupsPageSize; - - @ffi.Array.multi([4]) - external ffi.Array cupsImagingBBox; - - @ffi.Array.multi([16]) - external ffi.Array cupsInteger; - - @ffi.Array.multi([16]) - external ffi.Array cupsReal; - - @ffi.Array.multi([16, 64]) - external ffi.Array> cupsString; - - @ffi.Array.multi([64]) - external ffi.Array cupsMarkerType; - - @ffi.Array.multi([64]) - external ffi.Array cupsRenderingIntent; - - @ffi.Array.multi([64]) - external ffi.Array cupsPageSizeName; -} - -typedef cups_page_header2_t = cups_page_header2_s; - -final class cups_page_header_s extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array MediaClass; - - @ffi.Array.multi([64]) - external ffi.Array MediaColor; - - @ffi.Array.multi([64]) - external ffi.Array MediaType; - - @ffi.Array.multi([64]) - external ffi.Array OutputType; - - @ffi.UnsignedInt() - external int AdvanceDistance; - - @ffi.UnsignedInt() - external int AdvanceMediaAsInt; - - cups_adv_e get AdvanceMedia => cups_adv_e.fromValue(AdvanceMediaAsInt); - set AdvanceMedia(cups_adv_e value) => AdvanceMediaAsInt = value.value; - - @ffi.UnsignedInt() - external int CollateAsInt; - - cups_bool_e get Collate => cups_bool_e.fromValue(CollateAsInt); - set Collate(cups_bool_e value) => CollateAsInt = value.value; - - @ffi.UnsignedInt() - external int CutMediaAsInt; - - cups_cut_e get CutMedia => cups_cut_e.fromValue(CutMediaAsInt); - set CutMedia(cups_cut_e value) => CutMediaAsInt = value.value; - - @ffi.UnsignedInt() - external int DuplexAsInt; - - cups_bool_e get Duplex => cups_bool_e.fromValue(DuplexAsInt); - set Duplex(cups_bool_e value) => DuplexAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array HWResolution; - - @ffi.Array.multi([4]) - external ffi.Array ImagingBoundingBox; - - @ffi.UnsignedInt() - external int InsertSheetAsInt; - - cups_bool_e get InsertSheet => cups_bool_e.fromValue(InsertSheetAsInt); - set InsertSheet(cups_bool_e value) => InsertSheetAsInt = value.value; - - @ffi.UnsignedInt() - external int JogAsInt; - - cups_jog_e get Jog => cups_jog_e.fromValue(JogAsInt); - set Jog(cups_jog_e value) => JogAsInt = value.value; - - @ffi.UnsignedInt() - external int LeadingEdgeAsInt; - - cups_edge_e get LeadingEdge => cups_edge_e.fromValue(LeadingEdgeAsInt); - set LeadingEdge(cups_edge_e value) => LeadingEdgeAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array Margins; - - @ffi.UnsignedInt() - external int ManualFeedAsInt; - - cups_bool_e get ManualFeed => cups_bool_e.fromValue(ManualFeedAsInt); - set ManualFeed(cups_bool_e value) => ManualFeedAsInt = value.value; - - @ffi.UnsignedInt() - external int MediaPosition; - - @ffi.UnsignedInt() - external int MediaWeight; - - @ffi.UnsignedInt() - external int MirrorPrintAsInt; - - cups_bool_e get MirrorPrint => cups_bool_e.fromValue(MirrorPrintAsInt); - set MirrorPrint(cups_bool_e value) => MirrorPrintAsInt = value.value; - - @ffi.UnsignedInt() - external int NegativePrintAsInt; - - cups_bool_e get NegativePrint => cups_bool_e.fromValue(NegativePrintAsInt); - set NegativePrint(cups_bool_e value) => NegativePrintAsInt = value.value; - - @ffi.UnsignedInt() - external int NumCopies; - - @ffi.UnsignedInt() - external int OrientationAsInt; - - cups_orient_e get Orientation => cups_orient_e.fromValue(OrientationAsInt); - set Orientation(cups_orient_e value) => OrientationAsInt = value.value; - - @ffi.UnsignedInt() - external int OutputFaceUpAsInt; - - cups_bool_e get OutputFaceUp => cups_bool_e.fromValue(OutputFaceUpAsInt); - set OutputFaceUp(cups_bool_e value) => OutputFaceUpAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array PageSize; - - @ffi.UnsignedInt() - external int SeparationsAsInt; - - cups_bool_e get Separations => cups_bool_e.fromValue(SeparationsAsInt); - set Separations(cups_bool_e value) => SeparationsAsInt = value.value; - - @ffi.UnsignedInt() - external int TraySwitchAsInt; - - cups_bool_e get TraySwitch => cups_bool_e.fromValue(TraySwitchAsInt); - set TraySwitch(cups_bool_e value) => TraySwitchAsInt = value.value; - - @ffi.UnsignedInt() - external int TumbleAsInt; - - cups_bool_e get Tumble => cups_bool_e.fromValue(TumbleAsInt); - set Tumble(cups_bool_e value) => TumbleAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsWidth; - - @ffi.UnsignedInt() - external int cupsHeight; - - @ffi.UnsignedInt() - external int cupsMediaType; - - @ffi.UnsignedInt() - external int cupsBitsPerColor; - - @ffi.UnsignedInt() - external int cupsBitsPerPixel; - - @ffi.UnsignedInt() - external int cupsBytesPerLine; - - @ffi.UnsignedInt() - external int cupsColorOrderAsInt; - - cups_order_e get cupsColorOrder => - cups_order_e.fromValue(cupsColorOrderAsInt); - set cupsColorOrder(cups_order_e value) => cupsColorOrderAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsColorSpaceAsInt; - - cups_cspace_e get cupsColorSpace => - cups_cspace_e.fromValue(cupsColorSpaceAsInt); - set cupsColorSpace(cups_cspace_e value) => cupsColorSpaceAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsCompression; - - @ffi.UnsignedInt() - external int cupsRowCount; - - @ffi.UnsignedInt() - external int cupsRowFeed; - - @ffi.UnsignedInt() - external int cupsRowStep; -} - -typedef cups_page_header_t = cups_page_header_s; -typedef cups_password_cb2_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer prompt, - ffi.Pointer http, - ffi.Pointer method, - ffi.Pointer resource, - ffi.Pointer user_data, - ) - > - >; -typedef cups_password_cb_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer prompt) - > - >; - -enum cups_ptype_e { - CUPS_PRINTER_LOCAL(0), - CUPS_PRINTER_CLASS(1), - CUPS_PRINTER_REMOTE(2), - CUPS_PRINTER_BW(4), - CUPS_PRINTER_COLOR(8), - CUPS_PRINTER_DUPLEX(16), - CUPS_PRINTER_STAPLE(32), - CUPS_PRINTER_COPIES(64), - CUPS_PRINTER_COLLATE(128), - CUPS_PRINTER_PUNCH(256), - CUPS_PRINTER_COVER(512), - CUPS_PRINTER_BIND(1024), - CUPS_PRINTER_SORT(2048), - CUPS_PRINTER_SMALL(4096), - CUPS_PRINTER_MEDIUM(8192), - CUPS_PRINTER_LARGE(16384), - CUPS_PRINTER_VARIABLE(32768), - CUPS_PRINTER_IMPLICIT(65536), - CUPS_PRINTER_DEFAULT(131072), - CUPS_PRINTER_FAX(262144), - CUPS_PRINTER_REJECTING(524288), - CUPS_PRINTER_DELETE(1048576), - CUPS_PRINTER_NOT_SHARED(2097152), - CUPS_PRINTER_AUTHENTICATED(4194304), - CUPS_PRINTER_COMMANDS(8388608), - CUPS_PRINTER_DISCOVERED(16777216), - CUPS_PRINTER_SCANNER(33554432), - CUPS_PRINTER_MFP(67108864), - CUPS_PRINTER_3D(134217728), - CUPS_PRINTER_OPTIONS(458748); - - final int value; - const cups_ptype_e(this.value); - - static cups_ptype_e fromValue(int value) => switch (value) { - 0 => CUPS_PRINTER_LOCAL, - 1 => CUPS_PRINTER_CLASS, - 2 => CUPS_PRINTER_REMOTE, - 4 => CUPS_PRINTER_BW, - 8 => CUPS_PRINTER_COLOR, - 16 => CUPS_PRINTER_DUPLEX, - 32 => CUPS_PRINTER_STAPLE, - 64 => CUPS_PRINTER_COPIES, - 128 => CUPS_PRINTER_COLLATE, - 256 => CUPS_PRINTER_PUNCH, - 512 => CUPS_PRINTER_COVER, - 1024 => CUPS_PRINTER_BIND, - 2048 => CUPS_PRINTER_SORT, - 4096 => CUPS_PRINTER_SMALL, - 8192 => CUPS_PRINTER_MEDIUM, - 16384 => CUPS_PRINTER_LARGE, - 32768 => CUPS_PRINTER_VARIABLE, - 65536 => CUPS_PRINTER_IMPLICIT, - 131072 => CUPS_PRINTER_DEFAULT, - 262144 => CUPS_PRINTER_FAX, - 524288 => CUPS_PRINTER_REJECTING, - 1048576 => CUPS_PRINTER_DELETE, - 2097152 => CUPS_PRINTER_NOT_SHARED, - 4194304 => CUPS_PRINTER_AUTHENTICATED, - 8388608 => CUPS_PRINTER_COMMANDS, - 16777216 => CUPS_PRINTER_DISCOVERED, - 33554432 => CUPS_PRINTER_SCANNER, - 67108864 => CUPS_PRINTER_MFP, - 134217728 => CUPS_PRINTER_3D, - 458748 => CUPS_PRINTER_OPTIONS, - _ => throw ArgumentError('Unknown value for cups_ptype_e: $value'), - }; -} - -typedef cups_ptype_t = ffi.UnsignedInt; -typedef Dartcups_ptype_t = int; -typedef cups_raster_iocb_t = - ffi.Pointer< - ffi.NativeFunction< - ssize_t Function( - ffi.Pointer ctx, - ffi.Pointer buffer, - ffi.Size length, - ) - > - >; -typedef cups_raster_t = _cups_raster_s; -typedef cups_server_cert_cb_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer http, - ffi.Pointer tls, - ffi.Pointer certs, - ffi.Pointer user_data, - ) - > - >; - -final class cups_size_s extends ffi.Struct { - @ffi.Array.multi([128]) - external ffi.Array media; - - @ffi.Int() - external int width; - - @ffi.Int() - external int length; - - @ffi.Int() - external int bottom; - - @ffi.Int() - external int left; - - @ffi.Int() - external int right; - - @ffi.Int() - external int top; -} - -typedef cups_size_t = cups_size_s; - -const int curNumberPartsVersion = 1; - -const int currLeadingZ = 128; - -const int currNegSym = 32; - -const int currSymLead = 16; - -const int currTrailingZ = 64; - -const int currentCurLang = -4; - -const int currentDefLang = -5; - -const int cursorDev = 14; - -const int cutDev = 10; - -const int dInstErr = -26; - -const int dRemovErr = -25; - -typedef daddr_t = ffi.Int32; -typedef Dartdaddr_t = int; - -const int dataAlreadyClosed = -2045; - -const int dataAlreadyOpenForWrite = -2044; - -const int dataNoDataRef = -2047; - -const int dataNotOpenForRead = -2042; - -const int dataNotOpenForWrite = -2043; - -const int dataVerErr = -68; - -const int dateStdMask = 127; - -const int dateTimeInvalid = 34816; - -const int dateTimeNotFound = 33792; - -const int dayField = 3; - -const int dayLdingZ = 32; - -const int dayMask = 8; - -const int dayOfWeekField = 7; - -const int dayOfWeekMask = 128; - -const int dayOfYearField = 8; - -const int dayOfYearMask = 256; - -@Deprecated('Deprecated') -const int dblDagger = 224; - -const int dceExtErr = -30; - -const int dcmBadDataSizeErr = -7117; - -const int dcmBadDictionaryErr = -7102; - -const int dcmBadFeatureErr = -7124; - -const int dcmBadFieldInfoErr = -7111; - -const int dcmBadFieldTypeErr = -7112; - -const int dcmBadFindMethodErr = -7118; - -const int dcmBadKeyErr = -7115; - -const int dcmBadPropertyErr = -7119; - -const int dcmBlockFullErr = -7107; - -const int dcmBufferOverflowErr = -7127; - -const int dcmDictionaryBusyErr = -7105; - -const int dcmDictionaryNotOpenErr = -7104; - -const int dcmDupRecordErr = -7109; - -const int dcmIterationCompleteErr = -7126; - -const int dcmNecessaryFieldErr = -7110; - -const int dcmNoAccessMethodErr = -7122; - -const int dcmNoFieldErr = -7113; - -const int dcmNoRecordErr = -7108; - -const int dcmNotDictionaryErr = -7101; - -const int dcmParamErr = -7100; - -const int dcmPermissionErr = -7103; - -const int dcmProtectedErr = -7121; - -const int dcmTooManyKeyErr = -7116; - -const int ddpLenErr = -92; - -const int ddpSktErr = -91; - -const int deactivDev = 6; - -const int debuggingDuplicateOptionErr = -13882; - -const int debuggingDuplicateSignatureErr = -13881; - -const int debuggingExecutionContextErr = -13880; - -const int debuggingInvalidNameErr = -13885; - -const int debuggingInvalidOptionErr = -13884; - -const int debuggingInvalidSignatureErr = -13883; - -const int debuggingNoCallbackErr = -13886; - -const int debuggingNoMatchErr = -13887; - -final class decform extends ffi.Struct { - @ffi.Char() - external int style; - - @ffi.Char() - external int unused; - - @ffi.Short() - external int digits; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int style, - required int unused, - required int digits, - }) => $allocator() - ..ref.style = style - ..ref.unused = unused - ..ref.digits = digits; -} - -final class decimal extends ffi.Struct { - @ffi.Char() - external int sgn; - - @ffi.Char() - external int unused; - - @ffi.Short() - external int exp$1; - - external UnnamedStruct$4 sig; -} - -@Deprecated('Deprecated') -const int defaultComponentAnyFlags = 1; - -@Deprecated('Deprecated') -const int defaultComponentAnyFlagsAnyManufacturer = 3; - -@Deprecated('Deprecated') -const int defaultComponentAnyFlagsAnyManufacturerAnySubType = 7; - -@Deprecated('Deprecated') -const int defaultComponentAnyManufacturer = 2; - -@Deprecated('Deprecated') -const int defaultComponentAnySubType = 4; - -@Deprecated('Deprecated') -const int defaultComponentIdentical = 0; - -@Deprecated('Deprecated') -const int defaultPhysicalEntryCount = 8; - -@Deprecated('Deprecated') -const int delimPad = -2; - -const int descriptorFontTableTag = 1717859171; - -const int desktopDamagedErr = -1305; - -const int desktopIconResource = -3992; - -const int destPortErr = -906; - -typedef dev_t = __darwin_dev_t; - -const int developStage = 32; - -const int deviceCantMeetRequest = -9408; - -@Deprecated('Deprecated') -const int diaeresisUprE = 232; - -@Deprecated('Deprecated') -const int diaeresisUprI = 236; - -@Deprecated('Deprecated') -const int diaeresisUprY = 217; - -const int dialogNoTimeoutErr = -5640; - -const int diffVolErr = -1303; - -const int digiUnimpErr = -2201; - -const int dirFulErr = -33; - -const int dirNFErr = -120; - -const int directXObjectAlreadyExists = -8990; - -enum dispatch_autorelease_frequency_t { - DISPATCH_AUTORELEASE_FREQUENCY_INHERIT(0), - DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM(1), - DISPATCH_AUTORELEASE_FREQUENCY_NEVER(2); - - final int value; - const dispatch_autorelease_frequency_t(this.value); - - static dispatch_autorelease_frequency_t fromValue(int value) => - switch (value) { - 0 => DISPATCH_AUTORELEASE_FREQUENCY_INHERIT, - 1 => DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM, - 2 => DISPATCH_AUTORELEASE_FREQUENCY_NEVER, - _ => throw ArgumentError( - 'Unknown value for dispatch_autorelease_frequency_t: $value', - ), - }; -} - -sealed class dispatch_block_flags_t { - static const DISPATCH_BLOCK_BARRIER = 1; - static const DISPATCH_BLOCK_DETACHED = 2; - static const DISPATCH_BLOCK_ASSIGN_CURRENT = 4; - static const DISPATCH_BLOCK_NO_QOS_CLASS = 8; - static const DISPATCH_BLOCK_INHERIT_QOS_CLASS = 16; - static const DISPATCH_BLOCK_ENFORCE_QOS_CLASS = 32; -} - -typedef dispatch_block_t = ffi.Pointer; -typedef Dartdispatch_block_t = objc.ObjCBlock; -typedef dispatch_data_applier_t = ffi.Pointer; -typedef Dartdispatch_data_applier_t = - objc.ObjCBlock< - ffi.Bool Function( - objc.NSObject, - ffi.Size, - ffi.Pointer, - ffi.Size, - ) - >; - -final class dispatch_data_s extends ffi.Opaque {} - -typedef dispatch_data_t = ffi.Pointer; -typedef Dartdispatch_data_t = objc.NSObject; -typedef dispatch_fd_t = ffi.Int; -typedef Dartdispatch_fd_t = int; -typedef dispatch_function_t = - ffi.Pointer)>>; -typedef dispatch_group_t = ffi.Pointer; -typedef Dartdispatch_group_t = objc.NSObject; -typedef dispatch_io_close_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_io_close_flags_t = int; -typedef dispatch_io_handler_t = ffi.Pointer; -typedef Dartdispatch_io_handler_t = - objc.ObjCBlock; -typedef dispatch_io_interval_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_io_interval_flags_t = int; -typedef dispatch_io_t = ffi.Pointer; -typedef Dartdispatch_io_t = objc.NSObject; -typedef dispatch_io_type_t = ffi.UnsignedLong; -typedef Dartdispatch_io_type_t = int; -typedef dispatch_object_t = ffi.Pointer; -typedef Dartdispatch_object_t = objc.NSObject; -typedef dispatch_once_t = ffi.IntPtr; -typedef Dartdispatch_once_t = int; - -final class dispatch_queue_attr_s extends ffi.Opaque {} - -typedef dispatch_queue_attr_t = ffi.Pointer; -typedef Dartdispatch_queue_attr_t = objc.NSObject; -typedef dispatch_queue_concurrent_t = ffi.Pointer; -typedef Dartdispatch_queue_concurrent_t = objc.NSObject; -typedef dispatch_queue_global_t = ffi.Pointer; -typedef Dartdispatch_queue_global_t = objc.NSObject; -typedef dispatch_queue_main_t = ffi.Pointer; -typedef Dartdispatch_queue_main_t = objc.NSObject; -typedef dispatch_queue_priority_t = ffi.Long; -typedef Dartdispatch_queue_priority_t = int; - -final class dispatch_queue_s extends ffi.Opaque {} - -typedef dispatch_queue_serial_executor_t = ffi.Pointer; -typedef Dartdispatch_queue_serial_executor_t = objc.NSObject; -typedef dispatch_queue_serial_t = ffi.Pointer; -typedef Dartdispatch_queue_serial_t = objc.NSObject; -typedef dispatch_queue_t = ffi.Pointer; -typedef Dartdispatch_queue_t = objc.NSObject; -typedef dispatch_semaphore_t = ffi.Pointer; -typedef Dartdispatch_semaphore_t = objc.NSObject; -typedef dispatch_source_mach_recv_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_mach_recv_flags_t = int; -typedef dispatch_source_mach_send_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_mach_send_flags_t = int; -typedef dispatch_source_memorypressure_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_memorypressure_flags_t = int; -typedef dispatch_source_proc_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_proc_flags_t = int; -typedef dispatch_source_t = ffi.Pointer; -typedef Dartdispatch_source_t = objc.NSObject; -typedef dispatch_source_timer_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_timer_flags_t = int; - -final class dispatch_source_type_s extends ffi.Opaque {} - -typedef dispatch_source_type_t = ffi.Pointer; -typedef dispatch_source_vnode_flags_t = ffi.UnsignedLong; -typedef Dartdispatch_source_vnode_flags_t = int; -typedef dispatch_time_t = ffi.Uint64; -typedef Dartdispatch_time_t = int; -typedef dispatch_workloop_t = ffi.Pointer; -typedef Dartdispatch_workloop_t = objc.NSObject; - -final class div_t extends ffi.Struct { - @ffi.Int() - external int quot; - - @ffi.Int() - external int rem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int quot, - required int rem, - }) => $allocator() - ..ref.quot = quot - ..ref.rem = rem; -} - -const int dmy = 1; - -@Deprecated('Deprecated') -const int dotlessLwrI = 245; - -@Deprecated('Deprecated') -const int doubleAcute = 253; - -typedef double_t = ffi.Double; -typedef Dartdouble_t = double; - -const int dragNotAcceptedErr = -1857; - -const int driverHardwareGoneErr = -503; - -const int dropFolderIconResource = -3979; - -@Deprecated('Deprecated') -const int drvQType = 3; - -const int ds32BitMode = 103; - -const int dsAddressErr = 2; - -const int dsBadLaunch = 26; - -const int dsBadLibrary = 1010; - -const int dsBadPatch = 99; - -const int dsBadPatchHeader = 83; - -const int dsBadSANEOpcode = 81; - -const int dsBadSlotInt = 51; - -const int dsBadStartupDisk = 42; - -const int dsBufPtrTooLow = 106; - -const int dsBusError = 1; - -const int dsCDEFNotFound = 88; - -const int dsCantHoldSystemHeap = 114; - -const int dsChkErr = 5; - -const int dsCoreErr = 12; - -const int dsDirtyDisk = 20004; - -const int dsDisassemblerInstalled = -11; - -const int dsExtensionsDisabled = -13; - -const int dsFPErr = 16; - -const int dsFSErr = 27; - -const int dsFinderErr = 41; - -const int dsForcedQuit = 20002; - -const int dsGibblyMovedToDisabledFolder = 117; - -const int dsGreeting = 40; - -const int dsHD20Installed = -12; - -const int dsHMenuFindErr = 86; - -const int dsIOCoreErr = 14; - -const int dsIllInstErr = 3; - -const int dsIrqErr = 13; - -const int dsLineAErr = 9; - -const int dsLineFErr = 10; - -const int dsLoadErr = 15; - -const int dsLostConnectionToNetworkDisk = 121; - -const int dsMBATAPISysError = 29203; - -const int dsMBATASysError = 29202; - -const int dsMBExternFlpySysError = 29204; - -const int dsMBFlpySysError = 29201; - -const int dsMBSysError = 29200; - -const int dsMBarNFnd = 85; - -const int dsMDEFNotFound = 89; - -const int dsMacOSROMVersionTooOld = 120; - -const int dsMacsBugInstalled = -10; - -const int dsMemFullErr = 25; - -const int dsMiscErr = 11; - -const int dsMixedModeFailure = 1011; - -const int dsMustUseFCBAccessors = 119; - -const int dsNeedToWriteBootBlocks = 104; - -const int dsNoExtsDisassembler = -2; - -const int dsNoExtsMacsBug = -1; - -const int dsNoFPU = 90; - -const int dsNoPackErr = 17; - -const int dsNoPatch = 98; - -const int dsNoPk1 = 18; - -const int dsNoPk2 = 19; - -const int dsNoPk3 = 20; - -const int dsNoPk4 = 21; - -const int dsNoPk5 = 22; - -const int dsNoPk6 = 23; - -const int dsNoPk7 = 24; - -const int dsNotEnoughRAMToBoot = 105; - -const int dsNotThe1 = 31; - -const int dsOldSystem = 102; - -const int dsOvflowErr = 6; - -const int dsPCCardATASysError = 29205; - -const int dsParityErr = 101; - -const int dsPrivErr = 7; - -const int dsRAMDiskTooBig = 122; - -const int dsReinsert = 30; - -const int dsRemoveDisk = 20003; - -const int dsSCSIWarn = 20010; - -const int dsShutDownOrRestart = 20000; - -const int dsShutDownOrResume = 20109; - -const int dsStknHeap = 28; - -const int dsSwitchOffOrRestart = 20001; - -const int dsSysErr = 32767; - -const int dsSystemFileErr = 43; - -const int dsSystemRequiresPowerPC = 116; - -const int dsTraceErr = 8; - -const int dsUnBootableSystem = 118; - -const int dsVMBadBackingStore = 113; - -const int dsVMDeferredFuncTableFull = 112; - -const int dsWDEFNotFound = 87; - -const int dsWriteToSupervisorStackGuardPage = 128; - -const int dsZeroDivErr = 4; - -const int dskFulErr = -34; - -@Deprecated('Deprecated') -const int dtQType = 7; - -@Deprecated('Deprecated') -const int dummyType = 0; - -const int dupFNErr = -48; - -const int duplicateAtomTypeAndIDErr = -2105; - -const int duplicateFlavorErr = -1853; - -const int duplicateFolderDescErr = -4271; - -const int duplicateHandlerErr = -1855; - -const int duplicatePasteboardFlavorErr = -25134; - -const int duplicateRoutingErr = -4274; - -const int duplicateScrapFlavorErr = -4989; - -@Deprecated('Deprecated') -const int durationDay = 86400000; - -@Deprecated('Deprecated') -const int durationForever = 2147483647; - -@Deprecated('Deprecated') -const int durationHour = 3600000; - -@Deprecated('Deprecated') -const int durationMicrosecond = -1; - -@Deprecated('Deprecated') -const int durationMillisecond = 1; - -@Deprecated('Deprecated') -const int durationMinute = 60000; - -@Deprecated('Deprecated') -const int durationNoWait = 0; - -@Deprecated('Deprecated') -const int durationSecond = 1000; - -final class dyld_kernel_image_info extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array uuid; - - external fsobj_id_t fsobjid; - - external fsid_t fsid$1; - - @ffi.Uint64() - external int load_addr; -} - -typedef dyld_kernel_image_info_array_t = ffi.Pointer; -typedef dyld_kernel_image_info_t = dyld_kernel_image_info; - -final class dyld_kernel_process_info extends ffi.Struct { - external dyld_kernel_image_info cache_image_info; - - @ffi.Uint64() - external int timestamp; - - @ffi.Uint32() - external int imageCount; - - @ffi.Uint32() - external int initialImageCount; - - @ffi.Uint8() - external int dyldState; - - @boolean_t() - external int no_cache; - - @boolean_t() - external int private_cache; -} - -typedef dyld_kernel_process_info_t = dyld_kernel_process_info; - -const int dym = 4; - -const int eADB = 1700881506; - -const int eAddressSpec = 1700881523; - -const int eAnalogAudio = 1701863797; - -const int eAppleTalk = 1701863796; - -const int eAudioLineIn = 1701011817; - -const int eAudioLineOut = 1701011820; - -const int eAudioOut = 1701011823; - -const int eBus = 1700951411; - -const int eCDROM = 1701012512; - -const int eCapsLockDown = 1264807019; - -const int eClearKey = 1802716928; - -const int eCommSlot = 1701012333; - -const int eCommandDown = 1264807268; - -const int eConduit = 1701015406; - -const int eControlDown = 1264809068; - -const int eDVD = 1701082724; - -const int eDeleteKey = 1802711808; - -const int eDeviceType = 1701082740; - -const int eDigitalAudio = 1701864545; - -const int eDisplay = 1701078131; - -const int eDownArrowKey = 1802730752; - -const int eEndKey = 1802729216; - -const int eEnterKey = 1802718208; - -const int eEscapeKey = 1802712320; - -const int eEthernet = 1701012846; - -const int eF10Key = 1802726656; - -const int eF11Key = 1802725120; - -const int eF12Key = 1802727168; - -const int eF13Key = 1802725632; - -const int eF14Key = 1802726144; - -const int eF15Key = 1802727680; - -const int eF1Key = 1802729984; - -const int eF2Key = 1802729472; - -const int eF3Key = 1802724096; - -const int eF4Key = 1802728960; - -const int eF5Key = 1802723328; - -const int eF6Key = 1802723584; - -const int eF7Key = 1802723840; - -const int eF8Key = 1802724352; - -const int eF9Key = 1802724608; - -const int eFireWire = 1701013111; - -const int eFloppy = 1701209120; - -const int eForwardDelKey = 1802728704; - -const int eHD = 1701340192; - -const int eHelpKey = 1802727936; - -const int eHomeKey = 1802728192; - -const int eIP = 1701865840; - -const int eIRTalk = 1701865844; - -const int eInfrared = 1701013874; - -const int eIrDA = 1701865842; - -const int eKeyKind = 1701540724; - -const int eKeyboard = 1701536356; - -const int eLCD = 1701080163; - -const int eLeftArrowKey = 1802730240; - -const int eLenErr = -92; - -const int eLocalTalk = 1701014644; - -const int eMacIP = 1701866857; - -const int eMacVideo = 1701866870; - -const int eMicrophone = 1701014889; - -const int eModem = 1701080429; - -const int eModemPort = 1701014896; - -const int eModemPrinterPort = 1701671024; - -const int eModifiers = 1699570803; - -const int eMonitorOut = 1701014894; - -const int eMouse = 1701670773; - -const int eMultiErr = -91; - -const int eNuBus = 1701737826; - -const int eNuBusCard = 1701080674; - -const int eOptionDown = 1265594484; - -const int ePCIbus = 1701015657; - -const int ePCIcard = 1701081193; - -const int ePCcard = 1701015651; - -const int ePDScard = 1701864563; - -const int ePDSslot = 1701015652; - -const int ePPP = 1701867632; - -const int ePageDownKey = 1802729728; - -const int ePageUpKey = 1802728448; - -const int ePointingDevice = 1701081188; - -const int ePostScript = 1701867635; - -const int ePrinter = 1701081202; - -const int ePrinterPort = 1701015664; - -const int eProtocol = 1701868143; - -const int eReturnKey = 1802707968; - -const int eRightArrowKey = 1802730496; - -const int eSCSI = 1701016419; - -const int eSVGA = 1701868391; - -const int eScheme = 1702060904; - -const int eSerial = 1701868402; - -const int eShiftDown = 1265854068; - -const int eSpeakers = 1701081968; - -const int eStorageDevice = 1701081972; - -const int eSvideo = 1701868406; - -const int eTabKey = 1802711040; - -const int eTokenRing = 1702129515; - -const int eTrackball = 1702130283; - -const int eTrackpad = 1701082224; - -const int eUSB = 1701016947; - -const int eUpArrowKey = 1802731008; - -const int eVideoIn = 1701017193; - -const int eVideoMonitor = 1701082733; - -const int eVideoOut = 1701017199; - -const int editingNotAllowed = -9995; - -const int editionMgrInitErr = -450; - -const int emptyPathErr = -2111; - -typedef emulation_vector_t = ffi.Pointer; - -const int endOfDataReached = -2046; - -const int enumArrows = 1634890351; - -const int enumJustification = 1786082164; - -const int enumKeyForm = 1801876077; - -const int enumPosition = 1886352233; - -const int enumProtection = 1886549102; - -const int enumQuality = 1903518060; - -const int enumSaveOptions = 1935767151; - -const int enumStyle = 1937013100; - -const int enumTransferMode = 1953653102; - -const int envBadVers = -5501; - -const int envNotPresent = -5500; - -const int envVersTooBig = -5502; - -const int eofErr = -39; - -const int eraField = 0; - -const int eraMask = 1; - -const int errAEAccessorNotFound = -1723; - -const int errAEBadKeyForm = -10002; - -const int errAEBadListItem = -1705; - -const int errAEBadTestKey = -1726; - -const int errAEBufferTooSmall = -1741; - -const int errAEBuildSyntaxError = -1740; - -const int errAECantHandleClass = -10010; - -const int errAECantPutThatThere = -10024; - -const int errAECantSupplyType = -10009; - -const int errAECantUndo = -10015; - -const int errAECoercionFail = -1700; - -const int errAECorruptData = -1702; - -const int errAEDescIsNull = -1739; - -const int errAEDescNotFound = -1701; - -const int errAEDuplicateHandler = -1736; - -const int errAEEmptyListContainer = -1730; - -const int errAEEventFailed = -10000; - -const int errAEEventFiltered = -1735; - -const int errAEEventNotHandled = -1708; - -const int errAEEventNotPermitted = -1743; - -const int errAEEventWouldRequireUserConsent = -1744; - -const int errAEHandlerNotFound = -1717; - -const int errAEIllegalIndex = -1719; - -const int errAEImpossibleRange = -1720; - -const int errAEInTransaction = -10011; - -const int errAEIndexTooLarge = -10007; - -const int errAELocalOnly = -10016; - -const int errAENegativeCount = -1729; - -const int errAENewerVersion = -1706; - -const int errAENoSuchLogical = -1725; - -const int errAENoSuchObject = -1728; - -const int errAENoSuchTransaction = -10012; - -const int errAENoUserInteraction = -1713; - -const int errAENoUserSelection = -10013; - -const int errAENotAEDesc = -1704; - -const int errAENotASingleObject = -10014; - -const int errAENotASpecialFunction = -1714; - -const int errAENotAnElement = -10008; - -const int errAENotAnEnumMember = -10023; - -const int errAENotAnObjSpec = -1727; - -const int errAENotAppleEvent = -1707; - -const int errAENotModifiable = -10003; - -const int errAEParamMissed = -1715; - -const int errAEPrivilegeError = -10004; - -const int errAEPropertiesClash = -10025; - -const int errAEReadDenied = -10005; - -const int errAEReceiveEscapeCurrent = -1734; - -const int errAEReceiveTerminate = -1733; - -const int errAERecordingIsAlreadyOn = -1732; - -const int errAEReplyNotArrived = -1718; - -const int errAEReplyNotValid = -1709; - -const int errAEStreamAlreadyConverted = -1738; - -const int errAEStreamBadNesting = -1737; - -const int errAETargetAddressNotPermitted = -1742; - -const int errAETimeout = -1712; - -const int errAETypeError = -10001; - -const int errAEUnknownAddressType = -1716; - -const int errAEUnknownObjectType = -1731; - -const int errAEUnknownSendMode = -1710; - -const int errAEWaitCanceled = -1711; - -const int errAEWriteDenied = -10006; - -const int errAEWrongDataType = -1703; - -const int errAEWrongNumberArgs = -1721; - -const int errASCantCompareMoreThan32k = -2721; - -const int errASCantConsiderAndIgnore = -2720; - -const int errASIllegalFormalParameter = -2761; - -const int errASInconsistentNames = -2780; - -const int errASNoResultReturned = -2763; - -const int errASParameterNotForEvent = -2762; - -const int errASTerminologyNestingTooDeep = -2760; - -const int errAborted = -1279; - -const int errAlreadyInImagingMode = -5243; - -const int errAttention = -1276; - -const int errAuthorizationBadAddress = -60033; - -const int errAuthorizationCanceled = -60006; - -const int errAuthorizationDenied = -60005; - -const int errAuthorizationExternalizeNotAllowed = -60009; - -const int errAuthorizationInteractionNotAllowed = -60007; - -const int errAuthorizationInternal = -60008; - -const int errAuthorizationInternalizeNotAllowed = -60010; - -const int errAuthorizationInvalidFlags = -60011; - -const int errAuthorizationInvalidPointer = -60004; - -const int errAuthorizationInvalidRef = -60002; - -const int errAuthorizationInvalidSet = -60001; - -const int errAuthorizationInvalidTag = -60003; - -const int errAuthorizationSuccess = 0; - -const int errAuthorizationToolEnvironmentError = -60032; - -const int errAuthorizationToolExecuteFailure = -60031; - -const int errCannotUndo = -5253; - -const int errCantEmbedIntoSelf = -30594; - -const int errCantEmbedRoot = -30595; - -const int errControlDoesntSupportFocus = -30582; - -const int errControlHiddenOrDisabled = -30592; - -const int errControlIsNotEmbedder = -30590; - -const int errControlsAlreadyExist = -30589; - -const int errCoreEndianDataDoesNotMatchFormat = -4942; - -const int errCoreEndianDataTooLongForFormat = -4941; - -const int errCoreEndianDataTooShortForFormat = -4940; - -const int errCorruptWindowDescription = -5606; - -const int errCouldntSetFocus = -30585; - -const int errCppGeneral = -32000; - -const int errCppLastSystemDefinedError = -32020; - -const int errCppLastUserDefinedError = -32049; - -const int errCppbad_alloc = -32001; - -const int errCppbad_cast = -32002; - -const int errCppbad_exception = -32003; - -const int errCppbad_typeid = -32004; - -const int errCppdomain_error = -32006; - -const int errCppinvalid_argument = -32007; - -const int errCppios_base_failure = -32014; - -const int errCpplength_error = -32008; - -const int errCpplogic_error = -32005; - -const int errCppout_of_range = -32009; - -const int errCppoverflow_error = -32011; - -const int errCpprange_error = -32012; - -const int errCppruntime_error = -32010; - -const int errCppunderflow_error = -32013; - -const int errDSPQueueSize = -1274; - -const int errDataNotSupported = -30581; - -const int errDataSizeMismatch = -30591; - -const int errEmptyScrap = -5249; - -const int errEndOfBody = -1813; - -const int errEndOfDocument = -1812; - -const int errEngineNotFound = -5244; - -const int errFSAttributeNotFound = -1427; - -const int errFSBadAllocFlags = -1413; - -const int errFSBadBuffer = -1403; - -const int errFSBadFSRef = -1401; - -const int errFSBadForkName = -1402; - -const int errFSBadForkRef = -1404; - -const int errFSBadInfoBitmap = -1405; - -const int errFSBadItemCount = -1418; - -const int errFSBadIteratorFlags = -1422; - -const int errFSBadPosMode = -1412; - -const int errFSBadSearchParams = -1419; - -const int errFSForkExists = -1421; - -const int errFSForkNotFound = -1409; - -const int errFSIteratorNotFound = -1423; - -const int errFSIteratorNotSupported = -1424; - -const int errFSMissingCatInfo = -1406; - -const int errFSMissingName = -1411; - -const int errFSNameTooLong = -1410; - -const int errFSNoMoreItems = -1417; - -const int errFSNotAFolder = -1407; - -const int errFSNotEnoughSpaceForOperation = -1429; - -const int errFSOperationNotSupported = -1426; - -const int errFSPropertyNotValid = -1428; - -const int errFSQuotaExceeded = -1425; - -const int errFSRefsDifferent = -1420; - -const int errFSUnknownCall = -1400; - -const int errFloatingWindowsNotInitialized = -5609; - -const int errFwdReset = -1275; - -const int errIAAllocationErr = -5381; - -const int errIABufferTooSmall = -5384; - -const int errIACanceled = -5385; - -const int errIAEndOfTextRun = -5388; - -const int errIAInvalidDocument = -5386; - -const int errIANoErr = 0; - -const int errIANoMoreItems = -5383; - -const int errIAParamErr = -5382; - -const int errIATextExtractionErr = -5387; - -const int errIAUnknownErr = -5380; - -const int errInvalidPartCode = -30588; - -const int errInvalidRange = -5246; - -const int errInvalidWindowProperty = -5603; - -const int errInvalidWindowPtr = -5600; - -const int errInvalidWindowRef = -5600; - -const int errItemNotControl = -30596; - -const int errIteratorReachedEnd = -5245; - -const int errKCAuthFailed = -25293; - -const int errKCBufferTooSmall = -25301; - -const int errKCCreateChainFailed = -25318; - -const int errKCDataNotAvailable = -25316; - -const int errKCDataNotModifiable = -25317; - -const int errKCDataTooLarge = -25302; - -const int errKCDuplicateCallback = -25297; - -const int errKCDuplicateItem = -25299; - -const int errKCDuplicateKeychain = -25296; - -const int errKCInteractionNotAllowed = -25308; - -const int errKCInteractionRequired = -25315; - -const int errKCInvalidCallback = -25298; - -const int errKCInvalidItemRef = -25304; - -const int errKCInvalidKeychain = -25295; - -const int errKCInvalidSearchRef = -25305; - -const int errKCItemNotFound = -25300; - -const int errKCKeySizeNotAllowed = -25311; - -const int errKCNoCertificateModule = -25313; - -const int errKCNoDefaultKeychain = -25307; - -const int errKCNoPolicyModule = -25314; - -const int errKCNoStorageModule = -25312; - -const int errKCNoSuchAttr = -25303; - -const int errKCNoSuchClass = -25306; - -const int errKCNoSuchKeychain = -25294; - -const int errKCNotAvailable = -25291; - -const int errKCReadOnly = -25292; - -const int errKCReadOnlyAttr = -25309; - -const int errKCWrongKCVersion = -25310; - -const int errMarginWilllNotFit = -5241; - -const int errMessageNotSupported = -30580; - -const int errNoHiliteText = -5248; - -const int errNoRootControl = -30586; - -const int errNonContiuousAttribute = -5252; - -const int errNotInImagingMode = -5242; - -const int errOSAAppNotHighLevelEventAware = -2704; - -const int errOSABadSelector = -1754; - -const int errOSABadStorageType = -1752; - -const int errOSACantAccess = -1728; - -const int errOSACantAssign = -10006; - -const int errOSACantCoerce = -1700; - -const int errOSACantCreate = -2710; - -const int errOSACantGetTerminology = -2709; - -const int errOSACantLaunch = -2703; - -const int errOSACantOpenComponent = -1762; - -const int errOSACantStorePointers = -1763; - -const int errOSAComponentMismatch = -1761; - -const int errOSACorruptData = -1702; - -const int errOSACorruptTerminology = -2705; - -const int errOSADataBlockTooLarge = -2708; - -const int errOSADataFormatObsolete = -1758; - -const int errOSADataFormatTooNew = -1759; - -const int errOSADivideByZero = -2701; - -const int errOSAGeneralError = -2700; - -const int errOSAInternalTableOverflow = -2707; - -const int errOSAInvalidID = -1751; - -const int errOSANoSuchDialect = -1757; - -const int errOSANumericOverflow = -2702; - -const int errOSARecordingIsAlreadyOn = -1732; - -const int errOSAScriptError = -1753; - -const int errOSASourceNotAvailable = -1756; - -const int errOSAStackOverflow = -2706; - -const int errOSASystemError = -1750; - -const int errOSATypeError = -1703; - -const int errOffsetInvalid = -1800; - -const int errOffsetIsOutsideOfView = -1801; - -const int errOffsetNotOnElementBounday = -5247; - -const int errOpenDenied = -1273; - -const int errOpening = -1277; - -const int errReadOnlyText = -5250; - -const int errRefNum = -1280; - -const int errRootAlreadyExists = -30587; - -const int errSSLATSCertificateHashAlgorithmViolation = -9885; - -const int errSSLATSCertificateTrustViolation = -9886; - -const int errSSLATSCiphersuiteViolation = -9882; - -const int errSSLATSLeafCertificateHashAlgorithmViolation = -9884; - -const int errSSLATSMinimumKeySizeViolation = -9883; - -const int errSSLATSMinimumVersionViolation = -9881; - -const int errSSLATSViolation = -9880; - -const int errSSLBadCert = -9808; - -const int errSSLBadCertificateStatusResponse = -9862; - -const int errSSLBadCipherSuite = -9818; - -const int errSSLBadConfiguration = -9848; - -const int errSSLBadRecordMac = -9846; - -const int errSSLBufferOverflow = -9817; - -const int errSSLCertExpired = -9814; - -const int errSSLCertNotYetValid = -9815; - -const int errSSLCertificateRequired = -9863; - -const int errSSLClientCertRequested = -9842; - -const int errSSLClientHelloReceived = -9851; - -const int errSSLClosedAbort = -9806; - -const int errSSLClosedGraceful = -9805; - -const int errSSLClosedNoNotify = -9816; - -const int errSSLConfigurationFailed = -9854; - -const int errSSLConnectionRefused = -9844; - -const int errSSLCrypto = -9809; - -const int errSSLDecodeError = -9859; - -const int errSSLDecompressFail = -9857; - -const int errSSLDecryptionFail = -9845; - -const int errSSLEarlyDataRejected = -9890; - -const int errSSLFatalAlert = -9802; - -const int errSSLHandshakeFail = -9858; - -const int errSSLHostNameMismatch = -9843; - -const int errSSLIllegalParam = -9830; - -const int errSSLInappropriateFallback = -9860; - -const int errSSLInternal = -9810; - -const int errSSLMissingExtension = -9861; - -const int errSSLModuleAttach = -9811; - -const int errSSLNegotiation = -9801; - -const int errSSLNetworkTimeout = -9853; - -const int errSSLNoRootCert = -9813; - -const int errSSLPeerAccessDenied = -9832; - -const int errSSLPeerAuthCompleted = -9841; - -const int errSSLPeerBadCert = -9825; - -const int errSSLPeerBadRecordMac = -9820; - -const int errSSLPeerCertExpired = -9828; - -const int errSSLPeerCertRevoked = -9827; - -const int errSSLPeerCertUnknown = -9829; - -const int errSSLPeerDecodeError = -9833; - -const int errSSLPeerDecompressFail = -9823; - -const int errSSLPeerDecryptError = -9834; - -const int errSSLPeerDecryptionFail = -9821; - -const int errSSLPeerExportRestriction = -9835; - -const int errSSLPeerHandshakeFail = -9824; - -const int errSSLPeerInsufficientSecurity = -9837; - -const int errSSLPeerInternalError = -9838; - -const int errSSLPeerNoRenegotiation = -9840; - -const int errSSLPeerProtocolVersion = -9836; - -const int errSSLPeerRecordOverflow = -9822; - -const int errSSLPeerUnexpectedMsg = -9819; - -const int errSSLPeerUnknownCA = -9831; - -const int errSSLPeerUnsupportedCert = -9826; - -const int errSSLPeerUserCancelled = -9839; - -const int errSSLProtocol = -9800; - -const int errSSLRecordOverflow = -9847; - -const int errSSLSessionNotFound = -9804; - -const int errSSLTransportReset = -9852; - -const int errSSLUnexpectedMessage = -9856; - -const int errSSLUnexpectedRecord = -9849; - -const int errSSLUnknownPSKIdentity = -9864; - -const int errSSLUnknownRootCert = -9812; - -const int errSSLUnrecognizedName = -9865; - -const int errSSLUnsupportedExtension = -9855; - -const int errSSLWeakPeerEphemeralDHKey = -9850; - -const int errSSLWouldBlock = -9803; - -const int errSSLXCertChainInvalid = -9807; - -const int errSecACLAddFailed = -67698; - -const int errSecACLChangeFailed = -67699; - -const int errSecACLDeleteFailed = -67696; - -const int errSecACLNotSimple = -25240; - -const int errSecACLReplaceFailed = -67697; - -const int errSecAddinLoadFailed = -67711; - -const int errSecAddinUnloadFailed = -67714; - -const int errSecAlgorithmMismatch = -67730; - -const int errSecAllocate = -108; - -const int errSecAlreadyLoggedIn = -67814; - -const int errSecAppleAddAppACLSubject = -67589; - -const int errSecAppleInvalidKeyEndDate = -67593; - -const int errSecAppleInvalidKeyStartDate = -67592; - -const int errSecApplePublicKeyIncomplete = -67590; - -const int errSecAppleSSLv2Rollback = -67595; - -const int errSecAppleSignatureMismatch = -67591; - -const int errSecAttachHandleBusy = -67728; - -const int errSecAttributeNotInContext = -67720; - -const int errSecAuthFailed = -25293; - -const int errSecBadReq = -909; - -const int errSecBlockSizeMismatch = -67810; - -const int errSecBufferTooSmall = -25301; - -const int errSecCRLAlreadySigned = -67684; - -const int errSecCRLBadURI = -67617; - -const int errSecCRLExpired = -67613; - -const int errSecCRLNotFound = -67615; - -const int errSecCRLNotTrusted = -67620; - -const int errSecCRLNotValidYet = -67614; - -const int errSecCRLPolicyFailed = -67621; - -const int errSecCRLServerDown = -67616; - -const int errSecCSAmbiguousBundleFormat = -67011; - -const int errSecCSBadBundleFormat = -67028; - -const int errSecCSBadCallbackValue = -67020; - -const int errSecCSBadDictionaryFormat = -67058; - -const int errSecCSBadDiskImageFormat = -67001; - -const int errSecCSBadFrameworkVersion = -67009; - -const int errSecCSBadLVArch = -67017; - -const int errSecCSBadMainExecutable = -67010; - -const int errSecCSBadNestedCode = -67021; - -const int errSecCSBadObjectFormat = -67049; - -const int errSecCSBadResource = -67054; - -const int errSecCSBadTeamIdentifier = -66997; - -const int errSecCSCMSConstructionFailed = -66991; - -const int errSecCSCMSTooLarge = -67036; - -const int errSecCSCancelled = -67006; - -const int errSecCSDBAccess = -67032; - -const int errSecCSDBDenied = -67033; - -const int errSecCSDSStoreSymlink = -67012; - -const int errSecCSDbCorrupt = -67024; - -const int errSecCSFileHardQuarantined = -67026; - -const int errSecCSGuestInvalid = -67063; - -const int errSecCSHelperFailed = -67019; - -const int errSecCSHostProtocolContradiction = -67043; - -const int errSecCSHostProtocolDedicationError = -67042; - -const int errSecCSHostProtocolInvalidAttribute = -67031; - -const int errSecCSHostProtocolInvalidHash = -67035; - -const int errSecCSHostProtocolNotProxy = -67041; - -const int errSecCSHostProtocolRelativePath = -67044; - -const int errSecCSHostProtocolStateError = -67040; - -const int errSecCSHostProtocolUnrelated = -67039; - -const int errSecCSHostReject = -67047; - -const int errSecCSInfoPlistFailed = -67030; - -const int errSecCSInternalError = -67048; - -const int errSecCSInvalidAssociatedFileData = -66999; - -const int errSecCSInvalidAttributeValues = -67066; - -const int errSecCSInvalidEntitlements = -66994; - -const int errSecCSInvalidFlags = -67070; - -const int errSecCSInvalidObjectRef = -67071; - -const int errSecCSInvalidPlatform = -67005; - -const int errSecCSInvalidRuntimeVersion = -66993; - -const int errSecCSInvalidSymlink = -67003; - -const int errSecCSInvalidTeamIdentifier = -66998; - -const int errSecCSMultipleGuests = -67064; - -const int errSecCSNoMainExecutable = -67029; - -const int errSecCSNoMatches = -67027; - -const int errSecCSNoSuchCode = -67065; - -const int errSecCSNotAHost = -67046; - -const int errSecCSNotAppLike = -67002; - -const int errSecCSNotSupported = -67037; - -const int errSecCSObjectRequired = -67069; - -const int errSecCSOutdated = -67025; - -const int errSecCSRegularFile = -67015; - -const int errSecCSRemoteSignerFailed = -66990; - -const int errSecCSReqFailed = -67050; - -const int errSecCSReqInvalid = -67052; - -const int errSecCSReqUnsupported = -67051; - -const int errSecCSResourceDirectoryFailed = -67023; - -const int errSecCSResourceNotSupported = -67016; - -const int errSecCSResourceRulesInvalid = -67053; - -const int errSecCSResourcesInvalid = -67055; - -const int errSecCSResourcesNotFound = -67056; - -const int errSecCSResourcesNotSealed = -67057; - -const int errSecCSRevokedNotarization = -66992; - -const int errSecCSSigDBAccess = -67032; - -const int errSecCSSigDBDenied = -67033; - -const int errSecCSSignatureFailed = -67061; - -const int errSecCSSignatureInvalid = -67045; - -const int errSecCSSignatureNotVerifiable = -67060; - -const int errSecCSSignatureUnsupported = -67059; - -const int errSecCSSignatureUntrusted = -66996; - -const int errSecCSStaticCodeChanged = -67034; - -const int errSecCSStaticCodeNotFound = -67068; - -const int errSecCSTooBig = -67004; - -const int errSecCSUnimplemented = -67072; - -const int errSecCSUnsealedAppRoot = -67014; - -const int errSecCSUnsealedFrameworkRoot = -67008; - -const int errSecCSUnsigned = -67062; - -const int errSecCSUnsignedNestedCode = -67022; - -const int errSecCSUnsupportedDigestAlgorithm = -67000; - -const int errSecCSUnsupportedGuestAttributes = -67067; - -const int errSecCSVetoed = -67018; - -const int errSecCSWeakResourceEnvelope = -67007; - -const int errSecCSWeakResourceRules = -67013; - -const int errSecCallbackFailed = -67695; - -const int errSecCertificateCannotOperate = -67817; - -const int errSecCertificateDuplicateExtension = -67903; - -const int errSecCertificateExpired = -67818; - -const int errSecCertificateIsCA = -67902; - -const int errSecCertificateNameNotAllowed = -67900; - -const int errSecCertificateNotValidYet = -67819; - -const int errSecCertificatePolicyNotAllowed = -67899; - -const int errSecCertificateRevoked = -67820; - -const int errSecCertificateSuspended = -67821; - -const int errSecCertificateValidityPeriodTooLong = -67901; - -const int errSecCodeSigningBadCertChainLength = -67647; - -const int errSecCodeSigningBadPathLengthConstraint = -67649; - -const int errSecCodeSigningDevelopment = -67651; - -const int errSecCodeSigningNoBasicConstraints = -67648; - -const int errSecCodeSigningNoExtendedKeyUsage = -67650; - -const int errSecConversionError = -67594; - -const int errSecCoreFoundationUnknown = -4960; - -const int errSecCreateChainFailed = -25318; - -const int errSecDataNotAvailable = -25316; - -const int errSecDataNotModifiable = -25317; - -const int errSecDataTooLarge = -25302; - -const int errSecDatabaseLocked = -67869; - -const int errSecDatastoreIsOpen = -67870; - -const int errSecDecode = -26275; - -const int errSecDeviceError = -67727; - -const int errSecDeviceFailed = -67588; - -const int errSecDeviceReset = -67587; - -const int errSecDeviceVerifyFailed = -67812; - -const int errSecDiskFull = -34; - -@Deprecated('use errSecDiskFull') -const int errSecDskFull = -34; - -const int errSecDuplicateCallback = -25297; - -const int errSecDuplicateItem = -25299; - -const int errSecDuplicateKeychain = -25296; - -const int errSecEMMLoadFailed = -67709; - -const int errSecEMMUnloadFailed = -67710; - -const int errSecEndOfData = -67634; - -const int errSecEventNotificationCallbackNotFound = -67723; - -const int errSecExtendedKeyUsageNotCritical = -67881; - -const int errSecFieldSpecifiedMultiple = -67866; - -const int errSecFileTooBig = -67597; - -const int errSecFunctionFailed = -67677; - -const int errSecFunctionIntegrityFail = -67670; - -const int errSecHostNameMismatch = -67602; - -const int errSecIDPFailure = -67622; - -const int errSecIO = -36; - -const int errSecInDarkWake = -25320; - -const int errSecIncompatibleDatabaseBlob = -67600; - -const int errSecIncompatibleFieldFormat = -67867; - -const int errSecIncompatibleKeyBlob = -67601; - -const int errSecIncompatibleVersion = -67704; - -const int errSecIncompleteCertRevocationCheck = -67635; - -const int errSecInputLengthError = -67724; - -const int errSecInsufficientClientID = -67586; - -const int errSecInsufficientCredentials = -67822; - -const int errSecInteractionNotAllowed = -25308; - -const int errSecInteractionRequired = -25315; - -const int errSecInternalComponent = -2070; - -const int errSecInternalError = -67671; - -@Deprecated('Deprecated') -const int errSecInvaldCRLAuthority = -67827; - -const int errSecInvalidACL = -67702; - -const int errSecInvalidAccessCredentials = -67700; - -const int errSecInvalidAccessRequest = -67876; - -const int errSecInvalidAction = -67823; - -const int errSecInvalidAddinFunctionTable = -67716; - -const int errSecInvalidAlgorithm = -67747; - -const int errSecInvalidAlgorithmParms = -67770; - -const int errSecInvalidAttributeAccessCredentials = -67796; - -const int errSecInvalidAttributeBase = -67788; - -const int errSecInvalidAttributeBlockSize = -67764; - -const int errSecInvalidAttributeDLDBHandle = -67794; - -const int errSecInvalidAttributeEffectiveBits = -67778; - -const int errSecInvalidAttributeEndDate = -67782; - -const int errSecInvalidAttributeInitVector = -67750; - -const int errSecInvalidAttributeIterationCount = -67792; - -const int errSecInvalidAttributeKey = -67748; - -const int errSecInvalidAttributeKeyLength = -67762; - -const int errSecInvalidAttributeKeyType = -67774; - -const int errSecInvalidAttributeLabel = -67772; - -const int errSecInvalidAttributeMode = -67776; - -const int errSecInvalidAttributeOutputSize = -67766; - -const int errSecInvalidAttributePadding = -67754; - -const int errSecInvalidAttributePassphrase = -67760; - -const int errSecInvalidAttributePrime = -67786; - -const int errSecInvalidAttributePrivateKeyFormat = -67800; - -const int errSecInvalidAttributePublicKeyFormat = -67798; - -const int errSecInvalidAttributeRandom = -67756; - -const int errSecInvalidAttributeRounds = -67768; - -const int errSecInvalidAttributeSalt = -67752; - -const int errSecInvalidAttributeSeed = -67758; - -const int errSecInvalidAttributeStartDate = -67780; - -const int errSecInvalidAttributeSubprime = -67790; - -const int errSecInvalidAttributeSymmetricKeyFormat = -67802; - -const int errSecInvalidAttributeVersion = -67784; - -const int errSecInvalidAttributeWrappedKeyFormat = -67804; - -const int errSecInvalidAuthority = -67824; - -const int errSecInvalidAuthorityKeyID = -67606; - -const int errSecInvalidBaseACLs = -67851; - -const int errSecInvalidBundleInfo = -67857; - -const int errSecInvalidCRL = -67830; - -const int errSecInvalidCRLAuthority = -67827; - -const int errSecInvalidCRLEncoding = -67828; - -const int errSecInvalidCRLGroup = -67816; - -const int errSecInvalidCRLIndex = -67858; - -const int errSecInvalidCRLType = -67829; - -const int errSecInvalidCallback = -25298; - -const int errSecInvalidCertAuthority = -67826; - -const int errSecInvalidCertificateGroup = -67691; - -const int errSecInvalidCertificateRef = -67690; - -const int errSecInvalidContext = -67746; - -const int errSecInvalidDBList = -67681; - -const int errSecInvalidDBLocation = -67875; - -const int errSecInvalidData = -67673; - -const int errSecInvalidDatabaseBlob = -67598; - -const int errSecInvalidDigestAlgorithm = -67815; - -const int errSecInvalidEncoding = -67853; - -const int errSecInvalidExtendedKeyUsage = -67609; - -const int errSecInvalidFormType = -67831; - -const int errSecInvalidGUID = -67679; - -const int errSecInvalidHandle = -67680; - -const int errSecInvalidHandleUsage = -67668; - -const int errSecInvalidID = -67832; - -const int errSecInvalidIDLinkage = -67610; - -const int errSecInvalidIdentifier = -67833; - -const int errSecInvalidIndex = -67834; - -const int errSecInvalidIndexInfo = -67877; - -const int errSecInvalidInputVector = -67744; - -const int errSecInvalidItemRef = -25304; - -const int errSecInvalidKeyAttributeMask = -67738; - -const int errSecInvalidKeyBlob = -67599; - -const int errSecInvalidKeyFormat = -67742; - -const int errSecInvalidKeyHierarchy = -67713; - -const int errSecInvalidKeyLabel = -67740; - -const int errSecInvalidKeyRef = -67712; - -const int errSecInvalidKeyUsageForPolicy = -67608; - -const int errSecInvalidKeyUsageMask = -67736; - -const int errSecInvalidKeychain = -25295; - -const int errSecInvalidLoginName = -67813; - -const int errSecInvalidModifyMode = -67879; - -const int errSecInvalidName = -67689; - -const int errSecInvalidNetworkAddress = -67683; - -const int errSecInvalidNewOwner = -67878; - -const int errSecInvalidNumberOfFields = -67685; - -const int errSecInvalidOutputVector = -67745; - -const int errSecInvalidOwnerEdit = -25244; - -const int errSecInvalidPVC = -67708; - -const int errSecInvalidParsingModule = -67868; - -const int errSecInvalidPassthroughID = -67682; - -const int errSecInvalidPasswordRef = -25261; - -const int errSecInvalidPointer = -67675; - -const int errSecInvalidPolicyIdentifiers = -67835; - -const int errSecInvalidPrefsDomain = -25319; - -const int errSecInvalidQuery = -67693; - -const int errSecInvalidReason = -67837; - -const int errSecInvalidRecord = -67701; - -const int errSecInvalidRequestInputs = -67838; - -const int errSecInvalidRequestor = -67855; - -const int errSecInvalidResponseVector = -67839; - -const int errSecInvalidRoot = -67612; - -const int errSecInvalidSampleValue = -67703; - -const int errSecInvalidScope = -67706; - -const int errSecInvalidSearchRef = -25305; - -const int errSecInvalidServiceMask = -67717; - -const int errSecInvalidSignature = -67688; - -const int errSecInvalidStopOnPolicy = -67840; - -const int errSecInvalidSubServiceID = -67719; - -const int errSecInvalidSubjectKeyID = -67607; - -const int errSecInvalidSubjectName = -67655; - -const int errSecInvalidTimeString = -67836; - -const int errSecInvalidTrustSetting = -25242; - -const int errSecInvalidTrustSettings = -25262; - -const int errSecInvalidTuple = -67841; - -@Deprecated('Deprecated') -const int errSecInvalidTupleCredendtials = -67852; - -const int errSecInvalidTupleCredentials = -67852; - -const int errSecInvalidTupleGroup = -67850; - -const int errSecInvalidValidityPeriod = -67854; - -const int errSecInvalidValue = -67694; - -const int errSecItemNotFound = -25300; - -const int errSecKeyBlobTypeIncorrect = -67732; - -const int errSecKeyHeaderInconsistent = -67733; - -const int errSecKeyIsSensitive = -25258; - -const int errSecKeySizeNotAllowed = -25311; - -const int errSecKeyUsageIncorrect = -67731; - -const int errSecLibraryReferenceNotFound = -67715; - -const int errSecMDSError = -67674; - -const int errSecMemoryError = -67672; - -const int errSecMissingAlgorithmParms = -67771; - -const int errSecMissingAttributeAccessCredentials = -67797; - -const int errSecMissingAttributeBase = -67789; - -const int errSecMissingAttributeBlockSize = -67765; - -const int errSecMissingAttributeDLDBHandle = -67795; - -const int errSecMissingAttributeEffectiveBits = -67779; - -const int errSecMissingAttributeEndDate = -67783; - -const int errSecMissingAttributeInitVector = -67751; - -const int errSecMissingAttributeIterationCount = -67793; - -const int errSecMissingAttributeKey = -67749; - -const int errSecMissingAttributeKeyLength = -67763; - -const int errSecMissingAttributeKeyType = -67775; - -const int errSecMissingAttributeLabel = -67773; - -const int errSecMissingAttributeMode = -67777; - -const int errSecMissingAttributeOutputSize = -67767; - -const int errSecMissingAttributePadding = -67755; - -const int errSecMissingAttributePassphrase = -67761; - -const int errSecMissingAttributePrime = -67787; - -const int errSecMissingAttributePrivateKeyFormat = -67801; - -const int errSecMissingAttributePublicKeyFormat = -67799; - -const int errSecMissingAttributeRandom = -67757; - -const int errSecMissingAttributeRounds = -67769; - -const int errSecMissingAttributeSalt = -67753; - -const int errSecMissingAttributeSeed = -67759; - -const int errSecMissingAttributeStartDate = -67781; - -const int errSecMissingAttributeSubprime = -67791; - -const int errSecMissingAttributeSymmetricKeyFormat = -67803; - -const int errSecMissingAttributeVersion = -67785; - -const int errSecMissingAttributeWrappedKeyFormat = -67805; - -const int errSecMissingEntitlement = -34018; - -const int errSecMissingQualifiedCertStatement = -67904; - -const int errSecMissingRequiredExtension = -67880; - -const int errSecMissingValue = -67871; - -const int errSecMobileMeCSRVerifyFailure = -67665; - -const int errSecMobileMeFailedConsistencyCheck = -67666; - -const int errSecMobileMeNoRequestPending = -67664; - -const int errSecMobileMeRequestAlreadyPending = -67663; - -const int errSecMobileMeRequestQueued = -67657; - -const int errSecMobileMeRequestRedirected = -67658; - -const int errSecMobileMeServerAlreadyExists = -67661; - -const int errSecMobileMeServerError = -67659; - -const int errSecMobileMeServerNotAvailable = -67660; - -const int errSecMobileMeServerServiceErr = -67662; - -const int errSecModuleManagerInitializeFailed = -67721; - -const int errSecModuleManagerNotFound = -67722; - -const int errSecModuleManifestVerifyFailed = -67678; - -const int errSecModuleNotLoaded = -67718; - -const int errSecMultipleExecSegments = -66995; - -const int errSecMultiplePrivKeys = -25259; - -const int errSecMultipleValuesUnsupported = -67842; - -const int errSecNetworkFailure = -67636; - -const int errSecNoAccessForItem = -25243; - -const int errSecNoBasicConstraints = -67604; - -const int errSecNoBasicConstraintsCA = -67605; - -const int errSecNoCertificateModule = -25313; - -const int errSecNoDefaultAuthority = -67844; - -const int errSecNoDefaultKeychain = -25307; - -const int errSecNoFieldValues = -67859; - -const int errSecNoPolicyModule = -25314; - -const int errSecNoStorageModule = -25312; - -const int errSecNoSuchAttr = -25303; - -const int errSecNoSuchClass = -25306; - -const int errSecNoSuchKeychain = -25294; - -const int errSecNoTrustSettings = -25263; - -const int errSecNotAvailable = -25291; - -const int errSecNotInitialized = -67667; - -const int errSecNotLoggedIn = -67729; - -const int errSecNotSigner = -26267; - -const int errSecNotTrusted = -67843; - -const int errSecOCSPBadRequest = -67631; - -const int errSecOCSPBadResponse = -67630; - -const int errSecOCSPNoSigner = -67640; - -const int errSecOCSPNotTrustedToAnchor = -67637; - -const int errSecOCSPResponderInternalError = -67642; - -const int errSecOCSPResponderMalformedReq = -67641; - -const int errSecOCSPResponderSignatureRequired = -67644; - -const int errSecOCSPResponderTryLater = -67643; - -const int errSecOCSPResponderUnauthorized = -67645; - -const int errSecOCSPResponseNonceMismatch = -67646; - -const int errSecOCSPSignatureError = -67639; - -const int errSecOCSPStatusUnrecognized = -67633; - -const int errSecOCSPUnavailable = -67632; - -const int errSecOpWr = -49; - -const int errSecOutputLengthError = -67725; - -const int errSecPVCAlreadyConfigured = -67707; - -const int errSecPVCReferentNotFound = -67669; - -const int errSecParam = -50; - -const int errSecPassphraseRequired = -25260; - -const int errSecPathLengthConstraintExceeded = -67611; - -const int errSecPkcs12VerifyFailure = -25264; - -const int errSecPolicyNotFound = -25241; - -const int errSecPrivilegeNotGranted = -67705; - -const int errSecPrivilegeNotSupported = -67726; - -const int errSecPublicKeyInconsistent = -67811; - -const int errSecQuerySizeUnknown = -67809; - -const int errSecQuotaExceeded = -67596; - -const int errSecReadOnly = -25292; - -const int errSecReadOnlyAttr = -25309; - -const int errSecRecordModified = -67638; - -const int errSecRejectedForm = -67845; - -const int errSecRequestDescriptor = -67856; - -const int errSecRequestLost = -67846; - -const int errSecRequestRejected = -67847; - -const int errSecResourceSignBadCertChainLength = -67652; - -const int errSecResourceSignBadExtKeyUsage = -67653; - -const int errSecRestrictedAPI = -34020; - -const int errSecSMIMEBadExtendedKeyUsage = -67624; - -const int errSecSMIMEBadKeyUsage = -67625; - -const int errSecSMIMEEmailAddressesNotFound = -67623; - -const int errSecSMIMEKeyUsageNotCritical = -67626; - -const int errSecSMIMENoEmailAddress = -67627; - -const int errSecSMIMESubjAltNameNotCritical = -67628; - -const int errSecSSLBadExtendedKeyUsage = -67629; - -const int errSecSelfCheckFailed = -67676; - -const int errSecServiceNotAvailable = -67585; - -const int errSecSigningTimeMissing = -67894; - -const int errSecStagedOperationInProgress = -67806; - -const int errSecStagedOperationNotStarted = -67807; - -const int errSecSuccess = 0; - -const int errSecTagNotFound = -67692; - -const int errSecTimestampAddInfoNotAvailable = -67892; - -const int errSecTimestampBadAlg = -67886; - -const int errSecTimestampBadDataFormat = -67888; - -const int errSecTimestampBadRequest = -67887; - -const int errSecTimestampInvalid = -67883; - -const int errSecTimestampMissing = -67882; - -const int errSecTimestampNotTrusted = -67884; - -const int errSecTimestampRejection = -67895; - -const int errSecTimestampRevocationNotification = -67898; - -const int errSecTimestampRevocationWarning = -67897; - -const int errSecTimestampServiceNotAvailable = -67885; - -const int errSecTimestampSystemFailure = -67893; - -const int errSecTimestampTimeNotAvailable = -67889; - -const int errSecTimestampUnacceptedExtension = -67891; - -const int errSecTimestampUnacceptedPolicy = -67890; - -const int errSecTimestampWaiting = -67896; - -const int errSecTrustNotAvailable = -25245; - -const int errSecTrustSettingDeny = -67654; - -const int errSecUnimplemented = -4; - -const int errSecUnknownCRLExtension = -67619; - -const int errSecUnknownCertExtension = -67618; - -const int errSecUnknownCriticalExtensionFlag = -67603; - -const int errSecUnknownFormat = -25257; - -const int errSecUnknownQualifiedCertStatement = -67656; - -const int errSecUnknownTag = -67687; - -const int errSecUnsupportedAddressType = -67848; - -const int errSecUnsupportedFieldFormat = -67860; - -const int errSecUnsupportedFormat = -25256; - -const int errSecUnsupportedIndexInfo = -67861; - -const int errSecUnsupportedKeyAttributeMask = -67739; - -const int errSecUnsupportedKeyFormat = -67734; - -const int errSecUnsupportedKeyLabel = -67741; - -const int errSecUnsupportedKeySize = -67735; - -const int errSecUnsupportedKeyUsageMask = -67737; - -const int errSecUnsupportedLocality = -67862; - -const int errSecUnsupportedNumAttributes = -67863; - -const int errSecUnsupportedNumIndexes = -67864; - -const int errSecUnsupportedNumRecordTypes = -67865; - -const int errSecUnsupportedNumSelectionPreds = -67873; - -const int errSecUnsupportedOperator = -67874; - -const int errSecUnsupportedQueryLimits = -67872; - -const int errSecUnsupportedService = -67849; - -const int errSecUnsupportedVectorOfBuffers = -67743; - -const int errSecUserCanceled = -128; - -const int errSecVerificationFailure = -67686; - -const int errSecVerifyActionFailed = -67825; - -const int errSecVerifyFailed = -67808; - -const int errSecWrPerm = -61; - -const int errSecWrongSecVersion = -25310; - -const int errSessionAuthorizationDenied = -60502; - -const int errSessionInternal = -60008; - -const int errSessionInvalidAttributes = -60501; - -const int errSessionInvalidFlags = -60011; - -const int errSessionInvalidId = -60500; - -const int errSessionSuccess = 0; - -const int errSessionValueNotSet = -60503; - -const int errState = -1278; - -const int errTaskNotFound = -10780; - -const int errTopOfBody = -1811; - -const int errTopOfDocument = -1810; - -const int errUnknownAttributeTag = -5240; - -const int errUnknownControl = -30584; - -const int errUnknownElement = -5251; - -const int errUnrecognizedWindowClass = -5605; - -const int errUnsupportedWindowAttributesForClass = -5601; - -const int errUserWantsToDragWindow = -5607; - -const int errWSInternalError = -65793; - -const int errWSParseError = -65795; - -const int errWSTimeoutError = -65796; - -const int errWSTransportError = -65794; - -const int errWindowDoesNotFitOnscreen = -5611; - -const int errWindowDoesNotHaveProxy = -5602; - -const int errWindowDoesntSupportFocus = -30583; - -const int errWindowNotFound = -5610; - -const int errWindowPropertyNotFound = -5604; - -const int errWindowRegionCodeInvalid = -30593; - -const int errWindowsAlreadyInitialized = -5608; - -typedef errno_t = ffi.Int; -typedef Darterrno_t = int; - -const int eurlAFP = 1634103328; - -const int eurlAT = 1635000352; - -const int eurlEPPC = 1701867619; - -const int eurlFTP = 1718906912; - -const int eurlFile = 1718185061; - -const int eurlGopher = 1735420018; - -const int eurlHTTP = 1752462448; - -const int eurlHTTPS = 1752461427; - -const int eurlIMAP = 1768776048; - -const int eurlLDAP = 1970037872; - -const int eurlLaunch = 1818326382; - -const int eurlMail = 1835100524; - -const int eurlMailbox = 1835167608; - -const int eurlMessage = 1835365235; - -const int eurlMulti = 1836412020; - -const int eurlNFS = 1970169459; - -const int eurlNNTP = 1852732528; - -const int eurlNews = 1852143475; - -const int eurlPOP = 1970302832; - -const int eurlRTSP = 1920234352; - -const int eurlSNews = 1936619379; - -const int eurlTelnet = 1953263220; - -const int eurlUnknown = 1970433087; - -@Deprecated('Deprecated') -const int evType = 4; - -final class evsioKeymapping extends ffi.Struct { - @ffi.Int() - external int size; - - external ffi.Pointer mapping; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int size, - required ffi.Pointer mapping, - }) => $allocator() - ..ref.size = size - ..ref.mapping = mapping; -} - -final class evsioMouseScaling extends ffi.Struct { - @ffi.Int() - external int numScaleLevels; - - @ffi.Array.multi([20]) - external ffi.Array scaleThresholds; - - @ffi.Array.multi([20]) - external ffi.Array scaleFactors; -} - -const int evtNotEnb = 1; - -const int exUserBreak = -492; - -final class exception extends ffi.Struct { - @ffi.Int() - external int type; - - external ffi.Pointer name; - - @ffi.Double() - external double arg1; - - @ffi.Double() - external double arg2; - - @ffi.Double() - external double retval; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int type, - required ffi.Pointer name, - required double arg1, - required double arg2, - required double retval, - }) => $allocator() - ..ref.type = type - ..ref.name = name - ..ref.arg1 = arg1 - ..ref.arg2 = arg2 - ..ref.retval = retval; -} - -typedef exception_behavior_array_t = ffi.Pointer; -typedef exception_behavior_t = ffi.Int; -typedef Dartexception_behavior_t = int; -typedef exception_data_t = ffi.Pointer; -typedef exception_data_type_t = integer_t; -typedef exception_flavor_array_t = ffi.Pointer; -typedef exception_handler_array_t = ffi.Pointer; -typedef exception_handler_info_array_t = ffi.Pointer; -typedef exception_handler_info_t = ipc_info_port_t; -typedef exception_handler_t = mach_port_t; -typedef exception_mask_array_t = ffi.Pointer; -typedef exception_mask_t = ffi.UnsignedInt; -typedef Dartexception_mask_t = int; -typedef exception_port_arrary_t = exception_handler_array_t; -typedef exception_port_array_t = ffi.Pointer; -typedef exception_port_info_array_t = ffi.Pointer; -typedef exception_port_t = exception_handler_t; -typedef exception_type_t = ffi.Int; -typedef Dartexception_type_t = int; - -const int excessCollsns = -95; - -const int extFSErr = -58; - -const int extend = 64; - -typedef extended80 = Float80; -typedef extended96 = Float96; - -const int extendedBlock = 19523; - -const int extendedBlockLen = 40; - -enum extension_data_format { - CSSM_X509_DATAFORMAT_ENCODED(0), - CSSM_X509_DATAFORMAT_PARSED(1), - CSSM_X509_DATAFORMAT_PAIR(2); - - final int value; - const extension_data_format(this.value); - - static extension_data_format fromValue(int value) => switch (value) { - 0 => CSSM_X509_DATAFORMAT_ENCODED, - 1 => CSSM_X509_DATAFORMAT_PARSED, - 2 => CSSM_X509_DATAFORMAT_PAIR, - _ => throw ArgumentError('Unknown value for extension_data_format: $value'), - }; -} - -const int extensionsFolderIconResource = -3973; - -const int extractErr = -3104; - -const int extraneousStrings = 16; - -@Deprecated('Deprecated') -const int fBadPartsTable = 10; - -@Deprecated('Deprecated') -const int fBestGuess = 1; - -const int fBsyErr = -47; - -const int fDesktop = -2; - -const int fDisk = 0; - -@Deprecated('Deprecated') -const int fEmptyFormatString = 13; - -@Deprecated('Deprecated') -const int fExtraDecimal = 5; - -@Deprecated('Deprecated') -const int fExtraExp = 7; - -@Deprecated('Deprecated') -const int fExtraPercent = 11; - -@Deprecated('Deprecated') -const int fExtraSeparator = 12; - -@Deprecated('Deprecated') -const int fFormStrIsNAN = 9; - -@Deprecated('Deprecated') -const int fFormatOK = 0; - -@Deprecated('Deprecated') -const int fFormatOverflow = 8; - -const int fHasBundle = 8192; - -const int fInvisible = 16384; - -const int fLckdErr = -45; - -@Deprecated('Deprecated') -const int fMissingDelimiter = 4; - -@Deprecated('Deprecated') -const int fMissingLiteral = 6; - -@Deprecated('Deprecated') -const int fNegative = 1; - -const int fOnDesk = 1; - -@Deprecated('Deprecated') -const int fOutOfSynch = 2; - -@Deprecated('Deprecated') -const int fPositive = 0; - -@Deprecated('Deprecated') -const int fSpuriousChars = 3; - -const int fTrash = -3; - -@Deprecated('Deprecated') -const int fVNumber = 0; - -@Deprecated('Deprecated') -const int fZero = 2; - -const int false$ = 0; - -@Deprecated('Deprecated') -const int false32b = 0; - -const int fatalDateTime = 32768; - -final class fattributiontag extends ffi.Struct { - @ffi.UnsignedInt() - external int ft_flags; - - @ffi.UnsignedLongLong() - external int ft_hash; - - @ffi.Array.multi([255]) - external ffi.Array ft_attribution_name; -} - -typedef fattributiontag_t = fattributiontag; - -final class fchecklv extends ffi.Struct { - @off_t() - external int lv_file_start; - - @ffi.Size() - external int lv_error_message_size; - - external ffi.Pointer lv_error_message; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lv_file_start, - required int lv_error_message_size, - required ffi.Pointer lv_error_message, - }) => $allocator() - ..ref.lv_file_start = lv_file_start - ..ref.lv_error_message_size = lv_error_message_size - ..ref.lv_error_message = lv_error_message; -} - -typedef fchecklv_t = fchecklv; -typedef fd_mask = __int32_t; - -final class fd_set extends ffi.Struct { - @ffi.Array.multi([32]) - external ffi.Array<__int32_t> fds_bits; -} - -const int featureFontTableTag = 1717920116; - -const int featureUnsupported = -2053; - -final class fenv_t extends ffi.Struct { - @ffi.UnsignedLongLong() - external int __fpsr; - - @ffi.UnsignedLongLong() - external int __fpcr; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int $fpsr, - required int $fpcr, - }) => $allocator() - ..ref.__fpsr = $fpsr - ..ref.__fpcr = $fpcr; -} - -@Deprecated('Deprecated') -const int fetchReference = 2; - -typedef fexcept_t = ffi.UnsignedShort; -typedef Dartfexcept_t = int; - -final class fgetsigsinfo extends ffi.Struct { - @off_t() - external int fg_file_start; - - @ffi.Int() - external int fg_info_request; - - @ffi.Int() - external int fg_sig_is_platform; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fg_file_start, - required int fg_info_request, - required int fg_sig_is_platform, - }) => $allocator() - ..ref.fg_file_start = fg_file_start - ..ref.fg_info_request = fg_info_request - ..ref.fg_sig_is_platform = fg_sig_is_platform; -} - -typedef fgetsigsinfo_t = fgetsigsinfo; -@Deprecated('Deprecated') -const int fiLigature = 222; - -const int fidExists = -1301; - -const int fidNotFound = -1300; - -const int fieldOrderNotIntl = 8; - -const int fileBoundsErr = -1309; - -const int fileOffsetTooBigErr = -2125; - -enum filesec_property_t { - FILESEC_OWNER(1), - FILESEC_GROUP(2), - FILESEC_UUID(3), - FILESEC_MODE(4), - FILESEC_ACL(5), - FILESEC_GRPUUID(6), - FILESEC_ACL_RAW(100), - FILESEC_ACL_ALLOCSIZE(101); - - final int value; - const filesec_property_t(this.value); - - static filesec_property_t fromValue(int value) => switch (value) { - 1 => FILESEC_OWNER, - 2 => FILESEC_GROUP, - 3 => FILESEC_UUID, - 4 => FILESEC_MODE, - 5 => FILESEC_ACL, - 6 => FILESEC_GRPUUID, - 100 => FILESEC_ACL_RAW, - 101 => FILESEC_ACL_ALLOCSIZE, - _ => throw ArgumentError('Unknown value for filesec_property_t: $value'), - }; -} - -typedef filesec_t = ffi.Pointer<_filesec>; - -const int finalStage = 128; - -const int firstDskErr = -84; - -const int firstPickerError = -4000; - -typedef fixpt_t = u_int32_t; -@Deprecated('Deprecated') -const int flLigature = 223; - -typedef float_t = ffi.Float; -typedef Dartfloat_t = double; - -final class flock$1 extends ffi.Struct { - @off_t() - external int l_start; - - @off_t() - external int l_len; - - @pid_t() - external int l_pid; - - @ffi.Short() - external int l_type; - - @ffi.Short() - external int l_whence; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int l_start, - required int l_len, - required int l_pid, - required int l_type, - required int l_whence, - }) => $allocator() - ..ref.l_start = l_start - ..ref.l_len = l_len - ..ref.l_pid = l_pid - ..ref.l_type = l_type - ..ref.l_whence = l_whence; -} - -final class flocktimeout extends ffi.Struct { - external flock$1 fl; - - external timespec timeout; -} - -const int floppyIconResource = -3998; - -const int fmt1Err = -82; - -const int fmt2Err = -83; - -const int fnOpnErr = -38; - -const int fnfErr = -43; - -const int fontDecError = -64; - -const int fontNotDeclared = -65; - -const int fontNotOutlineErr = -32615; - -const int fontSubErr = -66; - -const int fontsFolderIconResource = -3968; - -const int forceReadBit = 6; - -const int forceReadMask = 64; - -const int formAbsolutePosition = 1768842360; - -const int formName = 1851878757; - -const int formPropertyID = 1886547824; - -const int formRange = 1918987879; - -const int formRelativePosition = 1919249509; - -const int formTest = 1952805748; - -const int formUniqueID = 1229201440; - -const int formWhose = 2003332979; - -typedef fpos_t = __darwin_off_t; - -final class fpunchhole extends ffi.Struct { - @ffi.UnsignedInt() - external int fp_flags; - - @ffi.UnsignedInt() - external int reserved; - - @off_t() - external int fp_offset; - - @off_t() - external int fp_length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fp_flags, - required int reserved, - required int fp_offset, - required int fp_length, - }) => $allocator() - ..ref.fp_flags = fp_flags - ..ref.reserved = reserved - ..ref.fp_offset = fp_offset - ..ref.fp_length = fp_length; -} - -typedef fpunchhole_t = fpunchhole; -@Deprecated('Deprecated') -const int fraction = 218; - -const int fsAtMark = 0; - -const int fsCurPerm = 0; - -const int fsDSIntErr = -127; - -const int fsDataTooBigErr = -1310; - -const int fsFromLEOF = 2; - -const int fsFromMark = 3; - -const int fsFromStart = 1; - -@Deprecated('Deprecated') -const int fsQType = 5; - -const int fsRdAccessPerm = 1; - -const int fsRdDenyPerm = 16; - -const int fsRdPerm = 1; - -const int fsRdWrPerm = 3; - -const int fsRdWrShPerm = 4; - -const int fsRnErr = -59; - -const int fsRtDirID = 2; - -const int fsRtParID = 1; - -const int fsSBAccessDate = 131072; - -const int fsSBAccessDateBit = 17; - -const int fsSBAttributeModDate = 65536; - -const int fsSBAttributeModDateBit = 16; - -const int fsSBDrBkDat = 2048; - -const int fsSBDrBkDatBit = 11; - -const int fsSBDrCrDat = 512; - -const int fsSBDrCrDatBit = 9; - -const int fsSBDrFndrInfo = 4096; - -const int fsSBDrFndrInfoBit = 12; - -const int fsSBDrMdDat = 1024; - -const int fsSBDrMdDatBit = 10; - -const int fsSBDrNmFls = 16; - -const int fsSBDrNmFlsBit = 4; - -const int fsSBDrParID = 8192; - -const int fsSBDrParIDBit = 13; - -const int fsSBDrUsrWds = 8; - -const int fsSBDrUsrWdsBit = 3; - -const int fsSBFlAttrib = 4; - -const int fsSBFlAttribBit = 2; - -const int fsSBFlBkDat = 2048; - -const int fsSBFlBkDatBit = 11; - -const int fsSBFlCrDat = 512; - -const int fsSBFlCrDatBit = 9; - -const int fsSBFlFndrInfo = 8; - -const int fsSBFlFndrInfoBit = 3; - -const int fsSBFlLgLen = 32; - -const int fsSBFlLgLenBit = 5; - -const int fsSBFlMdDat = 1024; - -const int fsSBFlMdDatBit = 10; - -const int fsSBFlParID = 8192; - -const int fsSBFlParIDBit = 13; - -const int fsSBFlPyLen = 64; - -const int fsSBFlPyLenBit = 6; - -const int fsSBFlRLgLen = 128; - -const int fsSBFlRLgLenBit = 7; - -const int fsSBFlRPyLen = 256; - -const int fsSBFlRPyLenBit = 8; - -const int fsSBFlXFndrInfo = 4096; - -const int fsSBFlXFndrInfoBit = 12; - -const int fsSBFullName = 2; - -const int fsSBFullNameBit = 1; - -const int fsSBGroupID = 4194304; - -const int fsSBGroupIDBit = 22; - -const int fsSBNegate = 16384; - -const int fsSBNegateBit = 14; - -const int fsSBNodeID = 32768; - -const int fsSBNodeIDBit = 15; - -const int fsSBPartialName = 1; - -const int fsSBPartialNameBit = 0; - -const int fsSBPermissions = 262144; - -const int fsSBPermissionsBit = 18; - -const int fsSBSkipHiddenItems = 1048576; - -const int fsSBSkipHiddenItemsBit = 20; - -const int fsSBSkipPackageContents = 524288; - -const int fsSBSkipPackageContentsBit = 19; - -const int fsSBUserID = 2097152; - -const int fsSBUserIDBit = 21; - -const int fsUnixPriv = 1; - -const int fsWrAccessPerm = 2; - -const int fsWrDenyPerm = 32; - -const int fsWrPerm = 2; - -typedef fsblkcnt_t = __darwin_fsblkcnt_t; -typedef fsfilcnt_t = __darwin_fsfilcnt_t; - -final class fsid extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array val; -} - -typedef fsid_t = fsid; - -final class fsignatures extends ffi.Struct { - @off_t() - external int fs_file_start; - - external ffi.Pointer fs_blob_start; - - @ffi.Size() - external int fs_blob_size; - - @ffi.Size() - external int fs_fsignatures_size; - - @ffi.Array.multi([20]) - external ffi.Array fs_cdhash; - - @ffi.Int() - external int fs_hash_type; -} - -typedef fsignatures_t = fsignatures; - -const int fsmBadFFSNameErr = -433; - -const int fsmBadFSDLenErr = -434; - -const int fsmBadFSDVersionErr = -436; - -const int fsmBusyFFSErr = -432; - -const int fsmDuplicateFSIDErr = -435; - -const int fsmFFSNotFoundErr = -431; - -const int fsmNoAlternateStackErr = -437; - -const int fsmUnknownFSMMessageErr = -438; - -final class fsobj_id extends ffi.Struct { - @u_int32_t() - external int fid_objno; - - @u_int32_t() - external int fid_generation; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fid_objno, - required int fid_generation, - }) => $allocator() - ..ref.fid_objno = fid_objno - ..ref.fid_generation = fid_generation; -} - -typedef fsobj_id_t = fsobj_id; - -final class fspecread extends ffi.Struct { - @ffi.UnsignedInt() - external int fsr_flags; - - @ffi.UnsignedInt() - external int reserved; - - @off_t() - external int fsr_offset; - - @off_t() - external int fsr_length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fsr_flags, - required int reserved, - required int fsr_offset, - required int fsr_length, - }) => $allocator() - ..ref.fsr_flags = fsr_flags - ..ref.reserved = reserved - ..ref.fsr_offset = fsr_offset - ..ref.fsr_length = fsr_length; -} - -typedef fspecread_t = fspecread; - -final class fssearchblock extends ffi.Opaque {} - -final class fstore extends ffi.Struct { - @ffi.UnsignedInt() - external int fst_flags; - - @ffi.Int() - external int fst_posmode; - - @off_t() - external int fst_offset; - - @off_t() - external int fst_length; - - @off_t() - external int fst_bytesalloc; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fst_flags, - required int fst_posmode, - required int fst_offset, - required int fst_length, - required int fst_bytesalloc, - }) => $allocator() - ..ref.fst_flags = fst_flags - ..ref.fst_posmode = fst_posmode - ..ref.fst_offset = fst_offset - ..ref.fst_length = fst_length - ..ref.fst_bytesalloc = fst_bytesalloc; -} - -typedef fstore_t = fstore; - -final class fsupplement extends ffi.Struct { - @off_t() - external int fs_file_start; - - @off_t() - external int fs_blob_start; - - @ffi.Size() - external int fs_blob_size; - - @ffi.Int() - external int fs_orig_fd; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fs_file_start, - required int fs_blob_start, - required int fs_blob_size, - required int fs_orig_fd, - }) => $allocator() - ..ref.fs_file_start = fs_file_start - ..ref.fs_blob_start = fs_blob_start - ..ref.fs_blob_size = fs_blob_size - ..ref.fs_orig_fd = fs_orig_fd; -} - -typedef fsupplement_t = fsupplement; - -final class ftrimactivefile extends ffi.Struct { - @off_t() - external int fta_offset; - - @off_t() - external int fta_length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int fta_offset, - required int fta_length, - }) => $allocator() - ..ref.fta_offset = fta_offset - ..ref.fta_length = fta_length; -} - -typedef ftrimactivefile_t = ftrimactivefile; - -const int fullTrashIconResource = -3984; - -const int gWorldsNotSameDepthAndSizeErr = -2066; - -const int gcrOnMFMErr = -400; - -const int genCdevRangeBit = 27; - -const int genericApplicationIconResource = -3996; - -const int genericCDROMIconResource = -3987; - -const int genericDeskAccessoryIconResource = -3991; - -const int genericDocumentIconResource = -4000; - -const int genericEditionFileIconResource = -3989; - -const int genericExtensionIconResource = -16415; - -const int genericFileServerIconResource = -3972; - -const int genericFolderIconResource = -3999; - -const int genericHardDiskIconResource = -3995; - -const int genericMoverObjectIconResource = -3969; - -const int genericPreferencesIconResource = -3971; - -const int genericQueryDocumentIconResource = -16506; - -const int genericRAMDiskIconResource = -3988; - -const int genericStationeryIconResource = -3985; - -const int genericSuitcaseIconResource = -3970; - -const int gestalt16BitAudioSupport = 12; - -const int gestalt16BitSoundIO = 7; - -const int gestalt20thAnniversary = 512; - -const int gestalt32BitAddressing = 0; - -const int gestalt32BitCapable = 2; - -const int gestalt32BitQD = 512; - -const int gestalt32BitQD11 = 513; - -const int gestalt32BitQD12 = 544; - -const int gestalt32BitQD13 = 560; - -const int gestalt32BitSysZone = 1; - -const int gestalt68000 = 1; - -const int gestalt68010 = 2; - -const int gestalt68020 = 3; - -const int gestalt68030 = 4; - -const int gestalt68030MMU = 3; - -const int gestalt68040 = 5; - -const int gestalt68040FPU = 3; - -const int gestalt68040MMU = 4; - -const int gestalt68851 = 2; - -const int gestalt68881 = 1; - -const int gestalt68882 = 2; - -const int gestalt68k = 1; - -const int gestalt8BitQD = 256; - -const int gestaltADBISOKbdII = 11; - -const int gestaltADBKbdII = 10; - -const int gestaltAFPClient = 1634103411; - -const int gestaltAFPClient3_5 = 1; - -const int gestaltAFPClient3_6 = 2; - -const int gestaltAFPClient3_6_1 = 3; - -const int gestaltAFPClient3_6_2 = 4; - -const int gestaltAFPClient3_6_3 = 5; - -const int gestaltAFPClient3_7 = 6; - -const int gestaltAFPClient3_7_2 = 7; - -const int gestaltAFPClient3_8 = 8; - -const int gestaltAFPClient3_8_1 = 9; - -const int gestaltAFPClient3_8_3 = 10; - -const int gestaltAFPClient3_8_4 = 11; - -const int gestaltAFPClientAttributeMask = -65536; - -const int gestaltAFPClientCfgRsrc = 16; - -const int gestaltAFPClientMultiReq = 31; - -const int gestaltAFPClientSupportsIP = 29; - -const int gestaltAFPClientVMUI = 30; - -const int gestaltAFPClientVersionMask = 65535; - -const int gestaltALMAttr = 1953655152; - -const int gestaltALMHasCFMSupport = 2; - -const int gestaltALMHasRescanNotifiers = 3; - -const int gestaltALMHasSFGroup = 1; - -const int gestaltALMHasSFLocation = 1; - -const int gestaltALMPresent = 0; - -const int gestaltALMVers = 2002873451; - -const int gestaltAMU = 1; - -const int gestaltATAAttr = 1635016992; - -const int gestaltATAPresent = 0; - -const int gestaltATSUAscentDescentControlsFeature = 16; - -const int gestaltATSUBatchBreakLinesFeature = 16; - -const int gestaltATSUBiDiCursorPositionFeature = 32; - -const int gestaltATSUByCharacterClusterFeature = 16; - -const int gestaltATSUDecimalTabFeature = 32; - -const int gestaltATSUDirectAccess = 16; - -const int gestaltATSUDropShadowStyleFeature = 32; - -const int gestaltATSUFallbacksFeature = 1; - -const int gestaltATSUFallbacksObjFeatures = 8; - -const int gestaltATSUFeatures = 1969845094; - -const int gestaltATSUGlyphBoundsFeature = 1; - -const int gestaltATSUHighlightColorControlFeature = 32; - -const int gestaltATSUHighlightInactiveTextFeature = 16; - -const int gestaltATSUIgnoreLeadingFeature = 8; - -const int gestaltATSULayoutCacheClearFeature = 1; - -const int gestaltATSULayoutCreateAndCopyFeature = 1; - -const int gestaltATSULineControlFeature = 1; - -const int gestaltATSULowLevelOrigFeatures = 4; - -const int gestaltATSUMemoryFeature = 1; - -const int gestaltATSUNearestCharLineBreakFeature = 32; - -const int gestaltATSUPositionToCursorFeature = 16; - -const int gestaltATSUStrikeThroughStyleFeature = 32; - -const int gestaltATSUTabSupportFeature = 16; - -const int gestaltATSUTextLocatorUsageFeature = 2; - -const int gestaltATSUTrackingFeature = 1; - -const int gestaltATSUUnderlineOptionsStyleFeature = 32; - -const int gestaltATSUUpdate1 = 131072; - -const int gestaltATSUUpdate2 = 196608; - -const int gestaltATSUUpdate3 = 262144; - -const int gestaltATSUUpdate4 = 327680; - -const int gestaltATSUUpdate5 = 393216; - -const int gestaltATSUUpdate6 = 458752; - -const int gestaltATSUUpdate7 = 524288; - -const int gestaltATSUVersion = 1969845110; - -const int gestaltATalkVersion = 1635019638; - -const int gestaltAUXVersion = 1630500216; - -const int gestaltAVLTreeAttr = 1953654117; - -const int gestaltAVLTreePresentBit = 0; - -const int gestaltAVLTreeSupportsHandleBasedTreeBit = 1; - -const int gestaltAVLTreeSupportsTreeLockingBit = 2; - -const int gestaltAWS6150_60 = 75; - -const int gestaltAWS6150_66 = 100; - -const int gestaltAWS8150_110 = 40; - -const int gestaltAWS8150_80 = 65; - -const int gestaltAWS8550 = 68; - -const int gestaltAWS9150_120 = 57; - -const int gestaltAWS9150_80 = 39; - -const int gestaltAddressingModeAttr = 1633969266; - -const int gestaltAdminFeaturesFlagsAttr = 1718773092; - -const int gestaltAliasMgrAttr = 1634494835; - -const int gestaltAliasMgrFollowsAliasesWhenResolving = 4; - -const int gestaltAliasMgrPrefersPath = 7; - -const int gestaltAliasMgrPresent = 0; - -const int gestaltAliasMgrRequiresAccessors = 8; - -const int gestaltAliasMgrResolveAliasFileWithMountOptions = 3; - -const int gestaltAliasMgrSupportsAOCEKeychain = 2; - -const int gestaltAliasMgrSupportsExtendedCalls = 5; - -const int gestaltAliasMgrSupportsFSCalls = 6; - -const int gestaltAliasMgrSupportsRemoteAppletalk = 1; - -const int gestaltAllegroQD = 592; - -const int gestaltAllegroQDText = 256; - -const int gestaltAltivecRegistersSwappedCorrectlyBit = 20; - -const int gestaltAntiAliasedTextAvailable = 2; - -const int gestaltAppearanceAttr = 1634758770; - -const int gestaltAppearanceCompatMode = 1; - -const int gestaltAppearanceExists = 0; - -const int gestaltAppearanceVersion = 1634760306; - -const int gestaltAppleAdjustADBKbd = 15; - -const int gestaltAppleAdjustISOKbd = 16; - -const int gestaltAppleAdjustKeypad = 14; - -const int gestaltAppleEventsAttr = 1702260340; - -const int gestaltAppleEventsPresent = 0; - -const int gestaltAppleGuideIsDebug = 30; - -const int gestaltAppleGuidePresent = 31; - -const int gestaltAppleScriptAttr = 1634952050; - -const int gestaltAppleScriptPowerPCSupport = 1; - -const int gestaltAppleScriptPresent = 0; - -const int gestaltAppleScriptVersion = 1634952054; - -const int gestaltAppleTalkVersion = 1635019883; - -const int gestaltArbitorAttr = 1634886176; - -const int gestaltArm = 20; - -const int gestaltAsyncSCSI = 0; - -const int gestaltAsyncSCSIINROM = 1; - -const int gestaltBuiltInSoundInput = 4; - -const int gestaltBusClkSpeed = 1650682987; - -const int gestaltBusClkSpeedMHz = 1650682989; - -const int gestaltCFM99Present = 2; - -const int gestaltCFM99PresentMask = 4; - -const int gestaltCFMAttr = 1667658343; - -const int gestaltCFMPresent = 0; - -const int gestaltCFMPresentMask = 1; - -const int gestaltCPU486 = 1765029942; - -const int gestaltCPU601 = 257; - -const int gestaltCPU603 = 259; - -const int gestaltCPU603e = 262; - -const int gestaltCPU603ev = 263; - -const int gestaltCPU604 = 260; - -const int gestaltCPU604e = 265; - -const int gestaltCPU604ev = 266; - -const int gestaltCPU68000 = 0; - -const int gestaltCPU68010 = 1; - -const int gestaltCPU68020 = 2; - -const int gestaltCPU68030 = 3; - -const int gestaltCPU68040 = 4; - -const int gestaltCPU750 = 264; - -const int gestaltCPU750FX = 288; - -const int gestaltCPU970 = 313; - -const int gestaltCPU970FX = 316; - -const int gestaltCPU970MP = 324; - -const int gestaltCPUARM64 = 1635268148; - -const int gestaltCPUARMFamily = 1634888992; - -const int gestaltCPUApollo = 273; - -const int gestaltCPUG4 = 268; - -const int gestaltCPUG47447 = 274; - -const int gestaltCPUG47450 = 272; - -const int gestaltCPUPentium = 1765095478; - -const int gestaltCPUPentium4 = 1765108086; - -const int gestaltCPUPentiumII = 1765108073; - -const int gestaltCPUPentiumPro = 1765109874; - -const int gestaltCPUX86 = 1769502840; - -const int gestaltCRMAttr = 1668443424; - -const int gestaltCRMPersistentFix = 1; - -const int gestaltCRMPresent = 0; - -const int gestaltCRMToolRsrcCalls = 2; - -const int gestaltCTBVersion = 1668571766; - -const int gestaltCanStartDragInFloatWindow = 4; - -const int gestaltCanUseCGTextRendering = 6; - -const int gestaltCarbonVersion = 1667395438; - -const int gestaltCardServicesPresent = 0; - -const int gestaltClassic = 1; - -const int gestaltClassicII = 23; - -const int gestaltCloseViewAttr = 1112753249; - -const int gestaltCloseViewDisplayMgrFriendly = 1; - -const int gestaltCloseViewEnabled = 0; - -const int gestaltCollectionMgrVersion = 1668052078; - -const int gestaltColorMatchingAttr = 1668117601; - -const int gestaltColorMatchingLibLoaded = 1; - -const int gestaltColorMatchingVersion = 1668117603; - -const int gestaltColorPicker = 1668311922; - -const int gestaltColorPickerVersion = 1668311922; - -const int gestaltColorSync10 = 256; - -const int gestaltColorSync104 = 260; - -const int gestaltColorSync105 = 261; - -const int gestaltColorSync11 = 272; - -const int gestaltColorSync20 = 512; - -const int gestaltColorSync21 = 528; - -const int gestaltColorSync211 = 529; - -const int gestaltColorSync212 = 530; - -const int gestaltColorSync213 = 531; - -const int gestaltColorSync25 = 592; - -const int gestaltColorSync26 = 608; - -const int gestaltColorSync261 = 609; - -const int gestaltColorSync30 = 768; - -const int gestaltComponentMgr = 1668312692; - -const int gestaltComponentPlatform = 1668247660; - -const int gestaltCompressionMgr = 1768123760; - -const int gestaltConnMgrAttr = 1668247150; - -const int gestaltConnMgrCMSearchFix = 1; - -const int gestaltConnMgrErrorString = 2; - -const int gestaltConnMgrMultiAsyncIO = 3; - -const int gestaltConnMgrPresent = 0; - -const int gestaltControlMgrAttr = 1668183148; - -const int gestaltControlMgrPresent = 1; - -const int gestaltControlMgrPresentBit = 0; - -const int gestaltControlMgrVersion = 1668118130; - -const int gestaltControlMsgPresentMask = 1; - -const int gestaltControlStripAttr = 1935959414; - -const int gestaltControlStripExists = 0; - -const int gestaltControlStripUserFont = 2; - -const int gestaltControlStripUserHotKey = 3; - -const int gestaltControlStripVersion = 1668511346; - -const int gestaltControlStripVersionFixed = 1; - -const int gestaltCountOfCPUs = 1668314483; - -const int gestaltCreatesAliasFontRsrc = 4; - -const int gestaltCurrentGraphicsVersion = 66048; - -const int gestaltDBAccessMgrAttr = 1684169059; - -const int gestaltDBAccessMgrPresent = 0; - -const int gestaltDITLExtAttr = 1684632684; - -const int gestaltDITLExtPresent = 0; - -const int gestaltDITLExtSupportsIctb = 1; - -const int gestaltDTMgrSupportsFSM = 7; - -const int gestaltDTPFeatures = 1685352550; - -const int gestaltDTPInfo = 1685352568; - -const int gestaltDesktopPicturesAttr = 1684762744; - -const int gestaltDesktopPicturesDisplayed = 1; - -const int gestaltDesktopPicturesInstalled = 0; - -const int gestaltDesktopSpeechRecognition = 1; - -const int gestaltDialogMgrAttr = 1684828007; - -const int gestaltDialogMgrHasAquaAlertBit = 2; - -const int gestaltDialogMgrHasAquaAlertMask = 4; - -const int gestaltDialogMgrPresent = 1; - -const int gestaltDialogMgrPresentBit = 0; - -const int gestaltDialogMgrPresentMask = 1; - -const int gestaltDialogMsgPresentMask = 1; - -const int gestaltDictionaryMgrAttr = 1684628340; - -const int gestaltDictionaryMgrPresent = 0; - -const int gestaltDigitalSignatureVersion = 1685285223; - -const int gestaltDiskCacheSize = 1684239226; - -const int gestaltDisplayMgrAttr = 1685089401; - -const int gestaltDisplayMgrCanConfirm = 4; - -const int gestaltDisplayMgrCanSwitchMirrored = 2; - -const int gestaltDisplayMgrColorSyncAware = 5; - -const int gestaltDisplayMgrGeneratesProfiles = 6; - -const int gestaltDisplayMgrPresent = 0; - -const int gestaltDisplayMgrSetDepthNotifies = 3; - -const int gestaltDisplayMgrSleepNotifies = 7; - -const int gestaltDisplayMgrVers = 1685089398; - -const int gestaltDragMgrAttr = 1685217639; - -const int gestaltDragMgrFloatingWind = 1; - -const int gestaltDragMgrHasImageSupport = 3; - -const int gestaltDragMgrPresent = 0; - -const int gestaltDrawSprocketVersion = 1685287030; - -const int gestaltDupSelectorErr = -5552; - -const int gestaltEMMU1 = 5; - -const int gestaltEasyAccessAttr = 1700885369; - -const int gestaltEasyAccessLocked = 3; - -const int gestaltEasyAccessOff = 0; - -const int gestaltEasyAccessOn = 1; - -const int gestaltEasyAccessSticky = 2; - -const int gestaltEditionMgrAttr = 1701082222; - -const int gestaltEditionMgrPresent = 0; - -const int gestaltEditionMgrTranslationAware = 1; - -const int gestaltExtADBKbd = 4; - -const int gestaltExtISOADBKbd = 9; - -const int gestaltExtToolboxTable = 2020897908; - -const int gestaltExtendedTimeMgr = 3; - -const int gestaltExtendedWindowAttributes = 1; - -const int gestaltExtendedWindowAttributesBit = 1; - -const int gestaltExtendedWindowAttributesMask = 2; - -const int gestaltExtensionTableVersion = 1702126188; - -const int gestaltFBCCurrentVersion = 17; - -const int gestaltFBCIndexingState = 1717724009; - -const int gestaltFBCVersion = 1717724022; - -const int gestaltFBCindexingCritical = 1; - -const int gestaltFBCindexingSafe = 0; - -const int gestaltFPUType = 1718646048; - -const int gestaltFSAllowsConcurrentAsyncIO = 17; - -const int gestaltFSAttr = 1718820896; - -const int gestaltFSIncompatibleDFA82 = 10; - -const int gestaltFSMDoesDynamicLoad = 3; - -const int gestaltFSMVersion = 1718840608; - -const int gestaltFSNoMFSVols = 8; - -const int gestaltFSSupports2TBVols = 5; - -const int gestaltFSSupports4GBVols = 4; - -const int gestaltFSSupportsDirectIO = 11; - -const int gestaltFSSupportsExclusiveLocks = 15; - -const int gestaltFSSupportsHFSPlusVols = 9; - -const int gestaltFSSupportsHardLinkDetection = 16; - -const int gestaltFSUsesPOSIXPathsForConversion = 14; - -const int gestaltFXfrMgrAsync = 3; - -const int gestaltFXfrMgrAttr = 1719166578; - -const int gestaltFXfrMgrErrorString = 2; - -const int gestaltFXfrMgrMultiFile = 1; - -const int gestaltFXfrMgrPresent = 0; - -const int gestaltFileAllocationZeroedBlocksBit = 4; - -const int gestaltFileMappingAttr = 1718381936; - -const int gestaltFileMappingMultipleFilesFix = 1; - -const int gestaltFileMappingPresent = 0; - -const int gestaltFindFolderAttr = 1718578276; - -const int gestaltFindFolderPresent = 0; - -const int gestaltFindFolderRedirectionAttr = 1718578277; - -const int gestaltFinderAttr = 1718510706; - -const int gestaltFinderCallsAEProcess = 2; - -const int gestaltFinderDropEvent = 0; - -const int gestaltFinderFloppyRootComments = 8; - -const int gestaltFinderFullDragManagerSupport = 7; - -const int gestaltFinderHasClippings = 6; - -const int gestaltFinderLargeAndNotSavedFlavorsOK = 9; - -const int gestaltFinderMagicPlacement = 1; - -const int gestaltFinderSupports4GBVolumes = 4; - -const int gestaltFinderUnderstandsRedirectedDesktopFolder = 11; - -const int gestaltFinderUsesExtensibleFolderManager = 10; - -const int gestaltFinderUsesSpecialOpenFoldersFile = 0; - -const int gestaltFirstSlotNumber = 1936487473; - -const int gestaltFloppyAttr = 1718382713; - -const int gestaltFloppyIsMFMOnly = 0; - -const int gestaltFloppyIsManualEject = 1; - -const int gestaltFloppyUsesDiskInPlace = 2; - -const int gestaltFolderDescSupport = 1; - -const int gestaltFolderMgrFollowsAliasesWhenResolving = 2; - -const int gestaltFolderMgrSupportsDomains = 4; - -const int gestaltFolderMgrSupportsExtendedCalls = 3; - -const int gestaltFolderMgrSupportsFSCalls = 5; - -const int gestaltFontMgrAttr = 1718578804; - -const int gestaltFrontWindowMayBeHiddenBit = 8; - -const int gestaltFrontWindowMayBeHiddenMask = 256; - -const int gestaltFullExtFSDispatching = 0; - -const int gestaltGXPrintingMgrVersion = 1886218098; - -const int gestaltGXVersion = 1902405496; - -const int gestaltGraphicsAttr = 1734768737; - -const int gestaltGraphicsIsDebugging = 1; - -const int gestaltGraphicsIsLoaded = 2; - -const int gestaltGraphicsIsPowerPC = 4; - -const int gestaltGraphicsVersion = 1735550584; - -const int gestaltHardwareAttr = 1751414642; - -const int gestaltHardwareVendorApple = 1097887852; - -const int gestaltHardwareVendorCode = 1752326500; - -const int gestaltHasASC = 3; - -const int gestaltHasColor = 0; - -const int gestaltHasDeepGWorlds = 1; - -const int gestaltHasDirectPixMaps = 2; - -const int gestaltHasEnhancedLtalk = 30; - -const int gestaltHasExtendedDiskInit = 6; - -const int gestaltHasFMTuner = 7; - -const int gestaltHasFSSpecCalls = 1; - -const int gestaltHasFileSystemManager = 2; - -const int gestaltHasFloatingWindows = 2; - -const int gestaltHasFloatingWindowsBit = 2; - -const int gestaltHasFloatingWindowsMask = 4; - -const int gestaltHasGPIaToDCDa = 0; - -const int gestaltHasGPIaToRTxCa = 1; - -const int gestaltHasGPIbToDCDb = 2; - -const int gestaltHasGrayishTextOr = 3; - -const int gestaltHasHFSPlusAPIs = 12; - -const int gestaltHasHWClosedCaptioning = 2; - -const int gestaltHasIRRemote = 3; - -const int gestaltHasParityCapability = 0; - -const int gestaltHasResourceOverrides = 1; - -const int gestaltHasSCC = 4; - -const int gestaltHasSCSI = 7; - -const int gestaltHasSCSI961 = 21; - -const int gestaltHasSCSI962 = 22; - -const int gestaltHasSerialFader = 6; - -const int gestaltHasSingleWindowModeBit = 8; - -const int gestaltHasSingleWindowModeMask = 256; - -const int gestaltHasSoftPowerOff = 19; - -const int gestaltHasSoundFader = 1; - -const int gestaltHasSoundInputDevice = 5; - -const int gestaltHasStereoDecoder = 5; - -const int gestaltHasSystemIRFunction = 8; - -const int gestaltHasTVTuner = 0; - -const int gestaltHasUniversalROM = 24; - -const int gestaltHasVIA1 = 0; - -const int gestaltHasVIA2 = 1; - -const int gestaltHasVidDecoderScaler = 4; - -const int gestaltHasWindowBuffering = 3; - -const int gestaltHasWindowBufferingBit = 3; - -const int gestaltHasWindowBufferingMask = 8; - -const int gestaltHasWindowShadowsBit = 6; - -const int gestaltHasWindowShadowsMask = 64; - -const int gestaltHasZoomedVideo = 11; - -const int gestaltHelpMgrAttr = 1751477360; - -const int gestaltHelpMgrExtensions = 1; - -const int gestaltHelpMgrPresent = 0; - -const int gestaltHidePortA = 3; - -const int gestaltHidePortB = 4; - -const int gestaltHighLevelMatching = 0; - -const int gestaltINeedIRPowerOffConfirm = 10; - -const int gestaltIPCSupport = 7; - -const int gestaltIRDisabled = 9; - -const int gestaltIconUtilitiesAttr = 1768124270; - -const int gestaltIconUtilitiesHas32BitIcons = 2; - -const int gestaltIconUtilitiesHas48PixelIcons = 1; - -const int gestaltIconUtilitiesHas8BitDeepMasks = 3; - -const int gestaltIconUtilitiesHasIconServices = 4; - -const int gestaltIconUtilitiesPresent = 0; - -const int gestaltInitHeapZerosOutHeapsBit = 1; - -const int gestaltIntel = 10; - -const int gestaltInternalDisplay = 1768190832; - -const int gestaltJapanAdjustADBKbd = 17; - -const int gestaltKeyboardType = 1801610272; - -const int gestaltLaunchCanReturn = 1; - -const int gestaltLaunchControl = 3; - -const int gestaltLaunchFullFileSpec = 2; - -const int gestaltLineLevelInput = 9; - -const int gestaltLocationErr = -5553; - -const int gestaltLogicalPageSize = 1885827962; - -const int gestaltLogicalRAMSize = 1819435373; - -const int gestaltLowMemorySize = 1819108717; - -const int gestaltMBLegacy = 0; - -const int gestaltMBMultipleBays = 2; - -const int gestaltMBSingleBay = 1; - -const int gestaltMMUType = 1835889952; - -const int gestaltMPCallableAPIsAttr = 1836086115; - -const int gestaltMPDeviceManager = 1; - -const int gestaltMPFileManager = 0; - -const int gestaltMPTrapCalls = 2; - -const int gestaltMac512KE = 3; - -const int gestaltMacAndPad = 2; - -const int gestaltMacCentris610 = 52; - -const int gestaltMacCentris650 = 30; - -const int gestaltMacCentris660AV = 60; - -const int gestaltMacClassic = 17; - -const int gestaltMacColorClassic = 49; - -const int gestaltMacII = 6; - -const int gestaltMacIIci = 11; - -const int gestaltMacIIcx = 8; - -const int gestaltMacIIfx = 13; - -const int gestaltMacIIsi = 18; - -const int gestaltMacIIvi = 44; - -const int gestaltMacIIvm = 45; - -const int gestaltMacIIvx = 48; - -const int gestaltMacIIx = 7; - -const int gestaltMacKbd = 1; - -const int gestaltMacLC = 19; - -const int gestaltMacLC475 = 89; - -const int gestaltMacLC520 = 56; - -const int gestaltMacLC575 = 92; - -const int gestaltMacLC580 = 99; - -const int gestaltMacLCII = 37; - -const int gestaltMacLCIII = 27; - -const int gestaltMacOSCompatibility = 1206; - -const int gestaltMacOSCompatibilityBoxAttr = 1650618232; - -const int gestaltMacOSCompatibilityBoxHasSerial = 1; - -const int gestaltMacOSCompatibilityBoxPresent = 0; - -const int gestaltMacOSCompatibilityBoxless = 2; - -const int gestaltMacOSXQD = 768; - -const int gestaltMacOSXQDText = 512; - -const int gestaltMacPlus = 4; - -const int gestaltMacPlusKbd = 3; - -const int gestaltMacQuadra605 = 94; - -const int gestaltMacQuadra610 = 53; - -const int gestaltMacQuadra630 = 98; - -const int gestaltMacQuadra650 = 36; - -const int gestaltMacQuadra660AV = 60; - -const int gestaltMacQuadra700 = 22; - -const int gestaltMacQuadra800 = 35; - -const int gestaltMacQuadra840AV = 78; - -const int gestaltMacQuadra900 = 20; - -const int gestaltMacQuadra950 = 26; - -const int gestaltMacSE = 5; - -const int gestaltMacSE030 = 9; - -const int gestaltMacTV = 88; - -const int gestaltMacXL = 2; - -const int gestaltMachineIcon = 1835623278; - -const int gestaltMachineType = 1835098984; - -const int gestaltMediaBay = 1835165032; - -const int gestaltMemoryMapAttr = 1835884912; - -const int gestaltMemoryMapSparse = 0; - -const int gestaltMenuMgrAquaLayoutBit = 1; - -const int gestaltMenuMgrAquaLayoutMask = 2; - -const int gestaltMenuMgrAttr = 1835363957; - -const int gestaltMenuMgrCGImageMenuTitleBit = 6; - -const int gestaltMenuMgrCGImageMenuTitleMask = 64; - -const int gestaltMenuMgrMoreThanFiveMenusDeepBit = 5; - -const int gestaltMenuMgrMoreThanFiveMenusDeepMask = 32; - -const int gestaltMenuMgrMultipleItemsWithCommandIDBit = 2; - -const int gestaltMenuMgrMultipleItemsWithCommandIDMask = 4; - -const int gestaltMenuMgrPresent = 1; - -const int gestaltMenuMgrPresentBit = 0; - -const int gestaltMenuMgrPresentMask = 1; - -const int gestaltMenuMgrRetainsIconRefBit = 3; - -const int gestaltMenuMgrRetainsIconRefMask = 8; - -const int gestaltMenuMgrSendsMenuBoundsToDefProcBit = 4; - -const int gestaltMenuMgrSendsMenuBoundsToDefProcMask = 16; - -const int gestaltMessageMgrVersion = 1835365235; - -const int gestaltMiscAttr = 1835627363; - -const int gestaltMixedModeAttr = 1835628644; - -const int gestaltMixedModeCFM68K = 1; - -const int gestaltMixedModeCFM68KHasState = 3; - -const int gestaltMixedModeCFM68KHasTrap = 2; - -const int gestaltMixedModePowerPC = 0; - -const int gestaltMixedModeVersion = 1835628644; - -const int gestaltMultiChannels = 11; - -const int gestaltMultipleUsersState = 1835426930; - -const int gestaltMustUseFCBAccessors = 13; - -const int gestaltNameRegistryVersion = 1852990823; - -const int gestaltNativeCPUfamily = 1668314470; - -const int gestaltNativeCPUtype = 1668314484; - -const int gestaltNativeProcessMgrBit = 19; - -const int gestaltNativeTimeMgr = 4; - -const int gestaltNativeType1FontSupport = 5; - -const int gestaltNewHandleReturnsZeroedMemoryBit = 2; - -const int gestaltNewPtrReturnsZeroedMemoryBit = 3; - -const int gestaltNoFPU = 0; - -const int gestaltNoMMU = 0; - -const int gestaltNotificationMgrAttr = 1852663666; - -const int gestaltNotificationPresent = 0; - -const int gestaltNuBusConnectors = 1936487523; - -const int gestaltNuBusPresent = 1; - -const int gestaltNuBusSlotCount = 1853186675; - -const int gestaltOCESFServerAvailable = 4; - -const int gestaltOCETB = 258; - -const int gestaltOCETBAvailable = 2; - -const int gestaltOCETBNativeGlueAvailable = 16; - -const int gestaltOCETBPresent = 1; - -const int gestaltOCEToolboxAttr = 1868785013; - -const int gestaltOCEToolboxVersion = 1868785012; - -const int gestaltOFA2available = 3; - -const int gestaltOSAttr = 1869815840; - -const int gestaltOSLCompliantFinder = 3; - -const int gestaltOSLInSystem = 2; - -const int gestaltOSTable = 1869837428; - -const int gestaltOSXFBCCurrentVersion = 256; - -const int gestaltOpenFirmwareInfo = 1869637239; - -const int gestaltOpenTpt = 1869898094; - -const int gestaltOpenTptARAPPresent = 6; - -const int gestaltOpenTptAppleTalkLoadedBit = 3; - -const int gestaltOpenTptAppleTalkLoadedMask = 8; - -const int gestaltOpenTptAppleTalkPresentBit = 2; - -const int gestaltOpenTptAppleTalkPresentMask = 4; - -const int gestaltOpenTptIPXSPXLoadedBit = 7; - -const int gestaltOpenTptIPXSPXLoadedMask = 128; - -const int gestaltOpenTptIPXSPXPresentBit = 6; - -const int gestaltOpenTptIPXSPXPresentMask = 64; - -const int gestaltOpenTptLoadedBit = 1; - -const int gestaltOpenTptLoadedMask = 2; - -const int gestaltOpenTptNetworkSetup = 1869898598; - -const int gestaltOpenTptNetworkSetupLegacyExport = 1; - -const int gestaltOpenTptNetworkSetupLegacyImport = 0; - -const int gestaltOpenTptNetworkSetupSupportsMultihoming = 2; - -const int gestaltOpenTptNetworkSetupVersion = 1869898614; - -const int gestaltOpenTptPPPPresent = 5; - -const int gestaltOpenTptPresentBit = 0; - -const int gestaltOpenTptPresentMask = 1; - -const int gestaltOpenTptRemoteAccess = 1869902433; - -const int gestaltOpenTptRemoteAccessClientOnly = 2; - -const int gestaltOpenTptRemoteAccessLoaded = 1; - -const int gestaltOpenTptRemoteAccessMPServer = 4; - -const int gestaltOpenTptRemoteAccessPServer = 3; - -const int gestaltOpenTptRemoteAccessPresent = 0; - -const int gestaltOpenTptRemoteAccessVersion = 1869902454; - -const int gestaltOpenTptTCPLoadedBit = 5; - -const int gestaltOpenTptTCPLoadedMask = 32; - -const int gestaltOpenTptTCPPresentBit = 4; - -const int gestaltOpenTptTCPPresentMask = 16; - -const int gestaltOpenTptVersions = 1869903474; - -const int gestaltOriginalATSUVersion = 65536; - -const int gestaltOriginalQD = 0; - -const int gestaltOriginalQDText = 0; - -const int gestaltOutlineFonts = 0; - -const int gestaltPCCard = 1885561700; - -const int gestaltPCCardFamilyPresent = 1; - -const int gestaltPCCardHasPowerControl = 2; - -const int gestaltPCCardSupportsCardBus = 3; - -const int gestaltPCXAttr = 1885567079; - -const int gestaltPCXHas8and16BitFAT = 0; - -const int gestaltPCXHasProDOS = 1; - -const int gestaltPCXNewUI = 2; - -const int gestaltPCXUseICMapping = 3; - -const int gestaltPMgrCPUIdle = 1; - -const int gestaltPMgrDispatchExists = 4; - -const int gestaltPMgrExists = 0; - -const int gestaltPMgrSCC = 2; - -const int gestaltPMgrSound = 3; - -const int gestaltPMgrSupportsAVPowerStateAtSleepWake = 5; - -const int gestaltPPCDragLibPresent = 2; - -const int gestaltPPCQuickTimeLibPresent = 0; - -const int gestaltPPCSupportsIncoming = 1; - -const int gestaltPPCSupportsIncomingAppleTalk = 16; - -const int gestaltPPCSupportsIncomingTCP_IP = 32; - -const int gestaltPPCSupportsOutGoing = 2; - -const int gestaltPPCSupportsOutgoingAppleTalk = 256; - -const int gestaltPPCSupportsOutgoingTCP_IP = 512; - -const int gestaltPPCSupportsRealTime = 4096; - -const int gestaltPPCSupportsTCP_IP = 4; - -const int gestaltPPCToolboxAttr = 1886413600; - -const int gestaltPPCToolboxPresent = 0; - -const int gestaltPS2Keyboard = 27; - -const int gestaltParityAttr = 1886549113; - -const int gestaltParityEnabled = 1; - -const int gestaltPartialRsrcs = 0; - -const int gestaltPerforma250 = 49; - -const int gestaltPerforma450 = 27; - -const int gestaltPerforma46x = 62; - -const int gestaltPerforma47x = 89; - -const int gestaltPerforma5300 = 41; - -const int gestaltPerforma550 = 80; - -const int gestaltPerforma580 = 99; - -const int gestaltPerforma600 = 45; - -const int gestaltPerforma6300 = 42; - -const int gestaltPerforma6360 = 58; - -const int gestaltPerforma6400 = 58; - -const int gestaltPhysicalRAMSize = 1918987552; - -const int gestaltPhysicalRAMSizeInMegabytes = 1918987629; - -const int gestaltPlayAndRecord = 6; - -const int gestaltPopupAttr = 1886351393; - -const int gestaltPopupPresent = 0; - -const int gestaltPortADisabled = 5; - -const int gestaltPortBDisabled = 6; - -const int gestaltPortable = 10; - -const int gestaltPortable2001ANSIKbd = 202; - -const int gestaltPortable2001ISOKbd = 203; - -const int gestaltPortable2001JISKbd = 207; - -const int gestaltPortableSlotPresent = 4; - -const int gestaltPortableUSBANSIKbd = 37; - -const int gestaltPortableUSBISOKbd = 38; - -const int gestaltPortableUSBJISKbd = 39; - -const int gestaltPowerBook100 = 24; - -const int gestaltPowerBook140 = 25; - -const int gestaltPowerBook1400 = 310; - -const int gestaltPowerBook145 = 54; - -const int gestaltPowerBook150 = 115; - -const int gestaltPowerBook160 = 34; - -const int gestaltPowerBook165 = 84; - -const int gestaltPowerBook165c = 50; - -const int gestaltPowerBook170 = 21; - -const int gestaltPowerBook180 = 33; - -const int gestaltPowerBook180c = 71; - -const int gestaltPowerBook190 = 85; - -const int gestaltPowerBook2400 = 307; - -const int gestaltPowerBook3400 = 306; - -const int gestaltPowerBook500PPCUpgrade = 126; - -const int gestaltPowerBook520 = 72; - -const int gestaltPowerBook520c = 72; - -const int gestaltPowerBook5300 = 128; - -const int gestaltPowerBook540 = 72; - -const int gestaltPowerBook540c = 72; - -const int gestaltPowerBookDuo210 = 29; - -const int gestaltPowerBookDuo230 = 32; - -const int gestaltPowerBookDuo2300 = 124; - -const int gestaltPowerBookDuo250 = 38; - -const int gestaltPowerBookDuo270c = 77; - -const int gestaltPowerBookDuo280 = 102; - -const int gestaltPowerBookDuo280c = 103; - -const int gestaltPowerBookG3 = 313; - -const int gestaltPowerBookG3Series = 312; - -const int gestaltPowerBookG3Series2 = 314; - -const int gestaltPowerMac4400 = 515; - -const int gestaltPowerMac4400_160 = 514; - -const int gestaltPowerMac5200 = 41; - -const int gestaltPowerMac5260 = 41; - -const int gestaltPowerMac5400 = 74; - -const int gestaltPowerMac5500 = 512; - -const int gestaltPowerMac6100_60 = 75; - -const int gestaltPowerMac6100_66 = 100; - -const int gestaltPowerMac6200 = 42; - -const int gestaltPowerMac6400 = 58; - -const int gestaltPowerMac6500 = 513; - -const int gestaltPowerMac7100_66 = 112; - -const int gestaltPowerMac7100_80 = 47; - -const int gestaltPowerMac7200 = 108; - -const int gestaltPowerMac7300 = 109; - -const int gestaltPowerMac7500 = 68; - -const int gestaltPowerMac7600 = 68; - -const int gestaltPowerMac8100_100 = 55; - -const int gestaltPowerMac8100_110 = 40; - -const int gestaltPowerMac8100_120 = 12; - -const int gestaltPowerMac8100_80 = 65; - -const int gestaltPowerMac8500 = 69; - -const int gestaltPowerMac8600 = 69; - -const int gestaltPowerMac9500 = 67; - -const int gestaltPowerMac9600 = 67; - -const int gestaltPowerMacCentris610 = 119; - -const int gestaltPowerMacCentris650 = 120; - -const int gestaltPowerMacG3 = 510; - -const int gestaltPowerMacLC475 = 104; - -const int gestaltPowerMacLC575 = 105; - -const int gestaltPowerMacLC630 = 106; - -const int gestaltPowerMacNewWorld = 406; - -const int gestaltPowerMacPerforma47x = 104; - -const int gestaltPowerMacPerforma57x = 105; - -const int gestaltPowerMacPerforma63x = 106; - -const int gestaltPowerMacQuadra610 = 121; - -const int gestaltPowerMacQuadra630 = 106; - -const int gestaltPowerMacQuadra650 = 122; - -const int gestaltPowerMacQuadra700 = 116; - -const int gestaltPowerMacQuadra800 = 123; - -const int gestaltPowerMacQuadra900 = 117; - -const int gestaltPowerMacQuadra950 = 118; - -const int gestaltPowerMgrAttr = 1886353266; - -const int gestaltPowerMgrVers = 1886876278; - -const int gestaltPowerPC = 2; - -const int gestaltPowerPCASArchitecture = 8; - -const int gestaltPowerPCAware = 0; - -const int gestaltPowerPCHas64BitSupport = 6; - -const int gestaltPowerPCHasDCBAInstruction = 3; - -const int gestaltPowerPCHasDCBTStreams = 7; - -const int gestaltPowerPCHasDataStreams = 5; - -const int gestaltPowerPCHasGraphicsInstructions = 0; - -const int gestaltPowerPCHasSTFIWXInstruction = 1; - -const int gestaltPowerPCHasSquareRootInstructions = 2; - -const int gestaltPowerPCHasVectorInstructions = 4; - -const int gestaltPowerPCIgnoresDCBST = 9; - -const int gestaltPowerPCProcessorFeatures = 1886413670; - -const int gestaltProF16ANSIKbd = 31; - -const int gestaltProF16ISOKbd = 32; - -const int gestaltProF16JISKbd = 33; - -const int gestaltProcClkSpeed = 1885564011; - -const int gestaltProcClkSpeedMHz = 1835232363; - -const int gestaltProcessorCacheLineSize = 1668508026; - -const int gestaltProcessorType = 1886547811; - -const int gestaltPrtblADBKbd = 6; - -const int gestaltPrtblISOKbd = 7; - -const int gestaltPwrBk99JISKbd = 201; - -const int gestaltPwrBkEKDomKbd = 195; - -const int gestaltPwrBkEKISOKbd = 196; - -const int gestaltPwrBkEKJISKbd = 197; - -const int gestaltPwrBkExtADBKbd = 24; - -const int gestaltPwrBkExtISOKbd = 20; - -const int gestaltPwrBkExtJISKbd = 21; - -const int gestaltPwrBkSubDomKbd = 28; - -const int gestaltPwrBkSubISOKbd = 29; - -const int gestaltPwrBkSubJISKbd = 30; - -const int gestaltPwrBookADBKbd = 12; - -const int gestaltPwrBookISOADBKbd = 13; - -const int gestaltQD3D = 1902392164; - -const int gestaltQD3DPresent = 0; - -const int gestaltQD3DVersion = 1899197984; - -const int gestaltQD3DViewer = 1899198051; - -const int gestaltQD3DViewerPresent = 0; - -const int gestaltQDHasLongRowBytes = 5; - -const int gestaltQDTextFeatures = 1902408806; - -const int gestaltQDTextVersion = 1902408824; - -const int gestaltQTVRCubicPanosPresent = 3; - -const int gestaltQTVRCylinderPanosPresent = 2; - -const int gestaltQTVRMgrAttr = 1903457906; - -const int gestaltQTVRMgrPresent = 0; - -const int gestaltQTVRMgrVers = 1903457910; - -const int gestaltQTVRObjMoviesPresent = 1; - -const int gestaltQuadra605 = 94; - -const int gestaltQuadra610 = 53; - -const int gestaltQuadra630 = 98; - -const int gestaltQuadra650 = 36; - -const int gestaltQuadra660AV = 60; - -const int gestaltQuadra700 = 22; - -const int gestaltQuadra800 = 35; - -const int gestaltQuadra840AV = 78; - -const int gestaltQuadra900 = 20; - -const int gestaltQuadra950 = 26; - -const int gestaltQuickTime = 1903454573; - -const int gestaltQuickTimeConferencing = 1836346475; - -const int gestaltQuickTimeConferencingInfo = 1903453033; - -const int gestaltQuickTimeFeatures = 1903456883; - -const int gestaltQuickTimeStreamingFeatures = 1903457126; - -const int gestaltQuickTimeStreamingVersion = 1903457140; - -const int gestaltQuickTimeThreadSafeFeaturesAttr = 1903457384; - -const int gestaltQuickTimeThreadSafeGraphicsExport = 5; - -const int gestaltQuickTimeThreadSafeGraphicsImport = 4; - -const int gestaltQuickTimeThreadSafeICM = 0; - -const int gestaltQuickTimeThreadSafeMovieExport = 3; - -const int gestaltQuickTimeThreadSafeMovieImport = 2; - -const int gestaltQuickTimeThreadSafeMoviePlayback = 6; - -const int gestaltQuickTimeThreadSafeMovieToolbox = 1; - -const int gestaltQuickTimeVersion = 1903454573; - -const int gestaltQuickdrawFeatures = 1902408311; - -const int gestaltQuickdrawVersion = 1902387232; - -const int gestaltRBVAddr = 1919055392; - -const int gestaltRMFakeAppleMenuItemsRolledIn = 1; - -const int gestaltRMForceSysHeapRolledIn = 0; - -const int gestaltRMSupportsFSCalls = 4; - -const int gestaltRMTypeIndexOrderingReverse = 8; - -const int gestaltROMSize = 1919905056; - -const int gestaltROMVersion = 1919905142; - -const int gestaltRealTempMemory = 5; - -const int gestaltRealtimeMgrAttr = 1920232818; - -const int gestaltRealtimeMgrPresent = 0; - -const int gestaltResourceMgrAttr = 1920168547; - -const int gestaltResourceMgrBugFixesAttrs = 1919771239; - -const int gestaltRevisedTimeMgr = 2; - -const int gestaltSCCReadAddr = 1935893362; - -const int gestaltSCCWriteAddr = 1935893367; - -const int gestaltSCSI = 1935897449; - -const int gestaltSCSIPollSIH = 3; - -const int gestaltSCSISlotBoot = 2; - -const int gestaltSDPFindVersion = 1684434532; - -const int gestaltSDPPromptVersion = 1886548086; - -const int gestaltSDPStandardDirectoryVersion = 1935963762; - -const int gestaltSE30SlotPresent = 3; - -const int gestaltSESlotPresent = 2; - -const int gestaltSFServer = 256; - -const int gestaltSMPMailerVersion = 1835101298; - -const int gestaltSMPSPSendLetterVersion = 1936749420; - -const int gestaltSafeOFAttr = 1935763045; - -const int gestaltSanityCheckResourceFiles = 2; - -const int gestaltSbitFontSupport = 1; - -const int gestaltScrapMgrAttr = 1935897185; - -const int gestaltScrapMgrTranslationAware = 0; - -const int gestaltScreenCaptureDir = 1885954866; - -const int gestaltScreenCaptureMain = 1885954865; - -const int gestaltScriptCount = 1935897123; - -const int gestaltScriptMgrVersion = 1935897193; - -const int gestaltScriptingSupport = 1; - -const int gestaltScrollingThrottle = 0; - -const int gestaltSerialArbitrationExists = 0; - -const int gestaltSerialAttr = 1936028192; - -const int gestaltSetDragImageUpdates = 5; - -const int gestaltSheetsAreWindowModalBit = 7; - -const int gestaltSheetsAreWindowModalMask = 128; - -const int gestaltShutdownAttributes = 1936225652; - -const int gestaltShutdownHassdOnBootVolUnmount = 0; - -const int gestaltSlotAttr = 1936486260; - -const int gestaltSlotMgrExists = 0; - -const int gestaltSndPlayDoubleBuffer = 10; - -const int gestaltSoftwareVendorApple = 1097887852; - -const int gestaltSoftwareVendorCode = 1936875876; - -const int gestaltSoftwareVendorLicensee = 1281584755; - -const int gestaltSoundAttr = 1936614432; - -const int gestaltSoundIOMgrPresent = 3; - -const int gestaltSpecificMatchSupport = 1; - -const int gestaltSpeechAttr = 1953788771; - -const int gestaltSpeechHasPPCGlue = 1; - -const int gestaltSpeechMgrPresent = 0; - -const int gestaltSpeechRecognitionAttr = 1936880737; - -const int gestaltSpeechRecognitionVersion = 1936880738; - -const int gestaltSplitOSAttr = 1936748403; - -const int gestaltSplitOSAware = 1; - -const int gestaltSplitOSBootDriveIsNetworkVolume = 0; - -const int gestaltSplitOSEnablerVolumeIsDifferentFromBootVolume = 2; - -const int gestaltSplitOSMachineNameSetToNetworkNameTemp = 3; - -const int gestaltSplitOSMachineNameStartupDiskIsNonPersistent = 5; - -const int gestaltSquareMenuBar = 2; - -const int gestaltStandardFile58 = 0; - -const int gestaltStandardFileAttr = 1937007718; - -const int gestaltStandardFileHasColorIcons = 2; - -const int gestaltStandardFileHasDynamicVolumeAllocation = 4; - -const int gestaltStandardFileTranslationAware = 1; - -const int gestaltStandardFileUseGenericIcons = 3; - -const int gestaltStandardTimeMgr = 1; - -const int gestaltStdADBKbd = 5; - -const int gestaltStdISOADBKbd = 8; - -const int gestaltStdNBPAttr = 1852601712; - -const int gestaltStdNBPPresent = 0; - -const int gestaltStdNBPSupportsAutoPosition = 1; - -const int gestaltStereoCapability = 0; - -const int gestaltStereoInput = 8; - -const int gestaltStereoMixing = 1; - -const int gestaltSupportsApplicationURL = 4; - -const int gestaltSupportsFSpResourceFileAlreadyOpenBit = 3; - -const int gestaltSupportsMirroring = 4; - -const int gestaltSysArchitecture = 1937339233; - -const int gestaltSysDebuggerSupport = 8; - -const int gestaltSysZoneGrowable = 0; - -const int gestaltSystemUpdateVersion = 1937339253; - -@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') -const int gestaltSystemVersion = 1937339254; - -@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') -const int gestaltSystemVersionBugFix = 1937339187; - -@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') -const int gestaltSystemVersionMajor = 1937339185; - -@Deprecated('Use NSProcessInfo\'s operatingSystemVersion property instead.') -const int gestaltSystemVersionMinor = 1937339186; - -const int gestaltTE1 = 1; - -const int gestaltTE2 = 2; - -const int gestaltTE3 = 3; - -const int gestaltTE4 = 4; - -const int gestaltTE5 = 5; - -const int gestaltTE6 = 6; - -const int gestaltTEAttr = 1952801140; - -const int gestaltTEHasGetHiliteRgn = 0; - -const int gestaltTEHasWhiteBackground = 3; - -const int gestaltTESupportsInlineInput = 1; - -const int gestaltTESupportsTextObjects = 2; - -const int gestaltTSMDisplayMgrAwareBit = 0; - -const int gestaltTSMTE = 0; - -const int gestaltTSMTE1 = 256; - -const int gestaltTSMTE15 = 336; - -const int gestaltTSMTE152 = 338; - -const int gestaltTSMTEAttr = 1953322053; - -const int gestaltTSMTEPresent = 0; - -const int gestaltTSMTEVersion = 1953322070; - -const int gestaltTSMdoesTSMTEBit = 1; - -const int gestaltTSMgr15 = 336; - -const int gestaltTSMgr20 = 512; - -const int gestaltTSMgr22 = 544; - -const int gestaltTSMgr23 = 560; - -const int gestaltTSMgrAttr = 1953721697; - -const int gestaltTSMgrVersion = 1953721718; - -const int gestaltTVAttr = 1953898528; - -const int gestaltTeleMgrAttr = 1952803941; - -const int gestaltTeleMgrAutoAnswer = 3; - -const int gestaltTeleMgrIndHandset = 4; - -const int gestaltTeleMgrNewTELNewSupport = 6; - -const int gestaltTeleMgrPowerPCSupport = 1; - -const int gestaltTeleMgrPresent = 0; - -const int gestaltTeleMgrSilenceDetect = 5; - -const int gestaltTeleMgrSoundStreams = 2; - -const int gestaltTelephoneSpeechRecognition = 2; - -const int gestaltTempMemSupport = 4; - -const int gestaltTempMemTracked = 6; - -const int gestaltTermMgrAttr = 1952805485; - -const int gestaltTermMgrErrorString = 2; - -const int gestaltTermMgrPresent = 0; - -const int gestaltTextEditVersion = 1952784416; - -const int gestaltThirdPartyANSIKbd = 40; - -const int gestaltThirdPartyISOKbd = 41; - -const int gestaltThirdPartyJISKbd = 42; - -const int gestaltThreadMgrAttr = 1952998515; - -const int gestaltThreadMgrPresent = 0; - -const int gestaltThreadsLibraryPresent = 2; - -const int gestaltTimeMgrVersion = 1953326962; - -const int gestaltToolboxTable = 1952609396; - -const int gestaltTranslationAttr = 2020368756; - -const int gestaltTranslationGetPathAPIAvail = 3; - -const int gestaltTranslationMgrExists = 0; - -const int gestaltTranslationMgrHintOrder = 1; - -const int gestaltTranslationPPCAvail = 2; - -const int gestaltUDFSupport = 1802855526; - -const int gestaltUSBAndyANSIKbd = 204; - -const int gestaltUSBAndyISOKbd = 205; - -const int gestaltUSBAndyJISKbd = 206; - -const int gestaltUSBAttr = 1970496032; - -const int gestaltUSBCosmoANSIKbd = 198; - -const int gestaltUSBCosmoISOKbd = 199; - -const int gestaltUSBCosmoJISKbd = 200; - -const int gestaltUSBHasIsoch = 1; - -const int gestaltUSBPresent = 0; - -const int gestaltUSBPrinterSharingAttr = 2053204768; - -const int gestaltUSBPrinterSharingAttrBooted = 1073741824; - -const int gestaltUSBPrinterSharingAttrMask = -65536; - -const int gestaltUSBPrinterSharingAttrRunning = -2147483648; - -const int gestaltUSBPrinterSharingVersion = 2053204768; - -const int gestaltUSBPrinterSharingVersionMask = 65535; - -const int gestaltUSBProF16ANSIKbd = 34; - -const int gestaltUSBProF16ISOKbd = 35; - -const int gestaltUSBProF16JISKbd = 36; - -const int gestaltUSBVersion = 1970496118; - -const int gestaltUndefSelectorErr = -5551; - -const int gestaltUnknownErr = -5550; - -const int gestaltUnknownThirdPartyKbd = 3; - -const int gestaltUserVisibleMachineName = 1835950445; - -const int gestaltVIA1Addr = 1986617649; - -const int gestaltVIA2Addr = 1986617650; - -const int gestaltVMAttr = 1986863136; - -const int gestaltVMBackingStoreFileRefNum = 1986880115; - -const int gestaltVMFilemappingOn = 3; - -const int gestaltVMHasLockMemoryForOutput = 1; - -const int gestaltVMHasPagingControl = 4; - -const int gestaltVMInfoNoneType = 3; - -const int gestaltVMInfoSimpleType = 2; - -const int gestaltVMInfoSizeStorageType = 0; - -const int gestaltVMInfoSizeType = 1; - -const int gestaltVMInfoType = 1986881902; - -const int gestaltVMPresent = 0; - -const int gestaltVMZerosPagesBit = 0; - -const int gestaltValueImplementedVers = 5; - -const int gestaltVersion = 1986359923; - -const int gestaltWSIICanPrintWithoutPrGeneralBit = 0; - -const int gestaltWSIISupport = 0; - -const int gestaltWindowLiveResizeBit = 4; - -const int gestaltWindowLiveResizeMask = 16; - -const int gestaltWindowMgrAttr = 2003398244; - -const int gestaltWindowMgrPresent = 1; - -const int gestaltWindowMgrPresentBit = 0; - -const int gestaltWindowMgrPresentMask = 1; - -const int gestaltWindowMinimizeToDockBit = 5; - -const int gestaltWindowMinimizeToDockMask = 32; - -const int gestaltWorldScriptIIAttr = 2004050292; - -const int gestaltWorldScriptIIVersion = 1685026146; - -const int gestaltX86AdditionalFeatures = 2016949857; - -const int gestaltX86Features = 2016949862; - -const int gestaltX86HasAPIC = 9; - -const int gestaltX86HasCID = 10; - -const int gestaltX86HasCLFSH = 19; - -const int gestaltX86HasCMOV = 15; - -const int gestaltX86HasCX16 = 13; - -const int gestaltX86HasCX8 = 8; - -const int gestaltX86HasDE = 2; - -const int gestaltX86HasDS = 21; - -const int gestaltX86HasDSCPL = 4; - -const int gestaltX86HasEST = 7; - -const int gestaltX86HasFPU = 0; - -const int gestaltX86HasFXSR = 24; - -const int gestaltX86HasHTT = 28; - -const int gestaltX86HasMCA = 14; - -const int gestaltX86HasMCE = 7; - -const int gestaltX86HasMMX = 23; - -const int gestaltX86HasMONITOR = 3; - -const int gestaltX86HasMSR = 5; - -const int gestaltX86HasMTRR = 12; - -const int gestaltX86HasPAE = 6; - -const int gestaltX86HasPAT = 16; - -const int gestaltX86HasPGE = 13; - -const int gestaltX86HasPSE = 3; - -const int gestaltX86HasPSE36 = 17; - -const int gestaltX86HasPSN = 18; - -const int gestaltX86HasSEP = 11; - -const int gestaltX86HasSMX = 6; - -const int gestaltX86HasSS = 27; - -const int gestaltX86HasSSE = 25; - -const int gestaltX86HasSSE2 = 26; - -const int gestaltX86HasSSE3 = 0; - -const int gestaltX86HasSupplementalSSE3 = 9; - -const int gestaltX86HasTM = 29; - -const int gestaltX86HasTM2 = 8; - -const int gestaltX86HasTSC = 4; - -const int gestaltX86HasVME = 1; - -const int gestaltX86HasVMX = 5; - -const int gestaltX86HasxTPR = 14; - -const int gestaltX86ResACPI = 22; - -const int gestaltX86Serviced20 = 20; - -const int gfpErr = -52; - -typedef gid_t = __darwin_gid_t; - -@ffi.Packed(4) -final class gpu_energy_data extends ffi.Struct { - @ffi.Uint64() - external int task_gpu_utilisation; - - @ffi.Uint64() - external int task_gpu_stat_reserved0; - - @ffi.Uint64() - external int task_gpu_stat_reserved1; - - @ffi.Uint64() - external int task_gpu_stat_reserved2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int task_gpu_utilisation, - required int task_gpu_stat_reserved0, - required int task_gpu_stat_reserved1, - required int task_gpu_stat_reserved2, - }) => $allocator() - ..ref.task_gpu_utilisation = task_gpu_utilisation - ..ref.task_gpu_stat_reserved0 = task_gpu_stat_reserved0 - ..ref.task_gpu_stat_reserved1 = task_gpu_stat_reserved1 - ..ref.task_gpu_stat_reserved2 = task_gpu_stat_reserved2; -} - -typedef gpu_energy_data_t = ffi.Pointer; - -const int grabTimeComplete = -9401; - -@Deprecated('Deprecated') -const int graveUprE = 233; - -@Deprecated('Deprecated') -const int graveUprI = 237; - -@Deprecated('Deprecated') -const int graveUprO = 241; - -@Deprecated('Deprecated') -const int graveUprU = 244; - -@ffi.Packed(4) -final class group_req extends ffi.Struct { - @ffi.Uint32() - external int gr_interface; - - external sockaddr_storage gr_group; -} - -@ffi.Packed(4) -final class group_source_req extends ffi.Struct { - @ffi.Uint32() - external int gsr_interface; - - external sockaddr_storage gsr_group; - - external sockaddr_storage gsr_source; -} - -const int guestNotAllowedErr = -932; - -final class guid_t extends ffi.Union { - @ffi.Array.multi([16]) - external ffi.Array g_guid; - - @ffi.Array.multi([4]) - external ffi.Array g_guid_asint; -} - -const int hMenuFindErr = -127; - -@Deprecated('Deprecated') -const int hachek = 255; - -const int handlerNotFoundErr = -1856; - -const int hardwareConfigErr = -604; - -final class hash_info_bucket extends ffi.Struct { - @natural_t() - external int hib_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int hib_count, - }) => $allocator()..ref.hib_count = hib_count; -} - -typedef hash_info_bucket_array_t = ffi.Pointer; -typedef hash_info_bucket_t = hash_info_bucket; - -const int hitDev = 1; - -const int hmBalloonAborted = -853; - -const int hmCloseViewActive = -863; - -const int hmHelpDisabled = -850; - -const int hmHelpManagerNotInited = -855; - -const int hmNoBalloonUp = -862; - -const int hmOperationUnsupported = -861; - -const int hmSameAsLastBalloon = -854; - -const int hmSkippedBalloon = -857; - -const int hmUnknownHelpType = -859; - -const int hmWrongVersion = -858; - -@ffi.Packed(4) -final class host_basic_info extends ffi.Struct { - @integer_t() - external int max_cpus; - - @integer_t() - external int avail_cpus; - - @natural_t() - external int memory_size; - - @cpu_type_t() - external int cpu_type; - - @cpu_subtype_t() - external int cpu_subtype; - - @cpu_threadtype_t() - external int cpu_threadtype; - - @integer_t() - external int physical_cpu; - - @integer_t() - external int physical_cpu_max; - - @integer_t() - external int logical_cpu; - - @integer_t() - external int logical_cpu_max; - - @ffi.Uint64() - external int max_mem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_cpus, - required int avail_cpus, - required int memory_size, - required int cpu_type, - required int cpu_subtype, - required int cpu_threadtype, - required int physical_cpu, - required int physical_cpu_max, - required int logical_cpu, - required int logical_cpu_max, - required int max_mem, - }) => $allocator() - ..ref.max_cpus = max_cpus - ..ref.avail_cpus = avail_cpus - ..ref.memory_size = memory_size - ..ref.cpu_type = cpu_type - ..ref.cpu_subtype = cpu_subtype - ..ref.cpu_threadtype = cpu_threadtype - ..ref.physical_cpu = physical_cpu - ..ref.physical_cpu_max = physical_cpu_max - ..ref.logical_cpu = logical_cpu - ..ref.logical_cpu_max = logical_cpu_max - ..ref.max_mem = max_mem; -} - -typedef host_basic_info_data_t = host_basic_info; -typedef host_basic_info_t = ffi.Pointer; - -final class host_can_has_debugger_info extends ffi.Struct { - @boolean_t() - external int can_has_debugger; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int can_has_debugger, - }) => - $allocator() - ..ref.can_has_debugger = can_has_debugger; -} - -typedef host_can_has_debugger_info_data_t = host_can_has_debugger_info; -typedef host_can_has_debugger_info_t = ffi.Pointer; - -final class host_cpu_load_info extends ffi.Struct { - @ffi.Array.multi([4]) - external ffi.Array cpu_ticks; -} - -typedef host_cpu_load_info_data_t = host_cpu_load_info; -typedef host_cpu_load_info_t = ffi.Pointer; -typedef host_flavor_t = integer_t; -typedef host_info64_t = ffi.Pointer; -typedef host_info_t = ffi.Pointer; - -final class host_load_info extends ffi.Struct { - @ffi.Array.multi([3]) - external ffi.Array avenrun; - - @ffi.Array.multi([3]) - external ffi.Array mach_factor; -} - -typedef host_load_info_data_t = host_load_info; -typedef host_load_info_t = ffi.Pointer; -typedef host_name_port_t = host_t; -typedef host_name_t = host_t; - -final class host_preferred_user_arch extends ffi.Struct { - @cpu_type_t() - external int cpu_type; - - @cpu_subtype_t() - external int cpu_subtype; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cpu_type, - required int cpu_subtype, - }) => $allocator() - ..ref.cpu_type = cpu_type - ..ref.cpu_subtype = cpu_subtype; -} - -typedef host_preferred_user_arch_data_t = host_preferred_user_arch; -typedef host_preferred_user_arch_t = ffi.Pointer; - -final class host_priority_info extends ffi.Struct { - @integer_t() - external int kernel_priority; - - @integer_t() - external int system_priority; - - @integer_t() - external int server_priority; - - @integer_t() - external int user_priority; - - @integer_t() - external int depress_priority; - - @integer_t() - external int idle_priority; - - @integer_t() - external int minimum_priority; - - @integer_t() - external int maximum_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int kernel_priority, - required int system_priority, - required int server_priority, - required int user_priority, - required int depress_priority, - required int idle_priority, - required int minimum_priority, - required int maximum_priority, - }) => $allocator() - ..ref.kernel_priority = kernel_priority - ..ref.system_priority = system_priority - ..ref.server_priority = server_priority - ..ref.user_priority = user_priority - ..ref.depress_priority = depress_priority - ..ref.idle_priority = idle_priority - ..ref.minimum_priority = minimum_priority - ..ref.maximum_priority = maximum_priority; -} - -typedef host_priority_info_data_t = host_priority_info; -typedef host_priority_info_t = ffi.Pointer; -typedef host_priv_t = mach_port_t; -typedef host_purgable_info_data_t = vm_purgeable_info; -typedef host_purgable_info_t = ffi.Pointer; - -final class host_sched_info extends ffi.Struct { - @integer_t() - external int min_timeout; - - @integer_t() - external int min_quantum; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int min_timeout, - required int min_quantum, - }) => $allocator() - ..ref.min_timeout = min_timeout - ..ref.min_quantum = min_quantum; -} - -typedef host_sched_info_data_t = host_sched_info; -typedef host_sched_info_t = ffi.Pointer; -typedef host_security_t = mach_port_t; -typedef host_t = mach_port_t; - -final class hostent extends ffi.Struct { - external ffi.Pointer h_name; - - external ffi.Pointer> h_aliases; - - @ffi.Int() - external int h_addrtype; - - @ffi.Int() - external int h_length; - - external ffi.Pointer> h_addr_list; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer h_name, - required ffi.Pointer> h_aliases, - required int h_addrtype, - required int h_length, - required ffi.Pointer> h_addr_list, - }) => $allocator() - ..ref.h_name = h_name - ..ref.h_aliases = h_aliases - ..ref.h_addrtype = h_addrtype - ..ref.h_length = h_length - ..ref.h_addr_list = h_addr_list; -} - -const int hourField = 4; - -const int hourMask = 16; - -const int hrHTMLRenderingLibNotInstalledErr = -5360; - -const int hrLeadingZ = 128; - -const int hrMiscellaneousExceptionErr = -5361; - -const int hrURLNotHandledErr = -5363; - -const int hrUnableToResizeHandleErr = -5362; - -typedef http_addr_t = _http_addr_u; - -final class http_addrlist_s extends ffi.Struct { - external ffi.Pointer next; - - external http_addr_t addr; -} - -typedef http_addrlist_t = http_addrlist_s; - -enum http_auth_e { - HTTP_AUTH_NONE(0), - HTTP_AUTH_BASIC(1), - HTTP_AUTH_MD5(2), - HTTP_AUTH_MD5_SESS(3), - HTTP_AUTH_MD5_INT(4), - HTTP_AUTH_MD5_SESS_INT(5), - HTTP_AUTH_NEGOTIATE(6); - - final int value; - const http_auth_e(this.value); - - static http_auth_e fromValue(int value) => switch (value) { - 0 => HTTP_AUTH_NONE, - 1 => HTTP_AUTH_BASIC, - 2 => HTTP_AUTH_MD5, - 3 => HTTP_AUTH_MD5_SESS, - 4 => HTTP_AUTH_MD5_INT, - 5 => HTTP_AUTH_MD5_SESS_INT, - 6 => HTTP_AUTH_NEGOTIATE, - _ => throw ArgumentError('Unknown value for http_auth_e: $value'), - }; -} - -final class http_credential_s extends ffi.Struct { - external ffi.Pointer data; - - @ffi.Size() - external int datalen; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer data, - required int datalen, - }) => $allocator() - ..ref.data = data - ..ref.datalen = datalen; -} - -typedef http_credential_t = http_credential_s; - -enum http_encoding_e { - HTTP_ENCODING_LENGTH(0), - HTTP_ENCODING_CHUNKED(1), - HTTP_ENCODING_FIELDS(2); - - final int value; - const http_encoding_e(this.value); - - static http_encoding_e fromValue(int value) => switch (value) { - 0 => HTTP_ENCODING_LENGTH, - 1 => HTTP_ENCODING_CHUNKED, - 2 => HTTP_ENCODING_FIELDS, - _ => throw ArgumentError('Unknown value for http_encoding_e: $value'), - }; -} - -enum http_encryption_e { - HTTP_ENCRYPTION_IF_REQUESTED(0), - HTTP_ENCRYPTION_NEVER(1), - HTTP_ENCRYPTION_REQUIRED(2), - HTTP_ENCRYPTION_ALWAYS(3); - - final int value; - const http_encryption_e(this.value); - - static http_encryption_e fromValue(int value) => switch (value) { - 0 => HTTP_ENCRYPTION_IF_REQUESTED, - 1 => HTTP_ENCRYPTION_NEVER, - 2 => HTTP_ENCRYPTION_REQUIRED, - 3 => HTTP_ENCRYPTION_ALWAYS, - _ => throw ArgumentError('Unknown value for http_encryption_e: $value'), - }; -} - -enum http_field_e { - HTTP_FIELD_UNKNOWN(-1), - HTTP_FIELD_ACCEPT_LANGUAGE(0), - HTTP_FIELD_ACCEPT_RANGES(1), - HTTP_FIELD_AUTHORIZATION(2), - HTTP_FIELD_CONNECTION(3), - HTTP_FIELD_CONTENT_ENCODING(4), - HTTP_FIELD_CONTENT_LANGUAGE(5), - HTTP_FIELD_CONTENT_LENGTH(6), - HTTP_FIELD_CONTENT_LOCATION(7), - HTTP_FIELD_CONTENT_MD5(8), - HTTP_FIELD_CONTENT_RANGE(9), - HTTP_FIELD_CONTENT_TYPE(10), - HTTP_FIELD_CONTENT_VERSION(11), - HTTP_FIELD_DATE(12), - HTTP_FIELD_HOST(13), - HTTP_FIELD_IF_MODIFIED_SINCE(14), - HTTP_FIELD_IF_UNMODIFIED_SINCE(15), - HTTP_FIELD_KEEP_ALIVE(16), - HTTP_FIELD_LAST_MODIFIED(17), - HTTP_FIELD_LINK(18), - HTTP_FIELD_LOCATION(19), - HTTP_FIELD_RANGE(20), - HTTP_FIELD_REFERER(21), - HTTP_FIELD_RETRY_AFTER(22), - HTTP_FIELD_TRANSFER_ENCODING(23), - HTTP_FIELD_UPGRADE(24), - HTTP_FIELD_USER_AGENT(25), - HTTP_FIELD_WWW_AUTHENTICATE(26), - HTTP_FIELD_ACCEPT_ENCODING(27), - HTTP_FIELD_ALLOW(28), - HTTP_FIELD_SERVER(29), - HTTP_FIELD_AUTHENTICATION_INFO(30), - HTTP_FIELD_MAX(31); - - final int value; - const http_field_e(this.value); - - static http_field_e fromValue(int value) => switch (value) { - -1 => HTTP_FIELD_UNKNOWN, - 0 => HTTP_FIELD_ACCEPT_LANGUAGE, - 1 => HTTP_FIELD_ACCEPT_RANGES, - 2 => HTTP_FIELD_AUTHORIZATION, - 3 => HTTP_FIELD_CONNECTION, - 4 => HTTP_FIELD_CONTENT_ENCODING, - 5 => HTTP_FIELD_CONTENT_LANGUAGE, - 6 => HTTP_FIELD_CONTENT_LENGTH, - 7 => HTTP_FIELD_CONTENT_LOCATION, - 8 => HTTP_FIELD_CONTENT_MD5, - 9 => HTTP_FIELD_CONTENT_RANGE, - 10 => HTTP_FIELD_CONTENT_TYPE, - 11 => HTTP_FIELD_CONTENT_VERSION, - 12 => HTTP_FIELD_DATE, - 13 => HTTP_FIELD_HOST, - 14 => HTTP_FIELD_IF_MODIFIED_SINCE, - 15 => HTTP_FIELD_IF_UNMODIFIED_SINCE, - 16 => HTTP_FIELD_KEEP_ALIVE, - 17 => HTTP_FIELD_LAST_MODIFIED, - 18 => HTTP_FIELD_LINK, - 19 => HTTP_FIELD_LOCATION, - 20 => HTTP_FIELD_RANGE, - 21 => HTTP_FIELD_REFERER, - 22 => HTTP_FIELD_RETRY_AFTER, - 23 => HTTP_FIELD_TRANSFER_ENCODING, - 24 => HTTP_FIELD_UPGRADE, - 25 => HTTP_FIELD_USER_AGENT, - 26 => HTTP_FIELD_WWW_AUTHENTICATE, - 27 => HTTP_FIELD_ACCEPT_ENCODING, - 28 => HTTP_FIELD_ALLOW, - 29 => HTTP_FIELD_SERVER, - 30 => HTTP_FIELD_AUTHENTICATION_INFO, - 31 => HTTP_FIELD_MAX, - _ => throw ArgumentError('Unknown value for http_field_e: $value'), - }; -} - -enum http_keepalive_e { - HTTP_KEEPALIVE_OFF(0), - HTTP_KEEPALIVE_ON(1); - - final int value; - const http_keepalive_e(this.value); - - static http_keepalive_e fromValue(int value) => switch (value) { - 0 => HTTP_KEEPALIVE_OFF, - 1 => HTTP_KEEPALIVE_ON, - _ => throw ArgumentError('Unknown value for http_keepalive_e: $value'), - }; -} - -enum http_state_e { - HTTP_STATE_ERROR(-1), - HTTP_STATE_WAITING(0), - HTTP_STATE_OPTIONS(1), - HTTP_STATE_GET(2), - HTTP_STATE_GET_SEND(3), - HTTP_STATE_HEAD(4), - HTTP_STATE_POST(5), - HTTP_STATE_POST_RECV(6), - HTTP_STATE_POST_SEND(7), - HTTP_STATE_PUT(8), - HTTP_STATE_PUT_RECV(9), - HTTP_STATE_DELETE(10), - HTTP_STATE_TRACE(11), - HTTP_STATE_CONNECT(12), - HTTP_STATE_STATUS(13), - HTTP_STATE_UNKNOWN_METHOD(14), - HTTP_STATE_UNKNOWN_VERSION(15); - - final int value; - const http_state_e(this.value); - - static http_state_e fromValue(int value) => switch (value) { - -1 => HTTP_STATE_ERROR, - 0 => HTTP_STATE_WAITING, - 1 => HTTP_STATE_OPTIONS, - 2 => HTTP_STATE_GET, - 3 => HTTP_STATE_GET_SEND, - 4 => HTTP_STATE_HEAD, - 5 => HTTP_STATE_POST, - 6 => HTTP_STATE_POST_RECV, - 7 => HTTP_STATE_POST_SEND, - 8 => HTTP_STATE_PUT, - 9 => HTTP_STATE_PUT_RECV, - 10 => HTTP_STATE_DELETE, - 11 => HTTP_STATE_TRACE, - 12 => HTTP_STATE_CONNECT, - 13 => HTTP_STATE_STATUS, - 14 => HTTP_STATE_UNKNOWN_METHOD, - 15 => HTTP_STATE_UNKNOWN_VERSION, - _ => throw ArgumentError('Unknown value for http_state_e: $value'), - }; -} - -enum http_status_e { - HTTP_STATUS_ERROR(-1), - HTTP_STATUS_NONE(0), - HTTP_STATUS_CONTINUE(100), - HTTP_STATUS_SWITCHING_PROTOCOLS(101), - HTTP_STATUS_OK(200), - HTTP_STATUS_CREATED(201), - HTTP_STATUS_ACCEPTED(202), - HTTP_STATUS_NOT_AUTHORITATIVE(203), - HTTP_STATUS_NO_CONTENT(204), - HTTP_STATUS_RESET_CONTENT(205), - HTTP_STATUS_PARTIAL_CONTENT(206), - HTTP_STATUS_MULTIPLE_CHOICES(300), - HTTP_STATUS_MOVED_PERMANENTLY(301), - HTTP_STATUS_FOUND(302), - HTTP_STATUS_SEE_OTHER(303), - HTTP_STATUS_NOT_MODIFIED(304), - HTTP_STATUS_USE_PROXY(305), - HTTP_STATUS_TEMPORARY_REDIRECT(307), - HTTP_STATUS_BAD_REQUEST(400), - HTTP_STATUS_UNAUTHORIZED(401), - HTTP_STATUS_PAYMENT_REQUIRED(402), - HTTP_STATUS_FORBIDDEN(403), - HTTP_STATUS_NOT_FOUND(404), - HTTP_STATUS_METHOD_NOT_ALLOWED(405), - HTTP_STATUS_NOT_ACCEPTABLE(406), - HTTP_STATUS_PROXY_AUTHENTICATION(407), - HTTP_STATUS_REQUEST_TIMEOUT(408), - HTTP_STATUS_CONFLICT(409), - HTTP_STATUS_GONE(410), - HTTP_STATUS_LENGTH_REQUIRED(411), - HTTP_STATUS_PRECONDITION(412), - HTTP_STATUS_REQUEST_TOO_LARGE(413), - HTTP_STATUS_URI_TOO_LONG(414), - HTTP_STATUS_UNSUPPORTED_MEDIATYPE(415), - HTTP_STATUS_REQUESTED_RANGE(416), - HTTP_STATUS_EXPECTATION_FAILED(417), - HTTP_STATUS_UPGRADE_REQUIRED(426), - HTTP_STATUS_SERVER_ERROR(500), - HTTP_STATUS_NOT_IMPLEMENTED(501), - HTTP_STATUS_BAD_GATEWAY(502), - HTTP_STATUS_SERVICE_UNAVAILABLE(503), - HTTP_STATUS_GATEWAY_TIMEOUT(504), - HTTP_STATUS_NOT_SUPPORTED(505), - HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED(1000), - HTTP_STATUS_CUPS_PKI_ERROR(1001), - HTTP_STATUS_CUPS_WEBIF_DISABLED(1002); - - final int value; - const http_status_e(this.value); - - static http_status_e fromValue(int value) => switch (value) { - -1 => HTTP_STATUS_ERROR, - 0 => HTTP_STATUS_NONE, - 100 => HTTP_STATUS_CONTINUE, - 101 => HTTP_STATUS_SWITCHING_PROTOCOLS, - 200 => HTTP_STATUS_OK, - 201 => HTTP_STATUS_CREATED, - 202 => HTTP_STATUS_ACCEPTED, - 203 => HTTP_STATUS_NOT_AUTHORITATIVE, - 204 => HTTP_STATUS_NO_CONTENT, - 205 => HTTP_STATUS_RESET_CONTENT, - 206 => HTTP_STATUS_PARTIAL_CONTENT, - 300 => HTTP_STATUS_MULTIPLE_CHOICES, - 301 => HTTP_STATUS_MOVED_PERMANENTLY, - 302 => HTTP_STATUS_FOUND, - 303 => HTTP_STATUS_SEE_OTHER, - 304 => HTTP_STATUS_NOT_MODIFIED, - 305 => HTTP_STATUS_USE_PROXY, - 307 => HTTP_STATUS_TEMPORARY_REDIRECT, - 400 => HTTP_STATUS_BAD_REQUEST, - 401 => HTTP_STATUS_UNAUTHORIZED, - 402 => HTTP_STATUS_PAYMENT_REQUIRED, - 403 => HTTP_STATUS_FORBIDDEN, - 404 => HTTP_STATUS_NOT_FOUND, - 405 => HTTP_STATUS_METHOD_NOT_ALLOWED, - 406 => HTTP_STATUS_NOT_ACCEPTABLE, - 407 => HTTP_STATUS_PROXY_AUTHENTICATION, - 408 => HTTP_STATUS_REQUEST_TIMEOUT, - 409 => HTTP_STATUS_CONFLICT, - 410 => HTTP_STATUS_GONE, - 411 => HTTP_STATUS_LENGTH_REQUIRED, - 412 => HTTP_STATUS_PRECONDITION, - 413 => HTTP_STATUS_REQUEST_TOO_LARGE, - 414 => HTTP_STATUS_URI_TOO_LONG, - 415 => HTTP_STATUS_UNSUPPORTED_MEDIATYPE, - 416 => HTTP_STATUS_REQUESTED_RANGE, - 417 => HTTP_STATUS_EXPECTATION_FAILED, - 426 => HTTP_STATUS_UPGRADE_REQUIRED, - 500 => HTTP_STATUS_SERVER_ERROR, - 501 => HTTP_STATUS_NOT_IMPLEMENTED, - 502 => HTTP_STATUS_BAD_GATEWAY, - 503 => HTTP_STATUS_SERVICE_UNAVAILABLE, - 504 => HTTP_STATUS_GATEWAY_TIMEOUT, - 505 => HTTP_STATUS_NOT_SUPPORTED, - 1000 => HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED, - 1001 => HTTP_STATUS_CUPS_PKI_ERROR, - 1002 => HTTP_STATUS_CUPS_WEBIF_DISABLED, - _ => throw ArgumentError('Unknown value for http_status_e: $value'), - }; -} - -typedef http_t = _http_s; -typedef http_timeout_cb_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer http, - ffi.Pointer user_data, - ) - > - >; - -enum http_trust_e { - HTTP_TRUST_OK(0), - HTTP_TRUST_INVALID(1), - HTTP_TRUST_CHANGED(2), - HTTP_TRUST_EXPIRED(3), - HTTP_TRUST_RENEWED(4), - HTTP_TRUST_UNKNOWN(5); - - final int value; - const http_trust_e(this.value); - - static http_trust_e fromValue(int value) => switch (value) { - 0 => HTTP_TRUST_OK, - 1 => HTTP_TRUST_INVALID, - 2 => HTTP_TRUST_CHANGED, - 3 => HTTP_TRUST_EXPIRED, - 4 => HTTP_TRUST_RENEWED, - 5 => HTTP_TRUST_UNKNOWN, - _ => throw ArgumentError('Unknown value for http_trust_e: $value'), - }; -} - -enum http_uri_coding_e { - HTTP_URI_CODING_NONE(0), - HTTP_URI_CODING_USERNAME(1), - HTTP_URI_CODING_HOSTNAME(2), - HTTP_URI_CODING_RESOURCE(4), - HTTP_URI_CODING_MOST(7), - HTTP_URI_CODING_QUERY(8), - HTTP_URI_CODING_ALL(15), - HTTP_URI_CODING_RFC6874(16); - - final int value; - const http_uri_coding_e(this.value); - - static http_uri_coding_e fromValue(int value) => switch (value) { - 0 => HTTP_URI_CODING_NONE, - 1 => HTTP_URI_CODING_USERNAME, - 2 => HTTP_URI_CODING_HOSTNAME, - 4 => HTTP_URI_CODING_RESOURCE, - 7 => HTTP_URI_CODING_MOST, - 8 => HTTP_URI_CODING_QUERY, - 15 => HTTP_URI_CODING_ALL, - 16 => HTTP_URI_CODING_RFC6874, - _ => throw ArgumentError('Unknown value for http_uri_coding_e: $value'), - }; -} - -enum http_uri_status_e { - HTTP_URI_STATUS_OVERFLOW(-8), - HTTP_URI_STATUS_BAD_ARGUMENTS(-7), - HTTP_URI_STATUS_BAD_RESOURCE(-6), - HTTP_URI_STATUS_BAD_PORT(-5), - HTTP_URI_STATUS_BAD_HOSTNAME(-4), - HTTP_URI_STATUS_BAD_USERNAME(-3), - HTTP_URI_STATUS_BAD_SCHEME(-2), - HTTP_URI_STATUS_BAD_URI(-1), - HTTP_URI_STATUS_OK(0), - HTTP_URI_STATUS_MISSING_SCHEME(1), - HTTP_URI_STATUS_UNKNOWN_SCHEME(2), - HTTP_URI_STATUS_MISSING_RESOURCE(3); - - final int value; - const http_uri_status_e(this.value); - - static http_uri_status_e fromValue(int value) => switch (value) { - -8 => HTTP_URI_STATUS_OVERFLOW, - -7 => HTTP_URI_STATUS_BAD_ARGUMENTS, - -6 => HTTP_URI_STATUS_BAD_RESOURCE, - -5 => HTTP_URI_STATUS_BAD_PORT, - -4 => HTTP_URI_STATUS_BAD_HOSTNAME, - -3 => HTTP_URI_STATUS_BAD_USERNAME, - -2 => HTTP_URI_STATUS_BAD_SCHEME, - -1 => HTTP_URI_STATUS_BAD_URI, - 0 => HTTP_URI_STATUS_OK, - 1 => HTTP_URI_STATUS_MISSING_SCHEME, - 2 => HTTP_URI_STATUS_UNKNOWN_SCHEME, - 3 => HTTP_URI_STATUS_MISSING_RESOURCE, - _ => throw ArgumentError('Unknown value for http_uri_status_e: $value'), - }; -} - -enum http_version_e { - HTTP_VERSION_0_9(9), - HTTP_VERSION_1_0(100), - HTTP_VERSION_1_1(101); - - final int value; - const http_version_e(this.value); - - static http_version_e fromValue(int value) => switch (value) { - 9 => HTTP_VERSION_0_9, - 100 => HTTP_VERSION_1_0, - 101 => HTTP_VERSION_1_1, - _ => throw ArgumentError('Unknown value for http_version_e: $value'), - }; -} - -const int hwParamErr = -502; - -const int iIOAbort = -27; - -const int iIOAbortErr = -27; - -const int iMemFullErr = -108; - -const int icConfigInappropriateErr = -675; - -const int icConfigNotFoundErr = -674; - -const int icInternalErr = -669; - -const int icNoMoreWritersErr = -671; - -const int icNoPerm = 0; - -const int icNoURLErr = -673; - -const int icNothingToOverrideErr = -672; - -const int icPermErr = -667; - -const int icPrefDataErr = -668; - -const int icPrefNotFoundErr = -666; - -const int icProfileNotFoundErr = -676; - -const int icReadOnlyPerm = 1; - -const int icReadWritePerm = 2; - -const int icTooManyProfilesErr = -677; - -const int icTruncatedErr = -670; - -typedef id_t = __darwin_id_t; - -enum idtype_t { - P_ALL(0), - P_PID(1), - P_PGID(2); - - final int value; - const idtype_t(this.value); - - static idtype_t fromValue(int value) => switch (value) { - 0 => P_ALL, - 1 => P_PID, - 2 => P_PGID, - _ => throw ArgumentError('Unknown value for idtype_t: $value'), - }; -} - -const int illegalChannelOSErr = -2076; - -const int illegalControllerOSErr = -2080; - -const int illegalInstrumentOSErr = -2079; - -const int illegalKnobOSErr = -2077; - -const int illegalKnobValueOSErr = -2078; - -const int illegalNoteChannelOSErr = -2084; - -const int illegalPartOSErr = -2075; - -const int illegalScrapFlavorFlagsErr = -4997; - -const int illegalScrapFlavorSizeErr = -4999; - -const int illegalScrapFlavorTypeErr = -4998; - -const int illegalVoiceAllocationOSErr = -2074; - -final class imaxdiv_t extends ffi.Struct { - @intmax_t() - external int quot; - - @intmax_t() - external int rem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int quot, - required int rem, - }) => $allocator() - ..ref.quot = quot - ..ref.rem = rem; -} - -final class in6_addr extends ffi.Struct { - external UnnamedUnion$5 __u6_addr; -} - -typedef in6_addr_t = in6_addr; - -final class in6_pktinfo extends ffi.Struct { - external in6_addr ipi6_addr; - - @ffi.UnsignedInt() - external int ipi6_ifindex; -} - -final class in_addr extends ffi.Struct { - @in_addr_t() - external int s_addr; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int s_addr, - }) => $allocator()..ref.s_addr = s_addr; -} - -typedef in_addr_t = __uint32_t; - -final class in_pktinfo extends ffi.Struct { - @ffi.UnsignedInt() - external int ipi_ifindex; - - external in_addr ipi_spec_dst; - - external in_addr ipi_addr; -} - -typedef in_port_t = __uint16_t; - -const int incompatibleVoice = -245; - -const int initDev = 0; - -const int initIWMErr = -77; - -typedef ino64_t = __darwin_ino64_t; -typedef ino_t = __darwin_ino_t; - -const int inputOutOfBounds = -190; - -typedef instancetype = ffi.Pointer; -typedef Dartinstancetype = objc.ObjCObject; - -const int insufficientStackErr = -149; - -@Deprecated('Deprecated') -const int intArabic = 1; - -@Deprecated('Deprecated') -const int intEuropean = 4; - -@Deprecated('Deprecated') -const int intJapanese = 3; - -@Deprecated('Deprecated') -const int intOutputMask = 32768; - -@Deprecated('Deprecated') -const int intRoman = 2; - -@Deprecated('Deprecated') -const int intWestern = 0; - -typedef int_fast16_t = ffi.Int16; -typedef Dartint_fast16_t = int; -typedef int_fast32_t = ffi.Int32; -typedef Dartint_fast32_t = int; -typedef int_fast64_t = ffi.Int64; -typedef Dartint_fast64_t = int; -typedef int_fast8_t = ffi.Int8; -typedef Dartint_fast8_t = int; -typedef int_least16_t = ffi.Int16; -typedef Dartint_least16_t = int; -typedef int_least32_t = ffi.Int32; -typedef Dartint_least32_t = int; -typedef int_least64_t = ffi.Int64; -typedef Dartint_least64_t = int; -typedef int_least8_t = ffi.Int8; -typedef Dartint_least8_t = int; -typedef integer_t = ffi.Int; -typedef Dartinteger_t = int; - -const int internalComponentErr = -2070; - -const int internalQuickTimeError = -2034; - -const int internalScrapErr = -4988; - -const int interruptsMaskedErr = -624; - -@Deprecated('Deprecated') -const int intlCurrency = 219; - -typedef intmax_t = ffi.Long; -typedef Dartintmax_t = int; - -const int invalidAtomContainerErr = -2107; - -const int invalidAtomErr = -2106; - -const int invalidAtomTypeErr = -2108; - -const int invalidChunkCache = -2040; - -const int invalidChunkNum = -2038; - -const int invalidComponentID = -3000; - -const int invalidDataRef = -2012; - -const int invalidDataRefContainer = -2049; - -const int invalidDuration = -2014; - -const int invalidEditState = -2023; - -const int invalidFolderTypeErr = -4273; - -const int invalidHandler = -2013; - -const int invalidHotSpotIDErr = -30551; - -const int invalidIconRefErr = -2580; - -const int invalidImageIndexErr = -2068; - -const int invalidIndexErr = -20002; - -const int invalidMedia = -2008; - -const int invalidMovie = -2010; - -const int invalidNodeFormatErr = -30550; - -const int invalidNodeIDErr = -30544; - -const int invalidPickerType = -4000; - -const int invalidRect = -2036; - -const int invalidSampleDescIndex = -2039; - -const int invalidSampleDescription = -2041; - -const int invalidSampleNum = -2037; - -const int invalidSampleTable = -2011; - -const int invalidSpriteIDErr = -2069; - -const int invalidSpriteIndexErr = -2067; - -const int invalidSpritePropertyErr = -2065; - -const int invalidSpriteWorldPropertyErr = -2064; - -const int invalidTime = -2015; - -const int invalidTrack = -2009; - -const int invalidTranslationPathErr = -3025; - -const int invalidViewStateErr = -30545; - -const int ioDirFlg = 4; - -const int ioDirMask = 16; - -const int ioErr = -36; - -@Deprecated('Deprecated') -const int ioQType = 2; - -typedef io_buf_ptr_t = ffi.Pointer; -typedef io_connect_t = io_object_t; -typedef io_enumerator_t = io_object_t; -typedef io_ident_t = io_object_t; -typedef io_iterator_t = io_object_t; -typedef io_main_t = mach_port_t; -typedef io_object_t = mach_port_t; -typedef io_registry_entry_t = io_object_t; -typedef io_service_t = io_object_t; - -final class io_stat_entry extends ffi.Struct { - @ffi.Uint64() - external int count; - - @ffi.Uint64() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required int size, - }) => $allocator() - ..ref.count = count - ..ref.size = size; -} - -final class io_stat_info extends ffi.Struct { - external io_stat_entry disk_reads; - - @ffi.Array.multi([4]) - external ffi.Array io_priority; - - external io_stat_entry paging; - - external io_stat_entry metadata; - - external io_stat_entry total_io; -} - -typedef io_stat_info_t = ffi.Pointer; -typedef io_user_reference_t = ffi.Uint64; -typedef Dartio_user_reference_t = int; -typedef io_user_scalar_t = ffi.Uint64; -typedef Dartio_user_scalar_t = int; - -final class iovec extends ffi.Struct { - external ffi.Pointer iov_base; - - @ffi.Size() - external int iov_len; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer iov_base, - required int iov_len, - }) => $allocator() - ..ref.iov_base = iov_base - ..ref.iov_len = iov_len; -} - -final class ip extends ffi.Opaque {} - -final class ip6_mtuinfo extends ffi.Struct { - external sockaddr_in6 ip6m_addr; - - @ffi.Uint32() - external int ip6m_mtu; -} - -final class ip_mreq extends ffi.Struct { - external in_addr imr_multiaddr; - - external in_addr imr_interface; -} - -final class ip_mreq_source extends ffi.Struct { - external in_addr imr_multiaddr; - - external in_addr imr_sourceaddr; - - external in_addr imr_interface; -} - -final class ip_mreqn extends ffi.Struct { - external in_addr imr_multiaddr; - - external in_addr imr_address; - - @ffi.Int() - external int imr_ifindex; -} - -final class ip_opts extends ffi.Struct { - external in_addr ip_dst; - - @ffi.Array.multi([40]) - external ffi.Array ip_opts$1; -} - -final class ip_timestamp extends ffi.Opaque {} - -typedef ipc_eventlink_t = mach_port_t; - -final class ipc_info_name extends ffi.Struct { - @mach_port_name_t() - external int iin_name; - - @integer_t() - external int iin_collision; - - @mach_port_type_t() - external int iin_type; - - @mach_port_urefs_t() - external int iin_urefs; - - @natural_t() - external int iin_object; - - @natural_t() - external int iin_next; - - @natural_t() - external int iin_hash; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iin_name, - required int iin_collision, - required int iin_type, - required int iin_urefs, - required int iin_object, - required int iin_next, - required int iin_hash, - }) => $allocator() - ..ref.iin_name = iin_name - ..ref.iin_collision = iin_collision - ..ref.iin_type = iin_type - ..ref.iin_urefs = iin_urefs - ..ref.iin_object = iin_object - ..ref.iin_next = iin_next - ..ref.iin_hash = iin_hash; -} - -typedef ipc_info_name_array_t = ffi.Pointer; -typedef ipc_info_name_t = ipc_info_name; - -enum ipc_info_object_type_t { - IPC_OTYPE_NONE(0), - IPC_OTYPE_THREAD_CONTROL(1), - IPC_OTYPE_TASK_CONTROL(2), - IPC_OTYPE_HOST(3), - IPC_OTYPE_HOST_PRIV(4), - IPC_OTYPE_PROCESSOR(5), - IPC_OTYPE_PROCESSOR_SET(6), - IPC_OTYPE_PROCESSOR_SET_NAME(7), - IPC_OTYPE_TIMER(8), - IPC_OTYPE_PORT_SUBST_ONCE(9), - IPC_OTYPE_MIG(10), - IPC_OTYPE_MEMORY_OBJECT(11), - IPC_OTYPE_XMM_PAGER(12), - IPC_OTYPE_XMM_KERNEL(13), - IPC_OTYPE_XMM_REPLY(14), - IPC_OTYPE_UND_REPLY(15), - IPC_OTYPE_HOST_NOTIFY(16), - IPC_OTYPE_HOST_SECURITY(17), - IPC_OTYPE_LEDGER(18), - IPC_OTYPE_MAIN_DEVICE(19), - IPC_OTYPE_TASK_NAME(20), - IPC_OTYPE_SUBSYSTEM(21), - IPC_OTYPE_IO_DONE_QUEUE(22), - IPC_OTYPE_SEMAPHORE(23), - IPC_OTYPE_LOCK_SET(24), - IPC_OTYPE_CLOCK(25), - IPC_OTYPE_CLOCK_CTRL(26), - IPC_OTYPE_IOKIT_IDENT(27), - IPC_OTYPE_NAMED_ENTRY(28), - IPC_OTYPE_IOKIT_CONNECT(29), - IPC_OTYPE_IOKIT_OBJECT(30), - IPC_OTYPE_UPL(31), - IPC_OTYPE_MEM_OBJ_CONTROL(32), - IPC_OTYPE_AU_SESSIONPORT(33), - IPC_OTYPE_FILEPORT(34), - IPC_OTYPE_LABELH(35), - IPC_OTYPE_TASK_RESUME(36), - IPC_OTYPE_VOUCHER(37), - IPC_OTYPE_VOUCHER_ATTR_CONTROL(38), - IPC_OTYPE_WORK_INTERVAL(39), - IPC_OTYPE_UX_HANDLER(40), - IPC_OTYPE_UEXT_OBJECT(41), - IPC_OTYPE_ARCADE_REG(42), - IPC_OTYPE_EVENTLINK(43), - IPC_OTYPE_TASK_INSPECT(44), - IPC_OTYPE_TASK_READ(45), - IPC_OTYPE_THREAD_INSPECT(46), - IPC_OTYPE_THREAD_READ(47), - IPC_OTYPE_SUID_CRED(48), - IPC_OTYPE_HYPERVISOR(49), - IPC_OTYPE_TASK_ID_TOKEN(50), - IPC_OTYPE_TASK_FATAL(51), - IPC_OTYPE_KCDATA(52), - IPC_OTYPE_EXCLAVES_RESOURCE(53), - IPC_OTYPE_UNKNOWN(-1); - - final int value; - const ipc_info_object_type_t(this.value); - - static ipc_info_object_type_t fromValue(int value) => switch (value) { - 0 => IPC_OTYPE_NONE, - 1 => IPC_OTYPE_THREAD_CONTROL, - 2 => IPC_OTYPE_TASK_CONTROL, - 3 => IPC_OTYPE_HOST, - 4 => IPC_OTYPE_HOST_PRIV, - 5 => IPC_OTYPE_PROCESSOR, - 6 => IPC_OTYPE_PROCESSOR_SET, - 7 => IPC_OTYPE_PROCESSOR_SET_NAME, - 8 => IPC_OTYPE_TIMER, - 9 => IPC_OTYPE_PORT_SUBST_ONCE, - 10 => IPC_OTYPE_MIG, - 11 => IPC_OTYPE_MEMORY_OBJECT, - 12 => IPC_OTYPE_XMM_PAGER, - 13 => IPC_OTYPE_XMM_KERNEL, - 14 => IPC_OTYPE_XMM_REPLY, - 15 => IPC_OTYPE_UND_REPLY, - 16 => IPC_OTYPE_HOST_NOTIFY, - 17 => IPC_OTYPE_HOST_SECURITY, - 18 => IPC_OTYPE_LEDGER, - 19 => IPC_OTYPE_MAIN_DEVICE, - 20 => IPC_OTYPE_TASK_NAME, - 21 => IPC_OTYPE_SUBSYSTEM, - 22 => IPC_OTYPE_IO_DONE_QUEUE, - 23 => IPC_OTYPE_SEMAPHORE, - 24 => IPC_OTYPE_LOCK_SET, - 25 => IPC_OTYPE_CLOCK, - 26 => IPC_OTYPE_CLOCK_CTRL, - 27 => IPC_OTYPE_IOKIT_IDENT, - 28 => IPC_OTYPE_NAMED_ENTRY, - 29 => IPC_OTYPE_IOKIT_CONNECT, - 30 => IPC_OTYPE_IOKIT_OBJECT, - 31 => IPC_OTYPE_UPL, - 32 => IPC_OTYPE_MEM_OBJ_CONTROL, - 33 => IPC_OTYPE_AU_SESSIONPORT, - 34 => IPC_OTYPE_FILEPORT, - 35 => IPC_OTYPE_LABELH, - 36 => IPC_OTYPE_TASK_RESUME, - 37 => IPC_OTYPE_VOUCHER, - 38 => IPC_OTYPE_VOUCHER_ATTR_CONTROL, - 39 => IPC_OTYPE_WORK_INTERVAL, - 40 => IPC_OTYPE_UX_HANDLER, - 41 => IPC_OTYPE_UEXT_OBJECT, - 42 => IPC_OTYPE_ARCADE_REG, - 43 => IPC_OTYPE_EVENTLINK, - 44 => IPC_OTYPE_TASK_INSPECT, - 45 => IPC_OTYPE_TASK_READ, - 46 => IPC_OTYPE_THREAD_INSPECT, - 47 => IPC_OTYPE_THREAD_READ, - 48 => IPC_OTYPE_SUID_CRED, - 49 => IPC_OTYPE_HYPERVISOR, - 50 => IPC_OTYPE_TASK_ID_TOKEN, - 51 => IPC_OTYPE_TASK_FATAL, - 52 => IPC_OTYPE_KCDATA, - 53 => IPC_OTYPE_EXCLAVES_RESOURCE, - -1 => IPC_OTYPE_UNKNOWN, - _ => throw ArgumentError( - 'Unknown value for ipc_info_object_type_t: $value', - ), - }; -} - -final class ipc_info_port extends ffi.Struct { - @natural_t() - external int iip_port_object; - - @natural_t() - external int iip_receiver_object; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iip_port_object, - required int iip_receiver_object, - }) => $allocator() - ..ref.iip_port_object = iip_port_object - ..ref.iip_receiver_object = iip_receiver_object; -} - -typedef ipc_info_port_t = ipc_info_port; - -final class ipc_info_space extends ffi.Struct { - @natural_t() - external int iis_genno_mask; - - @natural_t() - external int iis_table_size; - - @natural_t() - external int iis_table_next; - - @natural_t() - external int iis_tree_size; - - @natural_t() - external int iis_tree_small; - - @natural_t() - external int iis_tree_hash; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iis_genno_mask, - required int iis_table_size, - required int iis_table_next, - required int iis_tree_size, - required int iis_tree_small, - required int iis_tree_hash, - }) => $allocator() - ..ref.iis_genno_mask = iis_genno_mask - ..ref.iis_table_size = iis_table_size - ..ref.iis_table_next = iis_table_next - ..ref.iis_tree_size = iis_tree_size - ..ref.iis_tree_small = iis_tree_small - ..ref.iis_tree_hash = iis_tree_hash; -} - -final class ipc_info_space_basic extends ffi.Struct { - @natural_t() - external int iisb_genno_mask; - - @natural_t() - external int iisb_table_size; - - @natural_t() - external int iisb_table_next; - - @natural_t() - external int iisb_table_inuse; - - @ffi.Array.multi([2]) - external ffi.Array iisb_reserved; -} - -typedef ipc_info_space_basic_t = ipc_info_space_basic; -typedef ipc_info_space_t = ipc_info_space; - -final class ipc_info_tree_name extends ffi.Struct { - external ipc_info_name_t iitn_name; - - @mach_port_name_t() - external int iitn_lchild; - - @mach_port_name_t() - external int iitn_rchild; -} - -typedef ipc_info_tree_name_array_t = ffi.Pointer; -typedef ipc_info_tree_name_t = ipc_info_tree_name; -typedef ipc_space_inspect_t = mach_port_t; -typedef ipc_space_port_t = ipc_space_t; -typedef ipc_space_read_t = mach_port_t; -typedef ipc_space_t = mach_port_t; -typedef ipc_voucher_attr_control_t = mach_port_t; -typedef ipc_voucher_attr_manager_t = mach_port_t; -typedef ipc_voucher_t = mach_voucher_t; -typedef ipp_attribute_t = _ipp_attribute_s; -typedef ipp_copycb_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer context, - ffi.Pointer dst, - ffi.Pointer attr, - ) - > - >; - -enum ipp_dstate_e { - IPP_DSTATE_PENDING(3), - IPP_DSTATE_PROCESSING(5), - IPP_DSTATE_CANCELED(7), - IPP_DSTATE_ABORTED(8), - IPP_DSTATE_COMPLETED(9); - - final int value; - const ipp_dstate_e(this.value); - - static ipp_dstate_e fromValue(int value) => switch (value) { - 3 => IPP_DSTATE_PENDING, - 5 => IPP_DSTATE_PROCESSING, - 7 => IPP_DSTATE_CANCELED, - 8 => IPP_DSTATE_ABORTED, - 9 => IPP_DSTATE_COMPLETED, - _ => throw ArgumentError('Unknown value for ipp_dstate_e: $value'), - }; -} - -enum ipp_finishings_e { - IPP_FINISHINGS_NONE(3), - IPP_FINISHINGS_STAPLE(4), - IPP_FINISHINGS_PUNCH(5), - IPP_FINISHINGS_COVER(6), - IPP_FINISHINGS_BIND(7), - IPP_FINISHINGS_SADDLE_STITCH(8), - IPP_FINISHINGS_EDGE_STITCH(9), - IPP_FINISHINGS_FOLD(10), - IPP_FINISHINGS_TRIM(11), - IPP_FINISHINGS_BALE(12), - IPP_FINISHINGS_BOOKLET_MAKER(13), - IPP_FINISHINGS_JOG_OFFSET(14), - IPP_FINISHINGS_COAT(15), - IPP_FINISHINGS_LAMINATE(16), - IPP_FINISHINGS_STAPLE_TOP_LEFT(20), - IPP_FINISHINGS_STAPLE_BOTTOM_LEFT(21), - IPP_FINISHINGS_STAPLE_TOP_RIGHT(22), - IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT(23), - IPP_FINISHINGS_EDGE_STITCH_LEFT(24), - IPP_FINISHINGS_EDGE_STITCH_TOP(25), - IPP_FINISHINGS_EDGE_STITCH_RIGHT(26), - IPP_FINISHINGS_EDGE_STITCH_BOTTOM(27), - IPP_FINISHINGS_STAPLE_DUAL_LEFT(28), - IPP_FINISHINGS_STAPLE_DUAL_TOP(29), - IPP_FINISHINGS_STAPLE_DUAL_RIGHT(30), - IPP_FINISHINGS_STAPLE_DUAL_BOTTOM(31), - IPP_FINISHINGS_STAPLE_TRIPLE_LEFT(32), - IPP_FINISHINGS_STAPLE_TRIPLE_TOP(33), - IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT(34), - IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM(35), - IPP_FINISHINGS_BIND_LEFT(50), - IPP_FINISHINGS_BIND_TOP(51), - IPP_FINISHINGS_BIND_RIGHT(52), - IPP_FINISHINGS_BIND_BOTTOM(53), - IPP_FINISHINGS_TRIM_AFTER_PAGES(60), - IPP_FINISHINGS_TRIM_AFTER_DOCUMENTS(61), - IPP_FINISHINGS_TRIM_AFTER_COPIES(62), - IPP_FINISHINGS_TRIM_AFTER_JOB(63), - IPP_FINISHINGS_PUNCH_TOP_LEFT(70), - IPP_FINISHINGS_PUNCH_BOTTOM_LEFT(71), - IPP_FINISHINGS_PUNCH_TOP_RIGHT(72), - IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT(73), - IPP_FINISHINGS_PUNCH_DUAL_LEFT(74), - IPP_FINISHINGS_PUNCH_DUAL_TOP(75), - IPP_FINISHINGS_PUNCH_DUAL_RIGHT(76), - IPP_FINISHINGS_PUNCH_DUAL_BOTTOM(77), - IPP_FINISHINGS_PUNCH_TRIPLE_LEFT(78), - IPP_FINISHINGS_PUNCH_TRIPLE_TOP(79), - IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT(80), - IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM(81), - IPP_FINISHINGS_PUNCH_QUAD_LEFT(82), - IPP_FINISHINGS_PUNCH_QUAD_TOP(83), - IPP_FINISHINGS_PUNCH_QUAD_RIGHT(84), - IPP_FINISHINGS_PUNCH_QUAD_BOTTOM(85), - IPP_FINISHINGS_PUNCH_MULTIPLE_LEFT(86), - IPP_FINISHINGS_PUNCH_MULTIPLE_TOP(87), - IPP_FINISHINGS_PUNCH_MULTIPLE_RIGHT(88), - IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM(89), - IPP_FINISHINGS_FOLD_ACCORDION(90), - IPP_FINISHINGS_FOLD_DOUBLE_GATE(91), - IPP_FINISHINGS_FOLD_GATE(92), - IPP_FINISHINGS_FOLD_HALF(93), - IPP_FINISHINGS_FOLD_HALF_Z(94), - IPP_FINISHINGS_FOLD_LEFT_GATE(95), - IPP_FINISHINGS_FOLD_LETTER(96), - IPP_FINISHINGS_FOLD_PARALLEL(97), - IPP_FINISHINGS_FOLD_POSTER(98), - IPP_FINISHINGS_FOLD_RIGHT_GATE(99), - IPP_FINISHINGS_FOLD_Z(100), - IPP_FINISHINGS_FOLD_ENGINEERING_Z(101), - IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT(1073741894), - IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_LEFT(1073741895), - IPP_FINISHINGS_CUPS_PUNCH_TOP_RIGHT(1073741896), - IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_RIGHT(1073741897), - IPP_FINISHINGS_CUPS_PUNCH_DUAL_LEFT(1073741898), - IPP_FINISHINGS_CUPS_PUNCH_DUAL_TOP(1073741899), - IPP_FINISHINGS_CUPS_PUNCH_DUAL_RIGHT(1073741900), - IPP_FINISHINGS_CUPS_PUNCH_DUAL_BOTTOM(1073741901), - IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_LEFT(1073741902), - IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_TOP(1073741903), - IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_RIGHT(1073741904), - IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_BOTTOM(1073741905), - IPP_FINISHINGS_CUPS_PUNCH_QUAD_LEFT(1073741906), - IPP_FINISHINGS_CUPS_PUNCH_QUAD_TOP(1073741907), - IPP_FINISHINGS_CUPS_PUNCH_QUAD_RIGHT(1073741908), - IPP_FINISHINGS_CUPS_PUNCH_QUAD_BOTTOM(1073741909), - IPP_FINISHINGS_CUPS_FOLD_ACCORDION(1073741914), - IPP_FINISHINGS_CUPS_FOLD_DOUBLE_GATE(1073741915), - IPP_FINISHINGS_CUPS_FOLD_GATE(1073741916), - IPP_FINISHINGS_CUPS_FOLD_HALF(1073741917), - IPP_FINISHINGS_CUPS_FOLD_HALF_Z(1073741918), - IPP_FINISHINGS_CUPS_FOLD_LEFT_GATE(1073741919), - IPP_FINISHINGS_CUPS_FOLD_LETTER(1073741920), - IPP_FINISHINGS_CUPS_FOLD_PARALLEL(1073741921), - IPP_FINISHINGS_CUPS_FOLD_POSTER(1073741922), - IPP_FINISHINGS_CUPS_FOLD_RIGHT_GATE(1073741923), - IPP_FINISHINGS_CUPS_FOLD_Z(1073741924); - - final int value; - const ipp_finishings_e(this.value); - - static ipp_finishings_e fromValue(int value) => switch (value) { - 3 => IPP_FINISHINGS_NONE, - 4 => IPP_FINISHINGS_STAPLE, - 5 => IPP_FINISHINGS_PUNCH, - 6 => IPP_FINISHINGS_COVER, - 7 => IPP_FINISHINGS_BIND, - 8 => IPP_FINISHINGS_SADDLE_STITCH, - 9 => IPP_FINISHINGS_EDGE_STITCH, - 10 => IPP_FINISHINGS_FOLD, - 11 => IPP_FINISHINGS_TRIM, - 12 => IPP_FINISHINGS_BALE, - 13 => IPP_FINISHINGS_BOOKLET_MAKER, - 14 => IPP_FINISHINGS_JOG_OFFSET, - 15 => IPP_FINISHINGS_COAT, - 16 => IPP_FINISHINGS_LAMINATE, - 20 => IPP_FINISHINGS_STAPLE_TOP_LEFT, - 21 => IPP_FINISHINGS_STAPLE_BOTTOM_LEFT, - 22 => IPP_FINISHINGS_STAPLE_TOP_RIGHT, - 23 => IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT, - 24 => IPP_FINISHINGS_EDGE_STITCH_LEFT, - 25 => IPP_FINISHINGS_EDGE_STITCH_TOP, - 26 => IPP_FINISHINGS_EDGE_STITCH_RIGHT, - 27 => IPP_FINISHINGS_EDGE_STITCH_BOTTOM, - 28 => IPP_FINISHINGS_STAPLE_DUAL_LEFT, - 29 => IPP_FINISHINGS_STAPLE_DUAL_TOP, - 30 => IPP_FINISHINGS_STAPLE_DUAL_RIGHT, - 31 => IPP_FINISHINGS_STAPLE_DUAL_BOTTOM, - 32 => IPP_FINISHINGS_STAPLE_TRIPLE_LEFT, - 33 => IPP_FINISHINGS_STAPLE_TRIPLE_TOP, - 34 => IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT, - 35 => IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM, - 50 => IPP_FINISHINGS_BIND_LEFT, - 51 => IPP_FINISHINGS_BIND_TOP, - 52 => IPP_FINISHINGS_BIND_RIGHT, - 53 => IPP_FINISHINGS_BIND_BOTTOM, - 60 => IPP_FINISHINGS_TRIM_AFTER_PAGES, - 61 => IPP_FINISHINGS_TRIM_AFTER_DOCUMENTS, - 62 => IPP_FINISHINGS_TRIM_AFTER_COPIES, - 63 => IPP_FINISHINGS_TRIM_AFTER_JOB, - 70 => IPP_FINISHINGS_PUNCH_TOP_LEFT, - 71 => IPP_FINISHINGS_PUNCH_BOTTOM_LEFT, - 72 => IPP_FINISHINGS_PUNCH_TOP_RIGHT, - 73 => IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT, - 74 => IPP_FINISHINGS_PUNCH_DUAL_LEFT, - 75 => IPP_FINISHINGS_PUNCH_DUAL_TOP, - 76 => IPP_FINISHINGS_PUNCH_DUAL_RIGHT, - 77 => IPP_FINISHINGS_PUNCH_DUAL_BOTTOM, - 78 => IPP_FINISHINGS_PUNCH_TRIPLE_LEFT, - 79 => IPP_FINISHINGS_PUNCH_TRIPLE_TOP, - 80 => IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT, - 81 => IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM, - 82 => IPP_FINISHINGS_PUNCH_QUAD_LEFT, - 83 => IPP_FINISHINGS_PUNCH_QUAD_TOP, - 84 => IPP_FINISHINGS_PUNCH_QUAD_RIGHT, - 85 => IPP_FINISHINGS_PUNCH_QUAD_BOTTOM, - 86 => IPP_FINISHINGS_PUNCH_MULTIPLE_LEFT, - 87 => IPP_FINISHINGS_PUNCH_MULTIPLE_TOP, - 88 => IPP_FINISHINGS_PUNCH_MULTIPLE_RIGHT, - 89 => IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM, - 90 => IPP_FINISHINGS_FOLD_ACCORDION, - 91 => IPP_FINISHINGS_FOLD_DOUBLE_GATE, - 92 => IPP_FINISHINGS_FOLD_GATE, - 93 => IPP_FINISHINGS_FOLD_HALF, - 94 => IPP_FINISHINGS_FOLD_HALF_Z, - 95 => IPP_FINISHINGS_FOLD_LEFT_GATE, - 96 => IPP_FINISHINGS_FOLD_LETTER, - 97 => IPP_FINISHINGS_FOLD_PARALLEL, - 98 => IPP_FINISHINGS_FOLD_POSTER, - 99 => IPP_FINISHINGS_FOLD_RIGHT_GATE, - 100 => IPP_FINISHINGS_FOLD_Z, - 101 => IPP_FINISHINGS_FOLD_ENGINEERING_Z, - 1073741894 => IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT, - 1073741895 => IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_LEFT, - 1073741896 => IPP_FINISHINGS_CUPS_PUNCH_TOP_RIGHT, - 1073741897 => IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_RIGHT, - 1073741898 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_LEFT, - 1073741899 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_TOP, - 1073741900 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_RIGHT, - 1073741901 => IPP_FINISHINGS_CUPS_PUNCH_DUAL_BOTTOM, - 1073741902 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_LEFT, - 1073741903 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_TOP, - 1073741904 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_RIGHT, - 1073741905 => IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_BOTTOM, - 1073741906 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_LEFT, - 1073741907 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_TOP, - 1073741908 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_RIGHT, - 1073741909 => IPP_FINISHINGS_CUPS_PUNCH_QUAD_BOTTOM, - 1073741914 => IPP_FINISHINGS_CUPS_FOLD_ACCORDION, - 1073741915 => IPP_FINISHINGS_CUPS_FOLD_DOUBLE_GATE, - 1073741916 => IPP_FINISHINGS_CUPS_FOLD_GATE, - 1073741917 => IPP_FINISHINGS_CUPS_FOLD_HALF, - 1073741918 => IPP_FINISHINGS_CUPS_FOLD_HALF_Z, - 1073741919 => IPP_FINISHINGS_CUPS_FOLD_LEFT_GATE, - 1073741920 => IPP_FINISHINGS_CUPS_FOLD_LETTER, - 1073741921 => IPP_FINISHINGS_CUPS_FOLD_PARALLEL, - 1073741922 => IPP_FINISHINGS_CUPS_FOLD_POSTER, - 1073741923 => IPP_FINISHINGS_CUPS_FOLD_RIGHT_GATE, - 1073741924 => IPP_FINISHINGS_CUPS_FOLD_Z, - _ => throw ArgumentError('Unknown value for ipp_finishings_e: $value'), - }; -} - -typedef ipp_iocb_t = - ffi.Pointer< - ffi.NativeFunction< - ssize_t Function( - ffi.Pointer context, - ffi.Pointer buffer, - ffi.Size bytes, - ) - > - >; - -enum ipp_jcollate_e { - IPP_JCOLLATE_UNCOLLATED_SHEETS(3), - IPP_JCOLLATE_COLLATED_DOCUMENTS(4), - IPP_JCOLLATE_UNCOLLATED_DOCUMENTS(5); - - final int value; - const ipp_jcollate_e(this.value); - - static ipp_jcollate_e fromValue(int value) => switch (value) { - 3 => IPP_JCOLLATE_UNCOLLATED_SHEETS, - 4 => IPP_JCOLLATE_COLLATED_DOCUMENTS, - 5 => IPP_JCOLLATE_UNCOLLATED_DOCUMENTS, - _ => throw ArgumentError('Unknown value for ipp_jcollate_e: $value'), - }; -} - -enum ipp_jstate_e { - IPP_JSTATE_PENDING(3), - IPP_JSTATE_HELD(4), - IPP_JSTATE_PROCESSING(5), - IPP_JSTATE_STOPPED(6), - IPP_JSTATE_CANCELED(7), - IPP_JSTATE_ABORTED(8), - IPP_JSTATE_COMPLETED(9); - - final int value; - const ipp_jstate_e(this.value); - - static ipp_jstate_e fromValue(int value) => switch (value) { - 3 => IPP_JSTATE_PENDING, - 4 => IPP_JSTATE_HELD, - 5 => IPP_JSTATE_PROCESSING, - 6 => IPP_JSTATE_STOPPED, - 7 => IPP_JSTATE_CANCELED, - 8 => IPP_JSTATE_ABORTED, - 9 => IPP_JSTATE_COMPLETED, - _ => throw ArgumentError('Unknown value for ipp_jstate_e: $value'), - }; -} - -enum ipp_op_e { - IPP_OP_CUPS_INVALID(-1), - IPP_OP_CUPS_NONE(0), - IPP_OP_PRINT_JOB(2), - IPP_OP_PRINT_URI(3), - IPP_OP_VALIDATE_JOB(4), - IPP_OP_CREATE_JOB(5), - IPP_OP_SEND_DOCUMENT(6), - IPP_OP_SEND_URI(7), - IPP_OP_CANCEL_JOB(8), - IPP_OP_GET_JOB_ATTRIBUTES(9), - IPP_OP_GET_JOBS(10), - IPP_OP_GET_PRINTER_ATTRIBUTES(11), - IPP_OP_HOLD_JOB(12), - IPP_OP_RELEASE_JOB(13), - IPP_OP_RESTART_JOB(14), - IPP_OP_PAUSE_PRINTER(16), - IPP_OP_RESUME_PRINTER(17), - IPP_OP_PURGE_JOBS(18), - IPP_OP_SET_PRINTER_ATTRIBUTES(19), - IPP_OP_SET_JOB_ATTRIBUTES(20), - IPP_OP_GET_PRINTER_SUPPORTED_VALUES(21), - IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS(22), - IPP_OP_CREATE_JOB_SUBSCRIPTIONS(23), - IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES(24), - IPP_OP_GET_SUBSCRIPTIONS(25), - IPP_OP_RENEW_SUBSCRIPTION(26), - IPP_OP_CANCEL_SUBSCRIPTION(27), - IPP_OP_GET_NOTIFICATIONS(28), - IPP_OP_SEND_NOTIFICATIONS(29), - IPP_OP_GET_RESOURCE_ATTRIBUTES(30), - IPP_OP_GET_RESOURCE_DATA(31), - IPP_OP_GET_RESOURCES(32), - IPP_OP_GET_PRINT_SUPPORT_FILES(33), - IPP_OP_ENABLE_PRINTER(34), - IPP_OP_DISABLE_PRINTER(35), - IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB(36), - IPP_OP_HOLD_NEW_JOBS(37), - IPP_OP_RELEASE_HELD_NEW_JOBS(38), - IPP_OP_DEACTIVATE_PRINTER(39), - IPP_OP_ACTIVATE_PRINTER(40), - IPP_OP_RESTART_PRINTER(41), - IPP_OP_SHUTDOWN_PRINTER(42), - IPP_OP_STARTUP_PRINTER(43), - IPP_OP_REPROCESS_JOB(44), - IPP_OP_CANCEL_CURRENT_JOB(45), - IPP_OP_SUSPEND_CURRENT_JOB(46), - IPP_OP_RESUME_JOB(47), - IPP_OP_PROMOTE_JOB(48), - IPP_OP_SCHEDULE_JOB_AFTER(49), - IPP_OP_CANCEL_DOCUMENT(51), - IPP_OP_GET_DOCUMENT_ATTRIBUTES(52), - IPP_OP_GET_DOCUMENTS(53), - IPP_OP_DELETE_DOCUMENT(54), - IPP_OP_SET_DOCUMENT_ATTRIBUTES(55), - IPP_OP_CANCEL_JOBS(56), - IPP_OP_CANCEL_MY_JOBS(57), - IPP_OP_RESUBMIT_JOB(58), - IPP_OP_CLOSE_JOB(59), - IPP_OP_IDENTIFY_PRINTER(60), - IPP_OP_VALIDATE_DOCUMENT(61), - IPP_OP_ADD_DOCUMENT_IMAGES(62), - IPP_OP_ACKNOWLEDGE_DOCUMENT(63), - IPP_OP_ACKNOWLEDGE_IDENTIFY_PRINTER(64), - IPP_OP_ACKNOWLEDGE_JOB(65), - IPP_OP_FETCH_DOCUMENT(66), - IPP_OP_FETCH_JOB(67), - IPP_OP_GET_OUTPUT_DEVICE_ATTRIBUTES(68), - IPP_OP_UPDATE_ACTIVE_JOBS(69), - IPP_OP_DEREGISTER_OUTPUT_DEVICE(70), - IPP_OP_UPDATE_DOCUMENT_STATUS(71), - IPP_OP_UPDATE_JOB_STATUS(72), - IPP_OP_UPDATE_OUTPUT_DEVICE_ATTRIBUTES(73), - IPP_OP_GET_NEXT_DOCUMENT_DATA(74), - IPP_OP_ALLOCATE_PRINTER_RESOURCES(75), - IPP_OP_CREATE_PRINTER(76), - IPP_OP_DEALLOCATE_PRINTER_RESOURCES(77), - IPP_OP_DELETE_PRINTER(78), - IPP_OP_GET_PRINTERS(79), - IPP_OP_SHUTDOWN_ONE_PRINTER(80), - IPP_OP_STARTUP_ONE_PRINTER(81), - IPP_OP_CANCEL_RESOURCE(82), - IPP_OP_CREATE_RESOURCE(83), - IPP_OP_INSTALL_RESOURCE(84), - IPP_OP_SEND_RESOURCE_DATA(85), - IPP_OP_SET_RESOURCE_ATTRIBUTES(86), - IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS(87), - IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS(88), - IPP_OP_DISABLE_ALL_PRINTERS(89), - IPP_OP_ENABLE_ALL_PRINTERS(90), - IPP_OP_GET_SYSTEM_ATTRIBUTES(91), - IPP_OP_GET_SYSTEM_SUPPORTED_VALUES(92), - IPP_OP_PAUSE_ALL_PRINTERS(93), - IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB(94), - IPP_OP_REGISTER_OUTPUT_DEVICE(95), - IPP_OP_RESTART_SYSTEM(96), - IPP_OP_RESUME_ALL_PRINTERS(97), - IPP_OP_SET_SYSTEM_ATTRIBUTES(98), - IPP_OP_SHUTDOWN_ALL_PRINTERS(99), - IPP_OP_STARTUP_ALL_PRINTERS(100), - IPP_OP_PRIVATE(16384), - IPP_OP_CUPS_GET_DEFAULT(16385), - IPP_OP_CUPS_GET_PRINTERS(16386), - IPP_OP_CUPS_ADD_MODIFY_PRINTER(16387), - IPP_OP_CUPS_DELETE_PRINTER(16388), - IPP_OP_CUPS_GET_CLASSES(16389), - IPP_OP_CUPS_ADD_MODIFY_CLASS(16390), - IPP_OP_CUPS_DELETE_CLASS(16391), - IPP_OP_CUPS_ACCEPT_JOBS(16392), - IPP_OP_CUPS_REJECT_JOBS(16393), - IPP_OP_CUPS_SET_DEFAULT(16394), - IPP_OP_CUPS_GET_DEVICES(16395), - IPP_OP_CUPS_GET_PPDS(16396), - IPP_OP_CUPS_MOVE_JOB(16397), - IPP_OP_CUPS_AUTHENTICATE_JOB(16398), - IPP_OP_CUPS_GET_PPD(16399), - IPP_OP_CUPS_GET_DOCUMENT(16423), - IPP_OP_CUPS_CREATE_LOCAL_PRINTER(16424); - - final int value; - const ipp_op_e(this.value); - - static ipp_op_e fromValue(int value) => switch (value) { - -1 => IPP_OP_CUPS_INVALID, - 0 => IPP_OP_CUPS_NONE, - 2 => IPP_OP_PRINT_JOB, - 3 => IPP_OP_PRINT_URI, - 4 => IPP_OP_VALIDATE_JOB, - 5 => IPP_OP_CREATE_JOB, - 6 => IPP_OP_SEND_DOCUMENT, - 7 => IPP_OP_SEND_URI, - 8 => IPP_OP_CANCEL_JOB, - 9 => IPP_OP_GET_JOB_ATTRIBUTES, - 10 => IPP_OP_GET_JOBS, - 11 => IPP_OP_GET_PRINTER_ATTRIBUTES, - 12 => IPP_OP_HOLD_JOB, - 13 => IPP_OP_RELEASE_JOB, - 14 => IPP_OP_RESTART_JOB, - 16 => IPP_OP_PAUSE_PRINTER, - 17 => IPP_OP_RESUME_PRINTER, - 18 => IPP_OP_PURGE_JOBS, - 19 => IPP_OP_SET_PRINTER_ATTRIBUTES, - 20 => IPP_OP_SET_JOB_ATTRIBUTES, - 21 => IPP_OP_GET_PRINTER_SUPPORTED_VALUES, - 22 => IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS, - 23 => IPP_OP_CREATE_JOB_SUBSCRIPTIONS, - 24 => IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES, - 25 => IPP_OP_GET_SUBSCRIPTIONS, - 26 => IPP_OP_RENEW_SUBSCRIPTION, - 27 => IPP_OP_CANCEL_SUBSCRIPTION, - 28 => IPP_OP_GET_NOTIFICATIONS, - 29 => IPP_OP_SEND_NOTIFICATIONS, - 30 => IPP_OP_GET_RESOURCE_ATTRIBUTES, - 31 => IPP_OP_GET_RESOURCE_DATA, - 32 => IPP_OP_GET_RESOURCES, - 33 => IPP_OP_GET_PRINT_SUPPORT_FILES, - 34 => IPP_OP_ENABLE_PRINTER, - 35 => IPP_OP_DISABLE_PRINTER, - 36 => IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB, - 37 => IPP_OP_HOLD_NEW_JOBS, - 38 => IPP_OP_RELEASE_HELD_NEW_JOBS, - 39 => IPP_OP_DEACTIVATE_PRINTER, - 40 => IPP_OP_ACTIVATE_PRINTER, - 41 => IPP_OP_RESTART_PRINTER, - 42 => IPP_OP_SHUTDOWN_PRINTER, - 43 => IPP_OP_STARTUP_PRINTER, - 44 => IPP_OP_REPROCESS_JOB, - 45 => IPP_OP_CANCEL_CURRENT_JOB, - 46 => IPP_OP_SUSPEND_CURRENT_JOB, - 47 => IPP_OP_RESUME_JOB, - 48 => IPP_OP_PROMOTE_JOB, - 49 => IPP_OP_SCHEDULE_JOB_AFTER, - 51 => IPP_OP_CANCEL_DOCUMENT, - 52 => IPP_OP_GET_DOCUMENT_ATTRIBUTES, - 53 => IPP_OP_GET_DOCUMENTS, - 54 => IPP_OP_DELETE_DOCUMENT, - 55 => IPP_OP_SET_DOCUMENT_ATTRIBUTES, - 56 => IPP_OP_CANCEL_JOBS, - 57 => IPP_OP_CANCEL_MY_JOBS, - 58 => IPP_OP_RESUBMIT_JOB, - 59 => IPP_OP_CLOSE_JOB, - 60 => IPP_OP_IDENTIFY_PRINTER, - 61 => IPP_OP_VALIDATE_DOCUMENT, - 62 => IPP_OP_ADD_DOCUMENT_IMAGES, - 63 => IPP_OP_ACKNOWLEDGE_DOCUMENT, - 64 => IPP_OP_ACKNOWLEDGE_IDENTIFY_PRINTER, - 65 => IPP_OP_ACKNOWLEDGE_JOB, - 66 => IPP_OP_FETCH_DOCUMENT, - 67 => IPP_OP_FETCH_JOB, - 68 => IPP_OP_GET_OUTPUT_DEVICE_ATTRIBUTES, - 69 => IPP_OP_UPDATE_ACTIVE_JOBS, - 70 => IPP_OP_DEREGISTER_OUTPUT_DEVICE, - 71 => IPP_OP_UPDATE_DOCUMENT_STATUS, - 72 => IPP_OP_UPDATE_JOB_STATUS, - 73 => IPP_OP_UPDATE_OUTPUT_DEVICE_ATTRIBUTES, - 74 => IPP_OP_GET_NEXT_DOCUMENT_DATA, - 75 => IPP_OP_ALLOCATE_PRINTER_RESOURCES, - 76 => IPP_OP_CREATE_PRINTER, - 77 => IPP_OP_DEALLOCATE_PRINTER_RESOURCES, - 78 => IPP_OP_DELETE_PRINTER, - 79 => IPP_OP_GET_PRINTERS, - 80 => IPP_OP_SHUTDOWN_ONE_PRINTER, - 81 => IPP_OP_STARTUP_ONE_PRINTER, - 82 => IPP_OP_CANCEL_RESOURCE, - 83 => IPP_OP_CREATE_RESOURCE, - 84 => IPP_OP_INSTALL_RESOURCE, - 85 => IPP_OP_SEND_RESOURCE_DATA, - 86 => IPP_OP_SET_RESOURCE_ATTRIBUTES, - 87 => IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS, - 88 => IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS, - 89 => IPP_OP_DISABLE_ALL_PRINTERS, - 90 => IPP_OP_ENABLE_ALL_PRINTERS, - 91 => IPP_OP_GET_SYSTEM_ATTRIBUTES, - 92 => IPP_OP_GET_SYSTEM_SUPPORTED_VALUES, - 93 => IPP_OP_PAUSE_ALL_PRINTERS, - 94 => IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB, - 95 => IPP_OP_REGISTER_OUTPUT_DEVICE, - 96 => IPP_OP_RESTART_SYSTEM, - 97 => IPP_OP_RESUME_ALL_PRINTERS, - 98 => IPP_OP_SET_SYSTEM_ATTRIBUTES, - 99 => IPP_OP_SHUTDOWN_ALL_PRINTERS, - 100 => IPP_OP_STARTUP_ALL_PRINTERS, - 16384 => IPP_OP_PRIVATE, - 16385 => IPP_OP_CUPS_GET_DEFAULT, - 16386 => IPP_OP_CUPS_GET_PRINTERS, - 16387 => IPP_OP_CUPS_ADD_MODIFY_PRINTER, - 16388 => IPP_OP_CUPS_DELETE_PRINTER, - 16389 => IPP_OP_CUPS_GET_CLASSES, - 16390 => IPP_OP_CUPS_ADD_MODIFY_CLASS, - 16391 => IPP_OP_CUPS_DELETE_CLASS, - 16392 => IPP_OP_CUPS_ACCEPT_JOBS, - 16393 => IPP_OP_CUPS_REJECT_JOBS, - 16394 => IPP_OP_CUPS_SET_DEFAULT, - 16395 => IPP_OP_CUPS_GET_DEVICES, - 16396 => IPP_OP_CUPS_GET_PPDS, - 16397 => IPP_OP_CUPS_MOVE_JOB, - 16398 => IPP_OP_CUPS_AUTHENTICATE_JOB, - 16399 => IPP_OP_CUPS_GET_PPD, - 16423 => IPP_OP_CUPS_GET_DOCUMENT, - 16424 => IPP_OP_CUPS_CREATE_LOCAL_PRINTER, - _ => throw ArgumentError('Unknown value for ipp_op_e: $value'), - }; -} - -enum ipp_orient_e { - IPP_ORIENT_PORTRAIT(3), - IPP_ORIENT_LANDSCAPE(4), - IPP_ORIENT_REVERSE_LANDSCAPE(5), - IPP_ORIENT_REVERSE_PORTRAIT(6), - IPP_ORIENT_NONE(7); - - final int value; - const ipp_orient_e(this.value); - - static ipp_orient_e fromValue(int value) => switch (value) { - 3 => IPP_ORIENT_PORTRAIT, - 4 => IPP_ORIENT_LANDSCAPE, - 5 => IPP_ORIENT_REVERSE_LANDSCAPE, - 6 => IPP_ORIENT_REVERSE_PORTRAIT, - 7 => IPP_ORIENT_NONE, - _ => throw ArgumentError('Unknown value for ipp_orient_e: $value'), - }; -} - -enum ipp_pstate_e { - IPP_PSTATE_IDLE(3), - IPP_PSTATE_PROCESSING(4), - IPP_PSTATE_STOPPED(5); - - final int value; - const ipp_pstate_e(this.value); - - static ipp_pstate_e fromValue(int value) => switch (value) { - 3 => IPP_PSTATE_IDLE, - 4 => IPP_PSTATE_PROCESSING, - 5 => IPP_PSTATE_STOPPED, - _ => throw ArgumentError('Unknown value for ipp_pstate_e: $value'), - }; -} - -enum ipp_quality_e { - IPP_QUALITY_DRAFT(3), - IPP_QUALITY_NORMAL(4), - IPP_QUALITY_HIGH(5); - - final int value; - const ipp_quality_e(this.value); - - static ipp_quality_e fromValue(int value) => switch (value) { - 3 => IPP_QUALITY_DRAFT, - 4 => IPP_QUALITY_NORMAL, - 5 => IPP_QUALITY_HIGH, - _ => throw ArgumentError('Unknown value for ipp_quality_e: $value'), - }; -} - -enum ipp_res_e { - IPP_RES_PER_INCH(3), - IPP_RES_PER_CM(4); - - final int value; - const ipp_res_e(this.value); - - static ipp_res_e fromValue(int value) => switch (value) { - 3 => IPP_RES_PER_INCH, - 4 => IPP_RES_PER_CM, - _ => throw ArgumentError('Unknown value for ipp_res_e: $value'), - }; -} - -enum ipp_rstate_e { - IPP_RSTATE_PENDING(3), - IPP_RSTATE_AVAILABLE(4), - IPP_RSTATE_INSTALLED(5), - IPP_RSTATE_CANCELED(6), - IPP_RSTATE_ABORTED(7); - - final int value; - const ipp_rstate_e(this.value); - - static ipp_rstate_e fromValue(int value) => switch (value) { - 3 => IPP_RSTATE_PENDING, - 4 => IPP_RSTATE_AVAILABLE, - 5 => IPP_RSTATE_INSTALLED, - 6 => IPP_RSTATE_CANCELED, - 7 => IPP_RSTATE_ABORTED, - _ => throw ArgumentError('Unknown value for ipp_rstate_e: $value'), - }; -} - -enum ipp_sstate_e { - IPP_SSTATE_IDLE(3), - IPP_SSTATE_PROCESSING(4), - IPP_SSTATE_STOPPED(5); - - final int value; - const ipp_sstate_e(this.value); - - static ipp_sstate_e fromValue(int value) => switch (value) { - 3 => IPP_SSTATE_IDLE, - 4 => IPP_SSTATE_PROCESSING, - 5 => IPP_SSTATE_STOPPED, - _ => throw ArgumentError('Unknown value for ipp_sstate_e: $value'), - }; -} - -enum ipp_state_e { - IPP_STATE_ERROR(-1), - IPP_STATE_IDLE(0), - IPP_STATE_HEADER(1), - IPP_STATE_ATTRIBUTE(2), - IPP_STATE_DATA(3); - - final int value; - const ipp_state_e(this.value); - - static ipp_state_e fromValue(int value) => switch (value) { - -1 => IPP_STATE_ERROR, - 0 => IPP_STATE_IDLE, - 1 => IPP_STATE_HEADER, - 2 => IPP_STATE_ATTRIBUTE, - 3 => IPP_STATE_DATA, - _ => throw ArgumentError('Unknown value for ipp_state_e: $value'), - }; -} - -enum ipp_status_e { - IPP_STATUS_CUPS_INVALID(-1), - IPP_STATUS_OK(0), - IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED(1), - IPP_STATUS_OK_CONFLICTING(2), - IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS(3), - IPP_STATUS_OK_IGNORED_NOTIFICATIONS(4), - IPP_STATUS_OK_TOO_MANY_EVENTS(5), - IPP_STATUS_OK_BUT_CANCEL_SUBSCRIPTION(6), - IPP_STATUS_OK_EVENTS_COMPLETE(7), - IPP_STATUS_REDIRECTION_OTHER_SITE(512), - IPP_STATUS_CUPS_SEE_OTHER(640), - IPP_STATUS_ERROR_BAD_REQUEST(1024), - IPP_STATUS_ERROR_FORBIDDEN(1025), - IPP_STATUS_ERROR_NOT_AUTHENTICATED(1026), - IPP_STATUS_ERROR_NOT_AUTHORIZED(1027), - IPP_STATUS_ERROR_NOT_POSSIBLE(1028), - IPP_STATUS_ERROR_TIMEOUT(1029), - IPP_STATUS_ERROR_NOT_FOUND(1030), - IPP_STATUS_ERROR_GONE(1031), - IPP_STATUS_ERROR_REQUEST_ENTITY(1032), - IPP_STATUS_ERROR_REQUEST_VALUE(1033), - IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED(1034), - IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES(1035), - IPP_STATUS_ERROR_URI_SCHEME(1036), - IPP_STATUS_ERROR_CHARSET(1037), - IPP_STATUS_ERROR_CONFLICTING(1038), - IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED(1039), - IPP_STATUS_ERROR_COMPRESSION_ERROR(1040), - IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR(1041), - IPP_STATUS_ERROR_DOCUMENT_ACCESS(1042), - IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE(1043), - IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS(1044), - IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS(1045), - IPP_STATUS_ERROR_IGNORED_ALL_NOTIFICATIONS(1046), - IPP_STATUS_ERROR_PRINT_SUPPORT_FILE_NOT_FOUND(1047), - IPP_STATUS_ERROR_DOCUMENT_PASSWORD(1048), - IPP_STATUS_ERROR_DOCUMENT_PERMISSION(1049), - IPP_STATUS_ERROR_DOCUMENT_SECURITY(1050), - IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE(1051), - IPP_STATUS_ERROR_ACCOUNT_INFO_NEEDED(1052), - IPP_STATUS_ERROR_ACCOUNT_CLOSED(1053), - IPP_STATUS_ERROR_ACCOUNT_LIMIT_REACHED(1054), - IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED(1055), - IPP_STATUS_ERROR_NOT_FETCHABLE(1056), - IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED(1180), - IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED(1181), - IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED(1182), - IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED(1183), - IPP_STATUS_ERROR_INTERNAL(1280), - IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED(1281), - IPP_STATUS_ERROR_SERVICE_UNAVAILABLE(1282), - IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED(1283), - IPP_STATUS_ERROR_DEVICE(1284), - IPP_STATUS_ERROR_TEMPORARY(1285), - IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS(1286), - IPP_STATUS_ERROR_BUSY(1287), - IPP_STATUS_ERROR_JOB_CANCELED(1288), - IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED(1289), - IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED(1290), - IPP_STATUS_ERROR_TOO_MANY_JOBS(1291), - IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS(1292), - IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED(4096), - IPP_STATUS_ERROR_CUPS_PKI(4097), - IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED(4098); - - final int value; - const ipp_status_e(this.value); - - static ipp_status_e fromValue(int value) => switch (value) { - -1 => IPP_STATUS_CUPS_INVALID, - 0 => IPP_STATUS_OK, - 1 => IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED, - 2 => IPP_STATUS_OK_CONFLICTING, - 3 => IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS, - 4 => IPP_STATUS_OK_IGNORED_NOTIFICATIONS, - 5 => IPP_STATUS_OK_TOO_MANY_EVENTS, - 6 => IPP_STATUS_OK_BUT_CANCEL_SUBSCRIPTION, - 7 => IPP_STATUS_OK_EVENTS_COMPLETE, - 512 => IPP_STATUS_REDIRECTION_OTHER_SITE, - 640 => IPP_STATUS_CUPS_SEE_OTHER, - 1024 => IPP_STATUS_ERROR_BAD_REQUEST, - 1025 => IPP_STATUS_ERROR_FORBIDDEN, - 1026 => IPP_STATUS_ERROR_NOT_AUTHENTICATED, - 1027 => IPP_STATUS_ERROR_NOT_AUTHORIZED, - 1028 => IPP_STATUS_ERROR_NOT_POSSIBLE, - 1029 => IPP_STATUS_ERROR_TIMEOUT, - 1030 => IPP_STATUS_ERROR_NOT_FOUND, - 1031 => IPP_STATUS_ERROR_GONE, - 1032 => IPP_STATUS_ERROR_REQUEST_ENTITY, - 1033 => IPP_STATUS_ERROR_REQUEST_VALUE, - 1034 => IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED, - 1035 => IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, - 1036 => IPP_STATUS_ERROR_URI_SCHEME, - 1037 => IPP_STATUS_ERROR_CHARSET, - 1038 => IPP_STATUS_ERROR_CONFLICTING, - 1039 => IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED, - 1040 => IPP_STATUS_ERROR_COMPRESSION_ERROR, - 1041 => IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR, - 1042 => IPP_STATUS_ERROR_DOCUMENT_ACCESS, - 1043 => IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE, - 1044 => IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS, - 1045 => IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS, - 1046 => IPP_STATUS_ERROR_IGNORED_ALL_NOTIFICATIONS, - 1047 => IPP_STATUS_ERROR_PRINT_SUPPORT_FILE_NOT_FOUND, - 1048 => IPP_STATUS_ERROR_DOCUMENT_PASSWORD, - 1049 => IPP_STATUS_ERROR_DOCUMENT_PERMISSION, - 1050 => IPP_STATUS_ERROR_DOCUMENT_SECURITY, - 1051 => IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE, - 1052 => IPP_STATUS_ERROR_ACCOUNT_INFO_NEEDED, - 1053 => IPP_STATUS_ERROR_ACCOUNT_CLOSED, - 1054 => IPP_STATUS_ERROR_ACCOUNT_LIMIT_REACHED, - 1055 => IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED, - 1056 => IPP_STATUS_ERROR_NOT_FETCHABLE, - 1180 => IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED, - 1181 => IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED, - 1182 => IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED, - 1183 => IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED, - 1280 => IPP_STATUS_ERROR_INTERNAL, - 1281 => IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED, - 1282 => IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, - 1283 => IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED, - 1284 => IPP_STATUS_ERROR_DEVICE, - 1285 => IPP_STATUS_ERROR_TEMPORARY, - 1286 => IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS, - 1287 => IPP_STATUS_ERROR_BUSY, - 1288 => IPP_STATUS_ERROR_JOB_CANCELED, - 1289 => IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED, - 1290 => IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED, - 1291 => IPP_STATUS_ERROR_TOO_MANY_JOBS, - 1292 => IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS, - 4096 => IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED, - 4097 => IPP_STATUS_ERROR_CUPS_PKI, - 4098 => IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED, - _ => throw ArgumentError('Unknown value for ipp_status_e: $value'), - }; -} - -typedef ipp_t = _ipp_s; - -enum ipp_tag_e { - IPP_TAG_CUPS_INVALID(-1), - IPP_TAG_ZERO(0), - IPP_TAG_OPERATION(1), - IPP_TAG_JOB(2), - IPP_TAG_END(3), - IPP_TAG_PRINTER(4), - IPP_TAG_UNSUPPORTED_GROUP(5), - IPP_TAG_SUBSCRIPTION(6), - IPP_TAG_EVENT_NOTIFICATION(7), - IPP_TAG_RESOURCE(8), - IPP_TAG_DOCUMENT(9), - IPP_TAG_SYSTEM(10), - IPP_TAG_UNSUPPORTED_VALUE(16), - IPP_TAG_DEFAULT(17), - IPP_TAG_UNKNOWN(18), - IPP_TAG_NOVALUE(19), - IPP_TAG_NOTSETTABLE(21), - IPP_TAG_DELETEATTR(22), - IPP_TAG_ADMINDEFINE(23), - IPP_TAG_INTEGER(33), - IPP_TAG_BOOLEAN(34), - IPP_TAG_ENUM(35), - IPP_TAG_STRING(48), - IPP_TAG_DATE(49), - IPP_TAG_RESOLUTION(50), - IPP_TAG_RANGE(51), - IPP_TAG_BEGIN_COLLECTION(52), - IPP_TAG_TEXTLANG(53), - IPP_TAG_NAMELANG(54), - IPP_TAG_END_COLLECTION(55), - IPP_TAG_TEXT(65), - IPP_TAG_NAME(66), - IPP_TAG_RESERVED_STRING(67), - IPP_TAG_KEYWORD(68), - IPP_TAG_URI(69), - IPP_TAG_URISCHEME(70), - IPP_TAG_CHARSET(71), - IPP_TAG_LANGUAGE(72), - IPP_TAG_MIMETYPE(73), - IPP_TAG_MEMBERNAME(74), - IPP_TAG_EXTENSION(127), - IPP_TAG_CUPS_MASK(2147483647), - IPP_TAG_CUPS_CONST(-2147483648); - - final int value; - const ipp_tag_e(this.value); - - static ipp_tag_e fromValue(int value) => switch (value) { - -1 => IPP_TAG_CUPS_INVALID, - 0 => IPP_TAG_ZERO, - 1 => IPP_TAG_OPERATION, - 2 => IPP_TAG_JOB, - 3 => IPP_TAG_END, - 4 => IPP_TAG_PRINTER, - 5 => IPP_TAG_UNSUPPORTED_GROUP, - 6 => IPP_TAG_SUBSCRIPTION, - 7 => IPP_TAG_EVENT_NOTIFICATION, - 8 => IPP_TAG_RESOURCE, - 9 => IPP_TAG_DOCUMENT, - 10 => IPP_TAG_SYSTEM, - 16 => IPP_TAG_UNSUPPORTED_VALUE, - 17 => IPP_TAG_DEFAULT, - 18 => IPP_TAG_UNKNOWN, - 19 => IPP_TAG_NOVALUE, - 21 => IPP_TAG_NOTSETTABLE, - 22 => IPP_TAG_DELETEATTR, - 23 => IPP_TAG_ADMINDEFINE, - 33 => IPP_TAG_INTEGER, - 34 => IPP_TAG_BOOLEAN, - 35 => IPP_TAG_ENUM, - 48 => IPP_TAG_STRING, - 49 => IPP_TAG_DATE, - 50 => IPP_TAG_RESOLUTION, - 51 => IPP_TAG_RANGE, - 52 => IPP_TAG_BEGIN_COLLECTION, - 53 => IPP_TAG_TEXTLANG, - 54 => IPP_TAG_NAMELANG, - 55 => IPP_TAG_END_COLLECTION, - 65 => IPP_TAG_TEXT, - 66 => IPP_TAG_NAME, - 67 => IPP_TAG_RESERVED_STRING, - 68 => IPP_TAG_KEYWORD, - 69 => IPP_TAG_URI, - 70 => IPP_TAG_URISCHEME, - 71 => IPP_TAG_CHARSET, - 72 => IPP_TAG_LANGUAGE, - 73 => IPP_TAG_MIMETYPE, - 74 => IPP_TAG_MEMBERNAME, - 127 => IPP_TAG_EXTENSION, - 2147483647 => IPP_TAG_CUPS_MASK, - -2147483648 => IPP_TAG_CUPS_CONST, - _ => throw ArgumentError('Unknown value for ipp_tag_e: $value'), - }; -} - -typedef ipp_uchar_t = ffi.UnsignedChar; -typedef Dartipp_uchar_t = int; - -final class ipv6_mreq extends ffi.Struct { - external in6_addr ipv6mr_multiaddr; - - @ffi.UnsignedInt() - external int ipv6mr_interface; -} - -const int italic = 2; - -final class itimerval extends ffi.Struct { - external timeval it_interval; - - external timeval it_value; -} - -const int itlcDisableKeyScriptSync = 3; - -const int itlcDisableKeyScriptSyncMask = 8; - -const int itlcDualCaret = 6; - -const int itlcShowIcon = 7; - -const int itlcSysDirection = 15; - -const int iuCurrentCurLang = -4; - -const int iuCurrentDefLang = -5; - -@Deprecated('Deprecated') -const int iuCurrentScript = -2; - -@Deprecated('Deprecated') -const int iuNumberPartsTable = 2; - -const int iuScriptCurLang = -6; - -const int iuScriptDefLang = -7; - -const int iuSystemCurLang = -2; - -const int iuSystemDefLang = -3; - -@Deprecated('Deprecated') -const int iuSystemScript = -1; - -@Deprecated('Deprecated') -const int iuUnTokenTable = 3; - -@Deprecated('Deprecated') -const int iuWhiteSpaceList = 4; - -@Deprecated('Deprecated') -const int iuWordSelectTable = 0; - -@Deprecated('Deprecated') -const int iuWordWrapTable = 1; - -const int k16BE555PixelFormat = 16; - -const int k16BE565PixelFormat = 1110783541; - -const int k16BitCardErr = -9084; - -const int k16LE5551PixelFormat = 892679473; - -const int k16LE555PixelFormat = 1278555445; - -const int k16LE565PixelFormat = 1278555701; - -const int k1IndexedGrayPixelFormat = 33; - -const int k1MonochromePixelFormat = 1; - -const int k24BGRPixelFormat = 842285639; - -const int k24RGBPixelFormat = 24; - -const int k2IndexedGrayPixelFormat = 34; - -const int k2IndexedPixelFormat = 2; - -const int k2vuyPixelFormat = 846624121; - -const int k32ABGRPixelFormat = 1094862674; - -const int k32ARGBPixelFormat = 32; - -const int k32BGRAPixelFormat = 1111970369; - -@Deprecated('Deprecated') -const int k32BitHeap = 1; - -const int k32RGBAPixelFormat = 1380401729; - -const int k4IndexedGrayPixelFormat = 36; - -const int k4IndexedPixelFormat = 4; - -@Deprecated('Deprecated') -const int k68kInterruptLevelMask = 7; - -const int k8IndexedGrayPixelFormat = 40; - -const int k8IndexedPixelFormat = 8; - -const int kAEAND = 1095648288; - -const int kAEAbout = 1633841013; - -const int kAEActivate = 1633907830; - -const int kAEAfter = 1634104421; - -const int kAEAliasSelection = 1935764585; - -const int kAEAll = 1634495520; - -const int kAEAllCaps = 1634493296; - -const int kAEAlwaysInteract = 48; - -const int kAEAnswer = 1634628466; - -const int kAEAny = 1634629920; - -const int kAEApplicationActivationExpected = 1633775716; - -const int kAEApplicationClass = 1634758764; - -const int kAEApplicationDied = 1868720500; - -const int kAEArrowAtEnd = 1634887022; - -const int kAEArrowAtStart = 1634890612; - -const int kAEArrowBothEnds = 1634886255; - -const int kAEAsk = 1634954016; - -const int kAEAutoDown = 1635087471; - -const int kAEBefore = 1650812527; - -const int kAEBeginTransaction = 1650812777; - -const int kAEBeginning = 1650945639; - -const int kAEBeginsWith = 1650947956; - -const int kAEBold = 1651469412; - -const int kAECanInteract = 32; - -const int kAECanSwitchLayer = 64; - -const int kAECaseSensEquals = 1668506993; - -const int kAECentered = 1667591796; - -const int kAEChangeView = 1986618743; - -const int kAEClone = 1668050798; - -const int kAEClose = 1668050803; - -const int kAECommandClass = 1668116068; - -const int kAECondensed = 1668247140; - -const int kAEContains = 1668247156; - -const int kAECopy = 1668247673; - -const int kAECoreSuite = 1668248165; - -const int kAECountElements = 1668183141; - -const int kAECreateElement = 1668441452; - -const int kAECreatePublisher = 1668314466; - -const int kAECut = 1668641824; - -const int kAEDataArray = 0; - -const int kAEDeactivate = 1684104052; - -const int kAEDebugPOSTHeader = 1; - -const int kAEDebugReplyHeader = 2; - -const int kAEDebugXMLDebugAll = -1; - -const int kAEDebugXMLRequest = 4; - -const int kAEDebugXMLResponse = 8; - -const int kAEDefaultTimeout = -1; - -const int kAEDelete = 1684368495; - -const int kAEDescArray = 3; - -const int kAEDescListFactorNone = 0; - -const int kAEDescListFactorType = 4; - -const int kAEDescListFactorTypeAndSize = 8; - -const int kAEDirectCall = 1; - -const int kAEDiskEvent = 1684632427; - -const int kAEDoNotAutomaticallyAddAnnotationsToEvent = 65536; - -const int kAEDoNotPromptForUserConsent = 131072; - -const int kAEDoObjectsExist = 1685022072; - -const int kAEDoScript = 1685025635; - -const int kAEDontExecute = 8192; - -const int kAEDontReconnect = 128; - -const int kAEDontRecord = 4096; - -const int kAEDown = 1685026670; - -const int kAEDrag = 1685217639; - -const int kAEDuplicateSelection = 1935963504; - -const int kAEEditGraphic = 1701079412; - -const int kAEEmptyTrash = 1701671028; - -const int kAEEnd = 1701733408; - -const int kAEEndTransaction = 1701733492; - -const int kAEEndsWith = 1701733491; - -const int kAEEquals = 1025515552; - -const int kAEExpanded = 1885698160; - -const int kAEFast = 1717662580; - -const int kAEFetchURL = 1179996748; - -const int kAEFinderEvents = 1179534418; - -const int kAEFirst = 1718186611; - -const int kAEFormulaProtect = 1718645359; - -const int kAEFullyJustified = 1718971500; - -const int kAEGetClassInfo = 1903125098; - -const int kAEGetData = 1734702180; - -const int kAEGetDataSize = 1685285242; - -const int kAEGetEventInfo = 1735681385; - -const int kAEGetInfoSelection = 1936289382; - -const int kAEGetPrivilegeSelection = 1936749174; - -const int kAEGetSuiteInfo = 1735684969; - -const int kAEGetURL = 1196773964; - -const int kAEGreaterThan = 1042292768; - -const int kAEGreaterThanEquals = 1044193312; - -const int kAEGrow = 1735552887; - -const int kAEHTTPProxyHostAttr = 2020111464; - -const int kAEHTTPProxyPortAttr = 2020111472; - -const int kAEHandleArray = 2; - -const int kAEHandleSimpleRanges = 32; - -const int kAEHiQuality = 1751740789; - -const int kAEHidden = 1751737454; - -const int kAEHighLevel = 1751738216; - -const int kAEHighPriority = 1; - -const int kAEIDoMarking = 4; - -const int kAEIDoMinimum = 0; - -const int kAEIDoWhose = 1; - -const int kAEISAction = 1264673652; - -const int kAEISActionPath = 1264676980; - -const int kAEISClientAddress = 1633969266; - -const int kAEISClientIP = 1264806256; - -const int kAEISContentType = 1668577648; - -const int kAEISFromUser = 1718775157; - -const int kAEISFullRequest = 1265005169; - -const int kAEISGetURL = 1735750252; - -const int kAEISHTTPSearchArgs = 1801875314; - -const int kAEISMethod = 1835365480; - -const int kAEISPassword = 1885434739; - -const int kAEISPostArgs = 1886352244; - -const int kAEISReferrer = 1919247986; - -const int kAEISScriptName = 1935896173; - -const int kAEISServerName = 1937141357; - -const int kAEISServerPort = 1937141876; - -const int kAEISUserAgent = 1097297524; - -const int kAEISUserName = 1970496882; - -const int kAEISWebStarSuite = 1465341885; - -const int kAEImageGraphic = 1768777586; - -const int kAEInfo = 11; - -const int kAEInternetSuite = 1735750252; - -const int kAEIsUniform = 1769174382; - -const int kAEItalic = 1769234796; - -const int kAEKeyClass = 1801812323; - -const int kAEKeyDescArray = 4; - -const int kAEKeyDown = 1801746286; - -const int kAELast = 1818325876; - -const int kAELeftJustified = 1818584692; - -const int kAELessThan = 1008738336; - -const int kAELessThanEquals = 1010638880; - -const int kAELocalProcess = 3; - -const int kAELogOut = 1819240303; - -const int kAELowercase = 1819244387; - -const int kAEMain = 0; - -const int kAEMakeObjectsVisible = 1836476787; - -const int kAEMenuClass = 1835363957; - -const int kAEMenuSelect = 1835559284; - -const int kAEMiddle = 1835623524; - -const int kAEMiscStandards = 1835627363; - -const int kAEModifiable = 1836016742; - -const int kAEMouseClass = 1836021107; - -const int kAEMouseDown = 1835300718; - -const int kAEMouseDownInBack = 1835295339; - -const int kAEMove = 1836021349; - -const int kAEMoved = 1836021349; - -const int kAENOT = 1313821728; - -const int kAENavigationKey = 1851881061; - -const int kAENeverInteract = 16; - -const int kAENext = 1852143732; - -const int kAENo = 1852776480; - -const int kAENoArrow = 1634889327; - -const int kAENoReply = 1; - -const int kAENonmodifiable = 1852665700; - -const int kAENormalPriority = 0; - -const int kAENotifyRecording = 1919247218; - -const int kAENotifyStartRecording = 1919247153; - -const int kAENotifyStopRecording = 1919247152; - -const int kAENullEvent = 1853189228; - -const int kAEOR = 1330782240; - -const int kAEOSAXSizeResource = 1869834618; - -const int kAEOpen = 1868853091; - -const int kAEOpenApplication = 1868656752; - -const int kAEOpenContents = 1868787566; - -const int kAEOpenDocuments = 1868853091; - -const int kAEOpenSelection = 1936683109; - -const int kAEOutline = 1869968492; - -const int kAEPackedArray = 1; - -const int kAEPageSetup = 1885827957; - -const int kAEPassSubDescs = 8; - -const int kAEPaste = 1885434740; - -const int kAEPlain = 1886151022; - -const int kAEPrevious = 1886545270; - -const int kAEPrint = 1885630307; - -const int kAEPrintDocuments = 1885630307; - -const int kAEPrintSelection = 1936749161; - -const int kAEPrintWindow = 1886873966; - -const int kAEProcessNonReplyEvents = 32768; - -const int kAEPromise = 1886547821; - -const int kAEPutAwaySelection = 1936749940; - -const int kAEQDAdMax = 1633971576; - -const int kAEQDAdMin = 1633971566; - -const int kAEQDAddOver = 1633969263; - -const int kAEQDAddPin = 1633969264; - -const int kAEQDBic = 1651073824; - -const int kAEQDBlend = 1651273316; - -const int kAEQDCopy = 1668315424; - -const int kAEQDNotBic = 1851943267; - -const int kAEQDNotCopy = 1852010617; - -const int kAEQDNotOr = 1853124466; - -const int kAEQDNotXor = 1853386610; - -const int kAEQDOr = 1869750304; - -const int kAEQDSubOver = 1937072751; - -const int kAEQDSubPin = 1937072752; - -const int kAEQDSupplementalSuite = 1902408560; - -const int kAEQDXor = 2020569632; - -const int kAEQueueReply = 2; - -const int kAEQuickdrawSuite = 1902408311; - -const int kAEQuitAll = 1903520097; - -const int kAEQuitApplication = 1903520116; - -const int kAEQuitPreserveState = 1937006964; - -const int kAEQuitReason = 2003335487; - -const int kAERPCClass = 1919968032; - -const int kAERawKey = 1919640953; - -const int kAEReallyLogOut = 1919706991; - -const int kAERedo = 1919247471; - -const int kAERegular = 1919248236; - -const int kAERemoteProcess = 4; - -const int kAEReopenApplication = 1918988400; - -const int kAEReplace = 1919970403; - -const int kAERequiredSuite = 1919250788; - -const int kAEResized = 1920166266; - -const int kAEResolveNestedLists = 16; - -const int kAERestart = 1919251316; - -const int kAEResume = 1920167269; - -const int kAERevealSelection = 1936876918; - -const int kAERevert = 1920365172; - -const int kAERightJustified = 1919379572; - -const int kAESOAPScheme = 1397702992; - -const int kAESameProcess = 2; - -const int kAESave = 1935767141; - -const int kAEScrapEvent = 1935897200; - -const int kAEScriptingSizeResource = 1935897466; - -const int kAESelect = 1936483188; - -const int kAESetData = 1936028772; - -const int kAESetPosition = 1886352238; - -const int kAEShadow = 1936220516; - -const int kAESharedScriptHandler = 2004050800; - -const int kAESharing = 13; - -const int kAEShowClipboard = 1936221036; - -const int kAEShowPreferences = 1886545254; - -const int kAEShowRestartDialog = 1920103284; - -const int kAEShowShutdownDialog = 1920164974; - -const int kAEShutDown = 1936225652; - -const int kAESleep = 1936483696; - -const int kAESmallCaps = 1936548720; - -const int kAESocks4Protocol = 4; - -const int kAESocks5Protocol = 5; - -const int kAESocksHostAttr = 2020829299; - -const int kAESocksPasswordAttr = 2020829303; - -const int kAESocksPortAttr = 2020829296; - -const int kAESocksProxyAttr = 2020831083; - -const int kAESocksUserAttr = 2020829301; - -const int kAESpecialClassProperties = 1665147681; - -const int kAEStartRecording = 1919247201; - -const int kAEStopRecording = 1919247203; - -const int kAEStoppedMoving = 1937010544; - -const int kAEStrikethrough = 1937011307; - -const int kAESubscript = 1935831907; - -const int kAESuperscript = 1936749411; - -const int kAESuspend = 1937077104; - -const int kAETableSuite = 1952607347; - -const int kAETerminologyExtension = 1634038885; - -const int kAETextSuite = 1413830740; - -const int kAETransactionTerminated = 1953788525; - -const int kAEUTApostrophe = 3; - -const int kAEUTChangesState = 12; - -const int kAEUTDirectParamIsReference = 9; - -const int kAEUTEnumListIsExclusive = 10; - -const int kAEUTEnumerated = 13; - -const int kAEUTEnumsAreTypes = 11; - -const int kAEUTFeminine = 2; - -const int kAEUTHasReturningParam = 31; - -const int kAEUTMasculine = 1; - -const int kAEUTNotDirectParamIsTarget = 8; - -const int kAEUTOptional = 15; - -const int kAEUTParamIsReference = 9; - -const int kAEUTParamIsTarget = 8; - -const int kAEUTPlural = 0; - -const int kAEUTPropertyIsReference = 9; - -const int kAEUTReadWrite = 12; - -const int kAEUTReplyIsReference = 9; - -const int kAEUTTightBindingFunction = 12; - -const int kAEUTlistOfItems = 14; - -const int kAEUnderline = 1970168940; - -const int kAEUndo = 1970168943; - -const int kAEUnknownSource = 0; - -const int kAEUp = 1970282528; - -const int kAEUpdate = 1970300020; - -const int kAEUseHTTPProxyAttr = 2020962418; - -const int kAEUseRelativeIterators = 64; - -const int kAEUseSocksAttr = 2020828019; - -const int kAEUserTerminology = 1634039156; - -const int kAEVirtualKey = 1801812323; - -const int kAEWaitReply = 3; - -const int kAEWakeUpEvent = 2002873189; - -const int kAEWantReceipt = 512; - -const int kAEWholeWordEquals = 2004313457; - -const int kAEWindowClass = 2003398244; - -const int kAEXMLRPCScheme = 1380991794; - -const int kAEYes = 2036691744; - -const int kAEZoom = 2054123373; - -const int kAEZoomIn = 7; - -const int kAEZoomOut = 8; - -const int kAFPExtendedFlagsAlternateAddressMask = 1; - -const int kAFPServerIcon = 1634103411; - -const int kAFPTagLengthDDP = 6; - -const int kAFPTagLengthIP = 6; - -const int kAFPTagLengthIPPort = 8; - -const int kAFPTagTypeDDP = 3; - -const int kAFPTagTypeDNS = 4; - -const int kAFPTagTypeIP = 1; - -const int kAFPTagTypeIPPort = 2; - -const int kALMDeferSwitchErr = -30043; - -const int kALMDuplicateModuleErr = -30045; - -const int kALMGroupNotFoundErr = -30048; - -const int kALMInstallationErr = -30044; - -const int kALMInternalErr = -30049; - -const int kALMLocationNotFoundErr = -30048; - -@Deprecated('Deprecated') -const int kALMLocationsFolderType = 1717660780; - -const int kALMModuleCommunicationErr = -30046; - -@Deprecated('Deprecated') -const int kALMModulesFolderType = 2002873451; - -const int kALMNoSuchModuleErr = -30047; - -@Deprecated('Deprecated') -const int kALMPreferencesFolderType = 1953655152; - -const int kALMRebootFlagsLevelErr = -30042; - -const int kANKRCurrentVersion = 0; - -@Deprecated('Deprecated') -const int kARMMountVol = 1; - -@Deprecated('Deprecated') -const int kARMMultVols = 8; - -@Deprecated('Deprecated') -const int kARMNoUI = 2; - -@Deprecated('Deprecated') -const int kARMSearch = 256; - -@Deprecated('Deprecated') -const int kARMSearchMore = 512; - -@Deprecated('Deprecated') -const int kARMSearchRelFirst = 1024; - -@Deprecated('Deprecated') -const int kARMTryFileIDFirst = 2048; - -const int kATSBoldQDStretch = 98304; - -const int kATSCubicCurveType = 1; - -const int kATSDeletedGlyphcode = 65535; - -const int kATSFlatDataUstlCurrentVersion = 2; - -const int kATSFlatDataUstlVersion0 = 0; - -const int kATSFlatDataUstlVersion1 = 1; - -const int kATSFlatDataUstlVersion2 = 2; - -const int kATSFlattenedFontSpecifierRawNameData = 1851878756; - -const int kATSFontAutoActivationAsk = 4; - -const int kATSFontAutoActivationDefault = 0; - -const int kATSFontAutoActivationDisabled = 1; - -const int kATSFontAutoActivationEnabled = 2; - -const int kATSFontContainerRefUnspecified = 0; - -const int kATSFontContextGlobal = 1; - -const int kATSFontContextLocal = 2; - -const int kATSFontContextUnspecified = 0; - -const int kATSFontFamilyRefUnspecified = 0; - -const int kATSFontFilterCurrentVersion = 0; - -const int kATSFontFormatUnspecified = 0; - -const int kATSFontRefUnspecified = 0; - -const int kATSGenerationUnspecified = 0; - -const int kATSGlyphInfoAppleReserved = 536608744; - -const int kATSGlyphInfoByteSizeMask = 7; - -const int kATSGlyphInfoHasImposedWidth = 16; - -const int kATSGlyphInfoIsAttachment = -2147483648; - -const int kATSGlyphInfoIsLTHanger = 1073741824; - -const int kATSGlyphInfoIsRBHanger = 536870912; - -const int kATSGlyphInfoIsWhiteSpace = 262144; - -const int kATSGlyphInfoTerminatorGlyph = 524288; - -const int kATSInvalidFontAccess = -982; - -const int kATSInvalidFontContainerAccess = -985; - -const int kATSInvalidFontFamilyAccess = -981; - -const int kATSInvalidFontTableAccess = -984; - -const int kATSInvalidGlyphAccess = -986; - -const int kATSItalicQDSkew = 16384; - -const int kATSIterationCompleted = -980; - -const int kATSIterationScopeModified = -983; - -const int kATSLineAppleReserved = -52428800; - -const int kATSLineApplyAntiAliasing = 2048; - -const int kATSLineBreakToNearestCharacter = 33554432; - -const int kATSLineDisableAllBaselineAdjustments = 524288; - -const int kATSLineDisableAllGlyphMorphing = 131072; - -const int kATSLineDisableAllJustification = 65536; - -const int kATSLineDisableAllKerningAdjustments = 262144; - -const int kATSLineDisableAllLayoutOperations = 2031616; - -const int kATSLineDisableAllTrackingAdjustments = 1048576; - -const int kATSLineDisableAutoAdjustDisplayPos = 16384; - -const int kATSLineDisableNegativeJustification = 8192; - -const int kATSLineFillOutToWidth = 256; - -const int kATSLineFractDisable = 64; - -const int kATSLineHasNoHangers = 2; - -const int kATSLineHasNoOpticalAlignment = 4; - -const int kATSLineIgnoreFontLeading = 1024; - -const int kATSLineImposeNoAngleForEnds = 128; - -const int kATSLineIsDisplayOnly = 1; - -const int kATSLineKeepSpacesOutOfMargin = 8; - -const int kATSLineLastNoJustification = 32; - -const int kATSLineNoAntiAliasing = 4096; - -const int kATSLineNoLayoutOptions = 0; - -const int kATSLineNoSpecialJustification = 16; - -const int kATSLineTabAdjustEnabled = 512; - -const int kATSLineUseDeviceMetrics = 16777216; - -const int kATSLineUseQDRendering = 32768; - -const int kATSNoTracking = -2147483648; - -const int kATSOptionFlagsActivateDisabled = 32; - -const int kATSOptionFlagsComposeFontPostScriptName = 1; - -const int kATSOptionFlagsDefault = 0; - -const int kATSOptionFlagsDefaultScope = 0; - -const int kATSOptionFlagsDoNotNotify = 128; - -const int kATSOptionFlagsIncludeDisabledMask = 128; - -const int kATSOptionFlagsIterateByPrecedenceMask = 32; - -const int kATSOptionFlagsIterationScopeMask = 28672; - -const int kATSOptionFlagsProcessSubdirectories = 64; - -const int kATSOptionFlagsRecordPersistently = 262144; - -const int kATSOptionFlagsRestrictedScope = 8192; - -const int kATSOptionFlagsUnRestrictedScope = 4096; - -const int kATSOptionFlagsUseDataFork = 768; - -const int kATSOptionFlagsUseDataForkAsResourceFork = 256; - -const int kATSOptionFlagsUseResourceFork = 512; - -const int kATSOtherCurveType = 3; - -const int kATSQuadCurveType = 2; - -const int kATSRadiansFactor = 1144; - -const int kATSStyleAppleReserved = -8; - -const int kATSStyleApplyAntiAliasing = 2; - -const int kATSStyleApplyHints = 0; - -const int kATSStyleNoAntiAliasing = 4; - -const int kATSStyleNoHinting = 1; - -const int kATSStyleNoOptions = 0; - -const int kATSUAfterWithStreamShiftTag = 268; - -const int kATSUAscentTag = 284; - -const int kATSUBackgroundCallback = 1; - -const int kATSUBackgroundColor = 0; - -const int kATSUBadStreamErr = -8902; - -const int kATSUBaselineClassTag = 274; - -const int kATSUBeforeWithStreamShiftTag = 267; - -const int kATSUBusyObjectErr = -8809; - -const int kATSUByCharacter = 0; - -const int kATSUByCharacterCluster = 3; - -const int kATSUByCluster = 1; - -const int kATSUByTypographicCluster = 1; - -const int kATSUByWord = 2; - -const int kATSUCGContextTag = 32767; - -const int kATSUCenterTab = 1; - -const int kATSUClearAll = -1; - -const int kATSUColorTag = 263; - -const int kATSUCoordinateOverflowErr = -8807; - -const int kATSUCrossStreamShiftTag = 269; - -const int kATSUDataStreamUnicodeStyledText = 1970500716; - -const int kATSUDecimalTab = 3; - -const int kATSUDecompositionFactorTag = 273; - -const int kATSUDefaultFontFallbacks = 0; - -const int kATSUDescentTag = 285; - -const int kATSUDirectDataAdvanceDeltaFixedArray = 0; - -const int kATSUDirectDataBaselineDeltaFixedArray = 1; - -const int kATSUDirectDataDeviceDeltaSInt16Array = 2; - -const int kATSUDirectDataLayoutRecordATSLayoutRecordCurrent = 100; - -const int kATSUDirectDataLayoutRecordATSLayoutRecordVersion1 = 100; - -const int kATSUDirectDataStyleIndexUInt16Array = 3; - -const int kATSUDirectDataStyleSettingATSUStyleSettingRefArray = 4; - -const int kATSUFlattenOptionNoOptionsMask = 0; - -const int kATSUFontMatrixTag = 289; - -const int kATSUFontTag = 261; - -const int kATSUFontsMatched = -8793; - -const int kATSUFontsNotMatched = -8794; - -const int kATSUForceHangingTag = 280; - -const int kATSUFromFollowingLayout = -3; - -const int kATSUFromPreviousLayout = -2; - -const int kATSUFromTextBeginning = -1; - -const int kATSUGlyphSelectorTag = 287; - -const int kATSUHangingInhibitFactorTag = 271; - -const int kATSUImposeWidthTag = 266; - -const int kATSUInvalidAttributeSizeErr = -8798; - -const int kATSUInvalidAttributeTagErr = -8799; - -const int kATSUInvalidAttributeValueErr = -8797; - -const int kATSUInvalidCacheErr = -8800; - -const int kATSUInvalidCallInsideCallbackErr = -8904; - -const int kATSUInvalidFontErr = -8796; - -const int kATSUInvalidFontFallbacksErr = -8900; - -const int kATSUInvalidFontID = 0; - -const int kATSUInvalidStyleErr = -8791; - -const int kATSUInvalidTextLayoutErr = -8790; - -const int kATSUInvalidTextRangeErr = -8792; - -const int kATSUKerningInhibitFactorTag = 272; - -const int kATSULangRegionTag = 264; - -const int kATSULanguageTag = 264; - -const int kATSULastErr = -8959; - -const int kATSULastResortOnlyFallback = 1; - -const int kATSULayoutOperationAppleReserved = -64; - -const int kATSULayoutOperationBaselineAdjustment = 8; - -const int kATSULayoutOperationCallbackStatusContinue = 1; - -const int kATSULayoutOperationCallbackStatusHandled = 0; - -const int kATSULayoutOperationJustification = 1; - -const int kATSULayoutOperationKerningAdjustment = 4; - -const int kATSULayoutOperationMorph = 2; - -const int kATSULayoutOperationNone = 0; - -const int kATSULayoutOperationOverrideTag = 15; - -const int kATSULayoutOperationPostLayoutAdjustment = 32; - -const int kATSULayoutOperationTrackingAdjustment = 16; - -const int kATSULeadingTag = 286; - -const int kATSULeftTab = 0; - -const int kATSULeftToRightBaseDirection = 0; - -const int kATSULineAscentTag = 8; - -const int kATSULineBaselineValuesTag = 6; - -const int kATSULineBreakInWord = -8808; - -const int kATSULineDecimalTabCharacterTag = 14; - -const int kATSULineDescentTag = 9; - -const int kATSULineDirectionTag = 3; - -const int kATSULineFlushFactorTag = 5; - -const int kATSULineFontFallbacksTag = 13; - -const int kATSULineHighlightCGColorTag = 17; - -const int kATSULineJustificationFactorTag = 4; - -const int kATSULineLangRegionTag = 10; - -const int kATSULineLanguageTag = 10; - -const int kATSULineLayoutOptionsTag = 7; - -const int kATSULineRotationTag = 2; - -const int kATSULineTextLocatorTag = 11; - -const int kATSULineTruncationTag = 12; - -const int kATSULineWidthTag = 1; - -const int kATSULowLevelErr = -8804; - -const int kATSUMaxATSUITagValue = 65535; - -const int kATSUMaxLineTag = 18; - -const int kATSUMaxStyleTag = 299; - -const int kATSUNoCaretAngleTag = 277; - -const int kATSUNoCorrespondingFontErr = -8795; - -const int kATSUNoFontCmapAvailableErr = -8805; - -const int kATSUNoFontNameErr = -8905; - -const int kATSUNoFontScalerAvailableErr = -8806; - -const int kATSUNoLigatureSplitTag = 276; - -const int kATSUNoOpticalAlignmentTag = 279; - -const int kATSUNoSelector = 65535; - -const int kATSUNoSpecialJustificationTag = 281; - -const int kATSUNoStyleRunsAssignedErr = -8802; - -const int kATSUNotSetErr = -8801; - -const int kATSUNumberTabTypes = 4; - -const int kATSUOutputBufferTooSmallErr = -8903; - -const int kATSUPriorityJustOverrideTag = 275; - -const int kATSUQDBoldfaceTag = 256; - -const int kATSUQDCondensedTag = 259; - -const int kATSUQDExtendedTag = 260; - -const int kATSUQDItalicTag = 257; - -const int kATSUQDUnderlineTag = 258; - -const int kATSUQuickDrawTextErr = -8803; - -const int kATSURGBAlphaColorTag = 288; - -const int kATSURightTab = 2; - -const int kATSURightToLeftBaseDirection = 1; - -const int kATSUSequentialFallbacksExclusive = 3; - -const int kATSUSequentialFallbacksPreferred = 2; - -const int kATSUSizeTag = 262; - -const int kATSUStronglyHorizontal = 0; - -const int kATSUStronglyVertical = 1; - -const int kATSUStyleContainedBy = 3; - -const int kATSUStyleContains = 1; - -const int kATSUStyleDoubleLineCount = 2; - -const int kATSUStyleDropShadowBlurOptionTag = 296; - -const int kATSUStyleDropShadowColorOptionTag = 298; - -const int kATSUStyleDropShadowOffsetOptionTag = 297; - -const int kATSUStyleDropShadowTag = 295; - -const int kATSUStyleEquals = 2; - -const int kATSUStyleRenderingOptionsTag = 283; - -const int kATSUStyleSingleLineCount = 1; - -const int kATSUStyleStrikeThroughColorOptionTag = 294; - -const int kATSUStyleStrikeThroughCountOptionTag = 293; - -const int kATSUStyleStrikeThroughTag = 292; - -const int kATSUStyleTextLocatorTag = 282; - -const int kATSUStyleUnderlineColorOptionTag = 291; - -const int kATSUStyleUnderlineCountOptionTag = 290; - -const int kATSUStyleUnequal = 0; - -const int kATSUSuppressCrossKerningTag = 278; - -const int kATSUToTextEnd = -1; - -const int kATSUTrackingTag = 270; - -const int kATSUTruncFeatNoSquishing = 8; - -const int kATSUTruncateEnd = 2; - -const int kATSUTruncateMiddle = 3; - -const int kATSUTruncateNone = 0; - -const int kATSUTruncateSpecificationMask = 7; - -const int kATSUTruncateStart = 1; - -const int kATSUUnFlattenOptionNoOptionsMask = 0; - -const int kATSUUnsupportedStreamFormatErr = -8901; - -const int kATSUUseGrafPortPenLoc = -1; - -const int kATSUUseLineControlWidth = 2147483647; - -const int kATSUVerticalCharacterTag = 265; - -const int kATSUseCaretOrigins = 0; - -const int kATSUseDeviceOrigins = 1; - -const int kATSUseFractionalOrigins = 2; - -const int kATSUseGlyphAdvance = 2147483647; - -const int kATSUseLineHeight = 2147483647; - -const int kATSUseOriginFlags = 3; - -const int kAXValueAXErrorType = 5; - -const int kAXValueCFRangeType = 4; - -const int kAXValueCGPointType = 1; - -const int kAXValueCGRectType = 3; - -const int kAXValueCGSizeType = 2; - -const int kAXValueIllegalType = 0; - -const int kAbbrevSquaredLigaturesOffSelector = 15; - -const int kAbbrevSquaredLigaturesOnSelector = 14; - -@Deprecated('Deprecated') -const int kAccessException = 3; - -const int kAccountKCItemAttr = 1633903476; - -const int kAddKCEvent = 3; - -const int kAddKCEventMask = 8; - -const int kAddressKCItemAttr = 1633969266; - -const int kAlertCautionBadgeIcon = 1667392615; - -const int kAlertCautionIcon = 1667331444; - -const int kAlertNoteIcon = 1852798053; - -const int kAlertStopIcon = 1937010544; - -const int kAliasBadgeIcon = 1633838183; - -const int kAlignAbsoluteCenter = 5; - -const int kAlignBottom = 3; - -const int kAlignBottomLeft = 11; - -const int kAlignBottomRight = 15; - -const int kAlignCenterBottom = 7; - -const int kAlignCenterLeft = 9; - -const int kAlignCenterRight = 13; - -const int kAlignCenterTop = 6; - -const int kAlignHorizontalCenter = 4; - -const int kAlignLeft = 8; - -const int kAlignNone = 0; - -const int kAlignRight = 12; - -const int kAlignTop = 2; - -const int kAlignTopLeft = 10; - -const int kAlignTopRight = 14; - -const int kAlignVerticalCenter = 1; - -const int kAllCapsSelector = 1; - -const int kAllLowerCaseSelector = 2; - -const int kAllPPDDomains = 1; - -const int kAllTypeFeaturesOffSelector = 1; - -const int kAllTypeFeaturesOnSelector = 0; - -const int kAllTypographicFeaturesType = 0; - -const int kAlreadySavedStateErr = -9105; - -const int kAltHalfWidthTextSelector = 6; - -const int kAltProportionalTextSelector = 5; - -const int kAlternateHorizKanaOffSelector = 1; - -const int kAlternateHorizKanaOnSelector = 0; - -const int kAlternateKanaType = 34; - -const int kAlternateVertKanaOffSelector = 3; - -const int kAlternateVertKanaOnSelector = 2; - -const int kAlwaysSendSubject = 8192; - -const int kAndConnections = 268435453; - -const int kAnnotationType = 24; - -const int kAnyAuthType = 0; - -@Deprecated('Deprecated') -const int kAnyComponentFlagsMask = 0; - -@Deprecated('Deprecated') -const int kAnyComponentManufacturer = 0; - -@Deprecated('Deprecated') -const int kAnyComponentSubType = 0; - -@Deprecated('Deprecated') -const int kAnyComponentType = 0; - -const int kAnyPort = 0; - -const int kAnyProtocol = 0; - -const int kAnyTransactionID = 0; - -const int kAppPackageAliasType = 1717661793; - -const int kAppearanceFolderIcon = 1634758770; - -@Deprecated('Deprecated') -const int kAppearanceFolderType = 1634758770; - -const int kAppleExtrasFolderIcon = 1634040004; - -@Deprecated('Deprecated') -const int kAppleExtrasFolderType = 1634040004; - -const int kAppleLogoIcon = 1667330156; - -const int kAppleLosslessFormatFlag_16BitSourceData = 1; - -const int kAppleLosslessFormatFlag_20BitSourceData = 2; - -const int kAppleLosslessFormatFlag_24BitSourceData = 3; - -const int kAppleLosslessFormatFlag_32BitSourceData = 4; - -@Deprecated('Deprecated') -const int kAppleManufacturer = 1634758764; - -const int kAppleMenuFolderAliasType = 1717657965; - -const int kAppleMenuFolderIcon = 1634561653; - -const int kAppleMenuFolderIconResource = -3982; - -@Deprecated('Deprecated') -const int kAppleMenuFolderType = 1634561653; - -const int kAppleMenuIcon = 1935765612; - -const int kAppleScriptBadgeIcon = 1935897200; - -@Deprecated('Deprecated') -const int kAppleShareAuthenticationFolderType = 1635087464; - -const int kAppleSharePasswordKCItemClass = 1634953328; - -@Deprecated('Deprecated') -const int kAppleShareSupportFolderType = 1936220530; - -const int kAppleTalkIcon = 1635019883; - -const int kAppleTalkZoneIcon = 1635023470; - -@Deprecated('Deprecated') -const int kAppleshareAutomountServerAliasesFolderType = 1936881348; - -const int kApplicationAliasType = 1633972848; - -const int kApplicationCPAliasType = 1633903728; - -const int kApplicationDAAliasType = 1633969264; - -const int kApplicationSupportFolderIcon = 1634956656; - -@Deprecated('Deprecated') -const int kApplicationSupportFolderType = 1634956656; - -@Deprecated('Deprecated') -const int kApplicationThreadID = 2; - -const int kApplicationsFolderIcon = 1634758771; - -@Deprecated('Deprecated') -const int kApplicationsFolderType = 1634758771; - -const int kAssistantsFolderIcon = 1634956484; - -@Deprecated('Deprecated') -const int kAssistantsFolderType = 1634956484; - -const int kAsteriskToMultiplyOffSelector = 3; - -const int kAsteriskToMultiplyOnSelector = 2; - -const int kAsyncEjectComplete = 6; - -const int kAsyncEjectInProgress = 5; - -const int kAsyncMountComplete = 2; - -const int kAsyncMountInProgress = 1; - -const int kAsyncUnmountComplete = 4; - -const int kAsyncUnmountInProgress = 3; - -const int kAttemptDupCardEntryErr = -9106; - -@Deprecated('Deprecated') -const int kAudioAlertSoundsFolderType = 1634497140; - -const int kAudioChannelLabel_Ambisonic_W = 200; - -const int kAudioChannelLabel_Ambisonic_X = 201; - -const int kAudioChannelLabel_Ambisonic_Y = 202; - -const int kAudioChannelLabel_Ambisonic_Z = 203; - -const int kAudioChannelLabel_BeginReserved = -268435456; - -const int kAudioChannelLabel_BinauralLeft = 208; - -const int kAudioChannelLabel_BinauralRight = 209; - -const int kAudioChannelLabel_Center = 3; - -const int kAudioChannelLabel_CenterBottom = 59; - -const int kAudioChannelLabel_CenterSurround = 9; - -const int kAudioChannelLabel_CenterSurroundDirect = 44; - -const int kAudioChannelLabel_CenterTopFront = 14; - -const int kAudioChannelLabel_CenterTopMiddle = 12; - -const int kAudioChannelLabel_CenterTopRear = 53; - -const int kAudioChannelLabel_ClickTrack = 304; - -const int kAudioChannelLabel_DialogCentricMix = 43; - -const int kAudioChannelLabel_Discrete = 400; - -const int kAudioChannelLabel_Discrete_0 = 65536; - -const int kAudioChannelLabel_Discrete_1 = 65537; - -const int kAudioChannelLabel_Discrete_10 = 65546; - -const int kAudioChannelLabel_Discrete_11 = 65547; - -const int kAudioChannelLabel_Discrete_12 = 65548; - -const int kAudioChannelLabel_Discrete_13 = 65549; - -const int kAudioChannelLabel_Discrete_14 = 65550; - -const int kAudioChannelLabel_Discrete_15 = 65551; - -const int kAudioChannelLabel_Discrete_2 = 65538; - -const int kAudioChannelLabel_Discrete_3 = 65539; - -const int kAudioChannelLabel_Discrete_4 = 65540; - -const int kAudioChannelLabel_Discrete_5 = 65541; - -const int kAudioChannelLabel_Discrete_6 = 65542; - -const int kAudioChannelLabel_Discrete_65535 = 131071; - -const int kAudioChannelLabel_Discrete_7 = 65543; - -const int kAudioChannelLabel_Discrete_8 = 65544; - -const int kAudioChannelLabel_Discrete_9 = 65545; - -const int kAudioChannelLabel_EndReserved = -2; - -const int kAudioChannelLabel_ForeignLanguage = 305; - -const int kAudioChannelLabel_HOA_ACN = 500; - -const int kAudioChannelLabel_HOA_ACN_0 = 131072; - -const int kAudioChannelLabel_HOA_ACN_1 = 131073; - -const int kAudioChannelLabel_HOA_ACN_10 = 131082; - -const int kAudioChannelLabel_HOA_ACN_11 = 131083; - -const int kAudioChannelLabel_HOA_ACN_12 = 131084; - -const int kAudioChannelLabel_HOA_ACN_13 = 131085; - -const int kAudioChannelLabel_HOA_ACN_14 = 131086; - -const int kAudioChannelLabel_HOA_ACN_15 = 131087; - -const int kAudioChannelLabel_HOA_ACN_2 = 131074; - -const int kAudioChannelLabel_HOA_ACN_3 = 131075; - -const int kAudioChannelLabel_HOA_ACN_4 = 131076; - -const int kAudioChannelLabel_HOA_ACN_5 = 131077; - -const int kAudioChannelLabel_HOA_ACN_6 = 131078; - -const int kAudioChannelLabel_HOA_ACN_65024 = 196096; - -const int kAudioChannelLabel_HOA_ACN_7 = 131079; - -const int kAudioChannelLabel_HOA_ACN_8 = 131080; - -const int kAudioChannelLabel_HOA_ACN_9 = 131081; - -const int kAudioChannelLabel_HOA_N3D = 196608; - -const int kAudioChannelLabel_HOA_SN3D = 131072; - -const int kAudioChannelLabel_Haptic = 45; - -const int kAudioChannelLabel_HeadphonesLeft = 301; - -const int kAudioChannelLabel_HeadphonesRight = 302; - -const int kAudioChannelLabel_HearingImpaired = 40; - -const int kAudioChannelLabel_LFE2 = 37; - -const int kAudioChannelLabel_LFE3 = 62; - -const int kAudioChannelLabel_LFEScreen = 4; - -const int kAudioChannelLabel_Left = 1; - -const int kAudioChannelLabel_LeftBackSurround = 63; - -const int kAudioChannelLabel_LeftBottom = 57; - -const int kAudioChannelLabel_LeftCenter = 7; - -const int kAudioChannelLabel_LeftEdgeOfScreen = 65; - -const int kAudioChannelLabel_LeftSideSurround = 55; - -const int kAudioChannelLabel_LeftSurround = 5; - -const int kAudioChannelLabel_LeftSurroundDirect = 10; - -const int kAudioChannelLabel_LeftTopFront = 13; - -const int kAudioChannelLabel_LeftTopMiddle = 49; - -const int kAudioChannelLabel_LeftTopRear = 52; - -const int kAudioChannelLabel_LeftTopSurround = 60; - -const int kAudioChannelLabel_LeftTotal = 38; - -const int kAudioChannelLabel_LeftWide = 35; - -const int kAudioChannelLabel_MS_Mid = 204; - -const int kAudioChannelLabel_MS_Side = 205; - -const int kAudioChannelLabel_Mono = 42; - -const int kAudioChannelLabel_Narration = 41; - -const int kAudioChannelLabel_Object = 262144; - -const int kAudioChannelLabel_RearSurroundLeft = 33; - -const int kAudioChannelLabel_RearSurroundRight = 34; - -const int kAudioChannelLabel_Right = 2; - -const int kAudioChannelLabel_RightBackSurround = 64; - -const int kAudioChannelLabel_RightBottom = 58; - -const int kAudioChannelLabel_RightCenter = 8; - -const int kAudioChannelLabel_RightEdgeOfScreen = 66; - -const int kAudioChannelLabel_RightSideSurround = 56; - -const int kAudioChannelLabel_RightSurround = 6; - -const int kAudioChannelLabel_RightSurroundDirect = 11; - -const int kAudioChannelLabel_RightTopFront = 15; - -const int kAudioChannelLabel_RightTopMiddle = 51; - -const int kAudioChannelLabel_RightTopRear = 54; - -const int kAudioChannelLabel_RightTopSurround = 61; - -const int kAudioChannelLabel_RightTotal = 39; - -const int kAudioChannelLabel_RightWide = 36; - -const int kAudioChannelLabel_TopBackCenter = 17; - -const int kAudioChannelLabel_TopBackLeft = 16; - -const int kAudioChannelLabel_TopBackRight = 18; - -const int kAudioChannelLabel_TopCenterSurround = 12; - -const int kAudioChannelLabel_Unknown = -1; - -const int kAudioChannelLabel_Unused = 0; - -const int kAudioChannelLabel_UseCoordinates = 100; - -const int kAudioChannelLabel_VerticalHeightCenter = 14; - -const int kAudioChannelLabel_VerticalHeightLeft = 13; - -const int kAudioChannelLabel_VerticalHeightRight = 15; - -const int kAudioChannelLabel_XY_X = 206; - -const int kAudioChannelLabel_XY_Y = 207; - -const int kAudioChannelLayoutTag_AAC_3_0 = 7471107; - -const int kAudioChannelLayoutTag_AAC_4_0 = 7602180; - -const int kAudioChannelLayoutTag_AAC_5_0 = 7864325; - -const int kAudioChannelLayoutTag_AAC_5_1 = 8126470; - -const int kAudioChannelLayoutTag_AAC_6_0 = 9240582; - -const int kAudioChannelLayoutTag_AAC_6_1 = 9306119; - -const int kAudioChannelLayoutTag_AAC_7_0 = 9371655; - -const int kAudioChannelLayoutTag_AAC_7_1 = 8323080; - -const int kAudioChannelLayoutTag_AAC_7_1_B = 11993096; - -const int kAudioChannelLayoutTag_AAC_7_1_C = 12058632; - -const int kAudioChannelLayoutTag_AAC_Octagonal = 9437192; - -const int kAudioChannelLayoutTag_AAC_Quadraphonic = 7077892; - -const int kAudioChannelLayoutTag_AC3_1_0_1 = 9764866; - -const int kAudioChannelLayoutTag_AC3_2_1_1 = 10027012; - -const int kAudioChannelLayoutTag_AC3_3_0 = 9830403; - -const int kAudioChannelLayoutTag_AC3_3_0_1 = 9961476; - -const int kAudioChannelLayoutTag_AC3_3_1 = 9895940; - -const int kAudioChannelLayoutTag_AC3_3_1_1 = 10092549; - -const int kAudioChannelLayoutTag_Ambisonic_B_Format = 7012356; - -const int kAudioChannelLayoutTag_Atmos_5_1_2 = 12713992; - -const int kAudioChannelLayoutTag_Atmos_5_1_4 = 12779530; - -const int kAudioChannelLayoutTag_Atmos_7_1_2 = 12845066; - -const int kAudioChannelLayoutTag_Atmos_7_1_4 = 12582924; - -const int kAudioChannelLayoutTag_Atmos_9_1_6 = 12648464; - -const int kAudioChannelLayoutTag_AudioUnit_4 = 7077892; - -const int kAudioChannelLayoutTag_AudioUnit_5 = 7143429; - -const int kAudioChannelLayoutTag_AudioUnit_5_0 = 7733253; - -const int kAudioChannelLayoutTag_AudioUnit_5_1 = 7929862; - -const int kAudioChannelLayoutTag_AudioUnit_6 = 7208966; - -const int kAudioChannelLayoutTag_AudioUnit_6_0 = 9109510; - -const int kAudioChannelLayoutTag_AudioUnit_6_1 = 8192007; - -const int kAudioChannelLayoutTag_AudioUnit_7_0 = 9175047; - -const int kAudioChannelLayoutTag_AudioUnit_7_0_Front = 9699335; - -const int kAudioChannelLayoutTag_AudioUnit_7_1 = 8388616; - -const int kAudioChannelLayoutTag_AudioUnit_7_1_Front = 8257544; - -const int kAudioChannelLayoutTag_AudioUnit_8 = 7274504; - -const int kAudioChannelLayoutTag_BeginReserved = -268435456; - -const int kAudioChannelLayoutTag_Binaural = 6946818; - -const int kAudioChannelLayoutTag_CICP_1 = 6553601; - -const int kAudioChannelLayoutTag_CICP_10 = 8650756; - -const int kAudioChannelLayoutTag_CICP_11 = 8192007; - -const int kAudioChannelLayoutTag_CICP_12 = 8388616; - -const int kAudioChannelLayoutTag_CICP_13 = 13369368; - -const int kAudioChannelLayoutTag_CICP_14 = 13434888; - -const int kAudioChannelLayoutTag_CICP_15 = 13500428; - -const int kAudioChannelLayoutTag_CICP_16 = 13565962; - -const int kAudioChannelLayoutTag_CICP_17 = 13631500; - -const int kAudioChannelLayoutTag_CICP_18 = 13697038; - -const int kAudioChannelLayoutTag_CICP_19 = 13762572; - -const int kAudioChannelLayoutTag_CICP_2 = 6619138; - -const int kAudioChannelLayoutTag_CICP_20 = 13828110; - -const int kAudioChannelLayoutTag_CICP_3 = 7405571; - -const int kAudioChannelLayoutTag_CICP_4 = 7536644; - -const int kAudioChannelLayoutTag_CICP_5 = 7667717; - -const int kAudioChannelLayoutTag_CICP_6 = 7929862; - -const int kAudioChannelLayoutTag_CICP_7 = 8323080; - -const int kAudioChannelLayoutTag_CICP_9 = 8585219; - -const int kAudioChannelLayoutTag_Cube = 7340040; - -const int kAudioChannelLayoutTag_DTS_3_1 = 11010052; - -const int kAudioChannelLayoutTag_DTS_4_1 = 11075589; - -const int kAudioChannelLayoutTag_DTS_6_0_A = 11141126; - -const int kAudioChannelLayoutTag_DTS_6_0_B = 11206662; - -const int kAudioChannelLayoutTag_DTS_6_0_C = 11272198; - -const int kAudioChannelLayoutTag_DTS_6_1_A = 11337735; - -const int kAudioChannelLayoutTag_DTS_6_1_B = 11403271; - -const int kAudioChannelLayoutTag_DTS_6_1_C = 11468807; - -const int kAudioChannelLayoutTag_DTS_6_1_D = 11927559; - -const int kAudioChannelLayoutTag_DTS_7_0 = 11534343; - -const int kAudioChannelLayoutTag_DTS_7_1 = 11599880; - -const int kAudioChannelLayoutTag_DTS_8_0_A = 11665416; - -const int kAudioChannelLayoutTag_DTS_8_0_B = 11730952; - -const int kAudioChannelLayoutTag_DTS_8_1_A = 11796489; - -const int kAudioChannelLayoutTag_DTS_8_1_B = 11862025; - -const int kAudioChannelLayoutTag_DVD_0 = 6553601; - -const int kAudioChannelLayoutTag_DVD_1 = 6619138; - -const int kAudioChannelLayoutTag_DVD_10 = 8912900; - -const int kAudioChannelLayoutTag_DVD_11 = 8978437; - -const int kAudioChannelLayoutTag_DVD_12 = 7929862; - -const int kAudioChannelLayoutTag_DVD_13 = 7536644; - -const int kAudioChannelLayoutTag_DVD_14 = 7667717; - -const int kAudioChannelLayoutTag_DVD_15 = 8912900; - -const int kAudioChannelLayoutTag_DVD_16 = 8978437; - -const int kAudioChannelLayoutTag_DVD_17 = 7929862; - -const int kAudioChannelLayoutTag_DVD_18 = 9043973; - -const int kAudioChannelLayoutTag_DVD_19 = 7733253; - -const int kAudioChannelLayoutTag_DVD_2 = 8585219; - -const int kAudioChannelLayoutTag_DVD_20 = 7995398; - -const int kAudioChannelLayoutTag_DVD_3 = 8650756; - -const int kAudioChannelLayoutTag_DVD_4 = 8716291; - -const int kAudioChannelLayoutTag_DVD_5 = 8781828; - -const int kAudioChannelLayoutTag_DVD_6 = 8847365; - -const int kAudioChannelLayoutTag_DVD_7 = 7405571; - -const int kAudioChannelLayoutTag_DVD_8 = 7536644; - -const int kAudioChannelLayoutTag_DVD_9 = 7667717; - -const int kAudioChannelLayoutTag_DiscreteInOrder = 9633792; - -const int kAudioChannelLayoutTag_EAC3_6_1_A = 10289159; - -const int kAudioChannelLayoutTag_EAC3_6_1_B = 10354695; - -const int kAudioChannelLayoutTag_EAC3_6_1_C = 10420231; - -const int kAudioChannelLayoutTag_EAC3_7_1_A = 10485768; - -const int kAudioChannelLayoutTag_EAC3_7_1_B = 10551304; - -const int kAudioChannelLayoutTag_EAC3_7_1_C = 10616840; - -const int kAudioChannelLayoutTag_EAC3_7_1_D = 10682376; - -const int kAudioChannelLayoutTag_EAC3_7_1_E = 10747912; - -const int kAudioChannelLayoutTag_EAC3_7_1_F = 10813448; - -const int kAudioChannelLayoutTag_EAC3_7_1_G = 10878984; - -const int kAudioChannelLayoutTag_EAC3_7_1_H = 10944520; - -const int kAudioChannelLayoutTag_EAC_6_0_A = 10158086; - -const int kAudioChannelLayoutTag_EAC_7_0_A = 10223623; - -const int kAudioChannelLayoutTag_Emagic_Default_7_1 = 8454152; - -const int kAudioChannelLayoutTag_EndReserved = -65537; - -const int kAudioChannelLayoutTag_HOA_ACN_N3D = 12517376; - -const int kAudioChannelLayoutTag_HOA_ACN_SN3D = 12451840; - -const int kAudioChannelLayoutTag_Hexagonal = 7208966; - -const int kAudioChannelLayoutTag_ITU_1_0 = 6553601; - -const int kAudioChannelLayoutTag_ITU_2_0 = 6619138; - -const int kAudioChannelLayoutTag_ITU_2_1 = 8585219; - -const int kAudioChannelLayoutTag_ITU_2_2 = 8650756; - -const int kAudioChannelLayoutTag_ITU_3_0 = 7405571; - -const int kAudioChannelLayoutTag_ITU_3_1 = 7536644; - -const int kAudioChannelLayoutTag_ITU_3_2 = 7667717; - -const int kAudioChannelLayoutTag_ITU_3_2_1 = 7929862; - -const int kAudioChannelLayoutTag_ITU_3_4_1 = 8388616; - -const int kAudioChannelLayoutTag_Logic_4_0_A = 7536644; - -const int kAudioChannelLayoutTag_Logic_4_0_B = 7602180; - -const int kAudioChannelLayoutTag_Logic_4_0_C = 12910596; - -const int kAudioChannelLayoutTag_Logic_5_0_A = 7667717; - -const int kAudioChannelLayoutTag_Logic_5_0_B = 7733253; - -const int kAudioChannelLayoutTag_Logic_5_0_C = 7798789; - -const int kAudioChannelLayoutTag_Logic_5_0_D = 7864325; - -const int kAudioChannelLayoutTag_Logic_5_1_A = 7929862; - -const int kAudioChannelLayoutTag_Logic_5_1_B = 7995398; - -const int kAudioChannelLayoutTag_Logic_5_1_C = 8060934; - -const int kAudioChannelLayoutTag_Logic_5_1_D = 8126470; - -const int kAudioChannelLayoutTag_Logic_6_0_A = 9240582; - -const int kAudioChannelLayoutTag_Logic_6_0_B = 12976134; - -const int kAudioChannelLayoutTag_Logic_6_0_C = 9109510; - -const int kAudioChannelLayoutTag_Logic_6_1_A = 9306119; - -const int kAudioChannelLayoutTag_Logic_6_1_B = 13041671; - -const int kAudioChannelLayoutTag_Logic_6_1_C = 8192007; - -const int kAudioChannelLayoutTag_Logic_6_1_D = 13107207; - -const int kAudioChannelLayoutTag_Logic_7_1_A = 8388616; - -const int kAudioChannelLayoutTag_Logic_7_1_B = 13172744; - -const int kAudioChannelLayoutTag_Logic_7_1_C = 8388616; - -const int kAudioChannelLayoutTag_Logic_7_1_SDDS_A = 8257544; - -const int kAudioChannelLayoutTag_Logic_7_1_SDDS_B = 8323080; - -const int kAudioChannelLayoutTag_Logic_7_1_SDDS_C = 8454152; - -const int kAudioChannelLayoutTag_Logic_Atmos_5_1_2 = 12713992; - -const int kAudioChannelLayoutTag_Logic_Atmos_5_1_4 = 12779530; - -const int kAudioChannelLayoutTag_Logic_Atmos_7_1_2 = 12845066; - -const int kAudioChannelLayoutTag_Logic_Atmos_7_1_4_A = 12582924; - -const int kAudioChannelLayoutTag_Logic_Atmos_7_1_4_B = 13238284; - -const int kAudioChannelLayoutTag_Logic_Atmos_7_1_6 = 13303822; - -const int kAudioChannelLayoutTag_Logic_Mono = 6553601; - -const int kAudioChannelLayoutTag_Logic_Quadraphonic = 7077892; - -const int kAudioChannelLayoutTag_Logic_Stereo = 6619138; - -const int kAudioChannelLayoutTag_MPEG_1_0 = 6553601; - -const int kAudioChannelLayoutTag_MPEG_2_0 = 6619138; - -const int kAudioChannelLayoutTag_MPEG_3_0_A = 7405571; - -const int kAudioChannelLayoutTag_MPEG_3_0_B = 7471107; - -const int kAudioChannelLayoutTag_MPEG_4_0_A = 7536644; - -const int kAudioChannelLayoutTag_MPEG_4_0_B = 7602180; - -const int kAudioChannelLayoutTag_MPEG_5_0_A = 7667717; - -const int kAudioChannelLayoutTag_MPEG_5_0_B = 7733253; - -const int kAudioChannelLayoutTag_MPEG_5_0_C = 7798789; - -const int kAudioChannelLayoutTag_MPEG_5_0_D = 7864325; - -const int kAudioChannelLayoutTag_MPEG_5_0_E = 14155781; - -const int kAudioChannelLayoutTag_MPEG_5_1_A = 7929862; - -const int kAudioChannelLayoutTag_MPEG_5_1_B = 7995398; - -const int kAudioChannelLayoutTag_MPEG_5_1_C = 8060934; - -const int kAudioChannelLayoutTag_MPEG_5_1_D = 8126470; - -const int kAudioChannelLayoutTag_MPEG_5_1_E = 14221318; - -const int kAudioChannelLayoutTag_MPEG_6_1_A = 8192007; - -const int kAudioChannelLayoutTag_MPEG_6_1_B = 14286855; - -const int kAudioChannelLayoutTag_MPEG_7_1_A = 8257544; - -const int kAudioChannelLayoutTag_MPEG_7_1_B = 8323080; - -const int kAudioChannelLayoutTag_MPEG_7_1_C = 8388616; - -const int kAudioChannelLayoutTag_MPEG_7_1_D = 14352392; - -const int kAudioChannelLayoutTag_MatrixStereo = 6750210; - -const int kAudioChannelLayoutTag_MidSide = 6815746; - -const int kAudioChannelLayoutTag_Mono = 6553601; - -const int kAudioChannelLayoutTag_Octagonal = 7274504; - -const int kAudioChannelLayoutTag_Ogg_3_0 = 9830403; - -const int kAudioChannelLayoutTag_Ogg_4_0 = 12124164; - -const int kAudioChannelLayoutTag_Ogg_5_0 = 13893637; - -const int kAudioChannelLayoutTag_Ogg_5_1 = 13959174; - -const int kAudioChannelLayoutTag_Ogg_6_1 = 14024711; - -const int kAudioChannelLayoutTag_Ogg_7_1 = 14090248; - -const int kAudioChannelLayoutTag_Pentagonal = 7143429; - -const int kAudioChannelLayoutTag_Quadraphonic = 7077892; - -const int kAudioChannelLayoutTag_SMPTE_DTV = 8519688; - -const int kAudioChannelLayoutTag_Stereo = 6619138; - -const int kAudioChannelLayoutTag_StereoHeadphones = 6684674; - -const int kAudioChannelLayoutTag_TMH_10_2_full = 9568277; - -const int kAudioChannelLayoutTag_TMH_10_2_std = 9502736; - -const int kAudioChannelLayoutTag_Unknown = -65536; - -const int kAudioChannelLayoutTag_UseChannelBitmap = 65536; - -const int kAudioChannelLayoutTag_UseChannelDescriptions = 0; - -const int kAudioChannelLayoutTag_WAVE_2_1 = 8716291; - -const int kAudioChannelLayoutTag_WAVE_3_0 = 7405571; - -const int kAudioChannelLayoutTag_WAVE_4_0_A = 8650756; - -const int kAudioChannelLayoutTag_WAVE_4_0_B = 12124164; - -const int kAudioChannelLayoutTag_WAVE_5_0_A = 7667717; - -const int kAudioChannelLayoutTag_WAVE_5_0_B = 12189701; - -const int kAudioChannelLayoutTag_WAVE_5_1_A = 7929862; - -const int kAudioChannelLayoutTag_WAVE_5_1_B = 12255238; - -const int kAudioChannelLayoutTag_WAVE_6_1 = 12320775; - -const int kAudioChannelLayoutTag_WAVE_7_1 = 12386312; - -const int kAudioChannelLayoutTag_XY = 6881282; - -@Deprecated('Deprecated') -const int kAudioComponentsFolderType = 1633906032; - -@Deprecated('Deprecated') -const int kAudioDigidesignFolderType = 1633970535; - -const int kAudioFormat60958AC3 = 1667326771; - -const int kAudioFormatAC3 = 1633889587; - -const int kAudioFormatAES3 = 1634038579; - -const int kAudioFormatALaw = 1634492791; - -const int kAudioFormatAMR = 1935764850; - -const int kAudioFormatAMR_WB = 1935767394; - -const int kAudioFormatAPAC = 1634754915; - -const int kAudioFormatAppleIMA4 = 1768775988; - -const int kAudioFormatAppleLossless = 1634492771; - -const int kAudioFormatAudible = 1096107074; - -const int kAudioFormatDVIIntelIMA = 1836253201; - -const int kAudioFormatEnhancedAC3 = 1700998451; - -const int kAudioFormatFLAC = 1718378851; - -const int kAudioFormatFlagIsAlignedHigh = 16; - -const int kAudioFormatFlagIsBigEndian = 2; - -const int kAudioFormatFlagIsFloat = 1; - -const int kAudioFormatFlagIsNonInterleaved = 32; - -const int kAudioFormatFlagIsNonMixable = 64; - -const int kAudioFormatFlagIsPacked = 8; - -const int kAudioFormatFlagIsSignedInteger = 4; - -const int kAudioFormatFlagsAreAllClear = -2147483648; - -@Deprecated('The concept of canonical formats is deprecated') -const int kAudioFormatFlagsAudioUnitCanonical = 41; - -@Deprecated('The concept of canonical formats is deprecated') -const int kAudioFormatFlagsCanonical = 9; - -const int kAudioFormatFlagsNativeEndian = 0; - -const int kAudioFormatFlagsNativeFloatPacked = 9; - -const int kAudioFormatLinearPCM = 1819304813; - -const int kAudioFormatMACE3 = 1296122675; - -const int kAudioFormatMACE6 = 1296122678; - -const int kAudioFormatMIDIStream = 1835623529; - -const int kAudioFormatMPEG4AAC = 1633772320; - -const int kAudioFormatMPEG4AAC_ELD = 1633772389; - -const int kAudioFormatMPEG4AAC_ELD_SBR = 1633772390; - -const int kAudioFormatMPEG4AAC_ELD_V2 = 1633772391; - -const int kAudioFormatMPEG4AAC_HE = 1633772392; - -const int kAudioFormatMPEG4AAC_HE_V2 = 1633772400; - -const int kAudioFormatMPEG4AAC_LD = 1633772396; - -const int kAudioFormatMPEG4AAC_Spatial = 1633772403; - -const int kAudioFormatMPEG4CELP = 1667591280; - -const int kAudioFormatMPEG4HVXC = 1752594531; - -const int kAudioFormatMPEG4TwinVQ = 1953986161; - -const int kAudioFormatMPEGD_USAC = 1970495843; - -const int kAudioFormatMPEGLayer1 = 778924081; - -const int kAudioFormatMPEGLayer2 = 778924082; - -const int kAudioFormatMPEGLayer3 = 778924083; - -const int kAudioFormatMicrosoftGSM = 1836253233; - -const int kAudioFormatOpus = 1869641075; - -const int kAudioFormatParameterValueStream = 1634760307; - -const int kAudioFormatQDesign = 1363430723; - -const int kAudioFormatQDesign2 = 1363430706; - -const int kAudioFormatQUALCOMM = 1365470320; - -const int kAudioFormatTimeCode = 1953066341; - -const int kAudioFormatULaw = 1970037111; - -const int kAudioFormatiLBC = 1768710755; - -@Deprecated('Deprecated') -const int kAudioPlugInsFolderType = 1634757735; - -@Deprecated('Deprecated') -const int kAudioPresetsFolderType = 1634759540; - -@Deprecated('Deprecated') -const int kAudioSoundBanksFolderType = 1650552427; - -@Deprecated('Deprecated') -const int kAudioSoundsFolderType = 1634954852; - -const double kAudioStreamAnyRate = 0.0; - -@Deprecated('Deprecated') -const int kAudioSupportFolderType = 1633970543; - -const int kAudioUnitProperty_SpeechChannel = 3331; - -const int kAudioUnitProperty_Voice = 3330; - -const int kAudioUnitSubType_SpeechSynthesis = 1953788784; - -@Deprecated('Deprecated') -const int kAudioVSTFolderType = 1635152756; - -const int kAudio_BadFilePathError = 561017960; - -const int kAudio_FileNotFoundError = -43; - -const int kAudio_FilePermissionError = -54; - -const int kAudio_MemFullError = -108; - -const int kAudio_NoError = 0; - -const int kAudio_ParamError = -50; - -const int kAudio_TooManyFilesOpenError = -42; - -const int kAudio_UnimplementedError = -4; - -const int kAuthTypeKCItemAttr = 1635023216; - -const int kAuthorizationFlagCanNotPreAuthorize = 1; - -const int kAutoGenerateReturnID = -1; - -@Deprecated('Deprecated') -const int kAutomatorWorkflowsFolderType = 1718382455; - -@Deprecated('Deprecated') -const int kAutosaveInformationFolderType = 1634951542; - -@Deprecated('Deprecated') -const int kBLibTag2 = 1112303970; - -const int kBSLNControlPointFormatNoMap = 2; - -const int kBSLNControlPointFormatWithMap = 3; - -const int kBSLNCurrentVersion = 65536; - -const int kBSLNDistanceFormatNoMap = 0; - -const int kBSLNDistanceFormatWithMap = 1; - -const int kBSLNHangingBaseline = 3; - -const int kBSLNIdeographicCenterBaseline = 1; - -const int kBSLNIdeographicHighBaseline = 5; - -const int kBSLNIdeographicLowBaseline = 2; - -const int kBSLNLastBaseline = 31; - -const int kBSLNMathBaseline = 4; - -const int kBSLNNoBaseline = 255; - -const int kBSLNNoBaselineOverride = 255; - -const int kBSLNNumBaselineClasses = 32; - -const int kBSLNRomanBaseline = 0; - -const int kBSLNTag = 1651731566; - -const int kBTBadCloseMask = 1; - -const int kBTBigKeysMask = 2; - -const int kBTHeaderNode = 1; - -const int kBTIndexNode = 0; - -const int kBTLeafNode = -1; - -const int kBTMapNode = 2; - -const int kBTVariableIndexKeysMask = 4; - -const int kBackwardArrowIcon = 1650553455; - -const int kBadAdapterErr = -9050; - -const int kBadArgLengthErr = -9063; - -const int kBadArgsErr = -9064; - -const int kBadAttributeErr = -9051; - -const int kBadBaseErr = -9052; - -const int kBadCISErr = -9066; - -const int kBadCustomIFIDErr = -9093; - -const int kBadDeviceErr = -9083; - -const int kBadEDCErr = -9053; - -const int kBadHandleErr = -9065; - -const int kBadIRQErr = -9054; - -const int kBadLinkErr = -9082; - -const int kBadOffsetErr = -9055; - -const int kBadPageErr = -9056; - -const int kBadSizeErr = -9057; - -const int kBadSocketErr = -9058; - -const int kBadSpeedErr = -9067; - -const int kBadTupleDataErr = -9092; - -const int kBadTypeErr = -9059; - -const int kBadVccErr = -9060; - -const int kBadVppErr = -9061; - -const int kBadWindowErr = -9062; - -const int kBig5_BasicVariant = 0; - -const int kBig5_DOSVariant = 3; - -const int kBig5_ETenVariant = 2; - -const int kBig5_StandardVariant = 1; - -@Deprecated('Deprecated') -const int kBlessedBusErrorBait = 1760651505; - -const int kBlessedFolder = 1651274598; - -@Deprecated('Deprecated') -const int kBootTimeStartupItemsFolderType = 1701671034; - -const int kBoxAnnotationSelector = 1; - -const int kBridgeSoftwareRunningCantSleep = -13038; - -const int kBurningIcon = 1651864174; - -const int kBusyErr = -9074; - -const int kByCommentView = 6; - -const int kByDateView = 3; - -const int kByIconView = 1; - -const int kByKindView = 5; - -const int kByLabelView = 7; - -const int kByNameView = 2; - -const int kBySizeView = 4; - -const int kBySmallIcon = 0; - -const int kByVersionView = 8; - -@Deprecated('Deprecated') -const int kCCRegisterCBit = 16; - -@Deprecated('Deprecated') -const int kCCRegisterNBit = 19; - -@Deprecated('Deprecated') -const int kCCRegisterVBit = 17; - -@Deprecated('Deprecated') -const int kCCRegisterXBit = 20; - -@Deprecated('Deprecated') -const int kCCRegisterZBit = 18; - -const int kCFBundleExecutableArchitectureARM64 = 16777228; - -const int kCFBundleExecutableArchitectureI386 = 7; - -const int kCFBundleExecutableArchitecturePPC = 18; - -const int kCFBundleExecutableArchitecturePPC64 = 16777234; - -const int kCFBundleExecutableArchitectureX86_64 = 16777223; - -const int kCFCalendarComponentsWrap = 1; - -const int kCFFileDescriptorReadCallBack = 1; - -const int kCFFileDescriptorWriteCallBack = 2; - -@Deprecated('Deprecated') -const int kCFM68kRTA = 16; - -const int kCFMessagePortBecameInvalidError = -5; - -const int kCFMessagePortIsInvalid = -3; - -const int kCFMessagePortReceiveTimeout = -2; - -const int kCFMessagePortSendTimeout = -1; - -const int kCFMessagePortSuccess = 0; - -const int kCFMessagePortTransportError = -4; - -const int kCFNotFound = -1; - -const int kCFNotificationDeliverImmediately = 1; - -const int kCFNotificationPostToAllSessions = 2; - -const int kCFPropertyListReadCorruptError = 3840; - -const int kCFPropertyListReadStreamError = 3842; - -const int kCFPropertyListReadUnknownVersionError = 3841; - -const int kCFPropertyListWriteStreamError = 3851; - -const int kCFSocketAutomaticallyReenableAcceptCallBack = 2; - -const int kCFSocketAutomaticallyReenableDataCallBack = 3; - -const int kCFSocketAutomaticallyReenableReadCallBack = 1; - -const int kCFSocketAutomaticallyReenableWriteCallBack = 8; - -const int kCFSocketCloseOnInvalidate = 128; - -const int kCFSocketLeaveErrors = 64; - -const int kCFStreamErrorSOCKS4IdConflict = 93; - -const int kCFStreamErrorSOCKS4IdentdFailed = 92; - -const int kCFStreamErrorSOCKS4RequestFailed = 91; - -const int kCFStreamErrorSOCKS4SubDomainResponse = 2; - -const int kCFStreamErrorSOCKS5BadResponseAddr = 1; - -const int kCFStreamErrorSOCKS5BadState = 2; - -const int kCFStreamErrorSOCKS5SubDomainMethod = 4; - -const int kCFStreamErrorSOCKS5SubDomainResponse = 5; - -const int kCFStreamErrorSOCKS5SubDomainUserPass = 3; - -const int kCFStreamErrorSOCKSSubDomainNone = 0; - -const int kCFStreamErrorSOCKSSubDomainVersionCode = 1; - -const int kCFStreamErrorSOCKSUnknownClientVersion = 3; - -const int kCFStringTokenizerAttributeLanguage = 131072; - -const int kCFStringTokenizerAttributeLatinTranscription = 65536; - -const int kCFStringTokenizerUnitLineBreak = 3; - -const int kCFStringTokenizerUnitParagraph = 2; - -const int kCFStringTokenizerUnitSentence = 1; - -const int kCFStringTokenizerUnitWord = 0; - -const int kCFStringTokenizerUnitWordBoundary = 4; - -const int kCFUserNotificationAlternateResponse = 1; - -const int kCFUserNotificationCancelResponse = 3; - -const int kCFUserNotificationCautionAlertLevel = 2; - -const int kCFUserNotificationDefaultResponse = 0; - -const int kCFUserNotificationNoDefaultButtonFlag = 32; - -const int kCFUserNotificationNoteAlertLevel = 1; - -const int kCFUserNotificationOtherResponse = 2; - -const int kCFUserNotificationPlainAlertLevel = 3; - -const int kCFUserNotificationStopAlertLevel = 0; - -const int kCFUserNotificationUseRadioButtonsFlag = 64; - -const int kCFXMLNodeCurrentVersion = 1; - -const int kCGBitmapByteOrder16Host = 4096; - -const int kCGBitmapByteOrder32Host = 8192; - -const int kCGFontIndexInvalid = 65535; - -const int kCGFontIndexMax = 65534; - -const int kCGGlyphMax = 65534; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRadeon8500ID = 136704; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRadeon9700ID = 137216; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRadeonID = 135680; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRadeonX1000ID = 137472; - -const int kCGLRendererATIRadeonX2000ID = 137728; - -const int kCGLRendererATIRadeonX3000ID = 137984; - -const int kCGLRendererATIRadeonX4000ID = 138240; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRage128ID = 135168; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererATIRageProID = 136192; - -const int kCGLRendererAppleSWID = 132608; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererGeForce2MXID = 139264; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererGeForce3ID = 139776; - -const int kCGLRendererGeForce8xxxID = 140800; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererGeForceFXID = 140288; - -const int kCGLRendererGeForceID = 141056; - -const int kCGLRendererGenericFloatID = 132096; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererGenericID = 131584; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererIntel900ID = 147456; - -const int kCGLRendererIntelHD4000ID = 148480; - -const int kCGLRendererIntelHD5000ID = 148736; - -const int kCGLRendererIntelHDID = 148224; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererIntelX3100ID = 147968; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererMesa3DFXID = 262144; - -@Deprecated( - 'OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)', -) -const int kCGLRendererVTBladeXP2ID = 143360; - -const int kCJKItalicRomanOffSelector = 3; - -const int kCJKItalicRomanOnSelector = 2; - -const int kCJKItalicRomanSelector = 1; - -const int kCJKRomanSpacingType = 103; - -const int kCJKSymbolAltFiveSelector = 5; - -const int kCJKSymbolAltFourSelector = 4; - -const int kCJKSymbolAltOneSelector = 1; - -const int kCJKSymbolAltThreeSelector = 3; - -const int kCJKSymbolAltTwoSelector = 2; - -const int kCJKSymbolAlternativesType = 29; - -const int kCJKVerticalRomanCenteredSelector = 0; - -const int kCJKVerticalRomanHBaselineSelector = 1; - -const int kCJKVerticalRomanPlacementType = 31; - -const int kCMAudioCodecType_AAC_AudibleProtected = 1633771875; - -const int kCMAudioCodecType_AAC_LCProtected = 1885430115; - -const int kCMAudioFormatDescriptionMask_All = 15; - -const int kCMAudioFormatDescriptionMask_ChannelLayout = 4; - -const int kCMAudioFormatDescriptionMask_Extensions = 8; - -const int kCMAudioFormatDescriptionMask_MagicCookie = 2; - -const int kCMAudioFormatDescriptionMask_StreamBasicDescription = 1; - -const int kCMClosedCaptionFormatType_ATSC = 1635017571; - -const int kCMClosedCaptionFormatType_CEA608 = 1664495672; - -const int kCMClosedCaptionFormatType_CEA708 = 1664561208; - -const int kCMFormatDescriptionError_AllocationFailed = -12711; - -const int kCMFormatDescriptionError_InvalidParameter = -12710; - -const int kCMFormatDescriptionError_ValueNotAvailable = -12718; - -const int kCMMPEG2VideoProfile_HDV_1080i50 = 1751414323; - -const int kCMMPEG2VideoProfile_HDV_1080i60 = 1751414322; - -const int kCMMPEG2VideoProfile_HDV_1080p24 = 1751414326; - -const int kCMMPEG2VideoProfile_HDV_1080p25 = 1751414327; - -const int kCMMPEG2VideoProfile_HDV_1080p30 = 1751414328; - -const int kCMMPEG2VideoProfile_HDV_720p24 = 1751414324; - -const int kCMMPEG2VideoProfile_HDV_720p25 = 1751414325; - -const int kCMMPEG2VideoProfile_HDV_720p30 = 1751414321; - -const int kCMMPEG2VideoProfile_HDV_720p50 = 1751414369; - -const int kCMMPEG2VideoProfile_HDV_720p60 = 1751414329; - -const int kCMMPEG2VideoProfile_XDCAM_EX_1080i50_VBR35 = 2019849827; - -const int kCMMPEG2VideoProfile_XDCAM_EX_1080i60_VBR35 = 2019849826; - -const int kCMMPEG2VideoProfile_XDCAM_EX_1080p24_VBR35 = 2019849828; - -const int kCMMPEG2VideoProfile_XDCAM_EX_1080p25_VBR35 = 2019849829; - -const int kCMMPEG2VideoProfile_XDCAM_EX_1080p30_VBR35 = 2019849830; - -const int kCMMPEG2VideoProfile_XDCAM_EX_720p24_VBR35 = 2019849780; - -const int kCMMPEG2VideoProfile_XDCAM_EX_720p25_VBR35 = 2019849781; - -const int kCMMPEG2VideoProfile_XDCAM_EX_720p30_VBR35 = 2019849777; - -const int kCMMPEG2VideoProfile_XDCAM_EX_720p50_VBR35 = 2019849825; - -const int kCMMPEG2VideoProfile_XDCAM_EX_720p60_VBR35 = 2019849785; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_1080i50_CBR50 = 2019833187; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_1080i60_CBR50 = 2019833186; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p24_CBR50 = 2019833188; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p25_CBR50 = 2019833189; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_1080p30_CBR50 = 2019833190; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_540p = 2019846194; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_720p24_CBR50 = 2019833140; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_720p25_CBR50 = 2019833141; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_720p30_CBR50 = 2019833137; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_720p50_CBR50 = 2019833185; - -const int kCMMPEG2VideoProfile_XDCAM_HD422_720p60_CBR50 = 2019833145; - -const int kCMMPEG2VideoProfile_XDCAM_HD_1080i50_VBR35 = 2019849779; - -const int kCMMPEG2VideoProfile_XDCAM_HD_1080i60_VBR35 = 2019849778; - -const int kCMMPEG2VideoProfile_XDCAM_HD_1080p24_VBR35 = 2019849782; - -const int kCMMPEG2VideoProfile_XDCAM_HD_1080p25_VBR35 = 2019849783; - -const int kCMMPEG2VideoProfile_XDCAM_HD_1080p30_VBR35 = 2019849784; - -const int kCMMPEG2VideoProfile_XDCAM_HD_540p = 2019846244; - -const int kCMMPEG2VideoProfile_XF = 2019981873; - -const int kCMMediaType_Audio = 1936684398; - -const int kCMMediaType_AuxiliaryPicture = 1635088502; - -const int kCMMediaType_ClosedCaption = 1668047728; - -const int kCMMediaType_Metadata = 1835365473; - -const int kCMMediaType_Muxed = 1836415096; - -const int kCMMediaType_Subtitle = 1935832172; - -const int kCMMediaType_TaggedBufferGroup = 1952606066; - -const int kCMMediaType_Text = 1952807028; - -const int kCMMediaType_TimeCode = 1953325924; - -const int kCMMediaType_Video = 1986618469; - -const int kCMMetadataFormatType_Boxed = 1835360888; - -const int kCMMetadataFormatType_EMSG = 1701671783; - -const int kCMMetadataFormatType_ICY = 1768126752; - -const int kCMMetadataFormatType_ID3 = 1768174368; - -const int kCMMuxedStreamType_DV = 1685463072; - -const int kCMMuxedStreamType_EmbeddedDeviceScreenRecording = 1769173536; - -const int kCMMuxedStreamType_MPEG1System = 1836069235; - -const int kCMMuxedStreamType_MPEG2Program = 1836069488; - -const int kCMMuxedStreamType_MPEG2Transport = 1836069492; - -const int kCMPersistentTrackID_Invalid = 0; - -const int kCMPixelFormat_16BE555 = 16; - -const int kCMPixelFormat_16BE565 = 1110783541; - -const int kCMPixelFormat_16LE555 = 1278555445; - -const int kCMPixelFormat_16LE5551 = 892679473; - -const int kCMPixelFormat_16LE565 = 1278555701; - -const int kCMPixelFormat_24RGB = 24; - -const int kCMPixelFormat_32ARGB = 32; - -const int kCMPixelFormat_32BGRA = 1111970369; - -const int kCMPixelFormat_422YpCbCr10 = 1983000880; - -const int kCMPixelFormat_422YpCbCr16 = 1983000886; - -const int kCMPixelFormat_422YpCbCr8 = 846624121; - -const int kCMPixelFormat_422YpCbCr8_yuvs = 2037741171; - -const int kCMPixelFormat_4444YpCbCrA8 = 1983131704; - -const int kCMPixelFormat_444YpCbCr10 = 1983131952; - -const int kCMPixelFormat_444YpCbCr8 = 1983066168; - -const int kCMPixelFormat_8IndexedGray_WhiteIsZero = 40; - -const int kCMSubtitleFormatType_3GText = 1954034535; - -const int kCMSubtitleFormatType_WebVTT = 2004251764; - -const int kCMTaggedBufferGroupFormatType_TaggedBufferGroup = 1952606066; - -const int kCMTextDisplayFlag_allSubtitlesForced = -2147483648; - -const int kCMTextDisplayFlag_continuousKaraoke = 2048; - -const int kCMTextDisplayFlag_fillTextRegion = 262144; - -const int kCMTextDisplayFlag_forcedSubtitlesPresent = 1073741824; - -const int kCMTextDisplayFlag_obeySubtitleFormatting = 536870912; - -const int kCMTextDisplayFlag_scrollDirectionMask = 384; - -const int kCMTextDisplayFlag_scrollDirection_bottomToTop = 0; - -const int kCMTextDisplayFlag_scrollDirection_leftToRight = 384; - -const int kCMTextDisplayFlag_scrollDirection_rightToLeft = 128; - -const int kCMTextDisplayFlag_scrollDirection_topToBottom = 256; - -const int kCMTextDisplayFlag_scrollIn = 32; - -const int kCMTextDisplayFlag_scrollOut = 64; - -const int kCMTextDisplayFlag_writeTextVertically = 131072; - -const int kCMTextFormatType_3GText = 1954034535; - -const int kCMTextFormatType_QTText = 1952807028; - -const int kCMTextJustification_bottom_right = -1; - -const int kCMTextJustification_centered = 1; - -const int kCMTextJustification_left_top = 0; - -const int kCMTimeCodeFlag_24HourMax = 2; - -const int kCMTimeCodeFlag_DropFrame = 1; - -const int kCMTimeCodeFlag_NegTimesOK = 4; - -const int kCMTimeCodeFormatType_Counter32 = 1668166450; - -const int kCMTimeCodeFormatType_Counter64 = 1668167220; - -const int kCMTimeCodeFormatType_TimeCode32 = 1953325924; - -const int kCMTimeCodeFormatType_TimeCode64 = 1952658996; - -const int kCMVideoCodecType_422YpCbCr8 = 846624121; - -const int kCMVideoCodecType_AV1 = 1635135537; - -const int kCMVideoCodecType_Animation = 1919706400; - -const int kCMVideoCodecType_AppleProRes422 = 1634755438; - -const int kCMVideoCodecType_AppleProRes422HQ = 1634755432; - -const int kCMVideoCodecType_AppleProRes422LT = 1634755443; - -const int kCMVideoCodecType_AppleProRes422Proxy = 1634755439; - -const int kCMVideoCodecType_AppleProRes4444 = 1634743400; - -const int kCMVideoCodecType_AppleProRes4444XQ = 1634743416; - -const int kCMVideoCodecType_AppleProResRAW = 1634759278; - -const int kCMVideoCodecType_AppleProResRAWHQ = 1634759272; - -const int kCMVideoCodecType_Cinepak = 1668704612; - -const int kCMVideoCodecType_DVCNTSC = 1685480224; - -const int kCMVideoCodecType_DVCPAL = 1685480304; - -const int kCMVideoCodecType_DVCPROHD1080i50 = 1685481525; - -const int kCMVideoCodecType_DVCPROHD1080i60 = 1685481526; - -const int kCMVideoCodecType_DVCPROHD1080p25 = 1685481522; - -const int kCMVideoCodecType_DVCPROHD1080p30 = 1685481523; - -const int kCMVideoCodecType_DVCPROHD720p50 = 1685481585; - -const int kCMVideoCodecType_DVCPROHD720p60 = 1685481584; - -const int kCMVideoCodecType_DVCPro50NTSC = 1685468526; - -const int kCMVideoCodecType_DVCPro50PAL = 1685468528; - -const int kCMVideoCodecType_DVCProPAL = 1685483632; - -const int kCMVideoCodecType_DepthHEVC = 1684369512; - -const int kCMVideoCodecType_DisparityHEVC = 1684632424; - -const int kCMVideoCodecType_DolbyVisionHEVC = 1685481521; - -const int kCMVideoCodecType_H263 = 1748121139; - -const int kCMVideoCodecType_H264 = 1635148593; - -const int kCMVideoCodecType_HEVC = 1752589105; - -const int kCMVideoCodecType_HEVCWithAlpha = 1836415073; - -const int kCMVideoCodecType_JPEG = 1785750887; - -const int kCMVideoCodecType_JPEG_OpenDML = 1684890161; - -const int kCMVideoCodecType_JPEG_XL = 1786276963; - -const int kCMVideoCodecType_MPEG1Video = 1836069238; - -const int kCMVideoCodecType_MPEG2Video = 1836069494; - -const int kCMVideoCodecType_MPEG4Video = 1836070006; - -const int kCMVideoCodecType_SorensonVideo = 1398165809; - -const int kCMVideoCodecType_SorensonVideo3 = 1398165811; - -const int kCMVideoCodecType_VP9 = 1987063865; - -@Deprecated('Deprecated') -const int kCSAcceptAllComponentsMode = 0; - -@Deprecated('Deprecated') -const int kCSAcceptThreadSafeComponentsOnlyMode = 1; - -const int kCSDiskSpaceRecoveryOptionNoUI = 1; - -const int kCSIdentityAuthorityNotAccessibleErr = -2; - -const int kCSIdentityClassGroup = 2; - -const int kCSIdentityClassUser = 1; - -const int kCSIdentityCommitCompleted = 1; - -const int kCSIdentityDeletedErr = -4; - -const int kCSIdentityDuplicateFullNameErr = -6; - -const int kCSIdentityDuplicatePosixNameErr = -8; - -const int kCSIdentityFlagHidden = 1; - -const int kCSIdentityFlagNone = 0; - -const int kCSIdentityInvalidFullNameErr = -5; - -const int kCSIdentityInvalidPosixNameErr = -7; - -const int kCSIdentityPermissionErr = -3; - -const int kCSIdentityQueryEventErrorOccurred = 5; - -const int kCSIdentityQueryEventResultsAdded = 2; - -const int kCSIdentityQueryEventResultsChanged = 3; - -const int kCSIdentityQueryEventResultsRemoved = 4; - -const int kCSIdentityQueryEventSearchPhaseFinished = 1; - -const int kCSIdentityQueryGenerateUpdateEvents = 1; - -const int kCSIdentityQueryIncludeHiddenIdentities = 2; - -const int kCSIdentityQueryStringBeginsWith = 2; - -const int kCSIdentityQueryStringEquals = 1; - -const int kCSIdentityUnknownAuthorityErr = -1; - -@Deprecated('Deprecated') -const int kCStackBased = 1; - -const int kCTFontClassMaskShift = 28; - -const int kCTFontPriorityComputer = 30000; - -const int kCTFontPriorityDynamic = 50000; - -const int kCTFontPriorityNetwork = 20000; - -const int kCTFontPriorityProcess = 60000; - -const int kCTFontPrioritySystem = 10000; - -const int kCTFontPriorityUser = 40000; - -const int kCTFontTableAcnt = 1633906292; - -const int kCTFontTableAnkr = 1634626418; - -const int kCTFontTableAvar = 1635148146; - -const int kCTFontTableBASE = 1111577413; - -const int kCTFontTableBdat = 1650745716; - -const int kCTFontTableBhed = 1651008868; - -const int kCTFontTableBloc = 1651273571; - -const int kCTFontTableBsln = 1651731566; - -const int kCTFontTableCBDT = 1128416340; - -const int kCTFontTableCBLC = 1128418371; - -const int kCTFontTableCFF = 1128678944; - -const int kCTFontTableCFF2 = 1128678962; - -const int kCTFontTableCOLR = 1129270354; - -const int kCTFontTableCPAL = 1129333068; - -const int kCTFontTableCidg = 1667851367; - -const int kCTFontTableCmap = 1668112752; - -const int kCTFontTableCvar = 1668702578; - -const int kCTFontTableCvt = 1668707360; - -const int kCTFontTableDSIG = 1146308935; - -const int kCTFontTableEBDT = 1161970772; - -const int kCTFontTableEBLC = 1161972803; - -const int kCTFontTableEBSC = 1161974595; - -const int kCTFontTableFdsc = 1717859171; - -const int kCTFontTableFeat = 1717920116; - -const int kCTFontTableFmtx = 1718449272; - -const int kCTFontTableFond = 1718578788; - -const int kCTFontTableFpgm = 1718642541; - -const int kCTFontTableFvar = 1719034226; - -const int kCTFontTableGDEF = 1195656518; - -const int kCTFontTableGPOS = 1196445523; - -const int kCTFontTableGSUB = 1196643650; - -const int kCTFontTableGasp = 1734439792; - -const int kCTFontTableGlyf = 1735162214; - -const int kCTFontTableGvar = 1735811442; - -const int kCTFontTableHVAR = 1213612370; - -const int kCTFontTableHdmx = 1751412088; - -const int kCTFontTableHead = 1751474532; - -const int kCTFontTableHhea = 1751672161; - -const int kCTFontTableHmtx = 1752003704; - -const int kCTFontTableHsty = 1752396921; - -const int kCTFontTableJSTF = 1246975046; - -const int kCTFontTableJust = 1786082164; - -const int kCTFontTableKern = 1801810542; - -const int kCTFontTableKerx = 1801810552; - -const int kCTFontTableLTSH = 1280594760; - -const int kCTFontTableLcar = 1818452338; - -const int kCTFontTableLoca = 1819239265; - -const int kCTFontTableLtag = 1819566439; - -const int kCTFontTableMATH = 1296127048; - -const int kCTFontTableMERG = 1296388679; - -const int kCTFontTableMVAR = 1297498450; - -const int kCTFontTableMaxp = 1835104368; - -const int kCTFontTableMeta = 1835365473; - -const int kCTFontTableMort = 1836020340; - -const int kCTFontTableMorx = 1836020344; - -const int kCTFontTableName = 1851878757; - -const int kCTFontTableOS2 = 1330851634; - -const int kCTFontTableOpbd = 1869636196; - -const int kCTFontTablePCLT = 1346587732; - -const int kCTFontTablePost = 1886352244; - -const int kCTFontTablePrep = 1886545264; - -const int kCTFontTableProp = 1886547824; - -const int kCTFontTableSTAT = 1398030676; - -const int kCTFontTableSVG = 1398163232; - -const int kCTFontTableSbit = 1935829364; - -const int kCTFontTableSbix = 1935829368; - -const int kCTFontTableTrak = 1953653099; - -const int kCTFontTableVDMX = 1447316824; - -const int kCTFontTableVORG = 1448038983; - -const int kCTFontTableVVAR = 1448493394; - -const int kCTFontTableVhea = 1986553185; - -const int kCTFontTableVmtx = 1986884728; - -const int kCTFontTableXref = 2020762982; - -const int kCTFontTableZapf = 1516335206; - -const int kCTRunDelegateCurrentVersion = 1; - -const int kCTRunDelegateVersion1 = 1; - -const int kCTWritingDirectionEmbedding = 0; - -const int kCTWritingDirectionOverride = 2; - -const int kCUPSPPDDomain = 6; - -const int kCVPixelFormatType_128RGBAFloat = 1380410945; - -const int kCVPixelFormatType_14Bayer_BGGR = 1650943796; - -const int kCVPixelFormatType_14Bayer_GBRG = 1734505012; - -const int kCVPixelFormatType_14Bayer_GRBG = 1735549492; - -const int kCVPixelFormatType_14Bayer_RGGB = 1919379252; - -const int kCVPixelFormatType_16BE555 = 16; - -const int kCVPixelFormatType_16BE565 = 1110783541; - -const int kCVPixelFormatType_16Gray = 1647392359; - -const int kCVPixelFormatType_16LE555 = 1278555445; - -const int kCVPixelFormatType_16LE5551 = 892679473; - -const int kCVPixelFormatType_16LE565 = 1278555701; - -const int kCVPixelFormatType_16VersatileBayer = 1651519798; - -const int kCVPixelFormatType_1IndexedGray_WhiteIsZero = 33; - -const int kCVPixelFormatType_1Monochrome = 1; - -const int kCVPixelFormatType_24BGR = 842285639; - -const int kCVPixelFormatType_24RGB = 24; - -const int kCVPixelFormatType_2Indexed = 2; - -const int kCVPixelFormatType_2IndexedGray_WhiteIsZero = 34; - -const int kCVPixelFormatType_30RGB = 1378955371; - -const int kCVPixelFormatType_30RGBLEPackedWideGamut = 1999843442; - -const int kCVPixelFormatType_30RGBLE_8A_BiPlanar = 1647534392; - -const int kCVPixelFormatType_30RGB_r210 = 1915892016; - -const int kCVPixelFormatType_32ABGR = 1094862674; - -const int kCVPixelFormatType_32ARGB = 32; - -const int kCVPixelFormatType_32AlphaGray = 1647522401; - -const int kCVPixelFormatType_32BGRA = 1111970369; - -const int kCVPixelFormatType_32RGBA = 1380401729; - -const int kCVPixelFormatType_40ARGBLEWideGamut = 1999908961; - -const int kCVPixelFormatType_40ARGBLEWideGamutPremultiplied = 1999908973; - -const int kCVPixelFormatType_420YpCbCr10BiPlanarFullRange = 2019963440; - -const int kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = 2016686640; - -const int kCVPixelFormatType_420YpCbCr8BiPlanarFullRange = 875704422; - -const int kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = 875704438; - -const int kCVPixelFormatType_420YpCbCr8Planar = 2033463856; - -const int kCVPixelFormatType_420YpCbCr8PlanarFullRange = 1714696752; - -const int kCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar = 1982882104; - -const int kCVPixelFormatType_422YpCbCr10 = 1983000880; - -const int kCVPixelFormatType_422YpCbCr10BiPlanarFullRange = 2019963442; - -const int kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange = 2016686642; - -const int kCVPixelFormatType_422YpCbCr16 = 1983000886; - -const int kCVPixelFormatType_422YpCbCr16BiPlanarVideoRange = 1937125938; - -const int kCVPixelFormatType_422YpCbCr8 = 846624121; - -const int kCVPixelFormatType_422YpCbCr8BiPlanarFullRange = 875704934; - -const int kCVPixelFormatType_422YpCbCr8BiPlanarVideoRange = 875704950; - -const int kCVPixelFormatType_422YpCbCr8FullRange = 2037741158; - -const int kCVPixelFormatType_422YpCbCr8_yuvs = 2037741171; - -const int kCVPixelFormatType_422YpCbCr_4A_8BiPlanar = 1630697081; - -const int kCVPixelFormatType_4444AYpCbCr16 = 2033463606; - -const int kCVPixelFormatType_4444AYpCbCr8 = 2033463352; - -const int kCVPixelFormatType_4444AYpCbCrFloat = 1916036716; - -const int kCVPixelFormatType_4444YpCbCrA8 = 1983131704; - -const int kCVPixelFormatType_4444YpCbCrA8R = 1916022840; - -const int kCVPixelFormatType_444YpCbCr10 = 1983131952; - -const int kCVPixelFormatType_444YpCbCr10BiPlanarFullRange = 2019963956; - -const int kCVPixelFormatType_444YpCbCr10BiPlanarVideoRange = 2016687156; - -const int kCVPixelFormatType_444YpCbCr16BiPlanarVideoRange = 1937126452; - -const int kCVPixelFormatType_444YpCbCr16VideoRange_16A_TriPlanar = 1932812659; - -const int kCVPixelFormatType_444YpCbCr8 = 1983066168; - -const int kCVPixelFormatType_444YpCbCr8BiPlanarFullRange = 875836518; - -const int kCVPixelFormatType_444YpCbCr8BiPlanarVideoRange = 875836534; - -const int kCVPixelFormatType_48RGB = 1647589490; - -const int kCVPixelFormatType_4Indexed = 4; - -const int kCVPixelFormatType_4IndexedGray_WhiteIsZero = 36; - -const int kCVPixelFormatType_64ARGB = 1647719521; - -const int kCVPixelFormatType_64RGBAHalf = 1380411457; - -const int kCVPixelFormatType_64RGBALE = 1815491698; - -const int kCVPixelFormatType_64RGBA_DownscaledProResRAW = 1651521076; - -const int kCVPixelFormatType_8Indexed = 8; - -const int kCVPixelFormatType_8IndexedGray_WhiteIsZero = 40; - -const int kCVPixelFormatType_96VersatileBayerPacked12 = 1651798066; - -const int kCVPixelFormatType_ARGB2101010LEPacked = 1815162994; - -const int kCVPixelFormatType_DepthFloat16 = 1751410032; - -const int kCVPixelFormatType_DepthFloat32 = 1717855600; - -const int kCVPixelFormatType_DisparityFloat16 = 1751411059; - -const int kCVPixelFormatType_DisparityFloat32 = 1717856627; - -const int kCVPixelFormatType_Lossless_30RGBLEPackedWideGamut = 645346162; - -const int kCVPixelFormatType_Lossless_30RGBLE_8A_BiPlanar = 643969848; - -const int kCVPixelFormatType_Lossless_32BGRA = 641877825; - -const int kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarFullRange = - 645424688; - -const int kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarVideoRange = - 645428784; - -const int kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange = 641230384; - -const int kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange = 641234480; - -const int kCVPixelFormatType_Lossless_422YpCbCr10PackedBiPlanarVideoRange = - 645428786; - -const int kCVPixelFormatType_Lossless_64RGBAHalf = 642934849; - -const int kCVPixelFormatType_Lossy_32BGRA = 759318337; - -const int kCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange = - 762869296; - -const int kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarFullRange = 758670896; - -const int kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarVideoRange = 758674992; - -const int kCVPixelFormatType_Lossy_422YpCbCr10PackedBiPlanarVideoRange = - 762869298; - -const int kCVPixelFormatType_OneComponent10 = 1278226736; - -const int kCVPixelFormatType_OneComponent12 = 1278226738; - -const int kCVPixelFormatType_OneComponent16 = 1278226742; - -const int kCVPixelFormatType_OneComponent16Half = 1278226536; - -const int kCVPixelFormatType_OneComponent32Float = 1278226534; - -const int kCVPixelFormatType_OneComponent8 = 1278226488; - -const int kCVPixelFormatType_TwoComponent16 = 843264310; - -const int kCVPixelFormatType_TwoComponent16Half = 843264104; - -const int kCVPixelFormatType_TwoComponent32Float = 843264102; - -const int kCVPixelFormatType_TwoComponent8 = 843264056; - -const int kCVReturnAllocationFailed = -6662; - -const int kCVReturnDisplayLinkAlreadyRunning = -6671; - -const int kCVReturnDisplayLinkCallbacksNotSet = -6673; - -const int kCVReturnDisplayLinkNotRunning = -6672; - -const int kCVReturnError = -6660; - -const int kCVReturnFirst = -6660; - -const int kCVReturnInvalidArgument = -6661; - -const int kCVReturnInvalidDisplay = -6670; - -const int kCVReturnInvalidPixelBufferAttributes = -6682; - -const int kCVReturnInvalidPixelFormat = -6680; - -const int kCVReturnInvalidPoolAttributes = -6691; - -const int kCVReturnInvalidSize = -6681; - -const int kCVReturnLast = -6699; - -const int kCVReturnPixelBufferNotMetalCompatible = -6684; - -const int kCVReturnPixelBufferNotOpenGLCompatible = -6683; - -const int kCVReturnPoolAllocationFailed = -6690; - -const int kCVReturnRetry = -6692; - -const int kCVReturnSuccess = 0; - -const int kCVReturnUnsupported = -6663; - -const int kCVReturnWouldExceedAllocationThreshold = -6689; - -const int kCVVersatileBayer_BayerPattern_BGGR = 3; - -const int kCVVersatileBayer_BayerPattern_GBRG = 2; - -const int kCVVersatileBayer_BayerPattern_GRBG = 1; - -const int kCVVersatileBayer_BayerPattern_RGGB = 0; - -@Deprecated('Deprecated') -const int kCachedDataFolderType = 1667326824; - -@Deprecated('Deprecated') -const int kCallingConventionMask = 15; - -@Deprecated('Deprecated') -const int kCallingConventionPhase = 0; - -@Deprecated('Deprecated') -const int kCallingConventionWidth = 4; - -const int kCanonicalCompositionOffSelector = 1; - -const int kCanonicalCompositionOnSelector = 0; - -const int kCantConfigureCardErr = -9087; - -const int kCantReportProcessorTemperatureErr = -13013; - -@Deprecated('Deprecated') -const int kCarbonLibraryFolderType = 1667330658; - -const int kCardBusCardErr = -9085; - -const int kCardPowerOffErr = -9107; - -const int kCaseSensitiveLayoutOffSelector = 1; - -const int kCaseSensitiveLayoutOnSelector = 0; - -const int kCaseSensitiveLayoutType = 33; - -const int kCaseSensitiveSpacingOffSelector = 3; - -const int kCaseSensitiveSpacingOnSelector = 2; - -const int kCertSearchAny = 0; - -const int kCertSearchDecryptAllowed = 64; - -const int kCertSearchDecryptDisallowed = 128; - -const int kCertSearchDecryptIgnored = 0; - -const int kCertSearchDecryptMask = 192; - -const int kCertSearchEncryptAllowed = 16; - -const int kCertSearchEncryptDisallowed = 32; - -const int kCertSearchEncryptIgnored = 0; - -const int kCertSearchEncryptMask = 48; - -const int kCertSearchPrivKeyRequired = 4096; - -const int kCertSearchShift = 0; - -const int kCertSearchSigningAllowed = 1; - -const int kCertSearchSigningDisallowed = 2; - -const int kCertSearchSigningIgnored = 0; - -const int kCertSearchSigningMask = 3; - -const int kCertSearchUnwrapAllowed = 1024; - -const int kCertSearchUnwrapDisallowed = 2048; - -const int kCertSearchUnwrapIgnored = 0; - -const int kCertSearchUnwrapMask = 3072; - -const int kCertSearchVerifyAllowed = 4; - -const int kCertSearchVerifyDisallowed = 8; - -const int kCertSearchVerifyIgnored = 0; - -const int kCertSearchVerifyMask = 12; - -const int kCertSearchWrapAllowed = 256; - -const int kCertSearchWrapDisallowed = 512; - -const int kCertSearchWrapIgnored = 0; - -const int kCertSearchWrapMask = 768; - -const int kCertUsageAllAdd = 2147483392; - -const int kCertUsageDecryptAdd = 16384; - -const int kCertUsageDecryptAskAndAdd = 32768; - -const int kCertUsageEncryptAdd = 4096; - -const int kCertUsageEncryptAskAndAdd = 8192; - -const int kCertUsageKeyExchAdd = 65536; - -const int kCertUsageKeyExchAskAndAdd = 131072; - -const int kCertUsageRootAdd = 262144; - -const int kCertUsageRootAskAndAdd = 524288; - -const int kCertUsageSSLAdd = 1048576; - -const int kCertUsageSSLAskAndAdd = 2097152; - -const int kCertUsageShift = 8; - -const int kCertUsageSigningAdd = 256; - -const int kCertUsageSigningAskAndAdd = 512; - -const int kCertUsageVerifyAdd = 1024; - -const int kCertUsageVerifyAskAndAdd = 2048; - -const int kCertificateKCItemClass = 1667592820; - -const int kCharacterAlternativesType = 17; - -const int kCharacterShapeType = 20; - -@Deprecated('Deprecated') -const int kChewableItemsFolderType = 1718382196; - -const int kCircleAnnotationSelector = 3; - -const int kClassKCItemAttr = 1668047219; - -@Deprecated('Deprecated') -const int kClassicDesktopFolderType = 1935962987; - -@Deprecated('Deprecated') -const int kClassicDomain = -32762; - -@Deprecated('Deprecated') -const int kClassicPreferencesFolderType = 1668313702; - -const int kClientRequestDenied = -9102; - -const int kClipboardIcon = 1129072976; - -const int kClippingCreator = 1685217639; - -const int kClippingPictureType = 1668051056; - -const int kClippingPictureTypeIcon = 1668051056; - -const int kClippingSoundType = 1668051059; - -const int kClippingSoundTypeIcon = 1668051059; - -const int kClippingTextType = 1668051060; - -const int kClippingTextTypeIcon = 1668051060; - -const int kClippingUnknownType = 1668051061; - -const int kClippingUnknownTypeIcon = 1668051061; - -const int kCollateAttributesNotFoundErr = -29500; - -const int kCollateBufferTooSmall = -29506; - -const int kCollateInvalidChar = -29505; - -const int kCollateInvalidCollationRef = -29507; - -const int kCollateInvalidOptions = -29501; - -const int kCollateMissingUnicodeTableErr = -29502; - -const int kCollatePatternNotFoundErr = -29504; - -const int kCollateUnicodeConvertFailedErr = -29503; - -@Deprecated('Deprecated') -const int kCollectionAllAttributes = -1; - -@Deprecated('Deprecated') -const int kCollectionDefaultAttributes = 1073741824; - -@Deprecated('Deprecated') -const int kCollectionDontWantAttributes = 0; - -@Deprecated('Deprecated') -const int kCollectionDontWantData = 0; - -@Deprecated('Deprecated') -const int kCollectionDontWantId = 0; - -@Deprecated('Deprecated') -const int kCollectionDontWantIndex = 0; - -@Deprecated('Deprecated') -const int kCollectionDontWantSize = 0; - -@Deprecated('Deprecated') -const int kCollectionDontWantTag = 0; - -@Deprecated('Deprecated') -const int kCollectionLockBit = 31; - -@Deprecated('Deprecated') -const int kCollectionLockMask = -2147483648; - -@Deprecated('Deprecated') -const int kCollectionNoAttributes = 0; - -@Deprecated('Deprecated') -const int kCollectionPersistenceBit = 30; - -@Deprecated('Deprecated') -const int kCollectionPersistenceMask = 1073741824; - -@Deprecated('Deprecated') -const int kCollectionReserved0Bit = 16; - -@Deprecated('Deprecated') -const int kCollectionReserved0Mask = 65536; - -@Deprecated('Deprecated') -const int kCollectionReserved10Bit = 26; - -@Deprecated('Deprecated') -const int kCollectionReserved10Mask = 67108864; - -@Deprecated('Deprecated') -const int kCollectionReserved11Bit = 27; - -@Deprecated('Deprecated') -const int kCollectionReserved11Mask = 134217728; - -@Deprecated('Deprecated') -const int kCollectionReserved12Bit = 28; - -@Deprecated('Deprecated') -const int kCollectionReserved12Mask = 268435456; - -@Deprecated('Deprecated') -const int kCollectionReserved13Bit = 29; - -@Deprecated('Deprecated') -const int kCollectionReserved13Mask = 536870912; - -@Deprecated('Deprecated') -const int kCollectionReserved1Bit = 17; - -@Deprecated('Deprecated') -const int kCollectionReserved1Mask = 131072; - -@Deprecated('Deprecated') -const int kCollectionReserved2Bit = 18; - -@Deprecated('Deprecated') -const int kCollectionReserved2Mask = 262144; - -@Deprecated('Deprecated') -const int kCollectionReserved3Bit = 19; - -@Deprecated('Deprecated') -const int kCollectionReserved3Mask = 524288; - -@Deprecated('Deprecated') -const int kCollectionReserved4Bit = 20; - -@Deprecated('Deprecated') -const int kCollectionReserved4Mask = 1048576; - -@Deprecated('Deprecated') -const int kCollectionReserved5Bit = 21; - -@Deprecated('Deprecated') -const int kCollectionReserved5Mask = 2097152; - -@Deprecated('Deprecated') -const int kCollectionReserved6Bit = 22; - -@Deprecated('Deprecated') -const int kCollectionReserved6Mask = 4194304; - -@Deprecated('Deprecated') -const int kCollectionReserved7Bit = 23; - -@Deprecated('Deprecated') -const int kCollectionReserved7Mask = 8388608; - -@Deprecated('Deprecated') -const int kCollectionReserved8Bit = 24; - -@Deprecated('Deprecated') -const int kCollectionReserved8Mask = 16777216; - -@Deprecated('Deprecated') -const int kCollectionReserved9Bit = 25; - -@Deprecated('Deprecated') -const int kCollectionReserved9Mask = 33554432; - -@Deprecated('Deprecated') -const int kCollectionUser0Bit = 0; - -@Deprecated('Deprecated') -const int kCollectionUser0Mask = 1; - -@Deprecated('Deprecated') -const int kCollectionUser10Bit = 10; - -@Deprecated('Deprecated') -const int kCollectionUser10Mask = 1024; - -@Deprecated('Deprecated') -const int kCollectionUser11Bit = 11; - -@Deprecated('Deprecated') -const int kCollectionUser11Mask = 2048; - -@Deprecated('Deprecated') -const int kCollectionUser12Bit = 12; - -@Deprecated('Deprecated') -const int kCollectionUser12Mask = 4096; - -@Deprecated('Deprecated') -const int kCollectionUser13Bit = 13; - -@Deprecated('Deprecated') -const int kCollectionUser13Mask = 8192; - -@Deprecated('Deprecated') -const int kCollectionUser14Bit = 14; - -@Deprecated('Deprecated') -const int kCollectionUser14Mask = 16384; - -@Deprecated('Deprecated') -const int kCollectionUser15Bit = 15; - -@Deprecated('Deprecated') -const int kCollectionUser15Mask = 32768; - -@Deprecated('Deprecated') -const int kCollectionUser1Bit = 1; - -@Deprecated('Deprecated') -const int kCollectionUser1Mask = 2; - -@Deprecated('Deprecated') -const int kCollectionUser2Bit = 2; - -@Deprecated('Deprecated') -const int kCollectionUser2Mask = 4; - -@Deprecated('Deprecated') -const int kCollectionUser3Bit = 3; - -@Deprecated('Deprecated') -const int kCollectionUser3Mask = 8; - -@Deprecated('Deprecated') -const int kCollectionUser4Bit = 4; - -@Deprecated('Deprecated') -const int kCollectionUser4Mask = 16; - -@Deprecated('Deprecated') -const int kCollectionUser5Bit = 5; - -@Deprecated('Deprecated') -const int kCollectionUser5Mask = 32; - -@Deprecated('Deprecated') -const int kCollectionUser6Bit = 6; - -@Deprecated('Deprecated') -const int kCollectionUser6Mask = 64; - -@Deprecated('Deprecated') -const int kCollectionUser7Bit = 7; - -@Deprecated('Deprecated') -const int kCollectionUser7Mask = 128; - -@Deprecated('Deprecated') -const int kCollectionUser8Bit = 8; - -@Deprecated('Deprecated') -const int kCollectionUser8Mask = 256; - -@Deprecated('Deprecated') -const int kCollectionUser9Bit = 9; - -@Deprecated('Deprecated') -const int kCollectionUser9Mask = 512; - -@Deprecated('Deprecated') -const int kCollectionUserAttributes = 65535; - -const int kColor = 14; - -@Deprecated('Deprecated') -const int kColorPickersFolderType = 1668311922; - -const int kColorSyncAlphaInfoMask = 31; - -const int kColorSyncByteOrder16Big = 12288; - -const int kColorSyncByteOrder16Little = 4096; - -const int kColorSyncByteOrder32Big = 16384; - -const int kColorSyncByteOrder32Little = 8192; - -const int kColorSyncByteOrderDefault = 0; - -const int kColorSyncByteOrderMask = 28672; - -@Deprecated('Deprecated') -const int kColorSyncCMMFolderType = 1667460461; - -const int kColorSyncFolderIcon = 1886547814; - -@Deprecated('Deprecated') -const int kColorSyncFolderType = 1937337955; - -@Deprecated('Deprecated') -const int kColorSyncProfilesFolderType = 1886547814; - -@Deprecated('Deprecated') -const int kColorSyncScriptingFolderType = 1668506482; - -const int kCommentKCItemAttr = 1768123764; - -const int kCommonLigaturesOffSelector = 3; - -const int kCommonLigaturesOnSelector = 2; - -const int kCommonNameKCItemAttr = 1668161568; - -const int kCompatibilityCompositionOffSelector = 3; - -const int kCompatibilityCompositionOnSelector = 2; - -@Deprecated('Deprecated') -const int kComponentAliasResourceType = 1952999265; - -@Deprecated('Deprecated') -const int kComponentCanDoSelect = -3; - -@Deprecated('Deprecated') -const int kComponentCloseSelect = -2; - -@Deprecated('Deprecated') -const int kComponentDebugOption = 0; - -@Deprecated('Deprecated') -const int kComponentExecuteWiredActionSelect = -9; - -@Deprecated('Deprecated') -const int kComponentGetMPWorkFunctionSelect = -8; - -@Deprecated('Deprecated') -const int kComponentGetPublicResourceSelect = -10; - -@Deprecated('Deprecated') -const int kComponentOpenSelect = -1; - -@Deprecated('Deprecated') -const int kComponentRegisterSelect = -5; - -@Deprecated('Deprecated') -const int kComponentResourceType = 1953001063; - -@Deprecated('Deprecated') -const int kComponentTargetSelect = -6; - -@Deprecated('Deprecated') -const int kComponentUnregisterSelect = -7; - -@Deprecated('Deprecated') -const int kComponentVersionSelect = -4; - -@Deprecated('Deprecated') -const int kComponentsFolderType = 1668116580; - -@Deprecated('Deprecated') -const int kCompositionsFolderType = 1668116595; - -const int kComputerIcon = 1919905652; - -const int kConfigurationLockedErr = -9076; - -const int kConnSuite = 1835098979; - -const int kConnectToIcon = 1668178804; - -const int kConnectionAudioStreaming = 1635083379; - -const int kConnectionBlueGammaScale = 1650946915; - -const int kConnectionChanged = 1667788391; - -const int kConnectionCheckEnable = 1667591777; - -const int kConnectionColorDepthsSupported = 543322211; - -const int kConnectionColorMode = 1668904310; - -const int kConnectionColorModesSupported = 1668246642; - -const int kConnectionControllerColorDepth = 6582372; - -const int kConnectionControllerDepthsSupported = 6779492; - -const int kConnectionControllerDitherControl = 6775907; - -const int kConnectionDisplayFlags = 1684434023; - -const int kConnectionDisplayParameterCount = 1885564532; - -const int kConnectionDisplayParameters = 1885434477; - -const int kConnectionEnable = 1701732706; - -const int kConnectionEnableAudio = 1635083296; - -const int kConnectionFlags = 1718380403; - -const int kConnectionFlushParameters = 1718383987; - -const int kConnectionGammaScale = 1735615264; - -const int kConnectionGreenGammaScale = 1734832995; - -const int kConnectionHandleDisplayPortEvent = 1685088626; - -const int kConnectionIgnore = 6907762; - -const int kConnectionOverscan = 1869833070; - -const int kConnectionPanelTimingDisable = 1886284916; - -const int kConnectionPostWake = 1886871915; - -const int kConnectionPower = 1886353266; - -const int kConnectionProbe = 1886547810; - -const int kConnectionRedGammaScale = 1919382371; - -const int kConnectionStartOfFrameTime = 1936680564; - -const int kConnectionSupportsAppleSense = 1634954867; - -const int kConnectionSupportsHLDDCSense = 1751409763; - -const int kConnectionSupportsLLDDCSense = 1818518627; - -const int kConnectionSyncEnable = 1937337955; - -const int kConnectionSyncFlags = 1937335142; - -const int kConnectionVBLMultiplier = 1986161773; - -const int kConnectionVideoBest = 1986163572; - -const int kContainerAliasType = 1685221232; - -const int kContainerCDROMAliasType = 1667523698; - -const int kContainerFloppyAliasType = 1718382713; - -const int kContainerFolderAliasType = 1717858928; - -const int kContainerHardDiskAliasType = 1751413611; - -const int kContainerServerAliasType = 1936881266; - -const int kContainerTrashAliasType = 1953657704; - -const int kContextualAlternatesOffSelector = 1; - -const int kContextualAlternatesOnSelector = 0; - -const int kContextualAlternatesType = 36; - -const int kContextualLigaturesOffSelector = 19; - -const int kContextualLigaturesOnSelector = 18; - -const int kContextualMenuItemsFolderIcon = 1668116085; - -@Deprecated('Deprecated') -const int kContextualMenuItemsFolderType = 1668116085; - -const int kContextualSwashAlternatesOffSelector = 5; - -const int kContextualSwashAlternatesOnSelector = 4; - -const int kControlPanelDisabledFolderIcon = 1668575812; - -@Deprecated('Deprecated') -const int kControlPanelDisabledFolderType = 1668575812; - -const int kControlPanelFolderAliasType = 1717658484; - -const int kControlPanelFolderIcon = 1668575852; - -const int kControlPanelFolderIconResource = -3976; - -@Deprecated('Deprecated') -const int kControlPanelFolderType = 1668575852; - -const int kControlStripModulesFolderIcon = 1935963844; - -@Deprecated('Deprecated') -const int kControlStripModulesFolderType = 1935959414; - -@Deprecated('Deprecated') -const int kCooperativeThread = 1; - -const int kCoreEndianAppleEventManagerDomain = 1634039412; - -const int kCoreEndianResourceManagerDomain = 1920168547; - -const int kCoreEventClass = 1634039412; - -@Deprecated('Deprecated') -const int kCoreServicesFolderType = 1668510326; - -@Deprecated('Deprecated') -const int kCreateFolder = 1; - -@Deprecated('Deprecated') -const int kCreateFolderAtBoot = 2; - -@Deprecated('Deprecated') -const int kCreateFolderAtBootBit = 1; - -@Deprecated('Deprecated') -const int kCreateIfNeeded = 4; - -const int kCreationDateKCItemAttr = 1667522932; - -const int kCreatorKCItemAttr = 1668445298; - -@Deprecated('Deprecated') -const int kCurrentMixedModeStateRecord = 1; - -const int kCurrentProcess = 2; - -@Deprecated('Deprecated') -const int kCurrentThreadID = 1; - -const int kCurrentUserFolderLocation = 1668641638; - -@Deprecated('Deprecated') -const int kCurrentUserFolderType = 1668641650; - -@Deprecated('Deprecated') -const int kCurrentUserRemoteFolderLocation = 1920299878; - -@Deprecated('Deprecated') -const int kCurrentUserRemoteFolderType = 1920299890; - -const int kCursiveConnectionType = 2; - -const int kCursiveSelector = 2; - -const int kCustomBadgeResourceID = -16455; - -const int kCustomBadgeResourceType = 1650549863; - -const int kCustomBadgeResourceVersion = 0; - -const int kCustomIconKCItemAttr = 1668641641; - -const int kCustomIconResource = -16455; - -@Deprecated('Deprecated') -const int kD0DispatchedCStackBased = 9; - -@Deprecated('Deprecated') -const int kD0DispatchedPascalStackBased = 8; - -@Deprecated('Deprecated') -const int kD1DispatchedPascalStackBased = 12; - -const int kDMCantBlock = -6224; - -const int kDMDisplayAlreadyInstalledErr = -6230; - -const int kDMDisplayNotFoundErr = -6229; - -const int kDMDriverNotDisplayMgrAwareErr = -6228; - -const int kDMFoundErr = -6232; - -const int kDMGenErr = -6220; - -const int kDMMainDisplayCannotMoveErr = -6231; - -const int kDMMirroringBlocked = -6223; - -const int kDMMirroringNotOn = -6225; - -const int kDMMirroringOnAlready = -6221; - -const int kDMNoDeviceTableclothErr = -6231; - -const int kDMNotFoundErr = -6229; - -const int kDMSWNotInitializedErr = -6227; - -const int kDMWrongNumberOfDisplays = -6222; - -const int kDOSJapanesePalmVariant = 1; - -const int kDOSJapaneseStandardVariant = 0; - -const int kDSpConfirmSwitchWarning = -30448; - -const int kDSpContextAlreadyReservedErr = -30444; - -const int kDSpContextNotFoundErr = -30446; - -const int kDSpContextNotReservedErr = -30445; - -const int kDSpFrameRateNotReadyErr = -30447; - -const int kDSpInternalErr = -30449; - -const int kDSpInvalidAttributesErr = -30443; - -const int kDSpInvalidContextErr = -30442; - -const int kDSpNotInitializedErr = -30440; - -const int kDSpStereoContextErr = -30450; - -const int kDSpSystemSWTooOldErr = -30441; - -const int kDTPAbortJobErr = 128; - -const int kDTPHoldJobErr = -4200; - -const int kDTPStopQueueErr = -4201; - -const int kDTPThirdPartySupported = 4; - -const int kDTPTryAgainErr = -4202; - -const int kDataAccessKCEvent = 10; - -const int kDataAccessKCEventMask = 1024; - -@Deprecated('Deprecated') -const int kDataAlignmentException = 17; - -@Deprecated('Deprecated') -const int kDataBreakpointException = 11; - -const int kDecomposeDiacriticsSelector = 2; - -const int kDecorativeBordersSelector = 4; - -const int kDecryptKCItemAttr = 1684366194; - -const int kDefaultCJKRomanSelector = 2; - -const int kDefaultCMMSignature = 1634758764; - -const int kDefaultChangedKCEvent = 9; - -const int kDefaultChangedKCEventMask = 512; - -const int kDefaultLowerCaseSelector = 0; - -const int kDefaultUpperCaseSelector = 0; - -const int kDeleteAliasIcon = 1684106345; - -const int kDeleteKCEvent = 4; - -const int kDeleteKCEventMask = 16; - -const int kDescriptionKCItemAttr = 1684370275; - -const int kDesignComplexityType = 18; - -const int kDesignLevel1Selector = 0; - -const int kDesignLevel2Selector = 1; - -const int kDesignLevel3Selector = 2; - -const int kDesignLevel4Selector = 3; - -const int kDesignLevel5Selector = 4; - -@Deprecated('Deprecated') -const int kDesktopFolderType = 1684370283; - -const int kDesktopIcon = 1684370283; - -const int kDesktopIconResource = -3992; - -@Deprecated('Deprecated') -const int kDesktopPicturesFolderType = 1685352644; - -const int kDesktopPrinterAliasType = 1685352545; - -@Deprecated('Deprecated') -const int kDeveloperApplicationsFolderType = 1684107376; - -@Deprecated('Deprecated') -const int kDeveloperDocsFolderType = 1684303715; - -@Deprecated('Deprecated') -const int kDeveloperFolderType = 1684371046; - -@Deprecated('Deprecated') -const int kDeveloperHelpFolderType = 1684371048; - -const int kDeviceInitiatedWake = 18; - -const int kDeviceToPCS = 1; - -const int kDiacriticsType = 9; - -const int kDiagonalFractionsSelector = 2; - -const int kDiamondAnnotationSelector = 8; - -const int kDictionariesFolderType = 1684628340; - -const int kDingbatsSelector = 1; - -const int kDiphthongLigaturesOffSelector = 11; - -const int kDiphthongLigaturesOnSelector = 10; - -@Deprecated('Deprecated') -const int kDirectoryServicesFolderType = 1685287542; - -@Deprecated('Deprecated') -const int kDirectoryServicesPlugInsFolderType = 1685089383; - -@Deprecated('Deprecated') -const int kDispatchedParameterPhase = 8; - -@Deprecated('Deprecated') -const int kDispatchedSelectorSizePhase = 6; - -@Deprecated('Deprecated') -const int kDispatchedSelectorSizeWidth = 2; - -@Deprecated('Deprecated') -const int kDisplayExtensionsFolderType = 1685287020; - -const int kDisplayModeAcceleratorBackedFlag = 4194304; - -const int kDisplayModeAlwaysShowFlag = 8; - -const int kDisplayModeBuiltInFlag = 1024; - -const int kDisplayModeDefaultFlag = 4; - -const int kDisplayModeInterlacedFlag = 64; - -const int kDisplayModeNativeFlag = 33554432; - -const int kDisplayModeNeverShowFlag = 128; - -const int kDisplayModeNotGraphicsQualityFlag = 4096; - -const int kDisplayModeNotPresetFlag = 512; - -const int kDisplayModeNotResizeFlag = 16; - -const int kDisplayModeRequiresPanFlag = 32; - -const int kDisplayModeSafeFlag = 2; - -const int kDisplayModeSafetyFlags = 7; - -const int kDisplayModeSimulscanFlag = 256; - -const int kDisplayModeStretchedFlag = 2048; - -const int kDisplayModeTelevisionFlag = 1048576; - -const int kDisplayModeValidFlag = 1; - -const int kDisplayModeValidForAirPlayFlag = 16777216; - -const int kDisplayModeValidForHiResFlag = 8388608; - -const int kDisplayModeValidForMirroringFlag = 2097152; - -const int kDisplayModeValidateAgainstDisplay = 8192; - -const int kDisplayProductIDGeneric = 1815; - -const int kDisplaySubPixelConfigurationDelta = 1; - -const int kDisplaySubPixelConfigurationQuad = 4; - -const int kDisplaySubPixelConfigurationStripe = 2; - -const int kDisplaySubPixelConfigurationStripeOffset = 3; - -const int kDisplaySubPixelConfigurationUndefined = 0; - -const int kDisplaySubPixelLayoutBGR = 2; - -const int kDisplaySubPixelLayoutQuadGBL = 3; - -const int kDisplaySubPixelLayoutQuadGBR = 4; - -const int kDisplaySubPixelLayoutRGB = 1; - -const int kDisplaySubPixelLayoutUndefined = 0; - -const int kDisplaySubPixelShapeElliptical = 5; - -const int kDisplaySubPixelShapeOval = 4; - -const int kDisplaySubPixelShapeRectangular = 3; - -const int kDisplaySubPixelShapeRound = 1; - -const int kDisplaySubPixelShapeSquare = 2; - -const int kDisplaySubPixelShapeUndefined = 0; - -const int kDisplayTextSelector = 1; - -const int kDisplayVendorIDUnknown = 1970170734; - -const int kDoFolderActionEvent = 1718578273; - -@Deprecated('Deprecated') -const int kDocumentationFolderType = 1768842863; - -const int kDocumentsFolderIcon = 1685021555; - -@Deprecated('Deprecated') -const int kDocumentsFolderType = 1685021555; - -@Deprecated('Deprecated') -const int kDomainLibraryFolderType = 1684826466; - -@Deprecated('Deprecated') -const int kDomainTopLevelFolderType = 1685352304; - -@Deprecated('Deprecated') -const int kDontCreateFolder = 0; - -const int kDontFindAppBySignature = 16384; - -@Deprecated('Deprecated') -const int kDontPassSelector = 8; - -@Deprecated('Deprecated') -const int kDownloadsFolderType = 1685026670; - -const int kDozeDemand = 7; - -const int kDozeRequest = 9; - -const int kDozeToFullWakeUp = 20; - -const int kDozeWakeUp = 8; - -@Deprecated('Deprecated') -const int kDropBoxFolderType = 1685221232; - -const int kDropFolderAliasType = 1717658738; - -const int kDropFolderIcon = 1684172664; - -const int kDropFolderIconResource = -3979; - -const int kDropIconVariant = 1685221232; - -@Deprecated('Deprecated') -const int kDurationForever = 2147483647; - -@Deprecated('Deprecated') -const int kDurationImmediate = 0; - -@Deprecated('Deprecated') -const int kDurationMicrosecond = -1; - -@Deprecated('Deprecated') -const int kDurationMillisecond = 1; - -const int kEACCESErr = -3212; - -const int kEADDRINUSEErr = -3247; - -const int kEADDRNOTAVAILErr = -3248; - -const int kEAGAINErr = -3210; - -const int kEALREADYErr = -3236; - -const int kEBADFErr = -3208; - -const int kEBADMSGErr = -3272; - -const int kEBUSYErr = -3215; - -const int kECANCELErr = -3273; - -const int kECONNABORTEDErr = -3252; - -const int kECONNREFUSEDErr = -3260; - -const int kECONNRESETErr = -3253; - -const int kEDEADLKErr = -3234; - -const int kEDESTADDRREQErr = -3238; - -const int kEEXISTErr = -3216; - -const int kEFAULTErr = -3213; - -const int kEHOSTDOWNErr = -3263; - -const int kEHOSTUNREACHErr = -3264; - -const int kEINPROGRESSErr = -3276; - -const int kEINTRErr = -3203; - -const int kEINVALErr = -3221; - -const int kEIOErr = -3204; - -const int kEISCONNErr = -3255; - -const int kEMSGSIZEErr = -3239; - -const int kEMailKCItemAttr = 1835100524; - -const int kENETDOWNErr = -3249; - -const int kENETRESETErr = -3251; - -const int kENETUNREACHErr = -3250; - -const int kENOBUFSErr = -3254; - -const int kENODATAErr = -3275; - -const int kENODEVErr = -3218; - -const int kENOENTErr = -3201; - -const int kENOMEMErr = -3211; - -const int kENOMSGErr = -3278; - -const int kENOPROTOOPTErr = -3241; - -const int kENORSRCErr = -3202; - -const int kENOSRErr = -3271; - -const int kENOSTRErr = -3274; - -const int kENOTCONNErr = -3256; - -const int kENOTSOCKErr = -3237; - -const int kENOTTYErr = -3224; - -const int kENXIOErr = -3205; - -const int kEOPNOTSUPPErr = -3244; - -const int kEPERMErr = -3200; - -const int kEPIPEErr = -3231; - -const int kEPROTOErr = -3269; - -const int kEPROTONOSUPPORTErr = -3242; - -const int kEPROTOTYPEErr = -3240; - -const int kERANGEErr = -3233; - -const int kESHUTDOWNErr = -3257; - -const int kESOCKTNOSUPPORTErr = -3243; - -const int kESRCHErr = -3277; - -const int kETIMEDOUTErr = -3259; - -const int kETIMEErr = -3270; - -const int kETOOMANYREFSErr = -3258; - -const int kEUC_CN_BasicVariant = 0; - -const int kEUC_CN_DOSVariant = 1; - -const int kEUC_KR_BasicVariant = 0; - -const int kEUC_KR_DOSVariant = 1; - -const int kEWOULDBLOCKErr = -3234; - -@Deprecated('Deprecated') -const int kEditorsFolderType = 1868850532; - -const int kEjectMediaIcon = 1701471587; - -const int kEncryptKCItemAttr = 1701733234; - -const int kEncryptPassword = 3; - -const int kEndDateKCItemAttr = 1701077364; - -const int kEndOfSentence = 2; - -const int kEndOfWord = 1; - -const int kEngravedTextSelector = 2; - -const int kEnterIdle = 24; - -const int kEnterRun = 11; - -const int kEnterStandby = 10; - -const int kEveryKCEventMask = 65535; - -@Deprecated('Deprecated') -const int kExactMatchThread = 16; - -@Deprecated('Deprecated') -const int kExcludedMemoryException = 5; - -const int kExitIdle = 26; - -const int kExpertCharactersSelector = 10; - -const int kExponentsOffSelector = 9; - -const int kExponentsOnSelector = 8; - -const int kExportedFolderAliasType = 1717658996; - -const int kExtendedFlagHasCustomBadge = 256; - -const int kExtendedFlagHasRoutingInfo = 4; - -const int kExtendedFlagObjectIsBusy = 128; - -const int kExtendedFlagsAreInvalid = 32768; - -@Deprecated('Deprecated') -const int kExtensionDisabledFolderType = 1702392900; - -const int kExtensionFolderAliasType = 1717659000; - -@Deprecated('Deprecated') -const int kExtensionFolderType = 1702392942; - -const int kExtensionsDisabledFolderIcon = 1702392900; - -const int kExtensionsFolderIcon = 1702392942; - -const int kExtensionsFolderIconResource = -3973; - -const int kFAAttachCommand = 1635018337; - -const int kFAEditCommand = 1701078625; - -const int kFAFileParam = 1717657964; - -const int kFAIndexParam = 1768842360; - -const int kFARemoveCommand = 1919772257; - -const int kFAServerApp = 1936945782; - -const int kFASuiteCode = 1717658479; - -const int kFBCaccessCanceled = -30521; - -const int kFBCaccessorStoreFailed = -30515; - -const int kFBCaddDocFailed = -30516; - -const int kFBCallocFailed = -30502; - -const int kFBCanalysisNotAvailable = -30527; - -const int kFBCbadIndexFile = -30505; - -const int kFBCbadIndexFileVersion = -30528; - -const int kFBCbadParam = -30503; - -const int kFBCbadSearchSession = -30531; - -const int kFBCcommitFailed = -30509; - -const int kFBCcompactionFailed = -30506; - -const int kFBCdeletionFailed = -30510; - -const int kFBCfileNotIndexed = -30504; - -const int kFBCflushFailed = -30517; - -const int kFBCillegalSessionChange = -30526; - -const int kFBCindexCreationFailed = -30514; - -const int kFBCindexDiskIOFailed = -30530; - -const int kFBCindexFileDestroyed = -30522; - -const int kFBCindexNotAvailable = -30523; - -const int kFBCindexNotFound = -30518; - -const int kFBCindexingCanceled = -30520; - -const int kFBCindexingFailed = -30508; - -const int kFBCmergingFailed = -30513; - -const int kFBCmoveFailed = -30511; - -const int kFBCnoIndexesFound = -30501; - -const int kFBCnoSearchSession = -30519; - -const int kFBCnoSuchHit = -30532; - -const int kFBCsearchFailed = -30524; - -const int kFBCsomeFilesNotIndexed = -30525; - -const int kFBCsummarizationCanceled = -30529; - -const int kFBCtokenizationFailed = -30512; - -const int kFBCvTwinExceptionErr = -30500; - -const int kFBCvalidationFailed = -30507; - -const int kFMCurrentFilterFormat = 0; - -const int kFMFontCallbackFilterSelector = 5; - -const int kFMFontContainerAccessErr = -985; - -const int kFMFontContainerFilterSelector = 2; - -const int kFMFontDirectoryFilterSelector = 6; - -const int kFMFontFamilyCallbackFilterSelector = 4; - -const int kFMFontFileRefFilterSelector = 10; - -const int kFMFontTableAccessErr = -984; - -const int kFMFontTechnologyFilterSelector = 1; - -const int kFMGenerationFilterSelector = 3; - -const int kFMInvalidFontErr = -982; - -const int kFMInvalidFontFamilyErr = -981; - -const int kFMIterationCompleted = -980; - -const int kFMIterationScopeModifiedErr = -983; - -const int kFMPostScriptFontTechnology = 1954115633; - -const int kFMTrueTypeFontTechnology = 1953658213; - -const int kFNDirectoryModifiedMessage = 1; - -const int kFNNoImplicitAllSubscription = 1; - -const int kFNNotifyInBackground = 2; - -const int kFNSBadFlattenedSizeErr = -29587; - -const int kFNSBadProfileVersionErr = -29583; - -const int kFNSBadReferenceVersionErr = -29581; - -const int kFNSDuplicateReferenceErr = -29584; - -const int kFNSInsufficientDataErr = -29586; - -const int kFNSInvalidProfileErr = -29582; - -const int kFNSInvalidReferenceErr = -29580; - -const int kFNSMismatchErr = -29585; - -const int kFNSNameNotFoundErr = -29589; - -@Deprecated('Deprecated') -const int kFPUNotNeeded = 8; - -@Deprecated('Deprecated') -const int kFSAliasInfoFSInfo = 32; - -@Deprecated('Deprecated') -const int kFSAliasInfoFinderInfo = 4; - -@Deprecated('Deprecated') -const int kFSAliasInfoIDs = 16; - -@Deprecated('Deprecated') -const int kFSAliasInfoIsDirectory = 8; - -@Deprecated('Deprecated') -const int kFSAliasInfoNone = 0; - -@Deprecated('Deprecated') -const int kFSAliasInfoTargetCreateDate = 2; - -@Deprecated('Deprecated') -const int kFSAliasInfoVolumeCreateDate = 1; - -@Deprecated('Deprecated') -const int kFSAliasInfoVolumeFlags = 64; - -const int kFSAllocAllOrNothingMask = 1; - -const int kFSAllocContiguousMask = 2; - -const int kFSAllocDefaultFlags = 0; - -const int kFSAllocNoRoundUpMask = 4; - -const int kFSAllocReservedMask = 65528; - -const int kFSAllowConcurrentAsyncIOBit = 3; - -const int kFSAllowConcurrentAsyncIOMask = 8; - -const int kFSCatInfoAccessDate = 256; - -const int kFSCatInfoAllDates = 992; - -const int kFSCatInfoAttrMod = 128; - -const int kFSCatInfoBackupDate = 512; - -const int kFSCatInfoContentMod = 64; - -const int kFSCatInfoCreateDate = 32; - -const int kFSCatInfoDataSizes = 16384; - -const int kFSCatInfoFSFileSecurityRef = 4194304; - -const int kFSCatInfoFinderInfo = 2048; - -const int kFSCatInfoFinderXInfo = 4096; - -const int kFSCatInfoGettableInfo = 262143; - -const int kFSCatInfoNodeFlags = 2; - -const int kFSCatInfoNodeID = 16; - -const int kFSCatInfoNone = 0; - -const int kFSCatInfoParentDirID = 8; - -const int kFSCatInfoPermissions = 1024; - -const int kFSCatInfoReserved = -262144; - -const int kFSCatInfoRsrcSizes = 32768; - -const int kFSCatInfoSetOwnership = 1048576; - -const int kFSCatInfoSettableInfo = 8163; - -const int kFSCatInfoSharingFlags = 65536; - -const int kFSCatInfoTextEncoding = 1; - -const int kFSCatInfoUserAccess = 524288; - -const int kFSCatInfoUserPrivs = 131072; - -const int kFSCatInfoValence = 8192; - -const int kFSCatInfoVolume = 4; - -const int kFSEjectVolumeForceEject = 1; - -const int kFSEventStreamCreateDeviceState = 512; - -const int kFSEventStreamCreateFlagFileEvents = 16; - -const int kFSEventStreamCreateFlagFullHistory = 128; - -const int kFSEventStreamCreateFlagIgnoreSelf = 8; - -const int kFSEventStreamCreateFlagMarkSelf = 32; - -const int kFSEventStreamCreateFlagNoDefer = 2; - -const int kFSEventStreamCreateFlagNone = 0; - -const int kFSEventStreamCreateFlagUseCFTypes = 1; - -const int kFSEventStreamCreateFlagUseExtendedData = 64; - -const int kFSEventStreamCreateFlagWatchRoot = 4; - -const int kFSEventStreamCreateWithDocID = 256; - -const int kFSEventStreamEventFlagEventIdsWrapped = 8; - -const int kFSEventStreamEventFlagHistoryDone = 16; - -const int kFSEventStreamEventFlagItemChangeOwner = 16384; - -const int kFSEventStreamEventFlagItemCloned = 4194304; - -const int kFSEventStreamEventFlagItemCreated = 256; - -const int kFSEventStreamEventFlagItemFinderInfoMod = 8192; - -const int kFSEventStreamEventFlagItemInodeMetaMod = 1024; - -const int kFSEventStreamEventFlagItemIsDir = 131072; - -const int kFSEventStreamEventFlagItemIsFile = 65536; - -const int kFSEventStreamEventFlagItemIsHardlink = 1048576; - -const int kFSEventStreamEventFlagItemIsLastHardlink = 2097152; - -const int kFSEventStreamEventFlagItemIsSymlink = 262144; - -const int kFSEventStreamEventFlagItemModified = 4096; - -const int kFSEventStreamEventFlagItemRemoved = 512; - -const int kFSEventStreamEventFlagItemRenamed = 2048; - -const int kFSEventStreamEventFlagItemXattrMod = 32768; - -const int kFSEventStreamEventFlagKernelDropped = 4; - -const int kFSEventStreamEventFlagMount = 64; - -const int kFSEventStreamEventFlagMustScanSubDirs = 1; - -const int kFSEventStreamEventFlagNone = 0; - -const int kFSEventStreamEventFlagOwnEvent = 524288; - -const int kFSEventStreamEventFlagRootChanged = 32; - -const int kFSEventStreamEventFlagUnmount = 128; - -const int kFSEventStreamEventFlagUserDropped = 2; - -const int kFSEventStreamEventIdSinceNow = -1; - -const int kFSFileOperationDefaultOptions = 0; - -const int kFSFileOperationDoNotMoveAcrossVolumes = 4; - -const int kFSFileOperationOverwrite = 1; - -const int kFSFileOperationSkipPreflight = 8; - -const int kFSFileOperationSkipSourcePermissionErrors = 2; - -const int kFSForceReadBit = 6; - -const int kFSForceReadMask = 64; - -const int kFSInvalidVolumeRefNum = 0; - -const int kFSIterateDelete = 2; - -const int kFSIterateFlat = 0; - -const int kFSIterateReserved = -4; - -const int kFSIterateSubtree = 1; - -const int kFSKMountVersion = 1179863841; - -const int kFSMountServerMarkDoNotDisplay = 1; - -const int kFSMountServerMountOnMountDir = 4; - -const int kFSMountServerMountWithoutNotification = 2; - -const int kFSMountServerSuppressConnectionUI = 64; - -const int kFSNewLineBit = 7; - -const int kFSNewLineCharMask = 65280; - -const int kFSNewLineMask = 128; - -const int kFSNoCacheBit = 5; - -const int kFSNoCacheMask = 32; - -const int kFSNodeCopyProtectBit = 6; - -const int kFSNodeCopyProtectMask = 64; - -const int kFSNodeDataOpenBit = 3; - -const int kFSNodeDataOpenMask = 8; - -const int kFSNodeForkOpenBit = 7; - -const int kFSNodeForkOpenMask = 128; - -const int kFSNodeHardLinkBit = 8; - -const int kFSNodeHardLinkMask = 256; - -const int kFSNodeInSharedBit = 2; - -const int kFSNodeInSharedMask = 4; - -const int kFSNodeIsDirectoryBit = 4; - -const int kFSNodeIsDirectoryMask = 16; - -const int kFSNodeIsMountedBit = 3; - -const int kFSNodeIsMountedMask = 8; - -const int kFSNodeIsSharePointBit = 5; - -const int kFSNodeIsSharePointMask = 32; - -const int kFSNodeLockedBit = 0; - -const int kFSNodeLockedMask = 1; - -const int kFSNodeResOpenBit = 2; - -const int kFSNodeResOpenMask = 4; - -const int kFSOperationStageComplete = 3; - -const int kFSOperationStagePreflighting = 1; - -const int kFSOperationStageRunning = 2; - -const int kFSOperationStageUndefined = 0; - -const int kFSPathMakeRefDefaultOptions = 0; - -const int kFSPathMakeRefDoNotFollowLeafSymlink = 1; - -const int kFSPleaseCacheBit = 4; - -const int kFSPleaseCacheMask = 16; - -const int kFSRdVerifyBit = 6; - -const int kFSRdVerifyMask = 64; - -const int kFSReplaceObjectDefaultOptions = 0; - -const int kFSReplaceObjectDoNotCheckObjectWriteAccess = 16; - -const int kFSReplaceObjectPreservePermissionInfo = 8; - -const int kFSReplaceObjectReplaceMetadata = 1; - -const int kFSReplaceObjectReplacePermissionInfo = 4; - -const int kFSReplaceObjectSaveOriginalAsABackup = 2; - -const int kFSUnmountVolumeForceUnmount = 1; - -const int kFSVolFlagDefaultVolumeBit = 5; - -const int kFSVolFlagDefaultVolumeMask = 32; - -const int kFSVolFlagFilesOpenBit = 6; - -const int kFSVolFlagFilesOpenMask = 64; - -const int kFSVolFlagHardwareLockedBit = 7; - -const int kFSVolFlagHardwareLockedMask = 128; - -const int kFSVolFlagJournalingActiveBit = 14; - -const int kFSVolFlagJournalingActiveMask = 16384; - -const int kFSVolFlagSoftwareLockedBit = 15; - -const int kFSVolFlagSoftwareLockedMask = 32768; - -const int kFSVolInfoBackupDate = 4; - -const int kFSVolInfoBlocks = 128; - -const int kFSVolInfoCheckedDate = 8; - -const int kFSVolInfoCreateDate = 1; - -const int kFSVolInfoDataClump = 1024; - -const int kFSVolInfoDirCount = 32; - -const int kFSVolInfoDriveInfo = 32768; - -const int kFSVolInfoFSInfo = 16384; - -const int kFSVolInfoFileCount = 16; - -const int kFSVolInfoFinderInfo = 4096; - -const int kFSVolInfoFlags = 8192; - -const int kFSVolInfoGettableInfo = 65535; - -const int kFSVolInfoModDate = 2; - -const int kFSVolInfoNextAlloc = 256; - -const int kFSVolInfoNextID = 2048; - -const int kFSVolInfoNone = 0; - -const int kFSVolInfoRsrcClump = 512; - -const int kFSVolInfoSettableInfo = 12292; - -const int kFSVolInfoSizes = 64; - -const int kFTPServerIcon = 1718906995; - -const int kFavoriteItemsIcon = 1717663346; - -const int kFavoritesFolderIcon = 1717663347; - -@Deprecated('Deprecated') -const int kFavoritesFolderType = 1717663347; - -const int kFemale = 2; - -@Deprecated('Deprecated') -const int kFetchReference = 2; - -@Deprecated('Deprecated') -const int kFileSystemSupportFolderType = 1718843763; - -@Deprecated('Deprecated') -const int kFindByContentFolderType = 1717724006; - -@Deprecated('Deprecated') -const int kFindByContentIndexesFolderType = 1717724024; - -@Deprecated('Deprecated') -const int kFindByContentPluginsFolderType = 1717724016; - -@Deprecated('Deprecated') -const int kFindSupportFolderType = 1718510707; - -const int kFinderIcon = 1179534418; - -const int kFirstFailKCStopOn = 3; - -const int kFirstIOKitNotificationType = 100; - -const int kFirstMagicBusyFiletype = 1652193568; - -const int kFirstPassKCStopOn = 2; - -const int kFleuronsSelector = 3; - -@Deprecated('Deprecated') -const int kFloatingPointException = 13; - -const int kFloppyIconResource = -3998; - -const int kFolderActionCode = 1633907822; - -@Deprecated('Deprecated') -const int kFolderActionsFolderType = 1717662566; - -const int kFolderClosedEvent = 1717791855; - -@Deprecated('Deprecated') -const int kFolderCreatedAdminPrivs = 16; - -@Deprecated('Deprecated') -const int kFolderCreatedAdminPrivsBit = 4; - -@Deprecated('Deprecated') -const int kFolderCreatedInvisible = 4; - -@Deprecated('Deprecated') -const int kFolderCreatedInvisibleBit = 2; - -@Deprecated('Deprecated') -const int kFolderCreatedNameLocked = 8; - -@Deprecated('Deprecated') -const int kFolderCreatedNameLockedBit = 3; - -@Deprecated('Deprecated') -const int kFolderInLocalOrRemoteUserFolder = 160; - -@Deprecated('Deprecated') -const int kFolderInRemoteUserFolderIfAvailable = 128; - -@Deprecated('Deprecated') -const int kFolderInRemoteUserFolderIfAvailableBit = 7; - -@Deprecated('Deprecated') -const int kFolderInUserFolder = 32; - -@Deprecated('Deprecated') -const int kFolderInUserFolderBit = 5; - -const int kFolderItemsAddedEvent = 1718052212; - -const int kFolderItemsRemovedEvent = 1718382451; - -@Deprecated('Deprecated') -const int kFolderManagerFolderInMacOS9FolderIfMacOSXIsInstalledBit = 10; - -@Deprecated('Deprecated') -const int kFolderManagerFolderInMacOS9FolderIfMacOSXIsInstalledMask = 1024; - -@Deprecated('Deprecated') -const int kFolderManagerLastDomain = -32760; - -@Deprecated('Deprecated') -const int kFolderManagerNewlyCreatedFolderIsLocalizedBit = 12; - -@Deprecated('Deprecated') -const int -kFolderManagerNewlyCreatedFolderShouldHaveDotLocalizedCreatedWithinMask = 4096; - -@Deprecated('Deprecated') -const int kFolderManagerNotCreatedOnRemoteVolumesBit = 11; - -@Deprecated('Deprecated') -const int kFolderManagerNotCreatedOnRemoteVolumesMask = 2048; - -@Deprecated('Deprecated') -const int kFolderMustStayOnSameVolume = 512; - -@Deprecated('Deprecated') -const int kFolderMustStayOnSameVolumeBit = 9; - -@Deprecated('Deprecated') -const int kFolderNeverMatchedInIdentifyFolder = 256; - -@Deprecated('Deprecated') -const int kFolderNeverMatchedInIdentifyFolderBit = 8; - -const int kFolderOpenedEvent = 1718579310; - -@Deprecated('Deprecated') -const int kFolderTrackedByAlias = 64; - -@Deprecated('Deprecated') -const int kFolderTrackedByAliasBit = 6; - -const int kFolderWindowMovedEvent = 1718839674; - -const int kFontAlbanianLanguage = 36; - -const int kFontAmharicLanguage = 85; - -const int kFontAmharicScript = 28; - -const int kFontArabicLanguage = 12; - -const int kFontArabicScript = 4; - -const int kFontArmenianLanguage = 51; - -const int kFontArmenianScript = 24; - -const int kFontAssameseLanguage = 68; - -const int kFontAymaraLanguage = 134; - -const int kFontAzerbaijanArLanguage = 50; - -const int kFontAzerbaijaniLanguage = 49; - -const int kFontBasqueLanguage = 129; - -const int kFontBengaliLanguage = 67; - -const int kFontBengaliScript = 13; - -const int kFontBulgarianLanguage = 44; - -const int kFontBurmeseLanguage = 77; - -const int kFontBurmeseScript = 19; - -const int kFontByelorussianLanguage = 46; - -const int kFontCatalanLanguage = 130; - -const int kFontChewaLanguage = 92; - -const int kFontChineseScript = 2; - -@Deprecated('Deprecated') -const int kFontCollectionsFolderType = 1718510444; - -const int kFontCopyrightName = 0; - -const int kFontCroatianLanguage = 18; - -const int kFontCustom16BitScript = 2; - -const int kFontCustom816BitScript = 1; - -const int kFontCustom8BitScript = 0; - -const int kFontCustomPlatform = 4; - -const int kFontCyrillicScript = 7; - -const int kFontCzechLanguage = 38; - -const int kFontDanishLanguage = 7; - -const int kFontDescriptionName = 10; - -const int kFontDesignerName = 9; - -const int kFontDesignerURLName = 12; - -const int kFontDevanagariScript = 9; - -const int kFontDutchLanguage = 4; - -const int kFontDzongkhaLanguage = 137; - -const int kFontEastEuropeanRomanScript = 29; - -const int kFontEnglishLanguage = 0; - -const int kFontEsperantoLanguage = 94; - -const int kFontEstonianLanguage = 27; - -const int kFontEthiopicScript = 28; - -const int kFontExtendedArabicScript = 31; - -const int kFontFaeroeseLanguage = 30; - -const int kFontFamilyName = 1; - -const int kFontFarsiLanguage = 31; - -const int kFontFinnishLanguage = 13; - -const int kFontFlemishLanguage = 34; - -const int kFontFrenchLanguage = 1; - -const int kFontFullName = 4; - -const int kFontGallaLanguage = 87; - -const int kFontGeezScript = 28; - -const int kFontGeorgianLanguage = 52; - -const int kFontGeorgianScript = 23; - -const int kFontGermanLanguage = 2; - -const int kFontGreekLanguage = 14; - -const int kFontGreekScript = 6; - -const int kFontGuaraniLanguage = 133; - -const int kFontGujaratiLanguage = 69; - -const int kFontGujaratiScript = 11; - -const int kFontGurmukhiScript = 10; - -const int kFontHebrewLanguage = 10; - -const int kFontHebrewScript = 5; - -const int kFontHindiLanguage = 21; - -const int kFontHungarianLanguage = 26; - -const int kFontISO10646_1993Semantics = 2; - -const int kFontIcelandicLanguage = 15; - -const int kFontIndonesianLanguage = 81; - -const int kFontIrishLanguage = 35; - -const int kFontItalianLanguage = 3; - -const int kFontJapaneseLanguage = 11; - -const int kFontJapaneseScript = 1; - -const int kFontJavaneseRomLanguage = 138; - -const int kFontKannadaLanguage = 73; - -const int kFontKannadaScript = 16; - -const int kFontKashmiriLanguage = 61; - -const int kFontKazakhLanguage = 48; - -const int kFontKhmerLanguage = 78; - -const int kFontKhmerScript = 20; - -const int kFontKirghizLanguage = 54; - -const int kFontKoreanLanguage = 23; - -const int kFontKoreanScript = 3; - -const int kFontKurdishLanguage = 60; - -const int kFontLaoLanguage = 79; - -const int kFontLaotianScript = 22; - -const int kFontLappishLanguage = 29; - -const int kFontLastReservedName = 255; - -const int kFontLatinLanguage = 131; - -const int kFontLatvianLanguage = 28; - -const int kFontLettishLanguage = 28; - -const int kFontLicenseDescriptionName = 13; - -const int kFontLicenseInfoURLName = 14; - -const int kFontLithuanianLanguage = 24; - -const int kFontMacCompatibleFullName = 18; - -const int kFontMacedonianLanguage = 43; - -const int kFontMacintoshPlatform = 1; - -const int kFontMalagasyLanguage = 93; - -const int kFontMalayArabicLanguage = 84; - -const int kFontMalayRomanLanguage = 83; - -const int kFontMalayalamLanguage = 72; - -const int kFontMalayalamScript = 17; - -const int kFontMalteseLanguage = 16; - -const int kFontManufacturerName = 8; - -const int kFontMarathiLanguage = 66; - -const int kFontMicrosoftPlatform = 3; - -const int kFontMicrosoftStandardScript = 1; - -const int kFontMicrosoftSymbolScript = 0; - -const int kFontMicrosoftUCS4Script = 10; - -const int kFontMoldavianLanguage = 53; - -const int kFontMongolianCyrLanguage = 58; - -const int kFontMongolianLanguage = 57; - -const int kFontMongolianScript = 27; - -const int kFontNepaliLanguage = 64; - -const int kFontNoLanguage = -1; - -const int kFontNoLanguageCode = -1; - -const int kFontNoName = -1; - -const int kFontNoNameCode = -1; - -const int kFontNoPlatform = -1; - -const int kFontNoPlatformCode = -1; - -const int kFontNoScript = -1; - -const int kFontNoScriptCode = -1; - -const int kFontNorwegianLanguage = 9; - -const int kFontOriyaLanguage = 71; - -const int kFontOriyaScript = 12; - -const int kFontOromoLanguage = 87; - -const int kFontPashtoLanguage = 59; - -const int kFontPersianLanguage = 31; - -const int kFontPolishLanguage = 25; - -const int kFontPortugueseLanguage = 8; - -const int kFontPostScriptCIDName = 20; - -const int kFontPostscriptName = 6; - -const int kFontPreferredFamilyName = 16; - -const int kFontPreferredSubfamilyName = 17; - -const int kFontPunjabiLanguage = 70; - -const int kFontQuechuaLanguage = 132; - -const int kFontRSymbolScript = 8; - -const int kFontReservedPlatform = 2; - -const int kFontRomanScript = 0; - -const int kFontRomanianLanguage = 37; - -const int kFontRuandaLanguage = 90; - -const int kFontRundiLanguage = 91; - -const int kFontRussian = 7; - -const int kFontRussianLanguage = 32; - -const int kFontSaamiskLanguage = 29; - -const int kFontSampleTextName = 19; - -const int kFontSanskritLanguage = 65; - -const int kFontSerbianLanguage = 42; - -const int kFontSimpChineseLanguage = 33; - -const int kFontSimpleChineseScript = 25; - -const int kFontSindhiLanguage = 62; - -const int kFontSindhiScript = 31; - -const int kFontSinhaleseLanguage = 76; - -const int kFontSinhaleseScript = 18; - -const int kFontSlavicScript = 29; - -const int kFontSlovakLanguage = 39; - -const int kFontSlovenianLanguage = 40; - -const int kFontSomaliLanguage = 88; - -const int kFontSpanishLanguage = 6; - -const int kFontStyleName = 2; - -const int kFontSuitcaseIcon = 1179011404; - -const int kFontSundaneseRomLanguage = 139; - -const int kFontSwahiliLanguage = 89; - -const int kFontSwedishLanguage = 5; - -const int kFontTagalogLanguage = 82; - -const int kFontTajikiLanguage = 55; - -const int kFontTamilLanguage = 74; - -const int kFontTamilScript = 14; - -const int kFontTatarLanguage = 135; - -const int kFontTeluguLanguage = 75; - -const int kFontTeluguScript = 15; - -const int kFontThaiLanguage = 22; - -const int kFontThaiScript = 21; - -const int kFontTibetanLanguage = 63; - -const int kFontTibetanScript = 26; - -const int kFontTigrinyaLanguage = 86; - -const int kFontTradChineseLanguage = 19; - -const int kFontTrademarkName = 7; - -const int kFontTraditionalChineseScript = 2; - -const int kFontTurkishLanguage = 17; - -const int kFontTurkmenLanguage = 56; - -const int kFontUighurLanguage = 136; - -const int kFontUkrainianLanguage = 45; - -const int kFontUnicodeDefaultSemantics = 0; - -const int kFontUnicodePlatform = 0; - -const int kFontUnicodeV1_1Semantics = 1; - -const int kFontUnicodeV2_0BMPOnlySemantics = 3; - -const int kFontUnicodeV2_0FullCoverageSemantics = 4; - -const int kFontUnicodeV4_0VariationSequenceSemantics = 5; - -const int kFontUnicode_FullRepertoire = 6; - -const int kFontUninterpretedScript = 32; - -const int kFontUniqueName = 3; - -const int kFontUrduLanguage = 20; - -const int kFontUzbekLanguage = 47; - -const int kFontVendorURLName = 11; - -const int kFontVersionName = 5; - -const int kFontVietnameseLanguage = 80; - -const int kFontVietnameseScript = 30; - -const int kFontWelshLanguage = 128; - -const int kFontYiddishLanguage = 41; - -const int kFontsFolderIcon = 1718578804; - -const int kFontsFolderIconResource = -3968; - -@Deprecated('Deprecated') -const int kFontsFolderType = 1718578804; - -const int kForkInfoFlagsFileLockedBit = 5; - -const int kForkInfoFlagsFileLockedMask = 32; - -const int kForkInfoFlagsLargeFileBit = 3; - -const int kForkInfoFlagsLargeFileMask = 8; - -const int kForkInfoFlagsModifiedBit = 7; - -const int kForkInfoFlagsModifiedMask = 128; - -const int kForkInfoFlagsOwnClumpBit = 6; - -const int kForkInfoFlagsOwnClumpMask = 64; - -const int kForkInfoFlagsResourceBit = 1; - -const int kForkInfoFlagsResourceMask = 2; - -const int kForkInfoFlagsSharedWriteBit = 4; - -const int kForkInfoFlagsSharedWriteMask = 16; - -const int kForkInfoFlagsWriteBit = 0; - -const int kForkInfoFlagsWriteLockedBit = 2; - -const int kForkInfoFlagsWriteLockedMask = 4; - -const int kForkInfoFlagsWriteMask = 1; - -const int kFormInterrobangOffSelector = 7; - -const int kFormInterrobangOnSelector = 6; - -const int kForwardArrowIcon = 1717662319; - -@Deprecated('Deprecated') -const int kFourByteCode = 3; - -const int kFractionsType = 11; - -@Deprecated('Deprecated') -const int kFragmentIsPrepared = 0; - -@Deprecated('Deprecated') -const int kFragmentNeedsPreparing = 2; - -const int kFramebufferDisableAltivecAccess = 524288; - -const int kFramebufferSupportsCopybackCache = 65536; - -const int kFramebufferSupportsGammaCorrection = 262144; - -const int kFramebufferSupportsWritethruCache = 131072; - -@Deprecated('Deprecated') -const int kFrameworksFolderType = 1718772077; - -const int kFullTrashIcon = 1718907496; - -const int kFullTrashIconResource = -3984; - -const int kFullWidthCJKRomanSelector = 3; - -const int kFullWidthIdeographsSelector = 0; - -const int kFullWidthKanaSelector = 0; - -@Deprecated('Deprecated') -const int kGenEditorsFolderType = -999988119; - -const int kGeneralFailureErr = -9070; - -const int kGenericApplicationIcon = 1095782476; - -const int kGenericApplicationIconResource = -3996; - -const int kGenericCDROMIcon = 1667523698; - -const int kGenericCDROMIconResource = -3987; - -const int kGenericComponentIcon = 1953001063; - -const int kGenericControlPanelIcon = 1095782467; - -const int kGenericControlStripModuleIcon = 1935959414; - -const int kGenericDeskAccessoryIcon = 1095782468; - -const int kGenericDeskAccessoryIconResource = -3991; - -const int kGenericDocumentIcon = 1685021557; - -const int kGenericDocumentIconResource = -4000; - -const int kGenericEditionFileIcon = 1701082214; - -const int kGenericEditionFileIconResource = -3989; - -const int kGenericExtensionIcon = 1229867348; - -const int kGenericExtensionIconResource = -16415; - -const int kGenericFileServerIcon = 1936881266; - -const int kGenericFileServerIconResource = -3972; - -const int kGenericFloppyIcon = 1718382713; - -const int kGenericFolderIcon = 1718379634; - -const int kGenericFolderIconResource = -3999; - -const int kGenericFontIcon = 1717987692; - -const int kGenericFontScalerIcon = 1935895666; - -const int kGenericHardDiskIcon = 1751413611; - -const int kGenericHardDiskIconResource = -3995; - -const int kGenericIDiskIcon = 1768190827; - -const int kGenericKCItemAttr = 1734700641; - -const int kGenericMoverObjectIcon = 1836021362; - -const int kGenericMoverObjectIconResource = -3969; - -const int kGenericNetworkIcon = 1735288180; - -const int kGenericPCCardIcon = 1885564259; - -const int kGenericPasswordKCItemClass = 1734700656; - -const int kGenericPreferencesIcon = 1886545254; - -const int kGenericPreferencesIconResource = -3971; - -const int kGenericQueryDocumentIcon = 1902473849; - -const int kGenericQueryDocumentIconResource = -16506; - -const int kGenericRAMDiskIcon = 1918987620; - -const int kGenericRAMDiskIconResource = -3988; - -const int kGenericRemovableMediaIcon = 1919774582; - -const int kGenericSharedLibaryIcon = 1936223330; - -const int kGenericStationeryIcon = 1935961955; - -const int kGenericStationeryIconResource = -3985; - -const int kGenericSuitcaseIcon = 1937074548; - -const int kGenericSuitcaseIconResource = -3970; - -const int kGenericURLIcon = 1735750252; - -const int kGenericWORMIcon = 2003792493; - -const int kGenericWindowIcon = 1735879022; - -@Deprecated('Deprecated') -const int kGetDebugOption = 1; - -const int kGetPowerInfo = 21; - -const int kGetPowerLevel = 16; - -const int kGetSelectedText = 1735686260; - -const int kGetWakeOnNetInfo = 22; - -const int kGlyphCollectionAdobeCNS1 = 1; - -const int kGlyphCollectionAdobeGB1 = 2; - -const int kGlyphCollectionAdobeJapan1 = 3; - -const int kGlyphCollectionAdobeJapan2 = 4; - -const int kGlyphCollectionAdobeKorea1 = 5; - -const int kGlyphCollectionGID = 0; - -const int kGlyphCollectionUnspecified = 255; - -const int kGridIcon = 1735551332; - -const int kGroupID2Name = 2; - -const int kGroupIcon = 1735554416; - -const int kGroupName2ID = 4; - -const int kGuestUserIcon = 1735750514; - -const int kHFSAllocationFileID = 6; - -const int kHFSAttributeDataFileID = 13; - -const int kHFSAttributesFileID = 8; - -const int kHFSAutoCandidateBit = 11; - -const int kHFSAutoCandidateMask = 2048; - -const int kHFSBadBlockFileID = 5; - -const int kHFSBinaryCompare = 188; - -const int kHFSBogusExtentFileID = 15; - -const int kHFSBootVolumeInconsistentBit = 11; - -const int kHFSBootVolumeInconsistentMask = 2048; - -const int kHFSCaseFolding = 207; - -const int kHFSCatExpandedTimesBit = 12; - -const int kHFSCatExpandedTimesMask = 4096; - -const int kHFSCatalogFileID = 4; - -const int kHFSCatalogKeyMaximumLength = 37; - -const int kHFSCatalogKeyMinimumLength = 6; - -const int kHFSCatalogNodeIDsReusedBit = 12; - -const int kHFSCatalogNodeIDsReusedMask = 4096; - -const int kHFSContentProtectionBit = 30; - -const int kHFSContentProtectionMask = 1073741824; - -const int kHFSDoNotFastDevPinBit = 9; - -const int kHFSDoNotFastDevPinMask = 512; - -const int kHFSExpandedTimesBit = 29; - -const int kHFSExpandedTimesMask = 536870912; - -const int kHFSExtentDensity = 3; - -const int kHFSExtentKeyMaximumLength = 7; - -const int kHFSExtentsFileID = 3; - -const int kHFSFastDevCandidateBit = 10; - -const int kHFSFastDevCandidateMask = 1024; - -const int kHFSFastDevPinnedBit = 8; - -const int kHFSFastDevPinnedMask = 256; - -const int kHFSFileLockedBit = 0; - -const int kHFSFileLockedMask = 1; - -const int kHFSFileRecord = 512; - -const int kHFSFileThreadRecord = 1024; - -const int kHFSFirstUserCatalogNodeID = 16; - -const int kHFSFolderRecord = 256; - -const int kHFSFolderThreadRecord = 768; - -const int kHFSHasAttributesBit = 2; - -const int kHFSHasAttributesMask = 4; - -const int kHFSHasChildLinkBit = 6; - -const int kHFSHasChildLinkMask = 64; - -const int kHFSHasDateAddedBit = 7; - -const int kHFSHasDateAddedMask = 128; - -const int kHFSHasFolderCountBit = 4; - -const int kHFSHasFolderCountMask = 16; - -const int kHFSHasLinkChainBit = 5; - -const int kHFSHasLinkChainMask = 32; - -const int kHFSHasSecurityBit = 3; - -const int kHFSHasSecurityMask = 8; - -const int kHFSJMountVersion = 1212568394; - -const int kHFSMDBAttributesMask = 33664; - -const int kHFSMaxAttrNameLen = 127; - -const int kHFSMaxFileNameChars = 31; - -const int kHFSMaxVolumeNameChars = 27; - -const int kHFSPlusAttrExtents = 48; - -const int kHFSPlusAttrForkData = 32; - -const int kHFSPlusAttrInlineData = 16; - -const int kHFSPlusAttrMinNodeSize = 4096; - -const int kHFSPlusCatalogKeyMaximumLength = 516; - -const int kHFSPlusCatalogKeyMinimumLength = 6; - -const int kHFSPlusCatalogMinNodeSize = 4096; - -const int kHFSPlusCreator = 1751544619; - -const int kHFSPlusExtentDensity = 8; - -const int kHFSPlusExtentKeyMaximumLength = 10; - -const int kHFSPlusExtentMinNodeSize = 512; - -const int kHFSPlusFileRecord = 2; - -const int kHFSPlusFileThreadRecord = 4; - -const int kHFSPlusFolderRecord = 1; - -const int kHFSPlusFolderThreadRecord = 3; - -const int kHFSPlusMaxFileNameChars = 255; - -const int kHFSPlusMountVersion = 825241136; - -const int kHFSPlusSigWord = 18475; - -const int kHFSPlusVersion = 4; - -const int kHFSRepairCatalogFileID = 14; - -const int kHFSRootFolderID = 2; - -const int kHFSRootParentID = 1; - -const int kHFSSigWord = 16964; - -const int kHFSStartupFileID = 7; - -const int kHFSThreadExistsBit = 1; - -const int kHFSThreadExistsMask = 2; - -const int kHFSUnusedNodeFixBit = 31; - -const int kHFSUnusedNodeFixMask = -2147483648; - -const int kHFSUnusedNodesFixDate = -974183296; - -const int kHFSUnusedNodesFixExpandedDate = 1237939200; - -const int kHFSVolumeHardwareLockBit = 7; - -const int kHFSVolumeHardwareLockMask = 128; - -const int kHFSVolumeInconsistentBit = 14; - -const int kHFSVolumeInconsistentMask = 16384; - -const int kHFSVolumeJournaledBit = 13; - -const int kHFSVolumeJournaledMask = 8192; - -const int kHFSVolumeNoCacheRequiredBit = 10; - -const int kHFSVolumeNoCacheRequiredMask = 1024; - -const int kHFSVolumeSoftwareLockBit = 15; - -const int kHFSVolumeSoftwareLockMask = 32768; - -const int kHFSVolumeSparedBlocksBit = 9; - -const int kHFSVolumeSparedBlocksMask = 512; - -const int kHFSVolumeUnmountedBit = 8; - -const int kHFSVolumeUnmountedMask = 256; - -const int kHFSXSigWord = 18520; - -const int kHFSXVersion = 5; - -const int kHIDBadLogPhysValuesErr = -13942; - -const int kHIDBadLogicalMaximumErr = -13933; - -const int kHIDBadLogicalMinimumErr = -13934; - -const int kHIDBadParameterErr = -13938; - -const int kHIDBaseError = -13950; - -const int kHIDBufferTooSmallErr = -13948; - -const int kHIDDeviceNotReady = -13910; - -const int kHIDEndOfDescriptorErr = -13936; - -const int kHIDIncompatibleReportErr = -13943; - -const int kHIDInvalidPreparsedDataErr = -13944; - -const int kHIDInvalidRangePageErr = -13923; - -const int kHIDInvalidReportLengthErr = -13940; - -const int kHIDInvalidReportTypeErr = -13941; - -const int kHIDInvertedLogicalRangeErr = -13932; - -const int kHIDInvertedPhysicalRangeErr = -13931; - -const int kHIDInvertedUsageRangeErr = -13929; - -const int kHIDNotEnoughMemoryErr = -13937; - -const int kHIDNotValueArrayErr = -13945; - -const int kHIDNullPointerErr = -13939; - -const int kHIDNullStateErr = -13949; - -const int kHIDReportCountZeroErr = -13925; - -const int kHIDReportIDZeroErr = -13924; - -const int kHIDReportSizeZeroErr = -13926; - -const int kHIDSuccess = 0; - -const int kHIDUnmatchedDesignatorRangeErr = -13927; - -const int kHIDUnmatchedStringRangeErr = -13928; - -const int kHIDUnmatchedUsageRangeErr = -13930; - -const int kHIDUsageNotFoundErr = -13946; - -const int kHIDUsagePageZeroErr = -13935; - -const int kHIDValueOutOfRangeErr = -13947; - -const int kHIDVersionIncompatibleErr = -13909; - -const int kHIShapeEnumerateInit = 1; - -const int kHIShapeEnumerateRect = 2; - -const int kHIShapeEnumerateTerminate = 3; - -const int kHIShapeParseFromBottom = 1; - -const int kHIShapeParseFromBottomRight = 3; - -const int kHIShapeParseFromLeft = 0; - -const int kHIShapeParseFromRight = 2; - -const int kHIShapeParseFromTop = 0; - -const int kHIShapeParseFromTopLeft = 0; - -const int kHTTPServerIcon = 1752461427; - -const int kHalfWidthCJKRomanSelector = 0; - -const int kHalfWidthIdeographsSelector = 2; - -const int kHalfWidthTextSelector = 2; - -@Deprecated('Deprecated') -const int kHandleIsResourceBit = 5; - -@Deprecated('Deprecated') -const int kHandleIsResourceMask = 32; - -@Deprecated('Deprecated') -const int kHandleLockedBit = 7; - -@Deprecated('Deprecated') -const int kHandleLockedMask = 128; - -@Deprecated('Deprecated') -const int kHandlePurgeableBit = 6; - -@Deprecated('Deprecated') -const int kHandlePurgeableMask = 64; - -const int kHanjaToHangulAltOneSelector = 7; - -const int kHanjaToHangulAltThreeSelector = 9; - -const int kHanjaToHangulAltTwoSelector = 8; - -const int kHanjaToHangulSelector = 1; - -const int kHardLinkFileType = 1751936619; - -const int kHardwareCursorDescriptorMajorVersion = 1; - -const int kHardwareCursorDescriptorMinorVersion = 0; - -const int kHardwareCursorInfoMajorVersion = 1; - -const int kHardwareCursorInfoMinorVersion = 0; - -const int kHasBeenInited = 256; - -const int kHasBundle = 8192; - -const int kHasCustomIcon = 1024; - -const int kHasNoINITs = 128; - -const int kHebrewFigureSpaceVariant = 1; - -const int kHebrewStandardVariant = 0; - -const int kHelpFolderIcon = -999789456; - -@Deprecated('Deprecated') -const int kHelpFolderType = -999789456; - -const int kHelpIcon = 1751477360; - -const int kHelpIconResource = -20271; - -const int kHideDiacriticsSelector = 1; - -const int kHiraganaToKatakanaSelector = 2; - -const int kHistoricalLigaturesOffSelector = 21; - -const int kHistoricalLigaturesOnSelector = 20; - -const int kHojoCharactersSelector = 12; - -const int kHorizontalConstraint = 2; - -const int kHuge1BitMask = 1768122403; - -const int kHuge32BitData = 1768436530; - -const int kHuge4BitData = 1768122420; - -const int kHuge8BitData = 1768122424; - -const int kHuge8BitMask = 1748528491; - -const int kHyphenToEnDashOffSelector = 3; - -const int kHyphenToEnDashOnSelector = 2; - -const int kHyphenToMinusOffSelector = 1; - -const int kHyphenToMinusOnSelector = 0; - -const int kHyphensToEmDashOffSelector = 1; - -const int kHyphensToEmDashOnSelector = 0; - -const int kICAttrLockedBit = 0; - -const int kICAttrLockedMask = 1; - -const int kICAttrNoChange = -1; - -const int kICAttrVolatileBit = 1; - -const int kICAttrVolatileMask = 2; - -const int kICComponentInterfaceVersion = 262144; - -const int kICComponentInterfaceVersion0 = 0; - -const int kICComponentInterfaceVersion1 = 65536; - -const int kICComponentInterfaceVersion2 = 131072; - -const int kICComponentInterfaceVersion3 = 196608; - -const int kICComponentInterfaceVersion4 = 262144; - -const int kICComponentVersion = 0; - -const int kICCreator = 1229144432; - -const int kICEditPreferenceEvent = 1229144432; - -const int kICEditPreferenceEventClass = 1229144432; - -const int kICFileSpecHeaderSize = 106; - -const int kICFileType = 1229144432; - -const int kICMapBinaryBit = 0; - -const int kICMapBinaryMask = 1; - -const int kICMapDataForkBit = 2; - -const int kICMapDataForkMask = 4; - -const int kICMapFixedLength = 22; - -const int kICMapNotIncomingBit = 4; - -const int kICMapNotIncomingMask = 16; - -const int kICMapNotOutgoingBit = 5; - -const int kICMapNotOutgoingMask = 32; - -const int kICMapPostBit = 3; - -const int kICMapPostMask = 8; - -const int kICMapResourceForkBit = 1; - -const int kICMapResourceForkMask = 2; - -const int kICNilProfileID = 0; - -const int kICNoUserInteractionBit = 0; - -const int kICNoUserInteractionMask = 1; - -const int kICNumVersion = 1; - -const int kICServicesTCPBit = 0; - -const int kICServicesTCPMask = 1; - -const int kICServicesUDPBit = 1; - -const int kICServicesUDPMask = 2; - -const int kIOAnalogSetupExpected = 2; - -const int kIOAnalogSignalLevel_0700_0000 = 3; - -const int kIOAnalogSignalLevel_0700_0300 = 0; - -const int kIOAnalogSignalLevel_0714_0286 = 1; - -const int kIOAnalogSignalLevel_1000_0400 = 2; - -const int kIOAsyncCalloutCount = 3; - -const int kIOAsyncCalloutFuncIndex = 1; - -const int kIOAsyncCalloutRefconIndex = 2; - -const int kIOAsyncCompletionNotificationType = 150; - -const int kIOAsyncReservedCount = 1; - -const int kIOAsyncReservedIndex = 0; - -const int kIOBitsPerColorComponent10 = 4; - -const int kIOBitsPerColorComponent12 = 8; - -const int kIOBitsPerColorComponent16 = 16; - -const int kIOBitsPerColorComponent6 = 1; - -const int kIOBitsPerColorComponent8 = 2; - -const int kIOBitsPerColorComponentNotSupported = 0; - -const int kIOBuiltinPanelPowerAttribute = 1886284912; - -const int kIOCLUTPixels = 0; - -const int kIOCSyncDisable = 4; - -const int kIOCapturedAttribute = 1667330148; - -const int kIOClamshellStateAttribute = 1668047213; - -const int kIOColorimetryAdobeRGB = 8; - -const int kIOColorimetryBT2020 = 256; - -const int kIOColorimetryBT2100 = 512; - -const int kIOColorimetryBT601 = 64; - -const int kIOColorimetryBT709 = 128; - -const int kIOColorimetryDCIP3 = 4; - -const int kIOColorimetryNativeRGB = 1; - -const int kIOColorimetryNotSupported = 0; - -const int kIOColorimetryWGRGB = 32; - -const int kIOColorimetrysRGB = 2; - -const int kIOColorimetryxvYCC = 16; - -const int kIOConnectMethodVarOutputSize = -3; - -const int kIOConnectionBuiltIn = 2048; - -const int kIOConnectionStereoSync = 32768; - -const int kIOCopybackCache = 3; - -const int kIOCopybackInnerCache = 5; - -const int kIOCursorControlAttribute = 1668445027; - -const int kIODPEventAutomatedTestRequest = 257; - -const int kIODPEventContentProtection = 258; - -const int kIODPEventForceRetrain = 3; - -const int kIODPEventIdle = 2; - -const int kIODPEventMCCS = 259; - -const int kIODPEventRemoteControlCommandPending = 256; - -const int kIODPEventSinkSpecific = 260; - -const int kIODPEventStart = 1; - -const int kIODSCBlockPredEnable = 32; - -const int kIODefaultCache = 0; - -const int kIODefaultMemoryType = 0; - -const int kIODeferCLUTSetAttribute = 1986227316; - -const int kIODetailedTimingValid = -2147483648; - -const int kIODigitalSignal = 1; - -const int kIODisplayAssertionConnectType = 61074; - -const int kIODisplayColorMode = 1668904310; - -const int kIODisplayDitherAll = 255; - -const int kIODisplayDitherDefault = 128; - -const int kIODisplayDitherDisable = 0; - -const int kIODisplayDitherFrameRateControl = 4; - -const int kIODisplayDitherRGBShift = 0; - -const int kIODisplayDitherSpatial = 1; - -const int kIODisplayDitherTemporal = 2; - -const int kIODisplayDitherYCbCr422Shift = 16; - -const int kIODisplayDitherYCbCr444Shift = 8; - -const int kIODisplayModeIDBootProgrammable = -5; - -const int kIODisplayModeIDReservedBase = -2147483648; - -const int kIODisplayNeedsCEAUnderscan = 1; - -const int kIODisplayPowerStateMinUsable = 1; - -const int kIODisplayPowerStateOff = 0; - -const int kIODisplayPowerStateOn = 2; - -const int kIODisplayRGBColorComponentBits10 = 4; - -const int kIODisplayRGBColorComponentBits12 = 8; - -const int kIODisplayRGBColorComponentBits14 = 16; - -const int kIODisplayRGBColorComponentBits16 = 32; - -const int kIODisplayRGBColorComponentBits6 = 1; - -const int kIODisplayRGBColorComponentBits8 = 2; - -const int kIODisplayRGBColorComponentBitsUnknown = 0; - -const int kIODisplayYCbCr422ColorComponentBits10 = 262144; - -const int kIODisplayYCbCr422ColorComponentBits12 = 524288; - -const int kIODisplayYCbCr422ColorComponentBits14 = 1048576; - -const int kIODisplayYCbCr422ColorComponentBits16 = 2097152; - -const int kIODisplayYCbCr422ColorComponentBits6 = 65536; - -const int kIODisplayYCbCr422ColorComponentBits8 = 131072; - -const int kIODisplayYCbCr422ColorComponentBitsUnknown = 0; - -const int kIODisplayYCbCr444ColorComponentBits10 = 1024; - -const int kIODisplayYCbCr444ColorComponentBits12 = 2048; - -const int kIODisplayYCbCr444ColorComponentBits14 = 4096; - -const int kIODisplayYCbCr444ColorComponentBits16 = 8192; - -const int kIODisplayYCbCr444ColorComponentBits6 = 256; - -const int kIODisplayYCbCr444ColorComponentBits8 = 512; - -const int kIODisplayYCbCr444ColorComponentBitsUnknown = 0; - -const int kIODriverPowerAttribute = 1685090167; - -const int kIODynamicRangeDolbyNormalMode = 4; - -const int kIODynamicRangeDolbyTunnelMode = 8; - -const int kIODynamicRangeHDR10 = 2; - -const int kIODynamicRangeNotSupported = 0; - -const int kIODynamicRangeSDR = 1; - -const int kIODynamicRangeTraditionalGammaHDR = 16; - -const int kIODynamicRangeTraditionalGammaSDR = 32; - -const int kIOFBAVSignalTypeDP = 16; - -const int kIOFBAVSignalTypeDVI = 2; - -const int kIOFBAVSignalTypeHDMI = 8; - -const int kIOFBAVSignalTypeUnknown = 0; - -const int kIOFBAVSignalTypeVGA = 1; - -const int kIOFBBitRateHBR = 10; - -const int kIOFBBitRateHBR2 = 20; - -const int kIOFBBitRateRBR = 6; - -const int kIOFBBlueGammaScaleAttribute = 1735617634; - -const int kIOFBChangedInterruptType = 1667788391; - -const int kIOFBConnectInterruptType = 1684236576; - -const int kIOFBDisplayPortInterruptType = 1685088626; - -const int kIOFBDisplayPortLinkChangeInterruptType = 1685089387; - -const int kIOFBDisplayPortTrainingAttribute = 1685091425; - -const int kIOFBDisplayState = 1685288052; - -const int kIOFBDisplayState_AlreadyActive = 1; - -const int kIOFBDisplayState_Mask = 7; - -const int kIOFBDisplayState_PipelineBlack = 4; - -const int kIOFBDisplayState_RestoredProfile = 2; - -const int kIOFBFrameInterruptType = 1718772077; - -const int kIOFBGreenGammaScaleAttribute = 1735617639; - -const int kIOFBHBLInterruptType = 1751280672; - -const int kIOFBHDCPLimit_AllowAll = 0; - -const int kIOFBHDCPLimit_NoHDCP1x = 1; - -const int kIOFBHDCPLimit_NoHDCP20Type0 = 2; - -const int kIOFBHDCPLimit_NoHDCP20Type1 = 4; - -const int kIOFBHDRMetaDataAttribute = 1751413357; - -const int kIOFBLimitHDCPAttribute = 1751409520; - -const int kIOFBLimitHDCPStateAttribute = 1934115907; - -const int kIOFBLinkDownspreadMax = 1; - -const int kIOFBLinkDownspreadNone = 0; - -const int kIOFBLinkPreEmphasisLevel0 = 0; - -const int kIOFBLinkPreEmphasisLevel1 = 1; - -const int kIOFBLinkPreEmphasisLevel2 = 2; - -const int kIOFBLinkPreEmphasisLevel3 = 3; - -const int kIOFBLinkScramblerAlternate = 1; - -const int kIOFBLinkScramblerNormal = 0; - -const int kIOFBLinkVoltageLevel0 = 0; - -const int kIOFBLinkVoltageLevel1 = 1; - -const int kIOFBLinkVoltageLevel2 = 2; - -const int kIOFBLinkVoltageLevel3 = 3; - -const int kIOFBMCCSInterruptType = 1835230067; - -const int kIOFBNS_Dim = 3; - -const int kIOFBNS_DisplayStateMask = 3840; - -const int kIOFBNS_DisplayStateShift = 8; - -const int kIOFBNS_Doze = 2; - -const int kIOFBNS_GenerationMask = 2147418112; - -const int kIOFBNS_GenerationShift = 16; - -const int kIOFBNS_MessageMask = 15; - -const int kIOFBNS_Rendezvous = -2023406815; - -const int kIOFBNS_Sleep = 0; - -const int kIOFBNS_UnDim = 4; - -const int kIOFBNS_Wake = 1; - -const int kIOFBOfflineInterruptType = 1919249782; - -const int kIOFBOnlineInterruptType = 1633969184; - -const int kIOFBRedGammaScaleAttribute = 1735617650; - -const int kIOFBServerConnectType = 0; - -const int kIOFBSharedConnectType = 1; - -const int kIOFBStop = 1937010544; - -const int kIOFBSystemAperture = 0; - -const int kIOFBUserRequestProbe = 1; - -const int kIOFBVBLInterruptType = 1986161696; - -const int kIOFBVariableRefreshRate = 1987211839; - -const int kIOFBWakeInterruptType = 1987535211; - -const int kIOFixedCLUTPixels = 1; - -const int kIOGDiagnoseConnectType = 38744; - -const int kIOGDiagnoseGTraceType = 11452; - -const int kIOHSyncDisable = 1; - -const int kIOHardwareCursorAttribute = 1668445042; - -const int kIOHibernatePreviewActive = 1; - -const int kIOHibernatePreviewUpdates = 2; - -const int kIOInhibitCache = 1; - -const int kIOInterestCalloutCount = 4; - -const int kIOInterestCalloutFuncIndex = 1; - -const int kIOInterestCalloutRefconIndex = 2; - -const int kIOInterestCalloutServiceIndex = 3; - -const int kIOInterlacedCEATiming = 4; - -const int kIOKitNoticationMsgSizeMask = 3; - -const int kIOKitNoticationTypeMask = 4095; - -const int kIOKitNoticationTypeSizeAdjShift = 30; - -const int kIOMapAnywhere = 1; - -const int kIOMapCacheMask = 3840; - -const int kIOMapCacheShift = 8; - -const int kIOMapCopybackCache = 768; - -const int kIOMapCopybackInnerCache = 1280; - -const int kIOMapDefaultCache = 0; - -const int kIOMapGuardedLarge = -2147483648; - -const int kIOMapGuardedMask = -1073741824; - -const int kIOMapGuardedSmall = 1073741824; - -const int kIOMapInhibitCache = 256; - -const int kIOMapOverwrite = 536870912; - -const int kIOMapPostedCombinedReordered = 2304; - -const int kIOMapPostedReordered = 2048; - -const int kIOMapPostedWrite = 1536; - -const int kIOMapPrefault = 268435456; - -const int kIOMapReadOnly = 4096; - -const int kIOMapRealTimeCache = 1792; - -const int kIOMapReference = 33554432; - -const int kIOMapStatic = 16777216; - -const int kIOMapUnique = 67108864; - -const int kIOMapUserOptionsMask = 4095; - -const int kIOMapWriteCombineCache = 1024; - -const int kIOMapWriteThruCache = 512; - -const int kIOMatchingCalloutCount = 3; - -const int kIOMatchingCalloutFuncIndex = 1; - -const int kIOMatchingCalloutRefconIndex = 2; - -const int kIOMaxBusStall10usec = 10000; - -const int kIOMaxBusStall20usec = 20000; - -const int kIOMaxBusStall25usec = 25000; - -const int kIOMaxBusStall30usec = 30000; - -const int kIOMaxBusStall40usec = 40000; - -const int kIOMaxBusStall5usec = 5000; - -const int kIOMaxBusStallNone = 0; - -const int kIOMaxPixelBits = 64; - -const int kIOMirrorAttribute = 1835627122; - -const int kIOMirrorDefault = 1; - -const int kIOMirrorDefaultAttribute = 1836213350; - -const int kIOMirrorForced = 2; - -const int kIOMirrorHWClipped = 1073741824; - -const int kIOMirrorIsMirrored = 536870912; - -const int kIOMirrorIsPrimary = -2147483648; - -const int kIOMonoDirectPixels = 3; - -const int kIOMonoInverseDirectPixels = 4; - -const int kIOMultiAlignedTiming = 64; - -const int kIONTSCTiming = 8; - -const int kIONoSeparateSyncControl = 64; - -const int kIOPALTiming = 16; - -const int kIOPixelEncodingNotSupported = 0; - -const int kIOPixelEncodingRGB444 = 1; - -const int kIOPixelEncodingYCbCr420 = 8; - -const int kIOPixelEncodingYCbCr422 = 4; - -const int kIOPixelEncodingYCbCr444 = 2; - -const int kIOPostedCombinedReordered = 9; - -const int kIOPostedReordered = 8; - -const int kIOPostedWrite = 6; - -const int kIOPowerAttribute = 1886353266; - -const int kIOPowerStateAttribute = 1886876275; - -const int kIORGBDirectPixels = 2; - -const int kIORGBSignedDirectPixels = 5; - -const int kIORGBSignedFloatingPointPixels = 6; - -const int kIORangeBitsPerColorComponent10 = 4; - -const int kIORangeBitsPerColorComponent12 = 8; - -const int kIORangeBitsPerColorComponent16 = 16; - -const int kIORangeBitsPerColorComponent6 = 1; - -const int kIORangeBitsPerColorComponent8 = 2; - -const int kIORangeBitsPerColorComponentNotSupported = 0; - -const int kIORangeColorimetryAdobeRGB = 8; - -const int kIORangeColorimetryBT2020 = 256; - -const int kIORangeColorimetryBT2100 = 512; - -const int kIORangeColorimetryBT601 = 64; - -const int kIORangeColorimetryBT709 = 128; - -const int kIORangeColorimetryDCIP3 = 4; - -const int kIORangeColorimetryNativeRGB = 1; - -const int kIORangeColorimetryNotSupported = 0; - -const int kIORangeColorimetryWGRGB = 32; - -const int kIORangeColorimetrysRGB = 2; - -const int kIORangeColorimetryxvYCC = 16; - -const int kIORangeDynamicRangeDolbyNormalMode = 4; - -const int kIORangeDynamicRangeDolbyTunnelMode = 8; - -const int kIORangeDynamicRangeHDR10 = 2; - -const int kIORangeDynamicRangeNotSupported = 0; - -const int kIORangeDynamicRangeSDR = 1; - -const int kIORangeDynamicRangeTraditionalGammaHDR = 16; - -const int kIORangeDynamicRangeTraditionalGammaSDR = 32; - -const int kIORangePixelEncodingNotSupported = 0; - -const int kIORangePixelEncodingRGB444 = 1; - -const int kIORangePixelEncodingYCbCr420 = 8; - -const int kIORangePixelEncodingYCbCr422 = 4; - -const int kIORangePixelEncodingYCbCr444 = 2; - -const int kIORangeSupportsCompositeSync = 4; - -const int kIORangeSupportsInterlacedCEATiming = 4; - -const int kIORangeSupportsInterlacedCEATimingWithConfirm = 8; - -const int kIORangeSupportsMultiAlignedTiming = 64; - -const int kIORangeSupportsSeparateSyncs = 1; - -const int kIORangeSupportsSignal_0700_0000 = 8; - -const int kIORangeSupportsSignal_0700_0300 = 1; - -const int kIORangeSupportsSignal_0714_0286 = 2; - -const int kIORangeSupportsSignal_1000_0400 = 4; - -const int kIORangeSupportsSyncOnGreen = 2; - -const int kIORangeSupportsVRR = 16; - -const int kIORangeSupportsVSyncSerration = 8; - -const int kIORealTimeCache = 7; - -const int kIORegistryIterateParents = 2; - -const int kIORegistryIterateRecursively = 1; - -const int kIOScaleCanBorderInsetOnly = 64; - -const int kIOScaleCanDownSamplePixels = 4; - -const int kIOScaleCanRotate = 32; - -const int kIOScaleCanScaleInterlaced = 8; - -const int kIOScaleCanSupportInset = 16; - -const int kIOScaleCanUpSamplePixels = 2; - -const int kIOScaleInvertX = 32; - -const int kIOScaleInvertY = 64; - -const int kIOScaleRotate0 = 0; - -const int kIOScaleRotate180 = 96; - -const int kIOScaleRotate270 = 80; - -const int kIOScaleRotate90 = 48; - -const int kIOScaleRotateFlags = 240; - -const int kIOScaleStretchOnly = 1; - -const int kIOScaleStretchToFit = 1; - -const int kIOScaleSwapAxes = 16; - -const int kIOScalingInfoValid = 1073741824; - -const int kIOServiceInteractionAllowed = 1; - -const int kIOServiceMatchedNotificationType = 101; - -const int kIOServiceMessageNotificationType = 160; - -const int kIOServicePublishNotificationType = 100; - -const int kIOServiceTerminatedNotificationType = 102; - -const int kIOSurfaceCopybackCache = 3; - -const int kIOSurfaceCopybackInnerCache = 5; - -const int kIOSurfaceDefaultCache = 0; - -const int kIOSurfaceInhibitCache = 1; - -const int kIOSurfaceMapCacheShift = 8; - -const int kIOSurfaceMapCopybackCache = 768; - -const int kIOSurfaceMapCopybackInnerCache = 1280; - -const int kIOSurfaceMapDefaultCache = 0; - -const int kIOSurfaceMapInhibitCache = 256; - -const int kIOSurfaceMapWriteCombineCache = 1024; - -const int kIOSurfaceMapWriteThruCache = 512; - -const int kIOSurfaceWriteCombineCache = 4; - -const int kIOSurfaceWriteThruCache = 2; - -const int kIOSyncOnBlue = 8; - -const int kIOSyncOnGreen = 16; - -const int kIOSyncOnRed = 32; - -const int kIOSyncPositivePolarity = 1; - -const int kIOSystemPowerAttribute = 1936750450; - -const int kIOSystemStateSleepDescriptionHibernateStateHibernating = 1; - -const int kIOSystemStateSleepDescriptionHibernateStateInactive = 0; - -const int kIOSystemStateSleepDescriptionHibernateStateWakingFromHibernate = 2; - -const int kIOTimingIDAppleNTSC_FF = 232; - -const int kIOTimingIDAppleNTSC_FFconv = 236; - -const int kIOTimingIDAppleNTSC_ST = 230; - -const int kIOTimingIDAppleNTSC_STconv = 234; - -const int kIOTimingIDApplePAL_FF = 240; - -const int kIOTimingIDApplePAL_FFconv = 244; - -const int kIOTimingIDApplePAL_ST = 238; - -const int kIOTimingIDApplePAL_STconv = 242; - -const int kIOTimingIDApple_0x0_0hz_Offline = 550; - -const int kIOTimingIDApple_1024x768_75hz = 210; - -const int kIOTimingIDApple_1152x870_75hz = 220; - -const int kIOTimingIDApple_512x384_60hz = 130; - -const int kIOTimingIDApple_560x384_60hz = 135; - -const int kIOTimingIDApple_640x400_67hz = 145; - -const int kIOTimingIDApple_640x480_67hz = 140; - -const int kIOTimingIDApple_640x818_75hz = 165; - -const int kIOTimingIDApple_640x870_75hz = 160; - -const int kIOTimingIDApple_832x624_75hz = 170; - -const int kIOTimingIDApple_FixedRateLCD = 42; - -const int kIOTimingIDFilmRate_48hz = 410; - -const int kIOTimingIDGTF_640x480_120hz = 159; - -const int kIOTimingIDInvalid = 0; - -const int kIOTimingIDSMPTE240M_60hz = 400; - -const int kIOTimingIDSony_1600x1024_76hz = 500; - -const int kIOTimingIDSony_1920x1080_60hz = 510; - -const int kIOTimingIDSony_1920x1080_72hz = 520; - -const int kIOTimingIDSony_1920x1200_76hz = 540; - -const int kIOTimingIDVESA_1024x768_60hz = 190; - -const int kIOTimingIDVESA_1024x768_70hz = 200; - -const int kIOTimingIDVESA_1024x768_75hz = 204; - -const int kIOTimingIDVESA_1024x768_85hz = 208; - -const int kIOTimingIDVESA_1152x864_75hz = 215; - -const int kIOTimingIDVESA_1280x1024_60hz = 260; - -const int kIOTimingIDVESA_1280x1024_75hz = 262; - -const int kIOTimingIDVESA_1280x1024_85hz = 268; - -const int kIOTimingIDVESA_1280x960_60hz = 252; - -const int kIOTimingIDVESA_1280x960_75hz = 250; - -const int kIOTimingIDVESA_1280x960_85hz = 254; - -const int kIOTimingIDVESA_1360x768_60hz = 590; - -const int kIOTimingIDVESA_1600x1200_60hz = 280; - -const int kIOTimingIDVESA_1600x1200_65hz = 282; - -const int kIOTimingIDVESA_1600x1200_70hz = 284; - -const int kIOTimingIDVESA_1600x1200_75hz = 286; - -const int kIOTimingIDVESA_1600x1200_80hz = 288; - -const int kIOTimingIDVESA_1600x1200_85hz = 289; - -const int kIOTimingIDVESA_1792x1344_60hz = 296; - -const int kIOTimingIDVESA_1792x1344_75hz = 298; - -const int kIOTimingIDVESA_1856x1392_60hz = 300; - -const int kIOTimingIDVESA_1856x1392_75hz = 302; - -const int kIOTimingIDVESA_1920x1440_60hz = 304; - -const int kIOTimingIDVESA_1920x1440_75hz = 306; - -const int kIOTimingIDVESA_640x480_60hz = 150; - -const int kIOTimingIDVESA_640x480_72hz = 152; - -const int kIOTimingIDVESA_640x480_75hz = 154; - -const int kIOTimingIDVESA_640x480_85hz = 158; - -const int kIOTimingIDVESA_800x600_56hz = 180; - -const int kIOTimingIDVESA_800x600_60hz = 182; - -const int kIOTimingIDVESA_800x600_72hz = 184; - -const int kIOTimingIDVESA_800x600_75hz = 186; - -const int kIOTimingIDVESA_800x600_85hz = 188; - -const int kIOTimingIDVESA_848x480_60hz = 570; - -const int kIOTimingRangeV1 = 0; - -const int kIOTimingRangeV2 = 2; - -const int kIOTriStateSyncs = 128; - -const int kIOVRAMSaveAttribute = 1987212150; - -const int kIOVSyncDisable = 2; - -const int kIOWSAA_Accelerated = 1; - -const int kIOWSAA_DeferEnd = 512; - -const int kIOWSAA_DeferStart = 256; - -const int kIOWSAA_DriverOpen = 5; - -const int kIOWSAA_From_Accelerated = 2; - -const int kIOWSAA_Hibernate = 4; - -const int kIOWSAA_NonConsoleDevice = 1024; - -const int kIOWSAA_Reserved = -268435456; - -const int kIOWSAA_Sleep = 4; - -const int kIOWSAA_StateMask = 15; - -const int kIOWSAA_To_Accelerated = 3; - -const int kIOWSAA_Transactional = 16; - -const int kIOWSAA_Unaccelerated = 0; - -const int kIOWindowServerActiveAttribute = 2004054646; - -const int kIOWriteCombineCache = 4; - -const int kIOWriteThruCache = 2; - -const int kIPFileServerIcon = 1769173622; - -const int kISOLatin1MusicCDVariant = 1; - -const int kISOLatin1StandardVariant = 0; - -const int kISOLatinArabicExplicitOrderVariant = 2; - -const int kISOLatinArabicImplicitOrderVariant = 0; - -const int kISOLatinArabicVisualOrderVariant = 1; - -const int kISOLatinHebrewExplicitOrderVariant = 2; - -const int kISOLatinHebrewImplicitOrderVariant = 0; - -const int kISOLatinHebrewVisualOrderVariant = 1; - -@Deprecated('Deprecated') -const int kISSDownloadsFolderType = 1769173860; - -const int kISpBufferToSmallErr = -30422; - -const int kISpDeviceActiveErr = -30428; - -const int kISpDeviceInactiveErr = -30426; - -const int kISpElementInListErr = -30423; - -const int kISpElementNotInListErr = -30424; - -const int kISpInternalErr = -30420; - -const int kISpListBusyErr = -30429; - -const int kISpSystemActiveErr = -30427; - -const int kISpSystemInactiveErr = -30425; - -const int kISpSystemListErr = -30421; - -const int kIconFamilyType = 1768124019; - -const int kIconServices1024PixelDataARGB = 1768108336; - -const int kIconServices128PixelDataARGB = 1768108087; - -const int kIconServices16PixelDataARGB = 1768108084; - -const int kIconServices256PixelDataARGB = 1768108088; - -const int kIconServices32PixelDataARGB = 1768108085; - -const int kIconServices48PixelDataARGB = 1768108086; - -const int kIconServices512PixelDataARGB = 1768108089; - -const int kIconServicesCatalogInfoMask = 531550; - -const int kIconServicesNoBadgeFlag = 1; - -const int kIconServicesNormalUsageFlag = 0; - -const int kIconServicesUpdateIfNeededFlag = 2; - -const int kIdeographicAltFiveSelector = 5; - -const int kIdeographicAltFourSelector = 4; - -const int kIdeographicAltOneSelector = 1; - -const int kIdeographicAltThreeSelector = 3; - -const int kIdeographicAltTwoSelector = 2; - -const int kIdeographicAlternativesType = 30; - -const int kIdeographicSpacingType = 26; - -const int kIdleKCEvent = 0; - -const int kIdleKCEventMask = 1; - -const int kIllegalClockValueErr = -8852; - -@Deprecated('Deprecated') -const int kIllegalInstructionException = 1; - -const int kIlluminatedCapsSelector = 3; - -const int kImmediate = 0; - -@Deprecated('Deprecated') -const int kInDeferredTaskMask = 32; - -@Deprecated('Deprecated') -const int kInNestedInterruptMask = 128; - -@Deprecated('Deprecated') -const int kInSecondaryIntHandlerMask = 64; - -const int kInUseErr = -9077; - -@Deprecated('Deprecated') -const int kInVBLTaskMask = 16; - -@Deprecated('Deprecated') -const int kIndexFilesFolderType = 1768842360; - -const int kInequalityLigaturesOffSelector = 7; - -const int kInequalityLigaturesOnSelector = 6; - -const int kInferiorsSelector = 2; - -const int kInitialCapsAndSmallCapsSelector = 5; - -const int kInitialCapsSelector = 4; - -@Deprecated('Deprecated') -const int kInputManagersFolderType = 1768845428; - -@Deprecated('Deprecated') -const int kInputMethodsFolderType = 1768845414; - -@Deprecated('Deprecated') -const int kInstallerLogsFolderType = 1768712038; - -@Deprecated('Deprecated') -const int kInstallerReceiptsFolderType = 1919119476; - -@Deprecated('Deprecated') -const int kInstructionBreakpointException = 10; - -@Deprecated('Deprecated') -const int kIntegerException = 12; - -const int kInternationResourcesIcon = 1768319340; - -const int kInternationalResourcesIcon = 1768319340; - -const int kInternationalSymbolsSelector = 5; - -const int kInternetEventClass = 1196773964; - -const int kInternetFolderIcon = 1768846532; - -@Deprecated('Deprecated') -const int kInternetFolderType = 1768846532; - -const int kInternetLocationAFP = 1768710502; - -const int kInternetLocationAppleShareIcon = 1768710502; - -const int kInternetLocationAppleTalk = 1768710516; - -const int kInternetLocationAppleTalkZoneIcon = 1768710516; - -const int kInternetLocationCreator = 1685217639; - -const int kInternetLocationFTP = 1768711796; - -const int kInternetLocationFTPIcon = 1768711796; - -const int kInternetLocationFile = 1768711785; - -const int kInternetLocationFileIcon = 1768711785; - -const int kInternetLocationGeneric = 1768712037; - -const int kInternetLocationGenericIcon = 1768712037; - -const int kInternetLocationHTTP = 1768712308; - -const int kInternetLocationHTTPIcon = 1768712308; - -const int kInternetLocationMail = 1768713569; - -const int kInternetLocationMailIcon = 1768713569; - -const int kInternetLocationNNTP = 1768713847; - -const int kInternetLocationNSL = 1768713843; - -const int kInternetLocationNSLNeighborhoodIcon = 1768713843; - -const int kInternetLocationNewsIcon = 1768713847; - -const int kInternetPasswordKCItemClass = 1768842612; - -const int kInternetPlugInFolderIcon = -999398028; - -@Deprecated('Deprecated') -const int kInternetPlugInFolderType = -999398028; - -const int kInternetSearchSitesFolderIcon = 1769173862; - -@Deprecated('Deprecated') -const int kInternetSearchSitesFolderType = 1769173862; - -@Deprecated('Deprecated') -const int kInternetSitesFolderType = 1936290917; - -const int kInvalidCSClientErr = -9091; - -const int kInvalidDeviceNumber = -9089; - -const int kInvalidFont = 0; - -const int kInvalidFontFamily = -1; - -const int kInvalidGeneration = 0; - -const int kInvalidRegEntryErr = -9081; - -const int kInvertHighlighting = 0; - -const int kInvertedBoxAnnotationSelector = 9; - -const int kInvertedCircleAnnotationSelector = 4; - -const int kInvertedRoundedBoxAnnotationSelector = 10; - -const int kInvertingEncodedPixel = 4; - -const int kInvertingEncoding = 1; - -const int kInvertingEncodingShift = 2; - -const int kInvisibleKCItemAttr = 1768846953; - -const int kIsAlias = 32768; - -const int kIsInvisible = 16384; - -const int kIsOnDesk = 1; - -const int kIsShared = 64; - -const int kIsStationery = 2048; - -const int kIssuerKCItemAttr = 1769173877; - -const int kIssuerURLKCItemAttr = 1769304684; - -const int kItalicCJKRomanType = 32; - -const int kItemList = 1718383476; - -const int kJIJournalInFSMask = 1; - -const int kJIJournalNeedInitMask = 4; - -const int kJIJournalOnOtherDeviceMask = 2; - -const int kJIS1978CharactersSelector = 2; - -const int kJIS1983CharactersSelector = 3; - -const int kJIS1990CharactersSelector = 4; - -const int kJIS2004CharactersSelector = 11; - -const int kJUSTCurrentVersion = 65536; - -const int kJUSTKashidaPriority = 0; - -const int kJUSTLetterPriority = 2; - -const int kJUSTNullPriority = 3; - -const int kJUSTOverrideLimits = 16384; - -const int kJUSTOverridePriority = 32768; - -const int kJUSTOverrideUnlimited = 8192; - -const int kJUSTPriorityCount = 4; - -const int kJUSTPriorityMask = 3; - -const int kJUSTSpacePriority = 1; - -const int kJUSTStandardFormat = 0; - -const int kJUSTTag = 1786082164; - -const int kJUSTUnlimited = 4096; - -const int kJUSTnoGlyphcode = 65535; - -const int kJUSTpcConditionalAddAction = 2; - -const int kJUSTpcDecompositionAction = 0; - -const int kJUSTpcDuctilityAction = 4; - -const int kJUSTpcGlyphRepeatAddAction = 5; - -const int kJUSTpcGlyphStretchAction = 3; - -const int kJUSTpcUnconditionalAddAction = 1; - -const int kJapaneseBasicVariant = 2; - -const int kJapanesePostScriptPrintVariant = 4; - -const int kJapanesePostScriptScrnVariant = 3; - -const int kJapaneseStandardVariant = 0; - -const int kJapaneseStdNoVerticalsVariant = 1; - -const int kJapaneseVertAtKuPlusTenVariant = 5; - -const int kKCAuthTypeDPA = 1685086561; - -const int kKCAuthTypeDefault = 1684434036; - -const int kKCAuthTypeHTTPDigest = 1752462436; - -const int kKCAuthTypeMSN = 1836281441; - -const int kKCAuthTypeNTLM = 1853123693; - -const int kKCAuthTypeRPA = 1919967585; - -const int kKCProtocolTypeAFP = 1634103328; - -const int kKCProtocolTypeAppleTalk = 1635019883; - -const int kKCProtocolTypeFTP = 1718906912; - -const int kKCProtocolTypeFTPAccount = 1718906977; - -const int kKCProtocolTypeHTTP = 1752462448; - -const int kKCProtocolTypeIMAP = 1768776048; - -const int kKCProtocolTypeIRC = 1769104160; - -const int kKCProtocolTypeLDAP = 1818517872; - -const int kKCProtocolTypeNNTP = 1852732528; - -const int kKCProtocolTypePOP3 = 1886351411; - -const int kKCProtocolTypeSMTP = 1936553072; - -const int kKCProtocolTypeSOCKS = 1936685088; - -const int kKCProtocolTypeTelnet = 1952803950; - -const int kKERNCrossStream = 16384; - -const int kKERNCrossStreamResetNote = 2; - -const int kKERNCurrentVersion = 65536; - -const int kKERNFormatMask = 255; - -const int kKERNIndexArray = 3; - -const int kKERNLineEndKerning = 2; - -const int kKERNLineStart = 1; - -const int kKERNNoCrossKerning = 4; - -const int kKERNNoStakeNote = 1; - -const int kKERNNotApplied = 1; - -const int kKERNNotesRequested = 8; - -const int kKERNOrderedList = 0; - -const int kKERNResetCrossStream = 32768; - -const int kKERNSimpleArray = 2; - -const int kKERNStateTable = 1; - -const int kKERNTag = 1801810542; - -const int kKERNUnusedBits = 7936; - -const int kKERNVariation = 8192; - -const int kKERNVertical = 32768; - -const int kKERXActionOffsetMask = 16777215; - -const int kKERXActionTypeAnchorPoints = 1073741824; - -const int kKERXActionTypeControlPoints = 0; - -const int kKERXActionTypeCoordinates = -2147483648; - -const int kKERXActionTypeMask = -1073741824; - -const int kKERXControlPoint = 4; - -const int kKERXCrossStream = 1073741824; - -const int kKERXCrossStreamResetNote = 2; - -const int kKERXCurrentVersion = 131072; - -const int kKERXDescending = 268435456; - -const int kKERXFormatMask = 255; - -const int kKERXIndexArray = 6; - -const int kKERXLineEndKerning = 2; - -const int kKERXLineStart = 1; - -const int kKERXNoCrossKerning = 4; - -const int kKERXNoStakeNote = 1; - -const int kKERXNotApplied = 1; - -const int kKERXNotesRequested = 8; - -const int kKERXOrderedList = 0; - -const int kKERXResetCrossStream = 32768; - -const int kKERXSimpleArray = 2; - -const int kKERXStateTable = 1; - -const int kKERXTag = 1801810552; - -const int kKERXUnusedBits = 268435200; - -const int kKERXUnusedFlags = 1056964608; - -const int kKERXValuesAreLong = 1; - -const int kKERXVariation = 536870912; - -const int kKERXVertical = -2147483648; - -const int kKanaSpacingType = 25; - -const int kKanaToRomanizationSelector = 4; - -const int kKatakanaToHiraganaSelector = 3; - -const int kKeepArrangedIcon = 1634889319; - -@Deprecated('Deprecated') -const int kKernelExtensionsFolderType = 1801812084; - -const int kKeyboardLayoutIcon = 1801873772; - -@Deprecated('Deprecated') -const int kKeyboardLayoutsFolderType = 1802264953; - -@Deprecated('Deprecated') -const int kKeychainFolderType = 1801676910; - -const int kKeychainListChangedKCEvent = 11; - -const int kLCARCtlPointFormat = 1; - -const int kLCARCurrentVersion = 65536; - -const int kLCARLinearFormat = 0; - -const int kLCARTag = 1818452338; - -const int kLSAppDoesNotClaimTypeErr = -10820; - -const int kLSAppDoesNotSupportSchemeWarning = -10821; - -const int kLSAppInTrashErr = -10660; - -const int kLSApplicationNotFoundErr = -10814; - -const int kLSAttributeNotFoundErr = -10662; - -const int kLSAttributeNotSettableErr = -10663; - -const int kLSCannotSetInfoErr = -10823; - -const int kLSDataErr = -10817; - -const int kLSDataTooOldErr = -10816; - -const int kLSDataUnavailableErr = -10813; - -const int kLSExecutableIncorrectFormat = -10661; - -const int kLSGarbageCollectionUnsupportedErr = -10666; - -const int kLSIncompatibleApplicationVersionErr = -10664; - -const int kLSIncompatibleSystemVersionErr = -10825; - -@Deprecated('This option does nothing.') -const int kLSLaunchHasUntrustedContents = 4194304; - -@Deprecated('The Classic environment is no longer supported.') -const int kLSLaunchInClassic = 262144; - -const int kLSLaunchInProgressErr = -10818; - -@Deprecated('This option does nothing.') -const int kLSLaunchInhibitBGOnly = 128; - -@Deprecated('This option does nothing.') -const int kLSLaunchNoParams = 2048; - -@Deprecated('The Classic environment is no longer supported.') -const int kLSLaunchStartClassic = 131072; - -const int kLSMalformedLocErr = -10400; - -const int kLSMultipleSessionsNotSupportedErr = -10829; - -const int kLSNo32BitEnvironmentErr = -10386; - -const int kLSNoClassicEnvironmentErr = -10828; - -const int kLSNoExecutableErr = -10827; - -const int kLSNoLaunchPermissionErr = -10826; - -const int kLSNoRegistrationInfoErr = -10824; - -const int kLSNoRosettaEnvironmentErr = -10665; - -const int kLSNotAnApplicationErr = -10811; - -const int kLSNotInitializedErr = -10812; - -const int kLSNotRegisteredErr = -10819; - -const int kLSServerCommunicationErr = -10822; - -const int kLSSharedFileListDoNotMountVolumes = 2; - -const int kLSSharedFileListNoUserInteraction = 1; - -const int kLSUnknownCreator = 0; - -const int kLSUnknownErr = -10810; - -const int kLSUnknownType = 0; - -const int kLSUnknownTypeErr = -10815; - -const int kLTAGCurrentVersion = 1; - -const int kLabelKCItemAttr = 1818321516; - -const int kLanguageTagType = 39; - -const int kLarge1BitMask = 1229147683; - -const int kLarge32BitData = 1768698674; - -const int kLarge4BitData = 1768123444; - -const int kLarge4BitIconSize = 512; - -const int kLarge8BitData = 1768123448; - -const int kLarge8BitIconSize = 1024; - -const int kLarge8BitMask = 1815637355; - -const int kLargeIconSize = 256; - -@Deprecated('Deprecated') -const int kLastDomainConstant = -32760; - -const int kLastFeatureType = -1; - -const int kLastIOKitNotificationType = 199; - -const int kLastMagicBusyFiletype = 1652193599; - -const int kLaunchToGetTerminology = 32768; - -@Deprecated('Deprecated') -const int kLauncherItemsFolderType = 1818326382; - -const int kLetterCaseType = 3; - -@Deprecated('Deprecated') -const int kLibraryAssistantsFolderType = 1634956396; - -const int kLigaturesType = 1; - -const int kLineFinalSwashesOffSelector = 7; - -const int kLineFinalSwashesOnSelector = 6; - -const int kLineInitialSwashesOffSelector = 5; - -const int kLineInitialSwashesOnSelector = 4; - -const int kLinearPCMFormatFlagIsAlignedHigh = 16; - -const int kLinearPCMFormatFlagIsBigEndian = 2; - -const int kLinearPCMFormatFlagIsFloat = 1; - -const int kLinearPCMFormatFlagIsNonInterleaved = 32; - -const int kLinearPCMFormatFlagIsNonMixable = 64; - -const int kLinearPCMFormatFlagIsPacked = 8; - -const int kLinearPCMFormatFlagIsSignedInteger = 4; - -const int kLinearPCMFormatFlagsAreAllClear = -2147483648; - -const int kLinearPCMFormatFlagsSampleFractionMask = 8064; - -const int kLinearPCMFormatFlagsSampleFractionShift = 7; - -const int kLinguisticRearrangementOffSelector = 1; - -const int kLinguisticRearrangementOnSelector = 0; - -const int kLinguisticRearrangementType = 5; - -@Deprecated('Deprecated') -const int kLocalDomain = -32765; - -const int kLocalPPDDomain = 3; - -const int kLocaleAllPartsMask = 63; - -const int kLocaleAndVariantNameMask = 3; - -const int kLocaleLanguageMask = 1; - -const int kLocaleLanguageVariantMask = 2; - -const int kLocaleNameMask = 1; - -const int kLocaleOperationVariantNameMask = 2; - -const int kLocaleRegionMask = 16; - -const int kLocaleRegionVariantMask = 32; - -const int kLocaleScriptMask = 4; - -const int kLocaleScriptVariantMask = 8; - -const int kLocalesBufferTooSmallErr = -30001; - -const int kLocalesDefaultDisplayStatus = -30029; - -const int kLocalesFolderIcon = -999526557; - -@Deprecated('Deprecated') -const int kLocalesFolderType = -999526557; - -const int kLocalesTableFormatErr = -30002; - -const int kLockKCEvent = 1; - -const int kLockKCEventMask = 2; - -const int kLockedBadgeIcon = 1818387559; - -const int kLockedIcon = 1819239275; - -const int kLogosOffSelector = 7; - -const int kLogosOnSelector = 6; - -const int kLogsFolderType = 1819240307; - -const int kLowerCaseNumbersSelector = 0; - -const int kLowerCasePetiteCapsSelector = 2; - -const int kLowerCaseSmallCapsSelector = 1; - -const int kLowerCaseType = 37; - -@Deprecated('Deprecated') -const int kM68kISA = 0; - -@Deprecated('Deprecated') -const int kMIDIDriversFolderType = 1835623529; - -const int kMORTContextualType = 1; - -const int kMORTCoverDescending = 16384; - -const int kMORTCoverIgnoreVertical = 8192; - -const int kMORTCoverTypeMask = 15; - -const int kMORTCoverVertical = 32768; - -const int kMORTCurrInsertBefore = 2048; - -const int kMORTCurrInsertCountMask = 992; - -const int kMORTCurrInsertCountShift = 5; - -const int kMORTCurrInsertKashidaLike = 8192; - -const int kMORTCurrJustTableCountMask = 127; - -const int kMORTCurrJustTableCountShift = 0; - -const int kMORTCurrentVersion = 65536; - -const int kMORTDoInsertionsBefore = 128; - -const int kMORTInsertionType = 5; - -const int kMORTInsertionsCountMask = 63; - -const int kMORTIsSplitVowelPiece = 64; - -const int kMORTLigFormOffsetMask = 1073741823; - -const int kMORTLigFormOffsetShift = 2; - -const int kMORTLigLastAction = -2147483648; - -const int kMORTLigStoreLigature = 1073741824; - -const int kMORTLigatureType = 2; - -const int kMORTMarkInsertBefore = 1024; - -const int kMORTMarkInsertCountMask = 31; - -const int kMORTMarkInsertCountShift = 0; - -const int kMORTMarkInsertKashidaLike = 4096; - -const int kMORTMarkJustTableCountMask = 16256; - -const int kMORTMarkJustTableCountShift = 7; - -const int kMORTRearrangementType = 0; - -const int kMORTSwashType = 4; - -const int kMORTTag = 1836020340; - -const int kMORTraCDx = 6; - -const int kMORTraCDxA = 8; - -const int kMORTraCDxAB = 12; - -const int kMORTraCDxBA = 13; - -const int kMORTraDCx = 7; - -const int kMORTraDCxA = 9; - -const int kMORTraDCxAB = 14; - -const int kMORTraDCxBA = 15; - -const int kMORTraDx = 2; - -const int kMORTraDxA = 3; - -const int kMORTraDxAB = 10; - -const int kMORTraDxBA = 11; - -const int kMORTraNoAction = 0; - -const int kMORTraxA = 1; - -const int kMORTraxAB = 4; - -const int kMORTraxBA = 5; - -const int kMORXCoverDescending = 1073741824; - -const int kMORXCoverIgnoreVertical = 536870912; - -const int kMORXCoverLogicalOrder = 268435456; - -const int kMORXCoverTypeMask = 255; - -const int kMORXCoverVertical = -2147483648; - -const int kMORXCurrentVersion = 131072; - -const int kMORXTag = 1836020344; - -@Deprecated('Deprecated') -const int kMPAddressSpaceInfoVersion = 524289; - -@Deprecated('Deprecated') -const int kMPAllocate1024ByteAligned = 10; - -@Deprecated('Deprecated') -const int kMPAllocate16ByteAligned = 4; - -@Deprecated('Deprecated') -const int kMPAllocate32ByteAligned = 5; - -@Deprecated('Deprecated') -const int kMPAllocate4096ByteAligned = 12; - -@Deprecated('Deprecated') -const int kMPAllocate8ByteAligned = 3; - -@Deprecated('Deprecated') -const int kMPAllocateAltiVecAligned = 4; - -@Deprecated('Deprecated') -const int kMPAllocateClearMask = 1; - -@Deprecated('Deprecated') -const int kMPAllocateDefaultAligned = 0; - -@Deprecated('Deprecated') -const int kMPAllocateGloballyMask = 2; - -@Deprecated('Deprecated') -const int kMPAllocateInterlockAligned = 255; - -@Deprecated('Deprecated') -const int kMPAllocateMaxAlignment = 16; - -@Deprecated('Deprecated') -const int kMPAllocateNoCreateMask = 32; - -@Deprecated('Deprecated') -const int kMPAllocateNoGrowthMask = 16; - -@Deprecated('Deprecated') -const int kMPAllocateResidentMask = 4; - -@Deprecated('Deprecated') -const int kMPAllocateVMPageAligned = 254; - -@Deprecated('Deprecated') -const int kMPAllocateVMXAligned = 4; - -@Deprecated('Deprecated') -const int kMPAnyRemoteContext = 0; - -@Deprecated('Deprecated') -const int kMPAsyncInterruptRemoteContext = 3; - -const int kMPBlueBlockingErr = -29293; - -@Deprecated('Deprecated') -const int kMPCreateTaskNotDebuggableMask = 4; - -@Deprecated('Deprecated') -const int kMPCreateTaskSuspendedMask = 1; - -@Deprecated('Deprecated') -const int kMPCreateTaskTakesAllExceptionsMask = 2; - -@Deprecated('Deprecated') -const int kMPCreateTaskValidOptionsMask = 7; - -@Deprecated('Deprecated') -const int kMPCriticalRegionInfoVersion = 393217; - -const int kMPDeletedErr = -29295; - -@Deprecated('Deprecated') -const int kMPEventInfoVersion = 589825; - -@Deprecated('Deprecated') -const int kMPHighLevelDebugger = 536870912; - -const int kMPInsufficientResourcesErr = -29298; - -@Deprecated('Deprecated') -const int kMPInterruptRemoteContext = 2; - -const int kMPInvalidIDErr = -29299; - -const int kMPIterationEndErr = -29275; - -@Deprecated('Deprecated') -const int kMPLowLevelDebugger = 0; - -@Deprecated('Deprecated') -const int kMPMaxAllocSize = 1073741824; - -@Deprecated('Deprecated') -const int kMPMidLevelDebugger = 268435456; - -const int kMPNanokernelNeedsMemoryErr = -29294; - -@Deprecated('Deprecated') -const int kMPNoID = 0; - -@Deprecated('Deprecated') -const int kMPNotificationInfoVersion = 786433; - -@Deprecated('Deprecated') -const int kMPOwningProcessRemoteContext = 1; - -@Deprecated('Deprecated') -const int kMPPreserveTimerIDMask = 1; - -const int kMPPrivilegedErr = -29276; - -const int kMPProcessCreatedErr = -29288; - -const int kMPProcessTerminatedErr = -29289; - -@Deprecated('Deprecated') -const int kMPQueueInfoVersion = 262145; - -@Deprecated('Deprecated') -const int kMPSemaphoreInfoVersion = 327681; - -const int kMPTaskAbortedErr = -29297; - -@Deprecated('Deprecated') -const int kMPTaskBlocked = 0; - -const int kMPTaskBlockedErr = -29291; - -const int kMPTaskCreatedErr = -29290; - -@Deprecated('Deprecated') -const int kMPTaskInfoVersion = 3; - -@Deprecated('Deprecated') -const int kMPTaskPropagate = 0; - -@Deprecated('Deprecated') -const int kMPTaskPropagateMask = 1; - -@Deprecated('Deprecated') -const int kMPTaskReady = 1; - -@Deprecated('Deprecated') -const int kMPTaskResumeBranch = 2; - -@Deprecated('Deprecated') -const int kMPTaskResumeBranchMask = 4; - -@Deprecated('Deprecated') -const int kMPTaskResumeMask = 0; - -@Deprecated('Deprecated') -const int kMPTaskResumeStep = 1; - -@Deprecated('Deprecated') -const int kMPTaskResumeStepMask = 2; - -@Deprecated('Deprecated') -const int kMPTaskRunning = 2; - -@Deprecated('Deprecated') -const int kMPTaskState32BitMemoryException = 4; - -@Deprecated('Deprecated') -const int kMPTaskStateFPU = 1; - -@Deprecated('Deprecated') -const int kMPTaskStateMachine = 3; - -@Deprecated('Deprecated') -const int kMPTaskStateRegisters = 0; - -@Deprecated('Deprecated') -const int kMPTaskStateTaskInfo = 5; - -@Deprecated('Deprecated') -const int kMPTaskStateVectors = 2; - -const int kMPTaskStoppedErr = -29292; - -@Deprecated('Deprecated') -const int kMPTimeIsDeltaMask = 2; - -@Deprecated('Deprecated') -const int kMPTimeIsDurationMask = 4; - -const int kMPTimeoutErr = -29296; - -const int kMacArabicAlBayanVariant = 3; - -const int kMacArabicStandardVariant = 0; - -const int kMacArabicThuluthVariant = 2; - -const int kMacArabicTrueTypeVariant = 1; - -const int kMacCroatianCurrencySignVariant = 1; - -const int kMacCroatianDefaultVariant = 0; - -const int kMacCroatianEuroSignVariant = 2; - -const int kMacCyrillicCurrSignStdVariant = 1; - -const int kMacCyrillicCurrSignUkrVariant = 2; - -const int kMacCyrillicDefaultVariant = 0; - -const int kMacCyrillicEuroSignVariant = 3; - -const int kMacFarsiStandardVariant = 0; - -const int kMacFarsiTrueTypeVariant = 1; - -const int kMacGreekDefaultVariant = 0; - -const int kMacGreekEuroSignVariant = 2; - -const int kMacGreekNoEuroSignVariant = 1; - -const int kMacHebrewFigureSpaceVariant = 1; - -const int kMacHebrewStandardVariant = 0; - -const int kMacIcelandicStandardVariant = 0; - -const int kMacIcelandicStdCurrSignVariant = 2; - -const int kMacIcelandicStdDefaultVariant = 0; - -const int kMacIcelandicStdEuroSignVariant = 4; - -const int kMacIcelandicTTCurrSignVariant = 3; - -const int kMacIcelandicTTDefaultVariant = 1; - -const int kMacIcelandicTTEuroSignVariant = 5; - -const int kMacIcelandicTrueTypeVariant = 1; - -const int kMacJapaneseBasicVariant = 2; - -const int kMacJapanesePostScriptPrintVariant = 4; - -const int kMacJapanesePostScriptScrnVariant = 3; - -const int kMacJapaneseStandardVariant = 0; - -const int kMacJapaneseStdNoVerticalsVariant = 1; - -const int kMacJapaneseVertAtKuPlusTenVariant = 5; - -@Deprecated('Deprecated') -const int kMacMemoryMaximumMemoryManagerBlockSize = 2147483632; - -const int kMacOSReadMeFolderIcon = 1836020420; - -@Deprecated('Deprecated') -const int kMacOSReadMesFolderType = 1836020420; - -const int kMacRomanCurrencySignVariant = 1; - -const int kMacRomanDefaultVariant = 0; - -const int kMacRomanEuroSignVariant = 2; - -const int kMacRomanLatin1CroatianVariant = 8; - -const int kMacRomanLatin1DefaultVariant = 0; - -const int kMacRomanLatin1IcelandicVariant = 11; - -const int kMacRomanLatin1RomanianVariant = 14; - -const int kMacRomanLatin1StandardVariant = 2; - -const int kMacRomanLatin1TurkishVariant = 6; - -const int kMacRomanStandardVariant = 0; - -const int kMacRomanianCurrencySignVariant = 1; - -const int kMacRomanianDefaultVariant = 0; - -const int kMacRomanianEuroSignVariant = 2; - -const int kMacVT100CurrencySignVariant = 1; - -const int kMacVT100DefaultVariant = 0; - -const int kMacVT100EuroSignVariant = 2; - -const int kMachineNameStrID = -16395; - -const int kMagicBusyCreationDate = 1329266096; - -@Deprecated('Deprecated') -const int kMagicTemporaryItemsFolderType = 1836346736; - -const int kMale = 1; - -@Deprecated('Deprecated') -const int kManagedItemsFolderType = 1835101799; - -const int kMathSymbolsSelector = 6; - -const int kMathematicalExtrasType = 15; - -const int kMathematicalGreekOffSelector = 11; - -const int kMathematicalGreekOnSelector = 10; - -const int kMaxAsyncArgs = 16; - -const int kMaximumBlocksIn4GB = 8388607; - -const int kMicrosecondScale = 1000; - -const int kMillisecondScale = 1000000; - -const int kMini1BitMask = 1768123683; - -const int kMini4BitData = 1768123700; - -const int kMini8BitData = 1768123704; - -const int kModDateKCItemAttr = 1835295092; - -const int kModemOutOfMemory = -14000; - -const int kModemPreferencesMissing = -14001; - -const int kModemScriptMissing = -14002; - -@Deprecated('Deprecated') -const int kModemScriptsFolderType = -999461020; - -const int kMonospacedNumbersSelector = 0; - -const int kMonospacedTextSelector = 1; - -const int kMountedBadgeIcon = 1835164775; - -const int kMountedFolderAliasType = 1717661038; - -const int kMountedFolderIcon = 1835955300; - -const int kMountedFolderIconResource = -3977; - -@Deprecated('Deprecated') -const int kMovieDocumentsFolderType = 1835298659; - -@Deprecated('Deprecated') -const int kMultiprocessingFolderType = 1836087398; - -@Deprecated('Deprecated') -const int kMusicDocumentsFolderType = -1251709085; - -const int kNLCCharactersSelector = 13; - -const int kNSL68kContextNotSupported = -4170; - -const int kNSLBadClientInfoPtr = -4185; - -const int kNSLBadDataTypeErr = -4193; - -const int kNSLBadNetConnection = -4192; - -const int kNSLBadProtocolTypeErr = -4183; - -const int kNSLBadReferenceErr = -4195; - -const int kNSLBadServiceTypeErr = -4194; - -const int kNSLBadURLSyntax = -4172; - -const int kNSLBufferTooSmallForData = -4187; - -const int kNSLCannotContinueLookup = -4186; - -const int kNSLErrNullPtrError = -4176; - -const int kNSLInitializationFailed = -4200; - -const int kNSLInsufficientOTVer = -4197; - -const int kNSLInsufficientSysVer = -4198; - -const int kNSLInvalidPluginSpec = -4190; - -const int kNSLNoCarbonLib = -4173; - -const int kNSLNoContextAvailable = -4188; - -const int kNSLNoElementsInList = -4196; - -const int kNSLNoPluginsForSearch = -4179; - -const int kNSLNoPluginsFound = -4181; - -const int kNSLNoSupportForService = -4191; - -const int kNSLNotImplementedYet = -4175; - -const int kNSLNotInitialized = -4199; - -const int kNSLNullListPtr = -4184; - -const int kNSLNullNeighborhoodPtr = -4178; - -const int kNSLPluginLoadFailed = -4182; - -const int kNSLRequestBufferAlreadyInList = -4189; - -const int kNSLSchedulerError = -4171; - -const int kNSLSearchAlreadyInProgress = -4180; - -const int kNSLSomePluginsFailedToLoad = -4177; - -const int kNSLUILibraryNotAvailable = -4174; - -const int kNSpAddPlayerFailedErr = -30389; - -const int kNSpAddressInUseErr = -30380; - -const int kNSpAlreadyAdvertisingErr = -30374; - -const int kNSpAlreadyInitializedErr = -30361; - -const int kNSpCantBlockErr = -30398; - -const int kNSpConnectFailedErr = -30395; - -const int kNSpCreateGroupFailedErr = -30388; - -const int kNSpFeatureNotImplementedErr = -30381; - -const int kNSpFreeQExhaustedErr = -30378; - -const int kNSpGameTerminatedErr = -30394; - -const int kNSpHostFailedErr = -30365; - -const int kNSpInitializationFailedErr = -30360; - -const int kNSpInvalidAddressErr = -30377; - -const int kNSpInvalidDefinitionErr = -30390; - -const int kNSpInvalidGameRefErr = -30367; - -const int kNSpInvalidGroupIDErr = -30384; - -const int kNSpInvalidParameterErr = -30369; - -const int kNSpInvalidPlayerIDErr = -30383; - -const int kNSpInvalidProtocolListErr = -30392; - -const int kNSpInvalidProtocolRefErr = -30391; - -const int kNSpJoinFailedErr = -30399; - -const int kNSpMemAllocationErr = -30373; - -const int kNSpMessageTooBigErr = -30397; - -const int kNSpNameRequiredErr = -30382; - -const int kNSpNoGroupsErr = -30386; - -const int kNSpNoHostVolunteersErr = -30387; - -const int kNSpNoPlayersErr = -30385; - -const int kNSpNotAdvertisingErr = -30376; - -const int kNSpOTNotPresentErr = -30370; - -const int kNSpOTVersionTooOldErr = -30371; - -const int kNSpPipeFullErr = -30364; - -const int kNSpProtocolNotAvailableErr = -30366; - -const int kNSpRemovePlayerFailedErr = -30379; - -const int kNSpSendFailedErr = -30396; - -const int kNSpTimeoutErr = -30393; - -const int kNSpTopologyNotSupportedErr = -30362; - -const int kNameLocked = 4096; - -const int kNanosecondScale = 1; - -const int kNavCustomControlMessageFailedErr = -5697; - -const int kNavInvalidCustomControlMessageErr = -5698; - -const int kNavInvalidSystemConfigErr = -5696; - -const int kNavMissingKindStringErr = -5699; - -const int kNavWrongDialogClassErr = -5695; - -const int kNavWrongDialogStateErr = -5694; - -const int kNegativeKCItemAttr = 1852139361; - -@Deprecated('Deprecated') -const int kNetworkDomain = -32764; - -const int kNetworkPPDDomain = 4; - -const int kNeuter = 0; - -@Deprecated('Deprecated') -const int kNewDebugHeap = 4; - -const int kNewSizeParameter = 1718514554; - -@Deprecated('Deprecated') -const int kNewStyleHeap = 2; - -@Deprecated('Deprecated') -const int kNewSuspend = 1; - -const int kNextBody = 1; - -const int kNilOptions = 0; - -const int kNoAlternatesSelector = 0; - -const int kNoAnnotationSelector = 0; - -@Deprecated('Deprecated') -const int kNoByteCode = 0; - -const int kNoCJKItalicRomanSelector = 0; - -const int kNoCJKSymbolAlternativesSelector = 0; - -const int kNoCardBusCISErr = -9109; - -const int kNoCardEnablersFoundErr = -9099; - -const int kNoCardErr = -9071; - -const int kNoCardSevicesSocketsErr = -9080; - -const int kNoClientTableErr = -9097; - -const int kNoCompatibleNameErr = -9101; - -const int kNoConstraint = 0; - -const int kNoEnablerForCardErr = -9100; - -const int kNoEndingProsody = 1; - -const int kNoFilesIcon = 1852205420; - -const int kNoFolderIcon = 1852206180; - -const int kNoFractionsSelector = 0; - -const int kNoIOWindowRequestedErr = -9094; - -const int kNoIdeographicAlternativesSelector = 0; - -const int kNoMoreInterruptSlotsErr = -9096; - -const int kNoMoreItemsErr = -9078; - -const int kNoMoreTimerClientsErr = -9095; - -const int kNoOrnamentsSelector = 0; - -const int kNoProcess = 0; - -const int kNoRubyKanaSelector = 0; - -const int kNoSpeechInterrupt = 2; - -const int kNoStyleOptionsSelector = 0; - -const int kNoStylisticAlternatesSelector = 0; - -const int kNoSuchPowerSource = -13020; - -@Deprecated('Deprecated') -const int kNoThreadID = 0; - -const int kNoTimeOut = -2; - -const int kNoTransform = 0; - -const int kNoTransliterationSelector = 0; - -const int kNoUserAuthentication = 1; - -const int kNoWriteIcon = 1853321844; - -const int kNonFinalSwashesOffSelector = 9; - -const int kNonFinalSwashesOnSelector = 8; - -const int kNoneKCStopOn = 1; - -const int kNormalPositionSelector = 0; - -@Deprecated('Deprecated') -const int kNotPaged = 2; - -const int kNotReadyErr = -9103; - -const int kNotZVCapableErr = -9108; - -const int kNumberCaseType = 21; - -const int kNumberSpacingType = 6; - -const int kOPBDControlPointFormat = 1; - -const int kOPBDCurrentVersion = 65536; - -const int kOPBDDistanceFormat = 0; - -const int kOPBDTag = 1869636196; - -const int kOSAsyncCompleteMessageID = 57; - -const int kOSAsyncRef64Count = 8; - -const int kOSAsyncRef64Size = 64; - -const int kOSAsyncRefCount = 8; - -const int kOSAsyncRefSize = 32; - -const int kOSIZCodeInSharedLibraries = 11; - -const int kOSIZDontOpenResourceFile = 15; - -const int kOSIZOpenWithReadPermission = 13; - -const int kOSIZdontAcceptRemoteEvents = 14; - -const int kOSNotificationMessageID = 53; - -const int kOTAccessErr = -3152; - -const int kOTAddressBusyErr = -3172; - -const int kOTBadAddressErr = -3150; - -const int kOTBadConfigurationErr = -3282; - -const int kOTBadDataErr = -3159; - -const int kOTBadFlagErr = -3165; - -const int kOTBadNameErr = -3170; - -const int kOTBadOptionErr = -3151; - -const int kOTBadQLenErr = -3171; - -const int kOTBadReferenceErr = -3153; - -const int kOTBadSequenceErr = -3156; - -const int kOTBadSyncErr = -3179; - -const int kOTBufferOverflowErr = -3160; - -const int kOTCanceledErr = -3180; - -const int kOTClientNotInittedErr = -3279; - -const int kOTConfigurationChangedErr = -3283; - -const int kOTDuplicateFoundErr = -3216; - -const int kOTFlowErr = -3161; - -const int kOTIndOutErr = -3173; - -const int kOTLookErr = -3158; - -const int kOTNoAddressErr = -3154; - -const int kOTNoDataErr = -3162; - -const int kOTNoDisconnectErr = -3163; - -const int kOTNoError = 0; - -const int kOTNoReleaseErr = -3166; - -const int kOTNoStructureTypeErr = -3169; - -const int kOTNoUDErrErr = -3164; - -const int kOTNotFoundErr = -3201; - -const int kOTNotSupportedErr = -3167; - -const int kOTOutOfMemoryErr = -3211; - -const int kOTOutStateErr = -3155; - -const int kOTPortHasDiedErr = -3280; - -const int kOTPortLostConnection = -3285; - -const int kOTPortWasEjectedErr = -3281; - -const int kOTProtocolErr = -3178; - -const int kOTProviderMismatchErr = -3174; - -const int kOTQFullErr = -3177; - -const int kOTResAddressErr = -3176; - -const int kOTResQLenErr = -3175; - -const int kOTStateChangeErr = -3168; - -const int kOTSysErrorErr = -3157; - -const int kOTUserRequestedErr = -3284; - -const int kOffset2Pos = 1936994928; - -@Deprecated('Deprecated') -const int kOld68kRTA = 0; - -@Deprecated('Deprecated') -const int kOnAppropriateDisk = -32767; - -@Deprecated('Deprecated') -const int kOnSystemDisk = -32768; - -@Deprecated('Deprecated') -const int kOneByteCode = 1; - -@Deprecated('Deprecated') -const int kOpaqueAddressSpaceID = 8; - -@Deprecated('Deprecated') -const int kOpaqueAnyID = 0; - -@Deprecated('Deprecated') -const int kOpaqueAreaID = 11; - -@Deprecated('Deprecated') -const int kOpaqueCoherenceID = 10; - -@Deprecated('Deprecated') -const int kOpaqueConsoleID = 13; - -@Deprecated('Deprecated') -const int kOpaqueCpuID = 7; - -@Deprecated('Deprecated') -const int kOpaqueCriticalRegionID = 6; - -@Deprecated('Deprecated') -const int kOpaqueEventID = 9; - -@Deprecated('Deprecated') -const int kOpaqueNotificationID = 12; - -@Deprecated('Deprecated') -const int kOpaqueProcessID = 1; - -@Deprecated('Deprecated') -const int kOpaqueQueueID = 4; - -@Deprecated('Deprecated') -const int kOpaqueSemaphoreID = 5; - -@Deprecated('Deprecated') -const int kOpaqueTaskID = 2; - -@Deprecated('Deprecated') -const int kOpaqueTimerID = 3; - -@Deprecated('Deprecated') -const int kOpenDocEditorsFolderType = -999332762; - -@Deprecated('Deprecated') -const int kOpenDocFolderType = 1868853092; - -@Deprecated('Deprecated') -const int kOpenDocLibrariesFolderType = 1868852322; - -@Deprecated('Deprecated') -const int kOpenDocShellPlugInsFolderType = 1868854128; - -const int kOpenDropIconVariant = 1868853872; - -const int kOpenFolderIcon = 1868983396; - -const int kOpenFolderIconResource = -3997; - -const int kOpenIconVariant = 1869636974; - -const int kOrConnections = 268435454; - -const int kOrdinalsSelector = 3; - -const int kOrnamentSetsType = 16; - -const int kOutOfResourceErr = -9079; - -const int kOverlappingCharactersType = 13; - -const int kOwnedFolderIcon = 1870098020; - -const int kOwnedFolderIconResource = -3980; - -const int kOwnerID2Name = 1; - -const int kOwnerIcon = 1937077106; - -const int kOwnerName2ID = 3; - -const int kPCSToDevice = 2; - -const int kPCSToPCS = 3; - -@Deprecated('Deprecated') -const int kPEFAbsoluteExport = -2; - -@Deprecated('Deprecated') -const int kPEFCodeSection = 0; - -@Deprecated('Deprecated') -const int kPEFCodeSymbol = 0; - -@Deprecated('Deprecated') -const int kPEFConstantSection = 3; - -@Deprecated('Deprecated') -const int kPEFDataSymbol = 1; - -@Deprecated('Deprecated') -const int kPEFDebugSection = 5; - -@Deprecated('Deprecated') -const int kPEFExceptionSection = 7; - -@Deprecated('Deprecated') -const int kPEFExecDataSection = 6; - -@Deprecated('Deprecated') -const int kPEFExpSymClassShift = 24; - -@Deprecated('Deprecated') -const int kPEFExpSymMaxNameOffset = 16777215; - -@Deprecated('Deprecated') -const int kPEFExpSymNameOffsetMask = 16777215; - -@Deprecated('Deprecated') -const int kPEFFirstSectionHeaderOffset = 40; - -@Deprecated('Deprecated') -const int kPEFGlobalShare = 4; - -@Deprecated('Deprecated') -const int kPEFGlueSymbol = 4; - -@Deprecated('Deprecated') -const int kPEFHashLengthShift = 16; - -@Deprecated('Deprecated') -const int kPEFHashMaxLength = 65535; - -@Deprecated('Deprecated') -const int kPEFHashSlotFirstKeyMask = 262143; - -@Deprecated('Deprecated') -const int kPEFHashSlotMaxKeyIndex = 262143; - -@Deprecated('Deprecated') -const int kPEFHashSlotMaxSymbolCount = 16383; - -@Deprecated('Deprecated') -const int kPEFHashSlotSymCountShift = 18; - -@Deprecated('Deprecated') -const int kPEFHashValueMask = 65535; - -@Deprecated('Deprecated') -const int kPEFImpSymClassShift = 24; - -@Deprecated('Deprecated') -const int kPEFImpSymMaxNameOffset = 16777215; - -@Deprecated('Deprecated') -const int kPEFImpSymNameOffsetMask = 16777215; - -@Deprecated('Deprecated') -const int kPEFInitLibBeforeMask = 128; - -@Deprecated('Deprecated') -const int kPEFLoaderSection = 4; - -@Deprecated('Deprecated') -const int kPEFPackedDataSection = 2; - -@Deprecated('Deprecated') -const int kPEFPkDataBlock = 1; - -@Deprecated('Deprecated') -const int kPEFPkDataCount5Mask = 31; - -@Deprecated('Deprecated') -const int kPEFPkDataMaxCount5 = 31; - -@Deprecated('Deprecated') -const int kPEFPkDataOpcodeShift = 5; - -@Deprecated('Deprecated') -const int kPEFPkDataRepeat = 2; - -@Deprecated('Deprecated') -const int kPEFPkDataRepeatBlock = 3; - -@Deprecated('Deprecated') -const int kPEFPkDataRepeatZero = 4; - -@Deprecated('Deprecated') -const int kPEFPkDataVCountEndMask = 128; - -@Deprecated('Deprecated') -const int kPEFPkDataVCountMask = 127; - -@Deprecated('Deprecated') -const int kPEFPkDataVCountShift = 7; - -@Deprecated('Deprecated') -const int kPEFPkDataZero = 0; - -@Deprecated('Deprecated') -const int kPEFProcessShare = 1; - -@Deprecated('Deprecated') -const int kPEFProtectedShare = 5; - -@Deprecated('Deprecated') -const int kPEFReexportedImport = -3; - -@Deprecated('Deprecated') -const int kPEFRelocBasicOpcodeRange = 128; - -@Deprecated('Deprecated') -const int kPEFRelocBySectC = 32; - -@Deprecated('Deprecated') -const int kPEFRelocBySectD = 33; - -@Deprecated('Deprecated') -const int kPEFRelocBySectDWithSkip = 0; - -@Deprecated('Deprecated') -const int kPEFRelocImportRun = 37; - -@Deprecated('Deprecated') -const int kPEFRelocIncrPosition = 64; - -@Deprecated('Deprecated') -const int kPEFRelocIncrPositionMaxOffset = 4096; - -@Deprecated('Deprecated') -const int kPEFRelocLgByImport = 82; - -@Deprecated('Deprecated') -const int kPEFRelocLgByImportMaxIndex = 67108863; - -@Deprecated('Deprecated') -const int kPEFRelocLgBySectionSubopcode = 0; - -@Deprecated('Deprecated') -const int kPEFRelocLgRepeat = 88; - -@Deprecated('Deprecated') -const int kPEFRelocLgRepeatMaxChunkCount = 16; - -@Deprecated('Deprecated') -const int kPEFRelocLgRepeatMaxRepeatCount = 4194303; - -@Deprecated('Deprecated') -const int kPEFRelocLgSetOrBySection = 90; - -@Deprecated('Deprecated') -const int kPEFRelocLgSetOrBySectionMaxIndex = 4194303; - -@Deprecated('Deprecated') -const int kPEFRelocLgSetSectCSubopcode = 1; - -@Deprecated('Deprecated') -const int kPEFRelocLgSetSectDSubopcode = 2; - -@Deprecated('Deprecated') -const int kPEFRelocRunMaxRunLength = 512; - -@Deprecated('Deprecated') -const int kPEFRelocSetPosMaxOffset = 67108863; - -@Deprecated('Deprecated') -const int kPEFRelocSetPosition = 80; - -@Deprecated('Deprecated') -const int kPEFRelocSmByImport = 48; - -@Deprecated('Deprecated') -const int kPEFRelocSmBySection = 51; - -@Deprecated('Deprecated') -const int kPEFRelocSmIndexMaxIndex = 511; - -@Deprecated('Deprecated') -const int kPEFRelocSmRepeat = 72; - -@Deprecated('Deprecated') -const int kPEFRelocSmRepeatMaxChunkCount = 16; - -@Deprecated('Deprecated') -const int kPEFRelocSmRepeatMaxRepeatCount = 256; - -@Deprecated('Deprecated') -const int kPEFRelocSmSetSectC = 49; - -@Deprecated('Deprecated') -const int kPEFRelocSmSetSectD = 50; - -@Deprecated('Deprecated') -const int kPEFRelocTVector12 = 34; - -@Deprecated('Deprecated') -const int kPEFRelocTVector8 = 35; - -@Deprecated('Deprecated') -const int kPEFRelocUndefinedOpcode = 255; - -@Deprecated('Deprecated') -const int kPEFRelocVTable8 = 36; - -@Deprecated('Deprecated') -const int kPEFRelocWithSkipMaxRelocCount = 63; - -@Deprecated('Deprecated') -const int kPEFRelocWithSkipMaxSkipCount = 255; - -@Deprecated('Deprecated') -const int kPEFTOCSymbol = 3; - -@Deprecated('Deprecated') -const int kPEFTVectorSymbol = 2; - -@Deprecated('Deprecated') -const int kPEFTag1 = 1248819489; - -@Deprecated('Deprecated') -const int kPEFTag2 = 1885693542; - -@Deprecated('Deprecated') -const int kPEFTracebackSection = 8; - -@Deprecated('Deprecated') -const int kPEFUndefinedSymbol = 15; - -@Deprecated('Deprecated') -const int kPEFUnpackedDataSection = 1; - -@Deprecated('Deprecated') -const int kPEFVersion = 1; - -@Deprecated('Deprecated') -const int kPEFWeakImportLibMask = 64; - -@Deprecated('Deprecated') -const int kPEFWeakImportSymMask = 128; - -const int kPMAllocationFailure = -108; - -const int kPMBorderDoubleHairline = 2; - -const int kPMBorderDoubleThickline = 4; - -const int kPMBorderSingleHairline = 1; - -const int kPMBorderSingleThickline = 3; - -const int kPMCMYKColorSpaceModel = 3; - -const int kPMCVMSymbolNotFound = -9662; - -const int kPMCancel = 128; - -const int kPMCloseFailed = -9785; - -const int kPMCoverPageAfter = 3; - -const int kPMCoverPageBefore = 2; - -const int kPMCoverPageNone = 1; - -const int kPMCreateMessageFailed = -9620; - -const int kPMDeleteSubTicketFailed = -9585; - -const int kPMDestinationFax = 3; - -const int kPMDestinationFile = 2; - -const int kPMDestinationInvalid = 0; - -const int kPMDestinationPreview = 4; - -const int kPMDestinationPrinter = 1; - -const int kPMDestinationProcessPDF = 5; - -const int kPMDevNColorSpaceModel = 4; - -const int kPMDocumentNotFound = -9644; - -const int kPMDontSwitchPDEError = -9531; - -const int kPMDuplexNoTumble = 2; - -const int kPMDuplexNone = 1; - -const int kPMDuplexTumble = 3; - -const int kPMEditRequestFailed = -9544; - -const int kPMFeatureNotInstalled = -9533; - -const int kPMFileOrDirOperationFailed = -9634; - -const int kPMFontNameTooLong = -9704; - -const int kPMFontNotFound = -9703; - -const int kPMGeneralCGError = -9705; - -const int kPMGeneralError = -30870; - -const int kPMGrayColorSpaceModel = 1; - -const int kPMHideInlineItems = 0; - -const int kPMIOAttrNotAvailable = -9787; - -const int kPMIOMSymbolNotFound = -9661; - -const int kPMInternalError = -30870; - -const int kPMInvalidAllocator = -30890; - -const int kPMInvalidCVMContext = -9665; - -const int kPMInvalidCalibrationTarget = -30898; - -const int kPMInvalidConnection = -30887; - -const int kPMInvalidFileType = -30895; - -const int kPMInvalidIOMContext = -9664; - -const int kPMInvalidIndex = -30882; - -const int kPMInvalidItem = -30892; - -const int kPMInvalidJobID = -9666; - -const int kPMInvalidJobTemplate = -30885; - -const int kPMInvalidKey = -30888; - -const int kPMInvalidLookupSpec = -9542; - -const int kPMInvalidObject = -30896; - -const int kPMInvalidPBMRef = -9540; - -const int kPMInvalidPDEContext = -9530; - -const int kPMInvalidPMContext = -9663; - -const int kPMInvalidPageFormat = -30876; - -const int kPMInvalidPaper = -30897; - -const int kPMInvalidParameter = -50; - -const int kPMInvalidPreset = -30899; - -const int kPMInvalidPrintSession = -30879; - -const int kPMInvalidPrintSettings = -30875; - -const int kPMInvalidPrinter = -30880; - -const int kPMInvalidPrinterAddress = -9780; - -const int kPMInvalidPrinterInfo = -30886; - -const int kPMInvalidReply = -30894; - -const int kPMInvalidState = -9706; - -const int kPMInvalidSubTicket = -9584; - -const int kPMInvalidTicket = -30891; - -const int kPMInvalidType = -30893; - -const int kPMInvalidValue = -30889; - -const int kPMItemIsLocked = -9586; - -const int kPMJobBusy = -9642; - -const int kPMJobCanceled = -9643; - -const int kPMJobGetTicketBadFormatError = -9672; - -const int kPMJobGetTicketReadError = -9673; - -const int kPMJobManagerAborted = -9671; - -const int kPMJobNotFound = -9641; - -const int kPMJobStreamEndError = -9670; - -const int kPMJobStreamOpenFailed = -9668; - -const int kPMJobStreamReadFailed = -9669; - -const int kPMKeyNotFound = -9589; - -const int kPMKeyNotUnique = -9590; - -const int kPMKeyOrValueNotFound = -9623; - -const int kPMLandscape = 2; - -const int kPMLastErrorCodeToMakeMaintenanceOfThisListEasier = -9799; - -const int kPMLayoutBottomTopLeftRight = 7; - -const int kPMLayoutBottomTopRightLeft = 8; - -const int kPMLayoutLeftRightBottomTop = 2; - -const int kPMLayoutLeftRightTopBottom = 1; - -const int kPMLayoutRightLeftBottomTop = 4; - -const int kPMLayoutRightLeftTopBottom = 3; - -const int kPMLayoutTopBottomLeftRight = 5; - -const int kPMLayoutTopBottomRightLeft = 6; - -const int kPMMessagingError = -9624; - -const int kPMNoDefaultItem = -9500; - -const int kPMNoDefaultPrinter = -30872; - -const int kPMNoDefaultSettings = -9501; - -const int kPMNoError = 0; - -const int kPMNoPrinterJobID = -9667; - -const int kPMNoSelectedPrinters = -9541; - -const int kPMNoSuchEntry = -30874; - -const int kPMNotImplemented = -30873; - -const int kPMObjectInUse = -30881; - -const int kPMOpenFailed = -9781; - -const int kPMOutOfScope = -30871; - -const int kPMPMSymbolNotFound = -9660; - -const int kPMPaperTypeCoated = 2; - -const int kPMPaperTypeGlossy = 4; - -const int kPMPaperTypePlain = 1; - -const int kPMPaperTypePremium = 3; - -const int kPMPaperTypeTShirt = 6; - -const int kPMPaperTypeTransparency = 5; - -const int kPMPaperTypeUnknown = 0; - -const int kPMPermissionError = -9636; - -const int kPMPluginNotFound = -9701; - -const int kPMPluginRegisterationFailed = -9702; - -const int kPMPortrait = 1; - -const int kPMPrBrowserNoUI = -9545; - -const int kPMPrintAllPages = -1; - -const int kPMPrinterIdle = 3; - -const int kPMPrinterProcessing = 4; - -const int kPMPrinterStopped = 5; - -const int kPMQualityBest = 13; - -const int kPMQualityDraft = 4; - -const int kPMQualityHighest = 15; - -const int kPMQualityInkSaver = 1; - -const int kPMQualityLowest = 0; - -const int kPMQualityNormal = 8; - -const int kPMQualityPhoto = 11; - -const int kPMQueueAlreadyExists = -9639; - -const int kPMQueueJobFailed = -9640; - -const int kPMQueueNotFound = -9638; - -const int kPMRGBColorSpaceModel = 2; - -const int kPMReadFailed = -9782; - -const int kPMReadGotZeroData = -9788; - -const int kPMReverseLandscape = 4; - -const int kPMReversePortrait = 3; - -const int kPMScalingCenterOnImgArea = 6; - -const int kPMScalingCenterOnPaper = 5; - -const int kPMScalingPinBottomLeft = 3; - -const int kPMScalingPinBottomRight = 4; - -const int kPMScalingPinTopLeft = 1; - -const int kPMScalingPinTopRight = 2; - -const int kPMServerAlreadyRunning = -9631; - -const int kPMServerAttributeRestricted = -9633; - -const int kPMServerCommunicationFailed = -9621; - -const int kPMServerNotFound = -9630; - -const int kPMServerSuspended = -9632; - -const int kPMShowDefaultInlineItems = 32768; - -const int kPMShowInlineCopies = 1; - -const int kPMShowInlineOrientation = 8; - -const int kPMShowInlinePageRange = 2; - -const int kPMShowInlinePageRangeWithSelection = 64; - -const int kPMShowInlinePaperSize = 4; - -const int kPMShowInlineScale = 128; - -const int kPMShowPageAttributesPDE = 256; - -const int kPMSimplexTumble = 4; - -const int kPMStatusFailed = -9784; - -const int kPMStringConversionFailure = -30883; - -const int kPMSubTicketNotFound = -9583; - -const int kPMSyncRequestFailed = -9543; - -const int kPMTemplateIsLocked = -9588; - -const int kPMTicketIsLocked = -9587; - -const int kPMTicketTypeNotFound = -9580; - -const int kPMUnableToFindProcess = -9532; - -const int kPMUnexpectedImagingError = -9707; - -const int kPMUnknownColorSpaceModel = 0; - -const int kPMUnknownDataType = -9591; - -const int kPMUnknownMessage = -9637; - -const int kPMUnlocked = 0; - -const int kPMUnsupportedConnection = -9786; - -const int kPMUpdateTicketFailed = -9581; - -const int kPMUserOrGroupNotFound = -9635; - -const int kPMValidateTicketFailed = -9582; - -const int kPMValueOutOfRange = -30877; - -const int kPMWriteFailed = -9783; - -const int kPMXMLParseError = -30884; - -const int kPOSIXErrorBase = 100000; - -const int kPOSIXErrorE2BIG = 100007; - -const int kPOSIXErrorEACCES = 100013; - -const int kPOSIXErrorEADDRINUSE = 100048; - -const int kPOSIXErrorEADDRNOTAVAIL = 100049; - -const int kPOSIXErrorEAFNOSUPPORT = 100047; - -const int kPOSIXErrorEAGAIN = 100035; - -const int kPOSIXErrorEALREADY = 100037; - -const int kPOSIXErrorEAUTH = 100080; - -const int kPOSIXErrorEBADARCH = 100086; - -const int kPOSIXErrorEBADEXEC = 100085; - -const int kPOSIXErrorEBADF = 100009; - -const int kPOSIXErrorEBADMACHO = 100088; - -const int kPOSIXErrorEBADMSG = 100094; - -const int kPOSIXErrorEBADRPC = 100072; - -const int kPOSIXErrorEBUSY = 100016; - -const int kPOSIXErrorECANCELED = 100089; - -const int kPOSIXErrorECHILD = 100010; - -const int kPOSIXErrorECONNABORTED = 100053; - -const int kPOSIXErrorECONNREFUSED = 100061; - -const int kPOSIXErrorECONNRESET = 100054; - -const int kPOSIXErrorEDEADLK = 100011; - -const int kPOSIXErrorEDESTADDRREQ = 100039; - -const int kPOSIXErrorEDEVERR = 100083; - -const int kPOSIXErrorEDOM = 100033; - -const int kPOSIXErrorEDQUOT = 100069; - -const int kPOSIXErrorEEXIST = 100017; - -const int kPOSIXErrorEFAULT = 100014; - -const int kPOSIXErrorEFBIG = 100027; - -const int kPOSIXErrorEFTYPE = 100079; - -const int kPOSIXErrorEHOSTDOWN = 100064; - -const int kPOSIXErrorEHOSTUNREACH = 100065; - -const int kPOSIXErrorEIDRM = 100090; - -const int kPOSIXErrorEILSEQ = 100092; - -const int kPOSIXErrorEINPROGRESS = 100036; - -const int kPOSIXErrorEINTR = 100004; - -const int kPOSIXErrorEINVAL = 100022; - -const int kPOSIXErrorEIO = 100005; - -const int kPOSIXErrorEISCONN = 100056; - -const int kPOSIXErrorEISDIR = 100021; - -const int kPOSIXErrorELOOP = 100062; - -const int kPOSIXErrorEMFILE = 100024; - -const int kPOSIXErrorEMLINK = 100031; - -const int kPOSIXErrorEMSGSIZE = 100040; - -const int kPOSIXErrorEMULTIHOP = 100095; - -const int kPOSIXErrorENAMETOOLONG = 100063; - -const int kPOSIXErrorENEEDAUTH = 100081; - -const int kPOSIXErrorENETDOWN = 100050; - -const int kPOSIXErrorENETRESET = 100052; - -const int kPOSIXErrorENETUNREACH = 100051; - -const int kPOSIXErrorENFILE = 100023; - -const int kPOSIXErrorENOATTR = 100093; - -const int kPOSIXErrorENOBUFS = 100055; - -const int kPOSIXErrorENODATA = 100096; - -const int kPOSIXErrorENODEV = 100019; - -const int kPOSIXErrorENOENT = 100002; - -const int kPOSIXErrorENOEXEC = 100008; - -const int kPOSIXErrorENOLCK = 100077; - -const int kPOSIXErrorENOLINK = 100097; - -const int kPOSIXErrorENOMEM = 100012; - -const int kPOSIXErrorENOMSG = 100091; - -const int kPOSIXErrorENOPROTOOPT = 100042; - -const int kPOSIXErrorENOSPC = 100028; - -const int kPOSIXErrorENOSR = 100098; - -const int kPOSIXErrorENOSTR = 100099; - -const int kPOSIXErrorENOSYS = 100078; - -const int kPOSIXErrorENOTBLK = 100015; - -const int kPOSIXErrorENOTCONN = 100057; - -const int kPOSIXErrorENOTDIR = 100020; - -const int kPOSIXErrorENOTEMPTY = 100066; - -const int kPOSIXErrorENOTSOCK = 100038; - -const int kPOSIXErrorENOTSUP = 100045; - -const int kPOSIXErrorENOTTY = 100025; - -const int kPOSIXErrorENXIO = 100006; - -const int kPOSIXErrorEOPNOTSUPP = 100102; - -const int kPOSIXErrorEOVERFLOW = 100084; - -const int kPOSIXErrorEPERM = 100001; - -const int kPOSIXErrorEPFNOSUPPORT = 100046; - -const int kPOSIXErrorEPIPE = 100032; - -const int kPOSIXErrorEPROCLIM = 100067; - -const int kPOSIXErrorEPROCUNAVAIL = 100076; - -const int kPOSIXErrorEPROGMISMATCH = 100075; - -const int kPOSIXErrorEPROGUNAVAIL = 100074; - -const int kPOSIXErrorEPROTO = 100100; - -const int kPOSIXErrorEPROTONOSUPPORT = 100043; - -const int kPOSIXErrorEPROTOTYPE = 100041; - -const int kPOSIXErrorEPWROFF = 100082; - -const int kPOSIXErrorERANGE = 100034; - -const int kPOSIXErrorEREMOTE = 100071; - -const int kPOSIXErrorEROFS = 100030; - -const int kPOSIXErrorERPCMISMATCH = 100073; - -const int kPOSIXErrorESHLIBVERS = 100087; - -const int kPOSIXErrorESHUTDOWN = 100058; - -const int kPOSIXErrorESOCKTNOSUPPORT = 100044; - -const int kPOSIXErrorESPIPE = 100029; - -const int kPOSIXErrorESRCH = 100003; - -const int kPOSIXErrorESTALE = 100070; - -const int kPOSIXErrorETIME = 100101; - -const int kPOSIXErrorETIMEDOUT = 100060; - -const int kPOSIXErrorETOOMANYREFS = 100059; - -const int kPOSIXErrorETXTBSY = 100026; - -const int kPOSIXErrorEUSERS = 100068; - -const int kPOSIXErrorEXDEV = 100018; - -const int kPROPALDirectionClass = 2; - -const int kPROPANDirectionClass = 6; - -const int kPROPBNDirectionClass = 19; - -const int kPROPCSDirectionClass = 7; - -const int kPROPCanHangLTMask = 16384; - -const int kPROPCanHangRBMask = 8192; - -const int kPROPCurrentVersion = 196608; - -const int kPROPDirectionMask = 31; - -const int kPROPENDirectionClass = 3; - -const int kPROPESDirectionClass = 4; - -const int kPROPETDirectionClass = 5; - -const int kPROPIsFloaterMask = 32768; - -const int kPROPLDirectionClass = 0; - -const int kPROPLREDirectionClass = 13; - -const int kPROPLRODirectionClass = 14; - -const int kPROPNSMDirectionClass = 18; - -const int kPROPNumDirectionClasses = 20; - -const int kPROPONDirectionClass = 11; - -const int kPROPPDFDirectionClass = 17; - -const int kPROPPSDirectionClass = 8; - -const int kPROPPairOffsetMask = 3840; - -const int kPROPPairOffsetShift = 8; - -const int kPROPPairOffsetSign = 7; - -const int kPROPRDirectionClass = 1; - -const int kPROPRLEDirectionClass = 15; - -const int kPROPRLODirectionClass = 16; - -const int kPROPRightConnectMask = 128; - -const int kPROPSDirectionClass = 9; - -const int kPROPSENDirectionClass = 12; - -const int kPROPTag = 1886547824; - -const int kPROPUseRLPairMask = 4096; - -const int kPROPWSDirectionClass = 10; - -const int kPROPZeroReserved = 96; - -const int kPackageAliasType = 1718643553; - -@Deprecated('Deprecated') -const int kPageInMemory = 0; - -@Deprecated('Deprecated') -const int kPageOnDisk = 1; - -const int kParenthesisAnnotationSelector = 5; - -const int kPartiallyConnectedSelector = 1; - -@Deprecated('Deprecated') -const int kPascalStackBased = 0; - -const int kPassCallToChainErr = -9086; - -@Deprecated('Deprecated') -const int kPassSelector = 0; - -const int kPassword = 2; - -const int kPasswordChangedKCEvent = 6; - -const int kPasswordChangedKCEventMask = 64; - -const int kPathKCItemAttr = 1885434984; - -const int kPeriodAnnotationSelector = 6; - -const int kPeriodsToEllipsisOffSelector = 11; - -const int kPeriodsToEllipsisOnSelector = 10; - -const int kPiCharactersSelector = 2; - -@Deprecated('Deprecated') -const int kPictureDocumentsFolderType = 1885630307; - -const int kPlotIconRefNoImage = 2; - -const int kPlotIconRefNoMask = 4; - -const int kPlotIconRefNormalFlags = 0; - -const int kPolicyKCStopOn = 0; - -const int kPortKCItemAttr = 1886351988; - -const int kPos2Offset = 1882354548; - -const int kPostCardEventErr = -9088; - -const int kPowerHandlerExistsForDeviceErr = -13006; - -const int kPowerHandlerNotFoundForDeviceErr = -13007; - -const int kPowerHandlerNotFoundForProcErr = -13008; - -const int kPowerMgtMessageNotHandled = -13009; - -const int kPowerMgtRequestDenied = -13010; - -@Deprecated('Deprecated') -const int kPowerPCISA = 1; - -@Deprecated('Deprecated') -const int kPowerPCRTA = 0; - -@Deprecated('Deprecated') -const int kPreMacOS91AppleExtrasFolderType = -1939507004; - -@Deprecated('Deprecated') -const int kPreMacOS91ApplicationsFolderType = -1938788237; - -@Deprecated('Deprecated') -const int kPreMacOS91AssistantsFolderType = -1938590524; - -@Deprecated('Deprecated') -const int kPreMacOS91AutomountedServersFolderType = -1485670716; - -@Deprecated('Deprecated') -const int kPreMacOS91InstallerLogsFolderType = -1804834970; - -@Deprecated('Deprecated') -const int kPreMacOS91InternetFolderType = -1804700476; - -@Deprecated('Deprecated') -const int kPreMacOS91MacOSReadMesFolderType = -1250987324; - -@Deprecated('Deprecated') -const int kPreMacOS91StationeryFolderType = -1083935884; - -@Deprecated('Deprecated') -const int kPreMacOS91UtilitiesFolderType = -1619760700; - -@Deprecated('Deprecated') -const int kPreemptiveThread = 2; - -const int kPreferencePanesFolderType = 1886413166; - -const int kPreferencesFolderAliasType = 1717661798; - -const int kPreferencesFolderIcon = 1886545604; - -const int kPreferencesFolderIconResource = -3974; - -@Deprecated('Deprecated') -const int kPreferencesFolderType = 1886545254; - -const int kPreflightThenPause = 4; - -const int kPreventOverlapOffSelector = 1; - -const int kPreventOverlapOnSelector = 0; - -const int kPreviousBody = 2; - -const int kPrintMonitorDocsFolderAliasType = 1717661806; - -@Deprecated('Deprecated') -const int kPrintMonitorDocsFolderType = 1886547572; - -const int kPrintMonitorFolderIcon = 1886547572; - -const int kPrintMonitorFolderIconResource = -3975; - -const int kPrinterDescriptionFolderIcon = 1886413926; - -@Deprecated('Deprecated') -const int kPrinterDescriptionFolderType = 1886413926; - -const int kPrinterDriverFolderIcon = -999263644; - -@Deprecated('Deprecated') -const int kPrinterDriverFolderType = -999263644; - -@Deprecated('Deprecated') -const int kPrintersFolderType = 1768779890; - -@Deprecated('Deprecated') -const int kPrintingPlugInsFolderType = 1886415975; - -const int kPrivateFolderIcon = 1886549606; - -const int kPrivateFolderIconResource = -3994; - -@Deprecated('Deprecated') -const int kPrivateFrameworksFolderType = 1885762157; - -@Deprecated('Deprecated') -const int kPrivilegeViolationException = 8; - -@Deprecated('Deprecated') -const int kProcDescriptorIsAbsolute = 0; - -@Deprecated('Deprecated') -const int kProcDescriptorIsIndex = 32; - -@Deprecated('Deprecated') -const int kProcDescriptorIsProcPtr = 0; - -@Deprecated('Deprecated') -const int kProcDescriptorIsRelative = 1; - -const int kProcessDictionaryIncludeAllInformationMask = -1; - -const int kProcessTransformToBackgroundApplication = 2; - -const int kProcessTransformToForegroundApplication = 1; - -const int kProcessTransformToUIElementApplication = 4; - -const int kProcessorTempRoutineRequiresMPLib2 = -13014; - -const int kProportionalCJKRomanSelector = 1; - -const int kProportionalIdeographsSelector = 1; - -const int kProportionalKanaSelector = 1; - -const int kProportionalNumbersSelector = 1; - -const int kProportionalTextSelector = 0; - -const int kProtectedApplicationFolderIcon = 1885433968; - -const int kProtectedSystemFolderIcon = 1886615923; - -const int kProtocolKCItemAttr = 1886675820; - -const int kPublicFolderIcon = 1886741094; - -@Deprecated('Deprecated') -const int kPublicFolderType = 1886741090; - -const int kPublicKeyHashKCItemAttr = 1752198009; - -const int kQDCorruptPICTDataErr = -3954; - -const int kQDCursorAlreadyRegistered = -3952; - -const int kQDCursorNotRegistered = -3953; - -const int kQDNoColorHWCursorSupport = -3951; - -const int kQDNoPalette = -3950; - -const int kQTSSUnknownErr = -6150; - -const int kQuarterWidthNumbersSelector = 3; - -const int kQuarterWidthTextSelector = 4; - -const int kQuestionMarkIcon = 1903519091; - -@Deprecated('Deprecated') -const int kQuickLookFolderType = 1902928747; - -@Deprecated('Deprecated') -const int kQuickTimeComponentsFolderType = 2003004784; - -@Deprecated('Deprecated') -const int kQuickTimeExtensionsFolderType = 1903453560; - -const int kQuitAtNormalTimeMask = 2; - -const int kQuitBeforeFBAsQuitMask = 4; - -const int kQuitBeforeNormalTimeMask = 1; - -const int kQuitBeforeShellQuitsMask = 8; - -const int kQuitBeforeTerminatorAppQuitsMask = 16; - -const int kQuitNeverMask = 32; - -const int kQuitNotQuitDuringInstallMask = 256; - -const int kQuitNotQuitDuringLogoutMask = 512; - -const int kQuitOptionsMask = 127; - -const int kRAATalkInactive = -7134; - -const int kRACallBackFailed = -7138; - -const int kRAConfigurationDBInitErr = -7127; - -const int kRAConnectionCanceled = -7109; - -const int kRADuplicateIPAddr = -7137; - -const int kRAExtAuthenticationFailed = -7135; - -const int kRAIncompatiblePrefs = -7107; - -const int kRAInitOpenTransportFailed = -7122; - -const int kRAInstallationDamaged = -7113; - -const int kRAInternalError = -7112; - -const int kRAInvalidParameter = -7100; - -const int kRAInvalidPassword = -7111; - -const int kRAInvalidPort = -7101; - -const int kRAInvalidPortState = -7116; - -const int kRAInvalidSerialProtocol = -7117; - -const int kRAMissingResources = -7106; - -const int kRANCPRejectedbyPeer = -7136; - -const int kRANotConnected = -7108; - -const int kRANotEnabled = -7139; - -const int kRANotPrimaryInterface = -7126; - -const int kRANotSupported = -7105; - -const int kRAOutOfMemory = -7104; - -const int kRAPPPAuthenticationFailed = -7129; - -const int kRAPPPNegotiationFailed = -7130; - -const int kRAPPPPeerDisconnected = -7132; - -const int kRAPPPProtocolRejected = -7128; - -const int kRAPPPUserDisconnected = -7131; - -const int kRAPeerNotResponding = -7133; - -const int kRAPortBusy = -7114; - -const int kRAPortSetupFailed = -7103; - -const int kRARemoteAccessNotReady = -7123; - -const int kRAStartupFailed = -7102; - -const int kRATCPIPInactive = -7124; - -const int kRATCPIPNotConfigured = -7125; - -const int kRAUnknownPortState = -7115; - -const int kRAUnknownUser = -7110; - -const int kRAUserInteractionRequired = -7121; - -const int kRAUserLoginDisabled = -7118; - -const int kRAUserPwdChangeRequired = -7119; - -const int kRAUserPwdEntryRequired = -7120; - -const int kRareLigaturesOffSelector = 5; - -const int kRareLigaturesOnSelector = 4; - -const int kRdPermKCStatus = 2; - -const int kReadExtensionTermsMask = 32768; - -const int kReadFailureErr = -9068; - -@Deprecated('Deprecated') -const int kReadOnlyMemoryException = 6; - -@Deprecated('Deprecated') -const int kReadReference = 1; - -@Deprecated('Deprecated') -const int kReadyThreadState = 0; - -const int kRebusPicturesOffSelector = 9; - -const int kRebusPicturesOnSelector = 8; - -const int kRecentApplicationsFolderIcon = 1918988400; - -@Deprecated('Deprecated') -const int kRecentApplicationsFolderType = 1918988400; - -const int kRecentDocumentsFolderIcon = 1919184739; - -@Deprecated('Deprecated') -const int kRecentDocumentsFolderType = 1919184739; - -const int kRecentItemsIcon = 1919118964; - -const int kRecentServersFolderIcon = 1920168566; - -@Deprecated('Deprecated') -const int kRecentServersFolderType = 1920169586; - -const int kRedirectedRelativeFolder = 1920099692; - -const int kRedrawHighlighting = 1; - -@Deprecated('Deprecated') -const int kRegisterA0 = 4; - -@Deprecated('Deprecated') -const int kRegisterA1 = 5; - -@Deprecated('Deprecated') -const int kRegisterA2 = 6; - -@Deprecated('Deprecated') -const int kRegisterA3 = 7; - -@Deprecated('Deprecated') -const int kRegisterA4 = 12; - -@Deprecated('Deprecated') -const int kRegisterA5 = 13; - -@Deprecated('Deprecated') -const int kRegisterA6 = 14; - -@Deprecated('Deprecated') -const int kRegisterBased = 2; - -@Deprecated('Deprecated') -const int kRegisterD0 = 0; - -@Deprecated('Deprecated') -const int kRegisterD1 = 1; - -@Deprecated('Deprecated') -const int kRegisterD2 = 2; - -@Deprecated('Deprecated') -const int kRegisterD3 = 3; - -@Deprecated('Deprecated') -const int kRegisterD4 = 8; - -@Deprecated('Deprecated') -const int kRegisterD5 = 9; - -@Deprecated('Deprecated') -const int kRegisterD6 = 10; - -@Deprecated('Deprecated') -const int kRegisterD7 = 11; - -@Deprecated('Deprecated') -const int kRegisterParameterMask = 2147481600; - -@Deprecated('Deprecated') -const int kRegisterParameterPhase = 11; - -@Deprecated('Deprecated') -const int kRegisterParameterSizePhase = 0; - -@Deprecated('Deprecated') -const int kRegisterParameterSizeWidth = 2; - -@Deprecated('Deprecated') -const int kRegisterParameterWhichPhase = 2; - -@Deprecated('Deprecated') -const int kRegisterParameterWhichWidth = 3; - -@Deprecated('Deprecated') -const int kRegisterParameterWidth = 5; - -@Deprecated('Deprecated') -const int kRegisterResultLocationPhase = 6; - -@Deprecated('Deprecated') -const int kRegisterResultLocationWidth = 5; - -const int kRelativeFolder = 1919249510; - -const int kRequiredLigaturesOffSelector = 1; - -const int kRequiredLigaturesOnSelector = 0; - -@Deprecated('Deprecated') -const int kResFileNotOpened = -1; - -@Deprecated('Deprecated') -const int kResolveAliasFileNoUI = 1; - -@Deprecated('Deprecated') -const int kResolveAliasTryFileIDFirst = 2; - -@Deprecated('Deprecated') -const int kResultSizeMask = 48; - -@Deprecated('Deprecated') -const int kResultSizePhase = 4; - -@Deprecated('Deprecated') -const int kResultSizeWidth = 2; - -const int kReturnNextGroup = 2; - -const int kReturnNextUG = 3; - -const int kReturnNextUser = 1; - -const int kRightContainerArrowIcon = 1919115634; - -const int kRolloverIconVariant = 1870030194; - -const int kRomanNumeralAnnotationSelector = 7; - -const int kRomanizationToHiraganaSelector = 5; - -const int kRomanizationToKatakanaSelector = 6; - -const int kRootFolder = 1919906918; - -const int kRoundedBoxAnnotationSelector = 2; - -@Deprecated('Deprecated') -const int kRoutineDescriptorVersion = 7; - -@Deprecated('Deprecated') -const int kRoutineIsDispatchedDefaultRoutine = 16; - -@Deprecated('Deprecated') -const int kRoutineIsNotDispatchedDefaultRoutine = 0; - -const int kRoutingResourceID = 0; - -const int kRoutingResourceType = 1919907188; - -@Deprecated('Deprecated') -const int kRsrcChainAboveAllMaps = 4; - -@Deprecated('Deprecated') -const int kRsrcChainAboveApplicationMap = 2; - -@Deprecated('Deprecated') -const int kRsrcChainBelowApplicationMap = 1; - -@Deprecated('Deprecated') -const int kRsrcChainBelowSystemMap = 0; - -const int kRubyKanaOffSelector = 3; - -const int kRubyKanaOnSelector = 2; - -const int kRubyKanaSelector = 1; - -const int kRubyKanaType = 28; - -@Deprecated('Deprecated') -const int kRunningThreadState = 2; - -const int kSFNTLookupSegmentArray = 4; - -const int kSFNTLookupSegmentSingle = 2; - -const int kSFNTLookupSimpleArray = 0; - -const int kSFNTLookupSingleTable = 6; - -const int kSFNTLookupTrimmedArray = 8; - -const int kSFNTLookupVector = 10; - -const int kSKSearchOptionDefault = 0; - -const int kSKSearchOptionFindSimilar = 4; - -const int kSKSearchOptionNoRelevanceScores = 1; - -const int kSKSearchOptionSpaceMeansOR = 2; - -const int kSOAP1999Schema = 1936931129; - -const int kSOAP2001Schema = 1936928817; - -const int kSOCKS5NoAcceptableMethod = 255; - -const int kSSpCantInstallErr = -30342; - -const int kSSpInternalErr = -30340; - -const int kSSpParallelUpVectorErr = -30343; - -const int kSSpScaleToZeroErr = -30344; - -const int kSSpVersionErr = -30341; - -const int kSTClassDeletedGlyph = 2; - -const int kSTClassEndOfLine = 3; - -const int kSTClassEndOfText = 0; - -const int kSTClassOutOfBounds = 1; - -const int kSTKCrossStreamReset = 8192; - -const int kSTLigActionMask = 16383; - -const int kSTMarkEnd = 8192; - -const int kSTNoAdvance = 16384; - -const int kSTRearrVerbMask = 15; - -const int kSTSetMark = 32768; - -const int kSTXHasLigAction = 8192; - -const int kScientificInferiorsSelector = 4; - -const int kScreenSaversFolderType = 1935897198; - -const int kScriptCodeKCItemAttr = 1935897200; - -const int kScriptingAdditionsFolderIcon = -999070862; - -@Deprecated('Deprecated') -const int kScriptingAdditionsFolderType = -999070862; - -const int kScriptsFolderIcon = 1935897284; - -@Deprecated('Deprecated') -const int kScriptsFolderType = 1935897284; - -const int kSecCSAllowNetworkAccess = 65536; - -const int kSecCSBasicValidateOnly = 6; - -const int kSecCSCalculateCMSDigest = 64; - -const int kSecCSCheckAllArchitectures = 1; - -const int kSecCSCheckGatekeeperArchitectures = 65; - -const int kSecCSCheckNestedCode = 8; - -const int kSecCSContentInformation = 16; - -const int kSecCSDedicatedHost = 1; - -const int kSecCSDoNotValidateExecutable = 2; - -const int kSecCSDoNotValidateResources = 4; - -const int kSecCSDynamicInformation = 8; - -const int kSecCSFastExecutableValidation = 131072; - -const int kSecCSFullReport = 32; - -const int kSecCSGenerateGuestHash = 2; - -const int kSecCSInternalInformation = 1; - -const int kSecCSRequirementInformation = 4; - -const int kSecCSRestrictSidebandData = 512; - -const int kSecCSRestrictSymlinks = 128; - -const int kSecCSRestrictToAppLike = 256; - -const int kSecCSSigningInformation = 2; - -const int kSecCSSingleThreaded = 4096; - -const int kSecCSSkipResourceDirectory = 32; - -const int kSecCSStrictValidate = 16; - -const int kSecCSUseAllArchitectures = 1; - -const int kSecCSUseSoftwareSigningCert = 1024; - -const int kSecCSValidatePEH = 2048; - -const int kSecCertEncodingItemAttr = 1667591779; - -const int kSecCertTypeItemAttr = 1668577648; - -const int kSecHonorRoot = 256; - -const int kSecIssuerItemAttr = 1769173877; - -@Deprecated('No longer supported') -const int kSecKeyAlias = 2; - -@Deprecated('No longer supported') -const int kSecKeyAlwaysSensitive = 15; - -@Deprecated('No longer supported') -const int kSecKeyApplicationTag = 7; - -@Deprecated('No longer supported') -const int kSecKeyDecrypt = 19; - -@Deprecated('No longer supported') -const int kSecKeyDerive = 20; - -@Deprecated('No longer supported') -const int kSecKeyEffectiveKeySize = 11; - -@Deprecated('No longer supported') -const int kSecKeyEncrypt = 18; - -@Deprecated('No longer supported') -const int kSecKeyEndDate = 13; - -@Deprecated('No longer supported') -const int kSecKeyExtractable = 16; - -@Deprecated('No longer supported') -const int kSecKeyKeyClass = 0; - -@Deprecated('No longer supported') -const int kSecKeyKeyCreator = 8; - -@Deprecated('No longer supported') -const int kSecKeyKeySizeInBits = 10; - -@Deprecated('No longer supported') -const int kSecKeyKeyType = 9; - -@Deprecated('No longer supported') -const int kSecKeyLabel = 6; - -@Deprecated('No longer supported') -const int kSecKeyModifiable = 5; - -@Deprecated('No longer supported') -const int kSecKeyNeverExtractable = 17; - -@Deprecated('No longer supported') -const int kSecKeyPermanent = 3; - -@Deprecated('No longer supported') -const int kSecKeyPrintName = 1; - -@Deprecated('No longer supported') -const int kSecKeyPrivate = 4; - -@Deprecated('No longer supported') -const int kSecKeySensitive = 14; - -@Deprecated('No longer supported') -const int kSecKeySign = 21; - -@Deprecated('No longer supported') -const int kSecKeySignRecover = 23; - -@Deprecated('No longer supported') -const int kSecKeyStartDate = 12; - -@Deprecated('No longer supported') -const int kSecKeyUnwrap = 26; - -@Deprecated('No longer supported') -const int kSecKeyVerify = 22; - -@Deprecated('No longer supported') -const int kSecKeyVerifyRecover = 24; - -@Deprecated('No longer supported') -const int kSecKeyWrap = 25; - -const int kSecMatchBits = 3; - -const int kSecNoGuest = 0; - -const int kSecOptionReserved = 255; - -const int kSecPublicKeyHashItemAttr = 1752198009; - -const int kSecReadPermStatus = 2; - -const int kSecRevocationCRLMethod = 2; - -const int kSecRevocationNetworkAccessDisabled = 16; - -const int kSecRevocationOCSPMethod = 1; - -const int kSecRevocationPreferCRL = 4; - -const int kSecRevocationRequirePositiveResponse = 8; - -const int kSecRevocationUseAnyAvailableMethod = 3; - -const int kSecSerialNumberItemAttr = 1936614002; - -const int kSecSubjectItemAttr = 1937072746; - -const int kSecSubjectKeyIdentifierItemAttr = 1936419172; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorAbortInProgress = 19; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorAborted = 20; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorAttributeNotFound = 1; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidAlgorithm = 6; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidConnection = 15; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidInput = 10; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidInputDictionary = 5; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidLength = 7; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidOperation = 2; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorInvalidType = 8; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorMissingParameter = 14; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorMoreThanOneOutput = 4; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorNameAlreadyRegistered = 11; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorNotInitializedCorrectly = 3; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformErrorUnsupportedAttribute = 12; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformInvalidArgument = 21; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformInvalidOverride = 17; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformOperationNotSupportedOnGroup = 13; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformTransformIsExecuting = 16; - -@Deprecated('SecTransform is no longer supported') -const int kSecTransformTransformIsNotRegistered = 18; - -const int kSecUnlockStateStatus = 1; - -const int kSecUseOnlyGID = 2; - -const int kSecUseOnlyUID = 1; - -const int kSecWritePermStatus = 4; - -const int kSecondScale = 1000000000; - -const int kSecurityDomainKCItemAttr = 1935961454; - -const int kSelectorAll1BitData = 16843009; - -const int kSelectorAll32BitData = 134219784; - -const int kSelectorAll4BitData = 33686018; - -const int kSelectorAll8BitData = 67372036; - -const int kSelectorAllAvailableData = -1; - -const int kSelectorAllHugeData = -16777216; - -const int kSelectorAllLargeData = 255; - -const int kSelectorAllMiniData = 16711680; - -const int kSelectorAllSmallData = 65280; - -const int kSelectorHuge1Bit = 16777216; - -const int kSelectorHuge32Bit = 134217728; - -const int kSelectorHuge4Bit = 33554432; - -const int kSelectorHuge8Bit = 67108864; - -const int kSelectorHuge8BitMask = 268435456; - -const int kSelectorLarge1Bit = 1; - -const int kSelectorLarge32Bit = 8; - -const int kSelectorLarge4Bit = 2; - -const int kSelectorLarge8Bit = 4; - -const int kSelectorLarge8BitMask = 16; - -const int kSelectorMini1Bit = 65536; - -const int kSelectorMini4Bit = 131072; - -const int kSelectorMini8Bit = 262144; - -const int kSelectorSmall1Bit = 256; - -const int kSelectorSmall32Bit = 2048; - -const int kSelectorSmall4Bit = 512; - -const int kSelectorSmall8Bit = 1024; - -const int kSelectorSmall8BitMask = 4096; - -@Deprecated('Deprecated') -const int kSelectorsAreIndexable = 1; - -@Deprecated('Deprecated') -const int kSelectorsAreNotIndexable = 0; - -const int kSerialNumberKCItemAttr = 1936614002; - -const int kServerKCItemAttr = 1936881266; - -const int kServiceKCItemAttr = 1937138533; - -@Deprecated('Deprecated') -const int kServicesFolderType = 1937138547; - -const int kSetCLUTByValue = 1; - -const int kSetCLUTImmediately = 2; - -const int kSetCLUTWithLuminance = 4; - -@Deprecated('Deprecated') -const int kSetDebugOption = 2; - -const int kSetFrontProcessCausedByUser = 2; - -const int kSetFrontProcessFrontWindowOnly = 1; - -const int kSetPowerLevel = 17; - -const int kSharedBadgeIcon = 1935828071; - -const int kSharedFolderAliasType = 1717662568; - -const int kSharedFolderIcon = 1936221804; - -const int kSharedFolderIconResource = -3978; - -const int kSharedLibrariesFolderIcon = -999528094; - -@Deprecated('Deprecated') -const int kSharedLibrariesFolderType = -999528094; - -@Deprecated('Deprecated') -const int kSharedUserDataFolderType = 1935958388; - -const int kSharingPrivsNotApplicableIcon = 1936223841; - -const int kSharingPrivsReadOnlyIcon = 1936224879; - -const int kSharingPrivsReadWriteIcon = 1936224887; - -const int kSharingPrivsUnknownIcon = 1936225643; - -const int kSharingPrivsWritableIcon = 2003986804; - -const int kShiftJIS_BasicVariant = 0; - -const int kShiftJIS_DOSVariant = 1; - -const int kShiftJIS_MusicCDVariant = 2; - -const int kShortcutIcon = 1936224884; - -const int kShowDiacriticsSelector = 0; - -const int kShowHideInputWindow = 1936222583; - -@Deprecated('Deprecated') -const int kShutdownFolderType = 1936221286; - -const int kShutdownItemsDisabledFolderIcon = 1936221252; - -@Deprecated('Deprecated') -const int kShutdownItemsDisabledFolderType = 1936221252; - -const int kShutdownItemsFolderIcon = 1936221286; - -const int kSignKCItemAttr = 1936287598; - -const int kSignatureKCItemAttr = 1936943463; - -const int kSimplifiedCharactersSelector = 1; - -const int kSlashToDivideOffSelector = 5; - -const int kSlashToDivideOnSelector = 4; - -const int kSlashedZeroOffSelector = 5; - -const int kSlashedZeroOnSelector = 4; - -const int kSleepDemand = 2; - -const int kSleepDeny = 5; - -const int kSleepNow = 6; - -const int kSleepRequest = 1; - -const int kSleepRevoke = 4; - -const int kSleepUnlock = 4; - -const int kSleepWakeUp = 3; - -const int kSmall1BitMask = 1768125219; - -const int kSmall32BitData = 1769157426; - -const int kSmall4BitData = 1768125236; - -const int kSmall4BitIconSize = 128; - -const int kSmall8BitData = 1768125240; - -const int kSmall8BitIconSize = 256; - -const int kSmall8BitMask = 1933077867; - -const int kSmallCapsSelector = 3; - -const int kSmallIconSize = 64; - -const int kSmartQuotesOffSelector = 9; - -const int kSmartQuotesOnSelector = 8; - -const int kSmartSwashType = 8; - -const int kSortAscendingIcon = 1634954852; - -const int kSortDescendingIcon = 1685286500; - -const int kSoundFileIcon = 1936091500; - -@Deprecated('Deprecated') -const int kSoundSetsFolderType = 1936614515; - -const int kSpeakableItemsFolder = 1936747369; - -@Deprecated('Deprecated') -const int kSpeakableItemsFolderType = 1936747369; - -@Deprecated('Deprecated') -const int kSpecialCase = 15; - -@Deprecated('Deprecated') -const int kSpecialCaseCaretHook = 0; - -@Deprecated('Deprecated') -const int kSpecialCaseDrawHook = 4; - -@Deprecated('Deprecated') -const int kSpecialCaseEOLHook = 1; - -@Deprecated('Deprecated') -const int kSpecialCaseGNEFilterProc = 11; - -@Deprecated('Deprecated') -const int kSpecialCaseHighHook = 0; - -@Deprecated('Deprecated') -const int kSpecialCaseHitTestHook = 5; - -@Deprecated('Deprecated') -const int kSpecialCaseMBarHook = 12; - -@Deprecated('Deprecated') -const int kSpecialCaseNWidthHook = 3; - -@Deprecated('Deprecated') -const int kSpecialCaseProtocolHandler = 7; - -@Deprecated('Deprecated') -const int kSpecialCaseSelectorMask = 1008; - -@Deprecated('Deprecated') -const int kSpecialCaseSelectorPhase = 4; - -@Deprecated('Deprecated') -const int kSpecialCaseSelectorWidth = 6; - -@Deprecated('Deprecated') -const int kSpecialCaseSocketListener = 8; - -@Deprecated('Deprecated') -const int kSpecialCaseTEDoText = 10; - -@Deprecated('Deprecated') -const int kSpecialCaseTEFindWord = 6; - -@Deprecated('Deprecated') -const int kSpecialCaseTERecalc = 9; - -@Deprecated('Deprecated') -const int kSpecialCaseTextWidthHook = 2; - -@Deprecated('Deprecated') -const int kSpecialCaseWidthHook = 2; - -const int kSpecialFolder = 1936745318; - -@Deprecated('Deprecated') -const int kSpeechFolderType = 1936745320; - -const int kSpeechGenerateTune = 1; - -const int kSpeechRelativeDuration = 4; - -const int kSpeechRelativePitch = 2; - -const int kSpeechShowSyllables = 8; - -@Deprecated('Deprecated') -const int kSpotlightImportersFolderType = 1936289136; - -@Deprecated('Deprecated') -const int kSpotlightMetadataCacheFolderType = 1935893352; - -@Deprecated('Deprecated') -const int kSpotlightSavedSearchesFolderType = 1936748404; - -const int kSquaredLigaturesOffSelector = 13; - -const int kSquaredLigaturesOnSelector = 12; - -@Deprecated('Deprecated') -const int kStackDispatchedPascalStackBased = 14; - -@Deprecated('Deprecated') -const int kStackOverflowException = 14; - -@Deprecated('Deprecated') -const int kStackParameterMask = -64; - -@Deprecated('Deprecated') -const int kStackParameterPhase = 6; - -@Deprecated('Deprecated') -const int kStackParameterWidth = 2; - -const int kStartDateKCItemAttr = 1935958388; - -const int kStartupFolderAliasType = 1717662580; - -const int kStartupFolderIconResource = -3981; - -@Deprecated('Deprecated') -const int kStartupFolderType = 1937011316; - -const int kStartupItemsDisabledFolderIcon = 1937011268; - -@Deprecated('Deprecated') -const int kStartupItemsDisabledFolderType = 1937011268; - -const int kStartupItemsFolderIcon = 1937011316; - -@Deprecated('Deprecated') -const int kStationeryFolderType = 1868854132; - -const int kStillIdle = 25; - -@Deprecated('Deprecated') -const int kStoppedThreadState = 1; - -const int kStyleOptionsType = 19; - -const int kStylisticAltEightOffSelector = 17; - -const int kStylisticAltEightOnSelector = 16; - -const int kStylisticAltEighteenOffSelector = 37; - -const int kStylisticAltEighteenOnSelector = 36; - -const int kStylisticAltElevenOffSelector = 23; - -const int kStylisticAltElevenOnSelector = 22; - -const int kStylisticAltFifteenOffSelector = 31; - -const int kStylisticAltFifteenOnSelector = 30; - -const int kStylisticAltFiveOffSelector = 11; - -const int kStylisticAltFiveOnSelector = 10; - -const int kStylisticAltFourOffSelector = 9; - -const int kStylisticAltFourOnSelector = 8; - -const int kStylisticAltFourteenOffSelector = 29; - -const int kStylisticAltFourteenOnSelector = 28; - -const int kStylisticAltNineOffSelector = 19; - -const int kStylisticAltNineOnSelector = 18; - -const int kStylisticAltNineteenOffSelector = 39; - -const int kStylisticAltNineteenOnSelector = 38; - -const int kStylisticAltOneOffSelector = 3; - -const int kStylisticAltOneOnSelector = 2; - -const int kStylisticAltSevenOffSelector = 15; - -const int kStylisticAltSevenOnSelector = 14; - -const int kStylisticAltSeventeenOffSelector = 35; - -const int kStylisticAltSeventeenOnSelector = 34; - -const int kStylisticAltSixOffSelector = 13; - -const int kStylisticAltSixOnSelector = 12; - -const int kStylisticAltSixteenOffSelector = 33; - -const int kStylisticAltSixteenOnSelector = 32; - -const int kStylisticAltTenOffSelector = 21; - -const int kStylisticAltTenOnSelector = 20; - -const int kStylisticAltThirteenOffSelector = 27; - -const int kStylisticAltThirteenOnSelector = 26; - -const int kStylisticAltThreeOffSelector = 7; - -const int kStylisticAltThreeOnSelector = 6; - -const int kStylisticAltTwelveOffSelector = 25; - -const int kStylisticAltTwelveOnSelector = 24; - -const int kStylisticAltTwentyOffSelector = 41; - -const int kStylisticAltTwentyOnSelector = 40; - -const int kStylisticAltTwoOffSelector = 5; - -const int kStylisticAltTwoOnSelector = 4; - -const int kStylisticAlternativesType = 35; - -const int kSubjectKCItemAttr = 1937072746; - -const int kSubstituteVerticalFormsOffSelector = 1; - -const int kSubstituteVerticalFormsOnSelector = 0; - -const int kSuperiorsSelector = 1; - -const int kSuspendDemand = 13; - -const int kSuspendRequest = 12; - -const int kSuspendRevoke = 14; - -const int kSuspendWakeToDoze = 23; - -const int kSuspendWakeUp = 15; - -const int kSwashAlternatesOffSelector = 3; - -const int kSwashAlternatesOnSelector = 2; - -const int kSymLinkCreator = 1919443312; - -const int kSymLinkFileType = 1936485995; - -const int kSymbolLigaturesOffSelector = 17; - -const int kSymbolLigaturesOnSelector = 16; - -const int kSysSWTooOld = -6226; - -@Deprecated('Deprecated') -const int kSystemControlPanelFolderType = 1935897708; - -@Deprecated('Deprecated') -const int kSystemDesktopFolderType = 1935962987; - -@Deprecated('Deprecated') -const int kSystemDomain = -32766; - -const int kSystemEventKCEventMask = 256; - -const int kSystemExtensionDisabledFolderIcon = 1835098948; - -@Deprecated('Deprecated') -const int kSystemExtensionDisabledFolderType = 1835098948; - -const int kSystemFolderAliasType = 1717662585; - -const int kSystemFolderIcon = 1835098995; - -const int kSystemFolderIconResource = -3983; - -@Deprecated('Deprecated') -const int kSystemFolderType = 1835098995; - -const int kSystemIconsCreator = 1835098995; - -const int kSystemKCEvent = 8; - -const int kSystemPPDDomain = 2; - -@Deprecated('Deprecated') -const int kSystemPreferencesFolderType = 1936749158; - -const int kSystemProcess = 1; - -@Deprecated('Deprecated') -const int kSystemResFile = 0; - -@Deprecated('Deprecated') -const int kSystemSoundsFolderType = 1936944740; - -const int kSystemSuitcaseIcon = 2054388083; - -@Deprecated('Deprecated') -const int kSystemTrashFolderType = 1937011315; - -const int kTECAddFallbackInterruptBit = 7; - -const int kTECAddFallbackInterruptMask = 128; - -const int kTECAddForceASCIIChangesBit = 4; - -const int kTECAddForceASCIIChangesMask = 16; - -const int kTECAddTextRunHeuristicsBit = 6; - -const int kTECAddTextRunHeuristicsMask = 64; - -const int kTECArrayFullErr = -8751; - -const int kTECAvailableEncodingsResType = 1668703598; - -const int kTECAvailableSniffersResType = 1668707174; - -const int kTECBadTextRunErr = -8752; - -const int kTECBufferBelowMinimumSizeErr = -8750; - -const int kTECChinesePluginSignature = 1887070319; - -const int kTECConversionInfoResType = 1668704614; - -const int kTECCorruptConverterErr = -8748; - -const int kTECDirectionErr = -8756; - -const int kTECDisableFallbacksBit = 16; - -const int kTECDisableFallbacksMask = 65536; - -const int kTECDisableLooseMappingsBit = 17; - -const int kTECDisableLooseMappingsMask = 131072; - -const int kTECFallbackTextLengthFixBit = 1; - -const int kTECFallbackTextLengthFixMask = 2; - -const int kTECGlobalsUnavailableErr = -8770; - -const int kTECIncompleteElementErr = -8755; - -const int kTECInfoCurrentFormat = 2; - -const int kTECInternetNameDefaultUsageMask = 0; - -const int kTECInternetNameStrictUsageMask = 1; - -const int kTECInternetNameTolerantUsageMask = 2; - -const int kTECInternetNamesResType = 1668705645; - -const int kTECItemUnavailableErr = -8771; - -const int kTECJapanesePluginSignature = 1886023790; - -const int kTECKeepInfoFixBit = 0; - -const int kTECKeepInfoFixMask = 1; - -const int kTECKoreanPluginSignature = 1886089074; - -const int kTECMailEncodingsResType = 1668705644; - -const int kTECMissingTableErr = -8745; - -const int kTECNeedFlushStatus = -8784; - -const int kTECNoConversionPathErr = -8749; - -const int kTECOutputBufferFullStatus = -8785; - -const int kTECPartialCharErr = -8753; - -const int kTECPluginCreator = 1701733238; - -const int kTECPluginDispatchTableCurrentVersion = 65538; - -const int kTECPluginDispatchTableVersion1 = 65536; - -const int kTECPluginDispatchTableVersion1_1 = 65537; - -const int kTECPluginDispatchTableVersion1_2 = 65538; - -const int kTECPluginManyToOne = 1836347247; - -const int kTECPluginOneToMany = 1869901677; - -const int kTECPluginOneToOne = 1869901679; - -const int kTECPluginSniffObj = 1936615782; - -const int kTECPluginType = 1701015655; - -const int kTECPreferredEncodingFixBit = 5; - -const int kTECPreferredEncodingFixMask = 32; - -const int kTECResourceID = 128; - -const int kTECSignature = 1701733238; - -const int kTECSubTextEncodingsResType = 1668707170; - -const int kTECTableChecksumErr = -8746; - -const int kTECTableFormatErr = -8747; - -const int kTECTextRunBitClearFixBit = 2; - -const int kTECTextRunBitClearFixMask = 4; - -const int kTECTextToUnicodeScanFixBit = 3; - -const int kTECTextToUnicodeScanFixMask = 8; - -const int kTECUnicodePluginSignature = 1886744169; - -const int kTECUnmappableElementErr = -8754; - -const int kTECUsedFallbacksStatus = -8783; - -const int kTECWebEncodingsResType = 1668708194; - -const int kTEC_MIBEnumDontCare = -1; - -@Deprecated('Deprecated') -const int kTMTaskActive = 32768; - -const int kTRAKCurrentVersion = 65536; - -const int kTRAKTag = 1953653099; - -const int kTRAKUniformFormat = 0; - -const int kTSMHiliteBlockFillText = 6; - -const int kTSMHiliteCaretPosition = 1; - -const int kTSMHiliteConvertedText = 4; - -const int kTSMHiliteNoHilite = 9; - -const int kTSMHiliteOutlineText = 7; - -const int kTSMHiliteRawText = 2; - -const int kTSMHiliteSelectedConvertedText = 5; - -const int kTSMHiliteSelectedRawText = 3; - -const int kTSMHiliteSelectedText = 8; - -const int kTSMInsideOfActiveInputArea = 3; - -const int kTSMInsideOfBody = 2; - -const int kTSMOutsideOfBody = 1; - -const int kTXNATSUIIsNotInstalledErr = -22016; - -const int kTXNAlreadyInitializedErr = -22012; - -const int kTXNAttributeTagInvalidForRunErr = -22009; - -const int kTXNBadDefaultFileTypeWarning = -22005; - -const int kTXNCannotAddFrameErr = -22001; - -const int kTXNCannotSetAutoIndentErr = -22006; - -const int kTXNCannotTurnTSMOffWhenUsingUnicodeErr = -22013; - -const int kTXNCopyNotAllowedInEchoModeErr = -22014; - -const int kTXNDataTypeNotAllowedErr = -22015; - -const int kTXNEndIterationErr = -22000; - -const int kTXNIllegalToCrossDataBoundariesErr = -22003; - -const int kTXNInvalidFrameIDErr = -22002; - -const int kTXNInvalidRunIndex = -22011; - -const int kTXNNoMatchErr = -22008; - -const int kTXNOutsideOfFrameErr = -22018; - -const int kTXNOutsideOfLineErr = -22017; - -const int kTXNRunIndexOutofBoundsErr = -22007; - -const int kTXNSomeOrAllTagsInvalidForRunErr = -22010; - -const int kTXNUserCanceledOperationErr = -22004; - -const int kTallCapsSelector = 5; - -@Deprecated('Deprecated') -const int kTaskCreationException = 16; - -@Deprecated('Deprecated') -const int kTaskTerminationException = 15; - -@Deprecated('Deprecated') -const int kTemporaryFolderType = 1952804208; - -@Deprecated('Deprecated') -const int kTemporaryItemsInCacheDataFolderType = 1987341680; - -@Deprecated('Deprecated') -const int kTemporaryItemsInUserDomainFolderType = 1952804209; - -const int kTextCenter = 1; - -const int kTextEncodingANSEL = 1537; - -const int kTextEncodingBaseName = 1; - -const int kTextEncodingBig5 = 2563; - -const int kTextEncodingBig5_E = 2569; - -const int kTextEncodingBig5_HKSCS_1999 = 2566; - -const int kTextEncodingCNS_11643_92_P1 = 1617; - -const int kTextEncodingCNS_11643_92_P2 = 1618; - -const int kTextEncodingCNS_11643_92_P3 = 1619; - -const int kTextEncodingDOSArabic = 1049; - -const int kTextEncodingDOSBalticRim = 1030; - -const int kTextEncodingDOSCanadianFrench = 1048; - -const int kTextEncodingDOSChineseSimplif = 1057; - -const int kTextEncodingDOSChineseTrad = 1059; - -const int kTextEncodingDOSCyrillic = 1043; - -const int kTextEncodingDOSGreek = 1029; - -const int kTextEncodingDOSGreek1 = 1041; - -const int kTextEncodingDOSGreek2 = 1052; - -const int kTextEncodingDOSHebrew = 1047; - -const int kTextEncodingDOSIcelandic = 1046; - -const int kTextEncodingDOSJapanese = 1056; - -const int kTextEncodingDOSKorean = 1058; - -const int kTextEncodingDOSLatin1 = 1040; - -const int kTextEncodingDOSLatin2 = 1042; - -const int kTextEncodingDOSLatinUS = 1024; - -const int kTextEncodingDOSNordic = 1050; - -const int kTextEncodingDOSPortuguese = 1045; - -const int kTextEncodingDOSRussian = 1051; - -const int kTextEncodingDOSThai = 1053; - -const int kTextEncodingDOSTurkish = 1044; - -const int kTextEncodingDefaultFormat = 0; - -const int kTextEncodingDefaultVariant = 0; - -const int kTextEncodingEBCDIC_CP037 = 3074; - -const int kTextEncodingEBCDIC_LatinCore = 3073; - -const int kTextEncodingEBCDIC_US = 3073; - -const int kTextEncodingEUC_CN = 2352; - -const int kTextEncodingEUC_JP = 2336; - -const int kTextEncodingEUC_KR = 2368; - -const int kTextEncodingEUC_TW = 2353; - -const int kTextEncodingFormatName = 3; - -const int kTextEncodingFullName = 0; - -const int kTextEncodingGBK_95 = 1585; - -const int kTextEncodingGB_18030_2000 = 1586; - -const int kTextEncodingGB_18030_2005 = 1586; - -const int kTextEncodingGB_2312_80 = 1584; - -const int kTextEncodingHZ_GB_2312 = 2565; - -const int kTextEncodingISO10646_1993 = 257; - -const int kTextEncodingISOLatin1 = 513; - -const int kTextEncodingISOLatin10 = 528; - -const int kTextEncodingISOLatin2 = 514; - -const int kTextEncodingISOLatin3 = 515; - -const int kTextEncodingISOLatin4 = 516; - -const int kTextEncodingISOLatin5 = 521; - -const int kTextEncodingISOLatin6 = 522; - -const int kTextEncodingISOLatin7 = 525; - -const int kTextEncodingISOLatin8 = 526; - -const int kTextEncodingISOLatin9 = 527; - -const int kTextEncodingISOLatinArabic = 518; - -const int kTextEncodingISOLatinCyrillic = 517; - -const int kTextEncodingISOLatinGreek = 519; - -const int kTextEncodingISOLatinHebrew = 520; - -const int kTextEncodingISO_2022_CN = 2096; - -const int kTextEncodingISO_2022_CN_EXT = 2097; - -const int kTextEncodingISO_2022_JP = 2080; - -const int kTextEncodingISO_2022_JP_1 = 2082; - -const int kTextEncodingISO_2022_JP_2 = 2081; - -const int kTextEncodingISO_2022_JP_3 = 2083; - -const int kTextEncodingISO_2022_KR = 2112; - -const int kTextEncodingJIS_C6226_78 = 1572; - -const int kTextEncodingJIS_X0201_76 = 1568; - -const int kTextEncodingJIS_X0208_83 = 1569; - -const int kTextEncodingJIS_X0208_90 = 1570; - -const int kTextEncodingJIS_X0212_90 = 1571; - -const int kTextEncodingJIS_X0213_MenKuTen = 1577; - -const int kTextEncodingKOI8_R = 2562; - -const int kTextEncodingKOI8_U = 2568; - -const int kTextEncodingKSC_5601_87 = 1600; - -const int kTextEncodingKSC_5601_92_Johab = 1601; - -const int kTextEncodingMacArabic = 4; - -const int kTextEncodingMacArmenian = 24; - -const int kTextEncodingMacBengali = 13; - -const int kTextEncodingMacBurmese = 19; - -const int kTextEncodingMacCeltic = 39; - -const int kTextEncodingMacCentralEurRoman = 29; - -const int kTextEncodingMacChineseSimp = 25; - -const int kTextEncodingMacChineseTrad = 2; - -const int kTextEncodingMacCroatian = 36; - -const int kTextEncodingMacCyrillic = 7; - -const int kTextEncodingMacDevanagari = 9; - -const int kTextEncodingMacDingbats = 34; - -const int kTextEncodingMacEastEurRoman = 29; - -const int kTextEncodingMacEthiopic = 28; - -const int kTextEncodingMacExtArabic = 31; - -const int kTextEncodingMacFarsi = 140; - -const int kTextEncodingMacGaelic = 40; - -const int kTextEncodingMacGeez = 28; - -const int kTextEncodingMacGeorgian = 23; - -const int kTextEncodingMacGreek = 6; - -const int kTextEncodingMacGujarati = 11; - -const int kTextEncodingMacGurmukhi = 10; - -const int kTextEncodingMacHFS = 255; - -const int kTextEncodingMacHebrew = 5; - -const int kTextEncodingMacIcelandic = 37; - -const int kTextEncodingMacInuit = 236; - -const int kTextEncodingMacJapanese = 1; - -const int kTextEncodingMacKannada = 16; - -const int kTextEncodingMacKeyboardGlyphs = 41; - -const int kTextEncodingMacKhmer = 20; - -const int kTextEncodingMacKorean = 3; - -const int kTextEncodingMacLaotian = 22; - -const int kTextEncodingMacMalayalam = 17; - -const int kTextEncodingMacMongolian = 27; - -const int kTextEncodingMacOriya = 12; - -const int kTextEncodingMacRSymbol = 8; - -const int kTextEncodingMacRoman = 0; - -const int kTextEncodingMacRomanLatin1 = 2564; - -const int kTextEncodingMacRomanian = 38; - -const int kTextEncodingMacSimpChinese = 25; - -const int kTextEncodingMacSinhalese = 18; - -const int kTextEncodingMacSymbol = 33; - -const int kTextEncodingMacTamil = 14; - -const int kTextEncodingMacTelugu = 15; - -const int kTextEncodingMacThai = 21; - -const int kTextEncodingMacTibetan = 26; - -const int kTextEncodingMacTradChinese = 2; - -const int kTextEncodingMacTurkish = 35; - -const int kTextEncodingMacUkrainian = 152; - -const int kTextEncodingMacUnicode = 126; - -const int kTextEncodingMacUninterp = 32; - -const int kTextEncodingMacVT100 = 252; - -const int kTextEncodingMacVietnamese = 30; - -const int kTextEncodingMultiRun = 4095; - -const int kTextEncodingNextStepJapanese = 2818; - -const int kTextEncodingNextStepLatin = 2817; - -const int kTextEncodingShiftJIS = 2561; - -const int kTextEncodingShiftJIS_X0213 = 1576; - -const int kTextEncodingShiftJIS_X0213_00 = 1576; - -const int kTextEncodingUS_ASCII = 1536; - -const int kTextEncodingUnicodeDefault = 256; - -const int kTextEncodingUnicodeV10_0 = 276; - -const int kTextEncodingUnicodeV11_0 = 277; - -const int kTextEncodingUnicodeV12_1 = 278; - -const int kTextEncodingUnicodeV13_0 = 279; - -const int kTextEncodingUnicodeV14_0 = 280; - -const int kTextEncodingUnicodeV15_0 = 281; - -const int kTextEncodingUnicodeV15_1 = 282; - -const int kTextEncodingUnicodeV1_1 = 257; - -const int kTextEncodingUnicodeV2_0 = 259; - -const int kTextEncodingUnicodeV2_1 = 259; - -const int kTextEncodingUnicodeV3_0 = 260; - -const int kTextEncodingUnicodeV3_1 = 261; - -const int kTextEncodingUnicodeV3_2 = 262; - -const int kTextEncodingUnicodeV4_0 = 264; - -const int kTextEncodingUnicodeV5_0 = 266; - -const int kTextEncodingUnicodeV5_1 = 267; - -const int kTextEncodingUnicodeV6_0 = 269; - -const int kTextEncodingUnicodeV6_1 = 270; - -const int kTextEncodingUnicodeV6_3 = 272; - -const int kTextEncodingUnicodeV7_0 = 273; - -const int kTextEncodingUnicodeV8_0 = 274; - -const int kTextEncodingUnicodeV9_0 = 275; - -const int kTextEncodingUnknown = 65535; - -const int kTextEncodingVISCII = 2567; - -const int kTextEncodingVariantName = 2; - -const int kTextEncodingWindowsANSI = 1280; - -const int kTextEncodingWindowsArabic = 1286; - -const int kTextEncodingWindowsBalticRim = 1287; - -const int kTextEncodingWindowsCyrillic = 1282; - -const int kTextEncodingWindowsGreek = 1283; - -const int kTextEncodingWindowsHebrew = 1285; - -const int kTextEncodingWindowsKoreanJohab = 1296; - -const int kTextEncodingWindowsLatin1 = 1280; - -const int kTextEncodingWindowsLatin2 = 1281; - -const int kTextEncodingWindowsLatin5 = 1284; - -const int kTextEncodingWindowsVietnamese = 1288; - -const int kTextEncodingsFolderIcon = -999004808; - -@Deprecated('Deprecated') -const int kTextEncodingsFolderType = -999004808; - -const int kTextFlushDefault = 0; - -const int kTextFlushLeft = -2; - -const int kTextFlushRight = -1; - -const int kTextLanguageDontCare = -128; - -const int kTextMalformedInputErr = -8739; - -const int kTextRegionDontCare = -128; - -const int kTextScriptDontCare = -128; - -const int kTextServiceClass = 1953724003; - -const int kTextSpacingType = 22; - -const int kTextToSpeechSynthType = 1953788771; - -const int kTextToSpeechVoiceBundleType = 1953789538; - -const int kTextToSpeechVoiceFileType = 1953789542; - -const int kTextToSpeechVoiceType = 1953789540; - -const int kTextUndefinedElementErr = -8740; - -const int kTextUnsupportedEncodingErr = -8738; - -@Deprecated('Deprecated') -const int kThemesFolderType = 1953000805; - -@Deprecated('Deprecated') -const int kThinkCStackBased = 5; - -const int kThirdWidthNumbersSelector = 2; - -const int kThirdWidthTextSelector = 3; - -const int kThumbnail32BitData = 1769222962; - -const int kThumbnail8BitMask = 1949855083; - -const int kTickScale = 10000000; - -const int kTileIconVariant = 1953066085; - -const int kTitlingCapsSelector = 4; - -const int kTooManyIOWindowsErr = -9104; - -const int kToolbarAdvancedIcon = 1952604534; - -const int kToolbarApplicationsFolderIcon = 1950445683; - -const int kToolbarCustomizeIcon = 1952675187; - -const int kToolbarDeleteIcon = 1952736620; - -const int kToolbarDesktopFolderIcon = 1950643051; - -const int kToolbarDocumentsFolderIcon = 1950642019; - -const int kToolbarDownloadsFolderIcon = 1950644078; - -const int kToolbarFavoritesIcon = 1952866678; - -const int kToolbarHomeIcon = 1953001325; - -const int kToolbarInfoIcon = 1952606574; - -const int kToolbarLabelsIcon = 1952607330; - -const int kToolbarLibraryFolderIcon = 1951164770; - -const int kToolbarMovieFolderIcon = 1951231862; - -const int kToolbarMusicFolderIcon = 1951233395; - -const int kToolbarPicturesFolderIcon = 1951426915; - -const int kToolbarPublicFolderIcon = 1951429986; - -const int kToolbarSitesFolderIcon = 1951626355; - -const int kToolbarUtilitiesFolderIcon = 1951757420; - -@Deprecated('Deprecated') -const int kTraceException = 9; - -const int kTraditionalAltFiveSelector = 9; - -const int kTraditionalAltFourSelector = 8; - -const int kTraditionalAltOneSelector = 5; - -const int kTraditionalAltThreeSelector = 7; - -const int kTraditionalAltTwoSelector = 6; - -const int kTraditionalCharactersSelector = 0; - -const int kTraditionalNamesCharactersSelector = 14; - -const int kTranscodingCompositionOffSelector = 5; - -const int kTranscodingCompositionOnSelector = 4; - -const int kTransformDisabled = 1; - -const int kTransformLabel1 = 256; - -const int kTransformLabel2 = 512; - -const int kTransformLabel3 = 768; - -const int kTransformLabel4 = 1024; - -const int kTransformLabel5 = 1280; - -const int kTransformLabel6 = 1536; - -const int kTransformLabel7 = 1792; - -const int kTransformNone = 0; - -const int kTransformOffline = 2; - -const int kTransformOpen = 3; - -const int kTransformSelected = 16384; - -const int kTransformSelectedDisabled = 16385; - -const int kTransformSelectedOffline = 16386; - -const int kTransformSelectedOpen = 16387; - -const int kTranslationDataTranslation = 1; - -const int kTranslationFileTranslation = 2; - -const int kTransliterationType = 23; - -const int kTransparentEncodedPixel = 1; - -const int kTransparentEncoding = 0; - -const int kTransparentEncodingShift = 0; - -@Deprecated('Deprecated') -const int kTrapException = 2; - -@Deprecated('Deprecated') -const int kTrashFolderType = 1953657704; - -const int kTrashIcon = 1953657704; - -const int kTrashIconResource = -3993; - -const int kTrueTypeFlatFontIcon = 1936092788; - -const int kTrueTypeFontIcon = 1952868716; - -const int kTrueTypeMultiFlatFontIcon = 1953784678; - -@Deprecated('Deprecated') -const int kTwoByteCode = 2; - -const int kTwoWayEncryptPassword = 6; - -const int kTypeKCItemAttr = 1954115685; - -const int kTypographicExtrasType = 14; - -const int kUAZoomFocusTypeInsertionPoint = 1; - -const int kUAZoomFocusTypeOther = 0; - -const int kUCBidiCatArabicNumber = 6; - -const int kUCBidiCatBlockSeparator = 8; - -const int kUCBidiCatBoundaryNeutral = 19; - -const int kUCBidiCatCommonNumberSeparator = 7; - -const int kUCBidiCatEuroNumber = 3; - -const int kUCBidiCatEuroNumberSeparator = 4; - -const int kUCBidiCatEuroNumberTerminator = 5; - -const int kUCBidiCatFirstStrongIsolate = 22; - -const int kUCBidiCatLeftRight = 1; - -const int kUCBidiCatLeftRightEmbedding = 13; - -const int kUCBidiCatLeftRightIsolate = 20; - -const int kUCBidiCatLeftRightOverride = 15; - -const int kUCBidiCatNonSpacingMark = 18; - -const int kUCBidiCatNotApplicable = 0; - -const int kUCBidiCatOtherNeutral = 11; - -const int kUCBidiCatPopDirectionalFormat = 17; - -const int kUCBidiCatPopDirectionalIsolate = 23; - -const int kUCBidiCatRightLeft = 2; - -const int kUCBidiCatRightLeftArabic = 12; - -const int kUCBidiCatRightLeftEmbedding = 14; - -const int kUCBidiCatRightLeftIsolate = 21; - -const int kUCBidiCatRightLeftOverride = 16; - -const int kUCBidiCatSegmentSeparator = 9; - -const int kUCBidiCatWhitespace = 10; - -const int kUCCharPropTypeBidiCategory = 3; - -const int kUCCharPropTypeCombiningClass = 2; - -const int kUCCharPropTypeDecimalDigitValue = 4; - -const int kUCCharPropTypeGenlCategory = 1; - -const int kUCCollateCaseInsensitiveMask = 8; - -const int kUCCollateComposeInsensitiveMask = 2; - -const int kUCCollateDiacritInsensitiveMask = 16; - -const int kUCCollateDigitsAsNumberMask = 131072; - -const int kUCCollateDigitsOverrideMask = 65536; - -const int kUCCollatePunctuationSignificantMask = 32768; - -const int kUCCollateStandardOptions = 6; - -const int kUCCollateTypeHFSExtended = 1; - -const int kUCCollateTypeMask = -16777216; - -const int kUCCollateTypeShiftBits = 24; - -const int kUCCollateTypeSourceMask = 255; - -const int kUCCollateWidthInsensitiveMask = 4; - -const int kUCGenlCatLetterLowercase = 15; - -const int kUCGenlCatLetterModifier = 17; - -const int kUCGenlCatLetterOther = 18; - -const int kUCGenlCatLetterTitlecase = 16; - -const int kUCGenlCatLetterUppercase = 14; - -const int kUCGenlCatMarkEnclosing = 7; - -const int kUCGenlCatMarkNonSpacing = 5; - -const int kUCGenlCatMarkSpacingCombining = 6; - -const int kUCGenlCatNumberDecimalDigit = 8; - -const int kUCGenlCatNumberLetter = 9; - -const int kUCGenlCatNumberOther = 10; - -const int kUCGenlCatOtherControl = 1; - -const int kUCGenlCatOtherFormat = 2; - -const int kUCGenlCatOtherNotAssigned = 0; - -const int kUCGenlCatOtherPrivateUse = 4; - -const int kUCGenlCatOtherSurrogate = 3; - -const int kUCGenlCatPunctClose = 23; - -const int kUCGenlCatPunctConnector = 20; - -const int kUCGenlCatPunctDash = 21; - -const int kUCGenlCatPunctFinalQuote = 25; - -const int kUCGenlCatPunctInitialQuote = 24; - -const int kUCGenlCatPunctOpen = 22; - -const int kUCGenlCatPunctOther = 26; - -const int kUCGenlCatSeparatorLine = 12; - -const int kUCGenlCatSeparatorParagraph = 13; - -const int kUCGenlCatSeparatorSpace = 11; - -const int kUCGenlCatSymbolCurrency = 29; - -const int kUCGenlCatSymbolMath = 28; - -const int kUCGenlCatSymbolModifier = 30; - -const int kUCGenlCatSymbolOther = 31; - -const int kUCHighSurrogateRangeEnd = 56319; - -const int kUCHighSurrogateRangeStart = 55296; - -const int kUCKeyActionAutoKey = 2; - -const int kUCKeyActionDisplay = 3; - -const int kUCKeyActionDown = 0; - -const int kUCKeyActionUp = 1; - -const int kUCKeyLayoutFeatureInfoFormat = 8193; - -const int kUCKeyLayoutHeaderFormat = 4098; - -const int kUCKeyModifiersToTableNumFormat = 12289; - -const int kUCKeyOutputGetIndexMask = 16383; - -const int kUCKeyOutputSequenceIndexMask = 32768; - -const int kUCKeyOutputStateIndexMask = 16384; - -const int kUCKeyOutputTestForIndexMask = 49152; - -const int kUCKeySequenceDataIndexFormat = 28673; - -const int kUCKeyStateEntryRangeFormat = 2; - -const int kUCKeyStateEntryTerminalFormat = 1; - -const int kUCKeyStateRecordsIndexFormat = 20481; - -const int kUCKeyStateTerminatorsFormat = 24577; - -const int kUCKeyToCharTableIndexFormat = 16385; - -const int kUCKeyTranslateNoDeadKeysBit = 0; - -const int kUCKeyTranslateNoDeadKeysMask = 1; - -const int kUCLowSurrogateRangeEnd = 57343; - -const int kUCLowSurrogateRangeStart = 56320; - -const int kUCOutputBufferTooSmall = -25340; - -const int kUCTSDirectionNext = 0; - -const int kUCTSDirectionPrevious = 1; - -const int kUCTSNoKeysAddedToObjectErr = -25342; - -const int kUCTSOptionsDataIsOrderedMask = 2; - -const int kUCTSOptionsNoneMask = 0; - -const int kUCTSOptionsReleaseStringMask = 1; - -const int kUCTSSearchListErr = -25343; - -const int kUCTextBreakCharMask = 1; - -const int kUCTextBreakClusterMask = 4; - -const int kUCTextBreakGoBackwardsMask = 2; - -const int kUCTextBreakIterateMask = 4; - -const int kUCTextBreakLeadingEdgeMask = 1; - -const int kUCTextBreakLineMask = 64; - -const int kUCTextBreakLocatorMissingType = -25341; - -const int kUCTextBreakParagraphMask = 256; - -const int kUCTextBreakWordMask = 16; - -const int kUCTokenNotFound = -25346; - -const int kUCTokenizerIterationFinished = -25344; - -const int kUCTokenizerUnknownLang = -25345; - -const int kUCTypeSelectMaxListSize = -1; - -const int kURL68kNotSupportedError = -30788; - -const int kURLAccessNotAvailableError = -30787; - -const int kURLAuthenticationError = -30776; - -const int kURLDestinationExistsError = -30772; - -const int kURLExtensionFailureError = -30785; - -const int kURLFileEmptyError = -30783; - -const int kURLInvalidCallError = -30781; - -const int kURLInvalidConfigurationError = -30786; - -const int kURLInvalidURLError = -30773; - -const int kURLInvalidURLReferenceError = -30770; - -const int kURLProgressAlreadyDisplayedError = -30771; - -const int kURLPropertyBufferTooSmallError = -30779; - -const int kURLPropertyNotYetKnownError = -30777; - -const int kURLServerBusyError = -30775; - -const int kURLUnknownPropertyError = -30778; - -const int kURLUnsettablePropertyError = -30780; - -const int kURLUnsupportedSchemeError = -30774; - -const int kUSBAbortedError = -6982; - -const int kUSBAlreadyOpenErr = -6991; - -const int kUSBBadDispatchTable = -6950; - -const int kUSBBitstufErr = -6914; - -const int kUSBBufOvrRunErr = -6904; - -const int kUSBBufUnderRunErr = -6903; - -const int kUSBCRCErr = -6915; - -const int kUSBCompletionError = -6984; - -const int kUSBDataToggleErr = -6913; - -const int kUSBDeviceBusy = -6977; - -const int kUSBDeviceDisconnected = -6972; - -const int kUSBDeviceErr = -6989; - -const int kUSBDeviceNotSuspended = -6973; - -const int kUSBDevicePowerProblem = -6976; - -const int kUSBDeviceSuspended = -6974; - -const int kUSBEndpointStallErr = -6912; - -const int kUSBFlagsError = -6983; - -const int kUSBIncorrectTypeErr = -6995; - -const int kUSBInternalErr = -6999; - -const int kUSBInternalReserved1 = -6960; - -const int kUSBInternalReserved10 = -6951; - -const int kUSBInternalReserved2 = -6959; - -const int kUSBInternalReserved3 = -6958; - -const int kUSBInternalReserved4 = -6957; - -const int kUSBInternalReserved5 = -6956; - -const int kUSBInternalReserved6 = -6955; - -const int kUSBInternalReserved7 = -6954; - -const int kUSBInternalReserved8 = -6953; - -const int kUSBInternalReserved9 = -6952; - -const int kUSBInvalidBuffer = -6975; - -const int kUSBLinkErr = -6916; - -const int kUSBNoBandwidthError = -6981; - -const int kUSBNoDelay = 0; - -const int kUSBNoDeviceErr = -6990; - -const int kUSBNoErr = 0; - -const int kUSBNoTran = 0; - -const int kUSBNotFound = -6987; - -const int kUSBNotHandled = -6987; - -const int kUSBNotRespondingErr = -6911; - -const int kUSBNotSent1Err = -6902; - -const int kUSBNotSent2Err = -6901; - -const int kUSBOutOfMemoryErr = -6988; - -const int kUSBOverRunErr = -6908; - -const int kUSBPBLengthError = -6985; - -const int kUSBPBVersionError = -6986; - -const int kUSBPIDCheckErr = -6910; - -const int kUSBPending = 1; - -const int kUSBPipeIdleError = -6980; - -const int kUSBPipeStalledError = -6979; - -const int kUSBPortDisabled = -6969; - -const int kUSBQueueAborted = -6970; - -const int kUSBQueueFull = -6948; - -const int kUSBRes1Err = -6906; - -const int kUSBRes2Err = -6905; - -const int kUSBRqErr = -6994; - -const int kUSBTimedOut = -6971; - -const int kUSBTooManyPipesErr = -6996; - -const int kUSBTooManyTransactionsErr = -6992; - -const int kUSBUnderRunErr = -6907; - -const int kUSBUnknownDeviceErr = -6998; - -const int kUSBUnknownInterfaceErr = -6978; - -const int kUSBUnknownNotification = -6949; - -const int kUSBUnknownPipeErr = -6997; - -const int kUSBUnknownRequestErr = -6993; - -const int kUSBWrongPIDErr = -6909; - -@Deprecated('Deprecated') -const int kUTCDefaultOptions = 0; - -const int kUTCOverflowErr = -8851; - -const int kUTCUnderflowErr = -8850; - -const int kUYVY422PixelFormat = 1431918169; - -const int kUnconnectedSelector = 0; - -const int kUnicode16BitFormat = 0; - -const int kUnicode32BitFormat = 3; - -const int kUnicodeByteOrderMark = 65279; - -const int kUnicodeCanonicalCompVariant = 3; - -const int kUnicodeCanonicalDecompVariant = 2; - -const int kUnicodeCollationClass = 1969450860; - -const int kUnicodeDecompositionType = 27; - -const int kUnicodeDefaultDirection = 0; - -const int kUnicodeDefaultDirectionMask = 0; - -const int kUnicodeDirectionalityBits = 2; - -const int kUnicodeDirectionalityMask = 12; - -const int kUnicodeFallbackCustomFirst = 3; - -const int kUnicodeFallbackCustomOnly = 1; - -const int kUnicodeFallbackDefaultFirst = 2; - -const int kUnicodeFallbackDefaultOnly = 0; - -const int kUnicodeFallbackInterruptSafeMask = 4; - -const int kUnicodeFallbackSequencingBits = 0; - -const int kUnicodeFallbackSequencingMask = 3; - -const int kUnicodeForceASCIIRangeBit = 9; - -const int kUnicodeForceASCIIRangeMask = 512; - -const int kUnicodeHFSPlusCompVariant = 9; - -const int kUnicodeHFSPlusDecompVariant = 8; - -const int kUnicodeKeepInfoBit = 1; - -const int kUnicodeKeepInfoMask = 2; - -const int kUnicodeKeepSameEncodingBit = 8; - -const int kUnicodeKeepSameEncodingMask = 256; - -const int kUnicodeLeftToRight = 1; - -const int kUnicodeLeftToRightMask = 4; - -const int kUnicodeLooseMappingsBit = 5; - -const int kUnicodeLooseMappingsMask = 32; - -const int kUnicodeMapLineFeedToReturnBit = 12; - -const int kUnicodeMapLineFeedToReturnMask = 4096; - -const int kUnicodeMatchOtherBaseBit = 3; - -const int kUnicodeMatchOtherBaseMask = 8; - -const int kUnicodeMatchOtherFormatBit = 5; - -const int kUnicodeMatchOtherFormatMask = 32; - -const int kUnicodeMatchOtherVariantBit = 4; - -const int kUnicodeMatchOtherVariantMask = 16; - -const int kUnicodeMatchUnicodeBaseBit = 0; - -const int kUnicodeMatchUnicodeBaseMask = 1; - -const int kUnicodeMatchUnicodeFormatBit = 2; - -const int kUnicodeMatchUnicodeFormatMask = 4; - -const int kUnicodeMatchUnicodeVariantBit = 1; - -const int kUnicodeMatchUnicodeVariantMask = 2; - -const int kUnicodeMaxDecomposedVariant = 2; - -const int kUnicodeNoCompatibilityVariant = 1; - -const int kUnicodeNoComposedVariant = 3; - -const int kUnicodeNoCorporateVariant = 4; - -const int kUnicodeNoHalfwidthCharsBit = 10; - -const int kUnicodeNoHalfwidthCharsMask = 1024; - -const int kUnicodeNoSubset = 0; - -const int kUnicodeNormalizationFormC = 3; - -const int kUnicodeNormalizationFormD = 5; - -const int kUnicodeNotAChar = 65535; - -const int kUnicodeNotFromInputMethod = 1970170221; - -const int kUnicodeObjectReplacement = 65532; - -const int kUnicodeReplacementChar = 65533; - -const int kUnicodeRightToLeft = 2; - -const int kUnicodeRightToLeftMask = 8; - -const int kUnicodeSCSUFormat = 8; - -const int kUnicodeStringUnterminatedBit = 6; - -const int kUnicodeStringUnterminatedMask = 64; - -const int kUnicodeSwappedByteOrderMark = 65534; - -const int kUnicodeTextBreakClass = 1969386091; - -const int kUnicodeTextRunBit = 7; - -const int kUnicodeTextRunHeuristicsBit = 11; - -const int kUnicodeTextRunHeuristicsMask = 2048; - -const int kUnicodeTextRunMask = 128; - -const int kUnicodeUTF16BEFormat = 4; - -const int kUnicodeUTF16Format = 0; - -const int kUnicodeUTF16LEFormat = 5; - -const int kUnicodeUTF32BEFormat = 6; - -const int kUnicodeUTF32Format = 3; - -const int kUnicodeUTF32LEFormat = 7; - -const int kUnicodeUTF7Format = 1; - -const int kUnicodeUTF8Format = 2; - -const int kUnicodeUseExternalEncodingFormBit = 13; - -const int kUnicodeUseExternalEncodingFormMask = 8192; - -const int kUnicodeUseFallbacksBit = 0; - -const int kUnicodeUseFallbacksMask = 1; - -const int kUnicodeUseHFSPlusMapping = 4; - -const int kUnicodeUseLatestMapping = -1; - -const int kUnicodeVerticalFormBit = 4; - -const int kUnicodeVerticalFormMask = 16; - -@Deprecated('Deprecated') -const int kUnknownException = 0; - -const int kUnknownFSObjectIcon = 1970169459; - -const int kUnknownType = 1061109567; - -const int kUnlockKCEvent = 2; - -const int kUnlockKCEventMask = 4; - -const int kUnlockStateKCStatus = 1; - -const int kUnlockedIcon = 1970037611; - -@Deprecated('Deprecated') -const int kUnmappedMemoryException = 4; - -@Deprecated('Deprecated') -const int kUnresolvablePageFaultException = 7; - -const int kUnsupportedCardErr = -9098; - -const int kUnsupportedFunctionErr = -9072; - -const int kUnsupportedModeErr = -9073; - -const int kUnsupportedVsErr = -9090; - -const int kUnwrapKCItemAttr = 1970173810; - -const int kUpdateActiveInputArea = 1970300020; - -const int kUpdateKCEvent = 5; - -const int kUpdateKCEventMask = 32; - -const int kUpperAndLowerCaseSelector = 0; - -const int kUpperCaseNumbersSelector = 1; - -const int kUpperCasePetiteCapsSelector = 2; - -const int kUpperCaseSmallCapsSelector = 1; - -const int kUpperCaseType = 38; - -const int kUseAtoB = 1; - -const int kUseBtoA = 2; - -const int kUseBtoB = 3; - -@Deprecated('Deprecated') -const int kUseCurrentISA = 0; - -@Deprecated('Deprecated') -const int kUseNativeISA = 4; - -@Deprecated('Deprecated') -const int kUsePremadeThread = 2; - -const int kUseProfileIntent = -1; - -const int kUseWidePositioning = 256; - -@Deprecated('Deprecated') -const int kUserDomain = -32763; - -const int kUserFolderIcon = 1969646692; - -const int kUserIDiskIcon = 1969517419; - -const int kUserIcon = 1970496882; - -const int kUserPPDDomain = 5; - -@Deprecated('Deprecated') -const int kUserSpecificTmpFolderType = 1970564464; - -const int kUsersFolderIcon = 1970500292; - -@Deprecated('Deprecated') -const int kUsersFolderType = 1970500211; - -const int kUtilitiesFolderIcon = 1970563524; - -@Deprecated('Deprecated') -const int kUtilitiesFolderType = 1970563524; - -const int kVCBFlagsHFSPlusAPIsBit = 4; - -const int kVCBFlagsHFSPlusAPIsMask = 16; - -const int kVCBFlagsHardwareGoneBit = 5; - -const int kVCBFlagsHardwareGoneMask = 32; - -const int kVCBFlagsIdleFlushBit = 3; - -const int kVCBFlagsIdleFlushMask = 8; - -const int kVCBFlagsVolumeDirtyBit = 15; - -const int kVCBFlagsVolumeDirtyMask = 32768; - -@Deprecated('Deprecated') -const int kVLibTag2 = 1447848290; - -@Deprecated('Deprecated') -const int kVariableLengthArray = 1; - -const int kVerifyKCItemAttr = 1986359913; - -const int kVerticalConstraint = 1; - -const int kVerticalFractionsSelector = 1; - -const int kVerticalPositionType = 10; - -const int kVerticalSubstitutionType = 4; - -const int kVoicesFolderIcon = 1719037795; - -@Deprecated('Deprecated') -const int kVoicesFolderType = 1719037795; - -const int kVolumeKCItemAttr = 1986817381; - -@Deprecated('Deprecated') -const int kVolumeRootFolderType = 1919905652; - -@Deprecated('Deprecated') -const int kVolumeSettingsFolderType = 1987274340; - -const int kWakeToDoze = 19; - -@Deprecated('Deprecated') -const int kWhereToEmptyTrashFolderType = 1701671028; - -const int kWidePosOffsetBit = 8; - -const int kWidgetsFolderType = 2003068788; - -const int kWindowsLatin1PalmVariant = 1; - -const int kWindowsLatin1StandardVariant = 0; - -const int kWordFinalSwashesOffSelector = 3; - -const int kWordFinalSwashesOnSelector = 2; - -const int kWordInitialSwashesOffSelector = 1; - -const int kWordInitialSwashesOnSelector = 0; - -const int kWorkgroupFolderIcon = 2003201124; - -const int kWrPermKCStatus = 4; - -const int kWrapKCItemAttr = 2003984752; - -const int kWriteFailureErr = -9069; - -const int kWriteProtectedErr = -9075; - -@Deprecated('Deprecated') -const int kWriteReference = 0; - -@Deprecated('Deprecated') -const int kX86ISA = 2; - -@Deprecated('Deprecated') -const int kX86RTA = 32; - -@Deprecated('Deprecated') -const int kXLibTag1 = -263364253; - -@Deprecated('Deprecated') -const int kXLibVersion = 1; - -const int kYUV211PixelFormat = 1496461617; - -const int kYUV411PixelFormat = 1496592689; - -const int kYUVSPixelFormat = 2037741171; - -const int kYUVUPixelFormat = 2037741173; - -const int kYVU9PixelFormat = 1498830137; - -const int kYVYU422PixelFormat = 1498831189; - -const int kadministratorUser = 1; - -final class kauth_ace extends ffi.Struct { - external guid_t ace_applicable; - - @u_int32_t() - external int ace_flags; - - @kauth_ace_rights_t() - external int ace_rights; -} - -typedef kauth_ace_rights_t = u_int32_t; -typedef kauth_ace_t = ffi.Pointer; - -final class kauth_acl extends ffi.Struct { - @u_int32_t() - external int acl_entrycount; - - @u_int32_t() - external int acl_flags; - - @ffi.Array.multi([1]) - external ffi.Array acl_ace; -} - -typedef kauth_acl_t = ffi.Pointer; - -final class kauth_cache_sizes extends ffi.Struct { - @u_int32_t() - external int kcs_group_size; - - @u_int32_t() - external int kcs_id_size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int kcs_group_size, - required int kcs_id_size, - }) => $allocator() - ..ref.kcs_group_size = kcs_group_size - ..ref.kcs_id_size = kcs_id_size; -} - -final class kauth_filesec extends ffi.Struct { - @u_int32_t() - external int fsec_magic; - - external guid_t fsec_owner; - - external guid_t fsec_group; - - external kauth_acl fsec_acl; -} - -typedef kauth_filesec_t = ffi.Pointer; - -final class kauth_identity_extlookup extends ffi.Struct { - @u_int32_t() - external int el_seqno; - - @u_int32_t() - external int el_result; - - @u_int32_t() - external int el_flags; - - @__darwin_pid_t() - external int el_info_pid; - - @u_int64_t() - external int el_extend; - - @u_int32_t() - external int el_info_reserved_1; - - @uid_t() - external int el_uid; - - external guid_t el_uguid; - - @u_int32_t() - external int el_uguid_valid; - - external ntsid_t el_usid; - - @u_int32_t() - external int el_usid_valid; - - @gid_t() - external int el_gid; - - external guid_t el_gguid; - - @u_int32_t() - external int el_gguid_valid; - - external ntsid_t el_gsid; - - @u_int32_t() - external int el_gsid_valid; - - @u_int32_t() - external int el_member_valid; - - @u_int32_t() - external int el_sup_grp_cnt; - - @ffi.Array.multi([16]) - external ffi.Array el_sup_groups; -} - -typedef kcdata_object_t = mach_port_t; -typedef kern_return_t = ffi.Int; -typedef Dartkern_return_t = int; - -const int kernelAlreadyFreeErr = -2421; - -const int kernelAsyncReceiveLimitErr = -2414; - -const int kernelAsyncSendLimitErr = -2413; - -const int kernelAttributeErr = -2412; - -const int kernelCanceledErr = -2402; - -const int kernelDeletePermissionErr = -2410; - -const int kernelExceptionErr = -2418; - -const int kernelExecutePermissionErr = -2409; - -const int kernelExecutionLevelErr = -2411; - -const int kernelIDErr = -2419; - -const int kernelInUseErr = -2416; - -const int kernelIncompleteErr = -2401; - -const int kernelObjectExistsErr = -2406; - -const int kernelOptionsErr = -2403; - -const int kernelPrivilegeErr = -2404; - -const int kernelReadPermissionErr = -2408; - -const int kernelReturnValueErr = -2422; - -const int kernelTerminatedErr = -2417; - -const int kernelTimeoutErr = -2415; - -const int kernelUnrecoverableErr = -2499; - -const int kernelUnsupportedErr = -2405; - -const int kernelWritePermissionErr = -2407; - -final class kernel_resource_sizes extends ffi.Struct { - @natural_t() - external int task; - - @natural_t() - external int thread; - - @natural_t() - external int port; - - @natural_t() - external int memory_region; - - @natural_t() - external int memory_object; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int task, - required int thread, - required int port, - required int memory_region, - required int memory_object, - }) => $allocator() - ..ref.task = task - ..ref.thread = thread - ..ref.port = port - ..ref.memory_region = memory_region - ..ref.memory_object = memory_object; -} - -typedef kernel_resource_sizes_data_t = kernel_resource_sizes; -typedef kernel_resource_sizes_t = ffi.Pointer; - -const int keyAEAdjustMarksProc = 1633970797; - -const int keyAEAngle = 1801547367; - -const int keyAEArcAngle = 1885434467; - -const int keyAEAttaching = 1098146664; - -const int keyAEBaseAddr = 1650549860; - -const int keyAEBestType = 1885500276; - -const int keyAEBgndColor = 1801610092; - -const int keyAEBgndPattern = 1801613428; - -const int keyAEBounds = 1885498980; - -const int keyAEBufferSize = 1651861094; - -const int keyAECellList = 1801677940; - -const int keyAEClassID = 1668041028; - -const int keyAEClauseOffsets = 1668047221; - -const int keyAEColor = 1668246642; - -const int keyAEColorTable = 1668052066; - -const int keyAECompOperator = 1919249519; - -const int keyAECompareProc = 1668116594; - -const int keyAEContainer = 1718775661; - -const int keyAECountProc = 1668247156; - -const int keyAECurrentPoint = 1668312947; - -const int keyAECurveHeight = 1801676900; - -const int keyAECurveWidth = 1801680740; - -const int keyAEDashStyle = 1885631348; - -const int keyAEData = 1684108385; - -const int keyAEDefaultType = 1684366964; - -const int keyAEDefinitionRect = 1885631092; - -const int keyAEDescType = 1685288048; - -const int keyAEDesiredClass = 2002873972; - -const int keyAEDestination = 1684370292; - -const int keyAEDoAntiAlias = 1634628705; - -const int keyAEDoDithered = 1734633844; - -const int keyAEDoRotate = 1801745012; - -const int keyAEDoScale = 1802724193; - -const int keyAEDoTranslate = 1802793569; - -const int keyAEDragging = 1651470188; - -const int keyAEEditionFileLoc = 1701605219; - -const int keyAEElements = 1701604723; - -const int keyAEEndPoint = 1885695588; - -const int keyAEEventClass = 1702257516; - -const int keyAEEventID = 1702261865; - -const int keyAEFile = 1801873772; - -const int keyAEFileType = 1718383728; - -const int keyAEFillColor = 1718379372; - -const int keyAEFillPattern = 1718382708; - -const int keyAEFixLength = 1718188140; - -const int keyAEFlipHorizontal = 1801873519; - -const int keyAEFlipVertical = 1801877108; - -const int keyAEFont = 1718578804; - -const int keyAEFormula = 1885761394; - -const int keyAEGetErrDescProc = 1768842339; - -const int keyAEGraphicObjects = 1735352947; - -const int keyAEHiliteRange = 1752329831; - -const int keyAEID = 1229201440; - -const int keyAEImageQuality = 1735488865; - -const int keyAEIndex = 1802069112; - -const int keyAEInsertHere = 1768846184; - -const int keyAEKeyData = 1936026724; - -const int keyAEKeyForm = 1718579821; - -const int keyAEKeyForms = 1801812326; - -const int keyAEKeyword = 1803122532; - -const int keyAELaunchedAsLogInItem = 1818716532; - -const int keyAELaunchedAsServiceItem = 1937140084; - -const int keyAELeftSide = 1802265958; - -const int keyAELevel = 1818588780; - -const int keyAELineArrow = 1634890351; - -const int keyAELogicalOperator = 1819240291; - -const int keyAELogicalTerms = 1952805485; - -const int keyAEMarkProc = 1835102827; - -const int keyAEMarkTokenProc = 1835755876; - -const int keyAEMoveView = 1836480119; - -const int keyAEName = 1886282093; - -const int keyAENewElementLoc = 1886283116; - -const int keyAENextBody = 1853383268; - -const int keyAEObject = 1802461802; - -const int keyAEObject1 = 1868720689; - -const int keyAEObject2 = 1868720690; - -const int keyAEObjectClass = 1802462060; - -const int keyAEOffStyles = 1868985204; - -const int keyAEOffset = 1868985204; - -const int keyAEOnStyles = 1869509492; - -const int keyAEPMTable = 1802530164; - -const int keyAEPOSTHeaderData = 1885889892; - -const int keyAEParamFlags = 1886217831; - -const int keyAEParameters = 1886547315; - -const int keyAEPenColor = 1886413676; - -const int keyAEPenPattern = 1886416993; - -const int keyAEPenWidth = 1886418788; - -const int keyAEPinRange = 1886286439; - -const int keyAEPixMapMinus = 1802530157; - -const int keyAEPixelDepth = 1885630580; - -const int keyAEPoint = 1735421811; - -const int keyAEPointList = 1886678132; - -const int keyAEPointSize = 1886679930; - -const int keyAEPosition = 1802530675; - -const int keyAEPropData = 1886545012; - -const int keyAEPropFlags = 1886545511; - -const int keyAEPropID = 1886547824; - -const int keyAEProperties = 1903194735; - -const int keyAEProperty = 1802531440; - -const int keyAEProtection = 1886417519; - -const int keyAERangeStart = 1937006962; - -const int keyAERangeStop = 1937010544; - -const int keyAERecorderCount = 1919247218; - -const int keyAERegionClass = 1919381091; - -const int keyAERenderAs = 1802659182; - -const int keyAEReplyHeaderData = 1919444324; - -const int keyAERequestedType = 1920235888; - -const int keyAERestoreAppState = 1920169071; - -const int keyAEResult = 757935405; - -const int keyAEResultInfo = 1920166254; - -const int keyAERotPoint = 1802663024; - -const int keyAERotation = 1886547828; - -const int keyAERowList = 1802660979; - -const int keyAESaveOptions = 1935767151; - -const int keyAEScale = 1886610284; - -const int keyAEScriptTag = 1886610292; - -const int keyAESearchText = 1937012852; - -const int keyAEServerInstance = 1936881257; - -const int keyAEShowWhere = 1936224119; - -const int keyAEStartAngle = 1885433447; - -const int keyAEStartPoint = 1886614640; - -const int keyAEStyles = 1802728569; - -const int keyAESuiteID = 1937074548; - -const int keyAETSMDocumentRefcon = 1919247971; - -const int keyAETSMEventRecord = 1952806516; - -const int keyAETSMEventRef = 1952806514; - -const int keyAETSMGlyphInfoArray = 1952934241; - -const int keyAETSMScriptTag = 1935895655; - -const int keyAETSMTextFMFont = 1802795117; - -const int keyAETSMTextFont = 1802795110; - -const int keyAETSMTextPointSize = 1802793075; - -const int keyAETest = 1802793844; - -const int keyAEText = 1802795124; - -const int keyAETextColor = 1886681187; - -const int keyAETextFont = 1886681190; - -const int keyAETextLineAscent = 1802789235; - -const int keyAETextLineHeight = 1802792040; - -const int keyAETextPointSize = 1886679155; - -const int keyAETextServiceEncoding = 1953719662; - -const int keyAETextServiceMacEncoding = 1953326446; - -const int keyAETextStyles = 1954050932; - -const int keyAETheData = 1801740660; - -const int keyAETheText = 1953002616; - -const int keyAETransferMode = 1886418029; - -const int keyAETranslation = 1886679667; - -const int keyAETryAsStructGraf = 1953460071; - -const int keyAEUniformStyles = 1970500716; - -const int keyAEUpdateOn = 1886744676; - -const int keyAEUpdateRange = 1969516135; - -const int keyAEUserTerm = 1970565741; - -const int keyAEVersion = 1986359923; - -const int keyAEWhoseRangeStart = 2004055154; - -const int keyAEWhoseRangeStop = 2004055152; - -const int keyAEWindow = 2003723383; - -const int keyAEWritingCode = 2003985252; - -const int keyAEXMLReplyData = 2020762992; - -const int keyAEXMLRequestData = 2020762993; - -const int keyAcceptTimeoutAttr = 1633907821; - -const int keyActualSenderAuditToken = 1633902964; - -const int keyAdditionalHTTPHeaders = 1634231652; - -const int keyAddressAttr = 1633969266; - -const int keyAppleEventAttributesAttr = 1635021938; - -const int keyCloseAllWindows = 1667331872; - -const int keyDirectObject = 757935405; - -const int keyDisableAuthenticationAttr = 1635087464; - -const int keyDisposeTokenProc = 2020896619; - -const int keyDriveNumber = 1685222947; - -const int keyErrorCode = 1701999139; - -const int keyErrorNumber = 1701999214; - -const int keyErrorString = 1701999219; - -const int keyEventClassAttr = 1702257516; - -const int keyEventIDAttr = 1702259044; - -const int keyEventSourceAttr = 1702064739; - -const int keyEvtDev = 7; - -const int keyHighLevelClass = 1751346291; - -const int keyHighLevelID = 1751737376; - -const int keyICEditPreferenceDestination = 1684370292; - -const int keyInteractLevelAttr = 1768846437; - -const int keyKey = 1801812256; - -const int keyKeyCode = 1668244581; - -const int keyKeyboard = 1801812322; - -const int keyLocalWhere = 1819764850; - -const int keyMenuID = 1835623456; - -const int keyMenuItem = 1835627629; - -const int keyMiscellaneous = 1718448995; - -const int keyMissedKeywordAttr = 1835627379; - -const int keyModifiers = 1836016755; - -const int keyNewBounds = 1851944548; - -const int keyOptionalKeywordAttr = 1869640811; - -const int keyOriginalAddressAttr = 1718775661; - -const int keyOriginalBounds = 1868721764; - -const int keyPreDispatch = 1885888867; - -const int keyProcessSerialNumber = 1886613024; - -const int keyRPCMethodName = 1835365480; - -const int keyRPCMethodParam = 1885434477; - -const int keyRPCMethodParamOrder = 795832932; - -const int keyReplyPortAttr = 1919250544; - -const int keyReplyRequestedAttr = 1919250545; - -const int keyReturnIDAttr = 1920231780; - -const int keySOAPAction = 1935762292; - -const int keySOAPMethodNameSpace = 1836281955; - -const int keySOAPMethodNameSpaceURI = 1836281973; - -const int keySOAPSMDNamespace = 1936944755; - -const int keySOAPSMDNamespaceURI = 1936944757; - -const int keySOAPSMDType = 1936946288; - -const int keySOAPSchemaVersion = 1936941928; - -const int keySOAPStructureMetaData = 796093796; - -const int keySelectProc = 1936026728; - -const int keySelection = 1718838636; - -const int keySenderApplescriptEntitlementsAttr = 1701737580; - -const int keySenderApplicationIdentifierEntitlementAttr = 1634297185; - -const int keySenderApplicationSandboxed = 1936946018; - -const int keySenderAuditTokenAttr = 1953459054; - -const int keySenderEGIDAttr = 1936157028; - -const int keySenderEUIDAttr = 1936025956; - -const int keySenderGIDAttr = 1734960243; - -const int keySenderPIDAttr = 1936746852; - -const int keySenderUIDAttr = 1969841267; - -const int keyTimeoutAttr = 1953066351; - -const int keyTransactionIDAttr = 1953653102; - -const int keyUserNameAttr = 1970168173; - -const int keyUserPasswordAttr = 1885434739; - -const int keyWhen = 2003330414; - -const int keyWhere = 2003330418; - -const int keyWindow = 1802989156; - -const int keyXMLDebuggingAttr = 2019844711; - -typedef key_t = __int32_t; - -const int kfullPrivileges = 458759; - -@Deprecated('Deprecated') -const int kiMovieFolderType = 1768779638; - -@Deprecated('Deprecated') -const int kiMoviePlugInsFolderType = 1768779881; - -@Deprecated('Deprecated') -const int kiMovieSoundEffectsFolderType = 1768780645; - -const int kioACAccessBlankAccessBit = 28; - -const int kioACAccessBlankAccessMask = 268435456; - -const int kioACAccessEveryoneReadBit = 17; - -const int kioACAccessEveryoneReadMask = 131072; - -const int kioACAccessEveryoneSearchBit = 16; - -const int kioACAccessEveryoneSearchMask = 65536; - -const int kioACAccessEveryoneWriteBit = 18; - -const int kioACAccessEveryoneWriteMask = 262144; - -const int kioACAccessGroupReadBit = 9; - -const int kioACAccessGroupReadMask = 512; - -const int kioACAccessGroupSearchBit = 8; - -const int kioACAccessGroupSearchMask = 256; - -const int kioACAccessGroupWriteBit = 10; - -const int kioACAccessGroupWriteMask = 1024; - -const int kioACAccessOwnerBit = 31; - -const int kioACAccessOwnerMask = -2147483648; - -const int kioACAccessOwnerReadBit = 1; - -const int kioACAccessOwnerReadMask = 2; - -const int kioACAccessOwnerSearchBit = 0; - -const int kioACAccessOwnerSearchMask = 1; - -const int kioACAccessOwnerWriteBit = 2; - -const int kioACAccessOwnerWriteMask = 4; - -const int kioACAccessUserReadBit = 25; - -const int kioACAccessUserReadMask = 33554432; - -const int kioACAccessUserSearchBit = 24; - -const int kioACAccessUserSearchMask = 16777216; - -const int kioACAccessUserWriteBit = 26; - -const int kioACAccessUserWriteMask = 67108864; - -const int kioACUserNoMakeChangesBit = 2; - -const int kioACUserNoMakeChangesMask = 4; - -const int kioACUserNoSeeFilesBit = 1; - -const int kioACUserNoSeeFilesMask = 2; - -const int kioACUserNoSeeFolderBit = 0; - -const int kioACUserNoSeeFolderMask = 1; - -const int kioACUserNotOwnerBit = 7; - -const int kioACUserNotOwnerMask = 128; - -const int kioFCBFileLockedBit = 13; - -const int kioFCBFileLockedMask = 8192; - -const int kioFCBLargeFileBit = 11; - -const int kioFCBLargeFileMask = 2048; - -const int kioFCBModifiedBit = 15; - -const int kioFCBModifiedMask = 32768; - -const int kioFCBOwnClumpBit = 14; - -const int kioFCBOwnClumpMask = 16384; - -const int kioFCBResourceBit = 9; - -const int kioFCBResourceMask = 512; - -const int kioFCBSharedWriteBit = 12; - -const int kioFCBSharedWriteMask = 4096; - -const int kioFCBWriteBit = 8; - -const int kioFCBWriteLockedBit = 10; - -const int kioFCBWriteLockedMask = 1024; - -const int kioFCBWriteMask = 256; - -const int kioFlAttribCopyProtBit = 6; - -const int kioFlAttribCopyProtMask = 64; - -const int kioFlAttribDataOpenBit = 3; - -const int kioFlAttribDataOpenMask = 8; - -const int kioFlAttribDirBit = 4; - -const int kioFlAttribDirMask = 16; - -const int kioFlAttribFileOpenBit = 7; - -const int kioFlAttribFileOpenMask = 128; - -const int kioFlAttribInSharedBit = 2; - -const int kioFlAttribInSharedMask = 4; - -const int kioFlAttribLockedBit = 0; - -const int kioFlAttribLockedMask = 1; - -const int kioFlAttribMountedBit = 3; - -const int kioFlAttribMountedMask = 8; - -const int kioFlAttribResOpenBit = 2; - -const int kioFlAttribResOpenMask = 4; - -const int kioFlAttribSharePointBit = 5; - -const int kioFlAttribSharePointMask = 32; - -const int kioVAtrbDefaultVolumeBit = 5; - -const int kioVAtrbDefaultVolumeMask = 32; - -const int kioVAtrbFilesOpenBit = 6; - -const int kioVAtrbFilesOpenMask = 64; - -const int kioVAtrbHardwareLockedBit = 7; - -const int kioVAtrbHardwareLockedMask = 128; - -const int kioVAtrbSoftwareLockedBit = 15; - -const int kioVAtrbSoftwareLockedMask = 32768; - -typedef kmod_args_t = ffi.Pointer; -typedef kmod_control_flavor_t = ffi.Int; -typedef Dartkmod_control_flavor_t = int; - -@ffi.Packed(4) -final class kmod_info extends ffi.Struct { - external ffi.Pointer next; - - @ffi.Int32() - external int info_version; - - @ffi.Uint32() - external int id; - - @ffi.Array.multi([64]) - external ffi.Array name; - - @ffi.Array.multi([64]) - external ffi.Array version; - - @ffi.Int32() - external int reference_count; - - external ffi.Pointer reference_list; - - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - @vm_size_t() - external int hdr_size; - - external ffi.Pointer start; - - external ffi.Pointer stop; -} - -final class kmod_info_32_v1 extends ffi.Struct { - @ffi.Uint32() - external int next_addr; - - @ffi.Int32() - external int info_version; - - @ffi.Uint32() - external int id; - - @ffi.Array.multi([64]) - external ffi.Array name; - - @ffi.Array.multi([64]) - external ffi.Array version; - - @ffi.Int32() - external int reference_count; - - @ffi.Uint32() - external int reference_list_addr; - - @ffi.Uint32() - external int address; - - @ffi.Uint32() - external int size; - - @ffi.Uint32() - external int hdr_size; - - @ffi.Uint32() - external int start_addr; - - @ffi.Uint32() - external int stop_addr; -} - -typedef kmod_info_32_v1_t = kmod_info_32_v1; - -@ffi.Packed(4) -final class kmod_info_64_v1 extends ffi.Struct { - @ffi.Uint64() - external int next_addr; - - @ffi.Int32() - external int info_version; - - @ffi.Uint32() - external int id; - - @ffi.Array.multi([64]) - external ffi.Array name; - - @ffi.Array.multi([64]) - external ffi.Array version; - - @ffi.Int32() - external int reference_count; - - @ffi.Uint64() - external int reference_list_addr; - - @ffi.Uint64() - external int address; - - @ffi.Uint64() - external int size; - - @ffi.Uint64() - external int hdr_size; - - @ffi.Uint64() - external int start_addr; - - @ffi.Uint64() - external int stop_addr; -} - -typedef kmod_info_64_v1_t = kmod_info_64_v1; -typedef kmod_info_array_t = ffi.Pointer; -typedef kmod_info_t = kmod_info; - -@ffi.Packed(4) -final class kmod_reference extends ffi.Struct { - external ffi.Pointer next; - - external ffi.Pointer info; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer next, - required ffi.Pointer info, - }) => $allocator() - ..ref.next = next - ..ref.info = info; -} - -typedef kmod_reference_t = kmod_reference; -typedef kmod_start_func_t = - ffi.NativeFunction< - kern_return_t Function( - ffi.Pointer ki, - ffi.Pointer data, - ) - >; -typedef kmod_stop_func_t = - ffi.NativeFunction< - kern_return_t Function( - ffi.Pointer ki, - ffi.Pointer data, - ) - >; -typedef kmod_t = ffi.Int; -typedef Dartkmod_t = int; - -const int knoGroup = 0; - -const int knoUser = 0; - -const int kownerPrivileges = 7; - -final class kr_policy_list_item extends ffi.Opaque {} - -const int laDictionaryNotOpenedErr = -6992; - -const int laDictionaryTooManyErr = -6994; - -const int laDictionaryUnknownErr = -6993; - -const int laEngineNotFoundErr = -7000; - -const int laEnvironmentBusyErr = -6985; - -const int laEnvironmentExistErr = -6987; - -const int laEnvironmentNotFoundErr = -6986; - -const int laFailAnalysisErr = -6990; - -const int laInvalidPathErr = -6988; - -const int laNoMoreMorphemeErr = -6989; - -const int laPropertyErr = -6999; - -const int laPropertyIsReadOnlyErr = -6997; - -const int laPropertyNotFoundErr = -6998; - -const int laPropertyUnknownErr = -6996; - -const int laPropertyValueErr = -6995; - -const int laTextOverFlowErr = -6991; - -const int laTooSmallBufferErr = -6984; - -typedef labelstr_t = ffi.Pointer; -@Deprecated('Deprecated') -const int langAfricaans = 141; - -@Deprecated('Deprecated') -const int langAfrikaans = 141; - -@Deprecated('Deprecated') -const int langAlbanian = 36; - -@Deprecated('Deprecated') -const int langAmharic = 85; - -@Deprecated('Deprecated') -const int langArabic = 12; - -@Deprecated('Deprecated') -const int langArmenian = 51; - -@Deprecated('Deprecated') -const int langAssamese = 68; - -@Deprecated('Deprecated') -const int langAymara = 134; - -@Deprecated('Deprecated') -const int langAzerbaijanAr = 50; - -@Deprecated('Deprecated') -const int langAzerbaijanRoman = 150; - -@Deprecated('Deprecated') -const int langAzerbaijani = 49; - -@Deprecated('Deprecated') -const int langBasque = 129; - -@Deprecated('Deprecated') -const int langBelorussian = 46; - -@Deprecated('Deprecated') -const int langBengali = 67; - -@Deprecated('Deprecated') -const int langBreton = 142; - -@Deprecated('Deprecated') -const int langBulgarian = 44; - -@Deprecated('Deprecated') -const int langBurmese = 77; - -@Deprecated('Deprecated') -const int langByelorussian = 46; - -@Deprecated('Deprecated') -const int langCatalan = 130; - -@Deprecated('Deprecated') -const int langChewa = 92; - -@Deprecated('Deprecated') -const int langChinese = 19; - -@Deprecated('Deprecated') -const int langCroatian = 18; - -@Deprecated('Deprecated') -const int langCzech = 38; - -@Deprecated('Deprecated') -const int langDanish = 7; - -@Deprecated('Deprecated') -const int langDutch = 4; - -@Deprecated('Deprecated') -const int langDzongkha = 137; - -@Deprecated('Deprecated') -const int langEnglish = 0; - -@Deprecated('Deprecated') -const int langEsperanto = 94; - -@Deprecated('Deprecated') -const int langEstonian = 27; - -@Deprecated('Deprecated') -const int langFaeroese = 30; - -@Deprecated('Deprecated') -const int langFaroese = 30; - -@Deprecated('Deprecated') -const int langFarsi = 31; - -@Deprecated('Deprecated') -const int langFinnish = 13; - -@Deprecated('Deprecated') -const int langFlemish = 34; - -@Deprecated('Deprecated') -const int langFrench = 1; - -@Deprecated('Deprecated') -const int langGalician = 140; - -@Deprecated('Deprecated') -const int langGalla = 87; - -@Deprecated('Deprecated') -const int langGeorgian = 52; - -@Deprecated('Deprecated') -const int langGerman = 2; - -@Deprecated('Deprecated') -const int langGreek = 14; - -@Deprecated('Deprecated') -const int langGreekAncient = 148; - -@Deprecated('Deprecated') -const int langGreekPoly = 148; - -@Deprecated('Deprecated') -const int langGreenlandic = 149; - -@Deprecated('Deprecated') -const int langGuarani = 133; - -@Deprecated('Deprecated') -const int langGujarati = 69; - -@Deprecated('Deprecated') -const int langHebrew = 10; - -@Deprecated('Deprecated') -const int langHindi = 21; - -@Deprecated('Deprecated') -const int langHungarian = 26; - -@Deprecated('Deprecated') -const int langIcelandic = 15; - -@Deprecated('Deprecated') -const int langIndonesian = 81; - -@Deprecated('Deprecated') -const int langInuktitut = 143; - -@Deprecated('Deprecated') -const int langIrish = 35; - -@Deprecated('Deprecated') -const int langIrishGaelic = 35; - -@Deprecated('Deprecated') -const int langIrishGaelicScript = 146; - -@Deprecated('Deprecated') -const int langItalian = 3; - -@Deprecated('Deprecated') -const int langJapanese = 11; - -@Deprecated('Deprecated') -const int langJavaneseRom = 138; - -@Deprecated('Deprecated') -const int langKannada = 73; - -@Deprecated('Deprecated') -const int langKashmiri = 61; - -@Deprecated('Deprecated') -const int langKazakh = 48; - -@Deprecated('Deprecated') -const int langKhmer = 78; - -@Deprecated('Deprecated') -const int langKinyarwanda = 90; - -@Deprecated('Deprecated') -const int langKirghiz = 54; - -@Deprecated('Deprecated') -const int langKorean = 23; - -@Deprecated('Deprecated') -const int langKurdish = 60; - -@Deprecated('Deprecated') -const int langLao = 79; - -@Deprecated('Deprecated') -const int langLappish = 29; - -@Deprecated('Deprecated') -const int langLapponian = 29; - -@Deprecated('Deprecated') -const int langLatin = 131; - -@Deprecated('Deprecated') -const int langLatvian = 28; - -@Deprecated('Deprecated') -const int langLettish = 28; - -@Deprecated('Deprecated') -const int langLithuanian = 24; - -@Deprecated('Deprecated') -const int langMacedonian = 43; - -@Deprecated('Deprecated') -const int langMalagasy = 93; - -@Deprecated('Deprecated') -const int langMalayArabic = 84; - -@Deprecated('Deprecated') -const int langMalayRoman = 83; - -@Deprecated('Deprecated') -const int langMalayalam = 72; - -@Deprecated('Deprecated') -const int langMalta = 16; - -@Deprecated('Deprecated') -const int langMaltese = 16; - -@Deprecated('Deprecated') -const int langManxGaelic = 145; - -@Deprecated('Deprecated') -const int langMarathi = 66; - -@Deprecated('Deprecated') -const int langMoldavian = 53; - -@Deprecated('Deprecated') -const int langMongolian = 57; - -@Deprecated('Deprecated') -const int langMongolianCyr = 58; - -@Deprecated('Deprecated') -const int langNepali = 64; - -@Deprecated('Deprecated') -const int langNorwegian = 9; - -@Deprecated('Deprecated') -const int langNyanja = 92; - -@Deprecated('Deprecated') -const int langNynorsk = 151; - -@Deprecated('Deprecated') -const int langOriya = 71; - -@Deprecated('Deprecated') -const int langOromo = 87; - -@Deprecated('Deprecated') -const int langPashto = 59; - -@Deprecated('Deprecated') -const int langPersian = 31; - -@Deprecated('Deprecated') -const int langPolish = 25; - -@Deprecated('Deprecated') -const int langPortugese = 8; - -@Deprecated('Deprecated') -const int langPortuguese = 8; - -@Deprecated('Deprecated') -const int langPunjabi = 70; - -@Deprecated('Deprecated') -const int langQuechua = 132; - -@Deprecated('Deprecated') -const int langRomanian = 37; - -@Deprecated('Deprecated') -const int langRuanda = 90; - -@Deprecated('Deprecated') -const int langRundi = 91; - -@Deprecated('Deprecated') -const int langRussian = 32; - -@Deprecated('Deprecated') -const int langSaamisk = 29; - -@Deprecated('Deprecated') -const int langSami = 29; - -@Deprecated('Deprecated') -const int langSanskrit = 65; - -@Deprecated('Deprecated') -const int langScottishGaelic = 144; - -@Deprecated('Deprecated') -const int langSerbian = 42; - -@Deprecated('Deprecated') -const int langSimpChinese = 33; - -@Deprecated('Deprecated') -const int langSindhi = 62; - -@Deprecated('Deprecated') -const int langSinhalese = 76; - -@Deprecated('Deprecated') -const int langSlovak = 39; - -@Deprecated('Deprecated') -const int langSlovenian = 40; - -@Deprecated('Deprecated') -const int langSomali = 88; - -@Deprecated('Deprecated') -const int langSpanish = 6; - -@Deprecated('Deprecated') -const int langSundaneseRom = 139; - -@Deprecated('Deprecated') -const int langSwahili = 89; - -@Deprecated('Deprecated') -const int langSwedish = 5; - -@Deprecated('Deprecated') -const int langTagalog = 82; - -@Deprecated('Deprecated') -const int langTajiki = 55; - -@Deprecated('Deprecated') -const int langTamil = 74; - -@Deprecated('Deprecated') -const int langTatar = 135; - -@Deprecated('Deprecated') -const int langTelugu = 75; - -@Deprecated('Deprecated') -const int langThai = 22; - -@Deprecated('Deprecated') -const int langTibetan = 63; - -@Deprecated('Deprecated') -const int langTigrinya = 86; - -@Deprecated('Deprecated') -const int langTongan = 147; - -@Deprecated('Deprecated') -const int langTradChinese = 19; - -@Deprecated('Deprecated') -const int langTurkish = 17; - -@Deprecated('Deprecated') -const int langTurkmen = 56; - -@Deprecated('Deprecated') -const int langUighur = 136; - -@Deprecated('Deprecated') -const int langUkrainian = 45; - -@Deprecated('Deprecated') -const int langUnspecified = 32767; - -@Deprecated('Deprecated') -const int langUrdu = 20; - -@Deprecated('Deprecated') -const int langUzbek = 47; - -@Deprecated('Deprecated') -const int langVietnamese = 80; - -@Deprecated('Deprecated') -const int langWelsh = 128; - -@Deprecated('Deprecated') -const int langYiddish = 41; - -@Deprecated('Deprecated') -const int langYugoslavian = 18; - -const int lapProtErr = -94; - -const int large1BitMask = 1229147683; - -const int large4BitData = 1768123444; - -const int large8BitData = 1768123448; - -const int lastDskErr = -64; - -const int launchAllow24Bit = 256; - -const int launchContinue = 16384; - -const int launchDontSwitch = 512; - -const int launchInhibitDaemon = 128; - -const int launchNoFileFlags = 2048; - -const int launchUseMinimum = 1024; - -typedef launch_data_dict_iterator_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - launch_data_t lval, - ffi.Pointer key, - ffi.Pointer ctx, - ) - > - >; -typedef launch_data_t = ffi.Pointer<_launch_data>; - -enum launch_data_type_t { - LAUNCH_DATA_DICTIONARY(1), - LAUNCH_DATA_ARRAY(2), - LAUNCH_DATA_FD(3), - LAUNCH_DATA_INTEGER(4), - LAUNCH_DATA_REAL(5), - LAUNCH_DATA_BOOL(6), - LAUNCH_DATA_STRING(7), - LAUNCH_DATA_OPAQUE(8), - LAUNCH_DATA_ERRNO(9), - LAUNCH_DATA_MACHPORT(10); - - final int value; - const launch_data_type_t(this.value); - - static launch_data_type_t fromValue(int value) => switch (value) { - 1 => LAUNCH_DATA_DICTIONARY, - 2 => LAUNCH_DATA_ARRAY, - 3 => LAUNCH_DATA_FD, - 4 => LAUNCH_DATA_INTEGER, - 5 => LAUNCH_DATA_REAL, - 6 => LAUNCH_DATA_BOOL, - 7 => LAUNCH_DATA_STRING, - 8 => LAUNCH_DATA_OPAQUE, - 9 => LAUNCH_DATA_ERRNO, - 10 => LAUNCH_DATA_MACHPORT, - _ => throw ArgumentError('Unknown value for launch_data_type_t: $value'), - }; -} - -final class lconv extends ffi.Struct { - external ffi.Pointer decimal_point; - - external ffi.Pointer thousands_sep; - - external ffi.Pointer grouping; - - external ffi.Pointer int_curr_symbol; - - external ffi.Pointer currency_symbol; - - external ffi.Pointer mon_decimal_point; - - external ffi.Pointer mon_thousands_sep; - - external ffi.Pointer mon_grouping; - - external ffi.Pointer positive_sign; - - external ffi.Pointer negative_sign; - - @ffi.Char() - external int int_frac_digits; - - @ffi.Char() - external int frac_digits; - - @ffi.Char() - external int p_cs_precedes; - - @ffi.Char() - external int p_sep_by_space; - - @ffi.Char() - external int n_cs_precedes; - - @ffi.Char() - external int n_sep_by_space; - - @ffi.Char() - external int p_sign_posn; - - @ffi.Char() - external int n_sign_posn; - - @ffi.Char() - external int int_p_cs_precedes; - - @ffi.Char() - external int int_n_cs_precedes; - - @ffi.Char() - external int int_p_sep_by_space; - - @ffi.Char() - external int int_n_sep_by_space; - - @ffi.Char() - external int int_p_sign_posn; - - @ffi.Char() - external int int_n_sign_posn; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer decimal_point, - required ffi.Pointer thousands_sep, - required ffi.Pointer grouping, - required ffi.Pointer int_curr_symbol, - required ffi.Pointer currency_symbol, - required ffi.Pointer mon_decimal_point, - required ffi.Pointer mon_thousands_sep, - required ffi.Pointer mon_grouping, - required ffi.Pointer positive_sign, - required ffi.Pointer negative_sign, - required int int_frac_digits, - required int frac_digits, - required int p_cs_precedes, - required int p_sep_by_space, - required int n_cs_precedes, - required int n_sep_by_space, - required int p_sign_posn, - required int n_sign_posn, - required int int_p_cs_precedes, - required int int_n_cs_precedes, - required int int_p_sep_by_space, - required int int_n_sep_by_space, - required int int_p_sign_posn, - required int int_n_sign_posn, - }) => $allocator() - ..ref.decimal_point = decimal_point - ..ref.thousands_sep = thousands_sep - ..ref.grouping = grouping - ..ref.int_curr_symbol = int_curr_symbol - ..ref.currency_symbol = currency_symbol - ..ref.mon_decimal_point = mon_decimal_point - ..ref.mon_thousands_sep = mon_thousands_sep - ..ref.mon_grouping = mon_grouping - ..ref.positive_sign = positive_sign - ..ref.negative_sign = negative_sign - ..ref.int_frac_digits = int_frac_digits - ..ref.frac_digits = frac_digits - ..ref.p_cs_precedes = p_cs_precedes - ..ref.p_sep_by_space = p_sep_by_space - ..ref.n_cs_precedes = n_cs_precedes - ..ref.n_sep_by_space = n_sep_by_space - ..ref.p_sign_posn = p_sign_posn - ..ref.n_sign_posn = n_sign_posn - ..ref.int_p_cs_precedes = int_p_cs_precedes - ..ref.int_n_cs_precedes = int_n_cs_precedes - ..ref.int_p_sep_by_space = int_p_sep_by_space - ..ref.int_n_sep_by_space = int_n_sep_by_space - ..ref.int_p_sign_posn = int_p_sign_posn - ..ref.int_n_sign_posn = int_n_sign_posn; -} - -final class ldiv_t extends ffi.Struct { - @ffi.Long() - external int quot; - - @ffi.Long() - external int rem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int quot, - required int rem, - }) => $allocator() - ..ref.quot = quot - ..ref.rem = rem; -} - -typedef ledger_amount_t = ffi.Int64; -typedef Dartledger_amount_t = int; -typedef ledger_array_t = ffi.Pointer; -typedef ledger_item_t = natural_t; -typedef ledger_port_array_t = ledger_array_t; -typedef ledger_port_t = ledger_t; -typedef ledger_t = mach_port_t; - -const int leftOverChars = 2; - -@Deprecated('Deprecated') -const int leftSingGuillemet = 220; - -const int limitReachedErr = -30549; - -final class linger extends ffi.Struct { - @ffi.Int() - external int l_onoff; - - @ffi.Int() - external int l_linger; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int l_onoff, - required int l_linger, - }) => $allocator() - ..ref.l_onoff = l_onoff - ..ref.l_linger = l_linger; -} - -final class lldiv_t extends ffi.Struct { - @ffi.LongLong() - external int quot; - - @ffi.LongLong() - external int rem; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int quot, - required int rem, - }) => $allocator() - ..ref.quot = quot - ..ref.rem = rem; -} - -const int localOnlyErr = -905; - -typedef locale_t = ffi.Pointer<_xlocale>; - -const int lockPortBitsBadPortErr = -8984; - -const int lockPortBitsBadSurfaceErr = -8980; - -const int lockPortBitsSurfaceLostErr = -8985; - -const int lockPortBitsWindowClippedErr = -8983; - -const int lockPortBitsWindowMovedErr = -8981; - -const int lockPortBitsWindowResizedErr = -8982; - -const int lockPortBitsWrongGDeviceErr = -8991; - -typedef lock_set_port_t = lock_set_t; -typedef lock_set_t = mach_port_t; - -final class lockgroup_info extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array lockgroup_name; - - @ffi.Uint64() - external int lockgroup_attr; - - @ffi.Uint64() - external int lock_spin_cnt; - - @ffi.Uint64() - external int lock_spin_util_cnt; - - @ffi.Uint64() - external int lock_spin_held_cnt; - - @ffi.Uint64() - external int lock_spin_miss_cnt; - - @ffi.Uint64() - external int lock_spin_held_max; - - @ffi.Uint64() - external int lock_spin_held_cum; - - @ffi.Uint64() - external int lock_mtx_cnt; - - @ffi.Uint64() - external int lock_mtx_util_cnt; - - @ffi.Uint64() - external int lock_mtx_held_cnt; - - @ffi.Uint64() - external int lock_mtx_miss_cnt; - - @ffi.Uint64() - external int lock_mtx_wait_cnt; - - @ffi.Uint64() - external int lock_mtx_held_max; - - @ffi.Uint64() - external int lock_mtx_held_cum; - - @ffi.Uint64() - external int lock_mtx_wait_max; - - @ffi.Uint64() - external int lock_mtx_wait_cum; - - @ffi.Uint64() - external int lock_rw_cnt; - - @ffi.Uint64() - external int lock_rw_util_cnt; - - @ffi.Uint64() - external int lock_rw_held_cnt; - - @ffi.Uint64() - external int lock_rw_miss_cnt; - - @ffi.Uint64() - external int lock_rw_wait_cnt; - - @ffi.Uint64() - external int lock_rw_held_max; - - @ffi.Uint64() - external int lock_rw_held_cum; - - @ffi.Uint64() - external int lock_rw_wait_max; - - @ffi.Uint64() - external int lock_rw_wait_cum; -} - -typedef lockgroup_info_array_t = ffi.Pointer; -typedef lockgroup_info_t = lockgroup_info; - -@ffi.Packed(4) -final class log2phys extends ffi.Struct { - @ffi.UnsignedInt() - external int l2p_flags; - - @off_t() - external int l2p_contigbytes; - - @off_t() - external int l2p_devoffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int l2p_flags, - required int l2p_contigbytes, - required int l2p_devoffset, - }) => $allocator() - ..ref.l2p_flags = l2p_flags - ..ref.l2p_contigbytes = l2p_contigbytes - ..ref.l2p_devoffset = l2p_devoffset; -} - -const int longDate = 1; - -const int longDateFound = 1; - -const int longDay = 0; - -const int longMonth = 2; - -const int longWeek = 1; - -const int longYear = 3; - -const int mBarNFnd = -126; - -const int mFulErr = -41; - -const int macDev = 8; - -final class mach_core_details extends ffi.Struct { - @ffi.Uint64() - external int gzip_offset; - - @ffi.Uint64() - external int gzip_length; - - @ffi.Array.multi([16]) - external ffi.Array core_name; -} - -final class mach_core_details_v2 extends ffi.Struct { - @ffi.Uint64() - external int flags; - - @ffi.Uint64() - external int offset; - - @ffi.Uint64() - external int length; - - @ffi.Array.multi([16]) - external ffi.Array core_name; -} - -final class mach_core_fileheader extends ffi.Struct { - @ffi.Uint64() - external int signature; - - @ffi.Uint64() - external int log_offset; - - @ffi.Uint64() - external int log_length; - - @ffi.Uint64() - external int num_files; - - @ffi.Array.multi([16]) - external ffi.Array files; -} - -final class mach_core_fileheader_base extends ffi.Struct { - @ffi.Uint64() - external int signature; - - @ffi.Uint32() - external int version; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int signature, - required int version, - }) => $allocator() - ..ref.signature = signature - ..ref.version = version; -} - -final class mach_core_fileheader_v2 extends ffi.Opaque {} - -final class mach_dead_name_notification_t extends ffi.Struct { - external mach_msg_header_t not_header; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int not_port; - - external mach_msg_format_0_trailer_t trailer; -} - -typedef mach_error_fn_t = - ffi.Pointer>; -typedef mach_error_t = kern_return_t; -typedef mach_eventlink_t = mach_port_t; -typedef mach_exception_code_t = mach_exception_data_type_t; -typedef mach_exception_data_t = ffi.Pointer; -typedef mach_exception_data_type_t = ffi.Int64; -typedef Dartmach_exception_data_type_t = int; -typedef mach_exception_subcode_t = mach_exception_data_type_t; - -final class mach_memory_info$1 extends ffi.Struct { - @ffi.Uint64() - external int flags; - - @ffi.Uint64() - external int site; - - @ffi.Uint64() - external int size; - - @ffi.Uint64() - external int free$1; - - @ffi.Uint64() - external int largest; - - @ffi.Uint64() - external int collectable_bytes; - - @ffi.Uint64() - external int mapped; - - @ffi.Uint64() - external int peak; - - @ffi.Uint16() - external int tag; - - @ffi.Uint16() - external int zone; - - @ffi.Array.multi([2]) - external ffi.Array _resvA; - - @ffi.Array.multi([3]) - external ffi.Array _resv; - - @ffi.Array.multi([80]) - external ffi.Array name; -} - -typedef mach_memory_info_array_t = ffi.Pointer; -typedef mach_memory_info_t = mach_memory_info$1; - -final class mach_msg_audit_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - @mach_port_seqno_t() - external int msgh_seqno; - - external security_token_t msgh_sender; - - external audit_token_t msgh_audit; -} - -final class mach_msg_base_t extends ffi.Struct { - external mach_msg_header_t header; - - external mach_msg_body_t body; -} - -typedef mach_msg_bits_t = ffi.UnsignedInt; -typedef Dartmach_msg_bits_t = int; - -final class mach_msg_body_t extends ffi.Struct { - @mach_msg_size_t() - external int msgh_descriptor_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_descriptor_count, - }) => - $allocator() - ..ref.msgh_descriptor_count = msgh_descriptor_count; -} - -@ffi.Packed(4) -final class mach_msg_context_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - @mach_port_seqno_t() - external int msgh_seqno; - - external security_token_t msgh_sender; - - external audit_token_t msgh_audit; - - @mach_port_context_t() - external int msgh_context; -} - -typedef mach_msg_copy_options_t = ffi.UnsignedInt; -typedef Dartmach_msg_copy_options_t = int; - -final class mach_msg_descriptor_t extends ffi.Opaque {} - -typedef mach_msg_descriptor_type_t = ffi.UnsignedInt; -typedef Dartmach_msg_descriptor_type_t = int; - -final class mach_msg_empty_rcv_t extends ffi.Struct { - external mach_msg_header_t header; - - external mach_msg_trailer_t trailer; -} - -final class mach_msg_empty_send_t extends ffi.Struct { - external mach_msg_header_t header; -} - -final class mach_msg_empty_t extends ffi.Union { - external mach_msg_empty_send_t send$1; - - external mach_msg_empty_rcv_t rcv; -} - -typedef mach_msg_filter_id = ffi.Int; -typedef Dartmach_msg_filter_id = int; -typedef mach_msg_format_0_trailer_t = mach_msg_security_trailer_t; -typedef mach_msg_guard_flags_t = ffi.UnsignedInt; -typedef Dartmach_msg_guard_flags_t = int; - -final class mach_msg_guarded_port_descriptor32_t extends ffi.Opaque {} - -final class mach_msg_guarded_port_descriptor64_t extends ffi.Opaque {} - -final class mach_msg_guarded_port_descriptor_t extends ffi.Opaque {} - -final class mach_msg_header_t extends ffi.Struct { - @mach_msg_bits_t() - external int msgh_bits; - - @mach_msg_size_t() - external int msgh_size; - - @mach_port_t() - external int msgh_remote_port; - - @mach_port_t() - external int msgh_local_port; - - @mach_port_name_t() - external int msgh_voucher_port; - - @mach_msg_id_t() - external int msgh_id; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_bits, - required int msgh_size, - required int msgh_remote_port, - required int msgh_local_port, - required int msgh_voucher_port, - required int msgh_id, - }) => $allocator() - ..ref.msgh_bits = msgh_bits - ..ref.msgh_size = msgh_size - ..ref.msgh_remote_port = msgh_remote_port - ..ref.msgh_local_port = msgh_local_port - ..ref.msgh_voucher_port = msgh_voucher_port - ..ref.msgh_id = msgh_id; -} - -typedef mach_msg_id_t = integer_t; - -@ffi.Packed(4) -final class mach_msg_mac_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - @mach_port_seqno_t() - external int msgh_seqno; - - external security_token_t msgh_sender; - - external audit_token_t msgh_audit; - - @mach_port_context_t() - external int msgh_context; - - @mach_msg_filter_id() - external int msgh_ad; - - external msg_labels_t msgh_labels; -} - -typedef mach_msg_max_trailer_t = mach_msg_mac_trailer_t; - -final class mach_msg_ool_descriptor32_t extends ffi.Opaque {} - -final class mach_msg_ool_descriptor64_t extends ffi.Opaque {} - -final class mach_msg_ool_descriptor_t extends ffi.Opaque {} - -final class mach_msg_ool_ports_descriptor32_t extends ffi.Opaque {} - -final class mach_msg_ool_ports_descriptor64_t extends ffi.Opaque {} - -final class mach_msg_ool_ports_descriptor_t extends ffi.Opaque {} - -typedef mach_msg_option_t = integer_t; -typedef mach_msg_options_t = integer_t; - -final class mach_msg_port_descriptor_t extends ffi.Opaque {} - -typedef mach_msg_priority_t = ffi.UnsignedInt; -typedef Dartmach_msg_priority_t = int; -typedef mach_msg_return_t = kern_return_t; - -final class mach_msg_security_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - @mach_port_seqno_t() - external int msgh_seqno; - - external security_token_t msgh_sender; -} - -final class mach_msg_seqno_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - @mach_port_seqno_t() - external int msgh_seqno; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_trailer_type, - required int msgh_trailer_size, - required int msgh_seqno, - }) => $allocator() - ..ref.msgh_trailer_type = msgh_trailer_type - ..ref.msgh_trailer_size = msgh_trailer_size - ..ref.msgh_seqno = msgh_seqno; -} - -typedef mach_msg_size_t = natural_t; -typedef mach_msg_timeout_t = natural_t; -typedef mach_msg_trailer_info_t = ffi.Pointer; -typedef mach_msg_trailer_size_t = ffi.UnsignedInt; -typedef Dartmach_msg_trailer_size_t = int; - -final class mach_msg_trailer_t extends ffi.Struct { - @mach_msg_trailer_type_t() - external int msgh_trailer_type; - - @mach_msg_trailer_size_t() - external int msgh_trailer_size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_trailer_type, - required int msgh_trailer_size, - }) => $allocator() - ..ref.msgh_trailer_type = msgh_trailer_type - ..ref.msgh_trailer_size = msgh_trailer_size; -} - -typedef mach_msg_trailer_type_t = ffi.UnsignedInt; -typedef Dartmach_msg_trailer_type_t = int; - -final class mach_msg_type_descriptor_t extends ffi.Opaque {} - -typedef mach_msg_type_name_t = ffi.UnsignedInt; -typedef Dartmach_msg_type_name_t = int; -typedef mach_msg_type_number_t = natural_t; -typedef mach_msg_type_size_t = natural_t; - -final class mach_no_senders_notification_t extends ffi.Struct { - external mach_msg_header_t not_header; - - external NDR_record_t NDR; - - @mach_msg_type_number_t() - external int not_count; - - external mach_msg_format_0_trailer_t trailer; -} - -typedef mach_port_array_t = ffi.Pointer; -typedef mach_port_context_t = vm_offset_t; - -final class mach_port_deleted_notification_t extends ffi.Struct { - external mach_msg_header_t not_header; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int not_port; - - external mach_msg_format_0_trailer_t trailer; -} - -typedef mach_port_delta_t = integer_t; - -final class mach_port_destroyed_notification_t extends ffi.Opaque {} - -typedef mach_port_flavor_t = ffi.Int; -typedef Dartmach_port_flavor_t = int; - -enum mach_port_guard_exception_codes { - kGUARD_EXC_NONE(0), - kGUARD_EXC_DESTROY(1), - kGUARD_EXC_MOD_REFS(2), - kGUARD_EXC_INVALID_OPTIONS(3), - kGUARD_EXC_SET_CONTEXT(4), - kGUARD_EXC_THREAD_SET_STATE(5), - kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE(6), - kGUARD_EXC_SERVICE_PORT_VIOLATION_FATAL(7), - kGUARD_EXC_UNGUARDED(8), - kGUARD_EXC_KOBJECT_REPLY_PORT_SEMANTICS(9), - kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS(10), - kGUARD_EXC_INCORRECT_GUARD(16), - kGUARD_EXC_IMMOVABLE(32), - kGUARD_EXC_STRICT_REPLY(64), - kGUARD_EXC_INVALID_NOTIFICATION_REQ(65), - kGUARD_EXC_INVALID_MPO_ENTITLEMENT(66), - kGUARD_EXC_DESCRIPTOR_VIOLATION(67), - kGUARD_EXC_MSG_FILTERED(128), - kGUARD_EXC_INVALID_RIGHT(256), - kGUARD_EXC_INVALID_NAME(512), - kGUARD_EXC_INVALID_VALUE(1024), - kGUARD_EXC_INVALID_ARGUMENT(2048), - kGUARD_EXC_RIGHT_EXISTS(4096), - kGUARD_EXC_KERN_NO_SPACE(8192), - kGUARD_EXC_KERN_FAILURE(16384), - kGUARD_EXC_KERN_RESOURCE(32768), - kGUARD_EXC_SEND_INVALID_REPLY(65536), - kGUARD_EXC_SEND_INVALID_VOUCHER(131072), - kGUARD_EXC_SEND_INVALID_RIGHT(262144), - kGUARD_EXC_RCV_INVALID_NAME(524288), - kGUARD_EXC_RCV_GUARDED_DESC(1048576), - kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL(1048577), - kGUARD_EXC_PROVISIONAL_REPLY_PORT(1048578), - kGUARD_EXC_OOL_PORT_ARRAY_CREATION(1048579), - kGUARD_EXC_MOVE_PROVISIONAL_REPLY_PORT(1048580), - kGUARD_EXC_REPLY_PORT_SINGLE_SO_RIGHT(1048581), - kGUARD_EXC_MOD_REFS_NON_FATAL(2097152), - kGUARD_EXC_IMMOVABLE_NON_FATAL(4194304); - - final int value; - const mach_port_guard_exception_codes(this.value); - - static mach_port_guard_exception_codes fromValue(int value) => - switch (value) { - 0 => kGUARD_EXC_NONE, - 1 => kGUARD_EXC_DESTROY, - 2 => kGUARD_EXC_MOD_REFS, - 3 => kGUARD_EXC_INVALID_OPTIONS, - 4 => kGUARD_EXC_SET_CONTEXT, - 5 => kGUARD_EXC_THREAD_SET_STATE, - 6 => kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE, - 7 => kGUARD_EXC_SERVICE_PORT_VIOLATION_FATAL, - 8 => kGUARD_EXC_UNGUARDED, - 9 => kGUARD_EXC_KOBJECT_REPLY_PORT_SEMANTICS, - 10 => kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS, - 16 => kGUARD_EXC_INCORRECT_GUARD, - 32 => kGUARD_EXC_IMMOVABLE, - 64 => kGUARD_EXC_STRICT_REPLY, - 65 => kGUARD_EXC_INVALID_NOTIFICATION_REQ, - 66 => kGUARD_EXC_INVALID_MPO_ENTITLEMENT, - 67 => kGUARD_EXC_DESCRIPTOR_VIOLATION, - 128 => kGUARD_EXC_MSG_FILTERED, - 256 => kGUARD_EXC_INVALID_RIGHT, - 512 => kGUARD_EXC_INVALID_NAME, - 1024 => kGUARD_EXC_INVALID_VALUE, - 2048 => kGUARD_EXC_INVALID_ARGUMENT, - 4096 => kGUARD_EXC_RIGHT_EXISTS, - 8192 => kGUARD_EXC_KERN_NO_SPACE, - 16384 => kGUARD_EXC_KERN_FAILURE, - 32768 => kGUARD_EXC_KERN_RESOURCE, - 65536 => kGUARD_EXC_SEND_INVALID_REPLY, - 131072 => kGUARD_EXC_SEND_INVALID_VOUCHER, - 262144 => kGUARD_EXC_SEND_INVALID_RIGHT, - 524288 => kGUARD_EXC_RCV_INVALID_NAME, - 1048576 => kGUARD_EXC_RCV_GUARDED_DESC, - 1048577 => kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL, - 1048578 => kGUARD_EXC_PROVISIONAL_REPLY_PORT, - 1048579 => kGUARD_EXC_OOL_PORT_ARRAY_CREATION, - 1048580 => kGUARD_EXC_MOVE_PROVISIONAL_REPLY_PORT, - 1048581 => kGUARD_EXC_REPLY_PORT_SINGLE_SO_RIGHT, - 2097152 => kGUARD_EXC_MOD_REFS_NON_FATAL, - 4194304 => kGUARD_EXC_IMMOVABLE_NON_FATAL, - _ => throw ArgumentError( - 'Unknown value for mach_port_guard_exception_codes: $value', - ), - }; -} - -final class mach_port_guard_info extends ffi.Struct { - @ffi.Uint64() - external int mpgi_guard; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mpgi_guard, - }) => $allocator()..ref.mpgi_guard = mpgi_guard; -} - -typedef mach_port_guard_info_t = mach_port_guard_info; - -final class mach_port_info_ext extends ffi.Struct { - external mach_port_status_t mpie_status; - - @mach_port_msgcount_t() - external int mpie_boost_cnt; - - @ffi.Array.multi([6]) - external ffi.Array reserved; -} - -typedef mach_port_info_ext_t = mach_port_info_ext; -typedef mach_port_info_t = ffi.Pointer; - -final class mach_port_limits extends ffi.Struct { - @mach_port_msgcount_t() - external int mpl_qlimit; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mpl_qlimit, - }) => $allocator()..ref.mpl_qlimit = mpl_qlimit; -} - -typedef mach_port_limits_t = mach_port_limits; -typedef mach_port_mscount_t = natural_t; -typedef mach_port_msgcount_t = natural_t; -typedef mach_port_name_array_t = ffi.Pointer; -typedef mach_port_name_t = natural_t; - -final class mach_port_options extends ffi.Struct { - @ffi.Uint32() - external int flags; - - external mach_port_limits_t mpl; - - external UnnamedUnion$4 unnamed; -} - -typedef mach_port_options_ptr_t = ffi.Pointer; -typedef mach_port_options_t = mach_port_options; - -final class mach_port_qos extends ffi.Opaque {} - -typedef mach_port_qos_t = mach_port_qos; -typedef mach_port_right_t = natural_t; -typedef mach_port_rights_t = natural_t; -typedef mach_port_seqno_t = natural_t; -typedef mach_port_srights_t = ffi.UnsignedInt; -typedef Dartmach_port_srights_t = int; - -final class mach_port_status extends ffi.Struct { - @mach_port_rights_t() - external int mps_pset; - - @mach_port_seqno_t() - external int mps_seqno; - - @mach_port_mscount_t() - external int mps_mscount; - - @mach_port_msgcount_t() - external int mps_qlimit; - - @mach_port_msgcount_t() - external int mps_msgcount; - - @mach_port_rights_t() - external int mps_sorights; - - @boolean_t() - external int mps_srights; - - @boolean_t() - external int mps_pdrequest; - - @boolean_t() - external int mps_nsrequest; - - @natural_t() - external int mps_flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mps_pset, - required int mps_seqno, - required int mps_mscount, - required int mps_qlimit, - required int mps_msgcount, - required int mps_sorights, - required int mps_srights, - required int mps_pdrequest, - required int mps_nsrequest, - required int mps_flags, - }) => $allocator() - ..ref.mps_pset = mps_pset - ..ref.mps_seqno = mps_seqno - ..ref.mps_mscount = mps_mscount - ..ref.mps_qlimit = mps_qlimit - ..ref.mps_msgcount = mps_msgcount - ..ref.mps_sorights = mps_sorights - ..ref.mps_srights = mps_srights - ..ref.mps_pdrequest = mps_pdrequest - ..ref.mps_nsrequest = mps_nsrequest - ..ref.mps_flags = mps_flags; -} - -typedef mach_port_status_t = mach_port_status; -typedef mach_port_t = __darwin_mach_port_t; -typedef mach_port_type_array_t = ffi.Pointer; -typedef mach_port_type_t = natural_t; -typedef mach_port_urefs_t = natural_t; - -final class mach_send_once_notification_t extends ffi.Struct { - external mach_msg_header_t not_header; - - external mach_msg_format_0_trailer_t trailer; -} - -final class mach_send_possible_notification_t extends ffi.Struct { - external mach_msg_header_t not_header; - - external NDR_record_t NDR; - - @mach_port_name_t() - external int not_port; - - external mach_msg_format_0_trailer_t trailer; -} - -final class mach_service_port_info extends ffi.Struct { - @ffi.Array.multi([255]) - external ffi.Array mspi_string_name; - - @ffi.Uint8() - external int mspi_domain_type; -} - -typedef mach_service_port_info_data_t = mach_service_port_info; -typedef mach_service_port_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class mach_task_basic_info extends ffi.Struct { - @mach_vm_size_t() - external int virtual_size; - - @mach_vm_size_t() - external int resident_size; - - @mach_vm_size_t() - external int resident_size_max; - - external time_value_t user_time; - - external time_value_t system_time; - - @policy_t() - external int policy; - - @integer_t() - external int suspend_count; -} - -typedef mach_task_basic_info_data_t = mach_task_basic_info; -typedef mach_task_basic_info_t = ffi.Pointer; -typedef mach_task_flavor_t = ffi.UnsignedInt; -typedef Dartmach_task_flavor_t = int; -typedef mach_thread_flavor_t = ffi.UnsignedInt; -typedef Dartmach_thread_flavor_t = int; - -final class mach_timespec extends ffi.Struct { - @ffi.UnsignedInt() - external int tv_sec; - - @clock_res_t() - external int tv_nsec; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tv_sec, - required int tv_nsec, - }) => $allocator() - ..ref.tv_sec = tv_sec - ..ref.tv_nsec = tv_nsec; -} - -typedef mach_timespec_t = mach_timespec; -typedef mach_vm_address_t = ffi.Uint64; -typedef Dartmach_vm_address_t = int; - -@ffi.Packed(4) -final class mach_vm_info_region extends ffi.Struct { - @mach_vm_offset_t() - external int vir_start; - - @mach_vm_offset_t() - external int vir_end; - - @mach_vm_offset_t() - external int vir_object; - - @memory_object_offset_t() - external int vir_offset; - - @boolean_t() - external int vir_needs_copy; - - @vm_prot_t() - external int vir_protection; - - @vm_prot_t() - external int vir_max_protection; - - @vm_inherit_t() - external int vir_inheritance; - - @natural_t() - external int vir_wired_count; - - @natural_t() - external int vir_user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int vir_start, - required int vir_end, - required int vir_object, - required int vir_offset, - required int vir_needs_copy, - required int vir_protection, - required int vir_max_protection, - required int vir_inheritance, - required int vir_wired_count, - required int vir_user_wired_count, - }) => $allocator() - ..ref.vir_start = vir_start - ..ref.vir_end = vir_end - ..ref.vir_object = vir_object - ..ref.vir_offset = vir_offset - ..ref.vir_needs_copy = vir_needs_copy - ..ref.vir_protection = vir_protection - ..ref.vir_max_protection = vir_max_protection - ..ref.vir_inheritance = vir_inheritance - ..ref.vir_wired_count = vir_wired_count - ..ref.vir_user_wired_count = vir_user_wired_count; -} - -typedef mach_vm_info_region_t = mach_vm_info_region; -typedef mach_vm_offset_list_t = ffi.Pointer; -typedef mach_vm_offset_t = ffi.Uint64; -typedef Dartmach_vm_offset_t = int; - -final class mach_vm_range extends ffi.Struct { - @mach_vm_offset_t() - external int min_address; - - @mach_vm_offset_t() - external int max_address; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int min_address, - required int max_address, - }) => $allocator() - ..ref.min_address = min_address - ..ref.max_address = max_address; -} - -sealed class mach_vm_range_flags_t { - static const MACH_VM_RANGE_NONE = 0; -} - -enum mach_vm_range_flavor_t { - MACH_VM_RANGE_FLAVOR_INVALID(0), - MACH_VM_RANGE_FLAVOR_V1(1); - - final int value; - const mach_vm_range_flavor_t(this.value); - - static mach_vm_range_flavor_t fromValue(int value) => switch (value) { - 0 => MACH_VM_RANGE_FLAVOR_INVALID, - 1 => MACH_VM_RANGE_FLAVOR_V1, - _ => throw ArgumentError( - 'Unknown value for mach_vm_range_flavor_t: $value', - ), - }; -} - -typedef mach_vm_range_recipe_t = mach_vm_range_recipe_v1_t; - -final class mach_vm_range_recipe_v1_t extends ffi.Opaque {} - -typedef mach_vm_range_recipes_raw_t = ffi.Pointer; -typedef mach_vm_range_t = ffi.Pointer; - -enum mach_vm_range_tag_t { - MACH_VM_RANGE_DEFAULT(0), - MACH_VM_RANGE_DATA(1), - MACH_VM_RANGE_FIXED(2); - - final int value; - const mach_vm_range_tag_t(this.value); - - static mach_vm_range_tag_t fromValue(int value) => switch (value) { - 0 => MACH_VM_RANGE_DEFAULT, - 1 => MACH_VM_RANGE_DATA, - 2 => MACH_VM_RANGE_FIXED, - _ => throw ArgumentError('Unknown value for mach_vm_range_tag_t: $value'), - }; -} - -@ffi.Packed(4) -final class mach_vm_read_entry extends ffi.Struct { - @mach_vm_address_t() - external int address; - - @mach_vm_size_t() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int address, - required int size, - }) => $allocator() - ..ref.address = address - ..ref.size = size; -} - -typedef mach_vm_size_t = ffi.Uint64; -typedef Dartmach_vm_size_t = int; -typedef mach_voucher_attr_command_t = ffi.Uint32; -typedef Dartmach_voucher_attr_command_t = int; -typedef mach_voucher_attr_content_size_t = ffi.Uint32; -typedef Dartmach_voucher_attr_content_size_t = int; -typedef mach_voucher_attr_content_t = ffi.Pointer; -typedef mach_voucher_attr_control_flags_t = ffi.Uint32; -typedef Dartmach_voucher_attr_control_flags_t = int; -typedef mach_voucher_attr_control_t = mach_port_t; -typedef mach_voucher_attr_importance_refs = ffi.Uint32; -typedef Dartmach_voucher_attr_importance_refs = int; -typedef mach_voucher_attr_key_array_t = ffi.Pointer; -typedef mach_voucher_attr_key_t = ffi.Uint32; -typedef Dartmach_voucher_attr_key_t = int; -typedef mach_voucher_attr_manager_t = mach_port_t; -typedef mach_voucher_attr_raw_recipe_array_size_t = mach_msg_type_number_t; -typedef mach_voucher_attr_raw_recipe_array_t = mach_voucher_attr_raw_recipe_t; -typedef mach_voucher_attr_raw_recipe_size_t = mach_msg_type_number_t; -typedef mach_voucher_attr_raw_recipe_t = ffi.Pointer; -typedef mach_voucher_attr_recipe_command_array_t = - ffi.Pointer; -typedef mach_voucher_attr_recipe_command_t = ffi.Uint32; -typedef Dartmach_voucher_attr_recipe_command_t = int; - -final class mach_voucher_attr_recipe_data extends ffi.Opaque {} - -typedef mach_voucher_attr_recipe_data_t = mach_voucher_attr_recipe_data; -typedef mach_voucher_attr_recipe_size_t = mach_msg_type_number_t; -typedef mach_voucher_attr_recipe_t = - ffi.Pointer; -typedef mach_voucher_attr_value_flags_t = ffi.Uint32; -typedef Dartmach_voucher_attr_value_flags_t = int; -typedef mach_voucher_attr_value_handle_array_size_t = mach_msg_type_number_t; -typedef mach_voucher_attr_value_handle_array_t = - ffi.Pointer; -typedef mach_voucher_attr_value_handle_t = ffi.Uint64; -typedef Dartmach_voucher_attr_value_handle_t = int; -typedef mach_voucher_attr_value_reference_t = ffi.Uint32; -typedef Dartmach_voucher_attr_value_reference_t = int; -typedef mach_voucher_name_array_t = ffi.Pointer; -typedef mach_voucher_name_t = mach_port_name_t; -typedef mach_voucher_selector_t = ffi.Uint32; -typedef Dartmach_voucher_selector_t = int; -typedef mach_voucher_t = mach_port_t; -typedef mach_zone_info_array_t = ffi.Pointer; - -final class mach_zone_info_data extends ffi.Struct { - @ffi.Uint64() - external int mzi_count; - - @ffi.Uint64() - external int mzi_cur_size; - - @ffi.Uint64() - external int mzi_max_size; - - @ffi.Uint64() - external int mzi_elem_size; - - @ffi.Uint64() - external int mzi_alloc_size; - - @ffi.Uint64() - external int mzi_sum_size; - - @ffi.Uint64() - external int mzi_exhaustible; - - @ffi.Uint64() - external int mzi_collectable; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int mzi_count, - required int mzi_cur_size, - required int mzi_max_size, - required int mzi_elem_size, - required int mzi_alloc_size, - required int mzi_sum_size, - required int mzi_exhaustible, - required int mzi_collectable, - }) => $allocator() - ..ref.mzi_count = mzi_count - ..ref.mzi_cur_size = mzi_cur_size - ..ref.mzi_max_size = mzi_max_size - ..ref.mzi_elem_size = mzi_elem_size - ..ref.mzi_alloc_size = mzi_alloc_size - ..ref.mzi_sum_size = mzi_sum_size - ..ref.mzi_exhaustible = mzi_exhaustible - ..ref.mzi_collectable = mzi_collectable; -} - -typedef mach_zone_info_t = mach_zone_info_data; - -final class mach_zone_name extends ffi.Struct { - @ffi.Array.multi([80]) - external ffi.Array mzn_name; -} - -typedef mach_zone_name_array_t = ffi.Pointer; -typedef mach_zone_name_t = mach_zone_name; -@Deprecated('Deprecated') -const int macron = 248; - -typedef malloc_type_id_t = ffi.UnsignedLongLong; -typedef Dartmalloc_type_id_t = int; -typedef malloc_zone_t = _malloc_zone_t; -@Deprecated('Deprecated') -const int mapChanged = 32; - -@Deprecated('Deprecated') -const int mapChangedBit = 5; - -@Deprecated('Deprecated') -const int mapCompact = 64; - -@Deprecated('Deprecated') -const int mapCompactBit = 6; - -const int mapReadErr = -199; - -@Deprecated('Deprecated') -const int mapReadOnly = 128; - -@Deprecated('Deprecated') -const int mapReadOnlyBit = 7; - -const int matrixErr = -2203; - -@Deprecated('Deprecated') -const int maxCountry = 108; - -const int maxDateField = 10; - -const int maxSizeToGrowTooSmall = -2027; - -typedef mcontext_t = ffi.Pointer<__darwin_mcontext64>; - -@Deprecated('Deprecated') -final class mds_funcs extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_HANDLE MdsHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ffi.Pointer OpenParameters, - ffi.Pointer hMds, - ) - > - > - DbOpen; - - external ffi.Pointer< - ffi.NativeFunction - > - DbClose; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_HANDLE MdsHandle, - ffi.Pointer NameList, - ) - > - > - GetDbNames; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer> DbName, - ) - > - > - GetDbNameFromHandle; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(MDS_HANDLE MdsHandle, CSSM_NAME_LIST_PTR NameList) - > - > - FreeNameList; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RecordType, - ffi.Pointer Attributes, - ffi.Pointer Data, - ffi.Pointer UniqueId, - ) - > - > - DataInsert; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer UniqueRecordIdentifier, - ) - > - > - DataDelete; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RecordType, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, - ffi.Pointer AttributesToBeModified, - ffi.Pointer DataToBeModified, - CSSM_DB_MODIFY_MODE ModifyMode, - ) - > - > - DataModify; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer Query, - CSSM_HANDLE_PTR ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetFirst; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_HANDLE ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetNext; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(MDS_DB_HANDLE MdsDbHandle, CSSM_HANDLE ResultsHandle) - > - > - DataAbortQuery; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer UniqueRecord, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ) - > - > - DataGetFromUniqueRecordId; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, - ) - > - > - FreeUniqueRecord; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RelationID, - ffi.Pointer RelationName, - uint32 NumberOfAttributes, - ffi.Pointer pAttributeInfo, - uint32 NumberOfIndexes, - ffi.Pointer pIndexInfo, - ) - > - > - CreateRelation; - - external ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RelationID, - ) - > - > - DestroyRelation; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_HANDLE MdsHandle, - ffi.Pointer DbName, - ffi.Pointer DbLocation, - CSSM_DB_ACCESS_TYPE AccessRequest, - ffi.Pointer AccessCred, - ffi.Pointer OpenParameters, - ffi.Pointer hMds, - ) - > - > - DbOpen, - required ffi.Pointer< - ffi.NativeFunction - > - DbClose, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_HANDLE MdsHandle, - ffi.Pointer NameList, - ) - > - > - GetDbNames, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer> DbName, - ) - > - > - GetDbNameFromHandle, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function(MDS_HANDLE MdsHandle, CSSM_NAME_LIST_PTR NameList) - > - > - FreeNameList, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RecordType, - ffi.Pointer Attributes, - ffi.Pointer Data, - ffi.Pointer UniqueId, - ) - > - > - DataInsert, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer UniqueRecordIdentifier, - ) - > - > - DataDelete, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RecordType, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecordIdentifier, - ffi.Pointer AttributesToBeModified, - ffi.Pointer DataToBeModified, - CSSM_DB_MODIFY_MODE ModifyMode, - ) - > - > - DataModify, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer Query, - CSSM_HANDLE_PTR ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetFirst, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_HANDLE ResultsHandle, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ffi.Pointer UniqueId, - ) - > - > - DataGetNext, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_HANDLE ResultsHandle, - ) - > - > - DataAbortQuery, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - ffi.Pointer UniqueRecord, - CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR Attributes, - CSSM_DATA_PTR Data, - ) - > - > - DataGetFromUniqueRecordId, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_UNIQUE_RECORD_PTR UniqueRecord, - ) - > - > - FreeUniqueRecord, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RelationID, - ffi.Pointer RelationName, - uint32 NumberOfAttributes, - ffi.Pointer pAttributeInfo, - uint32 NumberOfIndexes, - ffi.Pointer pIndexInfo, - ) - > - > - CreateRelation, - required ffi.Pointer< - ffi.NativeFunction< - CSSM_RETURN Function( - MDS_DB_HANDLE MdsDbHandle, - CSSM_DB_RECORDTYPE RelationID, - ) - > - > - DestroyRelation, - }) => $allocator() - ..ref.DbOpen = DbOpen - ..ref.DbClose = DbClose - ..ref.GetDbNames = GetDbNames - ..ref.GetDbNameFromHandle = GetDbNameFromHandle - ..ref.FreeNameList = FreeNameList - ..ref.DataInsert = DataInsert - ..ref.DataDelete = DataDelete - ..ref.DataModify = DataModify - ..ref.DataGetFirst = DataGetFirst - ..ref.DataGetNext = DataGetNext - ..ref.DataAbortQuery = DataAbortQuery - ..ref.DataGetFromUniqueRecordId = DataGetFromUniqueRecordId - ..ref.FreeUniqueRecord = FreeUniqueRecord - ..ref.CreateRelation = CreateRelation - ..ref.DestroyRelation = DestroyRelation; -} - -const int mdy = 0; - -const int mediaTypesDontMatch = -2018; - -const int memAZErr = -113; - -const int memAdrErr = -110; - -const int memBCErr = -115; - -const int memFragErr = -601; - -const int memFullErr = -108; - -const int memLockedErr = -117; - -const int memPCErr = -114; - -const int memPurErr = -112; - -const int memROZErr = -99; - -const int memROZError = -99; - -const int memROZWarn = -99; - -const int memSCErr = -116; - -const int memWZErr = -111; - -typedef mem_entry_name_port_t = mach_port_t; -typedef memory_object_array_t = ffi.Pointer; - -final class memory_object_attr_info extends ffi.Struct { - @memory_object_copy_strategy_t() - external int copy_strategy; - - @memory_object_cluster_size_t() - external int cluster_size; - - @boolean_t() - external int may_cache_object; - - @boolean_t() - external int temporary; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int copy_strategy, - required int cluster_size, - required int may_cache_object, - required int temporary, - }) => $allocator() - ..ref.copy_strategy = copy_strategy - ..ref.cluster_size = cluster_size - ..ref.may_cache_object = may_cache_object - ..ref.temporary = temporary; -} - -typedef memory_object_attr_info_data_t = memory_object_attr_info; -typedef memory_object_attr_info_t = ffi.Pointer; - -final class memory_object_behave_info extends ffi.Struct { - @memory_object_copy_strategy_t() - external int copy_strategy; - - @boolean_t() - external int temporary; - - @boolean_t() - external int invalidate; - - @boolean_t() - external int silent_overwrite; - - @boolean_t() - external int advisory_pageout; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int copy_strategy, - required int temporary, - required int invalidate, - required int silent_overwrite, - required int advisory_pageout, - }) => $allocator() - ..ref.copy_strategy = copy_strategy - ..ref.temporary = temporary - ..ref.invalidate = invalidate - ..ref.silent_overwrite = silent_overwrite - ..ref.advisory_pageout = advisory_pageout; -} - -typedef memory_object_behave_info_data_t = memory_object_behave_info; -typedef memory_object_behave_info_t = ffi.Pointer; -typedef memory_object_cluster_size_t = natural_t; -typedef memory_object_control_t = mach_port_t; -typedef memory_object_copy_strategy_t = ffi.Int; -typedef Dartmemory_object_copy_strategy_t = int; -typedef memory_object_default_t = mach_port_t; -typedef memory_object_fault_info_t = ffi.Pointer; -typedef memory_object_flavor_t = ffi.Int; -typedef Dartmemory_object_flavor_t = int; -typedef memory_object_info_t = ffi.Pointer; -typedef memory_object_name_t = mach_port_t; -typedef memory_object_offset_t = ffi.UnsignedLongLong; -typedef Dartmemory_object_offset_t = int; - -final class memory_object_perf_info extends ffi.Struct { - @memory_object_cluster_size_t() - external int cluster_size; - - @boolean_t() - external int may_cache; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int cluster_size, - required int may_cache, - }) => $allocator() - ..ref.cluster_size = cluster_size - ..ref.may_cache = may_cache; -} - -typedef memory_object_perf_info_data_t = memory_object_perf_info; -typedef memory_object_perf_info_t = ffi.Pointer; -typedef memory_object_return_t = ffi.Int; -typedef Dartmemory_object_return_t = int; -typedef memory_object_size_t = ffi.UnsignedLongLong; -typedef Dartmemory_object_size_t = int; -typedef memory_object_t = mach_port_t; - -const int menuInvalidErr = -5623; - -const int menuItemNotFoundErr = -5622; - -const int menuNotFoundErr = -5620; - -const int menuPrgErr = 84; - -const int menuPropertyInvalid = -5603; - -const int menuPropertyInvalidErr = -5603; - -const int menuPropertyNotFoundErr = -5604; - -const int menuUsesSystemDefErr = -5621; - -const int midiDupIDErr = -260; - -const int midiInvalidCmdErr = -261; - -const int midiManagerAbsentOSErr = -2081; - -const int midiNameLenErr = -259; - -const int midiNoClientErr = -250; - -const int midiNoConErr = -257; - -const int midiNoPortErr = -251; - -const int midiTooManyConsErr = -253; - -const int midiTooManyPortsErr = -252; - -const int midiVConnectErr = -254; - -const int midiVConnectMade = -255; - -const int midiVConnectRmvd = -256; - -const int midiWriteErr = -258; - -typedef mig_impl_routine_t = - ffi.Pointer>; - -final class mig_reply_error_t extends ffi.Struct { - external mach_msg_header_t Head; - - external NDR_record_t NDR; - - @kern_return_t() - external int RetCode; -} - -typedef mig_routine_arg_descriptor_t = ffi.Pointer; -typedef mig_routine_descriptor = routine_descriptor; -typedef mig_routine_descriptor_t = ffi.Pointer; -typedef mig_routine_t = mig_stub_routine_t; -typedef mig_server_routine_t = - ffi.Pointer< - ffi.NativeFunction< - mig_routine_t Function(ffi.Pointer InHeadP) - > - >; -typedef mig_stub_routine_t = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ) - > - >; - -final class mig_subsystem extends ffi.Struct { - external mig_server_routine_t server; - - @mach_msg_id_t() - external int start; - - @mach_msg_id_t() - external int end; - - @mach_msg_size_t() - external int maxsize; - - @vm_address_t() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array routine; -} - -typedef mig_subsystem_t = ffi.Pointer; - -final class mig_symtab extends ffi.Struct { - external ffi.Pointer ms_routine_name; - - @ffi.Int() - external int ms_routine_number; - - external ffi.Pointer> ms_routine; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer ms_routine_name, - required int ms_routine_number, - required ffi.Pointer> ms_routine, - }) => $allocator() - ..ref.ms_routine_name = ms_routine_name - ..ref.ms_routine_number = ms_routine_number - ..ref.ms_routine = ms_routine; -} - -typedef mig_symtab_t = mig_symtab; -@Deprecated('Deprecated') -const int minCountry = 0; - -const int minLeadingZ = 64; - -const int mini1BitMask = 1768123683; - -const int mini4BitData = 1768123700; - -const int mini8BitData = 1768123704; - -const int minuteField = 5; - -const int minuteMask = 32; - -const int missingRequiredParameterErr = -2063; - -const int mmInternalError = -2526; - -const int mntLdingZ = 64; - -const int mode32BitCompatible = 128; - -const int modeCanBackground = 4096; - -const int modeControlPanel = 524288; - -const int modeDeskAccessory = 131072; - -const int modeDisplayManagerAware = 4; - -const int modeDoesActivateOnFGSwitch = 2048; - -const int modeGetAppDiedMsg = 256; - -const int modeGetFrontClicks = 512; - -const int modeHighLevelEventAware = 64; - -const int modeLaunchDontSwitch = 262144; - -const int modeLiteral = 1280594508; - -const int modeLocalAndRemoteHLEvents = 32; - -const int modeMultiLaunch = 65536; - -const int modeNeedSuspendResume = 16384; - -const int modeNormal = 1313821261; - -const int modeOnlyBackground = 1024; - -const int modePhonemes = 1346916174; - -const int modeReserved = 16777216; - -const int modeStationeryAware = 16; - -const int modeText = 1413830740; - -const int modeTune = 1414876741; - -const int modeUseTextEditServices = 8; - -typedef mode_t = __darwin_mode_t; - -const int monthField = 2; - -const int monthMask = 4; - -const int mountedFolderIconResource = -3977; - -const int movieTextNotFoundErr = -2062; - -const int movieToolboxUninitialized = -2020; - -@Deprecated('Deprecated') -const int mpWorkFlagCopyWorkBlock = 4; - -@Deprecated('Deprecated') -const int mpWorkFlagDoCompletion = 2; - -@Deprecated('Deprecated') -const int mpWorkFlagDoWork = 1; - -@Deprecated('Deprecated') -const int mpWorkFlagDontBlock = 8; - -@Deprecated('Deprecated') -const int mpWorkFlagGetIsRunning = 64; - -@Deprecated('Deprecated') -const int mpWorkFlagGetProcessorCount = 16; - -sealed class mpo_flags_t { - static const MPO_PORT = 0; - static const MPO_SERVICE_PORT = 1024; - static const MPO_CONNECTION_PORT = 2048; - static const MPO_REPLY_PORT = 4096; - static const MPO_PROVISIONAL_REPLY_PORT = 16384; - static const MPO_EXCEPTION_PORT = 32768; - static const MPO_CONNECTION_PORT_WITH_PORT_ARRAY = 65536; -} - -final class msg_labels_t extends ffi.Struct { - @mach_port_name_t() - external int sender; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sender, - }) => $allocator()..ref.sender = sender; -} - -final class msghdr extends ffi.Struct { - external ffi.Pointer msg_name; - - @socklen_t() - external int msg_namelen; - - external ffi.Pointer msg_iov; - - @ffi.Int() - external int msg_iovlen; - - external ffi.Pointer msg_control; - - @socklen_t() - external int msg_controllen; - - @ffi.Int() - external int msg_flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer msg_name, - required int msg_namelen, - required ffi.Pointer msg_iov, - required int msg_iovlen, - required ffi.Pointer msg_control, - required int msg_controllen, - required int msg_flags, - }) => $allocator() - ..ref.msg_name = msg_name - ..ref.msg_namelen = msg_namelen - ..ref.msg_iov = msg_iov - ..ref.msg_iovlen = msg_iovlen - ..ref.msg_control = msg_control - ..ref.msg_controllen = msg_controllen - ..ref.msg_flags = msg_flags; -} - -const int multiplePublisherWrn = -460; - -const int myd = 3; - -typedef n_long = __uint32_t; -typedef n_short = __uint16_t; -typedef n_time = __uint32_t; - -const int nameFontTableTag = 1851878757; - -const int nameTypeErr = -902; - -typedef natural_t = __darwin_natural_t; - -const int nbpBuffOvr = -1024; - -const int nbpConfDiff = -1026; - -const int nbpDuplicate = -1027; - -const int nbpNISErr = -1029; - -const int nbpNoConfirm = -1025; - -const int nbpNotFound = -1028; - -const int needClearScrapErr = -100; - -const int negZcbFreeErr = 33; - -final class netent extends ffi.Struct { - external ffi.Pointer n_name; - - external ffi.Pointer> n_aliases; - - @ffi.Int() - external int n_addrtype; - - @ffi.Uint32() - external int n_net; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer n_name, - required ffi.Pointer> n_aliases, - required int n_addrtype, - required int n_net, - }) => $allocator() - ..ref.n_name = n_name - ..ref.n_aliases = n_aliases - ..ref.n_addrtype = n_addrtype - ..ref.n_net = n_net; -} - -const int networkErr = -925; - -const int newLineBit = 7; - -const int newLineCharMask = 65280; - -const int newLineMask = 128; - -const int nilHandleErr = -109; - -const int nilScrapFlavorDataErr = -4994; - -typedef nlink_t = __uint16_t; - -const int nmTypErr = -299; - -@Deprecated('Deprecated') -const int nmType = 8; - -const int noAdrMkErr = -67; - -const int noBridgeErr = -93; - -const int noCacheBit = 5; - -const int noCacheMask = 32; - -const int noCalls = 1; - -const int noCodecErr = -8961; - -const int noDMAErr = -2208; - -const int noDataArea = -1104; - -const int noDataHandler = -2007; - -const int noDefaultDataRef = -2051; - -const int noDefaultUserErr = -922; - -const int noDeviceForChannel = -9400; - -const int noDriveErr = -64; - -const int noDtaMkErr = -71; - -const int noErr = 0; - -const int noExportProcAvailableErr = -2089; - -const int noGlobalsErr = -904; - -const int noHardware = -200; - -const int noHardwareErr = -200; - -const int noHelpForItem = -4009; - -const int noIconDataAvailableErr = -2582; - -const int noInformErr = -926; - -const int noMMUErr = -626; - -const int noMPPErr = -3102; - -const int noMacDskErr = -57; - -const int noMachineNameErr = -913; - -const int noMaskFoundErr = -1000; - -const int noMediaHandler = -2006; - -const int noMemForPictPlaybackErr = -145; - -const int noMemoryNodeFailedInitialize = -30552; - -const int noMoreFolderDescErr = -4272; - -const int noMoreKeyColorsErr = -2205; - -const int noMoreRealTime = -212; - -const int noMovieFound = -2048; - -const int noNybErr = -66; - -const int noOutstandingHLE = -608; - -const int noPasteboardPromiseKeeperErr = -25136; - -const int noPathMappingErr = -2112; - -const int noPortErr = -903; - -const int noPrefAppErr = -3032; - -const int noRecordOfApp = -2020; - -const int noRelErr = -1101; - -const int noRequest = 2; - -const int noResponseErr = -915; - -const int noScrapErr = -100; - -const int noScrapPromiseKeeperErr = -4993; - -const int noSecuritySession = 0; - -const int noSendResp = -1103; - -const int noSessionErr = -908; - -const int noSoundTrackInMovieErr = -2055; - -const int noSourceTreeFoundErr = -2060; - -const int noSuchIconErr = -2581; - -const int noSuitableDisplaysErr = -1859; - -const int noSynthFound = -240; - -const int noThumbnailFoundErr = -8994; - -const int noToolboxNameErr = -914; - -const int noTranslationPathErr = -3030; - -const int noTypeErr = -102; - -const int noUserInteractionAllowed = -610; - -const int noUserNameErr = -911; - -const int noUserRecErr = -928; - -const int noUserRefErr = -924; - -const int noVideoTrackInMovieErr = -2054; - -const int nonDragOriginatorErr = -1862; - -const int nonGlyphID = 65535; - -const int nonMatchingEditState = -2024; - -const int normal = 0; - -const int notAFileErr = -1302; - -const int notAQTVRMovieErr = -30540; - -const int notARemountErr = -1308; - -const int notAllowedToSaveMovieErr = -2126; - -const int notAppropriateForClassic = -877; - -const int notBTree = -410; - -const int notEnoughBufferSpace = -207; - -const int notEnoughDataErr = -2149; - -const int notEnoughDiskSpaceToGrab = -9404; - -const int notEnoughHardware = -201; - -const int notEnoughHardwareErr = -201; - -const int notEnoughMemoryErr = -620; - -const int notEnoughMemoryToGrab = -9403; - -const int notExactMatrixErr = -2204; - -const int notExactSizeErr = -2206; - -const int notHeldErr = -621; - -const int notImplementedMusicOSErr = -2071; - -const int notInitErr = -900; - -const int notLeafAtomErr = -2102; - -const int notLockedErr = -623; - -const int notLoggedInErr = -923; - -const int notOpenErr = -28; - -const int notPasteboardOwnerErr = -25135; - -const int notRegisteredSectionErr = -452; - -const int notThePublisherWrn = -463; - -const int noteChannelNotAllocatedOSErr = -2085; - -typedef notify_port_t = mach_port_t; - -const int nrCallNotSupported = -2557; - -const int nrDataTruncatedErr = -2543; - -const int nrExitedIteratorScope = -2555; - -const int nrInvalidEntryIterationOp = -2552; - -const int nrInvalidNodeErr = -2538; - -const int nrIterationDone = -2554; - -const int nrLockedErr = -2536; - -const int nrNameErr = -2541; - -const int nrNotCreatedErr = -2540; - -const int nrNotEnoughMemoryErr = -2537; - -const int nrNotFoundErr = -2539; - -const int nrNotModifiedErr = -2547; - -const int nrNotSlotDeviceErr = -2542; - -const int nrOverrunErr = -2548; - -const int nrPathBufferTooSmall = -2551; - -const int nrPathNotFound = -2550; - -const int nrPowerErr = -2544; - -const int nrPowerSwitchAbortErr = -2545; - -const int nrPropertyAlreadyExists = -2553; - -const int nrResultCodeBase = -2549; - -const int nrTransactionAborted = -2556; - -const int nrTypeMismatchErr = -2546; - -const int nsDrvErr = -56; - -const int nsStackErr = -149; - -const int nsvErr = -35; - -@ffi.Packed(1) -final class ntsid_t extends ffi.Struct { - @u_int8_t() - external int sid_kind; - - @u_int8_t() - external int sid_authcount; - - @ffi.Array.multi([6]) - external ffi.Array sid_authority; - - @ffi.Array.multi([16]) - external ffi.Array sid_authorities; -} - -const int nulDev = 3; - -const int numberFormattingBadCurrencyPositionErr = -5211; - -const int numberFormattingBadFormatErr = -5207; - -const int numberFormattingBadNumberFormattingObjectErr = -5202; - -const int numberFormattingBadOptionsErr = -5208; - -const int numberFormattingBadTokenErr = -5209; - -const int numberFormattingDelimiterMissingErr = -5205; - -const int numberFormattingEmptyFormatErr = -5206; - -const int numberFormattingLiteralMissingErr = -5204; - -const int numberFormattingNotADigitErr = -5212; - -const int numberFormattingNotANumberErr = -5200; - -const int numberFormattingOverflowInDestinationErr = -5201; - -const int numberFormattingSpuriousCharErr = -5203; - -const int numberFormattingUnOrderedCurrencyRangeErr = -5210; - -const int numberFormattingUnOrdredCurrencyRangeErr = -5210; - -const int numberFortmattingNotADigitErr = -5212; - -final class objc_class extends ffi.Opaque {} - -final class objc_object extends ffi.Struct { - external ffi.Pointer isaAsInt; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer isa, - }) => $allocator()..ref.isaAsInt = isa; -} - -typedef objc_objectptr_t = ffi.Pointer; - -final class objc_selector extends ffi.Opaque {} - -typedef objc_zone_t = ffi.Pointer<_malloc_zone_t>; - -const int offLinErr = -65; - -typedef off_t = __darwin_off_t; -@Deprecated('Deprecated') -const int ogonek = 254; - -const int opWrErr = -49; - -final class opaqueCMFormatDescription extends ffi.Opaque {} - -const int openErr = -23; - -const int openFolderIconResource = -3997; - -const int os2FontTableTag = 1330851634; - -typedef os_block_t = ffi.Pointer; -typedef Dartos_block_t = objc.ObjCBlock; - -enum os_clockid_t { - OS_CLOCK_MACH_ABSOLUTE_TIME(32); - - final int value; - const os_clockid_t(this.value); - - static os_clockid_t fromValue(int value) => switch (value) { - 32 => OS_CLOCK_MACH_ABSOLUTE_TIME, - _ => throw ArgumentError('Unknown value for os_clockid_t: $value'), - }; -} - -typedef os_function_t = - ffi.Pointer)>>; - -final class os_workgroup_attr_opaque_s extends ffi.Struct { - @ffi.Uint32() - external int sig; - - @ffi.Array.multi([60]) - external ffi.Array opaque; -} - -typedef os_workgroup_attr_s = os_workgroup_attr_opaque_s; -typedef os_workgroup_attr_t = ffi.Pointer; -typedef os_workgroup_index = ffi.Uint32; -typedef Dartos_workgroup_index = int; - -final class os_workgroup_interval_data_opaque_s extends ffi.Struct { - @ffi.Uint32() - external int sig; - - @ffi.Array.multi([56]) - external ffi.Array opaque; -} - -typedef os_workgroup_interval_data_s = os_workgroup_interval_data_opaque_s; -typedef os_workgroup_interval_data_t = - ffi.Pointer; -typedef os_workgroup_interval_t = ffi.Pointer; -typedef Dartos_workgroup_interval_t = OS_os_workgroup; - -final class os_workgroup_join_token_opaque_s extends ffi.Struct { - @ffi.Uint32() - external int sig; - - @ffi.Array.multi([36]) - external ffi.Array opaque; -} - -typedef os_workgroup_join_token_s = os_workgroup_join_token_opaque_s; -typedef os_workgroup_join_token_t = - ffi.Pointer; - -final class os_workgroup_max_parallel_threads_attr_s extends ffi.Opaque {} - -typedef os_workgroup_mpt_attr_s = os_workgroup_max_parallel_threads_attr_s; -typedef os_workgroup_mpt_attr_t = - ffi.Pointer; -typedef os_workgroup_parallel_t = ffi.Pointer; -typedef Dartos_workgroup_parallel_t = OS_os_workgroup; -typedef os_workgroup_t = ffi.Pointer; -typedef Dartos_workgroup_t = OS_os_workgroup; -typedef os_workgroup_working_arena_destructor_t = - ffi.Pointer)>>; - -const int outline = 8; - -@Deprecated('Deprecated') -const int overDot = 250; - -const int ownedFolderIconResource = -3980; - -const int pATMachine = 1885434989; - -const int pATType = 1885434996; - -const int pATZone = 1885435002; - -const int pArcAngle = 1885434467; - -const int pBackgroundColor = 1885496172; - -const int pBackgroundPattern = 1885499508; - -const int pBestType = 1885500276; - -const int pBounds = 1885498980; - -const int pClass = 1885564019; - -const int pClipboard = 1885564009; - -const int pColor = 1668246642; - -const int pColorTable = 1668052066; - -const int pConduit = 1885564782; - -const int pContents = 1885564532; - -const int pCornerCurveHeight = 1885562980; - -const int pCornerCurveWidth = 1885566820; - -const int pDNS = 1885630067; - -const int pDNSForm = 1883524691; - -const int pDashStyle = 1885631348; - -const int pDefaultType = 1684366964; - -const int pDefinitionRect = 1885631092; - -const int pDeviceAddress = 1885632097; - -const int pDeviceType = 1885632116; - -const int pDottedDecimal = 1885958244; - -const int pEnabled = 1701732972; - -const int pEndPoint = 1885695588; - -const int pFTPKind = 1802071652; - -const int pFillColor = 1718379372; - -const int pFillPattern = 1718382708; - -const int pFont = 1718578804; - -const int pFormula = 1885761394; - -const int pGraphicObjects = 1735352947; - -const int pHasCloseBox = 1751346274; - -const int pHasTitleBar = 1886677364; - -const int pHost = 1213158228; - -const int pID = 1229201440; - -const int pIndex = 1885955192; - -const int pInsertionLoc = 1885957747; - -const int pIsFloating = 1769170540; - -const int pIsFrontProcess = 1885959014; - -const int pIsModal = 1886220132; - -const int pIsModified = 1768779620; - -const int pIsResizable = 1886548858; - -const int pIsStationeryPad = 1886613604; - -const int pIsZoomable = 1769175661; - -const int pIsZoomed = 1887073645; - -const int pItemNumber = 1769237870; - -const int pJustification = 1886024564; - -const int pKeyKind = 1802202724; - -const int pKeystrokeKey = 1800237927; - -const int pLineArrow = 1634890351; - -const int pMenuID = 1835952484; - -const int pModifiers = 1800236900; - -const int pName = 1886282093; - -const int pNetwork = 1886283124; - -const int pNewElementLoc = 1886283116; - -const int pNode = 1886285668; - -const int pPath = 1179930723; - -const int pPenColor = 1886413676; - -const int pPenPattern = 1886416993; - -const int pPenWidth = 1886418788; - -const int pPixelDepth = 1885630580; - -const int pPointList = 1886678132; - -const int pPointSize = 1886679930; - -const int pPort = 1886416754; - -const int pProtection = 1886417519; - -const int pProtocol = 1886417524; - -const int pRotation = 1886547828; - -const int pSCSIBus = 1886610274; - -const int pSCSILUN = 1886612597; - -const int pScale = 1886610284; - -const int pScheme = 1886745443; - -const int pScript = 1935896692; - -const int pScriptTag = 1886610292; - -const int pSelected = 1936026723; - -const int pSelection = 1936026725; - -const int pSocket = 1886613347; - -const int pStartAngle = 1885433447; - -const int pStartPoint = 1886614640; - -const int pTextColor = 1886681187; - -const int pTextEncoding = 1886681189; - -const int pTextFont = 1886681190; - -const int pTextItemDelimiters = 1954047084; - -const int pTextPointSize = 1886679155; - -const int pTextStyles = 1954050932; - -const int pTransferMode = 1886418029; - -const int pTranslation = 1886679667; - -const int pURL = 1884639820; - -const int pUniformStyles = 1970500716; - -const int pUpdateOn = 1886744676; - -const int pUserName = 1380021614; - -const int pUserPassword = 1380020343; - -const int pUserSelection = 1886745452; - -const int pVersion = 1986359923; - -const int pVisible = 1886808435; - -typedef page_address_array_t = ffi.Pointer; - -const int paramErr = -50; - -const int pasteDev = 12; - -const int pathNotVerifiedErr = -2113; - -const int pathTooLongErr = -2110; - -@Deprecated('Deprecated') -const int perThousand = 228; - -const int permErr = -54; - -const int pickerCantLive = -4006; - -const int pickerResourceError = -4002; - -const int pictInfoIDErr = -11001; - -const int pictInfoVerbErr = -11002; - -const int pictInfoVersionErr = -11000; - -const int pictureDataErr = -11005; - -typedef pid_t = __darwin_pid_t; - -const int pixMapTooDeepErr = -148; - -@Deprecated('Deprecated') -const int platform68k = 1; - -@Deprecated('Deprecated') -const int platformAIXppc = 1300; - -@Deprecated('Deprecated') -const int platformArm64NativeEntryPoint = 9; - -@Deprecated('Deprecated') -const int platformIA32NativeEntryPoint = 6; - -@Deprecated('Deprecated') -const int platformIRIXmips = 1000; - -@Deprecated('Deprecated') -const int platformInterpreted = 3; - -@Deprecated('Deprecated') -const int platformLinuxintel = 1201; - -@Deprecated('Deprecated') -const int platformLinuxppc = 1200; - -@Deprecated('Deprecated') -const int platformMacOSx86 = 1500; - -@Deprecated('Deprecated') -const int platformNeXT68k = 1403; - -@Deprecated('Deprecated') -const int platformNeXTIntel = 1400; - -@Deprecated('Deprecated') -const int platformNeXTppc = 1401; - -@Deprecated('Deprecated') -const int platformNeXTsparc = 1402; - -@Deprecated('Deprecated') -const int platformPowerPC = 2; - -@Deprecated('Deprecated') -const int platformPowerPC64NativeEntryPoint = 7; - -@Deprecated('Deprecated') -const int platformPowerPCNativeEntryPoint = 5; - -@Deprecated('Deprecated') -const int platformSunOSintel = 1101; - -@Deprecated('Deprecated') -const int platformSunOSsparc = 1100; - -@Deprecated('Deprecated') -const int platformWin32 = 4; - -@Deprecated('Deprecated') -const int platformX86_64NativeEntryPoint = 8; - -const int pleaseCacheBit = 4; - -const int pleaseCacheMask = 16; - -const int pmBusyErr = -13000; - -const int pmField = 10; - -const int pmMask = 1024; - -const int pmRecvEndErr = -13005; - -const int pmRecvStartErr = -13004; - -const int pmReplyTOErr = -13001; - -const int pmSendEndErr = -13003; - -const int pmSendStartErr = -13002; - -typedef pointer_t = vm_offset_t; -typedef policy_base_data_t = policy_bases; -typedef policy_base_t = ffi.Pointer; - -final class policy_bases extends ffi.Struct { - external policy_timeshare_base_data_t ts; - - external policy_rr_base_data_t rr; - - external policy_fifo_base_data_t fifo; -} - -final class policy_fifo_base extends ffi.Struct { - @integer_t() - external int base_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int base_priority, - }) => $allocator()..ref.base_priority = base_priority; -} - -typedef policy_fifo_base_data_t = policy_fifo_base; -typedef policy_fifo_base_t = ffi.Pointer; - -final class policy_fifo_info extends ffi.Struct { - @integer_t() - external int max_priority; - - @integer_t() - external int base_priority; - - @boolean_t() - external int depressed; - - @integer_t() - external int depress_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - required int base_priority, - required int depressed, - required int depress_priority, - }) => $allocator() - ..ref.max_priority = max_priority - ..ref.base_priority = base_priority - ..ref.depressed = depressed - ..ref.depress_priority = depress_priority; -} - -typedef policy_fifo_info_data_t = policy_fifo_info; -typedef policy_fifo_info_t = ffi.Pointer; - -final class policy_fifo_limit extends ffi.Struct { - @integer_t() - external int max_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - }) => $allocator()..ref.max_priority = max_priority; -} - -typedef policy_fifo_limit_data_t = policy_fifo_limit; -typedef policy_fifo_limit_t = ffi.Pointer; -typedef policy_info_data_t = policy_infos; -typedef policy_info_t = ffi.Pointer; - -final class policy_infos extends ffi.Struct { - external policy_timeshare_info_data_t ts; - - external policy_rr_info_data_t rr; - - external policy_fifo_info_data_t fifo; -} - -typedef policy_limit_data_t = policy_limits; -typedef policy_limit_t = ffi.Pointer; - -final class policy_limits extends ffi.Struct { - external policy_timeshare_limit_data_t ts; - - external policy_rr_limit_data_t rr; - - external policy_fifo_limit_data_t fifo; -} - -final class policy_rr_base extends ffi.Struct { - @integer_t() - external int base_priority; - - @integer_t() - external int quantum; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int base_priority, - required int quantum, - }) => $allocator() - ..ref.base_priority = base_priority - ..ref.quantum = quantum; -} - -typedef policy_rr_base_data_t = policy_rr_base; -typedef policy_rr_base_t = ffi.Pointer; - -final class policy_rr_info extends ffi.Struct { - @integer_t() - external int max_priority; - - @integer_t() - external int base_priority; - - @integer_t() - external int quantum; - - @boolean_t() - external int depressed; - - @integer_t() - external int depress_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - required int base_priority, - required int quantum, - required int depressed, - required int depress_priority, - }) => $allocator() - ..ref.max_priority = max_priority - ..ref.base_priority = base_priority - ..ref.quantum = quantum - ..ref.depressed = depressed - ..ref.depress_priority = depress_priority; -} - -typedef policy_rr_info_data_t = policy_rr_info; -typedef policy_rr_info_t = ffi.Pointer; - -final class policy_rr_limit extends ffi.Struct { - @integer_t() - external int max_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - }) => $allocator()..ref.max_priority = max_priority; -} - -typedef policy_rr_limit_data_t = policy_rr_limit; -typedef policy_rr_limit_t = ffi.Pointer; -typedef policy_t = ffi.Int; -typedef Dartpolicy_t = int; - -final class policy_timeshare_base extends ffi.Struct { - @integer_t() - external int base_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int base_priority, - }) => $allocator()..ref.base_priority = base_priority; -} - -typedef policy_timeshare_base_data_t = policy_timeshare_base; -typedef policy_timeshare_base_t = ffi.Pointer; - -final class policy_timeshare_info extends ffi.Struct { - @integer_t() - external int max_priority; - - @integer_t() - external int base_priority; - - @integer_t() - external int cur_priority; - - @boolean_t() - external int depressed; - - @integer_t() - external int depress_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - required int base_priority, - required int cur_priority, - required int depressed, - required int depress_priority, - }) => $allocator() - ..ref.max_priority = max_priority - ..ref.base_priority = base_priority - ..ref.cur_priority = cur_priority - ..ref.depressed = depressed - ..ref.depress_priority = depress_priority; -} - -typedef policy_timeshare_info_data_t = policy_timeshare_info; -typedef policy_timeshare_info_t = ffi.Pointer; - -final class policy_timeshare_limit extends ffi.Struct { - @integer_t() - external int max_priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int max_priority, - }) => $allocator()..ref.max_priority = max_priority; -} - -typedef policy_timeshare_limit_data_t = policy_timeshare_limit; -typedef policy_timeshare_limit_t = ffi.Pointer; - -const int portClosedErr = -916; - -const int portInUse = -97; - -const int portNameExistsErr = -910; - -const int portNotCf = -98; - -const int portNotPwr = -96; - -const int posErr = -40; - -final class ppd_attr_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array name; - - @ffi.Array.multi([41]) - external ffi.Array spec; - - @ffi.Array.multi([81]) - external ffi.Array text; - - external ffi.Pointer value; -} - -typedef ppd_attr_t = ppd_attr_s; - -final class ppd_choice_s extends ffi.Struct { - @ffi.Char() - external int marked; - - @ffi.Array.multi([41]) - external ffi.Array choice; - - @ffi.Array.multi([81]) - external ffi.Array text; - - external ffi.Pointer code; - - external ffi.Pointer option; -} - -typedef ppd_choice_t = ppd_choice_s; - -enum ppd_conform_e { - PPD_CONFORM_RELAXED(0), - PPD_CONFORM_STRICT(1); - - final int value; - const ppd_conform_e(this.value); - - static ppd_conform_e fromValue(int value) => switch (value) { - 0 => PPD_CONFORM_RELAXED, - 1 => PPD_CONFORM_STRICT, - _ => throw ArgumentError('Unknown value for ppd_conform_e: $value'), - }; -} - -final class ppd_const_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array option1; - - @ffi.Array.multi([41]) - external ffi.Array choice1; - - @ffi.Array.multi([41]) - external ffi.Array option2; - - @ffi.Array.multi([41]) - external ffi.Array choice2; -} - -typedef ppd_const_t = ppd_const_s; - -final class ppd_coption_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array keyword; - - external ffi.Pointer option; - - @ffi.Int() - external int marked; - - external ffi.Pointer params; -} - -typedef ppd_coption_t = ppd_coption_s; - -final class ppd_cparam_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array name; - - @ffi.Array.multi([81]) - external ffi.Array text; - - @ffi.Int() - external int order; - - @ffi.Int() - external int typeAsInt; - - ppd_cptype_e get type => ppd_cptype_e.fromValue(typeAsInt); - set type(ppd_cptype_e value) => typeAsInt = value.value; - - external ppd_cplimit_t minimum; - - external ppd_cplimit_t maximum; - - external ppd_cpvalue_t current; -} - -typedef ppd_cparam_t = ppd_cparam_s; -typedef ppd_cplimit_t = ppd_cplimit_u; - -final class ppd_cplimit_u extends ffi.Union { - @ffi.Float() - external double custom_curve; - - @ffi.Int() - external int custom_int; - - @ffi.Float() - external double custom_invcurve; - - @ffi.Int() - external int custom_passcode; - - @ffi.Int() - external int custom_password; - - @ffi.Float() - external double custom_points; - - @ffi.Float() - external double custom_real; - - @ffi.Int() - external int custom_string; -} - -enum ppd_cptype_e { - PPD_CUSTOM_UNKNOWN(-1), - PPD_CUSTOM_CURVE(0), - PPD_CUSTOM_INT(1), - PPD_CUSTOM_INVCURVE(2), - PPD_CUSTOM_PASSCODE(3), - PPD_CUSTOM_PASSWORD(4), - PPD_CUSTOM_POINTS(5), - PPD_CUSTOM_REAL(6), - PPD_CUSTOM_STRING(7); - - final int value; - const ppd_cptype_e(this.value); - - static ppd_cptype_e fromValue(int value) => switch (value) { - -1 => PPD_CUSTOM_UNKNOWN, - 0 => PPD_CUSTOM_CURVE, - 1 => PPD_CUSTOM_INT, - 2 => PPD_CUSTOM_INVCURVE, - 3 => PPD_CUSTOM_PASSCODE, - 4 => PPD_CUSTOM_PASSWORD, - 5 => PPD_CUSTOM_POINTS, - 6 => PPD_CUSTOM_REAL, - 7 => PPD_CUSTOM_STRING, - _ => throw ArgumentError('Unknown value for ppd_cptype_e: $value'), - }; -} - -typedef ppd_cpvalue_t = ppd_cpvalue_u; - -final class ppd_cpvalue_u extends ffi.Union { - @ffi.Float() - external double custom_curve; - - @ffi.Int() - external int custom_int; - - @ffi.Float() - external double custom_invcurve; - - external ffi.Pointer custom_passcode; - - external ffi.Pointer custom_password; - - @ffi.Float() - external double custom_points; - - @ffi.Float() - external double custom_real; - - external ffi.Pointer custom_string; -} - -enum ppd_cs_e { - PPD_CS_CMYK(-4), - PPD_CS_CMY(-3), - PPD_CS_GRAY(1), - PPD_CS_RGB(3), - PPD_CS_RGBK(4), - PPD_CS_N(5); - - final int value; - const ppd_cs_e(this.value); - - static ppd_cs_e fromValue(int value) => switch (value) { - -4 => PPD_CS_CMYK, - -3 => PPD_CS_CMY, - 1 => PPD_CS_GRAY, - 3 => PPD_CS_RGB, - 4 => PPD_CS_RGBK, - 5 => PPD_CS_N, - _ => throw ArgumentError('Unknown value for ppd_cs_e: $value'), - }; -} - -final class ppd_emul_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array name; - - external ffi.Pointer start; - - external ffi.Pointer stop; -} - -typedef ppd_emul_t = ppd_emul_s; - -final class ppd_file_s extends ffi.Struct { - @ffi.Int() - external int language_level; - - @ffi.Int() - external int color_device; - - @ffi.Int() - external int variable_sizes; - - @ffi.Int() - external int accurate_screens; - - @ffi.Int() - external int contone_only; - - @ffi.Int() - external int landscape; - - @ffi.Int() - external int model_number; - - @ffi.Int() - external int manual_copies; - - @ffi.Int() - external int throughput; - - @ffi.Int() - external int colorspaceAsInt; - - ppd_cs_e get colorspace => ppd_cs_e.fromValue(colorspaceAsInt); - set colorspace(ppd_cs_e value) => colorspaceAsInt = value.value; - - external ffi.Pointer patches; - - @ffi.Int() - external int num_emulations; - - external ffi.Pointer emulations; - - external ffi.Pointer jcl_begin; - - external ffi.Pointer jcl_ps; - - external ffi.Pointer jcl_end; - - external ffi.Pointer lang_encoding; - - external ffi.Pointer lang_version; - - external ffi.Pointer modelname; - - external ffi.Pointer ttrasterizer; - - external ffi.Pointer manufacturer; - - external ffi.Pointer product; - - external ffi.Pointer nickname; - - external ffi.Pointer shortnickname; - - @ffi.Int() - external int num_groups; - - external ffi.Pointer groups; - - @ffi.Int() - external int num_sizes; - - external ffi.Pointer sizes; - - @ffi.Array.multi([2]) - external ffi.Array custom_min; - - @ffi.Array.multi([2]) - external ffi.Array custom_max; - - @ffi.Array.multi([4]) - external ffi.Array custom_margins; - - @ffi.Int() - external int num_consts; - - external ffi.Pointer consts; - - @ffi.Int() - external int num_fonts; - - external ffi.Pointer> fonts; - - @ffi.Int() - external int num_profiles; - - external ffi.Pointer profiles; - - @ffi.Int() - external int num_filters; - - external ffi.Pointer> filters; - - @ffi.Int() - external int flip_duplex; - - external ffi.Pointer protocols; - - external ffi.Pointer pcfilename; - - @ffi.Int() - external int num_attrs; - - @ffi.Int() - external int cur_attr; - - external ffi.Pointer> attrs; - - external ffi.Pointer sorted_attrs; - - external ffi.Pointer options; - - external ffi.Pointer coptions; - - external ffi.Pointer marked; - - external ffi.Pointer cups_uiconstraints; - - external ffi.Pointer<_ppd_cache_t> cache; -} - -typedef ppd_file_t = ppd_file_s; - -final class ppd_group_s extends ffi.Struct { - @ffi.Array.multi([40]) - external ffi.Array text; - - @ffi.Array.multi([41]) - external ffi.Array name; - - @ffi.Int() - external int num_options; - - external ffi.Pointer options; - - @ffi.Int() - external int num_subgroups; - - external ffi.Pointer subgroups; -} - -typedef ppd_group_t = ppd_group_s; - -final class ppd_option_s extends ffi.Struct { - @ffi.Char() - external int conflicted; - - @ffi.Array.multi([41]) - external ffi.Array keyword; - - @ffi.Array.multi([41]) - external ffi.Array defchoice; - - @ffi.Array.multi([81]) - external ffi.Array text; - - @ffi.UnsignedInt() - external int uiAsInt; - - ppd_ui_e get ui => ppd_ui_e.fromValue(uiAsInt); - set ui(ppd_ui_e value) => uiAsInt = value.value; - - @ffi.UnsignedInt() - external int sectionAsInt; - - ppd_section_e get section => ppd_section_e.fromValue(sectionAsInt); - set section(ppd_section_e value) => sectionAsInt = value.value; - - @ffi.Float() - external double order; - - @ffi.Int() - external int num_choices; - - external ffi.Pointer choices; -} - -typedef ppd_option_t = ppd_option_s; - -final class ppd_profile_s extends ffi.Struct { - @ffi.Array.multi([41]) - external ffi.Array resolution; - - @ffi.Array.multi([41]) - external ffi.Array media_type; - - @ffi.Float() - external double density; - - @ffi.Float() - external double gamma; - - @ffi.Array.multi([3, 3]) - external ffi.Array> matrix; -} - -typedef ppd_profile_t = ppd_profile_s; - -enum ppd_section_e { - PPD_ORDER_ANY(0), - PPD_ORDER_DOCUMENT(1), - PPD_ORDER_EXIT(2), - PPD_ORDER_JCL(3), - PPD_ORDER_PAGE(4), - PPD_ORDER_PROLOG(5); - - final int value; - const ppd_section_e(this.value); - - static ppd_section_e fromValue(int value) => switch (value) { - 0 => PPD_ORDER_ANY, - 1 => PPD_ORDER_DOCUMENT, - 2 => PPD_ORDER_EXIT, - 3 => PPD_ORDER_JCL, - 4 => PPD_ORDER_PAGE, - 5 => PPD_ORDER_PROLOG, - _ => throw ArgumentError('Unknown value for ppd_section_e: $value'), - }; -} - -final class ppd_size_s extends ffi.Struct { - @ffi.Int() - external int marked; - - @ffi.Array.multi([41]) - external ffi.Array name; - - @ffi.Float() - external double width; - - @ffi.Float() - external double length; - - @ffi.Float() - external double left; - - @ffi.Float() - external double bottom; - - @ffi.Float() - external double right; - - @ffi.Float() - external double top; -} - -typedef ppd_size_t = ppd_size_s; - -enum ppd_status_e { - PPD_OK(0), - PPD_FILE_OPEN_ERROR(1), - PPD_NULL_FILE(2), - PPD_ALLOC_ERROR(3), - PPD_MISSING_PPDADOBE4(4), - PPD_MISSING_VALUE(5), - PPD_INTERNAL_ERROR(6), - PPD_BAD_OPEN_GROUP(7), - PPD_NESTED_OPEN_GROUP(8), - PPD_BAD_OPEN_UI(9), - PPD_NESTED_OPEN_UI(10), - PPD_BAD_ORDER_DEPENDENCY(11), - PPD_BAD_UI_CONSTRAINTS(12), - PPD_MISSING_ASTERISK(13), - PPD_LINE_TOO_LONG(14), - PPD_ILLEGAL_CHARACTER(15), - PPD_ILLEGAL_MAIN_KEYWORD(16), - PPD_ILLEGAL_OPTION_KEYWORD(17), - PPD_ILLEGAL_TRANSLATION(18), - PPD_ILLEGAL_WHITESPACE(19), - PPD_BAD_CUSTOM_PARAM(20), - PPD_MISSING_OPTION_KEYWORD(21), - PPD_BAD_VALUE(22), - PPD_MISSING_CLOSE_GROUP(23), - PPD_BAD_CLOSE_UI(24), - PPD_MISSING_CLOSE_UI(25), - PPD_MAX_STATUS(26); - - final int value; - const ppd_status_e(this.value); - - static ppd_status_e fromValue(int value) => switch (value) { - 0 => PPD_OK, - 1 => PPD_FILE_OPEN_ERROR, - 2 => PPD_NULL_FILE, - 3 => PPD_ALLOC_ERROR, - 4 => PPD_MISSING_PPDADOBE4, - 5 => PPD_MISSING_VALUE, - 6 => PPD_INTERNAL_ERROR, - 7 => PPD_BAD_OPEN_GROUP, - 8 => PPD_NESTED_OPEN_GROUP, - 9 => PPD_BAD_OPEN_UI, - 10 => PPD_NESTED_OPEN_UI, - 11 => PPD_BAD_ORDER_DEPENDENCY, - 12 => PPD_BAD_UI_CONSTRAINTS, - 13 => PPD_MISSING_ASTERISK, - 14 => PPD_LINE_TOO_LONG, - 15 => PPD_ILLEGAL_CHARACTER, - 16 => PPD_ILLEGAL_MAIN_KEYWORD, - 17 => PPD_ILLEGAL_OPTION_KEYWORD, - 18 => PPD_ILLEGAL_TRANSLATION, - 19 => PPD_ILLEGAL_WHITESPACE, - 20 => PPD_BAD_CUSTOM_PARAM, - 21 => PPD_MISSING_OPTION_KEYWORD, - 22 => PPD_BAD_VALUE, - 23 => PPD_MISSING_CLOSE_GROUP, - 24 => PPD_BAD_CLOSE_UI, - 25 => PPD_MISSING_CLOSE_UI, - 26 => PPD_MAX_STATUS, - _ => throw ArgumentError('Unknown value for ppd_status_e: $value'), - }; -} - -enum ppd_ui_e { - PPD_UI_BOOLEAN(0), - PPD_UI_PICKONE(1), - PPD_UI_PICKMANY(2); - - final int value; - const ppd_ui_e(this.value); - - static ppd_ui_e fromValue(int value) => switch (value) { - 0 => PPD_UI_BOOLEAN, - 1 => PPD_UI_PICKONE, - 2 => PPD_UI_PICKMANY, - _ => throw ArgumentError('Unknown value for ppd_ui_e: $value'), - }; -} - -typedef ppnum_t = ffi.Uint32; -typedef Dartppnum_t = int; - -const int prInitErr = -88; - -const int prWrErr = -87; - -const int preferencesFolderIconResource = -3974; - -const int printMonitorFolderIconResource = -3975; - -const int printerStatusOpCodeNotSupportedErr = -25280; - -const int privateFolderIconResource = -3994; - -const int procNotFound = -600; - -final class proc_rlimit_control_wakeupmon extends ffi.Struct { - @ffi.Uint32() - external int wm_flags; - - @ffi.Int32() - external int wm_rate; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int wm_flags, - required int wm_rate, - }) => $allocator() - ..ref.wm_flags = wm_flags - ..ref.wm_rate = wm_rate; -} - -const int processStateIncorrectErr = -4991; - -typedef processor_array_t = ffi.Pointer; - -final class processor_basic_info extends ffi.Struct { - @cpu_type_t() - external int cpu_type; - - @cpu_subtype_t() - external int cpu_subtype; - - @boolean_t() - external int running; - - @ffi.Int() - external int slot_num; - - external UnnamedUnion$16 unnamed; -} - -typedef processor_basic_info_data_t = processor_basic_info; -typedef processor_basic_info_t = ffi.Pointer; - -final class processor_cpu_load_info extends ffi.Struct { - @ffi.Array.multi([4]) - external ffi.Array cpu_ticks; -} - -typedef processor_cpu_load_info_data_t = processor_cpu_load_info; -typedef processor_cpu_load_info_t = ffi.Pointer; - -final class processor_cpu_stat extends ffi.Struct { - @ffi.Uint32() - external int irq_ex_cnt; - - @ffi.Uint32() - external int ipi_cnt; - - @ffi.Uint32() - external int timer_cnt; - - @ffi.Uint32() - external int undef_ex_cnt; - - @ffi.Uint32() - external int unaligned_cnt; - - @ffi.Uint32() - external int vfp_cnt; - - @ffi.Uint32() - external int vfp_shortv_cnt; - - @ffi.Uint32() - external int data_ex_cnt; - - @ffi.Uint32() - external int instr_ex_cnt; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int irq_ex_cnt, - required int ipi_cnt, - required int timer_cnt, - required int undef_ex_cnt, - required int unaligned_cnt, - required int vfp_cnt, - required int vfp_shortv_cnt, - required int data_ex_cnt, - required int instr_ex_cnt, - }) => $allocator() - ..ref.irq_ex_cnt = irq_ex_cnt - ..ref.ipi_cnt = ipi_cnt - ..ref.timer_cnt = timer_cnt - ..ref.undef_ex_cnt = undef_ex_cnt - ..ref.unaligned_cnt = unaligned_cnt - ..ref.vfp_cnt = vfp_cnt - ..ref.vfp_shortv_cnt = vfp_shortv_cnt - ..ref.data_ex_cnt = data_ex_cnt - ..ref.instr_ex_cnt = instr_ex_cnt; -} - -@ffi.Packed(4) -final class processor_cpu_stat64 extends ffi.Struct { - @ffi.Uint64() - external int irq_ex_cnt; - - @ffi.Uint64() - external int ipi_cnt; - - @ffi.Uint64() - external int timer_cnt; - - @ffi.Uint64() - external int undef_ex_cnt; - - @ffi.Uint64() - external int unaligned_cnt; - - @ffi.Uint64() - external int vfp_cnt; - - @ffi.Uint64() - external int vfp_shortv_cnt; - - @ffi.Uint64() - external int data_ex_cnt; - - @ffi.Uint64() - external int instr_ex_cnt; - - @ffi.Uint64() - external int pmi_cnt; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int irq_ex_cnt, - required int ipi_cnt, - required int timer_cnt, - required int undef_ex_cnt, - required int unaligned_cnt, - required int vfp_cnt, - required int vfp_shortv_cnt, - required int data_ex_cnt, - required int instr_ex_cnt, - required int pmi_cnt, - }) => $allocator() - ..ref.irq_ex_cnt = irq_ex_cnt - ..ref.ipi_cnt = ipi_cnt - ..ref.timer_cnt = timer_cnt - ..ref.undef_ex_cnt = undef_ex_cnt - ..ref.unaligned_cnt = unaligned_cnt - ..ref.vfp_cnt = vfp_cnt - ..ref.vfp_shortv_cnt = vfp_shortv_cnt - ..ref.data_ex_cnt = data_ex_cnt - ..ref.instr_ex_cnt = instr_ex_cnt - ..ref.pmi_cnt = pmi_cnt; -} - -typedef processor_cpu_stat64_data_t = processor_cpu_stat64; -typedef processor_cpu_stat64_t = ffi.Pointer; -typedef processor_cpu_stat_data_t = processor_cpu_stat; -typedef processor_cpu_stat_t = ffi.Pointer; -typedef processor_flavor_t = ffi.Int; -typedef Dartprocessor_flavor_t = int; -typedef processor_info_array_t = ffi.Pointer; -typedef processor_info_t = ffi.Pointer; -typedef processor_port_array_t = processor_array_t; -typedef processor_port_t = processor_t; -typedef processor_set_array_t = ffi.Pointer; - -final class processor_set_basic_info extends ffi.Struct { - @ffi.Int() - external int processor_count; - - @ffi.Int() - external int default_policy; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int processor_count, - required int default_policy, - }) => $allocator() - ..ref.processor_count = processor_count - ..ref.default_policy = default_policy; -} - -typedef processor_set_basic_info_data_t = processor_set_basic_info; -typedef processor_set_basic_info_t = ffi.Pointer; -typedef processor_set_control_port_t = processor_set_t; -typedef processor_set_control_t = mach_port_t; -typedef processor_set_flavor_t = ffi.Int; -typedef Dartprocessor_set_flavor_t = int; -typedef processor_set_info_t = ffi.Pointer; - -final class processor_set_load_info extends ffi.Struct { - @ffi.Int() - external int task_count; - - @ffi.Int() - external int thread_count; - - @integer_t() - external int load_average; - - @integer_t() - external int mach_factor; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int task_count, - required int thread_count, - required int load_average, - required int mach_factor, - }) => $allocator() - ..ref.task_count = task_count - ..ref.thread_count = thread_count - ..ref.load_average = load_average - ..ref.mach_factor = mach_factor; -} - -typedef processor_set_load_info_data_t = processor_set_load_info; -typedef processor_set_load_info_t = ffi.Pointer; -typedef processor_set_name_array_t = ffi.Pointer; -typedef processor_set_name_port_array_t = processor_set_array_t; -typedef processor_set_name_port_t = processor_set_t; -typedef processor_set_name_t = processor_set_t; -typedef processor_set_port_t = processor_set_t; -typedef processor_set_t = mach_port_t; -typedef processor_t = mach_port_t; - -const int progressProcAborted = -2019; - -const int propertyNotSupportedByNodeErr = -30547; - -const int protocolErr = -603; - -final class protoent extends ffi.Struct { - external ffi.Pointer p_name; - - external ffi.Pointer> p_aliases; - - @ffi.Int() - external int p_proto; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer p_name, - required ffi.Pointer> p_aliases, - required int p_proto, - }) => $allocator() - ..ref.p_name = p_name - ..ref.p_aliases = p_aliases - ..ref.p_proto = p_proto; -} - -typedef pthread_attr_t = __darwin_pthread_attr_t; -typedef pthread_cond_t = __darwin_pthread_cond_t; -typedef pthread_condattr_t = __darwin_pthread_condattr_t; -typedef pthread_key_t = __darwin_pthread_key_t; -typedef pthread_mutex_t = __darwin_pthread_mutex_t; -typedef pthread_mutexattr_t = __darwin_pthread_mutexattr_t; -typedef pthread_once_t = __darwin_pthread_once_t; -typedef pthread_rwlock_t = __darwin_pthread_rwlock_t; -typedef pthread_rwlockattr_t = __darwin_pthread_rwlockattr_t; -typedef pthread_t = __darwin_pthread_t; -typedef ptrauth_extra_data_t = ffi.UnsignedLong; -typedef Dartptrauth_extra_data_t = int; -typedef ptrauth_generic_signature_t = ffi.UnsignedLong; -typedef Dartptrauth_generic_signature_t = int; - -enum ptrauth_key { - ptrauth_key_none(-1), - ptrauth_key_asia(0), - ptrauth_key_asib(1), - ptrauth_key_asda(2), - ptrauth_key_asdb(3); - - static const ptrauth_key_process_independent_code = ptrauth_key_asia; - static const ptrauth_key_process_dependent_code = ptrauth_key_asib; - static const ptrauth_key_process_independent_data = ptrauth_key_asda; - static const ptrauth_key_process_dependent_data = ptrauth_key_asdb; - static const ptrauth_key_return_address = ptrauth_key_asib; - static const ptrauth_key_function_pointer = ptrauth_key_asia; - static const ptrauth_key_frame_pointer = ptrauth_key_asdb; - static const ptrauth_key_block_function = ptrauth_key_asia; - static const ptrauth_key_cxx_vtable_pointer = ptrauth_key_asda; - static const ptrauth_key_method_list_pointer = ptrauth_key_asda; - static const ptrauth_key_objc_isa_pointer = ptrauth_key_asda; - static const ptrauth_key_objc_super_pointer = ptrauth_key_asda; - static const ptrauth_key_block_descriptor_pointer = ptrauth_key_asda; - static const ptrauth_key_objc_sel_pointer = ptrauth_key_asdb; - static const ptrauth_key_objc_class_ro_pointer = ptrauth_key_asda; - - final int value; - const ptrauth_key(this.value); - - static ptrauth_key fromValue(int value) => switch (value) { - -1 => ptrauth_key_none, - 0 => ptrauth_key_asia, - 1 => ptrauth_key_asib, - 2 => ptrauth_key_asda, - 3 => ptrauth_key_asdb, - _ => throw ArgumentError('Unknown value for ptrauth_key: $value'), - }; - - @override - String toString() { - if (this == ptrauth_key_asia) - return "ptrauth_key.ptrauth_key_asia, ptrauth_key.ptrauth_key_process_independent_code, ptrauth_key.ptrauth_key_function_pointer, ptrauth_key.ptrauth_key_block_function"; - if (this == ptrauth_key_asib) - return "ptrauth_key.ptrauth_key_asib, ptrauth_key.ptrauth_key_process_dependent_code, ptrauth_key.ptrauth_key_return_address"; - if (this == ptrauth_key_asda) - return "ptrauth_key.ptrauth_key_asda, ptrauth_key.ptrauth_key_process_independent_data, ptrauth_key.ptrauth_key_cxx_vtable_pointer, ptrauth_key.ptrauth_key_method_list_pointer, ptrauth_key.ptrauth_key_objc_isa_pointer, ptrauth_key.ptrauth_key_objc_super_pointer, ptrauth_key.ptrauth_key_block_descriptor_pointer, ptrauth_key.ptrauth_key_objc_class_ro_pointer"; - if (this == ptrauth_key_asdb) - return "ptrauth_key.ptrauth_key_asdb, ptrauth_key.ptrauth_key_process_dependent_data, ptrauth_key.ptrauth_key_frame_pointer, ptrauth_key.ptrauth_key_objc_sel_pointer"; - return super.toString(); - } -} - -typedef ptrdiff_t = ffi.Long; -typedef Dartptrdiff_t = int; - -final class pwg_map_s extends ffi.Struct { - external ffi.Pointer pwg; - - external ffi.Pointer ppd; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pwg, - required ffi.Pointer ppd, - }) => $allocator() - ..ref.pwg = pwg - ..ref.ppd = ppd; -} - -typedef pwg_map_t = pwg_map_s; - -final class pwg_media_s extends ffi.Struct { - external ffi.Pointer pwg; - - external ffi.Pointer legacy; - - external ffi.Pointer ppd; - - @ffi.Int() - external int width; - - @ffi.Int() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pwg, - required ffi.Pointer legacy, - required ffi.Pointer ppd, - required int width, - required int length, - }) => $allocator() - ..ref.pwg = pwg - ..ref.legacy = legacy - ..ref.ppd = ppd - ..ref.width = width - ..ref.length = length; -} - -typedef pwg_media_t = pwg_media_s; - -final class pwg_size_s extends ffi.Struct { - external pwg_map_t map; - - @ffi.Int() - external int width; - - @ffi.Int() - external int length; - - @ffi.Int() - external int left; - - @ffi.Int() - external int bottom; - - @ffi.Int() - external int right; - - @ffi.Int() - external int top; -} - -typedef pwg_size_t = pwg_size_s; - -const int qErr = -1; - -typedef qaddr_t = ffi.Pointer; - -const int qfcbNotCreatedErr = -2119; - -const int qfcbNotFoundErr = -2118; - -enum qos_class_t { - QOS_CLASS_USER_INTERACTIVE(33), - QOS_CLASS_USER_INITIATED(25), - QOS_CLASS_DEFAULT(21), - QOS_CLASS_UTILITY(17), - QOS_CLASS_BACKGROUND(9), - QOS_CLASS_UNSPECIFIED(0); - - final int value; - const qos_class_t(this.value); - - static qos_class_t fromValue(int value) => switch (value) { - 33 => QOS_CLASS_USER_INTERACTIVE, - 25 => QOS_CLASS_USER_INITIATED, - 21 => QOS_CLASS_DEFAULT, - 17 => QOS_CLASS_UTILITY, - 9 => QOS_CLASS_BACKGROUND, - 0 => QOS_CLASS_UNSPECIFIED, - _ => throw ArgumentError('Unknown value for qos_class_t: $value'), - }; -} - -const int qtActionNotHandledErr = -2157; - -const int qtNetworkAlreadyAllocatedErr = -2127; - -const int qtParamErr = -2202; - -const int qtXMLApplicationErr = -2159; - -const int qtXMLParseErr = -2158; - -const int qtmlDllEntryNotFoundErr = -2094; - -const int qtmlDllLoadErr = -2093; - -const int qtmlUninitialized = -2095; - -const int qtsAddressBusyErr = -5421; - -const int qtsBadDataErr = -5402; - -const int qtsBadSelectorErr = -5400; - -const int qtsBadStateErr = -5401; - -const int qtsConnectionFailedErr = -5420; - -const int qtsTimeoutErr = -5408; - -const int qtsTooMuchDataErr = -5406; - -const int qtsUnknownValueErr = -5407; - -const int qtsUnsupportedDataTypeErr = -5403; - -const int qtsUnsupportedFeatureErr = -5405; - -const int qtsUnsupportedRateErr = -5404; - -const int qtvrLibraryLoadErr = -30554; - -const int qtvrUninitialized = -30555; - -typedef quad_t = ffi.Int64; -typedef Dartquad_t = int; - -const int queueFull = -203; - -@Deprecated('Deprecated') -const int rAliasType = 1634494835; - -final class radvisory extends ffi.Struct { - @off_t() - external int ra_offset; - - @ffi.Int() - external int ra_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ra_offset, - required int ra_count, - }) => $allocator() - ..ref.ra_offset = ra_offset - ..ref.ra_count = ra_count; -} - -const int rcDBAsyncNotSupp = -809; - -const int rcDBBadAsyncPB = -810; - -const int rcDBBadDDEV = -808; - -const int rcDBBadSessID = -806; - -const int rcDBBadSessNum = -807; - -const int rcDBBadType = -803; - -const int rcDBBreak = -804; - -const int rcDBError = -802; - -const int rcDBExec = -805; - -const int rcDBNoHandler = -811; - -const int rcDBNull = -800; - -const int rcDBPackNotInited = -813; - -const int rcDBValue = -801; - -const int rcDBWrongVersion = -812; - -const int rcvrErr = -89; - -const int rdVerify = 64; - -const int rdVerifyBit = 6; - -const int rdVerifyMask = 64; - -const int readErr = -19; - -const int readQErr = -3105; - -@Deprecated('Deprecated') -const int readReference = 1; - -const int recNotFnd = -3108; - -const int recordDataTooBigErr = -20001; - -typedef reg64_t = ffi.Uint32; -typedef Dartreg64_t = int; -@Deprecated('Deprecated') -const int registerComponentAfterExisting = 4; - -@Deprecated('Deprecated') -const int registerComponentAliasesOnly = 8; - -@Deprecated('Deprecated') -const int registerComponentGlobal = 1; - -@Deprecated('Deprecated') -const int registerComponentNoDuplicates = 2; - -typedef registerSelectorType = ffi.UnsignedShort; -typedef DartregisterSelectorType = int; -typedef register_t = ffi.Int64; -typedef Dartregister_t = int; -typedef relop = ffi.Short; -typedef Dartrelop = int; - -const int reqAborted = -1105; - -const int reqFailed = -1096; - -const int requiredFlagsDontMatch = -4001; - -const int res1Field = 11; - -const int res2Field = 12; - -const int res3Field = 13; - -const int resAttrErr = -198; - -@Deprecated('Deprecated') -const int resChanged = 2; - -@Deprecated('Deprecated') -const int resChangedBit = 1; - -const int resFNotFound = -193; - -@Deprecated('Deprecated') -const int resLocked = 16; - -@Deprecated('Deprecated') -const int resLockedBit = 4; - -const int resNotFound = -192; - -@Deprecated('Deprecated') -const int resPreload = 4; - -@Deprecated('Deprecated') -const int resPreloadBit = 2; - -const int resProblem = -204; - -@Deprecated('Deprecated') -const int resProtected = 8; - -@Deprecated('Deprecated') -const int resProtectedBit = 3; - -@Deprecated('Deprecated') -const int resPurgeable = 32; - -@Deprecated('Deprecated') -const int resPurgeableBit = 5; - -@Deprecated('Deprecated') -const int resSysHeap = 64; - -@Deprecated('Deprecated') -const int resSysHeapBit = 6; - -@Deprecated('Deprecated') -const int resSysRefBit = 7; - -const int resourceInMemory = -188; - -const int retryComponentRegistrationErr = -3005; - -const int rfNumErr = -51; - -const int rgnOverflowErr = -147; - -const int rgnTooBigErr = -500; - -const int rgnTooBigError = -147; - -@Deprecated('Deprecated') -const int rightSingGuillemet = 221; - -@Deprecated('Deprecated') -const int ringMark = 251; - -typedef rlim_t = __uint64_t; - -final class rlimit extends ffi.Struct { - @rlim_t() - external int rlim_cur; - - @rlim_t() - external int rlim_max; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int rlim_cur, - required int rlim_max, - }) => $allocator() - ..ref.rlim_cur = rlim_cur - ..ref.rlim_max = rlim_max; -} - -const int rmvRefFailed = -197; - -const int rmvResFailed = -196; - -@Deprecated('Deprecated') -const int romanAppFond = 3; - -@Deprecated('Deprecated') -const int romanFlags = 7; - -@Deprecated('Deprecated') -const int romanSysFond = 16383; - -typedef routine_arg_descriptor = mach_msg_type_descriptor_t; -typedef routine_arg_descriptor_t = ffi.Pointer; -typedef routine_arg_offset = ffi.UnsignedInt; -typedef Dartroutine_arg_offset = int; -typedef routine_arg_size = ffi.UnsignedInt; -typedef Dartroutine_arg_size = int; -typedef routine_arg_type = ffi.UnsignedInt; -typedef Dartroutine_arg_type = int; - -final class routine_descriptor extends ffi.Struct { - external mig_impl_routine_t impl_routine; - - external mig_stub_routine_t stub_routine; - - @ffi.UnsignedInt() - external int argc; - - @ffi.UnsignedInt() - external int descr_count; - - external routine_arg_descriptor_t arg_descr; - - @ffi.UnsignedInt() - external int max_reply_msg; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required mig_impl_routine_t impl_routine, - required mig_stub_routine_t stub_routine, - required int argc, - required int descr_count, - required routine_arg_descriptor_t arg_descr, - required int max_reply_msg, - }) => $allocator() - ..ref.impl_routine = impl_routine - ..ref.stub_routine = stub_routine - ..ref.argc = argc - ..ref.descr_count = descr_count - ..ref.arg_descr = arg_descr - ..ref.max_reply_msg = max_reply_msg; -} - -typedef routine_descriptor_t = ffi.Pointer; - -const int routingNotFoundErr = -4275; - -final class rpc_routine_arg_descriptor extends ffi.Struct { - @routine_arg_type() - external int type; - - @routine_arg_size() - external int size; - - @routine_arg_size() - external int count; - - @routine_arg_offset() - external int offset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int type, - required int size, - required int count, - required int offset, - }) => $allocator() - ..ref.type = type - ..ref.size = size - ..ref.count = count - ..ref.offset = offset; -} - -typedef rpc_routine_arg_descriptor_t = ffi.Pointer; - -final class rpc_routine_descriptor extends ffi.Struct { - external mig_impl_routine_t impl_routine; - - external mig_stub_routine_t stub_routine; - - @ffi.UnsignedInt() - external int argc; - - @ffi.UnsignedInt() - external int descr_count; - - external rpc_routine_arg_descriptor_t arg_descr; - - @ffi.UnsignedInt() - external int max_reply_msg; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required mig_impl_routine_t impl_routine, - required mig_stub_routine_t stub_routine, - required int argc, - required int descr_count, - required rpc_routine_arg_descriptor_t arg_descr, - required int max_reply_msg, - }) => $allocator() - ..ref.impl_routine = impl_routine - ..ref.stub_routine = stub_routine - ..ref.argc = argc - ..ref.descr_count = descr_count - ..ref.arg_descr = arg_descr - ..ref.max_reply_msg = max_reply_msg; -} - -typedef rpc_routine_descriptor_t = ffi.Pointer; - -final class rpc_signature extends ffi.Struct { - external rpc_routine_descriptor rd; - - @ffi.Array.multi([1]) - external ffi.Array rad; -} - -final class rpc_subsystem extends ffi.Struct { - external ffi.Pointer reserved; - - @mach_msg_id_t() - external int start; - - @mach_msg_id_t() - external int end; - - @ffi.UnsignedInt() - external int maxsize; - - @vm_address_t() - external int base_addr; - - @ffi.Array.multi([1]) - external ffi.Array routine; - - @ffi.Array.multi([1]) - external ffi.Array arg_descriptor; -} - -typedef rpc_subsystem_t = ffi.Pointer; - -final class rpcent extends ffi.Struct { - external ffi.Pointer r_name; - - external ffi.Pointer> r_aliases; - - @ffi.Int() - external int r_number; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer r_name, - required ffi.Pointer> r_aliases, - required int r_number, - }) => $allocator() - ..ref.r_name = r_name - ..ref.r_aliases = r_aliases - ..ref.r_number = r_number; -} - -typedef rsize_t = __darwin_size_t; -typedef rune_t = __darwin_rune_t; - -final class rusage extends ffi.Struct { - external timeval ru_utime; - - external timeval ru_stime; - - @ffi.Long() - external int ru_maxrss; - - @ffi.Long() - external int ru_ixrss; - - @ffi.Long() - external int ru_idrss; - - @ffi.Long() - external int ru_isrss; - - @ffi.Long() - external int ru_minflt; - - @ffi.Long() - external int ru_majflt; - - @ffi.Long() - external int ru_nswap; - - @ffi.Long() - external int ru_inblock; - - @ffi.Long() - external int ru_oublock; - - @ffi.Long() - external int ru_msgsnd; - - @ffi.Long() - external int ru_msgrcv; - - @ffi.Long() - external int ru_nsignals; - - @ffi.Long() - external int ru_nvcsw; - - @ffi.Long() - external int ru_nivcsw; -} - -typedef rusage_info_current = rusage_info_v6; -typedef rusage_info_t = ffi.Pointer; - -final class rusage_info_v0 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; -} - -final class rusage_info_v1 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; -} - -final class rusage_info_v2 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; - - @ffi.Uint64() - external int ri_diskio_bytesread; - - @ffi.Uint64() - external int ri_diskio_byteswritten; -} - -final class rusage_info_v3 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; - - @ffi.Uint64() - external int ri_diskio_bytesread; - - @ffi.Uint64() - external int ri_diskio_byteswritten; - - @ffi.Uint64() - external int ri_cpu_time_qos_default; - - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; - - @ffi.Uint64() - external int ri_cpu_time_qos_background; - - @ffi.Uint64() - external int ri_cpu_time_qos_utility; - - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; - - @ffi.Uint64() - external int ri_billed_system_time; - - @ffi.Uint64() - external int ri_serviced_system_time; -} - -final class rusage_info_v4 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; - - @ffi.Uint64() - external int ri_diskio_bytesread; - - @ffi.Uint64() - external int ri_diskio_byteswritten; - - @ffi.Uint64() - external int ri_cpu_time_qos_default; - - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; - - @ffi.Uint64() - external int ri_cpu_time_qos_background; - - @ffi.Uint64() - external int ri_cpu_time_qos_utility; - - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; - - @ffi.Uint64() - external int ri_billed_system_time; - - @ffi.Uint64() - external int ri_serviced_system_time; - - @ffi.Uint64() - external int ri_logical_writes; - - @ffi.Uint64() - external int ri_lifetime_max_phys_footprint; - - @ffi.Uint64() - external int ri_instructions; - - @ffi.Uint64() - external int ri_cycles; - - @ffi.Uint64() - external int ri_billed_energy; - - @ffi.Uint64() - external int ri_serviced_energy; - - @ffi.Uint64() - external int ri_interval_max_phys_footprint; - - @ffi.Uint64() - external int ri_runnable_time; -} - -final class rusage_info_v5 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; - - @ffi.Uint64() - external int ri_diskio_bytesread; - - @ffi.Uint64() - external int ri_diskio_byteswritten; - - @ffi.Uint64() - external int ri_cpu_time_qos_default; - - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; - - @ffi.Uint64() - external int ri_cpu_time_qos_background; - - @ffi.Uint64() - external int ri_cpu_time_qos_utility; - - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; - - @ffi.Uint64() - external int ri_billed_system_time; - - @ffi.Uint64() - external int ri_serviced_system_time; - - @ffi.Uint64() - external int ri_logical_writes; - - @ffi.Uint64() - external int ri_lifetime_max_phys_footprint; - - @ffi.Uint64() - external int ri_instructions; - - @ffi.Uint64() - external int ri_cycles; - - @ffi.Uint64() - external int ri_billed_energy; - - @ffi.Uint64() - external int ri_serviced_energy; - - @ffi.Uint64() - external int ri_interval_max_phys_footprint; - - @ffi.Uint64() - external int ri_runnable_time; - - @ffi.Uint64() - external int ri_flags; -} - -final class rusage_info_v6 extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array ri_uuid; - - @ffi.Uint64() - external int ri_user_time; - - @ffi.Uint64() - external int ri_system_time; - - @ffi.Uint64() - external int ri_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_interrupt_wkups; - - @ffi.Uint64() - external int ri_pageins; - - @ffi.Uint64() - external int ri_wired_size; - - @ffi.Uint64() - external int ri_resident_size; - - @ffi.Uint64() - external int ri_phys_footprint; - - @ffi.Uint64() - external int ri_proc_start_abstime; - - @ffi.Uint64() - external int ri_proc_exit_abstime; - - @ffi.Uint64() - external int ri_child_user_time; - - @ffi.Uint64() - external int ri_child_system_time; - - @ffi.Uint64() - external int ri_child_pkg_idle_wkups; - - @ffi.Uint64() - external int ri_child_interrupt_wkups; - - @ffi.Uint64() - external int ri_child_pageins; - - @ffi.Uint64() - external int ri_child_elapsed_abstime; - - @ffi.Uint64() - external int ri_diskio_bytesread; - - @ffi.Uint64() - external int ri_diskio_byteswritten; - - @ffi.Uint64() - external int ri_cpu_time_qos_default; - - @ffi.Uint64() - external int ri_cpu_time_qos_maintenance; - - @ffi.Uint64() - external int ri_cpu_time_qos_background; - - @ffi.Uint64() - external int ri_cpu_time_qos_utility; - - @ffi.Uint64() - external int ri_cpu_time_qos_legacy; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_initiated; - - @ffi.Uint64() - external int ri_cpu_time_qos_user_interactive; - - @ffi.Uint64() - external int ri_billed_system_time; - - @ffi.Uint64() - external int ri_serviced_system_time; - - @ffi.Uint64() - external int ri_logical_writes; - - @ffi.Uint64() - external int ri_lifetime_max_phys_footprint; - - @ffi.Uint64() - external int ri_instructions; - - @ffi.Uint64() - external int ri_cycles; - - @ffi.Uint64() - external int ri_billed_energy; - - @ffi.Uint64() - external int ri_serviced_energy; - - @ffi.Uint64() - external int ri_interval_max_phys_footprint; - - @ffi.Uint64() - external int ri_runnable_time; - - @ffi.Uint64() - external int ri_flags; - - @ffi.Uint64() - external int ri_user_ptime; - - @ffi.Uint64() - external int ri_system_ptime; - - @ffi.Uint64() - external int ri_pinstructions; - - @ffi.Uint64() - external int ri_pcycles; - - @ffi.Uint64() - external int ri_energy_nj; - - @ffi.Uint64() - external int ri_penergy_nj; - - @ffi.Uint64() - external int ri_secure_time_in_system; - - @ffi.Uint64() - external int ri_secure_ptime_in_system; - - @ffi.Uint64() - external int ri_neural_footprint; - - @ffi.Uint64() - external int ri_lifetime_max_neural_footprint; - - @ffi.Uint64() - external int ri_interval_max_neural_footprint; - - @ffi.Array.multi([9]) - external ffi.Array ri_reserved; -} - -@Deprecated('Deprecated') -const int sIQType = 6; - -final class sa_endpoints extends ffi.Struct { - @ffi.UnsignedInt() - external int sae_srcif; - - external ffi.Pointer sae_srcaddr; - - @socklen_t() - external int sae_srcaddrlen; - - external ffi.Pointer sae_dstaddr; - - @socklen_t() - external int sae_dstaddrlen; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sae_srcif, - required ffi.Pointer sae_srcaddr, - required int sae_srcaddrlen, - required ffi.Pointer sae_dstaddr, - required int sae_dstaddrlen, - }) => $allocator() - ..ref.sae_srcif = sae_srcif - ..ref.sae_srcaddr = sae_srcaddr - ..ref.sae_srcaddrlen = sae_srcaddrlen - ..ref.sae_dstaddr = sae_dstaddr - ..ref.sae_dstaddrlen = sae_dstaddrlen; -} - -typedef sa_endpoints_t = sa_endpoints; -typedef sa_family_t = __uint8_t; -typedef sae_associd_t = __uint32_t; -typedef sae_connid_t = __uint32_t; - -const int sameFileErr = -1306; - -const int samplesAlreadyInMediaErr = -2059; - -const int scTypeNotFoundErr = -8971; - -const int scrapFlavorFlagsMismatchErr = -4995; - -const int scrapFlavorNotFoundErr = -102; - -const int scrapFlavorSizeMismatchErr = -4996; - -const int scrapPromiseNotKeptErr = -4992; - -const int scriptCurLang = -6; - -const int scriptDefLang = -7; - -const int sdmInitErr = 11; - -const int sdmJTInitErr = 10; - -const int sdmPRAMInitErr = 13; - -const int sdmPriInitErr = 14; - -const int sdmSRTInitErr = 12; - -const int seNoDB = -8; - -final class searchstate extends ffi.Opaque {} - -const int secLeadingZ = 32; - -typedef sec_certificate_t = ffi.Pointer; -typedef Dartsec_certificate_t = objc.NSObject; -typedef sec_identity_t = ffi.Pointer; -typedef Dartsec_identity_t = objc.NSObject; -typedef sec_object_t = ffi.Pointer; -typedef Dartsec_object_t = objc.NSObject; -typedef sec_protocol_challenge_complete_t = ffi.Pointer; -typedef Dartsec_protocol_challenge_complete_t = - objc.ObjCBlock; -typedef sec_protocol_challenge_t = ffi.Pointer; -typedef Dartsec_protocol_challenge_t = - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.ObjCBlock, - ) - >; -typedef sec_protocol_key_update_complete_t = ffi.Pointer; -typedef Dartsec_protocol_key_update_complete_t = - objc.ObjCBlock; -typedef sec_protocol_key_update_t = ffi.Pointer; -typedef Dartsec_protocol_key_update_t = - objc.ObjCBlock< - ffi.Void Function(objc.NSObject, objc.ObjCBlock) - >; -typedef sec_protocol_metadata_t = ffi.Pointer; -typedef Dartsec_protocol_metadata_t = objc.NSObject; -typedef sec_protocol_options_t = ffi.Pointer; -typedef Dartsec_protocol_options_t = objc.NSObject; -typedef sec_protocol_pre_shared_key_selection_complete_t = - ffi.Pointer; -typedef Dartsec_protocol_pre_shared_key_selection_complete_t = - objc.ObjCBlock; -typedef sec_protocol_pre_shared_key_selection_t = - ffi.Pointer; -typedef Dartsec_protocol_pre_shared_key_selection_t = - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject?, - objc.ObjCBlock, - ) - >; -typedef sec_protocol_verify_complete_t = ffi.Pointer; -typedef Dartsec_protocol_verify_complete_t = - objc.ObjCBlock; -typedef sec_protocol_verify_t = ffi.Pointer; -typedef Dartsec_protocol_verify_t = - objc.ObjCBlock< - ffi.Void Function( - objc.NSObject, - objc.NSObject, - objc.ObjCBlock, - ) - >; -typedef sec_trust_t = ffi.Pointer; -typedef Dartsec_trust_t = objc.NSObject; - -const int secondField = 6; - -const int secondMask = 64; - -const int sectNFErr = -81; - -final class security_token_t extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array val; -} - -const int seekErr = -80; - -typedef segsz_t = ffi.Int32; -typedef Dartsegsz_t = int; - -const int selectorNotSupportedByNodeErr = -30543; - -typedef semaphore_port_t = semaphore_t; -typedef semaphore_t = mach_port_t; - -const int sepNotConsistent = 64; - -const int sepNotIntlSep = 4; - -const int seqGrabInfoNotAvailable = -9407; - -final class servent extends ffi.Struct { - external ffi.Pointer s_name; - - external ffi.Pointer> s_aliases; - - @ffi.Int() - external int s_port; - - external ffi.Pointer s_proto; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer s_name, - required ffi.Pointer> s_aliases, - required int s_port, - required ffi.Pointer s_proto, - }) => $allocator() - ..ref.s_name = s_name - ..ref.s_aliases = s_aliases - ..ref.s_port = s_port - ..ref.s_proto = s_proto; -} - -const int sessClosedErr = -917; - -const int sessTableErr = -907; - -const int settingNotSupportedByNodeErr = -30548; - -final class sf_hdtr extends ffi.Struct { - external ffi.Pointer headers; - - @ffi.Int() - external int hdr_cnt; - - external ffi.Pointer trailers; - - @ffi.Int() - external int trl_cnt; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer headers, - required int hdr_cnt, - required ffi.Pointer trailers, - required int trl_cnt, - }) => $allocator() - ..ref.headers = headers - ..ref.hdr_cnt = hdr_cnt - ..ref.trailers = trailers - ..ref.trl_cnt = trl_cnt; -} - -@ffi.Packed(2) -final class sfntCMapEncoding extends ffi.Struct { - @UInt16() - external int platformID; - - @UInt16() - external int scriptID; - - @UInt32() - external int offset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int platformID, - required int scriptID, - required int offset, - }) => $allocator() - ..ref.platformID = platformID - ..ref.scriptID = scriptID - ..ref.offset = offset; -} - -@ffi.Packed(2) -final class sfntCMapExtendedSubHeader extends ffi.Struct { - @UInt16() - external int format; - - @UInt16() - external int reserved; - - @UInt32() - external int length; - - @UInt32() - external int language; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int format, - required int reserved, - required int length, - required int language, - }) => $allocator() - ..ref.format = format - ..ref.reserved = reserved - ..ref.length = length - ..ref.language = language; -} - -final class sfntCMapHeader extends ffi.Struct { - @UInt16() - external int version; - - @UInt16() - external int numTables; - - @ffi.Array.multi([1]) - external ffi.Array encoding; -} - -final class sfntCMapSubHeader extends ffi.Struct { - @UInt16() - external int format; - - @UInt16() - external int length; - - @UInt16() - external int languageID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int format, - required int length, - required int languageID, - }) => $allocator() - ..ref.format = format - ..ref.length = length - ..ref.languageID = languageID; -} - -@ffi.Packed(2) -final class sfntDescriptorHeader extends ffi.Struct { - @Fixed() - external int version; - - @SInt32() - external int descriptorCount; - - @ffi.Array.multi([1]) - external ffi.Array descriptor; -} - -@ffi.Packed(2) -final class sfntDirectory extends ffi.Struct { - @FourCharCode() - external int format; - - @UInt16() - external int numOffsets; - - @UInt16() - external int searchRange; - - @UInt16() - external int entrySelector; - - @UInt16() - external int rangeShift; - - @ffi.Array.multi([1]) - external ffi.Array table; -} - -@ffi.Packed(2) -final class sfntDirectoryEntry extends ffi.Struct { - @FourCharCode() - external int tableTag; - - @UInt32() - external int checkSum; - - @UInt32() - external int offset; - - @UInt32() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tableTag, - required int checkSum, - required int offset, - required int length, - }) => $allocator() - ..ref.tableTag = tableTag - ..ref.checkSum = checkSum - ..ref.offset = offset - ..ref.length = length; -} - -@ffi.Packed(2) -final class sfntFeatureHeader extends ffi.Struct { - @SInt32() - external int version; - - @UInt16() - external int featureNameCount; - - @UInt16() - external int featureSetCount; - - @SInt32() - external int reserved; - - @ffi.Array.multi([1]) - external ffi.Array names; - - @ffi.Array.multi([1]) - external ffi.Array settings; - - @ffi.Array.multi([1]) - external ffi.Array runs; -} - -@ffi.Packed(2) -final class sfntFeatureName extends ffi.Struct { - @UInt16() - external int featureType; - - @UInt16() - external int settingCount; - - @SInt32() - external int offsetToSettings; - - @UInt16() - external int featureFlags; - - @SInt16() - external int nameID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int featureType, - required int settingCount, - required int offsetToSettings, - required int featureFlags, - required int nameID, - }) => $allocator() - ..ref.featureType = featureType - ..ref.settingCount = settingCount - ..ref.offsetToSettings = offsetToSettings - ..ref.featureFlags = featureFlags - ..ref.nameID = nameID; -} - -@ffi.Packed(2) -final class sfntFontDescriptor extends ffi.Struct { - @FourCharCode() - external int name; - - @Fixed() - external int value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int name, - required int value, - }) => $allocator() - ..ref.name = name - ..ref.value = value; -} - -final class sfntFontFeatureSetting extends ffi.Struct { - @UInt16() - external int setting; - - @SInt16() - external int nameID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int setting, - required int nameID, - }) => $allocator() - ..ref.setting = setting - ..ref.nameID = nameID; -} - -final class sfntFontRunFeature extends ffi.Struct { - @UInt16() - external int featureType; - - @UInt16() - external int setting; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int featureType, - required int setting, - }) => $allocator() - ..ref.featureType = featureType - ..ref.setting = setting; -} - -@ffi.Packed(2) -final class sfntInstance extends ffi.Struct { - @SInt16() - external int nameID; - - @SInt16() - external int flags; - - @ffi.Array.multi([1]) - external ffi.Array coord; -} - -final class sfntNameHeader extends ffi.Struct { - @UInt16() - external int format; - - @UInt16() - external int count; - - @UInt16() - external int stringOffset; - - @ffi.Array.multi([1]) - external ffi.Array rec; -} - -final class sfntNameRecord extends ffi.Struct { - @UInt16() - external int platformID; - - @UInt16() - external int scriptID; - - @UInt16() - external int languageID; - - @UInt16() - external int nameID; - - @UInt16() - external int length; - - @UInt16() - external int offset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int platformID, - required int scriptID, - required int languageID, - required int nameID, - required int length, - required int offset, - }) => $allocator() - ..ref.platformID = platformID - ..ref.scriptID = scriptID - ..ref.languageID = languageID - ..ref.nameID = nameID - ..ref.length = length - ..ref.offset = offset; -} - -@ffi.Packed(2) -final class sfntVariationAxis extends ffi.Struct { - @FourCharCode() - external int axisTag; - - @Fixed() - external int minValue; - - @Fixed() - external int defaultValue; - - @Fixed() - external int maxValue; - - @SInt16() - external int flags; - - @SInt16() - external int nameID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int axisTag, - required int minValue, - required int defaultValue, - required int maxValue, - required int flags, - required int nameID, - }) => $allocator() - ..ref.axisTag = axisTag - ..ref.minValue = minValue - ..ref.defaultValue = defaultValue - ..ref.maxValue = maxValue - ..ref.flags = flags - ..ref.nameID = nameID; -} - -@ffi.Packed(2) -final class sfntVariationHeader extends ffi.Struct { - @Fixed() - external int version; - - @UInt16() - external int offsetToData; - - @UInt16() - external int countSizePairs; - - @UInt16() - external int axisCount; - - @UInt16() - external int axisSize; - - @UInt16() - external int instanceCount; - - @UInt16() - external int instanceSize; - - @ffi.Array.multi([1]) - external ffi.Array axis; - - @ffi.Array.multi([1]) - external ffi.Array instance; -} - -const int shadow = 16; - -const int sharedFolderIconResource = -3978; - -const int shortDate = 0; - -const int shutDownAlert = 42; - -const int siBadDeviceName = -228; - -const int siBadRefNum = -229; - -const int siBadSoundInDevice = -221; - -const int siDeviceBusyErr = -227; - -const int siHardDriveTooSlow = -224; - -const int siInitSDTblErr = 1; - -const int siInitSPTblErr = 3; - -const int siInitVBLQsErr = 2; - -const int siInputDeviceErr = -230; - -const int siInvalidCompression = -223; - -const int siInvalidSampleRate = -225; - -const int siInvalidSampleSize = -226; - -const int siNoBufferSpecified = -222; - -const int siNoSoundInHardware = -220; - -const int siUnknownInfoType = -231; - -const int siUnknownQuality = -232; - -const int siVBRCompressionNotSupported = -213; - -typedef sig_atomic_t = ffi.Int; -typedef Dartsig_atomic_t = int; -typedef sig_t = ffi.Pointer>; - -final class sigaction$1 extends ffi.Struct { - external __sigaction_u __sigaction_u$1; - - @sigset_t() - external int sa_mask; - - @ffi.Int() - external int sa_flags; -} - -final class sigevent extends ffi.Struct { - @ffi.Int() - external int sigev_notify; - - @ffi.Int() - external int sigev_signo; - - external sigval sigev_value; - - external ffi.Pointer> - sigev_notify_function; - - external ffi.Pointer sigev_notify_attributes; -} - -typedef siginfo_t = __siginfo; -typedef sigset_t = __darwin_sigset_t; - -final class sigstack extends ffi.Struct { - external ffi.Pointer ss_sp; - - @ffi.Int() - external int ss_onstack; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer ss_sp, - required int ss_onstack, - }) => $allocator() - ..ref.ss_sp = ss_sp - ..ref.ss_onstack = ss_onstack; -} - -final class sigval extends ffi.Union { - @ffi.Int() - external int sival_int; - - external ffi.Pointer sival_ptr; -} - -final class sigvec$1 extends ffi.Struct { - external ffi.Pointer> - sv_handler; - - @ffi.Int() - external int sv_mask; - - @ffi.Int() - external int sv_flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer> - sv_handler, - required int sv_mask, - required int sv_flags, - }) => $allocator() - ..ref.sv_handler = sv_handler - ..ref.sv_mask = sv_mask - ..ref.sv_flags = sv_flags; -} - -typedef sint16 = ffi.Int16; -typedef Dartsint16 = int; -typedef sint32 = ffi.Int32; -typedef Dartsint32 = int; -typedef sint64 = ffi.Int64; -typedef Dartsint64 = int; -typedef sint8 = ffi.Int8; -typedef Dartsint8 = int; - -const int sizeof_sfntCMapEncoding = 8; - -const int sizeof_sfntCMapExtendedSubHeader = 12; - -const int sizeof_sfntCMapHeader = 4; - -const int sizeof_sfntCMapSubHeader = 6; - -const int sizeof_sfntDescriptorHeader = 8; - -const int sizeof_sfntDirectory = 12; - -const int sizeof_sfntInstance = 4; - -const int sizeof_sfntNameHeader = 6; - -const int sizeof_sfntNameRecord = 12; - -const int sizeof_sfntVariationAxis = 20; - -const int sizeof_sfntVariationHeader = 16; - -const int sktClosedErr = -3109; - -const int sleepQType = 16; - -typedef sleep_type_t = ffi.Int; -typedef Dartsleep_type_t = int; - -const int slotNumErr = -360; - -const int slpQType = 16; - -@Deprecated('Deprecated') -const int smAllScripts = -3; - -@Deprecated('Deprecated') -const int smAmharic = 28; - -@Deprecated('Deprecated') -const int smArabic = 4; - -@Deprecated('Deprecated') -const int smArmenian = 24; - -const int smBLFieldBad = -309; - -const int smBadBoardId = -319; - -const int smBadRefId = -330; - -@Deprecated('Deprecated') -const int smBadScript = -2; - -@Deprecated('Deprecated') -const int smBadVerb = -1; - -const int smBadsList = -331; - -const int smBadsPtrErr = -346; - -@Deprecated('Deprecated') -const int smBengali = 13; - -const int smBlkMoveErr = -340; - -@Deprecated('Deprecated') -const int smBurmese = 19; - -const int smBusErrTO = -320; - -const int smByteLanesErr = -347; - -const int smCPUErr = -334; - -const int smCRCFail = -301; - -@Deprecated('Deprecated') -const int smCentralEuroRoman = 29; - -@Deprecated('Deprecated') -const int smChar1byte = 0; - -@Deprecated('Deprecated') -const int smChar2byte = 32768; - -@Deprecated('Deprecated') -const int smCharAscii = 1; - -@Deprecated('Deprecated') -const int smCharBidirect = 8; - -@Deprecated('Deprecated') -const int smCharBopomofo = 14; - -@Deprecated('Deprecated') -const int smCharContextualLR = 9; - -@Deprecated('Deprecated') -const int smCharEuro = 7; - -@Deprecated('Deprecated') -const int smCharExtAscii = 7; - -@Deprecated('Deprecated') -const int smCharFISGana = 3; - -@Deprecated('Deprecated') -const int smCharFISGreek = 5; - -@Deprecated('Deprecated') -const int smCharFISIdeo = 4; - -@Deprecated('Deprecated') -const int smCharFISKana = 2; - -@Deprecated('Deprecated') -const int smCharFISRussian = 6; - -@Deprecated('Deprecated') -const int smCharGanaKana = 15; - -@Deprecated('Deprecated') -const int smCharHangul = 12; - -@Deprecated('Deprecated') -const int smCharHiragana = 3; - -@Deprecated('Deprecated') -const int smCharHorizontal = 0; - -@Deprecated('Deprecated') -const int smCharIdeographic = 4; - -@Deprecated('Deprecated') -const int smCharJamo = 13; - -@Deprecated('Deprecated') -const int smCharKatakana = 2; - -@Deprecated('Deprecated') -const int smCharLeft = 0; - -@Deprecated('Deprecated') -const int smCharLower = 0; - -@Deprecated('Deprecated') -const int smCharNonContextualLR = 10; - -@Deprecated('Deprecated') -const int smCharPunct = 0; - -@Deprecated('Deprecated') -const int smCharRight = 8192; - -@Deprecated('Deprecated') -const int smCharTwoByteGreek = 5; - -@Deprecated('Deprecated') -const int smCharTwoByteRussian = 6; - -@Deprecated('Deprecated') -const int smCharUpper = 16384; - -@Deprecated('Deprecated') -const int smCharVertical = 4096; - -@Deprecated('Deprecated') -const int smChinese = 2; - -const int smCkStatusErr = -341; - -const int smCodeRevErr = -333; - -@Deprecated('Deprecated') -const int smCurrentScript = -2; - -@Deprecated('Deprecated') -const int smCyrillic = 7; - -@Deprecated('Deprecated') -const int smDevanagari = 9; - -const int smDisDrvrNamErr = -343; - -const int smDisabledSlot = -305; - -const int smDisposePErr = -312; - -@Deprecated('Deprecated') -const int smEastEurRoman = 29; - -const int smEmptySlot = -300; - -@Deprecated('Deprecated') -const int smEthiopic = 28; - -@Deprecated('Deprecated') -const int smExtArabic = 31; - -const int smFHBlkDispErr = -311; - -const int smFHBlockRdErr = -310; - -@Deprecated('Deprecated') -const int smFISClassLvl1 = 0; - -@Deprecated('Deprecated') -const int smFISClassLvl2 = 256; - -@Deprecated('Deprecated') -const int smFISClassUser = 512; - -@Deprecated('Deprecated') -const int smFirstByte = -1; - -@Deprecated('Deprecated') -const int smFondEnd = 49152; - -@Deprecated('Deprecated') -const int smFondStart = 16384; - -const int smFormatErr = -302; - -@Deprecated('Deprecated') -const int smGeez = 28; - -@Deprecated('Deprecated') -const int smGeorgian = 23; - -const int smGetDrvrNamErr = -342; - -const int smGetPRErr = -314; - -@Deprecated('Deprecated') -const int smGreek = 6; - -@Deprecated('Deprecated') -const int smGujarati = 11; - -@Deprecated('Deprecated') -const int smGurmukhi = 10; - -@Deprecated('Deprecated') -const int smHebrew = 5; - -@Deprecated('Deprecated') -const int smIdeographicLevel1 = 0; - -@Deprecated('Deprecated') -const int smIdeographicLevel2 = 256; - -@Deprecated('Deprecated') -const int smIdeographicUser = 512; - -const int smInitStatVErr = -316; - -const int smInitTblVErr = -317; - -@Deprecated('Deprecated') -const int smJamoBogJaeum = 256; - -@Deprecated('Deprecated') -const int smJamoBogMoeum = 768; - -@Deprecated('Deprecated') -const int smJamoJaeum = 0; - -@Deprecated('Deprecated') -const int smJamoMoeum = 512; - -@Deprecated('Deprecated') -const int smJapanese = 1; - -@Deprecated('Deprecated') -const int smKCHRCache = 38; - -@Deprecated('Deprecated') -const int smKanaHardOK = 512; - -@Deprecated('Deprecated') -const int smKanaSmall = 256; - -@Deprecated('Deprecated') -const int smKanaSoftOK = 768; - -@Deprecated('Deprecated') -const int smKannada = 16; - -@Deprecated('Deprecated') -const int smKeyDisableKybdSwitch = -12; - -@Deprecated('Deprecated') -const int smKeyDisableKybds = -6; - -@Deprecated('Deprecated') -const int smKeyEnableKybds = -7; - -@Deprecated('Deprecated') -const int smKeyForceKeyScriptBit = 7; - -@Deprecated('Deprecated') -const int smKeyForceKeyScriptMask = 128; - -@Deprecated('Deprecated') -const int smKeyNextInputMethod = -10; - -@Deprecated('Deprecated') -const int smKeyNextKybd = -4; - -@Deprecated('Deprecated') -const int smKeyNextScript = -1; - -@Deprecated('Deprecated') -const int smKeyRoman = -17; - -@Deprecated('Deprecated') -const int smKeyScript = 22; - -@Deprecated('Deprecated') -const int smKeySetDirLeftRight = -15; - -@Deprecated('Deprecated') -const int smKeySetDirRightLeft = -16; - -@Deprecated('Deprecated') -const int smKeySwapInputMethod = -11; - -@Deprecated('Deprecated') -const int smKeySwapKybd = -5; - -@Deprecated('Deprecated') -const int smKeySwapScript = -3; - -@Deprecated('Deprecated') -const int smKeySysScript = -2; - -@Deprecated('Deprecated') -const int smKeyToggleDirection = -9; - -@Deprecated('Deprecated') -const int smKeyToggleInline = -8; - -@Deprecated('Deprecated') -const int smKhmer = 20; - -@Deprecated('Deprecated') -const int smKlingon = 32; - -@Deprecated('Deprecated') -const int smKorean = 3; - -@Deprecated('Deprecated') -const int smLao = 22; - -@Deprecated('Deprecated') -const int smLaotian = 22; - -@Deprecated('Deprecated') -const int smLastByte = 1; - -@Deprecated('Deprecated') -const int smMalayalam = 17; - -@Deprecated('Deprecated') -const int smMaskAll = -1; - -@Deprecated('Deprecated') -const int smMaskAscii = 1; - -@Deprecated('Deprecated') -const int smMaskAscii1 = 4; - -@Deprecated('Deprecated') -const int smMaskAscii2 = 8; - -@Deprecated('Deprecated') -const int smMaskBopomofo2 = 1024; - -@Deprecated('Deprecated') -const int smMaskGana2 = 128; - -@Deprecated('Deprecated') -const int smMaskHangul2 = 256; - -@Deprecated('Deprecated') -const int smMaskJamo2 = 512; - -@Deprecated('Deprecated') -const int smMaskKana1 = 16; - -@Deprecated('Deprecated') -const int smMaskKana2 = 32; - -@Deprecated('Deprecated') -const int smMaskNative = 2; - -@Deprecated('Deprecated') -const int smMiddleByte = 2; - -@Deprecated('Deprecated') -const int smMongolian = 27; - -const int smNewPErr = -339; - -const int smNilsBlockErr = -336; - -const int smNoBoardId = -315; - -const int smNoBoardSRsrc = -313; - -const int smNoDir = -304; - -const int smNoGoodOpens = -349; - -const int smNoJmpTbl = -318; - -const int smNoMoresRsrcs = -344; - -const int smNosInfoArray = -306; - -@Deprecated('Deprecated') -const int smNotInstalled = 0; - -@Deprecated('Deprecated') -const int smNumberPartsTable = 2; - -const int smOffsetErr = -348; - -@Deprecated('Deprecated') -const int smOriya = 12; - -const int smPRAMInitErr = -292; - -const int smPriInitErr = -293; - -@Deprecated('Deprecated') -const int smPunctBlank = 768; - -@Deprecated('Deprecated') -const int smPunctGraphic = 1280; - -@Deprecated('Deprecated') -const int smPunctNormal = 0; - -@Deprecated('Deprecated') -const int smPunctNumber = 256; - -@Deprecated('Deprecated') -const int smPunctRepeat = 1024; - -@Deprecated('Deprecated') -const int smPunctSymbol = 512; - -@Deprecated('Deprecated') -const int smRSymbol = 8; - -const int smRecNotFnd = -351; - -@Deprecated('Deprecated') -const int smRegionCode = 40; - -const int smReservedErr = -332; - -const int smReservedSlot = -318; - -const int smResrvErr = -307; - -const int smRevisionErr = -303; - -@Deprecated('Deprecated') -const int smRoman = 0; - -@Deprecated('Deprecated') -const int smRussian = 7; - -const int smSDMInitErr = -290; - -const int smSRTInitErr = -291; - -const int smSRTOvrFlErr = -350; - -const int smSelOOBErr = -338; - -@Deprecated('Deprecated') -const int smSimpChinese = 25; - -@Deprecated('Deprecated') -const int smSindhi = 31; - -@Deprecated('Deprecated') -const int smSingleByte = 0; - -@Deprecated('Deprecated') -const int smSinhalese = 18; - -@Deprecated('Deprecated') -const int smSlavic = 29; - -const int smSlotOOBErr = -337; - -@Deprecated('Deprecated') -const int smSysScript = 18; - -@Deprecated('Deprecated') -const int smSystemScript = -1; - -@Deprecated('Deprecated') -const int smTamil = 14; - -@Deprecated('Deprecated') -const int smTelugu = 15; - -@Deprecated('Deprecated') -const int smThai = 21; - -@Deprecated('Deprecated') -const int smTibetan = 26; - -@Deprecated('Deprecated') -const int smTradChinese = 2; - -@Deprecated('Deprecated') -const int smTransAscii = 0; - -@Deprecated('Deprecated') -const int smTransAscii1 = 2; - -@Deprecated('Deprecated') -const int smTransAscii2 = 3; - -@Deprecated('Deprecated') -const int smTransBopomofo2 = 10; - -@Deprecated('Deprecated') -const int smTransCase = 254; - -@Deprecated('Deprecated') -const int smTransGana2 = 7; - -@Deprecated('Deprecated') -const int smTransHangul2 = 8; - -@Deprecated('Deprecated') -const int smTransHangulFormat = 2; - -@Deprecated('Deprecated') -const int smTransJamo2 = 9; - -@Deprecated('Deprecated') -const int smTransKana1 = 4; - -@Deprecated('Deprecated') -const int smTransKana2 = 5; - -@Deprecated('Deprecated') -const int smTransLower = 16384; - -@Deprecated('Deprecated') -const int smTransNative = 1; - -@Deprecated('Deprecated') -const int smTransPreDoubleByting = 1; - -@Deprecated('Deprecated') -const int smTransPreLowerCasing = 2; - -@Deprecated('Deprecated') -const int smTransRuleBaseFormat = 1; - -@Deprecated('Deprecated') -const int smTransSystem = 255; - -@Deprecated('Deprecated') -const int smTransUpper = 32768; - -const int smUnExBusErr = -308; - -@Deprecated('Deprecated') -const int smUnTokenTable = 3; - -const int smUnicodeScript = 126; - -@Deprecated('Deprecated') -const int smUninterp = 32; - -@Deprecated('Deprecated') -const int smUprHalfCharSet = 128; - -@Deprecated('Deprecated') -const int smVietnamese = 30; - -@Deprecated('Deprecated') -const int smWhiteSpaceList = 4; - -@Deprecated('Deprecated') -const int smWordSelectTable = 0; - -@Deprecated('Deprecated') -const int smWordWrapTable = 1; - -const int small1BitMask = 1768125219; - -const int small4BitData = 1768125236; - -const int small8BitData = 1768125240; - -const int smallDateBit = 31; - -@Deprecated('Deprecated') -const int smcClassMask = 3840; - -@Deprecated('Deprecated') -const int smcDoubleMask = 32768; - -@Deprecated('Deprecated') -const int smcOrientationMask = 4096; - -@Deprecated('Deprecated') -const int smcReserved = 240; - -@Deprecated('Deprecated') -const int smcRightMask = 8192; - -@Deprecated('Deprecated') -const int smcTypeMask = 15; - -@Deprecated('Deprecated') -const int smcUpperMask = 16384; - -@Deprecated('Deprecated') -const int smfDisableKeyScriptSync = 27; - -@Deprecated('Deprecated') -const int smfDisableKeyScriptSyncMask = 134217728; - -@Deprecated('Deprecated') -const int smfDualCaret = 30; - -@Deprecated('Deprecated') -const int smfNameTagEnab = 29; - -@Deprecated('Deprecated') -const int smfShowIcon = 31; - -@Deprecated('Deprecated') -const int smfUseAssocFontInfo = 28; - -const int smsGetDrvrErr = -345; - -const int smsPointerNil = -335; - -@Deprecated('Deprecated') -const int smsfAutoInit = 6; - -@Deprecated('Deprecated') -const int smsfB0Digits = 5; - -@Deprecated('Deprecated') -const int smsfContext = 3; - -@Deprecated('Deprecated') -const int smsfForms = 13; - -@Deprecated('Deprecated') -const int smsfIntellCP = 0; - -@Deprecated('Deprecated') -const int smsfLigatures = 14; - -@Deprecated('Deprecated') -const int smsfNatCase = 2; - -@Deprecated('Deprecated') -const int smsfNoForceFont = 4; - -@Deprecated('Deprecated') -const int smsfReverse = 15; - -@Deprecated('Deprecated') -const int smsfSingByte = 1; - -@Deprecated('Deprecated') -const int smsfSynchUnstyledTE = 8; - -@Deprecated('Deprecated') -const int smsfUnivExt = 7; - -const int soCharacterMode = 1667785074; - -const int soCommandDelimiter = 1684826477; - -const int soCurrentA5 = 1836663093; - -const int soCurrentVoice = 1668706168; - -const int soErrorCallBack = 1701995362; - -const int soErrors = 1701999215; - -const int soInputMode = 1768845428; - -const int soNumberMode = 1852662386; - -const int soOutputToAudioDevice = 1869635940; - -const int soOutputToExtAudioFile = 1869635960; - -const int soOutputToFileWithCFURL = 1869635942; - -const int soPhonemeCallBack = 1885889378; - -const int soPhonemeOptions = 1886351476; - -const int soPhonemeSymbols = 1885893497; - -const int soPitchBase = 1885495667; - -const int soPitchMod = 1886220132; - -const int soRate = 1918989413; - -const int soRecentSync = 1937337955; - -const int soRefCon = 1919247971; - -const int soReset = 1920165236; - -const int soSoundOutput = 1936614511; - -const int soSpeechDoneCallBack = 1935958882; - -const int soStatus = 1937006964; - -const int soSyncCallBack = 1937335138; - -const int soSynthExtension = 2020896356; - -const int soSynthType = 1986359923; - -const int soTextDoneCallBack = 1952736098; - -const int soVoiceDescription = 1768842863; - -const int soVoiceFile = 1718773094; - -const int soVolume = 1987013741; - -const int soWordCallBack = 2003067746; - -final class so_np_extensions extends ffi.Struct { - @u_int32_t() - external int npx_flags; - - @u_int32_t() - external int npx_mask; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int npx_flags, - required int npx_mask, - }) => $allocator() - ..ref.npx_flags = npx_flags - ..ref.npx_mask = npx_mask; -} - -final class sockaddr extends ffi.Struct { - @__uint8_t() - external int sa_len; - - @sa_family_t() - external int sa_family; - - @ffi.Array.multi([14]) - external ffi.Array sa_data; -} - -final class sockaddr_in extends ffi.Struct { - @__uint8_t() - external int sin_len; - - @sa_family_t() - external int sin_family; - - @in_port_t() - external int sin_port; - - external in_addr sin_addr; - - @ffi.Array.multi([8]) - external ffi.Array sin_zero; -} - -final class sockaddr_in6 extends ffi.Struct { - @__uint8_t() - external int sin6_len; - - @sa_family_t() - external int sin6_family; - - @in_port_t() - external int sin6_port; - - @__uint32_t() - external int sin6_flowinfo; - - external in6_addr sin6_addr; - - @__uint32_t() - external int sin6_scope_id; -} - -final class sockaddr_storage extends ffi.Struct { - @__uint8_t() - external int ss_len; - - @sa_family_t() - external int ss_family; - - @ffi.Array.multi([6]) - external ffi.Array __ss_pad1; - - @__int64_t() - external int __ss_align; - - @ffi.Array.multi([112]) - external ffi.Array __ss_pad2; -} - -final class sockaddr_un extends ffi.Struct { - @ffi.UnsignedChar() - external int sun_len; - - @sa_family_t() - external int sun_family; - - @ffi.Array.multi([104]) - external ffi.Array sun_path; -} - -typedef socklen_t = __darwin_socklen_t; - -final class sockproto extends ffi.Struct { - @__uint16_t() - external int sp_family; - - @__uint16_t() - external int sp_protocol; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sp_family, - required int sp_protocol, - }) => $allocator() - ..ref.sp_family = sp_family - ..ref.sp_protocol = sp_protocol; -} - -@Deprecated('Deprecated') -const int sortsAfter = 1; - -@Deprecated('Deprecated') -const int sortsBefore = -1; - -@Deprecated('Deprecated') -const int sortsEqual = 0; - -const int soundSupportNotAvailableErr = -2056; - -const int sourceNotFoundErr = -2061; - -const int spdAdjErr = -79; - -const int srcCopy = 0; - -typedef ssize_t = __darwin_ssize_t; -typedef stack_t = __darwin_sigaltstack; - -const int staleEditState = -2025; - -const int startupFolderIconResource = -3981; - -const int statusErr = -18; - -const int strUserBreak = -491; - -const int streamingNodeNotReadyErr = -30553; - -@Deprecated('Deprecated') -const int stringOverflow = 2; - -const int supDay = 1; - -const int supMonth = 4; - -const int supWeek = 2; - -const int supYear = 8; - -typedef suseconds_t = __darwin_suseconds_t; - -const int svAll1BitData = 16843009; - -const int svAll4BitData = 33686018; - -const int svAll8BitData = 67372036; - -const int svAllAvailableData = -1; - -const int svAllLargeData = 255; - -const int svAllMiniData = 16711680; - -const int svAllSmallData = 65280; - -const int svDisabled = -32640; - -const int svLarge1Bit = 1; - -const int svLarge4Bit = 2; - -const int svLarge8Bit = 4; - -const int svMini1Bit = 65536; - -const int svMini4Bit = 131072; - -const int svMini8Bit = 262144; - -const int svSmall1Bit = 256; - -const int svSmall4Bit = 512; - -const int svSmall8Bit = 1024; - -const int svTempDisable = -32768; - -typedef swblk_t = ffi.Int32; -typedef Dartswblk_t = int; -typedef sync_policy_t = ffi.Int; -typedef Dartsync_policy_t = int; - -const int synthNotReady = -242; - -const int synthOpenFailed = -241; - -const int synthesizerNotRespondingOSErr = -2082; - -const int synthesizerOSErr = -2083; - -typedef syscall_arg_t = u_int64_t; - -const int systemCurLang = -2; - -const int systemDefLang = -3; - -const int systemFolderIconResource = -3983; - -@ffi.Packed(4) -final class task_absolutetime_info extends ffi.Struct { - @ffi.Uint64() - external int total_user; - - @ffi.Uint64() - external int total_system; - - @ffi.Uint64() - external int threads_user; - - @ffi.Uint64() - external int threads_system; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int total_user, - required int total_system, - required int threads_user, - required int threads_system, - }) => $allocator() - ..ref.total_user = total_user - ..ref.total_system = total_system - ..ref.threads_user = threads_user - ..ref.threads_system = threads_system; -} - -typedef task_absolutetime_info_data_t = task_absolutetime_info; -typedef task_absolutetime_info_t = ffi.Pointer; - -final class task_affinity_tag_info extends ffi.Struct { - @integer_t() - external int set_count; - - @integer_t() - external int min; - - @integer_t() - external int max; - - @integer_t() - external int task_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int set_count, - required int min, - required int max, - required int task_count, - }) => $allocator() - ..ref.set_count = set_count - ..ref.min = min - ..ref.max = max - ..ref.task_count = task_count; -} - -typedef task_affinity_tag_info_data_t = task_affinity_tag_info; -typedef task_affinity_tag_info_t = ffi.Pointer; -typedef task_array_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_basic_info extends ffi.Struct { - @integer_t() - external int suspend_count; - - @vm_size_t() - external int virtual_size; - - @vm_size_t() - external int resident_size; - - external time_value_t user_time; - - external time_value_t system_time; - - @policy_t() - external int policy; -} - -final class task_basic_info_32 extends ffi.Struct { - @integer_t() - external int suspend_count; - - @natural_t() - external int virtual_size; - - @natural_t() - external int resident_size; - - external time_value_t user_time; - - external time_value_t system_time; - - @policy_t() - external int policy; -} - -typedef task_basic_info_32_data_t = task_basic_info_32; -typedef task_basic_info_32_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_basic_info_64 extends ffi.Struct { - @integer_t() - external int suspend_count; - - @mach_vm_size_t() - external int virtual_size; - - @mach_vm_size_t() - external int resident_size; - - external time_value_t user_time; - - external time_value_t system_time; - - @policy_t() - external int policy; -} - -@ffi.Packed(4) -final class task_basic_info_64_2 extends ffi.Struct { - @integer_t() - external int suspend_count; - - @mach_vm_size_t() - external int virtual_size; - - @mach_vm_size_t() - external int resident_size; - - external time_value_t user_time; - - external time_value_t system_time; - - @policy_t() - external int policy; -} - -typedef task_basic_info_64_2_data_t = task_basic_info_64_2; -typedef task_basic_info_64_2_t = ffi.Pointer; -typedef task_basic_info_64_data_t = task_basic_info_64; -typedef task_basic_info_64_t = ffi.Pointer; -typedef task_basic_info_data_t = task_basic_info; -typedef task_basic_info_t = ffi.Pointer; - -final class task_category_policy extends ffi.Struct { - @ffi.Int() - external int roleAsInt; - - task_role get role => task_role.fromValue(roleAsInt); - set role(task_role value) => roleAsInt = value.value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required task_role role, - }) => $allocator()..ref.role = role; -} - -typedef task_category_policy_data_t = task_category_policy; -typedef task_category_policy_t = ffi.Pointer; -typedef task_corpse_forking_behavior_t = ffi.Uint32; -typedef Darttask_corpse_forking_behavior_t = int; - -@ffi.Packed(4) -final class task_dyld_info extends ffi.Struct { - @mach_vm_address_t() - external int all_image_info_addr; - - @mach_vm_size_t() - external int all_image_info_size; - - @integer_t() - external int all_image_info_format; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int all_image_info_addr, - required int all_image_info_size, - required int all_image_info_format, - }) => $allocator() - ..ref.all_image_info_addr = all_image_info_addr - ..ref.all_image_info_size = all_image_info_size - ..ref.all_image_info_format = all_image_info_format; -} - -typedef task_dyld_info_data_t = task_dyld_info; -typedef task_dyld_info_t = ffi.Pointer; - -final class task_events_info extends ffi.Struct { - @integer_t() - external int faults; - - @integer_t() - external int pageins; - - @integer_t() - external int cow_faults; - - @integer_t() - external int messages_sent; - - @integer_t() - external int messages_received; - - @integer_t() - external int syscalls_mach; - - @integer_t() - external int syscalls_unix; - - @integer_t() - external int csw; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int faults, - required int pageins, - required int cow_faults, - required int messages_sent, - required int messages_received, - required int syscalls_mach, - required int syscalls_unix, - required int csw, - }) => $allocator() - ..ref.faults = faults - ..ref.pageins = pageins - ..ref.cow_faults = cow_faults - ..ref.messages_sent = messages_sent - ..ref.messages_received = messages_received - ..ref.syscalls_mach = syscalls_mach - ..ref.syscalls_unix = syscalls_unix - ..ref.csw = csw; -} - -typedef task_events_info_data_t = task_events_info; -typedef task_events_info_t = ffi.Pointer; -typedef task_exc_guard_behavior_t = ffi.Uint32; -typedef Darttask_exc_guard_behavior_t = int; - -@ffi.Packed(4) -final class task_extmod_info extends ffi.Struct { - @ffi.Array.multi([16]) - external ffi.Array task_uuid; - - external vm_extmod_statistics_data_t extmod_statistics; -} - -typedef task_extmod_info_data_t = task_extmod_info; -typedef task_extmod_info_t = ffi.Pointer; - -final class task_flags_info extends ffi.Struct { - @ffi.Uint32() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int flags, - }) => $allocator()..ref.flags = flags; -} - -typedef task_flags_info_data_t = task_flags_info; -typedef task_flags_info_t = ffi.Pointer; -typedef task_flavor_t = natural_t; -typedef task_id_token_t = mach_port_t; -typedef task_info_t = ffi.Pointer; - -final class task_inspect_basic_counts extends ffi.Struct { - @ffi.Uint64() - external int instructions; - - @ffi.Uint64() - external int cycles; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int instructions, - required int cycles, - }) => $allocator() - ..ref.instructions = instructions - ..ref.cycles = cycles; -} - -typedef task_inspect_basic_counts_data_t = task_inspect_basic_counts; -typedef task_inspect_basic_counts_t = ffi.Pointer; - -enum task_inspect_flavor { - TASK_INSPECT_BASIC_COUNTS(1); - - final int value; - const task_inspect_flavor(this.value); - - static task_inspect_flavor fromValue(int value) => switch (value) { - 1 => TASK_INSPECT_BASIC_COUNTS, - _ => throw ArgumentError('Unknown value for task_inspect_flavor: $value'), - }; -} - -typedef task_inspect_flavor_t = natural_t; -typedef task_inspect_info_t = ffi.Pointer; -typedef task_inspect_t = mach_port_t; - -final class task_ipc_space_policy_info extends ffi.Struct { - @ffi.Uint32() - external int space_policy; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int space_policy, - }) => - $allocator()..ref.space_policy = space_policy; -} - -typedef task_ipc_space_policy_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_kernelmemory_info extends ffi.Struct { - @ffi.Uint64() - external int total_palloc; - - @ffi.Uint64() - external int total_pfree; - - @ffi.Uint64() - external int total_salloc; - - @ffi.Uint64() - external int total_sfree; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int total_palloc, - required int total_pfree, - required int total_salloc, - required int total_sfree, - }) => $allocator() - ..ref.total_palloc = total_palloc - ..ref.total_pfree = total_pfree - ..ref.total_salloc = total_salloc - ..ref.total_sfree = total_sfree; -} - -typedef task_kernelmemory_info_data_t = task_kernelmemory_info; -typedef task_kernelmemory_info_t = ffi.Pointer; - -enum task_latency_qos { - LATENCY_QOS_TIER_UNSPECIFIED(0), - LATENCY_QOS_TIER_0(16711681), - LATENCY_QOS_TIER_1(16711682), - LATENCY_QOS_TIER_2(16711683), - LATENCY_QOS_TIER_3(16711684), - LATENCY_QOS_TIER_4(16711685), - LATENCY_QOS_TIER_5(16711686); - - final int value; - const task_latency_qos(this.value); - - static task_latency_qos fromValue(int value) => switch (value) { - 0 => LATENCY_QOS_TIER_UNSPECIFIED, - 16711681 => LATENCY_QOS_TIER_0, - 16711682 => LATENCY_QOS_TIER_1, - 16711683 => LATENCY_QOS_TIER_2, - 16711684 => LATENCY_QOS_TIER_3, - 16711685 => LATENCY_QOS_TIER_4, - 16711686 => LATENCY_QOS_TIER_5, - _ => throw ArgumentError('Unknown value for task_latency_qos: $value'), - }; -} - -typedef task_latency_qos_t = integer_t; -typedef task_name_t = mach_port_t; -typedef task_policy_flavor_t = natural_t; -typedef task_policy_get_t = mach_port_t; -typedef task_policy_set_t = mach_port_t; -typedef task_policy_t = ffi.Pointer; -typedef task_port_array_t = task_array_t; -typedef task_port_t = task_t; - -@ffi.Packed(4) -final class task_power_info extends ffi.Struct { - @ffi.Uint64() - external int total_user; - - @ffi.Uint64() - external int total_system; - - @ffi.Uint64() - external int task_interrupt_wakeups; - - @ffi.Uint64() - external int task_platform_idle_wakeups; - - @ffi.Uint64() - external int task_timer_wakeups_bin_1; - - @ffi.Uint64() - external int task_timer_wakeups_bin_2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int total_user, - required int total_system, - required int task_interrupt_wakeups, - required int task_platform_idle_wakeups, - required int task_timer_wakeups_bin_1, - required int task_timer_wakeups_bin_2, - }) => $allocator() - ..ref.total_user = total_user - ..ref.total_system = total_system - ..ref.task_interrupt_wakeups = task_interrupt_wakeups - ..ref.task_platform_idle_wakeups = task_platform_idle_wakeups - ..ref.task_timer_wakeups_bin_1 = task_timer_wakeups_bin_1 - ..ref.task_timer_wakeups_bin_2 = task_timer_wakeups_bin_2; -} - -typedef task_power_info_data_t = task_power_info; -typedef task_power_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_power_info_v2 extends ffi.Struct { - external task_power_info_data_t cpu_energy; - - external gpu_energy_data gpu_energy; - - @ffi.Uint64() - external int task_energy; - - @ffi.Uint64() - external int task_ptime; - - @ffi.Uint64() - external int task_pset_switches; -} - -typedef task_power_info_v2_data_t = task_power_info_v2; -typedef task_power_info_v2_t = ffi.Pointer; -typedef task_purgable_info_t = vm_purgeable_info; - -final class task_qos_policy extends ffi.Struct { - @task_latency_qos_t() - external int task_latency_qos_tier; - - @task_throughput_qos_t() - external int task_throughput_qos_tier; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int task_latency_qos_tier, - required int task_throughput_qos_tier, - }) => $allocator() - ..ref.task_latency_qos_tier = task_latency_qos_tier - ..ref.task_throughput_qos_tier = task_throughput_qos_tier; -} - -typedef task_qos_policy_t = ffi.Pointer; -typedef task_read_t = mach_port_t; - -enum task_role { - TASK_RENICED(-1), - TASK_UNSPECIFIED(0), - TASK_FOREGROUND_APPLICATION(1), - TASK_BACKGROUND_APPLICATION(2), - TASK_CONTROL_APPLICATION(3), - TASK_GRAPHICS_SERVER(4), - TASK_THROTTLE_APPLICATION(5), - TASK_NONUI_APPLICATION(6), - TASK_DEFAULT_APPLICATION(7), - TASK_DARWINBG_APPLICATION(8), - TASK_USER_INIT_APPLICATION(9); - - final int value; - const task_role(this.value); - - static task_role fromValue(int value) => switch (value) { - -1 => TASK_RENICED, - 0 => TASK_UNSPECIFIED, - 1 => TASK_FOREGROUND_APPLICATION, - 2 => TASK_BACKGROUND_APPLICATION, - 3 => TASK_CONTROL_APPLICATION, - 4 => TASK_GRAPHICS_SERVER, - 5 => TASK_THROTTLE_APPLICATION, - 6 => TASK_NONUI_APPLICATION, - 7 => TASK_DEFAULT_APPLICATION, - 8 => TASK_DARWINBG_APPLICATION, - 9 => TASK_USER_INIT_APPLICATION, - _ => throw ArgumentError('Unknown value for task_role: $value'), - }; -} - -final class task_security_config_info extends ffi.Struct { - @ffi.Uint32() - external int config; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int config, - }) => $allocator()..ref.config = config; -} - -typedef task_security_config_info_t = ffi.Pointer; -typedef task_special_port_t = ffi.Int; -typedef Darttask_special_port_t = int; -typedef task_suspension_token_t = mach_port_t; -typedef task_t = mach_port_t; - -final class task_thread_times_info extends ffi.Struct { - external time_value_t user_time; - - external time_value_t system_time; -} - -typedef task_thread_times_info_data_t = task_thread_times_info; -typedef task_thread_times_info_t = ffi.Pointer; - -enum task_throughput_qos { - THROUGHPUT_QOS_TIER_UNSPECIFIED(0), - THROUGHPUT_QOS_TIER_0(16646145), - THROUGHPUT_QOS_TIER_1(16646146), - THROUGHPUT_QOS_TIER_2(16646147), - THROUGHPUT_QOS_TIER_3(16646148), - THROUGHPUT_QOS_TIER_4(16646149), - THROUGHPUT_QOS_TIER_5(16646150); - - final int value; - const task_throughput_qos(this.value); - - static task_throughput_qos fromValue(int value) => switch (value) { - 0 => THROUGHPUT_QOS_TIER_UNSPECIFIED, - 16646145 => THROUGHPUT_QOS_TIER_0, - 16646146 => THROUGHPUT_QOS_TIER_1, - 16646147 => THROUGHPUT_QOS_TIER_2, - 16646148 => THROUGHPUT_QOS_TIER_3, - 16646149 => THROUGHPUT_QOS_TIER_4, - 16646150 => THROUGHPUT_QOS_TIER_5, - _ => throw ArgumentError('Unknown value for task_throughput_qos: $value'), - }; -} - -typedef task_throughput_qos_t = integer_t; - -@ffi.Packed(4) -final class task_trace_memory_info extends ffi.Struct { - @ffi.Uint64() - external int user_memory_address; - - @ffi.Uint64() - external int buffer_size; - - @ffi.Uint64() - external int mailbox_array_size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int user_memory_address, - required int buffer_size, - required int mailbox_array_size, - }) => $allocator() - ..ref.user_memory_address = user_memory_address - ..ref.buffer_size = buffer_size - ..ref.mailbox_array_size = mailbox_array_size; -} - -typedef task_trace_memory_info_data_t = task_trace_memory_info; -typedef task_trace_memory_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_vm_info extends ffi.Struct { - @mach_vm_size_t() - external int virtual_size; - - @integer_t() - external int region_count; - - @integer_t() - external int page_size; - - @mach_vm_size_t() - external int resident_size; - - @mach_vm_size_t() - external int resident_size_peak; - - @mach_vm_size_t() - external int device; - - @mach_vm_size_t() - external int device_peak; - - @mach_vm_size_t() - external int internal; - - @mach_vm_size_t() - external int internal_peak; - - @mach_vm_size_t() - external int external; - - @mach_vm_size_t() - external int external_peak; - - @mach_vm_size_t() - external int reusable; - - @mach_vm_size_t() - external int reusable_peak; - - @mach_vm_size_t() - external int purgeable_volatile_pmap; - - @mach_vm_size_t() - external int purgeable_volatile_resident; - - @mach_vm_size_t() - external int purgeable_volatile_virtual; - - @mach_vm_size_t() - external int compressed; - - @mach_vm_size_t() - external int compressed_peak; - - @mach_vm_size_t() - external int compressed_lifetime; - - @mach_vm_size_t() - external int phys_footprint; - - @mach_vm_address_t() - external int min_address; - - @mach_vm_address_t() - external int max_address; - - @ffi.Int64() - external int ledger_phys_footprint_peak; - - @ffi.Int64() - external int ledger_purgeable_nonvolatile; - - @ffi.Int64() - external int ledger_purgeable_novolatile_compressed; - - @ffi.Int64() - external int ledger_purgeable_volatile; - - @ffi.Int64() - external int ledger_purgeable_volatile_compressed; - - @ffi.Int64() - external int ledger_tag_network_nonvolatile; - - @ffi.Int64() - external int ledger_tag_network_nonvolatile_compressed; - - @ffi.Int64() - external int ledger_tag_network_volatile; - - @ffi.Int64() - external int ledger_tag_network_volatile_compressed; - - @ffi.Int64() - external int ledger_tag_media_footprint; - - @ffi.Int64() - external int ledger_tag_media_footprint_compressed; - - @ffi.Int64() - external int ledger_tag_media_nofootprint; - - @ffi.Int64() - external int ledger_tag_media_nofootprint_compressed; - - @ffi.Int64() - external int ledger_tag_graphics_footprint; - - @ffi.Int64() - external int ledger_tag_graphics_footprint_compressed; - - @ffi.Int64() - external int ledger_tag_graphics_nofootprint; - - @ffi.Int64() - external int ledger_tag_graphics_nofootprint_compressed; - - @ffi.Int64() - external int ledger_tag_neural_footprint; - - @ffi.Int64() - external int ledger_tag_neural_footprint_compressed; - - @ffi.Int64() - external int ledger_tag_neural_nofootprint; - - @ffi.Int64() - external int ledger_tag_neural_nofootprint_compressed; - - @ffi.Uint64() - external int limit_bytes_remaining; - - @integer_t() - external int decompressions; - - @ffi.Int64() - external int ledger_swapins; - - @ffi.Int64() - external int ledger_tag_neural_nofootprint_total; - - @ffi.Int64() - external int ledger_tag_neural_nofootprint_peak; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int virtual_size, - required int region_count, - required int page_size, - required int resident_size, - required int resident_size_peak, - required int device, - required int device_peak, - required int internal, - required int internal_peak, - required int external, - required int external_peak, - required int reusable, - required int reusable_peak, - required int purgeable_volatile_pmap, - required int purgeable_volatile_resident, - required int purgeable_volatile_virtual, - required int compressed, - required int compressed_peak, - required int compressed_lifetime, - required int phys_footprint, - required int min_address, - required int max_address, - required int ledger_phys_footprint_peak, - required int ledger_purgeable_nonvolatile, - required int ledger_purgeable_novolatile_compressed, - required int ledger_purgeable_volatile, - required int ledger_purgeable_volatile_compressed, - required int ledger_tag_network_nonvolatile, - required int ledger_tag_network_nonvolatile_compressed, - required int ledger_tag_network_volatile, - required int ledger_tag_network_volatile_compressed, - required int ledger_tag_media_footprint, - required int ledger_tag_media_footprint_compressed, - required int ledger_tag_media_nofootprint, - required int ledger_tag_media_nofootprint_compressed, - required int ledger_tag_graphics_footprint, - required int ledger_tag_graphics_footprint_compressed, - required int ledger_tag_graphics_nofootprint, - required int ledger_tag_graphics_nofootprint_compressed, - required int ledger_tag_neural_footprint, - required int ledger_tag_neural_footprint_compressed, - required int ledger_tag_neural_nofootprint, - required int ledger_tag_neural_nofootprint_compressed, - required int limit_bytes_remaining, - required int decompressions, - required int ledger_swapins, - required int ledger_tag_neural_nofootprint_total, - required int ledger_tag_neural_nofootprint_peak, - }) => $allocator() - ..ref.virtual_size = virtual_size - ..ref.region_count = region_count - ..ref.page_size = page_size - ..ref.resident_size = resident_size - ..ref.resident_size_peak = resident_size_peak - ..ref.device = device - ..ref.device_peak = device_peak - ..ref.internal = internal - ..ref.internal_peak = internal_peak - ..ref.external = external - ..ref.external_peak = external_peak - ..ref.reusable = reusable - ..ref.reusable_peak = reusable_peak - ..ref.purgeable_volatile_pmap = purgeable_volatile_pmap - ..ref.purgeable_volatile_resident = purgeable_volatile_resident - ..ref.purgeable_volatile_virtual = purgeable_volatile_virtual - ..ref.compressed = compressed - ..ref.compressed_peak = compressed_peak - ..ref.compressed_lifetime = compressed_lifetime - ..ref.phys_footprint = phys_footprint - ..ref.min_address = min_address - ..ref.max_address = max_address - ..ref.ledger_phys_footprint_peak = ledger_phys_footprint_peak - ..ref.ledger_purgeable_nonvolatile = ledger_purgeable_nonvolatile - ..ref.ledger_purgeable_novolatile_compressed = - ledger_purgeable_novolatile_compressed - ..ref.ledger_purgeable_volatile = ledger_purgeable_volatile - ..ref.ledger_purgeable_volatile_compressed = - ledger_purgeable_volatile_compressed - ..ref.ledger_tag_network_nonvolatile = ledger_tag_network_nonvolatile - ..ref.ledger_tag_network_nonvolatile_compressed = - ledger_tag_network_nonvolatile_compressed - ..ref.ledger_tag_network_volatile = ledger_tag_network_volatile - ..ref.ledger_tag_network_volatile_compressed = - ledger_tag_network_volatile_compressed - ..ref.ledger_tag_media_footprint = ledger_tag_media_footprint - ..ref.ledger_tag_media_footprint_compressed = - ledger_tag_media_footprint_compressed - ..ref.ledger_tag_media_nofootprint = ledger_tag_media_nofootprint - ..ref.ledger_tag_media_nofootprint_compressed = - ledger_tag_media_nofootprint_compressed - ..ref.ledger_tag_graphics_footprint = ledger_tag_graphics_footprint - ..ref.ledger_tag_graphics_footprint_compressed = - ledger_tag_graphics_footprint_compressed - ..ref.ledger_tag_graphics_nofootprint = ledger_tag_graphics_nofootprint - ..ref.ledger_tag_graphics_nofootprint_compressed = - ledger_tag_graphics_nofootprint_compressed - ..ref.ledger_tag_neural_footprint = ledger_tag_neural_footprint - ..ref.ledger_tag_neural_footprint_compressed = - ledger_tag_neural_footprint_compressed - ..ref.ledger_tag_neural_nofootprint = ledger_tag_neural_nofootprint - ..ref.ledger_tag_neural_nofootprint_compressed = - ledger_tag_neural_nofootprint_compressed - ..ref.limit_bytes_remaining = limit_bytes_remaining - ..ref.decompressions = decompressions - ..ref.ledger_swapins = ledger_swapins - ..ref.ledger_tag_neural_nofootprint_total = - ledger_tag_neural_nofootprint_total - ..ref.ledger_tag_neural_nofootprint_peak = - ledger_tag_neural_nofootprint_peak; -} - -typedef task_vm_info_data_t = task_vm_info; -typedef task_vm_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class task_wait_state_info extends ffi.Struct { - @ffi.Uint64() - external int total_wait_state_time; - - @ffi.Uint64() - external int total_wait_sfi_state_time; - - @ffi.Array.multi([4]) - external ffi.Array _reserved; -} - -typedef task_wait_state_info_data_t = task_wait_state_info; -typedef task_wait_state_info_t = ffi.Pointer; -typedef task_zone_info_array_t = ffi.Pointer; - -final class task_zone_info_data extends ffi.Struct { - @ffi.Uint64() - external int tzi_count; - - @ffi.Uint64() - external int tzi_cur_size; - - @ffi.Uint64() - external int tzi_max_size; - - @ffi.Uint64() - external int tzi_elem_size; - - @ffi.Uint64() - external int tzi_alloc_size; - - @ffi.Uint64() - external int tzi_sum_size; - - @ffi.Uint64() - external int tzi_exhaustible; - - @ffi.Uint64() - external int tzi_collectable; - - @ffi.Uint64() - external int tzi_caller_acct; - - @ffi.Uint64() - external int tzi_task_alloc; - - @ffi.Uint64() - external int tzi_task_free; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tzi_count, - required int tzi_cur_size, - required int tzi_max_size, - required int tzi_elem_size, - required int tzi_alloc_size, - required int tzi_sum_size, - required int tzi_exhaustible, - required int tzi_collectable, - required int tzi_caller_acct, - required int tzi_task_alloc, - required int tzi_task_free, - }) => $allocator() - ..ref.tzi_count = tzi_count - ..ref.tzi_cur_size = tzi_cur_size - ..ref.tzi_max_size = tzi_max_size - ..ref.tzi_elem_size = tzi_elem_size - ..ref.tzi_alloc_size = tzi_alloc_size - ..ref.tzi_sum_size = tzi_sum_size - ..ref.tzi_exhaustible = tzi_exhaustible - ..ref.tzi_collectable = tzi_collectable - ..ref.tzi_caller_acct = tzi_caller_acct - ..ref.tzi_task_alloc = tzi_task_alloc - ..ref.tzi_task_free = tzi_task_free; -} - -typedef task_zone_info_t = task_zone_info_data; -typedef tcp_cc = __uint32_t; - -final class tcp_connection_info extends ffi.Opaque {} - -typedef tcp_seq = __uint32_t; - -final class tcphdr extends ffi.Opaque {} - -const int teScrapSizeErr = -501; - -const int telAPattNotSupp = -10016; - -const int telAlreadyOpen = -10070; - -const int telAutoAnsNotOn = -10112; - -const int telBadAPattErr = -10015; - -const int telBadBearerType = -10058; - -const int telBadCAErr = -10003; - -const int telBadCodeResource = -10108; - -const int telBadDNDType = -10023; - -const int telBadDNErr = -10002; - -const int telBadDNType = -10050; - -const int telBadDisplayMode = -10062; - -const int telBadFeatureID = -10053; - -const int telBadFunction = -10091; - -const int telBadFwdType = -10054; - -const int telBadHTypeErr = -10010; - -const int telBadHandErr = -10004; - -const int telBadIndex = -10017; - -const int telBadIntExt = -10021; - -const int telBadIntercomID = -10052; - -const int telBadLevelErr = -10012; - -const int telBadPageID = -10051; - -const int telBadParkID = -10056; - -const int telBadPickupGroupID = -10055; - -const int telBadProcErr = -10005; - -const int telBadProcID = -10110; - -const int telBadRate = -10059; - -const int telBadSWErr = -10114; - -const int telBadSampleRate = -10115; - -const int telBadSelect = -10057; - -const int telBadStateErr = -10019; - -const int telBadTermErr = -10001; - -const int telBadVTypeErr = -10013; - -const int telCANotAcceptable = -10080; - -const int telCANotDeflectable = -10082; - -const int telCANotRejectable = -10081; - -const int telCAUnavail = -10006; - -const int telCBErr = -10046; - -const int telConfErr = -10042; - -const int telConfLimitErr = -10040; - -const int telConfLimitExceeded = -10047; - -const int telConfNoLimit = -10041; - -const int telConfRej = -10043; - -const int telDNDTypeNotSupp = -10024; - -const int telDNTypeNotSupp = -10060; - -const int telDetAlreadyOn = -10113; - -const int telDeviceNotFound = -10109; - -const int telDisplayModeNotSupp = -10063; - -const int telFeatActive = -10032; - -const int telFeatNotAvail = -10031; - -const int telFeatNotSub = -10030; - -const int telFeatNotSupp = -10033; - -const int telFwdTypeNotSupp = -10061; - -const int telGenericError = -1; - -const int telHTypeNotSupp = -10011; - -const int telIndexNotSupp = -10018; - -const int telInitFailed = -10107; - -const int telIntExtNotSupp = -10022; - -const int telNoCallbackRef = -10064; - -const int telNoCommFolder = -10106; - -const int telNoErr = 0; - -const int telNoMemErr = -10007; - -const int telNoOpenErr = -10008; - -const int telNoSuchTool = -10102; - -const int telNoTools = 8; - -const int telNotEnoughdspBW = -10116; - -const int telPBErr = -10090; - -const int telStateNotSupp = -10020; - -const int telStillNeeded = -10071; - -const int telTermNotOpen = -10072; - -const int telTransferErr = -10044; - -const int telTransferRej = -10045; - -const int telUnknownErr = -10103; - -const int telVTypeNotSupp = -10014; - -const int telValidateFailed = -10111; - -const int textParserBadParamErr = -5220; - -const int textParserBadParserObjectErr = -5223; - -const int textParserBadTextEncodingErr = -5227; - -const int textParserBadTextLanguageErr = -5226; - -const int textParserBadTokenValueErr = -5222; - -const int textParserNoMoreTextErr = -5225; - -const int textParserNoMoreTokensErr = -5229; - -const int textParserNoSuchTokenFoundErr = -5228; - -const int textParserObjectNotFoundErr = -5221; - -const int textParserParamErr = -5224; - -const int themeBadCursorIndexErr = -30565; - -const int themeBadTextColorErr = -30563; - -const int themeHasNoAccentsErr = -30564; - -const int themeInvalidBrushErr = -30560; - -const int themeMonitorDepthNotSupportedErr = -30567; - -const int themeNoAppropriateBrushErr = -30568; - -const int themeProcessNotRegisteredErr = -30562; - -const int themeProcessRegisteredErr = -30561; - -const int themeScriptFontNotFoundErr = -30566; - -const int threadBadAppContextErr = -616; - -const int threadNotFoundErr = -618; - -const int threadProtocolErr = -619; - -const int threadTooManyReqsErr = -617; - -typedef thread_act_array_t = ffi.Pointer; -typedef thread_act_port_array_t = thread_act_array_t; -typedef thread_act_port_t = thread_act_t; -typedef thread_act_t = mach_port_t; - -final class thread_affinity_policy extends ffi.Struct { - @integer_t() - external int affinity_tag; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int affinity_tag, - }) => $allocator()..ref.affinity_tag = affinity_tag; -} - -typedef thread_affinity_policy_data_t = thread_affinity_policy; -typedef thread_affinity_policy_t = ffi.Pointer; -typedef thread_array_t = ffi.Pointer; - -final class thread_background_policy extends ffi.Struct { - @integer_t() - external int priority; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int priority, - }) => $allocator()..ref.priority = priority; -} - -typedef thread_background_policy_data_t = thread_background_policy; -typedef thread_background_policy_t = ffi.Pointer; - -final class thread_basic_info extends ffi.Struct { - external time_value_t user_time; - - external time_value_t system_time; - - @integer_t() - external int cpu_usage; - - @policy_t() - external int policy; - - @integer_t() - external int run_state; - - @integer_t() - external int flags; - - @integer_t() - external int suspend_count; - - @integer_t() - external int sleep_time; -} - -typedef thread_basic_info_data_t = thread_basic_info; -typedef thread_basic_info_t = ffi.Pointer; - -final class thread_extended_info extends ffi.Struct { - @ffi.Uint64() - external int pth_user_time; - - @ffi.Uint64() - external int pth_system_time; - - @ffi.Int32() - external int pth_cpu_usage; - - @ffi.Int32() - external int pth_policy; - - @ffi.Int32() - external int pth_run_state; - - @ffi.Int32() - external int pth_flags; - - @ffi.Int32() - external int pth_sleep_time; - - @ffi.Int32() - external int pth_curpri; - - @ffi.Int32() - external int pth_priority; - - @ffi.Int32() - external int pth_maxpriority; - - @ffi.Array.multi([64]) - external ffi.Array pth_name; -} - -typedef thread_extended_info_data_t = thread_extended_info; -typedef thread_extended_info_t = ffi.Pointer; - -final class thread_extended_policy extends ffi.Struct { - @boolean_t() - external int timeshare; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int timeshare, - }) => $allocator()..ref.timeshare = timeshare; -} - -typedef thread_extended_policy_data_t = thread_extended_policy; -typedef thread_extended_policy_t = ffi.Pointer; -typedef thread_flavor_t = natural_t; - -final class thread_identifier_info extends ffi.Struct { - @ffi.Uint64() - external int thread_id; - - @ffi.Uint64() - external int thread_handle; - - @ffi.Uint64() - external int dispatch_qaddr; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int thread_id, - required int thread_handle, - required int dispatch_qaddr, - }) => $allocator() - ..ref.thread_id = thread_id - ..ref.thread_handle = thread_handle - ..ref.dispatch_qaddr = dispatch_qaddr; -} - -typedef thread_identifier_info_data_t = thread_identifier_info; -typedef thread_identifier_info_t = ffi.Pointer; -typedef thread_info_t = ffi.Pointer; -typedef thread_inspect_t = mach_port_t; - -final class thread_latency_qos_policy extends ffi.Struct { - @thread_latency_qos_t() - external int thread_latency_qos_tier; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int thread_latency_qos_tier, - }) => - $allocator() - ..ref.thread_latency_qos_tier = thread_latency_qos_tier; -} - -typedef thread_latency_qos_policy_data_t = thread_latency_qos_policy; -typedef thread_latency_qos_policy_t = ffi.Pointer; -typedef thread_latency_qos_t = integer_t; -typedef thread_policy_flavor_t = natural_t; -typedef thread_policy_t = ffi.Pointer; -typedef thread_port_array_t = thread_array_t; -typedef thread_port_t = thread_t; - -final class thread_precedence_policy extends ffi.Struct { - @integer_t() - external int importance; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int importance, - }) => $allocator()..ref.importance = importance; -} - -typedef thread_precedence_policy_data_t = thread_precedence_policy; -typedef thread_precedence_policy_t = ffi.Pointer; -typedef thread_read_t = mach_port_t; - -final class thread_standard_policy extends ffi.Struct { - @natural_t() - external int no_data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int no_data, - }) => $allocator()..ref.no_data = no_data; -} - -typedef thread_standard_policy_data_t = thread_standard_policy; -typedef thread_standard_policy_t = ffi.Pointer; -typedef thread_state_flavor_array_t = ffi.Pointer; -typedef thread_state_flavor_t = ffi.Int; -typedef Dartthread_state_flavor_t = int; -typedef thread_state_t = ffi.Pointer; -typedef thread_t = mach_port_t; - -final class thread_throughput_qos_policy extends ffi.Struct { - @thread_throughput_qos_t() - external int thread_throughput_qos_tier; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int thread_throughput_qos_tier, - }) => - $allocator() - ..ref.thread_throughput_qos_tier = thread_throughput_qos_tier; -} - -typedef thread_throughput_qos_policy_data_t = thread_throughput_qos_policy; -typedef thread_throughput_qos_policy_t = - ffi.Pointer; -typedef thread_throughput_qos_t = integer_t; - -final class thread_time_constraint_policy extends ffi.Struct { - @ffi.Uint32() - external int period; - - @ffi.Uint32() - external int computation; - - @ffi.Uint32() - external int constraint; - - @boolean_t() - external int preemptible; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int period, - required int computation, - required int constraint, - required int preemptible, - }) => $allocator() - ..ref.period = period - ..ref.computation = computation - ..ref.constraint = constraint - ..ref.preemptible = preemptible; -} - -typedef thread_time_constraint_policy_data_t = thread_time_constraint_policy; -typedef thread_time_constraint_policy_t = - ffi.Pointer; -@Deprecated('Deprecated') -const int tilde = 247; - -const int timeCycle12 = 255; - -const int timeCycle24 = 0; - -const int timeCycleZero = 1; - -const int timeNotInMedia = -2032; - -const int timeNotInTrack = -2031; - -const int timeNotInViewErr = -30546; - -typedef time_t = __darwin_time_t; - -final class time_value extends ffi.Struct { - @integer_t() - external int seconds; - - @integer_t() - external int microseconds; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int seconds, - required int microseconds, - }) => $allocator() - ..ref.seconds = seconds - ..ref.microseconds = microseconds; -} - -typedef time_value_t = time_value; - -final class timespec extends ffi.Struct { - @__darwin_time_t() - external int tv_sec; - - @ffi.Long() - external int tv_nsec; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tv_sec, - required int tv_nsec, - }) => $allocator() - ..ref.tv_sec = tv_sec - ..ref.tv_nsec = tv_nsec; -} - -final class timeval extends ffi.Struct { - @__darwin_time_t() - external int tv_sec; - - @__darwin_suseconds_t() - external int tv_usec; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tv_sec, - required int tv_usec, - }) => $allocator() - ..ref.tv_sec = tv_sec - ..ref.tv_usec = tv_usec; -} - -final class timeval64 extends ffi.Struct { - @__int64_t() - external int tv_sec; - - @__int64_t() - external int tv_usec; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tv_sec, - required int tv_usec, - }) => $allocator() - ..ref.tv_sec = tv_sec - ..ref.tv_usec = tv_usec; -} - -final class timezone extends ffi.Struct { - @ffi.Int() - external int tz_minuteswest; - - @ffi.Int() - external int tz_dsttime; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tz_minuteswest, - required int tz_dsttime, - }) => $allocator() - ..ref.tz_minuteswest = tz_minuteswest - ..ref.tz_dsttime = tz_dsttime; -} - -const int tk0BadErr = -76; - -enum tls_ciphersuite_group_t { - tls_ciphersuite_group_default(0), - tls_ciphersuite_group_compatibility(1), - tls_ciphersuite_group_legacy(2), - tls_ciphersuite_group_ats(3), - tls_ciphersuite_group_ats_compatibility(4); - - final int value; - const tls_ciphersuite_group_t(this.value); - - static tls_ciphersuite_group_t fromValue(int value) => switch (value) { - 0 => tls_ciphersuite_group_default, - 1 => tls_ciphersuite_group_compatibility, - 2 => tls_ciphersuite_group_legacy, - 3 => tls_ciphersuite_group_ats, - 4 => tls_ciphersuite_group_ats_compatibility, - _ => throw ArgumentError( - 'Unknown value for tls_ciphersuite_group_t: $value', - ), - }; -} - -enum tls_ciphersuite_t { - tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA(10), - tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA(47), - tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA(53), - tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256(156), - tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384(157), - tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256(60), - tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256(61), - tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA(-16376), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA(-16375), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA(-16374), - tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA(-16366), - tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA(-16365), - tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA(-16364), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256(-16349), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384(-16348), - tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256(-16345), - tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384(-16344), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256(-16341), - tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384(-16340), - tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256(-16337), - tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384(-16336), - tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256(-13144), - tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256(-13143), - tls_ciphersuite_AES_128_GCM_SHA256(4865), - tls_ciphersuite_AES_256_GCM_SHA384(4866), - tls_ciphersuite_CHACHA20_POLY1305_SHA256(4867); - - final int value; - const tls_ciphersuite_t(this.value); - - static tls_ciphersuite_t fromValue(int value) => switch (value) { - 10 => tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA, - 47 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA, - 53 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA, - 156 => tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256, - 157 => tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384, - 60 => tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256, - 61 => tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256, - -16376 => tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, - -16375 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, - -16374 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, - -16366 => tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, - -16365 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA, - -16364 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA, - -16349 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, - -16348 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, - -16345 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256, - -16344 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384, - -16341 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, - -16340 => tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, - -16337 => tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256, - -16336 => tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384, - -13144 => tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, - -13143 => tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, - 4865 => tls_ciphersuite_AES_128_GCM_SHA256, - 4866 => tls_ciphersuite_AES_256_GCM_SHA384, - 4867 => tls_ciphersuite_CHACHA20_POLY1305_SHA256, - _ => throw ArgumentError('Unknown value for tls_ciphersuite_t: $value'), - }; -} - -enum tls_protocol_version_t { - tls_protocol_version_TLSv10(769), - tls_protocol_version_TLSv11(770), - tls_protocol_version_TLSv12(771), - tls_protocol_version_TLSv13(772), - tls_protocol_version_DTLSv10(-257), - tls_protocol_version_DTLSv12(-259); - - final int value; - const tls_protocol_version_t(this.value); - - static tls_protocol_version_t fromValue(int value) => switch (value) { - 769 => tls_protocol_version_TLSv10, - 770 => tls_protocol_version_TLSv11, - 771 => tls_protocol_version_TLSv12, - 772 => tls_protocol_version_TLSv13, - -257 => tls_protocol_version_DTLSv10, - -259 => tls_protocol_version_DTLSv12, - _ => throw ArgumentError( - 'Unknown value for tls_protocol_version_t: $value', - ), - }; -} - -final class tm extends ffi.Struct { - @ffi.Int() - external int tm_sec; - - @ffi.Int() - external int tm_min; - - @ffi.Int() - external int tm_hour; - - @ffi.Int() - external int tm_mday; - - @ffi.Int() - external int tm_mon; - - @ffi.Int() - external int tm_year; - - @ffi.Int() - external int tm_wday; - - @ffi.Int() - external int tm_yday; - - @ffi.Int() - external int tm_isdst; - - @ffi.Long() - external int tm_gmtoff; - - external ffi.Pointer tm_zone; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int tm_sec, - required int tm_min, - required int tm_hour, - required int tm_mday, - required int tm_mon, - required int tm_year, - required int tm_wday, - required int tm_yday, - required int tm_isdst, - required int tm_gmtoff, - required ffi.Pointer tm_zone, - }) => $allocator() - ..ref.tm_sec = tm_sec - ..ref.tm_min = tm_min - ..ref.tm_hour = tm_hour - ..ref.tm_mday = tm_mday - ..ref.tm_mon = tm_mon - ..ref.tm_year = tm_year - ..ref.tm_wday = tm_wday - ..ref.tm_yday = tm_yday - ..ref.tm_isdst = tm_isdst - ..ref.tm_gmtoff = tm_gmtoff - ..ref.tm_zone = tm_zone; -} - -const int tmfoErr = -42; - -const int tmwdoErr = -121; - -const int togChar12HourBit = 30; - -const int togCharZCycleBit = 29; - -const int togDelta12HourBit = 28; - -const int toggleBadChar = 4; - -const int toggleBadDelta = 3; - -const int toggleBadField = 2; - -const int toggleBadNum = 6; - -const int toggleErr3 = 7; - -const int toggleErr4 = 8; - -const int toggleErr5 = 9; - -const int toggleOK = 1; - -const int toggleOutOfRange = 7; - -const int toggleUndefined = 0; - -const int toggleUnknown = 5; - -const int tokDecPoint = 14; - -const int tokEMinus = 16; - -const int tokEPlus = 15; - -const int tokEscape = 13; - -const int tokLeadPlacer = 3; - -const int tokLeader = 4; - -const int tokLeftQuote = 1; - -const int tokMaxSymbols = 31; - -const int tokMinusSign = 9; - -const int tokNonLeader = 5; - -const int tokPercent = 7; - -const int tokPlusSign = 8; - -const int tokReserved = 11; - -const int tokRightQuote = 2; - -const int tokSeparator = 12; - -const int tokThousands = 10; - -const int tokZeroLead = 6; - -@Deprecated('Deprecated') -const int token1Quote = 52; - -@Deprecated('Deprecated') -const int token2Equal = 38; - -@Deprecated('Deprecated') -const int token2Quote = 51; - -@Deprecated('Deprecated') -const int tokenAlpha = 4; - -@Deprecated('Deprecated') -const int tokenAltNum = 11; - -@Deprecated('Deprecated') -const int tokenAltReal = 13; - -@Deprecated('Deprecated') -const int tokenAmpersand = 57; - -@Deprecated('Deprecated') -const int tokenAsterisk = 26; - -@Deprecated('Deprecated') -const int tokenAtSign = 58; - -@Deprecated('Deprecated') -const int tokenBackSlash = 30; - -@Deprecated('Deprecated') -const int tokenBar = 59; - -@Deprecated('Deprecated') -const int tokenCapPi = 66; - -@Deprecated('Deprecated') -const int tokenCarat = 55; - -@Deprecated('Deprecated') -const int tokenCaret = 55; - -@Deprecated('Deprecated') -const int tokenCenterDot = 78; - -@Deprecated('Deprecated') -const int tokenColon = 68; - -@Deprecated('Deprecated') -const int tokenColonEqual = 39; - -@Deprecated('Deprecated') -const int tokenComma = 45; - -@Deprecated('Deprecated') -const int tokenDivide = 27; - -@Deprecated('Deprecated') -const int tokenDollar = 70; - -@Deprecated('Deprecated') -const int tokenEllipsis = 77; - -@Deprecated('Deprecated') -const int tokenEmpty = -1; - -@Deprecated('Deprecated') -const int tokenEqual = 33; - -const int tokenErr = 33024; - -@Deprecated('Deprecated') -const int tokenEscape = 10; - -@Deprecated('Deprecated') -const int tokenExclam = 43; - -@Deprecated('Deprecated') -const int tokenExclamEqual = 42; - -@Deprecated('Deprecated') -const int tokenFraction = 72; - -@Deprecated('Deprecated') -const int tokenGreat = 32; - -@Deprecated('Deprecated') -const int tokenGreatEqual1 = 37; - -@Deprecated('Deprecated') -const int tokenGreatEqual2 = 36; - -@Deprecated('Deprecated') -const int tokenHash = 69; - -@Deprecated('Deprecated') -const int tokenInfinity = 67; - -@Deprecated('Deprecated') -const int tokenIntegral = 64; - -@Deprecated('Deprecated') -const int tokenIntl = 4; - -@Deprecated('Deprecated') -const int tokenIntlCurrency = 73; - -@Deprecated('Deprecated') -const int tokenLeft1Quote = 49; - -@Deprecated('Deprecated') -const int tokenLeft2Quote = 47; - -@Deprecated('Deprecated') -const int tokenLeftBracket = 18; - -@Deprecated('Deprecated') -const int tokenLeftComment = 7; - -@Deprecated('Deprecated') -const int tokenLeftCurly = 20; - -@Deprecated('Deprecated') -const int tokenLeftEnclose = 22; - -@Deprecated('Deprecated') -const int tokenLeftLit = 2; - -@Deprecated('Deprecated') -const int tokenLeftParen = 16; - -@Deprecated('Deprecated') -const int tokenLeftSingGuillemet = 74; - -@Deprecated('Deprecated') -const int tokenLess = 31; - -@Deprecated('Deprecated') -const int tokenLessEqual1 = 35; - -@Deprecated('Deprecated') -const int tokenLessEqual2 = 34; - -@Deprecated('Deprecated') -const int tokenLessGreat = 41; - -@Deprecated('Deprecated') -const int tokenLiteral = 9; - -@Deprecated('Deprecated') -const int tokenMicro = 65; - -@Deprecated('Deprecated') -const int tokenMinus = 25; - -@Deprecated('Deprecated') -const int tokenNewLine = 6; - -@Deprecated('Deprecated') -const int tokenNil = 127; - -@Deprecated('Deprecated') -const int tokenNoBreakSpace = 71; - -@Deprecated('Deprecated') -const int tokenNotEqual = 40; - -@Deprecated('Deprecated') -const int tokenNumeric = 5; - -@Deprecated('Deprecated') -const int tokenOK = 0; - -@Deprecated('Deprecated') -const int tokenOverflow = 1; - -@Deprecated('Deprecated') -const int tokenPerThousand = 76; - -@Deprecated('Deprecated') -const int tokenPercent = 54; - -@Deprecated('Deprecated') -const int tokenPeriod = 46; - -@Deprecated('Deprecated') -const int tokenPi = 61; - -@Deprecated('Deprecated') -const int tokenPlus = 24; - -@Deprecated('Deprecated') -const int tokenPlusMinus = 28; - -@Deprecated('Deprecated') -const int tokenQuestion = 60; - -@Deprecated('Deprecated') -const int tokenRealNum = 12; - -@Deprecated('Deprecated') -const int tokenReserve1 = 14; - -@Deprecated('Deprecated') -const int tokenReserve2 = 15; - -@Deprecated('Deprecated') -const int tokenRight1Quote = 50; - -@Deprecated('Deprecated') -const int tokenRight2Quote = 48; - -@Deprecated('Deprecated') -const int tokenRightBracket = 19; - -@Deprecated('Deprecated') -const int tokenRightComment = 8; - -@Deprecated('Deprecated') -const int tokenRightCurly = 21; - -@Deprecated('Deprecated') -const int tokenRightEnclose = 23; - -@Deprecated('Deprecated') -const int tokenRightLit = 3; - -@Deprecated('Deprecated') -const int tokenRightParen = 17; - -@Deprecated('Deprecated') -const int tokenRightSingGuillemet = 75; - -@Deprecated('Deprecated') -const int tokenRoot = 62; - -@Deprecated('Deprecated') -const int tokenSemicolon = 53; - -@Deprecated('Deprecated') -const int tokenSigma = 63; - -@Deprecated('Deprecated') -const int tokenSlash = 29; - -@Deprecated('Deprecated') -const int tokenTilda = 44; - -@Deprecated('Deprecated') -const int tokenTilde = 44; - -@Deprecated('Deprecated') -const int tokenUnderline = 56; - -@Deprecated('Deprecated') -const int tokenUnknown = 0; - -@Deprecated('Deprecated') -const int tokenWhite = 1; - -typedef token_t = au_token; - -const int tooManyReqs = -1097; - -const int tooManySeps = 32; - -const int tooManySkts = -1098; - -const int trackIDNotFound = -2029; - -const int trackNotInMovie = -2030; - -const int trashIconResource = -3993; - -const int true$ = 1; - -@Deprecated('Deprecated') -const int true32b = 1; - -const int tsmAlreadyRegisteredErr = -2503; - -const int tsmCantChangeForcedClassStateErr = -2530; - -const int tsmCantOpenComponentErr = -2509; - -const int tsmComponentAlreadyOpenErr = -2515; - -const int tsmComponentNoErr = 0; - -const int tsmComponentPropertyNotFoundErr = -2532; - -const int tsmComponentPropertyUnsupportedErr = -2531; - -const int tsmDefaultIsNotInputMethodErr = -2524; - -const int tsmDocNotActiveErr = -2507; - -const int tsmDocPropertyBufferTooSmallErr = -2529; - -const int tsmDocPropertyNotFoundErr = -2528; - -const int tsmDocumentOpenErr = -2511; - -const int tsmInputMethodIsOldErr = -2516; - -const int tsmInputMethodNotFoundErr = -2501; - -const int tsmInputModeChangeFailedErr = -2533; - -const int tsmInvalidContext = -2520; - -const int tsmInvalidDocIDErr = -2505; - -const int tsmNeverRegisteredErr = -2504; - -const int tsmNoHandler = -2521; - -const int tsmNoMoreTokens = -2522; - -const int tsmNoOpenTSErr = -2508; - -const int tsmNoStem = -2523; - -const int tsmNotAnAppErr = -2502; - -const int tsmScriptHasNoIMErr = -2517; - -const int tsmTSHasNoMenuErr = -2513; - -const int tsmTSMDocBusyErr = -2506; - -const int tsmTSNotOpenErr = -2514; - -const int tsmTextServiceNotFoundErr = -2510; - -const int tsmUnknownErr = -2519; - -const int tsmUnsupScriptLanguageErr = -2500; - -const int tsmUnsupportedTypeErr = -2518; - -const int tsmUseInputWindowErr = -2512; - -const int ttDisabled = 1; - -const int ttLabel1 = 256; - -const int ttLabel2 = 512; - -const int ttLabel3 = 768; - -const int ttLabel4 = 1024; - -const int ttLabel5 = 1280; - -const int ttLabel6 = 1536; - -const int ttLabel7 = 1792; - -const int ttNone = 0; - -const int ttOffline = 2; - -const int ttOpen = 3; - -const int ttSelected = 16384; - -const int ttSelectedDisabled = 16385; - -const int ttSelectedOffline = 16386; - -const int ttSelectedOpen = 16387; - -const int tuneParseOSErr = -2087; - -const int tunePlayerFullOSErr = -2086; - -const int twoSideErr = -78; - -const int type128BitFloatingPoint = 1818518124; - -const int typeAEList = 1818850164; - -const int typeAERecord = 1919247215; - -const int typeAEText = 1951684692; - -const int typeAbsoluteOrdinal = 1633842031; - -const int typeAlias = 1634494835; - -const int typeAppParameters = 1634758753; - -const int typeApplSignature = 1936287598; - -const int typeAppleEvent = 1634039412; - -const int typeApplicationBundleID = 1651863140; - -const int typeApplicationURL = 1634759276; - -const int typeArc = 1667330659; - -const int typeAuditToken = 1953459054; - -const int typeBest = 1650815860; - -const int typeBookmarkData = 1651339883; - -const int typeBoolean = 1651470188; - -const int typeCFAbsoluteTime = 1667654004; - -const int typeCFArrayRef = 1667654002; - -const int typeCFAttributedStringRef = 1667654003; - -const int typeCFBooleanRef = 1667658854; - -const int typeCFDictionaryRef = 1667654755; - -const int typeCFMutableArrayRef = 1667657057; - -const int typeCFMutableAttributedStringRef = 1667653985; - -const int typeCFMutableDictionaryRef = 1667657060; - -const int typeCFMutableStringRef = 1667657075; - -const int typeCFNumberRef = 1667657314; - -const int typeCFStringRef = 1667658612; - -const int typeCFTypeRef = 1667658873; - -const int typeCString = 1668510834; - -const int typeCell = 1667458412; - -const int typeCentimeters = 1668117618; - -const int typeChar = 1413830740; - -const int typeClassInfo = 1734569065; - -const int typeColorTable = 1668051572; - -const int typeColumn = 1667460972; - -const int typeCompDescriptor = 1668116580; - -const int typeComponentInstance = 1668116585; - -const int typeCubicCentimeter = 1667460468; - -const int typeCubicFeet = 1667655028; - -const int typeCubicInches = 1668639086; - -const int typeCubicMeters = 1668113780; - -const int typeCubicYards = 1668903524; - -const int typeCurrentContainer = 1667460724; - -const int typeDashStyle = 1952735603; - -const int typeData = 1952740449; - -const int typeDecimalStruct = 1684366189; - -const int typeDegreesC = 1684367203; - -const int typeDegreesF = 1684367206; - -const int typeDegreesK = 1684367211; - -const int typeDrawingArea = 1667527287; - -const int typeEPS = 1162892064; - -const int typeElemInfo = 1701603694; - -const int typeEncodedString = 1701733235; - -const int typeEnumerated = 1701737837; - -const int typeEnumeration = 1701737837; - -const int typeEventInfo = 1702259054; - -const int typeEventRecord = 1702261347; - -const int typeEventRef = 1702261350; - -const int typeFSRef = 1718841958; - -const int typeFalse = 1717660787; - -const int typeFeet = 1717921140; - -const int typeFileURL = 1718973036; - -const int typeFinderWindow = 1719101806; - -const int typeFixed = 1718188132; - -const int typeFixedPoint = 1718644340; - -const int typeFixedRectangle = 1718772596; - -const int typeGIF = 1195984486; - -const int typeGallons = 1734437998; - -const int typeGlyphInfoArray = 1735158113; - -const int typeGrams = 1735549293; - -const int typeGraphicLine = 1735158126; - -const int typeGraphicText = 1667724408; - -const int typeGroupedGraphic = 1668311395; - -const int typeHIMenu = 1836016234; - -const int typeHIWindow = 2003788394; - -const int typeIEEE32BitFloatingPoint = 1936289383; - -const int typeIEEE64BitFloatingPoint = 1685026146; - -const int typeISO8601DateTime = 1769172852; - -const int typeInches = 1768842088; - -const int typeIndexDescriptor = 1768842341; - -const int typeInsertionLoc = 1768846188; - -const int typeIntlText = 1769240692; - -const int typeIntlWritingCode = 1768846444; - -const int typeJPEG = 1246774599; - -const int typeKernelProcessID = 1802529124; - -const int typeKeyword = 1801812343; - -const int typeKilograms = 1801941613; - -const int typeKilometers = 1802335346; - -const int typeLiters = 1818850418; - -const int typeLogicalDescriptor = 1819240297; - -const int typeLongDateTime = 1818522656; - -const int typeLongFixed = 1818654820; - -const int typeLongFixedPoint = 1818652788; - -const int typeLongFixedRectangle = 1818653283; - -const int typeLongPoint = 1819307636; - -const int typeLongRectangle = 1819435892; - -const int typeLowLevelEventRecord = 1702261874; - -const int typeMachPort = 1886351988; - -const int typeMachineLoc = 1833725795; - -const int typeMeters = 1835365490; - -const int typeMiles = 1835625573; - -const int typeNull = 1853189228; - -const int typeOSLTokenList = 1869837420; - -const int typeObjectBeingExamined = 1702391150; - -const int typeObjectSpecifier = 1868720672; - -const int typeOffsetArray = 1868980601; - -const int typeOunces = 1870295840; - -const int typeOval = 1668249196; - -const int typePString = 1886614642; - -const int typeParamInfo = 1886218606; - -const int typePict = 1346978644; - -const int typePixMapMinus = 1953525101; - -const int typePixelMap = 1668311416; - -const int typePolygon = 1668310894; - -const int typePounds = 1818391328; - -const int typeProcessSerialNumber = 1886613024; - -const int typePropInfo = 1885957734; - -const int typeProperty = 1886547824; - -const int typePtr = 1886679584; - -const int typeQDPoint = 1363439732; - -const int typeQDRectangle = 1902408308; - -const int typeQDRegion = 1366452078; - -const int typeQuarts = 1903326323; - -const int typeRGB16 = 1953640758; - -const int typeRGB96 = 1953642806; - -const int typeRGBColor = 1666336578; - -const int typeRangeDescriptor = 1918987879; - -const int typeRectangle = 1668441443; - -const int typeRelativeDescriptor = 1919249440; - -const int typeReplyPortAttr = 1919250544; - -const int typeRotation = 1953656692; - -const int typeRoundedRectangle = 1668444771; - -const int typeRow = 1668444023; - -const int typeSInt16 = 1936224114; - -const int typeSInt32 = 1819242087; - -const int typeSInt64 = 1668246896; - -const int typeScrapStyles = 1937013100; - -const int typeScript = 1935896692; - -const int typeSectionH = 1936024436; - -const int typeSquareFeet = 1936811636; - -const int typeSquareKilometers = 1936812909; - -const int typeSquareMeters = 1936814701; - -const int typeSquareMiles = 1936813417; - -const int typeSquareYards = 1936816484; - -const int typeStyledText = 1398036564; - -const int typeStyledUnicodeText = 1937077368; - -const int typeSuiteInfo = 1937074542; - -const int typeTIFF = 1414088262; - -const int typeTable = 1668571756; - -const int typeText = 1413830740; - -const int typeTextRange = 1954050670; - -const int typeTextRangeArray = 1953653113; - -const int typeTextStyles = 1953723513; - -const int typeToken = 1953459045; - -const int typeTrue = 1953658213; - -const int typeType = 1954115685; - -const int typeUInt16 = 1970497650; - -const int typeUInt32 = 1835100014; - -const int typeUInt64 = 1969450861; - -const int typeUTF16ExternalRepresentation = 1970549046; - -const int typeUTF8Text = 1970562616; - -const int typeUnicodeText = 1970567284; - -const int typeVersion = 1986359923; - -const int typeWhoseDescriptor = 2003332979; - -const int typeWhoseRange = 2003988071; - -const int typeWildCard = 707406378; - -const int typeYards = 2036429412; - -typedef u_char = ffi.UnsignedChar; -typedef Dartu_char = int; -typedef u_int = ffi.UnsignedInt; -typedef Dartu_int = int; -typedef u_int16_t = ffi.UnsignedShort; -typedef Dartu_int16_t = int; -typedef u_int32_t = ffi.UnsignedInt; -typedef Dartu_int32_t = int; -typedef u_int64_t = ffi.UnsignedLongLong; -typedef Dartu_int64_t = int; -typedef u_int8_t = ffi.UnsignedChar; -typedef Dartu_int8_t = int; -typedef u_long = ffi.UnsignedLong; -typedef Dartu_long = int; -typedef u_quad_t = u_int64_t; -typedef u_short = ffi.UnsignedShort; -typedef Dartu_short = int; -typedef ucontext_t = __darwin_ucontext; -typedef uext_object_t = io_object_t; -typedef uid_t = __darwin_uid_t; -typedef uint = ffi.UnsignedInt; -typedef Dartuint = int; -typedef uint16 = ffi.Uint16; -typedef Dartuint16 = int; -typedef uint32 = ffi.Uint32; -typedef Dartuint32 = int; -typedef uint64 = ffi.Uint64; -typedef Dartuint64 = int; -typedef uint8 = ffi.Uint8; -typedef Dartuint8 = int; -typedef uint_fast16_t = ffi.Uint16; -typedef Dartuint_fast16_t = int; -typedef uint_fast32_t = ffi.Uint32; -typedef Dartuint_fast32_t = int; -typedef uint_fast64_t = ffi.Uint64; -typedef Dartuint_fast64_t = int; -typedef uint_fast8_t = ffi.Uint8; -typedef Dartuint_fast8_t = int; -typedef uint_least16_t = ffi.Uint16; -typedef Dartuint_least16_t = int; -typedef uint_least32_t = ffi.Uint32; -typedef Dartuint_least32_t = int; -typedef uint_least64_t = ffi.Uint64; -typedef Dartuint_least64_t = int; -typedef uint_least8_t = ffi.Uint8; -typedef Dartuint_least8_t = int; -typedef uintmax_t = ffi.UnsignedLong; -typedef Dartuintmax_t = int; - -const int underline = 4; - -const int undoDev = 9; - -typedef unichar = ffi.UnsignedShort; -typedef Dartunichar = int; - -const int unicodeBufErr = -8764; - -const int unicodeCharErr = -8763; - -const int unicodeChecksumErr = -8769; - -const int unicodeContextualErr = -8758; - -const int unicodeDirectionErr = -8759; - -const int unicodeElementErr = -8762; - -const int unicodeFallbacksErr = -8766; - -const int unicodeNoTableErr = -8768; - -const int unicodeNotFoundErr = -8761; - -const int unicodePartConvertErr = -8765; - -const int unicodeTableFormatErr = -8760; - -const int unicodeTextEncodingDataErr = -8757; - -const int unicodeVariantErr = -8767; - -const int unimpErr = -4; - -const int unitEmptyErr = -22; - -const int unitTblFullErr = -29; - -const int unknownFormatErr = -2114; - -const int unknownInsertModeErr = -20000; - -const int unresolvedComponentDLLErr = -3004; - -const int unsupportedAuxiliaryImportData = -2057; - -const int unsupportedForPlatformErr = -1858; - -const int unsupportedOSErr = -2096; - -const int unsupportedProcessorErr = -2097; - -const int updPixMemErr = -125; - -const int updateDev = 4; - -typedef upl_t = mach_port_t; -@Deprecated('Deprecated') -const int uppCallComponentCanDoProcInfo = 752; - -@Deprecated('Deprecated') -const int uppCallComponentCloseProcInfo = 1008; - -@Deprecated('Deprecated') -const int uppCallComponentGetMPWorkFunctionProcInfo = 4080; - -@Deprecated('Deprecated') -const int uppCallComponentGetPublicResourceProcInfo = 15344; - -@Deprecated('Deprecated') -const int uppCallComponentOpenProcInfo = 1008; - -@Deprecated('Deprecated') -const int uppCallComponentRegisterProcInfo = 240; - -@Deprecated('Deprecated') -const int uppCallComponentTargetProcInfo = 1008; - -@Deprecated('Deprecated') -const int uppCallComponentUnregisterProcInfo = 240; - -@Deprecated('Deprecated') -const int uppCallComponentVersionProcInfo = 240; - -@Deprecated('Deprecated') -const int uppComponentFunctionImplementedProcInfo = 752; - -@Deprecated('Deprecated') -const int uppComponentSetTargetProcInfo = 1008; - -@Deprecated('Deprecated') -const int uppGetComponentVersionProcInfo = 240; - -const int urlDataHFTPBadNameListErr = -2144; - -const int urlDataHFTPBadPasswordErr = -2136; - -const int urlDataHFTPBadUserErr = -2135; - -const int urlDataHFTPDataConnectionErr = -2138; - -const int urlDataHFTPFilenameErr = -2142; - -const int urlDataHFTPNeedPasswordErr = -2145; - -const int urlDataHFTPNoDirectoryErr = -2139; - -const int urlDataHFTPNoNetDriverErr = -2143; - -const int urlDataHFTPNoPasswordErr = -2146; - -const int urlDataHFTPPermissionsErr = -2141; - -const int urlDataHFTPProtocolErr = -2133; - -const int urlDataHFTPQuotaErr = -2140; - -const int urlDataHFTPServerDisconnectedErr = -2147; - -const int urlDataHFTPServerErr = -2137; - -const int urlDataHFTPShutdownErr = -2134; - -const int urlDataHFTPURLErr = -2148; - -const int urlDataHHTTPNoNetDriverErr = -2130; - -const int urlDataHHTTPProtocolErr = -2129; - -const int urlDataHHTTPRedirectErr = -2132; - -const int urlDataHHTTPURLErr = -2131; - -@Deprecated('Deprecated') -const int useATalk = 1; - -@Deprecated('Deprecated') -const int useAsync = 2; - -@Deprecated('Deprecated') -const int useExtClk = 3; - -@Deprecated('Deprecated') -const int useFree = 0; - -@Deprecated('Deprecated') -const int useMIDI = 4; - -typedef useconds_t = __darwin_useconds_t; - -const int userBreak = -490; - -const int userCanceledErr = -128; - -const int userDataItemNotFound = -2026; - -const int userRejectErr = -912; - -typedef user_addr_t = u_int64_t; -typedef user_long_t = ffi.Int64; -typedef Dartuser_long_t = int; -typedef user_off_t = ffi.Int64; -typedef Dartuser_off_t = int; -typedef user_size_t = u_int64_t; -typedef user_ssize_t = ffi.Int64; -typedef Dartuser_ssize_t = int; -typedef user_subsystem_t = ffi.Pointer; -typedef user_time_t = ffi.Int64; -typedef Dartuser_time_t = int; -typedef user_ulong_t = u_int64_t; -typedef ushort = ffi.UnsignedShort; -typedef Dartushort = int; - -const int vLckdErr = -46; - -const int vTypErr = -2; - -@Deprecated('Deprecated') -const int vType = 1; - -typedef va_list = ffi.Pointer; - -const int validDateFields = -1; - -const int validInstancesExist = -3001; - -const int variationFontTableTag = 1719034226; - -@Deprecated('Deprecated') -const int verAfrikaans = 102; - -@Deprecated('Deprecated') -const int verAlternateGr = 64; - -@Deprecated('Deprecated') -const int verArabia = 16; - -@Deprecated('Deprecated') -const int verArabic = 16; - -@Deprecated('Deprecated') -const int verArmenia = 84; - -@Deprecated('Deprecated') -const int verArmenian = 84; - -@Deprecated('Deprecated') -const int verAustralia = 15; - -@Deprecated('Deprecated') -const int verAustria = 92; - -@Deprecated('Deprecated') -const int verAustriaGerman = 92; - -@Deprecated('Deprecated') -const int verBelarus = 61; - -@Deprecated('Deprecated') -const int verBelgiumLux = 6; - -@Deprecated('Deprecated') -const int verBelgiumLuxPoint = 27; - -@Deprecated('Deprecated') -const int verBengali = 60; - -@Deprecated('Deprecated') -const int verBhutan = 83; - -@Deprecated('Deprecated') -const int verBrazil = 71; - -@Deprecated('Deprecated') -const int verBreton = 77; - -@Deprecated('Deprecated') -const int verBritain = 2; - -@Deprecated('Deprecated') -const int verBrittany = 77; - -@Deprecated('Deprecated') -const int verBulgaria = 72; - -@Deprecated('Deprecated') -const int verByeloRussian = 61; - -@Deprecated('Deprecated') -const int verCanadaComma = 28; - -@Deprecated('Deprecated') -const int verCanadaPoint = 29; - -@Deprecated('Deprecated') -const int verCatalonia = 73; - -@Deprecated('Deprecated') -const int verChina = 52; - -@Deprecated('Deprecated') -const int verCroatia = 68; - -@Deprecated('Deprecated') -const int verCyprus = 23; - -@Deprecated('Deprecated') -const int verCzech = 56; - -@Deprecated('Deprecated') -const int verDenmark = 9; - -@Deprecated('Deprecated') -const int verEastAsiaGeneric = 58; - -@Deprecated('Deprecated') -const int verEngCanada = 82; - -const int verErr = -84; - -@Deprecated('Deprecated') -const int verEsperanto = 103; - -@Deprecated('Deprecated') -const int verEstonia = 44; - -@Deprecated('Deprecated') -const int verFaeroeIsl = 47; - -@Deprecated('Deprecated') -const int verFarEastGeneric = 58; - -@Deprecated('Deprecated') -const int verFaroeIsl = 47; - -@Deprecated('Deprecated') -const int verFinland = 17; - -@Deprecated('Deprecated') -const int verFlemish = 6; - -@Deprecated('Deprecated') -const int verFlemishPoint = 27; - -@Deprecated('Deprecated') -const int verFrBelgium = 98; - -@Deprecated('Deprecated') -const int verFrBelgiumLux = 6; - -@Deprecated('Deprecated') -const int verFrCanada = 11; - -@Deprecated('Deprecated') -const int verFrSwiss = 18; - -@Deprecated('Deprecated') -const int verFrance = 1; - -@Deprecated('Deprecated') -const int verFrenchUniversal = 91; - -@Deprecated('Deprecated') -const int verGenericFE = 58; - -@Deprecated('Deprecated') -const int verGeorgia = 85; - -@Deprecated('Deprecated') -const int verGeorgian = 85; - -@Deprecated('Deprecated') -const int verGermanReformed = 70; - -@Deprecated('Deprecated') -const int verGermany = 3; - -@Deprecated('Deprecated') -const int verGrSwiss = 19; - -@Deprecated('Deprecated') -const int verGreece = 20; - -@Deprecated('Deprecated') -const int verGreeceAlt = 64; - -@Deprecated('Deprecated') -const int verGreecePoly = 40; - -@Deprecated('Deprecated') -const int verGreekAncient = 40; - -@Deprecated('Deprecated') -const int verGreenland = 107; - -@Deprecated('Deprecated') -const int verGujarati = 94; - -@Deprecated('Deprecated') -const int verHungary = 43; - -@Deprecated('Deprecated') -const int verIceland = 21; - -@Deprecated('Deprecated') -const int verIndia = 33; - -@Deprecated('Deprecated') -const int verIndiaHindi = 33; - -@Deprecated('Deprecated') -const int verIndiaUrdu = 96; - -@Deprecated('Deprecated') -const int verInternational = 37; - -@Deprecated('Deprecated') -const int verIran = 48; - -@Deprecated('Deprecated') -const int verIreland = 50; - -@Deprecated('Deprecated') -const int verIrelandEnglish = 108; - -@Deprecated('Deprecated') -const int verIrishGaelicScript = 81; - -@Deprecated('Deprecated') -const int verIsrael = 13; - -@Deprecated('Deprecated') -const int verItalianSwiss = 36; - -@Deprecated('Deprecated') -const int verItaly = 4; - -@Deprecated('Deprecated') -const int verJapan = 14; - -@Deprecated('Deprecated') -const int verKorea = 51; - -@Deprecated('Deprecated') -const int verLapland = 46; - -@Deprecated('Deprecated') -const int verLatvia = 45; - -@Deprecated('Deprecated') -const int verLithuania = 41; - -@Deprecated('Deprecated') -const int verMacedonia = 67; - -@Deprecated('Deprecated') -const int verMacedonian = 67; - -@Deprecated('Deprecated') -const int verMagyar = 59; - -@Deprecated('Deprecated') -const int verMalta = 22; - -@Deprecated('Deprecated') -const int verManxGaelic = 76; - -@Deprecated('Deprecated') -const int verMarathi = 104; - -@Deprecated('Deprecated') -const int verMultilingual = 74; - -@Deprecated('Deprecated') -const int verNepal = 106; - -@Deprecated('Deprecated') -const int verNetherlands = 5; - -@Deprecated('Deprecated') -const int verNetherlandsComma = 26; - -@Deprecated('Deprecated') -const int verNorway = 12; - -@Deprecated('Deprecated') -const int verNunavut = 78; - -@Deprecated('Deprecated') -const int verNynorsk = 101; - -@Deprecated('Deprecated') -const int verPakistan = 34; - -@Deprecated('Deprecated') -const int verPakistanUrdu = 34; - -@Deprecated('Deprecated') -const int verPoland = 42; - -@Deprecated('Deprecated') -const int verPortugal = 10; - -@Deprecated('Deprecated') -const int verPunjabi = 95; - -@Deprecated('Deprecated') -const int verRomania = 39; - -@Deprecated('Deprecated') -const int verRumania = 39; - -@Deprecated('Deprecated') -const int verRussia = 49; - -@Deprecated('Deprecated') -const int verSami = 46; - -@Deprecated('Deprecated') -const int verScottishGaelic = 75; - -@Deprecated('Deprecated') -const int verScriptGeneric = 55; - -@Deprecated('Deprecated') -const int verSerbia = 65; - -@Deprecated('Deprecated') -const int verSerbian = 65; - -@Deprecated('Deprecated') -const int verSingapore = 100; - -@Deprecated('Deprecated') -const int verSlovak = 57; - -@Deprecated('Deprecated') -const int verSlovenia = 66; - -@Deprecated('Deprecated') -const int verSlovenian = 66; - -@Deprecated('Deprecated') -const int verSpLatinAmerica = 86; - -@Deprecated('Deprecated') -const int verSpain = 8; - -@Deprecated('Deprecated') -const int verSweden = 7; - -@Deprecated('Deprecated') -const int verTaiwan = 53; - -@Deprecated('Deprecated') -const int verThailand = 54; - -@Deprecated('Deprecated') -const int verTibet = 105; - -@Deprecated('Deprecated') -const int verTibetan = 105; - -@Deprecated('Deprecated') -const int verTonga = 88; - -@Deprecated('Deprecated') -const int verTurkey = 24; - -@Deprecated('Deprecated') -const int verTurkishModified = 35; - -@Deprecated('Deprecated') -const int verUS = 0; - -@Deprecated('Deprecated') -const int verUkraine = 62; - -@Deprecated('Deprecated') -const int verUkrania = 62; - -const int verUnspecified = 32767; - -@Deprecated('Deprecated') -const int verUzbek = 99; - -@Deprecated('Deprecated') -const int verVietnam = 97; - -@Deprecated('Deprecated') -const int verWales = 79; - -@Deprecated('Deprecated') -const int verWelsh = 79; - -@Deprecated('Deprecated') -const int verYugoCroatian = 25; - -@Deprecated('Deprecated') -const int verYugoslavia = 25; - -@Deprecated('Deprecated') -const int vervariantDenmark = 32; - -@Deprecated('Deprecated') -const int vervariantNorway = 31; - -@Deprecated('Deprecated') -const int vervariantPortugal = 30; - -const int videoOutputInUseErr = -2090; - -enum virtual_memory_guard_exception_code_t { - kGUARD_EXC_DEALLOC_GAP(1), - kGUARD_EXC_RECLAIM_COPYIO_FAILURE(2), - kGUARD_EXC_RECLAIM_INDEX_FAILURE(4), - kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE(8), - kGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE(9), - kGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE(10), - kGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE(11), - kGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION(12), - kGUARD_EXC_SEC_ACCESS_FAULT(98), - kGUARD_EXC_SEC_ASYNC_ACCESS_FAULT(99), - kGUARD_EXC_SEC_COPY_DENIED(100), - kGUARD_EXC_SEC_SHARING_DENIED(101); - - final int value; - const virtual_memory_guard_exception_code_t(this.value); - - static virtual_memory_guard_exception_code_t fromValue(int value) => - switch (value) { - 1 => kGUARD_EXC_DEALLOC_GAP, - 2 => kGUARD_EXC_RECLAIM_COPYIO_FAILURE, - 4 => kGUARD_EXC_RECLAIM_INDEX_FAILURE, - 8 => kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE, - 9 => kGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE, - 10 => kGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE, - 11 => kGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE, - 12 => kGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION, - 98 => kGUARD_EXC_SEC_ACCESS_FAULT, - 99 => kGUARD_EXC_SEC_ASYNC_ACCESS_FAULT, - 100 => kGUARD_EXC_SEC_COPY_DENIED, - 101 => kGUARD_EXC_SEC_SHARING_DENIED, - _ => throw ArgumentError( - 'Unknown value for virtual_memory_guard_exception_code_t: $value', - ), - }; -} - -typedef vm32_address_t = ffi.Uint32; -typedef Dartvm32_address_t = int; -typedef vm32_object_id_t = ffi.Uint32; -typedef Dartvm32_object_id_t = int; -typedef vm32_offset_t = ffi.Uint32; -typedef Dartvm32_offset_t = int; -typedef vm32_size_t = ffi.Uint32; -typedef Dartvm32_size_t = int; - -const int vmAddressNotInFileViewErr = -647; - -const int vmBadDriver = -632; - -const int vmBusyBackingFileErr = -642; - -const int vmFileViewAccessErr = -645; - -const int vmInvalidBackingFileIDErr = -640; - -const int vmInvalidFileViewIDErr = -644; - -const int vmInvalidOwningProcessErr = -648; - -const int vmKernelMMUInitErr = -629; - -const int vmMappingPrivilegesErr = -641; - -const int vmMemLckdErr = -631; - -const int vmMorePhysicalThanVirtualErr = -628; - -const int vmNoMoreBackingFilesErr = -643; - -const int vmNoMoreFileViewsErr = -646; - -const int vmNoVectorErr = -633; - -const int vmOffErr = -630; - -typedef vm_address_t = vm_offset_t; -typedef vm_behavior_t = ffi.Int; -typedef Dartvm_behavior_t = int; - -final class vm_extmod_statistics extends ffi.Struct { - @ffi.Int64() - external int task_for_pid_count; - - @ffi.Int64() - external int task_for_pid_caller_count; - - @ffi.Int64() - external int thread_creation_count; - - @ffi.Int64() - external int thread_creation_caller_count; - - @ffi.Int64() - external int thread_set_state_count; - - @ffi.Int64() - external int thread_set_state_caller_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int task_for_pid_count, - required int task_for_pid_caller_count, - required int thread_creation_count, - required int thread_creation_caller_count, - required int thread_set_state_count, - required int thread_set_state_caller_count, - }) => $allocator() - ..ref.task_for_pid_count = task_for_pid_count - ..ref.task_for_pid_caller_count = task_for_pid_caller_count - ..ref.thread_creation_count = thread_creation_count - ..ref.thread_creation_caller_count = thread_creation_caller_count - ..ref.thread_set_state_count = thread_set_state_count - ..ref.thread_set_state_caller_count = thread_set_state_caller_count; -} - -typedef vm_extmod_statistics_data_t = vm_extmod_statistics; -typedef vm_extmod_statistics_t = ffi.Pointer; - -@ffi.Packed(4) -final class vm_info_object extends ffi.Struct { - @natural_t() - external int vio_object; - - @natural_t() - external int vio_size; - - @ffi.UnsignedInt() - external int vio_ref_count; - - @ffi.UnsignedInt() - external int vio_resident_page_count; - - @ffi.UnsignedInt() - external int vio_absent_count; - - @natural_t() - external int vio_copy; - - @natural_t() - external int vio_shadow; - - @natural_t() - external int vio_shadow_offset; - - @natural_t() - external int vio_paging_offset; - - @memory_object_copy_strategy_t() - external int vio_copy_strategy; - - @vm_offset_t() - external int vio_last_alloc; - - @ffi.UnsignedInt() - external int vio_paging_in_progress; - - @boolean_t() - external int vio_pager_created; - - @boolean_t() - external int vio_pager_initialized; - - @boolean_t() - external int vio_pager_ready; - - @boolean_t() - external int vio_can_persist; - - @boolean_t() - external int vio_internal; - - @boolean_t() - external int vio_temporary; - - @boolean_t() - external int vio_alive; - - @boolean_t() - external int vio_purgable; - - @boolean_t() - external int vio_purgable_volatile; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int vio_object, - required int vio_size, - required int vio_ref_count, - required int vio_resident_page_count, - required int vio_absent_count, - required int vio_copy, - required int vio_shadow, - required int vio_shadow_offset, - required int vio_paging_offset, - required int vio_copy_strategy, - required int vio_last_alloc, - required int vio_paging_in_progress, - required int vio_pager_created, - required int vio_pager_initialized, - required int vio_pager_ready, - required int vio_can_persist, - required int vio_internal, - required int vio_temporary, - required int vio_alive, - required int vio_purgable, - required int vio_purgable_volatile, - }) => $allocator() - ..ref.vio_object = vio_object - ..ref.vio_size = vio_size - ..ref.vio_ref_count = vio_ref_count - ..ref.vio_resident_page_count = vio_resident_page_count - ..ref.vio_absent_count = vio_absent_count - ..ref.vio_copy = vio_copy - ..ref.vio_shadow = vio_shadow - ..ref.vio_shadow_offset = vio_shadow_offset - ..ref.vio_paging_offset = vio_paging_offset - ..ref.vio_copy_strategy = vio_copy_strategy - ..ref.vio_last_alloc = vio_last_alloc - ..ref.vio_paging_in_progress = vio_paging_in_progress - ..ref.vio_pager_created = vio_pager_created - ..ref.vio_pager_initialized = vio_pager_initialized - ..ref.vio_pager_ready = vio_pager_ready - ..ref.vio_can_persist = vio_can_persist - ..ref.vio_internal = vio_internal - ..ref.vio_temporary = vio_temporary - ..ref.vio_alive = vio_alive - ..ref.vio_purgable = vio_purgable - ..ref.vio_purgable_volatile = vio_purgable_volatile; -} - -typedef vm_info_object_array_t = ffi.Pointer; -typedef vm_info_object_t = vm_info_object; - -final class vm_info_region extends ffi.Struct { - @natural_t() - external int vir_start; - - @natural_t() - external int vir_end; - - @natural_t() - external int vir_object; - - @natural_t() - external int vir_offset; - - @boolean_t() - external int vir_needs_copy; - - @vm_prot_t() - external int vir_protection; - - @vm_prot_t() - external int vir_max_protection; - - @vm_inherit_t() - external int vir_inheritance; - - @natural_t() - external int vir_wired_count; - - @natural_t() - external int vir_user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int vir_start, - required int vir_end, - required int vir_object, - required int vir_offset, - required int vir_needs_copy, - required int vir_protection, - required int vir_max_protection, - required int vir_inheritance, - required int vir_wired_count, - required int vir_user_wired_count, - }) => $allocator() - ..ref.vir_start = vir_start - ..ref.vir_end = vir_end - ..ref.vir_object = vir_object - ..ref.vir_offset = vir_offset - ..ref.vir_needs_copy = vir_needs_copy - ..ref.vir_protection = vir_protection - ..ref.vir_max_protection = vir_max_protection - ..ref.vir_inheritance = vir_inheritance - ..ref.vir_wired_count = vir_wired_count - ..ref.vir_user_wired_count = vir_user_wired_count; -} - -@ffi.Packed(4) -final class vm_info_region_64 extends ffi.Struct { - @natural_t() - external int vir_start; - - @natural_t() - external int vir_end; - - @natural_t() - external int vir_object; - - @memory_object_offset_t() - external int vir_offset; - - @boolean_t() - external int vir_needs_copy; - - @vm_prot_t() - external int vir_protection; - - @vm_prot_t() - external int vir_max_protection; - - @vm_inherit_t() - external int vir_inheritance; - - @natural_t() - external int vir_wired_count; - - @natural_t() - external int vir_user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int vir_start, - required int vir_end, - required int vir_object, - required int vir_offset, - required int vir_needs_copy, - required int vir_protection, - required int vir_max_protection, - required int vir_inheritance, - required int vir_wired_count, - required int vir_user_wired_count, - }) => $allocator() - ..ref.vir_start = vir_start - ..ref.vir_end = vir_end - ..ref.vir_object = vir_object - ..ref.vir_offset = vir_offset - ..ref.vir_needs_copy = vir_needs_copy - ..ref.vir_protection = vir_protection - ..ref.vir_max_protection = vir_max_protection - ..ref.vir_inheritance = vir_inheritance - ..ref.vir_wired_count = vir_wired_count - ..ref.vir_user_wired_count = vir_user_wired_count; -} - -typedef vm_info_region_64_t = vm_info_region_64; -typedef vm_info_region_t = vm_info_region; -typedef vm_inherit_t = ffi.UnsignedInt; -typedef Dartvm_inherit_t = int; -typedef vm_machine_attribute_t = ffi.UnsignedInt; -typedef Dartvm_machine_attribute_t = int; -typedef vm_machine_attribute_val_t = ffi.Int; -typedef Dartvm_machine_attribute_val_t = int; -typedef vm_map_address_t = ffi.Uint64; -typedef Dartvm_map_address_t = int; -typedef vm_map_inspect_t = mach_port_t; -typedef vm_map_offset_t = ffi.Uint64; -typedef Dartvm_map_offset_t = int; -typedef vm_map_read_t = mach_port_t; -typedef vm_map_size_t = ffi.Uint64; -typedef Dartvm_map_size_t = int; -typedef vm_map_t = mach_port_t; -typedef vm_named_entry_t = mach_port_t; -typedef vm_object_id_t = ffi.UnsignedLongLong; -typedef Dartvm_object_id_t = int; -typedef vm_object_offset_t = ffi.Uint64; -typedef Dartvm_object_offset_t = int; -typedef vm_object_size_t = ffi.Uint64; -typedef Dartvm_object_size_t = int; -typedef vm_offset_t = ffi.UintPtr; -typedef Dartvm_offset_t = int; - -final class vm_page_info_basic extends ffi.Struct { - @ffi.Int() - external int disposition; - - @ffi.Int() - external int ref_count; - - @vm_object_id_t() - external int object_id; - - @memory_object_offset_t() - external int offset; - - @ffi.Int() - external int depth; - - @ffi.Int() - external int __pad; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int disposition, - required int ref_count, - required int object_id, - required int offset, - required int depth, - required int $pad, - }) => $allocator() - ..ref.disposition = disposition - ..ref.ref_count = ref_count - ..ref.object_id = object_id - ..ref.offset = offset - ..ref.depth = depth - ..ref.__pad = $pad; -} - -typedef vm_page_info_basic_data_t = vm_page_info_basic; -typedef vm_page_info_basic_t = ffi.Pointer; -typedef vm_page_info_flavor_t = ffi.Int; -typedef Dartvm_page_info_flavor_t = int; -typedef vm_page_info_t = ffi.Pointer; -typedef vm_prot_t = ffi.Int; -typedef Dartvm_prot_t = int; -typedef vm_purgable_t = ffi.Int; -typedef Dartvm_purgable_t = int; - -final class vm_purgeable_info extends ffi.Struct { - @ffi.Array.multi([8]) - external ffi.Array fifo_data; - - external vm_purgeable_stat_t obsolete_data; - - @ffi.Array.multi([8]) - external ffi.Array lifo_data; -} - -typedef vm_purgeable_info_t = ffi.Pointer; - -final class vm_purgeable_stat extends ffi.Struct { - @ffi.Uint64() - external int count; - - @ffi.Uint64() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required int size, - }) => $allocator() - ..ref.count = count - ..ref.size = size; -} - -typedef vm_purgeable_stat_t = vm_purgeable_stat; - -@ffi.Packed(4) -final class vm_read_entry extends ffi.Struct { - @vm_address_t() - external int address; - - @vm_size_t() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int address, - required int size, - }) => $allocator() - ..ref.address = address - ..ref.size = size; -} - -final class vm_region_basic_info extends ffi.Struct { - @vm_prot_t() - external int protection; - - @vm_prot_t() - external int max_protection; - - @vm_inherit_t() - external int inheritance; - - @boolean_t() - external int shared; - - @boolean_t() - external int reserved; - - @ffi.Uint32() - external int offset; - - @vm_behavior_t() - external int behavior; - - @ffi.UnsignedShort() - external int user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int max_protection, - required int inheritance, - required int shared, - required int reserved, - required int offset, - required int behavior, - required int user_wired_count, - }) => $allocator() - ..ref.protection = protection - ..ref.max_protection = max_protection - ..ref.inheritance = inheritance - ..ref.shared = shared - ..ref.reserved = reserved - ..ref.offset = offset - ..ref.behavior = behavior - ..ref.user_wired_count = user_wired_count; -} - -@ffi.Packed(4) -final class vm_region_basic_info_64 extends ffi.Struct { - @vm_prot_t() - external int protection; - - @vm_prot_t() - external int max_protection; - - @vm_inherit_t() - external int inheritance; - - @boolean_t() - external int shared; - - @boolean_t() - external int reserved; - - @memory_object_offset_t() - external int offset; - - @vm_behavior_t() - external int behavior; - - @ffi.UnsignedShort() - external int user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int max_protection, - required int inheritance, - required int shared, - required int reserved, - required int offset, - required int behavior, - required int user_wired_count, - }) => $allocator() - ..ref.protection = protection - ..ref.max_protection = max_protection - ..ref.inheritance = inheritance - ..ref.shared = shared - ..ref.reserved = reserved - ..ref.offset = offset - ..ref.behavior = behavior - ..ref.user_wired_count = user_wired_count; -} - -typedef vm_region_basic_info_64_t = ffi.Pointer; -typedef vm_region_basic_info_data_64_t = vm_region_basic_info_64; -typedef vm_region_basic_info_data_t = vm_region_basic_info; -typedef vm_region_basic_info_t = ffi.Pointer; - -final class vm_region_extended_info extends ffi.Struct { - @vm_prot_t() - external int protection; - - @ffi.UnsignedInt() - external int user_tag; - - @ffi.UnsignedInt() - external int pages_resident; - - @ffi.UnsignedInt() - external int pages_shared_now_private; - - @ffi.UnsignedInt() - external int pages_swapped_out; - - @ffi.UnsignedInt() - external int pages_dirtied; - - @ffi.UnsignedInt() - external int ref_count; - - @ffi.UnsignedShort() - external int shadow_depth; - - @ffi.UnsignedChar() - external int external_pager; - - @ffi.UnsignedChar() - external int share_mode; - - @ffi.UnsignedInt() - external int pages_reusable; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int user_tag, - required int pages_resident, - required int pages_shared_now_private, - required int pages_swapped_out, - required int pages_dirtied, - required int ref_count, - required int shadow_depth, - required int external_pager, - required int share_mode, - required int pages_reusable, - }) => $allocator() - ..ref.protection = protection - ..ref.user_tag = user_tag - ..ref.pages_resident = pages_resident - ..ref.pages_shared_now_private = pages_shared_now_private - ..ref.pages_swapped_out = pages_swapped_out - ..ref.pages_dirtied = pages_dirtied - ..ref.ref_count = ref_count - ..ref.shadow_depth = shadow_depth - ..ref.external_pager = external_pager - ..ref.share_mode = share_mode - ..ref.pages_reusable = pages_reusable; -} - -typedef vm_region_extended_info_data_t = vm_region_extended_info; -typedef vm_region_extended_info_t = ffi.Pointer; -typedef vm_region_flavor_t = ffi.Int; -typedef Dartvm_region_flavor_t = int; -typedef vm_region_info_64_t = ffi.Pointer; -typedef vm_region_info_t = ffi.Pointer; -typedef vm_region_recurse_info_64_t = ffi.Pointer; -typedef vm_region_recurse_info_t = ffi.Pointer; - -final class vm_region_submap_info extends ffi.Struct { - @vm_prot_t() - external int protection; - - @vm_prot_t() - external int max_protection; - - @vm_inherit_t() - external int inheritance; - - @ffi.Uint32() - external int offset; - - @ffi.UnsignedInt() - external int user_tag; - - @ffi.UnsignedInt() - external int pages_resident; - - @ffi.UnsignedInt() - external int pages_shared_now_private; - - @ffi.UnsignedInt() - external int pages_swapped_out; - - @ffi.UnsignedInt() - external int pages_dirtied; - - @ffi.UnsignedInt() - external int ref_count; - - @ffi.UnsignedShort() - external int shadow_depth; - - @ffi.UnsignedChar() - external int external_pager; - - @ffi.UnsignedChar() - external int share_mode; - - @boolean_t() - external int is_submap; - - @vm_behavior_t() - external int behavior; - - @vm32_object_id_t() - external int object_id; - - @ffi.UnsignedShort() - external int user_wired_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int max_protection, - required int inheritance, - required int offset, - required int user_tag, - required int pages_resident, - required int pages_shared_now_private, - required int pages_swapped_out, - required int pages_dirtied, - required int ref_count, - required int shadow_depth, - required int external_pager, - required int share_mode, - required int is_submap, - required int behavior, - required int object_id, - required int user_wired_count, - }) => $allocator() - ..ref.protection = protection - ..ref.max_protection = max_protection - ..ref.inheritance = inheritance - ..ref.offset = offset - ..ref.user_tag = user_tag - ..ref.pages_resident = pages_resident - ..ref.pages_shared_now_private = pages_shared_now_private - ..ref.pages_swapped_out = pages_swapped_out - ..ref.pages_dirtied = pages_dirtied - ..ref.ref_count = ref_count - ..ref.shadow_depth = shadow_depth - ..ref.external_pager = external_pager - ..ref.share_mode = share_mode - ..ref.is_submap = is_submap - ..ref.behavior = behavior - ..ref.object_id = object_id - ..ref.user_wired_count = user_wired_count; -} - -@ffi.Packed(4) -final class vm_region_submap_info_64 extends ffi.Struct { - @vm_prot_t() - external int protection; - - @vm_prot_t() - external int max_protection; - - @vm_inherit_t() - external int inheritance; - - @memory_object_offset_t() - external int offset; - - @ffi.UnsignedInt() - external int user_tag; - - @ffi.UnsignedInt() - external int pages_resident; - - @ffi.UnsignedInt() - external int pages_shared_now_private; - - @ffi.UnsignedInt() - external int pages_swapped_out; - - @ffi.UnsignedInt() - external int pages_dirtied; - - @ffi.UnsignedInt() - external int ref_count; - - @ffi.UnsignedShort() - external int shadow_depth; - - @ffi.UnsignedChar() - external int external_pager; - - @ffi.UnsignedChar() - external int share_mode; - - @boolean_t() - external int is_submap; - - @vm_behavior_t() - external int behavior; - - @vm32_object_id_t() - external int object_id; - - @ffi.UnsignedShort() - external int user_wired_count; - - @ffi.UnsignedShort() - external int flags; - - @ffi.UnsignedInt() - external int pages_reusable; - - @vm_object_id_t() - external int object_id_full; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int max_protection, - required int inheritance, - required int offset, - required int user_tag, - required int pages_resident, - required int pages_shared_now_private, - required int pages_swapped_out, - required int pages_dirtied, - required int ref_count, - required int shadow_depth, - required int external_pager, - required int share_mode, - required int is_submap, - required int behavior, - required int object_id, - required int user_wired_count, - required int flags, - required int pages_reusable, - required int object_id_full, - }) => $allocator() - ..ref.protection = protection - ..ref.max_protection = max_protection - ..ref.inheritance = inheritance - ..ref.offset = offset - ..ref.user_tag = user_tag - ..ref.pages_resident = pages_resident - ..ref.pages_shared_now_private = pages_shared_now_private - ..ref.pages_swapped_out = pages_swapped_out - ..ref.pages_dirtied = pages_dirtied - ..ref.ref_count = ref_count - ..ref.shadow_depth = shadow_depth - ..ref.external_pager = external_pager - ..ref.share_mode = share_mode - ..ref.is_submap = is_submap - ..ref.behavior = behavior - ..ref.object_id = object_id - ..ref.user_wired_count = user_wired_count - ..ref.flags = flags - ..ref.pages_reusable = pages_reusable - ..ref.object_id_full = object_id_full; -} - -typedef vm_region_submap_info_64_t = ffi.Pointer; -typedef vm_region_submap_info_data_64_t = vm_region_submap_info_64; -typedef vm_region_submap_info_data_t = vm_region_submap_info; -typedef vm_region_submap_info_t = ffi.Pointer; - -@ffi.Packed(4) -final class vm_region_submap_short_info_64 extends ffi.Struct { - @vm_prot_t() - external int protection; - - @vm_prot_t() - external int max_protection; - - @vm_inherit_t() - external int inheritance; - - @memory_object_offset_t() - external int offset; - - @ffi.UnsignedInt() - external int user_tag; - - @ffi.UnsignedInt() - external int ref_count; - - @ffi.UnsignedShort() - external int shadow_depth; - - @ffi.UnsignedChar() - external int external_pager; - - @ffi.UnsignedChar() - external int share_mode; - - @boolean_t() - external int is_submap; - - @vm_behavior_t() - external int behavior; - - @vm32_object_id_t() - external int object_id; - - @ffi.UnsignedShort() - external int user_wired_count; - - @ffi.UnsignedShort() - external int flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int protection, - required int max_protection, - required int inheritance, - required int offset, - required int user_tag, - required int ref_count, - required int shadow_depth, - required int external_pager, - required int share_mode, - required int is_submap, - required int behavior, - required int object_id, - required int user_wired_count, - required int flags, - }) => $allocator() - ..ref.protection = protection - ..ref.max_protection = max_protection - ..ref.inheritance = inheritance - ..ref.offset = offset - ..ref.user_tag = user_tag - ..ref.ref_count = ref_count - ..ref.shadow_depth = shadow_depth - ..ref.external_pager = external_pager - ..ref.share_mode = share_mode - ..ref.is_submap = is_submap - ..ref.behavior = behavior - ..ref.object_id = object_id - ..ref.user_wired_count = user_wired_count - ..ref.flags = flags; -} - -typedef vm_region_submap_short_info_64_t = - ffi.Pointer; -typedef vm_region_submap_short_info_data_64_t = vm_region_submap_short_info_64; - -final class vm_region_top_info extends ffi.Struct { - @ffi.UnsignedInt() - external int obj_id; - - @ffi.UnsignedInt() - external int ref_count; - - @ffi.UnsignedInt() - external int private_pages_resident; - - @ffi.UnsignedInt() - external int shared_pages_resident; - - @ffi.UnsignedChar() - external int share_mode; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int obj_id, - required int ref_count, - required int private_pages_resident, - required int shared_pages_resident, - required int share_mode, - }) => $allocator() - ..ref.obj_id = obj_id - ..ref.ref_count = ref_count - ..ref.private_pages_resident = private_pages_resident - ..ref.shared_pages_resident = shared_pages_resident - ..ref.share_mode = share_mode; -} - -typedef vm_region_top_info_data_t = vm_region_top_info; -typedef vm_region_top_info_t = ffi.Pointer; -typedef vm_size_t = ffi.UintPtr; -typedef Dartvm_size_t = int; - -final class vm_statistics extends ffi.Struct { - @natural_t() - external int free_count; - - @natural_t() - external int active_count; - - @natural_t() - external int inactive_count; - - @natural_t() - external int wire_count; - - @natural_t() - external int zero_fill_count; - - @natural_t() - external int reactivations; - - @natural_t() - external int pageins; - - @natural_t() - external int pageouts; - - @natural_t() - external int faults; - - @natural_t() - external int cow_faults; - - @natural_t() - external int lookups; - - @natural_t() - external int hits; - - @natural_t() - external int purgeable_count; - - @natural_t() - external int purges; - - @natural_t() - external int speculative_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int free_count, - required int active_count, - required int inactive_count, - required int wire_count, - required int zero_fill_count, - required int reactivations, - required int pageins, - required int pageouts, - required int faults, - required int cow_faults, - required int lookups, - required int hits, - required int purgeable_count, - required int purges, - required int speculative_count, - }) => $allocator() - ..ref.free_count = free_count - ..ref.active_count = active_count - ..ref.inactive_count = inactive_count - ..ref.wire_count = wire_count - ..ref.zero_fill_count = zero_fill_count - ..ref.reactivations = reactivations - ..ref.pageins = pageins - ..ref.pageouts = pageouts - ..ref.faults = faults - ..ref.cow_faults = cow_faults - ..ref.lookups = lookups - ..ref.hits = hits - ..ref.purgeable_count = purgeable_count - ..ref.purges = purges - ..ref.speculative_count = speculative_count; -} - -final class vm_statistics64 extends ffi.Struct { - @natural_t() - external int free_count; - - @natural_t() - external int active_count; - - @natural_t() - external int inactive_count; - - @natural_t() - external int wire_count; - - @ffi.Uint64() - external int zero_fill_count; - - @ffi.Uint64() - external int reactivations; - - @ffi.Uint64() - external int pageins; - - @ffi.Uint64() - external int pageouts; - - @ffi.Uint64() - external int faults; - - @ffi.Uint64() - external int cow_faults; - - @ffi.Uint64() - external int lookups; - - @ffi.Uint64() - external int hits; - - @ffi.Uint64() - external int purges; - - @natural_t() - external int purgeable_count; - - @natural_t() - external int speculative_count; - - @ffi.Uint64() - external int decompressions; - - @ffi.Uint64() - external int compressions; - - @ffi.Uint64() - external int swapins; - - @ffi.Uint64() - external int swapouts; - - @natural_t() - external int compressor_page_count; - - @natural_t() - external int throttled_count; - - @natural_t() - external int external_page_count; - - @natural_t() - external int internal_page_count; - - @ffi.Uint64() - external int total_uncompressed_pages_in_compressor; - - @ffi.Uint64() - external int swapped_count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int free_count, - required int active_count, - required int inactive_count, - required int wire_count, - required int zero_fill_count, - required int reactivations, - required int pageins, - required int pageouts, - required int faults, - required int cow_faults, - required int lookups, - required int hits, - required int purges, - required int purgeable_count, - required int speculative_count, - required int decompressions, - required int compressions, - required int swapins, - required int swapouts, - required int compressor_page_count, - required int throttled_count, - required int external_page_count, - required int internal_page_count, - required int total_uncompressed_pages_in_compressor, - required int swapped_count, - }) => $allocator() - ..ref.free_count = free_count - ..ref.active_count = active_count - ..ref.inactive_count = inactive_count - ..ref.wire_count = wire_count - ..ref.zero_fill_count = zero_fill_count - ..ref.reactivations = reactivations - ..ref.pageins = pageins - ..ref.pageouts = pageouts - ..ref.faults = faults - ..ref.cow_faults = cow_faults - ..ref.lookups = lookups - ..ref.hits = hits - ..ref.purges = purges - ..ref.purgeable_count = purgeable_count - ..ref.speculative_count = speculative_count - ..ref.decompressions = decompressions - ..ref.compressions = compressions - ..ref.swapins = swapins - ..ref.swapouts = swapouts - ..ref.compressor_page_count = compressor_page_count - ..ref.throttled_count = throttled_count - ..ref.external_page_count = external_page_count - ..ref.internal_page_count = internal_page_count - ..ref.total_uncompressed_pages_in_compressor = - total_uncompressed_pages_in_compressor - ..ref.swapped_count = swapped_count; -} - -typedef vm_statistics64_data_t = vm_statistics64; -typedef vm_statistics64_t = ffi.Pointer; -typedef vm_statistics_data_t = vm_statistics; -typedef vm_statistics_t = ffi.Pointer; -typedef vm_sync_t = ffi.UnsignedInt; -typedef Dartvm_sync_t = int; -typedef vm_task_entry_t = mach_port_t; - -const int voiceNotFound = -244; - -typedef voidPtr = ffi.Pointer; - -const int volGoneErr = -124; - -const int volMountChangedBit = 14; - -const int volMountChangedMask = 16384; - -const int volMountExtendedFlagsBit = 7; - -const int volMountExtendedFlagsMask = 128; - -const int volMountFSReservedMask = 255; - -const int volMountInteractBit = 15; - -const int volMountInteractMask = 32768; - -const int volMountNoLoginMsgFlagBit = 0; - -const int volMountNoLoginMsgFlagMask = 1; - -const int volMountSysReservedMask = 65280; - -const int volOffLinErr = -53; - -const int volOnLinErr = -55; - -const int volVMBusyErr = -1311; - -final class voucher_mach_msg_state_s extends ffi.Opaque {} - -typedef voucher_mach_msg_state_t = ffi.Pointer; - -const int wPrErr = -44; - -const int wackBadFileErr = -2115; - -const int wackBadMetaDataErr = -2117; - -const int wackForkNotFoundErr = -2116; - -final class wait$1 extends ffi.Opaque {} - -const int weekOfYearField = 9; - -const int weekOfYearMask = 512; - -const int wfFileNotFound = -2021; - -@ffi.Packed(2) -final class wide extends ffi.Struct { - @UInt32() - external int lo; - - @SInt32() - external int hi; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int lo, - required int hi, - }) => $allocator() - ..ref.lo = lo - ..ref.hi = hi; -} - -const int windowAppModalStateAlreadyExistsErr = -5617; - -const int windowAttributeImmutableErr = -5612; - -const int windowAttributesConflictErr = -5613; - -const int windowGroupInvalidErr = -5616; - -const int windowManagerInternalErr = -5614; - -const int windowNoAppModalStateErr = -5618; - -const int windowWrongStateErr = -5615; - -typedef wint_t = __darwin_wint_t; - -const int wrPermErr = -61; - -const int wrUnderrun = -74; - -const int wrgVolTypErr = -123; - -const int writErr = -20; - -@Deprecated('Deprecated') -const int writeReference = 0; - -const int writingPastEnd = -189; - -const int wrongApplicationPlatform = -875; - -@Deprecated('Deprecated') -final class x509_validity extends ffi.Struct { - external CSSM_X509_TIME notBefore; - - external CSSM_X509_TIME notAfter; -} - -typedef xpc_activity_handler_t = ffi.Pointer; -typedef Dartxpc_activity_handler_t = - objc.ObjCBlock; -typedef xpc_activity_state_t = ffi.Long; -typedef Dartxpc_activity_state_t = int; -typedef xpc_activity_t = xpc_object_t; -typedef xpc_array_applier_t = ffi.Pointer; -typedef Dartxpc_array_applier_t = - objc.ObjCBlock; -typedef xpc_connection_handler_t = - ffi.Pointer< - ffi.NativeFunction - >; -typedef xpc_connection_t = xpc_object_t; -typedef xpc_dictionary_applier_t = ffi.Pointer; -typedef Dartxpc_dictionary_applier_t = - objc.ObjCBlock, objc.NSObject)>; -typedef xpc_endpoint_t = xpc_object_t; -typedef xpc_finalizer_t = - ffi.Pointer< - ffi.NativeFunction value)> - >; -typedef xpc_handler_t = ffi.Pointer; -typedef Dartxpc_handler_t = objc.ObjCBlock; - -sealed class xpc_listener_create_flags_t { - static const XPC_LISTENER_CREATE_NONE = 0; - static const XPC_LISTENER_CREATE_INACTIVE = 1; - static const XPC_LISTENER_CREATE_FORCE_MACH = 2; - static const XPC_LISTENER_CREATE_FORCE_XPCSERVICE = 4; -} - -typedef xpc_listener_incoming_session_handler_t = - ffi.Pointer; -typedef Dartxpc_listener_incoming_session_handler_t = - objc.ObjCBlock; -typedef xpc_listener_t = ffi.Pointer; -typedef Dartxpc_listener_t = objc.NSObject; -typedef xpc_object_t = ffi.Pointer; -typedef Dartxpc_object_t = objc.NSObject; -typedef xpc_peer_requirement_t = ffi.Pointer; -typedef Dartxpc_peer_requirement_t = objc.NSObject; -typedef xpc_rich_error_t = xpc_object_t; -typedef xpc_session_cancel_handler_t = ffi.Pointer; -typedef Dartxpc_session_cancel_handler_t = - objc.ObjCBlock; - -sealed class xpc_session_create_flags_t { - static const XPC_SESSION_CREATE_NONE = 0; - static const XPC_SESSION_CREATE_INACTIVE = 1; - static const XPC_SESSION_CREATE_MACH_PRIVILEGED = 2; -} - -typedef xpc_session_incoming_message_handler_t = - ffi.Pointer; -typedef Dartxpc_session_incoming_message_handler_t = - objc.ObjCBlock; -typedef xpc_session_reply_handler_t = ffi.Pointer; -typedef Dartxpc_session_reply_handler_t = - objc.ObjCBlock; -typedef xpc_session_t = ffi.Pointer; -typedef Dartxpc_session_t = objc.NSObject; -typedef xpc_type_t = ffi.Pointer<_xpc_type_s>; - -const int ydm = 5; - -const int yearField = 1; - -const int yearMask = 2; - -const int ymd = 2; - -const int zeroCycle = 1; - -final class zone_btrecord extends ffi.Struct { - @ffi.Uint32() - external int ref_count; - - @ffi.Uint32() - external int operation_type; - - @ffi.Array.multi([15]) - external ffi.Array bt; -} - -typedef zone_btrecord_array_t = ffi.Pointer; -typedef zone_btrecord_t = zone_btrecord; - -final class zone_info extends ffi.Struct { - @integer_t() - external int zi_count; - - @vm_size_t() - external int zi_cur_size; - - @vm_size_t() - external int zi_max_size; - - @vm_size_t() - external int zi_elem_size; - - @vm_size_t() - external int zi_alloc_size; - - @integer_t() - external int zi_pageable; - - @integer_t() - external int zi_sleepable; - - @integer_t() - external int zi_exhaustible; - - @integer_t() - external int zi_collectable; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int zi_count, - required int zi_cur_size, - required int zi_max_size, - required int zi_elem_size, - required int zi_alloc_size, - required int zi_pageable, - required int zi_sleepable, - required int zi_exhaustible, - required int zi_collectable, - }) => $allocator() - ..ref.zi_count = zi_count - ..ref.zi_cur_size = zi_cur_size - ..ref.zi_max_size = zi_max_size - ..ref.zi_elem_size = zi_elem_size - ..ref.zi_alloc_size = zi_alloc_size - ..ref.zi_pageable = zi_pageable - ..ref.zi_sleepable = zi_sleepable - ..ref.zi_exhaustible = zi_exhaustible - ..ref.zi_collectable = zi_collectable; -} - -typedef zone_info_array_t = ffi.Pointer; -typedef zone_info_t = zone_info; - -final class zone_name extends ffi.Struct { - @ffi.Array.multi([80]) - external ffi.Array zn_name; -} - -typedef zone_name_array_t = ffi.Pointer; -typedef zone_name_t = zone_name; +late final _sel_settings = objc.registerName("settings"); +late final _sel_stop = objc.registerName("stop"); +late final _sel_updateMeters = objc.registerName("updateMeters"); +late final _sel_url = objc.registerName("url"); +late final _sel_volume = objc.registerName("volume"); +typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/example/swift/swift_api_bindings.dart b/pkgs/ffigen/example/swift/swift_api_bindings.dart index c820afa684..71cab810fc 100644 --- a/pkgs/ffigen/example/swift/swift_api_bindings.dart +++ b/pkgs/ffigen/example/swift/swift_api_bindings.dart @@ -87,6 +87,12 @@ extension SwiftClass$Methods on SwiftClass { return objc.NSString.fromPointer($ret, retain: true, release: true); } + /// setSomeField: + set someField(int value) { + final _$$ref = object$.ref; + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setSomeField_, value); + } + /// someField int get someField { final _$$ref = object$.ref; @@ -168,12 +174,30 @@ final _objc_msgSend_1hz7y9r = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_4sp4xj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); late final _sel_sayHello = objc.registerName("sayHello"); +late final _sel_setSomeField_ = objc.registerName("setSomeField:"); late final _sel_someField = objc.registerName("someField"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/lib/src/code_generator/binding.dart b/pkgs/ffigen/lib/src/code_generator/binding.dart index 40f9b17b49..48c4e6b777 100644 --- a/pkgs/ffigen/lib/src/code_generator/binding.dart +++ b/pkgs/ffigen/lib/src/code_generator/binding.dart @@ -38,16 +38,12 @@ abstract class Binding extends AstNode implements Declaration { /// Set by MarkBindingsVisitation. bool generateBindings = true; - /// Whether this binding is included by filter configuration. - bool isIncluded; - Binding({ required this.usr, required this.originalName, required Symbol symbol, this.dartDoc, this.isInternal = false, - this.isIncluded = false, }) : _symbol = symbol { // Ideally isImported would be part of the Symbol constructor, but then we // wouldn't be able to use this.isObjCImport. @@ -93,7 +89,6 @@ abstract class LookUpBinding extends Binding { required super.symbol, super.dartDoc, super.isInternal, - super.isIncluded, }) : super( usr: usr ?? symbol.oldName, originalName: originalName ?? symbol.oldName, @@ -113,7 +108,6 @@ abstract class NoLookUpBinding extends Binding { required super.symbol, super.dartDoc, super.isInternal, - super.isIncluded, }) : super( usr: usr ?? symbol.oldName, originalName: originalName ?? symbol.oldName, diff --git a/pkgs/ffigen/lib/src/code_generator/compound.dart b/pkgs/ffigen/lib/src/code_generator/compound.dart index b8a26aa6bd..2bee12987a 100644 --- a/pkgs/ffigen/lib/src/code_generator/compound.dart +++ b/pkgs/ffigen/lib/src/code_generator/compound.dart @@ -40,6 +40,8 @@ abstract class Compound extends BindingType with HasLocalScope { final ApiAvailability? apiAvailability; + bool isIncluded = false; + Compound({ super.usr, super.originalName, @@ -48,7 +50,6 @@ abstract class Compound extends BindingType with HasLocalScope { super.dartDoc, List? members, super.isInternal, - super.isIncluded, required this.context, String? nativeType, this.apiAvailability, diff --git a/pkgs/ffigen/lib/src/code_generator/constant.dart b/pkgs/ffigen/lib/src/code_generator/constant.dart index 77b4f7d772..368ebb0b72 100644 --- a/pkgs/ffigen/lib/src/code_generator/constant.dart +++ b/pkgs/ffigen/lib/src/code_generator/constant.dart @@ -33,6 +33,8 @@ class Constant extends NoLookUpBinding { final ApiAvailability? apiAvailability; + bool isIncluded = false; + Constant({ super.usr, super.originalName, @@ -41,7 +43,6 @@ class Constant extends NoLookUpBinding { required this.rawType, required this.rawValue, this.apiAvailability, - super.isIncluded, }) : super(symbol: Symbol(name, SymbolKind.field)); @override @@ -79,7 +80,6 @@ class UnnamedEnumConstant extends Constant { required super.rawType, required super.rawValue, super.apiAvailability, - super.isIncluded, }); @override @@ -100,7 +100,6 @@ class MacroConstant extends Constant { required super.rawType, required super.rawValue, super.apiAvailability, - super.isIncluded, }); @override diff --git a/pkgs/ffigen/lib/src/code_generator/cpp_class.dart b/pkgs/ffigen/lib/src/code_generator/cpp_class.dart index d468d36d58..d08d8d627f 100644 --- a/pkgs/ffigen/lib/src/code_generator/cpp_class.dart +++ b/pkgs/ffigen/lib/src/code_generator/cpp_class.dart @@ -25,7 +25,7 @@ class CppMethod extends AstNode with HasLocalScope { final bool isStatic; final CppMethodKind kind; - bool isIncluded = false; + bool isIncluded = true; CppMethod({ required this.name, @@ -72,13 +72,13 @@ class CppClass extends BindingType with HasLocalScope { final Context context; final List methods; final List fields; + bool isIncluded = false; CppClass({ super.usr, super.originalName, required super.name, super.dartDoc, - super.isIncluded, required this.context, required this.methods, required this.fields, diff --git a/pkgs/ffigen/lib/src/code_generator/enum_class.dart b/pkgs/ffigen/lib/src/code_generator/enum_class.dart index cb7899a741..e303c39eee 100644 --- a/pkgs/ffigen/lib/src/code_generator/enum_class.dart +++ b/pkgs/ffigen/lib/src/code_generator/enum_class.dart @@ -59,6 +59,8 @@ class EnumClass extends BindingType with HasLocalScope { final ApiAvailability? apiAvailability; + bool isIncluded = false; + EnumClass({ super.usr, super.originalName, @@ -70,7 +72,6 @@ class EnumClass extends BindingType with HasLocalScope { this.style = EnumStyle.dartEnum, this.isAnonymous = false, this.apiAvailability, - super.isIncluded, }) : nativeType = nativeType ?? intType, enumConstants = enumConstants ?? []; diff --git a/pkgs/ffigen/lib/src/code_generator/func.dart b/pkgs/ffigen/lib/src/code_generator/func.dart index 6d13eca45c..58e3f96437 100644 --- a/pkgs/ffigen/lib/src/code_generator/func.dart +++ b/pkgs/ffigen/lib/src/code_generator/func.dart @@ -65,6 +65,8 @@ class Func extends LookUpBinding with HasLocalScope { Typealias? _exposedFunctionTypealias; Typealias? get exposedFunctionTypealias => _exposedFunctionTypealias; + bool isIncluded = false; + /// [originalName] is looked up in dynamic library, if not /// provided, takes the value of [name]. Func({ @@ -82,7 +84,6 @@ class Func extends LookUpBinding with HasLocalScope { this.useNameForLookup = false, this.recordUse = false, super.isInternal, - super.isIncluded, this.loadFromNativeAsset = false, this.apiAvailability, }) : functionType = FunctionType( diff --git a/pkgs/ffigen/lib/src/code_generator/global.dart b/pkgs/ffigen/lib/src/code_generator/global.dart index db89b2aca8..8c4a59b706 100644 --- a/pkgs/ffigen/lib/src/code_generator/global.dart +++ b/pkgs/ffigen/lib/src/code_generator/global.dart @@ -33,6 +33,8 @@ class Global extends LookUpBinding with HasLocalScope { @override final bool loadFromNativeAsset; + bool isIncluded = false; + Global({ super.usr, super.originalName, @@ -42,7 +44,6 @@ class Global extends LookUpBinding with HasLocalScope { this.exposeSymbolAddress = false, this.constant = false, this.loadFromNativeAsset = false, - super.isIncluded, }) : super(symbol: Symbol(name, SymbolKind.field)); @override diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart index 0a9b146ef4..639b8e9d72 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart @@ -300,7 +300,7 @@ class ObjCImport { class ObjCInternalGlobal extends NoLookUpBinding { final String Function() makeValue; - ObjCInternalGlobal(String name, this.makeValue, {super.isIncluded}) + ObjCInternalGlobal(String name, this.makeValue) : super( originalName: name, symbol: Symbol(name, SymbolKind.field), @@ -330,19 +330,15 @@ class ObjCClassGlobal extends NoLookUpBinding { final String symbolLookupName; final Symbol rawSymbol; - ObjCClassGlobal( - String name, - String originalName, - String? module, { - super.isIncluded, - }) : lookupName = _makeLookupName(originalName, module), - symbolLookupName = _makeSymbolLookupName(originalName, module), - rawSymbol = Symbol('${name}_raw', SymbolKind.field), - super( - originalName: name, - symbol: Symbol(name, SymbolKind.field), - isInternal: true, - ); + ObjCClassGlobal(String name, String originalName, String? module) + : lookupName = _makeLookupName(originalName, module), + symbolLookupName = _makeSymbolLookupName(originalName, module), + rawSymbol = Symbol('${name}_raw', SymbolKind.field), + super( + originalName: name, + symbol: Symbol(name, SymbolKind.field), + isInternal: true, + ); @override BindingString toBindingString(Writer w) { @@ -390,15 +386,14 @@ class ObjCProtocolGlobal extends NoLookUpBinding { String name, String originalName, String? module, - this.loaderSymbol, { - super.isIncluded, - }) : lookupName = _makeLookupName(originalName, module), - rawSymbol = Symbol('${name}_raw', SymbolKind.field), - super( - originalName: name, - symbol: Symbol(name, SymbolKind.field), - isInternal: true, - ); + this.loaderSymbol, + ) : lookupName = _makeLookupName(originalName, module), + rawSymbol = Symbol('${name}_raw', SymbolKind.field), + super( + originalName: name, + symbol: Symbol(name, SymbolKind.field), + isInternal: true, + ); @override bool get hasNativeHelperFunctions => true; diff --git a/pkgs/ffigen/lib/src/code_generator/objc_category.dart b/pkgs/ffigen/lib/src/code_generator/objc_category.dart index fd2e3fbbad..794c47f6b1 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_category.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_category.dart @@ -22,6 +22,8 @@ class ObjCCategory extends NoLookUpBinding with ObjCMethods, HasLocalScope { final ApiAvailability apiAvailability; + bool isIncluded = false; + ObjCCategory({ super.usr, required String super.originalName, @@ -30,7 +32,6 @@ class ObjCCategory extends NoLookUpBinding with ObjCMethods, HasLocalScope { super.dartDoc, required this.context, required this.apiAvailability, - super.isIncluded, }) : super(symbol: Symbol(name ?? originalName, SymbolKind.klass)); void addProtocol(ObjCProtocol? proto) { diff --git a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart index b44bba75a9..18fe0614f2 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart @@ -31,6 +31,8 @@ class ObjCInterface extends BindingType with ObjCMethods, HasLocalScope { // Filled by ListBindingsVisitation. bool generateAsStub = false; + bool isIncluded = false; + ObjCInterface({ super.usr, required String super.originalName, @@ -40,7 +42,6 @@ class ObjCInterface extends BindingType with ObjCMethods, HasLocalScope { required this.apiAvailability, required this.context, super.isInternal = false, - super.isIncluded, }) : super( name: context.objCBuiltInFunctions.getBuiltInInterfaceName( diff --git a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart index 88d4230172..6da65e018e 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart @@ -212,7 +212,7 @@ class ObjCMethod extends AstNode with HasLocalScope { Symbol? protocolMethodName; ObjCMethods? parent; ObjCMethod? setter; - bool isIncluded = false; + bool isIncluded = true; @override void visitChildren(Visitor visitor, {bool omitMethodName = false}) { diff --git a/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart b/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart index ee16b8ffce..a304cdf470 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart @@ -27,6 +27,8 @@ class ObjCProtocol extends BindingType with ObjCMethods, HasLocalScope { // Filled by ListBindingsVisitation. bool generateAsStub = false; + bool isIncluded = false; + ObjCProtocol({ super.usr, required String super.originalName, @@ -35,7 +37,6 @@ class ObjCProtocol extends BindingType with ObjCMethods, HasLocalScope { super.dartDoc, required this.apiAvailability, required this.context, - super.isIncluded, }) : loaderSymbol = Symbol( '_${context.objCBuiltInFunctions.libraryId}_$originalName', SymbolKind.method, diff --git a/pkgs/ffigen/lib/src/code_generator/struct.dart b/pkgs/ffigen/lib/src/code_generator/struct.dart index a4499d2961..d232ba84fc 100644 --- a/pkgs/ffigen/lib/src/code_generator/struct.dart +++ b/pkgs/ffigen/lib/src/code_generator/struct.dart @@ -41,7 +41,6 @@ class Struct extends Compound { super.dartDoc, super.members, super.isInternal, - super.isIncluded, required super.context, super.nativeType, super.apiAvailability, diff --git a/pkgs/ffigen/lib/src/code_generator/type.dart b/pkgs/ffigen/lib/src/code_generator/type.dart index faa7ce8a51..8e944371f6 100644 --- a/pkgs/ffigen/lib/src/code_generator/type.dart +++ b/pkgs/ffigen/lib/src/code_generator/type.dart @@ -174,7 +174,6 @@ abstract class BindingType extends NoLookUpBinding implements Type { required String name, super.dartDoc, super.isInternal, - super.isIncluded, }) : super(symbol: Symbol(name, SymbolKind.klass)); @override diff --git a/pkgs/ffigen/lib/src/code_generator/typealias.dart b/pkgs/ffigen/lib/src/code_generator/typealias.dart index e563932788..818f212282 100644 --- a/pkgs/ffigen/lib/src/code_generator/typealias.dart +++ b/pkgs/ffigen/lib/src/code_generator/typealias.dart @@ -27,6 +27,8 @@ class Typealias extends BindingType { // Don't code gen this alias at all, just use the [type] directly. bool isAnonymous; + bool isIncluded = false; + /// Creates a Typealias. /// /// If [genFfiDartType] is true, a binding is generated for the Ffi Dart type @@ -39,7 +41,6 @@ class Typealias extends BindingType { required Type type, bool genFfiDartType = false, bool isInternal = false, - bool isIncluded = false, }) { final funcType = _getFunctionTypeFromPointer(type); if (funcType != null) { @@ -50,7 +51,6 @@ class Typealias extends BindingType { type: funcType, genFfiDartType: genFfiDartType, isInternal: isInternal, - isIncluded: true, ), ), ); @@ -65,7 +65,6 @@ class Typealias extends BindingType { type: type, genFfiDartType: genFfiDartType, isInternal: isInternal, - isIncluded: isIncluded, ); } return Typealias._( @@ -76,7 +75,6 @@ class Typealias extends BindingType { type: type, genFfiDartType: genFfiDartType, isInternal: isInternal, - isIncluded: isIncluded, ); } @@ -95,7 +93,6 @@ class Typealias extends BindingType { bool genFfiDartType = false, super.isInternal, this.isAnonymous = false, - super.isIncluded, }) : _ffiDartAliasName = genFfiDartType ? Symbol('Dart$name', SymbolKind.klass) : null, @@ -263,7 +260,6 @@ class ObjCInstanceType extends Typealias { required super.type, super.genFfiDartType, super.isInternal, - super.isIncluded, }) : super._(); @override diff --git a/pkgs/ffigen/lib/src/code_generator/union.dart b/pkgs/ffigen/lib/src/code_generator/union.dart index 1cbfa18658..c0e6a17c9b 100644 --- a/pkgs/ffigen/lib/src/code_generator/union.dart +++ b/pkgs/ffigen/lib/src/code_generator/union.dart @@ -39,7 +39,6 @@ class Union extends Compound { super.dartDoc, super.members, super.isInternal, - super.isIncluded, required super.context, super.nativeType, super.apiAvailability, diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index a5e2f7b20f..823a22b82d 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -562,7 +562,8 @@ class ObjCMethod extends NamedNode { /// Whether this method is a property setter. bool get isPropertySetter => _method.isPropertySetter; - /// The property setter for this Objective-C method, if it is a property getter. + /// The property setter for this Objective-C method, if it is a property + /// getter. ObjCMethod? get setter => _method.setter != null ? ObjCMethod(parent, _method.setter!) : null; diff --git a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart index 6eb46d648c..ce3d7a7c57 100644 --- a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart +++ b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart @@ -2330,15 +2330,15 @@ final class CXCursorSetImpl extends ffi.Opaque {} /// The visitor should return one of the \c CXChildVisitResult values /// to direct clang_visitCursorChildren(). typedef CXCursorVisitor = - ffi.Pointer>; -typedef CXCursorVisitorFunction = - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ); -typedef DartCXCursorVisitorFunction = - int Function(CXCursor cursor, CXCursor parent, CXClientData client_data); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ) + > + >; /// A single diagnostic, containing the diagnostic's severity, /// location, text, source ranges, and fix-it hints. @@ -2447,11 +2447,11 @@ sealed class CXEvalResultKind { /// The visitor should return one of the \c CXVisitorResult values /// to direct \c clang_Type_visitFields. typedef CXFieldVisitor = - ffi.Pointer>; -typedef CXFieldVisitorFunction = - ffi.UnsignedInt Function(CXCursor C, CXClientData client_data); -typedef DartCXFieldVisitorFunction = - int Function(CXCursor C, CXClientData client_data); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor C, CXClientData client_data) + > + >; /// A particular source file that is part of a translation unit. typedef CXFile = ffi.Pointer; @@ -2480,21 +2480,16 @@ typedef CXIdxClientFile = ffi.Pointer; /// array is sorted in order of immediate inclusion. For example, /// the first element refers to the location that included 'included_file'. typedef CXInclusionVisitor = - ffi.Pointer>; -typedef CXInclusionVisitorFunction = - ffi.Void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - CXClientData client_data, - ); -typedef DartCXInclusionVisitorFunction = - void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - int include_len, - CXClientData client_data, - ); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + CXClientData client_data, + ) + > + >; /// An "index" that consists of a set of translation units that would /// typically be linked together into an executable or library. diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index 75d1044ab0..a7a596de09 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -173,24 +173,6 @@ List transformBindings(List rawBindings, Context context) { .map((b) => b.toPublicAstNode()) .nonNulls .toList(); - if (!config.visitors.any((v) => v is YamlConfigAstVisitor)) { - for (final b in rawBindings) { - b.isIncluded = true; - if (b is ObjCInterface) { - for (final m in b.methods) { - m.isIncluded = true; - } - } else if (b is ObjCProtocol) { - for (final m in b.methods) { - m.isIncluded = true; - } - } else if (b is ObjCCategory) { - for (final m in b.methods) { - m.isIncluded = true; - } - } - } - } for (final visitor in config.visitors) { visitor.visitAll(rawNodes); } diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index e36de1f37d..98b05ffc13 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -13,49 +13,47 @@ class ApplyConfigFiltersVisitation extends Visitation { final indirectlyIncluded = {}; ApplyConfigFiltersVisitation(this.context); - void _visitImpl(Binding node) { + void _visitImpl(Binding node, bool isIncluded) { + node.visitChildren(visitor); if (node.originalName == '') return; if (context.config.importType(node) != null) return; - if (node.isIncluded) { - directlyIncluded.add(node); - } + if (isIncluded) directlyIncluded.add(node); } @override - void visitStruct(Struct node) => _visitImpl(node); + void visitStruct(Struct node) => _visitImpl(node, node.isIncluded); @override - void visitUnion(Union node) => _visitImpl(node); + void visitUnion(Union node) => _visitImpl(node, node.isIncluded); @override void visitEnumClass(EnumClass node) { if (node.isAnonymous) return; - _visitImpl(node); + _visitImpl(node, node.isIncluded); } @override void visitCppClass(CppClass node) { if (context.config.cpp == null) return; - _visitImpl(node); + _visitImpl(node, node.isIncluded); } @override - void visitFunc(Func node) => _visitImpl(node); + void visitFunc(Func node) => _visitImpl(node, node.isIncluded); @override - void visitMacroConstant(MacroConstant node) => _visitImpl(node); + void visitMacroConstant(MacroConstant node) => + _visitImpl(node, node.isIncluded); @override void visitObjCInterface(ObjCInterface node) { if (node.unavailable) return; if (context.config.objectiveC == null) return; - if (!node.isObjCImport) { - node.filterMethods((m) => !m.unavailable && m.isIncluded); - } if (!node.isInternal) { - _visitImpl(node); + node.filterMethods((m) => !m.unavailable && m.isIncluded); } + _visitImpl(node, node.isIncluded); // If this node is included, include all its super types. if (directlyIncluded.contains(node)) { @@ -68,15 +66,12 @@ class ApplyConfigFiltersVisitation extends Visitation { @override void visitObjCCategory(ObjCCategory node) { if (context.config.objectiveC == null) return; - node.filterMethods((m) { if (m.unavailable) return false; if (node.shouldCopyMethodToInterface(m)) return false; return m.isIncluded; }); - if (!node.isInternal) { - _visitImpl(node); - } + _visitImpl(node, node.isIncluded); } @override @@ -94,27 +89,26 @@ class ApplyConfigFiltersVisitation extends Visitation { return m.isIncluded; }); - if (!node.isInternal) { - _visitImpl(node); - } + _visitImpl(node, node.isIncluded); } @override - void visitUnnamedEnumConstant(UnnamedEnumConstant node) => _visitImpl(node); + void visitUnnamedEnumConstant(UnnamedEnumConstant node) => + _visitImpl(node, node.isIncluded); @override - void visitGlobal(Global node) => _visitImpl(node); + void visitGlobal(Global node) => _visitImpl(node, node.isIncluded); @override void visitConstant(Constant node) { // MacroConstant and UnnamedEnumConstant have their own overrides, so this // only applies to base Constants (e.g. from static const variables). - _visitImpl(node); + _visitImpl(node, node.isIncluded); } @override void visitTypealias(Typealias node) { if (node.isAnonymous) return; - _visitImpl(node); + _visitImpl(node, node.isIncluded); } } diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart index 1e22944bbd..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart @@ -6,39 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -class Bindings { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - Bindings.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - bool test1(bool a, ffi.Pointer b) { - return _test1(a, b); - } - - late final _test1Ptr = - _lookup< - ffi.NativeFunction)> - >('test1'); - late final _test1 = _test1Ptr - .asFunction)>(); -} - -final class Test2 extends ffi.Struct { - @ffi.Bool() - external bool a; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required bool a, - }) => $allocator()..ref.a = a; -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart index 2beabe40a0..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart @@ -6,7 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package - -const int test1 = 20; - -const double test2 = 20.0; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart index a6b7fead8b..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart @@ -6,22 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -/// test line 1 -/// test line 2 -enum Constants { - a(10), - - /// negative - b(-1); - - final int value; - const Constants(this.value); - - static Constants fromValue(int value) => switch (value) { - 10 => a, - -1 => b, - _ => throw ArgumentError('Unknown value for Constants: $value'), - }; -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart index f7148ceb93..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart @@ -6,32 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -/// test line 1 -/// test line 2 -enum Duplicates { - /// This is a unique value - a(0), - - /// This is an original value - b(1); - - /// This is a duplicate value - static const c = b; - - final int value; - const Duplicates(this.value); - - static Duplicates fromValue(int value) => switch (value) { - 0 => a, - 1 => b, - _ => throw ArgumentError('Unknown value for Duplicates: $value'), - }; - - @override - String toString() { - if (this == b) return "Duplicates.b, Duplicates.c"; - return super.toString(); - } -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart index a88b66d737..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart @@ -6,97 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -class Bindings { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - Bindings.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - void funcWithBothEnums(Enum1 value1, int value2) { - return _funcWithBothEnums(value1.value, value2); - } - - late final _funcWithBothEnumsPtr = - _lookup>( - 'funcWithBothEnums', - ); - late final _funcWithBothEnums = _funcWithBothEnumsPtr - .asFunction(); - - Enum1 funcWithEnum1(Enum1 value) { - return Enum1.fromValue(_funcWithEnum1(value.value)); - } - - late final _funcWithEnum1Ptr = - _lookup>('funcWithEnum1'); - late final _funcWithEnum1 = _funcWithEnum1Ptr.asFunction(); - - int funcWithEnum2(int value) { - return _funcWithEnum2(value); - } - - late final _funcWithEnum2Ptr = - _lookup>('funcWithEnum2'); - late final _funcWithEnum2 = _funcWithEnum2Ptr.asFunction(); - - StructWithEnums funcWithStruct(StructWithEnums value) { - return _funcWithStruct(value); - } - - late final _funcWithStructPtr = - _lookup>( - 'funcWithStruct', - ); - late final _funcWithStruct = _funcWithStructPtr - .asFunction(); -} - -enum Enum1 { - a(0), - b(1), - c(2); - - final int value; - const Enum1(this.value); - - static Enum1 fromValue(int value) => switch (value) { - 0 => a, - 1 => b, - 2 => c, - _ => throw ArgumentError('Unknown value for Enum1: $value'), - }; -} - -sealed class Enum2 { - static const value1 = 0; - static const value2 = 1; - static const value3 = 2; -} - -final class StructWithEnums extends ffi.Struct { - @ffi.Int() - external int enum1AsInt; - - Enum1 get enum1 => Enum1.fromValue(enum1AsInt); - set enum1(Enum1 value) => enum1AsInt = value.value; - - @ffi.Int() - external int enum2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required Enum1 enum1, - required int enum2, - }) => $allocator() - ..ref.enum1 = enum1 - ..ref.enum2 = enum2; -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart index 589a16332f..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart @@ -6,56 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -class Bindings { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - Bindings.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - MyEnum acceptsEnum(MyEnum value) { - return MyEnum.fromValue(_acceptsEnum(value.value)); - } - - late final _acceptsEnumPtr = - _lookup>('acceptsEnum'); - late final _acceptsEnum = _acceptsEnumPtr.asFunction(); - - int acceptsInt(int value) { - return _acceptsInt(value); - } - - late final _acceptsIntPtr = - _lookup>('acceptsInt'); - late final _acceptsInt = _acceptsIntPtr.asFunction(); -} - -enum MyEnum { - value1(0), - value2(1), - value3(2); - - final int value; - const MyEnum(this.value); - - static MyEnum fromValue(int value) => switch (value) { - 0 => value1, - 1 => value2, - 2 => value3, - _ => throw ArgumentError('Unknown value for MyEnum: $value'), - }; -} - -sealed class MyIntegerEnum { - static const int1 = 1; - static const int2 = 2; - static const int3 = 10; -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart index 6798a818dc..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart @@ -6,75 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -class Bindings { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - Bindings.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - /// A function with isLeaf: true - int leafFunc(int a) { - return _leafFunc(a); - } - - late final _leafFuncPtr = - _lookup>('leafFunc'); - late final _leafFunc = _leafFuncPtr.asFunction( - isLeaf: true, - ); - - /// Just a test function - /// heres another line - int noParam() { - return _noParam(); - } - - late final _noParamPtr = _lookup>( - 'noParam', - ); - late final _noParam = _noParamPtr.asFunction(); - - ffi.Pointer withPointerParam( - ffi.Pointer a, - ffi.Pointer> b, - ) { - return _withPointerParam(a, b); - } - - late final _withPointerParamPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer>, - ) - > - >('withPointerParam'); - late final _withPointerParam = _withPointerParamPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer>, - ) - >(); - - int withPrimitiveParam(int a, int b) { - return _withPrimitiveParam(a, b); - } - - late final _withPrimitiveParamPtr = - _lookup>( - 'withPrimitiveParam', - ); - late final _withPrimitiveParam = _withPrimitiveParamPtr - .asFunction(); -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart index 946e20e3b1..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart @@ -6,30 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -@ffi.DefaultAsset('test') -library; - -import 'dart:ffi' as ffi; - -/// A function with isLeaf: true -@ffi.Native(isLeaf: true) -external int leafFunc(int a); - -/// Just a test function -/// heres another line -@ffi.Native() -external int noParam(); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer>, - ) ->() -external ffi.Pointer withPointerParam( - ffi.Pointer a, - ffi.Pointer> b, -); - -@ffi.Native() -external int withPrimitiveParam(int a, int b); diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart index 6fdfb1521d..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart @@ -6,54 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -class Bindings { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - Bindings.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - ffi.Pointer someFunc(ffi.Pointer> some) { - return _someFunc(some); - } - - late final _someFuncPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer>) - > - >('someFunc'); - late final _someFunc = _someFuncPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer>) - >(); -} - -final class SomeStruct extends ffi.Struct { - @ffi.Int32() - external int a; - - @ffi.Double() - external double b; - - @ffi.Uint8() - external int c; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int a, - required double b, - required int c, - }) => $allocator() - ..ref.a = a - ..ref.b = b - ..ref.c = c; -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart index 2b52949bcd..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart @@ -6,51 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -class Bindings { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - Bindings.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - late final ffi.Pointer _globalStruct = _lookup( - 'globalStruct', - ); - - ffi.Pointer get globalStruct => _globalStruct; - - late final ffi.Pointer _test1 = _lookup('test1'); - - int get test1 => _test1.value; - - set test1(int value) => _test1.value = value; - - late final ffi.Pointer> _test2 = - _lookup>('test2'); - - ffi.Pointer get test2 => _test2.value; - - late final ffi.Pointer _test3 = _lookup('test3'); - - ffi.Pointer get test3 => _test3; - - late final ffi.Pointer> _test5 = _lookup>( - 'test5', - ); - - ffi.Pointer get test5 => _test5.value; - - set test5(ffi.Pointer value) => _test5.value = value; -} - -final class EmptyStruct extends ffi.Opaque {} - -final class Some extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart index 595dab2f07..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart @@ -6,27 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -@ffi.DefaultAsset('test') -library; - -import 'dart:ffi' as ffi; - -@ffi.Native() -external EmptyStruct globalStruct; - -@ffi.Native() -external int test1; - -@ffi.Native>() -external final ffi.Pointer test2; - -@ffi.Array.multi([10]) -@ffi.Native>() -external final ffi.Array test3; - -@ffi.Native>() -external ffi.Pointer test5; - -final class EmptyStruct extends ffi.Opaque {} - -final class Some extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart index 2620a9d703..ec3107d8d2 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart @@ -8,75 +8,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -class init_dylib$1 { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - init_dylib$1(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - init_dylib$1.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - void Test() { - return _Test(); - } - - late final _TestPtr = _lookup>( - 'Test', - ); - late final _Test = _TestPtr.asFunction(); - - void _c_test() { - return __c_test(); - } - - late final __c_testPtr = _lookup>( - '_c_test', - ); - late final __c_test = __c_testPtr.asFunction(); - - void _dart_test() { - return __dart_test(); - } - - late final __dart_testPtr = _lookup>( - '_dart_test', - ); - late final __dart_test = __dart_testPtr.asFunction(); - - void _test() { - return __test(); - } - - late final __testPtr = _lookup>( - '_test', - ); - late final __test = __testPtr.asFunction(); - - void test() { - return _test$1(); - } - - late final _testPtr = _lookup>( - 'test', - ); - late final _test$1 = _testPtr.asFunction(); -} - -final class ArrayHelperPrefixCollisionTest extends ffi.Opaque {} - -final class _Test$1 extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array array; -} - -sealed class _c_Test {} - -sealed class init_dylib {} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart index 6083b31c74..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart @@ -6,13 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -@ffi.DefaultAsset('test') -library; - -import 'dart:ffi' as ffi; - -@ffi.Native(symbol: '_test') -external void test(); - -@ffi.Native(symbol: '_testField') -external int testField; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart index 5beed3d63e..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart @@ -6,69 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -final class NoPacking extends ffi.Struct { - @ffi.Uint8() - external int a; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int a, - }) => $allocator()..ref.a = a; -} - -@ffi.Packed(1) -final class Pack1 extends ffi.Struct { - @ffi.Uint8() - external int a; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int a, - }) => $allocator()..ref.a = a; -} - -@ffi.Packed(16) -final class Pack16 extends ffi.Struct { - @ffi.Uint8() - external int a; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int a, - }) => $allocator()..ref.a = a; -} - -@ffi.Packed(2) -final class Pack2 extends ffi.Struct { - @ffi.Uint8() - external int a; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int a, - }) => $allocator()..ref.a = a; -} - -@ffi.Packed(4) -final class Pack4 extends ffi.Struct { - @ffi.Uint8() - external int a; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int a, - }) => $allocator()..ref.a = a; -} - -@ffi.Packed(8) -final class Pack8 extends ffi.Struct { - @ffi.Uint8() - external int a; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int a, - }) => $allocator()..ref.a = a; -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart index 64e5565654..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart @@ -6,20 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -final class CollisionStruct extends ffi.Struct { - @ffi.Int32() - external int allocator; - - @ffi.Int32() - external int allocate; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int allocator, - required int allocate, - }) => $allocator() - ..ref.allocator = allocator - ..ref.allocate = allocate; -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart index d1318f9dab..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart @@ -6,62 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -/// Just a test struct -/// heres another line -final class NoMember extends ffi.Opaque {} - -final class WithIntPtrUintPtr extends ffi.Struct { - external ffi.Pointer a; - - external ffi.Pointer> b; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer a, - required ffi.Pointer> b, - }) => $allocator() - ..ref.a = a - ..ref.b = b; -} - -final class WithPointerMember extends ffi.Struct { - external ffi.Pointer a; - - external ffi.Pointer> b; - - @ffi.Uint8() - external int c; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer a, - required ffi.Pointer> b, - required int c, - }) => $allocator() - ..ref.a = a - ..ref.b = b - ..ref.c = c; -} - -final class WithPrimitiveMember extends ffi.Struct { - @ffi.Int32() - external int a; - - @ffi.Double() - external double b; - - @ffi.Uint8() - external int c; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int a, - required double b, - required int c, - }) => $allocator() - ..ref.a = a - ..ref.b = b - ..ref.c = c; -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart index 077f94c7a5..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart @@ -6,63 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -class Bindings { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - Bindings.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - ffi.Pointer> WithTypealiasStruct( - Struct3Typealias t, - ) { - return _WithTypealiasStruct(t); - } - - late final _WithTypealiasStructPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer> Function( - Struct3Typealias, - ) - > - >('WithTypealiasStruct'); - late final _WithTypealiasStruct = - _WithTypealiasStructPtr.asFunction< - ffi.Pointer> Function( - Struct3Typealias, - ) - >(); -} - -typedef RawUnused = Struct1; - -final class Struct1 extends ffi.Opaque {} - -final class Struct2 extends ffi.Struct { - @ffi.Double() - external double a; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double a, - }) => $allocator()..ref.a = a; -} - -typedef Struct2Typealias = Struct2; - -final class Struct3 extends ffi.Opaque {} - -typedef Struct3Typealias = Struct3; - -final class WithTypealiasStruct$1 extends ffi.Struct { - external Struct2Typealias t; -} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart index 9b9f2c0720..c974a8a80c 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart @@ -6,63 +6,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -final class EmptyUnion extends ffi.Opaque {} - -final class Primitives extends ffi.Union { - @ffi.Char() - external int a; - - @ffi.Int() - external int b; - - @ffi.Float() - external double c; - - @ffi.Double() - external double d; -} - -final class PrimitivesWithPointers extends ffi.Union { - @ffi.Char() - external int a; - - @ffi.Float() - external double b; - - external ffi.Pointer c; - - external ffi.Pointer d; - - external ffi.Pointer d$1; -} - -final class Struct1 extends ffi.Struct { - @ffi.Char() - external int a; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int a, - }) => $allocator()..ref.a = a; -} - -final class Union1 extends ffi.Union { - @ffi.Char() - external int a; -} - -final class WithArray extends ffi.Union { - @ffi.Array.multi([10]) - external ffi.Array a; - - @ffi.Array.multi([10]) - external ffi.Array b; - - @ffi.Array.multi([10]) - external ffi.Array b$1; - - @ffi.Array.multi([10]) - external ffi.Array> c; -} diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart index ea8b18bd04..dc0a0df2be 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart @@ -2,81 +2,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi$2; - -class Bindings { - /// Holds the symbol lookup function. - final ffi$2.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - Bindings(ffi$2.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - Bindings.fromLookup( - ffi$2.Pointer Function(String symbolName) - lookup, - ) : _lookup = lookup; - - void ffi$1() { - return _ffi$1(); - } - - late final _ffi$1Ptr = _lookup>( - 'ffi\$1', - ); - late final _ffi$1 = _ffi$1Ptr.asFunction(); - - void testCrossDecl$1() { - return _testCrossDecl(); - } - - late final _testCrossDecl$1Ptr = - _lookup>('testCrossDecl'); - late final _testCrossDecl = _testCrossDecl$1Ptr.asFunction(); - - void testFunc() { - return _testFunc(); - } - - late final _testFuncPtr = - _lookup>('testFunc'); - late final _testFunc = _testFuncPtr.asFunction(); - - void testFunc$1() { - return _testFunc$1(); - } - - late final _testFunc$1Ptr = - _lookup>('testFunc'); - late final _testFunc$1 = _testFunc$1Ptr.asFunction(); -} - -sealed class TestEnum {} - -sealed class TestEnum$1 {} - -final class TestStruct extends ffi$2.Opaque {} - -final class TestStruct$1 extends ffi$2.Opaque {} - -const int Test_Macro = 0; - -const int Test_Macro$1 = 0; - -final class ffi extends ffi$2.Opaque {} - -typedef testAlias = ffi$2.Void; -typedef DarttestAlias = void; -typedef testAlias$1 = ffi$2.Void; -typedef DarttestAlias$1 = void; - -sealed class testCrossDecl {} - -const int testCrossDecl$2 = 0; - -final class testCrossDecl$3 extends ffi$2.Opaque {} - -typedef testCrossDecl$4 = ffi$2.Void; -typedef DarttestCrossDecl = void; diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart index b18a004065..a86ae3d208 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart @@ -4,57 +4,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -class Bindings$1 { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - Bindings$1(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - Bindings$1.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - void _SymbolAddresses_1() { - return __SymbolAddresses_1(); - } - - late final __SymbolAddresses_1Ptr = - _lookup>('_SymbolAddresses_1'); - late final __SymbolAddresses_1 = __SymbolAddresses_1Ptr - .asFunction(); - - void _library() { - return __library(); - } - - late final __libraryPtr = _lookup>( - '_library', - ); - late final __library = __libraryPtr.asFunction(); - - late final addresses$1 = _SymbolAddresses$1(this); -} - -class _SymbolAddresses$1 { - final Bindings$1 _library$1; - _SymbolAddresses$1(this._library$1); - ffi.Pointer> get _SymbolAddresses_1 => - _library$1.__SymbolAddresses_1Ptr; - ffi.Pointer> get _library => - _library$1.__libraryPtr; -} - -sealed class Bindings {} - -typedef Native_library = ffi.Void Function(); -typedef Dart_library = void Function(); - -final class _SymbolAddresses extends ffi.Opaque {} - -final class addresses extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart index 3d07ddf33e..dc0a0df2be 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart @@ -2,70 +2,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -class NativeLibrary { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - NativeLibrary(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - NativeLibrary.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - void implements(int dynamic, int in$, int deferred) { - return _implements(dynamic, in$, deferred); - } - - late final _implementsPtr = - _lookup>( - 'implements', - ); - late final _implements = _implementsPtr - .asFunction(); - - late final ffi.Pointer _import = _lookup('import'); - - int get import => _import.value; - - set import(int value) => _import.value = value; -} - -final class Repro2795 extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction in$)> - > - var$1; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction in$)> - > - var$1, - }) => $allocator()..ref.var$1 = var$1; -} - -final class abstract$ extends ffi.Opaque {} - -enum export$ { - covariant(0); - - final int value; - const export$(this.value); - - static export$ fromValue(int value) => switch (value) { - 0 => covariant, - _ => throw ArgumentError('Unknown value for export\$: $value'), - }; -} - -final class show extends ffi.Opaque {} - -typedef var$ = ffi.Void; -typedef Dartvar = void; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart index f7947f5dff..5f5df1f17f 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart @@ -71,6 +71,5 @@ final class Struct2 extends ffi.Struct { }) => $allocator()..ref.h = h; } -typedef Typedef1 = ffi.Pointer>; -typedef Typedef1Function = ffi.Void Function(ffi.Handle); -typedef DartTypedef1Function = void Function(Object); +typedef Typedef1 = + ffi.Pointer>; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart index 52c3240100..eb0ed55bf9 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart @@ -71,10 +71,7 @@ class NativeLibrary { .asFunction(); } -typedef InsideReturnType = - ffi.Pointer>; -typedef InsideReturnTypeFunction = ffi.Void Function(); -typedef DartInsideReturnTypeFunction = void Function(); +typedef InsideReturnType = ffi.Pointer>; final class Struct extends ffi.Struct { external ffi.Pointer< @@ -108,10 +105,6 @@ final class Struct2 extends ffi.Struct { }) => $allocator()..ref.constFuncPointer = constFuncPointer; } -typedef VoidFuncPointer = - ffi.Pointer>; -typedef VoidFuncPointerFunction = ffi.Void Function(); -typedef DartVoidFuncPointerFunction = void Function(); +typedef VoidFuncPointer = ffi.Pointer>; typedef WithTypedefReturnType = - ffi.Pointer>; -typedef WithTypedefReturnTypeFunction = InsideReturnType Function(); + ffi.Pointer>; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart index 23f64da8b3..dc0a0df2be 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart @@ -2,13 +2,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; -import 'package:meta/meta.dart' as meta; - -@meta.RecordUse() -@ffi.Native(symbol: 'sum') -external int add(int a, int b); - -@meta.RecordUse() -@ffi.Native() -external void nop(); diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_mapping.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_mapping.dart deleted file mode 100644 index 4c0a3b19df..0000000000 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_mapping.dart +++ /dev/null @@ -1,7 +0,0 @@ -// AUTO GENERATED FILE, DO NOT EDIT. -// -// Generated by `package:ffigen`. -// ignore_for_file: type=lint - -/// Mapping from Dart function name to native symbol name. -const recordUseMapping = {'add': 'sum', 'nop': 'nop'}; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart index 8843436dc8..dc0a0df2be 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart @@ -2,16 +2,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -typedef aaaa = ffff; - -final class bbbb extends ffi.Opaque {} - -final class cccc extends ffi.Opaque {} - -final class dddd extends ffi.Opaque {} - -typedef eeee = cccc; - -final class ffff extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart index 550cfc43c9..5608b359c1 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart @@ -5,9 +5,7 @@ import 'dart:ffi' as ffi; typedef ArithmeticOperation = - ffi.Pointer>; -typedef ArithmeticOperationFunction = ffi.Int Function(ffi.Int a, ffi.Int b); -typedef DartArithmeticOperationFunction = int Function(int a, int b); + ffi.Pointer>; final class S extends ffi.Struct { external ffi.Pointer> func1; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart index 7d2414c949..89d7474092 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart @@ -97,9 +97,7 @@ typedef ExcludedStruct = _ExcludedStruct; typedef IncludedTypedef = ffi.Pointer; typedef NTyperef1 = ExcludedStruct; typedef NamedFunctionProto = - ffi.Pointer>; -typedef NamedFunctionProtoFunction = ffi.Void Function(); -typedef DartNamedFunctionProtoFunction = void Function(); + ffi.Pointer>; typedef NamedStructInTypedef = _NamedStructInTypedef; typedef NestingASpecifiedType = ffi.IntPtr; typedef DartNestingASpecifiedType = int; diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart index b2e87d134f..dc0a0df2be 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart @@ -2,1298 +2,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -/// Bindings to Cjson. -class CJson { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - CJson(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - CJson.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - ffi.Pointer cJSON_AddArrayToObject( - ffi.Pointer object, - ffi.Pointer name, - ) { - return _cJSON_AddArrayToObject(object, name); - } - - late final _cJSON_AddArrayToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_AddArrayToObject'); - late final _cJSON_AddArrayToObject = _cJSON_AddArrayToObjectPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - >(); - - ffi.Pointer cJSON_AddBoolToObject( - ffi.Pointer object, - ffi.Pointer name, - int boolean, - ) { - return _cJSON_AddBoolToObject(object, name, boolean); - } - - late final _cJSON_AddBoolToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - cJSON_bool, - ) - > - >('cJSON_AddBoolToObject'); - late final _cJSON_AddBoolToObject = _cJSON_AddBoolToObjectPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); - - ffi.Pointer cJSON_AddFalseToObject( - ffi.Pointer object, - ffi.Pointer name, - ) { - return _cJSON_AddFalseToObject(object, name); - } - - late final _cJSON_AddFalseToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_AddFalseToObject'); - late final _cJSON_AddFalseToObject = _cJSON_AddFalseToObjectPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - >(); - - void cJSON_AddItemReferenceToArray( - ffi.Pointer array, - ffi.Pointer item, - ) { - return _cJSON_AddItemReferenceToArray(array, item); - } - - late final _cJSON_AddItemReferenceToArrayPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_AddItemReferenceToArray'); - late final _cJSON_AddItemReferenceToArray = _cJSON_AddItemReferenceToArrayPtr - .asFunction, ffi.Pointer)>(); - - void cJSON_AddItemReferenceToObject( - ffi.Pointer object, - ffi.Pointer string, - ffi.Pointer item, - ) { - return _cJSON_AddItemReferenceToObject(object, string, item); - } - - late final _cJSON_AddItemReferenceToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('cJSON_AddItemReferenceToObject'); - late final _cJSON_AddItemReferenceToObject = - _cJSON_AddItemReferenceToObjectPtr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - void cJSON_AddItemToArray(ffi.Pointer array, ffi.Pointer item) { - return _cJSON_AddItemToArray(array, item); - } - - late final _cJSON_AddItemToArrayPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_AddItemToArray'); - late final _cJSON_AddItemToArray = _cJSON_AddItemToArrayPtr - .asFunction, ffi.Pointer)>(); - - void cJSON_AddItemToObject( - ffi.Pointer object, - ffi.Pointer string, - ffi.Pointer item, - ) { - return _cJSON_AddItemToObject(object, string, item); - } - - late final _cJSON_AddItemToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('cJSON_AddItemToObject'); - late final _cJSON_AddItemToObject = _cJSON_AddItemToObjectPtr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - void cJSON_AddItemToObjectCS( - ffi.Pointer object, - ffi.Pointer string, - ffi.Pointer item, - ) { - return _cJSON_AddItemToObjectCS(object, string, item); - } - - late final _cJSON_AddItemToObjectCSPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('cJSON_AddItemToObjectCS'); - late final _cJSON_AddItemToObjectCS = _cJSON_AddItemToObjectCSPtr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - ffi.Pointer cJSON_AddNullToObject( - ffi.Pointer object, - ffi.Pointer name, - ) { - return _cJSON_AddNullToObject(object, name); - } - - late final _cJSON_AddNullToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_AddNullToObject'); - late final _cJSON_AddNullToObject = _cJSON_AddNullToObjectPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - >(); - - ffi.Pointer cJSON_AddNumberToObject( - ffi.Pointer object, - ffi.Pointer name, - double number, - ) { - return _cJSON_AddNumberToObject(object, name, number); - } - - late final _cJSON_AddNumberToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >('cJSON_AddNumberToObject'); - late final _cJSON_AddNumberToObject = _cJSON_AddNumberToObjectPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); - - ffi.Pointer cJSON_AddObjectToObject( - ffi.Pointer object, - ffi.Pointer name, - ) { - return _cJSON_AddObjectToObject(object, name); - } - - late final _cJSON_AddObjectToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_AddObjectToObject'); - late final _cJSON_AddObjectToObject = _cJSON_AddObjectToObjectPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - >(); - - ffi.Pointer cJSON_AddRawToObject( - ffi.Pointer object, - ffi.Pointer name, - ffi.Pointer raw, - ) { - return _cJSON_AddRawToObject(object, name, raw); - } - - late final _cJSON_AddRawToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('cJSON_AddRawToObject'); - late final _cJSON_AddRawToObject = _cJSON_AddRawToObjectPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - ffi.Pointer cJSON_AddStringToObject( - ffi.Pointer object, - ffi.Pointer name, - ffi.Pointer string, - ) { - return _cJSON_AddStringToObject(object, name, string); - } - - late final _cJSON_AddStringToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('cJSON_AddStringToObject'); - late final _cJSON_AddStringToObject = _cJSON_AddStringToObjectPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - ffi.Pointer cJSON_AddTrueToObject( - ffi.Pointer object, - ffi.Pointer name, - ) { - return _cJSON_AddTrueToObject(object, name); - } - - late final _cJSON_AddTrueToObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_AddTrueToObject'); - late final _cJSON_AddTrueToObject = _cJSON_AddTrueToObjectPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - >(); - - int cJSON_Compare( - ffi.Pointer a, - ffi.Pointer b, - int case_sensitive, - ) { - return _cJSON_Compare(a, b, case_sensitive); - } - - late final _cJSON_ComparePtr = - _lookup< - ffi.NativeFunction< - cJSON_bool Function( - ffi.Pointer, - ffi.Pointer, - cJSON_bool, - ) - > - >('cJSON_Compare'); - late final _cJSON_Compare = _cJSON_ComparePtr - .asFunction, ffi.Pointer, int)>(); - - ffi.Pointer cJSON_CreateArray() { - return _cJSON_CreateArray(); - } - - late final _cJSON_CreateArrayPtr = - _lookup Function()>>( - 'cJSON_CreateArray', - ); - late final _cJSON_CreateArray = _cJSON_CreateArrayPtr - .asFunction Function()>(); - - ffi.Pointer cJSON_CreateArrayReference(ffi.Pointer child) { - return _cJSON_CreateArrayReference(child); - } - - late final _cJSON_CreateArrayReferencePtr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('cJSON_CreateArrayReference'); - late final _cJSON_CreateArrayReference = _cJSON_CreateArrayReferencePtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer cJSON_CreateBool(int boolean) { - return _cJSON_CreateBool(boolean); - } - - late final _cJSON_CreateBoolPtr = - _lookup Function(cJSON_bool)>>( - 'cJSON_CreateBool', - ); - late final _cJSON_CreateBool = _cJSON_CreateBoolPtr - .asFunction Function(int)>(); - - ffi.Pointer cJSON_CreateDoubleArray( - ffi.Pointer numbers, - int count, - ) { - return _cJSON_CreateDoubleArray(numbers, count); - } - - late final _cJSON_CreateDoubleArrayPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('cJSON_CreateDoubleArray'); - late final _cJSON_CreateDoubleArray = _cJSON_CreateDoubleArrayPtr - .asFunction Function(ffi.Pointer, int)>(); - - ffi.Pointer cJSON_CreateFalse() { - return _cJSON_CreateFalse(); - } - - late final _cJSON_CreateFalsePtr = - _lookup Function()>>( - 'cJSON_CreateFalse', - ); - late final _cJSON_CreateFalse = _cJSON_CreateFalsePtr - .asFunction Function()>(); - - ffi.Pointer cJSON_CreateFloatArray( - ffi.Pointer numbers, - int count, - ) { - return _cJSON_CreateFloatArray(numbers, count); - } - - late final _cJSON_CreateFloatArrayPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('cJSON_CreateFloatArray'); - late final _cJSON_CreateFloatArray = _cJSON_CreateFloatArrayPtr - .asFunction Function(ffi.Pointer, int)>(); - - ffi.Pointer cJSON_CreateIntArray( - ffi.Pointer numbers, - int count, - ) { - return _cJSON_CreateIntArray(numbers, count); - } - - late final _cJSON_CreateIntArrayPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('cJSON_CreateIntArray'); - late final _cJSON_CreateIntArray = _cJSON_CreateIntArrayPtr - .asFunction Function(ffi.Pointer, int)>(); - - ffi.Pointer cJSON_CreateNull() { - return _cJSON_CreateNull(); - } - - late final _cJSON_CreateNullPtr = - _lookup Function()>>( - 'cJSON_CreateNull', - ); - late final _cJSON_CreateNull = _cJSON_CreateNullPtr - .asFunction Function()>(); - - ffi.Pointer cJSON_CreateNumber(double num) { - return _cJSON_CreateNumber(num); - } - - late final _cJSON_CreateNumberPtr = - _lookup Function(ffi.Double)>>( - 'cJSON_CreateNumber', - ); - late final _cJSON_CreateNumber = _cJSON_CreateNumberPtr - .asFunction Function(double)>(); - - ffi.Pointer cJSON_CreateObject() { - return _cJSON_CreateObject(); - } - - late final _cJSON_CreateObjectPtr = - _lookup Function()>>( - 'cJSON_CreateObject', - ); - late final _cJSON_CreateObject = _cJSON_CreateObjectPtr - .asFunction Function()>(); - - ffi.Pointer cJSON_CreateObjectReference(ffi.Pointer child) { - return _cJSON_CreateObjectReference(child); - } - - late final _cJSON_CreateObjectReferencePtr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('cJSON_CreateObjectReference'); - late final _cJSON_CreateObjectReference = _cJSON_CreateObjectReferencePtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer cJSON_CreateRaw(ffi.Pointer raw) { - return _cJSON_CreateRaw(raw); - } - - late final _cJSON_CreateRawPtr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('cJSON_CreateRaw'); - late final _cJSON_CreateRaw = _cJSON_CreateRawPtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer cJSON_CreateString(ffi.Pointer string) { - return _cJSON_CreateString(string); - } - - late final _cJSON_CreateStringPtr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('cJSON_CreateString'); - late final _cJSON_CreateString = _cJSON_CreateStringPtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer cJSON_CreateStringArray( - ffi.Pointer> strings, - int count, - ) { - return _cJSON_CreateStringArray(strings, count); - } - - late final _cJSON_CreateStringArrayPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer>, - ffi.Int, - ) - > - >('cJSON_CreateStringArray'); - late final _cJSON_CreateStringArray = _cJSON_CreateStringArrayPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer>, int) - >(); - - ffi.Pointer cJSON_CreateStringReference(ffi.Pointer string) { - return _cJSON_CreateStringReference(string); - } - - late final _cJSON_CreateStringReferencePtr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('cJSON_CreateStringReference'); - late final _cJSON_CreateStringReference = _cJSON_CreateStringReferencePtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer cJSON_CreateTrue() { - return _cJSON_CreateTrue(); - } - - late final _cJSON_CreateTruePtr = - _lookup Function()>>( - 'cJSON_CreateTrue', - ); - late final _cJSON_CreateTrue = _cJSON_CreateTruePtr - .asFunction Function()>(); - - void cJSON_Delete(ffi.Pointer item) { - return _cJSON_Delete(item); - } - - late final _cJSON_DeletePtr = - _lookup)>>( - 'cJSON_Delete', - ); - late final _cJSON_Delete = _cJSON_DeletePtr - .asFunction)>(); - - void cJSON_DeleteItemFromArray(ffi.Pointer array, int which) { - return _cJSON_DeleteItemFromArray(array, which); - } - - late final _cJSON_DeleteItemFromArrayPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('cJSON_DeleteItemFromArray'); - late final _cJSON_DeleteItemFromArray = _cJSON_DeleteItemFromArrayPtr - .asFunction, int)>(); - - void cJSON_DeleteItemFromObject( - ffi.Pointer object, - ffi.Pointer string, - ) { - return _cJSON_DeleteItemFromObject(object, string); - } - - late final _cJSON_DeleteItemFromObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_DeleteItemFromObject'); - late final _cJSON_DeleteItemFromObject = _cJSON_DeleteItemFromObjectPtr - .asFunction, ffi.Pointer)>(); - - void cJSON_DeleteItemFromObjectCaseSensitive( - ffi.Pointer object, - ffi.Pointer string, - ) { - return _cJSON_DeleteItemFromObjectCaseSensitive(object, string); - } - - late final _cJSON_DeleteItemFromObjectCaseSensitivePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_DeleteItemFromObjectCaseSensitive'); - late final _cJSON_DeleteItemFromObjectCaseSensitive = - _cJSON_DeleteItemFromObjectCaseSensitivePtr - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >(); - - ffi.Pointer cJSON_DetachItemFromArray( - ffi.Pointer array, - int which, - ) { - return _cJSON_DetachItemFromArray(array, which); - } - - late final _cJSON_DetachItemFromArrayPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('cJSON_DetachItemFromArray'); - late final _cJSON_DetachItemFromArray = _cJSON_DetachItemFromArrayPtr - .asFunction Function(ffi.Pointer, int)>(); - - ffi.Pointer cJSON_DetachItemFromObject( - ffi.Pointer object, - ffi.Pointer string, - ) { - return _cJSON_DetachItemFromObject(object, string); - } - - late final _cJSON_DetachItemFromObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_DetachItemFromObject'); - late final _cJSON_DetachItemFromObject = _cJSON_DetachItemFromObjectPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - >(); - - ffi.Pointer cJSON_DetachItemFromObjectCaseSensitive( - ffi.Pointer object, - ffi.Pointer string, - ) { - return _cJSON_DetachItemFromObjectCaseSensitive(object, string); - } - - late final _cJSON_DetachItemFromObjectCaseSensitivePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_DetachItemFromObjectCaseSensitive'); - late final _cJSON_DetachItemFromObjectCaseSensitive = - _cJSON_DetachItemFromObjectCaseSensitivePtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); - - ffi.Pointer cJSON_DetachItemViaPointer( - ffi.Pointer parent, - ffi.Pointer item, - ) { - return _cJSON_DetachItemViaPointer(parent, item); - } - - late final _cJSON_DetachItemViaPointerPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_DetachItemViaPointer'); - late final _cJSON_DetachItemViaPointer = _cJSON_DetachItemViaPointerPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - >(); - - ffi.Pointer cJSON_Duplicate(ffi.Pointer item, int recurse) { - return _cJSON_Duplicate(item, recurse); - } - - late final _cJSON_DuplicatePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, cJSON_bool) - > - >('cJSON_Duplicate'); - late final _cJSON_Duplicate = _cJSON_DuplicatePtr - .asFunction Function(ffi.Pointer, int)>(); - - ffi.Pointer cJSON_GetArrayItem(ffi.Pointer array, int index) { - return _cJSON_GetArrayItem(array, index); - } - - late final _cJSON_GetArrayItemPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('cJSON_GetArrayItem'); - late final _cJSON_GetArrayItem = _cJSON_GetArrayItemPtr - .asFunction Function(ffi.Pointer, int)>(); - - int cJSON_GetArraySize(ffi.Pointer array) { - return _cJSON_GetArraySize(array); - } - - late final _cJSON_GetArraySizePtr = - _lookup)>>( - 'cJSON_GetArraySize', - ); - late final _cJSON_GetArraySize = _cJSON_GetArraySizePtr - .asFunction)>(); - - ffi.Pointer cJSON_GetErrorPtr() { - return _cJSON_GetErrorPtr(); - } - - late final _cJSON_GetErrorPtrPtr = - _lookup Function()>>( - 'cJSON_GetErrorPtr', - ); - late final _cJSON_GetErrorPtr = _cJSON_GetErrorPtrPtr - .asFunction Function()>(); - - ffi.Pointer cJSON_GetObjectItem( - ffi.Pointer object, - ffi.Pointer string, - ) { - return _cJSON_GetObjectItem(object, string); - } - - late final _cJSON_GetObjectItemPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_GetObjectItem'); - late final _cJSON_GetObjectItem = _cJSON_GetObjectItemPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - >(); - - ffi.Pointer cJSON_GetObjectItemCaseSensitive( - ffi.Pointer object, - ffi.Pointer string, - ) { - return _cJSON_GetObjectItemCaseSensitive(object, string); - } - - late final _cJSON_GetObjectItemCaseSensitivePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_GetObjectItemCaseSensitive'); - late final _cJSON_GetObjectItemCaseSensitive = - _cJSON_GetObjectItemCaseSensitivePtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); - - ffi.Pointer cJSON_GetStringValue(ffi.Pointer item) { - return _cJSON_GetStringValue(item); - } - - late final _cJSON_GetStringValuePtr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('cJSON_GetStringValue'); - late final _cJSON_GetStringValue = _cJSON_GetStringValuePtr - .asFunction Function(ffi.Pointer)>(); - - int cJSON_HasObjectItem( - ffi.Pointer object, - ffi.Pointer string, - ) { - return _cJSON_HasObjectItem(object, string); - } - - late final _cJSON_HasObjectItemPtr = - _lookup< - ffi.NativeFunction< - cJSON_bool Function(ffi.Pointer, ffi.Pointer) - > - >('cJSON_HasObjectItem'); - late final _cJSON_HasObjectItem = _cJSON_HasObjectItemPtr - .asFunction, ffi.Pointer)>(); - - void cJSON_InitHooks(ffi.Pointer hooks) { - return _cJSON_InitHooks(hooks); - } - - late final _cJSON_InitHooksPtr = - _lookup)>>( - 'cJSON_InitHooks', - ); - late final _cJSON_InitHooks = _cJSON_InitHooksPtr - .asFunction)>(); - - void cJSON_InsertItemInArray( - ffi.Pointer array, - int which, - ffi.Pointer newitem, - ) { - return _cJSON_InsertItemInArray(array, which, newitem); - } - - late final _cJSON_InsertItemInArrayPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) - > - >('cJSON_InsertItemInArray'); - late final _cJSON_InsertItemInArray = _cJSON_InsertItemInArrayPtr - .asFunction, int, ffi.Pointer)>(); - - int cJSON_IsArray(ffi.Pointer item) { - return _cJSON_IsArray(item); - } - - late final _cJSON_IsArrayPtr = - _lookup)>>( - 'cJSON_IsArray', - ); - late final _cJSON_IsArray = _cJSON_IsArrayPtr - .asFunction)>(); - - int cJSON_IsBool(ffi.Pointer item) { - return _cJSON_IsBool(item); - } - - late final _cJSON_IsBoolPtr = - _lookup)>>( - 'cJSON_IsBool', - ); - late final _cJSON_IsBool = _cJSON_IsBoolPtr - .asFunction)>(); - - int cJSON_IsFalse(ffi.Pointer item) { - return _cJSON_IsFalse(item); - } - - late final _cJSON_IsFalsePtr = - _lookup)>>( - 'cJSON_IsFalse', - ); - late final _cJSON_IsFalse = _cJSON_IsFalsePtr - .asFunction)>(); - - int cJSON_IsInvalid(ffi.Pointer item) { - return _cJSON_IsInvalid(item); - } - - late final _cJSON_IsInvalidPtr = - _lookup)>>( - 'cJSON_IsInvalid', - ); - late final _cJSON_IsInvalid = _cJSON_IsInvalidPtr - .asFunction)>(); - - int cJSON_IsNull(ffi.Pointer item) { - return _cJSON_IsNull(item); - } - - late final _cJSON_IsNullPtr = - _lookup)>>( - 'cJSON_IsNull', - ); - late final _cJSON_IsNull = _cJSON_IsNullPtr - .asFunction)>(); - - int cJSON_IsNumber(ffi.Pointer item) { - return _cJSON_IsNumber(item); - } - - late final _cJSON_IsNumberPtr = - _lookup)>>( - 'cJSON_IsNumber', - ); - late final _cJSON_IsNumber = _cJSON_IsNumberPtr - .asFunction)>(); - - int cJSON_IsObject(ffi.Pointer item) { - return _cJSON_IsObject(item); - } - - late final _cJSON_IsObjectPtr = - _lookup)>>( - 'cJSON_IsObject', - ); - late final _cJSON_IsObject = _cJSON_IsObjectPtr - .asFunction)>(); - - int cJSON_IsRaw(ffi.Pointer item) { - return _cJSON_IsRaw(item); - } - - late final _cJSON_IsRawPtr = - _lookup)>>( - 'cJSON_IsRaw', - ); - late final _cJSON_IsRaw = _cJSON_IsRawPtr - .asFunction)>(); - - int cJSON_IsString(ffi.Pointer item) { - return _cJSON_IsString(item); - } - - late final _cJSON_IsStringPtr = - _lookup)>>( - 'cJSON_IsString', - ); - late final _cJSON_IsString = _cJSON_IsStringPtr - .asFunction)>(); - - int cJSON_IsTrue(ffi.Pointer item) { - return _cJSON_IsTrue(item); - } - - late final _cJSON_IsTruePtr = - _lookup)>>( - 'cJSON_IsTrue', - ); - late final _cJSON_IsTrue = _cJSON_IsTruePtr - .asFunction)>(); - - void cJSON_Minify(ffi.Pointer json) { - return _cJSON_Minify(json); - } - - late final _cJSON_MinifyPtr = - _lookup)>>( - 'cJSON_Minify', - ); - late final _cJSON_Minify = _cJSON_MinifyPtr - .asFunction)>(); - - ffi.Pointer cJSON_Parse(ffi.Pointer value) { - return _cJSON_Parse(value); - } - - late final _cJSON_ParsePtr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('cJSON_Parse'); - late final _cJSON_Parse = _cJSON_ParsePtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer cJSON_ParseWithOpts( - ffi.Pointer value, - ffi.Pointer> return_parse_end, - int require_null_terminated, - ) { - return _cJSON_ParseWithOpts( - value, - return_parse_end, - require_null_terminated, - ); - } - - late final _cJSON_ParseWithOptsPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer>, - cJSON_bool, - ) - > - >('cJSON_ParseWithOpts'); - late final _cJSON_ParseWithOpts = _cJSON_ParseWithOptsPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); - - ffi.Pointer cJSON_Print(ffi.Pointer item) { - return _cJSON_Print(item); - } - - late final _cJSON_PrintPtr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('cJSON_Print'); - late final _cJSON_Print = _cJSON_PrintPtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer cJSON_PrintBuffered( - ffi.Pointer item, - int prebuffer, - int fmt, - ) { - return _cJSON_PrintBuffered(item, prebuffer, fmt); - } - - late final _cJSON_PrintBufferedPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - cJSON_bool, - ) - > - >('cJSON_PrintBuffered'); - late final _cJSON_PrintBuffered = _cJSON_PrintBufferedPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int, int) - >(); - - int cJSON_PrintPreallocated( - ffi.Pointer item, - ffi.Pointer buffer, - int length, - int format, - ) { - return _cJSON_PrintPreallocated(item, buffer, length, format); - } - - late final _cJSON_PrintPreallocatedPtr = - _lookup< - ffi.NativeFunction< - cJSON_bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - cJSON_bool, - ) - > - >('cJSON_PrintPreallocated'); - late final _cJSON_PrintPreallocated = _cJSON_PrintPreallocatedPtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, int) - >(); - - ffi.Pointer cJSON_PrintUnformatted(ffi.Pointer item) { - return _cJSON_PrintUnformatted(item); - } - - late final _cJSON_PrintUnformattedPtr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('cJSON_PrintUnformatted'); - late final _cJSON_PrintUnformatted = _cJSON_PrintUnformattedPtr - .asFunction Function(ffi.Pointer)>(); - - void cJSON_ReplaceItemInArray( - ffi.Pointer array, - int which, - ffi.Pointer newitem, - ) { - return _cJSON_ReplaceItemInArray(array, which, newitem); - } - - late final _cJSON_ReplaceItemInArrayPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) - > - >('cJSON_ReplaceItemInArray'); - late final _cJSON_ReplaceItemInArray = _cJSON_ReplaceItemInArrayPtr - .asFunction, int, ffi.Pointer)>(); - - void cJSON_ReplaceItemInObject( - ffi.Pointer object, - ffi.Pointer string, - ffi.Pointer newitem, - ) { - return _cJSON_ReplaceItemInObject(object, string, newitem); - } - - late final _cJSON_ReplaceItemInObjectPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('cJSON_ReplaceItemInObject'); - late final _cJSON_ReplaceItemInObject = _cJSON_ReplaceItemInObjectPtr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - void cJSON_ReplaceItemInObjectCaseSensitive( - ffi.Pointer object, - ffi.Pointer string, - ffi.Pointer newitem, - ) { - return _cJSON_ReplaceItemInObjectCaseSensitive(object, string, newitem); - } - - late final _cJSON_ReplaceItemInObjectCaseSensitivePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('cJSON_ReplaceItemInObjectCaseSensitive'); - late final _cJSON_ReplaceItemInObjectCaseSensitive = - _cJSON_ReplaceItemInObjectCaseSensitivePtr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - int cJSON_ReplaceItemViaPointer( - ffi.Pointer parent, - ffi.Pointer item, - ffi.Pointer replacement, - ) { - return _cJSON_ReplaceItemViaPointer(parent, item, replacement); - } - - late final _cJSON_ReplaceItemViaPointerPtr = - _lookup< - ffi.NativeFunction< - cJSON_bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('cJSON_ReplaceItemViaPointer'); - late final _cJSON_ReplaceItemViaPointer = _cJSON_ReplaceItemViaPointerPtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer) - >(); - - double cJSON_SetNumberHelper(ffi.Pointer object, double number) { - return _cJSON_SetNumberHelper(object, number); - } - - late final _cJSON_SetNumberHelperPtr = - _lookup< - ffi.NativeFunction, ffi.Double)> - >('cJSON_SetNumberHelper'); - late final _cJSON_SetNumberHelper = _cJSON_SetNumberHelperPtr - .asFunction, double)>(); - - ffi.Pointer cJSON_Version() { - return _cJSON_Version(); - } - - late final _cJSON_VersionPtr = - _lookup Function()>>( - 'cJSON_Version', - ); - late final _cJSON_Version = _cJSON_VersionPtr - .asFunction Function()>(); - - void cJSON_free(ffi.Pointer object) { - return _cJSON_free(object); - } - - late final _cJSON_freePtr = - _lookup)>>( - 'cJSON_free', - ); - late final _cJSON_free = _cJSON_freePtr - .asFunction)>(); - - ffi.Pointer cJSON_malloc(int size) { - return _cJSON_malloc(size); - } - - late final _cJSON_mallocPtr = - _lookup Function(ffi.Size)>>( - 'cJSON_malloc', - ); - late final _cJSON_malloc = _cJSON_mallocPtr - .asFunction Function(int)>(); -} - -const double CJSON_DOUBLE_PRECISION = 1e-16; - -const int CJSON_NESTING_LIMIT = 1000; - -const int CJSON_VERSION_MAJOR = 1; - -const int CJSON_VERSION_MINOR = 7; - -const int CJSON_VERSION_PATCH = 12; - -final class cJSON extends ffi.Struct { - external ffi.Pointer next; - - external ffi.Pointer prev; - - external ffi.Pointer child; - - @ffi.Int() - external int type; - - external ffi.Pointer valuestring; - - @ffi.Int() - external int valueint; - - @ffi.Double() - external double valuedouble; - - external ffi.Pointer string; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer next, - required ffi.Pointer prev, - required ffi.Pointer child, - required int type, - required ffi.Pointer valuestring, - required int valueint, - required double valuedouble, - required ffi.Pointer string, - }) => $allocator() - ..ref.next = next - ..ref.prev = prev - ..ref.child = child - ..ref.type = type - ..ref.valuestring = valuestring - ..ref.valueint = valueint - ..ref.valuedouble = valuedouble - ..ref.string = string; -} - -const int cJSON_Array = 32; - -const int cJSON_False = 1; - -final class cJSON_Hooks extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction Function(ffi.Size sz)> - > - malloc_fn; - - external ffi.Pointer< - ffi.NativeFunction ptr)> - > - free_fn; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction Function(ffi.Size sz)> - > - malloc_fn, - required ffi.Pointer< - ffi.NativeFunction ptr)> - > - free_fn, - }) => $allocator() - ..ref.malloc_fn = malloc_fn - ..ref.free_fn = free_fn; -} - -const int cJSON_Invalid = 0; - -const int cJSON_IsReference = 256; - -const int cJSON_NULL = 4; - -const int cJSON_Number = 8; - -const int cJSON_Object = 64; - -const int cJSON_Raw = 128; - -const int cJSON_String = 16; - -const int cJSON_StringIsConst = 512; - -const int cJSON_True = 2; - -typedef cJSON_bool = ffi.Int; -typedef DartcJSON_bool = int; diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart index 35c30efc15..dc0a0df2be 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart @@ -2,9125 +2,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -/// Bindings to LibClang. -class LibClang { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - LibClang(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - LibClang.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - /// Queries a CXCursorSet to see if it contains a specific CXCursor. - int clang_CXCursorSet_contains(CXCursorSet cset, CXCursor cursor) { - return _clang_CXCursorSet_contains(cset, cursor); - } - - late final _clang_CXCursorSet_containsPtr = - _lookup< - ffi.NativeFunction - >('clang_CXCursorSet_contains'); - late final _clang_CXCursorSet_contains = _clang_CXCursorSet_containsPtr - .asFunction(); - - /// Inserts a CXCursor into a CXCursorSet. - int clang_CXCursorSet_insert(CXCursorSet cset, CXCursor cursor) { - return _clang_CXCursorSet_insert(cset, cursor); - } - - late final _clang_CXCursorSet_insertPtr = - _lookup< - ffi.NativeFunction - >('clang_CXCursorSet_insert'); - late final _clang_CXCursorSet_insert = _clang_CXCursorSet_insertPtr - .asFunction(); - - /// Gets the general options associated with a CXIndex. - int clang_CXIndex_getGlobalOptions(CXIndex arg0) { - return _clang_CXIndex_getGlobalOptions(arg0); - } - - late final _clang_CXIndex_getGlobalOptionsPtr = - _lookup>( - 'clang_CXIndex_getGlobalOptions', - ); - late final _clang_CXIndex_getGlobalOptions = - _clang_CXIndex_getGlobalOptionsPtr.asFunction(); - - /// Sets general options associated with a CXIndex. - void clang_CXIndex_setGlobalOptions(CXIndex arg0, int options) { - return _clang_CXIndex_setGlobalOptions(arg0, options); - } - - late final _clang_CXIndex_setGlobalOptionsPtr = - _lookup>( - 'clang_CXIndex_setGlobalOptions', - ); - late final _clang_CXIndex_setGlobalOptions = - _clang_CXIndex_setGlobalOptionsPtr - .asFunction(); - - /// Sets the invocation emission path option in a CXIndex. - void clang_CXIndex_setInvocationEmissionPathOption( - CXIndex arg0, - ffi.Pointer Path, - ) { - return _clang_CXIndex_setInvocationEmissionPathOption(arg0, Path); - } - - late final _clang_CXIndex_setInvocationEmissionPathOptionPtr = - _lookup< - ffi.NativeFunction)> - >('clang_CXIndex_setInvocationEmissionPathOption'); - late final _clang_CXIndex_setInvocationEmissionPathOption = - _clang_CXIndex_setInvocationEmissionPathOptionPtr - .asFunction)>(); - - /// Determine if a C++ constructor is a converting constructor. - int clang_CXXConstructor_isConvertingConstructor(CXCursor C) { - return _clang_CXXConstructor_isConvertingConstructor(C); - } - - late final _clang_CXXConstructor_isConvertingConstructorPtr = - _lookup>( - 'clang_CXXConstructor_isConvertingConstructor', - ); - late final _clang_CXXConstructor_isConvertingConstructor = - _clang_CXXConstructor_isConvertingConstructorPtr - .asFunction(); - - /// Determine if a C++ constructor is a copy constructor. - int clang_CXXConstructor_isCopyConstructor(CXCursor C) { - return _clang_CXXConstructor_isCopyConstructor(C); - } - - late final _clang_CXXConstructor_isCopyConstructorPtr = - _lookup>( - 'clang_CXXConstructor_isCopyConstructor', - ); - late final _clang_CXXConstructor_isCopyConstructor = - _clang_CXXConstructor_isCopyConstructorPtr - .asFunction(); - - /// Determine if a C++ constructor is the default constructor. - int clang_CXXConstructor_isDefaultConstructor(CXCursor C) { - return _clang_CXXConstructor_isDefaultConstructor(C); - } - - late final _clang_CXXConstructor_isDefaultConstructorPtr = - _lookup>( - 'clang_CXXConstructor_isDefaultConstructor', - ); - late final _clang_CXXConstructor_isDefaultConstructor = - _clang_CXXConstructor_isDefaultConstructorPtr - .asFunction(); - - /// Determine if a C++ constructor is a move constructor. - int clang_CXXConstructor_isMoveConstructor(CXCursor C) { - return _clang_CXXConstructor_isMoveConstructor(C); - } - - late final _clang_CXXConstructor_isMoveConstructorPtr = - _lookup>( - 'clang_CXXConstructor_isMoveConstructor', - ); - late final _clang_CXXConstructor_isMoveConstructor = - _clang_CXXConstructor_isMoveConstructorPtr - .asFunction(); - - /// Determine if a C++ field is declared 'mutable'. - int clang_CXXField_isMutable(CXCursor C) { - return _clang_CXXField_isMutable(C); - } - - late final _clang_CXXField_isMutablePtr = - _lookup>( - 'clang_CXXField_isMutable', - ); - late final _clang_CXXField_isMutable = _clang_CXXField_isMutablePtr - .asFunction(); - - /// Determine if a C++ member function or member function template is declared - /// 'const'. - int clang_CXXMethod_isConst(CXCursor C) { - return _clang_CXXMethod_isConst(C); - } - - late final _clang_CXXMethod_isConstPtr = - _lookup>( - 'clang_CXXMethod_isConst', - ); - late final _clang_CXXMethod_isConst = _clang_CXXMethod_isConstPtr - .asFunction(); - - /// Determine if a C++ method is declared '= default'. - int clang_CXXMethod_isDefaulted(CXCursor C) { - return _clang_CXXMethod_isDefaulted(C); - } - - late final _clang_CXXMethod_isDefaultedPtr = - _lookup>( - 'clang_CXXMethod_isDefaulted', - ); - late final _clang_CXXMethod_isDefaulted = _clang_CXXMethod_isDefaultedPtr - .asFunction(); - - /// Determine if a C++ member function or member function template is pure - /// virtual. - int clang_CXXMethod_isPureVirtual(CXCursor C) { - return _clang_CXXMethod_isPureVirtual(C); - } - - late final _clang_CXXMethod_isPureVirtualPtr = - _lookup>( - 'clang_CXXMethod_isPureVirtual', - ); - late final _clang_CXXMethod_isPureVirtual = _clang_CXXMethod_isPureVirtualPtr - .asFunction(); - - /// Determine if a C++ member function or member function template is declared - /// 'static'. - int clang_CXXMethod_isStatic(CXCursor C) { - return _clang_CXXMethod_isStatic(C); - } - - late final _clang_CXXMethod_isStaticPtr = - _lookup>( - 'clang_CXXMethod_isStatic', - ); - late final _clang_CXXMethod_isStatic = _clang_CXXMethod_isStaticPtr - .asFunction(); - - /// Determine if a C++ member function or member function template is - /// explicitly declared 'virtual' or if it overrides a virtual method from one - /// of the base classes. - int clang_CXXMethod_isVirtual(CXCursor C) { - return _clang_CXXMethod_isVirtual(C); - } - - late final _clang_CXXMethod_isVirtualPtr = - _lookup>( - 'clang_CXXMethod_isVirtual', - ); - late final _clang_CXXMethod_isVirtual = _clang_CXXMethod_isVirtualPtr - .asFunction(); - - /// Determine if a C++ record is abstract, i.e. whether a class or struct has - /// a pure virtual member function. - int clang_CXXRecord_isAbstract(CXCursor C) { - return _clang_CXXRecord_isAbstract(C); - } - - late final _clang_CXXRecord_isAbstractPtr = - _lookup>( - 'clang_CXXRecord_isAbstract', - ); - late final _clang_CXXRecord_isAbstract = _clang_CXXRecord_isAbstractPtr - .asFunction(); - - /// If cursor is a statement declaration tries to evaluate the statement and - /// if its variable, tries to evaluate its initializer, into its corresponding - /// type. - CXEvalResult clang_Cursor_Evaluate(CXCursor C) { - return _clang_Cursor_Evaluate(C); - } - - late final _clang_Cursor_EvaluatePtr = - _lookup>( - 'clang_Cursor_Evaluate', - ); - late final _clang_Cursor_Evaluate = _clang_Cursor_EvaluatePtr - .asFunction(); - - /// Retrieve the argument cursor of a function or method. - CXCursor clang_Cursor_getArgument(CXCursor C, int i) { - return _clang_Cursor_getArgument(C, i); - } - - late final _clang_Cursor_getArgumentPtr = - _lookup>( - 'clang_Cursor_getArgument', - ); - late final _clang_Cursor_getArgument = _clang_Cursor_getArgumentPtr - .asFunction(); - - /// Given a cursor that represents a documentable entity (e.g., declaration), - /// return the associated first paragraph. - CXString clang_Cursor_getBriefCommentText(CXCursor C) { - return _clang_Cursor_getBriefCommentText(C); - } - - late final _clang_Cursor_getBriefCommentTextPtr = - _lookup>( - 'clang_Cursor_getBriefCommentText', - ); - late final _clang_Cursor_getBriefCommentText = - _clang_Cursor_getBriefCommentTextPtr - .asFunction(); - - /// Retrieve the CXStrings representing the mangled symbols of the C++ - /// constructor or destructor at the cursor. - ffi.Pointer clang_Cursor_getCXXManglings(CXCursor arg0) { - return _clang_Cursor_getCXXManglings(arg0); - } - - late final _clang_Cursor_getCXXManglingsPtr = - _lookup Function(CXCursor)>>( - 'clang_Cursor_getCXXManglings', - ); - late final _clang_Cursor_getCXXManglings = _clang_Cursor_getCXXManglingsPtr - .asFunction Function(CXCursor)>(); - - /// Given a cursor that represents a declaration, return the associated - /// comment's source range. The range may include multiple consecutive - /// comments with whitespace in between. - CXSourceRange clang_Cursor_getCommentRange(CXCursor C) { - return _clang_Cursor_getCommentRange(C); - } - - late final _clang_Cursor_getCommentRangePtr = - _lookup>( - 'clang_Cursor_getCommentRange', - ); - late final _clang_Cursor_getCommentRange = _clang_Cursor_getCommentRangePtr - .asFunction(); - - /// Retrieve the CXString representing the mangled name of the cursor. - CXString clang_Cursor_getMangling(CXCursor arg0) { - return _clang_Cursor_getMangling(arg0); - } - - late final _clang_Cursor_getManglingPtr = - _lookup>( - 'clang_Cursor_getMangling', - ); - late final _clang_Cursor_getMangling = _clang_Cursor_getManglingPtr - .asFunction(); - - /// Given a CXCursor_ModuleImportDecl cursor, return the associated module. - CXModule clang_Cursor_getModule(CXCursor C) { - return _clang_Cursor_getModule(C); - } - - late final _clang_Cursor_getModulePtr = - _lookup>( - 'clang_Cursor_getModule', - ); - late final _clang_Cursor_getModule = _clang_Cursor_getModulePtr - .asFunction(); - - /// Retrieve the number of non-variadic arguments associated with a given - /// cursor. - int clang_Cursor_getNumArguments(CXCursor C) { - return _clang_Cursor_getNumArguments(C); - } - - late final _clang_Cursor_getNumArgumentsPtr = - _lookup>( - 'clang_Cursor_getNumArguments', - ); - late final _clang_Cursor_getNumArguments = _clang_Cursor_getNumArgumentsPtr - .asFunction(); - - /// Returns the number of template args of a function decl representing a - /// template specialization. - int clang_Cursor_getNumTemplateArguments(CXCursor C) { - return _clang_Cursor_getNumTemplateArguments(C); - } - - late final _clang_Cursor_getNumTemplateArgumentsPtr = - _lookup>( - 'clang_Cursor_getNumTemplateArguments', - ); - late final _clang_Cursor_getNumTemplateArguments = - _clang_Cursor_getNumTemplateArgumentsPtr - .asFunction(); - - /// Given a cursor that represents an Objective-C method or parameter - /// declaration, return the associated Objective-C qualifiers for the return - /// type or the parameter respectively. The bits are formed from - /// CXObjCDeclQualifierKind. - int clang_Cursor_getObjCDeclQualifiers(CXCursor C) { - return _clang_Cursor_getObjCDeclQualifiers(C); - } - - late final _clang_Cursor_getObjCDeclQualifiersPtr = - _lookup>( - 'clang_Cursor_getObjCDeclQualifiers', - ); - late final _clang_Cursor_getObjCDeclQualifiers = - _clang_Cursor_getObjCDeclQualifiersPtr - .asFunction(); - - /// Retrieve the CXStrings representing the mangled symbols of the ObjC class - /// interface or implementation at the cursor. - ffi.Pointer clang_Cursor_getObjCManglings(CXCursor arg0) { - return _clang_Cursor_getObjCManglings(arg0); - } - - late final _clang_Cursor_getObjCManglingsPtr = - _lookup Function(CXCursor)>>( - 'clang_Cursor_getObjCManglings', - ); - late final _clang_Cursor_getObjCManglings = _clang_Cursor_getObjCManglingsPtr - .asFunction Function(CXCursor)>(); - - /// Given a cursor that represents a property declaration, return the - /// associated property attributes. The bits are formed from - /// CXObjCPropertyAttrKind. - int clang_Cursor_getObjCPropertyAttributes(CXCursor C, int reserved) { - return _clang_Cursor_getObjCPropertyAttributes(C, reserved); - } - - late final _clang_Cursor_getObjCPropertyAttributesPtr = - _lookup< - ffi.NativeFunction - >('clang_Cursor_getObjCPropertyAttributes'); - late final _clang_Cursor_getObjCPropertyAttributes = - _clang_Cursor_getObjCPropertyAttributesPtr - .asFunction(); - - /// Given a cursor that represents a property declaration, return the name of - /// the method that implements the getter. - CXString clang_Cursor_getObjCPropertyGetterName(CXCursor C) { - return _clang_Cursor_getObjCPropertyGetterName(C); - } - - late final _clang_Cursor_getObjCPropertyGetterNamePtr = - _lookup>( - 'clang_Cursor_getObjCPropertyGetterName', - ); - late final _clang_Cursor_getObjCPropertyGetterName = - _clang_Cursor_getObjCPropertyGetterNamePtr - .asFunction(); - - /// Given a cursor that represents a property declaration, return the name of - /// the method that implements the setter, if any. - CXString clang_Cursor_getObjCPropertySetterName(CXCursor C) { - return _clang_Cursor_getObjCPropertySetterName(C); - } - - late final _clang_Cursor_getObjCPropertySetterNamePtr = - _lookup>( - 'clang_Cursor_getObjCPropertySetterName', - ); - late final _clang_Cursor_getObjCPropertySetterName = - _clang_Cursor_getObjCPropertySetterNamePtr - .asFunction(); - - /// If the cursor points to a selector identifier in an Objective-C method or - /// message expression, this returns the selector index. - int clang_Cursor_getObjCSelectorIndex(CXCursor arg0) { - return _clang_Cursor_getObjCSelectorIndex(arg0); - } - - late final _clang_Cursor_getObjCSelectorIndexPtr = - _lookup>( - 'clang_Cursor_getObjCSelectorIndex', - ); - late final _clang_Cursor_getObjCSelectorIndex = - _clang_Cursor_getObjCSelectorIndexPtr - .asFunction(); - - /// Return the offset of the field represented by the Cursor. - int clang_Cursor_getOffsetOfField(CXCursor C) { - return _clang_Cursor_getOffsetOfField(C); - } - - late final _clang_Cursor_getOffsetOfFieldPtr = - _lookup>( - 'clang_Cursor_getOffsetOfField', - ); - late final _clang_Cursor_getOffsetOfField = _clang_Cursor_getOffsetOfFieldPtr - .asFunction(); - - /// Given a cursor that represents a declaration, return the associated - /// comment text, including comment markers. - CXString clang_Cursor_getRawCommentText(CXCursor C) { - return _clang_Cursor_getRawCommentText(C); - } - - late final _clang_Cursor_getRawCommentTextPtr = - _lookup>( - 'clang_Cursor_getRawCommentText', - ); - late final _clang_Cursor_getRawCommentText = - _clang_Cursor_getRawCommentTextPtr - .asFunction(); - - /// Given a cursor pointing to an Objective-C message or property reference, - /// or C++ method call, returns the CXType of the receiver. - CXType clang_Cursor_getReceiverType(CXCursor C) { - return _clang_Cursor_getReceiverType(C); - } - - late final _clang_Cursor_getReceiverTypePtr = - _lookup>( - 'clang_Cursor_getReceiverType', - ); - late final _clang_Cursor_getReceiverType = _clang_Cursor_getReceiverTypePtr - .asFunction(); - - /// Retrieve a range for a piece that forms the cursors spelling name. Most of - /// the times there is only one range for the complete spelling but for - /// Objective-C methods and Objective-C message expressions, there are - /// multiple pieces for each selector identifier. - CXSourceRange clang_Cursor_getSpellingNameRange( - CXCursor arg0, - int pieceIndex, - int options, - ) { - return _clang_Cursor_getSpellingNameRange(arg0, pieceIndex, options); - } - - late final _clang_Cursor_getSpellingNameRangePtr = - _lookup< - ffi.NativeFunction< - CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) - > - >('clang_Cursor_getSpellingNameRange'); - late final _clang_Cursor_getSpellingNameRange = - _clang_Cursor_getSpellingNameRangePtr - .asFunction(); - - /// Returns the storage class for a function or variable declaration. - CX_StorageClass clang_Cursor_getStorageClass(CXCursor arg0) { - return CX_StorageClass.fromValue(_clang_Cursor_getStorageClass(arg0)); - } - - late final _clang_Cursor_getStorageClassPtr = - _lookup>( - 'clang_Cursor_getStorageClass', - ); - late final _clang_Cursor_getStorageClass = _clang_Cursor_getStorageClassPtr - .asFunction(); - - /// Retrieve the kind of the I'th template argument of the CXCursor C. - CXTemplateArgumentKind clang_Cursor_getTemplateArgumentKind( - CXCursor C, - int I, - ) { - return CXTemplateArgumentKind.fromValue( - _clang_Cursor_getTemplateArgumentKind(C, I), - ); - } - - late final _clang_Cursor_getTemplateArgumentKindPtr = - _lookup< - ffi.NativeFunction - >('clang_Cursor_getTemplateArgumentKind'); - late final _clang_Cursor_getTemplateArgumentKind = - _clang_Cursor_getTemplateArgumentKindPtr - .asFunction(); - - /// Retrieve a CXType representing the type of a TemplateArgument of a - /// function decl representing a template specialization. - CXType clang_Cursor_getTemplateArgumentType(CXCursor C, int I) { - return _clang_Cursor_getTemplateArgumentType(C, I); - } - - late final _clang_Cursor_getTemplateArgumentTypePtr = - _lookup>( - 'clang_Cursor_getTemplateArgumentType', - ); - late final _clang_Cursor_getTemplateArgumentType = - _clang_Cursor_getTemplateArgumentTypePtr - .asFunction(); - - /// Retrieve the value of an Integral TemplateArgument (of a function decl - /// representing a template specialization) as an unsigned long long. - int clang_Cursor_getTemplateArgumentUnsignedValue(CXCursor C, int I) { - return _clang_Cursor_getTemplateArgumentUnsignedValue(C, I); - } - - late final _clang_Cursor_getTemplateArgumentUnsignedValuePtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedLongLong Function(CXCursor, ffi.UnsignedInt) - > - >('clang_Cursor_getTemplateArgumentUnsignedValue'); - late final _clang_Cursor_getTemplateArgumentUnsignedValue = - _clang_Cursor_getTemplateArgumentUnsignedValuePtr - .asFunction(); - - /// Retrieve the value of an Integral TemplateArgument (of a function decl - /// representing a template specialization) as a signed long long. - int clang_Cursor_getTemplateArgumentValue(CXCursor C, int I) { - return _clang_Cursor_getTemplateArgumentValue(C, I); - } - - late final _clang_Cursor_getTemplateArgumentValuePtr = - _lookup< - ffi.NativeFunction - >('clang_Cursor_getTemplateArgumentValue'); - late final _clang_Cursor_getTemplateArgumentValue = - _clang_Cursor_getTemplateArgumentValuePtr - .asFunction(); - - /// Returns the translation unit that a cursor originated from. - CXTranslationUnit clang_Cursor_getTranslationUnit(CXCursor arg0) { - return _clang_Cursor_getTranslationUnit(arg0); - } - - late final _clang_Cursor_getTranslationUnitPtr = - _lookup>( - 'clang_Cursor_getTranslationUnit', - ); - late final _clang_Cursor_getTranslationUnit = - _clang_Cursor_getTranslationUnitPtr - .asFunction(); - - /// Determine whether the given cursor has any attributes. - int clang_Cursor_hasAttrs(CXCursor C) { - return _clang_Cursor_hasAttrs(C); - } - - late final _clang_Cursor_hasAttrsPtr = - _lookup>( - 'clang_Cursor_hasAttrs', - ); - late final _clang_Cursor_hasAttrs = _clang_Cursor_hasAttrsPtr - .asFunction(); - - /// Determine whether the given cursor represents an anonymous tag or - /// namespace - int clang_Cursor_isAnonymous(CXCursor C) { - return _clang_Cursor_isAnonymous(C); - } - - late final _clang_Cursor_isAnonymousPtr = - _lookup>( - 'clang_Cursor_isAnonymous', - ); - late final _clang_Cursor_isAnonymous = _clang_Cursor_isAnonymousPtr - .asFunction(); - - /// Determine whether the given cursor represents an anonymous record - /// declaration. - int clang_Cursor_isAnonymousRecordDecl(CXCursor C) { - return _clang_Cursor_isAnonymousRecordDecl(C); - } - - late final _clang_Cursor_isAnonymousRecordDeclPtr = - _lookup>( - 'clang_Cursor_isAnonymousRecordDecl', - ); - late final _clang_Cursor_isAnonymousRecordDecl = - _clang_Cursor_isAnonymousRecordDeclPtr - .asFunction(); - - /// Returns non-zero if the cursor specifies a Record member that is a - /// bitfield. - int clang_Cursor_isBitField(CXCursor C) { - return _clang_Cursor_isBitField(C); - } - - late final _clang_Cursor_isBitFieldPtr = - _lookup>( - 'clang_Cursor_isBitField', - ); - late final _clang_Cursor_isBitField = _clang_Cursor_isBitFieldPtr - .asFunction(); - - /// Given a cursor pointing to a C++ method call or an Objective-C message, - /// returns non-zero if the method/message is "dynamic", meaning: - int clang_Cursor_isDynamicCall(CXCursor C) { - return _clang_Cursor_isDynamicCall(C); - } - - late final _clang_Cursor_isDynamicCallPtr = - _lookup>( - 'clang_Cursor_isDynamicCall', - ); - late final _clang_Cursor_isDynamicCall = _clang_Cursor_isDynamicCallPtr - .asFunction(); - - /// Returns non-zero if the given cursor points to a symbol marked with - /// external_source_symbol attribute. - int clang_Cursor_isExternalSymbol( - CXCursor C, - ffi.Pointer language, - ffi.Pointer definedIn, - ffi.Pointer isGenerated, - ) { - return _clang_Cursor_isExternalSymbol(C, language, definedIn, isGenerated); - } - - late final _clang_Cursor_isExternalSymbolPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_Cursor_isExternalSymbol'); - late final _clang_Cursor_isExternalSymbol = _clang_Cursor_isExternalSymbolPtr - .asFunction< - int Function( - CXCursor, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Determine whether a CXCursor that is a function declaration, is an inline - /// declaration. - int clang_Cursor_isFunctionInlined(CXCursor C) { - return _clang_Cursor_isFunctionInlined(C); - } - - late final _clang_Cursor_isFunctionInlinedPtr = - _lookup>( - 'clang_Cursor_isFunctionInlined', - ); - late final _clang_Cursor_isFunctionInlined = - _clang_Cursor_isFunctionInlinedPtr.asFunction(); - - /// Determine whether the given cursor represents an inline namespace - /// declaration. - int clang_Cursor_isInlineNamespace(CXCursor C) { - return _clang_Cursor_isInlineNamespace(C); - } - - late final _clang_Cursor_isInlineNamespacePtr = - _lookup>( - 'clang_Cursor_isInlineNamespace', - ); - late final _clang_Cursor_isInlineNamespace = - _clang_Cursor_isInlineNamespacePtr.asFunction(); - - /// Determine whether a CXCursor that is a macro, is a builtin one. - int clang_Cursor_isMacroBuiltin(CXCursor C) { - return _clang_Cursor_isMacroBuiltin(C); - } - - late final _clang_Cursor_isMacroBuiltinPtr = - _lookup>( - 'clang_Cursor_isMacroBuiltin', - ); - late final _clang_Cursor_isMacroBuiltin = _clang_Cursor_isMacroBuiltinPtr - .asFunction(); - - /// Determine whether a CXCursor that is a macro, is function like. - int clang_Cursor_isMacroFunctionLike(CXCursor C) { - return _clang_Cursor_isMacroFunctionLike(C); - } - - late final _clang_Cursor_isMacroFunctionLikePtr = - _lookup>( - 'clang_Cursor_isMacroFunctionLike', - ); - late final _clang_Cursor_isMacroFunctionLike = - _clang_Cursor_isMacroFunctionLikePtr.asFunction(); - - /// Returns non-zero if cursor is null. - int clang_Cursor_isNull(CXCursor cursor) { - return _clang_Cursor_isNull(cursor); - } - - late final _clang_Cursor_isNullPtr = - _lookup>( - 'clang_Cursor_isNull', - ); - late final _clang_Cursor_isNull = _clang_Cursor_isNullPtr - .asFunction(); - - /// Given a cursor that represents an Objective-C method or property - /// declaration, return non-zero if the declaration was affected by - /// "\@optional". Returns zero if the cursor is not such a declaration or it - /// is "\@required". - int clang_Cursor_isObjCOptional(CXCursor C) { - return _clang_Cursor_isObjCOptional(C); - } - - late final _clang_Cursor_isObjCOptionalPtr = - _lookup>( - 'clang_Cursor_isObjCOptional', - ); - late final _clang_Cursor_isObjCOptional = _clang_Cursor_isObjCOptionalPtr - .asFunction(); - - /// Returns non-zero if the given cursor is a variadic function or method. - int clang_Cursor_isVariadic(CXCursor C) { - return _clang_Cursor_isVariadic(C); - } - - late final _clang_Cursor_isVariadicPtr = - _lookup>( - 'clang_Cursor_isVariadic', - ); - late final _clang_Cursor_isVariadic = _clang_Cursor_isVariadicPtr - .asFunction(); - - /// Determine if an enum declaration refers to a scoped enum. - int clang_EnumDecl_isScoped(CXCursor C) { - return _clang_EnumDecl_isScoped(C); - } - - late final _clang_EnumDecl_isScopedPtr = - _lookup>( - 'clang_EnumDecl_isScoped', - ); - late final _clang_EnumDecl_isScoped = _clang_EnumDecl_isScopedPtr - .asFunction(); - - /// Disposes the created Eval memory. - void clang_EvalResult_dispose(CXEvalResult E) { - return _clang_EvalResult_dispose(E); - } - - late final _clang_EvalResult_disposePtr = - _lookup>( - 'clang_EvalResult_dispose', - ); - late final _clang_EvalResult_dispose = _clang_EvalResult_disposePtr - .asFunction(); - - /// Returns the evaluation result as double if the kind is double. - double clang_EvalResult_getAsDouble(CXEvalResult E) { - return _clang_EvalResult_getAsDouble(E); - } - - late final _clang_EvalResult_getAsDoublePtr = - _lookup>( - 'clang_EvalResult_getAsDouble', - ); - late final _clang_EvalResult_getAsDouble = _clang_EvalResult_getAsDoublePtr - .asFunction(); - - /// Returns the evaluation result as integer if the kind is Int. - int clang_EvalResult_getAsInt(CXEvalResult E) { - return _clang_EvalResult_getAsInt(E); - } - - late final _clang_EvalResult_getAsIntPtr = - _lookup>( - 'clang_EvalResult_getAsInt', - ); - late final _clang_EvalResult_getAsInt = _clang_EvalResult_getAsIntPtr - .asFunction(); - - /// Returns the evaluation result as a long long integer if the kind is Int. - /// This prevents overflows that may happen if the result is returned with - /// clang_EvalResult_getAsInt. - int clang_EvalResult_getAsLongLong(CXEvalResult E) { - return _clang_EvalResult_getAsLongLong(E); - } - - late final _clang_EvalResult_getAsLongLongPtr = - _lookup>( - 'clang_EvalResult_getAsLongLong', - ); - late final _clang_EvalResult_getAsLongLong = - _clang_EvalResult_getAsLongLongPtr - .asFunction(); - - /// Returns the evaluation result as a constant string if the kind is other - /// than Int or float. User must not free this pointer, instead call - /// clang_EvalResult_dispose on the CXEvalResult returned by - /// clang_Cursor_Evaluate. - ffi.Pointer clang_EvalResult_getAsStr(CXEvalResult E) { - return _clang_EvalResult_getAsStr(E); - } - - late final _clang_EvalResult_getAsStrPtr = - _lookup Function(CXEvalResult)>>( - 'clang_EvalResult_getAsStr', - ); - late final _clang_EvalResult_getAsStr = _clang_EvalResult_getAsStrPtr - .asFunction Function(CXEvalResult)>(); - - /// Returns the evaluation result as an unsigned integer if the kind is Int - /// and clang_EvalResult_isUnsignedInt is non-zero. - int clang_EvalResult_getAsUnsigned(CXEvalResult E) { - return _clang_EvalResult_getAsUnsigned(E); - } - - late final _clang_EvalResult_getAsUnsignedPtr = - _lookup>( - 'clang_EvalResult_getAsUnsigned', - ); - late final _clang_EvalResult_getAsUnsigned = - _clang_EvalResult_getAsUnsignedPtr - .asFunction(); - - /// Returns the kind of the evaluated result. - CXEvalResultKind clang_EvalResult_getKind(CXEvalResult E) { - return CXEvalResultKind.fromValue(_clang_EvalResult_getKind(E)); - } - - late final _clang_EvalResult_getKindPtr = - _lookup>( - 'clang_EvalResult_getKind', - ); - late final _clang_EvalResult_getKind = _clang_EvalResult_getKindPtr - .asFunction(); - - /// Returns a non-zero value if the kind is Int and the evaluation result - /// resulted in an unsigned integer. - int clang_EvalResult_isUnsignedInt(CXEvalResult E) { - return _clang_EvalResult_isUnsignedInt(E); - } - - late final _clang_EvalResult_isUnsignedIntPtr = - _lookup>( - 'clang_EvalResult_isUnsignedInt', - ); - late final _clang_EvalResult_isUnsignedInt = - _clang_EvalResult_isUnsignedIntPtr - .asFunction(); - - /// Returns non-zero if the file1 and file2 point to the same file, or they - /// are both NULL. - int clang_File_isEqual(CXFile file1, CXFile file2) { - return _clang_File_isEqual(file1, file2); - } - - late final _clang_File_isEqualPtr = - _lookup>( - 'clang_File_isEqual', - ); - late final _clang_File_isEqual = _clang_File_isEqualPtr - .asFunction(); - - /// Returns the real path name of file. - CXString clang_File_tryGetRealPathName(CXFile file) { - return _clang_File_tryGetRealPathName(file); - } - - late final _clang_File_tryGetRealPathNamePtr = - _lookup>( - 'clang_File_tryGetRealPathName', - ); - late final _clang_File_tryGetRealPathName = _clang_File_tryGetRealPathNamePtr - .asFunction(); - - /// An indexing action/session, to be applied to one or multiple translation - /// units. - CXIndexAction clang_IndexAction_create(CXIndex CIdx) { - return _clang_IndexAction_create(CIdx); - } - - late final _clang_IndexAction_createPtr = - _lookup>( - 'clang_IndexAction_create', - ); - late final _clang_IndexAction_create = _clang_IndexAction_createPtr - .asFunction(); - - /// Destroy the given index action. - void clang_IndexAction_dispose(CXIndexAction arg0) { - return _clang_IndexAction_dispose(arg0); - } - - late final _clang_IndexAction_disposePtr = - _lookup>( - 'clang_IndexAction_dispose', - ); - late final _clang_IndexAction_dispose = _clang_IndexAction_disposePtr - .asFunction(); - - /// Returns non-zero if the given source location is in the main file of the - /// corresponding translation unit. - int clang_Location_isFromMainFile(CXSourceLocation location) { - return _clang_Location_isFromMainFile(location); - } - - late final _clang_Location_isFromMainFilePtr = - _lookup>( - 'clang_Location_isFromMainFile', - ); - late final _clang_Location_isFromMainFile = _clang_Location_isFromMainFilePtr - .asFunction(); - - /// Returns non-zero if the given source location is in a system header. - int clang_Location_isInSystemHeader(CXSourceLocation location) { - return _clang_Location_isInSystemHeader(location); - } - - late final _clang_Location_isInSystemHeaderPtr = - _lookup>( - 'clang_Location_isInSystemHeader', - ); - late final _clang_Location_isInSystemHeader = - _clang_Location_isInSystemHeaderPtr - .asFunction(); - - /// Create a CXModuleMapDescriptor object. Must be disposed with - /// clang_ModuleMapDescriptor_dispose(). - CXModuleMapDescriptor clang_ModuleMapDescriptor_create(int options) { - return _clang_ModuleMapDescriptor_create(options); - } - - late final _clang_ModuleMapDescriptor_createPtr = - _lookup< - ffi.NativeFunction - >('clang_ModuleMapDescriptor_create'); - late final _clang_ModuleMapDescriptor_create = - _clang_ModuleMapDescriptor_createPtr - .asFunction(); - - /// Dispose a CXModuleMapDescriptor object. - void clang_ModuleMapDescriptor_dispose(CXModuleMapDescriptor arg0) { - return _clang_ModuleMapDescriptor_dispose(arg0); - } - - late final _clang_ModuleMapDescriptor_disposePtr = - _lookup>( - 'clang_ModuleMapDescriptor_dispose', - ); - late final _clang_ModuleMapDescriptor_dispose = - _clang_ModuleMapDescriptor_disposePtr - .asFunction(); - - /// Sets the framework module name that the module.map describes. - CXErrorCode clang_ModuleMapDescriptor_setFrameworkModuleName( - CXModuleMapDescriptor arg0, - ffi.Pointer name, - ) { - return CXErrorCode.fromValue( - _clang_ModuleMapDescriptor_setFrameworkModuleName(arg0, name), - ); - } - - late final _clang_ModuleMapDescriptor_setFrameworkModuleNamePtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXModuleMapDescriptor, ffi.Pointer) - > - >('clang_ModuleMapDescriptor_setFrameworkModuleName'); - late final _clang_ModuleMapDescriptor_setFrameworkModuleName = - _clang_ModuleMapDescriptor_setFrameworkModuleNamePtr - .asFunction< - int Function(CXModuleMapDescriptor, ffi.Pointer) - >(); - - /// Sets the umbrealla header name that the module.map describes. - CXErrorCode clang_ModuleMapDescriptor_setUmbrellaHeader( - CXModuleMapDescriptor arg0, - ffi.Pointer name, - ) { - return CXErrorCode.fromValue( - _clang_ModuleMapDescriptor_setUmbrellaHeader(arg0, name), - ); - } - - late final _clang_ModuleMapDescriptor_setUmbrellaHeaderPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXModuleMapDescriptor, ffi.Pointer) - > - >('clang_ModuleMapDescriptor_setUmbrellaHeader'); - late final _clang_ModuleMapDescriptor_setUmbrellaHeader = - _clang_ModuleMapDescriptor_setUmbrellaHeaderPtr - .asFunction< - int Function(CXModuleMapDescriptor, ffi.Pointer) - >(); - - /// Write out the CXModuleMapDescriptor object to a char buffer. - CXErrorCode clang_ModuleMapDescriptor_writeToBuffer( - CXModuleMapDescriptor arg0, - int options, - ffi.Pointer> out_buffer_ptr, - ffi.Pointer out_buffer_size, - ) { - return CXErrorCode.fromValue( - _clang_ModuleMapDescriptor_writeToBuffer( - arg0, - options, - out_buffer_ptr, - out_buffer_size, - ), - ); - } - - late final _clang_ModuleMapDescriptor_writeToBufferPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXModuleMapDescriptor, - ffi.UnsignedInt, - ffi.Pointer>, - ffi.Pointer, - ) - > - >('clang_ModuleMapDescriptor_writeToBuffer'); - late final _clang_ModuleMapDescriptor_writeToBuffer = - _clang_ModuleMapDescriptor_writeToBufferPtr - .asFunction< - int Function( - CXModuleMapDescriptor, - int, - ffi.Pointer>, - ffi.Pointer, - ) - >(); - - /// Returns the module file where the provided module object came from. - CXFile clang_Module_getASTFile(CXModule Module) { - return _clang_Module_getASTFile(Module); - } - - late final _clang_Module_getASTFilePtr = - _lookup>( - 'clang_Module_getASTFile', - ); - late final _clang_Module_getASTFile = _clang_Module_getASTFilePtr - .asFunction(); - - /// Returns the full name of the module, e.g. "std.vector". - CXString clang_Module_getFullName(CXModule Module) { - return _clang_Module_getFullName(Module); - } - - late final _clang_Module_getFullNamePtr = - _lookup>( - 'clang_Module_getFullName', - ); - late final _clang_Module_getFullName = _clang_Module_getFullNamePtr - .asFunction(); - - /// Returns the name of the module, e.g. for the 'std.vector' sub-module it - /// will return "vector". - CXString clang_Module_getName(CXModule Module) { - return _clang_Module_getName(Module); - } - - late final _clang_Module_getNamePtr = - _lookup>( - 'clang_Module_getName', - ); - late final _clang_Module_getName = _clang_Module_getNamePtr - .asFunction(); - - /// Returns the number of top level headers associated with this module. - int clang_Module_getNumTopLevelHeaders( - CXTranslationUnit arg0, - CXModule Module, - ) { - return _clang_Module_getNumTopLevelHeaders(arg0, Module); - } - - late final _clang_Module_getNumTopLevelHeadersPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXTranslationUnit, CXModule) - > - >('clang_Module_getNumTopLevelHeaders'); - late final _clang_Module_getNumTopLevelHeaders = - _clang_Module_getNumTopLevelHeadersPtr - .asFunction(); - - /// Returns the parent of a sub-module or NULL if the given module is - /// top-level, e.g. for 'std.vector' it will return the 'std' module. - CXModule clang_Module_getParent(CXModule Module) { - return _clang_Module_getParent(Module); - } - - late final _clang_Module_getParentPtr = - _lookup>( - 'clang_Module_getParent', - ); - late final _clang_Module_getParent = _clang_Module_getParentPtr - .asFunction(); - - /// Returns the specified top level header associated with the module. - CXFile clang_Module_getTopLevelHeader( - CXTranslationUnit arg0, - CXModule Module, - int Index, - ) { - return _clang_Module_getTopLevelHeader(arg0, Module, Index); - } - - late final _clang_Module_getTopLevelHeaderPtr = - _lookup< - ffi.NativeFunction< - CXFile Function(CXTranslationUnit, CXModule, ffi.UnsignedInt) - > - >('clang_Module_getTopLevelHeader'); - late final _clang_Module_getTopLevelHeader = - _clang_Module_getTopLevelHeaderPtr - .asFunction(); - - /// Returns non-zero if the module is a system one. - int clang_Module_isSystem(CXModule Module) { - return _clang_Module_isSystem(Module); - } - - late final _clang_Module_isSystemPtr = - _lookup>( - 'clang_Module_isSystem', - ); - late final _clang_Module_isSystem = _clang_Module_isSystemPtr - .asFunction(); - - /// Release a printing policy. - void clang_PrintingPolicy_dispose(CXPrintingPolicy Policy) { - return _clang_PrintingPolicy_dispose(Policy); - } - - late final _clang_PrintingPolicy_disposePtr = - _lookup>( - 'clang_PrintingPolicy_dispose', - ); - late final _clang_PrintingPolicy_dispose = _clang_PrintingPolicy_disposePtr - .asFunction(); - - /// Get a property value for the given printing policy. - int clang_PrintingPolicy_getProperty( - CXPrintingPolicy Policy, - CXPrintingPolicyProperty Property, - ) { - return _clang_PrintingPolicy_getProperty(Policy, Property.value); - } - - late final _clang_PrintingPolicy_getPropertyPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXPrintingPolicy, ffi.UnsignedInt) - > - >('clang_PrintingPolicy_getProperty'); - late final _clang_PrintingPolicy_getProperty = - _clang_PrintingPolicy_getPropertyPtr - .asFunction(); - - /// Set a property value for the given printing policy. - void clang_PrintingPolicy_setProperty( - CXPrintingPolicy Policy, - CXPrintingPolicyProperty Property, - int Value, - ) { - return _clang_PrintingPolicy_setProperty(Policy, Property.value, Value); - } - - late final _clang_PrintingPolicy_setPropertyPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(CXPrintingPolicy, ffi.UnsignedInt, ffi.UnsignedInt) - > - >('clang_PrintingPolicy_setProperty'); - late final _clang_PrintingPolicy_setProperty = - _clang_PrintingPolicy_setPropertyPtr - .asFunction(); - - /// Returns non-zero if range is null. - int clang_Range_isNull(CXSourceRange range) { - return _clang_Range_isNull(range); - } - - late final _clang_Range_isNullPtr = - _lookup>( - 'clang_Range_isNull', - ); - late final _clang_Range_isNull = _clang_Range_isNullPtr - .asFunction(); - - /// Destroy the CXTargetInfo object. - void clang_TargetInfo_dispose(CXTargetInfo Info) { - return _clang_TargetInfo_dispose(Info); - } - - late final _clang_TargetInfo_disposePtr = - _lookup>( - 'clang_TargetInfo_dispose', - ); - late final _clang_TargetInfo_dispose = _clang_TargetInfo_disposePtr - .asFunction(); - - /// Get the pointer width of the target in bits. - int clang_TargetInfo_getPointerWidth(CXTargetInfo Info) { - return _clang_TargetInfo_getPointerWidth(Info); - } - - late final _clang_TargetInfo_getPointerWidthPtr = - _lookup>( - 'clang_TargetInfo_getPointerWidth', - ); - late final _clang_TargetInfo_getPointerWidth = - _clang_TargetInfo_getPointerWidthPtr - .asFunction(); - - /// Get the normalized target triple as a string. - CXString clang_TargetInfo_getTriple(CXTargetInfo Info) { - return _clang_TargetInfo_getTriple(Info); - } - - late final _clang_TargetInfo_getTriplePtr = - _lookup>( - 'clang_TargetInfo_getTriple', - ); - late final _clang_TargetInfo_getTriple = _clang_TargetInfo_getTriplePtr - .asFunction(); - - /// Return the alignment of a type in bytes as per C++[expr.alignof] standard. - int clang_Type_getAlignOf(CXType T) { - return _clang_Type_getAlignOf(T); - } - - late final _clang_Type_getAlignOfPtr = - _lookup>( - 'clang_Type_getAlignOf', - ); - late final _clang_Type_getAlignOf = _clang_Type_getAlignOfPtr - .asFunction(); - - /// Retrieve the ref-qualifier kind of a function or method. - CXRefQualifierKind clang_Type_getCXXRefQualifier(CXType T) { - return CXRefQualifierKind.fromValue(_clang_Type_getCXXRefQualifier(T)); - } - - late final _clang_Type_getCXXRefQualifierPtr = - _lookup>( - 'clang_Type_getCXXRefQualifier', - ); - late final _clang_Type_getCXXRefQualifier = _clang_Type_getCXXRefQualifierPtr - .asFunction(); - - /// Return the class type of an member pointer type. - CXType clang_Type_getClassType(CXType T) { - return _clang_Type_getClassType(T); - } - - late final _clang_Type_getClassTypePtr = - _lookup>( - 'clang_Type_getClassType', - ); - late final _clang_Type_getClassType = _clang_Type_getClassTypePtr - .asFunction(); - - /// Return the type that was modified by this attributed type. - CXType clang_Type_getModifiedType(CXType T) { - return _clang_Type_getModifiedType(T); - } - - late final _clang_Type_getModifiedTypePtr = - _lookup>( - 'clang_Type_getModifiedType', - ); - late final _clang_Type_getModifiedType = _clang_Type_getModifiedTypePtr - .asFunction(); - - /// Retrieve the type named by the qualified-id. - CXType clang_Type_getNamedType(CXType T) { - return _clang_Type_getNamedType(T); - } - - late final _clang_Type_getNamedTypePtr = - _lookup>( - 'clang_Type_getNamedType', - ); - late final _clang_Type_getNamedType = _clang_Type_getNamedTypePtr - .asFunction(); - - /// Retrieve the nullability kind of a pointer type. - CXTypeNullabilityKind clang_Type_getNullability(CXType T) { - return CXTypeNullabilityKind.fromValue(_clang_Type_getNullability(T)); - } - - late final _clang_Type_getNullabilityPtr = - _lookup>( - 'clang_Type_getNullability', - ); - late final _clang_Type_getNullability = _clang_Type_getNullabilityPtr - .asFunction(); - - /// Retrieve the number of protocol references associated with an ObjC - /// object/id. - int clang_Type_getNumObjCProtocolRefs(CXType T) { - return _clang_Type_getNumObjCProtocolRefs(T); - } - - late final _clang_Type_getNumObjCProtocolRefsPtr = - _lookup>( - 'clang_Type_getNumObjCProtocolRefs', - ); - late final _clang_Type_getNumObjCProtocolRefs = - _clang_Type_getNumObjCProtocolRefsPtr.asFunction(); - - /// Retreive the number of type arguments associated with an ObjC object. - int clang_Type_getNumObjCTypeArgs(CXType T) { - return _clang_Type_getNumObjCTypeArgs(T); - } - - late final _clang_Type_getNumObjCTypeArgsPtr = - _lookup>( - 'clang_Type_getNumObjCTypeArgs', - ); - late final _clang_Type_getNumObjCTypeArgs = _clang_Type_getNumObjCTypeArgsPtr - .asFunction(); - - /// Returns the number of template arguments for given template - /// specialization, or -1 if type T is not a template specialization. - int clang_Type_getNumTemplateArguments(CXType T) { - return _clang_Type_getNumTemplateArguments(T); - } - - late final _clang_Type_getNumTemplateArgumentsPtr = - _lookup>( - 'clang_Type_getNumTemplateArguments', - ); - late final _clang_Type_getNumTemplateArguments = - _clang_Type_getNumTemplateArgumentsPtr.asFunction(); - - /// Returns the Objective-C type encoding for the specified CXType. - CXString clang_Type_getObjCEncoding(CXType type) { - return _clang_Type_getObjCEncoding(type); - } - - late final _clang_Type_getObjCEncodingPtr = - _lookup>( - 'clang_Type_getObjCEncoding', - ); - late final _clang_Type_getObjCEncoding = _clang_Type_getObjCEncodingPtr - .asFunction(); - - /// Retrieves the base type of the ObjCObjectType. - CXType clang_Type_getObjCObjectBaseType(CXType T) { - return _clang_Type_getObjCObjectBaseType(T); - } - - late final _clang_Type_getObjCObjectBaseTypePtr = - _lookup>( - 'clang_Type_getObjCObjectBaseType', - ); - late final _clang_Type_getObjCObjectBaseType = - _clang_Type_getObjCObjectBaseTypePtr - .asFunction(); - - /// Retrieve the decl for a protocol reference for an ObjC object/id. - CXCursor clang_Type_getObjCProtocolDecl(CXType T, int i) { - return _clang_Type_getObjCProtocolDecl(T, i); - } - - late final _clang_Type_getObjCProtocolDeclPtr = - _lookup>( - 'clang_Type_getObjCProtocolDecl', - ); - late final _clang_Type_getObjCProtocolDecl = - _clang_Type_getObjCProtocolDeclPtr - .asFunction(); - - /// Retrieve a type argument associated with an ObjC object. - CXType clang_Type_getObjCTypeArg(CXType T, int i) { - return _clang_Type_getObjCTypeArg(T, i); - } - - late final _clang_Type_getObjCTypeArgPtr = - _lookup>( - 'clang_Type_getObjCTypeArg', - ); - late final _clang_Type_getObjCTypeArg = _clang_Type_getObjCTypeArgPtr - .asFunction(); - - /// Return the offset of a field named S in a record of type T in bits as it - /// would be returned by __offsetof__ as per C++11[18.2p4] - int clang_Type_getOffsetOf(CXType T, ffi.Pointer S) { - return _clang_Type_getOffsetOf(T, S); - } - - late final _clang_Type_getOffsetOfPtr = - _lookup< - ffi.NativeFunction)> - >('clang_Type_getOffsetOf'); - late final _clang_Type_getOffsetOf = _clang_Type_getOffsetOfPtr - .asFunction)>(); - - /// Return the size of a type in bytes as per C++[expr.sizeof] standard. - int clang_Type_getSizeOf(CXType T) { - return _clang_Type_getSizeOf(T); - } - - late final _clang_Type_getSizeOfPtr = - _lookup>( - 'clang_Type_getSizeOf', - ); - late final _clang_Type_getSizeOf = _clang_Type_getSizeOfPtr - .asFunction(); - - /// Returns the type template argument of a template class specialization at - /// given index. - CXType clang_Type_getTemplateArgumentAsType(CXType T, int i) { - return _clang_Type_getTemplateArgumentAsType(T, i); - } - - late final _clang_Type_getTemplateArgumentAsTypePtr = - _lookup>( - 'clang_Type_getTemplateArgumentAsType', - ); - late final _clang_Type_getTemplateArgumentAsType = - _clang_Type_getTemplateArgumentAsTypePtr - .asFunction(); - - /// Determine if a typedef is 'transparent' tag. - int clang_Type_isTransparentTagTypedef(CXType T) { - return _clang_Type_isTransparentTagTypedef(T); - } - - late final _clang_Type_isTransparentTagTypedefPtr = - _lookup>( - 'clang_Type_isTransparentTagTypedef', - ); - late final _clang_Type_isTransparentTagTypedef = - _clang_Type_isTransparentTagTypedefPtr.asFunction(); - - /// Visit the fields of a particular type. - int clang_Type_visitFields( - CXType T, - CXFieldVisitor visitor, - CXClientData client_data, - ) { - return _clang_Type_visitFields(T, visitor, client_data); - } - - late final _clang_Type_visitFieldsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXType, CXFieldVisitor, CXClientData) - > - >('clang_Type_visitFields'); - late final _clang_Type_visitFields = _clang_Type_visitFieldsPtr - .asFunction(); - - /// Map an absolute virtual file path to an absolute real one. The virtual - /// path must be canonicalized (not contain "."/".."). - CXErrorCode clang_VirtualFileOverlay_addFileMapping( - CXVirtualFileOverlay arg0, - ffi.Pointer virtualPath, - ffi.Pointer realPath, - ) { - return CXErrorCode.fromValue( - _clang_VirtualFileOverlay_addFileMapping(arg0, virtualPath, realPath), - ); - } - - late final _clang_VirtualFileOverlay_addFileMappingPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXVirtualFileOverlay, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_VirtualFileOverlay_addFileMapping'); - late final _clang_VirtualFileOverlay_addFileMapping = - _clang_VirtualFileOverlay_addFileMappingPtr - .asFunction< - int Function( - CXVirtualFileOverlay, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Create a CXVirtualFileOverlay object. Must be disposed with - /// clang_VirtualFileOverlay_dispose(). - CXVirtualFileOverlay clang_VirtualFileOverlay_create(int options) { - return _clang_VirtualFileOverlay_create(options); - } - - late final _clang_VirtualFileOverlay_createPtr = - _lookup< - ffi.NativeFunction - >('clang_VirtualFileOverlay_create'); - late final _clang_VirtualFileOverlay_create = - _clang_VirtualFileOverlay_createPtr - .asFunction(); - - /// Dispose a CXVirtualFileOverlay object. - void clang_VirtualFileOverlay_dispose(CXVirtualFileOverlay arg0) { - return _clang_VirtualFileOverlay_dispose(arg0); - } - - late final _clang_VirtualFileOverlay_disposePtr = - _lookup>( - 'clang_VirtualFileOverlay_dispose', - ); - late final _clang_VirtualFileOverlay_dispose = - _clang_VirtualFileOverlay_disposePtr - .asFunction(); - - /// Set the case sensitivity for the CXVirtualFileOverlay object. The - /// CXVirtualFileOverlay object is case-sensitive by default, this option can - /// be used to override the default. - CXErrorCode clang_VirtualFileOverlay_setCaseSensitivity( - CXVirtualFileOverlay arg0, - int caseSensitive, - ) { - return CXErrorCode.fromValue( - _clang_VirtualFileOverlay_setCaseSensitivity(arg0, caseSensitive), - ); - } - - late final _clang_VirtualFileOverlay_setCaseSensitivityPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXVirtualFileOverlay, ffi.Int) - > - >('clang_VirtualFileOverlay_setCaseSensitivity'); - late final _clang_VirtualFileOverlay_setCaseSensitivity = - _clang_VirtualFileOverlay_setCaseSensitivityPtr - .asFunction(); - - /// Write out the CXVirtualFileOverlay object to a char buffer. - CXErrorCode clang_VirtualFileOverlay_writeToBuffer( - CXVirtualFileOverlay arg0, - int options, - ffi.Pointer> out_buffer_ptr, - ffi.Pointer out_buffer_size, - ) { - return CXErrorCode.fromValue( - _clang_VirtualFileOverlay_writeToBuffer( - arg0, - options, - out_buffer_ptr, - out_buffer_size, - ), - ); - } - - late final _clang_VirtualFileOverlay_writeToBufferPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXVirtualFileOverlay, - ffi.UnsignedInt, - ffi.Pointer>, - ffi.Pointer, - ) - > - >('clang_VirtualFileOverlay_writeToBuffer'); - late final _clang_VirtualFileOverlay_writeToBuffer = - _clang_VirtualFileOverlay_writeToBufferPtr - .asFunction< - int Function( - CXVirtualFileOverlay, - int, - ffi.Pointer>, - ffi.Pointer, - ) - >(); - - /// Annotate the given set of tokens by providing cursors for each token that - /// can be mapped to a specific entity within the abstract syntax tree. - void clang_annotateTokens( - CXTranslationUnit TU, - ffi.Pointer Tokens, - int NumTokens, - ffi.Pointer Cursors, - ) { - return _clang_annotateTokens(TU, Tokens, NumTokens, Cursors); - } - - late final _clang_annotateTokensPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ) - > - >('clang_annotateTokens'); - late final _clang_annotateTokens = _clang_annotateTokensPtr - .asFunction< - void Function( - CXTranslationUnit, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); - - /// Perform code completion at a given location in a translation unit. - ffi.Pointer clang_codeCompleteAt( - CXTranslationUnit TU, - ffi.Pointer complete_filename, - int complete_line, - int complete_column, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ) { - return _clang_codeCompleteAt( - TU, - complete_filename, - complete_line, - complete_column, - unsaved_files, - num_unsaved_files, - options, - ); - } - - late final _clang_codeCompleteAtPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ) - > - >('clang_codeCompleteAt'); - late final _clang_codeCompleteAt = _clang_codeCompleteAtPtr - .asFunction< - ffi.Pointer Function( - CXTranslationUnit, - ffi.Pointer, - int, - int, - ffi.Pointer, - int, - int, - ) - >(); - - /// Returns the cursor kind for the container for the current code completion - /// context. The container is only guaranteed to be set for contexts where a - /// container exists (i.e. member accesses or Objective-C message sends); if - /// there is not a container, this function will return CXCursor_InvalidCode. - CXCursorKind clang_codeCompleteGetContainerKind( - ffi.Pointer Results, - ffi.Pointer IsIncomplete, - ) { - return CXCursorKind.fromValue( - _clang_codeCompleteGetContainerKind(Results, IsIncomplete), - ); - } - - late final _clang_codeCompleteGetContainerKindPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_codeCompleteGetContainerKind'); - late final _clang_codeCompleteGetContainerKind = - _clang_codeCompleteGetContainerKindPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Returns the USR for the container for the current code completion context. - /// If there is not a container for the current context, this function will - /// return the empty string. - CXString clang_codeCompleteGetContainerUSR( - ffi.Pointer Results, - ) { - return _clang_codeCompleteGetContainerUSR(Results); - } - - late final _clang_codeCompleteGetContainerUSRPtr = - _lookup< - ffi.NativeFunction< - CXString Function(ffi.Pointer) - > - >('clang_codeCompleteGetContainerUSR'); - late final _clang_codeCompleteGetContainerUSR = - _clang_codeCompleteGetContainerUSRPtr - .asFunction)>(); - - /// Determines what completions are appropriate for the context the given code - /// completion. - int clang_codeCompleteGetContexts( - ffi.Pointer Results, - ) { - return _clang_codeCompleteGetContexts(Results); - } - - late final _clang_codeCompleteGetContextsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedLongLong Function(ffi.Pointer) - > - >('clang_codeCompleteGetContexts'); - late final _clang_codeCompleteGetContexts = _clang_codeCompleteGetContextsPtr - .asFunction)>(); - - /// Retrieve a diagnostic associated with the given code completion. - CXDiagnostic clang_codeCompleteGetDiagnostic( - ffi.Pointer Results, - int Index, - ) { - return _clang_codeCompleteGetDiagnostic(Results, Index); - } - - late final _clang_codeCompleteGetDiagnosticPtr = - _lookup< - ffi.NativeFunction< - CXDiagnostic Function( - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >('clang_codeCompleteGetDiagnostic'); - late final _clang_codeCompleteGetDiagnostic = - _clang_codeCompleteGetDiagnosticPtr - .asFunction< - CXDiagnostic Function(ffi.Pointer, int) - >(); - - /// Determine the number of diagnostics produced prior to the location where - /// code completion was performed. - int clang_codeCompleteGetNumDiagnostics( - ffi.Pointer Results, - ) { - return _clang_codeCompleteGetNumDiagnostics(Results); - } - - late final _clang_codeCompleteGetNumDiagnosticsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer) - > - >('clang_codeCompleteGetNumDiagnostics'); - late final _clang_codeCompleteGetNumDiagnostics = - _clang_codeCompleteGetNumDiagnosticsPtr - .asFunction)>(); - - /// Returns the currently-entered selector for an Objective-C message send, - /// formatted like "initWithFoo:bar:". Only guaranteed to return a non-empty - /// string for CXCompletionContext_ObjCInstanceMessage and - /// CXCompletionContext_ObjCClassMessage. - CXString clang_codeCompleteGetObjCSelector( - ffi.Pointer Results, - ) { - return _clang_codeCompleteGetObjCSelector(Results); - } - - late final _clang_codeCompleteGetObjCSelectorPtr = - _lookup< - ffi.NativeFunction< - CXString Function(ffi.Pointer) - > - >('clang_codeCompleteGetObjCSelector'); - late final _clang_codeCompleteGetObjCSelector = - _clang_codeCompleteGetObjCSelectorPtr - .asFunction)>(); - - /// Construct a USR for a specified Objective-C category. - CXString clang_constructUSR_ObjCCategory( - ffi.Pointer class_name, - ffi.Pointer category_name, - ) { - return _clang_constructUSR_ObjCCategory(class_name, category_name); - } - - late final _clang_constructUSR_ObjCCategoryPtr = - _lookup< - ffi.NativeFunction< - CXString Function(ffi.Pointer, ffi.Pointer) - > - >('clang_constructUSR_ObjCCategory'); - late final _clang_constructUSR_ObjCCategory = - _clang_constructUSR_ObjCCategoryPtr - .asFunction< - CXString Function(ffi.Pointer, ffi.Pointer) - >(); - - /// Construct a USR for a specified Objective-C class. - CXString clang_constructUSR_ObjCClass(ffi.Pointer class_name) { - return _clang_constructUSR_ObjCClass(class_name); - } - - late final _clang_constructUSR_ObjCClassPtr = - _lookup)>>( - 'clang_constructUSR_ObjCClass', - ); - late final _clang_constructUSR_ObjCClass = _clang_constructUSR_ObjCClassPtr - .asFunction)>(); - - /// Construct a USR for a specified Objective-C instance variable and the USR - /// for its containing class. - CXString clang_constructUSR_ObjCIvar( - ffi.Pointer name, - CXString classUSR, - ) { - return _clang_constructUSR_ObjCIvar(name, classUSR); - } - - late final _clang_constructUSR_ObjCIvarPtr = - _lookup< - ffi.NativeFunction, CXString)> - >('clang_constructUSR_ObjCIvar'); - late final _clang_constructUSR_ObjCIvar = _clang_constructUSR_ObjCIvarPtr - .asFunction, CXString)>(); - - /// Construct a USR for a specified Objective-C method and the USR for its - /// containing class. - CXString clang_constructUSR_ObjCMethod( - ffi.Pointer name, - int isInstanceMethod, - CXString classUSR, - ) { - return _clang_constructUSR_ObjCMethod(name, isInstanceMethod, classUSR); - } - - late final _clang_constructUSR_ObjCMethodPtr = - _lookup< - ffi.NativeFunction< - CXString Function(ffi.Pointer, ffi.UnsignedInt, CXString) - > - >('clang_constructUSR_ObjCMethod'); - late final _clang_constructUSR_ObjCMethod = _clang_constructUSR_ObjCMethodPtr - .asFunction, int, CXString)>(); - - /// Construct a USR for a specified Objective-C property and the USR for its - /// containing class. - CXString clang_constructUSR_ObjCProperty( - ffi.Pointer property, - CXString classUSR, - ) { - return _clang_constructUSR_ObjCProperty(property, classUSR); - } - - late final _clang_constructUSR_ObjCPropertyPtr = - _lookup< - ffi.NativeFunction, CXString)> - >('clang_constructUSR_ObjCProperty'); - late final _clang_constructUSR_ObjCProperty = - _clang_constructUSR_ObjCPropertyPtr - .asFunction, CXString)>(); - - /// Construct a USR for a specified Objective-C protocol. - CXString clang_constructUSR_ObjCProtocol( - ffi.Pointer protocol_name, - ) { - return _clang_constructUSR_ObjCProtocol(protocol_name); - } - - late final _clang_constructUSR_ObjCProtocolPtr = - _lookup)>>( - 'clang_constructUSR_ObjCProtocol', - ); - late final _clang_constructUSR_ObjCProtocol = - _clang_constructUSR_ObjCProtocolPtr - .asFunction)>(); - - /// Creates an empty CXCursorSet. - CXCursorSet clang_createCXCursorSet() { - return _clang_createCXCursorSet(); - } - - late final _clang_createCXCursorSetPtr = - _lookup>( - 'clang_createCXCursorSet', - ); - late final _clang_createCXCursorSet = _clang_createCXCursorSetPtr - .asFunction(); - - /// Provides a shared context for creating translation units. - CXIndex clang_createIndex( - int excludeDeclarationsFromPCH, - int displayDiagnostics, - ) { - return _clang_createIndex(excludeDeclarationsFromPCH, displayDiagnostics); - } - - late final _clang_createIndexPtr = - _lookup>( - 'clang_createIndex', - ); - late final _clang_createIndex = _clang_createIndexPtr - .asFunction(); - - /// Same as clang_createTranslationUnit2, but returns the CXTranslationUnit - /// instead of an error code. In case of an error this routine returns a NULL - /// CXTranslationUnit, without further detailed error codes. - CXTranslationUnit clang_createTranslationUnit( - CXIndex CIdx, - ffi.Pointer ast_filename, - ) { - return _clang_createTranslationUnit(CIdx, ast_filename); - } - - late final _clang_createTranslationUnitPtr = - _lookup< - ffi.NativeFunction< - CXTranslationUnit Function(CXIndex, ffi.Pointer) - > - >('clang_createTranslationUnit'); - late final _clang_createTranslationUnit = _clang_createTranslationUnitPtr - .asFunction)>(); - - /// Create a translation unit from an AST file ( -emit-ast). - CXErrorCode clang_createTranslationUnit2( - CXIndex CIdx, - ffi.Pointer ast_filename, - ffi.Pointer out_TU, - ) { - return CXErrorCode.fromValue( - _clang_createTranslationUnit2(CIdx, ast_filename, out_TU), - ); - } - - late final _clang_createTranslationUnit2Ptr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXIndex, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_createTranslationUnit2'); - late final _clang_createTranslationUnit2 = _clang_createTranslationUnit2Ptr - .asFunction< - int Function( - CXIndex, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Return the CXTranslationUnit for a given source file and the provided - /// command line arguments one would pass to the compiler. - CXTranslationUnit clang_createTranslationUnitFromSourceFile( - CXIndex CIdx, - ffi.Pointer source_filename, - int num_clang_command_line_args, - ffi.Pointer> clang_command_line_args, - int num_unsaved_files, - ffi.Pointer unsaved_files, - ) { - return _clang_createTranslationUnitFromSourceFile( - CIdx, - source_filename, - num_clang_command_line_args, - clang_command_line_args, - num_unsaved_files, - unsaved_files, - ); - } - - late final _clang_createTranslationUnitFromSourceFilePtr = - _lookup< - ffi.NativeFunction< - CXTranslationUnit Function( - CXIndex, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.UnsignedInt, - ffi.Pointer, - ) - > - >('clang_createTranslationUnitFromSourceFile'); - late final _clang_createTranslationUnitFromSourceFile = - _clang_createTranslationUnitFromSourceFilePtr - .asFunction< - CXTranslationUnit Function( - CXIndex, - ffi.Pointer, - int, - ffi.Pointer>, - int, - ffi.Pointer, - ) - >(); - - /// Returns a default set of code-completion options that can be passed to - /// clang_codeCompleteAt(). - int clang_defaultCodeCompleteOptions() { - return _clang_defaultCodeCompleteOptions(); - } - - late final _clang_defaultCodeCompleteOptionsPtr = - _lookup>( - 'clang_defaultCodeCompleteOptions', - ); - late final _clang_defaultCodeCompleteOptions = - _clang_defaultCodeCompleteOptionsPtr.asFunction(); - - /// Retrieve the set of display options most similar to the default behavior - /// of the clang compiler. - int clang_defaultDiagnosticDisplayOptions() { - return _clang_defaultDiagnosticDisplayOptions(); - } - - late final _clang_defaultDiagnosticDisplayOptionsPtr = - _lookup>( - 'clang_defaultDiagnosticDisplayOptions', - ); - late final _clang_defaultDiagnosticDisplayOptions = - _clang_defaultDiagnosticDisplayOptionsPtr.asFunction(); - - /// Returns the set of flags that is suitable for parsing a translation unit - /// that is being edited. - int clang_defaultEditingTranslationUnitOptions() { - return _clang_defaultEditingTranslationUnitOptions(); - } - - late final _clang_defaultEditingTranslationUnitOptionsPtr = - _lookup>( - 'clang_defaultEditingTranslationUnitOptions', - ); - late final _clang_defaultEditingTranslationUnitOptions = - _clang_defaultEditingTranslationUnitOptionsPtr - .asFunction(); - - /// Returns the set of flags that is suitable for reparsing a translation - /// unit. - int clang_defaultReparseOptions(CXTranslationUnit TU) { - return _clang_defaultReparseOptions(TU); - } - - late final _clang_defaultReparseOptionsPtr = - _lookup>( - 'clang_defaultReparseOptions', - ); - late final _clang_defaultReparseOptions = _clang_defaultReparseOptionsPtr - .asFunction(); - - /// Returns the set of flags that is suitable for saving a translation unit. - int clang_defaultSaveOptions(CXTranslationUnit TU) { - return _clang_defaultSaveOptions(TU); - } - - late final _clang_defaultSaveOptionsPtr = - _lookup>( - 'clang_defaultSaveOptions', - ); - late final _clang_defaultSaveOptions = _clang_defaultSaveOptionsPtr - .asFunction(); - - /// Disposes a CXCursorSet and releases its associated memory. - void clang_disposeCXCursorSet(CXCursorSet cset) { - return _clang_disposeCXCursorSet(cset); - } - - late final _clang_disposeCXCursorSetPtr = - _lookup>( - 'clang_disposeCXCursorSet', - ); - late final _clang_disposeCXCursorSet = _clang_disposeCXCursorSetPtr - .asFunction(); - - /// Free the memory associated with a CXPlatformAvailability structure. - void clang_disposeCXPlatformAvailability( - ffi.Pointer availability, - ) { - return _clang_disposeCXPlatformAvailability(availability); - } - - late final _clang_disposeCXPlatformAvailabilityPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) - > - >('clang_disposeCXPlatformAvailability'); - late final _clang_disposeCXPlatformAvailability = - _clang_disposeCXPlatformAvailabilityPtr - .asFunction)>(); - - void clang_disposeCXTUResourceUsage(CXTUResourceUsage usage) { - return _clang_disposeCXTUResourceUsage(usage); - } - - late final _clang_disposeCXTUResourceUsagePtr = - _lookup>( - 'clang_disposeCXTUResourceUsage', - ); - late final _clang_disposeCXTUResourceUsage = - _clang_disposeCXTUResourceUsagePtr - .asFunction(); - - /// Free the given set of code-completion results. - void clang_disposeCodeCompleteResults( - ffi.Pointer Results, - ) { - return _clang_disposeCodeCompleteResults(Results); - } - - late final _clang_disposeCodeCompleteResultsPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) - > - >('clang_disposeCodeCompleteResults'); - late final _clang_disposeCodeCompleteResults = - _clang_disposeCodeCompleteResultsPtr - .asFunction)>(); - - /// Destroy a diagnostic. - void clang_disposeDiagnostic(CXDiagnostic Diagnostic) { - return _clang_disposeDiagnostic(Diagnostic); - } - - late final _clang_disposeDiagnosticPtr = - _lookup>( - 'clang_disposeDiagnostic', - ); - late final _clang_disposeDiagnostic = _clang_disposeDiagnosticPtr - .asFunction(); - - /// Release a CXDiagnosticSet and all of its contained diagnostics. - void clang_disposeDiagnosticSet(CXDiagnosticSet Diags) { - return _clang_disposeDiagnosticSet(Diags); - } - - late final _clang_disposeDiagnosticSetPtr = - _lookup>( - 'clang_disposeDiagnosticSet', - ); - late final _clang_disposeDiagnosticSet = _clang_disposeDiagnosticSetPtr - .asFunction(); - - /// Destroy the given index. - void clang_disposeIndex(CXIndex index) { - return _clang_disposeIndex(index); - } - - late final _clang_disposeIndexPtr = - _lookup>( - 'clang_disposeIndex', - ); - late final _clang_disposeIndex = _clang_disposeIndexPtr - .asFunction(); - - /// Free the set of overridden cursors returned by - /// clang_getOverriddenCursors(). - void clang_disposeOverriddenCursors(ffi.Pointer overridden) { - return _clang_disposeOverriddenCursors(overridden); - } - - late final _clang_disposeOverriddenCursorsPtr = - _lookup)>>( - 'clang_disposeOverriddenCursors', - ); - late final _clang_disposeOverriddenCursors = - _clang_disposeOverriddenCursorsPtr - .asFunction)>(); - - /// Destroy the given CXSourceRangeList. - void clang_disposeSourceRangeList(ffi.Pointer ranges) { - return _clang_disposeSourceRangeList(ranges); - } - - late final _clang_disposeSourceRangeListPtr = - _lookup< - ffi.NativeFunction)> - >('clang_disposeSourceRangeList'); - late final _clang_disposeSourceRangeList = _clang_disposeSourceRangeListPtr - .asFunction)>(); - - /// Free the given string. - void clang_disposeString(CXString string) { - return _clang_disposeString(string); - } - - late final _clang_disposeStringPtr = - _lookup>( - 'clang_disposeString', - ); - late final _clang_disposeString = _clang_disposeStringPtr - .asFunction(); - - /// Free the given string set. - void clang_disposeStringSet(ffi.Pointer set) { - return _clang_disposeStringSet(set); - } - - late final _clang_disposeStringSetPtr = - _lookup)>>( - 'clang_disposeStringSet', - ); - late final _clang_disposeStringSet = _clang_disposeStringSetPtr - .asFunction)>(); - - /// Free the given set of tokens. - void clang_disposeTokens( - CXTranslationUnit TU, - ffi.Pointer Tokens, - int NumTokens, - ) { - return _clang_disposeTokens(TU, Tokens, NumTokens); - } - - late final _clang_disposeTokensPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >('clang_disposeTokens'); - late final _clang_disposeTokens = _clang_disposeTokensPtr - .asFunction< - void Function(CXTranslationUnit, ffi.Pointer, int) - >(); - - /// Destroy the specified CXTranslationUnit object. - void clang_disposeTranslationUnit(CXTranslationUnit arg0) { - return _clang_disposeTranslationUnit(arg0); - } - - late final _clang_disposeTranslationUnitPtr = - _lookup>( - 'clang_disposeTranslationUnit', - ); - late final _clang_disposeTranslationUnit = _clang_disposeTranslationUnitPtr - .asFunction(); - - void clang_enableStackTraces() { - return _clang_enableStackTraces(); - } - - late final _clang_enableStackTracesPtr = - _lookup>( - 'clang_enableStackTraces', - ); - late final _clang_enableStackTraces = _clang_enableStackTracesPtr - .asFunction(); - - /// Determine whether two cursors are equivalent. - int clang_equalCursors(CXCursor arg0, CXCursor arg1) { - return _clang_equalCursors(arg0, arg1); - } - - late final _clang_equalCursorsPtr = - _lookup>( - 'clang_equalCursors', - ); - late final _clang_equalCursors = _clang_equalCursorsPtr - .asFunction(); - - /// Determine whether two source locations, which must refer into the same - /// translation unit, refer to exactly the same point in the source code. - int clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2) { - return _clang_equalLocations(loc1, loc2); - } - - late final _clang_equalLocationsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXSourceLocation, CXSourceLocation) - > - >('clang_equalLocations'); - late final _clang_equalLocations = _clang_equalLocationsPtr - .asFunction(); - - /// Determine whether two ranges are equivalent. - int clang_equalRanges(CXSourceRange range1, CXSourceRange range2) { - return _clang_equalRanges(range1, range2); - } - - late final _clang_equalRangesPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXSourceRange, CXSourceRange) - > - >('clang_equalRanges'); - late final _clang_equalRanges = _clang_equalRangesPtr - .asFunction(); - - /// Determine whether two CXTypes represent the same type. - int clang_equalTypes(CXType A, CXType B) { - return _clang_equalTypes(A, B); - } - - late final _clang_equalTypesPtr = - _lookup>( - 'clang_equalTypes', - ); - late final _clang_equalTypes = _clang_equalTypesPtr - .asFunction(); - - void clang_executeOnThread( - ffi.Pointer)>> - fn, - ffi.Pointer user_data, - int stack_size, - ) { - return _clang_executeOnThread(fn, user_data, stack_size); - } - - late final _clang_executeOnThreadPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >('clang_executeOnThread'); - late final _clang_executeOnThread = _clang_executeOnThreadPtr - .asFunction< - void Function( - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.Pointer, - int, - ) - >(); - - /// Find #import/#include directives in a specific file. - CXResult clang_findIncludesInFile( - CXTranslationUnit TU, - CXFile file, - CXCursorAndRangeVisitor visitor, - ) { - return CXResult.fromValue(_clang_findIncludesInFile(TU, file, visitor)); - } - - late final _clang_findIncludesInFilePtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXTranslationUnit, - CXFile, - CXCursorAndRangeVisitor, - ) - > - >('clang_findIncludesInFile'); - late final _clang_findIncludesInFile = _clang_findIncludesInFilePtr - .asFunction< - int Function(CXTranslationUnit, CXFile, CXCursorAndRangeVisitor) - >(); - - /// Find references of a declaration in a specific file. - CXResult clang_findReferencesInFile( - CXCursor cursor, - CXFile file, - CXCursorAndRangeVisitor visitor, - ) { - return CXResult.fromValue( - _clang_findReferencesInFile(cursor, file, visitor), - ); - } - - late final _clang_findReferencesInFilePtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor, CXFile, CXCursorAndRangeVisitor) - > - >('clang_findReferencesInFile'); - late final _clang_findReferencesInFile = _clang_findReferencesInFilePtr - .asFunction(); - - /// Format the given diagnostic in a manner that is suitable for display. - CXString clang_formatDiagnostic(CXDiagnostic Diagnostic, int Options) { - return _clang_formatDiagnostic(Diagnostic, Options); - } - - late final _clang_formatDiagnosticPtr = - _lookup< - ffi.NativeFunction - >('clang_formatDiagnostic'); - late final _clang_formatDiagnostic = _clang_formatDiagnosticPtr - .asFunction(); - - /// free memory allocated by libclang, such as the buffer returned by - /// CXVirtualFileOverlay() or clang_ModuleMapDescriptor_writeToBuffer(). - void clang_free(ffi.Pointer buffer) { - return _clang_free(buffer); - } - - late final _clang_freePtr = - _lookup)>>( - 'clang_free', - ); - late final _clang_free = _clang_freePtr - .asFunction)>(); - - /// Returns the address space of the given type. - int clang_getAddressSpace(CXType T) { - return _clang_getAddressSpace(T); - } - - late final _clang_getAddressSpacePtr = - _lookup>( - 'clang_getAddressSpace', - ); - late final _clang_getAddressSpace = _clang_getAddressSpacePtr - .asFunction(); - - /// Retrieve all ranges from all files that were skipped by the preprocessor. - ffi.Pointer clang_getAllSkippedRanges( - CXTranslationUnit tu, - ) { - return _clang_getAllSkippedRanges(tu); - } - - late final _clang_getAllSkippedRangesPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit) - > - >('clang_getAllSkippedRanges'); - late final _clang_getAllSkippedRanges = _clang_getAllSkippedRangesPtr - .asFunction Function(CXTranslationUnit)>(); - - /// Retrieve the type of a parameter of a function type. - CXType clang_getArgType(CXType T, int i) { - return _clang_getArgType(T, i); - } - - late final _clang_getArgTypePtr = - _lookup>( - 'clang_getArgType', - ); - late final _clang_getArgType = _clang_getArgTypePtr - .asFunction(); - - /// Return the element type of an array type. - CXType clang_getArrayElementType(CXType T) { - return _clang_getArrayElementType(T); - } - - late final _clang_getArrayElementTypePtr = - _lookup>( - 'clang_getArrayElementType', - ); - late final _clang_getArrayElementType = _clang_getArrayElementTypePtr - .asFunction(); - - /// Return the array size of a constant array. - int clang_getArraySize(CXType T) { - return _clang_getArraySize(T); - } - - late final _clang_getArraySizePtr = - _lookup>( - 'clang_getArraySize', - ); - late final _clang_getArraySize = _clang_getArraySizePtr - .asFunction(); - - /// Return the timestamp for use with Clang's -fbuild-session-timestamp= - /// option. - int clang_getBuildSessionTimestamp() { - return _clang_getBuildSessionTimestamp(); - } - - late final _clang_getBuildSessionTimestampPtr = - _lookup>( - 'clang_getBuildSessionTimestamp', - ); - late final _clang_getBuildSessionTimestamp = - _clang_getBuildSessionTimestampPtr.asFunction(); - - /// Retrieve the character data associated with the given string. - ffi.Pointer clang_getCString(CXString string) { - return _clang_getCString(string); - } - - late final _clang_getCStringPtr = - _lookup Function(CXString)>>( - 'clang_getCString', - ); - late final _clang_getCString = _clang_getCStringPtr - .asFunction Function(CXString)>(); - - /// Return the memory usage of a translation unit. This object should be - /// released with clang_disposeCXTUResourceUsage(). - CXTUResourceUsage clang_getCXTUResourceUsage(CXTranslationUnit TU) { - return _clang_getCXTUResourceUsage(TU); - } - - late final _clang_getCXTUResourceUsagePtr = - _lookup< - ffi.NativeFunction - >('clang_getCXTUResourceUsage'); - late final _clang_getCXTUResourceUsage = _clang_getCXTUResourceUsagePtr - .asFunction(); - - /// Returns the access control level for the referenced object. - CX_CXXAccessSpecifier clang_getCXXAccessSpecifier(CXCursor arg0) { - return CX_CXXAccessSpecifier.fromValue(_clang_getCXXAccessSpecifier(arg0)); - } - - late final _clang_getCXXAccessSpecifierPtr = - _lookup>( - 'clang_getCXXAccessSpecifier', - ); - late final _clang_getCXXAccessSpecifier = _clang_getCXXAccessSpecifierPtr - .asFunction(); - - /// Retrieve the canonical cursor corresponding to the given cursor. - CXCursor clang_getCanonicalCursor(CXCursor arg0) { - return _clang_getCanonicalCursor(arg0); - } - - late final _clang_getCanonicalCursorPtr = - _lookup>( - 'clang_getCanonicalCursor', - ); - late final _clang_getCanonicalCursor = _clang_getCanonicalCursorPtr - .asFunction(); - - /// Return the canonical type for a CXType. - CXType clang_getCanonicalType(CXType T) { - return _clang_getCanonicalType(T); - } - - late final _clang_getCanonicalTypePtr = - _lookup>( - 'clang_getCanonicalType', - ); - late final _clang_getCanonicalType = _clang_getCanonicalTypePtr - .asFunction(); - - /// Retrieve the child diagnostics of a CXDiagnostic. - CXDiagnosticSet clang_getChildDiagnostics(CXDiagnostic D) { - return _clang_getChildDiagnostics(D); - } - - late final _clang_getChildDiagnosticsPtr = - _lookup>( - 'clang_getChildDiagnostics', - ); - late final _clang_getChildDiagnostics = _clang_getChildDiagnosticsPtr - .asFunction(); - - /// Return a version string, suitable for showing to a user, but not intended - /// to be parsed (the format is not guaranteed to be stable). - CXString clang_getClangVersion() { - return _clang_getClangVersion(); - } - - late final _clang_getClangVersionPtr = - _lookup>('clang_getClangVersion'); - late final _clang_getClangVersion = _clang_getClangVersionPtr - .asFunction(); - - /// Retrieve the annotation associated with the given completion string. - CXString clang_getCompletionAnnotation( - CXCompletionString completion_string, - int annotation_number, - ) { - return _clang_getCompletionAnnotation(completion_string, annotation_number); - } - - late final _clang_getCompletionAnnotationPtr = - _lookup< - ffi.NativeFunction< - CXString Function(CXCompletionString, ffi.UnsignedInt) - > - >('clang_getCompletionAnnotation'); - late final _clang_getCompletionAnnotation = _clang_getCompletionAnnotationPtr - .asFunction(); - - /// Determine the availability of the entity that this code-completion string - /// refers to. - CXAvailabilityKind clang_getCompletionAvailability( - CXCompletionString completion_string, - ) { - return CXAvailabilityKind.fromValue( - _clang_getCompletionAvailability(completion_string), - ); - } - - late final _clang_getCompletionAvailabilityPtr = - _lookup>( - 'clang_getCompletionAvailability', - ); - late final _clang_getCompletionAvailability = - _clang_getCompletionAvailabilityPtr - .asFunction(); - - /// Retrieve the brief documentation comment attached to the declaration that - /// corresponds to the given completion string. - CXString clang_getCompletionBriefComment( - CXCompletionString completion_string, - ) { - return _clang_getCompletionBriefComment(completion_string); - } - - late final _clang_getCompletionBriefCommentPtr = - _lookup>( - 'clang_getCompletionBriefComment', - ); - late final _clang_getCompletionBriefComment = - _clang_getCompletionBriefCommentPtr - .asFunction(); - - /// Retrieve the completion string associated with a particular chunk within a - /// completion string. - CXCompletionString clang_getCompletionChunkCompletionString( - CXCompletionString completion_string, - int chunk_number, - ) { - return _clang_getCompletionChunkCompletionString( - completion_string, - chunk_number, - ); - } - - late final _clang_getCompletionChunkCompletionStringPtr = - _lookup< - ffi.NativeFunction< - CXCompletionString Function(CXCompletionString, ffi.UnsignedInt) - > - >('clang_getCompletionChunkCompletionString'); - late final _clang_getCompletionChunkCompletionString = - _clang_getCompletionChunkCompletionStringPtr - .asFunction(); - - /// Determine the kind of a particular chunk within a completion string. - CXCompletionChunkKind clang_getCompletionChunkKind( - CXCompletionString completion_string, - int chunk_number, - ) { - return CXCompletionChunkKind.fromValue( - _clang_getCompletionChunkKind(completion_string, chunk_number), - ); - } - - late final _clang_getCompletionChunkKindPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString, ffi.UnsignedInt) - > - >('clang_getCompletionChunkKind'); - late final _clang_getCompletionChunkKind = _clang_getCompletionChunkKindPtr - .asFunction(); - - /// Retrieve the text associated with a particular chunk within a completion - /// string. - CXString clang_getCompletionChunkText( - CXCompletionString completion_string, - int chunk_number, - ) { - return _clang_getCompletionChunkText(completion_string, chunk_number); - } - - late final _clang_getCompletionChunkTextPtr = - _lookup< - ffi.NativeFunction< - CXString Function(CXCompletionString, ffi.UnsignedInt) - > - >('clang_getCompletionChunkText'); - late final _clang_getCompletionChunkText = _clang_getCompletionChunkTextPtr - .asFunction(); - - /// Fix-its that *must* be applied before inserting the text for the - /// corresponding completion. - CXString clang_getCompletionFixIt( - ffi.Pointer results, - int completion_index, - int fixit_index, - ffi.Pointer replacement_range, - ) { - return _clang_getCompletionFixIt( - results, - completion_index, - fixit_index, - replacement_range, - ); - } - - late final _clang_getCompletionFixItPtr = - _lookup< - ffi.NativeFunction< - CXString Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ) - > - >('clang_getCompletionFixIt'); - late final _clang_getCompletionFixIt = _clang_getCompletionFixItPtr - .asFunction< - CXString Function( - ffi.Pointer, - int, - int, - ffi.Pointer, - ) - >(); - - /// Retrieve the number of annotations associated with the given completion - /// string. - int clang_getCompletionNumAnnotations(CXCompletionString completion_string) { - return _clang_getCompletionNumAnnotations(completion_string); - } - - late final _clang_getCompletionNumAnnotationsPtr = - _lookup>( - 'clang_getCompletionNumAnnotations', - ); - late final _clang_getCompletionNumAnnotations = - _clang_getCompletionNumAnnotationsPtr - .asFunction(); - - /// Retrieve the number of fix-its for the given completion index. - int clang_getCompletionNumFixIts( - ffi.Pointer results, - int completion_index, - ) { - return _clang_getCompletionNumFixIts(results, completion_index); - } - - late final _clang_getCompletionNumFixItsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >('clang_getCompletionNumFixIts'); - late final _clang_getCompletionNumFixIts = _clang_getCompletionNumFixItsPtr - .asFunction, int)>(); - - /// Retrieve the parent context of the given completion string. - CXString clang_getCompletionParent( - CXCompletionString completion_string, - ffi.Pointer kind, - ) { - return _clang_getCompletionParent(completion_string, kind); - } - - late final _clang_getCompletionParentPtr = - _lookup< - ffi.NativeFunction< - CXString Function(CXCompletionString, ffi.Pointer) - > - >('clang_getCompletionParent'); - late final _clang_getCompletionParent = _clang_getCompletionParentPtr - .asFunction< - CXString Function(CXCompletionString, ffi.Pointer) - >(); - - /// Determine the priority of this code completion. - int clang_getCompletionPriority(CXCompletionString completion_string) { - return _clang_getCompletionPriority(completion_string); - } - - late final _clang_getCompletionPriorityPtr = - _lookup>( - 'clang_getCompletionPriority', - ); - late final _clang_getCompletionPriority = _clang_getCompletionPriorityPtr - .asFunction(); - - /// Map a source location to the cursor that describes the entity at that - /// location in the source code. - CXCursor clang_getCursor(CXTranslationUnit arg0, CXSourceLocation arg1) { - return _clang_getCursor(arg0, arg1); - } - - late final _clang_getCursorPtr = - _lookup< - ffi.NativeFunction< - CXCursor Function(CXTranslationUnit, CXSourceLocation) - > - >('clang_getCursor'); - late final _clang_getCursor = _clang_getCursorPtr - .asFunction(); - - /// Determine the availability of the entity that this cursor refers to, - /// taking the current target platform into account. - CXAvailabilityKind clang_getCursorAvailability(CXCursor cursor) { - return CXAvailabilityKind.fromValue(_clang_getCursorAvailability(cursor)); - } - - late final _clang_getCursorAvailabilityPtr = - _lookup>( - 'clang_getCursorAvailability', - ); - late final _clang_getCursorAvailability = _clang_getCursorAvailabilityPtr - .asFunction(); - - /// Retrieve a completion string for an arbitrary declaration or macro - /// definition cursor. - CXCompletionString clang_getCursorCompletionString(CXCursor cursor) { - return _clang_getCursorCompletionString(cursor); - } - - late final _clang_getCursorCompletionStringPtr = - _lookup>( - 'clang_getCursorCompletionString', - ); - late final _clang_getCursorCompletionString = - _clang_getCursorCompletionStringPtr - .asFunction(); - - /// For a cursor that is either a reference to or a declaration of some - /// entity, retrieve a cursor that describes the definition of that entity. - CXCursor clang_getCursorDefinition(CXCursor arg0) { - return _clang_getCursorDefinition(arg0); - } - - late final _clang_getCursorDefinitionPtr = - _lookup>( - 'clang_getCursorDefinition', - ); - late final _clang_getCursorDefinition = _clang_getCursorDefinitionPtr - .asFunction(); - - /// Retrieve the display name for the entity referenced by this cursor. - CXString clang_getCursorDisplayName(CXCursor arg0) { - return _clang_getCursorDisplayName(arg0); - } - - late final _clang_getCursorDisplayNamePtr = - _lookup>( - 'clang_getCursorDisplayName', - ); - late final _clang_getCursorDisplayName = _clang_getCursorDisplayNamePtr - .asFunction(); - - /// Retrieve the exception specification type associated with a given cursor. - /// This is a value of type CXCursor_ExceptionSpecificationKind. - int clang_getCursorExceptionSpecificationType(CXCursor C) { - return _clang_getCursorExceptionSpecificationType(C); - } - - late final _clang_getCursorExceptionSpecificationTypePtr = - _lookup>( - 'clang_getCursorExceptionSpecificationType', - ); - late final _clang_getCursorExceptionSpecificationType = - _clang_getCursorExceptionSpecificationTypePtr - .asFunction(); - - /// Retrieve the physical extent of the source construct referenced by the - /// given cursor. - CXSourceRange clang_getCursorExtent(CXCursor arg0) { - return _clang_getCursorExtent(arg0); - } - - late final _clang_getCursorExtentPtr = - _lookup>( - 'clang_getCursorExtent', - ); - late final _clang_getCursorExtent = _clang_getCursorExtentPtr - .asFunction(); - - /// Retrieve the kind of the given cursor. - CXCursorKind clang_getCursorKind(CXCursor arg0) { - return CXCursorKind.fromValue(_clang_getCursorKind(arg0)); - } - - late final _clang_getCursorKindPtr = - _lookup>( - 'clang_getCursorKind', - ); - late final _clang_getCursorKind = _clang_getCursorKindPtr - .asFunction(); - - /// These routines are used for testing and debugging, only, and should not be - /// relied upon. - CXString clang_getCursorKindSpelling(CXCursorKind Kind) { - return _clang_getCursorKindSpelling(Kind.value); - } - - late final _clang_getCursorKindSpellingPtr = - _lookup>( - 'clang_getCursorKindSpelling', - ); - late final _clang_getCursorKindSpelling = _clang_getCursorKindSpellingPtr - .asFunction(); - - /// Determine the "language" of the entity referred to by a given cursor. - CXLanguageKind clang_getCursorLanguage(CXCursor cursor) { - return CXLanguageKind.fromValue(_clang_getCursorLanguage(cursor)); - } - - late final _clang_getCursorLanguagePtr = - _lookup>( - 'clang_getCursorLanguage', - ); - late final _clang_getCursorLanguage = _clang_getCursorLanguagePtr - .asFunction(); - - /// Determine the lexical parent of the given cursor. - CXCursor clang_getCursorLexicalParent(CXCursor cursor) { - return _clang_getCursorLexicalParent(cursor); - } - - late final _clang_getCursorLexicalParentPtr = - _lookup>( - 'clang_getCursorLexicalParent', - ); - late final _clang_getCursorLexicalParent = _clang_getCursorLexicalParentPtr - .asFunction(); - - /// Determine the linkage of the entity referred to by a given cursor. - CXLinkageKind clang_getCursorLinkage(CXCursor cursor) { - return CXLinkageKind.fromValue(_clang_getCursorLinkage(cursor)); - } - - late final _clang_getCursorLinkagePtr = - _lookup>( - 'clang_getCursorLinkage', - ); - late final _clang_getCursorLinkage = _clang_getCursorLinkagePtr - .asFunction(); - - /// Retrieve the physical location of the source constructor referenced by the - /// given cursor. - CXSourceLocation clang_getCursorLocation(CXCursor arg0) { - return _clang_getCursorLocation(arg0); - } - - late final _clang_getCursorLocationPtr = - _lookup>( - 'clang_getCursorLocation', - ); - late final _clang_getCursorLocation = _clang_getCursorLocationPtr - .asFunction(); - - /// Determine the availability of the entity that this cursor refers to on any - /// platforms for which availability information is known. - int clang_getCursorPlatformAvailability( - CXCursor cursor, - ffi.Pointer always_deprecated, - ffi.Pointer deprecated_message, - ffi.Pointer always_unavailable, - ffi.Pointer unavailable_message, - ffi.Pointer availability, - int availability_size, - ) { - return _clang_getCursorPlatformAvailability( - cursor, - always_deprecated, - deprecated_message, - always_unavailable, - unavailable_message, - availability, - availability_size, - ); - } - - late final _clang_getCursorPlatformAvailabilityPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXCursor, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >('clang_getCursorPlatformAvailability'); - late final _clang_getCursorPlatformAvailability = - _clang_getCursorPlatformAvailabilityPtr - .asFunction< - int Function( - CXCursor, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); - - /// Pretty print declarations. - CXString clang_getCursorPrettyPrinted( - CXCursor Cursor, - CXPrintingPolicy Policy, - ) { - return _clang_getCursorPrettyPrinted(Cursor, Policy); - } - - late final _clang_getCursorPrettyPrintedPtr = - _lookup< - ffi.NativeFunction - >('clang_getCursorPrettyPrinted'); - late final _clang_getCursorPrettyPrinted = _clang_getCursorPrettyPrintedPtr - .asFunction(); - - /// Retrieve the default policy for the cursor. - CXPrintingPolicy clang_getCursorPrintingPolicy(CXCursor arg0) { - return _clang_getCursorPrintingPolicy(arg0); - } - - late final _clang_getCursorPrintingPolicyPtr = - _lookup>( - 'clang_getCursorPrintingPolicy', - ); - late final _clang_getCursorPrintingPolicy = _clang_getCursorPrintingPolicyPtr - .asFunction(); - - /// Given a cursor that references something else, return the source range - /// covering that reference. - CXSourceRange clang_getCursorReferenceNameRange( - CXCursor C, - int NameFlags, - int PieceIndex, - ) { - return _clang_getCursorReferenceNameRange(C, NameFlags, PieceIndex); - } - - late final _clang_getCursorReferenceNameRangePtr = - _lookup< - ffi.NativeFunction< - CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) - > - >('clang_getCursorReferenceNameRange'); - late final _clang_getCursorReferenceNameRange = - _clang_getCursorReferenceNameRangePtr - .asFunction(); - - /// For a cursor that is a reference, retrieve a cursor representing the - /// entity that it references. - CXCursor clang_getCursorReferenced(CXCursor arg0) { - return _clang_getCursorReferenced(arg0); - } - - late final _clang_getCursorReferencedPtr = - _lookup>( - 'clang_getCursorReferenced', - ); - late final _clang_getCursorReferenced = _clang_getCursorReferencedPtr - .asFunction(); - - /// Retrieve the return type associated with a given cursor. - CXType clang_getCursorResultType(CXCursor C) { - return _clang_getCursorResultType(C); - } - - late final _clang_getCursorResultTypePtr = - _lookup>( - 'clang_getCursorResultType', - ); - late final _clang_getCursorResultType = _clang_getCursorResultTypePtr - .asFunction(); - - /// Determine the semantic parent of the given cursor. - CXCursor clang_getCursorSemanticParent(CXCursor cursor) { - return _clang_getCursorSemanticParent(cursor); - } - - late final _clang_getCursorSemanticParentPtr = - _lookup>( - 'clang_getCursorSemanticParent', - ); - late final _clang_getCursorSemanticParent = _clang_getCursorSemanticParentPtr - .asFunction(); - - /// Retrieve a name for the entity referenced by this cursor. - CXString clang_getCursorSpelling(CXCursor arg0) { - return _clang_getCursorSpelling(arg0); - } - - late final _clang_getCursorSpellingPtr = - _lookup>( - 'clang_getCursorSpelling', - ); - late final _clang_getCursorSpelling = _clang_getCursorSpellingPtr - .asFunction(); - - /// Determine the "thread-local storage (TLS) kind" of the declaration - /// referred to by a cursor. - CXTLSKind clang_getCursorTLSKind(CXCursor cursor) { - return CXTLSKind.fromValue(_clang_getCursorTLSKind(cursor)); - } - - late final _clang_getCursorTLSKindPtr = - _lookup>( - 'clang_getCursorTLSKind', - ); - late final _clang_getCursorTLSKind = _clang_getCursorTLSKindPtr - .asFunction(); - - /// Retrieve the type of a CXCursor (if any). - CXType clang_getCursorType(CXCursor C) { - return _clang_getCursorType(C); - } - - late final _clang_getCursorTypePtr = - _lookup>( - 'clang_getCursorType', - ); - late final _clang_getCursorType = _clang_getCursorTypePtr - .asFunction(); - - /// Retrieve a Unified Symbol Resolution (USR) for the entity referenced by - /// the given cursor. - CXString clang_getCursorUSR(CXCursor arg0) { - return _clang_getCursorUSR(arg0); - } - - late final _clang_getCursorUSRPtr = - _lookup>( - 'clang_getCursorUSR', - ); - late final _clang_getCursorUSR = _clang_getCursorUSRPtr - .asFunction(); - - /// Describe the visibility of the entity referred to by a cursor. - CXVisibilityKind clang_getCursorVisibility(CXCursor cursor) { - return CXVisibilityKind.fromValue(_clang_getCursorVisibility(cursor)); - } - - late final _clang_getCursorVisibilityPtr = - _lookup>( - 'clang_getCursorVisibility', - ); - late final _clang_getCursorVisibility = _clang_getCursorVisibilityPtr - .asFunction(); - - /// Returns the Objective-C type encoding for the specified declaration. - CXString clang_getDeclObjCTypeEncoding(CXCursor C) { - return _clang_getDeclObjCTypeEncoding(C); - } - - late final _clang_getDeclObjCTypeEncodingPtr = - _lookup>( - 'clang_getDeclObjCTypeEncoding', - ); - late final _clang_getDeclObjCTypeEncoding = _clang_getDeclObjCTypeEncodingPtr - .asFunction(); - - void clang_getDefinitionSpellingAndExtent( - CXCursor arg0, - ffi.Pointer> startBuf, - ffi.Pointer> endBuf, - ffi.Pointer startLine, - ffi.Pointer startColumn, - ffi.Pointer endLine, - ffi.Pointer endColumn, - ) { - return _clang_getDefinitionSpellingAndExtent( - arg0, - startBuf, - endBuf, - startLine, - startColumn, - endLine, - endColumn, - ); - } - - late final _clang_getDefinitionSpellingAndExtentPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXCursor, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_getDefinitionSpellingAndExtent'); - late final _clang_getDefinitionSpellingAndExtent = - _clang_getDefinitionSpellingAndExtentPtr - .asFunction< - void Function( - CXCursor, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Retrieve a diagnostic associated with the given translation unit. - CXDiagnostic clang_getDiagnostic(CXTranslationUnit Unit, int Index) { - return _clang_getDiagnostic(Unit, Index); - } - - late final _clang_getDiagnosticPtr = - _lookup< - ffi.NativeFunction< - CXDiagnostic Function(CXTranslationUnit, ffi.UnsignedInt) - > - >('clang_getDiagnostic'); - late final _clang_getDiagnostic = _clang_getDiagnosticPtr - .asFunction(); - - /// Retrieve the category number for this diagnostic. - int clang_getDiagnosticCategory(CXDiagnostic arg0) { - return _clang_getDiagnosticCategory(arg0); - } - - late final _clang_getDiagnosticCategoryPtr = - _lookup>( - 'clang_getDiagnosticCategory', - ); - late final _clang_getDiagnosticCategory = _clang_getDiagnosticCategoryPtr - .asFunction(); - - /// Retrieve the name of a particular diagnostic category. This is now - /// deprecated. Use clang_getDiagnosticCategoryText() instead. - @Deprecated('Deprecated') - CXString clang_getDiagnosticCategoryName(int Category) { - return _clang_getDiagnosticCategoryName(Category); - } - - late final _clang_getDiagnosticCategoryNamePtr = - _lookup>( - 'clang_getDiagnosticCategoryName', - ); - late final _clang_getDiagnosticCategoryName = - _clang_getDiagnosticCategoryNamePtr.asFunction(); - - /// Retrieve the diagnostic category text for a given diagnostic. - CXString clang_getDiagnosticCategoryText(CXDiagnostic arg0) { - return _clang_getDiagnosticCategoryText(arg0); - } - - late final _clang_getDiagnosticCategoryTextPtr = - _lookup>( - 'clang_getDiagnosticCategoryText', - ); - late final _clang_getDiagnosticCategoryText = - _clang_getDiagnosticCategoryTextPtr - .asFunction(); - - /// Retrieve the replacement information for a given fix-it. - CXString clang_getDiagnosticFixIt( - CXDiagnostic Diagnostic, - int FixIt, - ffi.Pointer ReplacementRange, - ) { - return _clang_getDiagnosticFixIt(Diagnostic, FixIt, ReplacementRange); - } - - late final _clang_getDiagnosticFixItPtr = - _lookup< - ffi.NativeFunction< - CXString Function( - CXDiagnostic, - ffi.UnsignedInt, - ffi.Pointer, - ) - > - >('clang_getDiagnosticFixIt'); - late final _clang_getDiagnosticFixIt = _clang_getDiagnosticFixItPtr - .asFunction< - CXString Function(CXDiagnostic, int, ffi.Pointer) - >(); - - /// Retrieve a diagnostic associated with the given CXDiagnosticSet. - CXDiagnostic clang_getDiagnosticInSet(CXDiagnosticSet Diags, int Index) { - return _clang_getDiagnosticInSet(Diags, Index); - } - - late final _clang_getDiagnosticInSetPtr = - _lookup< - ffi.NativeFunction< - CXDiagnostic Function(CXDiagnosticSet, ffi.UnsignedInt) - > - >('clang_getDiagnosticInSet'); - late final _clang_getDiagnosticInSet = _clang_getDiagnosticInSetPtr - .asFunction(); - - /// Retrieve the source location of the given diagnostic. - CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic arg0) { - return _clang_getDiagnosticLocation(arg0); - } - - late final _clang_getDiagnosticLocationPtr = - _lookup>( - 'clang_getDiagnosticLocation', - ); - late final _clang_getDiagnosticLocation = _clang_getDiagnosticLocationPtr - .asFunction(); - - /// Determine the number of fix-it hints associated with the given diagnostic. - int clang_getDiagnosticNumFixIts(CXDiagnostic Diagnostic) { - return _clang_getDiagnosticNumFixIts(Diagnostic); - } - - late final _clang_getDiagnosticNumFixItsPtr = - _lookup>( - 'clang_getDiagnosticNumFixIts', - ); - late final _clang_getDiagnosticNumFixIts = _clang_getDiagnosticNumFixItsPtr - .asFunction(); - - /// Determine the number of source ranges associated with the given - /// diagnostic. - int clang_getDiagnosticNumRanges(CXDiagnostic arg0) { - return _clang_getDiagnosticNumRanges(arg0); - } - - late final _clang_getDiagnosticNumRangesPtr = - _lookup>( - 'clang_getDiagnosticNumRanges', - ); - late final _clang_getDiagnosticNumRanges = _clang_getDiagnosticNumRangesPtr - .asFunction(); - - /// Retrieve the name of the command-line option that enabled this diagnostic. - CXString clang_getDiagnosticOption( - CXDiagnostic Diag, - ffi.Pointer Disable, - ) { - return _clang_getDiagnosticOption(Diag, Disable); - } - - late final _clang_getDiagnosticOptionPtr = - _lookup< - ffi.NativeFunction< - CXString Function(CXDiagnostic, ffi.Pointer) - > - >('clang_getDiagnosticOption'); - late final _clang_getDiagnosticOption = _clang_getDiagnosticOptionPtr - .asFunction)>(); - - /// Retrieve a source range associated with the diagnostic. - CXSourceRange clang_getDiagnosticRange(CXDiagnostic Diagnostic, int Range) { - return _clang_getDiagnosticRange(Diagnostic, Range); - } - - late final _clang_getDiagnosticRangePtr = - _lookup< - ffi.NativeFunction< - CXSourceRange Function(CXDiagnostic, ffi.UnsignedInt) - > - >('clang_getDiagnosticRange'); - late final _clang_getDiagnosticRange = _clang_getDiagnosticRangePtr - .asFunction(); - - /// Retrieve the complete set of diagnostics associated with a translation - /// unit. - CXDiagnosticSet clang_getDiagnosticSetFromTU(CXTranslationUnit Unit) { - return _clang_getDiagnosticSetFromTU(Unit); - } - - late final _clang_getDiagnosticSetFromTUPtr = - _lookup>( - 'clang_getDiagnosticSetFromTU', - ); - late final _clang_getDiagnosticSetFromTU = _clang_getDiagnosticSetFromTUPtr - .asFunction(); - - /// Determine the severity of the given diagnostic. - CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic arg0) { - return CXDiagnosticSeverity.fromValue(_clang_getDiagnosticSeverity(arg0)); - } - - late final _clang_getDiagnosticSeverityPtr = - _lookup>( - 'clang_getDiagnosticSeverity', - ); - late final _clang_getDiagnosticSeverity = _clang_getDiagnosticSeverityPtr - .asFunction(); - - /// Retrieve the text of the given diagnostic. - CXString clang_getDiagnosticSpelling(CXDiagnostic arg0) { - return _clang_getDiagnosticSpelling(arg0); - } - - late final _clang_getDiagnosticSpellingPtr = - _lookup>( - 'clang_getDiagnosticSpelling', - ); - late final _clang_getDiagnosticSpelling = _clang_getDiagnosticSpellingPtr - .asFunction(); - - /// Return the element type of an array, complex, or vector type. - CXType clang_getElementType(CXType T) { - return _clang_getElementType(T); - } - - late final _clang_getElementTypePtr = - _lookup>( - 'clang_getElementType', - ); - late final _clang_getElementType = _clang_getElementTypePtr - .asFunction(); - - /// Retrieve the integer value of an enum constant declaration as an unsigned - /// long long. - int clang_getEnumConstantDeclUnsignedValue(CXCursor C) { - return _clang_getEnumConstantDeclUnsignedValue(C); - } - - late final _clang_getEnumConstantDeclUnsignedValuePtr = - _lookup>( - 'clang_getEnumConstantDeclUnsignedValue', - ); - late final _clang_getEnumConstantDeclUnsignedValue = - _clang_getEnumConstantDeclUnsignedValuePtr - .asFunction(); - - /// Retrieve the integer value of an enum constant declaration as a signed - /// long long. - int clang_getEnumConstantDeclValue(CXCursor C) { - return _clang_getEnumConstantDeclValue(C); - } - - late final _clang_getEnumConstantDeclValuePtr = - _lookup>( - 'clang_getEnumConstantDeclValue', - ); - late final _clang_getEnumConstantDeclValue = - _clang_getEnumConstantDeclValuePtr.asFunction(); - - /// Retrieve the integer type of an enum declaration. - CXType clang_getEnumDeclIntegerType(CXCursor C) { - return _clang_getEnumDeclIntegerType(C); - } - - late final _clang_getEnumDeclIntegerTypePtr = - _lookup>( - 'clang_getEnumDeclIntegerType', - ); - late final _clang_getEnumDeclIntegerType = _clang_getEnumDeclIntegerTypePtr - .asFunction(); - - /// Retrieve the exception specification type associated with a function type. - /// This is a value of type CXCursor_ExceptionSpecificationKind. - int clang_getExceptionSpecificationType(CXType T) { - return _clang_getExceptionSpecificationType(T); - } - - late final _clang_getExceptionSpecificationTypePtr = - _lookup>( - 'clang_getExceptionSpecificationType', - ); - late final _clang_getExceptionSpecificationType = - _clang_getExceptionSpecificationTypePtr - .asFunction(); - - /// Retrieve the file, line, column, and offset represented by the given - /// source location. - void clang_getExpansionLocation( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) { - return _clang_getExpansionLocation(location, file, line, column, offset); - } - - late final _clang_getExpansionLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_getExpansionLocation'); - late final _clang_getExpansionLocation = _clang_getExpansionLocationPtr - .asFunction< - void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Retrieve the bit width of a bit field declaration as an integer. - int clang_getFieldDeclBitWidth(CXCursor C) { - return _clang_getFieldDeclBitWidth(C); - } - - late final _clang_getFieldDeclBitWidthPtr = - _lookup>( - 'clang_getFieldDeclBitWidth', - ); - late final _clang_getFieldDeclBitWidth = _clang_getFieldDeclBitWidthPtr - .asFunction(); - - /// Retrieve a file handle within the given translation unit. - CXFile clang_getFile(CXTranslationUnit tu, ffi.Pointer file_name) { - return _clang_getFile(tu, file_name); - } - - late final _clang_getFilePtr = - _lookup< - ffi.NativeFunction< - CXFile Function(CXTranslationUnit, ffi.Pointer) - > - >('clang_getFile'); - late final _clang_getFile = _clang_getFilePtr - .asFunction)>(); - - /// Retrieve the buffer associated with the given file. - ffi.Pointer clang_getFileContents( - CXTranslationUnit tu, - CXFile file, - ffi.Pointer size, - ) { - return _clang_getFileContents(tu, file, size); - } - - late final _clang_getFileContentsPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CXTranslationUnit, - CXFile, - ffi.Pointer, - ) - > - >('clang_getFileContents'); - late final _clang_getFileContents = _clang_getFileContentsPtr - .asFunction< - ffi.Pointer Function( - CXTranslationUnit, - CXFile, - ffi.Pointer, - ) - >(); - - /// Retrieve the file, line, column, and offset represented by the given - /// source location. - void clang_getFileLocation( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) { - return _clang_getFileLocation(location, file, line, column, offset); - } - - late final _clang_getFileLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_getFileLocation'); - late final _clang_getFileLocation = _clang_getFileLocationPtr - .asFunction< - void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Retrieve the complete file and path name of the given file. - CXString clang_getFileName(CXFile SFile) { - return _clang_getFileName(SFile); - } - - late final _clang_getFileNamePtr = - _lookup>( - 'clang_getFileName', - ); - late final _clang_getFileName = _clang_getFileNamePtr - .asFunction(); - - /// Retrieve the last modification time of the given file. - int clang_getFileTime(CXFile SFile) { - return _clang_getFileTime(SFile); - } - - late final _clang_getFileTimePtr = - _lookup>( - 'clang_getFileTime', - ); - late final _clang_getFileTime = _clang_getFileTimePtr - .asFunction(); - - /// Retrieve the unique ID for the given file. - int clang_getFileUniqueID(CXFile file, ffi.Pointer outID) { - return _clang_getFileUniqueID(file, outID); - } - - late final _clang_getFileUniqueIDPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(CXFile, ffi.Pointer) - > - >('clang_getFileUniqueID'); - late final _clang_getFileUniqueID = _clang_getFileUniqueIDPtr - .asFunction)>(); - - /// Retrieve the calling convention associated with a function type. - CXCallingConv clang_getFunctionTypeCallingConv(CXType T) { - return CXCallingConv.fromValue(_clang_getFunctionTypeCallingConv(T)); - } - - late final _clang_getFunctionTypeCallingConvPtr = - _lookup>( - 'clang_getFunctionTypeCallingConv', - ); - late final _clang_getFunctionTypeCallingConv = - _clang_getFunctionTypeCallingConvPtr.asFunction(); - - /// For cursors representing an iboutletcollection attribute, this function - /// returns the collection element type. - CXType clang_getIBOutletCollectionType(CXCursor arg0) { - return _clang_getIBOutletCollectionType(arg0); - } - - late final _clang_getIBOutletCollectionTypePtr = - _lookup>( - 'clang_getIBOutletCollectionType', - ); - late final _clang_getIBOutletCollectionType = - _clang_getIBOutletCollectionTypePtr - .asFunction(); - - /// Retrieve the file that is included by the given inclusion directive - /// cursor. - CXFile clang_getIncludedFile(CXCursor cursor) { - return _clang_getIncludedFile(cursor); - } - - late final _clang_getIncludedFilePtr = - _lookup>( - 'clang_getIncludedFile', - ); - late final _clang_getIncludedFile = _clang_getIncludedFilePtr - .asFunction(); - - /// Visit the set of preprocessor inclusions in a translation unit. The - /// visitor function is called with the provided data for every included file. - /// This does not include headers included by the PCH file (unless one is - /// inspecting the inclusions in the PCH file itself). - void clang_getInclusions( - CXTranslationUnit tu, - CXInclusionVisitor visitor, - CXClientData client_data, - ) { - return _clang_getInclusions(tu, visitor, client_data); - } - - late final _clang_getInclusionsPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(CXTranslationUnit, CXInclusionVisitor, CXClientData) - > - >('clang_getInclusions'); - late final _clang_getInclusions = _clang_getInclusionsPtr - .asFunction< - void Function(CXTranslationUnit, CXInclusionVisitor, CXClientData) - >(); - - /// Legacy API to retrieve the file, line, column, and offset represented by - /// the given source location. - void clang_getInstantiationLocation( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) { - return _clang_getInstantiationLocation( - location, - file, - line, - column, - offset, - ); - } - - late final _clang_getInstantiationLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_getInstantiationLocation'); - late final _clang_getInstantiationLocation = - _clang_getInstantiationLocationPtr - .asFunction< - void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Retrieves the source location associated with a given file/line/column in - /// a particular translation unit. - CXSourceLocation clang_getLocation( - CXTranslationUnit tu, - CXFile file, - int line, - int column, - ) { - return _clang_getLocation(tu, file, line, column); - } - - late final _clang_getLocationPtr = - _lookup< - ffi.NativeFunction< - CXSourceLocation Function( - CXTranslationUnit, - CXFile, - ffi.UnsignedInt, - ffi.UnsignedInt, - ) - > - >('clang_getLocation'); - late final _clang_getLocation = _clang_getLocationPtr - .asFunction< - CXSourceLocation Function(CXTranslationUnit, CXFile, int, int) - >(); - - /// Retrieves the source location associated with a given character offset in - /// a particular translation unit. - CXSourceLocation clang_getLocationForOffset( - CXTranslationUnit tu, - CXFile file, - int offset, - ) { - return _clang_getLocationForOffset(tu, file, offset); - } - - late final _clang_getLocationForOffsetPtr = - _lookup< - ffi.NativeFunction< - CXSourceLocation Function(CXTranslationUnit, CXFile, ffi.UnsignedInt) - > - >('clang_getLocationForOffset'); - late final _clang_getLocationForOffset = _clang_getLocationForOffsetPtr - .asFunction(); - - /// Given a CXFile header file, return the module that contains it, if one - /// exists. - CXModule clang_getModuleForFile(CXTranslationUnit arg0, CXFile arg1) { - return _clang_getModuleForFile(arg0, arg1); - } - - late final _clang_getModuleForFilePtr = - _lookup>( - 'clang_getModuleForFile', - ); - late final _clang_getModuleForFile = _clang_getModuleForFilePtr - .asFunction(); - - /// Retrieve the NULL cursor, which represents no entity. - CXCursor clang_getNullCursor() { - return _clang_getNullCursor(); - } - - late final _clang_getNullCursorPtr = - _lookup>('clang_getNullCursor'); - late final _clang_getNullCursor = _clang_getNullCursorPtr - .asFunction(); - - /// Retrieve a NULL (invalid) source location. - CXSourceLocation clang_getNullLocation() { - return _clang_getNullLocation(); - } - - late final _clang_getNullLocationPtr = - _lookup>( - 'clang_getNullLocation', - ); - late final _clang_getNullLocation = _clang_getNullLocationPtr - .asFunction(); - - /// Retrieve a NULL (invalid) source range. - CXSourceRange clang_getNullRange() { - return _clang_getNullRange(); - } - - late final _clang_getNullRangePtr = - _lookup>( - 'clang_getNullRange', - ); - late final _clang_getNullRange = _clang_getNullRangePtr - .asFunction(); - - /// Retrieve the number of non-variadic parameters associated with a function - /// type. - int clang_getNumArgTypes(CXType T) { - return _clang_getNumArgTypes(T); - } - - late final _clang_getNumArgTypesPtr = - _lookup>( - 'clang_getNumArgTypes', - ); - late final _clang_getNumArgTypes = _clang_getNumArgTypesPtr - .asFunction(); - - /// Retrieve the number of chunks in the given code-completion string. - int clang_getNumCompletionChunks(CXCompletionString completion_string) { - return _clang_getNumCompletionChunks(completion_string); - } - - late final _clang_getNumCompletionChunksPtr = - _lookup>( - 'clang_getNumCompletionChunks', - ); - late final _clang_getNumCompletionChunks = _clang_getNumCompletionChunksPtr - .asFunction(); - - /// Determine the number of diagnostics produced for the given translation - /// unit. - int clang_getNumDiagnostics(CXTranslationUnit Unit) { - return _clang_getNumDiagnostics(Unit); - } - - late final _clang_getNumDiagnosticsPtr = - _lookup>( - 'clang_getNumDiagnostics', - ); - late final _clang_getNumDiagnostics = _clang_getNumDiagnosticsPtr - .asFunction(); - - /// Determine the number of diagnostics in a CXDiagnosticSet. - int clang_getNumDiagnosticsInSet(CXDiagnosticSet Diags) { - return _clang_getNumDiagnosticsInSet(Diags); - } - - late final _clang_getNumDiagnosticsInSetPtr = - _lookup>( - 'clang_getNumDiagnosticsInSet', - ); - late final _clang_getNumDiagnosticsInSet = _clang_getNumDiagnosticsInSetPtr - .asFunction(); - - /// Return the number of elements of an array or vector type. - int clang_getNumElements(CXType T) { - return _clang_getNumElements(T); - } - - late final _clang_getNumElementsPtr = - _lookup>( - 'clang_getNumElements', - ); - late final _clang_getNumElements = _clang_getNumElementsPtr - .asFunction(); - - /// Determine the number of overloaded declarations referenced by a - /// CXCursor_OverloadedDeclRef cursor. - int clang_getNumOverloadedDecls(CXCursor cursor) { - return _clang_getNumOverloadedDecls(cursor); - } - - late final _clang_getNumOverloadedDeclsPtr = - _lookup>( - 'clang_getNumOverloadedDecls', - ); - late final _clang_getNumOverloadedDecls = _clang_getNumOverloadedDeclsPtr - .asFunction(); - - /// Retrieve a cursor for one of the overloaded declarations referenced by a - /// CXCursor_OverloadedDeclRef cursor. - CXCursor clang_getOverloadedDecl(CXCursor cursor, int index) { - return _clang_getOverloadedDecl(cursor, index); - } - - late final _clang_getOverloadedDeclPtr = - _lookup>( - 'clang_getOverloadedDecl', - ); - late final _clang_getOverloadedDecl = _clang_getOverloadedDeclPtr - .asFunction(); - - /// Determine the set of methods that are overridden by the given method. - void clang_getOverriddenCursors( - CXCursor cursor, - ffi.Pointer> overridden, - ffi.Pointer num_overridden, - ) { - return _clang_getOverriddenCursors(cursor, overridden, num_overridden); - } - - late final _clang_getOverriddenCursorsPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXCursor, - ffi.Pointer>, - ffi.Pointer, - ) - > - >('clang_getOverriddenCursors'); - late final _clang_getOverriddenCursors = _clang_getOverriddenCursorsPtr - .asFunction< - void Function( - CXCursor, - ffi.Pointer>, - ffi.Pointer, - ) - >(); - - /// For pointer types, returns the type of the pointee. - CXType clang_getPointeeType(CXType T) { - return _clang_getPointeeType(T); - } - - late final _clang_getPointeeTypePtr = - _lookup>( - 'clang_getPointeeType', - ); - late final _clang_getPointeeType = _clang_getPointeeTypePtr - .asFunction(); - - /// Retrieve the file, line and column represented by the given source - /// location, as specified in a # line directive. - void clang_getPresumedLocation( - CXSourceLocation location, - ffi.Pointer filename, - ffi.Pointer line, - ffi.Pointer column, - ) { - return _clang_getPresumedLocation(location, filename, line, column); - } - - late final _clang_getPresumedLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_getPresumedLocation'); - late final _clang_getPresumedLocation = _clang_getPresumedLocationPtr - .asFunction< - void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Retrieve a source range given the beginning and ending source locations. - CXSourceRange clang_getRange(CXSourceLocation begin, CXSourceLocation end) { - return _clang_getRange(begin, end); - } - - late final _clang_getRangePtr = - _lookup< - ffi.NativeFunction< - CXSourceRange Function(CXSourceLocation, CXSourceLocation) - > - >('clang_getRange'); - late final _clang_getRange = _clang_getRangePtr - .asFunction(); - - /// Retrieve a source location representing the last character within a source - /// range. - CXSourceLocation clang_getRangeEnd(CXSourceRange range) { - return _clang_getRangeEnd(range); - } - - late final _clang_getRangeEndPtr = - _lookup>( - 'clang_getRangeEnd', - ); - late final _clang_getRangeEnd = _clang_getRangeEndPtr - .asFunction(); - - /// Retrieve a source location representing the first character within a - /// source range. - CXSourceLocation clang_getRangeStart(CXSourceRange range) { - return _clang_getRangeStart(range); - } - - late final _clang_getRangeStartPtr = - _lookup>( - 'clang_getRangeStart', - ); - late final _clang_getRangeStart = _clang_getRangeStartPtr - .asFunction(); - - /// Retrieve a remapping. - CXRemapping clang_getRemappings(ffi.Pointer path) { - return _clang_getRemappings(path); - } - - late final _clang_getRemappingsPtr = - _lookup)>>( - 'clang_getRemappings', - ); - late final _clang_getRemappings = _clang_getRemappingsPtr - .asFunction)>(); - - /// Retrieve a remapping. - CXRemapping clang_getRemappingsFromFileList( - ffi.Pointer> filePaths, - int numFiles, - ) { - return _clang_getRemappingsFromFileList(filePaths, numFiles); - } - - late final _clang_getRemappingsFromFileListPtr = - _lookup< - ffi.NativeFunction< - CXRemapping Function( - ffi.Pointer>, - ffi.UnsignedInt, - ) - > - >('clang_getRemappingsFromFileList'); - late final _clang_getRemappingsFromFileList = - _clang_getRemappingsFromFileListPtr - .asFunction< - CXRemapping Function(ffi.Pointer>, int) - >(); - - /// Retrieve the return type associated with a function type. - CXType clang_getResultType(CXType T) { - return _clang_getResultType(T); - } - - late final _clang_getResultTypePtr = - _lookup>( - 'clang_getResultType', - ); - late final _clang_getResultType = _clang_getResultTypePtr - .asFunction(); - - /// Retrieve all ranges that were skipped by the preprocessor. - ffi.Pointer clang_getSkippedRanges( - CXTranslationUnit tu, - CXFile file, - ) { - return _clang_getSkippedRanges(tu, file); - } - - late final _clang_getSkippedRangesPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit, CXFile) - > - >('clang_getSkippedRanges'); - late final _clang_getSkippedRanges = _clang_getSkippedRangesPtr - .asFunction< - ffi.Pointer Function(CXTranslationUnit, CXFile) - >(); - - /// Given a cursor that may represent a specialization or instantiation of a - /// template, retrieve the cursor that represents the template that it - /// specializes or from which it was instantiated. - CXCursor clang_getSpecializedCursorTemplate(CXCursor C) { - return _clang_getSpecializedCursorTemplate(C); - } - - late final _clang_getSpecializedCursorTemplatePtr = - _lookup>( - 'clang_getSpecializedCursorTemplate', - ); - late final _clang_getSpecializedCursorTemplate = - _clang_getSpecializedCursorTemplatePtr - .asFunction(); - - /// Retrieve the file, line, column, and offset represented by the given - /// source location. - void clang_getSpellingLocation( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) { - return _clang_getSpellingLocation(location, file, line, column, offset); - } - - late final _clang_getSpellingLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_getSpellingLocation'); - late final _clang_getSpellingLocation = _clang_getSpellingLocationPtr - .asFunction< - void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Returns the human-readable null-terminated C string that represents the - /// name of the memory category. This string should never be freed. - ffi.Pointer clang_getTUResourceUsageName( - CXTUResourceUsageKind kind, - ) { - return _clang_getTUResourceUsageName(kind.value); - } - - late final _clang_getTUResourceUsageNamePtr = - _lookup< - ffi.NativeFunction Function(ffi.UnsignedInt)> - >('clang_getTUResourceUsageName'); - late final _clang_getTUResourceUsageName = _clang_getTUResourceUsageNamePtr - .asFunction Function(int)>(); - - /// Given a cursor that represents a template, determine the cursor kind of - /// the specializations would be generated by instantiating the template. - CXCursorKind clang_getTemplateCursorKind(CXCursor C) { - return CXCursorKind.fromValue(_clang_getTemplateCursorKind(C)); - } - - late final _clang_getTemplateCursorKindPtr = - _lookup>( - 'clang_getTemplateCursorKind', - ); - late final _clang_getTemplateCursorKind = _clang_getTemplateCursorKindPtr - .asFunction(); - - /// Get the raw lexical token starting with the given location. - ffi.Pointer clang_getToken( - CXTranslationUnit TU, - CXSourceLocation Location, - ) { - return _clang_getToken(TU, Location); - } - - late final _clang_getTokenPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit, CXSourceLocation) - > - >('clang_getToken'); - late final _clang_getToken = _clang_getTokenPtr - .asFunction< - ffi.Pointer Function(CXTranslationUnit, CXSourceLocation) - >(); - - /// Retrieve a source range that covers the given token. - CXSourceRange clang_getTokenExtent(CXTranslationUnit arg0, CXToken arg1) { - return _clang_getTokenExtent(arg0, arg1); - } - - late final _clang_getTokenExtentPtr = - _lookup< - ffi.NativeFunction - >('clang_getTokenExtent'); - late final _clang_getTokenExtent = _clang_getTokenExtentPtr - .asFunction(); - - /// Determine the kind of the given token. - CXTokenKind clang_getTokenKind(CXToken arg0) { - return CXTokenKind.fromValue(_clang_getTokenKind(arg0)); - } - - late final _clang_getTokenKindPtr = - _lookup>( - 'clang_getTokenKind', - ); - late final _clang_getTokenKind = _clang_getTokenKindPtr - .asFunction(); - - /// Retrieve the source location of the given token. - CXSourceLocation clang_getTokenLocation( - CXTranslationUnit arg0, - CXToken arg1, - ) { - return _clang_getTokenLocation(arg0, arg1); - } - - late final _clang_getTokenLocationPtr = - _lookup< - ffi.NativeFunction< - CXSourceLocation Function(CXTranslationUnit, CXToken) - > - >('clang_getTokenLocation'); - late final _clang_getTokenLocation = _clang_getTokenLocationPtr - .asFunction(); - - /// Determine the spelling of the given token. - CXString clang_getTokenSpelling(CXTranslationUnit arg0, CXToken arg1) { - return _clang_getTokenSpelling(arg0, arg1); - } - - late final _clang_getTokenSpellingPtr = - _lookup< - ffi.NativeFunction - >('clang_getTokenSpelling'); - late final _clang_getTokenSpelling = _clang_getTokenSpellingPtr - .asFunction(); - - /// Retrieve the cursor that represents the given translation unit. - CXCursor clang_getTranslationUnitCursor(CXTranslationUnit arg0) { - return _clang_getTranslationUnitCursor(arg0); - } - - late final _clang_getTranslationUnitCursorPtr = - _lookup>( - 'clang_getTranslationUnitCursor', - ); - late final _clang_getTranslationUnitCursor = - _clang_getTranslationUnitCursorPtr - .asFunction(); - - /// Get the original translation unit source file name. - CXString clang_getTranslationUnitSpelling(CXTranslationUnit CTUnit) { - return _clang_getTranslationUnitSpelling(CTUnit); - } - - late final _clang_getTranslationUnitSpellingPtr = - _lookup>( - 'clang_getTranslationUnitSpelling', - ); - late final _clang_getTranslationUnitSpelling = - _clang_getTranslationUnitSpellingPtr - .asFunction(); - - /// Get target information for this translation unit. - CXTargetInfo clang_getTranslationUnitTargetInfo(CXTranslationUnit CTUnit) { - return _clang_getTranslationUnitTargetInfo(CTUnit); - } - - late final _clang_getTranslationUnitTargetInfoPtr = - _lookup>( - 'clang_getTranslationUnitTargetInfo', - ); - late final _clang_getTranslationUnitTargetInfo = - _clang_getTranslationUnitTargetInfoPtr - .asFunction(); - - /// Return the cursor for the declaration of the given type. - CXCursor clang_getTypeDeclaration(CXType T) { - return _clang_getTypeDeclaration(T); - } - - late final _clang_getTypeDeclarationPtr = - _lookup>( - 'clang_getTypeDeclaration', - ); - late final _clang_getTypeDeclaration = _clang_getTypeDeclarationPtr - .asFunction(); - - /// Retrieve the spelling of a given CXTypeKind. - CXString clang_getTypeKindSpelling(CXTypeKind K) { - return _clang_getTypeKindSpelling(K.value); - } - - late final _clang_getTypeKindSpellingPtr = - _lookup>( - 'clang_getTypeKindSpelling', - ); - late final _clang_getTypeKindSpelling = _clang_getTypeKindSpellingPtr - .asFunction(); - - /// Pretty-print the underlying type using the rules of the language of the - /// translation unit from which it came. - CXString clang_getTypeSpelling(CXType CT) { - return _clang_getTypeSpelling(CT); - } - - late final _clang_getTypeSpellingPtr = - _lookup>( - 'clang_getTypeSpelling', - ); - late final _clang_getTypeSpelling = _clang_getTypeSpellingPtr - .asFunction(); - - /// Retrieve the underlying type of a typedef declaration. - CXType clang_getTypedefDeclUnderlyingType(CXCursor C) { - return _clang_getTypedefDeclUnderlyingType(C); - } - - late final _clang_getTypedefDeclUnderlyingTypePtr = - _lookup>( - 'clang_getTypedefDeclUnderlyingType', - ); - late final _clang_getTypedefDeclUnderlyingType = - _clang_getTypedefDeclUnderlyingTypePtr - .asFunction(); - - /// Returns the typedef name of the given type. - CXString clang_getTypedefName(CXType CT) { - return _clang_getTypedefName(CT); - } - - late final _clang_getTypedefNamePtr = - _lookup>( - 'clang_getTypedefName', - ); - late final _clang_getTypedefName = _clang_getTypedefNamePtr - .asFunction(); - - /// Compute a hash value for the given cursor. - int clang_hashCursor(CXCursor arg0) { - return _clang_hashCursor(arg0); - } - - late final _clang_hashCursorPtr = - _lookup>( - 'clang_hashCursor', - ); - late final _clang_hashCursor = _clang_hashCursorPtr - .asFunction(); - - /// Retrieve the CXSourceLocation represented by the given CXIdxLoc. - CXSourceLocation clang_indexLoc_getCXSourceLocation(CXIdxLoc loc) { - return _clang_indexLoc_getCXSourceLocation(loc); - } - - late final _clang_indexLoc_getCXSourceLocationPtr = - _lookup>( - 'clang_indexLoc_getCXSourceLocation', - ); - late final _clang_indexLoc_getCXSourceLocation = - _clang_indexLoc_getCXSourceLocationPtr - .asFunction(); - - /// Retrieve the CXIdxFile, file, line, column, and offset represented by the - /// given CXIdxLoc. - void clang_indexLoc_getFileLocation( - CXIdxLoc loc, - ffi.Pointer indexFile, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) { - return _clang_indexLoc_getFileLocation( - loc, - indexFile, - file, - line, - column, - offset, - ); - } - - late final _clang_indexLoc_getFileLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXIdxLoc, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_indexLoc_getFileLocation'); - late final _clang_indexLoc_getFileLocation = - _clang_indexLoc_getFileLocationPtr - .asFunction< - void Function( - CXIdxLoc, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Index the given source file and the translation unit corresponding to that - /// file via callbacks implemented through #IndexerCallbacks. - int clang_indexSourceFile( - CXIndexAction arg0, - CXClientData client_data, - ffi.Pointer index_callbacks, - int index_callbacks_size, - int index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - ffi.Pointer out_TU, - int TU_options, - ) { - return _clang_indexSourceFile( - arg0, - client_data, - index_callbacks, - index_callbacks_size, - index_options, - source_filename, - command_line_args, - num_command_line_args, - unsaved_files, - num_unsaved_files, - out_TU, - TU_options, - ); - } - - late final _clang_indexSourceFilePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXIndexAction, - CXClientData, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >('clang_indexSourceFile'); - late final _clang_indexSourceFile = _clang_indexSourceFilePtr - .asFunction< - int Function( - CXIndexAction, - CXClientData, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - int, - ffi.Pointer, - int, - ) - >(); - - /// Same as clang_indexSourceFile but requires a full command line for - /// command_line_args including argv[0]. This is useful if the standard - /// library paths are relative to the binary. - int clang_indexSourceFileFullArgv( - CXIndexAction arg0, - CXClientData client_data, - ffi.Pointer index_callbacks, - int index_callbacks_size, - int index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - ffi.Pointer out_TU, - int TU_options, - ) { - return _clang_indexSourceFileFullArgv( - arg0, - client_data, - index_callbacks, - index_callbacks_size, - index_options, - source_filename, - command_line_args, - num_command_line_args, - unsaved_files, - num_unsaved_files, - out_TU, - TU_options, - ); - } - - late final _clang_indexSourceFileFullArgvPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXIndexAction, - CXClientData, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >('clang_indexSourceFileFullArgv'); - late final _clang_indexSourceFileFullArgv = _clang_indexSourceFileFullArgvPtr - .asFunction< - int Function( - CXIndexAction, - CXClientData, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - int, - ffi.Pointer, - int, - ) - >(); - - /// Index the given translation unit via callbacks implemented through - /// #IndexerCallbacks. - int clang_indexTranslationUnit( - CXIndexAction arg0, - CXClientData client_data, - ffi.Pointer index_callbacks, - int index_callbacks_size, - int index_options, - CXTranslationUnit arg5, - ) { - return _clang_indexTranslationUnit( - arg0, - client_data, - index_callbacks, - index_callbacks_size, - index_options, - arg5, - ); - } - - late final _clang_indexTranslationUnitPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXIndexAction, - CXClientData, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - CXTranslationUnit, - ) - > - >('clang_indexTranslationUnit'); - late final _clang_indexTranslationUnit = _clang_indexTranslationUnitPtr - .asFunction< - int Function( - CXIndexAction, - CXClientData, - ffi.Pointer, - int, - int, - CXTranslationUnit, - ) - >(); - - ffi.Pointer clang_index_getCXXClassDeclInfo( - ffi.Pointer arg0, - ) { - return _clang_index_getCXXClassDeclInfo(arg0); - } - - late final _clang_index_getCXXClassDeclInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getCXXClassDeclInfo'); - late final _clang_index_getCXXClassDeclInfo = - _clang_index_getCXXClassDeclInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); - - /// For retrieving a custom CXIdxClientContainer attached to a container. - CXIdxClientContainer clang_index_getClientContainer( - ffi.Pointer arg0, - ) { - return _clang_index_getClientContainer(arg0); - } - - late final _clang_index_getClientContainerPtr = - _lookup< - ffi.NativeFunction< - CXIdxClientContainer Function(ffi.Pointer) - > - >('clang_index_getClientContainer'); - late final _clang_index_getClientContainer = - _clang_index_getClientContainerPtr - .asFunction< - CXIdxClientContainer Function(ffi.Pointer) - >(); - - /// For retrieving a custom CXIdxClientEntity attached to an entity. - CXIdxClientEntity clang_index_getClientEntity( - ffi.Pointer arg0, - ) { - return _clang_index_getClientEntity(arg0); - } - - late final _clang_index_getClientEntityPtr = - _lookup< - ffi.NativeFunction< - CXIdxClientEntity Function(ffi.Pointer) - > - >('clang_index_getClientEntity'); - late final _clang_index_getClientEntity = _clang_index_getClientEntityPtr - .asFunction)>(); - - ffi.Pointer - clang_index_getIBOutletCollectionAttrInfo(ffi.Pointer arg0) { - return _clang_index_getIBOutletCollectionAttrInfo(arg0); - } - - late final _clang_index_getIBOutletCollectionAttrInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getIBOutletCollectionAttrInfo'); - late final _clang_index_getIBOutletCollectionAttrInfo = - _clang_index_getIBOutletCollectionAttrInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); - - ffi.Pointer clang_index_getObjCCategoryDeclInfo( - ffi.Pointer arg0, - ) { - return _clang_index_getObjCCategoryDeclInfo(arg0); - } - - late final _clang_index_getObjCCategoryDeclInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getObjCCategoryDeclInfo'); - late final _clang_index_getObjCCategoryDeclInfo = - _clang_index_getObjCCategoryDeclInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); - - ffi.Pointer clang_index_getObjCContainerDeclInfo( - ffi.Pointer arg0, - ) { - return _clang_index_getObjCContainerDeclInfo(arg0); - } - - late final _clang_index_getObjCContainerDeclInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getObjCContainerDeclInfo'); - late final _clang_index_getObjCContainerDeclInfo = - _clang_index_getObjCContainerDeclInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); - - ffi.Pointer clang_index_getObjCInterfaceDeclInfo( - ffi.Pointer arg0, - ) { - return _clang_index_getObjCInterfaceDeclInfo(arg0); - } - - late final _clang_index_getObjCInterfaceDeclInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getObjCInterfaceDeclInfo'); - late final _clang_index_getObjCInterfaceDeclInfo = - _clang_index_getObjCInterfaceDeclInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); - - ffi.Pointer clang_index_getObjCPropertyDeclInfo( - ffi.Pointer arg0, - ) { - return _clang_index_getObjCPropertyDeclInfo(arg0); - } - - late final _clang_index_getObjCPropertyDeclInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getObjCPropertyDeclInfo'); - late final _clang_index_getObjCPropertyDeclInfo = - _clang_index_getObjCPropertyDeclInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); - - ffi.Pointer - clang_index_getObjCProtocolRefListInfo(ffi.Pointer arg0) { - return _clang_index_getObjCProtocolRefListInfo(arg0); - } - - late final _clang_index_getObjCProtocolRefListInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getObjCProtocolRefListInfo'); - late final _clang_index_getObjCProtocolRefListInfo = - _clang_index_getObjCProtocolRefListInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); - - int clang_index_isEntityObjCContainerKind(CXIdxEntityKind arg0) { - return _clang_index_isEntityObjCContainerKind(arg0.value); - } - - late final _clang_index_isEntityObjCContainerKindPtr = - _lookup>( - 'clang_index_isEntityObjCContainerKind', - ); - late final _clang_index_isEntityObjCContainerKind = - _clang_index_isEntityObjCContainerKindPtr.asFunction(); - - /// For setting a custom CXIdxClientContainer attached to a container. - void clang_index_setClientContainer( - ffi.Pointer arg0, - CXIdxClientContainer arg1, - ) { - return _clang_index_setClientContainer(arg0, arg1); - } - - late final _clang_index_setClientContainerPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - CXIdxClientContainer, - ) - > - >('clang_index_setClientContainer'); - late final _clang_index_setClientContainer = - _clang_index_setClientContainerPtr - .asFunction< - void Function(ffi.Pointer, CXIdxClientContainer) - >(); - - /// For setting a custom CXIdxClientEntity attached to an entity. - void clang_index_setClientEntity( - ffi.Pointer arg0, - CXIdxClientEntity arg1, - ) { - return _clang_index_setClientEntity(arg0, arg1); - } - - late final _clang_index_setClientEntityPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, CXIdxClientEntity) - > - >('clang_index_setClientEntity'); - late final _clang_index_setClientEntity = _clang_index_setClientEntityPtr - .asFunction< - void Function(ffi.Pointer, CXIdxClientEntity) - >(); - - /// Determine whether the given cursor kind represents an attribute. - int clang_isAttribute(CXCursorKind arg0) { - return _clang_isAttribute(arg0.value); - } - - late final _clang_isAttributePtr = - _lookup>( - 'clang_isAttribute', - ); - late final _clang_isAttribute = _clang_isAttributePtr - .asFunction(); - - /// Determine whether a CXType has the "const" qualifier set, without looking - /// through typedefs that may have added "const" at a different level. - int clang_isConstQualifiedType(CXType T) { - return _clang_isConstQualifiedType(T); - } - - late final _clang_isConstQualifiedTypePtr = - _lookup>( - 'clang_isConstQualifiedType', - ); - late final _clang_isConstQualifiedType = _clang_isConstQualifiedTypePtr - .asFunction(); - - /// Determine whether the declaration pointed to by this cursor is also a - /// definition of that entity. - int clang_isCursorDefinition(CXCursor arg0) { - return _clang_isCursorDefinition(arg0); - } - - late final _clang_isCursorDefinitionPtr = - _lookup>( - 'clang_isCursorDefinition', - ); - late final _clang_isCursorDefinition = _clang_isCursorDefinitionPtr - .asFunction(); - - /// Determine whether the given cursor kind represents a declaration. - int clang_isDeclaration(CXCursorKind arg0) { - return _clang_isDeclaration(arg0.value); - } - - late final _clang_isDeclarationPtr = - _lookup>( - 'clang_isDeclaration', - ); - late final _clang_isDeclaration = _clang_isDeclarationPtr - .asFunction(); - - /// Determine whether the given cursor kind represents an expression. - int clang_isExpression(CXCursorKind arg0) { - return _clang_isExpression(arg0.value); - } - - late final _clang_isExpressionPtr = - _lookup>( - 'clang_isExpression', - ); - late final _clang_isExpression = _clang_isExpressionPtr - .asFunction(); - - /// Determine whether the given header is guarded against multiple inclusions, - /// either with the conventional #ifndef/#define/#endif macro guards or with - /// #pragma once. - int clang_isFileMultipleIncludeGuarded(CXTranslationUnit tu, CXFile file) { - return _clang_isFileMultipleIncludeGuarded(tu, file); - } - - late final _clang_isFileMultipleIncludeGuardedPtr = - _lookup< - ffi.NativeFunction - >('clang_isFileMultipleIncludeGuarded'); - late final _clang_isFileMultipleIncludeGuarded = - _clang_isFileMultipleIncludeGuardedPtr - .asFunction(); - - /// Return 1 if the CXType is a variadic function type, and 0 otherwise. - int clang_isFunctionTypeVariadic(CXType T) { - return _clang_isFunctionTypeVariadic(T); - } - - late final _clang_isFunctionTypeVariadicPtr = - _lookup>( - 'clang_isFunctionTypeVariadic', - ); - late final _clang_isFunctionTypeVariadic = _clang_isFunctionTypeVariadicPtr - .asFunction(); - - /// Determine whether the given cursor kind represents an invalid cursor. - int clang_isInvalid(CXCursorKind arg0) { - return _clang_isInvalid(arg0.value); - } - - late final _clang_isInvalidPtr = - _lookup>( - 'clang_isInvalid', - ); - late final _clang_isInvalid = _clang_isInvalidPtr - .asFunction(); - - /// Determine whether the given declaration is invalid. - int clang_isInvalidDeclaration(CXCursor arg0) { - return _clang_isInvalidDeclaration(arg0); - } - - late final _clang_isInvalidDeclarationPtr = - _lookup>( - 'clang_isInvalidDeclaration', - ); - late final _clang_isInvalidDeclaration = _clang_isInvalidDeclarationPtr - .asFunction(); - - /// Return 1 if the CXType is a POD (plain old data) type, and 0 otherwise. - int clang_isPODType(CXType T) { - return _clang_isPODType(T); - } - - late final _clang_isPODTypePtr = - _lookup>( - 'clang_isPODType', - ); - late final _clang_isPODType = _clang_isPODTypePtr - .asFunction(); - - /// * Determine whether the given cursor represents a preprocessing element, - /// such as a preprocessor directive or macro instantiation. - int clang_isPreprocessing(CXCursorKind arg0) { - return _clang_isPreprocessing(arg0.value); - } - - late final _clang_isPreprocessingPtr = - _lookup>( - 'clang_isPreprocessing', - ); - late final _clang_isPreprocessing = _clang_isPreprocessingPtr - .asFunction(); - - /// Determine whether the given cursor kind represents a simple reference. - int clang_isReference(CXCursorKind arg0) { - return _clang_isReference(arg0.value); - } - - late final _clang_isReferencePtr = - _lookup>( - 'clang_isReference', - ); - late final _clang_isReference = _clang_isReferencePtr - .asFunction(); - - /// Determine whether a CXType has the "restrict" qualifier set, without - /// looking through typedefs that may have added "restrict" at a different - /// level. - int clang_isRestrictQualifiedType(CXType T) { - return _clang_isRestrictQualifiedType(T); - } - - late final _clang_isRestrictQualifiedTypePtr = - _lookup>( - 'clang_isRestrictQualifiedType', - ); - late final _clang_isRestrictQualifiedType = _clang_isRestrictQualifiedTypePtr - .asFunction(); - - /// Determine whether the given cursor kind represents a statement. - int clang_isStatement(CXCursorKind arg0) { - return _clang_isStatement(arg0.value); - } - - late final _clang_isStatementPtr = - _lookup>( - 'clang_isStatement', - ); - late final _clang_isStatement = _clang_isStatementPtr - .asFunction(); - - /// Determine whether the given cursor kind represents a translation unit. - int clang_isTranslationUnit(CXCursorKind arg0) { - return _clang_isTranslationUnit(arg0.value); - } - - late final _clang_isTranslationUnitPtr = - _lookup>( - 'clang_isTranslationUnit', - ); - late final _clang_isTranslationUnit = _clang_isTranslationUnitPtr - .asFunction(); - - /// * Determine whether the given cursor represents a currently unexposed - /// piece of the AST (e.g., CXCursor_UnexposedStmt). - int clang_isUnexposed(CXCursorKind arg0) { - return _clang_isUnexposed(arg0.value); - } - - late final _clang_isUnexposedPtr = - _lookup>( - 'clang_isUnexposed', - ); - late final _clang_isUnexposed = _clang_isUnexposedPtr - .asFunction(); - - /// Returns 1 if the base class specified by the cursor with kind - /// CX_CXXBaseSpecifier is virtual. - int clang_isVirtualBase(CXCursor arg0) { - return _clang_isVirtualBase(arg0); - } - - late final _clang_isVirtualBasePtr = - _lookup>( - 'clang_isVirtualBase', - ); - late final _clang_isVirtualBase = _clang_isVirtualBasePtr - .asFunction(); - - /// Determine whether a CXType has the "volatile" qualifier set, without - /// looking through typedefs that may have added "volatile" at a different - /// level. - int clang_isVolatileQualifiedType(CXType T) { - return _clang_isVolatileQualifiedType(T); - } - - late final _clang_isVolatileQualifiedTypePtr = - _lookup>( - 'clang_isVolatileQualifiedType', - ); - late final _clang_isVolatileQualifiedType = _clang_isVolatileQualifiedTypePtr - .asFunction(); - - /// Deserialize a set of diagnostics from a Clang diagnostics bitcode file. - CXDiagnosticSet clang_loadDiagnostics( - ffi.Pointer file, - ffi.Pointer error, - ffi.Pointer errorString, - ) { - return _clang_loadDiagnostics(file, error, errorString); - } - - late final _clang_loadDiagnosticsPtr = - _lookup< - ffi.NativeFunction< - CXDiagnosticSet Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_loadDiagnostics'); - late final _clang_loadDiagnostics = _clang_loadDiagnosticsPtr - .asFunction< - CXDiagnosticSet Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Same as clang_parseTranslationUnit2, but returns the CXTranslationUnit - /// instead of an error code. In case of an error this routine returns a NULL - /// CXTranslationUnit, without further detailed error codes. - CXTranslationUnit clang_parseTranslationUnit( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ) { - return _clang_parseTranslationUnit( - CIdx, - source_filename, - command_line_args, - num_command_line_args, - unsaved_files, - num_unsaved_files, - options, - ); - } - - late final _clang_parseTranslationUnitPtr = - _lookup< - ffi.NativeFunction< - CXTranslationUnit Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ) - > - >('clang_parseTranslationUnit'); - late final _clang_parseTranslationUnit = _clang_parseTranslationUnitPtr - .asFunction< - CXTranslationUnit Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - int, - int, - ) - >(); - - /// Parse the given source file and the translation unit corresponding to that - /// file. - CXErrorCode clang_parseTranslationUnit2( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ffi.Pointer out_TU, - ) { - return CXErrorCode.fromValue( - _clang_parseTranslationUnit2( - CIdx, - source_filename, - command_line_args, - num_command_line_args, - unsaved_files, - num_unsaved_files, - options, - out_TU, - ), - ); - } - - late final _clang_parseTranslationUnit2Ptr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ) - > - >('clang_parseTranslationUnit2'); - late final _clang_parseTranslationUnit2 = _clang_parseTranslationUnit2Ptr - .asFunction< - int Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - int, - int, - ffi.Pointer, - ) - >(); - - /// Same as clang_parseTranslationUnit2 but requires a full command line for - /// command_line_args including argv[0]. This is useful if the standard - /// library paths are relative to the binary. - CXErrorCode clang_parseTranslationUnit2FullArgv( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ffi.Pointer out_TU, - ) { - return CXErrorCode.fromValue( - _clang_parseTranslationUnit2FullArgv( - CIdx, - source_filename, - command_line_args, - num_command_line_args, - unsaved_files, - num_unsaved_files, - options, - out_TU, - ), - ); - } - - late final _clang_parseTranslationUnit2FullArgvPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ) - > - >('clang_parseTranslationUnit2FullArgv'); - late final _clang_parseTranslationUnit2FullArgv = - _clang_parseTranslationUnit2FullArgvPtr - .asFunction< - int Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - int, - int, - ffi.Pointer, - ) - >(); - - /// Dispose the remapping. - void clang_remap_dispose(CXRemapping arg0) { - return _clang_remap_dispose(arg0); - } - - late final _clang_remap_disposePtr = - _lookup>( - 'clang_remap_dispose', - ); - late final _clang_remap_dispose = _clang_remap_disposePtr - .asFunction(); - - /// Get the original and the associated filename from the remapping. - void clang_remap_getFilenames( - CXRemapping arg0, - int index, - ffi.Pointer original, - ffi.Pointer transformed, - ) { - return _clang_remap_getFilenames(arg0, index, original, transformed); - } - - late final _clang_remap_getFilenamesPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXRemapping, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, - ) - > - >('clang_remap_getFilenames'); - late final _clang_remap_getFilenames = _clang_remap_getFilenamesPtr - .asFunction< - void Function( - CXRemapping, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// Determine the number of remappings. - int clang_remap_getNumFiles(CXRemapping arg0) { - return _clang_remap_getNumFiles(arg0); - } - - late final _clang_remap_getNumFilesPtr = - _lookup>( - 'clang_remap_getNumFiles', - ); - late final _clang_remap_getNumFiles = _clang_remap_getNumFilesPtr - .asFunction(); - - /// Reparse the source files that produced this translation unit. - int clang_reparseTranslationUnit( - CXTranslationUnit TU, - int num_unsaved_files, - ffi.Pointer unsaved_files, - int options, - ) { - return _clang_reparseTranslationUnit( - TU, - num_unsaved_files, - unsaved_files, - options, - ); - } - - late final _clang_reparseTranslationUnitPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXTranslationUnit, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >('clang_reparseTranslationUnit'); - late final _clang_reparseTranslationUnit = _clang_reparseTranslationUnitPtr - .asFunction< - int Function(CXTranslationUnit, int, ffi.Pointer, int) - >(); - - /// Saves a translation unit into a serialized representation of that - /// translation unit on disk. - int clang_saveTranslationUnit( - CXTranslationUnit TU, - ffi.Pointer FileName, - int options, - ) { - return _clang_saveTranslationUnit(TU, FileName, options); - } - - late final _clang_saveTranslationUnitPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >('clang_saveTranslationUnit'); - late final _clang_saveTranslationUnit = _clang_saveTranslationUnitPtr - .asFunction< - int Function(CXTranslationUnit, ffi.Pointer, int) - >(); - - /// Sort the code-completion results in case-insensitive alphabetical order. - void clang_sortCodeCompletionResults( - ffi.Pointer Results, - int NumResults, - ) { - return _clang_sortCodeCompletionResults(Results, NumResults); - } - - late final _clang_sortCodeCompletionResultsPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) - > - >('clang_sortCodeCompletionResults'); - late final _clang_sortCodeCompletionResults = - _clang_sortCodeCompletionResultsPtr - .asFunction, int)>(); - - /// Suspend a translation unit in order to free memory associated with it. - int clang_suspendTranslationUnit(CXTranslationUnit arg0) { - return _clang_suspendTranslationUnit(arg0); - } - - late final _clang_suspendTranslationUnitPtr = - _lookup>( - 'clang_suspendTranslationUnit', - ); - late final _clang_suspendTranslationUnit = _clang_suspendTranslationUnitPtr - .asFunction(); - - /// Enable/disable crash recovery. - void clang_toggleCrashRecovery(int isEnabled) { - return _clang_toggleCrashRecovery(isEnabled); - } - - late final _clang_toggleCrashRecoveryPtr = - _lookup>( - 'clang_toggleCrashRecovery', - ); - late final _clang_toggleCrashRecovery = _clang_toggleCrashRecoveryPtr - .asFunction(); - - /// Tokenize the source code described by the given range into raw lexical - /// tokens. - void clang_tokenize( - CXTranslationUnit TU, - CXSourceRange Range, - ffi.Pointer> Tokens, - ffi.Pointer NumTokens, - ) { - return _clang_tokenize(TU, Range, Tokens, NumTokens); - } - - late final _clang_tokenizePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit, - CXSourceRange, - ffi.Pointer>, - ffi.Pointer, - ) - > - >('clang_tokenize'); - late final _clang_tokenize = _clang_tokenizePtr - .asFunction< - void Function( - CXTranslationUnit, - CXSourceRange, - ffi.Pointer>, - ffi.Pointer, - ) - >(); - - /// Visit the children of a particular cursor. - int clang_visitChildren( - CXCursor parent, - CXCursorVisitor visitor, - CXClientData client_data, - ) { - return _clang_visitChildren(parent, visitor, client_data); - } - - late final _clang_visitChildrenPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor, CXCursorVisitor, CXClientData) - > - >('clang_visitChildren'); - late final _clang_visitChildren = _clang_visitChildrenPtr - .asFunction(); -} - -const int CINDEX_VERSION = 59; - -const int CINDEX_VERSION_MAJOR = 0; - -const int CINDEX_VERSION_MINOR = 59; - -const String CINDEX_VERSION_STRING = '0.59'; - -/// Describes the availability of a particular entity, which indicates whether -/// the use of this entity will result in a warning or error due to it being -/// deprecated or unavailable. -enum CXAvailabilityKind { - /// The entity is available. - CXAvailability_Available(0), - - /// The entity is available, but has been deprecated (and its use is not - /// recommended). - CXAvailability_Deprecated(1), - - /// The entity is not available; any use of it will be an error. - CXAvailability_NotAvailable(2), - - /// The entity is available, but not accessible; any use of it will be an - /// error. - CXAvailability_NotAccessible(3); - - final int value; - const CXAvailabilityKind(this.value); - - static CXAvailabilityKind fromValue(int value) => switch (value) { - 0 => CXAvailability_Available, - 1 => CXAvailability_Deprecated, - 2 => CXAvailability_NotAvailable, - 3 => CXAvailability_NotAccessible, - _ => throw ArgumentError('Unknown value for CXAvailabilityKind: $value'), - }; -} - -/// Describes the calling convention of a function type -enum CXCallingConv { - CXCallingConv_Default(0), - CXCallingConv_C(1), - CXCallingConv_X86StdCall(2), - CXCallingConv_X86FastCall(3), - CXCallingConv_X86ThisCall(4), - CXCallingConv_X86Pascal(5), - CXCallingConv_AAPCS(6), - CXCallingConv_AAPCS_VFP(7), - CXCallingConv_X86RegCall(8), - CXCallingConv_IntelOclBicc(9), - CXCallingConv_Win64(10), - CXCallingConv_X86_64SysV(11), - CXCallingConv_X86VectorCall(12), - CXCallingConv_Swift(13), - CXCallingConv_PreserveMost(14), - CXCallingConv_PreserveAll(15), - CXCallingConv_AArch64VectorCall(16), - CXCallingConv_Invalid(100), - CXCallingConv_Unexposed(200); - - static const CXCallingConv_X86_64Win64 = CXCallingConv_Win64; - - final int value; - const CXCallingConv(this.value); - - static CXCallingConv fromValue(int value) => switch (value) { - 0 => CXCallingConv_Default, - 1 => CXCallingConv_C, - 2 => CXCallingConv_X86StdCall, - 3 => CXCallingConv_X86FastCall, - 4 => CXCallingConv_X86ThisCall, - 5 => CXCallingConv_X86Pascal, - 6 => CXCallingConv_AAPCS, - 7 => CXCallingConv_AAPCS_VFP, - 8 => CXCallingConv_X86RegCall, - 9 => CXCallingConv_IntelOclBicc, - 10 => CXCallingConv_Win64, - 11 => CXCallingConv_X86_64SysV, - 12 => CXCallingConv_X86VectorCall, - 13 => CXCallingConv_Swift, - 14 => CXCallingConv_PreserveMost, - 15 => CXCallingConv_PreserveAll, - 16 => CXCallingConv_AArch64VectorCall, - 100 => CXCallingConv_Invalid, - 200 => CXCallingConv_Unexposed, - _ => throw ArgumentError('Unknown value for CXCallingConv: $value'), - }; - - @override - String toString() { - if (this == CXCallingConv_Win64) - return "CXCallingConv.CXCallingConv_Win64, CXCallingConv.CXCallingConv_X86_64Win64"; - return super.toString(); - } -} - -/// Describes how the traversal of the children of a particular cursor should -/// proceed after visiting a particular child cursor. -enum CXChildVisitResult { - /// Terminates the cursor traversal. - CXChildVisit_Break(0), - - /// Continues the cursor traversal with the next sibling of the cursor just - /// visited, without visiting its children. - CXChildVisit_Continue(1), - - /// Recursively traverse the children of this cursor, using the same visitor - /// and client data. - CXChildVisit_Recurse(2); - - final int value; - const CXChildVisitResult(this.value); - - static CXChildVisitResult fromValue(int value) => switch (value) { - 0 => CXChildVisit_Break, - 1 => CXChildVisit_Continue, - 2 => CXChildVisit_Recurse, - _ => throw ArgumentError('Unknown value for CXChildVisitResult: $value'), - }; -} - -/// Opaque pointer representing client data that will be passed through to -/// various callbacks and visitors. -typedef CXClientData = ffi.Pointer; - -/// Contains the results of code-completion. -final class CXCodeCompleteResults extends ffi.Struct { - /// The code-completion results. - external ffi.Pointer Results; - - /// The number of code-completion results stored in the Results array. - @ffi.UnsignedInt() - external int NumResults; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer Results, - required int NumResults, - }) => $allocator() - ..ref.Results = Results - ..ref.NumResults = NumResults; -} - -/// Flags that can be passed to clang_codeCompleteAt() to modify its behavior. -enum CXCodeComplete_Flags { - /// Whether to include macros within the set of code completions returned. - CXCodeComplete_IncludeMacros(1), - - /// Whether to include code patterns for language constructs within the set of - /// code completions, e.g., for loops. - CXCodeComplete_IncludeCodePatterns(2), - - /// Whether to include brief documentation within the set of code completions - /// returned. - CXCodeComplete_IncludeBriefComments(4), - - /// Whether to speed up completion by omitting top- or namespace-level - /// entities defined in the preamble. There's no guarantee any particular - /// entity is omitted. This may be useful if the headers are indexed - /// externally. - CXCodeComplete_SkipPreamble(8), - - /// Whether to include completions with small fix-its, e.g. change '.' to '->' - /// on member access, etc. - CXCodeComplete_IncludeCompletionsWithFixIts(16); - - final int value; - const CXCodeComplete_Flags(this.value); - - static CXCodeComplete_Flags fromValue(int value) => switch (value) { - 1 => CXCodeComplete_IncludeMacros, - 2 => CXCodeComplete_IncludeCodePatterns, - 4 => CXCodeComplete_IncludeBriefComments, - 8 => CXCodeComplete_SkipPreamble, - 16 => CXCodeComplete_IncludeCompletionsWithFixIts, - _ => throw ArgumentError('Unknown value for CXCodeComplete_Flags: $value'), - }; -} - -/// Describes a single piece of text within a code-completion string. -enum CXCompletionChunkKind { - /// A code-completion string that describes "optional" text that could be a - /// part of the template (but is not required). - CXCompletionChunk_Optional(0), - - /// Text that a user would be expected to type to get this code-completion - /// result. - CXCompletionChunk_TypedText(1), - - /// Text that should be inserted as part of a code-completion result. - CXCompletionChunk_Text(2), - - /// Placeholder text that should be replaced by the user. - CXCompletionChunk_Placeholder(3), - - /// Informative text that should be displayed but never inserted as part of - /// the template. - CXCompletionChunk_Informative(4), - - /// Text that describes the current parameter when code-completion is - /// referring to function call, message send, or template specialization. - CXCompletionChunk_CurrentParameter(5), - - /// A left parenthesis ('('), used to initiate a function call or signal the - /// beginning of a function parameter list. - CXCompletionChunk_LeftParen(6), - - /// A right parenthesis (')'), used to finish a function call or signal the - /// end of a function parameter list. - CXCompletionChunk_RightParen(7), - - /// A left bracket ('['). - CXCompletionChunk_LeftBracket(8), - - /// A right bracket (']'). - CXCompletionChunk_RightBracket(9), - - /// A left brace ('{'). - CXCompletionChunk_LeftBrace(10), - - /// A right brace ('}'). - CXCompletionChunk_RightBrace(11), - - /// A left angle bracket ('<'). - CXCompletionChunk_LeftAngle(12), - - /// A right angle bracket ('>'). - CXCompletionChunk_RightAngle(13), - - /// A comma separator (','). - CXCompletionChunk_Comma(14), - - /// Text that specifies the result type of a given result. - CXCompletionChunk_ResultType(15), - - /// A colon (':'). - CXCompletionChunk_Colon(16), - - /// A semicolon (';'). - CXCompletionChunk_SemiColon(17), - - /// An '=' sign. - CXCompletionChunk_Equal(18), - - /// Horizontal space (' '). - CXCompletionChunk_HorizontalSpace(19), - - /// Vertical space ('\n'), after which it is generally a good idea to perform - /// indentation. - CXCompletionChunk_VerticalSpace(20); - - final int value; - const CXCompletionChunkKind(this.value); - - static CXCompletionChunkKind fromValue(int value) => switch (value) { - 0 => CXCompletionChunk_Optional, - 1 => CXCompletionChunk_TypedText, - 2 => CXCompletionChunk_Text, - 3 => CXCompletionChunk_Placeholder, - 4 => CXCompletionChunk_Informative, - 5 => CXCompletionChunk_CurrentParameter, - 6 => CXCompletionChunk_LeftParen, - 7 => CXCompletionChunk_RightParen, - 8 => CXCompletionChunk_LeftBracket, - 9 => CXCompletionChunk_RightBracket, - 10 => CXCompletionChunk_LeftBrace, - 11 => CXCompletionChunk_RightBrace, - 12 => CXCompletionChunk_LeftAngle, - 13 => CXCompletionChunk_RightAngle, - 14 => CXCompletionChunk_Comma, - 15 => CXCompletionChunk_ResultType, - 16 => CXCompletionChunk_Colon, - 17 => CXCompletionChunk_SemiColon, - 18 => CXCompletionChunk_Equal, - 19 => CXCompletionChunk_HorizontalSpace, - 20 => CXCompletionChunk_VerticalSpace, - _ => throw ArgumentError('Unknown value for CXCompletionChunkKind: $value'), - }; -} - -/// Bits that represent the context under which completion is occurring. -enum CXCompletionContext { - /// The context for completions is unexposed, as only Clang results should be - /// included. (This is equivalent to having no context bits set.) - CXCompletionContext_Unexposed(0), - - /// Completions for any possible type should be included in the results. - CXCompletionContext_AnyType(1), - - /// Completions for any possible value (variables, function calls, etc.) - /// should be included in the results. - CXCompletionContext_AnyValue(2), - - /// Completions for values that resolve to an Objective-C object should be - /// included in the results. - CXCompletionContext_ObjCObjectValue(4), - - /// Completions for values that resolve to an Objective-C selector should be - /// included in the results. - CXCompletionContext_ObjCSelectorValue(8), - - /// Completions for values that resolve to a C++ class type should be included - /// in the results. - CXCompletionContext_CXXClassTypeValue(16), - - /// Completions for fields of the member being accessed using the dot operator - /// should be included in the results. - CXCompletionContext_DotMemberAccess(32), - - /// Completions for fields of the member being accessed using the arrow - /// operator should be included in the results. - CXCompletionContext_ArrowMemberAccess(64), - - /// Completions for properties of the Objective-C object being accessed using - /// the dot operator should be included in the results. - CXCompletionContext_ObjCPropertyAccess(128), - - /// Completions for enum tags should be included in the results. - CXCompletionContext_EnumTag(256), - - /// Completions for union tags should be included in the results. - CXCompletionContext_UnionTag(512), - - /// Completions for struct tags should be included in the results. - CXCompletionContext_StructTag(1024), - - /// Completions for C++ class names should be included in the results. - CXCompletionContext_ClassTag(2048), - - /// Completions for C++ namespaces and namespace aliases should be included in - /// the results. - CXCompletionContext_Namespace(4096), - - /// Completions for C++ nested name specifiers should be included in the - /// results. - CXCompletionContext_NestedNameSpecifier(8192), - - /// Completions for Objective-C interfaces (classes) should be included in the - /// results. - CXCompletionContext_ObjCInterface(16384), - - /// Completions for Objective-C protocols should be included in the results. - CXCompletionContext_ObjCProtocol(32768), - - /// Completions for Objective-C categories should be included in the results. - CXCompletionContext_ObjCCategory(65536), - - /// Completions for Objective-C instance messages should be included in the - /// results. - CXCompletionContext_ObjCInstanceMessage(131072), - - /// Completions for Objective-C class messages should be included in the - /// results. - CXCompletionContext_ObjCClassMessage(262144), - - /// Completions for Objective-C selector names should be included in the - /// results. - CXCompletionContext_ObjCSelectorName(524288), - - /// Completions for preprocessor macro names should be included in the - /// results. - CXCompletionContext_MacroName(1048576), - - /// Natural language completions should be included in the results. - CXCompletionContext_NaturalLanguage(2097152), - - /// #include file completions should be included in the results. - CXCompletionContext_IncludedFile(4194304), - - /// The current context is unknown, so set all contexts. - CXCompletionContext_Unknown(8388607); - - final int value; - const CXCompletionContext(this.value); - - static CXCompletionContext fromValue(int value) => switch (value) { - 0 => CXCompletionContext_Unexposed, - 1 => CXCompletionContext_AnyType, - 2 => CXCompletionContext_AnyValue, - 4 => CXCompletionContext_ObjCObjectValue, - 8 => CXCompletionContext_ObjCSelectorValue, - 16 => CXCompletionContext_CXXClassTypeValue, - 32 => CXCompletionContext_DotMemberAccess, - 64 => CXCompletionContext_ArrowMemberAccess, - 128 => CXCompletionContext_ObjCPropertyAccess, - 256 => CXCompletionContext_EnumTag, - 512 => CXCompletionContext_UnionTag, - 1024 => CXCompletionContext_StructTag, - 2048 => CXCompletionContext_ClassTag, - 4096 => CXCompletionContext_Namespace, - 8192 => CXCompletionContext_NestedNameSpecifier, - 16384 => CXCompletionContext_ObjCInterface, - 32768 => CXCompletionContext_ObjCProtocol, - 65536 => CXCompletionContext_ObjCCategory, - 131072 => CXCompletionContext_ObjCInstanceMessage, - 262144 => CXCompletionContext_ObjCClassMessage, - 524288 => CXCompletionContext_ObjCSelectorName, - 1048576 => CXCompletionContext_MacroName, - 2097152 => CXCompletionContext_NaturalLanguage, - 4194304 => CXCompletionContext_IncludedFile, - 8388607 => CXCompletionContext_Unknown, - _ => throw ArgumentError('Unknown value for CXCompletionContext: $value'), - }; -} - -/// A single result of code completion. -final class CXCompletionResult extends ffi.Struct { - /// The kind of entity that this completion refers to. - @ffi.UnsignedInt() - external int CursorKindAsInt; - - CXCursorKind get CursorKind => CXCursorKind.fromValue(CursorKindAsInt); - set CursorKind(CXCursorKind value) => CursorKindAsInt = value.value; - - /// The code-completion string that describes how to insert this - /// code-completion result into the editing buffer. - external CXCompletionString CompletionString; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CXCursorKind CursorKind, - required CXCompletionString CompletionString, - }) => $allocator() - ..ref.CursorKind = CursorKind - ..ref.CompletionString = CompletionString; -} - -/// A semantic string that describes a code-completion result. -typedef CXCompletionString = ffi.Pointer; - -/// A cursor representing some element in the abstract syntax tree for a -/// translation unit. -final class CXCursor extends ffi.Struct { - @ffi.UnsignedInt() - external int kindAsInt; - - CXCursorKind get kind => CXCursorKind.fromValue(kindAsInt); - set kind(CXCursorKind value) => kindAsInt = value.value; - - @ffi.Int() - external int xdata; - - @ffi.Array.multi([3]) - external ffi.Array> data; -} - -final class CXCursorAndRangeVisitor extends ffi.Struct { - external ffi.Pointer context; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer, CXCursor, CXSourceRange) - > - > - visit; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer context, - required ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer, CXCursor, CXSourceRange) - > - > - visit, - }) => $allocator() - ..ref.context = context - ..ref.visit = visit; -} - -/// Describes the kind of entity that a cursor refers to. -enum CXCursorKind { - /// A declaration whose specific kind is not exposed via this interface. - CXCursor_UnexposedDecl(1), - - /// A C or C++ struct. - CXCursor_StructDecl(2), - - /// A C or C++ union. - CXCursor_UnionDecl(3), - - /// A C++ class. - CXCursor_ClassDecl(4), - - /// An enumeration. - CXCursor_EnumDecl(5), - - /// A field (in C) or non-static data member (in C++) in a struct, union, or - /// C++ class. - CXCursor_FieldDecl(6), - - /// An enumerator constant. - CXCursor_EnumConstantDecl(7), - - /// A function. - CXCursor_FunctionDecl(8), - - /// A variable. - CXCursor_VarDecl(9), - - /// A function or method parameter. - CXCursor_ParmDecl(10), - - /// An Objective-C @interface. - CXCursor_ObjCInterfaceDecl(11), - - /// An Objective-C @interface for a category. - CXCursor_ObjCCategoryDecl(12), - - /// An Objective-C @protocol declaration. - CXCursor_ObjCProtocolDecl(13), - - /// An Objective-C @property declaration. - CXCursor_ObjCPropertyDecl(14), - - /// An Objective-C instance variable. - CXCursor_ObjCIvarDecl(15), - - /// An Objective-C instance method. - CXCursor_ObjCInstanceMethodDecl(16), - - /// An Objective-C class method. - CXCursor_ObjCClassMethodDecl(17), - - /// An Objective-C @implementation. - CXCursor_ObjCImplementationDecl(18), - - /// An Objective-C @implementation for a category. - CXCursor_ObjCCategoryImplDecl(19), - - /// A typedef. - CXCursor_TypedefDecl(20), - - /// A C++ class method. - CXCursor_CXXMethod(21), - - /// A C++ namespace. - CXCursor_Namespace(22), - - /// A linkage specification, e.g. 'extern "C"'. - CXCursor_LinkageSpec(23), - - /// A C++ constructor. - CXCursor_Constructor(24), - - /// A C++ destructor. - CXCursor_Destructor(25), - - /// A C++ conversion function. - CXCursor_ConversionFunction(26), - - /// A C++ template type parameter. - CXCursor_TemplateTypeParameter(27), - - /// A C++ non-type template parameter. - CXCursor_NonTypeTemplateParameter(28), - - /// A C++ template template parameter. - CXCursor_TemplateTemplateParameter(29), - - /// A C++ function template. - CXCursor_FunctionTemplate(30), - - /// A C++ class template. - CXCursor_ClassTemplate(31), - - /// A C++ class template partial specialization. - CXCursor_ClassTemplatePartialSpecialization(32), - - /// A C++ namespace alias declaration. - CXCursor_NamespaceAlias(33), - - /// A C++ using directive. - CXCursor_UsingDirective(34), - - /// A C++ using declaration. - CXCursor_UsingDeclaration(35), - - /// A C++ alias declaration - CXCursor_TypeAliasDecl(36), - - /// An Objective-C @synthesize definition. - CXCursor_ObjCSynthesizeDecl(37), - - /// An Objective-C @dynamic definition. - CXCursor_ObjCDynamicDecl(38), - - /// An access specifier. - CXCursor_CXXAccessSpecifier(39), - CXCursor_FirstRef(40), - CXCursor_ObjCProtocolRef(41), - CXCursor_ObjCClassRef(42), - - /// A reference to a type declaration. - CXCursor_TypeRef(43), - CXCursor_CXXBaseSpecifier(44), - - /// A reference to a class template, function template, template template - /// parameter, or class template partial specialization. - CXCursor_TemplateRef(45), - - /// A reference to a namespace or namespace alias. - CXCursor_NamespaceRef(46), - - /// A reference to a member of a struct, union, or class that occurs in some - /// non-expression context, e.g., a designated initializer. - CXCursor_MemberRef(47), - - /// A reference to a labeled statement. - CXCursor_LabelRef(48), - - /// A reference to a set of overloaded functions or function templates that - /// has not yet been resolved to a specific function or function template. - CXCursor_OverloadedDeclRef(49), - - /// A reference to a variable that occurs in some non-expression context, - /// e.g., a C++ lambda capture list. - CXCursor_VariableRef(50), - CXCursor_FirstInvalid(70), - CXCursor_NoDeclFound(71), - CXCursor_NotImplemented(72), - CXCursor_InvalidCode(73), - CXCursor_FirstExpr(100), - - /// An expression that refers to some value declaration, such as a function, - /// variable, or enumerator. - CXCursor_DeclRefExpr(101), - - /// An expression that refers to a member of a struct, union, class, - /// Objective-C class, etc. - CXCursor_MemberRefExpr(102), - - /// An expression that calls a function. - CXCursor_CallExpr(103), - - /// An expression that sends a message to an Objective-C object or class. - CXCursor_ObjCMessageExpr(104), - - /// An expression that represents a block literal. - CXCursor_BlockExpr(105), - - /// An integer literal. - CXCursor_IntegerLiteral(106), - - /// A floating point number literal. - CXCursor_FloatingLiteral(107), - - /// An imaginary number literal. - CXCursor_ImaginaryLiteral(108), - - /// A string literal. - CXCursor_StringLiteral(109), - - /// A character literal. - CXCursor_CharacterLiteral(110), - - /// A parenthesized expression, e.g. "(1)". - CXCursor_ParenExpr(111), - - /// This represents the unary-expression's (except sizeof and alignof). - CXCursor_UnaryOperator(112), - - /// [C99 6.5.2.1] Array Subscripting. - CXCursor_ArraySubscriptExpr(113), - - /// A builtin binary operation expression such as "x + y" or "x <= y". - CXCursor_BinaryOperator(114), - - /// Compound assignment such as "+=". - CXCursor_CompoundAssignOperator(115), - - /// The ?: ternary operator. - CXCursor_ConditionalOperator(116), - - /// An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ - /// [expr.cast]), which uses the syntax (Type)expr. - CXCursor_CStyleCastExpr(117), - - /// [C99 6.5.2.5] - CXCursor_CompoundLiteralExpr(118), - - /// Describes an C or C++ initializer list. - CXCursor_InitListExpr(119), - - /// The GNU address of label extension, representing &&label. - CXCursor_AddrLabelExpr(120), - - /// This is the GNU Statement Expression extension: ({int X=4; X;}) - CXCursor_StmtExpr(121), - - /// Represents a C11 generic selection. - CXCursor_GenericSelectionExpr(122), - - /// Implements the GNU __null extension, which is a name for a null pointer - /// constant that has integral type (e.g., int or long) and is the same size - /// and alignment as a pointer. - CXCursor_GNUNullExpr(123), - - /// C++'s static_cast<> expression. - CXCursor_CXXStaticCastExpr(124), - - /// C++'s dynamic_cast<> expression. - CXCursor_CXXDynamicCastExpr(125), - - /// C++'s reinterpret_cast<> expression. - CXCursor_CXXReinterpretCastExpr(126), - - /// C++'s const_cast<> expression. - CXCursor_CXXConstCastExpr(127), - - /// Represents an explicit C++ type conversion that uses "functional" notion - /// (C++ [expr.type.conv]). - CXCursor_CXXFunctionalCastExpr(128), - - /// A C++ typeid expression (C++ [expr.typeid]). - CXCursor_CXXTypeidExpr(129), - - /// [C++ 2.13.5] C++ Boolean Literal. - CXCursor_CXXBoolLiteralExpr(130), - - /// [C++0x 2.14.7] C++ Pointer Literal. - CXCursor_CXXNullPtrLiteralExpr(131), - - /// Represents the "this" expression in C++ - CXCursor_CXXThisExpr(132), - - /// [C++ 15] C++ Throw Expression. - CXCursor_CXXThrowExpr(133), - - /// A new expression for memory allocation and constructor calls, e.g: "new - /// CXXNewExpr(foo)". - CXCursor_CXXNewExpr(134), - - /// A delete expression for memory deallocation and destructor calls, e.g. - /// "delete[] pArray". - CXCursor_CXXDeleteExpr(135), - - /// A unary expression. (noexcept, sizeof, or other traits) - CXCursor_UnaryExpr(136), - - /// An Objective-C string literal i.e. "foo". - CXCursor_ObjCStringLiteral(137), - - /// An Objective-C @encode expression. - CXCursor_ObjCEncodeExpr(138), - - /// An Objective-C @selector expression. - CXCursor_ObjCSelectorExpr(139), - - /// An Objective-C @protocol expression. - CXCursor_ObjCProtocolExpr(140), - - /// An Objective-C "bridged" cast expression, which casts between Objective-C - /// pointers and C pointers, transferring ownership in the process. - CXCursor_ObjCBridgedCastExpr(141), - - /// Represents a C++0x pack expansion that produces a sequence of expressions. - CXCursor_PackExpansionExpr(142), - - /// Represents an expression that computes the length of a parameter pack. - CXCursor_SizeOfPackExpr(143), - CXCursor_LambdaExpr(144), - - /// Objective-c Boolean Literal. - CXCursor_ObjCBoolLiteralExpr(145), - - /// Represents the "self" expression in an Objective-C method. - CXCursor_ObjCSelfExpr(146), - - /// OpenMP 4.0 [2.4, Array Section]. - CXCursor_OMPArraySectionExpr(147), - - /// Represents an (...) check. - CXCursor_ObjCAvailabilityCheckExpr(148), - - /// Fixed point literal - CXCursor_FixedPointLiteral(149), - CXCursor_FirstStmt(200), - - /// A labelled statement in a function. - CXCursor_LabelStmt(201), - - /// A group of statements like { stmt stmt }. - CXCursor_CompoundStmt(202), - - /// A case statement. - CXCursor_CaseStmt(203), - - /// A default statement. - CXCursor_DefaultStmt(204), - - /// An if statement - CXCursor_IfStmt(205), - - /// A switch statement. - CXCursor_SwitchStmt(206), - - /// A while statement. - CXCursor_WhileStmt(207), - - /// A do statement. - CXCursor_DoStmt(208), - - /// A for statement. - CXCursor_ForStmt(209), - - /// A goto statement. - CXCursor_GotoStmt(210), - - /// An indirect goto statement. - CXCursor_IndirectGotoStmt(211), - - /// A continue statement. - CXCursor_ContinueStmt(212), - - /// A break statement. - CXCursor_BreakStmt(213), - - /// A return statement. - CXCursor_ReturnStmt(214), - - /// A GCC inline assembly statement extension. - CXCursor_GCCAsmStmt(215), - - /// Objective-C's overall @try-@catch-@finally statement. - CXCursor_ObjCAtTryStmt(216), - - /// Objective-C's @catch statement. - CXCursor_ObjCAtCatchStmt(217), - - /// Objective-C's @finally statement. - CXCursor_ObjCAtFinallyStmt(218), - - /// Objective-C's @throw statement. - CXCursor_ObjCAtThrowStmt(219), - - /// Objective-C's @synchronized statement. - CXCursor_ObjCAtSynchronizedStmt(220), - - /// Objective-C's autorelease pool statement. - CXCursor_ObjCAutoreleasePoolStmt(221), - - /// Objective-C's collection statement. - CXCursor_ObjCForCollectionStmt(222), - - /// C++'s catch statement. - CXCursor_CXXCatchStmt(223), - - /// C++'s try statement. - CXCursor_CXXTryStmt(224), - - /// C++'s for (* : *) statement. - CXCursor_CXXForRangeStmt(225), - - /// Windows Structured Exception Handling's try statement. - CXCursor_SEHTryStmt(226), - - /// Windows Structured Exception Handling's except statement. - CXCursor_SEHExceptStmt(227), - - /// Windows Structured Exception Handling's finally statement. - CXCursor_SEHFinallyStmt(228), - - /// A MS inline assembly statement extension. - CXCursor_MSAsmStmt(229), - - /// The null statement ";": C99 6.8.3p3. - CXCursor_NullStmt(230), - - /// Adaptor class for mixing declarations with statements and expressions. - CXCursor_DeclStmt(231), - - /// OpenMP parallel directive. - CXCursor_OMPParallelDirective(232), - - /// OpenMP SIMD directive. - CXCursor_OMPSimdDirective(233), - - /// OpenMP for directive. - CXCursor_OMPForDirective(234), - - /// OpenMP sections directive. - CXCursor_OMPSectionsDirective(235), - - /// OpenMP section directive. - CXCursor_OMPSectionDirective(236), - - /// OpenMP single directive. - CXCursor_OMPSingleDirective(237), - - /// OpenMP parallel for directive. - CXCursor_OMPParallelForDirective(238), - - /// OpenMP parallel sections directive. - CXCursor_OMPParallelSectionsDirective(239), - - /// OpenMP task directive. - CXCursor_OMPTaskDirective(240), - - /// OpenMP master directive. - CXCursor_OMPMasterDirective(241), - - /// OpenMP critical directive. - CXCursor_OMPCriticalDirective(242), - - /// OpenMP taskyield directive. - CXCursor_OMPTaskyieldDirective(243), - - /// OpenMP barrier directive. - CXCursor_OMPBarrierDirective(244), - - /// OpenMP taskwait directive. - CXCursor_OMPTaskwaitDirective(245), - - /// OpenMP flush directive. - CXCursor_OMPFlushDirective(246), - - /// Windows Structured Exception Handling's leave statement. - CXCursor_SEHLeaveStmt(247), - - /// OpenMP ordered directive. - CXCursor_OMPOrderedDirective(248), - - /// OpenMP atomic directive. - CXCursor_OMPAtomicDirective(249), - - /// OpenMP for SIMD directive. - CXCursor_OMPForSimdDirective(250), - - /// OpenMP parallel for SIMD directive. - CXCursor_OMPParallelForSimdDirective(251), - - /// OpenMP target directive. - CXCursor_OMPTargetDirective(252), - - /// OpenMP teams directive. - CXCursor_OMPTeamsDirective(253), - - /// OpenMP taskgroup directive. - CXCursor_OMPTaskgroupDirective(254), - - /// OpenMP cancellation point directive. - CXCursor_OMPCancellationPointDirective(255), - - /// OpenMP cancel directive. - CXCursor_OMPCancelDirective(256), - - /// OpenMP target data directive. - CXCursor_OMPTargetDataDirective(257), - - /// OpenMP taskloop directive. - CXCursor_OMPTaskLoopDirective(258), - - /// OpenMP taskloop simd directive. - CXCursor_OMPTaskLoopSimdDirective(259), - - /// OpenMP distribute directive. - CXCursor_OMPDistributeDirective(260), - - /// OpenMP target enter data directive. - CXCursor_OMPTargetEnterDataDirective(261), - - /// OpenMP target exit data directive. - CXCursor_OMPTargetExitDataDirective(262), - - /// OpenMP target parallel directive. - CXCursor_OMPTargetParallelDirective(263), - - /// OpenMP target parallel for directive. - CXCursor_OMPTargetParallelForDirective(264), - - /// OpenMP target update directive. - CXCursor_OMPTargetUpdateDirective(265), - - /// OpenMP distribute parallel for directive. - CXCursor_OMPDistributeParallelForDirective(266), - - /// OpenMP distribute parallel for simd directive. - CXCursor_OMPDistributeParallelForSimdDirective(267), - - /// OpenMP distribute simd directive. - CXCursor_OMPDistributeSimdDirective(268), - - /// OpenMP target parallel for simd directive. - CXCursor_OMPTargetParallelForSimdDirective(269), - - /// OpenMP target simd directive. - CXCursor_OMPTargetSimdDirective(270), - - /// OpenMP teams distribute directive. - CXCursor_OMPTeamsDistributeDirective(271), - - /// OpenMP teams distribute simd directive. - CXCursor_OMPTeamsDistributeSimdDirective(272), - - /// OpenMP teams distribute parallel for simd directive. - CXCursor_OMPTeamsDistributeParallelForSimdDirective(273), - - /// OpenMP teams distribute parallel for directive. - CXCursor_OMPTeamsDistributeParallelForDirective(274), - - /// OpenMP target teams directive. - CXCursor_OMPTargetTeamsDirective(275), - - /// OpenMP target teams distribute directive. - CXCursor_OMPTargetTeamsDistributeDirective(276), - - /// OpenMP target teams distribute parallel for directive. - CXCursor_OMPTargetTeamsDistributeParallelForDirective(277), - - /// OpenMP target teams distribute parallel for simd directive. - CXCursor_OMPTargetTeamsDistributeParallelForSimdDirective(278), - - /// OpenMP target teams distribute simd directive. - CXCursor_OMPTargetTeamsDistributeSimdDirective(279), - - /// C++2a std::bit_cast expression. - CXCursor_BuiltinBitCastExpr(280), - - /// OpenMP master taskloop directive. - CXCursor_OMPMasterTaskLoopDirective(281), - - /// OpenMP parallel master taskloop directive. - CXCursor_OMPParallelMasterTaskLoopDirective(282), - - /// OpenMP master taskloop simd directive. - CXCursor_OMPMasterTaskLoopSimdDirective(283), - - /// OpenMP parallel master taskloop simd directive. - CXCursor_OMPParallelMasterTaskLoopSimdDirective(284), - - /// OpenMP parallel master directive. - CXCursor_OMPParallelMasterDirective(285), - - /// Cursor that represents the translation unit itself. - CXCursor_TranslationUnit(300), - CXCursor_FirstAttr(400), - CXCursor_IBActionAttr(401), - CXCursor_IBOutletAttr(402), - CXCursor_IBOutletCollectionAttr(403), - CXCursor_CXXFinalAttr(404), - CXCursor_CXXOverrideAttr(405), - CXCursor_AnnotateAttr(406), - CXCursor_AsmLabelAttr(407), - CXCursor_PackedAttr(408), - CXCursor_PureAttr(409), - CXCursor_ConstAttr(410), - CXCursor_NoDuplicateAttr(411), - CXCursor_CUDAConstantAttr(412), - CXCursor_CUDADeviceAttr(413), - CXCursor_CUDAGlobalAttr(414), - CXCursor_CUDAHostAttr(415), - CXCursor_CUDASharedAttr(416), - CXCursor_VisibilityAttr(417), - CXCursor_DLLExport(418), - CXCursor_DLLImport(419), - CXCursor_NSReturnsRetained(420), - CXCursor_NSReturnsNotRetained(421), - CXCursor_NSReturnsAutoreleased(422), - CXCursor_NSConsumesSelf(423), - CXCursor_NSConsumed(424), - CXCursor_ObjCException(425), - CXCursor_ObjCNSObject(426), - CXCursor_ObjCIndependentClass(427), - CXCursor_ObjCPreciseLifetime(428), - CXCursor_ObjCReturnsInnerPointer(429), - CXCursor_ObjCRequiresSuper(430), - CXCursor_ObjCRootClass(431), - CXCursor_ObjCSubclassingRestricted(432), - CXCursor_ObjCExplicitProtocolImpl(433), - CXCursor_ObjCDesignatedInitializer(434), - CXCursor_ObjCRuntimeVisible(435), - CXCursor_ObjCBoxable(436), - CXCursor_FlagEnum(437), - CXCursor_ConvergentAttr(438), - CXCursor_WarnUnusedAttr(439), - CXCursor_WarnUnusedResultAttr(440), - CXCursor_AlignedAttr(441), - CXCursor_PreprocessingDirective(500), - CXCursor_MacroDefinition(501), - CXCursor_MacroExpansion(502), - CXCursor_InclusionDirective(503), - - /// A module import declaration. - CXCursor_ModuleImportDecl(600), - CXCursor_TypeAliasTemplateDecl(601), - - /// A static_assert or _Static_assert node - CXCursor_StaticAssert(602), - - /// a friend declaration. - CXCursor_FriendDecl(603), - - /// A code completion overload candidate. - CXCursor_OverloadCandidate(700); - - static const CXCursor_FirstDecl = CXCursor_UnexposedDecl; - static const CXCursor_LastDecl = CXCursor_CXXAccessSpecifier; - static const CXCursor_ObjCSuperClassRef = CXCursor_FirstRef; - static const CXCursor_LastRef = CXCursor_VariableRef; - static const CXCursor_InvalidFile = CXCursor_FirstInvalid; - static const CXCursor_LastInvalid = CXCursor_InvalidCode; - - /// An expression whose specific kind is not exposed via this interface. - static const CXCursor_UnexposedExpr = CXCursor_FirstExpr; - static const CXCursor_LastExpr = CXCursor_FixedPointLiteral; - - /// A statement whose specific kind is not exposed via this interface. - static const CXCursor_UnexposedStmt = CXCursor_FirstStmt; - static const CXCursor_AsmStmt = CXCursor_GCCAsmStmt; - static const CXCursor_LastStmt = CXCursor_OMPParallelMasterDirective; - - /// An attribute whose specific kind is not exposed via this interface. - static const CXCursor_UnexposedAttr = CXCursor_FirstAttr; - static const CXCursor_LastAttr = CXCursor_AlignedAttr; - static const CXCursor_MacroInstantiation = CXCursor_MacroExpansion; - static const CXCursor_FirstPreprocessing = CXCursor_PreprocessingDirective; - static const CXCursor_LastPreprocessing = CXCursor_InclusionDirective; - static const CXCursor_FirstExtraDecl = CXCursor_ModuleImportDecl; - static const CXCursor_LastExtraDecl = CXCursor_FriendDecl; - - final int value; - const CXCursorKind(this.value); - - static CXCursorKind fromValue(int value) => switch (value) { - 1 => CXCursor_UnexposedDecl, - 2 => CXCursor_StructDecl, - 3 => CXCursor_UnionDecl, - 4 => CXCursor_ClassDecl, - 5 => CXCursor_EnumDecl, - 6 => CXCursor_FieldDecl, - 7 => CXCursor_EnumConstantDecl, - 8 => CXCursor_FunctionDecl, - 9 => CXCursor_VarDecl, - 10 => CXCursor_ParmDecl, - 11 => CXCursor_ObjCInterfaceDecl, - 12 => CXCursor_ObjCCategoryDecl, - 13 => CXCursor_ObjCProtocolDecl, - 14 => CXCursor_ObjCPropertyDecl, - 15 => CXCursor_ObjCIvarDecl, - 16 => CXCursor_ObjCInstanceMethodDecl, - 17 => CXCursor_ObjCClassMethodDecl, - 18 => CXCursor_ObjCImplementationDecl, - 19 => CXCursor_ObjCCategoryImplDecl, - 20 => CXCursor_TypedefDecl, - 21 => CXCursor_CXXMethod, - 22 => CXCursor_Namespace, - 23 => CXCursor_LinkageSpec, - 24 => CXCursor_Constructor, - 25 => CXCursor_Destructor, - 26 => CXCursor_ConversionFunction, - 27 => CXCursor_TemplateTypeParameter, - 28 => CXCursor_NonTypeTemplateParameter, - 29 => CXCursor_TemplateTemplateParameter, - 30 => CXCursor_FunctionTemplate, - 31 => CXCursor_ClassTemplate, - 32 => CXCursor_ClassTemplatePartialSpecialization, - 33 => CXCursor_NamespaceAlias, - 34 => CXCursor_UsingDirective, - 35 => CXCursor_UsingDeclaration, - 36 => CXCursor_TypeAliasDecl, - 37 => CXCursor_ObjCSynthesizeDecl, - 38 => CXCursor_ObjCDynamicDecl, - 39 => CXCursor_CXXAccessSpecifier, - 40 => CXCursor_FirstRef, - 41 => CXCursor_ObjCProtocolRef, - 42 => CXCursor_ObjCClassRef, - 43 => CXCursor_TypeRef, - 44 => CXCursor_CXXBaseSpecifier, - 45 => CXCursor_TemplateRef, - 46 => CXCursor_NamespaceRef, - 47 => CXCursor_MemberRef, - 48 => CXCursor_LabelRef, - 49 => CXCursor_OverloadedDeclRef, - 50 => CXCursor_VariableRef, - 70 => CXCursor_FirstInvalid, - 71 => CXCursor_NoDeclFound, - 72 => CXCursor_NotImplemented, - 73 => CXCursor_InvalidCode, - 100 => CXCursor_FirstExpr, - 101 => CXCursor_DeclRefExpr, - 102 => CXCursor_MemberRefExpr, - 103 => CXCursor_CallExpr, - 104 => CXCursor_ObjCMessageExpr, - 105 => CXCursor_BlockExpr, - 106 => CXCursor_IntegerLiteral, - 107 => CXCursor_FloatingLiteral, - 108 => CXCursor_ImaginaryLiteral, - 109 => CXCursor_StringLiteral, - 110 => CXCursor_CharacterLiteral, - 111 => CXCursor_ParenExpr, - 112 => CXCursor_UnaryOperator, - 113 => CXCursor_ArraySubscriptExpr, - 114 => CXCursor_BinaryOperator, - 115 => CXCursor_CompoundAssignOperator, - 116 => CXCursor_ConditionalOperator, - 117 => CXCursor_CStyleCastExpr, - 118 => CXCursor_CompoundLiteralExpr, - 119 => CXCursor_InitListExpr, - 120 => CXCursor_AddrLabelExpr, - 121 => CXCursor_StmtExpr, - 122 => CXCursor_GenericSelectionExpr, - 123 => CXCursor_GNUNullExpr, - 124 => CXCursor_CXXStaticCastExpr, - 125 => CXCursor_CXXDynamicCastExpr, - 126 => CXCursor_CXXReinterpretCastExpr, - 127 => CXCursor_CXXConstCastExpr, - 128 => CXCursor_CXXFunctionalCastExpr, - 129 => CXCursor_CXXTypeidExpr, - 130 => CXCursor_CXXBoolLiteralExpr, - 131 => CXCursor_CXXNullPtrLiteralExpr, - 132 => CXCursor_CXXThisExpr, - 133 => CXCursor_CXXThrowExpr, - 134 => CXCursor_CXXNewExpr, - 135 => CXCursor_CXXDeleteExpr, - 136 => CXCursor_UnaryExpr, - 137 => CXCursor_ObjCStringLiteral, - 138 => CXCursor_ObjCEncodeExpr, - 139 => CXCursor_ObjCSelectorExpr, - 140 => CXCursor_ObjCProtocolExpr, - 141 => CXCursor_ObjCBridgedCastExpr, - 142 => CXCursor_PackExpansionExpr, - 143 => CXCursor_SizeOfPackExpr, - 144 => CXCursor_LambdaExpr, - 145 => CXCursor_ObjCBoolLiteralExpr, - 146 => CXCursor_ObjCSelfExpr, - 147 => CXCursor_OMPArraySectionExpr, - 148 => CXCursor_ObjCAvailabilityCheckExpr, - 149 => CXCursor_FixedPointLiteral, - 200 => CXCursor_FirstStmt, - 201 => CXCursor_LabelStmt, - 202 => CXCursor_CompoundStmt, - 203 => CXCursor_CaseStmt, - 204 => CXCursor_DefaultStmt, - 205 => CXCursor_IfStmt, - 206 => CXCursor_SwitchStmt, - 207 => CXCursor_WhileStmt, - 208 => CXCursor_DoStmt, - 209 => CXCursor_ForStmt, - 210 => CXCursor_GotoStmt, - 211 => CXCursor_IndirectGotoStmt, - 212 => CXCursor_ContinueStmt, - 213 => CXCursor_BreakStmt, - 214 => CXCursor_ReturnStmt, - 215 => CXCursor_GCCAsmStmt, - 216 => CXCursor_ObjCAtTryStmt, - 217 => CXCursor_ObjCAtCatchStmt, - 218 => CXCursor_ObjCAtFinallyStmt, - 219 => CXCursor_ObjCAtThrowStmt, - 220 => CXCursor_ObjCAtSynchronizedStmt, - 221 => CXCursor_ObjCAutoreleasePoolStmt, - 222 => CXCursor_ObjCForCollectionStmt, - 223 => CXCursor_CXXCatchStmt, - 224 => CXCursor_CXXTryStmt, - 225 => CXCursor_CXXForRangeStmt, - 226 => CXCursor_SEHTryStmt, - 227 => CXCursor_SEHExceptStmt, - 228 => CXCursor_SEHFinallyStmt, - 229 => CXCursor_MSAsmStmt, - 230 => CXCursor_NullStmt, - 231 => CXCursor_DeclStmt, - 232 => CXCursor_OMPParallelDirective, - 233 => CXCursor_OMPSimdDirective, - 234 => CXCursor_OMPForDirective, - 235 => CXCursor_OMPSectionsDirective, - 236 => CXCursor_OMPSectionDirective, - 237 => CXCursor_OMPSingleDirective, - 238 => CXCursor_OMPParallelForDirective, - 239 => CXCursor_OMPParallelSectionsDirective, - 240 => CXCursor_OMPTaskDirective, - 241 => CXCursor_OMPMasterDirective, - 242 => CXCursor_OMPCriticalDirective, - 243 => CXCursor_OMPTaskyieldDirective, - 244 => CXCursor_OMPBarrierDirective, - 245 => CXCursor_OMPTaskwaitDirective, - 246 => CXCursor_OMPFlushDirective, - 247 => CXCursor_SEHLeaveStmt, - 248 => CXCursor_OMPOrderedDirective, - 249 => CXCursor_OMPAtomicDirective, - 250 => CXCursor_OMPForSimdDirective, - 251 => CXCursor_OMPParallelForSimdDirective, - 252 => CXCursor_OMPTargetDirective, - 253 => CXCursor_OMPTeamsDirective, - 254 => CXCursor_OMPTaskgroupDirective, - 255 => CXCursor_OMPCancellationPointDirective, - 256 => CXCursor_OMPCancelDirective, - 257 => CXCursor_OMPTargetDataDirective, - 258 => CXCursor_OMPTaskLoopDirective, - 259 => CXCursor_OMPTaskLoopSimdDirective, - 260 => CXCursor_OMPDistributeDirective, - 261 => CXCursor_OMPTargetEnterDataDirective, - 262 => CXCursor_OMPTargetExitDataDirective, - 263 => CXCursor_OMPTargetParallelDirective, - 264 => CXCursor_OMPTargetParallelForDirective, - 265 => CXCursor_OMPTargetUpdateDirective, - 266 => CXCursor_OMPDistributeParallelForDirective, - 267 => CXCursor_OMPDistributeParallelForSimdDirective, - 268 => CXCursor_OMPDistributeSimdDirective, - 269 => CXCursor_OMPTargetParallelForSimdDirective, - 270 => CXCursor_OMPTargetSimdDirective, - 271 => CXCursor_OMPTeamsDistributeDirective, - 272 => CXCursor_OMPTeamsDistributeSimdDirective, - 273 => CXCursor_OMPTeamsDistributeParallelForSimdDirective, - 274 => CXCursor_OMPTeamsDistributeParallelForDirective, - 275 => CXCursor_OMPTargetTeamsDirective, - 276 => CXCursor_OMPTargetTeamsDistributeDirective, - 277 => CXCursor_OMPTargetTeamsDistributeParallelForDirective, - 278 => CXCursor_OMPTargetTeamsDistributeParallelForSimdDirective, - 279 => CXCursor_OMPTargetTeamsDistributeSimdDirective, - 280 => CXCursor_BuiltinBitCastExpr, - 281 => CXCursor_OMPMasterTaskLoopDirective, - 282 => CXCursor_OMPParallelMasterTaskLoopDirective, - 283 => CXCursor_OMPMasterTaskLoopSimdDirective, - 284 => CXCursor_OMPParallelMasterTaskLoopSimdDirective, - 285 => CXCursor_OMPParallelMasterDirective, - 300 => CXCursor_TranslationUnit, - 400 => CXCursor_FirstAttr, - 401 => CXCursor_IBActionAttr, - 402 => CXCursor_IBOutletAttr, - 403 => CXCursor_IBOutletCollectionAttr, - 404 => CXCursor_CXXFinalAttr, - 405 => CXCursor_CXXOverrideAttr, - 406 => CXCursor_AnnotateAttr, - 407 => CXCursor_AsmLabelAttr, - 408 => CXCursor_PackedAttr, - 409 => CXCursor_PureAttr, - 410 => CXCursor_ConstAttr, - 411 => CXCursor_NoDuplicateAttr, - 412 => CXCursor_CUDAConstantAttr, - 413 => CXCursor_CUDADeviceAttr, - 414 => CXCursor_CUDAGlobalAttr, - 415 => CXCursor_CUDAHostAttr, - 416 => CXCursor_CUDASharedAttr, - 417 => CXCursor_VisibilityAttr, - 418 => CXCursor_DLLExport, - 419 => CXCursor_DLLImport, - 420 => CXCursor_NSReturnsRetained, - 421 => CXCursor_NSReturnsNotRetained, - 422 => CXCursor_NSReturnsAutoreleased, - 423 => CXCursor_NSConsumesSelf, - 424 => CXCursor_NSConsumed, - 425 => CXCursor_ObjCException, - 426 => CXCursor_ObjCNSObject, - 427 => CXCursor_ObjCIndependentClass, - 428 => CXCursor_ObjCPreciseLifetime, - 429 => CXCursor_ObjCReturnsInnerPointer, - 430 => CXCursor_ObjCRequiresSuper, - 431 => CXCursor_ObjCRootClass, - 432 => CXCursor_ObjCSubclassingRestricted, - 433 => CXCursor_ObjCExplicitProtocolImpl, - 434 => CXCursor_ObjCDesignatedInitializer, - 435 => CXCursor_ObjCRuntimeVisible, - 436 => CXCursor_ObjCBoxable, - 437 => CXCursor_FlagEnum, - 438 => CXCursor_ConvergentAttr, - 439 => CXCursor_WarnUnusedAttr, - 440 => CXCursor_WarnUnusedResultAttr, - 441 => CXCursor_AlignedAttr, - 500 => CXCursor_PreprocessingDirective, - 501 => CXCursor_MacroDefinition, - 502 => CXCursor_MacroExpansion, - 503 => CXCursor_InclusionDirective, - 600 => CXCursor_ModuleImportDecl, - 601 => CXCursor_TypeAliasTemplateDecl, - 602 => CXCursor_StaticAssert, - 603 => CXCursor_FriendDecl, - 700 => CXCursor_OverloadCandidate, - _ => throw ArgumentError('Unknown value for CXCursorKind: $value'), - }; - - @override - String toString() { - if (this == CXCursor_UnexposedDecl) - return "CXCursorKind.CXCursor_UnexposedDecl, CXCursorKind.CXCursor_FirstDecl"; - if (this == CXCursor_CXXAccessSpecifier) - return "CXCursorKind.CXCursor_CXXAccessSpecifier, CXCursorKind.CXCursor_LastDecl"; - if (this == CXCursor_FirstRef) - return "CXCursorKind.CXCursor_FirstRef, CXCursorKind.CXCursor_ObjCSuperClassRef"; - if (this == CXCursor_VariableRef) - return "CXCursorKind.CXCursor_VariableRef, CXCursorKind.CXCursor_LastRef"; - if (this == CXCursor_FirstInvalid) - return "CXCursorKind.CXCursor_FirstInvalid, CXCursorKind.CXCursor_InvalidFile"; - if (this == CXCursor_InvalidCode) - return "CXCursorKind.CXCursor_InvalidCode, CXCursorKind.CXCursor_LastInvalid"; - if (this == CXCursor_FirstExpr) - return "CXCursorKind.CXCursor_FirstExpr, CXCursorKind.CXCursor_UnexposedExpr"; - if (this == CXCursor_FixedPointLiteral) - return "CXCursorKind.CXCursor_FixedPointLiteral, CXCursorKind.CXCursor_LastExpr"; - if (this == CXCursor_FirstStmt) - return "CXCursorKind.CXCursor_FirstStmt, CXCursorKind.CXCursor_UnexposedStmt"; - if (this == CXCursor_GCCAsmStmt) - return "CXCursorKind.CXCursor_GCCAsmStmt, CXCursorKind.CXCursor_AsmStmt"; - if (this == CXCursor_OMPParallelMasterDirective) - return "CXCursorKind.CXCursor_OMPParallelMasterDirective, CXCursorKind.CXCursor_LastStmt"; - if (this == CXCursor_FirstAttr) - return "CXCursorKind.CXCursor_FirstAttr, CXCursorKind.CXCursor_UnexposedAttr"; - if (this == CXCursor_AlignedAttr) - return "CXCursorKind.CXCursor_AlignedAttr, CXCursorKind.CXCursor_LastAttr"; - if (this == CXCursor_PreprocessingDirective) - return "CXCursorKind.CXCursor_PreprocessingDirective, CXCursorKind.CXCursor_FirstPreprocessing"; - if (this == CXCursor_MacroExpansion) - return "CXCursorKind.CXCursor_MacroExpansion, CXCursorKind.CXCursor_MacroInstantiation"; - if (this == CXCursor_InclusionDirective) - return "CXCursorKind.CXCursor_InclusionDirective, CXCursorKind.CXCursor_LastPreprocessing"; - if (this == CXCursor_ModuleImportDecl) - return "CXCursorKind.CXCursor_ModuleImportDecl, CXCursorKind.CXCursor_FirstExtraDecl"; - if (this == CXCursor_FriendDecl) - return "CXCursorKind.CXCursor_FriendDecl, CXCursorKind.CXCursor_LastExtraDecl"; - return super.toString(); - } -} - -/// A fast container representing a set of CXCursors. -typedef CXCursorSet = ffi.Pointer; - -final class CXCursorSetImpl extends ffi.Opaque {} - -/// Visitor invoked for each cursor found by a traversal. -typedef CXCursorVisitor = - ffi.Pointer>; -typedef CXCursorVisitorFunction = - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ); -typedef DartCXCursorVisitorFunction = - CXChildVisitResult Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ); - -/// Describes the exception specification of a cursor. -enum CXCursor_ExceptionSpecificationKind { - /// The cursor has no exception specification. - CXCursor_ExceptionSpecificationKind_None(0), - - /// The cursor has exception specification throw() - CXCursor_ExceptionSpecificationKind_DynamicNone(1), - - /// The cursor has exception specification throw(T1, T2) - CXCursor_ExceptionSpecificationKind_Dynamic(2), - - /// The cursor has exception specification throw(...). - CXCursor_ExceptionSpecificationKind_MSAny(3), - - /// The cursor has exception specification basic noexcept. - CXCursor_ExceptionSpecificationKind_BasicNoexcept(4), - - /// The cursor has exception specification computed noexcept. - CXCursor_ExceptionSpecificationKind_ComputedNoexcept(5), - - /// The exception specification has not yet been evaluated. - CXCursor_ExceptionSpecificationKind_Unevaluated(6), - - /// The exception specification has not yet been instantiated. - CXCursor_ExceptionSpecificationKind_Uninstantiated(7), - - /// The exception specification has not been parsed yet. - CXCursor_ExceptionSpecificationKind_Unparsed(8), - - /// The cursor has a __declspec(nothrow) exception specification. - CXCursor_ExceptionSpecificationKind_NoThrow(9); - - final int value; - const CXCursor_ExceptionSpecificationKind(this.value); - - static CXCursor_ExceptionSpecificationKind fromValue(int value) => - switch (value) { - 0 => CXCursor_ExceptionSpecificationKind_None, - 1 => CXCursor_ExceptionSpecificationKind_DynamicNone, - 2 => CXCursor_ExceptionSpecificationKind_Dynamic, - 3 => CXCursor_ExceptionSpecificationKind_MSAny, - 4 => CXCursor_ExceptionSpecificationKind_BasicNoexcept, - 5 => CXCursor_ExceptionSpecificationKind_ComputedNoexcept, - 6 => CXCursor_ExceptionSpecificationKind_Unevaluated, - 7 => CXCursor_ExceptionSpecificationKind_Uninstantiated, - 8 => CXCursor_ExceptionSpecificationKind_Unparsed, - 9 => CXCursor_ExceptionSpecificationKind_NoThrow, - _ => throw ArgumentError( - 'Unknown value for CXCursor_ExceptionSpecificationKind: $value', - ), - }; -} - -/// A single diagnostic, containing the diagnostic's severity, location, text, -/// source ranges, and fix-it hints. -typedef CXDiagnostic = ffi.Pointer; - -/// Options to control the display of diagnostics. -enum CXDiagnosticDisplayOptions { - /// Display the source-location information where the diagnostic was located. - CXDiagnostic_DisplaySourceLocation(1), - - /// If displaying the source-location information of the diagnostic, also - /// include the column number. - CXDiagnostic_DisplayColumn(2), - - /// If displaying the source-location information of the diagnostic, also - /// include information about source ranges in a machine-parsable format. - CXDiagnostic_DisplaySourceRanges(4), - - /// Display the option name associated with this diagnostic, if any. - CXDiagnostic_DisplayOption(8), - - /// Display the category number associated with this diagnostic, if any. - CXDiagnostic_DisplayCategoryId(16), - - /// Display the category name associated with this diagnostic, if any. - CXDiagnostic_DisplayCategoryName(32); - - final int value; - const CXDiagnosticDisplayOptions(this.value); - - static CXDiagnosticDisplayOptions fromValue(int value) => switch (value) { - 1 => CXDiagnostic_DisplaySourceLocation, - 2 => CXDiagnostic_DisplayColumn, - 4 => CXDiagnostic_DisplaySourceRanges, - 8 => CXDiagnostic_DisplayOption, - 16 => CXDiagnostic_DisplayCategoryId, - 32 => CXDiagnostic_DisplayCategoryName, - _ => throw ArgumentError( - 'Unknown value for CXDiagnosticDisplayOptions: $value', - ), - }; -} - -/// A group of CXDiagnostics. -typedef CXDiagnosticSet = ffi.Pointer; - -/// Describes the severity of a particular diagnostic. -enum CXDiagnosticSeverity { - /// A diagnostic that has been suppressed, e.g., by a command-line option. - CXDiagnostic_Ignored(0), - - /// This diagnostic is a note that should be attached to the previous - /// (non-note) diagnostic. - CXDiagnostic_Note(1), - - /// This diagnostic indicates suspicious code that may not be wrong. - CXDiagnostic_Warning(2), - - /// This diagnostic indicates that the code is ill-formed. - CXDiagnostic_Error(3), - - /// This diagnostic indicates that the code is ill-formed such that future - /// parser recovery is unlikely to produce useful results. - CXDiagnostic_Fatal(4); - - final int value; - const CXDiagnosticSeverity(this.value); - - static CXDiagnosticSeverity fromValue(int value) => switch (value) { - 0 => CXDiagnostic_Ignored, - 1 => CXDiagnostic_Note, - 2 => CXDiagnostic_Warning, - 3 => CXDiagnostic_Error, - 4 => CXDiagnostic_Fatal, - _ => throw ArgumentError('Unknown value for CXDiagnosticSeverity: $value'), - }; -} - -/// Error codes returned by libclang routines. -enum CXErrorCode { - /// No error. - CXError_Success(0), - - /// A generic error code, no further details are available. - CXError_Failure(1), - - /// libclang crashed while performing the requested operation. - CXError_Crashed(2), - - /// The function detected that the arguments violate the function contract. - CXError_InvalidArguments(3), - - /// An AST deserialization error has occurred. - CXError_ASTReadError(4); - - final int value; - const CXErrorCode(this.value); - - static CXErrorCode fromValue(int value) => switch (value) { - 0 => CXError_Success, - 1 => CXError_Failure, - 2 => CXError_Crashed, - 3 => CXError_InvalidArguments, - 4 => CXError_ASTReadError, - _ => throw ArgumentError('Unknown value for CXErrorCode: $value'), - }; -} - -/// Evaluation result of a cursor -typedef CXEvalResult = ffi.Pointer; - -enum CXEvalResultKind { - CXEval_Int(1), - CXEval_Float(2), - CXEval_ObjCStrLiteral(3), - CXEval_StrLiteral(4), - CXEval_CFStr(5), - CXEval_Other(6), - CXEval_UnExposed(0); - - final int value; - const CXEvalResultKind(this.value); - - static CXEvalResultKind fromValue(int value) => switch (value) { - 1 => CXEval_Int, - 2 => CXEval_Float, - 3 => CXEval_ObjCStrLiteral, - 4 => CXEval_StrLiteral, - 5 => CXEval_CFStr, - 6 => CXEval_Other, - 0 => CXEval_UnExposed, - _ => throw ArgumentError('Unknown value for CXEvalResultKind: $value'), - }; -} - -/// Visitor invoked for each field found by a traversal. -typedef CXFieldVisitor = - ffi.Pointer>; -typedef CXFieldVisitorFunction = - ffi.UnsignedInt Function(CXCursor C, CXClientData client_data); -typedef DartCXFieldVisitorFunction = - CXVisitorResult Function(CXCursor C, CXClientData client_data); - -/// A particular source file that is part of a translation unit. -typedef CXFile = ffi.Pointer; - -/// Uniquely identifies a CXFile, that refers to the same underlying file, -/// across an indexing session. -final class CXFileUniqueID extends ffi.Struct { - @ffi.Array.multi([3]) - external ffi.Array data; -} - -enum CXGlobalOptFlags { - /// Used to indicate that no special CXIndex options are needed. - CXGlobalOpt_None(0), - - /// Used to indicate that threads that libclang creates for indexing purposes - /// should use background priority. - CXGlobalOpt_ThreadBackgroundPriorityForIndexing(1), - - /// Used to indicate that threads that libclang creates for editing purposes - /// should use background priority. - CXGlobalOpt_ThreadBackgroundPriorityForEditing(2), - - /// Used to indicate that all threads that libclang creates should use - /// background priority. - CXGlobalOpt_ThreadBackgroundPriorityForAll(3); - - final int value; - const CXGlobalOptFlags(this.value); - - static CXGlobalOptFlags fromValue(int value) => switch (value) { - 0 => CXGlobalOpt_None, - 1 => CXGlobalOpt_ThreadBackgroundPriorityForIndexing, - 2 => CXGlobalOpt_ThreadBackgroundPriorityForEditing, - 3 => CXGlobalOpt_ThreadBackgroundPriorityForAll, - _ => throw ArgumentError('Unknown value for CXGlobalOptFlags: $value'), - }; -} - -final class CXIdxAttrInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int kindAsInt; - - CXIdxAttrKind get kind => CXIdxAttrKind.fromValue(kindAsInt); - set kind(CXIdxAttrKind value) => kindAsInt = value.value; - - external CXCursor cursor; - - external CXIdxLoc loc; -} - -enum CXIdxAttrKind { - CXIdxAttr_Unexposed(0), - CXIdxAttr_IBAction(1), - CXIdxAttr_IBOutlet(2), - CXIdxAttr_IBOutletCollection(3); - - final int value; - const CXIdxAttrKind(this.value); - - static CXIdxAttrKind fromValue(int value) => switch (value) { - 0 => CXIdxAttr_Unexposed, - 1 => CXIdxAttr_IBAction, - 2 => CXIdxAttr_IBOutlet, - 3 => CXIdxAttr_IBOutletCollection, - _ => throw ArgumentError('Unknown value for CXIdxAttrKind: $value'), - }; -} - -final class CXIdxBaseClassInfo extends ffi.Struct { - external ffi.Pointer base; - - external CXCursor cursor; - - external CXIdxLoc loc; -} - -final class CXIdxCXXClassDeclInfo extends ffi.Struct { - external ffi.Pointer declInfo; - - external ffi.Pointer> bases; - - @ffi.UnsignedInt() - external int numBases; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer declInfo, - required ffi.Pointer> bases, - required int numBases, - }) => $allocator() - ..ref.declInfo = declInfo - ..ref.bases = bases - ..ref.numBases = numBases; -} - -/// The client's data object that is associated with an AST file (PCH or -/// module). -typedef CXIdxClientASTFile = ffi.Pointer; - -/// The client's data object that is associated with a semantic container of -/// entities. -typedef CXIdxClientContainer = ffi.Pointer; - -/// The client's data object that is associated with a semantic entity. -typedef CXIdxClientEntity = ffi.Pointer; - -/// The client's data object that is associated with a CXFile. -typedef CXIdxClientFile = ffi.Pointer; - -final class CXIdxContainerInfo extends ffi.Struct { - external CXCursor cursor; -} - -final class CXIdxDeclInfo extends ffi.Struct { - external ffi.Pointer entityInfo; - - external CXCursor cursor; - - external CXIdxLoc loc; - - external ffi.Pointer semanticContainer; - - /// Generally same as #semanticContainer but can be different in cases like - /// out-of-line C++ member functions. - external ffi.Pointer lexicalContainer; - - @ffi.Int() - external int isRedeclaration; - - @ffi.Int() - external int isDefinition; - - @ffi.Int() - external int isContainer; - - external ffi.Pointer declAsContainer; - - /// Whether the declaration exists in code or was created implicitly by the - /// compiler, e.g. implicit Objective-C methods for properties. - @ffi.Int() - external int isImplicit; - - external ffi.Pointer> attributes; - - @ffi.UnsignedInt() - external int numAttributes; - - @ffi.UnsignedInt() - external int flags; -} - -enum CXIdxDeclInfoFlags { - CXIdxDeclFlag_Skipped(1); - - final int value; - const CXIdxDeclInfoFlags(this.value); - - static CXIdxDeclInfoFlags fromValue(int value) => switch (value) { - 1 => CXIdxDeclFlag_Skipped, - _ => throw ArgumentError('Unknown value for CXIdxDeclInfoFlags: $value'), - }; -} - -/// Extra C++ template information for an entity. This can apply to: -/// CXIdxEntity_Function CXIdxEntity_CXXClass CXIdxEntity_CXXStaticMethod -/// CXIdxEntity_CXXInstanceMethod CXIdxEntity_CXXConstructor -/// CXIdxEntity_CXXConversionFunction CXIdxEntity_CXXTypeAlias -enum CXIdxEntityCXXTemplateKind { - CXIdxEntity_NonTemplate(0), - CXIdxEntity_Template(1), - CXIdxEntity_TemplatePartialSpecialization(2), - CXIdxEntity_TemplateSpecialization(3); - - final int value; - const CXIdxEntityCXXTemplateKind(this.value); - - static CXIdxEntityCXXTemplateKind fromValue(int value) => switch (value) { - 0 => CXIdxEntity_NonTemplate, - 1 => CXIdxEntity_Template, - 2 => CXIdxEntity_TemplatePartialSpecialization, - 3 => CXIdxEntity_TemplateSpecialization, - _ => throw ArgumentError( - 'Unknown value for CXIdxEntityCXXTemplateKind: $value', - ), - }; -} - -final class CXIdxEntityInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int kindAsInt; - - CXIdxEntityKind get kind => CXIdxEntityKind.fromValue(kindAsInt); - set kind(CXIdxEntityKind value) => kindAsInt = value.value; - - @ffi.UnsignedInt() - external int templateKindAsInt; - - CXIdxEntityCXXTemplateKind get templateKind => - CXIdxEntityCXXTemplateKind.fromValue(templateKindAsInt); - set templateKind(CXIdxEntityCXXTemplateKind value) => - templateKindAsInt = value.value; - - @ffi.UnsignedInt() - external int langAsInt; - - CXIdxEntityLanguage get lang => CXIdxEntityLanguage.fromValue(langAsInt); - set lang(CXIdxEntityLanguage value) => langAsInt = value.value; - - external ffi.Pointer name; - - external ffi.Pointer USR; - - external CXCursor cursor; - - external ffi.Pointer> attributes; - - @ffi.UnsignedInt() - external int numAttributes; -} - -enum CXIdxEntityKind { - CXIdxEntity_Unexposed(0), - CXIdxEntity_Typedef(1), - CXIdxEntity_Function(2), - CXIdxEntity_Variable(3), - CXIdxEntity_Field(4), - CXIdxEntity_EnumConstant(5), - CXIdxEntity_ObjCClass(6), - CXIdxEntity_ObjCProtocol(7), - CXIdxEntity_ObjCCategory(8), - CXIdxEntity_ObjCInstanceMethod(9), - CXIdxEntity_ObjCClassMethod(10), - CXIdxEntity_ObjCProperty(11), - CXIdxEntity_ObjCIvar(12), - CXIdxEntity_Enum(13), - CXIdxEntity_Struct(14), - CXIdxEntity_Union(15), - CXIdxEntity_CXXClass(16), - CXIdxEntity_CXXNamespace(17), - CXIdxEntity_CXXNamespaceAlias(18), - CXIdxEntity_CXXStaticVariable(19), - CXIdxEntity_CXXStaticMethod(20), - CXIdxEntity_CXXInstanceMethod(21), - CXIdxEntity_CXXConstructor(22), - CXIdxEntity_CXXDestructor(23), - CXIdxEntity_CXXConversionFunction(24), - CXIdxEntity_CXXTypeAlias(25), - CXIdxEntity_CXXInterface(26); - - final int value; - const CXIdxEntityKind(this.value); - - static CXIdxEntityKind fromValue(int value) => switch (value) { - 0 => CXIdxEntity_Unexposed, - 1 => CXIdxEntity_Typedef, - 2 => CXIdxEntity_Function, - 3 => CXIdxEntity_Variable, - 4 => CXIdxEntity_Field, - 5 => CXIdxEntity_EnumConstant, - 6 => CXIdxEntity_ObjCClass, - 7 => CXIdxEntity_ObjCProtocol, - 8 => CXIdxEntity_ObjCCategory, - 9 => CXIdxEntity_ObjCInstanceMethod, - 10 => CXIdxEntity_ObjCClassMethod, - 11 => CXIdxEntity_ObjCProperty, - 12 => CXIdxEntity_ObjCIvar, - 13 => CXIdxEntity_Enum, - 14 => CXIdxEntity_Struct, - 15 => CXIdxEntity_Union, - 16 => CXIdxEntity_CXXClass, - 17 => CXIdxEntity_CXXNamespace, - 18 => CXIdxEntity_CXXNamespaceAlias, - 19 => CXIdxEntity_CXXStaticVariable, - 20 => CXIdxEntity_CXXStaticMethod, - 21 => CXIdxEntity_CXXInstanceMethod, - 22 => CXIdxEntity_CXXConstructor, - 23 => CXIdxEntity_CXXDestructor, - 24 => CXIdxEntity_CXXConversionFunction, - 25 => CXIdxEntity_CXXTypeAlias, - 26 => CXIdxEntity_CXXInterface, - _ => throw ArgumentError('Unknown value for CXIdxEntityKind: $value'), - }; -} - -enum CXIdxEntityLanguage { - CXIdxEntityLang_None(0), - CXIdxEntityLang_C(1), - CXIdxEntityLang_ObjC(2), - CXIdxEntityLang_CXX(3), - CXIdxEntityLang_Swift(4); - - final int value; - const CXIdxEntityLanguage(this.value); - - static CXIdxEntityLanguage fromValue(int value) => switch (value) { - 0 => CXIdxEntityLang_None, - 1 => CXIdxEntityLang_C, - 2 => CXIdxEntityLang_ObjC, - 3 => CXIdxEntityLang_CXX, - 4 => CXIdxEntityLang_Swift, - _ => throw ArgumentError('Unknown value for CXIdxEntityLanguage: $value'), - }; -} - -/// Data for IndexerCallbacks#indexEntityReference. -final class CXIdxEntityRefInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int kindAsInt; - - CXIdxEntityRefKind get kind => CXIdxEntityRefKind.fromValue(kindAsInt); - set kind(CXIdxEntityRefKind value) => kindAsInt = value.value; - - /// Reference cursor. - external CXCursor cursor; - - external CXIdxLoc loc; - - /// The entity that gets referenced. - external ffi.Pointer referencedEntity; - - /// Immediate "parent" of the reference. For example: - external ffi.Pointer parentEntity; - - /// Lexical container context of the reference. - external ffi.Pointer container; - - /// Sets of symbol roles of the reference. - @ffi.UnsignedInt() - external int roleAsInt; - - CXSymbolRole get role => CXSymbolRole.fromValue(roleAsInt); - set role(CXSymbolRole value) => roleAsInt = value.value; -} - -/// Data for IndexerCallbacks#indexEntityReference. -enum CXIdxEntityRefKind { - /// The entity is referenced directly in user's code. - CXIdxEntityRef_Direct(1), - - /// An implicit reference, e.g. a reference of an Objective-C method via the - /// dot syntax. - CXIdxEntityRef_Implicit(2); - - final int value; - const CXIdxEntityRefKind(this.value); - - static CXIdxEntityRefKind fromValue(int value) => switch (value) { - 1 => CXIdxEntityRef_Direct, - 2 => CXIdxEntityRef_Implicit, - _ => throw ArgumentError('Unknown value for CXIdxEntityRefKind: $value'), - }; -} - -final class CXIdxIBOutletCollectionAttrInfo extends ffi.Struct { - external ffi.Pointer attrInfo; - - external ffi.Pointer objcClass; - - external CXCursor classCursor; - - external CXIdxLoc classLoc; -} - -/// Data for IndexerCallbacks#importedASTFile. -final class CXIdxImportedASTFileInfo extends ffi.Struct { - /// Top level AST file containing the imported PCH, module or submodule. - external CXFile file; - - /// The imported module or NULL if the AST file is a PCH. - external CXModule module; - - /// Location where the file is imported. Applicable only for modules. - external CXIdxLoc loc; - - /// Non-zero if an inclusion directive was automatically turned into a module - /// import. Applicable only for modules. - @ffi.Int() - external int isImplicit; -} - -/// Data for ppIncludedFile callback. -final class CXIdxIncludedFileInfo extends ffi.Struct { - /// Location of '#' in the #include/#import directive. - external CXIdxLoc hashLoc; - - /// Filename as written in the #include/#import directive. - external ffi.Pointer filename; - - /// The actual file that the #include/#import directive resolved to. - external CXFile file; - - @ffi.Int() - external int isImport; - - @ffi.Int() - external int isAngled; - - /// Non-zero if the directive was automatically turned into a module import. - @ffi.Int() - external int isModuleImport; -} - -/// Source location passed to index callbacks. -final class CXIdxLoc extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array> ptr_data; - - @ffi.UnsignedInt() - external int int_data; -} - -final class CXIdxObjCCategoryDeclInfo extends ffi.Struct { - external ffi.Pointer containerInfo; - - external ffi.Pointer objcClass; - - external CXCursor classCursor; - - external CXIdxLoc classLoc; - - external ffi.Pointer protocols; -} - -final class CXIdxObjCContainerDeclInfo extends ffi.Struct { - external ffi.Pointer declInfo; - - @ffi.UnsignedInt() - external int kindAsInt; - - CXIdxObjCContainerKind get kind => - CXIdxObjCContainerKind.fromValue(kindAsInt); - set kind(CXIdxObjCContainerKind value) => kindAsInt = value.value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer declInfo, - required CXIdxObjCContainerKind kind, - }) => $allocator() - ..ref.declInfo = declInfo - ..ref.kind = kind; -} - -enum CXIdxObjCContainerKind { - CXIdxObjCContainer_ForwardRef(0), - CXIdxObjCContainer_Interface(1), - CXIdxObjCContainer_Implementation(2); - - final int value; - const CXIdxObjCContainerKind(this.value); - - static CXIdxObjCContainerKind fromValue(int value) => switch (value) { - 0 => CXIdxObjCContainer_ForwardRef, - 1 => CXIdxObjCContainer_Interface, - 2 => CXIdxObjCContainer_Implementation, - _ => throw ArgumentError( - 'Unknown value for CXIdxObjCContainerKind: $value', - ), - }; -} - -final class CXIdxObjCInterfaceDeclInfo extends ffi.Struct { - external ffi.Pointer containerInfo; - - external ffi.Pointer superInfo; - - external ffi.Pointer protocols; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer containerInfo, - required ffi.Pointer superInfo, - required ffi.Pointer protocols, - }) => $allocator() - ..ref.containerInfo = containerInfo - ..ref.superInfo = superInfo - ..ref.protocols = protocols; -} - -final class CXIdxObjCPropertyDeclInfo extends ffi.Struct { - external ffi.Pointer declInfo; - - external ffi.Pointer getter; - - external ffi.Pointer setter; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer declInfo, - required ffi.Pointer getter, - required ffi.Pointer setter, - }) => $allocator() - ..ref.declInfo = declInfo - ..ref.getter = getter - ..ref.setter = setter; -} - -final class CXIdxObjCProtocolRefInfo extends ffi.Struct { - external ffi.Pointer protocol; - - external CXCursor cursor; - - external CXIdxLoc loc; -} - -final class CXIdxObjCProtocolRefListInfo extends ffi.Struct { - external ffi.Pointer> protocols; - - @ffi.UnsignedInt() - external int numProtocols; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer> protocols, - required int numProtocols, - }) => $allocator() - ..ref.protocols = protocols - ..ref.numProtocols = numProtocols; -} - -/// Visitor invoked for each file in a translation unit (used with -/// clang_getInclusions()). -typedef CXInclusionVisitor = - ffi.Pointer>; -typedef CXInclusionVisitorFunction = - ffi.Void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - CXClientData client_data, - ); -typedef DartCXInclusionVisitorFunction = - void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - int include_len, - CXClientData client_data, - ); - -/// An "index" that consists of a set of translation units that would typically -/// be linked together into an executable or library. -typedef CXIndex = ffi.Pointer; - -/// An indexing action/session, to be applied to one or multiple translation -/// units. -typedef CXIndexAction = ffi.Pointer; - -enum CXIndexOptFlags { - /// Used to indicate that no special indexing options are needed. - CXIndexOpt_None(0), - - /// Used to indicate that IndexerCallbacks#indexEntityReference should be - /// invoked for only one reference of an entity per source file that does not - /// also include a declaration/definition of the entity. - CXIndexOpt_SuppressRedundantRefs(1), - - /// Function-local symbols should be indexed. If this is not set - /// function-local symbols will be ignored. - CXIndexOpt_IndexFunctionLocalSymbols(2), - - /// Implicit function/class template instantiations should be indexed. If this - /// is not set, implicit instantiations will be ignored. - CXIndexOpt_IndexImplicitTemplateInstantiations(4), - - /// Suppress all compiler warnings when parsing for indexing. - CXIndexOpt_SuppressWarnings(8), - - /// Skip a function/method body that was already parsed during an indexing - /// session associated with a CXIndexAction object. Bodies in system headers - /// are always skipped. - CXIndexOpt_SkipParsedBodiesInSession(16); - - final int value; - const CXIndexOptFlags(this.value); - - static CXIndexOptFlags fromValue(int value) => switch (value) { - 0 => CXIndexOpt_None, - 1 => CXIndexOpt_SuppressRedundantRefs, - 2 => CXIndexOpt_IndexFunctionLocalSymbols, - 4 => CXIndexOpt_IndexImplicitTemplateInstantiations, - 8 => CXIndexOpt_SuppressWarnings, - 16 => CXIndexOpt_SkipParsedBodiesInSession, - _ => throw ArgumentError('Unknown value for CXIndexOptFlags: $value'), - }; -} - -/// Describe the "language" of the entity referred to by a cursor. -enum CXLanguageKind { - CXLanguage_Invalid(0), - CXLanguage_C(1), - CXLanguage_ObjC(2), - CXLanguage_CPlusPlus(3); - - final int value; - const CXLanguageKind(this.value); - - static CXLanguageKind fromValue(int value) => switch (value) { - 0 => CXLanguage_Invalid, - 1 => CXLanguage_C, - 2 => CXLanguage_ObjC, - 3 => CXLanguage_CPlusPlus, - _ => throw ArgumentError('Unknown value for CXLanguageKind: $value'), - }; -} - -/// Describe the linkage of the entity referred to by a cursor. -enum CXLinkageKind { - /// This value indicates that no linkage information is available for a - /// provided CXCursor. - CXLinkage_Invalid(0), - - /// This is the linkage for variables, parameters, and so on that have - /// automatic storage. This covers normal (non-extern) local variables. - CXLinkage_NoLinkage(1), - - /// This is the linkage for static variables and static functions. - CXLinkage_Internal(2), - - /// This is the linkage for entities with external linkage that live in C++ - /// anonymous namespaces. - CXLinkage_UniqueExternal(3), - - /// This is the linkage for entities with true, external linkage. - CXLinkage_External(4); - - final int value; - const CXLinkageKind(this.value); - - static CXLinkageKind fromValue(int value) => switch (value) { - 0 => CXLinkage_Invalid, - 1 => CXLinkage_NoLinkage, - 2 => CXLinkage_Internal, - 3 => CXLinkage_UniqueExternal, - 4 => CXLinkage_External, - _ => throw ArgumentError('Unknown value for CXLinkageKind: $value'), - }; -} - -/// Describes the kind of error that occurred (if any) in a call to -/// clang_loadDiagnostics. -enum CXLoadDiag_Error { - /// Indicates that no error occurred. - CXLoadDiag_None(0), - - /// Indicates that an unknown error occurred while attempting to deserialize - /// diagnostics. - CXLoadDiag_Unknown(1), - - /// Indicates that the file containing the serialized diagnostics could not be - /// opened. - CXLoadDiag_CannotLoad(2), - - /// Indicates that the serialized diagnostics file is invalid or corrupt. - CXLoadDiag_InvalidFile(3); - - final int value; - const CXLoadDiag_Error(this.value); - - static CXLoadDiag_Error fromValue(int value) => switch (value) { - 0 => CXLoadDiag_None, - 1 => CXLoadDiag_Unknown, - 2 => CXLoadDiag_CannotLoad, - 3 => CXLoadDiag_InvalidFile, - _ => throw ArgumentError('Unknown value for CXLoadDiag_Error: $value'), - }; -} - -/// The functions in this group provide access to information about modules. -typedef CXModule = ffi.Pointer; - -/// Object encapsulating information about a module.map file. -typedef CXModuleMapDescriptor = ffi.Pointer; - -final class CXModuleMapDescriptorImpl extends ffi.Opaque {} - -enum CXNameRefFlags { - /// Include the nested-name-specifier, e.g. Foo:: in x.Foo::y, in the range. - CXNameRange_WantQualifier(1), - - /// Include the explicit template arguments, e.g. in x.f, in the - /// range. - CXNameRange_WantTemplateArgs(2), - - /// If the name is non-contiguous, return the full spanning range. - CXNameRange_WantSinglePiece(4); - - final int value; - const CXNameRefFlags(this.value); - - static CXNameRefFlags fromValue(int value) => switch (value) { - 1 => CXNameRange_WantQualifier, - 2 => CXNameRange_WantTemplateArgs, - 4 => CXNameRange_WantSinglePiece, - _ => throw ArgumentError('Unknown value for CXNameRefFlags: $value'), - }; -} - -/// 'Qualifiers' written next to the return and parameter types in Objective-C -/// method declarations. -enum CXObjCDeclQualifierKind { - CXObjCDeclQualifier_None(0), - CXObjCDeclQualifier_In(1), - CXObjCDeclQualifier_Inout(2), - CXObjCDeclQualifier_Out(4), - CXObjCDeclQualifier_Bycopy(8), - CXObjCDeclQualifier_Byref(16), - CXObjCDeclQualifier_Oneway(32); - - final int value; - const CXObjCDeclQualifierKind(this.value); - - static CXObjCDeclQualifierKind fromValue(int value) => switch (value) { - 0 => CXObjCDeclQualifier_None, - 1 => CXObjCDeclQualifier_In, - 2 => CXObjCDeclQualifier_Inout, - 4 => CXObjCDeclQualifier_Out, - 8 => CXObjCDeclQualifier_Bycopy, - 16 => CXObjCDeclQualifier_Byref, - 32 => CXObjCDeclQualifier_Oneway, - _ => throw ArgumentError( - 'Unknown value for CXObjCDeclQualifierKind: $value', - ), - }; -} - -/// Property attributes for a CXCursor_ObjCPropertyDecl. -enum CXObjCPropertyAttrKind { - CXObjCPropertyAttr_noattr(0), - CXObjCPropertyAttr_readonly(1), - CXObjCPropertyAttr_getter(2), - CXObjCPropertyAttr_assign(4), - CXObjCPropertyAttr_readwrite(8), - CXObjCPropertyAttr_retain(16), - CXObjCPropertyAttr_copy(32), - CXObjCPropertyAttr_nonatomic(64), - CXObjCPropertyAttr_setter(128), - CXObjCPropertyAttr_atomic(256), - CXObjCPropertyAttr_weak(512), - CXObjCPropertyAttr_strong(1024), - CXObjCPropertyAttr_unsafe_unretained(2048), - CXObjCPropertyAttr_class(4096); - - final int value; - const CXObjCPropertyAttrKind(this.value); - - static CXObjCPropertyAttrKind fromValue(int value) => switch (value) { - 0 => CXObjCPropertyAttr_noattr, - 1 => CXObjCPropertyAttr_readonly, - 2 => CXObjCPropertyAttr_getter, - 4 => CXObjCPropertyAttr_assign, - 8 => CXObjCPropertyAttr_readwrite, - 16 => CXObjCPropertyAttr_retain, - 32 => CXObjCPropertyAttr_copy, - 64 => CXObjCPropertyAttr_nonatomic, - 128 => CXObjCPropertyAttr_setter, - 256 => CXObjCPropertyAttr_atomic, - 512 => CXObjCPropertyAttr_weak, - 1024 => CXObjCPropertyAttr_strong, - 2048 => CXObjCPropertyAttr_unsafe_unretained, - 4096 => CXObjCPropertyAttr_class, - _ => throw ArgumentError( - 'Unknown value for CXObjCPropertyAttrKind: $value', - ), - }; -} - -/// Describes the availability of a given entity on a particular platform, e.g., -/// a particular class might only be available on Mac OS 10.7 or newer. -final class CXPlatformAvailability extends ffi.Struct { - /// A string that describes the platform for which this structure provides - /// availability information. - external CXString Platform; - - /// The version number in which this entity was introduced. - external CXVersion Introduced; - - /// The version number in which this entity was deprecated (but is still - /// available). - external CXVersion Deprecated; - - /// The version number in which this entity was obsoleted, and therefore is no - /// longer available. - external CXVersion Obsoleted; - - /// Whether the entity is unconditionally unavailable on this platform. - @ffi.Int() - external int Unavailable; - - /// An optional message to provide to a user of this API, e.g., to suggest - /// replacement APIs. - external CXString Message; -} - -/// Opaque pointer representing a policy that controls pretty printing for -/// clang_getCursorPrettyPrinted. -typedef CXPrintingPolicy = ffi.Pointer; - -/// Properties for the printing policy. -enum CXPrintingPolicyProperty { - CXPrintingPolicy_Indentation(0), - CXPrintingPolicy_SuppressSpecifiers(1), - CXPrintingPolicy_SuppressTagKeyword(2), - CXPrintingPolicy_IncludeTagDefinition(3), - CXPrintingPolicy_SuppressScope(4), - CXPrintingPolicy_SuppressUnwrittenScope(5), - CXPrintingPolicy_SuppressInitializers(6), - CXPrintingPolicy_ConstantArraySizeAsWritten(7), - CXPrintingPolicy_AnonymousTagLocations(8), - CXPrintingPolicy_SuppressStrongLifetime(9), - CXPrintingPolicy_SuppressLifetimeQualifiers(10), - CXPrintingPolicy_SuppressTemplateArgsInCXXConstructors(11), - CXPrintingPolicy_Bool(12), - CXPrintingPolicy_Restrict(13), - CXPrintingPolicy_Alignof(14), - CXPrintingPolicy_UnderscoreAlignof(15), - CXPrintingPolicy_UseVoidForZeroParams(16), - CXPrintingPolicy_TerseOutput(17), - CXPrintingPolicy_PolishForDeclaration(18), - CXPrintingPolicy_Half(19), - CXPrintingPolicy_MSWChar(20), - CXPrintingPolicy_IncludeNewlines(21), - CXPrintingPolicy_MSVCFormatting(22), - CXPrintingPolicy_ConstantsAsWritten(23), - CXPrintingPolicy_SuppressImplicitBase(24), - CXPrintingPolicy_FullyQualifiedName(25); - - static const CXPrintingPolicy_LastProperty = - CXPrintingPolicy_FullyQualifiedName; - - final int value; - const CXPrintingPolicyProperty(this.value); - - static CXPrintingPolicyProperty fromValue(int value) => switch (value) { - 0 => CXPrintingPolicy_Indentation, - 1 => CXPrintingPolicy_SuppressSpecifiers, - 2 => CXPrintingPolicy_SuppressTagKeyword, - 3 => CXPrintingPolicy_IncludeTagDefinition, - 4 => CXPrintingPolicy_SuppressScope, - 5 => CXPrintingPolicy_SuppressUnwrittenScope, - 6 => CXPrintingPolicy_SuppressInitializers, - 7 => CXPrintingPolicy_ConstantArraySizeAsWritten, - 8 => CXPrintingPolicy_AnonymousTagLocations, - 9 => CXPrintingPolicy_SuppressStrongLifetime, - 10 => CXPrintingPolicy_SuppressLifetimeQualifiers, - 11 => CXPrintingPolicy_SuppressTemplateArgsInCXXConstructors, - 12 => CXPrintingPolicy_Bool, - 13 => CXPrintingPolicy_Restrict, - 14 => CXPrintingPolicy_Alignof, - 15 => CXPrintingPolicy_UnderscoreAlignof, - 16 => CXPrintingPolicy_UseVoidForZeroParams, - 17 => CXPrintingPolicy_TerseOutput, - 18 => CXPrintingPolicy_PolishForDeclaration, - 19 => CXPrintingPolicy_Half, - 20 => CXPrintingPolicy_MSWChar, - 21 => CXPrintingPolicy_IncludeNewlines, - 22 => CXPrintingPolicy_MSVCFormatting, - 23 => CXPrintingPolicy_ConstantsAsWritten, - 24 => CXPrintingPolicy_SuppressImplicitBase, - 25 => CXPrintingPolicy_FullyQualifiedName, - _ => throw ArgumentError( - 'Unknown value for CXPrintingPolicyProperty: $value', - ), - }; - - @override - String toString() { - if (this == CXPrintingPolicy_FullyQualifiedName) - return "CXPrintingPolicyProperty.CXPrintingPolicy_FullyQualifiedName, CXPrintingPolicyProperty.CXPrintingPolicy_LastProperty"; - return super.toString(); - } -} - -enum CXRefQualifierKind { - /// No ref-qualifier was provided. - CXRefQualifier_None(0), - - /// An lvalue ref-qualifier was provided ( &). - CXRefQualifier_LValue(1), - - /// An rvalue ref-qualifier was provided ( &&). - CXRefQualifier_RValue(2); - - final int value; - const CXRefQualifierKind(this.value); - - static CXRefQualifierKind fromValue(int value) => switch (value) { - 0 => CXRefQualifier_None, - 1 => CXRefQualifier_LValue, - 2 => CXRefQualifier_RValue, - _ => throw ArgumentError('Unknown value for CXRefQualifierKind: $value'), - }; -} - -/// A remapping of original source files and their translated files. -typedef CXRemapping = ffi.Pointer; - -/// Flags that control the reparsing of translation units. -enum CXReparse_Flags { - /// Used to indicate that no special reparsing options are needed. - CXReparse_None(0); - - final int value; - const CXReparse_Flags(this.value); - - static CXReparse_Flags fromValue(int value) => switch (value) { - 0 => CXReparse_None, - _ => throw ArgumentError('Unknown value for CXReparse_Flags: $value'), - }; -} - -enum CXResult { - /// Function returned successfully. - CXResult_Success(0), - - /// One of the parameters was invalid for the function. - CXResult_Invalid(1), - - /// The function was terminated by a callback (e.g. it returned CXVisit_Break) - CXResult_VisitBreak(2); - - final int value; - const CXResult(this.value); - - static CXResult fromValue(int value) => switch (value) { - 0 => CXResult_Success, - 1 => CXResult_Invalid, - 2 => CXResult_VisitBreak, - _ => throw ArgumentError('Unknown value for CXResult: $value'), - }; -} - -/// Describes the kind of error that occurred (if any) in a call to -/// clang_saveTranslationUnit(). -enum CXSaveError { - /// Indicates that no error occurred while saving a translation unit. - CXSaveError_None(0), - - /// Indicates that an unknown error occurred while attempting to save the - /// file. - CXSaveError_Unknown(1), - - /// Indicates that errors during translation prevented this attempt to save - /// the translation unit. - CXSaveError_TranslationErrors(2), - - /// Indicates that the translation unit to be saved was somehow invalid (e.g., - /// NULL). - CXSaveError_InvalidTU(3); - - final int value; - const CXSaveError(this.value); - - static CXSaveError fromValue(int value) => switch (value) { - 0 => CXSaveError_None, - 1 => CXSaveError_Unknown, - 2 => CXSaveError_TranslationErrors, - 3 => CXSaveError_InvalidTU, - _ => throw ArgumentError('Unknown value for CXSaveError: $value'), - }; -} - -/// Flags that control how translation units are saved. -enum CXSaveTranslationUnit_Flags { - /// Used to indicate that no special saving options are needed. - CXSaveTranslationUnit_None(0); - - final int value; - const CXSaveTranslationUnit_Flags(this.value); - - static CXSaveTranslationUnit_Flags fromValue(int value) => switch (value) { - 0 => CXSaveTranslationUnit_None, - _ => throw ArgumentError( - 'Unknown value for CXSaveTranslationUnit_Flags: $value', - ), - }; -} - -/// Identifies a specific source location within a translation unit. -final class CXSourceLocation extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array> ptr_data; - - @ffi.UnsignedInt() - external int int_data; -} - -/// Identifies a half-open character range in the source code. -final class CXSourceRange extends ffi.Struct { - @ffi.Array.multi([2]) - external ffi.Array> ptr_data; - - @ffi.UnsignedInt() - external int begin_int_data; - - @ffi.UnsignedInt() - external int end_int_data; -} - -/// Identifies an array of ranges. -final class CXSourceRangeList extends ffi.Struct { - /// The number of ranges in the ranges array. - @ffi.UnsignedInt() - external int count; - - /// An array of CXSourceRanges. - external ffi.Pointer ranges; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int count, - required ffi.Pointer ranges, - }) => $allocator() - ..ref.count = count - ..ref.ranges = ranges; -} - -/// A character string. -final class CXString extends ffi.Struct { - external ffi.Pointer data; - - @ffi.UnsignedInt() - external int private_flags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer data, - required int private_flags, - }) => $allocator() - ..ref.data = data - ..ref.private_flags = private_flags; -} - -final class CXStringSet extends ffi.Struct { - external ffi.Pointer Strings; - - @ffi.UnsignedInt() - external int Count; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer Strings, - required int Count, - }) => $allocator() - ..ref.Strings = Strings - ..ref.Count = Count; -} - -/// Roles that are attributed to symbol occurrences. -enum CXSymbolRole { - CXSymbolRole_None(0), - CXSymbolRole_Declaration(1), - CXSymbolRole_Definition(2), - CXSymbolRole_Reference(4), - CXSymbolRole_Read(8), - CXSymbolRole_Write(16), - CXSymbolRole_Call(32), - CXSymbolRole_Dynamic(64), - CXSymbolRole_AddressOf(128), - CXSymbolRole_Implicit(256); - - final int value; - const CXSymbolRole(this.value); - - static CXSymbolRole fromValue(int value) => switch (value) { - 0 => CXSymbolRole_None, - 1 => CXSymbolRole_Declaration, - 2 => CXSymbolRole_Definition, - 4 => CXSymbolRole_Reference, - 8 => CXSymbolRole_Read, - 16 => CXSymbolRole_Write, - 32 => CXSymbolRole_Call, - 64 => CXSymbolRole_Dynamic, - 128 => CXSymbolRole_AddressOf, - 256 => CXSymbolRole_Implicit, - _ => throw ArgumentError('Unknown value for CXSymbolRole: $value'), - }; -} - -/// Describe the "thread-local storage (TLS) kind" of the declaration referred -/// to by a cursor. -enum CXTLSKind { - CXTLS_None(0), - CXTLS_Dynamic(1), - CXTLS_Static(2); - - final int value; - const CXTLSKind(this.value); - - static CXTLSKind fromValue(int value) => switch (value) { - 0 => CXTLS_None, - 1 => CXTLS_Dynamic, - 2 => CXTLS_Static, - _ => throw ArgumentError('Unknown value for CXTLSKind: $value'), - }; -} - -/// The memory usage of a CXTranslationUnit, broken into categories. -final class CXTUResourceUsage extends ffi.Struct { - external ffi.Pointer data; - - @ffi.UnsignedInt() - external int numEntries; - - external ffi.Pointer entries; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer data, - required int numEntries, - required ffi.Pointer entries, - }) => $allocator() - ..ref.data = data - ..ref.numEntries = numEntries - ..ref.entries = entries; -} - -final class CXTUResourceUsageEntry extends ffi.Struct { - @ffi.UnsignedInt() - external int kindAsInt; - - CXTUResourceUsageKind get kind => CXTUResourceUsageKind.fromValue(kindAsInt); - set kind(CXTUResourceUsageKind value) => kindAsInt = value.value; - - @ffi.UnsignedLong() - external int amount; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CXTUResourceUsageKind kind, - required int amount, - }) => $allocator() - ..ref.kind = kind - ..ref.amount = amount; -} - -/// Categorizes how memory is being used by a translation unit. -enum CXTUResourceUsageKind { - CXTUResourceUsage_AST(1), - CXTUResourceUsage_Identifiers(2), - CXTUResourceUsage_Selectors(3), - CXTUResourceUsage_GlobalCompletionResults(4), - CXTUResourceUsage_SourceManagerContentCache(5), - CXTUResourceUsage_AST_SideTables(6), - CXTUResourceUsage_SourceManager_Membuffer_Malloc(7), - CXTUResourceUsage_SourceManager_Membuffer_MMap(8), - CXTUResourceUsage_ExternalASTSource_Membuffer_Malloc(9), - CXTUResourceUsage_ExternalASTSource_Membuffer_MMap(10), - CXTUResourceUsage_Preprocessor(11), - CXTUResourceUsage_PreprocessingRecord(12), - CXTUResourceUsage_SourceManager_DataStructures(13), - CXTUResourceUsage_Preprocessor_HeaderSearch(14); - - static const CXTUResourceUsage_MEMORY_IN_BYTES_BEGIN = CXTUResourceUsage_AST; - static const CXTUResourceUsage_MEMORY_IN_BYTES_END = - CXTUResourceUsage_Preprocessor_HeaderSearch; - static const CXTUResourceUsage_First = CXTUResourceUsage_AST; - static const CXTUResourceUsage_Last = - CXTUResourceUsage_Preprocessor_HeaderSearch; - - final int value; - const CXTUResourceUsageKind(this.value); - - static CXTUResourceUsageKind fromValue(int value) => switch (value) { - 1 => CXTUResourceUsage_AST, - 2 => CXTUResourceUsage_Identifiers, - 3 => CXTUResourceUsage_Selectors, - 4 => CXTUResourceUsage_GlobalCompletionResults, - 5 => CXTUResourceUsage_SourceManagerContentCache, - 6 => CXTUResourceUsage_AST_SideTables, - 7 => CXTUResourceUsage_SourceManager_Membuffer_Malloc, - 8 => CXTUResourceUsage_SourceManager_Membuffer_MMap, - 9 => CXTUResourceUsage_ExternalASTSource_Membuffer_Malloc, - 10 => CXTUResourceUsage_ExternalASTSource_Membuffer_MMap, - 11 => CXTUResourceUsage_Preprocessor, - 12 => CXTUResourceUsage_PreprocessingRecord, - 13 => CXTUResourceUsage_SourceManager_DataStructures, - 14 => CXTUResourceUsage_Preprocessor_HeaderSearch, - _ => throw ArgumentError('Unknown value for CXTUResourceUsageKind: $value'), - }; - - @override - String toString() { - if (this == CXTUResourceUsage_AST) - return "CXTUResourceUsageKind.CXTUResourceUsage_AST, CXTUResourceUsageKind.CXTUResourceUsage_MEMORY_IN_BYTES_BEGIN, CXTUResourceUsageKind.CXTUResourceUsage_First"; - if (this == CXTUResourceUsage_Preprocessor_HeaderSearch) - return "CXTUResourceUsageKind.CXTUResourceUsage_Preprocessor_HeaderSearch, CXTUResourceUsageKind.CXTUResourceUsage_MEMORY_IN_BYTES_END, CXTUResourceUsageKind.CXTUResourceUsage_Last"; - return super.toString(); - } -} - -/// An opaque type representing target information for a given translation unit. -typedef CXTargetInfo = ffi.Pointer; - -final class CXTargetInfoImpl extends ffi.Opaque {} - -/// Describes the kind of a template argument. -enum CXTemplateArgumentKind { - CXTemplateArgumentKind_Null(0), - CXTemplateArgumentKind_Type(1), - CXTemplateArgumentKind_Declaration(2), - CXTemplateArgumentKind_NullPtr(3), - CXTemplateArgumentKind_Integral(4), - CXTemplateArgumentKind_Template(5), - CXTemplateArgumentKind_TemplateExpansion(6), - CXTemplateArgumentKind_Expression(7), - CXTemplateArgumentKind_Pack(8), - CXTemplateArgumentKind_Invalid(9); - - final int value; - const CXTemplateArgumentKind(this.value); - - static CXTemplateArgumentKind fromValue(int value) => switch (value) { - 0 => CXTemplateArgumentKind_Null, - 1 => CXTemplateArgumentKind_Type, - 2 => CXTemplateArgumentKind_Declaration, - 3 => CXTemplateArgumentKind_NullPtr, - 4 => CXTemplateArgumentKind_Integral, - 5 => CXTemplateArgumentKind_Template, - 6 => CXTemplateArgumentKind_TemplateExpansion, - 7 => CXTemplateArgumentKind_Expression, - 8 => CXTemplateArgumentKind_Pack, - 9 => CXTemplateArgumentKind_Invalid, - _ => throw ArgumentError( - 'Unknown value for CXTemplateArgumentKind: $value', - ), - }; -} - -/// Describes a single preprocessing token. -final class CXToken extends ffi.Struct { - @ffi.Array.multi([4]) - external ffi.Array int_data; - - external ffi.Pointer ptr_data; -} - -/// Describes a kind of token. -enum CXTokenKind { - /// A token that contains some kind of punctuation. - CXToken_Punctuation(0), - - /// A language keyword. - CXToken_Keyword(1), - - /// An identifier (that is not a keyword). - CXToken_Identifier(2), - - /// A numeric, string, or character literal. - CXToken_Literal(3), - - /// A comment. - CXToken_Comment(4); - - final int value; - const CXTokenKind(this.value); - - static CXTokenKind fromValue(int value) => switch (value) { - 0 => CXToken_Punctuation, - 1 => CXToken_Keyword, - 2 => CXToken_Identifier, - 3 => CXToken_Literal, - 4 => CXToken_Comment, - _ => throw ArgumentError('Unknown value for CXTokenKind: $value'), - }; -} - -/// A single translation unit, which resides in an index. -typedef CXTranslationUnit = ffi.Pointer; - -final class CXTranslationUnitImpl extends ffi.Opaque {} - -/// Flags that control the creation of translation units. -enum CXTranslationUnit_Flags { - /// Used to indicate that no special translation-unit options are needed. - CXTranslationUnit_None(0), - - /// Used to indicate that the parser should construct a "detailed" - /// preprocessing record, including all macro definitions and instantiations. - CXTranslationUnit_DetailedPreprocessingRecord(1), - - /// Used to indicate that the translation unit is incomplete. - CXTranslationUnit_Incomplete(2), - - /// Used to indicate that the translation unit should be built with an - /// implicit precompiled header for the preamble. - CXTranslationUnit_PrecompiledPreamble(4), - - /// Used to indicate that the translation unit should cache some - /// code-completion results with each reparse of the source file. - CXTranslationUnit_CacheCompletionResults(8), - - /// Used to indicate that the translation unit will be serialized with - /// clang_saveTranslationUnit. - CXTranslationUnit_ForSerialization(16), - - /// DEPRECATED: Enabled chained precompiled preambles in C++. - CXTranslationUnit_CXXChainedPCH(32), - - /// Used to indicate that function/method bodies should be skipped while - /// parsing. - CXTranslationUnit_SkipFunctionBodies(64), - - /// Used to indicate that brief documentation comments should be included into - /// the set of code completions returned from this translation unit. - CXTranslationUnit_IncludeBriefCommentsInCodeCompletion(128), - - /// Used to indicate that the precompiled preamble should be created on the - /// first parse. Otherwise it will be created on the first reparse. This - /// trades runtime on the first parse (serializing the preamble takes time) - /// for reduced runtime on the second parse (can now reuse the preamble). - CXTranslationUnit_CreatePreambleOnFirstParse(256), - - /// Do not stop processing when fatal errors are encountered. - CXTranslationUnit_KeepGoing(512), - - /// Sets the preprocessor in a mode for parsing a single file only. - CXTranslationUnit_SingleFileParse(1024), - - /// Used in combination with CXTranslationUnit_SkipFunctionBodies to constrain - /// the skipping of function bodies to the preamble. - CXTranslationUnit_LimitSkipFunctionBodiesToPreamble(2048), - - /// Used to indicate that attributed types should be included in CXType. - CXTranslationUnit_IncludeAttributedTypes(4096), - - /// Used to indicate that implicit attributes should be visited. - CXTranslationUnit_VisitImplicitAttributes(8192), - - /// Used to indicate that non-errors from included files should be ignored. - CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles(16384), - - /// Tells the preprocessor not to skip excluded conditional blocks. - CXTranslationUnit_RetainExcludedConditionalBlocks(32768); - - final int value; - const CXTranslationUnit_Flags(this.value); - - static CXTranslationUnit_Flags fromValue(int value) => switch (value) { - 0 => CXTranslationUnit_None, - 1 => CXTranslationUnit_DetailedPreprocessingRecord, - 2 => CXTranslationUnit_Incomplete, - 4 => CXTranslationUnit_PrecompiledPreamble, - 8 => CXTranslationUnit_CacheCompletionResults, - 16 => CXTranslationUnit_ForSerialization, - 32 => CXTranslationUnit_CXXChainedPCH, - 64 => CXTranslationUnit_SkipFunctionBodies, - 128 => CXTranslationUnit_IncludeBriefCommentsInCodeCompletion, - 256 => CXTranslationUnit_CreatePreambleOnFirstParse, - 512 => CXTranslationUnit_KeepGoing, - 1024 => CXTranslationUnit_SingleFileParse, - 2048 => CXTranslationUnit_LimitSkipFunctionBodiesToPreamble, - 4096 => CXTranslationUnit_IncludeAttributedTypes, - 8192 => CXTranslationUnit_VisitImplicitAttributes, - 16384 => CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles, - 32768 => CXTranslationUnit_RetainExcludedConditionalBlocks, - _ => throw ArgumentError( - 'Unknown value for CXTranslationUnit_Flags: $value', - ), - }; -} - -/// The type of an element in the abstract syntax tree. -final class CXType extends ffi.Struct { - @ffi.UnsignedInt() - external int kindAsInt; - - CXTypeKind get kind => CXTypeKind.fromValue(kindAsInt); - set kind(CXTypeKind value) => kindAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array> data; -} - -/// Describes the kind of type -enum CXTypeKind { - /// Represents an invalid type (e.g., where no type is available). - CXType_Invalid(0), - - /// A type whose specific kind is not exposed via this interface. - CXType_Unexposed(1), - CXType_Void(2), - CXType_Bool(3), - CXType_Char_U(4), - CXType_UChar(5), - CXType_Char16(6), - CXType_Char32(7), - CXType_UShort(8), - CXType_UInt(9), - CXType_ULong(10), - CXType_ULongLong(11), - CXType_UInt128(12), - CXType_Char_S(13), - CXType_SChar(14), - CXType_WChar(15), - CXType_Short(16), - CXType_Int(17), - CXType_Long(18), - CXType_LongLong(19), - CXType_Int128(20), - CXType_Float(21), - CXType_Double(22), - CXType_LongDouble(23), - CXType_NullPtr(24), - CXType_Overload(25), - CXType_Dependent(26), - CXType_ObjCId(27), - CXType_ObjCClass(28), - CXType_ObjCSel(29), - CXType_Float128(30), - CXType_Half(31), - CXType_Float16(32), - CXType_ShortAccum(33), - CXType_Accum(34), - CXType_LongAccum(35), - CXType_UShortAccum(36), - CXType_UAccum(37), - CXType_ULongAccum(38), - CXType_Complex(100), - CXType_Pointer(101), - CXType_BlockPointer(102), - CXType_LValueReference(103), - CXType_RValueReference(104), - CXType_Record(105), - CXType_Enum(106), - CXType_Typedef(107), - CXType_ObjCInterface(108), - CXType_ObjCObjectPointer(109), - CXType_FunctionNoProto(110), - CXType_FunctionProto(111), - CXType_ConstantArray(112), - CXType_Vector(113), - CXType_IncompleteArray(114), - CXType_VariableArray(115), - CXType_DependentSizedArray(116), - CXType_MemberPointer(117), - CXType_Auto(118), - - /// Represents a type that was referred to using an elaborated type keyword. - CXType_Elaborated(119), - CXType_Pipe(120), - CXType_OCLImage1dRO(121), - CXType_OCLImage1dArrayRO(122), - CXType_OCLImage1dBufferRO(123), - CXType_OCLImage2dRO(124), - CXType_OCLImage2dArrayRO(125), - CXType_OCLImage2dDepthRO(126), - CXType_OCLImage2dArrayDepthRO(127), - CXType_OCLImage2dMSAARO(128), - CXType_OCLImage2dArrayMSAARO(129), - CXType_OCLImage2dMSAADepthRO(130), - CXType_OCLImage2dArrayMSAADepthRO(131), - CXType_OCLImage3dRO(132), - CXType_OCLImage1dWO(133), - CXType_OCLImage1dArrayWO(134), - CXType_OCLImage1dBufferWO(135), - CXType_OCLImage2dWO(136), - CXType_OCLImage2dArrayWO(137), - CXType_OCLImage2dDepthWO(138), - CXType_OCLImage2dArrayDepthWO(139), - CXType_OCLImage2dMSAAWO(140), - CXType_OCLImage2dArrayMSAAWO(141), - CXType_OCLImage2dMSAADepthWO(142), - CXType_OCLImage2dArrayMSAADepthWO(143), - CXType_OCLImage3dWO(144), - CXType_OCLImage1dRW(145), - CXType_OCLImage1dArrayRW(146), - CXType_OCLImage1dBufferRW(147), - CXType_OCLImage2dRW(148), - CXType_OCLImage2dArrayRW(149), - CXType_OCLImage2dDepthRW(150), - CXType_OCLImage2dArrayDepthRW(151), - CXType_OCLImage2dMSAARW(152), - CXType_OCLImage2dArrayMSAARW(153), - CXType_OCLImage2dMSAADepthRW(154), - CXType_OCLImage2dArrayMSAADepthRW(155), - CXType_OCLImage3dRW(156), - CXType_OCLSampler(157), - CXType_OCLEvent(158), - CXType_OCLQueue(159), - CXType_OCLReserveID(160), - CXType_ObjCObject(161), - CXType_ObjCTypeParam(162), - CXType_Attributed(163), - CXType_OCLIntelSubgroupAVCMcePayload(164), - CXType_OCLIntelSubgroupAVCImePayload(165), - CXType_OCLIntelSubgroupAVCRefPayload(166), - CXType_OCLIntelSubgroupAVCSicPayload(167), - CXType_OCLIntelSubgroupAVCMceResult(168), - CXType_OCLIntelSubgroupAVCImeResult(169), - CXType_OCLIntelSubgroupAVCRefResult(170), - CXType_OCLIntelSubgroupAVCSicResult(171), - CXType_OCLIntelSubgroupAVCImeResultSingleRefStreamout(172), - CXType_OCLIntelSubgroupAVCImeResultDualRefStreamout(173), - CXType_OCLIntelSubgroupAVCImeSingleRefStreamin(174), - CXType_OCLIntelSubgroupAVCImeDualRefStreamin(175), - CXType_ExtVector(176); - - static const CXType_FirstBuiltin = CXType_Void; - static const CXType_LastBuiltin = CXType_ULongAccum; - - final int value; - const CXTypeKind(this.value); - - static CXTypeKind fromValue(int value) => switch (value) { - 0 => CXType_Invalid, - 1 => CXType_Unexposed, - 2 => CXType_Void, - 3 => CXType_Bool, - 4 => CXType_Char_U, - 5 => CXType_UChar, - 6 => CXType_Char16, - 7 => CXType_Char32, - 8 => CXType_UShort, - 9 => CXType_UInt, - 10 => CXType_ULong, - 11 => CXType_ULongLong, - 12 => CXType_UInt128, - 13 => CXType_Char_S, - 14 => CXType_SChar, - 15 => CXType_WChar, - 16 => CXType_Short, - 17 => CXType_Int, - 18 => CXType_Long, - 19 => CXType_LongLong, - 20 => CXType_Int128, - 21 => CXType_Float, - 22 => CXType_Double, - 23 => CXType_LongDouble, - 24 => CXType_NullPtr, - 25 => CXType_Overload, - 26 => CXType_Dependent, - 27 => CXType_ObjCId, - 28 => CXType_ObjCClass, - 29 => CXType_ObjCSel, - 30 => CXType_Float128, - 31 => CXType_Half, - 32 => CXType_Float16, - 33 => CXType_ShortAccum, - 34 => CXType_Accum, - 35 => CXType_LongAccum, - 36 => CXType_UShortAccum, - 37 => CXType_UAccum, - 38 => CXType_ULongAccum, - 100 => CXType_Complex, - 101 => CXType_Pointer, - 102 => CXType_BlockPointer, - 103 => CXType_LValueReference, - 104 => CXType_RValueReference, - 105 => CXType_Record, - 106 => CXType_Enum, - 107 => CXType_Typedef, - 108 => CXType_ObjCInterface, - 109 => CXType_ObjCObjectPointer, - 110 => CXType_FunctionNoProto, - 111 => CXType_FunctionProto, - 112 => CXType_ConstantArray, - 113 => CXType_Vector, - 114 => CXType_IncompleteArray, - 115 => CXType_VariableArray, - 116 => CXType_DependentSizedArray, - 117 => CXType_MemberPointer, - 118 => CXType_Auto, - 119 => CXType_Elaborated, - 120 => CXType_Pipe, - 121 => CXType_OCLImage1dRO, - 122 => CXType_OCLImage1dArrayRO, - 123 => CXType_OCLImage1dBufferRO, - 124 => CXType_OCLImage2dRO, - 125 => CXType_OCLImage2dArrayRO, - 126 => CXType_OCLImage2dDepthRO, - 127 => CXType_OCLImage2dArrayDepthRO, - 128 => CXType_OCLImage2dMSAARO, - 129 => CXType_OCLImage2dArrayMSAARO, - 130 => CXType_OCLImage2dMSAADepthRO, - 131 => CXType_OCLImage2dArrayMSAADepthRO, - 132 => CXType_OCLImage3dRO, - 133 => CXType_OCLImage1dWO, - 134 => CXType_OCLImage1dArrayWO, - 135 => CXType_OCLImage1dBufferWO, - 136 => CXType_OCLImage2dWO, - 137 => CXType_OCLImage2dArrayWO, - 138 => CXType_OCLImage2dDepthWO, - 139 => CXType_OCLImage2dArrayDepthWO, - 140 => CXType_OCLImage2dMSAAWO, - 141 => CXType_OCLImage2dArrayMSAAWO, - 142 => CXType_OCLImage2dMSAADepthWO, - 143 => CXType_OCLImage2dArrayMSAADepthWO, - 144 => CXType_OCLImage3dWO, - 145 => CXType_OCLImage1dRW, - 146 => CXType_OCLImage1dArrayRW, - 147 => CXType_OCLImage1dBufferRW, - 148 => CXType_OCLImage2dRW, - 149 => CXType_OCLImage2dArrayRW, - 150 => CXType_OCLImage2dDepthRW, - 151 => CXType_OCLImage2dArrayDepthRW, - 152 => CXType_OCLImage2dMSAARW, - 153 => CXType_OCLImage2dArrayMSAARW, - 154 => CXType_OCLImage2dMSAADepthRW, - 155 => CXType_OCLImage2dArrayMSAADepthRW, - 156 => CXType_OCLImage3dRW, - 157 => CXType_OCLSampler, - 158 => CXType_OCLEvent, - 159 => CXType_OCLQueue, - 160 => CXType_OCLReserveID, - 161 => CXType_ObjCObject, - 162 => CXType_ObjCTypeParam, - 163 => CXType_Attributed, - 164 => CXType_OCLIntelSubgroupAVCMcePayload, - 165 => CXType_OCLIntelSubgroupAVCImePayload, - 166 => CXType_OCLIntelSubgroupAVCRefPayload, - 167 => CXType_OCLIntelSubgroupAVCSicPayload, - 168 => CXType_OCLIntelSubgroupAVCMceResult, - 169 => CXType_OCLIntelSubgroupAVCImeResult, - 170 => CXType_OCLIntelSubgroupAVCRefResult, - 171 => CXType_OCLIntelSubgroupAVCSicResult, - 172 => CXType_OCLIntelSubgroupAVCImeResultSingleRefStreamout, - 173 => CXType_OCLIntelSubgroupAVCImeResultDualRefStreamout, - 174 => CXType_OCLIntelSubgroupAVCImeSingleRefStreamin, - 175 => CXType_OCLIntelSubgroupAVCImeDualRefStreamin, - 176 => CXType_ExtVector, - _ => throw ArgumentError('Unknown value for CXTypeKind: $value'), - }; - - @override - String toString() { - if (this == CXType_Void) - return "CXTypeKind.CXType_Void, CXTypeKind.CXType_FirstBuiltin"; - if (this == CXType_ULongAccum) - return "CXTypeKind.CXType_ULongAccum, CXTypeKind.CXType_LastBuiltin"; - return super.toString(); - } -} - -/// List the possible error codes for clang_Type_getSizeOf, -/// clang_Type_getAlignOf, clang_Type_getOffsetOf and clang_Cursor_getOffsetOf. -enum CXTypeLayoutError { - /// Type is of kind CXType_Invalid. - CXTypeLayoutError_Invalid(-1), - - /// The type is an incomplete Type. - CXTypeLayoutError_Incomplete(-2), - - /// The type is a dependent Type. - CXTypeLayoutError_Dependent(-3), - - /// The type is not a constant size type. - CXTypeLayoutError_NotConstantSize(-4), - - /// The Field name is not valid for this record. - CXTypeLayoutError_InvalidFieldName(-5), - - /// The type is undeduced. - CXTypeLayoutError_Undeduced(-6); - - final int value; - const CXTypeLayoutError(this.value); - - static CXTypeLayoutError fromValue(int value) => switch (value) { - -1 => CXTypeLayoutError_Invalid, - -2 => CXTypeLayoutError_Incomplete, - -3 => CXTypeLayoutError_Dependent, - -4 => CXTypeLayoutError_NotConstantSize, - -5 => CXTypeLayoutError_InvalidFieldName, - -6 => CXTypeLayoutError_Undeduced, - _ => throw ArgumentError('Unknown value for CXTypeLayoutError: $value'), - }; -} - -enum CXTypeNullabilityKind { - /// Values of this type can never be null. - CXTypeNullability_NonNull(0), - - /// Values of this type can be null. - CXTypeNullability_Nullable(1), - - /// Whether values of this type can be null is (explicitly) unspecified. This - /// captures a (fairly rare) case where we can't conclude anything about the - /// nullability of the type even though it has been considered. - CXTypeNullability_Unspecified(2), - - /// Nullability is not applicable to this type. - CXTypeNullability_Invalid(3); - - final int value; - const CXTypeNullabilityKind(this.value); - - static CXTypeNullabilityKind fromValue(int value) => switch (value) { - 0 => CXTypeNullability_NonNull, - 1 => CXTypeNullability_Nullable, - 2 => CXTypeNullability_Unspecified, - 3 => CXTypeNullability_Invalid, - _ => throw ArgumentError('Unknown value for CXTypeNullabilityKind: $value'), - }; -} - -/// Provides the contents of a file that has not yet been saved to disk. -final class CXUnsavedFile extends ffi.Struct { - /// The file whose contents have not yet been saved. - external ffi.Pointer Filename; - - /// A buffer containing the unsaved contents of this file. - external ffi.Pointer Contents; - - /// The length of the unsaved contents of this buffer. - @ffi.UnsignedLong() - external int Length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer Filename, - required ffi.Pointer Contents, - required int Length, - }) => $allocator() - ..ref.Filename = Filename - ..ref.Contents = Contents - ..ref.Length = Length; -} - -/// Describes a version number of the form major.minor.subminor. -final class CXVersion extends ffi.Struct { - /// The major version number, e.g., the '10' in '10.7.3'. A negative value - /// indicates that there is no version number at all. - @ffi.Int() - external int Major; - - /// The minor version number, e.g., the '7' in '10.7.3'. This value will be - /// negative if no minor version number was provided, e.g., for version '10'. - @ffi.Int() - external int Minor; - - /// The subminor version number, e.g., the '3' in '10.7.3'. This value will be - /// negative if no minor or subminor version number was provided, e.g., in - /// version '10' or '10.7'. - @ffi.Int() - external int Subminor; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Major, - required int Minor, - required int Subminor, - }) => $allocator() - ..ref.Major = Major - ..ref.Minor = Minor - ..ref.Subminor = Subminor; -} - -/// Object encapsulating information about overlaying virtual file/directories -/// over the real file system. -typedef CXVirtualFileOverlay = ffi.Pointer; - -final class CXVirtualFileOverlayImpl extends ffi.Opaque {} - -enum CXVisibilityKind { - /// This value indicates that no visibility information is available for a - /// provided CXCursor. - CXVisibility_Invalid(0), - - /// Symbol not seen by the linker. - CXVisibility_Hidden(1), - - /// Symbol seen by the linker but resolves to a symbol inside this object. - CXVisibility_Protected(2), - - /// Symbol seen by the linker and acts like a normal symbol. - CXVisibility_Default(3); - - final int value; - const CXVisibilityKind(this.value); - - static CXVisibilityKind fromValue(int value) => switch (value) { - 0 => CXVisibility_Invalid, - 1 => CXVisibility_Hidden, - 2 => CXVisibility_Protected, - 3 => CXVisibility_Default, - _ => throw ArgumentError('Unknown value for CXVisibilityKind: $value'), - }; -} - -/// @{ -enum CXVisitorResult { - CXVisit_Break(0), - CXVisit_Continue(1); - - final int value; - const CXVisitorResult(this.value); - - static CXVisitorResult fromValue(int value) => switch (value) { - 0 => CXVisit_Break, - 1 => CXVisit_Continue, - _ => throw ArgumentError('Unknown value for CXVisitorResult: $value'), - }; -} - -/// Represents the C++ access control level to a base class for a cursor with -/// kind CX_CXXBaseSpecifier. -enum CX_CXXAccessSpecifier { - CX_CXXInvalidAccessSpecifier(0), - CX_CXXPublic(1), - CX_CXXProtected(2), - CX_CXXPrivate(3); - - final int value; - const CX_CXXAccessSpecifier(this.value); - - static CX_CXXAccessSpecifier fromValue(int value) => switch (value) { - 0 => CX_CXXInvalidAccessSpecifier, - 1 => CX_CXXPublic, - 2 => CX_CXXProtected, - 3 => CX_CXXPrivate, - _ => throw ArgumentError('Unknown value for CX_CXXAccessSpecifier: $value'), - }; -} - -/// Represents the storage classes as declared in the source. CX_SC_Invalid was -/// added for the case that the passed cursor in not a declaration. -enum CX_StorageClass { - CX_SC_Invalid(0), - CX_SC_None(1), - CX_SC_Extern(2), - CX_SC_Static(3), - CX_SC_PrivateExtern(4), - CX_SC_OpenCLWorkGroupLocal(5), - CX_SC_Auto(6), - CX_SC_Register(7); - - final int value; - const CX_StorageClass(this.value); - - static CX_StorageClass fromValue(int value) => switch (value) { - 0 => CX_SC_Invalid, - 1 => CX_SC_None, - 2 => CX_SC_Extern, - 3 => CX_SC_Static, - 4 => CX_SC_PrivateExtern, - 5 => CX_SC_OpenCLWorkGroupLocal, - 6 => CX_SC_Auto, - 7 => CX_SC_Register, - _ => throw ArgumentError('Unknown value for CX_StorageClass: $value'), - }; -} - -/// A group of callbacks used by #clang_indexSourceFile and -/// #clang_indexTranslationUnit. -final class IndexerCallbacks extends ffi.Struct { - /// Called periodically to check whether indexing should be aborted. Should - /// return 0 to continue, and non-zero to abort. - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(CXClientData client_data, ffi.Pointer reserved) - > - > - abortQuery; - - /// Called at the end of indexing; passes the complete diagnostic set. - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CXClientData, CXDiagnosticSet, ffi.Pointer) - > - > - diagnostic; - - external ffi.Pointer< - ffi.NativeFunction< - CXIdxClientFile Function( - CXClientData client_data, - CXFile mainFile, - ffi.Pointer reserved, - ) - > - > - enteredMainFile; - - /// Called when a file gets #included/#imported. - external ffi.Pointer< - ffi.NativeFunction< - CXIdxClientFile Function(CXClientData, ffi.Pointer) - > - > - ppIncludedFile; - - /// Called when a AST file (PCH or module) gets imported. - external ffi.Pointer< - ffi.NativeFunction< - CXIdxClientASTFile Function( - CXClientData, - ffi.Pointer, - ) - > - > - importedASTFile; - - /// Called at the beginning of indexing a translation unit. - external ffi.Pointer< - ffi.NativeFunction< - CXIdxClientContainer Function( - CXClientData client_data, - ffi.Pointer reserved, - ) - > - > - startedTranslationUnit; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CXClientData, ffi.Pointer) - > - > - indexDeclaration; - - /// Called to index a reference of an entity. - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CXClientData, ffi.Pointer) - > - > - indexEntityReference; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - CXClientData client_data, - ffi.Pointer reserved, - ) - > - > - abortQuery, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CXClientData, CXDiagnosticSet, ffi.Pointer) - > - > - diagnostic, - required ffi.Pointer< - ffi.NativeFunction< - CXIdxClientFile Function( - CXClientData client_data, - CXFile mainFile, - ffi.Pointer reserved, - ) - > - > - enteredMainFile, - required ffi.Pointer< - ffi.NativeFunction< - CXIdxClientFile Function( - CXClientData, - ffi.Pointer, - ) - > - > - ppIncludedFile, - required ffi.Pointer< - ffi.NativeFunction< - CXIdxClientASTFile Function( - CXClientData, - ffi.Pointer, - ) - > - > - importedASTFile, - required ffi.Pointer< - ffi.NativeFunction< - CXIdxClientContainer Function( - CXClientData client_data, - ffi.Pointer reserved, - ) - > - > - startedTranslationUnit, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CXClientData, ffi.Pointer) - > - > - indexDeclaration, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(CXClientData, ffi.Pointer) - > - > - indexEntityReference, - }) => $allocator() - ..ref.abortQuery = abortQuery - ..ref.diagnostic = diagnostic - ..ref.enteredMainFile = enteredMainFile - ..ref.ppIncludedFile = ppIncludedFile - ..ref.importedASTFile = importedASTFile - ..ref.startedTranslationUnit = startedTranslationUnit - ..ref.indexDeclaration = indexDeclaration - ..ref.indexEntityReference = indexEntityReference; -} diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart index d00b72bbf3..dc0a0df2be 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart @@ -2,14430 +2,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -/// Bindings to SQLite. -class SQLite { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - SQLite(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - SQLite.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; - - /// CAPI3REF: Obtain Aggregate Function Context - /// METHOD: sqlite3_context - /// - /// Implementations of aggregate SQL functions use this - /// routine to allocate memory for storing their state. - /// - /// ^The first time the sqlite3_aggregate_context(C,N) routine is called - /// for a particular aggregate function, SQLite allocates - /// N bytes of memory, zeroes out that memory, and returns a pointer - /// to the new memory. ^On second and subsequent calls to - /// sqlite3_aggregate_context() for the same aggregate function instance, - /// the same buffer is returned. Sqlite3_aggregate_context() is normally - /// called once for each invocation of the xStep callback and then one - /// last time when the xFinal callback is invoked. ^(When no rows match - /// an aggregate query, the xStep() callback of the aggregate function - /// implementation is never called and xFinal() is called exactly once. - /// In those cases, sqlite3_aggregate_context() might be called for the - /// first time from within xFinal().)^ - /// - /// ^The sqlite3_aggregate_context(C,N) routine returns a NULL pointer - /// when first called if N is less than or equal to zero or if a memory - /// allocate error occurs. - /// - /// ^(The amount of space allocated by sqlite3_aggregate_context(C,N) is - /// determined by the N parameter on first successful call. Changing the - /// value of N in any subsequent call to sqlite3_aggregate_context() within - /// the same aggregate function instance will not resize the memory - /// allocation.)^ Within the xFinal callback, it is customary to set - /// N=0 in calls to sqlite3_aggregate_context(C,N) so that no - /// pointless memory allocations occur. - /// - /// ^SQLite automatically frees the memory allocated by - /// sqlite3_aggregate_context() when the aggregate query concludes. - /// - /// The first parameter must be a copy of the - /// [sqlite3_context | SQL function context] that is the first parameter - /// to the xStep or xFinal callback routine that implements the aggregate - /// function. - /// - /// This routine must be called from the same thread in which - /// the aggregate SQL function is running. - ffi.Pointer sqlite3_aggregate_context( - ffi.Pointer arg0, - int nBytes, - ) { - return _sqlite3_aggregate_context(arg0, nBytes); - } - - late final _sqlite3_aggregate_contextPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_aggregate_context'); - late final _sqlite3_aggregate_context = _sqlite3_aggregate_contextPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - int sqlite3_aggregate_count(ffi.Pointer arg0) { - return _sqlite3_aggregate_count(arg0); - } - - late final _sqlite3_aggregate_countPtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_aggregate_count'); - late final _sqlite3_aggregate_count = _sqlite3_aggregate_countPtr - .asFunction)>(); - - /// CAPI3REF: Automatically Load Statically Linked Extensions - /// - /// ^This interface causes the xEntryPoint() function to be invoked for - /// each new [database connection] that is created. The idea here is that - /// xEntryPoint() is the entry point for a statically linked [SQLite extension] - /// that is to be automatically loaded into all new database connections. - /// - /// ^(Even though the function prototype shows that xEntryPoint() takes - /// no arguments and returns void, SQLite invokes xEntryPoint() with three - /// arguments and expects an integer result as if the signature of the - /// entry point where as follows: - /// - ///
-  ///    int xEntryPoint(
-  ///      sqlite3 *db,
-  ///      const char **pzErrMsg,
-  ///      const struct sqlite3_api_routines *pThunk
-  ///    );
-  /// 
)^ - /// - /// If the xEntryPoint routine encounters an error, it should make *pzErrMsg - /// point to an appropriate error message (obtained from [sqlite3_mprintf()]) - /// and return an appropriate [error code]. ^SQLite ensures that *pzErrMsg - /// is NULL before calling the xEntryPoint(). ^SQLite will invoke - /// [sqlite3_free()] on *pzErrMsg after xEntryPoint() returns. ^If any - /// xEntryPoint() returns an error, the [sqlite3_open()], [sqlite3_open16()], - /// or [sqlite3_open_v2()] call that provoked the xEntryPoint() will fail. - /// - /// ^Calling sqlite3_auto_extension(X) with an entry point X that is already - /// on the list of automatic extensions is a harmless no-op. ^No entry point - /// will be called more than once for each database connection that is opened. - /// - /// See also: [sqlite3_reset_auto_extension()] - /// and [sqlite3_cancel_auto_extension()] - int sqlite3_auto_extension( - ffi.Pointer> xEntryPoint, - ) { - return _sqlite3_auto_extension(xEntryPoint); - } - - late final _sqlite3_auto_extensionPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>) - > - >('sqlite3_auto_extension'); - late final _sqlite3_auto_extension = _sqlite3_auto_extensionPtr - .asFunction< - int Function(ffi.Pointer>) - >(); - - int sqlite3_backup_finish(ffi.Pointer p) { - return _sqlite3_backup_finish(p); - } - - late final _sqlite3_backup_finishPtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_backup_finish'); - late final _sqlite3_backup_finish = _sqlite3_backup_finishPtr - .asFunction)>(); - - /// CAPI3REF: Online Backup API. - /// - /// The backup API copies the content of one database into another. - /// It is useful either for creating backups of databases or - /// for copying in-memory databases to or from persistent files. - /// - /// See Also: [Using the SQLite Online Backup API] - /// - /// ^SQLite holds a write transaction open on the destination database file - /// for the duration of the backup operation. - /// ^The source database is read-locked only while it is being read; - /// it is not locked continuously for the entire backup operation. - /// ^Thus, the backup may be performed on a live source database without - /// preventing other database connections from - /// reading or writing to the source database while the backup is underway. - /// - /// ^(To perform a backup operation: - ///
    - ///
  1. sqlite3_backup_init() is called once to initialize the - /// backup, - ///
  2. sqlite3_backup_step() is called one or more times to transfer - /// the data between the two databases, and finally - ///
  3. sqlite3_backup_finish() is called to release all resources - /// associated with the backup operation. - ///
)^ - /// There should be exactly one call to sqlite3_backup_finish() for each - /// successful call to sqlite3_backup_init(). - /// - /// [[sqlite3_backup_init()]] sqlite3_backup_init() - /// - /// ^The D and N arguments to sqlite3_backup_init(D,N,S,M) are the - /// [database connection] associated with the destination database - /// and the database name, respectively. - /// ^The database name is "main" for the main database, "temp" for the - /// temporary database, or the name specified after the AS keyword in - /// an [ATTACH] statement for an attached database. - /// ^The S and M arguments passed to - /// sqlite3_backup_init(D,N,S,M) identify the [database connection] - /// and database name of the source database, respectively. - /// ^The source and destination [database connections] (parameters S and D) - /// must be different or else sqlite3_backup_init(D,N,S,M) will fail with - /// an error. - /// - /// ^A call to sqlite3_backup_init() will fail, returning NULL, if - /// there is already a read or read-write transaction open on the - /// destination database. - /// - /// ^If an error occurs within sqlite3_backup_init(D,N,S,M), then NULL is - /// returned and an error code and error message are stored in the - /// destination [database connection] D. - /// ^The error code and message for the failed call to sqlite3_backup_init() - /// can be retrieved using the [sqlite3_errcode()], [sqlite3_errmsg()], and/or - /// [sqlite3_errmsg16()] functions. - /// ^A successful call to sqlite3_backup_init() returns a pointer to an - /// [sqlite3_backup] object. - /// ^The [sqlite3_backup] object may be used with the sqlite3_backup_step() and - /// sqlite3_backup_finish() functions to perform the specified backup - /// operation. - /// - /// [[sqlite3_backup_step()]] sqlite3_backup_step() - /// - /// ^Function sqlite3_backup_step(B,N) will copy up to N pages between - /// the source and destination databases specified by [sqlite3_backup] object B. - /// ^If N is negative, all remaining source pages are copied. - /// ^If sqlite3_backup_step(B,N) successfully copies N pages and there - /// are still more pages to be copied, then the function returns [SQLITE_OK]. - /// ^If sqlite3_backup_step(B,N) successfully finishes copying all pages - /// from source to destination, then it returns [SQLITE_DONE]. - /// ^If an error occurs while running sqlite3_backup_step(B,N), - /// then an [error code] is returned. ^As well as [SQLITE_OK] and - /// [SQLITE_DONE], a call to sqlite3_backup_step() may return [SQLITE_READONLY], - /// [SQLITE_NOMEM], [SQLITE_BUSY], [SQLITE_LOCKED], or an - /// [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX] extended error code. - /// - /// ^(The sqlite3_backup_step() might return [SQLITE_READONLY] if - ///
    - ///
  1. the destination database was opened read-only, or - ///
  2. the destination database is using write-ahead-log journaling - /// and the destination and source page sizes differ, or - ///
  3. the destination database is an in-memory database and the - /// destination and source page sizes differ. - ///
)^ - /// - /// ^If sqlite3_backup_step() cannot obtain a required file-system lock, then - /// the [sqlite3_busy_handler | busy-handler function] - /// is invoked (if one is specified). ^If the - /// busy-handler returns non-zero before the lock is available, then - /// [SQLITE_BUSY] is returned to the caller. ^In this case the call to - /// sqlite3_backup_step() can be retried later. ^If the source - /// [database connection] - /// is being used to write to the source database when sqlite3_backup_step() - /// is called, then [SQLITE_LOCKED] is returned immediately. ^Again, in this - /// case the call to sqlite3_backup_step() can be retried later on. ^(If - /// [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX], [SQLITE_NOMEM], or - /// [SQLITE_READONLY] is returned, then - /// there is no point in retrying the call to sqlite3_backup_step(). These - /// errors are considered fatal.)^ The application must accept - /// that the backup operation has failed and pass the backup operation handle - /// to the sqlite3_backup_finish() to release associated resources. - /// - /// ^The first call to sqlite3_backup_step() obtains an exclusive lock - /// on the destination file. ^The exclusive lock is not released until either - /// sqlite3_backup_finish() is called or the backup operation is complete - /// and sqlite3_backup_step() returns [SQLITE_DONE]. ^Every call to - /// sqlite3_backup_step() obtains a [shared lock] on the source database that - /// lasts for the duration of the sqlite3_backup_step() call. - /// ^Because the source database is not locked between calls to - /// sqlite3_backup_step(), the source database may be modified mid-way - /// through the backup process. ^If the source database is modified by an - /// external process or via a database connection other than the one being - /// used by the backup operation, then the backup will be automatically - /// restarted by the next call to sqlite3_backup_step(). ^If the source - /// database is modified by the using the same database connection as is used - /// by the backup operation, then the backup database is automatically - /// updated at the same time. - /// - /// [[sqlite3_backup_finish()]] sqlite3_backup_finish() - /// - /// When sqlite3_backup_step() has returned [SQLITE_DONE], or when the - /// application wishes to abandon the backup operation, the application - /// should destroy the [sqlite3_backup] by passing it to sqlite3_backup_finish(). - /// ^The sqlite3_backup_finish() interfaces releases all - /// resources associated with the [sqlite3_backup] object. - /// ^If sqlite3_backup_step() has not yet returned [SQLITE_DONE], then any - /// active write-transaction on the destination database is rolled back. - /// The [sqlite3_backup] object is invalid - /// and may not be used following a call to sqlite3_backup_finish(). - /// - /// ^The value returned by sqlite3_backup_finish is [SQLITE_OK] if no - /// sqlite3_backup_step() errors occurred, regardless or whether or not - /// sqlite3_backup_step() completed. - /// ^If an out-of-memory condition or IO error occurred during any prior - /// sqlite3_backup_step() call on the same [sqlite3_backup] object, then - /// sqlite3_backup_finish() returns the corresponding [error code]. - /// - /// ^A return of [SQLITE_BUSY] or [SQLITE_LOCKED] from sqlite3_backup_step() - /// is not a permanent error and does not affect the return value of - /// sqlite3_backup_finish(). - /// - /// [[sqlite3_backup_remaining()]] [[sqlite3_backup_pagecount()]] - /// sqlite3_backup_remaining() and sqlite3_backup_pagecount() - /// - /// ^The sqlite3_backup_remaining() routine returns the number of pages still - /// to be backed up at the conclusion of the most recent sqlite3_backup_step(). - /// ^The sqlite3_backup_pagecount() routine returns the total number of pages - /// in the source database at the conclusion of the most recent - /// sqlite3_backup_step(). - /// ^(The values returned by these functions are only updated by - /// sqlite3_backup_step(). If the source database is modified in a way that - /// changes the size of the source database or the number of pages remaining, - /// those changes are not reflected in the output of sqlite3_backup_pagecount() - /// and sqlite3_backup_remaining() until after the next - /// sqlite3_backup_step().)^ - /// - /// Concurrent Usage of Database Handles - /// - /// ^The source [database connection] may be used by the application for other - /// purposes while a backup operation is underway or being initialized. - /// ^If SQLite is compiled and configured to support threadsafe database - /// connections, then the source database connection may be used concurrently - /// from within other threads. - /// - /// However, the application must guarantee that the destination - /// [database connection] is not passed to any other API (by any thread) after - /// sqlite3_backup_init() is called and before the corresponding call to - /// sqlite3_backup_finish(). SQLite does not currently check to see - /// if the application incorrectly accesses the destination [database connection] - /// and so no error code is reported, but the operations may malfunction - /// nevertheless. Use of the destination database connection while a - /// backup is in progress might also also cause a mutex deadlock. - /// - /// If running in [shared cache mode], the application must - /// guarantee that the shared cache used by the destination database - /// is not accessed while the backup is running. In practice this means - /// that the application must guarantee that the disk file being - /// backed up to is not accessed by any connection within the process, - /// not just the specific connection that was passed to sqlite3_backup_init(). - /// - /// The [sqlite3_backup] object itself is partially threadsafe. Multiple - /// threads may safely make multiple concurrent calls to sqlite3_backup_step(). - /// However, the sqlite3_backup_remaining() and sqlite3_backup_pagecount() - /// APIs are not strictly speaking threadsafe. If they are invoked at the - /// same time as another thread is invoking sqlite3_backup_step() it is - /// possible that they return invalid values. - ffi.Pointer sqlite3_backup_init( - ffi.Pointer pDest, - ffi.Pointer zDestName, - ffi.Pointer pSource, - ffi.Pointer zSourceName, - ) { - return _sqlite3_backup_init(pDest, zDestName, pSource, zSourceName); - } - - late final _sqlite3_backup_initPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_backup_init'); - late final _sqlite3_backup_init = _sqlite3_backup_initPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - int sqlite3_backup_pagecount(ffi.Pointer p) { - return _sqlite3_backup_pagecount(p); - } - - late final _sqlite3_backup_pagecountPtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_backup_pagecount'); - late final _sqlite3_backup_pagecount = _sqlite3_backup_pagecountPtr - .asFunction)>(); - - int sqlite3_backup_remaining(ffi.Pointer p) { - return _sqlite3_backup_remaining(p); - } - - late final _sqlite3_backup_remainingPtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_backup_remaining'); - late final _sqlite3_backup_remaining = _sqlite3_backup_remainingPtr - .asFunction)>(); - - int sqlite3_backup_step(ffi.Pointer p, int nPage) { - return _sqlite3_backup_step(p, nPage); - } - - late final _sqlite3_backup_stepPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_backup_step'); - late final _sqlite3_backup_step = _sqlite3_backup_stepPtr - .asFunction, int)>(); - - /// CAPI3REF: Binding Values To Prepared Statements - /// KEYWORDS: {host parameter} {host parameters} {host parameter name} - /// KEYWORDS: {SQL parameter} {SQL parameters} {parameter binding} - /// METHOD: sqlite3_stmt - /// - /// ^(In the SQL statement text input to [sqlite3_prepare_v2()] and its variants, - /// literals may be replaced by a [parameter] that matches one of following - /// templates: - /// - ///
    - ///
  • ? - ///
  • ?NNN - ///
  • :VVV - ///
  • @VVV - ///
  • $VVV - ///
- /// - /// In the templates above, NNN represents an integer literal, - /// and VVV represents an alphanumeric identifier.)^ ^The values of these - /// parameters (also called "host parameter names" or "SQL parameters") - /// can be set using the sqlite3_bind_*() routines defined here. - /// - /// ^The first argument to the sqlite3_bind_*() routines is always - /// a pointer to the [sqlite3_stmt] object returned from - /// [sqlite3_prepare_v2()] or its variants. - /// - /// ^The second argument is the index of the SQL parameter to be set. - /// ^The leftmost SQL parameter has an index of 1. ^When the same named - /// SQL parameter is used more than once, second and subsequent - /// occurrences have the same index as the first occurrence. - /// ^The index for named parameters can be looked up using the - /// [sqlite3_bind_parameter_index()] API if desired. ^The index - /// for "?NNN" parameters is the value of NNN. - /// ^The NNN value must be between 1 and the [sqlite3_limit()] - /// parameter [SQLITE_LIMIT_VARIABLE_NUMBER] (default value: 32766). - /// - /// ^The third argument is the value to bind to the parameter. - /// ^If the third parameter to sqlite3_bind_text() or sqlite3_bind_text16() - /// or sqlite3_bind_blob() is a NULL pointer then the fourth parameter - /// is ignored and the end result is the same as sqlite3_bind_null(). - /// ^If the third parameter to sqlite3_bind_text() is not NULL, then - /// it should be a pointer to well-formed UTF8 text. - /// ^If the third parameter to sqlite3_bind_text16() is not NULL, then - /// it should be a pointer to well-formed UTF16 text. - /// ^If the third parameter to sqlite3_bind_text64() is not NULL, then - /// it should be a pointer to a well-formed unicode string that is - /// either UTF8 if the sixth parameter is SQLITE_UTF8, or UTF16 - /// otherwise. - /// - /// [[byte-order determination rules]] ^The byte-order of - /// UTF16 input text is determined by the byte-order mark (BOM, U+FEFF) - /// found in first character, which is removed, or in the absence of a BOM - /// the byte order is the native byte order of the host - /// machine for sqlite3_bind_text16() or the byte order specified in - /// the 6th parameter for sqlite3_bind_text64().)^ - /// ^If UTF16 input text contains invalid unicode - /// characters, then SQLite might change those invalid characters - /// into the unicode replacement character: U+FFFD. - /// - /// ^(In those routines that have a fourth argument, its value is the - /// number of bytes in the parameter. To be clear: the value is the - /// number of bytes in the value, not the number of characters.)^ - /// ^If the fourth parameter to sqlite3_bind_text() or sqlite3_bind_text16() - /// is negative, then the length of the string is - /// the number of bytes up to the first zero terminator. - /// If the fourth parameter to sqlite3_bind_blob() is negative, then - /// the behavior is undefined. - /// If a non-negative fourth parameter is provided to sqlite3_bind_text() - /// or sqlite3_bind_text16() or sqlite3_bind_text64() then - /// that parameter must be the byte offset - /// where the NUL terminator would occur assuming the string were NUL - /// terminated. If any NUL characters occurs at byte offsets less than - /// the value of the fourth parameter then the resulting string value will - /// contain embedded NULs. The result of expressions involving strings - /// with embedded NULs is undefined. - /// - /// ^The fifth argument to the BLOB and string binding interfaces - /// is a destructor used to dispose of the BLOB or - /// string after SQLite has finished with it. ^The destructor is called - /// to dispose of the BLOB or string even if the call to the bind API fails, - /// except the destructor is not called if the third parameter is a NULL - /// pointer or the fourth parameter is negative. - /// ^If the fifth argument is - /// the special value [SQLITE_STATIC], then SQLite assumes that the - /// information is in static, unmanaged space and does not need to be freed. - /// ^If the fifth argument has the value [SQLITE_TRANSIENT], then - /// SQLite makes its own private copy of the data immediately, before - /// the sqlite3_bind_*() routine returns. - /// - /// ^The sixth argument to sqlite3_bind_text64() must be one of - /// [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE] - /// to specify the encoding of the text in the third parameter. If - /// the sixth argument to sqlite3_bind_text64() is not one of the - /// allowed values shown above, or if the text encoding is different - /// from the encoding specified by the sixth parameter, then the behavior - /// is undefined. - /// - /// ^The sqlite3_bind_zeroblob() routine binds a BLOB of length N that - /// is filled with zeroes. ^A zeroblob uses a fixed amount of memory - /// (just an integer to hold its size) while it is being processed. - /// Zeroblobs are intended to serve as placeholders for BLOBs whose - /// content is later written using - /// [sqlite3_blob_open | incremental BLOB I/O] routines. - /// ^A negative value for the zeroblob results in a zero-length BLOB. - /// - /// ^The sqlite3_bind_pointer(S,I,P,T,D) routine causes the I-th parameter in - /// [prepared statement] S to have an SQL value of NULL, but to also be - /// associated with the pointer P of type T. ^D is either a NULL pointer or - /// a pointer to a destructor function for P. ^SQLite will invoke the - /// destructor D with a single argument of P when it is finished using - /// P. The T parameter should be a static string, preferably a string - /// literal. The sqlite3_bind_pointer() routine is part of the - /// [pointer passing interface] added for SQLite 3.20.0. - /// - /// ^If any of the sqlite3_bind_*() routines are called with a NULL pointer - /// for the [prepared statement] or with a prepared statement for which - /// [sqlite3_step()] has been called more recently than [sqlite3_reset()], - /// then the call will return [SQLITE_MISUSE]. If any sqlite3_bind_() - /// routine is passed a [prepared statement] that has been finalized, the - /// result is undefined and probably harmful. - /// - /// ^Bindings are not cleared by the [sqlite3_reset()] routine. - /// ^Unbound parameters are interpreted as NULL. - /// - /// ^The sqlite3_bind_* routines return [SQLITE_OK] on success or an - /// [error code] if anything goes wrong. - /// ^[SQLITE_TOOBIG] might be returned if the size of a string or BLOB - /// exceeds limits imposed by [sqlite3_limit]([SQLITE_LIMIT_LENGTH]) or - /// [SQLITE_MAX_LENGTH]. - /// ^[SQLITE_RANGE] is returned if the parameter - /// index is out of range. ^[SQLITE_NOMEM] is returned if malloc() fails. - /// - /// See also: [sqlite3_bind_parameter_count()], - /// [sqlite3_bind_parameter_name()], and [sqlite3_bind_parameter_index()]. - int sqlite3_bind_blob( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int n, - ffi.Pointer)>> - arg4, - ) { - return _sqlite3_bind_blob(arg0, arg1, arg2, n, arg4); - } - - late final _sqlite3_bind_blobPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_bind_blob'); - late final _sqlite3_bind_blob = _sqlite3_bind_blobPtr - .asFunction< - int Function( - ffi.Pointer, - int, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - int sqlite3_bind_blob64( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer)>> - arg4, - ) { - return _sqlite3_bind_blob64(arg0, arg1, arg2, arg3, arg4); - } - - late final _sqlite3_bind_blob64Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - sqlite3_uint64, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_bind_blob64'); - late final _sqlite3_bind_blob64 = _sqlite3_bind_blob64Ptr - .asFunction< - int Function( - ffi.Pointer, - int, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - int sqlite3_bind_double( - ffi.Pointer arg0, - int arg1, - double arg2, - ) { - return _sqlite3_bind_double(arg0, arg1, arg2); - } - - late final _sqlite3_bind_doublePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Double) - > - >('sqlite3_bind_double'); - late final _sqlite3_bind_double = _sqlite3_bind_doublePtr - .asFunction, int, double)>(); - - int sqlite3_bind_int(ffi.Pointer arg0, int arg1, int arg2) { - return _sqlite3_bind_int(arg0, arg1, arg2); - } - - late final _sqlite3_bind_intPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int) - > - >('sqlite3_bind_int'); - late final _sqlite3_bind_int = _sqlite3_bind_intPtr - .asFunction, int, int)>(); - - int sqlite3_bind_int64(ffi.Pointer arg0, int arg1, int arg2) { - return _sqlite3_bind_int64(arg0, arg1, arg2); - } - - late final _sqlite3_bind_int64Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, sqlite3_int64) - > - >('sqlite3_bind_int64'); - late final _sqlite3_bind_int64 = _sqlite3_bind_int64Ptr - .asFunction, int, int)>(); - - int sqlite3_bind_null(ffi.Pointer arg0, int arg1) { - return _sqlite3_bind_null(arg0, arg1); - } - - late final _sqlite3_bind_nullPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_bind_null'); - late final _sqlite3_bind_null = _sqlite3_bind_nullPtr - .asFunction, int)>(); - - /// CAPI3REF: Number Of SQL Parameters - /// METHOD: sqlite3_stmt - /// - /// ^This routine can be used to find the number of [SQL parameters] - /// in a [prepared statement]. SQL parameters are tokens of the - /// form "?", "?NNN", ":AAA", "$AAA", or "@AAA" that serve as - /// placeholders for values that are [sqlite3_bind_blob | bound] - /// to the parameters at a later time. - /// - /// ^(This routine actually returns the index of the largest (rightmost) - /// parameter. For all forms except ?NNN, this will correspond to the - /// number of unique parameters. If parameters of the ?NNN form are used, - /// there may be gaps in the list.)^ - /// - /// See also: [sqlite3_bind_blob|sqlite3_bind()], - /// [sqlite3_bind_parameter_name()], and - /// [sqlite3_bind_parameter_index()]. - int sqlite3_bind_parameter_count(ffi.Pointer arg0) { - return _sqlite3_bind_parameter_count(arg0); - } - - late final _sqlite3_bind_parameter_countPtr = - _lookup)>>( - 'sqlite3_bind_parameter_count', - ); - late final _sqlite3_bind_parameter_count = _sqlite3_bind_parameter_countPtr - .asFunction)>(); - - /// CAPI3REF: Index Of A Parameter With A Given Name - /// METHOD: sqlite3_stmt - /// - /// ^Return the index of an SQL parameter given its name. ^The - /// index value returned is suitable for use as the second - /// parameter to [sqlite3_bind_blob|sqlite3_bind()]. ^A zero - /// is returned if no matching parameter is found. ^The parameter - /// name must be given in UTF-8 even if the original statement - /// was prepared from UTF-16 text using [sqlite3_prepare16_v2()] or - /// [sqlite3_prepare16_v3()]. - /// - /// See also: [sqlite3_bind_blob|sqlite3_bind()], - /// [sqlite3_bind_parameter_count()], and - /// [sqlite3_bind_parameter_name()]. - int sqlite3_bind_parameter_index( - ffi.Pointer arg0, - ffi.Pointer zName, - ) { - return _sqlite3_bind_parameter_index(arg0, zName); - } - - late final _sqlite3_bind_parameter_indexPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >('sqlite3_bind_parameter_index'); - late final _sqlite3_bind_parameter_index = _sqlite3_bind_parameter_indexPtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); - - /// CAPI3REF: Name Of A Host Parameter - /// METHOD: sqlite3_stmt - /// - /// ^The sqlite3_bind_parameter_name(P,N) interface returns - /// the name of the N-th [SQL parameter] in the [prepared statement] P. - /// ^(SQL parameters of the form "?NNN" or ":AAA" or "@AAA" or "$AAA" - /// have a name which is the string "?NNN" or ":AAA" or "@AAA" or "$AAA" - /// respectively. - /// In other words, the initial ":" or "$" or "@" or "?" - /// is included as part of the name.)^ - /// ^Parameters of the form "?" without a following integer have no name - /// and are referred to as "nameless" or "anonymous parameters". - /// - /// ^The first host parameter has an index of 1, not 0. - /// - /// ^If the value N is out of range or if the N-th parameter is - /// nameless, then NULL is returned. ^The returned string is - /// always in UTF-8 encoding even if the named parameter was - /// originally specified as UTF-16 in [sqlite3_prepare16()], - /// [sqlite3_prepare16_v2()], or [sqlite3_prepare16_v3()]. - /// - /// See also: [sqlite3_bind_blob|sqlite3_bind()], - /// [sqlite3_bind_parameter_count()], and - /// [sqlite3_bind_parameter_index()]. - ffi.Pointer sqlite3_bind_parameter_name( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_bind_parameter_name(arg0, arg1); - } - - late final _sqlite3_bind_parameter_namePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_bind_parameter_name'); - late final _sqlite3_bind_parameter_name = _sqlite3_bind_parameter_namePtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - int sqlite3_bind_pointer( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer)>> - arg4, - ) { - return _sqlite3_bind_pointer(arg0, arg1, arg2, arg3, arg4); - } - - late final _sqlite3_bind_pointerPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_bind_pointer'); - late final _sqlite3_bind_pointer = _sqlite3_bind_pointerPtr - .asFunction< - int Function( - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - int sqlite3_bind_text( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer)>> - arg4, - ) { - return _sqlite3_bind_text(arg0, arg1, arg2, arg3, arg4); - } - - late final _sqlite3_bind_textPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_bind_text'); - late final _sqlite3_bind_text = _sqlite3_bind_textPtr - .asFunction< - int Function( - ffi.Pointer, - int, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - int sqlite3_bind_text16( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer)>> - arg4, - ) { - return _sqlite3_bind_text16(arg0, arg1, arg2, arg3, arg4); - } - - late final _sqlite3_bind_text16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_bind_text16'); - late final _sqlite3_bind_text16 = _sqlite3_bind_text16Ptr - .asFunction< - int Function( - ffi.Pointer, - int, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - int sqlite3_bind_text64( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - int arg3, - ffi.Pointer)>> - arg4, - int encoding, - ) { - return _sqlite3_bind_text64(arg0, arg1, arg2, arg3, arg4, encoding); - } - - late final _sqlite3_bind_text64Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - sqlite3_uint64, - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.UnsignedChar, - ) - > - >('sqlite3_bind_text64'); - late final _sqlite3_bind_text64 = _sqlite3_bind_text64Ptr - .asFunction< - int Function( - ffi.Pointer, - int, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - int, - ) - >(); - - int sqlite3_bind_value( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) { - return _sqlite3_bind_value(arg0, arg1, arg2); - } - - late final _sqlite3_bind_valuePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >('sqlite3_bind_value'); - late final _sqlite3_bind_value = _sqlite3_bind_valuePtr - .asFunction< - int Function(ffi.Pointer, int, ffi.Pointer) - >(); - - int sqlite3_bind_zeroblob(ffi.Pointer arg0, int arg1, int n) { - return _sqlite3_bind_zeroblob(arg0, arg1, n); - } - - late final _sqlite3_bind_zeroblobPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int) - > - >('sqlite3_bind_zeroblob'); - late final _sqlite3_bind_zeroblob = _sqlite3_bind_zeroblobPtr - .asFunction, int, int)>(); - - int sqlite3_bind_zeroblob64( - ffi.Pointer arg0, - int arg1, - int arg2, - ) { - return _sqlite3_bind_zeroblob64(arg0, arg1, arg2); - } - - late final _sqlite3_bind_zeroblob64Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, sqlite3_uint64) - > - >('sqlite3_bind_zeroblob64'); - late final _sqlite3_bind_zeroblob64 = _sqlite3_bind_zeroblob64Ptr - .asFunction, int, int)>(); - - /// CAPI3REF: Return The Size Of An Open BLOB - /// METHOD: sqlite3_blob - /// - /// ^Returns the size in bytes of the BLOB accessible via the - /// successfully opened [BLOB handle] in its only argument. ^The - /// incremental blob I/O routines can only read or overwriting existing - /// blob content; they cannot change the size of a blob. - /// - /// This routine only works on a [BLOB handle] which has been created - /// by a prior successful call to [sqlite3_blob_open()] and which has not - /// been closed by [sqlite3_blob_close()]. Passing any other pointer in - /// to this routine results in undefined and probably undesirable behavior. - int sqlite3_blob_bytes(ffi.Pointer arg0) { - return _sqlite3_blob_bytes(arg0); - } - - late final _sqlite3_blob_bytesPtr = - _lookup)>>( - 'sqlite3_blob_bytes', - ); - late final _sqlite3_blob_bytes = _sqlite3_blob_bytesPtr - .asFunction)>(); - - /// CAPI3REF: Close A BLOB Handle - /// DESTRUCTOR: sqlite3_blob - /// - /// ^This function closes an open [BLOB handle]. ^(The BLOB handle is closed - /// unconditionally. Even if this routine returns an error code, the - /// handle is still closed.)^ - /// - /// ^If the blob handle being closed was opened for read-write access, and if - /// the database is in auto-commit mode and there are no other open read-write - /// blob handles or active write statements, the current transaction is - /// committed. ^If an error occurs while committing the transaction, an error - /// code is returned and the transaction rolled back. - /// - /// Calling this function with an argument that is not a NULL pointer or an - /// open blob handle results in undefined behaviour. ^Calling this routine - /// with a null pointer (such as would be returned by a failed call to - /// [sqlite3_blob_open()]) is a harmless no-op. ^Otherwise, if this function - /// is passed a valid open blob handle, the values returned by the - /// sqlite3_errcode() and sqlite3_errmsg() functions are set before returning. - int sqlite3_blob_close(ffi.Pointer arg0) { - return _sqlite3_blob_close(arg0); - } - - late final _sqlite3_blob_closePtr = - _lookup)>>( - 'sqlite3_blob_close', - ); - late final _sqlite3_blob_close = _sqlite3_blob_closePtr - .asFunction)>(); - - /// CAPI3REF: Open A BLOB For Incremental I/O - /// METHOD: sqlite3 - /// CONSTRUCTOR: sqlite3_blob - /// - /// ^(This interfaces opens a [BLOB handle | handle] to the BLOB located - /// in row iRow, column zColumn, table zTable in database zDb; - /// in other words, the same BLOB that would be selected by: - /// - ///
-  /// SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow;
-  /// 
)^ - /// - /// ^(Parameter zDb is not the filename that contains the database, but - /// rather the symbolic name of the database. For attached databases, this is - /// the name that appears after the AS keyword in the [ATTACH] statement. - /// For the main database file, the database name is "main". For TEMP - /// tables, the database name is "temp".)^ - /// - /// ^If the flags parameter is non-zero, then the BLOB is opened for read - /// and write access. ^If the flags parameter is zero, the BLOB is opened for - /// read-only access. - /// - /// ^(On success, [SQLITE_OK] is returned and the new [BLOB handle] is stored - /// in *ppBlob. Otherwise an [error code] is returned and, unless the error - /// code is SQLITE_MISUSE, *ppBlob is set to NULL.)^ ^This means that, provided - /// the API is not misused, it is always safe to call [sqlite3_blob_close()] - /// on *ppBlob after this function it returns. - /// - /// This function fails with SQLITE_ERROR if any of the following are true: - ///
    - ///
  • ^(Database zDb does not exist)^, - ///
  • ^(Table zTable does not exist within database zDb)^, - ///
  • ^(Table zTable is a WITHOUT ROWID table)^, - ///
  • ^(Column zColumn does not exist)^, - ///
  • ^(Row iRow is not present in the table)^, - ///
  • ^(The specified column of row iRow contains a value that is not - /// a TEXT or BLOB value)^, - ///
  • ^(Column zColumn is part of an index, PRIMARY KEY or UNIQUE - /// constraint and the blob is being opened for read/write access)^, - ///
  • ^([foreign key constraints | Foreign key constraints] are enabled, - /// column zColumn is part of a [child key] definition and the blob is - /// being opened for read/write access)^. - ///
- /// - /// ^Unless it returns SQLITE_MISUSE, this function sets the - /// [database connection] error code and message accessible via - /// [sqlite3_errcode()] and [sqlite3_errmsg()] and related functions. - /// - /// A BLOB referenced by sqlite3_blob_open() may be read using the - /// [sqlite3_blob_read()] interface and modified by using - /// [sqlite3_blob_write()]. The [BLOB handle] can be moved to a - /// different row of the same table using the [sqlite3_blob_reopen()] - /// interface. However, the column, table, or database of a [BLOB handle] - /// cannot be changed after the [BLOB handle] is opened. - /// - /// ^(If the row that a BLOB handle points to is modified by an - /// [UPDATE], [DELETE], or by [ON CONFLICT] side-effects - /// then the BLOB handle is marked as "expired". - /// This is true if any column of the row is changed, even a column - /// other than the one the BLOB handle is open on.)^ - /// ^Calls to [sqlite3_blob_read()] and [sqlite3_blob_write()] for - /// an expired BLOB handle fail with a return code of [SQLITE_ABORT]. - /// ^(Changes written into a BLOB prior to the BLOB expiring are not - /// rolled back by the expiration of the BLOB. Such changes will eventually - /// commit if the transaction continues to completion.)^ - /// - /// ^Use the [sqlite3_blob_bytes()] interface to determine the size of - /// the opened blob. ^The size of a blob may not be changed by this - /// interface. Use the [UPDATE] SQL command to change the size of a - /// blob. - /// - /// ^The [sqlite3_bind_zeroblob()] and [sqlite3_result_zeroblob()] interfaces - /// and the built-in [zeroblob] SQL function may be used to create a - /// zero-filled blob to read or write using the incremental-blob interface. - /// - /// To avoid a resource leak, every open [BLOB handle] should eventually - /// be released by a call to [sqlite3_blob_close()]. - /// - /// See also: [sqlite3_blob_close()], - /// [sqlite3_blob_reopen()], [sqlite3_blob_read()], - /// [sqlite3_blob_bytes()], [sqlite3_blob_write()]. - int sqlite3_blob_open( - ffi.Pointer arg0, - ffi.Pointer zDb, - ffi.Pointer zTable, - ffi.Pointer zColumn, - int iRow, - int flags, - ffi.Pointer> ppBlob, - ) { - return _sqlite3_blob_open(arg0, zDb, zTable, zColumn, iRow, flags, ppBlob); - } - - late final _sqlite3_blob_openPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - sqlite3_int64, - ffi.Int, - ffi.Pointer>, - ) - > - >('sqlite3_blob_open'); - late final _sqlite3_blob_open = _sqlite3_blob_openPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer>, - ) - >(); - - /// CAPI3REF: Read Data From A BLOB Incrementally - /// METHOD: sqlite3_blob - /// - /// ^(This function is used to read data from an open [BLOB handle] into a - /// caller-supplied buffer. N bytes of data are copied into buffer Z - /// from the open BLOB, starting at offset iOffset.)^ - /// - /// ^If offset iOffset is less than N bytes from the end of the BLOB, - /// [SQLITE_ERROR] is returned and no data is read. ^If N or iOffset is - /// less than zero, [SQLITE_ERROR] is returned and no data is read. - /// ^The size of the blob (and hence the maximum value of N+iOffset) - /// can be determined using the [sqlite3_blob_bytes()] interface. - /// - /// ^An attempt to read from an expired [BLOB handle] fails with an - /// error code of [SQLITE_ABORT]. - /// - /// ^(On success, sqlite3_blob_read() returns SQLITE_OK. - /// Otherwise, an [error code] or an [extended error code] is returned.)^ - /// - /// This routine only works on a [BLOB handle] which has been created - /// by a prior successful call to [sqlite3_blob_open()] and which has not - /// been closed by [sqlite3_blob_close()]. Passing any other pointer in - /// to this routine results in undefined and probably undesirable behavior. - /// - /// See also: [sqlite3_blob_write()]. - int sqlite3_blob_read( - ffi.Pointer arg0, - ffi.Pointer Z, - int N, - int iOffset, - ) { - return _sqlite3_blob_read(arg0, Z, N, iOffset); - } - - late final _sqlite3_blob_readPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ) - > - >('sqlite3_blob_read'); - late final _sqlite3_blob_read = _sqlite3_blob_readPtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, int) - >(); - - /// CAPI3REF: Move a BLOB Handle to a New Row - /// METHOD: sqlite3_blob - /// - /// ^This function is used to move an existing [BLOB handle] so that it points - /// to a different row of the same database table. ^The new row is identified - /// by the rowid value passed as the second argument. Only the row can be - /// changed. ^The database, table and column on which the blob handle is open - /// remain the same. Moving an existing [BLOB handle] to a new row is - /// faster than closing the existing handle and opening a new one. - /// - /// ^(The new row must meet the same criteria as for [sqlite3_blob_open()] - - /// it must exist and there must be either a blob or text value stored in - /// the nominated column.)^ ^If the new row is not present in the table, or if - /// it does not contain a blob or text value, or if another error occurs, an - /// SQLite error code is returned and the blob handle is considered aborted. - /// ^All subsequent calls to [sqlite3_blob_read()], [sqlite3_blob_write()] or - /// [sqlite3_blob_reopen()] on an aborted blob handle immediately return - /// SQLITE_ABORT. ^Calling [sqlite3_blob_bytes()] on an aborted blob handle - /// always returns zero. - /// - /// ^This function sets the database handle error code and message. - int sqlite3_blob_reopen(ffi.Pointer arg0, int arg1) { - return _sqlite3_blob_reopen(arg0, arg1); - } - - late final _sqlite3_blob_reopenPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, sqlite3_int64) - > - >('sqlite3_blob_reopen'); - late final _sqlite3_blob_reopen = _sqlite3_blob_reopenPtr - .asFunction, int)>(); - - /// CAPI3REF: Write Data Into A BLOB Incrementally - /// METHOD: sqlite3_blob - /// - /// ^(This function is used to write data into an open [BLOB handle] from a - /// caller-supplied buffer. N bytes of data are copied from the buffer Z - /// into the open BLOB, starting at offset iOffset.)^ - /// - /// ^(On success, sqlite3_blob_write() returns SQLITE_OK. - /// Otherwise, an [error code] or an [extended error code] is returned.)^ - /// ^Unless SQLITE_MISUSE is returned, this function sets the - /// [database connection] error code and message accessible via - /// [sqlite3_errcode()] and [sqlite3_errmsg()] and related functions. - /// - /// ^If the [BLOB handle] passed as the first argument was not opened for - /// writing (the flags parameter to [sqlite3_blob_open()] was zero), - /// this function returns [SQLITE_READONLY]. - /// - /// This function may only modify the contents of the BLOB; it is - /// not possible to increase the size of a BLOB using this API. - /// ^If offset iOffset is less than N bytes from the end of the BLOB, - /// [SQLITE_ERROR] is returned and no data is written. The size of the - /// BLOB (and hence the maximum value of N+iOffset) can be determined - /// using the [sqlite3_blob_bytes()] interface. ^If N or iOffset are less - /// than zero [SQLITE_ERROR] is returned and no data is written. - /// - /// ^An attempt to write to an expired [BLOB handle] fails with an - /// error code of [SQLITE_ABORT]. ^Writes to the BLOB that occurred - /// before the [BLOB handle] expired are not rolled back by the - /// expiration of the handle, though of course those changes might - /// have been overwritten by the statement that expired the BLOB handle - /// or by other independent statements. - /// - /// This routine only works on a [BLOB handle] which has been created - /// by a prior successful call to [sqlite3_blob_open()] and which has not - /// been closed by [sqlite3_blob_close()]. Passing any other pointer in - /// to this routine results in undefined and probably undesirable behavior. - /// - /// See also: [sqlite3_blob_read()]. - int sqlite3_blob_write( - ffi.Pointer arg0, - ffi.Pointer z, - int n, - int iOffset, - ) { - return _sqlite3_blob_write(arg0, z, n, iOffset); - } - - late final _sqlite3_blob_writePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ) - > - >('sqlite3_blob_write'); - late final _sqlite3_blob_write = _sqlite3_blob_writePtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, int) - >(); - - /// CAPI3REF: Register A Callback To Handle SQLITE_BUSY Errors - /// KEYWORDS: {busy-handler callback} {busy handler} - /// METHOD: sqlite3 - /// - /// ^The sqlite3_busy_handler(D,X,P) routine sets a callback function X - /// that might be invoked with argument P whenever - /// an attempt is made to access a database table associated with - /// [database connection] D when another thread - /// or process has the table locked. - /// The sqlite3_busy_handler() interface is used to implement - /// [sqlite3_busy_timeout()] and [PRAGMA busy_timeout]. - /// - /// ^If the busy callback is NULL, then [SQLITE_BUSY] - /// is returned immediately upon encountering the lock. ^If the busy callback - /// is not NULL, then the callback might be invoked with two arguments. - /// - /// ^The first argument to the busy handler is a copy of the void* pointer which - /// is the third argument to sqlite3_busy_handler(). ^The second argument to - /// the busy handler callback is the number of times that the busy handler has - /// been invoked previously for the same locking event. ^If the - /// busy callback returns 0, then no additional attempts are made to - /// access the database and [SQLITE_BUSY] is returned - /// to the application. - /// ^If the callback returns non-zero, then another attempt - /// is made to access the database and the cycle repeats. - /// - /// The presence of a busy handler does not guarantee that it will be invoked - /// when there is lock contention. ^If SQLite determines that invoking the busy - /// handler could result in a deadlock, it will go ahead and return [SQLITE_BUSY] - /// to the application instead of invoking the - /// busy handler. - /// Consider a scenario where one process is holding a read lock that - /// it is trying to promote to a reserved lock and - /// a second process is holding a reserved lock that it is trying - /// to promote to an exclusive lock. The first process cannot proceed - /// because it is blocked by the second and the second process cannot - /// proceed because it is blocked by the first. If both processes - /// invoke the busy handlers, neither will make any progress. Therefore, - /// SQLite returns [SQLITE_BUSY] for the first process, hoping that this - /// will induce the first process to release its read lock and allow - /// the second process to proceed. - /// - /// ^The default busy callback is NULL. - /// - /// ^(There can only be a single busy handler defined for each - /// [database connection]. Setting a new busy handler clears any - /// previously set handler.)^ ^Note that calling [sqlite3_busy_timeout()] - /// or evaluating [PRAGMA busy_timeout=N] will change the - /// busy handler and thus clear any previously set busy handler. - /// - /// The busy callback should not take any actions which modify the - /// database connection that invoked the busy handler. In other words, - /// the busy handler is not reentrant. Any such actions - /// result in undefined behavior. - /// - /// A busy handler must not close the database connection - /// or [prepared statement] that invoked the busy handler. - int sqlite3_busy_handler( - ffi.Pointer arg0, - ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - arg1, - ffi.Pointer arg2, - ) { - return _sqlite3_busy_handler(arg0, arg1, arg2); - } - - late final _sqlite3_busy_handlerPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int) - > - >, - ffi.Pointer, - ) - > - >('sqlite3_busy_handler'); - late final _sqlite3_busy_handler = _sqlite3_busy_handlerPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - >, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Set A Busy Timeout - /// METHOD: sqlite3 - /// - /// ^This routine sets a [sqlite3_busy_handler | busy handler] that sleeps - /// for a specified amount of time when a table is locked. ^The handler - /// will sleep multiple times until at least "ms" milliseconds of sleeping - /// have accumulated. ^After at least "ms" milliseconds of sleeping, - /// the handler returns 0 which causes [sqlite3_step()] to return - /// [SQLITE_BUSY]. - /// - /// ^Calling this routine with an argument less than or equal to zero - /// turns off all busy handlers. - /// - /// ^(There can only be a single busy handler for a particular - /// [database connection] at any given moment. If another busy handler - /// was defined (using [sqlite3_busy_handler()]) prior to calling - /// this routine, that other busy handler is cleared.)^ - /// - /// See also: [PRAGMA busy_timeout] - int sqlite3_busy_timeout(ffi.Pointer arg0, int ms) { - return _sqlite3_busy_timeout(arg0, ms); - } - - late final _sqlite3_busy_timeoutPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_busy_timeout'); - late final _sqlite3_busy_timeout = _sqlite3_busy_timeoutPtr - .asFunction, int)>(); - - /// CAPI3REF: Cancel Automatic Extension Loading - /// - /// ^The [sqlite3_cancel_auto_extension(X)] interface unregisters the - /// initialization routine X that was registered using a prior call to - /// [sqlite3_auto_extension(X)]. ^The [sqlite3_cancel_auto_extension(X)] - /// routine returns 1 if initialization routine X was successfully - /// unregistered and it returns 0 if X was not on the list of initialization - /// routines. - int sqlite3_cancel_auto_extension( - ffi.Pointer> xEntryPoint, - ) { - return _sqlite3_cancel_auto_extension(xEntryPoint); - } - - late final _sqlite3_cancel_auto_extensionPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer>) - > - >('sqlite3_cancel_auto_extension'); - late final _sqlite3_cancel_auto_extension = _sqlite3_cancel_auto_extensionPtr - .asFunction< - int Function(ffi.Pointer>) - >(); - - /// CAPI3REF: Count The Number Of Rows Modified - /// METHOD: sqlite3 - /// - /// ^This function returns the number of rows modified, inserted or - /// deleted by the most recently completed INSERT, UPDATE or DELETE - /// statement on the database connection specified by the only parameter. - /// ^Executing any other type of SQL statement does not modify the value - /// returned by this function. - /// - /// ^Only changes made directly by the INSERT, UPDATE or DELETE statement are - /// considered - auxiliary changes caused by [CREATE TRIGGER | triggers], - /// [foreign key actions] or [REPLACE] constraint resolution are not counted. - /// - /// Changes to a view that are intercepted by - /// [INSTEAD OF trigger | INSTEAD OF triggers] are not counted. ^The value - /// returned by sqlite3_changes() immediately after an INSERT, UPDATE or - /// DELETE statement run on a view is always zero. Only changes made to real - /// tables are counted. - /// - /// Things are more complicated if the sqlite3_changes() function is - /// executed while a trigger program is running. This may happen if the - /// program uses the [changes() SQL function], or if some other callback - /// function invokes sqlite3_changes() directly. Essentially: - /// - ///
    - ///
  • ^(Before entering a trigger program the value returned by - /// sqlite3_changes() function is saved. After the trigger program - /// has finished, the original value is restored.)^ - /// - ///
  • ^(Within a trigger program each INSERT, UPDATE and DELETE - /// statement sets the value returned by sqlite3_changes() - /// upon completion as normal. Of course, this value will not include - /// any changes performed by sub-triggers, as the sqlite3_changes() - /// value will be saved and restored after each sub-trigger has run.)^ - ///
- /// - /// ^This means that if the changes() SQL function (or similar) is used - /// by the first INSERT, UPDATE or DELETE statement within a trigger, it - /// returns the value as set when the calling statement began executing. - /// ^If it is used by the second or subsequent such statement within a trigger - /// program, the value returned reflects the number of rows modified by the - /// previous INSERT, UPDATE or DELETE statement within the same trigger. - /// - /// If a separate thread makes changes on the same database connection - /// while [sqlite3_changes()] is running then the value returned - /// is unpredictable and not meaningful. - /// - /// See also: - ///
    - ///
  • the [sqlite3_total_changes()] interface - ///
  • the [count_changes pragma] - ///
  • the [changes() SQL function] - ///
  • the [data_version pragma] - ///
- int sqlite3_changes(ffi.Pointer arg0) { - return _sqlite3_changes(arg0); - } - - late final _sqlite3_changesPtr = - _lookup)>>( - 'sqlite3_changes', - ); - late final _sqlite3_changes = _sqlite3_changesPtr - .asFunction)>(); - - /// CAPI3REF: Reset All Bindings On A Prepared Statement - /// METHOD: sqlite3_stmt - /// - /// ^Contrary to the intuition of many, [sqlite3_reset()] does not reset - /// the [sqlite3_bind_blob | bindings] on a [prepared statement]. - /// ^Use this routine to reset all host parameters to NULL. - int sqlite3_clear_bindings(ffi.Pointer arg0) { - return _sqlite3_clear_bindings(arg0); - } - - late final _sqlite3_clear_bindingsPtr = - _lookup)>>( - 'sqlite3_clear_bindings', - ); - late final _sqlite3_clear_bindings = _sqlite3_clear_bindingsPtr - .asFunction)>(); - - /// CAPI3REF: Closing A Database Connection - /// DESTRUCTOR: sqlite3 - /// - /// ^The sqlite3_close() and sqlite3_close_v2() routines are destructors - /// for the [sqlite3] object. - /// ^Calls to sqlite3_close() and sqlite3_close_v2() return [SQLITE_OK] if - /// the [sqlite3] object is successfully destroyed and all associated - /// resources are deallocated. - /// - /// Ideally, applications should [sqlite3_finalize | finalize] all - /// [prepared statements], [sqlite3_blob_close | close] all [BLOB handles], and - /// [sqlite3_backup_finish | finish] all [sqlite3_backup] objects associated - /// with the [sqlite3] object prior to attempting to close the object. - /// ^If the database connection is associated with unfinalized prepared - /// statements, BLOB handlers, and/or unfinished sqlite3_backup objects then - /// sqlite3_close() will leave the database connection open and return - /// [SQLITE_BUSY]. ^If sqlite3_close_v2() is called with unfinalized prepared - /// statements, unclosed BLOB handlers, and/or unfinished sqlite3_backups, - /// it returns [SQLITE_OK] regardless, but instead of deallocating the database - /// connection immediately, it marks the database connection as an unusable - /// "zombie" and makes arrangements to automatically deallocate the database - /// connection after all prepared statements are finalized, all BLOB handles - /// are closed, and all backups have finished. The sqlite3_close_v2() interface - /// is intended for use with host languages that are garbage collected, and - /// where the order in which destructors are called is arbitrary. - /// - /// ^If an [sqlite3] object is destroyed while a transaction is open, - /// the transaction is automatically rolled back. - /// - /// The C parameter to [sqlite3_close(C)] and [sqlite3_close_v2(C)] - /// must be either a NULL - /// pointer or an [sqlite3] object pointer obtained - /// from [sqlite3_open()], [sqlite3_open16()], or - /// [sqlite3_open_v2()], and not previously closed. - /// ^Calling sqlite3_close() or sqlite3_close_v2() with a NULL pointer - /// argument is a harmless no-op. - int sqlite3_close(ffi.Pointer arg0) { - return _sqlite3_close(arg0); - } - - late final _sqlite3_closePtr = - _lookup)>>( - 'sqlite3_close', - ); - late final _sqlite3_close = _sqlite3_closePtr - .asFunction)>(); - - int sqlite3_close_v2(ffi.Pointer arg0) { - return _sqlite3_close_v2(arg0); - } - - late final _sqlite3_close_v2Ptr = - _lookup)>>( - 'sqlite3_close_v2', - ); - late final _sqlite3_close_v2 = _sqlite3_close_v2Ptr - .asFunction)>(); - - /// CAPI3REF: Collation Needed Callbacks - /// METHOD: sqlite3 - /// - /// ^To avoid having to register all collation sequences before a database - /// can be used, a single callback function may be registered with the - /// [database connection] to be invoked whenever an undefined collation - /// sequence is required. - /// - /// ^If the function is registered using the sqlite3_collation_needed() API, - /// then it is passed the names of undefined collation sequences as strings - /// encoded in UTF-8. ^If sqlite3_collation_needed16() is used, - /// the names are passed as UTF-16 in machine native byte order. - /// ^A call to either function replaces the existing collation-needed callback. - /// - /// ^(When the callback is invoked, the first argument passed is a copy - /// of the second argument to sqlite3_collation_needed() or - /// sqlite3_collation_needed16(). The second argument is the database - /// connection. The third argument is one of [SQLITE_UTF8], [SQLITE_UTF16BE], - /// or [SQLITE_UTF16LE], indicating the most desirable form of the collation - /// sequence function required. The fourth parameter is the name of the - /// required collation sequence.)^ - /// - /// The callback function should register the desired collation using - /// [sqlite3_create_collation()], [sqlite3_create_collation16()], or - /// [sqlite3_create_collation_v2()]. - int sqlite3_collation_needed( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - arg2, - ) { - return _sqlite3_collation_needed(arg0, arg1, arg2); - } - - late final _sqlite3_collation_neededPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >, - ) - > - >('sqlite3_collation_needed'); - late final _sqlite3_collation_needed = _sqlite3_collation_neededPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >, - ) - >(); - - int sqlite3_collation_needed16( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - arg2, - ) { - return _sqlite3_collation_needed16(arg0, arg1, arg2); - } - - late final _sqlite3_collation_needed16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >, - ) - > - >('sqlite3_collation_needed16'); - late final _sqlite3_collation_needed16 = _sqlite3_collation_needed16Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >, - ) - >(); - - /// CAPI3REF: Result Values From A Query - /// KEYWORDS: {column access functions} - /// METHOD: sqlite3_stmt - /// - /// Summary: - ///
- ///
sqlite3_column_blobBLOB result - ///
sqlite3_column_doubleREAL result - ///
sqlite3_column_int32-bit INTEGER result - ///
sqlite3_column_int6464-bit INTEGER result - ///
sqlite3_column_textUTF-8 TEXT result - ///
sqlite3_column_text16UTF-16 TEXT result - ///
sqlite3_column_valueThe result as an - /// [sqlite3_value|unprotected sqlite3_value] object. - ///
    - ///
sqlite3_column_bytesSize of a BLOB - /// or a UTF-8 TEXT result in bytes - ///
sqlite3_column_bytes16   - /// →  Size of UTF-16 - /// TEXT in bytes - ///
sqlite3_column_typeDefault - /// datatype of the result - ///
- /// - /// Details: - /// - /// ^These routines return information about a single column of the current - /// result row of a query. ^In every case the first argument is a pointer - /// to the [prepared statement] that is being evaluated (the [sqlite3_stmt*] - /// that was returned from [sqlite3_prepare_v2()] or one of its variants) - /// and the second argument is the index of the column for which information - /// should be returned. ^The leftmost column of the result set has the index 0. - /// ^The number of columns in the result can be determined using - /// [sqlite3_column_count()]. - /// - /// If the SQL statement does not currently point to a valid row, or if the - /// column index is out of range, the result is undefined. - /// These routines may only be called when the most recent call to - /// [sqlite3_step()] has returned [SQLITE_ROW] and neither - /// [sqlite3_reset()] nor [sqlite3_finalize()] have been called subsequently. - /// If any of these routines are called after [sqlite3_reset()] or - /// [sqlite3_finalize()] or after [sqlite3_step()] has returned - /// something other than [SQLITE_ROW], the results are undefined. - /// If [sqlite3_step()] or [sqlite3_reset()] or [sqlite3_finalize()] - /// are called from a different thread while any of these routines - /// are pending, then the results are undefined. - /// - /// The first six interfaces (_blob, _double, _int, _int64, _text, and _text16) - /// each return the value of a result column in a specific data format. If - /// the result column is not initially in the requested format (for example, - /// if the query returns an integer but the sqlite3_column_text() interface - /// is used to extract the value) then an automatic type conversion is performed. - /// - /// ^The sqlite3_column_type() routine returns the - /// [SQLITE_INTEGER | datatype code] for the initial data type - /// of the result column. ^The returned value is one of [SQLITE_INTEGER], - /// [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL]. - /// The return value of sqlite3_column_type() can be used to decide which - /// of the first six interface should be used to extract the column value. - /// The value returned by sqlite3_column_type() is only meaningful if no - /// automatic type conversions have occurred for the value in question. - /// After a type conversion, the result of calling sqlite3_column_type() - /// is undefined, though harmless. Future - /// versions of SQLite may change the behavior of sqlite3_column_type() - /// following a type conversion. - /// - /// If the result is a BLOB or a TEXT string, then the sqlite3_column_bytes() - /// or sqlite3_column_bytes16() interfaces can be used to determine the size - /// of that BLOB or string. - /// - /// ^If the result is a BLOB or UTF-8 string then the sqlite3_column_bytes() - /// routine returns the number of bytes in that BLOB or string. - /// ^If the result is a UTF-16 string, then sqlite3_column_bytes() converts - /// the string to UTF-8 and then returns the number of bytes. - /// ^If the result is a numeric value then sqlite3_column_bytes() uses - /// [sqlite3_snprintf()] to convert that value to a UTF-8 string and returns - /// the number of bytes in that string. - /// ^If the result is NULL, then sqlite3_column_bytes() returns zero. - /// - /// ^If the result is a BLOB or UTF-16 string then the sqlite3_column_bytes16() - /// routine returns the number of bytes in that BLOB or string. - /// ^If the result is a UTF-8 string, then sqlite3_column_bytes16() converts - /// the string to UTF-16 and then returns the number of bytes. - /// ^If the result is a numeric value then sqlite3_column_bytes16() uses - /// [sqlite3_snprintf()] to convert that value to a UTF-16 string and returns - /// the number of bytes in that string. - /// ^If the result is NULL, then sqlite3_column_bytes16() returns zero. - /// - /// ^The values returned by [sqlite3_column_bytes()] and - /// [sqlite3_column_bytes16()] do not include the zero terminators at the end - /// of the string. ^For clarity: the values returned by - /// [sqlite3_column_bytes()] and [sqlite3_column_bytes16()] are the number of - /// bytes in the string, not the number of characters. - /// - /// ^Strings returned by sqlite3_column_text() and sqlite3_column_text16(), - /// even empty strings, are always zero-terminated. ^The return - /// value from sqlite3_column_blob() for a zero-length BLOB is a NULL pointer. - /// - /// Warning: ^The object returned by [sqlite3_column_value()] is an - /// [unprotected sqlite3_value] object. In a multithreaded environment, - /// an unprotected sqlite3_value object may only be used safely with - /// [sqlite3_bind_value()] and [sqlite3_result_value()]. - /// If the [unprotected sqlite3_value] object returned by - /// [sqlite3_column_value()] is used in any other way, including calls - /// to routines like [sqlite3_value_int()], [sqlite3_value_text()], - /// or [sqlite3_value_bytes()], the behavior is not threadsafe. - /// Hence, the sqlite3_column_value() interface - /// is normally only useful within the implementation of - /// [application-defined SQL functions] or [virtual tables], not within - /// top-level application code. - /// - /// The these routines may attempt to convert the datatype of the result. - /// ^For example, if the internal representation is FLOAT and a text result - /// is requested, [sqlite3_snprintf()] is used internally to perform the - /// conversion automatically. ^(The following table details the conversions - /// that are applied: - /// - ///
- /// - ///
Internal
Type
Requested
Type
Conversion - /// - ///
NULL INTEGER Result is 0 - ///
NULL FLOAT Result is 0.0 - ///
NULL TEXT Result is a NULL pointer - ///
NULL BLOB Result is a NULL pointer - ///
INTEGER FLOAT Convert from integer to float - ///
INTEGER TEXT ASCII rendering of the integer - ///
INTEGER BLOB Same as INTEGER->TEXT - ///
FLOAT INTEGER [CAST] to INTEGER - ///
FLOAT TEXT ASCII rendering of the float - ///
FLOAT BLOB [CAST] to BLOB - ///
TEXT INTEGER [CAST] to INTEGER - ///
TEXT FLOAT [CAST] to REAL - ///
TEXT BLOB No change - ///
BLOB INTEGER [CAST] to INTEGER - ///
BLOB FLOAT [CAST] to REAL - ///
BLOB TEXT Add a zero terminator if needed - ///
- ///
)^ - /// - /// Note that when type conversions occur, pointers returned by prior - /// calls to sqlite3_column_blob(), sqlite3_column_text(), and/or - /// sqlite3_column_text16() may be invalidated. - /// Type conversions and pointer invalidations might occur - /// in the following cases: - /// - ///
    - ///
  • The initial content is a BLOB and sqlite3_column_text() or - /// sqlite3_column_text16() is called. A zero-terminator might - /// need to be added to the string.
  • - ///
  • The initial content is UTF-8 text and sqlite3_column_bytes16() or - /// sqlite3_column_text16() is called. The content must be converted - /// to UTF-16.
  • - ///
  • The initial content is UTF-16 text and sqlite3_column_bytes() or - /// sqlite3_column_text() is called. The content must be converted - /// to UTF-8.
  • - ///
- /// - /// ^Conversions between UTF-16be and UTF-16le are always done in place and do - /// not invalidate a prior pointer, though of course the content of the buffer - /// that the prior pointer references will have been modified. Other kinds - /// of conversion are done in place when it is possible, but sometimes they - /// are not possible and in those cases prior pointers are invalidated. - /// - /// The safest policy is to invoke these routines - /// in one of the following ways: - /// - ///
    - ///
  • sqlite3_column_text() followed by sqlite3_column_bytes()
  • - ///
  • sqlite3_column_blob() followed by sqlite3_column_bytes()
  • - ///
  • sqlite3_column_text16() followed by sqlite3_column_bytes16()
  • - ///
- /// - /// In other words, you should call sqlite3_column_text(), - /// sqlite3_column_blob(), or sqlite3_column_text16() first to force the result - /// into the desired format, then invoke sqlite3_column_bytes() or - /// sqlite3_column_bytes16() to find the size of the result. Do not mix calls - /// to sqlite3_column_text() or sqlite3_column_blob() with calls to - /// sqlite3_column_bytes16(), and do not mix calls to sqlite3_column_text16() - /// with calls to sqlite3_column_bytes(). - /// - /// ^The pointers returned are valid until a type conversion occurs as - /// described above, or until [sqlite3_step()] or [sqlite3_reset()] or - /// [sqlite3_finalize()] is called. ^The memory space used to hold strings - /// and BLOBs is freed automatically. Do not pass the pointers returned - /// from [sqlite3_column_blob()], [sqlite3_column_text()], etc. into - /// [sqlite3_free()]. - /// - /// As long as the input parameters are correct, these routines will only - /// fail if an out-of-memory error occurs during a format conversion. - /// Only the following subset of interfaces are subject to out-of-memory - /// errors: - /// - ///
    - ///
  • sqlite3_column_blob() - ///
  • sqlite3_column_text() - ///
  • sqlite3_column_text16() - ///
  • sqlite3_column_bytes() - ///
  • sqlite3_column_bytes16() - ///
- /// - /// If an out-of-memory error occurs, then the return value from these - /// routines is the same as if the column had contained an SQL NULL value. - /// Valid SQL NULL returns can be distinguished from out-of-memory errors - /// by invoking the [sqlite3_errcode()] immediately after the suspect - /// return value is obtained and before any - /// other SQLite interface is called on the same [database connection]. - ffi.Pointer sqlite3_column_blob( - ffi.Pointer arg0, - int iCol, - ) { - return _sqlite3_column_blob(arg0, iCol); - } - - late final _sqlite3_column_blobPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_blob'); - late final _sqlite3_column_blob = _sqlite3_column_blobPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - int sqlite3_column_bytes(ffi.Pointer arg0, int iCol) { - return _sqlite3_column_bytes(arg0, iCol); - } - - late final _sqlite3_column_bytesPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_column_bytes'); - late final _sqlite3_column_bytes = _sqlite3_column_bytesPtr - .asFunction, int)>(); - - int sqlite3_column_bytes16(ffi.Pointer arg0, int iCol) { - return _sqlite3_column_bytes16(arg0, iCol); - } - - late final _sqlite3_column_bytes16Ptr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_column_bytes16'); - late final _sqlite3_column_bytes16 = _sqlite3_column_bytes16Ptr - .asFunction, int)>(); - - /// CAPI3REF: Number Of Columns In A Result Set - /// METHOD: sqlite3_stmt - /// - /// ^Return the number of columns in the result set returned by the - /// [prepared statement]. ^If this routine returns 0, that means the - /// [prepared statement] returns no data (for example an [UPDATE]). - /// ^However, just because this routine returns a positive number does not - /// mean that one or more rows of data will be returned. ^A SELECT statement - /// will always have a positive sqlite3_column_count() but depending on the - /// WHERE clause constraints and the table content, it might return no rows. - /// - /// See also: [sqlite3_data_count()] - int sqlite3_column_count(ffi.Pointer pStmt) { - return _sqlite3_column_count(pStmt); - } - - late final _sqlite3_column_countPtr = - _lookup)>>( - 'sqlite3_column_count', - ); - late final _sqlite3_column_count = _sqlite3_column_countPtr - .asFunction)>(); - - /// CAPI3REF: Source Of Data In A Query Result - /// METHOD: sqlite3_stmt - /// - /// ^These routines provide a means to determine the database, table, and - /// table column that is the origin of a particular result column in - /// [SELECT] statement. - /// ^The name of the database or table or column can be returned as - /// either a UTF-8 or UTF-16 string. ^The _database_ routines return - /// the database name, the _table_ routines return the table name, and - /// the origin_ routines return the column name. - /// ^The returned string is valid until the [prepared statement] is destroyed - /// using [sqlite3_finalize()] or until the statement is automatically - /// reprepared by the first call to [sqlite3_step()] for a particular run - /// or until the same information is requested - /// again in a different encoding. - /// - /// ^The names returned are the original un-aliased names of the - /// database, table, and column. - /// - /// ^The first argument to these interfaces is a [prepared statement]. - /// ^These functions return information about the Nth result column returned by - /// the statement, where N is the second function argument. - /// ^The left-most column is column 0 for these routines. - /// - /// ^If the Nth column returned by the statement is an expression or - /// subquery and is not a column value, then all of these functions return - /// NULL. ^These routines might also return NULL if a memory allocation error - /// occurs. ^Otherwise, they return the name of the attached database, table, - /// or column that query result column was extracted from. - /// - /// ^As with all other SQLite APIs, those whose names end with "16" return - /// UTF-16 encoded strings and the other functions return UTF-8. - /// - /// ^These APIs are only available if the library was compiled with the - /// [SQLITE_ENABLE_COLUMN_METADATA] C-preprocessor symbol. - /// - /// If two or more threads call one or more - /// [sqlite3_column_database_name | column metadata interfaces] - /// for the same [prepared statement] and result column - /// at the same time then the results are undefined. - ffi.Pointer sqlite3_column_database_name( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_column_database_name(arg0, arg1); - } - - late final _sqlite3_column_database_namePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_database_name'); - late final _sqlite3_column_database_name = _sqlite3_column_database_namePtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - ffi.Pointer sqlite3_column_database_name16( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_column_database_name16(arg0, arg1); - } - - late final _sqlite3_column_database_name16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_database_name16'); - late final _sqlite3_column_database_name16 = - _sqlite3_column_database_name16Ptr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - /// CAPI3REF: Declared Datatype Of A Query Result - /// METHOD: sqlite3_stmt - /// - /// ^(The first parameter is a [prepared statement]. - /// If this statement is a [SELECT] statement and the Nth column of the - /// returned result set of that [SELECT] is a table column (not an - /// expression or subquery) then the declared type of the table - /// column is returned.)^ ^If the Nth column of the result set is an - /// expression or subquery, then a NULL pointer is returned. - /// ^The returned string is always UTF-8 encoded. - /// - /// ^(For example, given the database schema: - /// - /// CREATE TABLE t1(c1 VARIANT); - /// - /// and the following statement to be compiled: - /// - /// SELECT c1 + 1, c1 FROM t1; - /// - /// this routine would return the string "VARIANT" for the second result - /// column (i==1), and a NULL pointer for the first result column (i==0).)^ - /// - /// ^SQLite uses dynamic run-time typing. ^So just because a column - /// is declared to contain a particular type does not mean that the - /// data stored in that column is of the declared type. SQLite is - /// strongly typed, but the typing is dynamic not static. ^Type - /// is associated with individual values, not with the containers - /// used to hold those values. - ffi.Pointer sqlite3_column_decltype( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_column_decltype(arg0, arg1); - } - - late final _sqlite3_column_decltypePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_decltype'); - late final _sqlite3_column_decltype = _sqlite3_column_decltypePtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - ffi.Pointer sqlite3_column_decltype16( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_column_decltype16(arg0, arg1); - } - - late final _sqlite3_column_decltype16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_decltype16'); - late final _sqlite3_column_decltype16 = _sqlite3_column_decltype16Ptr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - double sqlite3_column_double(ffi.Pointer arg0, int iCol) { - return _sqlite3_column_double(arg0, iCol); - } - - late final _sqlite3_column_doublePtr = - _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_double'); - late final _sqlite3_column_double = _sqlite3_column_doublePtr - .asFunction, int)>(); - - int sqlite3_column_int(ffi.Pointer arg0, int iCol) { - return _sqlite3_column_int(arg0, iCol); - } - - late final _sqlite3_column_intPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_column_int'); - late final _sqlite3_column_int = _sqlite3_column_intPtr - .asFunction, int)>(); - - int sqlite3_column_int64(ffi.Pointer arg0, int iCol) { - return _sqlite3_column_int64(arg0, iCol); - } - - late final _sqlite3_column_int64Ptr = - _lookup< - ffi.NativeFunction< - sqlite3_int64 Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_int64'); - late final _sqlite3_column_int64 = _sqlite3_column_int64Ptr - .asFunction, int)>(); - - /// CAPI3REF: Column Names In A Result Set - /// METHOD: sqlite3_stmt - /// - /// ^These routines return the name assigned to a particular column - /// in the result set of a [SELECT] statement. ^The sqlite3_column_name() - /// interface returns a pointer to a zero-terminated UTF-8 string - /// and sqlite3_column_name16() returns a pointer to a zero-terminated - /// UTF-16 string. ^The first parameter is the [prepared statement] - /// that implements the [SELECT] statement. ^The second parameter is the - /// column number. ^The leftmost column is number 0. - /// - /// ^The returned string pointer is valid until either the [prepared statement] - /// is destroyed by [sqlite3_finalize()] or until the statement is automatically - /// reprepared by the first call to [sqlite3_step()] for a particular run - /// or until the next call to - /// sqlite3_column_name() or sqlite3_column_name16() on the same column. - /// - /// ^If sqlite3_malloc() fails during the processing of either routine - /// (for example during a conversion from UTF-8 to UTF-16) then a - /// NULL pointer is returned. - /// - /// ^The name of a result column is the value of the "AS" clause for - /// that column, if there is an AS clause. If there is no AS clause - /// then the name of the column is unspecified and may change from - /// one release of SQLite to the next. - ffi.Pointer sqlite3_column_name( - ffi.Pointer arg0, - int N, - ) { - return _sqlite3_column_name(arg0, N); - } - - late final _sqlite3_column_namePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_name'); - late final _sqlite3_column_name = _sqlite3_column_namePtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - ffi.Pointer sqlite3_column_name16( - ffi.Pointer arg0, - int N, - ) { - return _sqlite3_column_name16(arg0, N); - } - - late final _sqlite3_column_name16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_name16'); - late final _sqlite3_column_name16 = _sqlite3_column_name16Ptr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - ffi.Pointer sqlite3_column_origin_name( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_column_origin_name(arg0, arg1); - } - - late final _sqlite3_column_origin_namePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_origin_name'); - late final _sqlite3_column_origin_name = _sqlite3_column_origin_namePtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - ffi.Pointer sqlite3_column_origin_name16( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_column_origin_name16(arg0, arg1); - } - - late final _sqlite3_column_origin_name16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_origin_name16'); - late final _sqlite3_column_origin_name16 = _sqlite3_column_origin_name16Ptr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - ffi.Pointer sqlite3_column_table_name( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_column_table_name(arg0, arg1); - } - - late final _sqlite3_column_table_namePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_table_name'); - late final _sqlite3_column_table_name = _sqlite3_column_table_namePtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - ffi.Pointer sqlite3_column_table_name16( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_column_table_name16(arg0, arg1); - } - - late final _sqlite3_column_table_name16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_table_name16'); - late final _sqlite3_column_table_name16 = _sqlite3_column_table_name16Ptr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - ffi.Pointer sqlite3_column_text( - ffi.Pointer arg0, - int iCol, - ) { - return _sqlite3_column_text(arg0, iCol); - } - - late final _sqlite3_column_textPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_column_text'); - late final _sqlite3_column_text = _sqlite3_column_textPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - ffi.Pointer sqlite3_column_text16( - ffi.Pointer arg0, - int iCol, - ) { - return _sqlite3_column_text16(arg0, iCol); - } - - late final _sqlite3_column_text16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_column_text16'); - late final _sqlite3_column_text16 = _sqlite3_column_text16Ptr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - int sqlite3_column_type(ffi.Pointer arg0, int iCol) { - return _sqlite3_column_type(arg0, iCol); - } - - late final _sqlite3_column_typePtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_column_type'); - late final _sqlite3_column_type = _sqlite3_column_typePtr - .asFunction, int)>(); - - ffi.Pointer sqlite3_column_value( - ffi.Pointer arg0, - int iCol, - ) { - return _sqlite3_column_value(arg0, iCol); - } - - late final _sqlite3_column_valuePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_column_value'); - late final _sqlite3_column_value = _sqlite3_column_valuePtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - /// CAPI3REF: Commit And Rollback Notification Callbacks - /// METHOD: sqlite3 - /// - /// ^The sqlite3_commit_hook() interface registers a callback - /// function to be invoked whenever a transaction is [COMMIT | committed]. - /// ^Any callback set by a previous call to sqlite3_commit_hook() - /// for the same database connection is overridden. - /// ^The sqlite3_rollback_hook() interface registers a callback - /// function to be invoked whenever a transaction is [ROLLBACK | rolled back]. - /// ^Any callback set by a previous call to sqlite3_rollback_hook() - /// for the same database connection is overridden. - /// ^The pArg argument is passed through to the callback. - /// ^If the callback on a commit hook function returns non-zero, - /// then the commit is converted into a rollback. - /// - /// ^The sqlite3_commit_hook(D,C,P) and sqlite3_rollback_hook(D,C,P) functions - /// return the P argument from the previous call of the same function - /// on the same [database connection] D, or NULL for - /// the first call for each function on D. - /// - /// The commit and rollback hook callbacks are not reentrant. - /// The callback implementation must not do anything that will modify - /// the database connection that invoked the callback. Any actions - /// to modify the database connection must be deferred until after the - /// completion of the [sqlite3_step()] call that triggered the commit - /// or rollback hook in the first place. - /// Note that running any other SQL statements, including SELECT statements, - /// or merely calling [sqlite3_prepare_v2()] and [sqlite3_step()] will modify - /// the database connections for the meaning of "modify" in this paragraph. - /// - /// ^Registering a NULL function disables the callback. - /// - /// ^When the commit hook callback routine returns zero, the [COMMIT] - /// operation is allowed to continue normally. ^If the commit hook - /// returns non-zero, then the [COMMIT] is converted into a [ROLLBACK]. - /// ^The rollback hook is invoked on a rollback that results from a commit - /// hook returning non-zero, just as it would be with any other rollback. - /// - /// ^For the purposes of this API, a transaction is said to have been - /// rolled back if an explicit "ROLLBACK" statement is executed, or - /// an error or constraint causes an implicit rollback to occur. - /// ^The rollback callback is not invoked if a transaction is - /// automatically rolled back because the database connection is closed. - /// - /// See also the [sqlite3_update_hook()] interface. - ffi.Pointer sqlite3_commit_hook( - ffi.Pointer arg0, - ffi.Pointer)>> - arg1, - ffi.Pointer arg2, - ) { - return _sqlite3_commit_hook(arg0, arg1, arg2); - } - - late final _sqlite3_commit_hookPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.Pointer, - ) - > - >('sqlite3_commit_hook'); - late final _sqlite3_commit_hook = _sqlite3_commit_hookPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.Pointer, - ) - >(); - - ffi.Pointer sqlite3_compileoption_get(int N) { - return _sqlite3_compileoption_get(N); - } - - late final _sqlite3_compileoption_getPtr = - _lookup Function(ffi.Int)>>( - 'sqlite3_compileoption_get', - ); - late final _sqlite3_compileoption_get = _sqlite3_compileoption_getPtr - .asFunction Function(int)>(); - - int sqlite3_compileoption_used(ffi.Pointer zOptName) { - return _sqlite3_compileoption_used(zOptName); - } - - late final _sqlite3_compileoption_usedPtr = - _lookup)>>( - 'sqlite3_compileoption_used', - ); - late final _sqlite3_compileoption_used = _sqlite3_compileoption_usedPtr - .asFunction)>(); - - /// CAPI3REF: Determine If An SQL Statement Is Complete - /// - /// These routines are useful during command-line input to determine if the - /// currently entered text seems to form a complete SQL statement or - /// if additional input is needed before sending the text into - /// SQLite for parsing. ^These routines return 1 if the input string - /// appears to be a complete SQL statement. ^A statement is judged to be - /// complete if it ends with a semicolon token and is not a prefix of a - /// well-formed CREATE TRIGGER statement. ^Semicolons that are embedded within - /// string literals or quoted identifier names or comments are not - /// independent tokens (they are part of the token in which they are - /// embedded) and thus do not count as a statement terminator. ^Whitespace - /// and comments that follow the final semicolon are ignored. - /// - /// ^These routines return 0 if the statement is incomplete. ^If a - /// memory allocation fails, then SQLITE_NOMEM is returned. - /// - /// ^These routines do not parse the SQL statements thus - /// will not detect syntactically incorrect SQL. - /// - /// ^(If SQLite has not been initialized using [sqlite3_initialize()] prior - /// to invoking sqlite3_complete16() then sqlite3_initialize() is invoked - /// automatically by sqlite3_complete16(). If that initialization fails, - /// then the return value from sqlite3_complete16() will be non-zero - /// regardless of whether or not the input SQL is complete.)^ - /// - /// The input to [sqlite3_complete()] must be a zero-terminated - /// UTF-8 string. - /// - /// The input to [sqlite3_complete16()] must be a zero-terminated - /// UTF-16 string in native byte order. - int sqlite3_complete(ffi.Pointer sql) { - return _sqlite3_complete(sql); - } - - late final _sqlite3_completePtr = - _lookup)>>( - 'sqlite3_complete', - ); - late final _sqlite3_complete = _sqlite3_completePtr - .asFunction)>(); - - int sqlite3_complete16(ffi.Pointer sql) { - return _sqlite3_complete16(sql); - } - - late final _sqlite3_complete16Ptr = - _lookup)>>( - 'sqlite3_complete16', - ); - late final _sqlite3_complete16 = _sqlite3_complete16Ptr - .asFunction)>(); - - /// CAPI3REF: Configuring The SQLite Library - /// - /// The sqlite3_config() interface is used to make global configuration - /// changes to SQLite in order to tune SQLite to the specific needs of - /// the application. The default configuration is recommended for most - /// applications and so this routine is usually not necessary. It is - /// provided to support rare applications with unusual needs. - /// - /// The sqlite3_config() interface is not threadsafe. The application - /// must ensure that no other SQLite interfaces are invoked by other - /// threads while sqlite3_config() is running. - /// - /// The sqlite3_config() interface - /// may only be invoked prior to library initialization using - /// [sqlite3_initialize()] or after shutdown by [sqlite3_shutdown()]. - /// ^If sqlite3_config() is called after [sqlite3_initialize()] and before - /// [sqlite3_shutdown()] then it will return SQLITE_MISUSE. - /// Note, however, that ^sqlite3_config() can be called as part of the - /// implementation of an application-defined [sqlite3_os_init()]. - /// - /// The first argument to sqlite3_config() is an integer - /// [configuration option] that determines - /// what property of SQLite is to be configured. Subsequent arguments - /// vary depending on the [configuration option] - /// in the first argument. - /// - /// ^When a configuration option is set, sqlite3_config() returns [SQLITE_OK]. - /// ^If the option is unknown or SQLite is unable to set the option - /// then this routine returns a non-zero [error code]. - int sqlite3_config(int arg0) { - return _sqlite3_config(arg0); - } - - late final _sqlite3_configPtr = - _lookup>('sqlite3_config'); - late final _sqlite3_config = _sqlite3_configPtr - .asFunction(); - - /// CAPI3REF: Database Connection For Functions - /// METHOD: sqlite3_context - /// - /// ^The sqlite3_context_db_handle() interface returns a copy of - /// the pointer to the [database connection] (the 1st parameter) - /// of the [sqlite3_create_function()] - /// and [sqlite3_create_function16()] routines that originally - /// registered the application defined function. - ffi.Pointer sqlite3_context_db_handle( - ffi.Pointer arg0, - ) { - return _sqlite3_context_db_handle(arg0); - } - - late final _sqlite3_context_db_handlePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_context_db_handle'); - late final _sqlite3_context_db_handle = _sqlite3_context_db_handlePtr - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >(); - - /// CAPI3REF: Define New Collating Sequences - /// METHOD: sqlite3 - /// - /// ^These functions add, remove, or modify a [collation] associated - /// with the [database connection] specified as the first argument. - /// - /// ^The name of the collation is a UTF-8 string - /// for sqlite3_create_collation() and sqlite3_create_collation_v2() - /// and a UTF-16 string in native byte order for sqlite3_create_collation16(). - /// ^Collation names that compare equal according to [sqlite3_strnicmp()] are - /// considered to be the same name. - /// - /// ^(The third argument (eTextRep) must be one of the constants: - ///
    - ///
  • [SQLITE_UTF8], - ///
  • [SQLITE_UTF16LE], - ///
  • [SQLITE_UTF16BE], - ///
  • [SQLITE_UTF16], or - ///
  • [SQLITE_UTF16_ALIGNED]. - ///
)^ - /// ^The eTextRep argument determines the encoding of strings passed - /// to the collating function callback, xCompare. - /// ^The [SQLITE_UTF16] and [SQLITE_UTF16_ALIGNED] values for eTextRep - /// force strings to be UTF16 with native byte order. - /// ^The [SQLITE_UTF16_ALIGNED] value for eTextRep forces strings to begin - /// on an even byte address. - /// - /// ^The fourth argument, pArg, is an application data pointer that is passed - /// through as the first argument to the collating function callback. - /// - /// ^The fifth argument, xCompare, is a pointer to the collating function. - /// ^Multiple collating functions can be registered using the same name but - /// with different eTextRep parameters and SQLite will use whichever - /// function requires the least amount of data transformation. - /// ^If the xCompare argument is NULL then the collating function is - /// deleted. ^When all collating functions having the same name are deleted, - /// that collation is no longer usable. - /// - /// ^The collating function callback is invoked with a copy of the pArg - /// application data pointer and with two strings in the encoding specified - /// by the eTextRep argument. The two integer parameters to the collating - /// function callback are the length of the two strings, in bytes. The collating - /// function must return an integer that is negative, zero, or positive - /// if the first string is less than, equal to, or greater than the second, - /// respectively. A collating function must always return the same answer - /// given the same inputs. If two or more collating functions are registered - /// to the same collation name (using different eTextRep values) then all - /// must give an equivalent answer when invoked with equivalent strings. - /// The collating function must obey the following properties for all - /// strings A, B, and C: - /// - ///
    - ///
  1. If A==B then B==A. - ///
  2. If A==B and B==C then A==C. - ///
  3. If A<B THEN B>A. - ///
  4. If A<B and B<C then A<C. - ///
- /// - /// If a collating function fails any of the above constraints and that - /// collating function is registered and used, then the behavior of SQLite - /// is undefined. - /// - /// ^The sqlite3_create_collation_v2() works like sqlite3_create_collation() - /// with the addition that the xDestroy callback is invoked on pArg when - /// the collating function is deleted. - /// ^Collating functions are deleted when they are overridden by later - /// calls to the collation creation functions or when the - /// [database connection] is closed using [sqlite3_close()]. - /// - /// ^The xDestroy callback is not called if the - /// sqlite3_create_collation_v2() function fails. Applications that invoke - /// sqlite3_create_collation_v2() with a non-NULL xDestroy argument should - /// check the return code and dispose of the application data pointer - /// themselves rather than expecting SQLite to deal with it for them. - /// This is different from every other SQLite interface. The inconsistency - /// is unfortunate but cannot be changed without breaking backwards - /// compatibility. - /// - /// See also: [sqlite3_collation_needed()] and [sqlite3_collation_needed16()]. - int sqlite3_create_collation( - ffi.Pointer arg0, - ffi.Pointer zName, - int eTextRep, - ffi.Pointer pArg, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xCompare, - ) { - return _sqlite3_create_collation(arg0, zName, eTextRep, pArg, xCompare); - } - - late final _sqlite3_create_collationPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >, - ) - > - >('sqlite3_create_collation'); - late final _sqlite3_create_collation = _sqlite3_create_collationPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >, - ) - >(); - - int sqlite3_create_collation16( - ffi.Pointer arg0, - ffi.Pointer zName, - int eTextRep, - ffi.Pointer pArg, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xCompare, - ) { - return _sqlite3_create_collation16(arg0, zName, eTextRep, pArg, xCompare); - } - - late final _sqlite3_create_collation16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >, - ) - > - >('sqlite3_create_collation16'); - late final _sqlite3_create_collation16 = _sqlite3_create_collation16Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >, - ) - >(); - - int sqlite3_create_collation_v2( - ffi.Pointer arg0, - ffi.Pointer zName, - int eTextRep, - ffi.Pointer pArg, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xCompare, - ffi.Pointer)>> - xDestroy, - ) { - return _sqlite3_create_collation_v2( - arg0, - zName, - eTextRep, - pArg, - xCompare, - xDestroy, - ); - } - - late final _sqlite3_create_collation_v2Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_create_collation_v2'); - late final _sqlite3_create_collation_v2 = _sqlite3_create_collation_v2Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - /// CAPI3REF: Create and Destroy VFS Filenames - /// - /// These interfces are provided for use by [VFS shim] implementations and - /// are not useful outside of that context. - /// - /// The sqlite3_create_filename(D,J,W,N,P) allocates memory to hold a version of - /// database filename D with corresponding journal file J and WAL file W and - /// with N URI parameters key/values pairs in the array P. The result from - /// sqlite3_create_filename(D,J,W,N,P) is a pointer to a database filename that - /// is safe to pass to routines like: - ///
    - ///
  • [sqlite3_uri_parameter()], - ///
  • [sqlite3_uri_boolean()], - ///
  • [sqlite3_uri_int64()], - ///
  • [sqlite3_uri_key()], - ///
  • [sqlite3_filename_database()], - ///
  • [sqlite3_filename_journal()], or - ///
  • [sqlite3_filename_wal()]. - ///
- /// If a memory allocation error occurs, sqlite3_create_filename() might - /// return a NULL pointer. The memory obtained from sqlite3_create_filename(X) - /// must be released by a corresponding call to sqlite3_free_filename(Y). - /// - /// The P parameter in sqlite3_create_filename(D,J,W,N,P) should be an array - /// of 2*N pointers to strings. Each pair of pointers in this array corresponds - /// to a key and value for a query parameter. The P parameter may be a NULL - /// pointer if N is zero. None of the 2*N pointers in the P array may be - /// NULL pointers and key pointers should not be empty strings. - /// None of the D, J, or W parameters to sqlite3_create_filename(D,J,W,N,P) may - /// be NULL pointers, though they can be empty strings. - /// - /// The sqlite3_free_filename(Y) routine releases a memory allocation - /// previously obtained from sqlite3_create_filename(). Invoking - /// sqlite3_free_filename(Y) where Y is a NULL pointer is a harmless no-op. - /// - /// If the Y parameter to sqlite3_free_filename(Y) is anything other - /// than a NULL pointer or a pointer previously acquired from - /// sqlite3_create_filename(), then bad things such as heap - /// corruption or segfaults may occur. The value Y should be - /// used again after sqlite3_free_filename(Y) has been called. This means - /// that if the [sqlite3_vfs.xOpen()] method of a VFS has been called using Y, - /// then the corresponding [sqlite3_module.xClose() method should also be - /// invoked prior to calling sqlite3_free_filename(Y). - ffi.Pointer sqlite3_create_filename( - ffi.Pointer zDatabase, - ffi.Pointer zJournal, - ffi.Pointer zWal, - int nParam, - ffi.Pointer> azParam, - ) { - return _sqlite3_create_filename(zDatabase, zJournal, zWal, nParam, azParam); - } - - late final _sqlite3_create_filenamePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >('sqlite3_create_filename'); - late final _sqlite3_create_filename = _sqlite3_create_filenamePtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); - - /// CAPI3REF: Create Or Redefine SQL Functions - /// KEYWORDS: {function creation routines} - /// METHOD: sqlite3 - /// - /// ^These functions (collectively known as "function creation routines") - /// are used to add SQL functions or aggregates or to redefine the behavior - /// of existing SQL functions or aggregates. The only differences between - /// the three "sqlite3_create_function*" routines are the text encoding - /// expected for the second parameter (the name of the function being - /// created) and the presence or absence of a destructor callback for - /// the application data pointer. Function sqlite3_create_window_function() - /// is similar, but allows the user to supply the extra callback functions - /// needed by [aggregate window functions]. - /// - /// ^The first parameter is the [database connection] to which the SQL - /// function is to be added. ^If an application uses more than one database - /// connection then application-defined SQL functions must be added - /// to each database connection separately. - /// - /// ^The second parameter is the name of the SQL function to be created or - /// redefined. ^The length of the name is limited to 255 bytes in a UTF-8 - /// representation, exclusive of the zero-terminator. ^Note that the name - /// length limit is in UTF-8 bytes, not characters nor UTF-16 bytes. - /// ^Any attempt to create a function with a longer name - /// will result in [SQLITE_MISUSE] being returned. - /// - /// ^The third parameter (nArg) - /// is the number of arguments that the SQL function or - /// aggregate takes. ^If this parameter is -1, then the SQL function or - /// aggregate may take any number of arguments between 0 and the limit - /// set by [sqlite3_limit]([SQLITE_LIMIT_FUNCTION_ARG]). If the third - /// parameter is less than -1 or greater than 127 then the behavior is - /// undefined. - /// - /// ^The fourth parameter, eTextRep, specifies what - /// [SQLITE_UTF8 | text encoding] this SQL function prefers for - /// its parameters. The application should set this parameter to - /// [SQLITE_UTF16LE] if the function implementation invokes - /// [sqlite3_value_text16le()] on an input, or [SQLITE_UTF16BE] if the - /// implementation invokes [sqlite3_value_text16be()] on an input, or - /// [SQLITE_UTF16] if [sqlite3_value_text16()] is used, or [SQLITE_UTF8] - /// otherwise. ^The same SQL function may be registered multiple times using - /// different preferred text encodings, with different implementations for - /// each encoding. - /// ^When multiple implementations of the same function are available, SQLite - /// will pick the one that involves the least amount of data conversion. - /// - /// ^The fourth parameter may optionally be ORed with [SQLITE_DETERMINISTIC] - /// to signal that the function will always return the same result given - /// the same inputs within a single SQL statement. Most SQL functions are - /// deterministic. The built-in [random()] SQL function is an example of a - /// function that is not deterministic. The SQLite query planner is able to - /// perform additional optimizations on deterministic functions, so use - /// of the [SQLITE_DETERMINISTIC] flag is recommended where possible. - /// - /// ^The fourth parameter may also optionally include the [SQLITE_DIRECTONLY] - /// flag, which if present prevents the function from being invoked from - /// within VIEWs, TRIGGERs, CHECK constraints, generated column expressions, - /// index expressions, or the WHERE clause of partial indexes. - /// - /// - /// For best security, the [SQLITE_DIRECTONLY] flag is recommended for - /// all application-defined SQL functions that do not need to be - /// used inside of triggers, view, CHECK constraints, or other elements of - /// the database schema. This flags is especially recommended for SQL - /// functions that have side effects or reveal internal application state. - /// Without this flag, an attacker might be able to modify the schema of - /// a database file to include invocations of the function with parameters - /// chosen by the attacker, which the application will then execute when - /// the database file is opened and read. - /// - /// - /// ^(The fifth parameter is an arbitrary pointer. The implementation of the - /// function can gain access to this pointer using [sqlite3_user_data()].)^ - /// - /// ^The sixth, seventh and eighth parameters passed to the three - /// "sqlite3_create_function*" functions, xFunc, xStep and xFinal, are - /// pointers to C-language functions that implement the SQL function or - /// aggregate. ^A scalar SQL function requires an implementation of the xFunc - /// callback only; NULL pointers must be passed as the xStep and xFinal - /// parameters. ^An aggregate SQL function requires an implementation of xStep - /// and xFinal and NULL pointer must be passed for xFunc. ^To delete an existing - /// SQL function or aggregate, pass NULL pointers for all three function - /// callbacks. - /// - /// ^The sixth, seventh, eighth and ninth parameters (xStep, xFinal, xValue - /// and xInverse) passed to sqlite3_create_window_function are pointers to - /// C-language callbacks that implement the new function. xStep and xFinal - /// must both be non-NULL. xValue and xInverse may either both be NULL, in - /// which case a regular aggregate function is created, or must both be - /// non-NULL, in which case the new function may be used as either an aggregate - /// or aggregate window function. More details regarding the implementation - /// of aggregate window functions are - /// [user-defined window functions|available here]. - /// - /// ^(If the final parameter to sqlite3_create_function_v2() or - /// sqlite3_create_window_function() is not NULL, then it is destructor for - /// the application data pointer. The destructor is invoked when the function - /// is deleted, either by being overloaded or when the database connection - /// closes.)^ ^The destructor is also invoked if the call to - /// sqlite3_create_function_v2() fails. ^When the destructor callback is - /// invoked, it is passed a single argument which is a copy of the application - /// data pointer which was the fifth parameter to sqlite3_create_function_v2(). - /// - /// ^It is permitted to register multiple implementations of the same - /// functions with the same name but with either differing numbers of - /// arguments or differing preferred text encodings. ^SQLite will use - /// the implementation that most closely matches the way in which the - /// SQL function is used. ^A function implementation with a non-negative - /// nArg parameter is a better match than a function implementation with - /// a negative nArg. ^A function where the preferred text encoding - /// matches the database encoding is a better - /// match than a function where the encoding is different. - /// ^A function where the encoding difference is between UTF16le and UTF16be - /// is a closer match than a function where the encoding difference is - /// between UTF8 and UTF16. - /// - /// ^Built-in functions may be overloaded by new application-defined functions. - /// - /// ^An application-defined function is permitted to call other - /// SQLite interfaces. However, such calls must not - /// close the database connection nor finalize or reset the prepared - /// statement in which the function is running. - int sqlite3_create_function( - ffi.Pointer db, - ffi.Pointer zFunctionName, - int nArg, - int eTextRep, - ffi.Pointer pApp, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - xFunc, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - xStep, - ffi.Pointer< - ffi.NativeFunction)> - > - xFinal, - ) { - return _sqlite3_create_function( - db, - zFunctionName, - nArg, - eTextRep, - pApp, - xFunc, - xStep, - xFinal, - ); - } - - late final _sqlite3_create_functionPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) - > - >, - ) - > - >('sqlite3_create_function'); - late final _sqlite3_create_function = _sqlite3_create_functionPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - int sqlite3_create_function16( - ffi.Pointer db, - ffi.Pointer zFunctionName, - int nArg, - int eTextRep, - ffi.Pointer pApp, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - xFunc, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - xStep, - ffi.Pointer< - ffi.NativeFunction)> - > - xFinal, - ) { - return _sqlite3_create_function16( - db, - zFunctionName, - nArg, - eTextRep, - pApp, - xFunc, - xStep, - xFinal, - ); - } - - late final _sqlite3_create_function16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) - > - >, - ) - > - >('sqlite3_create_function16'); - late final _sqlite3_create_function16 = _sqlite3_create_function16Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - int sqlite3_create_function_v2( - ffi.Pointer db, - ffi.Pointer zFunctionName, - int nArg, - int eTextRep, - ffi.Pointer pApp, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - xFunc, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - xStep, - ffi.Pointer< - ffi.NativeFunction)> - > - xFinal, - ffi.Pointer)>> - xDestroy, - ) { - return _sqlite3_create_function_v2( - db, - zFunctionName, - nArg, - eTextRep, - pApp, - xFunc, - xStep, - xFinal, - xDestroy, - ); - } - - late final _sqlite3_create_function_v2Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) - > - >, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_create_function_v2'); - late final _sqlite3_create_function_v2 = _sqlite3_create_function_v2Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - /// CAPI3REF: Register A Virtual Table Implementation - /// METHOD: sqlite3 - /// - /// ^These routines are used to register a new [virtual table module] name. - /// ^Module names must be registered before - /// creating a new [virtual table] using the module and before using a - /// preexisting [virtual table] for the module. - /// - /// ^The module name is registered on the [database connection] specified - /// by the first parameter. ^The name of the module is given by the - /// second parameter. ^The third parameter is a pointer to - /// the implementation of the [virtual table module]. ^The fourth - /// parameter is an arbitrary client data pointer that is passed through - /// into the [xCreate] and [xConnect] methods of the virtual table module - /// when a new virtual table is be being created or reinitialized. - /// - /// ^The sqlite3_create_module_v2() interface has a fifth parameter which - /// is a pointer to a destructor for the pClientData. ^SQLite will - /// invoke the destructor function (if it is not NULL) when SQLite - /// no longer needs the pClientData pointer. ^The destructor will also - /// be invoked if the call to sqlite3_create_module_v2() fails. - /// ^The sqlite3_create_module() - /// interface is equivalent to sqlite3_create_module_v2() with a NULL - /// destructor. - /// - /// ^If the third parameter (the pointer to the sqlite3_module object) is - /// NULL then no new module is create and any existing modules with the - /// same name are dropped. - /// - /// See also: [sqlite3_drop_modules()] - int sqlite3_create_module( - ffi.Pointer db, - ffi.Pointer zName, - ffi.Pointer p, - ffi.Pointer pClientData, - ) { - return _sqlite3_create_module(db, zName, p, pClientData); - } - - late final _sqlite3_create_modulePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_create_module'); - late final _sqlite3_create_module = _sqlite3_create_modulePtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - int sqlite3_create_module_v2( - ffi.Pointer db, - ffi.Pointer zName, - ffi.Pointer p, - ffi.Pointer pClientData, - ffi.Pointer)>> - xDestroy, - ) { - return _sqlite3_create_module_v2(db, zName, p, pClientData, xDestroy); - } - - late final _sqlite3_create_module_v2Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_create_module_v2'); - late final _sqlite3_create_module_v2 = _sqlite3_create_module_v2Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - int sqlite3_create_window_function( - ffi.Pointer db, - ffi.Pointer zFunctionName, - int nArg, - int eTextRep, - ffi.Pointer pApp, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - xStep, - ffi.Pointer< - ffi.NativeFunction)> - > - xFinal, - ffi.Pointer< - ffi.NativeFunction)> - > - xValue, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - xInverse, - ffi.Pointer)>> - xDestroy, - ) { - return _sqlite3_create_window_function( - db, - zFunctionName, - nArg, - eTextRep, - pApp, - xStep, - xFinal, - xValue, - xInverse, - xDestroy, - ); - } - - late final _sqlite3_create_window_functionPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_create_window_function'); - late final _sqlite3_create_window_function = - _sqlite3_create_window_functionPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) - > - >, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - >, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - /// CAPI3REF: Number of columns in a result set - /// METHOD: sqlite3_stmt - /// - /// ^The sqlite3_data_count(P) interface returns the number of columns in the - /// current row of the result set of [prepared statement] P. - /// ^If prepared statement P does not have results ready to return - /// (via calls to the [sqlite3_column_int | sqlite3_column()] family of - /// interfaces) then sqlite3_data_count(P) returns 0. - /// ^The sqlite3_data_count(P) routine also returns 0 if P is a NULL pointer. - /// ^The sqlite3_data_count(P) routine returns 0 if the previous call to - /// [sqlite3_step](P) returned [SQLITE_DONE]. ^The sqlite3_data_count(P) - /// will return non-zero if previous call to [sqlite3_step](P) returned - /// [SQLITE_ROW], except in the case of the [PRAGMA incremental_vacuum] - /// where it always returns zero since each step of that multi-step - /// pragma returns 0 columns of data. - /// - /// See also: [sqlite3_column_count()] - int sqlite3_data_count(ffi.Pointer pStmt) { - return _sqlite3_data_count(pStmt); - } - - late final _sqlite3_data_countPtr = - _lookup)>>( - 'sqlite3_data_count', - ); - late final _sqlite3_data_count = _sqlite3_data_countPtr - .asFunction)>(); - - /// CAPI3REF: Name Of The Folder Holding Database Files - /// - /// ^(If this global variable is made to point to a string which is - /// the name of a folder (a.k.a. directory), then all database files - /// specified with a relative pathname and created or accessed by - /// SQLite when using a built-in windows [sqlite3_vfs | VFS] will be assumed - /// to be relative to that directory.)^ ^If this variable is a NULL - /// pointer, then SQLite assumes that all database files specified - /// with a relative pathname are relative to the current directory - /// for the process. Only the windows VFS makes use of this global - /// variable; it is ignored by the unix VFS. - /// - /// Changing the value of this variable while a database connection is - /// open can result in a corrupt database. - /// - /// It is not safe to read or modify this variable in more than one - /// thread at a time. It is not safe to read or modify this variable - /// if a [database connection] is being used at the same time in a separate - /// thread. - /// It is intended that this variable be set once - /// as part of process initialization and before any SQLite interface - /// routines have been called and that this variable remain unchanged - /// thereafter. - /// - /// ^The [data_store_directory pragma] may modify this variable and cause - /// it to point to memory obtained from [sqlite3_malloc]. ^Furthermore, - /// the [data_store_directory pragma] always assumes that any string - /// that this variable points to is held in memory obtained from - /// [sqlite3_malloc] and the pragma may attempt to free that memory - /// using [sqlite3_free]. - /// Hence, if this variable is modified directly, either it should be - /// made NULL or made to point to memory obtained from [sqlite3_malloc] - /// or else the use of the [data_store_directory pragma] should be avoided. - late final ffi.Pointer> _sqlite3_data_directory = - _lookup>('sqlite3_data_directory'); - - ffi.Pointer get sqlite3_data_directory => - _sqlite3_data_directory.value; - - set sqlite3_data_directory(ffi.Pointer value) => - _sqlite3_data_directory.value = value; - - /// CAPI3REF: Database File Corresponding To A Journal - /// - /// ^If X is the name of a rollback or WAL-mode journal file that is - /// passed into the xOpen method of [sqlite3_vfs], then - /// sqlite3_database_file_object(X) returns a pointer to the [sqlite3_file] - /// object that represents the main database file. - /// - /// This routine is intended for use in custom [VFS] implementations - /// only. It is not a general-purpose interface. - /// The argument sqlite3_file_object(X) must be a filename pointer that - /// has been passed into [sqlite3_vfs].xOpen method where the - /// flags parameter to xOpen contains one of the bits - /// [SQLITE_OPEN_MAIN_JOURNAL] or [SQLITE_OPEN_WAL]. Any other use - /// of this routine results in undefined and probably undesirable - /// behavior. - ffi.Pointer sqlite3_database_file_object( - ffi.Pointer arg0, - ) { - return _sqlite3_database_file_object(arg0); - } - - late final _sqlite3_database_file_objectPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_database_file_object'); - late final _sqlite3_database_file_object = _sqlite3_database_file_objectPtr - .asFunction Function(ffi.Pointer)>(); - - /// CAPI3REF: Flush caches to disk mid-transaction - /// - /// ^If a write-transaction is open on [database connection] D when the - /// [sqlite3_db_cacheflush(D)] interface invoked, any dirty - /// pages in the pager-cache that are not currently in use are written out - /// to disk. A dirty page may be in use if a database cursor created by an - /// active SQL statement is reading from it, or if it is page 1 of a database - /// file (page 1 is always "in use"). ^The [sqlite3_db_cacheflush(D)] - /// interface flushes caches for all schemas - "main", "temp", and - /// any [attached] databases. - /// - /// ^If this function needs to obtain extra database locks before dirty pages - /// can be flushed to disk, it does so. ^If those locks cannot be obtained - /// immediately and there is a busy-handler callback configured, it is invoked - /// in the usual manner. ^If the required lock still cannot be obtained, then - /// the database is skipped and an attempt made to flush any dirty pages - /// belonging to the next (if any) database. ^If any databases are skipped - /// because locks cannot be obtained, but no other error occurs, this - /// function returns SQLITE_BUSY. - /// - /// ^If any other error occurs while flushing dirty pages to disk (for - /// example an IO error or out-of-memory condition), then processing is - /// abandoned and an SQLite [error code] is returned to the caller immediately. - /// - /// ^Otherwise, if no error occurs, [sqlite3_db_cacheflush()] returns SQLITE_OK. - /// - /// ^This function does not set the database handle error code or message - /// returned by the [sqlite3_errcode()] and [sqlite3_errmsg()] functions. - int sqlite3_db_cacheflush(ffi.Pointer arg0) { - return _sqlite3_db_cacheflush(arg0); - } - - late final _sqlite3_db_cacheflushPtr = - _lookup)>>( - 'sqlite3_db_cacheflush', - ); - late final _sqlite3_db_cacheflush = _sqlite3_db_cacheflushPtr - .asFunction)>(); - - /// CAPI3REF: Configure database connections - /// METHOD: sqlite3 - /// - /// The sqlite3_db_config() interface is used to make configuration - /// changes to a [database connection]. The interface is similar to - /// [sqlite3_config()] except that the changes apply to a single - /// [database connection] (specified in the first argument). - /// - /// The second argument to sqlite3_db_config(D,V,...) is the - /// [SQLITE_DBCONFIG_LOOKASIDE | configuration verb] - an integer code - /// that indicates what aspect of the [database connection] is being configured. - /// Subsequent arguments vary depending on the configuration verb. - /// - /// ^Calls to sqlite3_db_config() return SQLITE_OK if and only if - /// the call is considered successful. - int sqlite3_db_config(ffi.Pointer arg0, int op) { - return _sqlite3_db_config(arg0, op); - } - - late final _sqlite3_db_configPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_db_config'); - late final _sqlite3_db_config = _sqlite3_db_configPtr - .asFunction, int)>(); - - /// CAPI3REF: Return The Filename For A Database Connection - /// METHOD: sqlite3 - /// - /// ^The sqlite3_db_filename(D,N) interface returns a pointer to the filename - /// associated with database N of connection D. - /// ^If there is no attached database N on the database - /// connection D, or if database N is a temporary or in-memory database, then - /// this function will return either a NULL pointer or an empty string. - /// - /// ^The string value returned by this routine is owned and managed by - /// the database connection. ^The value will be valid until the database N - /// is [DETACH]-ed or until the database connection closes. - /// - /// ^The filename returned by this function is the output of the - /// xFullPathname method of the [VFS]. ^In other words, the filename - /// will be an absolute pathname, even if the filename used - /// to open the database originally was a URI or relative pathname. - /// - /// If the filename pointer returned by this routine is not NULL, then it - /// can be used as the filename input parameter to these routines: - ///
    - ///
  • [sqlite3_uri_parameter()] - ///
  • [sqlite3_uri_boolean()] - ///
  • [sqlite3_uri_int64()] - ///
  • [sqlite3_filename_database()] - ///
  • [sqlite3_filename_journal()] - ///
  • [sqlite3_filename_wal()] - ///
- ffi.Pointer sqlite3_db_filename( - ffi.Pointer db, - ffi.Pointer zDbName, - ) { - return _sqlite3_db_filename(db, zDbName); - } - - late final _sqlite3_db_filenamePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_db_filename'); - late final _sqlite3_db_filename = _sqlite3_db_filenamePtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Find The Database Handle Of A Prepared Statement - /// METHOD: sqlite3_stmt - /// - /// ^The sqlite3_db_handle interface returns the [database connection] handle - /// to which a [prepared statement] belongs. ^The [database connection] - /// returned by sqlite3_db_handle is the same [database connection] - /// that was the first argument - /// to the [sqlite3_prepare_v2()] call (or its variants) that was used to - /// create the statement in the first place. - ffi.Pointer sqlite3_db_handle(ffi.Pointer arg0) { - return _sqlite3_db_handle(arg0); - } - - late final _sqlite3_db_handlePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_db_handle'); - late final _sqlite3_db_handle = _sqlite3_db_handlePtr - .asFunction Function(ffi.Pointer)>(); - - /// CAPI3REF: Retrieve the mutex for a database connection - /// METHOD: sqlite3 - /// - /// ^This interface returns a pointer the [sqlite3_mutex] object that - /// serializes access to the [database connection] given in the argument - /// when the [threading mode] is Serialized. - /// ^If the [threading mode] is Single-thread or Multi-thread then this - /// routine returns a NULL pointer. - ffi.Pointer sqlite3_db_mutex(ffi.Pointer arg0) { - return _sqlite3_db_mutex(arg0); - } - - late final _sqlite3_db_mutexPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_db_mutex'); - late final _sqlite3_db_mutex = _sqlite3_db_mutexPtr - .asFunction Function(ffi.Pointer)>(); - - /// CAPI3REF: Determine if a database is read-only - /// METHOD: sqlite3 - /// - /// ^The sqlite3_db_readonly(D,N) interface returns 1 if the database N - /// of connection D is read-only, 0 if it is read/write, or -1 if N is not - /// the name of a database on connection D. - int sqlite3_db_readonly( - ffi.Pointer db, - ffi.Pointer zDbName, - ) { - return _sqlite3_db_readonly(db, zDbName); - } - - late final _sqlite3_db_readonlyPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >('sqlite3_db_readonly'); - late final _sqlite3_db_readonly = _sqlite3_db_readonlyPtr - .asFunction, ffi.Pointer)>(); - - /// CAPI3REF: Free Memory Used By A Database Connection - /// METHOD: sqlite3 - /// - /// ^The sqlite3_db_release_memory(D) interface attempts to free as much heap - /// memory as possible from database connection D. Unlike the - /// [sqlite3_release_memory()] interface, this interface is in effect even - /// when the [SQLITE_ENABLE_MEMORY_MANAGEMENT] compile-time option is - /// omitted. - /// - /// See also: [sqlite3_release_memory()] - int sqlite3_db_release_memory(ffi.Pointer arg0) { - return _sqlite3_db_release_memory(arg0); - } - - late final _sqlite3_db_release_memoryPtr = - _lookup)>>( - 'sqlite3_db_release_memory', - ); - late final _sqlite3_db_release_memory = _sqlite3_db_release_memoryPtr - .asFunction)>(); - - /// CAPI3REF: Database Connection Status - /// METHOD: sqlite3 - /// - /// ^This interface is used to retrieve runtime status information - /// about a single [database connection]. ^The first argument is the - /// database connection object to be interrogated. ^The second argument - /// is an integer constant, taken from the set of - /// [SQLITE_DBSTATUS options], that - /// determines the parameter to interrogate. The set of - /// [SQLITE_DBSTATUS options] is likely - /// to grow in future releases of SQLite. - /// - /// ^The current value of the requested parameter is written into *pCur - /// and the highest instantaneous value is written into *pHiwtr. ^If - /// the resetFlg is true, then the highest instantaneous value is - /// reset back down to the current value. - /// - /// ^The sqlite3_db_status() routine returns SQLITE_OK on success and a - /// non-zero [error code] on failure. - /// - /// See also: [sqlite3_status()] and [sqlite3_stmt_status()]. - int sqlite3_db_status( - ffi.Pointer arg0, - int op, - ffi.Pointer pCur, - ffi.Pointer pHiwtr, - int resetFlg, - ) { - return _sqlite3_db_status(arg0, op, pCur, pHiwtr, resetFlg); - } - - late final _sqlite3_db_statusPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_db_status'); - late final _sqlite3_db_status = _sqlite3_db_statusPtr - .asFunction< - int Function( - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); - - /// CAPI3REF: Declare The Schema Of A Virtual Table - /// - /// ^The [xCreate] and [xConnect] methods of a - /// [virtual table module] call this interface - /// to declare the format (the names and datatypes of the columns) of - /// the virtual tables they implement. - int sqlite3_declare_vtab( - ffi.Pointer arg0, - ffi.Pointer zSQL, - ) { - return _sqlite3_declare_vtab(arg0, zSQL); - } - - late final _sqlite3_declare_vtabPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >('sqlite3_declare_vtab'); - late final _sqlite3_declare_vtab = _sqlite3_declare_vtabPtr - .asFunction, ffi.Pointer)>(); - - /// CAPI3REF: Deserialize a database - /// - /// The sqlite3_deserialize(D,S,P,N,M,F) interface causes the - /// [database connection] D to disconnect from database S and then - /// reopen S as an in-memory database based on the serialization contained - /// in P. The serialized database P is N bytes in size. M is the size of - /// the buffer P, which might be larger than N. If M is larger than N, and - /// the SQLITE_DESERIALIZE_READONLY bit is not set in F, then SQLite is - /// permitted to add content to the in-memory database as long as the total - /// size does not exceed M bytes. - /// - /// If the SQLITE_DESERIALIZE_FREEONCLOSE bit is set in F, then SQLite will - /// invoke sqlite3_free() on the serialization buffer when the database - /// connection closes. If the SQLITE_DESERIALIZE_RESIZEABLE bit is set, then - /// SQLite will try to increase the buffer size using sqlite3_realloc64() - /// if writes on the database cause it to grow larger than M bytes. - /// - /// The sqlite3_deserialize() interface will fail with SQLITE_BUSY if the - /// database is currently in a read transaction or is involved in a backup - /// operation. - /// - /// If sqlite3_deserialize(D,S,P,N,M,F) fails for any reason and if the - /// SQLITE_DESERIALIZE_FREEONCLOSE bit is set in argument F, then - /// [sqlite3_free()] is invoked on argument P prior to returning. - /// - /// This interface is only available if SQLite is compiled with the - /// [SQLITE_ENABLE_DESERIALIZE] option. - int sqlite3_deserialize( - ffi.Pointer db, - ffi.Pointer zSchema, - ffi.Pointer pData, - int szDb, - int szBuf, - int mFlags, - ) { - return _sqlite3_deserialize(db, zSchema, pData, szDb, szBuf, mFlags); - } - - late final _sqlite3_deserializePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - sqlite3_int64, - sqlite3_int64, - ffi.UnsignedInt, - ) - > - >('sqlite3_deserialize'); - late final _sqlite3_deserialize = _sqlite3_deserializePtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >(); - - /// CAPI3REF: Remove Unnecessary Virtual Table Implementations - /// METHOD: sqlite3 - /// - /// ^The sqlite3_drop_modules(D,L) interface removes all virtual - /// table modules from database connection D except those named on list L. - /// The L parameter must be either NULL or a pointer to an array of pointers - /// to strings where the array is terminated by a single NULL pointer. - /// ^If the L parameter is NULL, then all virtual table modules are removed. - /// - /// See also: [sqlite3_create_module()] - int sqlite3_drop_modules( - ffi.Pointer db, - ffi.Pointer> azKeep, - ) { - return _sqlite3_drop_modules(db, azKeep); - } - - late final _sqlite3_drop_modulesPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ) - > - >('sqlite3_drop_modules'); - late final _sqlite3_drop_modules = _sqlite3_drop_modulesPtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer>) - >(); - - /// CAPI3REF: Enable Or Disable Extension Loading - /// METHOD: sqlite3 - /// - /// ^So as not to open security holes in older applications that are - /// unprepared to deal with [extension loading], and as a means of disabling - /// [extension loading] while evaluating user-entered SQL, the following API - /// is provided to turn the [sqlite3_load_extension()] mechanism on and off. - /// - /// ^Extension loading is off by default. - /// ^Call the sqlite3_enable_load_extension() routine with onoff==1 - /// to turn extension loading on and call it with onoff==0 to turn - /// it back off again. - /// - /// ^This interface enables or disables both the C-API - /// [sqlite3_load_extension()] and the SQL function [load_extension()]. - /// ^(Use [sqlite3_db_config](db,[SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION],..) - /// to enable or disable only the C-API.)^ - /// - /// Security warning: It is recommended that extension loading - /// be enabled using the [SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION] method - /// rather than this interface, so the [load_extension()] SQL function - /// remains disabled. This will prevent SQL injections from giving attackers - /// access to extension loading capabilities. - int sqlite3_enable_load_extension(ffi.Pointer db, int onoff) { - return _sqlite3_enable_load_extension(db, onoff); - } - - late final _sqlite3_enable_load_extensionPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_enable_load_extension'); - late final _sqlite3_enable_load_extension = _sqlite3_enable_load_extensionPtr - .asFunction, int)>(); - - /// CAPI3REF: Enable Or Disable Shared Pager Cache - /// - /// ^(This routine enables or disables the sharing of the database cache - /// and schema data structures between [database connection | connections] - /// to the same database. Sharing is enabled if the argument is true - /// and disabled if the argument is false.)^ - /// - /// ^Cache sharing is enabled and disabled for an entire process. - /// This is a change as of SQLite [version 3.5.0] ([dateof:3.5.0]). - /// In prior versions of SQLite, - /// sharing was enabled or disabled for each thread separately. - /// - /// ^(The cache sharing mode set by this interface effects all subsequent - /// calls to [sqlite3_open()], [sqlite3_open_v2()], and [sqlite3_open16()]. - /// Existing database connections continue to use the sharing mode - /// that was in effect at the time they were opened.)^ - /// - /// ^(This routine returns [SQLITE_OK] if shared cache was enabled or disabled - /// successfully. An [error code] is returned otherwise.)^ - /// - /// ^Shared cache is disabled by default. It is recommended that it stay - /// that way. In other words, do not use this routine. This interface - /// continues to be provided for historical compatibility, but its use is - /// discouraged. Any use of shared cache is discouraged. If shared cache - /// must be used, it is recommended that shared cache only be enabled for - /// individual database connections using the [sqlite3_open_v2()] interface - /// with the [SQLITE_OPEN_SHAREDCACHE] flag. - /// - /// Note: This method is disabled on MacOS X 10.7 and iOS version 5.0 - /// and will always return SQLITE_MISUSE. On those systems, - /// shared cache mode should be enabled per-database connection via - /// [sqlite3_open_v2()] with [SQLITE_OPEN_SHAREDCACHE]. - /// - /// This interface is threadsafe on processors where writing a - /// 32-bit integer is atomic. - /// - /// See Also: [SQLite Shared-Cache Mode] - int sqlite3_enable_shared_cache(int arg0) { - return _sqlite3_enable_shared_cache(arg0); - } - - late final _sqlite3_enable_shared_cachePtr = - _lookup>( - 'sqlite3_enable_shared_cache', - ); - late final _sqlite3_enable_shared_cache = _sqlite3_enable_shared_cachePtr - .asFunction(); - - /// CAPI3REF: Error Codes And Messages - /// METHOD: sqlite3 - /// - /// ^If the most recent sqlite3_* API call associated with - /// [database connection] D failed, then the sqlite3_errcode(D) interface - /// returns the numeric [result code] or [extended result code] for that - /// API call. - /// ^The sqlite3_extended_errcode() - /// interface is the same except that it always returns the - /// [extended result code] even when extended result codes are - /// disabled. - /// - /// The values returned by sqlite3_errcode() and/or - /// sqlite3_extended_errcode() might change with each API call. - /// Except, there are some interfaces that are guaranteed to never - /// change the value of the error code. The error-code preserving - /// interfaces are: - /// - ///
    - ///
  • sqlite3_errcode() - ///
  • sqlite3_extended_errcode() - ///
  • sqlite3_errmsg() - ///
  • sqlite3_errmsg16() - ///
- /// - /// ^The sqlite3_errmsg() and sqlite3_errmsg16() return English-language - /// text that describes the error, as either UTF-8 or UTF-16 respectively. - /// ^(Memory to hold the error message string is managed internally. - /// The application does not need to worry about freeing the result. - /// However, the error string might be overwritten or deallocated by - /// subsequent calls to other SQLite interface functions.)^ - /// - /// ^The sqlite3_errstr() interface returns the English-language text - /// that describes the [result code], as UTF-8. - /// ^(Memory to hold the error message string is managed internally - /// and must not be freed by the application)^. - /// - /// When the serialized [threading mode] is in use, it might be the - /// case that a second error occurs on a separate thread in between - /// the time of the first error and the call to these interfaces. - /// When that happens, the second error will be reported since these - /// interfaces always report the most recent result. To avoid - /// this, each thread can obtain exclusive use of the [database connection] D - /// by invoking [sqlite3_mutex_enter]([sqlite3_db_mutex](D)) before beginning - /// to use D and invoking [sqlite3_mutex_leave]([sqlite3_db_mutex](D)) after - /// all calls to the interfaces listed here are completed. - /// - /// If an interface fails with SQLITE_MISUSE, that means the interface - /// was invoked incorrectly by the application. In that case, the - /// error code and message may or may not be set. - int sqlite3_errcode(ffi.Pointer db) { - return _sqlite3_errcode(db); - } - - late final _sqlite3_errcodePtr = - _lookup)>>( - 'sqlite3_errcode', - ); - late final _sqlite3_errcode = _sqlite3_errcodePtr - .asFunction)>(); - - ffi.Pointer sqlite3_errmsg(ffi.Pointer arg0) { - return _sqlite3_errmsg(arg0); - } - - late final _sqlite3_errmsgPtr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('sqlite3_errmsg'); - late final _sqlite3_errmsg = _sqlite3_errmsgPtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer sqlite3_errmsg16(ffi.Pointer arg0) { - return _sqlite3_errmsg16(arg0); - } - - late final _sqlite3_errmsg16Ptr = - _lookup< - ffi.NativeFunction Function(ffi.Pointer)> - >('sqlite3_errmsg16'); - late final _sqlite3_errmsg16 = _sqlite3_errmsg16Ptr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer sqlite3_errstr(int arg0) { - return _sqlite3_errstr(arg0); - } - - late final _sqlite3_errstrPtr = - _lookup Function(ffi.Int)>>( - 'sqlite3_errstr', - ); - late final _sqlite3_errstr = _sqlite3_errstrPtr - .asFunction Function(int)>(); - - /// CAPI3REF: One-Step Query Execution Interface - /// METHOD: sqlite3 - /// - /// The sqlite3_exec() interface is a convenience wrapper around - /// [sqlite3_prepare_v2()], [sqlite3_step()], and [sqlite3_finalize()], - /// that allows an application to run multiple statements of SQL - /// without having to use a lot of C code. - /// - /// ^The sqlite3_exec() interface runs zero or more UTF-8 encoded, - /// semicolon-separate SQL statements passed into its 2nd argument, - /// in the context of the [database connection] passed in as its 1st - /// argument. ^If the callback function of the 3rd argument to - /// sqlite3_exec() is not NULL, then it is invoked for each result row - /// coming out of the evaluated SQL statements. ^The 4th argument to - /// sqlite3_exec() is relayed through to the 1st argument of each - /// callback invocation. ^If the callback pointer to sqlite3_exec() - /// is NULL, then no callback is ever invoked and result rows are - /// ignored. - /// - /// ^If an error occurs while evaluating the SQL statements passed into - /// sqlite3_exec(), then execution of the current statement stops and - /// subsequent statements are skipped. ^If the 5th parameter to sqlite3_exec() - /// is not NULL then any error message is written into memory obtained - /// from [sqlite3_malloc()] and passed back through the 5th parameter. - /// To avoid memory leaks, the application should invoke [sqlite3_free()] - /// on error message strings returned through the 5th parameter of - /// sqlite3_exec() after the error message string is no longer needed. - /// ^If the 5th parameter to sqlite3_exec() is not NULL and no errors - /// occur, then sqlite3_exec() sets the pointer in its 5th parameter to - /// NULL before returning. - /// - /// ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec() - /// routine returns SQLITE_ABORT without invoking the callback again and - /// without running any subsequent SQL statements. - /// - /// ^The 2nd argument to the sqlite3_exec() callback function is the - /// number of columns in the result. ^The 3rd argument to the sqlite3_exec() - /// callback is an array of pointers to strings obtained as if from - /// [sqlite3_column_text()], one for each column. ^If an element of a - /// result row is NULL then the corresponding string pointer for the - /// sqlite3_exec() callback is a NULL pointer. ^The 4th argument to the - /// sqlite3_exec() callback is an array of pointers to strings where each - /// entry represents the name of corresponding result column as obtained - /// from [sqlite3_column_name()]. - /// - /// ^If the 2nd parameter to sqlite3_exec() is a NULL pointer, a pointer - /// to an empty string, or a pointer that contains only whitespace and/or - /// SQL comments, then no SQL statements are evaluated and the database - /// is not changed. - /// - /// Restrictions: - /// - ///
    - ///
  • The application must ensure that the 1st parameter to sqlite3_exec() - /// is a valid and open [database connection]. - ///
  • The application must not close the [database connection] specified by - /// the 1st parameter to sqlite3_exec() while sqlite3_exec() is running. - ///
  • The application must not modify the SQL statement text passed into - /// the 2nd parameter of sqlite3_exec() while sqlite3_exec() is running. - ///
- int sqlite3_exec( - ffi.Pointer arg0, - ffi.Pointer sql, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ) - > - > - callback, - ffi.Pointer arg3, - ffi.Pointer> errmsg, - ) { - return _sqlite3_exec(arg0, sql, callback, arg3, errmsg); - } - - late final _sqlite3_execPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >, - ffi.Pointer, - ffi.Pointer>, - ) - > - >('sqlite3_exec'); - late final _sqlite3_exec = _sqlite3_execPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >, - ffi.Pointer, - ffi.Pointer>, - ) - >(); - - ffi.Pointer sqlite3_expanded_sql(ffi.Pointer pStmt) { - return _sqlite3_expanded_sql(pStmt); - } - - late final _sqlite3_expanded_sqlPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_expanded_sql'); - late final _sqlite3_expanded_sql = _sqlite3_expanded_sqlPtr - .asFunction Function(ffi.Pointer)>(); - - int sqlite3_expired(ffi.Pointer arg0) { - return _sqlite3_expired(arg0); - } - - late final _sqlite3_expiredPtr = - _lookup)>>( - 'sqlite3_expired', - ); - late final _sqlite3_expired = _sqlite3_expiredPtr - .asFunction)>(); - - int sqlite3_extended_errcode(ffi.Pointer db) { - return _sqlite3_extended_errcode(db); - } - - late final _sqlite3_extended_errcodePtr = - _lookup)>>( - 'sqlite3_extended_errcode', - ); - late final _sqlite3_extended_errcode = _sqlite3_extended_errcodePtr - .asFunction)>(); - - /// CAPI3REF: Enable Or Disable Extended Result Codes - /// METHOD: sqlite3 - /// - /// ^The sqlite3_extended_result_codes() routine enables or disables the - /// [extended result codes] feature of SQLite. ^The extended result - /// codes are disabled by default for historical compatibility. - int sqlite3_extended_result_codes(ffi.Pointer arg0, int onoff) { - return _sqlite3_extended_result_codes(arg0, onoff); - } - - late final _sqlite3_extended_result_codesPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_extended_result_codes'); - late final _sqlite3_extended_result_codes = _sqlite3_extended_result_codesPtr - .asFunction, int)>(); - - /// CAPI3REF: Low-Level Control Of Database Files - /// METHOD: sqlite3 - /// KEYWORDS: {file control} - /// - /// ^The [sqlite3_file_control()] interface makes a direct call to the - /// xFileControl method for the [sqlite3_io_methods] object associated - /// with a particular database identified by the second argument. ^The - /// name of the database is "main" for the main database or "temp" for the - /// TEMP database, or the name that appears after the AS keyword for - /// databases that are added using the [ATTACH] SQL command. - /// ^A NULL pointer can be used in place of "main" to refer to the - /// main database file. - /// ^The third and fourth parameters to this routine - /// are passed directly through to the second and third parameters of - /// the xFileControl method. ^The return value of the xFileControl - /// method becomes the return value of this routine. - /// - /// A few opcodes for [sqlite3_file_control()] are handled directly - /// by the SQLite core and never invoke the - /// sqlite3_io_methods.xFileControl method. - /// ^The [SQLITE_FCNTL_FILE_POINTER] value for the op parameter causes - /// a pointer to the underlying [sqlite3_file] object to be written into - /// the space pointed to by the 4th parameter. The - /// [SQLITE_FCNTL_JOURNAL_POINTER] works similarly except that it returns - /// the [sqlite3_file] object associated with the journal file instead of - /// the main database. The [SQLITE_FCNTL_VFS_POINTER] opcode returns - /// a pointer to the underlying [sqlite3_vfs] object for the file. - /// The [SQLITE_FCNTL_DATA_VERSION] returns the data version counter - /// from the pager. - /// - /// ^If the second parameter (zDbName) does not match the name of any - /// open database file, then SQLITE_ERROR is returned. ^This error - /// code is not remembered and will not be recalled by [sqlite3_errcode()] - /// or [sqlite3_errmsg()]. The underlying xFileControl method might - /// also return SQLITE_ERROR. There is no way to distinguish between - /// an incorrect zDbName and an SQLITE_ERROR return from the underlying - /// xFileControl method. - /// - /// See also: [file control opcodes] - int sqlite3_file_control( - ffi.Pointer arg0, - ffi.Pointer zDbName, - int op, - ffi.Pointer arg3, - ) { - return _sqlite3_file_control(arg0, zDbName, op, arg3); - } - - late final _sqlite3_file_controlPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - >('sqlite3_file_control'); - late final _sqlite3_file_control = _sqlite3_file_controlPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Translate filenames - /// - /// These routines are available to [VFS|custom VFS implementations] for - /// translating filenames between the main database file, the journal file, - /// and the WAL file. - /// - /// If F is the name of an sqlite database file, journal file, or WAL file - /// passed by the SQLite core into the VFS, then sqlite3_filename_database(F) - /// returns the name of the corresponding database file. - /// - /// If F is the name of an sqlite database file, journal file, or WAL file - /// passed by the SQLite core into the VFS, or if F is a database filename - /// obtained from [sqlite3_db_filename()], then sqlite3_filename_journal(F) - /// returns the name of the corresponding rollback journal file. - /// - /// If F is the name of an sqlite database file, journal file, or WAL file - /// that was passed by the SQLite core into the VFS, or if F is a database - /// filename obtained from [sqlite3_db_filename()], then - /// sqlite3_filename_wal(F) returns the name of the corresponding - /// WAL file. - /// - /// In all of the above, if F is not the name of a database, journal or WAL - /// filename passed into the VFS from the SQLite core and F is not the - /// return value from [sqlite3_db_filename()], then the result is - /// undefined and is likely a memory access violation. - ffi.Pointer sqlite3_filename_database(ffi.Pointer arg0) { - return _sqlite3_filename_database(arg0); - } - - late final _sqlite3_filename_databasePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_filename_database'); - late final _sqlite3_filename_database = _sqlite3_filename_databasePtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer sqlite3_filename_journal(ffi.Pointer arg0) { - return _sqlite3_filename_journal(arg0); - } - - late final _sqlite3_filename_journalPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_filename_journal'); - late final _sqlite3_filename_journal = _sqlite3_filename_journalPtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer sqlite3_filename_wal(ffi.Pointer arg0) { - return _sqlite3_filename_wal(arg0); - } - - late final _sqlite3_filename_walPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_filename_wal'); - late final _sqlite3_filename_wal = _sqlite3_filename_walPtr - .asFunction Function(ffi.Pointer)>(); - - /// CAPI3REF: Destroy A Prepared Statement Object - /// DESTRUCTOR: sqlite3_stmt - /// - /// ^The sqlite3_finalize() function is called to delete a [prepared statement]. - /// ^If the most recent evaluation of the statement encountered no errors - /// or if the statement is never been evaluated, then sqlite3_finalize() returns - /// SQLITE_OK. ^If the most recent evaluation of statement S failed, then - /// sqlite3_finalize(S) returns the appropriate [error code] or - /// [extended error code]. - /// - /// ^The sqlite3_finalize(S) routine can be called at any point during - /// the life cycle of [prepared statement] S: - /// before statement S is ever evaluated, after - /// one or more calls to [sqlite3_reset()], or after any call - /// to [sqlite3_step()] regardless of whether or not the statement has - /// completed execution. - /// - /// ^Invoking sqlite3_finalize() on a NULL pointer is a harmless no-op. - /// - /// The application must finalize every [prepared statement] in order to avoid - /// resource leaks. It is a grievous error for the application to try to use - /// a prepared statement after it has been finalized. Any use of a prepared - /// statement after it has been finalized can result in undefined and - /// undesirable behavior such as segfaults and heap corruption. - int sqlite3_finalize(ffi.Pointer pStmt) { - return _sqlite3_finalize(pStmt); - } - - late final _sqlite3_finalizePtr = - _lookup)>>( - 'sqlite3_finalize', - ); - late final _sqlite3_finalize = _sqlite3_finalizePtr - .asFunction)>(); - - void sqlite3_free(ffi.Pointer arg0) { - return _sqlite3_free(arg0); - } - - late final _sqlite3_freePtr = - _lookup)>>( - 'sqlite3_free', - ); - late final _sqlite3_free = _sqlite3_freePtr - .asFunction)>(); - - void sqlite3_free_filename(ffi.Pointer arg0) { - return _sqlite3_free_filename(arg0); - } - - late final _sqlite3_free_filenamePtr = - _lookup)>>( - 'sqlite3_free_filename', - ); - late final _sqlite3_free_filename = _sqlite3_free_filenamePtr - .asFunction)>(); - - void sqlite3_free_table(ffi.Pointer> result) { - return _sqlite3_free_table(result); - } - - late final _sqlite3_free_tablePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer>) - > - >('sqlite3_free_table'); - late final _sqlite3_free_table = _sqlite3_free_tablePtr - .asFunction>)>(); - - /// CAPI3REF: Test For Auto-Commit Mode - /// KEYWORDS: {autocommit mode} - /// METHOD: sqlite3 - /// - /// ^The sqlite3_get_autocommit() interface returns non-zero or - /// zero if the given database connection is or is not in autocommit mode, - /// respectively. ^Autocommit mode is on by default. - /// ^Autocommit mode is disabled by a [BEGIN] statement. - /// ^Autocommit mode is re-enabled by a [COMMIT] or [ROLLBACK]. - /// - /// If certain kinds of errors occur on a statement within a multi-statement - /// transaction (errors including [SQLITE_FULL], [SQLITE_IOERR], - /// [SQLITE_NOMEM], [SQLITE_BUSY], and [SQLITE_INTERRUPT]) then the - /// transaction might be rolled back automatically. The only way to - /// find out whether SQLite automatically rolled back the transaction after - /// an error is to use this function. - /// - /// If another thread changes the autocommit status of the database - /// connection while this routine is running, then the return value - /// is undefined. - int sqlite3_get_autocommit(ffi.Pointer arg0) { - return _sqlite3_get_autocommit(arg0); - } - - late final _sqlite3_get_autocommitPtr = - _lookup)>>( - 'sqlite3_get_autocommit', - ); - late final _sqlite3_get_autocommit = _sqlite3_get_autocommitPtr - .asFunction)>(); - - /// CAPI3REF: Function Auxiliary Data - /// METHOD: sqlite3_context - /// - /// These functions may be used by (non-aggregate) SQL functions to - /// associate metadata with argument values. If the same value is passed to - /// multiple invocations of the same SQL function during query execution, under - /// some circumstances the associated metadata may be preserved. An example - /// of where this might be useful is in a regular-expression matching - /// function. The compiled version of the regular expression can be stored as - /// metadata associated with the pattern string. - /// Then as long as the pattern string remains the same, - /// the compiled regular expression can be reused on multiple - /// invocations of the same function. - /// - /// ^The sqlite3_get_auxdata(C,N) interface returns a pointer to the metadata - /// associated by the sqlite3_set_auxdata(C,N,P,X) function with the Nth argument - /// value to the application-defined function. ^N is zero for the left-most - /// function argument. ^If there is no metadata - /// associated with the function argument, the sqlite3_get_auxdata(C,N) interface - /// returns a NULL pointer. - /// - /// ^The sqlite3_set_auxdata(C,N,P,X) interface saves P as metadata for the N-th - /// argument of the application-defined function. ^Subsequent - /// calls to sqlite3_get_auxdata(C,N) return P from the most recent - /// sqlite3_set_auxdata(C,N,P,X) call if the metadata is still valid or - /// NULL if the metadata has been discarded. - /// ^After each call to sqlite3_set_auxdata(C,N,P,X) where X is not NULL, - /// SQLite will invoke the destructor function X with parameter P exactly - /// once, when the metadata is discarded. - /// SQLite is free to discard the metadata at any time, including:
    - ///
  • ^(when the corresponding function parameter changes)^, or - ///
  • ^(when [sqlite3_reset()] or [sqlite3_finalize()] is called for the - /// SQL statement)^, or - ///
  • ^(when sqlite3_set_auxdata() is invoked again on the same - /// parameter)^, or - ///
  • ^(during the original sqlite3_set_auxdata() call when a memory - /// allocation error occurs.)^
- /// - /// Note the last bullet in particular. The destructor X in - /// sqlite3_set_auxdata(C,N,P,X) might be called immediately, before the - /// sqlite3_set_auxdata() interface even returns. Hence sqlite3_set_auxdata() - /// should be called near the end of the function implementation and the - /// function implementation should not make any use of P after - /// sqlite3_set_auxdata() has been called. - /// - /// ^(In practice, metadata is preserved between function calls for - /// function parameters that are compile-time constants, including literal - /// values and [parameters] and expressions composed from the same.)^ - /// - /// The value of the N parameter to these interfaces should be non-negative. - /// Future enhancements may make use of negative N values to define new - /// kinds of function caching behavior. - /// - /// These routines must be called from the same thread in which - /// the SQL function is running. - ffi.Pointer sqlite3_get_auxdata( - ffi.Pointer arg0, - int N, - ) { - return _sqlite3_get_auxdata(arg0, N); - } - - late final _sqlite3_get_auxdataPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_get_auxdata'); - late final _sqlite3_get_auxdata = _sqlite3_get_auxdataPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - /// CAPI3REF: Convenience Routines For Running Queries - /// METHOD: sqlite3 - /// - /// This is a legacy interface that is preserved for backwards compatibility. - /// Use of this interface is not recommended. - /// - /// Definition: A result table is memory data structure created by the - /// [sqlite3_get_table()] interface. A result table records the - /// complete query results from one or more queries. - /// - /// The table conceptually has a number of rows and columns. But - /// these numbers are not part of the result table itself. These - /// numbers are obtained separately. Let N be the number of rows - /// and M be the number of columns. - /// - /// A result table is an array of pointers to zero-terminated UTF-8 strings. - /// There are (N+1)*M elements in the array. The first M pointers point - /// to zero-terminated strings that contain the names of the columns. - /// The remaining entries all point to query results. NULL values result - /// in NULL pointers. All other values are in their UTF-8 zero-terminated - /// string representation as returned by [sqlite3_column_text()]. - /// - /// A result table might consist of one or more memory allocations. - /// It is not safe to pass a result table directly to [sqlite3_free()]. - /// A result table should be deallocated using [sqlite3_free_table()]. - /// - /// ^(As an example of the result table format, suppose a query result - /// is as follows: - /// - ///
-  /// Name        | Age
-  /// -----------------------
-  /// Alice       | 43
-  /// Bob         | 28
-  /// Cindy       | 21
-  /// 
- /// - /// There are two columns (M==2) and three rows (N==3). Thus the - /// result table has 8 entries. Suppose the result table is stored - /// in an array named azResult. Then azResult holds this content: - /// - ///
-  /// azResult[0] = "Name";
-  /// azResult[1] = "Age";
-  /// azResult[2] = "Alice";
-  /// azResult[3] = "43";
-  /// azResult[4] = "Bob";
-  /// azResult[5] = "28";
-  /// azResult[6] = "Cindy";
-  /// azResult[7] = "21";
-  /// 
)^ - /// - /// ^The sqlite3_get_table() function evaluates one or more - /// semicolon-separated SQL statements in the zero-terminated UTF-8 - /// string of its 2nd parameter and returns a result table to the - /// pointer given in its 3rd parameter. - /// - /// After the application has finished with the result from sqlite3_get_table(), - /// it must pass the result table pointer to sqlite3_free_table() in order to - /// release the memory that was malloced. Because of the way the - /// [sqlite3_malloc()] happens within sqlite3_get_table(), the calling - /// function must not try to call [sqlite3_free()] directly. Only - /// [sqlite3_free_table()] is able to release the memory properly and safely. - /// - /// The sqlite3_get_table() interface is implemented as a wrapper around - /// [sqlite3_exec()]. The sqlite3_get_table() routine does not have access - /// to any internal data structures of SQLite. It uses only the public - /// interface defined here. As a consequence, errors that occur in the - /// wrapper layer outside of the internal [sqlite3_exec()] call are not - /// reflected in subsequent calls to [sqlite3_errcode()] or - /// [sqlite3_errmsg()]. - int sqlite3_get_table( - ffi.Pointer db, - ffi.Pointer zSql, - ffi.Pointer>> pazResult, - ffi.Pointer pnRow, - ffi.Pointer pnColumn, - ffi.Pointer> pzErrmsg, - ) { - return _sqlite3_get_table(db, zSql, pazResult, pnRow, pnColumn, pzErrmsg); - } - - late final _sqlite3_get_tablePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >('sqlite3_get_table'); - late final _sqlite3_get_table = _sqlite3_get_tablePtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); - - int sqlite3_global_recover() { - return _sqlite3_global_recover(); - } - - late final _sqlite3_global_recoverPtr = - _lookup>('sqlite3_global_recover'); - late final _sqlite3_global_recover = _sqlite3_global_recoverPtr - .asFunction(); - - int sqlite3_hard_heap_limit64(int N) { - return _sqlite3_hard_heap_limit64(N); - } - - late final _sqlite3_hard_heap_limit64Ptr = - _lookup>( - 'sqlite3_hard_heap_limit64', - ); - late final _sqlite3_hard_heap_limit64 = _sqlite3_hard_heap_limit64Ptr - .asFunction(); - - /// CAPI3REF: Initialize The SQLite Library - /// - /// ^The sqlite3_initialize() routine initializes the - /// SQLite library. ^The sqlite3_shutdown() routine - /// deallocates any resources that were allocated by sqlite3_initialize(). - /// These routines are designed to aid in process initialization and - /// shutdown on embedded systems. Workstation applications using - /// SQLite normally do not need to invoke either of these routines. - /// - /// A call to sqlite3_initialize() is an "effective" call if it is - /// the first time sqlite3_initialize() is invoked during the lifetime of - /// the process, or if it is the first time sqlite3_initialize() is invoked - /// following a call to sqlite3_shutdown(). ^(Only an effective call - /// of sqlite3_initialize() does any initialization. All other calls - /// are harmless no-ops.)^ - /// - /// A call to sqlite3_shutdown() is an "effective" call if it is the first - /// call to sqlite3_shutdown() since the last sqlite3_initialize(). ^(Only - /// an effective call to sqlite3_shutdown() does any deinitialization. - /// All other valid calls to sqlite3_shutdown() are harmless no-ops.)^ - /// - /// The sqlite3_initialize() interface is threadsafe, but sqlite3_shutdown() - /// is not. The sqlite3_shutdown() interface must only be called from a - /// single thread. All open [database connections] must be closed and all - /// other SQLite resources must be deallocated prior to invoking - /// sqlite3_shutdown(). - /// - /// Among other things, ^sqlite3_initialize() will invoke - /// sqlite3_os_init(). Similarly, ^sqlite3_shutdown() - /// will invoke sqlite3_os_end(). - /// - /// ^The sqlite3_initialize() routine returns [SQLITE_OK] on success. - /// ^If for some reason, sqlite3_initialize() is unable to initialize - /// the library (perhaps it is unable to allocate a needed resource such - /// as a mutex) it returns an [error code] other than [SQLITE_OK]. - /// - /// ^The sqlite3_initialize() routine is called internally by many other - /// SQLite interfaces so that an application usually does not need to - /// invoke sqlite3_initialize() directly. For example, [sqlite3_open()] - /// calls sqlite3_initialize() so the SQLite library will be automatically - /// initialized when [sqlite3_open()] is called if it has not be initialized - /// already. ^However, if SQLite is compiled with the [SQLITE_OMIT_AUTOINIT] - /// compile-time option, then the automatic calls to sqlite3_initialize() - /// are omitted and the application must call sqlite3_initialize() directly - /// prior to using any other SQLite interface. For maximum portability, - /// it is recommended that applications always invoke sqlite3_initialize() - /// directly prior to using any other SQLite interface. Future releases - /// of SQLite may require this. In other words, the behavior exhibited - /// when SQLite is compiled with [SQLITE_OMIT_AUTOINIT] might become the - /// default behavior in some future release of SQLite. - /// - /// The sqlite3_os_init() routine does operating-system specific - /// initialization of the SQLite library. The sqlite3_os_end() - /// routine undoes the effect of sqlite3_os_init(). Typical tasks - /// performed by these routines include allocation or deallocation - /// of static resources, initialization of global variables, - /// setting up a default [sqlite3_vfs] module, or setting up - /// a default configuration using [sqlite3_config()]. - /// - /// The application should never invoke either sqlite3_os_init() - /// or sqlite3_os_end() directly. The application should only invoke - /// sqlite3_initialize() and sqlite3_shutdown(). The sqlite3_os_init() - /// interface is called automatically by sqlite3_initialize() and - /// sqlite3_os_end() is called by sqlite3_shutdown(). Appropriate - /// implementations for sqlite3_os_init() and sqlite3_os_end() - /// are built into SQLite when it is compiled for Unix, Windows, or OS/2. - /// When [custom builds | built for other platforms] - /// (using the [SQLITE_OS_OTHER=1] compile-time - /// option) the application must supply a suitable implementation for - /// sqlite3_os_init() and sqlite3_os_end(). An application-supplied - /// implementation of sqlite3_os_init() or sqlite3_os_end() - /// must return [SQLITE_OK] on success and some other [error code] upon - /// failure. - int sqlite3_initialize() { - return _sqlite3_initialize(); - } - - late final _sqlite3_initializePtr = - _lookup>('sqlite3_initialize'); - late final _sqlite3_initialize = _sqlite3_initializePtr - .asFunction(); - - /// CAPI3REF: Interrupt A Long-Running Query - /// METHOD: sqlite3 - /// - /// ^This function causes any pending database operation to abort and - /// return at its earliest opportunity. This routine is typically - /// called in response to a user action such as pressing "Cancel" - /// or Ctrl-C where the user wants a long query operation to halt - /// immediately. - /// - /// ^It is safe to call this routine from a thread different from the - /// thread that is currently running the database operation. But it - /// is not safe to call this routine with a [database connection] that - /// is closed or might close before sqlite3_interrupt() returns. - /// - /// ^If an SQL operation is very nearly finished at the time when - /// sqlite3_interrupt() is called, then it might not have an opportunity - /// to be interrupted and might continue to completion. - /// - /// ^An SQL operation that is interrupted will return [SQLITE_INTERRUPT]. - /// ^If the interrupted SQL operation is an INSERT, UPDATE, or DELETE - /// that is inside an explicit transaction, then the entire transaction - /// will be rolled back automatically. - /// - /// ^The sqlite3_interrupt(D) call is in effect until all currently running - /// SQL statements on [database connection] D complete. ^Any new SQL statements - /// that are started after the sqlite3_interrupt() call and before the - /// running statement count reaches zero are interrupted as if they had been - /// running prior to the sqlite3_interrupt() call. ^New SQL statements - /// that are started after the running statement count reaches zero are - /// not effected by the sqlite3_interrupt(). - /// ^A call to sqlite3_interrupt(D) that occurs when there are no running - /// SQL statements is a no-op and has no effect on SQL statements - /// that are started after the sqlite3_interrupt() call returns. - void sqlite3_interrupt(ffi.Pointer arg0) { - return _sqlite3_interrupt(arg0); - } - - late final _sqlite3_interruptPtr = - _lookup)>>( - 'sqlite3_interrupt', - ); - late final _sqlite3_interrupt = _sqlite3_interruptPtr - .asFunction)>(); - - int sqlite3_keyword_check(ffi.Pointer arg0, int arg1) { - return _sqlite3_keyword_check(arg0, arg1); - } - - late final _sqlite3_keyword_checkPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_keyword_check'); - late final _sqlite3_keyword_check = _sqlite3_keyword_checkPtr - .asFunction, int)>(); - - /// CAPI3REF: SQL Keyword Checking - /// - /// These routines provide access to the set of SQL language keywords - /// recognized by SQLite. Applications can uses these routines to determine - /// whether or not a specific identifier needs to be escaped (for example, - /// by enclosing in double-quotes) so as not to confuse the parser. - /// - /// The sqlite3_keyword_count() interface returns the number of distinct - /// keywords understood by SQLite. - /// - /// The sqlite3_keyword_name(N,Z,L) interface finds the N-th keyword and - /// makes *Z point to that keyword expressed as UTF8 and writes the number - /// of bytes in the keyword into *L. The string that *Z points to is not - /// zero-terminated. The sqlite3_keyword_name(N,Z,L) routine returns - /// SQLITE_OK if N is within bounds and SQLITE_ERROR if not. If either Z - /// or L are NULL or invalid pointers then calls to - /// sqlite3_keyword_name(N,Z,L) result in undefined behavior. - /// - /// The sqlite3_keyword_check(Z,L) interface checks to see whether or not - /// the L-byte UTF8 identifier that Z points to is a keyword, returning non-zero - /// if it is and zero if not. - /// - /// The parser used by SQLite is forgiving. It is often possible to use - /// a keyword as an identifier as long as such use does not result in a - /// parsing ambiguity. For example, the statement - /// "CREATE TABLE BEGIN(REPLACE,PRAGMA,END);" is accepted by SQLite, and - /// creates a new table named "BEGIN" with three columns named - /// "REPLACE", "PRAGMA", and "END". Nevertheless, best practice is to avoid - /// using keywords as identifiers. Common techniques used to avoid keyword - /// name collisions include: - ///
    - ///
  • Put all identifier names inside double-quotes. This is the official - /// SQL way to escape identifier names. - ///
  • Put identifier names inside [...]. This is not standard SQL, - /// but it is what SQL Server does and so lots of programmers use this - /// technique. - ///
  • Begin every identifier with the letter "Z" as no SQL keywords start - /// with "Z". - ///
  • Include a digit somewhere in every identifier name. - ///
- /// - /// Note that the number of keywords understood by SQLite can depend on - /// compile-time options. For example, "VACUUM" is not a keyword if - /// SQLite is compiled with the [-DSQLITE_OMIT_VACUUM] option. Also, - /// new keywords may be added to future releases of SQLite. - int sqlite3_keyword_count() { - return _sqlite3_keyword_count(); - } - - late final _sqlite3_keyword_countPtr = - _lookup>('sqlite3_keyword_count'); - late final _sqlite3_keyword_count = _sqlite3_keyword_countPtr - .asFunction(); - - int sqlite3_keyword_name( - int arg0, - ffi.Pointer> arg1, - ffi.Pointer arg2, - ) { - return _sqlite3_keyword_name(arg0, arg1, arg2); - } - - late final _sqlite3_keyword_namePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ) - > - >('sqlite3_keyword_name'); - late final _sqlite3_keyword_name = _sqlite3_keyword_namePtr - .asFunction< - int Function( - int, - ffi.Pointer>, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Last Insert Rowid - /// METHOD: sqlite3 - /// - /// ^Each entry in most SQLite tables (except for [WITHOUT ROWID] tables) - /// has a unique 64-bit signed - /// integer key called the [ROWID | "rowid"]. ^The rowid is always available - /// as an undeclared column named ROWID, OID, or _ROWID_ as long as those - /// names are not also used by explicitly declared columns. ^If - /// the table has a column of type [INTEGER PRIMARY KEY] then that column - /// is another alias for the rowid. - /// - /// ^The sqlite3_last_insert_rowid(D) interface usually returns the [rowid] of - /// the most recent successful [INSERT] into a rowid table or [virtual table] - /// on database connection D. ^Inserts into [WITHOUT ROWID] tables are not - /// recorded. ^If no successful [INSERT]s into rowid tables have ever occurred - /// on the database connection D, then sqlite3_last_insert_rowid(D) returns - /// zero. - /// - /// As well as being set automatically as rows are inserted into database - /// tables, the value returned by this function may be set explicitly by - /// [sqlite3_set_last_insert_rowid()] - /// - /// Some virtual table implementations may INSERT rows into rowid tables as - /// part of committing a transaction (e.g. to flush data accumulated in memory - /// to disk). In this case subsequent calls to this function return the rowid - /// associated with these internal INSERT operations, which leads to - /// unintuitive results. Virtual table implementations that do write to rowid - /// tables in this way can avoid this problem by restoring the original - /// rowid value using [sqlite3_set_last_insert_rowid()] before returning - /// control to the user. - /// - /// ^(If an [INSERT] occurs within a trigger then this routine will - /// return the [rowid] of the inserted row as long as the trigger is - /// running. Once the trigger program ends, the value returned - /// by this routine reverts to what it was before the trigger was fired.)^ - /// - /// ^An [INSERT] that fails due to a constraint violation is not a - /// successful [INSERT] and does not change the value returned by this - /// routine. ^Thus INSERT OR FAIL, INSERT OR IGNORE, INSERT OR ROLLBACK, - /// and INSERT OR ABORT make no changes to the return value of this - /// routine when their insertion fails. ^(When INSERT OR REPLACE - /// encounters a constraint violation, it does not fail. The - /// INSERT continues to completion after deleting rows that caused - /// the constraint problem so INSERT OR REPLACE will always change - /// the return value of this interface.)^ - /// - /// ^For the purposes of this routine, an [INSERT] is considered to - /// be successful even if it is subsequently rolled back. - /// - /// This function is accessible to SQL statements via the - /// [last_insert_rowid() SQL function]. - /// - /// If a separate thread performs a new [INSERT] on the same - /// database connection while the [sqlite3_last_insert_rowid()] - /// function is running and thus changes the last insert [rowid], - /// then the value returned by [sqlite3_last_insert_rowid()] is - /// unpredictable and might not equal either the old or the new - /// last insert [rowid]. - int sqlite3_last_insert_rowid(ffi.Pointer arg0) { - return _sqlite3_last_insert_rowid(arg0); - } - - late final _sqlite3_last_insert_rowidPtr = - _lookup)>>( - 'sqlite3_last_insert_rowid', - ); - late final _sqlite3_last_insert_rowid = _sqlite3_last_insert_rowidPtr - .asFunction)>(); - - ffi.Pointer sqlite3_libversion() { - return _sqlite3_libversion(); - } - - late final _sqlite3_libversionPtr = - _lookup Function()>>( - 'sqlite3_libversion', - ); - late final _sqlite3_libversion = _sqlite3_libversionPtr - .asFunction Function()>(); - - int sqlite3_libversion_number() { - return _sqlite3_libversion_number(); - } - - late final _sqlite3_libversion_numberPtr = - _lookup>( - 'sqlite3_libversion_number', - ); - late final _sqlite3_libversion_number = _sqlite3_libversion_numberPtr - .asFunction(); - - /// CAPI3REF: Run-time Limits - /// METHOD: sqlite3 - /// - /// ^(This interface allows the size of various constructs to be limited - /// on a connection by connection basis. The first parameter is the - /// [database connection] whose limit is to be set or queried. The - /// second parameter is one of the [limit categories] that define a - /// class of constructs to be size limited. The third parameter is the - /// new limit for that construct.)^ - /// - /// ^If the new limit is a negative number, the limit is unchanged. - /// ^(For each limit category SQLITE_LIMIT_NAME there is a - /// [limits | hard upper bound] - /// set at compile-time by a C preprocessor macro called - /// [limits | SQLITE_MAX_NAME]. - /// (The "_LIMIT_" in the name is changed to "_MAX_".))^ - /// ^Attempts to increase a limit above its hard upper bound are - /// silently truncated to the hard upper bound. - /// - /// ^Regardless of whether or not the limit was changed, the - /// [sqlite3_limit()] interface returns the prior value of the limit. - /// ^Hence, to find the current value of a limit without changing it, - /// simply invoke this interface with the third parameter set to -1. - /// - /// Run-time limits are intended for use in applications that manage - /// both their own internal database and also databases that are controlled - /// by untrusted external sources. An example application might be a - /// web browser that has its own databases for storing history and - /// separate databases controlled by JavaScript applications downloaded - /// off the Internet. The internal databases can be given the - /// large, default limits. Databases managed by external sources can - /// be given much smaller limits designed to prevent a denial of service - /// attack. Developers might also want to use the [sqlite3_set_authorizer()] - /// interface to further control untrusted SQL. The size of the database - /// created by an untrusted script can be contained using the - /// [max_page_count] [PRAGMA]. - /// - /// New run-time limit categories may be added in future releases. - int sqlite3_limit(ffi.Pointer arg0, int id, int newVal) { - return _sqlite3_limit(arg0, id, newVal); - } - - late final _sqlite3_limitPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int) - > - >('sqlite3_limit'); - late final _sqlite3_limit = _sqlite3_limitPtr - .asFunction, int, int)>(); - - /// CAPI3REF: Load An Extension - /// METHOD: sqlite3 - /// - /// ^This interface loads an SQLite extension library from the named file. - /// - /// ^The sqlite3_load_extension() interface attempts to load an - /// [SQLite extension] library contained in the file zFile. If - /// the file cannot be loaded directly, attempts are made to load - /// with various operating-system specific extensions added. - /// So for example, if "samplelib" cannot be loaded, then names like - /// "samplelib.so" or "samplelib.dylib" or "samplelib.dll" might - /// be tried also. - /// - /// ^The entry point is zProc. - /// ^(zProc may be 0, in which case SQLite will try to come up with an - /// entry point name on its own. It first tries "sqlite3_extension_init". - /// If that does not work, it constructs a name "sqlite3_X_init" where the - /// X is consists of the lower-case equivalent of all ASCII alphabetic - /// characters in the filename from the last "/" to the first following - /// "." and omitting any initial "lib".)^ - /// ^The sqlite3_load_extension() interface returns - /// [SQLITE_OK] on success and [SQLITE_ERROR] if something goes wrong. - /// ^If an error occurs and pzErrMsg is not 0, then the - /// [sqlite3_load_extension()] interface shall attempt to - /// fill *pzErrMsg with error message text stored in memory - /// obtained from [sqlite3_malloc()]. The calling function - /// should free this memory by calling [sqlite3_free()]. - /// - /// ^Extension loading must be enabled using - /// [sqlite3_enable_load_extension()] or - /// [sqlite3_db_config](db,[SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION],1,NULL) - /// prior to calling this API, - /// otherwise an error will be returned. - /// - /// Security warning: It is recommended that the - /// [SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION] method be used to enable only this - /// interface. The use of the [sqlite3_enable_load_extension()] interface - /// should be avoided. This will keep the SQL function [load_extension()] - /// disabled and prevent SQL injections from giving attackers - /// access to extension loading capabilities. - /// - /// See also the [load_extension() SQL function]. - int sqlite3_load_extension( - ffi.Pointer db, - ffi.Pointer zFile, - ffi.Pointer zProc, - ffi.Pointer> pzErrMsg, - ) { - return _sqlite3_load_extension(db, zFile, zProc, pzErrMsg); - } - - late final _sqlite3_load_extensionPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >('sqlite3_load_extension'); - late final _sqlite3_load_extension = _sqlite3_load_extensionPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); - - /// CAPI3REF: Error Logging Interface - /// - /// ^The [sqlite3_log()] interface writes a message into the [error log] - /// established by the [SQLITE_CONFIG_LOG] option to [sqlite3_config()]. - /// ^If logging is enabled, the zFormat string and subsequent arguments are - /// used with [sqlite3_snprintf()] to generate the final output string. - /// - /// The sqlite3_log() interface is intended for use by extensions such as - /// virtual tables, collating functions, and SQL functions. While there is - /// nothing to prevent an application from calling sqlite3_log(), doing so - /// is considered bad form. - /// - /// The zFormat string must not be NULL. - /// - /// To avoid deadlocks and other threading problems, the sqlite3_log() routine - /// will not use dynamically allocated memory. The log message is stored in - /// a fixed-length buffer on the stack. If the log message is longer than - /// a few hundred characters, it will be truncated to the length of the - /// buffer. - void sqlite3_log(int iErrCode, ffi.Pointer zFormat) { - return _sqlite3_log(iErrCode, zFormat); - } - - late final _sqlite3_logPtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_log'); - late final _sqlite3_log = _sqlite3_logPtr - .asFunction)>(); - - /// CAPI3REF: Memory Allocation Subsystem - /// - /// The SQLite core uses these three routines for all of its own - /// internal memory allocation needs. "Core" in the previous sentence - /// does not include operating-system specific [VFS] implementation. The - /// Windows VFS uses native malloc() and free() for some operations. - /// - /// ^The sqlite3_malloc() routine returns a pointer to a block - /// of memory at least N bytes in length, where N is the parameter. - /// ^If sqlite3_malloc() is unable to obtain sufficient free - /// memory, it returns a NULL pointer. ^If the parameter N to - /// sqlite3_malloc() is zero or negative then sqlite3_malloc() returns - /// a NULL pointer. - /// - /// ^The sqlite3_malloc64(N) routine works just like - /// sqlite3_malloc(N) except that N is an unsigned 64-bit integer instead - /// of a signed 32-bit integer. - /// - /// ^Calling sqlite3_free() with a pointer previously returned - /// by sqlite3_malloc() or sqlite3_realloc() releases that memory so - /// that it might be reused. ^The sqlite3_free() routine is - /// a no-op if is called with a NULL pointer. Passing a NULL pointer - /// to sqlite3_free() is harmless. After being freed, memory - /// should neither be read nor written. Even reading previously freed - /// memory might result in a segmentation fault or other severe error. - /// Memory corruption, a segmentation fault, or other severe error - /// might result if sqlite3_free() is called with a non-NULL pointer that - /// was not obtained from sqlite3_malloc() or sqlite3_realloc(). - /// - /// ^The sqlite3_realloc(X,N) interface attempts to resize a - /// prior memory allocation X to be at least N bytes. - /// ^If the X parameter to sqlite3_realloc(X,N) - /// is a NULL pointer then its behavior is identical to calling - /// sqlite3_malloc(N). - /// ^If the N parameter to sqlite3_realloc(X,N) is zero or - /// negative then the behavior is exactly the same as calling - /// sqlite3_free(X). - /// ^sqlite3_realloc(X,N) returns a pointer to a memory allocation - /// of at least N bytes in size or NULL if insufficient memory is available. - /// ^If M is the size of the prior allocation, then min(N,M) bytes - /// of the prior allocation are copied into the beginning of buffer returned - /// by sqlite3_realloc(X,N) and the prior allocation is freed. - /// ^If sqlite3_realloc(X,N) returns NULL and N is positive, then the - /// prior allocation is not freed. - /// - /// ^The sqlite3_realloc64(X,N) interfaces works the same as - /// sqlite3_realloc(X,N) except that N is a 64-bit unsigned integer instead - /// of a 32-bit signed integer. - /// - /// ^If X is a memory allocation previously obtained from sqlite3_malloc(), - /// sqlite3_malloc64(), sqlite3_realloc(), or sqlite3_realloc64(), then - /// sqlite3_msize(X) returns the size of that memory allocation in bytes. - /// ^The value returned by sqlite3_msize(X) might be larger than the number - /// of bytes requested when X was allocated. ^If X is a NULL pointer then - /// sqlite3_msize(X) returns zero. If X points to something that is not - /// the beginning of memory allocation, or if it points to a formerly - /// valid memory allocation that has now been freed, then the behavior - /// of sqlite3_msize(X) is undefined and possibly harmful. - /// - /// ^The memory returned by sqlite3_malloc(), sqlite3_realloc(), - /// sqlite3_malloc64(), and sqlite3_realloc64() - /// is always aligned to at least an 8 byte boundary, or to a - /// 4 byte boundary if the [SQLITE_4_BYTE_ALIGNED_MALLOC] compile-time - /// option is used. - /// - /// The pointer arguments to [sqlite3_free()] and [sqlite3_realloc()] - /// must be either NULL or else pointers obtained from a prior - /// invocation of [sqlite3_malloc()] or [sqlite3_realloc()] that have - /// not yet been released. - /// - /// The application must not read or write any part of - /// a block of memory after it has been released using - /// [sqlite3_free()] or [sqlite3_realloc()]. - ffi.Pointer sqlite3_malloc(int arg0) { - return _sqlite3_malloc(arg0); - } - - late final _sqlite3_mallocPtr = - _lookup Function(ffi.Int)>>( - 'sqlite3_malloc', - ); - late final _sqlite3_malloc = _sqlite3_mallocPtr - .asFunction Function(int)>(); - - ffi.Pointer sqlite3_malloc64(int arg0) { - return _sqlite3_malloc64(arg0); - } - - late final _sqlite3_malloc64Ptr = - _lookup< - ffi.NativeFunction Function(sqlite3_uint64)> - >('sqlite3_malloc64'); - late final _sqlite3_malloc64 = _sqlite3_malloc64Ptr - .asFunction Function(int)>(); - - int sqlite3_memory_alarm( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, sqlite3_int64, ffi.Int) - > - > - arg0, - ffi.Pointer arg1, - int arg2, - ) { - return _sqlite3_memory_alarm(arg0, arg1, arg2); - } - - late final _sqlite3_memory_alarmPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, sqlite3_int64, ffi.Int) - > - >, - ffi.Pointer, - sqlite3_int64, - ) - > - >('sqlite3_memory_alarm'); - late final _sqlite3_memory_alarm = _sqlite3_memory_alarmPtr - .asFunction< - int Function( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, sqlite3_int64, ffi.Int) - > - >, - ffi.Pointer, - int, - ) - >(); - - int sqlite3_memory_highwater(int resetFlag) { - return _sqlite3_memory_highwater(resetFlag); - } - - late final _sqlite3_memory_highwaterPtr = - _lookup>( - 'sqlite3_memory_highwater', - ); - late final _sqlite3_memory_highwater = _sqlite3_memory_highwaterPtr - .asFunction(); - - /// CAPI3REF: Memory Allocator Statistics - /// - /// SQLite provides these two interfaces for reporting on the status - /// of the [sqlite3_malloc()], [sqlite3_free()], and [sqlite3_realloc()] - /// routines, which form the built-in memory allocation subsystem. - /// - /// ^The [sqlite3_memory_used()] routine returns the number of bytes - /// of memory currently outstanding (malloced but not freed). - /// ^The [sqlite3_memory_highwater()] routine returns the maximum - /// value of [sqlite3_memory_used()] since the high-water mark - /// was last reset. ^The values returned by [sqlite3_memory_used()] and - /// [sqlite3_memory_highwater()] include any overhead - /// added by SQLite in its implementation of [sqlite3_malloc()], - /// but not overhead added by the any underlying system library - /// routines that [sqlite3_malloc()] may call. - /// - /// ^The memory high-water mark is reset to the current value of - /// [sqlite3_memory_used()] if and only if the parameter to - /// [sqlite3_memory_highwater()] is true. ^The value returned - /// by [sqlite3_memory_highwater(1)] is the high-water mark - /// prior to the reset. - int sqlite3_memory_used() { - return _sqlite3_memory_used(); - } - - late final _sqlite3_memory_usedPtr = - _lookup>( - 'sqlite3_memory_used', - ); - late final _sqlite3_memory_used = _sqlite3_memory_usedPtr - .asFunction(); - - /// CAPI3REF: Formatted String Printing Functions - /// - /// These routines are work-alikes of the "printf()" family of functions - /// from the standard C library. - /// These routines understand most of the common formatting options from - /// the standard library printf() - /// plus some additional non-standard formats ([%q], [%Q], [%w], and [%z]). - /// See the [built-in printf()] documentation for details. - /// - /// ^The sqlite3_mprintf() and sqlite3_vmprintf() routines write their - /// results into memory obtained from [sqlite3_malloc64()]. - /// The strings returned by these two routines should be - /// released by [sqlite3_free()]. ^Both routines return a - /// NULL pointer if [sqlite3_malloc64()] is unable to allocate enough - /// memory to hold the resulting string. - /// - /// ^(The sqlite3_snprintf() routine is similar to "snprintf()" from - /// the standard C library. The result is written into the - /// buffer supplied as the second parameter whose size is given by - /// the first parameter. Note that the order of the - /// first two parameters is reversed from snprintf().)^ This is an - /// historical accident that cannot be fixed without breaking - /// backwards compatibility. ^(Note also that sqlite3_snprintf() - /// returns a pointer to its buffer instead of the number of - /// characters actually written into the buffer.)^ We admit that - /// the number of characters written would be a more useful return - /// value but we cannot change the implementation of sqlite3_snprintf() - /// now without breaking compatibility. - /// - /// ^As long as the buffer size is greater than zero, sqlite3_snprintf() - /// guarantees that the buffer is always zero-terminated. ^The first - /// parameter "n" is the total size of the buffer, including space for - /// the zero terminator. So the longest string that can be completely - /// written will be n-1 characters. - /// - /// ^The sqlite3_vsnprintf() routine is a varargs version of sqlite3_snprintf(). - /// - /// See also: [built-in printf()], [printf() SQL function] - ffi.Pointer sqlite3_mprintf(ffi.Pointer arg0) { - return _sqlite3_mprintf(arg0); - } - - late final _sqlite3_mprintfPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_mprintf'); - late final _sqlite3_mprintf = _sqlite3_mprintfPtr - .asFunction Function(ffi.Pointer)>(); - - int sqlite3_msize(ffi.Pointer arg0) { - return _sqlite3_msize(arg0); - } - - late final _sqlite3_msizePtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_msize'); - late final _sqlite3_msize = _sqlite3_msizePtr - .asFunction)>(); - - /// CAPI3REF: Mutexes - /// - /// The SQLite core uses these routines for thread - /// synchronization. Though they are intended for internal - /// use by SQLite, code that links against SQLite is - /// permitted to use any of these routines. - /// - /// The SQLite source code contains multiple implementations - /// of these mutex routines. An appropriate implementation - /// is selected automatically at compile-time. The following - /// implementations are available in the SQLite core: - /// - ///
    - ///
  • SQLITE_MUTEX_PTHREADS - ///
  • SQLITE_MUTEX_W32 - ///
  • SQLITE_MUTEX_NOOP - ///
- /// - /// The SQLITE_MUTEX_NOOP implementation is a set of routines - /// that does no real locking and is appropriate for use in - /// a single-threaded application. The SQLITE_MUTEX_PTHREADS and - /// SQLITE_MUTEX_W32 implementations are appropriate for use on Unix - /// and Windows. - /// - /// If SQLite is compiled with the SQLITE_MUTEX_APPDEF preprocessor - /// macro defined (with "-DSQLITE_MUTEX_APPDEF=1"), then no mutex - /// implementation is included with the library. In this case the - /// application must supply a custom mutex implementation using the - /// [SQLITE_CONFIG_MUTEX] option of the sqlite3_config() function - /// before calling sqlite3_initialize() or any other public sqlite3_ - /// function that calls sqlite3_initialize(). - /// - /// ^The sqlite3_mutex_alloc() routine allocates a new - /// mutex and returns a pointer to it. ^The sqlite3_mutex_alloc() - /// routine returns NULL if it is unable to allocate the requested - /// mutex. The argument to sqlite3_mutex_alloc() must one of these - /// integer constants: - /// - ///
    - ///
  • SQLITE_MUTEX_FAST - ///
  • SQLITE_MUTEX_RECURSIVE - ///
  • SQLITE_MUTEX_STATIC_MASTER - ///
  • SQLITE_MUTEX_STATIC_MEM - ///
  • SQLITE_MUTEX_STATIC_OPEN - ///
  • SQLITE_MUTEX_STATIC_PRNG - ///
  • SQLITE_MUTEX_STATIC_LRU - ///
  • SQLITE_MUTEX_STATIC_PMEM - ///
  • SQLITE_MUTEX_STATIC_APP1 - ///
  • SQLITE_MUTEX_STATIC_APP2 - ///
  • SQLITE_MUTEX_STATIC_APP3 - ///
  • SQLITE_MUTEX_STATIC_VFS1 - ///
  • SQLITE_MUTEX_STATIC_VFS2 - ///
  • SQLITE_MUTEX_STATIC_VFS3 - ///
- /// - /// ^The first two constants (SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE) - /// cause sqlite3_mutex_alloc() to create - /// a new mutex. ^The new mutex is recursive when SQLITE_MUTEX_RECURSIVE - /// is used but not necessarily so when SQLITE_MUTEX_FAST is used. - /// The mutex implementation does not need to make a distinction - /// between SQLITE_MUTEX_RECURSIVE and SQLITE_MUTEX_FAST if it does - /// not want to. SQLite will only request a recursive mutex in - /// cases where it really needs one. If a faster non-recursive mutex - /// implementation is available on the host platform, the mutex subsystem - /// might return such a mutex in response to SQLITE_MUTEX_FAST. - /// - /// ^The other allowed parameters to sqlite3_mutex_alloc() (anything other - /// than SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE) each return - /// a pointer to a static preexisting mutex. ^Nine static mutexes are - /// used by the current version of SQLite. Future versions of SQLite - /// may add additional static mutexes. Static mutexes are for internal - /// use by SQLite only. Applications that use SQLite mutexes should - /// use only the dynamic mutexes returned by SQLITE_MUTEX_FAST or - /// SQLITE_MUTEX_RECURSIVE. - /// - /// ^Note that if one of the dynamic mutex parameters (SQLITE_MUTEX_FAST - /// or SQLITE_MUTEX_RECURSIVE) is used then sqlite3_mutex_alloc() - /// returns a different mutex on every call. ^For the static - /// mutex types, the same mutex is returned on every call that has - /// the same type number. - /// - /// ^The sqlite3_mutex_free() routine deallocates a previously - /// allocated dynamic mutex. Attempting to deallocate a static - /// mutex results in undefined behavior. - /// - /// ^The sqlite3_mutex_enter() and sqlite3_mutex_try() routines attempt - /// to enter a mutex. ^If another thread is already within the mutex, - /// sqlite3_mutex_enter() will block and sqlite3_mutex_try() will return - /// SQLITE_BUSY. ^The sqlite3_mutex_try() interface returns [SQLITE_OK] - /// upon successful entry. ^(Mutexes created using - /// SQLITE_MUTEX_RECURSIVE can be entered multiple times by the same thread. - /// In such cases, the - /// mutex must be exited an equal number of times before another thread - /// can enter.)^ If the same thread tries to enter any mutex other - /// than an SQLITE_MUTEX_RECURSIVE more than once, the behavior is undefined. - /// - /// ^(Some systems (for example, Windows 95) do not support the operation - /// implemented by sqlite3_mutex_try(). On those systems, sqlite3_mutex_try() - /// will always return SQLITE_BUSY. The SQLite core only ever uses - /// sqlite3_mutex_try() as an optimization so this is acceptable - /// behavior.)^ - /// - /// ^The sqlite3_mutex_leave() routine exits a mutex that was - /// previously entered by the same thread. The behavior - /// is undefined if the mutex is not currently entered by the - /// calling thread or is not currently allocated. - /// - /// ^If the argument to sqlite3_mutex_enter(), sqlite3_mutex_try(), or - /// sqlite3_mutex_leave() is a NULL pointer, then all three routines - /// behave as no-ops. - /// - /// See also: [sqlite3_mutex_held()] and [sqlite3_mutex_notheld()]. - ffi.Pointer sqlite3_mutex_alloc(int arg0) { - return _sqlite3_mutex_alloc(arg0); - } - - late final _sqlite3_mutex_allocPtr = - _lookup Function(ffi.Int)>>( - 'sqlite3_mutex_alloc', - ); - late final _sqlite3_mutex_alloc = _sqlite3_mutex_allocPtr - .asFunction Function(int)>(); - - void sqlite3_mutex_enter(ffi.Pointer arg0) { - return _sqlite3_mutex_enter(arg0); - } - - late final _sqlite3_mutex_enterPtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_mutex_enter'); - late final _sqlite3_mutex_enter = _sqlite3_mutex_enterPtr - .asFunction)>(); - - void sqlite3_mutex_free(ffi.Pointer arg0) { - return _sqlite3_mutex_free(arg0); - } - - late final _sqlite3_mutex_freePtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_mutex_free'); - late final _sqlite3_mutex_free = _sqlite3_mutex_freePtr - .asFunction)>(); - - int sqlite3_mutex_held(ffi.Pointer arg0) { - return _sqlite3_mutex_held(arg0); - } - - late final _sqlite3_mutex_heldPtr = - _lookup)>>( - 'sqlite3_mutex_held', - ); - late final _sqlite3_mutex_held = _sqlite3_mutex_heldPtr - .asFunction)>(); - - void sqlite3_mutex_leave(ffi.Pointer arg0) { - return _sqlite3_mutex_leave(arg0); - } - - late final _sqlite3_mutex_leavePtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_mutex_leave'); - late final _sqlite3_mutex_leave = _sqlite3_mutex_leavePtr - .asFunction)>(); - - int sqlite3_mutex_notheld(ffi.Pointer arg0) { - return _sqlite3_mutex_notheld(arg0); - } - - late final _sqlite3_mutex_notheldPtr = - _lookup)>>( - 'sqlite3_mutex_notheld', - ); - late final _sqlite3_mutex_notheld = _sqlite3_mutex_notheldPtr - .asFunction)>(); - - int sqlite3_mutex_try(ffi.Pointer arg0) { - return _sqlite3_mutex_try(arg0); - } - - late final _sqlite3_mutex_tryPtr = - _lookup)>>( - 'sqlite3_mutex_try', - ); - late final _sqlite3_mutex_try = _sqlite3_mutex_tryPtr - .asFunction)>(); - - /// CAPI3REF: Find the next prepared statement - /// METHOD: sqlite3 - /// - /// ^This interface returns a pointer to the next [prepared statement] after - /// pStmt associated with the [database connection] pDb. ^If pStmt is NULL - /// then this interface returns a pointer to the first prepared statement - /// associated with the database connection pDb. ^If no prepared statement - /// satisfies the conditions of this routine, it returns NULL. - /// - /// The [database connection] pointer D in a call to - /// [sqlite3_next_stmt(D,S)] must refer to an open database - /// connection and in particular must not be a NULL pointer. - ffi.Pointer sqlite3_next_stmt( - ffi.Pointer pDb, - ffi.Pointer pStmt, - ) { - return _sqlite3_next_stmt(pDb, pStmt); - } - - late final _sqlite3_next_stmtPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_next_stmt'); - late final _sqlite3_next_stmt = _sqlite3_next_stmtPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); - - ffi.Pointer sqlite3_normalized_sql( - ffi.Pointer pStmt, - ) { - return _sqlite3_normalized_sql(pStmt); - } - - late final _sqlite3_normalized_sqlPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_normalized_sql'); - late final _sqlite3_normalized_sql = _sqlite3_normalized_sqlPtr - .asFunction Function(ffi.Pointer)>(); - - /// CAPI3REF: Opening A New Database Connection - /// CONSTRUCTOR: sqlite3 - /// - /// ^These routines open an SQLite database file as specified by the - /// filename argument. ^The filename argument is interpreted as UTF-8 for - /// sqlite3_open() and sqlite3_open_v2() and as UTF-16 in the native byte - /// order for sqlite3_open16(). ^(A [database connection] handle is usually - /// returned in *ppDb, even if an error occurs. The only exception is that - /// if SQLite is unable to allocate memory to hold the [sqlite3] object, - /// a NULL will be written into *ppDb instead of a pointer to the [sqlite3] - /// object.)^ ^(If the database is opened (and/or created) successfully, then - /// [SQLITE_OK] is returned. Otherwise an [error code] is returned.)^ ^The - /// [sqlite3_errmsg()] or [sqlite3_errmsg16()] routines can be used to obtain - /// an English language description of the error following a failure of any - /// of the sqlite3_open() routines. - /// - /// ^The default encoding will be UTF-8 for databases created using - /// sqlite3_open() or sqlite3_open_v2(). ^The default encoding for databases - /// created using sqlite3_open16() will be UTF-16 in the native byte order. - /// - /// Whether or not an error occurs when it is opened, resources - /// associated with the [database connection] handle should be released by - /// passing it to [sqlite3_close()] when it is no longer required. - /// - /// The sqlite3_open_v2() interface works like sqlite3_open() - /// except that it accepts two additional parameters for additional control - /// over the new database connection. ^(The flags parameter to - /// sqlite3_open_v2() must include, at a minimum, one of the following - /// three flag combinations:)^ - /// - ///
- /// ^(
[SQLITE_OPEN_READONLY]
- ///
The database is opened in read-only mode. If the database does not - /// already exist, an error is returned.
)^ - /// - /// ^(
[SQLITE_OPEN_READWRITE]
- ///
The database is opened for reading and writing if possible, or reading - /// only if the file is write protected by the operating system. In either - /// case the database must already exist, otherwise an error is returned.
)^ - /// - /// ^(
[SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]
- ///
The database is opened for reading and writing, and is created if - /// it does not already exist. This is the behavior that is always used for - /// sqlite3_open() and sqlite3_open16().
)^ - ///
- /// - /// In addition to the required flags, the following optional flags are - /// also supported: - /// - ///
- /// ^(
[SQLITE_OPEN_URI]
- ///
The filename can be interpreted as a URI if this flag is set.
)^ - /// - /// ^(
[SQLITE_OPEN_MEMORY]
- ///
The database will be opened as an in-memory database. The database - /// is named by the "filename" argument for the purposes of cache-sharing, - /// if shared cache mode is enabled, but the "filename" is otherwise ignored. - ///
)^ - /// - /// ^(
[SQLITE_OPEN_NOMUTEX]
- ///
The new database connection will use the "multi-thread" - /// [threading mode].)^ This means that separate threads are allowed - /// to use SQLite at the same time, as long as each thread is using - /// a different [database connection]. - /// - /// ^(
[SQLITE_OPEN_FULLMUTEX]
- ///
The new database connection will use the "serialized" - /// [threading mode].)^ This means the multiple threads can safely - /// attempt to use the same database connection at the same time. - /// (Mutexes will block any actual concurrency, but in this mode - /// there is no harm in trying.) - /// - /// ^(
[SQLITE_OPEN_SHAREDCACHE]
- ///
The database is opened [shared cache] enabled, overriding - /// the default shared cache setting provided by - /// [sqlite3_enable_shared_cache()].)^ - /// - /// ^(
[SQLITE_OPEN_PRIVATECACHE]
- ///
The database is opened [shared cache] disabled, overriding - /// the default shared cache setting provided by - /// [sqlite3_enable_shared_cache()].)^ - /// - /// [[OPEN_NOFOLLOW]] ^(
[SQLITE_OPEN_NOFOLLOW]
- ///
The database filename is not allowed to be a symbolic link
- ///
)^ - /// - /// If the 3rd parameter to sqlite3_open_v2() is not one of the - /// required combinations shown above optionally combined with other - /// [SQLITE_OPEN_READONLY | SQLITE_OPEN_* bits] - /// then the behavior is undefined. - /// - /// ^The fourth parameter to sqlite3_open_v2() is the name of the - /// [sqlite3_vfs] object that defines the operating system interface that - /// the new database connection should use. ^If the fourth parameter is - /// a NULL pointer then the default [sqlite3_vfs] object is used. - /// - /// ^If the filename is ":memory:", then a private, temporary in-memory database - /// is created for the connection. ^This in-memory database will vanish when - /// the database connection is closed. Future versions of SQLite might - /// make use of additional special filenames that begin with the ":" character. - /// It is recommended that when a database filename actually does begin with - /// a ":" character you should prefix the filename with a pathname such as - /// "./" to avoid ambiguity. - /// - /// ^If the filename is an empty string, then a private, temporary - /// on-disk database will be created. ^This private database will be - /// automatically deleted as soon as the database connection is closed. - /// - /// [[URI filenames in sqlite3_open()]]

URI Filenames

- /// - /// ^If [URI filename] interpretation is enabled, and the filename argument - /// begins with "file:", then the filename is interpreted as a URI. ^URI - /// filename interpretation is enabled if the [SQLITE_OPEN_URI] flag is - /// set in the third argument to sqlite3_open_v2(), or if it has - /// been enabled globally using the [SQLITE_CONFIG_URI] option with the - /// [sqlite3_config()] method or by the [SQLITE_USE_URI] compile-time option. - /// URI filename interpretation is turned off - /// by default, but future releases of SQLite might enable URI filename - /// interpretation by default. See "[URI filenames]" for additional - /// information. - /// - /// URI filenames are parsed according to RFC 3986. ^If the URI contains an - /// authority, then it must be either an empty string or the string - /// "localhost". ^If the authority is not an empty string or "localhost", an - /// error is returned to the caller. ^The fragment component of a URI, if - /// present, is ignored. - /// - /// ^SQLite uses the path component of the URI as the name of the disk file - /// which contains the database. ^If the path begins with a '/' character, - /// then it is interpreted as an absolute path. ^If the path does not begin - /// with a '/' (meaning that the authority section is omitted from the URI) - /// then the path is interpreted as a relative path. - /// ^(On windows, the first component of an absolute path - /// is a drive specification (e.g. "C:").)^ - /// - /// [[core URI query parameters]] - /// The query component of a URI may contain parameters that are interpreted - /// either by SQLite itself, or by a [VFS | custom VFS implementation]. - /// SQLite and its built-in [VFSes] interpret the - /// following query parameters: - /// - ///
    - ///
  • vfs: ^The "vfs" parameter may be used to specify the name of - /// a VFS object that provides the operating system interface that should - /// be used to access the database file on disk. ^If this option is set to - /// an empty string the default VFS object is used. ^Specifying an unknown - /// VFS is an error. ^If sqlite3_open_v2() is used and the vfs option is - /// present, then the VFS specified by the option takes precedence over - /// the value passed as the fourth parameter to sqlite3_open_v2(). - /// - ///
  • mode: ^(The mode parameter may be set to either "ro", "rw", - /// "rwc", or "memory". Attempting to set it to any other value is - /// an error)^. - /// ^If "ro" is specified, then the database is opened for read-only - /// access, just as if the [SQLITE_OPEN_READONLY] flag had been set in the - /// third argument to sqlite3_open_v2(). ^If the mode option is set to - /// "rw", then the database is opened for read-write (but not create) - /// access, as if SQLITE_OPEN_READWRITE (but not SQLITE_OPEN_CREATE) had - /// been set. ^Value "rwc" is equivalent to setting both - /// SQLITE_OPEN_READWRITE and SQLITE_OPEN_CREATE. ^If the mode option is - /// set to "memory" then a pure [in-memory database] that never reads - /// or writes from disk is used. ^It is an error to specify a value for - /// the mode parameter that is less restrictive than that specified by - /// the flags passed in the third parameter to sqlite3_open_v2(). - /// - ///
  • cache: ^The cache parameter may be set to either "shared" or - /// "private". ^Setting it to "shared" is equivalent to setting the - /// SQLITE_OPEN_SHAREDCACHE bit in the flags argument passed to - /// sqlite3_open_v2(). ^Setting the cache parameter to "private" is - /// equivalent to setting the SQLITE_OPEN_PRIVATECACHE bit. - /// ^If sqlite3_open_v2() is used and the "cache" parameter is present in - /// a URI filename, its value overrides any behavior requested by setting - /// SQLITE_OPEN_PRIVATECACHE or SQLITE_OPEN_SHAREDCACHE flag. - /// - ///
  • psow: ^The psow parameter indicates whether or not the - /// [powersafe overwrite] property does or does not apply to the - /// storage media on which the database file resides. - /// - ///
  • nolock: ^The nolock parameter is a boolean query parameter - /// which if set disables file locking in rollback journal modes. This - /// is useful for accessing a database on a filesystem that does not - /// support locking. Caution: Database corruption might result if two - /// or more processes write to the same database and any one of those - /// processes uses nolock=1. - /// - ///
  • immutable: ^The immutable parameter is a boolean query - /// parameter that indicates that the database file is stored on - /// read-only media. ^When immutable is set, SQLite assumes that the - /// database file cannot be changed, even by a process with higher - /// privilege, and so the database is opened read-only and all locking - /// and change detection is disabled. Caution: Setting the immutable - /// property on a database file that does in fact change can result - /// in incorrect query results and/or [SQLITE_CORRUPT] errors. - /// See also: [SQLITE_IOCAP_IMMUTABLE]. - /// - ///
- /// - /// ^Specifying an unknown parameter in the query component of a URI is not an - /// error. Future versions of SQLite might understand additional query - /// parameters. See "[query parameters with special meaning to SQLite]" for - /// additional information. - /// - /// [[URI filename examples]]

URI filename examples

- /// - /// - ///
URI filenames Results - ///
file:data.db - /// Open the file "data.db" in the current directory. - ///
file:/home/fred/data.db
- /// file:///home/fred/data.db
- /// file://localhost/home/fred/data.db
- /// Open the database file "/home/fred/data.db". - ///
file://darkstar/home/fred/data.db - /// An error. "darkstar" is not a recognized authority. - ///
- /// file:///C:/Documents%20and%20Settings/fred/Desktop/data.db - /// Windows only: Open the file "data.db" on fred's desktop on drive - /// C:. Note that the %20 escaping in this example is not strictly - /// necessary - space characters can be used literally - /// in URI filenames. - ///
file:data.db?mode=ro&cache=private - /// Open file "data.db" in the current directory for read-only access. - /// Regardless of whether or not shared-cache mode is enabled by - /// default, use a private cache. - ///
file:/home/fred/data.db?vfs=unix-dotfile - /// Open file "/home/fred/data.db". Use the special VFS "unix-dotfile" - /// that uses dot-files in place of posix advisory locking. - ///
file:data.db?mode=readonly - /// An error. "readonly" is not a valid option for the "mode" parameter. - ///
- /// - /// ^URI hexadecimal escape sequences (%HH) are supported within the path and - /// query components of a URI. A hexadecimal escape sequence consists of a - /// percent sign - "%" - followed by exactly two hexadecimal digits - /// specifying an octet value. ^Before the path or query components of a - /// URI filename are interpreted, they are encoded using UTF-8 and all - /// hexadecimal escape sequences replaced by a single byte containing the - /// corresponding octet. If this process generates an invalid UTF-8 encoding, - /// the results are undefined. - /// - /// Note to Windows users: The encoding used for the filename argument - /// of sqlite3_open() and sqlite3_open_v2() must be UTF-8, not whatever - /// codepage is currently defined. Filenames containing international - /// characters must be converted to UTF-8 prior to passing them into - /// sqlite3_open() or sqlite3_open_v2(). - /// - /// Note to Windows Runtime users: The temporary directory must be set - /// prior to calling sqlite3_open() or sqlite3_open_v2(). Otherwise, various - /// features that require the use of temporary files may fail. - /// - /// See also: [sqlite3_temp_directory] - int sqlite3_open( - ffi.Pointer filename, - ffi.Pointer> ppDb, - ) { - return _sqlite3_open(filename, ppDb); - } - - late final _sqlite3_openPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ) - > - >('sqlite3_open'); - late final _sqlite3_open = _sqlite3_openPtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer>) - >(); - - int sqlite3_open16( - ffi.Pointer filename, - ffi.Pointer> ppDb, - ) { - return _sqlite3_open16(filename, ppDb); - } - - late final _sqlite3_open16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ) - > - >('sqlite3_open16'); - late final _sqlite3_open16 = _sqlite3_open16Ptr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer>) - >(); - - int sqlite3_open_v2( - ffi.Pointer filename, - ffi.Pointer> ppDb, - int flags, - ffi.Pointer zVfs, - ) { - return _sqlite3_open_v2(filename, ppDb, flags, zVfs); - } - - late final _sqlite3_open_v2Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ) - > - >('sqlite3_open_v2'); - late final _sqlite3_open_v2 = _sqlite3_open_v2Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - ) - >(); - - int sqlite3_os_end() { - return _sqlite3_os_end(); - } - - late final _sqlite3_os_endPtr = - _lookup>('sqlite3_os_end'); - late final _sqlite3_os_end = _sqlite3_os_endPtr.asFunction(); - - int sqlite3_os_init() { - return _sqlite3_os_init(); - } - - late final _sqlite3_os_initPtr = - _lookup>('sqlite3_os_init'); - late final _sqlite3_os_init = _sqlite3_os_initPtr - .asFunction(); - - /// CAPI3REF: Overload A Function For A Virtual Table - /// METHOD: sqlite3 - /// - /// ^(Virtual tables can provide alternative implementations of functions - /// using the [xFindFunction] method of the [virtual table module]. - /// But global versions of those functions - /// must exist in order to be overloaded.)^ - /// - /// ^(This API makes sure a global version of a function with a particular - /// name and number of parameters exists. If no such function exists - /// before this API is called, a new function is created.)^ ^The implementation - /// of the new function always causes an exception to be thrown. So - /// the new function is not good for anything by itself. Its only - /// purpose is to be a placeholder function that can be overloaded - /// by a [virtual table]. - int sqlite3_overload_function( - ffi.Pointer arg0, - ffi.Pointer zFuncName, - int nArg, - ) { - return _sqlite3_overload_function(arg0, zFuncName, nArg); - } - - late final _sqlite3_overload_functionPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - >('sqlite3_overload_function'); - late final _sqlite3_overload_function = _sqlite3_overload_functionPtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer, int) - >(); - - /// CAPI3REF: Compiling An SQL Statement - /// KEYWORDS: {SQL statement compiler} - /// METHOD: sqlite3 - /// CONSTRUCTOR: sqlite3_stmt - /// - /// To execute an SQL statement, it must first be compiled into a byte-code - /// program using one of these routines. Or, in other words, these routines - /// are constructors for the [prepared statement] object. - /// - /// The preferred routine to use is [sqlite3_prepare_v2()]. The - /// [sqlite3_prepare()] interface is legacy and should be avoided. - /// [sqlite3_prepare_v3()] has an extra "prepFlags" option that is used - /// for special purposes. - /// - /// The use of the UTF-8 interfaces is preferred, as SQLite currently - /// does all parsing using UTF-8. The UTF-16 interfaces are provided - /// as a convenience. The UTF-16 interfaces work by converting the - /// input text into UTF-8, then invoking the corresponding UTF-8 interface. - /// - /// The first argument, "db", is a [database connection] obtained from a - /// prior successful call to [sqlite3_open()], [sqlite3_open_v2()] or - /// [sqlite3_open16()]. The database connection must not have been closed. - /// - /// The second argument, "zSql", is the statement to be compiled, encoded - /// as either UTF-8 or UTF-16. The sqlite3_prepare(), sqlite3_prepare_v2(), - /// and sqlite3_prepare_v3() - /// interfaces use UTF-8, and sqlite3_prepare16(), sqlite3_prepare16_v2(), - /// and sqlite3_prepare16_v3() use UTF-16. - /// - /// ^If the nByte argument is negative, then zSql is read up to the - /// first zero terminator. ^If nByte is positive, then it is the - /// number of bytes read from zSql. ^If nByte is zero, then no prepared - /// statement is generated. - /// If the caller knows that the supplied string is nul-terminated, then - /// there is a small performance advantage to passing an nByte parameter that - /// is the number of bytes in the input string including - /// the nul-terminator. - /// - /// ^If pzTail is not NULL then *pzTail is made to point to the first byte - /// past the end of the first SQL statement in zSql. These routines only - /// compile the first statement in zSql, so *pzTail is left pointing to - /// what remains uncompiled. - /// - /// ^*ppStmt is left pointing to a compiled [prepared statement] that can be - /// executed using [sqlite3_step()]. ^If there is an error, *ppStmt is set - /// to NULL. ^If the input text contains no SQL (if the input is an empty - /// string or a comment) then *ppStmt is set to NULL. - /// The calling procedure is responsible for deleting the compiled - /// SQL statement using [sqlite3_finalize()] after it has finished with it. - /// ppStmt may not be NULL. - /// - /// ^On success, the sqlite3_prepare() family of routines return [SQLITE_OK]; - /// otherwise an [error code] is returned. - /// - /// The sqlite3_prepare_v2(), sqlite3_prepare_v3(), sqlite3_prepare16_v2(), - /// and sqlite3_prepare16_v3() interfaces are recommended for all new programs. - /// The older interfaces (sqlite3_prepare() and sqlite3_prepare16()) - /// are retained for backwards compatibility, but their use is discouraged. - /// ^In the "vX" interfaces, the prepared statement - /// that is returned (the [sqlite3_stmt] object) contains a copy of the - /// original SQL text. This causes the [sqlite3_step()] interface to - /// behave differently in three ways: - /// - ///
    - ///
  1. - /// ^If the database schema changes, instead of returning [SQLITE_SCHEMA] as it - /// always used to do, [sqlite3_step()] will automatically recompile the SQL - /// statement and try to run it again. As many as [SQLITE_MAX_SCHEMA_RETRY] - /// retries will occur before sqlite3_step() gives up and returns an error. - ///
  2. - /// - ///
  3. - /// ^When an error occurs, [sqlite3_step()] will return one of the detailed - /// [error codes] or [extended error codes]. ^The legacy behavior was that - /// [sqlite3_step()] would only return a generic [SQLITE_ERROR] result code - /// and the application would have to make a second call to [sqlite3_reset()] - /// in order to find the underlying cause of the problem. With the "v2" prepare - /// interfaces, the underlying reason for the error is returned immediately. - ///
  4. - /// - ///
  5. - /// ^If the specific value bound to a [parameter | host parameter] in the - /// WHERE clause might influence the choice of query plan for a statement, - /// then the statement will be automatically recompiled, as if there had been - /// a schema change, on the first [sqlite3_step()] call following any change - /// to the [sqlite3_bind_text | bindings] of that [parameter]. - /// ^The specific value of a WHERE-clause [parameter] might influence the - /// choice of query plan if the parameter is the left-hand side of a [LIKE] - /// or [GLOB] operator or if the parameter is compared to an indexed column - /// and the [SQLITE_ENABLE_STAT4] compile-time option is enabled. - ///
  6. - ///
- /// - ///

^sqlite3_prepare_v3() differs from sqlite3_prepare_v2() only in having - /// the extra prepFlags parameter, which is a bit array consisting of zero or - /// more of the [SQLITE_PREPARE_PERSISTENT|SQLITE_PREPARE_*] flags. ^The - /// sqlite3_prepare_v2() interface works exactly the same as - /// sqlite3_prepare_v3() with a zero prepFlags parameter. - int sqlite3_prepare( - ffi.Pointer db, - ffi.Pointer zSql, - int nByte, - ffi.Pointer> ppStmt, - ffi.Pointer> pzTail, - ) { - return _sqlite3_prepare(db, zSql, nByte, ppStmt, pzTail); - } - - late final _sqlite3_preparePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >('sqlite3_prepare'); - late final _sqlite3_prepare = _sqlite3_preparePtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); - - int sqlite3_prepare16( - ffi.Pointer db, - ffi.Pointer zSql, - int nByte, - ffi.Pointer> ppStmt, - ffi.Pointer> pzTail, - ) { - return _sqlite3_prepare16(db, zSql, nByte, ppStmt, pzTail); - } - - late final _sqlite3_prepare16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >('sqlite3_prepare16'); - late final _sqlite3_prepare16 = _sqlite3_prepare16Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); - - int sqlite3_prepare16_v2( - ffi.Pointer db, - ffi.Pointer zSql, - int nByte, - ffi.Pointer> ppStmt, - ffi.Pointer> pzTail, - ) { - return _sqlite3_prepare16_v2(db, zSql, nByte, ppStmt, pzTail); - } - - late final _sqlite3_prepare16_v2Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >('sqlite3_prepare16_v2'); - late final _sqlite3_prepare16_v2 = _sqlite3_prepare16_v2Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); - - int sqlite3_prepare16_v3( - ffi.Pointer db, - ffi.Pointer zSql, - int nByte, - int prepFlags, - ffi.Pointer> ppStmt, - ffi.Pointer> pzTail, - ) { - return _sqlite3_prepare16_v3(db, zSql, nByte, prepFlags, ppStmt, pzTail); - } - - late final _sqlite3_prepare16_v3Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.UnsignedInt, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >('sqlite3_prepare16_v3'); - late final _sqlite3_prepare16_v3 = _sqlite3_prepare16_v3Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); - - int sqlite3_prepare_v2( - ffi.Pointer db, - ffi.Pointer zSql, - int nByte, - ffi.Pointer> ppStmt, - ffi.Pointer> pzTail, - ) { - return _sqlite3_prepare_v2(db, zSql, nByte, ppStmt, pzTail); - } - - late final _sqlite3_prepare_v2Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >('sqlite3_prepare_v2'); - late final _sqlite3_prepare_v2 = _sqlite3_prepare_v2Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); - - int sqlite3_prepare_v3( - ffi.Pointer db, - ffi.Pointer zSql, - int nByte, - int prepFlags, - ffi.Pointer> ppStmt, - ffi.Pointer> pzTail, - ) { - return _sqlite3_prepare_v3(db, zSql, nByte, prepFlags, ppStmt, pzTail); - } - - late final _sqlite3_prepare_v3Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.UnsignedInt, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >('sqlite3_prepare_v3'); - late final _sqlite3_prepare_v3 = _sqlite3_prepare_v3Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer>, - ffi.Pointer>, - ) - >(); - - ffi.Pointer sqlite3_profile( - ffi.Pointer arg0, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sqlite3_uint64, - ) - > - > - xProfile, - ffi.Pointer arg2, - ) { - return _sqlite3_profile(arg0, xProfile, arg2); - } - - late final _sqlite3_profilePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sqlite3_uint64, - ) - > - >, - ffi.Pointer, - ) - > - >('sqlite3_profile'); - late final _sqlite3_profile = _sqlite3_profilePtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sqlite3_uint64, - ) - > - >, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Query Progress Callbacks - /// METHOD: sqlite3 - /// - /// ^The sqlite3_progress_handler(D,N,X,P) interface causes the callback - /// function X to be invoked periodically during long running calls to - /// [sqlite3_exec()], [sqlite3_step()] and [sqlite3_get_table()] for - /// database connection D. An example use for this - /// interface is to keep a GUI updated during a large query. - /// - /// ^The parameter P is passed through as the only parameter to the - /// callback function X. ^The parameter N is the approximate number of - /// [virtual machine instructions] that are evaluated between successive - /// invocations of the callback X. ^If N is less than one then the progress - /// handler is disabled. - /// - /// ^Only a single progress handler may be defined at one time per - /// [database connection]; setting a new progress handler cancels the - /// old one. ^Setting parameter X to NULL disables the progress handler. - /// ^The progress handler is also disabled by setting N to a value less - /// than 1. - /// - /// ^If the progress callback returns non-zero, the operation is - /// interrupted. This feature can be used to implement a - /// "Cancel" button on a GUI progress dialog box. - /// - /// The progress handler callback must not do anything that will modify - /// the database connection that invoked the progress handler. - /// Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their - /// database connections for the meaning of "modify" in this paragraph. - void sqlite3_progress_handler( - ffi.Pointer arg0, - int arg1, - ffi.Pointer)>> - arg2, - ffi.Pointer arg3, - ) { - return _sqlite3_progress_handler(arg0, arg1, arg2, arg3); - } - - late final _sqlite3_progress_handlerPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.Pointer, - ) - > - >('sqlite3_progress_handler'); - late final _sqlite3_progress_handler = _sqlite3_progress_handlerPtr - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Pseudo-Random Number Generator - /// - /// SQLite contains a high-quality pseudo-random number generator (PRNG) used to - /// select random [ROWID | ROWIDs] when inserting new records into a table that - /// already uses the largest possible [ROWID]. The PRNG is also used for - /// the built-in random() and randomblob() SQL functions. This interface allows - /// applications to access the same PRNG for other purposes. - /// - /// ^A call to this routine stores N bytes of randomness into buffer P. - /// ^The P parameter can be a NULL pointer. - /// - /// ^If this routine has not been previously called or if the previous - /// call had N less than one or a NULL pointer for P, then the PRNG is - /// seeded using randomness obtained from the xRandomness method of - /// the default [sqlite3_vfs] object. - /// ^If the previous call to this routine had an N of 1 or more and a - /// non-NULL P then the pseudo-randomness is generated - /// internally and without recourse to the [sqlite3_vfs] xRandomness - /// method. - void sqlite3_randomness(int N, ffi.Pointer P) { - return _sqlite3_randomness(N, P); - } - - late final _sqlite3_randomnessPtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_randomness'); - late final _sqlite3_randomness = _sqlite3_randomnessPtr - .asFunction)>(); - - ffi.Pointer sqlite3_realloc(ffi.Pointer arg0, int arg1) { - return _sqlite3_realloc(arg0, arg1); - } - - late final _sqlite3_reallocPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_realloc'); - late final _sqlite3_realloc = _sqlite3_reallocPtr - .asFunction Function(ffi.Pointer, int)>(); - - ffi.Pointer sqlite3_realloc64( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_realloc64(arg0, arg1); - } - - late final _sqlite3_realloc64Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, sqlite3_uint64) - > - >('sqlite3_realloc64'); - late final _sqlite3_realloc64 = _sqlite3_realloc64Ptr - .asFunction Function(ffi.Pointer, int)>(); - - /// CAPI3REF: Attempt To Free Heap Memory - /// - /// ^The sqlite3_release_memory() interface attempts to free N bytes - /// of heap memory by deallocating non-essential memory allocations - /// held by the database library. Memory used to cache database - /// pages to improve performance is an example of non-essential memory. - /// ^sqlite3_release_memory() returns the number of bytes actually freed, - /// which might be more or less than the amount requested. - /// ^The sqlite3_release_memory() routine is a no-op returning zero - /// if SQLite is not compiled with [SQLITE_ENABLE_MEMORY_MANAGEMENT]. - /// - /// See also: [sqlite3_db_release_memory()] - int sqlite3_release_memory(int arg0) { - return _sqlite3_release_memory(arg0); - } - - late final _sqlite3_release_memoryPtr = - _lookup>( - 'sqlite3_release_memory', - ); - late final _sqlite3_release_memory = _sqlite3_release_memoryPtr - .asFunction(); - - /// CAPI3REF: Reset A Prepared Statement Object - /// METHOD: sqlite3_stmt - /// - /// The sqlite3_reset() function is called to reset a [prepared statement] - /// object back to its initial state, ready to be re-executed. - /// ^Any SQL statement variables that had values bound to them using - /// the [sqlite3_bind_blob | sqlite3_bind_*() API] retain their values. - /// Use [sqlite3_clear_bindings()] to reset the bindings. - /// - /// ^The [sqlite3_reset(S)] interface resets the [prepared statement] S - /// back to the beginning of its program. - /// - /// ^If the most recent call to [sqlite3_step(S)] for the - /// [prepared statement] S returned [SQLITE_ROW] or [SQLITE_DONE], - /// or if [sqlite3_step(S)] has never before been called on S, - /// then [sqlite3_reset(S)] returns [SQLITE_OK]. - /// - /// ^If the most recent call to [sqlite3_step(S)] for the - /// [prepared statement] S indicated an error, then - /// [sqlite3_reset(S)] returns an appropriate [error code]. - /// - /// ^The [sqlite3_reset(S)] interface does not change the values - /// of any [sqlite3_bind_blob|bindings] on the [prepared statement] S. - int sqlite3_reset(ffi.Pointer pStmt) { - return _sqlite3_reset(pStmt); - } - - late final _sqlite3_resetPtr = - _lookup)>>( - 'sqlite3_reset', - ); - late final _sqlite3_reset = _sqlite3_resetPtr - .asFunction)>(); - - /// CAPI3REF: Reset Automatic Extension Loading - /// - /// ^This interface disables all automatic extensions previously - /// registered using [sqlite3_auto_extension()]. - void sqlite3_reset_auto_extension() { - return _sqlite3_reset_auto_extension(); - } - - late final _sqlite3_reset_auto_extensionPtr = - _lookup>( - 'sqlite3_reset_auto_extension', - ); - late final _sqlite3_reset_auto_extension = _sqlite3_reset_auto_extensionPtr - .asFunction(); - - /// CAPI3REF: Setting The Result Of An SQL Function - /// METHOD: sqlite3_context - /// - /// These routines are used by the xFunc or xFinal callbacks that - /// implement SQL functions and aggregates. See - /// [sqlite3_create_function()] and [sqlite3_create_function16()] - /// for additional information. - /// - /// These functions work very much like the [parameter binding] family of - /// functions used to bind values to host parameters in prepared statements. - /// Refer to the [SQL parameter] documentation for additional information. - /// - /// ^The sqlite3_result_blob() interface sets the result from - /// an application-defined function to be the BLOB whose content is pointed - /// to by the second parameter and which is N bytes long where N is the - /// third parameter. - /// - /// ^The sqlite3_result_zeroblob(C,N) and sqlite3_result_zeroblob64(C,N) - /// interfaces set the result of the application-defined function to be - /// a BLOB containing all zero bytes and N bytes in size. - /// - /// ^The sqlite3_result_double() interface sets the result from - /// an application-defined function to be a floating point value specified - /// by its 2nd argument. - /// - /// ^The sqlite3_result_error() and sqlite3_result_error16() functions - /// cause the implemented SQL function to throw an exception. - /// ^SQLite uses the string pointed to by the - /// 2nd parameter of sqlite3_result_error() or sqlite3_result_error16() - /// as the text of an error message. ^SQLite interprets the error - /// message string from sqlite3_result_error() as UTF-8. ^SQLite - /// interprets the string from sqlite3_result_error16() as UTF-16 using - /// the same [byte-order determination rules] as [sqlite3_bind_text16()]. - /// ^If the third parameter to sqlite3_result_error() - /// or sqlite3_result_error16() is negative then SQLite takes as the error - /// message all text up through the first zero character. - /// ^If the third parameter to sqlite3_result_error() or - /// sqlite3_result_error16() is non-negative then SQLite takes that many - /// bytes (not characters) from the 2nd parameter as the error message. - /// ^The sqlite3_result_error() and sqlite3_result_error16() - /// routines make a private copy of the error message text before - /// they return. Hence, the calling function can deallocate or - /// modify the text after they return without harm. - /// ^The sqlite3_result_error_code() function changes the error code - /// returned by SQLite as a result of an error in a function. ^By default, - /// the error code is SQLITE_ERROR. ^A subsequent call to sqlite3_result_error() - /// or sqlite3_result_error16() resets the error code to SQLITE_ERROR. - /// - /// ^The sqlite3_result_error_toobig() interface causes SQLite to throw an - /// error indicating that a string or BLOB is too long to represent. - /// - /// ^The sqlite3_result_error_nomem() interface causes SQLite to throw an - /// error indicating that a memory allocation failed. - /// - /// ^The sqlite3_result_int() interface sets the return value - /// of the application-defined function to be the 32-bit signed integer - /// value given in the 2nd argument. - /// ^The sqlite3_result_int64() interface sets the return value - /// of the application-defined function to be the 64-bit signed integer - /// value given in the 2nd argument. - /// - /// ^The sqlite3_result_null() interface sets the return value - /// of the application-defined function to be NULL. - /// - /// ^The sqlite3_result_text(), sqlite3_result_text16(), - /// sqlite3_result_text16le(), and sqlite3_result_text16be() interfaces - /// set the return value of the application-defined function to be - /// a text string which is represented as UTF-8, UTF-16 native byte order, - /// UTF-16 little endian, or UTF-16 big endian, respectively. - /// ^The sqlite3_result_text64() interface sets the return value of an - /// application-defined function to be a text string in an encoding - /// specified by the fifth (and last) parameter, which must be one - /// of [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE]. - /// ^SQLite takes the text result from the application from - /// the 2nd parameter of the sqlite3_result_text* interfaces. - /// ^If the 3rd parameter to the sqlite3_result_text* interfaces - /// is negative, then SQLite takes result text from the 2nd parameter - /// through the first zero character. - /// ^If the 3rd parameter to the sqlite3_result_text* interfaces - /// is non-negative, then as many bytes (not characters) of the text - /// pointed to by the 2nd parameter are taken as the application-defined - /// function result. If the 3rd parameter is non-negative, then it - /// must be the byte offset into the string where the NUL terminator would - /// appear if the string where NUL terminated. If any NUL characters occur - /// in the string at a byte offset that is less than the value of the 3rd - /// parameter, then the resulting string will contain embedded NULs and the - /// result of expressions operating on strings with embedded NULs is undefined. - /// ^If the 4th parameter to the sqlite3_result_text* interfaces - /// or sqlite3_result_blob is a non-NULL pointer, then SQLite calls that - /// function as the destructor on the text or BLOB result when it has - /// finished using that result. - /// ^If the 4th parameter to the sqlite3_result_text* interfaces or to - /// sqlite3_result_blob is the special constant SQLITE_STATIC, then SQLite - /// assumes that the text or BLOB result is in constant space and does not - /// copy the content of the parameter nor call a destructor on the content - /// when it has finished using that result. - /// ^If the 4th parameter to the sqlite3_result_text* interfaces - /// or sqlite3_result_blob is the special constant SQLITE_TRANSIENT - /// then SQLite makes a copy of the result into space obtained - /// from [sqlite3_malloc()] before it returns. - /// - /// ^For the sqlite3_result_text16(), sqlite3_result_text16le(), and - /// sqlite3_result_text16be() routines, and for sqlite3_result_text64() - /// when the encoding is not UTF8, if the input UTF16 begins with a - /// byte-order mark (BOM, U+FEFF) then the BOM is removed from the - /// string and the rest of the string is interpreted according to the - /// byte-order specified by the BOM. ^The byte-order specified by - /// the BOM at the beginning of the text overrides the byte-order - /// specified by the interface procedure. ^So, for example, if - /// sqlite3_result_text16le() is invoked with text that begins - /// with bytes 0xfe, 0xff (a big-endian byte-order mark) then the - /// first two bytes of input are skipped and the remaining input - /// is interpreted as UTF16BE text. - /// - /// ^For UTF16 input text to the sqlite3_result_text16(), - /// sqlite3_result_text16be(), sqlite3_result_text16le(), and - /// sqlite3_result_text64() routines, if the text contains invalid - /// UTF16 characters, the invalid characters might be converted - /// into the unicode replacement character, U+FFFD. - /// - /// ^The sqlite3_result_value() interface sets the result of - /// the application-defined function to be a copy of the - /// [unprotected sqlite3_value] object specified by the 2nd parameter. ^The - /// sqlite3_result_value() interface makes a copy of the [sqlite3_value] - /// so that the [sqlite3_value] specified in the parameter may change or - /// be deallocated after sqlite3_result_value() returns without harm. - /// ^A [protected sqlite3_value] object may always be used where an - /// [unprotected sqlite3_value] object is required, so either - /// kind of [sqlite3_value] object can be used with this interface. - /// - /// ^The sqlite3_result_pointer(C,P,T,D) interface sets the result to an - /// SQL NULL value, just like [sqlite3_result_null(C)], except that it - /// also associates the host-language pointer P or type T with that - /// NULL value such that the pointer can be retrieved within an - /// [application-defined SQL function] using [sqlite3_value_pointer()]. - /// ^If the D parameter is not NULL, then it is a pointer to a destructor - /// for the P parameter. ^SQLite invokes D with P as its only argument - /// when SQLite is finished with P. The T parameter should be a static - /// string and preferably a string literal. The sqlite3_result_pointer() - /// routine is part of the [pointer passing interface] added for SQLite 3.20.0. - /// - /// If these routines are called from within the different thread - /// than the one containing the application-defined function that received - /// the [sqlite3_context] pointer, the results are undefined. - void sqlite3_result_blob( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer)>> - arg3, - ) { - return _sqlite3_result_blob(arg0, arg1, arg2, arg3); - } - - late final _sqlite3_result_blobPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_result_blob'); - late final _sqlite3_result_blob = _sqlite3_result_blobPtr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - void sqlite3_result_blob64( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer)>> - arg3, - ) { - return _sqlite3_result_blob64(arg0, arg1, arg2, arg3); - } - - late final _sqlite3_result_blob64Ptr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sqlite3_uint64, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_result_blob64'); - late final _sqlite3_result_blob64 = _sqlite3_result_blob64Ptr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - void sqlite3_result_double(ffi.Pointer arg0, double arg1) { - return _sqlite3_result_double(arg0, arg1); - } - - late final _sqlite3_result_doublePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Double) - > - >('sqlite3_result_double'); - late final _sqlite3_result_double = _sqlite3_result_doublePtr - .asFunction, double)>(); - - void sqlite3_result_error( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) { - return _sqlite3_result_error(arg0, arg1, arg2); - } - - late final _sqlite3_result_errorPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_result_error'); - late final _sqlite3_result_error = _sqlite3_result_errorPtr - .asFunction< - void Function(ffi.Pointer, ffi.Pointer, int) - >(); - - void sqlite3_result_error16( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) { - return _sqlite3_result_error16(arg0, arg1, arg2); - } - - late final _sqlite3_result_error16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_result_error16'); - late final _sqlite3_result_error16 = _sqlite3_result_error16Ptr - .asFunction< - void Function(ffi.Pointer, ffi.Pointer, int) - >(); - - void sqlite3_result_error_code(ffi.Pointer arg0, int arg1) { - return _sqlite3_result_error_code(arg0, arg1); - } - - late final _sqlite3_result_error_codePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_result_error_code'); - late final _sqlite3_result_error_code = _sqlite3_result_error_codePtr - .asFunction, int)>(); - - void sqlite3_result_error_nomem(ffi.Pointer arg0) { - return _sqlite3_result_error_nomem(arg0); - } - - late final _sqlite3_result_error_nomemPtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_result_error_nomem'); - late final _sqlite3_result_error_nomem = _sqlite3_result_error_nomemPtr - .asFunction)>(); - - void sqlite3_result_error_toobig(ffi.Pointer arg0) { - return _sqlite3_result_error_toobig(arg0); - } - - late final _sqlite3_result_error_toobigPtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_result_error_toobig'); - late final _sqlite3_result_error_toobig = _sqlite3_result_error_toobigPtr - .asFunction)>(); - - void sqlite3_result_int(ffi.Pointer arg0, int arg1) { - return _sqlite3_result_int(arg0, arg1); - } - - late final _sqlite3_result_intPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_result_int'); - late final _sqlite3_result_int = _sqlite3_result_intPtr - .asFunction, int)>(); - - void sqlite3_result_int64(ffi.Pointer arg0, int arg1) { - return _sqlite3_result_int64(arg0, arg1); - } - - late final _sqlite3_result_int64Ptr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, sqlite3_int64) - > - >('sqlite3_result_int64'); - late final _sqlite3_result_int64 = _sqlite3_result_int64Ptr - .asFunction, int)>(); - - void sqlite3_result_null(ffi.Pointer arg0) { - return _sqlite3_result_null(arg0); - } - - late final _sqlite3_result_nullPtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_result_null'); - late final _sqlite3_result_null = _sqlite3_result_nullPtr - .asFunction)>(); - - void sqlite3_result_pointer( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer)>> - arg3, - ) { - return _sqlite3_result_pointer(arg0, arg1, arg2, arg3); - } - - late final _sqlite3_result_pointerPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_result_pointer'); - late final _sqlite3_result_pointer = _sqlite3_result_pointerPtr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - /// CAPI3REF: Setting The Subtype Of An SQL Function - /// METHOD: sqlite3_context - /// - /// The sqlite3_result_subtype(C,T) function causes the subtype of - /// the result from the [application-defined SQL function] with - /// [sqlite3_context] C to be the value T. Only the lower 8 bits - /// of the subtype T are preserved in current versions of SQLite; - /// higher order bits are discarded. - /// The number of subtype bytes preserved by SQLite might increase - /// in future releases of SQLite. - void sqlite3_result_subtype(ffi.Pointer arg0, int arg1) { - return _sqlite3_result_subtype(arg0, arg1); - } - - late final _sqlite3_result_subtypePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) - > - >('sqlite3_result_subtype'); - late final _sqlite3_result_subtype = _sqlite3_result_subtypePtr - .asFunction, int)>(); - - void sqlite3_result_text( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer)>> - arg3, - ) { - return _sqlite3_result_text(arg0, arg1, arg2, arg3); - } - - late final _sqlite3_result_textPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_result_text'); - late final _sqlite3_result_text = _sqlite3_result_textPtr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - void sqlite3_result_text16( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer)>> - arg3, - ) { - return _sqlite3_result_text16(arg0, arg1, arg2, arg3); - } - - late final _sqlite3_result_text16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_result_text16'); - late final _sqlite3_result_text16 = _sqlite3_result_text16Ptr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - void sqlite3_result_text16be( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer)>> - arg3, - ) { - return _sqlite3_result_text16be(arg0, arg1, arg2, arg3); - } - - late final _sqlite3_result_text16bePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_result_text16be'); - late final _sqlite3_result_text16be = _sqlite3_result_text16bePtr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - void sqlite3_result_text16le( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer)>> - arg3, - ) { - return _sqlite3_result_text16le(arg0, arg1, arg2, arg3); - } - - late final _sqlite3_result_text16lePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_result_text16le'); - late final _sqlite3_result_text16le = _sqlite3_result_text16lePtr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - void sqlite3_result_text64( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ffi.Pointer)>> - arg3, - int encoding, - ) { - return _sqlite3_result_text64(arg0, arg1, arg2, arg3, encoding); - } - - late final _sqlite3_result_text64Ptr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - sqlite3_uint64, - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.UnsignedChar, - ) - > - >('sqlite3_result_text64'); - late final _sqlite3_result_text64 = _sqlite3_result_text64Ptr - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction)> - >, - int, - ) - >(); - - void sqlite3_result_value( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _sqlite3_result_value(arg0, arg1); - } - - late final _sqlite3_result_valuePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_result_value'); - late final _sqlite3_result_value = _sqlite3_result_valuePtr - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >(); - - void sqlite3_result_zeroblob(ffi.Pointer arg0, int n) { - return _sqlite3_result_zeroblob(arg0, n); - } - - late final _sqlite3_result_zeroblobPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_result_zeroblob'); - late final _sqlite3_result_zeroblob = _sqlite3_result_zeroblobPtr - .asFunction, int)>(); - - int sqlite3_result_zeroblob64(ffi.Pointer arg0, int n) { - return _sqlite3_result_zeroblob64(arg0, n); - } - - late final _sqlite3_result_zeroblob64Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, sqlite3_uint64) - > - >('sqlite3_result_zeroblob64'); - late final _sqlite3_result_zeroblob64 = _sqlite3_result_zeroblob64Ptr - .asFunction, int)>(); - - ffi.Pointer sqlite3_rollback_hook( - ffi.Pointer arg0, - ffi.Pointer)>> - arg1, - ffi.Pointer arg2, - ) { - return _sqlite3_rollback_hook(arg0, arg1, arg2); - } - - late final _sqlite3_rollback_hookPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.Pointer, - ) - > - >('sqlite3_rollback_hook'); - late final _sqlite3_rollback_hook = _sqlite3_rollback_hookPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ffi.Pointer, - ) - >(); - - /// Register a geometry callback named zGeom that can be used as part of an - /// R-Tree geometry query as follows: - /// - /// SELECT ... FROM WHERE MATCH $zGeom(... params ...) - int sqlite3_rtree_geometry_callback( - ffi.Pointer db, - ffi.Pointer zGeom, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xGeom, - ffi.Pointer pContext, - ) { - return _sqlite3_rtree_geometry_callback(db, zGeom, xGeom, pContext); - } - - late final _sqlite3_rtree_geometry_callbackPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - > - >('sqlite3_rtree_geometry_callback'); - late final _sqlite3_rtree_geometry_callback = - _sqlite3_rtree_geometry_callbackPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - >(); - - /// Register a 2nd-generation geometry callback named zScore that can be - /// used as part of an R-Tree geometry query as follows: - /// - /// SELECT ... FROM WHERE MATCH $zQueryFunc(... params ...) - int sqlite3_rtree_query_callback( - ffi.Pointer db, - ffi.Pointer zQueryFunc, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer) - > - > - xQueryFunc, - ffi.Pointer pContext, - ffi.Pointer)>> - xDestructor, - ) { - return _sqlite3_rtree_query_callback( - db, - zQueryFunc, - xQueryFunc, - pContext, - xDestructor, - ); - } - - late final _sqlite3_rtree_query_callbackPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer) - > - >, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_rtree_query_callback'); - late final _sqlite3_rtree_query_callback = _sqlite3_rtree_query_callbackPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer) - > - >, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - /// CAPI3REF: Serialize a database - /// - /// The sqlite3_serialize(D,S,P,F) interface returns a pointer to memory - /// that is a serialization of the S database on [database connection] D. - /// If P is not a NULL pointer, then the size of the database in bytes - /// is written into *P. - /// - /// For an ordinary on-disk database file, the serialization is just a - /// copy of the disk file. For an in-memory database or a "TEMP" database, - /// the serialization is the same sequence of bytes which would be written - /// to disk if that database where backed up to disk. - /// - /// The usual case is that sqlite3_serialize() copies the serialization of - /// the database into memory obtained from [sqlite3_malloc64()] and returns - /// a pointer to that memory. The caller is responsible for freeing the - /// returned value to avoid a memory leak. However, if the F argument - /// contains the SQLITE_SERIALIZE_NOCOPY bit, then no memory allocations - /// are made, and the sqlite3_serialize() function will return a pointer - /// to the contiguous memory representation of the database that SQLite - /// is currently using for that database, or NULL if the no such contiguous - /// memory representation of the database exists. A contiguous memory - /// representation of the database will usually only exist if there has - /// been a prior call to [sqlite3_deserialize(D,S,...)] with the same - /// values of D and S. - /// The size of the database is written into *P even if the - /// SQLITE_SERIALIZE_NOCOPY bit is set but no contiguous copy - /// of the database exists. - /// - /// A call to sqlite3_serialize(D,S,P,F) might return NULL even if the - /// SQLITE_SERIALIZE_NOCOPY bit is omitted from argument F if a memory - /// allocation error occurs. - /// - /// This interface is only available if SQLite is compiled with the - /// [SQLITE_ENABLE_DESERIALIZE] option. - ffi.Pointer sqlite3_serialize( - ffi.Pointer db, - ffi.Pointer zSchema, - ffi.Pointer piSize, - int mFlags, - ) { - return _sqlite3_serialize(db, zSchema, piSize, mFlags); - } - - late final _sqlite3_serializePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >('sqlite3_serialize'); - late final _sqlite3_serialize = _sqlite3_serializePtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); - - /// CAPI3REF: Compile-Time Authorization Callbacks - /// METHOD: sqlite3 - /// KEYWORDS: {authorizer callback} - /// - /// ^This routine registers an authorizer callback with a particular - /// [database connection], supplied in the first argument. - /// ^The authorizer callback is invoked as SQL statements are being compiled - /// by [sqlite3_prepare()] or its variants [sqlite3_prepare_v2()], - /// [sqlite3_prepare_v3()], [sqlite3_prepare16()], [sqlite3_prepare16_v2()], - /// and [sqlite3_prepare16_v3()]. ^At various - /// points during the compilation process, as logic is being created - /// to perform various actions, the authorizer callback is invoked to - /// see if those actions are allowed. ^The authorizer callback should - /// return [SQLITE_OK] to allow the action, [SQLITE_IGNORE] to disallow the - /// specific action but allow the SQL statement to continue to be - /// compiled, or [SQLITE_DENY] to cause the entire SQL statement to be - /// rejected with an error. ^If the authorizer callback returns - /// any value other than [SQLITE_IGNORE], [SQLITE_OK], or [SQLITE_DENY] - /// then the [sqlite3_prepare_v2()] or equivalent call that triggered - /// the authorizer will fail with an error message. - /// - /// When the callback returns [SQLITE_OK], that means the operation - /// requested is ok. ^When the callback returns [SQLITE_DENY], the - /// [sqlite3_prepare_v2()] or equivalent call that triggered the - /// authorizer will fail with an error message explaining that - /// access is denied. - /// - /// ^The first parameter to the authorizer callback is a copy of the third - /// parameter to the sqlite3_set_authorizer() interface. ^The second parameter - /// to the callback is an integer [SQLITE_COPY | action code] that specifies - /// the particular action to be authorized. ^The third through sixth parameters - /// to the callback are either NULL pointers or zero-terminated strings - /// that contain additional details about the action to be authorized. - /// Applications must always be prepared to encounter a NULL pointer in any - /// of the third through the sixth parameters of the authorization callback. - /// - /// ^If the action code is [SQLITE_READ] - /// and the callback returns [SQLITE_IGNORE] then the - /// [prepared statement] statement is constructed to substitute - /// a NULL value in place of the table column that would have - /// been read if [SQLITE_OK] had been returned. The [SQLITE_IGNORE] - /// return can be used to deny an untrusted user access to individual - /// columns of a table. - /// ^When a table is referenced by a [SELECT] but no column values are - /// extracted from that table (for example in a query like - /// "SELECT count(*) FROM tab") then the [SQLITE_READ] authorizer callback - /// is invoked once for that table with a column name that is an empty string. - /// ^If the action code is [SQLITE_DELETE] and the callback returns - /// [SQLITE_IGNORE] then the [DELETE] operation proceeds but the - /// [truncate optimization] is disabled and all rows are deleted individually. - /// - /// An authorizer is used when [sqlite3_prepare | preparing] - /// SQL statements from an untrusted source, to ensure that the SQL statements - /// do not try to access data they are not allowed to see, or that they do not - /// try to execute malicious statements that damage the database. For - /// example, an application may allow a user to enter arbitrary - /// SQL queries for evaluation by a database. But the application does - /// not want the user to be able to make arbitrary changes to the - /// database. An authorizer could then be put in place while the - /// user-entered SQL is being [sqlite3_prepare | prepared] that - /// disallows everything except [SELECT] statements. - /// - /// Applications that need to process SQL from untrusted sources - /// might also consider lowering resource limits using [sqlite3_limit()] - /// and limiting database size using the [max_page_count] [PRAGMA] - /// in addition to using an authorizer. - /// - /// ^(Only a single authorizer can be in place on a database connection - /// at a time. Each call to sqlite3_set_authorizer overrides the - /// previous call.)^ ^Disable the authorizer by installing a NULL callback. - /// The authorizer is disabled by default. - /// - /// The authorizer callback must not do anything that will modify - /// the database connection that invoked the authorizer callback. - /// Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their - /// database connections for the meaning of "modify" in this paragraph. - /// - /// ^When [sqlite3_prepare_v2()] is used to prepare a statement, the - /// statement might be re-prepared during [sqlite3_step()] due to a - /// schema change. Hence, the application should ensure that the - /// correct authorizer callback remains in place during the [sqlite3_step()]. - /// - /// ^Note that the authorizer callback is invoked only during - /// [sqlite3_prepare()] or its variants. Authorization is not - /// performed during statement evaluation in [sqlite3_step()], unless - /// as stated in the previous paragraph, sqlite3_step() invokes - /// sqlite3_prepare_v2() to reprepare a statement after a schema change. - int sqlite3_set_authorizer( - ffi.Pointer arg0, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xAuth, - ffi.Pointer pUserData, - ) { - return _sqlite3_set_authorizer(arg0, xAuth, pUserData); - } - - late final _sqlite3_set_authorizerPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - > - >('sqlite3_set_authorizer'); - late final _sqlite3_set_authorizer = _sqlite3_set_authorizerPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - >(); - - void sqlite3_set_auxdata( - ffi.Pointer arg0, - int N, - ffi.Pointer arg2, - ffi.Pointer)>> - arg3, - ) { - return _sqlite3_set_auxdata(arg0, N, arg2, arg3); - } - - late final _sqlite3_set_auxdataPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - >('sqlite3_set_auxdata'); - late final _sqlite3_set_auxdata = _sqlite3_set_auxdataPtr - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - >(); - - /// CAPI3REF: Set the Last Insert Rowid value. - /// METHOD: sqlite3 - /// - /// The sqlite3_set_last_insert_rowid(D, R) method allows the application to - /// set the value returned by calling sqlite3_last_insert_rowid(D) to R - /// without inserting a row into the database. - void sqlite3_set_last_insert_rowid(ffi.Pointer arg0, int arg1) { - return _sqlite3_set_last_insert_rowid(arg0, arg1); - } - - late final _sqlite3_set_last_insert_rowidPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, sqlite3_int64) - > - >('sqlite3_set_last_insert_rowid'); - late final _sqlite3_set_last_insert_rowid = _sqlite3_set_last_insert_rowidPtr - .asFunction, int)>(); - - int sqlite3_shutdown() { - return _sqlite3_shutdown(); - } - - late final _sqlite3_shutdownPtr = - _lookup>('sqlite3_shutdown'); - late final _sqlite3_shutdown = _sqlite3_shutdownPtr - .asFunction(); - - /// CAPI3REF: Suspend Execution For A Short Time - /// - /// The sqlite3_sleep() function causes the current thread to suspend execution - /// for at least a number of milliseconds specified in its parameter. - /// - /// If the operating system does not support sleep requests with - /// millisecond time resolution, then the time will be rounded up to - /// the nearest second. The number of milliseconds of sleep actually - /// requested from the operating system is returned. - /// - /// ^SQLite implements this interface by calling the xSleep() - /// method of the default [sqlite3_vfs] object. If the xSleep() method - /// of the default VFS is not implemented correctly, or not implemented at - /// all, then the behavior of sqlite3_sleep() may deviate from the description - /// in the previous paragraphs. - int sqlite3_sleep(int arg0) { - return _sqlite3_sleep(arg0); - } - - late final _sqlite3_sleepPtr = - _lookup>('sqlite3_sleep'); - late final _sqlite3_sleep = _sqlite3_sleepPtr.asFunction(); - - /// CAPI3REF: Compare the ages of two snapshot handles. - /// METHOD: sqlite3_snapshot - /// - /// The sqlite3_snapshot_cmp(P1, P2) interface is used to compare the ages - /// of two valid snapshot handles. - /// - /// If the two snapshot handles are not associated with the same database - /// file, the result of the comparison is undefined. - /// - /// Additionally, the result of the comparison is only valid if both of the - /// snapshot handles were obtained by calling sqlite3_snapshot_get() since the - /// last time the wal file was deleted. The wal file is deleted when the - /// database is changed back to rollback mode or when the number of database - /// clients drops to zero. If either snapshot handle was obtained before the - /// wal file was last deleted, the value returned by this function - /// is undefined. - /// - /// Otherwise, this API returns a negative value if P1 refers to an older - /// snapshot than P2, zero if the two handles refer to the same database - /// snapshot, and a positive value if P1 is a newer snapshot than P2. - /// - /// This interface is only available if SQLite is compiled with the - /// [SQLITE_ENABLE_SNAPSHOT] option. - int sqlite3_snapshot_cmp( - ffi.Pointer p1, - ffi.Pointer p2, - ) { - return _sqlite3_snapshot_cmp(p1, p2); - } - - late final _sqlite3_snapshot_cmpPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_snapshot_cmp'); - late final _sqlite3_snapshot_cmp = _sqlite3_snapshot_cmpPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Destroy a snapshot - /// DESTRUCTOR: sqlite3_snapshot - /// - /// ^The [sqlite3_snapshot_free(P)] interface destroys [sqlite3_snapshot] P. - /// The application must eventually free every [sqlite3_snapshot] object - /// using this routine to avoid a memory leak. - /// - /// The [sqlite3_snapshot_free()] interface is only available when the - /// [SQLITE_ENABLE_SNAPSHOT] compile-time option is used. - void sqlite3_snapshot_free(ffi.Pointer arg0) { - return _sqlite3_snapshot_free(arg0); - } - - late final _sqlite3_snapshot_freePtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_snapshot_free'); - late final _sqlite3_snapshot_free = _sqlite3_snapshot_freePtr - .asFunction)>(); - - /// CAPI3REF: Record A Database Snapshot - /// CONSTRUCTOR: sqlite3_snapshot - /// - /// ^The [sqlite3_snapshot_get(D,S,P)] interface attempts to make a - /// new [sqlite3_snapshot] object that records the current state of - /// schema S in database connection D. ^On success, the - /// [sqlite3_snapshot_get(D,S,P)] interface writes a pointer to the newly - /// created [sqlite3_snapshot] object into *P and returns SQLITE_OK. - /// If there is not already a read-transaction open on schema S when - /// this function is called, one is opened automatically. - /// - /// The following must be true for this function to succeed. If any of - /// the following statements are false when sqlite3_snapshot_get() is - /// called, SQLITE_ERROR is returned. The final value of *P is undefined - /// in this case. - /// - ///

    - ///
  • The database handle must not be in [autocommit mode]. - /// - ///
  • Schema S of [database connection] D must be a [WAL mode] database. - /// - ///
  • There must not be a write transaction open on schema S of database - /// connection D. - /// - ///
  • One or more transactions must have been written to the current wal - /// file since it was created on disk (by any connection). This means - /// that a snapshot cannot be taken on a wal mode database with no wal - /// file immediately after it is first opened. At least one transaction - /// must be written to it first. - ///
- /// - /// This function may also return SQLITE_NOMEM. If it is called with the - /// database handle in autocommit mode but fails for some other reason, - /// whether or not a read transaction is opened on schema S is undefined. - /// - /// The [sqlite3_snapshot] object returned from a successful call to - /// [sqlite3_snapshot_get()] must be freed using [sqlite3_snapshot_free()] - /// to avoid a memory leak. - /// - /// The [sqlite3_snapshot_get()] interface is only available when the - /// [SQLITE_ENABLE_SNAPSHOT] compile-time option is used. - int sqlite3_snapshot_get( - ffi.Pointer db, - ffi.Pointer zSchema, - ffi.Pointer> ppSnapshot, - ) { - return _sqlite3_snapshot_get(db, zSchema, ppSnapshot); - } - - late final _sqlite3_snapshot_getPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >('sqlite3_snapshot_get'); - late final _sqlite3_snapshot_get = _sqlite3_snapshot_getPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); - - /// CAPI3REF: Start a read transaction on an historical snapshot - /// METHOD: sqlite3_snapshot - /// - /// ^The [sqlite3_snapshot_open(D,S,P)] interface either starts a new read - /// transaction or upgrades an existing one for schema S of - /// [database connection] D such that the read transaction refers to - /// historical [snapshot] P, rather than the most recent change to the - /// database. ^The [sqlite3_snapshot_open()] interface returns SQLITE_OK - /// on success or an appropriate [error code] if it fails. - /// - /// ^In order to succeed, the database connection must not be in - /// [autocommit mode] when [sqlite3_snapshot_open(D,S,P)] is called. If there - /// is already a read transaction open on schema S, then the database handle - /// must have no active statements (SELECT statements that have been passed - /// to sqlite3_step() but not sqlite3_reset() or sqlite3_finalize()). - /// SQLITE_ERROR is returned if either of these conditions is violated, or - /// if schema S does not exist, or if the snapshot object is invalid. - /// - /// ^A call to sqlite3_snapshot_open() will fail to open if the specified - /// snapshot has been overwritten by a [checkpoint]. In this case - /// SQLITE_ERROR_SNAPSHOT is returned. - /// - /// If there is already a read transaction open when this function is - /// invoked, then the same read transaction remains open (on the same - /// database snapshot) if SQLITE_ERROR, SQLITE_BUSY or SQLITE_ERROR_SNAPSHOT - /// is returned. If another error code - for example SQLITE_PROTOCOL or an - /// SQLITE_IOERR error code - is returned, then the final state of the - /// read transaction is undefined. If SQLITE_OK is returned, then the - /// read transaction is now open on database snapshot P. - /// - /// ^(A call to [sqlite3_snapshot_open(D,S,P)] will fail if the - /// database connection D does not know that the database file for - /// schema S is in [WAL mode]. A database connection might not know - /// that the database file is in [WAL mode] if there has been no prior - /// I/O on that database connection, or if the database entered [WAL mode] - /// after the most recent I/O on the database connection.)^ - /// (Hint: Run "[PRAGMA application_id]" against a newly opened - /// database connection in order to make it ready to use snapshots.) - /// - /// The [sqlite3_snapshot_open()] interface is only available when the - /// [SQLITE_ENABLE_SNAPSHOT] compile-time option is used. - int sqlite3_snapshot_open( - ffi.Pointer db, - ffi.Pointer zSchema, - ffi.Pointer pSnapshot, - ) { - return _sqlite3_snapshot_open(db, zSchema, pSnapshot); - } - - late final _sqlite3_snapshot_openPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_snapshot_open'); - late final _sqlite3_snapshot_open = _sqlite3_snapshot_openPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Recover snapshots from a wal file - /// METHOD: sqlite3_snapshot - /// - /// If a [WAL file] remains on disk after all database connections close - /// (either through the use of the [SQLITE_FCNTL_PERSIST_WAL] [file control] - /// or because the last process to have the database opened exited without - /// calling [sqlite3_close()]) and a new connection is subsequently opened - /// on that database and [WAL file], the [sqlite3_snapshot_open()] interface - /// will only be able to open the last transaction added to the WAL file - /// even though the WAL file contains other valid transactions. - /// - /// This function attempts to scan the WAL file associated with database zDb - /// of database handle db and make all valid snapshots available to - /// sqlite3_snapshot_open(). It is an error if there is already a read - /// transaction open on the database, or if the database is not a WAL mode - /// database. - /// - /// SQLITE_OK is returned if successful, or an SQLite error code otherwise. - /// - /// This interface is only available if SQLite is compiled with the - /// [SQLITE_ENABLE_SNAPSHOT] option. - int sqlite3_snapshot_recover( - ffi.Pointer db, - ffi.Pointer zDb, - ) { - return _sqlite3_snapshot_recover(db, zDb); - } - - late final _sqlite3_snapshot_recoverPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >('sqlite3_snapshot_recover'); - late final _sqlite3_snapshot_recover = _sqlite3_snapshot_recoverPtr - .asFunction, ffi.Pointer)>(); - - ffi.Pointer sqlite3_snprintf( - int arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) { - return _sqlite3_snprintf(arg0, arg1, arg2); - } - - late final _sqlite3_snprintfPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_snprintf'); - late final _sqlite3_snprintf = _sqlite3_snprintfPtr - .asFunction< - ffi.Pointer Function( - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Deprecated Soft Heap Limit Interface - /// DEPRECATED - /// - /// This is a deprecated version of the [sqlite3_soft_heap_limit64()] - /// interface. This routine is provided for historical compatibility - /// only. All new applications should use the - /// [sqlite3_soft_heap_limit64()] interface rather than this one. - void sqlite3_soft_heap_limit(int N) { - return _sqlite3_soft_heap_limit(N); - } - - late final _sqlite3_soft_heap_limitPtr = - _lookup>( - 'sqlite3_soft_heap_limit', - ); - late final _sqlite3_soft_heap_limit = _sqlite3_soft_heap_limitPtr - .asFunction(); - - /// CAPI3REF: Impose A Limit On Heap Size - /// - /// These interfaces impose limits on the amount of heap memory that will be - /// by all database connections within a single process. - /// - /// ^The sqlite3_soft_heap_limit64() interface sets and/or queries the - /// soft limit on the amount of heap memory that may be allocated by SQLite. - /// ^SQLite strives to keep heap memory utilization below the soft heap - /// limit by reducing the number of pages held in the page cache - /// as heap memory usages approaches the limit. - /// ^The soft heap limit is "soft" because even though SQLite strives to stay - /// below the limit, it will exceed the limit rather than generate - /// an [SQLITE_NOMEM] error. In other words, the soft heap limit - /// is advisory only. - /// - /// ^The sqlite3_hard_heap_limit64(N) interface sets a hard upper bound of - /// N bytes on the amount of memory that will be allocated. ^The - /// sqlite3_hard_heap_limit64(N) interface is similar to - /// sqlite3_soft_heap_limit64(N) except that memory allocations will fail - /// when the hard heap limit is reached. - /// - /// ^The return value from both sqlite3_soft_heap_limit64() and - /// sqlite3_hard_heap_limit64() is the size of - /// the heap limit prior to the call, or negative in the case of an - /// error. ^If the argument N is negative - /// then no change is made to the heap limit. Hence, the current - /// size of heap limits can be determined by invoking - /// sqlite3_soft_heap_limit64(-1) or sqlite3_hard_heap_limit(-1). - /// - /// ^Setting the heap limits to zero disables the heap limiter mechanism. - /// - /// ^The soft heap limit may not be greater than the hard heap limit. - /// ^If the hard heap limit is enabled and if sqlite3_soft_heap_limit(N) - /// is invoked with a value of N that is greater than the hard heap limit, - /// the the soft heap limit is set to the value of the hard heap limit. - /// ^The soft heap limit is automatically enabled whenever the hard heap - /// limit is enabled. ^When sqlite3_hard_heap_limit64(N) is invoked and - /// the soft heap limit is outside the range of 1..N, then the soft heap - /// limit is set to N. ^Invoking sqlite3_soft_heap_limit64(0) when the - /// hard heap limit is enabled makes the soft heap limit equal to the - /// hard heap limit. - /// - /// The memory allocation limits can also be adjusted using - /// [PRAGMA soft_heap_limit] and [PRAGMA hard_heap_limit]. - /// - /// ^(The heap limits are not enforced in the current implementation - /// if one or more of following conditions are true: - /// - ///
    - ///
  • The limit value is set to zero. - ///
  • Memory accounting is disabled using a combination of the - /// [sqlite3_config]([SQLITE_CONFIG_MEMSTATUS],...) start-time option and - /// the [SQLITE_DEFAULT_MEMSTATUS] compile-time option. - ///
  • An alternative page cache implementation is specified using - /// [sqlite3_config]([SQLITE_CONFIG_PCACHE2],...). - ///
  • The page cache allocates from its own memory pool supplied - /// by [sqlite3_config]([SQLITE_CONFIG_PAGECACHE],...) rather than - /// from the heap. - ///
)^ - /// - /// The circumstances under which SQLite will enforce the heap limits may - /// changes in future releases of SQLite. - int sqlite3_soft_heap_limit64(int N) { - return _sqlite3_soft_heap_limit64(N); - } - - late final _sqlite3_soft_heap_limit64Ptr = - _lookup>( - 'sqlite3_soft_heap_limit64', - ); - late final _sqlite3_soft_heap_limit64 = _sqlite3_soft_heap_limit64Ptr - .asFunction(); - - ffi.Pointer sqlite3_sourceid() { - return _sqlite3_sourceid(); - } - - late final _sqlite3_sourceidPtr = - _lookup Function()>>( - 'sqlite3_sourceid', - ); - late final _sqlite3_sourceid = _sqlite3_sourceidPtr - .asFunction Function()>(); - - /// CAPI3REF: Retrieving Statement SQL - /// METHOD: sqlite3_stmt - /// - /// ^The sqlite3_sql(P) interface returns a pointer to a copy of the UTF-8 - /// SQL text used to create [prepared statement] P if P was - /// created by [sqlite3_prepare_v2()], [sqlite3_prepare_v3()], - /// [sqlite3_prepare16_v2()], or [sqlite3_prepare16_v3()]. - /// ^The sqlite3_expanded_sql(P) interface returns a pointer to a UTF-8 - /// string containing the SQL text of prepared statement P with - /// [bound parameters] expanded. - /// ^The sqlite3_normalized_sql(P) interface returns a pointer to a UTF-8 - /// string containing the normalized SQL text of prepared statement P. The - /// semantics used to normalize a SQL statement are unspecified and subject - /// to change. At a minimum, literal values will be replaced with suitable - /// placeholders. - /// - /// ^(For example, if a prepared statement is created using the SQL - /// text "SELECT $abc,:xyz" and if parameter $abc is bound to integer 2345 - /// and parameter :xyz is unbound, then sqlite3_sql() will return - /// the original string, "SELECT $abc,:xyz" but sqlite3_expanded_sql() - /// will return "SELECT 2345,NULL".)^ - /// - /// ^The sqlite3_expanded_sql() interface returns NULL if insufficient memory - /// is available to hold the result, or if the result would exceed the - /// the maximum string length determined by the [SQLITE_LIMIT_LENGTH]. - /// - /// ^The [SQLITE_TRACE_SIZE_LIMIT] compile-time option limits the size of - /// bound parameter expansions. ^The [SQLITE_OMIT_TRACE] compile-time - /// option causes sqlite3_expanded_sql() to always return NULL. - /// - /// ^The strings returned by sqlite3_sql(P) and sqlite3_normalized_sql(P) - /// are managed by SQLite and are automatically freed when the prepared - /// statement is finalized. - /// ^The string returned by sqlite3_expanded_sql(P), on the other hand, - /// is obtained from [sqlite3_malloc()] and must be free by the application - /// by passing it to [sqlite3_free()]. - ffi.Pointer sqlite3_sql(ffi.Pointer pStmt) { - return _sqlite3_sql(pStmt); - } - - late final _sqlite3_sqlPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_sql'); - late final _sqlite3_sql = _sqlite3_sqlPtr - .asFunction Function(ffi.Pointer)>(); - - /// CAPI3REF: SQLite Runtime Status - /// - /// ^These interfaces are used to retrieve runtime status information - /// about the performance of SQLite, and optionally to reset various - /// highwater marks. ^The first argument is an integer code for - /// the specific parameter to measure. ^(Recognized integer codes - /// are of the form [status parameters | SQLITE_STATUS_...].)^ - /// ^The current value of the parameter is returned into *pCurrent. - /// ^The highest recorded value is returned in *pHighwater. ^If the - /// resetFlag is true, then the highest record value is reset after - /// *pHighwater is written. ^(Some parameters do not record the highest - /// value. For those parameters - /// nothing is written into *pHighwater and the resetFlag is ignored.)^ - /// ^(Other parameters record only the highwater mark and not the current - /// value. For these latter parameters nothing is written into *pCurrent.)^ - /// - /// ^The sqlite3_status() and sqlite3_status64() routines return - /// SQLITE_OK on success and a non-zero [error code] on failure. - /// - /// If either the current value or the highwater mark is too large to - /// be represented by a 32-bit integer, then the values returned by - /// sqlite3_status() are undefined. - /// - /// See also: [sqlite3_db_status()] - int sqlite3_status( - int op, - ffi.Pointer pCurrent, - ffi.Pointer pHighwater, - int resetFlag, - ) { - return _sqlite3_status(op, pCurrent, pHighwater, resetFlag); - } - - late final _sqlite3_statusPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_status'); - late final _sqlite3_status = _sqlite3_statusPtr - .asFunction< - int Function(int, ffi.Pointer, ffi.Pointer, int) - >(); - - int sqlite3_status64( - int op, - ffi.Pointer pCurrent, - ffi.Pointer pHighwater, - int resetFlag, - ) { - return _sqlite3_status64(op, pCurrent, pHighwater, resetFlag); - } - - late final _sqlite3_status64Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_status64'); - late final _sqlite3_status64 = _sqlite3_status64Ptr - .asFunction< - int Function( - int, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); - - /// CAPI3REF: Evaluate An SQL Statement - /// METHOD: sqlite3_stmt - /// - /// After a [prepared statement] has been prepared using any of - /// [sqlite3_prepare_v2()], [sqlite3_prepare_v3()], [sqlite3_prepare16_v2()], - /// or [sqlite3_prepare16_v3()] or one of the legacy - /// interfaces [sqlite3_prepare()] or [sqlite3_prepare16()], this function - /// must be called one or more times to evaluate the statement. - /// - /// The details of the behavior of the sqlite3_step() interface depend - /// on whether the statement was prepared using the newer "vX" interfaces - /// [sqlite3_prepare_v3()], [sqlite3_prepare_v2()], [sqlite3_prepare16_v3()], - /// [sqlite3_prepare16_v2()] or the older legacy - /// interfaces [sqlite3_prepare()] and [sqlite3_prepare16()]. The use of the - /// new "vX" interface is recommended for new applications but the legacy - /// interface will continue to be supported. - /// - /// ^In the legacy interface, the return value will be either [SQLITE_BUSY], - /// [SQLITE_DONE], [SQLITE_ROW], [SQLITE_ERROR], or [SQLITE_MISUSE]. - /// ^With the "v2" interface, any of the other [result codes] or - /// [extended result codes] might be returned as well. - /// - /// ^[SQLITE_BUSY] means that the database engine was unable to acquire the - /// database locks it needs to do its job. ^If the statement is a [COMMIT] - /// or occurs outside of an explicit transaction, then you can retry the - /// statement. If the statement is not a [COMMIT] and occurs within an - /// explicit transaction then you should rollback the transaction before - /// continuing. - /// - /// ^[SQLITE_DONE] means that the statement has finished executing - /// successfully. sqlite3_step() should not be called again on this virtual - /// machine without first calling [sqlite3_reset()] to reset the virtual - /// machine back to its initial state. - /// - /// ^If the SQL statement being executed returns any data, then [SQLITE_ROW] - /// is returned each time a new row of data is ready for processing by the - /// caller. The values may be accessed using the [column access functions]. - /// sqlite3_step() is called again to retrieve the next row of data. - /// - /// ^[SQLITE_ERROR] means that a run-time error (such as a constraint - /// violation) has occurred. sqlite3_step() should not be called again on - /// the VM. More information may be found by calling [sqlite3_errmsg()]. - /// ^With the legacy interface, a more specific error code (for example, - /// [SQLITE_INTERRUPT], [SQLITE_SCHEMA], [SQLITE_CORRUPT], and so forth) - /// can be obtained by calling [sqlite3_reset()] on the - /// [prepared statement]. ^In the "v2" interface, - /// the more specific error code is returned directly by sqlite3_step(). - /// - /// [SQLITE_MISUSE] means that the this routine was called inappropriately. - /// Perhaps it was called on a [prepared statement] that has - /// already been [sqlite3_finalize | finalized] or on one that had - /// previously returned [SQLITE_ERROR] or [SQLITE_DONE]. Or it could - /// be the case that the same database connection is being used by two or - /// more threads at the same moment in time. - /// - /// For all versions of SQLite up to and including 3.6.23.1, a call to - /// [sqlite3_reset()] was required after sqlite3_step() returned anything - /// other than [SQLITE_ROW] before any subsequent invocation of - /// sqlite3_step(). Failure to reset the prepared statement using - /// [sqlite3_reset()] would result in an [SQLITE_MISUSE] return from - /// sqlite3_step(). But after [version 3.6.23.1] ([dateof:3.6.23.1], - /// sqlite3_step() began - /// calling [sqlite3_reset()] automatically in this circumstance rather - /// than returning [SQLITE_MISUSE]. This is not considered a compatibility - /// break because any application that ever receives an SQLITE_MISUSE error - /// is broken by definition. The [SQLITE_OMIT_AUTORESET] compile-time option - /// can be used to restore the legacy behavior. - /// - /// Goofy Interface Alert: In the legacy interface, the sqlite3_step() - /// API always returns a generic error code, [SQLITE_ERROR], following any - /// error other than [SQLITE_BUSY] and [SQLITE_MISUSE]. You must call - /// [sqlite3_reset()] or [sqlite3_finalize()] in order to find one of the - /// specific [error codes] that better describes the error. - /// We admit that this is a goofy design. The problem has been fixed - /// with the "v2" interface. If you prepare all of your SQL statements - /// using [sqlite3_prepare_v3()] or [sqlite3_prepare_v2()] - /// or [sqlite3_prepare16_v2()] or [sqlite3_prepare16_v3()] instead - /// of the legacy [sqlite3_prepare()] and [sqlite3_prepare16()] interfaces, - /// then the more specific [error codes] are returned directly - /// by sqlite3_step(). The use of the "vX" interfaces is recommended. - int sqlite3_step(ffi.Pointer arg0) { - return _sqlite3_step(arg0); - } - - late final _sqlite3_stepPtr = - _lookup)>>( - 'sqlite3_step', - ); - late final _sqlite3_step = _sqlite3_stepPtr - .asFunction)>(); - - /// CAPI3REF: Determine If A Prepared Statement Has Been Reset - /// METHOD: sqlite3_stmt - /// - /// ^The sqlite3_stmt_busy(S) interface returns true (non-zero) if the - /// [prepared statement] S has been stepped at least once using - /// [sqlite3_step(S)] but has neither run to completion (returned - /// [SQLITE_DONE] from [sqlite3_step(S)]) nor - /// been reset using [sqlite3_reset(S)]. ^The sqlite3_stmt_busy(S) - /// interface returns false if S is a NULL pointer. If S is not a - /// NULL pointer and is not a pointer to a valid [prepared statement] - /// object, then the behavior is undefined and probably undesirable. - /// - /// This interface can be used in combination [sqlite3_next_stmt()] - /// to locate all prepared statements associated with a database - /// connection that are in need of being reset. This can be used, - /// for example, in diagnostic routines to search for prepared - /// statements that are holding a transaction open. - int sqlite3_stmt_busy(ffi.Pointer arg0) { - return _sqlite3_stmt_busy(arg0); - } - - late final _sqlite3_stmt_busyPtr = - _lookup)>>( - 'sqlite3_stmt_busy', - ); - late final _sqlite3_stmt_busy = _sqlite3_stmt_busyPtr - .asFunction)>(); - - /// CAPI3REF: Query The EXPLAIN Setting For A Prepared Statement - /// METHOD: sqlite3_stmt - /// - /// ^The sqlite3_stmt_isexplain(S) interface returns 1 if the - /// prepared statement S is an EXPLAIN statement, or 2 if the - /// statement S is an EXPLAIN QUERY PLAN. - /// ^The sqlite3_stmt_isexplain(S) interface returns 0 if S is - /// an ordinary statement or a NULL pointer. - int sqlite3_stmt_isexplain(ffi.Pointer pStmt) { - return _sqlite3_stmt_isexplain(pStmt); - } - - late final _sqlite3_stmt_isexplainPtr = - _lookup)>>( - 'sqlite3_stmt_isexplain', - ); - late final _sqlite3_stmt_isexplain = _sqlite3_stmt_isexplainPtr - .asFunction)>(); - - /// CAPI3REF: Determine If An SQL Statement Writes The Database - /// METHOD: sqlite3_stmt - /// - /// ^The sqlite3_stmt_readonly(X) interface returns true (non-zero) if - /// and only if the [prepared statement] X makes no direct changes to - /// the content of the database file. - /// - /// Note that [application-defined SQL functions] or - /// [virtual tables] might change the database indirectly as a side effect. - /// ^(For example, if an application defines a function "eval()" that - /// calls [sqlite3_exec()], then the following SQL statement would - /// change the database file through side-effects: - /// - ///
-  /// SELECT eval('DELETE FROM t1') FROM t2;
-  /// 
- /// - /// But because the [SELECT] statement does not change the database file - /// directly, sqlite3_stmt_readonly() would still return true.)^ - /// - /// ^Transaction control statements such as [BEGIN], [COMMIT], [ROLLBACK], - /// [SAVEPOINT], and [RELEASE] cause sqlite3_stmt_readonly() to return true, - /// since the statements themselves do not actually modify the database but - /// rather they control the timing of when other statements modify the - /// database. ^The [ATTACH] and [DETACH] statements also cause - /// sqlite3_stmt_readonly() to return true since, while those statements - /// change the configuration of a database connection, they do not make - /// changes to the content of the database files on disk. - /// ^The sqlite3_stmt_readonly() interface returns true for [BEGIN] since - /// [BEGIN] merely sets internal flags, but the [BEGIN|BEGIN IMMEDIATE] and - /// [BEGIN|BEGIN EXCLUSIVE] commands do touch the database and so - /// sqlite3_stmt_readonly() returns false for those commands. - int sqlite3_stmt_readonly(ffi.Pointer pStmt) { - return _sqlite3_stmt_readonly(pStmt); - } - - late final _sqlite3_stmt_readonlyPtr = - _lookup)>>( - 'sqlite3_stmt_readonly', - ); - late final _sqlite3_stmt_readonly = _sqlite3_stmt_readonlyPtr - .asFunction)>(); - - /// CAPI3REF: Prepared Statement Scan Status - /// METHOD: sqlite3_stmt - /// - /// This interface returns information about the predicted and measured - /// performance for pStmt. Advanced applications can use this - /// interface to compare the predicted and the measured performance and - /// issue warnings and/or rerun [ANALYZE] if discrepancies are found. - /// - /// Since this interface is expected to be rarely used, it is only - /// available if SQLite is compiled using the [SQLITE_ENABLE_STMT_SCANSTATUS] - /// compile-time option. - /// - /// The "iScanStatusOp" parameter determines which status information to return. - /// The "iScanStatusOp" must be one of the [scanstatus options] or the behavior - /// of this interface is undefined. - /// ^The requested measurement is written into a variable pointed to by - /// the "pOut" parameter. - /// Parameter "idx" identifies the specific loop to retrieve statistics for. - /// Loops are numbered starting from zero. ^If idx is out of range - less than - /// zero or greater than or equal to the total number of loops used to implement - /// the statement - a non-zero value is returned and the variable that pOut - /// points to is unchanged. - /// - /// ^Statistics might not be available for all loops in all statements. ^In cases - /// where there exist loops with no available statistics, this function behaves - /// as if the loop did not exist - it returns non-zero and leave the variable - /// that pOut points to unchanged. - /// - /// See also: [sqlite3_stmt_scanstatus_reset()] - int sqlite3_stmt_scanstatus( - ffi.Pointer pStmt, - int idx, - int iScanStatusOp, - ffi.Pointer pOut, - ) { - return _sqlite3_stmt_scanstatus(pStmt, idx, iScanStatusOp, pOut); - } - - late final _sqlite3_stmt_scanstatusPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Pointer, - ) - > - >('sqlite3_stmt_scanstatus'); - late final _sqlite3_stmt_scanstatus = _sqlite3_stmt_scanstatusPtr - .asFunction< - int Function(ffi.Pointer, int, int, ffi.Pointer) - >(); - - /// CAPI3REF: Zero Scan-Status Counters - /// METHOD: sqlite3_stmt - /// - /// ^Zero all [sqlite3_stmt_scanstatus()] related event counters. - /// - /// This API is only available if the library is built with pre-processor - /// symbol [SQLITE_ENABLE_STMT_SCANSTATUS] defined. - void sqlite3_stmt_scanstatus_reset(ffi.Pointer arg0) { - return _sqlite3_stmt_scanstatus_reset(arg0); - } - - late final _sqlite3_stmt_scanstatus_resetPtr = - _lookup)>>( - 'sqlite3_stmt_scanstatus_reset', - ); - late final _sqlite3_stmt_scanstatus_reset = _sqlite3_stmt_scanstatus_resetPtr - .asFunction)>(); - - /// CAPI3REF: Prepared Statement Status - /// METHOD: sqlite3_stmt - /// - /// ^(Each prepared statement maintains various - /// [SQLITE_STMTSTATUS counters] that measure the number - /// of times it has performed specific operations.)^ These counters can - /// be used to monitor the performance characteristics of the prepared - /// statements. For example, if the number of table steps greatly exceeds - /// the number of table searches or result rows, that would tend to indicate - /// that the prepared statement is using a full table scan rather than - /// an index. - /// - /// ^(This interface is used to retrieve and reset counter values from - /// a [prepared statement]. The first argument is the prepared statement - /// object to be interrogated. The second argument - /// is an integer code for a specific [SQLITE_STMTSTATUS counter] - /// to be interrogated.)^ - /// ^The current value of the requested counter is returned. - /// ^If the resetFlg is true, then the counter is reset to zero after this - /// interface call returns. - /// - /// See also: [sqlite3_status()] and [sqlite3_db_status()]. - int sqlite3_stmt_status( - ffi.Pointer arg0, - int op, - int resetFlg, - ) { - return _sqlite3_stmt_status(arg0, op, resetFlg); - } - - late final _sqlite3_stmt_statusPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int) - > - >('sqlite3_stmt_status'); - late final _sqlite3_stmt_status = _sqlite3_stmt_statusPtr - .asFunction, int, int)>(); - - void sqlite3_str_append( - ffi.Pointer arg0, - ffi.Pointer zIn, - int N, - ) { - return _sqlite3_str_append(arg0, zIn, N); - } - - late final _sqlite3_str_appendPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_str_append'); - late final _sqlite3_str_append = _sqlite3_str_appendPtr - .asFunction< - void Function(ffi.Pointer, ffi.Pointer, int) - >(); - - void sqlite3_str_appendall( - ffi.Pointer arg0, - ffi.Pointer zIn, - ) { - return _sqlite3_str_appendall(arg0, zIn); - } - - late final _sqlite3_str_appendallPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - >('sqlite3_str_appendall'); - late final _sqlite3_str_appendall = _sqlite3_str_appendallPtr - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >(); - - void sqlite3_str_appendchar(ffi.Pointer arg0, int N, int C) { - return _sqlite3_str_appendchar(arg0, N, C); - } - - late final _sqlite3_str_appendcharPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Char) - > - >('sqlite3_str_appendchar'); - late final _sqlite3_str_appendchar = _sqlite3_str_appendcharPtr - .asFunction, int, int)>(); - - /// CAPI3REF: Add Content To A Dynamic String - /// METHOD: sqlite3_str - /// - /// These interfaces add content to an sqlite3_str object previously obtained - /// from [sqlite3_str_new()]. - /// - /// ^The [sqlite3_str_appendf(X,F,...)] and - /// [sqlite3_str_vappendf(X,F,V)] interfaces uses the [built-in printf] - /// functionality of SQLite to append formatted text onto the end of - /// [sqlite3_str] object X. - /// - /// ^The [sqlite3_str_append(X,S,N)] method appends exactly N bytes from string S - /// onto the end of the [sqlite3_str] object X. N must be non-negative. - /// S must contain at least N non-zero bytes of content. To append a - /// zero-terminated string in its entirety, use the [sqlite3_str_appendall()] - /// method instead. - /// - /// ^The [sqlite3_str_appendall(X,S)] method appends the complete content of - /// zero-terminated string S onto the end of [sqlite3_str] object X. - /// - /// ^The [sqlite3_str_appendchar(X,N,C)] method appends N copies of the - /// single-byte character C onto the end of [sqlite3_str] object X. - /// ^This method can be used, for example, to add whitespace indentation. - /// - /// ^The [sqlite3_str_reset(X)] method resets the string under construction - /// inside [sqlite3_str] object X back to zero bytes in length. - /// - /// These methods do not return a result code. ^If an error occurs, that fact - /// is recorded in the [sqlite3_str] object and can be recovered by a - /// subsequent call to [sqlite3_str_errcode(X)]. - void sqlite3_str_appendf( - ffi.Pointer arg0, - ffi.Pointer zFormat, - ) { - return _sqlite3_str_appendf(arg0, zFormat); - } - - late final _sqlite3_str_appendfPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - >('sqlite3_str_appendf'); - late final _sqlite3_str_appendf = _sqlite3_str_appendfPtr - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >(); - - /// CAPI3REF: Status Of A Dynamic String - /// METHOD: sqlite3_str - /// - /// These interfaces return the current status of an [sqlite3_str] object. - /// - /// ^If any prior errors have occurred while constructing the dynamic string - /// in sqlite3_str X, then the [sqlite3_str_errcode(X)] method will return - /// an appropriate error code. ^The [sqlite3_str_errcode(X)] method returns - /// [SQLITE_NOMEM] following any out-of-memory error, or - /// [SQLITE_TOOBIG] if the size of the dynamic string exceeds - /// [SQLITE_MAX_LENGTH], or [SQLITE_OK] if there have been no errors. - /// - /// ^The [sqlite3_str_length(X)] method returns the current length, in bytes, - /// of the dynamic string under construction in [sqlite3_str] object X. - /// ^The length returned by [sqlite3_str_length(X)] does not include the - /// zero-termination byte. - /// - /// ^The [sqlite3_str_value(X)] method returns a pointer to the current - /// content of the dynamic string under construction in X. The value - /// returned by [sqlite3_str_value(X)] is managed by the sqlite3_str object X - /// and might be freed or altered by any subsequent method on the same - /// [sqlite3_str] object. Applications must not used the pointer returned - /// [sqlite3_str_value(X)] after any subsequent method call on the same - /// object. ^Applications may change the content of the string returned - /// by [sqlite3_str_value(X)] as long as they do not write into any bytes - /// outside the range of 0 to [sqlite3_str_length(X)] and do not read or - /// write any byte after any subsequent sqlite3_str method call. - int sqlite3_str_errcode(ffi.Pointer arg0) { - return _sqlite3_str_errcode(arg0); - } - - late final _sqlite3_str_errcodePtr = - _lookup)>>( - 'sqlite3_str_errcode', - ); - late final _sqlite3_str_errcode = _sqlite3_str_errcodePtr - .asFunction)>(); - - /// CAPI3REF: Finalize A Dynamic String - /// DESTRUCTOR: sqlite3_str - /// - /// ^The [sqlite3_str_finish(X)] interface destroys the sqlite3_str object X - /// and returns a pointer to a memory buffer obtained from [sqlite3_malloc64()] - /// that contains the constructed string. The calling application should - /// pass the returned value to [sqlite3_free()] to avoid a memory leak. - /// ^The [sqlite3_str_finish(X)] interface may return a NULL pointer if any - /// errors were encountered during construction of the string. ^The - /// [sqlite3_str_finish(X)] interface will also return a NULL pointer if the - /// string in [sqlite3_str] object X is zero bytes long. - ffi.Pointer sqlite3_str_finish(ffi.Pointer arg0) { - return _sqlite3_str_finish(arg0); - } - - late final _sqlite3_str_finishPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_str_finish'); - late final _sqlite3_str_finish = _sqlite3_str_finishPtr - .asFunction Function(ffi.Pointer)>(); - - int sqlite3_str_length(ffi.Pointer arg0) { - return _sqlite3_str_length(arg0); - } - - late final _sqlite3_str_lengthPtr = - _lookup)>>( - 'sqlite3_str_length', - ); - late final _sqlite3_str_length = _sqlite3_str_lengthPtr - .asFunction)>(); - - /// CAPI3REF: Create A New Dynamic String Object - /// CONSTRUCTOR: sqlite3_str - /// - /// ^The [sqlite3_str_new(D)] interface allocates and initializes - /// a new [sqlite3_str] object. To avoid memory leaks, the object returned by - /// [sqlite3_str_new()] must be freed by a subsequent call to - /// [sqlite3_str_finish(X)]. - /// - /// ^The [sqlite3_str_new(D)] interface always returns a pointer to a - /// valid [sqlite3_str] object, though in the event of an out-of-memory - /// error the returned object might be a special singleton that will - /// silently reject new text, always return SQLITE_NOMEM from - /// [sqlite3_str_errcode()], always return 0 for - /// [sqlite3_str_length()], and always return NULL from - /// [sqlite3_str_finish(X)]. It is always safe to use the value - /// returned by [sqlite3_str_new(D)] as the sqlite3_str parameter - /// to any of the other [sqlite3_str] methods. - /// - /// The D parameter to [sqlite3_str_new(D)] may be NULL. If the - /// D parameter in [sqlite3_str_new(D)] is not NULL, then the maximum - /// length of the string contained in the [sqlite3_str] object will be - /// the value set for [sqlite3_limit](D,[SQLITE_LIMIT_LENGTH]) instead - /// of [SQLITE_MAX_LENGTH]. - ffi.Pointer sqlite3_str_new(ffi.Pointer arg0) { - return _sqlite3_str_new(arg0); - } - - late final _sqlite3_str_newPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_str_new'); - late final _sqlite3_str_new = _sqlite3_str_newPtr - .asFunction Function(ffi.Pointer)>(); - - void sqlite3_str_reset(ffi.Pointer arg0) { - return _sqlite3_str_reset(arg0); - } - - late final _sqlite3_str_resetPtr = - _lookup)>>( - 'sqlite3_str_reset', - ); - late final _sqlite3_str_reset = _sqlite3_str_resetPtr - .asFunction)>(); - - ffi.Pointer sqlite3_str_value(ffi.Pointer arg0) { - return _sqlite3_str_value(arg0); - } - - late final _sqlite3_str_valuePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_str_value'); - late final _sqlite3_str_value = _sqlite3_str_valuePtr - .asFunction Function(ffi.Pointer)>(); - - /// CAPI3REF: String Globbing - /// - /// ^The [sqlite3_strglob(P,X)] interface returns zero if and only if - /// string X matches the [GLOB] pattern P. - /// ^The definition of [GLOB] pattern matching used in - /// [sqlite3_strglob(P,X)] is the same as for the "X GLOB P" operator in the - /// SQL dialect understood by SQLite. ^The [sqlite3_strglob(P,X)] function - /// is case sensitive. - /// - /// Note that this routine returns zero on a match and non-zero if the strings - /// do not match, the same as [sqlite3_stricmp()] and [sqlite3_strnicmp()]. - /// - /// See also: [sqlite3_strlike()]. - int sqlite3_strglob(ffi.Pointer zGlob, ffi.Pointer zStr) { - return _sqlite3_strglob(zGlob, zStr); - } - - late final _sqlite3_strglobPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >('sqlite3_strglob'); - late final _sqlite3_strglob = _sqlite3_strglobPtr - .asFunction, ffi.Pointer)>(); - - /// CAPI3REF: String Comparison - /// - /// ^The [sqlite3_stricmp()] and [sqlite3_strnicmp()] APIs allow applications - /// and extensions to compare the contents of two buffers containing UTF-8 - /// strings in a case-independent fashion, using the same definition of "case - /// independence" that SQLite uses internally when comparing identifiers. - int sqlite3_stricmp(ffi.Pointer arg0, ffi.Pointer arg1) { - return _sqlite3_stricmp(arg0, arg1); - } - - late final _sqlite3_stricmpPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >('sqlite3_stricmp'); - late final _sqlite3_stricmp = _sqlite3_stricmpPtr - .asFunction, ffi.Pointer)>(); - - /// CAPI3REF: String LIKE Matching - /// - /// ^The [sqlite3_strlike(P,X,E)] interface returns zero if and only if - /// string X matches the [LIKE] pattern P with escape character E. - /// ^The definition of [LIKE] pattern matching used in - /// [sqlite3_strlike(P,X,E)] is the same as for the "X LIKE P ESCAPE E" - /// operator in the SQL dialect understood by SQLite. ^For "X LIKE P" without - /// the ESCAPE clause, set the E parameter of [sqlite3_strlike(P,X,E)] to 0. - /// ^As with the LIKE operator, the [sqlite3_strlike(P,X,E)] function is case - /// insensitive - equivalent upper and lower case ASCII characters match - /// one another. - /// - /// ^The [sqlite3_strlike(P,X,E)] function matches Unicode characters, though - /// only ASCII characters are case folded. - /// - /// Note that this routine returns zero on a match and non-zero if the strings - /// do not match, the same as [sqlite3_stricmp()] and [sqlite3_strnicmp()]. - /// - /// See also: [sqlite3_strglob()]. - int sqlite3_strlike( - ffi.Pointer zGlob, - ffi.Pointer zStr, - int cEsc, - ) { - return _sqlite3_strlike(zGlob, zStr, cEsc); - } - - late final _sqlite3_strlikePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >('sqlite3_strlike'); - late final _sqlite3_strlike = _sqlite3_strlikePtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer, int) - >(); - - int sqlite3_strnicmp( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) { - return _sqlite3_strnicmp(arg0, arg1, arg2); - } - - late final _sqlite3_strnicmpPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_strnicmp'); - late final _sqlite3_strnicmp = _sqlite3_strnicmpPtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer, int) - >(); - - /// CAPI3REF: Low-level system error code - /// - /// ^Attempt to return the underlying operating system error code or error - /// number that caused the most recent I/O error or failure to open a file. - /// The return value is OS-dependent. For example, on unix systems, after - /// [sqlite3_open_v2()] returns [SQLITE_CANTOPEN], this interface could be - /// called to get back the underlying "errno" that caused the problem, such - /// as ENOSPC, EAUTH, EISDIR, and so forth. - int sqlite3_system_errno(ffi.Pointer arg0) { - return _sqlite3_system_errno(arg0); - } - - late final _sqlite3_system_errnoPtr = - _lookup)>>( - 'sqlite3_system_errno', - ); - late final _sqlite3_system_errno = _sqlite3_system_errnoPtr - .asFunction)>(); - - /// CAPI3REF: Extract Metadata About A Column Of A Table - /// METHOD: sqlite3 - /// - /// ^(The sqlite3_table_column_metadata(X,D,T,C,....) routine returns - /// information about column C of table T in database D - /// on [database connection] X.)^ ^The sqlite3_table_column_metadata() - /// interface returns SQLITE_OK and fills in the non-NULL pointers in - /// the final five arguments with appropriate values if the specified - /// column exists. ^The sqlite3_table_column_metadata() interface returns - /// SQLITE_ERROR if the specified column does not exist. - /// ^If the column-name parameter to sqlite3_table_column_metadata() is a - /// NULL pointer, then this routine simply checks for the existence of the - /// table and returns SQLITE_OK if the table exists and SQLITE_ERROR if it - /// does not. If the table name parameter T in a call to - /// sqlite3_table_column_metadata(X,D,T,C,...) is NULL then the result is - /// undefined behavior. - /// - /// ^The column is identified by the second, third and fourth parameters to - /// this function. ^(The second parameter is either the name of the database - /// (i.e. "main", "temp", or an attached database) containing the specified - /// table or NULL.)^ ^If it is NULL, then all attached databases are searched - /// for the table using the same algorithm used by the database engine to - /// resolve unqualified table references. - /// - /// ^The third and fourth parameters to this function are the table and column - /// name of the desired column, respectively. - /// - /// ^Metadata is returned by writing to the memory locations passed as the 5th - /// and subsequent parameters to this function. ^Any of these arguments may be - /// NULL, in which case the corresponding element of metadata is omitted. - /// - /// ^(
- /// - ///
Parameter Output
Type
Description - /// - ///
5th const char* Data type - ///
6th const char* Name of default collation sequence - ///
7th int True if column has a NOT NULL constraint - ///
8th int True if column is part of the PRIMARY KEY - ///
9th int True if column is [AUTOINCREMENT] - ///
- ///
)^ - /// - /// ^The memory pointed to by the character pointers returned for the - /// declaration type and collation sequence is valid until the next - /// call to any SQLite API function. - /// - /// ^If the specified table is actually a view, an [error code] is returned. - /// - /// ^If the specified column is "rowid", "oid" or "_rowid_" and the table - /// is not a [WITHOUT ROWID] table and an - /// [INTEGER PRIMARY KEY] column has been explicitly declared, then the output - /// parameters are set for the explicitly declared column. ^(If there is no - /// [INTEGER PRIMARY KEY] column, then the outputs - /// for the [rowid] are set as follows: - /// - ///
-  /// data type: "INTEGER"
-  /// collation sequence: "BINARY"
-  /// not null: 0
-  /// primary key: 1
-  /// auto increment: 0
-  /// 
)^ - /// - /// ^This function causes all database schemas to be read from disk and - /// parsed, if that has not already been done, and returns an error if - /// any errors are encountered while loading the schema. - int sqlite3_table_column_metadata( - ffi.Pointer db, - ffi.Pointer zDbName, - ffi.Pointer zTableName, - ffi.Pointer zColumnName, - ffi.Pointer> pzDataType, - ffi.Pointer> pzCollSeq, - ffi.Pointer pNotNull, - ffi.Pointer pPrimaryKey, - ffi.Pointer pAutoinc, - ) { - return _sqlite3_table_column_metadata( - db, - zDbName, - zTableName, - zColumnName, - pzDataType, - pzCollSeq, - pNotNull, - pPrimaryKey, - pAutoinc, - ); - } - - late final _sqlite3_table_column_metadataPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_table_column_metadata'); - late final _sqlite3_table_column_metadata = _sqlite3_table_column_metadataPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Name Of The Folder Holding Temporary Files - /// - /// ^(If this global variable is made to point to a string which is - /// the name of a folder (a.k.a. directory), then all temporary files - /// created by SQLite when using a built-in [sqlite3_vfs | VFS] - /// will be placed in that directory.)^ ^If this variable - /// is a NULL pointer, then SQLite performs a search for an appropriate - /// temporary file directory. - /// - /// Applications are strongly discouraged from using this global variable. - /// It is required to set a temporary folder on Windows Runtime (WinRT). - /// But for all other platforms, it is highly recommended that applications - /// neither read nor write this variable. This global variable is a relic - /// that exists for backwards compatibility of legacy applications and should - /// be avoided in new projects. - /// - /// It is not safe to read or modify this variable in more than one - /// thread at a time. It is not safe to read or modify this variable - /// if a [database connection] is being used at the same time in a separate - /// thread. - /// It is intended that this variable be set once - /// as part of process initialization and before any SQLite interface - /// routines have been called and that this variable remain unchanged - /// thereafter. - /// - /// ^The [temp_store_directory pragma] may modify this variable and cause - /// it to point to memory obtained from [sqlite3_malloc]. ^Furthermore, - /// the [temp_store_directory pragma] always assumes that any string - /// that this variable points to is held in memory obtained from - /// [sqlite3_malloc] and the pragma may attempt to free that memory - /// using [sqlite3_free]. - /// Hence, if this variable is modified directly, either it should be - /// made NULL or made to point to memory obtained from [sqlite3_malloc] - /// or else the use of the [temp_store_directory pragma] should be avoided. - /// Except when requested by the [temp_store_directory pragma], SQLite - /// does not free the memory that sqlite3_temp_directory points to. If - /// the application wants that memory to be freed, it must do - /// so itself, taking care to only do so after all [database connection] - /// objects have been destroyed. - /// - /// Note to Windows Runtime users: The temporary directory must be set - /// prior to calling [sqlite3_open] or [sqlite3_open_v2]. Otherwise, various - /// features that require the use of temporary files may fail. Here is an - /// example of how to do this using C++ with the Windows Runtime: - /// - ///
-  /// LPCWSTR zPath = Windows::Storage::ApplicationData::Current->
-  ///       TemporaryFolder->Path->Data();
-  /// char zPathBuf[MAX_PATH + 1];
-  /// memset(zPathBuf, 0, sizeof(zPathBuf));
-  /// WideCharToMultiByte(CP_UTF8, 0, zPath, -1, zPathBuf, sizeof(zPathBuf),
-  ///       NULL, NULL);
-  /// sqlite3_temp_directory = sqlite3_mprintf("%s", zPathBuf);
-  /// 
- late final ffi.Pointer> _sqlite3_temp_directory = - _lookup>('sqlite3_temp_directory'); - - ffi.Pointer get sqlite3_temp_directory => - _sqlite3_temp_directory.value; - - set sqlite3_temp_directory(ffi.Pointer value) => - _sqlite3_temp_directory.value = value; - - /// CAPI3REF: Testing Interface - /// - /// ^The sqlite3_test_control() interface is used to read out internal - /// state of SQLite and to inject faults into SQLite for testing - /// purposes. ^The first parameter is an operation code that determines - /// the number, meaning, and operation of all subsequent parameters. - /// - /// This interface is not for use by applications. It exists solely - /// for verifying the correct operation of the SQLite library. Depending - /// on how the SQLite library is compiled, this interface might not exist. - /// - /// The details of the operation codes, their meanings, the parameters - /// they take, and what they do are all subject to change without notice. - /// Unlike most of the SQLite API, this function is not guaranteed to - /// operate consistently from one release to the next. - int sqlite3_test_control(int op) { - return _sqlite3_test_control(op); - } - - late final _sqlite3_test_controlPtr = - _lookup>( - 'sqlite3_test_control', - ); - late final _sqlite3_test_control = _sqlite3_test_controlPtr - .asFunction(); - - void sqlite3_thread_cleanup() { - return _sqlite3_thread_cleanup(); - } - - late final _sqlite3_thread_cleanupPtr = - _lookup>( - 'sqlite3_thread_cleanup', - ); - late final _sqlite3_thread_cleanup = _sqlite3_thread_cleanupPtr - .asFunction(); - - /// CAPI3REF: Test To See If The Library Is Threadsafe - /// - /// ^The sqlite3_threadsafe() function returns zero if and only if - /// SQLite was compiled with mutexing code omitted due to the - /// [SQLITE_THREADSAFE] compile-time option being set to 0. - /// - /// SQLite can be compiled with or without mutexes. When - /// the [SQLITE_THREADSAFE] C preprocessor macro is 1 or 2, mutexes - /// are enabled and SQLite is threadsafe. When the - /// [SQLITE_THREADSAFE] macro is 0, - /// the mutexes are omitted. Without the mutexes, it is not safe - /// to use SQLite concurrently from more than one thread. - /// - /// Enabling mutexes incurs a measurable performance penalty. - /// So if speed is of utmost importance, it makes sense to disable - /// the mutexes. But for maximum safety, mutexes should be enabled. - /// ^The default behavior is for mutexes to be enabled. - /// - /// This interface can be used by an application to make sure that the - /// version of SQLite that it is linking against was compiled with - /// the desired setting of the [SQLITE_THREADSAFE] macro. - /// - /// This interface only reports on the compile-time mutex setting - /// of the [SQLITE_THREADSAFE] flag. If SQLite is compiled with - /// SQLITE_THREADSAFE=1 or =2 then mutexes are enabled by default but - /// can be fully or partially disabled using a call to [sqlite3_config()] - /// with the verbs [SQLITE_CONFIG_SINGLETHREAD], [SQLITE_CONFIG_MULTITHREAD], - /// or [SQLITE_CONFIG_SERIALIZED]. ^(The return value of the - /// sqlite3_threadsafe() function shows only the compile-time setting of - /// thread safety, not any run-time changes to that setting made by - /// sqlite3_config(). In other words, the return value from sqlite3_threadsafe() - /// is unchanged by calls to sqlite3_config().)^ - /// - /// See the [threading mode] documentation for additional information. - int sqlite3_threadsafe() { - return _sqlite3_threadsafe(); - } - - late final _sqlite3_threadsafePtr = - _lookup>('sqlite3_threadsafe'); - late final _sqlite3_threadsafe = _sqlite3_threadsafePtr - .asFunction(); - - /// CAPI3REF: Total Number Of Rows Modified - /// METHOD: sqlite3 - /// - /// ^This function returns the total number of rows inserted, modified or - /// deleted by all [INSERT], [UPDATE] or [DELETE] statements completed - /// since the database connection was opened, including those executed as - /// part of trigger programs. ^Executing any other type of SQL statement - /// does not affect the value returned by sqlite3_total_changes(). - /// - /// ^Changes made as part of [foreign key actions] are included in the - /// count, but those made as part of REPLACE constraint resolution are - /// not. ^Changes to a view that are intercepted by INSTEAD OF triggers - /// are not counted. - /// - /// The [sqlite3_total_changes(D)] interface only reports the number - /// of rows that changed due to SQL statement run against database - /// connection D. Any changes by other database connections are ignored. - /// To detect changes against a database file from other database - /// connections use the [PRAGMA data_version] command or the - /// [SQLITE_FCNTL_DATA_VERSION] [file control]. - /// - /// If a separate thread makes changes on the same database connection - /// while [sqlite3_total_changes()] is running then the value - /// returned is unpredictable and not meaningful. - /// - /// See also: - ///
    - ///
  • the [sqlite3_changes()] interface - ///
  • the [count_changes pragma] - ///
  • the [changes() SQL function] - ///
  • the [data_version pragma] - ///
  • the [SQLITE_FCNTL_DATA_VERSION] [file control] - ///
- int sqlite3_total_changes(ffi.Pointer arg0) { - return _sqlite3_total_changes(arg0); - } - - late final _sqlite3_total_changesPtr = - _lookup)>>( - 'sqlite3_total_changes', - ); - late final _sqlite3_total_changes = _sqlite3_total_changesPtr - .asFunction)>(); - - /// CAPI3REF: Tracing And Profiling Functions - /// METHOD: sqlite3 - /// - /// These routines are deprecated. Use the [sqlite3_trace_v2()] interface - /// instead of the routines described here. - /// - /// These routines register callback functions that can be used for - /// tracing and profiling the execution of SQL statements. - /// - /// ^The callback function registered by sqlite3_trace() is invoked at - /// various times when an SQL statement is being run by [sqlite3_step()]. - /// ^The sqlite3_trace() callback is invoked with a UTF-8 rendering of the - /// SQL statement text as the statement first begins executing. - /// ^(Additional sqlite3_trace() callbacks might occur - /// as each triggered subprogram is entered. The callbacks for triggers - /// contain a UTF-8 SQL comment that identifies the trigger.)^ - /// - /// The [SQLITE_TRACE_SIZE_LIMIT] compile-time option can be used to limit - /// the length of [bound parameter] expansion in the output of sqlite3_trace(). - /// - /// ^The callback function registered by sqlite3_profile() is invoked - /// as each SQL statement finishes. ^The profile callback contains - /// the original statement text and an estimate of wall-clock time - /// of how long that statement took to run. ^The profile callback - /// time is in units of nanoseconds, however the current implementation - /// is only capable of millisecond resolution so the six least significant - /// digits in the time are meaningless. Future versions of SQLite - /// might provide greater resolution on the profiler callback. Invoking - /// either [sqlite3_trace()] or [sqlite3_trace_v2()] will cancel the - /// profile callback. - ffi.Pointer sqlite3_trace( - ffi.Pointer arg0, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - xTrace, - ffi.Pointer arg2, - ) { - return _sqlite3_trace(arg0, xTrace, arg2); - } - - late final _sqlite3_tracePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - >, - ffi.Pointer, - ) - > - >('sqlite3_trace'); - late final _sqlite3_trace = _sqlite3_tracePtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - >, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: SQL Trace Hook - /// METHOD: sqlite3 - /// - /// ^The sqlite3_trace_v2(D,M,X,P) interface registers a trace callback - /// function X against [database connection] D, using property mask M - /// and context pointer P. ^If the X callback is - /// NULL or if the M mask is zero, then tracing is disabled. The - /// M argument should be the bitwise OR-ed combination of - /// zero or more [SQLITE_TRACE] constants. - /// - /// ^Each call to either sqlite3_trace() or sqlite3_trace_v2() overrides - /// (cancels) any prior calls to sqlite3_trace() or sqlite3_trace_v2(). - /// - /// ^The X callback is invoked whenever any of the events identified by - /// mask M occur. ^The integer return value from the callback is currently - /// ignored, though this may change in future releases. Callback - /// implementations should return zero to ensure future compatibility. - /// - /// ^A trace callback is invoked with four arguments: callback(T,C,P,X). - /// ^The T argument is one of the [SQLITE_TRACE] - /// constants to indicate why the callback was invoked. - /// ^The C argument is a copy of the context pointer. - /// The P and X arguments are pointers whose meanings depend on T. - /// - /// The sqlite3_trace_v2() interface is intended to replace the legacy - /// interfaces [sqlite3_trace()] and [sqlite3_profile()], both of which - /// are deprecated. - int sqlite3_trace_v2( - ffi.Pointer arg0, - int uMask, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xCallback, - ffi.Pointer pCtx, - ) { - return _sqlite3_trace_v2(arg0, uMask, xCallback, pCtx); - } - - late final _sqlite3_trace_v2Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - > - >('sqlite3_trace_v2'); - late final _sqlite3_trace_v2 = _sqlite3_trace_v2Ptr - .asFunction< - int Function( - ffi.Pointer, - int, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - >(); - - int sqlite3_transfer_bindings( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _sqlite3_transfer_bindings(arg0, arg1); - } - - late final _sqlite3_transfer_bindingsPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >('sqlite3_transfer_bindings'); - late final _sqlite3_transfer_bindings = _sqlite3_transfer_bindingsPtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); - - /// CAPI3REF: Unlock Notification - /// METHOD: sqlite3 - /// - /// ^When running in shared-cache mode, a database operation may fail with - /// an [SQLITE_LOCKED] error if the required locks on the shared-cache or - /// individual tables within the shared-cache cannot be obtained. See - /// [SQLite Shared-Cache Mode] for a description of shared-cache locking. - /// ^This API may be used to register a callback that SQLite will invoke - /// when the connection currently holding the required lock relinquishes it. - /// ^This API is only available if the library was compiled with the - /// [SQLITE_ENABLE_UNLOCK_NOTIFY] C-preprocessor symbol defined. - /// - /// See Also: [Using the SQLite Unlock Notification Feature]. - /// - /// ^Shared-cache locks are released when a database connection concludes - /// its current transaction, either by committing it or rolling it back. - /// - /// ^When a connection (known as the blocked connection) fails to obtain a - /// shared-cache lock and SQLITE_LOCKED is returned to the caller, the - /// identity of the database connection (the blocking connection) that - /// has locked the required resource is stored internally. ^After an - /// application receives an SQLITE_LOCKED error, it may call the - /// sqlite3_unlock_notify() method with the blocked connection handle as - /// the first argument to register for a callback that will be invoked - /// when the blocking connections current transaction is concluded. ^The - /// callback is invoked from within the [sqlite3_step] or [sqlite3_close] - /// call that concludes the blocking connection's transaction. - /// - /// ^(If sqlite3_unlock_notify() is called in a multi-threaded application, - /// there is a chance that the blocking connection will have already - /// concluded its transaction by the time sqlite3_unlock_notify() is invoked. - /// If this happens, then the specified callback is invoked immediately, - /// from within the call to sqlite3_unlock_notify().)^ - /// - /// ^If the blocked connection is attempting to obtain a write-lock on a - /// shared-cache table, and more than one other connection currently holds - /// a read-lock on the same table, then SQLite arbitrarily selects one of - /// the other connections to use as the blocking connection. - /// - /// ^(There may be at most one unlock-notify callback registered by a - /// blocked connection. If sqlite3_unlock_notify() is called when the - /// blocked connection already has a registered unlock-notify callback, - /// then the new callback replaces the old.)^ ^If sqlite3_unlock_notify() is - /// called with a NULL pointer as its second argument, then any existing - /// unlock-notify callback is canceled. ^The blocked connections - /// unlock-notify callback may also be canceled by closing the blocked - /// connection using [sqlite3_close()]. - /// - /// The unlock-notify callback is not reentrant. If an application invokes - /// any sqlite3_xxx API functions from within an unlock-notify callback, a - /// crash or deadlock may be the result. - /// - /// ^Unless deadlock is detected (see below), sqlite3_unlock_notify() always - /// returns SQLITE_OK. - /// - /// Callback Invocation Details - /// - /// When an unlock-notify callback is registered, the application provides a - /// single void* pointer that is passed to the callback when it is invoked. - /// However, the signature of the callback function allows SQLite to pass - /// it an array of void* context pointers. The first argument passed to - /// an unlock-notify callback is a pointer to an array of void* pointers, - /// and the second is the number of entries in the array. - /// - /// When a blocking connection's transaction is concluded, there may be - /// more than one blocked connection that has registered for an unlock-notify - /// callback. ^If two or more such blocked connections have specified the - /// same callback function, then instead of invoking the callback function - /// multiple times, it is invoked once with the set of void* context pointers - /// specified by the blocked connections bundled together into an array. - /// This gives the application an opportunity to prioritize any actions - /// related to the set of unblocked database connections. - /// - /// Deadlock Detection - /// - /// Assuming that after registering for an unlock-notify callback a - /// database waits for the callback to be issued before taking any further - /// action (a reasonable assumption), then using this API may cause the - /// application to deadlock. For example, if connection X is waiting for - /// connection Y's transaction to be concluded, and similarly connection - /// Y is waiting on connection X's transaction, then neither connection - /// will proceed and the system may remain deadlocked indefinitely. - /// - /// To avoid this scenario, the sqlite3_unlock_notify() performs deadlock - /// detection. ^If a given call to sqlite3_unlock_notify() would put the - /// system in a deadlocked state, then SQLITE_LOCKED is returned and no - /// unlock-notify callback is registered. The system is said to be in - /// a deadlocked state if connection A has registered for an unlock-notify - /// callback on the conclusion of connection B's transaction, and connection - /// B has itself registered for an unlock-notify callback when connection - /// A's transaction is concluded. ^Indirect deadlock is also detected, so - /// the system is also considered to be deadlocked if connection B has - /// registered for an unlock-notify callback on the conclusion of connection - /// C's transaction, where connection C is waiting on connection A. ^Any - /// number of levels of indirection are allowed. - /// - /// The "DROP TABLE" Exception - /// - /// When a call to [sqlite3_step()] returns SQLITE_LOCKED, it is almost - /// always appropriate to call sqlite3_unlock_notify(). There is however, - /// one exception. When executing a "DROP TABLE" or "DROP INDEX" statement, - /// SQLite checks if there are any currently executing SELECT statements - /// that belong to the same connection. If there are, SQLITE_LOCKED is - /// returned. In this case there is no "blocking connection", so invoking - /// sqlite3_unlock_notify() results in the unlock-notify callback being - /// invoked immediately. If the application then re-attempts the "DROP TABLE" - /// or "DROP INDEX" query, an infinite loop might be the result. - /// - /// One way around this problem is to check the extended error code returned - /// by an sqlite3_step() call. ^(If there is a blocking connection, then the - /// extended error code is set to SQLITE_LOCKED_SHAREDCACHE. Otherwise, in - /// the special "DROP TABLE/INDEX" case, the extended error code is just - /// SQLITE_LOCKED.)^ - int sqlite3_unlock_notify( - ffi.Pointer pBlocked, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer> apArg, - ffi.Int nArg, - ) - > - > - xNotify, - ffi.Pointer pNotifyArg, - ) { - return _sqlite3_unlock_notify(pBlocked, xNotify, pNotifyArg); - } - - late final _sqlite3_unlock_notifyPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer> apArg, - ffi.Int nArg, - ) - > - >, - ffi.Pointer, - ) - > - >('sqlite3_unlock_notify'); - late final _sqlite3_unlock_notify = _sqlite3_unlock_notifyPtr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer> apArg, - ffi.Int nArg, - ) - > - >, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Data Change Notification Callbacks - /// METHOD: sqlite3 - /// - /// ^The sqlite3_update_hook() interface registers a callback function - /// with the [database connection] identified by the first argument - /// to be invoked whenever a row is updated, inserted or deleted in - /// a [rowid table]. - /// ^Any callback set by a previous call to this function - /// for the same database connection is overridden. - /// - /// ^The second argument is a pointer to the function to invoke when a - /// row is updated, inserted or deleted in a rowid table. - /// ^The first argument to the callback is a copy of the third argument - /// to sqlite3_update_hook(). - /// ^The second callback argument is one of [SQLITE_INSERT], [SQLITE_DELETE], - /// or [SQLITE_UPDATE], depending on the operation that caused the callback - /// to be invoked. - /// ^The third and fourth arguments to the callback contain pointers to the - /// database and table name containing the affected row. - /// ^The final callback parameter is the [rowid] of the row. - /// ^In the case of an update, this is the [rowid] after the update takes place. - /// - /// ^(The update hook is not invoked when internal system tables are - /// modified (i.e. sqlite_master and sqlite_sequence).)^ - /// ^The update hook is not invoked when [WITHOUT ROWID] tables are modified. - /// - /// ^In the current implementation, the update hook - /// is not invoked when conflicting rows are deleted because of an - /// [ON CONFLICT | ON CONFLICT REPLACE] clause. ^Nor is the update hook - /// invoked when rows are deleted using the [truncate optimization]. - /// The exceptions defined in this paragraph might change in a future - /// release of SQLite. - /// - /// The update hook implementation must not do anything that will modify - /// the database connection that invoked the update hook. Any actions - /// to modify the database connection must be deferred until after the - /// completion of the [sqlite3_step()] call that triggered the update hook. - /// Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their - /// database connections for the meaning of "modify" in this paragraph. - /// - /// ^The sqlite3_update_hook(D,C,P) function - /// returns the P argument from the previous call - /// on the same [database connection] D, or NULL for - /// the first call on D. - /// - /// See also the [sqlite3_commit_hook()], [sqlite3_rollback_hook()], - /// and [sqlite3_preupdate_hook()] interfaces. - ffi.Pointer sqlite3_update_hook( - ffi.Pointer arg0, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - sqlite3_int64, - ) - > - > - arg1, - ffi.Pointer arg2, - ) { - return _sqlite3_update_hook(arg0, arg1, arg2); - } - - late final _sqlite3_update_hookPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - sqlite3_int64, - ) - > - >, - ffi.Pointer, - ) - > - >('sqlite3_update_hook'); - late final _sqlite3_update_hook = _sqlite3_update_hookPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - sqlite3_int64, - ) - > - >, - ffi.Pointer, - ) - >(); - - int sqlite3_uri_boolean( - ffi.Pointer zFile, - ffi.Pointer zParam, - int bDefault, - ) { - return _sqlite3_uri_boolean(zFile, zParam, bDefault); - } - - late final _sqlite3_uri_booleanPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_uri_boolean'); - late final _sqlite3_uri_boolean = _sqlite3_uri_booleanPtr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer, int) - >(); - - int sqlite3_uri_int64( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) { - return _sqlite3_uri_int64(arg0, arg1, arg2); - } - - late final _sqlite3_uri_int64Ptr = - _lookup< - ffi.NativeFunction< - sqlite3_int64 Function( - ffi.Pointer, - ffi.Pointer, - sqlite3_int64, - ) - > - >('sqlite3_uri_int64'); - late final _sqlite3_uri_int64 = _sqlite3_uri_int64Ptr - .asFunction< - int Function(ffi.Pointer, ffi.Pointer, int) - >(); - - ffi.Pointer sqlite3_uri_key( - ffi.Pointer zFilename, - int N, - ) { - return _sqlite3_uri_key(zFilename, N); - } - - late final _sqlite3_uri_keyPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - >('sqlite3_uri_key'); - late final _sqlite3_uri_key = _sqlite3_uri_keyPtr - .asFunction Function(ffi.Pointer, int)>(); - - /// CAPI3REF: Obtain Values For URI Parameters - /// - /// These are utility routines, useful to [VFS|custom VFS implementations], - /// that check if a database file was a URI that contained a specific query - /// parameter, and if so obtains the value of that query parameter. - /// - /// The first parameter to these interfaces (hereafter referred to - /// as F) must be one of: - ///
    - ///
  • A database filename pointer created by the SQLite core and - /// passed into the xOpen() method of a VFS implemention, or - ///
  • A filename obtained from [sqlite3_db_filename()], or - ///
  • A new filename constructed using [sqlite3_create_filename()]. - ///
- /// If the F parameter is not one of the above, then the behavior is - /// undefined and probably undesirable. Older versions of SQLite were - /// more tolerant of invalid F parameters than newer versions. - /// - /// If F is a suitable filename (as described in the previous paragraph) - /// and if P is the name of the query parameter, then - /// sqlite3_uri_parameter(F,P) returns the value of the P - /// parameter if it exists or a NULL pointer if P does not appear as a - /// query parameter on F. If P is a query parameter of F and it - /// has no explicit value, then sqlite3_uri_parameter(F,P) returns - /// a pointer to an empty string. - /// - /// The sqlite3_uri_boolean(F,P,B) routine assumes that P is a boolean - /// parameter and returns true (1) or false (0) according to the value - /// of P. The sqlite3_uri_boolean(F,P,B) routine returns true (1) if the - /// value of query parameter P is one of "yes", "true", or "on" in any - /// case or if the value begins with a non-zero number. The - /// sqlite3_uri_boolean(F,P,B) routines returns false (0) if the value of - /// query parameter P is one of "no", "false", or "off" in any case or - /// if the value begins with a numeric zero. If P is not a query - /// parameter on F or if the value of P does not match any of the - /// above, then sqlite3_uri_boolean(F,P,B) returns (B!=0). - /// - /// The sqlite3_uri_int64(F,P,D) routine converts the value of P into a - /// 64-bit signed integer and returns that integer, or D if P does not - /// exist. If the value of P is something other than an integer, then - /// zero is returned. - /// - /// The sqlite3_uri_key(F,N) returns a pointer to the name (not - /// the value) of the N-th query parameter for filename F, or a NULL - /// pointer if N is less than zero or greater than the number of query - /// parameters minus 1. The N value is zero-based so N should be 0 to obtain - /// the name of the first query parameter, 1 for the second parameter, and - /// so forth. - /// - /// If F is a NULL pointer, then sqlite3_uri_parameter(F,P) returns NULL and - /// sqlite3_uri_boolean(F,P,B) returns B. If F is not a NULL pointer and - /// is not a database file pathname pointer that the SQLite core passed - /// into the xOpen VFS method, then the behavior of this routine is undefined - /// and probably undesirable. - /// - /// Beginning with SQLite [version 3.31.0] ([dateof:3.31.0]) the input F - /// parameter can also be the name of a rollback journal file or WAL file - /// in addition to the main database file. Prior to version 3.31.0, these - /// routines would only work if F was the name of the main database file. - /// When the F parameter is the name of the rollback journal or WAL file, - /// it has access to all the same query parameters as were found on the - /// main database file. - /// - /// See the [URI filename] documentation for additional information. - ffi.Pointer sqlite3_uri_parameter( - ffi.Pointer zFilename, - ffi.Pointer zParam, - ) { - return _sqlite3_uri_parameter(zFilename, zParam); - } - - late final _sqlite3_uri_parameterPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_uri_parameter'); - late final _sqlite3_uri_parameter = _sqlite3_uri_parameterPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: User Data For Functions - /// METHOD: sqlite3_context - /// - /// ^The sqlite3_user_data() interface returns a copy of - /// the pointer that was the pUserData parameter (the 5th parameter) - /// of the [sqlite3_create_function()] - /// and [sqlite3_create_function16()] routines that originally - /// registered the application defined function. - /// - /// This routine must be called from the same thread in which - /// the application-defined function is running. - ffi.Pointer sqlite3_user_data(ffi.Pointer arg0) { - return _sqlite3_user_data(arg0); - } - - late final _sqlite3_user_dataPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_user_data'); - late final _sqlite3_user_data = _sqlite3_user_dataPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >(); - - /// CAPI3REF: Obtaining SQL Values - /// METHOD: sqlite3_value - /// - /// Summary: - ///
- ///
sqlite3_value_blobBLOB value - ///
sqlite3_value_doubleREAL value - ///
sqlite3_value_int32-bit INTEGER value - ///
sqlite3_value_int6464-bit INTEGER value - ///
sqlite3_value_pointerPointer value - ///
sqlite3_value_textUTF-8 TEXT value - ///
sqlite3_value_text16UTF-16 TEXT value in - /// the native byteorder - ///
sqlite3_value_text16beUTF-16be TEXT value - ///
sqlite3_value_text16leUTF-16le TEXT value - ///
    - ///
sqlite3_value_bytesSize of a BLOB - /// or a UTF-8 TEXT in bytes - ///
sqlite3_value_bytes16   - /// →  Size of UTF-16 - /// TEXT in bytes - ///
sqlite3_value_typeDefault - /// datatype of the value - ///
sqlite3_value_numeric_type   - /// →  Best numeric datatype of the value - ///
sqlite3_value_nochange   - /// →  True if the column is unchanged in an UPDATE - /// against a virtual table. - ///
sqlite3_value_frombind   - /// →  True if value originated from a [bound parameter] - ///
- /// - /// Details: - /// - /// These routines extract type, size, and content information from - /// [protected sqlite3_value] objects. Protected sqlite3_value objects - /// are used to pass parameter information into the functions that - /// implement [application-defined SQL functions] and [virtual tables]. - /// - /// These routines work only with [protected sqlite3_value] objects. - /// Any attempt to use these routines on an [unprotected sqlite3_value] - /// is not threadsafe. - /// - /// ^These routines work just like the corresponding [column access functions] - /// except that these routines take a single [protected sqlite3_value] object - /// pointer instead of a [sqlite3_stmt*] pointer and an integer column number. - /// - /// ^The sqlite3_value_text16() interface extracts a UTF-16 string - /// in the native byte-order of the host machine. ^The - /// sqlite3_value_text16be() and sqlite3_value_text16le() interfaces - /// extract UTF-16 strings as big-endian and little-endian respectively. - /// - /// ^If [sqlite3_value] object V was initialized - /// using [sqlite3_bind_pointer(S,I,P,X,D)] or [sqlite3_result_pointer(C,P,X,D)] - /// and if X and Y are strings that compare equal according to strcmp(X,Y), - /// then sqlite3_value_pointer(V,Y) will return the pointer P. ^Otherwise, - /// sqlite3_value_pointer(V,Y) returns a NULL. The sqlite3_bind_pointer() - /// routine is part of the [pointer passing interface] added for SQLite 3.20.0. - /// - /// ^(The sqlite3_value_type(V) interface returns the - /// [SQLITE_INTEGER | datatype code] for the initial datatype of the - /// [sqlite3_value] object V. The returned value is one of [SQLITE_INTEGER], - /// [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL].)^ - /// Other interfaces might change the datatype for an sqlite3_value object. - /// For example, if the datatype is initially SQLITE_INTEGER and - /// sqlite3_value_text(V) is called to extract a text value for that - /// integer, then subsequent calls to sqlite3_value_type(V) might return - /// SQLITE_TEXT. Whether or not a persistent internal datatype conversion - /// occurs is undefined and may change from one release of SQLite to the next. - /// - /// ^(The sqlite3_value_numeric_type() interface attempts to apply - /// numeric affinity to the value. This means that an attempt is - /// made to convert the value to an integer or floating point. If - /// such a conversion is possible without loss of information (in other - /// words, if the value is a string that looks like a number) - /// then the conversion is performed. Otherwise no conversion occurs. - /// The [SQLITE_INTEGER | datatype] after conversion is returned.)^ - /// - /// ^Within the [xUpdate] method of a [virtual table], the - /// sqlite3_value_nochange(X) interface returns true if and only if - /// the column corresponding to X is unchanged by the UPDATE operation - /// that the xUpdate method call was invoked to implement and if - /// and the prior [xColumn] method call that was invoked to extracted - /// the value for that column returned without setting a result (probably - /// because it queried [sqlite3_vtab_nochange()] and found that the column - /// was unchanging). ^Within an [xUpdate] method, any value for which - /// sqlite3_value_nochange(X) is true will in all other respects appear - /// to be a NULL value. If sqlite3_value_nochange(X) is invoked anywhere other - /// than within an [xUpdate] method call for an UPDATE statement, then - /// the return value is arbitrary and meaningless. - /// - /// ^The sqlite3_value_frombind(X) interface returns non-zero if the - /// value X originated from one of the [sqlite3_bind_int|sqlite3_bind()] - /// interfaces. ^If X comes from an SQL literal value, or a table column, - /// or an expression, then sqlite3_value_frombind(X) returns zero. - /// - /// Please pay particular attention to the fact that the pointer returned - /// from [sqlite3_value_blob()], [sqlite3_value_text()], or - /// [sqlite3_value_text16()] can be invalidated by a subsequent call to - /// [sqlite3_value_bytes()], [sqlite3_value_bytes16()], [sqlite3_value_text()], - /// or [sqlite3_value_text16()]. - /// - /// These routines must be called from the same thread as - /// the SQL function that supplied the [sqlite3_value*] parameters. - /// - /// As long as the input parameter is correct, these routines can only - /// fail if an out-of-memory error occurs during a format conversion. - /// Only the following subset of interfaces are subject to out-of-memory - /// errors: - /// - ///
    - ///
  • sqlite3_value_blob() - ///
  • sqlite3_value_text() - ///
  • sqlite3_value_text16() - ///
  • sqlite3_value_text16le() - ///
  • sqlite3_value_text16be() - ///
  • sqlite3_value_bytes() - ///
  • sqlite3_value_bytes16() - ///
- /// - /// If an out-of-memory error occurs, then the return value from these - /// routines is the same as if the column had contained an SQL NULL value. - /// Valid SQL NULL returns can be distinguished from out-of-memory errors - /// by invoking the [sqlite3_errcode()] immediately after the suspect - /// return value is obtained and before any - /// other SQLite interface is called on the same [database connection]. - ffi.Pointer sqlite3_value_blob(ffi.Pointer arg0) { - return _sqlite3_value_blob(arg0); - } - - late final _sqlite3_value_blobPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_value_blob'); - late final _sqlite3_value_blob = _sqlite3_value_blobPtr - .asFunction Function(ffi.Pointer)>(); - - int sqlite3_value_bytes(ffi.Pointer arg0) { - return _sqlite3_value_bytes(arg0); - } - - late final _sqlite3_value_bytesPtr = - _lookup)>>( - 'sqlite3_value_bytes', - ); - late final _sqlite3_value_bytes = _sqlite3_value_bytesPtr - .asFunction)>(); - - int sqlite3_value_bytes16(ffi.Pointer arg0) { - return _sqlite3_value_bytes16(arg0); - } - - late final _sqlite3_value_bytes16Ptr = - _lookup)>>( - 'sqlite3_value_bytes16', - ); - late final _sqlite3_value_bytes16 = _sqlite3_value_bytes16Ptr - .asFunction)>(); - - double sqlite3_value_double(ffi.Pointer arg0) { - return _sqlite3_value_double(arg0); - } - - late final _sqlite3_value_doublePtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_value_double'); - late final _sqlite3_value_double = _sqlite3_value_doublePtr - .asFunction)>(); - - /// CAPI3REF: Copy And Free SQL Values - /// METHOD: sqlite3_value - /// - /// ^The sqlite3_value_dup(V) interface makes a copy of the [sqlite3_value] - /// object D and returns a pointer to that copy. ^The [sqlite3_value] returned - /// is a [protected sqlite3_value] object even if the input is not. - /// ^The sqlite3_value_dup(V) interface returns NULL if V is NULL or if a - /// memory allocation fails. - /// - /// ^The sqlite3_value_free(V) interface frees an [sqlite3_value] object - /// previously obtained from [sqlite3_value_dup()]. ^If V is a NULL pointer - /// then sqlite3_value_free(V) is a harmless no-op. - ffi.Pointer sqlite3_value_dup( - ffi.Pointer arg0, - ) { - return _sqlite3_value_dup(arg0); - } - - late final _sqlite3_value_dupPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_value_dup'); - late final _sqlite3_value_dup = _sqlite3_value_dupPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >(); - - void sqlite3_value_free(ffi.Pointer arg0) { - return _sqlite3_value_free(arg0); - } - - late final _sqlite3_value_freePtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_value_free'); - late final _sqlite3_value_free = _sqlite3_value_freePtr - .asFunction)>(); - - int sqlite3_value_frombind(ffi.Pointer arg0) { - return _sqlite3_value_frombind(arg0); - } - - late final _sqlite3_value_frombindPtr = - _lookup)>>( - 'sqlite3_value_frombind', - ); - late final _sqlite3_value_frombind = _sqlite3_value_frombindPtr - .asFunction)>(); - - int sqlite3_value_int(ffi.Pointer arg0) { - return _sqlite3_value_int(arg0); - } - - late final _sqlite3_value_intPtr = - _lookup)>>( - 'sqlite3_value_int', - ); - late final _sqlite3_value_int = _sqlite3_value_intPtr - .asFunction)>(); - - int sqlite3_value_int64(ffi.Pointer arg0) { - return _sqlite3_value_int64(arg0); - } - - late final _sqlite3_value_int64Ptr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_value_int64'); - late final _sqlite3_value_int64 = _sqlite3_value_int64Ptr - .asFunction)>(); - - int sqlite3_value_nochange(ffi.Pointer arg0) { - return _sqlite3_value_nochange(arg0); - } - - late final _sqlite3_value_nochangePtr = - _lookup)>>( - 'sqlite3_value_nochange', - ); - late final _sqlite3_value_nochange = _sqlite3_value_nochangePtr - .asFunction)>(); - - int sqlite3_value_numeric_type(ffi.Pointer arg0) { - return _sqlite3_value_numeric_type(arg0); - } - - late final _sqlite3_value_numeric_typePtr = - _lookup)>>( - 'sqlite3_value_numeric_type', - ); - late final _sqlite3_value_numeric_type = _sqlite3_value_numeric_typePtr - .asFunction)>(); - - ffi.Pointer sqlite3_value_pointer( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return _sqlite3_value_pointer(arg0, arg1); - } - - late final _sqlite3_value_pointerPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_value_pointer'); - late final _sqlite3_value_pointer = _sqlite3_value_pointerPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Finding The Subtype Of SQL Values - /// METHOD: sqlite3_value - /// - /// The sqlite3_value_subtype(V) function returns the subtype for - /// an [application-defined SQL function] argument V. The subtype - /// information can be used to pass a limited amount of context from - /// one SQL function to another. Use the [sqlite3_result_subtype()] - /// routine to set the subtype for the return value of an SQL function. - int sqlite3_value_subtype(ffi.Pointer arg0) { - return _sqlite3_value_subtype(arg0); - } - - late final _sqlite3_value_subtypePtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_value_subtype'); - late final _sqlite3_value_subtype = _sqlite3_value_subtypePtr - .asFunction)>(); - - ffi.Pointer sqlite3_value_text( - ffi.Pointer arg0, - ) { - return _sqlite3_value_text(arg0); - } - - late final _sqlite3_value_textPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_value_text'); - late final _sqlite3_value_text = _sqlite3_value_textPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >(); - - ffi.Pointer sqlite3_value_text16(ffi.Pointer arg0) { - return _sqlite3_value_text16(arg0); - } - - late final _sqlite3_value_text16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_value_text16'); - late final _sqlite3_value_text16 = _sqlite3_value_text16Ptr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer sqlite3_value_text16be( - ffi.Pointer arg0, - ) { - return _sqlite3_value_text16be(arg0); - } - - late final _sqlite3_value_text16bePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_value_text16be'); - late final _sqlite3_value_text16be = _sqlite3_value_text16bePtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer sqlite3_value_text16le( - ffi.Pointer arg0, - ) { - return _sqlite3_value_text16le(arg0); - } - - late final _sqlite3_value_text16lePtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_value_text16le'); - late final _sqlite3_value_text16le = _sqlite3_value_text16lePtr - .asFunction Function(ffi.Pointer)>(); - - int sqlite3_value_type(ffi.Pointer arg0) { - return _sqlite3_value_type(arg0); - } - - late final _sqlite3_value_typePtr = - _lookup)>>( - 'sqlite3_value_type', - ); - late final _sqlite3_value_type = _sqlite3_value_typePtr - .asFunction)>(); - - /// CAPI3REF: Run-Time Library Version Numbers - /// KEYWORDS: sqlite3_version sqlite3_sourceid - /// - /// These interfaces provide the same information as the [SQLITE_VERSION], - /// [SQLITE_VERSION_NUMBER], and [SQLITE_SOURCE_ID] C preprocessor macros - /// but are associated with the library instead of the header file. ^(Cautious - /// programmers might include assert() statements in their application to - /// verify that values returned by these interfaces match the macros in - /// the header, and thus ensure that the application is - /// compiled with matching library and header files. - /// - ///
-  /// assert( sqlite3_libversion_number()==SQLITE_VERSION_NUMBER );
-  /// assert( strncmp(sqlite3_sourceid(),SQLITE_SOURCE_ID,80)==0 );
-  /// assert( strcmp(sqlite3_libversion(),SQLITE_VERSION)==0 );
-  /// 
)^ - /// - /// ^The sqlite3_version[] string constant contains the text of [SQLITE_VERSION] - /// macro. ^The sqlite3_libversion() function returns a pointer to the - /// to the sqlite3_version[] string constant. The sqlite3_libversion() - /// function is provided for use in DLLs since DLL users usually do not have - /// direct access to string constants within the DLL. ^The - /// sqlite3_libversion_number() function returns an integer equal to - /// [SQLITE_VERSION_NUMBER]. ^(The sqlite3_sourceid() function returns - /// a pointer to a string constant whose value is the same as the - /// [SQLITE_SOURCE_ID] C preprocessor macro. Except if SQLite is built - /// using an edited copy of [the amalgamation], then the last four characters - /// of the hash might be different from [SQLITE_SOURCE_ID].)^ - /// - /// See also: [sqlite_version()] and [sqlite_source_id()]. - late final ffi.Pointer> _sqlite3_version = - _lookup>('sqlite3_version'); - - ffi.Pointer get sqlite3_version => _sqlite3_version.value; - - set sqlite3_version(ffi.Pointer value) => - _sqlite3_version.value = value; - - /// CAPI3REF: Virtual File System Objects - /// - /// A virtual filesystem (VFS) is an [sqlite3_vfs] object - /// that SQLite uses to interact - /// with the underlying operating system. Most SQLite builds come with a - /// single default VFS that is appropriate for the host computer. - /// New VFSes can be registered and existing VFSes can be unregistered. - /// The following interfaces are provided. - /// - /// ^The sqlite3_vfs_find() interface returns a pointer to a VFS given its name. - /// ^Names are case sensitive. - /// ^Names are zero-terminated UTF-8 strings. - /// ^If there is no match, a NULL pointer is returned. - /// ^If zVfsName is NULL then the default VFS is returned. - /// - /// ^New VFSes are registered with sqlite3_vfs_register(). - /// ^Each new VFS becomes the default VFS if the makeDflt flag is set. - /// ^The same VFS can be registered multiple times without injury. - /// ^To make an existing VFS into the default VFS, register it again - /// with the makeDflt flag set. If two different VFSes with the - /// same name are registered, the behavior is undefined. If a - /// VFS is registered with a name that is NULL or an empty string, - /// then the behavior is undefined. - /// - /// ^Unregister a VFS with the sqlite3_vfs_unregister() interface. - /// ^(If the default VFS is unregistered, another VFS is chosen as - /// the default. The choice for the new VFS is arbitrary.)^ - ffi.Pointer sqlite3_vfs_find(ffi.Pointer zVfsName) { - return _sqlite3_vfs_find(zVfsName); - } - - late final _sqlite3_vfs_findPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - >('sqlite3_vfs_find'); - late final _sqlite3_vfs_find = _sqlite3_vfs_findPtr - .asFunction Function(ffi.Pointer)>(); - - int sqlite3_vfs_register(ffi.Pointer arg0, int makeDflt) { - return _sqlite3_vfs_register(arg0, makeDflt); - } - - late final _sqlite3_vfs_registerPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_vfs_register'); - late final _sqlite3_vfs_register = _sqlite3_vfs_registerPtr - .asFunction, int)>(); - - int sqlite3_vfs_unregister(ffi.Pointer arg0) { - return _sqlite3_vfs_unregister(arg0); - } - - late final _sqlite3_vfs_unregisterPtr = - _lookup)>>( - 'sqlite3_vfs_unregister', - ); - late final _sqlite3_vfs_unregister = _sqlite3_vfs_unregisterPtr - .asFunction)>(); - - /// CAPI3REF: Determine The Collation For a Virtual Table Constraint - /// - /// This function may only be called from within a call to the [xBestIndex] - /// method of a [virtual table]. - /// - /// The first argument must be the sqlite3_index_info object that is the - /// first parameter to the xBestIndex() method. The second argument must be - /// an index into the aConstraint[] array belonging to the sqlite3_index_info - /// structure passed to xBestIndex. This function returns a pointer to a buffer - /// containing the name of the collation sequence for the corresponding - /// constraint. - ffi.Pointer sqlite3_vtab_collation( - ffi.Pointer arg0, - int arg1, - ) { - return _sqlite3_vtab_collation(arg0, arg1); - } - - late final _sqlite3_vtab_collationPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Int, - ) - > - >('sqlite3_vtab_collation'); - late final _sqlite3_vtab_collation = _sqlite3_vtab_collationPtr - .asFunction< - ffi.Pointer Function(ffi.Pointer, int) - >(); - - /// CAPI3REF: Virtual Table Interface Configuration - /// - /// This function may be called by either the [xConnect] or [xCreate] method - /// of a [virtual table] implementation to configure - /// various facets of the virtual table interface. - /// - /// If this interface is invoked outside the context of an xConnect or - /// xCreate virtual table method then the behavior is undefined. - /// - /// In the call sqlite3_vtab_config(D,C,...) the D parameter is the - /// [database connection] in which the virtual table is being created and - /// which is passed in as the first argument to the [xConnect] or [xCreate] - /// method that is invoking sqlite3_vtab_config(). The C parameter is one - /// of the [virtual table configuration options]. The presence and meaning - /// of parameters after C depend on which [virtual table configuration option] - /// is used. - int sqlite3_vtab_config(ffi.Pointer arg0, int op) { - return _sqlite3_vtab_config(arg0, op); - } - - late final _sqlite3_vtab_configPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_vtab_config'); - late final _sqlite3_vtab_config = _sqlite3_vtab_configPtr - .asFunction, int)>(); - - /// CAPI3REF: Determine If Virtual Table Column Access Is For UPDATE - /// - /// If the sqlite3_vtab_nochange(X) routine is called within the [xColumn] - /// method of a [virtual table], then it returns true if and only if the - /// column is being fetched as part of an UPDATE operation during which the - /// column value will not change. Applications might use this to substitute - /// a return value that is less expensive to compute and that the corresponding - /// [xUpdate] method understands as a "no-change" value. - /// - /// If the [xColumn] method calls sqlite3_vtab_nochange() and finds that - /// the column is not changed by the UPDATE statement, then the xColumn - /// method can optionally return without setting a result, without calling - /// any of the [sqlite3_result_int|sqlite3_result_xxxxx() interfaces]. - /// In that case, [sqlite3_value_nochange(X)] will return true for the - /// same column in the [xUpdate] method. - int sqlite3_vtab_nochange(ffi.Pointer arg0) { - return _sqlite3_vtab_nochange(arg0); - } - - late final _sqlite3_vtab_nochangePtr = - _lookup< - ffi.NativeFunction)> - >('sqlite3_vtab_nochange'); - late final _sqlite3_vtab_nochange = _sqlite3_vtab_nochangePtr - .asFunction)>(); - - /// CAPI3REF: Determine The Virtual Table Conflict Policy - /// - /// This function may only be called from within a call to the [xUpdate] method - /// of a [virtual table] implementation for an INSERT or UPDATE operation. ^The - /// value returned is one of [SQLITE_ROLLBACK], [SQLITE_IGNORE], [SQLITE_FAIL], - /// [SQLITE_ABORT], or [SQLITE_REPLACE], according to the [ON CONFLICT] mode - /// of the SQL statement that triggered the call to the [xUpdate] method of the - /// [virtual table]. - int sqlite3_vtab_on_conflict(ffi.Pointer arg0) { - return _sqlite3_vtab_on_conflict(arg0); - } - - late final _sqlite3_vtab_on_conflictPtr = - _lookup)>>( - 'sqlite3_vtab_on_conflict', - ); - late final _sqlite3_vtab_on_conflict = _sqlite3_vtab_on_conflictPtr - .asFunction)>(); - - /// CAPI3REF: Configure an auto-checkpoint - /// METHOD: sqlite3 - /// - /// ^The [sqlite3_wal_autocheckpoint(D,N)] is a wrapper around - /// [sqlite3_wal_hook()] that causes any database on [database connection] D - /// to automatically [checkpoint] - /// after committing a transaction if there are N or - /// more frames in the [write-ahead log] file. ^Passing zero or - /// a negative value as the nFrame parameter disables automatic - /// checkpoints entirely. - /// - /// ^The callback registered by this function replaces any existing callback - /// registered using [sqlite3_wal_hook()]. ^Likewise, registering a callback - /// using [sqlite3_wal_hook()] disables the automatic checkpoint mechanism - /// configured by this function. - /// - /// ^The [wal_autocheckpoint pragma] can be used to invoke this interface - /// from SQL. - /// - /// ^Checkpoints initiated by this mechanism are - /// [sqlite3_wal_checkpoint_v2|PASSIVE]. - /// - /// ^Every new [database connection] defaults to having the auto-checkpoint - /// enabled with a threshold of 1000 or [SQLITE_DEFAULT_WAL_AUTOCHECKPOINT] - /// pages. The use of this interface - /// is only necessary if the default setting is found to be suboptimal - /// for a particular application. - int sqlite3_wal_autocheckpoint(ffi.Pointer db, int N) { - return _sqlite3_wal_autocheckpoint(db, N); - } - - late final _sqlite3_wal_autocheckpointPtr = - _lookup< - ffi.NativeFunction, ffi.Int)> - >('sqlite3_wal_autocheckpoint'); - late final _sqlite3_wal_autocheckpoint = _sqlite3_wal_autocheckpointPtr - .asFunction, int)>(); - - /// CAPI3REF: Checkpoint a database - /// METHOD: sqlite3 - /// - /// ^(The sqlite3_wal_checkpoint(D,X) is equivalent to - /// [sqlite3_wal_checkpoint_v2](D,X,[SQLITE_CHECKPOINT_PASSIVE],0,0).)^ - /// - /// In brief, sqlite3_wal_checkpoint(D,X) causes the content in the - /// [write-ahead log] for database X on [database connection] D to be - /// transferred into the database file and for the write-ahead log to - /// be reset. See the [checkpointing] documentation for addition - /// information. - /// - /// This interface used to be the only way to cause a checkpoint to - /// occur. But then the newer and more powerful [sqlite3_wal_checkpoint_v2()] - /// interface was added. This interface is retained for backwards - /// compatibility and as a convenience for applications that need to manually - /// start a callback but which do not need the full power (and corresponding - /// complication) of [sqlite3_wal_checkpoint_v2()]. - int sqlite3_wal_checkpoint( - ffi.Pointer db, - ffi.Pointer zDb, - ) { - return _sqlite3_wal_checkpoint(db, zDb); - } - - late final _sqlite3_wal_checkpointPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - >('sqlite3_wal_checkpoint'); - late final _sqlite3_wal_checkpoint = _sqlite3_wal_checkpointPtr - .asFunction, ffi.Pointer)>(); - - /// CAPI3REF: Checkpoint a database - /// METHOD: sqlite3 - /// - /// ^(The sqlite3_wal_checkpoint_v2(D,X,M,L,C) interface runs a checkpoint - /// operation on database X of [database connection] D in mode M. Status - /// information is written back into integers pointed to by L and C.)^ - /// ^(The M parameter must be a valid [checkpoint mode]:)^ - /// - ///
- ///
SQLITE_CHECKPOINT_PASSIVE
- /// ^Checkpoint as many frames as possible without waiting for any database - /// readers or writers to finish, then sync the database file if all frames - /// in the log were checkpointed. ^The [busy-handler callback] - /// is never invoked in the SQLITE_CHECKPOINT_PASSIVE mode. - /// ^On the other hand, passive mode might leave the checkpoint unfinished - /// if there are concurrent readers or writers. - /// - ///
SQLITE_CHECKPOINT_FULL
- /// ^This mode blocks (it invokes the - /// [sqlite3_busy_handler|busy-handler callback]) until there is no - /// database writer and all readers are reading from the most recent database - /// snapshot. ^It then checkpoints all frames in the log file and syncs the - /// database file. ^This mode blocks new database writers while it is pending, - /// but new database readers are allowed to continue unimpeded. - /// - ///
SQLITE_CHECKPOINT_RESTART
- /// ^This mode works the same way as SQLITE_CHECKPOINT_FULL with the addition - /// that after checkpointing the log file it blocks (calls the - /// [busy-handler callback]) - /// until all readers are reading from the database file only. ^This ensures - /// that the next writer will restart the log file from the beginning. - /// ^Like SQLITE_CHECKPOINT_FULL, this mode blocks new - /// database writer attempts while it is pending, but does not impede readers. - /// - ///
SQLITE_CHECKPOINT_TRUNCATE
- /// ^This mode works the same way as SQLITE_CHECKPOINT_RESTART with the - /// addition that it also truncates the log file to zero bytes just prior - /// to a successful return. - ///
- /// - /// ^If pnLog is not NULL, then *pnLog is set to the total number of frames in - /// the log file or to -1 if the checkpoint could not run because - /// of an error or because the database is not in [WAL mode]. ^If pnCkpt is not - /// NULL,then *pnCkpt is set to the total number of checkpointed frames in the - /// log file (including any that were already checkpointed before the function - /// was called) or to -1 if the checkpoint could not run due to an error or - /// because the database is not in WAL mode. ^Note that upon successful - /// completion of an SQLITE_CHECKPOINT_TRUNCATE, the log file will have been - /// truncated to zero bytes and so both *pnLog and *pnCkpt will be set to zero. - /// - /// ^All calls obtain an exclusive "checkpoint" lock on the database file. ^If - /// any other process is running a checkpoint operation at the same time, the - /// lock cannot be obtained and SQLITE_BUSY is returned. ^Even if there is a - /// busy-handler configured, it will not be invoked in this case. - /// - /// ^The SQLITE_CHECKPOINT_FULL, RESTART and TRUNCATE modes also obtain the - /// exclusive "writer" lock on the database file. ^If the writer lock cannot be - /// obtained immediately, and a busy-handler is configured, it is invoked and - /// the writer lock retried until either the busy-handler returns 0 or the lock - /// is successfully obtained. ^The busy-handler is also invoked while waiting for - /// database readers as described above. ^If the busy-handler returns 0 before - /// the writer lock is obtained or while waiting for database readers, the - /// checkpoint operation proceeds from that point in the same way as - /// SQLITE_CHECKPOINT_PASSIVE - checkpointing as many frames as possible - /// without blocking any further. ^SQLITE_BUSY is returned in this case. - /// - /// ^If parameter zDb is NULL or points to a zero length string, then the - /// specified operation is attempted on all WAL databases [attached] to - /// [database connection] db. In this case the - /// values written to output parameters *pnLog and *pnCkpt are undefined. ^If - /// an SQLITE_BUSY error is encountered when processing one or more of the - /// attached WAL databases, the operation is still attempted on any remaining - /// attached databases and SQLITE_BUSY is returned at the end. ^If any other - /// error occurs while processing an attached database, processing is abandoned - /// and the error code is returned to the caller immediately. ^If no error - /// (SQLITE_BUSY or otherwise) is encountered while processing the attached - /// databases, SQLITE_OK is returned. - /// - /// ^If database zDb is the name of an attached database that is not in WAL - /// mode, SQLITE_OK is returned and both *pnLog and *pnCkpt set to -1. ^If - /// zDb is not NULL (or a zero length string) and is not the name of any - /// attached database, SQLITE_ERROR is returned to the caller. - /// - /// ^Unless it returns SQLITE_MISUSE, - /// the sqlite3_wal_checkpoint_v2() interface - /// sets the error information that is queried by - /// [sqlite3_errcode()] and [sqlite3_errmsg()]. - /// - /// ^The [PRAGMA wal_checkpoint] command can be used to invoke this interface - /// from SQL. - int sqlite3_wal_checkpoint_v2( - ffi.Pointer db, - ffi.Pointer zDb, - int eMode, - ffi.Pointer pnLog, - ffi.Pointer pnCkpt, - ) { - return _sqlite3_wal_checkpoint_v2(db, zDb, eMode, pnLog, pnCkpt); - } - - late final _sqlite3_wal_checkpoint_v2Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - >('sqlite3_wal_checkpoint_v2'); - late final _sqlite3_wal_checkpoint_v2 = _sqlite3_wal_checkpoint_v2Ptr - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Write-Ahead Log Commit Hook - /// METHOD: sqlite3 - /// - /// ^The [sqlite3_wal_hook()] function is used to register a callback that - /// is invoked each time data is committed to a database in wal mode. - /// - /// ^(The callback is invoked by SQLite after the commit has taken place and - /// the associated write-lock on the database released)^, so the implementation - /// may read, write or [checkpoint] the database as required. - /// - /// ^The first parameter passed to the callback function when it is invoked - /// is a copy of the third parameter passed to sqlite3_wal_hook() when - /// registering the callback. ^The second is a copy of the database handle. - /// ^The third parameter is the name of the database that was written to - - /// either "main" or the name of an [ATTACH]-ed database. ^The fourth parameter - /// is the number of pages currently in the write-ahead log file, - /// including those that were just committed. - /// - /// The callback function should normally return [SQLITE_OK]. ^If an error - /// code is returned, that error will propagate back up through the - /// SQLite code base to cause the statement that provoked the callback - /// to report an error, though the commit will have still occurred. If the - /// callback returns [SQLITE_ROW] or [SQLITE_DONE], or if it returns a value - /// that does not correspond to any valid SQLite error code, the results - /// are undefined. - /// - /// A single database handle may have at most a single write-ahead log callback - /// registered at one time. ^Calling [sqlite3_wal_hook()] replaces any - /// previously registered write-ahead log callback. ^Note that the - /// [sqlite3_wal_autocheckpoint()] interface and the - /// [wal_autocheckpoint pragma] both invoke [sqlite3_wal_hook()] and will - /// overwrite any prior [sqlite3_wal_hook()] settings. - ffi.Pointer sqlite3_wal_hook( - ffi.Pointer arg0, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - > - arg1, - ffi.Pointer arg2, - ) { - return _sqlite3_wal_hook(arg0, arg1, arg2); - } - - late final _sqlite3_wal_hookPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >, - ffi.Pointer, - ) - > - >('sqlite3_wal_hook'); - late final _sqlite3_wal_hook = _sqlite3_wal_hookPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >, - ffi.Pointer, - ) - >(); - - /// CAPI3REF: Win32 Specific Interface - /// - /// These interfaces are available only on Windows. The - /// [sqlite3_win32_set_directory] interface is used to set the value associated - /// with the [sqlite3_temp_directory] or [sqlite3_data_directory] variable, to - /// zValue, depending on the value of the type parameter. The zValue parameter - /// should be NULL to cause the previous value to be freed via [sqlite3_free]; - /// a non-NULL value will be copied into memory obtained from [sqlite3_malloc] - /// prior to being used. The [sqlite3_win32_set_directory] interface returns - /// [SQLITE_OK] to indicate success, [SQLITE_ERROR] if the type is unsupported, - /// or [SQLITE_NOMEM] if memory could not be allocated. The value of the - /// [sqlite3_data_directory] variable is intended to act as a replacement for - /// the current directory on the sub-platforms of Win32 where that concept is - /// not present, e.g. WinRT and UWP. The [sqlite3_win32_set_directory8] and - /// [sqlite3_win32_set_directory16] interfaces behave exactly the same as the - /// sqlite3_win32_set_directory interface except the string parameter must be - /// UTF-8 or UTF-16, respectively. - int sqlite3_win32_set_directory(int type, ffi.Pointer zValue) { - return _sqlite3_win32_set_directory(type, zValue); - } - - late final _sqlite3_win32_set_directoryPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.UnsignedLong, ffi.Pointer) - > - >('sqlite3_win32_set_directory'); - late final _sqlite3_win32_set_directory = _sqlite3_win32_set_directoryPtr - .asFunction)>(); - - int sqlite3_win32_set_directory16(int type, ffi.Pointer zValue) { - return _sqlite3_win32_set_directory16(type, zValue); - } - - late final _sqlite3_win32_set_directory16Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.UnsignedLong, ffi.Pointer) - > - >('sqlite3_win32_set_directory16'); - late final _sqlite3_win32_set_directory16 = _sqlite3_win32_set_directory16Ptr - .asFunction)>(); - - int sqlite3_win32_set_directory8(int type, ffi.Pointer zValue) { - return _sqlite3_win32_set_directory8(type, zValue); - } - - late final _sqlite3_win32_set_directory8Ptr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.UnsignedLong, ffi.Pointer) - > - >('sqlite3_win32_set_directory8'); - late final _sqlite3_win32_set_directory8 = _sqlite3_win32_set_directory8Ptr - .asFunction)>(); -} - -const int FTS5_TOKENIZE_AUX = 8; - -const int FTS5_TOKENIZE_DOCUMENT = 4; - -const int FTS5_TOKENIZE_PREFIX = 2; - -const int FTS5_TOKENIZE_QUERY = 1; - -const int FTS5_TOKEN_COLOCATED = 1; - -const int FULLY_WITHIN = 2; - -final class Fts5Context extends ffi.Opaque {} - -/// EXTENSION API FUNCTIONS -/// -/// xUserData(pFts): -/// Return a copy of the context pointer the extension function was -/// registered with. -/// -/// xColumnTotalSize(pFts, iCol, pnToken): -/// If parameter iCol is less than zero, set output variable *pnToken -/// to the total number of tokens in the FTS5 table. Or, if iCol is -/// non-negative but less than the number of columns in the table, return -/// the total number of tokens in column iCol, considering all rows in -/// the FTS5 table. -/// -/// If parameter iCol is greater than or equal to the number of columns -/// in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g. -/// an OOM condition or IO error), an appropriate SQLite error code is -/// returned. -/// -/// xColumnCount(pFts): -/// Return the number of columns in the table. -/// -/// xColumnSize(pFts, iCol, pnToken): -/// If parameter iCol is less than zero, set output variable *pnToken -/// to the total number of tokens in the current row. Or, if iCol is -/// non-negative but less than the number of columns in the table, set -/// *pnToken to the number of tokens in column iCol of the current row. -/// -/// If parameter iCol is greater than or equal to the number of columns -/// in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g. -/// an OOM condition or IO error), an appropriate SQLite error code is -/// returned. -/// -/// This function may be quite inefficient if used with an FTS5 table -/// created with the "columnsize=0" option. -/// -/// xColumnText: -/// This function attempts to retrieve the text of column iCol of the -/// current document. If successful, (*pz) is set to point to a buffer -/// containing the text in utf-8 encoding, (*pn) is set to the size in bytes -/// (not characters) of the buffer and SQLITE_OK is returned. Otherwise, -/// if an error occurs, an SQLite error code is returned and the final values -/// of (*pz) and (*pn) are undefined. -/// -/// xPhraseCount: -/// Returns the number of phrases in the current query expression. -/// -/// xPhraseSize: -/// Returns the number of tokens in phrase iPhrase of the query. Phrases -/// are numbered starting from zero. -/// -/// xInstCount: -/// Set *pnInst to the total number of occurrences of all phrases within -/// the query within the current row. Return SQLITE_OK if successful, or -/// an error code (i.e. SQLITE_NOMEM) if an error occurs. -/// -/// This API can be quite slow if used with an FTS5 table created with the -/// "detail=none" or "detail=column" option. If the FTS5 table is created -/// with either "detail=none" or "detail=column" and "content=" option -/// (i.e. if it is a contentless table), then this API always returns 0. -/// -/// xInst: -/// Query for the details of phrase match iIdx within the current row. -/// Phrase matches are numbered starting from zero, so the iIdx argument -/// should be greater than or equal to zero and smaller than the value -/// output by xInstCount(). -/// -/// Usually, output parameter *piPhrase is set to the phrase number, *piCol -/// to the column in which it occurs and *piOff the token offset of the -/// first token of the phrase. Returns SQLITE_OK if successful, or an error -/// code (i.e. SQLITE_NOMEM) if an error occurs. -/// -/// This API can be quite slow if used with an FTS5 table created with the -/// "detail=none" or "detail=column" option. -/// -/// xRowid: -/// Returns the rowid of the current row. -/// -/// xTokenize: -/// Tokenize text using the tokenizer belonging to the FTS5 table. -/// -/// xQueryPhrase(pFts5, iPhrase, pUserData, xCallback): -/// This API function is used to query the FTS table for phrase iPhrase -/// of the current query. Specifically, a query equivalent to: -/// -/// ... FROM ftstable WHERE ftstable MATCH $p ORDER BY rowid -/// -/// with $p set to a phrase equivalent to the phrase iPhrase of the -/// current query is executed. Any column filter that applies to -/// phrase iPhrase of the current query is included in $p. For each -/// row visited, the callback function passed as the fourth argument -/// is invoked. The context and API objects passed to the callback -/// function may be used to access the properties of each matched row. -/// Invoking Api.xUserData() returns a copy of the pointer passed as -/// the third argument to pUserData. -/// -/// If the callback function returns any value other than SQLITE_OK, the -/// query is abandoned and the xQueryPhrase function returns immediately. -/// If the returned value is SQLITE_DONE, xQueryPhrase returns SQLITE_OK. -/// Otherwise, the error code is propagated upwards. -/// -/// If the query runs to completion without incident, SQLITE_OK is returned. -/// Or, if some error occurs before the query completes or is aborted by -/// the callback, an SQLite error code is returned. -/// -/// -/// xSetAuxdata(pFts5, pAux, xDelete) -/// -/// Save the pointer passed as the second argument as the extension function's -/// "auxiliary data". The pointer may then be retrieved by the current or any -/// future invocation of the same fts5 extension function made as part of -/// the same MATCH query using the xGetAuxdata() API. -/// -/// Each extension function is allocated a single auxiliary data slot for -/// each FTS query (MATCH expression). If the extension function is invoked -/// more than once for a single FTS query, then all invocations share a -/// single auxiliary data context. -/// -/// If there is already an auxiliary data pointer when this function is -/// invoked, then it is replaced by the new pointer. If an xDelete callback -/// was specified along with the original pointer, it is invoked at this -/// point. -/// -/// The xDelete callback, if one is specified, is also invoked on the -/// auxiliary data pointer after the FTS5 query has finished. -/// -/// If an error (e.g. an OOM condition) occurs within this function, -/// the auxiliary data is set to NULL and an error code returned. If the -/// xDelete parameter was not NULL, it is invoked on the auxiliary data -/// pointer before returning. -/// -/// -/// xGetAuxdata(pFts5, bClear) -/// -/// Returns the current auxiliary data pointer for the fts5 extension -/// function. See the xSetAuxdata() method for details. -/// -/// If the bClear argument is non-zero, then the auxiliary data is cleared -/// (set to NULL) before this function returns. In this case the xDelete, -/// if any, is not invoked. -/// -/// -/// xRowCount(pFts5, pnRow) -/// -/// This function is used to retrieve the total number of rows in the table. -/// In other words, the same value that would be returned by: -/// -/// SELECT count(*) FROM ftstable; -/// -/// xPhraseFirst() -/// This function is used, along with type Fts5PhraseIter and the xPhraseNext -/// method, to iterate through all instances of a single query phrase within -/// the current row. This is the same information as is accessible via the -/// xInstCount/xInst APIs. While the xInstCount/xInst APIs are more convenient -/// to use, this API may be faster under some circumstances. To iterate -/// through instances of phrase iPhrase, use the following code: -/// -/// Fts5PhraseIter iter; -/// int iCol, iOff; -/// for(pApi->xPhraseFirst(pFts, iPhrase, &iter, &iCol, &iOff); -/// iCol>=0; -/// pApi->xPhraseNext(pFts, &iter, &iCol, &iOff) -/// ){ -/// // An instance of phrase iPhrase at offset iOff of column iCol -/// } -/// -/// The Fts5PhraseIter structure is defined above. Applications should not -/// modify this structure directly - it should only be used as shown above -/// with the xPhraseFirst() and xPhraseNext() API methods (and by -/// xPhraseFirstColumn() and xPhraseNextColumn() as illustrated below). -/// -/// This API can be quite slow if used with an FTS5 table created with the -/// "detail=none" or "detail=column" option. If the FTS5 table is created -/// with either "detail=none" or "detail=column" and "content=" option -/// (i.e. if it is a contentless table), then this API always iterates -/// through an empty set (all calls to xPhraseFirst() set iCol to -1). -/// -/// xPhraseNext() -/// See xPhraseFirst above. -/// -/// xPhraseFirstColumn() -/// This function and xPhraseNextColumn() are similar to the xPhraseFirst() -/// and xPhraseNext() APIs described above. The difference is that instead -/// of iterating through all instances of a phrase in the current row, these -/// APIs are used to iterate through the set of columns in the current row -/// that contain one or more instances of a specified phrase. For example: -/// -/// Fts5PhraseIter iter; -/// int iCol; -/// for(pApi->xPhraseFirstColumn(pFts, iPhrase, &iter, &iCol); -/// iCol>=0; -/// pApi->xPhraseNextColumn(pFts, &iter, &iCol) -/// ){ -/// // Column iCol contains at least one instance of phrase iPhrase -/// } -/// -/// This API can be quite slow if used with an FTS5 table created with the -/// "detail=none" option. If the FTS5 table is created with either -/// "detail=none" "content=" option (i.e. if it is a contentless table), -/// then this API always iterates through an empty set (all calls to -/// xPhraseFirstColumn() set iCol to -1). -/// -/// The information accessed using this API and its companion -/// xPhraseFirstColumn() may also be obtained using xPhraseFirst/xPhraseNext -/// (or xInst/xInstCount). The chief advantage of this API is that it is -/// significantly more efficient than those alternatives when used with -/// "detail=column" tables. -/// -/// xPhraseNextColumn() -/// See xPhraseFirstColumn above. -final class Fts5ExtensionApi extends ffi.Struct { - /// Currently always set to 3 - @ffi.Int() - external int iVersion; - - external ffi.Pointer< - ffi.NativeFunction Function(ffi.Pointer)> - > - xUserData; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xColumnCount; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xRowCount; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xColumnTotalSize; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Int, - ) - > - >, - ) - > - > - xTokenize; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xPhraseCount; - - external ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xPhraseSize; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xInstCount; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xInst; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xRowid; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ) - > - > - xColumnText; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) - > - > - xColumnSize; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ) - > - > - xQueryPhrase; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - > - xSetAuxdata; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - > - xGetAuxdata; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseFirst; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseNext; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseFirstColumn; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseNextColumn; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iVersion, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - > - xUserData, - required ffi.Pointer< - ffi.NativeFunction)> - > - xColumnCount, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xRowCount, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xColumnTotalSize, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Int, - ) - > - >, - ) - > - > - xTokenize, - required ffi.Pointer< - ffi.NativeFunction)> - > - xPhraseCount, - required ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xPhraseSize, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xInstCount, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xInst, - required ffi.Pointer< - ffi.NativeFunction)> - > - xRowid, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ) - > - > - xColumnText, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xColumnSize, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ) - > - > - xQueryPhrase, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - > - xSetAuxdata, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - > - xGetAuxdata, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseFirst, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseNext, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseFirstColumn, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseNextColumn, - }) => $allocator() - ..ref.iVersion = iVersion - ..ref.xUserData = xUserData - ..ref.xColumnCount = xColumnCount - ..ref.xRowCount = xRowCount - ..ref.xColumnTotalSize = xColumnTotalSize - ..ref.xTokenize = xTokenize - ..ref.xPhraseCount = xPhraseCount - ..ref.xPhraseSize = xPhraseSize - ..ref.xInstCount = xInstCount - ..ref.xInst = xInst - ..ref.xRowid = xRowid - ..ref.xColumnText = xColumnText - ..ref.xColumnSize = xColumnSize - ..ref.xQueryPhrase = xQueryPhrase - ..ref.xSetAuxdata = xSetAuxdata - ..ref.xGetAuxdata = xGetAuxdata - ..ref.xPhraseFirst = xPhraseFirst - ..ref.xPhraseNext = xPhraseNext - ..ref.xPhraseFirstColumn = xPhraseFirstColumn - ..ref.xPhraseNextColumn = xPhraseNextColumn; -} - -final class Fts5PhraseIter extends ffi.Struct { - external ffi.Pointer a; - - external ffi.Pointer b; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer a, - required ffi.Pointer b, - }) => $allocator() - ..ref.a = a - ..ref.b = b; -} - -final class Fts5Tokenizer extends ffi.Opaque {} - -const int NOT_WITHIN = 0; - -const int PARTLY_WITHIN = 1; - -const int SQLITE3_TEXT = 3; - -const int SQLITE_ABORT = 4; - -const int SQLITE_ABORT_ROLLBACK = 516; - -const int SQLITE_ACCESS_EXISTS = 0; - -const int SQLITE_ACCESS_READ = 2; - -const int SQLITE_ACCESS_READWRITE = 1; - -const int SQLITE_ALTER_TABLE = 26; - -const int SQLITE_ANALYZE = 28; - -const int SQLITE_ANY = 5; - -const int SQLITE_ATTACH = 24; - -const int SQLITE_AUTH = 23; - -const int SQLITE_AUTH_USER = 279; - -const int SQLITE_BLOB = 4; - -const int SQLITE_BUSY = 5; - -const int SQLITE_BUSY_RECOVERY = 261; - -const int SQLITE_BUSY_SNAPSHOT = 517; - -const int SQLITE_BUSY_TIMEOUT = 773; - -const int SQLITE_CANTOPEN = 14; - -const int SQLITE_CANTOPEN_CONVPATH = 1038; - -const int SQLITE_CANTOPEN_DIRTYWAL = 1294; - -const int SQLITE_CANTOPEN_FULLPATH = 782; - -const int SQLITE_CANTOPEN_ISDIR = 526; - -const int SQLITE_CANTOPEN_NOTEMPDIR = 270; - -const int SQLITE_CANTOPEN_SYMLINK = 1550; - -const int SQLITE_CHECKPOINT_FULL = 1; - -const int SQLITE_CHECKPOINT_PASSIVE = 0; - -const int SQLITE_CHECKPOINT_RESTART = 2; - -const int SQLITE_CHECKPOINT_TRUNCATE = 3; - -const int SQLITE_CONFIG_COVERING_INDEX_SCAN = 20; - -const int SQLITE_CONFIG_GETMALLOC = 5; - -const int SQLITE_CONFIG_GETMUTEX = 11; - -const int SQLITE_CONFIG_GETPCACHE = 15; - -const int SQLITE_CONFIG_GETPCACHE2 = 19; - -const int SQLITE_CONFIG_HEAP = 8; - -const int SQLITE_CONFIG_LOG = 16; - -const int SQLITE_CONFIG_LOOKASIDE = 13; - -const int SQLITE_CONFIG_MALLOC = 4; - -const int SQLITE_CONFIG_MEMDB_MAXSIZE = 29; - -const int SQLITE_CONFIG_MEMSTATUS = 9; - -const int SQLITE_CONFIG_MMAP_SIZE = 22; - -const int SQLITE_CONFIG_MULTITHREAD = 2; - -const int SQLITE_CONFIG_MUTEX = 10; - -const int SQLITE_CONFIG_PAGECACHE = 7; - -const int SQLITE_CONFIG_PCACHE = 14; - -const int SQLITE_CONFIG_PCACHE2 = 18; - -const int SQLITE_CONFIG_PCACHE_HDRSZ = 24; - -const int SQLITE_CONFIG_PMASZ = 25; - -const int SQLITE_CONFIG_SCRATCH = 6; - -const int SQLITE_CONFIG_SERIALIZED = 3; - -const int SQLITE_CONFIG_SINGLETHREAD = 1; - -const int SQLITE_CONFIG_SMALL_MALLOC = 27; - -const int SQLITE_CONFIG_SORTERREF_SIZE = 28; - -const int SQLITE_CONFIG_SQLLOG = 21; - -const int SQLITE_CONFIG_STMTJRNL_SPILL = 26; - -const int SQLITE_CONFIG_URI = 17; - -const int SQLITE_CONFIG_WIN32_HEAPSIZE = 23; - -const int SQLITE_CONSTRAINT = 19; - -const int SQLITE_CONSTRAINT_CHECK = 275; - -const int SQLITE_CONSTRAINT_COMMITHOOK = 531; - -const int SQLITE_CONSTRAINT_FOREIGNKEY = 787; - -const int SQLITE_CONSTRAINT_FUNCTION = 1043; - -const int SQLITE_CONSTRAINT_NOTNULL = 1299; - -const int SQLITE_CONSTRAINT_PINNED = 2835; - -const int SQLITE_CONSTRAINT_PRIMARYKEY = 1555; - -const int SQLITE_CONSTRAINT_ROWID = 2579; - -const int SQLITE_CONSTRAINT_TRIGGER = 1811; - -const int SQLITE_CONSTRAINT_UNIQUE = 2067; - -const int SQLITE_CONSTRAINT_VTAB = 2323; - -const int SQLITE_COPY = 0; - -const int SQLITE_CORRUPT = 11; - -const int SQLITE_CORRUPT_INDEX = 779; - -const int SQLITE_CORRUPT_SEQUENCE = 523; - -const int SQLITE_CORRUPT_VTAB = 267; - -const int SQLITE_CREATE_INDEX = 1; - -const int SQLITE_CREATE_TABLE = 2; - -const int SQLITE_CREATE_TEMP_INDEX = 3; - -const int SQLITE_CREATE_TEMP_TABLE = 4; - -const int SQLITE_CREATE_TEMP_TRIGGER = 5; - -const int SQLITE_CREATE_TEMP_VIEW = 6; - -const int SQLITE_CREATE_TRIGGER = 7; - -const int SQLITE_CREATE_VIEW = 8; - -const int SQLITE_CREATE_VTABLE = 29; - -const int SQLITE_DBCONFIG_DEFENSIVE = 1010; - -const int SQLITE_DBCONFIG_DQS_DDL = 1014; - -const int SQLITE_DBCONFIG_DQS_DML = 1013; - -const int SQLITE_DBCONFIG_ENABLE_FKEY = 1002; - -const int SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1004; - -const int SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION = 1005; - -const int SQLITE_DBCONFIG_ENABLE_QPSG = 1007; - -const int SQLITE_DBCONFIG_ENABLE_TRIGGER = 1003; - -const int SQLITE_DBCONFIG_ENABLE_VIEW = 1015; - -const int SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1012; - -const int SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1016; - -const int SQLITE_DBCONFIG_LOOKASIDE = 1001; - -const int SQLITE_DBCONFIG_MAINDBNAME = 1000; - -const int SQLITE_DBCONFIG_MAX = 1017; - -const int SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1006; - -const int SQLITE_DBCONFIG_RESET_DATABASE = 1009; - -const int SQLITE_DBCONFIG_TRIGGER_EQP = 1008; - -const int SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017; - -const int SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1011; - -const int SQLITE_DBSTATUS_CACHE_HIT = 7; - -const int SQLITE_DBSTATUS_CACHE_MISS = 8; - -const int SQLITE_DBSTATUS_CACHE_SPILL = 12; - -const int SQLITE_DBSTATUS_CACHE_USED = 1; - -const int SQLITE_DBSTATUS_CACHE_USED_SHARED = 11; - -const int SQLITE_DBSTATUS_CACHE_WRITE = 9; - -const int SQLITE_DBSTATUS_DEFERRED_FKS = 10; - -const int SQLITE_DBSTATUS_LOOKASIDE_HIT = 4; - -const int SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL = 6; - -const int SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE = 5; - -const int SQLITE_DBSTATUS_LOOKASIDE_USED = 0; - -const int SQLITE_DBSTATUS_MAX = 12; - -const int SQLITE_DBSTATUS_SCHEMA_USED = 2; - -const int SQLITE_DBSTATUS_STMT_USED = 3; - -const int SQLITE_DELETE = 9; - -const int SQLITE_DENY = 1; - -const int SQLITE_DESERIALIZE_FREEONCLOSE = 1; - -const int SQLITE_DESERIALIZE_READONLY = 4; - -const int SQLITE_DESERIALIZE_RESIZEABLE = 2; - -const int SQLITE_DETACH = 25; - -const int SQLITE_DETERMINISTIC = 2048; - -const int SQLITE_DIRECTONLY = 524288; - -const int SQLITE_DONE = 101; - -const int SQLITE_DROP_INDEX = 10; - -const int SQLITE_DROP_TABLE = 11; - -const int SQLITE_DROP_TEMP_INDEX = 12; - -const int SQLITE_DROP_TEMP_TABLE = 13; - -const int SQLITE_DROP_TEMP_TRIGGER = 14; - -const int SQLITE_DROP_TEMP_VIEW = 15; - -const int SQLITE_DROP_TRIGGER = 16; - -const int SQLITE_DROP_VIEW = 17; - -const int SQLITE_DROP_VTABLE = 30; - -const int SQLITE_EMPTY = 16; - -const int SQLITE_ERROR = 1; - -const int SQLITE_ERROR_MISSING_COLLSEQ = 257; - -const int SQLITE_ERROR_RETRY = 513; - -const int SQLITE_ERROR_SNAPSHOT = 769; - -const int SQLITE_FAIL = 3; - -const int SQLITE_FCNTL_BEGIN_ATOMIC_WRITE = 31; - -const int SQLITE_FCNTL_BUSYHANDLER = 15; - -const int SQLITE_FCNTL_CHUNK_SIZE = 6; - -const int SQLITE_FCNTL_CKPT_DONE = 37; - -const int SQLITE_FCNTL_CKPT_START = 39; - -const int SQLITE_FCNTL_COMMIT_ATOMIC_WRITE = 32; - -const int SQLITE_FCNTL_COMMIT_PHASETWO = 22; - -const int SQLITE_FCNTL_DATA_VERSION = 35; - -const int SQLITE_FCNTL_FILE_POINTER = 7; - -const int SQLITE_FCNTL_GET_LOCKPROXYFILE = 2; - -const int SQLITE_FCNTL_HAS_MOVED = 20; - -const int SQLITE_FCNTL_JOURNAL_POINTER = 28; - -const int SQLITE_FCNTL_LAST_ERRNO = 4; - -const int SQLITE_FCNTL_LOCKSTATE = 1; - -const int SQLITE_FCNTL_LOCK_TIMEOUT = 34; - -const int SQLITE_FCNTL_MMAP_SIZE = 18; - -const int SQLITE_FCNTL_OVERWRITE = 11; - -const int SQLITE_FCNTL_PDB = 30; - -const int SQLITE_FCNTL_PERSIST_WAL = 10; - -const int SQLITE_FCNTL_POWERSAFE_OVERWRITE = 13; - -const int SQLITE_FCNTL_PRAGMA = 14; - -const int SQLITE_FCNTL_RBU = 26; - -const int SQLITE_FCNTL_RESERVE_BYTES = 38; - -const int SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE = 33; - -const int SQLITE_FCNTL_SET_LOCKPROXYFILE = 3; - -const int SQLITE_FCNTL_SIZE_HINT = 5; - -const int SQLITE_FCNTL_SIZE_LIMIT = 36; - -const int SQLITE_FCNTL_SYNC = 21; - -const int SQLITE_FCNTL_SYNC_OMITTED = 8; - -const int SQLITE_FCNTL_TEMPFILENAME = 16; - -const int SQLITE_FCNTL_TRACE = 19; - -const int SQLITE_FCNTL_VFSNAME = 12; - -const int SQLITE_FCNTL_VFS_POINTER = 27; - -const int SQLITE_FCNTL_WAL_BLOCK = 24; - -const int SQLITE_FCNTL_WIN32_AV_RETRY = 9; - -const int SQLITE_FCNTL_WIN32_GET_HANDLE = 29; - -const int SQLITE_FCNTL_WIN32_SET_HANDLE = 23; - -const int SQLITE_FCNTL_ZIPVFS = 25; - -const int SQLITE_FLOAT = 2; - -const int SQLITE_FORMAT = 24; - -const int SQLITE_FULL = 13; - -const int SQLITE_FUNCTION = 31; - -const int SQLITE_GET_LOCKPROXYFILE = 2; - -const int SQLITE_IGNORE = 2; - -const int SQLITE_INDEX_CONSTRAINT_EQ = 2; - -const int SQLITE_INDEX_CONSTRAINT_FUNCTION = 150; - -const int SQLITE_INDEX_CONSTRAINT_GE = 32; - -const int SQLITE_INDEX_CONSTRAINT_GLOB = 66; - -const int SQLITE_INDEX_CONSTRAINT_GT = 4; - -const int SQLITE_INDEX_CONSTRAINT_IS = 72; - -const int SQLITE_INDEX_CONSTRAINT_ISNOT = 69; - -const int SQLITE_INDEX_CONSTRAINT_ISNOTNULL = 70; - -const int SQLITE_INDEX_CONSTRAINT_ISNULL = 71; - -const int SQLITE_INDEX_CONSTRAINT_LE = 8; - -const int SQLITE_INDEX_CONSTRAINT_LIKE = 65; - -const int SQLITE_INDEX_CONSTRAINT_LT = 16; - -const int SQLITE_INDEX_CONSTRAINT_MATCH = 64; - -const int SQLITE_INDEX_CONSTRAINT_NE = 68; - -const int SQLITE_INDEX_CONSTRAINT_REGEXP = 67; - -const int SQLITE_INDEX_SCAN_UNIQUE = 1; - -const int SQLITE_INNOCUOUS = 2097152; - -const int SQLITE_INSERT = 18; - -const int SQLITE_INTEGER = 1; - -const int SQLITE_INTERNAL = 2; - -const int SQLITE_INTERRUPT = 9; - -const int SQLITE_IOCAP_ATOMIC = 1; - -const int SQLITE_IOCAP_ATOMIC16K = 64; - -const int SQLITE_IOCAP_ATOMIC1K = 4; - -const int SQLITE_IOCAP_ATOMIC2K = 8; - -const int SQLITE_IOCAP_ATOMIC32K = 128; - -const int SQLITE_IOCAP_ATOMIC4K = 16; - -const int SQLITE_IOCAP_ATOMIC512 = 2; - -const int SQLITE_IOCAP_ATOMIC64K = 256; - -const int SQLITE_IOCAP_ATOMIC8K = 32; - -const int SQLITE_IOCAP_BATCH_ATOMIC = 16384; - -const int SQLITE_IOCAP_IMMUTABLE = 8192; - -const int SQLITE_IOCAP_POWERSAFE_OVERWRITE = 4096; - -const int SQLITE_IOCAP_SAFE_APPEND = 512; - -const int SQLITE_IOCAP_SEQUENTIAL = 1024; - -const int SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN = 2048; - -const int SQLITE_IOERR = 10; - -const int SQLITE_IOERR_ACCESS = 3338; - -const int SQLITE_IOERR_AUTH = 7178; - -const int SQLITE_IOERR_BEGIN_ATOMIC = 7434; - -const int SQLITE_IOERR_BLOCKED = 2826; - -const int SQLITE_IOERR_CHECKRESERVEDLOCK = 3594; - -const int SQLITE_IOERR_CLOSE = 4106; - -const int SQLITE_IOERR_COMMIT_ATOMIC = 7690; - -const int SQLITE_IOERR_CONVPATH = 6666; - -const int SQLITE_IOERR_DATA = 8202; - -const int SQLITE_IOERR_DELETE = 2570; - -const int SQLITE_IOERR_DELETE_NOENT = 5898; - -const int SQLITE_IOERR_DIR_CLOSE = 4362; - -const int SQLITE_IOERR_DIR_FSYNC = 1290; - -const int SQLITE_IOERR_FSTAT = 1802; - -const int SQLITE_IOERR_FSYNC = 1034; - -const int SQLITE_IOERR_GETTEMPPATH = 6410; - -const int SQLITE_IOERR_LOCK = 3850; - -const int SQLITE_IOERR_MMAP = 6154; - -const int SQLITE_IOERR_NOMEM = 3082; - -const int SQLITE_IOERR_RDLOCK = 2314; - -const int SQLITE_IOERR_READ = 266; - -const int SQLITE_IOERR_ROLLBACK_ATOMIC = 7946; - -const int SQLITE_IOERR_SEEK = 5642; - -const int SQLITE_IOERR_SHMLOCK = 5130; - -const int SQLITE_IOERR_SHMMAP = 5386; - -const int SQLITE_IOERR_SHMOPEN = 4618; - -const int SQLITE_IOERR_SHMSIZE = 4874; - -const int SQLITE_IOERR_SHORT_READ = 522; - -const int SQLITE_IOERR_TRUNCATE = 1546; - -const int SQLITE_IOERR_UNLOCK = 2058; - -const int SQLITE_IOERR_VNODE = 6922; - -const int SQLITE_IOERR_WRITE = 778; - -const int SQLITE_LAST_ERRNO = 4; - -const int SQLITE_LIMIT_ATTACHED = 7; - -const int SQLITE_LIMIT_COLUMN = 2; - -const int SQLITE_LIMIT_COMPOUND_SELECT = 4; - -const int SQLITE_LIMIT_EXPR_DEPTH = 3; - -const int SQLITE_LIMIT_FUNCTION_ARG = 6; - -const int SQLITE_LIMIT_LENGTH = 0; - -const int SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8; - -const int SQLITE_LIMIT_SQL_LENGTH = 1; - -const int SQLITE_LIMIT_TRIGGER_DEPTH = 10; - -const int SQLITE_LIMIT_VARIABLE_NUMBER = 9; - -const int SQLITE_LIMIT_VDBE_OP = 5; - -const int SQLITE_LIMIT_WORKER_THREADS = 11; - -const int SQLITE_LOCKED = 6; - -const int SQLITE_LOCKED_SHAREDCACHE = 262; - -const int SQLITE_LOCKED_VTAB = 518; - -const int SQLITE_LOCK_EXCLUSIVE = 4; - -const int SQLITE_LOCK_NONE = 0; - -const int SQLITE_LOCK_PENDING = 3; - -const int SQLITE_LOCK_RESERVED = 2; - -const int SQLITE_LOCK_SHARED = 1; - -const int SQLITE_MISMATCH = 20; - -const int SQLITE_MISUSE = 21; - -const int SQLITE_MUTEX_FAST = 0; - -const int SQLITE_MUTEX_RECURSIVE = 1; - -const int SQLITE_MUTEX_STATIC_APP1 = 8; - -const int SQLITE_MUTEX_STATIC_APP2 = 9; - -const int SQLITE_MUTEX_STATIC_APP3 = 10; - -const int SQLITE_MUTEX_STATIC_LRU = 6; - -const int SQLITE_MUTEX_STATIC_LRU2 = 7; - -const int SQLITE_MUTEX_STATIC_MASTER = 2; - -const int SQLITE_MUTEX_STATIC_MEM = 3; - -const int SQLITE_MUTEX_STATIC_MEM2 = 4; - -const int SQLITE_MUTEX_STATIC_OPEN = 4; - -const int SQLITE_MUTEX_STATIC_PMEM = 7; - -const int SQLITE_MUTEX_STATIC_PRNG = 5; - -const int SQLITE_MUTEX_STATIC_VFS1 = 11; - -const int SQLITE_MUTEX_STATIC_VFS2 = 12; - -const int SQLITE_MUTEX_STATIC_VFS3 = 13; - -const int SQLITE_NOLFS = 22; - -const int SQLITE_NOMEM = 7; - -const int SQLITE_NOTADB = 26; - -const int SQLITE_NOTFOUND = 12; - -const int SQLITE_NOTICE = 27; - -const int SQLITE_NOTICE_RECOVER_ROLLBACK = 539; - -const int SQLITE_NOTICE_RECOVER_WAL = 283; - -const int SQLITE_NULL = 5; - -const int SQLITE_OK = 0; - -const int SQLITE_OK_LOAD_PERMANENTLY = 256; - -const int SQLITE_OK_SYMLINK = 512; - -const int SQLITE_OPEN_AUTOPROXY = 32; - -const int SQLITE_OPEN_CREATE = 4; - -const int SQLITE_OPEN_DELETEONCLOSE = 8; - -const int SQLITE_OPEN_EXCLUSIVE = 16; - -const int SQLITE_OPEN_FULLMUTEX = 65536; - -const int SQLITE_OPEN_MAIN_DB = 256; - -const int SQLITE_OPEN_MAIN_JOURNAL = 2048; - -const int SQLITE_OPEN_MASTER_JOURNAL = 16384; - -const int SQLITE_OPEN_MEMORY = 128; - -const int SQLITE_OPEN_NOFOLLOW = 16777216; - -const int SQLITE_OPEN_NOMUTEX = 32768; - -const int SQLITE_OPEN_PRIVATECACHE = 262144; - -const int SQLITE_OPEN_READONLY = 1; - -const int SQLITE_OPEN_READWRITE = 2; - -const int SQLITE_OPEN_SHAREDCACHE = 131072; - -const int SQLITE_OPEN_SUBJOURNAL = 8192; - -const int SQLITE_OPEN_TEMP_DB = 512; - -const int SQLITE_OPEN_TEMP_JOURNAL = 4096; - -const int SQLITE_OPEN_TRANSIENT_DB = 1024; - -const int SQLITE_OPEN_URI = 64; - -const int SQLITE_OPEN_WAL = 524288; - -const int SQLITE_PERM = 3; - -const int SQLITE_PRAGMA = 19; - -const int SQLITE_PREPARE_NORMALIZE = 2; - -const int SQLITE_PREPARE_NO_VTAB = 4; - -const int SQLITE_PREPARE_PERSISTENT = 1; - -const int SQLITE_PROTOCOL = 15; - -const int SQLITE_RANGE = 25; - -const int SQLITE_READ = 20; - -const int SQLITE_READONLY = 8; - -const int SQLITE_READONLY_CANTINIT = 1288; - -const int SQLITE_READONLY_CANTLOCK = 520; - -const int SQLITE_READONLY_DBMOVED = 1032; - -const int SQLITE_READONLY_DIRECTORY = 1544; - -const int SQLITE_READONLY_RECOVERY = 264; - -const int SQLITE_READONLY_ROLLBACK = 776; - -const int SQLITE_RECURSIVE = 33; - -const int SQLITE_REINDEX = 27; - -const int SQLITE_REPLACE = 5; - -const int SQLITE_ROLLBACK = 1; - -const int SQLITE_ROW = 100; - -const int SQLITE_SAVEPOINT = 32; - -const int SQLITE_SCANSTAT_EST = 2; - -const int SQLITE_SCANSTAT_EXPLAIN = 4; - -const int SQLITE_SCANSTAT_NAME = 3; - -const int SQLITE_SCANSTAT_NLOOP = 0; - -const int SQLITE_SCANSTAT_NVISIT = 1; - -const int SQLITE_SCANSTAT_SELECTID = 5; - -const int SQLITE_SCHEMA = 17; - -const int SQLITE_SELECT = 21; - -const int SQLITE_SERIALIZE_NOCOPY = 1; - -const int SQLITE_SET_LOCKPROXYFILE = 3; - -const int SQLITE_SHM_EXCLUSIVE = 8; - -const int SQLITE_SHM_LOCK = 2; - -const int SQLITE_SHM_NLOCK = 8; - -const int SQLITE_SHM_SHARED = 4; - -const int SQLITE_SHM_UNLOCK = 1; - -const String SQLITE_SOURCE_ID = - '2020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd'; - -const int SQLITE_STATUS_MALLOC_COUNT = 9; - -const int SQLITE_STATUS_MALLOC_SIZE = 5; - -const int SQLITE_STATUS_MEMORY_USED = 0; - -const int SQLITE_STATUS_PAGECACHE_OVERFLOW = 2; - -const int SQLITE_STATUS_PAGECACHE_SIZE = 7; - -const int SQLITE_STATUS_PAGECACHE_USED = 1; - -const int SQLITE_STATUS_PARSER_STACK = 6; - -const int SQLITE_STATUS_SCRATCH_OVERFLOW = 4; - -const int SQLITE_STATUS_SCRATCH_SIZE = 8; - -const int SQLITE_STATUS_SCRATCH_USED = 3; - -const int SQLITE_STMTSTATUS_AUTOINDEX = 3; - -const int SQLITE_STMTSTATUS_FULLSCAN_STEP = 1; - -const int SQLITE_STMTSTATUS_MEMUSED = 99; - -const int SQLITE_STMTSTATUS_REPREPARE = 5; - -const int SQLITE_STMTSTATUS_RUN = 6; - -const int SQLITE_STMTSTATUS_SORT = 2; - -const int SQLITE_STMTSTATUS_VM_STEP = 4; - -const int SQLITE_SUBTYPE = 1048576; - -const int SQLITE_SYNC_DATAONLY = 16; - -const int SQLITE_SYNC_FULL = 3; - -const int SQLITE_SYNC_NORMAL = 2; - -const int SQLITE_TESTCTRL_ALWAYS = 13; - -const int SQLITE_TESTCTRL_ASSERT = 12; - -const int SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = 10; - -const int SQLITE_TESTCTRL_BITVEC_TEST = 8; - -const int SQLITE_TESTCTRL_BYTEORDER = 22; - -const int SQLITE_TESTCTRL_EXPLAIN_STMT = 19; - -const int SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS = 29; - -const int SQLITE_TESTCTRL_FAULT_INSTALL = 9; - -const int SQLITE_TESTCTRL_FIRST = 5; - -const int SQLITE_TESTCTRL_IMPOSTER = 25; - -const int SQLITE_TESTCTRL_INTERNAL_FUNCTIONS = 17; - -const int SQLITE_TESTCTRL_ISINIT = 23; - -const int SQLITE_TESTCTRL_ISKEYWORD = 16; - -const int SQLITE_TESTCTRL_LAST = 29; - -const int SQLITE_TESTCTRL_LOCALTIME_FAULT = 18; - -const int SQLITE_TESTCTRL_NEVER_CORRUPT = 20; - -const int SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD = 19; - -const int SQLITE_TESTCTRL_OPTIMIZATIONS = 15; - -const int SQLITE_TESTCTRL_PARSER_COVERAGE = 26; - -const int SQLITE_TESTCTRL_PENDING_BYTE = 11; - -const int SQLITE_TESTCTRL_PRNG_RESET = 7; - -const int SQLITE_TESTCTRL_PRNG_RESTORE = 6; - -const int SQLITE_TESTCTRL_PRNG_SAVE = 5; - -const int SQLITE_TESTCTRL_PRNG_SEED = 28; - -const int SQLITE_TESTCTRL_RESERVE = 14; - -const int SQLITE_TESTCTRL_RESULT_INTREAL = 27; - -const int SQLITE_TESTCTRL_SCRATCHMALLOC = 17; - -const int SQLITE_TESTCTRL_SORTER_MMAP = 24; - -const int SQLITE_TESTCTRL_VDBE_COVERAGE = 21; - -const int SQLITE_TEXT = 3; - -const int SQLITE_TOOBIG = 18; - -const int SQLITE_TRACE_CLOSE = 8; - -const int SQLITE_TRACE_PROFILE = 2; - -const int SQLITE_TRACE_ROW = 4; - -const int SQLITE_TRACE_STMT = 1; - -const int SQLITE_TRANSACTION = 22; - -const int SQLITE_UPDATE = 23; - -const int SQLITE_UTF16 = 4; - -const int SQLITE_UTF16BE = 3; - -const int SQLITE_UTF16LE = 2; - -const int SQLITE_UTF16_ALIGNED = 8; - -const int SQLITE_UTF8 = 1; - -const String SQLITE_VERSION = '3.32.3'; - -const int SQLITE_VERSION_NUMBER = 3032003; - -const int SQLITE_VTAB_CONSTRAINT_SUPPORT = 1; - -const int SQLITE_VTAB_DIRECTONLY = 3; - -const int SQLITE_VTAB_INNOCUOUS = 2; - -const int SQLITE_WARNING = 28; - -const int SQLITE_WARNING_AUTOINDEX = 284; - -const int SQLITE_WIN32_DATA_DIRECTORY_TYPE = 1; - -const int SQLITE_WIN32_TEMP_DIRECTORY_TYPE = 2; - -final class fts5_api extends ffi.Struct { - /// Currently always set to 2 - @ffi.Int() - external int iVersion; - - /// Create a new tokenizer - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pApi, - ffi.Pointer zName, - ffi.Pointer pContext, - ffi.Pointer pTokenizer, - ffi.Pointer< - ffi.NativeFunction)> - > - xDestroy, - ) - > - > - xCreateTokenizer; - - /// Find an existing tokenizer - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pApi, - ffi.Pointer zName, - ffi.Pointer> ppContext, - ffi.Pointer pTokenizer, - ) - > - > - xFindTokenizer; - - /// Create a new auxiliary function - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pApi, - ffi.Pointer zName, - ffi.Pointer pContext, - fts5_extension_function xFunction, - ffi.Pointer< - ffi.NativeFunction)> - > - xDestroy, - ) - > - > - xCreateFunction; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iVersion, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pApi, - ffi.Pointer zName, - ffi.Pointer pContext, - ffi.Pointer pTokenizer, - ffi.Pointer< - ffi.NativeFunction)> - > - xDestroy, - ) - > - > - xCreateTokenizer, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pApi, - ffi.Pointer zName, - ffi.Pointer> ppContext, - ffi.Pointer pTokenizer, - ) - > - > - xFindTokenizer, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pApi, - ffi.Pointer zName, - ffi.Pointer pContext, - fts5_extension_function xFunction, - ffi.Pointer< - ffi.NativeFunction)> - > - xDestroy, - ) - > - > - xCreateFunction, - }) => $allocator() - ..ref.iVersion = iVersion - ..ref.xCreateTokenizer = xCreateTokenizer - ..ref.xFindTokenizer = xFindTokenizer - ..ref.xCreateFunction = xCreateFunction; -} - -typedef fts5_extension_function = - ffi.Pointer>; -typedef fts5_extension_functionFunction = - ffi.Void Function( - ffi.Pointer pApi, - ffi.Pointer pFts, - ffi.Pointer pCtx, - ffi.Int nVal, - ffi.Pointer> apVal, - ); -typedef Dartfts5_extension_functionFunction = - void Function( - ffi.Pointer pApi, - ffi.Pointer pFts, - ffi.Pointer pCtx, - int nVal, - ffi.Pointer> apVal, - ); - -final class fts5_tokenizer extends ffi.Struct { - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer>, - ) - > - > - xCreate; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xDelete; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Int, - ) - > - >, - ) - > - > - xTokenize; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer>, - ) - > - > - xCreate, - required ffi.Pointer< - ffi.NativeFunction)> - > - xDelete, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Int, - ) - > - >, - ) - > - > - xTokenize, - }) => $allocator() - ..ref.xCreate = xCreate - ..ref.xDelete = xDelete - ..ref.xTokenize = xTokenize; -} - -final class sqlite3 extends ffi.Opaque {} - -final class sqlite3_api_routines extends ffi.Opaque {} - -final class sqlite3_backup extends ffi.Opaque {} - -final class sqlite3_blob extends ffi.Opaque {} - -/// The type for a callback function. -/// This is legacy and deprecated. It is included for historical -/// compatibility and is not documented. -typedef sqlite3_callback = - ffi.Pointer>; -typedef sqlite3_callbackFunction = - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ); -typedef Dartsqlite3_callbackFunction = - int Function( - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, - ); - -final class sqlite3_context extends ffi.Opaque {} - -/// CAPI3REF: Constants Defining Special Destructor Behavior -/// -/// These are special values for the destructor that is passed in as the -/// final argument to routines like [sqlite3_result_blob()]. ^If the destructor -/// argument is SQLITE_STATIC, it means that the content pointer is constant -/// and will never change. It does not need to be destroyed. ^The -/// SQLITE_TRANSIENT value means that the content will likely change in -/// the near future and that SQLite should make its own private copy of -/// the content before returning. -/// -/// The typedef is necessary to work around problems in certain -/// C++ compilers. -typedef sqlite3_destructor_type = - ffi.Pointer>; -typedef sqlite3_destructor_typeFunction = - ffi.Void Function(ffi.Pointer); -typedef Dartsqlite3_destructor_typeFunction = - void Function(ffi.Pointer); - -final class sqlite3_file extends ffi.Struct { - /// Methods for an open file - external ffi.Pointer pMethods; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pMethods, - }) => $allocator()..ref.pMethods = pMethods; -} - -final class sqlite3_index_constraint extends ffi.Struct { - /// Column constrained. -1 for ROWID - @ffi.Int() - external int iColumn; - - /// Constraint operator - @ffi.UnsignedChar() - external int op; - - /// True if this constraint is usable - @ffi.UnsignedChar() - external int usable; - - /// Used internally - xBestIndex should ignore - @ffi.Int() - external int iTermOffset; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iColumn, - required int op, - required int usable, - required int iTermOffset, - }) => $allocator() - ..ref.iColumn = iColumn - ..ref.op = op - ..ref.usable = usable - ..ref.iTermOffset = iTermOffset; -} - -/// Outputs -final class sqlite3_index_constraint_usage extends ffi.Struct { - /// if >0, constraint is part of argv to xFilter - @ffi.Int() - external int argvIndex; - - /// Do not code a test for this constraint - @ffi.UnsignedChar() - external int omit; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int argvIndex, - required int omit, - }) => $allocator() - ..ref.argvIndex = argvIndex - ..ref.omit = omit; -} - -/// CAPI3REF: Virtual Table Indexing Information -/// KEYWORDS: sqlite3_index_info -/// -/// The sqlite3_index_info structure and its substructures is used as part -/// of the [virtual table] interface to -/// pass information into and receive the reply from the [xBestIndex] -/// method of a [virtual table module]. The fields under **Inputs** are the -/// inputs to xBestIndex and are read-only. xBestIndex inserts its -/// results into the **Outputs** fields. -/// -/// ^(The aConstraint[] array records WHERE clause constraints of the form: -/// -///
column OP expr
-/// -/// where OP is =, <, <=, >, or >=.)^ ^(The particular operator is -/// stored in aConstraint[].op using one of the -/// [SQLITE_INDEX_CONSTRAINT_EQ | SQLITE_INDEX_CONSTRAINT_ values].)^ -/// ^(The index of the column is stored in -/// aConstraint[].iColumn.)^ ^(aConstraint[].usable is TRUE if the -/// expr on the right-hand side can be evaluated (and thus the constraint -/// is usable) and false if it cannot.)^ -/// -/// ^The optimizer automatically inverts terms of the form "expr OP column" -/// and makes other simplifications to the WHERE clause in an attempt to -/// get as many WHERE clause terms into the form shown above as possible. -/// ^The aConstraint[] array only reports WHERE clause terms that are -/// relevant to the particular virtual table being queried. -/// -/// ^Information about the ORDER BY clause is stored in aOrderBy[]. -/// ^Each term of aOrderBy records a column of the ORDER BY clause. -/// -/// The colUsed field indicates which columns of the virtual table may be -/// required by the current scan. Virtual table columns are numbered from -/// zero in the order in which they appear within the CREATE TABLE statement -/// passed to sqlite3_declare_vtab(). For the first 63 columns (columns 0-62), -/// the corresponding bit is set within the colUsed mask if the column may be -/// required by SQLite. If the table has at least 64 columns and any column -/// to the right of the first 63 is required, then bit 63 of colUsed is also -/// set. In other words, column iCol may be required if the expression -/// (colUsed & ((sqlite3_uint64)1 << (iCol>=63 ? 63 : iCol))) evaluates to -/// non-zero. -/// -/// The [xBestIndex] method must fill aConstraintUsage[] with information -/// about what parameters to pass to xFilter. ^If argvIndex>0 then -/// the right-hand side of the corresponding aConstraint[] is evaluated -/// and becomes the argvIndex-th entry in argv. ^(If aConstraintUsage[].omit -/// is true, then the constraint is assumed to be fully handled by the -/// virtual table and might not be checked again by the byte code.)^ ^(The -/// aConstraintUsage[].omit flag is an optimization hint. When the omit flag -/// is left in its default setting of false, the constraint will always be -/// checked separately in byte code. If the omit flag is change to true, then -/// the constraint may or may not be checked in byte code. In other words, -/// when the omit flag is true there is no guarantee that the constraint will -/// not be checked again using byte code.)^ -/// -/// ^The idxNum and idxPtr values are recorded and passed into the -/// [xFilter] method. -/// ^[sqlite3_free()] is used to free idxPtr if and only if -/// needToFreeIdxPtr is true. -/// -/// ^The orderByConsumed means that output from [xFilter]/[xNext] will occur in -/// the correct order to satisfy the ORDER BY clause so that no separate -/// sorting step is required. -/// -/// ^The estimatedCost value is an estimate of the cost of a particular -/// strategy. A cost of N indicates that the cost of the strategy is similar -/// to a linear scan of an SQLite table with N rows. A cost of log(N) -/// indicates that the expense of the operation is similar to that of a -/// binary search on a unique indexed field of an SQLite table with N rows. -/// -/// ^The estimatedRows value is an estimate of the number of rows that -/// will be returned by the strategy. -/// -/// The xBestIndex method may optionally populate the idxFlags field with a -/// mask of SQLITE_INDEX_SCAN_* flags. Currently there is only one such flag - -/// SQLITE_INDEX_SCAN_UNIQUE. If the xBestIndex method sets this flag, SQLite -/// assumes that the strategy may visit at most one row. -/// -/// Additionally, if xBestIndex sets the SQLITE_INDEX_SCAN_UNIQUE flag, then -/// SQLite also assumes that if a call to the xUpdate() method is made as -/// part of the same statement to delete or update a virtual table row and the -/// implementation returns SQLITE_CONSTRAINT, then there is no need to rollback -/// any database changes. In other words, if the xUpdate() returns -/// SQLITE_CONSTRAINT, the database contents must be exactly as they were -/// before xUpdate was called. By contrast, if SQLITE_INDEX_SCAN_UNIQUE is not -/// set and xUpdate returns SQLITE_CONSTRAINT, any database changes made by -/// the xUpdate method are automatically rolled back by SQLite. -/// -/// IMPORTANT: The estimatedRows field was added to the sqlite3_index_info -/// structure for SQLite [version 3.8.2] ([dateof:3.8.2]). -/// If a virtual table extension is -/// used with an SQLite version earlier than 3.8.2, the results of attempting -/// to read or write the estimatedRows field are undefined (but are likely -/// to include crashing the application). The estimatedRows field should -/// therefore only be used if [sqlite3_libversion_number()] returns a -/// value greater than or equal to 3008002. Similarly, the idxFlags field -/// was added for [version 3.9.0] ([dateof:3.9.0]). -/// It may therefore only be used if -/// sqlite3_libversion_number() returns a value greater than or equal to -/// 3009000. -final class sqlite3_index_info extends ffi.Struct { - /// Number of entries in aConstraint - @ffi.Int() - external int nConstraint; - - /// Table of WHERE clause constraints - external ffi.Pointer aConstraint; - - /// Number of terms in the ORDER BY clause - @ffi.Int() - external int nOrderBy; - - /// The ORDER BY clause - external ffi.Pointer aOrderBy; - - external ffi.Pointer aConstraintUsage; - - /// Number used to identify the index - @ffi.Int() - external int idxNum; - - /// String, possibly obtained from sqlite3_malloc - external ffi.Pointer idxStr; - - /// Free idxStr using sqlite3_free() if true - @ffi.Int() - external int needToFreeIdxStr; - - /// True if output is already ordered - @ffi.Int() - external int orderByConsumed; - - /// Estimated cost of using this index - @ffi.Double() - external double estimatedCost; - - /// Estimated number of rows returned - @sqlite3_int64() - external int estimatedRows; - - /// Mask of SQLITE_INDEX_SCAN_* flags - @ffi.Int() - external int idxFlags; - - /// Input: Mask of columns used by statement - @sqlite3_uint64() - external int colUsed; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int nConstraint, - required ffi.Pointer aConstraint, - required int nOrderBy, - required ffi.Pointer aOrderBy, - required ffi.Pointer aConstraintUsage, - required int idxNum, - required ffi.Pointer idxStr, - required int needToFreeIdxStr, - required int orderByConsumed, - required double estimatedCost, - required int estimatedRows, - required int idxFlags, - required int colUsed, - }) => $allocator() - ..ref.nConstraint = nConstraint - ..ref.aConstraint = aConstraint - ..ref.nOrderBy = nOrderBy - ..ref.aOrderBy = aOrderBy - ..ref.aConstraintUsage = aConstraintUsage - ..ref.idxNum = idxNum - ..ref.idxStr = idxStr - ..ref.needToFreeIdxStr = needToFreeIdxStr - ..ref.orderByConsumed = orderByConsumed - ..ref.estimatedCost = estimatedCost - ..ref.estimatedRows = estimatedRows - ..ref.idxFlags = idxFlags - ..ref.colUsed = colUsed; -} - -final class sqlite3_index_orderby extends ffi.Struct { - /// Column number - @ffi.Int() - external int iColumn; - - /// True for DESC. False for ASC. - @ffi.UnsignedChar() - external int desc; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iColumn, - required int desc, - }) => $allocator() - ..ref.iColumn = iColumn - ..ref.desc = desc; -} - -typedef sqlite3_int64 = sqlite_int64; - -final class sqlite3_io_methods extends ffi.Opaque {} - -final class sqlite3_mem_methods extends ffi.Struct { - /// Memory allocation function - external ffi.Pointer< - ffi.NativeFunction Function(ffi.Int)> - > - xMalloc; - - /// Free a prior allocation - external ffi.Pointer< - ffi.NativeFunction)> - > - xFree; - - /// Resize an allocation - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - > - xRealloc; - - /// Return the size of an allocation - external ffi.Pointer< - ffi.NativeFunction)> - > - xSize; - - /// Round up request size to allocation size - external ffi.Pointer> xRoundup; - - /// Initialize the memory allocator - external ffi.Pointer< - ffi.NativeFunction)> - > - xInit; - - /// Deinitialize the memory allocator - external ffi.Pointer< - ffi.NativeFunction)> - > - xShutdown; - - /// Argument to xInit() and xShutdown() - external ffi.Pointer pAppData; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer< - ffi.NativeFunction Function(ffi.Int)> - > - xMalloc, - required ffi.Pointer< - ffi.NativeFunction)> - > - xFree, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - > - xRealloc, - required ffi.Pointer< - ffi.NativeFunction)> - > - xSize, - required ffi.Pointer> - xRoundup, - required ffi.Pointer< - ffi.NativeFunction)> - > - xInit, - required ffi.Pointer< - ffi.NativeFunction)> - > - xShutdown, - required ffi.Pointer pAppData, - }) => $allocator() - ..ref.xMalloc = xMalloc - ..ref.xFree = xFree - ..ref.xRealloc = xRealloc - ..ref.xSize = xSize - ..ref.xRoundup = xRoundup - ..ref.xInit = xInit - ..ref.xShutdown = xShutdown - ..ref.pAppData = pAppData; -} - -/// CAPI3REF: Virtual Table Object -/// KEYWORDS: sqlite3_module {virtual table module} -/// -/// This structure, sometimes called a "virtual table module", -/// defines the implementation of a [virtual table]. -/// This structure consists mostly of methods for the module. -/// -/// ^A virtual table module is created by filling in a persistent -/// instance of this structure and passing a pointer to that instance -/// to [sqlite3_create_module()] or [sqlite3_create_module_v2()]. -/// ^The registration remains valid until it is replaced by a different -/// module or until the [database connection] closes. The content -/// of this structure must not change while it is registered with -/// any database connection. -final class sqlite3_module extends ffi.Struct { - @ffi.Int() - external int iVersion; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>, - ) - > - > - xCreate; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>, - ) - > - > - xConnect; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - xBestIndex; - - external ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xDisconnect; - - external ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xDestroy; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pVTab, - ffi.Pointer> ppCursor, - ) - > - > - xOpen; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xClose; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - xFilter; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xNext; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xEof; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - > - xColumn; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - xRowid; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ) - > - > - xUpdate; - - external ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xBegin; - - external ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xSync; - - external ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xCommit; - - external ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xRollback; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pVtab, - ffi.Int nArg, - ffi.Pointer zName, - ffi.Pointer< - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - > - pxFunc, - ffi.Pointer> ppArg, - ) - > - > - xFindFunction; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pVtab, - ffi.Pointer zNew, - ) - > - > - xRename; - - /// The methods above are in version 1 of the sqlite_module object. Those - /// below are for version 2 and greater. - external ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xSavepoint; - - external ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xRelease; - - external ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xRollbackTo; - - /// The methods above are in versions 1 and 2 of the sqlite_module object. - /// Those below are for version 3 and greater. - external ffi.Pointer< - ffi.NativeFunction)> - > - xShadowName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iVersion, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>, - ) - > - > - xCreate, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer>, - ) - > - > - xConnect, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - xBestIndex, - required ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xDisconnect, - required ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xDestroy, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pVTab, - ffi.Pointer> ppCursor, - ) - > - > - xOpen, - required ffi.Pointer< - ffi.NativeFunction)> - > - xClose, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - xFilter, - required ffi.Pointer< - ffi.NativeFunction)> - > - xNext, - required ffi.Pointer< - ffi.NativeFunction)> - > - xEof, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - > - xColumn, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - xRowid, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ) - > - > - xUpdate, - required ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xBegin, - required ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xSync, - required ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xCommit, - required ffi.Pointer< - ffi.NativeFunction pVTab)> - > - xRollback, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pVtab, - ffi.Int nArg, - ffi.Pointer zName, - ffi.Pointer< - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ) - > - > - > - pxFunc, - ffi.Pointer> ppArg, - ) - > - > - xFindFunction, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer pVtab, - ffi.Pointer zNew, - ) - > - > - xRename, - required ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xSavepoint, - required ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xRelease, - required ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xRollbackTo, - required ffi.Pointer< - ffi.NativeFunction)> - > - xShadowName, - }) => $allocator() - ..ref.iVersion = iVersion - ..ref.xCreate = xCreate - ..ref.xConnect = xConnect - ..ref.xBestIndex = xBestIndex - ..ref.xDisconnect = xDisconnect - ..ref.xDestroy = xDestroy - ..ref.xOpen = xOpen - ..ref.xClose = xClose - ..ref.xFilter = xFilter - ..ref.xNext = xNext - ..ref.xEof = xEof - ..ref.xColumn = xColumn - ..ref.xRowid = xRowid - ..ref.xUpdate = xUpdate - ..ref.xBegin = xBegin - ..ref.xSync = xSync - ..ref.xCommit = xCommit - ..ref.xRollback = xRollback - ..ref.xFindFunction = xFindFunction - ..ref.xRename = xRename - ..ref.xSavepoint = xSavepoint - ..ref.xRelease = xRelease - ..ref.xRollbackTo = xRollbackTo - ..ref.xShadowName = xShadowName; -} - -final class sqlite3_mutex extends ffi.Opaque {} - -final class sqlite3_mutex_methods extends ffi.Struct { - external ffi.Pointer> xMutexInit; - - external ffi.Pointer> xMutexEnd; - - external ffi.Pointer< - ffi.NativeFunction Function(ffi.Int)> - > - xMutexAlloc; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xMutexFree; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xMutexEnter; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xMutexTry; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xMutexLeave; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xMutexHeld; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xMutexNotheld; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer> xMutexInit, - required ffi.Pointer> xMutexEnd, - required ffi.Pointer< - ffi.NativeFunction Function(ffi.Int)> - > - xMutexAlloc, - required ffi.Pointer< - ffi.NativeFunction)> - > - xMutexFree, - required ffi.Pointer< - ffi.NativeFunction)> - > - xMutexEnter, - required ffi.Pointer< - ffi.NativeFunction)> - > - xMutexTry, - required ffi.Pointer< - ffi.NativeFunction)> - > - xMutexLeave, - required ffi.Pointer< - ffi.NativeFunction)> - > - xMutexHeld, - required ffi.Pointer< - ffi.NativeFunction)> - > - xMutexNotheld, - }) => $allocator() - ..ref.xMutexInit = xMutexInit - ..ref.xMutexEnd = xMutexEnd - ..ref.xMutexAlloc = xMutexAlloc - ..ref.xMutexFree = xMutexFree - ..ref.xMutexEnter = xMutexEnter - ..ref.xMutexTry = xMutexTry - ..ref.xMutexLeave = xMutexLeave - ..ref.xMutexHeld = xMutexHeld - ..ref.xMutexNotheld = xMutexNotheld; -} - -final class sqlite3_pcache extends ffi.Opaque {} - -final class sqlite3_pcache_methods extends ffi.Struct { - external ffi.Pointer pArg; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xInit; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xShutdown; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int szPage, ffi.Int bPurgeable) - > - > - xCreate; - - external ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xCachesize; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xPagecount; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ) - > - > - xFetch; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - > - xUnpin; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ) - > - > - xRekey; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) - > - > - xTruncate; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xDestroy; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pArg, - required ffi.Pointer< - ffi.NativeFunction)> - > - xInit, - required ffi.Pointer< - ffi.NativeFunction)> - > - xShutdown, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Int szPage, ffi.Int bPurgeable) - > - > - xCreate, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int) - > - > - xCachesize, - required ffi.Pointer< - ffi.NativeFunction)> - > - xPagecount, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ) - > - > - xFetch, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - > - xUnpin, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ) - > - > - xRekey, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) - > - > - xTruncate, - required ffi.Pointer< - ffi.NativeFunction)> - > - xDestroy, - }) => $allocator() - ..ref.pArg = pArg - ..ref.xInit = xInit - ..ref.xShutdown = xShutdown - ..ref.xCreate = xCreate - ..ref.xCachesize = xCachesize - ..ref.xPagecount = xPagecount - ..ref.xFetch = xFetch - ..ref.xUnpin = xUnpin - ..ref.xRekey = xRekey - ..ref.xTruncate = xTruncate - ..ref.xDestroy = xDestroy; -} - -final class sqlite3_pcache_methods2 extends ffi.Struct { - @ffi.Int() - external int iVersion; - - external ffi.Pointer pArg; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xInit; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xShutdown; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int szPage, - ffi.Int szExtra, - ffi.Int bPurgeable, - ) - > - > - xCreate; - - external ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xCachesize; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xPagecount; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ) - > - > - xFetch; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - > - xUnpin; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ) - > - > - xRekey; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) - > - > - xTruncate; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xDestroy; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xShrink; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iVersion, - required ffi.Pointer pArg, - required ffi.Pointer< - ffi.NativeFunction)> - > - xInit, - required ffi.Pointer< - ffi.NativeFunction)> - > - xShutdown, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Int szPage, - ffi.Int szExtra, - ffi.Int bPurgeable, - ) - > - > - xCreate, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int) - > - > - xCachesize, - required ffi.Pointer< - ffi.NativeFunction)> - > - xPagecount, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.Int, - ) - > - > - xFetch, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - > - xUnpin, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ) - > - > - xRekey, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) - > - > - xTruncate, - required ffi.Pointer< - ffi.NativeFunction)> - > - xDestroy, - required ffi.Pointer< - ffi.NativeFunction)> - > - xShrink, - }) => $allocator() - ..ref.iVersion = iVersion - ..ref.pArg = pArg - ..ref.xInit = xInit - ..ref.xShutdown = xShutdown - ..ref.xCreate = xCreate - ..ref.xCachesize = xCachesize - ..ref.xPagecount = xPagecount - ..ref.xFetch = xFetch - ..ref.xUnpin = xUnpin - ..ref.xRekey = xRekey - ..ref.xTruncate = xTruncate - ..ref.xDestroy = xDestroy - ..ref.xShrink = xShrink; -} - -final class sqlite3_pcache_page extends ffi.Struct { - /// The content of the page - external ffi.Pointer pBuf; - - /// Extra information associated with the page - external ffi.Pointer pExtra; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pBuf, - required ffi.Pointer pExtra, - }) => $allocator() - ..ref.pBuf = pBuf - ..ref.pExtra = pExtra; -} - -typedef sqlite3_rtree_dbl = ffi.Double; -typedef Dartsqlite3_rtree_dbl = double; - -/// A pointer to a structure of the following type is passed as the first -/// argument to callbacks registered using rtree_geometry_callback(). -final class sqlite3_rtree_geometry extends ffi.Struct { - /// Copy of pContext passed to s_r_g_c() - external ffi.Pointer pContext; - - /// Size of array aParam[] - @ffi.Int() - external int nParam; - - /// Parameters passed to SQL geom function - external ffi.Pointer aParam; - - /// Callback implementation user data - external ffi.Pointer pUser; - - /// Called by SQLite to clean up pUser - external ffi.Pointer< - ffi.NativeFunction)> - > - xDelUser; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pContext, - required int nParam, - required ffi.Pointer aParam, - required ffi.Pointer pUser, - required ffi.Pointer< - ffi.NativeFunction)> - > - xDelUser, - }) => $allocator() - ..ref.pContext = pContext - ..ref.nParam = nParam - ..ref.aParam = aParam - ..ref.pUser = pUser - ..ref.xDelUser = xDelUser; -} - -/// A pointer to a structure of the following type is passed as the -/// argument to scored geometry callback registered using -/// sqlite3_rtree_query_callback(). -/// -/// Note that the first 5 fields of this structure are identical to -/// sqlite3_rtree_geometry. This structure is a subclass of -/// sqlite3_rtree_geometry. -final class sqlite3_rtree_query_info extends ffi.Struct { - /// pContext from when function registered - external ffi.Pointer pContext; - - /// Number of function parameters - @ffi.Int() - external int nParam; - - /// value of function parameters - external ffi.Pointer aParam; - - /// callback can use this, if desired - external ffi.Pointer pUser; - - /// function to free pUser - external ffi.Pointer< - ffi.NativeFunction)> - > - xDelUser; - - /// Coordinates of node or entry to check - external ffi.Pointer aCoord; - - /// Number of pending entries in the queue - external ffi.Pointer anQueue; - - /// Number of coordinates - @ffi.Int() - external int nCoord; - - /// Level of current node or entry - @ffi.Int() - external int iLevel; - - /// The largest iLevel value in the tree - @ffi.Int() - external int mxLevel; - - /// Rowid for current entry - @sqlite3_int64() - external int iRowid; - - /// Score of parent node - @sqlite3_rtree_dbl() - external double rParentScore; - - /// Visibility of parent node - @ffi.Int() - external int eParentWithin; - - /// OUT: Visibility - @ffi.Int() - external int eWithin; - - /// OUT: Write the score here - @sqlite3_rtree_dbl() - external double rScore; - - /// Original SQL values of parameters - external ffi.Pointer> apSqlParam; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pContext, - required int nParam, - required ffi.Pointer aParam, - required ffi.Pointer pUser, - required ffi.Pointer< - ffi.NativeFunction)> - > - xDelUser, - required ffi.Pointer aCoord, - required ffi.Pointer anQueue, - required int nCoord, - required int iLevel, - required int mxLevel, - required int iRowid, - required double rParentScore, - required int eParentWithin, - required int eWithin, - required double rScore, - required ffi.Pointer> apSqlParam, - }) => $allocator() - ..ref.pContext = pContext - ..ref.nParam = nParam - ..ref.aParam = aParam - ..ref.pUser = pUser - ..ref.xDelUser = xDelUser - ..ref.aCoord = aCoord - ..ref.anQueue = anQueue - ..ref.nCoord = nCoord - ..ref.iLevel = iLevel - ..ref.mxLevel = mxLevel - ..ref.iRowid = iRowid - ..ref.rParentScore = rParentScore - ..ref.eParentWithin = eParentWithin - ..ref.eWithin = eWithin - ..ref.rScore = rScore - ..ref.apSqlParam = apSqlParam; -} - -/// CAPI3REF: Database Snapshot -/// KEYWORDS: {snapshot} {sqlite3_snapshot} -/// -/// An instance of the snapshot object records the state of a [WAL mode] -/// database for some specific point in history. -/// -/// In [WAL mode], multiple [database connections] that are open on the -/// same database file can each be reading a different historical version -/// of the database file. When a [database connection] begins a read -/// transaction, that connection sees an unchanging copy of the database -/// as it existed for the point in time when the transaction first started. -/// Subsequent changes to the database from other connections are not seen -/// by the reader until a new read transaction is started. -/// -/// The sqlite3_snapshot object records state information about an historical -/// version of the database file so that it is possible to later open a new read -/// transaction that sees that historical version of the database rather than -/// the most recent version. -final class sqlite3_snapshot extends ffi.Struct { - @ffi.Array.multi([48]) - external ffi.Array hidden; -} - -final class sqlite3_stmt extends ffi.Opaque {} - -final class sqlite3_str extends ffi.Opaque {} - -typedef sqlite3_syscall_ptr = - ffi.Pointer>; -typedef sqlite3_syscall_ptrFunction = ffi.Void Function(); -typedef Dartsqlite3_syscall_ptrFunction = void Function(); -typedef sqlite3_uint64 = sqlite_uint64; - -final class sqlite3_value extends ffi.Opaque {} - -final class sqlite3_vfs extends ffi.Struct { - /// Structure version number (currently 3) - @ffi.Int() - external int iVersion; - - /// Size of subclassed sqlite3_file - @ffi.Int() - external int szOsFile; - - /// Maximum file pathname length - @ffi.Int() - external int mxPathname; - - /// Next registered VFS - external ffi.Pointer pNext; - - /// Name of this virtual file system - external ffi.Pointer zName; - - /// Pointer to application-specific data - external ffi.Pointer pAppData; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xOpen; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) - > - > - xDelete; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xAccess; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xFullPathname; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - xDlOpen; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xDlError; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xDlSym; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - xDlClose; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) - > - > - xRandomness; - - external ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xSleep; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xCurrentTime; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) - > - > - xGetLastError; - - /// The methods above are in version 1 of the sqlite_vfs object - /// definition. Those that follow are added in version 2 or later - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xCurrentTimeInt64; - - /// The methods above are in versions 1 and 2 of the sqlite_vfs object. - /// Those below are for version 3 and greater. - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - sqlite3_syscall_ptr, - ) - > - > - xSetSystemCall; - - external ffi.Pointer< - ffi.NativeFunction< - sqlite3_syscall_ptr Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - xGetSystemCall; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - xNextSystemCall; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iVersion, - required int szOsFile, - required int mxPathname, - required ffi.Pointer pNext, - required ffi.Pointer zName, - required ffi.Pointer pAppData, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xOpen, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - > - xDelete, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xAccess, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xFullPathname, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - xDlOpen, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xDlError, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xDlSym, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - > - xDlClose, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xRandomness, - required ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xSleep, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xCurrentTime, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xGetLastError, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xCurrentTimeInt64, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - sqlite3_syscall_ptr, - ) - > - > - xSetSystemCall, - required ffi.Pointer< - ffi.NativeFunction< - sqlite3_syscall_ptr Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - xGetSystemCall, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - > - xNextSystemCall, - }) => $allocator() - ..ref.iVersion = iVersion - ..ref.szOsFile = szOsFile - ..ref.mxPathname = mxPathname - ..ref.pNext = pNext - ..ref.zName = zName - ..ref.pAppData = pAppData - ..ref.xOpen = xOpen - ..ref.xDelete = xDelete - ..ref.xAccess = xAccess - ..ref.xFullPathname = xFullPathname - ..ref.xDlOpen = xDlOpen - ..ref.xDlError = xDlError - ..ref.xDlSym = xDlSym - ..ref.xDlClose = xDlClose - ..ref.xRandomness = xRandomness - ..ref.xSleep = xSleep - ..ref.xCurrentTime = xCurrentTime - ..ref.xGetLastError = xGetLastError - ..ref.xCurrentTimeInt64 = xCurrentTimeInt64 - ..ref.xSetSystemCall = xSetSystemCall - ..ref.xGetSystemCall = xGetSystemCall - ..ref.xNextSystemCall = xNextSystemCall; -} - -/// CAPI3REF: Virtual Table Instance Object -/// KEYWORDS: sqlite3_vtab -/// -/// Every [virtual table module] implementation uses a subclass -/// of this object to describe a particular instance -/// of the [virtual table]. Each subclass will -/// be tailored to the specific needs of the module implementation. -/// The purpose of this superclass is to define certain fields that are -/// common to all module implementations. -/// -/// ^Virtual tables methods can set an error message by assigning a -/// string obtained from [sqlite3_mprintf()] to zErrMsg. The method should -/// take care that any prior string is freed by a call to [sqlite3_free()] -/// prior to assigning a new string to zErrMsg. ^After the error message -/// is delivered up to the client application, the string will be automatically -/// freed by sqlite3_free() and the zErrMsg field will be zeroed. -final class sqlite3_vtab extends ffi.Struct { - /// The module for this virtual table - external ffi.Pointer pModule; - - /// Number of open cursors - @ffi.Int() - external int nRef; - - /// Error message from sqlite3_mprintf() - external ffi.Pointer zErrMsg; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pModule, - required int nRef, - required ffi.Pointer zErrMsg, - }) => $allocator() - ..ref.pModule = pModule - ..ref.nRef = nRef - ..ref.zErrMsg = zErrMsg; -} - -/// CAPI3REF: Virtual Table Cursor Object -/// KEYWORDS: sqlite3_vtab_cursor {virtual table cursor} -/// -/// Every [virtual table module] implementation uses a subclass of the -/// following structure to describe cursors that point into the -/// [virtual table] and are used -/// to loop through the virtual table. Cursors are created using the -/// [sqlite3_module.xOpen | xOpen] method of the module and are destroyed -/// by the [sqlite3_module.xClose | xClose] method. Cursors are used -/// by the [xFilter], [xNext], [xEof], [xColumn], and [xRowid] methods -/// of the module. Each module implementation will define -/// the content of a cursor structure to suit its own needs. -/// -/// This superclass exists in order to define fields of the cursor that -/// are common to all implementations. -final class sqlite3_vtab_cursor extends ffi.Struct { - /// Virtual table of this cursor - external ffi.Pointer pVtab; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer pVtab, - }) => $allocator()..ref.pVtab = pVtab; -} - -typedef sqlite_int64 = ffi.LongLong; -typedef Dartsqlite_int64 = int; -typedef sqlite_uint64 = ffi.UnsignedLongLong; -typedef Dartsqlite_uint64 = int; diff --git a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart index 59cff5aba3..12fd500fb5 100644 --- a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart @@ -301,11 +301,44 @@ extension ArcTestObject$Methods on ArcTestObject { return ArcTestObject.fromPointer($ret, retain: false, release: true); } + /// setAssignedProperty: + set assignedProperty(ArcTestObject value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAssignedProperty_, + _$$ref$1.pointer, + ); + } + + /// setCopiedProperty: + set copiedProperty(ArcTestObject value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setCopiedProperty_, + _$$ref$1.pointer, + ); + } + /// setCounter: void setCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; _objc_msgSend_yhkuco(_$$ref.pointer, _sel_setCounter_, _counter); } + + /// setRetainedProperty: + set retainedProperty(ArcTestObject value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setRetainedProperty_, + _$$ref$1.pointer, + ); + } } @ffi.Native>( @@ -445,6 +478,23 @@ final _objc_msgSend_b5hsh3 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -486,6 +536,13 @@ late final _sel_new = objc.registerName("new"); late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); late final _sel_retainedProperty = objc.registerName("retainedProperty"); late final _sel_returnsRetained = objc.registerName("returnsRetained"); +late final _sel_setAssignedProperty_ = objc.registerName( + "setAssignedProperty:", +); +late final _sel_setCopiedProperty_ = objc.registerName("setCopiedProperty:"); late final _sel_setCounter_ = objc.registerName("setCounter:"); +late final _sel_setRetainedProperty_ = objc.registerName( + "setRetainedProperty:", +); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart index f5490e5257..1854786c48 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart @@ -1522,6 +1522,59 @@ extension NSThread$Methods on NSThread { return objc.NSQualityOfService.fromValue($ret); } + /// setName: + set name(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSThread.setName:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setName_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setQualityOfService: + set qualityOfService(objc.NSQualityOfService value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSThread.setQualityOfService:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_n2da1l( + _$$ref.pointer, + _sel_setQualityOfService_, + value.value, + ); + } + + /// setStackSize: + set stackSize(int value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSThread.setStackSize:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_setStackSize_, value); + } + + /// setThreadPriority: + set threadPriority(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSThread.setThreadPriority:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setThreadPriority_, value); + } + /// stackSize int get stackSize { final _$$ref = object$.ref; @@ -3186,6 +3239,23 @@ final _objc_msgSend_1eldwyi = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1i9r4xy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -3384,6 +3454,23 @@ final _objc_msgSend_lzbvjm = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_n2da1l = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_nnxkei = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -3580,6 +3667,11 @@ late final _sel_receiveConsumedObject_ = objc.registerName( "receiveConsumedObject:", ); late final _sel_receiveObject_ = objc.registerName("receiveObject:"); +late final _sel_setName_ = objc.registerName("setName:"); +late final _sel_setQualityOfService_ = objc.registerName( + "setQualityOfService:", +); +late final _sel_setStackSize_ = objc.registerName("setStackSize:"); late final _sel_setThreadPriority_ = objc.registerName("setThreadPriority:"); late final _sel_sleepForTimeInterval_ = objc.registerName( "sleepForTimeInterval:", diff --git a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart index d1ec2cc0f7..14de93cbb6 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart @@ -1114,6 +1114,59 @@ extension NSThread$Methods on NSThread { return objc.NSQualityOfService.fromValue($ret); } + /// setName: + set name(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'NSThread.setName:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setName_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setQualityOfService: + set qualityOfService(objc.NSQualityOfService value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSThread.setQualityOfService:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_n2da1l( + _$$ref.pointer, + _sel_setQualityOfService_, + value.value, + ); + } + + /// setStackSize: + set stackSize(int value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSThread.setStackSize:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + _objc_msgSend_1i9r4xy(_$$ref.pointer, _sel_setStackSize_, value); + } + + /// setThreadPriority: + set threadPriority(double value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSThread.setThreadPriority:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setThreadPriority_, value); + } + /// stackSize int get stackSize { final _$$ref = object$.ref; @@ -4529,6 +4582,23 @@ final _objc_msgSend_1gew1vmStret = objc.msgSendStretPointer ffi.Pointer, ) >(); +final _objc_msgSend_1i9r4xy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1ovaulg = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -4761,6 +4831,23 @@ final _objc_msgSend_lzbvjm = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_n2da1l = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_nnxkei = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -5093,6 +5180,11 @@ late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); late final _sel_pokeBlock = objc.registerName("pokeBlock"); late final _sel_qualityOfService = objc.registerName("qualityOfService"); late final _sel_setCounter_ = objc.registerName("setCounter:"); +late final _sel_setName_ = objc.registerName("setName:"); +late final _sel_setQualityOfService_ = objc.registerName( + "setQualityOfService:", +); +late final _sel_setStackSize_ = objc.registerName("setStackSize:"); late final _sel_setThreadPriority_ = objc.registerName("setThreadPriority:"); late final _sel_setup_ = objc.registerName("setup:"); late final _sel_sleepForTimeInterval_ = objc.registerName( diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index f5875c4f4c..6d48048e5d 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -10,6 +10,36 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _l3cf7j_wrapBlockingBlock_pfv6jd( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _l3cf7j_wrapListenerBlock_pfv6jd( + int port, + ffi.Pointer context, +); /// CatImplementsProto extension CatImplementsProto on Thing { @@ -259,10 +289,250 @@ extension Mul on Thing { } /// NSItemProvider -extension NSItemProvider on objc.NSURL {} +extension NSItemProvider on objc.NSURL { + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier( + objc.NSString typeIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_16fy0up( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref$1.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: + objc.NSProgress? loadDataWithTypeIdentifier( + objc.NSString typeIdentifier, { + required objc.ObjCBlock + forItemProviderCompletionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + final _$$ref$2 = forItemProviderCompletionHandler.ref; + objc.checkOsVersionInternal( + 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSProgress.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + objc.NSArray get writableTypeIdentifiersForItemProvider { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'writableTypeIdentifiersForItemProvider', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + static objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( + objc.NSString typeIdentifier, + ) { + final _$$ref = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_16fy0up( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static objc.NSURL? objectWithItemProviderData( + objc.NSData data, { + required objc.NSString typeIdentifier, + }) { + final _$$ref = data.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _class_NSURL, + _sel_objectWithItemProviderData_typeIdentifier_error_, + _$$ref.pointer, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// readableTypeIdentifiersForItemProvider + static objc.NSArray getReadableTypeIdentifiersForItemProvider() { + objc.checkOsVersionInternal( + 'NSURL.readableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSURL, + _sel_readableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSURL, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} /// NSPromisedItems -extension NSPromisedItems on objc.NSURL {} +extension NSPromisedItems on objc.NSURL { + /// checkPromisedItemIsReachableAndReturnError: + bool checkPromisedItemIsReachableAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.checkPromisedItemIsReachableAndReturnError:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_checkPromisedItemIsReachableAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// getPromisedItemResourceValue:forKey:error: + bool getPromisedItemResourceValue( + ffi.Pointer> value, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + objc.checkOsVersionInternal( + 'NSURL.getPromisedItemResourceValue:forKey:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1j9bhml( + _$$ref.pointer, + _sel_getPromisedItemResourceValue_forKey_error_, + value, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// promisedItemResourceValuesForKeys:error: + objc.NSDictionary? promisedItemResourceValuesForKeys(objc.NSArray keys) { + final _$$ref = object$.ref; + final _$$ref$1 = keys.ref; + objc.checkOsVersionInternal( + 'NSURL.promisedItemResourceValuesForKeys:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.pointer, + _sel_promisedItemResourceValuesForKeys_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } +} /// NSString extension NSString on Thing { @@ -274,13 +544,552 @@ extension NSString on Thing { } /// NSURLCategory -extension NSURLCategory on objc.NSURL {} +extension NSURLCategory on objc.NSURL { + /// extensionMethod + int extensionMethod() { + final _$$ref = object$.ref; + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_extensionMethod); + } +} /// NSURLLoading -extension NSURLLoading on objc.NSURL {} +extension NSURLLoading on objc.NSURL { + /// URLHandleUsingCache: + @Deprecated('Use NSURLConnection instead') + objc.NSURLHandle? URLHandleUsingCache(bool shouldUseCache) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLHandleUsingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1t6aok9( + _$$ref.pointer, + _sel_URLHandleUsingCache_, + shouldUseCache, + ); + return $ret.address == 0 + ? null + : objc.NSURLHandle.fromPointer($ret, retain: true, release: true); + } + + /// loadResourceDataNotifyingClient:usingCache: + @Deprecated('Use NSURLConnection instead') + void loadResourceDataNotifyingClient( + objc.ObjCObject client, { + required bool usingCache, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = client.ref; + objc.checkOsVersionInternal( + 'NSURL.loadResourceDataNotifyingClient:usingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_6p7ndb( + _$$ref.pointer, + _sel_loadResourceDataNotifyingClient_usingCache_, + _$$ref$1.pointer, + usingCache, + ); + } + + /// propertyForKey: + @Deprecated('Use NSURLConnection instead') + objc.ObjCObject? propertyForKey(objc.NSString propertyKey) { + final _$$ref = object$.ref; + final _$$ref$1 = propertyKey.ref; + objc.checkOsVersionInternal( + 'NSURL.propertyForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_propertyForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// resourceDataUsingCache: + @Deprecated('Use NSURLConnection instead') + objc.NSData? resourceDataUsingCache(bool shouldUseCache) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.resourceDataUsingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1t6aok9( + _$$ref.pointer, + _sel_resourceDataUsingCache_, + shouldUseCache, + ); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// setProperty:forKey: + @Deprecated('Use NSURLConnection instead') + bool setProperty(objc.ObjCObject property, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = property.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSURL.setProperty:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_setProperty_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// setResourceData: + @Deprecated('Use NSURLConnection instead') + bool setResourceData(objc.NSData data) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + objc.checkOsVersionInternal( + 'NSURL.setResourceData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_setResourceData_, + _$$ref$1.pointer, + ); + } +} /// NSURLPathUtilities -extension NSURLPathUtilities on objc.NSURL {} +extension NSURLPathUtilities on objc.NSURL { + /// URLByAppendingPathComponent: + objc.NSURL? URLByAppendingPathComponent(objc.NSString pathComponent) { + final _$$ref = object$.ref; + final _$$ref$1 = pathComponent.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathComponent:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_URLByAppendingPathComponent_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByAppendingPathComponent:isDirectory: + objc.NSURL? URLByAppendingPathComponent$1( + objc.NSString pathComponent, { + required bool isDirectory, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = pathComponent.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathComponent:isDirectory:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.pointer, + _sel_URLByAppendingPathComponent_isDirectory_, + _$$ref$1.pointer, + isDirectory, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByAppendingPathExtension: + objc.NSURL? URLByAppendingPathExtension(objc.NSString pathExtension) { + final _$$ref = object$.ref; + final _$$ref$1 = pathExtension.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathExtension:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_URLByAppendingPathExtension_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByDeletingLastPathComponent + objc.NSURL? get URLByDeletingLastPathComponent { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByDeletingLastPathComponent', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByDeletingLastPathComponent, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByDeletingPathExtension + objc.NSURL? get URLByDeletingPathExtension { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByDeletingPathExtension', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByDeletingPathExtension, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByResolvingSymlinksInPath + objc.NSURL? get URLByResolvingSymlinksInPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByResolvingSymlinksInPath', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByResolvingSymlinksInPath, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByStandardizingPath + objc.NSURL? get URLByStandardizingPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByStandardizingPath', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByStandardizingPath, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// checkResourceIsReachableAndReturnError: + bool checkResourceIsReachableAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.checkResourceIsReachableAndReturnError:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_checkResourceIsReachableAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// lastPathComponent + objc.NSString? get lastPathComponent { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.lastPathComponent', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// pathComponents + objc.NSArray? get pathComponents { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.pathComponents', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// pathExtension + objc.NSString? get pathExtension { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.pathExtension', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// fileURLWithPathComponents: + static objc.NSURL? fileURLWithPathComponents(objc.NSArray components) { + final _$$ref = components.ref; + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPathComponents:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSURL, + _sel_fileURLWithPathComponents_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSData_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSData.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_l3cf7j_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x5cg0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_l3cf7j_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x5cg0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension + on objc.ObjCBlock { + void call(objc.NSData? arg0, objc.NSError? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} /// StaticAndInstanceMethodsWithSameNameCategory extension StaticAndInstanceMethodsWithSameNameCategory on Thing { @@ -402,6 +1211,50 @@ extension Thing$Methods on Thing { } } +extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. + _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. + _BlockArgs_x5cg0.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_x5cg0, + ); +} + +extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { + objc.NSData? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + @ffi.Native>( symbol: 'OBJC_CLASS_\$_ChildOfNSString', ) @@ -446,6 +1299,16 @@ final _class_Thing = objc.getClass( _class_Thing_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__l3cf7j_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_x5cg0_raw; +final _class__BlockArgs_x5cg0 = objc.getClass( + "_l3cf7j_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_x5cg0_raw, + ).cast(), +); final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -461,6 +1324,42 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_16fy0up = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_17amj0z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -495,6 +1394,23 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1dom33q = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -510,6 +1426,86 @@ final _objc_msgSend_1gcq84o = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1j9bhml = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1lsax7n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1q0lyci = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -546,6 +1542,42 @@ final _objc_msgSend_1sotr3r = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1t6aok9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_6p7ndb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -561,6 +1593,49 @@ final _objc_msgSend_91o635 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_r0bo0s = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_URLByAppendingPathComponent_ = objc.registerName( + "URLByAppendingPathComponent:", +); +late final _sel_URLByAppendingPathComponent_isDirectory_ = objc.registerName( + "URLByAppendingPathComponent:isDirectory:", +); +late final _sel_URLByAppendingPathExtension_ = objc.registerName( + "URLByAppendingPathExtension:", +); +late final _sel_URLByDeletingLastPathComponent = objc.registerName( + "URLByDeletingLastPathComponent", +); +late final _sel_URLByDeletingPathExtension = objc.registerName( + "URLByDeletingPathExtension", +); +late final _sel_URLByResolvingSymlinksInPath = objc.registerName( + "URLByResolvingSymlinksInPath", +); +late final _sel_URLByStandardizingPath = objc.registerName( + "URLByStandardizingPath", +); +late final _sel_URLHandleUsingCache_ = objc.registerName( + "URLHandleUsingCache:", +); late final _sel_add_Y_ = objc.registerName("add:Y:"); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); @@ -570,16 +1645,59 @@ late final _sel_anonymousCategoryMethod = objc.registerName( late final _sel_anonymousCategoryStaticMethod = objc.registerName( "anonymousCategoryStaticMethod", ); +late final _sel_arg0 = objc.registerName("arg0"); +late final _sel_arg1 = objc.registerName("arg1"); +late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( + "checkPromisedItemIsReachableAndReturnError:", +); +late final _sel_checkResourceIsReachableAndReturnError_ = objc.registerName( + "checkResourceIsReachableAndReturnError:", +); +late final _sel_extensionMethod = objc.registerName("extensionMethod"); +late final _sel_fileURLWithPathComponents_ = objc.registerName( + "fileURLWithPathComponents:", +); +late final _sel_getPromisedItemResourceValue_forKey_error_ = objc.registerName( + "getPromisedItemResourceValue:forKey:error:", +); late final _sel_init = objc.registerName("init"); late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); late final _sel_instancetypeMethod = objc.registerName("instancetypeMethod"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = + objc.registerName( + "itemProviderVisibilityForRepresentationWithTypeIdentifier:", + ); +late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); +late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = + objc.registerName( + "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", + ); +late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( + "loadResourceDataNotifyingClient:usingCache:", +); late final _sel_method = objc.registerName("method"); late final _sel_mul_Y_ = objc.registerName("mul:Y:"); late final _sel_new = objc.registerName("new"); late final _sel_nsStringExtension = objc.registerName("nsStringExtension"); +late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc + .registerName("objectWithItemProviderData:typeIdentifier:error:"); +late final _sel_pathComponents = objc.registerName("pathComponents"); +late final _sel_pathExtension = objc.registerName("pathExtension"); +late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( + "promisedItemResourceValuesForKeys:error:", +); +late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); late final _sel_protoMethod = objc.registerName("protoMethod"); +late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( + "readableTypeIdentifiersForItemProvider", +); +late final _sel_resourceDataUsingCache_ = objc.registerName( + "resourceDataUsingCache:", +); late final _sel_sameNameMethod = objc.registerName("sameNameMethod"); +late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); +late final _sel_setResourceData_ = objc.registerName("setResourceData:"); late final _sel_someProperty = objc.registerName("someProperty"); late final _sel_staticMethod = objc.registerName("staticMethod"); late final _sel_staticProtoMethod = objc.registerName("staticProtoMethod"); @@ -587,6 +1705,9 @@ late final _sel_sub_Y_ = objc.registerName("sub:Y:"); late final _sel_supportsSecureCoding = objc.registerName( "supportsSecureCoding", ); +late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( + "writableTypeIdentifiersForItemProvider", +); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m new file mode 100644 index 0000000000..f0761e700f --- /dev/null +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m @@ -0,0 +1,111 @@ +#include +#import +#import +#import "category_test.h" +#import "category_test.h" + +#if !__has_feature(objc_arc) +#error "This file must be compiled with ARC enabled" +#endif + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundeclared-selector" + +typedef struct { + int64_t version; + void* (*newWaiter)(void); + void (*awaitWaiter)(void*); + void* (*currentIsolate)(void); + void (*enterIsolate)(void*); + void (*exitIsolate)(void); + int64_t (*getMainPortId)(void); + bool (*getCurrentThreadOwnsIsolate)(int64_t); + void (*invokeListenerPortBlock)(int64_t port, void*); + void (*invokeBlockingPortBlock)(int64_t port, void*, void*); +} DOBJC_Context; + +id objc_retainBlock(id); + +#define BLOCKING_BLOCK_IMPL(ctx, TYPE, SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ + assert(ctx->version >= 1); \ + void* targetIsolate = ctx->currentIsolate(); \ + int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ + __block __weak TYPE weakSelfBlock = nil; \ + TYPE strongSelfBlock = [SIG { \ + void* currentIsolate = ctx->currentIsolate(); \ + bool mayEnterIsolate = \ + currentIsolate == NULL && \ + ctx->getCurrentThreadOwnsIsolate != NULL && \ + ctx->getCurrentThreadOwnsIsolate(targetPort); \ + if (currentIsolate == targetIsolate || mayEnterIsolate) { \ + if (mayEnterIsolate) { \ + ctx->enterIsolate(targetIsolate); \ + } \ + INVOKE_DIRECT; \ + if (mayEnterIsolate) { \ + ctx->exitIsolate(); \ + } \ + } else { \ + void* waiter = ctx->newWaiter(); \ + TYPE selfRetain = [weakSelfBlock copy]; \ + INVOKE_LISTENER; \ + ctx->awaitWaiter(waiter); \ + (void)selfRetain; \ + } \ + } copy]; \ + weakSelfBlock = strongSelfBlock; \ + return strongSelfBlock; + + +__attribute__((visibility("default"))) +@interface _l3cf7j_BlockArgs_pfv6jd : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property (strong) id arg1; +@end +@implementation _l3cf7j_BlockArgs_pfv6jd +@end + +typedef void (^_ListenerTrampoline)(id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline _l3cf7j_wrapListenerBlock_pfv6jd( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline weakSelfBlock = nil; + _ListenerTrampoline strongSelfBlock = [^void(id arg0, id arg1) { + @autoreleasepool { + _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline)(void * waiter, id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline _l3cf7j_wrapBlockingBlock_pfv6jd(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(id arg0, id arg1), { + @autoreleasepool { + _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} +#undef BLOCKING_BLOCK_IMPL + +#pragma clang diagnostic pop diff --git a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart index 33bd3c91f6..2afa773d54 100644 --- a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart @@ -36,9 +36,62 @@ extension type BaseClass._(objc.ObjCObject object$) _sel_isKindOfClass_, _class_BaseClass, ); + + /// alloc + static BaseClass alloc() { + final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_alloc); + return BaseClass.fromPointer($ret, retain: false, release: true); + } + + /// allocWithZone: + static BaseClass allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_BaseClass, + _sel_allocWithZone_, + zone, + ); + return BaseClass.fromPointer($ret, retain: false, release: true); + } + + /// create + static BaseClass create() { + final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_create); + return BaseClass.fromPointer($ret, retain: true, release: true); + } + + /// new + static BaseClass new$() { + final $ret = _objc_msgSend_151sglz(_class_BaseClass, _sel_new); + return BaseClass.fromPointer($ret, retain: false, release: true); + } + + /// Returns a new instance of BaseClass constructed with the default `new` method. + BaseClass() : this.as(new$().object$); } -extension BaseClass$Methods on BaseClass {} +extension BaseClass$Methods on BaseClass { + /// getSelf + BaseClass getSelf() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_getSelf); + return BaseClass.fromPointer($ret, retain: true, release: true); + } + + /// init + BaseClass init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'BaseClass.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return BaseClass.fromPointer($ret, retain: false, release: true); + } +} /// ChildClass extension type ChildClass._(objc.ObjCObject object$) @@ -126,6 +179,12 @@ extension ChildClass$Methods on ChildClass { ); return ChildClass.fromPointer($ret, retain: false, release: true); } + + /// setField: + set field(int value) { + final _$$ref = object$.ref; + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setField_, value); + } } @ffi.Native>(symbol: 'OBJC_CLASS_\$_BaseClass') @@ -178,6 +237,23 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1bqef4y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -218,5 +294,6 @@ late final _sel_getSelf = objc.registerName("getSelf"); late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); +late final _sel_setField_ = objc.registerName("setField:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart index 44562d2929..486f0fa35c 100644 --- a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart @@ -36,9 +36,49 @@ extension type IsInstanceBaseClass._(objc.ObjCObject object$) _sel_isKindOfClass_, _class_IsInstanceBaseClass, ); + + /// alloc + static IsInstanceBaseClass alloc() { + final $ret = _objc_msgSend_151sglz(_class_IsInstanceBaseClass, _sel_alloc); + return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); + } + + /// allocWithZone: + static IsInstanceBaseClass allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_IsInstanceBaseClass, + _sel_allocWithZone_, + zone, + ); + return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); + } + + /// new + static IsInstanceBaseClass new$() { + final $ret = _objc_msgSend_151sglz(_class_IsInstanceBaseClass, _sel_new); + return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); + } + + /// Returns a new instance of IsInstanceBaseClass constructed with the default `new` method. + IsInstanceBaseClass() : this.as(new$().object$); } -extension IsInstanceBaseClass$Methods on IsInstanceBaseClass {} +extension IsInstanceBaseClass$Methods on IsInstanceBaseClass { + /// init + IsInstanceBaseClass init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'IsInstanceBaseClass.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return IsInstanceBaseClass.fromPointer($ret, retain: false, release: true); + } +} /// IsInstanceChildClass extension type IsInstanceChildClass._(objc.ObjCObject object$) diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart index ee3eebc875..fb2451e90b 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart @@ -270,6 +270,12 @@ extension Sendable$Methods on Sendable { return Sendable.fromPointer($ret, retain: false, release: true); } + /// setValue: + set value(int value) { + final _$$ref = object$.ref; + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setValue_, value); + } + /// value int get value { final _$$ref = object$.ref; @@ -360,6 +366,23 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1bqef4y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -416,6 +439,7 @@ late final _sel_dummyMethodToForceGenerationOfListener = objc.registerName( late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); +late final _sel_setValue_ = objc.registerName("setValue:"); late final _sel_value = objc.registerName("value"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart index 4093cc9f87..9ddfe020c2 100644 --- a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart @@ -128,11 +128,50 @@ extension Foo$Methods on Foo { return _objc_msgSend_1ovaulg(_$$ref.pointer, _sel_selVal); } + /// setBoolVal: + set boolVal(bool value) { + final _$$ref = object$.ref; + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setBoolVal_, value); + } + + /// setClassVal: + set classVal(objc.ObjCObject value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setClassVal_, _$$ref$1.pointer); + } + /// setDoubleVal: void setDoubleVal(double x) { final _$$ref = object$.ref; _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setDoubleVal_, x); } + + /// setIdVal: + set idVal(objc.ObjCObject value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setIdVal_, _$$ref$1.pointer); + } + + /// setIntVal: + set intVal(int value) { + final _$$ref = object$.ref; + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setIntVal_, value); + } + + /// setObjVal: + set objVal(objc.NSObject value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setObjVal_, _$$ref$1.pointer); + } + + /// setSelVal: + set selVal(ffi.Pointer value) { + final _$$ref = object$.ref; + _objc_msgSend_1d9e4oe(_$$ref.pointer, _sel_setSelVal_, value); + } } @ffi.Native>(symbol: 'OBJC_CLASS_\$_Foo') @@ -175,6 +214,23 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1bqef4y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -192,6 +248,23 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1d9e4oe = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -222,6 +295,23 @@ final _objc_msgSend_1ovaulg = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1s56lr9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); final _objc_msgSend_1t47e0u = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -290,6 +380,23 @@ final _objc_msgSend_oa8mke = objc.msgSendPointer double, ) >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_boolVal = objc.registerName("boolVal"); @@ -305,6 +412,12 @@ late final _sel_multiply_withOtherFoo_ = objc.registerName( late final _sel_new = objc.registerName("new"); late final _sel_objVal = objc.registerName("objVal"); late final _sel_selVal = objc.registerName("selVal"); +late final _sel_setBoolVal_ = objc.registerName("setBoolVal:"); +late final _sel_setClassVal_ = objc.registerName("setClassVal:"); late final _sel_setDoubleVal_ = objc.registerName("setDoubleVal:"); +late final _sel_setIdVal_ = objc.registerName("setIdVal:"); +late final _sel_setIntVal_ = objc.registerName("setIntVal:"); +late final _sel_setObjVal_ = objc.registerName("setObjVal:"); +late final _sel_setSelVal_ = objc.registerName("setSelVal:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart index ec24201303..f808138798 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart @@ -252,9 +252,49 @@ extension type NullableIntermediate._(objc.ObjCObject object$) _sel_isKindOfClass_, _class_NullableIntermediate, ); + + /// alloc + static NullableIntermediate alloc() { + final $ret = _objc_msgSend_151sglz(_class_NullableIntermediate, _sel_alloc); + return NullableIntermediate.fromPointer($ret, retain: false, release: true); + } + + /// allocWithZone: + static NullableIntermediate allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_NullableIntermediate, + _sel_allocWithZone_, + zone, + ); + return NullableIntermediate.fromPointer($ret, retain: false, release: true); + } + + /// new + static NullableIntermediate new$() { + final $ret = _objc_msgSend_151sglz(_class_NullableIntermediate, _sel_new); + return NullableIntermediate.fromPointer($ret, retain: false, release: true); + } + + /// Returns a new instance of NullableIntermediate constructed with the default `new` method. + NullableIntermediate() : this.as(new$().object$); } -extension NullableIntermediate$Methods on NullableIntermediate {} +extension NullableIntermediate$Methods on NullableIntermediate { + /// init + NullableIntermediate init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NullableIntermediate.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return NullableIntermediate.fromPointer($ret, retain: false, release: true); + } +} @ffi.Native>( symbol: 'OBJC_CLASS_\$_NullableBase', diff --git a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart index b401c905cd..ba8f6f1664 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart @@ -165,6 +165,17 @@ extension NullableInterface$Methods on NullableInterface { ? null : objc.NSObject.fromPointer($ret, retain: true, release: true); } + + /// setNullableObjectProperty: + set nullableObjectProperty(objc.NSObject? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setNullableObjectProperty_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } } @ffi.Native>( @@ -264,6 +275,23 @@ final _objc_msgSend_1t6aok9 = objc.msgSendPointer bool, ) >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_init = objc.registerName("init"); @@ -287,5 +315,8 @@ late final _sel_returnNil_ = objc.registerName("returnNil:"); late final _sel_returnNullableAlias_ = objc.registerName( "returnNullableAlias:", ); +late final _sel_setNullableObjectProperty_ = objc.registerName( + "setNullableObjectProperty:", +); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart index 895353957d..c153f673a9 100644 --- a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart @@ -101,6 +101,15 @@ extension type PropertyInterface._(objc.ObjCObject object$) return UndefinedTemplate.fromPointer($ret, retain: true, release: true); } + /// setClassReadWriteProperty: + static void setClassReadWriteProperty(int value) { + _objc_msgSend_1bqef4y( + _class_PropertyInterface, + _sel_setClassReadWriteProperty_, + value, + ); + } + /// Returns a new instance of PropertyInterface constructed with the default `new` method. PropertyInterface() : this.as(new$().object$); } @@ -155,6 +164,30 @@ extension PropertyInterface$Methods on PropertyInterface { return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_readWriteProperty); } + /// setDoubleProperty: + set doubleProperty(double value) { + final _$$ref = object$.ref; + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setDoubleProperty_, value); + } + + /// setFloatProperty: + set floatProperty(double value) { + final _$$ref = object$.ref; + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setFloatProperty_, value); + } + + /// setReadWriteProperty: + set readWriteProperty(int value) { + final _$$ref = object$.ref; + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setReadWriteProperty_, value); + } + + /// setStructProperty: + set structProperty(Vec4 value) { + final _$$ref = object$.ref; + _objc_msgSend_188ryij(_$$ref.pointer, _sel_setStructProperty_, value); + } + /// structProperty Vec4 get structProperty { final _$$ref = object$.ref; @@ -238,6 +271,23 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_188ryij = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + Vec4, + ) + >(); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -255,6 +305,23 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1bqef4y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -347,6 +414,23 @@ final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer ffi.Pointer, ) >(); +final _objc_msgSend_hwm8nu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); final _objc_msgSend_o6r21b = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -379,6 +463,23 @@ final _objc_msgSend_o6r21bStret = objc.msgSendStretPointer ffi.Pointer, ) >(); +final _objc_msgSend_v5hmet = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_classReadOnlyProperty = objc.registerName( @@ -397,6 +498,15 @@ late final _sel_readOnlyProperty = objc.registerName("readOnlyProperty"); late final _sel_readWriteProperty = objc.registerName("readWriteProperty"); late final _sel_regressGH1268 = objc.registerName("regressGH1268"); late final _sel_regressGH436 = objc.registerName("regressGH436"); +late final _sel_setClassReadWriteProperty_ = objc.registerName( + "setClassReadWriteProperty:", +); +late final _sel_setDoubleProperty_ = objc.registerName("setDoubleProperty:"); +late final _sel_setFloatProperty_ = objc.registerName("setFloatProperty:"); +late final _sel_setReadWriteProperty_ = objc.registerName( + "setReadWriteProperty:", +); +late final _sel_setStructProperty_ = objc.registerName("setStructProperty:"); late final _sel_structProperty = objc.registerName("structProperty"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart index 6856adee19..79e372972b 100644 --- a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart @@ -219,12 +219,45 @@ extension RefCountTestObject$Methods on RefCountTestObject { return RefCountTestObject.fromPointer($ret, retain: false, release: true); } + /// setAssignedProperty: + set assignedProperty(RefCountTestObject value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setAssignedProperty_, + _$$ref$1.pointer, + ); + } + + /// setCopiedProperty: + set copiedProperty(RefCountTestObject value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setCopiedProperty_, + _$$ref$1.pointer, + ); + } + /// setCounter: void setCounter(ffi.Pointer _counter) { final _$$ref = object$.ref; _objc_msgSend_yhkuco(_$$ref.pointer, _sel_setCounter_, _counter); } + /// setRetainedProperty: + set retainedProperty(RefCountTestObject value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setRetainedProperty_, + _$$ref$1.pointer, + ); + } + /// unownedReference RefCountTestObject unownedReference() { final _$$ref = object$.ref; @@ -462,6 +495,23 @@ final _objc_msgSend_pysgoz = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -502,7 +552,14 @@ late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); late final _sel_refCount = objc.registerName("refCount"); late final _sel_retainedProperty = objc.registerName("retainedProperty"); late final _sel_returnsRetained = objc.registerName("returnsRetained"); +late final _sel_setAssignedProperty_ = objc.registerName( + "setAssignedProperty:", +); +late final _sel_setCopiedProperty_ = objc.registerName("setCopiedProperty:"); late final _sel_setCounter_ = objc.registerName("setCounter:"); +late final _sel_setRetainedProperty_ = objc.registerName( + "setRetainedProperty:", +); late final _sel_unownedReference = objc.registerName("unownedReference"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart index a6ed4e4198..ea453eea06 100644 --- a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart @@ -110,6 +110,18 @@ extension Renamed$Methods on Renamed { return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_renamedProperty); } + /// setProperty: + set property(int value) { + final _$$ref = object$.ref; + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setProperty_, value); + } + + /// setRenamedProperty: + set reProp(int value) { + final _$$ref = object$.ref; + _objc_msgSend_1bqef4y(_$$ref.pointer, _sel_setRenamedProperty_, value); + } + /// toString objc.NSString toString$1() { final _$$ref = object$.ref; @@ -158,6 +170,23 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1bqef4y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -220,6 +249,8 @@ late final _sel_renamedMethod_otherArg_ = objc.registerName( "renamedMethod:otherArg:", ); late final _sel_renamedProperty = objc.registerName("renamedProperty"); +late final _sel_setProperty_ = objc.registerName("setProperty:"); +late final _sel_setRenamedProperty_ = objc.registerName("setRenamedProperty:"); late final _sel_toString = objc.registerName("toString"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart index 4a87569c29..1b66ae4d68 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart @@ -691,6 +691,17 @@ extension NSTextList$Methods on NSTextList { return objc.NSString.fromPointer($ret, retain: true, release: true); } + /// setStartingItemNumber: + set startingItemNumber(int value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.setStartingItemNumber:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setStartingItemNumber_, value); + } + /// startingItemNumber int get startingItemNumber { final _$$ref = object$.ref; @@ -953,6 +964,51 @@ extension UIPickerView$Methods on UIPickerView { ); } + /// setDataSource: + set dataSource(UIPickerViewDataSource? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'UIPickerView.setDataSource:', + iOS: (false, (2, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setDataSource_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setDelegate: + set delegate(UIPickerViewDelegate? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; + objc.checkOsVersionInternal( + 'UIPickerView.setDelegate:', + iOS: (false, (2, 0, 0)), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_setDelegate_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// setShowsSelectionIndicator: + @Deprecated('This property has no effect on iOS 7 and later.') + set showsSelectionIndicator(bool value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'UIPickerView.setShowsSelectionIndicator:', + iOS: (false, (2, 0, 0)), + ); + _objc_msgSend_1s56lr9( + _$$ref.pointer, + _sel_setShowsSelectionIndicator_, + value, + ); + } + /// showsSelectionIndicator @Deprecated('This property has no effect on iOS 7 and later.') bool get showsSelectionIndicator { @@ -1253,6 +1309,23 @@ final _objc_msgSend_1pl9qdv = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1s56lr9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); final _objc_msgSend_1sotr3r = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1494,7 +1567,15 @@ late final _sel_selectRow_inComponent_animated_ = objc.registerName( late final _sel_selectedRowInComponent_ = objc.registerName( "selectedRowInComponent:", ); +late final _sel_setDataSource_ = objc.registerName("setDataSource:"); +late final _sel_setDelegate_ = objc.registerName("setDelegate:"); late final _sel_setMode_ = objc.registerName("setMode:"); +late final _sel_setShowsSelectionIndicator_ = objc.registerName( + "setShowsSelectionIndicator:", +); +late final _sel_setStartingItemNumber_ = objc.registerName( + "setStartingItemNumber:", +); late final _sel_showsSelectionIndicator = objc.registerName( "showsSelectionIndicator", ); diff --git a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart index fd0660ea11..7b04acef7b 100644 --- a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart @@ -85,6 +85,13 @@ extension AnotherClass$Methods on AnotherClass { final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_property); return SomeClass.fromPointer($ret, retain: true, release: true); } + + /// setProperty: + set property(DartSomeClassPtr value) { + final _$$ref = object$.ref; + final _$$ref$1 = value.ref; + _objc_msgSend_xtuoz7(_$$ref.pointer, _sel_setProperty_, _$$ref$1.pointer); + } } /// SomeClass @@ -225,11 +232,29 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); late final _sel_property = objc.registerName("property"); +late final _sel_setProperty_ = objc.registerName("setProperty:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; From 370fb10678f9b149bf44bfbc29ab86a01bc07073 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 14:16:59 +1000 Subject: [PATCH 14/54] regen --- .../libclang-example/generated_bindings.dart | 57 +- .../objective_c/avf_audio_bindings.dart | 3811 +++++++++- .../example/swift/swift_api_bindings.dart | 2937 ++++++++ .../lib/src/code_generator/typealias.dart | 2 +- .../clang_bindings/clang_bindings.dart | 53 +- .../_expected_dart_handle_bindings.dart | 5 +- ...expected_native_func_typedef_bindings.dart | 13 +- ..._expected_struct_fptr_fields_bindings.dart | 4 +- .../_expected_typedef_bindings.dart | 4 +- .../_expected_libclang_bindings.dart | 79 + .../_expected_sqlite_bindings.dart | 674 ++ .../native_objc_test/arc_test_bindings.dart | 83 + .../bad_method_test_bindings.dart | 84 + .../bad_override_test_bindings.dart | 86 + .../block_annotation_test_bindings.dart | 85 + .../block_inherit_test_bindings.dart | 84 + .../native_objc_test/block_test_bindings.dart | 83 + .../native_objc_test/cast_test_bindings.dart | 82 + .../category_test_bindings.dart | 85 + .../native_objc_test/enum_test_bindings.dart | 83 + .../error_method_test_bindings.dart | 82 + .../failed_to_load_test_bindings.dart | 82 + .../forward_decl_test_bindings.dart | 82 + .../global_native_test_bindings.dart | 85 + .../global_test_bindings.dart | 85 + .../inherited_instancetype_test_bindings.dart | 83 + .../is_instance_test_bindings.dart | 83 + .../isolate_test_bindings.dart | 85 + .../native_objc_test/log_test_bindings.dart | 83 + .../method_filtering_test_bindings.dart | 84 + .../method_test_bindings.dart | 84 + .../native_objc_test_bindings.dart | 82 + .../nullable_inheritance_test_bindings.dart | 83 + .../nullable_test_bindings.dart | 83 + .../property_test_bindings.dart | 84 + .../protocol_test_bindings.dart | 86 + .../ref_count_test_bindings.dart | 84 + .../rename_test_bindings.dart | 83 + .../runtime_version_test_bindings.dart | 82 + .../sdk_variable_test_bindings.dart | 6532 +++++++++++++++-- .../static_func_native_test_bindings.dart | 85 + .../static_func_test_bindings.dart | 85 + .../string_test_bindings.dart | 83 + .../swift_class_test_bindings.dart | 2953 +++++++- .../typedef_test_bindings.dart | 84 + 45 files changed, 18850 insertions(+), 951 deletions(-) diff --git a/pkgs/ffigen/example/libclang-example/generated_bindings.dart b/pkgs/ffigen/example/libclang-example/generated_bindings.dart index 3af7ee5463..207c7c3e0d 100644 --- a/pkgs/ffigen/example/libclang-example/generated_bindings.dart +++ b/pkgs/ffigen/example/libclang-example/generated_bindings.dart @@ -8230,15 +8230,19 @@ typedef CXCursorSet = ffi.Pointer; /// The visitor should return one of the \c CXChildVisitResult values /// to direct clang_visitCursorChildren(). typedef CXCursorVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ) - > - >; + ffi.Pointer>; +typedef CXCursorVisitorFunction = + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ); +typedef DartCXCursorVisitorFunction = + CXChildVisitResult Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ); /// A single diagnostic, containing the diagnostic's severity, /// location, text, source ranges, and fix-it hints. @@ -8356,11 +8360,11 @@ enum CXEvalResultKind { /// The visitor should return one of the \c CXVisitorResult values /// to direct \c clang_Type_visitFields. typedef CXFieldVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor C, CXClientData client_data) - > - >; + ffi.Pointer>; +typedef CXFieldVisitorFunction = + ffi.UnsignedInt Function(CXCursor C, CXClientData client_data); +typedef DartCXFieldVisitorFunction = + CXVisitorResult Function(CXCursor C, CXClientData client_data); /// A particular source file that is part of a translation unit. typedef CXFile = ffi.Pointer; @@ -8901,16 +8905,21 @@ final class CXIdxObjCProtocolRefListInfo extends ffi.Struct { /// array is sorted in order of immediate inclusion. For example, /// the first element refers to the location that included 'included_file'. typedef CXInclusionVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - CXClientData client_data, - ) - > - >; + ffi.Pointer>; +typedef CXInclusionVisitorFunction = + ffi.Void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + CXClientData client_data, + ); +typedef DartCXInclusionVisitorFunction = + void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + int include_len, + CXClientData client_data, + ); /// An "index" that consists of a set of translation units that would /// typically be linked together into an executable or library. diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index a5c0bfe631..ab5d56a2c9 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -11,6 +11,195 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef AECoerceDescProcPtrFunction = + ffi.Short Function( + ffi.Pointer fromDesc, + ffi.UnsignedInt toType, + ffi.Pointer handlerRefcon, + ffi.Pointer toDesc, + ); +typedef DartAECoerceDescProcPtrFunction = + int Function( + ffi.Pointer fromDesc, + int toType, + ffi.Pointer handlerRefcon, + ffi.Pointer toDesc, + ); +typedef AECoercePtrProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt typeCode, + ffi.Pointer dataPtr, + ffi.Long dataSize, + ffi.UnsignedInt toType, + ffi.Pointer handlerRefcon, + ffi.Pointer result, + ); +typedef DartAECoercePtrProcPtrFunction = + int Function( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + int toType, + ffi.Pointer handlerRefcon, + ffi.Pointer result, + ); +typedef AEDisposeExternalProcPtrFunction = + ffi.Void Function( + ffi.Pointer dataPtr, + ffi.Long dataLength, + ffi.Pointer refcon, + ); +typedef DartAEDisposeExternalProcPtrFunction = + void Function( + ffi.Pointer dataPtr, + int dataLength, + ffi.Pointer refcon, + ); +typedef AEEventHandlerProcPtrFunction = + ffi.Short Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + ffi.Pointer handlerRefcon, + ); +typedef DartAEEventHandlerProcPtrFunction = + int Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + ffi.Pointer handlerRefcon, + ); + +final class AERemoteProcessResolver extends ffi.Opaque {} + +typedef AERemoteProcessResolverCallbackFunction = + ffi.Void Function( + ffi.Pointer ref, + ffi.Pointer info, + ); +typedef DartAERemoteProcessResolverCallbackFunction = + void Function( + ffi.Pointer ref, + ffi.Pointer info, + ); +typedef ATSCubicClosePathProcPtrFunction = + ffi.Int Function(ffi.Pointer callBackDataPtr); +typedef DartATSCubicClosePathProcPtrFunction = + int Function(ffi.Pointer callBackDataPtr); +typedef ATSCubicCurveToProcPtrFunction = + ffi.Int Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer pt3, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSCubicCurveToProcPtrFunction = + int Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer pt3, + ffi.Pointer callBackDataPtr, + ); +typedef ATSCubicLineToProcPtrFunction = + ffi.Int Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSCubicLineToProcPtrFunction = + int Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef ATSCubicMoveToProcPtrFunction = + ffi.Int Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSCubicMoveToProcPtrFunction = + int Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef ATSFontApplierFunctionFunction = + ffi.Int Function(ffi.UnsignedInt iFont, ffi.Pointer iRefCon); +typedef DartATSFontApplierFunctionFunction = + int Function(int iFont, ffi.Pointer iRefCon); +typedef ATSFontFamilyApplierFunctionFunction = + ffi.Int Function(ffi.UnsignedInt iFamily, ffi.Pointer iRefCon); +typedef DartATSFontFamilyApplierFunctionFunction = + int Function(int iFamily, ffi.Pointer iRefCon); + +final class ATSFontNotificationInfoRef_ extends ffi.Opaque {} + +typedef ATSFontQueryCallbackFunction = + ffi.Pointer Function( + ffi.UnsignedInt msgid, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef DartATSFontQueryCallbackFunction = + ffi.Pointer Function( + ATSFontQueryMessageID msgid, + ffi.Pointer data, + ffi.Pointer refCon, + ); + +enum ATSFontQueryMessageID { + kATSQueryActivateFontMessage(1635021665); + + final int value; + const ATSFontQueryMessageID(this.value); + + static ATSFontQueryMessageID fromValue(int value) => switch (value) { + 1635021665 => kATSQueryActivateFontMessage, + _ => throw ArgumentError('Unknown value for ATSFontQueryMessageID: $value'), + }; +} + +typedef ATSNotificationCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer refCon, + ); +typedef DartATSNotificationCallbackFunction = + void Function( + ffi.Pointer info, + ffi.Pointer refCon, + ); +typedef ATSQuadraticClosePathProcPtrFunction = + ffi.Int Function(ffi.Pointer callBackDataPtr); +typedef DartATSQuadraticClosePathProcPtrFunction = + int Function(ffi.Pointer callBackDataPtr); +typedef ATSQuadraticCurveProcPtrFunction = + ffi.Int Function( + ffi.Pointer pt1, + ffi.Pointer controlPt, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSQuadraticCurveProcPtrFunction = + int Function( + ffi.Pointer pt1, + ffi.Pointer controlPt, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef ATSQuadraticLineProcPtrFunction = + ffi.Int Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSQuadraticLineProcPtrFunction = + int Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef ATSQuadraticNewPathProcPtrFunction = + ffi.Int Function(ffi.Pointer callBackDataPtr); +typedef DartATSQuadraticNewPathProcPtrFunction = + int Function(ffi.Pointer callBackDataPtr); + +final class ATSTrapezoid extends ffi.Opaque {} /// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include /// AVAudioFormat in your config's objc-interfaces list. @@ -762,6 +951,40 @@ extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); } +typedef AXObserverCallbackFunction = + ffi.Void Function( + ffi.Pointer<__AXObserver> observer, + ffi.Pointer<__AXUIElement> element, + ffi.Pointer notification, + ffi.Pointer refcon, + ); +typedef DartAXObserverCallbackFunction = + void Function( + ffi.Pointer<__AXObserver> observer, + ffi.Pointer<__AXUIElement> element, + ffi.Pointer notification, + ffi.Pointer refcon, + ); +typedef AXObserverCallbackWithInfoFunction = + ffi.Void Function( + ffi.Pointer<__AXObserver> observer, + ffi.Pointer<__AXUIElement> element, + ffi.Pointer notification, + ffi.Pointer<__CFDictionary> info, + ffi.Pointer refcon, + ); +typedef DartAXObserverCallbackWithInfoFunction = + void Function( + ffi.Pointer<__AXObserver> observer, + ffi.Pointer<__AXUIElement> element, + ffi.Pointer notification, + ffi.Pointer<__CFDictionary> info, + ffi.Pointer refcon, + ); + +@ffi.Packed(2) +final class BitMap extends ffi.Opaque {} + /// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include /// CASpatialAudioExperience in your config's objc-interfaces list. /// @@ -779,222 +1002,3175 @@ extension type CASpatialAudioExperience._(objc.ObjCObject object$) }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} } -@ffi.Native>( - symbol: 'OBJC_CLASS_\$_AVAudioPlayer', -) -external ffi.Pointer _class_AVAudioPlayer_raw; -final _class_AVAudioPlayer = objc.getClass( - "AVAudioPlayer", - () => ffi.Native.addressOf>( - _class_AVAudioPlayer_raw, - ).cast(), -); -final _objc_msgSend_151sglz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18chyc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1p4uk9e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - double, - ) - >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFArrayApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFArrayApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFArrayCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFArrayEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFArrayEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFArrayReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFArrayReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFArrayRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBagApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFBagApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFBagCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFBagEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFBagEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFBagHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFBagHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFBagReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFBagReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBagRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBinaryHeapApplierFunctionFunction = + ffi.Void Function(ffi.Pointer val, ffi.Pointer context); +typedef DartCFBinaryHeapApplierFunctionFunction = + void Function(ffi.Pointer val, ffi.Pointer context); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef CFDictionaryApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFDictionaryApplierFunctionFunction = + void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef CFDictionaryCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFDictionaryEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFDictionaryEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFDictionaryHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFDictionaryHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFDictionaryReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFDictionaryReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFDictionaryRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFFileDescriptorCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFFileDescriptor> f, + ffi.UnsignedLong callBackTypes, + ffi.Pointer info, + ); +typedef DartCFFileDescriptorCallBackFunction = + void Function( + ffi.Pointer<__CFFileDescriptor> f, + int callBackTypes, + ffi.Pointer info, + ); +typedef CFHostClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFHost> theHost, + ffi.UnsignedInt typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFHostClientCallBackFunction = + void Function( + ffi.Pointer<__CFHost> theHost, + CFHostInfoType typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ); + +enum CFHostInfoType { + kCFHostAddresses(0), + kCFHostNames(1), + kCFHostReachability(2); + + final int value; + const CFHostInfoType(this.value); + + static CFHostInfoType fromValue(int value) => switch (value) { + 0 => kCFHostAddresses, + 1 => kCFHostNames, + 2 => kCFHostReachability, + _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), + }; +} + +typedef CFMachPortCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer msg, + ffi.Long size, + ffi.Pointer info, + ); +typedef DartCFMachPortCallBackFunction = + void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer msg, + int size, + ffi.Pointer info, + ); +typedef CFMachPortInvalidationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer info, + ); +typedef DartCFMachPortInvalidationCallBackFunction = + void Function(ffi.Pointer<__CFMachPort> port, ffi.Pointer info); +typedef CFMessagePortCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFMessagePort> local, + ffi.Int msgid, + ffi.Pointer<__CFData> data, + ffi.Pointer info, + ); +typedef DartCFMessagePortCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFMessagePort> local, + int msgid, + ffi.Pointer<__CFData> data, + ffi.Pointer info, + ); +typedef CFMessagePortInvalidationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMessagePort> ms, + ffi.Pointer info, + ); +typedef DartCFMessagePortInvalidationCallBackFunction = + void Function(ffi.Pointer<__CFMessagePort> ms, ffi.Pointer info); +typedef CFNetServiceBrowserClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetServiceBrowser> browser, + ffi.UnsignedLong flags, + ffi.Pointer domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceBrowserClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetServiceBrowser> browser, + int flags, + ffi.Pointer domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef CFNetServiceClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetService> theService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetService> theService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef CFNetServiceMonitorClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetServiceMonitor> theMonitor, + ffi.Pointer<__CFNetService> theService, + ffi.UnsignedInt typeInfo, + ffi.Pointer<__CFData> rdata, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceMonitorClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetServiceMonitor> theMonitor, + ffi.Pointer<__CFNetService> theService, + CFNetServiceMonitorType typeInfo, + ffi.Pointer<__CFData> rdata, + ffi.Pointer error, + ffi.Pointer info, + ); + +enum CFNetServiceMonitorType { + kCFNetServiceMonitorTXT(1); + + final int value; + const CFNetServiceMonitorType(this.value); + + static CFNetServiceMonitorType fromValue(int value) => switch (value) { + 1 => kCFNetServiceMonitorTXT, + _ => throw ArgumentError( + 'Unknown value for CFNetServiceMonitorType: $value', + ), + }; +} + +typedef CFNotificationCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CFNotificationCenter> center, + ffi.Pointer observer, + ffi.Pointer name, + ffi.Pointer object, + ffi.Pointer<__CFDictionary> userInfo, + ); +typedef DartCFNotificationCallbackFunction = + void Function( + ffi.Pointer<__CFNotificationCenter> center, + ffi.Pointer observer, + ffi.Pointer name, + ffi.Pointer object, + ffi.Pointer<__CFDictionary> userInfo, + ); +typedef CFPlugInDynamicRegisterFunctionFunction = + ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); +typedef DartCFPlugInDynamicRegisterFunctionFunction = + void Function(ffi.Pointer<__CFBundle> plugIn); +typedef CFPlugInFactoryFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer<__CFUUID> typeUUID, + ); +typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = + ffi.Void Function(ffi.Pointer instanceData); +typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = + void Function(ffi.Pointer instanceData); +typedef CFPlugInInstanceGetInterfaceFunctionFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__CFPlugInInstance> instance, + ffi.Pointer interfaceName, + ffi.Pointer> ftbl, + ); +typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = + int Function( + ffi.Pointer<__CFPlugInInstance> instance, + ffi.Pointer interfaceName, + ffi.Pointer> ftbl, + ); +typedef CFPlugInUnloadFunctionFunction = + ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); +typedef DartCFPlugInUnloadFunctionFunction = + void Function(ffi.Pointer<__CFBundle> plugIn); +typedef CFProxyAutoConfigurationResultCallbackFunction = + ffi.Void Function( + ffi.Pointer client, + ffi.Pointer<__CFArray> proxyList, + ffi.Pointer<__CFError> error, + ); +typedef DartCFProxyAutoConfigurationResultCallbackFunction = + void Function( + ffi.Pointer client, + ffi.Pointer<__CFArray> proxyList, + ffi.Pointer<__CFError> error, + ); + +final class CFRange extends ffi.Opaque {} + +typedef CFReadStreamClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFReadStream> stream, + ffi.UnsignedLong type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFReadStreamClientCallBackFunction = + void Function( + ffi.Pointer<__CFReadStream> stream, + int type, + ffi.Pointer clientCallBackInfo, + ); + +sealed class CFRunLoopActivity { + static const kCFRunLoopEntry = 1; + static const kCFRunLoopBeforeTimers = 2; + static const kCFRunLoopBeforeSources = 4; + static const kCFRunLoopBeforeWaiting = 32; + static const kCFRunLoopAfterWaiting = 64; + static const kCFRunLoopExit = 128; + static const kCFRunLoopAllActivities = 268435455; +} + +typedef CFRunLoopObserverCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFRunLoopObserver> observer, + ffi.UnsignedLong activity, + ffi.Pointer info, + ); +typedef DartCFRunLoopObserverCallBackFunction = + void Function( + ffi.Pointer<__CFRunLoopObserver> observer, + int activity, + ffi.Pointer info, + ); +typedef CFRunLoopTimerCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFRunLoopTimer> timer, + ffi.Pointer info, + ); +typedef DartCFRunLoopTimerCallBackFunction = + void Function( + ffi.Pointer<__CFRunLoopTimer> timer, + ffi.Pointer info, + ); +typedef CFSetApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFSetApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFSetCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFSetEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFSetEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFSetHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFSetHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFSetReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFSetReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFSetRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFSocketCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFSocket> s, + ffi.UnsignedLong type, + ffi.Pointer<__CFData> address, + ffi.Pointer data, + ffi.Pointer info, + ); +typedef DartCFSocketCallBackFunction = + void Function( + ffi.Pointer<__CFSocket> s, + int type, + ffi.Pointer<__CFData> address, + ffi.Pointer data, + ffi.Pointer info, + ); + +sealed class CFSocketCallBackType { + static const kCFSocketNoCallBack = 0; + static const kCFSocketReadCallBack = 1; + static const kCFSocketAcceptCallBack = 2; + static const kCFSocketDataCallBack = 3; + static const kCFSocketConnectCallBack = 4; + static const kCFSocketWriteCallBack = 8; +} + +final class CFStreamError extends ffi.Opaque {} + +sealed class CFStreamEventType { + static const kCFStreamEventNone = 0; + static const kCFStreamEventOpenCompleted = 1; + static const kCFStreamEventHasBytesAvailable = 2; + static const kCFStreamEventCanAcceptBytes = 4; + static const kCFStreamEventErrorOccurred = 8; + static const kCFStreamEventEndEncountered = 16; +} + +typedef CFTreeApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFTreeApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFTreeCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFTreeReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFTreeReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFTreeRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFUserNotificationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFUserNotification> userNotification, + ffi.UnsignedLong responseFlags, + ); +typedef DartCFUserNotificationCallBackFunction = + void Function( + ffi.Pointer<__CFUserNotification> userNotification, + int responseFlags, + ); +typedef CFWriteStreamClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFWriteStream> stream, + ffi.UnsignedLong type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFWriteStreamClientCallBackFunction = + void Function( + ffi.Pointer<__CFWriteStream> stream, + int type, + ffi.Pointer clientCallBackInfo, + ); + +final class CFXMLExternalID extends ffi.Opaque {} + +typedef CFXMLParserAddChildCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, + ); +typedef DartCFXMLParserAddChildCallBackFunction = + void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, + ); +typedef CFXMLParserCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFXMLParserCreateXMLStructureCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer<__CFXMLNode> nodeDesc, + ffi.Pointer info, + ); +typedef CFXMLParserEndXMLStructureCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ); +typedef DartCFXMLParserEndXMLStructureCallBackFunction = + void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ); +typedef CFXMLParserHandleErrorCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Long error, + ffi.Pointer info, + ); +typedef DartCFXMLParserHandleErrorCallBackFunction = + int Function( + ffi.Pointer<__CFXMLParser> parser, + int error, + ffi.Pointer info, + ); +typedef CFXMLParserReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFXMLParserReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFXMLParserResolveExternalEntityCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer extID, + ffi.Pointer info, + ); +typedef CFXMLParserRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); + +sealed class CFXMLParserStatusCode { + static const kCFXMLStatusParseNotBegun = -2; + static const kCFXMLStatusParseInProgress = -1; + static const kCFXMLStatusParseSuccessful = 0; + static const kCFXMLErrorUnexpectedEOF = 1; + static const kCFXMLErrorUnknownEncoding = 2; + static const kCFXMLErrorEncodingConversionFailure = 3; + static const kCFXMLErrorMalformedProcessingInstruction = 4; + static const kCFXMLErrorMalformedDTD = 5; + static const kCFXMLErrorMalformedName = 6; + static const kCFXMLErrorMalformedCDSect = 7; + static const kCFXMLErrorMalformedCloseTag = 8; + static const kCFXMLErrorMalformedStartTag = 9; + static const kCFXMLErrorMalformedDocument = 10; + static const kCFXMLErrorElementlessDocument = 11; + static const kCFXMLErrorMalformedComment = 12; + static const kCFXMLErrorMalformedCharacterReference = 13; + static const kCFXMLErrorMalformedParsedCharacterData = 14; + static const kCFXMLErrorNoData = 15; +} + +typedef CGBitmapContextReleaseDataCallbackFunction = + ffi.Void Function( + ffi.Pointer releaseInfo, + ffi.Pointer data, + ); +typedef DartCGBitmapContextReleaseDataCallbackFunction = + void Function( + ffi.Pointer releaseInfo, + ffi.Pointer data, + ); + +final class CGContext extends ffi.Opaque {} + +typedef CGDataConsumerPutBytesCallbackFunction = + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + ffi.Size count, + ); +typedef DartCGDataConsumerPutBytesCallbackFunction = + int Function( + ffi.Pointer info, + ffi.Pointer buffer, + int count, + ); +typedef CGDataConsumerReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGDataConsumerReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGDataProviderGetBytePointerCallbackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CGDataProviderGetBytesAtPositionCallbackFunction = + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + ffi.LongLong pos, + ffi.Size cnt, + ); +typedef DartCGDataProviderGetBytesAtPositionCallbackFunction = + int Function( + ffi.Pointer info, + ffi.Pointer buffer, + int pos, + int cnt, + ); +typedef CGDataProviderGetBytesCallbackFunction = + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + ffi.Size count, + ); +typedef DartCGDataProviderGetBytesCallbackFunction = + int Function( + ffi.Pointer info, + ffi.Pointer buffer, + int count, + ); +typedef CGDataProviderReleaseBytePointerCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer pointer, + ); +typedef DartCGDataProviderReleaseBytePointerCallbackFunction = + void Function(ffi.Pointer info, ffi.Pointer pointer); +typedef CGDataProviderReleaseDataCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer data, + ffi.Size size, + ); +typedef DartCGDataProviderReleaseDataCallbackFunction = + void Function( + ffi.Pointer info, + ffi.Pointer data, + int size, + ); +typedef CGDataProviderReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGDataProviderReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGDataProviderRewindCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGDataProviderRewindCallbackFunction = + void Function(ffi.Pointer info); +typedef CGDataProviderSkipForwardCallbackFunction = + ffi.LongLong Function(ffi.Pointer info, ffi.LongLong count); +typedef DartCGDataProviderSkipForwardCallbackFunction = + int Function(ffi.Pointer info, int count); + +sealed class CGDisplayChangeSummaryFlags { + static const kCGDisplayBeginConfigurationFlag = 1; + static const kCGDisplayMovedFlag = 2; + static const kCGDisplaySetMainFlag = 4; + static const kCGDisplaySetModeFlag = 8; + static const kCGDisplayAddFlag = 16; + static const kCGDisplayRemoveFlag = 32; + static const kCGDisplayEnabledFlag = 256; + static const kCGDisplayDisabledFlag = 512; + static const kCGDisplayMirrorFlag = 1024; + static const kCGDisplayUnMirrorFlag = 2048; + static const kCGDisplayDesktopShapeChangedFlag = 4096; +} + +typedef CGDisplayReconfigurationCallBackFunction = + ffi.Void Function( + ffi.Uint32 display, + ffi.Uint32 flags, + ffi.Pointer userInfo, + ); +typedef DartCGDisplayReconfigurationCallBackFunction = + void Function(int display, int flags, ffi.Pointer userInfo); +typedef CGErrorCallbackFunction = ffi.Void Function(); +typedef DartCGErrorCallbackFunction = void Function(); +typedef CGEventTapCallBackFunction = + ffi.Pointer<__CGEvent> Function( + ffi.Pointer<__CGEventTapProxy> proxy, + ffi.Uint32 type, + ffi.Pointer<__CGEvent> event, + ffi.Pointer userInfo, + ); +typedef DartCGEventTapCallBackFunction = + ffi.Pointer<__CGEvent> Function( + ffi.Pointer<__CGEventTapProxy> proxy, + CGEventType type, + ffi.Pointer<__CGEvent> event, + ffi.Pointer userInfo, + ); + +enum CGEventType { + kCGEventNull(0), + kCGEventLeftMouseDown(1), + kCGEventLeftMouseUp(2), + kCGEventRightMouseDown(3), + kCGEventRightMouseUp(4), + kCGEventMouseMoved(5), + kCGEventLeftMouseDragged(6), + kCGEventRightMouseDragged(7), + kCGEventKeyDown(10), + kCGEventKeyUp(11), + kCGEventFlagsChanged(12), + kCGEventScrollWheel(22), + kCGEventTabletPointer(23), + kCGEventTabletProximity(24), + kCGEventOtherMouseDown(25), + kCGEventOtherMouseUp(26), + kCGEventOtherMouseDragged(27), + kCGEventTapDisabledByTimeout(-2), + kCGEventTapDisabledByUserInput(-1); + + final int value; + const CGEventType(this.value); + + static CGEventType fromValue(int value) => switch (value) { + 0 => kCGEventNull, + 1 => kCGEventLeftMouseDown, + 2 => kCGEventLeftMouseUp, + 3 => kCGEventRightMouseDown, + 4 => kCGEventRightMouseUp, + 5 => kCGEventMouseMoved, + 6 => kCGEventLeftMouseDragged, + 7 => kCGEventRightMouseDragged, + 10 => kCGEventKeyDown, + 11 => kCGEventKeyUp, + 12 => kCGEventFlagsChanged, + 22 => kCGEventScrollWheel, + 23 => kCGEventTabletPointer, + 24 => kCGEventTabletProximity, + 25 => kCGEventOtherMouseDown, + 26 => kCGEventOtherMouseUp, + 27 => kCGEventOtherMouseDragged, + -2 => kCGEventTapDisabledByTimeout, + -1 => kCGEventTapDisabledByUserInput, + _ => throw ArgumentError('Unknown value for CGEventType: $value'), + }; +} + +typedef CGFunctionEvaluateCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer in$, + ffi.Pointer out, + ); +typedef DartCGFunctionEvaluateCallbackFunction = + void Function( + ffi.Pointer info, + ffi.Pointer in$, + ffi.Pointer out, + ); +typedef CGFunctionReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGFunctionReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGPDFDictionaryApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer info, + ); +typedef DartCGPDFDictionaryApplierFunctionFunction = + void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer info, + ); + +final class CGPDFObject extends ffi.Opaque {} + +typedef CGPDFOperatorCallbackFunction = + ffi.Void Function( + ffi.Pointer scanner, + ffi.Pointer info, + ); +typedef DartCGPDFOperatorCallbackFunction = + void Function( + ffi.Pointer scanner, + ffi.Pointer info, + ); + +final class CGPDFScanner extends ffi.Opaque {} + +typedef CGPSConverterBeginDocumentCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPSConverterBeginDocumentCallbackFunction = + void Function(ffi.Pointer info); +typedef CGPSConverterBeginPageCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Size pageNumber, + ffi.Pointer<__CFDictionary> pageInfo, + ); +typedef DartCGPSConverterBeginPageCallbackFunction = + void Function( + ffi.Pointer info, + int pageNumber, + ffi.Pointer<__CFDictionary> pageInfo, + ); +typedef CGPSConverterEndDocumentCallbackFunction = + ffi.Void Function(ffi.Pointer info, ffi.Bool success); +typedef DartCGPSConverterEndDocumentCallbackFunction = + void Function(ffi.Pointer info, bool success); +typedef CGPSConverterEndPageCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Size pageNumber, + ffi.Pointer<__CFDictionary> pageInfo, + ); +typedef DartCGPSConverterEndPageCallbackFunction = + void Function( + ffi.Pointer info, + int pageNumber, + ffi.Pointer<__CFDictionary> pageInfo, + ); +typedef CGPSConverterMessageCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer message, + ); +typedef DartCGPSConverterMessageCallbackFunction = + void Function( + ffi.Pointer info, + ffi.Pointer message, + ); +typedef CGPSConverterProgressCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPSConverterProgressCallbackFunction = + void Function(ffi.Pointer info); +typedef CGPSConverterReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPSConverterReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGPathApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer element, + ); +typedef DartCGPathApplierFunctionFunction = + void Function( + ffi.Pointer info, + ffi.Pointer element, + ); + +final class CGPathElement extends ffi.Opaque {} + +typedef CGPatternDrawPatternCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer context, + ); +typedef DartCGPatternDrawPatternCallbackFunction = + void Function(ffi.Pointer info, ffi.Pointer context); +typedef CGPatternReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPatternReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGScreenRefreshCallbackFunction = + ffi.Void Function( + ffi.Uint32 count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); +typedef DartCGScreenRefreshCallbackFunction = + void Function( + int count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); +typedef CGScreenUpdateMoveCallbackFunction = + ffi.Void Function( + CGScreenUpdateMoveDelta delta, + ffi.Size count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); +typedef DartCGScreenUpdateMoveCallbackFunction = + void Function( + CGScreenUpdateMoveDelta delta, + int count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); + +final class CGScreenUpdateMoveDelta extends ffi.Opaque {} + +typedef CMBitmapCallBackProcPtrFunction = + ffi.UnsignedChar Function(ffi.Int progress, ffi.Pointer refCon); +typedef DartCMBitmapCallBackProcPtrFunction = + int Function(int progress, ffi.Pointer refCon); +typedef CMConcatCallBackProcPtrFunction = + ffi.UnsignedChar Function(ffi.Int progress, ffi.Pointer refCon); +typedef DartCMConcatCallBackProcPtrFunction = + int Function(int progress, ffi.Pointer refCon); + +final class CMDeviceInfo extends ffi.Opaque {} + +typedef CMFlattenProcPtrFunction = + ffi.Short Function( + ffi.Int command, + ffi.Pointer size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef DartCMFlattenProcPtrFunction = + int Function( + int command, + ffi.Pointer size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef CMIterateDeviceInfoProcPtrFunction = + ffi.Short Function( + ffi.Pointer deviceInfo, + ffi.Pointer refCon, + ); +typedef DartCMIterateDeviceInfoProcPtrFunction = + int Function( + ffi.Pointer deviceInfo, + ffi.Pointer refCon, + ); +typedef CMIterateDeviceProfileProcPtrFunction = + ffi.Short Function( + ffi.Pointer deviceInfo, + ffi.Pointer profileInfo, + ffi.Pointer refCon, + ); +typedef DartCMIterateDeviceProfileProcPtrFunction = + int Function( + ffi.Pointer deviceInfo, + ffi.Pointer profileInfo, + ffi.Pointer refCon, + ); +typedef CMLabToLabProcPtrFunction = + ffi.Void Function( + ffi.Pointer L, + ffi.Pointer a, + ffi.Pointer b, + ffi.Pointer refcon, + ); +typedef DartCMLabToLabProcPtrFunction = + void Function( + ffi.Pointer L, + ffi.Pointer a, + ffi.Pointer b, + ffi.Pointer refcon, + ); +typedef CMMApplyTransformProcFunction = + ffi.Bool Function( + ffi.Pointer transform, + ffi.Size width, + ffi.Size height, + ffi.Size dstPlanes, + ffi.Pointer> dst, + ffi.UnsignedInt dstDepth, + ffi.Uint32 dstFormat, + ffi.Size dstBytesPerRow, + ffi.Size srcPlanes, + ffi.Pointer> src, + ffi.UnsignedInt srcDepth, + ffi.Uint32 srcFormat, + ffi.Size srcBytesPerRow, + ffi.Pointer<__CFDictionary> options, + ); +typedef DartCMMApplyTransformProcFunction = + bool Function( + ffi.Pointer transform, + int width, + int height, + int dstPlanes, + ffi.Pointer> dst, + ColorSyncDataDepth dstDepth, + int dstFormat, + int dstBytesPerRow, + int srcPlanes, + ffi.Pointer> src, + ColorSyncDataDepth srcDepth, + int srcFormat, + int srcBytesPerRow, + ffi.Pointer<__CFDictionary> options, + ); +typedef CMMCreateTransformPropertyProcFunction = + ffi.Pointer Function( + ffi.Pointer transform, + ffi.Pointer key, + ffi.Pointer<__CFDictionary> options, + ); + +final class CMMInfo extends ffi.Opaque {} + +typedef CMMInitializeLinkProfileProcFunction = + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer<__CFArray>, + ffi.Pointer<__CFDictionary>, + ); +typedef DartCMMInitializeLinkProfileProcFunction = + bool Function( + ffi.Pointer, + ffi.Pointer<__CFArray>, + ffi.Pointer<__CFDictionary>, + ); +typedef CMMInitializeTransformProcFunction = + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer<__CFArray>, + ffi.Pointer<__CFDictionary>, + ); +typedef DartCMMInitializeTransformProcFunction = + bool Function( + ffi.Pointer, + ffi.Pointer<__CFArray>, + ffi.Pointer<__CFDictionary>, + ); +typedef CMMIterateProcPtrFunction = + ffi.Short Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); +typedef DartCMMIterateProcPtrFunction = + int Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); + +final class CMProfileIterateData extends ffi.Opaque {} + +typedef CMProfileIterateProcPtrFunction = + ffi.Short Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); +typedef DartCMProfileIterateProcPtrFunction = + int Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); +typedef CSIdentityQueryReceiveEventCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CSIdentityQuery> query, + ffi.Long event, + ffi.Pointer<__CFArray> identities, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef DartCSIdentityQueryReceiveEventCallbackFunction = + void Function( + ffi.Pointer<__CSIdentityQuery> query, + int event, + ffi.Pointer<__CFArray> identities, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef CSIdentityStatusUpdatedCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CSIdentity> identity, + ffi.Long status, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef DartCSIdentityStatusUpdatedCallbackFunction = + void Function( + ffi.Pointer<__CSIdentity> identity, + int status, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef CSSM_ACL_SUBJECT_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer SubjectRequest, + ffi.Pointer SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = + int Function( + ffi.Pointer SubjectRequest, + ffi.Pointer SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef CSSM_API_ModuleEventHandlerFunction = + ffi.Int32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + ffi.Uint32 SubserviceId, + ffi.Uint32 ServiceType, + ffi.Uint32 EventType, + ); +typedef DartCSSM_API_ModuleEventHandlerFunction = + int Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + int SubserviceId, + int ServiceType, + int EventType, + ); +typedef CSSM_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer OutData, + ffi.Pointer CallerCtx, + ); +typedef DartCSSM_CALLBACKFunction = + int Function( + ffi.Pointer OutData, + ffi.Pointer CallerCtx, + ); +typedef CSSM_CALLOCFunction = + ffi.Pointer Function( + ffi.Uint32 num, + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_CALLOCFunction = + ffi.Pointer Function( + int num, + int size, + ffi.Pointer allocref, + ); +typedef CSSM_CHALLENGE_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer Challenge, + ffi.Pointer Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_CHALLENGE_CALLBACKFunction = + int Function( + ffi.Pointer Challenge, + ffi.Pointer Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ); +typedef CSSM_FREEFunction = + ffi.Void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef DartCSSM_FREEFunction = + void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef CSSM_MALLOCFunction = + ffi.Pointer Function( + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_MALLOCFunction = + ffi.Pointer Function(int size, ffi.Pointer allocref); +typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); +typedef DartCSSM_PROC_ADDRFunction = void Function(); +typedef CSSM_REALLOCFunction = + ffi.Pointer Function( + ffi.Pointer memblock, + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_REALLOCFunction = + ffi.Pointer Function( + ffi.Pointer memblock, + int size, + ffi.Pointer allocref, + ); +typedef CSSM_SPI_ModuleEventHandlerFunction = + ffi.Int32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + ffi.Uint32 SubserviceId, + ffi.Uint32 ServiceType, + ffi.Uint32 EventType, + ); +typedef DartCSSM_SPI_ModuleEventHandlerFunction = + int Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + int SubserviceId, + int ServiceType, + int EventType, + ); +typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = + ffi.Int32 Function( + ffi.IntPtr ModuleHandle, + ffi.Pointer CallerCtx, + ffi.Pointer VerifiedCert, + ); +typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = + int Function( + int ModuleHandle, + ffi.Pointer CallerCtx, + ffi.Pointer VerifiedCert, + ); +typedef CSSM_UPCALLS_CALLOCFunction = + ffi.Pointer Function( + ffi.IntPtr AddInHandle, + ffi.Size num, + ffi.Size size, + ); +typedef DartCSSM_UPCALLS_CALLOCFunction = + ffi.Pointer Function(int AddInHandle, int num, int size); +typedef CSSM_UPCALLS_FREEFunction = + ffi.Void Function(ffi.IntPtr AddInHandle, ffi.Pointer memblock); +typedef DartCSSM_UPCALLS_FREEFunction = + void Function(int AddInHandle, ffi.Pointer memblock); +typedef CSSM_UPCALLS_MALLOCFunction = + ffi.Pointer Function(ffi.IntPtr AddInHandle, ffi.Size size); +typedef DartCSSM_UPCALLS_MALLOCFunction = + ffi.Pointer Function(int AddInHandle, int size); +typedef CSSM_UPCALLS_REALLOCFunction = + ffi.Pointer Function( + ffi.IntPtr AddInHandle, + ffi.Pointer memblock, + ffi.Size size, + ); +typedef DartCSSM_UPCALLS_REALLOCFunction = + ffi.Pointer Function( + int AddInHandle, + ffi.Pointer memblock, + int size, + ); +typedef CTFontCollectionSortDescriptorsCallbackFunction = + ffi.Long Function( + ffi.Pointer<__CTFontDescriptor> first, + ffi.Pointer<__CTFontDescriptor> second, + ffi.Pointer refCon, + ); +typedef DartCTFontCollectionSortDescriptorsCallbackFunction = + CFComparisonResult Function( + ffi.Pointer<__CTFontDescriptor> first, + ffi.Pointer<__CTFontDescriptor> second, + ffi.Pointer refCon, + ); +typedef CTRunDelegateDeallocateCallbackFunction = + ffi.Void Function(ffi.Pointer refCon); +typedef DartCTRunDelegateDeallocateCallbackFunction = + void Function(ffi.Pointer refCon); +typedef CTRunDelegateGetAscentCallbackFunction = + ffi.Double Function(ffi.Pointer refCon); +typedef DartCTRunDelegateGetAscentCallbackFunction = + double Function(ffi.Pointer refCon); +typedef CTRunDelegateGetDescentCallbackFunction = + ffi.Double Function(ffi.Pointer refCon); +typedef DartCTRunDelegateGetDescentCallbackFunction = + double Function(ffi.Pointer refCon); +typedef CTRunDelegateGetWidthCallbackFunction = + ffi.Double Function(ffi.Pointer refCon); +typedef DartCTRunDelegateGetWidthCallbackFunction = + double Function(ffi.Pointer refCon); +typedef CVDisplayLinkOutputCallbackFunction = + ffi.Int32 Function( + ffi.Pointer<__CVDisplayLink> displayLink, + ffi.Pointer inNow, + ffi.Pointer inOutputTime, + ffi.Uint64 flagsIn, + ffi.Pointer flagsOut, + ffi.Pointer displayLinkContext, + ); +typedef DartCVDisplayLinkOutputCallbackFunction = + int Function( + ffi.Pointer<__CVDisplayLink> displayLink, + ffi.Pointer inNow, + ffi.Pointer inOutputTime, + int flagsIn, + ffi.Pointer flagsOut, + ffi.Pointer displayLinkContext, + ); +typedef CVFillExtendedPixelsCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__CVBuffer> pixelBuffer, + ffi.Pointer refCon, + ); +typedef DartCVFillExtendedPixelsCallBackFunction = + int Function( + ffi.Pointer<__CVBuffer> pixelBuffer, + ffi.Pointer refCon, + ); +typedef CVPixelBufferReleaseBytesCallbackFunction = + ffi.Void Function( + ffi.Pointer releaseRefCon, + ffi.Pointer baseAddress, + ); +typedef DartCVPixelBufferReleaseBytesCallbackFunction = + void Function( + ffi.Pointer releaseRefCon, + ffi.Pointer baseAddress, + ); +typedef CVPixelBufferReleasePlanarBytesCallbackFunction = + ffi.Void Function( + ffi.Pointer releaseRefCon, + ffi.Pointer dataPtr, + ffi.Size dataSize, + ffi.Size numberOfPlanes, + ffi.Pointer> planeAddresses, + ); +typedef DartCVPixelBufferReleasePlanarBytesCallbackFunction = + void Function( + ffi.Pointer releaseRefCon, + ffi.Pointer dataPtr, + int dataSize, + int numberOfPlanes, + ffi.Pointer> planeAddresses, + ); + +final class CVTimeStamp extends ffi.Opaque {} + +typedef CollectionExceptionProcPtrFunction = + ffi.Short Function(ffi.Pointer c, ffi.Short status); +typedef DartCollectionExceptionProcPtrFunction = + int Function(ffi.Pointer c, int status); +typedef CollectionFlattenProcPtrFunction = + ffi.Short Function( + ffi.Int size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef DartCollectionFlattenProcPtrFunction = + int Function( + int size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef ColorComplementProcPtrFunction = + ffi.UnsignedChar Function(ffi.Pointer rgb); +typedef DartColorComplementProcPtrFunction = + int Function(ffi.Pointer rgb); +typedef ColorSearchProcPtrFunction = + ffi.UnsignedChar Function( + ffi.Pointer rgb, + ffi.Pointer position, + ); +typedef DartColorSearchProcPtrFunction = + int Function(ffi.Pointer rgb, ffi.Pointer position); + +final class ColorSyncCMM extends ffi.Opaque {} + +typedef ColorSyncCMMIterateCallbackFunction = + ffi.Bool Function( + ffi.Pointer cmm, + ffi.Pointer userInfo, + ); +typedef DartColorSyncCMMIterateCallbackFunction = + bool Function( + ffi.Pointer cmm, + ffi.Pointer userInfo, + ); + +enum ColorSyncDataDepth { + kColorSync1BitGamut(1), + kColorSync8BitInteger(2), + kColorSync16BitInteger(3), + kColorSync16BitFloat(4), + kColorSync32BitInteger(5), + kColorSync32BitNamedColorIndex(6), + kColorSync32BitFloat(7), + kColorSync10BitInteger(8); + + final int value; + const ColorSyncDataDepth(this.value); + + static ColorSyncDataDepth fromValue(int value) => switch (value) { + 1 => kColorSync1BitGamut, + 2 => kColorSync8BitInteger, + 3 => kColorSync16BitInteger, + 4 => kColorSync16BitFloat, + 5 => kColorSync32BitInteger, + 6 => kColorSync32BitNamedColorIndex, + 7 => kColorSync32BitFloat, + 8 => kColorSync10BitInteger, + _ => throw ArgumentError('Unknown value for ColorSyncDataDepth: $value'), + }; +} + +typedef ColorSyncDeviceProfileIterateCallbackFunction = + ffi.Bool Function( + ffi.Pointer<__CFDictionary> colorSyncDeviceProfileInfo, + ffi.Pointer userInfo, + ); +typedef DartColorSyncDeviceProfileIterateCallbackFunction = + bool Function( + ffi.Pointer<__CFDictionary> colorSyncDeviceProfileInfo, + ffi.Pointer userInfo, + ); + +final class ColorSyncProfile extends ffi.Opaque {} + +typedef ColorSyncProfileIterateCallbackFunction = + ffi.Bool Function( + ffi.Pointer<__CFDictionary> profileInfo, + ffi.Pointer userInfo, + ); +typedef DartColorSyncProfileIterateCallbackFunction = + bool Function( + ffi.Pointer<__CFDictionary> profileInfo, + ffi.Pointer userInfo, + ); + +final class ColorSyncTransform extends ffi.Opaque {} + +@ffi.Packed(2) +final class ComponentMPWorkFunctionHeaderRecord extends ffi.Opaque {} + +typedef ComponentMPWorkFunctionProcPtrFunction = + ffi.Int Function( + ffi.Pointer globalRefCon, + ffi.Pointer header, + ); +typedef DartComponentMPWorkFunctionProcPtrFunction = + int Function( + ffi.Pointer globalRefCon, + ffi.Pointer header, + ); + +@ffi.Packed(2) +final class ComponentParameters extends ffi.Opaque {} + +@ffi.Packed(2) +final class ComponentRecord extends ffi.Opaque {} + +typedef ComponentRoutineProcPtrFunction = + ffi.Int Function( + ffi.Pointer cp, + ffi.Pointer> componentStorage, + ); +typedef DartComponentRoutineProcPtrFunction = + int Function( + ffi.Pointer cp, + ffi.Pointer> componentStorage, + ); +typedef CoreEndianFlipProcFunction = + ffi.Int Function( + ffi.UnsignedInt dataDomain, + ffi.UnsignedInt dataType, + ffi.Short id, + ffi.Pointer dataPtr, + ffi.UnsignedLong dataSize, + ffi.UnsignedChar currentlyNative, + ffi.Pointer refcon, + ); +typedef DartCoreEndianFlipProcFunction = + int Function( + int dataDomain, + int dataType, + int id, + ffi.Pointer dataPtr, + int dataSize, + int currentlyNative, + ffi.Pointer refcon, + ); +typedef DebugAssertOutputHandlerProcPtrFunction = + ffi.Void Function( + ffi.UnsignedInt componentSignature, + ffi.UnsignedInt options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + ffi.Long lineNumber, + ffi.Pointer value, + ffi.Pointer outputMsg, + ); +typedef DartDebugAssertOutputHandlerProcPtrFunction = + void Function( + int componentSignature, + int options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + int lineNumber, + ffi.Pointer value, + ffi.Pointer outputMsg, + ); +typedef DebugComponentCallbackProcPtrFunction = + ffi.Void Function( + ffi.Int optionSelectorNum, + ffi.UnsignedInt command, + ffi.Pointer optionSetting, + ); +typedef DartDebugComponentCallbackProcPtrFunction = + void Function( + int optionSelectorNum, + int command, + ffi.Pointer optionSetting, + ); +typedef DebuggerDisposeThreadProcPtrFunction = + ffi.Void Function(ffi.UnsignedLong threadDeleted); +typedef DartDebuggerDisposeThreadProcPtrFunction = + void Function(int threadDeleted); +typedef DebuggerNewThreadProcPtrFunction = + ffi.Void Function(ffi.UnsignedLong threadCreated); +typedef DartDebuggerNewThreadProcPtrFunction = void Function(int threadCreated); +typedef DebuggerThreadSchedulerProcPtrFunction = + ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); +typedef DartDebuggerThreadSchedulerProcPtrFunction = + int Function(ffi.Pointer schedulerInfo); +typedef DeferredTaskProcPtrFunction = ffi.Void Function(ffi.Long dtParam); +typedef DartDeferredTaskProcPtrFunction = void Function(int dtParam); +typedef DragGrayRgnProcPtrFunction = ffi.Void Function(); +typedef DartDragGrayRgnProcPtrFunction = void Function(); +typedef ExceptionHandlerProcPtrFunction = + ffi.Int Function(ffi.Pointer theException); +typedef DartExceptionHandlerProcPtrFunction = + int Function(ffi.Pointer theException); + +final class ExceptionInformation extends ffi.Opaque {} + +typedef FNSubscriptionProcPtrFunction = + ffi.Void Function( + ffi.UnsignedInt message, + ffi.UnsignedInt flags, + ffi.Pointer refcon, + ffi.Pointer subscription, + ); +typedef DartFNSubscriptionProcPtrFunction = + void Function( + int message, + int flags, + ffi.Pointer refcon, + ffi.Pointer subscription, + ); +typedef FSAliasFilterProcPtrFunction = + ffi.UnsignedChar Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + ffi.Pointer myDataPtr, + ); +typedef DartFSAliasFilterProcPtrFunction = + int Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + ffi.Pointer myDataPtr, + ); +typedef FSEventStreamCallbackFunction = + ffi.Void Function( + ffi.Pointer<__FSEventStream> streamRef, + ffi.Pointer clientCallBackInfo, + ffi.Size numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ); +typedef DartFSEventStreamCallbackFunction = + void Function( + ffi.Pointer<__FSEventStream> streamRef, + ffi.Pointer clientCallBackInfo, + int numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ); +typedef FSFileOperationStatusProcPtrFunction = + ffi.Void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + ffi.UnsignedInt stage, + ffi.Int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef DartFSFileOperationStatusProcPtrFunction = + void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + int stage, + int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef FSPathFileOperationStatusProcPtrFunction = + ffi.Void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + ffi.UnsignedInt stage, + ffi.Int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef DartFSPathFileOperationStatusProcPtrFunction = + void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + int stage, + int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); + +final class FSRef extends ffi.Opaque {} + +typedef FSVolumeEjectProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short volumeRefNum, + ffi.Int dissenter, + ); +typedef DartFSVolumeEjectProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + ); +typedef FSVolumeMountProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short mountedVolumeRefNum, + ); +typedef DartFSVolumeMountProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int mountedVolumeRefNum, + ); +typedef FSVolumeUnmountProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short volumeRefNum, + ffi.Int dissenter, + ); +typedef DartFSVolumeUnmountProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + ); + +@ffi.Packed(2) +final class Float32Point extends ffi.Opaque {} + +typedef FolderManagerNotificationProcPtrFunction = + ffi.Int Function( + ffi.UnsignedInt message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ); +typedef DartFolderManagerNotificationProcPtrFunction = + int Function( + int message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ); + +final class FontInfo extends ffi.Opaque {} + +typedef GetMissingComponentResourceProcPtrFunction = + ffi.Short Function( + ffi.Pointer c, + ffi.UnsignedInt resType, + ffi.Short resID, + ffi.Pointer refCon, + ffi.Pointer>> resource, + ); +typedef DartGetMissingComponentResourceProcPtrFunction = + int Function( + ffi.Pointer c, + int resType, + int resID, + ffi.Pointer refCon, + ffi.Pointer>> resource, + ); +typedef HIShapeEnumerateProcPtrFunction = + ffi.Int Function( + ffi.Int inMessage, + ffi.Pointer<__HIShape> inShape, + ffi.Pointer inRect, + ffi.Pointer inRefcon, + ); +typedef DartHIShapeEnumerateProcPtrFunction = + int Function( + int inMessage, + ffi.Pointer<__HIShape> inShape, + ffi.Pointer inRect, + ffi.Pointer inRefcon, + ); +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef IOAsyncCallback0Function = + ffi.Void Function(ffi.Pointer refcon, ffi.Int result); +typedef DartIOAsyncCallback0Function = + void Function(ffi.Pointer refcon, int result); +typedef IOAsyncCallback1Function = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer arg0, + ); +typedef DartIOAsyncCallback1Function = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer arg0, + ); +typedef IOAsyncCallback2Function = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ); +typedef DartIOAsyncCallback2Function = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ); +typedef IOAsyncCallbackFunction = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer> args, + ffi.Uint32 numArgs, + ); +typedef DartIOAsyncCallbackFunction = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer> args, + int numArgs, + ); +typedef IOCompletionProcPtrFunction = + ffi.Void Function(ffi.Pointer paramBlock); +typedef DartIOCompletionProcPtrFunction = + void Function(ffi.Pointer paramBlock); +typedef IOServiceInterestCallbackFunction = + ffi.Void Function( + ffi.Pointer refcon, + ffi.UnsignedInt service, + ffi.Uint32 messageType, + ffi.Pointer messageArgument, + ); +typedef DartIOServiceInterestCallbackFunction = + void Function( + ffi.Pointer refcon, + int service, + int messageType, + ffi.Pointer messageArgument, + ); +typedef IOServiceMatchingCallbackFunction = + ffi.Void Function(ffi.Pointer refcon, ffi.UnsignedInt iterator); +typedef DartIOServiceMatchingCallbackFunction = + void Function(ffi.Pointer refcon, int iterator); +typedef IconActionProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt theType, + ffi.Pointer>> theIcon, + ffi.Pointer yourDataPtr, + ); +typedef DartIconActionProcPtrFunction = + int Function( + int theType, + ffi.Pointer>> theIcon, + ffi.Pointer yourDataPtr, + ); +typedef IconGetterProcPtrFunction = + ffi.Pointer> Function( + ffi.UnsignedInt theType, + ffi.Pointer yourDataPtr, + ); +typedef DartIconGetterProcPtrFunction = + ffi.Pointer> Function( + int theType, + ffi.Pointer yourDataPtr, + ); +typedef IndexToUCStringProcPtrFunction = + ffi.UnsignedChar Function( + ffi.UnsignedInt index, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer> outString, + ffi.Pointer tsOptions, + ); +typedef DartIndexToUCStringProcPtrFunction = + int Function( + int index, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer> outString, + ffi.Pointer tsOptions, + ); + +@ffi.Packed(2) +final class KCCallbackInfo extends ffi.Opaque {} + +typedef KCCallbackProcPtrFunction = + ffi.Int Function( + ffi.UnsignedShort keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ); +typedef DartKCCallbackProcPtrFunction = + int Function( + int keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ); +typedef LSSharedFileListChangedProcPtrFunction = + ffi.Void Function( + ffi.Pointer inList, + ffi.Pointer context, + ); +typedef DartLSSharedFileListChangedProcPtrFunction = + void Function( + ffi.Pointer inList, + ffi.Pointer context, + ); +typedef MDQueryCreateResultFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__MDQuery> query, + ffi.Pointer<__MDItem> item, + ffi.Pointer context, + ); +typedef MDQueryCreateValueFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__MDQuery> query, + ffi.Pointer attrName, + ffi.Pointer attrValue, + ffi.Pointer context, + ); +typedef MDQuerySortComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer> attrs1, + ffi.Pointer> attrs2, + ffi.Pointer context, + ); +typedef DartMDQuerySortComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer> attrs1, + ffi.Pointer> attrs2, + ffi.Pointer context, + ); +typedef MPIsFullyInitializedProcFunction = ffi.UnsignedChar Function(); +typedef DartMPIsFullyInitializedProcFunction = int Function(); +typedef MPRemoteProcedureFunction = + ffi.Pointer Function(ffi.Pointer parameter); + +final class MacPolygon extends ffi.Opaque {} + +final class NCMDeviceProfileInfo extends ffi.Opaque {} + +typedef OSLAccessorProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt desiredClass, + ffi.Pointer container, + ffi.UnsignedInt containerClass, + ffi.UnsignedInt form, + ffi.Pointer selectionData, + ffi.Pointer value, + ffi.Pointer accessorRefcon, + ); +typedef DartOSLAccessorProcPtrFunction = + int Function( + int desiredClass, + ffi.Pointer container, + int containerClass, + int form, + ffi.Pointer selectionData, + ffi.Pointer value, + ffi.Pointer accessorRefcon, + ); +typedef OSLAdjustMarksProcPtrFunction = + ffi.Short Function( + ffi.Long newStart, + ffi.Long newStop, + ffi.Pointer markToken, + ); +typedef DartOSLAdjustMarksProcPtrFunction = + int Function(int newStart, int newStop, ffi.Pointer markToken); +typedef OSLCompareProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ); +typedef DartOSLCompareProcPtrFunction = + int Function( + int oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ); +typedef OSLCountProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt desiredType, + ffi.UnsignedInt containerClass, + ffi.Pointer container, + ffi.Pointer result, + ); +typedef DartOSLCountProcPtrFunction = + int Function( + int desiredType, + int containerClass, + ffi.Pointer container, + ffi.Pointer result, + ); +typedef OSLDisposeTokenProcPtrFunction = + ffi.Short Function(ffi.Pointer unneededToken); +typedef DartOSLDisposeTokenProcPtrFunction = + int Function(ffi.Pointer unneededToken); +typedef OSLGetErrDescProcPtrFunction = + ffi.Short Function(ffi.Pointer> appDescPtr); +typedef DartOSLGetErrDescProcPtrFunction = + int Function(ffi.Pointer> appDescPtr); +typedef OSLGetMarkTokenProcPtrFunction = + ffi.Short Function( + ffi.Pointer dContainerToken, + ffi.UnsignedInt containerClass, + ffi.Pointer result, + ); +typedef DartOSLGetMarkTokenProcPtrFunction = + int Function( + ffi.Pointer dContainerToken, + int containerClass, + ffi.Pointer result, + ); +typedef OSLMarkProcPtrFunction = + ffi.Short Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + ffi.Long index, + ); +typedef DartOSLMarkProcPtrFunction = + int Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + int index, + ); + +/// Construction methods for `objc.ObjCBlock Function()>`. +abstract final class ObjCBlock_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function()> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function()>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function()> fromFunctionPointer( + ffi.Pointer Function()>> ptr, + ) => objc.ObjCBlock Function()>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function()> fromFunction( + ffi.Pointer<__CFError> Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function()>( + objc.newClosureBlock(_closureCallable, () { + return fn(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer<__CFError> _fnPtrTrampoline( + ffi.Pointer block, + ) => block.ref.target + .cast Function()>>() + .asFunction Function()>()(); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer<__CFError> _closureTrampoline( + ffi.Pointer block, + ) => (objc.getBlockClosure(block) as ffi.Pointer<__CFError> Function())(); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function()>`. +extension ObjCBlock_CFErrorRef$CallExtension + on objc.ObjCBlock Function()> { + ffi.Pointer<__CFError> call() { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFError> Function( + ffi.Pointer block, + ) + > + >() + .asFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >()(ref.pointer); + } +} + +final class OpaqueATSUTextLayout extends ffi.Opaque {} + +final class OpaqueCollection extends ffi.Opaque {} + +final class OpaqueFNSubscriptionRef extends ffi.Opaque {} + +final class OpaqueFSVolumeOperation extends ffi.Opaque {} + +final class OpaqueGrafPtr extends ffi.Opaque {} + +final class OpaqueLSSharedFileListRef extends ffi.Opaque {} + +final class OpaquePasteboardRef extends ffi.Opaque {} + +final class OpaqueRgnHandle extends ffi.Opaque {} + +final class OpaqueSecTransformImplementation extends ffi.Opaque {} + +final class OpaqueTECObjectRef extends ffi.Opaque {} + +final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} + +final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} + +final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} + +typedef PasteboardPromiseKeeperProcPtrFunction = + ffi.Int Function( + ffi.Pointer pasteboard, + ffi.Pointer item, + ffi.Pointer flavorType, + ffi.Pointer context, + ); +typedef DartPasteboardPromiseKeeperProcPtrFunction = + int Function( + ffi.Pointer pasteboard, + ffi.Pointer item, + ffi.Pointer flavorType, + ffi.Pointer context, + ); + +final class Point extends ffi.Opaque {} + +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef QDArcProcPtrFunction = + ffi.Void Function( + ffi.SignedChar verb, + ffi.Pointer r, + ffi.Short startAngle, + ffi.Short arcAngle, + ); +typedef DartQDArcProcPtrFunction = + void Function(int verb, ffi.Pointer r, int startAngle, int arcAngle); +typedef QDBitsProcPtrFunction = + ffi.Void Function( + ffi.Pointer srcBits, + ffi.Pointer srcRect, + ffi.Pointer dstRect, + ffi.Short mode, + ffi.Pointer maskRgn, + ); +typedef DartQDBitsProcPtrFunction = + void Function( + ffi.Pointer srcBits, + ffi.Pointer srcRect, + ffi.Pointer dstRect, + int mode, + ffi.Pointer maskRgn, + ); +typedef QDCommentProcPtrFunction = + ffi.Void Function( + ffi.Short kind, + ffi.Short dataSize, + ffi.Pointer> dataHandle, + ); +typedef DartQDCommentProcPtrFunction = + void Function( + int kind, + int dataSize, + ffi.Pointer> dataHandle, + ); +typedef QDGetPicProcPtrFunction = + ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); +typedef DartQDGetPicProcPtrFunction = + void Function(ffi.Pointer dataPtr, int byteCount); +typedef QDJShieldCursorProcPtrFunction = + ffi.Void Function( + ffi.Short left, + ffi.Short top, + ffi.Short right, + ffi.Short bottom, + ); +typedef DartQDJShieldCursorProcPtrFunction = + void Function(int left, int top, int right, int bottom); +typedef QDLineProcPtrFunction = ffi.Void Function(Point newPt); +typedef DartQDLineProcPtrFunction = void Function(Point newPt); +typedef QDOpcodeProcPtrFunction = + ffi.Void Function( + ffi.Pointer fromRect, + ffi.Pointer toRect, + ffi.UnsignedShort opcode, + ffi.Short version, + ); +typedef DartQDOpcodeProcPtrFunction = + void Function( + ffi.Pointer fromRect, + ffi.Pointer toRect, + int opcode, + int version, + ); +typedef QDOvalProcPtrFunction = + ffi.Void Function(ffi.SignedChar verb, ffi.Pointer r); +typedef DartQDOvalProcPtrFunction = + void Function(int verb, ffi.Pointer r); +typedef QDPolyProcPtrFunction = + ffi.Void Function( + ffi.SignedChar verb, + ffi.Pointer> poly, + ); +typedef DartQDPolyProcPtrFunction = + void Function(int verb, ffi.Pointer> poly); +typedef QDPrinterStatusProcPtrFunction = + ffi.Int Function( + ffi.Int opcode, + ffi.Pointer currentPort, + ffi.Pointer printerStatus, + ); +typedef DartQDPrinterStatusProcPtrFunction = + int Function( + int opcode, + ffi.Pointer currentPort, + ffi.Pointer printerStatus, + ); +typedef QDPutPicProcPtrFunction = + ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); +typedef DartQDPutPicProcPtrFunction = + void Function(ffi.Pointer dataPtr, int byteCount); +typedef QDRRectProcPtrFunction = + ffi.Void Function( + ffi.SignedChar verb, + ffi.Pointer r, + ffi.Short ovalWidth, + ffi.Short ovalHeight, + ); +typedef DartQDRRectProcPtrFunction = + void Function(int verb, ffi.Pointer r, int ovalWidth, int ovalHeight); +typedef QDRectProcPtrFunction = + ffi.Void Function(ffi.SignedChar verb, ffi.Pointer r); +typedef DartQDRectProcPtrFunction = + void Function(int verb, ffi.Pointer r); +typedef QDRgnProcPtrFunction = + ffi.Void Function(ffi.SignedChar verb, ffi.Pointer rgn); +typedef DartQDRgnProcPtrFunction = + void Function(int verb, ffi.Pointer rgn); +typedef QDStdGlyphsProcPtrFunction = + ffi.Int Function(ffi.Pointer dataStream, ffi.UnsignedLong size); +typedef DartQDStdGlyphsProcPtrFunction = + int Function(ffi.Pointer dataStream, int size); +typedef QDTextProcPtrFunction = + ffi.Void Function( + ffi.Short byteCount, + ffi.Pointer textBuf, + Point numer, + Point denom, + ); +typedef DartQDTextProcPtrFunction = + void Function( + int byteCount, + ffi.Pointer textBuf, + Point numer, + Point denom, + ); +typedef QDTxMeasProcPtrFunction = + ffi.Short Function( + ffi.Short byteCount, + ffi.Pointer textAddr, + ffi.Pointer numer, + ffi.Pointer denom, + ffi.Pointer info, + ); +typedef DartQDTxMeasProcPtrFunction = + int Function( + int byteCount, + ffi.Pointer textAddr, + ffi.Pointer numer, + ffi.Pointer denom, + ffi.Pointer info, + ); + +final class RGBColor extends ffi.Opaque {} + +final class Rect extends ffi.Opaque {} + +typedef RedrawBackgroundProcPtrFunction = + ffi.UnsignedChar Function( + ffi.Pointer iLayout, + ffi.UnsignedLong iTextOffset, + ffi.UnsignedLong iTextLength, + ffi.Pointer iUnhighlightArea, + ffi.UnsignedLong iTrapezoidCount, + ); +typedef DartRedrawBackgroundProcPtrFunction = + int Function( + ffi.Pointer iLayout, + int iTextOffset, + int iTextLength, + ffi.Pointer iUnhighlightArea, + int iTrapezoidCount, + ); +typedef RegionToRectsProcPtrFunction = + ffi.Int Function( + ffi.UnsignedShort message, + ffi.Pointer rgn, + ffi.Pointer rect, + ffi.Pointer refCon, + ); +typedef DartRegionToRectsProcPtrFunction = + int Function( + int message, + ffi.Pointer rgn, + ffi.Pointer rect, + ffi.Pointer refCon, + ); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); +typedef ResErrProcPtrFunction = ffi.Void Function(ffi.Short thErr); +typedef DartResErrProcPtrFunction = void Function(int thErr); +typedef ResourceEndianFilterPtrFunction = + ffi.Short Function( + ffi.Pointer> theResource, + ffi.UnsignedChar currentlyNativeEndian, + ); +typedef DartResourceEndianFilterPtrFunction = + int Function( + ffi.Pointer> theResource, + int currentlyNativeEndian, + ); +typedef SKSearchResultsFilterCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__SKIndex> inIndex, + ffi.Pointer inDocument, + ffi.Pointer inContext, + ); +typedef DartSKSearchResultsFilterCallBackFunction = + int Function( + ffi.Pointer<__SKIndex> inIndex, + ffi.Pointer inDocument, + ffi.Pointer inContext, + ); +typedef SSLReadFuncFunction = + ffi.Int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLReadFuncFunction = + int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef SSLWriteFuncFunction = + ffi.Int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLWriteFuncFunction = + int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); + +@ffi.Packed(2) +final class SchedulerInfoRec extends ffi.Opaque {} + +typedef SecKeychainCallbackFunction = + ffi.Int Function( + ffi.UnsignedInt keychainEvent, + ffi.Pointer info, + ffi.Pointer context, + ); +typedef DartSecKeychainCallbackFunction = + int Function( + SecKeychainEvent keychainEvent, + ffi.Pointer info, + ffi.Pointer context, + ); + +final class SecKeychainCallbackInfo extends ffi.Opaque {} + +enum SecKeychainEvent { + kSecLockEvent(1), + kSecUnlockEvent(2), + kSecAddEvent(3), + kSecDeleteEvent(4), + kSecUpdateEvent(5), + kSecPasswordChangedEvent(6), + kSecDefaultChangedEvent(9), + kSecDataAccessEvent(10), + kSecKeychainListChangedEvent(11), + kSecTrustSettingsChangedEvent(12); + + final int value; + const SecKeychainEvent(this.value); + + static SecKeychainEvent fromValue(int value) => switch (value) { + 1 => kSecLockEvent, + 2 => kSecUnlockEvent, + 3 => kSecAddEvent, + 4 => kSecDeleteEvent, + 5 => kSecUpdateEvent, + 6 => kSecPasswordChangedEvent, + 9 => kSecDefaultChangedEvent, + 10 => kSecDataAccessEvent, + 11 => kSecKeychainListChangedEvent, + 12 => kSecTrustSettingsChangedEvent, + _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), + }; +} + +typedef SecTransformCreateFPFunction = + ffi.Pointer Function( + ffi.Pointer name, + ffi.Pointer newTransform, + ffi.Pointer ref, + ); +typedef DartSecTransformCreateFPFunction = + objc.ObjCBlock Function()> Function( + ffi.Pointer name, + ffi.Pointer newTransform, + ffi.Pointer ref, + ); +typedef SelectorFunctionProcPtrFunction = + ffi.Short Function(ffi.UnsignedInt selector, ffi.Pointer response); +typedef DartSelectorFunctionProcPtrFunction = + int Function(int selector, ffi.Pointer response); +typedef SleepQProcPtrFunction = + ffi.Long Function(ffi.Long message, ffi.Pointer qRecPtr); +typedef DartSleepQProcPtrFunction = + int Function(int message, ffi.Pointer qRecPtr); + +@ffi.Packed(2) +final class SleepQRec extends ffi.Opaque {} + +@ffi.Packed(2) +final class SpeechChannelRecord extends ffi.Opaque {} + +typedef SpeechDoneProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ); +typedef DartSpeechDoneProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ); +typedef SpeechErrorCFProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer<__CFError> theError, + ); +typedef DartSpeechErrorCFProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer<__CFError> theError, + ); +typedef SpeechErrorProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Short theError, + ffi.Long bytePos, + ); +typedef DartSpeechErrorProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + int theError, + int bytePos, + ); +typedef SpeechPhonemeProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Short phonemeOpcode, + ); +typedef DartSpeechPhonemeProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + int phonemeOpcode, + ); +typedef SpeechSyncProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.UnsignedInt syncMessage, + ); +typedef DartSpeechSyncProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + int syncMessage, + ); +typedef SpeechTextDoneProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer> nextBuf, + ffi.Pointer byteLen, + ffi.Pointer controlFlags, + ); +typedef DartSpeechTextDoneProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer> nextBuf, + ffi.Pointer byteLen, + ffi.Pointer controlFlags, + ); +typedef SpeechWordCFProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer aString, + CFRange wordRange, + ); +typedef DartSpeechWordCFProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer aString, + CFRange wordRange, + ); +typedef SpeechWordProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.UnsignedLong wordPos, + ffi.UnsignedShort wordLen, + ); +typedef DartSpeechWordProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + int wordPos, + int wordLen, + ); + +@ffi.Packed(2) +final class TECConversionInfo extends ffi.Opaque {} + +final class TECConverterContextRec extends ffi.Opaque {} + +typedef TECPluginClearContextInfoPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginClearContextInfoPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginClearSnifferContextInfoPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginClearSnifferContextInfoPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef TECPluginConvertTextEncodingPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginConvertTextEncodingPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); + +final class TECPluginDispatchTable extends ffi.Opaque {} + +typedef TECPluginDisposeEncodingConverterPtrFunction = + ffi.Int Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginDisposeEncodingConverterPtrFunction = + int Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginDisposeEncodingSnifferPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginDisposeEncodingSnifferPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef TECPluginFlushConversionPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginFlushConversionPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginGetCountAvailableSniffersPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableSniffersPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountAvailableTextEncodingPairsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableTextEncodingPairsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountAvailableTextEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableTextEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountDestinationTextEncodingsPtrFunction = + ffi.Int Function( + ffi.UnsignedInt inputEncoding, + ffi.Pointer destinationEncodings, + ffi.UnsignedLong maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ); +typedef DartTECPluginGetCountDestinationTextEncodingsPtrFunction = + int Function( + int inputEncoding, + ffi.Pointer destinationEncodings, + int maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ); +typedef TECPluginGetCountMailEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountMailEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountSubTextEncodingsPtrFunction = + ffi.Int Function( + ffi.UnsignedInt inputEncoding, + ffi.Pointer subEncodings, + ffi.UnsignedLong maxSubEncodings, + ffi.Pointer actualSubEncodings, + ); +typedef DartTECPluginGetCountSubTextEncodingsPtrFunction = + int Function( + int inputEncoding, + ffi.Pointer subEncodings, + int maxSubEncodings, + ffi.Pointer actualSubEncodings, + ); +typedef TECPluginGetCountWebEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountWebEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetPluginDispatchTablePtrFunction = + ffi.Pointer Function(); +typedef TECPluginGetTextEncodingFromInternetNamePtrFunction = + ffi.Int Function( + ffi.Pointer textEncoding, + ffi.Pointer encodingName, + ); +typedef DartTECPluginGetTextEncodingFromInternetNamePtrFunction = + int Function( + ffi.Pointer textEncoding, + ffi.Pointer encodingName, + ); +typedef TECPluginGetTextEncodingInternetNamePtrFunction = + ffi.Int Function( + ffi.UnsignedInt textEncoding, + ffi.Pointer encodingName, + ); +typedef DartTECPluginGetTextEncodingInternetNamePtrFunction = + int Function(int textEncoding, ffi.Pointer encodingName); +typedef TECPluginNewEncodingConverterPtrFunction = + ffi.Int Function( + ffi.Pointer> newEncodingConverter, + ffi.Pointer plugContext, + ffi.UnsignedInt inputEncoding, + ffi.UnsignedInt outputEncoding, + ); +typedef DartTECPluginNewEncodingConverterPtrFunction = + int Function( + ffi.Pointer> newEncodingConverter, + ffi.Pointer plugContext, + int inputEncoding, + int outputEncoding, + ); +typedef TECPluginNewEncodingSnifferPtrFunction = + ffi.Int Function( + ffi.Pointer> encodingSniffer, + ffi.Pointer snifContext, + ffi.UnsignedInt inputEncoding, + ); +typedef DartTECPluginNewEncodingSnifferPtrFunction = + int Function( + ffi.Pointer> encodingSniffer, + ffi.Pointer snifContext, + int inputEncoding, + ); +typedef TECPluginSniffTextEncodingPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginSniffTextEncodingPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); + +final class TECSnifferContextRec extends ffi.Opaque {} + +@ffi.Packed(2) +final class TMTask extends ffi.Opaque {} + +typedef TaskProcFunction = ffi.Int Function(ffi.Pointer parameter); +typedef DartTaskProcFunction = int Function(ffi.Pointer parameter); +typedef ThreadEntryProcPtrFunction = + ffi.Pointer Function(ffi.Pointer threadParam); +typedef ThreadSchedulerProcPtrFunction = + ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); +typedef DartThreadSchedulerProcPtrFunction = + int Function(ffi.Pointer schedulerInfo); +typedef ThreadSwitchProcPtrFunction = + ffi.Void Function( + ffi.UnsignedLong threadBeingSwitched, + ffi.Pointer switchProcParam, + ); +typedef DartThreadSwitchProcPtrFunction = + void Function( + int threadBeingSwitched, + ffi.Pointer switchProcParam, + ); +typedef ThreadTerminationProcPtrFunction = + ffi.Void Function( + ffi.UnsignedLong threadTerminated, + ffi.Pointer terminationProcParam, + ); +typedef DartThreadTerminationProcPtrFunction = + void Function( + int threadTerminated, + ffi.Pointer terminationProcParam, + ); +typedef TimerProcPtrFunction = ffi.Void Function(ffi.Pointer tmTaskPtr); +typedef DartTimerProcPtrFunction = void Function(ffi.Pointer tmTaskPtr); + +@ffi.Packed(2) +final class UnicodeMapping extends ffi.Opaque {} + +typedef UnicodeToTextFallbackProcPtrFunction = + ffi.Int Function( + ffi.Pointer iSrcUniStr, + ffi.UnsignedLong iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + ffi.Pointer oDestStr, + ffi.UnsignedLong iDestStrLen, + ffi.Pointer oDestConvLen, + ffi.Pointer iInfoPtr, + ffi.Pointer iUnicodeMappingPtr, + ); +typedef DartUnicodeToTextFallbackProcPtrFunction = + int Function( + ffi.Pointer iSrcUniStr, + int iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + ffi.Pointer oDestStr, + int iDestStrLen, + ffi.Pointer oDestConvLen, + ffi.Pointer iInfoPtr, + ffi.Pointer iUnicodeMappingPtr, + ); +typedef WSClientContextCopyDescriptionCallBackProcPtrFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef WSClientContextReleaseCallBackProcPtrFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartWSClientContextReleaseCallBackProcPtrFunction = + void Function(ffi.Pointer info); +typedef WSClientContextRetainCallBackProcPtrFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef WSMethodInvocationCallBackProcPtrFunction = + ffi.Void Function( + ffi.Pointer invocation, + ffi.Pointer info, + ffi.Pointer<__CFDictionary> outRef, + ); +typedef DartWSMethodInvocationCallBackProcPtrFunction = + void Function( + ffi.Pointer invocation, + ffi.Pointer info, + ffi.Pointer<__CFDictionary> outRef, + ); +typedef WSMethodInvocationDeserializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer invocation, + ffi.Pointer<__CFTree> msgRoot, + ffi.Pointer<__CFTree> deserializeRoot, + ffi.Pointer info, + ); +typedef WSMethodInvocationSerializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer invocation, + ffi.Pointer obj, + ffi.Pointer info, + ); +typedef WSProtocolHandlerDeserializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer protocol, + ffi.Pointer<__CFTree> msgRoot, + ffi.Pointer<__CFTree> deserializeRoot, + ffi.Pointer info, + ); +typedef WSProtocolHandlerSerializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer protocol, + ffi.Pointer obj, + ffi.Pointer info, + ); + +final class __AXObserver extends ffi.Opaque {} + +final class __AXUIElement extends ffi.Opaque {} + +final class __CFAllocator extends ffi.Opaque {} + +final class __CFArray extends ffi.Opaque {} + +final class __CFBundle extends ffi.Opaque {} + +final class __CFData extends ffi.Opaque {} + +final class __CFDictionary extends ffi.Opaque {} + +final class __CFError extends ffi.Opaque {} + +final class __CFFileDescriptor extends ffi.Opaque {} + +final class __CFHost extends ffi.Opaque {} + +final class __CFMachPort extends ffi.Opaque {} + +final class __CFMessagePort extends ffi.Opaque {} + +final class __CFNetService extends ffi.Opaque {} + +final class __CFNetServiceBrowser extends ffi.Opaque {} + +final class __CFNetServiceMonitor extends ffi.Opaque {} + +final class __CFNotificationCenter extends ffi.Opaque {} + +final class __CFPlugInInstance extends ffi.Opaque {} + +final class __CFReadStream extends ffi.Opaque {} + +final class __CFRunLoopObserver extends ffi.Opaque {} + +final class __CFRunLoopTimer extends ffi.Opaque {} + +final class __CFSocket extends ffi.Opaque {} + +final class __CFTree extends ffi.Opaque {} + +final class __CFUUID extends ffi.Opaque {} + +final class __CFUserNotification extends ffi.Opaque {} + +final class __CFWriteStream extends ffi.Opaque {} + +final class __CFXMLNode extends ffi.Opaque {} + +final class __CFXMLParser extends ffi.Opaque {} + +final class __CGEvent extends ffi.Opaque {} + +final class __CGEventTapProxy extends ffi.Opaque {} + +final class __CSIdentity extends ffi.Opaque {} + +final class __CSIdentityQuery extends ffi.Opaque {} + +final class __CTFontDescriptor extends ffi.Opaque {} + +final class __CVBuffer extends ffi.Opaque {} + +final class __CVDisplayLink extends ffi.Opaque {} + +final class __FSEventStream extends ffi.Opaque {} + +final class __FSFileOperation extends ffi.Opaque {} + +final class __HIShape extends ffi.Opaque {} + +final class __MDItem extends ffi.Opaque {} + +final class __MDQuery extends ffi.Opaque {} + +final class __SKIndex extends ffi.Opaque {} + +@ffi.Native>( + symbol: 'OBJC_CLASS_\$_AVAudioPlayer', +) +external ffi.Pointer _class_AVAudioPlayer_raw; +final _class_AVAudioPlayer = objc.getClass( + "AVAudioPlayer", + () => ffi.Native.addressOf>( + _class_AVAudioPlayer_raw, + ).cast(), +); + +final class _cups_array_s extends ffi.Opaque {} + +final class _http_s extends ffi.Opaque {} + +final class _ipp_attribute_s extends ffi.Opaque {} + +final class _ipp_s extends ffi.Opaque {} + +final class _launch_data extends ffi.Opaque {} + +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18chyc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1hz7y9r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1p4uk9e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + double, + ) + >(); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1s56lr9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( ffi.Pointer, ffi.Pointer, ) @@ -1219,5 +4395,208 @@ late final _sel_stop = objc.registerName("stop"); late final _sel_updateMeters = objc.registerName("updateMeters"); late final _sel_url = objc.registerName("url"); late final _sel_volume = objc.registerName("volume"); +typedef bearer_token_callback_tFunction = + ffi.Pointer Function( + ffi.Pointer<_http_s> http, + ffi.Pointer resource, + ffi.Pointer user_data, + ); + +final class cssm_data extends ffi.Opaque {} + +final class cssm_guid extends ffi.Opaque {} + +final class cssm_list extends ffi.Opaque {} + +final class cssm_memory_funcs extends ffi.Opaque {} + +@Deprecated('Deprecated') +final class cssm_samplegroup extends ffi.Opaque {} + +typedef cups_acopy_func_tFunction = + ffi.Pointer Function( + ffi.Pointer element, + ffi.Pointer data, + ); +typedef cups_afree_func_tFunction = + ffi.Void Function( + ffi.Pointer element, + ffi.Pointer data, + ); +typedef Dartcups_afree_func_tFunction = + void Function(ffi.Pointer element, ffi.Pointer data); +typedef cups_ahash_func_tFunction = + ffi.Int Function(ffi.Pointer element, ffi.Pointer data); +typedef Dartcups_ahash_func_tFunction = + int Function(ffi.Pointer element, ffi.Pointer data); +typedef cups_array_func_tFunction = + ffi.Int Function( + ffi.Pointer first, + ffi.Pointer second, + ffi.Pointer data, + ); +typedef Dartcups_array_func_tFunction = + int Function( + ffi.Pointer first, + ffi.Pointer second, + ffi.Pointer data, + ); +typedef cups_client_cert_cb_tFunction = + ffi.Int Function( + ffi.Pointer<_http_s> http, + ffi.Pointer tls, + ffi.Pointer<_cups_array_s> distinguished_names, + ffi.Pointer user_data, + ); +typedef Dartcups_client_cert_cb_tFunction = + int Function( + ffi.Pointer<_http_s> http, + ffi.Pointer tls, + ffi.Pointer<_cups_array_s> distinguished_names, + ffi.Pointer user_data, + ); +typedef cups_dest_cb_tFunction = + ffi.Int Function( + ffi.Pointer user_data, + ffi.UnsignedInt flags, + ffi.Pointer dest, + ); +typedef Dartcups_dest_cb_tFunction = + int Function( + ffi.Pointer user_data, + int flags, + ffi.Pointer dest, + ); + +final class cups_dest_s extends ffi.Opaque {} + +typedef cups_interpret_cb_tFunction = + ffi.Int Function( + ffi.Pointer header, + ffi.Int preferred_bits, + ); +typedef Dartcups_interpret_cb_tFunction = + int Function(ffi.Pointer header, int preferred_bits); + +final class cups_page_header2_s extends ffi.Opaque {} + +typedef cups_password_cb2_tFunction = + ffi.Pointer Function( + ffi.Pointer prompt, + ffi.Pointer<_http_s> http, + ffi.Pointer method, + ffi.Pointer resource, + ffi.Pointer user_data, + ); +typedef cups_password_cb_tFunction = + ffi.Pointer Function(ffi.Pointer prompt); +typedef cups_raster_iocb_tFunction = + ffi.Long Function( + ffi.Pointer ctx, + ffi.Pointer buffer, + ffi.Size length, + ); +typedef Dartcups_raster_iocb_tFunction = + int Function( + ffi.Pointer ctx, + ffi.Pointer buffer, + int length, + ); +typedef cups_server_cert_cb_tFunction = + ffi.Int Function( + ffi.Pointer<_http_s> http, + ffi.Pointer tls, + ffi.Pointer<_cups_array_s> certs, + ffi.Pointer user_data, + ); +typedef Dartcups_server_cert_cb_tFunction = + int Function( + ffi.Pointer<_http_s> http, + ffi.Pointer tls, + ffi.Pointer<_cups_array_s> certs, + ffi.Pointer user_data, + ); +typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); +typedef http_timeout_cb_tFunction = + ffi.Int Function( + ffi.Pointer<_http_s> http, + ffi.Pointer user_data, + ); +typedef Darthttp_timeout_cb_tFunction = + int Function(ffi.Pointer<_http_s> http, ffi.Pointer user_data); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef ipp_copycb_tFunction = + ffi.Int Function( + ffi.Pointer context, + ffi.Pointer<_ipp_s> dst, + ffi.Pointer<_ipp_attribute_s> attr, + ); +typedef Dartipp_copycb_tFunction = + int Function( + ffi.Pointer context, + ffi.Pointer<_ipp_s> dst, + ffi.Pointer<_ipp_attribute_s> attr, + ); +typedef ipp_iocb_tFunction = + ffi.Long Function( + ffi.Pointer context, + ffi.Pointer buffer, + ffi.Size bytes, + ); +typedef Dartipp_iocb_tFunction = + int Function( + ffi.Pointer context, + ffi.Pointer buffer, + int bytes, + ); +typedef launch_data_dict_iterator_tFunction = + ffi.Void Function( + ffi.Pointer<_launch_data> lval, + ffi.Pointer key, + ffi.Pointer ctx, + ); +typedef Dartlaunch_data_dict_iterator_tFunction = + void Function( + ffi.Pointer<_launch_data> lval, + ffi.Pointer key, + ffi.Pointer ctx, + ); +typedef mach_error_fn_tFunction = ffi.Int Function(); +typedef Dartmach_error_fn_tFunction = int Function(); + +final class mach_msg_header_t extends ffi.Opaque {} + +typedef mig_impl_routine_tFunction = ffi.Int Function(); +typedef Dartmig_impl_routine_tFunction = int Function(); +typedef mig_server_routine_tFunction = + ffi.Pointer> Function( + ffi.Pointer InHeadP, + ); +typedef mig_stub_routine_tFunction = + ffi.Void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ); +typedef Dartmig_stub_routine_tFunction = + void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ); +typedef os_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartos_function_tFunction = void Function(ffi.Pointer); +typedef os_workgroup_working_arena_destructor_tFunction = + ffi.Void Function(ffi.Pointer); +typedef Dartos_workgroup_working_arena_destructor_tFunction = + void Function(ffi.Pointer); +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); +typedef xpc_connection_handler_tFunction = + ffi.Void Function(ffi.Pointer connection); +typedef Dartxpc_connection_handler_tFunction = + void Function(objc.NSObject connection); +typedef xpc_finalizer_tFunction = + ffi.Void Function(ffi.Pointer value); +typedef Dartxpc_finalizer_tFunction = + void Function(ffi.Pointer value); diff --git a/pkgs/ffigen/example/swift/swift_api_bindings.dart b/pkgs/ffigen/example/swift/swift_api_bindings.dart index 71cab810fc..496e01a1d6 100644 --- a/pkgs/ffigen/example/swift/swift_api_bindings.dart +++ b/pkgs/ffigen/example/swift/swift_api_bindings.dart @@ -11,6 +11,1868 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef AECoerceDescProcPtrFunction = + ffi.Short Function( + ffi.Pointer fromDesc, + ffi.UnsignedInt toType, + ffi.Pointer handlerRefcon, + ffi.Pointer toDesc, + ); +typedef DartAECoerceDescProcPtrFunction = + int Function( + ffi.Pointer fromDesc, + int toType, + ffi.Pointer handlerRefcon, + ffi.Pointer toDesc, + ); +typedef AECoercePtrProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt typeCode, + ffi.Pointer dataPtr, + ffi.Long dataSize, + ffi.UnsignedInt toType, + ffi.Pointer handlerRefcon, + ffi.Pointer result, + ); +typedef DartAECoercePtrProcPtrFunction = + int Function( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + int toType, + ffi.Pointer handlerRefcon, + ffi.Pointer result, + ); +typedef AEDisposeExternalProcPtrFunction = + ffi.Void Function( + ffi.Pointer dataPtr, + ffi.Long dataLength, + ffi.Pointer refcon, + ); +typedef DartAEDisposeExternalProcPtrFunction = + void Function( + ffi.Pointer dataPtr, + int dataLength, + ffi.Pointer refcon, + ); +typedef AEEventHandlerProcPtrFunction = + ffi.Short Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + ffi.Pointer handlerRefcon, + ); +typedef DartAEEventHandlerProcPtrFunction = + int Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + ffi.Pointer handlerRefcon, + ); + +final class AERemoteProcessResolver extends ffi.Opaque {} + +typedef AERemoteProcessResolverCallbackFunction = + ffi.Void Function( + ffi.Pointer ref, + ffi.Pointer info, + ); +typedef DartAERemoteProcessResolverCallbackFunction = + void Function( + ffi.Pointer ref, + ffi.Pointer info, + ); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFArrayApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFArrayApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFArrayCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFArrayEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFArrayEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFArrayReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFArrayReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFArrayRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBagApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFBagApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFBagCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFBagEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFBagEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFBagHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFBagHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFBagReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFBagReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBagRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBinaryHeapApplierFunctionFunction = + ffi.Void Function(ffi.Pointer val, ffi.Pointer context); +typedef DartCFBinaryHeapApplierFunctionFunction = + void Function(ffi.Pointer val, ffi.Pointer context); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef CFDictionaryApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFDictionaryApplierFunctionFunction = + void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef CFDictionaryCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFDictionaryEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFDictionaryEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFDictionaryHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFDictionaryHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFDictionaryReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFDictionaryReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFDictionaryRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFFileDescriptorCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFFileDescriptor> f, + ffi.UnsignedLong callBackTypes, + ffi.Pointer info, + ); +typedef DartCFFileDescriptorCallBackFunction = + void Function( + ffi.Pointer<__CFFileDescriptor> f, + int callBackTypes, + ffi.Pointer info, + ); +typedef CFHostClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFHost> theHost, + ffi.UnsignedInt typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFHostClientCallBackFunction = + void Function( + ffi.Pointer<__CFHost> theHost, + CFHostInfoType typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ); + +enum CFHostInfoType { + kCFHostAddresses(0), + kCFHostNames(1), + kCFHostReachability(2); + + final int value; + const CFHostInfoType(this.value); + + static CFHostInfoType fromValue(int value) => switch (value) { + 0 => kCFHostAddresses, + 1 => kCFHostNames, + 2 => kCFHostReachability, + _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), + }; +} + +typedef CFMachPortCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer msg, + ffi.Long size, + ffi.Pointer info, + ); +typedef DartCFMachPortCallBackFunction = + void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer msg, + int size, + ffi.Pointer info, + ); +typedef CFMachPortInvalidationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer info, + ); +typedef DartCFMachPortInvalidationCallBackFunction = + void Function(ffi.Pointer<__CFMachPort> port, ffi.Pointer info); +typedef CFMessagePortCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFMessagePort> local, + ffi.Int msgid, + ffi.Pointer<__CFData> data, + ffi.Pointer info, + ); +typedef DartCFMessagePortCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFMessagePort> local, + int msgid, + ffi.Pointer<__CFData> data, + ffi.Pointer info, + ); +typedef CFMessagePortInvalidationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMessagePort> ms, + ffi.Pointer info, + ); +typedef DartCFMessagePortInvalidationCallBackFunction = + void Function(ffi.Pointer<__CFMessagePort> ms, ffi.Pointer info); +typedef CFNetServiceBrowserClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetServiceBrowser> browser, + ffi.UnsignedLong flags, + ffi.Pointer domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceBrowserClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetServiceBrowser> browser, + int flags, + ffi.Pointer domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef CFNetServiceClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetService> theService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetService> theService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef CFNetServiceMonitorClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetServiceMonitor> theMonitor, + ffi.Pointer<__CFNetService> theService, + ffi.UnsignedInt typeInfo, + ffi.Pointer<__CFData> rdata, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceMonitorClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetServiceMonitor> theMonitor, + ffi.Pointer<__CFNetService> theService, + CFNetServiceMonitorType typeInfo, + ffi.Pointer<__CFData> rdata, + ffi.Pointer error, + ffi.Pointer info, + ); + +enum CFNetServiceMonitorType { + kCFNetServiceMonitorTXT(1); + + final int value; + const CFNetServiceMonitorType(this.value); + + static CFNetServiceMonitorType fromValue(int value) => switch (value) { + 1 => kCFNetServiceMonitorTXT, + _ => throw ArgumentError( + 'Unknown value for CFNetServiceMonitorType: $value', + ), + }; +} + +typedef CFNotificationCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CFNotificationCenter> center, + ffi.Pointer observer, + ffi.Pointer name, + ffi.Pointer object, + ffi.Pointer<__CFDictionary> userInfo, + ); +typedef DartCFNotificationCallbackFunction = + void Function( + ffi.Pointer<__CFNotificationCenter> center, + ffi.Pointer observer, + ffi.Pointer name, + ffi.Pointer object, + ffi.Pointer<__CFDictionary> userInfo, + ); +typedef CFPlugInDynamicRegisterFunctionFunction = + ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); +typedef DartCFPlugInDynamicRegisterFunctionFunction = + void Function(ffi.Pointer<__CFBundle> plugIn); +typedef CFPlugInFactoryFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer<__CFUUID> typeUUID, + ); +typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = + ffi.Void Function(ffi.Pointer instanceData); +typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = + void Function(ffi.Pointer instanceData); +typedef CFPlugInInstanceGetInterfaceFunctionFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__CFPlugInInstance> instance, + ffi.Pointer interfaceName, + ffi.Pointer> ftbl, + ); +typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = + int Function( + ffi.Pointer<__CFPlugInInstance> instance, + ffi.Pointer interfaceName, + ffi.Pointer> ftbl, + ); +typedef CFPlugInUnloadFunctionFunction = + ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); +typedef DartCFPlugInUnloadFunctionFunction = + void Function(ffi.Pointer<__CFBundle> plugIn); +typedef CFProxyAutoConfigurationResultCallbackFunction = + ffi.Void Function( + ffi.Pointer client, + ffi.Pointer<__CFArray> proxyList, + ffi.Pointer<__CFError> error, + ); +typedef DartCFProxyAutoConfigurationResultCallbackFunction = + void Function( + ffi.Pointer client, + ffi.Pointer<__CFArray> proxyList, + ffi.Pointer<__CFError> error, + ); +typedef CFReadStreamClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFReadStream> stream, + ffi.UnsignedLong type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFReadStreamClientCallBackFunction = + void Function( + ffi.Pointer<__CFReadStream> stream, + int type, + ffi.Pointer clientCallBackInfo, + ); + +sealed class CFRunLoopActivity { + static const kCFRunLoopEntry = 1; + static const kCFRunLoopBeforeTimers = 2; + static const kCFRunLoopBeforeSources = 4; + static const kCFRunLoopBeforeWaiting = 32; + static const kCFRunLoopAfterWaiting = 64; + static const kCFRunLoopExit = 128; + static const kCFRunLoopAllActivities = 268435455; +} + +typedef CFRunLoopObserverCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFRunLoopObserver> observer, + ffi.UnsignedLong activity, + ffi.Pointer info, + ); +typedef DartCFRunLoopObserverCallBackFunction = + void Function( + ffi.Pointer<__CFRunLoopObserver> observer, + int activity, + ffi.Pointer info, + ); +typedef CFRunLoopTimerCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFRunLoopTimer> timer, + ffi.Pointer info, + ); +typedef DartCFRunLoopTimerCallBackFunction = + void Function( + ffi.Pointer<__CFRunLoopTimer> timer, + ffi.Pointer info, + ); +typedef CFSetApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFSetApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFSetCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFSetEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFSetEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFSetHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFSetHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFSetReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFSetReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFSetRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFSocketCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFSocket> s, + ffi.UnsignedLong type, + ffi.Pointer<__CFData> address, + ffi.Pointer data, + ffi.Pointer info, + ); +typedef DartCFSocketCallBackFunction = + void Function( + ffi.Pointer<__CFSocket> s, + int type, + ffi.Pointer<__CFData> address, + ffi.Pointer data, + ffi.Pointer info, + ); + +sealed class CFSocketCallBackType { + static const kCFSocketNoCallBack = 0; + static const kCFSocketReadCallBack = 1; + static const kCFSocketAcceptCallBack = 2; + static const kCFSocketDataCallBack = 3; + static const kCFSocketConnectCallBack = 4; + static const kCFSocketWriteCallBack = 8; +} + +final class CFStreamError extends ffi.Struct { + @ffi.Long() + external int domain; + + @ffi.Int() + external int error; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int domain, + required int error, + }) => $allocator() + ..ref.domain = domain + ..ref.error = error; +} + +sealed class CFStreamEventType { + static const kCFStreamEventNone = 0; + static const kCFStreamEventOpenCompleted = 1; + static const kCFStreamEventHasBytesAvailable = 2; + static const kCFStreamEventCanAcceptBytes = 4; + static const kCFStreamEventErrorOccurred = 8; + static const kCFStreamEventEndEncountered = 16; +} + +typedef CFTreeApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFTreeApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFTreeCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFTreeReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFTreeReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFTreeRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFUserNotificationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFUserNotification> userNotification, + ffi.UnsignedLong responseFlags, + ); +typedef DartCFUserNotificationCallBackFunction = + void Function( + ffi.Pointer<__CFUserNotification> userNotification, + int responseFlags, + ); +typedef CFWriteStreamClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFWriteStream> stream, + ffi.UnsignedLong type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFWriteStreamClientCallBackFunction = + void Function( + ffi.Pointer<__CFWriteStream> stream, + int type, + ffi.Pointer clientCallBackInfo, + ); + +final class CFXMLExternalID extends ffi.Struct { + external ffi.Pointer<__CFURL> systemID; + + external ffi.Pointer publicID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer<__CFURL> systemID, + required ffi.Pointer publicID, + }) => $allocator() + ..ref.systemID = systemID + ..ref.publicID = publicID; +} + +typedef CFXMLParserAddChildCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, + ); +typedef DartCFXMLParserAddChildCallBackFunction = + void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, + ); +typedef CFXMLParserCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFXMLParserCreateXMLStructureCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer<__CFXMLNode> nodeDesc, + ffi.Pointer info, + ); +typedef CFXMLParserEndXMLStructureCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ); +typedef DartCFXMLParserEndXMLStructureCallBackFunction = + void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ); +typedef CFXMLParserHandleErrorCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Long error, + ffi.Pointer info, + ); +typedef DartCFXMLParserHandleErrorCallBackFunction = + int Function( + ffi.Pointer<__CFXMLParser> parser, + int error, + ffi.Pointer info, + ); +typedef CFXMLParserReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFXMLParserReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFXMLParserResolveExternalEntityCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer extID, + ffi.Pointer info, + ); +typedef CFXMLParserRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); + +sealed class CFXMLParserStatusCode { + static const kCFXMLStatusParseNotBegun = -2; + static const kCFXMLStatusParseInProgress = -1; + static const kCFXMLStatusParseSuccessful = 0; + static const kCFXMLErrorUnexpectedEOF = 1; + static const kCFXMLErrorUnknownEncoding = 2; + static const kCFXMLErrorEncodingConversionFailure = 3; + static const kCFXMLErrorMalformedProcessingInstruction = 4; + static const kCFXMLErrorMalformedDTD = 5; + static const kCFXMLErrorMalformedName = 6; + static const kCFXMLErrorMalformedCDSect = 7; + static const kCFXMLErrorMalformedCloseTag = 8; + static const kCFXMLErrorMalformedStartTag = 9; + static const kCFXMLErrorMalformedDocument = 10; + static const kCFXMLErrorElementlessDocument = 11; + static const kCFXMLErrorMalformedComment = 12; + static const kCFXMLErrorMalformedCharacterReference = 13; + static const kCFXMLErrorMalformedParsedCharacterData = 14; + static const kCFXMLErrorNoData = 15; +} + +typedef CSIdentityQueryReceiveEventCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CSIdentityQuery> query, + ffi.Long event, + ffi.Pointer<__CFArray> identities, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef DartCSIdentityQueryReceiveEventCallbackFunction = + void Function( + ffi.Pointer<__CSIdentityQuery> query, + int event, + ffi.Pointer<__CFArray> identities, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef CSIdentityStatusUpdatedCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CSIdentity> identity, + ffi.Long status, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef DartCSIdentityStatusUpdatedCallbackFunction = + void Function( + ffi.Pointer<__CSIdentity> identity, + int status, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef CSSM_ACL_SUBJECT_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer SubjectRequest, + ffi.Pointer SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = + int Function( + ffi.Pointer SubjectRequest, + ffi.Pointer SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef CSSM_API_ModuleEventHandlerFunction = + ffi.Int32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + ffi.Uint32 SubserviceId, + ffi.Uint32 ServiceType, + ffi.Uint32 EventType, + ); +typedef DartCSSM_API_ModuleEventHandlerFunction = + int Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + int SubserviceId, + int ServiceType, + int EventType, + ); +typedef CSSM_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer OutData, + ffi.Pointer CallerCtx, + ); +typedef DartCSSM_CALLBACKFunction = + int Function( + ffi.Pointer OutData, + ffi.Pointer CallerCtx, + ); +typedef CSSM_CALLOCFunction = + ffi.Pointer Function( + ffi.Uint32 num, + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_CALLOCFunction = + ffi.Pointer Function( + int num, + int size, + ffi.Pointer allocref, + ); +typedef CSSM_CHALLENGE_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer Challenge, + ffi.Pointer Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_CHALLENGE_CALLBACKFunction = + int Function( + ffi.Pointer Challenge, + ffi.Pointer Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ); +typedef CSSM_FREEFunction = + ffi.Void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef DartCSSM_FREEFunction = + void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef CSSM_MALLOCFunction = + ffi.Pointer Function( + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_MALLOCFunction = + ffi.Pointer Function(int size, ffi.Pointer allocref); +typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); +typedef DartCSSM_PROC_ADDRFunction = void Function(); +typedef CSSM_REALLOCFunction = + ffi.Pointer Function( + ffi.Pointer memblock, + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_REALLOCFunction = + ffi.Pointer Function( + ffi.Pointer memblock, + int size, + ffi.Pointer allocref, + ); +typedef CSSM_SPI_ModuleEventHandlerFunction = + ffi.Int32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + ffi.Uint32 SubserviceId, + ffi.Uint32 ServiceType, + ffi.Uint32 EventType, + ); +typedef DartCSSM_SPI_ModuleEventHandlerFunction = + int Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + int SubserviceId, + int ServiceType, + int EventType, + ); +typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = + ffi.Int32 Function( + ffi.IntPtr ModuleHandle, + ffi.Pointer CallerCtx, + ffi.Pointer VerifiedCert, + ); +typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = + int Function( + int ModuleHandle, + ffi.Pointer CallerCtx, + ffi.Pointer VerifiedCert, + ); +typedef CSSM_UPCALLS_CALLOCFunction = + ffi.Pointer Function( + ffi.IntPtr AddInHandle, + ffi.Size num, + ffi.Size size, + ); +typedef DartCSSM_UPCALLS_CALLOCFunction = + ffi.Pointer Function(int AddInHandle, int num, int size); +typedef CSSM_UPCALLS_FREEFunction = + ffi.Void Function(ffi.IntPtr AddInHandle, ffi.Pointer memblock); +typedef DartCSSM_UPCALLS_FREEFunction = + void Function(int AddInHandle, ffi.Pointer memblock); +typedef CSSM_UPCALLS_MALLOCFunction = + ffi.Pointer Function(ffi.IntPtr AddInHandle, ffi.Size size); +typedef DartCSSM_UPCALLS_MALLOCFunction = + ffi.Pointer Function(int AddInHandle, int size); +typedef CSSM_UPCALLS_REALLOCFunction = + ffi.Pointer Function( + ffi.IntPtr AddInHandle, + ffi.Pointer memblock, + ffi.Size size, + ); +typedef DartCSSM_UPCALLS_REALLOCFunction = + ffi.Pointer Function( + int AddInHandle, + ffi.Pointer memblock, + int size, + ); +typedef CollectionExceptionProcPtrFunction = + ffi.Short Function(ffi.Pointer c, ffi.Short status); +typedef DartCollectionExceptionProcPtrFunction = + int Function(ffi.Pointer c, int status); +typedef CollectionFlattenProcPtrFunction = + ffi.Short Function( + ffi.Int size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef DartCollectionFlattenProcPtrFunction = + int Function( + int size, + ffi.Pointer data, + ffi.Pointer refCon, + ); + +@ffi.Packed(2) +final class ComponentMPWorkFunctionHeaderRecord extends ffi.Struct { + @ffi.UnsignedInt() + external int headerSize; + + @ffi.UnsignedInt() + external int recordSize; + + @ffi.UnsignedInt() + external int workFlags; + + @ffi.UnsignedShort() + external int processorCount; + + @ffi.UnsignedChar() + external int unused; + + @ffi.UnsignedChar() + external int isRunning; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int headerSize, + required int recordSize, + required int workFlags, + required int processorCount, + required int unused, + required int isRunning, + }) => $allocator() + ..ref.headerSize = headerSize + ..ref.recordSize = recordSize + ..ref.workFlags = workFlags + ..ref.processorCount = processorCount + ..ref.unused = unused + ..ref.isRunning = isRunning; +} + +typedef ComponentMPWorkFunctionProcPtrFunction = + ffi.Int Function( + ffi.Pointer globalRefCon, + ffi.Pointer header, + ); +typedef DartComponentMPWorkFunctionProcPtrFunction = + int Function( + ffi.Pointer globalRefCon, + ffi.Pointer header, + ); + +@ffi.Packed(2) +final class ComponentParameters extends ffi.Struct { + @ffi.UnsignedChar() + external int flags; + + @ffi.UnsignedChar() + external int paramSize; + + @ffi.Short() + external int what; + + @ffi.UnsignedInt() + external int padding; + + @ffi.Array.multi([1]) + external ffi.Array params; +} + +@ffi.Packed(2) +final class ComponentRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef ComponentRoutineProcPtrFunction = + ffi.Int Function( + ffi.Pointer cp, + ffi.Pointer> componentStorage, + ); +typedef DartComponentRoutineProcPtrFunction = + int Function( + ffi.Pointer cp, + ffi.Pointer> componentStorage, + ); +typedef CoreEndianFlipProcFunction = + ffi.Int Function( + ffi.UnsignedInt dataDomain, + ffi.UnsignedInt dataType, + ffi.Short id, + ffi.Pointer dataPtr, + ffi.UnsignedLong dataSize, + ffi.UnsignedChar currentlyNative, + ffi.Pointer refcon, + ); +typedef DartCoreEndianFlipProcFunction = + int Function( + int dataDomain, + int dataType, + int id, + ffi.Pointer dataPtr, + int dataSize, + int currentlyNative, + ffi.Pointer refcon, + ); +typedef DebugAssertOutputHandlerProcPtrFunction = + ffi.Void Function( + ffi.UnsignedInt componentSignature, + ffi.UnsignedInt options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + ffi.Long lineNumber, + ffi.Pointer value, + ffi.Pointer outputMsg, + ); +typedef DartDebugAssertOutputHandlerProcPtrFunction = + void Function( + int componentSignature, + int options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + int lineNumber, + ffi.Pointer value, + ffi.Pointer outputMsg, + ); +typedef DebugComponentCallbackProcPtrFunction = + ffi.Void Function( + ffi.Int optionSelectorNum, + ffi.UnsignedInt command, + ffi.Pointer optionSetting, + ); +typedef DartDebugComponentCallbackProcPtrFunction = + void Function( + int optionSelectorNum, + int command, + ffi.Pointer optionSetting, + ); +typedef DebuggerDisposeThreadProcPtrFunction = + ffi.Void Function(ffi.UnsignedLong threadDeleted); +typedef DartDebuggerDisposeThreadProcPtrFunction = + void Function(int threadDeleted); +typedef DebuggerNewThreadProcPtrFunction = + ffi.Void Function(ffi.UnsignedLong threadCreated); +typedef DartDebuggerNewThreadProcPtrFunction = void Function(int threadCreated); +typedef DebuggerThreadSchedulerProcPtrFunction = + ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); +typedef DartDebuggerThreadSchedulerProcPtrFunction = + int Function(ffi.Pointer schedulerInfo); +typedef DeferredTaskProcPtrFunction = ffi.Void Function(ffi.Long dtParam); +typedef DartDeferredTaskProcPtrFunction = void Function(int dtParam); +typedef ExceptionHandlerProcPtrFunction = + ffi.Int Function(ffi.Pointer theException); +typedef DartExceptionHandlerProcPtrFunction = + int Function(ffi.Pointer theException); + +final class ExceptionInfo extends ffi.Union { + external ffi.Pointer memoryInfo; +} + +final class ExceptionInformation extends ffi.Struct { + @ffi.UnsignedLong() + external int theKind; + + external ffi.Pointer machineState; + + external ffi.Pointer registerImage; + + external ffi.Pointer FPUImage; + + external ExceptionInfo info; + + external ffi.Pointer vectorImage; +} + +typedef FNSubscriptionProcPtrFunction = + ffi.Void Function( + ffi.UnsignedInt message, + ffi.UnsignedInt flags, + ffi.Pointer refcon, + ffi.Pointer subscription, + ); +typedef DartFNSubscriptionProcPtrFunction = + void Function( + int message, + int flags, + ffi.Pointer refcon, + ffi.Pointer subscription, + ); + +final class FPUInformation extends ffi.Struct { + external ffi.Pointer __unusedFPUInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedFPUInformationField, + }) => + $allocator() + ..ref.__unusedFPUInformationField = $unusedFPUInformationField; +} + +typedef FSAliasFilterProcPtrFunction = + ffi.UnsignedChar Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + ffi.Pointer myDataPtr, + ); +typedef DartFSAliasFilterProcPtrFunction = + int Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + ffi.Pointer myDataPtr, + ); +typedef FSEventStreamCallbackFunction = + ffi.Void Function( + ffi.Pointer<__FSEventStream> streamRef, + ffi.Pointer clientCallBackInfo, + ffi.Size numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ); +typedef DartFSEventStreamCallbackFunction = + void Function( + ffi.Pointer<__FSEventStream> streamRef, + ffi.Pointer clientCallBackInfo, + int numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ); +typedef FSFileOperationStatusProcPtrFunction = + ffi.Void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + ffi.UnsignedInt stage, + ffi.Int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef DartFSFileOperationStatusProcPtrFunction = + void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + int stage, + int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef FSPathFileOperationStatusProcPtrFunction = + ffi.Void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + ffi.UnsignedInt stage, + ffi.Int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef DartFSPathFileOperationStatusProcPtrFunction = + void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + int stage, + int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); + +final class FSRef extends ffi.Struct { + @ffi.Array.multi([80]) + external ffi.Array hidden; +} + +typedef FSVolumeEjectProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short volumeRefNum, + ffi.Int dissenter, + ); +typedef DartFSVolumeEjectProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + ); +typedef FSVolumeMountProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short mountedVolumeRefNum, + ); +typedef DartFSVolumeMountProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int mountedVolumeRefNum, + ); +typedef FSVolumeUnmountProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short volumeRefNum, + ffi.Int dissenter, + ); +typedef DartFSVolumeUnmountProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + ); +typedef FolderManagerNotificationProcPtrFunction = + ffi.Int Function( + ffi.UnsignedInt message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ); +typedef DartFolderManagerNotificationProcPtrFunction = + int Function( + int message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ); +typedef GetMissingComponentResourceProcPtrFunction = + ffi.Short Function( + ffi.Pointer c, + ffi.UnsignedInt resType, + ffi.Short resID, + ffi.Pointer refCon, + ffi.Pointer>> resource, + ); +typedef DartGetMissingComponentResourceProcPtrFunction = + int Function( + ffi.Pointer c, + int resType, + int resID, + ffi.Pointer refCon, + ffi.Pointer>> resource, + ); +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef IOAsyncCallback0Function = + ffi.Void Function(ffi.Pointer refcon, ffi.Int result); +typedef DartIOAsyncCallback0Function = + void Function(ffi.Pointer refcon, int result); +typedef IOAsyncCallback1Function = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer arg0, + ); +typedef DartIOAsyncCallback1Function = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer arg0, + ); +typedef IOAsyncCallback2Function = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ); +typedef DartIOAsyncCallback2Function = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ); +typedef IOAsyncCallbackFunction = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer> args, + ffi.Uint32 numArgs, + ); +typedef DartIOAsyncCallbackFunction = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer> args, + int numArgs, + ); +typedef IOCompletionProcPtrFunction = + ffi.Void Function(ffi.Pointer paramBlock); +typedef DartIOCompletionProcPtrFunction = + void Function(ffi.Pointer paramBlock); +typedef IOServiceInterestCallbackFunction = + ffi.Void Function( + ffi.Pointer refcon, + ffi.UnsignedInt service, + ffi.Uint32 messageType, + ffi.Pointer messageArgument, + ); +typedef DartIOServiceInterestCallbackFunction = + void Function( + ffi.Pointer refcon, + int service, + int messageType, + ffi.Pointer messageArgument, + ); +typedef IOServiceMatchingCallbackFunction = + ffi.Void Function(ffi.Pointer refcon, ffi.UnsignedInt iterator); +typedef DartIOServiceMatchingCallbackFunction = + void Function(ffi.Pointer refcon, int iterator); +typedef IndexToUCStringProcPtrFunction = + ffi.UnsignedChar Function( + ffi.UnsignedInt index, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer> outString, + ffi.Pointer tsOptions, + ); +typedef DartIndexToUCStringProcPtrFunction = + int Function( + int index, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer> outString, + ffi.Pointer tsOptions, + ); + +@ffi.Packed(2) +final class KCCallbackInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external ffi.Pointer<__SecKeychainItem> item; + + @ffi.Array.multi([2]) + external ffi.Array processID; + + @ffi.Array.multi([4]) + external ffi.Array event; + + external ffi.Pointer<__SecKeychain> keychain; +} + +typedef KCCallbackProcPtrFunction = + ffi.Int Function( + ffi.UnsignedShort keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ); +typedef DartKCCallbackProcPtrFunction = + int Function( + int keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ); +typedef LSSharedFileListChangedProcPtrFunction = + ffi.Void Function( + ffi.Pointer inList, + ffi.Pointer context, + ); +typedef DartLSSharedFileListChangedProcPtrFunction = + void Function( + ffi.Pointer inList, + ffi.Pointer context, + ); +typedef MDQueryCreateResultFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__MDQuery> query, + ffi.Pointer<__MDItem> item, + ffi.Pointer context, + ); +typedef MDQueryCreateValueFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__MDQuery> query, + ffi.Pointer attrName, + ffi.Pointer attrValue, + ffi.Pointer context, + ); +typedef MDQuerySortComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer> attrs1, + ffi.Pointer> attrs2, + ffi.Pointer context, + ); +typedef DartMDQuerySortComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer> attrs1, + ffi.Pointer> attrs2, + ffi.Pointer context, + ); +typedef MPIsFullyInitializedProcFunction = ffi.UnsignedChar Function(); +typedef DartMPIsFullyInitializedProcFunction = int Function(); +typedef MPRemoteProcedureFunction = + ffi.Pointer Function(ffi.Pointer parameter); + +final class MachineInformation extends ffi.Struct { + external ffi.Pointer __unusedMachineInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedMachineInformationField, + }) => + $allocator() + ..ref.__unusedMachineInformationField = $unusedMachineInformationField; +} + +final class MemoryExceptionInformation extends ffi.Struct { + external ffi.Pointer theArea; + + external ffi.Pointer theAddress; + + @ffi.Int() + external int theError; + + @ffi.UnsignedLong() + external int theReference; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer theArea, + required ffi.Pointer theAddress, + required int theError, + required int theReference, + }) => $allocator() + ..ref.theArea = theArea + ..ref.theAddress = theAddress + ..ref.theError = theError + ..ref.theReference = theReference; +} + +typedef OSLAccessorProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt desiredClass, + ffi.Pointer container, + ffi.UnsignedInt containerClass, + ffi.UnsignedInt form, + ffi.Pointer selectionData, + ffi.Pointer value, + ffi.Pointer accessorRefcon, + ); +typedef DartOSLAccessorProcPtrFunction = + int Function( + int desiredClass, + ffi.Pointer container, + int containerClass, + int form, + ffi.Pointer selectionData, + ffi.Pointer value, + ffi.Pointer accessorRefcon, + ); +typedef OSLAdjustMarksProcPtrFunction = + ffi.Short Function( + ffi.Long newStart, + ffi.Long newStop, + ffi.Pointer markToken, + ); +typedef DartOSLAdjustMarksProcPtrFunction = + int Function(int newStart, int newStop, ffi.Pointer markToken); +typedef OSLCompareProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ); +typedef DartOSLCompareProcPtrFunction = + int Function( + int oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ); +typedef OSLCountProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt desiredType, + ffi.UnsignedInt containerClass, + ffi.Pointer container, + ffi.Pointer result, + ); +typedef DartOSLCountProcPtrFunction = + int Function( + int desiredType, + int containerClass, + ffi.Pointer container, + ffi.Pointer result, + ); +typedef OSLDisposeTokenProcPtrFunction = + ffi.Short Function(ffi.Pointer unneededToken); +typedef DartOSLDisposeTokenProcPtrFunction = + int Function(ffi.Pointer unneededToken); +typedef OSLGetErrDescProcPtrFunction = + ffi.Short Function(ffi.Pointer> appDescPtr); +typedef DartOSLGetErrDescProcPtrFunction = + int Function(ffi.Pointer> appDescPtr); +typedef OSLGetMarkTokenProcPtrFunction = + ffi.Short Function( + ffi.Pointer dContainerToken, + ffi.UnsignedInt containerClass, + ffi.Pointer result, + ); +typedef DartOSLGetMarkTokenProcPtrFunction = + int Function( + ffi.Pointer dContainerToken, + int containerClass, + ffi.Pointer result, + ); +typedef OSLMarkProcPtrFunction = + ffi.Short Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + ffi.Long index, + ); +typedef DartOSLMarkProcPtrFunction = + int Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + int index, + ); + +/// Construction methods for `objc.ObjCBlock Function()>`. +abstract final class ObjCBlock_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function()> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function()>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function()> fromFunctionPointer( + ffi.Pointer Function()>> ptr, + ) => objc.ObjCBlock Function()>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function()> fromFunction( + ffi.Pointer<__CFError> Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function()>( + objc.newClosureBlock(_closureCallable, () { + return fn(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer<__CFError> _fnPtrTrampoline( + ffi.Pointer block, + ) => block.ref.target + .cast Function()>>() + .asFunction Function()>()(); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer<__CFError> _closureTrampoline( + ffi.Pointer block, + ) => (objc.getBlockClosure(block) as ffi.Pointer<__CFError> Function())(); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function()>`. +extension ObjCBlock_CFErrorRef$CallExtension + on objc.ObjCBlock Function()> { + ffi.Pointer<__CFError> call() { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFError> Function( + ffi.Pointer block, + ) + > + >() + .asFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >()(ref.pointer); + } +} + +final class OpaqueAreaID extends ffi.Opaque {} + +final class OpaqueCollection extends ffi.Opaque {} + +final class OpaqueFNSubscriptionRef extends ffi.Opaque {} + +final class OpaqueFSVolumeOperation extends ffi.Opaque {} + +final class OpaqueLSSharedFileListRef extends ffi.Opaque {} + +final class OpaqueSecTransformImplementation extends ffi.Opaque {} + +final class OpaqueTECObjectRef extends ffi.Opaque {} + +final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} + +final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} + +final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} + +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); + +@ffi.Packed(2) +final class QElem extends ffi.Struct { + external ffi.Pointer qLink; + + @ffi.Short() + external int qType; + + @ffi.Array.multi([1]) + external ffi.Array qData; +} + +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + +final class RegisterInformation extends ffi.Struct { + external ffi.Pointer __unusedRegisterInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedRegisterInformationField, + }) => $allocator() + ..ref.__unusedRegisterInformationField = $unusedRegisterInformationField; +} + +typedef ResErrProcPtrFunction = ffi.Void Function(ffi.Short thErr); +typedef DartResErrProcPtrFunction = void Function(int thErr); +typedef ResourceEndianFilterPtrFunction = + ffi.Short Function( + ffi.Pointer> theResource, + ffi.UnsignedChar currentlyNativeEndian, + ); +typedef DartResourceEndianFilterPtrFunction = + int Function( + ffi.Pointer> theResource, + int currentlyNativeEndian, + ); +typedef SKSearchResultsFilterCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__SKIndex> inIndex, + ffi.Pointer inDocument, + ffi.Pointer inContext, + ); +typedef DartSKSearchResultsFilterCallBackFunction = + int Function( + ffi.Pointer<__SKIndex> inIndex, + ffi.Pointer inDocument, + ffi.Pointer inContext, + ); +typedef SSLReadFuncFunction = + ffi.Int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLReadFuncFunction = + int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef SSLWriteFuncFunction = + ffi.Int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLWriteFuncFunction = + int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); + +@ffi.Packed(2) +final class SchedulerInfoRec extends ffi.Struct { + @ffi.UnsignedInt() + external int InfoRecSize; + + @ffi.UnsignedLong() + external int CurrentThreadID; + + @ffi.UnsignedLong() + external int SuggestedThreadID; + + @ffi.UnsignedLong() + external int InterruptedCoopThreadID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int InfoRecSize, + required int CurrentThreadID, + required int SuggestedThreadID, + required int InterruptedCoopThreadID, + }) => $allocator() + ..ref.InfoRecSize = InfoRecSize + ..ref.CurrentThreadID = CurrentThreadID + ..ref.SuggestedThreadID = SuggestedThreadID + ..ref.InterruptedCoopThreadID = InterruptedCoopThreadID; +} + +typedef SecKeychainCallbackFunction = + ffi.Int Function( + ffi.UnsignedInt keychainEvent, + ffi.Pointer info, + ffi.Pointer context, + ); +typedef DartSecKeychainCallbackFunction = + int Function( + SecKeychainEvent keychainEvent, + ffi.Pointer info, + ffi.Pointer context, + ); + +final class SecKeychainCallbackInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external ffi.Pointer<__SecKeychainItem> item; + + external ffi.Pointer<__SecKeychain> keychain; + + @ffi.Int() + external int pid; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer<__SecKeychainItem> item, + required ffi.Pointer<__SecKeychain> keychain, + required int pid, + }) => $allocator() + ..ref.version = version + ..ref.item = item + ..ref.keychain = keychain + ..ref.pid = pid; +} + +enum SecKeychainEvent { + kSecLockEvent(1), + kSecUnlockEvent(2), + kSecAddEvent(3), + kSecDeleteEvent(4), + kSecUpdateEvent(5), + kSecPasswordChangedEvent(6), + kSecDefaultChangedEvent(9), + kSecDataAccessEvent(10), + kSecKeychainListChangedEvent(11), + kSecTrustSettingsChangedEvent(12); + + final int value; + const SecKeychainEvent(this.value); + + static SecKeychainEvent fromValue(int value) => switch (value) { + 1 => kSecLockEvent, + 2 => kSecUnlockEvent, + 3 => kSecAddEvent, + 4 => kSecDeleteEvent, + 5 => kSecUpdateEvent, + 6 => kSecPasswordChangedEvent, + 9 => kSecDefaultChangedEvent, + 10 => kSecDataAccessEvent, + 11 => kSecKeychainListChangedEvent, + 12 => kSecTrustSettingsChangedEvent, + _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), + }; +} + +typedef SecTransformCreateFPFunction = + ffi.Pointer Function( + ffi.Pointer name, + ffi.Pointer newTransform, + ffi.Pointer ref, + ); +typedef DartSecTransformCreateFPFunction = + objc.ObjCBlock Function()> Function( + ffi.Pointer name, + ffi.Pointer newTransform, + ffi.Pointer ref, + ); +typedef SelectorFunctionProcPtrFunction = + ffi.Short Function(ffi.UnsignedInt selector, ffi.Pointer response); +typedef DartSelectorFunctionProcPtrFunction = + int Function(int selector, ffi.Pointer response); +typedef SleepQProcPtrFunction = + ffi.Long Function(ffi.Long message, ffi.Pointer qRecPtr); +typedef DartSleepQProcPtrFunction = + int Function(int message, ffi.Pointer qRecPtr); + +@ffi.Packed(2) +final class SleepQRec extends ffi.Struct { + external ffi.Pointer sleepQLink; + + @ffi.Short() + external int sleepQType; + + external ffi.Pointer> sleepQProc; + + @ffi.Short() + external int sleepQFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer sleepQLink, + required int sleepQType, + required ffi.Pointer> sleepQProc, + required int sleepQFlags, + }) => $allocator() + ..ref.sleepQLink = sleepQLink + ..ref.sleepQType = sleepQType + ..ref.sleepQProc = sleepQProc + ..ref.sleepQFlags = sleepQFlags; +} /// SwiftClass extension type SwiftClass._(objc.ObjCObject object$) @@ -100,6 +1962,853 @@ extension SwiftClass$Methods on SwiftClass { } } +final class TECBufferContextRec extends ffi.Struct { + external ffi.Pointer textInputBuffer; + + external ffi.Pointer textInputBufferEnd; + + external ffi.Pointer textOutputBuffer; + + external ffi.Pointer textOutputBufferEnd; + + external ffi.Pointer encodingInputBuffer; + + external ffi.Pointer encodingInputBufferEnd; + + external ffi.Pointer encodingOutputBuffer; + + external ffi.Pointer encodingOutputBufferEnd; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer textInputBuffer, + required ffi.Pointer textInputBufferEnd, + required ffi.Pointer textOutputBuffer, + required ffi.Pointer textOutputBufferEnd, + required ffi.Pointer encodingInputBuffer, + required ffi.Pointer encodingInputBufferEnd, + required ffi.Pointer encodingOutputBuffer, + required ffi.Pointer encodingOutputBufferEnd, + }) => $allocator() + ..ref.textInputBuffer = textInputBuffer + ..ref.textInputBufferEnd = textInputBufferEnd + ..ref.textOutputBuffer = textOutputBuffer + ..ref.textOutputBufferEnd = textOutputBufferEnd + ..ref.encodingInputBuffer = encodingInputBuffer + ..ref.encodingInputBufferEnd = encodingInputBufferEnd + ..ref.encodingOutputBuffer = encodingOutputBuffer + ..ref.encodingOutputBufferEnd = encodingOutputBufferEnd; +} + +@ffi.Packed(2) +final class TECConversionInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int sourceEncoding; + + @ffi.UnsignedInt() + external int destinationEncoding; + + @ffi.UnsignedShort() + external int reserved1; + + @ffi.UnsignedShort() + external int reserved2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sourceEncoding, + required int destinationEncoding, + required int reserved1, + required int reserved2, + }) => $allocator() + ..ref.sourceEncoding = sourceEncoding + ..ref.destinationEncoding = destinationEncoding + ..ref.reserved1 = reserved1 + ..ref.reserved2 = reserved2; +} + +final class TECConverterContextRec extends ffi.Struct { + external ffi.Pointer pluginRec; + + @ffi.UnsignedInt() + external int sourceEncoding; + + @ffi.UnsignedInt() + external int destEncoding; + + @ffi.UnsignedInt() + external int reserved1; + + @ffi.UnsignedInt() + external int reserved2; + + external TECBufferContextRec bufferContext; + + external ffi.Pointer contextRefCon; + + external ffi.Pointer> conversionProc; + + external ffi.Pointer> flushProc; + + external ffi.Pointer> + clearContextInfoProc; + + @ffi.UnsignedInt() + external int options1; + + @ffi.UnsignedInt() + external int options2; + + external TECPluginStateRec pluginState; +} + +typedef TECPluginClearContextInfoPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginClearContextInfoPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginClearSnifferContextInfoPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginClearSnifferContextInfoPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef TECPluginConvertTextEncodingPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginConvertTextEncodingPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); + +final class TECPluginDispatchTable extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + @ffi.UnsignedInt() + external int compatibleVersion; + + @ffi.UnsignedInt() + external int PluginID; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingConverter; + + external ffi.Pointer> + PluginClearContextInfo; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginConvertTextEncoding; + + external ffi.Pointer> + PluginFlushConversion; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingConverter; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingSniffer; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginClearSnifferContextInfo; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginSniffTextEncoding; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingSniffer; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodingPairs; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountDestinationTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountSubTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableSniffers; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountWebTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountMailTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingInternetName; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingFromInternetName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int compatibleVersion, + required int PluginID, + required ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingConverter, + required ffi.Pointer< + ffi.NativeFunction + > + PluginClearContextInfo, + required ffi.Pointer< + ffi.NativeFunction + > + PluginConvertTextEncoding, + required ffi.Pointer< + ffi.NativeFunction + > + PluginFlushConversion, + required ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingConverter, + required ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingSniffer, + required ffi.Pointer< + ffi.NativeFunction + > + PluginClearSnifferContextInfo, + required ffi.Pointer< + ffi.NativeFunction + > + PluginSniffTextEncoding, + required ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingSniffer, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodingPairs, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountDestinationTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountSubTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableSniffers, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountWebTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountMailTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingInternetName, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingFromInternetName, + }) => $allocator() + ..ref.version = version + ..ref.compatibleVersion = compatibleVersion + ..ref.PluginID = PluginID + ..ref.PluginNewEncodingConverter = PluginNewEncodingConverter + ..ref.PluginClearContextInfo = PluginClearContextInfo + ..ref.PluginConvertTextEncoding = PluginConvertTextEncoding + ..ref.PluginFlushConversion = PluginFlushConversion + ..ref.PluginDisposeEncodingConverter = PluginDisposeEncodingConverter + ..ref.PluginNewEncodingSniffer = PluginNewEncodingSniffer + ..ref.PluginClearSnifferContextInfo = PluginClearSnifferContextInfo + ..ref.PluginSniffTextEncoding = PluginSniffTextEncoding + ..ref.PluginDisposeEncodingSniffer = PluginDisposeEncodingSniffer + ..ref.PluginGetCountAvailableTextEncodings = + PluginGetCountAvailableTextEncodings + ..ref.PluginGetCountAvailableTextEncodingPairs = + PluginGetCountAvailableTextEncodingPairs + ..ref.PluginGetCountDestinationTextEncodings = + PluginGetCountDestinationTextEncodings + ..ref.PluginGetCountSubTextEncodings = PluginGetCountSubTextEncodings + ..ref.PluginGetCountAvailableSniffers = PluginGetCountAvailableSniffers + ..ref.PluginGetCountWebTextEncodings = PluginGetCountWebTextEncodings + ..ref.PluginGetCountMailTextEncodings = PluginGetCountMailTextEncodings + ..ref.PluginGetTextEncodingInternetName = PluginGetTextEncodingInternetName + ..ref.PluginGetTextEncodingFromInternetName = + PluginGetTextEncodingFromInternetName; +} + +typedef TECPluginDisposeEncodingConverterPtrFunction = + ffi.Int Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginDisposeEncodingConverterPtrFunction = + int Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginDisposeEncodingSnifferPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginDisposeEncodingSnifferPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef TECPluginFlushConversionPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginFlushConversionPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginGetCountAvailableSniffersPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableSniffersPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountAvailableTextEncodingPairsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableTextEncodingPairsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountAvailableTextEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableTextEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountDestinationTextEncodingsPtrFunction = + ffi.Int Function( + ffi.UnsignedInt inputEncoding, + ffi.Pointer destinationEncodings, + ffi.UnsignedLong maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ); +typedef DartTECPluginGetCountDestinationTextEncodingsPtrFunction = + int Function( + int inputEncoding, + ffi.Pointer destinationEncodings, + int maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ); +typedef TECPluginGetCountMailEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountMailEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountSubTextEncodingsPtrFunction = + ffi.Int Function( + ffi.UnsignedInt inputEncoding, + ffi.Pointer subEncodings, + ffi.UnsignedLong maxSubEncodings, + ffi.Pointer actualSubEncodings, + ); +typedef DartTECPluginGetCountSubTextEncodingsPtrFunction = + int Function( + int inputEncoding, + ffi.Pointer subEncodings, + int maxSubEncodings, + ffi.Pointer actualSubEncodings, + ); +typedef TECPluginGetCountWebEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountWebEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetPluginDispatchTablePtrFunction = + ffi.Pointer Function(); +typedef TECPluginGetTextEncodingFromInternetNamePtrFunction = + ffi.Int Function( + ffi.Pointer textEncoding, + ffi.Pointer encodingName, + ); +typedef DartTECPluginGetTextEncodingFromInternetNamePtrFunction = + int Function( + ffi.Pointer textEncoding, + ffi.Pointer encodingName, + ); +typedef TECPluginGetTextEncodingInternetNamePtrFunction = + ffi.Int Function( + ffi.UnsignedInt textEncoding, + ffi.Pointer encodingName, + ); +typedef DartTECPluginGetTextEncodingInternetNamePtrFunction = + int Function(int textEncoding, ffi.Pointer encodingName); +typedef TECPluginNewEncodingConverterPtrFunction = + ffi.Int Function( + ffi.Pointer> newEncodingConverter, + ffi.Pointer plugContext, + ffi.UnsignedInt inputEncoding, + ffi.UnsignedInt outputEncoding, + ); +typedef DartTECPluginNewEncodingConverterPtrFunction = + int Function( + ffi.Pointer> newEncodingConverter, + ffi.Pointer plugContext, + int inputEncoding, + int outputEncoding, + ); +typedef TECPluginNewEncodingSnifferPtrFunction = + ffi.Int Function( + ffi.Pointer> encodingSniffer, + ffi.Pointer snifContext, + ffi.UnsignedInt inputEncoding, + ); +typedef DartTECPluginNewEncodingSnifferPtrFunction = + int Function( + ffi.Pointer> encodingSniffer, + ffi.Pointer snifContext, + int inputEncoding, + ); +typedef TECPluginSniffTextEncodingPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginSniffTextEncodingPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); + +final class TECPluginStateRec extends ffi.Struct { + @ffi.UnsignedChar() + external int state1; + + @ffi.UnsignedChar() + external int state2; + + @ffi.UnsignedChar() + external int state3; + + @ffi.UnsignedChar() + external int state4; + + @ffi.UnsignedInt() + external int longState1; + + @ffi.UnsignedInt() + external int longState2; + + @ffi.UnsignedInt() + external int longState3; + + @ffi.UnsignedInt() + external int longState4; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int state1, + required int state2, + required int state3, + required int state4, + required int longState1, + required int longState2, + required int longState3, + required int longState4, + }) => $allocator() + ..ref.state1 = state1 + ..ref.state2 = state2 + ..ref.state3 = state3 + ..ref.state4 = state4 + ..ref.longState1 = longState1 + ..ref.longState2 = longState2 + ..ref.longState3 = longState3 + ..ref.longState4 = longState4; +} + +final class TECSnifferContextRec extends ffi.Struct { + external ffi.Pointer pluginRec; + + @ffi.UnsignedInt() + external int encoding; + + @ffi.UnsignedLong() + external int maxErrors; + + @ffi.UnsignedLong() + external int maxFeatures; + + external ffi.Pointer textInputBuffer; + + external ffi.Pointer textInputBufferEnd; + + @ffi.UnsignedLong() + external int numFeatures; + + @ffi.UnsignedLong() + external int numErrors; + + external ffi.Pointer contextRefCon; + + external ffi.Pointer> sniffProc; + + external ffi.Pointer> + clearContextInfoProc; + + external TECPluginStateRec pluginState; +} + +@ffi.Packed(2) +final class TMTask extends ffi.Struct { + external ffi.Pointer qLink; + + @ffi.Short() + external int qType; + + external ffi.Pointer> tmAddr; + + @ffi.Long() + external int tmCount; + + @ffi.Long() + external int tmWakeUp; + + @ffi.Long() + external int tmReserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer qLink, + required int qType, + required ffi.Pointer> tmAddr, + required int tmCount, + required int tmWakeUp, + required int tmReserved, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.tmAddr = tmAddr + ..ref.tmCount = tmCount + ..ref.tmWakeUp = tmWakeUp + ..ref.tmReserved = tmReserved; +} + +typedef TaskProcFunction = ffi.Int Function(ffi.Pointer parameter); +typedef DartTaskProcFunction = int Function(ffi.Pointer parameter); + +@ffi.Packed(2) +final class TextEncodingRun extends ffi.Struct { + @ffi.UnsignedLong() + external int offset; + + @ffi.UnsignedInt() + external int textEncoding; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int textEncoding, + }) => $allocator() + ..ref.offset = offset + ..ref.textEncoding = textEncoding; +} + +typedef ThreadEntryProcPtrFunction = + ffi.Pointer Function(ffi.Pointer threadParam); +typedef ThreadSchedulerProcPtrFunction = + ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); +typedef DartThreadSchedulerProcPtrFunction = + int Function(ffi.Pointer schedulerInfo); +typedef ThreadSwitchProcPtrFunction = + ffi.Void Function( + ffi.UnsignedLong threadBeingSwitched, + ffi.Pointer switchProcParam, + ); +typedef DartThreadSwitchProcPtrFunction = + void Function( + int threadBeingSwitched, + ffi.Pointer switchProcParam, + ); +typedef ThreadTerminationProcPtrFunction = + ffi.Void Function( + ffi.UnsignedLong threadTerminated, + ffi.Pointer terminationProcParam, + ); +typedef DartThreadTerminationProcPtrFunction = + void Function( + int threadTerminated, + ffi.Pointer terminationProcParam, + ); +typedef TimerProcPtrFunction = ffi.Void Function(ffi.Pointer tmTaskPtr); +typedef DartTimerProcPtrFunction = void Function(ffi.Pointer tmTaskPtr); + +@ffi.Packed(2) +final class UnicodeMapping extends ffi.Struct { + @ffi.UnsignedInt() + external int unicodeEncoding; + + @ffi.UnsignedInt() + external int otherEncoding; + + @ffi.Int() + external int mappingVersion; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int unicodeEncoding, + required int otherEncoding, + required int mappingVersion, + }) => $allocator() + ..ref.unicodeEncoding = unicodeEncoding + ..ref.otherEncoding = otherEncoding + ..ref.mappingVersion = mappingVersion; +} + +typedef UnicodeToTextFallbackProcPtrFunction = + ffi.Int Function( + ffi.Pointer iSrcUniStr, + ffi.UnsignedLong iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + ffi.Pointer oDestStr, + ffi.UnsignedLong iDestStrLen, + ffi.Pointer oDestConvLen, + ffi.Pointer iInfoPtr, + ffi.Pointer iUnicodeMappingPtr, + ); +typedef DartUnicodeToTextFallbackProcPtrFunction = + int Function( + ffi.Pointer iSrcUniStr, + int iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + ffi.Pointer oDestStr, + int iDestStrLen, + ffi.Pointer oDestConvLen, + ffi.Pointer iInfoPtr, + ffi.Pointer iUnicodeMappingPtr, + ); + +final class UnnamedUnion extends ffi.Union { + external cssm_list Sublist; + + external cssm_data Word; +} + +final class VectorInformation extends ffi.Struct { + external ffi.Pointer __unusedVectorInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedVectorInformationField, + }) => + $allocator() + ..ref.__unusedVectorInformationField = $unusedVectorInformationField; +} + +typedef WSClientContextCopyDescriptionCallBackProcPtrFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef WSClientContextReleaseCallBackProcPtrFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartWSClientContextReleaseCallBackProcPtrFunction = + void Function(ffi.Pointer info); +typedef WSClientContextRetainCallBackProcPtrFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef WSMethodInvocationCallBackProcPtrFunction = + ffi.Void Function( + ffi.Pointer invocation, + ffi.Pointer info, + ffi.Pointer<__CFDictionary> outRef, + ); +typedef DartWSMethodInvocationCallBackProcPtrFunction = + void Function( + ffi.Pointer invocation, + ffi.Pointer info, + ffi.Pointer<__CFDictionary> outRef, + ); +typedef WSMethodInvocationDeserializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer invocation, + ffi.Pointer<__CFTree> msgRoot, + ffi.Pointer<__CFTree> deserializeRoot, + ffi.Pointer info, + ); +typedef WSMethodInvocationSerializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer invocation, + ffi.Pointer obj, + ffi.Pointer info, + ); +typedef WSProtocolHandlerDeserializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer protocol, + ffi.Pointer<__CFTree> msgRoot, + ffi.Pointer<__CFTree> deserializeRoot, + ffi.Pointer info, + ); +typedef WSProtocolHandlerSerializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer protocol, + ffi.Pointer obj, + ffi.Pointer info, + ); + +final class __CFAllocator extends ffi.Opaque {} + +final class __CFArray extends ffi.Opaque {} + +final class __CFBundle extends ffi.Opaque {} + +final class __CFData extends ffi.Opaque {} + +final class __CFDictionary extends ffi.Opaque {} + +final class __CFError extends ffi.Opaque {} + +final class __CFFileDescriptor extends ffi.Opaque {} + +final class __CFHost extends ffi.Opaque {} + +final class __CFMachPort extends ffi.Opaque {} + +final class __CFMessagePort extends ffi.Opaque {} + +final class __CFNetService extends ffi.Opaque {} + +final class __CFNetServiceBrowser extends ffi.Opaque {} + +final class __CFNetServiceMonitor extends ffi.Opaque {} + +final class __CFNotificationCenter extends ffi.Opaque {} + +final class __CFPlugInInstance extends ffi.Opaque {} + +final class __CFReadStream extends ffi.Opaque {} + +final class __CFRunLoopObserver extends ffi.Opaque {} + +final class __CFRunLoopTimer extends ffi.Opaque {} + +final class __CFSocket extends ffi.Opaque {} + +final class __CFTree extends ffi.Opaque {} + +final class __CFURL extends ffi.Opaque {} + +final class __CFUUID extends ffi.Opaque {} + +final class __CFUserNotification extends ffi.Opaque {} + +final class __CFWriteStream extends ffi.Opaque {} + +final class __CFXMLNode extends ffi.Opaque {} + +final class __CFXMLParser extends ffi.Opaque {} + +final class __CSIdentity extends ffi.Opaque {} + +final class __CSIdentityQuery extends ffi.Opaque {} + +final class __FSEventStream extends ffi.Opaque {} + +final class __FSFileOperation extends ffi.Opaque {} + +final class __MDItem extends ffi.Opaque {} + +final class __MDQuery extends ffi.Opaque {} + +final class __SKIndex extends ffi.Opaque {} + +final class __SecKeychain extends ffi.Opaque {} + +final class __SecKeychainItem extends ffi.Opaque {} + @ffi.Native>( symbol: 'OBJC_CLASS_\$__TtC12swift_module10SwiftClass', ) @@ -110,6 +2819,9 @@ final _class_SwiftClass = objc.getClass( _class_SwiftClass_raw, ).cast(), ); + +final class _launch_data extends ffi.Opaque {} + final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -199,5 +2911,230 @@ late final _sel_new = objc.registerName("new"); late final _sel_sayHello = objc.registerName("sayHello"); late final _sel_setSomeField_ = objc.registerName("setSomeField:"); late final _sel_someField = objc.registerName("someField"); + +final class cssm_data extends ffi.Struct { + @ffi.Size() + external int Length; + + external ffi.Pointer Data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Length, + required ffi.Pointer Data, + }) => $allocator() + ..ref.Length = Length + ..ref.Data = Data; +} + +final class cssm_guid extends ffi.Struct { + @ffi.Uint32() + external int Data1; + + @ffi.Uint16() + external int Data2; + + @ffi.Uint16() + external int Data3; + + @ffi.Array.multi([8]) + external ffi.Array Data4; +} + +final class cssm_list extends ffi.Struct { + @ffi.Uint32() + external int ListType; + + external ffi.Pointer Head; + + external ffi.Pointer Tail; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ListType, + required ffi.Pointer Head, + required ffi.Pointer Tail, + }) => $allocator() + ..ref.ListType = ListType + ..ref.Head = Head + ..ref.Tail = Tail; +} + +@Deprecated('Deprecated') +final class cssm_list_element extends ffi.Struct { + external ffi.Pointer NextElement; + + @ffi.Int32() + external int WordID; + + @ffi.Uint32() + external int ElementType; + + external UnnamedUnion Element; +} + +final class cssm_memory_funcs extends ffi.Struct { + external ffi.Pointer> malloc_func; + + external ffi.Pointer> free_func; + + external ffi.Pointer> realloc_func; + + external ffi.Pointer> calloc_func; + + external ffi.Pointer AllocRef; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer> malloc_func, + required ffi.Pointer> free_func, + required ffi.Pointer> realloc_func, + required ffi.Pointer> calloc_func, + required ffi.Pointer AllocRef, + }) => $allocator() + ..ref.malloc_func = malloc_func + ..ref.free_func = free_func + ..ref.realloc_func = realloc_func + ..ref.calloc_func = calloc_func + ..ref.AllocRef = AllocRef; +} + +@Deprecated('Deprecated') +final class cssm_sample extends ffi.Struct { + external cssm_list TypedSample; + + external ffi.Pointer Verifier; +} + +@Deprecated('Deprecated') +final class cssm_samplegroup extends ffi.Struct { + @ffi.Uint32() + external int NumberOfSamples; + + external ffi.Pointer Samples; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfSamples, + required ffi.Pointer Samples, + }) => $allocator() + ..ref.NumberOfSamples = NumberOfSamples + ..ref.Samples = Samples; +} + +@Deprecated('Deprecated') +final class cssm_subservice_uid extends ffi.Struct { + external cssm_guid Guid; + + external cssm_version Version; + + @ffi.Uint32() + external int SubserviceId; + + @ffi.Uint32() + external int SubserviceType; +} + +final class cssm_version extends ffi.Struct { + @ffi.Uint32() + external int Major; + + @ffi.Uint32() + external int Minor; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Major, + required int Minor, + }) => $allocator() + ..ref.Major = Major + ..ref.Minor = Minor; +} + +typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef launch_data_dict_iterator_tFunction = + ffi.Void Function( + ffi.Pointer<_launch_data> lval, + ffi.Pointer key, + ffi.Pointer ctx, + ); +typedef Dartlaunch_data_dict_iterator_tFunction = + void Function( + ffi.Pointer<_launch_data> lval, + ffi.Pointer key, + ffi.Pointer ctx, + ); +typedef mach_error_fn_tFunction = ffi.Int Function(); +typedef Dartmach_error_fn_tFunction = int Function(); + +final class mach_msg_header_t extends ffi.Struct { + @ffi.UnsignedInt() + external int msgh_bits; + + @ffi.UnsignedInt() + external int msgh_size; + + @ffi.UnsignedInt() + external int msgh_remote_port; + + @ffi.UnsignedInt() + external int msgh_local_port; + + @ffi.UnsignedInt() + external int msgh_voucher_port; + + @ffi.Int() + external int msgh_id; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_bits, + required int msgh_size, + required int msgh_remote_port, + required int msgh_local_port, + required int msgh_voucher_port, + required int msgh_id, + }) => $allocator() + ..ref.msgh_bits = msgh_bits + ..ref.msgh_size = msgh_size + ..ref.msgh_remote_port = msgh_remote_port + ..ref.msgh_local_port = msgh_local_port + ..ref.msgh_voucher_port = msgh_voucher_port + ..ref.msgh_id = msgh_id; +} + +typedef mig_impl_routine_tFunction = ffi.Int Function(); +typedef Dartmig_impl_routine_tFunction = int Function(); +typedef mig_server_routine_tFunction = + ffi.Pointer> Function( + ffi.Pointer InHeadP, + ); +typedef mig_stub_routine_tFunction = + ffi.Void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ); +typedef Dartmig_stub_routine_tFunction = + void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ); +typedef os_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartos_function_tFunction = void Function(ffi.Pointer); +typedef os_workgroup_working_arena_destructor_tFunction = + ffi.Void Function(ffi.Pointer); +typedef Dartos_workgroup_working_arena_destructor_tFunction = + void Function(ffi.Pointer); +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); +typedef xpc_connection_handler_tFunction = + ffi.Void Function(ffi.Pointer connection); +typedef Dartxpc_connection_handler_tFunction = + void Function(objc.NSObject connection); +typedef xpc_finalizer_tFunction = + ffi.Void Function(ffi.Pointer value); +typedef Dartxpc_finalizer_tFunction = + void Function(ffi.Pointer value); diff --git a/pkgs/ffigen/lib/src/code_generator/typealias.dart b/pkgs/ffigen/lib/src/code_generator/typealias.dart index 818f212282..674e32a9a2 100644 --- a/pkgs/ffigen/lib/src/code_generator/typealias.dart +++ b/pkgs/ffigen/lib/src/code_generator/typealias.dart @@ -51,7 +51,7 @@ class Typealias extends BindingType { type: funcType, genFfiDartType: genFfiDartType, isInternal: isInternal, - ), + )..isIncluded = true, ), ); } diff --git a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart index ce3d7a7c57..6eb46d648c 100644 --- a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart +++ b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart @@ -2330,15 +2330,15 @@ final class CXCursorSetImpl extends ffi.Opaque {} /// The visitor should return one of the \c CXChildVisitResult values /// to direct clang_visitCursorChildren(). typedef CXCursorVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ) - > - >; + ffi.Pointer>; +typedef CXCursorVisitorFunction = + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ); +typedef DartCXCursorVisitorFunction = + int Function(CXCursor cursor, CXCursor parent, CXClientData client_data); /// A single diagnostic, containing the diagnostic's severity, /// location, text, source ranges, and fix-it hints. @@ -2447,11 +2447,11 @@ sealed class CXEvalResultKind { /// The visitor should return one of the \c CXVisitorResult values /// to direct \c clang_Type_visitFields. typedef CXFieldVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor C, CXClientData client_data) - > - >; + ffi.Pointer>; +typedef CXFieldVisitorFunction = + ffi.UnsignedInt Function(CXCursor C, CXClientData client_data); +typedef DartCXFieldVisitorFunction = + int Function(CXCursor C, CXClientData client_data); /// A particular source file that is part of a translation unit. typedef CXFile = ffi.Pointer; @@ -2480,16 +2480,21 @@ typedef CXIdxClientFile = ffi.Pointer; /// array is sorted in order of immediate inclusion. For example, /// the first element refers to the location that included 'included_file'. typedef CXInclusionVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - CXClientData client_data, - ) - > - >; + ffi.Pointer>; +typedef CXInclusionVisitorFunction = + ffi.Void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + CXClientData client_data, + ); +typedef DartCXInclusionVisitorFunction = + void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + int include_len, + CXClientData client_data, + ); /// An "index" that consists of a set of translation units that would /// typically be linked together into an executable or library. diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart index 5f5df1f17f..f7947f5dff 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart @@ -71,5 +71,6 @@ final class Struct2 extends ffi.Struct { }) => $allocator()..ref.h = h; } -typedef Typedef1 = - ffi.Pointer>; +typedef Typedef1 = ffi.Pointer>; +typedef Typedef1Function = ffi.Void Function(ffi.Handle); +typedef DartTypedef1Function = void Function(Object); diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart index eb0ed55bf9..52c3240100 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart @@ -71,7 +71,10 @@ class NativeLibrary { .asFunction(); } -typedef InsideReturnType = ffi.Pointer>; +typedef InsideReturnType = + ffi.Pointer>; +typedef InsideReturnTypeFunction = ffi.Void Function(); +typedef DartInsideReturnTypeFunction = void Function(); final class Struct extends ffi.Struct { external ffi.Pointer< @@ -105,6 +108,10 @@ final class Struct2 extends ffi.Struct { }) => $allocator()..ref.constFuncPointer = constFuncPointer; } -typedef VoidFuncPointer = ffi.Pointer>; +typedef VoidFuncPointer = + ffi.Pointer>; +typedef VoidFuncPointerFunction = ffi.Void Function(); +typedef DartVoidFuncPointerFunction = void Function(); typedef WithTypedefReturnType = - ffi.Pointer>; + ffi.Pointer>; +typedef WithTypedefReturnTypeFunction = InsideReturnType Function(); diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart index 5608b359c1..550cfc43c9 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart @@ -5,7 +5,9 @@ import 'dart:ffi' as ffi; typedef ArithmeticOperation = - ffi.Pointer>; + ffi.Pointer>; +typedef ArithmeticOperationFunction = ffi.Int Function(ffi.Int a, ffi.Int b); +typedef DartArithmeticOperationFunction = int Function(int a, int b); final class S extends ffi.Struct { external ffi.Pointer> func1; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart index 89d7474092..7d2414c949 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart @@ -97,7 +97,9 @@ typedef ExcludedStruct = _ExcludedStruct; typedef IncludedTypedef = ffi.Pointer; typedef NTyperef1 = ExcludedStruct; typedef NamedFunctionProto = - ffi.Pointer>; + ffi.Pointer>; +typedef NamedFunctionProtoFunction = ffi.Void Function(); +typedef DartNamedFunctionProtoFunction = void Function(); typedef NamedStructInTypedef = _NamedStructInTypedef; typedef NestingASpecifiedType = ffi.IntPtr; typedef DartNestingASpecifiedType = int; diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart index dc0a0df2be..b037d2fd0e 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart @@ -2,3 +2,82 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +/// Describes how the traversal of the children of a particular cursor should +/// proceed after visiting a particular child cursor. +enum CXChildVisitResult { + /// Terminates the cursor traversal. + CXChildVisit_Break(0), + + /// Continues the cursor traversal with the next sibling of the cursor just + /// visited, without visiting its children. + CXChildVisit_Continue(1), + + /// Recursively traverse the children of this cursor, using the same visitor + /// and client data. + CXChildVisit_Recurse(2); + + final int value; + const CXChildVisitResult(this.value); + + static CXChildVisitResult fromValue(int value) => switch (value) { + 0 => CXChildVisit_Break, + 1 => CXChildVisit_Continue, + 2 => CXChildVisit_Recurse, + _ => throw ArgumentError('Unknown value for CXChildVisitResult: $value'), + }; +} + +/// A cursor representing some element in the abstract syntax tree for a +/// translation unit. +final class CXCursor extends ffi.Opaque {} + +typedef CXCursorVisitorFunction = + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + ffi.Pointer client_data, + ); +typedef DartCXCursorVisitorFunction = + CXChildVisitResult Function( + CXCursor cursor, + CXCursor parent, + ffi.Pointer client_data, + ); +typedef CXFieldVisitorFunction = + ffi.UnsignedInt Function(CXCursor C, ffi.Pointer client_data); +typedef DartCXFieldVisitorFunction = + CXVisitorResult Function(CXCursor C, ffi.Pointer client_data); +typedef CXInclusionVisitorFunction = + ffi.Void Function( + ffi.Pointer included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + ffi.Pointer client_data, + ); +typedef DartCXInclusionVisitorFunction = + void Function( + ffi.Pointer included_file, + ffi.Pointer inclusion_stack, + int include_len, + ffi.Pointer client_data, + ); + +/// Identifies a specific source location within a translation unit. +final class CXSourceLocation extends ffi.Opaque {} + +/// @{ +enum CXVisitorResult { + CXVisit_Break(0), + CXVisit_Continue(1); + + final int value; + const CXVisitorResult(this.value); + + static CXVisitorResult fromValue(int value) => switch (value) { + 0 => CXVisit_Break, + 1 => CXVisit_Continue, + _ => throw ArgumentError('Unknown value for CXVisitorResult: $value'), + }; +} diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart index dc0a0df2be..f5e26ef535 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart @@ -2,3 +2,677 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +final class Fts5Context extends ffi.Opaque {} + +/// EXTENSION API FUNCTIONS +/// +/// xUserData(pFts): +/// Return a copy of the context pointer the extension function was +/// registered with. +/// +/// xColumnTotalSize(pFts, iCol, pnToken): +/// If parameter iCol is less than zero, set output variable *pnToken +/// to the total number of tokens in the FTS5 table. Or, if iCol is +/// non-negative but less than the number of columns in the table, return +/// the total number of tokens in column iCol, considering all rows in +/// the FTS5 table. +/// +/// If parameter iCol is greater than or equal to the number of columns +/// in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g. +/// an OOM condition or IO error), an appropriate SQLite error code is +/// returned. +/// +/// xColumnCount(pFts): +/// Return the number of columns in the table. +/// +/// xColumnSize(pFts, iCol, pnToken): +/// If parameter iCol is less than zero, set output variable *pnToken +/// to the total number of tokens in the current row. Or, if iCol is +/// non-negative but less than the number of columns in the table, set +/// *pnToken to the number of tokens in column iCol of the current row. +/// +/// If parameter iCol is greater than or equal to the number of columns +/// in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g. +/// an OOM condition or IO error), an appropriate SQLite error code is +/// returned. +/// +/// This function may be quite inefficient if used with an FTS5 table +/// created with the "columnsize=0" option. +/// +/// xColumnText: +/// This function attempts to retrieve the text of column iCol of the +/// current document. If successful, (*pz) is set to point to a buffer +/// containing the text in utf-8 encoding, (*pn) is set to the size in bytes +/// (not characters) of the buffer and SQLITE_OK is returned. Otherwise, +/// if an error occurs, an SQLite error code is returned and the final values +/// of (*pz) and (*pn) are undefined. +/// +/// xPhraseCount: +/// Returns the number of phrases in the current query expression. +/// +/// xPhraseSize: +/// Returns the number of tokens in phrase iPhrase of the query. Phrases +/// are numbered starting from zero. +/// +/// xInstCount: +/// Set *pnInst to the total number of occurrences of all phrases within +/// the query within the current row. Return SQLITE_OK if successful, or +/// an error code (i.e. SQLITE_NOMEM) if an error occurs. +/// +/// This API can be quite slow if used with an FTS5 table created with the +/// "detail=none" or "detail=column" option. If the FTS5 table is created +/// with either "detail=none" or "detail=column" and "content=" option +/// (i.e. if it is a contentless table), then this API always returns 0. +/// +/// xInst: +/// Query for the details of phrase match iIdx within the current row. +/// Phrase matches are numbered starting from zero, so the iIdx argument +/// should be greater than or equal to zero and smaller than the value +/// output by xInstCount(). +/// +/// Usually, output parameter *piPhrase is set to the phrase number, *piCol +/// to the column in which it occurs and *piOff the token offset of the +/// first token of the phrase. Returns SQLITE_OK if successful, or an error +/// code (i.e. SQLITE_NOMEM) if an error occurs. +/// +/// This API can be quite slow if used with an FTS5 table created with the +/// "detail=none" or "detail=column" option. +/// +/// xRowid: +/// Returns the rowid of the current row. +/// +/// xTokenize: +/// Tokenize text using the tokenizer belonging to the FTS5 table. +/// +/// xQueryPhrase(pFts5, iPhrase, pUserData, xCallback): +/// This API function is used to query the FTS table for phrase iPhrase +/// of the current query. Specifically, a query equivalent to: +/// +/// ... FROM ftstable WHERE ftstable MATCH $p ORDER BY rowid +/// +/// with $p set to a phrase equivalent to the phrase iPhrase of the +/// current query is executed. Any column filter that applies to +/// phrase iPhrase of the current query is included in $p. For each +/// row visited, the callback function passed as the fourth argument +/// is invoked. The context and API objects passed to the callback +/// function may be used to access the properties of each matched row. +/// Invoking Api.xUserData() returns a copy of the pointer passed as +/// the third argument to pUserData. +/// +/// If the callback function returns any value other than SQLITE_OK, the +/// query is abandoned and the xQueryPhrase function returns immediately. +/// If the returned value is SQLITE_DONE, xQueryPhrase returns SQLITE_OK. +/// Otherwise, the error code is propagated upwards. +/// +/// If the query runs to completion without incident, SQLITE_OK is returned. +/// Or, if some error occurs before the query completes or is aborted by +/// the callback, an SQLite error code is returned. +/// +/// +/// xSetAuxdata(pFts5, pAux, xDelete) +/// +/// Save the pointer passed as the second argument as the extension function's +/// "auxiliary data". The pointer may then be retrieved by the current or any +/// future invocation of the same fts5 extension function made as part of +/// the same MATCH query using the xGetAuxdata() API. +/// +/// Each extension function is allocated a single auxiliary data slot for +/// each FTS query (MATCH expression). If the extension function is invoked +/// more than once for a single FTS query, then all invocations share a +/// single auxiliary data context. +/// +/// If there is already an auxiliary data pointer when this function is +/// invoked, then it is replaced by the new pointer. If an xDelete callback +/// was specified along with the original pointer, it is invoked at this +/// point. +/// +/// The xDelete callback, if one is specified, is also invoked on the +/// auxiliary data pointer after the FTS5 query has finished. +/// +/// If an error (e.g. an OOM condition) occurs within this function, +/// the auxiliary data is set to NULL and an error code returned. If the +/// xDelete parameter was not NULL, it is invoked on the auxiliary data +/// pointer before returning. +/// +/// +/// xGetAuxdata(pFts5, bClear) +/// +/// Returns the current auxiliary data pointer for the fts5 extension +/// function. See the xSetAuxdata() method for details. +/// +/// If the bClear argument is non-zero, then the auxiliary data is cleared +/// (set to NULL) before this function returns. In this case the xDelete, +/// if any, is not invoked. +/// +/// +/// xRowCount(pFts5, pnRow) +/// +/// This function is used to retrieve the total number of rows in the table. +/// In other words, the same value that would be returned by: +/// +/// SELECT count(*) FROM ftstable; +/// +/// xPhraseFirst() +/// This function is used, along with type Fts5PhraseIter and the xPhraseNext +/// method, to iterate through all instances of a single query phrase within +/// the current row. This is the same information as is accessible via the +/// xInstCount/xInst APIs. While the xInstCount/xInst APIs are more convenient +/// to use, this API may be faster under some circumstances. To iterate +/// through instances of phrase iPhrase, use the following code: +/// +/// Fts5PhraseIter iter; +/// int iCol, iOff; +/// for(pApi->xPhraseFirst(pFts, iPhrase, &iter, &iCol, &iOff); +/// iCol>=0; +/// pApi->xPhraseNext(pFts, &iter, &iCol, &iOff) +/// ){ +/// // An instance of phrase iPhrase at offset iOff of column iCol +/// } +/// +/// The Fts5PhraseIter structure is defined above. Applications should not +/// modify this structure directly - it should only be used as shown above +/// with the xPhraseFirst() and xPhraseNext() API methods (and by +/// xPhraseFirstColumn() and xPhraseNextColumn() as illustrated below). +/// +/// This API can be quite slow if used with an FTS5 table created with the +/// "detail=none" or "detail=column" option. If the FTS5 table is created +/// with either "detail=none" or "detail=column" and "content=" option +/// (i.e. if it is a contentless table), then this API always iterates +/// through an empty set (all calls to xPhraseFirst() set iCol to -1). +/// +/// xPhraseNext() +/// See xPhraseFirst above. +/// +/// xPhraseFirstColumn() +/// This function and xPhraseNextColumn() are similar to the xPhraseFirst() +/// and xPhraseNext() APIs described above. The difference is that instead +/// of iterating through all instances of a phrase in the current row, these +/// APIs are used to iterate through the set of columns in the current row +/// that contain one or more instances of a specified phrase. For example: +/// +/// Fts5PhraseIter iter; +/// int iCol; +/// for(pApi->xPhraseFirstColumn(pFts, iPhrase, &iter, &iCol); +/// iCol>=0; +/// pApi->xPhraseNextColumn(pFts, &iter, &iCol) +/// ){ +/// // Column iCol contains at least one instance of phrase iPhrase +/// } +/// +/// This API can be quite slow if used with an FTS5 table created with the +/// "detail=none" option. If the FTS5 table is created with either +/// "detail=none" "content=" option (i.e. if it is a contentless table), +/// then this API always iterates through an empty set (all calls to +/// xPhraseFirstColumn() set iCol to -1). +/// +/// The information accessed using this API and its companion +/// xPhraseFirstColumn() may also be obtained using xPhraseFirst/xPhraseNext +/// (or xInst/xInstCount). The chief advantage of this API is that it is +/// significantly more efficient than those alternatives when used with +/// "detail=column" tables. +/// +/// xPhraseNextColumn() +/// See xPhraseFirstColumn above. +final class Fts5ExtensionApi extends ffi.Struct { + /// Currently always set to 3 + @ffi.Int() + external int iVersion; + + external ffi.Pointer< + ffi.NativeFunction Function(ffi.Pointer)> + > + xUserData; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xColumnCount; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xRowCount; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xColumnTotalSize; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Int, + ) + > + >, + ) + > + > + xTokenize; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xPhraseCount; + + external ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xPhraseSize; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xInstCount; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xInst; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xRowid; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ) + > + > + xColumnText; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) + > + > + xColumnSize; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) + > + > + xQueryPhrase; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + > + xSetAuxdata; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + > + xGetAuxdata; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseFirst; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseNext; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseFirstColumn; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseNextColumn; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iVersion, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + > + xUserData, + required ffi.Pointer< + ffi.NativeFunction)> + > + xColumnCount, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xRowCount, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xColumnTotalSize, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Int, + ) + > + >, + ) + > + > + xTokenize, + required ffi.Pointer< + ffi.NativeFunction)> + > + xPhraseCount, + required ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xPhraseSize, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xInstCount, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xInst, + required ffi.Pointer< + ffi.NativeFunction)> + > + xRowid, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ) + > + > + xColumnText, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xColumnSize, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) + > + > + xQueryPhrase, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + > + xSetAuxdata, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + > + xGetAuxdata, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseFirst, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseNext, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseFirstColumn, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseNextColumn, + }) => $allocator() + ..ref.iVersion = iVersion + ..ref.xUserData = xUserData + ..ref.xColumnCount = xColumnCount + ..ref.xRowCount = xRowCount + ..ref.xColumnTotalSize = xColumnTotalSize + ..ref.xTokenize = xTokenize + ..ref.xPhraseCount = xPhraseCount + ..ref.xPhraseSize = xPhraseSize + ..ref.xInstCount = xInstCount + ..ref.xInst = xInst + ..ref.xRowid = xRowid + ..ref.xColumnText = xColumnText + ..ref.xColumnSize = xColumnSize + ..ref.xQueryPhrase = xQueryPhrase + ..ref.xSetAuxdata = xSetAuxdata + ..ref.xGetAuxdata = xGetAuxdata + ..ref.xPhraseFirst = xPhraseFirst + ..ref.xPhraseNext = xPhraseNext + ..ref.xPhraseFirstColumn = xPhraseFirstColumn + ..ref.xPhraseNextColumn = xPhraseNextColumn; +} + +final class Fts5PhraseIter extends ffi.Struct { + external ffi.Pointer a; + + external ffi.Pointer b; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer a, + required ffi.Pointer b, + }) => $allocator() + ..ref.a = a + ..ref.b = b; +} + +typedef fts5_extension_functionFunction = + ffi.Void Function( + ffi.Pointer pApi, + ffi.Pointer pFts, + ffi.Pointer pCtx, + ffi.Int nVal, + ffi.Pointer> apVal, + ); +typedef Dartfts5_extension_functionFunction = + void Function( + ffi.Pointer pApi, + ffi.Pointer pFts, + ffi.Pointer pCtx, + int nVal, + ffi.Pointer> apVal, + ); +typedef sqlite3_callbackFunction = + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ); +typedef Dartsqlite3_callbackFunction = + int Function( + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, + ); + +final class sqlite3_context extends ffi.Opaque {} + +typedef sqlite3_destructor_typeFunction = + ffi.Void Function(ffi.Pointer); +typedef Dartsqlite3_destructor_typeFunction = + void Function(ffi.Pointer); +typedef sqlite3_syscall_ptrFunction = ffi.Void Function(); +typedef Dartsqlite3_syscall_ptrFunction = void Function(); + +final class sqlite3_value extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart index 12fd500fb5..56b918230a 100644 --- a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart @@ -341,6 +341,87 @@ extension ArcTestObject$Methods on ArcTestObject { } } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_ArcDtorTestObject', ) @@ -546,3 +627,5 @@ late final _sel_setRetainedProperty_ = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart index 3ae3ec75a3..96c26ab3a1 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart @@ -110,8 +110,90 @@ extension BadMethodTestObject$Methods on BadMethodTestObject { final class BitField extends ffi.Opaque {} +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + final class IncompleteStruct extends ffi.Opaque {} +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_BadMethodTestObject', ) @@ -254,3 +336,5 @@ late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart index ba2f1ffb2b..872313bc9e 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart @@ -606,6 +606,84 @@ extension BadOverrideUncle$Methods on BadOverrideUncle { } } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// Polygon extension type Polygon._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -682,6 +760,9 @@ extension Polygon$Methods on Polygon { } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); + /// Rectangle extension type Rectangle._(objc.ObjCObject object$) implements objc.ObjCObject, Polygon { @@ -758,6 +839,9 @@ extension Rectangle$Methods on Rectangle { } } +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + /// Square extension type Square._(objc.ObjCObject object$) implements objc.ObjCObject, Rectangle { @@ -1104,3 +1188,5 @@ late final _sel_name = objc.registerName("name"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart index 1854786c48..6a20b4d36a 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart @@ -1130,6 +1130,81 @@ interface class BlockAnnotationTestProtocol$Builder { ); } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + typedef EmptyBlock = ffi.Pointer; typedef DartEmptyBlock = objc.ObjCBlock; @@ -1202,6 +1277,9 @@ extension EmptyObject$Methods on EmptyObject { } } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// NSThread extension type NSThread._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -2988,6 +3066,11 @@ extension ObjCBlock_ffiVoid_ffiVoid_EmptyObject$1$CallExtension } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + extension type _BlockArgs_1wgsnfr._(objc.ObjCObject object$) implements objc.ObjCObject { /// Constructs a [_BlockArgs_1wgsnfr] that points to the same underlying object as [other]. @@ -3683,3 +3766,5 @@ late final _sel_threadDictionary = objc.registerName("threadDictionary"); late final _sel_threadPriority = objc.registerName("threadPriority"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart index 3dc34fbed9..d9d91cc435 100644 --- a/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart @@ -286,6 +286,84 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { } } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// Mammal extension type Mammal._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -841,6 +919,10 @@ extension Platypus$Methods on Platypus { } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); typedef ReturnMammal = ffi.Pointer; typedef DartReturnMammal = objc.ObjCBlock; typedef ReturnPlatypus = ffi.Pointer; @@ -1008,3 +1090,5 @@ late final _sel_laysEggs = objc.registerName("laysEggs"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart index 14de93cbb6..d1b7850e24 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart @@ -676,6 +676,81 @@ extension BlockTester$Methods on BlockTester { } } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + typedef DoubleBlock = ffi.Pointer; typedef DartDoubleBlock = objc.ObjCBlock; @@ -783,6 +858,8 @@ extension DummyObject$Methods on DummyObject { typedef FloatBlock = ffi.Pointer; typedef DartFloatBlock = objc.ObjCBlock; +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); typedef IntBlock = ffi.Pointer; typedef DartIntBlock = objc.ObjCBlock; typedef ListenerBlock = ffi.Pointer; @@ -3835,6 +3912,10 @@ typedef DartObjectBlock = objc.ObjCBlock; typedef ObjectListenerBlock = ffi.Pointer; typedef DartObjectListenerBlock = objc.ObjCBlock; +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); typedef SelectorBlock = ffi.Pointer; typedef DartSelectorBlock = objc.ObjCBlock)>; @@ -5197,3 +5278,5 @@ late final _sel_threadDictionary = objc.registerName("threadDictionary"); late final _sel_threadPriority = objc.registerName("threadPriority"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart index 463cd4713c..22b0b92014 100644 --- a/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart @@ -10,6 +10,80 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} /// Castaway extension type Castaway._(objc.ObjCObject object$) @@ -93,6 +167,12 @@ extension Castaway$Methods on Castaway { } } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>(symbol: 'OBJC_CLASS_\$_Castaway') external ffi.Pointer _class_Castaway_raw; final _class_Castaway = objc.getClass( @@ -174,3 +254,5 @@ late final _sel_meAsNSObject = objc.registerName("meAsNSObject"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index 6d48048e5d..1812f668c0 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -41,6 +41,81 @@ external ffi.Pointer _l3cf7j_wrapListenerBlock_pfv6jd( ffi.Pointer context, ); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + /// CatImplementsProto extension CatImplementsProto on Thing { /// protoMethod @@ -247,6 +322,9 @@ extension ChildOfThing$Methods on ChildOfThing { } } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// InstanceTypeCategory extension InstanceTypeCategory on Thing {} @@ -1091,6 +1169,11 @@ extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + /// StaticAndInstanceMethodsWithSameNameCategory extension StaticAndInstanceMethodsWithSameNameCategory on Thing { /// sameNameMethod @@ -1710,6 +1793,8 @@ late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); /// extension unnamed on Thing {} diff --git a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart index 624ad51faa..1aac237ad1 100644 --- a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart @@ -10,6 +10,80 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} sealed class CoffeeOptions { static const CoffeeOptionsNone = 0; @@ -123,6 +197,13 @@ enum Fruit { }; } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + const int SOME_MACRO = 123; const int UnnamedEnumValue = 0; @@ -231,3 +312,5 @@ late final _sel_useImportedNSOptions_ = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart index 342e32e50b..e99f8aa371 100644 --- a/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart @@ -10,6 +10,80 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} /// ErrorMethodTestObject extension type ErrorMethodTestObject._(objc.ObjCObject object$) @@ -173,6 +247,12 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { } } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_ErrorMethodTestObject', ) @@ -289,3 +369,5 @@ late final _sel_outErrorMethod_outError_ = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart index 8bd3c48f48..d606bc7d74 100644 --- a/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart @@ -10,6 +10,80 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} /// ClassThatWillFailToLoad extension type ClassThatWillFailToLoad._(objc.ObjCObject object$) @@ -108,6 +182,12 @@ extension ClassThatWillFailToLoad$Methods on ClassThatWillFailToLoad { } } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_ClassThatWillFailToLoad', ) @@ -190,3 +270,5 @@ late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart index 855bf1a850..3d5122551b 100644 --- a/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart @@ -10,6 +10,80 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} /// ForwardDeclaredClass extension type ForwardDeclaredClass._(objc.ObjCObject object$) @@ -85,6 +159,12 @@ extension ForwardDeclaredClass$Methods on ForwardDeclaredClass { } } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_ForwardDeclaredClass', ) @@ -167,3 +247,5 @@ late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart index 579aa3cfee..c3e389accc 100644 --- a/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart @@ -69,6 +69,84 @@ set globalString(objc.NSString value) { _globalString = _$$ref.retainAndReturnPointer(); } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -155,3 +233,10 @@ extension ObjCBlock_Int32_Int32$CallExtension ); } } + +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart index 750eb425ce..ccf252af3e 100644 --- a/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart @@ -90,6 +90,84 @@ class GlobalTestObjCLibrary { } } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -176,3 +254,10 @@ extension ObjCBlock_Int32_Int32$CallExtension ); } } + +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart index 2afa773d54..1851490343 100644 --- a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart @@ -93,6 +93,81 @@ extension BaseClass$Methods on BaseClass { } } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + /// ChildClass extension type ChildClass._(objc.ObjCObject object$) implements objc.ObjCObject, BaseClass { @@ -187,6 +262,12 @@ extension ChildClass$Methods on ChildClass { } } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>(symbol: 'OBJC_CLASS_\$_BaseClass') external ffi.Pointer _class_BaseClass_raw; final _class_BaseClass = objc.getClass( @@ -297,3 +378,5 @@ late final _sel_new = objc.registerName("new"); late final _sel_setField_ = objc.registerName("setField:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart index 486f0fa35c..b88a5dbb53 100644 --- a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart @@ -10,6 +10,83 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); /// IsInstanceBaseClass extension type IsInstanceBaseClass._(objc.ObjCObject object$) @@ -240,6 +317,10 @@ extension IsInstanceUnrelatedClass$Methods on IsInstanceUnrelatedClass { } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_IsInstanceBaseClass', ) @@ -326,3 +407,5 @@ late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart index fb2451e90b..79003c332e 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart @@ -41,6 +41,84 @@ external ffi.Pointer _rdx59v_wrapListenerBlock_1bqef4y( ffi.Pointer context, ); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -188,6 +266,11 @@ extension ObjCBlock_ffiVoid_Int32$CallExtension } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + /// Sendable extension type Sendable._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -443,3 +526,5 @@ late final _sel_setValue_ = objc.registerName("setValue:"); late final _sel_value = objc.registerName("value"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart index cb06d2dcb3..9e46dcae40 100644 --- a/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart @@ -10,6 +10,83 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); /// LogSpamBaseClass extension type LogSpamBaseClass._(objc.ObjCObject object$) @@ -177,6 +254,10 @@ extension LogSpamChildClass$Methods on LogSpamChildClass { } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_LogSpamBaseClass', ) @@ -270,3 +351,5 @@ late final _sel_matchingMethod = objc.registerName("matchingMethod"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart index d3464955d5..392def2150 100644 --- a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart @@ -18,6 +18,84 @@ external instancetype _n85dd5_protocolTrampoline_1mbt9g9( ffi.Pointer arg0, ); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// MethodFilteringTestInterface extension type MethodFilteringTestInterface._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -319,6 +397,10 @@ extension ObjCBlock_instancetype_ffiVoid$CallExtension } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_MethodFilteringTestInterface', ) @@ -421,3 +503,5 @@ late final _sel_includedStaticMethod = objc.registerName( late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart index 8071e21574..4efc01b10c 100644 --- a/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart @@ -10,6 +10,83 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); /// MethodInterface extension type MethodInterface._(objc.ObjCObject object$) @@ -191,6 +268,11 @@ extension MethodInterface$Methods on MethodInterface { } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + final class Vec4 extends ffi.Struct { @ffi.Double() external double x; @@ -514,3 +596,5 @@ late final _sel_twiddleVec4Components_ = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart index 9ddfe020c2..5ce535ee52 100644 --- a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart @@ -10,6 +10,80 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} /// Foo extension type Foo._(objc.ObjCObject object$) @@ -174,6 +248,12 @@ extension Foo$Methods on Foo { } } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>(symbol: 'OBJC_CLASS_\$_Foo') external ffi.Pointer _class_Foo_raw; final _class_Foo = objc.getClass( @@ -421,3 +501,5 @@ late final _sel_setObjVal_ = objc.registerName("setObjVal:"); late final _sel_setSelVal_ = objc.registerName("setSelVal:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart index f808138798..8e616af047 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart @@ -10,6 +10,83 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); /// NullableBase extension type NullableBase._(objc.ObjCObject object$) @@ -296,6 +373,10 @@ extension NullableIntermediate$Methods on NullableIntermediate { } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NullableBase', ) @@ -403,3 +484,5 @@ late final _sel_nullableArg_ = objc.registerName("nullableArg:"); late final _sel_nullableReturn_ = objc.registerName("nullableReturn:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart index ba8f6f1664..6d21564adf 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart @@ -10,6 +10,83 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); /// NullableInterface extension type NullableInterface._(objc.ObjCObject object$) @@ -178,6 +255,10 @@ extension NullableInterface$Methods on NullableInterface { } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NullableInterface', ) @@ -320,3 +401,5 @@ late final _sel_setNullableObjectProperty_ = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart index c153f673a9..49af6a6df6 100644 --- a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart @@ -10,6 +10,85 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); /// PropertyInterface extension type PropertyInterface._(objc.ObjCObject object$) @@ -203,6 +282,9 @@ extension PropertyInterface$Methods on PropertyInterface { } } +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + /// WARNING: UndefinedTemplate is a stub. To generate bindings for this class, include /// UndefinedTemplate in your config's objc-interfaces list. /// @@ -510,3 +592,5 @@ late final _sel_setStructProperty_ = objc.registerName("setStructProperty:"); late final _sel_structProperty = objc.registerName("structProperty"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart index d38bd0fd15..1b7c1fb6c6 100644 --- a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart @@ -226,6 +226,81 @@ external void objc_autoreleasePoolPop(ffi.Pointer pool); @ffi.Native Function()>() external ffi.Pointer objc_autoreleasePoolPush(); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + /// EmptyProtocol extension type EmptyProtocol._(objc.ObjCProtocol object$) implements objc.ObjCProtocol { @@ -297,6 +372,9 @@ extension type FilteredProtocol._(objc.ObjCProtocol object$) }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// MyProtocol extension type MyProtocol._(objc.ObjCProtocol object$) implements objc.ObjCProtocol, SuperProtocol { @@ -2712,6 +2790,9 @@ extension ObjCProtocolImplMissingMethod$Methods } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); + /// ProtocolConsumer extension type ProtocolConsumer._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -2848,6 +2929,9 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { } } +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + /// SecondaryProtocol extension type SecondaryProtocol._(objc.ObjCProtocol object$) implements objc.ObjCProtocol, objc.NSObjectProtocol { @@ -3692,3 +3776,5 @@ late final _sel_unimplementedOtionalClassMethod = objc.registerName( late final _sel_voidMethod_ = objc.registerName("voidMethod:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart index 79e372972b..df0f0aab4a 100644 --- a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart @@ -16,6 +16,86 @@ external void objc_autoreleasePoolPop(ffi.Pointer pool); @ffi.Native Function()>() external ffi.Pointer objc_autoreleasePoolPush(); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); + /// RefCountTestObject extension type RefCountTestObject._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -347,6 +427,8 @@ extension RefCounted$Methods on RefCounted { } } +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_RefCountTestObject', ) @@ -563,3 +645,5 @@ late final _sel_setRetainedProperty_ = objc.registerName( late final _sel_unownedReference = objc.registerName("unownedReference"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart index ea453eea06..122385dcf7 100644 --- a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart @@ -10,9 +10,90 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} final class CollidingStructName extends ffi.Opaque {} +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + /// _Renamed extension type Renamed._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -254,3 +335,5 @@ late final _sel_setRenamedProperty_ = objc.registerName("setRenamedProperty:"); late final _sel_toString = objc.registerName("toString"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart index 8dfee2df47..1bc39958dc 100644 --- a/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart @@ -12,6 +12,80 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} /// FutureAPICategoryMethods extension FutureAPICategoryMethods on objc.NSObject { @@ -295,6 +369,12 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { } } +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_FutureAPIInterface', ) @@ -406,3 +486,5 @@ late final _sel_unavailableIos = objc.registerName("unavailableIos"); late final _sel_unavailableMac = objc.registerName("unavailableMac"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart index 1b66ae4d68..6b5dd91e64 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart @@ -10,442 +10,3135 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef AECoerceDescProcPtrFunction = + ffi.Short Function( + ffi.Pointer fromDesc, + ffi.UnsignedInt toType, + ffi.Pointer handlerRefcon, + ffi.Pointer toDesc, + ); +typedef DartAECoerceDescProcPtrFunction = + int Function( + ffi.Pointer fromDesc, + int toType, + ffi.Pointer handlerRefcon, + ffi.Pointer toDesc, + ); +typedef AECoercePtrProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt typeCode, + ffi.Pointer dataPtr, + ffi.Long dataSize, + ffi.UnsignedInt toType, + ffi.Pointer handlerRefcon, + ffi.Pointer result, + ); +typedef DartAECoercePtrProcPtrFunction = + int Function( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + int toType, + ffi.Pointer handlerRefcon, + ffi.Pointer result, + ); +typedef AEDisposeExternalProcPtrFunction = + ffi.Void Function( + ffi.Pointer dataPtr, + ffi.Long dataLength, + ffi.Pointer refcon, + ); +typedef DartAEDisposeExternalProcPtrFunction = + void Function( + ffi.Pointer dataPtr, + int dataLength, + ffi.Pointer refcon, + ); +typedef AEEventHandlerProcPtrFunction = + ffi.Short Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + ffi.Pointer handlerRefcon, + ); +typedef DartAEEventHandlerProcPtrFunction = + int Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + ffi.Pointer handlerRefcon, + ); -/// WARNING: NSAccessibility is a stub. To generate bindings for this class, include -/// NSAccessibility in your config's objc-protocols list. -/// -/// NSAccessibility -extension type NSAccessibility._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSAccessibility] that points to the same underlying object as [other]. - NSAccessibility.as(objc.ObjCObject other) : object$ = other; +final class AERemoteProcessResolver extends ffi.Opaque {} - /// Constructs a [NSAccessibility] that wraps the given raw object pointer. - NSAccessibility.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} +typedef AERemoteProcessResolverCallbackFunction = + ffi.Void Function( + ffi.Pointer ref, + ffi.Pointer info, + ); +typedef DartAERemoteProcessResolverCallbackFunction = + void Function( + ffi.Pointer ref, + ffi.Pointer info, + ); +typedef ATSCubicClosePathProcPtrFunction = + ffi.Int Function(ffi.Pointer callBackDataPtr); +typedef DartATSCubicClosePathProcPtrFunction = + int Function(ffi.Pointer callBackDataPtr); +typedef ATSCubicCurveToProcPtrFunction = + ffi.Int Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer pt3, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSCubicCurveToProcPtrFunction = + int Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer pt3, + ffi.Pointer callBackDataPtr, + ); +typedef ATSCubicLineToProcPtrFunction = + ffi.Int Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSCubicLineToProcPtrFunction = + int Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef ATSCubicMoveToProcPtrFunction = + ffi.Int Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSCubicMoveToProcPtrFunction = + int Function( + ffi.Pointer pt, + ffi.Pointer callBackDataPtr, + ); +typedef ATSFontApplierFunctionFunction = + ffi.Int Function(ffi.UnsignedInt iFont, ffi.Pointer iRefCon); +typedef DartATSFontApplierFunctionFunction = + int Function(int iFont, ffi.Pointer iRefCon); +typedef ATSFontFamilyApplierFunctionFunction = + ffi.Int Function(ffi.UnsignedInt iFamily, ffi.Pointer iRefCon); +typedef DartATSFontFamilyApplierFunctionFunction = + int Function(int iFamily, ffi.Pointer iRefCon); -/// WARNING: NSAccessibilityElement is a stub. To generate bindings for this class, include -/// NSAccessibilityElement in your config's objc-protocols list. -/// -/// NSAccessibilityElement -extension type NSAccessibilityElement._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSAccessibilityElement] that points to the same underlying object as [other]. - NSAccessibilityElement.as(objc.ObjCObject other) : object$ = other; +final class ATSFontNotificationInfoRef_ extends ffi.Opaque {} - /// Constructs a [NSAccessibilityElement] that wraps the given raw object pointer. - NSAccessibilityElement.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} +typedef ATSFontQueryCallbackFunction = + ffi.Pointer Function( + ffi.UnsignedInt msgid, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef DartATSFontQueryCallbackFunction = + ffi.Pointer Function( + ATSFontQueryMessageID msgid, + ffi.Pointer data, + ffi.Pointer refCon, + ); -/// WARNING: NSAnimatablePropertyContainer is a stub. To generate bindings for this class, include -/// NSAnimatablePropertyContainer in your config's objc-protocols list. -/// -/// NSAnimatablePropertyContainer -extension type NSAnimatablePropertyContainer._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSAnimatablePropertyContainer] that points to the same underlying object as [other]. - NSAnimatablePropertyContainer.as(objc.ObjCObject other) : object$ = other; +enum ATSFontQueryMessageID { + kATSQueryActivateFontMessage(1635021665); - /// Constructs a [NSAnimatablePropertyContainer] that wraps the given raw object pointer. - NSAnimatablePropertyContainer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + final int value; + const ATSFontQueryMessageID(this.value); + + static ATSFontQueryMessageID fromValue(int value) => switch (value) { + 1635021665 => kATSQueryActivateFontMessage, + _ => throw ArgumentError('Unknown value for ATSFontQueryMessageID: $value'), + }; } -/// WARNING: NSAppearanceCustomization is a stub. To generate bindings for this class, include -/// NSAppearanceCustomization in your config's objc-protocols list. -/// -/// NSAppearanceCustomization -extension type NSAppearanceCustomization._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSAppearanceCustomization] that points to the same underlying object as [other]. - NSAppearanceCustomization.as(objc.ObjCObject other) : object$ = other; +typedef ATSNotificationCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer refCon, + ); +typedef DartATSNotificationCallbackFunction = + void Function( + ffi.Pointer info, + ffi.Pointer refCon, + ); +typedef ATSQuadraticClosePathProcPtrFunction = + ffi.Int Function(ffi.Pointer callBackDataPtr); +typedef DartATSQuadraticClosePathProcPtrFunction = + int Function(ffi.Pointer callBackDataPtr); +typedef ATSQuadraticCurveProcPtrFunction = + ffi.Int Function( + ffi.Pointer pt1, + ffi.Pointer controlPt, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSQuadraticCurveProcPtrFunction = + int Function( + ffi.Pointer pt1, + ffi.Pointer controlPt, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef ATSQuadraticLineProcPtrFunction = + ffi.Int Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef DartATSQuadraticLineProcPtrFunction = + int Function( + ffi.Pointer pt1, + ffi.Pointer pt2, + ffi.Pointer callBackDataPtr, + ); +typedef ATSQuadraticNewPathProcPtrFunction = + ffi.Int Function(ffi.Pointer callBackDataPtr); +typedef DartATSQuadraticNewPathProcPtrFunction = + int Function(ffi.Pointer callBackDataPtr); - /// Constructs a [NSAppearanceCustomization] that wraps the given raw object pointer. - NSAppearanceCustomization.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} +final class ATSTrapezoid extends ffi.Struct { + external FixedPoint upperLeft; -/// WARNING: NSButtonCell is a stub. To generate bindings for this class, include -/// NSButtonCell in your config's objc-interfaces list. -/// -/// NSButtonCell -extension type NSButtonCell._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [NSButtonCell] that points to the same underlying object as [other]. - NSButtonCell.as(objc.ObjCObject other) : object$ = other {} + external FixedPoint upperRight; - /// Constructs a [NSButtonCell] that wraps the given raw object pointer. - NSButtonCell.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} + external FixedPoint lowerRight; + + external FixedPoint lowerLeft; } -/// WARNING: NSColorList is a stub. To generate bindings for this class, include -/// NSColorList in your config's objc-interfaces list. -/// -/// NSColorList -extension type NSColorList._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [NSColorList] that points to the same underlying object as [other]. - NSColorList.as(objc.ObjCObject other) : object$ = other {} +typedef AXObserverCallbackFunction = + ffi.Void Function( + ffi.Pointer<__AXObserver> observer, + ffi.Pointer<__AXUIElement> element, + ffi.Pointer notification, + ffi.Pointer refcon, + ); +typedef DartAXObserverCallbackFunction = + void Function( + ffi.Pointer<__AXObserver> observer, + ffi.Pointer<__AXUIElement> element, + ffi.Pointer notification, + ffi.Pointer refcon, + ); +typedef AXObserverCallbackWithInfoFunction = + ffi.Void Function( + ffi.Pointer<__AXObserver> observer, + ffi.Pointer<__AXUIElement> element, + ffi.Pointer notification, + ffi.Pointer<__CFDictionary> info, + ffi.Pointer refcon, + ); +typedef DartAXObserverCallbackWithInfoFunction = + void Function( + ffi.Pointer<__AXObserver> observer, + ffi.Pointer<__AXUIElement> element, + ffi.Pointer notification, + ffi.Pointer<__CFDictionary> info, + ffi.Pointer refcon, + ); - /// Constructs a [NSColorList] that wraps the given raw object pointer. - NSColorList.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} +@ffi.Packed(2) +final class BitMap extends ffi.Struct { + external ffi.Pointer baseAddr; -/// WARNING: NSColorPanel is a stub. To generate bindings for this class, include -/// NSColorPanel in your config's objc-interfaces list. -/// -/// NSColorPanel -extension type NSColorPanel._(objc.ObjCObject object$) - implements objc.ObjCObject, NSPanel { - /// Constructs a [NSColorPanel] that points to the same underlying object as [other]. - NSColorPanel.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal('NSColorPanel', iOS: (true, null)); - } + @ffi.Short() + external int rowBytes; - /// Constructs a [NSColorPanel] that wraps the given raw object pointer. - NSColorPanel.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal('NSColorPanel', iOS: (true, null)); - } + external Rect bounds; } -enum NSColorPanelMode { - NSColorPanelModeNone(-1), - NSColorPanelModeGray(0), - NSColorPanelModeRGB(1), - NSColorPanelModeCMYK(2), - NSColorPanelModeHSB(3), - NSColorPanelModeCustomPalette(4), - NSColorPanelModeColorList(5), - NSColorPanelModeWheel(6), - NSColorPanelModeCrayon(7); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFArrayApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFArrayApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFArrayCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFArrayEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFArrayEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFArrayReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFArrayReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFArrayRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBagApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFBagApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFBagCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFBagEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFBagEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFBagHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFBagHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFBagReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFBagReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBagRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBinaryHeapApplierFunctionFunction = + ffi.Void Function(ffi.Pointer val, ffi.Pointer context); +typedef DartCFBinaryHeapApplierFunctionFunction = + void Function(ffi.Pointer val, ffi.Pointer context); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); final int value; - const NSColorPanelMode(this.value); + const CFComparisonResult(this.value); - static NSColorPanelMode fromValue(int value) => switch (value) { - -1 => NSColorPanelModeNone, - 0 => NSColorPanelModeGray, - 1 => NSColorPanelModeRGB, - 2 => NSColorPanelModeCMYK, - 3 => NSColorPanelModeHSB, - 4 => NSColorPanelModeCustomPalette, - 5 => NSColorPanelModeColorList, - 6 => NSColorPanelModeWheel, - 7 => NSColorPanelModeCrayon, - _ => throw ArgumentError('Unknown value for NSColorPanelMode: $value'), + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), }; } -/// NSColorPicker -extension type NSColorPicker._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, NSColorPickingDefault { - /// Constructs a [NSColorPicker] that points to the same underlying object as [other]. - NSColorPicker.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal('NSColorPicker', iOS: (true, null)); - assert(isA(object$)); - } +typedef CFDictionaryApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFDictionaryApplierFunctionFunction = + void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef CFDictionaryCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFDictionaryEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFDictionaryEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFDictionaryHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFDictionaryHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFDictionaryReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFDictionaryReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFDictionaryRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFFileDescriptorCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFFileDescriptor> f, + ffi.UnsignedLong callBackTypes, + ffi.Pointer info, + ); +typedef DartCFFileDescriptorCallBackFunction = + void Function( + ffi.Pointer<__CFFileDescriptor> f, + int callBackTypes, + ffi.Pointer info, + ); +typedef CFHostClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFHost> theHost, + ffi.UnsignedInt typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFHostClientCallBackFunction = + void Function( + ffi.Pointer<__CFHost> theHost, + CFHostInfoType typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ); - /// Constructs a [NSColorPicker] that wraps the given raw object pointer. - NSColorPicker.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal('NSColorPicker', iOS: (true, null)); - assert(isA(object$)); - } +enum CFHostInfoType { + kCFHostAddresses(0), + kCFHostNames(1), + kCFHostReachability(2); - /// Returns whether [obj] is an instance of [NSColorPicker]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSColorPicker, - ); + final int value; + const CFHostInfoType(this.value); - /// alloc - static NSColorPicker alloc() { - final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_alloc); - return NSColorPicker.fromPointer($ret, retain: false, release: true); - } + static CFHostInfoType fromValue(int value) => switch (value) { + 0 => kCFHostAddresses, + 1 => kCFHostNames, + 2 => kCFHostReachability, + _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), + }; +} - /// allocWithZone: - static NSColorPicker allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_NSColorPicker, - _sel_allocWithZone_, - zone, +typedef CFMachPortCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer msg, + ffi.Long size, + ffi.Pointer info, + ); +typedef DartCFMachPortCallBackFunction = + void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer msg, + int size, + ffi.Pointer info, + ); +typedef CFMachPortInvalidationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer info, + ); +typedef DartCFMachPortInvalidationCallBackFunction = + void Function(ffi.Pointer<__CFMachPort> port, ffi.Pointer info); +typedef CFMessagePortCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFMessagePort> local, + ffi.Int msgid, + ffi.Pointer<__CFData> data, + ffi.Pointer info, + ); +typedef DartCFMessagePortCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFMessagePort> local, + int msgid, + ffi.Pointer<__CFData> data, + ffi.Pointer info, + ); +typedef CFMessagePortInvalidationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMessagePort> ms, + ffi.Pointer info, + ); +typedef DartCFMessagePortInvalidationCallBackFunction = + void Function(ffi.Pointer<__CFMessagePort> ms, ffi.Pointer info); +typedef CFNetServiceBrowserClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetServiceBrowser> browser, + ffi.UnsignedLong flags, + ffi.Pointer domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceBrowserClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetServiceBrowser> browser, + int flags, + ffi.Pointer domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef CFNetServiceClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetService> theService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetService> theService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef CFNetServiceMonitorClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetServiceMonitor> theMonitor, + ffi.Pointer<__CFNetService> theService, + ffi.UnsignedInt typeInfo, + ffi.Pointer<__CFData> rdata, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceMonitorClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetServiceMonitor> theMonitor, + ffi.Pointer<__CFNetService> theService, + CFNetServiceMonitorType typeInfo, + ffi.Pointer<__CFData> rdata, + ffi.Pointer error, + ffi.Pointer info, ); - return NSColorPicker.fromPointer($ret, retain: false, release: true); - } - /// new - static NSColorPicker new$() { - final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_new); - return NSColorPicker.fromPointer($ret, retain: false, release: true); - } +enum CFNetServiceMonitorType { + kCFNetServiceMonitorTXT(1); - /// Returns a new instance of NSColorPicker constructed with the default `new` method. - NSColorPicker() : this.as(new$().object$); + final int value; + const CFNetServiceMonitorType(this.value); + + static CFNetServiceMonitorType fromValue(int value) => switch (value) { + 1 => kCFNetServiceMonitorTXT, + _ => throw ArgumentError( + 'Unknown value for CFNetServiceMonitorType: $value', + ), + }; } -extension NSColorPicker$Methods on NSColorPicker { - /// alphaControlAddedOrRemoved: - void alphaControlAddedOrRemoved(objc.ObjCObject? sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender?.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.alphaControlAddedOrRemoved:', - iOS: (true, null), +typedef CFNotificationCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CFNotificationCenter> center, + ffi.Pointer observer, + ffi.Pointer name, + ffi.Pointer object, + ffi.Pointer<__CFDictionary> userInfo, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_alphaControlAddedOrRemoved_, - _$$ref$1?.pointer ?? ffi.nullptr, +typedef DartCFNotificationCallbackFunction = + void Function( + ffi.Pointer<__CFNotificationCenter> center, + ffi.Pointer observer, + ffi.Pointer name, + ffi.Pointer object, + ffi.Pointer<__CFDictionary> userInfo, + ); +typedef CFPlugInDynamicRegisterFunctionFunction = + ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); +typedef DartCFPlugInDynamicRegisterFunctionFunction = + void Function(ffi.Pointer<__CFBundle> plugIn); +typedef CFPlugInFactoryFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer<__CFUUID> typeUUID, + ); +typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = + ffi.Void Function(ffi.Pointer instanceData); +typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = + void Function(ffi.Pointer instanceData); +typedef CFPlugInInstanceGetInterfaceFunctionFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__CFPlugInInstance> instance, + ffi.Pointer interfaceName, + ffi.Pointer> ftbl, + ); +typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = + int Function( + ffi.Pointer<__CFPlugInInstance> instance, + ffi.Pointer interfaceName, + ffi.Pointer> ftbl, + ); +typedef CFPlugInUnloadFunctionFunction = + ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); +typedef DartCFPlugInUnloadFunctionFunction = + void Function(ffi.Pointer<__CFBundle> plugIn); +typedef CFProxyAutoConfigurationResultCallbackFunction = + ffi.Void Function( + ffi.Pointer client, + ffi.Pointer<__CFArray> proxyList, + ffi.Pointer<__CFError> error, + ); +typedef DartCFProxyAutoConfigurationResultCallbackFunction = + void Function( + ffi.Pointer client, + ffi.Pointer<__CFArray> proxyList, + ffi.Pointer<__CFError> error, ); - } - /// attachColorList: - void attachColorList(NSColorList colorList) { - final _$$ref = object$.ref; - final _$$ref$1 = colorList.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.attachColorList:', - iOS: (true, null), +final class CFRange extends ffi.Struct { + @ffi.Long() + external int location; + + @ffi.Long() + external int length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int location, + required int length, + }) => $allocator() + ..ref.location = location + ..ref.length = length; +} + +typedef CFReadStreamClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFReadStream> stream, + ffi.UnsignedLong type, + ffi.Pointer clientCallBackInfo, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_attachColorList_, - _$$ref$1.pointer, +typedef DartCFReadStreamClientCallBackFunction = + void Function( + ffi.Pointer<__CFReadStream> stream, + int type, + ffi.Pointer clientCallBackInfo, ); - } - /// buttonToolTip - objc.NSString get buttonToolTip { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.buttonToolTip', - iOS: (true, null), +sealed class CFRunLoopActivity { + static const kCFRunLoopEntry = 1; + static const kCFRunLoopBeforeTimers = 2; + static const kCFRunLoopBeforeSources = 4; + static const kCFRunLoopBeforeWaiting = 32; + static const kCFRunLoopAfterWaiting = 64; + static const kCFRunLoopExit = 128; + static const kCFRunLoopAllActivities = 268435455; +} + +typedef CFRunLoopObserverCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFRunLoopObserver> observer, + ffi.UnsignedLong activity, + ffi.Pointer info, + ); +typedef DartCFRunLoopObserverCallBackFunction = + void Function( + ffi.Pointer<__CFRunLoopObserver> observer, + int activity, + ffi.Pointer info, + ); +typedef CFRunLoopTimerCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFRunLoopTimer> timer, + ffi.Pointer info, + ); +typedef DartCFRunLoopTimerCallBackFunction = + void Function( + ffi.Pointer<__CFRunLoopTimer> timer, + ffi.Pointer info, + ); +typedef CFSetApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFSetApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFSetCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFSetEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFSetEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFSetHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFSetHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFSetReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFSetReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFSetRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFSocketCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFSocket> s, + ffi.UnsignedLong type, + ffi.Pointer<__CFData> address, + ffi.Pointer data, + ffi.Pointer info, + ); +typedef DartCFSocketCallBackFunction = + void Function( + ffi.Pointer<__CFSocket> s, + int type, + ffi.Pointer<__CFData> address, + ffi.Pointer data, + ffi.Pointer info, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_buttonToolTip); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - /// colorPanel - NSColorPanel get colorPanel { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('NSColorPicker.colorPanel', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_colorPanel); - return NSColorPanel.fromPointer($ret, retain: true, release: true); - } +sealed class CFSocketCallBackType { + static const kCFSocketNoCallBack = 0; + static const kCFSocketReadCallBack = 1; + static const kCFSocketAcceptCallBack = 2; + static const kCFSocketDataCallBack = 3; + static const kCFSocketConnectCallBack = 4; + static const kCFSocketWriteCallBack = 8; +} - /// detachColorList: - void detachColorList(NSColorList colorList) { - final _$$ref = object$.ref; - final _$$ref$1 = colorList.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.detachColorList:', - iOS: (true, null), +final class CFStreamError extends ffi.Struct { + @ffi.Long() + external int domain; + + @ffi.Int() + external int error; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int domain, + required int error, + }) => $allocator() + ..ref.domain = domain + ..ref.error = error; +} + +sealed class CFStreamEventType { + static const kCFStreamEventNone = 0; + static const kCFStreamEventOpenCompleted = 1; + static const kCFStreamEventHasBytesAvailable = 2; + static const kCFStreamEventCanAcceptBytes = 4; + static const kCFStreamEventErrorOccurred = 8; + static const kCFStreamEventEndEncountered = 16; +} + +typedef CFTreeApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_detachColorList_, - _$$ref$1.pointer, +typedef DartCFTreeApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFTreeCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFTreeReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFTreeReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFTreeRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFUserNotificationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFUserNotification> userNotification, + ffi.UnsignedLong responseFlags, + ); +typedef DartCFUserNotificationCallBackFunction = + void Function( + ffi.Pointer<__CFUserNotification> userNotification, + int responseFlags, + ); +typedef CFWriteStreamClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFWriteStream> stream, + ffi.UnsignedLong type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFWriteStreamClientCallBackFunction = + void Function( + ffi.Pointer<__CFWriteStream> stream, + int type, + ffi.Pointer clientCallBackInfo, ); - } - /// init - NSColorPicker init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), +final class CFXMLExternalID extends ffi.Struct { + external ffi.Pointer<__CFURL> systemID; + + external ffi.Pointer publicID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer<__CFURL> systemID, + required ffi.Pointer publicID, + }) => $allocator() + ..ref.systemID = systemID + ..ref.publicID = publicID; +} + +typedef CFXMLParserAddChildCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, +typedef DartCFXMLParserAddChildCallBackFunction = + void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, ); - return NSColorPicker.fromPointer($ret, retain: false, release: true); - } +typedef CFXMLParserCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFXMLParserCreateXMLStructureCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer<__CFXMLNode> nodeDesc, + ffi.Pointer info, + ); +typedef CFXMLParserEndXMLStructureCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ); +typedef DartCFXMLParserEndXMLStructureCallBackFunction = + void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ); +typedef CFXMLParserHandleErrorCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Long error, + ffi.Pointer info, + ); +typedef DartCFXMLParserHandleErrorCallBackFunction = + int Function( + ffi.Pointer<__CFXMLParser> parser, + int error, + ffi.Pointer info, + ); +typedef CFXMLParserReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFXMLParserReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFXMLParserResolveExternalEntityCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer extID, + ffi.Pointer info, + ); +typedef CFXMLParserRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); - /// initWithPickerMask:colorPanel: - NSColorPicker? initWithPickerMask( - int mask, { - required NSColorPanel colorPanel, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = colorPanel.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.initWithPickerMask:colorPanel:', - iOS: (true, null), +sealed class CFXMLParserStatusCode { + static const kCFXMLStatusParseNotBegun = -2; + static const kCFXMLStatusParseInProgress = -1; + static const kCFXMLStatusParseSuccessful = 0; + static const kCFXMLErrorUnexpectedEOF = 1; + static const kCFXMLErrorUnknownEncoding = 2; + static const kCFXMLErrorEncodingConversionFailure = 3; + static const kCFXMLErrorMalformedProcessingInstruction = 4; + static const kCFXMLErrorMalformedDTD = 5; + static const kCFXMLErrorMalformedName = 6; + static const kCFXMLErrorMalformedCDSect = 7; + static const kCFXMLErrorMalformedCloseTag = 8; + static const kCFXMLErrorMalformedStartTag = 9; + static const kCFXMLErrorMalformedDocument = 10; + static const kCFXMLErrorElementlessDocument = 11; + static const kCFXMLErrorMalformedComment = 12; + static const kCFXMLErrorMalformedCharacterReference = 13; + static const kCFXMLErrorMalformedParsedCharacterData = 14; + static const kCFXMLErrorNoData = 15; +} + +typedef CGBitmapContextReleaseDataCallbackFunction = + ffi.Void Function( + ffi.Pointer releaseInfo, + ffi.Pointer data, ); - final $ret = _objc_msgSend_vbc8p4( - _$$ref.retainAndReturnPointer(), - _sel_initWithPickerMask_colorPanel_, - mask, - _$$ref$1.pointer, +typedef DartCGBitmapContextReleaseDataCallbackFunction = + void Function( + ffi.Pointer releaseInfo, + ffi.Pointer data, ); - return $ret.address == 0 - ? null - : NSColorPicker.fromPointer($ret, retain: false, release: true); - } - /// insertNewButtonImage:in: - void insertNewButtonImage( - NSImage newButtonImage, { - required NSButtonCell in$, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = newButtonImage.ref; - final _$$ref$2 = in$.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.insertNewButtonImage:in:', - iOS: (true, null), +final class CGContext extends ffi.Opaque {} + +typedef CGDataConsumerPutBytesCallbackFunction = + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + ffi.Size count, ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_insertNewButtonImage_in_, - _$$ref$1.pointer, - _$$ref$2.pointer, +typedef DartCGDataConsumerPutBytesCallbackFunction = + int Function( + ffi.Pointer info, + ffi.Pointer buffer, + int count, ); - } +typedef CGDataConsumerReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGDataConsumerReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGDataProviderGetBytePointerCallbackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CGDataProviderGetBytesAtPositionCallbackFunction = + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + ffi.LongLong pos, + ffi.Size cnt, + ); +typedef DartCGDataProviderGetBytesAtPositionCallbackFunction = + int Function( + ffi.Pointer info, + ffi.Pointer buffer, + int pos, + int cnt, + ); +typedef CGDataProviderGetBytesCallbackFunction = + ffi.Size Function( + ffi.Pointer info, + ffi.Pointer buffer, + ffi.Size count, + ); +typedef DartCGDataProviderGetBytesCallbackFunction = + int Function( + ffi.Pointer info, + ffi.Pointer buffer, + int count, + ); +typedef CGDataProviderReleaseBytePointerCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer pointer, + ); +typedef DartCGDataProviderReleaseBytePointerCallbackFunction = + void Function(ffi.Pointer info, ffi.Pointer pointer); +typedef CGDataProviderReleaseDataCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer data, + ffi.Size size, + ); +typedef DartCGDataProviderReleaseDataCallbackFunction = + void Function( + ffi.Pointer info, + ffi.Pointer data, + int size, + ); +typedef CGDataProviderReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGDataProviderReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGDataProviderRewindCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGDataProviderRewindCallbackFunction = + void Function(ffi.Pointer info); +typedef CGDataProviderSkipForwardCallbackFunction = + ffi.LongLong Function(ffi.Pointer info, ffi.LongLong count); +typedef DartCGDataProviderSkipForwardCallbackFunction = + int Function(ffi.Pointer info, int count); - /// minContentSize - objc.CGSize get minContentSize { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.minContentSize', - iOS: (true, null), +sealed class CGDisplayChangeSummaryFlags { + static const kCGDisplayBeginConfigurationFlag = 1; + static const kCGDisplayMovedFlag = 2; + static const kCGDisplaySetMainFlag = 4; + static const kCGDisplaySetModeFlag = 8; + static const kCGDisplayAddFlag = 16; + static const kCGDisplayRemoveFlag = 32; + static const kCGDisplayEnabledFlag = 256; + static const kCGDisplayDisabledFlag = 512; + static const kCGDisplayMirrorFlag = 1024; + static const kCGDisplayUnMirrorFlag = 2048; + static const kCGDisplayDesktopShapeChangedFlag = 4096; +} + +typedef CGDisplayReconfigurationCallBackFunction = + ffi.Void Function( + ffi.Uint32 display, + ffi.Uint32 flags, + ffi.Pointer userInfo, ); - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_minContentSize) - : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_minContentSize); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, +typedef DartCGDisplayReconfigurationCallBackFunction = + void Function(int display, int flags, ffi.Pointer userInfo); +typedef CGErrorCallbackFunction = ffi.Void Function(); +typedef DartCGErrorCallbackFunction = void Function(); +typedef CGEventTapCallBackFunction = + ffi.Pointer<__CGEvent> Function( + ffi.Pointer<__CGEventTapProxy> proxy, + ffi.Uint32 type, + ffi.Pointer<__CGEvent> event, + ffi.Pointer userInfo, + ); +typedef DartCGEventTapCallBackFunction = + ffi.Pointer<__CGEvent> Function( + ffi.Pointer<__CGEventTapProxy> proxy, + CGEventType type, + ffi.Pointer<__CGEvent> event, + ffi.Pointer userInfo, ); - return ffi.Struct.create($finalizable); - } - /// provideNewButtonImage - NSImage get provideNewButtonImage { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.provideNewButtonImage', - iOS: (true, null), +enum CGEventType { + kCGEventNull(0), + kCGEventLeftMouseDown(1), + kCGEventLeftMouseUp(2), + kCGEventRightMouseDown(3), + kCGEventRightMouseUp(4), + kCGEventMouseMoved(5), + kCGEventLeftMouseDragged(6), + kCGEventRightMouseDragged(7), + kCGEventKeyDown(10), + kCGEventKeyUp(11), + kCGEventFlagsChanged(12), + kCGEventScrollWheel(22), + kCGEventTabletPointer(23), + kCGEventTabletProximity(24), + kCGEventOtherMouseDown(25), + kCGEventOtherMouseUp(26), + kCGEventOtherMouseDragged(27), + kCGEventTapDisabledByTimeout(-2), + kCGEventTapDisabledByUserInput(-1); + + final int value; + const CGEventType(this.value); + + static CGEventType fromValue(int value) => switch (value) { + 0 => kCGEventNull, + 1 => kCGEventLeftMouseDown, + 2 => kCGEventLeftMouseUp, + 3 => kCGEventRightMouseDown, + 4 => kCGEventRightMouseUp, + 5 => kCGEventMouseMoved, + 6 => kCGEventLeftMouseDragged, + 7 => kCGEventRightMouseDragged, + 10 => kCGEventKeyDown, + 11 => kCGEventKeyUp, + 12 => kCGEventFlagsChanged, + 22 => kCGEventScrollWheel, + 23 => kCGEventTabletPointer, + 24 => kCGEventTabletProximity, + 25 => kCGEventOtherMouseDown, + 26 => kCGEventOtherMouseUp, + 27 => kCGEventOtherMouseDragged, + -2 => kCGEventTapDisabledByTimeout, + -1 => kCGEventTapDisabledByUserInput, + _ => throw ArgumentError('Unknown value for CGEventType: $value'), + }; +} + +typedef CGFunctionEvaluateCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer in$, + ffi.Pointer out, ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_provideNewButtonImage, +typedef DartCGFunctionEvaluateCallbackFunction = + void Function( + ffi.Pointer info, + ffi.Pointer in$, + ffi.Pointer out, + ); +typedef CGFunctionReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGFunctionReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGPDFDictionaryApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer info, + ); +typedef DartCGPDFDictionaryApplierFunctionFunction = + void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer info, ); - return NSImage.fromPointer($ret, retain: true, release: true); - } - /// setMode: - void setMode(NSColorPanelMode mode) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('NSColorPicker.setMode:', iOS: (true, null)); - _objc_msgSend_190ea64(_$$ref.pointer, _sel_setMode_, mode.value); - } +final class CGPDFObject extends ffi.Opaque {} - /// viewSizeChanged: - void viewSizeChanged(objc.ObjCObject? sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender?.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.viewSizeChanged:', - iOS: (true, null), +typedef CGPDFOperatorCallbackFunction = + ffi.Void Function( + ffi.Pointer scanner, + ffi.Pointer info, ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_viewSizeChanged_, - _$$ref$1?.pointer ?? ffi.nullptr, +typedef DartCGPDFOperatorCallbackFunction = + void Function( + ffi.Pointer scanner, + ffi.Pointer info, ); - } -} -/// WARNING: NSColorPickingDefault is a stub. To generate bindings for this class, include -/// NSColorPickingDefault in your config's objc-protocols list. -/// -/// NSColorPickingDefault -extension type NSColorPickingDefault._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSColorPickingDefault] that points to the same underlying object as [other]. - NSColorPickingDefault.as(objc.ObjCObject other) : object$ = other; +final class CGPDFScanner extends ffi.Opaque {} - /// Constructs a [NSColorPickingDefault] that wraps the given raw object pointer. - NSColorPickingDefault.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} +typedef CGPSConverterBeginDocumentCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPSConverterBeginDocumentCallbackFunction = + void Function(ffi.Pointer info); +typedef CGPSConverterBeginPageCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Size pageNumber, + ffi.Pointer<__CFDictionary> pageInfo, + ); +typedef DartCGPSConverterBeginPageCallbackFunction = + void Function( + ffi.Pointer info, + int pageNumber, + ffi.Pointer<__CFDictionary> pageInfo, + ); +typedef CGPSConverterEndDocumentCallbackFunction = + ffi.Void Function(ffi.Pointer info, ffi.Bool success); +typedef DartCGPSConverterEndDocumentCallbackFunction = + void Function(ffi.Pointer info, bool success); +typedef CGPSConverterEndPageCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Size pageNumber, + ffi.Pointer<__CFDictionary> pageInfo, + ); +typedef DartCGPSConverterEndPageCallbackFunction = + void Function( + ffi.Pointer info, + int pageNumber, + ffi.Pointer<__CFDictionary> pageInfo, + ); +typedef CGPSConverterMessageCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer message, + ); +typedef DartCGPSConverterMessageCallbackFunction = + void Function( + ffi.Pointer info, + ffi.Pointer message, + ); +typedef CGPSConverterProgressCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPSConverterProgressCallbackFunction = + void Function(ffi.Pointer info); +typedef CGPSConverterReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPSConverterReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGPathApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer element, + ); +typedef DartCGPathApplierFunctionFunction = + void Function( + ffi.Pointer info, + ffi.Pointer element, + ); -/// WARNING: NSImage is a stub. To generate bindings for this class, include -/// NSImage in your config's objc-interfaces list. -/// -/// NSImage -extension type NSImage._(objc.ObjCObject object$) implements objc.ObjCObject { - /// Constructs a [NSImage] that points to the same underlying object as [other]. - NSImage.as(objc.ObjCObject other) : object$ = other {} +final class CGPathElement extends ffi.Struct { + @ffi.Int32() + external int typeAsInt; - /// Constructs a [NSImage] that wraps the given raw object pointer. - NSImage.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} + CGPathElementType get type => CGPathElementType.fromValue(typeAsInt); + set type(CGPathElementType value) => typeAsInt = value.value; -/// WARNING: NSMenuItemValidation is a stub. To generate bindings for this class, include -/// NSMenuItemValidation in your config's objc-protocols list. -/// -/// NSMenuItemValidation -extension type NSMenuItemValidation._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSMenuItemValidation] that points to the same underlying object as [other]. - NSMenuItemValidation.as(objc.ObjCObject other) : object$ = other; + external ffi.Pointer points; - /// Constructs a [NSMenuItemValidation] that wraps the given raw object pointer. - NSMenuItemValidation.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CGPathElementType type, + required ffi.Pointer points, + }) => $allocator() + ..ref.type = type + ..ref.points = points; } -/// WARNING: NSPanel is a stub. To generate bindings for this class, include -/// NSPanel in your config's objc-interfaces list. -/// +enum CGPathElementType { + kCGPathElementMoveToPoint(0), + kCGPathElementAddLineToPoint(1), + kCGPathElementAddQuadCurveToPoint(2), + kCGPathElementAddCurveToPoint(3), + kCGPathElementCloseSubpath(4); + + final int value; + const CGPathElementType(this.value); + + static CGPathElementType fromValue(int value) => switch (value) { + 0 => kCGPathElementMoveToPoint, + 1 => kCGPathElementAddLineToPoint, + 2 => kCGPathElementAddQuadCurveToPoint, + 3 => kCGPathElementAddCurveToPoint, + 4 => kCGPathElementCloseSubpath, + _ => throw ArgumentError('Unknown value for CGPathElementType: $value'), + }; +} + +typedef CGPatternDrawPatternCallbackFunction = + ffi.Void Function( + ffi.Pointer info, + ffi.Pointer context, + ); +typedef DartCGPatternDrawPatternCallbackFunction = + void Function(ffi.Pointer info, ffi.Pointer context); +typedef CGPatternReleaseInfoCallbackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCGPatternReleaseInfoCallbackFunction = + void Function(ffi.Pointer info); +typedef CGScreenRefreshCallbackFunction = + ffi.Void Function( + ffi.Uint32 count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); +typedef DartCGScreenRefreshCallbackFunction = + void Function( + int count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); +typedef CGScreenUpdateMoveCallbackFunction = + ffi.Void Function( + CGScreenUpdateMoveDelta delta, + ffi.Size count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); +typedef DartCGScreenUpdateMoveCallbackFunction = + void Function( + CGScreenUpdateMoveDelta delta, + int count, + ffi.Pointer rects, + ffi.Pointer userInfo, + ); + +final class CGScreenUpdateMoveDelta extends ffi.Struct { + @ffi.Int32() + external int dX; + + @ffi.Int32() + external int dY; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int dX, + required int dY, + }) => $allocator() + ..ref.dX = dX + ..ref.dY = dY; +} + +@ffi.Packed(2) +final class CM2Header extends ffi.Struct { + @ffi.UnsignedInt() + external int size; + + @ffi.UnsignedInt() + external int CMMType; + + @ffi.UnsignedInt() + external int profileVersion; + + @ffi.UnsignedInt() + external int profileClass; + + @ffi.UnsignedInt() + external int dataColorSpace; + + @ffi.UnsignedInt() + external int profileConnectionSpace; + + external CMDateTime dateTime; + + @ffi.UnsignedInt() + external int CS2profileSignature; + + @ffi.UnsignedInt() + external int platform; + + @ffi.UnsignedInt() + external int flags; + + @ffi.UnsignedInt() + external int deviceManufacturer; + + @ffi.UnsignedInt() + external int deviceModel; + + @ffi.Array.multi([2]) + external ffi.Array deviceAttributes; + + @ffi.UnsignedInt() + external int renderingIntent; + + external CMFixedXYZColor white; + + @ffi.UnsignedInt() + external int creator; + + @ffi.Array.multi([44]) + external ffi.Array reserved; +} + +typedef CMBitmapCallBackProcPtrFunction = + ffi.UnsignedChar Function(ffi.Int progress, ffi.Pointer refCon); +typedef DartCMBitmapCallBackProcPtrFunction = + int Function(int progress, ffi.Pointer refCon); + +final class CMBufferLocation extends ffi.Struct { + external ffi.Pointer buffer; + + @ffi.UnsignedInt() + external int size; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer buffer, + required int size, + }) => $allocator() + ..ref.buffer = buffer + ..ref.size = size; +} + +typedef CMConcatCallBackProcPtrFunction = + ffi.UnsignedChar Function(ffi.Int progress, ffi.Pointer refCon); +typedef DartCMConcatCallBackProcPtrFunction = + int Function(int progress, ffi.Pointer refCon); + +final class CMDateTime extends ffi.Struct { + @ffi.UnsignedShort() + external int year; + + @ffi.UnsignedShort() + external int month; + + @ffi.UnsignedShort() + external int dayOfTheMonth; + + @ffi.UnsignedShort() + external int hours; + + @ffi.UnsignedShort() + external int minutes; + + @ffi.UnsignedShort() + external int seconds; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int year, + required int month, + required int dayOfTheMonth, + required int hours, + required int minutes, + required int seconds, + }) => $allocator() + ..ref.year = year + ..ref.month = month + ..ref.dayOfTheMonth = dayOfTheMonth + ..ref.hours = hours + ..ref.minutes = minutes + ..ref.seconds = seconds; +} + +final class CMDeviceInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int dataVersion; + + @ffi.UnsignedInt() + external int deviceClass; + + @ffi.UnsignedInt() + external int deviceID; + + external CMDeviceScope deviceScope; + + @ffi.UnsignedInt() + external int deviceState; + + @ffi.UnsignedInt() + external int defaultProfileID; + + external ffi.Pointer> deviceName; + + @ffi.UnsignedInt() + external int profileCount; + + @ffi.UnsignedInt() + external int reserved; +} + +final class CMDeviceScope extends ffi.Struct { + external ffi.Pointer deviceUser; + + external ffi.Pointer deviceHost; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer deviceUser, + required ffi.Pointer deviceHost, + }) => $allocator() + ..ref.deviceUser = deviceUser + ..ref.deviceHost = deviceHost; +} + +@ffi.Packed(2) +final class CMFixedXYZColor extends ffi.Struct { + @ffi.Int() + external int X; + + @ffi.Int() + external int Y; + + @ffi.Int() + external int Z; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int X, + required int Y, + required int Z, + }) => $allocator() + ..ref.X = X + ..ref.Y = Y + ..ref.Z = Z; +} + +typedef CMFlattenProcPtrFunction = + ffi.Short Function( + ffi.Int command, + ffi.Pointer size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef DartCMFlattenProcPtrFunction = + int Function( + int command, + ffi.Pointer size, + ffi.Pointer data, + ffi.Pointer refCon, + ); + +final class CMHandleLocation extends ffi.Struct { + external ffi.Pointer> h; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer> h, + }) => $allocator()..ref.h = h; +} + +typedef CMIterateDeviceInfoProcPtrFunction = + ffi.Short Function( + ffi.Pointer deviceInfo, + ffi.Pointer refCon, + ); +typedef DartCMIterateDeviceInfoProcPtrFunction = + int Function( + ffi.Pointer deviceInfo, + ffi.Pointer refCon, + ); +typedef CMIterateDeviceProfileProcPtrFunction = + ffi.Short Function( + ffi.Pointer deviceInfo, + ffi.Pointer profileInfo, + ffi.Pointer refCon, + ); +typedef DartCMIterateDeviceProfileProcPtrFunction = + int Function( + ffi.Pointer deviceInfo, + ffi.Pointer profileInfo, + ffi.Pointer refCon, + ); +typedef CMLabToLabProcPtrFunction = + ffi.Void Function( + ffi.Pointer L, + ffi.Pointer a, + ffi.Pointer b, + ffi.Pointer refcon, + ); +typedef DartCMLabToLabProcPtrFunction = + void Function( + ffi.Pointer L, + ffi.Pointer a, + ffi.Pointer b, + ffi.Pointer refcon, + ); +typedef CMMApplyTransformProcFunction = + ffi.Bool Function( + ffi.Pointer transform, + ffi.Size width, + ffi.Size height, + ffi.Size dstPlanes, + ffi.Pointer> dst, + ffi.UnsignedInt dstDepth, + ffi.Uint32 dstFormat, + ffi.Size dstBytesPerRow, + ffi.Size srcPlanes, + ffi.Pointer> src, + ffi.UnsignedInt srcDepth, + ffi.Uint32 srcFormat, + ffi.Size srcBytesPerRow, + ffi.Pointer<__CFDictionary> options, + ); +typedef DartCMMApplyTransformProcFunction = + bool Function( + ffi.Pointer transform, + int width, + int height, + int dstPlanes, + ffi.Pointer> dst, + ColorSyncDataDepth dstDepth, + int dstFormat, + int dstBytesPerRow, + int srcPlanes, + ffi.Pointer> src, + ColorSyncDataDepth srcDepth, + int srcFormat, + int srcBytesPerRow, + ffi.Pointer<__CFDictionary> options, + ); +typedef CMMCreateTransformPropertyProcFunction = + ffi.Pointer Function( + ffi.Pointer transform, + ffi.Pointer key, + ffi.Pointer<__CFDictionary> options, + ); + +final class CMMInfo extends ffi.Struct { + @ffi.Size() + external int dataSize; + + @ffi.UnsignedInt() + external int CMMType; + + @ffi.UnsignedInt() + external int CMMMfr; + + @ffi.UnsignedInt() + external int CMMVersion; + + @ffi.Array.multi([32]) + external ffi.Array ASCIIName; + + @ffi.Array.multi([256]) + external ffi.Array ASCIIDesc; + + @ffi.UnsignedLong() + external int UniCodeNameCount; + + @ffi.Array.multi([32]) + external ffi.Array UniCodeName; + + @ffi.UnsignedLong() + external int UniCodeDescCount; + + @ffi.Array.multi([256]) + external ffi.Array UniCodeDesc; +} + +typedef CMMInitializeLinkProfileProcFunction = + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer<__CFArray>, + ffi.Pointer<__CFDictionary>, + ); +typedef DartCMMInitializeLinkProfileProcFunction = + bool Function( + ffi.Pointer, + ffi.Pointer<__CFArray>, + ffi.Pointer<__CFDictionary>, + ); +typedef CMMInitializeTransformProcFunction = + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer<__CFArray>, + ffi.Pointer<__CFDictionary>, + ); +typedef DartCMMInitializeTransformProcFunction = + bool Function( + ffi.Pointer, + ffi.Pointer<__CFArray>, + ffi.Pointer<__CFDictionary>, + ); +typedef CMMIterateProcPtrFunction = + ffi.Short Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); +typedef DartCMMIterateProcPtrFunction = + int Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); + +@ffi.Packed(2) +final class CMMakeAndModel extends ffi.Struct { + @ffi.UnsignedInt() + external int manufacturer; + + @ffi.UnsignedInt() + external int model; + + @ffi.UnsignedInt() + external int serialNumber; + + @ffi.UnsignedInt() + external int manufactureDate; + + @ffi.UnsignedInt() + external int reserved1; + + @ffi.UnsignedInt() + external int reserved2; + + @ffi.UnsignedInt() + external int reserved3; + + @ffi.UnsignedInt() + external int reserved4; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int manufacturer, + required int model, + required int serialNumber, + required int manufactureDate, + required int reserved1, + required int reserved2, + required int reserved3, + required int reserved4, + }) => $allocator() + ..ref.manufacturer = manufacturer + ..ref.model = model + ..ref.serialNumber = serialNumber + ..ref.manufactureDate = manufactureDate + ..ref.reserved1 = reserved1 + ..ref.reserved2 = reserved2 + ..ref.reserved3 = reserved3 + ..ref.reserved4 = reserved4; +} + +final class CMPathLocation extends ffi.Struct { + @ffi.Array.multi([1024]) + external ffi.Array path; +} + +final class CMProfLoc extends ffi.Union { + external CMHandleLocation handleLoc; + + external CMPathLocation pathLoc; + + external CMBufferLocation bufferLoc; +} + +final class CMProfileIterateData extends ffi.Struct { + @ffi.UnsignedInt() + external int dataVersion; + + external CM2Header header; + + @ffi.Short() + external int code; + + @ffi.Array.multi([256]) + external ffi.Array name; + + external CMProfileLocation location; + + @ffi.UnsignedLong() + external int uniCodeNameCount; + + external ffi.Pointer uniCodeName; + + external ffi.Pointer asciiName; + + external ffi.Pointer makeAndModel; + + external ffi.Pointer> digest; +} + +typedef CMProfileIterateProcPtrFunction = + ffi.Short Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); +typedef DartCMProfileIterateProcPtrFunction = + int Function( + ffi.Pointer iterateData, + ffi.Pointer refCon, + ); + +final class CMProfileLocation extends ffi.Struct { + @ffi.Short() + external int locType; + + external CMProfLoc u; +} + +typedef CSIdentityQueryReceiveEventCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CSIdentityQuery> query, + ffi.Long event, + ffi.Pointer<__CFArray> identities, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef DartCSIdentityQueryReceiveEventCallbackFunction = + void Function( + ffi.Pointer<__CSIdentityQuery> query, + int event, + ffi.Pointer<__CFArray> identities, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef CSIdentityStatusUpdatedCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CSIdentity> identity, + ffi.Long status, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef DartCSIdentityStatusUpdatedCallbackFunction = + void Function( + ffi.Pointer<__CSIdentity> identity, + int status, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef CSSM_ACL_SUBJECT_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer SubjectRequest, + ffi.Pointer SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = + int Function( + ffi.Pointer SubjectRequest, + ffi.Pointer SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef CSSM_API_ModuleEventHandlerFunction = + ffi.Int32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + ffi.Uint32 SubserviceId, + ffi.Uint32 ServiceType, + ffi.Uint32 EventType, + ); +typedef DartCSSM_API_ModuleEventHandlerFunction = + int Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + int SubserviceId, + int ServiceType, + int EventType, + ); +typedef CSSM_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer OutData, + ffi.Pointer CallerCtx, + ); +typedef DartCSSM_CALLBACKFunction = + int Function( + ffi.Pointer OutData, + ffi.Pointer CallerCtx, + ); +typedef CSSM_CALLOCFunction = + ffi.Pointer Function( + ffi.Uint32 num, + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_CALLOCFunction = + ffi.Pointer Function( + int num, + int size, + ffi.Pointer allocref, + ); +typedef CSSM_CHALLENGE_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer Challenge, + ffi.Pointer Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_CHALLENGE_CALLBACKFunction = + int Function( + ffi.Pointer Challenge, + ffi.Pointer Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ); +typedef CSSM_FREEFunction = + ffi.Void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef DartCSSM_FREEFunction = + void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef CSSM_MALLOCFunction = + ffi.Pointer Function( + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_MALLOCFunction = + ffi.Pointer Function(int size, ffi.Pointer allocref); +typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); +typedef DartCSSM_PROC_ADDRFunction = void Function(); +typedef CSSM_REALLOCFunction = + ffi.Pointer Function( + ffi.Pointer memblock, + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_REALLOCFunction = + ffi.Pointer Function( + ffi.Pointer memblock, + int size, + ffi.Pointer allocref, + ); +typedef CSSM_SPI_ModuleEventHandlerFunction = + ffi.Int32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + ffi.Uint32 SubserviceId, + ffi.Uint32 ServiceType, + ffi.Uint32 EventType, + ); +typedef DartCSSM_SPI_ModuleEventHandlerFunction = + int Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + int SubserviceId, + int ServiceType, + int EventType, + ); +typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = + ffi.Int32 Function( + ffi.IntPtr ModuleHandle, + ffi.Pointer CallerCtx, + ffi.Pointer VerifiedCert, + ); +typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = + int Function( + int ModuleHandle, + ffi.Pointer CallerCtx, + ffi.Pointer VerifiedCert, + ); +typedef CSSM_UPCALLS_CALLOCFunction = + ffi.Pointer Function( + ffi.IntPtr AddInHandle, + ffi.Size num, + ffi.Size size, + ); +typedef DartCSSM_UPCALLS_CALLOCFunction = + ffi.Pointer Function(int AddInHandle, int num, int size); +typedef CSSM_UPCALLS_FREEFunction = + ffi.Void Function(ffi.IntPtr AddInHandle, ffi.Pointer memblock); +typedef DartCSSM_UPCALLS_FREEFunction = + void Function(int AddInHandle, ffi.Pointer memblock); +typedef CSSM_UPCALLS_MALLOCFunction = + ffi.Pointer Function(ffi.IntPtr AddInHandle, ffi.Size size); +typedef DartCSSM_UPCALLS_MALLOCFunction = + ffi.Pointer Function(int AddInHandle, int size); +typedef CSSM_UPCALLS_REALLOCFunction = + ffi.Pointer Function( + ffi.IntPtr AddInHandle, + ffi.Pointer memblock, + ffi.Size size, + ); +typedef DartCSSM_UPCALLS_REALLOCFunction = + ffi.Pointer Function( + int AddInHandle, + ffi.Pointer memblock, + int size, + ); +typedef CTFontCollectionSortDescriptorsCallbackFunction = + ffi.Long Function( + ffi.Pointer<__CTFontDescriptor> first, + ffi.Pointer<__CTFontDescriptor> second, + ffi.Pointer refCon, + ); +typedef DartCTFontCollectionSortDescriptorsCallbackFunction = + CFComparisonResult Function( + ffi.Pointer<__CTFontDescriptor> first, + ffi.Pointer<__CTFontDescriptor> second, + ffi.Pointer refCon, + ); +typedef CTRunDelegateDeallocateCallbackFunction = + ffi.Void Function(ffi.Pointer refCon); +typedef DartCTRunDelegateDeallocateCallbackFunction = + void Function(ffi.Pointer refCon); +typedef CTRunDelegateGetAscentCallbackFunction = + ffi.Double Function(ffi.Pointer refCon); +typedef DartCTRunDelegateGetAscentCallbackFunction = + double Function(ffi.Pointer refCon); +typedef CTRunDelegateGetDescentCallbackFunction = + ffi.Double Function(ffi.Pointer refCon); +typedef DartCTRunDelegateGetDescentCallbackFunction = + double Function(ffi.Pointer refCon); +typedef CTRunDelegateGetWidthCallbackFunction = + ffi.Double Function(ffi.Pointer refCon); +typedef DartCTRunDelegateGetWidthCallbackFunction = + double Function(ffi.Pointer refCon); +typedef CollectionExceptionProcPtrFunction = + ffi.Short Function(ffi.Pointer c, ffi.Short status); +typedef DartCollectionExceptionProcPtrFunction = + int Function(ffi.Pointer c, int status); +typedef CollectionFlattenProcPtrFunction = + ffi.Short Function( + ffi.Int size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef DartCollectionFlattenProcPtrFunction = + int Function( + int size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef ColorComplementProcPtrFunction = + ffi.UnsignedChar Function(ffi.Pointer rgb); +typedef DartColorComplementProcPtrFunction = + int Function(ffi.Pointer rgb); +typedef ColorSearchProcPtrFunction = + ffi.UnsignedChar Function( + ffi.Pointer rgb, + ffi.Pointer position, + ); +typedef DartColorSearchProcPtrFunction = + int Function(ffi.Pointer rgb, ffi.Pointer position); + +final class ColorSyncCMM extends ffi.Opaque {} + +typedef ColorSyncCMMIterateCallbackFunction = + ffi.Bool Function( + ffi.Pointer cmm, + ffi.Pointer userInfo, + ); +typedef DartColorSyncCMMIterateCallbackFunction = + bool Function( + ffi.Pointer cmm, + ffi.Pointer userInfo, + ); + +enum ColorSyncDataDepth { + kColorSync1BitGamut(1), + kColorSync8BitInteger(2), + kColorSync16BitInteger(3), + kColorSync16BitFloat(4), + kColorSync32BitInteger(5), + kColorSync32BitNamedColorIndex(6), + kColorSync32BitFloat(7), + kColorSync10BitInteger(8); + + final int value; + const ColorSyncDataDepth(this.value); + + static ColorSyncDataDepth fromValue(int value) => switch (value) { + 1 => kColorSync1BitGamut, + 2 => kColorSync8BitInteger, + 3 => kColorSync16BitInteger, + 4 => kColorSync16BitFloat, + 5 => kColorSync32BitInteger, + 6 => kColorSync32BitNamedColorIndex, + 7 => kColorSync32BitFloat, + 8 => kColorSync10BitInteger, + _ => throw ArgumentError('Unknown value for ColorSyncDataDepth: $value'), + }; +} + +typedef ColorSyncDeviceProfileIterateCallbackFunction = + ffi.Bool Function( + ffi.Pointer<__CFDictionary> colorSyncDeviceProfileInfo, + ffi.Pointer userInfo, + ); +typedef DartColorSyncDeviceProfileIterateCallbackFunction = + bool Function( + ffi.Pointer<__CFDictionary> colorSyncDeviceProfileInfo, + ffi.Pointer userInfo, + ); + +final class ColorSyncProfile extends ffi.Opaque {} + +typedef ColorSyncProfileIterateCallbackFunction = + ffi.Bool Function( + ffi.Pointer<__CFDictionary> profileInfo, + ffi.Pointer userInfo, + ); +typedef DartColorSyncProfileIterateCallbackFunction = + bool Function( + ffi.Pointer<__CFDictionary> profileInfo, + ffi.Pointer userInfo, + ); + +final class ColorSyncTransform extends ffi.Opaque {} + +@ffi.Packed(2) +final class ComponentMPWorkFunctionHeaderRecord extends ffi.Struct { + @ffi.UnsignedInt() + external int headerSize; + + @ffi.UnsignedInt() + external int recordSize; + + @ffi.UnsignedInt() + external int workFlags; + + @ffi.UnsignedShort() + external int processorCount; + + @ffi.UnsignedChar() + external int unused; + + @ffi.UnsignedChar() + external int isRunning; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int headerSize, + required int recordSize, + required int workFlags, + required int processorCount, + required int unused, + required int isRunning, + }) => $allocator() + ..ref.headerSize = headerSize + ..ref.recordSize = recordSize + ..ref.workFlags = workFlags + ..ref.processorCount = processorCount + ..ref.unused = unused + ..ref.isRunning = isRunning; +} + +typedef ComponentMPWorkFunctionProcPtrFunction = + ffi.Int Function( + ffi.Pointer globalRefCon, + ffi.Pointer header, + ); +typedef DartComponentMPWorkFunctionProcPtrFunction = + int Function( + ffi.Pointer globalRefCon, + ffi.Pointer header, + ); + +@ffi.Packed(2) +final class ComponentParameters extends ffi.Struct { + @ffi.UnsignedChar() + external int flags; + + @ffi.UnsignedChar() + external int paramSize; + + @ffi.Short() + external int what; + + @ffi.UnsignedInt() + external int padding; + + @ffi.Array.multi([1]) + external ffi.Array params; +} + +@ffi.Packed(2) +final class ComponentRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef ComponentRoutineProcPtrFunction = + ffi.Int Function( + ffi.Pointer cp, + ffi.Pointer> componentStorage, + ); +typedef DartComponentRoutineProcPtrFunction = + int Function( + ffi.Pointer cp, + ffi.Pointer> componentStorage, + ); +typedef CoreEndianFlipProcFunction = + ffi.Int Function( + ffi.UnsignedInt dataDomain, + ffi.UnsignedInt dataType, + ffi.Short id, + ffi.Pointer dataPtr, + ffi.UnsignedLong dataSize, + ffi.UnsignedChar currentlyNative, + ffi.Pointer refcon, + ); +typedef DartCoreEndianFlipProcFunction = + int Function( + int dataDomain, + int dataType, + int id, + ffi.Pointer dataPtr, + int dataSize, + int currentlyNative, + ffi.Pointer refcon, + ); +typedef DebugAssertOutputHandlerProcPtrFunction = + ffi.Void Function( + ffi.UnsignedInt componentSignature, + ffi.UnsignedInt options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + ffi.Long lineNumber, + ffi.Pointer value, + ffi.Pointer outputMsg, + ); +typedef DartDebugAssertOutputHandlerProcPtrFunction = + void Function( + int componentSignature, + int options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + int lineNumber, + ffi.Pointer value, + ffi.Pointer outputMsg, + ); +typedef DebugComponentCallbackProcPtrFunction = + ffi.Void Function( + ffi.Int optionSelectorNum, + ffi.UnsignedInt command, + ffi.Pointer optionSetting, + ); +typedef DartDebugComponentCallbackProcPtrFunction = + void Function( + int optionSelectorNum, + int command, + ffi.Pointer optionSetting, + ); +typedef DebuggerDisposeThreadProcPtrFunction = + ffi.Void Function(ffi.UnsignedLong threadDeleted); +typedef DartDebuggerDisposeThreadProcPtrFunction = + void Function(int threadDeleted); +typedef DebuggerNewThreadProcPtrFunction = + ffi.Void Function(ffi.UnsignedLong threadCreated); +typedef DartDebuggerNewThreadProcPtrFunction = void Function(int threadCreated); +typedef DebuggerThreadSchedulerProcPtrFunction = + ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); +typedef DartDebuggerThreadSchedulerProcPtrFunction = + int Function(ffi.Pointer schedulerInfo); +typedef DeferredTaskProcPtrFunction = ffi.Void Function(ffi.Long dtParam); +typedef DartDeferredTaskProcPtrFunction = void Function(int dtParam); +typedef DragGrayRgnProcPtrFunction = ffi.Void Function(); +typedef DartDragGrayRgnProcPtrFunction = void Function(); +typedef ExceptionHandlerProcPtrFunction = + ffi.Int Function(ffi.Pointer theException); +typedef DartExceptionHandlerProcPtrFunction = + int Function(ffi.Pointer theException); + +final class ExceptionInfo extends ffi.Union { + external ffi.Pointer memoryInfo; +} + +final class ExceptionInformation extends ffi.Struct { + @ffi.UnsignedLong() + external int theKind; + + external ffi.Pointer machineState; + + external ffi.Pointer registerImage; + + external ffi.Pointer FPUImage; + + external ExceptionInfo info; + + external ffi.Pointer vectorImage; +} + +typedef FNSubscriptionProcPtrFunction = + ffi.Void Function( + ffi.UnsignedInt message, + ffi.UnsignedInt flags, + ffi.Pointer refcon, + ffi.Pointer subscription, + ); +typedef DartFNSubscriptionProcPtrFunction = + void Function( + int message, + int flags, + ffi.Pointer refcon, + ffi.Pointer subscription, + ); + +final class FPUInformation extends ffi.Struct { + external ffi.Pointer __unusedFPUInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedFPUInformationField, + }) => + $allocator() + ..ref.__unusedFPUInformationField = $unusedFPUInformationField; +} + +typedef FSAliasFilterProcPtrFunction = + ffi.UnsignedChar Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + ffi.Pointer myDataPtr, + ); +typedef DartFSAliasFilterProcPtrFunction = + int Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + ffi.Pointer myDataPtr, + ); +typedef FSEventStreamCallbackFunction = + ffi.Void Function( + ffi.Pointer<__FSEventStream> streamRef, + ffi.Pointer clientCallBackInfo, + ffi.Size numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ); +typedef DartFSEventStreamCallbackFunction = + void Function( + ffi.Pointer<__FSEventStream> streamRef, + ffi.Pointer clientCallBackInfo, + int numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ); +typedef FSFileOperationStatusProcPtrFunction = + ffi.Void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + ffi.UnsignedInt stage, + ffi.Int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef DartFSFileOperationStatusProcPtrFunction = + void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + int stage, + int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef FSPathFileOperationStatusProcPtrFunction = + ffi.Void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + ffi.UnsignedInt stage, + ffi.Int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef DartFSPathFileOperationStatusProcPtrFunction = + void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + int stage, + int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); + +final class FSRef extends ffi.Struct { + @ffi.Array.multi([80]) + external ffi.Array hidden; +} + +typedef FSVolumeEjectProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short volumeRefNum, + ffi.Int dissenter, + ); +typedef DartFSVolumeEjectProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + ); +typedef FSVolumeMountProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short mountedVolumeRefNum, + ); +typedef DartFSVolumeMountProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int mountedVolumeRefNum, + ); +typedef FSVolumeUnmountProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short volumeRefNum, + ffi.Int dissenter, + ); +typedef DartFSVolumeUnmountProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + ); + +@ffi.Packed(2) +final class FixedPoint extends ffi.Struct { + @ffi.Int() + external int x; + + @ffi.Int() + external int y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int x, + required int y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +@ffi.Packed(2) +final class Float32Point extends ffi.Struct { + @ffi.Float() + external double x; + + @ffi.Float() + external double y; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double x, + required double y, + }) => $allocator() + ..ref.x = x + ..ref.y = y; +} + +typedef FolderManagerNotificationProcPtrFunction = + ffi.Int Function( + ffi.UnsignedInt message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ); +typedef DartFolderManagerNotificationProcPtrFunction = + int Function( + int message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ); + +final class FontInfo extends ffi.Struct { + @ffi.Short() + external int ascent; + + @ffi.Short() + external int descent; + + @ffi.Short() + external int widMax; + + @ffi.Short() + external int leading; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ascent, + required int descent, + required int widMax, + required int leading, + }) => $allocator() + ..ref.ascent = ascent + ..ref.descent = descent + ..ref.widMax = widMax + ..ref.leading = leading; +} + +typedef GetMissingComponentResourceProcPtrFunction = + ffi.Short Function( + ffi.Pointer c, + ffi.UnsignedInt resType, + ffi.Short resID, + ffi.Pointer refCon, + ffi.Pointer>> resource, + ); +typedef DartGetMissingComponentResourceProcPtrFunction = + int Function( + ffi.Pointer c, + int resType, + int resID, + ffi.Pointer refCon, + ffi.Pointer>> resource, + ); +typedef HIShapeEnumerateProcPtrFunction = + ffi.Int Function( + ffi.Int inMessage, + ffi.Pointer<__HIShape> inShape, + ffi.Pointer inRect, + ffi.Pointer inRefcon, + ); +typedef DartHIShapeEnumerateProcPtrFunction = + int Function( + int inMessage, + ffi.Pointer<__HIShape> inShape, + ffi.Pointer inRect, + ffi.Pointer inRefcon, + ); +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef IOAsyncCallback0Function = + ffi.Void Function(ffi.Pointer refcon, ffi.Int result); +typedef DartIOAsyncCallback0Function = + void Function(ffi.Pointer refcon, int result); +typedef IOAsyncCallback1Function = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer arg0, + ); +typedef DartIOAsyncCallback1Function = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer arg0, + ); +typedef IOAsyncCallback2Function = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ); +typedef DartIOAsyncCallback2Function = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ); +typedef IOAsyncCallbackFunction = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer> args, + ffi.Uint32 numArgs, + ); +typedef DartIOAsyncCallbackFunction = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer> args, + int numArgs, + ); +typedef IOCompletionProcPtrFunction = + ffi.Void Function(ffi.Pointer paramBlock); +typedef DartIOCompletionProcPtrFunction = + void Function(ffi.Pointer paramBlock); +typedef IOServiceInterestCallbackFunction = + ffi.Void Function( + ffi.Pointer refcon, + ffi.UnsignedInt service, + ffi.Uint32 messageType, + ffi.Pointer messageArgument, + ); +typedef DartIOServiceInterestCallbackFunction = + void Function( + ffi.Pointer refcon, + int service, + int messageType, + ffi.Pointer messageArgument, + ); +typedef IOServiceMatchingCallbackFunction = + ffi.Void Function(ffi.Pointer refcon, ffi.UnsignedInt iterator); +typedef DartIOServiceMatchingCallbackFunction = + void Function(ffi.Pointer refcon, int iterator); +typedef IconActionProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt theType, + ffi.Pointer>> theIcon, + ffi.Pointer yourDataPtr, + ); +typedef DartIconActionProcPtrFunction = + int Function( + int theType, + ffi.Pointer>> theIcon, + ffi.Pointer yourDataPtr, + ); +typedef IconGetterProcPtrFunction = + ffi.Pointer> Function( + ffi.UnsignedInt theType, + ffi.Pointer yourDataPtr, + ); +typedef DartIconGetterProcPtrFunction = + ffi.Pointer> Function( + int theType, + ffi.Pointer yourDataPtr, + ); +typedef IndexToUCStringProcPtrFunction = + ffi.UnsignedChar Function( + ffi.UnsignedInt index, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer> outString, + ffi.Pointer tsOptions, + ); +typedef DartIndexToUCStringProcPtrFunction = + int Function( + int index, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer> outString, + ffi.Pointer tsOptions, + ); + +@ffi.Packed(2) +final class KCCallbackInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external ffi.Pointer<__SecKeychainItem> item; + + @ffi.Array.multi([2]) + external ffi.Array processID; + + @ffi.Array.multi([4]) + external ffi.Array event; + + external ffi.Pointer<__SecKeychain> keychain; +} + +typedef KCCallbackProcPtrFunction = + ffi.Int Function( + ffi.UnsignedShort keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ); +typedef DartKCCallbackProcPtrFunction = + int Function( + int keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ); +typedef LSSharedFileListChangedProcPtrFunction = + ffi.Void Function( + ffi.Pointer inList, + ffi.Pointer context, + ); +typedef DartLSSharedFileListChangedProcPtrFunction = + void Function( + ffi.Pointer inList, + ffi.Pointer context, + ); +typedef MDQueryCreateResultFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__MDQuery> query, + ffi.Pointer<__MDItem> item, + ffi.Pointer context, + ); +typedef MDQueryCreateValueFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__MDQuery> query, + ffi.Pointer attrName, + ffi.Pointer attrValue, + ffi.Pointer context, + ); +typedef MDQuerySortComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer> attrs1, + ffi.Pointer> attrs2, + ffi.Pointer context, + ); +typedef DartMDQuerySortComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer> attrs1, + ffi.Pointer> attrs2, + ffi.Pointer context, + ); +typedef MPIsFullyInitializedProcFunction = ffi.UnsignedChar Function(); +typedef DartMPIsFullyInitializedProcFunction = int Function(); +typedef MPRemoteProcedureFunction = + ffi.Pointer Function(ffi.Pointer parameter); + +final class MacPolygon extends ffi.Struct { + @ffi.Short() + external int polySize; + + external Rect polyBBox; + + @ffi.Array.multi([1]) + external ffi.Array polyPoints; +} + +final class MachineInformation extends ffi.Struct { + external ffi.Pointer __unusedMachineInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedMachineInformationField, + }) => + $allocator() + ..ref.__unusedMachineInformationField = $unusedMachineInformationField; +} + +final class MemoryExceptionInformation extends ffi.Struct { + external ffi.Pointer theArea; + + external ffi.Pointer theAddress; + + @ffi.Int() + external int theError; + + @ffi.UnsignedLong() + external int theReference; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer theArea, + required ffi.Pointer theAddress, + required int theError, + required int theReference, + }) => $allocator() + ..ref.theArea = theArea + ..ref.theAddress = theAddress + ..ref.theError = theError + ..ref.theReference = theReference; +} + +final class NCMDeviceProfileInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int dataVersion; + + @ffi.UnsignedInt() + external int profileID; + + external CMProfileLocation profileLoc; + + external ffi.Pointer<__CFDictionary> profileName; + + external CMDeviceScope profileScope; + + @ffi.UnsignedInt() + external int reserved; +} + +/// WARNING: NSAccessibility is a stub. To generate bindings for this class, include +/// NSAccessibility in your config's objc-protocols list. +/// +/// NSAccessibility +extension type NSAccessibility._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSAccessibility] that points to the same underlying object as [other]. + NSAccessibility.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSAccessibility] that wraps the given raw object pointer. + NSAccessibility.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: NSAccessibilityElement is a stub. To generate bindings for this class, include +/// NSAccessibilityElement in your config's objc-protocols list. +/// +/// NSAccessibilityElement +extension type NSAccessibilityElement._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSAccessibilityElement] that points to the same underlying object as [other]. + NSAccessibilityElement.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSAccessibilityElement] that wraps the given raw object pointer. + NSAccessibilityElement.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: NSAnimatablePropertyContainer is a stub. To generate bindings for this class, include +/// NSAnimatablePropertyContainer in your config's objc-protocols list. +/// +/// NSAnimatablePropertyContainer +extension type NSAnimatablePropertyContainer._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSAnimatablePropertyContainer] that points to the same underlying object as [other]. + NSAnimatablePropertyContainer.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSAnimatablePropertyContainer] that wraps the given raw object pointer. + NSAnimatablePropertyContainer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: NSAppearanceCustomization is a stub. To generate bindings for this class, include +/// NSAppearanceCustomization in your config's objc-protocols list. +/// +/// NSAppearanceCustomization +extension type NSAppearanceCustomization._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSAppearanceCustomization] that points to the same underlying object as [other]. + NSAppearanceCustomization.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSAppearanceCustomization] that wraps the given raw object pointer. + NSAppearanceCustomization.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: NSButtonCell is a stub. To generate bindings for this class, include +/// NSButtonCell in your config's objc-interfaces list. +/// +/// NSButtonCell +extension type NSButtonCell._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [NSButtonCell] that points to the same underlying object as [other]. + NSButtonCell.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSButtonCell] that wraps the given raw object pointer. + NSButtonCell.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// WARNING: NSColorList is a stub. To generate bindings for this class, include +/// NSColorList in your config's objc-interfaces list. +/// +/// NSColorList +extension type NSColorList._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [NSColorList] that points to the same underlying object as [other]. + NSColorList.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSColorList] that wraps the given raw object pointer. + NSColorList.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// WARNING: NSColorPanel is a stub. To generate bindings for this class, include +/// NSColorPanel in your config's objc-interfaces list. +/// +/// NSColorPanel +extension type NSColorPanel._(objc.ObjCObject object$) + implements objc.ObjCObject, NSPanel { + /// Constructs a [NSColorPanel] that points to the same underlying object as [other]. + NSColorPanel.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal('NSColorPanel', iOS: (true, null)); + } + + /// Constructs a [NSColorPanel] that wraps the given raw object pointer. + NSColorPanel.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal('NSColorPanel', iOS: (true, null)); + } +} + +enum NSColorPanelMode { + NSColorPanelModeNone(-1), + NSColorPanelModeGray(0), + NSColorPanelModeRGB(1), + NSColorPanelModeCMYK(2), + NSColorPanelModeHSB(3), + NSColorPanelModeCustomPalette(4), + NSColorPanelModeColorList(5), + NSColorPanelModeWheel(6), + NSColorPanelModeCrayon(7); + + final int value; + const NSColorPanelMode(this.value); + + static NSColorPanelMode fromValue(int value) => switch (value) { + -1 => NSColorPanelModeNone, + 0 => NSColorPanelModeGray, + 1 => NSColorPanelModeRGB, + 2 => NSColorPanelModeCMYK, + 3 => NSColorPanelModeHSB, + 4 => NSColorPanelModeCustomPalette, + 5 => NSColorPanelModeColorList, + 6 => NSColorPanelModeWheel, + 7 => NSColorPanelModeCrayon, + _ => throw ArgumentError('Unknown value for NSColorPanelMode: $value'), + }; +} + +/// NSColorPicker +extension type NSColorPicker._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, NSColorPickingDefault { + /// Constructs a [NSColorPicker] that points to the same underlying object as [other]. + NSColorPicker.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal('NSColorPicker', iOS: (true, null)); + assert(isA(object$)); + } + + /// Constructs a [NSColorPicker] that wraps the given raw object pointer. + NSColorPicker.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal('NSColorPicker', iOS: (true, null)); + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [NSColorPicker]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSColorPicker, + ); + + /// alloc + static NSColorPicker alloc() { + final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_alloc); + return NSColorPicker.fromPointer($ret, retain: false, release: true); + } + + /// allocWithZone: + static NSColorPicker allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_NSColorPicker, + _sel_allocWithZone_, + zone, + ); + return NSColorPicker.fromPointer($ret, retain: false, release: true); + } + + /// new + static NSColorPicker new$() { + final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_new); + return NSColorPicker.fromPointer($ret, retain: false, release: true); + } + + /// Returns a new instance of NSColorPicker constructed with the default `new` method. + NSColorPicker() : this.as(new$().object$); +} + +extension NSColorPicker$Methods on NSColorPicker { + /// alphaControlAddedOrRemoved: + void alphaControlAddedOrRemoved(objc.ObjCObject? sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender?.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.alphaControlAddedOrRemoved:', + iOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_alphaControlAddedOrRemoved_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } + + /// attachColorList: + void attachColorList(NSColorList colorList) { + final _$$ref = object$.ref; + final _$$ref$1 = colorList.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.attachColorList:', + iOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_attachColorList_, + _$$ref$1.pointer, + ); + } + + /// buttonToolTip + objc.NSString get buttonToolTip { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.buttonToolTip', + iOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_buttonToolTip); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// colorPanel + NSColorPanel get colorPanel { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('NSColorPicker.colorPanel', iOS: (true, null)); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_colorPanel); + return NSColorPanel.fromPointer($ret, retain: true, release: true); + } + + /// detachColorList: + void detachColorList(NSColorList colorList) { + final _$$ref = object$.ref; + final _$$ref$1 = colorList.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.detachColorList:', + iOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_detachColorList_, + _$$ref$1.pointer, + ); + } + + /// init + NSColorPicker init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return NSColorPicker.fromPointer($ret, retain: false, release: true); + } + + /// initWithPickerMask:colorPanel: + NSColorPicker? initWithPickerMask( + int mask, { + required NSColorPanel colorPanel, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = colorPanel.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.initWithPickerMask:colorPanel:', + iOS: (true, null), + ); + final $ret = _objc_msgSend_vbc8p4( + _$$ref.retainAndReturnPointer(), + _sel_initWithPickerMask_colorPanel_, + mask, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : NSColorPicker.fromPointer($ret, retain: false, release: true); + } + + /// insertNewButtonImage:in: + void insertNewButtonImage( + NSImage newButtonImage, { + required NSButtonCell in$, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = newButtonImage.ref; + final _$$ref$2 = in$.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.insertNewButtonImage:in:', + iOS: (true, null), + ); + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_insertNewButtonImage_in_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// minContentSize + objc.CGSize get minContentSize { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.minContentSize', + iOS: (true, null), + ); + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_minContentSize) + : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_minContentSize); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create($finalizable); + } + + /// provideNewButtonImage + NSImage get provideNewButtonImage { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.provideNewButtonImage', + iOS: (true, null), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_provideNewButtonImage, + ); + return NSImage.fromPointer($ret, retain: true, release: true); + } + + /// setMode: + void setMode(NSColorPanelMode mode) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('NSColorPicker.setMode:', iOS: (true, null)); + _objc_msgSend_190ea64(_$$ref.pointer, _sel_setMode_, mode.value); + } + + /// viewSizeChanged: + void viewSizeChanged(objc.ObjCObject? sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender?.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.viewSizeChanged:', + iOS: (true, null), + ); + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_viewSizeChanged_, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + +/// WARNING: NSColorPickingDefault is a stub. To generate bindings for this class, include +/// NSColorPickingDefault in your config's objc-protocols list. +/// +/// NSColorPickingDefault +extension type NSColorPickingDefault._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSColorPickingDefault] that points to the same underlying object as [other]. + NSColorPickingDefault.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSColorPickingDefault] that wraps the given raw object pointer. + NSColorPickingDefault.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: NSImage is a stub. To generate bindings for this class, include +/// NSImage in your config's objc-interfaces list. +/// +/// NSImage +extension type NSImage._(objc.ObjCObject object$) implements objc.ObjCObject { + /// Constructs a [NSImage] that points to the same underlying object as [other]. + NSImage.as(objc.ObjCObject other) : object$ = other {} + + /// Constructs a [NSImage] that wraps the given raw object pointer. + NSImage.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} + +/// WARNING: NSMenuItemValidation is a stub. To generate bindings for this class, include +/// NSMenuItemValidation in your config's objc-protocols list. +/// +/// NSMenuItemValidation +extension type NSMenuItemValidation._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSMenuItemValidation] that points to the same underlying object as [other]. + NSMenuItemValidation.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSMenuItemValidation] that wraps the given raw object pointer. + NSMenuItemValidation.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: NSPanel is a stub. To generate bindings for this class, include +/// NSPanel in your config's objc-interfaces list. +/// /// NSPanel extension type NSPanel._(objc.ObjCObject object$) implements objc.ObjCObject, NSWindow { @@ -454,334 +3147,1781 @@ extension type NSPanel._(objc.ObjCObject object$) objc.checkOsVersionInternal('NSPanel', iOS: (true, null)); } - /// Constructs a [NSPanel] that wraps the given raw object pointer. - NSPanel.fromPointer( + /// Constructs a [NSPanel] that wraps the given raw object pointer. + NSPanel.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal('NSPanel', iOS: (true, null)); + } +} + +/// WARNING: NSResponder is a stub. To generate bindings for this class, include +/// NSResponder in your config's objc-interfaces list. +/// +/// NSResponder +extension type NSResponder._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCoding { + /// Constructs a [NSResponder] that points to the same underlying object as [other]. + NSResponder.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal('NSResponder', iOS: (true, null)); + } + + /// Constructs a [NSResponder] that wraps the given raw object pointer. + NSResponder.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal('NSResponder', iOS: (true, null)); + } +} + +/// NSTextList +extension type NSTextList._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSTextList] that points to the same underlying object as [other]. + NSTextList.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSTextList', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + assert(isA(object$)); + } + + /// Constructs a [NSTextList] that wraps the given raw object pointer. + NSTextList.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSTextList', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [NSTextList]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSTextList, + ); + + /// alloc + static NSTextList alloc() { + final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_alloc); + return NSTextList.fromPointer($ret, retain: false, release: true); + } + + /// allocWithZone: + static NSTextList allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_NSTextList, + _sel_allocWithZone_, + zone, + ); + return NSTextList.fromPointer($ret, retain: false, release: true); + } + + /// new + static NSTextList new$() { + final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_new); + return NSTextList.fromPointer($ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSTextList, _sel_supportsSecureCoding); + } + + /// Returns a new instance of NSTextList constructed with the default `new` method. + NSTextList() : this.as(new$().object$); +} + +extension NSTextList$Methods on NSTextList { + /// encodeWithCoder: + void encodeWithCoder(objc.NSCoder coder) { + final _$$ref = object$.ref; + final _$$ref$1 = coder.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeWithCoder_, + _$$ref$1.pointer, + ); + } + + /// init + NSTextList init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return NSTextList.fromPointer($ret, retain: false, release: true); + } + + /// initWithCoder: + NSTextList? initWithCoder(objc.NSCoder coder) { + final _$$ref = object$.ref; + final _$$ref$1 = coder.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithCoder_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : NSTextList.fromPointer($ret, retain: false, release: true); + } + + /// initWithMarkerFormat:options: + NSTextList initWithMarkerFormat( + objc.NSString markerFormat, { + required int options, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markerFormat.ref; + objc.checkOsVersionInternal( + 'NSTextList.initWithMarkerFormat:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1k4kd9s( + _$$ref.retainAndReturnPointer(), + _sel_initWithMarkerFormat_options_, + _$$ref$1.pointer, + options, + ); + return NSTextList.fromPointer($ret, retain: false, release: true); + } + + /// initWithMarkerFormat:options:startingItemNumber: + NSTextList initWithMarkerFormat$1( + objc.NSString markerFormat, { + required int options, + required int startingItemNumber, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markerFormat.ref; + objc.checkOsVersionInternal( + 'NSTextList.initWithMarkerFormat:options:startingItemNumber:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + final $ret = _objc_msgSend_1bh1vl9( + _$$ref.retainAndReturnPointer(), + _sel_initWithMarkerFormat_options_startingItemNumber_, + _$$ref$1.pointer, + options, + startingItemNumber, + ); + return NSTextList.fromPointer($ret, retain: false, release: true); + } + + /// isOrdered + bool get isOrdered { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.isOrdered', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOrdered); + } + + /// listOptions + int get listOptions { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.listOptions', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_exovb9(_$$ref.pointer, _sel_listOptions); + } + + /// markerForItemNumber: + objc.NSString markerForItemNumber(int itemNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.markerForItemNumber:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_qugqlf( + _$$ref.pointer, + _sel_markerForItemNumber_, + itemNumber, + ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// markerFormat + objc.NSString get markerFormat { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.markerFormat', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_markerFormat); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// setStartingItemNumber: + set startingItemNumber(int value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.setStartingItemNumber:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setStartingItemNumber_, value); + } + + /// startingItemNumber + int get startingItemNumber { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.startingItemNumber', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_startingItemNumber); + } +} + +sealed class NSTextListOptions { + static const NSTextListPrependEnclosingMarker = 1; +} + +/// WARNING: NSUserInterfaceItemIdentification is a stub. To generate bindings for this class, include +/// NSUserInterfaceItemIdentification in your config's objc-protocols list. +/// +/// NSUserInterfaceItemIdentification +extension type NSUserInterfaceItemIdentification._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSUserInterfaceItemIdentification] that points to the same underlying object as [other]. + NSUserInterfaceItemIdentification.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSUserInterfaceItemIdentification] that wraps the given raw object pointer. + NSUserInterfaceItemIdentification.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: NSUserInterfaceValidations is a stub. To generate bindings for this class, include +/// NSUserInterfaceValidations in your config's objc-protocols list. +/// +/// NSUserInterfaceValidations +extension type NSUserInterfaceValidations._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSUserInterfaceValidations] that points to the same underlying object as [other]. + NSUserInterfaceValidations.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [NSUserInterfaceValidations] that wraps the given raw object pointer. + NSUserInterfaceValidations.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: NSWindow is a stub. To generate bindings for this class, include +/// NSWindow in your config's objc-interfaces list. +/// +/// NSWindow +extension type NSWindow._(objc.ObjCObject object$) + implements + objc.ObjCObject, + NSResponder, + NSAnimatablePropertyContainer, + NSMenuItemValidation, + NSUserInterfaceValidations, + NSUserInterfaceItemIdentification, + NSAppearanceCustomization, + NSAccessibilityElement, + NSAccessibility { + /// Constructs a [NSWindow] that points to the same underlying object as [other]. + NSWindow.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal('NSWindow', iOS: (true, null)); + } + + /// Constructs a [NSWindow] that wraps the given raw object pointer. + NSWindow.fromPointer( ffi.Pointer other, { bool retain = false, bool release = false, }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal('NSPanel', iOS: (true, null)); + objc.checkOsVersionInternal('NSWindow', iOS: (true, null)); + } +} + +typedef OSLAccessorProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt desiredClass, + ffi.Pointer container, + ffi.UnsignedInt containerClass, + ffi.UnsignedInt form, + ffi.Pointer selectionData, + ffi.Pointer value, + ffi.Pointer accessorRefcon, + ); +typedef DartOSLAccessorProcPtrFunction = + int Function( + int desiredClass, + ffi.Pointer container, + int containerClass, + int form, + ffi.Pointer selectionData, + ffi.Pointer value, + ffi.Pointer accessorRefcon, + ); +typedef OSLAdjustMarksProcPtrFunction = + ffi.Short Function( + ffi.Long newStart, + ffi.Long newStop, + ffi.Pointer markToken, + ); +typedef DartOSLAdjustMarksProcPtrFunction = + int Function(int newStart, int newStop, ffi.Pointer markToken); +typedef OSLCompareProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ); +typedef DartOSLCompareProcPtrFunction = + int Function( + int oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ); +typedef OSLCountProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt desiredType, + ffi.UnsignedInt containerClass, + ffi.Pointer container, + ffi.Pointer result, + ); +typedef DartOSLCountProcPtrFunction = + int Function( + int desiredType, + int containerClass, + ffi.Pointer container, + ffi.Pointer result, + ); +typedef OSLDisposeTokenProcPtrFunction = + ffi.Short Function(ffi.Pointer unneededToken); +typedef DartOSLDisposeTokenProcPtrFunction = + int Function(ffi.Pointer unneededToken); +typedef OSLGetErrDescProcPtrFunction = + ffi.Short Function(ffi.Pointer> appDescPtr); +typedef DartOSLGetErrDescProcPtrFunction = + int Function(ffi.Pointer> appDescPtr); +typedef OSLGetMarkTokenProcPtrFunction = + ffi.Short Function( + ffi.Pointer dContainerToken, + ffi.UnsignedInt containerClass, + ffi.Pointer result, + ); +typedef DartOSLGetMarkTokenProcPtrFunction = + int Function( + ffi.Pointer dContainerToken, + int containerClass, + ffi.Pointer result, + ); +typedef OSLMarkProcPtrFunction = + ffi.Short Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + ffi.Long index, + ); +typedef DartOSLMarkProcPtrFunction = + int Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + int index, + ); + +/// Construction methods for `objc.ObjCBlock Function()>`. +abstract final class ObjCBlock_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function()> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function()>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function()> fromFunctionPointer( + ffi.Pointer Function()>> ptr, + ) => objc.ObjCBlock Function()>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function()> fromFunction( + ffi.Pointer<__CFError> Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function()>( + objc.newClosureBlock(_closureCallable, () { + return fn(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer<__CFError> _fnPtrTrampoline( + ffi.Pointer block, + ) => block.ref.target + .cast Function()>>() + .asFunction Function()>()(); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer<__CFError> _closureTrampoline( + ffi.Pointer block, + ) => (objc.getBlockClosure(block) as ffi.Pointer<__CFError> Function())(); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function()>`. +extension ObjCBlock_CFErrorRef$CallExtension + on objc.ObjCBlock Function()> { + ffi.Pointer<__CFError> call() { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFError> Function( + ffi.Pointer block, + ) + > + >() + .asFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >()(ref.pointer); } } -/// WARNING: NSResponder is a stub. To generate bindings for this class, include -/// NSResponder in your config's objc-interfaces list. -/// -/// NSResponder -extension type NSResponder._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCoding { - /// Constructs a [NSResponder] that points to the same underlying object as [other]. - NSResponder.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal('NSResponder', iOS: (true, null)); - } +final class OpaqueATSUTextLayout extends ffi.Opaque {} + +final class OpaqueAreaID extends ffi.Opaque {} + +final class OpaqueCollection extends ffi.Opaque {} + +final class OpaqueFNSubscriptionRef extends ffi.Opaque {} + +final class OpaqueFSVolumeOperation extends ffi.Opaque {} + +final class OpaqueGrafPtr extends ffi.Opaque {} + +final class OpaqueLSSharedFileListRef extends ffi.Opaque {} + +final class OpaquePasteboardRef extends ffi.Opaque {} + +final class OpaqueRgnHandle extends ffi.Opaque {} + +final class OpaqueSecTransformImplementation extends ffi.Opaque {} + +final class OpaqueTECObjectRef extends ffi.Opaque {} + +final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} + +final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} + +final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} + +typedef PasteboardPromiseKeeperProcPtrFunction = + ffi.Int Function( + ffi.Pointer pasteboard, + ffi.Pointer item, + ffi.Pointer flavorType, + ffi.Pointer context, + ); +typedef DartPasteboardPromiseKeeperProcPtrFunction = + int Function( + ffi.Pointer pasteboard, + ffi.Pointer item, + ffi.Pointer flavorType, + ffi.Pointer context, + ); + +final class Point extends ffi.Struct { + @ffi.Short() + external int v; + + @ffi.Short() + external int h; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int v, + required int h, + }) => $allocator() + ..ref.v = v + ..ref.h = h; +} + +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef QDArcProcPtrFunction = + ffi.Void Function( + ffi.SignedChar verb, + ffi.Pointer r, + ffi.Short startAngle, + ffi.Short arcAngle, + ); +typedef DartQDArcProcPtrFunction = + void Function(int verb, ffi.Pointer r, int startAngle, int arcAngle); +typedef QDBitsProcPtrFunction = + ffi.Void Function( + ffi.Pointer srcBits, + ffi.Pointer srcRect, + ffi.Pointer dstRect, + ffi.Short mode, + ffi.Pointer maskRgn, + ); +typedef DartQDBitsProcPtrFunction = + void Function( + ffi.Pointer srcBits, + ffi.Pointer srcRect, + ffi.Pointer dstRect, + int mode, + ffi.Pointer maskRgn, + ); +typedef QDCommentProcPtrFunction = + ffi.Void Function( + ffi.Short kind, + ffi.Short dataSize, + ffi.Pointer> dataHandle, + ); +typedef DartQDCommentProcPtrFunction = + void Function( + int kind, + int dataSize, + ffi.Pointer> dataHandle, + ); +typedef QDGetPicProcPtrFunction = + ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); +typedef DartQDGetPicProcPtrFunction = + void Function(ffi.Pointer dataPtr, int byteCount); +typedef QDJShieldCursorProcPtrFunction = + ffi.Void Function( + ffi.Short left, + ffi.Short top, + ffi.Short right, + ffi.Short bottom, + ); +typedef DartQDJShieldCursorProcPtrFunction = + void Function(int left, int top, int right, int bottom); +typedef QDLineProcPtrFunction = ffi.Void Function(Point newPt); +typedef DartQDLineProcPtrFunction = void Function(Point newPt); +typedef QDOpcodeProcPtrFunction = + ffi.Void Function( + ffi.Pointer fromRect, + ffi.Pointer toRect, + ffi.UnsignedShort opcode, + ffi.Short version, + ); +typedef DartQDOpcodeProcPtrFunction = + void Function( + ffi.Pointer fromRect, + ffi.Pointer toRect, + int opcode, + int version, + ); +typedef QDOvalProcPtrFunction = + ffi.Void Function(ffi.SignedChar verb, ffi.Pointer r); +typedef DartQDOvalProcPtrFunction = + void Function(int verb, ffi.Pointer r); +typedef QDPolyProcPtrFunction = + ffi.Void Function( + ffi.SignedChar verb, + ffi.Pointer> poly, + ); +typedef DartQDPolyProcPtrFunction = + void Function(int verb, ffi.Pointer> poly); +typedef QDPrinterStatusProcPtrFunction = + ffi.Int Function( + ffi.Int opcode, + ffi.Pointer currentPort, + ffi.Pointer printerStatus, + ); +typedef DartQDPrinterStatusProcPtrFunction = + int Function( + int opcode, + ffi.Pointer currentPort, + ffi.Pointer printerStatus, + ); +typedef QDPutPicProcPtrFunction = + ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); +typedef DartQDPutPicProcPtrFunction = + void Function(ffi.Pointer dataPtr, int byteCount); +typedef QDRRectProcPtrFunction = + ffi.Void Function( + ffi.SignedChar verb, + ffi.Pointer r, + ffi.Short ovalWidth, + ffi.Short ovalHeight, + ); +typedef DartQDRRectProcPtrFunction = + void Function(int verb, ffi.Pointer r, int ovalWidth, int ovalHeight); +typedef QDRectProcPtrFunction = + ffi.Void Function(ffi.SignedChar verb, ffi.Pointer r); +typedef DartQDRectProcPtrFunction = + void Function(int verb, ffi.Pointer r); +typedef QDRgnProcPtrFunction = + ffi.Void Function(ffi.SignedChar verb, ffi.Pointer rgn); +typedef DartQDRgnProcPtrFunction = + void Function(int verb, ffi.Pointer rgn); +typedef QDStdGlyphsProcPtrFunction = + ffi.Int Function(ffi.Pointer dataStream, ffi.UnsignedLong size); +typedef DartQDStdGlyphsProcPtrFunction = + int Function(ffi.Pointer dataStream, int size); +typedef QDTextProcPtrFunction = + ffi.Void Function( + ffi.Short byteCount, + ffi.Pointer textBuf, + Point numer, + Point denom, + ); +typedef DartQDTextProcPtrFunction = + void Function( + int byteCount, + ffi.Pointer textBuf, + Point numer, + Point denom, + ); +typedef QDTxMeasProcPtrFunction = + ffi.Short Function( + ffi.Short byteCount, + ffi.Pointer textAddr, + ffi.Pointer numer, + ffi.Pointer denom, + ffi.Pointer info, + ); +typedef DartQDTxMeasProcPtrFunction = + int Function( + int byteCount, + ffi.Pointer textAddr, + ffi.Pointer numer, + ffi.Pointer denom, + ffi.Pointer info, + ); + +@ffi.Packed(2) +final class QElem extends ffi.Struct { + external ffi.Pointer qLink; + + @ffi.Short() + external int qType; + + @ffi.Array.multi([1]) + external ffi.Array qData; +} + +final class RGBColor extends ffi.Struct { + @ffi.UnsignedShort() + external int red; + + @ffi.UnsignedShort() + external int green; + + @ffi.UnsignedShort() + external int blue; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int red, + required int green, + required int blue, + }) => $allocator() + ..ref.red = red + ..ref.green = green + ..ref.blue = blue; +} + +final class Rect extends ffi.Struct { + @ffi.Short() + external int top; - /// Constructs a [NSResponder] that wraps the given raw object pointer. - NSResponder.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal('NSResponder', iOS: (true, null)); - } + @ffi.Short() + external int left; + + @ffi.Short() + external int bottom; + + @ffi.Short() + external int right; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int top, + required int left, + required int bottom, + required int right, + }) => $allocator() + ..ref.top = top + ..ref.left = left + ..ref.bottom = bottom + ..ref.right = right; } -/// NSTextList -extension type NSTextList._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSTextList] that points to the same underlying object as [other]. - NSTextList.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSTextList', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), +typedef RedrawBackgroundProcPtrFunction = + ffi.UnsignedChar Function( + ffi.Pointer iLayout, + ffi.UnsignedLong iTextOffset, + ffi.UnsignedLong iTextLength, + ffi.Pointer iUnhighlightArea, + ffi.UnsignedLong iTrapezoidCount, ); - assert(isA(object$)); - } +typedef DartRedrawBackgroundProcPtrFunction = + int Function( + ffi.Pointer iLayout, + int iTextOffset, + int iTextLength, + ffi.Pointer iUnhighlightArea, + int iTrapezoidCount, + ); +typedef RegionToRectsProcPtrFunction = + ffi.Int Function( + ffi.UnsignedShort message, + ffi.Pointer rgn, + ffi.Pointer rect, + ffi.Pointer refCon, + ); +typedef DartRegionToRectsProcPtrFunction = + int Function( + int message, + ffi.Pointer rgn, + ffi.Pointer rect, + ffi.Pointer refCon, + ); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); - /// Constructs a [NSTextList] that wraps the given raw object pointer. - NSTextList.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSTextList', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), +final class RegisterInformation extends ffi.Struct { + external ffi.Pointer __unusedRegisterInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedRegisterInformationField, + }) => $allocator() + ..ref.__unusedRegisterInformationField = $unusedRegisterInformationField; +} + +typedef ResErrProcPtrFunction = ffi.Void Function(ffi.Short thErr); +typedef DartResErrProcPtrFunction = void Function(int thErr); +typedef ResourceEndianFilterPtrFunction = + ffi.Short Function( + ffi.Pointer> theResource, + ffi.UnsignedChar currentlyNativeEndian, + ); +typedef DartResourceEndianFilterPtrFunction = + int Function( + ffi.Pointer> theResource, + int currentlyNativeEndian, + ); +typedef SKSearchResultsFilterCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__SKIndex> inIndex, + ffi.Pointer inDocument, + ffi.Pointer inContext, + ); +typedef DartSKSearchResultsFilterCallBackFunction = + int Function( + ffi.Pointer<__SKIndex> inIndex, + ffi.Pointer inDocument, + ffi.Pointer inContext, + ); +typedef SSLReadFuncFunction = + ffi.Int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLReadFuncFunction = + int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef SSLWriteFuncFunction = + ffi.Int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLWriteFuncFunction = + int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, ); - assert(isA(object$)); - } - /// Returns whether [obj] is an instance of [NSTextList]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSTextList, - ); +@ffi.Packed(2) +final class SchedulerInfoRec extends ffi.Struct { + @ffi.UnsignedInt() + external int InfoRecSize; - /// alloc - static NSTextList alloc() { - final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_alloc); - return NSTextList.fromPointer($ret, retain: false, release: true); - } + @ffi.UnsignedLong() + external int CurrentThreadID; - /// allocWithZone: - static NSTextList allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_NSTextList, - _sel_allocWithZone_, - zone, + @ffi.UnsignedLong() + external int SuggestedThreadID; + + @ffi.UnsignedLong() + external int InterruptedCoopThreadID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int InfoRecSize, + required int CurrentThreadID, + required int SuggestedThreadID, + required int InterruptedCoopThreadID, + }) => $allocator() + ..ref.InfoRecSize = InfoRecSize + ..ref.CurrentThreadID = CurrentThreadID + ..ref.SuggestedThreadID = SuggestedThreadID + ..ref.InterruptedCoopThreadID = InterruptedCoopThreadID; +} + +typedef SecKeychainCallbackFunction = + ffi.Int Function( + ffi.UnsignedInt keychainEvent, + ffi.Pointer info, + ffi.Pointer context, + ); +typedef DartSecKeychainCallbackFunction = + int Function( + SecKeychainEvent keychainEvent, + ffi.Pointer info, + ffi.Pointer context, ); - return NSTextList.fromPointer($ret, retain: false, release: true); - } - /// new - static NSTextList new$() { - final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_new); - return NSTextList.fromPointer($ret, retain: false, release: true); - } +final class SecKeychainCallbackInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int version; - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSTextList, _sel_supportsSecureCoding); - } + external ffi.Pointer<__SecKeychainItem> item; - /// Returns a new instance of NSTextList constructed with the default `new` method. - NSTextList() : this.as(new$().object$); + external ffi.Pointer<__SecKeychain> keychain; + + @ffi.Int() + external int pid; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer<__SecKeychainItem> item, + required ffi.Pointer<__SecKeychain> keychain, + required int pid, + }) => $allocator() + ..ref.version = version + ..ref.item = item + ..ref.keychain = keychain + ..ref.pid = pid; } -extension NSTextList$Methods on NSTextList { - /// encodeWithCoder: - void encodeWithCoder(objc.NSCoder coder) { - final _$$ref = object$.ref; - final _$$ref$1 = coder.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_encodeWithCoder_, - _$$ref$1.pointer, +enum SecKeychainEvent { + kSecLockEvent(1), + kSecUnlockEvent(2), + kSecAddEvent(3), + kSecDeleteEvent(4), + kSecUpdateEvent(5), + kSecPasswordChangedEvent(6), + kSecDefaultChangedEvent(9), + kSecDataAccessEvent(10), + kSecKeychainListChangedEvent(11), + kSecTrustSettingsChangedEvent(12); + + final int value; + const SecKeychainEvent(this.value); + + static SecKeychainEvent fromValue(int value) => switch (value) { + 1 => kSecLockEvent, + 2 => kSecUnlockEvent, + 3 => kSecAddEvent, + 4 => kSecDeleteEvent, + 5 => kSecUpdateEvent, + 6 => kSecPasswordChangedEvent, + 9 => kSecDefaultChangedEvent, + 10 => kSecDataAccessEvent, + 11 => kSecKeychainListChangedEvent, + 12 => kSecTrustSettingsChangedEvent, + _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), + }; +} + +typedef SecTransformCreateFPFunction = + ffi.Pointer Function( + ffi.Pointer name, + ffi.Pointer newTransform, + ffi.Pointer ref, ); - } +typedef DartSecTransformCreateFPFunction = + objc.ObjCBlock Function()> Function( + ffi.Pointer name, + ffi.Pointer newTransform, + ffi.Pointer ref, + ); +typedef SelectorFunctionProcPtrFunction = + ffi.Short Function(ffi.UnsignedInt selector, ffi.Pointer response); +typedef DartSelectorFunctionProcPtrFunction = + int Function(int selector, ffi.Pointer response); +typedef SleepQProcPtrFunction = + ffi.Long Function(ffi.Long message, ffi.Pointer qRecPtr); +typedef DartSleepQProcPtrFunction = + int Function(int message, ffi.Pointer qRecPtr); - /// init - NSTextList init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), +@ffi.Packed(2) +final class SleepQRec extends ffi.Struct { + external ffi.Pointer sleepQLink; + + @ffi.Short() + external int sleepQType; + + external ffi.Pointer> sleepQProc; + + @ffi.Short() + external int sleepQFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer sleepQLink, + required int sleepQType, + required ffi.Pointer> sleepQProc, + required int sleepQFlags, + }) => $allocator() + ..ref.sleepQLink = sleepQLink + ..ref.sleepQType = sleepQType + ..ref.sleepQProc = sleepQProc + ..ref.sleepQFlags = sleepQFlags; +} + +@ffi.Packed(2) +final class SpeechChannelRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef SpeechDoneProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, +typedef DartSpeechDoneProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ); +typedef SpeechErrorCFProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer<__CFError> theError, + ); +typedef DartSpeechErrorCFProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer<__CFError> theError, + ); +typedef SpeechErrorProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Short theError, + ffi.Long bytePos, + ); +typedef DartSpeechErrorProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + int theError, + int bytePos, + ); +typedef SpeechPhonemeProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Short phonemeOpcode, + ); +typedef DartSpeechPhonemeProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + int phonemeOpcode, + ); +typedef SpeechSyncProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.UnsignedInt syncMessage, + ); +typedef DartSpeechSyncProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + int syncMessage, + ); +typedef SpeechTextDoneProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer> nextBuf, + ffi.Pointer byteLen, + ffi.Pointer controlFlags, + ); +typedef DartSpeechTextDoneProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer> nextBuf, + ffi.Pointer byteLen, + ffi.Pointer controlFlags, + ); +typedef SpeechWordCFProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer aString, + CFRange wordRange, + ); +typedef DartSpeechWordCFProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.Pointer aString, + CFRange wordRange, + ); +typedef SpeechWordProcPtrFunction = + ffi.Void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + ffi.UnsignedLong wordPos, + ffi.UnsignedShort wordLen, + ); +typedef DartSpeechWordProcPtrFunction = + void Function( + ffi.Pointer chan, + ffi.Pointer refCon, + int wordPos, + int wordLen, ); - return NSTextList.fromPointer($ret, retain: false, release: true); - } - /// initWithCoder: - NSTextList? initWithCoder(objc.NSCoder coder) { - final _$$ref = object$.ref; - final _$$ref$1 = coder.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithCoder_, - _$$ref$1.pointer, +final class TECBufferContextRec extends ffi.Struct { + external ffi.Pointer textInputBuffer; + + external ffi.Pointer textInputBufferEnd; + + external ffi.Pointer textOutputBuffer; + + external ffi.Pointer textOutputBufferEnd; + + external ffi.Pointer encodingInputBuffer; + + external ffi.Pointer encodingInputBufferEnd; + + external ffi.Pointer encodingOutputBuffer; + + external ffi.Pointer encodingOutputBufferEnd; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer textInputBuffer, + required ffi.Pointer textInputBufferEnd, + required ffi.Pointer textOutputBuffer, + required ffi.Pointer textOutputBufferEnd, + required ffi.Pointer encodingInputBuffer, + required ffi.Pointer encodingInputBufferEnd, + required ffi.Pointer encodingOutputBuffer, + required ffi.Pointer encodingOutputBufferEnd, + }) => $allocator() + ..ref.textInputBuffer = textInputBuffer + ..ref.textInputBufferEnd = textInputBufferEnd + ..ref.textOutputBuffer = textOutputBuffer + ..ref.textOutputBufferEnd = textOutputBufferEnd + ..ref.encodingInputBuffer = encodingInputBuffer + ..ref.encodingInputBufferEnd = encodingInputBufferEnd + ..ref.encodingOutputBuffer = encodingOutputBuffer + ..ref.encodingOutputBufferEnd = encodingOutputBufferEnd; +} + +@ffi.Packed(2) +final class TECConversionInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int sourceEncoding; + + @ffi.UnsignedInt() + external int destinationEncoding; + + @ffi.UnsignedShort() + external int reserved1; + + @ffi.UnsignedShort() + external int reserved2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sourceEncoding, + required int destinationEncoding, + required int reserved1, + required int reserved2, + }) => $allocator() + ..ref.sourceEncoding = sourceEncoding + ..ref.destinationEncoding = destinationEncoding + ..ref.reserved1 = reserved1 + ..ref.reserved2 = reserved2; +} + +final class TECConverterContextRec extends ffi.Struct { + external ffi.Pointer pluginRec; + + @ffi.UnsignedInt() + external int sourceEncoding; + + @ffi.UnsignedInt() + external int destEncoding; + + @ffi.UnsignedInt() + external int reserved1; + + @ffi.UnsignedInt() + external int reserved2; + + external TECBufferContextRec bufferContext; + + external ffi.Pointer contextRefCon; + + external ffi.Pointer> conversionProc; + + external ffi.Pointer> flushProc; + + external ffi.Pointer> + clearContextInfoProc; + + @ffi.UnsignedInt() + external int options1; + + @ffi.UnsignedInt() + external int options2; + + external TECPluginStateRec pluginState; +} + +typedef TECPluginClearContextInfoPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginClearContextInfoPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginClearSnifferContextInfoPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginClearSnifferContextInfoPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef TECPluginConvertTextEncodingPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginConvertTextEncodingPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, ); - return $ret.address == 0 - ? null - : NSTextList.fromPointer($ret, retain: false, release: true); - } - /// initWithMarkerFormat:options: - NSTextList initWithMarkerFormat( - objc.NSString markerFormat, { - required int options, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markerFormat.ref; - objc.checkOsVersionInternal( - 'NSTextList.initWithMarkerFormat:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), +final class TECPluginDispatchTable extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + @ffi.UnsignedInt() + external int compatibleVersion; + + @ffi.UnsignedInt() + external int PluginID; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingConverter; + + external ffi.Pointer> + PluginClearContextInfo; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginConvertTextEncoding; + + external ffi.Pointer> + PluginFlushConversion; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingConverter; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingSniffer; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginClearSnifferContextInfo; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginSniffTextEncoding; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingSniffer; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodingPairs; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountDestinationTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountSubTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableSniffers; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountWebTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountMailTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingInternetName; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingFromInternetName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int compatibleVersion, + required int PluginID, + required ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingConverter, + required ffi.Pointer< + ffi.NativeFunction + > + PluginClearContextInfo, + required ffi.Pointer< + ffi.NativeFunction + > + PluginConvertTextEncoding, + required ffi.Pointer< + ffi.NativeFunction + > + PluginFlushConversion, + required ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingConverter, + required ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingSniffer, + required ffi.Pointer< + ffi.NativeFunction + > + PluginClearSnifferContextInfo, + required ffi.Pointer< + ffi.NativeFunction + > + PluginSniffTextEncoding, + required ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingSniffer, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodingPairs, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountDestinationTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountSubTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableSniffers, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountWebTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountMailTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingInternetName, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingFromInternetName, + }) => $allocator() + ..ref.version = version + ..ref.compatibleVersion = compatibleVersion + ..ref.PluginID = PluginID + ..ref.PluginNewEncodingConverter = PluginNewEncodingConverter + ..ref.PluginClearContextInfo = PluginClearContextInfo + ..ref.PluginConvertTextEncoding = PluginConvertTextEncoding + ..ref.PluginFlushConversion = PluginFlushConversion + ..ref.PluginDisposeEncodingConverter = PluginDisposeEncodingConverter + ..ref.PluginNewEncodingSniffer = PluginNewEncodingSniffer + ..ref.PluginClearSnifferContextInfo = PluginClearSnifferContextInfo + ..ref.PluginSniffTextEncoding = PluginSniffTextEncoding + ..ref.PluginDisposeEncodingSniffer = PluginDisposeEncodingSniffer + ..ref.PluginGetCountAvailableTextEncodings = + PluginGetCountAvailableTextEncodings + ..ref.PluginGetCountAvailableTextEncodingPairs = + PluginGetCountAvailableTextEncodingPairs + ..ref.PluginGetCountDestinationTextEncodings = + PluginGetCountDestinationTextEncodings + ..ref.PluginGetCountSubTextEncodings = PluginGetCountSubTextEncodings + ..ref.PluginGetCountAvailableSniffers = PluginGetCountAvailableSniffers + ..ref.PluginGetCountWebTextEncodings = PluginGetCountWebTextEncodings + ..ref.PluginGetCountMailTextEncodings = PluginGetCountMailTextEncodings + ..ref.PluginGetTextEncodingInternetName = PluginGetTextEncodingInternetName + ..ref.PluginGetTextEncodingFromInternetName = + PluginGetTextEncodingFromInternetName; +} + +typedef TECPluginDisposeEncodingConverterPtrFunction = + ffi.Int Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, ); - final $ret = _objc_msgSend_1k4kd9s( - _$$ref.retainAndReturnPointer(), - _sel_initWithMarkerFormat_options_, - _$$ref$1.pointer, - options, +typedef DartTECPluginDisposeEncodingConverterPtrFunction = + int Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginDisposeEncodingSnifferPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginDisposeEncodingSnifferPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef TECPluginFlushConversionPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginFlushConversionPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginGetCountAvailableSniffersPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableSniffersPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountAvailableTextEncodingPairsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableTextEncodingPairsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountAvailableTextEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableTextEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountDestinationTextEncodingsPtrFunction = + ffi.Int Function( + ffi.UnsignedInt inputEncoding, + ffi.Pointer destinationEncodings, + ffi.UnsignedLong maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ); +typedef DartTECPluginGetCountDestinationTextEncodingsPtrFunction = + int Function( + int inputEncoding, + ffi.Pointer destinationEncodings, + int maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ); +typedef TECPluginGetCountMailEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountMailEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountSubTextEncodingsPtrFunction = + ffi.Int Function( + ffi.UnsignedInt inputEncoding, + ffi.Pointer subEncodings, + ffi.UnsignedLong maxSubEncodings, + ffi.Pointer actualSubEncodings, + ); +typedef DartTECPluginGetCountSubTextEncodingsPtrFunction = + int Function( + int inputEncoding, + ffi.Pointer subEncodings, + int maxSubEncodings, + ffi.Pointer actualSubEncodings, + ); +typedef TECPluginGetCountWebEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountWebEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, ); - return NSTextList.fromPointer($ret, retain: false, release: true); - } - - /// initWithMarkerFormat:options:startingItemNumber: - NSTextList initWithMarkerFormat$1( - objc.NSString markerFormat, { - required int options, - required int startingItemNumber, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markerFormat.ref; - objc.checkOsVersionInternal( - 'NSTextList.initWithMarkerFormat:options:startingItemNumber:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), +typedef TECPluginGetPluginDispatchTablePtrFunction = + ffi.Pointer Function(); +typedef TECPluginGetTextEncodingFromInternetNamePtrFunction = + ffi.Int Function( + ffi.Pointer textEncoding, + ffi.Pointer encodingName, ); - final $ret = _objc_msgSend_1bh1vl9( - _$$ref.retainAndReturnPointer(), - _sel_initWithMarkerFormat_options_startingItemNumber_, - _$$ref$1.pointer, - options, - startingItemNumber, +typedef DartTECPluginGetTextEncodingFromInternetNamePtrFunction = + int Function( + ffi.Pointer textEncoding, + ffi.Pointer encodingName, ); - return NSTextList.fromPointer($ret, retain: false, release: true); - } - - /// isOrdered - bool get isOrdered { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.isOrdered', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), +typedef TECPluginGetTextEncodingInternetNamePtrFunction = + ffi.Int Function( + ffi.UnsignedInt textEncoding, + ffi.Pointer encodingName, ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOrdered); - } - - /// listOptions - int get listOptions { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.listOptions', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), +typedef DartTECPluginGetTextEncodingInternetNamePtrFunction = + int Function(int textEncoding, ffi.Pointer encodingName); +typedef TECPluginNewEncodingConverterPtrFunction = + ffi.Int Function( + ffi.Pointer> newEncodingConverter, + ffi.Pointer plugContext, + ffi.UnsignedInt inputEncoding, + ffi.UnsignedInt outputEncoding, ); - return _objc_msgSend_exovb9(_$$ref.pointer, _sel_listOptions); - } - - /// markerForItemNumber: - objc.NSString markerForItemNumber(int itemNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.markerForItemNumber:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), +typedef DartTECPluginNewEncodingConverterPtrFunction = + int Function( + ffi.Pointer> newEncodingConverter, + ffi.Pointer plugContext, + int inputEncoding, + int outputEncoding, ); - final $ret = _objc_msgSend_qugqlf( - _$$ref.pointer, - _sel_markerForItemNumber_, - itemNumber, +typedef TECPluginNewEncodingSnifferPtrFunction = + ffi.Int Function( + ffi.Pointer> encodingSniffer, + ffi.Pointer snifContext, + ffi.UnsignedInt inputEncoding, ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// markerFormat - objc.NSString get markerFormat { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.markerFormat', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), +typedef DartTECPluginNewEncodingSnifferPtrFunction = + int Function( + ffi.Pointer> encodingSniffer, + ffi.Pointer snifContext, + int inputEncoding, ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_markerFormat); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// setStartingItemNumber: - set startingItemNumber(int value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.setStartingItemNumber:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), +typedef TECPluginSniffTextEncodingPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, ); - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setStartingItemNumber_, value); - } - - /// startingItemNumber - int get startingItemNumber { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.startingItemNumber', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), +typedef DartTECPluginSniffTextEncodingPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_startingItemNumber); - } -} -sealed class NSTextListOptions { - static const NSTextListPrependEnclosingMarker = 1; +final class TECPluginStateRec extends ffi.Struct { + @ffi.UnsignedChar() + external int state1; + + @ffi.UnsignedChar() + external int state2; + + @ffi.UnsignedChar() + external int state3; + + @ffi.UnsignedChar() + external int state4; + + @ffi.UnsignedInt() + external int longState1; + + @ffi.UnsignedInt() + external int longState2; + + @ffi.UnsignedInt() + external int longState3; + + @ffi.UnsignedInt() + external int longState4; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int state1, + required int state2, + required int state3, + required int state4, + required int longState1, + required int longState2, + required int longState3, + required int longState4, + }) => $allocator() + ..ref.state1 = state1 + ..ref.state2 = state2 + ..ref.state3 = state3 + ..ref.state4 = state4 + ..ref.longState1 = longState1 + ..ref.longState2 = longState2 + ..ref.longState3 = longState3 + ..ref.longState4 = longState4; } -/// WARNING: NSUserInterfaceItemIdentification is a stub. To generate bindings for this class, include -/// NSUserInterfaceItemIdentification in your config's objc-protocols list. -/// -/// NSUserInterfaceItemIdentification -extension type NSUserInterfaceItemIdentification._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSUserInterfaceItemIdentification] that points to the same underlying object as [other]. - NSUserInterfaceItemIdentification.as(objc.ObjCObject other) : object$ = other; +final class TECSnifferContextRec extends ffi.Struct { + external ffi.Pointer pluginRec; - /// Constructs a [NSUserInterfaceItemIdentification] that wraps the given raw object pointer. - NSUserInterfaceItemIdentification.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + @ffi.UnsignedInt() + external int encoding; + + @ffi.UnsignedLong() + external int maxErrors; + + @ffi.UnsignedLong() + external int maxFeatures; + + external ffi.Pointer textInputBuffer; + + external ffi.Pointer textInputBufferEnd; + + @ffi.UnsignedLong() + external int numFeatures; + + @ffi.UnsignedLong() + external int numErrors; + + external ffi.Pointer contextRefCon; + + external ffi.Pointer> sniffProc; + + external ffi.Pointer> + clearContextInfoProc; + + external TECPluginStateRec pluginState; } -/// WARNING: NSUserInterfaceValidations is a stub. To generate bindings for this class, include -/// NSUserInterfaceValidations in your config's objc-protocols list. -/// -/// NSUserInterfaceValidations -extension type NSUserInterfaceValidations._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSUserInterfaceValidations] that points to the same underlying object as [other]. - NSUserInterfaceValidations.as(objc.ObjCObject other) : object$ = other; +@ffi.Packed(2) +final class TMTask extends ffi.Struct { + external ffi.Pointer qLink; - /// Constructs a [NSUserInterfaceValidations] that wraps the given raw object pointer. - NSUserInterfaceValidations.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); + @ffi.Short() + external int qType; + + external ffi.Pointer> tmAddr; + + @ffi.Long() + external int tmCount; + + @ffi.Long() + external int tmWakeUp; + + @ffi.Long() + external int tmReserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer qLink, + required int qType, + required ffi.Pointer> tmAddr, + required int tmCount, + required int tmWakeUp, + required int tmReserved, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.tmAddr = tmAddr + ..ref.tmCount = tmCount + ..ref.tmWakeUp = tmWakeUp + ..ref.tmReserved = tmReserved; } -/// WARNING: NSWindow is a stub. To generate bindings for this class, include -/// NSWindow in your config's objc-interfaces list. -/// -/// NSWindow -extension type NSWindow._(objc.ObjCObject object$) - implements - objc.ObjCObject, - NSResponder, - NSAnimatablePropertyContainer, - NSMenuItemValidation, - NSUserInterfaceValidations, - NSUserInterfaceItemIdentification, - NSAppearanceCustomization, - NSAccessibilityElement, - NSAccessibility { - /// Constructs a [NSWindow] that points to the same underlying object as [other]. - NSWindow.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal('NSWindow', iOS: (true, null)); - } +typedef TaskProcFunction = ffi.Int Function(ffi.Pointer parameter); +typedef DartTaskProcFunction = int Function(ffi.Pointer parameter); - /// Constructs a [NSWindow] that wraps the given raw object pointer. - NSWindow.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal('NSWindow', iOS: (true, null)); - } +@ffi.Packed(2) +final class TextEncodingRun extends ffi.Struct { + @ffi.UnsignedLong() + external int offset; + + @ffi.UnsignedInt() + external int textEncoding; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int textEncoding, + }) => $allocator() + ..ref.offset = offset + ..ref.textEncoding = textEncoding; } +typedef ThreadEntryProcPtrFunction = + ffi.Pointer Function(ffi.Pointer threadParam); +typedef ThreadSchedulerProcPtrFunction = + ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); +typedef DartThreadSchedulerProcPtrFunction = + int Function(ffi.Pointer schedulerInfo); +typedef ThreadSwitchProcPtrFunction = + ffi.Void Function( + ffi.UnsignedLong threadBeingSwitched, + ffi.Pointer switchProcParam, + ); +typedef DartThreadSwitchProcPtrFunction = + void Function( + int threadBeingSwitched, + ffi.Pointer switchProcParam, + ); +typedef ThreadTerminationProcPtrFunction = + ffi.Void Function( + ffi.UnsignedLong threadTerminated, + ffi.Pointer terminationProcParam, + ); +typedef DartThreadTerminationProcPtrFunction = + void Function( + int threadTerminated, + ffi.Pointer terminationProcParam, + ); +typedef TimerProcPtrFunction = ffi.Void Function(ffi.Pointer tmTaskPtr); +typedef DartTimerProcPtrFunction = void Function(ffi.Pointer tmTaskPtr); + /// UIPickerView extension type UIPickerView._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSCoding { @@ -1037,39 +5177,230 @@ extension UIPickerView$Methods on UIPickerView { } } -/// WARNING: UIPickerViewDataSource is a stub. To generate bindings for this class, include -/// UIPickerViewDataSource in your config's objc-protocols list. -/// -/// UIPickerViewDataSource -extension type UIPickerViewDataSource._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [UIPickerViewDataSource] that points to the same underlying object as [other]. - UIPickerViewDataSource.as(objc.ObjCObject other) : object$ = other; +/// WARNING: UIPickerViewDataSource is a stub. To generate bindings for this class, include +/// UIPickerViewDataSource in your config's objc-protocols list. +/// +/// UIPickerViewDataSource +extension type UIPickerViewDataSource._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [UIPickerViewDataSource] that points to the same underlying object as [other]. + UIPickerViewDataSource.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [UIPickerViewDataSource] that wraps the given raw object pointer. + UIPickerViewDataSource.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +/// WARNING: UIPickerViewDelegate is a stub. To generate bindings for this class, include +/// UIPickerViewDelegate in your config's objc-protocols list. +/// +/// UIPickerViewDelegate +extension type UIPickerViewDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [UIPickerViewDelegate] that points to the same underlying object as [other]. + UIPickerViewDelegate.as(objc.ObjCObject other) : object$ = other; + + /// Constructs a [UIPickerViewDelegate] that wraps the given raw object pointer. + UIPickerViewDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} + +@ffi.Packed(2) +final class UnicodeMapping extends ffi.Struct { + @ffi.UnsignedInt() + external int unicodeEncoding; + + @ffi.UnsignedInt() + external int otherEncoding; + + @ffi.Int() + external int mappingVersion; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int unicodeEncoding, + required int otherEncoding, + required int mappingVersion, + }) => $allocator() + ..ref.unicodeEncoding = unicodeEncoding + ..ref.otherEncoding = otherEncoding + ..ref.mappingVersion = mappingVersion; +} + +typedef UnicodeToTextFallbackProcPtrFunction = + ffi.Int Function( + ffi.Pointer iSrcUniStr, + ffi.UnsignedLong iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + ffi.Pointer oDestStr, + ffi.UnsignedLong iDestStrLen, + ffi.Pointer oDestConvLen, + ffi.Pointer iInfoPtr, + ffi.Pointer iUnicodeMappingPtr, + ); +typedef DartUnicodeToTextFallbackProcPtrFunction = + int Function( + ffi.Pointer iSrcUniStr, + int iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + ffi.Pointer oDestStr, + int iDestStrLen, + ffi.Pointer oDestConvLen, + ffi.Pointer iInfoPtr, + ffi.Pointer iUnicodeMappingPtr, + ); + +final class UnnamedUnion extends ffi.Union { + external cssm_list Sublist; + + external cssm_data Word; +} + +final class VectorInformation extends ffi.Struct { + external ffi.Pointer __unusedVectorInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedVectorInformationField, + }) => + $allocator() + ..ref.__unusedVectorInformationField = $unusedVectorInformationField; +} + +typedef WSClientContextCopyDescriptionCallBackProcPtrFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef WSClientContextReleaseCallBackProcPtrFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartWSClientContextReleaseCallBackProcPtrFunction = + void Function(ffi.Pointer info); +typedef WSClientContextRetainCallBackProcPtrFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef WSMethodInvocationCallBackProcPtrFunction = + ffi.Void Function( + ffi.Pointer invocation, + ffi.Pointer info, + ffi.Pointer<__CFDictionary> outRef, + ); +typedef DartWSMethodInvocationCallBackProcPtrFunction = + void Function( + ffi.Pointer invocation, + ffi.Pointer info, + ffi.Pointer<__CFDictionary> outRef, + ); +typedef WSMethodInvocationDeserializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer invocation, + ffi.Pointer<__CFTree> msgRoot, + ffi.Pointer<__CFTree> deserializeRoot, + ffi.Pointer info, + ); +typedef WSMethodInvocationSerializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer invocation, + ffi.Pointer obj, + ffi.Pointer info, + ); +typedef WSProtocolHandlerDeserializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer protocol, + ffi.Pointer<__CFTree> msgRoot, + ffi.Pointer<__CFTree> deserializeRoot, + ffi.Pointer info, + ); +typedef WSProtocolHandlerSerializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer protocol, + ffi.Pointer obj, + ffi.Pointer info, + ); + +final class __AXObserver extends ffi.Opaque {} + +final class __AXUIElement extends ffi.Opaque {} + +final class __CFAllocator extends ffi.Opaque {} + +final class __CFArray extends ffi.Opaque {} + +final class __CFBundle extends ffi.Opaque {} + +final class __CFData extends ffi.Opaque {} + +final class __CFDictionary extends ffi.Opaque {} + +final class __CFError extends ffi.Opaque {} + +final class __CFFileDescriptor extends ffi.Opaque {} + +final class __CFHost extends ffi.Opaque {} + +final class __CFMachPort extends ffi.Opaque {} + +final class __CFMessagePort extends ffi.Opaque {} + +final class __CFNetService extends ffi.Opaque {} + +final class __CFNetServiceBrowser extends ffi.Opaque {} + +final class __CFNetServiceMonitor extends ffi.Opaque {} + +final class __CFNotificationCenter extends ffi.Opaque {} + +final class __CFPlugInInstance extends ffi.Opaque {} + +final class __CFReadStream extends ffi.Opaque {} + +final class __CFRunLoopObserver extends ffi.Opaque {} + +final class __CFRunLoopTimer extends ffi.Opaque {} + +final class __CFSocket extends ffi.Opaque {} + +final class __CFTree extends ffi.Opaque {} + +final class __CFURL extends ffi.Opaque {} + +final class __CFUUID extends ffi.Opaque {} + +final class __CFUserNotification extends ffi.Opaque {} + +final class __CFWriteStream extends ffi.Opaque {} - /// Constructs a [UIPickerViewDataSource] that wraps the given raw object pointer. - UIPickerViewDataSource.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} +final class __CFXMLNode extends ffi.Opaque {} -/// WARNING: UIPickerViewDelegate is a stub. To generate bindings for this class, include -/// UIPickerViewDelegate in your config's objc-protocols list. -/// -/// UIPickerViewDelegate -extension type UIPickerViewDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [UIPickerViewDelegate] that points to the same underlying object as [other]. - UIPickerViewDelegate.as(objc.ObjCObject other) : object$ = other; +final class __CFXMLParser extends ffi.Opaque {} - /// Constructs a [UIPickerViewDelegate] that wraps the given raw object pointer. - UIPickerViewDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} +final class __CGEvent extends ffi.Opaque {} + +final class __CGEventTapProxy extends ffi.Opaque {} + +final class __CSIdentity extends ffi.Opaque {} + +final class __CSIdentityQuery extends ffi.Opaque {} + +final class __CTFontDescriptor extends ffi.Opaque {} + +final class __FSEventStream extends ffi.Opaque {} + +final class __FSFileOperation extends ffi.Opaque {} + +final class __HIShape extends ffi.Opaque {} + +final class __MDItem extends ffi.Opaque {} + +final class __MDQuery extends ffi.Opaque {} + +final class __SKIndex extends ffi.Opaque {} + +final class __SecKeychain extends ffi.Opaque {} + +final class __SecKeychainItem extends ffi.Opaque {} @ffi.Native>( symbol: 'OBJC_CLASS_\$_NSColorPicker', @@ -1101,6 +5432,17 @@ final _class_UIPickerView = objc.getClass( _class_UIPickerView_raw, ).cast(), ); + +final class _cups_array_s extends ffi.Opaque {} + +final class _http_s extends ffi.Opaque {} + +final class _ipp_attribute_s extends ffi.Opaque {} + +final class _ipp_s extends ffi.Opaque {} + +final class _launch_data extends ffi.Opaque {} + final _objc_msgSend_12hwf9n = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1587,5 +5929,853 @@ late final _sel_viewForRow_forComponent_ = objc.registerName( "viewForRow:forComponent:", ); late final _sel_viewSizeChanged_ = objc.registerName("viewSizeChanged:"); +typedef bearer_token_callback_tFunction = + ffi.Pointer Function( + ffi.Pointer<_http_s> http, + ffi.Pointer resource, + ffi.Pointer user_data, + ); + +final class cssm_data extends ffi.Struct { + @ffi.Size() + external int Length; + + external ffi.Pointer Data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Length, + required ffi.Pointer Data, + }) => $allocator() + ..ref.Length = Length + ..ref.Data = Data; +} + +final class cssm_guid extends ffi.Struct { + @ffi.Uint32() + external int Data1; + + @ffi.Uint16() + external int Data2; + + @ffi.Uint16() + external int Data3; + + @ffi.Array.multi([8]) + external ffi.Array Data4; +} + +final class cssm_list extends ffi.Struct { + @ffi.Uint32() + external int ListType; + + external ffi.Pointer Head; + + external ffi.Pointer Tail; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ListType, + required ffi.Pointer Head, + required ffi.Pointer Tail, + }) => $allocator() + ..ref.ListType = ListType + ..ref.Head = Head + ..ref.Tail = Tail; +} + +@Deprecated('Deprecated') +final class cssm_list_element extends ffi.Struct { + external ffi.Pointer NextElement; + + @ffi.Int32() + external int WordID; + + @ffi.Uint32() + external int ElementType; + + external UnnamedUnion Element; +} + +final class cssm_memory_funcs extends ffi.Struct { + external ffi.Pointer> malloc_func; + + external ffi.Pointer> free_func; + + external ffi.Pointer> realloc_func; + + external ffi.Pointer> calloc_func; + + external ffi.Pointer AllocRef; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer> malloc_func, + required ffi.Pointer> free_func, + required ffi.Pointer> realloc_func, + required ffi.Pointer> calloc_func, + required ffi.Pointer AllocRef, + }) => $allocator() + ..ref.malloc_func = malloc_func + ..ref.free_func = free_func + ..ref.realloc_func = realloc_func + ..ref.calloc_func = calloc_func + ..ref.AllocRef = AllocRef; +} + +@Deprecated('Deprecated') +final class cssm_sample extends ffi.Struct { + external cssm_list TypedSample; + + external ffi.Pointer Verifier; +} + +@Deprecated('Deprecated') +final class cssm_samplegroup extends ffi.Struct { + @ffi.Uint32() + external int NumberOfSamples; + + external ffi.Pointer Samples; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfSamples, + required ffi.Pointer Samples, + }) => $allocator() + ..ref.NumberOfSamples = NumberOfSamples + ..ref.Samples = Samples; +} + +@Deprecated('Deprecated') +final class cssm_subservice_uid extends ffi.Struct { + external cssm_guid Guid; + + external cssm_version Version; + + @ffi.Uint32() + external int SubserviceId; + + @ffi.Uint32() + external int SubserviceType; +} + +final class cssm_version extends ffi.Struct { + @ffi.Uint32() + external int Major; + + @ffi.Uint32() + external int Minor; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Major, + required int Minor, + }) => $allocator() + ..ref.Major = Major + ..ref.Minor = Minor; +} + +typedef cups_acopy_func_tFunction = + ffi.Pointer Function( + ffi.Pointer element, + ffi.Pointer data, + ); + +enum cups_adv_e { + CUPS_ADVANCE_NONE(0), + CUPS_ADVANCE_FILE(1), + CUPS_ADVANCE_JOB(2), + CUPS_ADVANCE_SET(3), + CUPS_ADVANCE_PAGE(4); + + final int value; + const cups_adv_e(this.value); + + static cups_adv_e fromValue(int value) => switch (value) { + 0 => CUPS_ADVANCE_NONE, + 1 => CUPS_ADVANCE_FILE, + 2 => CUPS_ADVANCE_JOB, + 3 => CUPS_ADVANCE_SET, + 4 => CUPS_ADVANCE_PAGE, + _ => throw ArgumentError('Unknown value for cups_adv_e: $value'), + }; +} + +typedef cups_afree_func_tFunction = + ffi.Void Function( + ffi.Pointer element, + ffi.Pointer data, + ); +typedef Dartcups_afree_func_tFunction = + void Function(ffi.Pointer element, ffi.Pointer data); +typedef cups_ahash_func_tFunction = + ffi.Int Function(ffi.Pointer element, ffi.Pointer data); +typedef Dartcups_ahash_func_tFunction = + int Function(ffi.Pointer element, ffi.Pointer data); +typedef cups_array_func_tFunction = + ffi.Int Function( + ffi.Pointer first, + ffi.Pointer second, + ffi.Pointer data, + ); +typedef Dartcups_array_func_tFunction = + int Function( + ffi.Pointer first, + ffi.Pointer second, + ffi.Pointer data, + ); + +enum cups_bool_e { + CUPS_FALSE(0), + CUPS_TRUE(1); + + final int value; + const cups_bool_e(this.value); + + static cups_bool_e fromValue(int value) => switch (value) { + 0 => CUPS_FALSE, + 1 => CUPS_TRUE, + _ => throw ArgumentError('Unknown value for cups_bool_e: $value'), + }; +} + +typedef cups_client_cert_cb_tFunction = + ffi.Int Function( + ffi.Pointer<_http_s> http, + ffi.Pointer tls, + ffi.Pointer<_cups_array_s> distinguished_names, + ffi.Pointer user_data, + ); +typedef Dartcups_client_cert_cb_tFunction = + int Function( + ffi.Pointer<_http_s> http, + ffi.Pointer tls, + ffi.Pointer<_cups_array_s> distinguished_names, + ffi.Pointer user_data, + ); + +enum cups_cspace_e { + CUPS_CSPACE_W(0), + CUPS_CSPACE_RGB(1), + CUPS_CSPACE_RGBA(2), + CUPS_CSPACE_K(3), + CUPS_CSPACE_CMY(4), + CUPS_CSPACE_YMC(5), + CUPS_CSPACE_CMYK(6), + CUPS_CSPACE_YMCK(7), + CUPS_CSPACE_KCMY(8), + CUPS_CSPACE_KCMYcm(9), + CUPS_CSPACE_GMCK(10), + CUPS_CSPACE_GMCS(11), + CUPS_CSPACE_WHITE(12), + CUPS_CSPACE_GOLD(13), + CUPS_CSPACE_SILVER(14), + CUPS_CSPACE_CIEXYZ(15), + CUPS_CSPACE_CIELab(16), + CUPS_CSPACE_RGBW(17), + CUPS_CSPACE_SW(18), + CUPS_CSPACE_SRGB(19), + CUPS_CSPACE_ADOBERGB(20), + CUPS_CSPACE_P3E(21), + CUPS_CSPACE_GRAYE(22), + CUPS_CSPACE_ICC1(32), + CUPS_CSPACE_ICC2(33), + CUPS_CSPACE_ICC3(34), + CUPS_CSPACE_ICC4(35), + CUPS_CSPACE_ICC5(36), + CUPS_CSPACE_ICC6(37), + CUPS_CSPACE_ICC7(38), + CUPS_CSPACE_ICC8(39), + CUPS_CSPACE_ICC9(40), + CUPS_CSPACE_ICCA(41), + CUPS_CSPACE_ICCB(42), + CUPS_CSPACE_ICCC(43), + CUPS_CSPACE_ICCD(44), + CUPS_CSPACE_ICCE(45), + CUPS_CSPACE_ICCF(46), + CUPS_CSPACE_DEVICE1(48), + CUPS_CSPACE_DEVICE2(49), + CUPS_CSPACE_DEVICE3(50), + CUPS_CSPACE_DEVICE4(51), + CUPS_CSPACE_DEVICE5(52), + CUPS_CSPACE_DEVICE6(53), + CUPS_CSPACE_DEVICE7(54), + CUPS_CSPACE_DEVICE8(55), + CUPS_CSPACE_DEVICE9(56), + CUPS_CSPACE_DEVICEA(57), + CUPS_CSPACE_DEVICEB(58), + CUPS_CSPACE_DEVICEC(59), + CUPS_CSPACE_DEVICED(60), + CUPS_CSPACE_DEVICEE(61), + CUPS_CSPACE_DEVICEF(62); + + final int value; + const cups_cspace_e(this.value); + + static cups_cspace_e fromValue(int value) => switch (value) { + 0 => CUPS_CSPACE_W, + 1 => CUPS_CSPACE_RGB, + 2 => CUPS_CSPACE_RGBA, + 3 => CUPS_CSPACE_K, + 4 => CUPS_CSPACE_CMY, + 5 => CUPS_CSPACE_YMC, + 6 => CUPS_CSPACE_CMYK, + 7 => CUPS_CSPACE_YMCK, + 8 => CUPS_CSPACE_KCMY, + 9 => CUPS_CSPACE_KCMYcm, + 10 => CUPS_CSPACE_GMCK, + 11 => CUPS_CSPACE_GMCS, + 12 => CUPS_CSPACE_WHITE, + 13 => CUPS_CSPACE_GOLD, + 14 => CUPS_CSPACE_SILVER, + 15 => CUPS_CSPACE_CIEXYZ, + 16 => CUPS_CSPACE_CIELab, + 17 => CUPS_CSPACE_RGBW, + 18 => CUPS_CSPACE_SW, + 19 => CUPS_CSPACE_SRGB, + 20 => CUPS_CSPACE_ADOBERGB, + 21 => CUPS_CSPACE_P3E, + 22 => CUPS_CSPACE_GRAYE, + 32 => CUPS_CSPACE_ICC1, + 33 => CUPS_CSPACE_ICC2, + 34 => CUPS_CSPACE_ICC3, + 35 => CUPS_CSPACE_ICC4, + 36 => CUPS_CSPACE_ICC5, + 37 => CUPS_CSPACE_ICC6, + 38 => CUPS_CSPACE_ICC7, + 39 => CUPS_CSPACE_ICC8, + 40 => CUPS_CSPACE_ICC9, + 41 => CUPS_CSPACE_ICCA, + 42 => CUPS_CSPACE_ICCB, + 43 => CUPS_CSPACE_ICCC, + 44 => CUPS_CSPACE_ICCD, + 45 => CUPS_CSPACE_ICCE, + 46 => CUPS_CSPACE_ICCF, + 48 => CUPS_CSPACE_DEVICE1, + 49 => CUPS_CSPACE_DEVICE2, + 50 => CUPS_CSPACE_DEVICE3, + 51 => CUPS_CSPACE_DEVICE4, + 52 => CUPS_CSPACE_DEVICE5, + 53 => CUPS_CSPACE_DEVICE6, + 54 => CUPS_CSPACE_DEVICE7, + 55 => CUPS_CSPACE_DEVICE8, + 56 => CUPS_CSPACE_DEVICE9, + 57 => CUPS_CSPACE_DEVICEA, + 58 => CUPS_CSPACE_DEVICEB, + 59 => CUPS_CSPACE_DEVICEC, + 60 => CUPS_CSPACE_DEVICED, + 61 => CUPS_CSPACE_DEVICEE, + 62 => CUPS_CSPACE_DEVICEF, + _ => throw ArgumentError('Unknown value for cups_cspace_e: $value'), + }; +} + +enum cups_cut_e { + CUPS_CUT_NONE(0), + CUPS_CUT_FILE(1), + CUPS_CUT_JOB(2), + CUPS_CUT_SET(3), + CUPS_CUT_PAGE(4); + + final int value; + const cups_cut_e(this.value); + + static cups_cut_e fromValue(int value) => switch (value) { + 0 => CUPS_CUT_NONE, + 1 => CUPS_CUT_FILE, + 2 => CUPS_CUT_JOB, + 3 => CUPS_CUT_SET, + 4 => CUPS_CUT_PAGE, + _ => throw ArgumentError('Unknown value for cups_cut_e: $value'), + }; +} + +typedef cups_dest_cb_tFunction = + ffi.Int Function( + ffi.Pointer user_data, + ffi.UnsignedInt flags, + ffi.Pointer dest, + ); +typedef Dartcups_dest_cb_tFunction = + int Function( + ffi.Pointer user_data, + int flags, + ffi.Pointer dest, + ); + +final class cups_dest_s extends ffi.Struct { + external ffi.Pointer name; + + external ffi.Pointer instance; + + @ffi.Int() + external int is_default; + + @ffi.Int() + external int num_options; + + external ffi.Pointer options; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer name, + required ffi.Pointer instance, + required int is_default, + required int num_options, + required ffi.Pointer options, + }) => $allocator() + ..ref.name = name + ..ref.instance = instance + ..ref.is_default = is_default + ..ref.num_options = num_options + ..ref.options = options; +} + +enum cups_edge_e { + CUPS_EDGE_TOP(0), + CUPS_EDGE_RIGHT(1), + CUPS_EDGE_BOTTOM(2), + CUPS_EDGE_LEFT(3); + + final int value; + const cups_edge_e(this.value); + + static cups_edge_e fromValue(int value) => switch (value) { + 0 => CUPS_EDGE_TOP, + 1 => CUPS_EDGE_RIGHT, + 2 => CUPS_EDGE_BOTTOM, + 3 => CUPS_EDGE_LEFT, + _ => throw ArgumentError('Unknown value for cups_edge_e: $value'), + }; +} + +typedef cups_interpret_cb_tFunction = + ffi.Int Function( + ffi.Pointer header, + ffi.Int preferred_bits, + ); +typedef Dartcups_interpret_cb_tFunction = + int Function(ffi.Pointer header, int preferred_bits); + +enum cups_jog_e { + CUPS_JOG_NONE(0), + CUPS_JOG_FILE(1), + CUPS_JOG_JOB(2), + CUPS_JOG_SET(3); + + final int value; + const cups_jog_e(this.value); + + static cups_jog_e fromValue(int value) => switch (value) { + 0 => CUPS_JOG_NONE, + 1 => CUPS_JOG_FILE, + 2 => CUPS_JOG_JOB, + 3 => CUPS_JOG_SET, + _ => throw ArgumentError('Unknown value for cups_jog_e: $value'), + }; +} + +final class cups_option_s extends ffi.Struct { + external ffi.Pointer name; + + external ffi.Pointer value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer name, + required ffi.Pointer value, + }) => $allocator() + ..ref.name = name + ..ref.value = value; +} + +enum cups_order_e { + CUPS_ORDER_CHUNKED(0), + CUPS_ORDER_BANDED(1), + CUPS_ORDER_PLANAR(2); + + final int value; + const cups_order_e(this.value); + + static cups_order_e fromValue(int value) => switch (value) { + 0 => CUPS_ORDER_CHUNKED, + 1 => CUPS_ORDER_BANDED, + 2 => CUPS_ORDER_PLANAR, + _ => throw ArgumentError('Unknown value for cups_order_e: $value'), + }; +} + +enum cups_orient_e { + CUPS_ORIENT_0(0), + CUPS_ORIENT_90(1), + CUPS_ORIENT_180(2), + CUPS_ORIENT_270(3); + + final int value; + const cups_orient_e(this.value); + + static cups_orient_e fromValue(int value) => switch (value) { + 0 => CUPS_ORIENT_0, + 1 => CUPS_ORIENT_90, + 2 => CUPS_ORIENT_180, + 3 => CUPS_ORIENT_270, + _ => throw ArgumentError('Unknown value for cups_orient_e: $value'), + }; +} + +final class cups_page_header2_s extends ffi.Struct { + @ffi.Array.multi([64]) + external ffi.Array MediaClass; + + @ffi.Array.multi([64]) + external ffi.Array MediaColor; + + @ffi.Array.multi([64]) + external ffi.Array MediaType; + + @ffi.Array.multi([64]) + external ffi.Array OutputType; + + @ffi.UnsignedInt() + external int AdvanceDistance; + + @ffi.UnsignedInt() + external int AdvanceMediaAsInt; + + cups_adv_e get AdvanceMedia => cups_adv_e.fromValue(AdvanceMediaAsInt); + set AdvanceMedia(cups_adv_e value) => AdvanceMediaAsInt = value.value; + + @ffi.UnsignedInt() + external int CollateAsInt; + + cups_bool_e get Collate => cups_bool_e.fromValue(CollateAsInt); + set Collate(cups_bool_e value) => CollateAsInt = value.value; + + @ffi.UnsignedInt() + external int CutMediaAsInt; + + cups_cut_e get CutMedia => cups_cut_e.fromValue(CutMediaAsInt); + set CutMedia(cups_cut_e value) => CutMediaAsInt = value.value; + + @ffi.UnsignedInt() + external int DuplexAsInt; + + cups_bool_e get Duplex => cups_bool_e.fromValue(DuplexAsInt); + set Duplex(cups_bool_e value) => DuplexAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array HWResolution; + + @ffi.Array.multi([4]) + external ffi.Array ImagingBoundingBox; + + @ffi.UnsignedInt() + external int InsertSheetAsInt; + + cups_bool_e get InsertSheet => cups_bool_e.fromValue(InsertSheetAsInt); + set InsertSheet(cups_bool_e value) => InsertSheetAsInt = value.value; + + @ffi.UnsignedInt() + external int JogAsInt; + + cups_jog_e get Jog => cups_jog_e.fromValue(JogAsInt); + set Jog(cups_jog_e value) => JogAsInt = value.value; + + @ffi.UnsignedInt() + external int LeadingEdgeAsInt; + + cups_edge_e get LeadingEdge => cups_edge_e.fromValue(LeadingEdgeAsInt); + set LeadingEdge(cups_edge_e value) => LeadingEdgeAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array Margins; + + @ffi.UnsignedInt() + external int ManualFeedAsInt; + + cups_bool_e get ManualFeed => cups_bool_e.fromValue(ManualFeedAsInt); + set ManualFeed(cups_bool_e value) => ManualFeedAsInt = value.value; + + @ffi.UnsignedInt() + external int MediaPosition; + + @ffi.UnsignedInt() + external int MediaWeight; + + @ffi.UnsignedInt() + external int MirrorPrintAsInt; + + cups_bool_e get MirrorPrint => cups_bool_e.fromValue(MirrorPrintAsInt); + set MirrorPrint(cups_bool_e value) => MirrorPrintAsInt = value.value; + + @ffi.UnsignedInt() + external int NegativePrintAsInt; + + cups_bool_e get NegativePrint => cups_bool_e.fromValue(NegativePrintAsInt); + set NegativePrint(cups_bool_e value) => NegativePrintAsInt = value.value; + + @ffi.UnsignedInt() + external int NumCopies; + + @ffi.UnsignedInt() + external int OrientationAsInt; + + cups_orient_e get Orientation => cups_orient_e.fromValue(OrientationAsInt); + set Orientation(cups_orient_e value) => OrientationAsInt = value.value; + + @ffi.UnsignedInt() + external int OutputFaceUpAsInt; + + cups_bool_e get OutputFaceUp => cups_bool_e.fromValue(OutputFaceUpAsInt); + set OutputFaceUp(cups_bool_e value) => OutputFaceUpAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array PageSize; + + @ffi.UnsignedInt() + external int SeparationsAsInt; + + cups_bool_e get Separations => cups_bool_e.fromValue(SeparationsAsInt); + set Separations(cups_bool_e value) => SeparationsAsInt = value.value; + + @ffi.UnsignedInt() + external int TraySwitchAsInt; + + cups_bool_e get TraySwitch => cups_bool_e.fromValue(TraySwitchAsInt); + set TraySwitch(cups_bool_e value) => TraySwitchAsInt = value.value; + + @ffi.UnsignedInt() + external int TumbleAsInt; + + cups_bool_e get Tumble => cups_bool_e.fromValue(TumbleAsInt); + set Tumble(cups_bool_e value) => TumbleAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsWidth; + + @ffi.UnsignedInt() + external int cupsHeight; + + @ffi.UnsignedInt() + external int cupsMediaType; + + @ffi.UnsignedInt() + external int cupsBitsPerColor; + + @ffi.UnsignedInt() + external int cupsBitsPerPixel; + + @ffi.UnsignedInt() + external int cupsBytesPerLine; + + @ffi.UnsignedInt() + external int cupsColorOrderAsInt; + + cups_order_e get cupsColorOrder => + cups_order_e.fromValue(cupsColorOrderAsInt); + set cupsColorOrder(cups_order_e value) => cupsColorOrderAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsColorSpaceAsInt; + + cups_cspace_e get cupsColorSpace => + cups_cspace_e.fromValue(cupsColorSpaceAsInt); + set cupsColorSpace(cups_cspace_e value) => cupsColorSpaceAsInt = value.value; + + @ffi.UnsignedInt() + external int cupsCompression; + + @ffi.UnsignedInt() + external int cupsRowCount; + + @ffi.UnsignedInt() + external int cupsRowFeed; + + @ffi.UnsignedInt() + external int cupsRowStep; + + @ffi.UnsignedInt() + external int cupsNumColors; + + @ffi.Float() + external double cupsBorderlessScalingFactor; + + @ffi.Array.multi([2]) + external ffi.Array cupsPageSize; + + @ffi.Array.multi([4]) + external ffi.Array cupsImagingBBox; + + @ffi.Array.multi([16]) + external ffi.Array cupsInteger; + + @ffi.Array.multi([16]) + external ffi.Array cupsReal; + + @ffi.Array.multi([16, 64]) + external ffi.Array> cupsString; + + @ffi.Array.multi([64]) + external ffi.Array cupsMarkerType; + + @ffi.Array.multi([64]) + external ffi.Array cupsRenderingIntent; + + @ffi.Array.multi([64]) + external ffi.Array cupsPageSizeName; +} + +typedef cups_password_cb2_tFunction = + ffi.Pointer Function( + ffi.Pointer prompt, + ffi.Pointer<_http_s> http, + ffi.Pointer method, + ffi.Pointer resource, + ffi.Pointer user_data, + ); +typedef cups_password_cb_tFunction = + ffi.Pointer Function(ffi.Pointer prompt); +typedef cups_raster_iocb_tFunction = + ffi.Long Function( + ffi.Pointer ctx, + ffi.Pointer buffer, + ffi.Size length, + ); +typedef Dartcups_raster_iocb_tFunction = + int Function( + ffi.Pointer ctx, + ffi.Pointer buffer, + int length, + ); +typedef cups_server_cert_cb_tFunction = + ffi.Int Function( + ffi.Pointer<_http_s> http, + ffi.Pointer tls, + ffi.Pointer<_cups_array_s> certs, + ffi.Pointer user_data, + ); +typedef Dartcups_server_cert_cb_tFunction = + int Function( + ffi.Pointer<_http_s> http, + ffi.Pointer tls, + ffi.Pointer<_cups_array_s> certs, + ffi.Pointer user_data, + ); +typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); +typedef http_timeout_cb_tFunction = + ffi.Int Function( + ffi.Pointer<_http_s> http, + ffi.Pointer user_data, + ); +typedef Darthttp_timeout_cb_tFunction = + int Function(ffi.Pointer<_http_s> http, ffi.Pointer user_data); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef ipp_copycb_tFunction = + ffi.Int Function( + ffi.Pointer context, + ffi.Pointer<_ipp_s> dst, + ffi.Pointer<_ipp_attribute_s> attr, + ); +typedef Dartipp_copycb_tFunction = + int Function( + ffi.Pointer context, + ffi.Pointer<_ipp_s> dst, + ffi.Pointer<_ipp_attribute_s> attr, + ); +typedef ipp_iocb_tFunction = + ffi.Long Function( + ffi.Pointer context, + ffi.Pointer buffer, + ffi.Size bytes, + ); +typedef Dartipp_iocb_tFunction = + int Function( + ffi.Pointer context, + ffi.Pointer buffer, + int bytes, + ); +typedef launch_data_dict_iterator_tFunction = + ffi.Void Function( + ffi.Pointer<_launch_data> lval, + ffi.Pointer key, + ffi.Pointer ctx, + ); +typedef Dartlaunch_data_dict_iterator_tFunction = + void Function( + ffi.Pointer<_launch_data> lval, + ffi.Pointer key, + ffi.Pointer ctx, + ); +typedef mach_error_fn_tFunction = ffi.Int Function(); +typedef Dartmach_error_fn_tFunction = int Function(); + +final class mach_msg_header_t extends ffi.Struct { + @ffi.UnsignedInt() + external int msgh_bits; + + @ffi.UnsignedInt() + external int msgh_size; + + @ffi.UnsignedInt() + external int msgh_remote_port; + + @ffi.UnsignedInt() + external int msgh_local_port; + + @ffi.UnsignedInt() + external int msgh_voucher_port; + + @ffi.Int() + external int msgh_id; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_bits, + required int msgh_size, + required int msgh_remote_port, + required int msgh_local_port, + required int msgh_voucher_port, + required int msgh_id, + }) => $allocator() + ..ref.msgh_bits = msgh_bits + ..ref.msgh_size = msgh_size + ..ref.msgh_remote_port = msgh_remote_port + ..ref.msgh_local_port = msgh_local_port + ..ref.msgh_voucher_port = msgh_voucher_port + ..ref.msgh_id = msgh_id; +} + +typedef mig_impl_routine_tFunction = ffi.Int Function(); +typedef Dartmig_impl_routine_tFunction = int Function(); +typedef mig_server_routine_tFunction = + ffi.Pointer> Function( + ffi.Pointer InHeadP, + ); +typedef mig_stub_routine_tFunction = + ffi.Void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ); +typedef Dartmig_stub_routine_tFunction = + void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ); +typedef os_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartos_function_tFunction = void Function(ffi.Pointer); +typedef os_workgroup_working_arena_destructor_tFunction = + ffi.Void Function(ffi.Pointer); +typedef Dartos_workgroup_working_arena_destructor_tFunction = + void Function(ffi.Pointer); +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); +typedef xpc_connection_handler_tFunction = + ffi.Void Function(ffi.Pointer connection); +typedef Dartxpc_connection_handler_tFunction = + void Function(objc.NSObject connection); +typedef xpc_finalizer_tFunction = + ffi.Void Function(ffi.Pointer value); +typedef Dartxpc_finalizer_tFunction = + void Function(ffi.Pointer value); diff --git a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart index 41ff128938..ac54ae219b 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart @@ -116,6 +116,84 @@ StaticFuncTestObj staticFuncReturnsRetainedArg(StaticFuncTestObj a) { ); } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -203,6 +281,11 @@ extension ObjCBlock_Int32_Int32$CallExtension } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + /// StaticFuncTestObj extension type StaticFuncTestObj._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -400,3 +483,5 @@ late final _sel_new = objc.registerName("new"); late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart index a4ea0b3383..56b3649aeb 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart @@ -197,6 +197,84 @@ class StaticFuncTestObjCLibrary { >(); } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); + /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -284,6 +362,11 @@ extension ObjCBlock_Int32_Int32$CallExtension } } +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + /// StaticFuncTestObj extension type StaticFuncTestObj._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -481,3 +564,5 @@ late final _sel_new = objc.registerName("new"); late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart index 94a21fdc76..958a342437 100644 --- a/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart @@ -10,6 +10,87 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); /// StringUtil extension type StringUtil._(objc.ObjCObject object$) @@ -182,3 +263,5 @@ late final _sel_new = objc.registerName("new"); late final _sel_strConcat_with_ = objc.registerName("strConcat:with:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart index eb4465ca4e..ba9c3f2806 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart @@ -18,6 +18,1461 @@ external int _pyqkbm_protocolTrampoline_fai2e9( ffi.Pointer arg0, ); +typedef AECoerceDescProcPtrFunction = + ffi.Short Function( + ffi.Pointer fromDesc, + ffi.UnsignedInt toType, + ffi.Pointer handlerRefcon, + ffi.Pointer toDesc, + ); +typedef DartAECoerceDescProcPtrFunction = + int Function( + ffi.Pointer fromDesc, + int toType, + ffi.Pointer handlerRefcon, + ffi.Pointer toDesc, + ); +typedef AECoercePtrProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt typeCode, + ffi.Pointer dataPtr, + ffi.Long dataSize, + ffi.UnsignedInt toType, + ffi.Pointer handlerRefcon, + ffi.Pointer result, + ); +typedef DartAECoercePtrProcPtrFunction = + int Function( + int typeCode, + ffi.Pointer dataPtr, + int dataSize, + int toType, + ffi.Pointer handlerRefcon, + ffi.Pointer result, + ); +typedef AEDisposeExternalProcPtrFunction = + ffi.Void Function( + ffi.Pointer dataPtr, + ffi.Long dataLength, + ffi.Pointer refcon, + ); +typedef DartAEDisposeExternalProcPtrFunction = + void Function( + ffi.Pointer dataPtr, + int dataLength, + ffi.Pointer refcon, + ); +typedef AEEventHandlerProcPtrFunction = + ffi.Short Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + ffi.Pointer handlerRefcon, + ); +typedef DartAEEventHandlerProcPtrFunction = + int Function( + ffi.Pointer theAppleEvent, + ffi.Pointer reply, + ffi.Pointer handlerRefcon, + ); + +final class AERemoteProcessResolver extends ffi.Opaque {} + +typedef AERemoteProcessResolverCallbackFunction = + ffi.Void Function( + ffi.Pointer ref, + ffi.Pointer info, + ); +typedef DartAERemoteProcessResolverCallbackFunction = + void Function( + ffi.Pointer ref, + ffi.Pointer info, + ); +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFArrayApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFArrayApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFArrayCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFArrayEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFArrayEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFArrayReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFArrayReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFArrayRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBagApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFBagApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFBagCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFBagEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFBagEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFBagHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFBagHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFBagReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFBagReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBagRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFBinaryHeapApplierFunctionFunction = + ffi.Void Function(ffi.Pointer val, ffi.Pointer context); +typedef DartCFBinaryHeapApplierFunctionFunction = + void Function(ffi.Pointer val, ffi.Pointer context); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef CFDictionaryApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFDictionaryApplierFunctionFunction = + void Function( + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer context, + ); +typedef CFDictionaryCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFDictionaryEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFDictionaryEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFDictionaryHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFDictionaryHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFDictionaryReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFDictionaryReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFDictionaryRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFFileDescriptorCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFFileDescriptor> f, + ffi.UnsignedLong callBackTypes, + ffi.Pointer info, + ); +typedef DartCFFileDescriptorCallBackFunction = + void Function( + ffi.Pointer<__CFFileDescriptor> f, + int callBackTypes, + ffi.Pointer info, + ); +typedef CFHostClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFHost> theHost, + ffi.UnsignedInt typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFHostClientCallBackFunction = + void Function( + ffi.Pointer<__CFHost> theHost, + CFHostInfoType typeInfo, + ffi.Pointer error, + ffi.Pointer info, + ); + +enum CFHostInfoType { + kCFHostAddresses(0), + kCFHostNames(1), + kCFHostReachability(2); + + final int value; + const CFHostInfoType(this.value); + + static CFHostInfoType fromValue(int value) => switch (value) { + 0 => kCFHostAddresses, + 1 => kCFHostNames, + 2 => kCFHostReachability, + _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), + }; +} + +typedef CFMachPortCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer msg, + ffi.Long size, + ffi.Pointer info, + ); +typedef DartCFMachPortCallBackFunction = + void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer msg, + int size, + ffi.Pointer info, + ); +typedef CFMachPortInvalidationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMachPort> port, + ffi.Pointer info, + ); +typedef DartCFMachPortInvalidationCallBackFunction = + void Function(ffi.Pointer<__CFMachPort> port, ffi.Pointer info); +typedef CFMessagePortCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFMessagePort> local, + ffi.Int msgid, + ffi.Pointer<__CFData> data, + ffi.Pointer info, + ); +typedef DartCFMessagePortCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFMessagePort> local, + int msgid, + ffi.Pointer<__CFData> data, + ffi.Pointer info, + ); +typedef CFMessagePortInvalidationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFMessagePort> ms, + ffi.Pointer info, + ); +typedef DartCFMessagePortInvalidationCallBackFunction = + void Function(ffi.Pointer<__CFMessagePort> ms, ffi.Pointer info); +typedef CFNetServiceBrowserClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetServiceBrowser> browser, + ffi.UnsignedLong flags, + ffi.Pointer domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceBrowserClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetServiceBrowser> browser, + int flags, + ffi.Pointer domainOrService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef CFNetServiceClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetService> theService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetService> theService, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef CFNetServiceMonitorClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFNetServiceMonitor> theMonitor, + ffi.Pointer<__CFNetService> theService, + ffi.UnsignedInt typeInfo, + ffi.Pointer<__CFData> rdata, + ffi.Pointer error, + ffi.Pointer info, + ); +typedef DartCFNetServiceMonitorClientCallBackFunction = + void Function( + ffi.Pointer<__CFNetServiceMonitor> theMonitor, + ffi.Pointer<__CFNetService> theService, + CFNetServiceMonitorType typeInfo, + ffi.Pointer<__CFData> rdata, + ffi.Pointer error, + ffi.Pointer info, + ); + +enum CFNetServiceMonitorType { + kCFNetServiceMonitorTXT(1); + + final int value; + const CFNetServiceMonitorType(this.value); + + static CFNetServiceMonitorType fromValue(int value) => switch (value) { + 1 => kCFNetServiceMonitorTXT, + _ => throw ArgumentError( + 'Unknown value for CFNetServiceMonitorType: $value', + ), + }; +} + +typedef CFNotificationCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CFNotificationCenter> center, + ffi.Pointer observer, + ffi.Pointer name, + ffi.Pointer object, + ffi.Pointer<__CFDictionary> userInfo, + ); +typedef DartCFNotificationCallbackFunction = + void Function( + ffi.Pointer<__CFNotificationCenter> center, + ffi.Pointer observer, + ffi.Pointer name, + ffi.Pointer object, + ffi.Pointer<__CFDictionary> userInfo, + ); +typedef CFPlugInDynamicRegisterFunctionFunction = + ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); +typedef DartCFPlugInDynamicRegisterFunctionFunction = + void Function(ffi.Pointer<__CFBundle> plugIn); +typedef CFPlugInFactoryFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer<__CFUUID> typeUUID, + ); +typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = + ffi.Void Function(ffi.Pointer instanceData); +typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = + void Function(ffi.Pointer instanceData); +typedef CFPlugInInstanceGetInterfaceFunctionFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__CFPlugInInstance> instance, + ffi.Pointer interfaceName, + ffi.Pointer> ftbl, + ); +typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = + int Function( + ffi.Pointer<__CFPlugInInstance> instance, + ffi.Pointer interfaceName, + ffi.Pointer> ftbl, + ); +typedef CFPlugInUnloadFunctionFunction = + ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); +typedef DartCFPlugInUnloadFunctionFunction = + void Function(ffi.Pointer<__CFBundle> plugIn); +typedef CFProxyAutoConfigurationResultCallbackFunction = + ffi.Void Function( + ffi.Pointer client, + ffi.Pointer<__CFArray> proxyList, + ffi.Pointer<__CFError> error, + ); +typedef DartCFProxyAutoConfigurationResultCallbackFunction = + void Function( + ffi.Pointer client, + ffi.Pointer<__CFArray> proxyList, + ffi.Pointer<__CFError> error, + ); +typedef CFReadStreamClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFReadStream> stream, + ffi.UnsignedLong type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFReadStreamClientCallBackFunction = + void Function( + ffi.Pointer<__CFReadStream> stream, + int type, + ffi.Pointer clientCallBackInfo, + ); + +sealed class CFRunLoopActivity { + static const kCFRunLoopEntry = 1; + static const kCFRunLoopBeforeTimers = 2; + static const kCFRunLoopBeforeSources = 4; + static const kCFRunLoopBeforeWaiting = 32; + static const kCFRunLoopAfterWaiting = 64; + static const kCFRunLoopExit = 128; + static const kCFRunLoopAllActivities = 268435455; +} + +typedef CFRunLoopObserverCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFRunLoopObserver> observer, + ffi.UnsignedLong activity, + ffi.Pointer info, + ); +typedef DartCFRunLoopObserverCallBackFunction = + void Function( + ffi.Pointer<__CFRunLoopObserver> observer, + int activity, + ffi.Pointer info, + ); +typedef CFRunLoopTimerCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFRunLoopTimer> timer, + ffi.Pointer info, + ); +typedef DartCFRunLoopTimerCallBackFunction = + void Function( + ffi.Pointer<__CFRunLoopTimer> timer, + ffi.Pointer info, + ); +typedef CFSetApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFSetApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFSetCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer value); +typedef CFSetEqualCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer value1, + ffi.Pointer value2, + ); +typedef DartCFSetEqualCallBackFunction = + int Function(ffi.Pointer value1, ffi.Pointer value2); +typedef CFSetHashCallBackFunction = + ffi.UnsignedLong Function(ffi.Pointer value); +typedef DartCFSetHashCallBackFunction = + int Function(ffi.Pointer value); +typedef CFSetReleaseCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef DartCFSetReleaseCallBackFunction = + void Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFSetRetainCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFAllocator> allocator, + ffi.Pointer value, + ); +typedef CFSocketCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFSocket> s, + ffi.UnsignedLong type, + ffi.Pointer<__CFData> address, + ffi.Pointer data, + ffi.Pointer info, + ); +typedef DartCFSocketCallBackFunction = + void Function( + ffi.Pointer<__CFSocket> s, + int type, + ffi.Pointer<__CFData> address, + ffi.Pointer data, + ffi.Pointer info, + ); + +sealed class CFSocketCallBackType { + static const kCFSocketNoCallBack = 0; + static const kCFSocketReadCallBack = 1; + static const kCFSocketAcceptCallBack = 2; + static const kCFSocketDataCallBack = 3; + static const kCFSocketConnectCallBack = 4; + static const kCFSocketWriteCallBack = 8; +} + +final class CFStreamError extends ffi.Struct { + @ffi.Long() + external int domain; + + @ffi.Int() + external int error; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int domain, + required int error, + }) => $allocator() + ..ref.domain = domain + ..ref.error = error; +} + +sealed class CFStreamEventType { + static const kCFStreamEventNone = 0; + static const kCFStreamEventOpenCompleted = 1; + static const kCFStreamEventHasBytesAvailable = 2; + static const kCFStreamEventCanAcceptBytes = 4; + static const kCFStreamEventErrorOccurred = 8; + static const kCFStreamEventEndEncountered = 16; +} + +typedef CFTreeApplierFunctionFunction = + ffi.Void Function( + ffi.Pointer value, + ffi.Pointer context, + ); +typedef DartCFTreeApplierFunctionFunction = + void Function(ffi.Pointer value, ffi.Pointer context); +typedef CFTreeCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFTreeReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFTreeReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFTreeRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFUserNotificationCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFUserNotification> userNotification, + ffi.UnsignedLong responseFlags, + ); +typedef DartCFUserNotificationCallBackFunction = + void Function( + ffi.Pointer<__CFUserNotification> userNotification, + int responseFlags, + ); +typedef CFWriteStreamClientCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFWriteStream> stream, + ffi.UnsignedLong type, + ffi.Pointer clientCallBackInfo, + ); +typedef DartCFWriteStreamClientCallBackFunction = + void Function( + ffi.Pointer<__CFWriteStream> stream, + int type, + ffi.Pointer clientCallBackInfo, + ); + +final class CFXMLExternalID extends ffi.Struct { + external ffi.Pointer<__CFURL> systemID; + + external ffi.Pointer publicID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer<__CFURL> systemID, + required ffi.Pointer publicID, + }) => $allocator() + ..ref.systemID = systemID + ..ref.publicID = publicID; +} + +typedef CFXMLParserAddChildCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, + ); +typedef DartCFXMLParserAddChildCallBackFunction = + void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer parent, + ffi.Pointer child, + ffi.Pointer info, + ); +typedef CFXMLParserCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFXMLParserCreateXMLStructureCallBackFunction = + ffi.Pointer Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer<__CFXMLNode> nodeDesc, + ffi.Pointer info, + ); +typedef CFXMLParserEndXMLStructureCallBackFunction = + ffi.Void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ); +typedef DartCFXMLParserEndXMLStructureCallBackFunction = + void Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer xmlType, + ffi.Pointer info, + ); +typedef CFXMLParserHandleErrorCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Long error, + ffi.Pointer info, + ); +typedef DartCFXMLParserHandleErrorCallBackFunction = + int Function( + ffi.Pointer<__CFXMLParser> parser, + int error, + ffi.Pointer info, + ); +typedef CFXMLParserReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFXMLParserReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFXMLParserResolveExternalEntityCallBackFunction = + ffi.Pointer<__CFData> Function( + ffi.Pointer<__CFXMLParser> parser, + ffi.Pointer extID, + ffi.Pointer info, + ); +typedef CFXMLParserRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); + +sealed class CFXMLParserStatusCode { + static const kCFXMLStatusParseNotBegun = -2; + static const kCFXMLStatusParseInProgress = -1; + static const kCFXMLStatusParseSuccessful = 0; + static const kCFXMLErrorUnexpectedEOF = 1; + static const kCFXMLErrorUnknownEncoding = 2; + static const kCFXMLErrorEncodingConversionFailure = 3; + static const kCFXMLErrorMalformedProcessingInstruction = 4; + static const kCFXMLErrorMalformedDTD = 5; + static const kCFXMLErrorMalformedName = 6; + static const kCFXMLErrorMalformedCDSect = 7; + static const kCFXMLErrorMalformedCloseTag = 8; + static const kCFXMLErrorMalformedStartTag = 9; + static const kCFXMLErrorMalformedDocument = 10; + static const kCFXMLErrorElementlessDocument = 11; + static const kCFXMLErrorMalformedComment = 12; + static const kCFXMLErrorMalformedCharacterReference = 13; + static const kCFXMLErrorMalformedParsedCharacterData = 14; + static const kCFXMLErrorNoData = 15; +} + +typedef CSIdentityQueryReceiveEventCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CSIdentityQuery> query, + ffi.Long event, + ffi.Pointer<__CFArray> identities, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef DartCSIdentityQueryReceiveEventCallbackFunction = + void Function( + ffi.Pointer<__CSIdentityQuery> query, + int event, + ffi.Pointer<__CFArray> identities, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef CSIdentityStatusUpdatedCallbackFunction = + ffi.Void Function( + ffi.Pointer<__CSIdentity> identity, + ffi.Long status, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef DartCSIdentityStatusUpdatedCallbackFunction = + void Function( + ffi.Pointer<__CSIdentity> identity, + int status, + ffi.Pointer<__CFError> error, + ffi.Pointer info, + ); +typedef CSSM_ACL_SUBJECT_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer SubjectRequest, + ffi.Pointer SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = + int Function( + ffi.Pointer SubjectRequest, + ffi.Pointer SubjectResponse, + ffi.Pointer CallerContext, + ffi.Pointer MemFuncs, + ); +typedef CSSM_API_ModuleEventHandlerFunction = + ffi.Int32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + ffi.Uint32 SubserviceId, + ffi.Uint32 ServiceType, + ffi.Uint32 EventType, + ); +typedef DartCSSM_API_ModuleEventHandlerFunction = + int Function( + ffi.Pointer ModuleGuid, + ffi.Pointer AppNotifyCallbackCtx, + int SubserviceId, + int ServiceType, + int EventType, + ); +typedef CSSM_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer OutData, + ffi.Pointer CallerCtx, + ); +typedef DartCSSM_CALLBACKFunction = + int Function( + ffi.Pointer OutData, + ffi.Pointer CallerCtx, + ); +typedef CSSM_CALLOCFunction = + ffi.Pointer Function( + ffi.Uint32 num, + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_CALLOCFunction = + ffi.Pointer Function( + int num, + int size, + ffi.Pointer allocref, + ); +typedef CSSM_CHALLENGE_CALLBACKFunction = + ffi.Int32 Function( + ffi.Pointer Challenge, + ffi.Pointer Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ); +typedef DartCSSM_CHALLENGE_CALLBACKFunction = + int Function( + ffi.Pointer Challenge, + ffi.Pointer Response, + ffi.Pointer CallerCtx, + ffi.Pointer MemFuncs, + ); +typedef CSSM_FREEFunction = + ffi.Void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef DartCSSM_FREEFunction = + void Function( + ffi.Pointer memblock, + ffi.Pointer allocref, + ); +typedef CSSM_MALLOCFunction = + ffi.Pointer Function( + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_MALLOCFunction = + ffi.Pointer Function(int size, ffi.Pointer allocref); +typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); +typedef DartCSSM_PROC_ADDRFunction = void Function(); +typedef CSSM_REALLOCFunction = + ffi.Pointer Function( + ffi.Pointer memblock, + ffi.Size size, + ffi.Pointer allocref, + ); +typedef DartCSSM_REALLOCFunction = + ffi.Pointer Function( + ffi.Pointer memblock, + int size, + ffi.Pointer allocref, + ); +typedef CSSM_SPI_ModuleEventHandlerFunction = + ffi.Int32 Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + ffi.Uint32 SubserviceId, + ffi.Uint32 ServiceType, + ffi.Uint32 EventType, + ); +typedef DartCSSM_SPI_ModuleEventHandlerFunction = + int Function( + ffi.Pointer ModuleGuid, + ffi.Pointer CssmNotifyCallbackCtx, + int SubserviceId, + int ServiceType, + int EventType, + ); +typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = + ffi.Int32 Function( + ffi.IntPtr ModuleHandle, + ffi.Pointer CallerCtx, + ffi.Pointer VerifiedCert, + ); +typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = + int Function( + int ModuleHandle, + ffi.Pointer CallerCtx, + ffi.Pointer VerifiedCert, + ); +typedef CSSM_UPCALLS_CALLOCFunction = + ffi.Pointer Function( + ffi.IntPtr AddInHandle, + ffi.Size num, + ffi.Size size, + ); +typedef DartCSSM_UPCALLS_CALLOCFunction = + ffi.Pointer Function(int AddInHandle, int num, int size); +typedef CSSM_UPCALLS_FREEFunction = + ffi.Void Function(ffi.IntPtr AddInHandle, ffi.Pointer memblock); +typedef DartCSSM_UPCALLS_FREEFunction = + void Function(int AddInHandle, ffi.Pointer memblock); +typedef CSSM_UPCALLS_MALLOCFunction = + ffi.Pointer Function(ffi.IntPtr AddInHandle, ffi.Size size); +typedef DartCSSM_UPCALLS_MALLOCFunction = + ffi.Pointer Function(int AddInHandle, int size); +typedef CSSM_UPCALLS_REALLOCFunction = + ffi.Pointer Function( + ffi.IntPtr AddInHandle, + ffi.Pointer memblock, + ffi.Size size, + ); +typedef DartCSSM_UPCALLS_REALLOCFunction = + ffi.Pointer Function( + int AddInHandle, + ffi.Pointer memblock, + int size, + ); +typedef CollectionExceptionProcPtrFunction = + ffi.Short Function(ffi.Pointer c, ffi.Short status); +typedef DartCollectionExceptionProcPtrFunction = + int Function(ffi.Pointer c, int status); +typedef CollectionFlattenProcPtrFunction = + ffi.Short Function( + ffi.Int size, + ffi.Pointer data, + ffi.Pointer refCon, + ); +typedef DartCollectionFlattenProcPtrFunction = + int Function( + int size, + ffi.Pointer data, + ffi.Pointer refCon, + ); + +@ffi.Packed(2) +final class ComponentMPWorkFunctionHeaderRecord extends ffi.Struct { + @ffi.UnsignedInt() + external int headerSize; + + @ffi.UnsignedInt() + external int recordSize; + + @ffi.UnsignedInt() + external int workFlags; + + @ffi.UnsignedShort() + external int processorCount; + + @ffi.UnsignedChar() + external int unused; + + @ffi.UnsignedChar() + external int isRunning; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int headerSize, + required int recordSize, + required int workFlags, + required int processorCount, + required int unused, + required int isRunning, + }) => $allocator() + ..ref.headerSize = headerSize + ..ref.recordSize = recordSize + ..ref.workFlags = workFlags + ..ref.processorCount = processorCount + ..ref.unused = unused + ..ref.isRunning = isRunning; +} + +typedef ComponentMPWorkFunctionProcPtrFunction = + ffi.Int Function( + ffi.Pointer globalRefCon, + ffi.Pointer header, + ); +typedef DartComponentMPWorkFunctionProcPtrFunction = + int Function( + ffi.Pointer globalRefCon, + ffi.Pointer header, + ); + +@ffi.Packed(2) +final class ComponentParameters extends ffi.Struct { + @ffi.UnsignedChar() + external int flags; + + @ffi.UnsignedChar() + external int paramSize; + + @ffi.Short() + external int what; + + @ffi.UnsignedInt() + external int padding; + + @ffi.Array.multi([1]) + external ffi.Array params; +} + +@ffi.Packed(2) +final class ComponentRecord extends ffi.Struct { + @ffi.Array.multi([1]) + external ffi.Array data; +} + +typedef ComponentRoutineProcPtrFunction = + ffi.Int Function( + ffi.Pointer cp, + ffi.Pointer> componentStorage, + ); +typedef DartComponentRoutineProcPtrFunction = + int Function( + ffi.Pointer cp, + ffi.Pointer> componentStorage, + ); +typedef CoreEndianFlipProcFunction = + ffi.Int Function( + ffi.UnsignedInt dataDomain, + ffi.UnsignedInt dataType, + ffi.Short id, + ffi.Pointer dataPtr, + ffi.UnsignedLong dataSize, + ffi.UnsignedChar currentlyNative, + ffi.Pointer refcon, + ); +typedef DartCoreEndianFlipProcFunction = + int Function( + int dataDomain, + int dataType, + int id, + ffi.Pointer dataPtr, + int dataSize, + int currentlyNative, + ffi.Pointer refcon, + ); +typedef DebugAssertOutputHandlerProcPtrFunction = + ffi.Void Function( + ffi.UnsignedInt componentSignature, + ffi.UnsignedInt options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + ffi.Long lineNumber, + ffi.Pointer value, + ffi.Pointer outputMsg, + ); +typedef DartDebugAssertOutputHandlerProcPtrFunction = + void Function( + int componentSignature, + int options, + ffi.Pointer assertionString, + ffi.Pointer exceptionLabelString, + ffi.Pointer errorString, + ffi.Pointer fileName, + int lineNumber, + ffi.Pointer value, + ffi.Pointer outputMsg, + ); +typedef DebugComponentCallbackProcPtrFunction = + ffi.Void Function( + ffi.Int optionSelectorNum, + ffi.UnsignedInt command, + ffi.Pointer optionSetting, + ); +typedef DartDebugComponentCallbackProcPtrFunction = + void Function( + int optionSelectorNum, + int command, + ffi.Pointer optionSetting, + ); +typedef DebuggerDisposeThreadProcPtrFunction = + ffi.Void Function(ffi.UnsignedLong threadDeleted); +typedef DartDebuggerDisposeThreadProcPtrFunction = + void Function(int threadDeleted); +typedef DebuggerNewThreadProcPtrFunction = + ffi.Void Function(ffi.UnsignedLong threadCreated); +typedef DartDebuggerNewThreadProcPtrFunction = void Function(int threadCreated); +typedef DebuggerThreadSchedulerProcPtrFunction = + ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); +typedef DartDebuggerThreadSchedulerProcPtrFunction = + int Function(ffi.Pointer schedulerInfo); +typedef DeferredTaskProcPtrFunction = ffi.Void Function(ffi.Long dtParam); +typedef DartDeferredTaskProcPtrFunction = void Function(int dtParam); +typedef ExceptionHandlerProcPtrFunction = + ffi.Int Function(ffi.Pointer theException); +typedef DartExceptionHandlerProcPtrFunction = + int Function(ffi.Pointer theException); + +final class ExceptionInfo extends ffi.Union { + external ffi.Pointer memoryInfo; +} + +final class ExceptionInformation extends ffi.Struct { + @ffi.UnsignedLong() + external int theKind; + + external ffi.Pointer machineState; + + external ffi.Pointer registerImage; + + external ffi.Pointer FPUImage; + + external ExceptionInfo info; + + external ffi.Pointer vectorImage; +} + +typedef FNSubscriptionProcPtrFunction = + ffi.Void Function( + ffi.UnsignedInt message, + ffi.UnsignedInt flags, + ffi.Pointer refcon, + ffi.Pointer subscription, + ); +typedef DartFNSubscriptionProcPtrFunction = + void Function( + int message, + int flags, + ffi.Pointer refcon, + ffi.Pointer subscription, + ); + +final class FPUInformation extends ffi.Struct { + external ffi.Pointer __unusedFPUInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedFPUInformationField, + }) => + $allocator() + ..ref.__unusedFPUInformationField = $unusedFPUInformationField; +} + +typedef FSAliasFilterProcPtrFunction = + ffi.UnsignedChar Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + ffi.Pointer myDataPtr, + ); +typedef DartFSAliasFilterProcPtrFunction = + int Function( + ffi.Pointer ref, + ffi.Pointer quitFlag, + ffi.Pointer myDataPtr, + ); +typedef FSEventStreamCallbackFunction = + ffi.Void Function( + ffi.Pointer<__FSEventStream> streamRef, + ffi.Pointer clientCallBackInfo, + ffi.Size numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ); +typedef DartFSEventStreamCallbackFunction = + void Function( + ffi.Pointer<__FSEventStream> streamRef, + ffi.Pointer clientCallBackInfo, + int numEvents, + ffi.Pointer eventPaths, + ffi.Pointer eventFlags, + ffi.Pointer eventIds, + ); +typedef FSFileOperationStatusProcPtrFunction = + ffi.Void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + ffi.UnsignedInt stage, + ffi.Int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef DartFSFileOperationStatusProcPtrFunction = + void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + int stage, + int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef FSPathFileOperationStatusProcPtrFunction = + ffi.Void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + ffi.UnsignedInt stage, + ffi.Int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); +typedef DartFSPathFileOperationStatusProcPtrFunction = + void Function( + ffi.Pointer<__FSFileOperation> fileOp, + ffi.Pointer currentItem, + int stage, + int error, + ffi.Pointer<__CFDictionary> statusDictionary, + ffi.Pointer info, + ); + +final class FSRef extends ffi.Struct { + @ffi.Array.multi([80]) + external ffi.Array hidden; +} + +typedef FSVolumeEjectProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short volumeRefNum, + ffi.Int dissenter, + ); +typedef DartFSVolumeEjectProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + ); +typedef FSVolumeMountProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short mountedVolumeRefNum, + ); +typedef DartFSVolumeMountProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int mountedVolumeRefNum, + ); +typedef FSVolumeUnmountProcPtrFunction = + ffi.Void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + ffi.Int err, + ffi.Short volumeRefNum, + ffi.Int dissenter, + ); +typedef DartFSVolumeUnmountProcPtrFunction = + void Function( + ffi.Pointer volumeOp, + ffi.Pointer clientData, + int err, + int volumeRefNum, + int dissenter, + ); +typedef FolderManagerNotificationProcPtrFunction = + ffi.Int Function( + ffi.UnsignedInt message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ); +typedef DartFolderManagerNotificationProcPtrFunction = + int Function( + int message, + ffi.Pointer arg, + ffi.Pointer userRefCon, + ); +typedef GetMissingComponentResourceProcPtrFunction = + ffi.Short Function( + ffi.Pointer c, + ffi.UnsignedInt resType, + ffi.Short resID, + ffi.Pointer refCon, + ffi.Pointer>> resource, + ); +typedef DartGetMissingComponentResourceProcPtrFunction = + int Function( + ffi.Pointer c, + int resType, + int resID, + ffi.Pointer refCon, + ffi.Pointer>> resource, + ); +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef IOAsyncCallback0Function = + ffi.Void Function(ffi.Pointer refcon, ffi.Int result); +typedef DartIOAsyncCallback0Function = + void Function(ffi.Pointer refcon, int result); +typedef IOAsyncCallback1Function = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer arg0, + ); +typedef DartIOAsyncCallback1Function = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer arg0, + ); +typedef IOAsyncCallback2Function = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ); +typedef DartIOAsyncCallback2Function = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer arg0, + ffi.Pointer arg1, + ); +typedef IOAsyncCallbackFunction = + ffi.Void Function( + ffi.Pointer refcon, + ffi.Int result, + ffi.Pointer> args, + ffi.Uint32 numArgs, + ); +typedef DartIOAsyncCallbackFunction = + void Function( + ffi.Pointer refcon, + int result, + ffi.Pointer> args, + int numArgs, + ); +typedef IOCompletionProcPtrFunction = + ffi.Void Function(ffi.Pointer paramBlock); +typedef DartIOCompletionProcPtrFunction = + void Function(ffi.Pointer paramBlock); +typedef IOServiceInterestCallbackFunction = + ffi.Void Function( + ffi.Pointer refcon, + ffi.UnsignedInt service, + ffi.Uint32 messageType, + ffi.Pointer messageArgument, + ); +typedef DartIOServiceInterestCallbackFunction = + void Function( + ffi.Pointer refcon, + int service, + int messageType, + ffi.Pointer messageArgument, + ); +typedef IOServiceMatchingCallbackFunction = + ffi.Void Function(ffi.Pointer refcon, ffi.UnsignedInt iterator); +typedef DartIOServiceMatchingCallbackFunction = + void Function(ffi.Pointer refcon, int iterator); +typedef IndexToUCStringProcPtrFunction = + ffi.UnsignedChar Function( + ffi.UnsignedInt index, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer> outString, + ffi.Pointer tsOptions, + ); +typedef DartIndexToUCStringProcPtrFunction = + int Function( + int index, + ffi.Pointer listDataPtr, + ffi.Pointer refcon, + ffi.Pointer> outString, + ffi.Pointer tsOptions, + ); + +@ffi.Packed(2) +final class KCCallbackInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external ffi.Pointer<__SecKeychainItem> item; + + @ffi.Array.multi([2]) + external ffi.Array processID; + + @ffi.Array.multi([4]) + external ffi.Array event; + + external ffi.Pointer<__SecKeychain> keychain; +} + +typedef KCCallbackProcPtrFunction = + ffi.Int Function( + ffi.UnsignedShort keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ); +typedef DartKCCallbackProcPtrFunction = + int Function( + int keychainEvent, + ffi.Pointer info, + ffi.Pointer userContext, + ); +typedef LSSharedFileListChangedProcPtrFunction = + ffi.Void Function( + ffi.Pointer inList, + ffi.Pointer context, + ); +typedef DartLSSharedFileListChangedProcPtrFunction = + void Function( + ffi.Pointer inList, + ffi.Pointer context, + ); +typedef MDQueryCreateResultFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__MDQuery> query, + ffi.Pointer<__MDItem> item, + ffi.Pointer context, + ); +typedef MDQueryCreateValueFunctionFunction = + ffi.Pointer Function( + ffi.Pointer<__MDQuery> query, + ffi.Pointer attrName, + ffi.Pointer attrValue, + ffi.Pointer context, + ); +typedef MDQuerySortComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer> attrs1, + ffi.Pointer> attrs2, + ffi.Pointer context, + ); +typedef DartMDQuerySortComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer> attrs1, + ffi.Pointer> attrs2, + ffi.Pointer context, + ); +typedef MPIsFullyInitializedProcFunction = ffi.UnsignedChar Function(); +typedef DartMPIsFullyInitializedProcFunction = int Function(); +typedef MPRemoteProcedureFunction = + ffi.Pointer Function(ffi.Pointer parameter); + +final class MachineInformation extends ffi.Struct { + external ffi.Pointer __unusedMachineInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedMachineInformationField, + }) => + $allocator() + ..ref.__unusedMachineInformationField = $unusedMachineInformationField; +} + +final class MemoryExceptionInformation extends ffi.Struct { + external ffi.Pointer theArea; + + external ffi.Pointer theAddress; + + @ffi.Int() + external int theError; + + @ffi.UnsignedLong() + external int theReference; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer theArea, + required ffi.Pointer theAddress, + required int theError, + required int theReference, + }) => $allocator() + ..ref.theArea = theArea + ..ref.theAddress = theAddress + ..ref.theError = theError + ..ref.theReference = theReference; +} + /// MySwiftClass extension type MySwiftClass._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject, MySwiftProtocol { @@ -192,14 +1647,185 @@ interface class MySwiftProtocol$Builder { typedef NSInteger = ffi.Long; typedef DartNSInteger = int; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSInteger_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, +typedef OSLAccessorProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt desiredClass, + ffi.Pointer container, + ffi.UnsignedInt containerClass, + ffi.UnsignedInt form, + ffi.Pointer selectionData, + ffi.Pointer value, + ffi.Pointer accessorRefcon, + ); +typedef DartOSLAccessorProcPtrFunction = + int Function( + int desiredClass, + ffi.Pointer container, + int containerClass, + int form, + ffi.Pointer selectionData, + ffi.Pointer value, + ffi.Pointer accessorRefcon, + ); +typedef OSLAdjustMarksProcPtrFunction = + ffi.Short Function( + ffi.Long newStart, + ffi.Long newStop, + ffi.Pointer markToken, + ); +typedef DartOSLAdjustMarksProcPtrFunction = + int Function(int newStart, int newStop, ffi.Pointer markToken); +typedef OSLCompareProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ); +typedef DartOSLCompareProcPtrFunction = + int Function( + int oper, + ffi.Pointer obj1, + ffi.Pointer obj2, + ffi.Pointer result, + ); +typedef OSLCountProcPtrFunction = + ffi.Short Function( + ffi.UnsignedInt desiredType, + ffi.UnsignedInt containerClass, + ffi.Pointer container, + ffi.Pointer result, + ); +typedef DartOSLCountProcPtrFunction = + int Function( + int desiredType, + int containerClass, + ffi.Pointer container, + ffi.Pointer result, + ); +typedef OSLDisposeTokenProcPtrFunction = + ffi.Short Function(ffi.Pointer unneededToken); +typedef DartOSLDisposeTokenProcPtrFunction = + int Function(ffi.Pointer unneededToken); +typedef OSLGetErrDescProcPtrFunction = + ffi.Short Function(ffi.Pointer> appDescPtr); +typedef DartOSLGetErrDescProcPtrFunction = + int Function(ffi.Pointer> appDescPtr); +typedef OSLGetMarkTokenProcPtrFunction = + ffi.Short Function( + ffi.Pointer dContainerToken, + ffi.UnsignedInt containerClass, + ffi.Pointer result, + ); +typedef DartOSLGetMarkTokenProcPtrFunction = + int Function( + ffi.Pointer dContainerToken, + int containerClass, + ffi.Pointer result, + ); +typedef OSLMarkProcPtrFunction = + ffi.Short Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + ffi.Long index, + ); +typedef DartOSLMarkProcPtrFunction = + int Function( + ffi.Pointer dToken, + ffi.Pointer markToken, + int index, + ); + +/// Construction methods for `objc.ObjCBlock Function()>`. +abstract final class ObjCBlock_CFErrorRef { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function()> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function()>( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock Function()> fromFunctionPointer( + ffi.Pointer Function()>> ptr, + ) => objc.ObjCBlock Function()>( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function()> fromFunction( + ffi.Pointer<__CFError> Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function()>( + objc.newClosureBlock(_closureCallable, () { + return fn(); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + static ffi.Pointer<__CFError> _fnPtrTrampoline( + ffi.Pointer block, + ) => block.ref.target + .cast Function()>>() + .asFunction Function()>()(); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >(_fnPtrTrampoline) + .cast(); + static ffi.Pointer<__CFError> _closureTrampoline( + ffi.Pointer block, + ) => (objc.getBlockClosure(block) as ffi.Pointer<__CFError> Function())(); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock Function()>`. +extension ObjCBlock_CFErrorRef$CallExtension + on objc.ObjCBlock Function()> { + ffi.Pointer<__CFError> call() { + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer<__CFError> Function( + ffi.Pointer block, + ) + > + >() + .asFunction< + ffi.Pointer<__CFError> Function(ffi.Pointer) + >()(ref.pointer); + } +} + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSInteger_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, }) => objc.ObjCBlock)>( pointer, retain: retain, @@ -293,6 +1919,1089 @@ extension ObjCBlock_NSInteger_ffiVoid$CallExtension } } +final class OpaqueAreaID extends ffi.Opaque {} + +final class OpaqueCollection extends ffi.Opaque {} + +final class OpaqueFNSubscriptionRef extends ffi.Opaque {} + +final class OpaqueFSVolumeOperation extends ffi.Opaque {} + +final class OpaqueLSSharedFileListRef extends ffi.Opaque {} + +final class OpaqueSecTransformImplementation extends ffi.Opaque {} + +final class OpaqueTECObjectRef extends ffi.Opaque {} + +final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} + +final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} + +final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} + +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); + +@ffi.Packed(2) +final class QElem extends ffi.Struct { + external ffi.Pointer qLink; + + @ffi.Short() + external int qType; + + @ffi.Array.multi([1]) + external ffi.Array qData; +} + +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + +final class RegisterInformation extends ffi.Struct { + external ffi.Pointer __unusedRegisterInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedRegisterInformationField, + }) => $allocator() + ..ref.__unusedRegisterInformationField = $unusedRegisterInformationField; +} + +typedef ResErrProcPtrFunction = ffi.Void Function(ffi.Short thErr); +typedef DartResErrProcPtrFunction = void Function(int thErr); +typedef ResourceEndianFilterPtrFunction = + ffi.Short Function( + ffi.Pointer> theResource, + ffi.UnsignedChar currentlyNativeEndian, + ); +typedef DartResourceEndianFilterPtrFunction = + int Function( + ffi.Pointer> theResource, + int currentlyNativeEndian, + ); +typedef SKSearchResultsFilterCallBackFunction = + ffi.UnsignedChar Function( + ffi.Pointer<__SKIndex> inIndex, + ffi.Pointer inDocument, + ffi.Pointer inContext, + ); +typedef DartSKSearchResultsFilterCallBackFunction = + int Function( + ffi.Pointer<__SKIndex> inIndex, + ffi.Pointer inDocument, + ffi.Pointer inContext, + ); +typedef SSLReadFuncFunction = + ffi.Int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLReadFuncFunction = + int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef SSLWriteFuncFunction = + ffi.Int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); +typedef DartSSLWriteFuncFunction = + int Function( + ffi.Pointer connection, + ffi.Pointer data, + ffi.Pointer dataLength, + ); + +@ffi.Packed(2) +final class SchedulerInfoRec extends ffi.Struct { + @ffi.UnsignedInt() + external int InfoRecSize; + + @ffi.UnsignedLong() + external int CurrentThreadID; + + @ffi.UnsignedLong() + external int SuggestedThreadID; + + @ffi.UnsignedLong() + external int InterruptedCoopThreadID; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int InfoRecSize, + required int CurrentThreadID, + required int SuggestedThreadID, + required int InterruptedCoopThreadID, + }) => $allocator() + ..ref.InfoRecSize = InfoRecSize + ..ref.CurrentThreadID = CurrentThreadID + ..ref.SuggestedThreadID = SuggestedThreadID + ..ref.InterruptedCoopThreadID = InterruptedCoopThreadID; +} + +typedef SecKeychainCallbackFunction = + ffi.Int Function( + ffi.UnsignedInt keychainEvent, + ffi.Pointer info, + ffi.Pointer context, + ); +typedef DartSecKeychainCallbackFunction = + int Function( + SecKeychainEvent keychainEvent, + ffi.Pointer info, + ffi.Pointer context, + ); + +final class SecKeychainCallbackInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + external ffi.Pointer<__SecKeychainItem> item; + + external ffi.Pointer<__SecKeychain> keychain; + + @ffi.Int() + external int pid; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required ffi.Pointer<__SecKeychainItem> item, + required ffi.Pointer<__SecKeychain> keychain, + required int pid, + }) => $allocator() + ..ref.version = version + ..ref.item = item + ..ref.keychain = keychain + ..ref.pid = pid; +} + +enum SecKeychainEvent { + kSecLockEvent(1), + kSecUnlockEvent(2), + kSecAddEvent(3), + kSecDeleteEvent(4), + kSecUpdateEvent(5), + kSecPasswordChangedEvent(6), + kSecDefaultChangedEvent(9), + kSecDataAccessEvent(10), + kSecKeychainListChangedEvent(11), + kSecTrustSettingsChangedEvent(12); + + final int value; + const SecKeychainEvent(this.value); + + static SecKeychainEvent fromValue(int value) => switch (value) { + 1 => kSecLockEvent, + 2 => kSecUnlockEvent, + 3 => kSecAddEvent, + 4 => kSecDeleteEvent, + 5 => kSecUpdateEvent, + 6 => kSecPasswordChangedEvent, + 9 => kSecDefaultChangedEvent, + 10 => kSecDataAccessEvent, + 11 => kSecKeychainListChangedEvent, + 12 => kSecTrustSettingsChangedEvent, + _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), + }; +} + +typedef SecTransformCreateFPFunction = + ffi.Pointer Function( + ffi.Pointer name, + ffi.Pointer newTransform, + ffi.Pointer ref, + ); +typedef DartSecTransformCreateFPFunction = + objc.ObjCBlock Function()> Function( + ffi.Pointer name, + ffi.Pointer newTransform, + ffi.Pointer ref, + ); +typedef SelectorFunctionProcPtrFunction = + ffi.Short Function(ffi.UnsignedInt selector, ffi.Pointer response); +typedef DartSelectorFunctionProcPtrFunction = + int Function(int selector, ffi.Pointer response); +typedef SleepQProcPtrFunction = + ffi.Long Function(ffi.Long message, ffi.Pointer qRecPtr); +typedef DartSleepQProcPtrFunction = + int Function(int message, ffi.Pointer qRecPtr); + +@ffi.Packed(2) +final class SleepQRec extends ffi.Struct { + external ffi.Pointer sleepQLink; + + @ffi.Short() + external int sleepQType; + + external ffi.Pointer> sleepQProc; + + @ffi.Short() + external int sleepQFlags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer sleepQLink, + required int sleepQType, + required ffi.Pointer> sleepQProc, + required int sleepQFlags, + }) => $allocator() + ..ref.sleepQLink = sleepQLink + ..ref.sleepQType = sleepQType + ..ref.sleepQProc = sleepQProc + ..ref.sleepQFlags = sleepQFlags; +} + +final class TECBufferContextRec extends ffi.Struct { + external ffi.Pointer textInputBuffer; + + external ffi.Pointer textInputBufferEnd; + + external ffi.Pointer textOutputBuffer; + + external ffi.Pointer textOutputBufferEnd; + + external ffi.Pointer encodingInputBuffer; + + external ffi.Pointer encodingInputBufferEnd; + + external ffi.Pointer encodingOutputBuffer; + + external ffi.Pointer encodingOutputBufferEnd; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer textInputBuffer, + required ffi.Pointer textInputBufferEnd, + required ffi.Pointer textOutputBuffer, + required ffi.Pointer textOutputBufferEnd, + required ffi.Pointer encodingInputBuffer, + required ffi.Pointer encodingInputBufferEnd, + required ffi.Pointer encodingOutputBuffer, + required ffi.Pointer encodingOutputBufferEnd, + }) => $allocator() + ..ref.textInputBuffer = textInputBuffer + ..ref.textInputBufferEnd = textInputBufferEnd + ..ref.textOutputBuffer = textOutputBuffer + ..ref.textOutputBufferEnd = textOutputBufferEnd + ..ref.encodingInputBuffer = encodingInputBuffer + ..ref.encodingInputBufferEnd = encodingInputBufferEnd + ..ref.encodingOutputBuffer = encodingOutputBuffer + ..ref.encodingOutputBufferEnd = encodingOutputBufferEnd; +} + +@ffi.Packed(2) +final class TECConversionInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int sourceEncoding; + + @ffi.UnsignedInt() + external int destinationEncoding; + + @ffi.UnsignedShort() + external int reserved1; + + @ffi.UnsignedShort() + external int reserved2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int sourceEncoding, + required int destinationEncoding, + required int reserved1, + required int reserved2, + }) => $allocator() + ..ref.sourceEncoding = sourceEncoding + ..ref.destinationEncoding = destinationEncoding + ..ref.reserved1 = reserved1 + ..ref.reserved2 = reserved2; +} + +final class TECConverterContextRec extends ffi.Struct { + external ffi.Pointer pluginRec; + + @ffi.UnsignedInt() + external int sourceEncoding; + + @ffi.UnsignedInt() + external int destEncoding; + + @ffi.UnsignedInt() + external int reserved1; + + @ffi.UnsignedInt() + external int reserved2; + + external TECBufferContextRec bufferContext; + + external ffi.Pointer contextRefCon; + + external ffi.Pointer> conversionProc; + + external ffi.Pointer> flushProc; + + external ffi.Pointer> + clearContextInfoProc; + + @ffi.UnsignedInt() + external int options1; + + @ffi.UnsignedInt() + external int options2; + + external TECPluginStateRec pluginState; +} + +typedef TECPluginClearContextInfoPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginClearContextInfoPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginClearSnifferContextInfoPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginClearSnifferContextInfoPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef TECPluginConvertTextEncodingPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginConvertTextEncodingPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); + +final class TECPluginDispatchTable extends ffi.Struct { + @ffi.UnsignedInt() + external int version; + + @ffi.UnsignedInt() + external int compatibleVersion; + + @ffi.UnsignedInt() + external int PluginID; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingConverter; + + external ffi.Pointer> + PluginClearContextInfo; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginConvertTextEncoding; + + external ffi.Pointer> + PluginFlushConversion; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingConverter; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingSniffer; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginClearSnifferContextInfo; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginSniffTextEncoding; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingSniffer; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodingPairs; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountDestinationTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountSubTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableSniffers; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountWebTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountMailTextEncodings; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingInternetName; + + external ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingFromInternetName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int version, + required int compatibleVersion, + required int PluginID, + required ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingConverter, + required ffi.Pointer< + ffi.NativeFunction + > + PluginClearContextInfo, + required ffi.Pointer< + ffi.NativeFunction + > + PluginConvertTextEncoding, + required ffi.Pointer< + ffi.NativeFunction + > + PluginFlushConversion, + required ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingConverter, + required ffi.Pointer< + ffi.NativeFunction + > + PluginNewEncodingSniffer, + required ffi.Pointer< + ffi.NativeFunction + > + PluginClearSnifferContextInfo, + required ffi.Pointer< + ffi.NativeFunction + > + PluginSniffTextEncoding, + required ffi.Pointer< + ffi.NativeFunction + > + PluginDisposeEncodingSniffer, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableTextEncodingPairs, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountDestinationTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountSubTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountAvailableSniffers, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountWebTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetCountMailTextEncodings, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingInternetName, + required ffi.Pointer< + ffi.NativeFunction + > + PluginGetTextEncodingFromInternetName, + }) => $allocator() + ..ref.version = version + ..ref.compatibleVersion = compatibleVersion + ..ref.PluginID = PluginID + ..ref.PluginNewEncodingConverter = PluginNewEncodingConverter + ..ref.PluginClearContextInfo = PluginClearContextInfo + ..ref.PluginConvertTextEncoding = PluginConvertTextEncoding + ..ref.PluginFlushConversion = PluginFlushConversion + ..ref.PluginDisposeEncodingConverter = PluginDisposeEncodingConverter + ..ref.PluginNewEncodingSniffer = PluginNewEncodingSniffer + ..ref.PluginClearSnifferContextInfo = PluginClearSnifferContextInfo + ..ref.PluginSniffTextEncoding = PluginSniffTextEncoding + ..ref.PluginDisposeEncodingSniffer = PluginDisposeEncodingSniffer + ..ref.PluginGetCountAvailableTextEncodings = + PluginGetCountAvailableTextEncodings + ..ref.PluginGetCountAvailableTextEncodingPairs = + PluginGetCountAvailableTextEncodingPairs + ..ref.PluginGetCountDestinationTextEncodings = + PluginGetCountDestinationTextEncodings + ..ref.PluginGetCountSubTextEncodings = PluginGetCountSubTextEncodings + ..ref.PluginGetCountAvailableSniffers = PluginGetCountAvailableSniffers + ..ref.PluginGetCountWebTextEncodings = PluginGetCountWebTextEncodings + ..ref.PluginGetCountMailTextEncodings = PluginGetCountMailTextEncodings + ..ref.PluginGetTextEncodingInternetName = PluginGetTextEncodingInternetName + ..ref.PluginGetTextEncodingFromInternetName = + PluginGetTextEncodingFromInternetName; +} + +typedef TECPluginDisposeEncodingConverterPtrFunction = + ffi.Int Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginDisposeEncodingConverterPtrFunction = + int Function( + ffi.Pointer newEncodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginDisposeEncodingSnifferPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginDisposeEncodingSnifferPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef TECPluginFlushConversionPtrFunction = + ffi.Int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef DartTECPluginFlushConversionPtrFunction = + int Function( + ffi.Pointer encodingConverter, + ffi.Pointer plugContext, + ); +typedef TECPluginGetCountAvailableSniffersPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableSniffersPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountAvailableTextEncodingPairsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableTextEncodingPairsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountAvailableTextEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountAvailableTextEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountDestinationTextEncodingsPtrFunction = + ffi.Int Function( + ffi.UnsignedInt inputEncoding, + ffi.Pointer destinationEncodings, + ffi.UnsignedLong maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ); +typedef DartTECPluginGetCountDestinationTextEncodingsPtrFunction = + int Function( + int inputEncoding, + ffi.Pointer destinationEncodings, + int maxDestinationEncodings, + ffi.Pointer actualDestinationEncodings, + ); +typedef TECPluginGetCountMailEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountMailEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetCountSubTextEncodingsPtrFunction = + ffi.Int Function( + ffi.UnsignedInt inputEncoding, + ffi.Pointer subEncodings, + ffi.UnsignedLong maxSubEncodings, + ffi.Pointer actualSubEncodings, + ); +typedef DartTECPluginGetCountSubTextEncodingsPtrFunction = + int Function( + int inputEncoding, + ffi.Pointer subEncodings, + int maxSubEncodings, + ffi.Pointer actualSubEncodings, + ); +typedef TECPluginGetCountWebEncodingsPtrFunction = + ffi.Int Function( + ffi.Pointer availableEncodings, + ffi.UnsignedLong maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef DartTECPluginGetCountWebEncodingsPtrFunction = + int Function( + ffi.Pointer availableEncodings, + int maxAvailableEncodings, + ffi.Pointer actualAvailableEncodings, + ); +typedef TECPluginGetPluginDispatchTablePtrFunction = + ffi.Pointer Function(); +typedef TECPluginGetTextEncodingFromInternetNamePtrFunction = + ffi.Int Function( + ffi.Pointer textEncoding, + ffi.Pointer encodingName, + ); +typedef DartTECPluginGetTextEncodingFromInternetNamePtrFunction = + int Function( + ffi.Pointer textEncoding, + ffi.Pointer encodingName, + ); +typedef TECPluginGetTextEncodingInternetNamePtrFunction = + ffi.Int Function( + ffi.UnsignedInt textEncoding, + ffi.Pointer encodingName, + ); +typedef DartTECPluginGetTextEncodingInternetNamePtrFunction = + int Function(int textEncoding, ffi.Pointer encodingName); +typedef TECPluginNewEncodingConverterPtrFunction = + ffi.Int Function( + ffi.Pointer> newEncodingConverter, + ffi.Pointer plugContext, + ffi.UnsignedInt inputEncoding, + ffi.UnsignedInt outputEncoding, + ); +typedef DartTECPluginNewEncodingConverterPtrFunction = + int Function( + ffi.Pointer> newEncodingConverter, + ffi.Pointer plugContext, + int inputEncoding, + int outputEncoding, + ); +typedef TECPluginNewEncodingSnifferPtrFunction = + ffi.Int Function( + ffi.Pointer> encodingSniffer, + ffi.Pointer snifContext, + ffi.UnsignedInt inputEncoding, + ); +typedef DartTECPluginNewEncodingSnifferPtrFunction = + int Function( + ffi.Pointer> encodingSniffer, + ffi.Pointer snifContext, + int inputEncoding, + ); +typedef TECPluginSniffTextEncodingPtrFunction = + ffi.Int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); +typedef DartTECPluginSniffTextEncodingPtrFunction = + int Function( + ffi.Pointer encodingSniffer, + ffi.Pointer snifContext, + ); + +final class TECPluginStateRec extends ffi.Struct { + @ffi.UnsignedChar() + external int state1; + + @ffi.UnsignedChar() + external int state2; + + @ffi.UnsignedChar() + external int state3; + + @ffi.UnsignedChar() + external int state4; + + @ffi.UnsignedInt() + external int longState1; + + @ffi.UnsignedInt() + external int longState2; + + @ffi.UnsignedInt() + external int longState3; + + @ffi.UnsignedInt() + external int longState4; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int state1, + required int state2, + required int state3, + required int state4, + required int longState1, + required int longState2, + required int longState3, + required int longState4, + }) => $allocator() + ..ref.state1 = state1 + ..ref.state2 = state2 + ..ref.state3 = state3 + ..ref.state4 = state4 + ..ref.longState1 = longState1 + ..ref.longState2 = longState2 + ..ref.longState3 = longState3 + ..ref.longState4 = longState4; +} + +final class TECSnifferContextRec extends ffi.Struct { + external ffi.Pointer pluginRec; + + @ffi.UnsignedInt() + external int encoding; + + @ffi.UnsignedLong() + external int maxErrors; + + @ffi.UnsignedLong() + external int maxFeatures; + + external ffi.Pointer textInputBuffer; + + external ffi.Pointer textInputBufferEnd; + + @ffi.UnsignedLong() + external int numFeatures; + + @ffi.UnsignedLong() + external int numErrors; + + external ffi.Pointer contextRefCon; + + external ffi.Pointer> sniffProc; + + external ffi.Pointer> + clearContextInfoProc; + + external TECPluginStateRec pluginState; +} + +@ffi.Packed(2) +final class TMTask extends ffi.Struct { + external ffi.Pointer qLink; + + @ffi.Short() + external int qType; + + external ffi.Pointer> tmAddr; + + @ffi.Long() + external int tmCount; + + @ffi.Long() + external int tmWakeUp; + + @ffi.Long() + external int tmReserved; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer qLink, + required int qType, + required ffi.Pointer> tmAddr, + required int tmCount, + required int tmWakeUp, + required int tmReserved, + }) => $allocator() + ..ref.qLink = qLink + ..ref.qType = qType + ..ref.tmAddr = tmAddr + ..ref.tmCount = tmCount + ..ref.tmWakeUp = tmWakeUp + ..ref.tmReserved = tmReserved; +} + +typedef TaskProcFunction = ffi.Int Function(ffi.Pointer parameter); +typedef DartTaskProcFunction = int Function(ffi.Pointer parameter); + +@ffi.Packed(2) +final class TextEncodingRun extends ffi.Struct { + @ffi.UnsignedLong() + external int offset; + + @ffi.UnsignedInt() + external int textEncoding; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int offset, + required int textEncoding, + }) => $allocator() + ..ref.offset = offset + ..ref.textEncoding = textEncoding; +} + +typedef ThreadEntryProcPtrFunction = + ffi.Pointer Function(ffi.Pointer threadParam); +typedef ThreadSchedulerProcPtrFunction = + ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); +typedef DartThreadSchedulerProcPtrFunction = + int Function(ffi.Pointer schedulerInfo); +typedef ThreadSwitchProcPtrFunction = + ffi.Void Function( + ffi.UnsignedLong threadBeingSwitched, + ffi.Pointer switchProcParam, + ); +typedef DartThreadSwitchProcPtrFunction = + void Function( + int threadBeingSwitched, + ffi.Pointer switchProcParam, + ); +typedef ThreadTerminationProcPtrFunction = + ffi.Void Function( + ffi.UnsignedLong threadTerminated, + ffi.Pointer terminationProcParam, + ); +typedef DartThreadTerminationProcPtrFunction = + void Function( + int threadTerminated, + ffi.Pointer terminationProcParam, + ); +typedef TimerProcPtrFunction = ffi.Void Function(ffi.Pointer tmTaskPtr); +typedef DartTimerProcPtrFunction = void Function(ffi.Pointer tmTaskPtr); + +@ffi.Packed(2) +final class UnicodeMapping extends ffi.Struct { + @ffi.UnsignedInt() + external int unicodeEncoding; + + @ffi.UnsignedInt() + external int otherEncoding; + + @ffi.Int() + external int mappingVersion; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int unicodeEncoding, + required int otherEncoding, + required int mappingVersion, + }) => $allocator() + ..ref.unicodeEncoding = unicodeEncoding + ..ref.otherEncoding = otherEncoding + ..ref.mappingVersion = mappingVersion; +} + +typedef UnicodeToTextFallbackProcPtrFunction = + ffi.Int Function( + ffi.Pointer iSrcUniStr, + ffi.UnsignedLong iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + ffi.Pointer oDestStr, + ffi.UnsignedLong iDestStrLen, + ffi.Pointer oDestConvLen, + ffi.Pointer iInfoPtr, + ffi.Pointer iUnicodeMappingPtr, + ); +typedef DartUnicodeToTextFallbackProcPtrFunction = + int Function( + ffi.Pointer iSrcUniStr, + int iSrcUniStrLen, + ffi.Pointer oSrcConvLen, + ffi.Pointer oDestStr, + int iDestStrLen, + ffi.Pointer oDestConvLen, + ffi.Pointer iInfoPtr, + ffi.Pointer iUnicodeMappingPtr, + ); + +final class UnnamedUnion extends ffi.Union { + external cssm_list Sublist; + + external cssm_data Word; +} + +final class VectorInformation extends ffi.Struct { + external ffi.Pointer __unusedVectorInformationField; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer $unusedVectorInformationField, + }) => + $allocator() + ..ref.__unusedVectorInformationField = $unusedVectorInformationField; +} + +typedef WSClientContextCopyDescriptionCallBackProcPtrFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef WSClientContextReleaseCallBackProcPtrFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartWSClientContextReleaseCallBackProcPtrFunction = + void Function(ffi.Pointer info); +typedef WSClientContextRetainCallBackProcPtrFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef WSMethodInvocationCallBackProcPtrFunction = + ffi.Void Function( + ffi.Pointer invocation, + ffi.Pointer info, + ffi.Pointer<__CFDictionary> outRef, + ); +typedef DartWSMethodInvocationCallBackProcPtrFunction = + void Function( + ffi.Pointer invocation, + ffi.Pointer info, + ffi.Pointer<__CFDictionary> outRef, + ); +typedef WSMethodInvocationDeserializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer invocation, + ffi.Pointer<__CFTree> msgRoot, + ffi.Pointer<__CFTree> deserializeRoot, + ffi.Pointer info, + ); +typedef WSMethodInvocationSerializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer invocation, + ffi.Pointer obj, + ffi.Pointer info, + ); +typedef WSProtocolHandlerDeserializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer protocol, + ffi.Pointer<__CFTree> msgRoot, + ffi.Pointer<__CFTree> deserializeRoot, + ffi.Pointer info, + ); +typedef WSProtocolHandlerSerializationProcPtrFunction = + ffi.Pointer Function( + ffi.Pointer protocol, + ffi.Pointer obj, + ffi.Pointer info, + ); + +final class __CFAllocator extends ffi.Opaque {} + +final class __CFArray extends ffi.Opaque {} + +final class __CFBundle extends ffi.Opaque {} + +final class __CFData extends ffi.Opaque {} + +final class __CFDictionary extends ffi.Opaque {} + +final class __CFError extends ffi.Opaque {} + +final class __CFFileDescriptor extends ffi.Opaque {} + +final class __CFHost extends ffi.Opaque {} + +final class __CFMachPort extends ffi.Opaque {} + +final class __CFMessagePort extends ffi.Opaque {} + +final class __CFNetService extends ffi.Opaque {} + +final class __CFNetServiceBrowser extends ffi.Opaque {} + +final class __CFNetServiceMonitor extends ffi.Opaque {} + +final class __CFNotificationCenter extends ffi.Opaque {} + +final class __CFPlugInInstance extends ffi.Opaque {} + +final class __CFReadStream extends ffi.Opaque {} + +final class __CFRunLoopObserver extends ffi.Opaque {} + +final class __CFRunLoopTimer extends ffi.Opaque {} + +final class __CFSocket extends ffi.Opaque {} + +final class __CFTree extends ffi.Opaque {} + +final class __CFURL extends ffi.Opaque {} + +final class __CFUUID extends ffi.Opaque {} + +final class __CFUserNotification extends ffi.Opaque {} + +final class __CFWriteStream extends ffi.Opaque {} + +final class __CFXMLNode extends ffi.Opaque {} + +final class __CFXMLParser extends ffi.Opaque {} + +final class __CSIdentity extends ffi.Opaque {} + +final class __CSIdentityQuery extends ffi.Opaque {} + +final class __FSEventStream extends ffi.Opaque {} + +final class __FSFileOperation extends ffi.Opaque {} + +final class __MDItem extends ffi.Opaque {} + +final class __MDQuery extends ffi.Opaque {} + +final class __SKIndex extends ffi.Opaque {} + +final class __SecKeychain extends ffi.Opaque {} + +final class __SecKeychainItem extends ffi.Opaque {} + @ffi.Native>( symbol: 'OBJC_CLASS_\$__TtC16swift_class_test12MySwiftClass', ) @@ -303,6 +3012,9 @@ final _class_MySwiftClass = objc.getClass( _class_MySwiftClass_raw, ).cast(), ); + +final class _launch_data extends ffi.Opaque {} + final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -417,5 +3129,230 @@ late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); late final _sel_setValueWithX_ = objc.registerName("setValueWithX:"); + +final class cssm_data extends ffi.Struct { + @ffi.Size() + external int Length; + + external ffi.Pointer Data; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Length, + required ffi.Pointer Data, + }) => $allocator() + ..ref.Length = Length + ..ref.Data = Data; +} + +final class cssm_guid extends ffi.Struct { + @ffi.Uint32() + external int Data1; + + @ffi.Uint16() + external int Data2; + + @ffi.Uint16() + external int Data3; + + @ffi.Array.multi([8]) + external ffi.Array Data4; +} + +final class cssm_list extends ffi.Struct { + @ffi.Uint32() + external int ListType; + + external ffi.Pointer Head; + + external ffi.Pointer Tail; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int ListType, + required ffi.Pointer Head, + required ffi.Pointer Tail, + }) => $allocator() + ..ref.ListType = ListType + ..ref.Head = Head + ..ref.Tail = Tail; +} + +@Deprecated('Deprecated') +final class cssm_list_element extends ffi.Struct { + external ffi.Pointer NextElement; + + @ffi.Int32() + external int WordID; + + @ffi.Uint32() + external int ElementType; + + external UnnamedUnion Element; +} + +final class cssm_memory_funcs extends ffi.Struct { + external ffi.Pointer> malloc_func; + + external ffi.Pointer> free_func; + + external ffi.Pointer> realloc_func; + + external ffi.Pointer> calloc_func; + + external ffi.Pointer AllocRef; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer> malloc_func, + required ffi.Pointer> free_func, + required ffi.Pointer> realloc_func, + required ffi.Pointer> calloc_func, + required ffi.Pointer AllocRef, + }) => $allocator() + ..ref.malloc_func = malloc_func + ..ref.free_func = free_func + ..ref.realloc_func = realloc_func + ..ref.calloc_func = calloc_func + ..ref.AllocRef = AllocRef; +} + +@Deprecated('Deprecated') +final class cssm_sample extends ffi.Struct { + external cssm_list TypedSample; + + external ffi.Pointer Verifier; +} + +@Deprecated('Deprecated') +final class cssm_samplegroup extends ffi.Struct { + @ffi.Uint32() + external int NumberOfSamples; + + external ffi.Pointer Samples; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int NumberOfSamples, + required ffi.Pointer Samples, + }) => $allocator() + ..ref.NumberOfSamples = NumberOfSamples + ..ref.Samples = Samples; +} + +@Deprecated('Deprecated') +final class cssm_subservice_uid extends ffi.Struct { + external cssm_guid Guid; + + external cssm_version Version; + + @ffi.Uint32() + external int SubserviceId; + + @ffi.Uint32() + external int SubserviceType; +} + +final class cssm_version extends ffi.Struct { + @ffi.Uint32() + external int Major; + + @ffi.Uint32() + external int Minor; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Major, + required int Minor, + }) => $allocator() + ..ref.Major = Major + ..ref.Minor = Minor; +} + +typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef launch_data_dict_iterator_tFunction = + ffi.Void Function( + ffi.Pointer<_launch_data> lval, + ffi.Pointer key, + ffi.Pointer ctx, + ); +typedef Dartlaunch_data_dict_iterator_tFunction = + void Function( + ffi.Pointer<_launch_data> lval, + ffi.Pointer key, + ffi.Pointer ctx, + ); +typedef mach_error_fn_tFunction = ffi.Int Function(); +typedef Dartmach_error_fn_tFunction = int Function(); + +final class mach_msg_header_t extends ffi.Struct { + @ffi.UnsignedInt() + external int msgh_bits; + + @ffi.UnsignedInt() + external int msgh_size; + + @ffi.UnsignedInt() + external int msgh_remote_port; + + @ffi.UnsignedInt() + external int msgh_local_port; + + @ffi.UnsignedInt() + external int msgh_voucher_port; + + @ffi.Int() + external int msgh_id; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int msgh_bits, + required int msgh_size, + required int msgh_remote_port, + required int msgh_local_port, + required int msgh_voucher_port, + required int msgh_id, + }) => $allocator() + ..ref.msgh_bits = msgh_bits + ..ref.msgh_size = msgh_size + ..ref.msgh_remote_port = msgh_remote_port + ..ref.msgh_local_port = msgh_local_port + ..ref.msgh_voucher_port = msgh_voucher_port + ..ref.msgh_id = msgh_id; +} + +typedef mig_impl_routine_tFunction = ffi.Int Function(); +typedef Dartmig_impl_routine_tFunction = int Function(); +typedef mig_server_routine_tFunction = + ffi.Pointer> Function( + ffi.Pointer InHeadP, + ); +typedef mig_stub_routine_tFunction = + ffi.Void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ); +typedef Dartmig_stub_routine_tFunction = + void Function( + ffi.Pointer InHeadP, + ffi.Pointer OutHeadP, + ); +typedef os_function_tFunction = ffi.Void Function(ffi.Pointer); +typedef Dartos_function_tFunction = void Function(ffi.Pointer); +typedef os_workgroup_working_arena_destructor_tFunction = + ffi.Void Function(ffi.Pointer); +typedef Dartos_workgroup_working_arena_destructor_tFunction = + void Function(ffi.Pointer); +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); +typedef xpc_connection_handler_tFunction = + ffi.Void Function(ffi.Pointer connection); +typedef Dartxpc_connection_handler_tFunction = + void Function(objc.NSObject connection); +typedef xpc_finalizer_tFunction = + ffi.Void Function(ffi.Pointer value); +typedef Dartxpc_finalizer_tFunction = + void Function(ffi.Pointer value); diff --git a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart index 7b04acef7b..f776e9fdc9 100644 --- a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart @@ -94,6 +94,88 @@ extension AnotherClass$Methods on AnotherClass { } } +typedef CFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + ffi.Long allocSize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorAllocateCallBackFunction = + ffi.Pointer Function( + int allocSize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorCopyDescriptionCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFAllocatorDeallocateCallBackFunction = + ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef DartCFAllocatorDeallocateCallBackFunction = + void Function(ffi.Pointer ptr, ffi.Pointer info); +typedef CFAllocatorPreferredSizeCallBackFunction = + ffi.Long Function( + ffi.Long size, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorPreferredSizeCallBackFunction = + int Function(int size, int hint, ffi.Pointer info); +typedef CFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + ffi.Long newsize, + ffi.UnsignedLong hint, + ffi.Pointer info, + ); +typedef DartCFAllocatorReallocateCallBackFunction = + ffi.Pointer Function( + ffi.Pointer ptr, + int newsize, + int hint, + ffi.Pointer info, + ); +typedef CFAllocatorReleaseCallBackFunction = + ffi.Void Function(ffi.Pointer info); +typedef DartCFAllocatorReleaseCallBackFunction = + void Function(ffi.Pointer info); +typedef CFAllocatorRetainCallBackFunction = + ffi.Pointer Function(ffi.Pointer info); +typedef CFComparatorFunctionFunction = + ffi.Long Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); +typedef DartCFComparatorFunctionFunction = + CFComparisonResult Function( + ffi.Pointer val1, + ffi.Pointer val2, + ffi.Pointer context, + ); + +enum CFComparisonResult { + kCFCompareLessThan(-1), + kCFCompareEqualTo(0), + kCFCompareGreaterThan(1); + + final int value; + const CFComparisonResult(this.value); + + static CFComparisonResult fromValue(int value) => switch (value) { + -1 => kCFCompareLessThan, + 0 => kCFCompareEqualTo, + 1 => kCFCompareGreaterThan, + _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + }; +} + +typedef IMPFunction = ffi.Void Function(); +typedef DartIMPFunction = void Function(); +typedef ProcPtrFunction = ffi.Long Function(); +typedef DartProcPtrFunction = int Function(); +typedef Register68kProcPtrFunction = ffi.Void Function(); +typedef DartRegister68kProcPtrFunction = void Function(); + /// SomeClass extension type SomeClass._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -258,3 +340,5 @@ late final _sel_property = objc.registerName("property"); late final _sel_setProperty_ = objc.registerName("setProperty:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; +typedef sig_tFunction = ffi.Void Function(ffi.Int); +typedef Dartsig_tFunction = void Function(int); From 0a19f867ac7f470a0d92f85653c7f60b6a908513 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 14:20:37 +1000 Subject: [PATCH 15/54] regen --- .../libclang-example/generated_bindings.dart | 57 +- .../objective_c/avf_audio_bindings.dart | 3379 --------- .../example/swift/swift_api_bindings.dart | 2937 -------- .../lib/src/code_generator/typealias.dart | 2 +- .../clang_bindings/clang_bindings.dart | 53 +- .../_expected_dart_handle_bindings.dart | 5 +- ...expected_native_func_typedef_bindings.dart | 13 +- ..._expected_struct_fptr_fields_bindings.dart | 4 +- .../_expected_typedef_bindings.dart | 4 +- .../_expected_libclang_bindings.dart | 79 - .../_expected_sqlite_bindings.dart | 674 -- .../native_objc_test/arc_test_bindings.dart | 83 - .../bad_method_test_bindings.dart | 84 - .../bad_override_test_bindings.dart | 86 - .../block_annotation_test_bindings.dart | 85 - .../block_inherit_test_bindings.dart | 84 - .../native_objc_test/block_test_bindings.dart | 83 - .../native_objc_test/cast_test_bindings.dart | 82 - .../category_test_bindings.dart | 85 - .../native_objc_test/enum_test_bindings.dart | 83 - .../error_method_test_bindings.dart | 82 - .../failed_to_load_test_bindings.dart | 82 - .../forward_decl_test_bindings.dart | 82 - .../global_native_test_bindings.dart | 85 - .../global_test_bindings.dart | 85 - .../inherited_instancetype_test_bindings.dart | 83 - .../is_instance_test_bindings.dart | 83 - .../isolate_test_bindings.dart | 85 - .../native_objc_test/log_test_bindings.dart | 83 - .../method_filtering_test_bindings.dart | 84 - .../method_test_bindings.dart | 84 - .../native_objc_test_bindings.dart | 82 - .../nullable_inheritance_test_bindings.dart | 83 - .../nullable_test_bindings.dart | 83 - .../property_test_bindings.dart | 84 - .../protocol_test_bindings.dart | 86 - .../ref_count_test_bindings.dart | 84 - .../rename_test_bindings.dart | 83 - .../runtime_version_test_bindings.dart | 82 - .../sdk_variable_test_bindings.dart | 6574 ++--------------- .../static_func_native_test_bindings.dart | 85 - .../static_func_test_bindings.dart | 85 - .../string_test_bindings.dart | 83 - .../swift_class_test_bindings.dart | 2937 -------- .../typedef_test_bindings.dart | 84 - 45 files changed, 748 insertions(+), 18647 deletions(-) diff --git a/pkgs/ffigen/example/libclang-example/generated_bindings.dart b/pkgs/ffigen/example/libclang-example/generated_bindings.dart index 207c7c3e0d..3af7ee5463 100644 --- a/pkgs/ffigen/example/libclang-example/generated_bindings.dart +++ b/pkgs/ffigen/example/libclang-example/generated_bindings.dart @@ -8230,19 +8230,15 @@ typedef CXCursorSet = ffi.Pointer; /// The visitor should return one of the \c CXChildVisitResult values /// to direct clang_visitCursorChildren(). typedef CXCursorVisitor = - ffi.Pointer>; -typedef CXCursorVisitorFunction = - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ); -typedef DartCXCursorVisitorFunction = - CXChildVisitResult Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ) + > + >; /// A single diagnostic, containing the diagnostic's severity, /// location, text, source ranges, and fix-it hints. @@ -8360,11 +8356,11 @@ enum CXEvalResultKind { /// The visitor should return one of the \c CXVisitorResult values /// to direct \c clang_Type_visitFields. typedef CXFieldVisitor = - ffi.Pointer>; -typedef CXFieldVisitorFunction = - ffi.UnsignedInt Function(CXCursor C, CXClientData client_data); -typedef DartCXFieldVisitorFunction = - CXVisitorResult Function(CXCursor C, CXClientData client_data); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor C, CXClientData client_data) + > + >; /// A particular source file that is part of a translation unit. typedef CXFile = ffi.Pointer; @@ -8905,21 +8901,16 @@ final class CXIdxObjCProtocolRefListInfo extends ffi.Struct { /// array is sorted in order of immediate inclusion. For example, /// the first element refers to the location that included 'included_file'. typedef CXInclusionVisitor = - ffi.Pointer>; -typedef CXInclusionVisitorFunction = - ffi.Void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - CXClientData client_data, - ); -typedef DartCXInclusionVisitorFunction = - void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - int include_len, - CXClientData client_data, - ); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + CXClientData client_data, + ) + > + >; /// An "index" that consists of a set of translation units that would /// typically be linked together into an executable or library. diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index ab5d56a2c9..a5c0bfe631 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -11,195 +11,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef AECoerceDescProcPtrFunction = - ffi.Short Function( - ffi.Pointer fromDesc, - ffi.UnsignedInt toType, - ffi.Pointer handlerRefcon, - ffi.Pointer toDesc, - ); -typedef DartAECoerceDescProcPtrFunction = - int Function( - ffi.Pointer fromDesc, - int toType, - ffi.Pointer handlerRefcon, - ffi.Pointer toDesc, - ); -typedef AECoercePtrProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt typeCode, - ffi.Pointer dataPtr, - ffi.Long dataSize, - ffi.UnsignedInt toType, - ffi.Pointer handlerRefcon, - ffi.Pointer result, - ); -typedef DartAECoercePtrProcPtrFunction = - int Function( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - int toType, - ffi.Pointer handlerRefcon, - ffi.Pointer result, - ); -typedef AEDisposeExternalProcPtrFunction = - ffi.Void Function( - ffi.Pointer dataPtr, - ffi.Long dataLength, - ffi.Pointer refcon, - ); -typedef DartAEDisposeExternalProcPtrFunction = - void Function( - ffi.Pointer dataPtr, - int dataLength, - ffi.Pointer refcon, - ); -typedef AEEventHandlerProcPtrFunction = - ffi.Short Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - ffi.Pointer handlerRefcon, - ); -typedef DartAEEventHandlerProcPtrFunction = - int Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - ffi.Pointer handlerRefcon, - ); - -final class AERemoteProcessResolver extends ffi.Opaque {} - -typedef AERemoteProcessResolverCallbackFunction = - ffi.Void Function( - ffi.Pointer ref, - ffi.Pointer info, - ); -typedef DartAERemoteProcessResolverCallbackFunction = - void Function( - ffi.Pointer ref, - ffi.Pointer info, - ); -typedef ATSCubicClosePathProcPtrFunction = - ffi.Int Function(ffi.Pointer callBackDataPtr); -typedef DartATSCubicClosePathProcPtrFunction = - int Function(ffi.Pointer callBackDataPtr); -typedef ATSCubicCurveToProcPtrFunction = - ffi.Int Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer pt3, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSCubicCurveToProcPtrFunction = - int Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer pt3, - ffi.Pointer callBackDataPtr, - ); -typedef ATSCubicLineToProcPtrFunction = - ffi.Int Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSCubicLineToProcPtrFunction = - int Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef ATSCubicMoveToProcPtrFunction = - ffi.Int Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSCubicMoveToProcPtrFunction = - int Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef ATSFontApplierFunctionFunction = - ffi.Int Function(ffi.UnsignedInt iFont, ffi.Pointer iRefCon); -typedef DartATSFontApplierFunctionFunction = - int Function(int iFont, ffi.Pointer iRefCon); -typedef ATSFontFamilyApplierFunctionFunction = - ffi.Int Function(ffi.UnsignedInt iFamily, ffi.Pointer iRefCon); -typedef DartATSFontFamilyApplierFunctionFunction = - int Function(int iFamily, ffi.Pointer iRefCon); - -final class ATSFontNotificationInfoRef_ extends ffi.Opaque {} - -typedef ATSFontQueryCallbackFunction = - ffi.Pointer Function( - ffi.UnsignedInt msgid, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef DartATSFontQueryCallbackFunction = - ffi.Pointer Function( - ATSFontQueryMessageID msgid, - ffi.Pointer data, - ffi.Pointer refCon, - ); - -enum ATSFontQueryMessageID { - kATSQueryActivateFontMessage(1635021665); - - final int value; - const ATSFontQueryMessageID(this.value); - - static ATSFontQueryMessageID fromValue(int value) => switch (value) { - 1635021665 => kATSQueryActivateFontMessage, - _ => throw ArgumentError('Unknown value for ATSFontQueryMessageID: $value'), - }; -} - -typedef ATSNotificationCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer refCon, - ); -typedef DartATSNotificationCallbackFunction = - void Function( - ffi.Pointer info, - ffi.Pointer refCon, - ); -typedef ATSQuadraticClosePathProcPtrFunction = - ffi.Int Function(ffi.Pointer callBackDataPtr); -typedef DartATSQuadraticClosePathProcPtrFunction = - int Function(ffi.Pointer callBackDataPtr); -typedef ATSQuadraticCurveProcPtrFunction = - ffi.Int Function( - ffi.Pointer pt1, - ffi.Pointer controlPt, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSQuadraticCurveProcPtrFunction = - int Function( - ffi.Pointer pt1, - ffi.Pointer controlPt, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef ATSQuadraticLineProcPtrFunction = - ffi.Int Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSQuadraticLineProcPtrFunction = - int Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef ATSQuadraticNewPathProcPtrFunction = - ffi.Int Function(ffi.Pointer callBackDataPtr); -typedef DartATSQuadraticNewPathProcPtrFunction = - int Function(ffi.Pointer callBackDataPtr); - -final class ATSTrapezoid extends ffi.Opaque {} /// WARNING: AVAudioFormat is a stub. To generate bindings for this class, include /// AVAudioFormat in your config's objc-interfaces list. @@ -951,40 +762,6 @@ extension type AVAudioPlayerDelegate._(objc.ObjCProtocol object$) }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); } -typedef AXObserverCallbackFunction = - ffi.Void Function( - ffi.Pointer<__AXObserver> observer, - ffi.Pointer<__AXUIElement> element, - ffi.Pointer notification, - ffi.Pointer refcon, - ); -typedef DartAXObserverCallbackFunction = - void Function( - ffi.Pointer<__AXObserver> observer, - ffi.Pointer<__AXUIElement> element, - ffi.Pointer notification, - ffi.Pointer refcon, - ); -typedef AXObserverCallbackWithInfoFunction = - ffi.Void Function( - ffi.Pointer<__AXObserver> observer, - ffi.Pointer<__AXUIElement> element, - ffi.Pointer notification, - ffi.Pointer<__CFDictionary> info, - ffi.Pointer refcon, - ); -typedef DartAXObserverCallbackWithInfoFunction = - void Function( - ffi.Pointer<__AXObserver> observer, - ffi.Pointer<__AXUIElement> element, - ffi.Pointer notification, - ffi.Pointer<__CFDictionary> info, - ffi.Pointer refcon, - ); - -@ffi.Packed(2) -final class BitMap extends ffi.Opaque {} - /// WARNING: CASpatialAudioExperience is a stub. To generate bindings for this class, include /// CASpatialAudioExperience in your config's objc-interfaces list. /// @@ -1002,2948 +779,6 @@ extension type CASpatialAudioExperience._(objc.ObjCObject object$) }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFArrayApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFArrayApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFArrayCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFArrayEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFArrayEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFArrayReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFArrayReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFArrayRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBagApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFBagApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFBagCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFBagEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFBagEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFBagHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFBagHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFBagReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFBagReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBagRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBinaryHeapApplierFunctionFunction = - ffi.Void Function(ffi.Pointer val, ffi.Pointer context); -typedef DartCFBinaryHeapApplierFunctionFunction = - void Function(ffi.Pointer val, ffi.Pointer context); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef CFDictionaryApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFDictionaryApplierFunctionFunction = - void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ); -typedef CFDictionaryCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFDictionaryEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFDictionaryEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFDictionaryHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFDictionaryHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFDictionaryReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFDictionaryReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFDictionaryRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFFileDescriptorCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFFileDescriptor> f, - ffi.UnsignedLong callBackTypes, - ffi.Pointer info, - ); -typedef DartCFFileDescriptorCallBackFunction = - void Function( - ffi.Pointer<__CFFileDescriptor> f, - int callBackTypes, - ffi.Pointer info, - ); -typedef CFHostClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFHost> theHost, - ffi.UnsignedInt typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFHostClientCallBackFunction = - void Function( - ffi.Pointer<__CFHost> theHost, - CFHostInfoType typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ); - -enum CFHostInfoType { - kCFHostAddresses(0), - kCFHostNames(1), - kCFHostReachability(2); - - final int value; - const CFHostInfoType(this.value); - - static CFHostInfoType fromValue(int value) => switch (value) { - 0 => kCFHostAddresses, - 1 => kCFHostNames, - 2 => kCFHostReachability, - _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), - }; -} - -typedef CFMachPortCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer msg, - ffi.Long size, - ffi.Pointer info, - ); -typedef DartCFMachPortCallBackFunction = - void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer msg, - int size, - ffi.Pointer info, - ); -typedef CFMachPortInvalidationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer info, - ); -typedef DartCFMachPortInvalidationCallBackFunction = - void Function(ffi.Pointer<__CFMachPort> port, ffi.Pointer info); -typedef CFMessagePortCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFMessagePort> local, - ffi.Int msgid, - ffi.Pointer<__CFData> data, - ffi.Pointer info, - ); -typedef DartCFMessagePortCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFMessagePort> local, - int msgid, - ffi.Pointer<__CFData> data, - ffi.Pointer info, - ); -typedef CFMessagePortInvalidationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMessagePort> ms, - ffi.Pointer info, - ); -typedef DartCFMessagePortInvalidationCallBackFunction = - void Function(ffi.Pointer<__CFMessagePort> ms, ffi.Pointer info); -typedef CFNetServiceBrowserClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetServiceBrowser> browser, - ffi.UnsignedLong flags, - ffi.Pointer domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceBrowserClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetServiceBrowser> browser, - int flags, - ffi.Pointer domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef CFNetServiceClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetService> theService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetService> theService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef CFNetServiceMonitorClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetServiceMonitor> theMonitor, - ffi.Pointer<__CFNetService> theService, - ffi.UnsignedInt typeInfo, - ffi.Pointer<__CFData> rdata, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceMonitorClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetServiceMonitor> theMonitor, - ffi.Pointer<__CFNetService> theService, - CFNetServiceMonitorType typeInfo, - ffi.Pointer<__CFData> rdata, - ffi.Pointer error, - ffi.Pointer info, - ); - -enum CFNetServiceMonitorType { - kCFNetServiceMonitorTXT(1); - - final int value; - const CFNetServiceMonitorType(this.value); - - static CFNetServiceMonitorType fromValue(int value) => switch (value) { - 1 => kCFNetServiceMonitorTXT, - _ => throw ArgumentError( - 'Unknown value for CFNetServiceMonitorType: $value', - ), - }; -} - -typedef CFNotificationCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CFNotificationCenter> center, - ffi.Pointer observer, - ffi.Pointer name, - ffi.Pointer object, - ffi.Pointer<__CFDictionary> userInfo, - ); -typedef DartCFNotificationCallbackFunction = - void Function( - ffi.Pointer<__CFNotificationCenter> center, - ffi.Pointer observer, - ffi.Pointer name, - ffi.Pointer object, - ffi.Pointer<__CFDictionary> userInfo, - ); -typedef CFPlugInDynamicRegisterFunctionFunction = - ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); -typedef DartCFPlugInDynamicRegisterFunctionFunction = - void Function(ffi.Pointer<__CFBundle> plugIn); -typedef CFPlugInFactoryFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer<__CFUUID> typeUUID, - ); -typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = - ffi.Void Function(ffi.Pointer instanceData); -typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = - void Function(ffi.Pointer instanceData); -typedef CFPlugInInstanceGetInterfaceFunctionFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__CFPlugInInstance> instance, - ffi.Pointer interfaceName, - ffi.Pointer> ftbl, - ); -typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = - int Function( - ffi.Pointer<__CFPlugInInstance> instance, - ffi.Pointer interfaceName, - ffi.Pointer> ftbl, - ); -typedef CFPlugInUnloadFunctionFunction = - ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); -typedef DartCFPlugInUnloadFunctionFunction = - void Function(ffi.Pointer<__CFBundle> plugIn); -typedef CFProxyAutoConfigurationResultCallbackFunction = - ffi.Void Function( - ffi.Pointer client, - ffi.Pointer<__CFArray> proxyList, - ffi.Pointer<__CFError> error, - ); -typedef DartCFProxyAutoConfigurationResultCallbackFunction = - void Function( - ffi.Pointer client, - ffi.Pointer<__CFArray> proxyList, - ffi.Pointer<__CFError> error, - ); - -final class CFRange extends ffi.Opaque {} - -typedef CFReadStreamClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFReadStream> stream, - ffi.UnsignedLong type, - ffi.Pointer clientCallBackInfo, - ); -typedef DartCFReadStreamClientCallBackFunction = - void Function( - ffi.Pointer<__CFReadStream> stream, - int type, - ffi.Pointer clientCallBackInfo, - ); - -sealed class CFRunLoopActivity { - static const kCFRunLoopEntry = 1; - static const kCFRunLoopBeforeTimers = 2; - static const kCFRunLoopBeforeSources = 4; - static const kCFRunLoopBeforeWaiting = 32; - static const kCFRunLoopAfterWaiting = 64; - static const kCFRunLoopExit = 128; - static const kCFRunLoopAllActivities = 268435455; -} - -typedef CFRunLoopObserverCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFRunLoopObserver> observer, - ffi.UnsignedLong activity, - ffi.Pointer info, - ); -typedef DartCFRunLoopObserverCallBackFunction = - void Function( - ffi.Pointer<__CFRunLoopObserver> observer, - int activity, - ffi.Pointer info, - ); -typedef CFRunLoopTimerCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFRunLoopTimer> timer, - ffi.Pointer info, - ); -typedef DartCFRunLoopTimerCallBackFunction = - void Function( - ffi.Pointer<__CFRunLoopTimer> timer, - ffi.Pointer info, - ); -typedef CFSetApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFSetApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFSetCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFSetEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFSetEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFSetHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFSetHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFSetReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFSetReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFSetRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFSocketCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFSocket> s, - ffi.UnsignedLong type, - ffi.Pointer<__CFData> address, - ffi.Pointer data, - ffi.Pointer info, - ); -typedef DartCFSocketCallBackFunction = - void Function( - ffi.Pointer<__CFSocket> s, - int type, - ffi.Pointer<__CFData> address, - ffi.Pointer data, - ffi.Pointer info, - ); - -sealed class CFSocketCallBackType { - static const kCFSocketNoCallBack = 0; - static const kCFSocketReadCallBack = 1; - static const kCFSocketAcceptCallBack = 2; - static const kCFSocketDataCallBack = 3; - static const kCFSocketConnectCallBack = 4; - static const kCFSocketWriteCallBack = 8; -} - -final class CFStreamError extends ffi.Opaque {} - -sealed class CFStreamEventType { - static const kCFStreamEventNone = 0; - static const kCFStreamEventOpenCompleted = 1; - static const kCFStreamEventHasBytesAvailable = 2; - static const kCFStreamEventCanAcceptBytes = 4; - static const kCFStreamEventErrorOccurred = 8; - static const kCFStreamEventEndEncountered = 16; -} - -typedef CFTreeApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFTreeApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFTreeCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFTreeReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFTreeReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFTreeRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFUserNotificationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFUserNotification> userNotification, - ffi.UnsignedLong responseFlags, - ); -typedef DartCFUserNotificationCallBackFunction = - void Function( - ffi.Pointer<__CFUserNotification> userNotification, - int responseFlags, - ); -typedef CFWriteStreamClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFWriteStream> stream, - ffi.UnsignedLong type, - ffi.Pointer clientCallBackInfo, - ); -typedef DartCFWriteStreamClientCallBackFunction = - void Function( - ffi.Pointer<__CFWriteStream> stream, - int type, - ffi.Pointer clientCallBackInfo, - ); - -final class CFXMLExternalID extends ffi.Opaque {} - -typedef CFXMLParserAddChildCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ); -typedef DartCFXMLParserAddChildCallBackFunction = - void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ); -typedef CFXMLParserCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFXMLParserCreateXMLStructureCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer<__CFXMLNode> nodeDesc, - ffi.Pointer info, - ); -typedef CFXMLParserEndXMLStructureCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ); -typedef DartCFXMLParserEndXMLStructureCallBackFunction = - void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ); -typedef CFXMLParserHandleErrorCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Long error, - ffi.Pointer info, - ); -typedef DartCFXMLParserHandleErrorCallBackFunction = - int Function( - ffi.Pointer<__CFXMLParser> parser, - int error, - ffi.Pointer info, - ); -typedef CFXMLParserReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFXMLParserReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFXMLParserResolveExternalEntityCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer extID, - ffi.Pointer info, - ); -typedef CFXMLParserRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); - -sealed class CFXMLParserStatusCode { - static const kCFXMLStatusParseNotBegun = -2; - static const kCFXMLStatusParseInProgress = -1; - static const kCFXMLStatusParseSuccessful = 0; - static const kCFXMLErrorUnexpectedEOF = 1; - static const kCFXMLErrorUnknownEncoding = 2; - static const kCFXMLErrorEncodingConversionFailure = 3; - static const kCFXMLErrorMalformedProcessingInstruction = 4; - static const kCFXMLErrorMalformedDTD = 5; - static const kCFXMLErrorMalformedName = 6; - static const kCFXMLErrorMalformedCDSect = 7; - static const kCFXMLErrorMalformedCloseTag = 8; - static const kCFXMLErrorMalformedStartTag = 9; - static const kCFXMLErrorMalformedDocument = 10; - static const kCFXMLErrorElementlessDocument = 11; - static const kCFXMLErrorMalformedComment = 12; - static const kCFXMLErrorMalformedCharacterReference = 13; - static const kCFXMLErrorMalformedParsedCharacterData = 14; - static const kCFXMLErrorNoData = 15; -} - -typedef CGBitmapContextReleaseDataCallbackFunction = - ffi.Void Function( - ffi.Pointer releaseInfo, - ffi.Pointer data, - ); -typedef DartCGBitmapContextReleaseDataCallbackFunction = - void Function( - ffi.Pointer releaseInfo, - ffi.Pointer data, - ); - -final class CGContext extends ffi.Opaque {} - -typedef CGDataConsumerPutBytesCallbackFunction = - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - ffi.Size count, - ); -typedef DartCGDataConsumerPutBytesCallbackFunction = - int Function( - ffi.Pointer info, - ffi.Pointer buffer, - int count, - ); -typedef CGDataConsumerReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGDataConsumerReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGDataProviderGetBytePointerCallbackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CGDataProviderGetBytesAtPositionCallbackFunction = - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - ffi.LongLong pos, - ffi.Size cnt, - ); -typedef DartCGDataProviderGetBytesAtPositionCallbackFunction = - int Function( - ffi.Pointer info, - ffi.Pointer buffer, - int pos, - int cnt, - ); -typedef CGDataProviderGetBytesCallbackFunction = - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - ffi.Size count, - ); -typedef DartCGDataProviderGetBytesCallbackFunction = - int Function( - ffi.Pointer info, - ffi.Pointer buffer, - int count, - ); -typedef CGDataProviderReleaseBytePointerCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer pointer, - ); -typedef DartCGDataProviderReleaseBytePointerCallbackFunction = - void Function(ffi.Pointer info, ffi.Pointer pointer); -typedef CGDataProviderReleaseDataCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer data, - ffi.Size size, - ); -typedef DartCGDataProviderReleaseDataCallbackFunction = - void Function( - ffi.Pointer info, - ffi.Pointer data, - int size, - ); -typedef CGDataProviderReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGDataProviderReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGDataProviderRewindCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGDataProviderRewindCallbackFunction = - void Function(ffi.Pointer info); -typedef CGDataProviderSkipForwardCallbackFunction = - ffi.LongLong Function(ffi.Pointer info, ffi.LongLong count); -typedef DartCGDataProviderSkipForwardCallbackFunction = - int Function(ffi.Pointer info, int count); - -sealed class CGDisplayChangeSummaryFlags { - static const kCGDisplayBeginConfigurationFlag = 1; - static const kCGDisplayMovedFlag = 2; - static const kCGDisplaySetMainFlag = 4; - static const kCGDisplaySetModeFlag = 8; - static const kCGDisplayAddFlag = 16; - static const kCGDisplayRemoveFlag = 32; - static const kCGDisplayEnabledFlag = 256; - static const kCGDisplayDisabledFlag = 512; - static const kCGDisplayMirrorFlag = 1024; - static const kCGDisplayUnMirrorFlag = 2048; - static const kCGDisplayDesktopShapeChangedFlag = 4096; -} - -typedef CGDisplayReconfigurationCallBackFunction = - ffi.Void Function( - ffi.Uint32 display, - ffi.Uint32 flags, - ffi.Pointer userInfo, - ); -typedef DartCGDisplayReconfigurationCallBackFunction = - void Function(int display, int flags, ffi.Pointer userInfo); -typedef CGErrorCallbackFunction = ffi.Void Function(); -typedef DartCGErrorCallbackFunction = void Function(); -typedef CGEventTapCallBackFunction = - ffi.Pointer<__CGEvent> Function( - ffi.Pointer<__CGEventTapProxy> proxy, - ffi.Uint32 type, - ffi.Pointer<__CGEvent> event, - ffi.Pointer userInfo, - ); -typedef DartCGEventTapCallBackFunction = - ffi.Pointer<__CGEvent> Function( - ffi.Pointer<__CGEventTapProxy> proxy, - CGEventType type, - ffi.Pointer<__CGEvent> event, - ffi.Pointer userInfo, - ); - -enum CGEventType { - kCGEventNull(0), - kCGEventLeftMouseDown(1), - kCGEventLeftMouseUp(2), - kCGEventRightMouseDown(3), - kCGEventRightMouseUp(4), - kCGEventMouseMoved(5), - kCGEventLeftMouseDragged(6), - kCGEventRightMouseDragged(7), - kCGEventKeyDown(10), - kCGEventKeyUp(11), - kCGEventFlagsChanged(12), - kCGEventScrollWheel(22), - kCGEventTabletPointer(23), - kCGEventTabletProximity(24), - kCGEventOtherMouseDown(25), - kCGEventOtherMouseUp(26), - kCGEventOtherMouseDragged(27), - kCGEventTapDisabledByTimeout(-2), - kCGEventTapDisabledByUserInput(-1); - - final int value; - const CGEventType(this.value); - - static CGEventType fromValue(int value) => switch (value) { - 0 => kCGEventNull, - 1 => kCGEventLeftMouseDown, - 2 => kCGEventLeftMouseUp, - 3 => kCGEventRightMouseDown, - 4 => kCGEventRightMouseUp, - 5 => kCGEventMouseMoved, - 6 => kCGEventLeftMouseDragged, - 7 => kCGEventRightMouseDragged, - 10 => kCGEventKeyDown, - 11 => kCGEventKeyUp, - 12 => kCGEventFlagsChanged, - 22 => kCGEventScrollWheel, - 23 => kCGEventTabletPointer, - 24 => kCGEventTabletProximity, - 25 => kCGEventOtherMouseDown, - 26 => kCGEventOtherMouseUp, - 27 => kCGEventOtherMouseDragged, - -2 => kCGEventTapDisabledByTimeout, - -1 => kCGEventTapDisabledByUserInput, - _ => throw ArgumentError('Unknown value for CGEventType: $value'), - }; -} - -typedef CGFunctionEvaluateCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer in$, - ffi.Pointer out, - ); -typedef DartCGFunctionEvaluateCallbackFunction = - void Function( - ffi.Pointer info, - ffi.Pointer in$, - ffi.Pointer out, - ); -typedef CGFunctionReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGFunctionReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGPDFDictionaryApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer info, - ); -typedef DartCGPDFDictionaryApplierFunctionFunction = - void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer info, - ); - -final class CGPDFObject extends ffi.Opaque {} - -typedef CGPDFOperatorCallbackFunction = - ffi.Void Function( - ffi.Pointer scanner, - ffi.Pointer info, - ); -typedef DartCGPDFOperatorCallbackFunction = - void Function( - ffi.Pointer scanner, - ffi.Pointer info, - ); - -final class CGPDFScanner extends ffi.Opaque {} - -typedef CGPSConverterBeginDocumentCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPSConverterBeginDocumentCallbackFunction = - void Function(ffi.Pointer info); -typedef CGPSConverterBeginPageCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Size pageNumber, - ffi.Pointer<__CFDictionary> pageInfo, - ); -typedef DartCGPSConverterBeginPageCallbackFunction = - void Function( - ffi.Pointer info, - int pageNumber, - ffi.Pointer<__CFDictionary> pageInfo, - ); -typedef CGPSConverterEndDocumentCallbackFunction = - ffi.Void Function(ffi.Pointer info, ffi.Bool success); -typedef DartCGPSConverterEndDocumentCallbackFunction = - void Function(ffi.Pointer info, bool success); -typedef CGPSConverterEndPageCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Size pageNumber, - ffi.Pointer<__CFDictionary> pageInfo, - ); -typedef DartCGPSConverterEndPageCallbackFunction = - void Function( - ffi.Pointer info, - int pageNumber, - ffi.Pointer<__CFDictionary> pageInfo, - ); -typedef CGPSConverterMessageCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer message, - ); -typedef DartCGPSConverterMessageCallbackFunction = - void Function( - ffi.Pointer info, - ffi.Pointer message, - ); -typedef CGPSConverterProgressCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPSConverterProgressCallbackFunction = - void Function(ffi.Pointer info); -typedef CGPSConverterReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPSConverterReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGPathApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer element, - ); -typedef DartCGPathApplierFunctionFunction = - void Function( - ffi.Pointer info, - ffi.Pointer element, - ); - -final class CGPathElement extends ffi.Opaque {} - -typedef CGPatternDrawPatternCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer context, - ); -typedef DartCGPatternDrawPatternCallbackFunction = - void Function(ffi.Pointer info, ffi.Pointer context); -typedef CGPatternReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPatternReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGScreenRefreshCallbackFunction = - ffi.Void Function( - ffi.Uint32 count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); -typedef DartCGScreenRefreshCallbackFunction = - void Function( - int count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); -typedef CGScreenUpdateMoveCallbackFunction = - ffi.Void Function( - CGScreenUpdateMoveDelta delta, - ffi.Size count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); -typedef DartCGScreenUpdateMoveCallbackFunction = - void Function( - CGScreenUpdateMoveDelta delta, - int count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); - -final class CGScreenUpdateMoveDelta extends ffi.Opaque {} - -typedef CMBitmapCallBackProcPtrFunction = - ffi.UnsignedChar Function(ffi.Int progress, ffi.Pointer refCon); -typedef DartCMBitmapCallBackProcPtrFunction = - int Function(int progress, ffi.Pointer refCon); -typedef CMConcatCallBackProcPtrFunction = - ffi.UnsignedChar Function(ffi.Int progress, ffi.Pointer refCon); -typedef DartCMConcatCallBackProcPtrFunction = - int Function(int progress, ffi.Pointer refCon); - -final class CMDeviceInfo extends ffi.Opaque {} - -typedef CMFlattenProcPtrFunction = - ffi.Short Function( - ffi.Int command, - ffi.Pointer size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef DartCMFlattenProcPtrFunction = - int Function( - int command, - ffi.Pointer size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef CMIterateDeviceInfoProcPtrFunction = - ffi.Short Function( - ffi.Pointer deviceInfo, - ffi.Pointer refCon, - ); -typedef DartCMIterateDeviceInfoProcPtrFunction = - int Function( - ffi.Pointer deviceInfo, - ffi.Pointer refCon, - ); -typedef CMIterateDeviceProfileProcPtrFunction = - ffi.Short Function( - ffi.Pointer deviceInfo, - ffi.Pointer profileInfo, - ffi.Pointer refCon, - ); -typedef DartCMIterateDeviceProfileProcPtrFunction = - int Function( - ffi.Pointer deviceInfo, - ffi.Pointer profileInfo, - ffi.Pointer refCon, - ); -typedef CMLabToLabProcPtrFunction = - ffi.Void Function( - ffi.Pointer L, - ffi.Pointer a, - ffi.Pointer b, - ffi.Pointer refcon, - ); -typedef DartCMLabToLabProcPtrFunction = - void Function( - ffi.Pointer L, - ffi.Pointer a, - ffi.Pointer b, - ffi.Pointer refcon, - ); -typedef CMMApplyTransformProcFunction = - ffi.Bool Function( - ffi.Pointer transform, - ffi.Size width, - ffi.Size height, - ffi.Size dstPlanes, - ffi.Pointer> dst, - ffi.UnsignedInt dstDepth, - ffi.Uint32 dstFormat, - ffi.Size dstBytesPerRow, - ffi.Size srcPlanes, - ffi.Pointer> src, - ffi.UnsignedInt srcDepth, - ffi.Uint32 srcFormat, - ffi.Size srcBytesPerRow, - ffi.Pointer<__CFDictionary> options, - ); -typedef DartCMMApplyTransformProcFunction = - bool Function( - ffi.Pointer transform, - int width, - int height, - int dstPlanes, - ffi.Pointer> dst, - ColorSyncDataDepth dstDepth, - int dstFormat, - int dstBytesPerRow, - int srcPlanes, - ffi.Pointer> src, - ColorSyncDataDepth srcDepth, - int srcFormat, - int srcBytesPerRow, - ffi.Pointer<__CFDictionary> options, - ); -typedef CMMCreateTransformPropertyProcFunction = - ffi.Pointer Function( - ffi.Pointer transform, - ffi.Pointer key, - ffi.Pointer<__CFDictionary> options, - ); - -final class CMMInfo extends ffi.Opaque {} - -typedef CMMInitializeLinkProfileProcFunction = - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer<__CFArray>, - ffi.Pointer<__CFDictionary>, - ); -typedef DartCMMInitializeLinkProfileProcFunction = - bool Function( - ffi.Pointer, - ffi.Pointer<__CFArray>, - ffi.Pointer<__CFDictionary>, - ); -typedef CMMInitializeTransformProcFunction = - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer<__CFArray>, - ffi.Pointer<__CFDictionary>, - ); -typedef DartCMMInitializeTransformProcFunction = - bool Function( - ffi.Pointer, - ffi.Pointer<__CFArray>, - ffi.Pointer<__CFDictionary>, - ); -typedef CMMIterateProcPtrFunction = - ffi.Short Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ); -typedef DartCMMIterateProcPtrFunction = - int Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ); - -final class CMProfileIterateData extends ffi.Opaque {} - -typedef CMProfileIterateProcPtrFunction = - ffi.Short Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ); -typedef DartCMProfileIterateProcPtrFunction = - int Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ); -typedef CSIdentityQueryReceiveEventCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CSIdentityQuery> query, - ffi.Long event, - ffi.Pointer<__CFArray> identities, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef DartCSIdentityQueryReceiveEventCallbackFunction = - void Function( - ffi.Pointer<__CSIdentityQuery> query, - int event, - ffi.Pointer<__CFArray> identities, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef CSIdentityStatusUpdatedCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CSIdentity> identity, - ffi.Long status, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef DartCSIdentityStatusUpdatedCallbackFunction = - void Function( - ffi.Pointer<__CSIdentity> identity, - int status, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef CSSM_ACL_SUBJECT_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer SubjectRequest, - ffi.Pointer SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, - ); -typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = - int Function( - ffi.Pointer SubjectRequest, - ffi.Pointer SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, - ); -typedef CSSM_API_ModuleEventHandlerFunction = - ffi.Int32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - ffi.Uint32 SubserviceId, - ffi.Uint32 ServiceType, - ffi.Uint32 EventType, - ); -typedef DartCSSM_API_ModuleEventHandlerFunction = - int Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - int SubserviceId, - int ServiceType, - int EventType, - ); -typedef CSSM_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer OutData, - ffi.Pointer CallerCtx, - ); -typedef DartCSSM_CALLBACKFunction = - int Function( - ffi.Pointer OutData, - ffi.Pointer CallerCtx, - ); -typedef CSSM_CALLOCFunction = - ffi.Pointer Function( - ffi.Uint32 num, - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_CALLOCFunction = - ffi.Pointer Function( - int num, - int size, - ffi.Pointer allocref, - ); -typedef CSSM_CHALLENGE_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer Challenge, - ffi.Pointer Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ); -typedef DartCSSM_CHALLENGE_CALLBACKFunction = - int Function( - ffi.Pointer Challenge, - ffi.Pointer Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ); -typedef CSSM_FREEFunction = - ffi.Void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ); -typedef DartCSSM_FREEFunction = - void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ); -typedef CSSM_MALLOCFunction = - ffi.Pointer Function( - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_MALLOCFunction = - ffi.Pointer Function(int size, ffi.Pointer allocref); -typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); -typedef DartCSSM_PROC_ADDRFunction = void Function(); -typedef CSSM_REALLOCFunction = - ffi.Pointer Function( - ffi.Pointer memblock, - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_REALLOCFunction = - ffi.Pointer Function( - ffi.Pointer memblock, - int size, - ffi.Pointer allocref, - ); -typedef CSSM_SPI_ModuleEventHandlerFunction = - ffi.Int32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - ffi.Uint32 SubserviceId, - ffi.Uint32 ServiceType, - ffi.Uint32 EventType, - ); -typedef DartCSSM_SPI_ModuleEventHandlerFunction = - int Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - int SubserviceId, - int ServiceType, - int EventType, - ); -typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = - ffi.Int32 Function( - ffi.IntPtr ModuleHandle, - ffi.Pointer CallerCtx, - ffi.Pointer VerifiedCert, - ); -typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = - int Function( - int ModuleHandle, - ffi.Pointer CallerCtx, - ffi.Pointer VerifiedCert, - ); -typedef CSSM_UPCALLS_CALLOCFunction = - ffi.Pointer Function( - ffi.IntPtr AddInHandle, - ffi.Size num, - ffi.Size size, - ); -typedef DartCSSM_UPCALLS_CALLOCFunction = - ffi.Pointer Function(int AddInHandle, int num, int size); -typedef CSSM_UPCALLS_FREEFunction = - ffi.Void Function(ffi.IntPtr AddInHandle, ffi.Pointer memblock); -typedef DartCSSM_UPCALLS_FREEFunction = - void Function(int AddInHandle, ffi.Pointer memblock); -typedef CSSM_UPCALLS_MALLOCFunction = - ffi.Pointer Function(ffi.IntPtr AddInHandle, ffi.Size size); -typedef DartCSSM_UPCALLS_MALLOCFunction = - ffi.Pointer Function(int AddInHandle, int size); -typedef CSSM_UPCALLS_REALLOCFunction = - ffi.Pointer Function( - ffi.IntPtr AddInHandle, - ffi.Pointer memblock, - ffi.Size size, - ); -typedef DartCSSM_UPCALLS_REALLOCFunction = - ffi.Pointer Function( - int AddInHandle, - ffi.Pointer memblock, - int size, - ); -typedef CTFontCollectionSortDescriptorsCallbackFunction = - ffi.Long Function( - ffi.Pointer<__CTFontDescriptor> first, - ffi.Pointer<__CTFontDescriptor> second, - ffi.Pointer refCon, - ); -typedef DartCTFontCollectionSortDescriptorsCallbackFunction = - CFComparisonResult Function( - ffi.Pointer<__CTFontDescriptor> first, - ffi.Pointer<__CTFontDescriptor> second, - ffi.Pointer refCon, - ); -typedef CTRunDelegateDeallocateCallbackFunction = - ffi.Void Function(ffi.Pointer refCon); -typedef DartCTRunDelegateDeallocateCallbackFunction = - void Function(ffi.Pointer refCon); -typedef CTRunDelegateGetAscentCallbackFunction = - ffi.Double Function(ffi.Pointer refCon); -typedef DartCTRunDelegateGetAscentCallbackFunction = - double Function(ffi.Pointer refCon); -typedef CTRunDelegateGetDescentCallbackFunction = - ffi.Double Function(ffi.Pointer refCon); -typedef DartCTRunDelegateGetDescentCallbackFunction = - double Function(ffi.Pointer refCon); -typedef CTRunDelegateGetWidthCallbackFunction = - ffi.Double Function(ffi.Pointer refCon); -typedef DartCTRunDelegateGetWidthCallbackFunction = - double Function(ffi.Pointer refCon); -typedef CVDisplayLinkOutputCallbackFunction = - ffi.Int32 Function( - ffi.Pointer<__CVDisplayLink> displayLink, - ffi.Pointer inNow, - ffi.Pointer inOutputTime, - ffi.Uint64 flagsIn, - ffi.Pointer flagsOut, - ffi.Pointer displayLinkContext, - ); -typedef DartCVDisplayLinkOutputCallbackFunction = - int Function( - ffi.Pointer<__CVDisplayLink> displayLink, - ffi.Pointer inNow, - ffi.Pointer inOutputTime, - int flagsIn, - ffi.Pointer flagsOut, - ffi.Pointer displayLinkContext, - ); -typedef CVFillExtendedPixelsCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__CVBuffer> pixelBuffer, - ffi.Pointer refCon, - ); -typedef DartCVFillExtendedPixelsCallBackFunction = - int Function( - ffi.Pointer<__CVBuffer> pixelBuffer, - ffi.Pointer refCon, - ); -typedef CVPixelBufferReleaseBytesCallbackFunction = - ffi.Void Function( - ffi.Pointer releaseRefCon, - ffi.Pointer baseAddress, - ); -typedef DartCVPixelBufferReleaseBytesCallbackFunction = - void Function( - ffi.Pointer releaseRefCon, - ffi.Pointer baseAddress, - ); -typedef CVPixelBufferReleasePlanarBytesCallbackFunction = - ffi.Void Function( - ffi.Pointer releaseRefCon, - ffi.Pointer dataPtr, - ffi.Size dataSize, - ffi.Size numberOfPlanes, - ffi.Pointer> planeAddresses, - ); -typedef DartCVPixelBufferReleasePlanarBytesCallbackFunction = - void Function( - ffi.Pointer releaseRefCon, - ffi.Pointer dataPtr, - int dataSize, - int numberOfPlanes, - ffi.Pointer> planeAddresses, - ); - -final class CVTimeStamp extends ffi.Opaque {} - -typedef CollectionExceptionProcPtrFunction = - ffi.Short Function(ffi.Pointer c, ffi.Short status); -typedef DartCollectionExceptionProcPtrFunction = - int Function(ffi.Pointer c, int status); -typedef CollectionFlattenProcPtrFunction = - ffi.Short Function( - ffi.Int size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef DartCollectionFlattenProcPtrFunction = - int Function( - int size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef ColorComplementProcPtrFunction = - ffi.UnsignedChar Function(ffi.Pointer rgb); -typedef DartColorComplementProcPtrFunction = - int Function(ffi.Pointer rgb); -typedef ColorSearchProcPtrFunction = - ffi.UnsignedChar Function( - ffi.Pointer rgb, - ffi.Pointer position, - ); -typedef DartColorSearchProcPtrFunction = - int Function(ffi.Pointer rgb, ffi.Pointer position); - -final class ColorSyncCMM extends ffi.Opaque {} - -typedef ColorSyncCMMIterateCallbackFunction = - ffi.Bool Function( - ffi.Pointer cmm, - ffi.Pointer userInfo, - ); -typedef DartColorSyncCMMIterateCallbackFunction = - bool Function( - ffi.Pointer cmm, - ffi.Pointer userInfo, - ); - -enum ColorSyncDataDepth { - kColorSync1BitGamut(1), - kColorSync8BitInteger(2), - kColorSync16BitInteger(3), - kColorSync16BitFloat(4), - kColorSync32BitInteger(5), - kColorSync32BitNamedColorIndex(6), - kColorSync32BitFloat(7), - kColorSync10BitInteger(8); - - final int value; - const ColorSyncDataDepth(this.value); - - static ColorSyncDataDepth fromValue(int value) => switch (value) { - 1 => kColorSync1BitGamut, - 2 => kColorSync8BitInteger, - 3 => kColorSync16BitInteger, - 4 => kColorSync16BitFloat, - 5 => kColorSync32BitInteger, - 6 => kColorSync32BitNamedColorIndex, - 7 => kColorSync32BitFloat, - 8 => kColorSync10BitInteger, - _ => throw ArgumentError('Unknown value for ColorSyncDataDepth: $value'), - }; -} - -typedef ColorSyncDeviceProfileIterateCallbackFunction = - ffi.Bool Function( - ffi.Pointer<__CFDictionary> colorSyncDeviceProfileInfo, - ffi.Pointer userInfo, - ); -typedef DartColorSyncDeviceProfileIterateCallbackFunction = - bool Function( - ffi.Pointer<__CFDictionary> colorSyncDeviceProfileInfo, - ffi.Pointer userInfo, - ); - -final class ColorSyncProfile extends ffi.Opaque {} - -typedef ColorSyncProfileIterateCallbackFunction = - ffi.Bool Function( - ffi.Pointer<__CFDictionary> profileInfo, - ffi.Pointer userInfo, - ); -typedef DartColorSyncProfileIterateCallbackFunction = - bool Function( - ffi.Pointer<__CFDictionary> profileInfo, - ffi.Pointer userInfo, - ); - -final class ColorSyncTransform extends ffi.Opaque {} - -@ffi.Packed(2) -final class ComponentMPWorkFunctionHeaderRecord extends ffi.Opaque {} - -typedef ComponentMPWorkFunctionProcPtrFunction = - ffi.Int Function( - ffi.Pointer globalRefCon, - ffi.Pointer header, - ); -typedef DartComponentMPWorkFunctionProcPtrFunction = - int Function( - ffi.Pointer globalRefCon, - ffi.Pointer header, - ); - -@ffi.Packed(2) -final class ComponentParameters extends ffi.Opaque {} - -@ffi.Packed(2) -final class ComponentRecord extends ffi.Opaque {} - -typedef ComponentRoutineProcPtrFunction = - ffi.Int Function( - ffi.Pointer cp, - ffi.Pointer> componentStorage, - ); -typedef DartComponentRoutineProcPtrFunction = - int Function( - ffi.Pointer cp, - ffi.Pointer> componentStorage, - ); -typedef CoreEndianFlipProcFunction = - ffi.Int Function( - ffi.UnsignedInt dataDomain, - ffi.UnsignedInt dataType, - ffi.Short id, - ffi.Pointer dataPtr, - ffi.UnsignedLong dataSize, - ffi.UnsignedChar currentlyNative, - ffi.Pointer refcon, - ); -typedef DartCoreEndianFlipProcFunction = - int Function( - int dataDomain, - int dataType, - int id, - ffi.Pointer dataPtr, - int dataSize, - int currentlyNative, - ffi.Pointer refcon, - ); -typedef DebugAssertOutputHandlerProcPtrFunction = - ffi.Void Function( - ffi.UnsignedInt componentSignature, - ffi.UnsignedInt options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - ffi.Long lineNumber, - ffi.Pointer value, - ffi.Pointer outputMsg, - ); -typedef DartDebugAssertOutputHandlerProcPtrFunction = - void Function( - int componentSignature, - int options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - int lineNumber, - ffi.Pointer value, - ffi.Pointer outputMsg, - ); -typedef DebugComponentCallbackProcPtrFunction = - ffi.Void Function( - ffi.Int optionSelectorNum, - ffi.UnsignedInt command, - ffi.Pointer optionSetting, - ); -typedef DartDebugComponentCallbackProcPtrFunction = - void Function( - int optionSelectorNum, - int command, - ffi.Pointer optionSetting, - ); -typedef DebuggerDisposeThreadProcPtrFunction = - ffi.Void Function(ffi.UnsignedLong threadDeleted); -typedef DartDebuggerDisposeThreadProcPtrFunction = - void Function(int threadDeleted); -typedef DebuggerNewThreadProcPtrFunction = - ffi.Void Function(ffi.UnsignedLong threadCreated); -typedef DartDebuggerNewThreadProcPtrFunction = void Function(int threadCreated); -typedef DebuggerThreadSchedulerProcPtrFunction = - ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); -typedef DartDebuggerThreadSchedulerProcPtrFunction = - int Function(ffi.Pointer schedulerInfo); -typedef DeferredTaskProcPtrFunction = ffi.Void Function(ffi.Long dtParam); -typedef DartDeferredTaskProcPtrFunction = void Function(int dtParam); -typedef DragGrayRgnProcPtrFunction = ffi.Void Function(); -typedef DartDragGrayRgnProcPtrFunction = void Function(); -typedef ExceptionHandlerProcPtrFunction = - ffi.Int Function(ffi.Pointer theException); -typedef DartExceptionHandlerProcPtrFunction = - int Function(ffi.Pointer theException); - -final class ExceptionInformation extends ffi.Opaque {} - -typedef FNSubscriptionProcPtrFunction = - ffi.Void Function( - ffi.UnsignedInt message, - ffi.UnsignedInt flags, - ffi.Pointer refcon, - ffi.Pointer subscription, - ); -typedef DartFNSubscriptionProcPtrFunction = - void Function( - int message, - int flags, - ffi.Pointer refcon, - ffi.Pointer subscription, - ); -typedef FSAliasFilterProcPtrFunction = - ffi.UnsignedChar Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - ffi.Pointer myDataPtr, - ); -typedef DartFSAliasFilterProcPtrFunction = - int Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - ffi.Pointer myDataPtr, - ); -typedef FSEventStreamCallbackFunction = - ffi.Void Function( - ffi.Pointer<__FSEventStream> streamRef, - ffi.Pointer clientCallBackInfo, - ffi.Size numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ); -typedef DartFSEventStreamCallbackFunction = - void Function( - ffi.Pointer<__FSEventStream> streamRef, - ffi.Pointer clientCallBackInfo, - int numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ); -typedef FSFileOperationStatusProcPtrFunction = - ffi.Void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - ffi.UnsignedInt stage, - ffi.Int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef DartFSFileOperationStatusProcPtrFunction = - void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - int stage, - int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef FSPathFileOperationStatusProcPtrFunction = - ffi.Void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - ffi.UnsignedInt stage, - ffi.Int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef DartFSPathFileOperationStatusProcPtrFunction = - void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - int stage, - int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); - -final class FSRef extends ffi.Opaque {} - -typedef FSVolumeEjectProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short volumeRefNum, - ffi.Int dissenter, - ); -typedef DartFSVolumeEjectProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - ); -typedef FSVolumeMountProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short mountedVolumeRefNum, - ); -typedef DartFSVolumeMountProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int mountedVolumeRefNum, - ); -typedef FSVolumeUnmountProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short volumeRefNum, - ffi.Int dissenter, - ); -typedef DartFSVolumeUnmountProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - ); - -@ffi.Packed(2) -final class Float32Point extends ffi.Opaque {} - -typedef FolderManagerNotificationProcPtrFunction = - ffi.Int Function( - ffi.UnsignedInt message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ); -typedef DartFolderManagerNotificationProcPtrFunction = - int Function( - int message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ); - -final class FontInfo extends ffi.Opaque {} - -typedef GetMissingComponentResourceProcPtrFunction = - ffi.Short Function( - ffi.Pointer c, - ffi.UnsignedInt resType, - ffi.Short resID, - ffi.Pointer refCon, - ffi.Pointer>> resource, - ); -typedef DartGetMissingComponentResourceProcPtrFunction = - int Function( - ffi.Pointer c, - int resType, - int resID, - ffi.Pointer refCon, - ffi.Pointer>> resource, - ); -typedef HIShapeEnumerateProcPtrFunction = - ffi.Int Function( - ffi.Int inMessage, - ffi.Pointer<__HIShape> inShape, - ffi.Pointer inRect, - ffi.Pointer inRefcon, - ); -typedef DartHIShapeEnumerateProcPtrFunction = - int Function( - int inMessage, - ffi.Pointer<__HIShape> inShape, - ffi.Pointer inRect, - ffi.Pointer inRefcon, - ); -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef IOAsyncCallback0Function = - ffi.Void Function(ffi.Pointer refcon, ffi.Int result); -typedef DartIOAsyncCallback0Function = - void Function(ffi.Pointer refcon, int result); -typedef IOAsyncCallback1Function = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer arg0, - ); -typedef DartIOAsyncCallback1Function = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer arg0, - ); -typedef IOAsyncCallback2Function = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ); -typedef DartIOAsyncCallback2Function = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ); -typedef IOAsyncCallbackFunction = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer> args, - ffi.Uint32 numArgs, - ); -typedef DartIOAsyncCallbackFunction = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer> args, - int numArgs, - ); -typedef IOCompletionProcPtrFunction = - ffi.Void Function(ffi.Pointer paramBlock); -typedef DartIOCompletionProcPtrFunction = - void Function(ffi.Pointer paramBlock); -typedef IOServiceInterestCallbackFunction = - ffi.Void Function( - ffi.Pointer refcon, - ffi.UnsignedInt service, - ffi.Uint32 messageType, - ffi.Pointer messageArgument, - ); -typedef DartIOServiceInterestCallbackFunction = - void Function( - ffi.Pointer refcon, - int service, - int messageType, - ffi.Pointer messageArgument, - ); -typedef IOServiceMatchingCallbackFunction = - ffi.Void Function(ffi.Pointer refcon, ffi.UnsignedInt iterator); -typedef DartIOServiceMatchingCallbackFunction = - void Function(ffi.Pointer refcon, int iterator); -typedef IconActionProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt theType, - ffi.Pointer>> theIcon, - ffi.Pointer yourDataPtr, - ); -typedef DartIconActionProcPtrFunction = - int Function( - int theType, - ffi.Pointer>> theIcon, - ffi.Pointer yourDataPtr, - ); -typedef IconGetterProcPtrFunction = - ffi.Pointer> Function( - ffi.UnsignedInt theType, - ffi.Pointer yourDataPtr, - ); -typedef DartIconGetterProcPtrFunction = - ffi.Pointer> Function( - int theType, - ffi.Pointer yourDataPtr, - ); -typedef IndexToUCStringProcPtrFunction = - ffi.UnsignedChar Function( - ffi.UnsignedInt index, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer> outString, - ffi.Pointer tsOptions, - ); -typedef DartIndexToUCStringProcPtrFunction = - int Function( - int index, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer> outString, - ffi.Pointer tsOptions, - ); - -@ffi.Packed(2) -final class KCCallbackInfo extends ffi.Opaque {} - -typedef KCCallbackProcPtrFunction = - ffi.Int Function( - ffi.UnsignedShort keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ); -typedef DartKCCallbackProcPtrFunction = - int Function( - int keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ); -typedef LSSharedFileListChangedProcPtrFunction = - ffi.Void Function( - ffi.Pointer inList, - ffi.Pointer context, - ); -typedef DartLSSharedFileListChangedProcPtrFunction = - void Function( - ffi.Pointer inList, - ffi.Pointer context, - ); -typedef MDQueryCreateResultFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__MDQuery> query, - ffi.Pointer<__MDItem> item, - ffi.Pointer context, - ); -typedef MDQueryCreateValueFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__MDQuery> query, - ffi.Pointer attrName, - ffi.Pointer attrValue, - ffi.Pointer context, - ); -typedef MDQuerySortComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer> attrs1, - ffi.Pointer> attrs2, - ffi.Pointer context, - ); -typedef DartMDQuerySortComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer> attrs1, - ffi.Pointer> attrs2, - ffi.Pointer context, - ); -typedef MPIsFullyInitializedProcFunction = ffi.UnsignedChar Function(); -typedef DartMPIsFullyInitializedProcFunction = int Function(); -typedef MPRemoteProcedureFunction = - ffi.Pointer Function(ffi.Pointer parameter); - -final class MacPolygon extends ffi.Opaque {} - -final class NCMDeviceProfileInfo extends ffi.Opaque {} - -typedef OSLAccessorProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt desiredClass, - ffi.Pointer container, - ffi.UnsignedInt containerClass, - ffi.UnsignedInt form, - ffi.Pointer selectionData, - ffi.Pointer value, - ffi.Pointer accessorRefcon, - ); -typedef DartOSLAccessorProcPtrFunction = - int Function( - int desiredClass, - ffi.Pointer container, - int containerClass, - int form, - ffi.Pointer selectionData, - ffi.Pointer value, - ffi.Pointer accessorRefcon, - ); -typedef OSLAdjustMarksProcPtrFunction = - ffi.Short Function( - ffi.Long newStart, - ffi.Long newStop, - ffi.Pointer markToken, - ); -typedef DartOSLAdjustMarksProcPtrFunction = - int Function(int newStart, int newStop, ffi.Pointer markToken); -typedef OSLCompareProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ); -typedef DartOSLCompareProcPtrFunction = - int Function( - int oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ); -typedef OSLCountProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt desiredType, - ffi.UnsignedInt containerClass, - ffi.Pointer container, - ffi.Pointer result, - ); -typedef DartOSLCountProcPtrFunction = - int Function( - int desiredType, - int containerClass, - ffi.Pointer container, - ffi.Pointer result, - ); -typedef OSLDisposeTokenProcPtrFunction = - ffi.Short Function(ffi.Pointer unneededToken); -typedef DartOSLDisposeTokenProcPtrFunction = - int Function(ffi.Pointer unneededToken); -typedef OSLGetErrDescProcPtrFunction = - ffi.Short Function(ffi.Pointer> appDescPtr); -typedef DartOSLGetErrDescProcPtrFunction = - int Function(ffi.Pointer> appDescPtr); -typedef OSLGetMarkTokenProcPtrFunction = - ffi.Short Function( - ffi.Pointer dContainerToken, - ffi.UnsignedInt containerClass, - ffi.Pointer result, - ); -typedef DartOSLGetMarkTokenProcPtrFunction = - int Function( - ffi.Pointer dContainerToken, - int containerClass, - ffi.Pointer result, - ); -typedef OSLMarkProcPtrFunction = - ffi.Short Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - ffi.Long index, - ); -typedef DartOSLMarkProcPtrFunction = - int Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - int index, - ); - -/// Construction methods for `objc.ObjCBlock Function()>`. -abstract final class ObjCBlock_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function()> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function()>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function()> fromFunctionPointer( - ffi.Pointer Function()>> ptr, - ) => objc.ObjCBlock Function()>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function()> fromFunction( - ffi.Pointer<__CFError> Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function()>( - objc.newClosureBlock(_closureCallable, () { - return fn(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer<__CFError> _fnPtrTrampoline( - ffi.Pointer block, - ) => block.ref.target - .cast Function()>>() - .asFunction Function()>()(); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer<__CFError> _closureTrampoline( - ffi.Pointer block, - ) => (objc.getBlockClosure(block) as ffi.Pointer<__CFError> Function())(); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function()>`. -extension ObjCBlock_CFErrorRef$CallExtension - on objc.ObjCBlock Function()> { - ffi.Pointer<__CFError> call() { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFError> Function( - ffi.Pointer block, - ) - > - >() - .asFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >()(ref.pointer); - } -} - -final class OpaqueATSUTextLayout extends ffi.Opaque {} - -final class OpaqueCollection extends ffi.Opaque {} - -final class OpaqueFNSubscriptionRef extends ffi.Opaque {} - -final class OpaqueFSVolumeOperation extends ffi.Opaque {} - -final class OpaqueGrafPtr extends ffi.Opaque {} - -final class OpaqueLSSharedFileListRef extends ffi.Opaque {} - -final class OpaquePasteboardRef extends ffi.Opaque {} - -final class OpaqueRgnHandle extends ffi.Opaque {} - -final class OpaqueSecTransformImplementation extends ffi.Opaque {} - -final class OpaqueTECObjectRef extends ffi.Opaque {} - -final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} - -final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} - -final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} - -typedef PasteboardPromiseKeeperProcPtrFunction = - ffi.Int Function( - ffi.Pointer pasteboard, - ffi.Pointer item, - ffi.Pointer flavorType, - ffi.Pointer context, - ); -typedef DartPasteboardPromiseKeeperProcPtrFunction = - int Function( - ffi.Pointer pasteboard, - ffi.Pointer item, - ffi.Pointer flavorType, - ffi.Pointer context, - ); - -final class Point extends ffi.Opaque {} - -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef QDArcProcPtrFunction = - ffi.Void Function( - ffi.SignedChar verb, - ffi.Pointer r, - ffi.Short startAngle, - ffi.Short arcAngle, - ); -typedef DartQDArcProcPtrFunction = - void Function(int verb, ffi.Pointer r, int startAngle, int arcAngle); -typedef QDBitsProcPtrFunction = - ffi.Void Function( - ffi.Pointer srcBits, - ffi.Pointer srcRect, - ffi.Pointer dstRect, - ffi.Short mode, - ffi.Pointer maskRgn, - ); -typedef DartQDBitsProcPtrFunction = - void Function( - ffi.Pointer srcBits, - ffi.Pointer srcRect, - ffi.Pointer dstRect, - int mode, - ffi.Pointer maskRgn, - ); -typedef QDCommentProcPtrFunction = - ffi.Void Function( - ffi.Short kind, - ffi.Short dataSize, - ffi.Pointer> dataHandle, - ); -typedef DartQDCommentProcPtrFunction = - void Function( - int kind, - int dataSize, - ffi.Pointer> dataHandle, - ); -typedef QDGetPicProcPtrFunction = - ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); -typedef DartQDGetPicProcPtrFunction = - void Function(ffi.Pointer dataPtr, int byteCount); -typedef QDJShieldCursorProcPtrFunction = - ffi.Void Function( - ffi.Short left, - ffi.Short top, - ffi.Short right, - ffi.Short bottom, - ); -typedef DartQDJShieldCursorProcPtrFunction = - void Function(int left, int top, int right, int bottom); -typedef QDLineProcPtrFunction = ffi.Void Function(Point newPt); -typedef DartQDLineProcPtrFunction = void Function(Point newPt); -typedef QDOpcodeProcPtrFunction = - ffi.Void Function( - ffi.Pointer fromRect, - ffi.Pointer toRect, - ffi.UnsignedShort opcode, - ffi.Short version, - ); -typedef DartQDOpcodeProcPtrFunction = - void Function( - ffi.Pointer fromRect, - ffi.Pointer toRect, - int opcode, - int version, - ); -typedef QDOvalProcPtrFunction = - ffi.Void Function(ffi.SignedChar verb, ffi.Pointer r); -typedef DartQDOvalProcPtrFunction = - void Function(int verb, ffi.Pointer r); -typedef QDPolyProcPtrFunction = - ffi.Void Function( - ffi.SignedChar verb, - ffi.Pointer> poly, - ); -typedef DartQDPolyProcPtrFunction = - void Function(int verb, ffi.Pointer> poly); -typedef QDPrinterStatusProcPtrFunction = - ffi.Int Function( - ffi.Int opcode, - ffi.Pointer currentPort, - ffi.Pointer printerStatus, - ); -typedef DartQDPrinterStatusProcPtrFunction = - int Function( - int opcode, - ffi.Pointer currentPort, - ffi.Pointer printerStatus, - ); -typedef QDPutPicProcPtrFunction = - ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); -typedef DartQDPutPicProcPtrFunction = - void Function(ffi.Pointer dataPtr, int byteCount); -typedef QDRRectProcPtrFunction = - ffi.Void Function( - ffi.SignedChar verb, - ffi.Pointer r, - ffi.Short ovalWidth, - ffi.Short ovalHeight, - ); -typedef DartQDRRectProcPtrFunction = - void Function(int verb, ffi.Pointer r, int ovalWidth, int ovalHeight); -typedef QDRectProcPtrFunction = - ffi.Void Function(ffi.SignedChar verb, ffi.Pointer r); -typedef DartQDRectProcPtrFunction = - void Function(int verb, ffi.Pointer r); -typedef QDRgnProcPtrFunction = - ffi.Void Function(ffi.SignedChar verb, ffi.Pointer rgn); -typedef DartQDRgnProcPtrFunction = - void Function(int verb, ffi.Pointer rgn); -typedef QDStdGlyphsProcPtrFunction = - ffi.Int Function(ffi.Pointer dataStream, ffi.UnsignedLong size); -typedef DartQDStdGlyphsProcPtrFunction = - int Function(ffi.Pointer dataStream, int size); -typedef QDTextProcPtrFunction = - ffi.Void Function( - ffi.Short byteCount, - ffi.Pointer textBuf, - Point numer, - Point denom, - ); -typedef DartQDTextProcPtrFunction = - void Function( - int byteCount, - ffi.Pointer textBuf, - Point numer, - Point denom, - ); -typedef QDTxMeasProcPtrFunction = - ffi.Short Function( - ffi.Short byteCount, - ffi.Pointer textAddr, - ffi.Pointer numer, - ffi.Pointer denom, - ffi.Pointer info, - ); -typedef DartQDTxMeasProcPtrFunction = - int Function( - int byteCount, - ffi.Pointer textAddr, - ffi.Pointer numer, - ffi.Pointer denom, - ffi.Pointer info, - ); - -final class RGBColor extends ffi.Opaque {} - -final class Rect extends ffi.Opaque {} - -typedef RedrawBackgroundProcPtrFunction = - ffi.UnsignedChar Function( - ffi.Pointer iLayout, - ffi.UnsignedLong iTextOffset, - ffi.UnsignedLong iTextLength, - ffi.Pointer iUnhighlightArea, - ffi.UnsignedLong iTrapezoidCount, - ); -typedef DartRedrawBackgroundProcPtrFunction = - int Function( - ffi.Pointer iLayout, - int iTextOffset, - int iTextLength, - ffi.Pointer iUnhighlightArea, - int iTrapezoidCount, - ); -typedef RegionToRectsProcPtrFunction = - ffi.Int Function( - ffi.UnsignedShort message, - ffi.Pointer rgn, - ffi.Pointer rect, - ffi.Pointer refCon, - ); -typedef DartRegionToRectsProcPtrFunction = - int Function( - int message, - ffi.Pointer rgn, - ffi.Pointer rect, - ffi.Pointer refCon, - ); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); -typedef ResErrProcPtrFunction = ffi.Void Function(ffi.Short thErr); -typedef DartResErrProcPtrFunction = void Function(int thErr); -typedef ResourceEndianFilterPtrFunction = - ffi.Short Function( - ffi.Pointer> theResource, - ffi.UnsignedChar currentlyNativeEndian, - ); -typedef DartResourceEndianFilterPtrFunction = - int Function( - ffi.Pointer> theResource, - int currentlyNativeEndian, - ); -typedef SKSearchResultsFilterCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__SKIndex> inIndex, - ffi.Pointer inDocument, - ffi.Pointer inContext, - ); -typedef DartSKSearchResultsFilterCallBackFunction = - int Function( - ffi.Pointer<__SKIndex> inIndex, - ffi.Pointer inDocument, - ffi.Pointer inContext, - ); -typedef SSLReadFuncFunction = - ffi.Int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef DartSSLReadFuncFunction = - int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef SSLWriteFuncFunction = - ffi.Int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef DartSSLWriteFuncFunction = - int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); - -@ffi.Packed(2) -final class SchedulerInfoRec extends ffi.Opaque {} - -typedef SecKeychainCallbackFunction = - ffi.Int Function( - ffi.UnsignedInt keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ); -typedef DartSecKeychainCallbackFunction = - int Function( - SecKeychainEvent keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ); - -final class SecKeychainCallbackInfo extends ffi.Opaque {} - -enum SecKeychainEvent { - kSecLockEvent(1), - kSecUnlockEvent(2), - kSecAddEvent(3), - kSecDeleteEvent(4), - kSecUpdateEvent(5), - kSecPasswordChangedEvent(6), - kSecDefaultChangedEvent(9), - kSecDataAccessEvent(10), - kSecKeychainListChangedEvent(11), - kSecTrustSettingsChangedEvent(12); - - final int value; - const SecKeychainEvent(this.value); - - static SecKeychainEvent fromValue(int value) => switch (value) { - 1 => kSecLockEvent, - 2 => kSecUnlockEvent, - 3 => kSecAddEvent, - 4 => kSecDeleteEvent, - 5 => kSecUpdateEvent, - 6 => kSecPasswordChangedEvent, - 9 => kSecDefaultChangedEvent, - 10 => kSecDataAccessEvent, - 11 => kSecKeychainListChangedEvent, - 12 => kSecTrustSettingsChangedEvent, - _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), - }; -} - -typedef SecTransformCreateFPFunction = - ffi.Pointer Function( - ffi.Pointer name, - ffi.Pointer newTransform, - ffi.Pointer ref, - ); -typedef DartSecTransformCreateFPFunction = - objc.ObjCBlock Function()> Function( - ffi.Pointer name, - ffi.Pointer newTransform, - ffi.Pointer ref, - ); -typedef SelectorFunctionProcPtrFunction = - ffi.Short Function(ffi.UnsignedInt selector, ffi.Pointer response); -typedef DartSelectorFunctionProcPtrFunction = - int Function(int selector, ffi.Pointer response); -typedef SleepQProcPtrFunction = - ffi.Long Function(ffi.Long message, ffi.Pointer qRecPtr); -typedef DartSleepQProcPtrFunction = - int Function(int message, ffi.Pointer qRecPtr); - -@ffi.Packed(2) -final class SleepQRec extends ffi.Opaque {} - -@ffi.Packed(2) -final class SpeechChannelRecord extends ffi.Opaque {} - -typedef SpeechDoneProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ); -typedef DartSpeechDoneProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ); -typedef SpeechErrorCFProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer<__CFError> theError, - ); -typedef DartSpeechErrorCFProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer<__CFError> theError, - ); -typedef SpeechErrorProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Short theError, - ffi.Long bytePos, - ); -typedef DartSpeechErrorProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - int theError, - int bytePos, - ); -typedef SpeechPhonemeProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Short phonemeOpcode, - ); -typedef DartSpeechPhonemeProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - int phonemeOpcode, - ); -typedef SpeechSyncProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.UnsignedInt syncMessage, - ); -typedef DartSpeechSyncProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - int syncMessage, - ); -typedef SpeechTextDoneProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer> nextBuf, - ffi.Pointer byteLen, - ffi.Pointer controlFlags, - ); -typedef DartSpeechTextDoneProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer> nextBuf, - ffi.Pointer byteLen, - ffi.Pointer controlFlags, - ); -typedef SpeechWordCFProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer aString, - CFRange wordRange, - ); -typedef DartSpeechWordCFProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer aString, - CFRange wordRange, - ); -typedef SpeechWordProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.UnsignedLong wordPos, - ffi.UnsignedShort wordLen, - ); -typedef DartSpeechWordProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - int wordPos, - int wordLen, - ); - -@ffi.Packed(2) -final class TECConversionInfo extends ffi.Opaque {} - -final class TECConverterContextRec extends ffi.Opaque {} - -typedef TECPluginClearContextInfoPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginClearContextInfoPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginClearSnifferContextInfoPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginClearSnifferContextInfoPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef TECPluginConvertTextEncodingPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginConvertTextEncodingPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); - -final class TECPluginDispatchTable extends ffi.Opaque {} - -typedef TECPluginDisposeEncodingConverterPtrFunction = - ffi.Int Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginDisposeEncodingConverterPtrFunction = - int Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginDisposeEncodingSnifferPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginDisposeEncodingSnifferPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef TECPluginFlushConversionPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginFlushConversionPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginGetCountAvailableSniffersPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableSniffersPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountAvailableTextEncodingPairsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableTextEncodingPairsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountAvailableTextEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableTextEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountDestinationTextEncodingsPtrFunction = - ffi.Int Function( - ffi.UnsignedInt inputEncoding, - ffi.Pointer destinationEncodings, - ffi.UnsignedLong maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ); -typedef DartTECPluginGetCountDestinationTextEncodingsPtrFunction = - int Function( - int inputEncoding, - ffi.Pointer destinationEncodings, - int maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ); -typedef TECPluginGetCountMailEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountMailEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountSubTextEncodingsPtrFunction = - ffi.Int Function( - ffi.UnsignedInt inputEncoding, - ffi.Pointer subEncodings, - ffi.UnsignedLong maxSubEncodings, - ffi.Pointer actualSubEncodings, - ); -typedef DartTECPluginGetCountSubTextEncodingsPtrFunction = - int Function( - int inputEncoding, - ffi.Pointer subEncodings, - int maxSubEncodings, - ffi.Pointer actualSubEncodings, - ); -typedef TECPluginGetCountWebEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountWebEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetPluginDispatchTablePtrFunction = - ffi.Pointer Function(); -typedef TECPluginGetTextEncodingFromInternetNamePtrFunction = - ffi.Int Function( - ffi.Pointer textEncoding, - ffi.Pointer encodingName, - ); -typedef DartTECPluginGetTextEncodingFromInternetNamePtrFunction = - int Function( - ffi.Pointer textEncoding, - ffi.Pointer encodingName, - ); -typedef TECPluginGetTextEncodingInternetNamePtrFunction = - ffi.Int Function( - ffi.UnsignedInt textEncoding, - ffi.Pointer encodingName, - ); -typedef DartTECPluginGetTextEncodingInternetNamePtrFunction = - int Function(int textEncoding, ffi.Pointer encodingName); -typedef TECPluginNewEncodingConverterPtrFunction = - ffi.Int Function( - ffi.Pointer> newEncodingConverter, - ffi.Pointer plugContext, - ffi.UnsignedInt inputEncoding, - ffi.UnsignedInt outputEncoding, - ); -typedef DartTECPluginNewEncodingConverterPtrFunction = - int Function( - ffi.Pointer> newEncodingConverter, - ffi.Pointer plugContext, - int inputEncoding, - int outputEncoding, - ); -typedef TECPluginNewEncodingSnifferPtrFunction = - ffi.Int Function( - ffi.Pointer> encodingSniffer, - ffi.Pointer snifContext, - ffi.UnsignedInt inputEncoding, - ); -typedef DartTECPluginNewEncodingSnifferPtrFunction = - int Function( - ffi.Pointer> encodingSniffer, - ffi.Pointer snifContext, - int inputEncoding, - ); -typedef TECPluginSniffTextEncodingPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginSniffTextEncodingPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); - -final class TECSnifferContextRec extends ffi.Opaque {} - -@ffi.Packed(2) -final class TMTask extends ffi.Opaque {} - -typedef TaskProcFunction = ffi.Int Function(ffi.Pointer parameter); -typedef DartTaskProcFunction = int Function(ffi.Pointer parameter); -typedef ThreadEntryProcPtrFunction = - ffi.Pointer Function(ffi.Pointer threadParam); -typedef ThreadSchedulerProcPtrFunction = - ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); -typedef DartThreadSchedulerProcPtrFunction = - int Function(ffi.Pointer schedulerInfo); -typedef ThreadSwitchProcPtrFunction = - ffi.Void Function( - ffi.UnsignedLong threadBeingSwitched, - ffi.Pointer switchProcParam, - ); -typedef DartThreadSwitchProcPtrFunction = - void Function( - int threadBeingSwitched, - ffi.Pointer switchProcParam, - ); -typedef ThreadTerminationProcPtrFunction = - ffi.Void Function( - ffi.UnsignedLong threadTerminated, - ffi.Pointer terminationProcParam, - ); -typedef DartThreadTerminationProcPtrFunction = - void Function( - int threadTerminated, - ffi.Pointer terminationProcParam, - ); -typedef TimerProcPtrFunction = ffi.Void Function(ffi.Pointer tmTaskPtr); -typedef DartTimerProcPtrFunction = void Function(ffi.Pointer tmTaskPtr); - -@ffi.Packed(2) -final class UnicodeMapping extends ffi.Opaque {} - -typedef UnicodeToTextFallbackProcPtrFunction = - ffi.Int Function( - ffi.Pointer iSrcUniStr, - ffi.UnsignedLong iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - ffi.Pointer oDestStr, - ffi.UnsignedLong iDestStrLen, - ffi.Pointer oDestConvLen, - ffi.Pointer iInfoPtr, - ffi.Pointer iUnicodeMappingPtr, - ); -typedef DartUnicodeToTextFallbackProcPtrFunction = - int Function( - ffi.Pointer iSrcUniStr, - int iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - ffi.Pointer oDestStr, - int iDestStrLen, - ffi.Pointer oDestConvLen, - ffi.Pointer iInfoPtr, - ffi.Pointer iUnicodeMappingPtr, - ); -typedef WSClientContextCopyDescriptionCallBackProcPtrFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef WSClientContextReleaseCallBackProcPtrFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartWSClientContextReleaseCallBackProcPtrFunction = - void Function(ffi.Pointer info); -typedef WSClientContextRetainCallBackProcPtrFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef WSMethodInvocationCallBackProcPtrFunction = - ffi.Void Function( - ffi.Pointer invocation, - ffi.Pointer info, - ffi.Pointer<__CFDictionary> outRef, - ); -typedef DartWSMethodInvocationCallBackProcPtrFunction = - void Function( - ffi.Pointer invocation, - ffi.Pointer info, - ffi.Pointer<__CFDictionary> outRef, - ); -typedef WSMethodInvocationDeserializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer invocation, - ffi.Pointer<__CFTree> msgRoot, - ffi.Pointer<__CFTree> deserializeRoot, - ffi.Pointer info, - ); -typedef WSMethodInvocationSerializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer invocation, - ffi.Pointer obj, - ffi.Pointer info, - ); -typedef WSProtocolHandlerDeserializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer protocol, - ffi.Pointer<__CFTree> msgRoot, - ffi.Pointer<__CFTree> deserializeRoot, - ffi.Pointer info, - ); -typedef WSProtocolHandlerSerializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer protocol, - ffi.Pointer obj, - ffi.Pointer info, - ); - -final class __AXObserver extends ffi.Opaque {} - -final class __AXUIElement extends ffi.Opaque {} - -final class __CFAllocator extends ffi.Opaque {} - -final class __CFArray extends ffi.Opaque {} - -final class __CFBundle extends ffi.Opaque {} - -final class __CFData extends ffi.Opaque {} - -final class __CFDictionary extends ffi.Opaque {} - -final class __CFError extends ffi.Opaque {} - -final class __CFFileDescriptor extends ffi.Opaque {} - -final class __CFHost extends ffi.Opaque {} - -final class __CFMachPort extends ffi.Opaque {} - -final class __CFMessagePort extends ffi.Opaque {} - -final class __CFNetService extends ffi.Opaque {} - -final class __CFNetServiceBrowser extends ffi.Opaque {} - -final class __CFNetServiceMonitor extends ffi.Opaque {} - -final class __CFNotificationCenter extends ffi.Opaque {} - -final class __CFPlugInInstance extends ffi.Opaque {} - -final class __CFReadStream extends ffi.Opaque {} - -final class __CFRunLoopObserver extends ffi.Opaque {} - -final class __CFRunLoopTimer extends ffi.Opaque {} - -final class __CFSocket extends ffi.Opaque {} - -final class __CFTree extends ffi.Opaque {} - -final class __CFUUID extends ffi.Opaque {} - -final class __CFUserNotification extends ffi.Opaque {} - -final class __CFWriteStream extends ffi.Opaque {} - -final class __CFXMLNode extends ffi.Opaque {} - -final class __CFXMLParser extends ffi.Opaque {} - -final class __CGEvent extends ffi.Opaque {} - -final class __CGEventTapProxy extends ffi.Opaque {} - -final class __CSIdentity extends ffi.Opaque {} - -final class __CSIdentityQuery extends ffi.Opaque {} - -final class __CTFontDescriptor extends ffi.Opaque {} - -final class __CVBuffer extends ffi.Opaque {} - -final class __CVDisplayLink extends ffi.Opaque {} - -final class __FSEventStream extends ffi.Opaque {} - -final class __FSFileOperation extends ffi.Opaque {} - -final class __HIShape extends ffi.Opaque {} - -final class __MDItem extends ffi.Opaque {} - -final class __MDQuery extends ffi.Opaque {} - -final class __SKIndex extends ffi.Opaque {} - @ffi.Native>( symbol: 'OBJC_CLASS_\$_AVAudioPlayer', ) @@ -3954,17 +789,6 @@ final _class_AVAudioPlayer = objc.getClass( _class_AVAudioPlayer_raw, ).cast(), ); - -final class _cups_array_s extends ffi.Opaque {} - -final class _http_s extends ffi.Opaque {} - -final class _ipp_attribute_s extends ffi.Opaque {} - -final class _ipp_s extends ffi.Opaque {} - -final class _launch_data extends ffi.Opaque {} - final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -4395,208 +1219,5 @@ late final _sel_stop = objc.registerName("stop"); late final _sel_updateMeters = objc.registerName("updateMeters"); late final _sel_url = objc.registerName("url"); late final _sel_volume = objc.registerName("volume"); -typedef bearer_token_callback_tFunction = - ffi.Pointer Function( - ffi.Pointer<_http_s> http, - ffi.Pointer resource, - ffi.Pointer user_data, - ); - -final class cssm_data extends ffi.Opaque {} - -final class cssm_guid extends ffi.Opaque {} - -final class cssm_list extends ffi.Opaque {} - -final class cssm_memory_funcs extends ffi.Opaque {} - -@Deprecated('Deprecated') -final class cssm_samplegroup extends ffi.Opaque {} - -typedef cups_acopy_func_tFunction = - ffi.Pointer Function( - ffi.Pointer element, - ffi.Pointer data, - ); -typedef cups_afree_func_tFunction = - ffi.Void Function( - ffi.Pointer element, - ffi.Pointer data, - ); -typedef Dartcups_afree_func_tFunction = - void Function(ffi.Pointer element, ffi.Pointer data); -typedef cups_ahash_func_tFunction = - ffi.Int Function(ffi.Pointer element, ffi.Pointer data); -typedef Dartcups_ahash_func_tFunction = - int Function(ffi.Pointer element, ffi.Pointer data); -typedef cups_array_func_tFunction = - ffi.Int Function( - ffi.Pointer first, - ffi.Pointer second, - ffi.Pointer data, - ); -typedef Dartcups_array_func_tFunction = - int Function( - ffi.Pointer first, - ffi.Pointer second, - ffi.Pointer data, - ); -typedef cups_client_cert_cb_tFunction = - ffi.Int Function( - ffi.Pointer<_http_s> http, - ffi.Pointer tls, - ffi.Pointer<_cups_array_s> distinguished_names, - ffi.Pointer user_data, - ); -typedef Dartcups_client_cert_cb_tFunction = - int Function( - ffi.Pointer<_http_s> http, - ffi.Pointer tls, - ffi.Pointer<_cups_array_s> distinguished_names, - ffi.Pointer user_data, - ); -typedef cups_dest_cb_tFunction = - ffi.Int Function( - ffi.Pointer user_data, - ffi.UnsignedInt flags, - ffi.Pointer dest, - ); -typedef Dartcups_dest_cb_tFunction = - int Function( - ffi.Pointer user_data, - int flags, - ffi.Pointer dest, - ); - -final class cups_dest_s extends ffi.Opaque {} - -typedef cups_interpret_cb_tFunction = - ffi.Int Function( - ffi.Pointer header, - ffi.Int preferred_bits, - ); -typedef Dartcups_interpret_cb_tFunction = - int Function(ffi.Pointer header, int preferred_bits); - -final class cups_page_header2_s extends ffi.Opaque {} - -typedef cups_password_cb2_tFunction = - ffi.Pointer Function( - ffi.Pointer prompt, - ffi.Pointer<_http_s> http, - ffi.Pointer method, - ffi.Pointer resource, - ffi.Pointer user_data, - ); -typedef cups_password_cb_tFunction = - ffi.Pointer Function(ffi.Pointer prompt); -typedef cups_raster_iocb_tFunction = - ffi.Long Function( - ffi.Pointer ctx, - ffi.Pointer buffer, - ffi.Size length, - ); -typedef Dartcups_raster_iocb_tFunction = - int Function( - ffi.Pointer ctx, - ffi.Pointer buffer, - int length, - ); -typedef cups_server_cert_cb_tFunction = - ffi.Int Function( - ffi.Pointer<_http_s> http, - ffi.Pointer tls, - ffi.Pointer<_cups_array_s> certs, - ffi.Pointer user_data, - ); -typedef Dartcups_server_cert_cb_tFunction = - int Function( - ffi.Pointer<_http_s> http, - ffi.Pointer tls, - ffi.Pointer<_cups_array_s> certs, - ffi.Pointer user_data, - ); -typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); -typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); -typedef http_timeout_cb_tFunction = - ffi.Int Function( - ffi.Pointer<_http_s> http, - ffi.Pointer user_data, - ); -typedef Darthttp_timeout_cb_tFunction = - int Function(ffi.Pointer<_http_s> http, ffi.Pointer user_data); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef ipp_copycb_tFunction = - ffi.Int Function( - ffi.Pointer context, - ffi.Pointer<_ipp_s> dst, - ffi.Pointer<_ipp_attribute_s> attr, - ); -typedef Dartipp_copycb_tFunction = - int Function( - ffi.Pointer context, - ffi.Pointer<_ipp_s> dst, - ffi.Pointer<_ipp_attribute_s> attr, - ); -typedef ipp_iocb_tFunction = - ffi.Long Function( - ffi.Pointer context, - ffi.Pointer buffer, - ffi.Size bytes, - ); -typedef Dartipp_iocb_tFunction = - int Function( - ffi.Pointer context, - ffi.Pointer buffer, - int bytes, - ); -typedef launch_data_dict_iterator_tFunction = - ffi.Void Function( - ffi.Pointer<_launch_data> lval, - ffi.Pointer key, - ffi.Pointer ctx, - ); -typedef Dartlaunch_data_dict_iterator_tFunction = - void Function( - ffi.Pointer<_launch_data> lval, - ffi.Pointer key, - ffi.Pointer ctx, - ); -typedef mach_error_fn_tFunction = ffi.Int Function(); -typedef Dartmach_error_fn_tFunction = int Function(); - -final class mach_msg_header_t extends ffi.Opaque {} - -typedef mig_impl_routine_tFunction = ffi.Int Function(); -typedef Dartmig_impl_routine_tFunction = int Function(); -typedef mig_server_routine_tFunction = - ffi.Pointer> Function( - ffi.Pointer InHeadP, - ); -typedef mig_stub_routine_tFunction = - ffi.Void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ); -typedef Dartmig_stub_routine_tFunction = - void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ); -typedef os_function_tFunction = ffi.Void Function(ffi.Pointer); -typedef Dartos_function_tFunction = void Function(ffi.Pointer); -typedef os_workgroup_working_arena_destructor_tFunction = - ffi.Void Function(ffi.Pointer); -typedef Dartos_workgroup_working_arena_destructor_tFunction = - void Function(ffi.Pointer); -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); -typedef xpc_connection_handler_tFunction = - ffi.Void Function(ffi.Pointer connection); -typedef Dartxpc_connection_handler_tFunction = - void Function(objc.NSObject connection); -typedef xpc_finalizer_tFunction = - ffi.Void Function(ffi.Pointer value); -typedef Dartxpc_finalizer_tFunction = - void Function(ffi.Pointer value); diff --git a/pkgs/ffigen/example/swift/swift_api_bindings.dart b/pkgs/ffigen/example/swift/swift_api_bindings.dart index 496e01a1d6..71cab810fc 100644 --- a/pkgs/ffigen/example/swift/swift_api_bindings.dart +++ b/pkgs/ffigen/example/swift/swift_api_bindings.dart @@ -11,1868 +11,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef AECoerceDescProcPtrFunction = - ffi.Short Function( - ffi.Pointer fromDesc, - ffi.UnsignedInt toType, - ffi.Pointer handlerRefcon, - ffi.Pointer toDesc, - ); -typedef DartAECoerceDescProcPtrFunction = - int Function( - ffi.Pointer fromDesc, - int toType, - ffi.Pointer handlerRefcon, - ffi.Pointer toDesc, - ); -typedef AECoercePtrProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt typeCode, - ffi.Pointer dataPtr, - ffi.Long dataSize, - ffi.UnsignedInt toType, - ffi.Pointer handlerRefcon, - ffi.Pointer result, - ); -typedef DartAECoercePtrProcPtrFunction = - int Function( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - int toType, - ffi.Pointer handlerRefcon, - ffi.Pointer result, - ); -typedef AEDisposeExternalProcPtrFunction = - ffi.Void Function( - ffi.Pointer dataPtr, - ffi.Long dataLength, - ffi.Pointer refcon, - ); -typedef DartAEDisposeExternalProcPtrFunction = - void Function( - ffi.Pointer dataPtr, - int dataLength, - ffi.Pointer refcon, - ); -typedef AEEventHandlerProcPtrFunction = - ffi.Short Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - ffi.Pointer handlerRefcon, - ); -typedef DartAEEventHandlerProcPtrFunction = - int Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - ffi.Pointer handlerRefcon, - ); - -final class AERemoteProcessResolver extends ffi.Opaque {} - -typedef AERemoteProcessResolverCallbackFunction = - ffi.Void Function( - ffi.Pointer ref, - ffi.Pointer info, - ); -typedef DartAERemoteProcessResolverCallbackFunction = - void Function( - ffi.Pointer ref, - ffi.Pointer info, - ); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFArrayApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFArrayApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFArrayCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFArrayEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFArrayEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFArrayReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFArrayReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFArrayRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBagApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFBagApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFBagCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFBagEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFBagEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFBagHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFBagHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFBagReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFBagReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBagRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBinaryHeapApplierFunctionFunction = - ffi.Void Function(ffi.Pointer val, ffi.Pointer context); -typedef DartCFBinaryHeapApplierFunctionFunction = - void Function(ffi.Pointer val, ffi.Pointer context); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef CFDictionaryApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFDictionaryApplierFunctionFunction = - void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ); -typedef CFDictionaryCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFDictionaryEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFDictionaryEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFDictionaryHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFDictionaryHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFDictionaryReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFDictionaryReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFDictionaryRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFFileDescriptorCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFFileDescriptor> f, - ffi.UnsignedLong callBackTypes, - ffi.Pointer info, - ); -typedef DartCFFileDescriptorCallBackFunction = - void Function( - ffi.Pointer<__CFFileDescriptor> f, - int callBackTypes, - ffi.Pointer info, - ); -typedef CFHostClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFHost> theHost, - ffi.UnsignedInt typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFHostClientCallBackFunction = - void Function( - ffi.Pointer<__CFHost> theHost, - CFHostInfoType typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ); - -enum CFHostInfoType { - kCFHostAddresses(0), - kCFHostNames(1), - kCFHostReachability(2); - - final int value; - const CFHostInfoType(this.value); - - static CFHostInfoType fromValue(int value) => switch (value) { - 0 => kCFHostAddresses, - 1 => kCFHostNames, - 2 => kCFHostReachability, - _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), - }; -} - -typedef CFMachPortCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer msg, - ffi.Long size, - ffi.Pointer info, - ); -typedef DartCFMachPortCallBackFunction = - void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer msg, - int size, - ffi.Pointer info, - ); -typedef CFMachPortInvalidationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer info, - ); -typedef DartCFMachPortInvalidationCallBackFunction = - void Function(ffi.Pointer<__CFMachPort> port, ffi.Pointer info); -typedef CFMessagePortCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFMessagePort> local, - ffi.Int msgid, - ffi.Pointer<__CFData> data, - ffi.Pointer info, - ); -typedef DartCFMessagePortCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFMessagePort> local, - int msgid, - ffi.Pointer<__CFData> data, - ffi.Pointer info, - ); -typedef CFMessagePortInvalidationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMessagePort> ms, - ffi.Pointer info, - ); -typedef DartCFMessagePortInvalidationCallBackFunction = - void Function(ffi.Pointer<__CFMessagePort> ms, ffi.Pointer info); -typedef CFNetServiceBrowserClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetServiceBrowser> browser, - ffi.UnsignedLong flags, - ffi.Pointer domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceBrowserClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetServiceBrowser> browser, - int flags, - ffi.Pointer domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef CFNetServiceClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetService> theService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetService> theService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef CFNetServiceMonitorClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetServiceMonitor> theMonitor, - ffi.Pointer<__CFNetService> theService, - ffi.UnsignedInt typeInfo, - ffi.Pointer<__CFData> rdata, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceMonitorClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetServiceMonitor> theMonitor, - ffi.Pointer<__CFNetService> theService, - CFNetServiceMonitorType typeInfo, - ffi.Pointer<__CFData> rdata, - ffi.Pointer error, - ffi.Pointer info, - ); - -enum CFNetServiceMonitorType { - kCFNetServiceMonitorTXT(1); - - final int value; - const CFNetServiceMonitorType(this.value); - - static CFNetServiceMonitorType fromValue(int value) => switch (value) { - 1 => kCFNetServiceMonitorTXT, - _ => throw ArgumentError( - 'Unknown value for CFNetServiceMonitorType: $value', - ), - }; -} - -typedef CFNotificationCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CFNotificationCenter> center, - ffi.Pointer observer, - ffi.Pointer name, - ffi.Pointer object, - ffi.Pointer<__CFDictionary> userInfo, - ); -typedef DartCFNotificationCallbackFunction = - void Function( - ffi.Pointer<__CFNotificationCenter> center, - ffi.Pointer observer, - ffi.Pointer name, - ffi.Pointer object, - ffi.Pointer<__CFDictionary> userInfo, - ); -typedef CFPlugInDynamicRegisterFunctionFunction = - ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); -typedef DartCFPlugInDynamicRegisterFunctionFunction = - void Function(ffi.Pointer<__CFBundle> plugIn); -typedef CFPlugInFactoryFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer<__CFUUID> typeUUID, - ); -typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = - ffi.Void Function(ffi.Pointer instanceData); -typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = - void Function(ffi.Pointer instanceData); -typedef CFPlugInInstanceGetInterfaceFunctionFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__CFPlugInInstance> instance, - ffi.Pointer interfaceName, - ffi.Pointer> ftbl, - ); -typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = - int Function( - ffi.Pointer<__CFPlugInInstance> instance, - ffi.Pointer interfaceName, - ffi.Pointer> ftbl, - ); -typedef CFPlugInUnloadFunctionFunction = - ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); -typedef DartCFPlugInUnloadFunctionFunction = - void Function(ffi.Pointer<__CFBundle> plugIn); -typedef CFProxyAutoConfigurationResultCallbackFunction = - ffi.Void Function( - ffi.Pointer client, - ffi.Pointer<__CFArray> proxyList, - ffi.Pointer<__CFError> error, - ); -typedef DartCFProxyAutoConfigurationResultCallbackFunction = - void Function( - ffi.Pointer client, - ffi.Pointer<__CFArray> proxyList, - ffi.Pointer<__CFError> error, - ); -typedef CFReadStreamClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFReadStream> stream, - ffi.UnsignedLong type, - ffi.Pointer clientCallBackInfo, - ); -typedef DartCFReadStreamClientCallBackFunction = - void Function( - ffi.Pointer<__CFReadStream> stream, - int type, - ffi.Pointer clientCallBackInfo, - ); - -sealed class CFRunLoopActivity { - static const kCFRunLoopEntry = 1; - static const kCFRunLoopBeforeTimers = 2; - static const kCFRunLoopBeforeSources = 4; - static const kCFRunLoopBeforeWaiting = 32; - static const kCFRunLoopAfterWaiting = 64; - static const kCFRunLoopExit = 128; - static const kCFRunLoopAllActivities = 268435455; -} - -typedef CFRunLoopObserverCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFRunLoopObserver> observer, - ffi.UnsignedLong activity, - ffi.Pointer info, - ); -typedef DartCFRunLoopObserverCallBackFunction = - void Function( - ffi.Pointer<__CFRunLoopObserver> observer, - int activity, - ffi.Pointer info, - ); -typedef CFRunLoopTimerCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFRunLoopTimer> timer, - ffi.Pointer info, - ); -typedef DartCFRunLoopTimerCallBackFunction = - void Function( - ffi.Pointer<__CFRunLoopTimer> timer, - ffi.Pointer info, - ); -typedef CFSetApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFSetApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFSetCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFSetEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFSetEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFSetHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFSetHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFSetReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFSetReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFSetRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFSocketCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFSocket> s, - ffi.UnsignedLong type, - ffi.Pointer<__CFData> address, - ffi.Pointer data, - ffi.Pointer info, - ); -typedef DartCFSocketCallBackFunction = - void Function( - ffi.Pointer<__CFSocket> s, - int type, - ffi.Pointer<__CFData> address, - ffi.Pointer data, - ffi.Pointer info, - ); - -sealed class CFSocketCallBackType { - static const kCFSocketNoCallBack = 0; - static const kCFSocketReadCallBack = 1; - static const kCFSocketAcceptCallBack = 2; - static const kCFSocketDataCallBack = 3; - static const kCFSocketConnectCallBack = 4; - static const kCFSocketWriteCallBack = 8; -} - -final class CFStreamError extends ffi.Struct { - @ffi.Long() - external int domain; - - @ffi.Int() - external int error; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int domain, - required int error, - }) => $allocator() - ..ref.domain = domain - ..ref.error = error; -} - -sealed class CFStreamEventType { - static const kCFStreamEventNone = 0; - static const kCFStreamEventOpenCompleted = 1; - static const kCFStreamEventHasBytesAvailable = 2; - static const kCFStreamEventCanAcceptBytes = 4; - static const kCFStreamEventErrorOccurred = 8; - static const kCFStreamEventEndEncountered = 16; -} - -typedef CFTreeApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFTreeApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFTreeCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFTreeReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFTreeReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFTreeRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFUserNotificationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFUserNotification> userNotification, - ffi.UnsignedLong responseFlags, - ); -typedef DartCFUserNotificationCallBackFunction = - void Function( - ffi.Pointer<__CFUserNotification> userNotification, - int responseFlags, - ); -typedef CFWriteStreamClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFWriteStream> stream, - ffi.UnsignedLong type, - ffi.Pointer clientCallBackInfo, - ); -typedef DartCFWriteStreamClientCallBackFunction = - void Function( - ffi.Pointer<__CFWriteStream> stream, - int type, - ffi.Pointer clientCallBackInfo, - ); - -final class CFXMLExternalID extends ffi.Struct { - external ffi.Pointer<__CFURL> systemID; - - external ffi.Pointer publicID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer<__CFURL> systemID, - required ffi.Pointer publicID, - }) => $allocator() - ..ref.systemID = systemID - ..ref.publicID = publicID; -} - -typedef CFXMLParserAddChildCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ); -typedef DartCFXMLParserAddChildCallBackFunction = - void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ); -typedef CFXMLParserCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFXMLParserCreateXMLStructureCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer<__CFXMLNode> nodeDesc, - ffi.Pointer info, - ); -typedef CFXMLParserEndXMLStructureCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ); -typedef DartCFXMLParserEndXMLStructureCallBackFunction = - void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ); -typedef CFXMLParserHandleErrorCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Long error, - ffi.Pointer info, - ); -typedef DartCFXMLParserHandleErrorCallBackFunction = - int Function( - ffi.Pointer<__CFXMLParser> parser, - int error, - ffi.Pointer info, - ); -typedef CFXMLParserReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFXMLParserReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFXMLParserResolveExternalEntityCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer extID, - ffi.Pointer info, - ); -typedef CFXMLParserRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); - -sealed class CFXMLParserStatusCode { - static const kCFXMLStatusParseNotBegun = -2; - static const kCFXMLStatusParseInProgress = -1; - static const kCFXMLStatusParseSuccessful = 0; - static const kCFXMLErrorUnexpectedEOF = 1; - static const kCFXMLErrorUnknownEncoding = 2; - static const kCFXMLErrorEncodingConversionFailure = 3; - static const kCFXMLErrorMalformedProcessingInstruction = 4; - static const kCFXMLErrorMalformedDTD = 5; - static const kCFXMLErrorMalformedName = 6; - static const kCFXMLErrorMalformedCDSect = 7; - static const kCFXMLErrorMalformedCloseTag = 8; - static const kCFXMLErrorMalformedStartTag = 9; - static const kCFXMLErrorMalformedDocument = 10; - static const kCFXMLErrorElementlessDocument = 11; - static const kCFXMLErrorMalformedComment = 12; - static const kCFXMLErrorMalformedCharacterReference = 13; - static const kCFXMLErrorMalformedParsedCharacterData = 14; - static const kCFXMLErrorNoData = 15; -} - -typedef CSIdentityQueryReceiveEventCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CSIdentityQuery> query, - ffi.Long event, - ffi.Pointer<__CFArray> identities, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef DartCSIdentityQueryReceiveEventCallbackFunction = - void Function( - ffi.Pointer<__CSIdentityQuery> query, - int event, - ffi.Pointer<__CFArray> identities, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef CSIdentityStatusUpdatedCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CSIdentity> identity, - ffi.Long status, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef DartCSIdentityStatusUpdatedCallbackFunction = - void Function( - ffi.Pointer<__CSIdentity> identity, - int status, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef CSSM_ACL_SUBJECT_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer SubjectRequest, - ffi.Pointer SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, - ); -typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = - int Function( - ffi.Pointer SubjectRequest, - ffi.Pointer SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, - ); -typedef CSSM_API_ModuleEventHandlerFunction = - ffi.Int32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - ffi.Uint32 SubserviceId, - ffi.Uint32 ServiceType, - ffi.Uint32 EventType, - ); -typedef DartCSSM_API_ModuleEventHandlerFunction = - int Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - int SubserviceId, - int ServiceType, - int EventType, - ); -typedef CSSM_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer OutData, - ffi.Pointer CallerCtx, - ); -typedef DartCSSM_CALLBACKFunction = - int Function( - ffi.Pointer OutData, - ffi.Pointer CallerCtx, - ); -typedef CSSM_CALLOCFunction = - ffi.Pointer Function( - ffi.Uint32 num, - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_CALLOCFunction = - ffi.Pointer Function( - int num, - int size, - ffi.Pointer allocref, - ); -typedef CSSM_CHALLENGE_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer Challenge, - ffi.Pointer Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ); -typedef DartCSSM_CHALLENGE_CALLBACKFunction = - int Function( - ffi.Pointer Challenge, - ffi.Pointer Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ); -typedef CSSM_FREEFunction = - ffi.Void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ); -typedef DartCSSM_FREEFunction = - void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ); -typedef CSSM_MALLOCFunction = - ffi.Pointer Function( - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_MALLOCFunction = - ffi.Pointer Function(int size, ffi.Pointer allocref); -typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); -typedef DartCSSM_PROC_ADDRFunction = void Function(); -typedef CSSM_REALLOCFunction = - ffi.Pointer Function( - ffi.Pointer memblock, - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_REALLOCFunction = - ffi.Pointer Function( - ffi.Pointer memblock, - int size, - ffi.Pointer allocref, - ); -typedef CSSM_SPI_ModuleEventHandlerFunction = - ffi.Int32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - ffi.Uint32 SubserviceId, - ffi.Uint32 ServiceType, - ffi.Uint32 EventType, - ); -typedef DartCSSM_SPI_ModuleEventHandlerFunction = - int Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - int SubserviceId, - int ServiceType, - int EventType, - ); -typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = - ffi.Int32 Function( - ffi.IntPtr ModuleHandle, - ffi.Pointer CallerCtx, - ffi.Pointer VerifiedCert, - ); -typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = - int Function( - int ModuleHandle, - ffi.Pointer CallerCtx, - ffi.Pointer VerifiedCert, - ); -typedef CSSM_UPCALLS_CALLOCFunction = - ffi.Pointer Function( - ffi.IntPtr AddInHandle, - ffi.Size num, - ffi.Size size, - ); -typedef DartCSSM_UPCALLS_CALLOCFunction = - ffi.Pointer Function(int AddInHandle, int num, int size); -typedef CSSM_UPCALLS_FREEFunction = - ffi.Void Function(ffi.IntPtr AddInHandle, ffi.Pointer memblock); -typedef DartCSSM_UPCALLS_FREEFunction = - void Function(int AddInHandle, ffi.Pointer memblock); -typedef CSSM_UPCALLS_MALLOCFunction = - ffi.Pointer Function(ffi.IntPtr AddInHandle, ffi.Size size); -typedef DartCSSM_UPCALLS_MALLOCFunction = - ffi.Pointer Function(int AddInHandle, int size); -typedef CSSM_UPCALLS_REALLOCFunction = - ffi.Pointer Function( - ffi.IntPtr AddInHandle, - ffi.Pointer memblock, - ffi.Size size, - ); -typedef DartCSSM_UPCALLS_REALLOCFunction = - ffi.Pointer Function( - int AddInHandle, - ffi.Pointer memblock, - int size, - ); -typedef CollectionExceptionProcPtrFunction = - ffi.Short Function(ffi.Pointer c, ffi.Short status); -typedef DartCollectionExceptionProcPtrFunction = - int Function(ffi.Pointer c, int status); -typedef CollectionFlattenProcPtrFunction = - ffi.Short Function( - ffi.Int size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef DartCollectionFlattenProcPtrFunction = - int Function( - int size, - ffi.Pointer data, - ffi.Pointer refCon, - ); - -@ffi.Packed(2) -final class ComponentMPWorkFunctionHeaderRecord extends ffi.Struct { - @ffi.UnsignedInt() - external int headerSize; - - @ffi.UnsignedInt() - external int recordSize; - - @ffi.UnsignedInt() - external int workFlags; - - @ffi.UnsignedShort() - external int processorCount; - - @ffi.UnsignedChar() - external int unused; - - @ffi.UnsignedChar() - external int isRunning; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int headerSize, - required int recordSize, - required int workFlags, - required int processorCount, - required int unused, - required int isRunning, - }) => $allocator() - ..ref.headerSize = headerSize - ..ref.recordSize = recordSize - ..ref.workFlags = workFlags - ..ref.processorCount = processorCount - ..ref.unused = unused - ..ref.isRunning = isRunning; -} - -typedef ComponentMPWorkFunctionProcPtrFunction = - ffi.Int Function( - ffi.Pointer globalRefCon, - ffi.Pointer header, - ); -typedef DartComponentMPWorkFunctionProcPtrFunction = - int Function( - ffi.Pointer globalRefCon, - ffi.Pointer header, - ); - -@ffi.Packed(2) -final class ComponentParameters extends ffi.Struct { - @ffi.UnsignedChar() - external int flags; - - @ffi.UnsignedChar() - external int paramSize; - - @ffi.Short() - external int what; - - @ffi.UnsignedInt() - external int padding; - - @ffi.Array.multi([1]) - external ffi.Array params; -} - -@ffi.Packed(2) -final class ComponentRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef ComponentRoutineProcPtrFunction = - ffi.Int Function( - ffi.Pointer cp, - ffi.Pointer> componentStorage, - ); -typedef DartComponentRoutineProcPtrFunction = - int Function( - ffi.Pointer cp, - ffi.Pointer> componentStorage, - ); -typedef CoreEndianFlipProcFunction = - ffi.Int Function( - ffi.UnsignedInt dataDomain, - ffi.UnsignedInt dataType, - ffi.Short id, - ffi.Pointer dataPtr, - ffi.UnsignedLong dataSize, - ffi.UnsignedChar currentlyNative, - ffi.Pointer refcon, - ); -typedef DartCoreEndianFlipProcFunction = - int Function( - int dataDomain, - int dataType, - int id, - ffi.Pointer dataPtr, - int dataSize, - int currentlyNative, - ffi.Pointer refcon, - ); -typedef DebugAssertOutputHandlerProcPtrFunction = - ffi.Void Function( - ffi.UnsignedInt componentSignature, - ffi.UnsignedInt options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - ffi.Long lineNumber, - ffi.Pointer value, - ffi.Pointer outputMsg, - ); -typedef DartDebugAssertOutputHandlerProcPtrFunction = - void Function( - int componentSignature, - int options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - int lineNumber, - ffi.Pointer value, - ffi.Pointer outputMsg, - ); -typedef DebugComponentCallbackProcPtrFunction = - ffi.Void Function( - ffi.Int optionSelectorNum, - ffi.UnsignedInt command, - ffi.Pointer optionSetting, - ); -typedef DartDebugComponentCallbackProcPtrFunction = - void Function( - int optionSelectorNum, - int command, - ffi.Pointer optionSetting, - ); -typedef DebuggerDisposeThreadProcPtrFunction = - ffi.Void Function(ffi.UnsignedLong threadDeleted); -typedef DartDebuggerDisposeThreadProcPtrFunction = - void Function(int threadDeleted); -typedef DebuggerNewThreadProcPtrFunction = - ffi.Void Function(ffi.UnsignedLong threadCreated); -typedef DartDebuggerNewThreadProcPtrFunction = void Function(int threadCreated); -typedef DebuggerThreadSchedulerProcPtrFunction = - ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); -typedef DartDebuggerThreadSchedulerProcPtrFunction = - int Function(ffi.Pointer schedulerInfo); -typedef DeferredTaskProcPtrFunction = ffi.Void Function(ffi.Long dtParam); -typedef DartDeferredTaskProcPtrFunction = void Function(int dtParam); -typedef ExceptionHandlerProcPtrFunction = - ffi.Int Function(ffi.Pointer theException); -typedef DartExceptionHandlerProcPtrFunction = - int Function(ffi.Pointer theException); - -final class ExceptionInfo extends ffi.Union { - external ffi.Pointer memoryInfo; -} - -final class ExceptionInformation extends ffi.Struct { - @ffi.UnsignedLong() - external int theKind; - - external ffi.Pointer machineState; - - external ffi.Pointer registerImage; - - external ffi.Pointer FPUImage; - - external ExceptionInfo info; - - external ffi.Pointer vectorImage; -} - -typedef FNSubscriptionProcPtrFunction = - ffi.Void Function( - ffi.UnsignedInt message, - ffi.UnsignedInt flags, - ffi.Pointer refcon, - ffi.Pointer subscription, - ); -typedef DartFNSubscriptionProcPtrFunction = - void Function( - int message, - int flags, - ffi.Pointer refcon, - ffi.Pointer subscription, - ); - -final class FPUInformation extends ffi.Struct { - external ffi.Pointer __unusedFPUInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedFPUInformationField, - }) => - $allocator() - ..ref.__unusedFPUInformationField = $unusedFPUInformationField; -} - -typedef FSAliasFilterProcPtrFunction = - ffi.UnsignedChar Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - ffi.Pointer myDataPtr, - ); -typedef DartFSAliasFilterProcPtrFunction = - int Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - ffi.Pointer myDataPtr, - ); -typedef FSEventStreamCallbackFunction = - ffi.Void Function( - ffi.Pointer<__FSEventStream> streamRef, - ffi.Pointer clientCallBackInfo, - ffi.Size numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ); -typedef DartFSEventStreamCallbackFunction = - void Function( - ffi.Pointer<__FSEventStream> streamRef, - ffi.Pointer clientCallBackInfo, - int numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ); -typedef FSFileOperationStatusProcPtrFunction = - ffi.Void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - ffi.UnsignedInt stage, - ffi.Int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef DartFSFileOperationStatusProcPtrFunction = - void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - int stage, - int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef FSPathFileOperationStatusProcPtrFunction = - ffi.Void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - ffi.UnsignedInt stage, - ffi.Int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef DartFSPathFileOperationStatusProcPtrFunction = - void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - int stage, - int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); - -final class FSRef extends ffi.Struct { - @ffi.Array.multi([80]) - external ffi.Array hidden; -} - -typedef FSVolumeEjectProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short volumeRefNum, - ffi.Int dissenter, - ); -typedef DartFSVolumeEjectProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - ); -typedef FSVolumeMountProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short mountedVolumeRefNum, - ); -typedef DartFSVolumeMountProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int mountedVolumeRefNum, - ); -typedef FSVolumeUnmountProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short volumeRefNum, - ffi.Int dissenter, - ); -typedef DartFSVolumeUnmountProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - ); -typedef FolderManagerNotificationProcPtrFunction = - ffi.Int Function( - ffi.UnsignedInt message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ); -typedef DartFolderManagerNotificationProcPtrFunction = - int Function( - int message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ); -typedef GetMissingComponentResourceProcPtrFunction = - ffi.Short Function( - ffi.Pointer c, - ffi.UnsignedInt resType, - ffi.Short resID, - ffi.Pointer refCon, - ffi.Pointer>> resource, - ); -typedef DartGetMissingComponentResourceProcPtrFunction = - int Function( - ffi.Pointer c, - int resType, - int resID, - ffi.Pointer refCon, - ffi.Pointer>> resource, - ); -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef IOAsyncCallback0Function = - ffi.Void Function(ffi.Pointer refcon, ffi.Int result); -typedef DartIOAsyncCallback0Function = - void Function(ffi.Pointer refcon, int result); -typedef IOAsyncCallback1Function = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer arg0, - ); -typedef DartIOAsyncCallback1Function = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer arg0, - ); -typedef IOAsyncCallback2Function = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ); -typedef DartIOAsyncCallback2Function = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ); -typedef IOAsyncCallbackFunction = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer> args, - ffi.Uint32 numArgs, - ); -typedef DartIOAsyncCallbackFunction = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer> args, - int numArgs, - ); -typedef IOCompletionProcPtrFunction = - ffi.Void Function(ffi.Pointer paramBlock); -typedef DartIOCompletionProcPtrFunction = - void Function(ffi.Pointer paramBlock); -typedef IOServiceInterestCallbackFunction = - ffi.Void Function( - ffi.Pointer refcon, - ffi.UnsignedInt service, - ffi.Uint32 messageType, - ffi.Pointer messageArgument, - ); -typedef DartIOServiceInterestCallbackFunction = - void Function( - ffi.Pointer refcon, - int service, - int messageType, - ffi.Pointer messageArgument, - ); -typedef IOServiceMatchingCallbackFunction = - ffi.Void Function(ffi.Pointer refcon, ffi.UnsignedInt iterator); -typedef DartIOServiceMatchingCallbackFunction = - void Function(ffi.Pointer refcon, int iterator); -typedef IndexToUCStringProcPtrFunction = - ffi.UnsignedChar Function( - ffi.UnsignedInt index, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer> outString, - ffi.Pointer tsOptions, - ); -typedef DartIndexToUCStringProcPtrFunction = - int Function( - int index, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer> outString, - ffi.Pointer tsOptions, - ); - -@ffi.Packed(2) -final class KCCallbackInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external ffi.Pointer<__SecKeychainItem> item; - - @ffi.Array.multi([2]) - external ffi.Array processID; - - @ffi.Array.multi([4]) - external ffi.Array event; - - external ffi.Pointer<__SecKeychain> keychain; -} - -typedef KCCallbackProcPtrFunction = - ffi.Int Function( - ffi.UnsignedShort keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ); -typedef DartKCCallbackProcPtrFunction = - int Function( - int keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ); -typedef LSSharedFileListChangedProcPtrFunction = - ffi.Void Function( - ffi.Pointer inList, - ffi.Pointer context, - ); -typedef DartLSSharedFileListChangedProcPtrFunction = - void Function( - ffi.Pointer inList, - ffi.Pointer context, - ); -typedef MDQueryCreateResultFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__MDQuery> query, - ffi.Pointer<__MDItem> item, - ffi.Pointer context, - ); -typedef MDQueryCreateValueFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__MDQuery> query, - ffi.Pointer attrName, - ffi.Pointer attrValue, - ffi.Pointer context, - ); -typedef MDQuerySortComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer> attrs1, - ffi.Pointer> attrs2, - ffi.Pointer context, - ); -typedef DartMDQuerySortComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer> attrs1, - ffi.Pointer> attrs2, - ffi.Pointer context, - ); -typedef MPIsFullyInitializedProcFunction = ffi.UnsignedChar Function(); -typedef DartMPIsFullyInitializedProcFunction = int Function(); -typedef MPRemoteProcedureFunction = - ffi.Pointer Function(ffi.Pointer parameter); - -final class MachineInformation extends ffi.Struct { - external ffi.Pointer __unusedMachineInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedMachineInformationField, - }) => - $allocator() - ..ref.__unusedMachineInformationField = $unusedMachineInformationField; -} - -final class MemoryExceptionInformation extends ffi.Struct { - external ffi.Pointer theArea; - - external ffi.Pointer theAddress; - - @ffi.Int() - external int theError; - - @ffi.UnsignedLong() - external int theReference; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer theArea, - required ffi.Pointer theAddress, - required int theError, - required int theReference, - }) => $allocator() - ..ref.theArea = theArea - ..ref.theAddress = theAddress - ..ref.theError = theError - ..ref.theReference = theReference; -} - -typedef OSLAccessorProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt desiredClass, - ffi.Pointer container, - ffi.UnsignedInt containerClass, - ffi.UnsignedInt form, - ffi.Pointer selectionData, - ffi.Pointer value, - ffi.Pointer accessorRefcon, - ); -typedef DartOSLAccessorProcPtrFunction = - int Function( - int desiredClass, - ffi.Pointer container, - int containerClass, - int form, - ffi.Pointer selectionData, - ffi.Pointer value, - ffi.Pointer accessorRefcon, - ); -typedef OSLAdjustMarksProcPtrFunction = - ffi.Short Function( - ffi.Long newStart, - ffi.Long newStop, - ffi.Pointer markToken, - ); -typedef DartOSLAdjustMarksProcPtrFunction = - int Function(int newStart, int newStop, ffi.Pointer markToken); -typedef OSLCompareProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ); -typedef DartOSLCompareProcPtrFunction = - int Function( - int oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ); -typedef OSLCountProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt desiredType, - ffi.UnsignedInt containerClass, - ffi.Pointer container, - ffi.Pointer result, - ); -typedef DartOSLCountProcPtrFunction = - int Function( - int desiredType, - int containerClass, - ffi.Pointer container, - ffi.Pointer result, - ); -typedef OSLDisposeTokenProcPtrFunction = - ffi.Short Function(ffi.Pointer unneededToken); -typedef DartOSLDisposeTokenProcPtrFunction = - int Function(ffi.Pointer unneededToken); -typedef OSLGetErrDescProcPtrFunction = - ffi.Short Function(ffi.Pointer> appDescPtr); -typedef DartOSLGetErrDescProcPtrFunction = - int Function(ffi.Pointer> appDescPtr); -typedef OSLGetMarkTokenProcPtrFunction = - ffi.Short Function( - ffi.Pointer dContainerToken, - ffi.UnsignedInt containerClass, - ffi.Pointer result, - ); -typedef DartOSLGetMarkTokenProcPtrFunction = - int Function( - ffi.Pointer dContainerToken, - int containerClass, - ffi.Pointer result, - ); -typedef OSLMarkProcPtrFunction = - ffi.Short Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - ffi.Long index, - ); -typedef DartOSLMarkProcPtrFunction = - int Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - int index, - ); - -/// Construction methods for `objc.ObjCBlock Function()>`. -abstract final class ObjCBlock_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function()> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function()>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function()> fromFunctionPointer( - ffi.Pointer Function()>> ptr, - ) => objc.ObjCBlock Function()>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function()> fromFunction( - ffi.Pointer<__CFError> Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function()>( - objc.newClosureBlock(_closureCallable, () { - return fn(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer<__CFError> _fnPtrTrampoline( - ffi.Pointer block, - ) => block.ref.target - .cast Function()>>() - .asFunction Function()>()(); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer<__CFError> _closureTrampoline( - ffi.Pointer block, - ) => (objc.getBlockClosure(block) as ffi.Pointer<__CFError> Function())(); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function()>`. -extension ObjCBlock_CFErrorRef$CallExtension - on objc.ObjCBlock Function()> { - ffi.Pointer<__CFError> call() { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFError> Function( - ffi.Pointer block, - ) - > - >() - .asFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >()(ref.pointer); - } -} - -final class OpaqueAreaID extends ffi.Opaque {} - -final class OpaqueCollection extends ffi.Opaque {} - -final class OpaqueFNSubscriptionRef extends ffi.Opaque {} - -final class OpaqueFSVolumeOperation extends ffi.Opaque {} - -final class OpaqueLSSharedFileListRef extends ffi.Opaque {} - -final class OpaqueSecTransformImplementation extends ffi.Opaque {} - -final class OpaqueTECObjectRef extends ffi.Opaque {} - -final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} - -final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} - -final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} - -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); - -@ffi.Packed(2) -final class QElem extends ffi.Struct { - external ffi.Pointer qLink; - - @ffi.Short() - external int qType; - - @ffi.Array.multi([1]) - external ffi.Array qData; -} - -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - -final class RegisterInformation extends ffi.Struct { - external ffi.Pointer __unusedRegisterInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedRegisterInformationField, - }) => $allocator() - ..ref.__unusedRegisterInformationField = $unusedRegisterInformationField; -} - -typedef ResErrProcPtrFunction = ffi.Void Function(ffi.Short thErr); -typedef DartResErrProcPtrFunction = void Function(int thErr); -typedef ResourceEndianFilterPtrFunction = - ffi.Short Function( - ffi.Pointer> theResource, - ffi.UnsignedChar currentlyNativeEndian, - ); -typedef DartResourceEndianFilterPtrFunction = - int Function( - ffi.Pointer> theResource, - int currentlyNativeEndian, - ); -typedef SKSearchResultsFilterCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__SKIndex> inIndex, - ffi.Pointer inDocument, - ffi.Pointer inContext, - ); -typedef DartSKSearchResultsFilterCallBackFunction = - int Function( - ffi.Pointer<__SKIndex> inIndex, - ffi.Pointer inDocument, - ffi.Pointer inContext, - ); -typedef SSLReadFuncFunction = - ffi.Int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef DartSSLReadFuncFunction = - int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef SSLWriteFuncFunction = - ffi.Int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef DartSSLWriteFuncFunction = - int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); - -@ffi.Packed(2) -final class SchedulerInfoRec extends ffi.Struct { - @ffi.UnsignedInt() - external int InfoRecSize; - - @ffi.UnsignedLong() - external int CurrentThreadID; - - @ffi.UnsignedLong() - external int SuggestedThreadID; - - @ffi.UnsignedLong() - external int InterruptedCoopThreadID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int InfoRecSize, - required int CurrentThreadID, - required int SuggestedThreadID, - required int InterruptedCoopThreadID, - }) => $allocator() - ..ref.InfoRecSize = InfoRecSize - ..ref.CurrentThreadID = CurrentThreadID - ..ref.SuggestedThreadID = SuggestedThreadID - ..ref.InterruptedCoopThreadID = InterruptedCoopThreadID; -} - -typedef SecKeychainCallbackFunction = - ffi.Int Function( - ffi.UnsignedInt keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ); -typedef DartSecKeychainCallbackFunction = - int Function( - SecKeychainEvent keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ); - -final class SecKeychainCallbackInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external ffi.Pointer<__SecKeychainItem> item; - - external ffi.Pointer<__SecKeychain> keychain; - - @ffi.Int() - external int pid; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer<__SecKeychainItem> item, - required ffi.Pointer<__SecKeychain> keychain, - required int pid, - }) => $allocator() - ..ref.version = version - ..ref.item = item - ..ref.keychain = keychain - ..ref.pid = pid; -} - -enum SecKeychainEvent { - kSecLockEvent(1), - kSecUnlockEvent(2), - kSecAddEvent(3), - kSecDeleteEvent(4), - kSecUpdateEvent(5), - kSecPasswordChangedEvent(6), - kSecDefaultChangedEvent(9), - kSecDataAccessEvent(10), - kSecKeychainListChangedEvent(11), - kSecTrustSettingsChangedEvent(12); - - final int value; - const SecKeychainEvent(this.value); - - static SecKeychainEvent fromValue(int value) => switch (value) { - 1 => kSecLockEvent, - 2 => kSecUnlockEvent, - 3 => kSecAddEvent, - 4 => kSecDeleteEvent, - 5 => kSecUpdateEvent, - 6 => kSecPasswordChangedEvent, - 9 => kSecDefaultChangedEvent, - 10 => kSecDataAccessEvent, - 11 => kSecKeychainListChangedEvent, - 12 => kSecTrustSettingsChangedEvent, - _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), - }; -} - -typedef SecTransformCreateFPFunction = - ffi.Pointer Function( - ffi.Pointer name, - ffi.Pointer newTransform, - ffi.Pointer ref, - ); -typedef DartSecTransformCreateFPFunction = - objc.ObjCBlock Function()> Function( - ffi.Pointer name, - ffi.Pointer newTransform, - ffi.Pointer ref, - ); -typedef SelectorFunctionProcPtrFunction = - ffi.Short Function(ffi.UnsignedInt selector, ffi.Pointer response); -typedef DartSelectorFunctionProcPtrFunction = - int Function(int selector, ffi.Pointer response); -typedef SleepQProcPtrFunction = - ffi.Long Function(ffi.Long message, ffi.Pointer qRecPtr); -typedef DartSleepQProcPtrFunction = - int Function(int message, ffi.Pointer qRecPtr); - -@ffi.Packed(2) -final class SleepQRec extends ffi.Struct { - external ffi.Pointer sleepQLink; - - @ffi.Short() - external int sleepQType; - - external ffi.Pointer> sleepQProc; - - @ffi.Short() - external int sleepQFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer sleepQLink, - required int sleepQType, - required ffi.Pointer> sleepQProc, - required int sleepQFlags, - }) => $allocator() - ..ref.sleepQLink = sleepQLink - ..ref.sleepQType = sleepQType - ..ref.sleepQProc = sleepQProc - ..ref.sleepQFlags = sleepQFlags; -} /// SwiftClass extension type SwiftClass._(objc.ObjCObject object$) @@ -1962,853 +100,6 @@ extension SwiftClass$Methods on SwiftClass { } } -final class TECBufferContextRec extends ffi.Struct { - external ffi.Pointer textInputBuffer; - - external ffi.Pointer textInputBufferEnd; - - external ffi.Pointer textOutputBuffer; - - external ffi.Pointer textOutputBufferEnd; - - external ffi.Pointer encodingInputBuffer; - - external ffi.Pointer encodingInputBufferEnd; - - external ffi.Pointer encodingOutputBuffer; - - external ffi.Pointer encodingOutputBufferEnd; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer textInputBuffer, - required ffi.Pointer textInputBufferEnd, - required ffi.Pointer textOutputBuffer, - required ffi.Pointer textOutputBufferEnd, - required ffi.Pointer encodingInputBuffer, - required ffi.Pointer encodingInputBufferEnd, - required ffi.Pointer encodingOutputBuffer, - required ffi.Pointer encodingOutputBufferEnd, - }) => $allocator() - ..ref.textInputBuffer = textInputBuffer - ..ref.textInputBufferEnd = textInputBufferEnd - ..ref.textOutputBuffer = textOutputBuffer - ..ref.textOutputBufferEnd = textOutputBufferEnd - ..ref.encodingInputBuffer = encodingInputBuffer - ..ref.encodingInputBufferEnd = encodingInputBufferEnd - ..ref.encodingOutputBuffer = encodingOutputBuffer - ..ref.encodingOutputBufferEnd = encodingOutputBufferEnd; -} - -@ffi.Packed(2) -final class TECConversionInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int sourceEncoding; - - @ffi.UnsignedInt() - external int destinationEncoding; - - @ffi.UnsignedShort() - external int reserved1; - - @ffi.UnsignedShort() - external int reserved2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sourceEncoding, - required int destinationEncoding, - required int reserved1, - required int reserved2, - }) => $allocator() - ..ref.sourceEncoding = sourceEncoding - ..ref.destinationEncoding = destinationEncoding - ..ref.reserved1 = reserved1 - ..ref.reserved2 = reserved2; -} - -final class TECConverterContextRec extends ffi.Struct { - external ffi.Pointer pluginRec; - - @ffi.UnsignedInt() - external int sourceEncoding; - - @ffi.UnsignedInt() - external int destEncoding; - - @ffi.UnsignedInt() - external int reserved1; - - @ffi.UnsignedInt() - external int reserved2; - - external TECBufferContextRec bufferContext; - - external ffi.Pointer contextRefCon; - - external ffi.Pointer> conversionProc; - - external ffi.Pointer> flushProc; - - external ffi.Pointer> - clearContextInfoProc; - - @ffi.UnsignedInt() - external int options1; - - @ffi.UnsignedInt() - external int options2; - - external TECPluginStateRec pluginState; -} - -typedef TECPluginClearContextInfoPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginClearContextInfoPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginClearSnifferContextInfoPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginClearSnifferContextInfoPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef TECPluginConvertTextEncodingPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginConvertTextEncodingPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); - -final class TECPluginDispatchTable extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - @ffi.UnsignedInt() - external int compatibleVersion; - - @ffi.UnsignedInt() - external int PluginID; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingConverter; - - external ffi.Pointer> - PluginClearContextInfo; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginConvertTextEncoding; - - external ffi.Pointer> - PluginFlushConversion; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingConverter; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingSniffer; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginClearSnifferContextInfo; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginSniffTextEncoding; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingSniffer; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodingPairs; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountDestinationTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountSubTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableSniffers; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountWebTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountMailTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingInternetName; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingFromInternetName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int compatibleVersion, - required int PluginID, - required ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingConverter, - required ffi.Pointer< - ffi.NativeFunction - > - PluginClearContextInfo, - required ffi.Pointer< - ffi.NativeFunction - > - PluginConvertTextEncoding, - required ffi.Pointer< - ffi.NativeFunction - > - PluginFlushConversion, - required ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingConverter, - required ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingSniffer, - required ffi.Pointer< - ffi.NativeFunction - > - PluginClearSnifferContextInfo, - required ffi.Pointer< - ffi.NativeFunction - > - PluginSniffTextEncoding, - required ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingSniffer, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodingPairs, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountDestinationTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountSubTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableSniffers, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountWebTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountMailTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingInternetName, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingFromInternetName, - }) => $allocator() - ..ref.version = version - ..ref.compatibleVersion = compatibleVersion - ..ref.PluginID = PluginID - ..ref.PluginNewEncodingConverter = PluginNewEncodingConverter - ..ref.PluginClearContextInfo = PluginClearContextInfo - ..ref.PluginConvertTextEncoding = PluginConvertTextEncoding - ..ref.PluginFlushConversion = PluginFlushConversion - ..ref.PluginDisposeEncodingConverter = PluginDisposeEncodingConverter - ..ref.PluginNewEncodingSniffer = PluginNewEncodingSniffer - ..ref.PluginClearSnifferContextInfo = PluginClearSnifferContextInfo - ..ref.PluginSniffTextEncoding = PluginSniffTextEncoding - ..ref.PluginDisposeEncodingSniffer = PluginDisposeEncodingSniffer - ..ref.PluginGetCountAvailableTextEncodings = - PluginGetCountAvailableTextEncodings - ..ref.PluginGetCountAvailableTextEncodingPairs = - PluginGetCountAvailableTextEncodingPairs - ..ref.PluginGetCountDestinationTextEncodings = - PluginGetCountDestinationTextEncodings - ..ref.PluginGetCountSubTextEncodings = PluginGetCountSubTextEncodings - ..ref.PluginGetCountAvailableSniffers = PluginGetCountAvailableSniffers - ..ref.PluginGetCountWebTextEncodings = PluginGetCountWebTextEncodings - ..ref.PluginGetCountMailTextEncodings = PluginGetCountMailTextEncodings - ..ref.PluginGetTextEncodingInternetName = PluginGetTextEncodingInternetName - ..ref.PluginGetTextEncodingFromInternetName = - PluginGetTextEncodingFromInternetName; -} - -typedef TECPluginDisposeEncodingConverterPtrFunction = - ffi.Int Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginDisposeEncodingConverterPtrFunction = - int Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginDisposeEncodingSnifferPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginDisposeEncodingSnifferPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef TECPluginFlushConversionPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginFlushConversionPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginGetCountAvailableSniffersPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableSniffersPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountAvailableTextEncodingPairsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableTextEncodingPairsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountAvailableTextEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableTextEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountDestinationTextEncodingsPtrFunction = - ffi.Int Function( - ffi.UnsignedInt inputEncoding, - ffi.Pointer destinationEncodings, - ffi.UnsignedLong maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ); -typedef DartTECPluginGetCountDestinationTextEncodingsPtrFunction = - int Function( - int inputEncoding, - ffi.Pointer destinationEncodings, - int maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ); -typedef TECPluginGetCountMailEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountMailEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountSubTextEncodingsPtrFunction = - ffi.Int Function( - ffi.UnsignedInt inputEncoding, - ffi.Pointer subEncodings, - ffi.UnsignedLong maxSubEncodings, - ffi.Pointer actualSubEncodings, - ); -typedef DartTECPluginGetCountSubTextEncodingsPtrFunction = - int Function( - int inputEncoding, - ffi.Pointer subEncodings, - int maxSubEncodings, - ffi.Pointer actualSubEncodings, - ); -typedef TECPluginGetCountWebEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountWebEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetPluginDispatchTablePtrFunction = - ffi.Pointer Function(); -typedef TECPluginGetTextEncodingFromInternetNamePtrFunction = - ffi.Int Function( - ffi.Pointer textEncoding, - ffi.Pointer encodingName, - ); -typedef DartTECPluginGetTextEncodingFromInternetNamePtrFunction = - int Function( - ffi.Pointer textEncoding, - ffi.Pointer encodingName, - ); -typedef TECPluginGetTextEncodingInternetNamePtrFunction = - ffi.Int Function( - ffi.UnsignedInt textEncoding, - ffi.Pointer encodingName, - ); -typedef DartTECPluginGetTextEncodingInternetNamePtrFunction = - int Function(int textEncoding, ffi.Pointer encodingName); -typedef TECPluginNewEncodingConverterPtrFunction = - ffi.Int Function( - ffi.Pointer> newEncodingConverter, - ffi.Pointer plugContext, - ffi.UnsignedInt inputEncoding, - ffi.UnsignedInt outputEncoding, - ); -typedef DartTECPluginNewEncodingConverterPtrFunction = - int Function( - ffi.Pointer> newEncodingConverter, - ffi.Pointer plugContext, - int inputEncoding, - int outputEncoding, - ); -typedef TECPluginNewEncodingSnifferPtrFunction = - ffi.Int Function( - ffi.Pointer> encodingSniffer, - ffi.Pointer snifContext, - ffi.UnsignedInt inputEncoding, - ); -typedef DartTECPluginNewEncodingSnifferPtrFunction = - int Function( - ffi.Pointer> encodingSniffer, - ffi.Pointer snifContext, - int inputEncoding, - ); -typedef TECPluginSniffTextEncodingPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginSniffTextEncodingPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); - -final class TECPluginStateRec extends ffi.Struct { - @ffi.UnsignedChar() - external int state1; - - @ffi.UnsignedChar() - external int state2; - - @ffi.UnsignedChar() - external int state3; - - @ffi.UnsignedChar() - external int state4; - - @ffi.UnsignedInt() - external int longState1; - - @ffi.UnsignedInt() - external int longState2; - - @ffi.UnsignedInt() - external int longState3; - - @ffi.UnsignedInt() - external int longState4; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int state1, - required int state2, - required int state3, - required int state4, - required int longState1, - required int longState2, - required int longState3, - required int longState4, - }) => $allocator() - ..ref.state1 = state1 - ..ref.state2 = state2 - ..ref.state3 = state3 - ..ref.state4 = state4 - ..ref.longState1 = longState1 - ..ref.longState2 = longState2 - ..ref.longState3 = longState3 - ..ref.longState4 = longState4; -} - -final class TECSnifferContextRec extends ffi.Struct { - external ffi.Pointer pluginRec; - - @ffi.UnsignedInt() - external int encoding; - - @ffi.UnsignedLong() - external int maxErrors; - - @ffi.UnsignedLong() - external int maxFeatures; - - external ffi.Pointer textInputBuffer; - - external ffi.Pointer textInputBufferEnd; - - @ffi.UnsignedLong() - external int numFeatures; - - @ffi.UnsignedLong() - external int numErrors; - - external ffi.Pointer contextRefCon; - - external ffi.Pointer> sniffProc; - - external ffi.Pointer> - clearContextInfoProc; - - external TECPluginStateRec pluginState; -} - -@ffi.Packed(2) -final class TMTask extends ffi.Struct { - external ffi.Pointer qLink; - - @ffi.Short() - external int qType; - - external ffi.Pointer> tmAddr; - - @ffi.Long() - external int tmCount; - - @ffi.Long() - external int tmWakeUp; - - @ffi.Long() - external int tmReserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer qLink, - required int qType, - required ffi.Pointer> tmAddr, - required int tmCount, - required int tmWakeUp, - required int tmReserved, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.tmAddr = tmAddr - ..ref.tmCount = tmCount - ..ref.tmWakeUp = tmWakeUp - ..ref.tmReserved = tmReserved; -} - -typedef TaskProcFunction = ffi.Int Function(ffi.Pointer parameter); -typedef DartTaskProcFunction = int Function(ffi.Pointer parameter); - -@ffi.Packed(2) -final class TextEncodingRun extends ffi.Struct { - @ffi.UnsignedLong() - external int offset; - - @ffi.UnsignedInt() - external int textEncoding; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int textEncoding, - }) => $allocator() - ..ref.offset = offset - ..ref.textEncoding = textEncoding; -} - -typedef ThreadEntryProcPtrFunction = - ffi.Pointer Function(ffi.Pointer threadParam); -typedef ThreadSchedulerProcPtrFunction = - ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); -typedef DartThreadSchedulerProcPtrFunction = - int Function(ffi.Pointer schedulerInfo); -typedef ThreadSwitchProcPtrFunction = - ffi.Void Function( - ffi.UnsignedLong threadBeingSwitched, - ffi.Pointer switchProcParam, - ); -typedef DartThreadSwitchProcPtrFunction = - void Function( - int threadBeingSwitched, - ffi.Pointer switchProcParam, - ); -typedef ThreadTerminationProcPtrFunction = - ffi.Void Function( - ffi.UnsignedLong threadTerminated, - ffi.Pointer terminationProcParam, - ); -typedef DartThreadTerminationProcPtrFunction = - void Function( - int threadTerminated, - ffi.Pointer terminationProcParam, - ); -typedef TimerProcPtrFunction = ffi.Void Function(ffi.Pointer tmTaskPtr); -typedef DartTimerProcPtrFunction = void Function(ffi.Pointer tmTaskPtr); - -@ffi.Packed(2) -final class UnicodeMapping extends ffi.Struct { - @ffi.UnsignedInt() - external int unicodeEncoding; - - @ffi.UnsignedInt() - external int otherEncoding; - - @ffi.Int() - external int mappingVersion; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int unicodeEncoding, - required int otherEncoding, - required int mappingVersion, - }) => $allocator() - ..ref.unicodeEncoding = unicodeEncoding - ..ref.otherEncoding = otherEncoding - ..ref.mappingVersion = mappingVersion; -} - -typedef UnicodeToTextFallbackProcPtrFunction = - ffi.Int Function( - ffi.Pointer iSrcUniStr, - ffi.UnsignedLong iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - ffi.Pointer oDestStr, - ffi.UnsignedLong iDestStrLen, - ffi.Pointer oDestConvLen, - ffi.Pointer iInfoPtr, - ffi.Pointer iUnicodeMappingPtr, - ); -typedef DartUnicodeToTextFallbackProcPtrFunction = - int Function( - ffi.Pointer iSrcUniStr, - int iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - ffi.Pointer oDestStr, - int iDestStrLen, - ffi.Pointer oDestConvLen, - ffi.Pointer iInfoPtr, - ffi.Pointer iUnicodeMappingPtr, - ); - -final class UnnamedUnion extends ffi.Union { - external cssm_list Sublist; - - external cssm_data Word; -} - -final class VectorInformation extends ffi.Struct { - external ffi.Pointer __unusedVectorInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedVectorInformationField, - }) => - $allocator() - ..ref.__unusedVectorInformationField = $unusedVectorInformationField; -} - -typedef WSClientContextCopyDescriptionCallBackProcPtrFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef WSClientContextReleaseCallBackProcPtrFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartWSClientContextReleaseCallBackProcPtrFunction = - void Function(ffi.Pointer info); -typedef WSClientContextRetainCallBackProcPtrFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef WSMethodInvocationCallBackProcPtrFunction = - ffi.Void Function( - ffi.Pointer invocation, - ffi.Pointer info, - ffi.Pointer<__CFDictionary> outRef, - ); -typedef DartWSMethodInvocationCallBackProcPtrFunction = - void Function( - ffi.Pointer invocation, - ffi.Pointer info, - ffi.Pointer<__CFDictionary> outRef, - ); -typedef WSMethodInvocationDeserializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer invocation, - ffi.Pointer<__CFTree> msgRoot, - ffi.Pointer<__CFTree> deserializeRoot, - ffi.Pointer info, - ); -typedef WSMethodInvocationSerializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer invocation, - ffi.Pointer obj, - ffi.Pointer info, - ); -typedef WSProtocolHandlerDeserializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer protocol, - ffi.Pointer<__CFTree> msgRoot, - ffi.Pointer<__CFTree> deserializeRoot, - ffi.Pointer info, - ); -typedef WSProtocolHandlerSerializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer protocol, - ffi.Pointer obj, - ffi.Pointer info, - ); - -final class __CFAllocator extends ffi.Opaque {} - -final class __CFArray extends ffi.Opaque {} - -final class __CFBundle extends ffi.Opaque {} - -final class __CFData extends ffi.Opaque {} - -final class __CFDictionary extends ffi.Opaque {} - -final class __CFError extends ffi.Opaque {} - -final class __CFFileDescriptor extends ffi.Opaque {} - -final class __CFHost extends ffi.Opaque {} - -final class __CFMachPort extends ffi.Opaque {} - -final class __CFMessagePort extends ffi.Opaque {} - -final class __CFNetService extends ffi.Opaque {} - -final class __CFNetServiceBrowser extends ffi.Opaque {} - -final class __CFNetServiceMonitor extends ffi.Opaque {} - -final class __CFNotificationCenter extends ffi.Opaque {} - -final class __CFPlugInInstance extends ffi.Opaque {} - -final class __CFReadStream extends ffi.Opaque {} - -final class __CFRunLoopObserver extends ffi.Opaque {} - -final class __CFRunLoopTimer extends ffi.Opaque {} - -final class __CFSocket extends ffi.Opaque {} - -final class __CFTree extends ffi.Opaque {} - -final class __CFURL extends ffi.Opaque {} - -final class __CFUUID extends ffi.Opaque {} - -final class __CFUserNotification extends ffi.Opaque {} - -final class __CFWriteStream extends ffi.Opaque {} - -final class __CFXMLNode extends ffi.Opaque {} - -final class __CFXMLParser extends ffi.Opaque {} - -final class __CSIdentity extends ffi.Opaque {} - -final class __CSIdentityQuery extends ffi.Opaque {} - -final class __FSEventStream extends ffi.Opaque {} - -final class __FSFileOperation extends ffi.Opaque {} - -final class __MDItem extends ffi.Opaque {} - -final class __MDQuery extends ffi.Opaque {} - -final class __SKIndex extends ffi.Opaque {} - -final class __SecKeychain extends ffi.Opaque {} - -final class __SecKeychainItem extends ffi.Opaque {} - @ffi.Native>( symbol: 'OBJC_CLASS_\$__TtC12swift_module10SwiftClass', ) @@ -2819,9 +110,6 @@ final _class_SwiftClass = objc.getClass( _class_SwiftClass_raw, ).cast(), ); - -final class _launch_data extends ffi.Opaque {} - final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -2911,230 +199,5 @@ late final _sel_new = objc.registerName("new"); late final _sel_sayHello = objc.registerName("sayHello"); late final _sel_setSomeField_ = objc.registerName("setSomeField:"); late final _sel_someField = objc.registerName("someField"); - -final class cssm_data extends ffi.Struct { - @ffi.Size() - external int Length; - - external ffi.Pointer Data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Length, - required ffi.Pointer Data, - }) => $allocator() - ..ref.Length = Length - ..ref.Data = Data; -} - -final class cssm_guid extends ffi.Struct { - @ffi.Uint32() - external int Data1; - - @ffi.Uint16() - external int Data2; - - @ffi.Uint16() - external int Data3; - - @ffi.Array.multi([8]) - external ffi.Array Data4; -} - -final class cssm_list extends ffi.Struct { - @ffi.Uint32() - external int ListType; - - external ffi.Pointer Head; - - external ffi.Pointer Tail; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ListType, - required ffi.Pointer Head, - required ffi.Pointer Tail, - }) => $allocator() - ..ref.ListType = ListType - ..ref.Head = Head - ..ref.Tail = Tail; -} - -@Deprecated('Deprecated') -final class cssm_list_element extends ffi.Struct { - external ffi.Pointer NextElement; - - @ffi.Int32() - external int WordID; - - @ffi.Uint32() - external int ElementType; - - external UnnamedUnion Element; -} - -final class cssm_memory_funcs extends ffi.Struct { - external ffi.Pointer> malloc_func; - - external ffi.Pointer> free_func; - - external ffi.Pointer> realloc_func; - - external ffi.Pointer> calloc_func; - - external ffi.Pointer AllocRef; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer> malloc_func, - required ffi.Pointer> free_func, - required ffi.Pointer> realloc_func, - required ffi.Pointer> calloc_func, - required ffi.Pointer AllocRef, - }) => $allocator() - ..ref.malloc_func = malloc_func - ..ref.free_func = free_func - ..ref.realloc_func = realloc_func - ..ref.calloc_func = calloc_func - ..ref.AllocRef = AllocRef; -} - -@Deprecated('Deprecated') -final class cssm_sample extends ffi.Struct { - external cssm_list TypedSample; - - external ffi.Pointer Verifier; -} - -@Deprecated('Deprecated') -final class cssm_samplegroup extends ffi.Struct { - @ffi.Uint32() - external int NumberOfSamples; - - external ffi.Pointer Samples; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfSamples, - required ffi.Pointer Samples, - }) => $allocator() - ..ref.NumberOfSamples = NumberOfSamples - ..ref.Samples = Samples; -} - -@Deprecated('Deprecated') -final class cssm_subservice_uid extends ffi.Struct { - external cssm_guid Guid; - - external cssm_version Version; - - @ffi.Uint32() - external int SubserviceId; - - @ffi.Uint32() - external int SubserviceType; -} - -final class cssm_version extends ffi.Struct { - @ffi.Uint32() - external int Major; - - @ffi.Uint32() - external int Minor; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Major, - required int Minor, - }) => $allocator() - ..ref.Major = Major - ..ref.Minor = Minor; -} - -typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); -typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef launch_data_dict_iterator_tFunction = - ffi.Void Function( - ffi.Pointer<_launch_data> lval, - ffi.Pointer key, - ffi.Pointer ctx, - ); -typedef Dartlaunch_data_dict_iterator_tFunction = - void Function( - ffi.Pointer<_launch_data> lval, - ffi.Pointer key, - ffi.Pointer ctx, - ); -typedef mach_error_fn_tFunction = ffi.Int Function(); -typedef Dartmach_error_fn_tFunction = int Function(); - -final class mach_msg_header_t extends ffi.Struct { - @ffi.UnsignedInt() - external int msgh_bits; - - @ffi.UnsignedInt() - external int msgh_size; - - @ffi.UnsignedInt() - external int msgh_remote_port; - - @ffi.UnsignedInt() - external int msgh_local_port; - - @ffi.UnsignedInt() - external int msgh_voucher_port; - - @ffi.Int() - external int msgh_id; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_bits, - required int msgh_size, - required int msgh_remote_port, - required int msgh_local_port, - required int msgh_voucher_port, - required int msgh_id, - }) => $allocator() - ..ref.msgh_bits = msgh_bits - ..ref.msgh_size = msgh_size - ..ref.msgh_remote_port = msgh_remote_port - ..ref.msgh_local_port = msgh_local_port - ..ref.msgh_voucher_port = msgh_voucher_port - ..ref.msgh_id = msgh_id; -} - -typedef mig_impl_routine_tFunction = ffi.Int Function(); -typedef Dartmig_impl_routine_tFunction = int Function(); -typedef mig_server_routine_tFunction = - ffi.Pointer> Function( - ffi.Pointer InHeadP, - ); -typedef mig_stub_routine_tFunction = - ffi.Void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ); -typedef Dartmig_stub_routine_tFunction = - void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ); -typedef os_function_tFunction = ffi.Void Function(ffi.Pointer); -typedef Dartos_function_tFunction = void Function(ffi.Pointer); -typedef os_workgroup_working_arena_destructor_tFunction = - ffi.Void Function(ffi.Pointer); -typedef Dartos_workgroup_working_arena_destructor_tFunction = - void Function(ffi.Pointer); -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); -typedef xpc_connection_handler_tFunction = - ffi.Void Function(ffi.Pointer connection); -typedef Dartxpc_connection_handler_tFunction = - void Function(objc.NSObject connection); -typedef xpc_finalizer_tFunction = - ffi.Void Function(ffi.Pointer value); -typedef Dartxpc_finalizer_tFunction = - void Function(ffi.Pointer value); diff --git a/pkgs/ffigen/lib/src/code_generator/typealias.dart b/pkgs/ffigen/lib/src/code_generator/typealias.dart index 674e32a9a2..818f212282 100644 --- a/pkgs/ffigen/lib/src/code_generator/typealias.dart +++ b/pkgs/ffigen/lib/src/code_generator/typealias.dart @@ -51,7 +51,7 @@ class Typealias extends BindingType { type: funcType, genFfiDartType: genFfiDartType, isInternal: isInternal, - )..isIncluded = true, + ), ), ); } diff --git a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart index 6eb46d648c..ce3d7a7c57 100644 --- a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart +++ b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart @@ -2330,15 +2330,15 @@ final class CXCursorSetImpl extends ffi.Opaque {} /// The visitor should return one of the \c CXChildVisitResult values /// to direct clang_visitCursorChildren(). typedef CXCursorVisitor = - ffi.Pointer>; -typedef CXCursorVisitorFunction = - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ); -typedef DartCXCursorVisitorFunction = - int Function(CXCursor cursor, CXCursor parent, CXClientData client_data); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ) + > + >; /// A single diagnostic, containing the diagnostic's severity, /// location, text, source ranges, and fix-it hints. @@ -2447,11 +2447,11 @@ sealed class CXEvalResultKind { /// The visitor should return one of the \c CXVisitorResult values /// to direct \c clang_Type_visitFields. typedef CXFieldVisitor = - ffi.Pointer>; -typedef CXFieldVisitorFunction = - ffi.UnsignedInt Function(CXCursor C, CXClientData client_data); -typedef DartCXFieldVisitorFunction = - int Function(CXCursor C, CXClientData client_data); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor C, CXClientData client_data) + > + >; /// A particular source file that is part of a translation unit. typedef CXFile = ffi.Pointer; @@ -2480,21 +2480,16 @@ typedef CXIdxClientFile = ffi.Pointer; /// array is sorted in order of immediate inclusion. For example, /// the first element refers to the location that included 'included_file'. typedef CXInclusionVisitor = - ffi.Pointer>; -typedef CXInclusionVisitorFunction = - ffi.Void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - CXClientData client_data, - ); -typedef DartCXInclusionVisitorFunction = - void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - int include_len, - CXClientData client_data, - ); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + CXClientData client_data, + ) + > + >; /// An "index" that consists of a set of translation units that would /// typically be linked together into an executable or library. diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart index f7947f5dff..5f5df1f17f 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart @@ -71,6 +71,5 @@ final class Struct2 extends ffi.Struct { }) => $allocator()..ref.h = h; } -typedef Typedef1 = ffi.Pointer>; -typedef Typedef1Function = ffi.Void Function(ffi.Handle); -typedef DartTypedef1Function = void Function(Object); +typedef Typedef1 = + ffi.Pointer>; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart index 52c3240100..eb0ed55bf9 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart @@ -71,10 +71,7 @@ class NativeLibrary { .asFunction(); } -typedef InsideReturnType = - ffi.Pointer>; -typedef InsideReturnTypeFunction = ffi.Void Function(); -typedef DartInsideReturnTypeFunction = void Function(); +typedef InsideReturnType = ffi.Pointer>; final class Struct extends ffi.Struct { external ffi.Pointer< @@ -108,10 +105,6 @@ final class Struct2 extends ffi.Struct { }) => $allocator()..ref.constFuncPointer = constFuncPointer; } -typedef VoidFuncPointer = - ffi.Pointer>; -typedef VoidFuncPointerFunction = ffi.Void Function(); -typedef DartVoidFuncPointerFunction = void Function(); +typedef VoidFuncPointer = ffi.Pointer>; typedef WithTypedefReturnType = - ffi.Pointer>; -typedef WithTypedefReturnTypeFunction = InsideReturnType Function(); + ffi.Pointer>; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart index 550cfc43c9..5608b359c1 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart @@ -5,9 +5,7 @@ import 'dart:ffi' as ffi; typedef ArithmeticOperation = - ffi.Pointer>; -typedef ArithmeticOperationFunction = ffi.Int Function(ffi.Int a, ffi.Int b); -typedef DartArithmeticOperationFunction = int Function(int a, int b); + ffi.Pointer>; final class S extends ffi.Struct { external ffi.Pointer> func1; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart index 7d2414c949..89d7474092 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart @@ -97,9 +97,7 @@ typedef ExcludedStruct = _ExcludedStruct; typedef IncludedTypedef = ffi.Pointer; typedef NTyperef1 = ExcludedStruct; typedef NamedFunctionProto = - ffi.Pointer>; -typedef NamedFunctionProtoFunction = ffi.Void Function(); -typedef DartNamedFunctionProtoFunction = void Function(); + ffi.Pointer>; typedef NamedStructInTypedef = _NamedStructInTypedef; typedef NestingASpecifiedType = ffi.IntPtr; typedef DartNestingASpecifiedType = int; diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart index b037d2fd0e..dc0a0df2be 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart @@ -2,82 +2,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -/// Describes how the traversal of the children of a particular cursor should -/// proceed after visiting a particular child cursor. -enum CXChildVisitResult { - /// Terminates the cursor traversal. - CXChildVisit_Break(0), - - /// Continues the cursor traversal with the next sibling of the cursor just - /// visited, without visiting its children. - CXChildVisit_Continue(1), - - /// Recursively traverse the children of this cursor, using the same visitor - /// and client data. - CXChildVisit_Recurse(2); - - final int value; - const CXChildVisitResult(this.value); - - static CXChildVisitResult fromValue(int value) => switch (value) { - 0 => CXChildVisit_Break, - 1 => CXChildVisit_Continue, - 2 => CXChildVisit_Recurse, - _ => throw ArgumentError('Unknown value for CXChildVisitResult: $value'), - }; -} - -/// A cursor representing some element in the abstract syntax tree for a -/// translation unit. -final class CXCursor extends ffi.Opaque {} - -typedef CXCursorVisitorFunction = - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - ffi.Pointer client_data, - ); -typedef DartCXCursorVisitorFunction = - CXChildVisitResult Function( - CXCursor cursor, - CXCursor parent, - ffi.Pointer client_data, - ); -typedef CXFieldVisitorFunction = - ffi.UnsignedInt Function(CXCursor C, ffi.Pointer client_data); -typedef DartCXFieldVisitorFunction = - CXVisitorResult Function(CXCursor C, ffi.Pointer client_data); -typedef CXInclusionVisitorFunction = - ffi.Void Function( - ffi.Pointer included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - ffi.Pointer client_data, - ); -typedef DartCXInclusionVisitorFunction = - void Function( - ffi.Pointer included_file, - ffi.Pointer inclusion_stack, - int include_len, - ffi.Pointer client_data, - ); - -/// Identifies a specific source location within a translation unit. -final class CXSourceLocation extends ffi.Opaque {} - -/// @{ -enum CXVisitorResult { - CXVisit_Break(0), - CXVisit_Continue(1); - - final int value; - const CXVisitorResult(this.value); - - static CXVisitorResult fromValue(int value) => switch (value) { - 0 => CXVisit_Break, - 1 => CXVisit_Continue, - _ => throw ArgumentError('Unknown value for CXVisitorResult: $value'), - }; -} diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart index f5e26ef535..dc0a0df2be 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart @@ -2,677 +2,3 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package -import 'dart:ffi' as ffi; - -final class Fts5Context extends ffi.Opaque {} - -/// EXTENSION API FUNCTIONS -/// -/// xUserData(pFts): -/// Return a copy of the context pointer the extension function was -/// registered with. -/// -/// xColumnTotalSize(pFts, iCol, pnToken): -/// If parameter iCol is less than zero, set output variable *pnToken -/// to the total number of tokens in the FTS5 table. Or, if iCol is -/// non-negative but less than the number of columns in the table, return -/// the total number of tokens in column iCol, considering all rows in -/// the FTS5 table. -/// -/// If parameter iCol is greater than or equal to the number of columns -/// in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g. -/// an OOM condition or IO error), an appropriate SQLite error code is -/// returned. -/// -/// xColumnCount(pFts): -/// Return the number of columns in the table. -/// -/// xColumnSize(pFts, iCol, pnToken): -/// If parameter iCol is less than zero, set output variable *pnToken -/// to the total number of tokens in the current row. Or, if iCol is -/// non-negative but less than the number of columns in the table, set -/// *pnToken to the number of tokens in column iCol of the current row. -/// -/// If parameter iCol is greater than or equal to the number of columns -/// in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g. -/// an OOM condition or IO error), an appropriate SQLite error code is -/// returned. -/// -/// This function may be quite inefficient if used with an FTS5 table -/// created with the "columnsize=0" option. -/// -/// xColumnText: -/// This function attempts to retrieve the text of column iCol of the -/// current document. If successful, (*pz) is set to point to a buffer -/// containing the text in utf-8 encoding, (*pn) is set to the size in bytes -/// (not characters) of the buffer and SQLITE_OK is returned. Otherwise, -/// if an error occurs, an SQLite error code is returned and the final values -/// of (*pz) and (*pn) are undefined. -/// -/// xPhraseCount: -/// Returns the number of phrases in the current query expression. -/// -/// xPhraseSize: -/// Returns the number of tokens in phrase iPhrase of the query. Phrases -/// are numbered starting from zero. -/// -/// xInstCount: -/// Set *pnInst to the total number of occurrences of all phrases within -/// the query within the current row. Return SQLITE_OK if successful, or -/// an error code (i.e. SQLITE_NOMEM) if an error occurs. -/// -/// This API can be quite slow if used with an FTS5 table created with the -/// "detail=none" or "detail=column" option. If the FTS5 table is created -/// with either "detail=none" or "detail=column" and "content=" option -/// (i.e. if it is a contentless table), then this API always returns 0. -/// -/// xInst: -/// Query for the details of phrase match iIdx within the current row. -/// Phrase matches are numbered starting from zero, so the iIdx argument -/// should be greater than or equal to zero and smaller than the value -/// output by xInstCount(). -/// -/// Usually, output parameter *piPhrase is set to the phrase number, *piCol -/// to the column in which it occurs and *piOff the token offset of the -/// first token of the phrase. Returns SQLITE_OK if successful, or an error -/// code (i.e. SQLITE_NOMEM) if an error occurs. -/// -/// This API can be quite slow if used with an FTS5 table created with the -/// "detail=none" or "detail=column" option. -/// -/// xRowid: -/// Returns the rowid of the current row. -/// -/// xTokenize: -/// Tokenize text using the tokenizer belonging to the FTS5 table. -/// -/// xQueryPhrase(pFts5, iPhrase, pUserData, xCallback): -/// This API function is used to query the FTS table for phrase iPhrase -/// of the current query. Specifically, a query equivalent to: -/// -/// ... FROM ftstable WHERE ftstable MATCH $p ORDER BY rowid -/// -/// with $p set to a phrase equivalent to the phrase iPhrase of the -/// current query is executed. Any column filter that applies to -/// phrase iPhrase of the current query is included in $p. For each -/// row visited, the callback function passed as the fourth argument -/// is invoked. The context and API objects passed to the callback -/// function may be used to access the properties of each matched row. -/// Invoking Api.xUserData() returns a copy of the pointer passed as -/// the third argument to pUserData. -/// -/// If the callback function returns any value other than SQLITE_OK, the -/// query is abandoned and the xQueryPhrase function returns immediately. -/// If the returned value is SQLITE_DONE, xQueryPhrase returns SQLITE_OK. -/// Otherwise, the error code is propagated upwards. -/// -/// If the query runs to completion without incident, SQLITE_OK is returned. -/// Or, if some error occurs before the query completes or is aborted by -/// the callback, an SQLite error code is returned. -/// -/// -/// xSetAuxdata(pFts5, pAux, xDelete) -/// -/// Save the pointer passed as the second argument as the extension function's -/// "auxiliary data". The pointer may then be retrieved by the current or any -/// future invocation of the same fts5 extension function made as part of -/// the same MATCH query using the xGetAuxdata() API. -/// -/// Each extension function is allocated a single auxiliary data slot for -/// each FTS query (MATCH expression). If the extension function is invoked -/// more than once for a single FTS query, then all invocations share a -/// single auxiliary data context. -/// -/// If there is already an auxiliary data pointer when this function is -/// invoked, then it is replaced by the new pointer. If an xDelete callback -/// was specified along with the original pointer, it is invoked at this -/// point. -/// -/// The xDelete callback, if one is specified, is also invoked on the -/// auxiliary data pointer after the FTS5 query has finished. -/// -/// If an error (e.g. an OOM condition) occurs within this function, -/// the auxiliary data is set to NULL and an error code returned. If the -/// xDelete parameter was not NULL, it is invoked on the auxiliary data -/// pointer before returning. -/// -/// -/// xGetAuxdata(pFts5, bClear) -/// -/// Returns the current auxiliary data pointer for the fts5 extension -/// function. See the xSetAuxdata() method for details. -/// -/// If the bClear argument is non-zero, then the auxiliary data is cleared -/// (set to NULL) before this function returns. In this case the xDelete, -/// if any, is not invoked. -/// -/// -/// xRowCount(pFts5, pnRow) -/// -/// This function is used to retrieve the total number of rows in the table. -/// In other words, the same value that would be returned by: -/// -/// SELECT count(*) FROM ftstable; -/// -/// xPhraseFirst() -/// This function is used, along with type Fts5PhraseIter and the xPhraseNext -/// method, to iterate through all instances of a single query phrase within -/// the current row. This is the same information as is accessible via the -/// xInstCount/xInst APIs. While the xInstCount/xInst APIs are more convenient -/// to use, this API may be faster under some circumstances. To iterate -/// through instances of phrase iPhrase, use the following code: -/// -/// Fts5PhraseIter iter; -/// int iCol, iOff; -/// for(pApi->xPhraseFirst(pFts, iPhrase, &iter, &iCol, &iOff); -/// iCol>=0; -/// pApi->xPhraseNext(pFts, &iter, &iCol, &iOff) -/// ){ -/// // An instance of phrase iPhrase at offset iOff of column iCol -/// } -/// -/// The Fts5PhraseIter structure is defined above. Applications should not -/// modify this structure directly - it should only be used as shown above -/// with the xPhraseFirst() and xPhraseNext() API methods (and by -/// xPhraseFirstColumn() and xPhraseNextColumn() as illustrated below). -/// -/// This API can be quite slow if used with an FTS5 table created with the -/// "detail=none" or "detail=column" option. If the FTS5 table is created -/// with either "detail=none" or "detail=column" and "content=" option -/// (i.e. if it is a contentless table), then this API always iterates -/// through an empty set (all calls to xPhraseFirst() set iCol to -1). -/// -/// xPhraseNext() -/// See xPhraseFirst above. -/// -/// xPhraseFirstColumn() -/// This function and xPhraseNextColumn() are similar to the xPhraseFirst() -/// and xPhraseNext() APIs described above. The difference is that instead -/// of iterating through all instances of a phrase in the current row, these -/// APIs are used to iterate through the set of columns in the current row -/// that contain one or more instances of a specified phrase. For example: -/// -/// Fts5PhraseIter iter; -/// int iCol; -/// for(pApi->xPhraseFirstColumn(pFts, iPhrase, &iter, &iCol); -/// iCol>=0; -/// pApi->xPhraseNextColumn(pFts, &iter, &iCol) -/// ){ -/// // Column iCol contains at least one instance of phrase iPhrase -/// } -/// -/// This API can be quite slow if used with an FTS5 table created with the -/// "detail=none" option. If the FTS5 table is created with either -/// "detail=none" "content=" option (i.e. if it is a contentless table), -/// then this API always iterates through an empty set (all calls to -/// xPhraseFirstColumn() set iCol to -1). -/// -/// The information accessed using this API and its companion -/// xPhraseFirstColumn() may also be obtained using xPhraseFirst/xPhraseNext -/// (or xInst/xInstCount). The chief advantage of this API is that it is -/// significantly more efficient than those alternatives when used with -/// "detail=column" tables. -/// -/// xPhraseNextColumn() -/// See xPhraseFirstColumn above. -final class Fts5ExtensionApi extends ffi.Struct { - /// Currently always set to 3 - @ffi.Int() - external int iVersion; - - external ffi.Pointer< - ffi.NativeFunction Function(ffi.Pointer)> - > - xUserData; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xColumnCount; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xRowCount; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xColumnTotalSize; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Int, - ) - > - >, - ) - > - > - xTokenize; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xPhraseCount; - - external ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xPhraseSize; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xInstCount; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xInst; - - external ffi.Pointer< - ffi.NativeFunction)> - > - xRowid; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ) - > - > - xColumnText; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) - > - > - xColumnSize; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ) - > - > - xQueryPhrase; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - > - xSetAuxdata; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - > - xGetAuxdata; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseFirst; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseNext; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseFirstColumn; - - external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseNextColumn; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int iVersion, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - > - xUserData, - required ffi.Pointer< - ffi.NativeFunction)> - > - xColumnCount, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xRowCount, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xColumnTotalSize, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Int, - ffi.Int, - ffi.Int, - ) - > - >, - ) - > - > - xTokenize, - required ffi.Pointer< - ffi.NativeFunction)> - > - xPhraseCount, - required ffi.Pointer< - ffi.NativeFunction, ffi.Int)> - > - xPhraseSize, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer) - > - > - xInstCount, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xInst, - required ffi.Pointer< - ffi.NativeFunction)> - > - xRowid, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer, - ) - > - > - xColumnText, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ) - > - > - xColumnSize, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ) - > - > - xQueryPhrase, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction)> - >, - ) - > - > - xSetAuxdata, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, ffi.Int) - > - > - xGetAuxdata, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseFirst, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseNext, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseFirstColumn, - required ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - xPhraseNextColumn, - }) => $allocator() - ..ref.iVersion = iVersion - ..ref.xUserData = xUserData - ..ref.xColumnCount = xColumnCount - ..ref.xRowCount = xRowCount - ..ref.xColumnTotalSize = xColumnTotalSize - ..ref.xTokenize = xTokenize - ..ref.xPhraseCount = xPhraseCount - ..ref.xPhraseSize = xPhraseSize - ..ref.xInstCount = xInstCount - ..ref.xInst = xInst - ..ref.xRowid = xRowid - ..ref.xColumnText = xColumnText - ..ref.xColumnSize = xColumnSize - ..ref.xQueryPhrase = xQueryPhrase - ..ref.xSetAuxdata = xSetAuxdata - ..ref.xGetAuxdata = xGetAuxdata - ..ref.xPhraseFirst = xPhraseFirst - ..ref.xPhraseNext = xPhraseNext - ..ref.xPhraseFirstColumn = xPhraseFirstColumn - ..ref.xPhraseNextColumn = xPhraseNextColumn; -} - -final class Fts5PhraseIter extends ffi.Struct { - external ffi.Pointer a; - - external ffi.Pointer b; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer a, - required ffi.Pointer b, - }) => $allocator() - ..ref.a = a - ..ref.b = b; -} - -typedef fts5_extension_functionFunction = - ffi.Void Function( - ffi.Pointer pApi, - ffi.Pointer pFts, - ffi.Pointer pCtx, - ffi.Int nVal, - ffi.Pointer> apVal, - ); -typedef Dartfts5_extension_functionFunction = - void Function( - ffi.Pointer pApi, - ffi.Pointer pFts, - ffi.Pointer pCtx, - int nVal, - ffi.Pointer> apVal, - ); -typedef sqlite3_callbackFunction = - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ); -typedef Dartsqlite3_callbackFunction = - int Function( - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>, - ); - -final class sqlite3_context extends ffi.Opaque {} - -typedef sqlite3_destructor_typeFunction = - ffi.Void Function(ffi.Pointer); -typedef Dartsqlite3_destructor_typeFunction = - void Function(ffi.Pointer); -typedef sqlite3_syscall_ptrFunction = ffi.Void Function(); -typedef Dartsqlite3_syscall_ptrFunction = void Function(); - -final class sqlite3_value extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart index 56b918230a..12fd500fb5 100644 --- a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart @@ -341,87 +341,6 @@ extension ArcTestObject$Methods on ArcTestObject { } } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_ArcDtorTestObject', ) @@ -627,5 +546,3 @@ late final _sel_setRetainedProperty_ = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart index 96c26ab3a1..3ae3ec75a3 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_method_test_bindings.dart @@ -110,90 +110,8 @@ extension BadMethodTestObject$Methods on BadMethodTestObject { final class BitField extends ffi.Opaque {} -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - final class IncompleteStruct extends ffi.Opaque {} -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_BadMethodTestObject', ) @@ -336,5 +254,3 @@ late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart index 872313bc9e..ba2f1ffb2b 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_override_test_bindings.dart @@ -606,84 +606,6 @@ extension BadOverrideUncle$Methods on BadOverrideUncle { } } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// Polygon extension type Polygon._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -760,9 +682,6 @@ extension Polygon$Methods on Polygon { } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); - /// Rectangle extension type Rectangle._(objc.ObjCObject object$) implements objc.ObjCObject, Polygon { @@ -839,9 +758,6 @@ extension Rectangle$Methods on Rectangle { } } -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - /// Square extension type Square._(objc.ObjCObject object$) implements objc.ObjCObject, Rectangle { @@ -1188,5 +1104,3 @@ late final _sel_name = objc.registerName("name"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart index 6a20b4d36a..1854786c48 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart @@ -1130,81 +1130,6 @@ interface class BlockAnnotationTestProtocol$Builder { ); } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - typedef EmptyBlock = ffi.Pointer; typedef DartEmptyBlock = objc.ObjCBlock; @@ -1277,9 +1202,6 @@ extension EmptyObject$Methods on EmptyObject { } } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// NSThread extension type NSThread._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -3066,11 +2988,6 @@ extension ObjCBlock_ffiVoid_ffiVoid_EmptyObject$1$CallExtension } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - extension type _BlockArgs_1wgsnfr._(objc.ObjCObject object$) implements objc.ObjCObject { /// Constructs a [_BlockArgs_1wgsnfr] that points to the same underlying object as [other]. @@ -3766,5 +3683,3 @@ late final _sel_threadDictionary = objc.registerName("threadDictionary"); late final _sel_threadPriority = objc.registerName("threadPriority"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart index d9d91cc435..3dc34fbed9 100644 --- a/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_inherit_test_bindings.dart @@ -286,84 +286,6 @@ extension BlockInheritTestChild$Methods on BlockInheritTestChild { } } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// Mammal extension type Mammal._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -919,10 +841,6 @@ extension Platypus$Methods on Platypus { } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); typedef ReturnMammal = ffi.Pointer; typedef DartReturnMammal = objc.ObjCBlock; typedef ReturnPlatypus = ffi.Pointer; @@ -1090,5 +1008,3 @@ late final _sel_laysEggs = objc.registerName("laysEggs"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart index d1b7850e24..14de93cbb6 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart @@ -676,81 +676,6 @@ extension BlockTester$Methods on BlockTester { } } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - typedef DoubleBlock = ffi.Pointer; typedef DartDoubleBlock = objc.ObjCBlock; @@ -858,8 +783,6 @@ extension DummyObject$Methods on DummyObject { typedef FloatBlock = ffi.Pointer; typedef DartFloatBlock = objc.ObjCBlock; -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); typedef IntBlock = ffi.Pointer; typedef DartIntBlock = objc.ObjCBlock; typedef ListenerBlock = ffi.Pointer; @@ -3912,10 +3835,6 @@ typedef DartObjectBlock = objc.ObjCBlock; typedef ObjectListenerBlock = ffi.Pointer; typedef DartObjectListenerBlock = objc.ObjCBlock; -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); typedef SelectorBlock = ffi.Pointer; typedef DartSelectorBlock = objc.ObjCBlock)>; @@ -5278,5 +5197,3 @@ late final _sel_threadDictionary = objc.registerName("threadDictionary"); late final _sel_threadPriority = objc.registerName("threadPriority"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart index 22b0b92014..463cd4713c 100644 --- a/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/cast_test_bindings.dart @@ -10,80 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} /// Castaway extension type Castaway._(objc.ObjCObject object$) @@ -167,12 +93,6 @@ extension Castaway$Methods on Castaway { } } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>(symbol: 'OBJC_CLASS_\$_Castaway') external ffi.Pointer _class_Castaway_raw; final _class_Castaway = objc.getClass( @@ -254,5 +174,3 @@ late final _sel_meAsNSObject = objc.registerName("meAsNSObject"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index 1812f668c0..6d48048e5d 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -41,81 +41,6 @@ external ffi.Pointer _l3cf7j_wrapListenerBlock_pfv6jd( ffi.Pointer context, ); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - /// CatImplementsProto extension CatImplementsProto on Thing { /// protoMethod @@ -322,9 +247,6 @@ extension ChildOfThing$Methods on ChildOfThing { } } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// InstanceTypeCategory extension InstanceTypeCategory on Thing {} @@ -1169,11 +1091,6 @@ extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - /// StaticAndInstanceMethodsWithSameNameCategory extension StaticAndInstanceMethodsWithSameNameCategory on Thing { /// sameNameMethod @@ -1793,8 +1710,6 @@ late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); /// extension unnamed on Thing {} diff --git a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart index 1aac237ad1..624ad51faa 100644 --- a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart @@ -10,80 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} sealed class CoffeeOptions { static const CoffeeOptionsNone = 0; @@ -197,13 +123,6 @@ enum Fruit { }; } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - const int SOME_MACRO = 123; const int UnnamedEnumValue = 0; @@ -312,5 +231,3 @@ late final _sel_useImportedNSOptions_ = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart index e99f8aa371..342e32e50b 100644 --- a/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/error_method_test_bindings.dart @@ -10,80 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} /// ErrorMethodTestObject extension type ErrorMethodTestObject._(objc.ObjCObject object$) @@ -247,12 +173,6 @@ extension ErrorMethodTestObject$Methods on ErrorMethodTestObject { } } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_ErrorMethodTestObject', ) @@ -369,5 +289,3 @@ late final _sel_outErrorMethod_outError_ = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart index d606bc7d74..8bd3c48f48 100644 --- a/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/failed_to_load_test_bindings.dart @@ -10,80 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} /// ClassThatWillFailToLoad extension type ClassThatWillFailToLoad._(objc.ObjCObject object$) @@ -182,12 +108,6 @@ extension ClassThatWillFailToLoad$Methods on ClassThatWillFailToLoad { } } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_ClassThatWillFailToLoad', ) @@ -270,5 +190,3 @@ late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart index 3d5122551b..855bf1a850 100644 --- a/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/forward_decl_test_bindings.dart @@ -10,80 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} /// ForwardDeclaredClass extension type ForwardDeclaredClass._(objc.ObjCObject object$) @@ -159,12 +85,6 @@ extension ForwardDeclaredClass$Methods on ForwardDeclaredClass { } } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_ForwardDeclaredClass', ) @@ -247,5 +167,3 @@ late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart index c3e389accc..579aa3cfee 100644 --- a/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/global_native_test_bindings.dart @@ -69,84 +69,6 @@ set globalString(objc.NSString value) { _globalString = _$$ref.retainAndReturnPointer(); } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -233,10 +155,3 @@ extension ObjCBlock_Int32_Int32$CallExtension ); } } - -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart index ccf252af3e..750eb425ce 100644 --- a/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/global_test_bindings.dart @@ -90,84 +90,6 @@ class GlobalTestObjCLibrary { } } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -254,10 +176,3 @@ extension ObjCBlock_Int32_Int32$CallExtension ); } } - -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart index 1851490343..2afa773d54 100644 --- a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test_bindings.dart @@ -93,81 +93,6 @@ extension BaseClass$Methods on BaseClass { } } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - /// ChildClass extension type ChildClass._(objc.ObjCObject object$) implements objc.ObjCObject, BaseClass { @@ -262,12 +187,6 @@ extension ChildClass$Methods on ChildClass { } } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>(symbol: 'OBJC_CLASS_\$_BaseClass') external ffi.Pointer _class_BaseClass_raw; final _class_BaseClass = objc.getClass( @@ -378,5 +297,3 @@ late final _sel_new = objc.registerName("new"); late final _sel_setField_ = objc.registerName("setField:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart index b88a5dbb53..486f0fa35c 100644 --- a/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/is_instance_test_bindings.dart @@ -10,83 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); /// IsInstanceBaseClass extension type IsInstanceBaseClass._(objc.ObjCObject object$) @@ -317,10 +240,6 @@ extension IsInstanceUnrelatedClass$Methods on IsInstanceUnrelatedClass { } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_IsInstanceBaseClass', ) @@ -407,5 +326,3 @@ late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart index 79003c332e..fb2451e90b 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart @@ -41,84 +41,6 @@ external ffi.Pointer _rdx59v_wrapListenerBlock_1bqef4y( ffi.Pointer context, ); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -266,11 +188,6 @@ extension ObjCBlock_ffiVoid_Int32$CallExtension } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - /// Sendable extension type Sendable._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -526,5 +443,3 @@ late final _sel_setValue_ = objc.registerName("setValue:"); late final _sel_value = objc.registerName("value"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart index 9e46dcae40..cb06d2dcb3 100644 --- a/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/log_test_bindings.dart @@ -10,83 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); /// LogSpamBaseClass extension type LogSpamBaseClass._(objc.ObjCObject object$) @@ -254,10 +177,6 @@ extension LogSpamChildClass$Methods on LogSpamChildClass { } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_LogSpamBaseClass', ) @@ -351,5 +270,3 @@ late final _sel_matchingMethod = objc.registerName("matchingMethod"); late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart index 392def2150..d3464955d5 100644 --- a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart @@ -18,84 +18,6 @@ external instancetype _n85dd5_protocolTrampoline_1mbt9g9( ffi.Pointer arg0, ); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// MethodFilteringTestInterface extension type MethodFilteringTestInterface._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -397,10 +319,6 @@ extension ObjCBlock_instancetype_ffiVoid$CallExtension } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_MethodFilteringTestInterface', ) @@ -503,5 +421,3 @@ late final _sel_includedStaticMethod = objc.registerName( late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart index 4efc01b10c..8071e21574 100644 --- a/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_test_bindings.dart @@ -10,83 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); /// MethodInterface extension type MethodInterface._(objc.ObjCObject object$) @@ -268,11 +191,6 @@ extension MethodInterface$Methods on MethodInterface { } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - final class Vec4 extends ffi.Struct { @ffi.Double() external double x; @@ -596,5 +514,3 @@ late final _sel_twiddleVec4Components_ = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart index 5ce535ee52..9ddfe020c2 100644 --- a/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/native_objc_test_bindings.dart @@ -10,80 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} /// Foo extension type Foo._(objc.ObjCObject object$) @@ -248,12 +174,6 @@ extension Foo$Methods on Foo { } } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>(symbol: 'OBJC_CLASS_\$_Foo') external ffi.Pointer _class_Foo_raw; final _class_Foo = objc.getClass( @@ -501,5 +421,3 @@ late final _sel_setObjVal_ = objc.registerName("setObjVal:"); late final _sel_setSelVal_ = objc.registerName("setSelVal:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart index 8e616af047..f808138798 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test_bindings.dart @@ -10,83 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); /// NullableBase extension type NullableBase._(objc.ObjCObject object$) @@ -373,10 +296,6 @@ extension NullableIntermediate$Methods on NullableIntermediate { } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NullableBase', ) @@ -484,5 +403,3 @@ late final _sel_nullableArg_ = objc.registerName("nullableArg:"); late final _sel_nullableReturn_ = objc.registerName("nullableReturn:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart index 6d21564adf..ba8f6f1664 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart @@ -10,83 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); /// NullableInterface extension type NullableInterface._(objc.ObjCObject object$) @@ -255,10 +178,6 @@ extension NullableInterface$Methods on NullableInterface { } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_NullableInterface', ) @@ -401,5 +320,3 @@ late final _sel_setNullableObjectProperty_ = objc.registerName( ); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart index 49af6a6df6..c153f673a9 100644 --- a/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/property_test_bindings.dart @@ -10,85 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); /// PropertyInterface extension type PropertyInterface._(objc.ObjCObject object$) @@ -282,9 +203,6 @@ extension PropertyInterface$Methods on PropertyInterface { } } -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - /// WARNING: UndefinedTemplate is a stub. To generate bindings for this class, include /// UndefinedTemplate in your config's objc-interfaces list. /// @@ -592,5 +510,3 @@ late final _sel_setStructProperty_ = objc.registerName("setStructProperty:"); late final _sel_structProperty = objc.registerName("structProperty"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart index 1b7c1fb6c6..d38bd0fd15 100644 --- a/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/protocol_test_bindings.dart @@ -226,81 +226,6 @@ external void objc_autoreleasePoolPop(ffi.Pointer pool); @ffi.Native Function()>() external ffi.Pointer objc_autoreleasePoolPush(); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - /// EmptyProtocol extension type EmptyProtocol._(objc.ObjCProtocol object$) implements objc.ObjCProtocol { @@ -372,9 +297,6 @@ extension type FilteredProtocol._(objc.ObjCProtocol object$) }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// MyProtocol extension type MyProtocol._(objc.ObjCProtocol object$) implements objc.ObjCProtocol, SuperProtocol { @@ -2790,9 +2712,6 @@ extension ObjCProtocolImplMissingMethod$Methods } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); - /// ProtocolConsumer extension type ProtocolConsumer._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -2929,9 +2848,6 @@ extension ProtocolConsumer$Methods on ProtocolConsumer { } } -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - /// SecondaryProtocol extension type SecondaryProtocol._(objc.ObjCProtocol object$) implements objc.ObjCProtocol, objc.NSObjectProtocol { @@ -3776,5 +3692,3 @@ late final _sel_unimplementedOtionalClassMethod = objc.registerName( late final _sel_voidMethod_ = objc.registerName("voidMethod:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart index df0f0aab4a..79e372972b 100644 --- a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart @@ -16,86 +16,6 @@ external void objc_autoreleasePoolPop(ffi.Pointer pool); @ffi.Native Function()>() external ffi.Pointer objc_autoreleasePoolPush(); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); - /// RefCountTestObject extension type RefCountTestObject._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -427,8 +347,6 @@ extension RefCounted$Methods on RefCounted { } } -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_RefCountTestObject', ) @@ -645,5 +563,3 @@ late final _sel_setRetainedProperty_ = objc.registerName( late final _sel_unownedReference = objc.registerName("unownedReference"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart index 122385dcf7..ea453eea06 100644 --- a/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/rename_test_bindings.dart @@ -10,90 +10,9 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} final class CollidingStructName extends ffi.Opaque {} -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - /// _Renamed extension type Renamed._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -335,5 +254,3 @@ late final _sel_setRenamedProperty_ = objc.registerName("setRenamedProperty:"); late final _sel_toString = objc.registerName("toString"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart index 1bc39958dc..8dfee2df47 100644 --- a/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/runtime_version_test_bindings.dart @@ -12,80 +12,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} /// FutureAPICategoryMethods extension FutureAPICategoryMethods on objc.NSObject { @@ -369,12 +295,6 @@ extension FutureAPIMethods$Methods on FutureAPIMethods { } } -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); @ffi.Native>( symbol: 'OBJC_CLASS_\$_FutureAPIInterface', ) @@ -486,5 +406,3 @@ late final _sel_unavailableIos = objc.registerName("unavailableIos"); late final _sel_unavailableMac = objc.registerName("unavailableMac"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart index 6b5dd91e64..1b66ae4d68 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart @@ -10,4918 +10,778 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef AECoerceDescProcPtrFunction = - ffi.Short Function( - ffi.Pointer fromDesc, - ffi.UnsignedInt toType, - ffi.Pointer handlerRefcon, - ffi.Pointer toDesc, - ); -typedef DartAECoerceDescProcPtrFunction = - int Function( - ffi.Pointer fromDesc, - int toType, - ffi.Pointer handlerRefcon, - ffi.Pointer toDesc, - ); -typedef AECoercePtrProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt typeCode, - ffi.Pointer dataPtr, - ffi.Long dataSize, - ffi.UnsignedInt toType, - ffi.Pointer handlerRefcon, - ffi.Pointer result, - ); -typedef DartAECoercePtrProcPtrFunction = - int Function( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - int toType, - ffi.Pointer handlerRefcon, - ffi.Pointer result, - ); -typedef AEDisposeExternalProcPtrFunction = - ffi.Void Function( - ffi.Pointer dataPtr, - ffi.Long dataLength, - ffi.Pointer refcon, - ); -typedef DartAEDisposeExternalProcPtrFunction = - void Function( - ffi.Pointer dataPtr, - int dataLength, - ffi.Pointer refcon, - ); -typedef AEEventHandlerProcPtrFunction = - ffi.Short Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - ffi.Pointer handlerRefcon, - ); -typedef DartAEEventHandlerProcPtrFunction = - int Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - ffi.Pointer handlerRefcon, - ); -final class AERemoteProcessResolver extends ffi.Opaque {} - -typedef AERemoteProcessResolverCallbackFunction = - ffi.Void Function( - ffi.Pointer ref, - ffi.Pointer info, - ); -typedef DartAERemoteProcessResolverCallbackFunction = - void Function( - ffi.Pointer ref, - ffi.Pointer info, - ); -typedef ATSCubicClosePathProcPtrFunction = - ffi.Int Function(ffi.Pointer callBackDataPtr); -typedef DartATSCubicClosePathProcPtrFunction = - int Function(ffi.Pointer callBackDataPtr); -typedef ATSCubicCurveToProcPtrFunction = - ffi.Int Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer pt3, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSCubicCurveToProcPtrFunction = - int Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer pt3, - ffi.Pointer callBackDataPtr, - ); -typedef ATSCubicLineToProcPtrFunction = - ffi.Int Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSCubicLineToProcPtrFunction = - int Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef ATSCubicMoveToProcPtrFunction = - ffi.Int Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSCubicMoveToProcPtrFunction = - int Function( - ffi.Pointer pt, - ffi.Pointer callBackDataPtr, - ); -typedef ATSFontApplierFunctionFunction = - ffi.Int Function(ffi.UnsignedInt iFont, ffi.Pointer iRefCon); -typedef DartATSFontApplierFunctionFunction = - int Function(int iFont, ffi.Pointer iRefCon); -typedef ATSFontFamilyApplierFunctionFunction = - ffi.Int Function(ffi.UnsignedInt iFamily, ffi.Pointer iRefCon); -typedef DartATSFontFamilyApplierFunctionFunction = - int Function(int iFamily, ffi.Pointer iRefCon); +/// WARNING: NSAccessibility is a stub. To generate bindings for this class, include +/// NSAccessibility in your config's objc-protocols list. +/// +/// NSAccessibility +extension type NSAccessibility._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSAccessibility] that points to the same underlying object as [other]. + NSAccessibility.as(objc.ObjCObject other) : object$ = other; -final class ATSFontNotificationInfoRef_ extends ffi.Opaque {} + /// Constructs a [NSAccessibility] that wraps the given raw object pointer. + NSAccessibility.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} -typedef ATSFontQueryCallbackFunction = - ffi.Pointer Function( - ffi.UnsignedInt msgid, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef DartATSFontQueryCallbackFunction = - ffi.Pointer Function( - ATSFontQueryMessageID msgid, - ffi.Pointer data, - ffi.Pointer refCon, - ); +/// WARNING: NSAccessibilityElement is a stub. To generate bindings for this class, include +/// NSAccessibilityElement in your config's objc-protocols list. +/// +/// NSAccessibilityElement +extension type NSAccessibilityElement._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSAccessibilityElement] that points to the same underlying object as [other]. + NSAccessibilityElement.as(objc.ObjCObject other) : object$ = other; -enum ATSFontQueryMessageID { - kATSQueryActivateFontMessage(1635021665); + /// Constructs a [NSAccessibilityElement] that wraps the given raw object pointer. + NSAccessibilityElement.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} - final int value; - const ATSFontQueryMessageID(this.value); +/// WARNING: NSAnimatablePropertyContainer is a stub. To generate bindings for this class, include +/// NSAnimatablePropertyContainer in your config's objc-protocols list. +/// +/// NSAnimatablePropertyContainer +extension type NSAnimatablePropertyContainer._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSAnimatablePropertyContainer] that points to the same underlying object as [other]. + NSAnimatablePropertyContainer.as(objc.ObjCObject other) : object$ = other; - static ATSFontQueryMessageID fromValue(int value) => switch (value) { - 1635021665 => kATSQueryActivateFontMessage, - _ => throw ArgumentError('Unknown value for ATSFontQueryMessageID: $value'), - }; + /// Constructs a [NSAnimatablePropertyContainer] that wraps the given raw object pointer. + NSAnimatablePropertyContainer.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); } -typedef ATSNotificationCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer refCon, - ); -typedef DartATSNotificationCallbackFunction = - void Function( - ffi.Pointer info, - ffi.Pointer refCon, - ); -typedef ATSQuadraticClosePathProcPtrFunction = - ffi.Int Function(ffi.Pointer callBackDataPtr); -typedef DartATSQuadraticClosePathProcPtrFunction = - int Function(ffi.Pointer callBackDataPtr); -typedef ATSQuadraticCurveProcPtrFunction = - ffi.Int Function( - ffi.Pointer pt1, - ffi.Pointer controlPt, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSQuadraticCurveProcPtrFunction = - int Function( - ffi.Pointer pt1, - ffi.Pointer controlPt, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef ATSQuadraticLineProcPtrFunction = - ffi.Int Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef DartATSQuadraticLineProcPtrFunction = - int Function( - ffi.Pointer pt1, - ffi.Pointer pt2, - ffi.Pointer callBackDataPtr, - ); -typedef ATSQuadraticNewPathProcPtrFunction = - ffi.Int Function(ffi.Pointer callBackDataPtr); -typedef DartATSQuadraticNewPathProcPtrFunction = - int Function(ffi.Pointer callBackDataPtr); - -final class ATSTrapezoid extends ffi.Struct { - external FixedPoint upperLeft; +/// WARNING: NSAppearanceCustomization is a stub. To generate bindings for this class, include +/// NSAppearanceCustomization in your config's objc-protocols list. +/// +/// NSAppearanceCustomization +extension type NSAppearanceCustomization._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSAppearanceCustomization] that points to the same underlying object as [other]. + NSAppearanceCustomization.as(objc.ObjCObject other) : object$ = other; - external FixedPoint upperRight; + /// Constructs a [NSAppearanceCustomization] that wraps the given raw object pointer. + NSAppearanceCustomization.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} - external FixedPoint lowerRight; +/// WARNING: NSButtonCell is a stub. To generate bindings for this class, include +/// NSButtonCell in your config's objc-interfaces list. +/// +/// NSButtonCell +extension type NSButtonCell._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [NSButtonCell] that points to the same underlying object as [other]. + NSButtonCell.as(objc.ObjCObject other) : object$ = other {} - external FixedPoint lowerLeft; + /// Constructs a [NSButtonCell] that wraps the given raw object pointer. + NSButtonCell.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} } -typedef AXObserverCallbackFunction = - ffi.Void Function( - ffi.Pointer<__AXObserver> observer, - ffi.Pointer<__AXUIElement> element, - ffi.Pointer notification, - ffi.Pointer refcon, - ); -typedef DartAXObserverCallbackFunction = - void Function( - ffi.Pointer<__AXObserver> observer, - ffi.Pointer<__AXUIElement> element, - ffi.Pointer notification, - ffi.Pointer refcon, - ); -typedef AXObserverCallbackWithInfoFunction = - ffi.Void Function( - ffi.Pointer<__AXObserver> observer, - ffi.Pointer<__AXUIElement> element, - ffi.Pointer notification, - ffi.Pointer<__CFDictionary> info, - ffi.Pointer refcon, - ); -typedef DartAXObserverCallbackWithInfoFunction = - void Function( - ffi.Pointer<__AXObserver> observer, - ffi.Pointer<__AXUIElement> element, - ffi.Pointer notification, - ffi.Pointer<__CFDictionary> info, - ffi.Pointer refcon, - ); +/// WARNING: NSColorList is a stub. To generate bindings for this class, include +/// NSColorList in your config's objc-interfaces list. +/// +/// NSColorList +extension type NSColorList._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [NSColorList] that points to the same underlying object as [other]. + NSColorList.as(objc.ObjCObject other) : object$ = other {} -@ffi.Packed(2) -final class BitMap extends ffi.Struct { - external ffi.Pointer baseAddr; + /// Constructs a [NSColorList] that wraps the given raw object pointer. + NSColorList.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} +} - @ffi.Short() - external int rowBytes; +/// WARNING: NSColorPanel is a stub. To generate bindings for this class, include +/// NSColorPanel in your config's objc-interfaces list. +/// +/// NSColorPanel +extension type NSColorPanel._(objc.ObjCObject object$) + implements objc.ObjCObject, NSPanel { + /// Constructs a [NSColorPanel] that points to the same underlying object as [other]. + NSColorPanel.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal('NSColorPanel', iOS: (true, null)); + } - external Rect bounds; + /// Constructs a [NSColorPanel] that wraps the given raw object pointer. + NSColorPanel.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal('NSColorPanel', iOS: (true, null)); + } } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFArrayApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFArrayApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFArrayCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFArrayEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFArrayEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFArrayReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFArrayReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFArrayRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBagApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFBagApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFBagCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFBagEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFBagEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFBagHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFBagHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFBagReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFBagReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBagRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBinaryHeapApplierFunctionFunction = - ffi.Void Function(ffi.Pointer val, ffi.Pointer context); -typedef DartCFBinaryHeapApplierFunctionFunction = - void Function(ffi.Pointer val, ffi.Pointer context); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); +enum NSColorPanelMode { + NSColorPanelModeNone(-1), + NSColorPanelModeGray(0), + NSColorPanelModeRGB(1), + NSColorPanelModeCMYK(2), + NSColorPanelModeHSB(3), + NSColorPanelModeCustomPalette(4), + NSColorPanelModeColorList(5), + NSColorPanelModeWheel(6), + NSColorPanelModeCrayon(7); final int value; - const CFComparisonResult(this.value); + const NSColorPanelMode(this.value); - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), + static NSColorPanelMode fromValue(int value) => switch (value) { + -1 => NSColorPanelModeNone, + 0 => NSColorPanelModeGray, + 1 => NSColorPanelModeRGB, + 2 => NSColorPanelModeCMYK, + 3 => NSColorPanelModeHSB, + 4 => NSColorPanelModeCustomPalette, + 5 => NSColorPanelModeColorList, + 6 => NSColorPanelModeWheel, + 7 => NSColorPanelModeCrayon, + _ => throw ArgumentError('Unknown value for NSColorPanelMode: $value'), }; } -typedef CFDictionaryApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFDictionaryApplierFunctionFunction = - void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ); -typedef CFDictionaryCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFDictionaryEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFDictionaryEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFDictionaryHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFDictionaryHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFDictionaryReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFDictionaryReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFDictionaryRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFFileDescriptorCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFFileDescriptor> f, - ffi.UnsignedLong callBackTypes, - ffi.Pointer info, - ); -typedef DartCFFileDescriptorCallBackFunction = - void Function( - ffi.Pointer<__CFFileDescriptor> f, - int callBackTypes, - ffi.Pointer info, - ); -typedef CFHostClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFHost> theHost, - ffi.UnsignedInt typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFHostClientCallBackFunction = - void Function( - ffi.Pointer<__CFHost> theHost, - CFHostInfoType typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ); +/// NSColorPicker +extension type NSColorPicker._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, NSColorPickingDefault { + /// Constructs a [NSColorPicker] that points to the same underlying object as [other]. + NSColorPicker.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal('NSColorPicker', iOS: (true, null)); + assert(isA(object$)); + } -enum CFHostInfoType { - kCFHostAddresses(0), - kCFHostNames(1), - kCFHostReachability(2); + /// Constructs a [NSColorPicker] that wraps the given raw object pointer. + NSColorPicker.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal('NSColorPicker', iOS: (true, null)); + assert(isA(object$)); + } - final int value; - const CFHostInfoType(this.value); + /// Returns whether [obj] is an instance of [NSColorPicker]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSColorPicker, + ); - static CFHostInfoType fromValue(int value) => switch (value) { - 0 => kCFHostAddresses, - 1 => kCFHostNames, - 2 => kCFHostReachability, - _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), - }; -} + /// alloc + static NSColorPicker alloc() { + final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_alloc); + return NSColorPicker.fromPointer($ret, retain: false, release: true); + } -typedef CFMachPortCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer msg, - ffi.Long size, - ffi.Pointer info, - ); -typedef DartCFMachPortCallBackFunction = - void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer msg, - int size, - ffi.Pointer info, - ); -typedef CFMachPortInvalidationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer info, - ); -typedef DartCFMachPortInvalidationCallBackFunction = - void Function(ffi.Pointer<__CFMachPort> port, ffi.Pointer info); -typedef CFMessagePortCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFMessagePort> local, - ffi.Int msgid, - ffi.Pointer<__CFData> data, - ffi.Pointer info, - ); -typedef DartCFMessagePortCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFMessagePort> local, - int msgid, - ffi.Pointer<__CFData> data, - ffi.Pointer info, - ); -typedef CFMessagePortInvalidationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMessagePort> ms, - ffi.Pointer info, - ); -typedef DartCFMessagePortInvalidationCallBackFunction = - void Function(ffi.Pointer<__CFMessagePort> ms, ffi.Pointer info); -typedef CFNetServiceBrowserClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetServiceBrowser> browser, - ffi.UnsignedLong flags, - ffi.Pointer domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceBrowserClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetServiceBrowser> browser, - int flags, - ffi.Pointer domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef CFNetServiceClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetService> theService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetService> theService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef CFNetServiceMonitorClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetServiceMonitor> theMonitor, - ffi.Pointer<__CFNetService> theService, - ffi.UnsignedInt typeInfo, - ffi.Pointer<__CFData> rdata, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceMonitorClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetServiceMonitor> theMonitor, - ffi.Pointer<__CFNetService> theService, - CFNetServiceMonitorType typeInfo, - ffi.Pointer<__CFData> rdata, - ffi.Pointer error, - ffi.Pointer info, + /// allocWithZone: + static NSColorPicker allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_NSColorPicker, + _sel_allocWithZone_, + zone, ); + return NSColorPicker.fromPointer($ret, retain: false, release: true); + } -enum CFNetServiceMonitorType { - kCFNetServiceMonitorTXT(1); - - final int value; - const CFNetServiceMonitorType(this.value); + /// new + static NSColorPicker new$() { + final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_new); + return NSColorPicker.fromPointer($ret, retain: false, release: true); + } - static CFNetServiceMonitorType fromValue(int value) => switch (value) { - 1 => kCFNetServiceMonitorTXT, - _ => throw ArgumentError( - 'Unknown value for CFNetServiceMonitorType: $value', - ), - }; + /// Returns a new instance of NSColorPicker constructed with the default `new` method. + NSColorPicker() : this.as(new$().object$); } -typedef CFNotificationCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CFNotificationCenter> center, - ffi.Pointer observer, - ffi.Pointer name, - ffi.Pointer object, - ffi.Pointer<__CFDictionary> userInfo, - ); -typedef DartCFNotificationCallbackFunction = - void Function( - ffi.Pointer<__CFNotificationCenter> center, - ffi.Pointer observer, - ffi.Pointer name, - ffi.Pointer object, - ffi.Pointer<__CFDictionary> userInfo, - ); -typedef CFPlugInDynamicRegisterFunctionFunction = - ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); -typedef DartCFPlugInDynamicRegisterFunctionFunction = - void Function(ffi.Pointer<__CFBundle> plugIn); -typedef CFPlugInFactoryFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer<__CFUUID> typeUUID, - ); -typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = - ffi.Void Function(ffi.Pointer instanceData); -typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = - void Function(ffi.Pointer instanceData); -typedef CFPlugInInstanceGetInterfaceFunctionFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__CFPlugInInstance> instance, - ffi.Pointer interfaceName, - ffi.Pointer> ftbl, - ); -typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = - int Function( - ffi.Pointer<__CFPlugInInstance> instance, - ffi.Pointer interfaceName, - ffi.Pointer> ftbl, - ); -typedef CFPlugInUnloadFunctionFunction = - ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); -typedef DartCFPlugInUnloadFunctionFunction = - void Function(ffi.Pointer<__CFBundle> plugIn); -typedef CFProxyAutoConfigurationResultCallbackFunction = - ffi.Void Function( - ffi.Pointer client, - ffi.Pointer<__CFArray> proxyList, - ffi.Pointer<__CFError> error, - ); -typedef DartCFProxyAutoConfigurationResultCallbackFunction = - void Function( - ffi.Pointer client, - ffi.Pointer<__CFArray> proxyList, - ffi.Pointer<__CFError> error, - ); - -final class CFRange extends ffi.Struct { - @ffi.Long() - external int location; - - @ffi.Long() - external int length; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int location, - required int length, - }) => $allocator() - ..ref.location = location - ..ref.length = length; -} - -typedef CFReadStreamClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFReadStream> stream, - ffi.UnsignedLong type, - ffi.Pointer clientCallBackInfo, +extension NSColorPicker$Methods on NSColorPicker { + /// alphaControlAddedOrRemoved: + void alphaControlAddedOrRemoved(objc.ObjCObject? sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender?.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.alphaControlAddedOrRemoved:', + iOS: (true, null), ); -typedef DartCFReadStreamClientCallBackFunction = - void Function( - ffi.Pointer<__CFReadStream> stream, - int type, - ffi.Pointer clientCallBackInfo, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_alphaControlAddedOrRemoved_, + _$$ref$1?.pointer ?? ffi.nullptr, ); + } -sealed class CFRunLoopActivity { - static const kCFRunLoopEntry = 1; - static const kCFRunLoopBeforeTimers = 2; - static const kCFRunLoopBeforeSources = 4; - static const kCFRunLoopBeforeWaiting = 32; - static const kCFRunLoopAfterWaiting = 64; - static const kCFRunLoopExit = 128; - static const kCFRunLoopAllActivities = 268435455; -} - -typedef CFRunLoopObserverCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFRunLoopObserver> observer, - ffi.UnsignedLong activity, - ffi.Pointer info, - ); -typedef DartCFRunLoopObserverCallBackFunction = - void Function( - ffi.Pointer<__CFRunLoopObserver> observer, - int activity, - ffi.Pointer info, - ); -typedef CFRunLoopTimerCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFRunLoopTimer> timer, - ffi.Pointer info, - ); -typedef DartCFRunLoopTimerCallBackFunction = - void Function( - ffi.Pointer<__CFRunLoopTimer> timer, - ffi.Pointer info, - ); -typedef CFSetApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFSetApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFSetCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFSetEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFSetEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFSetHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFSetHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFSetReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFSetReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFSetRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFSocketCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFSocket> s, - ffi.UnsignedLong type, - ffi.Pointer<__CFData> address, - ffi.Pointer data, - ffi.Pointer info, + /// attachColorList: + void attachColorList(NSColorList colorList) { + final _$$ref = object$.ref; + final _$$ref$1 = colorList.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.attachColorList:', + iOS: (true, null), ); -typedef DartCFSocketCallBackFunction = - void Function( - ffi.Pointer<__CFSocket> s, - int type, - ffi.Pointer<__CFData> address, - ffi.Pointer data, - ffi.Pointer info, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_attachColorList_, + _$$ref$1.pointer, ); + } -sealed class CFSocketCallBackType { - static const kCFSocketNoCallBack = 0; - static const kCFSocketReadCallBack = 1; - static const kCFSocketAcceptCallBack = 2; - static const kCFSocketDataCallBack = 3; - static const kCFSocketConnectCallBack = 4; - static const kCFSocketWriteCallBack = 8; -} - -final class CFStreamError extends ffi.Struct { - @ffi.Long() - external int domain; - - @ffi.Int() - external int error; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int domain, - required int error, - }) => $allocator() - ..ref.domain = domain - ..ref.error = error; -} - -sealed class CFStreamEventType { - static const kCFStreamEventNone = 0; - static const kCFStreamEventOpenCompleted = 1; - static const kCFStreamEventHasBytesAvailable = 2; - static const kCFStreamEventCanAcceptBytes = 4; - static const kCFStreamEventErrorOccurred = 8; - static const kCFStreamEventEndEncountered = 16; -} - -typedef CFTreeApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFTreeApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFTreeCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFTreeReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFTreeReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFTreeRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFUserNotificationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFUserNotification> userNotification, - ffi.UnsignedLong responseFlags, - ); -typedef DartCFUserNotificationCallBackFunction = - void Function( - ffi.Pointer<__CFUserNotification> userNotification, - int responseFlags, - ); -typedef CFWriteStreamClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFWriteStream> stream, - ffi.UnsignedLong type, - ffi.Pointer clientCallBackInfo, - ); -typedef DartCFWriteStreamClientCallBackFunction = - void Function( - ffi.Pointer<__CFWriteStream> stream, - int type, - ffi.Pointer clientCallBackInfo, + /// buttonToolTip + objc.NSString get buttonToolTip { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.buttonToolTip', + iOS: (true, null), ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_buttonToolTip); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } -final class CFXMLExternalID extends ffi.Struct { - external ffi.Pointer<__CFURL> systemID; - - external ffi.Pointer publicID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer<__CFURL> systemID, - required ffi.Pointer publicID, - }) => $allocator() - ..ref.systemID = systemID - ..ref.publicID = publicID; -} + /// colorPanel + NSColorPanel get colorPanel { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('NSColorPicker.colorPanel', iOS: (true, null)); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_colorPanel); + return NSColorPanel.fromPointer($ret, retain: true, release: true); + } -typedef CFXMLParserAddChildCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ); -typedef DartCFXMLParserAddChildCallBackFunction = - void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ); -typedef CFXMLParserCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFXMLParserCreateXMLStructureCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer<__CFXMLNode> nodeDesc, - ffi.Pointer info, - ); -typedef CFXMLParserEndXMLStructureCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ); -typedef DartCFXMLParserEndXMLStructureCallBackFunction = - void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ); -typedef CFXMLParserHandleErrorCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Long error, - ffi.Pointer info, - ); -typedef DartCFXMLParserHandleErrorCallBackFunction = - int Function( - ffi.Pointer<__CFXMLParser> parser, - int error, - ffi.Pointer info, + /// detachColorList: + void detachColorList(NSColorList colorList) { + final _$$ref = object$.ref; + final _$$ref$1 = colorList.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.detachColorList:', + iOS: (true, null), ); -typedef CFXMLParserReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFXMLParserReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFXMLParserResolveExternalEntityCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer extID, - ffi.Pointer info, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_detachColorList_, + _$$ref$1.pointer, ); -typedef CFXMLParserRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); - -sealed class CFXMLParserStatusCode { - static const kCFXMLStatusParseNotBegun = -2; - static const kCFXMLStatusParseInProgress = -1; - static const kCFXMLStatusParseSuccessful = 0; - static const kCFXMLErrorUnexpectedEOF = 1; - static const kCFXMLErrorUnknownEncoding = 2; - static const kCFXMLErrorEncodingConversionFailure = 3; - static const kCFXMLErrorMalformedProcessingInstruction = 4; - static const kCFXMLErrorMalformedDTD = 5; - static const kCFXMLErrorMalformedName = 6; - static const kCFXMLErrorMalformedCDSect = 7; - static const kCFXMLErrorMalformedCloseTag = 8; - static const kCFXMLErrorMalformedStartTag = 9; - static const kCFXMLErrorMalformedDocument = 10; - static const kCFXMLErrorElementlessDocument = 11; - static const kCFXMLErrorMalformedComment = 12; - static const kCFXMLErrorMalformedCharacterReference = 13; - static const kCFXMLErrorMalformedParsedCharacterData = 14; - static const kCFXMLErrorNoData = 15; -} + } -typedef CGBitmapContextReleaseDataCallbackFunction = - ffi.Void Function( - ffi.Pointer releaseInfo, - ffi.Pointer data, + /// init + NSColorPicker init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), ); -typedef DartCGBitmapContextReleaseDataCallbackFunction = - void Function( - ffi.Pointer releaseInfo, - ffi.Pointer data, + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, ); + return NSColorPicker.fromPointer($ret, retain: false, release: true); + } -final class CGContext extends ffi.Opaque {} - -typedef CGDataConsumerPutBytesCallbackFunction = - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - ffi.Size count, - ); -typedef DartCGDataConsumerPutBytesCallbackFunction = - int Function( - ffi.Pointer info, - ffi.Pointer buffer, - int count, - ); -typedef CGDataConsumerReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGDataConsumerReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGDataProviderGetBytePointerCallbackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CGDataProviderGetBytesAtPositionCallbackFunction = - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - ffi.LongLong pos, - ffi.Size cnt, - ); -typedef DartCGDataProviderGetBytesAtPositionCallbackFunction = - int Function( - ffi.Pointer info, - ffi.Pointer buffer, - int pos, - int cnt, - ); -typedef CGDataProviderGetBytesCallbackFunction = - ffi.Size Function( - ffi.Pointer info, - ffi.Pointer buffer, - ffi.Size count, - ); -typedef DartCGDataProviderGetBytesCallbackFunction = - int Function( - ffi.Pointer info, - ffi.Pointer buffer, - int count, - ); -typedef CGDataProviderReleaseBytePointerCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer pointer, - ); -typedef DartCGDataProviderReleaseBytePointerCallbackFunction = - void Function(ffi.Pointer info, ffi.Pointer pointer); -typedef CGDataProviderReleaseDataCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer data, - ffi.Size size, + /// initWithPickerMask:colorPanel: + NSColorPicker? initWithPickerMask( + int mask, { + required NSColorPanel colorPanel, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = colorPanel.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.initWithPickerMask:colorPanel:', + iOS: (true, null), ); -typedef DartCGDataProviderReleaseDataCallbackFunction = - void Function( - ffi.Pointer info, - ffi.Pointer data, - int size, + final $ret = _objc_msgSend_vbc8p4( + _$$ref.retainAndReturnPointer(), + _sel_initWithPickerMask_colorPanel_, + mask, + _$$ref$1.pointer, ); -typedef CGDataProviderReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGDataProviderReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGDataProviderRewindCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGDataProviderRewindCallbackFunction = - void Function(ffi.Pointer info); -typedef CGDataProviderSkipForwardCallbackFunction = - ffi.LongLong Function(ffi.Pointer info, ffi.LongLong count); -typedef DartCGDataProviderSkipForwardCallbackFunction = - int Function(ffi.Pointer info, int count); - -sealed class CGDisplayChangeSummaryFlags { - static const kCGDisplayBeginConfigurationFlag = 1; - static const kCGDisplayMovedFlag = 2; - static const kCGDisplaySetMainFlag = 4; - static const kCGDisplaySetModeFlag = 8; - static const kCGDisplayAddFlag = 16; - static const kCGDisplayRemoveFlag = 32; - static const kCGDisplayEnabledFlag = 256; - static const kCGDisplayDisabledFlag = 512; - static const kCGDisplayMirrorFlag = 1024; - static const kCGDisplayUnMirrorFlag = 2048; - static const kCGDisplayDesktopShapeChangedFlag = 4096; -} + return $ret.address == 0 + ? null + : NSColorPicker.fromPointer($ret, retain: false, release: true); + } -typedef CGDisplayReconfigurationCallBackFunction = - ffi.Void Function( - ffi.Uint32 display, - ffi.Uint32 flags, - ffi.Pointer userInfo, - ); -typedef DartCGDisplayReconfigurationCallBackFunction = - void Function(int display, int flags, ffi.Pointer userInfo); -typedef CGErrorCallbackFunction = ffi.Void Function(); -typedef DartCGErrorCallbackFunction = void Function(); -typedef CGEventTapCallBackFunction = - ffi.Pointer<__CGEvent> Function( - ffi.Pointer<__CGEventTapProxy> proxy, - ffi.Uint32 type, - ffi.Pointer<__CGEvent> event, - ffi.Pointer userInfo, + /// insertNewButtonImage:in: + void insertNewButtonImage( + NSImage newButtonImage, { + required NSButtonCell in$, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = newButtonImage.ref; + final _$$ref$2 = in$.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.insertNewButtonImage:in:', + iOS: (true, null), ); -typedef DartCGEventTapCallBackFunction = - ffi.Pointer<__CGEvent> Function( - ffi.Pointer<__CGEventTapProxy> proxy, - CGEventType type, - ffi.Pointer<__CGEvent> event, - ffi.Pointer userInfo, + _objc_msgSend_pfv6jd( + _$$ref.pointer, + _sel_insertNewButtonImage_in_, + _$$ref$1.pointer, + _$$ref$2.pointer, ); + } -enum CGEventType { - kCGEventNull(0), - kCGEventLeftMouseDown(1), - kCGEventLeftMouseUp(2), - kCGEventRightMouseDown(3), - kCGEventRightMouseUp(4), - kCGEventMouseMoved(5), - kCGEventLeftMouseDragged(6), - kCGEventRightMouseDragged(7), - kCGEventKeyDown(10), - kCGEventKeyUp(11), - kCGEventFlagsChanged(12), - kCGEventScrollWheel(22), - kCGEventTabletPointer(23), - kCGEventTabletProximity(24), - kCGEventOtherMouseDown(25), - kCGEventOtherMouseUp(26), - kCGEventOtherMouseDragged(27), - kCGEventTapDisabledByTimeout(-2), - kCGEventTapDisabledByUserInput(-1); - - final int value; - const CGEventType(this.value); - - static CGEventType fromValue(int value) => switch (value) { - 0 => kCGEventNull, - 1 => kCGEventLeftMouseDown, - 2 => kCGEventLeftMouseUp, - 3 => kCGEventRightMouseDown, - 4 => kCGEventRightMouseUp, - 5 => kCGEventMouseMoved, - 6 => kCGEventLeftMouseDragged, - 7 => kCGEventRightMouseDragged, - 10 => kCGEventKeyDown, - 11 => kCGEventKeyUp, - 12 => kCGEventFlagsChanged, - 22 => kCGEventScrollWheel, - 23 => kCGEventTabletPointer, - 24 => kCGEventTabletProximity, - 25 => kCGEventOtherMouseDown, - 26 => kCGEventOtherMouseUp, - 27 => kCGEventOtherMouseDragged, - -2 => kCGEventTapDisabledByTimeout, - -1 => kCGEventTapDisabledByUserInput, - _ => throw ArgumentError('Unknown value for CGEventType: $value'), - }; -} - -typedef CGFunctionEvaluateCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer in$, - ffi.Pointer out, - ); -typedef DartCGFunctionEvaluateCallbackFunction = - void Function( - ffi.Pointer info, - ffi.Pointer in$, - ffi.Pointer out, - ); -typedef CGFunctionReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGFunctionReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGPDFDictionaryApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer info, + /// minContentSize + objc.CGSize get minContentSize { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.minContentSize', + iOS: (true, null), ); -typedef DartCGPDFDictionaryApplierFunctionFunction = - void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer info, + final $ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_minContentSize) + : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_minContentSize); + final $finalizable = $ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, ); + return ffi.Struct.create($finalizable); + } -final class CGPDFObject extends ffi.Opaque {} - -typedef CGPDFOperatorCallbackFunction = - ffi.Void Function( - ffi.Pointer scanner, - ffi.Pointer info, + /// provideNewButtonImage + NSImage get provideNewButtonImage { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.provideNewButtonImage', + iOS: (true, null), ); -typedef DartCGPDFOperatorCallbackFunction = - void Function( - ffi.Pointer scanner, - ffi.Pointer info, + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_provideNewButtonImage, ); + return NSImage.fromPointer($ret, retain: true, release: true); + } -final class CGPDFScanner extends ffi.Opaque {} + /// setMode: + void setMode(NSColorPanelMode mode) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal('NSColorPicker.setMode:', iOS: (true, null)); + _objc_msgSend_190ea64(_$$ref.pointer, _sel_setMode_, mode.value); + } -typedef CGPSConverterBeginDocumentCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPSConverterBeginDocumentCallbackFunction = - void Function(ffi.Pointer info); -typedef CGPSConverterBeginPageCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Size pageNumber, - ffi.Pointer<__CFDictionary> pageInfo, - ); -typedef DartCGPSConverterBeginPageCallbackFunction = - void Function( - ffi.Pointer info, - int pageNumber, - ffi.Pointer<__CFDictionary> pageInfo, - ); -typedef CGPSConverterEndDocumentCallbackFunction = - ffi.Void Function(ffi.Pointer info, ffi.Bool success); -typedef DartCGPSConverterEndDocumentCallbackFunction = - void Function(ffi.Pointer info, bool success); -typedef CGPSConverterEndPageCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Size pageNumber, - ffi.Pointer<__CFDictionary> pageInfo, - ); -typedef DartCGPSConverterEndPageCallbackFunction = - void Function( - ffi.Pointer info, - int pageNumber, - ffi.Pointer<__CFDictionary> pageInfo, - ); -typedef CGPSConverterMessageCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer message, - ); -typedef DartCGPSConverterMessageCallbackFunction = - void Function( - ffi.Pointer info, - ffi.Pointer message, - ); -typedef CGPSConverterProgressCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPSConverterProgressCallbackFunction = - void Function(ffi.Pointer info); -typedef CGPSConverterReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPSConverterReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGPathApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer element, + /// viewSizeChanged: + void viewSizeChanged(objc.ObjCObject? sender) { + final _$$ref = object$.ref; + final _$$ref$1 = sender?.ref; + objc.checkOsVersionInternal( + 'NSColorPicker.viewSizeChanged:', + iOS: (true, null), ); -typedef DartCGPathApplierFunctionFunction = - void Function( - ffi.Pointer info, - ffi.Pointer element, + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_viewSizeChanged_, + _$$ref$1?.pointer ?? ffi.nullptr, ); - -final class CGPathElement extends ffi.Struct { - @ffi.Int32() - external int typeAsInt; - - CGPathElementType get type => CGPathElementType.fromValue(typeAsInt); - set type(CGPathElementType value) => typeAsInt = value.value; - - external ffi.Pointer points; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required CGPathElementType type, - required ffi.Pointer points, - }) => $allocator() - ..ref.type = type - ..ref.points = points; + } } -enum CGPathElementType { - kCGPathElementMoveToPoint(0), - kCGPathElementAddLineToPoint(1), - kCGPathElementAddQuadCurveToPoint(2), - kCGPathElementAddCurveToPoint(3), - kCGPathElementCloseSubpath(4); - - final int value; - const CGPathElementType(this.value); +/// WARNING: NSColorPickingDefault is a stub. To generate bindings for this class, include +/// NSColorPickingDefault in your config's objc-protocols list. +/// +/// NSColorPickingDefault +extension type NSColorPickingDefault._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSColorPickingDefault] that points to the same underlying object as [other]. + NSColorPickingDefault.as(objc.ObjCObject other) : object$ = other; - static CGPathElementType fromValue(int value) => switch (value) { - 0 => kCGPathElementMoveToPoint, - 1 => kCGPathElementAddLineToPoint, - 2 => kCGPathElementAddQuadCurveToPoint, - 3 => kCGPathElementAddCurveToPoint, - 4 => kCGPathElementCloseSubpath, - _ => throw ArgumentError('Unknown value for CGPathElementType: $value'), - }; + /// Constructs a [NSColorPickingDefault] that wraps the given raw object pointer. + NSColorPickingDefault.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); } -typedef CGPatternDrawPatternCallbackFunction = - ffi.Void Function( - ffi.Pointer info, - ffi.Pointer context, - ); -typedef DartCGPatternDrawPatternCallbackFunction = - void Function(ffi.Pointer info, ffi.Pointer context); -typedef CGPatternReleaseInfoCallbackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCGPatternReleaseInfoCallbackFunction = - void Function(ffi.Pointer info); -typedef CGScreenRefreshCallbackFunction = - ffi.Void Function( - ffi.Uint32 count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); -typedef DartCGScreenRefreshCallbackFunction = - void Function( - int count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); -typedef CGScreenUpdateMoveCallbackFunction = - ffi.Void Function( - CGScreenUpdateMoveDelta delta, - ffi.Size count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); -typedef DartCGScreenUpdateMoveCallbackFunction = - void Function( - CGScreenUpdateMoveDelta delta, - int count, - ffi.Pointer rects, - ffi.Pointer userInfo, - ); - -final class CGScreenUpdateMoveDelta extends ffi.Struct { - @ffi.Int32() - external int dX; - - @ffi.Int32() - external int dY; +/// WARNING: NSImage is a stub. To generate bindings for this class, include +/// NSImage in your config's objc-interfaces list. +/// +/// NSImage +extension type NSImage._(objc.ObjCObject object$) implements objc.ObjCObject { + /// Constructs a [NSImage] that points to the same underlying object as [other]. + NSImage.as(objc.ObjCObject other) : object$ = other {} - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int dX, - required int dY, - }) => $allocator() - ..ref.dX = dX - ..ref.dY = dY; + /// Constructs a [NSImage] that wraps the given raw object pointer. + NSImage.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} } -@ffi.Packed(2) -final class CM2Header extends ffi.Struct { - @ffi.UnsignedInt() - external int size; - - @ffi.UnsignedInt() - external int CMMType; - - @ffi.UnsignedInt() - external int profileVersion; - - @ffi.UnsignedInt() - external int profileClass; - - @ffi.UnsignedInt() - external int dataColorSpace; - - @ffi.UnsignedInt() - external int profileConnectionSpace; - - external CMDateTime dateTime; - - @ffi.UnsignedInt() - external int CS2profileSignature; - - @ffi.UnsignedInt() - external int platform; - - @ffi.UnsignedInt() - external int flags; - - @ffi.UnsignedInt() - external int deviceManufacturer; - - @ffi.UnsignedInt() - external int deviceModel; - - @ffi.Array.multi([2]) - external ffi.Array deviceAttributes; - - @ffi.UnsignedInt() - external int renderingIntent; - - external CMFixedXYZColor white; - - @ffi.UnsignedInt() - external int creator; - - @ffi.Array.multi([44]) - external ffi.Array reserved; -} - -typedef CMBitmapCallBackProcPtrFunction = - ffi.UnsignedChar Function(ffi.Int progress, ffi.Pointer refCon); -typedef DartCMBitmapCallBackProcPtrFunction = - int Function(int progress, ffi.Pointer refCon); - -final class CMBufferLocation extends ffi.Struct { - external ffi.Pointer buffer; - - @ffi.UnsignedInt() - external int size; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer buffer, - required int size, - }) => $allocator() - ..ref.buffer = buffer - ..ref.size = size; -} - -typedef CMConcatCallBackProcPtrFunction = - ffi.UnsignedChar Function(ffi.Int progress, ffi.Pointer refCon); -typedef DartCMConcatCallBackProcPtrFunction = - int Function(int progress, ffi.Pointer refCon); - -final class CMDateTime extends ffi.Struct { - @ffi.UnsignedShort() - external int year; - - @ffi.UnsignedShort() - external int month; - - @ffi.UnsignedShort() - external int dayOfTheMonth; - - @ffi.UnsignedShort() - external int hours; - - @ffi.UnsignedShort() - external int minutes; - - @ffi.UnsignedShort() - external int seconds; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int year, - required int month, - required int dayOfTheMonth, - required int hours, - required int minutes, - required int seconds, - }) => $allocator() - ..ref.year = year - ..ref.month = month - ..ref.dayOfTheMonth = dayOfTheMonth - ..ref.hours = hours - ..ref.minutes = minutes - ..ref.seconds = seconds; -} - -final class CMDeviceInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int dataVersion; - - @ffi.UnsignedInt() - external int deviceClass; - - @ffi.UnsignedInt() - external int deviceID; - - external CMDeviceScope deviceScope; - - @ffi.UnsignedInt() - external int deviceState; - - @ffi.UnsignedInt() - external int defaultProfileID; - - external ffi.Pointer> deviceName; - - @ffi.UnsignedInt() - external int profileCount; +/// WARNING: NSMenuItemValidation is a stub. To generate bindings for this class, include +/// NSMenuItemValidation in your config's objc-protocols list. +/// +/// NSMenuItemValidation +extension type NSMenuItemValidation._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [NSMenuItemValidation] that points to the same underlying object as [other]. + NSMenuItemValidation.as(objc.ObjCObject other) : object$ = other; - @ffi.UnsignedInt() - external int reserved; + /// Constructs a [NSMenuItemValidation] that wraps the given raw object pointer. + NSMenuItemValidation.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); } -final class CMDeviceScope extends ffi.Struct { - external ffi.Pointer deviceUser; - - external ffi.Pointer deviceHost; +/// WARNING: NSPanel is a stub. To generate bindings for this class, include +/// NSPanel in your config's objc-interfaces list. +/// +/// NSPanel +extension type NSPanel._(objc.ObjCObject object$) + implements objc.ObjCObject, NSWindow { + /// Constructs a [NSPanel] that points to the same underlying object as [other]. + NSPanel.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal('NSPanel', iOS: (true, null)); + } - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer deviceUser, - required ffi.Pointer deviceHost, - }) => $allocator() - ..ref.deviceUser = deviceUser - ..ref.deviceHost = deviceHost; + /// Constructs a [NSPanel] that wraps the given raw object pointer. + NSPanel.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal('NSPanel', iOS: (true, null)); + } } -@ffi.Packed(2) -final class CMFixedXYZColor extends ffi.Struct { - @ffi.Int() - external int X; - - @ffi.Int() - external int Y; - - @ffi.Int() - external int Z; +/// WARNING: NSResponder is a stub. To generate bindings for this class, include +/// NSResponder in your config's objc-interfaces list. +/// +/// NSResponder +extension type NSResponder._(objc.ObjCObject object$) + implements objc.ObjCObject, objc.NSObject, objc.NSCoding { + /// Constructs a [NSResponder] that points to the same underlying object as [other]. + NSResponder.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal('NSResponder', iOS: (true, null)); + } - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int X, - required int Y, - required int Z, - }) => $allocator() - ..ref.X = X - ..ref.Y = Y - ..ref.Z = Z; + /// Constructs a [NSResponder] that wraps the given raw object pointer. + NSResponder.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal('NSResponder', iOS: (true, null)); + } } -typedef CMFlattenProcPtrFunction = - ffi.Short Function( - ffi.Int command, - ffi.Pointer size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef DartCMFlattenProcPtrFunction = - int Function( - int command, - ffi.Pointer size, - ffi.Pointer data, - ffi.Pointer refCon, +/// NSTextList +extension type NSTextList._(objc.ObjCObject object$) + implements + objc.ObjCObject, + objc.NSObject, + objc.NSSecureCoding, + objc.NSCopying { + /// Constructs a [NSTextList] that points to the same underlying object as [other]. + NSTextList.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal( + 'NSTextList', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), ); + assert(isA(object$)); + } -final class CMHandleLocation extends ffi.Struct { - external ffi.Pointer> h; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer> h, - }) => $allocator()..ref.h = h; -} - -typedef CMIterateDeviceInfoProcPtrFunction = - ffi.Short Function( - ffi.Pointer deviceInfo, - ffi.Pointer refCon, - ); -typedef DartCMIterateDeviceInfoProcPtrFunction = - int Function( - ffi.Pointer deviceInfo, - ffi.Pointer refCon, - ); -typedef CMIterateDeviceProfileProcPtrFunction = - ffi.Short Function( - ffi.Pointer deviceInfo, - ffi.Pointer profileInfo, - ffi.Pointer refCon, - ); -typedef DartCMIterateDeviceProfileProcPtrFunction = - int Function( - ffi.Pointer deviceInfo, - ffi.Pointer profileInfo, - ffi.Pointer refCon, - ); -typedef CMLabToLabProcPtrFunction = - ffi.Void Function( - ffi.Pointer L, - ffi.Pointer a, - ffi.Pointer b, - ffi.Pointer refcon, - ); -typedef DartCMLabToLabProcPtrFunction = - void Function( - ffi.Pointer L, - ffi.Pointer a, - ffi.Pointer b, - ffi.Pointer refcon, - ); -typedef CMMApplyTransformProcFunction = - ffi.Bool Function( - ffi.Pointer transform, - ffi.Size width, - ffi.Size height, - ffi.Size dstPlanes, - ffi.Pointer> dst, - ffi.UnsignedInt dstDepth, - ffi.Uint32 dstFormat, - ffi.Size dstBytesPerRow, - ffi.Size srcPlanes, - ffi.Pointer> src, - ffi.UnsignedInt srcDepth, - ffi.Uint32 srcFormat, - ffi.Size srcBytesPerRow, - ffi.Pointer<__CFDictionary> options, - ); -typedef DartCMMApplyTransformProcFunction = - bool Function( - ffi.Pointer transform, - int width, - int height, - int dstPlanes, - ffi.Pointer> dst, - ColorSyncDataDepth dstDepth, - int dstFormat, - int dstBytesPerRow, - int srcPlanes, - ffi.Pointer> src, - ColorSyncDataDepth srcDepth, - int srcFormat, - int srcBytesPerRow, - ffi.Pointer<__CFDictionary> options, - ); -typedef CMMCreateTransformPropertyProcFunction = - ffi.Pointer Function( - ffi.Pointer transform, - ffi.Pointer key, - ffi.Pointer<__CFDictionary> options, + /// Constructs a [NSTextList] that wraps the given raw object pointer. + NSTextList.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSTextList', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), ); + assert(isA(object$)); + } -final class CMMInfo extends ffi.Struct { - @ffi.Size() - external int dataSize; - - @ffi.UnsignedInt() - external int CMMType; - - @ffi.UnsignedInt() - external int CMMMfr; - - @ffi.UnsignedInt() - external int CMMVersion; - - @ffi.Array.multi([32]) - external ffi.Array ASCIIName; - - @ffi.Array.multi([256]) - external ffi.Array ASCIIDesc; - - @ffi.UnsignedLong() - external int UniCodeNameCount; - - @ffi.Array.multi([32]) - external ffi.Array UniCodeName; - - @ffi.UnsignedLong() - external int UniCodeDescCount; + /// Returns whether [obj] is an instance of [NSTextList]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSTextList, + ); - @ffi.Array.multi([256]) - external ffi.Array UniCodeDesc; -} + /// alloc + static NSTextList alloc() { + final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_alloc); + return NSTextList.fromPointer($ret, retain: false, release: true); + } -typedef CMMInitializeLinkProfileProcFunction = - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer<__CFArray>, - ffi.Pointer<__CFDictionary>, - ); -typedef DartCMMInitializeLinkProfileProcFunction = - bool Function( - ffi.Pointer, - ffi.Pointer<__CFArray>, - ffi.Pointer<__CFDictionary>, - ); -typedef CMMInitializeTransformProcFunction = - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer<__CFArray>, - ffi.Pointer<__CFDictionary>, - ); -typedef DartCMMInitializeTransformProcFunction = - bool Function( - ffi.Pointer, - ffi.Pointer<__CFArray>, - ffi.Pointer<__CFDictionary>, - ); -typedef CMMIterateProcPtrFunction = - ffi.Short Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ); -typedef DartCMMIterateProcPtrFunction = - int Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, + /// allocWithZone: + static NSTextList allocWithZone(ffi.Pointer zone) { + final $ret = _objc_msgSend_1cwp428( + _class_NSTextList, + _sel_allocWithZone_, + zone, ); + return NSTextList.fromPointer($ret, retain: false, release: true); + } -@ffi.Packed(2) -final class CMMakeAndModel extends ffi.Struct { - @ffi.UnsignedInt() - external int manufacturer; - - @ffi.UnsignedInt() - external int model; - - @ffi.UnsignedInt() - external int serialNumber; - - @ffi.UnsignedInt() - external int manufactureDate; - - @ffi.UnsignedInt() - external int reserved1; - - @ffi.UnsignedInt() - external int reserved2; - - @ffi.UnsignedInt() - external int reserved3; - - @ffi.UnsignedInt() - external int reserved4; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int manufacturer, - required int model, - required int serialNumber, - required int manufactureDate, - required int reserved1, - required int reserved2, - required int reserved3, - required int reserved4, - }) => $allocator() - ..ref.manufacturer = manufacturer - ..ref.model = model - ..ref.serialNumber = serialNumber - ..ref.manufactureDate = manufactureDate - ..ref.reserved1 = reserved1 - ..ref.reserved2 = reserved2 - ..ref.reserved3 = reserved3 - ..ref.reserved4 = reserved4; -} - -final class CMPathLocation extends ffi.Struct { - @ffi.Array.multi([1024]) - external ffi.Array path; -} - -final class CMProfLoc extends ffi.Union { - external CMHandleLocation handleLoc; - - external CMPathLocation pathLoc; - - external CMBufferLocation bufferLoc; -} - -final class CMProfileIterateData extends ffi.Struct { - @ffi.UnsignedInt() - external int dataVersion; - - external CM2Header header; - - @ffi.Short() - external int code; - - @ffi.Array.multi([256]) - external ffi.Array name; - - external CMProfileLocation location; - - @ffi.UnsignedLong() - external int uniCodeNameCount; - - external ffi.Pointer uniCodeName; - - external ffi.Pointer asciiName; + /// new + static NSTextList new$() { + final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_new); + return NSTextList.fromPointer($ret, retain: false, release: true); + } - external ffi.Pointer makeAndModel; + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSTextList, _sel_supportsSecureCoding); + } - external ffi.Pointer> digest; + /// Returns a new instance of NSTextList constructed with the default `new` method. + NSTextList() : this.as(new$().object$); } -typedef CMProfileIterateProcPtrFunction = - ffi.Short Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, - ); -typedef DartCMProfileIterateProcPtrFunction = - int Function( - ffi.Pointer iterateData, - ffi.Pointer refCon, +extension NSTextList$Methods on NSTextList { + /// encodeWithCoder: + void encodeWithCoder(objc.NSCoder coder) { + final _$$ref = object$.ref; + final _$$ref$1 = coder.ref; + _objc_msgSend_xtuoz7( + _$$ref.pointer, + _sel_encodeWithCoder_, + _$$ref$1.pointer, ); + } -final class CMProfileLocation extends ffi.Struct { - @ffi.Short() - external int locType; - - external CMProfLoc u; -} - -typedef CSIdentityQueryReceiveEventCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CSIdentityQuery> query, - ffi.Long event, - ffi.Pointer<__CFArray> identities, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef DartCSIdentityQueryReceiveEventCallbackFunction = - void Function( - ffi.Pointer<__CSIdentityQuery> query, - int event, - ffi.Pointer<__CFArray> identities, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef CSIdentityStatusUpdatedCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CSIdentity> identity, - ffi.Long status, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef DartCSIdentityStatusUpdatedCallbackFunction = - void Function( - ffi.Pointer<__CSIdentity> identity, - int status, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef CSSM_ACL_SUBJECT_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer SubjectRequest, - ffi.Pointer SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, + /// init + NSTextList init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), ); -typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = - int Function( - ffi.Pointer SubjectRequest, - ffi.Pointer SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, ); -typedef CSSM_API_ModuleEventHandlerFunction = - ffi.Int32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - ffi.Uint32 SubserviceId, - ffi.Uint32 ServiceType, - ffi.Uint32 EventType, + return NSTextList.fromPointer($ret, retain: false, release: true); + } + + /// initWithCoder: + NSTextList? initWithCoder(objc.NSCoder coder) { + final _$$ref = object$.ref; + final _$$ref$1 = coder.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithCoder_, + _$$ref$1.pointer, ); -typedef DartCSSM_API_ModuleEventHandlerFunction = - int Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - int SubserviceId, - int ServiceType, - int EventType, + return $ret.address == 0 + ? null + : NSTextList.fromPointer($ret, retain: false, release: true); + } + + /// initWithMarkerFormat:options: + NSTextList initWithMarkerFormat( + objc.NSString markerFormat, { + required int options, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markerFormat.ref; + objc.checkOsVersionInternal( + 'NSTextList.initWithMarkerFormat:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), ); -typedef CSSM_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer OutData, - ffi.Pointer CallerCtx, + final $ret = _objc_msgSend_1k4kd9s( + _$$ref.retainAndReturnPointer(), + _sel_initWithMarkerFormat_options_, + _$$ref$1.pointer, + options, ); -typedef DartCSSM_CALLBACKFunction = - int Function( - ffi.Pointer OutData, - ffi.Pointer CallerCtx, - ); -typedef CSSM_CALLOCFunction = - ffi.Pointer Function( - ffi.Uint32 num, - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_CALLOCFunction = - ffi.Pointer Function( - int num, - int size, - ffi.Pointer allocref, - ); -typedef CSSM_CHALLENGE_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer Challenge, - ffi.Pointer Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ); -typedef DartCSSM_CHALLENGE_CALLBACKFunction = - int Function( - ffi.Pointer Challenge, - ffi.Pointer Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ); -typedef CSSM_FREEFunction = - ffi.Void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ); -typedef DartCSSM_FREEFunction = - void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ); -typedef CSSM_MALLOCFunction = - ffi.Pointer Function( - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_MALLOCFunction = - ffi.Pointer Function(int size, ffi.Pointer allocref); -typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); -typedef DartCSSM_PROC_ADDRFunction = void Function(); -typedef CSSM_REALLOCFunction = - ffi.Pointer Function( - ffi.Pointer memblock, - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_REALLOCFunction = - ffi.Pointer Function( - ffi.Pointer memblock, - int size, - ffi.Pointer allocref, - ); -typedef CSSM_SPI_ModuleEventHandlerFunction = - ffi.Int32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - ffi.Uint32 SubserviceId, - ffi.Uint32 ServiceType, - ffi.Uint32 EventType, - ); -typedef DartCSSM_SPI_ModuleEventHandlerFunction = - int Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - int SubserviceId, - int ServiceType, - int EventType, - ); -typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = - ffi.Int32 Function( - ffi.IntPtr ModuleHandle, - ffi.Pointer CallerCtx, - ffi.Pointer VerifiedCert, - ); -typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = - int Function( - int ModuleHandle, - ffi.Pointer CallerCtx, - ffi.Pointer VerifiedCert, - ); -typedef CSSM_UPCALLS_CALLOCFunction = - ffi.Pointer Function( - ffi.IntPtr AddInHandle, - ffi.Size num, - ffi.Size size, - ); -typedef DartCSSM_UPCALLS_CALLOCFunction = - ffi.Pointer Function(int AddInHandle, int num, int size); -typedef CSSM_UPCALLS_FREEFunction = - ffi.Void Function(ffi.IntPtr AddInHandle, ffi.Pointer memblock); -typedef DartCSSM_UPCALLS_FREEFunction = - void Function(int AddInHandle, ffi.Pointer memblock); -typedef CSSM_UPCALLS_MALLOCFunction = - ffi.Pointer Function(ffi.IntPtr AddInHandle, ffi.Size size); -typedef DartCSSM_UPCALLS_MALLOCFunction = - ffi.Pointer Function(int AddInHandle, int size); -typedef CSSM_UPCALLS_REALLOCFunction = - ffi.Pointer Function( - ffi.IntPtr AddInHandle, - ffi.Pointer memblock, - ffi.Size size, - ); -typedef DartCSSM_UPCALLS_REALLOCFunction = - ffi.Pointer Function( - int AddInHandle, - ffi.Pointer memblock, - int size, - ); -typedef CTFontCollectionSortDescriptorsCallbackFunction = - ffi.Long Function( - ffi.Pointer<__CTFontDescriptor> first, - ffi.Pointer<__CTFontDescriptor> second, - ffi.Pointer refCon, - ); -typedef DartCTFontCollectionSortDescriptorsCallbackFunction = - CFComparisonResult Function( - ffi.Pointer<__CTFontDescriptor> first, - ffi.Pointer<__CTFontDescriptor> second, - ffi.Pointer refCon, - ); -typedef CTRunDelegateDeallocateCallbackFunction = - ffi.Void Function(ffi.Pointer refCon); -typedef DartCTRunDelegateDeallocateCallbackFunction = - void Function(ffi.Pointer refCon); -typedef CTRunDelegateGetAscentCallbackFunction = - ffi.Double Function(ffi.Pointer refCon); -typedef DartCTRunDelegateGetAscentCallbackFunction = - double Function(ffi.Pointer refCon); -typedef CTRunDelegateGetDescentCallbackFunction = - ffi.Double Function(ffi.Pointer refCon); -typedef DartCTRunDelegateGetDescentCallbackFunction = - double Function(ffi.Pointer refCon); -typedef CTRunDelegateGetWidthCallbackFunction = - ffi.Double Function(ffi.Pointer refCon); -typedef DartCTRunDelegateGetWidthCallbackFunction = - double Function(ffi.Pointer refCon); -typedef CollectionExceptionProcPtrFunction = - ffi.Short Function(ffi.Pointer c, ffi.Short status); -typedef DartCollectionExceptionProcPtrFunction = - int Function(ffi.Pointer c, int status); -typedef CollectionFlattenProcPtrFunction = - ffi.Short Function( - ffi.Int size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef DartCollectionFlattenProcPtrFunction = - int Function( - int size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef ColorComplementProcPtrFunction = - ffi.UnsignedChar Function(ffi.Pointer rgb); -typedef DartColorComplementProcPtrFunction = - int Function(ffi.Pointer rgb); -typedef ColorSearchProcPtrFunction = - ffi.UnsignedChar Function( - ffi.Pointer rgb, - ffi.Pointer position, - ); -typedef DartColorSearchProcPtrFunction = - int Function(ffi.Pointer rgb, ffi.Pointer position); - -final class ColorSyncCMM extends ffi.Opaque {} - -typedef ColorSyncCMMIterateCallbackFunction = - ffi.Bool Function( - ffi.Pointer cmm, - ffi.Pointer userInfo, - ); -typedef DartColorSyncCMMIterateCallbackFunction = - bool Function( - ffi.Pointer cmm, - ffi.Pointer userInfo, - ); - -enum ColorSyncDataDepth { - kColorSync1BitGamut(1), - kColorSync8BitInteger(2), - kColorSync16BitInteger(3), - kColorSync16BitFloat(4), - kColorSync32BitInteger(5), - kColorSync32BitNamedColorIndex(6), - kColorSync32BitFloat(7), - kColorSync10BitInteger(8); - - final int value; - const ColorSyncDataDepth(this.value); - - static ColorSyncDataDepth fromValue(int value) => switch (value) { - 1 => kColorSync1BitGamut, - 2 => kColorSync8BitInteger, - 3 => kColorSync16BitInteger, - 4 => kColorSync16BitFloat, - 5 => kColorSync32BitInteger, - 6 => kColorSync32BitNamedColorIndex, - 7 => kColorSync32BitFloat, - 8 => kColorSync10BitInteger, - _ => throw ArgumentError('Unknown value for ColorSyncDataDepth: $value'), - }; -} - -typedef ColorSyncDeviceProfileIterateCallbackFunction = - ffi.Bool Function( - ffi.Pointer<__CFDictionary> colorSyncDeviceProfileInfo, - ffi.Pointer userInfo, - ); -typedef DartColorSyncDeviceProfileIterateCallbackFunction = - bool Function( - ffi.Pointer<__CFDictionary> colorSyncDeviceProfileInfo, - ffi.Pointer userInfo, - ); - -final class ColorSyncProfile extends ffi.Opaque {} - -typedef ColorSyncProfileIterateCallbackFunction = - ffi.Bool Function( - ffi.Pointer<__CFDictionary> profileInfo, - ffi.Pointer userInfo, - ); -typedef DartColorSyncProfileIterateCallbackFunction = - bool Function( - ffi.Pointer<__CFDictionary> profileInfo, - ffi.Pointer userInfo, - ); - -final class ColorSyncTransform extends ffi.Opaque {} - -@ffi.Packed(2) -final class ComponentMPWorkFunctionHeaderRecord extends ffi.Struct { - @ffi.UnsignedInt() - external int headerSize; - - @ffi.UnsignedInt() - external int recordSize; - - @ffi.UnsignedInt() - external int workFlags; - - @ffi.UnsignedShort() - external int processorCount; - - @ffi.UnsignedChar() - external int unused; - - @ffi.UnsignedChar() - external int isRunning; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int headerSize, - required int recordSize, - required int workFlags, - required int processorCount, - required int unused, - required int isRunning, - }) => $allocator() - ..ref.headerSize = headerSize - ..ref.recordSize = recordSize - ..ref.workFlags = workFlags - ..ref.processorCount = processorCount - ..ref.unused = unused - ..ref.isRunning = isRunning; -} - -typedef ComponentMPWorkFunctionProcPtrFunction = - ffi.Int Function( - ffi.Pointer globalRefCon, - ffi.Pointer header, - ); -typedef DartComponentMPWorkFunctionProcPtrFunction = - int Function( - ffi.Pointer globalRefCon, - ffi.Pointer header, - ); - -@ffi.Packed(2) -final class ComponentParameters extends ffi.Struct { - @ffi.UnsignedChar() - external int flags; - - @ffi.UnsignedChar() - external int paramSize; - - @ffi.Short() - external int what; - - @ffi.UnsignedInt() - external int padding; - - @ffi.Array.multi([1]) - external ffi.Array params; -} - -@ffi.Packed(2) -final class ComponentRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef ComponentRoutineProcPtrFunction = - ffi.Int Function( - ffi.Pointer cp, - ffi.Pointer> componentStorage, - ); -typedef DartComponentRoutineProcPtrFunction = - int Function( - ffi.Pointer cp, - ffi.Pointer> componentStorage, - ); -typedef CoreEndianFlipProcFunction = - ffi.Int Function( - ffi.UnsignedInt dataDomain, - ffi.UnsignedInt dataType, - ffi.Short id, - ffi.Pointer dataPtr, - ffi.UnsignedLong dataSize, - ffi.UnsignedChar currentlyNative, - ffi.Pointer refcon, - ); -typedef DartCoreEndianFlipProcFunction = - int Function( - int dataDomain, - int dataType, - int id, - ffi.Pointer dataPtr, - int dataSize, - int currentlyNative, - ffi.Pointer refcon, - ); -typedef DebugAssertOutputHandlerProcPtrFunction = - ffi.Void Function( - ffi.UnsignedInt componentSignature, - ffi.UnsignedInt options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - ffi.Long lineNumber, - ffi.Pointer value, - ffi.Pointer outputMsg, - ); -typedef DartDebugAssertOutputHandlerProcPtrFunction = - void Function( - int componentSignature, - int options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - int lineNumber, - ffi.Pointer value, - ffi.Pointer outputMsg, - ); -typedef DebugComponentCallbackProcPtrFunction = - ffi.Void Function( - ffi.Int optionSelectorNum, - ffi.UnsignedInt command, - ffi.Pointer optionSetting, - ); -typedef DartDebugComponentCallbackProcPtrFunction = - void Function( - int optionSelectorNum, - int command, - ffi.Pointer optionSetting, - ); -typedef DebuggerDisposeThreadProcPtrFunction = - ffi.Void Function(ffi.UnsignedLong threadDeleted); -typedef DartDebuggerDisposeThreadProcPtrFunction = - void Function(int threadDeleted); -typedef DebuggerNewThreadProcPtrFunction = - ffi.Void Function(ffi.UnsignedLong threadCreated); -typedef DartDebuggerNewThreadProcPtrFunction = void Function(int threadCreated); -typedef DebuggerThreadSchedulerProcPtrFunction = - ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); -typedef DartDebuggerThreadSchedulerProcPtrFunction = - int Function(ffi.Pointer schedulerInfo); -typedef DeferredTaskProcPtrFunction = ffi.Void Function(ffi.Long dtParam); -typedef DartDeferredTaskProcPtrFunction = void Function(int dtParam); -typedef DragGrayRgnProcPtrFunction = ffi.Void Function(); -typedef DartDragGrayRgnProcPtrFunction = void Function(); -typedef ExceptionHandlerProcPtrFunction = - ffi.Int Function(ffi.Pointer theException); -typedef DartExceptionHandlerProcPtrFunction = - int Function(ffi.Pointer theException); - -final class ExceptionInfo extends ffi.Union { - external ffi.Pointer memoryInfo; -} - -final class ExceptionInformation extends ffi.Struct { - @ffi.UnsignedLong() - external int theKind; - - external ffi.Pointer machineState; - - external ffi.Pointer registerImage; - - external ffi.Pointer FPUImage; - - external ExceptionInfo info; - - external ffi.Pointer vectorImage; -} - -typedef FNSubscriptionProcPtrFunction = - ffi.Void Function( - ffi.UnsignedInt message, - ffi.UnsignedInt flags, - ffi.Pointer refcon, - ffi.Pointer subscription, - ); -typedef DartFNSubscriptionProcPtrFunction = - void Function( - int message, - int flags, - ffi.Pointer refcon, - ffi.Pointer subscription, - ); - -final class FPUInformation extends ffi.Struct { - external ffi.Pointer __unusedFPUInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedFPUInformationField, - }) => - $allocator() - ..ref.__unusedFPUInformationField = $unusedFPUInformationField; -} - -typedef FSAliasFilterProcPtrFunction = - ffi.UnsignedChar Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - ffi.Pointer myDataPtr, - ); -typedef DartFSAliasFilterProcPtrFunction = - int Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - ffi.Pointer myDataPtr, - ); -typedef FSEventStreamCallbackFunction = - ffi.Void Function( - ffi.Pointer<__FSEventStream> streamRef, - ffi.Pointer clientCallBackInfo, - ffi.Size numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ); -typedef DartFSEventStreamCallbackFunction = - void Function( - ffi.Pointer<__FSEventStream> streamRef, - ffi.Pointer clientCallBackInfo, - int numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ); -typedef FSFileOperationStatusProcPtrFunction = - ffi.Void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - ffi.UnsignedInt stage, - ffi.Int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef DartFSFileOperationStatusProcPtrFunction = - void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - int stage, - int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef FSPathFileOperationStatusProcPtrFunction = - ffi.Void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - ffi.UnsignedInt stage, - ffi.Int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef DartFSPathFileOperationStatusProcPtrFunction = - void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - int stage, - int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); - -final class FSRef extends ffi.Struct { - @ffi.Array.multi([80]) - external ffi.Array hidden; -} - -typedef FSVolumeEjectProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short volumeRefNum, - ffi.Int dissenter, - ); -typedef DartFSVolumeEjectProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - ); -typedef FSVolumeMountProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short mountedVolumeRefNum, - ); -typedef DartFSVolumeMountProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int mountedVolumeRefNum, - ); -typedef FSVolumeUnmountProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short volumeRefNum, - ffi.Int dissenter, - ); -typedef DartFSVolumeUnmountProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - ); - -@ffi.Packed(2) -final class FixedPoint extends ffi.Struct { - @ffi.Int() - external int x; - - @ffi.Int() - external int y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int x, - required int y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -@ffi.Packed(2) -final class Float32Point extends ffi.Struct { - @ffi.Float() - external double x; - - @ffi.Float() - external double y; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required double x, - required double y, - }) => $allocator() - ..ref.x = x - ..ref.y = y; -} - -typedef FolderManagerNotificationProcPtrFunction = - ffi.Int Function( - ffi.UnsignedInt message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ); -typedef DartFolderManagerNotificationProcPtrFunction = - int Function( - int message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ); - -final class FontInfo extends ffi.Struct { - @ffi.Short() - external int ascent; - - @ffi.Short() - external int descent; - - @ffi.Short() - external int widMax; - - @ffi.Short() - external int leading; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ascent, - required int descent, - required int widMax, - required int leading, - }) => $allocator() - ..ref.ascent = ascent - ..ref.descent = descent - ..ref.widMax = widMax - ..ref.leading = leading; -} - -typedef GetMissingComponentResourceProcPtrFunction = - ffi.Short Function( - ffi.Pointer c, - ffi.UnsignedInt resType, - ffi.Short resID, - ffi.Pointer refCon, - ffi.Pointer>> resource, - ); -typedef DartGetMissingComponentResourceProcPtrFunction = - int Function( - ffi.Pointer c, - int resType, - int resID, - ffi.Pointer refCon, - ffi.Pointer>> resource, - ); -typedef HIShapeEnumerateProcPtrFunction = - ffi.Int Function( - ffi.Int inMessage, - ffi.Pointer<__HIShape> inShape, - ffi.Pointer inRect, - ffi.Pointer inRefcon, - ); -typedef DartHIShapeEnumerateProcPtrFunction = - int Function( - int inMessage, - ffi.Pointer<__HIShape> inShape, - ffi.Pointer inRect, - ffi.Pointer inRefcon, - ); -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef IOAsyncCallback0Function = - ffi.Void Function(ffi.Pointer refcon, ffi.Int result); -typedef DartIOAsyncCallback0Function = - void Function(ffi.Pointer refcon, int result); -typedef IOAsyncCallback1Function = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer arg0, - ); -typedef DartIOAsyncCallback1Function = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer arg0, - ); -typedef IOAsyncCallback2Function = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ); -typedef DartIOAsyncCallback2Function = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ); -typedef IOAsyncCallbackFunction = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer> args, - ffi.Uint32 numArgs, - ); -typedef DartIOAsyncCallbackFunction = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer> args, - int numArgs, - ); -typedef IOCompletionProcPtrFunction = - ffi.Void Function(ffi.Pointer paramBlock); -typedef DartIOCompletionProcPtrFunction = - void Function(ffi.Pointer paramBlock); -typedef IOServiceInterestCallbackFunction = - ffi.Void Function( - ffi.Pointer refcon, - ffi.UnsignedInt service, - ffi.Uint32 messageType, - ffi.Pointer messageArgument, - ); -typedef DartIOServiceInterestCallbackFunction = - void Function( - ffi.Pointer refcon, - int service, - int messageType, - ffi.Pointer messageArgument, - ); -typedef IOServiceMatchingCallbackFunction = - ffi.Void Function(ffi.Pointer refcon, ffi.UnsignedInt iterator); -typedef DartIOServiceMatchingCallbackFunction = - void Function(ffi.Pointer refcon, int iterator); -typedef IconActionProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt theType, - ffi.Pointer>> theIcon, - ffi.Pointer yourDataPtr, - ); -typedef DartIconActionProcPtrFunction = - int Function( - int theType, - ffi.Pointer>> theIcon, - ffi.Pointer yourDataPtr, - ); -typedef IconGetterProcPtrFunction = - ffi.Pointer> Function( - ffi.UnsignedInt theType, - ffi.Pointer yourDataPtr, - ); -typedef DartIconGetterProcPtrFunction = - ffi.Pointer> Function( - int theType, - ffi.Pointer yourDataPtr, - ); -typedef IndexToUCStringProcPtrFunction = - ffi.UnsignedChar Function( - ffi.UnsignedInt index, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer> outString, - ffi.Pointer tsOptions, - ); -typedef DartIndexToUCStringProcPtrFunction = - int Function( - int index, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer> outString, - ffi.Pointer tsOptions, - ); - -@ffi.Packed(2) -final class KCCallbackInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external ffi.Pointer<__SecKeychainItem> item; - - @ffi.Array.multi([2]) - external ffi.Array processID; - - @ffi.Array.multi([4]) - external ffi.Array event; - - external ffi.Pointer<__SecKeychain> keychain; -} - -typedef KCCallbackProcPtrFunction = - ffi.Int Function( - ffi.UnsignedShort keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ); -typedef DartKCCallbackProcPtrFunction = - int Function( - int keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ); -typedef LSSharedFileListChangedProcPtrFunction = - ffi.Void Function( - ffi.Pointer inList, - ffi.Pointer context, - ); -typedef DartLSSharedFileListChangedProcPtrFunction = - void Function( - ffi.Pointer inList, - ffi.Pointer context, - ); -typedef MDQueryCreateResultFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__MDQuery> query, - ffi.Pointer<__MDItem> item, - ffi.Pointer context, - ); -typedef MDQueryCreateValueFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__MDQuery> query, - ffi.Pointer attrName, - ffi.Pointer attrValue, - ffi.Pointer context, - ); -typedef MDQuerySortComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer> attrs1, - ffi.Pointer> attrs2, - ffi.Pointer context, - ); -typedef DartMDQuerySortComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer> attrs1, - ffi.Pointer> attrs2, - ffi.Pointer context, - ); -typedef MPIsFullyInitializedProcFunction = ffi.UnsignedChar Function(); -typedef DartMPIsFullyInitializedProcFunction = int Function(); -typedef MPRemoteProcedureFunction = - ffi.Pointer Function(ffi.Pointer parameter); - -final class MacPolygon extends ffi.Struct { - @ffi.Short() - external int polySize; - - external Rect polyBBox; - - @ffi.Array.multi([1]) - external ffi.Array polyPoints; -} - -final class MachineInformation extends ffi.Struct { - external ffi.Pointer __unusedMachineInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedMachineInformationField, - }) => - $allocator() - ..ref.__unusedMachineInformationField = $unusedMachineInformationField; -} - -final class MemoryExceptionInformation extends ffi.Struct { - external ffi.Pointer theArea; - - external ffi.Pointer theAddress; - - @ffi.Int() - external int theError; - - @ffi.UnsignedLong() - external int theReference; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer theArea, - required ffi.Pointer theAddress, - required int theError, - required int theReference, - }) => $allocator() - ..ref.theArea = theArea - ..ref.theAddress = theAddress - ..ref.theError = theError - ..ref.theReference = theReference; -} - -final class NCMDeviceProfileInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int dataVersion; - - @ffi.UnsignedInt() - external int profileID; - - external CMProfileLocation profileLoc; - - external ffi.Pointer<__CFDictionary> profileName; - - external CMDeviceScope profileScope; - - @ffi.UnsignedInt() - external int reserved; -} - -/// WARNING: NSAccessibility is a stub. To generate bindings for this class, include -/// NSAccessibility in your config's objc-protocols list. -/// -/// NSAccessibility -extension type NSAccessibility._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSAccessibility] that points to the same underlying object as [other]. - NSAccessibility.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSAccessibility] that wraps the given raw object pointer. - NSAccessibility.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: NSAccessibilityElement is a stub. To generate bindings for this class, include -/// NSAccessibilityElement in your config's objc-protocols list. -/// -/// NSAccessibilityElement -extension type NSAccessibilityElement._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSAccessibilityElement] that points to the same underlying object as [other]. - NSAccessibilityElement.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSAccessibilityElement] that wraps the given raw object pointer. - NSAccessibilityElement.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: NSAnimatablePropertyContainer is a stub. To generate bindings for this class, include -/// NSAnimatablePropertyContainer in your config's objc-protocols list. -/// -/// NSAnimatablePropertyContainer -extension type NSAnimatablePropertyContainer._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSAnimatablePropertyContainer] that points to the same underlying object as [other]. - NSAnimatablePropertyContainer.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSAnimatablePropertyContainer] that wraps the given raw object pointer. - NSAnimatablePropertyContainer.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: NSAppearanceCustomization is a stub. To generate bindings for this class, include -/// NSAppearanceCustomization in your config's objc-protocols list. -/// -/// NSAppearanceCustomization -extension type NSAppearanceCustomization._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSAppearanceCustomization] that points to the same underlying object as [other]. - NSAppearanceCustomization.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSAppearanceCustomization] that wraps the given raw object pointer. - NSAppearanceCustomization.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: NSButtonCell is a stub. To generate bindings for this class, include -/// NSButtonCell in your config's objc-interfaces list. -/// -/// NSButtonCell -extension type NSButtonCell._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [NSButtonCell] that points to the same underlying object as [other]. - NSButtonCell.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSButtonCell] that wraps the given raw object pointer. - NSButtonCell.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// WARNING: NSColorList is a stub. To generate bindings for this class, include -/// NSColorList in your config's objc-interfaces list. -/// -/// NSColorList -extension type NSColorList._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [NSColorList] that points to the same underlying object as [other]. - NSColorList.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSColorList] that wraps the given raw object pointer. - NSColorList.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// WARNING: NSColorPanel is a stub. To generate bindings for this class, include -/// NSColorPanel in your config's objc-interfaces list. -/// -/// NSColorPanel -extension type NSColorPanel._(objc.ObjCObject object$) - implements objc.ObjCObject, NSPanel { - /// Constructs a [NSColorPanel] that points to the same underlying object as [other]. - NSColorPanel.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal('NSColorPanel', iOS: (true, null)); - } - - /// Constructs a [NSColorPanel] that wraps the given raw object pointer. - NSColorPanel.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal('NSColorPanel', iOS: (true, null)); - } -} - -enum NSColorPanelMode { - NSColorPanelModeNone(-1), - NSColorPanelModeGray(0), - NSColorPanelModeRGB(1), - NSColorPanelModeCMYK(2), - NSColorPanelModeHSB(3), - NSColorPanelModeCustomPalette(4), - NSColorPanelModeColorList(5), - NSColorPanelModeWheel(6), - NSColorPanelModeCrayon(7); - - final int value; - const NSColorPanelMode(this.value); - - static NSColorPanelMode fromValue(int value) => switch (value) { - -1 => NSColorPanelModeNone, - 0 => NSColorPanelModeGray, - 1 => NSColorPanelModeRGB, - 2 => NSColorPanelModeCMYK, - 3 => NSColorPanelModeHSB, - 4 => NSColorPanelModeCustomPalette, - 5 => NSColorPanelModeColorList, - 6 => NSColorPanelModeWheel, - 7 => NSColorPanelModeCrayon, - _ => throw ArgumentError('Unknown value for NSColorPanelMode: $value'), - }; -} - -/// NSColorPicker -extension type NSColorPicker._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, NSColorPickingDefault { - /// Constructs a [NSColorPicker] that points to the same underlying object as [other]. - NSColorPicker.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal('NSColorPicker', iOS: (true, null)); - assert(isA(object$)); - } - - /// Constructs a [NSColorPicker] that wraps the given raw object pointer. - NSColorPicker.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal('NSColorPicker', iOS: (true, null)); - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [NSColorPicker]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSColorPicker, - ); - - /// alloc - static NSColorPicker alloc() { - final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_alloc); - return NSColorPicker.fromPointer($ret, retain: false, release: true); - } - - /// allocWithZone: - static NSColorPicker allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_NSColorPicker, - _sel_allocWithZone_, - zone, - ); - return NSColorPicker.fromPointer($ret, retain: false, release: true); - } - - /// new - static NSColorPicker new$() { - final $ret = _objc_msgSend_151sglz(_class_NSColorPicker, _sel_new); - return NSColorPicker.fromPointer($ret, retain: false, release: true); - } - - /// Returns a new instance of NSColorPicker constructed with the default `new` method. - NSColorPicker() : this.as(new$().object$); -} - -extension NSColorPicker$Methods on NSColorPicker { - /// alphaControlAddedOrRemoved: - void alphaControlAddedOrRemoved(objc.ObjCObject? sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender?.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.alphaControlAddedOrRemoved:', - iOS: (true, null), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_alphaControlAddedOrRemoved_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } - - /// attachColorList: - void attachColorList(NSColorList colorList) { - final _$$ref = object$.ref; - final _$$ref$1 = colorList.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.attachColorList:', - iOS: (true, null), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_attachColorList_, - _$$ref$1.pointer, - ); - } - - /// buttonToolTip - objc.NSString get buttonToolTip { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.buttonToolTip', - iOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_buttonToolTip); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// colorPanel - NSColorPanel get colorPanel { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('NSColorPicker.colorPanel', iOS: (true, null)); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_colorPanel); - return NSColorPanel.fromPointer($ret, retain: true, release: true); - } - - /// detachColorList: - void detachColorList(NSColorList colorList) { - final _$$ref = object$.ref; - final _$$ref$1 = colorList.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.detachColorList:', - iOS: (true, null), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_detachColorList_, - _$$ref$1.pointer, - ); - } - - /// init - NSColorPicker init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return NSColorPicker.fromPointer($ret, retain: false, release: true); - } - - /// initWithPickerMask:colorPanel: - NSColorPicker? initWithPickerMask( - int mask, { - required NSColorPanel colorPanel, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = colorPanel.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.initWithPickerMask:colorPanel:', - iOS: (true, null), - ); - final $ret = _objc_msgSend_vbc8p4( - _$$ref.retainAndReturnPointer(), - _sel_initWithPickerMask_colorPanel_, - mask, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : NSColorPicker.fromPointer($ret, retain: false, release: true); - } - - /// insertNewButtonImage:in: - void insertNewButtonImage( - NSImage newButtonImage, { - required NSButtonCell in$, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = newButtonImage.ref; - final _$$ref$2 = in$.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.insertNewButtonImage:in:', - iOS: (true, null), - ); - _objc_msgSend_pfv6jd( - _$$ref.pointer, - _sel_insertNewButtonImage_in_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// minContentSize - objc.CGSize get minContentSize { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.minContentSize', - iOS: (true, null), - ); - final $ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_minContentSize) - : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_minContentSize); - final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create($finalizable); - } - - /// provideNewButtonImage - NSImage get provideNewButtonImage { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.provideNewButtonImage', - iOS: (true, null), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_provideNewButtonImage, - ); - return NSImage.fromPointer($ret, retain: true, release: true); - } - - /// setMode: - void setMode(NSColorPanelMode mode) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal('NSColorPicker.setMode:', iOS: (true, null)); - _objc_msgSend_190ea64(_$$ref.pointer, _sel_setMode_, mode.value); - } - - /// viewSizeChanged: - void viewSizeChanged(objc.ObjCObject? sender) { - final _$$ref = object$.ref; - final _$$ref$1 = sender?.ref; - objc.checkOsVersionInternal( - 'NSColorPicker.viewSizeChanged:', - iOS: (true, null), - ); - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_viewSizeChanged_, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - -/// WARNING: NSColorPickingDefault is a stub. To generate bindings for this class, include -/// NSColorPickingDefault in your config's objc-protocols list. -/// -/// NSColorPickingDefault -extension type NSColorPickingDefault._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSColorPickingDefault] that points to the same underlying object as [other]. - NSColorPickingDefault.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSColorPickingDefault] that wraps the given raw object pointer. - NSColorPickingDefault.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: NSImage is a stub. To generate bindings for this class, include -/// NSImage in your config's objc-interfaces list. -/// -/// NSImage -extension type NSImage._(objc.ObjCObject object$) implements objc.ObjCObject { - /// Constructs a [NSImage] that points to the same underlying object as [other]. - NSImage.as(objc.ObjCObject other) : object$ = other {} - - /// Constructs a [NSImage] that wraps the given raw object pointer. - NSImage.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} -} - -/// WARNING: NSMenuItemValidation is a stub. To generate bindings for this class, include -/// NSMenuItemValidation in your config's objc-protocols list. -/// -/// NSMenuItemValidation -extension type NSMenuItemValidation._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [NSMenuItemValidation] that points to the same underlying object as [other]. - NSMenuItemValidation.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSMenuItemValidation] that wraps the given raw object pointer. - NSMenuItemValidation.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: NSPanel is a stub. To generate bindings for this class, include -/// NSPanel in your config's objc-interfaces list. -/// -/// NSPanel -extension type NSPanel._(objc.ObjCObject object$) - implements objc.ObjCObject, NSWindow { - /// Constructs a [NSPanel] that points to the same underlying object as [other]. - NSPanel.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal('NSPanel', iOS: (true, null)); - } - - /// Constructs a [NSPanel] that wraps the given raw object pointer. - NSPanel.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal('NSPanel', iOS: (true, null)); - } -} - -/// WARNING: NSResponder is a stub. To generate bindings for this class, include -/// NSResponder in your config's objc-interfaces list. -/// -/// NSResponder -extension type NSResponder._(objc.ObjCObject object$) - implements objc.ObjCObject, objc.NSObject, objc.NSCoding { - /// Constructs a [NSResponder] that points to the same underlying object as [other]. - NSResponder.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal('NSResponder', iOS: (true, null)); - } - - /// Constructs a [NSResponder] that wraps the given raw object pointer. - NSResponder.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal('NSResponder', iOS: (true, null)); - } -} - -/// NSTextList -extension type NSTextList._(objc.ObjCObject object$) - implements - objc.ObjCObject, - objc.NSObject, - objc.NSSecureCoding, - objc.NSCopying { - /// Constructs a [NSTextList] that points to the same underlying object as [other]. - NSTextList.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal( - 'NSTextList', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - assert(isA(object$)); - } - - /// Constructs a [NSTextList] that wraps the given raw object pointer. - NSTextList.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSTextList', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [NSTextList]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSTextList, - ); - - /// alloc - static NSTextList alloc() { - final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_alloc); - return NSTextList.fromPointer($ret, retain: false, release: true); - } - - /// allocWithZone: - static NSTextList allocWithZone(ffi.Pointer zone) { - final $ret = _objc_msgSend_1cwp428( - _class_NSTextList, - _sel_allocWithZone_, - zone, - ); - return NSTextList.fromPointer($ret, retain: false, release: true); - } - - /// new - static NSTextList new$() { - final $ret = _objc_msgSend_151sglz(_class_NSTextList, _sel_new); - return NSTextList.fromPointer($ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSTextList, _sel_supportsSecureCoding); - } - - /// Returns a new instance of NSTextList constructed with the default `new` method. - NSTextList() : this.as(new$().object$); -} - -extension NSTextList$Methods on NSTextList { - /// encodeWithCoder: - void encodeWithCoder(objc.NSCoder coder) { - final _$$ref = object$.ref; - final _$$ref$1 = coder.ref; - _objc_msgSend_xtuoz7( - _$$ref.pointer, - _sel_encodeWithCoder_, - _$$ref$1.pointer, - ); - } - - /// init - NSTextList init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return NSTextList.fromPointer($ret, retain: false, release: true); - } - - /// initWithCoder: - NSTextList? initWithCoder(objc.NSCoder coder) { - final _$$ref = object$.ref; - final _$$ref$1 = coder.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithCoder_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : NSTextList.fromPointer($ret, retain: false, release: true); - } - - /// initWithMarkerFormat:options: - NSTextList initWithMarkerFormat( - objc.NSString markerFormat, { - required int options, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markerFormat.ref; - objc.checkOsVersionInternal( - 'NSTextList.initWithMarkerFormat:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1k4kd9s( - _$$ref.retainAndReturnPointer(), - _sel_initWithMarkerFormat_options_, - _$$ref$1.pointer, - options, - ); - return NSTextList.fromPointer($ret, retain: false, release: true); - } - - /// initWithMarkerFormat:options:startingItemNumber: - NSTextList initWithMarkerFormat$1( - objc.NSString markerFormat, { - required int options, - required int startingItemNumber, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markerFormat.ref; - objc.checkOsVersionInternal( - 'NSTextList.initWithMarkerFormat:options:startingItemNumber:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - final $ret = _objc_msgSend_1bh1vl9( - _$$ref.retainAndReturnPointer(), - _sel_initWithMarkerFormat_options_startingItemNumber_, - _$$ref$1.pointer, - options, - startingItemNumber, - ); - return NSTextList.fromPointer($ret, retain: false, release: true); - } - - /// isOrdered - bool get isOrdered { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.isOrdered', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOrdered); - } - - /// listOptions - int get listOptions { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.listOptions', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_exovb9(_$$ref.pointer, _sel_listOptions); - } - - /// markerForItemNumber: - objc.NSString markerForItemNumber(int itemNumber) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.markerForItemNumber:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_qugqlf( - _$$ref.pointer, - _sel_markerForItemNumber_, - itemNumber, - ); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// markerFormat - objc.NSString get markerFormat { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.markerFormat', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_markerFormat); - return objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// setStartingItemNumber: - set startingItemNumber(int value) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.setStartingItemNumber:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setStartingItemNumber_, value); - } - - /// startingItemNumber - int get startingItemNumber { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSTextList.startingItemNumber', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_startingItemNumber); - } -} - -sealed class NSTextListOptions { - static const NSTextListPrependEnclosingMarker = 1; -} - -/// WARNING: NSUserInterfaceItemIdentification is a stub. To generate bindings for this class, include -/// NSUserInterfaceItemIdentification in your config's objc-protocols list. -/// -/// NSUserInterfaceItemIdentification -extension type NSUserInterfaceItemIdentification._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSUserInterfaceItemIdentification] that points to the same underlying object as [other]. - NSUserInterfaceItemIdentification.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSUserInterfaceItemIdentification] that wraps the given raw object pointer. - NSUserInterfaceItemIdentification.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: NSUserInterfaceValidations is a stub. To generate bindings for this class, include -/// NSUserInterfaceValidations in your config's objc-protocols list. -/// -/// NSUserInterfaceValidations -extension type NSUserInterfaceValidations._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol { - /// Constructs a [NSUserInterfaceValidations] that points to the same underlying object as [other]. - NSUserInterfaceValidations.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [NSUserInterfaceValidations] that wraps the given raw object pointer. - NSUserInterfaceValidations.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: NSWindow is a stub. To generate bindings for this class, include -/// NSWindow in your config's objc-interfaces list. -/// -/// NSWindow -extension type NSWindow._(objc.ObjCObject object$) - implements - objc.ObjCObject, - NSResponder, - NSAnimatablePropertyContainer, - NSMenuItemValidation, - NSUserInterfaceValidations, - NSUserInterfaceItemIdentification, - NSAppearanceCustomization, - NSAccessibilityElement, - NSAccessibility { - /// Constructs a [NSWindow] that points to the same underlying object as [other]. - NSWindow.as(objc.ObjCObject other) : object$ = other { - objc.checkOsVersionInternal('NSWindow', iOS: (true, null)); - } - - /// Constructs a [NSWindow] that wraps the given raw object pointer. - NSWindow.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - objc.checkOsVersionInternal('NSWindow', iOS: (true, null)); - } -} - -typedef OSLAccessorProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt desiredClass, - ffi.Pointer container, - ffi.UnsignedInt containerClass, - ffi.UnsignedInt form, - ffi.Pointer selectionData, - ffi.Pointer value, - ffi.Pointer accessorRefcon, - ); -typedef DartOSLAccessorProcPtrFunction = - int Function( - int desiredClass, - ffi.Pointer container, - int containerClass, - int form, - ffi.Pointer selectionData, - ffi.Pointer value, - ffi.Pointer accessorRefcon, - ); -typedef OSLAdjustMarksProcPtrFunction = - ffi.Short Function( - ffi.Long newStart, - ffi.Long newStop, - ffi.Pointer markToken, - ); -typedef DartOSLAdjustMarksProcPtrFunction = - int Function(int newStart, int newStop, ffi.Pointer markToken); -typedef OSLCompareProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ); -typedef DartOSLCompareProcPtrFunction = - int Function( - int oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ); -typedef OSLCountProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt desiredType, - ffi.UnsignedInt containerClass, - ffi.Pointer container, - ffi.Pointer result, - ); -typedef DartOSLCountProcPtrFunction = - int Function( - int desiredType, - int containerClass, - ffi.Pointer container, - ffi.Pointer result, - ); -typedef OSLDisposeTokenProcPtrFunction = - ffi.Short Function(ffi.Pointer unneededToken); -typedef DartOSLDisposeTokenProcPtrFunction = - int Function(ffi.Pointer unneededToken); -typedef OSLGetErrDescProcPtrFunction = - ffi.Short Function(ffi.Pointer> appDescPtr); -typedef DartOSLGetErrDescProcPtrFunction = - int Function(ffi.Pointer> appDescPtr); -typedef OSLGetMarkTokenProcPtrFunction = - ffi.Short Function( - ffi.Pointer dContainerToken, - ffi.UnsignedInt containerClass, - ffi.Pointer result, - ); -typedef DartOSLGetMarkTokenProcPtrFunction = - int Function( - ffi.Pointer dContainerToken, - int containerClass, - ffi.Pointer result, - ); -typedef OSLMarkProcPtrFunction = - ffi.Short Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - ffi.Long index, - ); -typedef DartOSLMarkProcPtrFunction = - int Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - int index, - ); - -/// Construction methods for `objc.ObjCBlock Function()>`. -abstract final class ObjCBlock_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function()> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function()>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function()> fromFunctionPointer( - ffi.Pointer Function()>> ptr, - ) => objc.ObjCBlock Function()>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function()> fromFunction( - ffi.Pointer<__CFError> Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function()>( - objc.newClosureBlock(_closureCallable, () { - return fn(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer<__CFError> _fnPtrTrampoline( - ffi.Pointer block, - ) => block.ref.target - .cast Function()>>() - .asFunction Function()>()(); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer<__CFError> _closureTrampoline( - ffi.Pointer block, - ) => (objc.getBlockClosure(block) as ffi.Pointer<__CFError> Function())(); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function()>`. -extension ObjCBlock_CFErrorRef$CallExtension - on objc.ObjCBlock Function()> { - ffi.Pointer<__CFError> call() { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFError> Function( - ffi.Pointer block, - ) - > - >() - .asFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >()(ref.pointer); + return NSTextList.fromPointer($ret, retain: false, release: true); } -} - -final class OpaqueATSUTextLayout extends ffi.Opaque {} - -final class OpaqueAreaID extends ffi.Opaque {} - -final class OpaqueCollection extends ffi.Opaque {} - -final class OpaqueFNSubscriptionRef extends ffi.Opaque {} - -final class OpaqueFSVolumeOperation extends ffi.Opaque {} - -final class OpaqueGrafPtr extends ffi.Opaque {} - -final class OpaqueLSSharedFileListRef extends ffi.Opaque {} - -final class OpaquePasteboardRef extends ffi.Opaque {} - -final class OpaqueRgnHandle extends ffi.Opaque {} - -final class OpaqueSecTransformImplementation extends ffi.Opaque {} - -final class OpaqueTECObjectRef extends ffi.Opaque {} - -final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} - -final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} - -final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} - -typedef PasteboardPromiseKeeperProcPtrFunction = - ffi.Int Function( - ffi.Pointer pasteboard, - ffi.Pointer item, - ffi.Pointer flavorType, - ffi.Pointer context, - ); -typedef DartPasteboardPromiseKeeperProcPtrFunction = - int Function( - ffi.Pointer pasteboard, - ffi.Pointer item, - ffi.Pointer flavorType, - ffi.Pointer context, - ); - -final class Point extends ffi.Struct { - @ffi.Short() - external int v; - - @ffi.Short() - external int h; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int v, - required int h, - }) => $allocator() - ..ref.v = v - ..ref.h = h; -} - -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef QDArcProcPtrFunction = - ffi.Void Function( - ffi.SignedChar verb, - ffi.Pointer r, - ffi.Short startAngle, - ffi.Short arcAngle, - ); -typedef DartQDArcProcPtrFunction = - void Function(int verb, ffi.Pointer r, int startAngle, int arcAngle); -typedef QDBitsProcPtrFunction = - ffi.Void Function( - ffi.Pointer srcBits, - ffi.Pointer srcRect, - ffi.Pointer dstRect, - ffi.Short mode, - ffi.Pointer maskRgn, - ); -typedef DartQDBitsProcPtrFunction = - void Function( - ffi.Pointer srcBits, - ffi.Pointer srcRect, - ffi.Pointer dstRect, - int mode, - ffi.Pointer maskRgn, - ); -typedef QDCommentProcPtrFunction = - ffi.Void Function( - ffi.Short kind, - ffi.Short dataSize, - ffi.Pointer> dataHandle, - ); -typedef DartQDCommentProcPtrFunction = - void Function( - int kind, - int dataSize, - ffi.Pointer> dataHandle, - ); -typedef QDGetPicProcPtrFunction = - ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); -typedef DartQDGetPicProcPtrFunction = - void Function(ffi.Pointer dataPtr, int byteCount); -typedef QDJShieldCursorProcPtrFunction = - ffi.Void Function( - ffi.Short left, - ffi.Short top, - ffi.Short right, - ffi.Short bottom, - ); -typedef DartQDJShieldCursorProcPtrFunction = - void Function(int left, int top, int right, int bottom); -typedef QDLineProcPtrFunction = ffi.Void Function(Point newPt); -typedef DartQDLineProcPtrFunction = void Function(Point newPt); -typedef QDOpcodeProcPtrFunction = - ffi.Void Function( - ffi.Pointer fromRect, - ffi.Pointer toRect, - ffi.UnsignedShort opcode, - ffi.Short version, - ); -typedef DartQDOpcodeProcPtrFunction = - void Function( - ffi.Pointer fromRect, - ffi.Pointer toRect, - int opcode, - int version, - ); -typedef QDOvalProcPtrFunction = - ffi.Void Function(ffi.SignedChar verb, ffi.Pointer r); -typedef DartQDOvalProcPtrFunction = - void Function(int verb, ffi.Pointer r); -typedef QDPolyProcPtrFunction = - ffi.Void Function( - ffi.SignedChar verb, - ffi.Pointer> poly, - ); -typedef DartQDPolyProcPtrFunction = - void Function(int verb, ffi.Pointer> poly); -typedef QDPrinterStatusProcPtrFunction = - ffi.Int Function( - ffi.Int opcode, - ffi.Pointer currentPort, - ffi.Pointer printerStatus, - ); -typedef DartQDPrinterStatusProcPtrFunction = - int Function( - int opcode, - ffi.Pointer currentPort, - ffi.Pointer printerStatus, - ); -typedef QDPutPicProcPtrFunction = - ffi.Void Function(ffi.Pointer dataPtr, ffi.Short byteCount); -typedef DartQDPutPicProcPtrFunction = - void Function(ffi.Pointer dataPtr, int byteCount); -typedef QDRRectProcPtrFunction = - ffi.Void Function( - ffi.SignedChar verb, - ffi.Pointer r, - ffi.Short ovalWidth, - ffi.Short ovalHeight, - ); -typedef DartQDRRectProcPtrFunction = - void Function(int verb, ffi.Pointer r, int ovalWidth, int ovalHeight); -typedef QDRectProcPtrFunction = - ffi.Void Function(ffi.SignedChar verb, ffi.Pointer r); -typedef DartQDRectProcPtrFunction = - void Function(int verb, ffi.Pointer r); -typedef QDRgnProcPtrFunction = - ffi.Void Function(ffi.SignedChar verb, ffi.Pointer rgn); -typedef DartQDRgnProcPtrFunction = - void Function(int verb, ffi.Pointer rgn); -typedef QDStdGlyphsProcPtrFunction = - ffi.Int Function(ffi.Pointer dataStream, ffi.UnsignedLong size); -typedef DartQDStdGlyphsProcPtrFunction = - int Function(ffi.Pointer dataStream, int size); -typedef QDTextProcPtrFunction = - ffi.Void Function( - ffi.Short byteCount, - ffi.Pointer textBuf, - Point numer, - Point denom, - ); -typedef DartQDTextProcPtrFunction = - void Function( - int byteCount, - ffi.Pointer textBuf, - Point numer, - Point denom, - ); -typedef QDTxMeasProcPtrFunction = - ffi.Short Function( - ffi.Short byteCount, - ffi.Pointer textAddr, - ffi.Pointer numer, - ffi.Pointer denom, - ffi.Pointer info, - ); -typedef DartQDTxMeasProcPtrFunction = - int Function( - int byteCount, - ffi.Pointer textAddr, - ffi.Pointer numer, - ffi.Pointer denom, - ffi.Pointer info, - ); - -@ffi.Packed(2) -final class QElem extends ffi.Struct { - external ffi.Pointer qLink; - - @ffi.Short() - external int qType; - - @ffi.Array.multi([1]) - external ffi.Array qData; -} - -final class RGBColor extends ffi.Struct { - @ffi.UnsignedShort() - external int red; - - @ffi.UnsignedShort() - external int green; - - @ffi.UnsignedShort() - external int blue; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int red, - required int green, - required int blue, - }) => $allocator() - ..ref.red = red - ..ref.green = green - ..ref.blue = blue; -} - -final class Rect extends ffi.Struct { - @ffi.Short() - external int top; - - @ffi.Short() - external int left; - - @ffi.Short() - external int bottom; - - @ffi.Short() - external int right; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int top, - required int left, - required int bottom, - required int right, - }) => $allocator() - ..ref.top = top - ..ref.left = left - ..ref.bottom = bottom - ..ref.right = right; -} - -typedef RedrawBackgroundProcPtrFunction = - ffi.UnsignedChar Function( - ffi.Pointer iLayout, - ffi.UnsignedLong iTextOffset, - ffi.UnsignedLong iTextLength, - ffi.Pointer iUnhighlightArea, - ffi.UnsignedLong iTrapezoidCount, - ); -typedef DartRedrawBackgroundProcPtrFunction = - int Function( - ffi.Pointer iLayout, - int iTextOffset, - int iTextLength, - ffi.Pointer iUnhighlightArea, - int iTrapezoidCount, - ); -typedef RegionToRectsProcPtrFunction = - ffi.Int Function( - ffi.UnsignedShort message, - ffi.Pointer rgn, - ffi.Pointer rect, - ffi.Pointer refCon, - ); -typedef DartRegionToRectsProcPtrFunction = - int Function( - int message, - ffi.Pointer rgn, - ffi.Pointer rect, - ffi.Pointer refCon, - ); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - -final class RegisterInformation extends ffi.Struct { - external ffi.Pointer __unusedRegisterInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedRegisterInformationField, - }) => $allocator() - ..ref.__unusedRegisterInformationField = $unusedRegisterInformationField; -} - -typedef ResErrProcPtrFunction = ffi.Void Function(ffi.Short thErr); -typedef DartResErrProcPtrFunction = void Function(int thErr); -typedef ResourceEndianFilterPtrFunction = - ffi.Short Function( - ffi.Pointer> theResource, - ffi.UnsignedChar currentlyNativeEndian, - ); -typedef DartResourceEndianFilterPtrFunction = - int Function( - ffi.Pointer> theResource, - int currentlyNativeEndian, - ); -typedef SKSearchResultsFilterCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__SKIndex> inIndex, - ffi.Pointer inDocument, - ffi.Pointer inContext, - ); -typedef DartSKSearchResultsFilterCallBackFunction = - int Function( - ffi.Pointer<__SKIndex> inIndex, - ffi.Pointer inDocument, - ffi.Pointer inContext, - ); -typedef SSLReadFuncFunction = - ffi.Int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef DartSSLReadFuncFunction = - int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef SSLWriteFuncFunction = - ffi.Int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef DartSSLWriteFuncFunction = - int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); - -@ffi.Packed(2) -final class SchedulerInfoRec extends ffi.Struct { - @ffi.UnsignedInt() - external int InfoRecSize; - - @ffi.UnsignedLong() - external int CurrentThreadID; - - @ffi.UnsignedLong() - external int SuggestedThreadID; - - @ffi.UnsignedLong() - external int InterruptedCoopThreadID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int InfoRecSize, - required int CurrentThreadID, - required int SuggestedThreadID, - required int InterruptedCoopThreadID, - }) => $allocator() - ..ref.InfoRecSize = InfoRecSize - ..ref.CurrentThreadID = CurrentThreadID - ..ref.SuggestedThreadID = SuggestedThreadID - ..ref.InterruptedCoopThreadID = InterruptedCoopThreadID; -} - -typedef SecKeychainCallbackFunction = - ffi.Int Function( - ffi.UnsignedInt keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ); -typedef DartSecKeychainCallbackFunction = - int Function( - SecKeychainEvent keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ); - -final class SecKeychainCallbackInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external ffi.Pointer<__SecKeychainItem> item; - - external ffi.Pointer<__SecKeychain> keychain; - - @ffi.Int() - external int pid; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer<__SecKeychainItem> item, - required ffi.Pointer<__SecKeychain> keychain, - required int pid, - }) => $allocator() - ..ref.version = version - ..ref.item = item - ..ref.keychain = keychain - ..ref.pid = pid; -} - -enum SecKeychainEvent { - kSecLockEvent(1), - kSecUnlockEvent(2), - kSecAddEvent(3), - kSecDeleteEvent(4), - kSecUpdateEvent(5), - kSecPasswordChangedEvent(6), - kSecDefaultChangedEvent(9), - kSecDataAccessEvent(10), - kSecKeychainListChangedEvent(11), - kSecTrustSettingsChangedEvent(12); - - final int value; - const SecKeychainEvent(this.value); - - static SecKeychainEvent fromValue(int value) => switch (value) { - 1 => kSecLockEvent, - 2 => kSecUnlockEvent, - 3 => kSecAddEvent, - 4 => kSecDeleteEvent, - 5 => kSecUpdateEvent, - 6 => kSecPasswordChangedEvent, - 9 => kSecDefaultChangedEvent, - 10 => kSecDataAccessEvent, - 11 => kSecKeychainListChangedEvent, - 12 => kSecTrustSettingsChangedEvent, - _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), - }; -} - -typedef SecTransformCreateFPFunction = - ffi.Pointer Function( - ffi.Pointer name, - ffi.Pointer newTransform, - ffi.Pointer ref, - ); -typedef DartSecTransformCreateFPFunction = - objc.ObjCBlock Function()> Function( - ffi.Pointer name, - ffi.Pointer newTransform, - ffi.Pointer ref, - ); -typedef SelectorFunctionProcPtrFunction = - ffi.Short Function(ffi.UnsignedInt selector, ffi.Pointer response); -typedef DartSelectorFunctionProcPtrFunction = - int Function(int selector, ffi.Pointer response); -typedef SleepQProcPtrFunction = - ffi.Long Function(ffi.Long message, ffi.Pointer qRecPtr); -typedef DartSleepQProcPtrFunction = - int Function(int message, ffi.Pointer qRecPtr); - -@ffi.Packed(2) -final class SleepQRec extends ffi.Struct { - external ffi.Pointer sleepQLink; - - @ffi.Short() - external int sleepQType; - - external ffi.Pointer> sleepQProc; - - @ffi.Short() - external int sleepQFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer sleepQLink, - required int sleepQType, - required ffi.Pointer> sleepQProc, - required int sleepQFlags, - }) => $allocator() - ..ref.sleepQLink = sleepQLink - ..ref.sleepQType = sleepQType - ..ref.sleepQProc = sleepQProc - ..ref.sleepQFlags = sleepQFlags; -} - -@ffi.Packed(2) -final class SpeechChannelRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef SpeechDoneProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ); -typedef DartSpeechDoneProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ); -typedef SpeechErrorCFProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer<__CFError> theError, - ); -typedef DartSpeechErrorCFProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer<__CFError> theError, - ); -typedef SpeechErrorProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Short theError, - ffi.Long bytePos, - ); -typedef DartSpeechErrorProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - int theError, - int bytePos, - ); -typedef SpeechPhonemeProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Short phonemeOpcode, - ); -typedef DartSpeechPhonemeProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - int phonemeOpcode, - ); -typedef SpeechSyncProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.UnsignedInt syncMessage, - ); -typedef DartSpeechSyncProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - int syncMessage, - ); -typedef SpeechTextDoneProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer> nextBuf, - ffi.Pointer byteLen, - ffi.Pointer controlFlags, - ); -typedef DartSpeechTextDoneProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer> nextBuf, - ffi.Pointer byteLen, - ffi.Pointer controlFlags, - ); -typedef SpeechWordCFProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer aString, - CFRange wordRange, - ); -typedef DartSpeechWordCFProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.Pointer aString, - CFRange wordRange, - ); -typedef SpeechWordProcPtrFunction = - ffi.Void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - ffi.UnsignedLong wordPos, - ffi.UnsignedShort wordLen, - ); -typedef DartSpeechWordProcPtrFunction = - void Function( - ffi.Pointer chan, - ffi.Pointer refCon, - int wordPos, - int wordLen, - ); - -final class TECBufferContextRec extends ffi.Struct { - external ffi.Pointer textInputBuffer; - - external ffi.Pointer textInputBufferEnd; - - external ffi.Pointer textOutputBuffer; - - external ffi.Pointer textOutputBufferEnd; - - external ffi.Pointer encodingInputBuffer; - - external ffi.Pointer encodingInputBufferEnd; - - external ffi.Pointer encodingOutputBuffer; - - external ffi.Pointer encodingOutputBufferEnd; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer textInputBuffer, - required ffi.Pointer textInputBufferEnd, - required ffi.Pointer textOutputBuffer, - required ffi.Pointer textOutputBufferEnd, - required ffi.Pointer encodingInputBuffer, - required ffi.Pointer encodingInputBufferEnd, - required ffi.Pointer encodingOutputBuffer, - required ffi.Pointer encodingOutputBufferEnd, - }) => $allocator() - ..ref.textInputBuffer = textInputBuffer - ..ref.textInputBufferEnd = textInputBufferEnd - ..ref.textOutputBuffer = textOutputBuffer - ..ref.textOutputBufferEnd = textOutputBufferEnd - ..ref.encodingInputBuffer = encodingInputBuffer - ..ref.encodingInputBufferEnd = encodingInputBufferEnd - ..ref.encodingOutputBuffer = encodingOutputBuffer - ..ref.encodingOutputBufferEnd = encodingOutputBufferEnd; -} - -@ffi.Packed(2) -final class TECConversionInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int sourceEncoding; - - @ffi.UnsignedInt() - external int destinationEncoding; - - @ffi.UnsignedShort() - external int reserved1; - - @ffi.UnsignedShort() - external int reserved2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sourceEncoding, - required int destinationEncoding, - required int reserved1, - required int reserved2, - }) => $allocator() - ..ref.sourceEncoding = sourceEncoding - ..ref.destinationEncoding = destinationEncoding - ..ref.reserved1 = reserved1 - ..ref.reserved2 = reserved2; -} - -final class TECConverterContextRec extends ffi.Struct { - external ffi.Pointer pluginRec; - - @ffi.UnsignedInt() - external int sourceEncoding; - - @ffi.UnsignedInt() - external int destEncoding; - - @ffi.UnsignedInt() - external int reserved1; - - @ffi.UnsignedInt() - external int reserved2; - - external TECBufferContextRec bufferContext; - - external ffi.Pointer contextRefCon; - - external ffi.Pointer> conversionProc; - - external ffi.Pointer> flushProc; - - external ffi.Pointer> - clearContextInfoProc; - - @ffi.UnsignedInt() - external int options1; - - @ffi.UnsignedInt() - external int options2; - - external TECPluginStateRec pluginState; -} - -typedef TECPluginClearContextInfoPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginClearContextInfoPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginClearSnifferContextInfoPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginClearSnifferContextInfoPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef TECPluginConvertTextEncodingPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginConvertTextEncodingPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -final class TECPluginDispatchTable extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - @ffi.UnsignedInt() - external int compatibleVersion; - - @ffi.UnsignedInt() - external int PluginID; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingConverter; - - external ffi.Pointer> - PluginClearContextInfo; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginConvertTextEncoding; - - external ffi.Pointer> - PluginFlushConversion; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingConverter; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingSniffer; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginClearSnifferContextInfo; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginSniffTextEncoding; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingSniffer; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodingPairs; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountDestinationTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountSubTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableSniffers; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountWebTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountMailTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingInternetName; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingFromInternetName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int compatibleVersion, - required int PluginID, - required ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingConverter, - required ffi.Pointer< - ffi.NativeFunction - > - PluginClearContextInfo, - required ffi.Pointer< - ffi.NativeFunction - > - PluginConvertTextEncoding, - required ffi.Pointer< - ffi.NativeFunction - > - PluginFlushConversion, - required ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingConverter, - required ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingSniffer, - required ffi.Pointer< - ffi.NativeFunction - > - PluginClearSnifferContextInfo, - required ffi.Pointer< - ffi.NativeFunction - > - PluginSniffTextEncoding, - required ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingSniffer, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodingPairs, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountDestinationTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountSubTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableSniffers, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountWebTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountMailTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingInternetName, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingFromInternetName, - }) => $allocator() - ..ref.version = version - ..ref.compatibleVersion = compatibleVersion - ..ref.PluginID = PluginID - ..ref.PluginNewEncodingConverter = PluginNewEncodingConverter - ..ref.PluginClearContextInfo = PluginClearContextInfo - ..ref.PluginConvertTextEncoding = PluginConvertTextEncoding - ..ref.PluginFlushConversion = PluginFlushConversion - ..ref.PluginDisposeEncodingConverter = PluginDisposeEncodingConverter - ..ref.PluginNewEncodingSniffer = PluginNewEncodingSniffer - ..ref.PluginClearSnifferContextInfo = PluginClearSnifferContextInfo - ..ref.PluginSniffTextEncoding = PluginSniffTextEncoding - ..ref.PluginDisposeEncodingSniffer = PluginDisposeEncodingSniffer - ..ref.PluginGetCountAvailableTextEncodings = - PluginGetCountAvailableTextEncodings - ..ref.PluginGetCountAvailableTextEncodingPairs = - PluginGetCountAvailableTextEncodingPairs - ..ref.PluginGetCountDestinationTextEncodings = - PluginGetCountDestinationTextEncodings - ..ref.PluginGetCountSubTextEncodings = PluginGetCountSubTextEncodings - ..ref.PluginGetCountAvailableSniffers = PluginGetCountAvailableSniffers - ..ref.PluginGetCountWebTextEncodings = PluginGetCountWebTextEncodings - ..ref.PluginGetCountMailTextEncodings = PluginGetCountMailTextEncodings - ..ref.PluginGetTextEncodingInternetName = PluginGetTextEncodingInternetName - ..ref.PluginGetTextEncodingFromInternetName = - PluginGetTextEncodingFromInternetName; -} - -typedef TECPluginDisposeEncodingConverterPtrFunction = - ffi.Int Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginDisposeEncodingConverterPtrFunction = - int Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginDisposeEncodingSnifferPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginDisposeEncodingSnifferPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef TECPluginFlushConversionPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginFlushConversionPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginGetCountAvailableSniffersPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableSniffersPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountAvailableTextEncodingPairsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableTextEncodingPairsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountAvailableTextEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableTextEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountDestinationTextEncodingsPtrFunction = - ffi.Int Function( - ffi.UnsignedInt inputEncoding, - ffi.Pointer destinationEncodings, - ffi.UnsignedLong maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ); -typedef DartTECPluginGetCountDestinationTextEncodingsPtrFunction = - int Function( - int inputEncoding, - ffi.Pointer destinationEncodings, - int maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ); -typedef TECPluginGetCountMailEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountMailEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountSubTextEncodingsPtrFunction = - ffi.Int Function( - ffi.UnsignedInt inputEncoding, - ffi.Pointer subEncodings, - ffi.UnsignedLong maxSubEncodings, - ffi.Pointer actualSubEncodings, - ); -typedef DartTECPluginGetCountSubTextEncodingsPtrFunction = - int Function( - int inputEncoding, - ffi.Pointer subEncodings, - int maxSubEncodings, - ffi.Pointer actualSubEncodings, - ); -typedef TECPluginGetCountWebEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountWebEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetPluginDispatchTablePtrFunction = - ffi.Pointer Function(); -typedef TECPluginGetTextEncodingFromInternetNamePtrFunction = - ffi.Int Function( - ffi.Pointer textEncoding, - ffi.Pointer encodingName, - ); -typedef DartTECPluginGetTextEncodingFromInternetNamePtrFunction = - int Function( - ffi.Pointer textEncoding, - ffi.Pointer encodingName, - ); -typedef TECPluginGetTextEncodingInternetNamePtrFunction = - ffi.Int Function( - ffi.UnsignedInt textEncoding, - ffi.Pointer encodingName, - ); -typedef DartTECPluginGetTextEncodingInternetNamePtrFunction = - int Function(int textEncoding, ffi.Pointer encodingName); -typedef TECPluginNewEncodingConverterPtrFunction = - ffi.Int Function( - ffi.Pointer> newEncodingConverter, - ffi.Pointer plugContext, - ffi.UnsignedInt inputEncoding, - ffi.UnsignedInt outputEncoding, + /// initWithMarkerFormat:options:startingItemNumber: + NSTextList initWithMarkerFormat$1( + objc.NSString markerFormat, { + required int options, + required int startingItemNumber, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markerFormat.ref; + objc.checkOsVersionInternal( + 'NSTextList.initWithMarkerFormat:options:startingItemNumber:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), ); -typedef DartTECPluginNewEncodingConverterPtrFunction = - int Function( - ffi.Pointer> newEncodingConverter, - ffi.Pointer plugContext, - int inputEncoding, - int outputEncoding, + final $ret = _objc_msgSend_1bh1vl9( + _$$ref.retainAndReturnPointer(), + _sel_initWithMarkerFormat_options_startingItemNumber_, + _$$ref$1.pointer, + options, + startingItemNumber, ); -typedef TECPluginNewEncodingSnifferPtrFunction = - ffi.Int Function( - ffi.Pointer> encodingSniffer, - ffi.Pointer snifContext, - ffi.UnsignedInt inputEncoding, + return NSTextList.fromPointer($ret, retain: false, release: true); + } + + /// isOrdered + bool get isOrdered { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.isOrdered', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), ); -typedef DartTECPluginNewEncodingSnifferPtrFunction = - int Function( - ffi.Pointer> encodingSniffer, - ffi.Pointer snifContext, - int inputEncoding, + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isOrdered); + } + + /// listOptions + int get listOptions { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.listOptions', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), ); -typedef TECPluginSniffTextEncodingPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, + return _objc_msgSend_exovb9(_$$ref.pointer, _sel_listOptions); + } + + /// markerForItemNumber: + objc.NSString markerForItemNumber(int itemNumber) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.markerForItemNumber:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), ); -typedef DartTECPluginSniffTextEncodingPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, + final $ret = _objc_msgSend_qugqlf( + _$$ref.pointer, + _sel_markerForItemNumber_, + itemNumber, ); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } -final class TECPluginStateRec extends ffi.Struct { - @ffi.UnsignedChar() - external int state1; - - @ffi.UnsignedChar() - external int state2; - - @ffi.UnsignedChar() - external int state3; - - @ffi.UnsignedChar() - external int state4; - - @ffi.UnsignedInt() - external int longState1; - - @ffi.UnsignedInt() - external int longState2; - - @ffi.UnsignedInt() - external int longState3; + /// markerFormat + objc.NSString get markerFormat { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.markerFormat', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_markerFormat); + return objc.NSString.fromPointer($ret, retain: true, release: true); + } - @ffi.UnsignedInt() - external int longState4; + /// setStartingItemNumber: + set startingItemNumber(int value) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.setStartingItemNumber:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setStartingItemNumber_, value); + } - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int state1, - required int state2, - required int state3, - required int state4, - required int longState1, - required int longState2, - required int longState3, - required int longState4, - }) => $allocator() - ..ref.state1 = state1 - ..ref.state2 = state2 - ..ref.state3 = state3 - ..ref.state4 = state4 - ..ref.longState1 = longState1 - ..ref.longState2 = longState2 - ..ref.longState3 = longState3 - ..ref.longState4 = longState4; + /// startingItemNumber + int get startingItemNumber { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSTextList.startingItemNumber', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_startingItemNumber); + } } -final class TECSnifferContextRec extends ffi.Struct { - external ffi.Pointer pluginRec; - - @ffi.UnsignedInt() - external int encoding; - - @ffi.UnsignedLong() - external int maxErrors; - - @ffi.UnsignedLong() - external int maxFeatures; - - external ffi.Pointer textInputBuffer; - - external ffi.Pointer textInputBufferEnd; - - @ffi.UnsignedLong() - external int numFeatures; - - @ffi.UnsignedLong() - external int numErrors; - - external ffi.Pointer contextRefCon; - - external ffi.Pointer> sniffProc; - - external ffi.Pointer> - clearContextInfoProc; - - external TECPluginStateRec pluginState; +sealed class NSTextListOptions { + static const NSTextListPrependEnclosingMarker = 1; } -@ffi.Packed(2) -final class TMTask extends ffi.Struct { - external ffi.Pointer qLink; - - @ffi.Short() - external int qType; - - external ffi.Pointer> tmAddr; - - @ffi.Long() - external int tmCount; - - @ffi.Long() - external int tmWakeUp; - - @ffi.Long() - external int tmReserved; +/// WARNING: NSUserInterfaceItemIdentification is a stub. To generate bindings for this class, include +/// NSUserInterfaceItemIdentification in your config's objc-protocols list. +/// +/// NSUserInterfaceItemIdentification +extension type NSUserInterfaceItemIdentification._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSUserInterfaceItemIdentification] that points to the same underlying object as [other]. + NSUserInterfaceItemIdentification.as(objc.ObjCObject other) : object$ = other; - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer qLink, - required int qType, - required ffi.Pointer> tmAddr, - required int tmCount, - required int tmWakeUp, - required int tmReserved, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.tmAddr = tmAddr - ..ref.tmCount = tmCount - ..ref.tmWakeUp = tmWakeUp - ..ref.tmReserved = tmReserved; + /// Constructs a [NSUserInterfaceItemIdentification] that wraps the given raw object pointer. + NSUserInterfaceItemIdentification.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); } -typedef TaskProcFunction = ffi.Int Function(ffi.Pointer parameter); -typedef DartTaskProcFunction = int Function(ffi.Pointer parameter); +/// WARNING: NSUserInterfaceValidations is a stub. To generate bindings for this class, include +/// NSUserInterfaceValidations in your config's objc-protocols list. +/// +/// NSUserInterfaceValidations +extension type NSUserInterfaceValidations._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol { + /// Constructs a [NSUserInterfaceValidations] that points to the same underlying object as [other]. + NSUserInterfaceValidations.as(objc.ObjCObject other) : object$ = other; -@ffi.Packed(2) -final class TextEncodingRun extends ffi.Struct { - @ffi.UnsignedLong() - external int offset; + /// Constructs a [NSUserInterfaceValidations] that wraps the given raw object pointer. + NSUserInterfaceValidations.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} - @ffi.UnsignedInt() - external int textEncoding; +/// WARNING: NSWindow is a stub. To generate bindings for this class, include +/// NSWindow in your config's objc-interfaces list. +/// +/// NSWindow +extension type NSWindow._(objc.ObjCObject object$) + implements + objc.ObjCObject, + NSResponder, + NSAnimatablePropertyContainer, + NSMenuItemValidation, + NSUserInterfaceValidations, + NSUserInterfaceItemIdentification, + NSAppearanceCustomization, + NSAccessibilityElement, + NSAccessibility { + /// Constructs a [NSWindow] that points to the same underlying object as [other]. + NSWindow.as(objc.ObjCObject other) : object$ = other { + objc.checkOsVersionInternal('NSWindow', iOS: (true, null)); + } - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int textEncoding, - }) => $allocator() - ..ref.offset = offset - ..ref.textEncoding = textEncoding; + /// Constructs a [NSWindow] that wraps the given raw object pointer. + NSWindow.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + objc.checkOsVersionInternal('NSWindow', iOS: (true, null)); + } } -typedef ThreadEntryProcPtrFunction = - ffi.Pointer Function(ffi.Pointer threadParam); -typedef ThreadSchedulerProcPtrFunction = - ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); -typedef DartThreadSchedulerProcPtrFunction = - int Function(ffi.Pointer schedulerInfo); -typedef ThreadSwitchProcPtrFunction = - ffi.Void Function( - ffi.UnsignedLong threadBeingSwitched, - ffi.Pointer switchProcParam, - ); -typedef DartThreadSwitchProcPtrFunction = - void Function( - int threadBeingSwitched, - ffi.Pointer switchProcParam, - ); -typedef ThreadTerminationProcPtrFunction = - ffi.Void Function( - ffi.UnsignedLong threadTerminated, - ffi.Pointer terminationProcParam, - ); -typedef DartThreadTerminationProcPtrFunction = - void Function( - int threadTerminated, - ffi.Pointer terminationProcParam, - ); -typedef TimerProcPtrFunction = ffi.Void Function(ffi.Pointer tmTaskPtr); -typedef DartTimerProcPtrFunction = void Function(ffi.Pointer tmTaskPtr); - /// UIPickerView extension type UIPickerView._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSCoding { @@ -5164,243 +1024,52 @@ extension UIPickerView$Methods on UIPickerView { objc.ObjCObject viewForRow(int row, {required int forComponent}) { final _$$ref = object$.ref; objc.checkOsVersionInternal( - 'UIPickerView.viewForRow:forComponent:', - iOS: (false, (2, 0, 0)), - ); - final $ret = _objc_msgSend_1nzyvs1( - _$$ref.pointer, - _sel_viewForRow_forComponent_, - row, - forComponent, - ); - return objc.ObjCObject($ret, retain: true, release: true); - } -} - -/// WARNING: UIPickerViewDataSource is a stub. To generate bindings for this class, include -/// UIPickerViewDataSource in your config's objc-protocols list. -/// -/// UIPickerViewDataSource -extension type UIPickerViewDataSource._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [UIPickerViewDataSource] that points to the same underlying object as [other]. - UIPickerViewDataSource.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [UIPickerViewDataSource] that wraps the given raw object pointer. - UIPickerViewDataSource.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -/// WARNING: UIPickerViewDelegate is a stub. To generate bindings for this class, include -/// UIPickerViewDelegate in your config's objc-protocols list. -/// -/// UIPickerViewDelegate -extension type UIPickerViewDelegate._(objc.ObjCProtocol object$) - implements objc.ObjCProtocol, objc.NSObjectProtocol { - /// Constructs a [UIPickerViewDelegate] that points to the same underlying object as [other]. - UIPickerViewDelegate.as(objc.ObjCObject other) : object$ = other; - - /// Constructs a [UIPickerViewDelegate] that wraps the given raw object pointer. - UIPickerViewDelegate.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); -} - -@ffi.Packed(2) -final class UnicodeMapping extends ffi.Struct { - @ffi.UnsignedInt() - external int unicodeEncoding; - - @ffi.UnsignedInt() - external int otherEncoding; - - @ffi.Int() - external int mappingVersion; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int unicodeEncoding, - required int otherEncoding, - required int mappingVersion, - }) => $allocator() - ..ref.unicodeEncoding = unicodeEncoding - ..ref.otherEncoding = otherEncoding - ..ref.mappingVersion = mappingVersion; -} - -typedef UnicodeToTextFallbackProcPtrFunction = - ffi.Int Function( - ffi.Pointer iSrcUniStr, - ffi.UnsignedLong iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - ffi.Pointer oDestStr, - ffi.UnsignedLong iDestStrLen, - ffi.Pointer oDestConvLen, - ffi.Pointer iInfoPtr, - ffi.Pointer iUnicodeMappingPtr, - ); -typedef DartUnicodeToTextFallbackProcPtrFunction = - int Function( - ffi.Pointer iSrcUniStr, - int iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - ffi.Pointer oDestStr, - int iDestStrLen, - ffi.Pointer oDestConvLen, - ffi.Pointer iInfoPtr, - ffi.Pointer iUnicodeMappingPtr, - ); - -final class UnnamedUnion extends ffi.Union { - external cssm_list Sublist; - - external cssm_data Word; -} - -final class VectorInformation extends ffi.Struct { - external ffi.Pointer __unusedVectorInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedVectorInformationField, - }) => - $allocator() - ..ref.__unusedVectorInformationField = $unusedVectorInformationField; -} - -typedef WSClientContextCopyDescriptionCallBackProcPtrFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef WSClientContextReleaseCallBackProcPtrFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartWSClientContextReleaseCallBackProcPtrFunction = - void Function(ffi.Pointer info); -typedef WSClientContextRetainCallBackProcPtrFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef WSMethodInvocationCallBackProcPtrFunction = - ffi.Void Function( - ffi.Pointer invocation, - ffi.Pointer info, - ffi.Pointer<__CFDictionary> outRef, - ); -typedef DartWSMethodInvocationCallBackProcPtrFunction = - void Function( - ffi.Pointer invocation, - ffi.Pointer info, - ffi.Pointer<__CFDictionary> outRef, - ); -typedef WSMethodInvocationDeserializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer invocation, - ffi.Pointer<__CFTree> msgRoot, - ffi.Pointer<__CFTree> deserializeRoot, - ffi.Pointer info, - ); -typedef WSMethodInvocationSerializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer invocation, - ffi.Pointer obj, - ffi.Pointer info, - ); -typedef WSProtocolHandlerDeserializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer protocol, - ffi.Pointer<__CFTree> msgRoot, - ffi.Pointer<__CFTree> deserializeRoot, - ffi.Pointer info, - ); -typedef WSProtocolHandlerSerializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer protocol, - ffi.Pointer obj, - ffi.Pointer info, - ); - -final class __AXObserver extends ffi.Opaque {} - -final class __AXUIElement extends ffi.Opaque {} - -final class __CFAllocator extends ffi.Opaque {} - -final class __CFArray extends ffi.Opaque {} - -final class __CFBundle extends ffi.Opaque {} - -final class __CFData extends ffi.Opaque {} - -final class __CFDictionary extends ffi.Opaque {} - -final class __CFError extends ffi.Opaque {} - -final class __CFFileDescriptor extends ffi.Opaque {} - -final class __CFHost extends ffi.Opaque {} - -final class __CFMachPort extends ffi.Opaque {} - -final class __CFMessagePort extends ffi.Opaque {} - -final class __CFNetService extends ffi.Opaque {} - -final class __CFNetServiceBrowser extends ffi.Opaque {} - -final class __CFNetServiceMonitor extends ffi.Opaque {} - -final class __CFNotificationCenter extends ffi.Opaque {} - -final class __CFPlugInInstance extends ffi.Opaque {} - -final class __CFReadStream extends ffi.Opaque {} - -final class __CFRunLoopObserver extends ffi.Opaque {} - -final class __CFRunLoopTimer extends ffi.Opaque {} - -final class __CFSocket extends ffi.Opaque {} - -final class __CFTree extends ffi.Opaque {} - -final class __CFURL extends ffi.Opaque {} - -final class __CFUUID extends ffi.Opaque {} - -final class __CFUserNotification extends ffi.Opaque {} - -final class __CFWriteStream extends ffi.Opaque {} - -final class __CFXMLNode extends ffi.Opaque {} - -final class __CFXMLParser extends ffi.Opaque {} - -final class __CGEvent extends ffi.Opaque {} - -final class __CGEventTapProxy extends ffi.Opaque {} - -final class __CSIdentity extends ffi.Opaque {} - -final class __CSIdentityQuery extends ffi.Opaque {} - -final class __CTFontDescriptor extends ffi.Opaque {} - -final class __FSEventStream extends ffi.Opaque {} - -final class __FSFileOperation extends ffi.Opaque {} - -final class __HIShape extends ffi.Opaque {} - -final class __MDItem extends ffi.Opaque {} + 'UIPickerView.viewForRow:forComponent:', + iOS: (false, (2, 0, 0)), + ); + final $ret = _objc_msgSend_1nzyvs1( + _$$ref.pointer, + _sel_viewForRow_forComponent_, + row, + forComponent, + ); + return objc.ObjCObject($ret, retain: true, release: true); + } +} -final class __MDQuery extends ffi.Opaque {} +/// WARNING: UIPickerViewDataSource is a stub. To generate bindings for this class, include +/// UIPickerViewDataSource in your config's objc-protocols list. +/// +/// UIPickerViewDataSource +extension type UIPickerViewDataSource._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [UIPickerViewDataSource] that points to the same underlying object as [other]. + UIPickerViewDataSource.as(objc.ObjCObject other) : object$ = other; -final class __SKIndex extends ffi.Opaque {} + /// Constructs a [UIPickerViewDataSource] that wraps the given raw object pointer. + UIPickerViewDataSource.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} -final class __SecKeychain extends ffi.Opaque {} +/// WARNING: UIPickerViewDelegate is a stub. To generate bindings for this class, include +/// UIPickerViewDelegate in your config's objc-protocols list. +/// +/// UIPickerViewDelegate +extension type UIPickerViewDelegate._(objc.ObjCProtocol object$) + implements objc.ObjCProtocol, objc.NSObjectProtocol { + /// Constructs a [UIPickerViewDelegate] that points to the same underlying object as [other]. + UIPickerViewDelegate.as(objc.ObjCObject other) : object$ = other; -final class __SecKeychainItem extends ffi.Opaque {} + /// Constructs a [UIPickerViewDelegate] that wraps the given raw object pointer. + UIPickerViewDelegate.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCProtocol(other, retain: retain, release: release); +} @ffi.Native>( symbol: 'OBJC_CLASS_\$_NSColorPicker', @@ -5432,17 +1101,6 @@ final _class_UIPickerView = objc.getClass( _class_UIPickerView_raw, ).cast(), ); - -final class _cups_array_s extends ffi.Opaque {} - -final class _http_s extends ffi.Opaque {} - -final class _ipp_attribute_s extends ffi.Opaque {} - -final class _ipp_s extends ffi.Opaque {} - -final class _launch_data extends ffi.Opaque {} - final _objc_msgSend_12hwf9n = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -5929,853 +1587,5 @@ late final _sel_viewForRow_forComponent_ = objc.registerName( "viewForRow:forComponent:", ); late final _sel_viewSizeChanged_ = objc.registerName("viewSizeChanged:"); -typedef bearer_token_callback_tFunction = - ffi.Pointer Function( - ffi.Pointer<_http_s> http, - ffi.Pointer resource, - ffi.Pointer user_data, - ); - -final class cssm_data extends ffi.Struct { - @ffi.Size() - external int Length; - - external ffi.Pointer Data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Length, - required ffi.Pointer Data, - }) => $allocator() - ..ref.Length = Length - ..ref.Data = Data; -} - -final class cssm_guid extends ffi.Struct { - @ffi.Uint32() - external int Data1; - - @ffi.Uint16() - external int Data2; - - @ffi.Uint16() - external int Data3; - - @ffi.Array.multi([8]) - external ffi.Array Data4; -} - -final class cssm_list extends ffi.Struct { - @ffi.Uint32() - external int ListType; - - external ffi.Pointer Head; - - external ffi.Pointer Tail; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ListType, - required ffi.Pointer Head, - required ffi.Pointer Tail, - }) => $allocator() - ..ref.ListType = ListType - ..ref.Head = Head - ..ref.Tail = Tail; -} - -@Deprecated('Deprecated') -final class cssm_list_element extends ffi.Struct { - external ffi.Pointer NextElement; - - @ffi.Int32() - external int WordID; - - @ffi.Uint32() - external int ElementType; - - external UnnamedUnion Element; -} - -final class cssm_memory_funcs extends ffi.Struct { - external ffi.Pointer> malloc_func; - - external ffi.Pointer> free_func; - - external ffi.Pointer> realloc_func; - - external ffi.Pointer> calloc_func; - - external ffi.Pointer AllocRef; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer> malloc_func, - required ffi.Pointer> free_func, - required ffi.Pointer> realloc_func, - required ffi.Pointer> calloc_func, - required ffi.Pointer AllocRef, - }) => $allocator() - ..ref.malloc_func = malloc_func - ..ref.free_func = free_func - ..ref.realloc_func = realloc_func - ..ref.calloc_func = calloc_func - ..ref.AllocRef = AllocRef; -} - -@Deprecated('Deprecated') -final class cssm_sample extends ffi.Struct { - external cssm_list TypedSample; - - external ffi.Pointer Verifier; -} - -@Deprecated('Deprecated') -final class cssm_samplegroup extends ffi.Struct { - @ffi.Uint32() - external int NumberOfSamples; - - external ffi.Pointer Samples; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfSamples, - required ffi.Pointer Samples, - }) => $allocator() - ..ref.NumberOfSamples = NumberOfSamples - ..ref.Samples = Samples; -} - -@Deprecated('Deprecated') -final class cssm_subservice_uid extends ffi.Struct { - external cssm_guid Guid; - - external cssm_version Version; - - @ffi.Uint32() - external int SubserviceId; - - @ffi.Uint32() - external int SubserviceType; -} - -final class cssm_version extends ffi.Struct { - @ffi.Uint32() - external int Major; - - @ffi.Uint32() - external int Minor; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Major, - required int Minor, - }) => $allocator() - ..ref.Major = Major - ..ref.Minor = Minor; -} - -typedef cups_acopy_func_tFunction = - ffi.Pointer Function( - ffi.Pointer element, - ffi.Pointer data, - ); - -enum cups_adv_e { - CUPS_ADVANCE_NONE(0), - CUPS_ADVANCE_FILE(1), - CUPS_ADVANCE_JOB(2), - CUPS_ADVANCE_SET(3), - CUPS_ADVANCE_PAGE(4); - - final int value; - const cups_adv_e(this.value); - - static cups_adv_e fromValue(int value) => switch (value) { - 0 => CUPS_ADVANCE_NONE, - 1 => CUPS_ADVANCE_FILE, - 2 => CUPS_ADVANCE_JOB, - 3 => CUPS_ADVANCE_SET, - 4 => CUPS_ADVANCE_PAGE, - _ => throw ArgumentError('Unknown value for cups_adv_e: $value'), - }; -} - -typedef cups_afree_func_tFunction = - ffi.Void Function( - ffi.Pointer element, - ffi.Pointer data, - ); -typedef Dartcups_afree_func_tFunction = - void Function(ffi.Pointer element, ffi.Pointer data); -typedef cups_ahash_func_tFunction = - ffi.Int Function(ffi.Pointer element, ffi.Pointer data); -typedef Dartcups_ahash_func_tFunction = - int Function(ffi.Pointer element, ffi.Pointer data); -typedef cups_array_func_tFunction = - ffi.Int Function( - ffi.Pointer first, - ffi.Pointer second, - ffi.Pointer data, - ); -typedef Dartcups_array_func_tFunction = - int Function( - ffi.Pointer first, - ffi.Pointer second, - ffi.Pointer data, - ); - -enum cups_bool_e { - CUPS_FALSE(0), - CUPS_TRUE(1); - - final int value; - const cups_bool_e(this.value); - - static cups_bool_e fromValue(int value) => switch (value) { - 0 => CUPS_FALSE, - 1 => CUPS_TRUE, - _ => throw ArgumentError('Unknown value for cups_bool_e: $value'), - }; -} - -typedef cups_client_cert_cb_tFunction = - ffi.Int Function( - ffi.Pointer<_http_s> http, - ffi.Pointer tls, - ffi.Pointer<_cups_array_s> distinguished_names, - ffi.Pointer user_data, - ); -typedef Dartcups_client_cert_cb_tFunction = - int Function( - ffi.Pointer<_http_s> http, - ffi.Pointer tls, - ffi.Pointer<_cups_array_s> distinguished_names, - ffi.Pointer user_data, - ); - -enum cups_cspace_e { - CUPS_CSPACE_W(0), - CUPS_CSPACE_RGB(1), - CUPS_CSPACE_RGBA(2), - CUPS_CSPACE_K(3), - CUPS_CSPACE_CMY(4), - CUPS_CSPACE_YMC(5), - CUPS_CSPACE_CMYK(6), - CUPS_CSPACE_YMCK(7), - CUPS_CSPACE_KCMY(8), - CUPS_CSPACE_KCMYcm(9), - CUPS_CSPACE_GMCK(10), - CUPS_CSPACE_GMCS(11), - CUPS_CSPACE_WHITE(12), - CUPS_CSPACE_GOLD(13), - CUPS_CSPACE_SILVER(14), - CUPS_CSPACE_CIEXYZ(15), - CUPS_CSPACE_CIELab(16), - CUPS_CSPACE_RGBW(17), - CUPS_CSPACE_SW(18), - CUPS_CSPACE_SRGB(19), - CUPS_CSPACE_ADOBERGB(20), - CUPS_CSPACE_P3E(21), - CUPS_CSPACE_GRAYE(22), - CUPS_CSPACE_ICC1(32), - CUPS_CSPACE_ICC2(33), - CUPS_CSPACE_ICC3(34), - CUPS_CSPACE_ICC4(35), - CUPS_CSPACE_ICC5(36), - CUPS_CSPACE_ICC6(37), - CUPS_CSPACE_ICC7(38), - CUPS_CSPACE_ICC8(39), - CUPS_CSPACE_ICC9(40), - CUPS_CSPACE_ICCA(41), - CUPS_CSPACE_ICCB(42), - CUPS_CSPACE_ICCC(43), - CUPS_CSPACE_ICCD(44), - CUPS_CSPACE_ICCE(45), - CUPS_CSPACE_ICCF(46), - CUPS_CSPACE_DEVICE1(48), - CUPS_CSPACE_DEVICE2(49), - CUPS_CSPACE_DEVICE3(50), - CUPS_CSPACE_DEVICE4(51), - CUPS_CSPACE_DEVICE5(52), - CUPS_CSPACE_DEVICE6(53), - CUPS_CSPACE_DEVICE7(54), - CUPS_CSPACE_DEVICE8(55), - CUPS_CSPACE_DEVICE9(56), - CUPS_CSPACE_DEVICEA(57), - CUPS_CSPACE_DEVICEB(58), - CUPS_CSPACE_DEVICEC(59), - CUPS_CSPACE_DEVICED(60), - CUPS_CSPACE_DEVICEE(61), - CUPS_CSPACE_DEVICEF(62); - - final int value; - const cups_cspace_e(this.value); - - static cups_cspace_e fromValue(int value) => switch (value) { - 0 => CUPS_CSPACE_W, - 1 => CUPS_CSPACE_RGB, - 2 => CUPS_CSPACE_RGBA, - 3 => CUPS_CSPACE_K, - 4 => CUPS_CSPACE_CMY, - 5 => CUPS_CSPACE_YMC, - 6 => CUPS_CSPACE_CMYK, - 7 => CUPS_CSPACE_YMCK, - 8 => CUPS_CSPACE_KCMY, - 9 => CUPS_CSPACE_KCMYcm, - 10 => CUPS_CSPACE_GMCK, - 11 => CUPS_CSPACE_GMCS, - 12 => CUPS_CSPACE_WHITE, - 13 => CUPS_CSPACE_GOLD, - 14 => CUPS_CSPACE_SILVER, - 15 => CUPS_CSPACE_CIEXYZ, - 16 => CUPS_CSPACE_CIELab, - 17 => CUPS_CSPACE_RGBW, - 18 => CUPS_CSPACE_SW, - 19 => CUPS_CSPACE_SRGB, - 20 => CUPS_CSPACE_ADOBERGB, - 21 => CUPS_CSPACE_P3E, - 22 => CUPS_CSPACE_GRAYE, - 32 => CUPS_CSPACE_ICC1, - 33 => CUPS_CSPACE_ICC2, - 34 => CUPS_CSPACE_ICC3, - 35 => CUPS_CSPACE_ICC4, - 36 => CUPS_CSPACE_ICC5, - 37 => CUPS_CSPACE_ICC6, - 38 => CUPS_CSPACE_ICC7, - 39 => CUPS_CSPACE_ICC8, - 40 => CUPS_CSPACE_ICC9, - 41 => CUPS_CSPACE_ICCA, - 42 => CUPS_CSPACE_ICCB, - 43 => CUPS_CSPACE_ICCC, - 44 => CUPS_CSPACE_ICCD, - 45 => CUPS_CSPACE_ICCE, - 46 => CUPS_CSPACE_ICCF, - 48 => CUPS_CSPACE_DEVICE1, - 49 => CUPS_CSPACE_DEVICE2, - 50 => CUPS_CSPACE_DEVICE3, - 51 => CUPS_CSPACE_DEVICE4, - 52 => CUPS_CSPACE_DEVICE5, - 53 => CUPS_CSPACE_DEVICE6, - 54 => CUPS_CSPACE_DEVICE7, - 55 => CUPS_CSPACE_DEVICE8, - 56 => CUPS_CSPACE_DEVICE9, - 57 => CUPS_CSPACE_DEVICEA, - 58 => CUPS_CSPACE_DEVICEB, - 59 => CUPS_CSPACE_DEVICEC, - 60 => CUPS_CSPACE_DEVICED, - 61 => CUPS_CSPACE_DEVICEE, - 62 => CUPS_CSPACE_DEVICEF, - _ => throw ArgumentError('Unknown value for cups_cspace_e: $value'), - }; -} - -enum cups_cut_e { - CUPS_CUT_NONE(0), - CUPS_CUT_FILE(1), - CUPS_CUT_JOB(2), - CUPS_CUT_SET(3), - CUPS_CUT_PAGE(4); - - final int value; - const cups_cut_e(this.value); - - static cups_cut_e fromValue(int value) => switch (value) { - 0 => CUPS_CUT_NONE, - 1 => CUPS_CUT_FILE, - 2 => CUPS_CUT_JOB, - 3 => CUPS_CUT_SET, - 4 => CUPS_CUT_PAGE, - _ => throw ArgumentError('Unknown value for cups_cut_e: $value'), - }; -} - -typedef cups_dest_cb_tFunction = - ffi.Int Function( - ffi.Pointer user_data, - ffi.UnsignedInt flags, - ffi.Pointer dest, - ); -typedef Dartcups_dest_cb_tFunction = - int Function( - ffi.Pointer user_data, - int flags, - ffi.Pointer dest, - ); - -final class cups_dest_s extends ffi.Struct { - external ffi.Pointer name; - - external ffi.Pointer instance; - - @ffi.Int() - external int is_default; - - @ffi.Int() - external int num_options; - - external ffi.Pointer options; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer name, - required ffi.Pointer instance, - required int is_default, - required int num_options, - required ffi.Pointer options, - }) => $allocator() - ..ref.name = name - ..ref.instance = instance - ..ref.is_default = is_default - ..ref.num_options = num_options - ..ref.options = options; -} - -enum cups_edge_e { - CUPS_EDGE_TOP(0), - CUPS_EDGE_RIGHT(1), - CUPS_EDGE_BOTTOM(2), - CUPS_EDGE_LEFT(3); - - final int value; - const cups_edge_e(this.value); - - static cups_edge_e fromValue(int value) => switch (value) { - 0 => CUPS_EDGE_TOP, - 1 => CUPS_EDGE_RIGHT, - 2 => CUPS_EDGE_BOTTOM, - 3 => CUPS_EDGE_LEFT, - _ => throw ArgumentError('Unknown value for cups_edge_e: $value'), - }; -} - -typedef cups_interpret_cb_tFunction = - ffi.Int Function( - ffi.Pointer header, - ffi.Int preferred_bits, - ); -typedef Dartcups_interpret_cb_tFunction = - int Function(ffi.Pointer header, int preferred_bits); - -enum cups_jog_e { - CUPS_JOG_NONE(0), - CUPS_JOG_FILE(1), - CUPS_JOG_JOB(2), - CUPS_JOG_SET(3); - - final int value; - const cups_jog_e(this.value); - - static cups_jog_e fromValue(int value) => switch (value) { - 0 => CUPS_JOG_NONE, - 1 => CUPS_JOG_FILE, - 2 => CUPS_JOG_JOB, - 3 => CUPS_JOG_SET, - _ => throw ArgumentError('Unknown value for cups_jog_e: $value'), - }; -} - -final class cups_option_s extends ffi.Struct { - external ffi.Pointer name; - - external ffi.Pointer value; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer name, - required ffi.Pointer value, - }) => $allocator() - ..ref.name = name - ..ref.value = value; -} - -enum cups_order_e { - CUPS_ORDER_CHUNKED(0), - CUPS_ORDER_BANDED(1), - CUPS_ORDER_PLANAR(2); - - final int value; - const cups_order_e(this.value); - - static cups_order_e fromValue(int value) => switch (value) { - 0 => CUPS_ORDER_CHUNKED, - 1 => CUPS_ORDER_BANDED, - 2 => CUPS_ORDER_PLANAR, - _ => throw ArgumentError('Unknown value for cups_order_e: $value'), - }; -} - -enum cups_orient_e { - CUPS_ORIENT_0(0), - CUPS_ORIENT_90(1), - CUPS_ORIENT_180(2), - CUPS_ORIENT_270(3); - - final int value; - const cups_orient_e(this.value); - - static cups_orient_e fromValue(int value) => switch (value) { - 0 => CUPS_ORIENT_0, - 1 => CUPS_ORIENT_90, - 2 => CUPS_ORIENT_180, - 3 => CUPS_ORIENT_270, - _ => throw ArgumentError('Unknown value for cups_orient_e: $value'), - }; -} - -final class cups_page_header2_s extends ffi.Struct { - @ffi.Array.multi([64]) - external ffi.Array MediaClass; - - @ffi.Array.multi([64]) - external ffi.Array MediaColor; - - @ffi.Array.multi([64]) - external ffi.Array MediaType; - - @ffi.Array.multi([64]) - external ffi.Array OutputType; - - @ffi.UnsignedInt() - external int AdvanceDistance; - - @ffi.UnsignedInt() - external int AdvanceMediaAsInt; - - cups_adv_e get AdvanceMedia => cups_adv_e.fromValue(AdvanceMediaAsInt); - set AdvanceMedia(cups_adv_e value) => AdvanceMediaAsInt = value.value; - - @ffi.UnsignedInt() - external int CollateAsInt; - - cups_bool_e get Collate => cups_bool_e.fromValue(CollateAsInt); - set Collate(cups_bool_e value) => CollateAsInt = value.value; - - @ffi.UnsignedInt() - external int CutMediaAsInt; - - cups_cut_e get CutMedia => cups_cut_e.fromValue(CutMediaAsInt); - set CutMedia(cups_cut_e value) => CutMediaAsInt = value.value; - - @ffi.UnsignedInt() - external int DuplexAsInt; - - cups_bool_e get Duplex => cups_bool_e.fromValue(DuplexAsInt); - set Duplex(cups_bool_e value) => DuplexAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array HWResolution; - - @ffi.Array.multi([4]) - external ffi.Array ImagingBoundingBox; - - @ffi.UnsignedInt() - external int InsertSheetAsInt; - - cups_bool_e get InsertSheet => cups_bool_e.fromValue(InsertSheetAsInt); - set InsertSheet(cups_bool_e value) => InsertSheetAsInt = value.value; - - @ffi.UnsignedInt() - external int JogAsInt; - - cups_jog_e get Jog => cups_jog_e.fromValue(JogAsInt); - set Jog(cups_jog_e value) => JogAsInt = value.value; - - @ffi.UnsignedInt() - external int LeadingEdgeAsInt; - - cups_edge_e get LeadingEdge => cups_edge_e.fromValue(LeadingEdgeAsInt); - set LeadingEdge(cups_edge_e value) => LeadingEdgeAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array Margins; - - @ffi.UnsignedInt() - external int ManualFeedAsInt; - - cups_bool_e get ManualFeed => cups_bool_e.fromValue(ManualFeedAsInt); - set ManualFeed(cups_bool_e value) => ManualFeedAsInt = value.value; - - @ffi.UnsignedInt() - external int MediaPosition; - - @ffi.UnsignedInt() - external int MediaWeight; - - @ffi.UnsignedInt() - external int MirrorPrintAsInt; - - cups_bool_e get MirrorPrint => cups_bool_e.fromValue(MirrorPrintAsInt); - set MirrorPrint(cups_bool_e value) => MirrorPrintAsInt = value.value; - - @ffi.UnsignedInt() - external int NegativePrintAsInt; - - cups_bool_e get NegativePrint => cups_bool_e.fromValue(NegativePrintAsInt); - set NegativePrint(cups_bool_e value) => NegativePrintAsInt = value.value; - - @ffi.UnsignedInt() - external int NumCopies; - - @ffi.UnsignedInt() - external int OrientationAsInt; - - cups_orient_e get Orientation => cups_orient_e.fromValue(OrientationAsInt); - set Orientation(cups_orient_e value) => OrientationAsInt = value.value; - - @ffi.UnsignedInt() - external int OutputFaceUpAsInt; - - cups_bool_e get OutputFaceUp => cups_bool_e.fromValue(OutputFaceUpAsInt); - set OutputFaceUp(cups_bool_e value) => OutputFaceUpAsInt = value.value; - - @ffi.Array.multi([2]) - external ffi.Array PageSize; - - @ffi.UnsignedInt() - external int SeparationsAsInt; - - cups_bool_e get Separations => cups_bool_e.fromValue(SeparationsAsInt); - set Separations(cups_bool_e value) => SeparationsAsInt = value.value; - - @ffi.UnsignedInt() - external int TraySwitchAsInt; - - cups_bool_e get TraySwitch => cups_bool_e.fromValue(TraySwitchAsInt); - set TraySwitch(cups_bool_e value) => TraySwitchAsInt = value.value; - - @ffi.UnsignedInt() - external int TumbleAsInt; - - cups_bool_e get Tumble => cups_bool_e.fromValue(TumbleAsInt); - set Tumble(cups_bool_e value) => TumbleAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsWidth; - - @ffi.UnsignedInt() - external int cupsHeight; - - @ffi.UnsignedInt() - external int cupsMediaType; - - @ffi.UnsignedInt() - external int cupsBitsPerColor; - - @ffi.UnsignedInt() - external int cupsBitsPerPixel; - - @ffi.UnsignedInt() - external int cupsBytesPerLine; - - @ffi.UnsignedInt() - external int cupsColorOrderAsInt; - - cups_order_e get cupsColorOrder => - cups_order_e.fromValue(cupsColorOrderAsInt); - set cupsColorOrder(cups_order_e value) => cupsColorOrderAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsColorSpaceAsInt; - - cups_cspace_e get cupsColorSpace => - cups_cspace_e.fromValue(cupsColorSpaceAsInt); - set cupsColorSpace(cups_cspace_e value) => cupsColorSpaceAsInt = value.value; - - @ffi.UnsignedInt() - external int cupsCompression; - - @ffi.UnsignedInt() - external int cupsRowCount; - - @ffi.UnsignedInt() - external int cupsRowFeed; - - @ffi.UnsignedInt() - external int cupsRowStep; - - @ffi.UnsignedInt() - external int cupsNumColors; - - @ffi.Float() - external double cupsBorderlessScalingFactor; - - @ffi.Array.multi([2]) - external ffi.Array cupsPageSize; - - @ffi.Array.multi([4]) - external ffi.Array cupsImagingBBox; - - @ffi.Array.multi([16]) - external ffi.Array cupsInteger; - - @ffi.Array.multi([16]) - external ffi.Array cupsReal; - - @ffi.Array.multi([16, 64]) - external ffi.Array> cupsString; - - @ffi.Array.multi([64]) - external ffi.Array cupsMarkerType; - - @ffi.Array.multi([64]) - external ffi.Array cupsRenderingIntent; - - @ffi.Array.multi([64]) - external ffi.Array cupsPageSizeName; -} - -typedef cups_password_cb2_tFunction = - ffi.Pointer Function( - ffi.Pointer prompt, - ffi.Pointer<_http_s> http, - ffi.Pointer method, - ffi.Pointer resource, - ffi.Pointer user_data, - ); -typedef cups_password_cb_tFunction = - ffi.Pointer Function(ffi.Pointer prompt); -typedef cups_raster_iocb_tFunction = - ffi.Long Function( - ffi.Pointer ctx, - ffi.Pointer buffer, - ffi.Size length, - ); -typedef Dartcups_raster_iocb_tFunction = - int Function( - ffi.Pointer ctx, - ffi.Pointer buffer, - int length, - ); -typedef cups_server_cert_cb_tFunction = - ffi.Int Function( - ffi.Pointer<_http_s> http, - ffi.Pointer tls, - ffi.Pointer<_cups_array_s> certs, - ffi.Pointer user_data, - ); -typedef Dartcups_server_cert_cb_tFunction = - int Function( - ffi.Pointer<_http_s> http, - ffi.Pointer tls, - ffi.Pointer<_cups_array_s> certs, - ffi.Pointer user_data, - ); -typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); -typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); -typedef http_timeout_cb_tFunction = - ffi.Int Function( - ffi.Pointer<_http_s> http, - ffi.Pointer user_data, - ); -typedef Darthttp_timeout_cb_tFunction = - int Function(ffi.Pointer<_http_s> http, ffi.Pointer user_data); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef ipp_copycb_tFunction = - ffi.Int Function( - ffi.Pointer context, - ffi.Pointer<_ipp_s> dst, - ffi.Pointer<_ipp_attribute_s> attr, - ); -typedef Dartipp_copycb_tFunction = - int Function( - ffi.Pointer context, - ffi.Pointer<_ipp_s> dst, - ffi.Pointer<_ipp_attribute_s> attr, - ); -typedef ipp_iocb_tFunction = - ffi.Long Function( - ffi.Pointer context, - ffi.Pointer buffer, - ffi.Size bytes, - ); -typedef Dartipp_iocb_tFunction = - int Function( - ffi.Pointer context, - ffi.Pointer buffer, - int bytes, - ); -typedef launch_data_dict_iterator_tFunction = - ffi.Void Function( - ffi.Pointer<_launch_data> lval, - ffi.Pointer key, - ffi.Pointer ctx, - ); -typedef Dartlaunch_data_dict_iterator_tFunction = - void Function( - ffi.Pointer<_launch_data> lval, - ffi.Pointer key, - ffi.Pointer ctx, - ); -typedef mach_error_fn_tFunction = ffi.Int Function(); -typedef Dartmach_error_fn_tFunction = int Function(); - -final class mach_msg_header_t extends ffi.Struct { - @ffi.UnsignedInt() - external int msgh_bits; - - @ffi.UnsignedInt() - external int msgh_size; - - @ffi.UnsignedInt() - external int msgh_remote_port; - - @ffi.UnsignedInt() - external int msgh_local_port; - - @ffi.UnsignedInt() - external int msgh_voucher_port; - - @ffi.Int() - external int msgh_id; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_bits, - required int msgh_size, - required int msgh_remote_port, - required int msgh_local_port, - required int msgh_voucher_port, - required int msgh_id, - }) => $allocator() - ..ref.msgh_bits = msgh_bits - ..ref.msgh_size = msgh_size - ..ref.msgh_remote_port = msgh_remote_port - ..ref.msgh_local_port = msgh_local_port - ..ref.msgh_voucher_port = msgh_voucher_port - ..ref.msgh_id = msgh_id; -} - -typedef mig_impl_routine_tFunction = ffi.Int Function(); -typedef Dartmig_impl_routine_tFunction = int Function(); -typedef mig_server_routine_tFunction = - ffi.Pointer> Function( - ffi.Pointer InHeadP, - ); -typedef mig_stub_routine_tFunction = - ffi.Void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ); -typedef Dartmig_stub_routine_tFunction = - void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ); -typedef os_function_tFunction = ffi.Void Function(ffi.Pointer); -typedef Dartos_function_tFunction = void Function(ffi.Pointer); -typedef os_workgroup_working_arena_destructor_tFunction = - ffi.Void Function(ffi.Pointer); -typedef Dartos_workgroup_working_arena_destructor_tFunction = - void Function(ffi.Pointer); -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); -typedef xpc_connection_handler_tFunction = - ffi.Void Function(ffi.Pointer connection); -typedef Dartxpc_connection_handler_tFunction = - void Function(objc.NSObject connection); -typedef xpc_finalizer_tFunction = - ffi.Void Function(ffi.Pointer value); -typedef Dartxpc_finalizer_tFunction = - void Function(ffi.Pointer value); diff --git a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart index ac54ae219b..41ff128938 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart @@ -116,84 +116,6 @@ StaticFuncTestObj staticFuncReturnsRetainedArg(StaticFuncTestObj a) { ); } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -281,11 +203,6 @@ extension ObjCBlock_Int32_Int32$CallExtension } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - /// StaticFuncTestObj extension type StaticFuncTestObj._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -483,5 +400,3 @@ late final _sel_new = objc.registerName("new"); late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart index 56b3649aeb..a4ea0b3383 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart @@ -197,84 +197,6 @@ class StaticFuncTestObjCLibrary { >(); } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); - /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -362,11 +284,6 @@ extension ObjCBlock_Int32_Int32$CallExtension } } -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - /// StaticFuncTestObj extension type StaticFuncTestObj._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -564,5 +481,3 @@ late final _sel_new = objc.registerName("new"); late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart index 958a342437..94a21fdc76 100644 --- a/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/string_test_bindings.dart @@ -10,87 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); /// StringUtil extension type StringUtil._(objc.ObjCObject object$) @@ -263,5 +182,3 @@ late final _sel_new = objc.registerName("new"); late final _sel_strConcat_with_ = objc.registerName("strConcat:with:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); diff --git a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart index ba9c3f2806..eb4465ca4e 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_class_test_bindings.dart @@ -18,1461 +18,6 @@ external int _pyqkbm_protocolTrampoline_fai2e9( ffi.Pointer arg0, ); -typedef AECoerceDescProcPtrFunction = - ffi.Short Function( - ffi.Pointer fromDesc, - ffi.UnsignedInt toType, - ffi.Pointer handlerRefcon, - ffi.Pointer toDesc, - ); -typedef DartAECoerceDescProcPtrFunction = - int Function( - ffi.Pointer fromDesc, - int toType, - ffi.Pointer handlerRefcon, - ffi.Pointer toDesc, - ); -typedef AECoercePtrProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt typeCode, - ffi.Pointer dataPtr, - ffi.Long dataSize, - ffi.UnsignedInt toType, - ffi.Pointer handlerRefcon, - ffi.Pointer result, - ); -typedef DartAECoercePtrProcPtrFunction = - int Function( - int typeCode, - ffi.Pointer dataPtr, - int dataSize, - int toType, - ffi.Pointer handlerRefcon, - ffi.Pointer result, - ); -typedef AEDisposeExternalProcPtrFunction = - ffi.Void Function( - ffi.Pointer dataPtr, - ffi.Long dataLength, - ffi.Pointer refcon, - ); -typedef DartAEDisposeExternalProcPtrFunction = - void Function( - ffi.Pointer dataPtr, - int dataLength, - ffi.Pointer refcon, - ); -typedef AEEventHandlerProcPtrFunction = - ffi.Short Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - ffi.Pointer handlerRefcon, - ); -typedef DartAEEventHandlerProcPtrFunction = - int Function( - ffi.Pointer theAppleEvent, - ffi.Pointer reply, - ffi.Pointer handlerRefcon, - ); - -final class AERemoteProcessResolver extends ffi.Opaque {} - -typedef AERemoteProcessResolverCallbackFunction = - ffi.Void Function( - ffi.Pointer ref, - ffi.Pointer info, - ); -typedef DartAERemoteProcessResolverCallbackFunction = - void Function( - ffi.Pointer ref, - ffi.Pointer info, - ); -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFArrayApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFArrayApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFArrayCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFArrayEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFArrayEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFArrayReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFArrayReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFArrayRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBagApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFBagApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFBagCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFBagEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFBagEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFBagHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFBagHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFBagReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFBagReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBagRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFBinaryHeapApplierFunctionFunction = - ffi.Void Function(ffi.Pointer val, ffi.Pointer context); -typedef DartCFBinaryHeapApplierFunctionFunction = - void Function(ffi.Pointer val, ffi.Pointer context); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef CFDictionaryApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFDictionaryApplierFunctionFunction = - void Function( - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer context, - ); -typedef CFDictionaryCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFDictionaryEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFDictionaryEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFDictionaryHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFDictionaryHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFDictionaryReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFDictionaryReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFDictionaryRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFFileDescriptorCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFFileDescriptor> f, - ffi.UnsignedLong callBackTypes, - ffi.Pointer info, - ); -typedef DartCFFileDescriptorCallBackFunction = - void Function( - ffi.Pointer<__CFFileDescriptor> f, - int callBackTypes, - ffi.Pointer info, - ); -typedef CFHostClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFHost> theHost, - ffi.UnsignedInt typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFHostClientCallBackFunction = - void Function( - ffi.Pointer<__CFHost> theHost, - CFHostInfoType typeInfo, - ffi.Pointer error, - ffi.Pointer info, - ); - -enum CFHostInfoType { - kCFHostAddresses(0), - kCFHostNames(1), - kCFHostReachability(2); - - final int value; - const CFHostInfoType(this.value); - - static CFHostInfoType fromValue(int value) => switch (value) { - 0 => kCFHostAddresses, - 1 => kCFHostNames, - 2 => kCFHostReachability, - _ => throw ArgumentError('Unknown value for CFHostInfoType: $value'), - }; -} - -typedef CFMachPortCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer msg, - ffi.Long size, - ffi.Pointer info, - ); -typedef DartCFMachPortCallBackFunction = - void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer msg, - int size, - ffi.Pointer info, - ); -typedef CFMachPortInvalidationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMachPort> port, - ffi.Pointer info, - ); -typedef DartCFMachPortInvalidationCallBackFunction = - void Function(ffi.Pointer<__CFMachPort> port, ffi.Pointer info); -typedef CFMessagePortCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFMessagePort> local, - ffi.Int msgid, - ffi.Pointer<__CFData> data, - ffi.Pointer info, - ); -typedef DartCFMessagePortCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFMessagePort> local, - int msgid, - ffi.Pointer<__CFData> data, - ffi.Pointer info, - ); -typedef CFMessagePortInvalidationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFMessagePort> ms, - ffi.Pointer info, - ); -typedef DartCFMessagePortInvalidationCallBackFunction = - void Function(ffi.Pointer<__CFMessagePort> ms, ffi.Pointer info); -typedef CFNetServiceBrowserClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetServiceBrowser> browser, - ffi.UnsignedLong flags, - ffi.Pointer domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceBrowserClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetServiceBrowser> browser, - int flags, - ffi.Pointer domainOrService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef CFNetServiceClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetService> theService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetService> theService, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef CFNetServiceMonitorClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFNetServiceMonitor> theMonitor, - ffi.Pointer<__CFNetService> theService, - ffi.UnsignedInt typeInfo, - ffi.Pointer<__CFData> rdata, - ffi.Pointer error, - ffi.Pointer info, - ); -typedef DartCFNetServiceMonitorClientCallBackFunction = - void Function( - ffi.Pointer<__CFNetServiceMonitor> theMonitor, - ffi.Pointer<__CFNetService> theService, - CFNetServiceMonitorType typeInfo, - ffi.Pointer<__CFData> rdata, - ffi.Pointer error, - ffi.Pointer info, - ); - -enum CFNetServiceMonitorType { - kCFNetServiceMonitorTXT(1); - - final int value; - const CFNetServiceMonitorType(this.value); - - static CFNetServiceMonitorType fromValue(int value) => switch (value) { - 1 => kCFNetServiceMonitorTXT, - _ => throw ArgumentError( - 'Unknown value for CFNetServiceMonitorType: $value', - ), - }; -} - -typedef CFNotificationCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CFNotificationCenter> center, - ffi.Pointer observer, - ffi.Pointer name, - ffi.Pointer object, - ffi.Pointer<__CFDictionary> userInfo, - ); -typedef DartCFNotificationCallbackFunction = - void Function( - ffi.Pointer<__CFNotificationCenter> center, - ffi.Pointer observer, - ffi.Pointer name, - ffi.Pointer object, - ffi.Pointer<__CFDictionary> userInfo, - ); -typedef CFPlugInDynamicRegisterFunctionFunction = - ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); -typedef DartCFPlugInDynamicRegisterFunctionFunction = - void Function(ffi.Pointer<__CFBundle> plugIn); -typedef CFPlugInFactoryFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer<__CFUUID> typeUUID, - ); -typedef CFPlugInInstanceDeallocateInstanceDataFunctionFunction = - ffi.Void Function(ffi.Pointer instanceData); -typedef DartCFPlugInInstanceDeallocateInstanceDataFunctionFunction = - void Function(ffi.Pointer instanceData); -typedef CFPlugInInstanceGetInterfaceFunctionFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__CFPlugInInstance> instance, - ffi.Pointer interfaceName, - ffi.Pointer> ftbl, - ); -typedef DartCFPlugInInstanceGetInterfaceFunctionFunction = - int Function( - ffi.Pointer<__CFPlugInInstance> instance, - ffi.Pointer interfaceName, - ffi.Pointer> ftbl, - ); -typedef CFPlugInUnloadFunctionFunction = - ffi.Void Function(ffi.Pointer<__CFBundle> plugIn); -typedef DartCFPlugInUnloadFunctionFunction = - void Function(ffi.Pointer<__CFBundle> plugIn); -typedef CFProxyAutoConfigurationResultCallbackFunction = - ffi.Void Function( - ffi.Pointer client, - ffi.Pointer<__CFArray> proxyList, - ffi.Pointer<__CFError> error, - ); -typedef DartCFProxyAutoConfigurationResultCallbackFunction = - void Function( - ffi.Pointer client, - ffi.Pointer<__CFArray> proxyList, - ffi.Pointer<__CFError> error, - ); -typedef CFReadStreamClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFReadStream> stream, - ffi.UnsignedLong type, - ffi.Pointer clientCallBackInfo, - ); -typedef DartCFReadStreamClientCallBackFunction = - void Function( - ffi.Pointer<__CFReadStream> stream, - int type, - ffi.Pointer clientCallBackInfo, - ); - -sealed class CFRunLoopActivity { - static const kCFRunLoopEntry = 1; - static const kCFRunLoopBeforeTimers = 2; - static const kCFRunLoopBeforeSources = 4; - static const kCFRunLoopBeforeWaiting = 32; - static const kCFRunLoopAfterWaiting = 64; - static const kCFRunLoopExit = 128; - static const kCFRunLoopAllActivities = 268435455; -} - -typedef CFRunLoopObserverCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFRunLoopObserver> observer, - ffi.UnsignedLong activity, - ffi.Pointer info, - ); -typedef DartCFRunLoopObserverCallBackFunction = - void Function( - ffi.Pointer<__CFRunLoopObserver> observer, - int activity, - ffi.Pointer info, - ); -typedef CFRunLoopTimerCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFRunLoopTimer> timer, - ffi.Pointer info, - ); -typedef DartCFRunLoopTimerCallBackFunction = - void Function( - ffi.Pointer<__CFRunLoopTimer> timer, - ffi.Pointer info, - ); -typedef CFSetApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFSetApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFSetCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer value); -typedef CFSetEqualCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer value1, - ffi.Pointer value2, - ); -typedef DartCFSetEqualCallBackFunction = - int Function(ffi.Pointer value1, ffi.Pointer value2); -typedef CFSetHashCallBackFunction = - ffi.UnsignedLong Function(ffi.Pointer value); -typedef DartCFSetHashCallBackFunction = - int Function(ffi.Pointer value); -typedef CFSetReleaseCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef DartCFSetReleaseCallBackFunction = - void Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFSetRetainCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFAllocator> allocator, - ffi.Pointer value, - ); -typedef CFSocketCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFSocket> s, - ffi.UnsignedLong type, - ffi.Pointer<__CFData> address, - ffi.Pointer data, - ffi.Pointer info, - ); -typedef DartCFSocketCallBackFunction = - void Function( - ffi.Pointer<__CFSocket> s, - int type, - ffi.Pointer<__CFData> address, - ffi.Pointer data, - ffi.Pointer info, - ); - -sealed class CFSocketCallBackType { - static const kCFSocketNoCallBack = 0; - static const kCFSocketReadCallBack = 1; - static const kCFSocketAcceptCallBack = 2; - static const kCFSocketDataCallBack = 3; - static const kCFSocketConnectCallBack = 4; - static const kCFSocketWriteCallBack = 8; -} - -final class CFStreamError extends ffi.Struct { - @ffi.Long() - external int domain; - - @ffi.Int() - external int error; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int domain, - required int error, - }) => $allocator() - ..ref.domain = domain - ..ref.error = error; -} - -sealed class CFStreamEventType { - static const kCFStreamEventNone = 0; - static const kCFStreamEventOpenCompleted = 1; - static const kCFStreamEventHasBytesAvailable = 2; - static const kCFStreamEventCanAcceptBytes = 4; - static const kCFStreamEventErrorOccurred = 8; - static const kCFStreamEventEndEncountered = 16; -} - -typedef CFTreeApplierFunctionFunction = - ffi.Void Function( - ffi.Pointer value, - ffi.Pointer context, - ); -typedef DartCFTreeApplierFunctionFunction = - void Function(ffi.Pointer value, ffi.Pointer context); -typedef CFTreeCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFTreeReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFTreeReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFTreeRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFUserNotificationCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFUserNotification> userNotification, - ffi.UnsignedLong responseFlags, - ); -typedef DartCFUserNotificationCallBackFunction = - void Function( - ffi.Pointer<__CFUserNotification> userNotification, - int responseFlags, - ); -typedef CFWriteStreamClientCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFWriteStream> stream, - ffi.UnsignedLong type, - ffi.Pointer clientCallBackInfo, - ); -typedef DartCFWriteStreamClientCallBackFunction = - void Function( - ffi.Pointer<__CFWriteStream> stream, - int type, - ffi.Pointer clientCallBackInfo, - ); - -final class CFXMLExternalID extends ffi.Struct { - external ffi.Pointer<__CFURL> systemID; - - external ffi.Pointer publicID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer<__CFURL> systemID, - required ffi.Pointer publicID, - }) => $allocator() - ..ref.systemID = systemID - ..ref.publicID = publicID; -} - -typedef CFXMLParserAddChildCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ); -typedef DartCFXMLParserAddChildCallBackFunction = - void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer parent, - ffi.Pointer child, - ffi.Pointer info, - ); -typedef CFXMLParserCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFXMLParserCreateXMLStructureCallBackFunction = - ffi.Pointer Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer<__CFXMLNode> nodeDesc, - ffi.Pointer info, - ); -typedef CFXMLParserEndXMLStructureCallBackFunction = - ffi.Void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ); -typedef DartCFXMLParserEndXMLStructureCallBackFunction = - void Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer xmlType, - ffi.Pointer info, - ); -typedef CFXMLParserHandleErrorCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Long error, - ffi.Pointer info, - ); -typedef DartCFXMLParserHandleErrorCallBackFunction = - int Function( - ffi.Pointer<__CFXMLParser> parser, - int error, - ffi.Pointer info, - ); -typedef CFXMLParserReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFXMLParserReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFXMLParserResolveExternalEntityCallBackFunction = - ffi.Pointer<__CFData> Function( - ffi.Pointer<__CFXMLParser> parser, - ffi.Pointer extID, - ffi.Pointer info, - ); -typedef CFXMLParserRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); - -sealed class CFXMLParserStatusCode { - static const kCFXMLStatusParseNotBegun = -2; - static const kCFXMLStatusParseInProgress = -1; - static const kCFXMLStatusParseSuccessful = 0; - static const kCFXMLErrorUnexpectedEOF = 1; - static const kCFXMLErrorUnknownEncoding = 2; - static const kCFXMLErrorEncodingConversionFailure = 3; - static const kCFXMLErrorMalformedProcessingInstruction = 4; - static const kCFXMLErrorMalformedDTD = 5; - static const kCFXMLErrorMalformedName = 6; - static const kCFXMLErrorMalformedCDSect = 7; - static const kCFXMLErrorMalformedCloseTag = 8; - static const kCFXMLErrorMalformedStartTag = 9; - static const kCFXMLErrorMalformedDocument = 10; - static const kCFXMLErrorElementlessDocument = 11; - static const kCFXMLErrorMalformedComment = 12; - static const kCFXMLErrorMalformedCharacterReference = 13; - static const kCFXMLErrorMalformedParsedCharacterData = 14; - static const kCFXMLErrorNoData = 15; -} - -typedef CSIdentityQueryReceiveEventCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CSIdentityQuery> query, - ffi.Long event, - ffi.Pointer<__CFArray> identities, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef DartCSIdentityQueryReceiveEventCallbackFunction = - void Function( - ffi.Pointer<__CSIdentityQuery> query, - int event, - ffi.Pointer<__CFArray> identities, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef CSIdentityStatusUpdatedCallbackFunction = - ffi.Void Function( - ffi.Pointer<__CSIdentity> identity, - ffi.Long status, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef DartCSIdentityStatusUpdatedCallbackFunction = - void Function( - ffi.Pointer<__CSIdentity> identity, - int status, - ffi.Pointer<__CFError> error, - ffi.Pointer info, - ); -typedef CSSM_ACL_SUBJECT_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer SubjectRequest, - ffi.Pointer SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, - ); -typedef DartCSSM_ACL_SUBJECT_CALLBACKFunction = - int Function( - ffi.Pointer SubjectRequest, - ffi.Pointer SubjectResponse, - ffi.Pointer CallerContext, - ffi.Pointer MemFuncs, - ); -typedef CSSM_API_ModuleEventHandlerFunction = - ffi.Int32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - ffi.Uint32 SubserviceId, - ffi.Uint32 ServiceType, - ffi.Uint32 EventType, - ); -typedef DartCSSM_API_ModuleEventHandlerFunction = - int Function( - ffi.Pointer ModuleGuid, - ffi.Pointer AppNotifyCallbackCtx, - int SubserviceId, - int ServiceType, - int EventType, - ); -typedef CSSM_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer OutData, - ffi.Pointer CallerCtx, - ); -typedef DartCSSM_CALLBACKFunction = - int Function( - ffi.Pointer OutData, - ffi.Pointer CallerCtx, - ); -typedef CSSM_CALLOCFunction = - ffi.Pointer Function( - ffi.Uint32 num, - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_CALLOCFunction = - ffi.Pointer Function( - int num, - int size, - ffi.Pointer allocref, - ); -typedef CSSM_CHALLENGE_CALLBACKFunction = - ffi.Int32 Function( - ffi.Pointer Challenge, - ffi.Pointer Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ); -typedef DartCSSM_CHALLENGE_CALLBACKFunction = - int Function( - ffi.Pointer Challenge, - ffi.Pointer Response, - ffi.Pointer CallerCtx, - ffi.Pointer MemFuncs, - ); -typedef CSSM_FREEFunction = - ffi.Void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ); -typedef DartCSSM_FREEFunction = - void Function( - ffi.Pointer memblock, - ffi.Pointer allocref, - ); -typedef CSSM_MALLOCFunction = - ffi.Pointer Function( - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_MALLOCFunction = - ffi.Pointer Function(int size, ffi.Pointer allocref); -typedef CSSM_PROC_ADDRFunction = ffi.Void Function(); -typedef DartCSSM_PROC_ADDRFunction = void Function(); -typedef CSSM_REALLOCFunction = - ffi.Pointer Function( - ffi.Pointer memblock, - ffi.Size size, - ffi.Pointer allocref, - ); -typedef DartCSSM_REALLOCFunction = - ffi.Pointer Function( - ffi.Pointer memblock, - int size, - ffi.Pointer allocref, - ); -typedef CSSM_SPI_ModuleEventHandlerFunction = - ffi.Int32 Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - ffi.Uint32 SubserviceId, - ffi.Uint32 ServiceType, - ffi.Uint32 EventType, - ); -typedef DartCSSM_SPI_ModuleEventHandlerFunction = - int Function( - ffi.Pointer ModuleGuid, - ffi.Pointer CssmNotifyCallbackCtx, - int SubserviceId, - int ServiceType, - int EventType, - ); -typedef CSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = - ffi.Int32 Function( - ffi.IntPtr ModuleHandle, - ffi.Pointer CallerCtx, - ffi.Pointer VerifiedCert, - ); -typedef DartCSSM_TP_VERIFICATION_RESULTS_CALLBACKFunction = - int Function( - int ModuleHandle, - ffi.Pointer CallerCtx, - ffi.Pointer VerifiedCert, - ); -typedef CSSM_UPCALLS_CALLOCFunction = - ffi.Pointer Function( - ffi.IntPtr AddInHandle, - ffi.Size num, - ffi.Size size, - ); -typedef DartCSSM_UPCALLS_CALLOCFunction = - ffi.Pointer Function(int AddInHandle, int num, int size); -typedef CSSM_UPCALLS_FREEFunction = - ffi.Void Function(ffi.IntPtr AddInHandle, ffi.Pointer memblock); -typedef DartCSSM_UPCALLS_FREEFunction = - void Function(int AddInHandle, ffi.Pointer memblock); -typedef CSSM_UPCALLS_MALLOCFunction = - ffi.Pointer Function(ffi.IntPtr AddInHandle, ffi.Size size); -typedef DartCSSM_UPCALLS_MALLOCFunction = - ffi.Pointer Function(int AddInHandle, int size); -typedef CSSM_UPCALLS_REALLOCFunction = - ffi.Pointer Function( - ffi.IntPtr AddInHandle, - ffi.Pointer memblock, - ffi.Size size, - ); -typedef DartCSSM_UPCALLS_REALLOCFunction = - ffi.Pointer Function( - int AddInHandle, - ffi.Pointer memblock, - int size, - ); -typedef CollectionExceptionProcPtrFunction = - ffi.Short Function(ffi.Pointer c, ffi.Short status); -typedef DartCollectionExceptionProcPtrFunction = - int Function(ffi.Pointer c, int status); -typedef CollectionFlattenProcPtrFunction = - ffi.Short Function( - ffi.Int size, - ffi.Pointer data, - ffi.Pointer refCon, - ); -typedef DartCollectionFlattenProcPtrFunction = - int Function( - int size, - ffi.Pointer data, - ffi.Pointer refCon, - ); - -@ffi.Packed(2) -final class ComponentMPWorkFunctionHeaderRecord extends ffi.Struct { - @ffi.UnsignedInt() - external int headerSize; - - @ffi.UnsignedInt() - external int recordSize; - - @ffi.UnsignedInt() - external int workFlags; - - @ffi.UnsignedShort() - external int processorCount; - - @ffi.UnsignedChar() - external int unused; - - @ffi.UnsignedChar() - external int isRunning; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int headerSize, - required int recordSize, - required int workFlags, - required int processorCount, - required int unused, - required int isRunning, - }) => $allocator() - ..ref.headerSize = headerSize - ..ref.recordSize = recordSize - ..ref.workFlags = workFlags - ..ref.processorCount = processorCount - ..ref.unused = unused - ..ref.isRunning = isRunning; -} - -typedef ComponentMPWorkFunctionProcPtrFunction = - ffi.Int Function( - ffi.Pointer globalRefCon, - ffi.Pointer header, - ); -typedef DartComponentMPWorkFunctionProcPtrFunction = - int Function( - ffi.Pointer globalRefCon, - ffi.Pointer header, - ); - -@ffi.Packed(2) -final class ComponentParameters extends ffi.Struct { - @ffi.UnsignedChar() - external int flags; - - @ffi.UnsignedChar() - external int paramSize; - - @ffi.Short() - external int what; - - @ffi.UnsignedInt() - external int padding; - - @ffi.Array.multi([1]) - external ffi.Array params; -} - -@ffi.Packed(2) -final class ComponentRecord extends ffi.Struct { - @ffi.Array.multi([1]) - external ffi.Array data; -} - -typedef ComponentRoutineProcPtrFunction = - ffi.Int Function( - ffi.Pointer cp, - ffi.Pointer> componentStorage, - ); -typedef DartComponentRoutineProcPtrFunction = - int Function( - ffi.Pointer cp, - ffi.Pointer> componentStorage, - ); -typedef CoreEndianFlipProcFunction = - ffi.Int Function( - ffi.UnsignedInt dataDomain, - ffi.UnsignedInt dataType, - ffi.Short id, - ffi.Pointer dataPtr, - ffi.UnsignedLong dataSize, - ffi.UnsignedChar currentlyNative, - ffi.Pointer refcon, - ); -typedef DartCoreEndianFlipProcFunction = - int Function( - int dataDomain, - int dataType, - int id, - ffi.Pointer dataPtr, - int dataSize, - int currentlyNative, - ffi.Pointer refcon, - ); -typedef DebugAssertOutputHandlerProcPtrFunction = - ffi.Void Function( - ffi.UnsignedInt componentSignature, - ffi.UnsignedInt options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - ffi.Long lineNumber, - ffi.Pointer value, - ffi.Pointer outputMsg, - ); -typedef DartDebugAssertOutputHandlerProcPtrFunction = - void Function( - int componentSignature, - int options, - ffi.Pointer assertionString, - ffi.Pointer exceptionLabelString, - ffi.Pointer errorString, - ffi.Pointer fileName, - int lineNumber, - ffi.Pointer value, - ffi.Pointer outputMsg, - ); -typedef DebugComponentCallbackProcPtrFunction = - ffi.Void Function( - ffi.Int optionSelectorNum, - ffi.UnsignedInt command, - ffi.Pointer optionSetting, - ); -typedef DartDebugComponentCallbackProcPtrFunction = - void Function( - int optionSelectorNum, - int command, - ffi.Pointer optionSetting, - ); -typedef DebuggerDisposeThreadProcPtrFunction = - ffi.Void Function(ffi.UnsignedLong threadDeleted); -typedef DartDebuggerDisposeThreadProcPtrFunction = - void Function(int threadDeleted); -typedef DebuggerNewThreadProcPtrFunction = - ffi.Void Function(ffi.UnsignedLong threadCreated); -typedef DartDebuggerNewThreadProcPtrFunction = void Function(int threadCreated); -typedef DebuggerThreadSchedulerProcPtrFunction = - ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); -typedef DartDebuggerThreadSchedulerProcPtrFunction = - int Function(ffi.Pointer schedulerInfo); -typedef DeferredTaskProcPtrFunction = ffi.Void Function(ffi.Long dtParam); -typedef DartDeferredTaskProcPtrFunction = void Function(int dtParam); -typedef ExceptionHandlerProcPtrFunction = - ffi.Int Function(ffi.Pointer theException); -typedef DartExceptionHandlerProcPtrFunction = - int Function(ffi.Pointer theException); - -final class ExceptionInfo extends ffi.Union { - external ffi.Pointer memoryInfo; -} - -final class ExceptionInformation extends ffi.Struct { - @ffi.UnsignedLong() - external int theKind; - - external ffi.Pointer machineState; - - external ffi.Pointer registerImage; - - external ffi.Pointer FPUImage; - - external ExceptionInfo info; - - external ffi.Pointer vectorImage; -} - -typedef FNSubscriptionProcPtrFunction = - ffi.Void Function( - ffi.UnsignedInt message, - ffi.UnsignedInt flags, - ffi.Pointer refcon, - ffi.Pointer subscription, - ); -typedef DartFNSubscriptionProcPtrFunction = - void Function( - int message, - int flags, - ffi.Pointer refcon, - ffi.Pointer subscription, - ); - -final class FPUInformation extends ffi.Struct { - external ffi.Pointer __unusedFPUInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedFPUInformationField, - }) => - $allocator() - ..ref.__unusedFPUInformationField = $unusedFPUInformationField; -} - -typedef FSAliasFilterProcPtrFunction = - ffi.UnsignedChar Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - ffi.Pointer myDataPtr, - ); -typedef DartFSAliasFilterProcPtrFunction = - int Function( - ffi.Pointer ref, - ffi.Pointer quitFlag, - ffi.Pointer myDataPtr, - ); -typedef FSEventStreamCallbackFunction = - ffi.Void Function( - ffi.Pointer<__FSEventStream> streamRef, - ffi.Pointer clientCallBackInfo, - ffi.Size numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ); -typedef DartFSEventStreamCallbackFunction = - void Function( - ffi.Pointer<__FSEventStream> streamRef, - ffi.Pointer clientCallBackInfo, - int numEvents, - ffi.Pointer eventPaths, - ffi.Pointer eventFlags, - ffi.Pointer eventIds, - ); -typedef FSFileOperationStatusProcPtrFunction = - ffi.Void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - ffi.UnsignedInt stage, - ffi.Int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef DartFSFileOperationStatusProcPtrFunction = - void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - int stage, - int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef FSPathFileOperationStatusProcPtrFunction = - ffi.Void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - ffi.UnsignedInt stage, - ffi.Int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); -typedef DartFSPathFileOperationStatusProcPtrFunction = - void Function( - ffi.Pointer<__FSFileOperation> fileOp, - ffi.Pointer currentItem, - int stage, - int error, - ffi.Pointer<__CFDictionary> statusDictionary, - ffi.Pointer info, - ); - -final class FSRef extends ffi.Struct { - @ffi.Array.multi([80]) - external ffi.Array hidden; -} - -typedef FSVolumeEjectProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short volumeRefNum, - ffi.Int dissenter, - ); -typedef DartFSVolumeEjectProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - ); -typedef FSVolumeMountProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short mountedVolumeRefNum, - ); -typedef DartFSVolumeMountProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int mountedVolumeRefNum, - ); -typedef FSVolumeUnmountProcPtrFunction = - ffi.Void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - ffi.Int err, - ffi.Short volumeRefNum, - ffi.Int dissenter, - ); -typedef DartFSVolumeUnmountProcPtrFunction = - void Function( - ffi.Pointer volumeOp, - ffi.Pointer clientData, - int err, - int volumeRefNum, - int dissenter, - ); -typedef FolderManagerNotificationProcPtrFunction = - ffi.Int Function( - ffi.UnsignedInt message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ); -typedef DartFolderManagerNotificationProcPtrFunction = - int Function( - int message, - ffi.Pointer arg, - ffi.Pointer userRefCon, - ); -typedef GetMissingComponentResourceProcPtrFunction = - ffi.Short Function( - ffi.Pointer c, - ffi.UnsignedInt resType, - ffi.Short resID, - ffi.Pointer refCon, - ffi.Pointer>> resource, - ); -typedef DartGetMissingComponentResourceProcPtrFunction = - int Function( - ffi.Pointer c, - int resType, - int resID, - ffi.Pointer refCon, - ffi.Pointer>> resource, - ); -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef IOAsyncCallback0Function = - ffi.Void Function(ffi.Pointer refcon, ffi.Int result); -typedef DartIOAsyncCallback0Function = - void Function(ffi.Pointer refcon, int result); -typedef IOAsyncCallback1Function = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer arg0, - ); -typedef DartIOAsyncCallback1Function = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer arg0, - ); -typedef IOAsyncCallback2Function = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ); -typedef DartIOAsyncCallback2Function = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer arg0, - ffi.Pointer arg1, - ); -typedef IOAsyncCallbackFunction = - ffi.Void Function( - ffi.Pointer refcon, - ffi.Int result, - ffi.Pointer> args, - ffi.Uint32 numArgs, - ); -typedef DartIOAsyncCallbackFunction = - void Function( - ffi.Pointer refcon, - int result, - ffi.Pointer> args, - int numArgs, - ); -typedef IOCompletionProcPtrFunction = - ffi.Void Function(ffi.Pointer paramBlock); -typedef DartIOCompletionProcPtrFunction = - void Function(ffi.Pointer paramBlock); -typedef IOServiceInterestCallbackFunction = - ffi.Void Function( - ffi.Pointer refcon, - ffi.UnsignedInt service, - ffi.Uint32 messageType, - ffi.Pointer messageArgument, - ); -typedef DartIOServiceInterestCallbackFunction = - void Function( - ffi.Pointer refcon, - int service, - int messageType, - ffi.Pointer messageArgument, - ); -typedef IOServiceMatchingCallbackFunction = - ffi.Void Function(ffi.Pointer refcon, ffi.UnsignedInt iterator); -typedef DartIOServiceMatchingCallbackFunction = - void Function(ffi.Pointer refcon, int iterator); -typedef IndexToUCStringProcPtrFunction = - ffi.UnsignedChar Function( - ffi.UnsignedInt index, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer> outString, - ffi.Pointer tsOptions, - ); -typedef DartIndexToUCStringProcPtrFunction = - int Function( - int index, - ffi.Pointer listDataPtr, - ffi.Pointer refcon, - ffi.Pointer> outString, - ffi.Pointer tsOptions, - ); - -@ffi.Packed(2) -final class KCCallbackInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external ffi.Pointer<__SecKeychainItem> item; - - @ffi.Array.multi([2]) - external ffi.Array processID; - - @ffi.Array.multi([4]) - external ffi.Array event; - - external ffi.Pointer<__SecKeychain> keychain; -} - -typedef KCCallbackProcPtrFunction = - ffi.Int Function( - ffi.UnsignedShort keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ); -typedef DartKCCallbackProcPtrFunction = - int Function( - int keychainEvent, - ffi.Pointer info, - ffi.Pointer userContext, - ); -typedef LSSharedFileListChangedProcPtrFunction = - ffi.Void Function( - ffi.Pointer inList, - ffi.Pointer context, - ); -typedef DartLSSharedFileListChangedProcPtrFunction = - void Function( - ffi.Pointer inList, - ffi.Pointer context, - ); -typedef MDQueryCreateResultFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__MDQuery> query, - ffi.Pointer<__MDItem> item, - ffi.Pointer context, - ); -typedef MDQueryCreateValueFunctionFunction = - ffi.Pointer Function( - ffi.Pointer<__MDQuery> query, - ffi.Pointer attrName, - ffi.Pointer attrValue, - ffi.Pointer context, - ); -typedef MDQuerySortComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer> attrs1, - ffi.Pointer> attrs2, - ffi.Pointer context, - ); -typedef DartMDQuerySortComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer> attrs1, - ffi.Pointer> attrs2, - ffi.Pointer context, - ); -typedef MPIsFullyInitializedProcFunction = ffi.UnsignedChar Function(); -typedef DartMPIsFullyInitializedProcFunction = int Function(); -typedef MPRemoteProcedureFunction = - ffi.Pointer Function(ffi.Pointer parameter); - -final class MachineInformation extends ffi.Struct { - external ffi.Pointer __unusedMachineInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedMachineInformationField, - }) => - $allocator() - ..ref.__unusedMachineInformationField = $unusedMachineInformationField; -} - -final class MemoryExceptionInformation extends ffi.Struct { - external ffi.Pointer theArea; - - external ffi.Pointer theAddress; - - @ffi.Int() - external int theError; - - @ffi.UnsignedLong() - external int theReference; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer theArea, - required ffi.Pointer theAddress, - required int theError, - required int theReference, - }) => $allocator() - ..ref.theArea = theArea - ..ref.theAddress = theAddress - ..ref.theError = theError - ..ref.theReference = theReference; -} - /// MySwiftClass extension type MySwiftClass._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject, MySwiftProtocol { @@ -1647,177 +192,6 @@ interface class MySwiftProtocol$Builder { typedef NSInteger = ffi.Long; typedef DartNSInteger = int; -typedef OSLAccessorProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt desiredClass, - ffi.Pointer container, - ffi.UnsignedInt containerClass, - ffi.UnsignedInt form, - ffi.Pointer selectionData, - ffi.Pointer value, - ffi.Pointer accessorRefcon, - ); -typedef DartOSLAccessorProcPtrFunction = - int Function( - int desiredClass, - ffi.Pointer container, - int containerClass, - int form, - ffi.Pointer selectionData, - ffi.Pointer value, - ffi.Pointer accessorRefcon, - ); -typedef OSLAdjustMarksProcPtrFunction = - ffi.Short Function( - ffi.Long newStart, - ffi.Long newStop, - ffi.Pointer markToken, - ); -typedef DartOSLAdjustMarksProcPtrFunction = - int Function(int newStart, int newStop, ffi.Pointer markToken); -typedef OSLCompareProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ); -typedef DartOSLCompareProcPtrFunction = - int Function( - int oper, - ffi.Pointer obj1, - ffi.Pointer obj2, - ffi.Pointer result, - ); -typedef OSLCountProcPtrFunction = - ffi.Short Function( - ffi.UnsignedInt desiredType, - ffi.UnsignedInt containerClass, - ffi.Pointer container, - ffi.Pointer result, - ); -typedef DartOSLCountProcPtrFunction = - int Function( - int desiredType, - int containerClass, - ffi.Pointer container, - ffi.Pointer result, - ); -typedef OSLDisposeTokenProcPtrFunction = - ffi.Short Function(ffi.Pointer unneededToken); -typedef DartOSLDisposeTokenProcPtrFunction = - int Function(ffi.Pointer unneededToken); -typedef OSLGetErrDescProcPtrFunction = - ffi.Short Function(ffi.Pointer> appDescPtr); -typedef DartOSLGetErrDescProcPtrFunction = - int Function(ffi.Pointer> appDescPtr); -typedef OSLGetMarkTokenProcPtrFunction = - ffi.Short Function( - ffi.Pointer dContainerToken, - ffi.UnsignedInt containerClass, - ffi.Pointer result, - ); -typedef DartOSLGetMarkTokenProcPtrFunction = - int Function( - ffi.Pointer dContainerToken, - int containerClass, - ffi.Pointer result, - ); -typedef OSLMarkProcPtrFunction = - ffi.Short Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - ffi.Long index, - ); -typedef DartOSLMarkProcPtrFunction = - int Function( - ffi.Pointer dToken, - ffi.Pointer markToken, - int index, - ); - -/// Construction methods for `objc.ObjCBlock Function()>`. -abstract final class ObjCBlock_CFErrorRef { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function()> fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function()>( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock Function()> fromFunctionPointer( - ffi.Pointer Function()>> ptr, - ) => objc.ObjCBlock Function()>( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function()> fromFunction( - ffi.Pointer<__CFError> Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function()>( - objc.newClosureBlock(_closureCallable, () { - return fn(); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - static ffi.Pointer<__CFError> _fnPtrTrampoline( - ffi.Pointer block, - ) => block.ref.target - .cast Function()>>() - .asFunction Function()>()(); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >(_fnPtrTrampoline) - .cast(); - static ffi.Pointer<__CFError> _closureTrampoline( - ffi.Pointer block, - ) => (objc.getBlockClosure(block) as ffi.Pointer<__CFError> Function())(); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock Function()>`. -extension ObjCBlock_CFErrorRef$CallExtension - on objc.ObjCBlock Function()> { - ffi.Pointer<__CFError> call() { - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer<__CFError> Function( - ffi.Pointer block, - ) - > - >() - .asFunction< - ffi.Pointer<__CFError> Function(ffi.Pointer) - >()(ref.pointer); - } -} /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_NSInteger_ffiVoid { @@ -1919,1089 +293,6 @@ extension ObjCBlock_NSInteger_ffiVoid$CallExtension } } -final class OpaqueAreaID extends ffi.Opaque {} - -final class OpaqueCollection extends ffi.Opaque {} - -final class OpaqueFNSubscriptionRef extends ffi.Opaque {} - -final class OpaqueFSVolumeOperation extends ffi.Opaque {} - -final class OpaqueLSSharedFileListRef extends ffi.Opaque {} - -final class OpaqueSecTransformImplementation extends ffi.Opaque {} - -final class OpaqueTECObjectRef extends ffi.Opaque {} - -final class OpaqueTECSnifferObjectRef extends ffi.Opaque {} - -final class OpaqueWSMethodInvocationRef extends ffi.Opaque {} - -final class OpaqueWSProtocolHandlerRef extends ffi.Opaque {} - -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); - -@ffi.Packed(2) -final class QElem extends ffi.Struct { - external ffi.Pointer qLink; - - @ffi.Short() - external int qType; - - @ffi.Array.multi([1]) - external ffi.Array qData; -} - -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - -final class RegisterInformation extends ffi.Struct { - external ffi.Pointer __unusedRegisterInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedRegisterInformationField, - }) => $allocator() - ..ref.__unusedRegisterInformationField = $unusedRegisterInformationField; -} - -typedef ResErrProcPtrFunction = ffi.Void Function(ffi.Short thErr); -typedef DartResErrProcPtrFunction = void Function(int thErr); -typedef ResourceEndianFilterPtrFunction = - ffi.Short Function( - ffi.Pointer> theResource, - ffi.UnsignedChar currentlyNativeEndian, - ); -typedef DartResourceEndianFilterPtrFunction = - int Function( - ffi.Pointer> theResource, - int currentlyNativeEndian, - ); -typedef SKSearchResultsFilterCallBackFunction = - ffi.UnsignedChar Function( - ffi.Pointer<__SKIndex> inIndex, - ffi.Pointer inDocument, - ffi.Pointer inContext, - ); -typedef DartSKSearchResultsFilterCallBackFunction = - int Function( - ffi.Pointer<__SKIndex> inIndex, - ffi.Pointer inDocument, - ffi.Pointer inContext, - ); -typedef SSLReadFuncFunction = - ffi.Int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef DartSSLReadFuncFunction = - int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef SSLWriteFuncFunction = - ffi.Int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); -typedef DartSSLWriteFuncFunction = - int Function( - ffi.Pointer connection, - ffi.Pointer data, - ffi.Pointer dataLength, - ); - -@ffi.Packed(2) -final class SchedulerInfoRec extends ffi.Struct { - @ffi.UnsignedInt() - external int InfoRecSize; - - @ffi.UnsignedLong() - external int CurrentThreadID; - - @ffi.UnsignedLong() - external int SuggestedThreadID; - - @ffi.UnsignedLong() - external int InterruptedCoopThreadID; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int InfoRecSize, - required int CurrentThreadID, - required int SuggestedThreadID, - required int InterruptedCoopThreadID, - }) => $allocator() - ..ref.InfoRecSize = InfoRecSize - ..ref.CurrentThreadID = CurrentThreadID - ..ref.SuggestedThreadID = SuggestedThreadID - ..ref.InterruptedCoopThreadID = InterruptedCoopThreadID; -} - -typedef SecKeychainCallbackFunction = - ffi.Int Function( - ffi.UnsignedInt keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ); -typedef DartSecKeychainCallbackFunction = - int Function( - SecKeychainEvent keychainEvent, - ffi.Pointer info, - ffi.Pointer context, - ); - -final class SecKeychainCallbackInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - external ffi.Pointer<__SecKeychainItem> item; - - external ffi.Pointer<__SecKeychain> keychain; - - @ffi.Int() - external int pid; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required ffi.Pointer<__SecKeychainItem> item, - required ffi.Pointer<__SecKeychain> keychain, - required int pid, - }) => $allocator() - ..ref.version = version - ..ref.item = item - ..ref.keychain = keychain - ..ref.pid = pid; -} - -enum SecKeychainEvent { - kSecLockEvent(1), - kSecUnlockEvent(2), - kSecAddEvent(3), - kSecDeleteEvent(4), - kSecUpdateEvent(5), - kSecPasswordChangedEvent(6), - kSecDefaultChangedEvent(9), - kSecDataAccessEvent(10), - kSecKeychainListChangedEvent(11), - kSecTrustSettingsChangedEvent(12); - - final int value; - const SecKeychainEvent(this.value); - - static SecKeychainEvent fromValue(int value) => switch (value) { - 1 => kSecLockEvent, - 2 => kSecUnlockEvent, - 3 => kSecAddEvent, - 4 => kSecDeleteEvent, - 5 => kSecUpdateEvent, - 6 => kSecPasswordChangedEvent, - 9 => kSecDefaultChangedEvent, - 10 => kSecDataAccessEvent, - 11 => kSecKeychainListChangedEvent, - 12 => kSecTrustSettingsChangedEvent, - _ => throw ArgumentError('Unknown value for SecKeychainEvent: $value'), - }; -} - -typedef SecTransformCreateFPFunction = - ffi.Pointer Function( - ffi.Pointer name, - ffi.Pointer newTransform, - ffi.Pointer ref, - ); -typedef DartSecTransformCreateFPFunction = - objc.ObjCBlock Function()> Function( - ffi.Pointer name, - ffi.Pointer newTransform, - ffi.Pointer ref, - ); -typedef SelectorFunctionProcPtrFunction = - ffi.Short Function(ffi.UnsignedInt selector, ffi.Pointer response); -typedef DartSelectorFunctionProcPtrFunction = - int Function(int selector, ffi.Pointer response); -typedef SleepQProcPtrFunction = - ffi.Long Function(ffi.Long message, ffi.Pointer qRecPtr); -typedef DartSleepQProcPtrFunction = - int Function(int message, ffi.Pointer qRecPtr); - -@ffi.Packed(2) -final class SleepQRec extends ffi.Struct { - external ffi.Pointer sleepQLink; - - @ffi.Short() - external int sleepQType; - - external ffi.Pointer> sleepQProc; - - @ffi.Short() - external int sleepQFlags; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer sleepQLink, - required int sleepQType, - required ffi.Pointer> sleepQProc, - required int sleepQFlags, - }) => $allocator() - ..ref.sleepQLink = sleepQLink - ..ref.sleepQType = sleepQType - ..ref.sleepQProc = sleepQProc - ..ref.sleepQFlags = sleepQFlags; -} - -final class TECBufferContextRec extends ffi.Struct { - external ffi.Pointer textInputBuffer; - - external ffi.Pointer textInputBufferEnd; - - external ffi.Pointer textOutputBuffer; - - external ffi.Pointer textOutputBufferEnd; - - external ffi.Pointer encodingInputBuffer; - - external ffi.Pointer encodingInputBufferEnd; - - external ffi.Pointer encodingOutputBuffer; - - external ffi.Pointer encodingOutputBufferEnd; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer textInputBuffer, - required ffi.Pointer textInputBufferEnd, - required ffi.Pointer textOutputBuffer, - required ffi.Pointer textOutputBufferEnd, - required ffi.Pointer encodingInputBuffer, - required ffi.Pointer encodingInputBufferEnd, - required ffi.Pointer encodingOutputBuffer, - required ffi.Pointer encodingOutputBufferEnd, - }) => $allocator() - ..ref.textInputBuffer = textInputBuffer - ..ref.textInputBufferEnd = textInputBufferEnd - ..ref.textOutputBuffer = textOutputBuffer - ..ref.textOutputBufferEnd = textOutputBufferEnd - ..ref.encodingInputBuffer = encodingInputBuffer - ..ref.encodingInputBufferEnd = encodingInputBufferEnd - ..ref.encodingOutputBuffer = encodingOutputBuffer - ..ref.encodingOutputBufferEnd = encodingOutputBufferEnd; -} - -@ffi.Packed(2) -final class TECConversionInfo extends ffi.Struct { - @ffi.UnsignedInt() - external int sourceEncoding; - - @ffi.UnsignedInt() - external int destinationEncoding; - - @ffi.UnsignedShort() - external int reserved1; - - @ffi.UnsignedShort() - external int reserved2; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int sourceEncoding, - required int destinationEncoding, - required int reserved1, - required int reserved2, - }) => $allocator() - ..ref.sourceEncoding = sourceEncoding - ..ref.destinationEncoding = destinationEncoding - ..ref.reserved1 = reserved1 - ..ref.reserved2 = reserved2; -} - -final class TECConverterContextRec extends ffi.Struct { - external ffi.Pointer pluginRec; - - @ffi.UnsignedInt() - external int sourceEncoding; - - @ffi.UnsignedInt() - external int destEncoding; - - @ffi.UnsignedInt() - external int reserved1; - - @ffi.UnsignedInt() - external int reserved2; - - external TECBufferContextRec bufferContext; - - external ffi.Pointer contextRefCon; - - external ffi.Pointer> conversionProc; - - external ffi.Pointer> flushProc; - - external ffi.Pointer> - clearContextInfoProc; - - @ffi.UnsignedInt() - external int options1; - - @ffi.UnsignedInt() - external int options2; - - external TECPluginStateRec pluginState; -} - -typedef TECPluginClearContextInfoPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginClearContextInfoPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginClearSnifferContextInfoPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginClearSnifferContextInfoPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef TECPluginConvertTextEncodingPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginConvertTextEncodingPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); - -final class TECPluginDispatchTable extends ffi.Struct { - @ffi.UnsignedInt() - external int version; - - @ffi.UnsignedInt() - external int compatibleVersion; - - @ffi.UnsignedInt() - external int PluginID; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingConverter; - - external ffi.Pointer> - PluginClearContextInfo; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginConvertTextEncoding; - - external ffi.Pointer> - PluginFlushConversion; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingConverter; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingSniffer; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginClearSnifferContextInfo; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginSniffTextEncoding; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingSniffer; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodingPairs; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountDestinationTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountSubTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableSniffers; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountWebTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountMailTextEncodings; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingInternetName; - - external ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingFromInternetName; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int version, - required int compatibleVersion, - required int PluginID, - required ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingConverter, - required ffi.Pointer< - ffi.NativeFunction - > - PluginClearContextInfo, - required ffi.Pointer< - ffi.NativeFunction - > - PluginConvertTextEncoding, - required ffi.Pointer< - ffi.NativeFunction - > - PluginFlushConversion, - required ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingConverter, - required ffi.Pointer< - ffi.NativeFunction - > - PluginNewEncodingSniffer, - required ffi.Pointer< - ffi.NativeFunction - > - PluginClearSnifferContextInfo, - required ffi.Pointer< - ffi.NativeFunction - > - PluginSniffTextEncoding, - required ffi.Pointer< - ffi.NativeFunction - > - PluginDisposeEncodingSniffer, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableTextEncodingPairs, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountDestinationTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountSubTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountAvailableSniffers, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountWebTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetCountMailTextEncodings, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingInternetName, - required ffi.Pointer< - ffi.NativeFunction - > - PluginGetTextEncodingFromInternetName, - }) => $allocator() - ..ref.version = version - ..ref.compatibleVersion = compatibleVersion - ..ref.PluginID = PluginID - ..ref.PluginNewEncodingConverter = PluginNewEncodingConverter - ..ref.PluginClearContextInfo = PluginClearContextInfo - ..ref.PluginConvertTextEncoding = PluginConvertTextEncoding - ..ref.PluginFlushConversion = PluginFlushConversion - ..ref.PluginDisposeEncodingConverter = PluginDisposeEncodingConverter - ..ref.PluginNewEncodingSniffer = PluginNewEncodingSniffer - ..ref.PluginClearSnifferContextInfo = PluginClearSnifferContextInfo - ..ref.PluginSniffTextEncoding = PluginSniffTextEncoding - ..ref.PluginDisposeEncodingSniffer = PluginDisposeEncodingSniffer - ..ref.PluginGetCountAvailableTextEncodings = - PluginGetCountAvailableTextEncodings - ..ref.PluginGetCountAvailableTextEncodingPairs = - PluginGetCountAvailableTextEncodingPairs - ..ref.PluginGetCountDestinationTextEncodings = - PluginGetCountDestinationTextEncodings - ..ref.PluginGetCountSubTextEncodings = PluginGetCountSubTextEncodings - ..ref.PluginGetCountAvailableSniffers = PluginGetCountAvailableSniffers - ..ref.PluginGetCountWebTextEncodings = PluginGetCountWebTextEncodings - ..ref.PluginGetCountMailTextEncodings = PluginGetCountMailTextEncodings - ..ref.PluginGetTextEncodingInternetName = PluginGetTextEncodingInternetName - ..ref.PluginGetTextEncodingFromInternetName = - PluginGetTextEncodingFromInternetName; -} - -typedef TECPluginDisposeEncodingConverterPtrFunction = - ffi.Int Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginDisposeEncodingConverterPtrFunction = - int Function( - ffi.Pointer newEncodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginDisposeEncodingSnifferPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginDisposeEncodingSnifferPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef TECPluginFlushConversionPtrFunction = - ffi.Int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef DartTECPluginFlushConversionPtrFunction = - int Function( - ffi.Pointer encodingConverter, - ffi.Pointer plugContext, - ); -typedef TECPluginGetCountAvailableSniffersPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableSniffersPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountAvailableTextEncodingPairsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableTextEncodingPairsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountAvailableTextEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountAvailableTextEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountDestinationTextEncodingsPtrFunction = - ffi.Int Function( - ffi.UnsignedInt inputEncoding, - ffi.Pointer destinationEncodings, - ffi.UnsignedLong maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ); -typedef DartTECPluginGetCountDestinationTextEncodingsPtrFunction = - int Function( - int inputEncoding, - ffi.Pointer destinationEncodings, - int maxDestinationEncodings, - ffi.Pointer actualDestinationEncodings, - ); -typedef TECPluginGetCountMailEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountMailEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetCountSubTextEncodingsPtrFunction = - ffi.Int Function( - ffi.UnsignedInt inputEncoding, - ffi.Pointer subEncodings, - ffi.UnsignedLong maxSubEncodings, - ffi.Pointer actualSubEncodings, - ); -typedef DartTECPluginGetCountSubTextEncodingsPtrFunction = - int Function( - int inputEncoding, - ffi.Pointer subEncodings, - int maxSubEncodings, - ffi.Pointer actualSubEncodings, - ); -typedef TECPluginGetCountWebEncodingsPtrFunction = - ffi.Int Function( - ffi.Pointer availableEncodings, - ffi.UnsignedLong maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef DartTECPluginGetCountWebEncodingsPtrFunction = - int Function( - ffi.Pointer availableEncodings, - int maxAvailableEncodings, - ffi.Pointer actualAvailableEncodings, - ); -typedef TECPluginGetPluginDispatchTablePtrFunction = - ffi.Pointer Function(); -typedef TECPluginGetTextEncodingFromInternetNamePtrFunction = - ffi.Int Function( - ffi.Pointer textEncoding, - ffi.Pointer encodingName, - ); -typedef DartTECPluginGetTextEncodingFromInternetNamePtrFunction = - int Function( - ffi.Pointer textEncoding, - ffi.Pointer encodingName, - ); -typedef TECPluginGetTextEncodingInternetNamePtrFunction = - ffi.Int Function( - ffi.UnsignedInt textEncoding, - ffi.Pointer encodingName, - ); -typedef DartTECPluginGetTextEncodingInternetNamePtrFunction = - int Function(int textEncoding, ffi.Pointer encodingName); -typedef TECPluginNewEncodingConverterPtrFunction = - ffi.Int Function( - ffi.Pointer> newEncodingConverter, - ffi.Pointer plugContext, - ffi.UnsignedInt inputEncoding, - ffi.UnsignedInt outputEncoding, - ); -typedef DartTECPluginNewEncodingConverterPtrFunction = - int Function( - ffi.Pointer> newEncodingConverter, - ffi.Pointer plugContext, - int inputEncoding, - int outputEncoding, - ); -typedef TECPluginNewEncodingSnifferPtrFunction = - ffi.Int Function( - ffi.Pointer> encodingSniffer, - ffi.Pointer snifContext, - ffi.UnsignedInt inputEncoding, - ); -typedef DartTECPluginNewEncodingSnifferPtrFunction = - int Function( - ffi.Pointer> encodingSniffer, - ffi.Pointer snifContext, - int inputEncoding, - ); -typedef TECPluginSniffTextEncodingPtrFunction = - ffi.Int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); -typedef DartTECPluginSniffTextEncodingPtrFunction = - int Function( - ffi.Pointer encodingSniffer, - ffi.Pointer snifContext, - ); - -final class TECPluginStateRec extends ffi.Struct { - @ffi.UnsignedChar() - external int state1; - - @ffi.UnsignedChar() - external int state2; - - @ffi.UnsignedChar() - external int state3; - - @ffi.UnsignedChar() - external int state4; - - @ffi.UnsignedInt() - external int longState1; - - @ffi.UnsignedInt() - external int longState2; - - @ffi.UnsignedInt() - external int longState3; - - @ffi.UnsignedInt() - external int longState4; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int state1, - required int state2, - required int state3, - required int state4, - required int longState1, - required int longState2, - required int longState3, - required int longState4, - }) => $allocator() - ..ref.state1 = state1 - ..ref.state2 = state2 - ..ref.state3 = state3 - ..ref.state4 = state4 - ..ref.longState1 = longState1 - ..ref.longState2 = longState2 - ..ref.longState3 = longState3 - ..ref.longState4 = longState4; -} - -final class TECSnifferContextRec extends ffi.Struct { - external ffi.Pointer pluginRec; - - @ffi.UnsignedInt() - external int encoding; - - @ffi.UnsignedLong() - external int maxErrors; - - @ffi.UnsignedLong() - external int maxFeatures; - - external ffi.Pointer textInputBuffer; - - external ffi.Pointer textInputBufferEnd; - - @ffi.UnsignedLong() - external int numFeatures; - - @ffi.UnsignedLong() - external int numErrors; - - external ffi.Pointer contextRefCon; - - external ffi.Pointer> sniffProc; - - external ffi.Pointer> - clearContextInfoProc; - - external TECPluginStateRec pluginState; -} - -@ffi.Packed(2) -final class TMTask extends ffi.Struct { - external ffi.Pointer qLink; - - @ffi.Short() - external int qType; - - external ffi.Pointer> tmAddr; - - @ffi.Long() - external int tmCount; - - @ffi.Long() - external int tmWakeUp; - - @ffi.Long() - external int tmReserved; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer qLink, - required int qType, - required ffi.Pointer> tmAddr, - required int tmCount, - required int tmWakeUp, - required int tmReserved, - }) => $allocator() - ..ref.qLink = qLink - ..ref.qType = qType - ..ref.tmAddr = tmAddr - ..ref.tmCount = tmCount - ..ref.tmWakeUp = tmWakeUp - ..ref.tmReserved = tmReserved; -} - -typedef TaskProcFunction = ffi.Int Function(ffi.Pointer parameter); -typedef DartTaskProcFunction = int Function(ffi.Pointer parameter); - -@ffi.Packed(2) -final class TextEncodingRun extends ffi.Struct { - @ffi.UnsignedLong() - external int offset; - - @ffi.UnsignedInt() - external int textEncoding; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int offset, - required int textEncoding, - }) => $allocator() - ..ref.offset = offset - ..ref.textEncoding = textEncoding; -} - -typedef ThreadEntryProcPtrFunction = - ffi.Pointer Function(ffi.Pointer threadParam); -typedef ThreadSchedulerProcPtrFunction = - ffi.UnsignedLong Function(ffi.Pointer schedulerInfo); -typedef DartThreadSchedulerProcPtrFunction = - int Function(ffi.Pointer schedulerInfo); -typedef ThreadSwitchProcPtrFunction = - ffi.Void Function( - ffi.UnsignedLong threadBeingSwitched, - ffi.Pointer switchProcParam, - ); -typedef DartThreadSwitchProcPtrFunction = - void Function( - int threadBeingSwitched, - ffi.Pointer switchProcParam, - ); -typedef ThreadTerminationProcPtrFunction = - ffi.Void Function( - ffi.UnsignedLong threadTerminated, - ffi.Pointer terminationProcParam, - ); -typedef DartThreadTerminationProcPtrFunction = - void Function( - int threadTerminated, - ffi.Pointer terminationProcParam, - ); -typedef TimerProcPtrFunction = ffi.Void Function(ffi.Pointer tmTaskPtr); -typedef DartTimerProcPtrFunction = void Function(ffi.Pointer tmTaskPtr); - -@ffi.Packed(2) -final class UnicodeMapping extends ffi.Struct { - @ffi.UnsignedInt() - external int unicodeEncoding; - - @ffi.UnsignedInt() - external int otherEncoding; - - @ffi.Int() - external int mappingVersion; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int unicodeEncoding, - required int otherEncoding, - required int mappingVersion, - }) => $allocator() - ..ref.unicodeEncoding = unicodeEncoding - ..ref.otherEncoding = otherEncoding - ..ref.mappingVersion = mappingVersion; -} - -typedef UnicodeToTextFallbackProcPtrFunction = - ffi.Int Function( - ffi.Pointer iSrcUniStr, - ffi.UnsignedLong iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - ffi.Pointer oDestStr, - ffi.UnsignedLong iDestStrLen, - ffi.Pointer oDestConvLen, - ffi.Pointer iInfoPtr, - ffi.Pointer iUnicodeMappingPtr, - ); -typedef DartUnicodeToTextFallbackProcPtrFunction = - int Function( - ffi.Pointer iSrcUniStr, - int iSrcUniStrLen, - ffi.Pointer oSrcConvLen, - ffi.Pointer oDestStr, - int iDestStrLen, - ffi.Pointer oDestConvLen, - ffi.Pointer iInfoPtr, - ffi.Pointer iUnicodeMappingPtr, - ); - -final class UnnamedUnion extends ffi.Union { - external cssm_list Sublist; - - external cssm_data Word; -} - -final class VectorInformation extends ffi.Struct { - external ffi.Pointer __unusedVectorInformationField; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer $unusedVectorInformationField, - }) => - $allocator() - ..ref.__unusedVectorInformationField = $unusedVectorInformationField; -} - -typedef WSClientContextCopyDescriptionCallBackProcPtrFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef WSClientContextReleaseCallBackProcPtrFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartWSClientContextReleaseCallBackProcPtrFunction = - void Function(ffi.Pointer info); -typedef WSClientContextRetainCallBackProcPtrFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef WSMethodInvocationCallBackProcPtrFunction = - ffi.Void Function( - ffi.Pointer invocation, - ffi.Pointer info, - ffi.Pointer<__CFDictionary> outRef, - ); -typedef DartWSMethodInvocationCallBackProcPtrFunction = - void Function( - ffi.Pointer invocation, - ffi.Pointer info, - ffi.Pointer<__CFDictionary> outRef, - ); -typedef WSMethodInvocationDeserializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer invocation, - ffi.Pointer<__CFTree> msgRoot, - ffi.Pointer<__CFTree> deserializeRoot, - ffi.Pointer info, - ); -typedef WSMethodInvocationSerializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer invocation, - ffi.Pointer obj, - ffi.Pointer info, - ); -typedef WSProtocolHandlerDeserializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer protocol, - ffi.Pointer<__CFTree> msgRoot, - ffi.Pointer<__CFTree> deserializeRoot, - ffi.Pointer info, - ); -typedef WSProtocolHandlerSerializationProcPtrFunction = - ffi.Pointer Function( - ffi.Pointer protocol, - ffi.Pointer obj, - ffi.Pointer info, - ); - -final class __CFAllocator extends ffi.Opaque {} - -final class __CFArray extends ffi.Opaque {} - -final class __CFBundle extends ffi.Opaque {} - -final class __CFData extends ffi.Opaque {} - -final class __CFDictionary extends ffi.Opaque {} - -final class __CFError extends ffi.Opaque {} - -final class __CFFileDescriptor extends ffi.Opaque {} - -final class __CFHost extends ffi.Opaque {} - -final class __CFMachPort extends ffi.Opaque {} - -final class __CFMessagePort extends ffi.Opaque {} - -final class __CFNetService extends ffi.Opaque {} - -final class __CFNetServiceBrowser extends ffi.Opaque {} - -final class __CFNetServiceMonitor extends ffi.Opaque {} - -final class __CFNotificationCenter extends ffi.Opaque {} - -final class __CFPlugInInstance extends ffi.Opaque {} - -final class __CFReadStream extends ffi.Opaque {} - -final class __CFRunLoopObserver extends ffi.Opaque {} - -final class __CFRunLoopTimer extends ffi.Opaque {} - -final class __CFSocket extends ffi.Opaque {} - -final class __CFTree extends ffi.Opaque {} - -final class __CFURL extends ffi.Opaque {} - -final class __CFUUID extends ffi.Opaque {} - -final class __CFUserNotification extends ffi.Opaque {} - -final class __CFWriteStream extends ffi.Opaque {} - -final class __CFXMLNode extends ffi.Opaque {} - -final class __CFXMLParser extends ffi.Opaque {} - -final class __CSIdentity extends ffi.Opaque {} - -final class __CSIdentityQuery extends ffi.Opaque {} - -final class __FSEventStream extends ffi.Opaque {} - -final class __FSFileOperation extends ffi.Opaque {} - -final class __MDItem extends ffi.Opaque {} - -final class __MDQuery extends ffi.Opaque {} - -final class __SKIndex extends ffi.Opaque {} - -final class __SecKeychain extends ffi.Opaque {} - -final class __SecKeychainItem extends ffi.Opaque {} - @ffi.Native>( symbol: 'OBJC_CLASS_\$__TtC16swift_class_test12MySwiftClass', ) @@ -3012,9 +303,6 @@ final _class_MySwiftClass = objc.getClass( _class_MySwiftClass_raw, ).cast(), ); - -final class _launch_data extends ffi.Opaque {} - final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -3129,230 +417,5 @@ late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); late final _sel_new = objc.registerName("new"); late final _sel_setValueWithX_ = objc.registerName("setValueWithX:"); - -final class cssm_data extends ffi.Struct { - @ffi.Size() - external int Length; - - external ffi.Pointer Data; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Length, - required ffi.Pointer Data, - }) => $allocator() - ..ref.Length = Length - ..ref.Data = Data; -} - -final class cssm_guid extends ffi.Struct { - @ffi.Uint32() - external int Data1; - - @ffi.Uint16() - external int Data2; - - @ffi.Uint16() - external int Data3; - - @ffi.Array.multi([8]) - external ffi.Array Data4; -} - -final class cssm_list extends ffi.Struct { - @ffi.Uint32() - external int ListType; - - external ffi.Pointer Head; - - external ffi.Pointer Tail; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int ListType, - required ffi.Pointer Head, - required ffi.Pointer Tail, - }) => $allocator() - ..ref.ListType = ListType - ..ref.Head = Head - ..ref.Tail = Tail; -} - -@Deprecated('Deprecated') -final class cssm_list_element extends ffi.Struct { - external ffi.Pointer NextElement; - - @ffi.Int32() - external int WordID; - - @ffi.Uint32() - external int ElementType; - - external UnnamedUnion Element; -} - -final class cssm_memory_funcs extends ffi.Struct { - external ffi.Pointer> malloc_func; - - external ffi.Pointer> free_func; - - external ffi.Pointer> realloc_func; - - external ffi.Pointer> calloc_func; - - external ffi.Pointer AllocRef; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required ffi.Pointer> malloc_func, - required ffi.Pointer> free_func, - required ffi.Pointer> realloc_func, - required ffi.Pointer> calloc_func, - required ffi.Pointer AllocRef, - }) => $allocator() - ..ref.malloc_func = malloc_func - ..ref.free_func = free_func - ..ref.realloc_func = realloc_func - ..ref.calloc_func = calloc_func - ..ref.AllocRef = AllocRef; -} - -@Deprecated('Deprecated') -final class cssm_sample extends ffi.Struct { - external cssm_list TypedSample; - - external ffi.Pointer Verifier; -} - -@Deprecated('Deprecated') -final class cssm_samplegroup extends ffi.Struct { - @ffi.Uint32() - external int NumberOfSamples; - - external ffi.Pointer Samples; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int NumberOfSamples, - required ffi.Pointer Samples, - }) => $allocator() - ..ref.NumberOfSamples = NumberOfSamples - ..ref.Samples = Samples; -} - -@Deprecated('Deprecated') -final class cssm_subservice_uid extends ffi.Struct { - external cssm_guid Guid; - - external cssm_version Version; - - @ffi.Uint32() - external int SubserviceId; - - @ffi.Uint32() - external int SubserviceType; -} - -final class cssm_version extends ffi.Struct { - @ffi.Uint32() - external int Major; - - @ffi.Uint32() - external int Minor; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int Major, - required int Minor, - }) => $allocator() - ..ref.Major = Major - ..ref.Minor = Minor; -} - -typedef dispatch_function_tFunction = ffi.Void Function(ffi.Pointer); -typedef Dartdispatch_function_tFunction = void Function(ffi.Pointer); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef launch_data_dict_iterator_tFunction = - ffi.Void Function( - ffi.Pointer<_launch_data> lval, - ffi.Pointer key, - ffi.Pointer ctx, - ); -typedef Dartlaunch_data_dict_iterator_tFunction = - void Function( - ffi.Pointer<_launch_data> lval, - ffi.Pointer key, - ffi.Pointer ctx, - ); -typedef mach_error_fn_tFunction = ffi.Int Function(); -typedef Dartmach_error_fn_tFunction = int Function(); - -final class mach_msg_header_t extends ffi.Struct { - @ffi.UnsignedInt() - external int msgh_bits; - - @ffi.UnsignedInt() - external int msgh_size; - - @ffi.UnsignedInt() - external int msgh_remote_port; - - @ffi.UnsignedInt() - external int msgh_local_port; - - @ffi.UnsignedInt() - external int msgh_voucher_port; - - @ffi.Int() - external int msgh_id; - - static ffi.Pointer $allocate( - ffi.Allocator $allocator, { - required int msgh_bits, - required int msgh_size, - required int msgh_remote_port, - required int msgh_local_port, - required int msgh_voucher_port, - required int msgh_id, - }) => $allocator() - ..ref.msgh_bits = msgh_bits - ..ref.msgh_size = msgh_size - ..ref.msgh_remote_port = msgh_remote_port - ..ref.msgh_local_port = msgh_local_port - ..ref.msgh_voucher_port = msgh_voucher_port - ..ref.msgh_id = msgh_id; -} - -typedef mig_impl_routine_tFunction = ffi.Int Function(); -typedef Dartmig_impl_routine_tFunction = int Function(); -typedef mig_server_routine_tFunction = - ffi.Pointer> Function( - ffi.Pointer InHeadP, - ); -typedef mig_stub_routine_tFunction = - ffi.Void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ); -typedef Dartmig_stub_routine_tFunction = - void Function( - ffi.Pointer InHeadP, - ffi.Pointer OutHeadP, - ); -typedef os_function_tFunction = ffi.Void Function(ffi.Pointer); -typedef Dartos_function_tFunction = void Function(ffi.Pointer); -typedef os_workgroup_working_arena_destructor_tFunction = - ffi.Void Function(ffi.Pointer); -typedef Dartos_workgroup_working_arena_destructor_tFunction = - void Function(ffi.Pointer); -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); -typedef xpc_connection_handler_tFunction = - ffi.Void Function(ffi.Pointer connection); -typedef Dartxpc_connection_handler_tFunction = - void Function(objc.NSObject connection); -typedef xpc_finalizer_tFunction = - ffi.Void Function(ffi.Pointer value); -typedef Dartxpc_finalizer_tFunction = - void Function(ffi.Pointer value); diff --git a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart index f776e9fdc9..7b04acef7b 100644 --- a/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/typedef_test_bindings.dart @@ -94,88 +94,6 @@ extension AnotherClass$Methods on AnotherClass { } } -typedef CFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - ffi.Long allocSize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorAllocateCallBackFunction = - ffi.Pointer Function( - int allocSize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorCopyDescriptionCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFAllocatorDeallocateCallBackFunction = - ffi.Void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef DartCFAllocatorDeallocateCallBackFunction = - void Function(ffi.Pointer ptr, ffi.Pointer info); -typedef CFAllocatorPreferredSizeCallBackFunction = - ffi.Long Function( - ffi.Long size, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorPreferredSizeCallBackFunction = - int Function(int size, int hint, ffi.Pointer info); -typedef CFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - ffi.Long newsize, - ffi.UnsignedLong hint, - ffi.Pointer info, - ); -typedef DartCFAllocatorReallocateCallBackFunction = - ffi.Pointer Function( - ffi.Pointer ptr, - int newsize, - int hint, - ffi.Pointer info, - ); -typedef CFAllocatorReleaseCallBackFunction = - ffi.Void Function(ffi.Pointer info); -typedef DartCFAllocatorReleaseCallBackFunction = - void Function(ffi.Pointer info); -typedef CFAllocatorRetainCallBackFunction = - ffi.Pointer Function(ffi.Pointer info); -typedef CFComparatorFunctionFunction = - ffi.Long Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); -typedef DartCFComparatorFunctionFunction = - CFComparisonResult Function( - ffi.Pointer val1, - ffi.Pointer val2, - ffi.Pointer context, - ); - -enum CFComparisonResult { - kCFCompareLessThan(-1), - kCFCompareEqualTo(0), - kCFCompareGreaterThan(1); - - final int value; - const CFComparisonResult(this.value); - - static CFComparisonResult fromValue(int value) => switch (value) { - -1 => kCFCompareLessThan, - 0 => kCFCompareEqualTo, - 1 => kCFCompareGreaterThan, - _ => throw ArgumentError('Unknown value for CFComparisonResult: $value'), - }; -} - -typedef IMPFunction = ffi.Void Function(); -typedef DartIMPFunction = void Function(); -typedef ProcPtrFunction = ffi.Long Function(); -typedef DartProcPtrFunction = int Function(); -typedef Register68kProcPtrFunction = ffi.Void Function(); -typedef DartRegister68kProcPtrFunction = void Function(); - /// SomeClass extension type SomeClass._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -340,5 +258,3 @@ late final _sel_property = objc.registerName("property"); late final _sel_setProperty_ = objc.registerName("setProperty:"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; -typedef sig_tFunction = ffi.Void Function(ffi.Int); -typedef Dartsig_tFunction = void Function(int); From 79643a180abf8c685ce0fee63cec71c5d99ae180 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 14:38:52 +1000 Subject: [PATCH 16/54] wip --- .../lib/src/config_provider/config.dart | 206 ++---------------- .../lib/src/config_provider/config_types.dart | 2 - .../lib/src/config_provider/yaml_config.dart | 16 +- .../function_n_struct_test.dart | 90 ++++---- .../header_parser_tests/globals_test.dart | 100 +++++---- .../unit_tests/filtering_visitor_test.dart | 4 +- .../unit_tests/renaming_visitor_test.dart | 12 +- 7 files changed, 133 insertions(+), 297 deletions(-) diff --git a/pkgs/ffigen/lib/src/config_provider/config.dart b/pkgs/ffigen/lib/src/config_provider/config.dart index 5c19e8a85b..fadf6d1d65 100644 --- a/pkgs/ffigen/lib/src/config_provider/config.dart +++ b/pkgs/ffigen/lib/src/config_provider/config.dart @@ -105,15 +105,15 @@ final class FfiGenerator { const FfiGenerator({ this.input = const Input(), - this.enums = Enums.excludeAll, - this.functions = Functions.excludeAll, - this.globals = Globals.excludeAll, - this.macros = Macros.excludeAll, - this.structs = Structs.excludeAll, + this.enums = const Enums(), + this.functions = const Functions(), + this.globals = const Globals(), + this.macros = const Macros(), + this.structs = const Structs(), this.cpp, - this.typedefs = Typedefs.excludeAll, - this.unions = Unions.excludeAll, - this.unnamedEnums = UnnamedEnums.excludeAll, + this.typedefs = const Typedefs(), + this.unions = const Unions(), + this.unnamedEnums = const UnnamedEnums(), this.objectiveC, required this.output, this.visitors = const [], @@ -159,67 +159,16 @@ final class Input { /// Configuration for declarations. final class Declarations { - /// Whether to include the given declaration. - /// - /// ```dart - /// // This includes `Foo`, and nothing else: - /// include: (Declaration decl) => decl.originalName == 'Foo' - /// ``` - final bool Function(Declaration declaration) include; - - /// A function to pass to [include] that excludes all declarations. - static bool excludeAll(Declaration declaration) => false; - - /// A function to pass to [include] that includes all declarations. - static bool includeAll(Declaration declaration) => true; - - /// Returns a function to pass to [include] that includes all declarations - /// whose `originalName`s are in [names]. - static bool Function(Declaration) includeSet(Set names) => - (Declaration decl) => names.contains(decl.originalName); - - /// Whether the member of the declaration should be included. - /// - /// Only used for [Categories], [Interfaces], and [Protocols] methods and - /// properties. For Objective-C methods, this is the method selector, eg - /// `"arrayWithObjects:count:"`. - /// - /// Note that using [includeMember] to include a member of a class doesn't - /// affect whether the class is included. You'll also need to set [include] - /// for the class (this will be fixed in a future version of the API). - /// - /// ```dart - /// // This includes `Foo.bar`, and no other methods of `Foo`: - /// includeMember: (Declaration declaration, String member) => - /// ``` - // TODO(https://github.com/dart-lang/native/issues/2770): Merge with include. - final bool Function(Declaration declaration, String member) includeMember; - - /// A function to pass to [includeMember] that includes all members of all - /// declarations. - static bool includeAllMembers(Declaration declaration, String member) => true; - - /// A function to pass to [includeMember] that includes specific members. - /// - /// The map key is the declaration's `originalName`, and the value is the set - /// of member names to include. If the declaration is not in the map, all its - /// members are included. - static bool Function(Declaration, String) includeMemberSet( - Map> members, - ) => - (Declaration decl, String member) => - members[decl.originalName]?.contains(member) ?? true; - /// Whether the symbol address should be exposed for this declaration. /// /// The address is exposed as an FFI pointer. final bool Function(Declaration declaration) includeSymbolAddress; const Declarations({ - this.include = excludeAll, - this.includeMember = includeAllMembers, - this.includeSymbolAddress = excludeAll, + this.includeSymbolAddress = _includeSymbolAddressDefault, }); + + static bool _includeSymbolAddressDefault(Declaration declaration) => false; } /// Configuration for enum declarations. @@ -250,18 +199,7 @@ final class Enums extends Declarations { /// Whether to silence warning for enum integer type mimicking. final bool silenceWarning; - const Enums({ - super.include, - this.style = _styleDefault, - this.silenceWarning = false, - }); - - static const excludeAll = Enums(include: Declarations.excludeAll); - - static const includeAll = Enums(include: Declarations.includeAll); - - static Enums includeSet(Set names) => - Enums(include: Declarations.includeSet(names)); + const Enums({this.style = _styleDefault, this.silenceWarning = false}); } /// Configuration for how to generate enums. @@ -308,44 +246,22 @@ final class Functions extends Declarations { final Map> varArgs; const Functions({ - super.include, super.includeSymbolAddress, this.includeTypedef = _includeTypedefDefault, this.isLeaf = _isLeafDefault, this.recordUse = _recordUseDefault, this.varArgs = const >{}, }); - - static const excludeAll = Functions(include: Declarations.excludeAll); - - static const includeAll = Functions(include: Declarations.includeAll); - - static Functions includeSet(Set names) => - Functions(include: Declarations.includeSet(names)); } /// Configuration for globals. final class Globals extends Declarations { - const Globals({super.include, super.includeSymbolAddress}); - - static const excludeAll = Globals(include: Declarations.excludeAll); - - static const includeAll = Globals(include: Declarations.includeAll); - - static Globals includeSet(Set names) => - Globals(include: Declarations.includeSet(names)); + const Globals({super.includeSymbolAddress}); } /// Configuration for macros. final class Macros extends Declarations { - const Macros({super.include}); - - static const excludeAll = Macros(include: Declarations.excludeAll); - - static const includeAll = Macros(include: Declarations.includeAll); - - static Macros includeSet(Set names) => - Macros(include: Declarations.includeSet(names)); + const Macros(); } /// Configuration for struct declarations. @@ -359,17 +275,9 @@ final class Structs extends Declarations { static PackingValue? _packingOverrideDefault(Declaration declaration) => null; const Structs({ - super.include, this.dependencies = CompoundDependencies.opaque, this.packingOverride = _packingOverrideDefault, }); - - static const excludeAll = Structs(include: Declarations.excludeAll); - - static const includeAll = Structs(include: Declarations.includeAll); - - static Structs includeSet(Set names) => - Structs(include: Declarations.includeSet(names)); } /// Configuration for typedefs. @@ -382,28 +290,14 @@ final class Typedefs extends Declarations { final bool useSupportedTypedefs; const Typedefs({ - super.include, this.useSupportedTypedefs = true, this.includeUnused = false, }); - - static const Typedefs excludeAll = Typedefs(include: Declarations.excludeAll); - - static const Typedefs includeAll = Typedefs(include: Declarations.includeAll); - - static Typedefs includeSet(Set names) => - Typedefs(include: Declarations.includeSet(names)); } /// Configuration for C++ class declarations. final class CppClasses extends Declarations { - const CppClasses({super.include}); - - static const excludeAll = CppClasses(include: Declarations.excludeAll); - static const includeAll = CppClasses(include: Declarations.includeAll); - - static CppClasses includeSet(Set names) => - CppClasses(include: Declarations.includeSet(names)); + const CppClasses(); } /// Configuration for C++. @@ -411,7 +305,7 @@ final class Cpp { /// Declaration filters for C++ classes. final CppClasses classes; - const Cpp({this.classes = CppClasses.excludeAll}); + const Cpp({this.classes = const CppClasses()}); } /// Configuration for union declarations. @@ -419,29 +313,12 @@ final class Unions extends Declarations { /// Whether unions that are dependencies should be included. final CompoundDependencies dependencies; - const Unions({ - super.include, - this.dependencies = CompoundDependencies.opaque, - }); - - static const excludeAll = Unions(include: Declarations.excludeAll); - - static const includeAll = Unions(include: Declarations.includeAll); - - static Unions includeSet(Set names) => - Unions(include: Declarations.includeSet(names)); + const Unions({this.dependencies = CompoundDependencies.opaque}); } /// Configuration for unnamed enum constants. final class UnnamedEnums extends Declarations { - const UnnamedEnums({super.include}); - - static const excludeAll = UnnamedEnums(include: Declarations.excludeAll); - - static const includeAll = UnnamedEnums(include: Declarations.includeAll); - - static UnnamedEnums includeSet(Set names) => - UnnamedEnums(include: Declarations.includeSet(names)); + const UnnamedEnums(); } /// Configuration for Objective-C. @@ -468,9 +345,9 @@ final class ObjectiveC { final ExternalVersions externalVersions; const ObjectiveC({ - this.categories = Categories.excludeAll, - this.interfaces = Interfaces.excludeAll, - this.protocols = Protocols.excludeAll, + this.categories = const Categories(), + this.interfaces = const Interfaces(), + this.protocols = const Protocols(), this.externalVersions = const ExternalVersions(), @Deprecated('Only for internal use.') this.generateForPackageObjectiveC = false, @@ -485,18 +362,7 @@ final class Categories extends Declarations { /// transitively included categories will not be generated at all. final bool includeTransitive; - const Categories({ - super.include, - super.includeMember, - this.includeTransitive = true, - }); - - static const excludeAll = Categories(include: Declarations.excludeAll); - - static const includeAll = Categories(include: Declarations.includeAll); - - static Categories includeSet(Set names) => - Categories(include: Declarations.includeSet(names)); + const Categories({this.includeTransitive = true}); } /// Configuration for Objective-C interfaces. @@ -510,19 +376,7 @@ final class Interfaces extends Declarations { /// The module that the Objective-C interface belongs to. final String? Function(Declaration declaration) module; - const Interfaces({ - super.include, - super.includeMember, - this.includeTransitive = false, - this.module = noModule, - }); - - static const excludeAll = Interfaces(include: Declarations.excludeAll); - - static const includeAll = Interfaces(include: Declarations.includeAll); - - static Interfaces includeSet(Set names) => - Interfaces(include: Declarations.includeSet(names)); + const Interfaces({this.includeTransitive = false, this.module = noModule}); static String? noModule(Declaration declaration) => null; } @@ -538,19 +392,7 @@ final class Protocols extends Declarations { /// The module that the Objective-C protocol belongs to. final String? Function(Declaration declaration) module; - const Protocols({ - super.include, - super.includeMember, - this.includeTransitive = false, - this.module = noModule, - }); - - static const excludeAll = Protocols(include: Declarations.excludeAll); - - static const includeAll = Protocols(include: Declarations.includeAll); - - static Protocols includeSet(Set names) => - Protocols(include: Declarations.includeSet(names)); + const Protocols({this.includeTransitive = false, this.module = noModule}); static String? noModule(Declaration declaration) => null; } diff --git a/pkgs/ffigen/lib/src/config_provider/config_types.dart b/pkgs/ffigen/lib/src/config_provider/config_types.dart index f66c79c544..4e0e3f6a35 100644 --- a/pkgs/ffigen/lib/src/config_provider/config_types.dart +++ b/pkgs/ffigen/lib/src/config_provider/config_types.dart @@ -148,9 +148,7 @@ final class YamlDeclarationFilters { Declarations configAdapter() { return Declarations( - include: shouldInclude, includeSymbolAddress: shouldIncludeSymbolAddress, - includeMember: shouldIncludeMember, ); } } diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index d437ea9624..c2ac9dddf4 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -1263,20 +1263,17 @@ final class YamlConfig { ), ), functions: Functions( - include: functionDecl.shouldInclude, includeSymbolAddress: functionDecl.shouldIncludeSymbolAddress, varArgs: varArgFunctions, includeTypedef: shouldExposeFunctionTypedef, isLeaf: isLeafFunction, ), structs: Structs( - include: _structDecl.shouldInclude, dependencies: _structDependencies, packingOverride: (decl) => _structPackingOverride.getOverridenPackValue(decl.originalName), ), enums: Enums( - include: _enumClassDecl.shouldInclude, silenceWarning: silenceEnumWarning, style: (e, suggestedStyle) { if (suggestedStyle != null) return suggestedStyle; @@ -1287,17 +1284,14 @@ final class YamlConfig { }, ), unions: Unions( - include: _unionDecl.shouldInclude, dependencies: _unionDependencies, ), - unnamedEnums: UnnamedEnums(include: _unnamedEnumConstants.shouldInclude), + unnamedEnums: const UnnamedEnums(), globals: Globals( - include: globals.shouldInclude, includeSymbolAddress: globals.shouldIncludeSymbolAddress, ), - macros: Macros(include: macroDecl.shouldInclude), + macros: const Macros(), typedefs: Typedefs( - include: typedefs.shouldInclude, useSupportedTypedefs: useSupportedTypedefs, includeUnused: includeUnusedTypedefs, ), @@ -1305,20 +1299,14 @@ final class YamlConfig { objectiveC: language == Language.objc ? ObjectiveC( interfaces: Interfaces( - include: objcInterfaces.shouldInclude, - includeMember: objcInterfaces.shouldIncludeMember, includeTransitive: includeTransitiveObjCInterfaces, module: interfaceModule, ), protocols: Protocols( - include: objcProtocols.shouldInclude, - includeMember: objcProtocols.shouldIncludeMember, includeTransitive: includeTransitiveObjCProtocols, module: protocolModule, ), categories: Categories( - include: objcCategories.shouldInclude, - includeMember: objcCategories.shouldIncludeMember, includeTransitive: includeTransitiveObjCCategories, ), externalVersions: externalVersions, diff --git a/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart b/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart index 5a6646d8a4..e3fe3b8fca 100644 --- a/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart @@ -99,50 +99,54 @@ Library expectedLibrary() { members: [CompoundMember(name: 'a', type: struct1)], ); final struct3 = Struct(context: context, name: 'Struct3'); + final rawBindings = [ + struct1, + struct2, + struct3, + Func( + name: 'func1', + parameters: [ + Parameter(name: 's', type: PointerType(struct2), objCConsumed: false), + ], + returnType: NativeType(SupportedNativeType.voidType), + ), + Func( + name: 'func2', + parameters: [ + Parameter(name: 's', type: PointerType(struct3), objCConsumed: false), + ], + returnType: NativeType(SupportedNativeType.voidType), + ), + Func( + name: 'func3', + parameters: [ + Parameter(name: 'a', type: PointerType(intType), objCConsumed: false), + ], + returnType: NativeType(SupportedNativeType.voidType), + ), + Struct(context: context, name: 'Struct4'), + Struct(context: context, name: 'Struct5'), + Struct( + context: context, + name: 'Struct6', + members: [ + CompoundMember( + name: 'a', + type: ConstantArray( + 2, + ConstantArray(10, intType, useArrayType: false), + useArrayType: false, + ), + ), + ], + ), + Struct(context: context, name: 'Struct7'), + ]; + for (final b in rawBindings) { + (b as dynamic).isIncluded = true; + } return Library( context: context, - bindings: parser.transformBindings([ - struct1, - struct2, - struct3, - Func( - name: 'func1', - parameters: [ - Parameter(name: 's', type: PointerType(struct2), objCConsumed: false), - ], - returnType: NativeType(SupportedNativeType.voidType), - ), - Func( - name: 'func2', - parameters: [ - Parameter(name: 's', type: PointerType(struct3), objCConsumed: false), - ], - returnType: NativeType(SupportedNativeType.voidType), - ), - Func( - name: 'func3', - parameters: [ - Parameter(name: 'a', type: PointerType(intType), objCConsumed: false), - ], - returnType: NativeType(SupportedNativeType.voidType), - ), - Struct(context: context, name: 'Struct4'), - Struct(context: context, name: 'Struct5'), - Struct( - context: context, - name: 'Struct6', - members: [ - CompoundMember( - name: 'a', - type: ConstantArray( - 2, - ConstantArray(10, intType, useArrayType: false), - useArrayType: false, - ), - ), - ], - ), - Struct(context: context, name: 'Struct7'), - ], context), + bindings: parser.transformBindings(rawBindings, context), ); } diff --git a/pkgs/ffigen/test/header_parser_tests/globals_test.dart b/pkgs/ffigen/test/header_parser_tests/globals_test.dart index b0d4c32596..6316a65bed 100644 --- a/pkgs/ffigen/test/header_parser_tests/globals_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/globals_test.dart @@ -102,55 +102,59 @@ Library expectedLibrary() { name: 'EmptyStruct_Alias', type: globalStruct, ); + final rawBindings = [ + Global(type: BooleanType(), name: 'coolGlobal'), + Global( + type: NativeType(SupportedNativeType.int32), + name: 'myInt', + exposeSymbolAddress: true, + ), + Global( + type: PointerType(NativeType(SupportedNativeType.int32)), + name: 'aGlobalPointer0', + exposeSymbolAddress: true, + ), + Global( + type: PointerType(NativeType(SupportedNativeType.int32)), + name: 'aGlobalPointer1', + exposeSymbolAddress: true, + constant: true, + ), + Global( + type: PointerType(NativeType(SupportedNativeType.int32)), + name: 'aGlobalPointer2', + exposeSymbolAddress: true, + ), + Global( + type: PointerType(NativeType(SupportedNativeType.int32)), + name: 'aGlobalPointer3', + exposeSymbolAddress: true, + constant: true, + ), + Global( + type: ConstantArray(3, intType, useArrayType: false), + name: 'globalArray0', + exposeSymbolAddress: true, + constant: true, + ), + globalStruct, + Global( + name: 'globalStruct', + type: globalStruct, + exposeSymbolAddress: true, + ), + globalStructAlias, + Global( + name: 'globalStruct_from_alias', + type: globalStructAlias, + exposeSymbolAddress: true, + ), + ]; + for (final b in rawBindings) { + (b as dynamic).isIncluded = true; + } return Library( context: context, - bindings: parser.transformBindings([ - Global(type: BooleanType(), name: 'coolGlobal'), - Global( - type: NativeType(SupportedNativeType.int32), - name: 'myInt', - exposeSymbolAddress: true, - ), - Global( - type: PointerType(NativeType(SupportedNativeType.int32)), - name: 'aGlobalPointer0', - exposeSymbolAddress: true, - ), - Global( - type: PointerType(NativeType(SupportedNativeType.int32)), - name: 'aGlobalPointer1', - exposeSymbolAddress: true, - constant: true, - ), - Global( - type: PointerType(NativeType(SupportedNativeType.int32)), - name: 'aGlobalPointer2', - exposeSymbolAddress: true, - ), - Global( - type: PointerType(NativeType(SupportedNativeType.int32)), - name: 'aGlobalPointer3', - exposeSymbolAddress: true, - constant: true, - ), - Global( - type: ConstantArray(3, intType, useArrayType: false), - name: 'globalArray0', - exposeSymbolAddress: true, - constant: true, - ), - globalStruct, - Global( - name: 'globalStruct', - type: globalStruct, - exposeSymbolAddress: true, - ), - globalStructAlias, - Global( - name: 'globalStruct_from_alias', - type: globalStructAlias, - exposeSymbolAddress: true, - ), - ], context), + bindings: parser.transformBindings(rawBindings, context), ); } diff --git a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart index edba1345e8..96f284cbd4 100644 --- a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart +++ b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart @@ -118,7 +118,7 @@ final class FilteringVisitor extends public_ast.Visitor { void main() { group('FilteringVisitor Tests', () { - test('isIncluded defaults to false on Bindings and ObjCMethod', () { + test('isIncluded defaults to false on Bindings and true on ObjCMethod', () { final context = testContext( FfiGenerator(output: Output(dartFile: Uri.file('out.dart'))), ); @@ -144,7 +144,7 @@ void main() { ownershipAttribute: null, consumesSelfAttribute: false, ); - expect(method.isIncluded, isFalse); + expect(method.isIncluded, isTrue); }); test('Custom Visitor setting isIncluded = false', () { diff --git a/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart b/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart index ee4f0dff32..d3c972634d 100644 --- a/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart +++ b/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart @@ -140,9 +140,10 @@ void main() { )..addMethod(objcMethod); final rawBindings = [func, struct, enumClass, objcInterface]; - for (final b in rawBindings) { - b.isIncluded = true; - } + func.isIncluded = true; + struct.isIncluded = true; + enumClass.isIncluded = true; + objcInterface.isIncluded = true; final nodes = rawBindings .map((b) => b.toPublicAstNode()) .nonNulls @@ -490,9 +491,8 @@ objc-interfaces: ); final rawBindings = [func, struct]; - for (final b in rawBindings) { - b.isIncluded = true; - } + func.isIncluded = true; + struct.isIncluded = true; final nodes = rawBindings .map((b) => b.toPublicAstNode()) .nonNulls From 80e8e1d9c8d45c2bc1f77005c9e6edaec8ddb906 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 14:52:02 +1000 Subject: [PATCH 17/54] restore comment --- .../lib/src/code_generator/objc_built_in_functions.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart index 639b8e9d72..0717574dca 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart @@ -102,6 +102,10 @@ class ObjCBuiltInFunctions { (String, String) _methodSigId(Type returnType, List params) { final paramIds = []; for (final p in params) { + // The trampoline ID is based on the getNativeType of the param. Objects + // and blocks both have `id` as their native type, but need separate + // trampolines since they have different retain functions. So add the + // retain function (if any) to all the param IDs. paramIds.add( p.getNativeType(context, varName: p.type.generateRetain('') ?? ''), ); From 7de78e5c4ddf09134efe8025643625ddc8a09c70 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 14:56:02 +1000 Subject: [PATCH 18/54] revert unnecessary diff --- .../src/code_generator/objc_interface.dart | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart index 18fe0614f2..3b77756712 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart @@ -79,22 +79,22 @@ class ObjCInterface extends BindingType with ObjCMethods, HasLocalScope { isInternal: true, ); for (final p in params) { - final method = ObjCMethod( - context: context, - originalName: p.originalName, - name: p.originalName, - kind: ObjCMethodKind.propertyGetter, - isClassMethod: false, - isOptional: false, - returnType: p.type, - params: const [], - family: null, - apiAvailability: ApiAvailability.all, - ownershipAttribute: ObjCMethodOwnership.notRetained, - consumesSelfAttribute: false, + itf.addMethod( + ObjCMethod( + context: context, + originalName: p.originalName, + name: p.originalName, + kind: ObjCMethodKind.propertyGetter, + isClassMethod: false, + isOptional: false, + returnType: p.type, + params: const [], + family: null, + apiAvailability: ApiAvailability.all, + ownershipAttribute: ObjCMethodOwnership.notRetained, + consumesSelfAttribute: false, + ), ); - method.isIncluded = true; - itf.addMethod(method); } return itf; } From 592673fc49e6f6c03bffc2e385343871db41e319 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 14:57:23 +1000 Subject: [PATCH 19/54] revert spurious diff --- .../lib/src/code_generator/objc_methods.dart | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart index 6da65e018e..7405792596 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart @@ -217,20 +217,6 @@ class ObjCMethod extends AstNode with HasLocalScope { @override void visitChildren(Visitor visitor, {bool omitMethodName = false}) { super.visitChildren(visitor); - if (isClassMethod && parent != null) { - final interface = parent is ObjCInterface - ? (parent as ObjCInterface) - : parent is ObjCCategory - ? (parent as ObjCCategory).parent - : null; - if (interface != null) { - interface.fillClassObject(); - final clsObj = interface.classObject; - if (clsObj != null) { - visitor.visit(clsObj); - } - } - } if (!omitMethodName) { visitor.visit(symbol); visitor.visit(protocolMethodName); From 243c02bcc18c45c8bbc45101cf8f4a127bd92b42 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 15:03:29 +1000 Subject: [PATCH 20/54] revert scope --- pkgs/ffigen/lib/src/code_generator/scope.dart | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/scope.dart b/pkgs/ffigen/lib/src/code_generator/scope.dart index 282875ed64..fceeda512d 100644 --- a/pkgs/ffigen/lib/src/code_generator/scope.dart +++ b/pkgs/ffigen/lib/src/code_generator/scope.dart @@ -75,7 +75,7 @@ class Scope { void _fillNames(Set parentUsedNames) { assert(!_filled); - final namer = Namer(parentUsedNames, Set.of(_preUsedNames)); + final namer = Namer(parentUsedNames.union(_preUsedNames)); _namer = namer; for (final symbol in _symbols) { if (symbol._name == null) { @@ -93,13 +93,8 @@ class Scope { ); } } - final currentUsedNames = namer._used.isEmpty - ? parentUsedNames - : (parentUsedNames.isEmpty - ? namer._used - : parentUsedNames.union(namer._used)); for (final ns in _children) { - ns._fillNames(currentUsedNames); + ns._fillNames(namer._used); } } @@ -133,10 +128,9 @@ class Scope { /// This class is used internally by [Scope] to name [Symbol]s, and 99% of the /// time you should use those instead of this. class Namer { - final Set? _parentUsed; final Set _used; - Namer([this._parentUsed, Set? preUsed]) : _used = preUsed ?? {}; + Namer(this._used); String add(String name, SymbolKind kind) { if (name.isEmpty) name = 'unnamed'; @@ -151,8 +145,7 @@ class Namer { return newName; } - bool isUsed(String name) => - _used.contains(name) || (_parentUsed?.contains(name) ?? false); + bool isUsed(String name) => _used.contains(name); void markUsed(String name) => _used.add(name); /// Returns a version of [name] that can safely be used in C code. Not From 5c368de180cff956e5c62c0047060159b23cd8f9 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 15:05:09 +1000 Subject: [PATCH 21/54] fix tests --- .../_expected_record_use_bindings.dart | 10 + .../_expected_record_use_mapping.dart | 7 + .../header_parser_tests/record_use_test.dart | 1 + .../_expected_cjson_bindings.dart | 1295 ++ .../_expected_libclang_bindings.dart | 9113 ++++++++++ .../_expected_sqlite_bindings.dart | 14410 ++++++++++++++++ .../large_integration_tests/large_test.dart | 32 + .../objc_inheritance_edge_case_test.dart | 4 +- 8 files changed, 24870 insertions(+), 2 deletions(-) create mode 100644 pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_mapping.dart diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart index dc0a0df2be..23f64da8b3 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_bindings.dart @@ -2,3 +2,13 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; +import 'package:meta/meta.dart' as meta; + +@meta.RecordUse() +@ffi.Native(symbol: 'sum') +external int add(int a, int b); + +@meta.RecordUse() +@ffi.Native() +external void nop(); diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_mapping.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_mapping.dart new file mode 100644 index 0000000000..4c0a3b19df --- /dev/null +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_record_use_mapping.dart @@ -0,0 +1,7 @@ +// AUTO GENERATED FILE, DO NOT EDIT. +// +// Generated by `package:ffigen`. +// ignore_for_file: type=lint + +/// Mapping from Dart function name to native symbol name. +const recordUseMapping = {'add': 'sum', 'nop': 'nop'}; diff --git a/pkgs/ffigen/test/header_parser_tests/record_use_test.dart b/pkgs/ffigen/test/header_parser_tests/record_use_test.dart index 6926ae07f2..dc94f835f2 100644 --- a/pkgs/ffigen/test/header_parser_tests/record_use_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/record_use_test.dart @@ -21,6 +21,7 @@ void main() { visitors: [ Visitor( visitFunc: (node) { + node.isIncluded = true; if (node.name == 'sum') { node.name = 'add'; } diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart index dc0a0df2be..b2e87d134f 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_cjson_bindings.dart @@ -2,3 +2,1298 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +/// Bindings to Cjson. +class CJson { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + CJson(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + CJson.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + ffi.Pointer cJSON_AddArrayToObject( + ffi.Pointer object, + ffi.Pointer name, + ) { + return _cJSON_AddArrayToObject(object, name); + } + + late final _cJSON_AddArrayToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_AddArrayToObject'); + late final _cJSON_AddArrayToObject = _cJSON_AddArrayToObjectPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); + + ffi.Pointer cJSON_AddBoolToObject( + ffi.Pointer object, + ffi.Pointer name, + int boolean, + ) { + return _cJSON_AddBoolToObject(object, name, boolean); + } + + late final _cJSON_AddBoolToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + cJSON_bool, + ) + > + >('cJSON_AddBoolToObject'); + late final _cJSON_AddBoolToObject = _cJSON_AddBoolToObjectPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + ffi.Pointer cJSON_AddFalseToObject( + ffi.Pointer object, + ffi.Pointer name, + ) { + return _cJSON_AddFalseToObject(object, name); + } + + late final _cJSON_AddFalseToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_AddFalseToObject'); + late final _cJSON_AddFalseToObject = _cJSON_AddFalseToObjectPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); + + void cJSON_AddItemReferenceToArray( + ffi.Pointer array, + ffi.Pointer item, + ) { + return _cJSON_AddItemReferenceToArray(array, item); + } + + late final _cJSON_AddItemReferenceToArrayPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_AddItemReferenceToArray'); + late final _cJSON_AddItemReferenceToArray = _cJSON_AddItemReferenceToArrayPtr + .asFunction, ffi.Pointer)>(); + + void cJSON_AddItemReferenceToObject( + ffi.Pointer object, + ffi.Pointer string, + ffi.Pointer item, + ) { + return _cJSON_AddItemReferenceToObject(object, string, item); + } + + late final _cJSON_AddItemReferenceToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('cJSON_AddItemReferenceToObject'); + late final _cJSON_AddItemReferenceToObject = + _cJSON_AddItemReferenceToObjectPtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + void cJSON_AddItemToArray(ffi.Pointer array, ffi.Pointer item) { + return _cJSON_AddItemToArray(array, item); + } + + late final _cJSON_AddItemToArrayPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_AddItemToArray'); + late final _cJSON_AddItemToArray = _cJSON_AddItemToArrayPtr + .asFunction, ffi.Pointer)>(); + + void cJSON_AddItemToObject( + ffi.Pointer object, + ffi.Pointer string, + ffi.Pointer item, + ) { + return _cJSON_AddItemToObject(object, string, item); + } + + late final _cJSON_AddItemToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('cJSON_AddItemToObject'); + late final _cJSON_AddItemToObject = _cJSON_AddItemToObjectPtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + void cJSON_AddItemToObjectCS( + ffi.Pointer object, + ffi.Pointer string, + ffi.Pointer item, + ) { + return _cJSON_AddItemToObjectCS(object, string, item); + } + + late final _cJSON_AddItemToObjectCSPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('cJSON_AddItemToObjectCS'); + late final _cJSON_AddItemToObjectCS = _cJSON_AddItemToObjectCSPtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + ffi.Pointer cJSON_AddNullToObject( + ffi.Pointer object, + ffi.Pointer name, + ) { + return _cJSON_AddNullToObject(object, name); + } + + late final _cJSON_AddNullToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_AddNullToObject'); + late final _cJSON_AddNullToObject = _cJSON_AddNullToObjectPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); + + ffi.Pointer cJSON_AddNumberToObject( + ffi.Pointer object, + ffi.Pointer name, + double number, + ) { + return _cJSON_AddNumberToObject(object, name, number); + } + + late final _cJSON_AddNumberToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >('cJSON_AddNumberToObject'); + late final _cJSON_AddNumberToObject = _cJSON_AddNumberToObjectPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); + + ffi.Pointer cJSON_AddObjectToObject( + ffi.Pointer object, + ffi.Pointer name, + ) { + return _cJSON_AddObjectToObject(object, name); + } + + late final _cJSON_AddObjectToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_AddObjectToObject'); + late final _cJSON_AddObjectToObject = _cJSON_AddObjectToObjectPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); + + ffi.Pointer cJSON_AddRawToObject( + ffi.Pointer object, + ffi.Pointer name, + ffi.Pointer raw, + ) { + return _cJSON_AddRawToObject(object, name, raw); + } + + late final _cJSON_AddRawToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('cJSON_AddRawToObject'); + late final _cJSON_AddRawToObject = _cJSON_AddRawToObjectPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + ffi.Pointer cJSON_AddStringToObject( + ffi.Pointer object, + ffi.Pointer name, + ffi.Pointer string, + ) { + return _cJSON_AddStringToObject(object, name, string); + } + + late final _cJSON_AddStringToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('cJSON_AddStringToObject'); + late final _cJSON_AddStringToObject = _cJSON_AddStringToObjectPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + ffi.Pointer cJSON_AddTrueToObject( + ffi.Pointer object, + ffi.Pointer name, + ) { + return _cJSON_AddTrueToObject(object, name); + } + + late final _cJSON_AddTrueToObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_AddTrueToObject'); + late final _cJSON_AddTrueToObject = _cJSON_AddTrueToObjectPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); + + int cJSON_Compare( + ffi.Pointer a, + ffi.Pointer b, + int case_sensitive, + ) { + return _cJSON_Compare(a, b, case_sensitive); + } + + late final _cJSON_ComparePtr = + _lookup< + ffi.NativeFunction< + cJSON_bool Function( + ffi.Pointer, + ffi.Pointer, + cJSON_bool, + ) + > + >('cJSON_Compare'); + late final _cJSON_Compare = _cJSON_ComparePtr + .asFunction, ffi.Pointer, int)>(); + + ffi.Pointer cJSON_CreateArray() { + return _cJSON_CreateArray(); + } + + late final _cJSON_CreateArrayPtr = + _lookup Function()>>( + 'cJSON_CreateArray', + ); + late final _cJSON_CreateArray = _cJSON_CreateArrayPtr + .asFunction Function()>(); + + ffi.Pointer cJSON_CreateArrayReference(ffi.Pointer child) { + return _cJSON_CreateArrayReference(child); + } + + late final _cJSON_CreateArrayReferencePtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('cJSON_CreateArrayReference'); + late final _cJSON_CreateArrayReference = _cJSON_CreateArrayReferencePtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer cJSON_CreateBool(int boolean) { + return _cJSON_CreateBool(boolean); + } + + late final _cJSON_CreateBoolPtr = + _lookup Function(cJSON_bool)>>( + 'cJSON_CreateBool', + ); + late final _cJSON_CreateBool = _cJSON_CreateBoolPtr + .asFunction Function(int)>(); + + ffi.Pointer cJSON_CreateDoubleArray( + ffi.Pointer numbers, + int count, + ) { + return _cJSON_CreateDoubleArray(numbers, count); + } + + late final _cJSON_CreateDoubleArrayPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('cJSON_CreateDoubleArray'); + late final _cJSON_CreateDoubleArray = _cJSON_CreateDoubleArrayPtr + .asFunction Function(ffi.Pointer, int)>(); + + ffi.Pointer cJSON_CreateFalse() { + return _cJSON_CreateFalse(); + } + + late final _cJSON_CreateFalsePtr = + _lookup Function()>>( + 'cJSON_CreateFalse', + ); + late final _cJSON_CreateFalse = _cJSON_CreateFalsePtr + .asFunction Function()>(); + + ffi.Pointer cJSON_CreateFloatArray( + ffi.Pointer numbers, + int count, + ) { + return _cJSON_CreateFloatArray(numbers, count); + } + + late final _cJSON_CreateFloatArrayPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('cJSON_CreateFloatArray'); + late final _cJSON_CreateFloatArray = _cJSON_CreateFloatArrayPtr + .asFunction Function(ffi.Pointer, int)>(); + + ffi.Pointer cJSON_CreateIntArray( + ffi.Pointer numbers, + int count, + ) { + return _cJSON_CreateIntArray(numbers, count); + } + + late final _cJSON_CreateIntArrayPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('cJSON_CreateIntArray'); + late final _cJSON_CreateIntArray = _cJSON_CreateIntArrayPtr + .asFunction Function(ffi.Pointer, int)>(); + + ffi.Pointer cJSON_CreateNull() { + return _cJSON_CreateNull(); + } + + late final _cJSON_CreateNullPtr = + _lookup Function()>>( + 'cJSON_CreateNull', + ); + late final _cJSON_CreateNull = _cJSON_CreateNullPtr + .asFunction Function()>(); + + ffi.Pointer cJSON_CreateNumber(double num) { + return _cJSON_CreateNumber(num); + } + + late final _cJSON_CreateNumberPtr = + _lookup Function(ffi.Double)>>( + 'cJSON_CreateNumber', + ); + late final _cJSON_CreateNumber = _cJSON_CreateNumberPtr + .asFunction Function(double)>(); + + ffi.Pointer cJSON_CreateObject() { + return _cJSON_CreateObject(); + } + + late final _cJSON_CreateObjectPtr = + _lookup Function()>>( + 'cJSON_CreateObject', + ); + late final _cJSON_CreateObject = _cJSON_CreateObjectPtr + .asFunction Function()>(); + + ffi.Pointer cJSON_CreateObjectReference(ffi.Pointer child) { + return _cJSON_CreateObjectReference(child); + } + + late final _cJSON_CreateObjectReferencePtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('cJSON_CreateObjectReference'); + late final _cJSON_CreateObjectReference = _cJSON_CreateObjectReferencePtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer cJSON_CreateRaw(ffi.Pointer raw) { + return _cJSON_CreateRaw(raw); + } + + late final _cJSON_CreateRawPtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('cJSON_CreateRaw'); + late final _cJSON_CreateRaw = _cJSON_CreateRawPtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer cJSON_CreateString(ffi.Pointer string) { + return _cJSON_CreateString(string); + } + + late final _cJSON_CreateStringPtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('cJSON_CreateString'); + late final _cJSON_CreateString = _cJSON_CreateStringPtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer cJSON_CreateStringArray( + ffi.Pointer> strings, + int count, + ) { + return _cJSON_CreateStringArray(strings, count); + } + + late final _cJSON_CreateStringArrayPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer>, + ffi.Int, + ) + > + >('cJSON_CreateStringArray'); + late final _cJSON_CreateStringArray = _cJSON_CreateStringArrayPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer>, int) + >(); + + ffi.Pointer cJSON_CreateStringReference(ffi.Pointer string) { + return _cJSON_CreateStringReference(string); + } + + late final _cJSON_CreateStringReferencePtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('cJSON_CreateStringReference'); + late final _cJSON_CreateStringReference = _cJSON_CreateStringReferencePtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer cJSON_CreateTrue() { + return _cJSON_CreateTrue(); + } + + late final _cJSON_CreateTruePtr = + _lookup Function()>>( + 'cJSON_CreateTrue', + ); + late final _cJSON_CreateTrue = _cJSON_CreateTruePtr + .asFunction Function()>(); + + void cJSON_Delete(ffi.Pointer item) { + return _cJSON_Delete(item); + } + + late final _cJSON_DeletePtr = + _lookup)>>( + 'cJSON_Delete', + ); + late final _cJSON_Delete = _cJSON_DeletePtr + .asFunction)>(); + + void cJSON_DeleteItemFromArray(ffi.Pointer array, int which) { + return _cJSON_DeleteItemFromArray(array, which); + } + + late final _cJSON_DeleteItemFromArrayPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('cJSON_DeleteItemFromArray'); + late final _cJSON_DeleteItemFromArray = _cJSON_DeleteItemFromArrayPtr + .asFunction, int)>(); + + void cJSON_DeleteItemFromObject( + ffi.Pointer object, + ffi.Pointer string, + ) { + return _cJSON_DeleteItemFromObject(object, string); + } + + late final _cJSON_DeleteItemFromObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_DeleteItemFromObject'); + late final _cJSON_DeleteItemFromObject = _cJSON_DeleteItemFromObjectPtr + .asFunction, ffi.Pointer)>(); + + void cJSON_DeleteItemFromObjectCaseSensitive( + ffi.Pointer object, + ffi.Pointer string, + ) { + return _cJSON_DeleteItemFromObjectCaseSensitive(object, string); + } + + late final _cJSON_DeleteItemFromObjectCaseSensitivePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_DeleteItemFromObjectCaseSensitive'); + late final _cJSON_DeleteItemFromObjectCaseSensitive = + _cJSON_DeleteItemFromObjectCaseSensitivePtr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >(); + + ffi.Pointer cJSON_DetachItemFromArray( + ffi.Pointer array, + int which, + ) { + return _cJSON_DetachItemFromArray(array, which); + } + + late final _cJSON_DetachItemFromArrayPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('cJSON_DetachItemFromArray'); + late final _cJSON_DetachItemFromArray = _cJSON_DetachItemFromArrayPtr + .asFunction Function(ffi.Pointer, int)>(); + + ffi.Pointer cJSON_DetachItemFromObject( + ffi.Pointer object, + ffi.Pointer string, + ) { + return _cJSON_DetachItemFromObject(object, string); + } + + late final _cJSON_DetachItemFromObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_DetachItemFromObject'); + late final _cJSON_DetachItemFromObject = _cJSON_DetachItemFromObjectPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); + + ffi.Pointer cJSON_DetachItemFromObjectCaseSensitive( + ffi.Pointer object, + ffi.Pointer string, + ) { + return _cJSON_DetachItemFromObjectCaseSensitive(object, string); + } + + late final _cJSON_DetachItemFromObjectCaseSensitivePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_DetachItemFromObjectCaseSensitive'); + late final _cJSON_DetachItemFromObjectCaseSensitive = + _cJSON_DetachItemFromObjectCaseSensitivePtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); + + ffi.Pointer cJSON_DetachItemViaPointer( + ffi.Pointer parent, + ffi.Pointer item, + ) { + return _cJSON_DetachItemViaPointer(parent, item); + } + + late final _cJSON_DetachItemViaPointerPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_DetachItemViaPointer'); + late final _cJSON_DetachItemViaPointer = _cJSON_DetachItemViaPointerPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); + + ffi.Pointer cJSON_Duplicate(ffi.Pointer item, int recurse) { + return _cJSON_Duplicate(item, recurse); + } + + late final _cJSON_DuplicatePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, cJSON_bool) + > + >('cJSON_Duplicate'); + late final _cJSON_Duplicate = _cJSON_DuplicatePtr + .asFunction Function(ffi.Pointer, int)>(); + + ffi.Pointer cJSON_GetArrayItem(ffi.Pointer array, int index) { + return _cJSON_GetArrayItem(array, index); + } + + late final _cJSON_GetArrayItemPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('cJSON_GetArrayItem'); + late final _cJSON_GetArrayItem = _cJSON_GetArrayItemPtr + .asFunction Function(ffi.Pointer, int)>(); + + int cJSON_GetArraySize(ffi.Pointer array) { + return _cJSON_GetArraySize(array); + } + + late final _cJSON_GetArraySizePtr = + _lookup)>>( + 'cJSON_GetArraySize', + ); + late final _cJSON_GetArraySize = _cJSON_GetArraySizePtr + .asFunction)>(); + + ffi.Pointer cJSON_GetErrorPtr() { + return _cJSON_GetErrorPtr(); + } + + late final _cJSON_GetErrorPtrPtr = + _lookup Function()>>( + 'cJSON_GetErrorPtr', + ); + late final _cJSON_GetErrorPtr = _cJSON_GetErrorPtrPtr + .asFunction Function()>(); + + ffi.Pointer cJSON_GetObjectItem( + ffi.Pointer object, + ffi.Pointer string, + ) { + return _cJSON_GetObjectItem(object, string); + } + + late final _cJSON_GetObjectItemPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_GetObjectItem'); + late final _cJSON_GetObjectItem = _cJSON_GetObjectItemPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + >(); + + ffi.Pointer cJSON_GetObjectItemCaseSensitive( + ffi.Pointer object, + ffi.Pointer string, + ) { + return _cJSON_GetObjectItemCaseSensitive(object, string); + } + + late final _cJSON_GetObjectItemCaseSensitivePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_GetObjectItemCaseSensitive'); + late final _cJSON_GetObjectItemCaseSensitive = + _cJSON_GetObjectItemCaseSensitivePtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); + + ffi.Pointer cJSON_GetStringValue(ffi.Pointer item) { + return _cJSON_GetStringValue(item); + } + + late final _cJSON_GetStringValuePtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('cJSON_GetStringValue'); + late final _cJSON_GetStringValue = _cJSON_GetStringValuePtr + .asFunction Function(ffi.Pointer)>(); + + int cJSON_HasObjectItem( + ffi.Pointer object, + ffi.Pointer string, + ) { + return _cJSON_HasObjectItem(object, string); + } + + late final _cJSON_HasObjectItemPtr = + _lookup< + ffi.NativeFunction< + cJSON_bool Function(ffi.Pointer, ffi.Pointer) + > + >('cJSON_HasObjectItem'); + late final _cJSON_HasObjectItem = _cJSON_HasObjectItemPtr + .asFunction, ffi.Pointer)>(); + + void cJSON_InitHooks(ffi.Pointer hooks) { + return _cJSON_InitHooks(hooks); + } + + late final _cJSON_InitHooksPtr = + _lookup)>>( + 'cJSON_InitHooks', + ); + late final _cJSON_InitHooks = _cJSON_InitHooksPtr + .asFunction)>(); + + void cJSON_InsertItemInArray( + ffi.Pointer array, + int which, + ffi.Pointer newitem, + ) { + return _cJSON_InsertItemInArray(array, which, newitem); + } + + late final _cJSON_InsertItemInArrayPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) + > + >('cJSON_InsertItemInArray'); + late final _cJSON_InsertItemInArray = _cJSON_InsertItemInArrayPtr + .asFunction, int, ffi.Pointer)>(); + + int cJSON_IsArray(ffi.Pointer item) { + return _cJSON_IsArray(item); + } + + late final _cJSON_IsArrayPtr = + _lookup)>>( + 'cJSON_IsArray', + ); + late final _cJSON_IsArray = _cJSON_IsArrayPtr + .asFunction)>(); + + int cJSON_IsBool(ffi.Pointer item) { + return _cJSON_IsBool(item); + } + + late final _cJSON_IsBoolPtr = + _lookup)>>( + 'cJSON_IsBool', + ); + late final _cJSON_IsBool = _cJSON_IsBoolPtr + .asFunction)>(); + + int cJSON_IsFalse(ffi.Pointer item) { + return _cJSON_IsFalse(item); + } + + late final _cJSON_IsFalsePtr = + _lookup)>>( + 'cJSON_IsFalse', + ); + late final _cJSON_IsFalse = _cJSON_IsFalsePtr + .asFunction)>(); + + int cJSON_IsInvalid(ffi.Pointer item) { + return _cJSON_IsInvalid(item); + } + + late final _cJSON_IsInvalidPtr = + _lookup)>>( + 'cJSON_IsInvalid', + ); + late final _cJSON_IsInvalid = _cJSON_IsInvalidPtr + .asFunction)>(); + + int cJSON_IsNull(ffi.Pointer item) { + return _cJSON_IsNull(item); + } + + late final _cJSON_IsNullPtr = + _lookup)>>( + 'cJSON_IsNull', + ); + late final _cJSON_IsNull = _cJSON_IsNullPtr + .asFunction)>(); + + int cJSON_IsNumber(ffi.Pointer item) { + return _cJSON_IsNumber(item); + } + + late final _cJSON_IsNumberPtr = + _lookup)>>( + 'cJSON_IsNumber', + ); + late final _cJSON_IsNumber = _cJSON_IsNumberPtr + .asFunction)>(); + + int cJSON_IsObject(ffi.Pointer item) { + return _cJSON_IsObject(item); + } + + late final _cJSON_IsObjectPtr = + _lookup)>>( + 'cJSON_IsObject', + ); + late final _cJSON_IsObject = _cJSON_IsObjectPtr + .asFunction)>(); + + int cJSON_IsRaw(ffi.Pointer item) { + return _cJSON_IsRaw(item); + } + + late final _cJSON_IsRawPtr = + _lookup)>>( + 'cJSON_IsRaw', + ); + late final _cJSON_IsRaw = _cJSON_IsRawPtr + .asFunction)>(); + + int cJSON_IsString(ffi.Pointer item) { + return _cJSON_IsString(item); + } + + late final _cJSON_IsStringPtr = + _lookup)>>( + 'cJSON_IsString', + ); + late final _cJSON_IsString = _cJSON_IsStringPtr + .asFunction)>(); + + int cJSON_IsTrue(ffi.Pointer item) { + return _cJSON_IsTrue(item); + } + + late final _cJSON_IsTruePtr = + _lookup)>>( + 'cJSON_IsTrue', + ); + late final _cJSON_IsTrue = _cJSON_IsTruePtr + .asFunction)>(); + + void cJSON_Minify(ffi.Pointer json) { + return _cJSON_Minify(json); + } + + late final _cJSON_MinifyPtr = + _lookup)>>( + 'cJSON_Minify', + ); + late final _cJSON_Minify = _cJSON_MinifyPtr + .asFunction)>(); + + ffi.Pointer cJSON_Parse(ffi.Pointer value) { + return _cJSON_Parse(value); + } + + late final _cJSON_ParsePtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('cJSON_Parse'); + late final _cJSON_Parse = _cJSON_ParsePtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer cJSON_ParseWithOpts( + ffi.Pointer value, + ffi.Pointer> return_parse_end, + int require_null_terminated, + ) { + return _cJSON_ParseWithOpts( + value, + return_parse_end, + require_null_terminated, + ); + } + + late final _cJSON_ParseWithOptsPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer>, + cJSON_bool, + ) + > + >('cJSON_ParseWithOpts'); + late final _cJSON_ParseWithOpts = _cJSON_ParseWithOptsPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); + + ffi.Pointer cJSON_Print(ffi.Pointer item) { + return _cJSON_Print(item); + } + + late final _cJSON_PrintPtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('cJSON_Print'); + late final _cJSON_Print = _cJSON_PrintPtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer cJSON_PrintBuffered( + ffi.Pointer item, + int prebuffer, + int fmt, + ) { + return _cJSON_PrintBuffered(item, prebuffer, fmt); + } + + late final _cJSON_PrintBufferedPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + cJSON_bool, + ) + > + >('cJSON_PrintBuffered'); + late final _cJSON_PrintBuffered = _cJSON_PrintBufferedPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int, int) + >(); + + int cJSON_PrintPreallocated( + ffi.Pointer item, + ffi.Pointer buffer, + int length, + int format, + ) { + return _cJSON_PrintPreallocated(item, buffer, length, format); + } + + late final _cJSON_PrintPreallocatedPtr = + _lookup< + ffi.NativeFunction< + cJSON_bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + cJSON_bool, + ) + > + >('cJSON_PrintPreallocated'); + late final _cJSON_PrintPreallocated = _cJSON_PrintPreallocatedPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, int) + >(); + + ffi.Pointer cJSON_PrintUnformatted(ffi.Pointer item) { + return _cJSON_PrintUnformatted(item); + } + + late final _cJSON_PrintUnformattedPtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('cJSON_PrintUnformatted'); + late final _cJSON_PrintUnformatted = _cJSON_PrintUnformattedPtr + .asFunction Function(ffi.Pointer)>(); + + void cJSON_ReplaceItemInArray( + ffi.Pointer array, + int which, + ffi.Pointer newitem, + ) { + return _cJSON_ReplaceItemInArray(array, which, newitem); + } + + late final _cJSON_ReplaceItemInArrayPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Pointer) + > + >('cJSON_ReplaceItemInArray'); + late final _cJSON_ReplaceItemInArray = _cJSON_ReplaceItemInArrayPtr + .asFunction, int, ffi.Pointer)>(); + + void cJSON_ReplaceItemInObject( + ffi.Pointer object, + ffi.Pointer string, + ffi.Pointer newitem, + ) { + return _cJSON_ReplaceItemInObject(object, string, newitem); + } + + late final _cJSON_ReplaceItemInObjectPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('cJSON_ReplaceItemInObject'); + late final _cJSON_ReplaceItemInObject = _cJSON_ReplaceItemInObjectPtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + void cJSON_ReplaceItemInObjectCaseSensitive( + ffi.Pointer object, + ffi.Pointer string, + ffi.Pointer newitem, + ) { + return _cJSON_ReplaceItemInObjectCaseSensitive(object, string, newitem); + } + + late final _cJSON_ReplaceItemInObjectCaseSensitivePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('cJSON_ReplaceItemInObjectCaseSensitive'); + late final _cJSON_ReplaceItemInObjectCaseSensitive = + _cJSON_ReplaceItemInObjectCaseSensitivePtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + int cJSON_ReplaceItemViaPointer( + ffi.Pointer parent, + ffi.Pointer item, + ffi.Pointer replacement, + ) { + return _cJSON_ReplaceItemViaPointer(parent, item, replacement); + } + + late final _cJSON_ReplaceItemViaPointerPtr = + _lookup< + ffi.NativeFunction< + cJSON_bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('cJSON_ReplaceItemViaPointer'); + late final _cJSON_ReplaceItemViaPointer = _cJSON_ReplaceItemViaPointerPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer) + >(); + + double cJSON_SetNumberHelper(ffi.Pointer object, double number) { + return _cJSON_SetNumberHelper(object, number); + } + + late final _cJSON_SetNumberHelperPtr = + _lookup< + ffi.NativeFunction, ffi.Double)> + >('cJSON_SetNumberHelper'); + late final _cJSON_SetNumberHelper = _cJSON_SetNumberHelperPtr + .asFunction, double)>(); + + ffi.Pointer cJSON_Version() { + return _cJSON_Version(); + } + + late final _cJSON_VersionPtr = + _lookup Function()>>( + 'cJSON_Version', + ); + late final _cJSON_Version = _cJSON_VersionPtr + .asFunction Function()>(); + + void cJSON_free(ffi.Pointer object) { + return _cJSON_free(object); + } + + late final _cJSON_freePtr = + _lookup)>>( + 'cJSON_free', + ); + late final _cJSON_free = _cJSON_freePtr + .asFunction)>(); + + ffi.Pointer cJSON_malloc(int size) { + return _cJSON_malloc(size); + } + + late final _cJSON_mallocPtr = + _lookup Function(ffi.Size)>>( + 'cJSON_malloc', + ); + late final _cJSON_malloc = _cJSON_mallocPtr + .asFunction Function(int)>(); +} + +const double CJSON_DOUBLE_PRECISION = 1e-16; + +const int CJSON_NESTING_LIMIT = 1000; + +const int CJSON_VERSION_MAJOR = 1; + +const int CJSON_VERSION_MINOR = 7; + +const int CJSON_VERSION_PATCH = 12; + +final class cJSON extends ffi.Struct { + external ffi.Pointer next; + + external ffi.Pointer prev; + + external ffi.Pointer child; + + @ffi.Int() + external int type; + + external ffi.Pointer valuestring; + + @ffi.Int() + external int valueint; + + @ffi.Double() + external double valuedouble; + + external ffi.Pointer string; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer next, + required ffi.Pointer prev, + required ffi.Pointer child, + required int type, + required ffi.Pointer valuestring, + required int valueint, + required double valuedouble, + required ffi.Pointer string, + }) => $allocator() + ..ref.next = next + ..ref.prev = prev + ..ref.child = child + ..ref.type = type + ..ref.valuestring = valuestring + ..ref.valueint = valueint + ..ref.valuedouble = valuedouble + ..ref.string = string; +} + +const int cJSON_Array = 32; + +const int cJSON_False = 1; + +final class cJSON_Hooks extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction Function(ffi.Size sz)> + > + malloc_fn; + + external ffi.Pointer< + ffi.NativeFunction ptr)> + > + free_fn; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction Function(ffi.Size sz)> + > + malloc_fn, + required ffi.Pointer< + ffi.NativeFunction ptr)> + > + free_fn, + }) => $allocator() + ..ref.malloc_fn = malloc_fn + ..ref.free_fn = free_fn; +} + +const int cJSON_Invalid = 0; + +const int cJSON_IsReference = 256; + +const int cJSON_NULL = 4; + +const int cJSON_Number = 8; + +const int cJSON_Object = 64; + +const int cJSON_Raw = 128; + +const int cJSON_String = 16; + +const int cJSON_StringIsConst = 512; + +const int cJSON_True = 2; + +typedef cJSON_bool = ffi.Int; +typedef DartcJSON_bool = int; diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart index dc0a0df2be..2037994182 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart @@ -2,3 +2,9116 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +/// Bindings to LibClang. +class LibClang { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + LibClang(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + LibClang.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + /// Queries a CXCursorSet to see if it contains a specific CXCursor. + int clang_CXCursorSet_contains(CXCursorSet cset, CXCursor cursor) { + return _clang_CXCursorSet_contains(cset, cursor); + } + + late final _clang_CXCursorSet_containsPtr = + _lookup< + ffi.NativeFunction + >('clang_CXCursorSet_contains'); + late final _clang_CXCursorSet_contains = _clang_CXCursorSet_containsPtr + .asFunction(); + + /// Inserts a CXCursor into a CXCursorSet. + int clang_CXCursorSet_insert(CXCursorSet cset, CXCursor cursor) { + return _clang_CXCursorSet_insert(cset, cursor); + } + + late final _clang_CXCursorSet_insertPtr = + _lookup< + ffi.NativeFunction + >('clang_CXCursorSet_insert'); + late final _clang_CXCursorSet_insert = _clang_CXCursorSet_insertPtr + .asFunction(); + + /// Gets the general options associated with a CXIndex. + int clang_CXIndex_getGlobalOptions(CXIndex arg0) { + return _clang_CXIndex_getGlobalOptions(arg0); + } + + late final _clang_CXIndex_getGlobalOptionsPtr = + _lookup>( + 'clang_CXIndex_getGlobalOptions', + ); + late final _clang_CXIndex_getGlobalOptions = + _clang_CXIndex_getGlobalOptionsPtr.asFunction(); + + /// Sets general options associated with a CXIndex. + void clang_CXIndex_setGlobalOptions(CXIndex arg0, int options) { + return _clang_CXIndex_setGlobalOptions(arg0, options); + } + + late final _clang_CXIndex_setGlobalOptionsPtr = + _lookup>( + 'clang_CXIndex_setGlobalOptions', + ); + late final _clang_CXIndex_setGlobalOptions = + _clang_CXIndex_setGlobalOptionsPtr + .asFunction(); + + /// Sets the invocation emission path option in a CXIndex. + void clang_CXIndex_setInvocationEmissionPathOption( + CXIndex arg0, + ffi.Pointer Path, + ) { + return _clang_CXIndex_setInvocationEmissionPathOption(arg0, Path); + } + + late final _clang_CXIndex_setInvocationEmissionPathOptionPtr = + _lookup< + ffi.NativeFunction)> + >('clang_CXIndex_setInvocationEmissionPathOption'); + late final _clang_CXIndex_setInvocationEmissionPathOption = + _clang_CXIndex_setInvocationEmissionPathOptionPtr + .asFunction)>(); + + /// Determine if a C++ constructor is a converting constructor. + int clang_CXXConstructor_isConvertingConstructor(CXCursor C) { + return _clang_CXXConstructor_isConvertingConstructor(C); + } + + late final _clang_CXXConstructor_isConvertingConstructorPtr = + _lookup>( + 'clang_CXXConstructor_isConvertingConstructor', + ); + late final _clang_CXXConstructor_isConvertingConstructor = + _clang_CXXConstructor_isConvertingConstructorPtr + .asFunction(); + + /// Determine if a C++ constructor is a copy constructor. + int clang_CXXConstructor_isCopyConstructor(CXCursor C) { + return _clang_CXXConstructor_isCopyConstructor(C); + } + + late final _clang_CXXConstructor_isCopyConstructorPtr = + _lookup>( + 'clang_CXXConstructor_isCopyConstructor', + ); + late final _clang_CXXConstructor_isCopyConstructor = + _clang_CXXConstructor_isCopyConstructorPtr + .asFunction(); + + /// Determine if a C++ constructor is the default constructor. + int clang_CXXConstructor_isDefaultConstructor(CXCursor C) { + return _clang_CXXConstructor_isDefaultConstructor(C); + } + + late final _clang_CXXConstructor_isDefaultConstructorPtr = + _lookup>( + 'clang_CXXConstructor_isDefaultConstructor', + ); + late final _clang_CXXConstructor_isDefaultConstructor = + _clang_CXXConstructor_isDefaultConstructorPtr + .asFunction(); + + /// Determine if a C++ constructor is a move constructor. + int clang_CXXConstructor_isMoveConstructor(CXCursor C) { + return _clang_CXXConstructor_isMoveConstructor(C); + } + + late final _clang_CXXConstructor_isMoveConstructorPtr = + _lookup>( + 'clang_CXXConstructor_isMoveConstructor', + ); + late final _clang_CXXConstructor_isMoveConstructor = + _clang_CXXConstructor_isMoveConstructorPtr + .asFunction(); + + /// Determine if a C++ field is declared 'mutable'. + int clang_CXXField_isMutable(CXCursor C) { + return _clang_CXXField_isMutable(C); + } + + late final _clang_CXXField_isMutablePtr = + _lookup>( + 'clang_CXXField_isMutable', + ); + late final _clang_CXXField_isMutable = _clang_CXXField_isMutablePtr + .asFunction(); + + /// Determine if a C++ member function or member function template is declared + /// 'const'. + int clang_CXXMethod_isConst(CXCursor C) { + return _clang_CXXMethod_isConst(C); + } + + late final _clang_CXXMethod_isConstPtr = + _lookup>( + 'clang_CXXMethod_isConst', + ); + late final _clang_CXXMethod_isConst = _clang_CXXMethod_isConstPtr + .asFunction(); + + /// Determine if a C++ method is declared '= default'. + int clang_CXXMethod_isDefaulted(CXCursor C) { + return _clang_CXXMethod_isDefaulted(C); + } + + late final _clang_CXXMethod_isDefaultedPtr = + _lookup>( + 'clang_CXXMethod_isDefaulted', + ); + late final _clang_CXXMethod_isDefaulted = _clang_CXXMethod_isDefaultedPtr + .asFunction(); + + /// Determine if a C++ member function or member function template is pure + /// virtual. + int clang_CXXMethod_isPureVirtual(CXCursor C) { + return _clang_CXXMethod_isPureVirtual(C); + } + + late final _clang_CXXMethod_isPureVirtualPtr = + _lookup>( + 'clang_CXXMethod_isPureVirtual', + ); + late final _clang_CXXMethod_isPureVirtual = _clang_CXXMethod_isPureVirtualPtr + .asFunction(); + + /// Determine if a C++ member function or member function template is declared + /// 'static'. + int clang_CXXMethod_isStatic(CXCursor C) { + return _clang_CXXMethod_isStatic(C); + } + + late final _clang_CXXMethod_isStaticPtr = + _lookup>( + 'clang_CXXMethod_isStatic', + ); + late final _clang_CXXMethod_isStatic = _clang_CXXMethod_isStaticPtr + .asFunction(); + + /// Determine if a C++ member function or member function template is + /// explicitly declared 'virtual' or if it overrides a virtual method from one + /// of the base classes. + int clang_CXXMethod_isVirtual(CXCursor C) { + return _clang_CXXMethod_isVirtual(C); + } + + late final _clang_CXXMethod_isVirtualPtr = + _lookup>( + 'clang_CXXMethod_isVirtual', + ); + late final _clang_CXXMethod_isVirtual = _clang_CXXMethod_isVirtualPtr + .asFunction(); + + /// Determine if a C++ record is abstract, i.e. whether a class or struct has + /// a pure virtual member function. + int clang_CXXRecord_isAbstract(CXCursor C) { + return _clang_CXXRecord_isAbstract(C); + } + + late final _clang_CXXRecord_isAbstractPtr = + _lookup>( + 'clang_CXXRecord_isAbstract', + ); + late final _clang_CXXRecord_isAbstract = _clang_CXXRecord_isAbstractPtr + .asFunction(); + + /// If cursor is a statement declaration tries to evaluate the statement and + /// if its variable, tries to evaluate its initializer, into its corresponding + /// type. + CXEvalResult clang_Cursor_Evaluate(CXCursor C) { + return _clang_Cursor_Evaluate(C); + } + + late final _clang_Cursor_EvaluatePtr = + _lookup>( + 'clang_Cursor_Evaluate', + ); + late final _clang_Cursor_Evaluate = _clang_Cursor_EvaluatePtr + .asFunction(); + + /// Retrieve the argument cursor of a function or method. + CXCursor clang_Cursor_getArgument(CXCursor C, int i) { + return _clang_Cursor_getArgument(C, i); + } + + late final _clang_Cursor_getArgumentPtr = + _lookup>( + 'clang_Cursor_getArgument', + ); + late final _clang_Cursor_getArgument = _clang_Cursor_getArgumentPtr + .asFunction(); + + /// Given a cursor that represents a documentable entity (e.g., declaration), + /// return the associated first paragraph. + CXString clang_Cursor_getBriefCommentText(CXCursor C) { + return _clang_Cursor_getBriefCommentText(C); + } + + late final _clang_Cursor_getBriefCommentTextPtr = + _lookup>( + 'clang_Cursor_getBriefCommentText', + ); + late final _clang_Cursor_getBriefCommentText = + _clang_Cursor_getBriefCommentTextPtr + .asFunction(); + + /// Retrieve the CXStrings representing the mangled symbols of the C++ + /// constructor or destructor at the cursor. + ffi.Pointer clang_Cursor_getCXXManglings(CXCursor arg0) { + return _clang_Cursor_getCXXManglings(arg0); + } + + late final _clang_Cursor_getCXXManglingsPtr = + _lookup Function(CXCursor)>>( + 'clang_Cursor_getCXXManglings', + ); + late final _clang_Cursor_getCXXManglings = _clang_Cursor_getCXXManglingsPtr + .asFunction Function(CXCursor)>(); + + /// Given a cursor that represents a declaration, return the associated + /// comment's source range. The range may include multiple consecutive + /// comments with whitespace in between. + CXSourceRange clang_Cursor_getCommentRange(CXCursor C) { + return _clang_Cursor_getCommentRange(C); + } + + late final _clang_Cursor_getCommentRangePtr = + _lookup>( + 'clang_Cursor_getCommentRange', + ); + late final _clang_Cursor_getCommentRange = _clang_Cursor_getCommentRangePtr + .asFunction(); + + /// Retrieve the CXString representing the mangled name of the cursor. + CXString clang_Cursor_getMangling(CXCursor arg0) { + return _clang_Cursor_getMangling(arg0); + } + + late final _clang_Cursor_getManglingPtr = + _lookup>( + 'clang_Cursor_getMangling', + ); + late final _clang_Cursor_getMangling = _clang_Cursor_getManglingPtr + .asFunction(); + + /// Given a CXCursor_ModuleImportDecl cursor, return the associated module. + CXModule clang_Cursor_getModule(CXCursor C) { + return _clang_Cursor_getModule(C); + } + + late final _clang_Cursor_getModulePtr = + _lookup>( + 'clang_Cursor_getModule', + ); + late final _clang_Cursor_getModule = _clang_Cursor_getModulePtr + .asFunction(); + + /// Retrieve the number of non-variadic arguments associated with a given + /// cursor. + int clang_Cursor_getNumArguments(CXCursor C) { + return _clang_Cursor_getNumArguments(C); + } + + late final _clang_Cursor_getNumArgumentsPtr = + _lookup>( + 'clang_Cursor_getNumArguments', + ); + late final _clang_Cursor_getNumArguments = _clang_Cursor_getNumArgumentsPtr + .asFunction(); + + /// Returns the number of template args of a function decl representing a + /// template specialization. + int clang_Cursor_getNumTemplateArguments(CXCursor C) { + return _clang_Cursor_getNumTemplateArguments(C); + } + + late final _clang_Cursor_getNumTemplateArgumentsPtr = + _lookup>( + 'clang_Cursor_getNumTemplateArguments', + ); + late final _clang_Cursor_getNumTemplateArguments = + _clang_Cursor_getNumTemplateArgumentsPtr + .asFunction(); + + /// Given a cursor that represents an Objective-C method or parameter + /// declaration, return the associated Objective-C qualifiers for the return + /// type or the parameter respectively. The bits are formed from + /// CXObjCDeclQualifierKind. + int clang_Cursor_getObjCDeclQualifiers(CXCursor C) { + return _clang_Cursor_getObjCDeclQualifiers(C); + } + + late final _clang_Cursor_getObjCDeclQualifiersPtr = + _lookup>( + 'clang_Cursor_getObjCDeclQualifiers', + ); + late final _clang_Cursor_getObjCDeclQualifiers = + _clang_Cursor_getObjCDeclQualifiersPtr + .asFunction(); + + /// Retrieve the CXStrings representing the mangled symbols of the ObjC class + /// interface or implementation at the cursor. + ffi.Pointer clang_Cursor_getObjCManglings(CXCursor arg0) { + return _clang_Cursor_getObjCManglings(arg0); + } + + late final _clang_Cursor_getObjCManglingsPtr = + _lookup Function(CXCursor)>>( + 'clang_Cursor_getObjCManglings', + ); + late final _clang_Cursor_getObjCManglings = _clang_Cursor_getObjCManglingsPtr + .asFunction Function(CXCursor)>(); + + /// Given a cursor that represents a property declaration, return the + /// associated property attributes. The bits are formed from + /// CXObjCPropertyAttrKind. + int clang_Cursor_getObjCPropertyAttributes(CXCursor C, int reserved) { + return _clang_Cursor_getObjCPropertyAttributes(C, reserved); + } + + late final _clang_Cursor_getObjCPropertyAttributesPtr = + _lookup< + ffi.NativeFunction + >('clang_Cursor_getObjCPropertyAttributes'); + late final _clang_Cursor_getObjCPropertyAttributes = + _clang_Cursor_getObjCPropertyAttributesPtr + .asFunction(); + + /// Given a cursor that represents a property declaration, return the name of + /// the method that implements the getter. + CXString clang_Cursor_getObjCPropertyGetterName(CXCursor C) { + return _clang_Cursor_getObjCPropertyGetterName(C); + } + + late final _clang_Cursor_getObjCPropertyGetterNamePtr = + _lookup>( + 'clang_Cursor_getObjCPropertyGetterName', + ); + late final _clang_Cursor_getObjCPropertyGetterName = + _clang_Cursor_getObjCPropertyGetterNamePtr + .asFunction(); + + /// Given a cursor that represents a property declaration, return the name of + /// the method that implements the setter, if any. + CXString clang_Cursor_getObjCPropertySetterName(CXCursor C) { + return _clang_Cursor_getObjCPropertySetterName(C); + } + + late final _clang_Cursor_getObjCPropertySetterNamePtr = + _lookup>( + 'clang_Cursor_getObjCPropertySetterName', + ); + late final _clang_Cursor_getObjCPropertySetterName = + _clang_Cursor_getObjCPropertySetterNamePtr + .asFunction(); + + /// If the cursor points to a selector identifier in an Objective-C method or + /// message expression, this returns the selector index. + int clang_Cursor_getObjCSelectorIndex(CXCursor arg0) { + return _clang_Cursor_getObjCSelectorIndex(arg0); + } + + late final _clang_Cursor_getObjCSelectorIndexPtr = + _lookup>( + 'clang_Cursor_getObjCSelectorIndex', + ); + late final _clang_Cursor_getObjCSelectorIndex = + _clang_Cursor_getObjCSelectorIndexPtr + .asFunction(); + + /// Return the offset of the field represented by the Cursor. + int clang_Cursor_getOffsetOfField(CXCursor C) { + return _clang_Cursor_getOffsetOfField(C); + } + + late final _clang_Cursor_getOffsetOfFieldPtr = + _lookup>( + 'clang_Cursor_getOffsetOfField', + ); + late final _clang_Cursor_getOffsetOfField = _clang_Cursor_getOffsetOfFieldPtr + .asFunction(); + + /// Given a cursor that represents a declaration, return the associated + /// comment text, including comment markers. + CXString clang_Cursor_getRawCommentText(CXCursor C) { + return _clang_Cursor_getRawCommentText(C); + } + + late final _clang_Cursor_getRawCommentTextPtr = + _lookup>( + 'clang_Cursor_getRawCommentText', + ); + late final _clang_Cursor_getRawCommentText = + _clang_Cursor_getRawCommentTextPtr + .asFunction(); + + /// Given a cursor pointing to an Objective-C message or property reference, + /// or C++ method call, returns the CXType of the receiver. + CXType clang_Cursor_getReceiverType(CXCursor C) { + return _clang_Cursor_getReceiverType(C); + } + + late final _clang_Cursor_getReceiverTypePtr = + _lookup>( + 'clang_Cursor_getReceiverType', + ); + late final _clang_Cursor_getReceiverType = _clang_Cursor_getReceiverTypePtr + .asFunction(); + + /// Retrieve a range for a piece that forms the cursors spelling name. Most of + /// the times there is only one range for the complete spelling but for + /// Objective-C methods and Objective-C message expressions, there are + /// multiple pieces for each selector identifier. + CXSourceRange clang_Cursor_getSpellingNameRange( + CXCursor arg0, + int pieceIndex, + int options, + ) { + return _clang_Cursor_getSpellingNameRange(arg0, pieceIndex, options); + } + + late final _clang_Cursor_getSpellingNameRangePtr = + _lookup< + ffi.NativeFunction< + CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) + > + >('clang_Cursor_getSpellingNameRange'); + late final _clang_Cursor_getSpellingNameRange = + _clang_Cursor_getSpellingNameRangePtr + .asFunction(); + + /// Returns the storage class for a function or variable declaration. + CX_StorageClass clang_Cursor_getStorageClass(CXCursor arg0) { + return CX_StorageClass.fromValue(_clang_Cursor_getStorageClass(arg0)); + } + + late final _clang_Cursor_getStorageClassPtr = + _lookup>( + 'clang_Cursor_getStorageClass', + ); + late final _clang_Cursor_getStorageClass = _clang_Cursor_getStorageClassPtr + .asFunction(); + + /// Retrieve the kind of the I'th template argument of the CXCursor C. + CXTemplateArgumentKind clang_Cursor_getTemplateArgumentKind( + CXCursor C, + int I, + ) { + return CXTemplateArgumentKind.fromValue( + _clang_Cursor_getTemplateArgumentKind(C, I), + ); + } + + late final _clang_Cursor_getTemplateArgumentKindPtr = + _lookup< + ffi.NativeFunction + >('clang_Cursor_getTemplateArgumentKind'); + late final _clang_Cursor_getTemplateArgumentKind = + _clang_Cursor_getTemplateArgumentKindPtr + .asFunction(); + + /// Retrieve a CXType representing the type of a TemplateArgument of a + /// function decl representing a template specialization. + CXType clang_Cursor_getTemplateArgumentType(CXCursor C, int I) { + return _clang_Cursor_getTemplateArgumentType(C, I); + } + + late final _clang_Cursor_getTemplateArgumentTypePtr = + _lookup>( + 'clang_Cursor_getTemplateArgumentType', + ); + late final _clang_Cursor_getTemplateArgumentType = + _clang_Cursor_getTemplateArgumentTypePtr + .asFunction(); + + /// Retrieve the value of an Integral TemplateArgument (of a function decl + /// representing a template specialization) as an unsigned long long. + int clang_Cursor_getTemplateArgumentUnsignedValue(CXCursor C, int I) { + return _clang_Cursor_getTemplateArgumentUnsignedValue(C, I); + } + + late final _clang_Cursor_getTemplateArgumentUnsignedValuePtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedLongLong Function(CXCursor, ffi.UnsignedInt) + > + >('clang_Cursor_getTemplateArgumentUnsignedValue'); + late final _clang_Cursor_getTemplateArgumentUnsignedValue = + _clang_Cursor_getTemplateArgumentUnsignedValuePtr + .asFunction(); + + /// Retrieve the value of an Integral TemplateArgument (of a function decl + /// representing a template specialization) as a signed long long. + int clang_Cursor_getTemplateArgumentValue(CXCursor C, int I) { + return _clang_Cursor_getTemplateArgumentValue(C, I); + } + + late final _clang_Cursor_getTemplateArgumentValuePtr = + _lookup< + ffi.NativeFunction + >('clang_Cursor_getTemplateArgumentValue'); + late final _clang_Cursor_getTemplateArgumentValue = + _clang_Cursor_getTemplateArgumentValuePtr + .asFunction(); + + /// Returns the translation unit that a cursor originated from. + CXTranslationUnit clang_Cursor_getTranslationUnit(CXCursor arg0) { + return _clang_Cursor_getTranslationUnit(arg0); + } + + late final _clang_Cursor_getTranslationUnitPtr = + _lookup>( + 'clang_Cursor_getTranslationUnit', + ); + late final _clang_Cursor_getTranslationUnit = + _clang_Cursor_getTranslationUnitPtr + .asFunction(); + + /// Determine whether the given cursor has any attributes. + int clang_Cursor_hasAttrs(CXCursor C) { + return _clang_Cursor_hasAttrs(C); + } + + late final _clang_Cursor_hasAttrsPtr = + _lookup>( + 'clang_Cursor_hasAttrs', + ); + late final _clang_Cursor_hasAttrs = _clang_Cursor_hasAttrsPtr + .asFunction(); + + /// Determine whether the given cursor represents an anonymous tag or + /// namespace + int clang_Cursor_isAnonymous(CXCursor C) { + return _clang_Cursor_isAnonymous(C); + } + + late final _clang_Cursor_isAnonymousPtr = + _lookup>( + 'clang_Cursor_isAnonymous', + ); + late final _clang_Cursor_isAnonymous = _clang_Cursor_isAnonymousPtr + .asFunction(); + + /// Determine whether the given cursor represents an anonymous record + /// declaration. + int clang_Cursor_isAnonymousRecordDecl(CXCursor C) { + return _clang_Cursor_isAnonymousRecordDecl(C); + } + + late final _clang_Cursor_isAnonymousRecordDeclPtr = + _lookup>( + 'clang_Cursor_isAnonymousRecordDecl', + ); + late final _clang_Cursor_isAnonymousRecordDecl = + _clang_Cursor_isAnonymousRecordDeclPtr + .asFunction(); + + /// Returns non-zero if the cursor specifies a Record member that is a + /// bitfield. + int clang_Cursor_isBitField(CXCursor C) { + return _clang_Cursor_isBitField(C); + } + + late final _clang_Cursor_isBitFieldPtr = + _lookup>( + 'clang_Cursor_isBitField', + ); + late final _clang_Cursor_isBitField = _clang_Cursor_isBitFieldPtr + .asFunction(); + + /// Given a cursor pointing to a C++ method call or an Objective-C message, + /// returns non-zero if the method/message is "dynamic", meaning: + int clang_Cursor_isDynamicCall(CXCursor C) { + return _clang_Cursor_isDynamicCall(C); + } + + late final _clang_Cursor_isDynamicCallPtr = + _lookup>( + 'clang_Cursor_isDynamicCall', + ); + late final _clang_Cursor_isDynamicCall = _clang_Cursor_isDynamicCallPtr + .asFunction(); + + /// Returns non-zero if the given cursor points to a symbol marked with + /// external_source_symbol attribute. + int clang_Cursor_isExternalSymbol( + CXCursor C, + ffi.Pointer language, + ffi.Pointer definedIn, + ffi.Pointer isGenerated, + ) { + return _clang_Cursor_isExternalSymbol(C, language, definedIn, isGenerated); + } + + late final _clang_Cursor_isExternalSymbolPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXCursor, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_Cursor_isExternalSymbol'); + late final _clang_Cursor_isExternalSymbol = _clang_Cursor_isExternalSymbolPtr + .asFunction< + int Function( + CXCursor, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Determine whether a CXCursor that is a function declaration, is an inline + /// declaration. + int clang_Cursor_isFunctionInlined(CXCursor C) { + return _clang_Cursor_isFunctionInlined(C); + } + + late final _clang_Cursor_isFunctionInlinedPtr = + _lookup>( + 'clang_Cursor_isFunctionInlined', + ); + late final _clang_Cursor_isFunctionInlined = + _clang_Cursor_isFunctionInlinedPtr.asFunction(); + + /// Determine whether the given cursor represents an inline namespace + /// declaration. + int clang_Cursor_isInlineNamespace(CXCursor C) { + return _clang_Cursor_isInlineNamespace(C); + } + + late final _clang_Cursor_isInlineNamespacePtr = + _lookup>( + 'clang_Cursor_isInlineNamespace', + ); + late final _clang_Cursor_isInlineNamespace = + _clang_Cursor_isInlineNamespacePtr.asFunction(); + + /// Determine whether a CXCursor that is a macro, is a builtin one. + int clang_Cursor_isMacroBuiltin(CXCursor C) { + return _clang_Cursor_isMacroBuiltin(C); + } + + late final _clang_Cursor_isMacroBuiltinPtr = + _lookup>( + 'clang_Cursor_isMacroBuiltin', + ); + late final _clang_Cursor_isMacroBuiltin = _clang_Cursor_isMacroBuiltinPtr + .asFunction(); + + /// Determine whether a CXCursor that is a macro, is function like. + int clang_Cursor_isMacroFunctionLike(CXCursor C) { + return _clang_Cursor_isMacroFunctionLike(C); + } + + late final _clang_Cursor_isMacroFunctionLikePtr = + _lookup>( + 'clang_Cursor_isMacroFunctionLike', + ); + late final _clang_Cursor_isMacroFunctionLike = + _clang_Cursor_isMacroFunctionLikePtr.asFunction(); + + /// Returns non-zero if cursor is null. + int clang_Cursor_isNull(CXCursor cursor) { + return _clang_Cursor_isNull(cursor); + } + + late final _clang_Cursor_isNullPtr = + _lookup>( + 'clang_Cursor_isNull', + ); + late final _clang_Cursor_isNull = _clang_Cursor_isNullPtr + .asFunction(); + + /// Given a cursor that represents an Objective-C method or property + /// declaration, return non-zero if the declaration was affected by + /// "\@optional". Returns zero if the cursor is not such a declaration or it + /// is "\@required". + int clang_Cursor_isObjCOptional(CXCursor C) { + return _clang_Cursor_isObjCOptional(C); + } + + late final _clang_Cursor_isObjCOptionalPtr = + _lookup>( + 'clang_Cursor_isObjCOptional', + ); + late final _clang_Cursor_isObjCOptional = _clang_Cursor_isObjCOptionalPtr + .asFunction(); + + /// Returns non-zero if the given cursor is a variadic function or method. + int clang_Cursor_isVariadic(CXCursor C) { + return _clang_Cursor_isVariadic(C); + } + + late final _clang_Cursor_isVariadicPtr = + _lookup>( + 'clang_Cursor_isVariadic', + ); + late final _clang_Cursor_isVariadic = _clang_Cursor_isVariadicPtr + .asFunction(); + + /// Determine if an enum declaration refers to a scoped enum. + int clang_EnumDecl_isScoped(CXCursor C) { + return _clang_EnumDecl_isScoped(C); + } + + late final _clang_EnumDecl_isScopedPtr = + _lookup>( + 'clang_EnumDecl_isScoped', + ); + late final _clang_EnumDecl_isScoped = _clang_EnumDecl_isScopedPtr + .asFunction(); + + /// Disposes the created Eval memory. + void clang_EvalResult_dispose(CXEvalResult E) { + return _clang_EvalResult_dispose(E); + } + + late final _clang_EvalResult_disposePtr = + _lookup>( + 'clang_EvalResult_dispose', + ); + late final _clang_EvalResult_dispose = _clang_EvalResult_disposePtr + .asFunction(); + + /// Returns the evaluation result as double if the kind is double. + double clang_EvalResult_getAsDouble(CXEvalResult E) { + return _clang_EvalResult_getAsDouble(E); + } + + late final _clang_EvalResult_getAsDoublePtr = + _lookup>( + 'clang_EvalResult_getAsDouble', + ); + late final _clang_EvalResult_getAsDouble = _clang_EvalResult_getAsDoublePtr + .asFunction(); + + /// Returns the evaluation result as integer if the kind is Int. + int clang_EvalResult_getAsInt(CXEvalResult E) { + return _clang_EvalResult_getAsInt(E); + } + + late final _clang_EvalResult_getAsIntPtr = + _lookup>( + 'clang_EvalResult_getAsInt', + ); + late final _clang_EvalResult_getAsInt = _clang_EvalResult_getAsIntPtr + .asFunction(); + + /// Returns the evaluation result as a long long integer if the kind is Int. + /// This prevents overflows that may happen if the result is returned with + /// clang_EvalResult_getAsInt. + int clang_EvalResult_getAsLongLong(CXEvalResult E) { + return _clang_EvalResult_getAsLongLong(E); + } + + late final _clang_EvalResult_getAsLongLongPtr = + _lookup>( + 'clang_EvalResult_getAsLongLong', + ); + late final _clang_EvalResult_getAsLongLong = + _clang_EvalResult_getAsLongLongPtr + .asFunction(); + + /// Returns the evaluation result as a constant string if the kind is other + /// than Int or float. User must not free this pointer, instead call + /// clang_EvalResult_dispose on the CXEvalResult returned by + /// clang_Cursor_Evaluate. + ffi.Pointer clang_EvalResult_getAsStr(CXEvalResult E) { + return _clang_EvalResult_getAsStr(E); + } + + late final _clang_EvalResult_getAsStrPtr = + _lookup Function(CXEvalResult)>>( + 'clang_EvalResult_getAsStr', + ); + late final _clang_EvalResult_getAsStr = _clang_EvalResult_getAsStrPtr + .asFunction Function(CXEvalResult)>(); + + /// Returns the evaluation result as an unsigned integer if the kind is Int + /// and clang_EvalResult_isUnsignedInt is non-zero. + int clang_EvalResult_getAsUnsigned(CXEvalResult E) { + return _clang_EvalResult_getAsUnsigned(E); + } + + late final _clang_EvalResult_getAsUnsignedPtr = + _lookup>( + 'clang_EvalResult_getAsUnsigned', + ); + late final _clang_EvalResult_getAsUnsigned = + _clang_EvalResult_getAsUnsignedPtr + .asFunction(); + + /// Returns the kind of the evaluated result. + CXEvalResultKind clang_EvalResult_getKind(CXEvalResult E) { + return CXEvalResultKind.fromValue(_clang_EvalResult_getKind(E)); + } + + late final _clang_EvalResult_getKindPtr = + _lookup>( + 'clang_EvalResult_getKind', + ); + late final _clang_EvalResult_getKind = _clang_EvalResult_getKindPtr + .asFunction(); + + /// Returns a non-zero value if the kind is Int and the evaluation result + /// resulted in an unsigned integer. + int clang_EvalResult_isUnsignedInt(CXEvalResult E) { + return _clang_EvalResult_isUnsignedInt(E); + } + + late final _clang_EvalResult_isUnsignedIntPtr = + _lookup>( + 'clang_EvalResult_isUnsignedInt', + ); + late final _clang_EvalResult_isUnsignedInt = + _clang_EvalResult_isUnsignedIntPtr + .asFunction(); + + /// Returns non-zero if the file1 and file2 point to the same file, or they + /// are both NULL. + int clang_File_isEqual(CXFile file1, CXFile file2) { + return _clang_File_isEqual(file1, file2); + } + + late final _clang_File_isEqualPtr = + _lookup>( + 'clang_File_isEqual', + ); + late final _clang_File_isEqual = _clang_File_isEqualPtr + .asFunction(); + + /// Returns the real path name of file. + CXString clang_File_tryGetRealPathName(CXFile file) { + return _clang_File_tryGetRealPathName(file); + } + + late final _clang_File_tryGetRealPathNamePtr = + _lookup>( + 'clang_File_tryGetRealPathName', + ); + late final _clang_File_tryGetRealPathName = _clang_File_tryGetRealPathNamePtr + .asFunction(); + + /// An indexing action/session, to be applied to one or multiple translation + /// units. + CXIndexAction clang_IndexAction_create(CXIndex CIdx) { + return _clang_IndexAction_create(CIdx); + } + + late final _clang_IndexAction_createPtr = + _lookup>( + 'clang_IndexAction_create', + ); + late final _clang_IndexAction_create = _clang_IndexAction_createPtr + .asFunction(); + + /// Destroy the given index action. + void clang_IndexAction_dispose(CXIndexAction arg0) { + return _clang_IndexAction_dispose(arg0); + } + + late final _clang_IndexAction_disposePtr = + _lookup>( + 'clang_IndexAction_dispose', + ); + late final _clang_IndexAction_dispose = _clang_IndexAction_disposePtr + .asFunction(); + + /// Returns non-zero if the given source location is in the main file of the + /// corresponding translation unit. + int clang_Location_isFromMainFile(CXSourceLocation location) { + return _clang_Location_isFromMainFile(location); + } + + late final _clang_Location_isFromMainFilePtr = + _lookup>( + 'clang_Location_isFromMainFile', + ); + late final _clang_Location_isFromMainFile = _clang_Location_isFromMainFilePtr + .asFunction(); + + /// Returns non-zero if the given source location is in a system header. + int clang_Location_isInSystemHeader(CXSourceLocation location) { + return _clang_Location_isInSystemHeader(location); + } + + late final _clang_Location_isInSystemHeaderPtr = + _lookup>( + 'clang_Location_isInSystemHeader', + ); + late final _clang_Location_isInSystemHeader = + _clang_Location_isInSystemHeaderPtr + .asFunction(); + + /// Create a CXModuleMapDescriptor object. Must be disposed with + /// clang_ModuleMapDescriptor_dispose(). + CXModuleMapDescriptor clang_ModuleMapDescriptor_create(int options) { + return _clang_ModuleMapDescriptor_create(options); + } + + late final _clang_ModuleMapDescriptor_createPtr = + _lookup< + ffi.NativeFunction + >('clang_ModuleMapDescriptor_create'); + late final _clang_ModuleMapDescriptor_create = + _clang_ModuleMapDescriptor_createPtr + .asFunction(); + + /// Dispose a CXModuleMapDescriptor object. + void clang_ModuleMapDescriptor_dispose(CXModuleMapDescriptor arg0) { + return _clang_ModuleMapDescriptor_dispose(arg0); + } + + late final _clang_ModuleMapDescriptor_disposePtr = + _lookup>( + 'clang_ModuleMapDescriptor_dispose', + ); + late final _clang_ModuleMapDescriptor_dispose = + _clang_ModuleMapDescriptor_disposePtr + .asFunction(); + + /// Sets the framework module name that the module.map describes. + CXErrorCode clang_ModuleMapDescriptor_setFrameworkModuleName( + CXModuleMapDescriptor arg0, + ffi.Pointer name, + ) { + return CXErrorCode.fromValue( + _clang_ModuleMapDescriptor_setFrameworkModuleName(arg0, name), + ); + } + + late final _clang_ModuleMapDescriptor_setFrameworkModuleNamePtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXModuleMapDescriptor, ffi.Pointer) + > + >('clang_ModuleMapDescriptor_setFrameworkModuleName'); + late final _clang_ModuleMapDescriptor_setFrameworkModuleName = + _clang_ModuleMapDescriptor_setFrameworkModuleNamePtr + .asFunction< + int Function(CXModuleMapDescriptor, ffi.Pointer) + >(); + + /// Sets the umbrealla header name that the module.map describes. + CXErrorCode clang_ModuleMapDescriptor_setUmbrellaHeader( + CXModuleMapDescriptor arg0, + ffi.Pointer name, + ) { + return CXErrorCode.fromValue( + _clang_ModuleMapDescriptor_setUmbrellaHeader(arg0, name), + ); + } + + late final _clang_ModuleMapDescriptor_setUmbrellaHeaderPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXModuleMapDescriptor, ffi.Pointer) + > + >('clang_ModuleMapDescriptor_setUmbrellaHeader'); + late final _clang_ModuleMapDescriptor_setUmbrellaHeader = + _clang_ModuleMapDescriptor_setUmbrellaHeaderPtr + .asFunction< + int Function(CXModuleMapDescriptor, ffi.Pointer) + >(); + + /// Write out the CXModuleMapDescriptor object to a char buffer. + CXErrorCode clang_ModuleMapDescriptor_writeToBuffer( + CXModuleMapDescriptor arg0, + int options, + ffi.Pointer> out_buffer_ptr, + ffi.Pointer out_buffer_size, + ) { + return CXErrorCode.fromValue( + _clang_ModuleMapDescriptor_writeToBuffer( + arg0, + options, + out_buffer_ptr, + out_buffer_size, + ), + ); + } + + late final _clang_ModuleMapDescriptor_writeToBufferPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXModuleMapDescriptor, + ffi.UnsignedInt, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('clang_ModuleMapDescriptor_writeToBuffer'); + late final _clang_ModuleMapDescriptor_writeToBuffer = + _clang_ModuleMapDescriptor_writeToBufferPtr + .asFunction< + int Function( + CXModuleMapDescriptor, + int, + ffi.Pointer>, + ffi.Pointer, + ) + >(); + + /// Returns the module file where the provided module object came from. + CXFile clang_Module_getASTFile(CXModule Module) { + return _clang_Module_getASTFile(Module); + } + + late final _clang_Module_getASTFilePtr = + _lookup>( + 'clang_Module_getASTFile', + ); + late final _clang_Module_getASTFile = _clang_Module_getASTFilePtr + .asFunction(); + + /// Returns the full name of the module, e.g. "std.vector". + CXString clang_Module_getFullName(CXModule Module) { + return _clang_Module_getFullName(Module); + } + + late final _clang_Module_getFullNamePtr = + _lookup>( + 'clang_Module_getFullName', + ); + late final _clang_Module_getFullName = _clang_Module_getFullNamePtr + .asFunction(); + + /// Returns the name of the module, e.g. for the 'std.vector' sub-module it + /// will return "vector". + CXString clang_Module_getName(CXModule Module) { + return _clang_Module_getName(Module); + } + + late final _clang_Module_getNamePtr = + _lookup>( + 'clang_Module_getName', + ); + late final _clang_Module_getName = _clang_Module_getNamePtr + .asFunction(); + + /// Returns the number of top level headers associated with this module. + int clang_Module_getNumTopLevelHeaders( + CXTranslationUnit arg0, + CXModule Module, + ) { + return _clang_Module_getNumTopLevelHeaders(arg0, Module); + } + + late final _clang_Module_getNumTopLevelHeadersPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXTranslationUnit, CXModule) + > + >('clang_Module_getNumTopLevelHeaders'); + late final _clang_Module_getNumTopLevelHeaders = + _clang_Module_getNumTopLevelHeadersPtr + .asFunction(); + + /// Returns the parent of a sub-module or NULL if the given module is + /// top-level, e.g. for 'std.vector' it will return the 'std' module. + CXModule clang_Module_getParent(CXModule Module) { + return _clang_Module_getParent(Module); + } + + late final _clang_Module_getParentPtr = + _lookup>( + 'clang_Module_getParent', + ); + late final _clang_Module_getParent = _clang_Module_getParentPtr + .asFunction(); + + /// Returns the specified top level header associated with the module. + CXFile clang_Module_getTopLevelHeader( + CXTranslationUnit arg0, + CXModule Module, + int Index, + ) { + return _clang_Module_getTopLevelHeader(arg0, Module, Index); + } + + late final _clang_Module_getTopLevelHeaderPtr = + _lookup< + ffi.NativeFunction< + CXFile Function(CXTranslationUnit, CXModule, ffi.UnsignedInt) + > + >('clang_Module_getTopLevelHeader'); + late final _clang_Module_getTopLevelHeader = + _clang_Module_getTopLevelHeaderPtr + .asFunction(); + + /// Returns non-zero if the module is a system one. + int clang_Module_isSystem(CXModule Module) { + return _clang_Module_isSystem(Module); + } + + late final _clang_Module_isSystemPtr = + _lookup>( + 'clang_Module_isSystem', + ); + late final _clang_Module_isSystem = _clang_Module_isSystemPtr + .asFunction(); + + /// Release a printing policy. + void clang_PrintingPolicy_dispose(CXPrintingPolicy Policy) { + return _clang_PrintingPolicy_dispose(Policy); + } + + late final _clang_PrintingPolicy_disposePtr = + _lookup>( + 'clang_PrintingPolicy_dispose', + ); + late final _clang_PrintingPolicy_dispose = _clang_PrintingPolicy_disposePtr + .asFunction(); + + /// Get a property value for the given printing policy. + int clang_PrintingPolicy_getProperty( + CXPrintingPolicy Policy, + CXPrintingPolicyProperty Property, + ) { + return _clang_PrintingPolicy_getProperty(Policy, Property.value); + } + + late final _clang_PrintingPolicy_getPropertyPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXPrintingPolicy, ffi.UnsignedInt) + > + >('clang_PrintingPolicy_getProperty'); + late final _clang_PrintingPolicy_getProperty = + _clang_PrintingPolicy_getPropertyPtr + .asFunction(); + + /// Set a property value for the given printing policy. + void clang_PrintingPolicy_setProperty( + CXPrintingPolicy Policy, + CXPrintingPolicyProperty Property, + int Value, + ) { + return _clang_PrintingPolicy_setProperty(Policy, Property.value, Value); + } + + late final _clang_PrintingPolicy_setPropertyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CXPrintingPolicy, ffi.UnsignedInt, ffi.UnsignedInt) + > + >('clang_PrintingPolicy_setProperty'); + late final _clang_PrintingPolicy_setProperty = + _clang_PrintingPolicy_setPropertyPtr + .asFunction(); + + /// Returns non-zero if range is null. + int clang_Range_isNull(CXSourceRange range) { + return _clang_Range_isNull(range); + } + + late final _clang_Range_isNullPtr = + _lookup>( + 'clang_Range_isNull', + ); + late final _clang_Range_isNull = _clang_Range_isNullPtr + .asFunction(); + + /// Destroy the CXTargetInfo object. + void clang_TargetInfo_dispose(CXTargetInfo Info) { + return _clang_TargetInfo_dispose(Info); + } + + late final _clang_TargetInfo_disposePtr = + _lookup>( + 'clang_TargetInfo_dispose', + ); + late final _clang_TargetInfo_dispose = _clang_TargetInfo_disposePtr + .asFunction(); + + /// Get the pointer width of the target in bits. + int clang_TargetInfo_getPointerWidth(CXTargetInfo Info) { + return _clang_TargetInfo_getPointerWidth(Info); + } + + late final _clang_TargetInfo_getPointerWidthPtr = + _lookup>( + 'clang_TargetInfo_getPointerWidth', + ); + late final _clang_TargetInfo_getPointerWidth = + _clang_TargetInfo_getPointerWidthPtr + .asFunction(); + + /// Get the normalized target triple as a string. + CXString clang_TargetInfo_getTriple(CXTargetInfo Info) { + return _clang_TargetInfo_getTriple(Info); + } + + late final _clang_TargetInfo_getTriplePtr = + _lookup>( + 'clang_TargetInfo_getTriple', + ); + late final _clang_TargetInfo_getTriple = _clang_TargetInfo_getTriplePtr + .asFunction(); + + /// Return the alignment of a type in bytes as per C++[expr.alignof] standard. + int clang_Type_getAlignOf(CXType T) { + return _clang_Type_getAlignOf(T); + } + + late final _clang_Type_getAlignOfPtr = + _lookup>( + 'clang_Type_getAlignOf', + ); + late final _clang_Type_getAlignOf = _clang_Type_getAlignOfPtr + .asFunction(); + + /// Retrieve the ref-qualifier kind of a function or method. + CXRefQualifierKind clang_Type_getCXXRefQualifier(CXType T) { + return CXRefQualifierKind.fromValue(_clang_Type_getCXXRefQualifier(T)); + } + + late final _clang_Type_getCXXRefQualifierPtr = + _lookup>( + 'clang_Type_getCXXRefQualifier', + ); + late final _clang_Type_getCXXRefQualifier = _clang_Type_getCXXRefQualifierPtr + .asFunction(); + + /// Return the class type of an member pointer type. + CXType clang_Type_getClassType(CXType T) { + return _clang_Type_getClassType(T); + } + + late final _clang_Type_getClassTypePtr = + _lookup>( + 'clang_Type_getClassType', + ); + late final _clang_Type_getClassType = _clang_Type_getClassTypePtr + .asFunction(); + + /// Return the type that was modified by this attributed type. + CXType clang_Type_getModifiedType(CXType T) { + return _clang_Type_getModifiedType(T); + } + + late final _clang_Type_getModifiedTypePtr = + _lookup>( + 'clang_Type_getModifiedType', + ); + late final _clang_Type_getModifiedType = _clang_Type_getModifiedTypePtr + .asFunction(); + + /// Retrieve the type named by the qualified-id. + CXType clang_Type_getNamedType(CXType T) { + return _clang_Type_getNamedType(T); + } + + late final _clang_Type_getNamedTypePtr = + _lookup>( + 'clang_Type_getNamedType', + ); + late final _clang_Type_getNamedType = _clang_Type_getNamedTypePtr + .asFunction(); + + /// Retrieve the nullability kind of a pointer type. + CXTypeNullabilityKind clang_Type_getNullability(CXType T) { + return CXTypeNullabilityKind.fromValue(_clang_Type_getNullability(T)); + } + + late final _clang_Type_getNullabilityPtr = + _lookup>( + 'clang_Type_getNullability', + ); + late final _clang_Type_getNullability = _clang_Type_getNullabilityPtr + .asFunction(); + + /// Retrieve the number of protocol references associated with an ObjC + /// object/id. + int clang_Type_getNumObjCProtocolRefs(CXType T) { + return _clang_Type_getNumObjCProtocolRefs(T); + } + + late final _clang_Type_getNumObjCProtocolRefsPtr = + _lookup>( + 'clang_Type_getNumObjCProtocolRefs', + ); + late final _clang_Type_getNumObjCProtocolRefs = + _clang_Type_getNumObjCProtocolRefsPtr.asFunction(); + + /// Retreive the number of type arguments associated with an ObjC object. + int clang_Type_getNumObjCTypeArgs(CXType T) { + return _clang_Type_getNumObjCTypeArgs(T); + } + + late final _clang_Type_getNumObjCTypeArgsPtr = + _lookup>( + 'clang_Type_getNumObjCTypeArgs', + ); + late final _clang_Type_getNumObjCTypeArgs = _clang_Type_getNumObjCTypeArgsPtr + .asFunction(); + + /// Returns the number of template arguments for given template + /// specialization, or -1 if type T is not a template specialization. + int clang_Type_getNumTemplateArguments(CXType T) { + return _clang_Type_getNumTemplateArguments(T); + } + + late final _clang_Type_getNumTemplateArgumentsPtr = + _lookup>( + 'clang_Type_getNumTemplateArguments', + ); + late final _clang_Type_getNumTemplateArguments = + _clang_Type_getNumTemplateArgumentsPtr.asFunction(); + + /// Returns the Objective-C type encoding for the specified CXType. + CXString clang_Type_getObjCEncoding(CXType type) { + return _clang_Type_getObjCEncoding(type); + } + + late final _clang_Type_getObjCEncodingPtr = + _lookup>( + 'clang_Type_getObjCEncoding', + ); + late final _clang_Type_getObjCEncoding = _clang_Type_getObjCEncodingPtr + .asFunction(); + + /// Retrieves the base type of the ObjCObjectType. + CXType clang_Type_getObjCObjectBaseType(CXType T) { + return _clang_Type_getObjCObjectBaseType(T); + } + + late final _clang_Type_getObjCObjectBaseTypePtr = + _lookup>( + 'clang_Type_getObjCObjectBaseType', + ); + late final _clang_Type_getObjCObjectBaseType = + _clang_Type_getObjCObjectBaseTypePtr + .asFunction(); + + /// Retrieve the decl for a protocol reference for an ObjC object/id. + CXCursor clang_Type_getObjCProtocolDecl(CXType T, int i) { + return _clang_Type_getObjCProtocolDecl(T, i); + } + + late final _clang_Type_getObjCProtocolDeclPtr = + _lookup>( + 'clang_Type_getObjCProtocolDecl', + ); + late final _clang_Type_getObjCProtocolDecl = + _clang_Type_getObjCProtocolDeclPtr + .asFunction(); + + /// Retrieve a type argument associated with an ObjC object. + CXType clang_Type_getObjCTypeArg(CXType T, int i) { + return _clang_Type_getObjCTypeArg(T, i); + } + + late final _clang_Type_getObjCTypeArgPtr = + _lookup>( + 'clang_Type_getObjCTypeArg', + ); + late final _clang_Type_getObjCTypeArg = _clang_Type_getObjCTypeArgPtr + .asFunction(); + + /// Return the offset of a field named S in a record of type T in bits as it + /// would be returned by __offsetof__ as per C++11[18.2p4] + int clang_Type_getOffsetOf(CXType T, ffi.Pointer S) { + return _clang_Type_getOffsetOf(T, S); + } + + late final _clang_Type_getOffsetOfPtr = + _lookup< + ffi.NativeFunction)> + >('clang_Type_getOffsetOf'); + late final _clang_Type_getOffsetOf = _clang_Type_getOffsetOfPtr + .asFunction)>(); + + /// Return the size of a type in bytes as per C++[expr.sizeof] standard. + int clang_Type_getSizeOf(CXType T) { + return _clang_Type_getSizeOf(T); + } + + late final _clang_Type_getSizeOfPtr = + _lookup>( + 'clang_Type_getSizeOf', + ); + late final _clang_Type_getSizeOf = _clang_Type_getSizeOfPtr + .asFunction(); + + /// Returns the type template argument of a template class specialization at + /// given index. + CXType clang_Type_getTemplateArgumentAsType(CXType T, int i) { + return _clang_Type_getTemplateArgumentAsType(T, i); + } + + late final _clang_Type_getTemplateArgumentAsTypePtr = + _lookup>( + 'clang_Type_getTemplateArgumentAsType', + ); + late final _clang_Type_getTemplateArgumentAsType = + _clang_Type_getTemplateArgumentAsTypePtr + .asFunction(); + + /// Determine if a typedef is 'transparent' tag. + int clang_Type_isTransparentTagTypedef(CXType T) { + return _clang_Type_isTransparentTagTypedef(T); + } + + late final _clang_Type_isTransparentTagTypedefPtr = + _lookup>( + 'clang_Type_isTransparentTagTypedef', + ); + late final _clang_Type_isTransparentTagTypedef = + _clang_Type_isTransparentTagTypedefPtr.asFunction(); + + /// Visit the fields of a particular type. + int clang_Type_visitFields( + CXType T, + CXFieldVisitor visitor, + CXClientData client_data, + ) { + return _clang_Type_visitFields(T, visitor, client_data); + } + + late final _clang_Type_visitFieldsPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXType, CXFieldVisitor, CXClientData) + > + >('clang_Type_visitFields'); + late final _clang_Type_visitFields = _clang_Type_visitFieldsPtr + .asFunction(); + + /// Map an absolute virtual file path to an absolute real one. The virtual + /// path must be canonicalized (not contain "."/".."). + CXErrorCode clang_VirtualFileOverlay_addFileMapping( + CXVirtualFileOverlay arg0, + ffi.Pointer virtualPath, + ffi.Pointer realPath, + ) { + return CXErrorCode.fromValue( + _clang_VirtualFileOverlay_addFileMapping(arg0, virtualPath, realPath), + ); + } + + late final _clang_VirtualFileOverlay_addFileMappingPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXVirtualFileOverlay, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_VirtualFileOverlay_addFileMapping'); + late final _clang_VirtualFileOverlay_addFileMapping = + _clang_VirtualFileOverlay_addFileMappingPtr + .asFunction< + int Function( + CXVirtualFileOverlay, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Create a CXVirtualFileOverlay object. Must be disposed with + /// clang_VirtualFileOverlay_dispose(). + CXVirtualFileOverlay clang_VirtualFileOverlay_create(int options) { + return _clang_VirtualFileOverlay_create(options); + } + + late final _clang_VirtualFileOverlay_createPtr = + _lookup< + ffi.NativeFunction + >('clang_VirtualFileOverlay_create'); + late final _clang_VirtualFileOverlay_create = + _clang_VirtualFileOverlay_createPtr + .asFunction(); + + /// Dispose a CXVirtualFileOverlay object. + void clang_VirtualFileOverlay_dispose(CXVirtualFileOverlay arg0) { + return _clang_VirtualFileOverlay_dispose(arg0); + } + + late final _clang_VirtualFileOverlay_disposePtr = + _lookup>( + 'clang_VirtualFileOverlay_dispose', + ); + late final _clang_VirtualFileOverlay_dispose = + _clang_VirtualFileOverlay_disposePtr + .asFunction(); + + /// Set the case sensitivity for the CXVirtualFileOverlay object. The + /// CXVirtualFileOverlay object is case-sensitive by default, this option can + /// be used to override the default. + CXErrorCode clang_VirtualFileOverlay_setCaseSensitivity( + CXVirtualFileOverlay arg0, + int caseSensitive, + ) { + return CXErrorCode.fromValue( + _clang_VirtualFileOverlay_setCaseSensitivity(arg0, caseSensitive), + ); + } + + late final _clang_VirtualFileOverlay_setCaseSensitivityPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXVirtualFileOverlay, ffi.Int) + > + >('clang_VirtualFileOverlay_setCaseSensitivity'); + late final _clang_VirtualFileOverlay_setCaseSensitivity = + _clang_VirtualFileOverlay_setCaseSensitivityPtr + .asFunction(); + + /// Write out the CXVirtualFileOverlay object to a char buffer. + CXErrorCode clang_VirtualFileOverlay_writeToBuffer( + CXVirtualFileOverlay arg0, + int options, + ffi.Pointer> out_buffer_ptr, + ffi.Pointer out_buffer_size, + ) { + return CXErrorCode.fromValue( + _clang_VirtualFileOverlay_writeToBuffer( + arg0, + options, + out_buffer_ptr, + out_buffer_size, + ), + ); + } + + late final _clang_VirtualFileOverlay_writeToBufferPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXVirtualFileOverlay, + ffi.UnsignedInt, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('clang_VirtualFileOverlay_writeToBuffer'); + late final _clang_VirtualFileOverlay_writeToBuffer = + _clang_VirtualFileOverlay_writeToBufferPtr + .asFunction< + int Function( + CXVirtualFileOverlay, + int, + ffi.Pointer>, + ffi.Pointer, + ) + >(); + + /// Annotate the given set of tokens by providing cursors for each token that + /// can be mapped to a specific entity within the abstract syntax tree. + void clang_annotateTokens( + CXTranslationUnit TU, + ffi.Pointer Tokens, + int NumTokens, + ffi.Pointer Cursors, + ) { + return _clang_annotateTokens(TU, Tokens, NumTokens, Cursors); + } + + late final _clang_annotateTokensPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_annotateTokens'); + late final _clang_annotateTokens = _clang_annotateTokensPtr + .asFunction< + void Function( + CXTranslationUnit, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); + + /// Perform code completion at a given location in a translation unit. + ffi.Pointer clang_codeCompleteAt( + CXTranslationUnit TU, + ffi.Pointer complete_filename, + int complete_line, + int complete_column, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, + ) { + return _clang_codeCompleteAt( + TU, + complete_filename, + complete_line, + complete_column, + unsaved_files, + num_unsaved_files, + options, + ); + } + + late final _clang_codeCompleteAtPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + >('clang_codeCompleteAt'); + late final _clang_codeCompleteAt = _clang_codeCompleteAtPtr + .asFunction< + ffi.Pointer Function( + CXTranslationUnit, + ffi.Pointer, + int, + int, + ffi.Pointer, + int, + int, + ) + >(); + + /// Returns the cursor kind for the container for the current code completion + /// context. The container is only guaranteed to be set for contexts where a + /// container exists (i.e. member accesses or Objective-C message sends); if + /// there is not a container, this function will return CXCursor_InvalidCode. + CXCursorKind clang_codeCompleteGetContainerKind( + ffi.Pointer Results, + ffi.Pointer IsIncomplete, + ) { + return CXCursorKind.fromValue( + _clang_codeCompleteGetContainerKind(Results, IsIncomplete), + ); + } + + late final _clang_codeCompleteGetContainerKindPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_codeCompleteGetContainerKind'); + late final _clang_codeCompleteGetContainerKind = + _clang_codeCompleteGetContainerKindPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Returns the USR for the container for the current code completion context. + /// If there is not a container for the current context, this function will + /// return the empty string. + CXString clang_codeCompleteGetContainerUSR( + ffi.Pointer Results, + ) { + return _clang_codeCompleteGetContainerUSR(Results); + } + + late final _clang_codeCompleteGetContainerUSRPtr = + _lookup< + ffi.NativeFunction< + CXString Function(ffi.Pointer) + > + >('clang_codeCompleteGetContainerUSR'); + late final _clang_codeCompleteGetContainerUSR = + _clang_codeCompleteGetContainerUSRPtr + .asFunction)>(); + + /// Determines what completions are appropriate for the context the given code + /// completion. + int clang_codeCompleteGetContexts( + ffi.Pointer Results, + ) { + return _clang_codeCompleteGetContexts(Results); + } + + late final _clang_codeCompleteGetContextsPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedLongLong Function(ffi.Pointer) + > + >('clang_codeCompleteGetContexts'); + late final _clang_codeCompleteGetContexts = _clang_codeCompleteGetContextsPtr + .asFunction)>(); + + /// Retrieve a diagnostic associated with the given code completion. + CXDiagnostic clang_codeCompleteGetDiagnostic( + ffi.Pointer Results, + int Index, + ) { + return _clang_codeCompleteGetDiagnostic(Results, Index); + } + + late final _clang_codeCompleteGetDiagnosticPtr = + _lookup< + ffi.NativeFunction< + CXDiagnostic Function( + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_codeCompleteGetDiagnostic'); + late final _clang_codeCompleteGetDiagnostic = + _clang_codeCompleteGetDiagnosticPtr + .asFunction< + CXDiagnostic Function(ffi.Pointer, int) + >(); + + /// Determine the number of diagnostics produced prior to the location where + /// code completion was performed. + int clang_codeCompleteGetNumDiagnostics( + ffi.Pointer Results, + ) { + return _clang_codeCompleteGetNumDiagnostics(Results); + } + + late final _clang_codeCompleteGetNumDiagnosticsPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(ffi.Pointer) + > + >('clang_codeCompleteGetNumDiagnostics'); + late final _clang_codeCompleteGetNumDiagnostics = + _clang_codeCompleteGetNumDiagnosticsPtr + .asFunction)>(); + + /// Returns the currently-entered selector for an Objective-C message send, + /// formatted like "initWithFoo:bar:". Only guaranteed to return a non-empty + /// string for CXCompletionContext_ObjCInstanceMessage and + /// CXCompletionContext_ObjCClassMessage. + CXString clang_codeCompleteGetObjCSelector( + ffi.Pointer Results, + ) { + return _clang_codeCompleteGetObjCSelector(Results); + } + + late final _clang_codeCompleteGetObjCSelectorPtr = + _lookup< + ffi.NativeFunction< + CXString Function(ffi.Pointer) + > + >('clang_codeCompleteGetObjCSelector'); + late final _clang_codeCompleteGetObjCSelector = + _clang_codeCompleteGetObjCSelectorPtr + .asFunction)>(); + + /// Construct a USR for a specified Objective-C category. + CXString clang_constructUSR_ObjCCategory( + ffi.Pointer class_name, + ffi.Pointer category_name, + ) { + return _clang_constructUSR_ObjCCategory(class_name, category_name); + } + + late final _clang_constructUSR_ObjCCategoryPtr = + _lookup< + ffi.NativeFunction< + CXString Function(ffi.Pointer, ffi.Pointer) + > + >('clang_constructUSR_ObjCCategory'); + late final _clang_constructUSR_ObjCCategory = + _clang_constructUSR_ObjCCategoryPtr + .asFunction< + CXString Function(ffi.Pointer, ffi.Pointer) + >(); + + /// Construct a USR for a specified Objective-C class. + CXString clang_constructUSR_ObjCClass(ffi.Pointer class_name) { + return _clang_constructUSR_ObjCClass(class_name); + } + + late final _clang_constructUSR_ObjCClassPtr = + _lookup)>>( + 'clang_constructUSR_ObjCClass', + ); + late final _clang_constructUSR_ObjCClass = _clang_constructUSR_ObjCClassPtr + .asFunction)>(); + + /// Construct a USR for a specified Objective-C instance variable and the USR + /// for its containing class. + CXString clang_constructUSR_ObjCIvar( + ffi.Pointer name, + CXString classUSR, + ) { + return _clang_constructUSR_ObjCIvar(name, classUSR); + } + + late final _clang_constructUSR_ObjCIvarPtr = + _lookup< + ffi.NativeFunction, CXString)> + >('clang_constructUSR_ObjCIvar'); + late final _clang_constructUSR_ObjCIvar = _clang_constructUSR_ObjCIvarPtr + .asFunction, CXString)>(); + + /// Construct a USR for a specified Objective-C method and the USR for its + /// containing class. + CXString clang_constructUSR_ObjCMethod( + ffi.Pointer name, + int isInstanceMethod, + CXString classUSR, + ) { + return _clang_constructUSR_ObjCMethod(name, isInstanceMethod, classUSR); + } + + late final _clang_constructUSR_ObjCMethodPtr = + _lookup< + ffi.NativeFunction< + CXString Function(ffi.Pointer, ffi.UnsignedInt, CXString) + > + >('clang_constructUSR_ObjCMethod'); + late final _clang_constructUSR_ObjCMethod = _clang_constructUSR_ObjCMethodPtr + .asFunction, int, CXString)>(); + + /// Construct a USR for a specified Objective-C property and the USR for its + /// containing class. + CXString clang_constructUSR_ObjCProperty( + ffi.Pointer property, + CXString classUSR, + ) { + return _clang_constructUSR_ObjCProperty(property, classUSR); + } + + late final _clang_constructUSR_ObjCPropertyPtr = + _lookup< + ffi.NativeFunction, CXString)> + >('clang_constructUSR_ObjCProperty'); + late final _clang_constructUSR_ObjCProperty = + _clang_constructUSR_ObjCPropertyPtr + .asFunction, CXString)>(); + + /// Construct a USR for a specified Objective-C protocol. + CXString clang_constructUSR_ObjCProtocol( + ffi.Pointer protocol_name, + ) { + return _clang_constructUSR_ObjCProtocol(protocol_name); + } + + late final _clang_constructUSR_ObjCProtocolPtr = + _lookup)>>( + 'clang_constructUSR_ObjCProtocol', + ); + late final _clang_constructUSR_ObjCProtocol = + _clang_constructUSR_ObjCProtocolPtr + .asFunction)>(); + + /// Creates an empty CXCursorSet. + CXCursorSet clang_createCXCursorSet() { + return _clang_createCXCursorSet(); + } + + late final _clang_createCXCursorSetPtr = + _lookup>( + 'clang_createCXCursorSet', + ); + late final _clang_createCXCursorSet = _clang_createCXCursorSetPtr + .asFunction(); + + /// Provides a shared context for creating translation units. + CXIndex clang_createIndex( + int excludeDeclarationsFromPCH, + int displayDiagnostics, + ) { + return _clang_createIndex(excludeDeclarationsFromPCH, displayDiagnostics); + } + + late final _clang_createIndexPtr = + _lookup>( + 'clang_createIndex', + ); + late final _clang_createIndex = _clang_createIndexPtr + .asFunction(); + + /// Same as clang_createTranslationUnit2, but returns the CXTranslationUnit + /// instead of an error code. In case of an error this routine returns a NULL + /// CXTranslationUnit, without further detailed error codes. + CXTranslationUnit clang_createTranslationUnit( + CXIndex CIdx, + ffi.Pointer ast_filename, + ) { + return _clang_createTranslationUnit(CIdx, ast_filename); + } + + late final _clang_createTranslationUnitPtr = + _lookup< + ffi.NativeFunction< + CXTranslationUnit Function(CXIndex, ffi.Pointer) + > + >('clang_createTranslationUnit'); + late final _clang_createTranslationUnit = _clang_createTranslationUnitPtr + .asFunction)>(); + + /// Create a translation unit from an AST file ( -emit-ast). + CXErrorCode clang_createTranslationUnit2( + CXIndex CIdx, + ffi.Pointer ast_filename, + ffi.Pointer out_TU, + ) { + return CXErrorCode.fromValue( + _clang_createTranslationUnit2(CIdx, ast_filename, out_TU), + ); + } + + late final _clang_createTranslationUnit2Ptr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXIndex, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_createTranslationUnit2'); + late final _clang_createTranslationUnit2 = _clang_createTranslationUnit2Ptr + .asFunction< + int Function( + CXIndex, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Return the CXTranslationUnit for a given source file and the provided + /// command line arguments one would pass to the compiler. + CXTranslationUnit clang_createTranslationUnitFromSourceFile( + CXIndex CIdx, + ffi.Pointer source_filename, + int num_clang_command_line_args, + ffi.Pointer> clang_command_line_args, + int num_unsaved_files, + ffi.Pointer unsaved_files, + ) { + return _clang_createTranslationUnitFromSourceFile( + CIdx, + source_filename, + num_clang_command_line_args, + clang_command_line_args, + num_unsaved_files, + unsaved_files, + ); + } + + late final _clang_createTranslationUnitFromSourceFilePtr = + _lookup< + ffi.NativeFunction< + CXTranslationUnit Function( + CXIndex, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_createTranslationUnitFromSourceFile'); + late final _clang_createTranslationUnitFromSourceFile = + _clang_createTranslationUnitFromSourceFilePtr + .asFunction< + CXTranslationUnit Function( + CXIndex, + ffi.Pointer, + int, + ffi.Pointer>, + int, + ffi.Pointer, + ) + >(); + + /// Returns a default set of code-completion options that can be passed to + /// clang_codeCompleteAt(). + int clang_defaultCodeCompleteOptions() { + return _clang_defaultCodeCompleteOptions(); + } + + late final _clang_defaultCodeCompleteOptionsPtr = + _lookup>( + 'clang_defaultCodeCompleteOptions', + ); + late final _clang_defaultCodeCompleteOptions = + _clang_defaultCodeCompleteOptionsPtr.asFunction(); + + /// Retrieve the set of display options most similar to the default behavior + /// of the clang compiler. + int clang_defaultDiagnosticDisplayOptions() { + return _clang_defaultDiagnosticDisplayOptions(); + } + + late final _clang_defaultDiagnosticDisplayOptionsPtr = + _lookup>( + 'clang_defaultDiagnosticDisplayOptions', + ); + late final _clang_defaultDiagnosticDisplayOptions = + _clang_defaultDiagnosticDisplayOptionsPtr.asFunction(); + + /// Returns the set of flags that is suitable for parsing a translation unit + /// that is being edited. + int clang_defaultEditingTranslationUnitOptions() { + return _clang_defaultEditingTranslationUnitOptions(); + } + + late final _clang_defaultEditingTranslationUnitOptionsPtr = + _lookup>( + 'clang_defaultEditingTranslationUnitOptions', + ); + late final _clang_defaultEditingTranslationUnitOptions = + _clang_defaultEditingTranslationUnitOptionsPtr + .asFunction(); + + /// Returns the set of flags that is suitable for reparsing a translation + /// unit. + int clang_defaultReparseOptions(CXTranslationUnit TU) { + return _clang_defaultReparseOptions(TU); + } + + late final _clang_defaultReparseOptionsPtr = + _lookup>( + 'clang_defaultReparseOptions', + ); + late final _clang_defaultReparseOptions = _clang_defaultReparseOptionsPtr + .asFunction(); + + /// Returns the set of flags that is suitable for saving a translation unit. + int clang_defaultSaveOptions(CXTranslationUnit TU) { + return _clang_defaultSaveOptions(TU); + } + + late final _clang_defaultSaveOptionsPtr = + _lookup>( + 'clang_defaultSaveOptions', + ); + late final _clang_defaultSaveOptions = _clang_defaultSaveOptionsPtr + .asFunction(); + + /// Disposes a CXCursorSet and releases its associated memory. + void clang_disposeCXCursorSet(CXCursorSet cset) { + return _clang_disposeCXCursorSet(cset); + } + + late final _clang_disposeCXCursorSetPtr = + _lookup>( + 'clang_disposeCXCursorSet', + ); + late final _clang_disposeCXCursorSet = _clang_disposeCXCursorSetPtr + .asFunction(); + + /// Free the memory associated with a CXPlatformAvailability structure. + void clang_disposeCXPlatformAvailability( + ffi.Pointer availability, + ) { + return _clang_disposeCXPlatformAvailability(availability); + } + + late final _clang_disposeCXPlatformAvailabilityPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >('clang_disposeCXPlatformAvailability'); + late final _clang_disposeCXPlatformAvailability = + _clang_disposeCXPlatformAvailabilityPtr + .asFunction)>(); + + void clang_disposeCXTUResourceUsage(CXTUResourceUsage usage) { + return _clang_disposeCXTUResourceUsage(usage); + } + + late final _clang_disposeCXTUResourceUsagePtr = + _lookup>( + 'clang_disposeCXTUResourceUsage', + ); + late final _clang_disposeCXTUResourceUsage = + _clang_disposeCXTUResourceUsagePtr + .asFunction(); + + /// Free the given set of code-completion results. + void clang_disposeCodeCompleteResults( + ffi.Pointer Results, + ) { + return _clang_disposeCodeCompleteResults(Results); + } + + late final _clang_disposeCodeCompleteResultsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >('clang_disposeCodeCompleteResults'); + late final _clang_disposeCodeCompleteResults = + _clang_disposeCodeCompleteResultsPtr + .asFunction)>(); + + /// Destroy a diagnostic. + void clang_disposeDiagnostic(CXDiagnostic Diagnostic) { + return _clang_disposeDiagnostic(Diagnostic); + } + + late final _clang_disposeDiagnosticPtr = + _lookup>( + 'clang_disposeDiagnostic', + ); + late final _clang_disposeDiagnostic = _clang_disposeDiagnosticPtr + .asFunction(); + + /// Release a CXDiagnosticSet and all of its contained diagnostics. + void clang_disposeDiagnosticSet(CXDiagnosticSet Diags) { + return _clang_disposeDiagnosticSet(Diags); + } + + late final _clang_disposeDiagnosticSetPtr = + _lookup>( + 'clang_disposeDiagnosticSet', + ); + late final _clang_disposeDiagnosticSet = _clang_disposeDiagnosticSetPtr + .asFunction(); + + /// Destroy the given index. + void clang_disposeIndex(CXIndex index) { + return _clang_disposeIndex(index); + } + + late final _clang_disposeIndexPtr = + _lookup>( + 'clang_disposeIndex', + ); + late final _clang_disposeIndex = _clang_disposeIndexPtr + .asFunction(); + + /// Free the set of overridden cursors returned by + /// clang_getOverriddenCursors(). + void clang_disposeOverriddenCursors(ffi.Pointer overridden) { + return _clang_disposeOverriddenCursors(overridden); + } + + late final _clang_disposeOverriddenCursorsPtr = + _lookup)>>( + 'clang_disposeOverriddenCursors', + ); + late final _clang_disposeOverriddenCursors = + _clang_disposeOverriddenCursorsPtr + .asFunction)>(); + + /// Destroy the given CXSourceRangeList. + void clang_disposeSourceRangeList(ffi.Pointer ranges) { + return _clang_disposeSourceRangeList(ranges); + } + + late final _clang_disposeSourceRangeListPtr = + _lookup< + ffi.NativeFunction)> + >('clang_disposeSourceRangeList'); + late final _clang_disposeSourceRangeList = _clang_disposeSourceRangeListPtr + .asFunction)>(); + + /// Free the given string. + void clang_disposeString(CXString string) { + return _clang_disposeString(string); + } + + late final _clang_disposeStringPtr = + _lookup>( + 'clang_disposeString', + ); + late final _clang_disposeString = _clang_disposeStringPtr + .asFunction(); + + /// Free the given string set. + void clang_disposeStringSet(ffi.Pointer set) { + return _clang_disposeStringSet(set); + } + + late final _clang_disposeStringSetPtr = + _lookup)>>( + 'clang_disposeStringSet', + ); + late final _clang_disposeStringSet = _clang_disposeStringSetPtr + .asFunction)>(); + + /// Free the given set of tokens. + void clang_disposeTokens( + CXTranslationUnit TU, + ffi.Pointer Tokens, + int NumTokens, + ) { + return _clang_disposeTokens(TU, Tokens, NumTokens); + } + + late final _clang_disposeTokensPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_disposeTokens'); + late final _clang_disposeTokens = _clang_disposeTokensPtr + .asFunction< + void Function(CXTranslationUnit, ffi.Pointer, int) + >(); + + /// Destroy the specified CXTranslationUnit object. + void clang_disposeTranslationUnit(CXTranslationUnit arg0) { + return _clang_disposeTranslationUnit(arg0); + } + + late final _clang_disposeTranslationUnitPtr = + _lookup>( + 'clang_disposeTranslationUnit', + ); + late final _clang_disposeTranslationUnit = _clang_disposeTranslationUnitPtr + .asFunction(); + + void clang_enableStackTraces() { + return _clang_enableStackTraces(); + } + + late final _clang_enableStackTracesPtr = + _lookup>( + 'clang_enableStackTraces', + ); + late final _clang_enableStackTraces = _clang_enableStackTracesPtr + .asFunction(); + + /// Determine whether two cursors are equivalent. + int clang_equalCursors(CXCursor arg0, CXCursor arg1) { + return _clang_equalCursors(arg0, arg1); + } + + late final _clang_equalCursorsPtr = + _lookup>( + 'clang_equalCursors', + ); + late final _clang_equalCursors = _clang_equalCursorsPtr + .asFunction(); + + /// Determine whether two source locations, which must refer into the same + /// translation unit, refer to exactly the same point in the source code. + int clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2) { + return _clang_equalLocations(loc1, loc2); + } + + late final _clang_equalLocationsPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXSourceLocation, CXSourceLocation) + > + >('clang_equalLocations'); + late final _clang_equalLocations = _clang_equalLocationsPtr + .asFunction(); + + /// Determine whether two ranges are equivalent. + int clang_equalRanges(CXSourceRange range1, CXSourceRange range2) { + return _clang_equalRanges(range1, range2); + } + + late final _clang_equalRangesPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXSourceRange, CXSourceRange) + > + >('clang_equalRanges'); + late final _clang_equalRanges = _clang_equalRangesPtr + .asFunction(); + + /// Determine whether two CXTypes represent the same type. + int clang_equalTypes(CXType A, CXType B) { + return _clang_equalTypes(A, B); + } + + late final _clang_equalTypesPtr = + _lookup>( + 'clang_equalTypes', + ); + late final _clang_equalTypes = _clang_equalTypesPtr + .asFunction(); + + void clang_executeOnThread( + ffi.Pointer)>> + fn, + ffi.Pointer user_data, + int stack_size, + ) { + return _clang_executeOnThread(fn, user_data, stack_size); + } + + late final _clang_executeOnThreadPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_executeOnThread'); + late final _clang_executeOnThread = _clang_executeOnThreadPtr + .asFunction< + void Function( + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + int, + ) + >(); + + /// Find #import/#include directives in a specific file. + CXResult clang_findIncludesInFile( + CXTranslationUnit TU, + CXFile file, + CXCursorAndRangeVisitor visitor, + ) { + return CXResult.fromValue(_clang_findIncludesInFile(TU, file, visitor)); + } + + late final _clang_findIncludesInFilePtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXTranslationUnit, + CXFile, + CXCursorAndRangeVisitor, + ) + > + >('clang_findIncludesInFile'); + late final _clang_findIncludesInFile = _clang_findIncludesInFilePtr + .asFunction< + int Function(CXTranslationUnit, CXFile, CXCursorAndRangeVisitor) + >(); + + /// Find references of a declaration in a specific file. + CXResult clang_findReferencesInFile( + CXCursor cursor, + CXFile file, + CXCursorAndRangeVisitor visitor, + ) { + return CXResult.fromValue( + _clang_findReferencesInFile(cursor, file, visitor), + ); + } + + late final _clang_findReferencesInFilePtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor, CXFile, CXCursorAndRangeVisitor) + > + >('clang_findReferencesInFile'); + late final _clang_findReferencesInFile = _clang_findReferencesInFilePtr + .asFunction(); + + /// Format the given diagnostic in a manner that is suitable for display. + CXString clang_formatDiagnostic(CXDiagnostic Diagnostic, int Options) { + return _clang_formatDiagnostic(Diagnostic, Options); + } + + late final _clang_formatDiagnosticPtr = + _lookup< + ffi.NativeFunction + >('clang_formatDiagnostic'); + late final _clang_formatDiagnostic = _clang_formatDiagnosticPtr + .asFunction(); + + /// free memory allocated by libclang, such as the buffer returned by + /// CXVirtualFileOverlay() or clang_ModuleMapDescriptor_writeToBuffer(). + void clang_free(ffi.Pointer buffer) { + return _clang_free(buffer); + } + + late final _clang_freePtr = + _lookup)>>( + 'clang_free', + ); + late final _clang_free = _clang_freePtr + .asFunction)>(); + + /// Returns the address space of the given type. + int clang_getAddressSpace(CXType T) { + return _clang_getAddressSpace(T); + } + + late final _clang_getAddressSpacePtr = + _lookup>( + 'clang_getAddressSpace', + ); + late final _clang_getAddressSpace = _clang_getAddressSpacePtr + .asFunction(); + + /// Retrieve all ranges from all files that were skipped by the preprocessor. + ffi.Pointer clang_getAllSkippedRanges( + CXTranslationUnit tu, + ) { + return _clang_getAllSkippedRanges(tu); + } + + late final _clang_getAllSkippedRangesPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CXTranslationUnit) + > + >('clang_getAllSkippedRanges'); + late final _clang_getAllSkippedRanges = _clang_getAllSkippedRangesPtr + .asFunction Function(CXTranslationUnit)>(); + + /// Retrieve the type of a parameter of a function type. + CXType clang_getArgType(CXType T, int i) { + return _clang_getArgType(T, i); + } + + late final _clang_getArgTypePtr = + _lookup>( + 'clang_getArgType', + ); + late final _clang_getArgType = _clang_getArgTypePtr + .asFunction(); + + /// Return the element type of an array type. + CXType clang_getArrayElementType(CXType T) { + return _clang_getArrayElementType(T); + } + + late final _clang_getArrayElementTypePtr = + _lookup>( + 'clang_getArrayElementType', + ); + late final _clang_getArrayElementType = _clang_getArrayElementTypePtr + .asFunction(); + + /// Return the array size of a constant array. + int clang_getArraySize(CXType T) { + return _clang_getArraySize(T); + } + + late final _clang_getArraySizePtr = + _lookup>( + 'clang_getArraySize', + ); + late final _clang_getArraySize = _clang_getArraySizePtr + .asFunction(); + + /// Return the timestamp for use with Clang's -fbuild-session-timestamp= + /// option. + int clang_getBuildSessionTimestamp() { + return _clang_getBuildSessionTimestamp(); + } + + late final _clang_getBuildSessionTimestampPtr = + _lookup>( + 'clang_getBuildSessionTimestamp', + ); + late final _clang_getBuildSessionTimestamp = + _clang_getBuildSessionTimestampPtr.asFunction(); + + /// Retrieve the character data associated with the given string. + ffi.Pointer clang_getCString(CXString string) { + return _clang_getCString(string); + } + + late final _clang_getCStringPtr = + _lookup Function(CXString)>>( + 'clang_getCString', + ); + late final _clang_getCString = _clang_getCStringPtr + .asFunction Function(CXString)>(); + + /// Return the memory usage of a translation unit. This object should be + /// released with clang_disposeCXTUResourceUsage(). + CXTUResourceUsage clang_getCXTUResourceUsage(CXTranslationUnit TU) { + return _clang_getCXTUResourceUsage(TU); + } + + late final _clang_getCXTUResourceUsagePtr = + _lookup< + ffi.NativeFunction + >('clang_getCXTUResourceUsage'); + late final _clang_getCXTUResourceUsage = _clang_getCXTUResourceUsagePtr + .asFunction(); + + /// Returns the access control level for the referenced object. + CX_CXXAccessSpecifier clang_getCXXAccessSpecifier(CXCursor arg0) { + return CX_CXXAccessSpecifier.fromValue(_clang_getCXXAccessSpecifier(arg0)); + } + + late final _clang_getCXXAccessSpecifierPtr = + _lookup>( + 'clang_getCXXAccessSpecifier', + ); + late final _clang_getCXXAccessSpecifier = _clang_getCXXAccessSpecifierPtr + .asFunction(); + + /// Retrieve the canonical cursor corresponding to the given cursor. + CXCursor clang_getCanonicalCursor(CXCursor arg0) { + return _clang_getCanonicalCursor(arg0); + } + + late final _clang_getCanonicalCursorPtr = + _lookup>( + 'clang_getCanonicalCursor', + ); + late final _clang_getCanonicalCursor = _clang_getCanonicalCursorPtr + .asFunction(); + + /// Return the canonical type for a CXType. + CXType clang_getCanonicalType(CXType T) { + return _clang_getCanonicalType(T); + } + + late final _clang_getCanonicalTypePtr = + _lookup>( + 'clang_getCanonicalType', + ); + late final _clang_getCanonicalType = _clang_getCanonicalTypePtr + .asFunction(); + + /// Retrieve the child diagnostics of a CXDiagnostic. + CXDiagnosticSet clang_getChildDiagnostics(CXDiagnostic D) { + return _clang_getChildDiagnostics(D); + } + + late final _clang_getChildDiagnosticsPtr = + _lookup>( + 'clang_getChildDiagnostics', + ); + late final _clang_getChildDiagnostics = _clang_getChildDiagnosticsPtr + .asFunction(); + + /// Return a version string, suitable for showing to a user, but not intended + /// to be parsed (the format is not guaranteed to be stable). + CXString clang_getClangVersion() { + return _clang_getClangVersion(); + } + + late final _clang_getClangVersionPtr = + _lookup>('clang_getClangVersion'); + late final _clang_getClangVersion = _clang_getClangVersionPtr + .asFunction(); + + /// Retrieve the annotation associated with the given completion string. + CXString clang_getCompletionAnnotation( + CXCompletionString completion_string, + int annotation_number, + ) { + return _clang_getCompletionAnnotation(completion_string, annotation_number); + } + + late final _clang_getCompletionAnnotationPtr = + _lookup< + ffi.NativeFunction< + CXString Function(CXCompletionString, ffi.UnsignedInt) + > + >('clang_getCompletionAnnotation'); + late final _clang_getCompletionAnnotation = _clang_getCompletionAnnotationPtr + .asFunction(); + + /// Determine the availability of the entity that this code-completion string + /// refers to. + CXAvailabilityKind clang_getCompletionAvailability( + CXCompletionString completion_string, + ) { + return CXAvailabilityKind.fromValue( + _clang_getCompletionAvailability(completion_string), + ); + } + + late final _clang_getCompletionAvailabilityPtr = + _lookup>( + 'clang_getCompletionAvailability', + ); + late final _clang_getCompletionAvailability = + _clang_getCompletionAvailabilityPtr + .asFunction(); + + /// Retrieve the brief documentation comment attached to the declaration that + /// corresponds to the given completion string. + CXString clang_getCompletionBriefComment( + CXCompletionString completion_string, + ) { + return _clang_getCompletionBriefComment(completion_string); + } + + late final _clang_getCompletionBriefCommentPtr = + _lookup>( + 'clang_getCompletionBriefComment', + ); + late final _clang_getCompletionBriefComment = + _clang_getCompletionBriefCommentPtr + .asFunction(); + + /// Retrieve the completion string associated with a particular chunk within a + /// completion string. + CXCompletionString clang_getCompletionChunkCompletionString( + CXCompletionString completion_string, + int chunk_number, + ) { + return _clang_getCompletionChunkCompletionString( + completion_string, + chunk_number, + ); + } + + late final _clang_getCompletionChunkCompletionStringPtr = + _lookup< + ffi.NativeFunction< + CXCompletionString Function(CXCompletionString, ffi.UnsignedInt) + > + >('clang_getCompletionChunkCompletionString'); + late final _clang_getCompletionChunkCompletionString = + _clang_getCompletionChunkCompletionStringPtr + .asFunction(); + + /// Determine the kind of a particular chunk within a completion string. + CXCompletionChunkKind clang_getCompletionChunkKind( + CXCompletionString completion_string, + int chunk_number, + ) { + return CXCompletionChunkKind.fromValue( + _clang_getCompletionChunkKind(completion_string, chunk_number), + ); + } + + late final _clang_getCompletionChunkKindPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString, ffi.UnsignedInt) + > + >('clang_getCompletionChunkKind'); + late final _clang_getCompletionChunkKind = _clang_getCompletionChunkKindPtr + .asFunction(); + + /// Retrieve the text associated with a particular chunk within a completion + /// string. + CXString clang_getCompletionChunkText( + CXCompletionString completion_string, + int chunk_number, + ) { + return _clang_getCompletionChunkText(completion_string, chunk_number); + } + + late final _clang_getCompletionChunkTextPtr = + _lookup< + ffi.NativeFunction< + CXString Function(CXCompletionString, ffi.UnsignedInt) + > + >('clang_getCompletionChunkText'); + late final _clang_getCompletionChunkText = _clang_getCompletionChunkTextPtr + .asFunction(); + + /// Fix-its that *must* be applied before inserting the text for the + /// corresponding completion. + CXString clang_getCompletionFixIt( + ffi.Pointer results, + int completion_index, + int fixit_index, + ffi.Pointer replacement_range, + ) { + return _clang_getCompletionFixIt( + results, + completion_index, + fixit_index, + replacement_range, + ); + } + + late final _clang_getCompletionFixItPtr = + _lookup< + ffi.NativeFunction< + CXString Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_getCompletionFixIt'); + late final _clang_getCompletionFixIt = _clang_getCompletionFixItPtr + .asFunction< + CXString Function( + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); + + /// Retrieve the number of annotations associated with the given completion + /// string. + int clang_getCompletionNumAnnotations(CXCompletionString completion_string) { + return _clang_getCompletionNumAnnotations(completion_string); + } + + late final _clang_getCompletionNumAnnotationsPtr = + _lookup>( + 'clang_getCompletionNumAnnotations', + ); + late final _clang_getCompletionNumAnnotations = + _clang_getCompletionNumAnnotationsPtr + .asFunction(); + + /// Retrieve the number of fix-its for the given completion index. + int clang_getCompletionNumFixIts( + ffi.Pointer results, + int completion_index, + ) { + return _clang_getCompletionNumFixIts(results, completion_index); + } + + late final _clang_getCompletionNumFixItsPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_getCompletionNumFixIts'); + late final _clang_getCompletionNumFixIts = _clang_getCompletionNumFixItsPtr + .asFunction, int)>(); + + /// Retrieve the parent context of the given completion string. + CXString clang_getCompletionParent( + CXCompletionString completion_string, + ffi.Pointer kind, + ) { + return _clang_getCompletionParent(completion_string, kind); + } + + late final _clang_getCompletionParentPtr = + _lookup< + ffi.NativeFunction< + CXString Function(CXCompletionString, ffi.Pointer) + > + >('clang_getCompletionParent'); + late final _clang_getCompletionParent = _clang_getCompletionParentPtr + .asFunction< + CXString Function(CXCompletionString, ffi.Pointer) + >(); + + /// Determine the priority of this code completion. + int clang_getCompletionPriority(CXCompletionString completion_string) { + return _clang_getCompletionPriority(completion_string); + } + + late final _clang_getCompletionPriorityPtr = + _lookup>( + 'clang_getCompletionPriority', + ); + late final _clang_getCompletionPriority = _clang_getCompletionPriorityPtr + .asFunction(); + + /// Map a source location to the cursor that describes the entity at that + /// location in the source code. + CXCursor clang_getCursor(CXTranslationUnit arg0, CXSourceLocation arg1) { + return _clang_getCursor(arg0, arg1); + } + + late final _clang_getCursorPtr = + _lookup< + ffi.NativeFunction< + CXCursor Function(CXTranslationUnit, CXSourceLocation) + > + >('clang_getCursor'); + late final _clang_getCursor = _clang_getCursorPtr + .asFunction(); + + /// Determine the availability of the entity that this cursor refers to, + /// taking the current target platform into account. + CXAvailabilityKind clang_getCursorAvailability(CXCursor cursor) { + return CXAvailabilityKind.fromValue(_clang_getCursorAvailability(cursor)); + } + + late final _clang_getCursorAvailabilityPtr = + _lookup>( + 'clang_getCursorAvailability', + ); + late final _clang_getCursorAvailability = _clang_getCursorAvailabilityPtr + .asFunction(); + + /// Retrieve a completion string for an arbitrary declaration or macro + /// definition cursor. + CXCompletionString clang_getCursorCompletionString(CXCursor cursor) { + return _clang_getCursorCompletionString(cursor); + } + + late final _clang_getCursorCompletionStringPtr = + _lookup>( + 'clang_getCursorCompletionString', + ); + late final _clang_getCursorCompletionString = + _clang_getCursorCompletionStringPtr + .asFunction(); + + /// For a cursor that is either a reference to or a declaration of some + /// entity, retrieve a cursor that describes the definition of that entity. + CXCursor clang_getCursorDefinition(CXCursor arg0) { + return _clang_getCursorDefinition(arg0); + } + + late final _clang_getCursorDefinitionPtr = + _lookup>( + 'clang_getCursorDefinition', + ); + late final _clang_getCursorDefinition = _clang_getCursorDefinitionPtr + .asFunction(); + + /// Retrieve the display name for the entity referenced by this cursor. + CXString clang_getCursorDisplayName(CXCursor arg0) { + return _clang_getCursorDisplayName(arg0); + } + + late final _clang_getCursorDisplayNamePtr = + _lookup>( + 'clang_getCursorDisplayName', + ); + late final _clang_getCursorDisplayName = _clang_getCursorDisplayNamePtr + .asFunction(); + + /// Retrieve the exception specification type associated with a given cursor. + /// This is a value of type CXCursor_ExceptionSpecificationKind. + int clang_getCursorExceptionSpecificationType(CXCursor C) { + return _clang_getCursorExceptionSpecificationType(C); + } + + late final _clang_getCursorExceptionSpecificationTypePtr = + _lookup>( + 'clang_getCursorExceptionSpecificationType', + ); + late final _clang_getCursorExceptionSpecificationType = + _clang_getCursorExceptionSpecificationTypePtr + .asFunction(); + + /// Retrieve the physical extent of the source construct referenced by the + /// given cursor. + CXSourceRange clang_getCursorExtent(CXCursor arg0) { + return _clang_getCursorExtent(arg0); + } + + late final _clang_getCursorExtentPtr = + _lookup>( + 'clang_getCursorExtent', + ); + late final _clang_getCursorExtent = _clang_getCursorExtentPtr + .asFunction(); + + /// Retrieve the kind of the given cursor. + CXCursorKind clang_getCursorKind(CXCursor arg0) { + return CXCursorKind.fromValue(_clang_getCursorKind(arg0)); + } + + late final _clang_getCursorKindPtr = + _lookup>( + 'clang_getCursorKind', + ); + late final _clang_getCursorKind = _clang_getCursorKindPtr + .asFunction(); + + /// These routines are used for testing and debugging, only, and should not be + /// relied upon. + CXString clang_getCursorKindSpelling(CXCursorKind Kind) { + return _clang_getCursorKindSpelling(Kind.value); + } + + late final _clang_getCursorKindSpellingPtr = + _lookup>( + 'clang_getCursorKindSpelling', + ); + late final _clang_getCursorKindSpelling = _clang_getCursorKindSpellingPtr + .asFunction(); + + /// Determine the "language" of the entity referred to by a given cursor. + CXLanguageKind clang_getCursorLanguage(CXCursor cursor) { + return CXLanguageKind.fromValue(_clang_getCursorLanguage(cursor)); + } + + late final _clang_getCursorLanguagePtr = + _lookup>( + 'clang_getCursorLanguage', + ); + late final _clang_getCursorLanguage = _clang_getCursorLanguagePtr + .asFunction(); + + /// Determine the lexical parent of the given cursor. + CXCursor clang_getCursorLexicalParent(CXCursor cursor) { + return _clang_getCursorLexicalParent(cursor); + } + + late final _clang_getCursorLexicalParentPtr = + _lookup>( + 'clang_getCursorLexicalParent', + ); + late final _clang_getCursorLexicalParent = _clang_getCursorLexicalParentPtr + .asFunction(); + + /// Determine the linkage of the entity referred to by a given cursor. + CXLinkageKind clang_getCursorLinkage(CXCursor cursor) { + return CXLinkageKind.fromValue(_clang_getCursorLinkage(cursor)); + } + + late final _clang_getCursorLinkagePtr = + _lookup>( + 'clang_getCursorLinkage', + ); + late final _clang_getCursorLinkage = _clang_getCursorLinkagePtr + .asFunction(); + + /// Retrieve the physical location of the source constructor referenced by the + /// given cursor. + CXSourceLocation clang_getCursorLocation(CXCursor arg0) { + return _clang_getCursorLocation(arg0); + } + + late final _clang_getCursorLocationPtr = + _lookup>( + 'clang_getCursorLocation', + ); + late final _clang_getCursorLocation = _clang_getCursorLocationPtr + .asFunction(); + + /// Determine the availability of the entity that this cursor refers to on any + /// platforms for which availability information is known. + int clang_getCursorPlatformAvailability( + CXCursor cursor, + ffi.Pointer always_deprecated, + ffi.Pointer deprecated_message, + ffi.Pointer always_unavailable, + ffi.Pointer unavailable_message, + ffi.Pointer availability, + int availability_size, + ) { + return _clang_getCursorPlatformAvailability( + cursor, + always_deprecated, + deprecated_message, + always_unavailable, + unavailable_message, + availability, + availability_size, + ); + } + + late final _clang_getCursorPlatformAvailabilityPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXCursor, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('clang_getCursorPlatformAvailability'); + late final _clang_getCursorPlatformAvailability = + _clang_getCursorPlatformAvailabilityPtr + .asFunction< + int Function( + CXCursor, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + /// Pretty print declarations. + CXString clang_getCursorPrettyPrinted( + CXCursor Cursor, + CXPrintingPolicy Policy, + ) { + return _clang_getCursorPrettyPrinted(Cursor, Policy); + } + + late final _clang_getCursorPrettyPrintedPtr = + _lookup< + ffi.NativeFunction + >('clang_getCursorPrettyPrinted'); + late final _clang_getCursorPrettyPrinted = _clang_getCursorPrettyPrintedPtr + .asFunction(); + + /// Retrieve the default policy for the cursor. + CXPrintingPolicy clang_getCursorPrintingPolicy(CXCursor arg0) { + return _clang_getCursorPrintingPolicy(arg0); + } + + late final _clang_getCursorPrintingPolicyPtr = + _lookup>( + 'clang_getCursorPrintingPolicy', + ); + late final _clang_getCursorPrintingPolicy = _clang_getCursorPrintingPolicyPtr + .asFunction(); + + /// Given a cursor that references something else, return the source range + /// covering that reference. + CXSourceRange clang_getCursorReferenceNameRange( + CXCursor C, + int NameFlags, + int PieceIndex, + ) { + return _clang_getCursorReferenceNameRange(C, NameFlags, PieceIndex); + } + + late final _clang_getCursorReferenceNameRangePtr = + _lookup< + ffi.NativeFunction< + CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) + > + >('clang_getCursorReferenceNameRange'); + late final _clang_getCursorReferenceNameRange = + _clang_getCursorReferenceNameRangePtr + .asFunction(); + + /// For a cursor that is a reference, retrieve a cursor representing the + /// entity that it references. + CXCursor clang_getCursorReferenced(CXCursor arg0) { + return _clang_getCursorReferenced(arg0); + } + + late final _clang_getCursorReferencedPtr = + _lookup>( + 'clang_getCursorReferenced', + ); + late final _clang_getCursorReferenced = _clang_getCursorReferencedPtr + .asFunction(); + + /// Retrieve the return type associated with a given cursor. + CXType clang_getCursorResultType(CXCursor C) { + return _clang_getCursorResultType(C); + } + + late final _clang_getCursorResultTypePtr = + _lookup>( + 'clang_getCursorResultType', + ); + late final _clang_getCursorResultType = _clang_getCursorResultTypePtr + .asFunction(); + + /// Determine the semantic parent of the given cursor. + CXCursor clang_getCursorSemanticParent(CXCursor cursor) { + return _clang_getCursorSemanticParent(cursor); + } + + late final _clang_getCursorSemanticParentPtr = + _lookup>( + 'clang_getCursorSemanticParent', + ); + late final _clang_getCursorSemanticParent = _clang_getCursorSemanticParentPtr + .asFunction(); + + /// Retrieve a name for the entity referenced by this cursor. + CXString clang_getCursorSpelling(CXCursor arg0) { + return _clang_getCursorSpelling(arg0); + } + + late final _clang_getCursorSpellingPtr = + _lookup>( + 'clang_getCursorSpelling', + ); + late final _clang_getCursorSpelling = _clang_getCursorSpellingPtr + .asFunction(); + + /// Determine the "thread-local storage (TLS) kind" of the declaration + /// referred to by a cursor. + CXTLSKind clang_getCursorTLSKind(CXCursor cursor) { + return CXTLSKind.fromValue(_clang_getCursorTLSKind(cursor)); + } + + late final _clang_getCursorTLSKindPtr = + _lookup>( + 'clang_getCursorTLSKind', + ); + late final _clang_getCursorTLSKind = _clang_getCursorTLSKindPtr + .asFunction(); + + /// Retrieve the type of a CXCursor (if any). + CXType clang_getCursorType(CXCursor C) { + return _clang_getCursorType(C); + } + + late final _clang_getCursorTypePtr = + _lookup>( + 'clang_getCursorType', + ); + late final _clang_getCursorType = _clang_getCursorTypePtr + .asFunction(); + + /// Retrieve a Unified Symbol Resolution (USR) for the entity referenced by + /// the given cursor. + CXString clang_getCursorUSR(CXCursor arg0) { + return _clang_getCursorUSR(arg0); + } + + late final _clang_getCursorUSRPtr = + _lookup>( + 'clang_getCursorUSR', + ); + late final _clang_getCursorUSR = _clang_getCursorUSRPtr + .asFunction(); + + /// Describe the visibility of the entity referred to by a cursor. + CXVisibilityKind clang_getCursorVisibility(CXCursor cursor) { + return CXVisibilityKind.fromValue(_clang_getCursorVisibility(cursor)); + } + + late final _clang_getCursorVisibilityPtr = + _lookup>( + 'clang_getCursorVisibility', + ); + late final _clang_getCursorVisibility = _clang_getCursorVisibilityPtr + .asFunction(); + + /// Returns the Objective-C type encoding for the specified declaration. + CXString clang_getDeclObjCTypeEncoding(CXCursor C) { + return _clang_getDeclObjCTypeEncoding(C); + } + + late final _clang_getDeclObjCTypeEncodingPtr = + _lookup>( + 'clang_getDeclObjCTypeEncoding', + ); + late final _clang_getDeclObjCTypeEncoding = _clang_getDeclObjCTypeEncodingPtr + .asFunction(); + + void clang_getDefinitionSpellingAndExtent( + CXCursor arg0, + ffi.Pointer> startBuf, + ffi.Pointer> endBuf, + ffi.Pointer startLine, + ffi.Pointer startColumn, + ffi.Pointer endLine, + ffi.Pointer endColumn, + ) { + return _clang_getDefinitionSpellingAndExtent( + arg0, + startBuf, + endBuf, + startLine, + startColumn, + endLine, + endColumn, + ); + } + + late final _clang_getDefinitionSpellingAndExtentPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXCursor, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getDefinitionSpellingAndExtent'); + late final _clang_getDefinitionSpellingAndExtent = + _clang_getDefinitionSpellingAndExtentPtr + .asFunction< + void Function( + CXCursor, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Retrieve a diagnostic associated with the given translation unit. + CXDiagnostic clang_getDiagnostic(CXTranslationUnit Unit, int Index) { + return _clang_getDiagnostic(Unit, Index); + } + + late final _clang_getDiagnosticPtr = + _lookup< + ffi.NativeFunction< + CXDiagnostic Function(CXTranslationUnit, ffi.UnsignedInt) + > + >('clang_getDiagnostic'); + late final _clang_getDiagnostic = _clang_getDiagnosticPtr + .asFunction(); + + /// Retrieve the category number for this diagnostic. + int clang_getDiagnosticCategory(CXDiagnostic arg0) { + return _clang_getDiagnosticCategory(arg0); + } + + late final _clang_getDiagnosticCategoryPtr = + _lookup>( + 'clang_getDiagnosticCategory', + ); + late final _clang_getDiagnosticCategory = _clang_getDiagnosticCategoryPtr + .asFunction(); + + /// Retrieve the name of a particular diagnostic category. This is now + /// deprecated. Use clang_getDiagnosticCategoryText() instead. + @Deprecated('Deprecated') + CXString clang_getDiagnosticCategoryName(int Category) { + return _clang_getDiagnosticCategoryName(Category); + } + + late final _clang_getDiagnosticCategoryNamePtr = + _lookup>( + 'clang_getDiagnosticCategoryName', + ); + late final _clang_getDiagnosticCategoryName = + _clang_getDiagnosticCategoryNamePtr.asFunction(); + + /// Retrieve the diagnostic category text for a given diagnostic. + CXString clang_getDiagnosticCategoryText(CXDiagnostic arg0) { + return _clang_getDiagnosticCategoryText(arg0); + } + + late final _clang_getDiagnosticCategoryTextPtr = + _lookup>( + 'clang_getDiagnosticCategoryText', + ); + late final _clang_getDiagnosticCategoryText = + _clang_getDiagnosticCategoryTextPtr + .asFunction(); + + /// Retrieve the replacement information for a given fix-it. + CXString clang_getDiagnosticFixIt( + CXDiagnostic Diagnostic, + int FixIt, + ffi.Pointer ReplacementRange, + ) { + return _clang_getDiagnosticFixIt(Diagnostic, FixIt, ReplacementRange); + } + + late final _clang_getDiagnosticFixItPtr = + _lookup< + ffi.NativeFunction< + CXString Function( + CXDiagnostic, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_getDiagnosticFixIt'); + late final _clang_getDiagnosticFixIt = _clang_getDiagnosticFixItPtr + .asFunction< + CXString Function(CXDiagnostic, int, ffi.Pointer) + >(); + + /// Retrieve a diagnostic associated with the given CXDiagnosticSet. + CXDiagnostic clang_getDiagnosticInSet(CXDiagnosticSet Diags, int Index) { + return _clang_getDiagnosticInSet(Diags, Index); + } + + late final _clang_getDiagnosticInSetPtr = + _lookup< + ffi.NativeFunction< + CXDiagnostic Function(CXDiagnosticSet, ffi.UnsignedInt) + > + >('clang_getDiagnosticInSet'); + late final _clang_getDiagnosticInSet = _clang_getDiagnosticInSetPtr + .asFunction(); + + /// Retrieve the source location of the given diagnostic. + CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic arg0) { + return _clang_getDiagnosticLocation(arg0); + } + + late final _clang_getDiagnosticLocationPtr = + _lookup>( + 'clang_getDiagnosticLocation', + ); + late final _clang_getDiagnosticLocation = _clang_getDiagnosticLocationPtr + .asFunction(); + + /// Determine the number of fix-it hints associated with the given diagnostic. + int clang_getDiagnosticNumFixIts(CXDiagnostic Diagnostic) { + return _clang_getDiagnosticNumFixIts(Diagnostic); + } + + late final _clang_getDiagnosticNumFixItsPtr = + _lookup>( + 'clang_getDiagnosticNumFixIts', + ); + late final _clang_getDiagnosticNumFixIts = _clang_getDiagnosticNumFixItsPtr + .asFunction(); + + /// Determine the number of source ranges associated with the given + /// diagnostic. + int clang_getDiagnosticNumRanges(CXDiagnostic arg0) { + return _clang_getDiagnosticNumRanges(arg0); + } + + late final _clang_getDiagnosticNumRangesPtr = + _lookup>( + 'clang_getDiagnosticNumRanges', + ); + late final _clang_getDiagnosticNumRanges = _clang_getDiagnosticNumRangesPtr + .asFunction(); + + /// Retrieve the name of the command-line option that enabled this diagnostic. + CXString clang_getDiagnosticOption( + CXDiagnostic Diag, + ffi.Pointer Disable, + ) { + return _clang_getDiagnosticOption(Diag, Disable); + } + + late final _clang_getDiagnosticOptionPtr = + _lookup< + ffi.NativeFunction< + CXString Function(CXDiagnostic, ffi.Pointer) + > + >('clang_getDiagnosticOption'); + late final _clang_getDiagnosticOption = _clang_getDiagnosticOptionPtr + .asFunction)>(); + + /// Retrieve a source range associated with the diagnostic. + CXSourceRange clang_getDiagnosticRange(CXDiagnostic Diagnostic, int Range) { + return _clang_getDiagnosticRange(Diagnostic, Range); + } + + late final _clang_getDiagnosticRangePtr = + _lookup< + ffi.NativeFunction< + CXSourceRange Function(CXDiagnostic, ffi.UnsignedInt) + > + >('clang_getDiagnosticRange'); + late final _clang_getDiagnosticRange = _clang_getDiagnosticRangePtr + .asFunction(); + + /// Retrieve the complete set of diagnostics associated with a translation + /// unit. + CXDiagnosticSet clang_getDiagnosticSetFromTU(CXTranslationUnit Unit) { + return _clang_getDiagnosticSetFromTU(Unit); + } + + late final _clang_getDiagnosticSetFromTUPtr = + _lookup>( + 'clang_getDiagnosticSetFromTU', + ); + late final _clang_getDiagnosticSetFromTU = _clang_getDiagnosticSetFromTUPtr + .asFunction(); + + /// Determine the severity of the given diagnostic. + CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic arg0) { + return CXDiagnosticSeverity.fromValue(_clang_getDiagnosticSeverity(arg0)); + } + + late final _clang_getDiagnosticSeverityPtr = + _lookup>( + 'clang_getDiagnosticSeverity', + ); + late final _clang_getDiagnosticSeverity = _clang_getDiagnosticSeverityPtr + .asFunction(); + + /// Retrieve the text of the given diagnostic. + CXString clang_getDiagnosticSpelling(CXDiagnostic arg0) { + return _clang_getDiagnosticSpelling(arg0); + } + + late final _clang_getDiagnosticSpellingPtr = + _lookup>( + 'clang_getDiagnosticSpelling', + ); + late final _clang_getDiagnosticSpelling = _clang_getDiagnosticSpellingPtr + .asFunction(); + + /// Return the element type of an array, complex, or vector type. + CXType clang_getElementType(CXType T) { + return _clang_getElementType(T); + } + + late final _clang_getElementTypePtr = + _lookup>( + 'clang_getElementType', + ); + late final _clang_getElementType = _clang_getElementTypePtr + .asFunction(); + + /// Retrieve the integer value of an enum constant declaration as an unsigned + /// long long. + int clang_getEnumConstantDeclUnsignedValue(CXCursor C) { + return _clang_getEnumConstantDeclUnsignedValue(C); + } + + late final _clang_getEnumConstantDeclUnsignedValuePtr = + _lookup>( + 'clang_getEnumConstantDeclUnsignedValue', + ); + late final _clang_getEnumConstantDeclUnsignedValue = + _clang_getEnumConstantDeclUnsignedValuePtr + .asFunction(); + + /// Retrieve the integer value of an enum constant declaration as a signed + /// long long. + int clang_getEnumConstantDeclValue(CXCursor C) { + return _clang_getEnumConstantDeclValue(C); + } + + late final _clang_getEnumConstantDeclValuePtr = + _lookup>( + 'clang_getEnumConstantDeclValue', + ); + late final _clang_getEnumConstantDeclValue = + _clang_getEnumConstantDeclValuePtr.asFunction(); + + /// Retrieve the integer type of an enum declaration. + CXType clang_getEnumDeclIntegerType(CXCursor C) { + return _clang_getEnumDeclIntegerType(C); + } + + late final _clang_getEnumDeclIntegerTypePtr = + _lookup>( + 'clang_getEnumDeclIntegerType', + ); + late final _clang_getEnumDeclIntegerType = _clang_getEnumDeclIntegerTypePtr + .asFunction(); + + /// Retrieve the exception specification type associated with a function type. + /// This is a value of type CXCursor_ExceptionSpecificationKind. + int clang_getExceptionSpecificationType(CXType T) { + return _clang_getExceptionSpecificationType(T); + } + + late final _clang_getExceptionSpecificationTypePtr = + _lookup>( + 'clang_getExceptionSpecificationType', + ); + late final _clang_getExceptionSpecificationType = + _clang_getExceptionSpecificationTypePtr + .asFunction(); + + /// Retrieve the file, line, column, and offset represented by the given + /// source location. + void clang_getExpansionLocation( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ) { + return _clang_getExpansionLocation(location, file, line, column, offset); + } + + late final _clang_getExpansionLocationPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getExpansionLocation'); + late final _clang_getExpansionLocation = _clang_getExpansionLocationPtr + .asFunction< + void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Retrieve the bit width of a bit field declaration as an integer. + int clang_getFieldDeclBitWidth(CXCursor C) { + return _clang_getFieldDeclBitWidth(C); + } + + late final _clang_getFieldDeclBitWidthPtr = + _lookup>( + 'clang_getFieldDeclBitWidth', + ); + late final _clang_getFieldDeclBitWidth = _clang_getFieldDeclBitWidthPtr + .asFunction(); + + /// Retrieve a file handle within the given translation unit. + CXFile clang_getFile(CXTranslationUnit tu, ffi.Pointer file_name) { + return _clang_getFile(tu, file_name); + } + + late final _clang_getFilePtr = + _lookup< + ffi.NativeFunction< + CXFile Function(CXTranslationUnit, ffi.Pointer) + > + >('clang_getFile'); + late final _clang_getFile = _clang_getFilePtr + .asFunction)>(); + + /// Retrieve the buffer associated with the given file. + ffi.Pointer clang_getFileContents( + CXTranslationUnit tu, + CXFile file, + ffi.Pointer size, + ) { + return _clang_getFileContents(tu, file, size); + } + + late final _clang_getFileContentsPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CXTranslationUnit, + CXFile, + ffi.Pointer, + ) + > + >('clang_getFileContents'); + late final _clang_getFileContents = _clang_getFileContentsPtr + .asFunction< + ffi.Pointer Function( + CXTranslationUnit, + CXFile, + ffi.Pointer, + ) + >(); + + /// Retrieve the file, line, column, and offset represented by the given + /// source location. + void clang_getFileLocation( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ) { + return _clang_getFileLocation(location, file, line, column, offset); + } + + late final _clang_getFileLocationPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getFileLocation'); + late final _clang_getFileLocation = _clang_getFileLocationPtr + .asFunction< + void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Retrieve the complete file and path name of the given file. + CXString clang_getFileName(CXFile SFile) { + return _clang_getFileName(SFile); + } + + late final _clang_getFileNamePtr = + _lookup>( + 'clang_getFileName', + ); + late final _clang_getFileName = _clang_getFileNamePtr + .asFunction(); + + /// Retrieve the last modification time of the given file. + int clang_getFileTime(CXFile SFile) { + return _clang_getFileTime(SFile); + } + + late final _clang_getFileTimePtr = + _lookup>( + 'clang_getFileTime', + ); + late final _clang_getFileTime = _clang_getFileTimePtr + .asFunction(); + + /// Retrieve the unique ID for the given file. + int clang_getFileUniqueID(CXFile file, ffi.Pointer outID) { + return _clang_getFileUniqueID(file, outID); + } + + late final _clang_getFileUniqueIDPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(CXFile, ffi.Pointer) + > + >('clang_getFileUniqueID'); + late final _clang_getFileUniqueID = _clang_getFileUniqueIDPtr + .asFunction)>(); + + /// Retrieve the calling convention associated with a function type. + CXCallingConv clang_getFunctionTypeCallingConv(CXType T) { + return CXCallingConv.fromValue(_clang_getFunctionTypeCallingConv(T)); + } + + late final _clang_getFunctionTypeCallingConvPtr = + _lookup>( + 'clang_getFunctionTypeCallingConv', + ); + late final _clang_getFunctionTypeCallingConv = + _clang_getFunctionTypeCallingConvPtr.asFunction(); + + /// For cursors representing an iboutletcollection attribute, this function + /// returns the collection element type. + CXType clang_getIBOutletCollectionType(CXCursor arg0) { + return _clang_getIBOutletCollectionType(arg0); + } + + late final _clang_getIBOutletCollectionTypePtr = + _lookup>( + 'clang_getIBOutletCollectionType', + ); + late final _clang_getIBOutletCollectionType = + _clang_getIBOutletCollectionTypePtr + .asFunction(); + + /// Retrieve the file that is included by the given inclusion directive + /// cursor. + CXFile clang_getIncludedFile(CXCursor cursor) { + return _clang_getIncludedFile(cursor); + } + + late final _clang_getIncludedFilePtr = + _lookup>( + 'clang_getIncludedFile', + ); + late final _clang_getIncludedFile = _clang_getIncludedFilePtr + .asFunction(); + + /// Visit the set of preprocessor inclusions in a translation unit. The + /// visitor function is called with the provided data for every included file. + /// This does not include headers included by the PCH file (unless one is + /// inspecting the inclusions in the PCH file itself). + void clang_getInclusions( + CXTranslationUnit tu, + CXInclusionVisitor visitor, + CXClientData client_data, + ) { + return _clang_getInclusions(tu, visitor, client_data); + } + + late final _clang_getInclusionsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(CXTranslationUnit, CXInclusionVisitor, CXClientData) + > + >('clang_getInclusions'); + late final _clang_getInclusions = _clang_getInclusionsPtr + .asFunction< + void Function(CXTranslationUnit, CXInclusionVisitor, CXClientData) + >(); + + /// Legacy API to retrieve the file, line, column, and offset represented by + /// the given source location. + void clang_getInstantiationLocation( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ) { + return _clang_getInstantiationLocation( + location, + file, + line, + column, + offset, + ); + } + + late final _clang_getInstantiationLocationPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getInstantiationLocation'); + late final _clang_getInstantiationLocation = + _clang_getInstantiationLocationPtr + .asFunction< + void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Retrieves the source location associated with a given file/line/column in + /// a particular translation unit. + CXSourceLocation clang_getLocation( + CXTranslationUnit tu, + CXFile file, + int line, + int column, + ) { + return _clang_getLocation(tu, file, line, column); + } + + late final _clang_getLocationPtr = + _lookup< + ffi.NativeFunction< + CXSourceLocation Function( + CXTranslationUnit, + CXFile, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + >('clang_getLocation'); + late final _clang_getLocation = _clang_getLocationPtr + .asFunction< + CXSourceLocation Function(CXTranslationUnit, CXFile, int, int) + >(); + + /// Retrieves the source location associated with a given character offset in + /// a particular translation unit. + CXSourceLocation clang_getLocationForOffset( + CXTranslationUnit tu, + CXFile file, + int offset, + ) { + return _clang_getLocationForOffset(tu, file, offset); + } + + late final _clang_getLocationForOffsetPtr = + _lookup< + ffi.NativeFunction< + CXSourceLocation Function(CXTranslationUnit, CXFile, ffi.UnsignedInt) + > + >('clang_getLocationForOffset'); + late final _clang_getLocationForOffset = _clang_getLocationForOffsetPtr + .asFunction(); + + /// Given a CXFile header file, return the module that contains it, if one + /// exists. + CXModule clang_getModuleForFile(CXTranslationUnit arg0, CXFile arg1) { + return _clang_getModuleForFile(arg0, arg1); + } + + late final _clang_getModuleForFilePtr = + _lookup>( + 'clang_getModuleForFile', + ); + late final _clang_getModuleForFile = _clang_getModuleForFilePtr + .asFunction(); + + /// Retrieve the NULL cursor, which represents no entity. + CXCursor clang_getNullCursor() { + return _clang_getNullCursor(); + } + + late final _clang_getNullCursorPtr = + _lookup>('clang_getNullCursor'); + late final _clang_getNullCursor = _clang_getNullCursorPtr + .asFunction(); + + /// Retrieve a NULL (invalid) source location. + CXSourceLocation clang_getNullLocation() { + return _clang_getNullLocation(); + } + + late final _clang_getNullLocationPtr = + _lookup>( + 'clang_getNullLocation', + ); + late final _clang_getNullLocation = _clang_getNullLocationPtr + .asFunction(); + + /// Retrieve a NULL (invalid) source range. + CXSourceRange clang_getNullRange() { + return _clang_getNullRange(); + } + + late final _clang_getNullRangePtr = + _lookup>( + 'clang_getNullRange', + ); + late final _clang_getNullRange = _clang_getNullRangePtr + .asFunction(); + + /// Retrieve the number of non-variadic parameters associated with a function + /// type. + int clang_getNumArgTypes(CXType T) { + return _clang_getNumArgTypes(T); + } + + late final _clang_getNumArgTypesPtr = + _lookup>( + 'clang_getNumArgTypes', + ); + late final _clang_getNumArgTypes = _clang_getNumArgTypesPtr + .asFunction(); + + /// Retrieve the number of chunks in the given code-completion string. + int clang_getNumCompletionChunks(CXCompletionString completion_string) { + return _clang_getNumCompletionChunks(completion_string); + } + + late final _clang_getNumCompletionChunksPtr = + _lookup>( + 'clang_getNumCompletionChunks', + ); + late final _clang_getNumCompletionChunks = _clang_getNumCompletionChunksPtr + .asFunction(); + + /// Determine the number of diagnostics produced for the given translation + /// unit. + int clang_getNumDiagnostics(CXTranslationUnit Unit) { + return _clang_getNumDiagnostics(Unit); + } + + late final _clang_getNumDiagnosticsPtr = + _lookup>( + 'clang_getNumDiagnostics', + ); + late final _clang_getNumDiagnostics = _clang_getNumDiagnosticsPtr + .asFunction(); + + /// Determine the number of diagnostics in a CXDiagnosticSet. + int clang_getNumDiagnosticsInSet(CXDiagnosticSet Diags) { + return _clang_getNumDiagnosticsInSet(Diags); + } + + late final _clang_getNumDiagnosticsInSetPtr = + _lookup>( + 'clang_getNumDiagnosticsInSet', + ); + late final _clang_getNumDiagnosticsInSet = _clang_getNumDiagnosticsInSetPtr + .asFunction(); + + /// Return the number of elements of an array or vector type. + int clang_getNumElements(CXType T) { + return _clang_getNumElements(T); + } + + late final _clang_getNumElementsPtr = + _lookup>( + 'clang_getNumElements', + ); + late final _clang_getNumElements = _clang_getNumElementsPtr + .asFunction(); + + /// Determine the number of overloaded declarations referenced by a + /// CXCursor_OverloadedDeclRef cursor. + int clang_getNumOverloadedDecls(CXCursor cursor) { + return _clang_getNumOverloadedDecls(cursor); + } + + late final _clang_getNumOverloadedDeclsPtr = + _lookup>( + 'clang_getNumOverloadedDecls', + ); + late final _clang_getNumOverloadedDecls = _clang_getNumOverloadedDeclsPtr + .asFunction(); + + /// Retrieve a cursor for one of the overloaded declarations referenced by a + /// CXCursor_OverloadedDeclRef cursor. + CXCursor clang_getOverloadedDecl(CXCursor cursor, int index) { + return _clang_getOverloadedDecl(cursor, index); + } + + late final _clang_getOverloadedDeclPtr = + _lookup>( + 'clang_getOverloadedDecl', + ); + late final _clang_getOverloadedDecl = _clang_getOverloadedDeclPtr + .asFunction(); + + /// Determine the set of methods that are overridden by the given method. + void clang_getOverriddenCursors( + CXCursor cursor, + ffi.Pointer> overridden, + ffi.Pointer num_overridden, + ) { + return _clang_getOverriddenCursors(cursor, overridden, num_overridden); + } + + late final _clang_getOverriddenCursorsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXCursor, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('clang_getOverriddenCursors'); + late final _clang_getOverriddenCursors = _clang_getOverriddenCursorsPtr + .asFunction< + void Function( + CXCursor, + ffi.Pointer>, + ffi.Pointer, + ) + >(); + + /// For pointer types, returns the type of the pointee. + CXType clang_getPointeeType(CXType T) { + return _clang_getPointeeType(T); + } + + late final _clang_getPointeeTypePtr = + _lookup>( + 'clang_getPointeeType', + ); + late final _clang_getPointeeType = _clang_getPointeeTypePtr + .asFunction(); + + /// Retrieve the file, line and column represented by the given source + /// location, as specified in a # line directive. + void clang_getPresumedLocation( + CXSourceLocation location, + ffi.Pointer filename, + ffi.Pointer line, + ffi.Pointer column, + ) { + return _clang_getPresumedLocation(location, filename, line, column); + } + + late final _clang_getPresumedLocationPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getPresumedLocation'); + late final _clang_getPresumedLocation = _clang_getPresumedLocationPtr + .asFunction< + void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Retrieve a source range given the beginning and ending source locations. + CXSourceRange clang_getRange(CXSourceLocation begin, CXSourceLocation end) { + return _clang_getRange(begin, end); + } + + late final _clang_getRangePtr = + _lookup< + ffi.NativeFunction< + CXSourceRange Function(CXSourceLocation, CXSourceLocation) + > + >('clang_getRange'); + late final _clang_getRange = _clang_getRangePtr + .asFunction(); + + /// Retrieve a source location representing the last character within a source + /// range. + CXSourceLocation clang_getRangeEnd(CXSourceRange range) { + return _clang_getRangeEnd(range); + } + + late final _clang_getRangeEndPtr = + _lookup>( + 'clang_getRangeEnd', + ); + late final _clang_getRangeEnd = _clang_getRangeEndPtr + .asFunction(); + + /// Retrieve a source location representing the first character within a + /// source range. + CXSourceLocation clang_getRangeStart(CXSourceRange range) { + return _clang_getRangeStart(range); + } + + late final _clang_getRangeStartPtr = + _lookup>( + 'clang_getRangeStart', + ); + late final _clang_getRangeStart = _clang_getRangeStartPtr + .asFunction(); + + /// Retrieve a remapping. + CXRemapping clang_getRemappings(ffi.Pointer path) { + return _clang_getRemappings(path); + } + + late final _clang_getRemappingsPtr = + _lookup)>>( + 'clang_getRemappings', + ); + late final _clang_getRemappings = _clang_getRemappingsPtr + .asFunction)>(); + + /// Retrieve a remapping. + CXRemapping clang_getRemappingsFromFileList( + ffi.Pointer> filePaths, + int numFiles, + ) { + return _clang_getRemappingsFromFileList(filePaths, numFiles); + } + + late final _clang_getRemappingsFromFileListPtr = + _lookup< + ffi.NativeFunction< + CXRemapping Function( + ffi.Pointer>, + ffi.UnsignedInt, + ) + > + >('clang_getRemappingsFromFileList'); + late final _clang_getRemappingsFromFileList = + _clang_getRemappingsFromFileListPtr + .asFunction< + CXRemapping Function(ffi.Pointer>, int) + >(); + + /// Retrieve the return type associated with a function type. + CXType clang_getResultType(CXType T) { + return _clang_getResultType(T); + } + + late final _clang_getResultTypePtr = + _lookup>( + 'clang_getResultType', + ); + late final _clang_getResultType = _clang_getResultTypePtr + .asFunction(); + + /// Retrieve all ranges that were skipped by the preprocessor. + ffi.Pointer clang_getSkippedRanges( + CXTranslationUnit tu, + CXFile file, + ) { + return _clang_getSkippedRanges(tu, file); + } + + late final _clang_getSkippedRangesPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CXTranslationUnit, CXFile) + > + >('clang_getSkippedRanges'); + late final _clang_getSkippedRanges = _clang_getSkippedRangesPtr + .asFunction< + ffi.Pointer Function(CXTranslationUnit, CXFile) + >(); + + /// Given a cursor that may represent a specialization or instantiation of a + /// template, retrieve the cursor that represents the template that it + /// specializes or from which it was instantiated. + CXCursor clang_getSpecializedCursorTemplate(CXCursor C) { + return _clang_getSpecializedCursorTemplate(C); + } + + late final _clang_getSpecializedCursorTemplatePtr = + _lookup>( + 'clang_getSpecializedCursorTemplate', + ); + late final _clang_getSpecializedCursorTemplate = + _clang_getSpecializedCursorTemplatePtr + .asFunction(); + + /// Retrieve the file, line, column, and offset represented by the given + /// source location. + void clang_getSpellingLocation( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ) { + return _clang_getSpellingLocation(location, file, line, column, offset); + } + + late final _clang_getSpellingLocationPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getSpellingLocation'); + late final _clang_getSpellingLocation = _clang_getSpellingLocationPtr + .asFunction< + void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Returns the human-readable null-terminated C string that represents the + /// name of the memory category. This string should never be freed. + ffi.Pointer clang_getTUResourceUsageName( + CXTUResourceUsageKind kind, + ) { + return _clang_getTUResourceUsageName(kind.value); + } + + late final _clang_getTUResourceUsageNamePtr = + _lookup< + ffi.NativeFunction Function(ffi.UnsignedInt)> + >('clang_getTUResourceUsageName'); + late final _clang_getTUResourceUsageName = _clang_getTUResourceUsageNamePtr + .asFunction Function(int)>(); + + /// Given a cursor that represents a template, determine the cursor kind of + /// the specializations would be generated by instantiating the template. + CXCursorKind clang_getTemplateCursorKind(CXCursor C) { + return CXCursorKind.fromValue(_clang_getTemplateCursorKind(C)); + } + + late final _clang_getTemplateCursorKindPtr = + _lookup>( + 'clang_getTemplateCursorKind', + ); + late final _clang_getTemplateCursorKind = _clang_getTemplateCursorKindPtr + .asFunction(); + + /// Get the raw lexical token starting with the given location. + ffi.Pointer clang_getToken( + CXTranslationUnit TU, + CXSourceLocation Location, + ) { + return _clang_getToken(TU, Location); + } + + late final _clang_getTokenPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CXTranslationUnit, CXSourceLocation) + > + >('clang_getToken'); + late final _clang_getToken = _clang_getTokenPtr + .asFunction< + ffi.Pointer Function(CXTranslationUnit, CXSourceLocation) + >(); + + /// Retrieve a source range that covers the given token. + CXSourceRange clang_getTokenExtent(CXTranslationUnit arg0, CXToken arg1) { + return _clang_getTokenExtent(arg0, arg1); + } + + late final _clang_getTokenExtentPtr = + _lookup< + ffi.NativeFunction + >('clang_getTokenExtent'); + late final _clang_getTokenExtent = _clang_getTokenExtentPtr + .asFunction(); + + /// Determine the kind of the given token. + CXTokenKind clang_getTokenKind(CXToken arg0) { + return CXTokenKind.fromValue(_clang_getTokenKind(arg0)); + } + + late final _clang_getTokenKindPtr = + _lookup>( + 'clang_getTokenKind', + ); + late final _clang_getTokenKind = _clang_getTokenKindPtr + .asFunction(); + + /// Retrieve the source location of the given token. + CXSourceLocation clang_getTokenLocation( + CXTranslationUnit arg0, + CXToken arg1, + ) { + return _clang_getTokenLocation(arg0, arg1); + } + + late final _clang_getTokenLocationPtr = + _lookup< + ffi.NativeFunction< + CXSourceLocation Function(CXTranslationUnit, CXToken) + > + >('clang_getTokenLocation'); + late final _clang_getTokenLocation = _clang_getTokenLocationPtr + .asFunction(); + + /// Determine the spelling of the given token. + CXString clang_getTokenSpelling(CXTranslationUnit arg0, CXToken arg1) { + return _clang_getTokenSpelling(arg0, arg1); + } + + late final _clang_getTokenSpellingPtr = + _lookup< + ffi.NativeFunction + >('clang_getTokenSpelling'); + late final _clang_getTokenSpelling = _clang_getTokenSpellingPtr + .asFunction(); + + /// Retrieve the cursor that represents the given translation unit. + CXCursor clang_getTranslationUnitCursor(CXTranslationUnit arg0) { + return _clang_getTranslationUnitCursor(arg0); + } + + late final _clang_getTranslationUnitCursorPtr = + _lookup>( + 'clang_getTranslationUnitCursor', + ); + late final _clang_getTranslationUnitCursor = + _clang_getTranslationUnitCursorPtr + .asFunction(); + + /// Get the original translation unit source file name. + CXString clang_getTranslationUnitSpelling(CXTranslationUnit CTUnit) { + return _clang_getTranslationUnitSpelling(CTUnit); + } + + late final _clang_getTranslationUnitSpellingPtr = + _lookup>( + 'clang_getTranslationUnitSpelling', + ); + late final _clang_getTranslationUnitSpelling = + _clang_getTranslationUnitSpellingPtr + .asFunction(); + + /// Get target information for this translation unit. + CXTargetInfo clang_getTranslationUnitTargetInfo(CXTranslationUnit CTUnit) { + return _clang_getTranslationUnitTargetInfo(CTUnit); + } + + late final _clang_getTranslationUnitTargetInfoPtr = + _lookup>( + 'clang_getTranslationUnitTargetInfo', + ); + late final _clang_getTranslationUnitTargetInfo = + _clang_getTranslationUnitTargetInfoPtr + .asFunction(); + + /// Return the cursor for the declaration of the given type. + CXCursor clang_getTypeDeclaration(CXType T) { + return _clang_getTypeDeclaration(T); + } + + late final _clang_getTypeDeclarationPtr = + _lookup>( + 'clang_getTypeDeclaration', + ); + late final _clang_getTypeDeclaration = _clang_getTypeDeclarationPtr + .asFunction(); + + /// Retrieve the spelling of a given CXTypeKind. + CXString clang_getTypeKindSpelling(CXTypeKind K) { + return _clang_getTypeKindSpelling(K.value); + } + + late final _clang_getTypeKindSpellingPtr = + _lookup>( + 'clang_getTypeKindSpelling', + ); + late final _clang_getTypeKindSpelling = _clang_getTypeKindSpellingPtr + .asFunction(); + + /// Pretty-print the underlying type using the rules of the language of the + /// translation unit from which it came. + CXString clang_getTypeSpelling(CXType CT) { + return _clang_getTypeSpelling(CT); + } + + late final _clang_getTypeSpellingPtr = + _lookup>( + 'clang_getTypeSpelling', + ); + late final _clang_getTypeSpelling = _clang_getTypeSpellingPtr + .asFunction(); + + /// Retrieve the underlying type of a typedef declaration. + CXType clang_getTypedefDeclUnderlyingType(CXCursor C) { + return _clang_getTypedefDeclUnderlyingType(C); + } + + late final _clang_getTypedefDeclUnderlyingTypePtr = + _lookup>( + 'clang_getTypedefDeclUnderlyingType', + ); + late final _clang_getTypedefDeclUnderlyingType = + _clang_getTypedefDeclUnderlyingTypePtr + .asFunction(); + + /// Returns the typedef name of the given type. + CXString clang_getTypedefName(CXType CT) { + return _clang_getTypedefName(CT); + } + + late final _clang_getTypedefNamePtr = + _lookup>( + 'clang_getTypedefName', + ); + late final _clang_getTypedefName = _clang_getTypedefNamePtr + .asFunction(); + + /// Compute a hash value for the given cursor. + int clang_hashCursor(CXCursor arg0) { + return _clang_hashCursor(arg0); + } + + late final _clang_hashCursorPtr = + _lookup>( + 'clang_hashCursor', + ); + late final _clang_hashCursor = _clang_hashCursorPtr + .asFunction(); + + /// Retrieve the CXSourceLocation represented by the given CXIdxLoc. + CXSourceLocation clang_indexLoc_getCXSourceLocation(CXIdxLoc loc) { + return _clang_indexLoc_getCXSourceLocation(loc); + } + + late final _clang_indexLoc_getCXSourceLocationPtr = + _lookup>( + 'clang_indexLoc_getCXSourceLocation', + ); + late final _clang_indexLoc_getCXSourceLocation = + _clang_indexLoc_getCXSourceLocationPtr + .asFunction(); + + /// Retrieve the CXIdxFile, file, line, column, and offset represented by the + /// given CXIdxLoc. + void clang_indexLoc_getFileLocation( + CXIdxLoc loc, + ffi.Pointer indexFile, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ) { + return _clang_indexLoc_getFileLocation( + loc, + indexFile, + file, + line, + column, + offset, + ); + } + + late final _clang_indexLoc_getFileLocationPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXIdxLoc, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_indexLoc_getFileLocation'); + late final _clang_indexLoc_getFileLocation = + _clang_indexLoc_getFileLocationPtr + .asFunction< + void Function( + CXIdxLoc, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Index the given source file and the translation unit corresponding to that + /// file via callbacks implemented through #IndexerCallbacks. + int clang_indexSourceFile( + CXIndexAction arg0, + CXClientData client_data, + ffi.Pointer index_callbacks, + int index_callbacks_size, + int index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + ffi.Pointer out_TU, + int TU_options, + ) { + return _clang_indexSourceFile( + arg0, + client_data, + index_callbacks, + index_callbacks_size, + index_options, + source_filename, + command_line_args, + num_command_line_args, + unsaved_files, + num_unsaved_files, + out_TU, + TU_options, + ); + } + + late final _clang_indexSourceFilePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_indexSourceFile'); + late final _clang_indexSourceFile = _clang_indexSourceFilePtr + .asFunction< + int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); + + /// Same as clang_indexSourceFile but requires a full command line for + /// command_line_args including argv[0]. This is useful if the standard + /// library paths are relative to the binary. + int clang_indexSourceFileFullArgv( + CXIndexAction arg0, + CXClientData client_data, + ffi.Pointer index_callbacks, + int index_callbacks_size, + int index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + ffi.Pointer out_TU, + int TU_options, + ) { + return _clang_indexSourceFileFullArgv( + arg0, + client_data, + index_callbacks, + index_callbacks_size, + index_options, + source_filename, + command_line_args, + num_command_line_args, + unsaved_files, + num_unsaved_files, + out_TU, + TU_options, + ); + } + + late final _clang_indexSourceFileFullArgvPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_indexSourceFileFullArgv'); + late final _clang_indexSourceFileFullArgv = _clang_indexSourceFileFullArgvPtr + .asFunction< + int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); + + /// Index the given translation unit via callbacks implemented through + /// #IndexerCallbacks. + int clang_indexTranslationUnit( + CXIndexAction arg0, + CXClientData client_data, + ffi.Pointer index_callbacks, + int index_callbacks_size, + int index_options, + CXTranslationUnit arg5, + ) { + return _clang_indexTranslationUnit( + arg0, + client_data, + index_callbacks, + index_callbacks_size, + index_options, + arg5, + ); + } + + late final _clang_indexTranslationUnitPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + CXTranslationUnit, + ) + > + >('clang_indexTranslationUnit'); + late final _clang_indexTranslationUnit = _clang_indexTranslationUnitPtr + .asFunction< + int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + int, + int, + CXTranslationUnit, + ) + >(); + + ffi.Pointer clang_index_getCXXClassDeclInfo( + ffi.Pointer arg0, + ) { + return _clang_index_getCXXClassDeclInfo(arg0); + } + + late final _clang_index_getCXXClassDeclInfoPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getCXXClassDeclInfo'); + late final _clang_index_getCXXClassDeclInfo = + _clang_index_getCXXClassDeclInfoPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); + + /// For retrieving a custom CXIdxClientContainer attached to a container. + CXIdxClientContainer clang_index_getClientContainer( + ffi.Pointer arg0, + ) { + return _clang_index_getClientContainer(arg0); + } + + late final _clang_index_getClientContainerPtr = + _lookup< + ffi.NativeFunction< + CXIdxClientContainer Function(ffi.Pointer) + > + >('clang_index_getClientContainer'); + late final _clang_index_getClientContainer = + _clang_index_getClientContainerPtr + .asFunction< + CXIdxClientContainer Function(ffi.Pointer) + >(); + + /// For retrieving a custom CXIdxClientEntity attached to an entity. + CXIdxClientEntity clang_index_getClientEntity( + ffi.Pointer arg0, + ) { + return _clang_index_getClientEntity(arg0); + } + + late final _clang_index_getClientEntityPtr = + _lookup< + ffi.NativeFunction< + CXIdxClientEntity Function(ffi.Pointer) + > + >('clang_index_getClientEntity'); + late final _clang_index_getClientEntity = _clang_index_getClientEntityPtr + .asFunction)>(); + + ffi.Pointer + clang_index_getIBOutletCollectionAttrInfo(ffi.Pointer arg0) { + return _clang_index_getIBOutletCollectionAttrInfo(arg0); + } + + late final _clang_index_getIBOutletCollectionAttrInfoPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getIBOutletCollectionAttrInfo'); + late final _clang_index_getIBOutletCollectionAttrInfo = + _clang_index_getIBOutletCollectionAttrInfoPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); + + ffi.Pointer clang_index_getObjCCategoryDeclInfo( + ffi.Pointer arg0, + ) { + return _clang_index_getObjCCategoryDeclInfo(arg0); + } + + late final _clang_index_getObjCCategoryDeclInfoPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getObjCCategoryDeclInfo'); + late final _clang_index_getObjCCategoryDeclInfo = + _clang_index_getObjCCategoryDeclInfoPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); + + ffi.Pointer clang_index_getObjCContainerDeclInfo( + ffi.Pointer arg0, + ) { + return _clang_index_getObjCContainerDeclInfo(arg0); + } + + late final _clang_index_getObjCContainerDeclInfoPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getObjCContainerDeclInfo'); + late final _clang_index_getObjCContainerDeclInfo = + _clang_index_getObjCContainerDeclInfoPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); + + ffi.Pointer clang_index_getObjCInterfaceDeclInfo( + ffi.Pointer arg0, + ) { + return _clang_index_getObjCInterfaceDeclInfo(arg0); + } + + late final _clang_index_getObjCInterfaceDeclInfoPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getObjCInterfaceDeclInfo'); + late final _clang_index_getObjCInterfaceDeclInfo = + _clang_index_getObjCInterfaceDeclInfoPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); + + ffi.Pointer clang_index_getObjCPropertyDeclInfo( + ffi.Pointer arg0, + ) { + return _clang_index_getObjCPropertyDeclInfo(arg0); + } + + late final _clang_index_getObjCPropertyDeclInfoPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getObjCPropertyDeclInfo'); + late final _clang_index_getObjCPropertyDeclInfo = + _clang_index_getObjCPropertyDeclInfoPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); + + ffi.Pointer + clang_index_getObjCProtocolRefListInfo(ffi.Pointer arg0) { + return _clang_index_getObjCProtocolRefListInfo(arg0); + } + + late final _clang_index_getObjCProtocolRefListInfoPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getObjCProtocolRefListInfo'); + late final _clang_index_getObjCProtocolRefListInfo = + _clang_index_getObjCProtocolRefListInfoPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); + + int clang_index_isEntityObjCContainerKind(CXIdxEntityKind arg0) { + return _clang_index_isEntityObjCContainerKind(arg0.value); + } + + late final _clang_index_isEntityObjCContainerKindPtr = + _lookup>( + 'clang_index_isEntityObjCContainerKind', + ); + late final _clang_index_isEntityObjCContainerKind = + _clang_index_isEntityObjCContainerKindPtr.asFunction(); + + /// For setting a custom CXIdxClientContainer attached to a container. + void clang_index_setClientContainer( + ffi.Pointer arg0, + CXIdxClientContainer arg1, + ) { + return _clang_index_setClientContainer(arg0, arg1); + } + + late final _clang_index_setClientContainerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + CXIdxClientContainer, + ) + > + >('clang_index_setClientContainer'); + late final _clang_index_setClientContainer = + _clang_index_setClientContainerPtr + .asFunction< + void Function(ffi.Pointer, CXIdxClientContainer) + >(); + + /// For setting a custom CXIdxClientEntity attached to an entity. + void clang_index_setClientEntity( + ffi.Pointer arg0, + CXIdxClientEntity arg1, + ) { + return _clang_index_setClientEntity(arg0, arg1); + } + + late final _clang_index_setClientEntityPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, CXIdxClientEntity) + > + >('clang_index_setClientEntity'); + late final _clang_index_setClientEntity = _clang_index_setClientEntityPtr + .asFunction< + void Function(ffi.Pointer, CXIdxClientEntity) + >(); + + /// Determine whether the given cursor kind represents an attribute. + int clang_isAttribute(CXCursorKind arg0) { + return _clang_isAttribute(arg0.value); + } + + late final _clang_isAttributePtr = + _lookup>( + 'clang_isAttribute', + ); + late final _clang_isAttribute = _clang_isAttributePtr + .asFunction(); + + /// Determine whether a CXType has the "const" qualifier set, without looking + /// through typedefs that may have added "const" at a different level. + int clang_isConstQualifiedType(CXType T) { + return _clang_isConstQualifiedType(T); + } + + late final _clang_isConstQualifiedTypePtr = + _lookup>( + 'clang_isConstQualifiedType', + ); + late final _clang_isConstQualifiedType = _clang_isConstQualifiedTypePtr + .asFunction(); + + /// Determine whether the declaration pointed to by this cursor is also a + /// definition of that entity. + int clang_isCursorDefinition(CXCursor arg0) { + return _clang_isCursorDefinition(arg0); + } + + late final _clang_isCursorDefinitionPtr = + _lookup>( + 'clang_isCursorDefinition', + ); + late final _clang_isCursorDefinition = _clang_isCursorDefinitionPtr + .asFunction(); + + /// Determine whether the given cursor kind represents a declaration. + int clang_isDeclaration(CXCursorKind arg0) { + return _clang_isDeclaration(arg0.value); + } + + late final _clang_isDeclarationPtr = + _lookup>( + 'clang_isDeclaration', + ); + late final _clang_isDeclaration = _clang_isDeclarationPtr + .asFunction(); + + /// Determine whether the given cursor kind represents an expression. + int clang_isExpression(CXCursorKind arg0) { + return _clang_isExpression(arg0.value); + } + + late final _clang_isExpressionPtr = + _lookup>( + 'clang_isExpression', + ); + late final _clang_isExpression = _clang_isExpressionPtr + .asFunction(); + + /// Determine whether the given header is guarded against multiple inclusions, + /// either with the conventional #ifndef/#define/#endif macro guards or with + /// #pragma once. + int clang_isFileMultipleIncludeGuarded(CXTranslationUnit tu, CXFile file) { + return _clang_isFileMultipleIncludeGuarded(tu, file); + } + + late final _clang_isFileMultipleIncludeGuardedPtr = + _lookup< + ffi.NativeFunction + >('clang_isFileMultipleIncludeGuarded'); + late final _clang_isFileMultipleIncludeGuarded = + _clang_isFileMultipleIncludeGuardedPtr + .asFunction(); + + /// Return 1 if the CXType is a variadic function type, and 0 otherwise. + int clang_isFunctionTypeVariadic(CXType T) { + return _clang_isFunctionTypeVariadic(T); + } + + late final _clang_isFunctionTypeVariadicPtr = + _lookup>( + 'clang_isFunctionTypeVariadic', + ); + late final _clang_isFunctionTypeVariadic = _clang_isFunctionTypeVariadicPtr + .asFunction(); + + /// Determine whether the given cursor kind represents an invalid cursor. + int clang_isInvalid(CXCursorKind arg0) { + return _clang_isInvalid(arg0.value); + } + + late final _clang_isInvalidPtr = + _lookup>( + 'clang_isInvalid', + ); + late final _clang_isInvalid = _clang_isInvalidPtr + .asFunction(); + + /// Determine whether the given declaration is invalid. + int clang_isInvalidDeclaration(CXCursor arg0) { + return _clang_isInvalidDeclaration(arg0); + } + + late final _clang_isInvalidDeclarationPtr = + _lookup>( + 'clang_isInvalidDeclaration', + ); + late final _clang_isInvalidDeclaration = _clang_isInvalidDeclarationPtr + .asFunction(); + + /// Return 1 if the CXType is a POD (plain old data) type, and 0 otherwise. + int clang_isPODType(CXType T) { + return _clang_isPODType(T); + } + + late final _clang_isPODTypePtr = + _lookup>( + 'clang_isPODType', + ); + late final _clang_isPODType = _clang_isPODTypePtr + .asFunction(); + + /// * Determine whether the given cursor represents a preprocessing element, + /// such as a preprocessor directive or macro instantiation. + int clang_isPreprocessing(CXCursorKind arg0) { + return _clang_isPreprocessing(arg0.value); + } + + late final _clang_isPreprocessingPtr = + _lookup>( + 'clang_isPreprocessing', + ); + late final _clang_isPreprocessing = _clang_isPreprocessingPtr + .asFunction(); + + /// Determine whether the given cursor kind represents a simple reference. + int clang_isReference(CXCursorKind arg0) { + return _clang_isReference(arg0.value); + } + + late final _clang_isReferencePtr = + _lookup>( + 'clang_isReference', + ); + late final _clang_isReference = _clang_isReferencePtr + .asFunction(); + + /// Determine whether a CXType has the "restrict" qualifier set, without + /// looking through typedefs that may have added "restrict" at a different + /// level. + int clang_isRestrictQualifiedType(CXType T) { + return _clang_isRestrictQualifiedType(T); + } + + late final _clang_isRestrictQualifiedTypePtr = + _lookup>( + 'clang_isRestrictQualifiedType', + ); + late final _clang_isRestrictQualifiedType = _clang_isRestrictQualifiedTypePtr + .asFunction(); + + /// Determine whether the given cursor kind represents a statement. + int clang_isStatement(CXCursorKind arg0) { + return _clang_isStatement(arg0.value); + } + + late final _clang_isStatementPtr = + _lookup>( + 'clang_isStatement', + ); + late final _clang_isStatement = _clang_isStatementPtr + .asFunction(); + + /// Determine whether the given cursor kind represents a translation unit. + int clang_isTranslationUnit(CXCursorKind arg0) { + return _clang_isTranslationUnit(arg0.value); + } + + late final _clang_isTranslationUnitPtr = + _lookup>( + 'clang_isTranslationUnit', + ); + late final _clang_isTranslationUnit = _clang_isTranslationUnitPtr + .asFunction(); + + /// * Determine whether the given cursor represents a currently unexposed + /// piece of the AST (e.g., CXCursor_UnexposedStmt). + int clang_isUnexposed(CXCursorKind arg0) { + return _clang_isUnexposed(arg0.value); + } + + late final _clang_isUnexposedPtr = + _lookup>( + 'clang_isUnexposed', + ); + late final _clang_isUnexposed = _clang_isUnexposedPtr + .asFunction(); + + /// Returns 1 if the base class specified by the cursor with kind + /// CX_CXXBaseSpecifier is virtual. + int clang_isVirtualBase(CXCursor arg0) { + return _clang_isVirtualBase(arg0); + } + + late final _clang_isVirtualBasePtr = + _lookup>( + 'clang_isVirtualBase', + ); + late final _clang_isVirtualBase = _clang_isVirtualBasePtr + .asFunction(); + + /// Determine whether a CXType has the "volatile" qualifier set, without + /// looking through typedefs that may have added "volatile" at a different + /// level. + int clang_isVolatileQualifiedType(CXType T) { + return _clang_isVolatileQualifiedType(T); + } + + late final _clang_isVolatileQualifiedTypePtr = + _lookup>( + 'clang_isVolatileQualifiedType', + ); + late final _clang_isVolatileQualifiedType = _clang_isVolatileQualifiedTypePtr + .asFunction(); + + /// Deserialize a set of diagnostics from a Clang diagnostics bitcode file. + CXDiagnosticSet clang_loadDiagnostics( + ffi.Pointer file, + ffi.Pointer error, + ffi.Pointer errorString, + ) { + return _clang_loadDiagnostics(file, error, errorString); + } + + late final _clang_loadDiagnosticsPtr = + _lookup< + ffi.NativeFunction< + CXDiagnosticSet Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_loadDiagnostics'); + late final _clang_loadDiagnostics = _clang_loadDiagnosticsPtr + .asFunction< + CXDiagnosticSet Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Same as clang_parseTranslationUnit2, but returns the CXTranslationUnit + /// instead of an error code. In case of an error this routine returns a NULL + /// CXTranslationUnit, without further detailed error codes. + CXTranslationUnit clang_parseTranslationUnit( + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, + ) { + return _clang_parseTranslationUnit( + CIdx, + source_filename, + command_line_args, + num_command_line_args, + unsaved_files, + num_unsaved_files, + options, + ); + } + + late final _clang_parseTranslationUnitPtr = + _lookup< + ffi.NativeFunction< + CXTranslationUnit Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + >('clang_parseTranslationUnit'); + late final _clang_parseTranslationUnit = _clang_parseTranslationUnitPtr + .asFunction< + CXTranslationUnit Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + int, + int, + ) + >(); + + /// Parse the given source file and the translation unit corresponding to that + /// file. + CXErrorCode clang_parseTranslationUnit2( + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, + ffi.Pointer out_TU, + ) { + return CXErrorCode.fromValue( + _clang_parseTranslationUnit2( + CIdx, + source_filename, + command_line_args, + num_command_line_args, + unsaved_files, + num_unsaved_files, + options, + out_TU, + ), + ); + } + + late final _clang_parseTranslationUnit2Ptr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_parseTranslationUnit2'); + late final _clang_parseTranslationUnit2 = _clang_parseTranslationUnit2Ptr + .asFunction< + int Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); + + /// Same as clang_parseTranslationUnit2 but requires a full command line for + /// command_line_args including argv[0]. This is useful if the standard + /// library paths are relative to the binary. + CXErrorCode clang_parseTranslationUnit2FullArgv( + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, + ffi.Pointer out_TU, + ) { + return CXErrorCode.fromValue( + _clang_parseTranslationUnit2FullArgv( + CIdx, + source_filename, + command_line_args, + num_command_line_args, + unsaved_files, + num_unsaved_files, + options, + out_TU, + ), + ); + } + + late final _clang_parseTranslationUnit2FullArgvPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_parseTranslationUnit2FullArgv'); + late final _clang_parseTranslationUnit2FullArgv = + _clang_parseTranslationUnit2FullArgvPtr + .asFunction< + int Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); + + /// Dispose the remapping. + void clang_remap_dispose(CXRemapping arg0) { + return _clang_remap_dispose(arg0); + } + + late final _clang_remap_disposePtr = + _lookup>( + 'clang_remap_dispose', + ); + late final _clang_remap_dispose = _clang_remap_disposePtr + .asFunction(); + + /// Get the original and the associated filename from the remapping. + void clang_remap_getFilenames( + CXRemapping arg0, + int index, + ffi.Pointer original, + ffi.Pointer transformed, + ) { + return _clang_remap_getFilenames(arg0, index, original, transformed); + } + + late final _clang_remap_getFilenamesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXRemapping, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_remap_getFilenames'); + late final _clang_remap_getFilenames = _clang_remap_getFilenamesPtr + .asFunction< + void Function( + CXRemapping, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// Determine the number of remappings. + int clang_remap_getNumFiles(CXRemapping arg0) { + return _clang_remap_getNumFiles(arg0); + } + + late final _clang_remap_getNumFilesPtr = + _lookup>( + 'clang_remap_getNumFiles', + ); + late final _clang_remap_getNumFiles = _clang_remap_getNumFilesPtr + .asFunction(); + + /// Reparse the source files that produced this translation unit. + int clang_reparseTranslationUnit( + CXTranslationUnit TU, + int num_unsaved_files, + ffi.Pointer unsaved_files, + int options, + ) { + return _clang_reparseTranslationUnit( + TU, + num_unsaved_files, + unsaved_files, + options, + ); + } + + late final _clang_reparseTranslationUnitPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXTranslationUnit, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_reparseTranslationUnit'); + late final _clang_reparseTranslationUnit = _clang_reparseTranslationUnitPtr + .asFunction< + int Function(CXTranslationUnit, int, ffi.Pointer, int) + >(); + + /// Saves a translation unit into a serialized representation of that + /// translation unit on disk. + int clang_saveTranslationUnit( + CXTranslationUnit TU, + ffi.Pointer FileName, + int options, + ) { + return _clang_saveTranslationUnit(TU, FileName, options); + } + + late final _clang_saveTranslationUnitPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_saveTranslationUnit'); + late final _clang_saveTranslationUnit = _clang_saveTranslationUnitPtr + .asFunction< + int Function(CXTranslationUnit, ffi.Pointer, int) + >(); + + /// Sort the code-completion results in case-insensitive alphabetical order. + void clang_sortCodeCompletionResults( + ffi.Pointer Results, + int NumResults, + ) { + return _clang_sortCodeCompletionResults(Results, NumResults); + } + + late final _clang_sortCodeCompletionResultsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) + > + >('clang_sortCodeCompletionResults'); + late final _clang_sortCodeCompletionResults = + _clang_sortCodeCompletionResultsPtr + .asFunction, int)>(); + + /// Suspend a translation unit in order to free memory associated with it. + int clang_suspendTranslationUnit(CXTranslationUnit arg0) { + return _clang_suspendTranslationUnit(arg0); + } + + late final _clang_suspendTranslationUnitPtr = + _lookup>( + 'clang_suspendTranslationUnit', + ); + late final _clang_suspendTranslationUnit = _clang_suspendTranslationUnitPtr + .asFunction(); + + /// Enable/disable crash recovery. + void clang_toggleCrashRecovery(int isEnabled) { + return _clang_toggleCrashRecovery(isEnabled); + } + + late final _clang_toggleCrashRecoveryPtr = + _lookup>( + 'clang_toggleCrashRecovery', + ); + late final _clang_toggleCrashRecovery = _clang_toggleCrashRecoveryPtr + .asFunction(); + + /// Tokenize the source code described by the given range into raw lexical + /// tokens. + void clang_tokenize( + CXTranslationUnit TU, + CXSourceRange Range, + ffi.Pointer> Tokens, + ffi.Pointer NumTokens, + ) { + return _clang_tokenize(TU, Range, Tokens, NumTokens); + } + + late final _clang_tokenizePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXTranslationUnit, + CXSourceRange, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('clang_tokenize'); + late final _clang_tokenize = _clang_tokenizePtr + .asFunction< + void Function( + CXTranslationUnit, + CXSourceRange, + ffi.Pointer>, + ffi.Pointer, + ) + >(); + + /// Visit the children of a particular cursor. + int clang_visitChildren( + CXCursor parent, + CXCursorVisitor visitor, + CXClientData client_data, + ) { + return _clang_visitChildren(parent, visitor, client_data); + } + + late final _clang_visitChildrenPtr = + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor, CXCursorVisitor, CXClientData) + > + >('clang_visitChildren'); + late final _clang_visitChildren = _clang_visitChildrenPtr + .asFunction(); +} + +const int CINDEX_VERSION = 59; + +const int CINDEX_VERSION_MAJOR = 0; + +const int CINDEX_VERSION_MINOR = 59; + +const String CINDEX_VERSION_STRING = '0.59'; + +/// Describes the availability of a particular entity, which indicates whether +/// the use of this entity will result in a warning or error due to it being +/// deprecated or unavailable. +enum CXAvailabilityKind { + /// The entity is available. + CXAvailability_Available(0), + + /// The entity is available, but has been deprecated (and its use is not + /// recommended). + CXAvailability_Deprecated(1), + + /// The entity is not available; any use of it will be an error. + CXAvailability_NotAvailable(2), + + /// The entity is available, but not accessible; any use of it will be an + /// error. + CXAvailability_NotAccessible(3); + + final int value; + const CXAvailabilityKind(this.value); + + static CXAvailabilityKind fromValue(int value) => switch (value) { + 0 => CXAvailability_Available, + 1 => CXAvailability_Deprecated, + 2 => CXAvailability_NotAvailable, + 3 => CXAvailability_NotAccessible, + _ => throw ArgumentError('Unknown value for CXAvailabilityKind: $value'), + }; +} + +/// Describes the calling convention of a function type +enum CXCallingConv { + CXCallingConv_Default(0), + CXCallingConv_C(1), + CXCallingConv_X86StdCall(2), + CXCallingConv_X86FastCall(3), + CXCallingConv_X86ThisCall(4), + CXCallingConv_X86Pascal(5), + CXCallingConv_AAPCS(6), + CXCallingConv_AAPCS_VFP(7), + CXCallingConv_X86RegCall(8), + CXCallingConv_IntelOclBicc(9), + CXCallingConv_Win64(10), + CXCallingConv_X86_64SysV(11), + CXCallingConv_X86VectorCall(12), + CXCallingConv_Swift(13), + CXCallingConv_PreserveMost(14), + CXCallingConv_PreserveAll(15), + CXCallingConv_AArch64VectorCall(16), + CXCallingConv_Invalid(100), + CXCallingConv_Unexposed(200); + + static const CXCallingConv_X86_64Win64 = CXCallingConv_Win64; + + final int value; + const CXCallingConv(this.value); + + static CXCallingConv fromValue(int value) => switch (value) { + 0 => CXCallingConv_Default, + 1 => CXCallingConv_C, + 2 => CXCallingConv_X86StdCall, + 3 => CXCallingConv_X86FastCall, + 4 => CXCallingConv_X86ThisCall, + 5 => CXCallingConv_X86Pascal, + 6 => CXCallingConv_AAPCS, + 7 => CXCallingConv_AAPCS_VFP, + 8 => CXCallingConv_X86RegCall, + 9 => CXCallingConv_IntelOclBicc, + 10 => CXCallingConv_Win64, + 11 => CXCallingConv_X86_64SysV, + 12 => CXCallingConv_X86VectorCall, + 13 => CXCallingConv_Swift, + 14 => CXCallingConv_PreserveMost, + 15 => CXCallingConv_PreserveAll, + 16 => CXCallingConv_AArch64VectorCall, + 100 => CXCallingConv_Invalid, + 200 => CXCallingConv_Unexposed, + _ => throw ArgumentError('Unknown value for CXCallingConv: $value'), + }; + + @override + String toString() { + if (this == CXCallingConv_Win64) + return "CXCallingConv.CXCallingConv_Win64, CXCallingConv.CXCallingConv_X86_64Win64"; + return super.toString(); + } +} + +/// Describes how the traversal of the children of a particular cursor should +/// proceed after visiting a particular child cursor. +enum CXChildVisitResult { + /// Terminates the cursor traversal. + CXChildVisit_Break(0), + + /// Continues the cursor traversal with the next sibling of the cursor just + /// visited, without visiting its children. + CXChildVisit_Continue(1), + + /// Recursively traverse the children of this cursor, using the same visitor + /// and client data. + CXChildVisit_Recurse(2); + + final int value; + const CXChildVisitResult(this.value); + + static CXChildVisitResult fromValue(int value) => switch (value) { + 0 => CXChildVisit_Break, + 1 => CXChildVisit_Continue, + 2 => CXChildVisit_Recurse, + _ => throw ArgumentError('Unknown value for CXChildVisitResult: $value'), + }; +} + +/// Opaque pointer representing client data that will be passed through to +/// various callbacks and visitors. +typedef CXClientData = ffi.Pointer; + +/// Contains the results of code-completion. +final class CXCodeCompleteResults extends ffi.Struct { + /// The code-completion results. + external ffi.Pointer Results; + + /// The number of code-completion results stored in the Results array. + @ffi.UnsignedInt() + external int NumResults; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer Results, + required int NumResults, + }) => $allocator() + ..ref.Results = Results + ..ref.NumResults = NumResults; +} + +/// Flags that can be passed to clang_codeCompleteAt() to modify its behavior. +enum CXCodeComplete_Flags { + /// Whether to include macros within the set of code completions returned. + CXCodeComplete_IncludeMacros(1), + + /// Whether to include code patterns for language constructs within the set of + /// code completions, e.g., for loops. + CXCodeComplete_IncludeCodePatterns(2), + + /// Whether to include brief documentation within the set of code completions + /// returned. + CXCodeComplete_IncludeBriefComments(4), + + /// Whether to speed up completion by omitting top- or namespace-level + /// entities defined in the preamble. There's no guarantee any particular + /// entity is omitted. This may be useful if the headers are indexed + /// externally. + CXCodeComplete_SkipPreamble(8), + + /// Whether to include completions with small fix-its, e.g. change '.' to '->' + /// on member access, etc. + CXCodeComplete_IncludeCompletionsWithFixIts(16); + + final int value; + const CXCodeComplete_Flags(this.value); + + static CXCodeComplete_Flags fromValue(int value) => switch (value) { + 1 => CXCodeComplete_IncludeMacros, + 2 => CXCodeComplete_IncludeCodePatterns, + 4 => CXCodeComplete_IncludeBriefComments, + 8 => CXCodeComplete_SkipPreamble, + 16 => CXCodeComplete_IncludeCompletionsWithFixIts, + _ => throw ArgumentError('Unknown value for CXCodeComplete_Flags: $value'), + }; +} + +/// Describes a single piece of text within a code-completion string. +enum CXCompletionChunkKind { + /// A code-completion string that describes "optional" text that could be a + /// part of the template (but is not required). + CXCompletionChunk_Optional(0), + + /// Text that a user would be expected to type to get this code-completion + /// result. + CXCompletionChunk_TypedText(1), + + /// Text that should be inserted as part of a code-completion result. + CXCompletionChunk_Text(2), + + /// Placeholder text that should be replaced by the user. + CXCompletionChunk_Placeholder(3), + + /// Informative text that should be displayed but never inserted as part of + /// the template. + CXCompletionChunk_Informative(4), + + /// Text that describes the current parameter when code-completion is + /// referring to function call, message send, or template specialization. + CXCompletionChunk_CurrentParameter(5), + + /// A left parenthesis ('('), used to initiate a function call or signal the + /// beginning of a function parameter list. + CXCompletionChunk_LeftParen(6), + + /// A right parenthesis (')'), used to finish a function call or signal the + /// end of a function parameter list. + CXCompletionChunk_RightParen(7), + + /// A left bracket ('['). + CXCompletionChunk_LeftBracket(8), + + /// A right bracket (']'). + CXCompletionChunk_RightBracket(9), + + /// A left brace ('{'). + CXCompletionChunk_LeftBrace(10), + + /// A right brace ('}'). + CXCompletionChunk_RightBrace(11), + + /// A left angle bracket ('<'). + CXCompletionChunk_LeftAngle(12), + + /// A right angle bracket ('>'). + CXCompletionChunk_RightAngle(13), + + /// A comma separator (','). + CXCompletionChunk_Comma(14), + + /// Text that specifies the result type of a given result. + CXCompletionChunk_ResultType(15), + + /// A colon (':'). + CXCompletionChunk_Colon(16), + + /// A semicolon (';'). + CXCompletionChunk_SemiColon(17), + + /// An '=' sign. + CXCompletionChunk_Equal(18), + + /// Horizontal space (' '). + CXCompletionChunk_HorizontalSpace(19), + + /// Vertical space ('\n'), after which it is generally a good idea to perform + /// indentation. + CXCompletionChunk_VerticalSpace(20); + + final int value; + const CXCompletionChunkKind(this.value); + + static CXCompletionChunkKind fromValue(int value) => switch (value) { + 0 => CXCompletionChunk_Optional, + 1 => CXCompletionChunk_TypedText, + 2 => CXCompletionChunk_Text, + 3 => CXCompletionChunk_Placeholder, + 4 => CXCompletionChunk_Informative, + 5 => CXCompletionChunk_CurrentParameter, + 6 => CXCompletionChunk_LeftParen, + 7 => CXCompletionChunk_RightParen, + 8 => CXCompletionChunk_LeftBracket, + 9 => CXCompletionChunk_RightBracket, + 10 => CXCompletionChunk_LeftBrace, + 11 => CXCompletionChunk_RightBrace, + 12 => CXCompletionChunk_LeftAngle, + 13 => CXCompletionChunk_RightAngle, + 14 => CXCompletionChunk_Comma, + 15 => CXCompletionChunk_ResultType, + 16 => CXCompletionChunk_Colon, + 17 => CXCompletionChunk_SemiColon, + 18 => CXCompletionChunk_Equal, + 19 => CXCompletionChunk_HorizontalSpace, + 20 => CXCompletionChunk_VerticalSpace, + _ => throw ArgumentError('Unknown value for CXCompletionChunkKind: $value'), + }; +} + +/// Bits that represent the context under which completion is occurring. +enum CXCompletionContext { + /// The context for completions is unexposed, as only Clang results should be + /// included. (This is equivalent to having no context bits set.) + CXCompletionContext_Unexposed(0), + + /// Completions for any possible type should be included in the results. + CXCompletionContext_AnyType(1), + + /// Completions for any possible value (variables, function calls, etc.) + /// should be included in the results. + CXCompletionContext_AnyValue(2), + + /// Completions for values that resolve to an Objective-C object should be + /// included in the results. + CXCompletionContext_ObjCObjectValue(4), + + /// Completions for values that resolve to an Objective-C selector should be + /// included in the results. + CXCompletionContext_ObjCSelectorValue(8), + + /// Completions for values that resolve to a C++ class type should be included + /// in the results. + CXCompletionContext_CXXClassTypeValue(16), + + /// Completions for fields of the member being accessed using the dot operator + /// should be included in the results. + CXCompletionContext_DotMemberAccess(32), + + /// Completions for fields of the member being accessed using the arrow + /// operator should be included in the results. + CXCompletionContext_ArrowMemberAccess(64), + + /// Completions for properties of the Objective-C object being accessed using + /// the dot operator should be included in the results. + CXCompletionContext_ObjCPropertyAccess(128), + + /// Completions for enum tags should be included in the results. + CXCompletionContext_EnumTag(256), + + /// Completions for union tags should be included in the results. + CXCompletionContext_UnionTag(512), + + /// Completions for struct tags should be included in the results. + CXCompletionContext_StructTag(1024), + + /// Completions for C++ class names should be included in the results. + CXCompletionContext_ClassTag(2048), + + /// Completions for C++ namespaces and namespace aliases should be included in + /// the results. + CXCompletionContext_Namespace(4096), + + /// Completions for C++ nested name specifiers should be included in the + /// results. + CXCompletionContext_NestedNameSpecifier(8192), + + /// Completions for Objective-C interfaces (classes) should be included in the + /// results. + CXCompletionContext_ObjCInterface(16384), + + /// Completions for Objective-C protocols should be included in the results. + CXCompletionContext_ObjCProtocol(32768), + + /// Completions for Objective-C categories should be included in the results. + CXCompletionContext_ObjCCategory(65536), + + /// Completions for Objective-C instance messages should be included in the + /// results. + CXCompletionContext_ObjCInstanceMessage(131072), + + /// Completions for Objective-C class messages should be included in the + /// results. + CXCompletionContext_ObjCClassMessage(262144), + + /// Completions for Objective-C selector names should be included in the + /// results. + CXCompletionContext_ObjCSelectorName(524288), + + /// Completions for preprocessor macro names should be included in the + /// results. + CXCompletionContext_MacroName(1048576), + + /// Natural language completions should be included in the results. + CXCompletionContext_NaturalLanguage(2097152), + + /// #include file completions should be included in the results. + CXCompletionContext_IncludedFile(4194304), + + /// The current context is unknown, so set all contexts. + CXCompletionContext_Unknown(8388607); + + final int value; + const CXCompletionContext(this.value); + + static CXCompletionContext fromValue(int value) => switch (value) { + 0 => CXCompletionContext_Unexposed, + 1 => CXCompletionContext_AnyType, + 2 => CXCompletionContext_AnyValue, + 4 => CXCompletionContext_ObjCObjectValue, + 8 => CXCompletionContext_ObjCSelectorValue, + 16 => CXCompletionContext_CXXClassTypeValue, + 32 => CXCompletionContext_DotMemberAccess, + 64 => CXCompletionContext_ArrowMemberAccess, + 128 => CXCompletionContext_ObjCPropertyAccess, + 256 => CXCompletionContext_EnumTag, + 512 => CXCompletionContext_UnionTag, + 1024 => CXCompletionContext_StructTag, + 2048 => CXCompletionContext_ClassTag, + 4096 => CXCompletionContext_Namespace, + 8192 => CXCompletionContext_NestedNameSpecifier, + 16384 => CXCompletionContext_ObjCInterface, + 32768 => CXCompletionContext_ObjCProtocol, + 65536 => CXCompletionContext_ObjCCategory, + 131072 => CXCompletionContext_ObjCInstanceMessage, + 262144 => CXCompletionContext_ObjCClassMessage, + 524288 => CXCompletionContext_ObjCSelectorName, + 1048576 => CXCompletionContext_MacroName, + 2097152 => CXCompletionContext_NaturalLanguage, + 4194304 => CXCompletionContext_IncludedFile, + 8388607 => CXCompletionContext_Unknown, + _ => throw ArgumentError('Unknown value for CXCompletionContext: $value'), + }; +} + +/// A single result of code completion. +final class CXCompletionResult extends ffi.Struct { + /// The kind of entity that this completion refers to. + @ffi.UnsignedInt() + external int CursorKindAsInt; + + CXCursorKind get CursorKind => CXCursorKind.fromValue(CursorKindAsInt); + set CursorKind(CXCursorKind value) => CursorKindAsInt = value.value; + + /// The code-completion string that describes how to insert this + /// code-completion result into the editing buffer. + external CXCompletionString CompletionString; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CXCursorKind CursorKind, + required CXCompletionString CompletionString, + }) => $allocator() + ..ref.CursorKind = CursorKind + ..ref.CompletionString = CompletionString; +} + +/// A semantic string that describes a code-completion result. +typedef CXCompletionString = ffi.Pointer; + +/// A cursor representing some element in the abstract syntax tree for a +/// translation unit. +final class CXCursor extends ffi.Struct { + @ffi.UnsignedInt() + external int kindAsInt; + + CXCursorKind get kind => CXCursorKind.fromValue(kindAsInt); + set kind(CXCursorKind value) => kindAsInt = value.value; + + @ffi.Int() + external int xdata; + + @ffi.Array.multi([3]) + external ffi.Array> data; +} + +final class CXCursorAndRangeVisitor extends ffi.Struct { + external ffi.Pointer context; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(ffi.Pointer, CXCursor, CXSourceRange) + > + > + visit; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer context, + required ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(ffi.Pointer, CXCursor, CXSourceRange) + > + > + visit, + }) => $allocator() + ..ref.context = context + ..ref.visit = visit; +} + +/// Describes the kind of entity that a cursor refers to. +enum CXCursorKind { + /// A declaration whose specific kind is not exposed via this interface. + CXCursor_UnexposedDecl(1), + + /// A C or C++ struct. + CXCursor_StructDecl(2), + + /// A C or C++ union. + CXCursor_UnionDecl(3), + + /// A C++ class. + CXCursor_ClassDecl(4), + + /// An enumeration. + CXCursor_EnumDecl(5), + + /// A field (in C) or non-static data member (in C++) in a struct, union, or + /// C++ class. + CXCursor_FieldDecl(6), + + /// An enumerator constant. + CXCursor_EnumConstantDecl(7), + + /// A function. + CXCursor_FunctionDecl(8), + + /// A variable. + CXCursor_VarDecl(9), + + /// A function or method parameter. + CXCursor_ParmDecl(10), + + /// An Objective-C @interface. + CXCursor_ObjCInterfaceDecl(11), + + /// An Objective-C @interface for a category. + CXCursor_ObjCCategoryDecl(12), + + /// An Objective-C @protocol declaration. + CXCursor_ObjCProtocolDecl(13), + + /// An Objective-C @property declaration. + CXCursor_ObjCPropertyDecl(14), + + /// An Objective-C instance variable. + CXCursor_ObjCIvarDecl(15), + + /// An Objective-C instance method. + CXCursor_ObjCInstanceMethodDecl(16), + + /// An Objective-C class method. + CXCursor_ObjCClassMethodDecl(17), + + /// An Objective-C @implementation. + CXCursor_ObjCImplementationDecl(18), + + /// An Objective-C @implementation for a category. + CXCursor_ObjCCategoryImplDecl(19), + + /// A typedef. + CXCursor_TypedefDecl(20), + + /// A C++ class method. + CXCursor_CXXMethod(21), + + /// A C++ namespace. + CXCursor_Namespace(22), + + /// A linkage specification, e.g. 'extern "C"'. + CXCursor_LinkageSpec(23), + + /// A C++ constructor. + CXCursor_Constructor(24), + + /// A C++ destructor. + CXCursor_Destructor(25), + + /// A C++ conversion function. + CXCursor_ConversionFunction(26), + + /// A C++ template type parameter. + CXCursor_TemplateTypeParameter(27), + + /// A C++ non-type template parameter. + CXCursor_NonTypeTemplateParameter(28), + + /// A C++ template template parameter. + CXCursor_TemplateTemplateParameter(29), + + /// A C++ function template. + CXCursor_FunctionTemplate(30), + + /// A C++ class template. + CXCursor_ClassTemplate(31), + + /// A C++ class template partial specialization. + CXCursor_ClassTemplatePartialSpecialization(32), + + /// A C++ namespace alias declaration. + CXCursor_NamespaceAlias(33), + + /// A C++ using directive. + CXCursor_UsingDirective(34), + + /// A C++ using declaration. + CXCursor_UsingDeclaration(35), + + /// A C++ alias declaration + CXCursor_TypeAliasDecl(36), + + /// An Objective-C @synthesize definition. + CXCursor_ObjCSynthesizeDecl(37), + + /// An Objective-C @dynamic definition. + CXCursor_ObjCDynamicDecl(38), + + /// An access specifier. + CXCursor_CXXAccessSpecifier(39), + CXCursor_FirstRef(40), + CXCursor_ObjCProtocolRef(41), + CXCursor_ObjCClassRef(42), + + /// A reference to a type declaration. + CXCursor_TypeRef(43), + CXCursor_CXXBaseSpecifier(44), + + /// A reference to a class template, function template, template template + /// parameter, or class template partial specialization. + CXCursor_TemplateRef(45), + + /// A reference to a namespace or namespace alias. + CXCursor_NamespaceRef(46), + + /// A reference to a member of a struct, union, or class that occurs in some + /// non-expression context, e.g., a designated initializer. + CXCursor_MemberRef(47), + + /// A reference to a labeled statement. + CXCursor_LabelRef(48), + + /// A reference to a set of overloaded functions or function templates that + /// has not yet been resolved to a specific function or function template. + CXCursor_OverloadedDeclRef(49), + + /// A reference to a variable that occurs in some non-expression context, + /// e.g., a C++ lambda capture list. + CXCursor_VariableRef(50), + CXCursor_FirstInvalid(70), + CXCursor_NoDeclFound(71), + CXCursor_NotImplemented(72), + CXCursor_InvalidCode(73), + CXCursor_FirstExpr(100), + + /// An expression that refers to some value declaration, such as a function, + /// variable, or enumerator. + CXCursor_DeclRefExpr(101), + + /// An expression that refers to a member of a struct, union, class, + /// Objective-C class, etc. + CXCursor_MemberRefExpr(102), + + /// An expression that calls a function. + CXCursor_CallExpr(103), + + /// An expression that sends a message to an Objective-C object or class. + CXCursor_ObjCMessageExpr(104), + + /// An expression that represents a block literal. + CXCursor_BlockExpr(105), + + /// An integer literal. + CXCursor_IntegerLiteral(106), + + /// A floating point number literal. + CXCursor_FloatingLiteral(107), + + /// An imaginary number literal. + CXCursor_ImaginaryLiteral(108), + + /// A string literal. + CXCursor_StringLiteral(109), + + /// A character literal. + CXCursor_CharacterLiteral(110), + + /// A parenthesized expression, e.g. "(1)". + CXCursor_ParenExpr(111), + + /// This represents the unary-expression's (except sizeof and alignof). + CXCursor_UnaryOperator(112), + + /// [C99 6.5.2.1] Array Subscripting. + CXCursor_ArraySubscriptExpr(113), + + /// A builtin binary operation expression such as "x + y" or "x <= y". + CXCursor_BinaryOperator(114), + + /// Compound assignment such as "+=". + CXCursor_CompoundAssignOperator(115), + + /// The ?: ternary operator. + CXCursor_ConditionalOperator(116), + + /// An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ + /// [expr.cast]), which uses the syntax (Type)expr. + CXCursor_CStyleCastExpr(117), + + /// [C99 6.5.2.5] + CXCursor_CompoundLiteralExpr(118), + + /// Describes an C or C++ initializer list. + CXCursor_InitListExpr(119), + + /// The GNU address of label extension, representing &&label. + CXCursor_AddrLabelExpr(120), + + /// This is the GNU Statement Expression extension: ({int X=4; X;}) + CXCursor_StmtExpr(121), + + /// Represents a C11 generic selection. + CXCursor_GenericSelectionExpr(122), + + /// Implements the GNU __null extension, which is a name for a null pointer + /// constant that has integral type (e.g., int or long) and is the same size + /// and alignment as a pointer. + CXCursor_GNUNullExpr(123), + + /// C++'s static_cast<> expression. + CXCursor_CXXStaticCastExpr(124), + + /// C++'s dynamic_cast<> expression. + CXCursor_CXXDynamicCastExpr(125), + + /// C++'s reinterpret_cast<> expression. + CXCursor_CXXReinterpretCastExpr(126), + + /// C++'s const_cast<> expression. + CXCursor_CXXConstCastExpr(127), + + /// Represents an explicit C++ type conversion that uses "functional" notion + /// (C++ [expr.type.conv]). + CXCursor_CXXFunctionalCastExpr(128), + + /// A C++ typeid expression (C++ [expr.typeid]). + CXCursor_CXXTypeidExpr(129), + + /// [C++ 2.13.5] C++ Boolean Literal. + CXCursor_CXXBoolLiteralExpr(130), + + /// [C++0x 2.14.7] C++ Pointer Literal. + CXCursor_CXXNullPtrLiteralExpr(131), + + /// Represents the "this" expression in C++ + CXCursor_CXXThisExpr(132), + + /// [C++ 15] C++ Throw Expression. + CXCursor_CXXThrowExpr(133), + + /// A new expression for memory allocation and constructor calls, e.g: "new + /// CXXNewExpr(foo)". + CXCursor_CXXNewExpr(134), + + /// A delete expression for memory deallocation and destructor calls, e.g. + /// "delete[] pArray". + CXCursor_CXXDeleteExpr(135), + + /// A unary expression. (noexcept, sizeof, or other traits) + CXCursor_UnaryExpr(136), + + /// An Objective-C string literal i.e. "foo". + CXCursor_ObjCStringLiteral(137), + + /// An Objective-C @encode expression. + CXCursor_ObjCEncodeExpr(138), + + /// An Objective-C @selector expression. + CXCursor_ObjCSelectorExpr(139), + + /// An Objective-C @protocol expression. + CXCursor_ObjCProtocolExpr(140), + + /// An Objective-C "bridged" cast expression, which casts between Objective-C + /// pointers and C pointers, transferring ownership in the process. + CXCursor_ObjCBridgedCastExpr(141), + + /// Represents a C++0x pack expansion that produces a sequence of expressions. + CXCursor_PackExpansionExpr(142), + + /// Represents an expression that computes the length of a parameter pack. + CXCursor_SizeOfPackExpr(143), + CXCursor_LambdaExpr(144), + + /// Objective-c Boolean Literal. + CXCursor_ObjCBoolLiteralExpr(145), + + /// Represents the "self" expression in an Objective-C method. + CXCursor_ObjCSelfExpr(146), + + /// OpenMP 4.0 [2.4, Array Section]. + CXCursor_OMPArraySectionExpr(147), + + /// Represents an (...) check. + CXCursor_ObjCAvailabilityCheckExpr(148), + + /// Fixed point literal + CXCursor_FixedPointLiteral(149), + CXCursor_FirstStmt(200), + + /// A labelled statement in a function. + CXCursor_LabelStmt(201), + + /// A group of statements like { stmt stmt }. + CXCursor_CompoundStmt(202), + + /// A case statement. + CXCursor_CaseStmt(203), + + /// A default statement. + CXCursor_DefaultStmt(204), + + /// An if statement + CXCursor_IfStmt(205), + + /// A switch statement. + CXCursor_SwitchStmt(206), + + /// A while statement. + CXCursor_WhileStmt(207), + + /// A do statement. + CXCursor_DoStmt(208), + + /// A for statement. + CXCursor_ForStmt(209), + + /// A goto statement. + CXCursor_GotoStmt(210), + + /// An indirect goto statement. + CXCursor_IndirectGotoStmt(211), + + /// A continue statement. + CXCursor_ContinueStmt(212), + + /// A break statement. + CXCursor_BreakStmt(213), + + /// A return statement. + CXCursor_ReturnStmt(214), + + /// A GCC inline assembly statement extension. + CXCursor_GCCAsmStmt(215), + + /// Objective-C's overall @try-@catch-@finally statement. + CXCursor_ObjCAtTryStmt(216), + + /// Objective-C's @catch statement. + CXCursor_ObjCAtCatchStmt(217), + + /// Objective-C's @finally statement. + CXCursor_ObjCAtFinallyStmt(218), + + /// Objective-C's @throw statement. + CXCursor_ObjCAtThrowStmt(219), + + /// Objective-C's @synchronized statement. + CXCursor_ObjCAtSynchronizedStmt(220), + + /// Objective-C's autorelease pool statement. + CXCursor_ObjCAutoreleasePoolStmt(221), + + /// Objective-C's collection statement. + CXCursor_ObjCForCollectionStmt(222), + + /// C++'s catch statement. + CXCursor_CXXCatchStmt(223), + + /// C++'s try statement. + CXCursor_CXXTryStmt(224), + + /// C++'s for (* : *) statement. + CXCursor_CXXForRangeStmt(225), + + /// Windows Structured Exception Handling's try statement. + CXCursor_SEHTryStmt(226), + + /// Windows Structured Exception Handling's except statement. + CXCursor_SEHExceptStmt(227), + + /// Windows Structured Exception Handling's finally statement. + CXCursor_SEHFinallyStmt(228), + + /// A MS inline assembly statement extension. + CXCursor_MSAsmStmt(229), + + /// The null statement ";": C99 6.8.3p3. + CXCursor_NullStmt(230), + + /// Adaptor class for mixing declarations with statements and expressions. + CXCursor_DeclStmt(231), + + /// OpenMP parallel directive. + CXCursor_OMPParallelDirective(232), + + /// OpenMP SIMD directive. + CXCursor_OMPSimdDirective(233), + + /// OpenMP for directive. + CXCursor_OMPForDirective(234), + + /// OpenMP sections directive. + CXCursor_OMPSectionsDirective(235), + + /// OpenMP section directive. + CXCursor_OMPSectionDirective(236), + + /// OpenMP single directive. + CXCursor_OMPSingleDirective(237), + + /// OpenMP parallel for directive. + CXCursor_OMPParallelForDirective(238), + + /// OpenMP parallel sections directive. + CXCursor_OMPParallelSectionsDirective(239), + + /// OpenMP task directive. + CXCursor_OMPTaskDirective(240), + + /// OpenMP master directive. + CXCursor_OMPMasterDirective(241), + + /// OpenMP critical directive. + CXCursor_OMPCriticalDirective(242), + + /// OpenMP taskyield directive. + CXCursor_OMPTaskyieldDirective(243), + + /// OpenMP barrier directive. + CXCursor_OMPBarrierDirective(244), + + /// OpenMP taskwait directive. + CXCursor_OMPTaskwaitDirective(245), + + /// OpenMP flush directive. + CXCursor_OMPFlushDirective(246), + + /// Windows Structured Exception Handling's leave statement. + CXCursor_SEHLeaveStmt(247), + + /// OpenMP ordered directive. + CXCursor_OMPOrderedDirective(248), + + /// OpenMP atomic directive. + CXCursor_OMPAtomicDirective(249), + + /// OpenMP for SIMD directive. + CXCursor_OMPForSimdDirective(250), + + /// OpenMP parallel for SIMD directive. + CXCursor_OMPParallelForSimdDirective(251), + + /// OpenMP target directive. + CXCursor_OMPTargetDirective(252), + + /// OpenMP teams directive. + CXCursor_OMPTeamsDirective(253), + + /// OpenMP taskgroup directive. + CXCursor_OMPTaskgroupDirective(254), + + /// OpenMP cancellation point directive. + CXCursor_OMPCancellationPointDirective(255), + + /// OpenMP cancel directive. + CXCursor_OMPCancelDirective(256), + + /// OpenMP target data directive. + CXCursor_OMPTargetDataDirective(257), + + /// OpenMP taskloop directive. + CXCursor_OMPTaskLoopDirective(258), + + /// OpenMP taskloop simd directive. + CXCursor_OMPTaskLoopSimdDirective(259), + + /// OpenMP distribute directive. + CXCursor_OMPDistributeDirective(260), + + /// OpenMP target enter data directive. + CXCursor_OMPTargetEnterDataDirective(261), + + /// OpenMP target exit data directive. + CXCursor_OMPTargetExitDataDirective(262), + + /// OpenMP target parallel directive. + CXCursor_OMPTargetParallelDirective(263), + + /// OpenMP target parallel for directive. + CXCursor_OMPTargetParallelForDirective(264), + + /// OpenMP target update directive. + CXCursor_OMPTargetUpdateDirective(265), + + /// OpenMP distribute parallel for directive. + CXCursor_OMPDistributeParallelForDirective(266), + + /// OpenMP distribute parallel for simd directive. + CXCursor_OMPDistributeParallelForSimdDirective(267), + + /// OpenMP distribute simd directive. + CXCursor_OMPDistributeSimdDirective(268), + + /// OpenMP target parallel for simd directive. + CXCursor_OMPTargetParallelForSimdDirective(269), + + /// OpenMP target simd directive. + CXCursor_OMPTargetSimdDirective(270), + + /// OpenMP teams distribute directive. + CXCursor_OMPTeamsDistributeDirective(271), + + /// OpenMP teams distribute simd directive. + CXCursor_OMPTeamsDistributeSimdDirective(272), + + /// OpenMP teams distribute parallel for simd directive. + CXCursor_OMPTeamsDistributeParallelForSimdDirective(273), + + /// OpenMP teams distribute parallel for directive. + CXCursor_OMPTeamsDistributeParallelForDirective(274), + + /// OpenMP target teams directive. + CXCursor_OMPTargetTeamsDirective(275), + + /// OpenMP target teams distribute directive. + CXCursor_OMPTargetTeamsDistributeDirective(276), + + /// OpenMP target teams distribute parallel for directive. + CXCursor_OMPTargetTeamsDistributeParallelForDirective(277), + + /// OpenMP target teams distribute parallel for simd directive. + CXCursor_OMPTargetTeamsDistributeParallelForSimdDirective(278), + + /// OpenMP target teams distribute simd directive. + CXCursor_OMPTargetTeamsDistributeSimdDirective(279), + + /// C++2a std::bit_cast expression. + CXCursor_BuiltinBitCastExpr(280), + + /// OpenMP master taskloop directive. + CXCursor_OMPMasterTaskLoopDirective(281), + + /// OpenMP parallel master taskloop directive. + CXCursor_OMPParallelMasterTaskLoopDirective(282), + + /// OpenMP master taskloop simd directive. + CXCursor_OMPMasterTaskLoopSimdDirective(283), + + /// OpenMP parallel master taskloop simd directive. + CXCursor_OMPParallelMasterTaskLoopSimdDirective(284), + + /// OpenMP parallel master directive. + CXCursor_OMPParallelMasterDirective(285), + + /// Cursor that represents the translation unit itself. + CXCursor_TranslationUnit(300), + CXCursor_FirstAttr(400), + CXCursor_IBActionAttr(401), + CXCursor_IBOutletAttr(402), + CXCursor_IBOutletCollectionAttr(403), + CXCursor_CXXFinalAttr(404), + CXCursor_CXXOverrideAttr(405), + CXCursor_AnnotateAttr(406), + CXCursor_AsmLabelAttr(407), + CXCursor_PackedAttr(408), + CXCursor_PureAttr(409), + CXCursor_ConstAttr(410), + CXCursor_NoDuplicateAttr(411), + CXCursor_CUDAConstantAttr(412), + CXCursor_CUDADeviceAttr(413), + CXCursor_CUDAGlobalAttr(414), + CXCursor_CUDAHostAttr(415), + CXCursor_CUDASharedAttr(416), + CXCursor_VisibilityAttr(417), + CXCursor_DLLExport(418), + CXCursor_DLLImport(419), + CXCursor_NSReturnsRetained(420), + CXCursor_NSReturnsNotRetained(421), + CXCursor_NSReturnsAutoreleased(422), + CXCursor_NSConsumesSelf(423), + CXCursor_NSConsumed(424), + CXCursor_ObjCException(425), + CXCursor_ObjCNSObject(426), + CXCursor_ObjCIndependentClass(427), + CXCursor_ObjCPreciseLifetime(428), + CXCursor_ObjCReturnsInnerPointer(429), + CXCursor_ObjCRequiresSuper(430), + CXCursor_ObjCRootClass(431), + CXCursor_ObjCSubclassingRestricted(432), + CXCursor_ObjCExplicitProtocolImpl(433), + CXCursor_ObjCDesignatedInitializer(434), + CXCursor_ObjCRuntimeVisible(435), + CXCursor_ObjCBoxable(436), + CXCursor_FlagEnum(437), + CXCursor_ConvergentAttr(438), + CXCursor_WarnUnusedAttr(439), + CXCursor_WarnUnusedResultAttr(440), + CXCursor_AlignedAttr(441), + CXCursor_PreprocessingDirective(500), + CXCursor_MacroDefinition(501), + CXCursor_MacroExpansion(502), + CXCursor_InclusionDirective(503), + + /// A module import declaration. + CXCursor_ModuleImportDecl(600), + CXCursor_TypeAliasTemplateDecl(601), + + /// A static_assert or _Static_assert node + CXCursor_StaticAssert(602), + + /// a friend declaration. + CXCursor_FriendDecl(603), + + /// A code completion overload candidate. + CXCursor_OverloadCandidate(700); + + static const CXCursor_FirstDecl = CXCursor_UnexposedDecl; + static const CXCursor_LastDecl = CXCursor_CXXAccessSpecifier; + static const CXCursor_ObjCSuperClassRef = CXCursor_FirstRef; + static const CXCursor_LastRef = CXCursor_VariableRef; + static const CXCursor_InvalidFile = CXCursor_FirstInvalid; + static const CXCursor_LastInvalid = CXCursor_InvalidCode; + + /// An expression whose specific kind is not exposed via this interface. + static const CXCursor_UnexposedExpr = CXCursor_FirstExpr; + static const CXCursor_LastExpr = CXCursor_FixedPointLiteral; + + /// A statement whose specific kind is not exposed via this interface. + static const CXCursor_UnexposedStmt = CXCursor_FirstStmt; + static const CXCursor_AsmStmt = CXCursor_GCCAsmStmt; + static const CXCursor_LastStmt = CXCursor_OMPParallelMasterDirective; + + /// An attribute whose specific kind is not exposed via this interface. + static const CXCursor_UnexposedAttr = CXCursor_FirstAttr; + static const CXCursor_LastAttr = CXCursor_AlignedAttr; + static const CXCursor_MacroInstantiation = CXCursor_MacroExpansion; + static const CXCursor_FirstPreprocessing = CXCursor_PreprocessingDirective; + static const CXCursor_LastPreprocessing = CXCursor_InclusionDirective; + static const CXCursor_FirstExtraDecl = CXCursor_ModuleImportDecl; + static const CXCursor_LastExtraDecl = CXCursor_FriendDecl; + + final int value; + const CXCursorKind(this.value); + + static CXCursorKind fromValue(int value) => switch (value) { + 1 => CXCursor_UnexposedDecl, + 2 => CXCursor_StructDecl, + 3 => CXCursor_UnionDecl, + 4 => CXCursor_ClassDecl, + 5 => CXCursor_EnumDecl, + 6 => CXCursor_FieldDecl, + 7 => CXCursor_EnumConstantDecl, + 8 => CXCursor_FunctionDecl, + 9 => CXCursor_VarDecl, + 10 => CXCursor_ParmDecl, + 11 => CXCursor_ObjCInterfaceDecl, + 12 => CXCursor_ObjCCategoryDecl, + 13 => CXCursor_ObjCProtocolDecl, + 14 => CXCursor_ObjCPropertyDecl, + 15 => CXCursor_ObjCIvarDecl, + 16 => CXCursor_ObjCInstanceMethodDecl, + 17 => CXCursor_ObjCClassMethodDecl, + 18 => CXCursor_ObjCImplementationDecl, + 19 => CXCursor_ObjCCategoryImplDecl, + 20 => CXCursor_TypedefDecl, + 21 => CXCursor_CXXMethod, + 22 => CXCursor_Namespace, + 23 => CXCursor_LinkageSpec, + 24 => CXCursor_Constructor, + 25 => CXCursor_Destructor, + 26 => CXCursor_ConversionFunction, + 27 => CXCursor_TemplateTypeParameter, + 28 => CXCursor_NonTypeTemplateParameter, + 29 => CXCursor_TemplateTemplateParameter, + 30 => CXCursor_FunctionTemplate, + 31 => CXCursor_ClassTemplate, + 32 => CXCursor_ClassTemplatePartialSpecialization, + 33 => CXCursor_NamespaceAlias, + 34 => CXCursor_UsingDirective, + 35 => CXCursor_UsingDeclaration, + 36 => CXCursor_TypeAliasDecl, + 37 => CXCursor_ObjCSynthesizeDecl, + 38 => CXCursor_ObjCDynamicDecl, + 39 => CXCursor_CXXAccessSpecifier, + 40 => CXCursor_FirstRef, + 41 => CXCursor_ObjCProtocolRef, + 42 => CXCursor_ObjCClassRef, + 43 => CXCursor_TypeRef, + 44 => CXCursor_CXXBaseSpecifier, + 45 => CXCursor_TemplateRef, + 46 => CXCursor_NamespaceRef, + 47 => CXCursor_MemberRef, + 48 => CXCursor_LabelRef, + 49 => CXCursor_OverloadedDeclRef, + 50 => CXCursor_VariableRef, + 70 => CXCursor_FirstInvalid, + 71 => CXCursor_NoDeclFound, + 72 => CXCursor_NotImplemented, + 73 => CXCursor_InvalidCode, + 100 => CXCursor_FirstExpr, + 101 => CXCursor_DeclRefExpr, + 102 => CXCursor_MemberRefExpr, + 103 => CXCursor_CallExpr, + 104 => CXCursor_ObjCMessageExpr, + 105 => CXCursor_BlockExpr, + 106 => CXCursor_IntegerLiteral, + 107 => CXCursor_FloatingLiteral, + 108 => CXCursor_ImaginaryLiteral, + 109 => CXCursor_StringLiteral, + 110 => CXCursor_CharacterLiteral, + 111 => CXCursor_ParenExpr, + 112 => CXCursor_UnaryOperator, + 113 => CXCursor_ArraySubscriptExpr, + 114 => CXCursor_BinaryOperator, + 115 => CXCursor_CompoundAssignOperator, + 116 => CXCursor_ConditionalOperator, + 117 => CXCursor_CStyleCastExpr, + 118 => CXCursor_CompoundLiteralExpr, + 119 => CXCursor_InitListExpr, + 120 => CXCursor_AddrLabelExpr, + 121 => CXCursor_StmtExpr, + 122 => CXCursor_GenericSelectionExpr, + 123 => CXCursor_GNUNullExpr, + 124 => CXCursor_CXXStaticCastExpr, + 125 => CXCursor_CXXDynamicCastExpr, + 126 => CXCursor_CXXReinterpretCastExpr, + 127 => CXCursor_CXXConstCastExpr, + 128 => CXCursor_CXXFunctionalCastExpr, + 129 => CXCursor_CXXTypeidExpr, + 130 => CXCursor_CXXBoolLiteralExpr, + 131 => CXCursor_CXXNullPtrLiteralExpr, + 132 => CXCursor_CXXThisExpr, + 133 => CXCursor_CXXThrowExpr, + 134 => CXCursor_CXXNewExpr, + 135 => CXCursor_CXXDeleteExpr, + 136 => CXCursor_UnaryExpr, + 137 => CXCursor_ObjCStringLiteral, + 138 => CXCursor_ObjCEncodeExpr, + 139 => CXCursor_ObjCSelectorExpr, + 140 => CXCursor_ObjCProtocolExpr, + 141 => CXCursor_ObjCBridgedCastExpr, + 142 => CXCursor_PackExpansionExpr, + 143 => CXCursor_SizeOfPackExpr, + 144 => CXCursor_LambdaExpr, + 145 => CXCursor_ObjCBoolLiteralExpr, + 146 => CXCursor_ObjCSelfExpr, + 147 => CXCursor_OMPArraySectionExpr, + 148 => CXCursor_ObjCAvailabilityCheckExpr, + 149 => CXCursor_FixedPointLiteral, + 200 => CXCursor_FirstStmt, + 201 => CXCursor_LabelStmt, + 202 => CXCursor_CompoundStmt, + 203 => CXCursor_CaseStmt, + 204 => CXCursor_DefaultStmt, + 205 => CXCursor_IfStmt, + 206 => CXCursor_SwitchStmt, + 207 => CXCursor_WhileStmt, + 208 => CXCursor_DoStmt, + 209 => CXCursor_ForStmt, + 210 => CXCursor_GotoStmt, + 211 => CXCursor_IndirectGotoStmt, + 212 => CXCursor_ContinueStmt, + 213 => CXCursor_BreakStmt, + 214 => CXCursor_ReturnStmt, + 215 => CXCursor_GCCAsmStmt, + 216 => CXCursor_ObjCAtTryStmt, + 217 => CXCursor_ObjCAtCatchStmt, + 218 => CXCursor_ObjCAtFinallyStmt, + 219 => CXCursor_ObjCAtThrowStmt, + 220 => CXCursor_ObjCAtSynchronizedStmt, + 221 => CXCursor_ObjCAutoreleasePoolStmt, + 222 => CXCursor_ObjCForCollectionStmt, + 223 => CXCursor_CXXCatchStmt, + 224 => CXCursor_CXXTryStmt, + 225 => CXCursor_CXXForRangeStmt, + 226 => CXCursor_SEHTryStmt, + 227 => CXCursor_SEHExceptStmt, + 228 => CXCursor_SEHFinallyStmt, + 229 => CXCursor_MSAsmStmt, + 230 => CXCursor_NullStmt, + 231 => CXCursor_DeclStmt, + 232 => CXCursor_OMPParallelDirective, + 233 => CXCursor_OMPSimdDirective, + 234 => CXCursor_OMPForDirective, + 235 => CXCursor_OMPSectionsDirective, + 236 => CXCursor_OMPSectionDirective, + 237 => CXCursor_OMPSingleDirective, + 238 => CXCursor_OMPParallelForDirective, + 239 => CXCursor_OMPParallelSectionsDirective, + 240 => CXCursor_OMPTaskDirective, + 241 => CXCursor_OMPMasterDirective, + 242 => CXCursor_OMPCriticalDirective, + 243 => CXCursor_OMPTaskyieldDirective, + 244 => CXCursor_OMPBarrierDirective, + 245 => CXCursor_OMPTaskwaitDirective, + 246 => CXCursor_OMPFlushDirective, + 247 => CXCursor_SEHLeaveStmt, + 248 => CXCursor_OMPOrderedDirective, + 249 => CXCursor_OMPAtomicDirective, + 250 => CXCursor_OMPForSimdDirective, + 251 => CXCursor_OMPParallelForSimdDirective, + 252 => CXCursor_OMPTargetDirective, + 253 => CXCursor_OMPTeamsDirective, + 254 => CXCursor_OMPTaskgroupDirective, + 255 => CXCursor_OMPCancellationPointDirective, + 256 => CXCursor_OMPCancelDirective, + 257 => CXCursor_OMPTargetDataDirective, + 258 => CXCursor_OMPTaskLoopDirective, + 259 => CXCursor_OMPTaskLoopSimdDirective, + 260 => CXCursor_OMPDistributeDirective, + 261 => CXCursor_OMPTargetEnterDataDirective, + 262 => CXCursor_OMPTargetExitDataDirective, + 263 => CXCursor_OMPTargetParallelDirective, + 264 => CXCursor_OMPTargetParallelForDirective, + 265 => CXCursor_OMPTargetUpdateDirective, + 266 => CXCursor_OMPDistributeParallelForDirective, + 267 => CXCursor_OMPDistributeParallelForSimdDirective, + 268 => CXCursor_OMPDistributeSimdDirective, + 269 => CXCursor_OMPTargetParallelForSimdDirective, + 270 => CXCursor_OMPTargetSimdDirective, + 271 => CXCursor_OMPTeamsDistributeDirective, + 272 => CXCursor_OMPTeamsDistributeSimdDirective, + 273 => CXCursor_OMPTeamsDistributeParallelForSimdDirective, + 274 => CXCursor_OMPTeamsDistributeParallelForDirective, + 275 => CXCursor_OMPTargetTeamsDirective, + 276 => CXCursor_OMPTargetTeamsDistributeDirective, + 277 => CXCursor_OMPTargetTeamsDistributeParallelForDirective, + 278 => CXCursor_OMPTargetTeamsDistributeParallelForSimdDirective, + 279 => CXCursor_OMPTargetTeamsDistributeSimdDirective, + 280 => CXCursor_BuiltinBitCastExpr, + 281 => CXCursor_OMPMasterTaskLoopDirective, + 282 => CXCursor_OMPParallelMasterTaskLoopDirective, + 283 => CXCursor_OMPMasterTaskLoopSimdDirective, + 284 => CXCursor_OMPParallelMasterTaskLoopSimdDirective, + 285 => CXCursor_OMPParallelMasterDirective, + 300 => CXCursor_TranslationUnit, + 400 => CXCursor_FirstAttr, + 401 => CXCursor_IBActionAttr, + 402 => CXCursor_IBOutletAttr, + 403 => CXCursor_IBOutletCollectionAttr, + 404 => CXCursor_CXXFinalAttr, + 405 => CXCursor_CXXOverrideAttr, + 406 => CXCursor_AnnotateAttr, + 407 => CXCursor_AsmLabelAttr, + 408 => CXCursor_PackedAttr, + 409 => CXCursor_PureAttr, + 410 => CXCursor_ConstAttr, + 411 => CXCursor_NoDuplicateAttr, + 412 => CXCursor_CUDAConstantAttr, + 413 => CXCursor_CUDADeviceAttr, + 414 => CXCursor_CUDAGlobalAttr, + 415 => CXCursor_CUDAHostAttr, + 416 => CXCursor_CUDASharedAttr, + 417 => CXCursor_VisibilityAttr, + 418 => CXCursor_DLLExport, + 419 => CXCursor_DLLImport, + 420 => CXCursor_NSReturnsRetained, + 421 => CXCursor_NSReturnsNotRetained, + 422 => CXCursor_NSReturnsAutoreleased, + 423 => CXCursor_NSConsumesSelf, + 424 => CXCursor_NSConsumed, + 425 => CXCursor_ObjCException, + 426 => CXCursor_ObjCNSObject, + 427 => CXCursor_ObjCIndependentClass, + 428 => CXCursor_ObjCPreciseLifetime, + 429 => CXCursor_ObjCReturnsInnerPointer, + 430 => CXCursor_ObjCRequiresSuper, + 431 => CXCursor_ObjCRootClass, + 432 => CXCursor_ObjCSubclassingRestricted, + 433 => CXCursor_ObjCExplicitProtocolImpl, + 434 => CXCursor_ObjCDesignatedInitializer, + 435 => CXCursor_ObjCRuntimeVisible, + 436 => CXCursor_ObjCBoxable, + 437 => CXCursor_FlagEnum, + 438 => CXCursor_ConvergentAttr, + 439 => CXCursor_WarnUnusedAttr, + 440 => CXCursor_WarnUnusedResultAttr, + 441 => CXCursor_AlignedAttr, + 500 => CXCursor_PreprocessingDirective, + 501 => CXCursor_MacroDefinition, + 502 => CXCursor_MacroExpansion, + 503 => CXCursor_InclusionDirective, + 600 => CXCursor_ModuleImportDecl, + 601 => CXCursor_TypeAliasTemplateDecl, + 602 => CXCursor_StaticAssert, + 603 => CXCursor_FriendDecl, + 700 => CXCursor_OverloadCandidate, + _ => throw ArgumentError('Unknown value for CXCursorKind: $value'), + }; + + @override + String toString() { + if (this == CXCursor_UnexposedDecl) + return "CXCursorKind.CXCursor_UnexposedDecl, CXCursorKind.CXCursor_FirstDecl"; + if (this == CXCursor_CXXAccessSpecifier) + return "CXCursorKind.CXCursor_CXXAccessSpecifier, CXCursorKind.CXCursor_LastDecl"; + if (this == CXCursor_FirstRef) + return "CXCursorKind.CXCursor_FirstRef, CXCursorKind.CXCursor_ObjCSuperClassRef"; + if (this == CXCursor_VariableRef) + return "CXCursorKind.CXCursor_VariableRef, CXCursorKind.CXCursor_LastRef"; + if (this == CXCursor_FirstInvalid) + return "CXCursorKind.CXCursor_FirstInvalid, CXCursorKind.CXCursor_InvalidFile"; + if (this == CXCursor_InvalidCode) + return "CXCursorKind.CXCursor_InvalidCode, CXCursorKind.CXCursor_LastInvalid"; + if (this == CXCursor_FirstExpr) + return "CXCursorKind.CXCursor_FirstExpr, CXCursorKind.CXCursor_UnexposedExpr"; + if (this == CXCursor_FixedPointLiteral) + return "CXCursorKind.CXCursor_FixedPointLiteral, CXCursorKind.CXCursor_LastExpr"; + if (this == CXCursor_FirstStmt) + return "CXCursorKind.CXCursor_FirstStmt, CXCursorKind.CXCursor_UnexposedStmt"; + if (this == CXCursor_GCCAsmStmt) + return "CXCursorKind.CXCursor_GCCAsmStmt, CXCursorKind.CXCursor_AsmStmt"; + if (this == CXCursor_OMPParallelMasterDirective) + return "CXCursorKind.CXCursor_OMPParallelMasterDirective, CXCursorKind.CXCursor_LastStmt"; + if (this == CXCursor_FirstAttr) + return "CXCursorKind.CXCursor_FirstAttr, CXCursorKind.CXCursor_UnexposedAttr"; + if (this == CXCursor_AlignedAttr) + return "CXCursorKind.CXCursor_AlignedAttr, CXCursorKind.CXCursor_LastAttr"; + if (this == CXCursor_PreprocessingDirective) + return "CXCursorKind.CXCursor_PreprocessingDirective, CXCursorKind.CXCursor_FirstPreprocessing"; + if (this == CXCursor_MacroExpansion) + return "CXCursorKind.CXCursor_MacroExpansion, CXCursorKind.CXCursor_MacroInstantiation"; + if (this == CXCursor_InclusionDirective) + return "CXCursorKind.CXCursor_InclusionDirective, CXCursorKind.CXCursor_LastPreprocessing"; + if (this == CXCursor_ModuleImportDecl) + return "CXCursorKind.CXCursor_ModuleImportDecl, CXCursorKind.CXCursor_FirstExtraDecl"; + if (this == CXCursor_FriendDecl) + return "CXCursorKind.CXCursor_FriendDecl, CXCursorKind.CXCursor_LastExtraDecl"; + return super.toString(); + } +} + +/// A fast container representing a set of CXCursors. +typedef CXCursorSet = ffi.Pointer; + +final class CXCursorSetImpl extends ffi.Opaque {} + +/// Visitor invoked for each cursor found by a traversal. +typedef CXCursorVisitor = + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ) + > + >; + +/// Describes the exception specification of a cursor. +enum CXCursor_ExceptionSpecificationKind { + /// The cursor has no exception specification. + CXCursor_ExceptionSpecificationKind_None(0), + + /// The cursor has exception specification throw() + CXCursor_ExceptionSpecificationKind_DynamicNone(1), + + /// The cursor has exception specification throw(T1, T2) + CXCursor_ExceptionSpecificationKind_Dynamic(2), + + /// The cursor has exception specification throw(...). + CXCursor_ExceptionSpecificationKind_MSAny(3), + + /// The cursor has exception specification basic noexcept. + CXCursor_ExceptionSpecificationKind_BasicNoexcept(4), + + /// The cursor has exception specification computed noexcept. + CXCursor_ExceptionSpecificationKind_ComputedNoexcept(5), + + /// The exception specification has not yet been evaluated. + CXCursor_ExceptionSpecificationKind_Unevaluated(6), + + /// The exception specification has not yet been instantiated. + CXCursor_ExceptionSpecificationKind_Uninstantiated(7), + + /// The exception specification has not been parsed yet. + CXCursor_ExceptionSpecificationKind_Unparsed(8), + + /// The cursor has a __declspec(nothrow) exception specification. + CXCursor_ExceptionSpecificationKind_NoThrow(9); + + final int value; + const CXCursor_ExceptionSpecificationKind(this.value); + + static CXCursor_ExceptionSpecificationKind fromValue(int value) => + switch (value) { + 0 => CXCursor_ExceptionSpecificationKind_None, + 1 => CXCursor_ExceptionSpecificationKind_DynamicNone, + 2 => CXCursor_ExceptionSpecificationKind_Dynamic, + 3 => CXCursor_ExceptionSpecificationKind_MSAny, + 4 => CXCursor_ExceptionSpecificationKind_BasicNoexcept, + 5 => CXCursor_ExceptionSpecificationKind_ComputedNoexcept, + 6 => CXCursor_ExceptionSpecificationKind_Unevaluated, + 7 => CXCursor_ExceptionSpecificationKind_Uninstantiated, + 8 => CXCursor_ExceptionSpecificationKind_Unparsed, + 9 => CXCursor_ExceptionSpecificationKind_NoThrow, + _ => throw ArgumentError( + 'Unknown value for CXCursor_ExceptionSpecificationKind: $value', + ), + }; +} + +/// A single diagnostic, containing the diagnostic's severity, location, text, +/// source ranges, and fix-it hints. +typedef CXDiagnostic = ffi.Pointer; + +/// Options to control the display of diagnostics. +enum CXDiagnosticDisplayOptions { + /// Display the source-location information where the diagnostic was located. + CXDiagnostic_DisplaySourceLocation(1), + + /// If displaying the source-location information of the diagnostic, also + /// include the column number. + CXDiagnostic_DisplayColumn(2), + + /// If displaying the source-location information of the diagnostic, also + /// include information about source ranges in a machine-parsable format. + CXDiagnostic_DisplaySourceRanges(4), + + /// Display the option name associated with this diagnostic, if any. + CXDiagnostic_DisplayOption(8), + + /// Display the category number associated with this diagnostic, if any. + CXDiagnostic_DisplayCategoryId(16), + + /// Display the category name associated with this diagnostic, if any. + CXDiagnostic_DisplayCategoryName(32); + + final int value; + const CXDiagnosticDisplayOptions(this.value); + + static CXDiagnosticDisplayOptions fromValue(int value) => switch (value) { + 1 => CXDiagnostic_DisplaySourceLocation, + 2 => CXDiagnostic_DisplayColumn, + 4 => CXDiagnostic_DisplaySourceRanges, + 8 => CXDiagnostic_DisplayOption, + 16 => CXDiagnostic_DisplayCategoryId, + 32 => CXDiagnostic_DisplayCategoryName, + _ => throw ArgumentError( + 'Unknown value for CXDiagnosticDisplayOptions: $value', + ), + }; +} + +/// A group of CXDiagnostics. +typedef CXDiagnosticSet = ffi.Pointer; + +/// Describes the severity of a particular diagnostic. +enum CXDiagnosticSeverity { + /// A diagnostic that has been suppressed, e.g., by a command-line option. + CXDiagnostic_Ignored(0), + + /// This diagnostic is a note that should be attached to the previous + /// (non-note) diagnostic. + CXDiagnostic_Note(1), + + /// This diagnostic indicates suspicious code that may not be wrong. + CXDiagnostic_Warning(2), + + /// This diagnostic indicates that the code is ill-formed. + CXDiagnostic_Error(3), + + /// This diagnostic indicates that the code is ill-formed such that future + /// parser recovery is unlikely to produce useful results. + CXDiagnostic_Fatal(4); + + final int value; + const CXDiagnosticSeverity(this.value); + + static CXDiagnosticSeverity fromValue(int value) => switch (value) { + 0 => CXDiagnostic_Ignored, + 1 => CXDiagnostic_Note, + 2 => CXDiagnostic_Warning, + 3 => CXDiagnostic_Error, + 4 => CXDiagnostic_Fatal, + _ => throw ArgumentError('Unknown value for CXDiagnosticSeverity: $value'), + }; +} + +/// Error codes returned by libclang routines. +enum CXErrorCode { + /// No error. + CXError_Success(0), + + /// A generic error code, no further details are available. + CXError_Failure(1), + + /// libclang crashed while performing the requested operation. + CXError_Crashed(2), + + /// The function detected that the arguments violate the function contract. + CXError_InvalidArguments(3), + + /// An AST deserialization error has occurred. + CXError_ASTReadError(4); + + final int value; + const CXErrorCode(this.value); + + static CXErrorCode fromValue(int value) => switch (value) { + 0 => CXError_Success, + 1 => CXError_Failure, + 2 => CXError_Crashed, + 3 => CXError_InvalidArguments, + 4 => CXError_ASTReadError, + _ => throw ArgumentError('Unknown value for CXErrorCode: $value'), + }; +} + +/// Evaluation result of a cursor +typedef CXEvalResult = ffi.Pointer; + +enum CXEvalResultKind { + CXEval_Int(1), + CXEval_Float(2), + CXEval_ObjCStrLiteral(3), + CXEval_StrLiteral(4), + CXEval_CFStr(5), + CXEval_Other(6), + CXEval_UnExposed(0); + + final int value; + const CXEvalResultKind(this.value); + + static CXEvalResultKind fromValue(int value) => switch (value) { + 1 => CXEval_Int, + 2 => CXEval_Float, + 3 => CXEval_ObjCStrLiteral, + 4 => CXEval_StrLiteral, + 5 => CXEval_CFStr, + 6 => CXEval_Other, + 0 => CXEval_UnExposed, + _ => throw ArgumentError('Unknown value for CXEvalResultKind: $value'), + }; +} + +/// Visitor invoked for each field found by a traversal. +typedef CXFieldVisitor = + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor C, CXClientData client_data) + > + >; + +/// A particular source file that is part of a translation unit. +typedef CXFile = ffi.Pointer; + +/// Uniquely identifies a CXFile, that refers to the same underlying file, +/// across an indexing session. +final class CXFileUniqueID extends ffi.Struct { + @ffi.Array.multi([3]) + external ffi.Array data; +} + +enum CXGlobalOptFlags { + /// Used to indicate that no special CXIndex options are needed. + CXGlobalOpt_None(0), + + /// Used to indicate that threads that libclang creates for indexing purposes + /// should use background priority. + CXGlobalOpt_ThreadBackgroundPriorityForIndexing(1), + + /// Used to indicate that threads that libclang creates for editing purposes + /// should use background priority. + CXGlobalOpt_ThreadBackgroundPriorityForEditing(2), + + /// Used to indicate that all threads that libclang creates should use + /// background priority. + CXGlobalOpt_ThreadBackgroundPriorityForAll(3); + + final int value; + const CXGlobalOptFlags(this.value); + + static CXGlobalOptFlags fromValue(int value) => switch (value) { + 0 => CXGlobalOpt_None, + 1 => CXGlobalOpt_ThreadBackgroundPriorityForIndexing, + 2 => CXGlobalOpt_ThreadBackgroundPriorityForEditing, + 3 => CXGlobalOpt_ThreadBackgroundPriorityForAll, + _ => throw ArgumentError('Unknown value for CXGlobalOptFlags: $value'), + }; +} + +final class CXIdxAttrInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int kindAsInt; + + CXIdxAttrKind get kind => CXIdxAttrKind.fromValue(kindAsInt); + set kind(CXIdxAttrKind value) => kindAsInt = value.value; + + external CXCursor cursor; + + external CXIdxLoc loc; +} + +enum CXIdxAttrKind { + CXIdxAttr_Unexposed(0), + CXIdxAttr_IBAction(1), + CXIdxAttr_IBOutlet(2), + CXIdxAttr_IBOutletCollection(3); + + final int value; + const CXIdxAttrKind(this.value); + + static CXIdxAttrKind fromValue(int value) => switch (value) { + 0 => CXIdxAttr_Unexposed, + 1 => CXIdxAttr_IBAction, + 2 => CXIdxAttr_IBOutlet, + 3 => CXIdxAttr_IBOutletCollection, + _ => throw ArgumentError('Unknown value for CXIdxAttrKind: $value'), + }; +} + +final class CXIdxBaseClassInfo extends ffi.Struct { + external ffi.Pointer base; + + external CXCursor cursor; + + external CXIdxLoc loc; +} + +final class CXIdxCXXClassDeclInfo extends ffi.Struct { + external ffi.Pointer declInfo; + + external ffi.Pointer> bases; + + @ffi.UnsignedInt() + external int numBases; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer declInfo, + required ffi.Pointer> bases, + required int numBases, + }) => $allocator() + ..ref.declInfo = declInfo + ..ref.bases = bases + ..ref.numBases = numBases; +} + +/// The client's data object that is associated with an AST file (PCH or +/// module). +typedef CXIdxClientASTFile = ffi.Pointer; + +/// The client's data object that is associated with a semantic container of +/// entities. +typedef CXIdxClientContainer = ffi.Pointer; + +/// The client's data object that is associated with a semantic entity. +typedef CXIdxClientEntity = ffi.Pointer; + +/// The client's data object that is associated with a CXFile. +typedef CXIdxClientFile = ffi.Pointer; + +final class CXIdxContainerInfo extends ffi.Struct { + external CXCursor cursor; +} + +final class CXIdxDeclInfo extends ffi.Struct { + external ffi.Pointer entityInfo; + + external CXCursor cursor; + + external CXIdxLoc loc; + + external ffi.Pointer semanticContainer; + + /// Generally same as #semanticContainer but can be different in cases like + /// out-of-line C++ member functions. + external ffi.Pointer lexicalContainer; + + @ffi.Int() + external int isRedeclaration; + + @ffi.Int() + external int isDefinition; + + @ffi.Int() + external int isContainer; + + external ffi.Pointer declAsContainer; + + /// Whether the declaration exists in code or was created implicitly by the + /// compiler, e.g. implicit Objective-C methods for properties. + @ffi.Int() + external int isImplicit; + + external ffi.Pointer> attributes; + + @ffi.UnsignedInt() + external int numAttributes; + + @ffi.UnsignedInt() + external int flags; +} + +enum CXIdxDeclInfoFlags { + CXIdxDeclFlag_Skipped(1); + + final int value; + const CXIdxDeclInfoFlags(this.value); + + static CXIdxDeclInfoFlags fromValue(int value) => switch (value) { + 1 => CXIdxDeclFlag_Skipped, + _ => throw ArgumentError('Unknown value for CXIdxDeclInfoFlags: $value'), + }; +} + +/// Extra C++ template information for an entity. This can apply to: +/// CXIdxEntity_Function CXIdxEntity_CXXClass CXIdxEntity_CXXStaticMethod +/// CXIdxEntity_CXXInstanceMethod CXIdxEntity_CXXConstructor +/// CXIdxEntity_CXXConversionFunction CXIdxEntity_CXXTypeAlias +enum CXIdxEntityCXXTemplateKind { + CXIdxEntity_NonTemplate(0), + CXIdxEntity_Template(1), + CXIdxEntity_TemplatePartialSpecialization(2), + CXIdxEntity_TemplateSpecialization(3); + + final int value; + const CXIdxEntityCXXTemplateKind(this.value); + + static CXIdxEntityCXXTemplateKind fromValue(int value) => switch (value) { + 0 => CXIdxEntity_NonTemplate, + 1 => CXIdxEntity_Template, + 2 => CXIdxEntity_TemplatePartialSpecialization, + 3 => CXIdxEntity_TemplateSpecialization, + _ => throw ArgumentError( + 'Unknown value for CXIdxEntityCXXTemplateKind: $value', + ), + }; +} + +final class CXIdxEntityInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int kindAsInt; + + CXIdxEntityKind get kind => CXIdxEntityKind.fromValue(kindAsInt); + set kind(CXIdxEntityKind value) => kindAsInt = value.value; + + @ffi.UnsignedInt() + external int templateKindAsInt; + + CXIdxEntityCXXTemplateKind get templateKind => + CXIdxEntityCXXTemplateKind.fromValue(templateKindAsInt); + set templateKind(CXIdxEntityCXXTemplateKind value) => + templateKindAsInt = value.value; + + @ffi.UnsignedInt() + external int langAsInt; + + CXIdxEntityLanguage get lang => CXIdxEntityLanguage.fromValue(langAsInt); + set lang(CXIdxEntityLanguage value) => langAsInt = value.value; + + external ffi.Pointer name; + + external ffi.Pointer USR; + + external CXCursor cursor; + + external ffi.Pointer> attributes; + + @ffi.UnsignedInt() + external int numAttributes; +} + +enum CXIdxEntityKind { + CXIdxEntity_Unexposed(0), + CXIdxEntity_Typedef(1), + CXIdxEntity_Function(2), + CXIdxEntity_Variable(3), + CXIdxEntity_Field(4), + CXIdxEntity_EnumConstant(5), + CXIdxEntity_ObjCClass(6), + CXIdxEntity_ObjCProtocol(7), + CXIdxEntity_ObjCCategory(8), + CXIdxEntity_ObjCInstanceMethod(9), + CXIdxEntity_ObjCClassMethod(10), + CXIdxEntity_ObjCProperty(11), + CXIdxEntity_ObjCIvar(12), + CXIdxEntity_Enum(13), + CXIdxEntity_Struct(14), + CXIdxEntity_Union(15), + CXIdxEntity_CXXClass(16), + CXIdxEntity_CXXNamespace(17), + CXIdxEntity_CXXNamespaceAlias(18), + CXIdxEntity_CXXStaticVariable(19), + CXIdxEntity_CXXStaticMethod(20), + CXIdxEntity_CXXInstanceMethod(21), + CXIdxEntity_CXXConstructor(22), + CXIdxEntity_CXXDestructor(23), + CXIdxEntity_CXXConversionFunction(24), + CXIdxEntity_CXXTypeAlias(25), + CXIdxEntity_CXXInterface(26); + + final int value; + const CXIdxEntityKind(this.value); + + static CXIdxEntityKind fromValue(int value) => switch (value) { + 0 => CXIdxEntity_Unexposed, + 1 => CXIdxEntity_Typedef, + 2 => CXIdxEntity_Function, + 3 => CXIdxEntity_Variable, + 4 => CXIdxEntity_Field, + 5 => CXIdxEntity_EnumConstant, + 6 => CXIdxEntity_ObjCClass, + 7 => CXIdxEntity_ObjCProtocol, + 8 => CXIdxEntity_ObjCCategory, + 9 => CXIdxEntity_ObjCInstanceMethod, + 10 => CXIdxEntity_ObjCClassMethod, + 11 => CXIdxEntity_ObjCProperty, + 12 => CXIdxEntity_ObjCIvar, + 13 => CXIdxEntity_Enum, + 14 => CXIdxEntity_Struct, + 15 => CXIdxEntity_Union, + 16 => CXIdxEntity_CXXClass, + 17 => CXIdxEntity_CXXNamespace, + 18 => CXIdxEntity_CXXNamespaceAlias, + 19 => CXIdxEntity_CXXStaticVariable, + 20 => CXIdxEntity_CXXStaticMethod, + 21 => CXIdxEntity_CXXInstanceMethod, + 22 => CXIdxEntity_CXXConstructor, + 23 => CXIdxEntity_CXXDestructor, + 24 => CXIdxEntity_CXXConversionFunction, + 25 => CXIdxEntity_CXXTypeAlias, + 26 => CXIdxEntity_CXXInterface, + _ => throw ArgumentError('Unknown value for CXIdxEntityKind: $value'), + }; +} + +enum CXIdxEntityLanguage { + CXIdxEntityLang_None(0), + CXIdxEntityLang_C(1), + CXIdxEntityLang_ObjC(2), + CXIdxEntityLang_CXX(3), + CXIdxEntityLang_Swift(4); + + final int value; + const CXIdxEntityLanguage(this.value); + + static CXIdxEntityLanguage fromValue(int value) => switch (value) { + 0 => CXIdxEntityLang_None, + 1 => CXIdxEntityLang_C, + 2 => CXIdxEntityLang_ObjC, + 3 => CXIdxEntityLang_CXX, + 4 => CXIdxEntityLang_Swift, + _ => throw ArgumentError('Unknown value for CXIdxEntityLanguage: $value'), + }; +} + +/// Data for IndexerCallbacks#indexEntityReference. +final class CXIdxEntityRefInfo extends ffi.Struct { + @ffi.UnsignedInt() + external int kindAsInt; + + CXIdxEntityRefKind get kind => CXIdxEntityRefKind.fromValue(kindAsInt); + set kind(CXIdxEntityRefKind value) => kindAsInt = value.value; + + /// Reference cursor. + external CXCursor cursor; + + external CXIdxLoc loc; + + /// The entity that gets referenced. + external ffi.Pointer referencedEntity; + + /// Immediate "parent" of the reference. For example: + external ffi.Pointer parentEntity; + + /// Lexical container context of the reference. + external ffi.Pointer container; + + /// Sets of symbol roles of the reference. + @ffi.UnsignedInt() + external int roleAsInt; + + CXSymbolRole get role => CXSymbolRole.fromValue(roleAsInt); + set role(CXSymbolRole value) => roleAsInt = value.value; +} + +/// Data for IndexerCallbacks#indexEntityReference. +enum CXIdxEntityRefKind { + /// The entity is referenced directly in user's code. + CXIdxEntityRef_Direct(1), + + /// An implicit reference, e.g. a reference of an Objective-C method via the + /// dot syntax. + CXIdxEntityRef_Implicit(2); + + final int value; + const CXIdxEntityRefKind(this.value); + + static CXIdxEntityRefKind fromValue(int value) => switch (value) { + 1 => CXIdxEntityRef_Direct, + 2 => CXIdxEntityRef_Implicit, + _ => throw ArgumentError('Unknown value for CXIdxEntityRefKind: $value'), + }; +} + +final class CXIdxIBOutletCollectionAttrInfo extends ffi.Struct { + external ffi.Pointer attrInfo; + + external ffi.Pointer objcClass; + + external CXCursor classCursor; + + external CXIdxLoc classLoc; +} + +/// Data for IndexerCallbacks#importedASTFile. +final class CXIdxImportedASTFileInfo extends ffi.Struct { + /// Top level AST file containing the imported PCH, module or submodule. + external CXFile file; + + /// The imported module or NULL if the AST file is a PCH. + external CXModule module; + + /// Location where the file is imported. Applicable only for modules. + external CXIdxLoc loc; + + /// Non-zero if an inclusion directive was automatically turned into a module + /// import. Applicable only for modules. + @ffi.Int() + external int isImplicit; +} + +/// Data for ppIncludedFile callback. +final class CXIdxIncludedFileInfo extends ffi.Struct { + /// Location of '#' in the #include/#import directive. + external CXIdxLoc hashLoc; + + /// Filename as written in the #include/#import directive. + external ffi.Pointer filename; + + /// The actual file that the #include/#import directive resolved to. + external CXFile file; + + @ffi.Int() + external int isImport; + + @ffi.Int() + external int isAngled; + + /// Non-zero if the directive was automatically turned into a module import. + @ffi.Int() + external int isModuleImport; +} + +/// Source location passed to index callbacks. +final class CXIdxLoc extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array> ptr_data; + + @ffi.UnsignedInt() + external int int_data; +} + +final class CXIdxObjCCategoryDeclInfo extends ffi.Struct { + external ffi.Pointer containerInfo; + + external ffi.Pointer objcClass; + + external CXCursor classCursor; + + external CXIdxLoc classLoc; + + external ffi.Pointer protocols; +} + +final class CXIdxObjCContainerDeclInfo extends ffi.Struct { + external ffi.Pointer declInfo; + + @ffi.UnsignedInt() + external int kindAsInt; + + CXIdxObjCContainerKind get kind => + CXIdxObjCContainerKind.fromValue(kindAsInt); + set kind(CXIdxObjCContainerKind value) => kindAsInt = value.value; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer declInfo, + required CXIdxObjCContainerKind kind, + }) => $allocator() + ..ref.declInfo = declInfo + ..ref.kind = kind; +} + +enum CXIdxObjCContainerKind { + CXIdxObjCContainer_ForwardRef(0), + CXIdxObjCContainer_Interface(1), + CXIdxObjCContainer_Implementation(2); + + final int value; + const CXIdxObjCContainerKind(this.value); + + static CXIdxObjCContainerKind fromValue(int value) => switch (value) { + 0 => CXIdxObjCContainer_ForwardRef, + 1 => CXIdxObjCContainer_Interface, + 2 => CXIdxObjCContainer_Implementation, + _ => throw ArgumentError( + 'Unknown value for CXIdxObjCContainerKind: $value', + ), + }; +} + +final class CXIdxObjCInterfaceDeclInfo extends ffi.Struct { + external ffi.Pointer containerInfo; + + external ffi.Pointer superInfo; + + external ffi.Pointer protocols; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer containerInfo, + required ffi.Pointer superInfo, + required ffi.Pointer protocols, + }) => $allocator() + ..ref.containerInfo = containerInfo + ..ref.superInfo = superInfo + ..ref.protocols = protocols; +} + +final class CXIdxObjCPropertyDeclInfo extends ffi.Struct { + external ffi.Pointer declInfo; + + external ffi.Pointer getter; + + external ffi.Pointer setter; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer declInfo, + required ffi.Pointer getter, + required ffi.Pointer setter, + }) => $allocator() + ..ref.declInfo = declInfo + ..ref.getter = getter + ..ref.setter = setter; +} + +final class CXIdxObjCProtocolRefInfo extends ffi.Struct { + external ffi.Pointer protocol; + + external CXCursor cursor; + + external CXIdxLoc loc; +} + +final class CXIdxObjCProtocolRefListInfo extends ffi.Struct { + external ffi.Pointer> protocols; + + @ffi.UnsignedInt() + external int numProtocols; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer> protocols, + required int numProtocols, + }) => $allocator() + ..ref.protocols = protocols + ..ref.numProtocols = numProtocols; +} + +/// Visitor invoked for each file in a translation unit (used with +/// clang_getInclusions()). +typedef CXInclusionVisitor = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + CXClientData client_data, + ) + > + >; + +/// An "index" that consists of a set of translation units that would typically +/// be linked together into an executable or library. +typedef CXIndex = ffi.Pointer; + +/// An indexing action/session, to be applied to one or multiple translation +/// units. +typedef CXIndexAction = ffi.Pointer; + +enum CXIndexOptFlags { + /// Used to indicate that no special indexing options are needed. + CXIndexOpt_None(0), + + /// Used to indicate that IndexerCallbacks#indexEntityReference should be + /// invoked for only one reference of an entity per source file that does not + /// also include a declaration/definition of the entity. + CXIndexOpt_SuppressRedundantRefs(1), + + /// Function-local symbols should be indexed. If this is not set + /// function-local symbols will be ignored. + CXIndexOpt_IndexFunctionLocalSymbols(2), + + /// Implicit function/class template instantiations should be indexed. If this + /// is not set, implicit instantiations will be ignored. + CXIndexOpt_IndexImplicitTemplateInstantiations(4), + + /// Suppress all compiler warnings when parsing for indexing. + CXIndexOpt_SuppressWarnings(8), + + /// Skip a function/method body that was already parsed during an indexing + /// session associated with a CXIndexAction object. Bodies in system headers + /// are always skipped. + CXIndexOpt_SkipParsedBodiesInSession(16); + + final int value; + const CXIndexOptFlags(this.value); + + static CXIndexOptFlags fromValue(int value) => switch (value) { + 0 => CXIndexOpt_None, + 1 => CXIndexOpt_SuppressRedundantRefs, + 2 => CXIndexOpt_IndexFunctionLocalSymbols, + 4 => CXIndexOpt_IndexImplicitTemplateInstantiations, + 8 => CXIndexOpt_SuppressWarnings, + 16 => CXIndexOpt_SkipParsedBodiesInSession, + _ => throw ArgumentError('Unknown value for CXIndexOptFlags: $value'), + }; +} + +/// Describe the "language" of the entity referred to by a cursor. +enum CXLanguageKind { + CXLanguage_Invalid(0), + CXLanguage_C(1), + CXLanguage_ObjC(2), + CXLanguage_CPlusPlus(3); + + final int value; + const CXLanguageKind(this.value); + + static CXLanguageKind fromValue(int value) => switch (value) { + 0 => CXLanguage_Invalid, + 1 => CXLanguage_C, + 2 => CXLanguage_ObjC, + 3 => CXLanguage_CPlusPlus, + _ => throw ArgumentError('Unknown value for CXLanguageKind: $value'), + }; +} + +/// Describe the linkage of the entity referred to by a cursor. +enum CXLinkageKind { + /// This value indicates that no linkage information is available for a + /// provided CXCursor. + CXLinkage_Invalid(0), + + /// This is the linkage for variables, parameters, and so on that have + /// automatic storage. This covers normal (non-extern) local variables. + CXLinkage_NoLinkage(1), + + /// This is the linkage for static variables and static functions. + CXLinkage_Internal(2), + + /// This is the linkage for entities with external linkage that live in C++ + /// anonymous namespaces. + CXLinkage_UniqueExternal(3), + + /// This is the linkage for entities with true, external linkage. + CXLinkage_External(4); + + final int value; + const CXLinkageKind(this.value); + + static CXLinkageKind fromValue(int value) => switch (value) { + 0 => CXLinkage_Invalid, + 1 => CXLinkage_NoLinkage, + 2 => CXLinkage_Internal, + 3 => CXLinkage_UniqueExternal, + 4 => CXLinkage_External, + _ => throw ArgumentError('Unknown value for CXLinkageKind: $value'), + }; +} + +/// Describes the kind of error that occurred (if any) in a call to +/// clang_loadDiagnostics. +enum CXLoadDiag_Error { + /// Indicates that no error occurred. + CXLoadDiag_None(0), + + /// Indicates that an unknown error occurred while attempting to deserialize + /// diagnostics. + CXLoadDiag_Unknown(1), + + /// Indicates that the file containing the serialized diagnostics could not be + /// opened. + CXLoadDiag_CannotLoad(2), + + /// Indicates that the serialized diagnostics file is invalid or corrupt. + CXLoadDiag_InvalidFile(3); + + final int value; + const CXLoadDiag_Error(this.value); + + static CXLoadDiag_Error fromValue(int value) => switch (value) { + 0 => CXLoadDiag_None, + 1 => CXLoadDiag_Unknown, + 2 => CXLoadDiag_CannotLoad, + 3 => CXLoadDiag_InvalidFile, + _ => throw ArgumentError('Unknown value for CXLoadDiag_Error: $value'), + }; +} + +/// The functions in this group provide access to information about modules. +typedef CXModule = ffi.Pointer; + +/// Object encapsulating information about a module.map file. +typedef CXModuleMapDescriptor = ffi.Pointer; + +final class CXModuleMapDescriptorImpl extends ffi.Opaque {} + +enum CXNameRefFlags { + /// Include the nested-name-specifier, e.g. Foo:: in x.Foo::y, in the range. + CXNameRange_WantQualifier(1), + + /// Include the explicit template arguments, e.g. in x.f, in the + /// range. + CXNameRange_WantTemplateArgs(2), + + /// If the name is non-contiguous, return the full spanning range. + CXNameRange_WantSinglePiece(4); + + final int value; + const CXNameRefFlags(this.value); + + static CXNameRefFlags fromValue(int value) => switch (value) { + 1 => CXNameRange_WantQualifier, + 2 => CXNameRange_WantTemplateArgs, + 4 => CXNameRange_WantSinglePiece, + _ => throw ArgumentError('Unknown value for CXNameRefFlags: $value'), + }; +} + +/// 'Qualifiers' written next to the return and parameter types in Objective-C +/// method declarations. +enum CXObjCDeclQualifierKind { + CXObjCDeclQualifier_None(0), + CXObjCDeclQualifier_In(1), + CXObjCDeclQualifier_Inout(2), + CXObjCDeclQualifier_Out(4), + CXObjCDeclQualifier_Bycopy(8), + CXObjCDeclQualifier_Byref(16), + CXObjCDeclQualifier_Oneway(32); + + final int value; + const CXObjCDeclQualifierKind(this.value); + + static CXObjCDeclQualifierKind fromValue(int value) => switch (value) { + 0 => CXObjCDeclQualifier_None, + 1 => CXObjCDeclQualifier_In, + 2 => CXObjCDeclQualifier_Inout, + 4 => CXObjCDeclQualifier_Out, + 8 => CXObjCDeclQualifier_Bycopy, + 16 => CXObjCDeclQualifier_Byref, + 32 => CXObjCDeclQualifier_Oneway, + _ => throw ArgumentError( + 'Unknown value for CXObjCDeclQualifierKind: $value', + ), + }; +} + +/// Property attributes for a CXCursor_ObjCPropertyDecl. +enum CXObjCPropertyAttrKind { + CXObjCPropertyAttr_noattr(0), + CXObjCPropertyAttr_readonly(1), + CXObjCPropertyAttr_getter(2), + CXObjCPropertyAttr_assign(4), + CXObjCPropertyAttr_readwrite(8), + CXObjCPropertyAttr_retain(16), + CXObjCPropertyAttr_copy(32), + CXObjCPropertyAttr_nonatomic(64), + CXObjCPropertyAttr_setter(128), + CXObjCPropertyAttr_atomic(256), + CXObjCPropertyAttr_weak(512), + CXObjCPropertyAttr_strong(1024), + CXObjCPropertyAttr_unsafe_unretained(2048), + CXObjCPropertyAttr_class(4096); + + final int value; + const CXObjCPropertyAttrKind(this.value); + + static CXObjCPropertyAttrKind fromValue(int value) => switch (value) { + 0 => CXObjCPropertyAttr_noattr, + 1 => CXObjCPropertyAttr_readonly, + 2 => CXObjCPropertyAttr_getter, + 4 => CXObjCPropertyAttr_assign, + 8 => CXObjCPropertyAttr_readwrite, + 16 => CXObjCPropertyAttr_retain, + 32 => CXObjCPropertyAttr_copy, + 64 => CXObjCPropertyAttr_nonatomic, + 128 => CXObjCPropertyAttr_setter, + 256 => CXObjCPropertyAttr_atomic, + 512 => CXObjCPropertyAttr_weak, + 1024 => CXObjCPropertyAttr_strong, + 2048 => CXObjCPropertyAttr_unsafe_unretained, + 4096 => CXObjCPropertyAttr_class, + _ => throw ArgumentError( + 'Unknown value for CXObjCPropertyAttrKind: $value', + ), + }; +} + +/// Describes the availability of a given entity on a particular platform, e.g., +/// a particular class might only be available on Mac OS 10.7 or newer. +final class CXPlatformAvailability extends ffi.Struct { + /// A string that describes the platform for which this structure provides + /// availability information. + external CXString Platform; + + /// The version number in which this entity was introduced. + external CXVersion Introduced; + + /// The version number in which this entity was deprecated (but is still + /// available). + external CXVersion Deprecated; + + /// The version number in which this entity was obsoleted, and therefore is no + /// longer available. + external CXVersion Obsoleted; + + /// Whether the entity is unconditionally unavailable on this platform. + @ffi.Int() + external int Unavailable; + + /// An optional message to provide to a user of this API, e.g., to suggest + /// replacement APIs. + external CXString Message; +} + +/// Opaque pointer representing a policy that controls pretty printing for +/// clang_getCursorPrettyPrinted. +typedef CXPrintingPolicy = ffi.Pointer; + +/// Properties for the printing policy. +enum CXPrintingPolicyProperty { + CXPrintingPolicy_Indentation(0), + CXPrintingPolicy_SuppressSpecifiers(1), + CXPrintingPolicy_SuppressTagKeyword(2), + CXPrintingPolicy_IncludeTagDefinition(3), + CXPrintingPolicy_SuppressScope(4), + CXPrintingPolicy_SuppressUnwrittenScope(5), + CXPrintingPolicy_SuppressInitializers(6), + CXPrintingPolicy_ConstantArraySizeAsWritten(7), + CXPrintingPolicy_AnonymousTagLocations(8), + CXPrintingPolicy_SuppressStrongLifetime(9), + CXPrintingPolicy_SuppressLifetimeQualifiers(10), + CXPrintingPolicy_SuppressTemplateArgsInCXXConstructors(11), + CXPrintingPolicy_Bool(12), + CXPrintingPolicy_Restrict(13), + CXPrintingPolicy_Alignof(14), + CXPrintingPolicy_UnderscoreAlignof(15), + CXPrintingPolicy_UseVoidForZeroParams(16), + CXPrintingPolicy_TerseOutput(17), + CXPrintingPolicy_PolishForDeclaration(18), + CXPrintingPolicy_Half(19), + CXPrintingPolicy_MSWChar(20), + CXPrintingPolicy_IncludeNewlines(21), + CXPrintingPolicy_MSVCFormatting(22), + CXPrintingPolicy_ConstantsAsWritten(23), + CXPrintingPolicy_SuppressImplicitBase(24), + CXPrintingPolicy_FullyQualifiedName(25); + + static const CXPrintingPolicy_LastProperty = + CXPrintingPolicy_FullyQualifiedName; + + final int value; + const CXPrintingPolicyProperty(this.value); + + static CXPrintingPolicyProperty fromValue(int value) => switch (value) { + 0 => CXPrintingPolicy_Indentation, + 1 => CXPrintingPolicy_SuppressSpecifiers, + 2 => CXPrintingPolicy_SuppressTagKeyword, + 3 => CXPrintingPolicy_IncludeTagDefinition, + 4 => CXPrintingPolicy_SuppressScope, + 5 => CXPrintingPolicy_SuppressUnwrittenScope, + 6 => CXPrintingPolicy_SuppressInitializers, + 7 => CXPrintingPolicy_ConstantArraySizeAsWritten, + 8 => CXPrintingPolicy_AnonymousTagLocations, + 9 => CXPrintingPolicy_SuppressStrongLifetime, + 10 => CXPrintingPolicy_SuppressLifetimeQualifiers, + 11 => CXPrintingPolicy_SuppressTemplateArgsInCXXConstructors, + 12 => CXPrintingPolicy_Bool, + 13 => CXPrintingPolicy_Restrict, + 14 => CXPrintingPolicy_Alignof, + 15 => CXPrintingPolicy_UnderscoreAlignof, + 16 => CXPrintingPolicy_UseVoidForZeroParams, + 17 => CXPrintingPolicy_TerseOutput, + 18 => CXPrintingPolicy_PolishForDeclaration, + 19 => CXPrintingPolicy_Half, + 20 => CXPrintingPolicy_MSWChar, + 21 => CXPrintingPolicy_IncludeNewlines, + 22 => CXPrintingPolicy_MSVCFormatting, + 23 => CXPrintingPolicy_ConstantsAsWritten, + 24 => CXPrintingPolicy_SuppressImplicitBase, + 25 => CXPrintingPolicy_FullyQualifiedName, + _ => throw ArgumentError( + 'Unknown value for CXPrintingPolicyProperty: $value', + ), + }; + + @override + String toString() { + if (this == CXPrintingPolicy_FullyQualifiedName) + return "CXPrintingPolicyProperty.CXPrintingPolicy_FullyQualifiedName, CXPrintingPolicyProperty.CXPrintingPolicy_LastProperty"; + return super.toString(); + } +} + +enum CXRefQualifierKind { + /// No ref-qualifier was provided. + CXRefQualifier_None(0), + + /// An lvalue ref-qualifier was provided ( &). + CXRefQualifier_LValue(1), + + /// An rvalue ref-qualifier was provided ( &&). + CXRefQualifier_RValue(2); + + final int value; + const CXRefQualifierKind(this.value); + + static CXRefQualifierKind fromValue(int value) => switch (value) { + 0 => CXRefQualifier_None, + 1 => CXRefQualifier_LValue, + 2 => CXRefQualifier_RValue, + _ => throw ArgumentError('Unknown value for CXRefQualifierKind: $value'), + }; +} + +/// A remapping of original source files and their translated files. +typedef CXRemapping = ffi.Pointer; + +/// Flags that control the reparsing of translation units. +enum CXReparse_Flags { + /// Used to indicate that no special reparsing options are needed. + CXReparse_None(0); + + final int value; + const CXReparse_Flags(this.value); + + static CXReparse_Flags fromValue(int value) => switch (value) { + 0 => CXReparse_None, + _ => throw ArgumentError('Unknown value for CXReparse_Flags: $value'), + }; +} + +enum CXResult { + /// Function returned successfully. + CXResult_Success(0), + + /// One of the parameters was invalid for the function. + CXResult_Invalid(1), + + /// The function was terminated by a callback (e.g. it returned CXVisit_Break) + CXResult_VisitBreak(2); + + final int value; + const CXResult(this.value); + + static CXResult fromValue(int value) => switch (value) { + 0 => CXResult_Success, + 1 => CXResult_Invalid, + 2 => CXResult_VisitBreak, + _ => throw ArgumentError('Unknown value for CXResult: $value'), + }; +} + +/// Describes the kind of error that occurred (if any) in a call to +/// clang_saveTranslationUnit(). +enum CXSaveError { + /// Indicates that no error occurred while saving a translation unit. + CXSaveError_None(0), + + /// Indicates that an unknown error occurred while attempting to save the + /// file. + CXSaveError_Unknown(1), + + /// Indicates that errors during translation prevented this attempt to save + /// the translation unit. + CXSaveError_TranslationErrors(2), + + /// Indicates that the translation unit to be saved was somehow invalid (e.g., + /// NULL). + CXSaveError_InvalidTU(3); + + final int value; + const CXSaveError(this.value); + + static CXSaveError fromValue(int value) => switch (value) { + 0 => CXSaveError_None, + 1 => CXSaveError_Unknown, + 2 => CXSaveError_TranslationErrors, + 3 => CXSaveError_InvalidTU, + _ => throw ArgumentError('Unknown value for CXSaveError: $value'), + }; +} + +/// Flags that control how translation units are saved. +enum CXSaveTranslationUnit_Flags { + /// Used to indicate that no special saving options are needed. + CXSaveTranslationUnit_None(0); + + final int value; + const CXSaveTranslationUnit_Flags(this.value); + + static CXSaveTranslationUnit_Flags fromValue(int value) => switch (value) { + 0 => CXSaveTranslationUnit_None, + _ => throw ArgumentError( + 'Unknown value for CXSaveTranslationUnit_Flags: $value', + ), + }; +} + +/// Identifies a specific source location within a translation unit. +final class CXSourceLocation extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array> ptr_data; + + @ffi.UnsignedInt() + external int int_data; +} + +/// Identifies a half-open character range in the source code. +final class CXSourceRange extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array> ptr_data; + + @ffi.UnsignedInt() + external int begin_int_data; + + @ffi.UnsignedInt() + external int end_int_data; +} + +/// Identifies an array of ranges. +final class CXSourceRangeList extends ffi.Struct { + /// The number of ranges in the ranges array. + @ffi.UnsignedInt() + external int count; + + /// An array of CXSourceRanges. + external ffi.Pointer ranges; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int count, + required ffi.Pointer ranges, + }) => $allocator() + ..ref.count = count + ..ref.ranges = ranges; +} + +/// A character string. +final class CXString extends ffi.Struct { + external ffi.Pointer data; + + @ffi.UnsignedInt() + external int private_flags; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer data, + required int private_flags, + }) => $allocator() + ..ref.data = data + ..ref.private_flags = private_flags; +} + +final class CXStringSet extends ffi.Struct { + external ffi.Pointer Strings; + + @ffi.UnsignedInt() + external int Count; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer Strings, + required int Count, + }) => $allocator() + ..ref.Strings = Strings + ..ref.Count = Count; +} + +/// Roles that are attributed to symbol occurrences. +enum CXSymbolRole { + CXSymbolRole_None(0), + CXSymbolRole_Declaration(1), + CXSymbolRole_Definition(2), + CXSymbolRole_Reference(4), + CXSymbolRole_Read(8), + CXSymbolRole_Write(16), + CXSymbolRole_Call(32), + CXSymbolRole_Dynamic(64), + CXSymbolRole_AddressOf(128), + CXSymbolRole_Implicit(256); + + final int value; + const CXSymbolRole(this.value); + + static CXSymbolRole fromValue(int value) => switch (value) { + 0 => CXSymbolRole_None, + 1 => CXSymbolRole_Declaration, + 2 => CXSymbolRole_Definition, + 4 => CXSymbolRole_Reference, + 8 => CXSymbolRole_Read, + 16 => CXSymbolRole_Write, + 32 => CXSymbolRole_Call, + 64 => CXSymbolRole_Dynamic, + 128 => CXSymbolRole_AddressOf, + 256 => CXSymbolRole_Implicit, + _ => throw ArgumentError('Unknown value for CXSymbolRole: $value'), + }; +} + +/// Describe the "thread-local storage (TLS) kind" of the declaration referred +/// to by a cursor. +enum CXTLSKind { + CXTLS_None(0), + CXTLS_Dynamic(1), + CXTLS_Static(2); + + final int value; + const CXTLSKind(this.value); + + static CXTLSKind fromValue(int value) => switch (value) { + 0 => CXTLS_None, + 1 => CXTLS_Dynamic, + 2 => CXTLS_Static, + _ => throw ArgumentError('Unknown value for CXTLSKind: $value'), + }; +} + +/// The memory usage of a CXTranslationUnit, broken into categories. +final class CXTUResourceUsage extends ffi.Struct { + external ffi.Pointer data; + + @ffi.UnsignedInt() + external int numEntries; + + external ffi.Pointer entries; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer data, + required int numEntries, + required ffi.Pointer entries, + }) => $allocator() + ..ref.data = data + ..ref.numEntries = numEntries + ..ref.entries = entries; +} + +final class CXTUResourceUsageEntry extends ffi.Struct { + @ffi.UnsignedInt() + external int kindAsInt; + + CXTUResourceUsageKind get kind => CXTUResourceUsageKind.fromValue(kindAsInt); + set kind(CXTUResourceUsageKind value) => kindAsInt = value.value; + + @ffi.UnsignedLong() + external int amount; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required CXTUResourceUsageKind kind, + required int amount, + }) => $allocator() + ..ref.kind = kind + ..ref.amount = amount; +} + +/// Categorizes how memory is being used by a translation unit. +enum CXTUResourceUsageKind { + CXTUResourceUsage_AST(1), + CXTUResourceUsage_Identifiers(2), + CXTUResourceUsage_Selectors(3), + CXTUResourceUsage_GlobalCompletionResults(4), + CXTUResourceUsage_SourceManagerContentCache(5), + CXTUResourceUsage_AST_SideTables(6), + CXTUResourceUsage_SourceManager_Membuffer_Malloc(7), + CXTUResourceUsage_SourceManager_Membuffer_MMap(8), + CXTUResourceUsage_ExternalASTSource_Membuffer_Malloc(9), + CXTUResourceUsage_ExternalASTSource_Membuffer_MMap(10), + CXTUResourceUsage_Preprocessor(11), + CXTUResourceUsage_PreprocessingRecord(12), + CXTUResourceUsage_SourceManager_DataStructures(13), + CXTUResourceUsage_Preprocessor_HeaderSearch(14); + + static const CXTUResourceUsage_MEMORY_IN_BYTES_BEGIN = CXTUResourceUsage_AST; + static const CXTUResourceUsage_MEMORY_IN_BYTES_END = + CXTUResourceUsage_Preprocessor_HeaderSearch; + static const CXTUResourceUsage_First = CXTUResourceUsage_AST; + static const CXTUResourceUsage_Last = + CXTUResourceUsage_Preprocessor_HeaderSearch; + + final int value; + const CXTUResourceUsageKind(this.value); + + static CXTUResourceUsageKind fromValue(int value) => switch (value) { + 1 => CXTUResourceUsage_AST, + 2 => CXTUResourceUsage_Identifiers, + 3 => CXTUResourceUsage_Selectors, + 4 => CXTUResourceUsage_GlobalCompletionResults, + 5 => CXTUResourceUsage_SourceManagerContentCache, + 6 => CXTUResourceUsage_AST_SideTables, + 7 => CXTUResourceUsage_SourceManager_Membuffer_Malloc, + 8 => CXTUResourceUsage_SourceManager_Membuffer_MMap, + 9 => CXTUResourceUsage_ExternalASTSource_Membuffer_Malloc, + 10 => CXTUResourceUsage_ExternalASTSource_Membuffer_MMap, + 11 => CXTUResourceUsage_Preprocessor, + 12 => CXTUResourceUsage_PreprocessingRecord, + 13 => CXTUResourceUsage_SourceManager_DataStructures, + 14 => CXTUResourceUsage_Preprocessor_HeaderSearch, + _ => throw ArgumentError('Unknown value for CXTUResourceUsageKind: $value'), + }; + + @override + String toString() { + if (this == CXTUResourceUsage_AST) + return "CXTUResourceUsageKind.CXTUResourceUsage_AST, CXTUResourceUsageKind.CXTUResourceUsage_MEMORY_IN_BYTES_BEGIN, CXTUResourceUsageKind.CXTUResourceUsage_First"; + if (this == CXTUResourceUsage_Preprocessor_HeaderSearch) + return "CXTUResourceUsageKind.CXTUResourceUsage_Preprocessor_HeaderSearch, CXTUResourceUsageKind.CXTUResourceUsage_MEMORY_IN_BYTES_END, CXTUResourceUsageKind.CXTUResourceUsage_Last"; + return super.toString(); + } +} + +/// An opaque type representing target information for a given translation unit. +typedef CXTargetInfo = ffi.Pointer; + +final class CXTargetInfoImpl extends ffi.Opaque {} + +/// Describes the kind of a template argument. +enum CXTemplateArgumentKind { + CXTemplateArgumentKind_Null(0), + CXTemplateArgumentKind_Type(1), + CXTemplateArgumentKind_Declaration(2), + CXTemplateArgumentKind_NullPtr(3), + CXTemplateArgumentKind_Integral(4), + CXTemplateArgumentKind_Template(5), + CXTemplateArgumentKind_TemplateExpansion(6), + CXTemplateArgumentKind_Expression(7), + CXTemplateArgumentKind_Pack(8), + CXTemplateArgumentKind_Invalid(9); + + final int value; + const CXTemplateArgumentKind(this.value); + + static CXTemplateArgumentKind fromValue(int value) => switch (value) { + 0 => CXTemplateArgumentKind_Null, + 1 => CXTemplateArgumentKind_Type, + 2 => CXTemplateArgumentKind_Declaration, + 3 => CXTemplateArgumentKind_NullPtr, + 4 => CXTemplateArgumentKind_Integral, + 5 => CXTemplateArgumentKind_Template, + 6 => CXTemplateArgumentKind_TemplateExpansion, + 7 => CXTemplateArgumentKind_Expression, + 8 => CXTemplateArgumentKind_Pack, + 9 => CXTemplateArgumentKind_Invalid, + _ => throw ArgumentError( + 'Unknown value for CXTemplateArgumentKind: $value', + ), + }; +} + +/// Describes a single preprocessing token. +final class CXToken extends ffi.Struct { + @ffi.Array.multi([4]) + external ffi.Array int_data; + + external ffi.Pointer ptr_data; +} + +/// Describes a kind of token. +enum CXTokenKind { + /// A token that contains some kind of punctuation. + CXToken_Punctuation(0), + + /// A language keyword. + CXToken_Keyword(1), + + /// An identifier (that is not a keyword). + CXToken_Identifier(2), + + /// A numeric, string, or character literal. + CXToken_Literal(3), + + /// A comment. + CXToken_Comment(4); + + final int value; + const CXTokenKind(this.value); + + static CXTokenKind fromValue(int value) => switch (value) { + 0 => CXToken_Punctuation, + 1 => CXToken_Keyword, + 2 => CXToken_Identifier, + 3 => CXToken_Literal, + 4 => CXToken_Comment, + _ => throw ArgumentError('Unknown value for CXTokenKind: $value'), + }; +} + +/// A single translation unit, which resides in an index. +typedef CXTranslationUnit = ffi.Pointer; + +final class CXTranslationUnitImpl extends ffi.Opaque {} + +/// Flags that control the creation of translation units. +enum CXTranslationUnit_Flags { + /// Used to indicate that no special translation-unit options are needed. + CXTranslationUnit_None(0), + + /// Used to indicate that the parser should construct a "detailed" + /// preprocessing record, including all macro definitions and instantiations. + CXTranslationUnit_DetailedPreprocessingRecord(1), + + /// Used to indicate that the translation unit is incomplete. + CXTranslationUnit_Incomplete(2), + + /// Used to indicate that the translation unit should be built with an + /// implicit precompiled header for the preamble. + CXTranslationUnit_PrecompiledPreamble(4), + + /// Used to indicate that the translation unit should cache some + /// code-completion results with each reparse of the source file. + CXTranslationUnit_CacheCompletionResults(8), + + /// Used to indicate that the translation unit will be serialized with + /// clang_saveTranslationUnit. + CXTranslationUnit_ForSerialization(16), + + /// DEPRECATED: Enabled chained precompiled preambles in C++. + CXTranslationUnit_CXXChainedPCH(32), + + /// Used to indicate that function/method bodies should be skipped while + /// parsing. + CXTranslationUnit_SkipFunctionBodies(64), + + /// Used to indicate that brief documentation comments should be included into + /// the set of code completions returned from this translation unit. + CXTranslationUnit_IncludeBriefCommentsInCodeCompletion(128), + + /// Used to indicate that the precompiled preamble should be created on the + /// first parse. Otherwise it will be created on the first reparse. This + /// trades runtime on the first parse (serializing the preamble takes time) + /// for reduced runtime on the second parse (can now reuse the preamble). + CXTranslationUnit_CreatePreambleOnFirstParse(256), + + /// Do not stop processing when fatal errors are encountered. + CXTranslationUnit_KeepGoing(512), + + /// Sets the preprocessor in a mode for parsing a single file only. + CXTranslationUnit_SingleFileParse(1024), + + /// Used in combination with CXTranslationUnit_SkipFunctionBodies to constrain + /// the skipping of function bodies to the preamble. + CXTranslationUnit_LimitSkipFunctionBodiesToPreamble(2048), + + /// Used to indicate that attributed types should be included in CXType. + CXTranslationUnit_IncludeAttributedTypes(4096), + + /// Used to indicate that implicit attributes should be visited. + CXTranslationUnit_VisitImplicitAttributes(8192), + + /// Used to indicate that non-errors from included files should be ignored. + CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles(16384), + + /// Tells the preprocessor not to skip excluded conditional blocks. + CXTranslationUnit_RetainExcludedConditionalBlocks(32768); + + final int value; + const CXTranslationUnit_Flags(this.value); + + static CXTranslationUnit_Flags fromValue(int value) => switch (value) { + 0 => CXTranslationUnit_None, + 1 => CXTranslationUnit_DetailedPreprocessingRecord, + 2 => CXTranslationUnit_Incomplete, + 4 => CXTranslationUnit_PrecompiledPreamble, + 8 => CXTranslationUnit_CacheCompletionResults, + 16 => CXTranslationUnit_ForSerialization, + 32 => CXTranslationUnit_CXXChainedPCH, + 64 => CXTranslationUnit_SkipFunctionBodies, + 128 => CXTranslationUnit_IncludeBriefCommentsInCodeCompletion, + 256 => CXTranslationUnit_CreatePreambleOnFirstParse, + 512 => CXTranslationUnit_KeepGoing, + 1024 => CXTranslationUnit_SingleFileParse, + 2048 => CXTranslationUnit_LimitSkipFunctionBodiesToPreamble, + 4096 => CXTranslationUnit_IncludeAttributedTypes, + 8192 => CXTranslationUnit_VisitImplicitAttributes, + 16384 => CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles, + 32768 => CXTranslationUnit_RetainExcludedConditionalBlocks, + _ => throw ArgumentError( + 'Unknown value for CXTranslationUnit_Flags: $value', + ), + }; +} + +/// The type of an element in the abstract syntax tree. +final class CXType extends ffi.Struct { + @ffi.UnsignedInt() + external int kindAsInt; + + CXTypeKind get kind => CXTypeKind.fromValue(kindAsInt); + set kind(CXTypeKind value) => kindAsInt = value.value; + + @ffi.Array.multi([2]) + external ffi.Array> data; +} + +/// Describes the kind of type +enum CXTypeKind { + /// Represents an invalid type (e.g., where no type is available). + CXType_Invalid(0), + + /// A type whose specific kind is not exposed via this interface. + CXType_Unexposed(1), + CXType_Void(2), + CXType_Bool(3), + CXType_Char_U(4), + CXType_UChar(5), + CXType_Char16(6), + CXType_Char32(7), + CXType_UShort(8), + CXType_UInt(9), + CXType_ULong(10), + CXType_ULongLong(11), + CXType_UInt128(12), + CXType_Char_S(13), + CXType_SChar(14), + CXType_WChar(15), + CXType_Short(16), + CXType_Int(17), + CXType_Long(18), + CXType_LongLong(19), + CXType_Int128(20), + CXType_Float(21), + CXType_Double(22), + CXType_LongDouble(23), + CXType_NullPtr(24), + CXType_Overload(25), + CXType_Dependent(26), + CXType_ObjCId(27), + CXType_ObjCClass(28), + CXType_ObjCSel(29), + CXType_Float128(30), + CXType_Half(31), + CXType_Float16(32), + CXType_ShortAccum(33), + CXType_Accum(34), + CXType_LongAccum(35), + CXType_UShortAccum(36), + CXType_UAccum(37), + CXType_ULongAccum(38), + CXType_Complex(100), + CXType_Pointer(101), + CXType_BlockPointer(102), + CXType_LValueReference(103), + CXType_RValueReference(104), + CXType_Record(105), + CXType_Enum(106), + CXType_Typedef(107), + CXType_ObjCInterface(108), + CXType_ObjCObjectPointer(109), + CXType_FunctionNoProto(110), + CXType_FunctionProto(111), + CXType_ConstantArray(112), + CXType_Vector(113), + CXType_IncompleteArray(114), + CXType_VariableArray(115), + CXType_DependentSizedArray(116), + CXType_MemberPointer(117), + CXType_Auto(118), + + /// Represents a type that was referred to using an elaborated type keyword. + CXType_Elaborated(119), + CXType_Pipe(120), + CXType_OCLImage1dRO(121), + CXType_OCLImage1dArrayRO(122), + CXType_OCLImage1dBufferRO(123), + CXType_OCLImage2dRO(124), + CXType_OCLImage2dArrayRO(125), + CXType_OCLImage2dDepthRO(126), + CXType_OCLImage2dArrayDepthRO(127), + CXType_OCLImage2dMSAARO(128), + CXType_OCLImage2dArrayMSAARO(129), + CXType_OCLImage2dMSAADepthRO(130), + CXType_OCLImage2dArrayMSAADepthRO(131), + CXType_OCLImage3dRO(132), + CXType_OCLImage1dWO(133), + CXType_OCLImage1dArrayWO(134), + CXType_OCLImage1dBufferWO(135), + CXType_OCLImage2dWO(136), + CXType_OCLImage2dArrayWO(137), + CXType_OCLImage2dDepthWO(138), + CXType_OCLImage2dArrayDepthWO(139), + CXType_OCLImage2dMSAAWO(140), + CXType_OCLImage2dArrayMSAAWO(141), + CXType_OCLImage2dMSAADepthWO(142), + CXType_OCLImage2dArrayMSAADepthWO(143), + CXType_OCLImage3dWO(144), + CXType_OCLImage1dRW(145), + CXType_OCLImage1dArrayRW(146), + CXType_OCLImage1dBufferRW(147), + CXType_OCLImage2dRW(148), + CXType_OCLImage2dArrayRW(149), + CXType_OCLImage2dDepthRW(150), + CXType_OCLImage2dArrayDepthRW(151), + CXType_OCLImage2dMSAARW(152), + CXType_OCLImage2dArrayMSAARW(153), + CXType_OCLImage2dMSAADepthRW(154), + CXType_OCLImage2dArrayMSAADepthRW(155), + CXType_OCLImage3dRW(156), + CXType_OCLSampler(157), + CXType_OCLEvent(158), + CXType_OCLQueue(159), + CXType_OCLReserveID(160), + CXType_ObjCObject(161), + CXType_ObjCTypeParam(162), + CXType_Attributed(163), + CXType_OCLIntelSubgroupAVCMcePayload(164), + CXType_OCLIntelSubgroupAVCImePayload(165), + CXType_OCLIntelSubgroupAVCRefPayload(166), + CXType_OCLIntelSubgroupAVCSicPayload(167), + CXType_OCLIntelSubgroupAVCMceResult(168), + CXType_OCLIntelSubgroupAVCImeResult(169), + CXType_OCLIntelSubgroupAVCRefResult(170), + CXType_OCLIntelSubgroupAVCSicResult(171), + CXType_OCLIntelSubgroupAVCImeResultSingleRefStreamout(172), + CXType_OCLIntelSubgroupAVCImeResultDualRefStreamout(173), + CXType_OCLIntelSubgroupAVCImeSingleRefStreamin(174), + CXType_OCLIntelSubgroupAVCImeDualRefStreamin(175), + CXType_ExtVector(176); + + static const CXType_FirstBuiltin = CXType_Void; + static const CXType_LastBuiltin = CXType_ULongAccum; + + final int value; + const CXTypeKind(this.value); + + static CXTypeKind fromValue(int value) => switch (value) { + 0 => CXType_Invalid, + 1 => CXType_Unexposed, + 2 => CXType_Void, + 3 => CXType_Bool, + 4 => CXType_Char_U, + 5 => CXType_UChar, + 6 => CXType_Char16, + 7 => CXType_Char32, + 8 => CXType_UShort, + 9 => CXType_UInt, + 10 => CXType_ULong, + 11 => CXType_ULongLong, + 12 => CXType_UInt128, + 13 => CXType_Char_S, + 14 => CXType_SChar, + 15 => CXType_WChar, + 16 => CXType_Short, + 17 => CXType_Int, + 18 => CXType_Long, + 19 => CXType_LongLong, + 20 => CXType_Int128, + 21 => CXType_Float, + 22 => CXType_Double, + 23 => CXType_LongDouble, + 24 => CXType_NullPtr, + 25 => CXType_Overload, + 26 => CXType_Dependent, + 27 => CXType_ObjCId, + 28 => CXType_ObjCClass, + 29 => CXType_ObjCSel, + 30 => CXType_Float128, + 31 => CXType_Half, + 32 => CXType_Float16, + 33 => CXType_ShortAccum, + 34 => CXType_Accum, + 35 => CXType_LongAccum, + 36 => CXType_UShortAccum, + 37 => CXType_UAccum, + 38 => CXType_ULongAccum, + 100 => CXType_Complex, + 101 => CXType_Pointer, + 102 => CXType_BlockPointer, + 103 => CXType_LValueReference, + 104 => CXType_RValueReference, + 105 => CXType_Record, + 106 => CXType_Enum, + 107 => CXType_Typedef, + 108 => CXType_ObjCInterface, + 109 => CXType_ObjCObjectPointer, + 110 => CXType_FunctionNoProto, + 111 => CXType_FunctionProto, + 112 => CXType_ConstantArray, + 113 => CXType_Vector, + 114 => CXType_IncompleteArray, + 115 => CXType_VariableArray, + 116 => CXType_DependentSizedArray, + 117 => CXType_MemberPointer, + 118 => CXType_Auto, + 119 => CXType_Elaborated, + 120 => CXType_Pipe, + 121 => CXType_OCLImage1dRO, + 122 => CXType_OCLImage1dArrayRO, + 123 => CXType_OCLImage1dBufferRO, + 124 => CXType_OCLImage2dRO, + 125 => CXType_OCLImage2dArrayRO, + 126 => CXType_OCLImage2dDepthRO, + 127 => CXType_OCLImage2dArrayDepthRO, + 128 => CXType_OCLImage2dMSAARO, + 129 => CXType_OCLImage2dArrayMSAARO, + 130 => CXType_OCLImage2dMSAADepthRO, + 131 => CXType_OCLImage2dArrayMSAADepthRO, + 132 => CXType_OCLImage3dRO, + 133 => CXType_OCLImage1dWO, + 134 => CXType_OCLImage1dArrayWO, + 135 => CXType_OCLImage1dBufferWO, + 136 => CXType_OCLImage2dWO, + 137 => CXType_OCLImage2dArrayWO, + 138 => CXType_OCLImage2dDepthWO, + 139 => CXType_OCLImage2dArrayDepthWO, + 140 => CXType_OCLImage2dMSAAWO, + 141 => CXType_OCLImage2dArrayMSAAWO, + 142 => CXType_OCLImage2dMSAADepthWO, + 143 => CXType_OCLImage2dArrayMSAADepthWO, + 144 => CXType_OCLImage3dWO, + 145 => CXType_OCLImage1dRW, + 146 => CXType_OCLImage1dArrayRW, + 147 => CXType_OCLImage1dBufferRW, + 148 => CXType_OCLImage2dRW, + 149 => CXType_OCLImage2dArrayRW, + 150 => CXType_OCLImage2dDepthRW, + 151 => CXType_OCLImage2dArrayDepthRW, + 152 => CXType_OCLImage2dMSAARW, + 153 => CXType_OCLImage2dArrayMSAARW, + 154 => CXType_OCLImage2dMSAADepthRW, + 155 => CXType_OCLImage2dArrayMSAADepthRW, + 156 => CXType_OCLImage3dRW, + 157 => CXType_OCLSampler, + 158 => CXType_OCLEvent, + 159 => CXType_OCLQueue, + 160 => CXType_OCLReserveID, + 161 => CXType_ObjCObject, + 162 => CXType_ObjCTypeParam, + 163 => CXType_Attributed, + 164 => CXType_OCLIntelSubgroupAVCMcePayload, + 165 => CXType_OCLIntelSubgroupAVCImePayload, + 166 => CXType_OCLIntelSubgroupAVCRefPayload, + 167 => CXType_OCLIntelSubgroupAVCSicPayload, + 168 => CXType_OCLIntelSubgroupAVCMceResult, + 169 => CXType_OCLIntelSubgroupAVCImeResult, + 170 => CXType_OCLIntelSubgroupAVCRefResult, + 171 => CXType_OCLIntelSubgroupAVCSicResult, + 172 => CXType_OCLIntelSubgroupAVCImeResultSingleRefStreamout, + 173 => CXType_OCLIntelSubgroupAVCImeResultDualRefStreamout, + 174 => CXType_OCLIntelSubgroupAVCImeSingleRefStreamin, + 175 => CXType_OCLIntelSubgroupAVCImeDualRefStreamin, + 176 => CXType_ExtVector, + _ => throw ArgumentError('Unknown value for CXTypeKind: $value'), + }; + + @override + String toString() { + if (this == CXType_Void) + return "CXTypeKind.CXType_Void, CXTypeKind.CXType_FirstBuiltin"; + if (this == CXType_ULongAccum) + return "CXTypeKind.CXType_ULongAccum, CXTypeKind.CXType_LastBuiltin"; + return super.toString(); + } +} + +/// List the possible error codes for clang_Type_getSizeOf, +/// clang_Type_getAlignOf, clang_Type_getOffsetOf and clang_Cursor_getOffsetOf. +enum CXTypeLayoutError { + /// Type is of kind CXType_Invalid. + CXTypeLayoutError_Invalid(-1), + + /// The type is an incomplete Type. + CXTypeLayoutError_Incomplete(-2), + + /// The type is a dependent Type. + CXTypeLayoutError_Dependent(-3), + + /// The type is not a constant size type. + CXTypeLayoutError_NotConstantSize(-4), + + /// The Field name is not valid for this record. + CXTypeLayoutError_InvalidFieldName(-5), + + /// The type is undeduced. + CXTypeLayoutError_Undeduced(-6); + + final int value; + const CXTypeLayoutError(this.value); + + static CXTypeLayoutError fromValue(int value) => switch (value) { + -1 => CXTypeLayoutError_Invalid, + -2 => CXTypeLayoutError_Incomplete, + -3 => CXTypeLayoutError_Dependent, + -4 => CXTypeLayoutError_NotConstantSize, + -5 => CXTypeLayoutError_InvalidFieldName, + -6 => CXTypeLayoutError_Undeduced, + _ => throw ArgumentError('Unknown value for CXTypeLayoutError: $value'), + }; +} + +enum CXTypeNullabilityKind { + /// Values of this type can never be null. + CXTypeNullability_NonNull(0), + + /// Values of this type can be null. + CXTypeNullability_Nullable(1), + + /// Whether values of this type can be null is (explicitly) unspecified. This + /// captures a (fairly rare) case where we can't conclude anything about the + /// nullability of the type even though it has been considered. + CXTypeNullability_Unspecified(2), + + /// Nullability is not applicable to this type. + CXTypeNullability_Invalid(3); + + final int value; + const CXTypeNullabilityKind(this.value); + + static CXTypeNullabilityKind fromValue(int value) => switch (value) { + 0 => CXTypeNullability_NonNull, + 1 => CXTypeNullability_Nullable, + 2 => CXTypeNullability_Unspecified, + 3 => CXTypeNullability_Invalid, + _ => throw ArgumentError('Unknown value for CXTypeNullabilityKind: $value'), + }; +} + +/// Provides the contents of a file that has not yet been saved to disk. +final class CXUnsavedFile extends ffi.Struct { + /// The file whose contents have not yet been saved. + external ffi.Pointer Filename; + + /// A buffer containing the unsaved contents of this file. + external ffi.Pointer Contents; + + /// The length of the unsaved contents of this buffer. + @ffi.UnsignedLong() + external int Length; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer Filename, + required ffi.Pointer Contents, + required int Length, + }) => $allocator() + ..ref.Filename = Filename + ..ref.Contents = Contents + ..ref.Length = Length; +} + +/// Describes a version number of the form major.minor.subminor. +final class CXVersion extends ffi.Struct { + /// The major version number, e.g., the '10' in '10.7.3'. A negative value + /// indicates that there is no version number at all. + @ffi.Int() + external int Major; + + /// The minor version number, e.g., the '7' in '10.7.3'. This value will be + /// negative if no minor version number was provided, e.g., for version '10'. + @ffi.Int() + external int Minor; + + /// The subminor version number, e.g., the '3' in '10.7.3'. This value will be + /// negative if no minor or subminor version number was provided, e.g., in + /// version '10' or '10.7'. + @ffi.Int() + external int Subminor; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int Major, + required int Minor, + required int Subminor, + }) => $allocator() + ..ref.Major = Major + ..ref.Minor = Minor + ..ref.Subminor = Subminor; +} + +/// Object encapsulating information about overlaying virtual file/directories +/// over the real file system. +typedef CXVirtualFileOverlay = ffi.Pointer; + +final class CXVirtualFileOverlayImpl extends ffi.Opaque {} + +enum CXVisibilityKind { + /// This value indicates that no visibility information is available for a + /// provided CXCursor. + CXVisibility_Invalid(0), + + /// Symbol not seen by the linker. + CXVisibility_Hidden(1), + + /// Symbol seen by the linker but resolves to a symbol inside this object. + CXVisibility_Protected(2), + + /// Symbol seen by the linker and acts like a normal symbol. + CXVisibility_Default(3); + + final int value; + const CXVisibilityKind(this.value); + + static CXVisibilityKind fromValue(int value) => switch (value) { + 0 => CXVisibility_Invalid, + 1 => CXVisibility_Hidden, + 2 => CXVisibility_Protected, + 3 => CXVisibility_Default, + _ => throw ArgumentError('Unknown value for CXVisibilityKind: $value'), + }; +} + +/// @{ +enum CXVisitorResult { + CXVisit_Break(0), + CXVisit_Continue(1); + + final int value; + const CXVisitorResult(this.value); + + static CXVisitorResult fromValue(int value) => switch (value) { + 0 => CXVisit_Break, + 1 => CXVisit_Continue, + _ => throw ArgumentError('Unknown value for CXVisitorResult: $value'), + }; +} + +/// Represents the C++ access control level to a base class for a cursor with +/// kind CX_CXXBaseSpecifier. +enum CX_CXXAccessSpecifier { + CX_CXXInvalidAccessSpecifier(0), + CX_CXXPublic(1), + CX_CXXProtected(2), + CX_CXXPrivate(3); + + final int value; + const CX_CXXAccessSpecifier(this.value); + + static CX_CXXAccessSpecifier fromValue(int value) => switch (value) { + 0 => CX_CXXInvalidAccessSpecifier, + 1 => CX_CXXPublic, + 2 => CX_CXXProtected, + 3 => CX_CXXPrivate, + _ => throw ArgumentError('Unknown value for CX_CXXAccessSpecifier: $value'), + }; +} + +/// Represents the storage classes as declared in the source. CX_SC_Invalid was +/// added for the case that the passed cursor in not a declaration. +enum CX_StorageClass { + CX_SC_Invalid(0), + CX_SC_None(1), + CX_SC_Extern(2), + CX_SC_Static(3), + CX_SC_PrivateExtern(4), + CX_SC_OpenCLWorkGroupLocal(5), + CX_SC_Auto(6), + CX_SC_Register(7); + + final int value; + const CX_StorageClass(this.value); + + static CX_StorageClass fromValue(int value) => switch (value) { + 0 => CX_SC_Invalid, + 1 => CX_SC_None, + 2 => CX_SC_Extern, + 3 => CX_SC_Static, + 4 => CX_SC_PrivateExtern, + 5 => CX_SC_OpenCLWorkGroupLocal, + 6 => CX_SC_Auto, + 7 => CX_SC_Register, + _ => throw ArgumentError('Unknown value for CX_StorageClass: $value'), + }; +} + +/// A group of callbacks used by #clang_indexSourceFile and +/// #clang_indexTranslationUnit. +final class IndexerCallbacks extends ffi.Struct { + /// Called periodically to check whether indexing should be aborted. Should + /// return 0 to continue, and non-zero to abort. + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(CXClientData client_data, ffi.Pointer reserved) + > + > + abortQuery; + + /// Called at the end of indexing; passes the complete diagnostic set. + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CXClientData, CXDiagnosticSet, ffi.Pointer) + > + > + diagnostic; + + external ffi.Pointer< + ffi.NativeFunction< + CXIdxClientFile Function( + CXClientData client_data, + CXFile mainFile, + ffi.Pointer reserved, + ) + > + > + enteredMainFile; + + /// Called when a file gets #included/#imported. + external ffi.Pointer< + ffi.NativeFunction< + CXIdxClientFile Function(CXClientData, ffi.Pointer) + > + > + ppIncludedFile; + + /// Called when a AST file (PCH or module) gets imported. + external ffi.Pointer< + ffi.NativeFunction< + CXIdxClientASTFile Function( + CXClientData, + ffi.Pointer, + ) + > + > + importedASTFile; + + /// Called at the beginning of indexing a translation unit. + external ffi.Pointer< + ffi.NativeFunction< + CXIdxClientContainer Function( + CXClientData client_data, + ffi.Pointer reserved, + ) + > + > + startedTranslationUnit; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CXClientData, ffi.Pointer) + > + > + indexDeclaration; + + /// Called to index a reference of an entity. + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CXClientData, ffi.Pointer) + > + > + indexEntityReference; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + CXClientData client_data, + ffi.Pointer reserved, + ) + > + > + abortQuery, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CXClientData, CXDiagnosticSet, ffi.Pointer) + > + > + diagnostic, + required ffi.Pointer< + ffi.NativeFunction< + CXIdxClientFile Function( + CXClientData client_data, + CXFile mainFile, + ffi.Pointer reserved, + ) + > + > + enteredMainFile, + required ffi.Pointer< + ffi.NativeFunction< + CXIdxClientFile Function( + CXClientData, + ffi.Pointer, + ) + > + > + ppIncludedFile, + required ffi.Pointer< + ffi.NativeFunction< + CXIdxClientASTFile Function( + CXClientData, + ffi.Pointer, + ) + > + > + importedASTFile, + required ffi.Pointer< + ffi.NativeFunction< + CXIdxClientContainer Function( + CXClientData client_data, + ffi.Pointer reserved, + ) + > + > + startedTranslationUnit, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CXClientData, ffi.Pointer) + > + > + indexDeclaration, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CXClientData, ffi.Pointer) + > + > + indexEntityReference, + }) => $allocator() + ..ref.abortQuery = abortQuery + ..ref.diagnostic = diagnostic + ..ref.enteredMainFile = enteredMainFile + ..ref.ppIncludedFile = ppIncludedFile + ..ref.importedASTFile = importedASTFile + ..ref.startedTranslationUnit = startedTranslationUnit + ..ref.indexDeclaration = indexDeclaration + ..ref.indexEntityReference = indexEntityReference; +} diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart index dc0a0df2be..f6594a9f6a 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart @@ -2,3 +2,14413 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +/// Bindings to SQLite. +class SQLite { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + SQLite(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + SQLite.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + /// CAPI3REF: Obtain Aggregate Function Context + /// METHOD: sqlite3_context + /// + /// Implementations of aggregate SQL functions use this + /// routine to allocate memory for storing their state. + /// + /// ^The first time the sqlite3_aggregate_context(C,N) routine is called + /// for a particular aggregate function, SQLite allocates + /// N bytes of memory, zeroes out that memory, and returns a pointer + /// to the new memory. ^On second and subsequent calls to + /// sqlite3_aggregate_context() for the same aggregate function instance, + /// the same buffer is returned. Sqlite3_aggregate_context() is normally + /// called once for each invocation of the xStep callback and then one + /// last time when the xFinal callback is invoked. ^(When no rows match + /// an aggregate query, the xStep() callback of the aggregate function + /// implementation is never called and xFinal() is called exactly once. + /// In those cases, sqlite3_aggregate_context() might be called for the + /// first time from within xFinal().)^ + /// + /// ^The sqlite3_aggregate_context(C,N) routine returns a NULL pointer + /// when first called if N is less than or equal to zero or if a memory + /// allocate error occurs. + /// + /// ^(The amount of space allocated by sqlite3_aggregate_context(C,N) is + /// determined by the N parameter on first successful call. Changing the + /// value of N in any subsequent call to sqlite3_aggregate_context() within + /// the same aggregate function instance will not resize the memory + /// allocation.)^ Within the xFinal callback, it is customary to set + /// N=0 in calls to sqlite3_aggregate_context(C,N) so that no + /// pointless memory allocations occur. + /// + /// ^SQLite automatically frees the memory allocated by + /// sqlite3_aggregate_context() when the aggregate query concludes. + /// + /// The first parameter must be a copy of the + /// [sqlite3_context | SQL function context] that is the first parameter + /// to the xStep or xFinal callback routine that implements the aggregate + /// function. + /// + /// This routine must be called from the same thread in which + /// the aggregate SQL function is running. + ffi.Pointer sqlite3_aggregate_context( + ffi.Pointer arg0, + int nBytes, + ) { + return _sqlite3_aggregate_context(arg0, nBytes); + } + + late final _sqlite3_aggregate_contextPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_aggregate_context'); + late final _sqlite3_aggregate_context = _sqlite3_aggregate_contextPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + int sqlite3_aggregate_count(ffi.Pointer arg0) { + return _sqlite3_aggregate_count(arg0); + } + + late final _sqlite3_aggregate_countPtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_aggregate_count'); + late final _sqlite3_aggregate_count = _sqlite3_aggregate_countPtr + .asFunction)>(); + + /// CAPI3REF: Automatically Load Statically Linked Extensions + /// + /// ^This interface causes the xEntryPoint() function to be invoked for + /// each new [database connection] that is created. The idea here is that + /// xEntryPoint() is the entry point for a statically linked [SQLite extension] + /// that is to be automatically loaded into all new database connections. + /// + /// ^(Even though the function prototype shows that xEntryPoint() takes + /// no arguments and returns void, SQLite invokes xEntryPoint() with three + /// arguments and expects an integer result as if the signature of the + /// entry point where as follows: + /// + ///
+  ///    int xEntryPoint(
+  ///      sqlite3 *db,
+  ///      const char **pzErrMsg,
+  ///      const struct sqlite3_api_routines *pThunk
+  ///    );
+  /// 
)^ + /// + /// If the xEntryPoint routine encounters an error, it should make *pzErrMsg + /// point to an appropriate error message (obtained from [sqlite3_mprintf()]) + /// and return an appropriate [error code]. ^SQLite ensures that *pzErrMsg + /// is NULL before calling the xEntryPoint(). ^SQLite will invoke + /// [sqlite3_free()] on *pzErrMsg after xEntryPoint() returns. ^If any + /// xEntryPoint() returns an error, the [sqlite3_open()], [sqlite3_open16()], + /// or [sqlite3_open_v2()] call that provoked the xEntryPoint() will fail. + /// + /// ^Calling sqlite3_auto_extension(X) with an entry point X that is already + /// on the list of automatic extensions is a harmless no-op. ^No entry point + /// will be called more than once for each database connection that is opened. + /// + /// See also: [sqlite3_reset_auto_extension()] + /// and [sqlite3_cancel_auto_extension()] + int sqlite3_auto_extension( + ffi.Pointer> xEntryPoint, + ) { + return _sqlite3_auto_extension(xEntryPoint); + } + + late final _sqlite3_auto_extensionPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer>) + > + >('sqlite3_auto_extension'); + late final _sqlite3_auto_extension = _sqlite3_auto_extensionPtr + .asFunction< + int Function(ffi.Pointer>) + >(); + + int sqlite3_backup_finish(ffi.Pointer p) { + return _sqlite3_backup_finish(p); + } + + late final _sqlite3_backup_finishPtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_backup_finish'); + late final _sqlite3_backup_finish = _sqlite3_backup_finishPtr + .asFunction)>(); + + /// CAPI3REF: Online Backup API. + /// + /// The backup API copies the content of one database into another. + /// It is useful either for creating backups of databases or + /// for copying in-memory databases to or from persistent files. + /// + /// See Also: [Using the SQLite Online Backup API] + /// + /// ^SQLite holds a write transaction open on the destination database file + /// for the duration of the backup operation. + /// ^The source database is read-locked only while it is being read; + /// it is not locked continuously for the entire backup operation. + /// ^Thus, the backup may be performed on a live source database without + /// preventing other database connections from + /// reading or writing to the source database while the backup is underway. + /// + /// ^(To perform a backup operation: + ///
    + ///
  1. sqlite3_backup_init() is called once to initialize the + /// backup, + ///
  2. sqlite3_backup_step() is called one or more times to transfer + /// the data between the two databases, and finally + ///
  3. sqlite3_backup_finish() is called to release all resources + /// associated with the backup operation. + ///
)^ + /// There should be exactly one call to sqlite3_backup_finish() for each + /// successful call to sqlite3_backup_init(). + /// + /// [[sqlite3_backup_init()]] sqlite3_backup_init() + /// + /// ^The D and N arguments to sqlite3_backup_init(D,N,S,M) are the + /// [database connection] associated with the destination database + /// and the database name, respectively. + /// ^The database name is "main" for the main database, "temp" for the + /// temporary database, or the name specified after the AS keyword in + /// an [ATTACH] statement for an attached database. + /// ^The S and M arguments passed to + /// sqlite3_backup_init(D,N,S,M) identify the [database connection] + /// and database name of the source database, respectively. + /// ^The source and destination [database connections] (parameters S and D) + /// must be different or else sqlite3_backup_init(D,N,S,M) will fail with + /// an error. + /// + /// ^A call to sqlite3_backup_init() will fail, returning NULL, if + /// there is already a read or read-write transaction open on the + /// destination database. + /// + /// ^If an error occurs within sqlite3_backup_init(D,N,S,M), then NULL is + /// returned and an error code and error message are stored in the + /// destination [database connection] D. + /// ^The error code and message for the failed call to sqlite3_backup_init() + /// can be retrieved using the [sqlite3_errcode()], [sqlite3_errmsg()], and/or + /// [sqlite3_errmsg16()] functions. + /// ^A successful call to sqlite3_backup_init() returns a pointer to an + /// [sqlite3_backup] object. + /// ^The [sqlite3_backup] object may be used with the sqlite3_backup_step() and + /// sqlite3_backup_finish() functions to perform the specified backup + /// operation. + /// + /// [[sqlite3_backup_step()]] sqlite3_backup_step() + /// + /// ^Function sqlite3_backup_step(B,N) will copy up to N pages between + /// the source and destination databases specified by [sqlite3_backup] object B. + /// ^If N is negative, all remaining source pages are copied. + /// ^If sqlite3_backup_step(B,N) successfully copies N pages and there + /// are still more pages to be copied, then the function returns [SQLITE_OK]. + /// ^If sqlite3_backup_step(B,N) successfully finishes copying all pages + /// from source to destination, then it returns [SQLITE_DONE]. + /// ^If an error occurs while running sqlite3_backup_step(B,N), + /// then an [error code] is returned. ^As well as [SQLITE_OK] and + /// [SQLITE_DONE], a call to sqlite3_backup_step() may return [SQLITE_READONLY], + /// [SQLITE_NOMEM], [SQLITE_BUSY], [SQLITE_LOCKED], or an + /// [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX] extended error code. + /// + /// ^(The sqlite3_backup_step() might return [SQLITE_READONLY] if + ///
    + ///
  1. the destination database was opened read-only, or + ///
  2. the destination database is using write-ahead-log journaling + /// and the destination and source page sizes differ, or + ///
  3. the destination database is an in-memory database and the + /// destination and source page sizes differ. + ///
)^ + /// + /// ^If sqlite3_backup_step() cannot obtain a required file-system lock, then + /// the [sqlite3_busy_handler | busy-handler function] + /// is invoked (if one is specified). ^If the + /// busy-handler returns non-zero before the lock is available, then + /// [SQLITE_BUSY] is returned to the caller. ^In this case the call to + /// sqlite3_backup_step() can be retried later. ^If the source + /// [database connection] + /// is being used to write to the source database when sqlite3_backup_step() + /// is called, then [SQLITE_LOCKED] is returned immediately. ^Again, in this + /// case the call to sqlite3_backup_step() can be retried later on. ^(If + /// [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX], [SQLITE_NOMEM], or + /// [SQLITE_READONLY] is returned, then + /// there is no point in retrying the call to sqlite3_backup_step(). These + /// errors are considered fatal.)^ The application must accept + /// that the backup operation has failed and pass the backup operation handle + /// to the sqlite3_backup_finish() to release associated resources. + /// + /// ^The first call to sqlite3_backup_step() obtains an exclusive lock + /// on the destination file. ^The exclusive lock is not released until either + /// sqlite3_backup_finish() is called or the backup operation is complete + /// and sqlite3_backup_step() returns [SQLITE_DONE]. ^Every call to + /// sqlite3_backup_step() obtains a [shared lock] on the source database that + /// lasts for the duration of the sqlite3_backup_step() call. + /// ^Because the source database is not locked between calls to + /// sqlite3_backup_step(), the source database may be modified mid-way + /// through the backup process. ^If the source database is modified by an + /// external process or via a database connection other than the one being + /// used by the backup operation, then the backup will be automatically + /// restarted by the next call to sqlite3_backup_step(). ^If the source + /// database is modified by the using the same database connection as is used + /// by the backup operation, then the backup database is automatically + /// updated at the same time. + /// + /// [[sqlite3_backup_finish()]] sqlite3_backup_finish() + /// + /// When sqlite3_backup_step() has returned [SQLITE_DONE], or when the + /// application wishes to abandon the backup operation, the application + /// should destroy the [sqlite3_backup] by passing it to sqlite3_backup_finish(). + /// ^The sqlite3_backup_finish() interfaces releases all + /// resources associated with the [sqlite3_backup] object. + /// ^If sqlite3_backup_step() has not yet returned [SQLITE_DONE], then any + /// active write-transaction on the destination database is rolled back. + /// The [sqlite3_backup] object is invalid + /// and may not be used following a call to sqlite3_backup_finish(). + /// + /// ^The value returned by sqlite3_backup_finish is [SQLITE_OK] if no + /// sqlite3_backup_step() errors occurred, regardless or whether or not + /// sqlite3_backup_step() completed. + /// ^If an out-of-memory condition or IO error occurred during any prior + /// sqlite3_backup_step() call on the same [sqlite3_backup] object, then + /// sqlite3_backup_finish() returns the corresponding [error code]. + /// + /// ^A return of [SQLITE_BUSY] or [SQLITE_LOCKED] from sqlite3_backup_step() + /// is not a permanent error and does not affect the return value of + /// sqlite3_backup_finish(). + /// + /// [[sqlite3_backup_remaining()]] [[sqlite3_backup_pagecount()]] + /// sqlite3_backup_remaining() and sqlite3_backup_pagecount() + /// + /// ^The sqlite3_backup_remaining() routine returns the number of pages still + /// to be backed up at the conclusion of the most recent sqlite3_backup_step(). + /// ^The sqlite3_backup_pagecount() routine returns the total number of pages + /// in the source database at the conclusion of the most recent + /// sqlite3_backup_step(). + /// ^(The values returned by these functions are only updated by + /// sqlite3_backup_step(). If the source database is modified in a way that + /// changes the size of the source database or the number of pages remaining, + /// those changes are not reflected in the output of sqlite3_backup_pagecount() + /// and sqlite3_backup_remaining() until after the next + /// sqlite3_backup_step().)^ + /// + /// Concurrent Usage of Database Handles + /// + /// ^The source [database connection] may be used by the application for other + /// purposes while a backup operation is underway or being initialized. + /// ^If SQLite is compiled and configured to support threadsafe database + /// connections, then the source database connection may be used concurrently + /// from within other threads. + /// + /// However, the application must guarantee that the destination + /// [database connection] is not passed to any other API (by any thread) after + /// sqlite3_backup_init() is called and before the corresponding call to + /// sqlite3_backup_finish(). SQLite does not currently check to see + /// if the application incorrectly accesses the destination [database connection] + /// and so no error code is reported, but the operations may malfunction + /// nevertheless. Use of the destination database connection while a + /// backup is in progress might also also cause a mutex deadlock. + /// + /// If running in [shared cache mode], the application must + /// guarantee that the shared cache used by the destination database + /// is not accessed while the backup is running. In practice this means + /// that the application must guarantee that the disk file being + /// backed up to is not accessed by any connection within the process, + /// not just the specific connection that was passed to sqlite3_backup_init(). + /// + /// The [sqlite3_backup] object itself is partially threadsafe. Multiple + /// threads may safely make multiple concurrent calls to sqlite3_backup_step(). + /// However, the sqlite3_backup_remaining() and sqlite3_backup_pagecount() + /// APIs are not strictly speaking threadsafe. If they are invoked at the + /// same time as another thread is invoking sqlite3_backup_step() it is + /// possible that they return invalid values. + ffi.Pointer sqlite3_backup_init( + ffi.Pointer pDest, + ffi.Pointer zDestName, + ffi.Pointer pSource, + ffi.Pointer zSourceName, + ) { + return _sqlite3_backup_init(pDest, zDestName, pSource, zSourceName); + } + + late final _sqlite3_backup_initPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_backup_init'); + late final _sqlite3_backup_init = _sqlite3_backup_initPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + int sqlite3_backup_pagecount(ffi.Pointer p) { + return _sqlite3_backup_pagecount(p); + } + + late final _sqlite3_backup_pagecountPtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_backup_pagecount'); + late final _sqlite3_backup_pagecount = _sqlite3_backup_pagecountPtr + .asFunction)>(); + + int sqlite3_backup_remaining(ffi.Pointer p) { + return _sqlite3_backup_remaining(p); + } + + late final _sqlite3_backup_remainingPtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_backup_remaining'); + late final _sqlite3_backup_remaining = _sqlite3_backup_remainingPtr + .asFunction)>(); + + int sqlite3_backup_step(ffi.Pointer p, int nPage) { + return _sqlite3_backup_step(p, nPage); + } + + late final _sqlite3_backup_stepPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_backup_step'); + late final _sqlite3_backup_step = _sqlite3_backup_stepPtr + .asFunction, int)>(); + + /// CAPI3REF: Binding Values To Prepared Statements + /// KEYWORDS: {host parameter} {host parameters} {host parameter name} + /// KEYWORDS: {SQL parameter} {SQL parameters} {parameter binding} + /// METHOD: sqlite3_stmt + /// + /// ^(In the SQL statement text input to [sqlite3_prepare_v2()] and its variants, + /// literals may be replaced by a [parameter] that matches one of following + /// templates: + /// + ///
    + ///
  • ? + ///
  • ?NNN + ///
  • :VVV + ///
  • @VVV + ///
  • $VVV + ///
+ /// + /// In the templates above, NNN represents an integer literal, + /// and VVV represents an alphanumeric identifier.)^ ^The values of these + /// parameters (also called "host parameter names" or "SQL parameters") + /// can be set using the sqlite3_bind_*() routines defined here. + /// + /// ^The first argument to the sqlite3_bind_*() routines is always + /// a pointer to the [sqlite3_stmt] object returned from + /// [sqlite3_prepare_v2()] or its variants. + /// + /// ^The second argument is the index of the SQL parameter to be set. + /// ^The leftmost SQL parameter has an index of 1. ^When the same named + /// SQL parameter is used more than once, second and subsequent + /// occurrences have the same index as the first occurrence. + /// ^The index for named parameters can be looked up using the + /// [sqlite3_bind_parameter_index()] API if desired. ^The index + /// for "?NNN" parameters is the value of NNN. + /// ^The NNN value must be between 1 and the [sqlite3_limit()] + /// parameter [SQLITE_LIMIT_VARIABLE_NUMBER] (default value: 32766). + /// + /// ^The third argument is the value to bind to the parameter. + /// ^If the third parameter to sqlite3_bind_text() or sqlite3_bind_text16() + /// or sqlite3_bind_blob() is a NULL pointer then the fourth parameter + /// is ignored and the end result is the same as sqlite3_bind_null(). + /// ^If the third parameter to sqlite3_bind_text() is not NULL, then + /// it should be a pointer to well-formed UTF8 text. + /// ^If the third parameter to sqlite3_bind_text16() is not NULL, then + /// it should be a pointer to well-formed UTF16 text. + /// ^If the third parameter to sqlite3_bind_text64() is not NULL, then + /// it should be a pointer to a well-formed unicode string that is + /// either UTF8 if the sixth parameter is SQLITE_UTF8, or UTF16 + /// otherwise. + /// + /// [[byte-order determination rules]] ^The byte-order of + /// UTF16 input text is determined by the byte-order mark (BOM, U+FEFF) + /// found in first character, which is removed, or in the absence of a BOM + /// the byte order is the native byte order of the host + /// machine for sqlite3_bind_text16() or the byte order specified in + /// the 6th parameter for sqlite3_bind_text64().)^ + /// ^If UTF16 input text contains invalid unicode + /// characters, then SQLite might change those invalid characters + /// into the unicode replacement character: U+FFFD. + /// + /// ^(In those routines that have a fourth argument, its value is the + /// number of bytes in the parameter. To be clear: the value is the + /// number of bytes in the value, not the number of characters.)^ + /// ^If the fourth parameter to sqlite3_bind_text() or sqlite3_bind_text16() + /// is negative, then the length of the string is + /// the number of bytes up to the first zero terminator. + /// If the fourth parameter to sqlite3_bind_blob() is negative, then + /// the behavior is undefined. + /// If a non-negative fourth parameter is provided to sqlite3_bind_text() + /// or sqlite3_bind_text16() or sqlite3_bind_text64() then + /// that parameter must be the byte offset + /// where the NUL terminator would occur assuming the string were NUL + /// terminated. If any NUL characters occurs at byte offsets less than + /// the value of the fourth parameter then the resulting string value will + /// contain embedded NULs. The result of expressions involving strings + /// with embedded NULs is undefined. + /// + /// ^The fifth argument to the BLOB and string binding interfaces + /// is a destructor used to dispose of the BLOB or + /// string after SQLite has finished with it. ^The destructor is called + /// to dispose of the BLOB or string even if the call to the bind API fails, + /// except the destructor is not called if the third parameter is a NULL + /// pointer or the fourth parameter is negative. + /// ^If the fifth argument is + /// the special value [SQLITE_STATIC], then SQLite assumes that the + /// information is in static, unmanaged space and does not need to be freed. + /// ^If the fifth argument has the value [SQLITE_TRANSIENT], then + /// SQLite makes its own private copy of the data immediately, before + /// the sqlite3_bind_*() routine returns. + /// + /// ^The sixth argument to sqlite3_bind_text64() must be one of + /// [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE] + /// to specify the encoding of the text in the third parameter. If + /// the sixth argument to sqlite3_bind_text64() is not one of the + /// allowed values shown above, or if the text encoding is different + /// from the encoding specified by the sixth parameter, then the behavior + /// is undefined. + /// + /// ^The sqlite3_bind_zeroblob() routine binds a BLOB of length N that + /// is filled with zeroes. ^A zeroblob uses a fixed amount of memory + /// (just an integer to hold its size) while it is being processed. + /// Zeroblobs are intended to serve as placeholders for BLOBs whose + /// content is later written using + /// [sqlite3_blob_open | incremental BLOB I/O] routines. + /// ^A negative value for the zeroblob results in a zero-length BLOB. + /// + /// ^The sqlite3_bind_pointer(S,I,P,T,D) routine causes the I-th parameter in + /// [prepared statement] S to have an SQL value of NULL, but to also be + /// associated with the pointer P of type T. ^D is either a NULL pointer or + /// a pointer to a destructor function for P. ^SQLite will invoke the + /// destructor D with a single argument of P when it is finished using + /// P. The T parameter should be a static string, preferably a string + /// literal. The sqlite3_bind_pointer() routine is part of the + /// [pointer passing interface] added for SQLite 3.20.0. + /// + /// ^If any of the sqlite3_bind_*() routines are called with a NULL pointer + /// for the [prepared statement] or with a prepared statement for which + /// [sqlite3_step()] has been called more recently than [sqlite3_reset()], + /// then the call will return [SQLITE_MISUSE]. If any sqlite3_bind_() + /// routine is passed a [prepared statement] that has been finalized, the + /// result is undefined and probably harmful. + /// + /// ^Bindings are not cleared by the [sqlite3_reset()] routine. + /// ^Unbound parameters are interpreted as NULL. + /// + /// ^The sqlite3_bind_* routines return [SQLITE_OK] on success or an + /// [error code] if anything goes wrong. + /// ^[SQLITE_TOOBIG] might be returned if the size of a string or BLOB + /// exceeds limits imposed by [sqlite3_limit]([SQLITE_LIMIT_LENGTH]) or + /// [SQLITE_MAX_LENGTH]. + /// ^[SQLITE_RANGE] is returned if the parameter + /// index is out of range. ^[SQLITE_NOMEM] is returned if malloc() fails. + /// + /// See also: [sqlite3_bind_parameter_count()], + /// [sqlite3_bind_parameter_name()], and [sqlite3_bind_parameter_index()]. + int sqlite3_bind_blob( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int n, + ffi.Pointer)>> + arg4, + ) { + return _sqlite3_bind_blob(arg0, arg1, arg2, n, arg4); + } + + late final _sqlite3_bind_blobPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_bind_blob'); + late final _sqlite3_bind_blob = _sqlite3_bind_blobPtr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + int sqlite3_bind_blob64( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer)>> + arg4, + ) { + return _sqlite3_bind_blob64(arg0, arg1, arg2, arg3, arg4); + } + + late final _sqlite3_bind_blob64Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + sqlite3_uint64, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_bind_blob64'); + late final _sqlite3_bind_blob64 = _sqlite3_bind_blob64Ptr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + int sqlite3_bind_double( + ffi.Pointer arg0, + int arg1, + double arg2, + ) { + return _sqlite3_bind_double(arg0, arg1, arg2); + } + + late final _sqlite3_bind_doublePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Double) + > + >('sqlite3_bind_double'); + late final _sqlite3_bind_double = _sqlite3_bind_doublePtr + .asFunction, int, double)>(); + + int sqlite3_bind_int(ffi.Pointer arg0, int arg1, int arg2) { + return _sqlite3_bind_int(arg0, arg1, arg2); + } + + late final _sqlite3_bind_intPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int) + > + >('sqlite3_bind_int'); + late final _sqlite3_bind_int = _sqlite3_bind_intPtr + .asFunction, int, int)>(); + + int sqlite3_bind_int64(ffi.Pointer arg0, int arg1, int arg2) { + return _sqlite3_bind_int64(arg0, arg1, arg2); + } + + late final _sqlite3_bind_int64Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, sqlite3_int64) + > + >('sqlite3_bind_int64'); + late final _sqlite3_bind_int64 = _sqlite3_bind_int64Ptr + .asFunction, int, int)>(); + + int sqlite3_bind_null(ffi.Pointer arg0, int arg1) { + return _sqlite3_bind_null(arg0, arg1); + } + + late final _sqlite3_bind_nullPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_bind_null'); + late final _sqlite3_bind_null = _sqlite3_bind_nullPtr + .asFunction, int)>(); + + /// CAPI3REF: Number Of SQL Parameters + /// METHOD: sqlite3_stmt + /// + /// ^This routine can be used to find the number of [SQL parameters] + /// in a [prepared statement]. SQL parameters are tokens of the + /// form "?", "?NNN", ":AAA", "$AAA", or "@AAA" that serve as + /// placeholders for values that are [sqlite3_bind_blob | bound] + /// to the parameters at a later time. + /// + /// ^(This routine actually returns the index of the largest (rightmost) + /// parameter. For all forms except ?NNN, this will correspond to the + /// number of unique parameters. If parameters of the ?NNN form are used, + /// there may be gaps in the list.)^ + /// + /// See also: [sqlite3_bind_blob|sqlite3_bind()], + /// [sqlite3_bind_parameter_name()], and + /// [sqlite3_bind_parameter_index()]. + int sqlite3_bind_parameter_count(ffi.Pointer arg0) { + return _sqlite3_bind_parameter_count(arg0); + } + + late final _sqlite3_bind_parameter_countPtr = + _lookup)>>( + 'sqlite3_bind_parameter_count', + ); + late final _sqlite3_bind_parameter_count = _sqlite3_bind_parameter_countPtr + .asFunction)>(); + + /// CAPI3REF: Index Of A Parameter With A Given Name + /// METHOD: sqlite3_stmt + /// + /// ^Return the index of an SQL parameter given its name. ^The + /// index value returned is suitable for use as the second + /// parameter to [sqlite3_bind_blob|sqlite3_bind()]. ^A zero + /// is returned if no matching parameter is found. ^The parameter + /// name must be given in UTF-8 even if the original statement + /// was prepared from UTF-16 text using [sqlite3_prepare16_v2()] or + /// [sqlite3_prepare16_v3()]. + /// + /// See also: [sqlite3_bind_blob|sqlite3_bind()], + /// [sqlite3_bind_parameter_count()], and + /// [sqlite3_bind_parameter_name()]. + int sqlite3_bind_parameter_index( + ffi.Pointer arg0, + ffi.Pointer zName, + ) { + return _sqlite3_bind_parameter_index(arg0, zName); + } + + late final _sqlite3_bind_parameter_indexPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sqlite3_bind_parameter_index'); + late final _sqlite3_bind_parameter_index = _sqlite3_bind_parameter_indexPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); + + /// CAPI3REF: Name Of A Host Parameter + /// METHOD: sqlite3_stmt + /// + /// ^The sqlite3_bind_parameter_name(P,N) interface returns + /// the name of the N-th [SQL parameter] in the [prepared statement] P. + /// ^(SQL parameters of the form "?NNN" or ":AAA" or "@AAA" or "$AAA" + /// have a name which is the string "?NNN" or ":AAA" or "@AAA" or "$AAA" + /// respectively. + /// In other words, the initial ":" or "$" or "@" or "?" + /// is included as part of the name.)^ + /// ^Parameters of the form "?" without a following integer have no name + /// and are referred to as "nameless" or "anonymous parameters". + /// + /// ^The first host parameter has an index of 1, not 0. + /// + /// ^If the value N is out of range or if the N-th parameter is + /// nameless, then NULL is returned. ^The returned string is + /// always in UTF-8 encoding even if the named parameter was + /// originally specified as UTF-16 in [sqlite3_prepare16()], + /// [sqlite3_prepare16_v2()], or [sqlite3_prepare16_v3()]. + /// + /// See also: [sqlite3_bind_blob|sqlite3_bind()], + /// [sqlite3_bind_parameter_count()], and + /// [sqlite3_bind_parameter_index()]. + ffi.Pointer sqlite3_bind_parameter_name( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_bind_parameter_name(arg0, arg1); + } + + late final _sqlite3_bind_parameter_namePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_bind_parameter_name'); + late final _sqlite3_bind_parameter_name = _sqlite3_bind_parameter_namePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + int sqlite3_bind_pointer( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer)>> + arg4, + ) { + return _sqlite3_bind_pointer(arg0, arg1, arg2, arg3, arg4); + } + + late final _sqlite3_bind_pointerPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_bind_pointer'); + late final _sqlite3_bind_pointer = _sqlite3_bind_pointerPtr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + int sqlite3_bind_text( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer)>> + arg4, + ) { + return _sqlite3_bind_text(arg0, arg1, arg2, arg3, arg4); + } + + late final _sqlite3_bind_textPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_bind_text'); + late final _sqlite3_bind_text = _sqlite3_bind_textPtr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + int sqlite3_bind_text16( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer)>> + arg4, + ) { + return _sqlite3_bind_text16(arg0, arg1, arg2, arg3, arg4); + } + + late final _sqlite3_bind_text16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_bind_text16'); + late final _sqlite3_bind_text16 = _sqlite3_bind_text16Ptr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + int sqlite3_bind_text64( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + int arg3, + ffi.Pointer)>> + arg4, + int encoding, + ) { + return _sqlite3_bind_text64(arg0, arg1, arg2, arg3, arg4, encoding); + } + + late final _sqlite3_bind_text64Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + sqlite3_uint64, + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.UnsignedChar, + ) + > + >('sqlite3_bind_text64'); + late final _sqlite3_bind_text64 = _sqlite3_bind_text64Ptr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + int, + ) + >(); + + int sqlite3_bind_value( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) { + return _sqlite3_bind_value(arg0, arg1, arg2); + } + + late final _sqlite3_bind_valuePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >('sqlite3_bind_value'); + late final _sqlite3_bind_value = _sqlite3_bind_valuePtr + .asFunction< + int Function(ffi.Pointer, int, ffi.Pointer) + >(); + + int sqlite3_bind_zeroblob(ffi.Pointer arg0, int arg1, int n) { + return _sqlite3_bind_zeroblob(arg0, arg1, n); + } + + late final _sqlite3_bind_zeroblobPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int) + > + >('sqlite3_bind_zeroblob'); + late final _sqlite3_bind_zeroblob = _sqlite3_bind_zeroblobPtr + .asFunction, int, int)>(); + + int sqlite3_bind_zeroblob64( + ffi.Pointer arg0, + int arg1, + int arg2, + ) { + return _sqlite3_bind_zeroblob64(arg0, arg1, arg2); + } + + late final _sqlite3_bind_zeroblob64Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, sqlite3_uint64) + > + >('sqlite3_bind_zeroblob64'); + late final _sqlite3_bind_zeroblob64 = _sqlite3_bind_zeroblob64Ptr + .asFunction, int, int)>(); + + /// CAPI3REF: Return The Size Of An Open BLOB + /// METHOD: sqlite3_blob + /// + /// ^Returns the size in bytes of the BLOB accessible via the + /// successfully opened [BLOB handle] in its only argument. ^The + /// incremental blob I/O routines can only read or overwriting existing + /// blob content; they cannot change the size of a blob. + /// + /// This routine only works on a [BLOB handle] which has been created + /// by a prior successful call to [sqlite3_blob_open()] and which has not + /// been closed by [sqlite3_blob_close()]. Passing any other pointer in + /// to this routine results in undefined and probably undesirable behavior. + int sqlite3_blob_bytes(ffi.Pointer arg0) { + return _sqlite3_blob_bytes(arg0); + } + + late final _sqlite3_blob_bytesPtr = + _lookup)>>( + 'sqlite3_blob_bytes', + ); + late final _sqlite3_blob_bytes = _sqlite3_blob_bytesPtr + .asFunction)>(); + + /// CAPI3REF: Close A BLOB Handle + /// DESTRUCTOR: sqlite3_blob + /// + /// ^This function closes an open [BLOB handle]. ^(The BLOB handle is closed + /// unconditionally. Even if this routine returns an error code, the + /// handle is still closed.)^ + /// + /// ^If the blob handle being closed was opened for read-write access, and if + /// the database is in auto-commit mode and there are no other open read-write + /// blob handles or active write statements, the current transaction is + /// committed. ^If an error occurs while committing the transaction, an error + /// code is returned and the transaction rolled back. + /// + /// Calling this function with an argument that is not a NULL pointer or an + /// open blob handle results in undefined behaviour. ^Calling this routine + /// with a null pointer (such as would be returned by a failed call to + /// [sqlite3_blob_open()]) is a harmless no-op. ^Otherwise, if this function + /// is passed a valid open blob handle, the values returned by the + /// sqlite3_errcode() and sqlite3_errmsg() functions are set before returning. + int sqlite3_blob_close(ffi.Pointer arg0) { + return _sqlite3_blob_close(arg0); + } + + late final _sqlite3_blob_closePtr = + _lookup)>>( + 'sqlite3_blob_close', + ); + late final _sqlite3_blob_close = _sqlite3_blob_closePtr + .asFunction)>(); + + /// CAPI3REF: Open A BLOB For Incremental I/O + /// METHOD: sqlite3 + /// CONSTRUCTOR: sqlite3_blob + /// + /// ^(This interfaces opens a [BLOB handle | handle] to the BLOB located + /// in row iRow, column zColumn, table zTable in database zDb; + /// in other words, the same BLOB that would be selected by: + /// + ///
+  /// SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow;
+  /// 
)^ + /// + /// ^(Parameter zDb is not the filename that contains the database, but + /// rather the symbolic name of the database. For attached databases, this is + /// the name that appears after the AS keyword in the [ATTACH] statement. + /// For the main database file, the database name is "main". For TEMP + /// tables, the database name is "temp".)^ + /// + /// ^If the flags parameter is non-zero, then the BLOB is opened for read + /// and write access. ^If the flags parameter is zero, the BLOB is opened for + /// read-only access. + /// + /// ^(On success, [SQLITE_OK] is returned and the new [BLOB handle] is stored + /// in *ppBlob. Otherwise an [error code] is returned and, unless the error + /// code is SQLITE_MISUSE, *ppBlob is set to NULL.)^ ^This means that, provided + /// the API is not misused, it is always safe to call [sqlite3_blob_close()] + /// on *ppBlob after this function it returns. + /// + /// This function fails with SQLITE_ERROR if any of the following are true: + ///
    + ///
  • ^(Database zDb does not exist)^, + ///
  • ^(Table zTable does not exist within database zDb)^, + ///
  • ^(Table zTable is a WITHOUT ROWID table)^, + ///
  • ^(Column zColumn does not exist)^, + ///
  • ^(Row iRow is not present in the table)^, + ///
  • ^(The specified column of row iRow contains a value that is not + /// a TEXT or BLOB value)^, + ///
  • ^(Column zColumn is part of an index, PRIMARY KEY or UNIQUE + /// constraint and the blob is being opened for read/write access)^, + ///
  • ^([foreign key constraints | Foreign key constraints] are enabled, + /// column zColumn is part of a [child key] definition and the blob is + /// being opened for read/write access)^. + ///
+ /// + /// ^Unless it returns SQLITE_MISUSE, this function sets the + /// [database connection] error code and message accessible via + /// [sqlite3_errcode()] and [sqlite3_errmsg()] and related functions. + /// + /// A BLOB referenced by sqlite3_blob_open() may be read using the + /// [sqlite3_blob_read()] interface and modified by using + /// [sqlite3_blob_write()]. The [BLOB handle] can be moved to a + /// different row of the same table using the [sqlite3_blob_reopen()] + /// interface. However, the column, table, or database of a [BLOB handle] + /// cannot be changed after the [BLOB handle] is opened. + /// + /// ^(If the row that a BLOB handle points to is modified by an + /// [UPDATE], [DELETE], or by [ON CONFLICT] side-effects + /// then the BLOB handle is marked as "expired". + /// This is true if any column of the row is changed, even a column + /// other than the one the BLOB handle is open on.)^ + /// ^Calls to [sqlite3_blob_read()] and [sqlite3_blob_write()] for + /// an expired BLOB handle fail with a return code of [SQLITE_ABORT]. + /// ^(Changes written into a BLOB prior to the BLOB expiring are not + /// rolled back by the expiration of the BLOB. Such changes will eventually + /// commit if the transaction continues to completion.)^ + /// + /// ^Use the [sqlite3_blob_bytes()] interface to determine the size of + /// the opened blob. ^The size of a blob may not be changed by this + /// interface. Use the [UPDATE] SQL command to change the size of a + /// blob. + /// + /// ^The [sqlite3_bind_zeroblob()] and [sqlite3_result_zeroblob()] interfaces + /// and the built-in [zeroblob] SQL function may be used to create a + /// zero-filled blob to read or write using the incremental-blob interface. + /// + /// To avoid a resource leak, every open [BLOB handle] should eventually + /// be released by a call to [sqlite3_blob_close()]. + /// + /// See also: [sqlite3_blob_close()], + /// [sqlite3_blob_reopen()], [sqlite3_blob_read()], + /// [sqlite3_blob_bytes()], [sqlite3_blob_write()]. + int sqlite3_blob_open( + ffi.Pointer arg0, + ffi.Pointer zDb, + ffi.Pointer zTable, + ffi.Pointer zColumn, + int iRow, + int flags, + ffi.Pointer> ppBlob, + ) { + return _sqlite3_blob_open(arg0, zDb, zTable, zColumn, iRow, flags, ppBlob); + } + + late final _sqlite3_blob_openPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + sqlite3_int64, + ffi.Int, + ffi.Pointer>, + ) + > + >('sqlite3_blob_open'); + late final _sqlite3_blob_open = _sqlite3_blob_openPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer>, + ) + >(); + + /// CAPI3REF: Read Data From A BLOB Incrementally + /// METHOD: sqlite3_blob + /// + /// ^(This function is used to read data from an open [BLOB handle] into a + /// caller-supplied buffer. N bytes of data are copied into buffer Z + /// from the open BLOB, starting at offset iOffset.)^ + /// + /// ^If offset iOffset is less than N bytes from the end of the BLOB, + /// [SQLITE_ERROR] is returned and no data is read. ^If N or iOffset is + /// less than zero, [SQLITE_ERROR] is returned and no data is read. + /// ^The size of the blob (and hence the maximum value of N+iOffset) + /// can be determined using the [sqlite3_blob_bytes()] interface. + /// + /// ^An attempt to read from an expired [BLOB handle] fails with an + /// error code of [SQLITE_ABORT]. + /// + /// ^(On success, sqlite3_blob_read() returns SQLITE_OK. + /// Otherwise, an [error code] or an [extended error code] is returned.)^ + /// + /// This routine only works on a [BLOB handle] which has been created + /// by a prior successful call to [sqlite3_blob_open()] and which has not + /// been closed by [sqlite3_blob_close()]. Passing any other pointer in + /// to this routine results in undefined and probably undesirable behavior. + /// + /// See also: [sqlite3_blob_write()]. + int sqlite3_blob_read( + ffi.Pointer arg0, + ffi.Pointer Z, + int N, + int iOffset, + ) { + return _sqlite3_blob_read(arg0, Z, N, iOffset); + } + + late final _sqlite3_blob_readPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ) + > + >('sqlite3_blob_read'); + late final _sqlite3_blob_read = _sqlite3_blob_readPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, int) + >(); + + /// CAPI3REF: Move a BLOB Handle to a New Row + /// METHOD: sqlite3_blob + /// + /// ^This function is used to move an existing [BLOB handle] so that it points + /// to a different row of the same database table. ^The new row is identified + /// by the rowid value passed as the second argument. Only the row can be + /// changed. ^The database, table and column on which the blob handle is open + /// remain the same. Moving an existing [BLOB handle] to a new row is + /// faster than closing the existing handle and opening a new one. + /// + /// ^(The new row must meet the same criteria as for [sqlite3_blob_open()] - + /// it must exist and there must be either a blob or text value stored in + /// the nominated column.)^ ^If the new row is not present in the table, or if + /// it does not contain a blob or text value, or if another error occurs, an + /// SQLite error code is returned and the blob handle is considered aborted. + /// ^All subsequent calls to [sqlite3_blob_read()], [sqlite3_blob_write()] or + /// [sqlite3_blob_reopen()] on an aborted blob handle immediately return + /// SQLITE_ABORT. ^Calling [sqlite3_blob_bytes()] on an aborted blob handle + /// always returns zero. + /// + /// ^This function sets the database handle error code and message. + int sqlite3_blob_reopen(ffi.Pointer arg0, int arg1) { + return _sqlite3_blob_reopen(arg0, arg1); + } + + late final _sqlite3_blob_reopenPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, sqlite3_int64) + > + >('sqlite3_blob_reopen'); + late final _sqlite3_blob_reopen = _sqlite3_blob_reopenPtr + .asFunction, int)>(); + + /// CAPI3REF: Write Data Into A BLOB Incrementally + /// METHOD: sqlite3_blob + /// + /// ^(This function is used to write data into an open [BLOB handle] from a + /// caller-supplied buffer. N bytes of data are copied from the buffer Z + /// into the open BLOB, starting at offset iOffset.)^ + /// + /// ^(On success, sqlite3_blob_write() returns SQLITE_OK. + /// Otherwise, an [error code] or an [extended error code] is returned.)^ + /// ^Unless SQLITE_MISUSE is returned, this function sets the + /// [database connection] error code and message accessible via + /// [sqlite3_errcode()] and [sqlite3_errmsg()] and related functions. + /// + /// ^If the [BLOB handle] passed as the first argument was not opened for + /// writing (the flags parameter to [sqlite3_blob_open()] was zero), + /// this function returns [SQLITE_READONLY]. + /// + /// This function may only modify the contents of the BLOB; it is + /// not possible to increase the size of a BLOB using this API. + /// ^If offset iOffset is less than N bytes from the end of the BLOB, + /// [SQLITE_ERROR] is returned and no data is written. The size of the + /// BLOB (and hence the maximum value of N+iOffset) can be determined + /// using the [sqlite3_blob_bytes()] interface. ^If N or iOffset are less + /// than zero [SQLITE_ERROR] is returned and no data is written. + /// + /// ^An attempt to write to an expired [BLOB handle] fails with an + /// error code of [SQLITE_ABORT]. ^Writes to the BLOB that occurred + /// before the [BLOB handle] expired are not rolled back by the + /// expiration of the handle, though of course those changes might + /// have been overwritten by the statement that expired the BLOB handle + /// or by other independent statements. + /// + /// This routine only works on a [BLOB handle] which has been created + /// by a prior successful call to [sqlite3_blob_open()] and which has not + /// been closed by [sqlite3_blob_close()]. Passing any other pointer in + /// to this routine results in undefined and probably undesirable behavior. + /// + /// See also: [sqlite3_blob_read()]. + int sqlite3_blob_write( + ffi.Pointer arg0, + ffi.Pointer z, + int n, + int iOffset, + ) { + return _sqlite3_blob_write(arg0, z, n, iOffset); + } + + late final _sqlite3_blob_writePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ) + > + >('sqlite3_blob_write'); + late final _sqlite3_blob_write = _sqlite3_blob_writePtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, int) + >(); + + /// CAPI3REF: Register A Callback To Handle SQLITE_BUSY Errors + /// KEYWORDS: {busy-handler callback} {busy handler} + /// METHOD: sqlite3 + /// + /// ^The sqlite3_busy_handler(D,X,P) routine sets a callback function X + /// that might be invoked with argument P whenever + /// an attempt is made to access a database table associated with + /// [database connection] D when another thread + /// or process has the table locked. + /// The sqlite3_busy_handler() interface is used to implement + /// [sqlite3_busy_timeout()] and [PRAGMA busy_timeout]. + /// + /// ^If the busy callback is NULL, then [SQLITE_BUSY] + /// is returned immediately upon encountering the lock. ^If the busy callback + /// is not NULL, then the callback might be invoked with two arguments. + /// + /// ^The first argument to the busy handler is a copy of the void* pointer which + /// is the third argument to sqlite3_busy_handler(). ^The second argument to + /// the busy handler callback is the number of times that the busy handler has + /// been invoked previously for the same locking event. ^If the + /// busy callback returns 0, then no additional attempts are made to + /// access the database and [SQLITE_BUSY] is returned + /// to the application. + /// ^If the callback returns non-zero, then another attempt + /// is made to access the database and the cycle repeats. + /// + /// The presence of a busy handler does not guarantee that it will be invoked + /// when there is lock contention. ^If SQLite determines that invoking the busy + /// handler could result in a deadlock, it will go ahead and return [SQLITE_BUSY] + /// to the application instead of invoking the + /// busy handler. + /// Consider a scenario where one process is holding a read lock that + /// it is trying to promote to a reserved lock and + /// a second process is holding a reserved lock that it is trying + /// to promote to an exclusive lock. The first process cannot proceed + /// because it is blocked by the second and the second process cannot + /// proceed because it is blocked by the first. If both processes + /// invoke the busy handlers, neither will make any progress. Therefore, + /// SQLite returns [SQLITE_BUSY] for the first process, hoping that this + /// will induce the first process to release its read lock and allow + /// the second process to proceed. + /// + /// ^The default busy callback is NULL. + /// + /// ^(There can only be a single busy handler defined for each + /// [database connection]. Setting a new busy handler clears any + /// previously set handler.)^ ^Note that calling [sqlite3_busy_timeout()] + /// or evaluating [PRAGMA busy_timeout=N] will change the + /// busy handler and thus clear any previously set busy handler. + /// + /// The busy callback should not take any actions which modify the + /// database connection that invoked the busy handler. In other words, + /// the busy handler is not reentrant. Any such actions + /// result in undefined behavior. + /// + /// A busy handler must not close the database connection + /// or [prepared statement] that invoked the busy handler. + int sqlite3_busy_handler( + ffi.Pointer arg0, + ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + arg1, + ffi.Pointer arg2, + ) { + return _sqlite3_busy_handler(arg0, arg1, arg2); + } + + late final _sqlite3_busy_handlerPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int) + > + >, + ffi.Pointer, + ) + > + >('sqlite3_busy_handler'); + late final _sqlite3_busy_handler = _sqlite3_busy_handlerPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + >, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Set A Busy Timeout + /// METHOD: sqlite3 + /// + /// ^This routine sets a [sqlite3_busy_handler | busy handler] that sleeps + /// for a specified amount of time when a table is locked. ^The handler + /// will sleep multiple times until at least "ms" milliseconds of sleeping + /// have accumulated. ^After at least "ms" milliseconds of sleeping, + /// the handler returns 0 which causes [sqlite3_step()] to return + /// [SQLITE_BUSY]. + /// + /// ^Calling this routine with an argument less than or equal to zero + /// turns off all busy handlers. + /// + /// ^(There can only be a single busy handler for a particular + /// [database connection] at any given moment. If another busy handler + /// was defined (using [sqlite3_busy_handler()]) prior to calling + /// this routine, that other busy handler is cleared.)^ + /// + /// See also: [PRAGMA busy_timeout] + int sqlite3_busy_timeout(ffi.Pointer arg0, int ms) { + return _sqlite3_busy_timeout(arg0, ms); + } + + late final _sqlite3_busy_timeoutPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_busy_timeout'); + late final _sqlite3_busy_timeout = _sqlite3_busy_timeoutPtr + .asFunction, int)>(); + + /// CAPI3REF: Cancel Automatic Extension Loading + /// + /// ^The [sqlite3_cancel_auto_extension(X)] interface unregisters the + /// initialization routine X that was registered using a prior call to + /// [sqlite3_auto_extension(X)]. ^The [sqlite3_cancel_auto_extension(X)] + /// routine returns 1 if initialization routine X was successfully + /// unregistered and it returns 0 if X was not on the list of initialization + /// routines. + int sqlite3_cancel_auto_extension( + ffi.Pointer> xEntryPoint, + ) { + return _sqlite3_cancel_auto_extension(xEntryPoint); + } + + late final _sqlite3_cancel_auto_extensionPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer>) + > + >('sqlite3_cancel_auto_extension'); + late final _sqlite3_cancel_auto_extension = _sqlite3_cancel_auto_extensionPtr + .asFunction< + int Function(ffi.Pointer>) + >(); + + /// CAPI3REF: Count The Number Of Rows Modified + /// METHOD: sqlite3 + /// + /// ^This function returns the number of rows modified, inserted or + /// deleted by the most recently completed INSERT, UPDATE or DELETE + /// statement on the database connection specified by the only parameter. + /// ^Executing any other type of SQL statement does not modify the value + /// returned by this function. + /// + /// ^Only changes made directly by the INSERT, UPDATE or DELETE statement are + /// considered - auxiliary changes caused by [CREATE TRIGGER | triggers], + /// [foreign key actions] or [REPLACE] constraint resolution are not counted. + /// + /// Changes to a view that are intercepted by + /// [INSTEAD OF trigger | INSTEAD OF triggers] are not counted. ^The value + /// returned by sqlite3_changes() immediately after an INSERT, UPDATE or + /// DELETE statement run on a view is always zero. Only changes made to real + /// tables are counted. + /// + /// Things are more complicated if the sqlite3_changes() function is + /// executed while a trigger program is running. This may happen if the + /// program uses the [changes() SQL function], or if some other callback + /// function invokes sqlite3_changes() directly. Essentially: + /// + ///
    + ///
  • ^(Before entering a trigger program the value returned by + /// sqlite3_changes() function is saved. After the trigger program + /// has finished, the original value is restored.)^ + /// + ///
  • ^(Within a trigger program each INSERT, UPDATE and DELETE + /// statement sets the value returned by sqlite3_changes() + /// upon completion as normal. Of course, this value will not include + /// any changes performed by sub-triggers, as the sqlite3_changes() + /// value will be saved and restored after each sub-trigger has run.)^ + ///
+ /// + /// ^This means that if the changes() SQL function (or similar) is used + /// by the first INSERT, UPDATE or DELETE statement within a trigger, it + /// returns the value as set when the calling statement began executing. + /// ^If it is used by the second or subsequent such statement within a trigger + /// program, the value returned reflects the number of rows modified by the + /// previous INSERT, UPDATE or DELETE statement within the same trigger. + /// + /// If a separate thread makes changes on the same database connection + /// while [sqlite3_changes()] is running then the value returned + /// is unpredictable and not meaningful. + /// + /// See also: + ///
    + ///
  • the [sqlite3_total_changes()] interface + ///
  • the [count_changes pragma] + ///
  • the [changes() SQL function] + ///
  • the [data_version pragma] + ///
+ int sqlite3_changes(ffi.Pointer arg0) { + return _sqlite3_changes(arg0); + } + + late final _sqlite3_changesPtr = + _lookup)>>( + 'sqlite3_changes', + ); + late final _sqlite3_changes = _sqlite3_changesPtr + .asFunction)>(); + + /// CAPI3REF: Reset All Bindings On A Prepared Statement + /// METHOD: sqlite3_stmt + /// + /// ^Contrary to the intuition of many, [sqlite3_reset()] does not reset + /// the [sqlite3_bind_blob | bindings] on a [prepared statement]. + /// ^Use this routine to reset all host parameters to NULL. + int sqlite3_clear_bindings(ffi.Pointer arg0) { + return _sqlite3_clear_bindings(arg0); + } + + late final _sqlite3_clear_bindingsPtr = + _lookup)>>( + 'sqlite3_clear_bindings', + ); + late final _sqlite3_clear_bindings = _sqlite3_clear_bindingsPtr + .asFunction)>(); + + /// CAPI3REF: Closing A Database Connection + /// DESTRUCTOR: sqlite3 + /// + /// ^The sqlite3_close() and sqlite3_close_v2() routines are destructors + /// for the [sqlite3] object. + /// ^Calls to sqlite3_close() and sqlite3_close_v2() return [SQLITE_OK] if + /// the [sqlite3] object is successfully destroyed and all associated + /// resources are deallocated. + /// + /// Ideally, applications should [sqlite3_finalize | finalize] all + /// [prepared statements], [sqlite3_blob_close | close] all [BLOB handles], and + /// [sqlite3_backup_finish | finish] all [sqlite3_backup] objects associated + /// with the [sqlite3] object prior to attempting to close the object. + /// ^If the database connection is associated with unfinalized prepared + /// statements, BLOB handlers, and/or unfinished sqlite3_backup objects then + /// sqlite3_close() will leave the database connection open and return + /// [SQLITE_BUSY]. ^If sqlite3_close_v2() is called with unfinalized prepared + /// statements, unclosed BLOB handlers, and/or unfinished sqlite3_backups, + /// it returns [SQLITE_OK] regardless, but instead of deallocating the database + /// connection immediately, it marks the database connection as an unusable + /// "zombie" and makes arrangements to automatically deallocate the database + /// connection after all prepared statements are finalized, all BLOB handles + /// are closed, and all backups have finished. The sqlite3_close_v2() interface + /// is intended for use with host languages that are garbage collected, and + /// where the order in which destructors are called is arbitrary. + /// + /// ^If an [sqlite3] object is destroyed while a transaction is open, + /// the transaction is automatically rolled back. + /// + /// The C parameter to [sqlite3_close(C)] and [sqlite3_close_v2(C)] + /// must be either a NULL + /// pointer or an [sqlite3] object pointer obtained + /// from [sqlite3_open()], [sqlite3_open16()], or + /// [sqlite3_open_v2()], and not previously closed. + /// ^Calling sqlite3_close() or sqlite3_close_v2() with a NULL pointer + /// argument is a harmless no-op. + int sqlite3_close(ffi.Pointer arg0) { + return _sqlite3_close(arg0); + } + + late final _sqlite3_closePtr = + _lookup)>>( + 'sqlite3_close', + ); + late final _sqlite3_close = _sqlite3_closePtr + .asFunction)>(); + + int sqlite3_close_v2(ffi.Pointer arg0) { + return _sqlite3_close_v2(arg0); + } + + late final _sqlite3_close_v2Ptr = + _lookup)>>( + 'sqlite3_close_v2', + ); + late final _sqlite3_close_v2 = _sqlite3_close_v2Ptr + .asFunction)>(); + + /// CAPI3REF: Collation Needed Callbacks + /// METHOD: sqlite3 + /// + /// ^To avoid having to register all collation sequences before a database + /// can be used, a single callback function may be registered with the + /// [database connection] to be invoked whenever an undefined collation + /// sequence is required. + /// + /// ^If the function is registered using the sqlite3_collation_needed() API, + /// then it is passed the names of undefined collation sequences as strings + /// encoded in UTF-8. ^If sqlite3_collation_needed16() is used, + /// the names are passed as UTF-16 in machine native byte order. + /// ^A call to either function replaces the existing collation-needed callback. + /// + /// ^(When the callback is invoked, the first argument passed is a copy + /// of the second argument to sqlite3_collation_needed() or + /// sqlite3_collation_needed16(). The second argument is the database + /// connection. The third argument is one of [SQLITE_UTF8], [SQLITE_UTF16BE], + /// or [SQLITE_UTF16LE], indicating the most desirable form of the collation + /// sequence function required. The fourth parameter is the name of the + /// required collation sequence.)^ + /// + /// The callback function should register the desired collation using + /// [sqlite3_create_collation()], [sqlite3_create_collation16()], or + /// [sqlite3_create_collation_v2()]. + int sqlite3_collation_needed( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + arg2, + ) { + return _sqlite3_collation_needed(arg0, arg1, arg2); + } + + late final _sqlite3_collation_neededPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >, + ) + > + >('sqlite3_collation_needed'); + late final _sqlite3_collation_needed = _sqlite3_collation_neededPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >, + ) + >(); + + int sqlite3_collation_needed16( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + arg2, + ) { + return _sqlite3_collation_needed16(arg0, arg1, arg2); + } + + late final _sqlite3_collation_needed16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >, + ) + > + >('sqlite3_collation_needed16'); + late final _sqlite3_collation_needed16 = _sqlite3_collation_needed16Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >, + ) + >(); + + /// CAPI3REF: Result Values From A Query + /// KEYWORDS: {column access functions} + /// METHOD: sqlite3_stmt + /// + /// Summary: + ///
+ ///
sqlite3_column_blobBLOB result + ///
sqlite3_column_doubleREAL result + ///
sqlite3_column_int32-bit INTEGER result + ///
sqlite3_column_int6464-bit INTEGER result + ///
sqlite3_column_textUTF-8 TEXT result + ///
sqlite3_column_text16UTF-16 TEXT result + ///
sqlite3_column_valueThe result as an + /// [sqlite3_value|unprotected sqlite3_value] object. + ///
    + ///
sqlite3_column_bytesSize of a BLOB + /// or a UTF-8 TEXT result in bytes + ///
sqlite3_column_bytes16   + /// →  Size of UTF-16 + /// TEXT in bytes + ///
sqlite3_column_typeDefault + /// datatype of the result + ///
+ /// + /// Details: + /// + /// ^These routines return information about a single column of the current + /// result row of a query. ^In every case the first argument is a pointer + /// to the [prepared statement] that is being evaluated (the [sqlite3_stmt*] + /// that was returned from [sqlite3_prepare_v2()] or one of its variants) + /// and the second argument is the index of the column for which information + /// should be returned. ^The leftmost column of the result set has the index 0. + /// ^The number of columns in the result can be determined using + /// [sqlite3_column_count()]. + /// + /// If the SQL statement does not currently point to a valid row, or if the + /// column index is out of range, the result is undefined. + /// These routines may only be called when the most recent call to + /// [sqlite3_step()] has returned [SQLITE_ROW] and neither + /// [sqlite3_reset()] nor [sqlite3_finalize()] have been called subsequently. + /// If any of these routines are called after [sqlite3_reset()] or + /// [sqlite3_finalize()] or after [sqlite3_step()] has returned + /// something other than [SQLITE_ROW], the results are undefined. + /// If [sqlite3_step()] or [sqlite3_reset()] or [sqlite3_finalize()] + /// are called from a different thread while any of these routines + /// are pending, then the results are undefined. + /// + /// The first six interfaces (_blob, _double, _int, _int64, _text, and _text16) + /// each return the value of a result column in a specific data format. If + /// the result column is not initially in the requested format (for example, + /// if the query returns an integer but the sqlite3_column_text() interface + /// is used to extract the value) then an automatic type conversion is performed. + /// + /// ^The sqlite3_column_type() routine returns the + /// [SQLITE_INTEGER | datatype code] for the initial data type + /// of the result column. ^The returned value is one of [SQLITE_INTEGER], + /// [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL]. + /// The return value of sqlite3_column_type() can be used to decide which + /// of the first six interface should be used to extract the column value. + /// The value returned by sqlite3_column_type() is only meaningful if no + /// automatic type conversions have occurred for the value in question. + /// After a type conversion, the result of calling sqlite3_column_type() + /// is undefined, though harmless. Future + /// versions of SQLite may change the behavior of sqlite3_column_type() + /// following a type conversion. + /// + /// If the result is a BLOB or a TEXT string, then the sqlite3_column_bytes() + /// or sqlite3_column_bytes16() interfaces can be used to determine the size + /// of that BLOB or string. + /// + /// ^If the result is a BLOB or UTF-8 string then the sqlite3_column_bytes() + /// routine returns the number of bytes in that BLOB or string. + /// ^If the result is a UTF-16 string, then sqlite3_column_bytes() converts + /// the string to UTF-8 and then returns the number of bytes. + /// ^If the result is a numeric value then sqlite3_column_bytes() uses + /// [sqlite3_snprintf()] to convert that value to a UTF-8 string and returns + /// the number of bytes in that string. + /// ^If the result is NULL, then sqlite3_column_bytes() returns zero. + /// + /// ^If the result is a BLOB or UTF-16 string then the sqlite3_column_bytes16() + /// routine returns the number of bytes in that BLOB or string. + /// ^If the result is a UTF-8 string, then sqlite3_column_bytes16() converts + /// the string to UTF-16 and then returns the number of bytes. + /// ^If the result is a numeric value then sqlite3_column_bytes16() uses + /// [sqlite3_snprintf()] to convert that value to a UTF-16 string and returns + /// the number of bytes in that string. + /// ^If the result is NULL, then sqlite3_column_bytes16() returns zero. + /// + /// ^The values returned by [sqlite3_column_bytes()] and + /// [sqlite3_column_bytes16()] do not include the zero terminators at the end + /// of the string. ^For clarity: the values returned by + /// [sqlite3_column_bytes()] and [sqlite3_column_bytes16()] are the number of + /// bytes in the string, not the number of characters. + /// + /// ^Strings returned by sqlite3_column_text() and sqlite3_column_text16(), + /// even empty strings, are always zero-terminated. ^The return + /// value from sqlite3_column_blob() for a zero-length BLOB is a NULL pointer. + /// + /// Warning: ^The object returned by [sqlite3_column_value()] is an + /// [unprotected sqlite3_value] object. In a multithreaded environment, + /// an unprotected sqlite3_value object may only be used safely with + /// [sqlite3_bind_value()] and [sqlite3_result_value()]. + /// If the [unprotected sqlite3_value] object returned by + /// [sqlite3_column_value()] is used in any other way, including calls + /// to routines like [sqlite3_value_int()], [sqlite3_value_text()], + /// or [sqlite3_value_bytes()], the behavior is not threadsafe. + /// Hence, the sqlite3_column_value() interface + /// is normally only useful within the implementation of + /// [application-defined SQL functions] or [virtual tables], not within + /// top-level application code. + /// + /// The these routines may attempt to convert the datatype of the result. + /// ^For example, if the internal representation is FLOAT and a text result + /// is requested, [sqlite3_snprintf()] is used internally to perform the + /// conversion automatically. ^(The following table details the conversions + /// that are applied: + /// + ///
+ /// + ///
Internal
Type
Requested
Type
Conversion + /// + ///
NULL INTEGER Result is 0 + ///
NULL FLOAT Result is 0.0 + ///
NULL TEXT Result is a NULL pointer + ///
NULL BLOB Result is a NULL pointer + ///
INTEGER FLOAT Convert from integer to float + ///
INTEGER TEXT ASCII rendering of the integer + ///
INTEGER BLOB Same as INTEGER->TEXT + ///
FLOAT INTEGER [CAST] to INTEGER + ///
FLOAT TEXT ASCII rendering of the float + ///
FLOAT BLOB [CAST] to BLOB + ///
TEXT INTEGER [CAST] to INTEGER + ///
TEXT FLOAT [CAST] to REAL + ///
TEXT BLOB No change + ///
BLOB INTEGER [CAST] to INTEGER + ///
BLOB FLOAT [CAST] to REAL + ///
BLOB TEXT Add a zero terminator if needed + ///
+ ///
)^ + /// + /// Note that when type conversions occur, pointers returned by prior + /// calls to sqlite3_column_blob(), sqlite3_column_text(), and/or + /// sqlite3_column_text16() may be invalidated. + /// Type conversions and pointer invalidations might occur + /// in the following cases: + /// + ///
    + ///
  • The initial content is a BLOB and sqlite3_column_text() or + /// sqlite3_column_text16() is called. A zero-terminator might + /// need to be added to the string.
  • + ///
  • The initial content is UTF-8 text and sqlite3_column_bytes16() or + /// sqlite3_column_text16() is called. The content must be converted + /// to UTF-16.
  • + ///
  • The initial content is UTF-16 text and sqlite3_column_bytes() or + /// sqlite3_column_text() is called. The content must be converted + /// to UTF-8.
  • + ///
+ /// + /// ^Conversions between UTF-16be and UTF-16le are always done in place and do + /// not invalidate a prior pointer, though of course the content of the buffer + /// that the prior pointer references will have been modified. Other kinds + /// of conversion are done in place when it is possible, but sometimes they + /// are not possible and in those cases prior pointers are invalidated. + /// + /// The safest policy is to invoke these routines + /// in one of the following ways: + /// + ///
    + ///
  • sqlite3_column_text() followed by sqlite3_column_bytes()
  • + ///
  • sqlite3_column_blob() followed by sqlite3_column_bytes()
  • + ///
  • sqlite3_column_text16() followed by sqlite3_column_bytes16()
  • + ///
+ /// + /// In other words, you should call sqlite3_column_text(), + /// sqlite3_column_blob(), or sqlite3_column_text16() first to force the result + /// into the desired format, then invoke sqlite3_column_bytes() or + /// sqlite3_column_bytes16() to find the size of the result. Do not mix calls + /// to sqlite3_column_text() or sqlite3_column_blob() with calls to + /// sqlite3_column_bytes16(), and do not mix calls to sqlite3_column_text16() + /// with calls to sqlite3_column_bytes(). + /// + /// ^The pointers returned are valid until a type conversion occurs as + /// described above, or until [sqlite3_step()] or [sqlite3_reset()] or + /// [sqlite3_finalize()] is called. ^The memory space used to hold strings + /// and BLOBs is freed automatically. Do not pass the pointers returned + /// from [sqlite3_column_blob()], [sqlite3_column_text()], etc. into + /// [sqlite3_free()]. + /// + /// As long as the input parameters are correct, these routines will only + /// fail if an out-of-memory error occurs during a format conversion. + /// Only the following subset of interfaces are subject to out-of-memory + /// errors: + /// + ///
    + ///
  • sqlite3_column_blob() + ///
  • sqlite3_column_text() + ///
  • sqlite3_column_text16() + ///
  • sqlite3_column_bytes() + ///
  • sqlite3_column_bytes16() + ///
+ /// + /// If an out-of-memory error occurs, then the return value from these + /// routines is the same as if the column had contained an SQL NULL value. + /// Valid SQL NULL returns can be distinguished from out-of-memory errors + /// by invoking the [sqlite3_errcode()] immediately after the suspect + /// return value is obtained and before any + /// other SQLite interface is called on the same [database connection]. + ffi.Pointer sqlite3_column_blob( + ffi.Pointer arg0, + int iCol, + ) { + return _sqlite3_column_blob(arg0, iCol); + } + + late final _sqlite3_column_blobPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_blob'); + late final _sqlite3_column_blob = _sqlite3_column_blobPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + int sqlite3_column_bytes(ffi.Pointer arg0, int iCol) { + return _sqlite3_column_bytes(arg0, iCol); + } + + late final _sqlite3_column_bytesPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_column_bytes'); + late final _sqlite3_column_bytes = _sqlite3_column_bytesPtr + .asFunction, int)>(); + + int sqlite3_column_bytes16(ffi.Pointer arg0, int iCol) { + return _sqlite3_column_bytes16(arg0, iCol); + } + + late final _sqlite3_column_bytes16Ptr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_column_bytes16'); + late final _sqlite3_column_bytes16 = _sqlite3_column_bytes16Ptr + .asFunction, int)>(); + + /// CAPI3REF: Number Of Columns In A Result Set + /// METHOD: sqlite3_stmt + /// + /// ^Return the number of columns in the result set returned by the + /// [prepared statement]. ^If this routine returns 0, that means the + /// [prepared statement] returns no data (for example an [UPDATE]). + /// ^However, just because this routine returns a positive number does not + /// mean that one or more rows of data will be returned. ^A SELECT statement + /// will always have a positive sqlite3_column_count() but depending on the + /// WHERE clause constraints and the table content, it might return no rows. + /// + /// See also: [sqlite3_data_count()] + int sqlite3_column_count(ffi.Pointer pStmt) { + return _sqlite3_column_count(pStmt); + } + + late final _sqlite3_column_countPtr = + _lookup)>>( + 'sqlite3_column_count', + ); + late final _sqlite3_column_count = _sqlite3_column_countPtr + .asFunction)>(); + + /// CAPI3REF: Source Of Data In A Query Result + /// METHOD: sqlite3_stmt + /// + /// ^These routines provide a means to determine the database, table, and + /// table column that is the origin of a particular result column in + /// [SELECT] statement. + /// ^The name of the database or table or column can be returned as + /// either a UTF-8 or UTF-16 string. ^The _database_ routines return + /// the database name, the _table_ routines return the table name, and + /// the origin_ routines return the column name. + /// ^The returned string is valid until the [prepared statement] is destroyed + /// using [sqlite3_finalize()] or until the statement is automatically + /// reprepared by the first call to [sqlite3_step()] for a particular run + /// or until the same information is requested + /// again in a different encoding. + /// + /// ^The names returned are the original un-aliased names of the + /// database, table, and column. + /// + /// ^The first argument to these interfaces is a [prepared statement]. + /// ^These functions return information about the Nth result column returned by + /// the statement, where N is the second function argument. + /// ^The left-most column is column 0 for these routines. + /// + /// ^If the Nth column returned by the statement is an expression or + /// subquery and is not a column value, then all of these functions return + /// NULL. ^These routines might also return NULL if a memory allocation error + /// occurs. ^Otherwise, they return the name of the attached database, table, + /// or column that query result column was extracted from. + /// + /// ^As with all other SQLite APIs, those whose names end with "16" return + /// UTF-16 encoded strings and the other functions return UTF-8. + /// + /// ^These APIs are only available if the library was compiled with the + /// [SQLITE_ENABLE_COLUMN_METADATA] C-preprocessor symbol. + /// + /// If two or more threads call one or more + /// [sqlite3_column_database_name | column metadata interfaces] + /// for the same [prepared statement] and result column + /// at the same time then the results are undefined. + ffi.Pointer sqlite3_column_database_name( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_column_database_name(arg0, arg1); + } + + late final _sqlite3_column_database_namePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_database_name'); + late final _sqlite3_column_database_name = _sqlite3_column_database_namePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + ffi.Pointer sqlite3_column_database_name16( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_column_database_name16(arg0, arg1); + } + + late final _sqlite3_column_database_name16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_database_name16'); + late final _sqlite3_column_database_name16 = + _sqlite3_column_database_name16Ptr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + /// CAPI3REF: Declared Datatype Of A Query Result + /// METHOD: sqlite3_stmt + /// + /// ^(The first parameter is a [prepared statement]. + /// If this statement is a [SELECT] statement and the Nth column of the + /// returned result set of that [SELECT] is a table column (not an + /// expression or subquery) then the declared type of the table + /// column is returned.)^ ^If the Nth column of the result set is an + /// expression or subquery, then a NULL pointer is returned. + /// ^The returned string is always UTF-8 encoded. + /// + /// ^(For example, given the database schema: + /// + /// CREATE TABLE t1(c1 VARIANT); + /// + /// and the following statement to be compiled: + /// + /// SELECT c1 + 1, c1 FROM t1; + /// + /// this routine would return the string "VARIANT" for the second result + /// column (i==1), and a NULL pointer for the first result column (i==0).)^ + /// + /// ^SQLite uses dynamic run-time typing. ^So just because a column + /// is declared to contain a particular type does not mean that the + /// data stored in that column is of the declared type. SQLite is + /// strongly typed, but the typing is dynamic not static. ^Type + /// is associated with individual values, not with the containers + /// used to hold those values. + ffi.Pointer sqlite3_column_decltype( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_column_decltype(arg0, arg1); + } + + late final _sqlite3_column_decltypePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_decltype'); + late final _sqlite3_column_decltype = _sqlite3_column_decltypePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + ffi.Pointer sqlite3_column_decltype16( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_column_decltype16(arg0, arg1); + } + + late final _sqlite3_column_decltype16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_decltype16'); + late final _sqlite3_column_decltype16 = _sqlite3_column_decltype16Ptr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + double sqlite3_column_double(ffi.Pointer arg0, int iCol) { + return _sqlite3_column_double(arg0, iCol); + } + + late final _sqlite3_column_doublePtr = + _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_double'); + late final _sqlite3_column_double = _sqlite3_column_doublePtr + .asFunction, int)>(); + + int sqlite3_column_int(ffi.Pointer arg0, int iCol) { + return _sqlite3_column_int(arg0, iCol); + } + + late final _sqlite3_column_intPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_column_int'); + late final _sqlite3_column_int = _sqlite3_column_intPtr + .asFunction, int)>(); + + int sqlite3_column_int64(ffi.Pointer arg0, int iCol) { + return _sqlite3_column_int64(arg0, iCol); + } + + late final _sqlite3_column_int64Ptr = + _lookup< + ffi.NativeFunction< + sqlite3_int64 Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_int64'); + late final _sqlite3_column_int64 = _sqlite3_column_int64Ptr + .asFunction, int)>(); + + /// CAPI3REF: Column Names In A Result Set + /// METHOD: sqlite3_stmt + /// + /// ^These routines return the name assigned to a particular column + /// in the result set of a [SELECT] statement. ^The sqlite3_column_name() + /// interface returns a pointer to a zero-terminated UTF-8 string + /// and sqlite3_column_name16() returns a pointer to a zero-terminated + /// UTF-16 string. ^The first parameter is the [prepared statement] + /// that implements the [SELECT] statement. ^The second parameter is the + /// column number. ^The leftmost column is number 0. + /// + /// ^The returned string pointer is valid until either the [prepared statement] + /// is destroyed by [sqlite3_finalize()] or until the statement is automatically + /// reprepared by the first call to [sqlite3_step()] for a particular run + /// or until the next call to + /// sqlite3_column_name() or sqlite3_column_name16() on the same column. + /// + /// ^If sqlite3_malloc() fails during the processing of either routine + /// (for example during a conversion from UTF-8 to UTF-16) then a + /// NULL pointer is returned. + /// + /// ^The name of a result column is the value of the "AS" clause for + /// that column, if there is an AS clause. If there is no AS clause + /// then the name of the column is unspecified and may change from + /// one release of SQLite to the next. + ffi.Pointer sqlite3_column_name( + ffi.Pointer arg0, + int N, + ) { + return _sqlite3_column_name(arg0, N); + } + + late final _sqlite3_column_namePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_name'); + late final _sqlite3_column_name = _sqlite3_column_namePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + ffi.Pointer sqlite3_column_name16( + ffi.Pointer arg0, + int N, + ) { + return _sqlite3_column_name16(arg0, N); + } + + late final _sqlite3_column_name16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_name16'); + late final _sqlite3_column_name16 = _sqlite3_column_name16Ptr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + ffi.Pointer sqlite3_column_origin_name( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_column_origin_name(arg0, arg1); + } + + late final _sqlite3_column_origin_namePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_origin_name'); + late final _sqlite3_column_origin_name = _sqlite3_column_origin_namePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + ffi.Pointer sqlite3_column_origin_name16( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_column_origin_name16(arg0, arg1); + } + + late final _sqlite3_column_origin_name16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_origin_name16'); + late final _sqlite3_column_origin_name16 = _sqlite3_column_origin_name16Ptr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + ffi.Pointer sqlite3_column_table_name( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_column_table_name(arg0, arg1); + } + + late final _sqlite3_column_table_namePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_table_name'); + late final _sqlite3_column_table_name = _sqlite3_column_table_namePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + ffi.Pointer sqlite3_column_table_name16( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_column_table_name16(arg0, arg1); + } + + late final _sqlite3_column_table_name16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_table_name16'); + late final _sqlite3_column_table_name16 = _sqlite3_column_table_name16Ptr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + ffi.Pointer sqlite3_column_text( + ffi.Pointer arg0, + int iCol, + ) { + return _sqlite3_column_text(arg0, iCol); + } + + late final _sqlite3_column_textPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_column_text'); + late final _sqlite3_column_text = _sqlite3_column_textPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + ffi.Pointer sqlite3_column_text16( + ffi.Pointer arg0, + int iCol, + ) { + return _sqlite3_column_text16(arg0, iCol); + } + + late final _sqlite3_column_text16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_column_text16'); + late final _sqlite3_column_text16 = _sqlite3_column_text16Ptr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + int sqlite3_column_type(ffi.Pointer arg0, int iCol) { + return _sqlite3_column_type(arg0, iCol); + } + + late final _sqlite3_column_typePtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_column_type'); + late final _sqlite3_column_type = _sqlite3_column_typePtr + .asFunction, int)>(); + + ffi.Pointer sqlite3_column_value( + ffi.Pointer arg0, + int iCol, + ) { + return _sqlite3_column_value(arg0, iCol); + } + + late final _sqlite3_column_valuePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_column_value'); + late final _sqlite3_column_value = _sqlite3_column_valuePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + /// CAPI3REF: Commit And Rollback Notification Callbacks + /// METHOD: sqlite3 + /// + /// ^The sqlite3_commit_hook() interface registers a callback + /// function to be invoked whenever a transaction is [COMMIT | committed]. + /// ^Any callback set by a previous call to sqlite3_commit_hook() + /// for the same database connection is overridden. + /// ^The sqlite3_rollback_hook() interface registers a callback + /// function to be invoked whenever a transaction is [ROLLBACK | rolled back]. + /// ^Any callback set by a previous call to sqlite3_rollback_hook() + /// for the same database connection is overridden. + /// ^The pArg argument is passed through to the callback. + /// ^If the callback on a commit hook function returns non-zero, + /// then the commit is converted into a rollback. + /// + /// ^The sqlite3_commit_hook(D,C,P) and sqlite3_rollback_hook(D,C,P) functions + /// return the P argument from the previous call of the same function + /// on the same [database connection] D, or NULL for + /// the first call for each function on D. + /// + /// The commit and rollback hook callbacks are not reentrant. + /// The callback implementation must not do anything that will modify + /// the database connection that invoked the callback. Any actions + /// to modify the database connection must be deferred until after the + /// completion of the [sqlite3_step()] call that triggered the commit + /// or rollback hook in the first place. + /// Note that running any other SQL statements, including SELECT statements, + /// or merely calling [sqlite3_prepare_v2()] and [sqlite3_step()] will modify + /// the database connections for the meaning of "modify" in this paragraph. + /// + /// ^Registering a NULL function disables the callback. + /// + /// ^When the commit hook callback routine returns zero, the [COMMIT] + /// operation is allowed to continue normally. ^If the commit hook + /// returns non-zero, then the [COMMIT] is converted into a [ROLLBACK]. + /// ^The rollback hook is invoked on a rollback that results from a commit + /// hook returning non-zero, just as it would be with any other rollback. + /// + /// ^For the purposes of this API, a transaction is said to have been + /// rolled back if an explicit "ROLLBACK" statement is executed, or + /// an error or constraint causes an implicit rollback to occur. + /// ^The rollback callback is not invoked if a transaction is + /// automatically rolled back because the database connection is closed. + /// + /// See also the [sqlite3_update_hook()] interface. + ffi.Pointer sqlite3_commit_hook( + ffi.Pointer arg0, + ffi.Pointer)>> + arg1, + ffi.Pointer arg2, + ) { + return _sqlite3_commit_hook(arg0, arg1, arg2); + } + + late final _sqlite3_commit_hookPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + ) + > + >('sqlite3_commit_hook'); + late final _sqlite3_commit_hook = _sqlite3_commit_hookPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + ) + >(); + + ffi.Pointer sqlite3_compileoption_get(int N) { + return _sqlite3_compileoption_get(N); + } + + late final _sqlite3_compileoption_getPtr = + _lookup Function(ffi.Int)>>( + 'sqlite3_compileoption_get', + ); + late final _sqlite3_compileoption_get = _sqlite3_compileoption_getPtr + .asFunction Function(int)>(); + + int sqlite3_compileoption_used(ffi.Pointer zOptName) { + return _sqlite3_compileoption_used(zOptName); + } + + late final _sqlite3_compileoption_usedPtr = + _lookup)>>( + 'sqlite3_compileoption_used', + ); + late final _sqlite3_compileoption_used = _sqlite3_compileoption_usedPtr + .asFunction)>(); + + /// CAPI3REF: Determine If An SQL Statement Is Complete + /// + /// These routines are useful during command-line input to determine if the + /// currently entered text seems to form a complete SQL statement or + /// if additional input is needed before sending the text into + /// SQLite for parsing. ^These routines return 1 if the input string + /// appears to be a complete SQL statement. ^A statement is judged to be + /// complete if it ends with a semicolon token and is not a prefix of a + /// well-formed CREATE TRIGGER statement. ^Semicolons that are embedded within + /// string literals or quoted identifier names or comments are not + /// independent tokens (they are part of the token in which they are + /// embedded) and thus do not count as a statement terminator. ^Whitespace + /// and comments that follow the final semicolon are ignored. + /// + /// ^These routines return 0 if the statement is incomplete. ^If a + /// memory allocation fails, then SQLITE_NOMEM is returned. + /// + /// ^These routines do not parse the SQL statements thus + /// will not detect syntactically incorrect SQL. + /// + /// ^(If SQLite has not been initialized using [sqlite3_initialize()] prior + /// to invoking sqlite3_complete16() then sqlite3_initialize() is invoked + /// automatically by sqlite3_complete16(). If that initialization fails, + /// then the return value from sqlite3_complete16() will be non-zero + /// regardless of whether or not the input SQL is complete.)^ + /// + /// The input to [sqlite3_complete()] must be a zero-terminated + /// UTF-8 string. + /// + /// The input to [sqlite3_complete16()] must be a zero-terminated + /// UTF-16 string in native byte order. + int sqlite3_complete(ffi.Pointer sql) { + return _sqlite3_complete(sql); + } + + late final _sqlite3_completePtr = + _lookup)>>( + 'sqlite3_complete', + ); + late final _sqlite3_complete = _sqlite3_completePtr + .asFunction)>(); + + int sqlite3_complete16(ffi.Pointer sql) { + return _sqlite3_complete16(sql); + } + + late final _sqlite3_complete16Ptr = + _lookup)>>( + 'sqlite3_complete16', + ); + late final _sqlite3_complete16 = _sqlite3_complete16Ptr + .asFunction)>(); + + /// CAPI3REF: Configuring The SQLite Library + /// + /// The sqlite3_config() interface is used to make global configuration + /// changes to SQLite in order to tune SQLite to the specific needs of + /// the application. The default configuration is recommended for most + /// applications and so this routine is usually not necessary. It is + /// provided to support rare applications with unusual needs. + /// + /// The sqlite3_config() interface is not threadsafe. The application + /// must ensure that no other SQLite interfaces are invoked by other + /// threads while sqlite3_config() is running. + /// + /// The sqlite3_config() interface + /// may only be invoked prior to library initialization using + /// [sqlite3_initialize()] or after shutdown by [sqlite3_shutdown()]. + /// ^If sqlite3_config() is called after [sqlite3_initialize()] and before + /// [sqlite3_shutdown()] then it will return SQLITE_MISUSE. + /// Note, however, that ^sqlite3_config() can be called as part of the + /// implementation of an application-defined [sqlite3_os_init()]. + /// + /// The first argument to sqlite3_config() is an integer + /// [configuration option] that determines + /// what property of SQLite is to be configured. Subsequent arguments + /// vary depending on the [configuration option] + /// in the first argument. + /// + /// ^When a configuration option is set, sqlite3_config() returns [SQLITE_OK]. + /// ^If the option is unknown or SQLite is unable to set the option + /// then this routine returns a non-zero [error code]. + int sqlite3_config(int arg0) { + return _sqlite3_config(arg0); + } + + late final _sqlite3_configPtr = + _lookup>('sqlite3_config'); + late final _sqlite3_config = _sqlite3_configPtr + .asFunction(); + + /// CAPI3REF: Database Connection For Functions + /// METHOD: sqlite3_context + /// + /// ^The sqlite3_context_db_handle() interface returns a copy of + /// the pointer to the [database connection] (the 1st parameter) + /// of the [sqlite3_create_function()] + /// and [sqlite3_create_function16()] routines that originally + /// registered the application defined function. + ffi.Pointer sqlite3_context_db_handle( + ffi.Pointer arg0, + ) { + return _sqlite3_context_db_handle(arg0); + } + + late final _sqlite3_context_db_handlePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_context_db_handle'); + late final _sqlite3_context_db_handle = _sqlite3_context_db_handlePtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); + + /// CAPI3REF: Define New Collating Sequences + /// METHOD: sqlite3 + /// + /// ^These functions add, remove, or modify a [collation] associated + /// with the [database connection] specified as the first argument. + /// + /// ^The name of the collation is a UTF-8 string + /// for sqlite3_create_collation() and sqlite3_create_collation_v2() + /// and a UTF-16 string in native byte order for sqlite3_create_collation16(). + /// ^Collation names that compare equal according to [sqlite3_strnicmp()] are + /// considered to be the same name. + /// + /// ^(The third argument (eTextRep) must be one of the constants: + ///
    + ///
  • [SQLITE_UTF8], + ///
  • [SQLITE_UTF16LE], + ///
  • [SQLITE_UTF16BE], + ///
  • [SQLITE_UTF16], or + ///
  • [SQLITE_UTF16_ALIGNED]. + ///
)^ + /// ^The eTextRep argument determines the encoding of strings passed + /// to the collating function callback, xCompare. + /// ^The [SQLITE_UTF16] and [SQLITE_UTF16_ALIGNED] values for eTextRep + /// force strings to be UTF16 with native byte order. + /// ^The [SQLITE_UTF16_ALIGNED] value for eTextRep forces strings to begin + /// on an even byte address. + /// + /// ^The fourth argument, pArg, is an application data pointer that is passed + /// through as the first argument to the collating function callback. + /// + /// ^The fifth argument, xCompare, is a pointer to the collating function. + /// ^Multiple collating functions can be registered using the same name but + /// with different eTextRep parameters and SQLite will use whichever + /// function requires the least amount of data transformation. + /// ^If the xCompare argument is NULL then the collating function is + /// deleted. ^When all collating functions having the same name are deleted, + /// that collation is no longer usable. + /// + /// ^The collating function callback is invoked with a copy of the pArg + /// application data pointer and with two strings in the encoding specified + /// by the eTextRep argument. The two integer parameters to the collating + /// function callback are the length of the two strings, in bytes. The collating + /// function must return an integer that is negative, zero, or positive + /// if the first string is less than, equal to, or greater than the second, + /// respectively. A collating function must always return the same answer + /// given the same inputs. If two or more collating functions are registered + /// to the same collation name (using different eTextRep values) then all + /// must give an equivalent answer when invoked with equivalent strings. + /// The collating function must obey the following properties for all + /// strings A, B, and C: + /// + ///
    + ///
  1. If A==B then B==A. + ///
  2. If A==B and B==C then A==C. + ///
  3. If A<B THEN B>A. + ///
  4. If A<B and B<C then A<C. + ///
+ /// + /// If a collating function fails any of the above constraints and that + /// collating function is registered and used, then the behavior of SQLite + /// is undefined. + /// + /// ^The sqlite3_create_collation_v2() works like sqlite3_create_collation() + /// with the addition that the xDestroy callback is invoked on pArg when + /// the collating function is deleted. + /// ^Collating functions are deleted when they are overridden by later + /// calls to the collation creation functions or when the + /// [database connection] is closed using [sqlite3_close()]. + /// + /// ^The xDestroy callback is not called if the + /// sqlite3_create_collation_v2() function fails. Applications that invoke + /// sqlite3_create_collation_v2() with a non-NULL xDestroy argument should + /// check the return code and dispose of the application data pointer + /// themselves rather than expecting SQLite to deal with it for them. + /// This is different from every other SQLite interface. The inconsistency + /// is unfortunate but cannot be changed without breaking backwards + /// compatibility. + /// + /// See also: [sqlite3_collation_needed()] and [sqlite3_collation_needed16()]. + int sqlite3_create_collation( + ffi.Pointer arg0, + ffi.Pointer zName, + int eTextRep, + ffi.Pointer pArg, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xCompare, + ) { + return _sqlite3_create_collation(arg0, zName, eTextRep, pArg, xCompare); + } + + late final _sqlite3_create_collationPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >, + ) + > + >('sqlite3_create_collation'); + late final _sqlite3_create_collation = _sqlite3_create_collationPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >, + ) + >(); + + int sqlite3_create_collation16( + ffi.Pointer arg0, + ffi.Pointer zName, + int eTextRep, + ffi.Pointer pArg, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xCompare, + ) { + return _sqlite3_create_collation16(arg0, zName, eTextRep, pArg, xCompare); + } + + late final _sqlite3_create_collation16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >, + ) + > + >('sqlite3_create_collation16'); + late final _sqlite3_create_collation16 = _sqlite3_create_collation16Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >, + ) + >(); + + int sqlite3_create_collation_v2( + ffi.Pointer arg0, + ffi.Pointer zName, + int eTextRep, + ffi.Pointer pArg, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xCompare, + ffi.Pointer)>> + xDestroy, + ) { + return _sqlite3_create_collation_v2( + arg0, + zName, + eTextRep, + pArg, + xCompare, + xDestroy, + ); + } + + late final _sqlite3_create_collation_v2Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_create_collation_v2'); + late final _sqlite3_create_collation_v2 = _sqlite3_create_collation_v2Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + /// CAPI3REF: Create and Destroy VFS Filenames + /// + /// These interfces are provided for use by [VFS shim] implementations and + /// are not useful outside of that context. + /// + /// The sqlite3_create_filename(D,J,W,N,P) allocates memory to hold a version of + /// database filename D with corresponding journal file J and WAL file W and + /// with N URI parameters key/values pairs in the array P. The result from + /// sqlite3_create_filename(D,J,W,N,P) is a pointer to a database filename that + /// is safe to pass to routines like: + ///
    + ///
  • [sqlite3_uri_parameter()], + ///
  • [sqlite3_uri_boolean()], + ///
  • [sqlite3_uri_int64()], + ///
  • [sqlite3_uri_key()], + ///
  • [sqlite3_filename_database()], + ///
  • [sqlite3_filename_journal()], or + ///
  • [sqlite3_filename_wal()]. + ///
+ /// If a memory allocation error occurs, sqlite3_create_filename() might + /// return a NULL pointer. The memory obtained from sqlite3_create_filename(X) + /// must be released by a corresponding call to sqlite3_free_filename(Y). + /// + /// The P parameter in sqlite3_create_filename(D,J,W,N,P) should be an array + /// of 2*N pointers to strings. Each pair of pointers in this array corresponds + /// to a key and value for a query parameter. The P parameter may be a NULL + /// pointer if N is zero. None of the 2*N pointers in the P array may be + /// NULL pointers and key pointers should not be empty strings. + /// None of the D, J, or W parameters to sqlite3_create_filename(D,J,W,N,P) may + /// be NULL pointers, though they can be empty strings. + /// + /// The sqlite3_free_filename(Y) routine releases a memory allocation + /// previously obtained from sqlite3_create_filename(). Invoking + /// sqlite3_free_filename(Y) where Y is a NULL pointer is a harmless no-op. + /// + /// If the Y parameter to sqlite3_free_filename(Y) is anything other + /// than a NULL pointer or a pointer previously acquired from + /// sqlite3_create_filename(), then bad things such as heap + /// corruption or segfaults may occur. The value Y should be + /// used again after sqlite3_free_filename(Y) has been called. This means + /// that if the [sqlite3_vfs.xOpen()] method of a VFS has been called using Y, + /// then the corresponding [sqlite3_module.xClose() method should also be + /// invoked prior to calling sqlite3_free_filename(Y). + ffi.Pointer sqlite3_create_filename( + ffi.Pointer zDatabase, + ffi.Pointer zJournal, + ffi.Pointer zWal, + int nParam, + ffi.Pointer> azParam, + ) { + return _sqlite3_create_filename(zDatabase, zJournal, zWal, nParam, azParam); + } + + late final _sqlite3_create_filenamePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >('sqlite3_create_filename'); + late final _sqlite3_create_filename = _sqlite3_create_filenamePtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); + + /// CAPI3REF: Create Or Redefine SQL Functions + /// KEYWORDS: {function creation routines} + /// METHOD: sqlite3 + /// + /// ^These functions (collectively known as "function creation routines") + /// are used to add SQL functions or aggregates or to redefine the behavior + /// of existing SQL functions or aggregates. The only differences between + /// the three "sqlite3_create_function*" routines are the text encoding + /// expected for the second parameter (the name of the function being + /// created) and the presence or absence of a destructor callback for + /// the application data pointer. Function sqlite3_create_window_function() + /// is similar, but allows the user to supply the extra callback functions + /// needed by [aggregate window functions]. + /// + /// ^The first parameter is the [database connection] to which the SQL + /// function is to be added. ^If an application uses more than one database + /// connection then application-defined SQL functions must be added + /// to each database connection separately. + /// + /// ^The second parameter is the name of the SQL function to be created or + /// redefined. ^The length of the name is limited to 255 bytes in a UTF-8 + /// representation, exclusive of the zero-terminator. ^Note that the name + /// length limit is in UTF-8 bytes, not characters nor UTF-16 bytes. + /// ^Any attempt to create a function with a longer name + /// will result in [SQLITE_MISUSE] being returned. + /// + /// ^The third parameter (nArg) + /// is the number of arguments that the SQL function or + /// aggregate takes. ^If this parameter is -1, then the SQL function or + /// aggregate may take any number of arguments between 0 and the limit + /// set by [sqlite3_limit]([SQLITE_LIMIT_FUNCTION_ARG]). If the third + /// parameter is less than -1 or greater than 127 then the behavior is + /// undefined. + /// + /// ^The fourth parameter, eTextRep, specifies what + /// [SQLITE_UTF8 | text encoding] this SQL function prefers for + /// its parameters. The application should set this parameter to + /// [SQLITE_UTF16LE] if the function implementation invokes + /// [sqlite3_value_text16le()] on an input, or [SQLITE_UTF16BE] if the + /// implementation invokes [sqlite3_value_text16be()] on an input, or + /// [SQLITE_UTF16] if [sqlite3_value_text16()] is used, or [SQLITE_UTF8] + /// otherwise. ^The same SQL function may be registered multiple times using + /// different preferred text encodings, with different implementations for + /// each encoding. + /// ^When multiple implementations of the same function are available, SQLite + /// will pick the one that involves the least amount of data conversion. + /// + /// ^The fourth parameter may optionally be ORed with [SQLITE_DETERMINISTIC] + /// to signal that the function will always return the same result given + /// the same inputs within a single SQL statement. Most SQL functions are + /// deterministic. The built-in [random()] SQL function is an example of a + /// function that is not deterministic. The SQLite query planner is able to + /// perform additional optimizations on deterministic functions, so use + /// of the [SQLITE_DETERMINISTIC] flag is recommended where possible. + /// + /// ^The fourth parameter may also optionally include the [SQLITE_DIRECTONLY] + /// flag, which if present prevents the function from being invoked from + /// within VIEWs, TRIGGERs, CHECK constraints, generated column expressions, + /// index expressions, or the WHERE clause of partial indexes. + /// + /// + /// For best security, the [SQLITE_DIRECTONLY] flag is recommended for + /// all application-defined SQL functions that do not need to be + /// used inside of triggers, view, CHECK constraints, or other elements of + /// the database schema. This flags is especially recommended for SQL + /// functions that have side effects or reveal internal application state. + /// Without this flag, an attacker might be able to modify the schema of + /// a database file to include invocations of the function with parameters + /// chosen by the attacker, which the application will then execute when + /// the database file is opened and read. + /// + /// + /// ^(The fifth parameter is an arbitrary pointer. The implementation of the + /// function can gain access to this pointer using [sqlite3_user_data()].)^ + /// + /// ^The sixth, seventh and eighth parameters passed to the three + /// "sqlite3_create_function*" functions, xFunc, xStep and xFinal, are + /// pointers to C-language functions that implement the SQL function or + /// aggregate. ^A scalar SQL function requires an implementation of the xFunc + /// callback only; NULL pointers must be passed as the xStep and xFinal + /// parameters. ^An aggregate SQL function requires an implementation of xStep + /// and xFinal and NULL pointer must be passed for xFunc. ^To delete an existing + /// SQL function or aggregate, pass NULL pointers for all three function + /// callbacks. + /// + /// ^The sixth, seventh, eighth and ninth parameters (xStep, xFinal, xValue + /// and xInverse) passed to sqlite3_create_window_function are pointers to + /// C-language callbacks that implement the new function. xStep and xFinal + /// must both be non-NULL. xValue and xInverse may either both be NULL, in + /// which case a regular aggregate function is created, or must both be + /// non-NULL, in which case the new function may be used as either an aggregate + /// or aggregate window function. More details regarding the implementation + /// of aggregate window functions are + /// [user-defined window functions|available here]. + /// + /// ^(If the final parameter to sqlite3_create_function_v2() or + /// sqlite3_create_window_function() is not NULL, then it is destructor for + /// the application data pointer. The destructor is invoked when the function + /// is deleted, either by being overloaded or when the database connection + /// closes.)^ ^The destructor is also invoked if the call to + /// sqlite3_create_function_v2() fails. ^When the destructor callback is + /// invoked, it is passed a single argument which is a copy of the application + /// data pointer which was the fifth parameter to sqlite3_create_function_v2(). + /// + /// ^It is permitted to register multiple implementations of the same + /// functions with the same name but with either differing numbers of + /// arguments or differing preferred text encodings. ^SQLite will use + /// the implementation that most closely matches the way in which the + /// SQL function is used. ^A function implementation with a non-negative + /// nArg parameter is a better match than a function implementation with + /// a negative nArg. ^A function where the preferred text encoding + /// matches the database encoding is a better + /// match than a function where the encoding is different. + /// ^A function where the encoding difference is between UTF16le and UTF16be + /// is a closer match than a function where the encoding difference is + /// between UTF8 and UTF16. + /// + /// ^Built-in functions may be overloaded by new application-defined functions. + /// + /// ^An application-defined function is permitted to call other + /// SQLite interfaces. However, such calls must not + /// close the database connection nor finalize or reset the prepared + /// statement in which the function is running. + int sqlite3_create_function( + ffi.Pointer db, + ffi.Pointer zFunctionName, + int nArg, + int eTextRep, + ffi.Pointer pApp, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + xFunc, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + xStep, + ffi.Pointer< + ffi.NativeFunction)> + > + xFinal, + ) { + return _sqlite3_create_function( + db, + zFunctionName, + nArg, + eTextRep, + pApp, + xFunc, + xStep, + xFinal, + ); + } + + late final _sqlite3_create_functionPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >, + ) + > + >('sqlite3_create_function'); + late final _sqlite3_create_function = _sqlite3_create_functionPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + int sqlite3_create_function16( + ffi.Pointer db, + ffi.Pointer zFunctionName, + int nArg, + int eTextRep, + ffi.Pointer pApp, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + xFunc, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + xStep, + ffi.Pointer< + ffi.NativeFunction)> + > + xFinal, + ) { + return _sqlite3_create_function16( + db, + zFunctionName, + nArg, + eTextRep, + pApp, + xFunc, + xStep, + xFinal, + ); + } + + late final _sqlite3_create_function16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >, + ) + > + >('sqlite3_create_function16'); + late final _sqlite3_create_function16 = _sqlite3_create_function16Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + int sqlite3_create_function_v2( + ffi.Pointer db, + ffi.Pointer zFunctionName, + int nArg, + int eTextRep, + ffi.Pointer pApp, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + xFunc, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + xStep, + ffi.Pointer< + ffi.NativeFunction)> + > + xFinal, + ffi.Pointer)>> + xDestroy, + ) { + return _sqlite3_create_function_v2( + db, + zFunctionName, + nArg, + eTextRep, + pApp, + xFunc, + xStep, + xFinal, + xDestroy, + ); + } + + late final _sqlite3_create_function_v2Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_create_function_v2'); + late final _sqlite3_create_function_v2 = _sqlite3_create_function_v2Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + /// CAPI3REF: Register A Virtual Table Implementation + /// METHOD: sqlite3 + /// + /// ^These routines are used to register a new [virtual table module] name. + /// ^Module names must be registered before + /// creating a new [virtual table] using the module and before using a + /// preexisting [virtual table] for the module. + /// + /// ^The module name is registered on the [database connection] specified + /// by the first parameter. ^The name of the module is given by the + /// second parameter. ^The third parameter is a pointer to + /// the implementation of the [virtual table module]. ^The fourth + /// parameter is an arbitrary client data pointer that is passed through + /// into the [xCreate] and [xConnect] methods of the virtual table module + /// when a new virtual table is be being created or reinitialized. + /// + /// ^The sqlite3_create_module_v2() interface has a fifth parameter which + /// is a pointer to a destructor for the pClientData. ^SQLite will + /// invoke the destructor function (if it is not NULL) when SQLite + /// no longer needs the pClientData pointer. ^The destructor will also + /// be invoked if the call to sqlite3_create_module_v2() fails. + /// ^The sqlite3_create_module() + /// interface is equivalent to sqlite3_create_module_v2() with a NULL + /// destructor. + /// + /// ^If the third parameter (the pointer to the sqlite3_module object) is + /// NULL then no new module is create and any existing modules with the + /// same name are dropped. + /// + /// See also: [sqlite3_drop_modules()] + int sqlite3_create_module( + ffi.Pointer db, + ffi.Pointer zName, + ffi.Pointer p, + ffi.Pointer pClientData, + ) { + return _sqlite3_create_module(db, zName, p, pClientData); + } + + late final _sqlite3_create_modulePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_create_module'); + late final _sqlite3_create_module = _sqlite3_create_modulePtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + int sqlite3_create_module_v2( + ffi.Pointer db, + ffi.Pointer zName, + ffi.Pointer p, + ffi.Pointer pClientData, + ffi.Pointer)>> + xDestroy, + ) { + return _sqlite3_create_module_v2(db, zName, p, pClientData, xDestroy); + } + + late final _sqlite3_create_module_v2Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_create_module_v2'); + late final _sqlite3_create_module_v2 = _sqlite3_create_module_v2Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + int sqlite3_create_window_function( + ffi.Pointer db, + ffi.Pointer zFunctionName, + int nArg, + int eTextRep, + ffi.Pointer pApp, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + xStep, + ffi.Pointer< + ffi.NativeFunction)> + > + xFinal, + ffi.Pointer< + ffi.NativeFunction)> + > + xValue, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + xInverse, + ffi.Pointer)>> + xDestroy, + ) { + return _sqlite3_create_window_function( + db, + zFunctionName, + nArg, + eTextRep, + pApp, + xStep, + xFinal, + xValue, + xInverse, + xDestroy, + ); + } + + late final _sqlite3_create_window_functionPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_create_window_function'); + late final _sqlite3_create_window_function = + _sqlite3_create_window_functionPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + >, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + /// CAPI3REF: Number of columns in a result set + /// METHOD: sqlite3_stmt + /// + /// ^The sqlite3_data_count(P) interface returns the number of columns in the + /// current row of the result set of [prepared statement] P. + /// ^If prepared statement P does not have results ready to return + /// (via calls to the [sqlite3_column_int | sqlite3_column()] family of + /// interfaces) then sqlite3_data_count(P) returns 0. + /// ^The sqlite3_data_count(P) routine also returns 0 if P is a NULL pointer. + /// ^The sqlite3_data_count(P) routine returns 0 if the previous call to + /// [sqlite3_step](P) returned [SQLITE_DONE]. ^The sqlite3_data_count(P) + /// will return non-zero if previous call to [sqlite3_step](P) returned + /// [SQLITE_ROW], except in the case of the [PRAGMA incremental_vacuum] + /// where it always returns zero since each step of that multi-step + /// pragma returns 0 columns of data. + /// + /// See also: [sqlite3_column_count()] + int sqlite3_data_count(ffi.Pointer pStmt) { + return _sqlite3_data_count(pStmt); + } + + late final _sqlite3_data_countPtr = + _lookup)>>( + 'sqlite3_data_count', + ); + late final _sqlite3_data_count = _sqlite3_data_countPtr + .asFunction)>(); + + /// CAPI3REF: Name Of The Folder Holding Database Files + /// + /// ^(If this global variable is made to point to a string which is + /// the name of a folder (a.k.a. directory), then all database files + /// specified with a relative pathname and created or accessed by + /// SQLite when using a built-in windows [sqlite3_vfs | VFS] will be assumed + /// to be relative to that directory.)^ ^If this variable is a NULL + /// pointer, then SQLite assumes that all database files specified + /// with a relative pathname are relative to the current directory + /// for the process. Only the windows VFS makes use of this global + /// variable; it is ignored by the unix VFS. + /// + /// Changing the value of this variable while a database connection is + /// open can result in a corrupt database. + /// + /// It is not safe to read or modify this variable in more than one + /// thread at a time. It is not safe to read or modify this variable + /// if a [database connection] is being used at the same time in a separate + /// thread. + /// It is intended that this variable be set once + /// as part of process initialization and before any SQLite interface + /// routines have been called and that this variable remain unchanged + /// thereafter. + /// + /// ^The [data_store_directory pragma] may modify this variable and cause + /// it to point to memory obtained from [sqlite3_malloc]. ^Furthermore, + /// the [data_store_directory pragma] always assumes that any string + /// that this variable points to is held in memory obtained from + /// [sqlite3_malloc] and the pragma may attempt to free that memory + /// using [sqlite3_free]. + /// Hence, if this variable is modified directly, either it should be + /// made NULL or made to point to memory obtained from [sqlite3_malloc] + /// or else the use of the [data_store_directory pragma] should be avoided. + late final ffi.Pointer> _sqlite3_data_directory = + _lookup>('sqlite3_data_directory'); + + ffi.Pointer get sqlite3_data_directory => + _sqlite3_data_directory.value; + + set sqlite3_data_directory(ffi.Pointer value) => + _sqlite3_data_directory.value = value; + + /// CAPI3REF: Database File Corresponding To A Journal + /// + /// ^If X is the name of a rollback or WAL-mode journal file that is + /// passed into the xOpen method of [sqlite3_vfs], then + /// sqlite3_database_file_object(X) returns a pointer to the [sqlite3_file] + /// object that represents the main database file. + /// + /// This routine is intended for use in custom [VFS] implementations + /// only. It is not a general-purpose interface. + /// The argument sqlite3_file_object(X) must be a filename pointer that + /// has been passed into [sqlite3_vfs].xOpen method where the + /// flags parameter to xOpen contains one of the bits + /// [SQLITE_OPEN_MAIN_JOURNAL] or [SQLITE_OPEN_WAL]. Any other use + /// of this routine results in undefined and probably undesirable + /// behavior. + ffi.Pointer sqlite3_database_file_object( + ffi.Pointer arg0, + ) { + return _sqlite3_database_file_object(arg0); + } + + late final _sqlite3_database_file_objectPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_database_file_object'); + late final _sqlite3_database_file_object = _sqlite3_database_file_objectPtr + .asFunction Function(ffi.Pointer)>(); + + /// CAPI3REF: Flush caches to disk mid-transaction + /// + /// ^If a write-transaction is open on [database connection] D when the + /// [sqlite3_db_cacheflush(D)] interface invoked, any dirty + /// pages in the pager-cache that are not currently in use are written out + /// to disk. A dirty page may be in use if a database cursor created by an + /// active SQL statement is reading from it, or if it is page 1 of a database + /// file (page 1 is always "in use"). ^The [sqlite3_db_cacheflush(D)] + /// interface flushes caches for all schemas - "main", "temp", and + /// any [attached] databases. + /// + /// ^If this function needs to obtain extra database locks before dirty pages + /// can be flushed to disk, it does so. ^If those locks cannot be obtained + /// immediately and there is a busy-handler callback configured, it is invoked + /// in the usual manner. ^If the required lock still cannot be obtained, then + /// the database is skipped and an attempt made to flush any dirty pages + /// belonging to the next (if any) database. ^If any databases are skipped + /// because locks cannot be obtained, but no other error occurs, this + /// function returns SQLITE_BUSY. + /// + /// ^If any other error occurs while flushing dirty pages to disk (for + /// example an IO error or out-of-memory condition), then processing is + /// abandoned and an SQLite [error code] is returned to the caller immediately. + /// + /// ^Otherwise, if no error occurs, [sqlite3_db_cacheflush()] returns SQLITE_OK. + /// + /// ^This function does not set the database handle error code or message + /// returned by the [sqlite3_errcode()] and [sqlite3_errmsg()] functions. + int sqlite3_db_cacheflush(ffi.Pointer arg0) { + return _sqlite3_db_cacheflush(arg0); + } + + late final _sqlite3_db_cacheflushPtr = + _lookup)>>( + 'sqlite3_db_cacheflush', + ); + late final _sqlite3_db_cacheflush = _sqlite3_db_cacheflushPtr + .asFunction)>(); + + /// CAPI3REF: Configure database connections + /// METHOD: sqlite3 + /// + /// The sqlite3_db_config() interface is used to make configuration + /// changes to a [database connection]. The interface is similar to + /// [sqlite3_config()] except that the changes apply to a single + /// [database connection] (specified in the first argument). + /// + /// The second argument to sqlite3_db_config(D,V,...) is the + /// [SQLITE_DBCONFIG_LOOKASIDE | configuration verb] - an integer code + /// that indicates what aspect of the [database connection] is being configured. + /// Subsequent arguments vary depending on the configuration verb. + /// + /// ^Calls to sqlite3_db_config() return SQLITE_OK if and only if + /// the call is considered successful. + int sqlite3_db_config(ffi.Pointer arg0, int op) { + return _sqlite3_db_config(arg0, op); + } + + late final _sqlite3_db_configPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_db_config'); + late final _sqlite3_db_config = _sqlite3_db_configPtr + .asFunction, int)>(); + + /// CAPI3REF: Return The Filename For A Database Connection + /// METHOD: sqlite3 + /// + /// ^The sqlite3_db_filename(D,N) interface returns a pointer to the filename + /// associated with database N of connection D. + /// ^If there is no attached database N on the database + /// connection D, or if database N is a temporary or in-memory database, then + /// this function will return either a NULL pointer or an empty string. + /// + /// ^The string value returned by this routine is owned and managed by + /// the database connection. ^The value will be valid until the database N + /// is [DETACH]-ed or until the database connection closes. + /// + /// ^The filename returned by this function is the output of the + /// xFullPathname method of the [VFS]. ^In other words, the filename + /// will be an absolute pathname, even if the filename used + /// to open the database originally was a URI or relative pathname. + /// + /// If the filename pointer returned by this routine is not NULL, then it + /// can be used as the filename input parameter to these routines: + ///
    + ///
  • [sqlite3_uri_parameter()] + ///
  • [sqlite3_uri_boolean()] + ///
  • [sqlite3_uri_int64()] + ///
  • [sqlite3_filename_database()] + ///
  • [sqlite3_filename_journal()] + ///
  • [sqlite3_filename_wal()] + ///
+ ffi.Pointer sqlite3_db_filename( + ffi.Pointer db, + ffi.Pointer zDbName, + ) { + return _sqlite3_db_filename(db, zDbName); + } + + late final _sqlite3_db_filenamePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_db_filename'); + late final _sqlite3_db_filename = _sqlite3_db_filenamePtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Find The Database Handle Of A Prepared Statement + /// METHOD: sqlite3_stmt + /// + /// ^The sqlite3_db_handle interface returns the [database connection] handle + /// to which a [prepared statement] belongs. ^The [database connection] + /// returned by sqlite3_db_handle is the same [database connection] + /// that was the first argument + /// to the [sqlite3_prepare_v2()] call (or its variants) that was used to + /// create the statement in the first place. + ffi.Pointer sqlite3_db_handle(ffi.Pointer arg0) { + return _sqlite3_db_handle(arg0); + } + + late final _sqlite3_db_handlePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_db_handle'); + late final _sqlite3_db_handle = _sqlite3_db_handlePtr + .asFunction Function(ffi.Pointer)>(); + + /// CAPI3REF: Retrieve the mutex for a database connection + /// METHOD: sqlite3 + /// + /// ^This interface returns a pointer the [sqlite3_mutex] object that + /// serializes access to the [database connection] given in the argument + /// when the [threading mode] is Serialized. + /// ^If the [threading mode] is Single-thread or Multi-thread then this + /// routine returns a NULL pointer. + ffi.Pointer sqlite3_db_mutex(ffi.Pointer arg0) { + return _sqlite3_db_mutex(arg0); + } + + late final _sqlite3_db_mutexPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_db_mutex'); + late final _sqlite3_db_mutex = _sqlite3_db_mutexPtr + .asFunction Function(ffi.Pointer)>(); + + /// CAPI3REF: Determine if a database is read-only + /// METHOD: sqlite3 + /// + /// ^The sqlite3_db_readonly(D,N) interface returns 1 if the database N + /// of connection D is read-only, 0 if it is read/write, or -1 if N is not + /// the name of a database on connection D. + int sqlite3_db_readonly( + ffi.Pointer db, + ffi.Pointer zDbName, + ) { + return _sqlite3_db_readonly(db, zDbName); + } + + late final _sqlite3_db_readonlyPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sqlite3_db_readonly'); + late final _sqlite3_db_readonly = _sqlite3_db_readonlyPtr + .asFunction, ffi.Pointer)>(); + + /// CAPI3REF: Free Memory Used By A Database Connection + /// METHOD: sqlite3 + /// + /// ^The sqlite3_db_release_memory(D) interface attempts to free as much heap + /// memory as possible from database connection D. Unlike the + /// [sqlite3_release_memory()] interface, this interface is in effect even + /// when the [SQLITE_ENABLE_MEMORY_MANAGEMENT] compile-time option is + /// omitted. + /// + /// See also: [sqlite3_release_memory()] + int sqlite3_db_release_memory(ffi.Pointer arg0) { + return _sqlite3_db_release_memory(arg0); + } + + late final _sqlite3_db_release_memoryPtr = + _lookup)>>( + 'sqlite3_db_release_memory', + ); + late final _sqlite3_db_release_memory = _sqlite3_db_release_memoryPtr + .asFunction)>(); + + /// CAPI3REF: Database Connection Status + /// METHOD: sqlite3 + /// + /// ^This interface is used to retrieve runtime status information + /// about a single [database connection]. ^The first argument is the + /// database connection object to be interrogated. ^The second argument + /// is an integer constant, taken from the set of + /// [SQLITE_DBSTATUS options], that + /// determines the parameter to interrogate. The set of + /// [SQLITE_DBSTATUS options] is likely + /// to grow in future releases of SQLite. + /// + /// ^The current value of the requested parameter is written into *pCur + /// and the highest instantaneous value is written into *pHiwtr. ^If + /// the resetFlg is true, then the highest instantaneous value is + /// reset back down to the current value. + /// + /// ^The sqlite3_db_status() routine returns SQLITE_OK on success and a + /// non-zero [error code] on failure. + /// + /// See also: [sqlite3_status()] and [sqlite3_stmt_status()]. + int sqlite3_db_status( + ffi.Pointer arg0, + int op, + ffi.Pointer pCur, + ffi.Pointer pHiwtr, + int resetFlg, + ) { + return _sqlite3_db_status(arg0, op, pCur, pHiwtr, resetFlg); + } + + late final _sqlite3_db_statusPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_db_status'); + late final _sqlite3_db_status = _sqlite3_db_statusPtr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + /// CAPI3REF: Declare The Schema Of A Virtual Table + /// + /// ^The [xCreate] and [xConnect] methods of a + /// [virtual table module] call this interface + /// to declare the format (the names and datatypes of the columns) of + /// the virtual tables they implement. + int sqlite3_declare_vtab( + ffi.Pointer arg0, + ffi.Pointer zSQL, + ) { + return _sqlite3_declare_vtab(arg0, zSQL); + } + + late final _sqlite3_declare_vtabPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sqlite3_declare_vtab'); + late final _sqlite3_declare_vtab = _sqlite3_declare_vtabPtr + .asFunction, ffi.Pointer)>(); + + /// CAPI3REF: Deserialize a database + /// + /// The sqlite3_deserialize(D,S,P,N,M,F) interface causes the + /// [database connection] D to disconnect from database S and then + /// reopen S as an in-memory database based on the serialization contained + /// in P. The serialized database P is N bytes in size. M is the size of + /// the buffer P, which might be larger than N. If M is larger than N, and + /// the SQLITE_DESERIALIZE_READONLY bit is not set in F, then SQLite is + /// permitted to add content to the in-memory database as long as the total + /// size does not exceed M bytes. + /// + /// If the SQLITE_DESERIALIZE_FREEONCLOSE bit is set in F, then SQLite will + /// invoke sqlite3_free() on the serialization buffer when the database + /// connection closes. If the SQLITE_DESERIALIZE_RESIZEABLE bit is set, then + /// SQLite will try to increase the buffer size using sqlite3_realloc64() + /// if writes on the database cause it to grow larger than M bytes. + /// + /// The sqlite3_deserialize() interface will fail with SQLITE_BUSY if the + /// database is currently in a read transaction or is involved in a backup + /// operation. + /// + /// If sqlite3_deserialize(D,S,P,N,M,F) fails for any reason and if the + /// SQLITE_DESERIALIZE_FREEONCLOSE bit is set in argument F, then + /// [sqlite3_free()] is invoked on argument P prior to returning. + /// + /// This interface is only available if SQLite is compiled with the + /// [SQLITE_ENABLE_DESERIALIZE] option. + int sqlite3_deserialize( + ffi.Pointer db, + ffi.Pointer zSchema, + ffi.Pointer pData, + int szDb, + int szBuf, + int mFlags, + ) { + return _sqlite3_deserialize(db, zSchema, pData, szDb, szBuf, mFlags); + } + + late final _sqlite3_deserializePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + sqlite3_int64, + sqlite3_int64, + ffi.UnsignedInt, + ) + > + >('sqlite3_deserialize'); + late final _sqlite3_deserialize = _sqlite3_deserializePtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >(); + + /// CAPI3REF: Remove Unnecessary Virtual Table Implementations + /// METHOD: sqlite3 + /// + /// ^The sqlite3_drop_modules(D,L) interface removes all virtual + /// table modules from database connection D except those named on list L. + /// The L parameter must be either NULL or a pointer to an array of pointers + /// to strings where the array is terminated by a single NULL pointer. + /// ^If the L parameter is NULL, then all virtual table modules are removed. + /// + /// See also: [sqlite3_create_module()] + int sqlite3_drop_modules( + ffi.Pointer db, + ffi.Pointer> azKeep, + ) { + return _sqlite3_drop_modules(db, azKeep); + } + + late final _sqlite3_drop_modulesPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + >('sqlite3_drop_modules'); + late final _sqlite3_drop_modules = _sqlite3_drop_modulesPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer>) + >(); + + /// CAPI3REF: Enable Or Disable Extension Loading + /// METHOD: sqlite3 + /// + /// ^So as not to open security holes in older applications that are + /// unprepared to deal with [extension loading], and as a means of disabling + /// [extension loading] while evaluating user-entered SQL, the following API + /// is provided to turn the [sqlite3_load_extension()] mechanism on and off. + /// + /// ^Extension loading is off by default. + /// ^Call the sqlite3_enable_load_extension() routine with onoff==1 + /// to turn extension loading on and call it with onoff==0 to turn + /// it back off again. + /// + /// ^This interface enables or disables both the C-API + /// [sqlite3_load_extension()] and the SQL function [load_extension()]. + /// ^(Use [sqlite3_db_config](db,[SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION],..) + /// to enable or disable only the C-API.)^ + /// + /// Security warning: It is recommended that extension loading + /// be enabled using the [SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION] method + /// rather than this interface, so the [load_extension()] SQL function + /// remains disabled. This will prevent SQL injections from giving attackers + /// access to extension loading capabilities. + int sqlite3_enable_load_extension(ffi.Pointer db, int onoff) { + return _sqlite3_enable_load_extension(db, onoff); + } + + late final _sqlite3_enable_load_extensionPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_enable_load_extension'); + late final _sqlite3_enable_load_extension = _sqlite3_enable_load_extensionPtr + .asFunction, int)>(); + + /// CAPI3REF: Enable Or Disable Shared Pager Cache + /// + /// ^(This routine enables or disables the sharing of the database cache + /// and schema data structures between [database connection | connections] + /// to the same database. Sharing is enabled if the argument is true + /// and disabled if the argument is false.)^ + /// + /// ^Cache sharing is enabled and disabled for an entire process. + /// This is a change as of SQLite [version 3.5.0] ([dateof:3.5.0]). + /// In prior versions of SQLite, + /// sharing was enabled or disabled for each thread separately. + /// + /// ^(The cache sharing mode set by this interface effects all subsequent + /// calls to [sqlite3_open()], [sqlite3_open_v2()], and [sqlite3_open16()]. + /// Existing database connections continue to use the sharing mode + /// that was in effect at the time they were opened.)^ + /// + /// ^(This routine returns [SQLITE_OK] if shared cache was enabled or disabled + /// successfully. An [error code] is returned otherwise.)^ + /// + /// ^Shared cache is disabled by default. It is recommended that it stay + /// that way. In other words, do not use this routine. This interface + /// continues to be provided for historical compatibility, but its use is + /// discouraged. Any use of shared cache is discouraged. If shared cache + /// must be used, it is recommended that shared cache only be enabled for + /// individual database connections using the [sqlite3_open_v2()] interface + /// with the [SQLITE_OPEN_SHAREDCACHE] flag. + /// + /// Note: This method is disabled on MacOS X 10.7 and iOS version 5.0 + /// and will always return SQLITE_MISUSE. On those systems, + /// shared cache mode should be enabled per-database connection via + /// [sqlite3_open_v2()] with [SQLITE_OPEN_SHAREDCACHE]. + /// + /// This interface is threadsafe on processors where writing a + /// 32-bit integer is atomic. + /// + /// See Also: [SQLite Shared-Cache Mode] + int sqlite3_enable_shared_cache(int arg0) { + return _sqlite3_enable_shared_cache(arg0); + } + + late final _sqlite3_enable_shared_cachePtr = + _lookup>( + 'sqlite3_enable_shared_cache', + ); + late final _sqlite3_enable_shared_cache = _sqlite3_enable_shared_cachePtr + .asFunction(); + + /// CAPI3REF: Error Codes And Messages + /// METHOD: sqlite3 + /// + /// ^If the most recent sqlite3_* API call associated with + /// [database connection] D failed, then the sqlite3_errcode(D) interface + /// returns the numeric [result code] or [extended result code] for that + /// API call. + /// ^The sqlite3_extended_errcode() + /// interface is the same except that it always returns the + /// [extended result code] even when extended result codes are + /// disabled. + /// + /// The values returned by sqlite3_errcode() and/or + /// sqlite3_extended_errcode() might change with each API call. + /// Except, there are some interfaces that are guaranteed to never + /// change the value of the error code. The error-code preserving + /// interfaces are: + /// + ///
    + ///
  • sqlite3_errcode() + ///
  • sqlite3_extended_errcode() + ///
  • sqlite3_errmsg() + ///
  • sqlite3_errmsg16() + ///
+ /// + /// ^The sqlite3_errmsg() and sqlite3_errmsg16() return English-language + /// text that describes the error, as either UTF-8 or UTF-16 respectively. + /// ^(Memory to hold the error message string is managed internally. + /// The application does not need to worry about freeing the result. + /// However, the error string might be overwritten or deallocated by + /// subsequent calls to other SQLite interface functions.)^ + /// + /// ^The sqlite3_errstr() interface returns the English-language text + /// that describes the [result code], as UTF-8. + /// ^(Memory to hold the error message string is managed internally + /// and must not be freed by the application)^. + /// + /// When the serialized [threading mode] is in use, it might be the + /// case that a second error occurs on a separate thread in between + /// the time of the first error and the call to these interfaces. + /// When that happens, the second error will be reported since these + /// interfaces always report the most recent result. To avoid + /// this, each thread can obtain exclusive use of the [database connection] D + /// by invoking [sqlite3_mutex_enter]([sqlite3_db_mutex](D)) before beginning + /// to use D and invoking [sqlite3_mutex_leave]([sqlite3_db_mutex](D)) after + /// all calls to the interfaces listed here are completed. + /// + /// If an interface fails with SQLITE_MISUSE, that means the interface + /// was invoked incorrectly by the application. In that case, the + /// error code and message may or may not be set. + int sqlite3_errcode(ffi.Pointer db) { + return _sqlite3_errcode(db); + } + + late final _sqlite3_errcodePtr = + _lookup)>>( + 'sqlite3_errcode', + ); + late final _sqlite3_errcode = _sqlite3_errcodePtr + .asFunction)>(); + + ffi.Pointer sqlite3_errmsg(ffi.Pointer arg0) { + return _sqlite3_errmsg(arg0); + } + + late final _sqlite3_errmsgPtr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('sqlite3_errmsg'); + late final _sqlite3_errmsg = _sqlite3_errmsgPtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer sqlite3_errmsg16(ffi.Pointer arg0) { + return _sqlite3_errmsg16(arg0); + } + + late final _sqlite3_errmsg16Ptr = + _lookup< + ffi.NativeFunction Function(ffi.Pointer)> + >('sqlite3_errmsg16'); + late final _sqlite3_errmsg16 = _sqlite3_errmsg16Ptr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer sqlite3_errstr(int arg0) { + return _sqlite3_errstr(arg0); + } + + late final _sqlite3_errstrPtr = + _lookup Function(ffi.Int)>>( + 'sqlite3_errstr', + ); + late final _sqlite3_errstr = _sqlite3_errstrPtr + .asFunction Function(int)>(); + + /// CAPI3REF: One-Step Query Execution Interface + /// METHOD: sqlite3 + /// + /// The sqlite3_exec() interface is a convenience wrapper around + /// [sqlite3_prepare_v2()], [sqlite3_step()], and [sqlite3_finalize()], + /// that allows an application to run multiple statements of SQL + /// without having to use a lot of C code. + /// + /// ^The sqlite3_exec() interface runs zero or more UTF-8 encoded, + /// semicolon-separate SQL statements passed into its 2nd argument, + /// in the context of the [database connection] passed in as its 1st + /// argument. ^If the callback function of the 3rd argument to + /// sqlite3_exec() is not NULL, then it is invoked for each result row + /// coming out of the evaluated SQL statements. ^The 4th argument to + /// sqlite3_exec() is relayed through to the 1st argument of each + /// callback invocation. ^If the callback pointer to sqlite3_exec() + /// is NULL, then no callback is ever invoked and result rows are + /// ignored. + /// + /// ^If an error occurs while evaluating the SQL statements passed into + /// sqlite3_exec(), then execution of the current statement stops and + /// subsequent statements are skipped. ^If the 5th parameter to sqlite3_exec() + /// is not NULL then any error message is written into memory obtained + /// from [sqlite3_malloc()] and passed back through the 5th parameter. + /// To avoid memory leaks, the application should invoke [sqlite3_free()] + /// on error message strings returned through the 5th parameter of + /// sqlite3_exec() after the error message string is no longer needed. + /// ^If the 5th parameter to sqlite3_exec() is not NULL and no errors + /// occur, then sqlite3_exec() sets the pointer in its 5th parameter to + /// NULL before returning. + /// + /// ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec() + /// routine returns SQLITE_ABORT without invoking the callback again and + /// without running any subsequent SQL statements. + /// + /// ^The 2nd argument to the sqlite3_exec() callback function is the + /// number of columns in the result. ^The 3rd argument to the sqlite3_exec() + /// callback is an array of pointers to strings obtained as if from + /// [sqlite3_column_text()], one for each column. ^If an element of a + /// result row is NULL then the corresponding string pointer for the + /// sqlite3_exec() callback is a NULL pointer. ^The 4th argument to the + /// sqlite3_exec() callback is an array of pointers to strings where each + /// entry represents the name of corresponding result column as obtained + /// from [sqlite3_column_name()]. + /// + /// ^If the 2nd parameter to sqlite3_exec() is a NULL pointer, a pointer + /// to an empty string, or a pointer that contains only whitespace and/or + /// SQL comments, then no SQL statements are evaluated and the database + /// is not changed. + /// + /// Restrictions: + /// + ///
    + ///
  • The application must ensure that the 1st parameter to sqlite3_exec() + /// is a valid and open [database connection]. + ///
  • The application must not close the [database connection] specified by + /// the 1st parameter to sqlite3_exec() while sqlite3_exec() is running. + ///
  • The application must not modify the SQL statement text passed into + /// the 2nd parameter of sqlite3_exec() while sqlite3_exec() is running. + ///
+ int sqlite3_exec( + ffi.Pointer arg0, + ffi.Pointer sql, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ) + > + > + callback, + ffi.Pointer arg3, + ffi.Pointer> errmsg, + ) { + return _sqlite3_exec(arg0, sql, callback, arg3, errmsg); + } + + late final _sqlite3_execPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('sqlite3_exec'); + late final _sqlite3_exec = _sqlite3_execPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >, + ffi.Pointer, + ffi.Pointer>, + ) + >(); + + ffi.Pointer sqlite3_expanded_sql(ffi.Pointer pStmt) { + return _sqlite3_expanded_sql(pStmt); + } + + late final _sqlite3_expanded_sqlPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_expanded_sql'); + late final _sqlite3_expanded_sql = _sqlite3_expanded_sqlPtr + .asFunction Function(ffi.Pointer)>(); + + int sqlite3_expired(ffi.Pointer arg0) { + return _sqlite3_expired(arg0); + } + + late final _sqlite3_expiredPtr = + _lookup)>>( + 'sqlite3_expired', + ); + late final _sqlite3_expired = _sqlite3_expiredPtr + .asFunction)>(); + + int sqlite3_extended_errcode(ffi.Pointer db) { + return _sqlite3_extended_errcode(db); + } + + late final _sqlite3_extended_errcodePtr = + _lookup)>>( + 'sqlite3_extended_errcode', + ); + late final _sqlite3_extended_errcode = _sqlite3_extended_errcodePtr + .asFunction)>(); + + /// CAPI3REF: Enable Or Disable Extended Result Codes + /// METHOD: sqlite3 + /// + /// ^The sqlite3_extended_result_codes() routine enables or disables the + /// [extended result codes] feature of SQLite. ^The extended result + /// codes are disabled by default for historical compatibility. + int sqlite3_extended_result_codes(ffi.Pointer arg0, int onoff) { + return _sqlite3_extended_result_codes(arg0, onoff); + } + + late final _sqlite3_extended_result_codesPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_extended_result_codes'); + late final _sqlite3_extended_result_codes = _sqlite3_extended_result_codesPtr + .asFunction, int)>(); + + /// CAPI3REF: Low-Level Control Of Database Files + /// METHOD: sqlite3 + /// KEYWORDS: {file control} + /// + /// ^The [sqlite3_file_control()] interface makes a direct call to the + /// xFileControl method for the [sqlite3_io_methods] object associated + /// with a particular database identified by the second argument. ^The + /// name of the database is "main" for the main database or "temp" for the + /// TEMP database, or the name that appears after the AS keyword for + /// databases that are added using the [ATTACH] SQL command. + /// ^A NULL pointer can be used in place of "main" to refer to the + /// main database file. + /// ^The third and fourth parameters to this routine + /// are passed directly through to the second and third parameters of + /// the xFileControl method. ^The return value of the xFileControl + /// method becomes the return value of this routine. + /// + /// A few opcodes for [sqlite3_file_control()] are handled directly + /// by the SQLite core and never invoke the + /// sqlite3_io_methods.xFileControl method. + /// ^The [SQLITE_FCNTL_FILE_POINTER] value for the op parameter causes + /// a pointer to the underlying [sqlite3_file] object to be written into + /// the space pointed to by the 4th parameter. The + /// [SQLITE_FCNTL_JOURNAL_POINTER] works similarly except that it returns + /// the [sqlite3_file] object associated with the journal file instead of + /// the main database. The [SQLITE_FCNTL_VFS_POINTER] opcode returns + /// a pointer to the underlying [sqlite3_vfs] object for the file. + /// The [SQLITE_FCNTL_DATA_VERSION] returns the data version counter + /// from the pager. + /// + /// ^If the second parameter (zDbName) does not match the name of any + /// open database file, then SQLITE_ERROR is returned. ^This error + /// code is not remembered and will not be recalled by [sqlite3_errcode()] + /// or [sqlite3_errmsg()]. The underlying xFileControl method might + /// also return SQLITE_ERROR. There is no way to distinguish between + /// an incorrect zDbName and an SQLITE_ERROR return from the underlying + /// xFileControl method. + /// + /// See also: [file control opcodes] + int sqlite3_file_control( + ffi.Pointer arg0, + ffi.Pointer zDbName, + int op, + ffi.Pointer arg3, + ) { + return _sqlite3_file_control(arg0, zDbName, op, arg3); + } + + late final _sqlite3_file_controlPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >('sqlite3_file_control'); + late final _sqlite3_file_control = _sqlite3_file_controlPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Translate filenames + /// + /// These routines are available to [VFS|custom VFS implementations] for + /// translating filenames between the main database file, the journal file, + /// and the WAL file. + /// + /// If F is the name of an sqlite database file, journal file, or WAL file + /// passed by the SQLite core into the VFS, then sqlite3_filename_database(F) + /// returns the name of the corresponding database file. + /// + /// If F is the name of an sqlite database file, journal file, or WAL file + /// passed by the SQLite core into the VFS, or if F is a database filename + /// obtained from [sqlite3_db_filename()], then sqlite3_filename_journal(F) + /// returns the name of the corresponding rollback journal file. + /// + /// If F is the name of an sqlite database file, journal file, or WAL file + /// that was passed by the SQLite core into the VFS, or if F is a database + /// filename obtained from [sqlite3_db_filename()], then + /// sqlite3_filename_wal(F) returns the name of the corresponding + /// WAL file. + /// + /// In all of the above, if F is not the name of a database, journal or WAL + /// filename passed into the VFS from the SQLite core and F is not the + /// return value from [sqlite3_db_filename()], then the result is + /// undefined and is likely a memory access violation. + ffi.Pointer sqlite3_filename_database(ffi.Pointer arg0) { + return _sqlite3_filename_database(arg0); + } + + late final _sqlite3_filename_databasePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_filename_database'); + late final _sqlite3_filename_database = _sqlite3_filename_databasePtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer sqlite3_filename_journal(ffi.Pointer arg0) { + return _sqlite3_filename_journal(arg0); + } + + late final _sqlite3_filename_journalPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_filename_journal'); + late final _sqlite3_filename_journal = _sqlite3_filename_journalPtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer sqlite3_filename_wal(ffi.Pointer arg0) { + return _sqlite3_filename_wal(arg0); + } + + late final _sqlite3_filename_walPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_filename_wal'); + late final _sqlite3_filename_wal = _sqlite3_filename_walPtr + .asFunction Function(ffi.Pointer)>(); + + /// CAPI3REF: Destroy A Prepared Statement Object + /// DESTRUCTOR: sqlite3_stmt + /// + /// ^The sqlite3_finalize() function is called to delete a [prepared statement]. + /// ^If the most recent evaluation of the statement encountered no errors + /// or if the statement is never been evaluated, then sqlite3_finalize() returns + /// SQLITE_OK. ^If the most recent evaluation of statement S failed, then + /// sqlite3_finalize(S) returns the appropriate [error code] or + /// [extended error code]. + /// + /// ^The sqlite3_finalize(S) routine can be called at any point during + /// the life cycle of [prepared statement] S: + /// before statement S is ever evaluated, after + /// one or more calls to [sqlite3_reset()], or after any call + /// to [sqlite3_step()] regardless of whether or not the statement has + /// completed execution. + /// + /// ^Invoking sqlite3_finalize() on a NULL pointer is a harmless no-op. + /// + /// The application must finalize every [prepared statement] in order to avoid + /// resource leaks. It is a grievous error for the application to try to use + /// a prepared statement after it has been finalized. Any use of a prepared + /// statement after it has been finalized can result in undefined and + /// undesirable behavior such as segfaults and heap corruption. + int sqlite3_finalize(ffi.Pointer pStmt) { + return _sqlite3_finalize(pStmt); + } + + late final _sqlite3_finalizePtr = + _lookup)>>( + 'sqlite3_finalize', + ); + late final _sqlite3_finalize = _sqlite3_finalizePtr + .asFunction)>(); + + void sqlite3_free(ffi.Pointer arg0) { + return _sqlite3_free(arg0); + } + + late final _sqlite3_freePtr = + _lookup)>>( + 'sqlite3_free', + ); + late final _sqlite3_free = _sqlite3_freePtr + .asFunction)>(); + + void sqlite3_free_filename(ffi.Pointer arg0) { + return _sqlite3_free_filename(arg0); + } + + late final _sqlite3_free_filenamePtr = + _lookup)>>( + 'sqlite3_free_filename', + ); + late final _sqlite3_free_filename = _sqlite3_free_filenamePtr + .asFunction)>(); + + void sqlite3_free_table(ffi.Pointer> result) { + return _sqlite3_free_table(result); + } + + late final _sqlite3_free_tablePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer>) + > + >('sqlite3_free_table'); + late final _sqlite3_free_table = _sqlite3_free_tablePtr + .asFunction>)>(); + + /// CAPI3REF: Test For Auto-Commit Mode + /// KEYWORDS: {autocommit mode} + /// METHOD: sqlite3 + /// + /// ^The sqlite3_get_autocommit() interface returns non-zero or + /// zero if the given database connection is or is not in autocommit mode, + /// respectively. ^Autocommit mode is on by default. + /// ^Autocommit mode is disabled by a [BEGIN] statement. + /// ^Autocommit mode is re-enabled by a [COMMIT] or [ROLLBACK]. + /// + /// If certain kinds of errors occur on a statement within a multi-statement + /// transaction (errors including [SQLITE_FULL], [SQLITE_IOERR], + /// [SQLITE_NOMEM], [SQLITE_BUSY], and [SQLITE_INTERRUPT]) then the + /// transaction might be rolled back automatically. The only way to + /// find out whether SQLite automatically rolled back the transaction after + /// an error is to use this function. + /// + /// If another thread changes the autocommit status of the database + /// connection while this routine is running, then the return value + /// is undefined. + int sqlite3_get_autocommit(ffi.Pointer arg0) { + return _sqlite3_get_autocommit(arg0); + } + + late final _sqlite3_get_autocommitPtr = + _lookup)>>( + 'sqlite3_get_autocommit', + ); + late final _sqlite3_get_autocommit = _sqlite3_get_autocommitPtr + .asFunction)>(); + + /// CAPI3REF: Function Auxiliary Data + /// METHOD: sqlite3_context + /// + /// These functions may be used by (non-aggregate) SQL functions to + /// associate metadata with argument values. If the same value is passed to + /// multiple invocations of the same SQL function during query execution, under + /// some circumstances the associated metadata may be preserved. An example + /// of where this might be useful is in a regular-expression matching + /// function. The compiled version of the regular expression can be stored as + /// metadata associated with the pattern string. + /// Then as long as the pattern string remains the same, + /// the compiled regular expression can be reused on multiple + /// invocations of the same function. + /// + /// ^The sqlite3_get_auxdata(C,N) interface returns a pointer to the metadata + /// associated by the sqlite3_set_auxdata(C,N,P,X) function with the Nth argument + /// value to the application-defined function. ^N is zero for the left-most + /// function argument. ^If there is no metadata + /// associated with the function argument, the sqlite3_get_auxdata(C,N) interface + /// returns a NULL pointer. + /// + /// ^The sqlite3_set_auxdata(C,N,P,X) interface saves P as metadata for the N-th + /// argument of the application-defined function. ^Subsequent + /// calls to sqlite3_get_auxdata(C,N) return P from the most recent + /// sqlite3_set_auxdata(C,N,P,X) call if the metadata is still valid or + /// NULL if the metadata has been discarded. + /// ^After each call to sqlite3_set_auxdata(C,N,P,X) where X is not NULL, + /// SQLite will invoke the destructor function X with parameter P exactly + /// once, when the metadata is discarded. + /// SQLite is free to discard the metadata at any time, including:
    + ///
  • ^(when the corresponding function parameter changes)^, or + ///
  • ^(when [sqlite3_reset()] or [sqlite3_finalize()] is called for the + /// SQL statement)^, or + ///
  • ^(when sqlite3_set_auxdata() is invoked again on the same + /// parameter)^, or + ///
  • ^(during the original sqlite3_set_auxdata() call when a memory + /// allocation error occurs.)^
+ /// + /// Note the last bullet in particular. The destructor X in + /// sqlite3_set_auxdata(C,N,P,X) might be called immediately, before the + /// sqlite3_set_auxdata() interface even returns. Hence sqlite3_set_auxdata() + /// should be called near the end of the function implementation and the + /// function implementation should not make any use of P after + /// sqlite3_set_auxdata() has been called. + /// + /// ^(In practice, metadata is preserved between function calls for + /// function parameters that are compile-time constants, including literal + /// values and [parameters] and expressions composed from the same.)^ + /// + /// The value of the N parameter to these interfaces should be non-negative. + /// Future enhancements may make use of negative N values to define new + /// kinds of function caching behavior. + /// + /// These routines must be called from the same thread in which + /// the SQL function is running. + ffi.Pointer sqlite3_get_auxdata( + ffi.Pointer arg0, + int N, + ) { + return _sqlite3_get_auxdata(arg0, N); + } + + late final _sqlite3_get_auxdataPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_get_auxdata'); + late final _sqlite3_get_auxdata = _sqlite3_get_auxdataPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + /// CAPI3REF: Convenience Routines For Running Queries + /// METHOD: sqlite3 + /// + /// This is a legacy interface that is preserved for backwards compatibility. + /// Use of this interface is not recommended. + /// + /// Definition: A result table is memory data structure created by the + /// [sqlite3_get_table()] interface. A result table records the + /// complete query results from one or more queries. + /// + /// The table conceptually has a number of rows and columns. But + /// these numbers are not part of the result table itself. These + /// numbers are obtained separately. Let N be the number of rows + /// and M be the number of columns. + /// + /// A result table is an array of pointers to zero-terminated UTF-8 strings. + /// There are (N+1)*M elements in the array. The first M pointers point + /// to zero-terminated strings that contain the names of the columns. + /// The remaining entries all point to query results. NULL values result + /// in NULL pointers. All other values are in their UTF-8 zero-terminated + /// string representation as returned by [sqlite3_column_text()]. + /// + /// A result table might consist of one or more memory allocations. + /// It is not safe to pass a result table directly to [sqlite3_free()]. + /// A result table should be deallocated using [sqlite3_free_table()]. + /// + /// ^(As an example of the result table format, suppose a query result + /// is as follows: + /// + ///
+  /// Name        | Age
+  /// -----------------------
+  /// Alice       | 43
+  /// Bob         | 28
+  /// Cindy       | 21
+  /// 
+ /// + /// There are two columns (M==2) and three rows (N==3). Thus the + /// result table has 8 entries. Suppose the result table is stored + /// in an array named azResult. Then azResult holds this content: + /// + ///
+  /// azResult[0] = "Name";
+  /// azResult[1] = "Age";
+  /// azResult[2] = "Alice";
+  /// azResult[3] = "43";
+  /// azResult[4] = "Bob";
+  /// azResult[5] = "28";
+  /// azResult[6] = "Cindy";
+  /// azResult[7] = "21";
+  /// 
)^ + /// + /// ^The sqlite3_get_table() function evaluates one or more + /// semicolon-separated SQL statements in the zero-terminated UTF-8 + /// string of its 2nd parameter and returns a result table to the + /// pointer given in its 3rd parameter. + /// + /// After the application has finished with the result from sqlite3_get_table(), + /// it must pass the result table pointer to sqlite3_free_table() in order to + /// release the memory that was malloced. Because of the way the + /// [sqlite3_malloc()] happens within sqlite3_get_table(), the calling + /// function must not try to call [sqlite3_free()] directly. Only + /// [sqlite3_free_table()] is able to release the memory properly and safely. + /// + /// The sqlite3_get_table() interface is implemented as a wrapper around + /// [sqlite3_exec()]. The sqlite3_get_table() routine does not have access + /// to any internal data structures of SQLite. It uses only the public + /// interface defined here. As a consequence, errors that occur in the + /// wrapper layer outside of the internal [sqlite3_exec()] call are not + /// reflected in subsequent calls to [sqlite3_errcode()] or + /// [sqlite3_errmsg()]. + int sqlite3_get_table( + ffi.Pointer db, + ffi.Pointer zSql, + ffi.Pointer>> pazResult, + ffi.Pointer pnRow, + ffi.Pointer pnColumn, + ffi.Pointer> pzErrmsg, + ) { + return _sqlite3_get_table(db, zSql, pazResult, pnRow, pnColumn, pzErrmsg); + } + + late final _sqlite3_get_tablePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('sqlite3_get_table'); + late final _sqlite3_get_table = _sqlite3_get_tablePtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); + + int sqlite3_global_recover() { + return _sqlite3_global_recover(); + } + + late final _sqlite3_global_recoverPtr = + _lookup>('sqlite3_global_recover'); + late final _sqlite3_global_recover = _sqlite3_global_recoverPtr + .asFunction(); + + int sqlite3_hard_heap_limit64(int N) { + return _sqlite3_hard_heap_limit64(N); + } + + late final _sqlite3_hard_heap_limit64Ptr = + _lookup>( + 'sqlite3_hard_heap_limit64', + ); + late final _sqlite3_hard_heap_limit64 = _sqlite3_hard_heap_limit64Ptr + .asFunction(); + + /// CAPI3REF: Initialize The SQLite Library + /// + /// ^The sqlite3_initialize() routine initializes the + /// SQLite library. ^The sqlite3_shutdown() routine + /// deallocates any resources that were allocated by sqlite3_initialize(). + /// These routines are designed to aid in process initialization and + /// shutdown on embedded systems. Workstation applications using + /// SQLite normally do not need to invoke either of these routines. + /// + /// A call to sqlite3_initialize() is an "effective" call if it is + /// the first time sqlite3_initialize() is invoked during the lifetime of + /// the process, or if it is the first time sqlite3_initialize() is invoked + /// following a call to sqlite3_shutdown(). ^(Only an effective call + /// of sqlite3_initialize() does any initialization. All other calls + /// are harmless no-ops.)^ + /// + /// A call to sqlite3_shutdown() is an "effective" call if it is the first + /// call to sqlite3_shutdown() since the last sqlite3_initialize(). ^(Only + /// an effective call to sqlite3_shutdown() does any deinitialization. + /// All other valid calls to sqlite3_shutdown() are harmless no-ops.)^ + /// + /// The sqlite3_initialize() interface is threadsafe, but sqlite3_shutdown() + /// is not. The sqlite3_shutdown() interface must only be called from a + /// single thread. All open [database connections] must be closed and all + /// other SQLite resources must be deallocated prior to invoking + /// sqlite3_shutdown(). + /// + /// Among other things, ^sqlite3_initialize() will invoke + /// sqlite3_os_init(). Similarly, ^sqlite3_shutdown() + /// will invoke sqlite3_os_end(). + /// + /// ^The sqlite3_initialize() routine returns [SQLITE_OK] on success. + /// ^If for some reason, sqlite3_initialize() is unable to initialize + /// the library (perhaps it is unable to allocate a needed resource such + /// as a mutex) it returns an [error code] other than [SQLITE_OK]. + /// + /// ^The sqlite3_initialize() routine is called internally by many other + /// SQLite interfaces so that an application usually does not need to + /// invoke sqlite3_initialize() directly. For example, [sqlite3_open()] + /// calls sqlite3_initialize() so the SQLite library will be automatically + /// initialized when [sqlite3_open()] is called if it has not be initialized + /// already. ^However, if SQLite is compiled with the [SQLITE_OMIT_AUTOINIT] + /// compile-time option, then the automatic calls to sqlite3_initialize() + /// are omitted and the application must call sqlite3_initialize() directly + /// prior to using any other SQLite interface. For maximum portability, + /// it is recommended that applications always invoke sqlite3_initialize() + /// directly prior to using any other SQLite interface. Future releases + /// of SQLite may require this. In other words, the behavior exhibited + /// when SQLite is compiled with [SQLITE_OMIT_AUTOINIT] might become the + /// default behavior in some future release of SQLite. + /// + /// The sqlite3_os_init() routine does operating-system specific + /// initialization of the SQLite library. The sqlite3_os_end() + /// routine undoes the effect of sqlite3_os_init(). Typical tasks + /// performed by these routines include allocation or deallocation + /// of static resources, initialization of global variables, + /// setting up a default [sqlite3_vfs] module, or setting up + /// a default configuration using [sqlite3_config()]. + /// + /// The application should never invoke either sqlite3_os_init() + /// or sqlite3_os_end() directly. The application should only invoke + /// sqlite3_initialize() and sqlite3_shutdown(). The sqlite3_os_init() + /// interface is called automatically by sqlite3_initialize() and + /// sqlite3_os_end() is called by sqlite3_shutdown(). Appropriate + /// implementations for sqlite3_os_init() and sqlite3_os_end() + /// are built into SQLite when it is compiled for Unix, Windows, or OS/2. + /// When [custom builds | built for other platforms] + /// (using the [SQLITE_OS_OTHER=1] compile-time + /// option) the application must supply a suitable implementation for + /// sqlite3_os_init() and sqlite3_os_end(). An application-supplied + /// implementation of sqlite3_os_init() or sqlite3_os_end() + /// must return [SQLITE_OK] on success and some other [error code] upon + /// failure. + int sqlite3_initialize() { + return _sqlite3_initialize(); + } + + late final _sqlite3_initializePtr = + _lookup>('sqlite3_initialize'); + late final _sqlite3_initialize = _sqlite3_initializePtr + .asFunction(); + + /// CAPI3REF: Interrupt A Long-Running Query + /// METHOD: sqlite3 + /// + /// ^This function causes any pending database operation to abort and + /// return at its earliest opportunity. This routine is typically + /// called in response to a user action such as pressing "Cancel" + /// or Ctrl-C where the user wants a long query operation to halt + /// immediately. + /// + /// ^It is safe to call this routine from a thread different from the + /// thread that is currently running the database operation. But it + /// is not safe to call this routine with a [database connection] that + /// is closed or might close before sqlite3_interrupt() returns. + /// + /// ^If an SQL operation is very nearly finished at the time when + /// sqlite3_interrupt() is called, then it might not have an opportunity + /// to be interrupted and might continue to completion. + /// + /// ^An SQL operation that is interrupted will return [SQLITE_INTERRUPT]. + /// ^If the interrupted SQL operation is an INSERT, UPDATE, or DELETE + /// that is inside an explicit transaction, then the entire transaction + /// will be rolled back automatically. + /// + /// ^The sqlite3_interrupt(D) call is in effect until all currently running + /// SQL statements on [database connection] D complete. ^Any new SQL statements + /// that are started after the sqlite3_interrupt() call and before the + /// running statement count reaches zero are interrupted as if they had been + /// running prior to the sqlite3_interrupt() call. ^New SQL statements + /// that are started after the running statement count reaches zero are + /// not effected by the sqlite3_interrupt(). + /// ^A call to sqlite3_interrupt(D) that occurs when there are no running + /// SQL statements is a no-op and has no effect on SQL statements + /// that are started after the sqlite3_interrupt() call returns. + void sqlite3_interrupt(ffi.Pointer arg0) { + return _sqlite3_interrupt(arg0); + } + + late final _sqlite3_interruptPtr = + _lookup)>>( + 'sqlite3_interrupt', + ); + late final _sqlite3_interrupt = _sqlite3_interruptPtr + .asFunction)>(); + + int sqlite3_keyword_check(ffi.Pointer arg0, int arg1) { + return _sqlite3_keyword_check(arg0, arg1); + } + + late final _sqlite3_keyword_checkPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_keyword_check'); + late final _sqlite3_keyword_check = _sqlite3_keyword_checkPtr + .asFunction, int)>(); + + /// CAPI3REF: SQL Keyword Checking + /// + /// These routines provide access to the set of SQL language keywords + /// recognized by SQLite. Applications can uses these routines to determine + /// whether or not a specific identifier needs to be escaped (for example, + /// by enclosing in double-quotes) so as not to confuse the parser. + /// + /// The sqlite3_keyword_count() interface returns the number of distinct + /// keywords understood by SQLite. + /// + /// The sqlite3_keyword_name(N,Z,L) interface finds the N-th keyword and + /// makes *Z point to that keyword expressed as UTF8 and writes the number + /// of bytes in the keyword into *L. The string that *Z points to is not + /// zero-terminated. The sqlite3_keyword_name(N,Z,L) routine returns + /// SQLITE_OK if N is within bounds and SQLITE_ERROR if not. If either Z + /// or L are NULL or invalid pointers then calls to + /// sqlite3_keyword_name(N,Z,L) result in undefined behavior. + /// + /// The sqlite3_keyword_check(Z,L) interface checks to see whether or not + /// the L-byte UTF8 identifier that Z points to is a keyword, returning non-zero + /// if it is and zero if not. + /// + /// The parser used by SQLite is forgiving. It is often possible to use + /// a keyword as an identifier as long as such use does not result in a + /// parsing ambiguity. For example, the statement + /// "CREATE TABLE BEGIN(REPLACE,PRAGMA,END);" is accepted by SQLite, and + /// creates a new table named "BEGIN" with three columns named + /// "REPLACE", "PRAGMA", and "END". Nevertheless, best practice is to avoid + /// using keywords as identifiers. Common techniques used to avoid keyword + /// name collisions include: + ///
    + ///
  • Put all identifier names inside double-quotes. This is the official + /// SQL way to escape identifier names. + ///
  • Put identifier names inside [...]. This is not standard SQL, + /// but it is what SQL Server does and so lots of programmers use this + /// technique. + ///
  • Begin every identifier with the letter "Z" as no SQL keywords start + /// with "Z". + ///
  • Include a digit somewhere in every identifier name. + ///
+ /// + /// Note that the number of keywords understood by SQLite can depend on + /// compile-time options. For example, "VACUUM" is not a keyword if + /// SQLite is compiled with the [-DSQLITE_OMIT_VACUUM] option. Also, + /// new keywords may be added to future releases of SQLite. + int sqlite3_keyword_count() { + return _sqlite3_keyword_count(); + } + + late final _sqlite3_keyword_countPtr = + _lookup>('sqlite3_keyword_count'); + late final _sqlite3_keyword_count = _sqlite3_keyword_countPtr + .asFunction(); + + int sqlite3_keyword_name( + int arg0, + ffi.Pointer> arg1, + ffi.Pointer arg2, + ) { + return _sqlite3_keyword_name(arg0, arg1, arg2); + } + + late final _sqlite3_keyword_namePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('sqlite3_keyword_name'); + late final _sqlite3_keyword_name = _sqlite3_keyword_namePtr + .asFunction< + int Function( + int, + ffi.Pointer>, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Last Insert Rowid + /// METHOD: sqlite3 + /// + /// ^Each entry in most SQLite tables (except for [WITHOUT ROWID] tables) + /// has a unique 64-bit signed + /// integer key called the [ROWID | "rowid"]. ^The rowid is always available + /// as an undeclared column named ROWID, OID, or _ROWID_ as long as those + /// names are not also used by explicitly declared columns. ^If + /// the table has a column of type [INTEGER PRIMARY KEY] then that column + /// is another alias for the rowid. + /// + /// ^The sqlite3_last_insert_rowid(D) interface usually returns the [rowid] of + /// the most recent successful [INSERT] into a rowid table or [virtual table] + /// on database connection D. ^Inserts into [WITHOUT ROWID] tables are not + /// recorded. ^If no successful [INSERT]s into rowid tables have ever occurred + /// on the database connection D, then sqlite3_last_insert_rowid(D) returns + /// zero. + /// + /// As well as being set automatically as rows are inserted into database + /// tables, the value returned by this function may be set explicitly by + /// [sqlite3_set_last_insert_rowid()] + /// + /// Some virtual table implementations may INSERT rows into rowid tables as + /// part of committing a transaction (e.g. to flush data accumulated in memory + /// to disk). In this case subsequent calls to this function return the rowid + /// associated with these internal INSERT operations, which leads to + /// unintuitive results. Virtual table implementations that do write to rowid + /// tables in this way can avoid this problem by restoring the original + /// rowid value using [sqlite3_set_last_insert_rowid()] before returning + /// control to the user. + /// + /// ^(If an [INSERT] occurs within a trigger then this routine will + /// return the [rowid] of the inserted row as long as the trigger is + /// running. Once the trigger program ends, the value returned + /// by this routine reverts to what it was before the trigger was fired.)^ + /// + /// ^An [INSERT] that fails due to a constraint violation is not a + /// successful [INSERT] and does not change the value returned by this + /// routine. ^Thus INSERT OR FAIL, INSERT OR IGNORE, INSERT OR ROLLBACK, + /// and INSERT OR ABORT make no changes to the return value of this + /// routine when their insertion fails. ^(When INSERT OR REPLACE + /// encounters a constraint violation, it does not fail. The + /// INSERT continues to completion after deleting rows that caused + /// the constraint problem so INSERT OR REPLACE will always change + /// the return value of this interface.)^ + /// + /// ^For the purposes of this routine, an [INSERT] is considered to + /// be successful even if it is subsequently rolled back. + /// + /// This function is accessible to SQL statements via the + /// [last_insert_rowid() SQL function]. + /// + /// If a separate thread performs a new [INSERT] on the same + /// database connection while the [sqlite3_last_insert_rowid()] + /// function is running and thus changes the last insert [rowid], + /// then the value returned by [sqlite3_last_insert_rowid()] is + /// unpredictable and might not equal either the old or the new + /// last insert [rowid]. + int sqlite3_last_insert_rowid(ffi.Pointer arg0) { + return _sqlite3_last_insert_rowid(arg0); + } + + late final _sqlite3_last_insert_rowidPtr = + _lookup)>>( + 'sqlite3_last_insert_rowid', + ); + late final _sqlite3_last_insert_rowid = _sqlite3_last_insert_rowidPtr + .asFunction)>(); + + ffi.Pointer sqlite3_libversion() { + return _sqlite3_libversion(); + } + + late final _sqlite3_libversionPtr = + _lookup Function()>>( + 'sqlite3_libversion', + ); + late final _sqlite3_libversion = _sqlite3_libversionPtr + .asFunction Function()>(); + + int sqlite3_libversion_number() { + return _sqlite3_libversion_number(); + } + + late final _sqlite3_libversion_numberPtr = + _lookup>( + 'sqlite3_libversion_number', + ); + late final _sqlite3_libversion_number = _sqlite3_libversion_numberPtr + .asFunction(); + + /// CAPI3REF: Run-time Limits + /// METHOD: sqlite3 + /// + /// ^(This interface allows the size of various constructs to be limited + /// on a connection by connection basis. The first parameter is the + /// [database connection] whose limit is to be set or queried. The + /// second parameter is one of the [limit categories] that define a + /// class of constructs to be size limited. The third parameter is the + /// new limit for that construct.)^ + /// + /// ^If the new limit is a negative number, the limit is unchanged. + /// ^(For each limit category SQLITE_LIMIT_NAME there is a + /// [limits | hard upper bound] + /// set at compile-time by a C preprocessor macro called + /// [limits | SQLITE_MAX_NAME]. + /// (The "_LIMIT_" in the name is changed to "_MAX_".))^ + /// ^Attempts to increase a limit above its hard upper bound are + /// silently truncated to the hard upper bound. + /// + /// ^Regardless of whether or not the limit was changed, the + /// [sqlite3_limit()] interface returns the prior value of the limit. + /// ^Hence, to find the current value of a limit without changing it, + /// simply invoke this interface with the third parameter set to -1. + /// + /// Run-time limits are intended for use in applications that manage + /// both their own internal database and also databases that are controlled + /// by untrusted external sources. An example application might be a + /// web browser that has its own databases for storing history and + /// separate databases controlled by JavaScript applications downloaded + /// off the Internet. The internal databases can be given the + /// large, default limits. Databases managed by external sources can + /// be given much smaller limits designed to prevent a denial of service + /// attack. Developers might also want to use the [sqlite3_set_authorizer()] + /// interface to further control untrusted SQL. The size of the database + /// created by an untrusted script can be contained using the + /// [max_page_count] [PRAGMA]. + /// + /// New run-time limit categories may be added in future releases. + int sqlite3_limit(ffi.Pointer arg0, int id, int newVal) { + return _sqlite3_limit(arg0, id, newVal); + } + + late final _sqlite3_limitPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int) + > + >('sqlite3_limit'); + late final _sqlite3_limit = _sqlite3_limitPtr + .asFunction, int, int)>(); + + /// CAPI3REF: Load An Extension + /// METHOD: sqlite3 + /// + /// ^This interface loads an SQLite extension library from the named file. + /// + /// ^The sqlite3_load_extension() interface attempts to load an + /// [SQLite extension] library contained in the file zFile. If + /// the file cannot be loaded directly, attempts are made to load + /// with various operating-system specific extensions added. + /// So for example, if "samplelib" cannot be loaded, then names like + /// "samplelib.so" or "samplelib.dylib" or "samplelib.dll" might + /// be tried also. + /// + /// ^The entry point is zProc. + /// ^(zProc may be 0, in which case SQLite will try to come up with an + /// entry point name on its own. It first tries "sqlite3_extension_init". + /// If that does not work, it constructs a name "sqlite3_X_init" where the + /// X is consists of the lower-case equivalent of all ASCII alphabetic + /// characters in the filename from the last "/" to the first following + /// "." and omitting any initial "lib".)^ + /// ^The sqlite3_load_extension() interface returns + /// [SQLITE_OK] on success and [SQLITE_ERROR] if something goes wrong. + /// ^If an error occurs and pzErrMsg is not 0, then the + /// [sqlite3_load_extension()] interface shall attempt to + /// fill *pzErrMsg with error message text stored in memory + /// obtained from [sqlite3_malloc()]. The calling function + /// should free this memory by calling [sqlite3_free()]. + /// + /// ^Extension loading must be enabled using + /// [sqlite3_enable_load_extension()] or + /// [sqlite3_db_config](db,[SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION],1,NULL) + /// prior to calling this API, + /// otherwise an error will be returned. + /// + /// Security warning: It is recommended that the + /// [SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION] method be used to enable only this + /// interface. The use of the [sqlite3_enable_load_extension()] interface + /// should be avoided. This will keep the SQL function [load_extension()] + /// disabled and prevent SQL injections from giving attackers + /// access to extension loading capabilities. + /// + /// See also the [load_extension() SQL function]. + int sqlite3_load_extension( + ffi.Pointer db, + ffi.Pointer zFile, + ffi.Pointer zProc, + ffi.Pointer> pzErrMsg, + ) { + return _sqlite3_load_extension(db, zFile, zProc, pzErrMsg); + } + + late final _sqlite3_load_extensionPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('sqlite3_load_extension'); + late final _sqlite3_load_extension = _sqlite3_load_extensionPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); + + /// CAPI3REF: Error Logging Interface + /// + /// ^The [sqlite3_log()] interface writes a message into the [error log] + /// established by the [SQLITE_CONFIG_LOG] option to [sqlite3_config()]. + /// ^If logging is enabled, the zFormat string and subsequent arguments are + /// used with [sqlite3_snprintf()] to generate the final output string. + /// + /// The sqlite3_log() interface is intended for use by extensions such as + /// virtual tables, collating functions, and SQL functions. While there is + /// nothing to prevent an application from calling sqlite3_log(), doing so + /// is considered bad form. + /// + /// The zFormat string must not be NULL. + /// + /// To avoid deadlocks and other threading problems, the sqlite3_log() routine + /// will not use dynamically allocated memory. The log message is stored in + /// a fixed-length buffer on the stack. If the log message is longer than + /// a few hundred characters, it will be truncated to the length of the + /// buffer. + void sqlite3_log(int iErrCode, ffi.Pointer zFormat) { + return _sqlite3_log(iErrCode, zFormat); + } + + late final _sqlite3_logPtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_log'); + late final _sqlite3_log = _sqlite3_logPtr + .asFunction)>(); + + /// CAPI3REF: Memory Allocation Subsystem + /// + /// The SQLite core uses these three routines for all of its own + /// internal memory allocation needs. "Core" in the previous sentence + /// does not include operating-system specific [VFS] implementation. The + /// Windows VFS uses native malloc() and free() for some operations. + /// + /// ^The sqlite3_malloc() routine returns a pointer to a block + /// of memory at least N bytes in length, where N is the parameter. + /// ^If sqlite3_malloc() is unable to obtain sufficient free + /// memory, it returns a NULL pointer. ^If the parameter N to + /// sqlite3_malloc() is zero or negative then sqlite3_malloc() returns + /// a NULL pointer. + /// + /// ^The sqlite3_malloc64(N) routine works just like + /// sqlite3_malloc(N) except that N is an unsigned 64-bit integer instead + /// of a signed 32-bit integer. + /// + /// ^Calling sqlite3_free() with a pointer previously returned + /// by sqlite3_malloc() or sqlite3_realloc() releases that memory so + /// that it might be reused. ^The sqlite3_free() routine is + /// a no-op if is called with a NULL pointer. Passing a NULL pointer + /// to sqlite3_free() is harmless. After being freed, memory + /// should neither be read nor written. Even reading previously freed + /// memory might result in a segmentation fault or other severe error. + /// Memory corruption, a segmentation fault, or other severe error + /// might result if sqlite3_free() is called with a non-NULL pointer that + /// was not obtained from sqlite3_malloc() or sqlite3_realloc(). + /// + /// ^The sqlite3_realloc(X,N) interface attempts to resize a + /// prior memory allocation X to be at least N bytes. + /// ^If the X parameter to sqlite3_realloc(X,N) + /// is a NULL pointer then its behavior is identical to calling + /// sqlite3_malloc(N). + /// ^If the N parameter to sqlite3_realloc(X,N) is zero or + /// negative then the behavior is exactly the same as calling + /// sqlite3_free(X). + /// ^sqlite3_realloc(X,N) returns a pointer to a memory allocation + /// of at least N bytes in size or NULL if insufficient memory is available. + /// ^If M is the size of the prior allocation, then min(N,M) bytes + /// of the prior allocation are copied into the beginning of buffer returned + /// by sqlite3_realloc(X,N) and the prior allocation is freed. + /// ^If sqlite3_realloc(X,N) returns NULL and N is positive, then the + /// prior allocation is not freed. + /// + /// ^The sqlite3_realloc64(X,N) interfaces works the same as + /// sqlite3_realloc(X,N) except that N is a 64-bit unsigned integer instead + /// of a 32-bit signed integer. + /// + /// ^If X is a memory allocation previously obtained from sqlite3_malloc(), + /// sqlite3_malloc64(), sqlite3_realloc(), or sqlite3_realloc64(), then + /// sqlite3_msize(X) returns the size of that memory allocation in bytes. + /// ^The value returned by sqlite3_msize(X) might be larger than the number + /// of bytes requested when X was allocated. ^If X is a NULL pointer then + /// sqlite3_msize(X) returns zero. If X points to something that is not + /// the beginning of memory allocation, or if it points to a formerly + /// valid memory allocation that has now been freed, then the behavior + /// of sqlite3_msize(X) is undefined and possibly harmful. + /// + /// ^The memory returned by sqlite3_malloc(), sqlite3_realloc(), + /// sqlite3_malloc64(), and sqlite3_realloc64() + /// is always aligned to at least an 8 byte boundary, or to a + /// 4 byte boundary if the [SQLITE_4_BYTE_ALIGNED_MALLOC] compile-time + /// option is used. + /// + /// The pointer arguments to [sqlite3_free()] and [sqlite3_realloc()] + /// must be either NULL or else pointers obtained from a prior + /// invocation of [sqlite3_malloc()] or [sqlite3_realloc()] that have + /// not yet been released. + /// + /// The application must not read or write any part of + /// a block of memory after it has been released using + /// [sqlite3_free()] or [sqlite3_realloc()]. + ffi.Pointer sqlite3_malloc(int arg0) { + return _sqlite3_malloc(arg0); + } + + late final _sqlite3_mallocPtr = + _lookup Function(ffi.Int)>>( + 'sqlite3_malloc', + ); + late final _sqlite3_malloc = _sqlite3_mallocPtr + .asFunction Function(int)>(); + + ffi.Pointer sqlite3_malloc64(int arg0) { + return _sqlite3_malloc64(arg0); + } + + late final _sqlite3_malloc64Ptr = + _lookup< + ffi.NativeFunction Function(sqlite3_uint64)> + >('sqlite3_malloc64'); + late final _sqlite3_malloc64 = _sqlite3_malloc64Ptr + .asFunction Function(int)>(); + + int sqlite3_memory_alarm( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, sqlite3_int64, ffi.Int) + > + > + arg0, + ffi.Pointer arg1, + int arg2, + ) { + return _sqlite3_memory_alarm(arg0, arg1, arg2); + } + + late final _sqlite3_memory_alarmPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, sqlite3_int64, ffi.Int) + > + >, + ffi.Pointer, + sqlite3_int64, + ) + > + >('sqlite3_memory_alarm'); + late final _sqlite3_memory_alarm = _sqlite3_memory_alarmPtr + .asFunction< + int Function( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, sqlite3_int64, ffi.Int) + > + >, + ffi.Pointer, + int, + ) + >(); + + int sqlite3_memory_highwater(int resetFlag) { + return _sqlite3_memory_highwater(resetFlag); + } + + late final _sqlite3_memory_highwaterPtr = + _lookup>( + 'sqlite3_memory_highwater', + ); + late final _sqlite3_memory_highwater = _sqlite3_memory_highwaterPtr + .asFunction(); + + /// CAPI3REF: Memory Allocator Statistics + /// + /// SQLite provides these two interfaces for reporting on the status + /// of the [sqlite3_malloc()], [sqlite3_free()], and [sqlite3_realloc()] + /// routines, which form the built-in memory allocation subsystem. + /// + /// ^The [sqlite3_memory_used()] routine returns the number of bytes + /// of memory currently outstanding (malloced but not freed). + /// ^The [sqlite3_memory_highwater()] routine returns the maximum + /// value of [sqlite3_memory_used()] since the high-water mark + /// was last reset. ^The values returned by [sqlite3_memory_used()] and + /// [sqlite3_memory_highwater()] include any overhead + /// added by SQLite in its implementation of [sqlite3_malloc()], + /// but not overhead added by the any underlying system library + /// routines that [sqlite3_malloc()] may call. + /// + /// ^The memory high-water mark is reset to the current value of + /// [sqlite3_memory_used()] if and only if the parameter to + /// [sqlite3_memory_highwater()] is true. ^The value returned + /// by [sqlite3_memory_highwater(1)] is the high-water mark + /// prior to the reset. + int sqlite3_memory_used() { + return _sqlite3_memory_used(); + } + + late final _sqlite3_memory_usedPtr = + _lookup>( + 'sqlite3_memory_used', + ); + late final _sqlite3_memory_used = _sqlite3_memory_usedPtr + .asFunction(); + + /// CAPI3REF: Formatted String Printing Functions + /// + /// These routines are work-alikes of the "printf()" family of functions + /// from the standard C library. + /// These routines understand most of the common formatting options from + /// the standard library printf() + /// plus some additional non-standard formats ([%q], [%Q], [%w], and [%z]). + /// See the [built-in printf()] documentation for details. + /// + /// ^The sqlite3_mprintf() and sqlite3_vmprintf() routines write their + /// results into memory obtained from [sqlite3_malloc64()]. + /// The strings returned by these two routines should be + /// released by [sqlite3_free()]. ^Both routines return a + /// NULL pointer if [sqlite3_malloc64()] is unable to allocate enough + /// memory to hold the resulting string. + /// + /// ^(The sqlite3_snprintf() routine is similar to "snprintf()" from + /// the standard C library. The result is written into the + /// buffer supplied as the second parameter whose size is given by + /// the first parameter. Note that the order of the + /// first two parameters is reversed from snprintf().)^ This is an + /// historical accident that cannot be fixed without breaking + /// backwards compatibility. ^(Note also that sqlite3_snprintf() + /// returns a pointer to its buffer instead of the number of + /// characters actually written into the buffer.)^ We admit that + /// the number of characters written would be a more useful return + /// value but we cannot change the implementation of sqlite3_snprintf() + /// now without breaking compatibility. + /// + /// ^As long as the buffer size is greater than zero, sqlite3_snprintf() + /// guarantees that the buffer is always zero-terminated. ^The first + /// parameter "n" is the total size of the buffer, including space for + /// the zero terminator. So the longest string that can be completely + /// written will be n-1 characters. + /// + /// ^The sqlite3_vsnprintf() routine is a varargs version of sqlite3_snprintf(). + /// + /// See also: [built-in printf()], [printf() SQL function] + ffi.Pointer sqlite3_mprintf(ffi.Pointer arg0) { + return _sqlite3_mprintf(arg0); + } + + late final _sqlite3_mprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_mprintf'); + late final _sqlite3_mprintf = _sqlite3_mprintfPtr + .asFunction Function(ffi.Pointer)>(); + + int sqlite3_msize(ffi.Pointer arg0) { + return _sqlite3_msize(arg0); + } + + late final _sqlite3_msizePtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_msize'); + late final _sqlite3_msize = _sqlite3_msizePtr + .asFunction)>(); + + /// CAPI3REF: Mutexes + /// + /// The SQLite core uses these routines for thread + /// synchronization. Though they are intended for internal + /// use by SQLite, code that links against SQLite is + /// permitted to use any of these routines. + /// + /// The SQLite source code contains multiple implementations + /// of these mutex routines. An appropriate implementation + /// is selected automatically at compile-time. The following + /// implementations are available in the SQLite core: + /// + ///
    + ///
  • SQLITE_MUTEX_PTHREADS + ///
  • SQLITE_MUTEX_W32 + ///
  • SQLITE_MUTEX_NOOP + ///
+ /// + /// The SQLITE_MUTEX_NOOP implementation is a set of routines + /// that does no real locking and is appropriate for use in + /// a single-threaded application. The SQLITE_MUTEX_PTHREADS and + /// SQLITE_MUTEX_W32 implementations are appropriate for use on Unix + /// and Windows. + /// + /// If SQLite is compiled with the SQLITE_MUTEX_APPDEF preprocessor + /// macro defined (with "-DSQLITE_MUTEX_APPDEF=1"), then no mutex + /// implementation is included with the library. In this case the + /// application must supply a custom mutex implementation using the + /// [SQLITE_CONFIG_MUTEX] option of the sqlite3_config() function + /// before calling sqlite3_initialize() or any other public sqlite3_ + /// function that calls sqlite3_initialize(). + /// + /// ^The sqlite3_mutex_alloc() routine allocates a new + /// mutex and returns a pointer to it. ^The sqlite3_mutex_alloc() + /// routine returns NULL if it is unable to allocate the requested + /// mutex. The argument to sqlite3_mutex_alloc() must one of these + /// integer constants: + /// + ///
    + ///
  • SQLITE_MUTEX_FAST + ///
  • SQLITE_MUTEX_RECURSIVE + ///
  • SQLITE_MUTEX_STATIC_MASTER + ///
  • SQLITE_MUTEX_STATIC_MEM + ///
  • SQLITE_MUTEX_STATIC_OPEN + ///
  • SQLITE_MUTEX_STATIC_PRNG + ///
  • SQLITE_MUTEX_STATIC_LRU + ///
  • SQLITE_MUTEX_STATIC_PMEM + ///
  • SQLITE_MUTEX_STATIC_APP1 + ///
  • SQLITE_MUTEX_STATIC_APP2 + ///
  • SQLITE_MUTEX_STATIC_APP3 + ///
  • SQLITE_MUTEX_STATIC_VFS1 + ///
  • SQLITE_MUTEX_STATIC_VFS2 + ///
  • SQLITE_MUTEX_STATIC_VFS3 + ///
+ /// + /// ^The first two constants (SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE) + /// cause sqlite3_mutex_alloc() to create + /// a new mutex. ^The new mutex is recursive when SQLITE_MUTEX_RECURSIVE + /// is used but not necessarily so when SQLITE_MUTEX_FAST is used. + /// The mutex implementation does not need to make a distinction + /// between SQLITE_MUTEX_RECURSIVE and SQLITE_MUTEX_FAST if it does + /// not want to. SQLite will only request a recursive mutex in + /// cases where it really needs one. If a faster non-recursive mutex + /// implementation is available on the host platform, the mutex subsystem + /// might return such a mutex in response to SQLITE_MUTEX_FAST. + /// + /// ^The other allowed parameters to sqlite3_mutex_alloc() (anything other + /// than SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE) each return + /// a pointer to a static preexisting mutex. ^Nine static mutexes are + /// used by the current version of SQLite. Future versions of SQLite + /// may add additional static mutexes. Static mutexes are for internal + /// use by SQLite only. Applications that use SQLite mutexes should + /// use only the dynamic mutexes returned by SQLITE_MUTEX_FAST or + /// SQLITE_MUTEX_RECURSIVE. + /// + /// ^Note that if one of the dynamic mutex parameters (SQLITE_MUTEX_FAST + /// or SQLITE_MUTEX_RECURSIVE) is used then sqlite3_mutex_alloc() + /// returns a different mutex on every call. ^For the static + /// mutex types, the same mutex is returned on every call that has + /// the same type number. + /// + /// ^The sqlite3_mutex_free() routine deallocates a previously + /// allocated dynamic mutex. Attempting to deallocate a static + /// mutex results in undefined behavior. + /// + /// ^The sqlite3_mutex_enter() and sqlite3_mutex_try() routines attempt + /// to enter a mutex. ^If another thread is already within the mutex, + /// sqlite3_mutex_enter() will block and sqlite3_mutex_try() will return + /// SQLITE_BUSY. ^The sqlite3_mutex_try() interface returns [SQLITE_OK] + /// upon successful entry. ^(Mutexes created using + /// SQLITE_MUTEX_RECURSIVE can be entered multiple times by the same thread. + /// In such cases, the + /// mutex must be exited an equal number of times before another thread + /// can enter.)^ If the same thread tries to enter any mutex other + /// than an SQLITE_MUTEX_RECURSIVE more than once, the behavior is undefined. + /// + /// ^(Some systems (for example, Windows 95) do not support the operation + /// implemented by sqlite3_mutex_try(). On those systems, sqlite3_mutex_try() + /// will always return SQLITE_BUSY. The SQLite core only ever uses + /// sqlite3_mutex_try() as an optimization so this is acceptable + /// behavior.)^ + /// + /// ^The sqlite3_mutex_leave() routine exits a mutex that was + /// previously entered by the same thread. The behavior + /// is undefined if the mutex is not currently entered by the + /// calling thread or is not currently allocated. + /// + /// ^If the argument to sqlite3_mutex_enter(), sqlite3_mutex_try(), or + /// sqlite3_mutex_leave() is a NULL pointer, then all three routines + /// behave as no-ops. + /// + /// See also: [sqlite3_mutex_held()] and [sqlite3_mutex_notheld()]. + ffi.Pointer sqlite3_mutex_alloc(int arg0) { + return _sqlite3_mutex_alloc(arg0); + } + + late final _sqlite3_mutex_allocPtr = + _lookup Function(ffi.Int)>>( + 'sqlite3_mutex_alloc', + ); + late final _sqlite3_mutex_alloc = _sqlite3_mutex_allocPtr + .asFunction Function(int)>(); + + void sqlite3_mutex_enter(ffi.Pointer arg0) { + return _sqlite3_mutex_enter(arg0); + } + + late final _sqlite3_mutex_enterPtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_mutex_enter'); + late final _sqlite3_mutex_enter = _sqlite3_mutex_enterPtr + .asFunction)>(); + + void sqlite3_mutex_free(ffi.Pointer arg0) { + return _sqlite3_mutex_free(arg0); + } + + late final _sqlite3_mutex_freePtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_mutex_free'); + late final _sqlite3_mutex_free = _sqlite3_mutex_freePtr + .asFunction)>(); + + int sqlite3_mutex_held(ffi.Pointer arg0) { + return _sqlite3_mutex_held(arg0); + } + + late final _sqlite3_mutex_heldPtr = + _lookup)>>( + 'sqlite3_mutex_held', + ); + late final _sqlite3_mutex_held = _sqlite3_mutex_heldPtr + .asFunction)>(); + + void sqlite3_mutex_leave(ffi.Pointer arg0) { + return _sqlite3_mutex_leave(arg0); + } + + late final _sqlite3_mutex_leavePtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_mutex_leave'); + late final _sqlite3_mutex_leave = _sqlite3_mutex_leavePtr + .asFunction)>(); + + int sqlite3_mutex_notheld(ffi.Pointer arg0) { + return _sqlite3_mutex_notheld(arg0); + } + + late final _sqlite3_mutex_notheldPtr = + _lookup)>>( + 'sqlite3_mutex_notheld', + ); + late final _sqlite3_mutex_notheld = _sqlite3_mutex_notheldPtr + .asFunction)>(); + + int sqlite3_mutex_try(ffi.Pointer arg0) { + return _sqlite3_mutex_try(arg0); + } + + late final _sqlite3_mutex_tryPtr = + _lookup)>>( + 'sqlite3_mutex_try', + ); + late final _sqlite3_mutex_try = _sqlite3_mutex_tryPtr + .asFunction)>(); + + /// CAPI3REF: Find the next prepared statement + /// METHOD: sqlite3 + /// + /// ^This interface returns a pointer to the next [prepared statement] after + /// pStmt associated with the [database connection] pDb. ^If pStmt is NULL + /// then this interface returns a pointer to the first prepared statement + /// associated with the database connection pDb. ^If no prepared statement + /// satisfies the conditions of this routine, it returns NULL. + /// + /// The [database connection] pointer D in a call to + /// [sqlite3_next_stmt(D,S)] must refer to an open database + /// connection and in particular must not be a NULL pointer. + ffi.Pointer sqlite3_next_stmt( + ffi.Pointer pDb, + ffi.Pointer pStmt, + ) { + return _sqlite3_next_stmt(pDb, pStmt); + } + + late final _sqlite3_next_stmtPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_next_stmt'); + late final _sqlite3_next_stmt = _sqlite3_next_stmtPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); + + ffi.Pointer sqlite3_normalized_sql( + ffi.Pointer pStmt, + ) { + return _sqlite3_normalized_sql(pStmt); + } + + late final _sqlite3_normalized_sqlPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_normalized_sql'); + late final _sqlite3_normalized_sql = _sqlite3_normalized_sqlPtr + .asFunction Function(ffi.Pointer)>(); + + /// CAPI3REF: Opening A New Database Connection + /// CONSTRUCTOR: sqlite3 + /// + /// ^These routines open an SQLite database file as specified by the + /// filename argument. ^The filename argument is interpreted as UTF-8 for + /// sqlite3_open() and sqlite3_open_v2() and as UTF-16 in the native byte + /// order for sqlite3_open16(). ^(A [database connection] handle is usually + /// returned in *ppDb, even if an error occurs. The only exception is that + /// if SQLite is unable to allocate memory to hold the [sqlite3] object, + /// a NULL will be written into *ppDb instead of a pointer to the [sqlite3] + /// object.)^ ^(If the database is opened (and/or created) successfully, then + /// [SQLITE_OK] is returned. Otherwise an [error code] is returned.)^ ^The + /// [sqlite3_errmsg()] or [sqlite3_errmsg16()] routines can be used to obtain + /// an English language description of the error following a failure of any + /// of the sqlite3_open() routines. + /// + /// ^The default encoding will be UTF-8 for databases created using + /// sqlite3_open() or sqlite3_open_v2(). ^The default encoding for databases + /// created using sqlite3_open16() will be UTF-16 in the native byte order. + /// + /// Whether or not an error occurs when it is opened, resources + /// associated with the [database connection] handle should be released by + /// passing it to [sqlite3_close()] when it is no longer required. + /// + /// The sqlite3_open_v2() interface works like sqlite3_open() + /// except that it accepts two additional parameters for additional control + /// over the new database connection. ^(The flags parameter to + /// sqlite3_open_v2() must include, at a minimum, one of the following + /// three flag combinations:)^ + /// + ///
+ /// ^(
[SQLITE_OPEN_READONLY]
+ ///
The database is opened in read-only mode. If the database does not + /// already exist, an error is returned.
)^ + /// + /// ^(
[SQLITE_OPEN_READWRITE]
+ ///
The database is opened for reading and writing if possible, or reading + /// only if the file is write protected by the operating system. In either + /// case the database must already exist, otherwise an error is returned.
)^ + /// + /// ^(
[SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]
+ ///
The database is opened for reading and writing, and is created if + /// it does not already exist. This is the behavior that is always used for + /// sqlite3_open() and sqlite3_open16().
)^ + ///
+ /// + /// In addition to the required flags, the following optional flags are + /// also supported: + /// + ///
+ /// ^(
[SQLITE_OPEN_URI]
+ ///
The filename can be interpreted as a URI if this flag is set.
)^ + /// + /// ^(
[SQLITE_OPEN_MEMORY]
+ ///
The database will be opened as an in-memory database. The database + /// is named by the "filename" argument for the purposes of cache-sharing, + /// if shared cache mode is enabled, but the "filename" is otherwise ignored. + ///
)^ + /// + /// ^(
[SQLITE_OPEN_NOMUTEX]
+ ///
The new database connection will use the "multi-thread" + /// [threading mode].)^ This means that separate threads are allowed + /// to use SQLite at the same time, as long as each thread is using + /// a different [database connection]. + /// + /// ^(
[SQLITE_OPEN_FULLMUTEX]
+ ///
The new database connection will use the "serialized" + /// [threading mode].)^ This means the multiple threads can safely + /// attempt to use the same database connection at the same time. + /// (Mutexes will block any actual concurrency, but in this mode + /// there is no harm in trying.) + /// + /// ^(
[SQLITE_OPEN_SHAREDCACHE]
+ ///
The database is opened [shared cache] enabled, overriding + /// the default shared cache setting provided by + /// [sqlite3_enable_shared_cache()].)^ + /// + /// ^(
[SQLITE_OPEN_PRIVATECACHE]
+ ///
The database is opened [shared cache] disabled, overriding + /// the default shared cache setting provided by + /// [sqlite3_enable_shared_cache()].)^ + /// + /// [[OPEN_NOFOLLOW]] ^(
[SQLITE_OPEN_NOFOLLOW]
+ ///
The database filename is not allowed to be a symbolic link
+ ///
)^ + /// + /// If the 3rd parameter to sqlite3_open_v2() is not one of the + /// required combinations shown above optionally combined with other + /// [SQLITE_OPEN_READONLY | SQLITE_OPEN_* bits] + /// then the behavior is undefined. + /// + /// ^The fourth parameter to sqlite3_open_v2() is the name of the + /// [sqlite3_vfs] object that defines the operating system interface that + /// the new database connection should use. ^If the fourth parameter is + /// a NULL pointer then the default [sqlite3_vfs] object is used. + /// + /// ^If the filename is ":memory:", then a private, temporary in-memory database + /// is created for the connection. ^This in-memory database will vanish when + /// the database connection is closed. Future versions of SQLite might + /// make use of additional special filenames that begin with the ":" character. + /// It is recommended that when a database filename actually does begin with + /// a ":" character you should prefix the filename with a pathname such as + /// "./" to avoid ambiguity. + /// + /// ^If the filename is an empty string, then a private, temporary + /// on-disk database will be created. ^This private database will be + /// automatically deleted as soon as the database connection is closed. + /// + /// [[URI filenames in sqlite3_open()]]

URI Filenames

+ /// + /// ^If [URI filename] interpretation is enabled, and the filename argument + /// begins with "file:", then the filename is interpreted as a URI. ^URI + /// filename interpretation is enabled if the [SQLITE_OPEN_URI] flag is + /// set in the third argument to sqlite3_open_v2(), or if it has + /// been enabled globally using the [SQLITE_CONFIG_URI] option with the + /// [sqlite3_config()] method or by the [SQLITE_USE_URI] compile-time option. + /// URI filename interpretation is turned off + /// by default, but future releases of SQLite might enable URI filename + /// interpretation by default. See "[URI filenames]" for additional + /// information. + /// + /// URI filenames are parsed according to RFC 3986. ^If the URI contains an + /// authority, then it must be either an empty string or the string + /// "localhost". ^If the authority is not an empty string or "localhost", an + /// error is returned to the caller. ^The fragment component of a URI, if + /// present, is ignored. + /// + /// ^SQLite uses the path component of the URI as the name of the disk file + /// which contains the database. ^If the path begins with a '/' character, + /// then it is interpreted as an absolute path. ^If the path does not begin + /// with a '/' (meaning that the authority section is omitted from the URI) + /// then the path is interpreted as a relative path. + /// ^(On windows, the first component of an absolute path + /// is a drive specification (e.g. "C:").)^ + /// + /// [[core URI query parameters]] + /// The query component of a URI may contain parameters that are interpreted + /// either by SQLite itself, or by a [VFS | custom VFS implementation]. + /// SQLite and its built-in [VFSes] interpret the + /// following query parameters: + /// + ///
    + ///
  • vfs: ^The "vfs" parameter may be used to specify the name of + /// a VFS object that provides the operating system interface that should + /// be used to access the database file on disk. ^If this option is set to + /// an empty string the default VFS object is used. ^Specifying an unknown + /// VFS is an error. ^If sqlite3_open_v2() is used and the vfs option is + /// present, then the VFS specified by the option takes precedence over + /// the value passed as the fourth parameter to sqlite3_open_v2(). + /// + ///
  • mode: ^(The mode parameter may be set to either "ro", "rw", + /// "rwc", or "memory". Attempting to set it to any other value is + /// an error)^. + /// ^If "ro" is specified, then the database is opened for read-only + /// access, just as if the [SQLITE_OPEN_READONLY] flag had been set in the + /// third argument to sqlite3_open_v2(). ^If the mode option is set to + /// "rw", then the database is opened for read-write (but not create) + /// access, as if SQLITE_OPEN_READWRITE (but not SQLITE_OPEN_CREATE) had + /// been set. ^Value "rwc" is equivalent to setting both + /// SQLITE_OPEN_READWRITE and SQLITE_OPEN_CREATE. ^If the mode option is + /// set to "memory" then a pure [in-memory database] that never reads + /// or writes from disk is used. ^It is an error to specify a value for + /// the mode parameter that is less restrictive than that specified by + /// the flags passed in the third parameter to sqlite3_open_v2(). + /// + ///
  • cache: ^The cache parameter may be set to either "shared" or + /// "private". ^Setting it to "shared" is equivalent to setting the + /// SQLITE_OPEN_SHAREDCACHE bit in the flags argument passed to + /// sqlite3_open_v2(). ^Setting the cache parameter to "private" is + /// equivalent to setting the SQLITE_OPEN_PRIVATECACHE bit. + /// ^If sqlite3_open_v2() is used and the "cache" parameter is present in + /// a URI filename, its value overrides any behavior requested by setting + /// SQLITE_OPEN_PRIVATECACHE or SQLITE_OPEN_SHAREDCACHE flag. + /// + ///
  • psow: ^The psow parameter indicates whether or not the + /// [powersafe overwrite] property does or does not apply to the + /// storage media on which the database file resides. + /// + ///
  • nolock: ^The nolock parameter is a boolean query parameter + /// which if set disables file locking in rollback journal modes. This + /// is useful for accessing a database on a filesystem that does not + /// support locking. Caution: Database corruption might result if two + /// or more processes write to the same database and any one of those + /// processes uses nolock=1. + /// + ///
  • immutable: ^The immutable parameter is a boolean query + /// parameter that indicates that the database file is stored on + /// read-only media. ^When immutable is set, SQLite assumes that the + /// database file cannot be changed, even by a process with higher + /// privilege, and so the database is opened read-only and all locking + /// and change detection is disabled. Caution: Setting the immutable + /// property on a database file that does in fact change can result + /// in incorrect query results and/or [SQLITE_CORRUPT] errors. + /// See also: [SQLITE_IOCAP_IMMUTABLE]. + /// + ///
+ /// + /// ^Specifying an unknown parameter in the query component of a URI is not an + /// error. Future versions of SQLite might understand additional query + /// parameters. See "[query parameters with special meaning to SQLite]" for + /// additional information. + /// + /// [[URI filename examples]]

URI filename examples

+ /// + /// + ///
URI filenames Results + ///
file:data.db + /// Open the file "data.db" in the current directory. + ///
file:/home/fred/data.db
+ /// file:///home/fred/data.db
+ /// file://localhost/home/fred/data.db
+ /// Open the database file "/home/fred/data.db". + ///
file://darkstar/home/fred/data.db + /// An error. "darkstar" is not a recognized authority. + ///
+ /// file:///C:/Documents%20and%20Settings/fred/Desktop/data.db + /// Windows only: Open the file "data.db" on fred's desktop on drive + /// C:. Note that the %20 escaping in this example is not strictly + /// necessary - space characters can be used literally + /// in URI filenames. + ///
file:data.db?mode=ro&cache=private + /// Open file "data.db" in the current directory for read-only access. + /// Regardless of whether or not shared-cache mode is enabled by + /// default, use a private cache. + ///
file:/home/fred/data.db?vfs=unix-dotfile + /// Open file "/home/fred/data.db". Use the special VFS "unix-dotfile" + /// that uses dot-files in place of posix advisory locking. + ///
file:data.db?mode=readonly + /// An error. "readonly" is not a valid option for the "mode" parameter. + ///
+ /// + /// ^URI hexadecimal escape sequences (%HH) are supported within the path and + /// query components of a URI. A hexadecimal escape sequence consists of a + /// percent sign - "%" - followed by exactly two hexadecimal digits + /// specifying an octet value. ^Before the path or query components of a + /// URI filename are interpreted, they are encoded using UTF-8 and all + /// hexadecimal escape sequences replaced by a single byte containing the + /// corresponding octet. If this process generates an invalid UTF-8 encoding, + /// the results are undefined. + /// + /// Note to Windows users: The encoding used for the filename argument + /// of sqlite3_open() and sqlite3_open_v2() must be UTF-8, not whatever + /// codepage is currently defined. Filenames containing international + /// characters must be converted to UTF-8 prior to passing them into + /// sqlite3_open() or sqlite3_open_v2(). + /// + /// Note to Windows Runtime users: The temporary directory must be set + /// prior to calling sqlite3_open() or sqlite3_open_v2(). Otherwise, various + /// features that require the use of temporary files may fail. + /// + /// See also: [sqlite3_temp_directory] + int sqlite3_open( + ffi.Pointer filename, + ffi.Pointer> ppDb, + ) { + return _sqlite3_open(filename, ppDb); + } + + late final _sqlite3_openPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + >('sqlite3_open'); + late final _sqlite3_open = _sqlite3_openPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer>) + >(); + + int sqlite3_open16( + ffi.Pointer filename, + ffi.Pointer> ppDb, + ) { + return _sqlite3_open16(filename, ppDb); + } + + late final _sqlite3_open16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + >('sqlite3_open16'); + late final _sqlite3_open16 = _sqlite3_open16Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer>) + >(); + + int sqlite3_open_v2( + ffi.Pointer filename, + ffi.Pointer> ppDb, + int flags, + ffi.Pointer zVfs, + ) { + return _sqlite3_open_v2(filename, ppDb, flags, zVfs); + } + + late final _sqlite3_open_v2Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ) + > + >('sqlite3_open_v2'); + late final _sqlite3_open_v2 = _sqlite3_open_v2Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + ) + >(); + + int sqlite3_os_end() { + return _sqlite3_os_end(); + } + + late final _sqlite3_os_endPtr = + _lookup>('sqlite3_os_end'); + late final _sqlite3_os_end = _sqlite3_os_endPtr.asFunction(); + + int sqlite3_os_init() { + return _sqlite3_os_init(); + } + + late final _sqlite3_os_initPtr = + _lookup>('sqlite3_os_init'); + late final _sqlite3_os_init = _sqlite3_os_initPtr + .asFunction(); + + /// CAPI3REF: Overload A Function For A Virtual Table + /// METHOD: sqlite3 + /// + /// ^(Virtual tables can provide alternative implementations of functions + /// using the [xFindFunction] method of the [virtual table module]. + /// But global versions of those functions + /// must exist in order to be overloaded.)^ + /// + /// ^(This API makes sure a global version of a function with a particular + /// name and number of parameters exists. If no such function exists + /// before this API is called, a new function is created.)^ ^The implementation + /// of the new function always causes an exception to be thrown. So + /// the new function is not good for anything by itself. Its only + /// purpose is to be a placeholder function that can be overloaded + /// by a [virtual table]. + int sqlite3_overload_function( + ffi.Pointer arg0, + ffi.Pointer zFuncName, + int nArg, + ) { + return _sqlite3_overload_function(arg0, zFuncName, nArg); + } + + late final _sqlite3_overload_functionPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + >('sqlite3_overload_function'); + late final _sqlite3_overload_function = _sqlite3_overload_functionPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); + + /// CAPI3REF: Compiling An SQL Statement + /// KEYWORDS: {SQL statement compiler} + /// METHOD: sqlite3 + /// CONSTRUCTOR: sqlite3_stmt + /// + /// To execute an SQL statement, it must first be compiled into a byte-code + /// program using one of these routines. Or, in other words, these routines + /// are constructors for the [prepared statement] object. + /// + /// The preferred routine to use is [sqlite3_prepare_v2()]. The + /// [sqlite3_prepare()] interface is legacy and should be avoided. + /// [sqlite3_prepare_v3()] has an extra "prepFlags" option that is used + /// for special purposes. + /// + /// The use of the UTF-8 interfaces is preferred, as SQLite currently + /// does all parsing using UTF-8. The UTF-16 interfaces are provided + /// as a convenience. The UTF-16 interfaces work by converting the + /// input text into UTF-8, then invoking the corresponding UTF-8 interface. + /// + /// The first argument, "db", is a [database connection] obtained from a + /// prior successful call to [sqlite3_open()], [sqlite3_open_v2()] or + /// [sqlite3_open16()]. The database connection must not have been closed. + /// + /// The second argument, "zSql", is the statement to be compiled, encoded + /// as either UTF-8 or UTF-16. The sqlite3_prepare(), sqlite3_prepare_v2(), + /// and sqlite3_prepare_v3() + /// interfaces use UTF-8, and sqlite3_prepare16(), sqlite3_prepare16_v2(), + /// and sqlite3_prepare16_v3() use UTF-16. + /// + /// ^If the nByte argument is negative, then zSql is read up to the + /// first zero terminator. ^If nByte is positive, then it is the + /// number of bytes read from zSql. ^If nByte is zero, then no prepared + /// statement is generated. + /// If the caller knows that the supplied string is nul-terminated, then + /// there is a small performance advantage to passing an nByte parameter that + /// is the number of bytes in the input string including + /// the nul-terminator. + /// + /// ^If pzTail is not NULL then *pzTail is made to point to the first byte + /// past the end of the first SQL statement in zSql. These routines only + /// compile the first statement in zSql, so *pzTail is left pointing to + /// what remains uncompiled. + /// + /// ^*ppStmt is left pointing to a compiled [prepared statement] that can be + /// executed using [sqlite3_step()]. ^If there is an error, *ppStmt is set + /// to NULL. ^If the input text contains no SQL (if the input is an empty + /// string or a comment) then *ppStmt is set to NULL. + /// The calling procedure is responsible for deleting the compiled + /// SQL statement using [sqlite3_finalize()] after it has finished with it. + /// ppStmt may not be NULL. + /// + /// ^On success, the sqlite3_prepare() family of routines return [SQLITE_OK]; + /// otherwise an [error code] is returned. + /// + /// The sqlite3_prepare_v2(), sqlite3_prepare_v3(), sqlite3_prepare16_v2(), + /// and sqlite3_prepare16_v3() interfaces are recommended for all new programs. + /// The older interfaces (sqlite3_prepare() and sqlite3_prepare16()) + /// are retained for backwards compatibility, but their use is discouraged. + /// ^In the "vX" interfaces, the prepared statement + /// that is returned (the [sqlite3_stmt] object) contains a copy of the + /// original SQL text. This causes the [sqlite3_step()] interface to + /// behave differently in three ways: + /// + ///
    + ///
  1. + /// ^If the database schema changes, instead of returning [SQLITE_SCHEMA] as it + /// always used to do, [sqlite3_step()] will automatically recompile the SQL + /// statement and try to run it again. As many as [SQLITE_MAX_SCHEMA_RETRY] + /// retries will occur before sqlite3_step() gives up and returns an error. + ///
  2. + /// + ///
  3. + /// ^When an error occurs, [sqlite3_step()] will return one of the detailed + /// [error codes] or [extended error codes]. ^The legacy behavior was that + /// [sqlite3_step()] would only return a generic [SQLITE_ERROR] result code + /// and the application would have to make a second call to [sqlite3_reset()] + /// in order to find the underlying cause of the problem. With the "v2" prepare + /// interfaces, the underlying reason for the error is returned immediately. + ///
  4. + /// + ///
  5. + /// ^If the specific value bound to a [parameter | host parameter] in the + /// WHERE clause might influence the choice of query plan for a statement, + /// then the statement will be automatically recompiled, as if there had been + /// a schema change, on the first [sqlite3_step()] call following any change + /// to the [sqlite3_bind_text | bindings] of that [parameter]. + /// ^The specific value of a WHERE-clause [parameter] might influence the + /// choice of query plan if the parameter is the left-hand side of a [LIKE] + /// or [GLOB] operator or if the parameter is compared to an indexed column + /// and the [SQLITE_ENABLE_STAT4] compile-time option is enabled. + ///
  6. + ///
+ /// + ///

^sqlite3_prepare_v3() differs from sqlite3_prepare_v2() only in having + /// the extra prepFlags parameter, which is a bit array consisting of zero or + /// more of the [SQLITE_PREPARE_PERSISTENT|SQLITE_PREPARE_*] flags. ^The + /// sqlite3_prepare_v2() interface works exactly the same as + /// sqlite3_prepare_v3() with a zero prepFlags parameter. + int sqlite3_prepare( + ffi.Pointer db, + ffi.Pointer zSql, + int nByte, + ffi.Pointer> ppStmt, + ffi.Pointer> pzTail, + ) { + return _sqlite3_prepare(db, zSql, nByte, ppStmt, pzTail); + } + + late final _sqlite3_preparePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('sqlite3_prepare'); + late final _sqlite3_prepare = _sqlite3_preparePtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); + + int sqlite3_prepare16( + ffi.Pointer db, + ffi.Pointer zSql, + int nByte, + ffi.Pointer> ppStmt, + ffi.Pointer> pzTail, + ) { + return _sqlite3_prepare16(db, zSql, nByte, ppStmt, pzTail); + } + + late final _sqlite3_prepare16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('sqlite3_prepare16'); + late final _sqlite3_prepare16 = _sqlite3_prepare16Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); + + int sqlite3_prepare16_v2( + ffi.Pointer db, + ffi.Pointer zSql, + int nByte, + ffi.Pointer> ppStmt, + ffi.Pointer> pzTail, + ) { + return _sqlite3_prepare16_v2(db, zSql, nByte, ppStmt, pzTail); + } + + late final _sqlite3_prepare16_v2Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('sqlite3_prepare16_v2'); + late final _sqlite3_prepare16_v2 = _sqlite3_prepare16_v2Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); + + int sqlite3_prepare16_v3( + ffi.Pointer db, + ffi.Pointer zSql, + int nByte, + int prepFlags, + ffi.Pointer> ppStmt, + ffi.Pointer> pzTail, + ) { + return _sqlite3_prepare16_v3(db, zSql, nByte, prepFlags, ppStmt, pzTail); + } + + late final _sqlite3_prepare16_v3Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.UnsignedInt, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('sqlite3_prepare16_v3'); + late final _sqlite3_prepare16_v3 = _sqlite3_prepare16_v3Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); + + int sqlite3_prepare_v2( + ffi.Pointer db, + ffi.Pointer zSql, + int nByte, + ffi.Pointer> ppStmt, + ffi.Pointer> pzTail, + ) { + return _sqlite3_prepare_v2(db, zSql, nByte, ppStmt, pzTail); + } + + late final _sqlite3_prepare_v2Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('sqlite3_prepare_v2'); + late final _sqlite3_prepare_v2 = _sqlite3_prepare_v2Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); + + int sqlite3_prepare_v3( + ffi.Pointer db, + ffi.Pointer zSql, + int nByte, + int prepFlags, + ffi.Pointer> ppStmt, + ffi.Pointer> pzTail, + ) { + return _sqlite3_prepare_v3(db, zSql, nByte, prepFlags, ppStmt, pzTail); + } + + late final _sqlite3_prepare_v3Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.UnsignedInt, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('sqlite3_prepare_v3'); + late final _sqlite3_prepare_v3 = _sqlite3_prepare_v3Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer>, + ffi.Pointer>, + ) + >(); + + ffi.Pointer sqlite3_profile( + ffi.Pointer arg0, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sqlite3_uint64, + ) + > + > + xProfile, + ffi.Pointer arg2, + ) { + return _sqlite3_profile(arg0, xProfile, arg2); + } + + late final _sqlite3_profilePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sqlite3_uint64, + ) + > + >, + ffi.Pointer, + ) + > + >('sqlite3_profile'); + late final _sqlite3_profile = _sqlite3_profilePtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sqlite3_uint64, + ) + > + >, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Query Progress Callbacks + /// METHOD: sqlite3 + /// + /// ^The sqlite3_progress_handler(D,N,X,P) interface causes the callback + /// function X to be invoked periodically during long running calls to + /// [sqlite3_exec()], [sqlite3_step()] and [sqlite3_get_table()] for + /// database connection D. An example use for this + /// interface is to keep a GUI updated during a large query. + /// + /// ^The parameter P is passed through as the only parameter to the + /// callback function X. ^The parameter N is the approximate number of + /// [virtual machine instructions] that are evaluated between successive + /// invocations of the callback X. ^If N is less than one then the progress + /// handler is disabled. + /// + /// ^Only a single progress handler may be defined at one time per + /// [database connection]; setting a new progress handler cancels the + /// old one. ^Setting parameter X to NULL disables the progress handler. + /// ^The progress handler is also disabled by setting N to a value less + /// than 1. + /// + /// ^If the progress callback returns non-zero, the operation is + /// interrupted. This feature can be used to implement a + /// "Cancel" button on a GUI progress dialog box. + /// + /// The progress handler callback must not do anything that will modify + /// the database connection that invoked the progress handler. + /// Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their + /// database connections for the meaning of "modify" in this paragraph. + void sqlite3_progress_handler( + ffi.Pointer arg0, + int arg1, + ffi.Pointer)>> + arg2, + ffi.Pointer arg3, + ) { + return _sqlite3_progress_handler(arg0, arg1, arg2, arg3); + } + + late final _sqlite3_progress_handlerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + ) + > + >('sqlite3_progress_handler'); + late final _sqlite3_progress_handler = _sqlite3_progress_handlerPtr + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Pseudo-Random Number Generator + /// + /// SQLite contains a high-quality pseudo-random number generator (PRNG) used to + /// select random [ROWID | ROWIDs] when inserting new records into a table that + /// already uses the largest possible [ROWID]. The PRNG is also used for + /// the built-in random() and randomblob() SQL functions. This interface allows + /// applications to access the same PRNG for other purposes. + /// + /// ^A call to this routine stores N bytes of randomness into buffer P. + /// ^The P parameter can be a NULL pointer. + /// + /// ^If this routine has not been previously called or if the previous + /// call had N less than one or a NULL pointer for P, then the PRNG is + /// seeded using randomness obtained from the xRandomness method of + /// the default [sqlite3_vfs] object. + /// ^If the previous call to this routine had an N of 1 or more and a + /// non-NULL P then the pseudo-randomness is generated + /// internally and without recourse to the [sqlite3_vfs] xRandomness + /// method. + void sqlite3_randomness(int N, ffi.Pointer P) { + return _sqlite3_randomness(N, P); + } + + late final _sqlite3_randomnessPtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_randomness'); + late final _sqlite3_randomness = _sqlite3_randomnessPtr + .asFunction)>(); + + ffi.Pointer sqlite3_realloc(ffi.Pointer arg0, int arg1) { + return _sqlite3_realloc(arg0, arg1); + } + + late final _sqlite3_reallocPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_realloc'); + late final _sqlite3_realloc = _sqlite3_reallocPtr + .asFunction Function(ffi.Pointer, int)>(); + + ffi.Pointer sqlite3_realloc64( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_realloc64(arg0, arg1); + } + + late final _sqlite3_realloc64Ptr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, sqlite3_uint64) + > + >('sqlite3_realloc64'); + late final _sqlite3_realloc64 = _sqlite3_realloc64Ptr + .asFunction Function(ffi.Pointer, int)>(); + + /// CAPI3REF: Attempt To Free Heap Memory + /// + /// ^The sqlite3_release_memory() interface attempts to free N bytes + /// of heap memory by deallocating non-essential memory allocations + /// held by the database library. Memory used to cache database + /// pages to improve performance is an example of non-essential memory. + /// ^sqlite3_release_memory() returns the number of bytes actually freed, + /// which might be more or less than the amount requested. + /// ^The sqlite3_release_memory() routine is a no-op returning zero + /// if SQLite is not compiled with [SQLITE_ENABLE_MEMORY_MANAGEMENT]. + /// + /// See also: [sqlite3_db_release_memory()] + int sqlite3_release_memory(int arg0) { + return _sqlite3_release_memory(arg0); + } + + late final _sqlite3_release_memoryPtr = + _lookup>( + 'sqlite3_release_memory', + ); + late final _sqlite3_release_memory = _sqlite3_release_memoryPtr + .asFunction(); + + /// CAPI3REF: Reset A Prepared Statement Object + /// METHOD: sqlite3_stmt + /// + /// The sqlite3_reset() function is called to reset a [prepared statement] + /// object back to its initial state, ready to be re-executed. + /// ^Any SQL statement variables that had values bound to them using + /// the [sqlite3_bind_blob | sqlite3_bind_*() API] retain their values. + /// Use [sqlite3_clear_bindings()] to reset the bindings. + /// + /// ^The [sqlite3_reset(S)] interface resets the [prepared statement] S + /// back to the beginning of its program. + /// + /// ^If the most recent call to [sqlite3_step(S)] for the + /// [prepared statement] S returned [SQLITE_ROW] or [SQLITE_DONE], + /// or if [sqlite3_step(S)] has never before been called on S, + /// then [sqlite3_reset(S)] returns [SQLITE_OK]. + /// + /// ^If the most recent call to [sqlite3_step(S)] for the + /// [prepared statement] S indicated an error, then + /// [sqlite3_reset(S)] returns an appropriate [error code]. + /// + /// ^The [sqlite3_reset(S)] interface does not change the values + /// of any [sqlite3_bind_blob|bindings] on the [prepared statement] S. + int sqlite3_reset(ffi.Pointer pStmt) { + return _sqlite3_reset(pStmt); + } + + late final _sqlite3_resetPtr = + _lookup)>>( + 'sqlite3_reset', + ); + late final _sqlite3_reset = _sqlite3_resetPtr + .asFunction)>(); + + /// CAPI3REF: Reset Automatic Extension Loading + /// + /// ^This interface disables all automatic extensions previously + /// registered using [sqlite3_auto_extension()]. + void sqlite3_reset_auto_extension() { + return _sqlite3_reset_auto_extension(); + } + + late final _sqlite3_reset_auto_extensionPtr = + _lookup>( + 'sqlite3_reset_auto_extension', + ); + late final _sqlite3_reset_auto_extension = _sqlite3_reset_auto_extensionPtr + .asFunction(); + + /// CAPI3REF: Setting The Result Of An SQL Function + /// METHOD: sqlite3_context + /// + /// These routines are used by the xFunc or xFinal callbacks that + /// implement SQL functions and aggregates. See + /// [sqlite3_create_function()] and [sqlite3_create_function16()] + /// for additional information. + /// + /// These functions work very much like the [parameter binding] family of + /// functions used to bind values to host parameters in prepared statements. + /// Refer to the [SQL parameter] documentation for additional information. + /// + /// ^The sqlite3_result_blob() interface sets the result from + /// an application-defined function to be the BLOB whose content is pointed + /// to by the second parameter and which is N bytes long where N is the + /// third parameter. + /// + /// ^The sqlite3_result_zeroblob(C,N) and sqlite3_result_zeroblob64(C,N) + /// interfaces set the result of the application-defined function to be + /// a BLOB containing all zero bytes and N bytes in size. + /// + /// ^The sqlite3_result_double() interface sets the result from + /// an application-defined function to be a floating point value specified + /// by its 2nd argument. + /// + /// ^The sqlite3_result_error() and sqlite3_result_error16() functions + /// cause the implemented SQL function to throw an exception. + /// ^SQLite uses the string pointed to by the + /// 2nd parameter of sqlite3_result_error() or sqlite3_result_error16() + /// as the text of an error message. ^SQLite interprets the error + /// message string from sqlite3_result_error() as UTF-8. ^SQLite + /// interprets the string from sqlite3_result_error16() as UTF-16 using + /// the same [byte-order determination rules] as [sqlite3_bind_text16()]. + /// ^If the third parameter to sqlite3_result_error() + /// or sqlite3_result_error16() is negative then SQLite takes as the error + /// message all text up through the first zero character. + /// ^If the third parameter to sqlite3_result_error() or + /// sqlite3_result_error16() is non-negative then SQLite takes that many + /// bytes (not characters) from the 2nd parameter as the error message. + /// ^The sqlite3_result_error() and sqlite3_result_error16() + /// routines make a private copy of the error message text before + /// they return. Hence, the calling function can deallocate or + /// modify the text after they return without harm. + /// ^The sqlite3_result_error_code() function changes the error code + /// returned by SQLite as a result of an error in a function. ^By default, + /// the error code is SQLITE_ERROR. ^A subsequent call to sqlite3_result_error() + /// or sqlite3_result_error16() resets the error code to SQLITE_ERROR. + /// + /// ^The sqlite3_result_error_toobig() interface causes SQLite to throw an + /// error indicating that a string or BLOB is too long to represent. + /// + /// ^The sqlite3_result_error_nomem() interface causes SQLite to throw an + /// error indicating that a memory allocation failed. + /// + /// ^The sqlite3_result_int() interface sets the return value + /// of the application-defined function to be the 32-bit signed integer + /// value given in the 2nd argument. + /// ^The sqlite3_result_int64() interface sets the return value + /// of the application-defined function to be the 64-bit signed integer + /// value given in the 2nd argument. + /// + /// ^The sqlite3_result_null() interface sets the return value + /// of the application-defined function to be NULL. + /// + /// ^The sqlite3_result_text(), sqlite3_result_text16(), + /// sqlite3_result_text16le(), and sqlite3_result_text16be() interfaces + /// set the return value of the application-defined function to be + /// a text string which is represented as UTF-8, UTF-16 native byte order, + /// UTF-16 little endian, or UTF-16 big endian, respectively. + /// ^The sqlite3_result_text64() interface sets the return value of an + /// application-defined function to be a text string in an encoding + /// specified by the fifth (and last) parameter, which must be one + /// of [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE]. + /// ^SQLite takes the text result from the application from + /// the 2nd parameter of the sqlite3_result_text* interfaces. + /// ^If the 3rd parameter to the sqlite3_result_text* interfaces + /// is negative, then SQLite takes result text from the 2nd parameter + /// through the first zero character. + /// ^If the 3rd parameter to the sqlite3_result_text* interfaces + /// is non-negative, then as many bytes (not characters) of the text + /// pointed to by the 2nd parameter are taken as the application-defined + /// function result. If the 3rd parameter is non-negative, then it + /// must be the byte offset into the string where the NUL terminator would + /// appear if the string where NUL terminated. If any NUL characters occur + /// in the string at a byte offset that is less than the value of the 3rd + /// parameter, then the resulting string will contain embedded NULs and the + /// result of expressions operating on strings with embedded NULs is undefined. + /// ^If the 4th parameter to the sqlite3_result_text* interfaces + /// or sqlite3_result_blob is a non-NULL pointer, then SQLite calls that + /// function as the destructor on the text or BLOB result when it has + /// finished using that result. + /// ^If the 4th parameter to the sqlite3_result_text* interfaces or to + /// sqlite3_result_blob is the special constant SQLITE_STATIC, then SQLite + /// assumes that the text or BLOB result is in constant space and does not + /// copy the content of the parameter nor call a destructor on the content + /// when it has finished using that result. + /// ^If the 4th parameter to the sqlite3_result_text* interfaces + /// or sqlite3_result_blob is the special constant SQLITE_TRANSIENT + /// then SQLite makes a copy of the result into space obtained + /// from [sqlite3_malloc()] before it returns. + /// + /// ^For the sqlite3_result_text16(), sqlite3_result_text16le(), and + /// sqlite3_result_text16be() routines, and for sqlite3_result_text64() + /// when the encoding is not UTF8, if the input UTF16 begins with a + /// byte-order mark (BOM, U+FEFF) then the BOM is removed from the + /// string and the rest of the string is interpreted according to the + /// byte-order specified by the BOM. ^The byte-order specified by + /// the BOM at the beginning of the text overrides the byte-order + /// specified by the interface procedure. ^So, for example, if + /// sqlite3_result_text16le() is invoked with text that begins + /// with bytes 0xfe, 0xff (a big-endian byte-order mark) then the + /// first two bytes of input are skipped and the remaining input + /// is interpreted as UTF16BE text. + /// + /// ^For UTF16 input text to the sqlite3_result_text16(), + /// sqlite3_result_text16be(), sqlite3_result_text16le(), and + /// sqlite3_result_text64() routines, if the text contains invalid + /// UTF16 characters, the invalid characters might be converted + /// into the unicode replacement character, U+FFFD. + /// + /// ^The sqlite3_result_value() interface sets the result of + /// the application-defined function to be a copy of the + /// [unprotected sqlite3_value] object specified by the 2nd parameter. ^The + /// sqlite3_result_value() interface makes a copy of the [sqlite3_value] + /// so that the [sqlite3_value] specified in the parameter may change or + /// be deallocated after sqlite3_result_value() returns without harm. + /// ^A [protected sqlite3_value] object may always be used where an + /// [unprotected sqlite3_value] object is required, so either + /// kind of [sqlite3_value] object can be used with this interface. + /// + /// ^The sqlite3_result_pointer(C,P,T,D) interface sets the result to an + /// SQL NULL value, just like [sqlite3_result_null(C)], except that it + /// also associates the host-language pointer P or type T with that + /// NULL value such that the pointer can be retrieved within an + /// [application-defined SQL function] using [sqlite3_value_pointer()]. + /// ^If the D parameter is not NULL, then it is a pointer to a destructor + /// for the P parameter. ^SQLite invokes D with P as its only argument + /// when SQLite is finished with P. The T parameter should be a static + /// string and preferably a string literal. The sqlite3_result_pointer() + /// routine is part of the [pointer passing interface] added for SQLite 3.20.0. + /// + /// If these routines are called from within the different thread + /// than the one containing the application-defined function that received + /// the [sqlite3_context] pointer, the results are undefined. + void sqlite3_result_blob( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer)>> + arg3, + ) { + return _sqlite3_result_blob(arg0, arg1, arg2, arg3); + } + + late final _sqlite3_result_blobPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_result_blob'); + late final _sqlite3_result_blob = _sqlite3_result_blobPtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + void sqlite3_result_blob64( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer)>> + arg3, + ) { + return _sqlite3_result_blob64(arg0, arg1, arg2, arg3); + } + + late final _sqlite3_result_blob64Ptr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sqlite3_uint64, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_result_blob64'); + late final _sqlite3_result_blob64 = _sqlite3_result_blob64Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + void sqlite3_result_double(ffi.Pointer arg0, double arg1) { + return _sqlite3_result_double(arg0, arg1); + } + + late final _sqlite3_result_doublePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Double) + > + >('sqlite3_result_double'); + late final _sqlite3_result_double = _sqlite3_result_doublePtr + .asFunction, double)>(); + + void sqlite3_result_error( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) { + return _sqlite3_result_error(arg0, arg1, arg2); + } + + late final _sqlite3_result_errorPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_result_error'); + late final _sqlite3_result_error = _sqlite3_result_errorPtr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); + + void sqlite3_result_error16( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) { + return _sqlite3_result_error16(arg0, arg1, arg2); + } + + late final _sqlite3_result_error16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_result_error16'); + late final _sqlite3_result_error16 = _sqlite3_result_error16Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); + + void sqlite3_result_error_code(ffi.Pointer arg0, int arg1) { + return _sqlite3_result_error_code(arg0, arg1); + } + + late final _sqlite3_result_error_codePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_result_error_code'); + late final _sqlite3_result_error_code = _sqlite3_result_error_codePtr + .asFunction, int)>(); + + void sqlite3_result_error_nomem(ffi.Pointer arg0) { + return _sqlite3_result_error_nomem(arg0); + } + + late final _sqlite3_result_error_nomemPtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_result_error_nomem'); + late final _sqlite3_result_error_nomem = _sqlite3_result_error_nomemPtr + .asFunction)>(); + + void sqlite3_result_error_toobig(ffi.Pointer arg0) { + return _sqlite3_result_error_toobig(arg0); + } + + late final _sqlite3_result_error_toobigPtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_result_error_toobig'); + late final _sqlite3_result_error_toobig = _sqlite3_result_error_toobigPtr + .asFunction)>(); + + void sqlite3_result_int(ffi.Pointer arg0, int arg1) { + return _sqlite3_result_int(arg0, arg1); + } + + late final _sqlite3_result_intPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_result_int'); + late final _sqlite3_result_int = _sqlite3_result_intPtr + .asFunction, int)>(); + + void sqlite3_result_int64(ffi.Pointer arg0, int arg1) { + return _sqlite3_result_int64(arg0, arg1); + } + + late final _sqlite3_result_int64Ptr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, sqlite3_int64) + > + >('sqlite3_result_int64'); + late final _sqlite3_result_int64 = _sqlite3_result_int64Ptr + .asFunction, int)>(); + + void sqlite3_result_null(ffi.Pointer arg0) { + return _sqlite3_result_null(arg0); + } + + late final _sqlite3_result_nullPtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_result_null'); + late final _sqlite3_result_null = _sqlite3_result_nullPtr + .asFunction)>(); + + void sqlite3_result_pointer( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer)>> + arg3, + ) { + return _sqlite3_result_pointer(arg0, arg1, arg2, arg3); + } + + late final _sqlite3_result_pointerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_result_pointer'); + late final _sqlite3_result_pointer = _sqlite3_result_pointerPtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + /// CAPI3REF: Setting The Subtype Of An SQL Function + /// METHOD: sqlite3_context + /// + /// The sqlite3_result_subtype(C,T) function causes the subtype of + /// the result from the [application-defined SQL function] with + /// [sqlite3_context] C to be the value T. Only the lower 8 bits + /// of the subtype T are preserved in current versions of SQLite; + /// higher order bits are discarded. + /// The number of subtype bytes preserved by SQLite might increase + /// in future releases of SQLite. + void sqlite3_result_subtype(ffi.Pointer arg0, int arg1) { + return _sqlite3_result_subtype(arg0, arg1); + } + + late final _sqlite3_result_subtypePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) + > + >('sqlite3_result_subtype'); + late final _sqlite3_result_subtype = _sqlite3_result_subtypePtr + .asFunction, int)>(); + + void sqlite3_result_text( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer)>> + arg3, + ) { + return _sqlite3_result_text(arg0, arg1, arg2, arg3); + } + + late final _sqlite3_result_textPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_result_text'); + late final _sqlite3_result_text = _sqlite3_result_textPtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + void sqlite3_result_text16( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer)>> + arg3, + ) { + return _sqlite3_result_text16(arg0, arg1, arg2, arg3); + } + + late final _sqlite3_result_text16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_result_text16'); + late final _sqlite3_result_text16 = _sqlite3_result_text16Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + void sqlite3_result_text16be( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer)>> + arg3, + ) { + return _sqlite3_result_text16be(arg0, arg1, arg2, arg3); + } + + late final _sqlite3_result_text16bePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_result_text16be'); + late final _sqlite3_result_text16be = _sqlite3_result_text16bePtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + void sqlite3_result_text16le( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer)>> + arg3, + ) { + return _sqlite3_result_text16le(arg0, arg1, arg2, arg3); + } + + late final _sqlite3_result_text16lePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_result_text16le'); + late final _sqlite3_result_text16le = _sqlite3_result_text16lePtr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + void sqlite3_result_text64( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ffi.Pointer)>> + arg3, + int encoding, + ) { + return _sqlite3_result_text64(arg0, arg1, arg2, arg3, encoding); + } + + late final _sqlite3_result_text64Ptr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + sqlite3_uint64, + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.UnsignedChar, + ) + > + >('sqlite3_result_text64'); + late final _sqlite3_result_text64 = _sqlite3_result_text64Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction)> + >, + int, + ) + >(); + + void sqlite3_result_value( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return _sqlite3_result_value(arg0, arg1); + } + + late final _sqlite3_result_valuePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_result_value'); + late final _sqlite3_result_value = _sqlite3_result_valuePtr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >(); + + void sqlite3_result_zeroblob(ffi.Pointer arg0, int n) { + return _sqlite3_result_zeroblob(arg0, n); + } + + late final _sqlite3_result_zeroblobPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_result_zeroblob'); + late final _sqlite3_result_zeroblob = _sqlite3_result_zeroblobPtr + .asFunction, int)>(); + + int sqlite3_result_zeroblob64(ffi.Pointer arg0, int n) { + return _sqlite3_result_zeroblob64(arg0, n); + } + + late final _sqlite3_result_zeroblob64Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, sqlite3_uint64) + > + >('sqlite3_result_zeroblob64'); + late final _sqlite3_result_zeroblob64 = _sqlite3_result_zeroblob64Ptr + .asFunction, int)>(); + + ffi.Pointer sqlite3_rollback_hook( + ffi.Pointer arg0, + ffi.Pointer)>> + arg1, + ffi.Pointer arg2, + ) { + return _sqlite3_rollback_hook(arg0, arg1, arg2); + } + + late final _sqlite3_rollback_hookPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + ) + > + >('sqlite3_rollback_hook'); + late final _sqlite3_rollback_hook = _sqlite3_rollback_hookPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + ) + >(); + + /// Register a geometry callback named zGeom that can be used as part of an + /// R-Tree geometry query as follows: + /// + /// SELECT ... FROM WHERE MATCH $zGeom(... params ...) + int sqlite3_rtree_geometry_callback( + ffi.Pointer db, + ffi.Pointer zGeom, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xGeom, + ffi.Pointer pContext, + ) { + return _sqlite3_rtree_geometry_callback(db, zGeom, xGeom, pContext); + } + + late final _sqlite3_rtree_geometry_callbackPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >('sqlite3_rtree_geometry_callback'); + late final _sqlite3_rtree_geometry_callback = + _sqlite3_rtree_geometry_callbackPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); + + /// Register a 2nd-generation geometry callback named zScore that can be + /// used as part of an R-Tree geometry query as follows: + /// + /// SELECT ... FROM WHERE MATCH $zQueryFunc(... params ...) + int sqlite3_rtree_query_callback( + ffi.Pointer db, + ffi.Pointer zQueryFunc, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer) + > + > + xQueryFunc, + ffi.Pointer pContext, + ffi.Pointer)>> + xDestructor, + ) { + return _sqlite3_rtree_query_callback( + db, + zQueryFunc, + xQueryFunc, + pContext, + xDestructor, + ); + } + + late final _sqlite3_rtree_query_callbackPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer) + > + >, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_rtree_query_callback'); + late final _sqlite3_rtree_query_callback = _sqlite3_rtree_query_callbackPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer) + > + >, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + /// CAPI3REF: Serialize a database + /// + /// The sqlite3_serialize(D,S,P,F) interface returns a pointer to memory + /// that is a serialization of the S database on [database connection] D. + /// If P is not a NULL pointer, then the size of the database in bytes + /// is written into *P. + /// + /// For an ordinary on-disk database file, the serialization is just a + /// copy of the disk file. For an in-memory database or a "TEMP" database, + /// the serialization is the same sequence of bytes which would be written + /// to disk if that database where backed up to disk. + /// + /// The usual case is that sqlite3_serialize() copies the serialization of + /// the database into memory obtained from [sqlite3_malloc64()] and returns + /// a pointer to that memory. The caller is responsible for freeing the + /// returned value to avoid a memory leak. However, if the F argument + /// contains the SQLITE_SERIALIZE_NOCOPY bit, then no memory allocations + /// are made, and the sqlite3_serialize() function will return a pointer + /// to the contiguous memory representation of the database that SQLite + /// is currently using for that database, or NULL if the no such contiguous + /// memory representation of the database exists. A contiguous memory + /// representation of the database will usually only exist if there has + /// been a prior call to [sqlite3_deserialize(D,S,...)] with the same + /// values of D and S. + /// The size of the database is written into *P even if the + /// SQLITE_SERIALIZE_NOCOPY bit is set but no contiguous copy + /// of the database exists. + /// + /// A call to sqlite3_serialize(D,S,P,F) might return NULL even if the + /// SQLITE_SERIALIZE_NOCOPY bit is omitted from argument F if a memory + /// allocation error occurs. + /// + /// This interface is only available if SQLite is compiled with the + /// [SQLITE_ENABLE_DESERIALIZE] option. + ffi.Pointer sqlite3_serialize( + ffi.Pointer db, + ffi.Pointer zSchema, + ffi.Pointer piSize, + int mFlags, + ) { + return _sqlite3_serialize(db, zSchema, piSize, mFlags); + } + + late final _sqlite3_serializePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('sqlite3_serialize'); + late final _sqlite3_serialize = _sqlite3_serializePtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + /// CAPI3REF: Compile-Time Authorization Callbacks + /// METHOD: sqlite3 + /// KEYWORDS: {authorizer callback} + /// + /// ^This routine registers an authorizer callback with a particular + /// [database connection], supplied in the first argument. + /// ^The authorizer callback is invoked as SQL statements are being compiled + /// by [sqlite3_prepare()] or its variants [sqlite3_prepare_v2()], + /// [sqlite3_prepare_v3()], [sqlite3_prepare16()], [sqlite3_prepare16_v2()], + /// and [sqlite3_prepare16_v3()]. ^At various + /// points during the compilation process, as logic is being created + /// to perform various actions, the authorizer callback is invoked to + /// see if those actions are allowed. ^The authorizer callback should + /// return [SQLITE_OK] to allow the action, [SQLITE_IGNORE] to disallow the + /// specific action but allow the SQL statement to continue to be + /// compiled, or [SQLITE_DENY] to cause the entire SQL statement to be + /// rejected with an error. ^If the authorizer callback returns + /// any value other than [SQLITE_IGNORE], [SQLITE_OK], or [SQLITE_DENY] + /// then the [sqlite3_prepare_v2()] or equivalent call that triggered + /// the authorizer will fail with an error message. + /// + /// When the callback returns [SQLITE_OK], that means the operation + /// requested is ok. ^When the callback returns [SQLITE_DENY], the + /// [sqlite3_prepare_v2()] or equivalent call that triggered the + /// authorizer will fail with an error message explaining that + /// access is denied. + /// + /// ^The first parameter to the authorizer callback is a copy of the third + /// parameter to the sqlite3_set_authorizer() interface. ^The second parameter + /// to the callback is an integer [SQLITE_COPY | action code] that specifies + /// the particular action to be authorized. ^The third through sixth parameters + /// to the callback are either NULL pointers or zero-terminated strings + /// that contain additional details about the action to be authorized. + /// Applications must always be prepared to encounter a NULL pointer in any + /// of the third through the sixth parameters of the authorization callback. + /// + /// ^If the action code is [SQLITE_READ] + /// and the callback returns [SQLITE_IGNORE] then the + /// [prepared statement] statement is constructed to substitute + /// a NULL value in place of the table column that would have + /// been read if [SQLITE_OK] had been returned. The [SQLITE_IGNORE] + /// return can be used to deny an untrusted user access to individual + /// columns of a table. + /// ^When a table is referenced by a [SELECT] but no column values are + /// extracted from that table (for example in a query like + /// "SELECT count(*) FROM tab") then the [SQLITE_READ] authorizer callback + /// is invoked once for that table with a column name that is an empty string. + /// ^If the action code is [SQLITE_DELETE] and the callback returns + /// [SQLITE_IGNORE] then the [DELETE] operation proceeds but the + /// [truncate optimization] is disabled and all rows are deleted individually. + /// + /// An authorizer is used when [sqlite3_prepare | preparing] + /// SQL statements from an untrusted source, to ensure that the SQL statements + /// do not try to access data they are not allowed to see, or that they do not + /// try to execute malicious statements that damage the database. For + /// example, an application may allow a user to enter arbitrary + /// SQL queries for evaluation by a database. But the application does + /// not want the user to be able to make arbitrary changes to the + /// database. An authorizer could then be put in place while the + /// user-entered SQL is being [sqlite3_prepare | prepared] that + /// disallows everything except [SELECT] statements. + /// + /// Applications that need to process SQL from untrusted sources + /// might also consider lowering resource limits using [sqlite3_limit()] + /// and limiting database size using the [max_page_count] [PRAGMA] + /// in addition to using an authorizer. + /// + /// ^(Only a single authorizer can be in place on a database connection + /// at a time. Each call to sqlite3_set_authorizer overrides the + /// previous call.)^ ^Disable the authorizer by installing a NULL callback. + /// The authorizer is disabled by default. + /// + /// The authorizer callback must not do anything that will modify + /// the database connection that invoked the authorizer callback. + /// Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their + /// database connections for the meaning of "modify" in this paragraph. + /// + /// ^When [sqlite3_prepare_v2()] is used to prepare a statement, the + /// statement might be re-prepared during [sqlite3_step()] due to a + /// schema change. Hence, the application should ensure that the + /// correct authorizer callback remains in place during the [sqlite3_step()]. + /// + /// ^Note that the authorizer callback is invoked only during + /// [sqlite3_prepare()] or its variants. Authorization is not + /// performed during statement evaluation in [sqlite3_step()], unless + /// as stated in the previous paragraph, sqlite3_step() invokes + /// sqlite3_prepare_v2() to reprepare a statement after a schema change. + int sqlite3_set_authorizer( + ffi.Pointer arg0, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xAuth, + ffi.Pointer pUserData, + ) { + return _sqlite3_set_authorizer(arg0, xAuth, pUserData); + } + + late final _sqlite3_set_authorizerPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >('sqlite3_set_authorizer'); + late final _sqlite3_set_authorizer = _sqlite3_set_authorizerPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); + + void sqlite3_set_auxdata( + ffi.Pointer arg0, + int N, + ffi.Pointer arg2, + ffi.Pointer)>> + arg3, + ) { + return _sqlite3_set_auxdata(arg0, N, arg2, arg3); + } + + late final _sqlite3_set_auxdataPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + >('sqlite3_set_auxdata'); + late final _sqlite3_set_auxdata = _sqlite3_set_auxdataPtr + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + >(); + + /// CAPI3REF: Set the Last Insert Rowid value. + /// METHOD: sqlite3 + /// + /// The sqlite3_set_last_insert_rowid(D, R) method allows the application to + /// set the value returned by calling sqlite3_last_insert_rowid(D) to R + /// without inserting a row into the database. + void sqlite3_set_last_insert_rowid(ffi.Pointer arg0, int arg1) { + return _sqlite3_set_last_insert_rowid(arg0, arg1); + } + + late final _sqlite3_set_last_insert_rowidPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, sqlite3_int64) + > + >('sqlite3_set_last_insert_rowid'); + late final _sqlite3_set_last_insert_rowid = _sqlite3_set_last_insert_rowidPtr + .asFunction, int)>(); + + int sqlite3_shutdown() { + return _sqlite3_shutdown(); + } + + late final _sqlite3_shutdownPtr = + _lookup>('sqlite3_shutdown'); + late final _sqlite3_shutdown = _sqlite3_shutdownPtr + .asFunction(); + + /// CAPI3REF: Suspend Execution For A Short Time + /// + /// The sqlite3_sleep() function causes the current thread to suspend execution + /// for at least a number of milliseconds specified in its parameter. + /// + /// If the operating system does not support sleep requests with + /// millisecond time resolution, then the time will be rounded up to + /// the nearest second. The number of milliseconds of sleep actually + /// requested from the operating system is returned. + /// + /// ^SQLite implements this interface by calling the xSleep() + /// method of the default [sqlite3_vfs] object. If the xSleep() method + /// of the default VFS is not implemented correctly, or not implemented at + /// all, then the behavior of sqlite3_sleep() may deviate from the description + /// in the previous paragraphs. + int sqlite3_sleep(int arg0) { + return _sqlite3_sleep(arg0); + } + + late final _sqlite3_sleepPtr = + _lookup>('sqlite3_sleep'); + late final _sqlite3_sleep = _sqlite3_sleepPtr.asFunction(); + + /// CAPI3REF: Compare the ages of two snapshot handles. + /// METHOD: sqlite3_snapshot + /// + /// The sqlite3_snapshot_cmp(P1, P2) interface is used to compare the ages + /// of two valid snapshot handles. + /// + /// If the two snapshot handles are not associated with the same database + /// file, the result of the comparison is undefined. + /// + /// Additionally, the result of the comparison is only valid if both of the + /// snapshot handles were obtained by calling sqlite3_snapshot_get() since the + /// last time the wal file was deleted. The wal file is deleted when the + /// database is changed back to rollback mode or when the number of database + /// clients drops to zero. If either snapshot handle was obtained before the + /// wal file was last deleted, the value returned by this function + /// is undefined. + /// + /// Otherwise, this API returns a negative value if P1 refers to an older + /// snapshot than P2, zero if the two handles refer to the same database + /// snapshot, and a positive value if P1 is a newer snapshot than P2. + /// + /// This interface is only available if SQLite is compiled with the + /// [SQLITE_ENABLE_SNAPSHOT] option. + int sqlite3_snapshot_cmp( + ffi.Pointer p1, + ffi.Pointer p2, + ) { + return _sqlite3_snapshot_cmp(p1, p2); + } + + late final _sqlite3_snapshot_cmpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_snapshot_cmp'); + late final _sqlite3_snapshot_cmp = _sqlite3_snapshot_cmpPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Destroy a snapshot + /// DESTRUCTOR: sqlite3_snapshot + /// + /// ^The [sqlite3_snapshot_free(P)] interface destroys [sqlite3_snapshot] P. + /// The application must eventually free every [sqlite3_snapshot] object + /// using this routine to avoid a memory leak. + /// + /// The [sqlite3_snapshot_free()] interface is only available when the + /// [SQLITE_ENABLE_SNAPSHOT] compile-time option is used. + void sqlite3_snapshot_free(ffi.Pointer arg0) { + return _sqlite3_snapshot_free(arg0); + } + + late final _sqlite3_snapshot_freePtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_snapshot_free'); + late final _sqlite3_snapshot_free = _sqlite3_snapshot_freePtr + .asFunction)>(); + + /// CAPI3REF: Record A Database Snapshot + /// CONSTRUCTOR: sqlite3_snapshot + /// + /// ^The [sqlite3_snapshot_get(D,S,P)] interface attempts to make a + /// new [sqlite3_snapshot] object that records the current state of + /// schema S in database connection D. ^On success, the + /// [sqlite3_snapshot_get(D,S,P)] interface writes a pointer to the newly + /// created [sqlite3_snapshot] object into *P and returns SQLITE_OK. + /// If there is not already a read-transaction open on schema S when + /// this function is called, one is opened automatically. + /// + /// The following must be true for this function to succeed. If any of + /// the following statements are false when sqlite3_snapshot_get() is + /// called, SQLITE_ERROR is returned. The final value of *P is undefined + /// in this case. + /// + ///

    + ///
  • The database handle must not be in [autocommit mode]. + /// + ///
  • Schema S of [database connection] D must be a [WAL mode] database. + /// + ///
  • There must not be a write transaction open on schema S of database + /// connection D. + /// + ///
  • One or more transactions must have been written to the current wal + /// file since it was created on disk (by any connection). This means + /// that a snapshot cannot be taken on a wal mode database with no wal + /// file immediately after it is first opened. At least one transaction + /// must be written to it first. + ///
+ /// + /// This function may also return SQLITE_NOMEM. If it is called with the + /// database handle in autocommit mode but fails for some other reason, + /// whether or not a read transaction is opened on schema S is undefined. + /// + /// The [sqlite3_snapshot] object returned from a successful call to + /// [sqlite3_snapshot_get()] must be freed using [sqlite3_snapshot_free()] + /// to avoid a memory leak. + /// + /// The [sqlite3_snapshot_get()] interface is only available when the + /// [SQLITE_ENABLE_SNAPSHOT] compile-time option is used. + int sqlite3_snapshot_get( + ffi.Pointer db, + ffi.Pointer zSchema, + ffi.Pointer> ppSnapshot, + ) { + return _sqlite3_snapshot_get(db, zSchema, ppSnapshot); + } + + late final _sqlite3_snapshot_getPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('sqlite3_snapshot_get'); + late final _sqlite3_snapshot_get = _sqlite3_snapshot_getPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); + + /// CAPI3REF: Start a read transaction on an historical snapshot + /// METHOD: sqlite3_snapshot + /// + /// ^The [sqlite3_snapshot_open(D,S,P)] interface either starts a new read + /// transaction or upgrades an existing one for schema S of + /// [database connection] D such that the read transaction refers to + /// historical [snapshot] P, rather than the most recent change to the + /// database. ^The [sqlite3_snapshot_open()] interface returns SQLITE_OK + /// on success or an appropriate [error code] if it fails. + /// + /// ^In order to succeed, the database connection must not be in + /// [autocommit mode] when [sqlite3_snapshot_open(D,S,P)] is called. If there + /// is already a read transaction open on schema S, then the database handle + /// must have no active statements (SELECT statements that have been passed + /// to sqlite3_step() but not sqlite3_reset() or sqlite3_finalize()). + /// SQLITE_ERROR is returned if either of these conditions is violated, or + /// if schema S does not exist, or if the snapshot object is invalid. + /// + /// ^A call to sqlite3_snapshot_open() will fail to open if the specified + /// snapshot has been overwritten by a [checkpoint]. In this case + /// SQLITE_ERROR_SNAPSHOT is returned. + /// + /// If there is already a read transaction open when this function is + /// invoked, then the same read transaction remains open (on the same + /// database snapshot) if SQLITE_ERROR, SQLITE_BUSY or SQLITE_ERROR_SNAPSHOT + /// is returned. If another error code - for example SQLITE_PROTOCOL or an + /// SQLITE_IOERR error code - is returned, then the final state of the + /// read transaction is undefined. If SQLITE_OK is returned, then the + /// read transaction is now open on database snapshot P. + /// + /// ^(A call to [sqlite3_snapshot_open(D,S,P)] will fail if the + /// database connection D does not know that the database file for + /// schema S is in [WAL mode]. A database connection might not know + /// that the database file is in [WAL mode] if there has been no prior + /// I/O on that database connection, or if the database entered [WAL mode] + /// after the most recent I/O on the database connection.)^ + /// (Hint: Run "[PRAGMA application_id]" against a newly opened + /// database connection in order to make it ready to use snapshots.) + /// + /// The [sqlite3_snapshot_open()] interface is only available when the + /// [SQLITE_ENABLE_SNAPSHOT] compile-time option is used. + int sqlite3_snapshot_open( + ffi.Pointer db, + ffi.Pointer zSchema, + ffi.Pointer pSnapshot, + ) { + return _sqlite3_snapshot_open(db, zSchema, pSnapshot); + } + + late final _sqlite3_snapshot_openPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_snapshot_open'); + late final _sqlite3_snapshot_open = _sqlite3_snapshot_openPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Recover snapshots from a wal file + /// METHOD: sqlite3_snapshot + /// + /// If a [WAL file] remains on disk after all database connections close + /// (either through the use of the [SQLITE_FCNTL_PERSIST_WAL] [file control] + /// or because the last process to have the database opened exited without + /// calling [sqlite3_close()]) and a new connection is subsequently opened + /// on that database and [WAL file], the [sqlite3_snapshot_open()] interface + /// will only be able to open the last transaction added to the WAL file + /// even though the WAL file contains other valid transactions. + /// + /// This function attempts to scan the WAL file associated with database zDb + /// of database handle db and make all valid snapshots available to + /// sqlite3_snapshot_open(). It is an error if there is already a read + /// transaction open on the database, or if the database is not a WAL mode + /// database. + /// + /// SQLITE_OK is returned if successful, or an SQLite error code otherwise. + /// + /// This interface is only available if SQLite is compiled with the + /// [SQLITE_ENABLE_SNAPSHOT] option. + int sqlite3_snapshot_recover( + ffi.Pointer db, + ffi.Pointer zDb, + ) { + return _sqlite3_snapshot_recover(db, zDb); + } + + late final _sqlite3_snapshot_recoverPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sqlite3_snapshot_recover'); + late final _sqlite3_snapshot_recover = _sqlite3_snapshot_recoverPtr + .asFunction, ffi.Pointer)>(); + + ffi.Pointer sqlite3_snprintf( + int arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { + return _sqlite3_snprintf(arg0, arg1, arg2); + } + + late final _sqlite3_snprintfPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_snprintf'); + late final _sqlite3_snprintf = _sqlite3_snprintfPtr + .asFunction< + ffi.Pointer Function( + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Deprecated Soft Heap Limit Interface + /// DEPRECATED + /// + /// This is a deprecated version of the [sqlite3_soft_heap_limit64()] + /// interface. This routine is provided for historical compatibility + /// only. All new applications should use the + /// [sqlite3_soft_heap_limit64()] interface rather than this one. + void sqlite3_soft_heap_limit(int N) { + return _sqlite3_soft_heap_limit(N); + } + + late final _sqlite3_soft_heap_limitPtr = + _lookup>( + 'sqlite3_soft_heap_limit', + ); + late final _sqlite3_soft_heap_limit = _sqlite3_soft_heap_limitPtr + .asFunction(); + + /// CAPI3REF: Impose A Limit On Heap Size + /// + /// These interfaces impose limits on the amount of heap memory that will be + /// by all database connections within a single process. + /// + /// ^The sqlite3_soft_heap_limit64() interface sets and/or queries the + /// soft limit on the amount of heap memory that may be allocated by SQLite. + /// ^SQLite strives to keep heap memory utilization below the soft heap + /// limit by reducing the number of pages held in the page cache + /// as heap memory usages approaches the limit. + /// ^The soft heap limit is "soft" because even though SQLite strives to stay + /// below the limit, it will exceed the limit rather than generate + /// an [SQLITE_NOMEM] error. In other words, the soft heap limit + /// is advisory only. + /// + /// ^The sqlite3_hard_heap_limit64(N) interface sets a hard upper bound of + /// N bytes on the amount of memory that will be allocated. ^The + /// sqlite3_hard_heap_limit64(N) interface is similar to + /// sqlite3_soft_heap_limit64(N) except that memory allocations will fail + /// when the hard heap limit is reached. + /// + /// ^The return value from both sqlite3_soft_heap_limit64() and + /// sqlite3_hard_heap_limit64() is the size of + /// the heap limit prior to the call, or negative in the case of an + /// error. ^If the argument N is negative + /// then no change is made to the heap limit. Hence, the current + /// size of heap limits can be determined by invoking + /// sqlite3_soft_heap_limit64(-1) or sqlite3_hard_heap_limit(-1). + /// + /// ^Setting the heap limits to zero disables the heap limiter mechanism. + /// + /// ^The soft heap limit may not be greater than the hard heap limit. + /// ^If the hard heap limit is enabled and if sqlite3_soft_heap_limit(N) + /// is invoked with a value of N that is greater than the hard heap limit, + /// the the soft heap limit is set to the value of the hard heap limit. + /// ^The soft heap limit is automatically enabled whenever the hard heap + /// limit is enabled. ^When sqlite3_hard_heap_limit64(N) is invoked and + /// the soft heap limit is outside the range of 1..N, then the soft heap + /// limit is set to N. ^Invoking sqlite3_soft_heap_limit64(0) when the + /// hard heap limit is enabled makes the soft heap limit equal to the + /// hard heap limit. + /// + /// The memory allocation limits can also be adjusted using + /// [PRAGMA soft_heap_limit] and [PRAGMA hard_heap_limit]. + /// + /// ^(The heap limits are not enforced in the current implementation + /// if one or more of following conditions are true: + /// + ///
    + ///
  • The limit value is set to zero. + ///
  • Memory accounting is disabled using a combination of the + /// [sqlite3_config]([SQLITE_CONFIG_MEMSTATUS],...) start-time option and + /// the [SQLITE_DEFAULT_MEMSTATUS] compile-time option. + ///
  • An alternative page cache implementation is specified using + /// [sqlite3_config]([SQLITE_CONFIG_PCACHE2],...). + ///
  • The page cache allocates from its own memory pool supplied + /// by [sqlite3_config]([SQLITE_CONFIG_PAGECACHE],...) rather than + /// from the heap. + ///
)^ + /// + /// The circumstances under which SQLite will enforce the heap limits may + /// changes in future releases of SQLite. + int sqlite3_soft_heap_limit64(int N) { + return _sqlite3_soft_heap_limit64(N); + } + + late final _sqlite3_soft_heap_limit64Ptr = + _lookup>( + 'sqlite3_soft_heap_limit64', + ); + late final _sqlite3_soft_heap_limit64 = _sqlite3_soft_heap_limit64Ptr + .asFunction(); + + ffi.Pointer sqlite3_sourceid() { + return _sqlite3_sourceid(); + } + + late final _sqlite3_sourceidPtr = + _lookup Function()>>( + 'sqlite3_sourceid', + ); + late final _sqlite3_sourceid = _sqlite3_sourceidPtr + .asFunction Function()>(); + + /// CAPI3REF: Retrieving Statement SQL + /// METHOD: sqlite3_stmt + /// + /// ^The sqlite3_sql(P) interface returns a pointer to a copy of the UTF-8 + /// SQL text used to create [prepared statement] P if P was + /// created by [sqlite3_prepare_v2()], [sqlite3_prepare_v3()], + /// [sqlite3_prepare16_v2()], or [sqlite3_prepare16_v3()]. + /// ^The sqlite3_expanded_sql(P) interface returns a pointer to a UTF-8 + /// string containing the SQL text of prepared statement P with + /// [bound parameters] expanded. + /// ^The sqlite3_normalized_sql(P) interface returns a pointer to a UTF-8 + /// string containing the normalized SQL text of prepared statement P. The + /// semantics used to normalize a SQL statement are unspecified and subject + /// to change. At a minimum, literal values will be replaced with suitable + /// placeholders. + /// + /// ^(For example, if a prepared statement is created using the SQL + /// text "SELECT $abc,:xyz" and if parameter $abc is bound to integer 2345 + /// and parameter :xyz is unbound, then sqlite3_sql() will return + /// the original string, "SELECT $abc,:xyz" but sqlite3_expanded_sql() + /// will return "SELECT 2345,NULL".)^ + /// + /// ^The sqlite3_expanded_sql() interface returns NULL if insufficient memory + /// is available to hold the result, or if the result would exceed the + /// the maximum string length determined by the [SQLITE_LIMIT_LENGTH]. + /// + /// ^The [SQLITE_TRACE_SIZE_LIMIT] compile-time option limits the size of + /// bound parameter expansions. ^The [SQLITE_OMIT_TRACE] compile-time + /// option causes sqlite3_expanded_sql() to always return NULL. + /// + /// ^The strings returned by sqlite3_sql(P) and sqlite3_normalized_sql(P) + /// are managed by SQLite and are automatically freed when the prepared + /// statement is finalized. + /// ^The string returned by sqlite3_expanded_sql(P), on the other hand, + /// is obtained from [sqlite3_malloc()] and must be free by the application + /// by passing it to [sqlite3_free()]. + ffi.Pointer sqlite3_sql(ffi.Pointer pStmt) { + return _sqlite3_sql(pStmt); + } + + late final _sqlite3_sqlPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_sql'); + late final _sqlite3_sql = _sqlite3_sqlPtr + .asFunction Function(ffi.Pointer)>(); + + /// CAPI3REF: SQLite Runtime Status + /// + /// ^These interfaces are used to retrieve runtime status information + /// about the performance of SQLite, and optionally to reset various + /// highwater marks. ^The first argument is an integer code for + /// the specific parameter to measure. ^(Recognized integer codes + /// are of the form [status parameters | SQLITE_STATUS_...].)^ + /// ^The current value of the parameter is returned into *pCurrent. + /// ^The highest recorded value is returned in *pHighwater. ^If the + /// resetFlag is true, then the highest record value is reset after + /// *pHighwater is written. ^(Some parameters do not record the highest + /// value. For those parameters + /// nothing is written into *pHighwater and the resetFlag is ignored.)^ + /// ^(Other parameters record only the highwater mark and not the current + /// value. For these latter parameters nothing is written into *pCurrent.)^ + /// + /// ^The sqlite3_status() and sqlite3_status64() routines return + /// SQLITE_OK on success and a non-zero [error code] on failure. + /// + /// If either the current value or the highwater mark is too large to + /// be represented by a 32-bit integer, then the values returned by + /// sqlite3_status() are undefined. + /// + /// See also: [sqlite3_db_status()] + int sqlite3_status( + int op, + ffi.Pointer pCurrent, + ffi.Pointer pHighwater, + int resetFlag, + ) { + return _sqlite3_status(op, pCurrent, pHighwater, resetFlag); + } + + late final _sqlite3_statusPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_status'); + late final _sqlite3_status = _sqlite3_statusPtr + .asFunction< + int Function(int, ffi.Pointer, ffi.Pointer, int) + >(); + + int sqlite3_status64( + int op, + ffi.Pointer pCurrent, + ffi.Pointer pHighwater, + int resetFlag, + ) { + return _sqlite3_status64(op, pCurrent, pHighwater, resetFlag); + } + + late final _sqlite3_status64Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_status64'); + late final _sqlite3_status64 = _sqlite3_status64Ptr + .asFunction< + int Function( + int, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + /// CAPI3REF: Evaluate An SQL Statement + /// METHOD: sqlite3_stmt + /// + /// After a [prepared statement] has been prepared using any of + /// [sqlite3_prepare_v2()], [sqlite3_prepare_v3()], [sqlite3_prepare16_v2()], + /// or [sqlite3_prepare16_v3()] or one of the legacy + /// interfaces [sqlite3_prepare()] or [sqlite3_prepare16()], this function + /// must be called one or more times to evaluate the statement. + /// + /// The details of the behavior of the sqlite3_step() interface depend + /// on whether the statement was prepared using the newer "vX" interfaces + /// [sqlite3_prepare_v3()], [sqlite3_prepare_v2()], [sqlite3_prepare16_v3()], + /// [sqlite3_prepare16_v2()] or the older legacy + /// interfaces [sqlite3_prepare()] and [sqlite3_prepare16()]. The use of the + /// new "vX" interface is recommended for new applications but the legacy + /// interface will continue to be supported. + /// + /// ^In the legacy interface, the return value will be either [SQLITE_BUSY], + /// [SQLITE_DONE], [SQLITE_ROW], [SQLITE_ERROR], or [SQLITE_MISUSE]. + /// ^With the "v2" interface, any of the other [result codes] or + /// [extended result codes] might be returned as well. + /// + /// ^[SQLITE_BUSY] means that the database engine was unable to acquire the + /// database locks it needs to do its job. ^If the statement is a [COMMIT] + /// or occurs outside of an explicit transaction, then you can retry the + /// statement. If the statement is not a [COMMIT] and occurs within an + /// explicit transaction then you should rollback the transaction before + /// continuing. + /// + /// ^[SQLITE_DONE] means that the statement has finished executing + /// successfully. sqlite3_step() should not be called again on this virtual + /// machine without first calling [sqlite3_reset()] to reset the virtual + /// machine back to its initial state. + /// + /// ^If the SQL statement being executed returns any data, then [SQLITE_ROW] + /// is returned each time a new row of data is ready for processing by the + /// caller. The values may be accessed using the [column access functions]. + /// sqlite3_step() is called again to retrieve the next row of data. + /// + /// ^[SQLITE_ERROR] means that a run-time error (such as a constraint + /// violation) has occurred. sqlite3_step() should not be called again on + /// the VM. More information may be found by calling [sqlite3_errmsg()]. + /// ^With the legacy interface, a more specific error code (for example, + /// [SQLITE_INTERRUPT], [SQLITE_SCHEMA], [SQLITE_CORRUPT], and so forth) + /// can be obtained by calling [sqlite3_reset()] on the + /// [prepared statement]. ^In the "v2" interface, + /// the more specific error code is returned directly by sqlite3_step(). + /// + /// [SQLITE_MISUSE] means that the this routine was called inappropriately. + /// Perhaps it was called on a [prepared statement] that has + /// already been [sqlite3_finalize | finalized] or on one that had + /// previously returned [SQLITE_ERROR] or [SQLITE_DONE]. Or it could + /// be the case that the same database connection is being used by two or + /// more threads at the same moment in time. + /// + /// For all versions of SQLite up to and including 3.6.23.1, a call to + /// [sqlite3_reset()] was required after sqlite3_step() returned anything + /// other than [SQLITE_ROW] before any subsequent invocation of + /// sqlite3_step(). Failure to reset the prepared statement using + /// [sqlite3_reset()] would result in an [SQLITE_MISUSE] return from + /// sqlite3_step(). But after [version 3.6.23.1] ([dateof:3.6.23.1], + /// sqlite3_step() began + /// calling [sqlite3_reset()] automatically in this circumstance rather + /// than returning [SQLITE_MISUSE]. This is not considered a compatibility + /// break because any application that ever receives an SQLITE_MISUSE error + /// is broken by definition. The [SQLITE_OMIT_AUTORESET] compile-time option + /// can be used to restore the legacy behavior. + /// + /// Goofy Interface Alert: In the legacy interface, the sqlite3_step() + /// API always returns a generic error code, [SQLITE_ERROR], following any + /// error other than [SQLITE_BUSY] and [SQLITE_MISUSE]. You must call + /// [sqlite3_reset()] or [sqlite3_finalize()] in order to find one of the + /// specific [error codes] that better describes the error. + /// We admit that this is a goofy design. The problem has been fixed + /// with the "v2" interface. If you prepare all of your SQL statements + /// using [sqlite3_prepare_v3()] or [sqlite3_prepare_v2()] + /// or [sqlite3_prepare16_v2()] or [sqlite3_prepare16_v3()] instead + /// of the legacy [sqlite3_prepare()] and [sqlite3_prepare16()] interfaces, + /// then the more specific [error codes] are returned directly + /// by sqlite3_step(). The use of the "vX" interfaces is recommended. + int sqlite3_step(ffi.Pointer arg0) { + return _sqlite3_step(arg0); + } + + late final _sqlite3_stepPtr = + _lookup)>>( + 'sqlite3_step', + ); + late final _sqlite3_step = _sqlite3_stepPtr + .asFunction)>(); + + /// CAPI3REF: Determine If A Prepared Statement Has Been Reset + /// METHOD: sqlite3_stmt + /// + /// ^The sqlite3_stmt_busy(S) interface returns true (non-zero) if the + /// [prepared statement] S has been stepped at least once using + /// [sqlite3_step(S)] but has neither run to completion (returned + /// [SQLITE_DONE] from [sqlite3_step(S)]) nor + /// been reset using [sqlite3_reset(S)]. ^The sqlite3_stmt_busy(S) + /// interface returns false if S is a NULL pointer. If S is not a + /// NULL pointer and is not a pointer to a valid [prepared statement] + /// object, then the behavior is undefined and probably undesirable. + /// + /// This interface can be used in combination [sqlite3_next_stmt()] + /// to locate all prepared statements associated with a database + /// connection that are in need of being reset. This can be used, + /// for example, in diagnostic routines to search for prepared + /// statements that are holding a transaction open. + int sqlite3_stmt_busy(ffi.Pointer arg0) { + return _sqlite3_stmt_busy(arg0); + } + + late final _sqlite3_stmt_busyPtr = + _lookup)>>( + 'sqlite3_stmt_busy', + ); + late final _sqlite3_stmt_busy = _sqlite3_stmt_busyPtr + .asFunction)>(); + + /// CAPI3REF: Query The EXPLAIN Setting For A Prepared Statement + /// METHOD: sqlite3_stmt + /// + /// ^The sqlite3_stmt_isexplain(S) interface returns 1 if the + /// prepared statement S is an EXPLAIN statement, or 2 if the + /// statement S is an EXPLAIN QUERY PLAN. + /// ^The sqlite3_stmt_isexplain(S) interface returns 0 if S is + /// an ordinary statement or a NULL pointer. + int sqlite3_stmt_isexplain(ffi.Pointer pStmt) { + return _sqlite3_stmt_isexplain(pStmt); + } + + late final _sqlite3_stmt_isexplainPtr = + _lookup)>>( + 'sqlite3_stmt_isexplain', + ); + late final _sqlite3_stmt_isexplain = _sqlite3_stmt_isexplainPtr + .asFunction)>(); + + /// CAPI3REF: Determine If An SQL Statement Writes The Database + /// METHOD: sqlite3_stmt + /// + /// ^The sqlite3_stmt_readonly(X) interface returns true (non-zero) if + /// and only if the [prepared statement] X makes no direct changes to + /// the content of the database file. + /// + /// Note that [application-defined SQL functions] or + /// [virtual tables] might change the database indirectly as a side effect. + /// ^(For example, if an application defines a function "eval()" that + /// calls [sqlite3_exec()], then the following SQL statement would + /// change the database file through side-effects: + /// + ///
+  /// SELECT eval('DELETE FROM t1') FROM t2;
+  /// 
+ /// + /// But because the [SELECT] statement does not change the database file + /// directly, sqlite3_stmt_readonly() would still return true.)^ + /// + /// ^Transaction control statements such as [BEGIN], [COMMIT], [ROLLBACK], + /// [SAVEPOINT], and [RELEASE] cause sqlite3_stmt_readonly() to return true, + /// since the statements themselves do not actually modify the database but + /// rather they control the timing of when other statements modify the + /// database. ^The [ATTACH] and [DETACH] statements also cause + /// sqlite3_stmt_readonly() to return true since, while those statements + /// change the configuration of a database connection, they do not make + /// changes to the content of the database files on disk. + /// ^The sqlite3_stmt_readonly() interface returns true for [BEGIN] since + /// [BEGIN] merely sets internal flags, but the [BEGIN|BEGIN IMMEDIATE] and + /// [BEGIN|BEGIN EXCLUSIVE] commands do touch the database and so + /// sqlite3_stmt_readonly() returns false for those commands. + int sqlite3_stmt_readonly(ffi.Pointer pStmt) { + return _sqlite3_stmt_readonly(pStmt); + } + + late final _sqlite3_stmt_readonlyPtr = + _lookup)>>( + 'sqlite3_stmt_readonly', + ); + late final _sqlite3_stmt_readonly = _sqlite3_stmt_readonlyPtr + .asFunction)>(); + + /// CAPI3REF: Prepared Statement Scan Status + /// METHOD: sqlite3_stmt + /// + /// This interface returns information about the predicted and measured + /// performance for pStmt. Advanced applications can use this + /// interface to compare the predicted and the measured performance and + /// issue warnings and/or rerun [ANALYZE] if discrepancies are found. + /// + /// Since this interface is expected to be rarely used, it is only + /// available if SQLite is compiled using the [SQLITE_ENABLE_STMT_SCANSTATUS] + /// compile-time option. + /// + /// The "iScanStatusOp" parameter determines which status information to return. + /// The "iScanStatusOp" must be one of the [scanstatus options] or the behavior + /// of this interface is undefined. + /// ^The requested measurement is written into a variable pointed to by + /// the "pOut" parameter. + /// Parameter "idx" identifies the specific loop to retrieve statistics for. + /// Loops are numbered starting from zero. ^If idx is out of range - less than + /// zero or greater than or equal to the total number of loops used to implement + /// the statement - a non-zero value is returned and the variable that pOut + /// points to is unchanged. + /// + /// ^Statistics might not be available for all loops in all statements. ^In cases + /// where there exist loops with no available statistics, this function behaves + /// as if the loop did not exist - it returns non-zero and leave the variable + /// that pOut points to unchanged. + /// + /// See also: [sqlite3_stmt_scanstatus_reset()] + int sqlite3_stmt_scanstatus( + ffi.Pointer pStmt, + int idx, + int iScanStatusOp, + ffi.Pointer pOut, + ) { + return _sqlite3_stmt_scanstatus(pStmt, idx, iScanStatusOp, pOut); + } + + late final _sqlite3_stmt_scanstatusPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Pointer, + ) + > + >('sqlite3_stmt_scanstatus'); + late final _sqlite3_stmt_scanstatus = _sqlite3_stmt_scanstatusPtr + .asFunction< + int Function(ffi.Pointer, int, int, ffi.Pointer) + >(); + + /// CAPI3REF: Zero Scan-Status Counters + /// METHOD: sqlite3_stmt + /// + /// ^Zero all [sqlite3_stmt_scanstatus()] related event counters. + /// + /// This API is only available if the library is built with pre-processor + /// symbol [SQLITE_ENABLE_STMT_SCANSTATUS] defined. + void sqlite3_stmt_scanstatus_reset(ffi.Pointer arg0) { + return _sqlite3_stmt_scanstatus_reset(arg0); + } + + late final _sqlite3_stmt_scanstatus_resetPtr = + _lookup)>>( + 'sqlite3_stmt_scanstatus_reset', + ); + late final _sqlite3_stmt_scanstatus_reset = _sqlite3_stmt_scanstatus_resetPtr + .asFunction)>(); + + /// CAPI3REF: Prepared Statement Status + /// METHOD: sqlite3_stmt + /// + /// ^(Each prepared statement maintains various + /// [SQLITE_STMTSTATUS counters] that measure the number + /// of times it has performed specific operations.)^ These counters can + /// be used to monitor the performance characteristics of the prepared + /// statements. For example, if the number of table steps greatly exceeds + /// the number of table searches or result rows, that would tend to indicate + /// that the prepared statement is using a full table scan rather than + /// an index. + /// + /// ^(This interface is used to retrieve and reset counter values from + /// a [prepared statement]. The first argument is the prepared statement + /// object to be interrogated. The second argument + /// is an integer code for a specific [SQLITE_STMTSTATUS counter] + /// to be interrogated.)^ + /// ^The current value of the requested counter is returned. + /// ^If the resetFlg is true, then the counter is reset to zero after this + /// interface call returns. + /// + /// See also: [sqlite3_status()] and [sqlite3_db_status()]. + int sqlite3_stmt_status( + ffi.Pointer arg0, + int op, + int resetFlg, + ) { + return _sqlite3_stmt_status(arg0, op, resetFlg); + } + + late final _sqlite3_stmt_statusPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Int) + > + >('sqlite3_stmt_status'); + late final _sqlite3_stmt_status = _sqlite3_stmt_statusPtr + .asFunction, int, int)>(); + + void sqlite3_str_append( + ffi.Pointer arg0, + ffi.Pointer zIn, + int N, + ) { + return _sqlite3_str_append(arg0, zIn, N); + } + + late final _sqlite3_str_appendPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_str_append'); + late final _sqlite3_str_append = _sqlite3_str_appendPtr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); + + void sqlite3_str_appendall( + ffi.Pointer arg0, + ffi.Pointer zIn, + ) { + return _sqlite3_str_appendall(arg0, zIn); + } + + late final _sqlite3_str_appendallPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >('sqlite3_str_appendall'); + late final _sqlite3_str_appendall = _sqlite3_str_appendallPtr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >(); + + void sqlite3_str_appendchar(ffi.Pointer arg0, int N, int C) { + return _sqlite3_str_appendchar(arg0, N, C); + } + + late final _sqlite3_str_appendcharPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int, ffi.Char) + > + >('sqlite3_str_appendchar'); + late final _sqlite3_str_appendchar = _sqlite3_str_appendcharPtr + .asFunction, int, int)>(); + + /// CAPI3REF: Add Content To A Dynamic String + /// METHOD: sqlite3_str + /// + /// These interfaces add content to an sqlite3_str object previously obtained + /// from [sqlite3_str_new()]. + /// + /// ^The [sqlite3_str_appendf(X,F,...)] and + /// [sqlite3_str_vappendf(X,F,V)] interfaces uses the [built-in printf] + /// functionality of SQLite to append formatted text onto the end of + /// [sqlite3_str] object X. + /// + /// ^The [sqlite3_str_append(X,S,N)] method appends exactly N bytes from string S + /// onto the end of the [sqlite3_str] object X. N must be non-negative. + /// S must contain at least N non-zero bytes of content. To append a + /// zero-terminated string in its entirety, use the [sqlite3_str_appendall()] + /// method instead. + /// + /// ^The [sqlite3_str_appendall(X,S)] method appends the complete content of + /// zero-terminated string S onto the end of [sqlite3_str] object X. + /// + /// ^The [sqlite3_str_appendchar(X,N,C)] method appends N copies of the + /// single-byte character C onto the end of [sqlite3_str] object X. + /// ^This method can be used, for example, to add whitespace indentation. + /// + /// ^The [sqlite3_str_reset(X)] method resets the string under construction + /// inside [sqlite3_str] object X back to zero bytes in length. + /// + /// These methods do not return a result code. ^If an error occurs, that fact + /// is recorded in the [sqlite3_str] object and can be recovered by a + /// subsequent call to [sqlite3_str_errcode(X)]. + void sqlite3_str_appendf( + ffi.Pointer arg0, + ffi.Pointer zFormat, + ) { + return _sqlite3_str_appendf(arg0, zFormat); + } + + late final _sqlite3_str_appendfPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >('sqlite3_str_appendf'); + late final _sqlite3_str_appendf = _sqlite3_str_appendfPtr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >(); + + /// CAPI3REF: Status Of A Dynamic String + /// METHOD: sqlite3_str + /// + /// These interfaces return the current status of an [sqlite3_str] object. + /// + /// ^If any prior errors have occurred while constructing the dynamic string + /// in sqlite3_str X, then the [sqlite3_str_errcode(X)] method will return + /// an appropriate error code. ^The [sqlite3_str_errcode(X)] method returns + /// [SQLITE_NOMEM] following any out-of-memory error, or + /// [SQLITE_TOOBIG] if the size of the dynamic string exceeds + /// [SQLITE_MAX_LENGTH], or [SQLITE_OK] if there have been no errors. + /// + /// ^The [sqlite3_str_length(X)] method returns the current length, in bytes, + /// of the dynamic string under construction in [sqlite3_str] object X. + /// ^The length returned by [sqlite3_str_length(X)] does not include the + /// zero-termination byte. + /// + /// ^The [sqlite3_str_value(X)] method returns a pointer to the current + /// content of the dynamic string under construction in X. The value + /// returned by [sqlite3_str_value(X)] is managed by the sqlite3_str object X + /// and might be freed or altered by any subsequent method on the same + /// [sqlite3_str] object. Applications must not used the pointer returned + /// [sqlite3_str_value(X)] after any subsequent method call on the same + /// object. ^Applications may change the content of the string returned + /// by [sqlite3_str_value(X)] as long as they do not write into any bytes + /// outside the range of 0 to [sqlite3_str_length(X)] and do not read or + /// write any byte after any subsequent sqlite3_str method call. + int sqlite3_str_errcode(ffi.Pointer arg0) { + return _sqlite3_str_errcode(arg0); + } + + late final _sqlite3_str_errcodePtr = + _lookup)>>( + 'sqlite3_str_errcode', + ); + late final _sqlite3_str_errcode = _sqlite3_str_errcodePtr + .asFunction)>(); + + /// CAPI3REF: Finalize A Dynamic String + /// DESTRUCTOR: sqlite3_str + /// + /// ^The [sqlite3_str_finish(X)] interface destroys the sqlite3_str object X + /// and returns a pointer to a memory buffer obtained from [sqlite3_malloc64()] + /// that contains the constructed string. The calling application should + /// pass the returned value to [sqlite3_free()] to avoid a memory leak. + /// ^The [sqlite3_str_finish(X)] interface may return a NULL pointer if any + /// errors were encountered during construction of the string. ^The + /// [sqlite3_str_finish(X)] interface will also return a NULL pointer if the + /// string in [sqlite3_str] object X is zero bytes long. + ffi.Pointer sqlite3_str_finish(ffi.Pointer arg0) { + return _sqlite3_str_finish(arg0); + } + + late final _sqlite3_str_finishPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_str_finish'); + late final _sqlite3_str_finish = _sqlite3_str_finishPtr + .asFunction Function(ffi.Pointer)>(); + + int sqlite3_str_length(ffi.Pointer arg0) { + return _sqlite3_str_length(arg0); + } + + late final _sqlite3_str_lengthPtr = + _lookup)>>( + 'sqlite3_str_length', + ); + late final _sqlite3_str_length = _sqlite3_str_lengthPtr + .asFunction)>(); + + /// CAPI3REF: Create A New Dynamic String Object + /// CONSTRUCTOR: sqlite3_str + /// + /// ^The [sqlite3_str_new(D)] interface allocates and initializes + /// a new [sqlite3_str] object. To avoid memory leaks, the object returned by + /// [sqlite3_str_new()] must be freed by a subsequent call to + /// [sqlite3_str_finish(X)]. + /// + /// ^The [sqlite3_str_new(D)] interface always returns a pointer to a + /// valid [sqlite3_str] object, though in the event of an out-of-memory + /// error the returned object might be a special singleton that will + /// silently reject new text, always return SQLITE_NOMEM from + /// [sqlite3_str_errcode()], always return 0 for + /// [sqlite3_str_length()], and always return NULL from + /// [sqlite3_str_finish(X)]. It is always safe to use the value + /// returned by [sqlite3_str_new(D)] as the sqlite3_str parameter + /// to any of the other [sqlite3_str] methods. + /// + /// The D parameter to [sqlite3_str_new(D)] may be NULL. If the + /// D parameter in [sqlite3_str_new(D)] is not NULL, then the maximum + /// length of the string contained in the [sqlite3_str] object will be + /// the value set for [sqlite3_limit](D,[SQLITE_LIMIT_LENGTH]) instead + /// of [SQLITE_MAX_LENGTH]. + ffi.Pointer sqlite3_str_new(ffi.Pointer arg0) { + return _sqlite3_str_new(arg0); + } + + late final _sqlite3_str_newPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_str_new'); + late final _sqlite3_str_new = _sqlite3_str_newPtr + .asFunction Function(ffi.Pointer)>(); + + void sqlite3_str_reset(ffi.Pointer arg0) { + return _sqlite3_str_reset(arg0); + } + + late final _sqlite3_str_resetPtr = + _lookup)>>( + 'sqlite3_str_reset', + ); + late final _sqlite3_str_reset = _sqlite3_str_resetPtr + .asFunction)>(); + + ffi.Pointer sqlite3_str_value(ffi.Pointer arg0) { + return _sqlite3_str_value(arg0); + } + + late final _sqlite3_str_valuePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_str_value'); + late final _sqlite3_str_value = _sqlite3_str_valuePtr + .asFunction Function(ffi.Pointer)>(); + + /// CAPI3REF: String Globbing + /// + /// ^The [sqlite3_strglob(P,X)] interface returns zero if and only if + /// string X matches the [GLOB] pattern P. + /// ^The definition of [GLOB] pattern matching used in + /// [sqlite3_strglob(P,X)] is the same as for the "X GLOB P" operator in the + /// SQL dialect understood by SQLite. ^The [sqlite3_strglob(P,X)] function + /// is case sensitive. + /// + /// Note that this routine returns zero on a match and non-zero if the strings + /// do not match, the same as [sqlite3_stricmp()] and [sqlite3_strnicmp()]. + /// + /// See also: [sqlite3_strlike()]. + int sqlite3_strglob(ffi.Pointer zGlob, ffi.Pointer zStr) { + return _sqlite3_strglob(zGlob, zStr); + } + + late final _sqlite3_strglobPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sqlite3_strglob'); + late final _sqlite3_strglob = _sqlite3_strglobPtr + .asFunction, ffi.Pointer)>(); + + /// CAPI3REF: String Comparison + /// + /// ^The [sqlite3_stricmp()] and [sqlite3_strnicmp()] APIs allow applications + /// and extensions to compare the contents of two buffers containing UTF-8 + /// strings in a case-independent fashion, using the same definition of "case + /// independence" that SQLite uses internally when comparing identifiers. + int sqlite3_stricmp(ffi.Pointer arg0, ffi.Pointer arg1) { + return _sqlite3_stricmp(arg0, arg1); + } + + late final _sqlite3_stricmpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sqlite3_stricmp'); + late final _sqlite3_stricmp = _sqlite3_stricmpPtr + .asFunction, ffi.Pointer)>(); + + /// CAPI3REF: String LIKE Matching + /// + /// ^The [sqlite3_strlike(P,X,E)] interface returns zero if and only if + /// string X matches the [LIKE] pattern P with escape character E. + /// ^The definition of [LIKE] pattern matching used in + /// [sqlite3_strlike(P,X,E)] is the same as for the "X LIKE P ESCAPE E" + /// operator in the SQL dialect understood by SQLite. ^For "X LIKE P" without + /// the ESCAPE clause, set the E parameter of [sqlite3_strlike(P,X,E)] to 0. + /// ^As with the LIKE operator, the [sqlite3_strlike(P,X,E)] function is case + /// insensitive - equivalent upper and lower case ASCII characters match + /// one another. + /// + /// ^The [sqlite3_strlike(P,X,E)] function matches Unicode characters, though + /// only ASCII characters are case folded. + /// + /// Note that this routine returns zero on a match and non-zero if the strings + /// do not match, the same as [sqlite3_stricmp()] and [sqlite3_strnicmp()]. + /// + /// See also: [sqlite3_strglob()]. + int sqlite3_strlike( + ffi.Pointer zGlob, + ffi.Pointer zStr, + int cEsc, + ) { + return _sqlite3_strlike(zGlob, zStr, cEsc); + } + + late final _sqlite3_strlikePtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('sqlite3_strlike'); + late final _sqlite3_strlike = _sqlite3_strlikePtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); + + int sqlite3_strnicmp( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) { + return _sqlite3_strnicmp(arg0, arg1, arg2); + } + + late final _sqlite3_strnicmpPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_strnicmp'); + late final _sqlite3_strnicmp = _sqlite3_strnicmpPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); + + /// CAPI3REF: Low-level system error code + /// + /// ^Attempt to return the underlying operating system error code or error + /// number that caused the most recent I/O error or failure to open a file. + /// The return value is OS-dependent. For example, on unix systems, after + /// [sqlite3_open_v2()] returns [SQLITE_CANTOPEN], this interface could be + /// called to get back the underlying "errno" that caused the problem, such + /// as ENOSPC, EAUTH, EISDIR, and so forth. + int sqlite3_system_errno(ffi.Pointer arg0) { + return _sqlite3_system_errno(arg0); + } + + late final _sqlite3_system_errnoPtr = + _lookup)>>( + 'sqlite3_system_errno', + ); + late final _sqlite3_system_errno = _sqlite3_system_errnoPtr + .asFunction)>(); + + /// CAPI3REF: Extract Metadata About A Column Of A Table + /// METHOD: sqlite3 + /// + /// ^(The sqlite3_table_column_metadata(X,D,T,C,....) routine returns + /// information about column C of table T in database D + /// on [database connection] X.)^ ^The sqlite3_table_column_metadata() + /// interface returns SQLITE_OK and fills in the non-NULL pointers in + /// the final five arguments with appropriate values if the specified + /// column exists. ^The sqlite3_table_column_metadata() interface returns + /// SQLITE_ERROR if the specified column does not exist. + /// ^If the column-name parameter to sqlite3_table_column_metadata() is a + /// NULL pointer, then this routine simply checks for the existence of the + /// table and returns SQLITE_OK if the table exists and SQLITE_ERROR if it + /// does not. If the table name parameter T in a call to + /// sqlite3_table_column_metadata(X,D,T,C,...) is NULL then the result is + /// undefined behavior. + /// + /// ^The column is identified by the second, third and fourth parameters to + /// this function. ^(The second parameter is either the name of the database + /// (i.e. "main", "temp", or an attached database) containing the specified + /// table or NULL.)^ ^If it is NULL, then all attached databases are searched + /// for the table using the same algorithm used by the database engine to + /// resolve unqualified table references. + /// + /// ^The third and fourth parameters to this function are the table and column + /// name of the desired column, respectively. + /// + /// ^Metadata is returned by writing to the memory locations passed as the 5th + /// and subsequent parameters to this function. ^Any of these arguments may be + /// NULL, in which case the corresponding element of metadata is omitted. + /// + /// ^(
+ /// + ///
Parameter Output
Type
Description + /// + ///
5th const char* Data type + ///
6th const char* Name of default collation sequence + ///
7th int True if column has a NOT NULL constraint + ///
8th int True if column is part of the PRIMARY KEY + ///
9th int True if column is [AUTOINCREMENT] + ///
+ ///
)^ + /// + /// ^The memory pointed to by the character pointers returned for the + /// declaration type and collation sequence is valid until the next + /// call to any SQLite API function. + /// + /// ^If the specified table is actually a view, an [error code] is returned. + /// + /// ^If the specified column is "rowid", "oid" or "_rowid_" and the table + /// is not a [WITHOUT ROWID] table and an + /// [INTEGER PRIMARY KEY] column has been explicitly declared, then the output + /// parameters are set for the explicitly declared column. ^(If there is no + /// [INTEGER PRIMARY KEY] column, then the outputs + /// for the [rowid] are set as follows: + /// + ///
+  /// data type: "INTEGER"
+  /// collation sequence: "BINARY"
+  /// not null: 0
+  /// primary key: 1
+  /// auto increment: 0
+  /// 
)^ + /// + /// ^This function causes all database schemas to be read from disk and + /// parsed, if that has not already been done, and returns an error if + /// any errors are encountered while loading the schema. + int sqlite3_table_column_metadata( + ffi.Pointer db, + ffi.Pointer zDbName, + ffi.Pointer zTableName, + ffi.Pointer zColumnName, + ffi.Pointer> pzDataType, + ffi.Pointer> pzCollSeq, + ffi.Pointer pNotNull, + ffi.Pointer pPrimaryKey, + ffi.Pointer pAutoinc, + ) { + return _sqlite3_table_column_metadata( + db, + zDbName, + zTableName, + zColumnName, + pzDataType, + pzCollSeq, + pNotNull, + pPrimaryKey, + pAutoinc, + ); + } + + late final _sqlite3_table_column_metadataPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_table_column_metadata'); + late final _sqlite3_table_column_metadata = _sqlite3_table_column_metadataPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Name Of The Folder Holding Temporary Files + /// + /// ^(If this global variable is made to point to a string which is + /// the name of a folder (a.k.a. directory), then all temporary files + /// created by SQLite when using a built-in [sqlite3_vfs | VFS] + /// will be placed in that directory.)^ ^If this variable + /// is a NULL pointer, then SQLite performs a search for an appropriate + /// temporary file directory. + /// + /// Applications are strongly discouraged from using this global variable. + /// It is required to set a temporary folder on Windows Runtime (WinRT). + /// But for all other platforms, it is highly recommended that applications + /// neither read nor write this variable. This global variable is a relic + /// that exists for backwards compatibility of legacy applications and should + /// be avoided in new projects. + /// + /// It is not safe to read or modify this variable in more than one + /// thread at a time. It is not safe to read or modify this variable + /// if a [database connection] is being used at the same time in a separate + /// thread. + /// It is intended that this variable be set once + /// as part of process initialization and before any SQLite interface + /// routines have been called and that this variable remain unchanged + /// thereafter. + /// + /// ^The [temp_store_directory pragma] may modify this variable and cause + /// it to point to memory obtained from [sqlite3_malloc]. ^Furthermore, + /// the [temp_store_directory pragma] always assumes that any string + /// that this variable points to is held in memory obtained from + /// [sqlite3_malloc] and the pragma may attempt to free that memory + /// using [sqlite3_free]. + /// Hence, if this variable is modified directly, either it should be + /// made NULL or made to point to memory obtained from [sqlite3_malloc] + /// or else the use of the [temp_store_directory pragma] should be avoided. + /// Except when requested by the [temp_store_directory pragma], SQLite + /// does not free the memory that sqlite3_temp_directory points to. If + /// the application wants that memory to be freed, it must do + /// so itself, taking care to only do so after all [database connection] + /// objects have been destroyed. + /// + /// Note to Windows Runtime users: The temporary directory must be set + /// prior to calling [sqlite3_open] or [sqlite3_open_v2]. Otherwise, various + /// features that require the use of temporary files may fail. Here is an + /// example of how to do this using C++ with the Windows Runtime: + /// + ///
+  /// LPCWSTR zPath = Windows::Storage::ApplicationData::Current->
+  ///       TemporaryFolder->Path->Data();
+  /// char zPathBuf[MAX_PATH + 1];
+  /// memset(zPathBuf, 0, sizeof(zPathBuf));
+  /// WideCharToMultiByte(CP_UTF8, 0, zPath, -1, zPathBuf, sizeof(zPathBuf),
+  ///       NULL, NULL);
+  /// sqlite3_temp_directory = sqlite3_mprintf("%s", zPathBuf);
+  /// 
+ late final ffi.Pointer> _sqlite3_temp_directory = + _lookup>('sqlite3_temp_directory'); + + ffi.Pointer get sqlite3_temp_directory => + _sqlite3_temp_directory.value; + + set sqlite3_temp_directory(ffi.Pointer value) => + _sqlite3_temp_directory.value = value; + + /// CAPI3REF: Testing Interface + /// + /// ^The sqlite3_test_control() interface is used to read out internal + /// state of SQLite and to inject faults into SQLite for testing + /// purposes. ^The first parameter is an operation code that determines + /// the number, meaning, and operation of all subsequent parameters. + /// + /// This interface is not for use by applications. It exists solely + /// for verifying the correct operation of the SQLite library. Depending + /// on how the SQLite library is compiled, this interface might not exist. + /// + /// The details of the operation codes, their meanings, the parameters + /// they take, and what they do are all subject to change without notice. + /// Unlike most of the SQLite API, this function is not guaranteed to + /// operate consistently from one release to the next. + int sqlite3_test_control(int op) { + return _sqlite3_test_control(op); + } + + late final _sqlite3_test_controlPtr = + _lookup>( + 'sqlite3_test_control', + ); + late final _sqlite3_test_control = _sqlite3_test_controlPtr + .asFunction(); + + void sqlite3_thread_cleanup() { + return _sqlite3_thread_cleanup(); + } + + late final _sqlite3_thread_cleanupPtr = + _lookup>( + 'sqlite3_thread_cleanup', + ); + late final _sqlite3_thread_cleanup = _sqlite3_thread_cleanupPtr + .asFunction(); + + /// CAPI3REF: Test To See If The Library Is Threadsafe + /// + /// ^The sqlite3_threadsafe() function returns zero if and only if + /// SQLite was compiled with mutexing code omitted due to the + /// [SQLITE_THREADSAFE] compile-time option being set to 0. + /// + /// SQLite can be compiled with or without mutexes. When + /// the [SQLITE_THREADSAFE] C preprocessor macro is 1 or 2, mutexes + /// are enabled and SQLite is threadsafe. When the + /// [SQLITE_THREADSAFE] macro is 0, + /// the mutexes are omitted. Without the mutexes, it is not safe + /// to use SQLite concurrently from more than one thread. + /// + /// Enabling mutexes incurs a measurable performance penalty. + /// So if speed is of utmost importance, it makes sense to disable + /// the mutexes. But for maximum safety, mutexes should be enabled. + /// ^The default behavior is for mutexes to be enabled. + /// + /// This interface can be used by an application to make sure that the + /// version of SQLite that it is linking against was compiled with + /// the desired setting of the [SQLITE_THREADSAFE] macro. + /// + /// This interface only reports on the compile-time mutex setting + /// of the [SQLITE_THREADSAFE] flag. If SQLite is compiled with + /// SQLITE_THREADSAFE=1 or =2 then mutexes are enabled by default but + /// can be fully or partially disabled using a call to [sqlite3_config()] + /// with the verbs [SQLITE_CONFIG_SINGLETHREAD], [SQLITE_CONFIG_MULTITHREAD], + /// or [SQLITE_CONFIG_SERIALIZED]. ^(The return value of the + /// sqlite3_threadsafe() function shows only the compile-time setting of + /// thread safety, not any run-time changes to that setting made by + /// sqlite3_config(). In other words, the return value from sqlite3_threadsafe() + /// is unchanged by calls to sqlite3_config().)^ + /// + /// See the [threading mode] documentation for additional information. + int sqlite3_threadsafe() { + return _sqlite3_threadsafe(); + } + + late final _sqlite3_threadsafePtr = + _lookup>('sqlite3_threadsafe'); + late final _sqlite3_threadsafe = _sqlite3_threadsafePtr + .asFunction(); + + /// CAPI3REF: Total Number Of Rows Modified + /// METHOD: sqlite3 + /// + /// ^This function returns the total number of rows inserted, modified or + /// deleted by all [INSERT], [UPDATE] or [DELETE] statements completed + /// since the database connection was opened, including those executed as + /// part of trigger programs. ^Executing any other type of SQL statement + /// does not affect the value returned by sqlite3_total_changes(). + /// + /// ^Changes made as part of [foreign key actions] are included in the + /// count, but those made as part of REPLACE constraint resolution are + /// not. ^Changes to a view that are intercepted by INSTEAD OF triggers + /// are not counted. + /// + /// The [sqlite3_total_changes(D)] interface only reports the number + /// of rows that changed due to SQL statement run against database + /// connection D. Any changes by other database connections are ignored. + /// To detect changes against a database file from other database + /// connections use the [PRAGMA data_version] command or the + /// [SQLITE_FCNTL_DATA_VERSION] [file control]. + /// + /// If a separate thread makes changes on the same database connection + /// while [sqlite3_total_changes()] is running then the value + /// returned is unpredictable and not meaningful. + /// + /// See also: + ///
    + ///
  • the [sqlite3_changes()] interface + ///
  • the [count_changes pragma] + ///
  • the [changes() SQL function] + ///
  • the [data_version pragma] + ///
  • the [SQLITE_FCNTL_DATA_VERSION] [file control] + ///
+ int sqlite3_total_changes(ffi.Pointer arg0) { + return _sqlite3_total_changes(arg0); + } + + late final _sqlite3_total_changesPtr = + _lookup)>>( + 'sqlite3_total_changes', + ); + late final _sqlite3_total_changes = _sqlite3_total_changesPtr + .asFunction)>(); + + /// CAPI3REF: Tracing And Profiling Functions + /// METHOD: sqlite3 + /// + /// These routines are deprecated. Use the [sqlite3_trace_v2()] interface + /// instead of the routines described here. + /// + /// These routines register callback functions that can be used for + /// tracing and profiling the execution of SQL statements. + /// + /// ^The callback function registered by sqlite3_trace() is invoked at + /// various times when an SQL statement is being run by [sqlite3_step()]. + /// ^The sqlite3_trace() callback is invoked with a UTF-8 rendering of the + /// SQL statement text as the statement first begins executing. + /// ^(Additional sqlite3_trace() callbacks might occur + /// as each triggered subprogram is entered. The callbacks for triggers + /// contain a UTF-8 SQL comment that identifies the trigger.)^ + /// + /// The [SQLITE_TRACE_SIZE_LIMIT] compile-time option can be used to limit + /// the length of [bound parameter] expansion in the output of sqlite3_trace(). + /// + /// ^The callback function registered by sqlite3_profile() is invoked + /// as each SQL statement finishes. ^The profile callback contains + /// the original statement text and an estimate of wall-clock time + /// of how long that statement took to run. ^The profile callback + /// time is in units of nanoseconds, however the current implementation + /// is only capable of millisecond resolution so the six least significant + /// digits in the time are meaningless. Future versions of SQLite + /// might provide greater resolution on the profiler callback. Invoking + /// either [sqlite3_trace()] or [sqlite3_trace_v2()] will cancel the + /// profile callback. + ffi.Pointer sqlite3_trace( + ffi.Pointer arg0, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + xTrace, + ffi.Pointer arg2, + ) { + return _sqlite3_trace(arg0, xTrace, arg2); + } + + late final _sqlite3_tracePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >, + ffi.Pointer, + ) + > + >('sqlite3_trace'); + late final _sqlite3_trace = _sqlite3_tracePtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: SQL Trace Hook + /// METHOD: sqlite3 + /// + /// ^The sqlite3_trace_v2(D,M,X,P) interface registers a trace callback + /// function X against [database connection] D, using property mask M + /// and context pointer P. ^If the X callback is + /// NULL or if the M mask is zero, then tracing is disabled. The + /// M argument should be the bitwise OR-ed combination of + /// zero or more [SQLITE_TRACE] constants. + /// + /// ^Each call to either sqlite3_trace() or sqlite3_trace_v2() overrides + /// (cancels) any prior calls to sqlite3_trace() or sqlite3_trace_v2(). + /// + /// ^The X callback is invoked whenever any of the events identified by + /// mask M occur. ^The integer return value from the callback is currently + /// ignored, though this may change in future releases. Callback + /// implementations should return zero to ensure future compatibility. + /// + /// ^A trace callback is invoked with four arguments: callback(T,C,P,X). + /// ^The T argument is one of the [SQLITE_TRACE] + /// constants to indicate why the callback was invoked. + /// ^The C argument is a copy of the context pointer. + /// The P and X arguments are pointers whose meanings depend on T. + /// + /// The sqlite3_trace_v2() interface is intended to replace the legacy + /// interfaces [sqlite3_trace()] and [sqlite3_profile()], both of which + /// are deprecated. + int sqlite3_trace_v2( + ffi.Pointer arg0, + int uMask, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xCallback, + ffi.Pointer pCtx, + ) { + return _sqlite3_trace_v2(arg0, uMask, xCallback, pCtx); + } + + late final _sqlite3_trace_v2Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >('sqlite3_trace_v2'); + late final _sqlite3_trace_v2 = _sqlite3_trace_v2Ptr + .asFunction< + int Function( + ffi.Pointer, + int, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); + + int sqlite3_transfer_bindings( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return _sqlite3_transfer_bindings(arg0, arg1); + } + + late final _sqlite3_transfer_bindingsPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sqlite3_transfer_bindings'); + late final _sqlite3_transfer_bindings = _sqlite3_transfer_bindingsPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); + + /// CAPI3REF: Unlock Notification + /// METHOD: sqlite3 + /// + /// ^When running in shared-cache mode, a database operation may fail with + /// an [SQLITE_LOCKED] error if the required locks on the shared-cache or + /// individual tables within the shared-cache cannot be obtained. See + /// [SQLite Shared-Cache Mode] for a description of shared-cache locking. + /// ^This API may be used to register a callback that SQLite will invoke + /// when the connection currently holding the required lock relinquishes it. + /// ^This API is only available if the library was compiled with the + /// [SQLITE_ENABLE_UNLOCK_NOTIFY] C-preprocessor symbol defined. + /// + /// See Also: [Using the SQLite Unlock Notification Feature]. + /// + /// ^Shared-cache locks are released when a database connection concludes + /// its current transaction, either by committing it or rolling it back. + /// + /// ^When a connection (known as the blocked connection) fails to obtain a + /// shared-cache lock and SQLITE_LOCKED is returned to the caller, the + /// identity of the database connection (the blocking connection) that + /// has locked the required resource is stored internally. ^After an + /// application receives an SQLITE_LOCKED error, it may call the + /// sqlite3_unlock_notify() method with the blocked connection handle as + /// the first argument to register for a callback that will be invoked + /// when the blocking connections current transaction is concluded. ^The + /// callback is invoked from within the [sqlite3_step] or [sqlite3_close] + /// call that concludes the blocking connection's transaction. + /// + /// ^(If sqlite3_unlock_notify() is called in a multi-threaded application, + /// there is a chance that the blocking connection will have already + /// concluded its transaction by the time sqlite3_unlock_notify() is invoked. + /// If this happens, then the specified callback is invoked immediately, + /// from within the call to sqlite3_unlock_notify().)^ + /// + /// ^If the blocked connection is attempting to obtain a write-lock on a + /// shared-cache table, and more than one other connection currently holds + /// a read-lock on the same table, then SQLite arbitrarily selects one of + /// the other connections to use as the blocking connection. + /// + /// ^(There may be at most one unlock-notify callback registered by a + /// blocked connection. If sqlite3_unlock_notify() is called when the + /// blocked connection already has a registered unlock-notify callback, + /// then the new callback replaces the old.)^ ^If sqlite3_unlock_notify() is + /// called with a NULL pointer as its second argument, then any existing + /// unlock-notify callback is canceled. ^The blocked connections + /// unlock-notify callback may also be canceled by closing the blocked + /// connection using [sqlite3_close()]. + /// + /// The unlock-notify callback is not reentrant. If an application invokes + /// any sqlite3_xxx API functions from within an unlock-notify callback, a + /// crash or deadlock may be the result. + /// + /// ^Unless deadlock is detected (see below), sqlite3_unlock_notify() always + /// returns SQLITE_OK. + /// + /// Callback Invocation Details + /// + /// When an unlock-notify callback is registered, the application provides a + /// single void* pointer that is passed to the callback when it is invoked. + /// However, the signature of the callback function allows SQLite to pass + /// it an array of void* context pointers. The first argument passed to + /// an unlock-notify callback is a pointer to an array of void* pointers, + /// and the second is the number of entries in the array. + /// + /// When a blocking connection's transaction is concluded, there may be + /// more than one blocked connection that has registered for an unlock-notify + /// callback. ^If two or more such blocked connections have specified the + /// same callback function, then instead of invoking the callback function + /// multiple times, it is invoked once with the set of void* context pointers + /// specified by the blocked connections bundled together into an array. + /// This gives the application an opportunity to prioritize any actions + /// related to the set of unblocked database connections. + /// + /// Deadlock Detection + /// + /// Assuming that after registering for an unlock-notify callback a + /// database waits for the callback to be issued before taking any further + /// action (a reasonable assumption), then using this API may cause the + /// application to deadlock. For example, if connection X is waiting for + /// connection Y's transaction to be concluded, and similarly connection + /// Y is waiting on connection X's transaction, then neither connection + /// will proceed and the system may remain deadlocked indefinitely. + /// + /// To avoid this scenario, the sqlite3_unlock_notify() performs deadlock + /// detection. ^If a given call to sqlite3_unlock_notify() would put the + /// system in a deadlocked state, then SQLITE_LOCKED is returned and no + /// unlock-notify callback is registered. The system is said to be in + /// a deadlocked state if connection A has registered for an unlock-notify + /// callback on the conclusion of connection B's transaction, and connection + /// B has itself registered for an unlock-notify callback when connection + /// A's transaction is concluded. ^Indirect deadlock is also detected, so + /// the system is also considered to be deadlocked if connection B has + /// registered for an unlock-notify callback on the conclusion of connection + /// C's transaction, where connection C is waiting on connection A. ^Any + /// number of levels of indirection are allowed. + /// + /// The "DROP TABLE" Exception + /// + /// When a call to [sqlite3_step()] returns SQLITE_LOCKED, it is almost + /// always appropriate to call sqlite3_unlock_notify(). There is however, + /// one exception. When executing a "DROP TABLE" or "DROP INDEX" statement, + /// SQLite checks if there are any currently executing SELECT statements + /// that belong to the same connection. If there are, SQLITE_LOCKED is + /// returned. In this case there is no "blocking connection", so invoking + /// sqlite3_unlock_notify() results in the unlock-notify callback being + /// invoked immediately. If the application then re-attempts the "DROP TABLE" + /// or "DROP INDEX" query, an infinite loop might be the result. + /// + /// One way around this problem is to check the extended error code returned + /// by an sqlite3_step() call. ^(If there is a blocking connection, then the + /// extended error code is set to SQLITE_LOCKED_SHAREDCACHE. Otherwise, in + /// the special "DROP TABLE/INDEX" case, the extended error code is just + /// SQLITE_LOCKED.)^ + int sqlite3_unlock_notify( + ffi.Pointer pBlocked, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer> apArg, + ffi.Int nArg, + ) + > + > + xNotify, + ffi.Pointer pNotifyArg, + ) { + return _sqlite3_unlock_notify(pBlocked, xNotify, pNotifyArg); + } + + late final _sqlite3_unlock_notifyPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer> apArg, + ffi.Int nArg, + ) + > + >, + ffi.Pointer, + ) + > + >('sqlite3_unlock_notify'); + late final _sqlite3_unlock_notify = _sqlite3_unlock_notifyPtr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer> apArg, + ffi.Int nArg, + ) + > + >, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Data Change Notification Callbacks + /// METHOD: sqlite3 + /// + /// ^The sqlite3_update_hook() interface registers a callback function + /// with the [database connection] identified by the first argument + /// to be invoked whenever a row is updated, inserted or deleted in + /// a [rowid table]. + /// ^Any callback set by a previous call to this function + /// for the same database connection is overridden. + /// + /// ^The second argument is a pointer to the function to invoke when a + /// row is updated, inserted or deleted in a rowid table. + /// ^The first argument to the callback is a copy of the third argument + /// to sqlite3_update_hook(). + /// ^The second callback argument is one of [SQLITE_INSERT], [SQLITE_DELETE], + /// or [SQLITE_UPDATE], depending on the operation that caused the callback + /// to be invoked. + /// ^The third and fourth arguments to the callback contain pointers to the + /// database and table name containing the affected row. + /// ^The final callback parameter is the [rowid] of the row. + /// ^In the case of an update, this is the [rowid] after the update takes place. + /// + /// ^(The update hook is not invoked when internal system tables are + /// modified (i.e. sqlite_master and sqlite_sequence).)^ + /// ^The update hook is not invoked when [WITHOUT ROWID] tables are modified. + /// + /// ^In the current implementation, the update hook + /// is not invoked when conflicting rows are deleted because of an + /// [ON CONFLICT | ON CONFLICT REPLACE] clause. ^Nor is the update hook + /// invoked when rows are deleted using the [truncate optimization]. + /// The exceptions defined in this paragraph might change in a future + /// release of SQLite. + /// + /// The update hook implementation must not do anything that will modify + /// the database connection that invoked the update hook. Any actions + /// to modify the database connection must be deferred until after the + /// completion of the [sqlite3_step()] call that triggered the update hook. + /// Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their + /// database connections for the meaning of "modify" in this paragraph. + /// + /// ^The sqlite3_update_hook(D,C,P) function + /// returns the P argument from the previous call + /// on the same [database connection] D, or NULL for + /// the first call on D. + /// + /// See also the [sqlite3_commit_hook()], [sqlite3_rollback_hook()], + /// and [sqlite3_preupdate_hook()] interfaces. + ffi.Pointer sqlite3_update_hook( + ffi.Pointer arg0, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + sqlite3_int64, + ) + > + > + arg1, + ffi.Pointer arg2, + ) { + return _sqlite3_update_hook(arg0, arg1, arg2); + } + + late final _sqlite3_update_hookPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + sqlite3_int64, + ) + > + >, + ffi.Pointer, + ) + > + >('sqlite3_update_hook'); + late final _sqlite3_update_hook = _sqlite3_update_hookPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + sqlite3_int64, + ) + > + >, + ffi.Pointer, + ) + >(); + + int sqlite3_uri_boolean( + ffi.Pointer zFile, + ffi.Pointer zParam, + int bDefault, + ) { + return _sqlite3_uri_boolean(zFile, zParam, bDefault); + } + + late final _sqlite3_uri_booleanPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_uri_boolean'); + late final _sqlite3_uri_boolean = _sqlite3_uri_booleanPtr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); + + int sqlite3_uri_int64( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) { + return _sqlite3_uri_int64(arg0, arg1, arg2); + } + + late final _sqlite3_uri_int64Ptr = + _lookup< + ffi.NativeFunction< + sqlite3_int64 Function( + ffi.Pointer, + ffi.Pointer, + sqlite3_int64, + ) + > + >('sqlite3_uri_int64'); + late final _sqlite3_uri_int64 = _sqlite3_uri_int64Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); + + ffi.Pointer sqlite3_uri_key( + ffi.Pointer zFilename, + int N, + ) { + return _sqlite3_uri_key(zFilename, N); + } + + late final _sqlite3_uri_keyPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + >('sqlite3_uri_key'); + late final _sqlite3_uri_key = _sqlite3_uri_keyPtr + .asFunction Function(ffi.Pointer, int)>(); + + /// CAPI3REF: Obtain Values For URI Parameters + /// + /// These are utility routines, useful to [VFS|custom VFS implementations], + /// that check if a database file was a URI that contained a specific query + /// parameter, and if so obtains the value of that query parameter. + /// + /// The first parameter to these interfaces (hereafter referred to + /// as F) must be one of: + ///
    + ///
  • A database filename pointer created by the SQLite core and + /// passed into the xOpen() method of a VFS implemention, or + ///
  • A filename obtained from [sqlite3_db_filename()], or + ///
  • A new filename constructed using [sqlite3_create_filename()]. + ///
+ /// If the F parameter is not one of the above, then the behavior is + /// undefined and probably undesirable. Older versions of SQLite were + /// more tolerant of invalid F parameters than newer versions. + /// + /// If F is a suitable filename (as described in the previous paragraph) + /// and if P is the name of the query parameter, then + /// sqlite3_uri_parameter(F,P) returns the value of the P + /// parameter if it exists or a NULL pointer if P does not appear as a + /// query parameter on F. If P is a query parameter of F and it + /// has no explicit value, then sqlite3_uri_parameter(F,P) returns + /// a pointer to an empty string. + /// + /// The sqlite3_uri_boolean(F,P,B) routine assumes that P is a boolean + /// parameter and returns true (1) or false (0) according to the value + /// of P. The sqlite3_uri_boolean(F,P,B) routine returns true (1) if the + /// value of query parameter P is one of "yes", "true", or "on" in any + /// case or if the value begins with a non-zero number. The + /// sqlite3_uri_boolean(F,P,B) routines returns false (0) if the value of + /// query parameter P is one of "no", "false", or "off" in any case or + /// if the value begins with a numeric zero. If P is not a query + /// parameter on F or if the value of P does not match any of the + /// above, then sqlite3_uri_boolean(F,P,B) returns (B!=0). + /// + /// The sqlite3_uri_int64(F,P,D) routine converts the value of P into a + /// 64-bit signed integer and returns that integer, or D if P does not + /// exist. If the value of P is something other than an integer, then + /// zero is returned. + /// + /// The sqlite3_uri_key(F,N) returns a pointer to the name (not + /// the value) of the N-th query parameter for filename F, or a NULL + /// pointer if N is less than zero or greater than the number of query + /// parameters minus 1. The N value is zero-based so N should be 0 to obtain + /// the name of the first query parameter, 1 for the second parameter, and + /// so forth. + /// + /// If F is a NULL pointer, then sqlite3_uri_parameter(F,P) returns NULL and + /// sqlite3_uri_boolean(F,P,B) returns B. If F is not a NULL pointer and + /// is not a database file pathname pointer that the SQLite core passed + /// into the xOpen VFS method, then the behavior of this routine is undefined + /// and probably undesirable. + /// + /// Beginning with SQLite [version 3.31.0] ([dateof:3.31.0]) the input F + /// parameter can also be the name of a rollback journal file or WAL file + /// in addition to the main database file. Prior to version 3.31.0, these + /// routines would only work if F was the name of the main database file. + /// When the F parameter is the name of the rollback journal or WAL file, + /// it has access to all the same query parameters as were found on the + /// main database file. + /// + /// See the [URI filename] documentation for additional information. + ffi.Pointer sqlite3_uri_parameter( + ffi.Pointer zFilename, + ffi.Pointer zParam, + ) { + return _sqlite3_uri_parameter(zFilename, zParam); + } + + late final _sqlite3_uri_parameterPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_uri_parameter'); + late final _sqlite3_uri_parameter = _sqlite3_uri_parameterPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: User Data For Functions + /// METHOD: sqlite3_context + /// + /// ^The sqlite3_user_data() interface returns a copy of + /// the pointer that was the pUserData parameter (the 5th parameter) + /// of the [sqlite3_create_function()] + /// and [sqlite3_create_function16()] routines that originally + /// registered the application defined function. + /// + /// This routine must be called from the same thread in which + /// the application-defined function is running. + ffi.Pointer sqlite3_user_data(ffi.Pointer arg0) { + return _sqlite3_user_data(arg0); + } + + late final _sqlite3_user_dataPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_user_data'); + late final _sqlite3_user_data = _sqlite3_user_dataPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); + + /// CAPI3REF: Obtaining SQL Values + /// METHOD: sqlite3_value + /// + /// Summary: + ///
+ ///
sqlite3_value_blobBLOB value + ///
sqlite3_value_doubleREAL value + ///
sqlite3_value_int32-bit INTEGER value + ///
sqlite3_value_int6464-bit INTEGER value + ///
sqlite3_value_pointerPointer value + ///
sqlite3_value_textUTF-8 TEXT value + ///
sqlite3_value_text16UTF-16 TEXT value in + /// the native byteorder + ///
sqlite3_value_text16beUTF-16be TEXT value + ///
sqlite3_value_text16leUTF-16le TEXT value + ///
    + ///
sqlite3_value_bytesSize of a BLOB + /// or a UTF-8 TEXT in bytes + ///
sqlite3_value_bytes16   + /// →  Size of UTF-16 + /// TEXT in bytes + ///
sqlite3_value_typeDefault + /// datatype of the value + ///
sqlite3_value_numeric_type   + /// →  Best numeric datatype of the value + ///
sqlite3_value_nochange   + /// →  True if the column is unchanged in an UPDATE + /// against a virtual table. + ///
sqlite3_value_frombind   + /// →  True if value originated from a [bound parameter] + ///
+ /// + /// Details: + /// + /// These routines extract type, size, and content information from + /// [protected sqlite3_value] objects. Protected sqlite3_value objects + /// are used to pass parameter information into the functions that + /// implement [application-defined SQL functions] and [virtual tables]. + /// + /// These routines work only with [protected sqlite3_value] objects. + /// Any attempt to use these routines on an [unprotected sqlite3_value] + /// is not threadsafe. + /// + /// ^These routines work just like the corresponding [column access functions] + /// except that these routines take a single [protected sqlite3_value] object + /// pointer instead of a [sqlite3_stmt*] pointer and an integer column number. + /// + /// ^The sqlite3_value_text16() interface extracts a UTF-16 string + /// in the native byte-order of the host machine. ^The + /// sqlite3_value_text16be() and sqlite3_value_text16le() interfaces + /// extract UTF-16 strings as big-endian and little-endian respectively. + /// + /// ^If [sqlite3_value] object V was initialized + /// using [sqlite3_bind_pointer(S,I,P,X,D)] or [sqlite3_result_pointer(C,P,X,D)] + /// and if X and Y are strings that compare equal according to strcmp(X,Y), + /// then sqlite3_value_pointer(V,Y) will return the pointer P. ^Otherwise, + /// sqlite3_value_pointer(V,Y) returns a NULL. The sqlite3_bind_pointer() + /// routine is part of the [pointer passing interface] added for SQLite 3.20.0. + /// + /// ^(The sqlite3_value_type(V) interface returns the + /// [SQLITE_INTEGER | datatype code] for the initial datatype of the + /// [sqlite3_value] object V. The returned value is one of [SQLITE_INTEGER], + /// [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL].)^ + /// Other interfaces might change the datatype for an sqlite3_value object. + /// For example, if the datatype is initially SQLITE_INTEGER and + /// sqlite3_value_text(V) is called to extract a text value for that + /// integer, then subsequent calls to sqlite3_value_type(V) might return + /// SQLITE_TEXT. Whether or not a persistent internal datatype conversion + /// occurs is undefined and may change from one release of SQLite to the next. + /// + /// ^(The sqlite3_value_numeric_type() interface attempts to apply + /// numeric affinity to the value. This means that an attempt is + /// made to convert the value to an integer or floating point. If + /// such a conversion is possible without loss of information (in other + /// words, if the value is a string that looks like a number) + /// then the conversion is performed. Otherwise no conversion occurs. + /// The [SQLITE_INTEGER | datatype] after conversion is returned.)^ + /// + /// ^Within the [xUpdate] method of a [virtual table], the + /// sqlite3_value_nochange(X) interface returns true if and only if + /// the column corresponding to X is unchanged by the UPDATE operation + /// that the xUpdate method call was invoked to implement and if + /// and the prior [xColumn] method call that was invoked to extracted + /// the value for that column returned without setting a result (probably + /// because it queried [sqlite3_vtab_nochange()] and found that the column + /// was unchanging). ^Within an [xUpdate] method, any value for which + /// sqlite3_value_nochange(X) is true will in all other respects appear + /// to be a NULL value. If sqlite3_value_nochange(X) is invoked anywhere other + /// than within an [xUpdate] method call for an UPDATE statement, then + /// the return value is arbitrary and meaningless. + /// + /// ^The sqlite3_value_frombind(X) interface returns non-zero if the + /// value X originated from one of the [sqlite3_bind_int|sqlite3_bind()] + /// interfaces. ^If X comes from an SQL literal value, or a table column, + /// or an expression, then sqlite3_value_frombind(X) returns zero. + /// + /// Please pay particular attention to the fact that the pointer returned + /// from [sqlite3_value_blob()], [sqlite3_value_text()], or + /// [sqlite3_value_text16()] can be invalidated by a subsequent call to + /// [sqlite3_value_bytes()], [sqlite3_value_bytes16()], [sqlite3_value_text()], + /// or [sqlite3_value_text16()]. + /// + /// These routines must be called from the same thread as + /// the SQL function that supplied the [sqlite3_value*] parameters. + /// + /// As long as the input parameter is correct, these routines can only + /// fail if an out-of-memory error occurs during a format conversion. + /// Only the following subset of interfaces are subject to out-of-memory + /// errors: + /// + ///
    + ///
  • sqlite3_value_blob() + ///
  • sqlite3_value_text() + ///
  • sqlite3_value_text16() + ///
  • sqlite3_value_text16le() + ///
  • sqlite3_value_text16be() + ///
  • sqlite3_value_bytes() + ///
  • sqlite3_value_bytes16() + ///
+ /// + /// If an out-of-memory error occurs, then the return value from these + /// routines is the same as if the column had contained an SQL NULL value. + /// Valid SQL NULL returns can be distinguished from out-of-memory errors + /// by invoking the [sqlite3_errcode()] immediately after the suspect + /// return value is obtained and before any + /// other SQLite interface is called on the same [database connection]. + ffi.Pointer sqlite3_value_blob(ffi.Pointer arg0) { + return _sqlite3_value_blob(arg0); + } + + late final _sqlite3_value_blobPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_value_blob'); + late final _sqlite3_value_blob = _sqlite3_value_blobPtr + .asFunction Function(ffi.Pointer)>(); + + int sqlite3_value_bytes(ffi.Pointer arg0) { + return _sqlite3_value_bytes(arg0); + } + + late final _sqlite3_value_bytesPtr = + _lookup)>>( + 'sqlite3_value_bytes', + ); + late final _sqlite3_value_bytes = _sqlite3_value_bytesPtr + .asFunction)>(); + + int sqlite3_value_bytes16(ffi.Pointer arg0) { + return _sqlite3_value_bytes16(arg0); + } + + late final _sqlite3_value_bytes16Ptr = + _lookup)>>( + 'sqlite3_value_bytes16', + ); + late final _sqlite3_value_bytes16 = _sqlite3_value_bytes16Ptr + .asFunction)>(); + + double sqlite3_value_double(ffi.Pointer arg0) { + return _sqlite3_value_double(arg0); + } + + late final _sqlite3_value_doublePtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_value_double'); + late final _sqlite3_value_double = _sqlite3_value_doublePtr + .asFunction)>(); + + /// CAPI3REF: Copy And Free SQL Values + /// METHOD: sqlite3_value + /// + /// ^The sqlite3_value_dup(V) interface makes a copy of the [sqlite3_value] + /// object D and returns a pointer to that copy. ^The [sqlite3_value] returned + /// is a [protected sqlite3_value] object even if the input is not. + /// ^The sqlite3_value_dup(V) interface returns NULL if V is NULL or if a + /// memory allocation fails. + /// + /// ^The sqlite3_value_free(V) interface frees an [sqlite3_value] object + /// previously obtained from [sqlite3_value_dup()]. ^If V is a NULL pointer + /// then sqlite3_value_free(V) is a harmless no-op. + ffi.Pointer sqlite3_value_dup( + ffi.Pointer arg0, + ) { + return _sqlite3_value_dup(arg0); + } + + late final _sqlite3_value_dupPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_value_dup'); + late final _sqlite3_value_dup = _sqlite3_value_dupPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); + + void sqlite3_value_free(ffi.Pointer arg0) { + return _sqlite3_value_free(arg0); + } + + late final _sqlite3_value_freePtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_value_free'); + late final _sqlite3_value_free = _sqlite3_value_freePtr + .asFunction)>(); + + int sqlite3_value_frombind(ffi.Pointer arg0) { + return _sqlite3_value_frombind(arg0); + } + + late final _sqlite3_value_frombindPtr = + _lookup)>>( + 'sqlite3_value_frombind', + ); + late final _sqlite3_value_frombind = _sqlite3_value_frombindPtr + .asFunction)>(); + + int sqlite3_value_int(ffi.Pointer arg0) { + return _sqlite3_value_int(arg0); + } + + late final _sqlite3_value_intPtr = + _lookup)>>( + 'sqlite3_value_int', + ); + late final _sqlite3_value_int = _sqlite3_value_intPtr + .asFunction)>(); + + int sqlite3_value_int64(ffi.Pointer arg0) { + return _sqlite3_value_int64(arg0); + } + + late final _sqlite3_value_int64Ptr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_value_int64'); + late final _sqlite3_value_int64 = _sqlite3_value_int64Ptr + .asFunction)>(); + + int sqlite3_value_nochange(ffi.Pointer arg0) { + return _sqlite3_value_nochange(arg0); + } + + late final _sqlite3_value_nochangePtr = + _lookup)>>( + 'sqlite3_value_nochange', + ); + late final _sqlite3_value_nochange = _sqlite3_value_nochangePtr + .asFunction)>(); + + int sqlite3_value_numeric_type(ffi.Pointer arg0) { + return _sqlite3_value_numeric_type(arg0); + } + + late final _sqlite3_value_numeric_typePtr = + _lookup)>>( + 'sqlite3_value_numeric_type', + ); + late final _sqlite3_value_numeric_type = _sqlite3_value_numeric_typePtr + .asFunction)>(); + + ffi.Pointer sqlite3_value_pointer( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return _sqlite3_value_pointer(arg0, arg1); + } + + late final _sqlite3_value_pointerPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_value_pointer'); + late final _sqlite3_value_pointer = _sqlite3_value_pointerPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Finding The Subtype Of SQL Values + /// METHOD: sqlite3_value + /// + /// The sqlite3_value_subtype(V) function returns the subtype for + /// an [application-defined SQL function] argument V. The subtype + /// information can be used to pass a limited amount of context from + /// one SQL function to another. Use the [sqlite3_result_subtype()] + /// routine to set the subtype for the return value of an SQL function. + int sqlite3_value_subtype(ffi.Pointer arg0) { + return _sqlite3_value_subtype(arg0); + } + + late final _sqlite3_value_subtypePtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_value_subtype'); + late final _sqlite3_value_subtype = _sqlite3_value_subtypePtr + .asFunction)>(); + + ffi.Pointer sqlite3_value_text( + ffi.Pointer arg0, + ) { + return _sqlite3_value_text(arg0); + } + + late final _sqlite3_value_textPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_value_text'); + late final _sqlite3_value_text = _sqlite3_value_textPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); + + ffi.Pointer sqlite3_value_text16(ffi.Pointer arg0) { + return _sqlite3_value_text16(arg0); + } + + late final _sqlite3_value_text16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_value_text16'); + late final _sqlite3_value_text16 = _sqlite3_value_text16Ptr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer sqlite3_value_text16be( + ffi.Pointer arg0, + ) { + return _sqlite3_value_text16be(arg0); + } + + late final _sqlite3_value_text16bePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_value_text16be'); + late final _sqlite3_value_text16be = _sqlite3_value_text16bePtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer sqlite3_value_text16le( + ffi.Pointer arg0, + ) { + return _sqlite3_value_text16le(arg0); + } + + late final _sqlite3_value_text16lePtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_value_text16le'); + late final _sqlite3_value_text16le = _sqlite3_value_text16lePtr + .asFunction Function(ffi.Pointer)>(); + + int sqlite3_value_type(ffi.Pointer arg0) { + return _sqlite3_value_type(arg0); + } + + late final _sqlite3_value_typePtr = + _lookup)>>( + 'sqlite3_value_type', + ); + late final _sqlite3_value_type = _sqlite3_value_typePtr + .asFunction)>(); + + /// CAPI3REF: Run-Time Library Version Numbers + /// KEYWORDS: sqlite3_version sqlite3_sourceid + /// + /// These interfaces provide the same information as the [SQLITE_VERSION], + /// [SQLITE_VERSION_NUMBER], and [SQLITE_SOURCE_ID] C preprocessor macros + /// but are associated with the library instead of the header file. ^(Cautious + /// programmers might include assert() statements in their application to + /// verify that values returned by these interfaces match the macros in + /// the header, and thus ensure that the application is + /// compiled with matching library and header files. + /// + ///
+  /// assert( sqlite3_libversion_number()==SQLITE_VERSION_NUMBER );
+  /// assert( strncmp(sqlite3_sourceid(),SQLITE_SOURCE_ID,80)==0 );
+  /// assert( strcmp(sqlite3_libversion(),SQLITE_VERSION)==0 );
+  /// 
)^ + /// + /// ^The sqlite3_version[] string constant contains the text of [SQLITE_VERSION] + /// macro. ^The sqlite3_libversion() function returns a pointer to the + /// to the sqlite3_version[] string constant. The sqlite3_libversion() + /// function is provided for use in DLLs since DLL users usually do not have + /// direct access to string constants within the DLL. ^The + /// sqlite3_libversion_number() function returns an integer equal to + /// [SQLITE_VERSION_NUMBER]. ^(The sqlite3_sourceid() function returns + /// a pointer to a string constant whose value is the same as the + /// [SQLITE_SOURCE_ID] C preprocessor macro. Except if SQLite is built + /// using an edited copy of [the amalgamation], then the last four characters + /// of the hash might be different from [SQLITE_SOURCE_ID].)^ + /// + /// See also: [sqlite_version()] and [sqlite_source_id()]. + late final ffi.Pointer> _sqlite3_version = + _lookup>('sqlite3_version'); + + ffi.Pointer get sqlite3_version => _sqlite3_version.value; + + set sqlite3_version(ffi.Pointer value) => + _sqlite3_version.value = value; + + /// CAPI3REF: Virtual File System Objects + /// + /// A virtual filesystem (VFS) is an [sqlite3_vfs] object + /// that SQLite uses to interact + /// with the underlying operating system. Most SQLite builds come with a + /// single default VFS that is appropriate for the host computer. + /// New VFSes can be registered and existing VFSes can be unregistered. + /// The following interfaces are provided. + /// + /// ^The sqlite3_vfs_find() interface returns a pointer to a VFS given its name. + /// ^Names are case sensitive. + /// ^Names are zero-terminated UTF-8 strings. + /// ^If there is no match, a NULL pointer is returned. + /// ^If zVfsName is NULL then the default VFS is returned. + /// + /// ^New VFSes are registered with sqlite3_vfs_register(). + /// ^Each new VFS becomes the default VFS if the makeDflt flag is set. + /// ^The same VFS can be registered multiple times without injury. + /// ^To make an existing VFS into the default VFS, register it again + /// with the makeDflt flag set. If two different VFSes with the + /// same name are registered, the behavior is undefined. If a + /// VFS is registered with a name that is NULL or an empty string, + /// then the behavior is undefined. + /// + /// ^Unregister a VFS with the sqlite3_vfs_unregister() interface. + /// ^(If the default VFS is unregistered, another VFS is chosen as + /// the default. The choice for the new VFS is arbitrary.)^ + ffi.Pointer sqlite3_vfs_find(ffi.Pointer zVfsName) { + return _sqlite3_vfs_find(zVfsName); + } + + late final _sqlite3_vfs_findPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('sqlite3_vfs_find'); + late final _sqlite3_vfs_find = _sqlite3_vfs_findPtr + .asFunction Function(ffi.Pointer)>(); + + int sqlite3_vfs_register(ffi.Pointer arg0, int makeDflt) { + return _sqlite3_vfs_register(arg0, makeDflt); + } + + late final _sqlite3_vfs_registerPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_vfs_register'); + late final _sqlite3_vfs_register = _sqlite3_vfs_registerPtr + .asFunction, int)>(); + + int sqlite3_vfs_unregister(ffi.Pointer arg0) { + return _sqlite3_vfs_unregister(arg0); + } + + late final _sqlite3_vfs_unregisterPtr = + _lookup)>>( + 'sqlite3_vfs_unregister', + ); + late final _sqlite3_vfs_unregister = _sqlite3_vfs_unregisterPtr + .asFunction)>(); + + /// CAPI3REF: Determine The Collation For a Virtual Table Constraint + /// + /// This function may only be called from within a call to the [xBestIndex] + /// method of a [virtual table]. + /// + /// The first argument must be the sqlite3_index_info object that is the + /// first parameter to the xBestIndex() method. The second argument must be + /// an index into the aConstraint[] array belonging to the sqlite3_index_info + /// structure passed to xBestIndex. This function returns a pointer to a buffer + /// containing the name of the collation sequence for the corresponding + /// constraint. + ffi.Pointer sqlite3_vtab_collation( + ffi.Pointer arg0, + int arg1, + ) { + return _sqlite3_vtab_collation(arg0, arg1); + } + + late final _sqlite3_vtab_collationPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Int, + ) + > + >('sqlite3_vtab_collation'); + late final _sqlite3_vtab_collation = _sqlite3_vtab_collationPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); + + /// CAPI3REF: Virtual Table Interface Configuration + /// + /// This function may be called by either the [xConnect] or [xCreate] method + /// of a [virtual table] implementation to configure + /// various facets of the virtual table interface. + /// + /// If this interface is invoked outside the context of an xConnect or + /// xCreate virtual table method then the behavior is undefined. + /// + /// In the call sqlite3_vtab_config(D,C,...) the D parameter is the + /// [database connection] in which the virtual table is being created and + /// which is passed in as the first argument to the [xConnect] or [xCreate] + /// method that is invoking sqlite3_vtab_config(). The C parameter is one + /// of the [virtual table configuration options]. The presence and meaning + /// of parameters after C depend on which [virtual table configuration option] + /// is used. + int sqlite3_vtab_config(ffi.Pointer arg0, int op) { + return _sqlite3_vtab_config(arg0, op); + } + + late final _sqlite3_vtab_configPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_vtab_config'); + late final _sqlite3_vtab_config = _sqlite3_vtab_configPtr + .asFunction, int)>(); + + /// CAPI3REF: Determine If Virtual Table Column Access Is For UPDATE + /// + /// If the sqlite3_vtab_nochange(X) routine is called within the [xColumn] + /// method of a [virtual table], then it returns true if and only if the + /// column is being fetched as part of an UPDATE operation during which the + /// column value will not change. Applications might use this to substitute + /// a return value that is less expensive to compute and that the corresponding + /// [xUpdate] method understands as a "no-change" value. + /// + /// If the [xColumn] method calls sqlite3_vtab_nochange() and finds that + /// the column is not changed by the UPDATE statement, then the xColumn + /// method can optionally return without setting a result, without calling + /// any of the [sqlite3_result_int|sqlite3_result_xxxxx() interfaces]. + /// In that case, [sqlite3_value_nochange(X)] will return true for the + /// same column in the [xUpdate] method. + int sqlite3_vtab_nochange(ffi.Pointer arg0) { + return _sqlite3_vtab_nochange(arg0); + } + + late final _sqlite3_vtab_nochangePtr = + _lookup< + ffi.NativeFunction)> + >('sqlite3_vtab_nochange'); + late final _sqlite3_vtab_nochange = _sqlite3_vtab_nochangePtr + .asFunction)>(); + + /// CAPI3REF: Determine The Virtual Table Conflict Policy + /// + /// This function may only be called from within a call to the [xUpdate] method + /// of a [virtual table] implementation for an INSERT or UPDATE operation. ^The + /// value returned is one of [SQLITE_ROLLBACK], [SQLITE_IGNORE], [SQLITE_FAIL], + /// [SQLITE_ABORT], or [SQLITE_REPLACE], according to the [ON CONFLICT] mode + /// of the SQL statement that triggered the call to the [xUpdate] method of the + /// [virtual table]. + int sqlite3_vtab_on_conflict(ffi.Pointer arg0) { + return _sqlite3_vtab_on_conflict(arg0); + } + + late final _sqlite3_vtab_on_conflictPtr = + _lookup)>>( + 'sqlite3_vtab_on_conflict', + ); + late final _sqlite3_vtab_on_conflict = _sqlite3_vtab_on_conflictPtr + .asFunction)>(); + + /// CAPI3REF: Configure an auto-checkpoint + /// METHOD: sqlite3 + /// + /// ^The [sqlite3_wal_autocheckpoint(D,N)] is a wrapper around + /// [sqlite3_wal_hook()] that causes any database on [database connection] D + /// to automatically [checkpoint] + /// after committing a transaction if there are N or + /// more frames in the [write-ahead log] file. ^Passing zero or + /// a negative value as the nFrame parameter disables automatic + /// checkpoints entirely. + /// + /// ^The callback registered by this function replaces any existing callback + /// registered using [sqlite3_wal_hook()]. ^Likewise, registering a callback + /// using [sqlite3_wal_hook()] disables the automatic checkpoint mechanism + /// configured by this function. + /// + /// ^The [wal_autocheckpoint pragma] can be used to invoke this interface + /// from SQL. + /// + /// ^Checkpoints initiated by this mechanism are + /// [sqlite3_wal_checkpoint_v2|PASSIVE]. + /// + /// ^Every new [database connection] defaults to having the auto-checkpoint + /// enabled with a threshold of 1000 or [SQLITE_DEFAULT_WAL_AUTOCHECKPOINT] + /// pages. The use of this interface + /// is only necessary if the default setting is found to be suboptimal + /// for a particular application. + int sqlite3_wal_autocheckpoint(ffi.Pointer db, int N) { + return _sqlite3_wal_autocheckpoint(db, N); + } + + late final _sqlite3_wal_autocheckpointPtr = + _lookup< + ffi.NativeFunction, ffi.Int)> + >('sqlite3_wal_autocheckpoint'); + late final _sqlite3_wal_autocheckpoint = _sqlite3_wal_autocheckpointPtr + .asFunction, int)>(); + + /// CAPI3REF: Checkpoint a database + /// METHOD: sqlite3 + /// + /// ^(The sqlite3_wal_checkpoint(D,X) is equivalent to + /// [sqlite3_wal_checkpoint_v2](D,X,[SQLITE_CHECKPOINT_PASSIVE],0,0).)^ + /// + /// In brief, sqlite3_wal_checkpoint(D,X) causes the content in the + /// [write-ahead log] for database X on [database connection] D to be + /// transferred into the database file and for the write-ahead log to + /// be reset. See the [checkpointing] documentation for addition + /// information. + /// + /// This interface used to be the only way to cause a checkpoint to + /// occur. But then the newer and more powerful [sqlite3_wal_checkpoint_v2()] + /// interface was added. This interface is retained for backwards + /// compatibility and as a convenience for applications that need to manually + /// start a callback but which do not need the full power (and corresponding + /// complication) of [sqlite3_wal_checkpoint_v2()]. + int sqlite3_wal_checkpoint( + ffi.Pointer db, + ffi.Pointer zDb, + ) { + return _sqlite3_wal_checkpoint(db, zDb); + } + + late final _sqlite3_wal_checkpointPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('sqlite3_wal_checkpoint'); + late final _sqlite3_wal_checkpoint = _sqlite3_wal_checkpointPtr + .asFunction, ffi.Pointer)>(); + + /// CAPI3REF: Checkpoint a database + /// METHOD: sqlite3 + /// + /// ^(The sqlite3_wal_checkpoint_v2(D,X,M,L,C) interface runs a checkpoint + /// operation on database X of [database connection] D in mode M. Status + /// information is written back into integers pointed to by L and C.)^ + /// ^(The M parameter must be a valid [checkpoint mode]:)^ + /// + ///
+ ///
SQLITE_CHECKPOINT_PASSIVE
+ /// ^Checkpoint as many frames as possible without waiting for any database + /// readers or writers to finish, then sync the database file if all frames + /// in the log were checkpointed. ^The [busy-handler callback] + /// is never invoked in the SQLITE_CHECKPOINT_PASSIVE mode. + /// ^On the other hand, passive mode might leave the checkpoint unfinished + /// if there are concurrent readers or writers. + /// + ///
SQLITE_CHECKPOINT_FULL
+ /// ^This mode blocks (it invokes the + /// [sqlite3_busy_handler|busy-handler callback]) until there is no + /// database writer and all readers are reading from the most recent database + /// snapshot. ^It then checkpoints all frames in the log file and syncs the + /// database file. ^This mode blocks new database writers while it is pending, + /// but new database readers are allowed to continue unimpeded. + /// + ///
SQLITE_CHECKPOINT_RESTART
+ /// ^This mode works the same way as SQLITE_CHECKPOINT_FULL with the addition + /// that after checkpointing the log file it blocks (calls the + /// [busy-handler callback]) + /// until all readers are reading from the database file only. ^This ensures + /// that the next writer will restart the log file from the beginning. + /// ^Like SQLITE_CHECKPOINT_FULL, this mode blocks new + /// database writer attempts while it is pending, but does not impede readers. + /// + ///
SQLITE_CHECKPOINT_TRUNCATE
+ /// ^This mode works the same way as SQLITE_CHECKPOINT_RESTART with the + /// addition that it also truncates the log file to zero bytes just prior + /// to a successful return. + ///
+ /// + /// ^If pnLog is not NULL, then *pnLog is set to the total number of frames in + /// the log file or to -1 if the checkpoint could not run because + /// of an error or because the database is not in [WAL mode]. ^If pnCkpt is not + /// NULL,then *pnCkpt is set to the total number of checkpointed frames in the + /// log file (including any that were already checkpointed before the function + /// was called) or to -1 if the checkpoint could not run due to an error or + /// because the database is not in WAL mode. ^Note that upon successful + /// completion of an SQLITE_CHECKPOINT_TRUNCATE, the log file will have been + /// truncated to zero bytes and so both *pnLog and *pnCkpt will be set to zero. + /// + /// ^All calls obtain an exclusive "checkpoint" lock on the database file. ^If + /// any other process is running a checkpoint operation at the same time, the + /// lock cannot be obtained and SQLITE_BUSY is returned. ^Even if there is a + /// busy-handler configured, it will not be invoked in this case. + /// + /// ^The SQLITE_CHECKPOINT_FULL, RESTART and TRUNCATE modes also obtain the + /// exclusive "writer" lock on the database file. ^If the writer lock cannot be + /// obtained immediately, and a busy-handler is configured, it is invoked and + /// the writer lock retried until either the busy-handler returns 0 or the lock + /// is successfully obtained. ^The busy-handler is also invoked while waiting for + /// database readers as described above. ^If the busy-handler returns 0 before + /// the writer lock is obtained or while waiting for database readers, the + /// checkpoint operation proceeds from that point in the same way as + /// SQLITE_CHECKPOINT_PASSIVE - checkpointing as many frames as possible + /// without blocking any further. ^SQLITE_BUSY is returned in this case. + /// + /// ^If parameter zDb is NULL or points to a zero length string, then the + /// specified operation is attempted on all WAL databases [attached] to + /// [database connection] db. In this case the + /// values written to output parameters *pnLog and *pnCkpt are undefined. ^If + /// an SQLITE_BUSY error is encountered when processing one or more of the + /// attached WAL databases, the operation is still attempted on any remaining + /// attached databases and SQLITE_BUSY is returned at the end. ^If any other + /// error occurs while processing an attached database, processing is abandoned + /// and the error code is returned to the caller immediately. ^If no error + /// (SQLITE_BUSY or otherwise) is encountered while processing the attached + /// databases, SQLITE_OK is returned. + /// + /// ^If database zDb is the name of an attached database that is not in WAL + /// mode, SQLITE_OK is returned and both *pnLog and *pnCkpt set to -1. ^If + /// zDb is not NULL (or a zero length string) and is not the name of any + /// attached database, SQLITE_ERROR is returned to the caller. + /// + /// ^Unless it returns SQLITE_MISUSE, + /// the sqlite3_wal_checkpoint_v2() interface + /// sets the error information that is queried by + /// [sqlite3_errcode()] and [sqlite3_errmsg()]. + /// + /// ^The [PRAGMA wal_checkpoint] command can be used to invoke this interface + /// from SQL. + int sqlite3_wal_checkpoint_v2( + ffi.Pointer db, + ffi.Pointer zDb, + int eMode, + ffi.Pointer pnLog, + ffi.Pointer pnCkpt, + ) { + return _sqlite3_wal_checkpoint_v2(db, zDb, eMode, pnLog, pnCkpt); + } + + late final _sqlite3_wal_checkpoint_v2Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + >('sqlite3_wal_checkpoint_v2'); + late final _sqlite3_wal_checkpoint_v2 = _sqlite3_wal_checkpoint_v2Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Write-Ahead Log Commit Hook + /// METHOD: sqlite3 + /// + /// ^The [sqlite3_wal_hook()] function is used to register a callback that + /// is invoked each time data is committed to a database in wal mode. + /// + /// ^(The callback is invoked by SQLite after the commit has taken place and + /// the associated write-lock on the database released)^, so the implementation + /// may read, write or [checkpoint] the database as required. + /// + /// ^The first parameter passed to the callback function when it is invoked + /// is a copy of the third parameter passed to sqlite3_wal_hook() when + /// registering the callback. ^The second is a copy of the database handle. + /// ^The third parameter is the name of the database that was written to - + /// either "main" or the name of an [ATTACH]-ed database. ^The fourth parameter + /// is the number of pages currently in the write-ahead log file, + /// including those that were just committed. + /// + /// The callback function should normally return [SQLITE_OK]. ^If an error + /// code is returned, that error will propagate back up through the + /// SQLite code base to cause the statement that provoked the callback + /// to report an error, though the commit will have still occurred. If the + /// callback returns [SQLITE_ROW] or [SQLITE_DONE], or if it returns a value + /// that does not correspond to any valid SQLite error code, the results + /// are undefined. + /// + /// A single database handle may have at most a single write-ahead log callback + /// registered at one time. ^Calling [sqlite3_wal_hook()] replaces any + /// previously registered write-ahead log callback. ^Note that the + /// [sqlite3_wal_autocheckpoint()] interface and the + /// [wal_autocheckpoint pragma] both invoke [sqlite3_wal_hook()] and will + /// overwrite any prior [sqlite3_wal_hook()] settings. + ffi.Pointer sqlite3_wal_hook( + ffi.Pointer arg0, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + > + arg1, + ffi.Pointer arg2, + ) { + return _sqlite3_wal_hook(arg0, arg1, arg2); + } + + late final _sqlite3_wal_hookPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >, + ffi.Pointer, + ) + > + >('sqlite3_wal_hook'); + late final _sqlite3_wal_hook = _sqlite3_wal_hookPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >, + ffi.Pointer, + ) + >(); + + /// CAPI3REF: Win32 Specific Interface + /// + /// These interfaces are available only on Windows. The + /// [sqlite3_win32_set_directory] interface is used to set the value associated + /// with the [sqlite3_temp_directory] or [sqlite3_data_directory] variable, to + /// zValue, depending on the value of the type parameter. The zValue parameter + /// should be NULL to cause the previous value to be freed via [sqlite3_free]; + /// a non-NULL value will be copied into memory obtained from [sqlite3_malloc] + /// prior to being used. The [sqlite3_win32_set_directory] interface returns + /// [SQLITE_OK] to indicate success, [SQLITE_ERROR] if the type is unsupported, + /// or [SQLITE_NOMEM] if memory could not be allocated. The value of the + /// [sqlite3_data_directory] variable is intended to act as a replacement for + /// the current directory on the sub-platforms of Win32 where that concept is + /// not present, e.g. WinRT and UWP. The [sqlite3_win32_set_directory8] and + /// [sqlite3_win32_set_directory16] interfaces behave exactly the same as the + /// sqlite3_win32_set_directory interface except the string parameter must be + /// UTF-8 or UTF-16, respectively. + int sqlite3_win32_set_directory(int type, ffi.Pointer zValue) { + return _sqlite3_win32_set_directory(type, zValue); + } + + late final _sqlite3_win32_set_directoryPtr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.UnsignedLong, ffi.Pointer) + > + >('sqlite3_win32_set_directory'); + late final _sqlite3_win32_set_directory = _sqlite3_win32_set_directoryPtr + .asFunction)>(); + + int sqlite3_win32_set_directory16(int type, ffi.Pointer zValue) { + return _sqlite3_win32_set_directory16(type, zValue); + } + + late final _sqlite3_win32_set_directory16Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.UnsignedLong, ffi.Pointer) + > + >('sqlite3_win32_set_directory16'); + late final _sqlite3_win32_set_directory16 = _sqlite3_win32_set_directory16Ptr + .asFunction)>(); + + int sqlite3_win32_set_directory8(int type, ffi.Pointer zValue) { + return _sqlite3_win32_set_directory8(type, zValue); + } + + late final _sqlite3_win32_set_directory8Ptr = + _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.UnsignedLong, ffi.Pointer) + > + >('sqlite3_win32_set_directory8'); + late final _sqlite3_win32_set_directory8 = _sqlite3_win32_set_directory8Ptr + .asFunction)>(); +} + +const int FTS5_TOKENIZE_AUX = 8; + +const int FTS5_TOKENIZE_DOCUMENT = 4; + +const int FTS5_TOKENIZE_PREFIX = 2; + +const int FTS5_TOKENIZE_QUERY = 1; + +const int FTS5_TOKEN_COLOCATED = 1; + +const int FULLY_WITHIN = 2; + +final class Fts5Context extends ffi.Opaque {} + +/// EXTENSION API FUNCTIONS +/// +/// xUserData(pFts): +/// Return a copy of the context pointer the extension function was +/// registered with. +/// +/// xColumnTotalSize(pFts, iCol, pnToken): +/// If parameter iCol is less than zero, set output variable *pnToken +/// to the total number of tokens in the FTS5 table. Or, if iCol is +/// non-negative but less than the number of columns in the table, return +/// the total number of tokens in column iCol, considering all rows in +/// the FTS5 table. +/// +/// If parameter iCol is greater than or equal to the number of columns +/// in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g. +/// an OOM condition or IO error), an appropriate SQLite error code is +/// returned. +/// +/// xColumnCount(pFts): +/// Return the number of columns in the table. +/// +/// xColumnSize(pFts, iCol, pnToken): +/// If parameter iCol is less than zero, set output variable *pnToken +/// to the total number of tokens in the current row. Or, if iCol is +/// non-negative but less than the number of columns in the table, set +/// *pnToken to the number of tokens in column iCol of the current row. +/// +/// If parameter iCol is greater than or equal to the number of columns +/// in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g. +/// an OOM condition or IO error), an appropriate SQLite error code is +/// returned. +/// +/// This function may be quite inefficient if used with an FTS5 table +/// created with the "columnsize=0" option. +/// +/// xColumnText: +/// This function attempts to retrieve the text of column iCol of the +/// current document. If successful, (*pz) is set to point to a buffer +/// containing the text in utf-8 encoding, (*pn) is set to the size in bytes +/// (not characters) of the buffer and SQLITE_OK is returned. Otherwise, +/// if an error occurs, an SQLite error code is returned and the final values +/// of (*pz) and (*pn) are undefined. +/// +/// xPhraseCount: +/// Returns the number of phrases in the current query expression. +/// +/// xPhraseSize: +/// Returns the number of tokens in phrase iPhrase of the query. Phrases +/// are numbered starting from zero. +/// +/// xInstCount: +/// Set *pnInst to the total number of occurrences of all phrases within +/// the query within the current row. Return SQLITE_OK if successful, or +/// an error code (i.e. SQLITE_NOMEM) if an error occurs. +/// +/// This API can be quite slow if used with an FTS5 table created with the +/// "detail=none" or "detail=column" option. If the FTS5 table is created +/// with either "detail=none" or "detail=column" and "content=" option +/// (i.e. if it is a contentless table), then this API always returns 0. +/// +/// xInst: +/// Query for the details of phrase match iIdx within the current row. +/// Phrase matches are numbered starting from zero, so the iIdx argument +/// should be greater than or equal to zero and smaller than the value +/// output by xInstCount(). +/// +/// Usually, output parameter *piPhrase is set to the phrase number, *piCol +/// to the column in which it occurs and *piOff the token offset of the +/// first token of the phrase. Returns SQLITE_OK if successful, or an error +/// code (i.e. SQLITE_NOMEM) if an error occurs. +/// +/// This API can be quite slow if used with an FTS5 table created with the +/// "detail=none" or "detail=column" option. +/// +/// xRowid: +/// Returns the rowid of the current row. +/// +/// xTokenize: +/// Tokenize text using the tokenizer belonging to the FTS5 table. +/// +/// xQueryPhrase(pFts5, iPhrase, pUserData, xCallback): +/// This API function is used to query the FTS table for phrase iPhrase +/// of the current query. Specifically, a query equivalent to: +/// +/// ... FROM ftstable WHERE ftstable MATCH $p ORDER BY rowid +/// +/// with $p set to a phrase equivalent to the phrase iPhrase of the +/// current query is executed. Any column filter that applies to +/// phrase iPhrase of the current query is included in $p. For each +/// row visited, the callback function passed as the fourth argument +/// is invoked. The context and API objects passed to the callback +/// function may be used to access the properties of each matched row. +/// Invoking Api.xUserData() returns a copy of the pointer passed as +/// the third argument to pUserData. +/// +/// If the callback function returns any value other than SQLITE_OK, the +/// query is abandoned and the xQueryPhrase function returns immediately. +/// If the returned value is SQLITE_DONE, xQueryPhrase returns SQLITE_OK. +/// Otherwise, the error code is propagated upwards. +/// +/// If the query runs to completion without incident, SQLITE_OK is returned. +/// Or, if some error occurs before the query completes or is aborted by +/// the callback, an SQLite error code is returned. +/// +/// +/// xSetAuxdata(pFts5, pAux, xDelete) +/// +/// Save the pointer passed as the second argument as the extension function's +/// "auxiliary data". The pointer may then be retrieved by the current or any +/// future invocation of the same fts5 extension function made as part of +/// the same MATCH query using the xGetAuxdata() API. +/// +/// Each extension function is allocated a single auxiliary data slot for +/// each FTS query (MATCH expression). If the extension function is invoked +/// more than once for a single FTS query, then all invocations share a +/// single auxiliary data context. +/// +/// If there is already an auxiliary data pointer when this function is +/// invoked, then it is replaced by the new pointer. If an xDelete callback +/// was specified along with the original pointer, it is invoked at this +/// point. +/// +/// The xDelete callback, if one is specified, is also invoked on the +/// auxiliary data pointer after the FTS5 query has finished. +/// +/// If an error (e.g. an OOM condition) occurs within this function, +/// the auxiliary data is set to NULL and an error code returned. If the +/// xDelete parameter was not NULL, it is invoked on the auxiliary data +/// pointer before returning. +/// +/// +/// xGetAuxdata(pFts5, bClear) +/// +/// Returns the current auxiliary data pointer for the fts5 extension +/// function. See the xSetAuxdata() method for details. +/// +/// If the bClear argument is non-zero, then the auxiliary data is cleared +/// (set to NULL) before this function returns. In this case the xDelete, +/// if any, is not invoked. +/// +/// +/// xRowCount(pFts5, pnRow) +/// +/// This function is used to retrieve the total number of rows in the table. +/// In other words, the same value that would be returned by: +/// +/// SELECT count(*) FROM ftstable; +/// +/// xPhraseFirst() +/// This function is used, along with type Fts5PhraseIter and the xPhraseNext +/// method, to iterate through all instances of a single query phrase within +/// the current row. This is the same information as is accessible via the +/// xInstCount/xInst APIs. While the xInstCount/xInst APIs are more convenient +/// to use, this API may be faster under some circumstances. To iterate +/// through instances of phrase iPhrase, use the following code: +/// +/// Fts5PhraseIter iter; +/// int iCol, iOff; +/// for(pApi->xPhraseFirst(pFts, iPhrase, &iter, &iCol, &iOff); +/// iCol>=0; +/// pApi->xPhraseNext(pFts, &iter, &iCol, &iOff) +/// ){ +/// // An instance of phrase iPhrase at offset iOff of column iCol +/// } +/// +/// The Fts5PhraseIter structure is defined above. Applications should not +/// modify this structure directly - it should only be used as shown above +/// with the xPhraseFirst() and xPhraseNext() API methods (and by +/// xPhraseFirstColumn() and xPhraseNextColumn() as illustrated below). +/// +/// This API can be quite slow if used with an FTS5 table created with the +/// "detail=none" or "detail=column" option. If the FTS5 table is created +/// with either "detail=none" or "detail=column" and "content=" option +/// (i.e. if it is a contentless table), then this API always iterates +/// through an empty set (all calls to xPhraseFirst() set iCol to -1). +/// +/// xPhraseNext() +/// See xPhraseFirst above. +/// +/// xPhraseFirstColumn() +/// This function and xPhraseNextColumn() are similar to the xPhraseFirst() +/// and xPhraseNext() APIs described above. The difference is that instead +/// of iterating through all instances of a phrase in the current row, these +/// APIs are used to iterate through the set of columns in the current row +/// that contain one or more instances of a specified phrase. For example: +/// +/// Fts5PhraseIter iter; +/// int iCol; +/// for(pApi->xPhraseFirstColumn(pFts, iPhrase, &iter, &iCol); +/// iCol>=0; +/// pApi->xPhraseNextColumn(pFts, &iter, &iCol) +/// ){ +/// // Column iCol contains at least one instance of phrase iPhrase +/// } +/// +/// This API can be quite slow if used with an FTS5 table created with the +/// "detail=none" option. If the FTS5 table is created with either +/// "detail=none" "content=" option (i.e. if it is a contentless table), +/// then this API always iterates through an empty set (all calls to +/// xPhraseFirstColumn() set iCol to -1). +/// +/// The information accessed using this API and its companion +/// xPhraseFirstColumn() may also be obtained using xPhraseFirst/xPhraseNext +/// (or xInst/xInstCount). The chief advantage of this API is that it is +/// significantly more efficient than those alternatives when used with +/// "detail=column" tables. +/// +/// xPhraseNextColumn() +/// See xPhraseFirstColumn above. +final class Fts5ExtensionApi extends ffi.Struct { + /// Currently always set to 3 + @ffi.Int() + external int iVersion; + + external ffi.Pointer< + ffi.NativeFunction Function(ffi.Pointer)> + > + xUserData; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xColumnCount; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xRowCount; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xColumnTotalSize; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Int, + ) + > + >, + ) + > + > + xTokenize; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xPhraseCount; + + external ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xPhraseSize; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xInstCount; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xInst; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xRowid; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ) + > + > + xColumnText; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) + > + > + xColumnSize; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) + > + > + xQueryPhrase; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + > + xSetAuxdata; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + > + xGetAuxdata; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseFirst; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseNext; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseFirstColumn; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseNextColumn; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iVersion, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + > + xUserData, + required ffi.Pointer< + ffi.NativeFunction)> + > + xColumnCount, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xRowCount, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xColumnTotalSize, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Int, + ) + > + >, + ) + > + > + xTokenize, + required ffi.Pointer< + ffi.NativeFunction)> + > + xPhraseCount, + required ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xPhraseSize, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xInstCount, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xInst, + required ffi.Pointer< + ffi.NativeFunction)> + > + xRowid, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ) + > + > + xColumnText, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xColumnSize, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ) + > + > + xQueryPhrase, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction)> + >, + ) + > + > + xSetAuxdata, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + > + xGetAuxdata, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseFirst, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseNext, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseFirstColumn, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xPhraseNextColumn, + }) => $allocator() + ..ref.iVersion = iVersion + ..ref.xUserData = xUserData + ..ref.xColumnCount = xColumnCount + ..ref.xRowCount = xRowCount + ..ref.xColumnTotalSize = xColumnTotalSize + ..ref.xTokenize = xTokenize + ..ref.xPhraseCount = xPhraseCount + ..ref.xPhraseSize = xPhraseSize + ..ref.xInstCount = xInstCount + ..ref.xInst = xInst + ..ref.xRowid = xRowid + ..ref.xColumnText = xColumnText + ..ref.xColumnSize = xColumnSize + ..ref.xQueryPhrase = xQueryPhrase + ..ref.xSetAuxdata = xSetAuxdata + ..ref.xGetAuxdata = xGetAuxdata + ..ref.xPhraseFirst = xPhraseFirst + ..ref.xPhraseNext = xPhraseNext + ..ref.xPhraseFirstColumn = xPhraseFirstColumn + ..ref.xPhraseNextColumn = xPhraseNextColumn; +} + +final class Fts5PhraseIter extends ffi.Struct { + external ffi.Pointer a; + + external ffi.Pointer b; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer a, + required ffi.Pointer b, + }) => $allocator() + ..ref.a = a + ..ref.b = b; +} + +final class Fts5Tokenizer extends ffi.Opaque {} + +const int NOT_WITHIN = 0; + +const int PARTLY_WITHIN = 1; + +const int SQLITE3_TEXT = 3; + +const int SQLITE_ABORT = 4; + +const int SQLITE_ABORT_ROLLBACK = 516; + +const int SQLITE_ACCESS_EXISTS = 0; + +const int SQLITE_ACCESS_READ = 2; + +const int SQLITE_ACCESS_READWRITE = 1; + +const int SQLITE_ALTER_TABLE = 26; + +const int SQLITE_ANALYZE = 28; + +const int SQLITE_ANY = 5; + +const int SQLITE_ATTACH = 24; + +const int SQLITE_AUTH = 23; + +const int SQLITE_AUTH_USER = 279; + +const int SQLITE_BLOB = 4; + +const int SQLITE_BUSY = 5; + +const int SQLITE_BUSY_RECOVERY = 261; + +const int SQLITE_BUSY_SNAPSHOT = 517; + +const int SQLITE_BUSY_TIMEOUT = 773; + +const int SQLITE_CANTOPEN = 14; + +const int SQLITE_CANTOPEN_CONVPATH = 1038; + +const int SQLITE_CANTOPEN_DIRTYWAL = 1294; + +const int SQLITE_CANTOPEN_FULLPATH = 782; + +const int SQLITE_CANTOPEN_ISDIR = 526; + +const int SQLITE_CANTOPEN_NOTEMPDIR = 270; + +const int SQLITE_CANTOPEN_SYMLINK = 1550; + +const int SQLITE_CHECKPOINT_FULL = 1; + +const int SQLITE_CHECKPOINT_PASSIVE = 0; + +const int SQLITE_CHECKPOINT_RESTART = 2; + +const int SQLITE_CHECKPOINT_TRUNCATE = 3; + +const int SQLITE_CONFIG_COVERING_INDEX_SCAN = 20; + +const int SQLITE_CONFIG_GETMALLOC = 5; + +const int SQLITE_CONFIG_GETMUTEX = 11; + +const int SQLITE_CONFIG_GETPCACHE = 15; + +const int SQLITE_CONFIG_GETPCACHE2 = 19; + +const int SQLITE_CONFIG_HEAP = 8; + +const int SQLITE_CONFIG_LOG = 16; + +const int SQLITE_CONFIG_LOOKASIDE = 13; + +const int SQLITE_CONFIG_MALLOC = 4; + +const int SQLITE_CONFIG_MEMDB_MAXSIZE = 29; + +const int SQLITE_CONFIG_MEMSTATUS = 9; + +const int SQLITE_CONFIG_MMAP_SIZE = 22; + +const int SQLITE_CONFIG_MULTITHREAD = 2; + +const int SQLITE_CONFIG_MUTEX = 10; + +const int SQLITE_CONFIG_PAGECACHE = 7; + +const int SQLITE_CONFIG_PCACHE = 14; + +const int SQLITE_CONFIG_PCACHE2 = 18; + +const int SQLITE_CONFIG_PCACHE_HDRSZ = 24; + +const int SQLITE_CONFIG_PMASZ = 25; + +const int SQLITE_CONFIG_SCRATCH = 6; + +const int SQLITE_CONFIG_SERIALIZED = 3; + +const int SQLITE_CONFIG_SINGLETHREAD = 1; + +const int SQLITE_CONFIG_SMALL_MALLOC = 27; + +const int SQLITE_CONFIG_SORTERREF_SIZE = 28; + +const int SQLITE_CONFIG_SQLLOG = 21; + +const int SQLITE_CONFIG_STMTJRNL_SPILL = 26; + +const int SQLITE_CONFIG_URI = 17; + +const int SQLITE_CONFIG_WIN32_HEAPSIZE = 23; + +const int SQLITE_CONSTRAINT = 19; + +const int SQLITE_CONSTRAINT_CHECK = 275; + +const int SQLITE_CONSTRAINT_COMMITHOOK = 531; + +const int SQLITE_CONSTRAINT_FOREIGNKEY = 787; + +const int SQLITE_CONSTRAINT_FUNCTION = 1043; + +const int SQLITE_CONSTRAINT_NOTNULL = 1299; + +const int SQLITE_CONSTRAINT_PINNED = 2835; + +const int SQLITE_CONSTRAINT_PRIMARYKEY = 1555; + +const int SQLITE_CONSTRAINT_ROWID = 2579; + +const int SQLITE_CONSTRAINT_TRIGGER = 1811; + +const int SQLITE_CONSTRAINT_UNIQUE = 2067; + +const int SQLITE_CONSTRAINT_VTAB = 2323; + +const int SQLITE_COPY = 0; + +const int SQLITE_CORRUPT = 11; + +const int SQLITE_CORRUPT_INDEX = 779; + +const int SQLITE_CORRUPT_SEQUENCE = 523; + +const int SQLITE_CORRUPT_VTAB = 267; + +const int SQLITE_CREATE_INDEX = 1; + +const int SQLITE_CREATE_TABLE = 2; + +const int SQLITE_CREATE_TEMP_INDEX = 3; + +const int SQLITE_CREATE_TEMP_TABLE = 4; + +const int SQLITE_CREATE_TEMP_TRIGGER = 5; + +const int SQLITE_CREATE_TEMP_VIEW = 6; + +const int SQLITE_CREATE_TRIGGER = 7; + +const int SQLITE_CREATE_VIEW = 8; + +const int SQLITE_CREATE_VTABLE = 29; + +const int SQLITE_DBCONFIG_DEFENSIVE = 1010; + +const int SQLITE_DBCONFIG_DQS_DDL = 1014; + +const int SQLITE_DBCONFIG_DQS_DML = 1013; + +const int SQLITE_DBCONFIG_ENABLE_FKEY = 1002; + +const int SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1004; + +const int SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION = 1005; + +const int SQLITE_DBCONFIG_ENABLE_QPSG = 1007; + +const int SQLITE_DBCONFIG_ENABLE_TRIGGER = 1003; + +const int SQLITE_DBCONFIG_ENABLE_VIEW = 1015; + +const int SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1012; + +const int SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1016; + +const int SQLITE_DBCONFIG_LOOKASIDE = 1001; + +const int SQLITE_DBCONFIG_MAINDBNAME = 1000; + +const int SQLITE_DBCONFIG_MAX = 1017; + +const int SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1006; + +const int SQLITE_DBCONFIG_RESET_DATABASE = 1009; + +const int SQLITE_DBCONFIG_TRIGGER_EQP = 1008; + +const int SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017; + +const int SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1011; + +const int SQLITE_DBSTATUS_CACHE_HIT = 7; + +const int SQLITE_DBSTATUS_CACHE_MISS = 8; + +const int SQLITE_DBSTATUS_CACHE_SPILL = 12; + +const int SQLITE_DBSTATUS_CACHE_USED = 1; + +const int SQLITE_DBSTATUS_CACHE_USED_SHARED = 11; + +const int SQLITE_DBSTATUS_CACHE_WRITE = 9; + +const int SQLITE_DBSTATUS_DEFERRED_FKS = 10; + +const int SQLITE_DBSTATUS_LOOKASIDE_HIT = 4; + +const int SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL = 6; + +const int SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE = 5; + +const int SQLITE_DBSTATUS_LOOKASIDE_USED = 0; + +const int SQLITE_DBSTATUS_MAX = 12; + +const int SQLITE_DBSTATUS_SCHEMA_USED = 2; + +const int SQLITE_DBSTATUS_STMT_USED = 3; + +const int SQLITE_DELETE = 9; + +const int SQLITE_DENY = 1; + +const int SQLITE_DESERIALIZE_FREEONCLOSE = 1; + +const int SQLITE_DESERIALIZE_READONLY = 4; + +const int SQLITE_DESERIALIZE_RESIZEABLE = 2; + +const int SQLITE_DETACH = 25; + +const int SQLITE_DETERMINISTIC = 2048; + +const int SQLITE_DIRECTONLY = 524288; + +const int SQLITE_DONE = 101; + +const int SQLITE_DROP_INDEX = 10; + +const int SQLITE_DROP_TABLE = 11; + +const int SQLITE_DROP_TEMP_INDEX = 12; + +const int SQLITE_DROP_TEMP_TABLE = 13; + +const int SQLITE_DROP_TEMP_TRIGGER = 14; + +const int SQLITE_DROP_TEMP_VIEW = 15; + +const int SQLITE_DROP_TRIGGER = 16; + +const int SQLITE_DROP_VIEW = 17; + +const int SQLITE_DROP_VTABLE = 30; + +const int SQLITE_EMPTY = 16; + +const int SQLITE_ERROR = 1; + +const int SQLITE_ERROR_MISSING_COLLSEQ = 257; + +const int SQLITE_ERROR_RETRY = 513; + +const int SQLITE_ERROR_SNAPSHOT = 769; + +const int SQLITE_FAIL = 3; + +const int SQLITE_FCNTL_BEGIN_ATOMIC_WRITE = 31; + +const int SQLITE_FCNTL_BUSYHANDLER = 15; + +const int SQLITE_FCNTL_CHUNK_SIZE = 6; + +const int SQLITE_FCNTL_CKPT_DONE = 37; + +const int SQLITE_FCNTL_CKPT_START = 39; + +const int SQLITE_FCNTL_COMMIT_ATOMIC_WRITE = 32; + +const int SQLITE_FCNTL_COMMIT_PHASETWO = 22; + +const int SQLITE_FCNTL_DATA_VERSION = 35; + +const int SQLITE_FCNTL_FILE_POINTER = 7; + +const int SQLITE_FCNTL_GET_LOCKPROXYFILE = 2; + +const int SQLITE_FCNTL_HAS_MOVED = 20; + +const int SQLITE_FCNTL_JOURNAL_POINTER = 28; + +const int SQLITE_FCNTL_LAST_ERRNO = 4; + +const int SQLITE_FCNTL_LOCKSTATE = 1; + +const int SQLITE_FCNTL_LOCK_TIMEOUT = 34; + +const int SQLITE_FCNTL_MMAP_SIZE = 18; + +const int SQLITE_FCNTL_OVERWRITE = 11; + +const int SQLITE_FCNTL_PDB = 30; + +const int SQLITE_FCNTL_PERSIST_WAL = 10; + +const int SQLITE_FCNTL_POWERSAFE_OVERWRITE = 13; + +const int SQLITE_FCNTL_PRAGMA = 14; + +const int SQLITE_FCNTL_RBU = 26; + +const int SQLITE_FCNTL_RESERVE_BYTES = 38; + +const int SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE = 33; + +const int SQLITE_FCNTL_SET_LOCKPROXYFILE = 3; + +const int SQLITE_FCNTL_SIZE_HINT = 5; + +const int SQLITE_FCNTL_SIZE_LIMIT = 36; + +const int SQLITE_FCNTL_SYNC = 21; + +const int SQLITE_FCNTL_SYNC_OMITTED = 8; + +const int SQLITE_FCNTL_TEMPFILENAME = 16; + +const int SQLITE_FCNTL_TRACE = 19; + +const int SQLITE_FCNTL_VFSNAME = 12; + +const int SQLITE_FCNTL_VFS_POINTER = 27; + +const int SQLITE_FCNTL_WAL_BLOCK = 24; + +const int SQLITE_FCNTL_WIN32_AV_RETRY = 9; + +const int SQLITE_FCNTL_WIN32_GET_HANDLE = 29; + +const int SQLITE_FCNTL_WIN32_SET_HANDLE = 23; + +const int SQLITE_FCNTL_ZIPVFS = 25; + +const int SQLITE_FLOAT = 2; + +const int SQLITE_FORMAT = 24; + +const int SQLITE_FULL = 13; + +const int SQLITE_FUNCTION = 31; + +const int SQLITE_GET_LOCKPROXYFILE = 2; + +const int SQLITE_IGNORE = 2; + +const int SQLITE_INDEX_CONSTRAINT_EQ = 2; + +const int SQLITE_INDEX_CONSTRAINT_FUNCTION = 150; + +const int SQLITE_INDEX_CONSTRAINT_GE = 32; + +const int SQLITE_INDEX_CONSTRAINT_GLOB = 66; + +const int SQLITE_INDEX_CONSTRAINT_GT = 4; + +const int SQLITE_INDEX_CONSTRAINT_IS = 72; + +const int SQLITE_INDEX_CONSTRAINT_ISNOT = 69; + +const int SQLITE_INDEX_CONSTRAINT_ISNOTNULL = 70; + +const int SQLITE_INDEX_CONSTRAINT_ISNULL = 71; + +const int SQLITE_INDEX_CONSTRAINT_LE = 8; + +const int SQLITE_INDEX_CONSTRAINT_LIKE = 65; + +const int SQLITE_INDEX_CONSTRAINT_LT = 16; + +const int SQLITE_INDEX_CONSTRAINT_MATCH = 64; + +const int SQLITE_INDEX_CONSTRAINT_NE = 68; + +const int SQLITE_INDEX_CONSTRAINT_REGEXP = 67; + +const int SQLITE_INDEX_SCAN_UNIQUE = 1; + +const int SQLITE_INNOCUOUS = 2097152; + +const int SQLITE_INSERT = 18; + +const int SQLITE_INTEGER = 1; + +const int SQLITE_INTERNAL = 2; + +const int SQLITE_INTERRUPT = 9; + +const int SQLITE_IOCAP_ATOMIC = 1; + +const int SQLITE_IOCAP_ATOMIC16K = 64; + +const int SQLITE_IOCAP_ATOMIC1K = 4; + +const int SQLITE_IOCAP_ATOMIC2K = 8; + +const int SQLITE_IOCAP_ATOMIC32K = 128; + +const int SQLITE_IOCAP_ATOMIC4K = 16; + +const int SQLITE_IOCAP_ATOMIC512 = 2; + +const int SQLITE_IOCAP_ATOMIC64K = 256; + +const int SQLITE_IOCAP_ATOMIC8K = 32; + +const int SQLITE_IOCAP_BATCH_ATOMIC = 16384; + +const int SQLITE_IOCAP_IMMUTABLE = 8192; + +const int SQLITE_IOCAP_POWERSAFE_OVERWRITE = 4096; + +const int SQLITE_IOCAP_SAFE_APPEND = 512; + +const int SQLITE_IOCAP_SEQUENTIAL = 1024; + +const int SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN = 2048; + +const int SQLITE_IOERR = 10; + +const int SQLITE_IOERR_ACCESS = 3338; + +const int SQLITE_IOERR_AUTH = 7178; + +const int SQLITE_IOERR_BEGIN_ATOMIC = 7434; + +const int SQLITE_IOERR_BLOCKED = 2826; + +const int SQLITE_IOERR_CHECKRESERVEDLOCK = 3594; + +const int SQLITE_IOERR_CLOSE = 4106; + +const int SQLITE_IOERR_COMMIT_ATOMIC = 7690; + +const int SQLITE_IOERR_CONVPATH = 6666; + +const int SQLITE_IOERR_DATA = 8202; + +const int SQLITE_IOERR_DELETE = 2570; + +const int SQLITE_IOERR_DELETE_NOENT = 5898; + +const int SQLITE_IOERR_DIR_CLOSE = 4362; + +const int SQLITE_IOERR_DIR_FSYNC = 1290; + +const int SQLITE_IOERR_FSTAT = 1802; + +const int SQLITE_IOERR_FSYNC = 1034; + +const int SQLITE_IOERR_GETTEMPPATH = 6410; + +const int SQLITE_IOERR_LOCK = 3850; + +const int SQLITE_IOERR_MMAP = 6154; + +const int SQLITE_IOERR_NOMEM = 3082; + +const int SQLITE_IOERR_RDLOCK = 2314; + +const int SQLITE_IOERR_READ = 266; + +const int SQLITE_IOERR_ROLLBACK_ATOMIC = 7946; + +const int SQLITE_IOERR_SEEK = 5642; + +const int SQLITE_IOERR_SHMLOCK = 5130; + +const int SQLITE_IOERR_SHMMAP = 5386; + +const int SQLITE_IOERR_SHMOPEN = 4618; + +const int SQLITE_IOERR_SHMSIZE = 4874; + +const int SQLITE_IOERR_SHORT_READ = 522; + +const int SQLITE_IOERR_TRUNCATE = 1546; + +const int SQLITE_IOERR_UNLOCK = 2058; + +const int SQLITE_IOERR_VNODE = 6922; + +const int SQLITE_IOERR_WRITE = 778; + +const int SQLITE_LAST_ERRNO = 4; + +const int SQLITE_LIMIT_ATTACHED = 7; + +const int SQLITE_LIMIT_COLUMN = 2; + +const int SQLITE_LIMIT_COMPOUND_SELECT = 4; + +const int SQLITE_LIMIT_EXPR_DEPTH = 3; + +const int SQLITE_LIMIT_FUNCTION_ARG = 6; + +const int SQLITE_LIMIT_LENGTH = 0; + +const int SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8; + +const int SQLITE_LIMIT_SQL_LENGTH = 1; + +const int SQLITE_LIMIT_TRIGGER_DEPTH = 10; + +const int SQLITE_LIMIT_VARIABLE_NUMBER = 9; + +const int SQLITE_LIMIT_VDBE_OP = 5; + +const int SQLITE_LIMIT_WORKER_THREADS = 11; + +const int SQLITE_LOCKED = 6; + +const int SQLITE_LOCKED_SHAREDCACHE = 262; + +const int SQLITE_LOCKED_VTAB = 518; + +const int SQLITE_LOCK_EXCLUSIVE = 4; + +const int SQLITE_LOCK_NONE = 0; + +const int SQLITE_LOCK_PENDING = 3; + +const int SQLITE_LOCK_RESERVED = 2; + +const int SQLITE_LOCK_SHARED = 1; + +const int SQLITE_MISMATCH = 20; + +const int SQLITE_MISUSE = 21; + +const int SQLITE_MUTEX_FAST = 0; + +const int SQLITE_MUTEX_RECURSIVE = 1; + +const int SQLITE_MUTEX_STATIC_APP1 = 8; + +const int SQLITE_MUTEX_STATIC_APP2 = 9; + +const int SQLITE_MUTEX_STATIC_APP3 = 10; + +const int SQLITE_MUTEX_STATIC_LRU = 6; + +const int SQLITE_MUTEX_STATIC_LRU2 = 7; + +const int SQLITE_MUTEX_STATIC_MASTER = 2; + +const int SQLITE_MUTEX_STATIC_MEM = 3; + +const int SQLITE_MUTEX_STATIC_MEM2 = 4; + +const int SQLITE_MUTEX_STATIC_OPEN = 4; + +const int SQLITE_MUTEX_STATIC_PMEM = 7; + +const int SQLITE_MUTEX_STATIC_PRNG = 5; + +const int SQLITE_MUTEX_STATIC_VFS1 = 11; + +const int SQLITE_MUTEX_STATIC_VFS2 = 12; + +const int SQLITE_MUTEX_STATIC_VFS3 = 13; + +const int SQLITE_NOLFS = 22; + +const int SQLITE_NOMEM = 7; + +const int SQLITE_NOTADB = 26; + +const int SQLITE_NOTFOUND = 12; + +const int SQLITE_NOTICE = 27; + +const int SQLITE_NOTICE_RECOVER_ROLLBACK = 539; + +const int SQLITE_NOTICE_RECOVER_WAL = 283; + +const int SQLITE_NULL = 5; + +const int SQLITE_OK = 0; + +const int SQLITE_OK_LOAD_PERMANENTLY = 256; + +const int SQLITE_OK_SYMLINK = 512; + +const int SQLITE_OPEN_AUTOPROXY = 32; + +const int SQLITE_OPEN_CREATE = 4; + +const int SQLITE_OPEN_DELETEONCLOSE = 8; + +const int SQLITE_OPEN_EXCLUSIVE = 16; + +const int SQLITE_OPEN_FULLMUTEX = 65536; + +const int SQLITE_OPEN_MAIN_DB = 256; + +const int SQLITE_OPEN_MAIN_JOURNAL = 2048; + +const int SQLITE_OPEN_MASTER_JOURNAL = 16384; + +const int SQLITE_OPEN_MEMORY = 128; + +const int SQLITE_OPEN_NOFOLLOW = 16777216; + +const int SQLITE_OPEN_NOMUTEX = 32768; + +const int SQLITE_OPEN_PRIVATECACHE = 262144; + +const int SQLITE_OPEN_READONLY = 1; + +const int SQLITE_OPEN_READWRITE = 2; + +const int SQLITE_OPEN_SHAREDCACHE = 131072; + +const int SQLITE_OPEN_SUBJOURNAL = 8192; + +const int SQLITE_OPEN_TEMP_DB = 512; + +const int SQLITE_OPEN_TEMP_JOURNAL = 4096; + +const int SQLITE_OPEN_TRANSIENT_DB = 1024; + +const int SQLITE_OPEN_URI = 64; + +const int SQLITE_OPEN_WAL = 524288; + +const int SQLITE_PERM = 3; + +const int SQLITE_PRAGMA = 19; + +const int SQLITE_PREPARE_NORMALIZE = 2; + +const int SQLITE_PREPARE_NO_VTAB = 4; + +const int SQLITE_PREPARE_PERSISTENT = 1; + +const int SQLITE_PROTOCOL = 15; + +const int SQLITE_RANGE = 25; + +const int SQLITE_READ = 20; + +const int SQLITE_READONLY = 8; + +const int SQLITE_READONLY_CANTINIT = 1288; + +const int SQLITE_READONLY_CANTLOCK = 520; + +const int SQLITE_READONLY_DBMOVED = 1032; + +const int SQLITE_READONLY_DIRECTORY = 1544; + +const int SQLITE_READONLY_RECOVERY = 264; + +const int SQLITE_READONLY_ROLLBACK = 776; + +const int SQLITE_RECURSIVE = 33; + +const int SQLITE_REINDEX = 27; + +const int SQLITE_REPLACE = 5; + +const int SQLITE_ROLLBACK = 1; + +const int SQLITE_ROW = 100; + +const int SQLITE_SAVEPOINT = 32; + +const int SQLITE_SCANSTAT_EST = 2; + +const int SQLITE_SCANSTAT_EXPLAIN = 4; + +const int SQLITE_SCANSTAT_NAME = 3; + +const int SQLITE_SCANSTAT_NLOOP = 0; + +const int SQLITE_SCANSTAT_NVISIT = 1; + +const int SQLITE_SCANSTAT_SELECTID = 5; + +const int SQLITE_SCHEMA = 17; + +const int SQLITE_SELECT = 21; + +const int SQLITE_SERIALIZE_NOCOPY = 1; + +const int SQLITE_SET_LOCKPROXYFILE = 3; + +const int SQLITE_SHM_EXCLUSIVE = 8; + +const int SQLITE_SHM_LOCK = 2; + +const int SQLITE_SHM_NLOCK = 8; + +const int SQLITE_SHM_SHARED = 4; + +const int SQLITE_SHM_UNLOCK = 1; + +const String SQLITE_SOURCE_ID = + '2020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd'; + +const int SQLITE_STATUS_MALLOC_COUNT = 9; + +const int SQLITE_STATUS_MALLOC_SIZE = 5; + +const int SQLITE_STATUS_MEMORY_USED = 0; + +const int SQLITE_STATUS_PAGECACHE_OVERFLOW = 2; + +const int SQLITE_STATUS_PAGECACHE_SIZE = 7; + +const int SQLITE_STATUS_PAGECACHE_USED = 1; + +const int SQLITE_STATUS_PARSER_STACK = 6; + +const int SQLITE_STATUS_SCRATCH_OVERFLOW = 4; + +const int SQLITE_STATUS_SCRATCH_SIZE = 8; + +const int SQLITE_STATUS_SCRATCH_USED = 3; + +const int SQLITE_STMTSTATUS_AUTOINDEX = 3; + +const int SQLITE_STMTSTATUS_FULLSCAN_STEP = 1; + +const int SQLITE_STMTSTATUS_MEMUSED = 99; + +const int SQLITE_STMTSTATUS_REPREPARE = 5; + +const int SQLITE_STMTSTATUS_RUN = 6; + +const int SQLITE_STMTSTATUS_SORT = 2; + +const int SQLITE_STMTSTATUS_VM_STEP = 4; + +const int SQLITE_SUBTYPE = 1048576; + +const int SQLITE_SYNC_DATAONLY = 16; + +const int SQLITE_SYNC_FULL = 3; + +const int SQLITE_SYNC_NORMAL = 2; + +const int SQLITE_TESTCTRL_ALWAYS = 13; + +const int SQLITE_TESTCTRL_ASSERT = 12; + +const int SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = 10; + +const int SQLITE_TESTCTRL_BITVEC_TEST = 8; + +const int SQLITE_TESTCTRL_BYTEORDER = 22; + +const int SQLITE_TESTCTRL_EXPLAIN_STMT = 19; + +const int SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS = 29; + +const int SQLITE_TESTCTRL_FAULT_INSTALL = 9; + +const int SQLITE_TESTCTRL_FIRST = 5; + +const int SQLITE_TESTCTRL_IMPOSTER = 25; + +const int SQLITE_TESTCTRL_INTERNAL_FUNCTIONS = 17; + +const int SQLITE_TESTCTRL_ISINIT = 23; + +const int SQLITE_TESTCTRL_ISKEYWORD = 16; + +const int SQLITE_TESTCTRL_LAST = 29; + +const int SQLITE_TESTCTRL_LOCALTIME_FAULT = 18; + +const int SQLITE_TESTCTRL_NEVER_CORRUPT = 20; + +const int SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD = 19; + +const int SQLITE_TESTCTRL_OPTIMIZATIONS = 15; + +const int SQLITE_TESTCTRL_PARSER_COVERAGE = 26; + +const int SQLITE_TESTCTRL_PENDING_BYTE = 11; + +const int SQLITE_TESTCTRL_PRNG_RESET = 7; + +const int SQLITE_TESTCTRL_PRNG_RESTORE = 6; + +const int SQLITE_TESTCTRL_PRNG_SAVE = 5; + +const int SQLITE_TESTCTRL_PRNG_SEED = 28; + +const int SQLITE_TESTCTRL_RESERVE = 14; + +const int SQLITE_TESTCTRL_RESULT_INTREAL = 27; + +const int SQLITE_TESTCTRL_SCRATCHMALLOC = 17; + +const int SQLITE_TESTCTRL_SORTER_MMAP = 24; + +const int SQLITE_TESTCTRL_VDBE_COVERAGE = 21; + +const int SQLITE_TEXT = 3; + +const int SQLITE_TOOBIG = 18; + +const int SQLITE_TRACE_CLOSE = 8; + +const int SQLITE_TRACE_PROFILE = 2; + +const int SQLITE_TRACE_ROW = 4; + +const int SQLITE_TRACE_STMT = 1; + +const int SQLITE_TRANSACTION = 22; + +const int SQLITE_UPDATE = 23; + +const int SQLITE_UTF16 = 4; + +const int SQLITE_UTF16BE = 3; + +const int SQLITE_UTF16LE = 2; + +const int SQLITE_UTF16_ALIGNED = 8; + +const int SQLITE_UTF8 = 1; + +const String SQLITE_VERSION = '3.32.3'; + +const int SQLITE_VERSION_NUMBER = 3032003; + +const int SQLITE_VTAB_CONSTRAINT_SUPPORT = 1; + +const int SQLITE_VTAB_DIRECTONLY = 3; + +const int SQLITE_VTAB_INNOCUOUS = 2; + +const int SQLITE_WARNING = 28; + +const int SQLITE_WARNING_AUTOINDEX = 284; + +const int SQLITE_WIN32_DATA_DIRECTORY_TYPE = 1; + +const int SQLITE_WIN32_TEMP_DIRECTORY_TYPE = 2; + +final class fts5_api extends ffi.Struct { + /// Currently always set to 2 + @ffi.Int() + external int iVersion; + + /// Create a new tokenizer + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pApi, + ffi.Pointer zName, + ffi.Pointer pContext, + ffi.Pointer pTokenizer, + ffi.Pointer< + ffi.NativeFunction)> + > + xDestroy, + ) + > + > + xCreateTokenizer; + + /// Find an existing tokenizer + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pApi, + ffi.Pointer zName, + ffi.Pointer> ppContext, + ffi.Pointer pTokenizer, + ) + > + > + xFindTokenizer; + + /// Create a new auxiliary function + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pApi, + ffi.Pointer zName, + ffi.Pointer pContext, + fts5_extension_function xFunction, + ffi.Pointer< + ffi.NativeFunction)> + > + xDestroy, + ) + > + > + xCreateFunction; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iVersion, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pApi, + ffi.Pointer zName, + ffi.Pointer pContext, + ffi.Pointer pTokenizer, + ffi.Pointer< + ffi.NativeFunction)> + > + xDestroy, + ) + > + > + xCreateTokenizer, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pApi, + ffi.Pointer zName, + ffi.Pointer> ppContext, + ffi.Pointer pTokenizer, + ) + > + > + xFindTokenizer, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pApi, + ffi.Pointer zName, + ffi.Pointer pContext, + fts5_extension_function xFunction, + ffi.Pointer< + ffi.NativeFunction)> + > + xDestroy, + ) + > + > + xCreateFunction, + }) => $allocator() + ..ref.iVersion = iVersion + ..ref.xCreateTokenizer = xCreateTokenizer + ..ref.xFindTokenizer = xFindTokenizer + ..ref.xCreateFunction = xCreateFunction; +} + +typedef fts5_extension_function = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer pApi, + ffi.Pointer pFts, + ffi.Pointer pCtx, + ffi.Int nVal, + ffi.Pointer> apVal, + ) + > + >; + +final class fts5_tokenizer extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer>, + ) + > + > + xCreate; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xDelete; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Int, + ) + > + >, + ) + > + > + xTokenize; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer>, + ) + > + > + xCreate, + required ffi.Pointer< + ffi.NativeFunction)> + > + xDelete, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Int, + ffi.Int, + ) + > + >, + ) + > + > + xTokenize, + }) => $allocator() + ..ref.xCreate = xCreate + ..ref.xDelete = xDelete + ..ref.xTokenize = xTokenize; +} + +final class sqlite3 extends ffi.Opaque {} + +final class sqlite3_api_routines extends ffi.Opaque {} + +final class sqlite3_backup extends ffi.Opaque {} + +final class sqlite3_blob extends ffi.Opaque {} + +/// The type for a callback function. +/// This is legacy and deprecated. It is included for historical +/// compatibility and is not documented. +typedef sqlite3_callback = + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >; + +final class sqlite3_context extends ffi.Opaque {} + +/// CAPI3REF: Constants Defining Special Destructor Behavior +/// +/// These are special values for the destructor that is passed in as the +/// final argument to routines like [sqlite3_result_blob()]. ^If the destructor +/// argument is SQLITE_STATIC, it means that the content pointer is constant +/// and will never change. It does not need to be destroyed. ^The +/// SQLITE_TRANSIENT value means that the content will likely change in +/// the near future and that SQLite should make its own private copy of +/// the content before returning. +/// +/// The typedef is necessary to work around problems in certain +/// C++ compilers. +typedef sqlite3_destructor_type = + ffi.Pointer)>>; + +final class sqlite3_file extends ffi.Struct { + /// Methods for an open file + external ffi.Pointer pMethods; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pMethods, + }) => $allocator()..ref.pMethods = pMethods; +} + +final class sqlite3_index_constraint extends ffi.Struct { + /// Column constrained. -1 for ROWID + @ffi.Int() + external int iColumn; + + /// Constraint operator + @ffi.UnsignedChar() + external int op; + + /// True if this constraint is usable + @ffi.UnsignedChar() + external int usable; + + /// Used internally - xBestIndex should ignore + @ffi.Int() + external int iTermOffset; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iColumn, + required int op, + required int usable, + required int iTermOffset, + }) => $allocator() + ..ref.iColumn = iColumn + ..ref.op = op + ..ref.usable = usable + ..ref.iTermOffset = iTermOffset; +} + +/// Outputs +final class sqlite3_index_constraint_usage extends ffi.Struct { + /// if >0, constraint is part of argv to xFilter + @ffi.Int() + external int argvIndex; + + /// Do not code a test for this constraint + @ffi.UnsignedChar() + external int omit; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int argvIndex, + required int omit, + }) => $allocator() + ..ref.argvIndex = argvIndex + ..ref.omit = omit; +} + +/// CAPI3REF: Virtual Table Indexing Information +/// KEYWORDS: sqlite3_index_info +/// +/// The sqlite3_index_info structure and its substructures is used as part +/// of the [virtual table] interface to +/// pass information into and receive the reply from the [xBestIndex] +/// method of a [virtual table module]. The fields under **Inputs** are the +/// inputs to xBestIndex and are read-only. xBestIndex inserts its +/// results into the **Outputs** fields. +/// +/// ^(The aConstraint[] array records WHERE clause constraints of the form: +/// +///
column OP expr
+/// +/// where OP is =, <, <=, >, or >=.)^ ^(The particular operator is +/// stored in aConstraint[].op using one of the +/// [SQLITE_INDEX_CONSTRAINT_EQ | SQLITE_INDEX_CONSTRAINT_ values].)^ +/// ^(The index of the column is stored in +/// aConstraint[].iColumn.)^ ^(aConstraint[].usable is TRUE if the +/// expr on the right-hand side can be evaluated (and thus the constraint +/// is usable) and false if it cannot.)^ +/// +/// ^The optimizer automatically inverts terms of the form "expr OP column" +/// and makes other simplifications to the WHERE clause in an attempt to +/// get as many WHERE clause terms into the form shown above as possible. +/// ^The aConstraint[] array only reports WHERE clause terms that are +/// relevant to the particular virtual table being queried. +/// +/// ^Information about the ORDER BY clause is stored in aOrderBy[]. +/// ^Each term of aOrderBy records a column of the ORDER BY clause. +/// +/// The colUsed field indicates which columns of the virtual table may be +/// required by the current scan. Virtual table columns are numbered from +/// zero in the order in which they appear within the CREATE TABLE statement +/// passed to sqlite3_declare_vtab(). For the first 63 columns (columns 0-62), +/// the corresponding bit is set within the colUsed mask if the column may be +/// required by SQLite. If the table has at least 64 columns and any column +/// to the right of the first 63 is required, then bit 63 of colUsed is also +/// set. In other words, column iCol may be required if the expression +/// (colUsed & ((sqlite3_uint64)1 << (iCol>=63 ? 63 : iCol))) evaluates to +/// non-zero. +/// +/// The [xBestIndex] method must fill aConstraintUsage[] with information +/// about what parameters to pass to xFilter. ^If argvIndex>0 then +/// the right-hand side of the corresponding aConstraint[] is evaluated +/// and becomes the argvIndex-th entry in argv. ^(If aConstraintUsage[].omit +/// is true, then the constraint is assumed to be fully handled by the +/// virtual table and might not be checked again by the byte code.)^ ^(The +/// aConstraintUsage[].omit flag is an optimization hint. When the omit flag +/// is left in its default setting of false, the constraint will always be +/// checked separately in byte code. If the omit flag is change to true, then +/// the constraint may or may not be checked in byte code. In other words, +/// when the omit flag is true there is no guarantee that the constraint will +/// not be checked again using byte code.)^ +/// +/// ^The idxNum and idxPtr values are recorded and passed into the +/// [xFilter] method. +/// ^[sqlite3_free()] is used to free idxPtr if and only if +/// needToFreeIdxPtr is true. +/// +/// ^The orderByConsumed means that output from [xFilter]/[xNext] will occur in +/// the correct order to satisfy the ORDER BY clause so that no separate +/// sorting step is required. +/// +/// ^The estimatedCost value is an estimate of the cost of a particular +/// strategy. A cost of N indicates that the cost of the strategy is similar +/// to a linear scan of an SQLite table with N rows. A cost of log(N) +/// indicates that the expense of the operation is similar to that of a +/// binary search on a unique indexed field of an SQLite table with N rows. +/// +/// ^The estimatedRows value is an estimate of the number of rows that +/// will be returned by the strategy. +/// +/// The xBestIndex method may optionally populate the idxFlags field with a +/// mask of SQLITE_INDEX_SCAN_* flags. Currently there is only one such flag - +/// SQLITE_INDEX_SCAN_UNIQUE. If the xBestIndex method sets this flag, SQLite +/// assumes that the strategy may visit at most one row. +/// +/// Additionally, if xBestIndex sets the SQLITE_INDEX_SCAN_UNIQUE flag, then +/// SQLite also assumes that if a call to the xUpdate() method is made as +/// part of the same statement to delete or update a virtual table row and the +/// implementation returns SQLITE_CONSTRAINT, then there is no need to rollback +/// any database changes. In other words, if the xUpdate() returns +/// SQLITE_CONSTRAINT, the database contents must be exactly as they were +/// before xUpdate was called. By contrast, if SQLITE_INDEX_SCAN_UNIQUE is not +/// set and xUpdate returns SQLITE_CONSTRAINT, any database changes made by +/// the xUpdate method are automatically rolled back by SQLite. +/// +/// IMPORTANT: The estimatedRows field was added to the sqlite3_index_info +/// structure for SQLite [version 3.8.2] ([dateof:3.8.2]). +/// If a virtual table extension is +/// used with an SQLite version earlier than 3.8.2, the results of attempting +/// to read or write the estimatedRows field are undefined (but are likely +/// to include crashing the application). The estimatedRows field should +/// therefore only be used if [sqlite3_libversion_number()] returns a +/// value greater than or equal to 3008002. Similarly, the idxFlags field +/// was added for [version 3.9.0] ([dateof:3.9.0]). +/// It may therefore only be used if +/// sqlite3_libversion_number() returns a value greater than or equal to +/// 3009000. +final class sqlite3_index_info extends ffi.Struct { + /// Number of entries in aConstraint + @ffi.Int() + external int nConstraint; + + /// Table of WHERE clause constraints + external ffi.Pointer aConstraint; + + /// Number of terms in the ORDER BY clause + @ffi.Int() + external int nOrderBy; + + /// The ORDER BY clause + external ffi.Pointer aOrderBy; + + external ffi.Pointer aConstraintUsage; + + /// Number used to identify the index + @ffi.Int() + external int idxNum; + + /// String, possibly obtained from sqlite3_malloc + external ffi.Pointer idxStr; + + /// Free idxStr using sqlite3_free() if true + @ffi.Int() + external int needToFreeIdxStr; + + /// True if output is already ordered + @ffi.Int() + external int orderByConsumed; + + /// Estimated cost of using this index + @ffi.Double() + external double estimatedCost; + + /// Estimated number of rows returned + @sqlite3_int64() + external int estimatedRows; + + /// Mask of SQLITE_INDEX_SCAN_* flags + @ffi.Int() + external int idxFlags; + + /// Input: Mask of columns used by statement + @sqlite3_uint64() + external int colUsed; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int nConstraint, + required ffi.Pointer aConstraint, + required int nOrderBy, + required ffi.Pointer aOrderBy, + required ffi.Pointer aConstraintUsage, + required int idxNum, + required ffi.Pointer idxStr, + required int needToFreeIdxStr, + required int orderByConsumed, + required double estimatedCost, + required int estimatedRows, + required int idxFlags, + required int colUsed, + }) => $allocator() + ..ref.nConstraint = nConstraint + ..ref.aConstraint = aConstraint + ..ref.nOrderBy = nOrderBy + ..ref.aOrderBy = aOrderBy + ..ref.aConstraintUsage = aConstraintUsage + ..ref.idxNum = idxNum + ..ref.idxStr = idxStr + ..ref.needToFreeIdxStr = needToFreeIdxStr + ..ref.orderByConsumed = orderByConsumed + ..ref.estimatedCost = estimatedCost + ..ref.estimatedRows = estimatedRows + ..ref.idxFlags = idxFlags + ..ref.colUsed = colUsed; +} + +final class sqlite3_index_orderby extends ffi.Struct { + /// Column number + @ffi.Int() + external int iColumn; + + /// True for DESC. False for ASC. + @ffi.UnsignedChar() + external int desc; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iColumn, + required int desc, + }) => $allocator() + ..ref.iColumn = iColumn + ..ref.desc = desc; +} + +typedef sqlite3_int64 = sqlite_int64; + +final class sqlite3_io_methods extends ffi.Opaque {} + +final class sqlite3_mem_methods extends ffi.Struct { + /// Memory allocation function + external ffi.Pointer< + ffi.NativeFunction Function(ffi.Int)> + > + xMalloc; + + /// Free a prior allocation + external ffi.Pointer< + ffi.NativeFunction)> + > + xFree; + + /// Resize an allocation + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + > + xRealloc; + + /// Return the size of an allocation + external ffi.Pointer< + ffi.NativeFunction)> + > + xSize; + + /// Round up request size to allocation size + external ffi.Pointer> xRoundup; + + /// Initialize the memory allocator + external ffi.Pointer< + ffi.NativeFunction)> + > + xInit; + + /// Deinitialize the memory allocator + external ffi.Pointer< + ffi.NativeFunction)> + > + xShutdown; + + /// Argument to xInit() and xShutdown() + external ffi.Pointer pAppData; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction Function(ffi.Int)> + > + xMalloc, + required ffi.Pointer< + ffi.NativeFunction)> + > + xFree, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.Int) + > + > + xRealloc, + required ffi.Pointer< + ffi.NativeFunction)> + > + xSize, + required ffi.Pointer> + xRoundup, + required ffi.Pointer< + ffi.NativeFunction)> + > + xInit, + required ffi.Pointer< + ffi.NativeFunction)> + > + xShutdown, + required ffi.Pointer pAppData, + }) => $allocator() + ..ref.xMalloc = xMalloc + ..ref.xFree = xFree + ..ref.xRealloc = xRealloc + ..ref.xSize = xSize + ..ref.xRoundup = xRoundup + ..ref.xInit = xInit + ..ref.xShutdown = xShutdown + ..ref.pAppData = pAppData; +} + +/// CAPI3REF: Virtual Table Object +/// KEYWORDS: sqlite3_module {virtual table module} +/// +/// This structure, sometimes called a "virtual table module", +/// defines the implementation of a [virtual table]. +/// This structure consists mostly of methods for the module. +/// +/// ^A virtual table module is created by filling in a persistent +/// instance of this structure and passing a pointer to that instance +/// to [sqlite3_create_module()] or [sqlite3_create_module_v2()]. +/// ^The registration remains valid until it is replaced by a different +/// module or until the [database connection] closes. The content +/// of this structure must not change while it is registered with +/// any database connection. +final class sqlite3_module extends ffi.Struct { + @ffi.Int() + external int iVersion; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ) + > + > + xCreate; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ) + > + > + xConnect; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + xBestIndex; + + external ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xDisconnect; + + external ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xDestroy; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pVTab, + ffi.Pointer> ppCursor, + ) + > + > + xOpen; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xClose; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + xFilter; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xNext; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xEof; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + > + xColumn; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + xRowid; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ) + > + > + xUpdate; + + external ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xBegin; + + external ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xSync; + + external ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xCommit; + + external ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xRollback; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pVtab, + ffi.Int nArg, + ffi.Pointer zName, + ffi.Pointer< + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + > + pxFunc, + ffi.Pointer> ppArg, + ) + > + > + xFindFunction; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pVtab, + ffi.Pointer zNew, + ) + > + > + xRename; + + /// The methods above are in version 1 of the sqlite_module object. Those + /// below are for version 2 and greater. + external ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xSavepoint; + + external ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xRelease; + + external ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xRollbackTo; + + /// The methods above are in versions 1 and 2 of the sqlite_module object. + /// Those below are for version 3 and greater. + external ffi.Pointer< + ffi.NativeFunction)> + > + xShadowName; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iVersion, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ) + > + > + xCreate, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer>, + ) + > + > + xConnect, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + xBestIndex, + required ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xDisconnect, + required ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xDestroy, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pVTab, + ffi.Pointer> ppCursor, + ) + > + > + xOpen, + required ffi.Pointer< + ffi.NativeFunction)> + > + xClose, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + xFilter, + required ffi.Pointer< + ffi.NativeFunction)> + > + xNext, + required ffi.Pointer< + ffi.NativeFunction)> + > + xEof, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + > + xColumn, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + xRowid, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer, + ) + > + > + xUpdate, + required ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xBegin, + required ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xSync, + required ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xCommit, + required ffi.Pointer< + ffi.NativeFunction pVTab)> + > + xRollback, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pVtab, + ffi.Int nArg, + ffi.Pointer zName, + ffi.Pointer< + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ) + > + > + > + pxFunc, + ffi.Pointer> ppArg, + ) + > + > + xFindFunction, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer pVtab, + ffi.Pointer zNew, + ) + > + > + xRename, + required ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xSavepoint, + required ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xRelease, + required ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xRollbackTo, + required ffi.Pointer< + ffi.NativeFunction)> + > + xShadowName, + }) => $allocator() + ..ref.iVersion = iVersion + ..ref.xCreate = xCreate + ..ref.xConnect = xConnect + ..ref.xBestIndex = xBestIndex + ..ref.xDisconnect = xDisconnect + ..ref.xDestroy = xDestroy + ..ref.xOpen = xOpen + ..ref.xClose = xClose + ..ref.xFilter = xFilter + ..ref.xNext = xNext + ..ref.xEof = xEof + ..ref.xColumn = xColumn + ..ref.xRowid = xRowid + ..ref.xUpdate = xUpdate + ..ref.xBegin = xBegin + ..ref.xSync = xSync + ..ref.xCommit = xCommit + ..ref.xRollback = xRollback + ..ref.xFindFunction = xFindFunction + ..ref.xRename = xRename + ..ref.xSavepoint = xSavepoint + ..ref.xRelease = xRelease + ..ref.xRollbackTo = xRollbackTo + ..ref.xShadowName = xShadowName; +} + +final class sqlite3_mutex extends ffi.Opaque {} + +final class sqlite3_mutex_methods extends ffi.Struct { + external ffi.Pointer> xMutexInit; + + external ffi.Pointer> xMutexEnd; + + external ffi.Pointer< + ffi.NativeFunction Function(ffi.Int)> + > + xMutexAlloc; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xMutexFree; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xMutexEnter; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xMutexTry; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xMutexLeave; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xMutexHeld; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xMutexNotheld; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer> xMutexInit, + required ffi.Pointer> xMutexEnd, + required ffi.Pointer< + ffi.NativeFunction Function(ffi.Int)> + > + xMutexAlloc, + required ffi.Pointer< + ffi.NativeFunction)> + > + xMutexFree, + required ffi.Pointer< + ffi.NativeFunction)> + > + xMutexEnter, + required ffi.Pointer< + ffi.NativeFunction)> + > + xMutexTry, + required ffi.Pointer< + ffi.NativeFunction)> + > + xMutexLeave, + required ffi.Pointer< + ffi.NativeFunction)> + > + xMutexHeld, + required ffi.Pointer< + ffi.NativeFunction)> + > + xMutexNotheld, + }) => $allocator() + ..ref.xMutexInit = xMutexInit + ..ref.xMutexEnd = xMutexEnd + ..ref.xMutexAlloc = xMutexAlloc + ..ref.xMutexFree = xMutexFree + ..ref.xMutexEnter = xMutexEnter + ..ref.xMutexTry = xMutexTry + ..ref.xMutexLeave = xMutexLeave + ..ref.xMutexHeld = xMutexHeld + ..ref.xMutexNotheld = xMutexNotheld; +} + +final class sqlite3_pcache extends ffi.Opaque {} + +final class sqlite3_pcache_methods extends ffi.Struct { + external ffi.Pointer pArg; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xInit; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xShutdown; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int szPage, ffi.Int bPurgeable) + > + > + xCreate; + + external ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xCachesize; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xPagecount; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ) + > + > + xFetch; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + > + xUnpin; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + > + xRekey; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) + > + > + xTruncate; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xDestroy; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pArg, + required ffi.Pointer< + ffi.NativeFunction)> + > + xInit, + required ffi.Pointer< + ffi.NativeFunction)> + > + xShutdown, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int szPage, ffi.Int bPurgeable) + > + > + xCreate, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int) + > + > + xCachesize, + required ffi.Pointer< + ffi.NativeFunction)> + > + xPagecount, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ) + > + > + xFetch, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + > + xUnpin, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + > + xRekey, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) + > + > + xTruncate, + required ffi.Pointer< + ffi.NativeFunction)> + > + xDestroy, + }) => $allocator() + ..ref.pArg = pArg + ..ref.xInit = xInit + ..ref.xShutdown = xShutdown + ..ref.xCreate = xCreate + ..ref.xCachesize = xCachesize + ..ref.xPagecount = xPagecount + ..ref.xFetch = xFetch + ..ref.xUnpin = xUnpin + ..ref.xRekey = xRekey + ..ref.xTruncate = xTruncate + ..ref.xDestroy = xDestroy; +} + +final class sqlite3_pcache_methods2 extends ffi.Struct { + @ffi.Int() + external int iVersion; + + external ffi.Pointer pArg; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xInit; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xShutdown; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int szPage, + ffi.Int szExtra, + ffi.Int bPurgeable, + ) + > + > + xCreate; + + external ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xCachesize; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xPagecount; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ) + > + > + xFetch; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + > + xUnpin; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + > + xRekey; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) + > + > + xTruncate; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xDestroy; + + external ffi.Pointer< + ffi.NativeFunction)> + > + xShrink; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iVersion, + required ffi.Pointer pArg, + required ffi.Pointer< + ffi.NativeFunction)> + > + xInit, + required ffi.Pointer< + ffi.NativeFunction)> + > + xShutdown, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int szPage, + ffi.Int szExtra, + ffi.Int bPurgeable, + ) + > + > + xCreate, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Int) + > + > + xCachesize, + required ffi.Pointer< + ffi.NativeFunction)> + > + xPagecount, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.Int, + ) + > + > + xFetch, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + > + xUnpin, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + > + xRekey, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) + > + > + xTruncate, + required ffi.Pointer< + ffi.NativeFunction)> + > + xDestroy, + required ffi.Pointer< + ffi.NativeFunction)> + > + xShrink, + }) => $allocator() + ..ref.iVersion = iVersion + ..ref.pArg = pArg + ..ref.xInit = xInit + ..ref.xShutdown = xShutdown + ..ref.xCreate = xCreate + ..ref.xCachesize = xCachesize + ..ref.xPagecount = xPagecount + ..ref.xFetch = xFetch + ..ref.xUnpin = xUnpin + ..ref.xRekey = xRekey + ..ref.xTruncate = xTruncate + ..ref.xDestroy = xDestroy + ..ref.xShrink = xShrink; +} + +final class sqlite3_pcache_page extends ffi.Struct { + /// The content of the page + external ffi.Pointer pBuf; + + /// Extra information associated with the page + external ffi.Pointer pExtra; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pBuf, + required ffi.Pointer pExtra, + }) => $allocator() + ..ref.pBuf = pBuf + ..ref.pExtra = pExtra; +} + +typedef sqlite3_rtree_dbl = ffi.Double; +typedef Dartsqlite3_rtree_dbl = double; + +/// A pointer to a structure of the following type is passed as the first +/// argument to callbacks registered using rtree_geometry_callback(). +final class sqlite3_rtree_geometry extends ffi.Struct { + /// Copy of pContext passed to s_r_g_c() + external ffi.Pointer pContext; + + /// Size of array aParam[] + @ffi.Int() + external int nParam; + + /// Parameters passed to SQL geom function + external ffi.Pointer aParam; + + /// Callback implementation user data + external ffi.Pointer pUser; + + /// Called by SQLite to clean up pUser + external ffi.Pointer< + ffi.NativeFunction)> + > + xDelUser; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pContext, + required int nParam, + required ffi.Pointer aParam, + required ffi.Pointer pUser, + required ffi.Pointer< + ffi.NativeFunction)> + > + xDelUser, + }) => $allocator() + ..ref.pContext = pContext + ..ref.nParam = nParam + ..ref.aParam = aParam + ..ref.pUser = pUser + ..ref.xDelUser = xDelUser; +} + +/// A pointer to a structure of the following type is passed as the +/// argument to scored geometry callback registered using +/// sqlite3_rtree_query_callback(). +/// +/// Note that the first 5 fields of this structure are identical to +/// sqlite3_rtree_geometry. This structure is a subclass of +/// sqlite3_rtree_geometry. +final class sqlite3_rtree_query_info extends ffi.Struct { + /// pContext from when function registered + external ffi.Pointer pContext; + + /// Number of function parameters + @ffi.Int() + external int nParam; + + /// value of function parameters + external ffi.Pointer aParam; + + /// callback can use this, if desired + external ffi.Pointer pUser; + + /// function to free pUser + external ffi.Pointer< + ffi.NativeFunction)> + > + xDelUser; + + /// Coordinates of node or entry to check + external ffi.Pointer aCoord; + + /// Number of pending entries in the queue + external ffi.Pointer anQueue; + + /// Number of coordinates + @ffi.Int() + external int nCoord; + + /// Level of current node or entry + @ffi.Int() + external int iLevel; + + /// The largest iLevel value in the tree + @ffi.Int() + external int mxLevel; + + /// Rowid for current entry + @sqlite3_int64() + external int iRowid; + + /// Score of parent node + @sqlite3_rtree_dbl() + external double rParentScore; + + /// Visibility of parent node + @ffi.Int() + external int eParentWithin; + + /// OUT: Visibility + @ffi.Int() + external int eWithin; + + /// OUT: Write the score here + @sqlite3_rtree_dbl() + external double rScore; + + /// Original SQL values of parameters + external ffi.Pointer> apSqlParam; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pContext, + required int nParam, + required ffi.Pointer aParam, + required ffi.Pointer pUser, + required ffi.Pointer< + ffi.NativeFunction)> + > + xDelUser, + required ffi.Pointer aCoord, + required ffi.Pointer anQueue, + required int nCoord, + required int iLevel, + required int mxLevel, + required int iRowid, + required double rParentScore, + required int eParentWithin, + required int eWithin, + required double rScore, + required ffi.Pointer> apSqlParam, + }) => $allocator() + ..ref.pContext = pContext + ..ref.nParam = nParam + ..ref.aParam = aParam + ..ref.pUser = pUser + ..ref.xDelUser = xDelUser + ..ref.aCoord = aCoord + ..ref.anQueue = anQueue + ..ref.nCoord = nCoord + ..ref.iLevel = iLevel + ..ref.mxLevel = mxLevel + ..ref.iRowid = iRowid + ..ref.rParentScore = rParentScore + ..ref.eParentWithin = eParentWithin + ..ref.eWithin = eWithin + ..ref.rScore = rScore + ..ref.apSqlParam = apSqlParam; +} + +/// CAPI3REF: Database Snapshot +/// KEYWORDS: {snapshot} {sqlite3_snapshot} +/// +/// An instance of the snapshot object records the state of a [WAL mode] +/// database for some specific point in history. +/// +/// In [WAL mode], multiple [database connections] that are open on the +/// same database file can each be reading a different historical version +/// of the database file. When a [database connection] begins a read +/// transaction, that connection sees an unchanging copy of the database +/// as it existed for the point in time when the transaction first started. +/// Subsequent changes to the database from other connections are not seen +/// by the reader until a new read transaction is started. +/// +/// The sqlite3_snapshot object records state information about an historical +/// version of the database file so that it is possible to later open a new read +/// transaction that sees that historical version of the database rather than +/// the most recent version. +final class sqlite3_snapshot extends ffi.Struct { + @ffi.Array.multi([48]) + external ffi.Array hidden; +} + +final class sqlite3_stmt extends ffi.Opaque {} + +final class sqlite3_str extends ffi.Opaque {} + +typedef sqlite3_syscall_ptr = + ffi.Pointer>; +typedef sqlite3_uint64 = sqlite_uint64; + +final class sqlite3_value extends ffi.Opaque {} + +final class sqlite3_vfs extends ffi.Struct { + /// Structure version number (currently 3) + @ffi.Int() + external int iVersion; + + /// Size of subclassed sqlite3_file + @ffi.Int() + external int szOsFile; + + /// Maximum file pathname length + @ffi.Int() + external int mxPathname; + + /// Next registered VFS + external ffi.Pointer pNext; + + /// Name of this virtual file system + external ffi.Pointer zName; + + /// Pointer to application-specific data + external ffi.Pointer pAppData; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xOpen; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, ffi.Int) + > + > + xDelete; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xAccess; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xFullPathname; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + xDlOpen; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xDlError; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xDlSym; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + xDlClose; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) + > + > + xRandomness; + + external ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xSleep; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xCurrentTime; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Int, ffi.Pointer) + > + > + xGetLastError; + + /// The methods above are in version 1 of the sqlite_vfs object + /// definition. Those that follow are added in version 2 or later + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xCurrentTimeInt64; + + /// The methods above are in versions 1 and 2 of the sqlite_vfs object. + /// Those below are for version 3 and greater. + external ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + sqlite3_syscall_ptr, + ) + > + > + xSetSystemCall; + + external ffi.Pointer< + ffi.NativeFunction< + sqlite3_syscall_ptr Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + xGetSystemCall; + + external ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + xNextSystemCall; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int iVersion, + required int szOsFile, + required int mxPathname, + required ffi.Pointer pNext, + required ffi.Pointer zName, + required ffi.Pointer pAppData, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xOpen, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + > + xDelete, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xAccess, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xFullPathname, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + xDlOpen, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xDlError, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + xDlSym, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + > + xDlClose, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xRandomness, + required ffi.Pointer< + ffi.NativeFunction, ffi.Int)> + > + xSleep, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xCurrentTime, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + > + xGetLastError, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + > + xCurrentTimeInt64, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + sqlite3_syscall_ptr, + ) + > + > + xSetSystemCall, + required ffi.Pointer< + ffi.NativeFunction< + sqlite3_syscall_ptr Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + xGetSystemCall, + required ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > + xNextSystemCall, + }) => $allocator() + ..ref.iVersion = iVersion + ..ref.szOsFile = szOsFile + ..ref.mxPathname = mxPathname + ..ref.pNext = pNext + ..ref.zName = zName + ..ref.pAppData = pAppData + ..ref.xOpen = xOpen + ..ref.xDelete = xDelete + ..ref.xAccess = xAccess + ..ref.xFullPathname = xFullPathname + ..ref.xDlOpen = xDlOpen + ..ref.xDlError = xDlError + ..ref.xDlSym = xDlSym + ..ref.xDlClose = xDlClose + ..ref.xRandomness = xRandomness + ..ref.xSleep = xSleep + ..ref.xCurrentTime = xCurrentTime + ..ref.xGetLastError = xGetLastError + ..ref.xCurrentTimeInt64 = xCurrentTimeInt64 + ..ref.xSetSystemCall = xSetSystemCall + ..ref.xGetSystemCall = xGetSystemCall + ..ref.xNextSystemCall = xNextSystemCall; +} + +/// CAPI3REF: Virtual Table Instance Object +/// KEYWORDS: sqlite3_vtab +/// +/// Every [virtual table module] implementation uses a subclass +/// of this object to describe a particular instance +/// of the [virtual table]. Each subclass will +/// be tailored to the specific needs of the module implementation. +/// The purpose of this superclass is to define certain fields that are +/// common to all module implementations. +/// +/// ^Virtual tables methods can set an error message by assigning a +/// string obtained from [sqlite3_mprintf()] to zErrMsg. The method should +/// take care that any prior string is freed by a call to [sqlite3_free()] +/// prior to assigning a new string to zErrMsg. ^After the error message +/// is delivered up to the client application, the string will be automatically +/// freed by sqlite3_free() and the zErrMsg field will be zeroed. +final class sqlite3_vtab extends ffi.Struct { + /// The module for this virtual table + external ffi.Pointer pModule; + + /// Number of open cursors + @ffi.Int() + external int nRef; + + /// Error message from sqlite3_mprintf() + external ffi.Pointer zErrMsg; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pModule, + required int nRef, + required ffi.Pointer zErrMsg, + }) => $allocator() + ..ref.pModule = pModule + ..ref.nRef = nRef + ..ref.zErrMsg = zErrMsg; +} + +/// CAPI3REF: Virtual Table Cursor Object +/// KEYWORDS: sqlite3_vtab_cursor {virtual table cursor} +/// +/// Every [virtual table module] implementation uses a subclass of the +/// following structure to describe cursors that point into the +/// [virtual table] and are used +/// to loop through the virtual table. Cursors are created using the +/// [sqlite3_module.xOpen | xOpen] method of the module and are destroyed +/// by the [sqlite3_module.xClose | xClose] method. Cursors are used +/// by the [xFilter], [xNext], [xEof], [xColumn], and [xRowid] methods +/// of the module. Each module implementation will define +/// the content of a cursor structure to suit its own needs. +/// +/// This superclass exists in order to define fields of the cursor that +/// are common to all implementations. +final class sqlite3_vtab_cursor extends ffi.Struct { + /// Virtual table of this cursor + external ffi.Pointer pVtab; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer pVtab, + }) => $allocator()..ref.pVtab = pVtab; +} + +typedef sqlite_int64 = ffi.LongLong; +typedef Dartsqlite_int64 = int; +typedef sqlite_uint64 = ffi.UnsignedLongLong; +typedef Dartsqlite_uint64 = int; diff --git a/pkgs/ffigen/test/large_integration_tests/large_test.dart b/pkgs/ffigen/test/large_integration_tests/large_test.dart index cd6364b0e5..7062a2cb72 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_test.dart @@ -65,6 +65,17 @@ void main() { importType: (decl) => decl.originalName == 'time_t' ? ImportedType(ffiImport, 'Int64', 'int', 'time_t') : null, + visitors: [ + Visitor( + visitFunc: (node) => node.isIncluded = true, + visitStruct: (node) => node.isIncluded = true, + visitUnion: (node) => node.isIncluded = true, + visitEnum: (node) => node.isIncluded = true, + visitGlobal: (node) => node.isIncluded = true, + visitMacro: (node) => node.isIncluded = true, + visitTypealias: (node) => node.isIncluded = true, + ), + ], ); final library = parse(Context(logger, generator)); final context = testContext(); @@ -141,6 +152,17 @@ void main() { ], include: (Uri header) => header.pathSegments.last == 'cJSON.h', ), + visitors: [ + Visitor( + visitFunc: (node) => node.isIncluded = true, + visitStruct: (node) => node.isIncluded = true, + visitUnion: (node) => node.isIncluded = true, + visitEnum: (node) => node.isIncluded = true, + visitGlobal: (node) => node.isIncluded = true, + visitMacro: (node) => node.isIncluded = true, + visitTypealias: (node) => node.isIncluded = true, + ), + ], ); final context = testContext(generator); final library = parse(context); @@ -188,18 +210,28 @@ void main() { 'sqlite3_str_vappendf', }.contains(node.originalName)) { node.isIncluded = false; + } else { + node.isIncluded = true; } }, visitStruct: (node) { if (vaRegex.hasMatch(node.originalName)) { node.isIncluded = false; + } else { + node.isIncluded = true; } }, visitTypealias: (node) { if (vaRegex.hasMatch(node.originalName)) { node.isIncluded = false; + } else { + node.isIncluded = true; } }, + visitUnion: (node) => node.isIncluded = true, + visitEnum: (node) => node.isIncluded = true, + visitGlobal: (node) => node.isIncluded = true, + visitMacro: (node) => node.isIncluded = true, ), ], ); diff --git a/pkgs/ffigen/test/unit_tests/objc_inheritance_edge_case_test.dart b/pkgs/ffigen/test/unit_tests/objc_inheritance_edge_case_test.dart index f93c1cd42a..1f811bdf1a 100644 --- a/pkgs/ffigen/test/unit_tests/objc_inheritance_edge_case_test.dart +++ b/pkgs/ffigen/test/unit_tests/objc_inheritance_edge_case_test.dart @@ -45,7 +45,7 @@ void main() { usr: name, originalName: name, apiAvailability: availability, - ); + )..isIncluded = true; if (superType != null) { itf.superType = superType; superType.subtypes.add(itf); @@ -68,7 +68,7 @@ void main() { originalName: name, parent: parent, apiAvailability: availability, - ); + )..isIncluded = true; parent.categories.add(category); for (final m in methods) { category.addMethod(m); From f44920004317d0d69539c725b9ecbe3a3703962d Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 15:11:21 +1000 Subject: [PATCH 22/54] clean --- .../lib/src/config_provider/public_ast.dart | 33 ++----------------- 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index 823a22b82d..6b34f7631f 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -64,7 +64,6 @@ class Func extends DeclNode { set name(String value) => _func.symbol.oldName = value; bool get isIncluded => _func.isIncluded; - set isIncluded(bool value) => _func.isIncluded = value; } @@ -97,14 +96,8 @@ class Struct extends DeclNode { @override set name(String value) => _struct.symbol.oldName = value; - bool get isInternal => _struct.isInternal; - bool get isIncluded => _struct.isIncluded; - - set isIncluded(bool value) { - if (_struct.isInternal) return; - _struct.isIncluded = value; - } + set isIncluded(bool value) => _struct.isIncluded = value; } /// A C union declaration. @@ -137,7 +130,6 @@ class Union extends DeclNode { set name(String value) => _union.symbol.oldName = value; bool get isIncluded => _union.isIncluded; - set isIncluded(bool value) => _union.isIncluded = value; } @@ -171,7 +163,6 @@ class EnumClass extends DeclNode { set name(String value) => _enumClass.symbol.oldName = value; bool get isIncluded => _enumClass.isIncluded; - set isIncluded(bool value) => _enumClass.isIncluded = value; } @@ -197,7 +188,6 @@ class Global extends DeclNode { set name(String value) => _global.symbol.oldName = value; bool get isIncluded => _global.isIncluded; - set isIncluded(bool value) => _global.isIncluded = value; } @@ -223,7 +213,6 @@ class Constant extends DeclNode { set name(String value) => _constant.symbol.oldName = value; bool get isIncluded => _constant.isIncluded; - set isIncluded(bool value) => _constant.isIncluded = value; } @@ -249,7 +238,6 @@ class MacroConstant extends DeclNode { set name(String value) => _macro.symbol.oldName = value; bool get isIncluded => _macro.isIncluded; - set isIncluded(bool value) => _macro.isIncluded = value; } @@ -275,7 +263,6 @@ class Typealias extends DeclNode { set name(String value) => _typealias.symbol.oldName = value; bool get isIncluded => _typealias.isIncluded; - set isIncluded(bool value) => _typealias.isIncluded = value; } @@ -309,13 +296,7 @@ class ObjCInterface extends DeclNode { set name(String value) => _interface.symbol.oldName = value; bool get isIncluded => _interface.isIncluded; - - set isIncluded(bool value) { - if (_interface.isInternal) return; - _interface.isIncluded = value; - } - - bool get isInternal => _interface.isInternal; + set isIncluded(bool value) => _interface.isIncluded = value; } /// An Objective-C protocol declaration. @@ -348,7 +329,6 @@ class ObjCProtocol extends DeclNode { set name(String value) => _protocol.symbol.oldName = value; bool get isIncluded => _protocol.isIncluded; - set isIncluded(bool value) => _protocol.isIncluded = value; } @@ -385,7 +365,6 @@ class ObjCCategory extends DeclNode { set name(String value) => _category.symbol.oldName = value; bool get isIncluded => _category.isIncluded; - set isIncluded(bool value) => _category.isIncluded = value; } @@ -419,7 +398,6 @@ class CppClass extends DeclNode { set name(String value) => _cppClass.symbol.oldName = value; bool get isIncluded => _cppClass.isIncluded; - set isIncluded(bool value) => _cppClass.isIncluded = value; } @@ -568,11 +546,7 @@ class ObjCMethod extends NamedNode { _method.setter != null ? ObjCMethod(parent, _method.setter!) : null; bool get isIncluded => _method.isIncluded; - - set isIncluded(bool value) { - if (parent case final ObjCInterface itf when itf.isInternal) return; - _method.isIncluded = value; - } + set isIncluded(bool value) => _method.isIncluded = value; } /// An unnamed enum constant. @@ -597,6 +571,5 @@ class UnnamedEnumConstant extends DeclNode { set name(String value) => _constant.symbol.oldName = value; bool get isIncluded => _constant.isIncluded; - set isIncluded(bool value) => _constant.isIncluded = value; } From 5541c188335ac5c76acf244be5c2c1e14065214a Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 15:16:30 +1000 Subject: [PATCH 23/54] docs --- .../lib/src/code_generator/objc_methods.dart | 1 - .../lib/src/config_provider/public_ast.dart | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart index 7405792596..f34124fd43 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart @@ -13,7 +13,6 @@ import 'local_variables.dart'; import 'native_type.dart'; import 'objc_block.dart'; import 'objc_built_in_functions.dart'; -import 'objc_category.dart'; import 'objc_interface.dart'; import 'objc_nullable.dart'; import 'pointer.dart'; diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index 6b34f7631f..df2a18e064 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -63,6 +63,7 @@ class Func extends DeclNode { @override set name(String value) => _func.symbol.oldName = value; + /// Whether this Func should be included in code generation. bool get isIncluded => _func.isIncluded; set isIncluded(bool value) => _func.isIncluded = value; } @@ -96,6 +97,7 @@ class Struct extends DeclNode { @override set name(String value) => _struct.symbol.oldName = value; + /// Whether this Struct should be included in code generation. bool get isIncluded => _struct.isIncluded; set isIncluded(bool value) => _struct.isIncluded = value; } @@ -129,6 +131,7 @@ class Union extends DeclNode { @override set name(String value) => _union.symbol.oldName = value; + /// Whether this Union should be included in code generation. bool get isIncluded => _union.isIncluded; set isIncluded(bool value) => _union.isIncluded = value; } @@ -162,6 +165,7 @@ class EnumClass extends DeclNode { @override set name(String value) => _enumClass.symbol.oldName = value; + /// Whether this EnumClass should be included in code generation. bool get isIncluded => _enumClass.isIncluded; set isIncluded(bool value) => _enumClass.isIncluded = value; } @@ -187,6 +191,7 @@ class Global extends DeclNode { @override set name(String value) => _global.symbol.oldName = value; + /// Whether this Global should be included in code generation. bool get isIncluded => _global.isIncluded; set isIncluded(bool value) => _global.isIncluded = value; } @@ -212,6 +217,7 @@ class Constant extends DeclNode { @override set name(String value) => _constant.symbol.oldName = value; + /// Whether this Constant should be included in code generation. bool get isIncluded => _constant.isIncluded; set isIncluded(bool value) => _constant.isIncluded = value; } @@ -237,6 +243,7 @@ class MacroConstant extends DeclNode { @override set name(String value) => _macro.symbol.oldName = value; + /// Whether this MacroConstant should be included in code generation. bool get isIncluded => _macro.isIncluded; set isIncluded(bool value) => _macro.isIncluded = value; } @@ -262,6 +269,7 @@ class Typealias extends DeclNode { @override set name(String value) => _typealias.symbol.oldName = value; + /// Whether this Typealias should be included in code generation. bool get isIncluded => _typealias.isIncluded; set isIncluded(bool value) => _typealias.isIncluded = value; } @@ -295,6 +303,7 @@ class ObjCInterface extends DeclNode { @override set name(String value) => _interface.symbol.oldName = value; + /// Whether this ObjCInterface should be included in code generation. bool get isIncluded => _interface.isIncluded; set isIncluded(bool value) => _interface.isIncluded = value; } @@ -328,6 +337,7 @@ class ObjCProtocol extends DeclNode { @override set name(String value) => _protocol.symbol.oldName = value; + /// Whether this ObjCProtocol should be included in code generation. bool get isIncluded => _protocol.isIncluded; set isIncluded(bool value) => _protocol.isIncluded = value; } @@ -364,6 +374,7 @@ class ObjCCategory extends DeclNode { @override set name(String value) => _category.symbol.oldName = value; + /// Whether this ObjCCategory should be included in code generation. bool get isIncluded => _category.isIncluded; set isIncluded(bool value) => _category.isIncluded = value; } @@ -397,6 +408,7 @@ class CppClass extends DeclNode { @override set name(String value) => _cppClass.symbol.oldName = value; + /// Whether this CppClass should be included in code generation. bool get isIncluded => _cppClass.isIncluded; set isIncluded(bool value) => _cppClass.isIncluded = value; } @@ -497,6 +509,7 @@ class CppMethod extends NamedNode { @override set name(String value) => _method.name.oldName = value; + /// Whether this CppMethod should be included in code generation. bool get isIncluded => _method.isIncluded; set isIncluded(bool value) => _method.isIncluded = value; } @@ -545,6 +558,7 @@ class ObjCMethod extends NamedNode { ObjCMethod? get setter => _method.setter != null ? ObjCMethod(parent, _method.setter!) : null; + /// Whether this ObjCMethod should be included in code generation. bool get isIncluded => _method.isIncluded; set isIncluded(bool value) => _method.isIncluded = value; } @@ -570,6 +584,7 @@ class UnnamedEnumConstant extends DeclNode { @override set name(String value) => _constant.symbol.oldName = value; + /// Whether this UnnamedEnumConstant should be included in code generation. bool get isIncluded => _constant.isIncluded; set isIncluded(bool value) => _constant.isIncluded = value; } From 7bdf73b9db517ed98962381d9ae3696a8fc15c5b Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 15:24:54 +1000 Subject: [PATCH 24/54] revert junk --- .../libclang-example/generated_bindings.dart | 5153 ++++++++--------- pkgs/ffigen/lib/src/visitor/find_symbols.dart | 15 +- .../src/visitor/fix_overridden_methods.dart | 20 +- .../ffigen/lib/src/visitor/list_bindings.dart | 33 +- 4 files changed, 2468 insertions(+), 2753 deletions(-) diff --git a/pkgs/ffigen/example/libclang-example/generated_bindings.dart b/pkgs/ffigen/example/libclang-example/generated_bindings.dart index 3af7ee5463..e09dccef4a 100644 --- a/pkgs/ffigen/example/libclang-example/generated_bindings.dart +++ b/pkgs/ffigen/example/libclang-example/generated_bindings.dart @@ -32,11 +32,11 @@ class LibClang { } late final _clang_CXCursorSet_containsPtr = - _lookup>( - 'clang_CXCursorSet_contains', - ); + _lookup< + ffi.NativeFunction + >('clang_CXCursorSet_contains'); late final _clang_CXCursorSet_contains = _clang_CXCursorSet_containsPtr - .asFunction(); + .asFunction(); /// Inserts a CXCursor into a CXCursorSet. /// @@ -46,11 +46,11 @@ class LibClang { } late final _clang_CXCursorSet_insertPtr = - _lookup>( - 'clang_CXCursorSet_insert', - ); + _lookup< + ffi.NativeFunction + >('clang_CXCursorSet_insert'); late final _clang_CXCursorSet_insert = _clang_CXCursorSet_insertPtr - .asFunction(); + .asFunction(); /// Gets the general options associated with a CXIndex. /// @@ -61,12 +61,11 @@ class LibClang { } late final _clang_CXIndex_getGlobalOptionsPtr = - _lookup>( + _lookup>( 'clang_CXIndex_getGlobalOptions', ); late final _clang_CXIndex_getGlobalOptions = - _clang_CXIndex_getGlobalOptionsPtr - .asFunction(); + _clang_CXIndex_getGlobalOptionsPtr.asFunction(); /// Sets general options associated with a CXIndex. /// @@ -84,12 +83,12 @@ class LibClang { } late final _clang_CXIndex_setGlobalOptionsPtr = - _lookup>( + _lookup>( 'clang_CXIndex_setGlobalOptions', ); late final _clang_CXIndex_setGlobalOptions = _clang_CXIndex_setGlobalOptionsPtr - .asFunction(); + .asFunction(); /// Sets the invocation emission path option in a CXIndex. /// @@ -105,11 +104,11 @@ class LibClang { late final _clang_CXIndex_setInvocationEmissionPathOptionPtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction)> >('clang_CXIndex_setInvocationEmissionPathOption'); late final _clang_CXIndex_setInvocationEmissionPathOption = _clang_CXIndex_setInvocationEmissionPathOptionPtr - .asFunction(); + .asFunction)>(); /// Determine if a C++ constructor is a converting constructor. int clang_CXXConstructor_isConvertingConstructor(CXCursor C) { @@ -117,12 +116,12 @@ class LibClang { } late final _clang_CXXConstructor_isConvertingConstructorPtr = - _lookup< - ffi.NativeFunction - >('clang_CXXConstructor_isConvertingConstructor'); + _lookup>( + 'clang_CXXConstructor_isConvertingConstructor', + ); late final _clang_CXXConstructor_isConvertingConstructor = _clang_CXXConstructor_isConvertingConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ constructor is a copy constructor. int clang_CXXConstructor_isCopyConstructor(CXCursor C) { @@ -130,12 +129,12 @@ class LibClang { } late final _clang_CXXConstructor_isCopyConstructorPtr = - _lookup>( + _lookup>( 'clang_CXXConstructor_isCopyConstructor', ); late final _clang_CXXConstructor_isCopyConstructor = _clang_CXXConstructor_isCopyConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ constructor is the default constructor. int clang_CXXConstructor_isDefaultConstructor(CXCursor C) { @@ -143,12 +142,12 @@ class LibClang { } late final _clang_CXXConstructor_isDefaultConstructorPtr = - _lookup< - ffi.NativeFunction - >('clang_CXXConstructor_isDefaultConstructor'); + _lookup>( + 'clang_CXXConstructor_isDefaultConstructor', + ); late final _clang_CXXConstructor_isDefaultConstructor = _clang_CXXConstructor_isDefaultConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ constructor is a move constructor. int clang_CXXConstructor_isMoveConstructor(CXCursor C) { @@ -156,12 +155,12 @@ class LibClang { } late final _clang_CXXConstructor_isMoveConstructorPtr = - _lookup>( + _lookup>( 'clang_CXXConstructor_isMoveConstructor', ); late final _clang_CXXConstructor_isMoveConstructor = _clang_CXXConstructor_isMoveConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ field is declared 'mutable'. int clang_CXXField_isMutable(CXCursor C) { @@ -169,11 +168,11 @@ class LibClang { } late final _clang_CXXField_isMutablePtr = - _lookup>( + _lookup>( 'clang_CXXField_isMutable', ); late final _clang_CXXField_isMutable = _clang_CXXField_isMutablePtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// declared 'const'. @@ -182,11 +181,11 @@ class LibClang { } late final _clang_CXXMethod_isConstPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isConst', ); late final _clang_CXXMethod_isConst = _clang_CXXMethod_isConstPtr - .asFunction(); + .asFunction(); /// Determine if a C++ method is declared '= default'. int clang_CXXMethod_isDefaulted(CXCursor C) { @@ -194,11 +193,11 @@ class LibClang { } late final _clang_CXXMethod_isDefaultedPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isDefaulted', ); late final _clang_CXXMethod_isDefaulted = _clang_CXXMethod_isDefaultedPtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// pure virtual. @@ -207,11 +206,11 @@ class LibClang { } late final _clang_CXXMethod_isPureVirtualPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isPureVirtual', ); late final _clang_CXXMethod_isPureVirtual = _clang_CXXMethod_isPureVirtualPtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// declared 'static'. @@ -220,11 +219,11 @@ class LibClang { } late final _clang_CXXMethod_isStaticPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isStatic', ); late final _clang_CXXMethod_isStatic = _clang_CXXMethod_isStaticPtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// explicitly declared 'virtual' or if it overrides a virtual method from @@ -234,11 +233,11 @@ class LibClang { } late final _clang_CXXMethod_isVirtualPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isVirtual', ); late final _clang_CXXMethod_isVirtual = _clang_CXXMethod_isVirtualPtr - .asFunction(); + .asFunction(); /// Determine if a C++ record is abstract, i.e. whether a class or struct /// has a pure virtual member function. @@ -247,11 +246,11 @@ class LibClang { } late final _clang_CXXRecord_isAbstractPtr = - _lookup>( + _lookup>( 'clang_CXXRecord_isAbstract', ); late final _clang_CXXRecord_isAbstract = _clang_CXXRecord_isAbstractPtr - .asFunction(); + .asFunction(); /// If cursor is a statement declaration tries to evaluate the /// statement and if its variable, tries to evaluate its initializer, @@ -261,11 +260,11 @@ class LibClang { } late final _clang_Cursor_EvaluatePtr = - _lookup>( + _lookup>( 'clang_Cursor_Evaluate', ); late final _clang_Cursor_Evaluate = _clang_Cursor_EvaluatePtr - .asFunction(); + .asFunction(); /// Retrieve the argument cursor of a function or method. /// @@ -277,11 +276,11 @@ class LibClang { } late final _clang_Cursor_getArgumentPtr = - _lookup>( + _lookup>( 'clang_Cursor_getArgument', ); late final _clang_Cursor_getArgument = _clang_Cursor_getArgumentPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a documentable entity (e.g., /// declaration), return the associated \paragraph; otherwise return the @@ -291,12 +290,12 @@ class LibClang { } late final _clang_Cursor_getBriefCommentTextPtr = - _lookup>( + _lookup>( 'clang_Cursor_getBriefCommentText', ); late final _clang_Cursor_getBriefCommentText = _clang_Cursor_getBriefCommentTextPtr - .asFunction(); + .asFunction(); /// Retrieve the CXStrings representing the mangled symbols of the C++ /// constructor or destructor at the cursor. @@ -305,11 +304,11 @@ class LibClang { } late final _clang_Cursor_getCXXManglingsPtr = - _lookup>( + _lookup Function(CXCursor)>>( 'clang_Cursor_getCXXManglings', ); late final _clang_Cursor_getCXXManglings = _clang_Cursor_getCXXManglingsPtr - .asFunction(); + .asFunction Function(CXCursor)>(); /// Given a cursor that represents a declaration, return the associated /// comment's source range. The range may include multiple consecutive comments @@ -319,11 +318,11 @@ class LibClang { } late final _clang_Cursor_getCommentRangePtr = - _lookup>( + _lookup>( 'clang_Cursor_getCommentRange', ); late final _clang_Cursor_getCommentRange = _clang_Cursor_getCommentRangePtr - .asFunction(); + .asFunction(); /// Retrieve the CXString representing the mangled name of the cursor. CXString clang_Cursor_getMangling(CXCursor arg0) { @@ -331,11 +330,11 @@ class LibClang { } late final _clang_Cursor_getManglingPtr = - _lookup>( + _lookup>( 'clang_Cursor_getMangling', ); late final _clang_Cursor_getMangling = _clang_Cursor_getManglingPtr - .asFunction(); + .asFunction(); /// Given a CXCursor_ModuleImportDecl cursor, return the associated module. CXModule clang_Cursor_getModule(CXCursor C) { @@ -343,11 +342,11 @@ class LibClang { } late final _clang_Cursor_getModulePtr = - _lookup>( + _lookup>( 'clang_Cursor_getModule', ); late final _clang_Cursor_getModule = _clang_Cursor_getModulePtr - .asFunction(); + .asFunction(); /// Retrieve the number of non-variadic arguments associated with a given /// cursor. @@ -359,11 +358,11 @@ class LibClang { } late final _clang_Cursor_getNumArgumentsPtr = - _lookup>( + _lookup>( 'clang_Cursor_getNumArguments', ); late final _clang_Cursor_getNumArguments = _clang_Cursor_getNumArgumentsPtr - .asFunction(); + .asFunction(); /// Returns the number of template args of a function decl representing a /// template specialization. @@ -384,12 +383,12 @@ class LibClang { } late final _clang_Cursor_getNumTemplateArgumentsPtr = - _lookup>( + _lookup>( 'clang_Cursor_getNumTemplateArguments', ); late final _clang_Cursor_getNumTemplateArguments = _clang_Cursor_getNumTemplateArgumentsPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents an Objective-C method or parameter /// declaration, return the associated Objective-C qualifiers for the return @@ -400,12 +399,12 @@ class LibClang { } late final _clang_Cursor_getObjCDeclQualifiersPtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCDeclQualifiers', ); late final _clang_Cursor_getObjCDeclQualifiers = _clang_Cursor_getObjCDeclQualifiersPtr - .asFunction(); + .asFunction(); /// Retrieve the CXStrings representing the mangled symbols of the ObjC /// class interface or implementation at the cursor. @@ -414,11 +413,11 @@ class LibClang { } late final _clang_Cursor_getObjCManglingsPtr = - _lookup>( + _lookup Function(CXCursor)>>( 'clang_Cursor_getObjCManglings', ); late final _clang_Cursor_getObjCManglings = _clang_Cursor_getObjCManglingsPtr - .asFunction(); + .asFunction Function(CXCursor)>(); /// Given a cursor that represents a property declaration, return the /// associated property attributes. The bits are formed from @@ -430,12 +429,12 @@ class LibClang { } late final _clang_Cursor_getObjCPropertyAttributesPtr = - _lookup>( - 'clang_Cursor_getObjCPropertyAttributes', - ); + _lookup< + ffi.NativeFunction + >('clang_Cursor_getObjCPropertyAttributes'); late final _clang_Cursor_getObjCPropertyAttributes = _clang_Cursor_getObjCPropertyAttributesPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a property declaration, return the /// name of the method that implements the getter. @@ -444,12 +443,12 @@ class LibClang { } late final _clang_Cursor_getObjCPropertyGetterNamePtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCPropertyGetterName', ); late final _clang_Cursor_getObjCPropertyGetterName = _clang_Cursor_getObjCPropertyGetterNamePtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a property declaration, return the /// name of the method that implements the setter, if any. @@ -458,12 +457,12 @@ class LibClang { } late final _clang_Cursor_getObjCPropertySetterNamePtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCPropertySetterName', ); late final _clang_Cursor_getObjCPropertySetterName = _clang_Cursor_getObjCPropertySetterNamePtr - .asFunction(); + .asFunction(); /// If the cursor points to a selector identifier in an Objective-C /// method or message expression, this returns the selector index. @@ -479,12 +478,12 @@ class LibClang { } late final _clang_Cursor_getObjCSelectorIndexPtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCSelectorIndex', ); late final _clang_Cursor_getObjCSelectorIndex = _clang_Cursor_getObjCSelectorIndexPtr - .asFunction(); + .asFunction(); /// Return the offset of the field represented by the Cursor. /// @@ -502,11 +501,11 @@ class LibClang { } late final _clang_Cursor_getOffsetOfFieldPtr = - _lookup>( + _lookup>( 'clang_Cursor_getOffsetOfField', ); late final _clang_Cursor_getOffsetOfField = _clang_Cursor_getOffsetOfFieldPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a declaration, return the associated /// comment text, including comment markers. @@ -515,12 +514,12 @@ class LibClang { } late final _clang_Cursor_getRawCommentTextPtr = - _lookup>( + _lookup>( 'clang_Cursor_getRawCommentText', ); late final _clang_Cursor_getRawCommentText = _clang_Cursor_getRawCommentTextPtr - .asFunction(); + .asFunction(); /// Given a cursor pointing to an Objective-C message or property /// reference, or C++ method call, returns the CXType of the receiver. @@ -529,11 +528,11 @@ class LibClang { } late final _clang_Cursor_getReceiverTypePtr = - _lookup>( + _lookup>( 'clang_Cursor_getReceiverType', ); late final _clang_Cursor_getReceiverType = _clang_Cursor_getReceiverTypePtr - .asFunction(); + .asFunction(); /// Retrieve a range for a piece that forms the cursors spelling name. /// Most of the times there is only one range for the complete spelling but for @@ -553,12 +552,14 @@ class LibClang { } late final _clang_Cursor_getSpellingNameRangePtr = - _lookup>( - 'clang_Cursor_getSpellingNameRange', - ); + _lookup< + ffi.NativeFunction< + CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) + > + >('clang_Cursor_getSpellingNameRange'); late final _clang_Cursor_getSpellingNameRange = _clang_Cursor_getSpellingNameRangePtr - .asFunction(); + .asFunction(); /// Returns the storage class for a function or variable declaration. /// @@ -569,11 +570,11 @@ class LibClang { } late final _clang_Cursor_getStorageClassPtr = - _lookup>( + _lookup>( 'clang_Cursor_getStorageClass', ); late final _clang_Cursor_getStorageClass = _clang_Cursor_getStorageClassPtr - .asFunction(); + .asFunction(); /// Retrieve the kind of the I'th template argument of the CXCursor C. /// @@ -599,12 +600,12 @@ class LibClang { } late final _clang_Cursor_getTemplateArgumentKindPtr = - _lookup>( - 'clang_Cursor_getTemplateArgumentKind', - ); + _lookup< + ffi.NativeFunction + >('clang_Cursor_getTemplateArgumentKind'); late final _clang_Cursor_getTemplateArgumentKind = _clang_Cursor_getTemplateArgumentKindPtr - .asFunction(); + .asFunction(); /// Retrieve a CXType representing the type of a TemplateArgument of a /// function decl representing a template specialization. @@ -627,12 +628,12 @@ class LibClang { } late final _clang_Cursor_getTemplateArgumentTypePtr = - _lookup>( + _lookup>( 'clang_Cursor_getTemplateArgumentType', ); late final _clang_Cursor_getTemplateArgumentType = _clang_Cursor_getTemplateArgumentTypePtr - .asFunction(); + .asFunction(); /// Retrieve the value of an Integral TemplateArgument (of a function /// decl representing a template specialization) as an unsigned long long. @@ -655,11 +656,13 @@ class LibClang { late final _clang_Cursor_getTemplateArgumentUnsignedValuePtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedLongLong Function(CXCursor, ffi.UnsignedInt) + > >('clang_Cursor_getTemplateArgumentUnsignedValue'); late final _clang_Cursor_getTemplateArgumentUnsignedValue = _clang_Cursor_getTemplateArgumentUnsignedValuePtr - .asFunction(); + .asFunction(); /// Retrieve the value of an Integral TemplateArgument (of a function /// decl representing a template specialization) as a signed long long. @@ -681,12 +684,12 @@ class LibClang { } late final _clang_Cursor_getTemplateArgumentValuePtr = - _lookup>( - 'clang_Cursor_getTemplateArgumentValue', - ); + _lookup< + ffi.NativeFunction + >('clang_Cursor_getTemplateArgumentValue'); late final _clang_Cursor_getTemplateArgumentValue = _clang_Cursor_getTemplateArgumentValuePtr - .asFunction(); + .asFunction(); /// Returns the translation unit that a cursor originated from. CXTranslationUnit clang_Cursor_getTranslationUnit(CXCursor arg0) { @@ -694,12 +697,12 @@ class LibClang { } late final _clang_Cursor_getTranslationUnitPtr = - _lookup>( + _lookup>( 'clang_Cursor_getTranslationUnit', ); late final _clang_Cursor_getTranslationUnit = _clang_Cursor_getTranslationUnitPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor has any attributes. int clang_Cursor_hasAttrs(CXCursor C) { @@ -707,11 +710,11 @@ class LibClang { } late final _clang_Cursor_hasAttrsPtr = - _lookup>( + _lookup>( 'clang_Cursor_hasAttrs', ); late final _clang_Cursor_hasAttrs = _clang_Cursor_hasAttrsPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents an anonymous /// tag or namespace @@ -720,11 +723,11 @@ class LibClang { } late final _clang_Cursor_isAnonymousPtr = - _lookup>( + _lookup>( 'clang_Cursor_isAnonymous', ); late final _clang_Cursor_isAnonymous = _clang_Cursor_isAnonymousPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents an anonymous record /// declaration. @@ -733,12 +736,12 @@ class LibClang { } late final _clang_Cursor_isAnonymousRecordDeclPtr = - _lookup>( + _lookup>( 'clang_Cursor_isAnonymousRecordDecl', ); late final _clang_Cursor_isAnonymousRecordDecl = _clang_Cursor_isAnonymousRecordDeclPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the cursor specifies a Record member that is a /// bitfield. @@ -747,11 +750,11 @@ class LibClang { } late final _clang_Cursor_isBitFieldPtr = - _lookup>( + _lookup>( 'clang_Cursor_isBitField', ); late final _clang_Cursor_isBitField = _clang_Cursor_isBitFieldPtr - .asFunction(); + .asFunction(); /// Given a cursor pointing to a C++ method call or an Objective-C /// message, returns non-zero if the method/message is "dynamic", meaning: @@ -767,11 +770,11 @@ class LibClang { } late final _clang_Cursor_isDynamicCallPtr = - _lookup>( + _lookup>( 'clang_Cursor_isDynamicCall', ); late final _clang_Cursor_isDynamicCall = _clang_Cursor_isDynamicCallPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given cursor points to a symbol marked with /// external_source_symbol attribute. @@ -794,11 +797,25 @@ class LibClang { } late final _clang_Cursor_isExternalSymbolPtr = - _lookup>( - 'clang_Cursor_isExternalSymbol', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXCursor, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_Cursor_isExternalSymbol'); late final _clang_Cursor_isExternalSymbol = _clang_Cursor_isExternalSymbolPtr - .asFunction(); + .asFunction< + int Function( + CXCursor, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Determine whether a CXCursor that is a function declaration, is an /// inline declaration. @@ -807,12 +824,11 @@ class LibClang { } late final _clang_Cursor_isFunctionInlinedPtr = - _lookup>( + _lookup>( 'clang_Cursor_isFunctionInlined', ); late final _clang_Cursor_isFunctionInlined = - _clang_Cursor_isFunctionInlinedPtr - .asFunction(); + _clang_Cursor_isFunctionInlinedPtr.asFunction(); /// Determine whether the given cursor represents an inline namespace /// declaration. @@ -821,12 +837,11 @@ class LibClang { } late final _clang_Cursor_isInlineNamespacePtr = - _lookup>( + _lookup>( 'clang_Cursor_isInlineNamespace', ); late final _clang_Cursor_isInlineNamespace = - _clang_Cursor_isInlineNamespacePtr - .asFunction(); + _clang_Cursor_isInlineNamespacePtr.asFunction(); /// Determine whether a CXCursor that is a macro, is a /// builtin one. @@ -835,11 +850,11 @@ class LibClang { } late final _clang_Cursor_isMacroBuiltinPtr = - _lookup>( + _lookup>( 'clang_Cursor_isMacroBuiltin', ); late final _clang_Cursor_isMacroBuiltin = _clang_Cursor_isMacroBuiltinPtr - .asFunction(); + .asFunction(); /// Determine whether a CXCursor that is a macro, is /// function like. @@ -848,12 +863,11 @@ class LibClang { } late final _clang_Cursor_isMacroFunctionLikePtr = - _lookup>( + _lookup>( 'clang_Cursor_isMacroFunctionLike', ); late final _clang_Cursor_isMacroFunctionLike = - _clang_Cursor_isMacroFunctionLikePtr - .asFunction(); + _clang_Cursor_isMacroFunctionLikePtr.asFunction(); /// Returns non-zero if \p cursor is null. int clang_Cursor_isNull(CXCursor cursor) { @@ -861,11 +875,11 @@ class LibClang { } late final _clang_Cursor_isNullPtr = - _lookup>( + _lookup>( 'clang_Cursor_isNull', ); late final _clang_Cursor_isNull = _clang_Cursor_isNullPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents an Objective-C method or property /// declaration, return non-zero if the declaration was affected by "\@optional". @@ -875,11 +889,11 @@ class LibClang { } late final _clang_Cursor_isObjCOptionalPtr = - _lookup>( + _lookup>( 'clang_Cursor_isObjCOptional', ); late final _clang_Cursor_isObjCOptional = _clang_Cursor_isObjCOptionalPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given cursor is a variadic function or method. int clang_Cursor_isVariadic(CXCursor C) { @@ -887,11 +901,11 @@ class LibClang { } late final _clang_Cursor_isVariadicPtr = - _lookup>( + _lookup>( 'clang_Cursor_isVariadic', ); late final _clang_Cursor_isVariadic = _clang_Cursor_isVariadicPtr - .asFunction(); + .asFunction(); /// Determine if an enum declaration refers to a scoped enum. int clang_EnumDecl_isScoped(CXCursor C) { @@ -899,11 +913,11 @@ class LibClang { } late final _clang_EnumDecl_isScopedPtr = - _lookup>( + _lookup>( 'clang_EnumDecl_isScoped', ); late final _clang_EnumDecl_isScoped = _clang_EnumDecl_isScopedPtr - .asFunction(); + .asFunction(); /// Disposes the created Eval memory. void clang_EvalResult_dispose(CXEvalResult E) { @@ -911,11 +925,11 @@ class LibClang { } late final _clang_EvalResult_disposePtr = - _lookup>( + _lookup>( 'clang_EvalResult_dispose', ); late final _clang_EvalResult_dispose = _clang_EvalResult_disposePtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as double if the /// kind is double. @@ -924,11 +938,11 @@ class LibClang { } late final _clang_EvalResult_getAsDoublePtr = - _lookup>( + _lookup>( 'clang_EvalResult_getAsDouble', ); late final _clang_EvalResult_getAsDouble = _clang_EvalResult_getAsDoublePtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as integer if the /// kind is Int. @@ -937,11 +951,11 @@ class LibClang { } late final _clang_EvalResult_getAsIntPtr = - _lookup>( + _lookup>( 'clang_EvalResult_getAsInt', ); late final _clang_EvalResult_getAsInt = _clang_EvalResult_getAsIntPtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as a long long integer if the /// kind is Int. This prevents overflows that may happen if the result is @@ -951,12 +965,12 @@ class LibClang { } late final _clang_EvalResult_getAsLongLongPtr = - _lookup>( + _lookup>( 'clang_EvalResult_getAsLongLong', ); late final _clang_EvalResult_getAsLongLong = _clang_EvalResult_getAsLongLongPtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as a constant string if the /// kind is other than Int or float. User must not free this pointer, @@ -967,11 +981,11 @@ class LibClang { } late final _clang_EvalResult_getAsStrPtr = - _lookup>( + _lookup Function(CXEvalResult)>>( 'clang_EvalResult_getAsStr', ); late final _clang_EvalResult_getAsStr = _clang_EvalResult_getAsStrPtr - .asFunction(); + .asFunction Function(CXEvalResult)>(); /// Returns the evaluation result as an unsigned integer if /// the kind is Int and clang_EvalResult_isUnsignedInt is non-zero. @@ -980,12 +994,12 @@ class LibClang { } late final _clang_EvalResult_getAsUnsignedPtr = - _lookup>( + _lookup>( 'clang_EvalResult_getAsUnsigned', ); late final _clang_EvalResult_getAsUnsigned = _clang_EvalResult_getAsUnsignedPtr - .asFunction(); + .asFunction(); /// Returns the kind of the evaluated result. CXEvalResultKind clang_EvalResult_getKind(CXEvalResult E) { @@ -993,11 +1007,11 @@ class LibClang { } late final _clang_EvalResult_getKindPtr = - _lookup>( + _lookup>( 'clang_EvalResult_getKind', ); late final _clang_EvalResult_getKind = _clang_EvalResult_getKindPtr - .asFunction(); + .asFunction(); /// Returns a non-zero value if the kind is Int and the evaluation /// result resulted in an unsigned integer. @@ -1006,12 +1020,12 @@ class LibClang { } late final _clang_EvalResult_isUnsignedIntPtr = - _lookup>( + _lookup>( 'clang_EvalResult_isUnsignedInt', ); late final _clang_EvalResult_isUnsignedInt = _clang_EvalResult_isUnsignedIntPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the \c file1 and \c file2 point to the same file, /// or they are both NULL. @@ -1020,11 +1034,11 @@ class LibClang { } late final _clang_File_isEqualPtr = - _lookup>( + _lookup>( 'clang_File_isEqual', ); late final _clang_File_isEqual = _clang_File_isEqualPtr - .asFunction(); + .asFunction(); /// Returns the real path name of \c file. /// @@ -1034,11 +1048,11 @@ class LibClang { } late final _clang_File_tryGetRealPathNamePtr = - _lookup>( + _lookup>( 'clang_File_tryGetRealPathName', ); late final _clang_File_tryGetRealPathName = _clang_File_tryGetRealPathNamePtr - .asFunction(); + .asFunction(); /// An indexing action/session, to be applied to one or multiple /// translation units. @@ -1049,11 +1063,11 @@ class LibClang { } late final _clang_IndexAction_createPtr = - _lookup>( + _lookup>( 'clang_IndexAction_create', ); late final _clang_IndexAction_create = _clang_IndexAction_createPtr - .asFunction(); + .asFunction(); /// Destroy the given index action. /// @@ -1064,11 +1078,11 @@ class LibClang { } late final _clang_IndexAction_disposePtr = - _lookup>( + _lookup>( 'clang_IndexAction_dispose', ); late final _clang_IndexAction_dispose = _clang_IndexAction_disposePtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given source location is in the main file of /// the corresponding translation unit. @@ -1077,11 +1091,11 @@ class LibClang { } late final _clang_Location_isFromMainFilePtr = - _lookup>( + _lookup>( 'clang_Location_isFromMainFile', ); late final _clang_Location_isFromMainFile = _clang_Location_isFromMainFilePtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given source location is in a system header. int clang_Location_isInSystemHeader(CXSourceLocation location) { @@ -1089,12 +1103,12 @@ class LibClang { } late final _clang_Location_isInSystemHeaderPtr = - _lookup>( + _lookup>( 'clang_Location_isInSystemHeader', ); late final _clang_Location_isInSystemHeader = _clang_Location_isInSystemHeaderPtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1104,11 +1118,11 @@ class LibClang { } late final _clang_Module_getASTFilePtr = - _lookup>( + _lookup>( 'clang_Module_getASTFile', ); late final _clang_Module_getASTFile = _clang_Module_getASTFilePtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1118,11 +1132,11 @@ class LibClang { } late final _clang_Module_getFullNamePtr = - _lookup>( + _lookup>( 'clang_Module_getFullName', ); late final _clang_Module_getFullName = _clang_Module_getFullNamePtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1133,11 +1147,11 @@ class LibClang { } late final _clang_Module_getNamePtr = - _lookup>( + _lookup>( 'clang_Module_getName', ); late final _clang_Module_getName = _clang_Module_getNamePtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1150,12 +1164,14 @@ class LibClang { } late final _clang_Module_getNumTopLevelHeadersPtr = - _lookup>( - 'clang_Module_getNumTopLevelHeaders', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXTranslationUnit, CXModule) + > + >('clang_Module_getNumTopLevelHeaders'); late final _clang_Module_getNumTopLevelHeaders = _clang_Module_getNumTopLevelHeadersPtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1166,11 +1182,11 @@ class LibClang { } late final _clang_Module_getParentPtr = - _lookup>( + _lookup>( 'clang_Module_getParent', ); late final _clang_Module_getParent = _clang_Module_getParentPtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1186,12 +1202,14 @@ class LibClang { } late final _clang_Module_getTopLevelHeaderPtr = - _lookup>( - 'clang_Module_getTopLevelHeader', - ); + _lookup< + ffi.NativeFunction< + CXFile Function(CXTranslationUnit, CXModule, ffi.UnsignedInt) + > + >('clang_Module_getTopLevelHeader'); late final _clang_Module_getTopLevelHeader = _clang_Module_getTopLevelHeaderPtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1201,11 +1219,11 @@ class LibClang { } late final _clang_Module_isSystemPtr = - _lookup>( + _lookup>( 'clang_Module_isSystem', ); late final _clang_Module_isSystem = _clang_Module_isSystemPtr - .asFunction(); + .asFunction(); /// Release a printing policy. void clang_PrintingPolicy_dispose(CXPrintingPolicy Policy) { @@ -1213,11 +1231,11 @@ class LibClang { } late final _clang_PrintingPolicy_disposePtr = - _lookup>( + _lookup>( 'clang_PrintingPolicy_dispose', ); late final _clang_PrintingPolicy_dispose = _clang_PrintingPolicy_disposePtr - .asFunction(); + .asFunction(); /// Get a property value for the given printing policy. int clang_PrintingPolicy_getProperty( @@ -1228,12 +1246,14 @@ class LibClang { } late final _clang_PrintingPolicy_getPropertyPtr = - _lookup>( - 'clang_PrintingPolicy_getProperty', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXPrintingPolicy, ffi.UnsignedInt) + > + >('clang_PrintingPolicy_getProperty'); late final _clang_PrintingPolicy_getProperty = _clang_PrintingPolicy_getPropertyPtr - .asFunction(); + .asFunction(); /// Set a property value for the given printing policy. void clang_PrintingPolicy_setProperty( @@ -1245,12 +1265,14 @@ class LibClang { } late final _clang_PrintingPolicy_setPropertyPtr = - _lookup>( - 'clang_PrintingPolicy_setProperty', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function(CXPrintingPolicy, ffi.UnsignedInt, ffi.UnsignedInt) + > + >('clang_PrintingPolicy_setProperty'); late final _clang_PrintingPolicy_setProperty = _clang_PrintingPolicy_setPropertyPtr - .asFunction(); + .asFunction(); /// Returns non-zero if \p range is null. int clang_Range_isNull(CXSourceRange range) { @@ -1258,11 +1280,11 @@ class LibClang { } late final _clang_Range_isNullPtr = - _lookup>( + _lookup>( 'clang_Range_isNull', ); late final _clang_Range_isNull = _clang_Range_isNullPtr - .asFunction(); + .asFunction(); /// Destroy the CXTargetInfo object. void clang_TargetInfo_dispose(CXTargetInfo Info) { @@ -1270,11 +1292,11 @@ class LibClang { } late final _clang_TargetInfo_disposePtr = - _lookup>( + _lookup>( 'clang_TargetInfo_dispose', ); late final _clang_TargetInfo_dispose = _clang_TargetInfo_disposePtr - .asFunction(); + .asFunction(); /// Get the pointer width of the target in bits. /// @@ -1284,12 +1306,12 @@ class LibClang { } late final _clang_TargetInfo_getPointerWidthPtr = - _lookup>( + _lookup>( 'clang_TargetInfo_getPointerWidth', ); late final _clang_TargetInfo_getPointerWidth = _clang_TargetInfo_getPointerWidthPtr - .asFunction(); + .asFunction(); /// Get the normalized target triple as a string. /// @@ -1299,11 +1321,11 @@ class LibClang { } late final _clang_TargetInfo_getTriplePtr = - _lookup>( + _lookup>( 'clang_TargetInfo_getTriple', ); late final _clang_TargetInfo_getTriple = _clang_TargetInfo_getTriplePtr - .asFunction(); + .asFunction(); /// Return the alignment of a type in bytes as per C++[expr.alignof] /// standard. @@ -1320,11 +1342,11 @@ class LibClang { } late final _clang_Type_getAlignOfPtr = - _lookup>( + _lookup>( 'clang_Type_getAlignOf', ); late final _clang_Type_getAlignOf = _clang_Type_getAlignOfPtr - .asFunction(); + .asFunction(); /// Retrieve the ref-qualifier kind of a function or method. /// @@ -1335,11 +1357,11 @@ class LibClang { } late final _clang_Type_getCXXRefQualifierPtr = - _lookup>( + _lookup>( 'clang_Type_getCXXRefQualifier', ); late final _clang_Type_getCXXRefQualifier = _clang_Type_getCXXRefQualifierPtr - .asFunction(); + .asFunction(); /// Return the class type of an member pointer type. /// @@ -1349,11 +1371,11 @@ class LibClang { } late final _clang_Type_getClassTypePtr = - _lookup>( + _lookup>( 'clang_Type_getClassType', ); late final _clang_Type_getClassType = _clang_Type_getClassTypePtr - .asFunction(); + .asFunction(); /// Return the type that was modified by this attributed type. /// @@ -1363,11 +1385,11 @@ class LibClang { } late final _clang_Type_getModifiedTypePtr = - _lookup>( + _lookup>( 'clang_Type_getModifiedType', ); late final _clang_Type_getModifiedType = _clang_Type_getModifiedTypePtr - .asFunction(); + .asFunction(); /// Retrieve the type named by the qualified-id. /// @@ -1377,11 +1399,11 @@ class LibClang { } late final _clang_Type_getNamedTypePtr = - _lookup>( + _lookup>( 'clang_Type_getNamedType', ); late final _clang_Type_getNamedType = _clang_Type_getNamedTypePtr - .asFunction(); + .asFunction(); /// Retrieve the nullability kind of a pointer type. CXTypeNullabilityKind clang_Type_getNullability(CXType T) { @@ -1389,11 +1411,11 @@ class LibClang { } late final _clang_Type_getNullabilityPtr = - _lookup>( + _lookup>( 'clang_Type_getNullability', ); late final _clang_Type_getNullability = _clang_Type_getNullabilityPtr - .asFunction(); + .asFunction(); /// Retrieve the number of protocol references associated with an ObjC object/id. /// @@ -1403,12 +1425,11 @@ class LibClang { } late final _clang_Type_getNumObjCProtocolRefsPtr = - _lookup>( + _lookup>( 'clang_Type_getNumObjCProtocolRefs', ); late final _clang_Type_getNumObjCProtocolRefs = - _clang_Type_getNumObjCProtocolRefsPtr - .asFunction(); + _clang_Type_getNumObjCProtocolRefsPtr.asFunction(); /// Retreive the number of type arguments associated with an ObjC object. /// @@ -1418,11 +1439,11 @@ class LibClang { } late final _clang_Type_getNumObjCTypeArgsPtr = - _lookup>( + _lookup>( 'clang_Type_getNumObjCTypeArgs', ); late final _clang_Type_getNumObjCTypeArgs = _clang_Type_getNumObjCTypeArgsPtr - .asFunction(); + .asFunction(); /// Returns the number of template arguments for given template /// specialization, or -1 if type \c T is not a template specialization. @@ -1431,12 +1452,11 @@ class LibClang { } late final _clang_Type_getNumTemplateArgumentsPtr = - _lookup>( + _lookup>( 'clang_Type_getNumTemplateArguments', ); late final _clang_Type_getNumTemplateArguments = - _clang_Type_getNumTemplateArgumentsPtr - .asFunction(); + _clang_Type_getNumTemplateArgumentsPtr.asFunction(); /// Returns the Objective-C type encoding for the specified CXType. CXString clang_Type_getObjCEncoding(CXType type) { @@ -1444,11 +1464,11 @@ class LibClang { } late final _clang_Type_getObjCEncodingPtr = - _lookup>( + _lookup>( 'clang_Type_getObjCEncoding', ); late final _clang_Type_getObjCEncoding = _clang_Type_getObjCEncodingPtr - .asFunction(); + .asFunction(); /// Retrieves the base type of the ObjCObjectType. /// @@ -1458,12 +1478,12 @@ class LibClang { } late final _clang_Type_getObjCObjectBaseTypePtr = - _lookup>( + _lookup>( 'clang_Type_getObjCObjectBaseType', ); late final _clang_Type_getObjCObjectBaseType = _clang_Type_getObjCObjectBaseTypePtr - .asFunction(); + .asFunction(); /// Retrieve the decl for a protocol reference for an ObjC object/id. /// @@ -1474,12 +1494,12 @@ class LibClang { } late final _clang_Type_getObjCProtocolDeclPtr = - _lookup>( + _lookup>( 'clang_Type_getObjCProtocolDecl', ); late final _clang_Type_getObjCProtocolDecl = _clang_Type_getObjCProtocolDeclPtr - .asFunction(); + .asFunction(); /// Retrieve a type argument associated with an ObjC object. /// @@ -1490,11 +1510,11 @@ class LibClang { } late final _clang_Type_getObjCTypeArgPtr = - _lookup>( + _lookup>( 'clang_Type_getObjCTypeArg', ); late final _clang_Type_getObjCTypeArg = _clang_Type_getObjCTypeArgPtr - .asFunction(); + .asFunction(); /// Return the offset of a field named S in a record of type T in bits /// as it would be returned by __offsetof__ as per C++11[18.2p4] @@ -1512,11 +1532,11 @@ class LibClang { } late final _clang_Type_getOffsetOfPtr = - _lookup>( - 'clang_Type_getOffsetOf', - ); + _lookup< + ffi.NativeFunction)> + >('clang_Type_getOffsetOf'); late final _clang_Type_getOffsetOf = _clang_Type_getOffsetOfPtr - .asFunction(); + .asFunction)>(); /// Return the size of a type in bytes as per C++[expr.sizeof] standard. /// @@ -1530,11 +1550,11 @@ class LibClang { } late final _clang_Type_getSizeOfPtr = - _lookup>( + _lookup>( 'clang_Type_getSizeOf', ); late final _clang_Type_getSizeOf = _clang_Type_getSizeOfPtr - .asFunction(); + .asFunction(); /// Returns the type template argument of a template class specialization /// at given index. @@ -1546,12 +1566,12 @@ class LibClang { } late final _clang_Type_getTemplateArgumentAsTypePtr = - _lookup>( + _lookup>( 'clang_Type_getTemplateArgumentAsType', ); late final _clang_Type_getTemplateArgumentAsType = _clang_Type_getTemplateArgumentAsTypePtr - .asFunction(); + .asFunction(); /// Determine if a typedef is 'transparent' tag. /// @@ -1564,12 +1584,11 @@ class LibClang { } late final _clang_Type_isTransparentTagTypedefPtr = - _lookup>( + _lookup>( 'clang_Type_isTransparentTagTypedef', ); late final _clang_Type_isTransparentTagTypedef = - _clang_Type_isTransparentTagTypedefPtr - .asFunction(); + _clang_Type_isTransparentTagTypedefPtr.asFunction(); /// Visit the fields of a particular type. /// @@ -1597,11 +1616,13 @@ class LibClang { } late final _clang_Type_visitFieldsPtr = - _lookup>( - 'clang_Type_visitFields', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXType, CXFieldVisitor, CXClientData) + > + >('clang_Type_visitFields'); late final _clang_Type_visitFields = _clang_Type_visitFieldsPtr - .asFunction(); + .asFunction(); /// Annotate the given set of tokens by providing cursors for each token /// that can be mapped to a specific entity within the abstract syntax tree. @@ -1641,11 +1662,25 @@ class LibClang { } late final _clang_annotateTokensPtr = - _lookup>( - 'clang_annotateTokens', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_annotateTokens'); late final _clang_annotateTokens = _clang_annotateTokensPtr - .asFunction(); + .asFunction< + void Function( + CXTranslationUnit, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); /// Perform code completion at a given location in a translation unit. /// @@ -1734,11 +1769,31 @@ class LibClang { } late final _clang_codeCompleteAtPtr = - _lookup>( - 'clang_codeCompleteAt', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + >('clang_codeCompleteAt'); late final _clang_codeCompleteAt = _clang_codeCompleteAtPtr - .asFunction(); + .asFunction< + ffi.Pointer Function( + CXTranslationUnit, + ffi.Pointer, + int, + int, + ffi.Pointer, + int, + int, + ) + >(); /// Returns the cursor kind for the container for the current code /// completion context. The container is only guaranteed to be set for @@ -1764,12 +1819,22 @@ class LibClang { } late final _clang_codeCompleteGetContainerKindPtr = - _lookup>( - 'clang_codeCompleteGetContainerKind', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_codeCompleteGetContainerKind'); late final _clang_codeCompleteGetContainerKind = _clang_codeCompleteGetContainerKindPtr - .asFunction(); + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Returns the USR for the container for the current code completion /// context. If there is not a container for the current context, this @@ -1785,12 +1850,14 @@ class LibClang { } late final _clang_codeCompleteGetContainerUSRPtr = - _lookup>( - 'clang_codeCompleteGetContainerUSR', - ); + _lookup< + ffi.NativeFunction< + CXString Function(ffi.Pointer) + > + >('clang_codeCompleteGetContainerUSR'); late final _clang_codeCompleteGetContainerUSR = _clang_codeCompleteGetContainerUSRPtr - .asFunction(); + .asFunction)>(); /// Determines what completions are appropriate for the context /// the given code completion. @@ -1806,11 +1873,13 @@ class LibClang { } late final _clang_codeCompleteGetContextsPtr = - _lookup>( - 'clang_codeCompleteGetContexts', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedLongLong Function(ffi.Pointer) + > + >('clang_codeCompleteGetContexts'); late final _clang_codeCompleteGetContexts = _clang_codeCompleteGetContextsPtr - .asFunction(); + .asFunction)>(); /// Retrieve a diagnostic associated with the given code completion. /// @@ -1827,12 +1896,19 @@ class LibClang { } late final _clang_codeCompleteGetDiagnosticPtr = - _lookup>( - 'clang_codeCompleteGetDiagnostic', - ); + _lookup< + ffi.NativeFunction< + CXDiagnostic Function( + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_codeCompleteGetDiagnostic'); late final _clang_codeCompleteGetDiagnostic = _clang_codeCompleteGetDiagnosticPtr - .asFunction(); + .asFunction< + CXDiagnostic Function(ffi.Pointer, int) + >(); /// Determine the number of diagnostics produced prior to the /// location where code completion was performed. @@ -1843,12 +1919,14 @@ class LibClang { } late final _clang_codeCompleteGetNumDiagnosticsPtr = - _lookup>( - 'clang_codeCompleteGetNumDiagnostics', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(ffi.Pointer) + > + >('clang_codeCompleteGetNumDiagnostics'); late final _clang_codeCompleteGetNumDiagnostics = _clang_codeCompleteGetNumDiagnosticsPtr - .asFunction(); + .asFunction)>(); /// Returns the currently-entered selector for an Objective-C message /// send, formatted like "initWithFoo:bar:". Only guaranteed to return a @@ -1866,12 +1944,14 @@ class LibClang { } late final _clang_codeCompleteGetObjCSelectorPtr = - _lookup>( - 'clang_codeCompleteGetObjCSelector', - ); + _lookup< + ffi.NativeFunction< + CXString Function(ffi.Pointer) + > + >('clang_codeCompleteGetObjCSelector'); late final _clang_codeCompleteGetObjCSelector = _clang_codeCompleteGetObjCSelectorPtr - .asFunction(); + .asFunction)>(); /// Construct a USR for a specified Objective-C category. CXString clang_constructUSR_ObjCCategory( @@ -1882,12 +1962,16 @@ class LibClang { } late final _clang_constructUSR_ObjCCategoryPtr = - _lookup>( - 'clang_constructUSR_ObjCCategory', - ); + _lookup< + ffi.NativeFunction< + CXString Function(ffi.Pointer, ffi.Pointer) + > + >('clang_constructUSR_ObjCCategory'); late final _clang_constructUSR_ObjCCategory = _clang_constructUSR_ObjCCategoryPtr - .asFunction(); + .asFunction< + CXString Function(ffi.Pointer, ffi.Pointer) + >(); /// Construct a USR for a specified Objective-C class. CXString clang_constructUSR_ObjCClass(ffi.Pointer class_name) { @@ -1895,11 +1979,11 @@ class LibClang { } late final _clang_constructUSR_ObjCClassPtr = - _lookup>( + _lookup)>>( 'clang_constructUSR_ObjCClass', ); late final _clang_constructUSR_ObjCClass = _clang_constructUSR_ObjCClassPtr - .asFunction(); + .asFunction)>(); /// Construct a USR for a specified Objective-C instance variable and /// the USR for its containing class. @@ -1911,11 +1995,11 @@ class LibClang { } late final _clang_constructUSR_ObjCIvarPtr = - _lookup>( - 'clang_constructUSR_ObjCIvar', - ); + _lookup< + ffi.NativeFunction, CXString)> + >('clang_constructUSR_ObjCIvar'); late final _clang_constructUSR_ObjCIvar = _clang_constructUSR_ObjCIvarPtr - .asFunction(); + .asFunction, CXString)>(); /// Construct a USR for a specified Objective-C method and /// the USR for its containing class. @@ -1928,11 +2012,13 @@ class LibClang { } late final _clang_constructUSR_ObjCMethodPtr = - _lookup>( - 'clang_constructUSR_ObjCMethod', - ); + _lookup< + ffi.NativeFunction< + CXString Function(ffi.Pointer, ffi.UnsignedInt, CXString) + > + >('clang_constructUSR_ObjCMethod'); late final _clang_constructUSR_ObjCMethod = _clang_constructUSR_ObjCMethodPtr - .asFunction(); + .asFunction, int, CXString)>(); /// Construct a USR for a specified Objective-C property and the USR /// for its containing class. @@ -1944,12 +2030,12 @@ class LibClang { } late final _clang_constructUSR_ObjCPropertyPtr = - _lookup>( - 'clang_constructUSR_ObjCProperty', - ); + _lookup< + ffi.NativeFunction, CXString)> + >('clang_constructUSR_ObjCProperty'); late final _clang_constructUSR_ObjCProperty = _clang_constructUSR_ObjCPropertyPtr - .asFunction(); + .asFunction, CXString)>(); /// Construct a USR for a specified Objective-C protocol. CXString clang_constructUSR_ObjCProtocol( @@ -1959,12 +2045,12 @@ class LibClang { } late final _clang_constructUSR_ObjCProtocolPtr = - _lookup>( + _lookup)>>( 'clang_constructUSR_ObjCProtocol', ); late final _clang_constructUSR_ObjCProtocol = _clang_constructUSR_ObjCProtocolPtr - .asFunction(); + .asFunction)>(); /// Creates an empty CXCursorSet. CXCursorSet clang_createCXCursorSet() { @@ -1972,11 +2058,11 @@ class LibClang { } late final _clang_createCXCursorSetPtr = - _lookup>( + _lookup>( 'clang_createCXCursorSet', ); late final _clang_createCXCursorSet = _clang_createCXCursorSetPtr - .asFunction(); + .asFunction(); /// Provides a shared context for creating translation units. /// @@ -2024,9 +2110,11 @@ class LibClang { } late final _clang_createIndexPtr = - _lookup>('clang_createIndex'); + _lookup>( + 'clang_createIndex', + ); late final _clang_createIndex = _clang_createIndexPtr - .asFunction(); + .asFunction(); /// Same as \c clang_createTranslationUnit2, but returns /// the \c CXTranslationUnit instead of an error code. In case of an error this @@ -2040,11 +2128,13 @@ class LibClang { } late final _clang_createTranslationUnitPtr = - _lookup>( - 'clang_createTranslationUnit', - ); + _lookup< + ffi.NativeFunction< + CXTranslationUnit Function(CXIndex, ffi.Pointer) + > + >('clang_createTranslationUnit'); late final _clang_createTranslationUnit = _clang_createTranslationUnitPtr - .asFunction(); + .asFunction)>(); /// Create a translation unit from an AST file (\c -emit-ast). /// @@ -2063,11 +2153,23 @@ class LibClang { } late final _clang_createTranslationUnit2Ptr = - _lookup>( - 'clang_createTranslationUnit2', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXIndex, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_createTranslationUnit2'); late final _clang_createTranslationUnit2 = _clang_createTranslationUnit2Ptr - .asFunction(); + .asFunction< + int Function( + CXIndex, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Return the CXTranslationUnit for a given source file and the provided /// command line arguments one would pass to the compiler. @@ -2127,11 +2229,29 @@ class LibClang { late final _clang_createTranslationUnitFromSourceFilePtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + CXTranslationUnit Function( + CXIndex, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.UnsignedInt, + ffi.Pointer, + ) + > >('clang_createTranslationUnitFromSourceFile'); late final _clang_createTranslationUnitFromSourceFile = _clang_createTranslationUnitFromSourceFilePtr - .asFunction(); + .asFunction< + CXTranslationUnit Function( + CXIndex, + ffi.Pointer, + int, + ffi.Pointer>, + int, + ffi.Pointer, + ) + >(); /// Returns a default set of code-completion options that can be /// passed to\c clang_codeCompleteAt(). @@ -2140,12 +2260,11 @@ class LibClang { } late final _clang_defaultCodeCompleteOptionsPtr = - _lookup>( + _lookup>( 'clang_defaultCodeCompleteOptions', ); late final _clang_defaultCodeCompleteOptions = - _clang_defaultCodeCompleteOptionsPtr - .asFunction(); + _clang_defaultCodeCompleteOptionsPtr.asFunction(); /// Retrieve the set of display options most similar to the /// default behavior of the clang compiler. @@ -2157,12 +2276,11 @@ class LibClang { } late final _clang_defaultDiagnosticDisplayOptionsPtr = - _lookup>( + _lookup>( 'clang_defaultDiagnosticDisplayOptions', ); late final _clang_defaultDiagnosticDisplayOptions = - _clang_defaultDiagnosticDisplayOptionsPtr - .asFunction(); + _clang_defaultDiagnosticDisplayOptionsPtr.asFunction(); /// Returns the set of flags that is suitable for parsing a translation /// unit that is being edited. @@ -2179,12 +2297,12 @@ class LibClang { } late final _clang_defaultEditingTranslationUnitOptionsPtr = - _lookup< - ffi.NativeFunction - >('clang_defaultEditingTranslationUnitOptions'); + _lookup>( + 'clang_defaultEditingTranslationUnitOptions', + ); late final _clang_defaultEditingTranslationUnitOptions = _clang_defaultEditingTranslationUnitOptionsPtr - .asFunction(); + .asFunction(); /// Returns the set of flags that is suitable for reparsing a translation /// unit. @@ -2199,11 +2317,11 @@ class LibClang { } late final _clang_defaultReparseOptionsPtr = - _lookup>( + _lookup>( 'clang_defaultReparseOptions', ); late final _clang_defaultReparseOptions = _clang_defaultReparseOptionsPtr - .asFunction(); + .asFunction(); /// Returns the set of flags that is suitable for saving a translation /// unit. @@ -2217,11 +2335,11 @@ class LibClang { } late final _clang_defaultSaveOptionsPtr = - _lookup>( + _lookup>( 'clang_defaultSaveOptions', ); late final _clang_defaultSaveOptions = _clang_defaultSaveOptionsPtr - .asFunction(); + .asFunction(); /// Disposes a CXCursorSet and releases its associated memory. void clang_disposeCXCursorSet(CXCursorSet cset) { @@ -2229,11 +2347,11 @@ class LibClang { } late final _clang_disposeCXCursorSetPtr = - _lookup>( + _lookup>( 'clang_disposeCXCursorSet', ); late final _clang_disposeCXCursorSet = _clang_disposeCXCursorSetPtr - .asFunction(); + .asFunction(); /// Free the memory associated with a \c CXPlatformAvailability structure. void clang_disposeCXPlatformAvailability( @@ -2243,24 +2361,26 @@ class LibClang { } late final _clang_disposeCXPlatformAvailabilityPtr = - _lookup>( - 'clang_disposeCXPlatformAvailability', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >('clang_disposeCXPlatformAvailability'); late final _clang_disposeCXPlatformAvailability = _clang_disposeCXPlatformAvailabilityPtr - .asFunction(); + .asFunction)>(); void clang_disposeCXTUResourceUsage(CXTUResourceUsage usage) { return _clang_disposeCXTUResourceUsage(usage); } late final _clang_disposeCXTUResourceUsagePtr = - _lookup>( + _lookup>( 'clang_disposeCXTUResourceUsage', ); late final _clang_disposeCXTUResourceUsage = _clang_disposeCXTUResourceUsagePtr - .asFunction(); + .asFunction(); /// Free the given set of code-completion results. void clang_disposeCodeCompleteResults( @@ -2270,12 +2390,14 @@ class LibClang { } late final _clang_disposeCodeCompleteResultsPtr = - _lookup>( - 'clang_disposeCodeCompleteResults', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer) + > + >('clang_disposeCodeCompleteResults'); late final _clang_disposeCodeCompleteResults = _clang_disposeCodeCompleteResultsPtr - .asFunction(); + .asFunction)>(); /// Destroy a diagnostic. void clang_disposeDiagnostic(CXDiagnostic Diagnostic) { @@ -2283,11 +2405,11 @@ class LibClang { } late final _clang_disposeDiagnosticPtr = - _lookup>( + _lookup>( 'clang_disposeDiagnostic', ); late final _clang_disposeDiagnostic = _clang_disposeDiagnosticPtr - .asFunction(); + .asFunction(); /// Release a CXDiagnosticSet and all of its contained diagnostics. void clang_disposeDiagnosticSet(CXDiagnosticSet Diags) { @@ -2295,11 +2417,11 @@ class LibClang { } late final _clang_disposeDiagnosticSetPtr = - _lookup>( + _lookup>( 'clang_disposeDiagnosticSet', ); late final _clang_disposeDiagnosticSet = _clang_disposeDiagnosticSetPtr - .asFunction(); + .asFunction(); /// Destroy the given index. /// @@ -2310,11 +2432,11 @@ class LibClang { } late final _clang_disposeIndexPtr = - _lookup>( + _lookup>( 'clang_disposeIndex', ); late final _clang_disposeIndex = _clang_disposeIndexPtr - .asFunction(); + .asFunction(); /// Free the set of overridden cursors returned by \c /// clang_getOverriddenCursors(). @@ -2323,12 +2445,12 @@ class LibClang { } late final _clang_disposeOverriddenCursorsPtr = - _lookup>( + _lookup)>>( 'clang_disposeOverriddenCursors', ); late final _clang_disposeOverriddenCursors = _clang_disposeOverriddenCursorsPtr - .asFunction(); + .asFunction)>(); /// Destroy the given \c CXSourceRangeList. void clang_disposeSourceRangeList(ffi.Pointer ranges) { @@ -2336,11 +2458,11 @@ class LibClang { } late final _clang_disposeSourceRangeListPtr = - _lookup>( - 'clang_disposeSourceRangeList', - ); + _lookup< + ffi.NativeFunction)> + >('clang_disposeSourceRangeList'); late final _clang_disposeSourceRangeList = _clang_disposeSourceRangeListPtr - .asFunction(); + .asFunction)>(); /// Free the given string. void clang_disposeString(CXString string) { @@ -2348,11 +2470,11 @@ class LibClang { } late final _clang_disposeStringPtr = - _lookup>( + _lookup>( 'clang_disposeString', ); late final _clang_disposeString = _clang_disposeStringPtr - .asFunction(); + .asFunction(); /// Free the given string set. void clang_disposeStringSet(ffi.Pointer set) { @@ -2360,11 +2482,11 @@ class LibClang { } late final _clang_disposeStringSetPtr = - _lookup>( + _lookup)>>( 'clang_disposeStringSet', ); late final _clang_disposeStringSet = _clang_disposeStringSetPtr - .asFunction(); + .asFunction)>(); /// Free the given set of tokens. void clang_disposeTokens( @@ -2376,11 +2498,19 @@ class LibClang { } late final _clang_disposeTokensPtr = - _lookup>( - 'clang_disposeTokens', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_disposeTokens'); late final _clang_disposeTokens = _clang_disposeTokensPtr - .asFunction(); + .asFunction< + void Function(CXTranslationUnit, ffi.Pointer, int) + >(); /// Destroy the specified CXTranslationUnit object. void clang_disposeTranslationUnit(CXTranslationUnit arg0) { @@ -2388,22 +2518,22 @@ class LibClang { } late final _clang_disposeTranslationUnitPtr = - _lookup>( + _lookup>( 'clang_disposeTranslationUnit', ); late final _clang_disposeTranslationUnit = _clang_disposeTranslationUnitPtr - .asFunction(); + .asFunction(); void clang_enableStackTraces() { return _clang_enableStackTraces(); } late final _clang_enableStackTracesPtr = - _lookup>( + _lookup>( 'clang_enableStackTraces', ); late final _clang_enableStackTraces = _clang_enableStackTracesPtr - .asFunction(); + .asFunction(); /// Determine whether two cursors are equivalent. int clang_equalCursors(CXCursor arg0, CXCursor arg1) { @@ -2411,11 +2541,11 @@ class LibClang { } late final _clang_equalCursorsPtr = - _lookup>( + _lookup>( 'clang_equalCursors', ); late final _clang_equalCursors = _clang_equalCursorsPtr - .asFunction(); + .asFunction(); /// Determine whether two source locations, which must refer into /// the same translation unit, refer to exactly the same point in the source @@ -2428,11 +2558,13 @@ class LibClang { } late final _clang_equalLocationsPtr = - _lookup>( - 'clang_equalLocations', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXSourceLocation, CXSourceLocation) + > + >('clang_equalLocations'); late final _clang_equalLocations = _clang_equalLocationsPtr - .asFunction(); + .asFunction(); /// Determine whether two ranges are equivalent. /// @@ -2442,9 +2574,13 @@ class LibClang { } late final _clang_equalRangesPtr = - _lookup>('clang_equalRanges'); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXSourceRange, CXSourceRange) + > + >('clang_equalRanges'); late final _clang_equalRanges = _clang_equalRangesPtr - .asFunction(); + .asFunction(); /// Determine whether two CXTypes represent the same type. /// @@ -2455,9 +2591,11 @@ class LibClang { } late final _clang_equalTypesPtr = - _lookup>('clang_equalTypes'); + _lookup>( + 'clang_equalTypes', + ); late final _clang_equalTypes = _clang_equalTypesPtr - .asFunction(); + .asFunction(); void clang_executeOnThread( ffi.Pointer)>> @@ -2469,11 +2607,27 @@ class LibClang { } late final _clang_executeOnThreadPtr = - _lookup>( - 'clang_executeOnThread', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_executeOnThread'); late final _clang_executeOnThread = _clang_executeOnThreadPtr - .asFunction(); + .asFunction< + void Function( + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + int, + ) + >(); /// Find #import/#include directives in a specific file. /// @@ -2494,11 +2648,19 @@ class LibClang { } late final _clang_findIncludesInFilePtr = - _lookup>( - 'clang_findIncludesInFile', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXTranslationUnit, + CXFile, + CXCursorAndRangeVisitor, + ) + > + >('clang_findIncludesInFile'); late final _clang_findIncludesInFile = _clang_findIncludesInFilePtr - .asFunction(); + .asFunction< + int Function(CXTranslationUnit, CXFile, CXCursorAndRangeVisitor) + >(); /// Find references of a declaration in a specific file. /// @@ -2523,11 +2685,13 @@ class LibClang { } late final _clang_findReferencesInFilePtr = - _lookup>( - 'clang_findReferencesInFile', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor, CXFile, CXCursorAndRangeVisitor) + > + >('clang_findReferencesInFile'); late final _clang_findReferencesInFile = _clang_findReferencesInFilePtr - .asFunction(); + .asFunction(); /// Format the given diagnostic in a manner that is suitable for display. /// @@ -2547,11 +2711,11 @@ class LibClang { } late final _clang_formatDiagnosticPtr = - _lookup>( - 'clang_formatDiagnostic', - ); + _lookup< + ffi.NativeFunction + >('clang_formatDiagnostic'); late final _clang_formatDiagnostic = _clang_formatDiagnosticPtr - .asFunction(); + .asFunction(); /// Returns the address space of the given type. int clang_getAddressSpace(CXType T) { @@ -2559,11 +2723,11 @@ class LibClang { } late final _clang_getAddressSpacePtr = - _lookup>( + _lookup>( 'clang_getAddressSpace', ); late final _clang_getAddressSpace = _clang_getAddressSpacePtr - .asFunction(); + .asFunction(); /// Retrieve all ranges from all files that were skipped by the /// preprocessor. @@ -2577,11 +2741,13 @@ class LibClang { } late final _clang_getAllSkippedRangesPtr = - _lookup>( - 'clang_getAllSkippedRanges', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CXTranslationUnit) + > + >('clang_getAllSkippedRanges'); late final _clang_getAllSkippedRanges = _clang_getAllSkippedRangesPtr - .asFunction(); + .asFunction Function(CXTranslationUnit)>(); /// Retrieve the type of a parameter of a function type. /// @@ -2592,9 +2758,11 @@ class LibClang { } late final _clang_getArgTypePtr = - _lookup>('clang_getArgType'); + _lookup>( + 'clang_getArgType', + ); late final _clang_getArgType = _clang_getArgTypePtr - .asFunction(); + .asFunction(); /// Return the element type of an array type. /// @@ -2604,11 +2772,11 @@ class LibClang { } late final _clang_getArrayElementTypePtr = - _lookup>( + _lookup>( 'clang_getArrayElementType', ); late final _clang_getArrayElementType = _clang_getArrayElementTypePtr - .asFunction(); + .asFunction(); /// Return the array size of a constant array. /// @@ -2618,11 +2786,11 @@ class LibClang { } late final _clang_getArraySizePtr = - _lookup>( + _lookup>( 'clang_getArraySize', ); late final _clang_getArraySize = _clang_getArraySizePtr - .asFunction(); + .asFunction(); /// Retrieve the character data associated with the given string. ffi.Pointer clang_getCString(CXString string) { @@ -2630,9 +2798,11 @@ class LibClang { } late final _clang_getCStringPtr = - _lookup>('clang_getCString'); + _lookup Function(CXString)>>( + 'clang_getCString', + ); late final _clang_getCString = _clang_getCStringPtr - .asFunction(); + .asFunction Function(CXString)>(); /// Return the memory usage of a translation unit. This object /// should be released with clang_disposeCXTUResourceUsage(). @@ -2641,11 +2811,11 @@ class LibClang { } late final _clang_getCXTUResourceUsagePtr = - _lookup>( - 'clang_getCXTUResourceUsage', - ); + _lookup< + ffi.NativeFunction + >('clang_getCXTUResourceUsage'); late final _clang_getCXTUResourceUsage = _clang_getCXTUResourceUsagePtr - .asFunction(); + .asFunction(); /// Returns the access control level for the referenced object. /// @@ -2657,11 +2827,11 @@ class LibClang { } late final _clang_getCXXAccessSpecifierPtr = - _lookup>( + _lookup>( 'clang_getCXXAccessSpecifier', ); late final _clang_getCXXAccessSpecifier = _clang_getCXXAccessSpecifierPtr - .asFunction(); + .asFunction(); /// Retrieve the canonical cursor corresponding to the given cursor. /// @@ -2690,11 +2860,11 @@ class LibClang { } late final _clang_getCanonicalCursorPtr = - _lookup>( + _lookup>( 'clang_getCanonicalCursor', ); late final _clang_getCanonicalCursor = _clang_getCanonicalCursorPtr - .asFunction(); + .asFunction(); /// Return the canonical type for a CXType. /// @@ -2707,11 +2877,11 @@ class LibClang { } late final _clang_getCanonicalTypePtr = - _lookup>( + _lookup>( 'clang_getCanonicalType', ); late final _clang_getCanonicalType = _clang_getCanonicalTypePtr - .asFunction(); + .asFunction(); /// Retrieve the child diagnostics of a CXDiagnostic. /// @@ -2722,11 +2892,11 @@ class LibClang { } late final _clang_getChildDiagnosticsPtr = - _lookup>( + _lookup>( 'clang_getChildDiagnostics', ); late final _clang_getChildDiagnostics = _clang_getChildDiagnosticsPtr - .asFunction(); + .asFunction(); /// Return a version string, suitable for showing to a user, but not /// intended to be parsed (the format is not guaranteed to be stable). @@ -2735,11 +2905,9 @@ class LibClang { } late final _clang_getClangVersionPtr = - _lookup>( - 'clang_getClangVersion', - ); + _lookup>('clang_getClangVersion'); late final _clang_getClangVersion = _clang_getClangVersionPtr - .asFunction(); + .asFunction(); /// Retrieve the annotation associated with the given completion string. /// @@ -2758,11 +2926,13 @@ class LibClang { } late final _clang_getCompletionAnnotationPtr = - _lookup>( - 'clang_getCompletionAnnotation', - ); + _lookup< + ffi.NativeFunction< + CXString Function(CXCompletionString, ffi.UnsignedInt) + > + >('clang_getCompletionAnnotation'); late final _clang_getCompletionAnnotation = _clang_getCompletionAnnotationPtr - .asFunction(); + .asFunction(); /// Determine the availability of the entity that this code-completion /// string refers to. @@ -2779,12 +2949,12 @@ class LibClang { } late final _clang_getCompletionAvailabilityPtr = - _lookup>( + _lookup>( 'clang_getCompletionAvailability', ); late final _clang_getCompletionAvailability = _clang_getCompletionAvailabilityPtr - .asFunction(); + .asFunction(); /// Retrieve the brief documentation comment attached to the declaration /// that corresponds to the given completion string. @@ -2795,12 +2965,12 @@ class LibClang { } late final _clang_getCompletionBriefCommentPtr = - _lookup>( + _lookup>( 'clang_getCompletionBriefComment', ); late final _clang_getCompletionBriefComment = _clang_getCompletionBriefCommentPtr - .asFunction(); + .asFunction(); /// Retrieve the completion string associated with a particular chunk /// within a completion string. @@ -2823,11 +2993,13 @@ class LibClang { late final _clang_getCompletionChunkCompletionStringPtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + CXCompletionString Function(CXCompletionString, ffi.UnsignedInt) + > >('clang_getCompletionChunkCompletionString'); late final _clang_getCompletionChunkCompletionString = _clang_getCompletionChunkCompletionStringPtr - .asFunction(); + .asFunction(); /// Determine the kind of a particular chunk within a completion string. /// @@ -2846,11 +3018,13 @@ class LibClang { } late final _clang_getCompletionChunkKindPtr = - _lookup>( - 'clang_getCompletionChunkKind', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString, ffi.UnsignedInt) + > + >('clang_getCompletionChunkKind'); late final _clang_getCompletionChunkKind = _clang_getCompletionChunkKindPtr - .asFunction(); + .asFunction(); /// Retrieve the text associated with a particular chunk within a /// completion string. @@ -2868,11 +3042,13 @@ class LibClang { } late final _clang_getCompletionChunkTextPtr = - _lookup>( - 'clang_getCompletionChunkText', - ); + _lookup< + ffi.NativeFunction< + CXString Function(CXCompletionString, ffi.UnsignedInt) + > + >('clang_getCompletionChunkText'); late final _clang_getCompletionChunkText = _clang_getCompletionChunkTextPtr - .asFunction(); + .asFunction(); /// Fix-its that *must* be applied before inserting the text for the /// corresponding completion. @@ -2930,11 +3106,25 @@ class LibClang { } late final _clang_getCompletionFixItPtr = - _lookup>( - 'clang_getCompletionFixIt', - ); + _lookup< + ffi.NativeFunction< + CXString Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_getCompletionFixIt'); late final _clang_getCompletionFixIt = _clang_getCompletionFixItPtr - .asFunction(); + .asFunction< + CXString Function( + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); /// Retrieve the number of annotations associated with the given /// completion string. @@ -2948,12 +3138,12 @@ class LibClang { } late final _clang_getCompletionNumAnnotationsPtr = - _lookup>( + _lookup>( 'clang_getCompletionNumAnnotations', ); late final _clang_getCompletionNumAnnotations = _clang_getCompletionNumAnnotationsPtr - .asFunction(); + .asFunction(); /// Retrieve the number of fix-its for the given completion index. /// @@ -2974,11 +3164,16 @@ class LibClang { } late final _clang_getCompletionNumFixItsPtr = - _lookup>( - 'clang_getCompletionNumFixIts', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_getCompletionNumFixIts'); late final _clang_getCompletionNumFixIts = _clang_getCompletionNumFixItsPtr - .asFunction(); + .asFunction, int)>(); /// Retrieve the parent context of the given completion string. /// @@ -3002,11 +3197,15 @@ class LibClang { } late final _clang_getCompletionParentPtr = - _lookup>( - 'clang_getCompletionParent', - ); + _lookup< + ffi.NativeFunction< + CXString Function(CXCompletionString, ffi.Pointer) + > + >('clang_getCompletionParent'); late final _clang_getCompletionParent = _clang_getCompletionParentPtr - .asFunction(); + .asFunction< + CXString Function(CXCompletionString, ffi.Pointer) + >(); /// Determine the priority of this code completion. /// @@ -3023,11 +3222,11 @@ class LibClang { } late final _clang_getCompletionPriorityPtr = - _lookup>( + _lookup>( 'clang_getCompletionPriority', ); late final _clang_getCompletionPriority = _clang_getCompletionPriorityPtr - .asFunction(); + .asFunction(); /// Map a source location to the cursor that describes the entity at that /// location in the source code. @@ -3047,9 +3246,13 @@ class LibClang { } late final _clang_getCursorPtr = - _lookup>('clang_getCursor'); + _lookup< + ffi.NativeFunction< + CXCursor Function(CXTranslationUnit, CXSourceLocation) + > + >('clang_getCursor'); late final _clang_getCursor = _clang_getCursorPtr - .asFunction(); + .asFunction(); /// Determine the availability of the entity that this cursor refers to, /// taking the current target platform into account. @@ -3062,11 +3265,11 @@ class LibClang { } late final _clang_getCursorAvailabilityPtr = - _lookup>( + _lookup>( 'clang_getCursorAvailability', ); late final _clang_getCursorAvailability = _clang_getCursorAvailabilityPtr - .asFunction(); + .asFunction(); /// Retrieve a completion string for an arbitrary declaration or macro /// definition cursor. @@ -3080,12 +3283,12 @@ class LibClang { } late final _clang_getCursorCompletionStringPtr = - _lookup>( + _lookup>( 'clang_getCursorCompletionString', ); late final _clang_getCursorCompletionString = _clang_getCursorCompletionStringPtr - .asFunction(); + .asFunction(); /// For a cursor that is either a reference to or a declaration /// of some entity, retrieve a cursor that describes the definition of @@ -3118,11 +3321,11 @@ class LibClang { } late final _clang_getCursorDefinitionPtr = - _lookup>( + _lookup>( 'clang_getCursorDefinition', ); late final _clang_getCursorDefinition = _clang_getCursorDefinitionPtr - .asFunction(); + .asFunction(); /// Retrieve the display name for the entity referenced by this cursor. /// @@ -3134,11 +3337,11 @@ class LibClang { } late final _clang_getCursorDisplayNamePtr = - _lookup>( + _lookup>( 'clang_getCursorDisplayName', ); late final _clang_getCursorDisplayName = _clang_getCursorDisplayNamePtr - .asFunction(); + .asFunction(); /// Retrieve the exception specification type associated with a given cursor. /// This is a value of type CXCursor_ExceptionSpecificationKind. @@ -3149,12 +3352,12 @@ class LibClang { } late final _clang_getCursorExceptionSpecificationTypePtr = - _lookup< - ffi.NativeFunction - >('clang_getCursorExceptionSpecificationType'); + _lookup>( + 'clang_getCursorExceptionSpecificationType', + ); late final _clang_getCursorExceptionSpecificationType = _clang_getCursorExceptionSpecificationTypePtr - .asFunction(); + .asFunction(); /// Retrieve the physical extent of the source construct referenced by /// the given cursor. @@ -3170,11 +3373,11 @@ class LibClang { } late final _clang_getCursorExtentPtr = - _lookup>( + _lookup>( 'clang_getCursorExtent', ); late final _clang_getCursorExtent = _clang_getCursorExtentPtr - .asFunction(); + .asFunction(); /// Retrieve the kind of the given cursor. CXCursorKind clang_getCursorKind(CXCursor arg0) { @@ -3182,11 +3385,11 @@ class LibClang { } late final _clang_getCursorKindPtr = - _lookup>( + _lookup>( 'clang_getCursorKind', ); late final _clang_getCursorKind = _clang_getCursorKindPtr - .asFunction(); + .asFunction(); /// \defgroup CINDEX_DEBUG Debugging facilities /// @@ -3199,11 +3402,11 @@ class LibClang { } late final _clang_getCursorKindSpellingPtr = - _lookup>( + _lookup>( 'clang_getCursorKindSpelling', ); late final _clang_getCursorKindSpelling = _clang_getCursorKindSpellingPtr - .asFunction(); + .asFunction(); /// Determine the "language" of the entity referred to by a given cursor. CXLanguageKind clang_getCursorLanguage(CXCursor cursor) { @@ -3211,11 +3414,11 @@ class LibClang { } late final _clang_getCursorLanguagePtr = - _lookup>( + _lookup>( 'clang_getCursorLanguage', ); late final _clang_getCursorLanguage = _clang_getCursorLanguagePtr - .asFunction(); + .asFunction(); /// Determine the lexical parent of the given cursor. /// @@ -3254,11 +3457,11 @@ class LibClang { } late final _clang_getCursorLexicalParentPtr = - _lookup>( + _lookup>( 'clang_getCursorLexicalParent', ); late final _clang_getCursorLexicalParent = _clang_getCursorLexicalParentPtr - .asFunction(); + .asFunction(); /// Determine the linkage of the entity referred to by a given cursor. CXLinkageKind clang_getCursorLinkage(CXCursor cursor) { @@ -3266,11 +3469,11 @@ class LibClang { } late final _clang_getCursorLinkagePtr = - _lookup>( + _lookup>( 'clang_getCursorLinkage', ); late final _clang_getCursorLinkage = _clang_getCursorLinkagePtr - .asFunction(); + .asFunction(); /// Retrieve the physical location of the source constructor referenced /// by the given cursor. @@ -3285,11 +3488,11 @@ class LibClang { } late final _clang_getCursorLocationPtr = - _lookup>( + _lookup>( 'clang_getCursorLocation', ); late final _clang_getCursorLocation = _clang_getCursorLocationPtr - .asFunction(); + .asFunction(); /// Determine the availability of the entity that this cursor refers to /// on any platforms for which availability information is known. @@ -3346,12 +3549,32 @@ class LibClang { } late final _clang_getCursorPlatformAvailabilityPtr = - _lookup>( - 'clang_getCursorPlatformAvailability', - ); + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXCursor, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('clang_getCursorPlatformAvailability'); late final _clang_getCursorPlatformAvailability = _clang_getCursorPlatformAvailabilityPtr - .asFunction(); + .asFunction< + int Function( + CXCursor, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); /// Pretty print declarations. /// @@ -3370,11 +3593,11 @@ class LibClang { } late final _clang_getCursorPrettyPrintedPtr = - _lookup>( - 'clang_getCursorPrettyPrinted', - ); + _lookup< + ffi.NativeFunction + >('clang_getCursorPrettyPrinted'); late final _clang_getCursorPrettyPrinted = _clang_getCursorPrettyPrintedPtr - .asFunction(); + .asFunction(); /// Retrieve the default policy for the cursor. /// @@ -3385,11 +3608,11 @@ class LibClang { } late final _clang_getCursorPrintingPolicyPtr = - _lookup>( + _lookup>( 'clang_getCursorPrintingPolicy', ); late final _clang_getCursorPrintingPolicy = _clang_getCursorPrintingPolicyPtr - .asFunction(); + .asFunction(); /// Given a cursor that references something else, return the source range /// covering that reference. @@ -3416,12 +3639,14 @@ class LibClang { } late final _clang_getCursorReferenceNameRangePtr = - _lookup>( - 'clang_getCursorReferenceNameRange', - ); + _lookup< + ffi.NativeFunction< + CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) + > + >('clang_getCursorReferenceNameRange'); late final _clang_getCursorReferenceNameRange = _clang_getCursorReferenceNameRangePtr - .asFunction(); + .asFunction(); /// For a cursor that is a reference, retrieve a cursor representing the /// entity that it references. @@ -3437,11 +3662,11 @@ class LibClang { } late final _clang_getCursorReferencedPtr = - _lookup>( + _lookup>( 'clang_getCursorReferenced', ); late final _clang_getCursorReferenced = _clang_getCursorReferencedPtr - .asFunction(); + .asFunction(); /// Retrieve the return type associated with a given cursor. /// @@ -3451,11 +3676,11 @@ class LibClang { } late final _clang_getCursorResultTypePtr = - _lookup>( + _lookup>( 'clang_getCursorResultType', ); late final _clang_getCursorResultType = _clang_getCursorResultTypePtr - .asFunction(); + .asFunction(); /// Determine the semantic parent of the given cursor. /// @@ -3493,11 +3718,11 @@ class LibClang { } late final _clang_getCursorSemanticParentPtr = - _lookup>( + _lookup>( 'clang_getCursorSemanticParent', ); late final _clang_getCursorSemanticParent = _clang_getCursorSemanticParentPtr - .asFunction(); + .asFunction(); /// Retrieve a name for the entity referenced by this cursor. CXString clang_getCursorSpelling(CXCursor arg0) { @@ -3505,11 +3730,11 @@ class LibClang { } late final _clang_getCursorSpellingPtr = - _lookup>( + _lookup>( 'clang_getCursorSpelling', ); late final _clang_getCursorSpelling = _clang_getCursorSpellingPtr - .asFunction(); + .asFunction(); /// Determine the "thread-local storage (TLS) kind" of the declaration /// referred to by a cursor. @@ -3518,11 +3743,11 @@ class LibClang { } late final _clang_getCursorTLSKindPtr = - _lookup>( + _lookup>( 'clang_getCursorTLSKind', ); late final _clang_getCursorTLSKind = _clang_getCursorTLSKindPtr - .asFunction(); + .asFunction(); /// Retrieve the type of a CXCursor (if any). CXType clang_getCursorType(CXCursor C) { @@ -3530,11 +3755,11 @@ class LibClang { } late final _clang_getCursorTypePtr = - _lookup>( + _lookup>( 'clang_getCursorType', ); late final _clang_getCursorType = _clang_getCursorTypePtr - .asFunction(); + .asFunction(); /// Retrieve a Unified Symbol Resolution (USR) for the entity referenced /// by the given cursor. @@ -3548,11 +3773,11 @@ class LibClang { } late final _clang_getCursorUSRPtr = - _lookup>( + _lookup>( 'clang_getCursorUSR', ); late final _clang_getCursorUSR = _clang_getCursorUSRPtr - .asFunction(); + .asFunction(); /// Describe the visibility of the entity referred to by a cursor. /// @@ -3568,11 +3793,11 @@ class LibClang { } late final _clang_getCursorVisibilityPtr = - _lookup>( + _lookup>( 'clang_getCursorVisibility', ); late final _clang_getCursorVisibility = _clang_getCursorVisibilityPtr - .asFunction(); + .asFunction(); /// Returns the Objective-C type encoding for the specified declaration. CXString clang_getDeclObjCTypeEncoding(CXCursor C) { @@ -3580,11 +3805,11 @@ class LibClang { } late final _clang_getDeclObjCTypeEncodingPtr = - _lookup>( + _lookup>( 'clang_getDeclObjCTypeEncoding', ); late final _clang_getDeclObjCTypeEncoding = _clang_getDeclObjCTypeEncodingPtr - .asFunction(); + .asFunction(); void clang_getDefinitionSpellingAndExtent( CXCursor arg0, @@ -3607,12 +3832,32 @@ class LibClang { } late final _clang_getDefinitionSpellingAndExtentPtr = - _lookup>( - 'clang_getDefinitionSpellingAndExtent', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXCursor, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getDefinitionSpellingAndExtent'); late final _clang_getDefinitionSpellingAndExtent = _clang_getDefinitionSpellingAndExtentPtr - .asFunction(); + .asFunction< + void Function( + CXCursor, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Retrieve a diagnostic associated with the given translation unit. /// @@ -3626,11 +3871,13 @@ class LibClang { } late final _clang_getDiagnosticPtr = - _lookup>( - 'clang_getDiagnostic', - ); + _lookup< + ffi.NativeFunction< + CXDiagnostic Function(CXTranslationUnit, ffi.UnsignedInt) + > + >('clang_getDiagnostic'); late final _clang_getDiagnostic = _clang_getDiagnosticPtr - .asFunction(); + .asFunction(); /// Retrieve the category number for this diagnostic. /// @@ -3645,11 +3892,11 @@ class LibClang { } late final _clang_getDiagnosticCategoryPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticCategory', ); late final _clang_getDiagnosticCategory = _clang_getDiagnosticCategoryPtr - .asFunction(); + .asFunction(); /// Retrieve the name of a particular diagnostic category. This /// is now deprecated. Use clang_getDiagnosticCategoryText() @@ -3665,12 +3912,11 @@ class LibClang { } late final _clang_getDiagnosticCategoryNamePtr = - _lookup>( + _lookup>( 'clang_getDiagnosticCategoryName', ); late final _clang_getDiagnosticCategoryName = - _clang_getDiagnosticCategoryNamePtr - .asFunction(); + _clang_getDiagnosticCategoryNamePtr.asFunction(); /// Retrieve the diagnostic category text for a given diagnostic. /// @@ -3680,12 +3926,12 @@ class LibClang { } late final _clang_getDiagnosticCategoryTextPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticCategoryText', ); late final _clang_getDiagnosticCategoryText = _clang_getDiagnosticCategoryTextPtr - .asFunction(); + .asFunction(); /// Retrieve the replacement information for a given fix-it. /// @@ -3719,11 +3965,19 @@ class LibClang { } late final _clang_getDiagnosticFixItPtr = - _lookup>( - 'clang_getDiagnosticFixIt', - ); + _lookup< + ffi.NativeFunction< + CXString Function( + CXDiagnostic, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_getDiagnosticFixIt'); late final _clang_getDiagnosticFixIt = _clang_getDiagnosticFixItPtr - .asFunction(); + .asFunction< + CXString Function(CXDiagnostic, int, ffi.Pointer) + >(); /// Retrieve a diagnostic associated with the given CXDiagnosticSet. /// @@ -3737,11 +3991,13 @@ class LibClang { } late final _clang_getDiagnosticInSetPtr = - _lookup>( - 'clang_getDiagnosticInSet', - ); + _lookup< + ffi.NativeFunction< + CXDiagnostic Function(CXDiagnosticSet, ffi.UnsignedInt) + > + >('clang_getDiagnosticInSet'); late final _clang_getDiagnosticInSet = _clang_getDiagnosticInSetPtr - .asFunction(); + .asFunction(); /// Retrieve the source location of the given diagnostic. /// @@ -3752,11 +4008,11 @@ class LibClang { } late final _clang_getDiagnosticLocationPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticLocation', ); late final _clang_getDiagnosticLocation = _clang_getDiagnosticLocationPtr - .asFunction(); + .asFunction(); /// Determine the number of fix-it hints associated with the /// given diagnostic. @@ -3765,11 +4021,11 @@ class LibClang { } late final _clang_getDiagnosticNumFixItsPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticNumFixIts', ); late final _clang_getDiagnosticNumFixIts = _clang_getDiagnosticNumFixItsPtr - .asFunction(); + .asFunction(); /// Determine the number of source ranges associated with the given /// diagnostic. @@ -3778,11 +4034,11 @@ class LibClang { } late final _clang_getDiagnosticNumRangesPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticNumRanges', ); late final _clang_getDiagnosticNumRanges = _clang_getDiagnosticNumRangesPtr - .asFunction(); + .asFunction(); /// Retrieve the name of the command-line option that enabled this /// diagnostic. @@ -3802,11 +4058,13 @@ class LibClang { } late final _clang_getDiagnosticOptionPtr = - _lookup>( - 'clang_getDiagnosticOption', - ); + _lookup< + ffi.NativeFunction< + CXString Function(CXDiagnostic, ffi.Pointer) + > + >('clang_getDiagnosticOption'); late final _clang_getDiagnosticOption = _clang_getDiagnosticOptionPtr - .asFunction(); + .asFunction)>(); /// Retrieve a source range associated with the diagnostic. /// @@ -3824,11 +4082,13 @@ class LibClang { } late final _clang_getDiagnosticRangePtr = - _lookup>( - 'clang_getDiagnosticRange', - ); + _lookup< + ffi.NativeFunction< + CXSourceRange Function(CXDiagnostic, ffi.UnsignedInt) + > + >('clang_getDiagnosticRange'); late final _clang_getDiagnosticRange = _clang_getDiagnosticRangePtr - .asFunction(); + .asFunction(); /// Retrieve the complete set of diagnostics associated with a /// translation unit. @@ -3839,11 +4099,11 @@ class LibClang { } late final _clang_getDiagnosticSetFromTUPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticSetFromTU', ); late final _clang_getDiagnosticSetFromTU = _clang_getDiagnosticSetFromTUPtr - .asFunction(); + .asFunction(); /// Determine the severity of the given diagnostic. CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic arg0) { @@ -3851,11 +4111,11 @@ class LibClang { } late final _clang_getDiagnosticSeverityPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticSeverity', ); late final _clang_getDiagnosticSeverity = _clang_getDiagnosticSeverityPtr - .asFunction(); + .asFunction(); /// Retrieve the text of the given diagnostic. CXString clang_getDiagnosticSpelling(CXDiagnostic arg0) { @@ -3863,11 +4123,11 @@ class LibClang { } late final _clang_getDiagnosticSpellingPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticSpelling', ); late final _clang_getDiagnosticSpelling = _clang_getDiagnosticSpellingPtr - .asFunction(); + .asFunction(); /// Return the element type of an array, complex, or vector type. /// @@ -3878,11 +4138,11 @@ class LibClang { } late final _clang_getElementTypePtr = - _lookup>( + _lookup>( 'clang_getElementType', ); late final _clang_getElementType = _clang_getElementTypePtr - .asFunction(); + .asFunction(); /// Retrieve the integer value of an enum constant declaration as an unsigned /// long long. @@ -3895,12 +4155,12 @@ class LibClang { } late final _clang_getEnumConstantDeclUnsignedValuePtr = - _lookup>( + _lookup>( 'clang_getEnumConstantDeclUnsignedValue', ); late final _clang_getEnumConstantDeclUnsignedValue = _clang_getEnumConstantDeclUnsignedValuePtr - .asFunction(); + .asFunction(); /// Retrieve the integer value of an enum constant declaration as a signed /// long long. @@ -3913,12 +4173,11 @@ class LibClang { } late final _clang_getEnumConstantDeclValuePtr = - _lookup>( + _lookup>( 'clang_getEnumConstantDeclValue', ); late final _clang_getEnumConstantDeclValue = - _clang_getEnumConstantDeclValuePtr - .asFunction(); + _clang_getEnumConstantDeclValuePtr.asFunction(); /// Retrieve the integer type of an enum declaration. /// @@ -3929,11 +4188,11 @@ class LibClang { } late final _clang_getEnumDeclIntegerTypePtr = - _lookup>( + _lookup>( 'clang_getEnumDeclIntegerType', ); late final _clang_getEnumDeclIntegerType = _clang_getEnumDeclIntegerTypePtr - .asFunction(); + .asFunction(); /// Retrieve the exception specification type associated with a function type. /// This is a value of type CXCursor_ExceptionSpecificationKind. @@ -3944,12 +4203,12 @@ class LibClang { } late final _clang_getExceptionSpecificationTypePtr = - _lookup>( + _lookup>( 'clang_getExceptionSpecificationType', ); late final _clang_getExceptionSpecificationType = _clang_getExceptionSpecificationTypePtr - .asFunction(); + .asFunction(); /// Retrieve the file, line, column, and offset represented by /// the given source location. @@ -3982,11 +4241,27 @@ class LibClang { } late final _clang_getExpansionLocationPtr = - _lookup>( - 'clang_getExpansionLocation', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getExpansionLocation'); late final _clang_getExpansionLocation = _clang_getExpansionLocationPtr - .asFunction(); + .asFunction< + void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Retrieve the bit width of a bit field declaration as an integer. /// @@ -3996,11 +4271,11 @@ class LibClang { } late final _clang_getFieldDeclBitWidthPtr = - _lookup>( + _lookup>( 'clang_getFieldDeclBitWidth', ); late final _clang_getFieldDeclBitWidth = _clang_getFieldDeclBitWidthPtr - .asFunction(); + .asFunction(); /// Retrieve a file handle within the given translation unit. /// @@ -4015,8 +4290,13 @@ class LibClang { } late final _clang_getFilePtr = - _lookup>('clang_getFile'); - late final _clang_getFile = _clang_getFilePtr.asFunction(); + _lookup< + ffi.NativeFunction< + CXFile Function(CXTranslationUnit, ffi.Pointer) + > + >('clang_getFile'); + late final _clang_getFile = _clang_getFilePtr + .asFunction)>(); /// Retrieve the buffer associated with the given file. /// @@ -4037,11 +4317,23 @@ class LibClang { } late final _clang_getFileContentsPtr = - _lookup>( - 'clang_getFileContents', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + CXTranslationUnit, + CXFile, + ffi.Pointer, + ) + > + >('clang_getFileContents'); late final _clang_getFileContents = _clang_getFileContentsPtr - .asFunction(); + .asFunction< + ffi.Pointer Function( + CXTranslationUnit, + CXFile, + ffi.Pointer, + ) + >(); /// Retrieve the file, line, column, and offset represented by /// the given source location. @@ -4075,11 +4367,27 @@ class LibClang { } late final _clang_getFileLocationPtr = - _lookup>( - 'clang_getFileLocation', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getFileLocation'); late final _clang_getFileLocation = _clang_getFileLocationPtr - .asFunction(); + .asFunction< + void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Retrieve the complete file and path name of the given file. CXString clang_getFileName(CXFile SFile) { @@ -4087,9 +4395,11 @@ class LibClang { } late final _clang_getFileNamePtr = - _lookup>('clang_getFileName'); + _lookup>( + 'clang_getFileName', + ); late final _clang_getFileName = _clang_getFileNamePtr - .asFunction(); + .asFunction(); /// Retrieve the last modification time of the given file. int clang_getFileTime(CXFile SFile) { @@ -4097,9 +4407,11 @@ class LibClang { } late final _clang_getFileTimePtr = - _lookup>('clang_getFileTime'); + _lookup>( + 'clang_getFileTime', + ); late final _clang_getFileTime = _clang_getFileTimePtr - .asFunction(); + .asFunction(); /// Retrieve the unique ID for the given \c file. /// @@ -4112,11 +4424,13 @@ class LibClang { } late final _clang_getFileUniqueIDPtr = - _lookup>( - 'clang_getFileUniqueID', - ); + _lookup< + ffi.NativeFunction< + ffi.Int Function(CXFile, ffi.Pointer) + > + >('clang_getFileUniqueID'); late final _clang_getFileUniqueID = _clang_getFileUniqueIDPtr - .asFunction(); + .asFunction)>(); /// Retrieve the calling convention associated with a function type. /// @@ -4126,12 +4440,11 @@ class LibClang { } late final _clang_getFunctionTypeCallingConvPtr = - _lookup>( + _lookup>( 'clang_getFunctionTypeCallingConv', ); late final _clang_getFunctionTypeCallingConv = - _clang_getFunctionTypeCallingConvPtr - .asFunction(); + _clang_getFunctionTypeCallingConvPtr.asFunction(); /// For cursors representing an iboutletcollection attribute, /// this function returns the collection element type. @@ -4140,12 +4453,12 @@ class LibClang { } late final _clang_getIBOutletCollectionTypePtr = - _lookup>( + _lookup>( 'clang_getIBOutletCollectionType', ); late final _clang_getIBOutletCollectionType = _clang_getIBOutletCollectionTypePtr - .asFunction(); + .asFunction(); /// Retrieve the file that is included by the given inclusion directive /// cursor. @@ -4154,11 +4467,11 @@ class LibClang { } late final _clang_getIncludedFilePtr = - _lookup>( + _lookup>( 'clang_getIncludedFile', ); late final _clang_getIncludedFile = _clang_getIncludedFilePtr - .asFunction(); + .asFunction(); /// Visit the set of preprocessor inclusions in a translation unit. /// The visitor function is called with the provided data for every included @@ -4173,11 +4486,15 @@ class LibClang { } late final _clang_getInclusionsPtr = - _lookup>( - 'clang_getInclusions', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function(CXTranslationUnit, CXInclusionVisitor, CXClientData) + > + >('clang_getInclusions'); late final _clang_getInclusions = _clang_getInclusionsPtr - .asFunction(); + .asFunction< + void Function(CXTranslationUnit, CXInclusionVisitor, CXClientData) + >(); /// Legacy API to retrieve the file, line, column, and offset represented /// by the given source location. @@ -4202,12 +4519,28 @@ class LibClang { } late final _clang_getInstantiationLocationPtr = - _lookup>( - 'clang_getInstantiationLocation', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getInstantiationLocation'); late final _clang_getInstantiationLocation = _clang_getInstantiationLocationPtr - .asFunction(); + .asFunction< + void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Retrieves the source location associated with a given file/line/column /// in a particular translation unit. @@ -4221,9 +4554,20 @@ class LibClang { } late final _clang_getLocationPtr = - _lookup>('clang_getLocation'); + _lookup< + ffi.NativeFunction< + CXSourceLocation Function( + CXTranslationUnit, + CXFile, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + >('clang_getLocation'); late final _clang_getLocation = _clang_getLocationPtr - .asFunction(); + .asFunction< + CXSourceLocation Function(CXTranslationUnit, CXFile, int, int) + >(); /// Retrieves the source location associated with a given character offset /// in a particular translation unit. @@ -4236,11 +4580,13 @@ class LibClang { } late final _clang_getLocationForOffsetPtr = - _lookup>( - 'clang_getLocationForOffset', - ); + _lookup< + ffi.NativeFunction< + CXSourceLocation Function(CXTranslationUnit, CXFile, ffi.UnsignedInt) + > + >('clang_getLocationForOffset'); late final _clang_getLocationForOffset = _clang_getLocationForOffsetPtr - .asFunction(); + .asFunction(); /// Given a CXFile header file, return the module that contains it, if one /// exists. @@ -4249,11 +4595,11 @@ class LibClang { } late final _clang_getModuleForFilePtr = - _lookup>( + _lookup>( 'clang_getModuleForFile', ); late final _clang_getModuleForFile = _clang_getModuleForFilePtr - .asFunction(); + .asFunction(); /// Retrieve the NULL cursor, which represents no entity. CXCursor clang_getNullCursor() { @@ -4261,11 +4607,9 @@ class LibClang { } late final _clang_getNullCursorPtr = - _lookup>( - 'clang_getNullCursor', - ); + _lookup>('clang_getNullCursor'); late final _clang_getNullCursor = _clang_getNullCursorPtr - .asFunction(); + .asFunction(); /// Retrieve a NULL (invalid) source location. CXSourceLocation clang_getNullLocation() { @@ -4273,11 +4617,11 @@ class LibClang { } late final _clang_getNullLocationPtr = - _lookup>( + _lookup>( 'clang_getNullLocation', ); late final _clang_getNullLocation = _clang_getNullLocationPtr - .asFunction(); + .asFunction(); /// Retrieve a NULL (invalid) source range. CXSourceRange clang_getNullRange() { @@ -4285,11 +4629,11 @@ class LibClang { } late final _clang_getNullRangePtr = - _lookup>( + _lookup>( 'clang_getNullRange', ); late final _clang_getNullRange = _clang_getNullRangePtr - .asFunction(); + .asFunction(); /// Retrieve the number of non-variadic parameters associated with a /// function type. @@ -4300,11 +4644,11 @@ class LibClang { } late final _clang_getNumArgTypesPtr = - _lookup>( + _lookup>( 'clang_getNumArgTypes', ); late final _clang_getNumArgTypes = _clang_getNumArgTypesPtr - .asFunction(); + .asFunction(); /// Retrieve the number of chunks in the given code-completion string. int clang_getNumCompletionChunks(CXCompletionString completion_string) { @@ -4312,11 +4656,11 @@ class LibClang { } late final _clang_getNumCompletionChunksPtr = - _lookup>( + _lookup>( 'clang_getNumCompletionChunks', ); late final _clang_getNumCompletionChunks = _clang_getNumCompletionChunksPtr - .asFunction(); + .asFunction(); /// Determine the number of diagnostics produced for the given /// translation unit. @@ -4325,11 +4669,11 @@ class LibClang { } late final _clang_getNumDiagnosticsPtr = - _lookup>( + _lookup>( 'clang_getNumDiagnostics', ); late final _clang_getNumDiagnostics = _clang_getNumDiagnosticsPtr - .asFunction(); + .asFunction(); /// Determine the number of diagnostics in a CXDiagnosticSet. int clang_getNumDiagnosticsInSet(CXDiagnosticSet Diags) { @@ -4337,11 +4681,11 @@ class LibClang { } late final _clang_getNumDiagnosticsInSetPtr = - _lookup>( + _lookup>( 'clang_getNumDiagnosticsInSet', ); late final _clang_getNumDiagnosticsInSet = _clang_getNumDiagnosticsInSetPtr - .asFunction(); + .asFunction(); /// Return the number of elements of an array or vector type. /// @@ -4352,11 +4696,11 @@ class LibClang { } late final _clang_getNumElementsPtr = - _lookup>( + _lookup>( 'clang_getNumElements', ); late final _clang_getNumElements = _clang_getNumElementsPtr - .asFunction(); + .asFunction(); /// Determine the number of overloaded declarations referenced by a /// \c CXCursor_OverloadedDeclRef cursor. @@ -4370,11 +4714,11 @@ class LibClang { } late final _clang_getNumOverloadedDeclsPtr = - _lookup>( + _lookup>( 'clang_getNumOverloadedDecls', ); late final _clang_getNumOverloadedDecls = _clang_getNumOverloadedDeclsPtr - .asFunction(); + .asFunction(); /// Retrieve a cursor for one of the overloaded declarations referenced /// by a \c CXCursor_OverloadedDeclRef cursor. @@ -4393,11 +4737,11 @@ class LibClang { } late final _clang_getOverloadedDeclPtr = - _lookup>( + _lookup>( 'clang_getOverloadedDecl', ); late final _clang_getOverloadedDecl = _clang_getOverloadedDeclPtr - .asFunction(); + .asFunction(); /// Determine the set of methods that are overridden by the given /// method. @@ -4449,11 +4793,23 @@ class LibClang { } late final _clang_getOverriddenCursorsPtr = - _lookup>( - 'clang_getOverriddenCursors', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXCursor, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('clang_getOverriddenCursors'); late final _clang_getOverriddenCursors = _clang_getOverriddenCursorsPtr - .asFunction(); + .asFunction< + void Function( + CXCursor, + ffi.Pointer>, + ffi.Pointer, + ) + >(); /// For pointer types, returns the type of the pointee. CXType clang_getPointeeType(CXType T) { @@ -4461,11 +4817,11 @@ class LibClang { } late final _clang_getPointeeTypePtr = - _lookup>( + _lookup>( 'clang_getPointeeType', ); late final _clang_getPointeeType = _clang_getPointeeTypePtr - .asFunction(); + .asFunction(); /// Retrieve the file, line and column represented by the given source /// location, as specified in a # line directive. @@ -4515,11 +4871,25 @@ class LibClang { } late final _clang_getPresumedLocationPtr = - _lookup>( - 'clang_getPresumedLocation', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getPresumedLocation'); late final _clang_getPresumedLocation = _clang_getPresumedLocationPtr - .asFunction(); + .asFunction< + void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Retrieve a source range given the beginning and ending source /// locations. @@ -4528,9 +4898,13 @@ class LibClang { } late final _clang_getRangePtr = - _lookup>('clang_getRange'); + _lookup< + ffi.NativeFunction< + CXSourceRange Function(CXSourceLocation, CXSourceLocation) + > + >('clang_getRange'); late final _clang_getRange = _clang_getRangePtr - .asFunction(); + .asFunction(); /// Retrieve a source location representing the last character within a /// source range. @@ -4539,9 +4913,11 @@ class LibClang { } late final _clang_getRangeEndPtr = - _lookup>('clang_getRangeEnd'); + _lookup>( + 'clang_getRangeEnd', + ); late final _clang_getRangeEnd = _clang_getRangeEndPtr - .asFunction(); + .asFunction(); /// Retrieve a source location representing the first character within a /// source range. @@ -4550,11 +4926,11 @@ class LibClang { } late final _clang_getRangeStartPtr = - _lookup>( + _lookup>( 'clang_getRangeStart', ); late final _clang_getRangeStart = _clang_getRangeStartPtr - .asFunction(); + .asFunction(); /// Retrieve a remapping. /// @@ -4567,11 +4943,11 @@ class LibClang { } late final _clang_getRemappingsPtr = - _lookup>( + _lookup)>>( 'clang_getRemappings', ); late final _clang_getRemappings = _clang_getRemappingsPtr - .asFunction(); + .asFunction)>(); /// Retrieve a remapping. /// @@ -4589,12 +4965,19 @@ class LibClang { } late final _clang_getRemappingsFromFileListPtr = - _lookup>( - 'clang_getRemappingsFromFileList', - ); + _lookup< + ffi.NativeFunction< + CXRemapping Function( + ffi.Pointer>, + ffi.UnsignedInt, + ) + > + >('clang_getRemappingsFromFileList'); late final _clang_getRemappingsFromFileList = _clang_getRemappingsFromFileListPtr - .asFunction(); + .asFunction< + CXRemapping Function(ffi.Pointer>, int) + >(); /// Retrieve the return type associated with a function type. /// @@ -4604,11 +4987,11 @@ class LibClang { } late final _clang_getResultTypePtr = - _lookup>( + _lookup>( 'clang_getResultType', ); late final _clang_getResultType = _clang_getResultTypePtr - .asFunction(); + .asFunction(); /// Retrieve all ranges that were skipped by the preprocessor. /// @@ -4622,11 +5005,15 @@ class LibClang { } late final _clang_getSkippedRangesPtr = - _lookup>( - 'clang_getSkippedRanges', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CXTranslationUnit, CXFile) + > + >('clang_getSkippedRanges'); late final _clang_getSkippedRanges = _clang_getSkippedRangesPtr - .asFunction(); + .asFunction< + ffi.Pointer Function(CXTranslationUnit, CXFile) + >(); /// Given a cursor that may represent a specialization or instantiation /// of a template, retrieve the cursor that represents the template that it @@ -4659,12 +5046,12 @@ class LibClang { } late final _clang_getSpecializedCursorTemplatePtr = - _lookup>( + _lookup>( 'clang_getSpecializedCursorTemplate', ); late final _clang_getSpecializedCursorTemplate = _clang_getSpecializedCursorTemplatePtr - .asFunction(); + .asFunction(); /// Retrieve the file, line, column, and offset represented by /// the given source location. @@ -4697,11 +5084,27 @@ class LibClang { } late final _clang_getSpellingLocationPtr = - _lookup>( - 'clang_getSpellingLocation', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_getSpellingLocation'); late final _clang_getSpellingLocation = _clang_getSpellingLocationPtr - .asFunction(); + .asFunction< + void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Returns the human-readable null-terminated C string that represents /// the name of the memory category. This string should never be freed. @@ -4712,11 +5115,11 @@ class LibClang { } late final _clang_getTUResourceUsageNamePtr = - _lookup>( - 'clang_getTUResourceUsageName', - ); + _lookup< + ffi.NativeFunction Function(ffi.UnsignedInt)> + >('clang_getTUResourceUsageName'); late final _clang_getTUResourceUsageName = _clang_getTUResourceUsageNamePtr - .asFunction(); + .asFunction Function(int)>(); /// Given a cursor that represents a template, determine /// the cursor kind of the specializations would be generated by instantiating @@ -4738,11 +5141,11 @@ class LibClang { } late final _clang_getTemplateCursorKindPtr = - _lookup>( + _lookup>( 'clang_getTemplateCursorKind', ); late final _clang_getTemplateCursorKind = _clang_getTemplateCursorKindPtr - .asFunction(); + .asFunction(); /// Get the raw lexical token starting with the given location. /// @@ -4761,9 +5164,15 @@ class LibClang { } late final _clang_getTokenPtr = - _lookup>('clang_getToken'); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(CXTranslationUnit, CXSourceLocation) + > + >('clang_getToken'); late final _clang_getToken = _clang_getTokenPtr - .asFunction(); + .asFunction< + ffi.Pointer Function(CXTranslationUnit, CXSourceLocation) + >(); /// Retrieve a source range that covers the given token. CXSourceRange clang_getTokenExtent(CXTranslationUnit arg0, CXToken arg1) { @@ -4771,11 +5180,11 @@ class LibClang { } late final _clang_getTokenExtentPtr = - _lookup>( - 'clang_getTokenExtent', - ); + _lookup< + ffi.NativeFunction + >('clang_getTokenExtent'); late final _clang_getTokenExtent = _clang_getTokenExtentPtr - .asFunction(); + .asFunction(); /// Determine the kind of the given token. CXTokenKind clang_getTokenKind(CXToken arg0) { @@ -4783,11 +5192,11 @@ class LibClang { } late final _clang_getTokenKindPtr = - _lookup>( + _lookup>( 'clang_getTokenKind', ); late final _clang_getTokenKind = _clang_getTokenKindPtr - .asFunction(); + .asFunction(); /// Retrieve the source location of the given token. CXSourceLocation clang_getTokenLocation( @@ -4798,11 +5207,13 @@ class LibClang { } late final _clang_getTokenLocationPtr = - _lookup>( - 'clang_getTokenLocation', - ); + _lookup< + ffi.NativeFunction< + CXSourceLocation Function(CXTranslationUnit, CXToken) + > + >('clang_getTokenLocation'); late final _clang_getTokenLocation = _clang_getTokenLocationPtr - .asFunction(); + .asFunction(); /// Determine the spelling of the given token. /// @@ -4813,11 +5224,11 @@ class LibClang { } late final _clang_getTokenSpellingPtr = - _lookup>( - 'clang_getTokenSpelling', - ); + _lookup< + ffi.NativeFunction + >('clang_getTokenSpelling'); late final _clang_getTokenSpelling = _clang_getTokenSpellingPtr - .asFunction(); + .asFunction(); /// Retrieve the cursor that represents the given translation unit. /// @@ -4828,12 +5239,12 @@ class LibClang { } late final _clang_getTranslationUnitCursorPtr = - _lookup>( + _lookup>( 'clang_getTranslationUnitCursor', ); late final _clang_getTranslationUnitCursor = _clang_getTranslationUnitCursorPtr - .asFunction(); + .asFunction(); /// Get the original translation unit source file name. CXString clang_getTranslationUnitSpelling(CXTranslationUnit CTUnit) { @@ -4841,12 +5252,12 @@ class LibClang { } late final _clang_getTranslationUnitSpellingPtr = - _lookup>( + _lookup>( 'clang_getTranslationUnitSpelling', ); late final _clang_getTranslationUnitSpelling = _clang_getTranslationUnitSpellingPtr - .asFunction(); + .asFunction(); /// Get target information for this translation unit. /// @@ -4856,12 +5267,12 @@ class LibClang { } late final _clang_getTranslationUnitTargetInfoPtr = - _lookup>( + _lookup>( 'clang_getTranslationUnitTargetInfo', ); late final _clang_getTranslationUnitTargetInfo = _clang_getTranslationUnitTargetInfoPtr - .asFunction(); + .asFunction(); /// Return the cursor for the declaration of the given type. CXCursor clang_getTypeDeclaration(CXType T) { @@ -4869,11 +5280,11 @@ class LibClang { } late final _clang_getTypeDeclarationPtr = - _lookup>( + _lookup>( 'clang_getTypeDeclaration', ); late final _clang_getTypeDeclaration = _clang_getTypeDeclarationPtr - .asFunction(); + .asFunction(); /// Retrieve the spelling of a given CXTypeKind. CXString clang_getTypeKindSpelling(CXTypeKind K) { @@ -4881,11 +5292,11 @@ class LibClang { } late final _clang_getTypeKindSpellingPtr = - _lookup>( + _lookup>( 'clang_getTypeKindSpelling', ); late final _clang_getTypeKindSpelling = _clang_getTypeKindSpellingPtr - .asFunction(); + .asFunction(); /// Pretty-print the underlying type using the rules of the /// language of the translation unit from which it came. @@ -4896,11 +5307,11 @@ class LibClang { } late final _clang_getTypeSpellingPtr = - _lookup>( + _lookup>( 'clang_getTypeSpelling', ); late final _clang_getTypeSpelling = _clang_getTypeSpellingPtr - .asFunction(); + .asFunction(); /// Retrieve the underlying type of a typedef declaration. /// @@ -4911,12 +5322,12 @@ class LibClang { } late final _clang_getTypedefDeclUnderlyingTypePtr = - _lookup>( + _lookup>( 'clang_getTypedefDeclUnderlyingType', ); late final _clang_getTypedefDeclUnderlyingType = _clang_getTypedefDeclUnderlyingTypePtr - .asFunction(); + .asFunction(); /// Returns the typedef name of the given type. CXString clang_getTypedefName(CXType CT) { @@ -4924,11 +5335,11 @@ class LibClang { } late final _clang_getTypedefNamePtr = - _lookup>( + _lookup>( 'clang_getTypedefName', ); late final _clang_getTypedefName = _clang_getTypedefNamePtr - .asFunction(); + .asFunction(); /// Compute a hash value for the given cursor. int clang_hashCursor(CXCursor arg0) { @@ -4936,9 +5347,11 @@ class LibClang { } late final _clang_hashCursorPtr = - _lookup>('clang_hashCursor'); + _lookup>( + 'clang_hashCursor', + ); late final _clang_hashCursor = _clang_hashCursorPtr - .asFunction(); + .asFunction(); /// Retrieve the CXSourceLocation represented by the given CXIdxLoc. CXSourceLocation clang_indexLoc_getCXSourceLocation(CXIdxLoc loc) { @@ -4946,12 +5359,12 @@ class LibClang { } late final _clang_indexLoc_getCXSourceLocationPtr = - _lookup>( + _lookup>( 'clang_indexLoc_getCXSourceLocation', ); late final _clang_indexLoc_getCXSourceLocation = _clang_indexLoc_getCXSourceLocationPtr - .asFunction(); + .asFunction(); /// Retrieve the CXIdxFile, file, line, column, and offset represented by /// the given CXIdxLoc. @@ -4978,12 +5391,30 @@ class LibClang { } late final _clang_indexLoc_getFileLocationPtr = - _lookup>( - 'clang_indexLoc_getFileLocation', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXIdxLoc, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_indexLoc_getFileLocation'); late final _clang_indexLoc_getFileLocation = _clang_indexLoc_getFileLocationPtr - .asFunction(); + .asFunction< + void Function( + CXIdxLoc, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Index the given source file and the translation unit corresponding /// to that file via callbacks implemented through #IndexerCallbacks. @@ -5039,11 +5470,41 @@ class LibClang { } late final _clang_indexSourceFilePtr = - _lookup>( - 'clang_indexSourceFile', - ); + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_indexSourceFile'); late final _clang_indexSourceFile = _clang_indexSourceFilePtr - .asFunction(); + .asFunction< + int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); /// Same as clang_indexSourceFile but requires a full command line /// for \c command_line_args including argv[0]. This is useful if the standard @@ -5079,11 +5540,41 @@ class LibClang { } late final _clang_indexSourceFileFullArgvPtr = - _lookup>( - 'clang_indexSourceFileFullArgv', - ); + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_indexSourceFileFullArgv'); late final _clang_indexSourceFileFullArgv = _clang_indexSourceFileFullArgvPtr - .asFunction(); + .asFunction< + int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); /// Index the given translation unit via callbacks implemented through /// #IndexerCallbacks. @@ -5118,11 +5609,29 @@ class LibClang { } late final _clang_indexTranslationUnitPtr = - _lookup>( - 'clang_indexTranslationUnit', - ); + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + CXTranslationUnit, + ) + > + >('clang_indexTranslationUnit'); late final _clang_indexTranslationUnit = _clang_indexTranslationUnitPtr - .asFunction(); + .asFunction< + int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + int, + int, + CXTranslationUnit, + ) + >(); ffi.Pointer clang_index_getCXXClassDeclInfo( ffi.Pointer arg0, @@ -5131,12 +5640,20 @@ class LibClang { } late final _clang_index_getCXXClassDeclInfoPtr = - _lookup>( - 'clang_index_getCXXClassDeclInfo', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getCXXClassDeclInfo'); late final _clang_index_getCXXClassDeclInfo = _clang_index_getCXXClassDeclInfoPtr - .asFunction(); + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); /// For retrieving a custom CXIdxClientContainer attached to a /// container. @@ -5147,12 +5664,16 @@ class LibClang { } late final _clang_index_getClientContainerPtr = - _lookup>( - 'clang_index_getClientContainer', - ); + _lookup< + ffi.NativeFunction< + CXIdxClientContainer Function(ffi.Pointer) + > + >('clang_index_getClientContainer'); late final _clang_index_getClientContainer = _clang_index_getClientContainerPtr - .asFunction(); + .asFunction< + CXIdxClientContainer Function(ffi.Pointer) + >(); /// For retrieving a custom CXIdxClientEntity attached to an entity. CXIdxClientEntity clang_index_getClientEntity( @@ -5162,11 +5683,13 @@ class LibClang { } late final _clang_index_getClientEntityPtr = - _lookup>( - 'clang_index_getClientEntity', - ); + _lookup< + ffi.NativeFunction< + CXIdxClientEntity Function(ffi.Pointer) + > + >('clang_index_getClientEntity'); late final _clang_index_getClientEntity = _clang_index_getClientEntityPtr - .asFunction(); + .asFunction)>(); ffi.Pointer clang_index_getIBOutletCollectionAttrInfo(ffi.Pointer arg0) { @@ -5175,11 +5698,19 @@ class LibClang { late final _clang_index_getIBOutletCollectionAttrInfoPtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > >('clang_index_getIBOutletCollectionAttrInfo'); late final _clang_index_getIBOutletCollectionAttrInfo = _clang_index_getIBOutletCollectionAttrInfoPtr - .asFunction(); + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); ffi.Pointer clang_index_getObjCCategoryDeclInfo( ffi.Pointer arg0, @@ -5188,12 +5719,20 @@ class LibClang { } late final _clang_index_getObjCCategoryDeclInfoPtr = - _lookup>( - 'clang_index_getObjCCategoryDeclInfo', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getObjCCategoryDeclInfo'); late final _clang_index_getObjCCategoryDeclInfo = _clang_index_getObjCCategoryDeclInfoPtr - .asFunction(); + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); ffi.Pointer clang_index_getObjCContainerDeclInfo( ffi.Pointer arg0, @@ -5202,12 +5741,20 @@ class LibClang { } late final _clang_index_getObjCContainerDeclInfoPtr = - _lookup>( - 'clang_index_getObjCContainerDeclInfo', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getObjCContainerDeclInfo'); late final _clang_index_getObjCContainerDeclInfo = _clang_index_getObjCContainerDeclInfoPtr - .asFunction(); + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); ffi.Pointer clang_index_getObjCInterfaceDeclInfo( ffi.Pointer arg0, @@ -5216,12 +5763,20 @@ class LibClang { } late final _clang_index_getObjCInterfaceDeclInfoPtr = - _lookup>( - 'clang_index_getObjCInterfaceDeclInfo', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getObjCInterfaceDeclInfo'); late final _clang_index_getObjCInterfaceDeclInfo = _clang_index_getObjCInterfaceDeclInfoPtr - .asFunction(); + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); ffi.Pointer clang_index_getObjCPropertyDeclInfo( ffi.Pointer arg0, @@ -5230,12 +5785,20 @@ class LibClang { } late final _clang_index_getObjCPropertyDeclInfoPtr = - _lookup>( - 'clang_index_getObjCPropertyDeclInfo', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getObjCPropertyDeclInfo'); late final _clang_index_getObjCPropertyDeclInfo = _clang_index_getObjCPropertyDeclInfoPtr - .asFunction(); + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); ffi.Pointer clang_index_getObjCProtocolRefListInfo(ffi.Pointer arg0) { @@ -5243,24 +5806,31 @@ class LibClang { } late final _clang_index_getObjCProtocolRefListInfoPtr = - _lookup>( - 'clang_index_getObjCProtocolRefListInfo', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('clang_index_getObjCProtocolRefListInfo'); late final _clang_index_getObjCProtocolRefListInfo = _clang_index_getObjCProtocolRefListInfoPtr - .asFunction(); + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); int clang_index_isEntityObjCContainerKind(CXIdxEntityKind arg0) { return _clang_index_isEntityObjCContainerKind(arg0.value); } late final _clang_index_isEntityObjCContainerKindPtr = - _lookup>( + _lookup>( 'clang_index_isEntityObjCContainerKind', ); late final _clang_index_isEntityObjCContainerKind = - _clang_index_isEntityObjCContainerKindPtr - .asFunction(); + _clang_index_isEntityObjCContainerKindPtr.asFunction(); /// For setting a custom CXIdxClientContainer attached to a /// container. @@ -5272,12 +5842,19 @@ class LibClang { } late final _clang_index_setClientContainerPtr = - _lookup>( - 'clang_index_setClientContainer', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + CXIdxClientContainer, + ) + > + >('clang_index_setClientContainer'); late final _clang_index_setClientContainer = _clang_index_setClientContainerPtr - .asFunction(); + .asFunction< + void Function(ffi.Pointer, CXIdxClientContainer) + >(); /// For setting a custom CXIdxClientEntity attached to an entity. void clang_index_setClientEntity( @@ -5288,11 +5865,15 @@ class LibClang { } late final _clang_index_setClientEntityPtr = - _lookup>( - 'clang_index_setClientEntity', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, CXIdxClientEntity) + > + >('clang_index_setClientEntity'); late final _clang_index_setClientEntity = _clang_index_setClientEntityPtr - .asFunction(); + .asFunction< + void Function(ffi.Pointer, CXIdxClientEntity) + >(); /// Determine whether the given cursor kind represents an attribute. int clang_isAttribute(CXCursorKind arg0) { @@ -5300,9 +5881,11 @@ class LibClang { } late final _clang_isAttributePtr = - _lookup>('clang_isAttribute'); + _lookup>( + 'clang_isAttribute', + ); late final _clang_isAttribute = _clang_isAttributePtr - .asFunction(); + .asFunction(); /// Determine whether a CXType has the "const" qualifier set, /// without looking through typedefs that may have added "const" at a @@ -5312,11 +5895,11 @@ class LibClang { } late final _clang_isConstQualifiedTypePtr = - _lookup>( + _lookup>( 'clang_isConstQualifiedType', ); late final _clang_isConstQualifiedType = _clang_isConstQualifiedTypePtr - .asFunction(); + .asFunction(); /// Determine whether the declaration pointed to by this cursor /// is also a definition of that entity. @@ -5325,11 +5908,11 @@ class LibClang { } late final _clang_isCursorDefinitionPtr = - _lookup>( + _lookup>( 'clang_isCursorDefinition', ); late final _clang_isCursorDefinition = _clang_isCursorDefinitionPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents a declaration. int clang_isDeclaration(CXCursorKind arg0) { @@ -5337,11 +5920,11 @@ class LibClang { } late final _clang_isDeclarationPtr = - _lookup>( + _lookup>( 'clang_isDeclaration', ); late final _clang_isDeclaration = _clang_isDeclarationPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents an expression. int clang_isExpression(CXCursorKind arg0) { @@ -5349,11 +5932,11 @@ class LibClang { } late final _clang_isExpressionPtr = - _lookup>( + _lookup>( 'clang_isExpression', ); late final _clang_isExpression = _clang_isExpressionPtr - .asFunction(); + .asFunction(); /// Determine whether the given header is guarded against /// multiple inclusions, either with the conventional @@ -5363,12 +5946,12 @@ class LibClang { } late final _clang_isFileMultipleIncludeGuardedPtr = - _lookup>( - 'clang_isFileMultipleIncludeGuarded', - ); + _lookup< + ffi.NativeFunction + >('clang_isFileMultipleIncludeGuarded'); late final _clang_isFileMultipleIncludeGuarded = _clang_isFileMultipleIncludeGuardedPtr - .asFunction(); + .asFunction(); /// Return 1 if the CXType is a variadic function type, and 0 otherwise. int clang_isFunctionTypeVariadic(CXType T) { @@ -5376,11 +5959,11 @@ class LibClang { } late final _clang_isFunctionTypeVariadicPtr = - _lookup>( + _lookup>( 'clang_isFunctionTypeVariadic', ); late final _clang_isFunctionTypeVariadic = _clang_isFunctionTypeVariadicPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents an invalid /// cursor. @@ -5389,9 +5972,11 @@ class LibClang { } late final _clang_isInvalidPtr = - _lookup>('clang_isInvalid'); + _lookup>( + 'clang_isInvalid', + ); late final _clang_isInvalid = _clang_isInvalidPtr - .asFunction(); + .asFunction(); /// Determine whether the given declaration is invalid. /// @@ -5404,11 +5989,11 @@ class LibClang { } late final _clang_isInvalidDeclarationPtr = - _lookup>( + _lookup>( 'clang_isInvalidDeclaration', ); late final _clang_isInvalidDeclaration = _clang_isInvalidDeclarationPtr - .asFunction(); + .asFunction(); /// Return 1 if the CXType is a POD (plain old data) type, and 0 /// otherwise. @@ -5417,9 +6002,11 @@ class LibClang { } late final _clang_isPODTypePtr = - _lookup>('clang_isPODType'); + _lookup>( + 'clang_isPODType', + ); late final _clang_isPODType = _clang_isPODTypePtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents a preprocessing /// element, such as a preprocessor directive or macro instantiation. @@ -5428,11 +6015,11 @@ class LibClang { } late final _clang_isPreprocessingPtr = - _lookup>( + _lookup>( 'clang_isPreprocessing', ); late final _clang_isPreprocessing = _clang_isPreprocessingPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents a simple /// reference. @@ -5445,9 +6032,11 @@ class LibClang { } late final _clang_isReferencePtr = - _lookup>('clang_isReference'); + _lookup>( + 'clang_isReference', + ); late final _clang_isReference = _clang_isReferencePtr - .asFunction(); + .asFunction(); /// Determine whether a CXType has the "restrict" qualifier set, /// without looking through typedefs that may have added "restrict" at a @@ -5457,11 +6046,11 @@ class LibClang { } late final _clang_isRestrictQualifiedTypePtr = - _lookup>( + _lookup>( 'clang_isRestrictQualifiedType', ); late final _clang_isRestrictQualifiedType = _clang_isRestrictQualifiedTypePtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents a statement. int clang_isStatement(CXCursorKind arg0) { @@ -5469,9 +6058,11 @@ class LibClang { } late final _clang_isStatementPtr = - _lookup>('clang_isStatement'); + _lookup>( + 'clang_isStatement', + ); late final _clang_isStatement = _clang_isStatementPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents a translation /// unit. @@ -5480,11 +6071,11 @@ class LibClang { } late final _clang_isTranslationUnitPtr = - _lookup>( + _lookup>( 'clang_isTranslationUnit', ); late final _clang_isTranslationUnit = _clang_isTranslationUnitPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents a currently /// unexposed piece of the AST (e.g., CXCursor_UnexposedStmt). @@ -5493,9 +6084,11 @@ class LibClang { } late final _clang_isUnexposedPtr = - _lookup>('clang_isUnexposed'); + _lookup>( + 'clang_isUnexposed', + ); late final _clang_isUnexposed = _clang_isUnexposedPtr - .asFunction(); + .asFunction(); /// Returns 1 if the base class specified by the cursor with kind /// CX_CXXBaseSpecifier is virtual. @@ -5504,11 +6097,11 @@ class LibClang { } late final _clang_isVirtualBasePtr = - _lookup>( + _lookup>( 'clang_isVirtualBase', ); late final _clang_isVirtualBase = _clang_isVirtualBasePtr - .asFunction(); + .asFunction(); /// Determine whether a CXType has the "volatile" qualifier set, /// without looking through typedefs that may have added "volatile" at @@ -5518,11 +6111,11 @@ class LibClang { } late final _clang_isVolatileQualifiedTypePtr = - _lookup>( + _lookup>( 'clang_isVolatileQualifiedType', ); late final _clang_isVolatileQualifiedType = _clang_isVolatileQualifiedTypePtr - .asFunction(); + .asFunction(); /// Deserialize a set of diagnostics from a Clang diagnostics bitcode /// file. @@ -5544,11 +6137,23 @@ class LibClang { } late final _clang_loadDiagnosticsPtr = - _lookup>( - 'clang_loadDiagnostics', - ); + _lookup< + ffi.NativeFunction< + CXDiagnosticSet Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_loadDiagnostics'); late final _clang_loadDiagnostics = _clang_loadDiagnosticsPtr - .asFunction(); + .asFunction< + CXDiagnosticSet Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Same as \c clang_parseTranslationUnit2, but returns /// the \c CXTranslationUnit instead of an error code. In case of an error this @@ -5575,11 +6180,31 @@ class LibClang { } late final _clang_parseTranslationUnitPtr = - _lookup>( - 'clang_parseTranslationUnit', - ); + _lookup< + ffi.NativeFunction< + CXTranslationUnit Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + >('clang_parseTranslationUnit'); late final _clang_parseTranslationUnit = _clang_parseTranslationUnitPtr - .asFunction(); + .asFunction< + CXTranslationUnit Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + int, + int, + ) + >(); /// Parse the given source file and the translation unit corresponding /// to that file. @@ -5648,11 +6273,33 @@ class LibClang { } late final _clang_parseTranslationUnit2Ptr = - _lookup>( - 'clang_parseTranslationUnit2', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_parseTranslationUnit2'); late final _clang_parseTranslationUnit2 = _clang_parseTranslationUnit2Ptr - .asFunction(); + .asFunction< + int Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); /// Same as clang_parseTranslationUnit2 but requires a full command line /// for \c command_line_args including argv[0]. This is useful if the standard @@ -5682,12 +6329,34 @@ class LibClang { } late final _clang_parseTranslationUnit2FullArgvPtr = - _lookup>( - 'clang_parseTranslationUnit2FullArgv', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + >('clang_parseTranslationUnit2FullArgv'); late final _clang_parseTranslationUnit2FullArgv = _clang_parseTranslationUnit2FullArgvPtr - .asFunction(); + .asFunction< + int Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + int, + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); /// Dispose the remapping. void clang_remap_dispose(CXRemapping arg0) { @@ -5695,11 +6364,11 @@ class LibClang { } late final _clang_remap_disposePtr = - _lookup>( + _lookup>( 'clang_remap_dispose', ); late final _clang_remap_dispose = _clang_remap_disposePtr - .asFunction(); + .asFunction(); /// Get the original and the associated filename from the remapping. /// @@ -5717,11 +6386,25 @@ class LibClang { } late final _clang_remap_getFilenamesPtr = - _lookup>( - 'clang_remap_getFilenames', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXRemapping, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ) + > + >('clang_remap_getFilenames'); late final _clang_remap_getFilenames = _clang_remap_getFilenamesPtr - .asFunction(); + .asFunction< + void Function( + CXRemapping, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// Determine the number of remappings. int clang_remap_getNumFiles(CXRemapping arg0) { @@ -5729,11 +6412,11 @@ class LibClang { } late final _clang_remap_getNumFilesPtr = - _lookup>( + _lookup>( 'clang_remap_getNumFiles', ); late final _clang_remap_getNumFiles = _clang_remap_getNumFilesPtr - .asFunction(); + .asFunction(); /// Reparse the source files that produced this translation unit. /// @@ -5787,11 +6470,20 @@ class LibClang { } late final _clang_reparseTranslationUnitPtr = - _lookup>( - 'clang_reparseTranslationUnit', - ); + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXTranslationUnit, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_reparseTranslationUnit'); late final _clang_reparseTranslationUnit = _clang_reparseTranslationUnitPtr - .asFunction(); + .asFunction< + int Function(CXTranslationUnit, int, ffi.Pointer, int) + >(); /// Saves a translation unit into a serialized representation of /// that translation unit on disk. @@ -5823,11 +6515,19 @@ class LibClang { } late final _clang_saveTranslationUnitPtr = - _lookup>( - 'clang_saveTranslationUnit', - ); + _lookup< + ffi.NativeFunction< + ffi.Int Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('clang_saveTranslationUnit'); late final _clang_saveTranslationUnit = _clang_saveTranslationUnitPtr - .asFunction(); + .asFunction< + int Function(CXTranslationUnit, ffi.Pointer, int) + >(); /// Sort the code-completion results in case-insensitive alphabetical /// order. @@ -5842,12 +6542,14 @@ class LibClang { } late final _clang_sortCodeCompletionResultsPtr = - _lookup>( - 'clang_sortCodeCompletionResults', - ); + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) + > + >('clang_sortCodeCompletionResults'); late final _clang_sortCodeCompletionResults = _clang_sortCodeCompletionResultsPtr - .asFunction(); + .asFunction, int)>(); /// Suspend a translation unit in order to free memory associated with it. /// @@ -5859,11 +6561,11 @@ class LibClang { } late final _clang_suspendTranslationUnitPtr = - _lookup>( + _lookup>( 'clang_suspendTranslationUnit', ); late final _clang_suspendTranslationUnit = _clang_suspendTranslationUnitPtr - .asFunction(); + .asFunction(); /// Enable/disable crash recovery. /// @@ -5874,11 +6576,11 @@ class LibClang { } late final _clang_toggleCrashRecoveryPtr = - _lookup>( + _lookup>( 'clang_toggleCrashRecovery', ); late final _clang_toggleCrashRecovery = _clang_toggleCrashRecoveryPtr - .asFunction(); + .asFunction(); /// Tokenize the source code described by the given range into raw /// lexical tokens. @@ -5904,9 +6606,25 @@ class LibClang { } late final _clang_tokenizePtr = - _lookup>('clang_tokenize'); + _lookup< + ffi.NativeFunction< + ffi.Void Function( + CXTranslationUnit, + CXSourceRange, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('clang_tokenize'); late final _clang_tokenize = _clang_tokenizePtr - .asFunction(); + .asFunction< + void Function( + CXTranslationUnit, + CXSourceRange, + ffi.Pointer>, + ffi.Pointer, + ) + >(); /// Visit the children of a particular cursor. /// @@ -5937,11 +6655,13 @@ class LibClang { } late final _clang_visitChildrenPtr = - _lookup>( - 'clang_visitChildren', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor, CXCursorVisitor, CXClientData) + > + >('clang_visitChildren'); late final _clang_visitChildren = _clang_visitChildrenPtr - .asFunction(); + .asFunction(); late final addresses = _SymbolAddresses(this); } @@ -5949,772 +6669,1319 @@ class LibClang { class _SymbolAddresses { final LibClang _library; _SymbolAddresses(this._library); - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_CXCursorSet_contains => _library._clang_CXCursorSet_containsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_CXCursorSet_insert => _library._clang_CXCursorSet_insertPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXIndex_getGlobalOptions => _library._clang_CXIndex_getGlobalOptionsPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXIndex_setGlobalOptions => _library._clang_CXIndex_setGlobalOptionsPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction)> > get clang_CXIndex_setInvocationEmissionPathOption => _library._clang_CXIndex_setInvocationEmissionPathOptionPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_CXXConstructor_isConvertingConstructor => _library._clang_CXXConstructor_isConvertingConstructorPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXConstructor_isCopyConstructor => _library._clang_CXXConstructor_isCopyConstructorPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_CXXConstructor_isDefaultConstructor => _library._clang_CXXConstructor_isDefaultConstructorPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXConstructor_isMoveConstructor => _library._clang_CXXConstructor_isMoveConstructorPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXField_isMutable => _library._clang_CXXField_isMutablePtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isConst => _library._clang_CXXMethod_isConstPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isDefaulted => _library._clang_CXXMethod_isDefaultedPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isPureVirtual => _library._clang_CXXMethod_isPureVirtualPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isStatic => _library._clang_CXXMethod_isStaticPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isVirtual => _library._clang_CXXMethod_isVirtualPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXRecord_isAbstract => _library._clang_CXXRecord_isAbstractPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_Evaluate => _library._clang_Cursor_EvaluatePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getArgument => _library._clang_Cursor_getArgumentPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getBriefCommentText => _library._clang_Cursor_getBriefCommentTextPtr; - ffi.Pointer> + ffi.Pointer Function(CXCursor)>> get clang_Cursor_getCXXManglings => _library._clang_Cursor_getCXXManglingsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getCommentRange => _library._clang_Cursor_getCommentRangePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getMangling => _library._clang_Cursor_getManglingPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getModule => _library._clang_Cursor_getModulePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getNumArguments => _library._clang_Cursor_getNumArgumentsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getNumTemplateArguments => _library._clang_Cursor_getNumTemplateArgumentsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCDeclQualifiers => _library._clang_Cursor_getObjCDeclQualifiersPtr; - ffi.Pointer> + ffi.Pointer Function(CXCursor)>> get clang_Cursor_getObjCManglings => _library._clang_Cursor_getObjCManglingsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_Cursor_getObjCPropertyAttributes => _library._clang_Cursor_getObjCPropertyAttributesPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCPropertyGetterName => _library._clang_Cursor_getObjCPropertyGetterNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCPropertySetterName => _library._clang_Cursor_getObjCPropertySetterNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCSelectorIndex => _library._clang_Cursor_getObjCSelectorIndexPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getOffsetOfField => _library._clang_Cursor_getOffsetOfFieldPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getRawCommentText => _library._clang_Cursor_getRawCommentTextPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getReceiverType => _library._clang_Cursor_getReceiverTypePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) + > + > get clang_Cursor_getSpellingNameRange => _library._clang_Cursor_getSpellingNameRangePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getStorageClass => _library._clang_Cursor_getStorageClassPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_Cursor_getTemplateArgumentKind => _library._clang_Cursor_getTemplateArgumentKindPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getTemplateArgumentType => _library._clang_Cursor_getTemplateArgumentTypePtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction > get clang_Cursor_getTemplateArgumentUnsignedValue => _library._clang_Cursor_getTemplateArgumentUnsignedValuePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_Cursor_getTemplateArgumentValue => _library._clang_Cursor_getTemplateArgumentValuePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getTranslationUnit => _library._clang_Cursor_getTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_hasAttrs => _library._clang_Cursor_hasAttrsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isAnonymous => _library._clang_Cursor_isAnonymousPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isAnonymousRecordDecl => _library._clang_Cursor_isAnonymousRecordDeclPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isBitField => _library._clang_Cursor_isBitFieldPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isDynamicCall => _library._clang_Cursor_isDynamicCallPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXCursor, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_Cursor_isExternalSymbol => _library._clang_Cursor_isExternalSymbolPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isFunctionInlined => _library._clang_Cursor_isFunctionInlinedPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isInlineNamespace => _library._clang_Cursor_isInlineNamespacePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isMacroBuiltin => _library._clang_Cursor_isMacroBuiltinPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isMacroFunctionLike => _library._clang_Cursor_isMacroFunctionLikePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isNull => _library._clang_Cursor_isNullPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isObjCOptional => _library._clang_Cursor_isObjCOptionalPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isVariadic => _library._clang_Cursor_isVariadicPtr; - ffi.Pointer> + ffi.Pointer> get clang_EnumDecl_isScoped => _library._clang_EnumDecl_isScopedPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_dispose => _library._clang_EvalResult_disposePtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsDouble => _library._clang_EvalResult_getAsDoublePtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsInt => _library._clang_EvalResult_getAsIntPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsLongLong => _library._clang_EvalResult_getAsLongLongPtr; - ffi.Pointer> + ffi.Pointer Function(CXEvalResult)>> get clang_EvalResult_getAsStr => _library._clang_EvalResult_getAsStrPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsUnsigned => _library._clang_EvalResult_getAsUnsignedPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getKind => _library._clang_EvalResult_getKindPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_isUnsignedInt => _library._clang_EvalResult_isUnsignedIntPtr; - ffi.Pointer> + ffi.Pointer> get clang_File_isEqual => _library._clang_File_isEqualPtr; - ffi.Pointer> + ffi.Pointer> get clang_File_tryGetRealPathName => _library._clang_File_tryGetRealPathNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_IndexAction_create => _library._clang_IndexAction_createPtr; - ffi.Pointer> + ffi.Pointer> get clang_IndexAction_dispose => _library._clang_IndexAction_disposePtr; - ffi.Pointer> + ffi.Pointer> get clang_Location_isFromMainFile => _library._clang_Location_isFromMainFilePtr; - ffi.Pointer> + ffi.Pointer> get clang_Location_isInSystemHeader => _library._clang_Location_isInSystemHeaderPtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getASTFile => _library._clang_Module_getASTFilePtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getFullName => _library._clang_Module_getFullNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getName => _library._clang_Module_getNamePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_Module_getNumTopLevelHeaders => _library._clang_Module_getNumTopLevelHeadersPtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getParent => _library._clang_Module_getParentPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXFile Function(CXTranslationUnit, CXModule, ffi.UnsignedInt) + > + > get clang_Module_getTopLevelHeader => _library._clang_Module_getTopLevelHeaderPtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_isSystem => _library._clang_Module_isSystemPtr; - ffi.Pointer> + ffi.Pointer> get clang_PrintingPolicy_dispose => _library._clang_PrintingPolicy_disposePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXPrintingPolicy, ffi.UnsignedInt) + > + > get clang_PrintingPolicy_getProperty => _library._clang_PrintingPolicy_getPropertyPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CXPrintingPolicy, ffi.UnsignedInt, ffi.UnsignedInt) + > + > get clang_PrintingPolicy_setProperty => _library._clang_PrintingPolicy_setPropertyPtr; - ffi.Pointer> + ffi.Pointer> get clang_Range_isNull => _library._clang_Range_isNullPtr; - ffi.Pointer> + ffi.Pointer> get clang_TargetInfo_dispose => _library._clang_TargetInfo_disposePtr; - ffi.Pointer> + ffi.Pointer> get clang_TargetInfo_getPointerWidth => _library._clang_TargetInfo_getPointerWidthPtr; - ffi.Pointer> + ffi.Pointer> get clang_TargetInfo_getTriple => _library._clang_TargetInfo_getTriplePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getAlignOf => _library._clang_Type_getAlignOfPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getCXXRefQualifier => _library._clang_Type_getCXXRefQualifierPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getClassType => _library._clang_Type_getClassTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getModifiedType => _library._clang_Type_getModifiedTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNamedType => _library._clang_Type_getNamedTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNullability => _library._clang_Type_getNullabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNumObjCProtocolRefs => _library._clang_Type_getNumObjCProtocolRefsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNumObjCTypeArgs => _library._clang_Type_getNumObjCTypeArgsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNumTemplateArguments => _library._clang_Type_getNumTemplateArgumentsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getObjCEncoding => _library._clang_Type_getObjCEncodingPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getObjCObjectBaseType => _library._clang_Type_getObjCObjectBaseTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getObjCProtocolDecl => _library._clang_Type_getObjCProtocolDeclPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getObjCTypeArg => _library._clang_Type_getObjCTypeArgPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction)> + > get clang_Type_getOffsetOf => _library._clang_Type_getOffsetOfPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getSizeOf => _library._clang_Type_getSizeOfPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getTemplateArgumentAsType => _library._clang_Type_getTemplateArgumentAsTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_isTransparentTagTypedef => _library._clang_Type_isTransparentTagTypedefPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXType, CXFieldVisitor, CXClientData) + > + > get clang_Type_visitFields => _library._clang_Type_visitFieldsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + > get clang_annotateTokens => _library._clang_annotateTokensPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + > get clang_codeCompleteAt => _library._clang_codeCompleteAtPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_codeCompleteGetContainerKind => _library._clang_codeCompleteGetContainerKindPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction)> + > get clang_codeCompleteGetContainerUSR => _library._clang_codeCompleteGetContainerUSRPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLongLong Function(ffi.Pointer) + > + > get clang_codeCompleteGetContexts => _library._clang_codeCompleteGetContextsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXDiagnostic Function(ffi.Pointer, ffi.UnsignedInt) + > + > get clang_codeCompleteGetDiagnostic => _library._clang_codeCompleteGetDiagnosticPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(ffi.Pointer) + > + > get clang_codeCompleteGetNumDiagnostics => _library._clang_codeCompleteGetNumDiagnosticsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction)> + > get clang_codeCompleteGetObjCSelector => _library._clang_codeCompleteGetObjCSelectorPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXString Function(ffi.Pointer, ffi.Pointer) + > + > get clang_constructUSR_ObjCCategory => _library._clang_constructUSR_ObjCCategoryPtr; - ffi.Pointer> + ffi.Pointer)>> get clang_constructUSR_ObjCClass => _library._clang_constructUSR_ObjCClassPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction, CXString)> + > get clang_constructUSR_ObjCIvar => _library._clang_constructUSR_ObjCIvarPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXString Function(ffi.Pointer, ffi.UnsignedInt, CXString) + > + > get clang_constructUSR_ObjCMethod => _library._clang_constructUSR_ObjCMethodPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction, CXString)> + > get clang_constructUSR_ObjCProperty => _library._clang_constructUSR_ObjCPropertyPtr; - ffi.Pointer> + ffi.Pointer)>> get clang_constructUSR_ObjCProtocol => _library._clang_constructUSR_ObjCProtocolPtr; - ffi.Pointer> + ffi.Pointer> get clang_createCXCursorSet => _library._clang_createCXCursorSetPtr; - ffi.Pointer> + ffi.Pointer> get clang_createIndex => _library._clang_createIndexPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXTranslationUnit Function(CXIndex, ffi.Pointer) + > + > get clang_createTranslationUnit => _library._clang_createTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXIndex, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_createTranslationUnit2 => _library._clang_createTranslationUnit2Ptr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + CXTranslationUnit Function( + CXIndex, + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.UnsignedInt, + ffi.Pointer, + ) + > > get clang_createTranslationUnitFromSourceFile => _library._clang_createTranslationUnitFromSourceFilePtr; - ffi.Pointer> + ffi.Pointer> get clang_defaultCodeCompleteOptions => _library._clang_defaultCodeCompleteOptionsPtr; - ffi.Pointer> + ffi.Pointer> get clang_defaultDiagnosticDisplayOptions => _library._clang_defaultDiagnosticDisplayOptionsPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_defaultEditingTranslationUnitOptions => _library._clang_defaultEditingTranslationUnitOptionsPtr; - ffi.Pointer> + ffi.Pointer> get clang_defaultReparseOptions => _library._clang_defaultReparseOptionsPtr; - ffi.Pointer> + ffi.Pointer> get clang_defaultSaveOptions => _library._clang_defaultSaveOptionsPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeCXCursorSet => _library._clang_disposeCXCursorSetPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction)> + > get clang_disposeCXPlatformAvailability => _library._clang_disposeCXPlatformAvailabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeCXTUResourceUsage => _library._clang_disposeCXTUResourceUsagePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction)> + > get clang_disposeCodeCompleteResults => _library._clang_disposeCodeCompleteResultsPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeDiagnostic => _library._clang_disposeDiagnosticPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeDiagnosticSet => _library._clang_disposeDiagnosticSetPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeIndex => _library._clang_disposeIndexPtr; - ffi.Pointer> + ffi.Pointer)>> get clang_disposeOverriddenCursors => _library._clang_disposeOverriddenCursorsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction)> + > get clang_disposeSourceRangeList => _library._clang_disposeSourceRangeListPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeString => _library._clang_disposeStringPtr; - ffi.Pointer> + ffi.Pointer)>> get clang_disposeStringSet => _library._clang_disposeStringSetPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + > get clang_disposeTokens => _library._clang_disposeTokensPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeTranslationUnit => _library._clang_disposeTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer> get clang_enableStackTraces => _library._clang_enableStackTracesPtr; - ffi.Pointer> + ffi.Pointer> get clang_equalCursors => _library._clang_equalCursorsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXSourceLocation, CXSourceLocation) + > + > get clang_equalLocations => _library._clang_equalLocationsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_equalRanges => _library._clang_equalRangesPtr; - ffi.Pointer> + ffi.Pointer> get clang_equalTypes => _library._clang_equalTypesPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer< + ffi.NativeFunction)> + >, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + > get clang_executeOnThread => _library._clang_executeOnThreadPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXTranslationUnit, + CXFile, + CXCursorAndRangeVisitor, + ) + > + > get clang_findIncludesInFile => _library._clang_findIncludesInFilePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor, CXFile, CXCursorAndRangeVisitor) + > + > get clang_findReferencesInFile => _library._clang_findReferencesInFilePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_formatDiagnostic => _library._clang_formatDiagnosticPtr; - ffi.Pointer> + ffi.Pointer> get clang_getAddressSpace => _library._clang_getAddressSpacePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(CXTranslationUnit) + > + > get clang_getAllSkippedRanges => _library._clang_getAllSkippedRangesPtr; - ffi.Pointer> + ffi.Pointer> get clang_getArgType => _library._clang_getArgTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getArrayElementType => _library._clang_getArrayElementTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getArraySize => _library._clang_getArraySizePtr; - ffi.Pointer> + ffi.Pointer Function(CXString)>> get clang_getCString => _library._clang_getCStringPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCXTUResourceUsage => _library._clang_getCXTUResourceUsagePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCXXAccessSpecifier => _library._clang_getCXXAccessSpecifierPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCanonicalCursor => _library._clang_getCanonicalCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCanonicalType => _library._clang_getCanonicalTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getChildDiagnostics => _library._clang_getChildDiagnosticsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getClangVersion => _library._clang_getClangVersionPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getCompletionAnnotation => _library._clang_getCompletionAnnotationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCompletionAvailability => _library._clang_getCompletionAvailabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCompletionBriefComment => _library._clang_getCompletionBriefCommentPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + CXCompletionString Function(CXCompletionString, ffi.UnsignedInt) + > > get clang_getCompletionChunkCompletionString => _library._clang_getCompletionChunkCompletionStringPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString, ffi.UnsignedInt) + > + > get clang_getCompletionChunkKind => _library._clang_getCompletionChunkKindPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getCompletionChunkText => _library._clang_getCompletionChunkTextPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXString Function( + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + > get clang_getCompletionFixIt => _library._clang_getCompletionFixItPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCompletionNumAnnotations => _library._clang_getCompletionNumAnnotationsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.UnsignedInt, + ) + > + > get clang_getCompletionNumFixIts => _library._clang_getCompletionNumFixItsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXString Function(CXCompletionString, ffi.Pointer) + > + > get clang_getCompletionParent => _library._clang_getCompletionParentPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCompletionPriority => _library._clang_getCompletionPriorityPtr; - ffi.Pointer> get clang_getCursor => - _library._clang_getCursorPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > + get clang_getCursor => _library._clang_getCursorPtr; + ffi.Pointer> get clang_getCursorAvailability => _library._clang_getCursorAvailabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorCompletionString => _library._clang_getCursorCompletionStringPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorDefinition => _library._clang_getCursorDefinitionPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorDisplayName => _library._clang_getCursorDisplayNamePtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getCursorExceptionSpecificationType => _library._clang_getCursorExceptionSpecificationTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorExtent => _library._clang_getCursorExtentPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorKind => _library._clang_getCursorKindPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorKindSpelling => _library._clang_getCursorKindSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLanguage => _library._clang_getCursorLanguagePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLexicalParent => _library._clang_getCursorLexicalParentPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLinkage => _library._clang_getCursorLinkagePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLocation => _library._clang_getCursorLocationPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + CXCursor, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + > get clang_getCursorPlatformAvailability => _library._clang_getCursorPlatformAvailabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorPrettyPrinted => _library._clang_getCursorPrettyPrintedPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorPrintingPolicy => _library._clang_getCursorPrintingPolicyPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) + > + > get clang_getCursorReferenceNameRange => _library._clang_getCursorReferenceNameRangePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorReferenced => _library._clang_getCursorReferencedPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorResultType => _library._clang_getCursorResultTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorSemanticParent => _library._clang_getCursorSemanticParentPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorSpelling => _library._clang_getCursorSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorTLSKind => _library._clang_getCursorTLSKindPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorType => _library._clang_getCursorTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorUSR => _library._clang_getCursorUSRPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorVisibility => _library._clang_getCursorVisibilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDeclObjCTypeEncoding => _library._clang_getDeclObjCTypeEncodingPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXCursor, + ffi.Pointer>, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_getDefinitionSpellingAndExtent => _library._clang_getDefinitionSpellingAndExtentPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXDiagnostic Function(CXTranslationUnit, ffi.UnsignedInt) + > + > get clang_getDiagnostic => _library._clang_getDiagnosticPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticCategory => _library._clang_getDiagnosticCategoryPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticCategoryName => _library._clang_getDiagnosticCategoryNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticCategoryText => _library._clang_getDiagnosticCategoryTextPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXString Function( + CXDiagnostic, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + > get clang_getDiagnosticFixIt => _library._clang_getDiagnosticFixItPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getDiagnosticInSet => _library._clang_getDiagnosticInSetPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticLocation => _library._clang_getDiagnosticLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticNumFixIts => _library._clang_getDiagnosticNumFixItsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticNumRanges => _library._clang_getDiagnosticNumRangesPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction)> + > get clang_getDiagnosticOption => _library._clang_getDiagnosticOptionPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getDiagnosticRange => _library._clang_getDiagnosticRangePtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticSetFromTU => _library._clang_getDiagnosticSetFromTUPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticSeverity => _library._clang_getDiagnosticSeverityPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticSpelling => _library._clang_getDiagnosticSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getElementType => _library._clang_getElementTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getEnumConstantDeclUnsignedValue => _library._clang_getEnumConstantDeclUnsignedValuePtr; - ffi.Pointer> + ffi.Pointer> get clang_getEnumConstantDeclValue => _library._clang_getEnumConstantDeclValuePtr; - ffi.Pointer> + ffi.Pointer> get clang_getEnumDeclIntegerType => _library._clang_getEnumDeclIntegerTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getExceptionSpecificationType => _library._clang_getExceptionSpecificationTypePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_getExpansionLocation => _library._clang_getExpansionLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getFieldDeclBitWidth => _library._clang_getFieldDeclBitWidthPtr; - ffi.Pointer> get clang_getFile => - _library._clang_getFilePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXFile Function(CXTranslationUnit, ffi.Pointer) + > + > + get clang_getFile => _library._clang_getFilePtr; + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + CXTranslationUnit, + CXFile, + ffi.Pointer, + ) + > + > get clang_getFileContents => _library._clang_getFileContentsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_getFileLocation => _library._clang_getFileLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getFileName => _library._clang_getFileNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_getFileTime => _library._clang_getFileTimePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction)> + > get clang_getFileUniqueID => _library._clang_getFileUniqueIDPtr; - ffi.Pointer> + ffi.Pointer> get clang_getFunctionTypeCallingConv => _library._clang_getFunctionTypeCallingConvPtr; - ffi.Pointer> + ffi.Pointer> get clang_getIBOutletCollectionType => _library._clang_getIBOutletCollectionTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getIncludedFile => _library._clang_getIncludedFilePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CXTranslationUnit, CXInclusionVisitor, CXClientData) + > + > get clang_getInclusions => _library._clang_getInclusionsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_getInstantiationLocation => _library._clang_getInstantiationLocationPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXSourceLocation Function( + CXTranslationUnit, + CXFile, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + > get clang_getLocation => _library._clang_getLocationPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXSourceLocation Function(CXTranslationUnit, CXFile, ffi.UnsignedInt) + > + > get clang_getLocationForOffset => _library._clang_getLocationForOffsetPtr; - ffi.Pointer> + ffi.Pointer> get clang_getModuleForFile => _library._clang_getModuleForFilePtr; - ffi.Pointer> + ffi.Pointer> get clang_getNullCursor => _library._clang_getNullCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNullLocation => _library._clang_getNullLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNullRange => _library._clang_getNullRangePtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumArgTypes => _library._clang_getNumArgTypesPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumCompletionChunks => _library._clang_getNumCompletionChunksPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumDiagnostics => _library._clang_getNumDiagnosticsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumDiagnosticsInSet => _library._clang_getNumDiagnosticsInSetPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumElements => _library._clang_getNumElementsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumOverloadedDecls => _library._clang_getNumOverloadedDeclsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getOverloadedDecl => _library._clang_getOverloadedDeclPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXCursor, + ffi.Pointer>, + ffi.Pointer, + ) + > + > get clang_getOverriddenCursors => _library._clang_getOverriddenCursorsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getPointeeType => _library._clang_getPointeeTypePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_getPresumedLocation => _library._clang_getPresumedLocationPtr; - ffi.Pointer> get clang_getRange => - _library._clang_getRangePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXSourceRange Function(CXSourceLocation, CXSourceLocation) + > + > + get clang_getRange => _library._clang_getRangePtr; + ffi.Pointer> get clang_getRangeEnd => _library._clang_getRangeEndPtr; - ffi.Pointer> + ffi.Pointer> get clang_getRangeStart => _library._clang_getRangeStartPtr; - ffi.Pointer> + ffi.Pointer)>> get clang_getRemappings => _library._clang_getRemappingsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXRemapping Function(ffi.Pointer>, ffi.UnsignedInt) + > + > get clang_getRemappingsFromFileList => _library._clang_getRemappingsFromFileListPtr; - ffi.Pointer> + ffi.Pointer> get clang_getResultType => _library._clang_getResultTypePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(CXTranslationUnit, CXFile) + > + > get clang_getSkippedRanges => _library._clang_getSkippedRangesPtr; - ffi.Pointer> + ffi.Pointer> get clang_getSpecializedCursorTemplate => _library._clang_getSpecializedCursorTemplatePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXSourceLocation, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_getSpellingLocation => _library._clang_getSpellingLocationPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction Function(ffi.UnsignedInt)> + > get clang_getTUResourceUsageName => _library._clang_getTUResourceUsageNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_getTemplateCursorKind => _library._clang_getTemplateCursorKindPtr; - ffi.Pointer> get clang_getToken => - _library._clang_getTokenPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(CXTranslationUnit, CXSourceLocation) + > + > + get clang_getToken => _library._clang_getTokenPtr; + ffi.Pointer< + ffi.NativeFunction + > get clang_getTokenExtent => _library._clang_getTokenExtentPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTokenKind => _library._clang_getTokenKindPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getTokenLocation => _library._clang_getTokenLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTokenSpelling => _library._clang_getTokenSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTranslationUnitCursor => _library._clang_getTranslationUnitCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTranslationUnitSpelling => _library._clang_getTranslationUnitSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTranslationUnitTargetInfo => _library._clang_getTranslationUnitTargetInfoPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypeDeclaration => _library._clang_getTypeDeclarationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypeKindSpelling => _library._clang_getTypeKindSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypeSpelling => _library._clang_getTypeSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypedefDeclUnderlyingType => _library._clang_getTypedefDeclUnderlyingTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypedefName => _library._clang_getTypedefNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_hashCursor => _library._clang_hashCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_indexLoc_getCXSourceLocation => _library._clang_indexLoc_getCXSourceLocationPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXIdxLoc, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_indexLoc_getFileLocation => _library._clang_indexLoc_getFileLocationPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + > get clang_indexSourceFile => _library._clang_indexSourceFilePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + > get clang_indexSourceFileFullArgv => _library._clang_indexSourceFileFullArgvPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + CXIndexAction, + CXClientData, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + CXTranslationUnit, + ) + > + > get clang_indexTranslationUnit => _library._clang_indexTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + > get clang_index_getCXXClassDeclInfo => _library._clang_index_getCXXClassDeclInfoPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXIdxClientContainer Function(ffi.Pointer) + > + > get clang_index_getClientContainer => _library._clang_index_getClientContainerPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction)> + > get clang_index_getClientEntity => _library._clang_index_getClientEntityPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > > get clang_index_getIBOutletCollectionAttrInfo => _library._clang_index_getIBOutletCollectionAttrInfoPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + > get clang_index_getObjCCategoryDeclInfo => _library._clang_index_getObjCCategoryDeclInfoPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + > get clang_index_getObjCContainerDeclInfo => _library._clang_index_getObjCContainerDeclInfoPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + > get clang_index_getObjCInterfaceDeclInfo => _library._clang_index_getObjCInterfaceDeclInfoPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + > get clang_index_getObjCPropertyDeclInfo => _library._clang_index_getObjCPropertyDeclInfoPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + > get clang_index_getObjCProtocolRefListInfo => _library._clang_index_getObjCProtocolRefListInfoPtr; - ffi.Pointer> + ffi.Pointer> get clang_index_isEntityObjCContainerKind => _library._clang_index_isEntityObjCContainerKindPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, CXIdxClientContainer) + > + > get clang_index_setClientContainer => _library._clang_index_setClientContainerPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, CXIdxClientEntity) + > + > get clang_index_setClientEntity => _library._clang_index_setClientEntityPtr; - ffi.Pointer> + ffi.Pointer> get clang_isAttribute => _library._clang_isAttributePtr; - ffi.Pointer> + ffi.Pointer> get clang_isConstQualifiedType => _library._clang_isConstQualifiedTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_isCursorDefinition => _library._clang_isCursorDefinitionPtr; - ffi.Pointer> + ffi.Pointer> get clang_isDeclaration => _library._clang_isDeclarationPtr; - ffi.Pointer> + ffi.Pointer> get clang_isExpression => _library._clang_isExpressionPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_isFileMultipleIncludeGuarded => _library._clang_isFileMultipleIncludeGuardedPtr; - ffi.Pointer> + ffi.Pointer> get clang_isFunctionTypeVariadic => _library._clang_isFunctionTypeVariadicPtr; - ffi.Pointer> get clang_isInvalid => - _library._clang_isInvalidPtr; - ffi.Pointer> + ffi.Pointer> + get clang_isInvalid => _library._clang_isInvalidPtr; + ffi.Pointer> get clang_isInvalidDeclaration => _library._clang_isInvalidDeclarationPtr; - ffi.Pointer> get clang_isPODType => - _library._clang_isPODTypePtr; - ffi.Pointer> + ffi.Pointer> + get clang_isPODType => _library._clang_isPODTypePtr; + ffi.Pointer> get clang_isPreprocessing => _library._clang_isPreprocessingPtr; - ffi.Pointer> + ffi.Pointer> get clang_isReference => _library._clang_isReferencePtr; - ffi.Pointer> + ffi.Pointer> get clang_isRestrictQualifiedType => _library._clang_isRestrictQualifiedTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_isStatement => _library._clang_isStatementPtr; - ffi.Pointer> + ffi.Pointer> get clang_isTranslationUnit => _library._clang_isTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer> get clang_isUnexposed => _library._clang_isUnexposedPtr; - ffi.Pointer> + ffi.Pointer> get clang_isVirtualBase => _library._clang_isVirtualBasePtr; - ffi.Pointer> + ffi.Pointer> get clang_isVolatileQualifiedType => _library._clang_isVolatileQualifiedTypePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXDiagnosticSet Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_loadDiagnostics => _library._clang_loadDiagnosticsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXTranslationUnit Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ) + > + > get clang_parseTranslationUnit => _library._clang_parseTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + > get clang_parseTranslationUnit2 => _library._clang_parseTranslationUnit2Ptr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function( + CXIndex, + ffi.Pointer, + ffi.Pointer>, + ffi.Int, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ) + > + > get clang_parseTranslationUnit2FullArgv => _library._clang_parseTranslationUnit2FullArgvPtr; - ffi.Pointer> + ffi.Pointer> get clang_remap_dispose => _library._clang_remap_disposePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXRemapping, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer, + ) + > + > get clang_remap_getFilenames => _library._clang_remap_getFilenamesPtr; - ffi.Pointer> + ffi.Pointer> get clang_remap_getNumFiles => _library._clang_remap_getNumFilesPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + CXTranslationUnit, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + > get clang_reparseTranslationUnit => _library._clang_reparseTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Int Function( + CXTranslationUnit, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + > get clang_saveTranslationUnit => _library._clang_saveTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) + > + > get clang_sortCodeCompletionResults => _library._clang_sortCodeCompletionResultsPtr; - ffi.Pointer> + ffi.Pointer> get clang_suspendTranslationUnit => _library._clang_suspendTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer> get clang_toggleCrashRecovery => _library._clang_toggleCrashRecoveryPtr; - ffi.Pointer> get clang_tokenize => - _library._clang_tokenizePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + CXTranslationUnit, + CXSourceRange, + ffi.Pointer>, + ffi.Pointer, + ) + > + > + get clang_tokenize => _library._clang_tokenizePtr; + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor, CXCursorVisitor, CXClientData) + > + > get clang_visitChildren => _library._clang_visitChildrenPtr; } @@ -10088,1523 +11355,3 @@ final class IndexerCallbacks extends ffi.Struct { ..ref.indexDeclaration = indexDeclaration ..ref.indexEntityReference = indexEntityReference; } - -typedef NativeClang_CXCursorSet_contains = - ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor); -typedef DartClang_CXCursorSet_contains = - int Function(CXCursorSet cset, CXCursor cursor); -typedef NativeClang_CXCursorSet_insert = - ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor); -typedef DartClang_CXCursorSet_insert = - int Function(CXCursorSet cset, CXCursor cursor); -typedef NativeClang_CXIndex_getGlobalOptions = - ffi.UnsignedInt Function(CXIndex); -typedef DartClang_CXIndex_getGlobalOptions = int Function(CXIndex); -typedef NativeClang_CXIndex_setGlobalOptions = - ffi.Void Function(CXIndex, ffi.UnsignedInt options); -typedef DartClang_CXIndex_setGlobalOptions = - void Function(CXIndex, int options); -typedef NativeClang_CXIndex_setInvocationEmissionPathOption = - ffi.Void Function(CXIndex, ffi.Pointer Path); -typedef DartClang_CXIndex_setInvocationEmissionPathOption = - void Function(CXIndex, ffi.Pointer Path); -typedef NativeClang_CXXConstructor_isConvertingConstructor = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXConstructor_isConvertingConstructor = - int Function(CXCursor C); -typedef NativeClang_CXXConstructor_isCopyConstructor = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXConstructor_isCopyConstructor = int Function(CXCursor C); -typedef NativeClang_CXXConstructor_isDefaultConstructor = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXConstructor_isDefaultConstructor = - int Function(CXCursor C); -typedef NativeClang_CXXConstructor_isMoveConstructor = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXConstructor_isMoveConstructor = int Function(CXCursor C); -typedef NativeClang_CXXField_isMutable = ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXField_isMutable = int Function(CXCursor C); -typedef NativeClang_CXXMethod_isConst = ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXMethod_isConst = int Function(CXCursor C); -typedef NativeClang_CXXMethod_isDefaulted = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXMethod_isDefaulted = int Function(CXCursor C); -typedef NativeClang_CXXMethod_isPureVirtual = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXMethod_isPureVirtual = int Function(CXCursor C); -typedef NativeClang_CXXMethod_isStatic = ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXMethod_isStatic = int Function(CXCursor C); -typedef NativeClang_CXXMethod_isVirtual = ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXMethod_isVirtual = int Function(CXCursor C); -typedef NativeClang_CXXRecord_isAbstract = ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_CXXRecord_isAbstract = int Function(CXCursor C); -typedef NativeClang_Cursor_Evaluate = CXEvalResult Function(CXCursor C); -typedef DartClang_Cursor_Evaluate = CXEvalResult Function(CXCursor C); -typedef NativeClang_Cursor_getArgument = - CXCursor Function(CXCursor C, ffi.UnsignedInt i); -typedef DartClang_Cursor_getArgument = CXCursor Function(CXCursor C, int i); -typedef NativeClang_Cursor_getBriefCommentText = CXString Function(CXCursor C); -typedef DartClang_Cursor_getBriefCommentText = CXString Function(CXCursor C); -typedef NativeClang_Cursor_getCXXManglings = - ffi.Pointer Function(CXCursor); -typedef DartClang_Cursor_getCXXManglings = - ffi.Pointer Function(CXCursor); -typedef NativeClang_Cursor_getCommentRange = CXSourceRange Function(CXCursor C); -typedef DartClang_Cursor_getCommentRange = CXSourceRange Function(CXCursor C); -typedef NativeClang_Cursor_getMangling = CXString Function(CXCursor); -typedef DartClang_Cursor_getMangling = CXString Function(CXCursor); -typedef NativeClang_Cursor_getModule = CXModule Function(CXCursor C); -typedef DartClang_Cursor_getModule = CXModule Function(CXCursor C); -typedef NativeClang_Cursor_getNumArguments = ffi.Int Function(CXCursor C); -typedef DartClang_Cursor_getNumArguments = int Function(CXCursor C); -typedef NativeClang_Cursor_getNumTemplateArguments = - ffi.Int Function(CXCursor C); -typedef DartClang_Cursor_getNumTemplateArguments = int Function(CXCursor C); -typedef NativeClang_Cursor_getObjCDeclQualifiers = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_getObjCDeclQualifiers = int Function(CXCursor C); -typedef NativeClang_Cursor_getObjCManglings = - ffi.Pointer Function(CXCursor); -typedef DartClang_Cursor_getObjCManglings = - ffi.Pointer Function(CXCursor); -typedef NativeClang_Cursor_getObjCPropertyAttributes = - ffi.UnsignedInt Function(CXCursor C, ffi.UnsignedInt reserved); -typedef DartClang_Cursor_getObjCPropertyAttributes = - int Function(CXCursor C, int reserved); -typedef NativeClang_Cursor_getObjCPropertyGetterName = - CXString Function(CXCursor C); -typedef DartClang_Cursor_getObjCPropertyGetterName = - CXString Function(CXCursor C); -typedef NativeClang_Cursor_getObjCPropertySetterName = - CXString Function(CXCursor C); -typedef DartClang_Cursor_getObjCPropertySetterName = - CXString Function(CXCursor C); -typedef NativeClang_Cursor_getObjCSelectorIndex = ffi.Int Function(CXCursor); -typedef DartClang_Cursor_getObjCSelectorIndex = int Function(CXCursor); -typedef NativeClang_Cursor_getOffsetOfField = ffi.LongLong Function(CXCursor C); -typedef DartClang_Cursor_getOffsetOfField = int Function(CXCursor C); -typedef NativeClang_Cursor_getRawCommentText = CXString Function(CXCursor C); -typedef DartClang_Cursor_getRawCommentText = CXString Function(CXCursor C); -typedef NativeClang_Cursor_getReceiverType = CXType Function(CXCursor C); -typedef DartClang_Cursor_getReceiverType = CXType Function(CXCursor C); -typedef NativeClang_Cursor_getSpellingNameRange = - CXSourceRange Function( - CXCursor, - ffi.UnsignedInt pieceIndex, - ffi.UnsignedInt options, - ); -typedef DartClang_Cursor_getSpellingNameRange = - CXSourceRange Function(CXCursor, int pieceIndex, int options); -typedef NativeClang_Cursor_getStorageClass = ffi.UnsignedInt Function(CXCursor); -typedef DartClang_Cursor_getStorageClass = int Function(CXCursor); -typedef NativeClang_Cursor_getTemplateArgumentKind = - ffi.UnsignedInt Function(CXCursor C, ffi.UnsignedInt I); -typedef DartClang_Cursor_getTemplateArgumentKind = - int Function(CXCursor C, int I); -typedef NativeClang_Cursor_getTemplateArgumentType = - CXType Function(CXCursor C, ffi.UnsignedInt I); -typedef DartClang_Cursor_getTemplateArgumentType = - CXType Function(CXCursor C, int I); -typedef NativeClang_Cursor_getTemplateArgumentUnsignedValue = - ffi.UnsignedLongLong Function(CXCursor C, ffi.UnsignedInt I); -typedef DartClang_Cursor_getTemplateArgumentUnsignedValue = - int Function(CXCursor C, int I); -typedef NativeClang_Cursor_getTemplateArgumentValue = - ffi.LongLong Function(CXCursor C, ffi.UnsignedInt I); -typedef DartClang_Cursor_getTemplateArgumentValue = - int Function(CXCursor C, int I); -typedef NativeClang_Cursor_getTranslationUnit = - CXTranslationUnit Function(CXCursor); -typedef DartClang_Cursor_getTranslationUnit = - CXTranslationUnit Function(CXCursor); -typedef NativeClang_Cursor_hasAttrs = ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_hasAttrs = int Function(CXCursor C); -typedef NativeClang_Cursor_isAnonymous = ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_isAnonymous = int Function(CXCursor C); -typedef NativeClang_Cursor_isAnonymousRecordDecl = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_isAnonymousRecordDecl = int Function(CXCursor C); -typedef NativeClang_Cursor_isBitField = ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_isBitField = int Function(CXCursor C); -typedef NativeClang_Cursor_isDynamicCall = ffi.Int Function(CXCursor C); -typedef DartClang_Cursor_isDynamicCall = int Function(CXCursor C); -typedef NativeClang_Cursor_isExternalSymbol = - ffi.UnsignedInt Function( - CXCursor C, - ffi.Pointer language, - ffi.Pointer definedIn, - ffi.Pointer isGenerated, - ); -typedef DartClang_Cursor_isExternalSymbol = - int Function( - CXCursor C, - ffi.Pointer language, - ffi.Pointer definedIn, - ffi.Pointer isGenerated, - ); -typedef NativeClang_Cursor_isFunctionInlined = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_isFunctionInlined = int Function(CXCursor C); -typedef NativeClang_Cursor_isInlineNamespace = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_isInlineNamespace = int Function(CXCursor C); -typedef NativeClang_Cursor_isMacroBuiltin = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_isMacroBuiltin = int Function(CXCursor C); -typedef NativeClang_Cursor_isMacroFunctionLike = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_isMacroFunctionLike = int Function(CXCursor C); -typedef NativeClang_Cursor_isNull = ffi.Int Function(CXCursor cursor); -typedef DartClang_Cursor_isNull = int Function(CXCursor cursor); -typedef NativeClang_Cursor_isObjCOptional = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_isObjCOptional = int Function(CXCursor C); -typedef NativeClang_Cursor_isVariadic = ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_Cursor_isVariadic = int Function(CXCursor C); -typedef NativeClang_EnumDecl_isScoped = ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_EnumDecl_isScoped = int Function(CXCursor C); -typedef NativeClang_EvalResult_dispose = ffi.Void Function(CXEvalResult E); -typedef DartClang_EvalResult_dispose = void Function(CXEvalResult E); -typedef NativeClang_EvalResult_getAsDouble = - ffi.Double Function(CXEvalResult E); -typedef DartClang_EvalResult_getAsDouble = double Function(CXEvalResult E); -typedef NativeClang_EvalResult_getAsInt = ffi.Int Function(CXEvalResult E); -typedef DartClang_EvalResult_getAsInt = int Function(CXEvalResult E); -typedef NativeClang_EvalResult_getAsLongLong = - ffi.LongLong Function(CXEvalResult E); -typedef DartClang_EvalResult_getAsLongLong = int Function(CXEvalResult E); -typedef NativeClang_EvalResult_getAsStr = - ffi.Pointer Function(CXEvalResult E); -typedef DartClang_EvalResult_getAsStr = - ffi.Pointer Function(CXEvalResult E); -typedef NativeClang_EvalResult_getAsUnsigned = - ffi.UnsignedLongLong Function(CXEvalResult E); -typedef DartClang_EvalResult_getAsUnsigned = int Function(CXEvalResult E); -typedef NativeClang_EvalResult_getKind = - ffi.UnsignedInt Function(CXEvalResult E); -typedef DartClang_EvalResult_getKind = int Function(CXEvalResult E); -typedef NativeClang_EvalResult_isUnsignedInt = - ffi.UnsignedInt Function(CXEvalResult E); -typedef DartClang_EvalResult_isUnsignedInt = int Function(CXEvalResult E); -typedef NativeClang_File_isEqual = ffi.Int Function(CXFile file1, CXFile file2); -typedef DartClang_File_isEqual = int Function(CXFile file1, CXFile file2); -typedef NativeClang_File_tryGetRealPathName = CXString Function(CXFile file); -typedef DartClang_File_tryGetRealPathName = CXString Function(CXFile file); -typedef NativeClang_IndexAction_create = CXIndexAction Function(CXIndex CIdx); -typedef DartClang_IndexAction_create = CXIndexAction Function(CXIndex CIdx); -typedef NativeClang_IndexAction_dispose = ffi.Void Function(CXIndexAction); -typedef DartClang_IndexAction_dispose = void Function(CXIndexAction); -typedef NativeClang_Location_isFromMainFile = - ffi.Int Function(CXSourceLocation location); -typedef DartClang_Location_isFromMainFile = - int Function(CXSourceLocation location); -typedef NativeClang_Location_isInSystemHeader = - ffi.Int Function(CXSourceLocation location); -typedef DartClang_Location_isInSystemHeader = - int Function(CXSourceLocation location); -typedef NativeClang_Module_getASTFile = CXFile Function(CXModule Module); -typedef DartClang_Module_getASTFile = CXFile Function(CXModule Module); -typedef NativeClang_Module_getFullName = CXString Function(CXModule Module); -typedef DartClang_Module_getFullName = CXString Function(CXModule Module); -typedef NativeClang_Module_getName = CXString Function(CXModule Module); -typedef DartClang_Module_getName = CXString Function(CXModule Module); -typedef NativeClang_Module_getNumTopLevelHeaders = - ffi.UnsignedInt Function(CXTranslationUnit, CXModule Module); -typedef DartClang_Module_getNumTopLevelHeaders = - int Function(CXTranslationUnit, CXModule Module); -typedef NativeClang_Module_getParent = CXModule Function(CXModule Module); -typedef DartClang_Module_getParent = CXModule Function(CXModule Module); -typedef NativeClang_Module_getTopLevelHeader = - CXFile Function(CXTranslationUnit, CXModule Module, ffi.UnsignedInt Index); -typedef DartClang_Module_getTopLevelHeader = - CXFile Function(CXTranslationUnit, CXModule Module, int Index); -typedef NativeClang_Module_isSystem = ffi.Int Function(CXModule Module); -typedef DartClang_Module_isSystem = int Function(CXModule Module); -typedef NativeClang_PrintingPolicy_dispose = - ffi.Void Function(CXPrintingPolicy Policy); -typedef DartClang_PrintingPolicy_dispose = - void Function(CXPrintingPolicy Policy); -typedef NativeClang_PrintingPolicy_getProperty = - ffi.UnsignedInt Function(CXPrintingPolicy Policy, ffi.UnsignedInt Property); -typedef DartClang_PrintingPolicy_getProperty = - int Function(CXPrintingPolicy Policy, int Property); -typedef NativeClang_PrintingPolicy_setProperty = - ffi.Void Function( - CXPrintingPolicy Policy, - ffi.UnsignedInt Property, - ffi.UnsignedInt Value, - ); -typedef DartClang_PrintingPolicy_setProperty = - void Function(CXPrintingPolicy Policy, int Property, int Value); -typedef NativeClang_Range_isNull = ffi.Int Function(CXSourceRange range); -typedef DartClang_Range_isNull = int Function(CXSourceRange range); -typedef NativeClang_TargetInfo_dispose = ffi.Void Function(CXTargetInfo Info); -typedef DartClang_TargetInfo_dispose = void Function(CXTargetInfo Info); -typedef NativeClang_TargetInfo_getPointerWidth = - ffi.Int Function(CXTargetInfo Info); -typedef DartClang_TargetInfo_getPointerWidth = int Function(CXTargetInfo Info); -typedef NativeClang_TargetInfo_getTriple = CXString Function(CXTargetInfo Info); -typedef DartClang_TargetInfo_getTriple = CXString Function(CXTargetInfo Info); -typedef NativeClang_Type_getAlignOf = ffi.LongLong Function(CXType T); -typedef DartClang_Type_getAlignOf = int Function(CXType T); -typedef NativeClang_Type_getCXXRefQualifier = - ffi.UnsignedInt Function(CXType T); -typedef DartClang_Type_getCXXRefQualifier = int Function(CXType T); -typedef NativeClang_Type_getClassType = CXType Function(CXType T); -typedef DartClang_Type_getClassType = CXType Function(CXType T); -typedef NativeClang_Type_getModifiedType = CXType Function(CXType T); -typedef DartClang_Type_getModifiedType = CXType Function(CXType T); -typedef NativeClang_Type_getNamedType = CXType Function(CXType T); -typedef DartClang_Type_getNamedType = CXType Function(CXType T); -typedef NativeClang_Type_getNullability = ffi.UnsignedInt Function(CXType T); -typedef DartClang_Type_getNullability = int Function(CXType T); -typedef NativeClang_Type_getNumObjCProtocolRefs = - ffi.UnsignedInt Function(CXType T); -typedef DartClang_Type_getNumObjCProtocolRefs = int Function(CXType T); -typedef NativeClang_Type_getNumObjCTypeArgs = - ffi.UnsignedInt Function(CXType T); -typedef DartClang_Type_getNumObjCTypeArgs = int Function(CXType T); -typedef NativeClang_Type_getNumTemplateArguments = ffi.Int Function(CXType T); -typedef DartClang_Type_getNumTemplateArguments = int Function(CXType T); -typedef NativeClang_Type_getObjCEncoding = CXString Function(CXType type); -typedef DartClang_Type_getObjCEncoding = CXString Function(CXType type); -typedef NativeClang_Type_getObjCObjectBaseType = CXType Function(CXType T); -typedef DartClang_Type_getObjCObjectBaseType = CXType Function(CXType T); -typedef NativeClang_Type_getObjCProtocolDecl = - CXCursor Function(CXType T, ffi.UnsignedInt i); -typedef DartClang_Type_getObjCProtocolDecl = CXCursor Function(CXType T, int i); -typedef NativeClang_Type_getObjCTypeArg = - CXType Function(CXType T, ffi.UnsignedInt i); -typedef DartClang_Type_getObjCTypeArg = CXType Function(CXType T, int i); -typedef NativeClang_Type_getOffsetOf = - ffi.LongLong Function(CXType T, ffi.Pointer S); -typedef DartClang_Type_getOffsetOf = - int Function(CXType T, ffi.Pointer S); -typedef NativeClang_Type_getSizeOf = ffi.LongLong Function(CXType T); -typedef DartClang_Type_getSizeOf = int Function(CXType T); -typedef NativeClang_Type_getTemplateArgumentAsType = - CXType Function(CXType T, ffi.UnsignedInt i); -typedef DartClang_Type_getTemplateArgumentAsType = - CXType Function(CXType T, int i); -typedef NativeClang_Type_isTransparentTagTypedef = - ffi.UnsignedInt Function(CXType T); -typedef DartClang_Type_isTransparentTagTypedef = int Function(CXType T); -typedef NativeClang_Type_visitFields = - ffi.UnsignedInt Function( - CXType T, - CXFieldVisitor visitor, - CXClientData client_data, - ); -typedef DartClang_Type_visitFields = - int Function(CXType T, CXFieldVisitor visitor, CXClientData client_data); -typedef NativeClang_annotateTokens = - ffi.Void Function( - CXTranslationUnit TU, - ffi.Pointer Tokens, - ffi.UnsignedInt NumTokens, - ffi.Pointer Cursors, - ); -typedef DartClang_annotateTokens = - void Function( - CXTranslationUnit TU, - ffi.Pointer Tokens, - int NumTokens, - ffi.Pointer Cursors, - ); -typedef NativeClang_codeCompleteAt = - ffi.Pointer Function( - CXTranslationUnit TU, - ffi.Pointer complete_filename, - ffi.UnsignedInt complete_line, - ffi.UnsignedInt complete_column, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ); -typedef DartClang_codeCompleteAt = - ffi.Pointer Function( - CXTranslationUnit TU, - ffi.Pointer complete_filename, - int complete_line, - int complete_column, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ); -typedef NativeClang_codeCompleteGetContainerKind = - ffi.UnsignedInt Function( - ffi.Pointer Results, - ffi.Pointer IsIncomplete, - ); -typedef DartClang_codeCompleteGetContainerKind = - int Function( - ffi.Pointer Results, - ffi.Pointer IsIncomplete, - ); -typedef NativeClang_codeCompleteGetContainerUSR = - CXString Function(ffi.Pointer Results); -typedef DartClang_codeCompleteGetContainerUSR = - CXString Function(ffi.Pointer Results); -typedef NativeClang_codeCompleteGetContexts = - ffi.UnsignedLongLong Function(ffi.Pointer Results); -typedef DartClang_codeCompleteGetContexts = - int Function(ffi.Pointer Results); -typedef NativeClang_codeCompleteGetDiagnostic = - CXDiagnostic Function( - ffi.Pointer Results, - ffi.UnsignedInt Index, - ); -typedef DartClang_codeCompleteGetDiagnostic = - CXDiagnostic Function( - ffi.Pointer Results, - int Index, - ); -typedef NativeClang_codeCompleteGetNumDiagnostics = - ffi.UnsignedInt Function(ffi.Pointer Results); -typedef DartClang_codeCompleteGetNumDiagnostics = - int Function(ffi.Pointer Results); -typedef NativeClang_codeCompleteGetObjCSelector = - CXString Function(ffi.Pointer Results); -typedef DartClang_codeCompleteGetObjCSelector = - CXString Function(ffi.Pointer Results); -typedef NativeClang_constructUSR_ObjCCategory = - CXString Function( - ffi.Pointer class_name, - ffi.Pointer category_name, - ); -typedef DartClang_constructUSR_ObjCCategory = - CXString Function( - ffi.Pointer class_name, - ffi.Pointer category_name, - ); -typedef NativeClang_constructUSR_ObjCClass = - CXString Function(ffi.Pointer class_name); -typedef DartClang_constructUSR_ObjCClass = - CXString Function(ffi.Pointer class_name); -typedef NativeClang_constructUSR_ObjCIvar = - CXString Function(ffi.Pointer name, CXString classUSR); -typedef DartClang_constructUSR_ObjCIvar = - CXString Function(ffi.Pointer name, CXString classUSR); -typedef NativeClang_constructUSR_ObjCMethod = - CXString Function( - ffi.Pointer name, - ffi.UnsignedInt isInstanceMethod, - CXString classUSR, - ); -typedef DartClang_constructUSR_ObjCMethod = - CXString Function( - ffi.Pointer name, - int isInstanceMethod, - CXString classUSR, - ); -typedef NativeClang_constructUSR_ObjCProperty = - CXString Function(ffi.Pointer property, CXString classUSR); -typedef DartClang_constructUSR_ObjCProperty = - CXString Function(ffi.Pointer property, CXString classUSR); -typedef NativeClang_constructUSR_ObjCProtocol = - CXString Function(ffi.Pointer protocol_name); -typedef DartClang_constructUSR_ObjCProtocol = - CXString Function(ffi.Pointer protocol_name); -typedef NativeClang_createCXCursorSet = CXCursorSet Function(); -typedef DartClang_createCXCursorSet = CXCursorSet Function(); -typedef NativeClang_createIndex = - CXIndex Function( - ffi.Int excludeDeclarationsFromPCH, - ffi.Int displayDiagnostics, - ); -typedef DartClang_createIndex = - CXIndex Function(int excludeDeclarationsFromPCH, int displayDiagnostics); -typedef NativeClang_createTranslationUnit = - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer ast_filename, - ); -typedef DartClang_createTranslationUnit = - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer ast_filename, - ); -typedef NativeClang_createTranslationUnit2 = - ffi.UnsignedInt Function( - CXIndex CIdx, - ffi.Pointer ast_filename, - ffi.Pointer out_TU, - ); -typedef DartClang_createTranslationUnit2 = - int Function( - CXIndex CIdx, - ffi.Pointer ast_filename, - ffi.Pointer out_TU, - ); -typedef NativeClang_createTranslationUnitFromSourceFile = - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Int num_clang_command_line_args, - ffi.Pointer> clang_command_line_args, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer unsaved_files, - ); -typedef DartClang_createTranslationUnitFromSourceFile = - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer source_filename, - int num_clang_command_line_args, - ffi.Pointer> clang_command_line_args, - int num_unsaved_files, - ffi.Pointer unsaved_files, - ); -typedef NativeClang_defaultCodeCompleteOptions = ffi.UnsignedInt Function(); -typedef DartClang_defaultCodeCompleteOptions = int Function(); -typedef NativeClang_defaultDiagnosticDisplayOptions = - ffi.UnsignedInt Function(); -typedef DartClang_defaultDiagnosticDisplayOptions = int Function(); -typedef NativeClang_defaultEditingTranslationUnitOptions = - ffi.UnsignedInt Function(); -typedef DartClang_defaultEditingTranslationUnitOptions = int Function(); -typedef NativeClang_defaultReparseOptions = - ffi.UnsignedInt Function(CXTranslationUnit TU); -typedef DartClang_defaultReparseOptions = int Function(CXTranslationUnit TU); -typedef NativeClang_defaultSaveOptions = - ffi.UnsignedInt Function(CXTranslationUnit TU); -typedef DartClang_defaultSaveOptions = int Function(CXTranslationUnit TU); -typedef NativeClang_disposeCXCursorSet = ffi.Void Function(CXCursorSet cset); -typedef DartClang_disposeCXCursorSet = void Function(CXCursorSet cset); -typedef NativeClang_disposeCXPlatformAvailability = - ffi.Void Function(ffi.Pointer availability); -typedef DartClang_disposeCXPlatformAvailability = - void Function(ffi.Pointer availability); -typedef NativeClang_disposeCXTUResourceUsage = - ffi.Void Function(CXTUResourceUsage usage); -typedef DartClang_disposeCXTUResourceUsage = - void Function(CXTUResourceUsage usage); -typedef NativeClang_disposeCodeCompleteResults = - ffi.Void Function(ffi.Pointer Results); -typedef DartClang_disposeCodeCompleteResults = - void Function(ffi.Pointer Results); -typedef NativeClang_disposeDiagnostic = - ffi.Void Function(CXDiagnostic Diagnostic); -typedef DartClang_disposeDiagnostic = void Function(CXDiagnostic Diagnostic); -typedef NativeClang_disposeDiagnosticSet = - ffi.Void Function(CXDiagnosticSet Diags); -typedef DartClang_disposeDiagnosticSet = void Function(CXDiagnosticSet Diags); -typedef NativeClang_disposeIndex = ffi.Void Function(CXIndex index); -typedef DartClang_disposeIndex = void Function(CXIndex index); -typedef NativeClang_disposeOverriddenCursors = - ffi.Void Function(ffi.Pointer overridden); -typedef DartClang_disposeOverriddenCursors = - void Function(ffi.Pointer overridden); -typedef NativeClang_disposeSourceRangeList = - ffi.Void Function(ffi.Pointer ranges); -typedef DartClang_disposeSourceRangeList = - void Function(ffi.Pointer ranges); -typedef NativeClang_disposeString = ffi.Void Function(CXString string); -typedef DartClang_disposeString = void Function(CXString string); -typedef NativeClang_disposeStringSet = - ffi.Void Function(ffi.Pointer set); -typedef DartClang_disposeStringSet = - void Function(ffi.Pointer set); -typedef NativeClang_disposeTokens = - ffi.Void Function( - CXTranslationUnit TU, - ffi.Pointer Tokens, - ffi.UnsignedInt NumTokens, - ); -typedef DartClang_disposeTokens = - void Function( - CXTranslationUnit TU, - ffi.Pointer Tokens, - int NumTokens, - ); -typedef NativeClang_disposeTranslationUnit = - ffi.Void Function(CXTranslationUnit); -typedef DartClang_disposeTranslationUnit = void Function(CXTranslationUnit); -typedef NativeClang_enableStackTraces = ffi.Void Function(); -typedef DartClang_enableStackTraces = void Function(); -typedef NativeClang_equalCursors = ffi.UnsignedInt Function(CXCursor, CXCursor); -typedef DartClang_equalCursors = int Function(CXCursor, CXCursor); -typedef NativeClang_equalLocations = - ffi.UnsignedInt Function(CXSourceLocation loc1, CXSourceLocation loc2); -typedef DartClang_equalLocations = - int Function(CXSourceLocation loc1, CXSourceLocation loc2); -typedef NativeClang_equalRanges = - ffi.UnsignedInt Function(CXSourceRange range1, CXSourceRange range2); -typedef DartClang_equalRanges = - int Function(CXSourceRange range1, CXSourceRange range2); -typedef NativeClang_equalTypes = ffi.UnsignedInt Function(CXType A, CXType B); -typedef DartClang_equalTypes = int Function(CXType A, CXType B); -typedef NativeClang_executeOnThread = - ffi.Void Function( - ffi.Pointer)>> - fn, - ffi.Pointer user_data, - ffi.UnsignedInt stack_size, - ); -typedef DartClang_executeOnThread = - void Function( - ffi.Pointer)>> - fn, - ffi.Pointer user_data, - int stack_size, - ); -typedef NativeClang_findIncludesInFile = - ffi.UnsignedInt Function( - CXTranslationUnit TU, - CXFile file, - CXCursorAndRangeVisitor visitor, - ); -typedef DartClang_findIncludesInFile = - int Function( - CXTranslationUnit TU, - CXFile file, - CXCursorAndRangeVisitor visitor, - ); -typedef NativeClang_findReferencesInFile = - ffi.UnsignedInt Function( - CXCursor cursor, - CXFile file, - CXCursorAndRangeVisitor visitor, - ); -typedef DartClang_findReferencesInFile = - int Function(CXCursor cursor, CXFile file, CXCursorAndRangeVisitor visitor); -typedef NativeClang_formatDiagnostic = - CXString Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Options); -typedef DartClang_formatDiagnostic = - CXString Function(CXDiagnostic Diagnostic, int Options); -typedef NativeClang_getAddressSpace = ffi.UnsignedInt Function(CXType T); -typedef DartClang_getAddressSpace = int Function(CXType T); -typedef NativeClang_getAllSkippedRanges = - ffi.Pointer Function(CXTranslationUnit tu); -typedef DartClang_getAllSkippedRanges = - ffi.Pointer Function(CXTranslationUnit tu); -typedef NativeClang_getArgType = CXType Function(CXType T, ffi.UnsignedInt i); -typedef DartClang_getArgType = CXType Function(CXType T, int i); -typedef NativeClang_getArrayElementType = CXType Function(CXType T); -typedef DartClang_getArrayElementType = CXType Function(CXType T); -typedef NativeClang_getArraySize = ffi.LongLong Function(CXType T); -typedef DartClang_getArraySize = int Function(CXType T); -typedef NativeClang_getCString = - ffi.Pointer Function(CXString string); -typedef DartClang_getCString = ffi.Pointer Function(CXString string); -typedef NativeClang_getCXTUResourceUsage = - CXTUResourceUsage Function(CXTranslationUnit TU); -typedef DartClang_getCXTUResourceUsage = - CXTUResourceUsage Function(CXTranslationUnit TU); -typedef NativeClang_getCXXAccessSpecifier = ffi.UnsignedInt Function(CXCursor); -typedef DartClang_getCXXAccessSpecifier = int Function(CXCursor); -typedef NativeClang_getCanonicalCursor = CXCursor Function(CXCursor); -typedef DartClang_getCanonicalCursor = CXCursor Function(CXCursor); -typedef NativeClang_getCanonicalType = CXType Function(CXType T); -typedef DartClang_getCanonicalType = CXType Function(CXType T); -typedef NativeClang_getChildDiagnostics = - CXDiagnosticSet Function(CXDiagnostic D); -typedef DartClang_getChildDiagnostics = - CXDiagnosticSet Function(CXDiagnostic D); -typedef NativeClang_getClangVersion = CXString Function(); -typedef DartClang_getClangVersion = CXString Function(); -typedef NativeClang_getCompletionAnnotation = - CXString Function( - CXCompletionString completion_string, - ffi.UnsignedInt annotation_number, - ); -typedef DartClang_getCompletionAnnotation = - CXString Function( - CXCompletionString completion_string, - int annotation_number, - ); -typedef NativeClang_getCompletionAvailability = - ffi.UnsignedInt Function(CXCompletionString completion_string); -typedef DartClang_getCompletionAvailability = - int Function(CXCompletionString completion_string); -typedef NativeClang_getCompletionBriefComment = - CXString Function(CXCompletionString completion_string); -typedef DartClang_getCompletionBriefComment = - CXString Function(CXCompletionString completion_string); -typedef NativeClang_getCompletionChunkCompletionString = - CXCompletionString Function( - CXCompletionString completion_string, - ffi.UnsignedInt chunk_number, - ); -typedef DartClang_getCompletionChunkCompletionString = - CXCompletionString Function( - CXCompletionString completion_string, - int chunk_number, - ); -typedef NativeClang_getCompletionChunkKind = - ffi.UnsignedInt Function( - CXCompletionString completion_string, - ffi.UnsignedInt chunk_number, - ); -typedef DartClang_getCompletionChunkKind = - int Function(CXCompletionString completion_string, int chunk_number); -typedef NativeClang_getCompletionChunkText = - CXString Function( - CXCompletionString completion_string, - ffi.UnsignedInt chunk_number, - ); -typedef DartClang_getCompletionChunkText = - CXString Function(CXCompletionString completion_string, int chunk_number); -typedef NativeClang_getCompletionFixIt = - CXString Function( - ffi.Pointer results, - ffi.UnsignedInt completion_index, - ffi.UnsignedInt fixit_index, - ffi.Pointer replacement_range, - ); -typedef DartClang_getCompletionFixIt = - CXString Function( - ffi.Pointer results, - int completion_index, - int fixit_index, - ffi.Pointer replacement_range, - ); -typedef NativeClang_getCompletionNumAnnotations = - ffi.UnsignedInt Function(CXCompletionString completion_string); -typedef DartClang_getCompletionNumAnnotations = - int Function(CXCompletionString completion_string); -typedef NativeClang_getCompletionNumFixIts = - ffi.UnsignedInt Function( - ffi.Pointer results, - ffi.UnsignedInt completion_index, - ); -typedef DartClang_getCompletionNumFixIts = - int Function( - ffi.Pointer results, - int completion_index, - ); -typedef NativeClang_getCompletionParent = - CXString Function( - CXCompletionString completion_string, - ffi.Pointer kind, - ); -typedef DartClang_getCompletionParent = - CXString Function( - CXCompletionString completion_string, - ffi.Pointer kind, - ); -typedef NativeClang_getCompletionPriority = - ffi.UnsignedInt Function(CXCompletionString completion_string); -typedef DartClang_getCompletionPriority = - int Function(CXCompletionString completion_string); -typedef NativeClang_getCursor = - CXCursor Function(CXTranslationUnit, CXSourceLocation); -typedef DartClang_getCursor = - CXCursor Function(CXTranslationUnit, CXSourceLocation); -typedef NativeClang_getCursorAvailability = - ffi.UnsignedInt Function(CXCursor cursor); -typedef DartClang_getCursorAvailability = int Function(CXCursor cursor); -typedef NativeClang_getCursorCompletionString = - CXCompletionString Function(CXCursor cursor); -typedef DartClang_getCursorCompletionString = - CXCompletionString Function(CXCursor cursor); -typedef NativeClang_getCursorDefinition = CXCursor Function(CXCursor); -typedef DartClang_getCursorDefinition = CXCursor Function(CXCursor); -typedef NativeClang_getCursorDisplayName = CXString Function(CXCursor); -typedef DartClang_getCursorDisplayName = CXString Function(CXCursor); -typedef NativeClang_getCursorExceptionSpecificationType = - ffi.Int Function(CXCursor C); -typedef DartClang_getCursorExceptionSpecificationType = - int Function(CXCursor C); -typedef NativeClang_getCursorExtent = CXSourceRange Function(CXCursor); -typedef DartClang_getCursorExtent = CXSourceRange Function(CXCursor); -typedef NativeClang_getCursorKind = ffi.UnsignedInt Function(CXCursor); -typedef DartClang_getCursorKind = int Function(CXCursor); -typedef NativeClang_getCursorKindSpelling = - CXString Function(ffi.UnsignedInt Kind); -typedef DartClang_getCursorKindSpelling = CXString Function(int Kind); -typedef NativeClang_getCursorLanguage = - ffi.UnsignedInt Function(CXCursor cursor); -typedef DartClang_getCursorLanguage = int Function(CXCursor cursor); -typedef NativeClang_getCursorLexicalParent = CXCursor Function(CXCursor cursor); -typedef DartClang_getCursorLexicalParent = CXCursor Function(CXCursor cursor); -typedef NativeClang_getCursorLinkage = - ffi.UnsignedInt Function(CXCursor cursor); -typedef DartClang_getCursorLinkage = int Function(CXCursor cursor); -typedef NativeClang_getCursorLocation = CXSourceLocation Function(CXCursor); -typedef DartClang_getCursorLocation = CXSourceLocation Function(CXCursor); -typedef NativeClang_getCursorPlatformAvailability = - ffi.Int Function( - CXCursor cursor, - ffi.Pointer always_deprecated, - ffi.Pointer deprecated_message, - ffi.Pointer always_unavailable, - ffi.Pointer unavailable_message, - ffi.Pointer availability, - ffi.Int availability_size, - ); -typedef DartClang_getCursorPlatformAvailability = - int Function( - CXCursor cursor, - ffi.Pointer always_deprecated, - ffi.Pointer deprecated_message, - ffi.Pointer always_unavailable, - ffi.Pointer unavailable_message, - ffi.Pointer availability, - int availability_size, - ); -typedef NativeClang_getCursorPrettyPrinted = - CXString Function(CXCursor Cursor, CXPrintingPolicy Policy); -typedef DartClang_getCursorPrettyPrinted = - CXString Function(CXCursor Cursor, CXPrintingPolicy Policy); -typedef NativeClang_getCursorPrintingPolicy = - CXPrintingPolicy Function(CXCursor); -typedef DartClang_getCursorPrintingPolicy = CXPrintingPolicy Function(CXCursor); -typedef NativeClang_getCursorReferenceNameRange = - CXSourceRange Function( - CXCursor C, - ffi.UnsignedInt NameFlags, - ffi.UnsignedInt PieceIndex, - ); -typedef DartClang_getCursorReferenceNameRange = - CXSourceRange Function(CXCursor C, int NameFlags, int PieceIndex); -typedef NativeClang_getCursorReferenced = CXCursor Function(CXCursor); -typedef DartClang_getCursorReferenced = CXCursor Function(CXCursor); -typedef NativeClang_getCursorResultType = CXType Function(CXCursor C); -typedef DartClang_getCursorResultType = CXType Function(CXCursor C); -typedef NativeClang_getCursorSemanticParent = - CXCursor Function(CXCursor cursor); -typedef DartClang_getCursorSemanticParent = CXCursor Function(CXCursor cursor); -typedef NativeClang_getCursorSpelling = CXString Function(CXCursor); -typedef DartClang_getCursorSpelling = CXString Function(CXCursor); -typedef NativeClang_getCursorTLSKind = - ffi.UnsignedInt Function(CXCursor cursor); -typedef DartClang_getCursorTLSKind = int Function(CXCursor cursor); -typedef NativeClang_getCursorType = CXType Function(CXCursor C); -typedef DartClang_getCursorType = CXType Function(CXCursor C); -typedef NativeClang_getCursorUSR = CXString Function(CXCursor); -typedef DartClang_getCursorUSR = CXString Function(CXCursor); -typedef NativeClang_getCursorVisibility = - ffi.UnsignedInt Function(CXCursor cursor); -typedef DartClang_getCursorVisibility = int Function(CXCursor cursor); -typedef NativeClang_getDeclObjCTypeEncoding = CXString Function(CXCursor C); -typedef DartClang_getDeclObjCTypeEncoding = CXString Function(CXCursor C); -typedef NativeClang_getDefinitionSpellingAndExtent = - ffi.Void Function( - CXCursor, - ffi.Pointer> startBuf, - ffi.Pointer> endBuf, - ffi.Pointer startLine, - ffi.Pointer startColumn, - ffi.Pointer endLine, - ffi.Pointer endColumn, - ); -typedef DartClang_getDefinitionSpellingAndExtent = - void Function( - CXCursor, - ffi.Pointer> startBuf, - ffi.Pointer> endBuf, - ffi.Pointer startLine, - ffi.Pointer startColumn, - ffi.Pointer endLine, - ffi.Pointer endColumn, - ); -typedef NativeClang_getDiagnostic = - CXDiagnostic Function(CXTranslationUnit Unit, ffi.UnsignedInt Index); -typedef DartClang_getDiagnostic = - CXDiagnostic Function(CXTranslationUnit Unit, int Index); -typedef NativeClang_getDiagnosticCategory = - ffi.UnsignedInt Function(CXDiagnostic); -typedef DartClang_getDiagnosticCategory = int Function(CXDiagnostic); -typedef NativeClang_getDiagnosticCategoryName = - CXString Function(ffi.UnsignedInt Category); -typedef DartClang_getDiagnosticCategoryName = CXString Function(int Category); -typedef NativeClang_getDiagnosticCategoryText = CXString Function(CXDiagnostic); -typedef DartClang_getDiagnosticCategoryText = CXString Function(CXDiagnostic); -typedef NativeClang_getDiagnosticFixIt = - CXString Function( - CXDiagnostic Diagnostic, - ffi.UnsignedInt FixIt, - ffi.Pointer ReplacementRange, - ); -typedef DartClang_getDiagnosticFixIt = - CXString Function( - CXDiagnostic Diagnostic, - int FixIt, - ffi.Pointer ReplacementRange, - ); -typedef NativeClang_getDiagnosticInSet = - CXDiagnostic Function(CXDiagnosticSet Diags, ffi.UnsignedInt Index); -typedef DartClang_getDiagnosticInSet = - CXDiagnostic Function(CXDiagnosticSet Diags, int Index); -typedef NativeClang_getDiagnosticLocation = - CXSourceLocation Function(CXDiagnostic); -typedef DartClang_getDiagnosticLocation = - CXSourceLocation Function(CXDiagnostic); -typedef NativeClang_getDiagnosticNumFixIts = - ffi.UnsignedInt Function(CXDiagnostic Diagnostic); -typedef DartClang_getDiagnosticNumFixIts = - int Function(CXDiagnostic Diagnostic); -typedef NativeClang_getDiagnosticNumRanges = - ffi.UnsignedInt Function(CXDiagnostic); -typedef DartClang_getDiagnosticNumRanges = int Function(CXDiagnostic); -typedef NativeClang_getDiagnosticOption = - CXString Function(CXDiagnostic Diag, ffi.Pointer Disable); -typedef DartClang_getDiagnosticOption = - CXString Function(CXDiagnostic Diag, ffi.Pointer Disable); -typedef NativeClang_getDiagnosticRange = - CXSourceRange Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Range); -typedef DartClang_getDiagnosticRange = - CXSourceRange Function(CXDiagnostic Diagnostic, int Range); -typedef NativeClang_getDiagnosticSetFromTU = - CXDiagnosticSet Function(CXTranslationUnit Unit); -typedef DartClang_getDiagnosticSetFromTU = - CXDiagnosticSet Function(CXTranslationUnit Unit); -typedef NativeClang_getDiagnosticSeverity = - ffi.UnsignedInt Function(CXDiagnostic); -typedef DartClang_getDiagnosticSeverity = int Function(CXDiagnostic); -typedef NativeClang_getDiagnosticSpelling = CXString Function(CXDiagnostic); -typedef DartClang_getDiagnosticSpelling = CXString Function(CXDiagnostic); -typedef NativeClang_getElementType = CXType Function(CXType T); -typedef DartClang_getElementType = CXType Function(CXType T); -typedef NativeClang_getEnumConstantDeclUnsignedValue = - ffi.UnsignedLongLong Function(CXCursor C); -typedef DartClang_getEnumConstantDeclUnsignedValue = int Function(CXCursor C); -typedef NativeClang_getEnumConstantDeclValue = - ffi.LongLong Function(CXCursor C); -typedef DartClang_getEnumConstantDeclValue = int Function(CXCursor C); -typedef NativeClang_getEnumDeclIntegerType = CXType Function(CXCursor C); -typedef DartClang_getEnumDeclIntegerType = CXType Function(CXCursor C); -typedef NativeClang_getExceptionSpecificationType = ffi.Int Function(CXType T); -typedef DartClang_getExceptionSpecificationType = int Function(CXType T); -typedef NativeClang_getExpansionLocation = - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ); -typedef DartClang_getExpansionLocation = - void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ); -typedef NativeClang_getFieldDeclBitWidth = ffi.Int Function(CXCursor C); -typedef DartClang_getFieldDeclBitWidth = int Function(CXCursor C); -typedef NativeClang_getFile = - CXFile Function(CXTranslationUnit tu, ffi.Pointer file_name); -typedef DartClang_getFile = - CXFile Function(CXTranslationUnit tu, ffi.Pointer file_name); -typedef NativeClang_getFileContents = - ffi.Pointer Function( - CXTranslationUnit tu, - CXFile file, - ffi.Pointer size, - ); -typedef DartClang_getFileContents = - ffi.Pointer Function( - CXTranslationUnit tu, - CXFile file, - ffi.Pointer size, - ); -typedef NativeClang_getFileLocation = - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ); -typedef DartClang_getFileLocation = - void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ); -typedef NativeClang_getFileName = CXString Function(CXFile SFile); -typedef DartClang_getFileName = CXString Function(CXFile SFile); -typedef NativeClang_getFileTime = ffi.Int64 Function(CXFile SFile); -typedef DartClang_getFileTime = int Function(CXFile SFile); -typedef NativeClang_getFileUniqueID = - ffi.Int Function(CXFile file, ffi.Pointer outID); -typedef DartClang_getFileUniqueID = - int Function(CXFile file, ffi.Pointer outID); -typedef NativeClang_getFunctionTypeCallingConv = - ffi.UnsignedInt Function(CXType T); -typedef DartClang_getFunctionTypeCallingConv = int Function(CXType T); -typedef NativeClang_getIBOutletCollectionType = CXType Function(CXCursor); -typedef DartClang_getIBOutletCollectionType = CXType Function(CXCursor); -typedef NativeClang_getIncludedFile = CXFile Function(CXCursor cursor); -typedef DartClang_getIncludedFile = CXFile Function(CXCursor cursor); -typedef NativeClang_getInclusions = - ffi.Void Function( - CXTranslationUnit tu, - CXInclusionVisitor visitor, - CXClientData client_data, - ); -typedef DartClang_getInclusions = - void Function( - CXTranslationUnit tu, - CXInclusionVisitor visitor, - CXClientData client_data, - ); -typedef NativeClang_getInstantiationLocation = - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ); -typedef DartClang_getInstantiationLocation = - void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ); -typedef NativeClang_getLocation = - CXSourceLocation Function( - CXTranslationUnit tu, - CXFile file, - ffi.UnsignedInt line, - ffi.UnsignedInt column, - ); -typedef DartClang_getLocation = - CXSourceLocation Function( - CXTranslationUnit tu, - CXFile file, - int line, - int column, - ); -typedef NativeClang_getLocationForOffset = - CXSourceLocation Function( - CXTranslationUnit tu, - CXFile file, - ffi.UnsignedInt offset, - ); -typedef DartClang_getLocationForOffset = - CXSourceLocation Function(CXTranslationUnit tu, CXFile file, int offset); -typedef NativeClang_getModuleForFile = - CXModule Function(CXTranslationUnit, CXFile); -typedef DartClang_getModuleForFile = - CXModule Function(CXTranslationUnit, CXFile); -typedef NativeClang_getNullCursor = CXCursor Function(); -typedef DartClang_getNullCursor = CXCursor Function(); -typedef NativeClang_getNullLocation = CXSourceLocation Function(); -typedef DartClang_getNullLocation = CXSourceLocation Function(); -typedef NativeClang_getNullRange = CXSourceRange Function(); -typedef DartClang_getNullRange = CXSourceRange Function(); -typedef NativeClang_getNumArgTypes = ffi.Int Function(CXType T); -typedef DartClang_getNumArgTypes = int Function(CXType T); -typedef NativeClang_getNumCompletionChunks = - ffi.UnsignedInt Function(CXCompletionString completion_string); -typedef DartClang_getNumCompletionChunks = - int Function(CXCompletionString completion_string); -typedef NativeClang_getNumDiagnostics = - ffi.UnsignedInt Function(CXTranslationUnit Unit); -typedef DartClang_getNumDiagnostics = int Function(CXTranslationUnit Unit); -typedef NativeClang_getNumDiagnosticsInSet = - ffi.UnsignedInt Function(CXDiagnosticSet Diags); -typedef DartClang_getNumDiagnosticsInSet = int Function(CXDiagnosticSet Diags); -typedef NativeClang_getNumElements = ffi.LongLong Function(CXType T); -typedef DartClang_getNumElements = int Function(CXType T); -typedef NativeClang_getNumOverloadedDecls = - ffi.UnsignedInt Function(CXCursor cursor); -typedef DartClang_getNumOverloadedDecls = int Function(CXCursor cursor); -typedef NativeClang_getOverloadedDecl = - CXCursor Function(CXCursor cursor, ffi.UnsignedInt index); -typedef DartClang_getOverloadedDecl = - CXCursor Function(CXCursor cursor, int index); -typedef NativeClang_getOverriddenCursors = - ffi.Void Function( - CXCursor cursor, - ffi.Pointer> overridden, - ffi.Pointer num_overridden, - ); -typedef DartClang_getOverriddenCursors = - void Function( - CXCursor cursor, - ffi.Pointer> overridden, - ffi.Pointer num_overridden, - ); -typedef NativeClang_getPointeeType = CXType Function(CXType T); -typedef DartClang_getPointeeType = CXType Function(CXType T); -typedef NativeClang_getPresumedLocation = - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer filename, - ffi.Pointer line, - ffi.Pointer column, - ); -typedef DartClang_getPresumedLocation = - void Function( - CXSourceLocation location, - ffi.Pointer filename, - ffi.Pointer line, - ffi.Pointer column, - ); -typedef NativeClang_getRange = - CXSourceRange Function(CXSourceLocation begin, CXSourceLocation end); -typedef DartClang_getRange = - CXSourceRange Function(CXSourceLocation begin, CXSourceLocation end); -typedef NativeClang_getRangeEnd = - CXSourceLocation Function(CXSourceRange range); -typedef DartClang_getRangeEnd = CXSourceLocation Function(CXSourceRange range); -typedef NativeClang_getRangeStart = - CXSourceLocation Function(CXSourceRange range); -typedef DartClang_getRangeStart = - CXSourceLocation Function(CXSourceRange range); -typedef NativeClang_getRemappings = - CXRemapping Function(ffi.Pointer path); -typedef DartClang_getRemappings = - CXRemapping Function(ffi.Pointer path); -typedef NativeClang_getRemappingsFromFileList = - CXRemapping Function( - ffi.Pointer> filePaths, - ffi.UnsignedInt numFiles, - ); -typedef DartClang_getRemappingsFromFileList = - CXRemapping Function( - ffi.Pointer> filePaths, - int numFiles, - ); -typedef NativeClang_getResultType = CXType Function(CXType T); -typedef DartClang_getResultType = CXType Function(CXType T); -typedef NativeClang_getSkippedRanges = - ffi.Pointer Function(CXTranslationUnit tu, CXFile file); -typedef DartClang_getSkippedRanges = - ffi.Pointer Function(CXTranslationUnit tu, CXFile file); -typedef NativeClang_getSpecializedCursorTemplate = - CXCursor Function(CXCursor C); -typedef DartClang_getSpecializedCursorTemplate = CXCursor Function(CXCursor C); -typedef NativeClang_getSpellingLocation = - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ); -typedef DartClang_getSpellingLocation = - void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ); -typedef NativeClang_getTUResourceUsageName = - ffi.Pointer Function(ffi.UnsignedInt kind); -typedef DartClang_getTUResourceUsageName = - ffi.Pointer Function(int kind); -typedef NativeClang_getTemplateCursorKind = - ffi.UnsignedInt Function(CXCursor C); -typedef DartClang_getTemplateCursorKind = int Function(CXCursor C); -typedef NativeClang_getToken = - ffi.Pointer Function( - CXTranslationUnit TU, - CXSourceLocation Location, - ); -typedef DartClang_getToken = - ffi.Pointer Function( - CXTranslationUnit TU, - CXSourceLocation Location, - ); -typedef NativeClang_getTokenExtent = - CXSourceRange Function(CXTranslationUnit, CXToken); -typedef DartClang_getTokenExtent = - CXSourceRange Function(CXTranslationUnit, CXToken); -typedef NativeClang_getTokenKind = ffi.UnsignedInt Function(CXToken); -typedef DartClang_getTokenKind = int Function(CXToken); -typedef NativeClang_getTokenLocation = - CXSourceLocation Function(CXTranslationUnit, CXToken); -typedef DartClang_getTokenLocation = - CXSourceLocation Function(CXTranslationUnit, CXToken); -typedef NativeClang_getTokenSpelling = - CXString Function(CXTranslationUnit, CXToken); -typedef DartClang_getTokenSpelling = - CXString Function(CXTranslationUnit, CXToken); -typedef NativeClang_getTranslationUnitCursor = - CXCursor Function(CXTranslationUnit); -typedef DartClang_getTranslationUnitCursor = - CXCursor Function(CXTranslationUnit); -typedef NativeClang_getTranslationUnitSpelling = - CXString Function(CXTranslationUnit CTUnit); -typedef DartClang_getTranslationUnitSpelling = - CXString Function(CXTranslationUnit CTUnit); -typedef NativeClang_getTranslationUnitTargetInfo = - CXTargetInfo Function(CXTranslationUnit CTUnit); -typedef DartClang_getTranslationUnitTargetInfo = - CXTargetInfo Function(CXTranslationUnit CTUnit); -typedef NativeClang_getTypeDeclaration = CXCursor Function(CXType T); -typedef DartClang_getTypeDeclaration = CXCursor Function(CXType T); -typedef NativeClang_getTypeKindSpelling = CXString Function(ffi.UnsignedInt K); -typedef DartClang_getTypeKindSpelling = CXString Function(int K); -typedef NativeClang_getTypeSpelling = CXString Function(CXType CT); -typedef DartClang_getTypeSpelling = CXString Function(CXType CT); -typedef NativeClang_getTypedefDeclUnderlyingType = CXType Function(CXCursor C); -typedef DartClang_getTypedefDeclUnderlyingType = CXType Function(CXCursor C); -typedef NativeClang_getTypedefName = CXString Function(CXType CT); -typedef DartClang_getTypedefName = CXString Function(CXType CT); -typedef NativeClang_hashCursor = ffi.UnsignedInt Function(CXCursor); -typedef DartClang_hashCursor = int Function(CXCursor); -typedef NativeClang_indexLoc_getCXSourceLocation = - CXSourceLocation Function(CXIdxLoc loc); -typedef DartClang_indexLoc_getCXSourceLocation = - CXSourceLocation Function(CXIdxLoc loc); -typedef NativeClang_indexLoc_getFileLocation = - ffi.Void Function( - CXIdxLoc loc, - ffi.Pointer indexFile, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ); -typedef DartClang_indexLoc_getFileLocation = - void Function( - CXIdxLoc loc, - ffi.Pointer indexFile, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ); -typedef NativeClang_indexSourceFile = - ffi.Int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - ffi.UnsignedInt index_callbacks_size, - ffi.UnsignedInt index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer out_TU, - ffi.UnsignedInt TU_options, - ); -typedef DartClang_indexSourceFile = - int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - int index_callbacks_size, - int index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - ffi.Pointer out_TU, - int TU_options, - ); -typedef NativeClang_indexSourceFileFullArgv = - ffi.Int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - ffi.UnsignedInt index_callbacks_size, - ffi.UnsignedInt index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer out_TU, - ffi.UnsignedInt TU_options, - ); -typedef DartClang_indexSourceFileFullArgv = - int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - int index_callbacks_size, - int index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - ffi.Pointer out_TU, - int TU_options, - ); -typedef NativeClang_indexTranslationUnit = - ffi.Int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - ffi.UnsignedInt index_callbacks_size, - ffi.UnsignedInt index_options, - CXTranslationUnit, - ); -typedef DartClang_indexTranslationUnit = - int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - int index_callbacks_size, - int index_options, - CXTranslationUnit, - ); -typedef NativeClang_index_getCXXClassDeclInfo = - ffi.Pointer Function(ffi.Pointer); -typedef DartClang_index_getCXXClassDeclInfo = - ffi.Pointer Function(ffi.Pointer); -typedef NativeClang_index_getClientContainer = - CXIdxClientContainer Function(ffi.Pointer); -typedef DartClang_index_getClientContainer = - CXIdxClientContainer Function(ffi.Pointer); -typedef NativeClang_index_getClientEntity = - CXIdxClientEntity Function(ffi.Pointer); -typedef DartClang_index_getClientEntity = - CXIdxClientEntity Function(ffi.Pointer); -typedef NativeClang_index_getIBOutletCollectionAttrInfo = - ffi.Pointer Function( - ffi.Pointer, - ); -typedef DartClang_index_getIBOutletCollectionAttrInfo = - ffi.Pointer Function( - ffi.Pointer, - ); -typedef NativeClang_index_getObjCCategoryDeclInfo = - ffi.Pointer Function(ffi.Pointer); -typedef DartClang_index_getObjCCategoryDeclInfo = - ffi.Pointer Function(ffi.Pointer); -typedef NativeClang_index_getObjCContainerDeclInfo = - ffi.Pointer Function( - ffi.Pointer, - ); -typedef DartClang_index_getObjCContainerDeclInfo = - ffi.Pointer Function( - ffi.Pointer, - ); -typedef NativeClang_index_getObjCInterfaceDeclInfo = - ffi.Pointer Function( - ffi.Pointer, - ); -typedef DartClang_index_getObjCInterfaceDeclInfo = - ffi.Pointer Function( - ffi.Pointer, - ); -typedef NativeClang_index_getObjCPropertyDeclInfo = - ffi.Pointer Function(ffi.Pointer); -typedef DartClang_index_getObjCPropertyDeclInfo = - ffi.Pointer Function(ffi.Pointer); -typedef NativeClang_index_getObjCProtocolRefListInfo = - ffi.Pointer Function( - ffi.Pointer, - ); -typedef DartClang_index_getObjCProtocolRefListInfo = - ffi.Pointer Function( - ffi.Pointer, - ); -typedef NativeClang_index_isEntityObjCContainerKind = - ffi.Int Function(ffi.UnsignedInt); -typedef DartClang_index_isEntityObjCContainerKind = int Function(int); -typedef NativeClang_index_setClientContainer = - ffi.Void Function(ffi.Pointer, CXIdxClientContainer); -typedef DartClang_index_setClientContainer = - void Function(ffi.Pointer, CXIdxClientContainer); -typedef NativeClang_index_setClientEntity = - ffi.Void Function(ffi.Pointer, CXIdxClientEntity); -typedef DartClang_index_setClientEntity = - void Function(ffi.Pointer, CXIdxClientEntity); -typedef NativeClang_isAttribute = ffi.UnsignedInt Function(ffi.UnsignedInt); -typedef DartClang_isAttribute = int Function(int); -typedef NativeClang_isConstQualifiedType = ffi.UnsignedInt Function(CXType T); -typedef DartClang_isConstQualifiedType = int Function(CXType T); -typedef NativeClang_isCursorDefinition = ffi.UnsignedInt Function(CXCursor); -typedef DartClang_isCursorDefinition = int Function(CXCursor); -typedef NativeClang_isDeclaration = ffi.UnsignedInt Function(ffi.UnsignedInt); -typedef DartClang_isDeclaration = int Function(int); -typedef NativeClang_isExpression = ffi.UnsignedInt Function(ffi.UnsignedInt); -typedef DartClang_isExpression = int Function(int); -typedef NativeClang_isFileMultipleIncludeGuarded = - ffi.UnsignedInt Function(CXTranslationUnit tu, CXFile file); -typedef DartClang_isFileMultipleIncludeGuarded = - int Function(CXTranslationUnit tu, CXFile file); -typedef NativeClang_isFunctionTypeVariadic = ffi.UnsignedInt Function(CXType T); -typedef DartClang_isFunctionTypeVariadic = int Function(CXType T); -typedef NativeClang_isInvalid = ffi.UnsignedInt Function(ffi.UnsignedInt); -typedef DartClang_isInvalid = int Function(int); -typedef NativeClang_isInvalidDeclaration = ffi.UnsignedInt Function(CXCursor); -typedef DartClang_isInvalidDeclaration = int Function(CXCursor); -typedef NativeClang_isPODType = ffi.UnsignedInt Function(CXType T); -typedef DartClang_isPODType = int Function(CXType T); -typedef NativeClang_isPreprocessing = ffi.UnsignedInt Function(ffi.UnsignedInt); -typedef DartClang_isPreprocessing = int Function(int); -typedef NativeClang_isReference = ffi.UnsignedInt Function(ffi.UnsignedInt); -typedef DartClang_isReference = int Function(int); -typedef NativeClang_isRestrictQualifiedType = - ffi.UnsignedInt Function(CXType T); -typedef DartClang_isRestrictQualifiedType = int Function(CXType T); -typedef NativeClang_isStatement = ffi.UnsignedInt Function(ffi.UnsignedInt); -typedef DartClang_isStatement = int Function(int); -typedef NativeClang_isTranslationUnit = - ffi.UnsignedInt Function(ffi.UnsignedInt); -typedef DartClang_isTranslationUnit = int Function(int); -typedef NativeClang_isUnexposed = ffi.UnsignedInt Function(ffi.UnsignedInt); -typedef DartClang_isUnexposed = int Function(int); -typedef NativeClang_isVirtualBase = ffi.UnsignedInt Function(CXCursor); -typedef DartClang_isVirtualBase = int Function(CXCursor); -typedef NativeClang_isVolatileQualifiedType = - ffi.UnsignedInt Function(CXType T); -typedef DartClang_isVolatileQualifiedType = int Function(CXType T); -typedef NativeClang_loadDiagnostics = - CXDiagnosticSet Function( - ffi.Pointer file, - ffi.Pointer error, - ffi.Pointer errorString, - ); -typedef DartClang_loadDiagnostics = - CXDiagnosticSet Function( - ffi.Pointer file, - ffi.Pointer error, - ffi.Pointer errorString, - ); -typedef NativeClang_parseTranslationUnit = - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ); -typedef DartClang_parseTranslationUnit = - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ); -typedef NativeClang_parseTranslationUnit2 = - ffi.UnsignedInt Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ffi.Pointer out_TU, - ); -typedef DartClang_parseTranslationUnit2 = - int Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ffi.Pointer out_TU, - ); -typedef NativeClang_parseTranslationUnit2FullArgv = - ffi.UnsignedInt Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ffi.Pointer out_TU, - ); -typedef DartClang_parseTranslationUnit2FullArgv = - int Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ffi.Pointer out_TU, - ); -typedef NativeClang_remap_dispose = ffi.Void Function(CXRemapping); -typedef DartClang_remap_dispose = void Function(CXRemapping); -typedef NativeClang_remap_getFilenames = - ffi.Void Function( - CXRemapping, - ffi.UnsignedInt index, - ffi.Pointer original, - ffi.Pointer transformed, - ); -typedef DartClang_remap_getFilenames = - void Function( - CXRemapping, - int index, - ffi.Pointer original, - ffi.Pointer transformed, - ); -typedef NativeClang_remap_getNumFiles = ffi.UnsignedInt Function(CXRemapping); -typedef DartClang_remap_getNumFiles = int Function(CXRemapping); -typedef NativeClang_reparseTranslationUnit = - ffi.Int Function( - CXTranslationUnit TU, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer unsaved_files, - ffi.UnsignedInt options, - ); -typedef DartClang_reparseTranslationUnit = - int Function( - CXTranslationUnit TU, - int num_unsaved_files, - ffi.Pointer unsaved_files, - int options, - ); -typedef NativeClang_saveTranslationUnit = - ffi.Int Function( - CXTranslationUnit TU, - ffi.Pointer FileName, - ffi.UnsignedInt options, - ); -typedef DartClang_saveTranslationUnit = - int Function( - CXTranslationUnit TU, - ffi.Pointer FileName, - int options, - ); -typedef NativeClang_sortCodeCompletionResults = - ffi.Void Function( - ffi.Pointer Results, - ffi.UnsignedInt NumResults, - ); -typedef DartClang_sortCodeCompletionResults = - void Function(ffi.Pointer Results, int NumResults); -typedef NativeClang_suspendTranslationUnit = - ffi.UnsignedInt Function(CXTranslationUnit); -typedef DartClang_suspendTranslationUnit = int Function(CXTranslationUnit); -typedef NativeClang_toggleCrashRecovery = - ffi.Void Function(ffi.UnsignedInt isEnabled); -typedef DartClang_toggleCrashRecovery = void Function(int isEnabled); -typedef NativeClang_tokenize = - ffi.Void Function( - CXTranslationUnit TU, - CXSourceRange Range, - ffi.Pointer> Tokens, - ffi.Pointer NumTokens, - ); -typedef DartClang_tokenize = - void Function( - CXTranslationUnit TU, - CXSourceRange Range, - ffi.Pointer> Tokens, - ffi.Pointer NumTokens, - ); -typedef NativeClang_visitChildren = - ffi.UnsignedInt Function( - CXCursor parent, - CXCursorVisitor visitor, - CXClientData client_data, - ); -typedef DartClang_visitChildren = - int Function( - CXCursor parent, - CXCursorVisitor visitor, - CXClientData client_data, - ); diff --git a/pkgs/ffigen/lib/src/visitor/find_symbols.dart b/pkgs/ffigen/lib/src/visitor/find_symbols.dart index d673ced1c0..d1f9acd2f7 100644 --- a/pkgs/ffigen/lib/src/visitor/find_symbols.dart +++ b/pkgs/ffigen/lib/src/visitor/find_symbols.dart @@ -64,15 +64,14 @@ class FindSymbolsVisitation extends Visitation { @override void visitTypealias(Typealias node) { - // If the typealias is not in the bindings and not generating bindings, that - // means we're not generating bindings for it, so we shouldn't add its name - // to the scope. But we still need to visit its target type. Otherwise, if - // the target type is only referred to via this alias, then we won't visit - // it at all. - if (!bindings.contains(node) && !node.generateBindings) { - node.visitChildren(visitor); + // If the typealias is not in the bindings, that means we're not generating + // bindings for it, so we shouldn't add its name to the scope. But we + // still need to visit its target type. Otherwise, if the target type is + // only referred to via this alias, then we won't visit it at all. + if (!bindings.contains(node)) { + visitor.visit(node.type); } else { - visitBinding(node); + visitInsideScope(node, context.rootScope); } } diff --git a/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart b/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart index c9843cc9e3..05fb57bb0c 100644 --- a/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart +++ b/pkgs/ffigen/lib/src/visitor/fix_overridden_methods.dart @@ -112,11 +112,6 @@ class FixOverriddenMethodsVisitation extends Visitation { for (final method in node.methods) { if (method.isClassMethod) continue; final (root, rootMethod) = _findRootWithMethod(node, method); - if (rootMethod.kind == ObjCMethodKind.propertySetter && - method.kind == ObjCMethodKind.method) { - method.kind = ObjCMethodKind.propertySetter; - continue; - } // If method and rootMethod are the same kind, then there's nothing to do. if ((method.kind == ObjCMethodKind.propertyGetter) == (rootMethod.kind == ObjCMethodKind.propertyGetter)) { @@ -152,22 +147,17 @@ class FixOverriddenMethodsVisitation extends Visitation { void _convertAllSubtreeMethodsToProperties( ObjCInterface node, - ObjCMethod rootMethod, [ - Set? visited, - ]) { - visited ??= {}; - if (!visited.add(node)) return; + ObjCMethod rootMethod, + ) { final method = node.getSimilarMethod(rootMethod); - if (method != null && - !method.isClassMethod && - method.kind == ObjCMethodKind.method) { + if (method != null && method.kind == ObjCMethodKind.method) { method.kind = ObjCMethodKind.propertyGetter; - context.logger.fine( + context.logger.info( 'Converted ${node.originalName}.${method.originalName} to a getter', ); } for (final t in node.subtypes) { - _convertAllSubtreeMethodsToProperties(t, rootMethod, visited); + _convertAllSubtreeMethodsToProperties(t, rootMethod); } } } diff --git a/pkgs/ffigen/lib/src/visitor/list_bindings.dart b/pkgs/ffigen/lib/src/visitor/list_bindings.dart index 0eef561d77..6f9bfa6888 100644 --- a/pkgs/ffigen/lib/src/visitor/list_bindings.dart +++ b/pkgs/ffigen/lib/src/visitor/list_bindings.dart @@ -121,12 +121,12 @@ class ListBindingsVisitation extends Visitation { @override void visitTypealias(Typealias node) { - final behavior = node.isInternal - ? _IncludeBehavior.transitive - : (config.typedefs.includeUnused - ? _IncludeBehavior.configOnly - : _IncludeBehavior.configAndTransitive); - _visitImpl(node, behavior); + _visitImpl( + node, + config.typedefs.includeUnused + ? _IncludeBehavior.configOnly + : _IncludeBehavior.configAndTransitive, + ); // Objective C has some core typedefs that are important to keep. if (config.objectiveC != null && @@ -140,22 +140,6 @@ class ListBindingsVisitation extends Visitation { node.visitChildren(visitor); } } - - @override - void visitMacroConstant(MacroConstant node) => - _visitImpl(node, _IncludeBehavior.configOnly); - - @override - void visitConstant(Constant node) => - _visitImpl(node, _IncludeBehavior.configOnly); - - @override - void visitUnnamedEnumConstant(UnnamedEnumConstant node) => - _visitImpl(node, _IncludeBehavior.configOnly); - - @override - void visitGlobal(Global node) => - _visitImpl(node, _IncludeBehavior.configOnly); } class MarkBindingsVisitation extends Visitation { @@ -167,10 +151,5 @@ class MarkBindingsVisitation extends Visitation { void visitBinding(Binding node) { node.visitChildren(visitor); node.generateBindings = bindings.contains(node); - if (node is Func && - node.generateBindings && - node.exposedFunctionTypealias != null) { - node.exposedFunctionTypealias!.generateBindings = true; - } } } From 20d6fe86120b2f4da0e082fcfab769f66bed7826 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 15:57:41 +1000 Subject: [PATCH 25/54] clean up --- pkgs/ffigen/lib/src/code_generator/func.dart | 10 ++-------- .../ffigen/lib/src/code_generator/typealias.dart | 16 +++------------- .../lib/src/config_provider/config_types.dart | 4 +--- .../lib/src/config_provider/yaml_config.dart | 4 +--- .../test/header_parser_tests/globals_test.dart | 6 +----- 5 files changed, 8 insertions(+), 32 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/func.dart b/pkgs/ffigen/lib/src/code_generator/func.dart index 58e3f96437..1dc3e155a9 100644 --- a/pkgs/ffigen/lib/src/code_generator/func.dart +++ b/pkgs/ffigen/lib/src/code_generator/func.dart @@ -130,16 +130,10 @@ class Func extends LookUpBinding with HasLocalScope { final context = w.context; final cType = - _exposedFunctionTypealias?.getCType( - context, - writeArgumentNames: false, - ) ?? + _exposedFunctionTypealias?.getCType(context) ?? functionType.getCType(context, writeArgumentNames: false); final dartType = - _exposedFunctionTypealias?.getFfiDartType( - context, - writeArgumentNames: false, - ) ?? + _exposedFunctionTypealias?.getFfiDartType(context) ?? functionType.getFfiDartType(context, writeArgumentNames: false); final needsWrapper = !functionType.sameDartAndFfiDartType && !isInternal; diff --git a/pkgs/ffigen/lib/src/code_generator/typealias.dart b/pkgs/ffigen/lib/src/code_generator/typealias.dart index 818f212282..fa9eae4353 100644 --- a/pkgs/ffigen/lib/src/code_generator/typealias.dart +++ b/pkgs/ffigen/lib/src/code_generator/typealias.dart @@ -140,22 +140,15 @@ class Typealias extends BindingType { bool get isIncompleteCompound => type.isIncompleteCompound; @override - String getCType(Context context, {bool writeArgumentNames = true}) { - if (generateBindings) { - return name; - } - if (type case final FunctionType f) { - return f.getCType(context, writeArgumentNames: writeArgumentNames); - } - return type.getCType(context); - } + String getCType(Context context) => + generateBindings ? name : type.getCType(context); @override String getNativeType(Context context, {String varName = ''}) => type.getNativeType(context, varName: varName); @override - String getFfiDartType(Context context, {bool writeArgumentNames = true}) { + String getFfiDartType(Context context) { if (generateBindings) { if (_ffiDartAliasName != null) { return _ffiDartAliasName!.name; @@ -163,9 +156,6 @@ class Typealias extends BindingType { return name; } } - if (type case final FunctionType f) { - return f.getFfiDartType(context, writeArgumentNames: writeArgumentNames); - } return type.getFfiDartType(context); } diff --git a/pkgs/ffigen/lib/src/config_provider/config_types.dart b/pkgs/ffigen/lib/src/config_provider/config_types.dart index 4e0e3f6a35..daa0f78e4a 100644 --- a/pkgs/ffigen/lib/src/config_provider/config_types.dart +++ b/pkgs/ffigen/lib/src/config_provider/config_types.dart @@ -147,9 +147,7 @@ final class YamlDeclarationFilters { _memberIncluder.shouldInclude(declaration.originalName, member); Declarations configAdapter() { - return Declarations( - includeSymbolAddress: shouldIncludeSymbolAddress, - ); + return Declarations(includeSymbolAddress: shouldIncludeSymbolAddress); } } diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index c2ac9dddf4..808bb060a8 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -1283,9 +1283,7 @@ final class YamlConfig { }; }, ), - unions: Unions( - dependencies: _unionDependencies, - ), + unions: Unions(dependencies: _unionDependencies), unnamedEnums: const UnnamedEnums(), globals: Globals( includeSymbolAddress: globals.shouldIncludeSymbolAddress, diff --git a/pkgs/ffigen/test/header_parser_tests/globals_test.dart b/pkgs/ffigen/test/header_parser_tests/globals_test.dart index 6316a65bed..2452c262b3 100644 --- a/pkgs/ffigen/test/header_parser_tests/globals_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/globals_test.dart @@ -138,11 +138,7 @@ Library expectedLibrary() { constant: true, ), globalStruct, - Global( - name: 'globalStruct', - type: globalStruct, - exposeSymbolAddress: true, - ), + Global(name: 'globalStruct', type: globalStruct, exposeSymbolAddress: true), globalStructAlias, Global( name: 'globalStruct_from_alias', From 0f0816c1d050a60052fe614437ed1bb446d7fc1b Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 16:01:18 +1000 Subject: [PATCH 26/54] regen --- .../libclang-example/generated_bindings.dart | 2795 ++++++++++------- 1 file changed, 1624 insertions(+), 1171 deletions(-) diff --git a/pkgs/ffigen/example/libclang-example/generated_bindings.dart b/pkgs/ffigen/example/libclang-example/generated_bindings.dart index e09dccef4a..89bdd2f433 100644 --- a/pkgs/ffigen/example/libclang-example/generated_bindings.dart +++ b/pkgs/ffigen/example/libclang-example/generated_bindings.dart @@ -33,10 +33,12 @@ class LibClang { late final _clang_CXCursorSet_containsPtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor) + > >('clang_CXCursorSet_contains'); late final _clang_CXCursorSet_contains = _clang_CXCursorSet_containsPtr - .asFunction(); + .asFunction(); /// Inserts a CXCursor into a CXCursorSet. /// @@ -47,10 +49,12 @@ class LibClang { late final _clang_CXCursorSet_insertPtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor) + > >('clang_CXCursorSet_insert'); late final _clang_CXCursorSet_insert = _clang_CXCursorSet_insertPtr - .asFunction(); + .asFunction(); /// Gets the general options associated with a CXIndex. /// @@ -83,12 +87,12 @@ class LibClang { } late final _clang_CXIndex_setGlobalOptionsPtr = - _lookup>( - 'clang_CXIndex_setGlobalOptions', - ); + _lookup< + ffi.NativeFunction + >('clang_CXIndex_setGlobalOptions'); late final _clang_CXIndex_setGlobalOptions = _clang_CXIndex_setGlobalOptionsPtr - .asFunction(); + .asFunction(); /// Sets the invocation emission path option in a CXIndex. /// @@ -104,11 +108,13 @@ class LibClang { late final _clang_CXIndex_setInvocationEmissionPathOptionPtr = _lookup< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.Void Function(CXIndex, ffi.Pointer Path) + > >('clang_CXIndex_setInvocationEmissionPathOption'); late final _clang_CXIndex_setInvocationEmissionPathOption = _clang_CXIndex_setInvocationEmissionPathOptionPtr - .asFunction)>(); + .asFunction Path)>(); /// Determine if a C++ constructor is a converting constructor. int clang_CXXConstructor_isConvertingConstructor(CXCursor C) { @@ -116,12 +122,12 @@ class LibClang { } late final _clang_CXXConstructor_isConvertingConstructorPtr = - _lookup>( + _lookup>( 'clang_CXXConstructor_isConvertingConstructor', ); late final _clang_CXXConstructor_isConvertingConstructor = _clang_CXXConstructor_isConvertingConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ constructor is a copy constructor. int clang_CXXConstructor_isCopyConstructor(CXCursor C) { @@ -129,12 +135,12 @@ class LibClang { } late final _clang_CXXConstructor_isCopyConstructorPtr = - _lookup>( + _lookup>( 'clang_CXXConstructor_isCopyConstructor', ); late final _clang_CXXConstructor_isCopyConstructor = _clang_CXXConstructor_isCopyConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ constructor is the default constructor. int clang_CXXConstructor_isDefaultConstructor(CXCursor C) { @@ -142,12 +148,12 @@ class LibClang { } late final _clang_CXXConstructor_isDefaultConstructorPtr = - _lookup>( + _lookup>( 'clang_CXXConstructor_isDefaultConstructor', ); late final _clang_CXXConstructor_isDefaultConstructor = _clang_CXXConstructor_isDefaultConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ constructor is a move constructor. int clang_CXXConstructor_isMoveConstructor(CXCursor C) { @@ -155,12 +161,12 @@ class LibClang { } late final _clang_CXXConstructor_isMoveConstructorPtr = - _lookup>( + _lookup>( 'clang_CXXConstructor_isMoveConstructor', ); late final _clang_CXXConstructor_isMoveConstructor = _clang_CXXConstructor_isMoveConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ field is declared 'mutable'. int clang_CXXField_isMutable(CXCursor C) { @@ -168,11 +174,11 @@ class LibClang { } late final _clang_CXXField_isMutablePtr = - _lookup>( + _lookup>( 'clang_CXXField_isMutable', ); late final _clang_CXXField_isMutable = _clang_CXXField_isMutablePtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// declared 'const'. @@ -181,11 +187,11 @@ class LibClang { } late final _clang_CXXMethod_isConstPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isConst', ); late final _clang_CXXMethod_isConst = _clang_CXXMethod_isConstPtr - .asFunction(); + .asFunction(); /// Determine if a C++ method is declared '= default'. int clang_CXXMethod_isDefaulted(CXCursor C) { @@ -193,11 +199,11 @@ class LibClang { } late final _clang_CXXMethod_isDefaultedPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isDefaulted', ); late final _clang_CXXMethod_isDefaulted = _clang_CXXMethod_isDefaultedPtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// pure virtual. @@ -206,11 +212,11 @@ class LibClang { } late final _clang_CXXMethod_isPureVirtualPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isPureVirtual', ); late final _clang_CXXMethod_isPureVirtual = _clang_CXXMethod_isPureVirtualPtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// declared 'static'. @@ -219,11 +225,11 @@ class LibClang { } late final _clang_CXXMethod_isStaticPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isStatic', ); late final _clang_CXXMethod_isStatic = _clang_CXXMethod_isStaticPtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// explicitly declared 'virtual' or if it overrides a virtual method from @@ -233,11 +239,11 @@ class LibClang { } late final _clang_CXXMethod_isVirtualPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isVirtual', ); late final _clang_CXXMethod_isVirtual = _clang_CXXMethod_isVirtualPtr - .asFunction(); + .asFunction(); /// Determine if a C++ record is abstract, i.e. whether a class or struct /// has a pure virtual member function. @@ -246,11 +252,11 @@ class LibClang { } late final _clang_CXXRecord_isAbstractPtr = - _lookup>( + _lookup>( 'clang_CXXRecord_isAbstract', ); late final _clang_CXXRecord_isAbstract = _clang_CXXRecord_isAbstractPtr - .asFunction(); + .asFunction(); /// If cursor is a statement declaration tries to evaluate the /// statement and if its variable, tries to evaluate its initializer, @@ -260,11 +266,11 @@ class LibClang { } late final _clang_Cursor_EvaluatePtr = - _lookup>( + _lookup>( 'clang_Cursor_Evaluate', ); late final _clang_Cursor_Evaluate = _clang_Cursor_EvaluatePtr - .asFunction(); + .asFunction(); /// Retrieve the argument cursor of a function or method. /// @@ -276,11 +282,11 @@ class LibClang { } late final _clang_Cursor_getArgumentPtr = - _lookup>( - 'clang_Cursor_getArgument', - ); + _lookup< + ffi.NativeFunction + >('clang_Cursor_getArgument'); late final _clang_Cursor_getArgument = _clang_Cursor_getArgumentPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a documentable entity (e.g., /// declaration), return the associated \paragraph; otherwise return the @@ -290,12 +296,12 @@ class LibClang { } late final _clang_Cursor_getBriefCommentTextPtr = - _lookup>( + _lookup>( 'clang_Cursor_getBriefCommentText', ); late final _clang_Cursor_getBriefCommentText = _clang_Cursor_getBriefCommentTextPtr - .asFunction(); + .asFunction(); /// Retrieve the CXStrings representing the mangled symbols of the C++ /// constructor or destructor at the cursor. @@ -318,11 +324,11 @@ class LibClang { } late final _clang_Cursor_getCommentRangePtr = - _lookup>( + _lookup>( 'clang_Cursor_getCommentRange', ); late final _clang_Cursor_getCommentRange = _clang_Cursor_getCommentRangePtr - .asFunction(); + .asFunction(); /// Retrieve the CXString representing the mangled name of the cursor. CXString clang_Cursor_getMangling(CXCursor arg0) { @@ -342,11 +348,11 @@ class LibClang { } late final _clang_Cursor_getModulePtr = - _lookup>( + _lookup>( 'clang_Cursor_getModule', ); late final _clang_Cursor_getModule = _clang_Cursor_getModulePtr - .asFunction(); + .asFunction(); /// Retrieve the number of non-variadic arguments associated with a given /// cursor. @@ -358,11 +364,11 @@ class LibClang { } late final _clang_Cursor_getNumArgumentsPtr = - _lookup>( + _lookup>( 'clang_Cursor_getNumArguments', ); late final _clang_Cursor_getNumArguments = _clang_Cursor_getNumArgumentsPtr - .asFunction(); + .asFunction(); /// Returns the number of template args of a function decl representing a /// template specialization. @@ -383,12 +389,12 @@ class LibClang { } late final _clang_Cursor_getNumTemplateArgumentsPtr = - _lookup>( + _lookup>( 'clang_Cursor_getNumTemplateArguments', ); late final _clang_Cursor_getNumTemplateArguments = _clang_Cursor_getNumTemplateArgumentsPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents an Objective-C method or parameter /// declaration, return the associated Objective-C qualifiers for the return @@ -399,12 +405,12 @@ class LibClang { } late final _clang_Cursor_getObjCDeclQualifiersPtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCDeclQualifiers', ); late final _clang_Cursor_getObjCDeclQualifiers = _clang_Cursor_getObjCDeclQualifiersPtr - .asFunction(); + .asFunction(); /// Retrieve the CXStrings representing the mangled symbols of the ObjC /// class interface or implementation at the cursor. @@ -430,11 +436,13 @@ class LibClang { late final _clang_Cursor_getObjCPropertyAttributesPtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor C, ffi.UnsignedInt reserved) + > >('clang_Cursor_getObjCPropertyAttributes'); late final _clang_Cursor_getObjCPropertyAttributes = _clang_Cursor_getObjCPropertyAttributesPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a property declaration, return the /// name of the method that implements the getter. @@ -443,12 +451,12 @@ class LibClang { } late final _clang_Cursor_getObjCPropertyGetterNamePtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCPropertyGetterName', ); late final _clang_Cursor_getObjCPropertyGetterName = _clang_Cursor_getObjCPropertyGetterNamePtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a property declaration, return the /// name of the method that implements the setter, if any. @@ -457,12 +465,12 @@ class LibClang { } late final _clang_Cursor_getObjCPropertySetterNamePtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCPropertySetterName', ); late final _clang_Cursor_getObjCPropertySetterName = _clang_Cursor_getObjCPropertySetterNamePtr - .asFunction(); + .asFunction(); /// If the cursor points to a selector identifier in an Objective-C /// method or message expression, this returns the selector index. @@ -501,11 +509,11 @@ class LibClang { } late final _clang_Cursor_getOffsetOfFieldPtr = - _lookup>( + _lookup>( 'clang_Cursor_getOffsetOfField', ); late final _clang_Cursor_getOffsetOfField = _clang_Cursor_getOffsetOfFieldPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a declaration, return the associated /// comment text, including comment markers. @@ -514,12 +522,12 @@ class LibClang { } late final _clang_Cursor_getRawCommentTextPtr = - _lookup>( + _lookup>( 'clang_Cursor_getRawCommentText', ); late final _clang_Cursor_getRawCommentText = _clang_Cursor_getRawCommentTextPtr - .asFunction(); + .asFunction(); /// Given a cursor pointing to an Objective-C message or property /// reference, or C++ method call, returns the CXType of the receiver. @@ -528,11 +536,11 @@ class LibClang { } late final _clang_Cursor_getReceiverTypePtr = - _lookup>( + _lookup>( 'clang_Cursor_getReceiverType', ); late final _clang_Cursor_getReceiverType = _clang_Cursor_getReceiverTypePtr - .asFunction(); + .asFunction(); /// Retrieve a range for a piece that forms the cursors spelling name. /// Most of the times there is only one range for the complete spelling but for @@ -554,12 +562,18 @@ class LibClang { late final _clang_Cursor_getSpellingNameRangePtr = _lookup< ffi.NativeFunction< - CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) + CXSourceRange Function( + CXCursor, + ffi.UnsignedInt pieceIndex, + ffi.UnsignedInt options, + ) > >('clang_Cursor_getSpellingNameRange'); late final _clang_Cursor_getSpellingNameRange = _clang_Cursor_getSpellingNameRangePtr - .asFunction(); + .asFunction< + CXSourceRange Function(CXCursor, int pieceIndex, int options) + >(); /// Returns the storage class for a function or variable declaration. /// @@ -601,11 +615,13 @@ class LibClang { late final _clang_Cursor_getTemplateArgumentKindPtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor C, ffi.UnsignedInt I) + > >('clang_Cursor_getTemplateArgumentKind'); late final _clang_Cursor_getTemplateArgumentKind = _clang_Cursor_getTemplateArgumentKindPtr - .asFunction(); + .asFunction(); /// Retrieve a CXType representing the type of a TemplateArgument of a /// function decl representing a template specialization. @@ -628,12 +644,12 @@ class LibClang { } late final _clang_Cursor_getTemplateArgumentTypePtr = - _lookup>( - 'clang_Cursor_getTemplateArgumentType', - ); + _lookup< + ffi.NativeFunction + >('clang_Cursor_getTemplateArgumentType'); late final _clang_Cursor_getTemplateArgumentType = _clang_Cursor_getTemplateArgumentTypePtr - .asFunction(); + .asFunction(); /// Retrieve the value of an Integral TemplateArgument (of a function /// decl representing a template specialization) as an unsigned long long. @@ -657,12 +673,12 @@ class LibClang { late final _clang_Cursor_getTemplateArgumentUnsignedValuePtr = _lookup< ffi.NativeFunction< - ffi.UnsignedLongLong Function(CXCursor, ffi.UnsignedInt) + ffi.UnsignedLongLong Function(CXCursor C, ffi.UnsignedInt I) > >('clang_Cursor_getTemplateArgumentUnsignedValue'); late final _clang_Cursor_getTemplateArgumentUnsignedValue = _clang_Cursor_getTemplateArgumentUnsignedValuePtr - .asFunction(); + .asFunction(); /// Retrieve the value of an Integral TemplateArgument (of a function /// decl representing a template specialization) as a signed long long. @@ -685,11 +701,11 @@ class LibClang { late final _clang_Cursor_getTemplateArgumentValuePtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction >('clang_Cursor_getTemplateArgumentValue'); late final _clang_Cursor_getTemplateArgumentValue = _clang_Cursor_getTemplateArgumentValuePtr - .asFunction(); + .asFunction(); /// Returns the translation unit that a cursor originated from. CXTranslationUnit clang_Cursor_getTranslationUnit(CXCursor arg0) { @@ -710,11 +726,11 @@ class LibClang { } late final _clang_Cursor_hasAttrsPtr = - _lookup>( + _lookup>( 'clang_Cursor_hasAttrs', ); late final _clang_Cursor_hasAttrs = _clang_Cursor_hasAttrsPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents an anonymous /// tag or namespace @@ -723,11 +739,11 @@ class LibClang { } late final _clang_Cursor_isAnonymousPtr = - _lookup>( + _lookup>( 'clang_Cursor_isAnonymous', ); late final _clang_Cursor_isAnonymous = _clang_Cursor_isAnonymousPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents an anonymous record /// declaration. @@ -736,12 +752,12 @@ class LibClang { } late final _clang_Cursor_isAnonymousRecordDeclPtr = - _lookup>( + _lookup>( 'clang_Cursor_isAnonymousRecordDecl', ); late final _clang_Cursor_isAnonymousRecordDecl = _clang_Cursor_isAnonymousRecordDeclPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the cursor specifies a Record member that is a /// bitfield. @@ -750,11 +766,11 @@ class LibClang { } late final _clang_Cursor_isBitFieldPtr = - _lookup>( + _lookup>( 'clang_Cursor_isBitField', ); late final _clang_Cursor_isBitField = _clang_Cursor_isBitFieldPtr - .asFunction(); + .asFunction(); /// Given a cursor pointing to a C++ method call or an Objective-C /// message, returns non-zero if the method/message is "dynamic", meaning: @@ -770,11 +786,11 @@ class LibClang { } late final _clang_Cursor_isDynamicCallPtr = - _lookup>( + _lookup>( 'clang_Cursor_isDynamicCall', ); late final _clang_Cursor_isDynamicCall = _clang_Cursor_isDynamicCallPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given cursor points to a symbol marked with /// external_source_symbol attribute. @@ -800,20 +816,20 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.UnsignedInt Function( - CXCursor, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXCursor C, + ffi.Pointer language, + ffi.Pointer definedIn, + ffi.Pointer isGenerated, ) > >('clang_Cursor_isExternalSymbol'); late final _clang_Cursor_isExternalSymbol = _clang_Cursor_isExternalSymbolPtr .asFunction< int Function( - CXCursor, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXCursor C, + ffi.Pointer language, + ffi.Pointer definedIn, + ffi.Pointer isGenerated, ) >(); @@ -824,11 +840,11 @@ class LibClang { } late final _clang_Cursor_isFunctionInlinedPtr = - _lookup>( + _lookup>( 'clang_Cursor_isFunctionInlined', ); late final _clang_Cursor_isFunctionInlined = - _clang_Cursor_isFunctionInlinedPtr.asFunction(); + _clang_Cursor_isFunctionInlinedPtr.asFunction(); /// Determine whether the given cursor represents an inline namespace /// declaration. @@ -837,11 +853,11 @@ class LibClang { } late final _clang_Cursor_isInlineNamespacePtr = - _lookup>( + _lookup>( 'clang_Cursor_isInlineNamespace', ); late final _clang_Cursor_isInlineNamespace = - _clang_Cursor_isInlineNamespacePtr.asFunction(); + _clang_Cursor_isInlineNamespacePtr.asFunction(); /// Determine whether a CXCursor that is a macro, is a /// builtin one. @@ -850,11 +866,11 @@ class LibClang { } late final _clang_Cursor_isMacroBuiltinPtr = - _lookup>( + _lookup>( 'clang_Cursor_isMacroBuiltin', ); late final _clang_Cursor_isMacroBuiltin = _clang_Cursor_isMacroBuiltinPtr - .asFunction(); + .asFunction(); /// Determine whether a CXCursor that is a macro, is /// function like. @@ -863,11 +879,12 @@ class LibClang { } late final _clang_Cursor_isMacroFunctionLikePtr = - _lookup>( + _lookup>( 'clang_Cursor_isMacroFunctionLike', ); late final _clang_Cursor_isMacroFunctionLike = - _clang_Cursor_isMacroFunctionLikePtr.asFunction(); + _clang_Cursor_isMacroFunctionLikePtr + .asFunction(); /// Returns non-zero if \p cursor is null. int clang_Cursor_isNull(CXCursor cursor) { @@ -875,11 +892,11 @@ class LibClang { } late final _clang_Cursor_isNullPtr = - _lookup>( + _lookup>( 'clang_Cursor_isNull', ); late final _clang_Cursor_isNull = _clang_Cursor_isNullPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents an Objective-C method or property /// declaration, return non-zero if the declaration was affected by "\@optional". @@ -889,11 +906,11 @@ class LibClang { } late final _clang_Cursor_isObjCOptionalPtr = - _lookup>( + _lookup>( 'clang_Cursor_isObjCOptional', ); late final _clang_Cursor_isObjCOptional = _clang_Cursor_isObjCOptionalPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given cursor is a variadic function or method. int clang_Cursor_isVariadic(CXCursor C) { @@ -901,11 +918,11 @@ class LibClang { } late final _clang_Cursor_isVariadicPtr = - _lookup>( + _lookup>( 'clang_Cursor_isVariadic', ); late final _clang_Cursor_isVariadic = _clang_Cursor_isVariadicPtr - .asFunction(); + .asFunction(); /// Determine if an enum declaration refers to a scoped enum. int clang_EnumDecl_isScoped(CXCursor C) { @@ -913,11 +930,11 @@ class LibClang { } late final _clang_EnumDecl_isScopedPtr = - _lookup>( + _lookup>( 'clang_EnumDecl_isScoped', ); late final _clang_EnumDecl_isScoped = _clang_EnumDecl_isScopedPtr - .asFunction(); + .asFunction(); /// Disposes the created Eval memory. void clang_EvalResult_dispose(CXEvalResult E) { @@ -925,11 +942,11 @@ class LibClang { } late final _clang_EvalResult_disposePtr = - _lookup>( + _lookup>( 'clang_EvalResult_dispose', ); late final _clang_EvalResult_dispose = _clang_EvalResult_disposePtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as double if the /// kind is double. @@ -938,11 +955,11 @@ class LibClang { } late final _clang_EvalResult_getAsDoublePtr = - _lookup>( + _lookup>( 'clang_EvalResult_getAsDouble', ); late final _clang_EvalResult_getAsDouble = _clang_EvalResult_getAsDoublePtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as integer if the /// kind is Int. @@ -951,11 +968,11 @@ class LibClang { } late final _clang_EvalResult_getAsIntPtr = - _lookup>( + _lookup>( 'clang_EvalResult_getAsInt', ); late final _clang_EvalResult_getAsInt = _clang_EvalResult_getAsIntPtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as a long long integer if the /// kind is Int. This prevents overflows that may happen if the result is @@ -965,12 +982,12 @@ class LibClang { } late final _clang_EvalResult_getAsLongLongPtr = - _lookup>( + _lookup>( 'clang_EvalResult_getAsLongLong', ); late final _clang_EvalResult_getAsLongLong = _clang_EvalResult_getAsLongLongPtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as a constant string if the /// kind is other than Int or float. User must not free this pointer, @@ -981,11 +998,11 @@ class LibClang { } late final _clang_EvalResult_getAsStrPtr = - _lookup Function(CXEvalResult)>>( - 'clang_EvalResult_getAsStr', - ); + _lookup< + ffi.NativeFunction Function(CXEvalResult E)> + >('clang_EvalResult_getAsStr'); late final _clang_EvalResult_getAsStr = _clang_EvalResult_getAsStrPtr - .asFunction Function(CXEvalResult)>(); + .asFunction Function(CXEvalResult E)>(); /// Returns the evaluation result as an unsigned integer if /// the kind is Int and clang_EvalResult_isUnsignedInt is non-zero. @@ -994,12 +1011,12 @@ class LibClang { } late final _clang_EvalResult_getAsUnsignedPtr = - _lookup>( - 'clang_EvalResult_getAsUnsigned', - ); + _lookup< + ffi.NativeFunction + >('clang_EvalResult_getAsUnsigned'); late final _clang_EvalResult_getAsUnsigned = _clang_EvalResult_getAsUnsignedPtr - .asFunction(); + .asFunction(); /// Returns the kind of the evaluated result. CXEvalResultKind clang_EvalResult_getKind(CXEvalResult E) { @@ -1007,11 +1024,11 @@ class LibClang { } late final _clang_EvalResult_getKindPtr = - _lookup>( + _lookup>( 'clang_EvalResult_getKind', ); late final _clang_EvalResult_getKind = _clang_EvalResult_getKindPtr - .asFunction(); + .asFunction(); /// Returns a non-zero value if the kind is Int and the evaluation /// result resulted in an unsigned integer. @@ -1020,12 +1037,12 @@ class LibClang { } late final _clang_EvalResult_isUnsignedIntPtr = - _lookup>( + _lookup>( 'clang_EvalResult_isUnsignedInt', ); late final _clang_EvalResult_isUnsignedInt = _clang_EvalResult_isUnsignedIntPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the \c file1 and \c file2 point to the same file, /// or they are both NULL. @@ -1034,11 +1051,11 @@ class LibClang { } late final _clang_File_isEqualPtr = - _lookup>( + _lookup>( 'clang_File_isEqual', ); late final _clang_File_isEqual = _clang_File_isEqualPtr - .asFunction(); + .asFunction(); /// Returns the real path name of \c file. /// @@ -1048,11 +1065,11 @@ class LibClang { } late final _clang_File_tryGetRealPathNamePtr = - _lookup>( + _lookup>( 'clang_File_tryGetRealPathName', ); late final _clang_File_tryGetRealPathName = _clang_File_tryGetRealPathNamePtr - .asFunction(); + .asFunction(); /// An indexing action/session, to be applied to one or multiple /// translation units. @@ -1063,11 +1080,11 @@ class LibClang { } late final _clang_IndexAction_createPtr = - _lookup>( + _lookup>( 'clang_IndexAction_create', ); late final _clang_IndexAction_create = _clang_IndexAction_createPtr - .asFunction(); + .asFunction(); /// Destroy the given index action. /// @@ -1091,11 +1108,11 @@ class LibClang { } late final _clang_Location_isFromMainFilePtr = - _lookup>( + _lookup>( 'clang_Location_isFromMainFile', ); late final _clang_Location_isFromMainFile = _clang_Location_isFromMainFilePtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given source location is in a system header. int clang_Location_isInSystemHeader(CXSourceLocation location) { @@ -1103,12 +1120,12 @@ class LibClang { } late final _clang_Location_isInSystemHeaderPtr = - _lookup>( + _lookup>( 'clang_Location_isInSystemHeader', ); late final _clang_Location_isInSystemHeader = _clang_Location_isInSystemHeaderPtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1118,11 +1135,11 @@ class LibClang { } late final _clang_Module_getASTFilePtr = - _lookup>( + _lookup>( 'clang_Module_getASTFile', ); late final _clang_Module_getASTFile = _clang_Module_getASTFilePtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1132,11 +1149,11 @@ class LibClang { } late final _clang_Module_getFullNamePtr = - _lookup>( + _lookup>( 'clang_Module_getFullName', ); late final _clang_Module_getFullName = _clang_Module_getFullNamePtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1147,11 +1164,11 @@ class LibClang { } late final _clang_Module_getNamePtr = - _lookup>( + _lookup>( 'clang_Module_getName', ); late final _clang_Module_getName = _clang_Module_getNamePtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1166,12 +1183,12 @@ class LibClang { late final _clang_Module_getNumTopLevelHeadersPtr = _lookup< ffi.NativeFunction< - ffi.UnsignedInt Function(CXTranslationUnit, CXModule) + ffi.UnsignedInt Function(CXTranslationUnit, CXModule Module) > >('clang_Module_getNumTopLevelHeaders'); late final _clang_Module_getNumTopLevelHeaders = _clang_Module_getNumTopLevelHeadersPtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1182,11 +1199,11 @@ class LibClang { } late final _clang_Module_getParentPtr = - _lookup>( + _lookup>( 'clang_Module_getParent', ); late final _clang_Module_getParent = _clang_Module_getParentPtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1204,12 +1221,18 @@ class LibClang { late final _clang_Module_getTopLevelHeaderPtr = _lookup< ffi.NativeFunction< - CXFile Function(CXTranslationUnit, CXModule, ffi.UnsignedInt) + CXFile Function( + CXTranslationUnit, + CXModule Module, + ffi.UnsignedInt Index, + ) > >('clang_Module_getTopLevelHeader'); late final _clang_Module_getTopLevelHeader = _clang_Module_getTopLevelHeaderPtr - .asFunction(); + .asFunction< + CXFile Function(CXTranslationUnit, CXModule Module, int Index) + >(); /// \param Module a module object. /// @@ -1219,11 +1242,11 @@ class LibClang { } late final _clang_Module_isSystemPtr = - _lookup>( + _lookup>( 'clang_Module_isSystem', ); late final _clang_Module_isSystem = _clang_Module_isSystemPtr - .asFunction(); + .asFunction(); /// Release a printing policy. void clang_PrintingPolicy_dispose(CXPrintingPolicy Policy) { @@ -1231,11 +1254,11 @@ class LibClang { } late final _clang_PrintingPolicy_disposePtr = - _lookup>( + _lookup>( 'clang_PrintingPolicy_dispose', ); late final _clang_PrintingPolicy_dispose = _clang_PrintingPolicy_disposePtr - .asFunction(); + .asFunction(); /// Get a property value for the given printing policy. int clang_PrintingPolicy_getProperty( @@ -1248,12 +1271,15 @@ class LibClang { late final _clang_PrintingPolicy_getPropertyPtr = _lookup< ffi.NativeFunction< - ffi.UnsignedInt Function(CXPrintingPolicy, ffi.UnsignedInt) + ffi.UnsignedInt Function( + CXPrintingPolicy Policy, + ffi.UnsignedInt Property, + ) > >('clang_PrintingPolicy_getProperty'); late final _clang_PrintingPolicy_getProperty = _clang_PrintingPolicy_getPropertyPtr - .asFunction(); + .asFunction(); /// Set a property value for the given printing policy. void clang_PrintingPolicy_setProperty( @@ -1267,12 +1293,18 @@ class LibClang { late final _clang_PrintingPolicy_setPropertyPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(CXPrintingPolicy, ffi.UnsignedInt, ffi.UnsignedInt) + ffi.Void Function( + CXPrintingPolicy Policy, + ffi.UnsignedInt Property, + ffi.UnsignedInt Value, + ) > >('clang_PrintingPolicy_setProperty'); late final _clang_PrintingPolicy_setProperty = _clang_PrintingPolicy_setPropertyPtr - .asFunction(); + .asFunction< + void Function(CXPrintingPolicy Policy, int Property, int Value) + >(); /// Returns non-zero if \p range is null. int clang_Range_isNull(CXSourceRange range) { @@ -1280,11 +1312,11 @@ class LibClang { } late final _clang_Range_isNullPtr = - _lookup>( + _lookup>( 'clang_Range_isNull', ); late final _clang_Range_isNull = _clang_Range_isNullPtr - .asFunction(); + .asFunction(); /// Destroy the CXTargetInfo object. void clang_TargetInfo_dispose(CXTargetInfo Info) { @@ -1292,11 +1324,11 @@ class LibClang { } late final _clang_TargetInfo_disposePtr = - _lookup>( + _lookup>( 'clang_TargetInfo_dispose', ); late final _clang_TargetInfo_dispose = _clang_TargetInfo_disposePtr - .asFunction(); + .asFunction(); /// Get the pointer width of the target in bits. /// @@ -1306,12 +1338,12 @@ class LibClang { } late final _clang_TargetInfo_getPointerWidthPtr = - _lookup>( + _lookup>( 'clang_TargetInfo_getPointerWidth', ); late final _clang_TargetInfo_getPointerWidth = _clang_TargetInfo_getPointerWidthPtr - .asFunction(); + .asFunction(); /// Get the normalized target triple as a string. /// @@ -1321,11 +1353,11 @@ class LibClang { } late final _clang_TargetInfo_getTriplePtr = - _lookup>( + _lookup>( 'clang_TargetInfo_getTriple', ); late final _clang_TargetInfo_getTriple = _clang_TargetInfo_getTriplePtr - .asFunction(); + .asFunction(); /// Return the alignment of a type in bytes as per C++[expr.alignof] /// standard. @@ -1342,11 +1374,11 @@ class LibClang { } late final _clang_Type_getAlignOfPtr = - _lookup>( + _lookup>( 'clang_Type_getAlignOf', ); late final _clang_Type_getAlignOf = _clang_Type_getAlignOfPtr - .asFunction(); + .asFunction(); /// Retrieve the ref-qualifier kind of a function or method. /// @@ -1357,11 +1389,11 @@ class LibClang { } late final _clang_Type_getCXXRefQualifierPtr = - _lookup>( + _lookup>( 'clang_Type_getCXXRefQualifier', ); late final _clang_Type_getCXXRefQualifier = _clang_Type_getCXXRefQualifierPtr - .asFunction(); + .asFunction(); /// Return the class type of an member pointer type. /// @@ -1371,11 +1403,11 @@ class LibClang { } late final _clang_Type_getClassTypePtr = - _lookup>( + _lookup>( 'clang_Type_getClassType', ); late final _clang_Type_getClassType = _clang_Type_getClassTypePtr - .asFunction(); + .asFunction(); /// Return the type that was modified by this attributed type. /// @@ -1385,11 +1417,11 @@ class LibClang { } late final _clang_Type_getModifiedTypePtr = - _lookup>( + _lookup>( 'clang_Type_getModifiedType', ); late final _clang_Type_getModifiedType = _clang_Type_getModifiedTypePtr - .asFunction(); + .asFunction(); /// Retrieve the type named by the qualified-id. /// @@ -1399,11 +1431,11 @@ class LibClang { } late final _clang_Type_getNamedTypePtr = - _lookup>( + _lookup>( 'clang_Type_getNamedType', ); late final _clang_Type_getNamedType = _clang_Type_getNamedTypePtr - .asFunction(); + .asFunction(); /// Retrieve the nullability kind of a pointer type. CXTypeNullabilityKind clang_Type_getNullability(CXType T) { @@ -1411,11 +1443,11 @@ class LibClang { } late final _clang_Type_getNullabilityPtr = - _lookup>( + _lookup>( 'clang_Type_getNullability', ); late final _clang_Type_getNullability = _clang_Type_getNullabilityPtr - .asFunction(); + .asFunction(); /// Retrieve the number of protocol references associated with an ObjC object/id. /// @@ -1425,11 +1457,12 @@ class LibClang { } late final _clang_Type_getNumObjCProtocolRefsPtr = - _lookup>( + _lookup>( 'clang_Type_getNumObjCProtocolRefs', ); late final _clang_Type_getNumObjCProtocolRefs = - _clang_Type_getNumObjCProtocolRefsPtr.asFunction(); + _clang_Type_getNumObjCProtocolRefsPtr + .asFunction(); /// Retreive the number of type arguments associated with an ObjC object. /// @@ -1439,11 +1472,11 @@ class LibClang { } late final _clang_Type_getNumObjCTypeArgsPtr = - _lookup>( + _lookup>( 'clang_Type_getNumObjCTypeArgs', ); late final _clang_Type_getNumObjCTypeArgs = _clang_Type_getNumObjCTypeArgsPtr - .asFunction(); + .asFunction(); /// Returns the number of template arguments for given template /// specialization, or -1 if type \c T is not a template specialization. @@ -1452,11 +1485,12 @@ class LibClang { } late final _clang_Type_getNumTemplateArgumentsPtr = - _lookup>( + _lookup>( 'clang_Type_getNumTemplateArguments', ); late final _clang_Type_getNumTemplateArguments = - _clang_Type_getNumTemplateArgumentsPtr.asFunction(); + _clang_Type_getNumTemplateArgumentsPtr + .asFunction(); /// Returns the Objective-C type encoding for the specified CXType. CXString clang_Type_getObjCEncoding(CXType type) { @@ -1464,11 +1498,11 @@ class LibClang { } late final _clang_Type_getObjCEncodingPtr = - _lookup>( + _lookup>( 'clang_Type_getObjCEncoding', ); late final _clang_Type_getObjCEncoding = _clang_Type_getObjCEncodingPtr - .asFunction(); + .asFunction(); /// Retrieves the base type of the ObjCObjectType. /// @@ -1478,12 +1512,12 @@ class LibClang { } late final _clang_Type_getObjCObjectBaseTypePtr = - _lookup>( + _lookup>( 'clang_Type_getObjCObjectBaseType', ); late final _clang_Type_getObjCObjectBaseType = _clang_Type_getObjCObjectBaseTypePtr - .asFunction(); + .asFunction(); /// Retrieve the decl for a protocol reference for an ObjC object/id. /// @@ -1494,12 +1528,12 @@ class LibClang { } late final _clang_Type_getObjCProtocolDeclPtr = - _lookup>( - 'clang_Type_getObjCProtocolDecl', - ); + _lookup< + ffi.NativeFunction + >('clang_Type_getObjCProtocolDecl'); late final _clang_Type_getObjCProtocolDecl = _clang_Type_getObjCProtocolDeclPtr - .asFunction(); + .asFunction(); /// Retrieve a type argument associated with an ObjC object. /// @@ -1510,11 +1544,11 @@ class LibClang { } late final _clang_Type_getObjCTypeArgPtr = - _lookup>( + _lookup>( 'clang_Type_getObjCTypeArg', ); late final _clang_Type_getObjCTypeArg = _clang_Type_getObjCTypeArgPtr - .asFunction(); + .asFunction(); /// Return the offset of a field named S in a record of type T in bits /// as it would be returned by __offsetof__ as per C++11[18.2p4] @@ -1533,10 +1567,12 @@ class LibClang { late final _clang_Type_getOffsetOfPtr = _lookup< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.LongLong Function(CXType T, ffi.Pointer S) + > >('clang_Type_getOffsetOf'); late final _clang_Type_getOffsetOf = _clang_Type_getOffsetOfPtr - .asFunction)>(); + .asFunction S)>(); /// Return the size of a type in bytes as per C++[expr.sizeof] standard. /// @@ -1550,11 +1586,11 @@ class LibClang { } late final _clang_Type_getSizeOfPtr = - _lookup>( + _lookup>( 'clang_Type_getSizeOf', ); late final _clang_Type_getSizeOf = _clang_Type_getSizeOfPtr - .asFunction(); + .asFunction(); /// Returns the type template argument of a template class specialization /// at given index. @@ -1566,12 +1602,12 @@ class LibClang { } late final _clang_Type_getTemplateArgumentAsTypePtr = - _lookup>( + _lookup>( 'clang_Type_getTemplateArgumentAsType', ); late final _clang_Type_getTemplateArgumentAsType = _clang_Type_getTemplateArgumentAsTypePtr - .asFunction(); + .asFunction(); /// Determine if a typedef is 'transparent' tag. /// @@ -1584,11 +1620,12 @@ class LibClang { } late final _clang_Type_isTransparentTagTypedefPtr = - _lookup>( + _lookup>( 'clang_Type_isTransparentTagTypedef', ); late final _clang_Type_isTransparentTagTypedef = - _clang_Type_isTransparentTagTypedefPtr.asFunction(); + _clang_Type_isTransparentTagTypedefPtr + .asFunction(); /// Visit the fields of a particular type. /// @@ -1618,11 +1655,17 @@ class LibClang { late final _clang_Type_visitFieldsPtr = _lookup< ffi.NativeFunction< - ffi.UnsignedInt Function(CXType, CXFieldVisitor, CXClientData) + ffi.UnsignedInt Function( + CXType T, + CXFieldVisitor visitor, + CXClientData client_data, + ) > >('clang_Type_visitFields'); late final _clang_Type_visitFields = _clang_Type_visitFieldsPtr - .asFunction(); + .asFunction< + int Function(CXType T, CXFieldVisitor visitor, CXClientData client_data) + >(); /// Annotate the given set of tokens by providing cursors for each token /// that can be mapped to a specific entity within the abstract syntax tree. @@ -1665,20 +1708,20 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Void Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, + CXTranslationUnit TU, + ffi.Pointer Tokens, + ffi.UnsignedInt NumTokens, + ffi.Pointer Cursors, ) > >('clang_annotateTokens'); late final _clang_annotateTokens = _clang_annotateTokensPtr .asFunction< void Function( - CXTranslationUnit, - ffi.Pointer, - int, - ffi.Pointer, + CXTranslationUnit TU, + ffi.Pointer Tokens, + int NumTokens, + ffi.Pointer Cursors, ) >(); @@ -1772,26 +1815,26 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Pointer Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, + CXTranslationUnit TU, + ffi.Pointer complete_filename, + ffi.UnsignedInt complete_line, + ffi.UnsignedInt complete_column, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, ) > >('clang_codeCompleteAt'); late final _clang_codeCompleteAt = _clang_codeCompleteAtPtr .asFunction< ffi.Pointer Function( - CXTranslationUnit, - ffi.Pointer, - int, - int, - ffi.Pointer, - int, - int, + CXTranslationUnit TU, + ffi.Pointer complete_filename, + int complete_line, + int complete_column, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, ) >(); @@ -1822,8 +1865,8 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Results, + ffi.Pointer IsIncomplete, ) > >('clang_codeCompleteGetContainerKind'); @@ -1831,8 +1874,8 @@ class LibClang { _clang_codeCompleteGetContainerKindPtr .asFunction< int Function( - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Results, + ffi.Pointer IsIncomplete, ) >(); @@ -1852,12 +1895,14 @@ class LibClang { late final _clang_codeCompleteGetContainerUSRPtr = _lookup< ffi.NativeFunction< - CXString Function(ffi.Pointer) + CXString Function(ffi.Pointer Results) > >('clang_codeCompleteGetContainerUSR'); late final _clang_codeCompleteGetContainerUSR = _clang_codeCompleteGetContainerUSRPtr - .asFunction)>(); + .asFunction< + CXString Function(ffi.Pointer Results) + >(); /// Determines what completions are appropriate for the context /// the given code completion. @@ -1875,11 +1920,13 @@ class LibClang { late final _clang_codeCompleteGetContextsPtr = _lookup< ffi.NativeFunction< - ffi.UnsignedLongLong Function(ffi.Pointer) + ffi.UnsignedLongLong Function( + ffi.Pointer Results, + ) > >('clang_codeCompleteGetContexts'); late final _clang_codeCompleteGetContexts = _clang_codeCompleteGetContextsPtr - .asFunction)>(); + .asFunction Results)>(); /// Retrieve a diagnostic associated with the given code completion. /// @@ -1899,15 +1946,18 @@ class LibClang { _lookup< ffi.NativeFunction< CXDiagnostic Function( - ffi.Pointer, - ffi.UnsignedInt, + ffi.Pointer Results, + ffi.UnsignedInt Index, ) > >('clang_codeCompleteGetDiagnostic'); late final _clang_codeCompleteGetDiagnostic = _clang_codeCompleteGetDiagnosticPtr .asFunction< - CXDiagnostic Function(ffi.Pointer, int) + CXDiagnostic Function( + ffi.Pointer Results, + int Index, + ) >(); /// Determine the number of diagnostics produced prior to the @@ -1921,12 +1971,14 @@ class LibClang { late final _clang_codeCompleteGetNumDiagnosticsPtr = _lookup< ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer) + ffi.UnsignedInt Function(ffi.Pointer Results) > >('clang_codeCompleteGetNumDiagnostics'); late final _clang_codeCompleteGetNumDiagnostics = _clang_codeCompleteGetNumDiagnosticsPtr - .asFunction)>(); + .asFunction< + int Function(ffi.Pointer Results) + >(); /// Returns the currently-entered selector for an Objective-C message /// send, formatted like "initWithFoo:bar:". Only guaranteed to return a @@ -1946,12 +1998,14 @@ class LibClang { late final _clang_codeCompleteGetObjCSelectorPtr = _lookup< ffi.NativeFunction< - CXString Function(ffi.Pointer) + CXString Function(ffi.Pointer Results) > >('clang_codeCompleteGetObjCSelector'); late final _clang_codeCompleteGetObjCSelector = _clang_codeCompleteGetObjCSelectorPtr - .asFunction)>(); + .asFunction< + CXString Function(ffi.Pointer Results) + >(); /// Construct a USR for a specified Objective-C category. CXString clang_constructUSR_ObjCCategory( @@ -1964,13 +2018,19 @@ class LibClang { late final _clang_constructUSR_ObjCCategoryPtr = _lookup< ffi.NativeFunction< - CXString Function(ffi.Pointer, ffi.Pointer) + CXString Function( + ffi.Pointer class_name, + ffi.Pointer category_name, + ) > >('clang_constructUSR_ObjCCategory'); late final _clang_constructUSR_ObjCCategory = _clang_constructUSR_ObjCCategoryPtr .asFunction< - CXString Function(ffi.Pointer, ffi.Pointer) + CXString Function( + ffi.Pointer class_name, + ffi.Pointer category_name, + ) >(); /// Construct a USR for a specified Objective-C class. @@ -1979,11 +2039,11 @@ class LibClang { } late final _clang_constructUSR_ObjCClassPtr = - _lookup)>>( - 'clang_constructUSR_ObjCClass', - ); + _lookup< + ffi.NativeFunction class_name)> + >('clang_constructUSR_ObjCClass'); late final _clang_constructUSR_ObjCClass = _clang_constructUSR_ObjCClassPtr - .asFunction)>(); + .asFunction class_name)>(); /// Construct a USR for a specified Objective-C instance variable and /// the USR for its containing class. @@ -1996,10 +2056,14 @@ class LibClang { late final _clang_constructUSR_ObjCIvarPtr = _lookup< - ffi.NativeFunction, CXString)> + ffi.NativeFunction< + CXString Function(ffi.Pointer name, CXString classUSR) + > >('clang_constructUSR_ObjCIvar'); late final _clang_constructUSR_ObjCIvar = _clang_constructUSR_ObjCIvarPtr - .asFunction, CXString)>(); + .asFunction< + CXString Function(ffi.Pointer name, CXString classUSR) + >(); /// Construct a USR for a specified Objective-C method and /// the USR for its containing class. @@ -2014,11 +2078,21 @@ class LibClang { late final _clang_constructUSR_ObjCMethodPtr = _lookup< ffi.NativeFunction< - CXString Function(ffi.Pointer, ffi.UnsignedInt, CXString) + CXString Function( + ffi.Pointer name, + ffi.UnsignedInt isInstanceMethod, + CXString classUSR, + ) > >('clang_constructUSR_ObjCMethod'); late final _clang_constructUSR_ObjCMethod = _clang_constructUSR_ObjCMethodPtr - .asFunction, int, CXString)>(); + .asFunction< + CXString Function( + ffi.Pointer name, + int isInstanceMethod, + CXString classUSR, + ) + >(); /// Construct a USR for a specified Objective-C property and the USR /// for its containing class. @@ -2031,11 +2105,15 @@ class LibClang { late final _clang_constructUSR_ObjCPropertyPtr = _lookup< - ffi.NativeFunction, CXString)> + ffi.NativeFunction< + CXString Function(ffi.Pointer property, CXString classUSR) + > >('clang_constructUSR_ObjCProperty'); late final _clang_constructUSR_ObjCProperty = _clang_constructUSR_ObjCPropertyPtr - .asFunction, CXString)>(); + .asFunction< + CXString Function(ffi.Pointer property, CXString classUSR) + >(); /// Construct a USR for a specified Objective-C protocol. CXString clang_constructUSR_ObjCProtocol( @@ -2045,12 +2123,14 @@ class LibClang { } late final _clang_constructUSR_ObjCProtocolPtr = - _lookup)>>( - 'clang_constructUSR_ObjCProtocol', - ); + _lookup< + ffi.NativeFunction< + CXString Function(ffi.Pointer protocol_name) + > + >('clang_constructUSR_ObjCProtocol'); late final _clang_constructUSR_ObjCProtocol = _clang_constructUSR_ObjCProtocolPtr - .asFunction)>(); + .asFunction protocol_name)>(); /// Creates an empty CXCursorSet. CXCursorSet clang_createCXCursorSet() { @@ -2110,11 +2190,18 @@ class LibClang { } late final _clang_createIndexPtr = - _lookup>( - 'clang_createIndex', - ); + _lookup< + ffi.NativeFunction< + CXIndex Function( + ffi.Int excludeDeclarationsFromPCH, + ffi.Int displayDiagnostics, + ) + > + >('clang_createIndex'); late final _clang_createIndex = _clang_createIndexPtr - .asFunction(); + .asFunction< + CXIndex Function(int excludeDeclarationsFromPCH, int displayDiagnostics) + >(); /// Same as \c clang_createTranslationUnit2, but returns /// the \c CXTranslationUnit instead of an error code. In case of an error this @@ -2130,11 +2217,19 @@ class LibClang { late final _clang_createTranslationUnitPtr = _lookup< ffi.NativeFunction< - CXTranslationUnit Function(CXIndex, ffi.Pointer) + CXTranslationUnit Function( + CXIndex CIdx, + ffi.Pointer ast_filename, + ) > >('clang_createTranslationUnit'); late final _clang_createTranslationUnit = _clang_createTranslationUnitPtr - .asFunction)>(); + .asFunction< + CXTranslationUnit Function( + CXIndex CIdx, + ffi.Pointer ast_filename, + ) + >(); /// Create a translation unit from an AST file (\c -emit-ast). /// @@ -2156,18 +2251,18 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.UnsignedInt Function( - CXIndex, - ffi.Pointer, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer ast_filename, + ffi.Pointer out_TU, ) > >('clang_createTranslationUnit2'); late final _clang_createTranslationUnit2 = _clang_createTranslationUnit2Ptr .asFunction< int Function( - CXIndex, - ffi.Pointer, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer ast_filename, + ffi.Pointer out_TU, ) >(); @@ -2231,12 +2326,12 @@ class LibClang { _lookup< ffi.NativeFunction< CXTranslationUnit Function( - CXIndex, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.UnsignedInt, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Int num_clang_command_line_args, + ffi.Pointer> clang_command_line_args, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer unsaved_files, ) > >('clang_createTranslationUnitFromSourceFile'); @@ -2244,12 +2339,12 @@ class LibClang { _clang_createTranslationUnitFromSourceFilePtr .asFunction< CXTranslationUnit Function( - CXIndex, - ffi.Pointer, - int, - ffi.Pointer>, - int, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer source_filename, + int num_clang_command_line_args, + ffi.Pointer> clang_command_line_args, + int num_unsaved_files, + ffi.Pointer unsaved_files, ) >(); @@ -2317,11 +2412,11 @@ class LibClang { } late final _clang_defaultReparseOptionsPtr = - _lookup>( - 'clang_defaultReparseOptions', - ); + _lookup< + ffi.NativeFunction + >('clang_defaultReparseOptions'); late final _clang_defaultReparseOptions = _clang_defaultReparseOptionsPtr - .asFunction(); + .asFunction(); /// Returns the set of flags that is suitable for saving a translation /// unit. @@ -2335,11 +2430,11 @@ class LibClang { } late final _clang_defaultSaveOptionsPtr = - _lookup>( - 'clang_defaultSaveOptions', - ); + _lookup< + ffi.NativeFunction + >('clang_defaultSaveOptions'); late final _clang_defaultSaveOptions = _clang_defaultSaveOptionsPtr - .asFunction(); + .asFunction(); /// Disposes a CXCursorSet and releases its associated memory. void clang_disposeCXCursorSet(CXCursorSet cset) { @@ -2347,11 +2442,11 @@ class LibClang { } late final _clang_disposeCXCursorSetPtr = - _lookup>( + _lookup>( 'clang_disposeCXCursorSet', ); late final _clang_disposeCXCursorSet = _clang_disposeCXCursorSetPtr - .asFunction(); + .asFunction(); /// Free the memory associated with a \c CXPlatformAvailability structure. void clang_disposeCXPlatformAvailability( @@ -2363,24 +2458,26 @@ class LibClang { late final _clang_disposeCXPlatformAvailabilityPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) + ffi.Void Function(ffi.Pointer availability) > >('clang_disposeCXPlatformAvailability'); late final _clang_disposeCXPlatformAvailability = _clang_disposeCXPlatformAvailabilityPtr - .asFunction)>(); + .asFunction< + void Function(ffi.Pointer availability) + >(); void clang_disposeCXTUResourceUsage(CXTUResourceUsage usage) { return _clang_disposeCXTUResourceUsage(usage); } late final _clang_disposeCXTUResourceUsagePtr = - _lookup>( + _lookup>( 'clang_disposeCXTUResourceUsage', ); late final _clang_disposeCXTUResourceUsage = _clang_disposeCXTUResourceUsagePtr - .asFunction(); + .asFunction(); /// Free the given set of code-completion results. void clang_disposeCodeCompleteResults( @@ -2392,12 +2489,14 @@ class LibClang { late final _clang_disposeCodeCompleteResultsPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer) + ffi.Void Function(ffi.Pointer Results) > >('clang_disposeCodeCompleteResults'); late final _clang_disposeCodeCompleteResults = _clang_disposeCodeCompleteResultsPtr - .asFunction)>(); + .asFunction< + void Function(ffi.Pointer Results) + >(); /// Destroy a diagnostic. void clang_disposeDiagnostic(CXDiagnostic Diagnostic) { @@ -2405,11 +2504,11 @@ class LibClang { } late final _clang_disposeDiagnosticPtr = - _lookup>( + _lookup>( 'clang_disposeDiagnostic', ); late final _clang_disposeDiagnostic = _clang_disposeDiagnosticPtr - .asFunction(); + .asFunction(); /// Release a CXDiagnosticSet and all of its contained diagnostics. void clang_disposeDiagnosticSet(CXDiagnosticSet Diags) { @@ -2417,11 +2516,11 @@ class LibClang { } late final _clang_disposeDiagnosticSetPtr = - _lookup>( + _lookup>( 'clang_disposeDiagnosticSet', ); late final _clang_disposeDiagnosticSet = _clang_disposeDiagnosticSetPtr - .asFunction(); + .asFunction(); /// Destroy the given index. /// @@ -2432,11 +2531,11 @@ class LibClang { } late final _clang_disposeIndexPtr = - _lookup>( + _lookup>( 'clang_disposeIndex', ); late final _clang_disposeIndex = _clang_disposeIndexPtr - .asFunction(); + .asFunction(); /// Free the set of overridden cursors returned by \c /// clang_getOverriddenCursors(). @@ -2445,12 +2544,12 @@ class LibClang { } late final _clang_disposeOverriddenCursorsPtr = - _lookup)>>( - 'clang_disposeOverriddenCursors', - ); + _lookup< + ffi.NativeFunction overridden)> + >('clang_disposeOverriddenCursors'); late final _clang_disposeOverriddenCursors = _clang_disposeOverriddenCursorsPtr - .asFunction)>(); + .asFunction overridden)>(); /// Destroy the given \c CXSourceRangeList. void clang_disposeSourceRangeList(ffi.Pointer ranges) { @@ -2459,10 +2558,12 @@ class LibClang { late final _clang_disposeSourceRangeListPtr = _lookup< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer ranges) + > >('clang_disposeSourceRangeList'); late final _clang_disposeSourceRangeList = _clang_disposeSourceRangeListPtr - .asFunction)>(); + .asFunction ranges)>(); /// Free the given string. void clang_disposeString(CXString string) { @@ -2470,11 +2571,11 @@ class LibClang { } late final _clang_disposeStringPtr = - _lookup>( + _lookup>( 'clang_disposeString', ); late final _clang_disposeString = _clang_disposeStringPtr - .asFunction(); + .asFunction(); /// Free the given string set. void clang_disposeStringSet(ffi.Pointer set) { @@ -2482,11 +2583,11 @@ class LibClang { } late final _clang_disposeStringSetPtr = - _lookup)>>( - 'clang_disposeStringSet', - ); + _lookup< + ffi.NativeFunction set)> + >('clang_disposeStringSet'); late final _clang_disposeStringSet = _clang_disposeStringSetPtr - .asFunction)>(); + .asFunction set)>(); /// Free the given set of tokens. void clang_disposeTokens( @@ -2501,15 +2602,19 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Void Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, + CXTranslationUnit TU, + ffi.Pointer Tokens, + ffi.UnsignedInt NumTokens, ) > >('clang_disposeTokens'); late final _clang_disposeTokens = _clang_disposeTokensPtr .asFunction< - void Function(CXTranslationUnit, ffi.Pointer, int) + void Function( + CXTranslationUnit TU, + ffi.Pointer Tokens, + int NumTokens, + ) >(); /// Destroy the specified CXTranslationUnit object. @@ -2560,11 +2665,11 @@ class LibClang { late final _clang_equalLocationsPtr = _lookup< ffi.NativeFunction< - ffi.UnsignedInt Function(CXSourceLocation, CXSourceLocation) + ffi.UnsignedInt Function(CXSourceLocation loc1, CXSourceLocation loc2) > >('clang_equalLocations'); late final _clang_equalLocations = _clang_equalLocationsPtr - .asFunction(); + .asFunction(); /// Determine whether two ranges are equivalent. /// @@ -2576,11 +2681,11 @@ class LibClang { late final _clang_equalRangesPtr = _lookup< ffi.NativeFunction< - ffi.UnsignedInt Function(CXSourceRange, CXSourceRange) + ffi.UnsignedInt Function(CXSourceRange range1, CXSourceRange range2) > >('clang_equalRanges'); late final _clang_equalRanges = _clang_equalRangesPtr - .asFunction(); + .asFunction(); /// Determine whether two CXTypes represent the same type. /// @@ -2591,11 +2696,11 @@ class LibClang { } late final _clang_equalTypesPtr = - _lookup>( + _lookup>( 'clang_equalTypes', ); late final _clang_equalTypes = _clang_equalTypesPtr - .asFunction(); + .asFunction(); void clang_executeOnThread( ffi.Pointer)>> @@ -2612,9 +2717,10 @@ class LibClang { ffi.Void Function( ffi.Pointer< ffi.NativeFunction)> - >, - ffi.Pointer, - ffi.UnsignedInt, + > + fn, + ffi.Pointer user_data, + ffi.UnsignedInt stack_size, ) > >('clang_executeOnThread'); @@ -2623,9 +2729,10 @@ class LibClang { void Function( ffi.Pointer< ffi.NativeFunction)> - >, - ffi.Pointer, - int, + > + fn, + ffi.Pointer user_data, + int stack_size, ) >(); @@ -2651,15 +2758,19 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.UnsignedInt Function( - CXTranslationUnit, - CXFile, - CXCursorAndRangeVisitor, + CXTranslationUnit TU, + CXFile file, + CXCursorAndRangeVisitor visitor, ) > >('clang_findIncludesInFile'); late final _clang_findIncludesInFile = _clang_findIncludesInFilePtr .asFunction< - int Function(CXTranslationUnit, CXFile, CXCursorAndRangeVisitor) + int Function( + CXTranslationUnit TU, + CXFile file, + CXCursorAndRangeVisitor visitor, + ) >(); /// Find references of a declaration in a specific file. @@ -2687,11 +2798,21 @@ class LibClang { late final _clang_findReferencesInFilePtr = _lookup< ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor, CXFile, CXCursorAndRangeVisitor) + ffi.UnsignedInt Function( + CXCursor cursor, + CXFile file, + CXCursorAndRangeVisitor visitor, + ) > >('clang_findReferencesInFile'); late final _clang_findReferencesInFile = _clang_findReferencesInFilePtr - .asFunction(); + .asFunction< + int Function( + CXCursor cursor, + CXFile file, + CXCursorAndRangeVisitor visitor, + ) + >(); /// Format the given diagnostic in a manner that is suitable for display. /// @@ -2712,10 +2833,12 @@ class LibClang { late final _clang_formatDiagnosticPtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + CXString Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Options) + > >('clang_formatDiagnostic'); late final _clang_formatDiagnostic = _clang_formatDiagnosticPtr - .asFunction(); + .asFunction(); /// Returns the address space of the given type. int clang_getAddressSpace(CXType T) { @@ -2723,11 +2846,11 @@ class LibClang { } late final _clang_getAddressSpacePtr = - _lookup>( + _lookup>( 'clang_getAddressSpace', ); late final _clang_getAddressSpace = _clang_getAddressSpacePtr - .asFunction(); + .asFunction(); /// Retrieve all ranges from all files that were skipped by the /// preprocessor. @@ -2743,11 +2866,13 @@ class LibClang { late final _clang_getAllSkippedRangesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit) + ffi.Pointer Function(CXTranslationUnit tu) > >('clang_getAllSkippedRanges'); late final _clang_getAllSkippedRanges = _clang_getAllSkippedRangesPtr - .asFunction Function(CXTranslationUnit)>(); + .asFunction< + ffi.Pointer Function(CXTranslationUnit tu) + >(); /// Retrieve the type of a parameter of a function type. /// @@ -2758,11 +2883,11 @@ class LibClang { } late final _clang_getArgTypePtr = - _lookup>( + _lookup>( 'clang_getArgType', ); late final _clang_getArgType = _clang_getArgTypePtr - .asFunction(); + .asFunction(); /// Return the element type of an array type. /// @@ -2772,11 +2897,11 @@ class LibClang { } late final _clang_getArrayElementTypePtr = - _lookup>( + _lookup>( 'clang_getArrayElementType', ); late final _clang_getArrayElementType = _clang_getArrayElementTypePtr - .asFunction(); + .asFunction(); /// Return the array size of a constant array. /// @@ -2786,11 +2911,11 @@ class LibClang { } late final _clang_getArraySizePtr = - _lookup>( + _lookup>( 'clang_getArraySize', ); late final _clang_getArraySize = _clang_getArraySizePtr - .asFunction(); + .asFunction(); /// Retrieve the character data associated with the given string. ffi.Pointer clang_getCString(CXString string) { @@ -2798,11 +2923,11 @@ class LibClang { } late final _clang_getCStringPtr = - _lookup Function(CXString)>>( - 'clang_getCString', - ); + _lookup< + ffi.NativeFunction Function(CXString string)> + >('clang_getCString'); late final _clang_getCString = _clang_getCStringPtr - .asFunction Function(CXString)>(); + .asFunction Function(CXString string)>(); /// Return the memory usage of a translation unit. This object /// should be released with clang_disposeCXTUResourceUsage(). @@ -2812,10 +2937,10 @@ class LibClang { late final _clang_getCXTUResourceUsagePtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction >('clang_getCXTUResourceUsage'); late final _clang_getCXTUResourceUsage = _clang_getCXTUResourceUsagePtr - .asFunction(); + .asFunction(); /// Returns the access control level for the referenced object. /// @@ -2877,11 +3002,11 @@ class LibClang { } late final _clang_getCanonicalTypePtr = - _lookup>( + _lookup>( 'clang_getCanonicalType', ); late final _clang_getCanonicalType = _clang_getCanonicalTypePtr - .asFunction(); + .asFunction(); /// Retrieve the child diagnostics of a CXDiagnostic. /// @@ -2892,11 +3017,11 @@ class LibClang { } late final _clang_getChildDiagnosticsPtr = - _lookup>( + _lookup>( 'clang_getChildDiagnostics', ); late final _clang_getChildDiagnostics = _clang_getChildDiagnosticsPtr - .asFunction(); + .asFunction(); /// Return a version string, suitable for showing to a user, but not /// intended to be parsed (the format is not guaranteed to be stable). @@ -2928,11 +3053,19 @@ class LibClang { late final _clang_getCompletionAnnotationPtr = _lookup< ffi.NativeFunction< - CXString Function(CXCompletionString, ffi.UnsignedInt) + CXString Function( + CXCompletionString completion_string, + ffi.UnsignedInt annotation_number, + ) > >('clang_getCompletionAnnotation'); late final _clang_getCompletionAnnotation = _clang_getCompletionAnnotationPtr - .asFunction(); + .asFunction< + CXString Function( + CXCompletionString completion_string, + int annotation_number, + ) + >(); /// Determine the availability of the entity that this code-completion /// string refers to. @@ -2949,12 +3082,14 @@ class LibClang { } late final _clang_getCompletionAvailabilityPtr = - _lookup>( - 'clang_getCompletionAvailability', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString completion_string) + > + >('clang_getCompletionAvailability'); late final _clang_getCompletionAvailability = _clang_getCompletionAvailabilityPtr - .asFunction(); + .asFunction(); /// Retrieve the brief documentation comment attached to the declaration /// that corresponds to the given completion string. @@ -2965,12 +3100,16 @@ class LibClang { } late final _clang_getCompletionBriefCommentPtr = - _lookup>( - 'clang_getCompletionBriefComment', - ); + _lookup< + ffi.NativeFunction< + CXString Function(CXCompletionString completion_string) + > + >('clang_getCompletionBriefComment'); late final _clang_getCompletionBriefComment = _clang_getCompletionBriefCommentPtr - .asFunction(); + .asFunction< + CXString Function(CXCompletionString completion_string) + >(); /// Retrieve the completion string associated with a particular chunk /// within a completion string. @@ -2994,12 +3133,20 @@ class LibClang { late final _clang_getCompletionChunkCompletionStringPtr = _lookup< ffi.NativeFunction< - CXCompletionString Function(CXCompletionString, ffi.UnsignedInt) + CXCompletionString Function( + CXCompletionString completion_string, + ffi.UnsignedInt chunk_number, + ) > >('clang_getCompletionChunkCompletionString'); late final _clang_getCompletionChunkCompletionString = _clang_getCompletionChunkCompletionStringPtr - .asFunction(); + .asFunction< + CXCompletionString Function( + CXCompletionString completion_string, + int chunk_number, + ) + >(); /// Determine the kind of a particular chunk within a completion string. /// @@ -3020,11 +3167,16 @@ class LibClang { late final _clang_getCompletionChunkKindPtr = _lookup< ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString, ffi.UnsignedInt) + ffi.UnsignedInt Function( + CXCompletionString completion_string, + ffi.UnsignedInt chunk_number, + ) > >('clang_getCompletionChunkKind'); late final _clang_getCompletionChunkKind = _clang_getCompletionChunkKindPtr - .asFunction(); + .asFunction< + int Function(CXCompletionString completion_string, int chunk_number) + >(); /// Retrieve the text associated with a particular chunk within a /// completion string. @@ -3044,11 +3196,19 @@ class LibClang { late final _clang_getCompletionChunkTextPtr = _lookup< ffi.NativeFunction< - CXString Function(CXCompletionString, ffi.UnsignedInt) + CXString Function( + CXCompletionString completion_string, + ffi.UnsignedInt chunk_number, + ) > >('clang_getCompletionChunkText'); late final _clang_getCompletionChunkText = _clang_getCompletionChunkTextPtr - .asFunction(); + .asFunction< + CXString Function( + CXCompletionString completion_string, + int chunk_number, + ) + >(); /// Fix-its that *must* be applied before inserting the text for the /// corresponding completion. @@ -3109,20 +3269,20 @@ class LibClang { _lookup< ffi.NativeFunction< CXString Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, + ffi.Pointer results, + ffi.UnsignedInt completion_index, + ffi.UnsignedInt fixit_index, + ffi.Pointer replacement_range, ) > >('clang_getCompletionFixIt'); late final _clang_getCompletionFixIt = _clang_getCompletionFixItPtr .asFunction< CXString Function( - ffi.Pointer, - int, - int, - ffi.Pointer, + ffi.Pointer results, + int completion_index, + int fixit_index, + ffi.Pointer replacement_range, ) >(); @@ -3138,12 +3298,14 @@ class LibClang { } late final _clang_getCompletionNumAnnotationsPtr = - _lookup>( - 'clang_getCompletionNumAnnotations', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString completion_string) + > + >('clang_getCompletionNumAnnotations'); late final _clang_getCompletionNumAnnotations = _clang_getCompletionNumAnnotationsPtr - .asFunction(); + .asFunction(); /// Retrieve the number of fix-its for the given completion index. /// @@ -3167,13 +3329,18 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.UnsignedInt Function( - ffi.Pointer, - ffi.UnsignedInt, + ffi.Pointer results, + ffi.UnsignedInt completion_index, ) > >('clang_getCompletionNumFixIts'); late final _clang_getCompletionNumFixIts = _clang_getCompletionNumFixItsPtr - .asFunction, int)>(); + .asFunction< + int Function( + ffi.Pointer results, + int completion_index, + ) + >(); /// Retrieve the parent context of the given completion string. /// @@ -3199,12 +3366,18 @@ class LibClang { late final _clang_getCompletionParentPtr = _lookup< ffi.NativeFunction< - CXString Function(CXCompletionString, ffi.Pointer) + CXString Function( + CXCompletionString completion_string, + ffi.Pointer kind, + ) > >('clang_getCompletionParent'); late final _clang_getCompletionParent = _clang_getCompletionParentPtr .asFunction< - CXString Function(CXCompletionString, ffi.Pointer) + CXString Function( + CXCompletionString completion_string, + ffi.Pointer kind, + ) >(); /// Determine the priority of this code completion. @@ -3222,11 +3395,13 @@ class LibClang { } late final _clang_getCompletionPriorityPtr = - _lookup>( - 'clang_getCompletionPriority', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString completion_string) + > + >('clang_getCompletionPriority'); late final _clang_getCompletionPriority = _clang_getCompletionPriorityPtr - .asFunction(); + .asFunction(); /// Map a source location to the cursor that describes the entity at that /// location in the source code. @@ -3265,11 +3440,11 @@ class LibClang { } late final _clang_getCursorAvailabilityPtr = - _lookup>( + _lookup>( 'clang_getCursorAvailability', ); late final _clang_getCursorAvailability = _clang_getCursorAvailabilityPtr - .asFunction(); + .asFunction(); /// Retrieve a completion string for an arbitrary declaration or macro /// definition cursor. @@ -3283,12 +3458,12 @@ class LibClang { } late final _clang_getCursorCompletionStringPtr = - _lookup>( + _lookup>( 'clang_getCursorCompletionString', ); late final _clang_getCursorCompletionString = _clang_getCursorCompletionStringPtr - .asFunction(); + .asFunction(); /// For a cursor that is either a reference to or a declaration /// of some entity, retrieve a cursor that describes the definition of @@ -3352,12 +3527,12 @@ class LibClang { } late final _clang_getCursorExceptionSpecificationTypePtr = - _lookup>( + _lookup>( 'clang_getCursorExceptionSpecificationType', ); late final _clang_getCursorExceptionSpecificationType = _clang_getCursorExceptionSpecificationTypePtr - .asFunction(); + .asFunction(); /// Retrieve the physical extent of the source construct referenced by /// the given cursor. @@ -3402,11 +3577,11 @@ class LibClang { } late final _clang_getCursorKindSpellingPtr = - _lookup>( + _lookup>( 'clang_getCursorKindSpelling', ); late final _clang_getCursorKindSpelling = _clang_getCursorKindSpellingPtr - .asFunction(); + .asFunction(); /// Determine the "language" of the entity referred to by a given cursor. CXLanguageKind clang_getCursorLanguage(CXCursor cursor) { @@ -3414,11 +3589,11 @@ class LibClang { } late final _clang_getCursorLanguagePtr = - _lookup>( + _lookup>( 'clang_getCursorLanguage', ); late final _clang_getCursorLanguage = _clang_getCursorLanguagePtr - .asFunction(); + .asFunction(); /// Determine the lexical parent of the given cursor. /// @@ -3457,11 +3632,11 @@ class LibClang { } late final _clang_getCursorLexicalParentPtr = - _lookup>( + _lookup>( 'clang_getCursorLexicalParent', ); late final _clang_getCursorLexicalParent = _clang_getCursorLexicalParentPtr - .asFunction(); + .asFunction(); /// Determine the linkage of the entity referred to by a given cursor. CXLinkageKind clang_getCursorLinkage(CXCursor cursor) { @@ -3469,11 +3644,11 @@ class LibClang { } late final _clang_getCursorLinkagePtr = - _lookup>( + _lookup>( 'clang_getCursorLinkage', ); late final _clang_getCursorLinkage = _clang_getCursorLinkagePtr - .asFunction(); + .asFunction(); /// Retrieve the physical location of the source constructor referenced /// by the given cursor. @@ -3552,13 +3727,13 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Int Function( - CXCursor, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, + CXCursor cursor, + ffi.Pointer always_deprecated, + ffi.Pointer deprecated_message, + ffi.Pointer always_unavailable, + ffi.Pointer unavailable_message, + ffi.Pointer availability, + ffi.Int availability_size, ) > >('clang_getCursorPlatformAvailability'); @@ -3566,13 +3741,13 @@ class LibClang { _clang_getCursorPlatformAvailabilityPtr .asFunction< int Function( - CXCursor, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, + CXCursor cursor, + ffi.Pointer always_deprecated, + ffi.Pointer deprecated_message, + ffi.Pointer always_unavailable, + ffi.Pointer unavailable_message, + ffi.Pointer availability, + int availability_size, ) >(); @@ -3594,10 +3769,14 @@ class LibClang { late final _clang_getCursorPrettyPrintedPtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + CXString Function(CXCursor Cursor, CXPrintingPolicy Policy) + > >('clang_getCursorPrettyPrinted'); late final _clang_getCursorPrettyPrinted = _clang_getCursorPrettyPrintedPtr - .asFunction(); + .asFunction< + CXString Function(CXCursor Cursor, CXPrintingPolicy Policy) + >(); /// Retrieve the default policy for the cursor. /// @@ -3641,12 +3820,18 @@ class LibClang { late final _clang_getCursorReferenceNameRangePtr = _lookup< ffi.NativeFunction< - CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) + CXSourceRange Function( + CXCursor C, + ffi.UnsignedInt NameFlags, + ffi.UnsignedInt PieceIndex, + ) > >('clang_getCursorReferenceNameRange'); late final _clang_getCursorReferenceNameRange = _clang_getCursorReferenceNameRangePtr - .asFunction(); + .asFunction< + CXSourceRange Function(CXCursor C, int NameFlags, int PieceIndex) + >(); /// For a cursor that is a reference, retrieve a cursor representing the /// entity that it references. @@ -3676,11 +3861,11 @@ class LibClang { } late final _clang_getCursorResultTypePtr = - _lookup>( + _lookup>( 'clang_getCursorResultType', ); late final _clang_getCursorResultType = _clang_getCursorResultTypePtr - .asFunction(); + .asFunction(); /// Determine the semantic parent of the given cursor. /// @@ -3718,11 +3903,11 @@ class LibClang { } late final _clang_getCursorSemanticParentPtr = - _lookup>( + _lookup>( 'clang_getCursorSemanticParent', ); late final _clang_getCursorSemanticParent = _clang_getCursorSemanticParentPtr - .asFunction(); + .asFunction(); /// Retrieve a name for the entity referenced by this cursor. CXString clang_getCursorSpelling(CXCursor arg0) { @@ -3743,11 +3928,11 @@ class LibClang { } late final _clang_getCursorTLSKindPtr = - _lookup>( + _lookup>( 'clang_getCursorTLSKind', ); late final _clang_getCursorTLSKind = _clang_getCursorTLSKindPtr - .asFunction(); + .asFunction(); /// Retrieve the type of a CXCursor (if any). CXType clang_getCursorType(CXCursor C) { @@ -3755,11 +3940,11 @@ class LibClang { } late final _clang_getCursorTypePtr = - _lookup>( + _lookup>( 'clang_getCursorType', ); late final _clang_getCursorType = _clang_getCursorTypePtr - .asFunction(); + .asFunction(); /// Retrieve a Unified Symbol Resolution (USR) for the entity referenced /// by the given cursor. @@ -3793,11 +3978,11 @@ class LibClang { } late final _clang_getCursorVisibilityPtr = - _lookup>( + _lookup>( 'clang_getCursorVisibility', ); late final _clang_getCursorVisibility = _clang_getCursorVisibilityPtr - .asFunction(); + .asFunction(); /// Returns the Objective-C type encoding for the specified declaration. CXString clang_getDeclObjCTypeEncoding(CXCursor C) { @@ -3805,11 +3990,11 @@ class LibClang { } late final _clang_getDeclObjCTypeEncodingPtr = - _lookup>( + _lookup>( 'clang_getDeclObjCTypeEncoding', ); late final _clang_getDeclObjCTypeEncoding = _clang_getDeclObjCTypeEncodingPtr - .asFunction(); + .asFunction(); void clang_getDefinitionSpellingAndExtent( CXCursor arg0, @@ -3836,12 +4021,12 @@ class LibClang { ffi.NativeFunction< ffi.Void Function( CXCursor, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer> startBuf, + ffi.Pointer> endBuf, + ffi.Pointer startLine, + ffi.Pointer startColumn, + ffi.Pointer endLine, + ffi.Pointer endColumn, ) > >('clang_getDefinitionSpellingAndExtent'); @@ -3850,12 +4035,12 @@ class LibClang { .asFunction< void Function( CXCursor, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer> startBuf, + ffi.Pointer> endBuf, + ffi.Pointer startLine, + ffi.Pointer startColumn, + ffi.Pointer endLine, + ffi.Pointer endColumn, ) >(); @@ -3873,11 +4058,11 @@ class LibClang { late final _clang_getDiagnosticPtr = _lookup< ffi.NativeFunction< - CXDiagnostic Function(CXTranslationUnit, ffi.UnsignedInt) + CXDiagnostic Function(CXTranslationUnit Unit, ffi.UnsignedInt Index) > >('clang_getDiagnostic'); late final _clang_getDiagnostic = _clang_getDiagnosticPtr - .asFunction(); + .asFunction(); /// Retrieve the category number for this diagnostic. /// @@ -3912,11 +4097,12 @@ class LibClang { } late final _clang_getDiagnosticCategoryNamePtr = - _lookup>( + _lookup>( 'clang_getDiagnosticCategoryName', ); late final _clang_getDiagnosticCategoryName = - _clang_getDiagnosticCategoryNamePtr.asFunction(); + _clang_getDiagnosticCategoryNamePtr + .asFunction(); /// Retrieve the diagnostic category text for a given diagnostic. /// @@ -3968,15 +4154,19 @@ class LibClang { _lookup< ffi.NativeFunction< CXString Function( - CXDiagnostic, - ffi.UnsignedInt, - ffi.Pointer, + CXDiagnostic Diagnostic, + ffi.UnsignedInt FixIt, + ffi.Pointer ReplacementRange, ) > >('clang_getDiagnosticFixIt'); late final _clang_getDiagnosticFixIt = _clang_getDiagnosticFixItPtr .asFunction< - CXString Function(CXDiagnostic, int, ffi.Pointer) + CXString Function( + CXDiagnostic Diagnostic, + int FixIt, + ffi.Pointer ReplacementRange, + ) >(); /// Retrieve a diagnostic associated with the given CXDiagnosticSet. @@ -3993,11 +4183,11 @@ class LibClang { late final _clang_getDiagnosticInSetPtr = _lookup< ffi.NativeFunction< - CXDiagnostic Function(CXDiagnosticSet, ffi.UnsignedInt) + CXDiagnostic Function(CXDiagnosticSet Diags, ffi.UnsignedInt Index) > >('clang_getDiagnosticInSet'); late final _clang_getDiagnosticInSet = _clang_getDiagnosticInSetPtr - .asFunction(); + .asFunction(); /// Retrieve the source location of the given diagnostic. /// @@ -4021,11 +4211,11 @@ class LibClang { } late final _clang_getDiagnosticNumFixItsPtr = - _lookup>( - 'clang_getDiagnosticNumFixIts', - ); + _lookup< + ffi.NativeFunction + >('clang_getDiagnosticNumFixIts'); late final _clang_getDiagnosticNumFixIts = _clang_getDiagnosticNumFixItsPtr - .asFunction(); + .asFunction(); /// Determine the number of source ranges associated with the given /// diagnostic. @@ -4060,11 +4250,13 @@ class LibClang { late final _clang_getDiagnosticOptionPtr = _lookup< ffi.NativeFunction< - CXString Function(CXDiagnostic, ffi.Pointer) + CXString Function(CXDiagnostic Diag, ffi.Pointer Disable) > >('clang_getDiagnosticOption'); late final _clang_getDiagnosticOption = _clang_getDiagnosticOptionPtr - .asFunction)>(); + .asFunction< + CXString Function(CXDiagnostic Diag, ffi.Pointer Disable) + >(); /// Retrieve a source range associated with the diagnostic. /// @@ -4084,11 +4276,11 @@ class LibClang { late final _clang_getDiagnosticRangePtr = _lookup< ffi.NativeFunction< - CXSourceRange Function(CXDiagnostic, ffi.UnsignedInt) + CXSourceRange Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Range) > >('clang_getDiagnosticRange'); late final _clang_getDiagnosticRange = _clang_getDiagnosticRangePtr - .asFunction(); + .asFunction(); /// Retrieve the complete set of diagnostics associated with a /// translation unit. @@ -4099,11 +4291,11 @@ class LibClang { } late final _clang_getDiagnosticSetFromTUPtr = - _lookup>( - 'clang_getDiagnosticSetFromTU', - ); + _lookup< + ffi.NativeFunction + >('clang_getDiagnosticSetFromTU'); late final _clang_getDiagnosticSetFromTU = _clang_getDiagnosticSetFromTUPtr - .asFunction(); + .asFunction(); /// Determine the severity of the given diagnostic. CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic arg0) { @@ -4138,11 +4330,11 @@ class LibClang { } late final _clang_getElementTypePtr = - _lookup>( + _lookup>( 'clang_getElementType', ); late final _clang_getElementType = _clang_getElementTypePtr - .asFunction(); + .asFunction(); /// Retrieve the integer value of an enum constant declaration as an unsigned /// long long. @@ -4155,12 +4347,12 @@ class LibClang { } late final _clang_getEnumConstantDeclUnsignedValuePtr = - _lookup>( + _lookup>( 'clang_getEnumConstantDeclUnsignedValue', ); late final _clang_getEnumConstantDeclUnsignedValue = _clang_getEnumConstantDeclUnsignedValuePtr - .asFunction(); + .asFunction(); /// Retrieve the integer value of an enum constant declaration as a signed /// long long. @@ -4173,11 +4365,11 @@ class LibClang { } late final _clang_getEnumConstantDeclValuePtr = - _lookup>( + _lookup>( 'clang_getEnumConstantDeclValue', ); late final _clang_getEnumConstantDeclValue = - _clang_getEnumConstantDeclValuePtr.asFunction(); + _clang_getEnumConstantDeclValuePtr.asFunction(); /// Retrieve the integer type of an enum declaration. /// @@ -4188,11 +4380,11 @@ class LibClang { } late final _clang_getEnumDeclIntegerTypePtr = - _lookup>( + _lookup>( 'clang_getEnumDeclIntegerType', ); late final _clang_getEnumDeclIntegerType = _clang_getEnumDeclIntegerTypePtr - .asFunction(); + .asFunction(); /// Retrieve the exception specification type associated with a function type. /// This is a value of type CXCursor_ExceptionSpecificationKind. @@ -4203,12 +4395,12 @@ class LibClang { } late final _clang_getExceptionSpecificationTypePtr = - _lookup>( + _lookup>( 'clang_getExceptionSpecificationType', ); late final _clang_getExceptionSpecificationType = _clang_getExceptionSpecificationTypePtr - .asFunction(); + .asFunction(); /// Retrieve the file, line, column, and offset represented by /// the given source location. @@ -4244,22 +4436,22 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) > >('clang_getExpansionLocation'); late final _clang_getExpansionLocation = _clang_getExpansionLocationPtr .asFunction< void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) >(); @@ -4271,11 +4463,11 @@ class LibClang { } late final _clang_getFieldDeclBitWidthPtr = - _lookup>( + _lookup>( 'clang_getFieldDeclBitWidth', ); late final _clang_getFieldDeclBitWidth = _clang_getFieldDeclBitWidthPtr - .asFunction(); + .asFunction(); /// Retrieve a file handle within the given translation unit. /// @@ -4292,11 +4484,13 @@ class LibClang { late final _clang_getFilePtr = _lookup< ffi.NativeFunction< - CXFile Function(CXTranslationUnit, ffi.Pointer) + CXFile Function(CXTranslationUnit tu, ffi.Pointer file_name) > >('clang_getFile'); late final _clang_getFile = _clang_getFilePtr - .asFunction)>(); + .asFunction< + CXFile Function(CXTranslationUnit tu, ffi.Pointer file_name) + >(); /// Retrieve the buffer associated with the given file. /// @@ -4320,18 +4514,18 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Pointer Function( - CXTranslationUnit, - CXFile, - ffi.Pointer, + CXTranslationUnit tu, + CXFile file, + ffi.Pointer size, ) > >('clang_getFileContents'); late final _clang_getFileContents = _clang_getFileContentsPtr .asFunction< ffi.Pointer Function( - CXTranslationUnit, - CXFile, - ffi.Pointer, + CXTranslationUnit tu, + CXFile file, + ffi.Pointer size, ) >(); @@ -4370,22 +4564,22 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) > >('clang_getFileLocation'); late final _clang_getFileLocation = _clang_getFileLocationPtr .asFunction< void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) >(); @@ -4395,11 +4589,11 @@ class LibClang { } late final _clang_getFileNamePtr = - _lookup>( + _lookup>( 'clang_getFileName', ); late final _clang_getFileName = _clang_getFileNamePtr - .asFunction(); + .asFunction(); /// Retrieve the last modification time of the given file. int clang_getFileTime(CXFile SFile) { @@ -4407,11 +4601,11 @@ class LibClang { } late final _clang_getFileTimePtr = - _lookup>( + _lookup>( 'clang_getFileTime', ); late final _clang_getFileTime = _clang_getFileTimePtr - .asFunction(); + .asFunction(); /// Retrieve the unique ID for the given \c file. /// @@ -4426,11 +4620,13 @@ class LibClang { late final _clang_getFileUniqueIDPtr = _lookup< ffi.NativeFunction< - ffi.Int Function(CXFile, ffi.Pointer) + ffi.Int Function(CXFile file, ffi.Pointer outID) > >('clang_getFileUniqueID'); late final _clang_getFileUniqueID = _clang_getFileUniqueIDPtr - .asFunction)>(); + .asFunction< + int Function(CXFile file, ffi.Pointer outID) + >(); /// Retrieve the calling convention associated with a function type. /// @@ -4440,11 +4636,11 @@ class LibClang { } late final _clang_getFunctionTypeCallingConvPtr = - _lookup>( + _lookup>( 'clang_getFunctionTypeCallingConv', ); late final _clang_getFunctionTypeCallingConv = - _clang_getFunctionTypeCallingConvPtr.asFunction(); + _clang_getFunctionTypeCallingConvPtr.asFunction(); /// For cursors representing an iboutletcollection attribute, /// this function returns the collection element type. @@ -4467,11 +4663,11 @@ class LibClang { } late final _clang_getIncludedFilePtr = - _lookup>( + _lookup>( 'clang_getIncludedFile', ); late final _clang_getIncludedFile = _clang_getIncludedFilePtr - .asFunction(); + .asFunction(); /// Visit the set of preprocessor inclusions in a translation unit. /// The visitor function is called with the provided data for every included @@ -4488,12 +4684,20 @@ class LibClang { late final _clang_getInclusionsPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(CXTranslationUnit, CXInclusionVisitor, CXClientData) + ffi.Void Function( + CXTranslationUnit tu, + CXInclusionVisitor visitor, + CXClientData client_data, + ) > >('clang_getInclusions'); late final _clang_getInclusions = _clang_getInclusionsPtr .asFunction< - void Function(CXTranslationUnit, CXInclusionVisitor, CXClientData) + void Function( + CXTranslationUnit tu, + CXInclusionVisitor visitor, + CXClientData client_data, + ) >(); /// Legacy API to retrieve the file, line, column, and offset represented @@ -4522,11 +4726,11 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) > >('clang_getInstantiationLocation'); @@ -4534,11 +4738,11 @@ class LibClang { _clang_getInstantiationLocationPtr .asFunction< void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) >(); @@ -4557,16 +4761,21 @@ class LibClang { _lookup< ffi.NativeFunction< CXSourceLocation Function( - CXTranslationUnit, - CXFile, - ffi.UnsignedInt, - ffi.UnsignedInt, + CXTranslationUnit tu, + CXFile file, + ffi.UnsignedInt line, + ffi.UnsignedInt column, ) > >('clang_getLocation'); late final _clang_getLocation = _clang_getLocationPtr .asFunction< - CXSourceLocation Function(CXTranslationUnit, CXFile, int, int) + CXSourceLocation Function( + CXTranslationUnit tu, + CXFile file, + int line, + int column, + ) >(); /// Retrieves the source location associated with a given character offset @@ -4582,11 +4791,17 @@ class LibClang { late final _clang_getLocationForOffsetPtr = _lookup< ffi.NativeFunction< - CXSourceLocation Function(CXTranslationUnit, CXFile, ffi.UnsignedInt) + CXSourceLocation Function( + CXTranslationUnit tu, + CXFile file, + ffi.UnsignedInt offset, + ) > >('clang_getLocationForOffset'); late final _clang_getLocationForOffset = _clang_getLocationForOffsetPtr - .asFunction(); + .asFunction< + CXSourceLocation Function(CXTranslationUnit tu, CXFile file, int offset) + >(); /// Given a CXFile header file, return the module that contains it, if one /// exists. @@ -4644,11 +4859,11 @@ class LibClang { } late final _clang_getNumArgTypesPtr = - _lookup>( + _lookup>( 'clang_getNumArgTypes', ); late final _clang_getNumArgTypes = _clang_getNumArgTypesPtr - .asFunction(); + .asFunction(); /// Retrieve the number of chunks in the given code-completion string. int clang_getNumCompletionChunks(CXCompletionString completion_string) { @@ -4656,11 +4871,13 @@ class LibClang { } late final _clang_getNumCompletionChunksPtr = - _lookup>( - 'clang_getNumCompletionChunks', - ); + _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString completion_string) + > + >('clang_getNumCompletionChunks'); late final _clang_getNumCompletionChunks = _clang_getNumCompletionChunksPtr - .asFunction(); + .asFunction(); /// Determine the number of diagnostics produced for the given /// translation unit. @@ -4669,11 +4886,11 @@ class LibClang { } late final _clang_getNumDiagnosticsPtr = - _lookup>( - 'clang_getNumDiagnostics', - ); + _lookup< + ffi.NativeFunction + >('clang_getNumDiagnostics'); late final _clang_getNumDiagnostics = _clang_getNumDiagnosticsPtr - .asFunction(); + .asFunction(); /// Determine the number of diagnostics in a CXDiagnosticSet. int clang_getNumDiagnosticsInSet(CXDiagnosticSet Diags) { @@ -4681,11 +4898,11 @@ class LibClang { } late final _clang_getNumDiagnosticsInSetPtr = - _lookup>( - 'clang_getNumDiagnosticsInSet', - ); + _lookup< + ffi.NativeFunction + >('clang_getNumDiagnosticsInSet'); late final _clang_getNumDiagnosticsInSet = _clang_getNumDiagnosticsInSetPtr - .asFunction(); + .asFunction(); /// Return the number of elements of an array or vector type. /// @@ -4696,11 +4913,11 @@ class LibClang { } late final _clang_getNumElementsPtr = - _lookup>( + _lookup>( 'clang_getNumElements', ); late final _clang_getNumElements = _clang_getNumElementsPtr - .asFunction(); + .asFunction(); /// Determine the number of overloaded declarations referenced by a /// \c CXCursor_OverloadedDeclRef cursor. @@ -4714,11 +4931,11 @@ class LibClang { } late final _clang_getNumOverloadedDeclsPtr = - _lookup>( + _lookup>( 'clang_getNumOverloadedDecls', ); late final _clang_getNumOverloadedDecls = _clang_getNumOverloadedDeclsPtr - .asFunction(); + .asFunction(); /// Retrieve a cursor for one of the overloaded declarations referenced /// by a \c CXCursor_OverloadedDeclRef cursor. @@ -4737,11 +4954,13 @@ class LibClang { } late final _clang_getOverloadedDeclPtr = - _lookup>( - 'clang_getOverloadedDecl', - ); + _lookup< + ffi.NativeFunction< + CXCursor Function(CXCursor cursor, ffi.UnsignedInt index) + > + >('clang_getOverloadedDecl'); late final _clang_getOverloadedDecl = _clang_getOverloadedDeclPtr - .asFunction(); + .asFunction(); /// Determine the set of methods that are overridden by the given /// method. @@ -4796,18 +5015,18 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Void Function( - CXCursor, - ffi.Pointer>, - ffi.Pointer, + CXCursor cursor, + ffi.Pointer> overridden, + ffi.Pointer num_overridden, ) > >('clang_getOverriddenCursors'); late final _clang_getOverriddenCursors = _clang_getOverriddenCursorsPtr .asFunction< void Function( - CXCursor, - ffi.Pointer>, - ffi.Pointer, + CXCursor cursor, + ffi.Pointer> overridden, + ffi.Pointer num_overridden, ) >(); @@ -4817,11 +5036,11 @@ class LibClang { } late final _clang_getPointeeTypePtr = - _lookup>( + _lookup>( 'clang_getPointeeType', ); late final _clang_getPointeeType = _clang_getPointeeTypePtr - .asFunction(); + .asFunction(); /// Retrieve the file, line and column represented by the given source /// location, as specified in a # line directive. @@ -4874,20 +5093,20 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer filename, + ffi.Pointer line, + ffi.Pointer column, ) > >('clang_getPresumedLocation'); late final _clang_getPresumedLocation = _clang_getPresumedLocationPtr .asFunction< void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer filename, + ffi.Pointer line, + ffi.Pointer column, ) >(); @@ -4900,11 +5119,13 @@ class LibClang { late final _clang_getRangePtr = _lookup< ffi.NativeFunction< - CXSourceRange Function(CXSourceLocation, CXSourceLocation) + CXSourceRange Function(CXSourceLocation begin, CXSourceLocation end) > >('clang_getRange'); late final _clang_getRange = _clang_getRangePtr - .asFunction(); + .asFunction< + CXSourceRange Function(CXSourceLocation begin, CXSourceLocation end) + >(); /// Retrieve a source location representing the last character within a /// source range. @@ -4913,11 +5134,11 @@ class LibClang { } late final _clang_getRangeEndPtr = - _lookup>( - 'clang_getRangeEnd', - ); + _lookup< + ffi.NativeFunction + >('clang_getRangeEnd'); late final _clang_getRangeEnd = _clang_getRangeEndPtr - .asFunction(); + .asFunction(); /// Retrieve a source location representing the first character within a /// source range. @@ -4926,11 +5147,11 @@ class LibClang { } late final _clang_getRangeStartPtr = - _lookup>( - 'clang_getRangeStart', - ); + _lookup< + ffi.NativeFunction + >('clang_getRangeStart'); late final _clang_getRangeStart = _clang_getRangeStartPtr - .asFunction(); + .asFunction(); /// Retrieve a remapping. /// @@ -4943,11 +5164,11 @@ class LibClang { } late final _clang_getRemappingsPtr = - _lookup)>>( - 'clang_getRemappings', - ); + _lookup< + ffi.NativeFunction path)> + >('clang_getRemappings'); late final _clang_getRemappings = _clang_getRemappingsPtr - .asFunction)>(); + .asFunction path)>(); /// Retrieve a remapping. /// @@ -4968,15 +5189,18 @@ class LibClang { _lookup< ffi.NativeFunction< CXRemapping Function( - ffi.Pointer>, - ffi.UnsignedInt, + ffi.Pointer> filePaths, + ffi.UnsignedInt numFiles, ) > >('clang_getRemappingsFromFileList'); late final _clang_getRemappingsFromFileList = _clang_getRemappingsFromFileListPtr .asFunction< - CXRemapping Function(ffi.Pointer>, int) + CXRemapping Function( + ffi.Pointer> filePaths, + int numFiles, + ) >(); /// Retrieve the return type associated with a function type. @@ -4987,11 +5211,11 @@ class LibClang { } late final _clang_getResultTypePtr = - _lookup>( + _lookup>( 'clang_getResultType', ); late final _clang_getResultType = _clang_getResultTypePtr - .asFunction(); + .asFunction(); /// Retrieve all ranges that were skipped by the preprocessor. /// @@ -5007,12 +5231,18 @@ class LibClang { late final _clang_getSkippedRangesPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit, CXFile) + ffi.Pointer Function( + CXTranslationUnit tu, + CXFile file, + ) > >('clang_getSkippedRanges'); late final _clang_getSkippedRanges = _clang_getSkippedRangesPtr .asFunction< - ffi.Pointer Function(CXTranslationUnit, CXFile) + ffi.Pointer Function( + CXTranslationUnit tu, + CXFile file, + ) >(); /// Given a cursor that may represent a specialization or instantiation @@ -5046,12 +5276,12 @@ class LibClang { } late final _clang_getSpecializedCursorTemplatePtr = - _lookup>( + _lookup>( 'clang_getSpecializedCursorTemplate', ); late final _clang_getSpecializedCursorTemplate = _clang_getSpecializedCursorTemplatePtr - .asFunction(); + .asFunction(); /// Retrieve the file, line, column, and offset represented by /// the given source location. @@ -5087,22 +5317,22 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) > >('clang_getSpellingLocation'); late final _clang_getSpellingLocation = _clang_getSpellingLocationPtr .asFunction< void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) >(); @@ -5116,10 +5346,10 @@ class LibClang { late final _clang_getTUResourceUsageNamePtr = _lookup< - ffi.NativeFunction Function(ffi.UnsignedInt)> + ffi.NativeFunction Function(ffi.UnsignedInt kind)> >('clang_getTUResourceUsageName'); late final _clang_getTUResourceUsageName = _clang_getTUResourceUsageNamePtr - .asFunction Function(int)>(); + .asFunction Function(int kind)>(); /// Given a cursor that represents a template, determine /// the cursor kind of the specializations would be generated by instantiating @@ -5141,11 +5371,11 @@ class LibClang { } late final _clang_getTemplateCursorKindPtr = - _lookup>( + _lookup>( 'clang_getTemplateCursorKind', ); late final _clang_getTemplateCursorKind = _clang_getTemplateCursorKindPtr - .asFunction(); + .asFunction(); /// Get the raw lexical token starting with the given location. /// @@ -5166,12 +5396,18 @@ class LibClang { late final _clang_getTokenPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit, CXSourceLocation) + ffi.Pointer Function( + CXTranslationUnit TU, + CXSourceLocation Location, + ) > >('clang_getToken'); late final _clang_getToken = _clang_getTokenPtr .asFunction< - ffi.Pointer Function(CXTranslationUnit, CXSourceLocation) + ffi.Pointer Function( + CXTranslationUnit TU, + CXSourceLocation Location, + ) >(); /// Retrieve a source range that covers the given token. @@ -5252,12 +5488,12 @@ class LibClang { } late final _clang_getTranslationUnitSpellingPtr = - _lookup>( + _lookup>( 'clang_getTranslationUnitSpelling', ); late final _clang_getTranslationUnitSpelling = _clang_getTranslationUnitSpellingPtr - .asFunction(); + .asFunction(); /// Get target information for this translation unit. /// @@ -5267,12 +5503,12 @@ class LibClang { } late final _clang_getTranslationUnitTargetInfoPtr = - _lookup>( - 'clang_getTranslationUnitTargetInfo', - ); + _lookup< + ffi.NativeFunction + >('clang_getTranslationUnitTargetInfo'); late final _clang_getTranslationUnitTargetInfo = _clang_getTranslationUnitTargetInfoPtr - .asFunction(); + .asFunction(); /// Return the cursor for the declaration of the given type. CXCursor clang_getTypeDeclaration(CXType T) { @@ -5280,11 +5516,11 @@ class LibClang { } late final _clang_getTypeDeclarationPtr = - _lookup>( + _lookup>( 'clang_getTypeDeclaration', ); late final _clang_getTypeDeclaration = _clang_getTypeDeclarationPtr - .asFunction(); + .asFunction(); /// Retrieve the spelling of a given CXTypeKind. CXString clang_getTypeKindSpelling(CXTypeKind K) { @@ -5292,11 +5528,11 @@ class LibClang { } late final _clang_getTypeKindSpellingPtr = - _lookup>( + _lookup>( 'clang_getTypeKindSpelling', ); late final _clang_getTypeKindSpelling = _clang_getTypeKindSpellingPtr - .asFunction(); + .asFunction(); /// Pretty-print the underlying type using the rules of the /// language of the translation unit from which it came. @@ -5307,11 +5543,11 @@ class LibClang { } late final _clang_getTypeSpellingPtr = - _lookup>( + _lookup>( 'clang_getTypeSpelling', ); late final _clang_getTypeSpelling = _clang_getTypeSpellingPtr - .asFunction(); + .asFunction(); /// Retrieve the underlying type of a typedef declaration. /// @@ -5322,12 +5558,12 @@ class LibClang { } late final _clang_getTypedefDeclUnderlyingTypePtr = - _lookup>( + _lookup>( 'clang_getTypedefDeclUnderlyingType', ); late final _clang_getTypedefDeclUnderlyingType = _clang_getTypedefDeclUnderlyingTypePtr - .asFunction(); + .asFunction(); /// Returns the typedef name of the given type. CXString clang_getTypedefName(CXType CT) { @@ -5335,11 +5571,11 @@ class LibClang { } late final _clang_getTypedefNamePtr = - _lookup>( + _lookup>( 'clang_getTypedefName', ); late final _clang_getTypedefName = _clang_getTypedefNamePtr - .asFunction(); + .asFunction(); /// Compute a hash value for the given cursor. int clang_hashCursor(CXCursor arg0) { @@ -5359,12 +5595,12 @@ class LibClang { } late final _clang_indexLoc_getCXSourceLocationPtr = - _lookup>( + _lookup>( 'clang_indexLoc_getCXSourceLocation', ); late final _clang_indexLoc_getCXSourceLocation = _clang_indexLoc_getCXSourceLocationPtr - .asFunction(); + .asFunction(); /// Retrieve the CXIdxFile, file, line, column, and offset represented by /// the given CXIdxLoc. @@ -5394,12 +5630,12 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Void Function( - CXIdxLoc, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXIdxLoc loc, + ffi.Pointer indexFile, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) > >('clang_indexLoc_getFileLocation'); @@ -5407,12 +5643,12 @@ class LibClang { _clang_indexLoc_getFileLocationPtr .asFunction< void Function( - CXIdxLoc, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXIdxLoc loc, + ffi.Pointer indexFile, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) >(); @@ -5474,17 +5710,17 @@ class LibClang { ffi.NativeFunction< ffi.Int Function( CXIndexAction, - CXClientData, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, + CXClientData client_data, + ffi.Pointer index_callbacks, + ffi.UnsignedInt index_callbacks_size, + ffi.UnsignedInt index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer out_TU, + ffi.UnsignedInt TU_options, ) > >('clang_indexSourceFile'); @@ -5492,17 +5728,17 @@ class LibClang { .asFunction< int Function( CXIndexAction, - CXClientData, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - int, - ffi.Pointer, - int, + CXClientData client_data, + ffi.Pointer index_callbacks, + int index_callbacks_size, + int index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + ffi.Pointer out_TU, + int TU_options, ) >(); @@ -5544,17 +5780,17 @@ class LibClang { ffi.NativeFunction< ffi.Int Function( CXIndexAction, - CXClientData, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, + CXClientData client_data, + ffi.Pointer index_callbacks, + ffi.UnsignedInt index_callbacks_size, + ffi.UnsignedInt index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer out_TU, + ffi.UnsignedInt TU_options, ) > >('clang_indexSourceFileFullArgv'); @@ -5562,17 +5798,17 @@ class LibClang { .asFunction< int Function( CXIndexAction, - CXClientData, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - int, - ffi.Pointer, - int, + CXClientData client_data, + ffi.Pointer index_callbacks, + int index_callbacks_size, + int index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + ffi.Pointer out_TU, + int TU_options, ) >(); @@ -5613,10 +5849,10 @@ class LibClang { ffi.NativeFunction< ffi.Int Function( CXIndexAction, - CXClientData, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, + CXClientData client_data, + ffi.Pointer index_callbacks, + ffi.UnsignedInt index_callbacks_size, + ffi.UnsignedInt index_options, CXTranslationUnit, ) > @@ -5625,10 +5861,10 @@ class LibClang { .asFunction< int Function( CXIndexAction, - CXClientData, - ffi.Pointer, - int, - int, + CXClientData client_data, + ffi.Pointer index_callbacks, + int index_callbacks_size, + int index_options, CXTranslationUnit, ) >(); @@ -5895,11 +6131,11 @@ class LibClang { } late final _clang_isConstQualifiedTypePtr = - _lookup>( + _lookup>( 'clang_isConstQualifiedType', ); late final _clang_isConstQualifiedType = _clang_isConstQualifiedTypePtr - .asFunction(); + .asFunction(); /// Determine whether the declaration pointed to by this cursor /// is also a definition of that entity. @@ -5947,11 +6183,13 @@ class LibClang { late final _clang_isFileMultipleIncludeGuardedPtr = _lookup< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXTranslationUnit tu, CXFile file) + > >('clang_isFileMultipleIncludeGuarded'); late final _clang_isFileMultipleIncludeGuarded = _clang_isFileMultipleIncludeGuardedPtr - .asFunction(); + .asFunction(); /// Return 1 if the CXType is a variadic function type, and 0 otherwise. int clang_isFunctionTypeVariadic(CXType T) { @@ -5959,11 +6197,11 @@ class LibClang { } late final _clang_isFunctionTypeVariadicPtr = - _lookup>( + _lookup>( 'clang_isFunctionTypeVariadic', ); late final _clang_isFunctionTypeVariadic = _clang_isFunctionTypeVariadicPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents an invalid /// cursor. @@ -6002,11 +6240,11 @@ class LibClang { } late final _clang_isPODTypePtr = - _lookup>( + _lookup>( 'clang_isPODType', ); late final _clang_isPODType = _clang_isPODTypePtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents a preprocessing /// element, such as a preprocessor directive or macro instantiation. @@ -6046,11 +6284,11 @@ class LibClang { } late final _clang_isRestrictQualifiedTypePtr = - _lookup>( + _lookup>( 'clang_isRestrictQualifiedType', ); late final _clang_isRestrictQualifiedType = _clang_isRestrictQualifiedTypePtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents a statement. int clang_isStatement(CXCursorKind arg0) { @@ -6111,11 +6349,11 @@ class LibClang { } late final _clang_isVolatileQualifiedTypePtr = - _lookup>( + _lookup>( 'clang_isVolatileQualifiedType', ); late final _clang_isVolatileQualifiedType = _clang_isVolatileQualifiedTypePtr - .asFunction(); + .asFunction(); /// Deserialize a set of diagnostics from a Clang diagnostics bitcode /// file. @@ -6140,18 +6378,18 @@ class LibClang { _lookup< ffi.NativeFunction< CXDiagnosticSet Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer file, + ffi.Pointer error, + ffi.Pointer errorString, ) > >('clang_loadDiagnostics'); late final _clang_loadDiagnostics = _clang_loadDiagnosticsPtr .asFunction< CXDiagnosticSet Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer file, + ffi.Pointer error, + ffi.Pointer errorString, ) >(); @@ -6183,26 +6421,26 @@ class LibClang { _lookup< ffi.NativeFunction< CXTranslationUnit Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, ) > >('clang_parseTranslationUnit'); late final _clang_parseTranslationUnit = _clang_parseTranslationUnitPtr .asFunction< CXTranslationUnit Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - int, - int, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, ) >(); @@ -6276,28 +6514,28 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.UnsignedInt Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, + ffi.Pointer out_TU, ) > >('clang_parseTranslationUnit2'); late final _clang_parseTranslationUnit2 = _clang_parseTranslationUnit2Ptr .asFunction< int Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - int, - int, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, + ffi.Pointer out_TU, ) >(); @@ -6332,14 +6570,14 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.UnsignedInt Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, + ffi.Pointer out_TU, ) > >('clang_parseTranslationUnit2FullArgv'); @@ -6347,14 +6585,14 @@ class LibClang { _clang_parseTranslationUnit2FullArgvPtr .asFunction< int Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - int, - ffi.Pointer, - int, - int, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, + ffi.Pointer out_TU, ) >(); @@ -6390,9 +6628,9 @@ class LibClang { ffi.NativeFunction< ffi.Void Function( CXRemapping, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, + ffi.UnsignedInt index, + ffi.Pointer original, + ffi.Pointer transformed, ) > >('clang_remap_getFilenames'); @@ -6400,9 +6638,9 @@ class LibClang { .asFunction< void Function( CXRemapping, - int, - ffi.Pointer, - ffi.Pointer, + int index, + ffi.Pointer original, + ffi.Pointer transformed, ) >(); @@ -6473,16 +6711,21 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Int Function( - CXTranslationUnit, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, + CXTranslationUnit TU, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer unsaved_files, + ffi.UnsignedInt options, ) > >('clang_reparseTranslationUnit'); late final _clang_reparseTranslationUnit = _clang_reparseTranslationUnitPtr .asFunction< - int Function(CXTranslationUnit, int, ffi.Pointer, int) + int Function( + CXTranslationUnit TU, + int num_unsaved_files, + ffi.Pointer unsaved_files, + int options, + ) >(); /// Saves a translation unit into a serialized representation of @@ -6518,15 +6761,19 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Int Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, + CXTranslationUnit TU, + ffi.Pointer FileName, + ffi.UnsignedInt options, ) > >('clang_saveTranslationUnit'); late final _clang_saveTranslationUnit = _clang_saveTranslationUnitPtr .asFunction< - int Function(CXTranslationUnit, ffi.Pointer, int) + int Function( + CXTranslationUnit TU, + ffi.Pointer FileName, + int options, + ) >(); /// Sort the code-completion results in case-insensitive alphabetical @@ -6544,12 +6791,20 @@ class LibClang { late final _clang_sortCodeCompletionResultsPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) + ffi.Void Function( + ffi.Pointer Results, + ffi.UnsignedInt NumResults, + ) > >('clang_sortCodeCompletionResults'); late final _clang_sortCodeCompletionResults = _clang_sortCodeCompletionResultsPtr - .asFunction, int)>(); + .asFunction< + void Function( + ffi.Pointer Results, + int NumResults, + ) + >(); /// Suspend a translation unit in order to free memory associated with it. /// @@ -6576,11 +6831,11 @@ class LibClang { } late final _clang_toggleCrashRecoveryPtr = - _lookup>( + _lookup>( 'clang_toggleCrashRecovery', ); late final _clang_toggleCrashRecovery = _clang_toggleCrashRecoveryPtr - .asFunction(); + .asFunction(); /// Tokenize the source code described by the given range into raw /// lexical tokens. @@ -6609,20 +6864,20 @@ class LibClang { _lookup< ffi.NativeFunction< ffi.Void Function( - CXTranslationUnit, - CXSourceRange, - ffi.Pointer>, - ffi.Pointer, + CXTranslationUnit TU, + CXSourceRange Range, + ffi.Pointer> Tokens, + ffi.Pointer NumTokens, ) > >('clang_tokenize'); late final _clang_tokenize = _clang_tokenizePtr .asFunction< void Function( - CXTranslationUnit, - CXSourceRange, - ffi.Pointer>, - ffi.Pointer, + CXTranslationUnit TU, + CXSourceRange Range, + ffi.Pointer> Tokens, + ffi.Pointer NumTokens, ) >(); @@ -6657,11 +6912,21 @@ class LibClang { late final _clang_visitChildrenPtr = _lookup< ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor, CXCursorVisitor, CXClientData) + ffi.UnsignedInt Function( + CXCursor parent, + CXCursorVisitor visitor, + CXClientData client_data, + ) > >('clang_visitChildren'); late final _clang_visitChildren = _clang_visitChildrenPtr - .asFunction(); + .asFunction< + int Function( + CXCursor parent, + CXCursorVisitor visitor, + CXClientData client_data, + ) + >(); late final addresses = _SymbolAddresses(this); } @@ -6670,102 +6935,116 @@ class _SymbolAddresses { final LibClang _library; _SymbolAddresses(this._library); ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor) + > > get clang_CXCursorSet_contains => _library._clang_CXCursorSet_containsPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor) + > > get clang_CXCursorSet_insert => _library._clang_CXCursorSet_insertPtr; ffi.Pointer> get clang_CXIndex_getGlobalOptions => _library._clang_CXIndex_getGlobalOptionsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_CXIndex_setGlobalOptions => _library._clang_CXIndex_setGlobalOptionsPtr; ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction Path)> > get clang_CXIndex_setInvocationEmissionPathOption => _library._clang_CXIndex_setInvocationEmissionPathOptionPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXConstructor_isConvertingConstructor => _library._clang_CXXConstructor_isConvertingConstructorPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXConstructor_isCopyConstructor => _library._clang_CXXConstructor_isCopyConstructorPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXConstructor_isDefaultConstructor => _library._clang_CXXConstructor_isDefaultConstructorPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXConstructor_isMoveConstructor => _library._clang_CXXConstructor_isMoveConstructorPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXField_isMutable => _library._clang_CXXField_isMutablePtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isConst => _library._clang_CXXMethod_isConstPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isDefaulted => _library._clang_CXXMethod_isDefaultedPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isPureVirtual => _library._clang_CXXMethod_isPureVirtualPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isStatic => _library._clang_CXXMethod_isStaticPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isVirtual => _library._clang_CXXMethod_isVirtualPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXRecord_isAbstract => _library._clang_CXXRecord_isAbstractPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_Evaluate => _library._clang_Cursor_EvaluatePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_Cursor_getArgument => _library._clang_Cursor_getArgumentPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getBriefCommentText => _library._clang_Cursor_getBriefCommentTextPtr; ffi.Pointer Function(CXCursor)>> get clang_Cursor_getCXXManglings => _library._clang_Cursor_getCXXManglingsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getCommentRange => _library._clang_Cursor_getCommentRangePtr; ffi.Pointer> get clang_Cursor_getMangling => _library._clang_Cursor_getManglingPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getModule => _library._clang_Cursor_getModulePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getNumArguments => _library._clang_Cursor_getNumArgumentsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getNumTemplateArguments => _library._clang_Cursor_getNumTemplateArgumentsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCDeclQualifiers => _library._clang_Cursor_getObjCDeclQualifiersPtr; ffi.Pointer Function(CXCursor)>> get clang_Cursor_getObjCManglings => _library._clang_Cursor_getObjCManglingsPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCursor C, ffi.UnsignedInt reserved) + > > get clang_Cursor_getObjCPropertyAttributes => _library._clang_Cursor_getObjCPropertyAttributesPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCPropertyGetterName => _library._clang_Cursor_getObjCPropertyGetterNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCPropertySetterName => _library._clang_Cursor_getObjCPropertySetterNamePtr; ffi.Pointer> get clang_Cursor_getObjCSelectorIndex => _library._clang_Cursor_getObjCSelectorIndexPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getOffsetOfField => _library._clang_Cursor_getOffsetOfFieldPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getRawCommentText => _library._clang_Cursor_getRawCommentTextPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getReceiverType => _library._clang_Cursor_getReceiverTypePtr; ffi.Pointer< ffi.NativeFunction< - CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) + CXSourceRange Function( + CXCursor, + ffi.UnsignedInt pieceIndex, + ffi.UnsignedInt options, + ) > > get clang_Cursor_getSpellingNameRange => @@ -6773,206 +7052,227 @@ class _SymbolAddresses { ffi.Pointer> get clang_Cursor_getStorageClass => _library._clang_Cursor_getStorageClassPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction > get clang_Cursor_getTemplateArgumentKind => _library._clang_Cursor_getTemplateArgumentKindPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_Cursor_getTemplateArgumentType => _library._clang_Cursor_getTemplateArgumentTypePtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedLongLong Function(CXCursor C, ffi.UnsignedInt I) + > > get clang_Cursor_getTemplateArgumentUnsignedValue => _library._clang_Cursor_getTemplateArgumentUnsignedValuePtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction > get clang_Cursor_getTemplateArgumentValue => _library._clang_Cursor_getTemplateArgumentValuePtr; ffi.Pointer> get clang_Cursor_getTranslationUnit => _library._clang_Cursor_getTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_hasAttrs => _library._clang_Cursor_hasAttrsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isAnonymous => _library._clang_Cursor_isAnonymousPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isAnonymousRecordDecl => _library._clang_Cursor_isAnonymousRecordDeclPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isBitField => _library._clang_Cursor_isBitFieldPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isDynamicCall => _library._clang_Cursor_isDynamicCallPtr; ffi.Pointer< ffi.NativeFunction< ffi.UnsignedInt Function( - CXCursor, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXCursor C, + ffi.Pointer language, + ffi.Pointer definedIn, + ffi.Pointer isGenerated, ) > > get clang_Cursor_isExternalSymbol => _library._clang_Cursor_isExternalSymbolPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isFunctionInlined => _library._clang_Cursor_isFunctionInlinedPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isInlineNamespace => _library._clang_Cursor_isInlineNamespacePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isMacroBuiltin => _library._clang_Cursor_isMacroBuiltinPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isMacroFunctionLike => _library._clang_Cursor_isMacroFunctionLikePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isNull => _library._clang_Cursor_isNullPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isObjCOptional => _library._clang_Cursor_isObjCOptionalPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isVariadic => _library._clang_Cursor_isVariadicPtr; - ffi.Pointer> + ffi.Pointer> get clang_EnumDecl_isScoped => _library._clang_EnumDecl_isScopedPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_dispose => _library._clang_EvalResult_disposePtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsDouble => _library._clang_EvalResult_getAsDoublePtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsInt => _library._clang_EvalResult_getAsIntPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsLongLong => _library._clang_EvalResult_getAsLongLongPtr; - ffi.Pointer Function(CXEvalResult)>> + ffi.Pointer< + ffi.NativeFunction Function(CXEvalResult E)> + > get clang_EvalResult_getAsStr => _library._clang_EvalResult_getAsStrPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsUnsigned => _library._clang_EvalResult_getAsUnsignedPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getKind => _library._clang_EvalResult_getKindPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_isUnsignedInt => _library._clang_EvalResult_isUnsignedIntPtr; - ffi.Pointer> + ffi.Pointer> get clang_File_isEqual => _library._clang_File_isEqualPtr; - ffi.Pointer> + ffi.Pointer> get clang_File_tryGetRealPathName => _library._clang_File_tryGetRealPathNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_IndexAction_create => _library._clang_IndexAction_createPtr; ffi.Pointer> get clang_IndexAction_dispose => _library._clang_IndexAction_disposePtr; - ffi.Pointer> + ffi.Pointer> get clang_Location_isFromMainFile => _library._clang_Location_isFromMainFilePtr; - ffi.Pointer> + ffi.Pointer> get clang_Location_isInSystemHeader => _library._clang_Location_isInSystemHeaderPtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getASTFile => _library._clang_Module_getASTFilePtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getFullName => _library._clang_Module_getFullNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getName => _library._clang_Module_getNamePtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXTranslationUnit, CXModule Module) + > > get clang_Module_getNumTopLevelHeaders => _library._clang_Module_getNumTopLevelHeadersPtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getParent => _library._clang_Module_getParentPtr; ffi.Pointer< ffi.NativeFunction< - CXFile Function(CXTranslationUnit, CXModule, ffi.UnsignedInt) + CXFile Function(CXTranslationUnit, CXModule Module, ffi.UnsignedInt Index) > > get clang_Module_getTopLevelHeader => _library._clang_Module_getTopLevelHeaderPtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_isSystem => _library._clang_Module_isSystemPtr; - ffi.Pointer> + ffi.Pointer> get clang_PrintingPolicy_dispose => _library._clang_PrintingPolicy_disposePtr; ffi.Pointer< ffi.NativeFunction< - ffi.UnsignedInt Function(CXPrintingPolicy, ffi.UnsignedInt) + ffi.UnsignedInt Function( + CXPrintingPolicy Policy, + ffi.UnsignedInt Property, + ) > > get clang_PrintingPolicy_getProperty => _library._clang_PrintingPolicy_getPropertyPtr; ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(CXPrintingPolicy, ffi.UnsignedInt, ffi.UnsignedInt) + ffi.Void Function( + CXPrintingPolicy Policy, + ffi.UnsignedInt Property, + ffi.UnsignedInt Value, + ) > > get clang_PrintingPolicy_setProperty => _library._clang_PrintingPolicy_setPropertyPtr; - ffi.Pointer> + ffi.Pointer> get clang_Range_isNull => _library._clang_Range_isNullPtr; - ffi.Pointer> + ffi.Pointer> get clang_TargetInfo_dispose => _library._clang_TargetInfo_disposePtr; - ffi.Pointer> + ffi.Pointer> get clang_TargetInfo_getPointerWidth => _library._clang_TargetInfo_getPointerWidthPtr; - ffi.Pointer> + ffi.Pointer> get clang_TargetInfo_getTriple => _library._clang_TargetInfo_getTriplePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getAlignOf => _library._clang_Type_getAlignOfPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getCXXRefQualifier => _library._clang_Type_getCXXRefQualifierPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getClassType => _library._clang_Type_getClassTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getModifiedType => _library._clang_Type_getModifiedTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNamedType => _library._clang_Type_getNamedTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNullability => _library._clang_Type_getNullabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNumObjCProtocolRefs => _library._clang_Type_getNumObjCProtocolRefsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNumObjCTypeArgs => _library._clang_Type_getNumObjCTypeArgsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNumTemplateArguments => _library._clang_Type_getNumTemplateArgumentsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getObjCEncoding => _library._clang_Type_getObjCEncodingPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getObjCObjectBaseType => _library._clang_Type_getObjCObjectBaseTypePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_Type_getObjCProtocolDecl => _library._clang_Type_getObjCProtocolDeclPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getObjCTypeArg => _library._clang_Type_getObjCTypeArgPtr; ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction S)> > get clang_Type_getOffsetOf => _library._clang_Type_getOffsetOfPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getSizeOf => _library._clang_Type_getSizeOfPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getTemplateArgumentAsType => _library._clang_Type_getTemplateArgumentAsTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_isTransparentTagTypedef => _library._clang_Type_isTransparentTagTypedefPtr; ffi.Pointer< ffi.NativeFunction< - ffi.UnsignedInt Function(CXType, CXFieldVisitor, CXClientData) + ffi.UnsignedInt Function( + CXType T, + CXFieldVisitor visitor, + CXClientData client_data, + ) > > get clang_Type_visitFields => _library._clang_Type_visitFieldsPtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, + CXTranslationUnit TU, + ffi.Pointer Tokens, + ffi.UnsignedInt NumTokens, + ffi.Pointer Cursors, ) > > @@ -6980,13 +7280,13 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, + CXTranslationUnit TU, + ffi.Pointer complete_filename, + ffi.UnsignedInt complete_line, + ffi.UnsignedInt complete_column, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, ) > > @@ -6994,88 +7294,120 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Results, + ffi.Pointer IsIncomplete, ) > > get clang_codeCompleteGetContainerKind => _library._clang_codeCompleteGetContainerKindPtr; ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + CXString Function(ffi.Pointer Results) + > > get clang_codeCompleteGetContainerUSR => _library._clang_codeCompleteGetContainerUSRPtr; ffi.Pointer< ffi.NativeFunction< - ffi.UnsignedLongLong Function(ffi.Pointer) + ffi.UnsignedLongLong Function(ffi.Pointer Results) > > get clang_codeCompleteGetContexts => _library._clang_codeCompleteGetContextsPtr; ffi.Pointer< ffi.NativeFunction< - CXDiagnostic Function(ffi.Pointer, ffi.UnsignedInt) + CXDiagnostic Function( + ffi.Pointer Results, + ffi.UnsignedInt Index, + ) > > get clang_codeCompleteGetDiagnostic => _library._clang_codeCompleteGetDiagnosticPtr; ffi.Pointer< ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer) + ffi.UnsignedInt Function(ffi.Pointer Results) > > get clang_codeCompleteGetNumDiagnostics => _library._clang_codeCompleteGetNumDiagnosticsPtr; ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + CXString Function(ffi.Pointer Results) + > > get clang_codeCompleteGetObjCSelector => _library._clang_codeCompleteGetObjCSelectorPtr; ffi.Pointer< ffi.NativeFunction< - CXString Function(ffi.Pointer, ffi.Pointer) + CXString Function( + ffi.Pointer class_name, + ffi.Pointer category_name, + ) > > get clang_constructUSR_ObjCCategory => _library._clang_constructUSR_ObjCCategoryPtr; - ffi.Pointer)>> + ffi.Pointer< + ffi.NativeFunction class_name)> + > get clang_constructUSR_ObjCClass => _library._clang_constructUSR_ObjCClassPtr; ffi.Pointer< - ffi.NativeFunction, CXString)> + ffi.NativeFunction< + CXString Function(ffi.Pointer name, CXString classUSR) + > > get clang_constructUSR_ObjCIvar => _library._clang_constructUSR_ObjCIvarPtr; ffi.Pointer< ffi.NativeFunction< - CXString Function(ffi.Pointer, ffi.UnsignedInt, CXString) + CXString Function( + ffi.Pointer name, + ffi.UnsignedInt isInstanceMethod, + CXString classUSR, + ) > > get clang_constructUSR_ObjCMethod => _library._clang_constructUSR_ObjCMethodPtr; ffi.Pointer< - ffi.NativeFunction, CXString)> + ffi.NativeFunction< + CXString Function(ffi.Pointer property, CXString classUSR) + > > get clang_constructUSR_ObjCProperty => _library._clang_constructUSR_ObjCPropertyPtr; - ffi.Pointer)>> + ffi.Pointer< + ffi.NativeFunction protocol_name)> + > get clang_constructUSR_ObjCProtocol => _library._clang_constructUSR_ObjCProtocolPtr; ffi.Pointer> get clang_createCXCursorSet => _library._clang_createCXCursorSetPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXIndex Function( + ffi.Int excludeDeclarationsFromPCH, + ffi.Int displayDiagnostics, + ) + > + > get clang_createIndex => _library._clang_createIndexPtr; ffi.Pointer< ffi.NativeFunction< - CXTranslationUnit Function(CXIndex, ffi.Pointer) + CXTranslationUnit Function( + CXIndex CIdx, + ffi.Pointer ast_filename, + ) > > get clang_createTranslationUnit => _library._clang_createTranslationUnitPtr; ffi.Pointer< ffi.NativeFunction< ffi.UnsignedInt Function( - CXIndex, - ffi.Pointer, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer ast_filename, + ffi.Pointer out_TU, ) > > @@ -7083,12 +7415,12 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< CXTranslationUnit Function( - CXIndex, - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.UnsignedInt, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Int num_clang_command_line_args, + ffi.Pointer> clang_command_line_args, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer unsaved_files, ) > > @@ -7103,48 +7435,60 @@ class _SymbolAddresses { ffi.Pointer> get clang_defaultEditingTranslationUnitOptions => _library._clang_defaultEditingTranslationUnitOptionsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_defaultReparseOptions => _library._clang_defaultReparseOptionsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_defaultSaveOptions => _library._clang_defaultSaveOptionsPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeCXCursorSet => _library._clang_disposeCXCursorSetPtr; ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer availability) + > > get clang_disposeCXPlatformAvailability => _library._clang_disposeCXPlatformAvailabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeCXTUResourceUsage => _library._clang_disposeCXTUResourceUsagePtr; ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer Results) + > > get clang_disposeCodeCompleteResults => _library._clang_disposeCodeCompleteResultsPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeDiagnostic => _library._clang_disposeDiagnosticPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeDiagnosticSet => _library._clang_disposeDiagnosticSetPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeIndex => _library._clang_disposeIndexPtr; - ffi.Pointer)>> + ffi.Pointer< + ffi.NativeFunction overridden)> + > get clang_disposeOverriddenCursors => _library._clang_disposeOverriddenCursorsPtr; ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction ranges)> > get clang_disposeSourceRangeList => _library._clang_disposeSourceRangeListPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeString => _library._clang_disposeStringPtr; - ffi.Pointer)>> + ffi.Pointer< + ffi.NativeFunction set)> + > get clang_disposeStringSet => _library._clang_disposeStringSetPtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, + CXTranslationUnit TU, + ffi.Pointer Tokens, + ffi.UnsignedInt NumTokens, ) > > @@ -7157,24 +7501,27 @@ class _SymbolAddresses { get clang_equalCursors => _library._clang_equalCursorsPtr; ffi.Pointer< ffi.NativeFunction< - ffi.UnsignedInt Function(CXSourceLocation, CXSourceLocation) + ffi.UnsignedInt Function(CXSourceLocation loc1, CXSourceLocation loc2) > > get clang_equalLocations => _library._clang_equalLocationsPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXSourceRange range1, CXSourceRange range2) + > > get clang_equalRanges => _library._clang_equalRangesPtr; - ffi.Pointer> + ffi.Pointer> get clang_equalTypes => _library._clang_equalTypesPtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( ffi.Pointer< ffi.NativeFunction)> - >, - ffi.Pointer, - ffi.UnsignedInt, + > + fn, + ffi.Pointer user_data, + ffi.UnsignedInt stack_size, ) > > @@ -7182,197 +7529,248 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedInt Function( - CXTranslationUnit, - CXFile, - CXCursorAndRangeVisitor, + CXTranslationUnit TU, + CXFile file, + CXCursorAndRangeVisitor visitor, ) > > get clang_findIncludesInFile => _library._clang_findIncludesInFilePtr; ffi.Pointer< ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor, CXFile, CXCursorAndRangeVisitor) + ffi.UnsignedInt Function( + CXCursor cursor, + CXFile file, + CXCursorAndRangeVisitor visitor, + ) > > get clang_findReferencesInFile => _library._clang_findReferencesInFilePtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + CXString Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Options) + > > get clang_formatDiagnostic => _library._clang_formatDiagnosticPtr; - ffi.Pointer> + ffi.Pointer> get clang_getAddressSpace => _library._clang_getAddressSpacePtr; ffi.Pointer< ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit) + ffi.Pointer Function(CXTranslationUnit tu) > > get clang_getAllSkippedRanges => _library._clang_getAllSkippedRangesPtr; - ffi.Pointer> + ffi.Pointer> get clang_getArgType => _library._clang_getArgTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getArrayElementType => _library._clang_getArrayElementTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getArraySize => _library._clang_getArraySizePtr; - ffi.Pointer Function(CXString)>> + ffi.Pointer< + ffi.NativeFunction Function(CXString string)> + > get clang_getCString => _library._clang_getCStringPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getCXTUResourceUsage => _library._clang_getCXTUResourceUsagePtr; ffi.Pointer> get clang_getCXXAccessSpecifier => _library._clang_getCXXAccessSpecifierPtr; ffi.Pointer> get clang_getCanonicalCursor => _library._clang_getCanonicalCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCanonicalType => _library._clang_getCanonicalTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getChildDiagnostics => _library._clang_getChildDiagnosticsPtr; ffi.Pointer> get clang_getClangVersion => _library._clang_getClangVersionPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + CXString Function( + CXCompletionString completion_string, + ffi.UnsignedInt annotation_number, + ) + > > get clang_getCompletionAnnotation => _library._clang_getCompletionAnnotationPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString completion_string) + > + > get clang_getCompletionAvailability => _library._clang_getCompletionAvailabilityPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getCompletionBriefComment => _library._clang_getCompletionBriefCommentPtr; ffi.Pointer< ffi.NativeFunction< - CXCompletionString Function(CXCompletionString, ffi.UnsignedInt) + CXCompletionString Function( + CXCompletionString completion_string, + ffi.UnsignedInt chunk_number, + ) > > get clang_getCompletionChunkCompletionString => _library._clang_getCompletionChunkCompletionStringPtr; ffi.Pointer< ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString, ffi.UnsignedInt) + ffi.UnsignedInt Function( + CXCompletionString completion_string, + ffi.UnsignedInt chunk_number, + ) > > get clang_getCompletionChunkKind => _library._clang_getCompletionChunkKindPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + CXString Function( + CXCompletionString completion_string, + ffi.UnsignedInt chunk_number, + ) + > > get clang_getCompletionChunkText => _library._clang_getCompletionChunkTextPtr; ffi.Pointer< ffi.NativeFunction< CXString Function( - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, + ffi.Pointer results, + ffi.UnsignedInt completion_index, + ffi.UnsignedInt fixit_index, + ffi.Pointer replacement_range, ) > > get clang_getCompletionFixIt => _library._clang_getCompletionFixItPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString completion_string) + > + > get clang_getCompletionNumAnnotations => _library._clang_getCompletionNumAnnotationsPtr; ffi.Pointer< ffi.NativeFunction< ffi.UnsignedInt Function( - ffi.Pointer, - ffi.UnsignedInt, + ffi.Pointer results, + ffi.UnsignedInt completion_index, ) > > get clang_getCompletionNumFixIts => _library._clang_getCompletionNumFixItsPtr; ffi.Pointer< ffi.NativeFunction< - CXString Function(CXCompletionString, ffi.Pointer) + CXString Function( + CXCompletionString completion_string, + ffi.Pointer kind, + ) > > get clang_getCompletionParent => _library._clang_getCompletionParentPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString completion_string) + > + > get clang_getCompletionPriority => _library._clang_getCompletionPriorityPtr; ffi.Pointer< ffi.NativeFunction > get clang_getCursor => _library._clang_getCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorAvailability => _library._clang_getCursorAvailabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorCompletionString => _library._clang_getCursorCompletionStringPtr; ffi.Pointer> get clang_getCursorDefinition => _library._clang_getCursorDefinitionPtr; ffi.Pointer> get clang_getCursorDisplayName => _library._clang_getCursorDisplayNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorExceptionSpecificationType => _library._clang_getCursorExceptionSpecificationTypePtr; ffi.Pointer> get clang_getCursorExtent => _library._clang_getCursorExtentPtr; ffi.Pointer> get clang_getCursorKind => _library._clang_getCursorKindPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorKindSpelling => _library._clang_getCursorKindSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLanguage => _library._clang_getCursorLanguagePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLexicalParent => _library._clang_getCursorLexicalParentPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLinkage => _library._clang_getCursorLinkagePtr; ffi.Pointer> get clang_getCursorLocation => _library._clang_getCursorLocationPtr; ffi.Pointer< ffi.NativeFunction< ffi.Int Function( - CXCursor, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, + CXCursor cursor, + ffi.Pointer always_deprecated, + ffi.Pointer deprecated_message, + ffi.Pointer always_unavailable, + ffi.Pointer unavailable_message, + ffi.Pointer availability, + ffi.Int availability_size, ) > > get clang_getCursorPlatformAvailability => _library._clang_getCursorPlatformAvailabilityPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXString Function(CXCursor Cursor, CXPrintingPolicy Policy) + > + > get clang_getCursorPrettyPrinted => _library._clang_getCursorPrettyPrintedPtr; ffi.Pointer> get clang_getCursorPrintingPolicy => _library._clang_getCursorPrintingPolicyPtr; ffi.Pointer< ffi.NativeFunction< - CXSourceRange Function(CXCursor, ffi.UnsignedInt, ffi.UnsignedInt) + CXSourceRange Function( + CXCursor C, + ffi.UnsignedInt NameFlags, + ffi.UnsignedInt PieceIndex, + ) > > get clang_getCursorReferenceNameRange => _library._clang_getCursorReferenceNameRangePtr; ffi.Pointer> get clang_getCursorReferenced => _library._clang_getCursorReferencedPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorResultType => _library._clang_getCursorResultTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorSemanticParent => _library._clang_getCursorSemanticParentPtr; ffi.Pointer> get clang_getCursorSpelling => _library._clang_getCursorSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorTLSKind => _library._clang_getCursorTLSKindPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorType => _library._clang_getCursorTypePtr; ffi.Pointer> get clang_getCursorUSR => _library._clang_getCursorUSRPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorVisibility => _library._clang_getCursorVisibilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDeclObjCTypeEncoding => _library._clang_getDeclObjCTypeEncodingPtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( CXCursor, - ffi.Pointer>, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer> startBuf, + ffi.Pointer> endBuf, + ffi.Pointer startLine, + ffi.Pointer startColumn, + ffi.Pointer endLine, + ffi.Pointer endColumn, ) > > @@ -7380,13 +7778,13 @@ class _SymbolAddresses { _library._clang_getDefinitionSpellingAndExtentPtr; ffi.Pointer< ffi.NativeFunction< - CXDiagnostic Function(CXTranslationUnit, ffi.UnsignedInt) + CXDiagnostic Function(CXTranslationUnit Unit, ffi.UnsignedInt Index) > > get clang_getDiagnostic => _library._clang_getDiagnosticPtr; ffi.Pointer> get clang_getDiagnosticCategory => _library._clang_getDiagnosticCategoryPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticCategoryName => _library._clang_getDiagnosticCategoryNamePtr; ffi.Pointer> @@ -7395,76 +7793,86 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< CXString Function( - CXDiagnostic, - ffi.UnsignedInt, - ffi.Pointer, + CXDiagnostic Diagnostic, + ffi.UnsignedInt FixIt, + ffi.Pointer ReplacementRange, ) > > get clang_getDiagnosticFixIt => _library._clang_getDiagnosticFixItPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + CXDiagnostic Function(CXDiagnosticSet Diags, ffi.UnsignedInt Index) + > > get clang_getDiagnosticInSet => _library._clang_getDiagnosticInSetPtr; ffi.Pointer> get clang_getDiagnosticLocation => _library._clang_getDiagnosticLocationPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getDiagnosticNumFixIts => _library._clang_getDiagnosticNumFixItsPtr; ffi.Pointer> get clang_getDiagnosticNumRanges => _library._clang_getDiagnosticNumRangesPtr; ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + CXString Function(CXDiagnostic Diag, ffi.Pointer Disable) + > > get clang_getDiagnosticOption => _library._clang_getDiagnosticOptionPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + CXSourceRange Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Range) + > > get clang_getDiagnosticRange => _library._clang_getDiagnosticRangePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getDiagnosticSetFromTU => _library._clang_getDiagnosticSetFromTUPtr; ffi.Pointer> get clang_getDiagnosticSeverity => _library._clang_getDiagnosticSeverityPtr; ffi.Pointer> get clang_getDiagnosticSpelling => _library._clang_getDiagnosticSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getElementType => _library._clang_getElementTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getEnumConstantDeclUnsignedValue => _library._clang_getEnumConstantDeclUnsignedValuePtr; - ffi.Pointer> + ffi.Pointer> get clang_getEnumConstantDeclValue => _library._clang_getEnumConstantDeclValuePtr; - ffi.Pointer> + ffi.Pointer> get clang_getEnumDeclIntegerType => _library._clang_getEnumDeclIntegerTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getExceptionSpecificationType => _library._clang_getExceptionSpecificationTypePtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) > > get clang_getExpansionLocation => _library._clang_getExpansionLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getFieldDeclBitWidth => _library._clang_getFieldDeclBitWidthPtr; ffi.Pointer< ffi.NativeFunction< - CXFile Function(CXTranslationUnit, ffi.Pointer) + CXFile Function(CXTranslationUnit tu, ffi.Pointer file_name) > > get clang_getFile => _library._clang_getFilePtr; ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function( - CXTranslationUnit, - CXFile, - ffi.Pointer, + CXTranslationUnit tu, + CXFile file, + ffi.Pointer size, ) > > @@ -7472,45 +7880,51 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) > > get clang_getFileLocation => _library._clang_getFileLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getFileName => _library._clang_getFileNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_getFileTime => _library._clang_getFileTimePtr; ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.Int Function(CXFile file, ffi.Pointer outID) + > > get clang_getFileUniqueID => _library._clang_getFileUniqueIDPtr; - ffi.Pointer> + ffi.Pointer> get clang_getFunctionTypeCallingConv => _library._clang_getFunctionTypeCallingConvPtr; ffi.Pointer> get clang_getIBOutletCollectionType => _library._clang_getIBOutletCollectionTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getIncludedFile => _library._clang_getIncludedFilePtr; ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(CXTranslationUnit, CXInclusionVisitor, CXClientData) + ffi.Void Function( + CXTranslationUnit tu, + CXInclusionVisitor visitor, + CXClientData client_data, + ) > > get clang_getInclusions => _library._clang_getInclusionsPtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) > > @@ -7519,17 +7933,21 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< CXSourceLocation Function( - CXTranslationUnit, - CXFile, - ffi.UnsignedInt, - ffi.UnsignedInt, + CXTranslationUnit tu, + CXFile file, + ffi.UnsignedInt line, + ffi.UnsignedInt column, ) > > get clang_getLocation => _library._clang_getLocationPtr; ffi.Pointer< ffi.NativeFunction< - CXSourceLocation Function(CXTranslationUnit, CXFile, ffi.UnsignedInt) + CXSourceLocation Function( + CXTranslationUnit tu, + CXFile file, + ffi.UnsignedInt offset, + ) > > get clang_getLocationForOffset => _library._clang_getLocationForOffsetPtr; @@ -7541,94 +7959,118 @@ class _SymbolAddresses { get clang_getNullLocation => _library._clang_getNullLocationPtr; ffi.Pointer> get clang_getNullRange => _library._clang_getNullRangePtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumArgTypes => _library._clang_getNumArgTypesPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedInt Function(CXCompletionString completion_string) + > + > get clang_getNumCompletionChunks => _library._clang_getNumCompletionChunksPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getNumDiagnostics => _library._clang_getNumDiagnosticsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getNumDiagnosticsInSet => _library._clang_getNumDiagnosticsInSetPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumElements => _library._clang_getNumElementsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumOverloadedDecls => _library._clang_getNumOverloadedDeclsPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction< + CXCursor Function(CXCursor cursor, ffi.UnsignedInt index) + > + > get clang_getOverloadedDecl => _library._clang_getOverloadedDeclPtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - CXCursor, - ffi.Pointer>, - ffi.Pointer, + CXCursor cursor, + ffi.Pointer> overridden, + ffi.Pointer num_overridden, ) > > get clang_getOverriddenCursors => _library._clang_getOverriddenCursorsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getPointeeType => _library._clang_getPointeeTypePtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer filename, + ffi.Pointer line, + ffi.Pointer column, ) > > get clang_getPresumedLocation => _library._clang_getPresumedLocationPtr; ffi.Pointer< ffi.NativeFunction< - CXSourceRange Function(CXSourceLocation, CXSourceLocation) + CXSourceRange Function(CXSourceLocation begin, CXSourceLocation end) > > get clang_getRange => _library._clang_getRangePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getRangeEnd => _library._clang_getRangeEndPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getRangeStart => _library._clang_getRangeStartPtr; - ffi.Pointer)>> + ffi.Pointer< + ffi.NativeFunction path)> + > get clang_getRemappings => _library._clang_getRemappingsPtr; ffi.Pointer< ffi.NativeFunction< - CXRemapping Function(ffi.Pointer>, ffi.UnsignedInt) + CXRemapping Function( + ffi.Pointer> filePaths, + ffi.UnsignedInt numFiles, + ) > > get clang_getRemappingsFromFileList => _library._clang_getRemappingsFromFileListPtr; - ffi.Pointer> + ffi.Pointer> get clang_getResultType => _library._clang_getResultTypePtr; ffi.Pointer< ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit, CXFile) + ffi.Pointer Function(CXTranslationUnit tu, CXFile file) > > get clang_getSkippedRanges => _library._clang_getSkippedRangesPtr; - ffi.Pointer> + ffi.Pointer> get clang_getSpecializedCursorTemplate => _library._clang_getSpecializedCursorTemplatePtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - CXSourceLocation, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) > > get clang_getSpellingLocation => _library._clang_getSpellingLocationPtr; ffi.Pointer< - ffi.NativeFunction Function(ffi.UnsignedInt)> + ffi.NativeFunction Function(ffi.UnsignedInt kind)> > get clang_getTUResourceUsageName => _library._clang_getTUResourceUsageNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_getTemplateCursorKind => _library._clang_getTemplateCursorKindPtr; ffi.Pointer< ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit, CXSourceLocation) + ffi.Pointer Function( + CXTranslationUnit TU, + CXSourceLocation Location, + ) > > get clang_getToken => _library._clang_getTokenPtr; @@ -7647,37 +8089,39 @@ class _SymbolAddresses { ffi.Pointer> get clang_getTranslationUnitCursor => _library._clang_getTranslationUnitCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTranslationUnitSpelling => _library._clang_getTranslationUnitSpellingPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getTranslationUnitTargetInfo => _library._clang_getTranslationUnitTargetInfoPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypeDeclaration => _library._clang_getTypeDeclarationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypeKindSpelling => _library._clang_getTypeKindSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypeSpelling => _library._clang_getTypeSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypedefDeclUnderlyingType => _library._clang_getTypedefDeclUnderlyingTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypedefName => _library._clang_getTypedefNamePtr; ffi.Pointer> get clang_hashCursor => _library._clang_hashCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_indexLoc_getCXSourceLocation => _library._clang_indexLoc_getCXSourceLocationPtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - CXIdxLoc, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + CXIdxLoc loc, + ffi.Pointer indexFile, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, ) > > @@ -7687,17 +8131,17 @@ class _SymbolAddresses { ffi.NativeFunction< ffi.Int Function( CXIndexAction, - CXClientData, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, + CXClientData client_data, + ffi.Pointer index_callbacks, + ffi.UnsignedInt index_callbacks_size, + ffi.UnsignedInt index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer out_TU, + ffi.UnsignedInt TU_options, ) > > @@ -7706,17 +8150,17 @@ class _SymbolAddresses { ffi.NativeFunction< ffi.Int Function( CXIndexAction, - CXClientData, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, + CXClientData client_data, + ffi.Pointer index_callbacks, + ffi.UnsignedInt index_callbacks_size, + ffi.UnsignedInt index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer out_TU, + ffi.UnsignedInt TU_options, ) > > @@ -7726,10 +8170,10 @@ class _SymbolAddresses { ffi.NativeFunction< ffi.Int Function( CXIndexAction, - CXClientData, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, + CXClientData client_data, + ffi.Pointer index_callbacks, + ffi.UnsignedInt index_callbacks_size, + ffi.UnsignedInt index_options, CXTranslationUnit, ) > @@ -7825,7 +8269,7 @@ class _SymbolAddresses { get clang_index_setClientEntity => _library._clang_index_setClientEntityPtr; ffi.Pointer> get clang_isAttribute => _library._clang_isAttributePtr; - ffi.Pointer> + ffi.Pointer> get clang_isConstQualifiedType => _library._clang_isConstQualifiedTypePtr; ffi.Pointer> get clang_isCursorDefinition => _library._clang_isCursorDefinitionPtr; @@ -7834,23 +8278,25 @@ class _SymbolAddresses { ffi.Pointer> get clang_isExpression => _library._clang_isExpressionPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction< + ffi.UnsignedInt Function(CXTranslationUnit tu, CXFile file) + > > get clang_isFileMultipleIncludeGuarded => _library._clang_isFileMultipleIncludeGuardedPtr; - ffi.Pointer> + ffi.Pointer> get clang_isFunctionTypeVariadic => _library._clang_isFunctionTypeVariadicPtr; ffi.Pointer> get clang_isInvalid => _library._clang_isInvalidPtr; ffi.Pointer> get clang_isInvalidDeclaration => _library._clang_isInvalidDeclarationPtr; - ffi.Pointer> + ffi.Pointer> get clang_isPODType => _library._clang_isPODTypePtr; ffi.Pointer> get clang_isPreprocessing => _library._clang_isPreprocessingPtr; ffi.Pointer> get clang_isReference => _library._clang_isReferencePtr; - ffi.Pointer> + ffi.Pointer> get clang_isRestrictQualifiedType => _library._clang_isRestrictQualifiedTypePtr; ffi.Pointer> @@ -7861,15 +8307,15 @@ class _SymbolAddresses { get clang_isUnexposed => _library._clang_isUnexposedPtr; ffi.Pointer> get clang_isVirtualBase => _library._clang_isVirtualBasePtr; - ffi.Pointer> + ffi.Pointer> get clang_isVolatileQualifiedType => _library._clang_isVolatileQualifiedTypePtr; ffi.Pointer< ffi.NativeFunction< CXDiagnosticSet Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer file, + ffi.Pointer error, + ffi.Pointer errorString, ) > > @@ -7877,13 +8323,13 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< CXTranslationUnit Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, ) > > @@ -7891,14 +8337,14 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedInt Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, + ffi.Pointer out_TU, ) > > @@ -7906,14 +8352,14 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedInt Function( - CXIndex, - ffi.Pointer, - ffi.Pointer>, - ffi.Int, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, + ffi.Pointer out_TU, ) > > @@ -7925,9 +8371,9 @@ class _SymbolAddresses { ffi.NativeFunction< ffi.Void Function( CXRemapping, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer, + ffi.UnsignedInt index, + ffi.Pointer original, + ffi.Pointer transformed, ) > > @@ -7937,10 +8383,10 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< ffi.Int Function( - CXTranslationUnit, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedInt, + CXTranslationUnit TU, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer unsaved_files, + ffi.UnsignedInt options, ) > > @@ -7948,38 +8394,45 @@ class _SymbolAddresses { ffi.Pointer< ffi.NativeFunction< ffi.Int Function( - CXTranslationUnit, - ffi.Pointer, - ffi.UnsignedInt, + CXTranslationUnit TU, + ffi.Pointer FileName, + ffi.UnsignedInt options, ) > > get clang_saveTranslationUnit => _library._clang_saveTranslationUnitPtr; ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.UnsignedInt) + ffi.Void Function( + ffi.Pointer Results, + ffi.UnsignedInt NumResults, + ) > > get clang_sortCodeCompletionResults => _library._clang_sortCodeCompletionResultsPtr; ffi.Pointer> get clang_suspendTranslationUnit => _library._clang_suspendTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer> get clang_toggleCrashRecovery => _library._clang_toggleCrashRecoveryPtr; ffi.Pointer< ffi.NativeFunction< ffi.Void Function( - CXTranslationUnit, - CXSourceRange, - ffi.Pointer>, - ffi.Pointer, + CXTranslationUnit TU, + CXSourceRange Range, + ffi.Pointer> Tokens, + ffi.Pointer NumTokens, ) > > get clang_tokenize => _library._clang_tokenizePtr; ffi.Pointer< ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor, CXCursorVisitor, CXClientData) + ffi.UnsignedInt Function( + CXCursor parent, + CXCursorVisitor visitor, + CXClientData client_data, + ) > > get clang_visitChildren => _library._clang_visitChildrenPtr; From 073fd949658962a4e51920eed1f47b29d775ebf3 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 16:15:12 +1000 Subject: [PATCH 27/54] fix --- .../lib/src/config_provider/public_ast.dart | 20 +- .../unit_tests/filtering_visitor_test.dart | 474 ------------------ 2 files changed, 10 insertions(+), 484 deletions(-) delete mode 100644 pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index df2a18e064..78547dab7e 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -48,7 +48,7 @@ class Func extends DeclNode { @override void accept(Visitor visitor) { visitor.visitFunc(this); - if (isIncluded) visitor.visitAll(params); + visitor.visitAll(params); } @override @@ -82,7 +82,7 @@ class Struct extends DeclNode { @override void accept(Visitor visitor) { visitor.visitStruct(this); - if (isIncluded) visitor.visitAll(members); + visitor.visitAll(members); } @override @@ -116,7 +116,7 @@ class Union extends DeclNode { @override void accept(Visitor visitor) { visitor.visitUnion(this); - if (isIncluded) visitor.visitAll(members); + visitor.visitAll(members); } @override @@ -150,7 +150,7 @@ class EnumClass extends DeclNode { @override void accept(Visitor visitor) { visitor.visitEnum(this); - if (isIncluded) visitor.visitAll(constants); + visitor.visitAll(constants); } @override @@ -288,7 +288,7 @@ class ObjCInterface extends DeclNode { @override void accept(Visitor visitor) { visitor.visitObjCInterface(this); - if (isIncluded) visitor.visitAll(methods); + visitor.visitAll(methods); } @override @@ -322,7 +322,7 @@ class ObjCProtocol extends DeclNode { @override void accept(Visitor visitor) { visitor.visitObjCProtocol(this); - if (isIncluded) visitor.visitAll(methods); + visitor.visitAll(methods); } @override @@ -359,7 +359,7 @@ class ObjCCategory extends DeclNode { @override void accept(Visitor visitor) { visitor.visitObjCCategory(this); - if (isIncluded) visitor.visitAll(methods); + visitor.visitAll(methods); } @override @@ -393,7 +393,7 @@ class CppClass extends DeclNode { @override void accept(Visitor visitor) { visitor.visitCppClass(this); - if (isIncluded) visitor.visitAll(methods); + visitor.visitAll(methods); } @override @@ -497,7 +497,7 @@ class CppMethod extends NamedNode { @override void accept(Visitor visitor) { visitor.visitCppMethod(this); - if (isIncluded) visitor.visitAll(params); + visitor.visitAll(params); } @override @@ -532,7 +532,7 @@ class ObjCMethod extends NamedNode { @override void accept(Visitor visitor) { visitor.visitObjCMethod(this); - if (isIncluded) visitor.visitAll(params); + visitor.visitAll(params); } /// The Objective-C method selector string. diff --git a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart b/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart deleted file mode 100644 index 96f284cbd4..0000000000 --- a/pkgs/ffigen/test/unit_tests/filtering_visitor_test.dart +++ /dev/null @@ -1,474 +0,0 @@ -// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -import 'package:ffigen/ffigen.dart' show FfiGenerator, Output, YamlConfig; -import 'package:ffigen/src/code_generator.dart'; -import 'package:ffigen/src/code_generator/scope.dart'; -import 'package:ffigen/src/config_provider/public_ast.dart' as public_ast; -import 'package:ffigen/src/header_parser/sub_parsers/api_availability.dart'; -import 'package:ffigen/src/visitor/apply_config_filters.dart'; -import 'package:ffigen/src/visitor/visitor.dart'; -import 'package:test/test.dart'; -import 'package:yaml/yaml.dart'; - -import '../test_utils.dart'; - -final class FilteringVisitor extends public_ast.Visitor { - FilteringVisitor() : super.base(); - - @override - void visitFunc(public_ast.Func node) { - if (node.originalName != 'excluded_func') { - node.isIncluded = true; - } - } - - @override - void visitStruct(public_ast.Struct node) { - if (node.originalName != 'excluded_struct') { - node.isIncluded = true; - } - } - - @override - void visitUnion(public_ast.Union node) { - if (node.originalName != 'excluded_union') { - node.isIncluded = true; - } - } - - @override - void visitEnum(public_ast.EnumClass node) { - if (node.originalName != 'excluded_enum') { - node.isIncluded = true; - } - } - - @override - void visitGlobal(public_ast.Global node) { - if (node.originalName != 'excluded_global') { - node.isIncluded = true; - } - } - - @override - void visitMacro(public_ast.MacroConstant node) { - if (node.originalName != 'EXCLUDED_MACRO') { - node.isIncluded = true; - } - } - - @override - void visitTypealias(public_ast.Typealias node) { - if (node.originalName != 'excluded_typedef') { - node.isIncluded = true; - } - } - - @override - void visitObjCInterface(public_ast.ObjCInterface node) { - if (node.originalName != 'ExcludedInterface') { - node.isIncluded = true; - } - } - - @override - void visitObjCProtocol(public_ast.ObjCProtocol node) { - if (node.originalName != 'ExcludedProtocol') { - node.isIncluded = true; - } - } - - @override - void visitObjCCategory(public_ast.ObjCCategory node) { - if (node.originalName != 'ExcludedCategory') { - node.isIncluded = true; - } - } - - @override - void visitCppClass(public_ast.CppClass node) { - if (node.originalName != 'ExcludedCppClass') { - node.isIncluded = true; - } - } - - @override - void visitUnnamedEnumConstant(public_ast.UnnamedEnumConstant node) { - if (node.originalName != 'EXCLUDED_UNNAMED_ENUM') { - node.isIncluded = true; - } - } - - @override - void visitObjCMethod(public_ast.ObjCMethod node) { - if (node.originalName != 'excludedMethod') { - node.isIncluded = true; - } - } - - @override - void visitCppMethod(public_ast.CppMethod node) { - if (node.originalName != 'excludedMethod') { - node.isIncluded = true; - } - } -} - -void main() { - group('FilteringVisitor Tests', () { - test('isIncluded defaults to false on Bindings and true on ObjCMethod', () { - final context = testContext( - FfiGenerator(output: Output(dartFile: Uri.file('out.dart'))), - ); - - final func = Func( - name: 'my_func', - originalName: 'my_func', - returnType: voidType, - ); - expect(func.isIncluded, isFalse); - - final method = ObjCMethod( - context: context, - originalName: 'myMethod', - name: 'myMethod', - kind: ObjCMethodKind.method, - isClassMethod: false, - isOptional: false, - returnType: voidType, - family: null, - apiAvailability: ApiAvailability.all, - params: [], - ownershipAttribute: null, - consumesSelfAttribute: false, - ); - expect(method.isIncluded, isTrue); - }); - - test('Custom Visitor setting isIncluded = false', () { - final context = testContext( - FfiGenerator(output: Output(dartFile: Uri.file('out.dart'))), - ); - - final includedFunc = Func( - name: 'included_func', - originalName: 'included_func', - returnType: voidType, - ); - - final excludedFunc = Func( - name: 'excluded_func', - originalName: 'excluded_func', - returnType: voidType, - ); - - final includedStruct = Struct( - name: 'included_struct', - originalName: 'included_struct', - context: context, - ); - - final excludedStruct = Struct( - name: 'excluded_struct', - originalName: 'excluded_struct', - context: context, - ); - - final rawBindings = [ - includedFunc, - excludedFunc, - includedStruct, - excludedStruct, - ]; - - final nodes = rawBindings - .map((b) => b.toPublicAstNode()) - .nonNulls - .toList(); - - FilteringVisitor().visitAll(nodes); - - expect(includedFunc.isIncluded, isTrue); - expect(excludedFunc.isIncluded, isFalse); - expect(includedStruct.isIncluded, isTrue); - expect(excludedStruct.isIncluded, isFalse); - - final visitation = ApplyConfigFiltersVisitation(context); - visit(context, visitation, rawBindings); - - expect(visitation.directlyIncluded.contains(includedFunc), isTrue); - expect(visitation.directlyIncluded.contains(excludedFunc), isFalse); - expect(visitation.directlyIncluded.contains(includedStruct), isTrue); - expect(visitation.directlyIncluded.contains(excludedStruct), isFalse); - }); - - test( - 'YamlConfigAstVisitor sets isIncluded = false from YAML configuration', - () { - final yamlConfig = YamlConfig.fromYaml( - loadYaml(r''' -output: 'out.dart' -headers: - entry-points: - - 'foo.h' -functions: - include: - - 'funcA' -structs: - include: - - 'StructA' -''') - as YamlMap, - createTestLogger(), - ); - - final generator = yamlConfig.configAdapter(); - final yamlVisitor = generator.visitors.first; - - final funcA = Func( - name: 'funcA', - originalName: 'funcA', - returnType: voidType, - ); - final funcB = Func( - name: 'funcB', - originalName: 'funcB', - returnType: voidType, - ); - - final nodes = [ - funcA, - funcB, - ].map((b) => b.toPublicAstNode()).nonNulls.toList(); - yamlVisitor.visitAll(nodes); - - expect(funcA.isIncluded, isTrue); - expect(funcB.isIncluded, isFalse); - }, - ); - - test( - 'node.accept(visitor) does not visit children when isIncluded is false', - () { - final context = testContext( - FfiGenerator(output: Output(dartFile: Uri.file('out.dart'))), - ); - - final func = - Func( - name: 'func', - originalName: 'func', - returnType: voidType, - parameters: [Parameter(name: 'p1', type: intType)], - ).toPublicAstNode() - as public_ast.Func; - - final struct = - Struct( - name: 'struct', - originalName: 'struct', - context: context, - members: [ - CompoundMember( - name: 'm1', - originalName: 'm1', - type: intType, - ), - ], - ).toPublicAstNode() - as public_ast.Struct; - - final union = - Union( - name: 'union', - originalName: 'union', - context: context, - members: [ - CompoundMember( - name: 'm1', - originalName: 'm1', - type: intType, - ), - ], - ).toPublicAstNode() - as public_ast.Union; - - final enumClass = - EnumClass( - name: 'enum', - originalName: 'enum', - context: context, - enumConstants: [ - EnumConstant(name: 'c1', originalName: 'c1', value: 0), - ], - ).toPublicAstNode() - as public_ast.EnumClass; - - ObjCMethod createObjCMethod() => ObjCMethod( - context: context, - originalName: 'm1', - name: 'm1', - kind: ObjCMethodKind.method, - isClassMethod: false, - isOptional: false, - returnType: voidType, - family: null, - apiAvailability: ApiAvailability.all, - params: [Parameter(name: 'p1', type: intType)], - ownershipAttribute: null, - consumesSelfAttribute: false, - ); - - final objcInterfaceInternal = ObjCInterface( - context: context, - originalName: 'itf', - name: 'itf', - apiAvailability: ApiAvailability.all, - )..addMethod(createObjCMethod()); - final objcInterface = - objcInterfaceInternal.toPublicAstNode() as public_ast.ObjCInterface; - - final objcProtocolInternal = ObjCProtocol( - context: context, - originalName: 'proto', - name: 'proto', - apiAvailability: ApiAvailability.all, - )..addMethod(createObjCMethod()); - final objcProtocol = - objcProtocolInternal.toPublicAstNode() as public_ast.ObjCProtocol; - - final objcCategoryInternal = ObjCCategory( - context: context, - originalName: 'cat', - name: 'cat', - parent: objcInterfaceInternal, - apiAvailability: ApiAvailability.all, - )..addMethod(createObjCMethod()); - final objcCategory = - objcCategoryInternal.toPublicAstNode() as public_ast.ObjCCategory; - - final cppMethodInternal = CppMethod( - name: Symbol('m1', SymbolKind.method), - originalName: 'm1', - returnType: voidType, - parameters: [Parameter(name: 'p1', type: intType)], - isConstant: false, - ); - final cppClassInternal = CppClass( - name: 'cppClass', - originalName: 'cppClass', - context: context, - methods: [cppMethodInternal], - fields: [], - ); - final cppClass = - cppClassInternal.toPublicAstNode() as public_ast.CppClass; - - final objcMethod = objcInterface.methods.first; - final cppMethod = cppClass.methods.first; - - final testCases = <(String, public_ast.AstNode)>[ - ('Func', func), - ('Struct', struct), - ('Union', union), - ('EnumClass', enumClass), - ('ObjCInterface', objcInterface), - ('ObjCProtocol', objcProtocol), - ('ObjCCategory', objcCategory), - ('CppClass', cppClass), - ('ObjCMethod', objcMethod), - ('CppMethod', cppMethod), - ]; - - for (final (name, node) in testCases) { - final visitedWhenIncluded = []; - final visitorIncluded = public_ast.Visitor( - visitFunc: visitedWhenIncluded.add, - visitStruct: visitedWhenIncluded.add, - visitUnion: visitedWhenIncluded.add, - visitEnum: visitedWhenIncluded.add, - visitObjCInterface: visitedWhenIncluded.add, - visitObjCProtocol: visitedWhenIncluded.add, - visitObjCCategory: visitedWhenIncluded.add, - visitCppClass: visitedWhenIncluded.add, - visitCppMethod: visitedWhenIncluded.add, - visitObjCMethod: visitedWhenIncluded.add, - visitField: visitedWhenIncluded.add, - visitEnumConstant: visitedWhenIncluded.add, - visitParam: visitedWhenIncluded.add, - ); - - (node as dynamic).isIncluded = true; - node.accept(visitorIncluded); - expect( - visitedWhenIncluded.length, - greaterThan(1), - reason: '$name should visit children when included', - ); - expect(visitedWhenIncluded.first, same(node)); - - final visitedWhenExcluded = []; - final visitorExcluded = public_ast.Visitor( - visitFunc: visitedWhenExcluded.add, - visitStruct: visitedWhenExcluded.add, - visitUnion: visitedWhenExcluded.add, - visitEnum: visitedWhenExcluded.add, - visitObjCInterface: visitedWhenExcluded.add, - visitObjCProtocol: visitedWhenExcluded.add, - visitObjCCategory: visitedWhenExcluded.add, - visitCppClass: visitedWhenExcluded.add, - visitCppMethod: visitedWhenExcluded.add, - visitObjCMethod: visitedWhenExcluded.add, - visitField: visitedWhenExcluded.add, - visitEnumConstant: visitedWhenExcluded.add, - visitParam: visitedWhenExcluded.add, - ); - - (node as dynamic).isIncluded = false; - node.accept(visitorExcluded); - expect( - visitedWhenExcluded, - [same(node)], - reason: '$name should NOT visit children when not included', - ); - } - }, - ); - - test('CppMethod.accept visits its parameters when isIncluded is true', () { - final context = testContext( - FfiGenerator(output: Output(dartFile: Uri.file('out.dart'))), - ); - - final cppMethodInternal = CppMethod( - name: Symbol('m1', SymbolKind.method), - originalName: 'm1', - returnType: voidType, - parameters: [Parameter(name: 'p1', type: intType)], - isConstant: false, - ); - final cppClassInternal = CppClass( - name: 'cppClass', - originalName: 'cppClass', - context: context, - methods: [cppMethodInternal], - fields: [], - ); - final cppClass = - cppClassInternal.toPublicAstNode() as public_ast.CppClass; - final cppMethod = cppClass.methods.first; - - final visited = []; - final visitor = public_ast.Visitor( - visitCppMethod: visited.add, - visitParam: visited.add, - ); - - cppMethod.isIncluded = true; - cppMethod.accept(visitor); - expect(visited, [cppMethod, cppMethod.params.first]); - }); - }); -} From 707666385eaed5327b2e820e3b63ccfe4f8f2f8c Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 16:18:52 +1000 Subject: [PATCH 28/54] clean up --- pkgs/ffigen/lib/src/code_generator/func.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/ffigen/lib/src/code_generator/func.dart b/pkgs/ffigen/lib/src/code_generator/func.dart index 1dc3e155a9..6e81e1f674 100644 --- a/pkgs/ffigen/lib/src/code_generator/func.dart +++ b/pkgs/ffigen/lib/src/code_generator/func.dart @@ -63,7 +63,6 @@ class Func extends LookUpBinding with HasLocalScope { /// Contains typealias for function type if [exposeFunctionTypedefs] is true. Typealias? _exposedFunctionTypealias; - Typealias? get exposedFunctionTypealias => _exposedFunctionTypealias; bool isIncluded = false; From 369f3d3e8c9dd4c26dc74e8e891282cd961ce713 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 12 Aug 2026 17:53:09 +1000 Subject: [PATCH 29/54] fix diffs --- .../libclang-example/generated_bindings.dart | 5763 ++++++++--------- pkgs/ffigen/lib/src/code_generator/func.dart | 1 + .../lib/src/code_generator/func_type.dart | 3 + .../clang_bindings/clang_bindings.dart | 53 +- .../lib/src/visitor/apply_config_filters.dart | 26 +- .../ffigen/lib/src/visitor/list_bindings.dart | 62 +- .../_expected_dart_handle_bindings.dart | 5 +- ...expected_native_func_typedef_bindings.dart | 13 +- ..._expected_struct_fptr_fields_bindings.dart | 4 +- .../_expected_typedef_bindings.dart | 4 +- .../_expected_libclang_bindings.dart | 57 +- .../_expected_sqlite_bindings.dart | 63 +- 12 files changed, 2993 insertions(+), 3061 deletions(-) diff --git a/pkgs/ffigen/example/libclang-example/generated_bindings.dart b/pkgs/ffigen/example/libclang-example/generated_bindings.dart index 89bdd2f433..207c7c3e0d 100644 --- a/pkgs/ffigen/example/libclang-example/generated_bindings.dart +++ b/pkgs/ffigen/example/libclang-example/generated_bindings.dart @@ -32,13 +32,11 @@ class LibClang { } late final _clang_CXCursorSet_containsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor) - > - >('clang_CXCursorSet_contains'); + _lookup>( + 'clang_CXCursorSet_contains', + ); late final _clang_CXCursorSet_contains = _clang_CXCursorSet_containsPtr - .asFunction(); + .asFunction(); /// Inserts a CXCursor into a CXCursorSet. /// @@ -48,13 +46,11 @@ class LibClang { } late final _clang_CXCursorSet_insertPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor) - > - >('clang_CXCursorSet_insert'); + _lookup>( + 'clang_CXCursorSet_insert', + ); late final _clang_CXCursorSet_insert = _clang_CXCursorSet_insertPtr - .asFunction(); + .asFunction(); /// Gets the general options associated with a CXIndex. /// @@ -65,11 +61,12 @@ class LibClang { } late final _clang_CXIndex_getGlobalOptionsPtr = - _lookup>( + _lookup>( 'clang_CXIndex_getGlobalOptions', ); late final _clang_CXIndex_getGlobalOptions = - _clang_CXIndex_getGlobalOptionsPtr.asFunction(); + _clang_CXIndex_getGlobalOptionsPtr + .asFunction(); /// Sets general options associated with a CXIndex. /// @@ -87,12 +84,12 @@ class LibClang { } late final _clang_CXIndex_setGlobalOptionsPtr = - _lookup< - ffi.NativeFunction - >('clang_CXIndex_setGlobalOptions'); + _lookup>( + 'clang_CXIndex_setGlobalOptions', + ); late final _clang_CXIndex_setGlobalOptions = _clang_CXIndex_setGlobalOptionsPtr - .asFunction(); + .asFunction(); /// Sets the invocation emission path option in a CXIndex. /// @@ -108,13 +105,11 @@ class LibClang { late final _clang_CXIndex_setInvocationEmissionPathOptionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(CXIndex, ffi.Pointer Path) - > + ffi.NativeFunction >('clang_CXIndex_setInvocationEmissionPathOption'); late final _clang_CXIndex_setInvocationEmissionPathOption = _clang_CXIndex_setInvocationEmissionPathOptionPtr - .asFunction Path)>(); + .asFunction(); /// Determine if a C++ constructor is a converting constructor. int clang_CXXConstructor_isConvertingConstructor(CXCursor C) { @@ -122,12 +117,12 @@ class LibClang { } late final _clang_CXXConstructor_isConvertingConstructorPtr = - _lookup>( - 'clang_CXXConstructor_isConvertingConstructor', - ); + _lookup< + ffi.NativeFunction + >('clang_CXXConstructor_isConvertingConstructor'); late final _clang_CXXConstructor_isConvertingConstructor = _clang_CXXConstructor_isConvertingConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ constructor is a copy constructor. int clang_CXXConstructor_isCopyConstructor(CXCursor C) { @@ -135,12 +130,12 @@ class LibClang { } late final _clang_CXXConstructor_isCopyConstructorPtr = - _lookup>( + _lookup>( 'clang_CXXConstructor_isCopyConstructor', ); late final _clang_CXXConstructor_isCopyConstructor = _clang_CXXConstructor_isCopyConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ constructor is the default constructor. int clang_CXXConstructor_isDefaultConstructor(CXCursor C) { @@ -148,12 +143,12 @@ class LibClang { } late final _clang_CXXConstructor_isDefaultConstructorPtr = - _lookup>( - 'clang_CXXConstructor_isDefaultConstructor', - ); + _lookup< + ffi.NativeFunction + >('clang_CXXConstructor_isDefaultConstructor'); late final _clang_CXXConstructor_isDefaultConstructor = _clang_CXXConstructor_isDefaultConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ constructor is a move constructor. int clang_CXXConstructor_isMoveConstructor(CXCursor C) { @@ -161,12 +156,12 @@ class LibClang { } late final _clang_CXXConstructor_isMoveConstructorPtr = - _lookup>( + _lookup>( 'clang_CXXConstructor_isMoveConstructor', ); late final _clang_CXXConstructor_isMoveConstructor = _clang_CXXConstructor_isMoveConstructorPtr - .asFunction(); + .asFunction(); /// Determine if a C++ field is declared 'mutable'. int clang_CXXField_isMutable(CXCursor C) { @@ -174,11 +169,11 @@ class LibClang { } late final _clang_CXXField_isMutablePtr = - _lookup>( + _lookup>( 'clang_CXXField_isMutable', ); late final _clang_CXXField_isMutable = _clang_CXXField_isMutablePtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// declared 'const'. @@ -187,11 +182,11 @@ class LibClang { } late final _clang_CXXMethod_isConstPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isConst', ); late final _clang_CXXMethod_isConst = _clang_CXXMethod_isConstPtr - .asFunction(); + .asFunction(); /// Determine if a C++ method is declared '= default'. int clang_CXXMethod_isDefaulted(CXCursor C) { @@ -199,11 +194,11 @@ class LibClang { } late final _clang_CXXMethod_isDefaultedPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isDefaulted', ); late final _clang_CXXMethod_isDefaulted = _clang_CXXMethod_isDefaultedPtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// pure virtual. @@ -212,11 +207,11 @@ class LibClang { } late final _clang_CXXMethod_isPureVirtualPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isPureVirtual', ); late final _clang_CXXMethod_isPureVirtual = _clang_CXXMethod_isPureVirtualPtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// declared 'static'. @@ -225,11 +220,11 @@ class LibClang { } late final _clang_CXXMethod_isStaticPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isStatic', ); late final _clang_CXXMethod_isStatic = _clang_CXXMethod_isStaticPtr - .asFunction(); + .asFunction(); /// Determine if a C++ member function or member function template is /// explicitly declared 'virtual' or if it overrides a virtual method from @@ -239,11 +234,11 @@ class LibClang { } late final _clang_CXXMethod_isVirtualPtr = - _lookup>( + _lookup>( 'clang_CXXMethod_isVirtual', ); late final _clang_CXXMethod_isVirtual = _clang_CXXMethod_isVirtualPtr - .asFunction(); + .asFunction(); /// Determine if a C++ record is abstract, i.e. whether a class or struct /// has a pure virtual member function. @@ -252,11 +247,11 @@ class LibClang { } late final _clang_CXXRecord_isAbstractPtr = - _lookup>( + _lookup>( 'clang_CXXRecord_isAbstract', ); late final _clang_CXXRecord_isAbstract = _clang_CXXRecord_isAbstractPtr - .asFunction(); + .asFunction(); /// If cursor is a statement declaration tries to evaluate the /// statement and if its variable, tries to evaluate its initializer, @@ -266,11 +261,11 @@ class LibClang { } late final _clang_Cursor_EvaluatePtr = - _lookup>( + _lookup>( 'clang_Cursor_Evaluate', ); late final _clang_Cursor_Evaluate = _clang_Cursor_EvaluatePtr - .asFunction(); + .asFunction(); /// Retrieve the argument cursor of a function or method. /// @@ -282,11 +277,11 @@ class LibClang { } late final _clang_Cursor_getArgumentPtr = - _lookup< - ffi.NativeFunction - >('clang_Cursor_getArgument'); + _lookup>( + 'clang_Cursor_getArgument', + ); late final _clang_Cursor_getArgument = _clang_Cursor_getArgumentPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a documentable entity (e.g., /// declaration), return the associated \paragraph; otherwise return the @@ -296,12 +291,12 @@ class LibClang { } late final _clang_Cursor_getBriefCommentTextPtr = - _lookup>( + _lookup>( 'clang_Cursor_getBriefCommentText', ); late final _clang_Cursor_getBriefCommentText = _clang_Cursor_getBriefCommentTextPtr - .asFunction(); + .asFunction(); /// Retrieve the CXStrings representing the mangled symbols of the C++ /// constructor or destructor at the cursor. @@ -310,11 +305,11 @@ class LibClang { } late final _clang_Cursor_getCXXManglingsPtr = - _lookup Function(CXCursor)>>( + _lookup>( 'clang_Cursor_getCXXManglings', ); late final _clang_Cursor_getCXXManglings = _clang_Cursor_getCXXManglingsPtr - .asFunction Function(CXCursor)>(); + .asFunction(); /// Given a cursor that represents a declaration, return the associated /// comment's source range. The range may include multiple consecutive comments @@ -324,11 +319,11 @@ class LibClang { } late final _clang_Cursor_getCommentRangePtr = - _lookup>( + _lookup>( 'clang_Cursor_getCommentRange', ); late final _clang_Cursor_getCommentRange = _clang_Cursor_getCommentRangePtr - .asFunction(); + .asFunction(); /// Retrieve the CXString representing the mangled name of the cursor. CXString clang_Cursor_getMangling(CXCursor arg0) { @@ -336,11 +331,11 @@ class LibClang { } late final _clang_Cursor_getManglingPtr = - _lookup>( + _lookup>( 'clang_Cursor_getMangling', ); late final _clang_Cursor_getMangling = _clang_Cursor_getManglingPtr - .asFunction(); + .asFunction(); /// Given a CXCursor_ModuleImportDecl cursor, return the associated module. CXModule clang_Cursor_getModule(CXCursor C) { @@ -348,11 +343,11 @@ class LibClang { } late final _clang_Cursor_getModulePtr = - _lookup>( + _lookup>( 'clang_Cursor_getModule', ); late final _clang_Cursor_getModule = _clang_Cursor_getModulePtr - .asFunction(); + .asFunction(); /// Retrieve the number of non-variadic arguments associated with a given /// cursor. @@ -364,11 +359,11 @@ class LibClang { } late final _clang_Cursor_getNumArgumentsPtr = - _lookup>( + _lookup>( 'clang_Cursor_getNumArguments', ); late final _clang_Cursor_getNumArguments = _clang_Cursor_getNumArgumentsPtr - .asFunction(); + .asFunction(); /// Returns the number of template args of a function decl representing a /// template specialization. @@ -389,12 +384,12 @@ class LibClang { } late final _clang_Cursor_getNumTemplateArgumentsPtr = - _lookup>( + _lookup>( 'clang_Cursor_getNumTemplateArguments', ); late final _clang_Cursor_getNumTemplateArguments = _clang_Cursor_getNumTemplateArgumentsPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents an Objective-C method or parameter /// declaration, return the associated Objective-C qualifiers for the return @@ -405,12 +400,12 @@ class LibClang { } late final _clang_Cursor_getObjCDeclQualifiersPtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCDeclQualifiers', ); late final _clang_Cursor_getObjCDeclQualifiers = _clang_Cursor_getObjCDeclQualifiersPtr - .asFunction(); + .asFunction(); /// Retrieve the CXStrings representing the mangled symbols of the ObjC /// class interface or implementation at the cursor. @@ -419,11 +414,11 @@ class LibClang { } late final _clang_Cursor_getObjCManglingsPtr = - _lookup Function(CXCursor)>>( + _lookup>( 'clang_Cursor_getObjCManglings', ); late final _clang_Cursor_getObjCManglings = _clang_Cursor_getObjCManglingsPtr - .asFunction Function(CXCursor)>(); + .asFunction(); /// Given a cursor that represents a property declaration, return the /// associated property attributes. The bits are formed from @@ -435,14 +430,12 @@ class LibClang { } late final _clang_Cursor_getObjCPropertyAttributesPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor C, ffi.UnsignedInt reserved) - > - >('clang_Cursor_getObjCPropertyAttributes'); + _lookup>( + 'clang_Cursor_getObjCPropertyAttributes', + ); late final _clang_Cursor_getObjCPropertyAttributes = _clang_Cursor_getObjCPropertyAttributesPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a property declaration, return the /// name of the method that implements the getter. @@ -451,12 +444,12 @@ class LibClang { } late final _clang_Cursor_getObjCPropertyGetterNamePtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCPropertyGetterName', ); late final _clang_Cursor_getObjCPropertyGetterName = _clang_Cursor_getObjCPropertyGetterNamePtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a property declaration, return the /// name of the method that implements the setter, if any. @@ -465,12 +458,12 @@ class LibClang { } late final _clang_Cursor_getObjCPropertySetterNamePtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCPropertySetterName', ); late final _clang_Cursor_getObjCPropertySetterName = _clang_Cursor_getObjCPropertySetterNamePtr - .asFunction(); + .asFunction(); /// If the cursor points to a selector identifier in an Objective-C /// method or message expression, this returns the selector index. @@ -486,12 +479,12 @@ class LibClang { } late final _clang_Cursor_getObjCSelectorIndexPtr = - _lookup>( + _lookup>( 'clang_Cursor_getObjCSelectorIndex', ); late final _clang_Cursor_getObjCSelectorIndex = _clang_Cursor_getObjCSelectorIndexPtr - .asFunction(); + .asFunction(); /// Return the offset of the field represented by the Cursor. /// @@ -509,11 +502,11 @@ class LibClang { } late final _clang_Cursor_getOffsetOfFieldPtr = - _lookup>( + _lookup>( 'clang_Cursor_getOffsetOfField', ); late final _clang_Cursor_getOffsetOfField = _clang_Cursor_getOffsetOfFieldPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents a declaration, return the associated /// comment text, including comment markers. @@ -522,12 +515,12 @@ class LibClang { } late final _clang_Cursor_getRawCommentTextPtr = - _lookup>( + _lookup>( 'clang_Cursor_getRawCommentText', ); late final _clang_Cursor_getRawCommentText = _clang_Cursor_getRawCommentTextPtr - .asFunction(); + .asFunction(); /// Given a cursor pointing to an Objective-C message or property /// reference, or C++ method call, returns the CXType of the receiver. @@ -536,11 +529,11 @@ class LibClang { } late final _clang_Cursor_getReceiverTypePtr = - _lookup>( + _lookup>( 'clang_Cursor_getReceiverType', ); late final _clang_Cursor_getReceiverType = _clang_Cursor_getReceiverTypePtr - .asFunction(); + .asFunction(); /// Retrieve a range for a piece that forms the cursors spelling name. /// Most of the times there is only one range for the complete spelling but for @@ -560,20 +553,12 @@ class LibClang { } late final _clang_Cursor_getSpellingNameRangePtr = - _lookup< - ffi.NativeFunction< - CXSourceRange Function( - CXCursor, - ffi.UnsignedInt pieceIndex, - ffi.UnsignedInt options, - ) - > - >('clang_Cursor_getSpellingNameRange'); + _lookup>( + 'clang_Cursor_getSpellingNameRange', + ); late final _clang_Cursor_getSpellingNameRange = _clang_Cursor_getSpellingNameRangePtr - .asFunction< - CXSourceRange Function(CXCursor, int pieceIndex, int options) - >(); + .asFunction(); /// Returns the storage class for a function or variable declaration. /// @@ -584,11 +569,11 @@ class LibClang { } late final _clang_Cursor_getStorageClassPtr = - _lookup>( + _lookup>( 'clang_Cursor_getStorageClass', ); late final _clang_Cursor_getStorageClass = _clang_Cursor_getStorageClassPtr - .asFunction(); + .asFunction(); /// Retrieve the kind of the I'th template argument of the CXCursor C. /// @@ -614,14 +599,12 @@ class LibClang { } late final _clang_Cursor_getTemplateArgumentKindPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor C, ffi.UnsignedInt I) - > - >('clang_Cursor_getTemplateArgumentKind'); + _lookup>( + 'clang_Cursor_getTemplateArgumentKind', + ); late final _clang_Cursor_getTemplateArgumentKind = _clang_Cursor_getTemplateArgumentKindPtr - .asFunction(); + .asFunction(); /// Retrieve a CXType representing the type of a TemplateArgument of a /// function decl representing a template specialization. @@ -644,12 +627,12 @@ class LibClang { } late final _clang_Cursor_getTemplateArgumentTypePtr = - _lookup< - ffi.NativeFunction - >('clang_Cursor_getTemplateArgumentType'); + _lookup>( + 'clang_Cursor_getTemplateArgumentType', + ); late final _clang_Cursor_getTemplateArgumentType = _clang_Cursor_getTemplateArgumentTypePtr - .asFunction(); + .asFunction(); /// Retrieve the value of an Integral TemplateArgument (of a function /// decl representing a template specialization) as an unsigned long long. @@ -672,13 +655,11 @@ class LibClang { late final _clang_Cursor_getTemplateArgumentUnsignedValuePtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLongLong Function(CXCursor C, ffi.UnsignedInt I) - > + ffi.NativeFunction >('clang_Cursor_getTemplateArgumentUnsignedValue'); late final _clang_Cursor_getTemplateArgumentUnsignedValue = _clang_Cursor_getTemplateArgumentUnsignedValuePtr - .asFunction(); + .asFunction(); /// Retrieve the value of an Integral TemplateArgument (of a function /// decl representing a template specialization) as a signed long long. @@ -700,12 +681,12 @@ class LibClang { } late final _clang_Cursor_getTemplateArgumentValuePtr = - _lookup< - ffi.NativeFunction - >('clang_Cursor_getTemplateArgumentValue'); + _lookup>( + 'clang_Cursor_getTemplateArgumentValue', + ); late final _clang_Cursor_getTemplateArgumentValue = _clang_Cursor_getTemplateArgumentValuePtr - .asFunction(); + .asFunction(); /// Returns the translation unit that a cursor originated from. CXTranslationUnit clang_Cursor_getTranslationUnit(CXCursor arg0) { @@ -713,12 +694,12 @@ class LibClang { } late final _clang_Cursor_getTranslationUnitPtr = - _lookup>( + _lookup>( 'clang_Cursor_getTranslationUnit', ); late final _clang_Cursor_getTranslationUnit = _clang_Cursor_getTranslationUnitPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor has any attributes. int clang_Cursor_hasAttrs(CXCursor C) { @@ -726,11 +707,11 @@ class LibClang { } late final _clang_Cursor_hasAttrsPtr = - _lookup>( + _lookup>( 'clang_Cursor_hasAttrs', ); late final _clang_Cursor_hasAttrs = _clang_Cursor_hasAttrsPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents an anonymous /// tag or namespace @@ -739,11 +720,11 @@ class LibClang { } late final _clang_Cursor_isAnonymousPtr = - _lookup>( + _lookup>( 'clang_Cursor_isAnonymous', ); late final _clang_Cursor_isAnonymous = _clang_Cursor_isAnonymousPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents an anonymous record /// declaration. @@ -752,12 +733,12 @@ class LibClang { } late final _clang_Cursor_isAnonymousRecordDeclPtr = - _lookup>( + _lookup>( 'clang_Cursor_isAnonymousRecordDecl', ); late final _clang_Cursor_isAnonymousRecordDecl = _clang_Cursor_isAnonymousRecordDeclPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the cursor specifies a Record member that is a /// bitfield. @@ -766,11 +747,11 @@ class LibClang { } late final _clang_Cursor_isBitFieldPtr = - _lookup>( + _lookup>( 'clang_Cursor_isBitField', ); late final _clang_Cursor_isBitField = _clang_Cursor_isBitFieldPtr - .asFunction(); + .asFunction(); /// Given a cursor pointing to a C++ method call or an Objective-C /// message, returns non-zero if the method/message is "dynamic", meaning: @@ -786,11 +767,11 @@ class LibClang { } late final _clang_Cursor_isDynamicCallPtr = - _lookup>( + _lookup>( 'clang_Cursor_isDynamicCall', ); late final _clang_Cursor_isDynamicCall = _clang_Cursor_isDynamicCallPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given cursor points to a symbol marked with /// external_source_symbol attribute. @@ -813,25 +794,11 @@ class LibClang { } late final _clang_Cursor_isExternalSymbolPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor C, - ffi.Pointer language, - ffi.Pointer definedIn, - ffi.Pointer isGenerated, - ) - > - >('clang_Cursor_isExternalSymbol'); + _lookup>( + 'clang_Cursor_isExternalSymbol', + ); late final _clang_Cursor_isExternalSymbol = _clang_Cursor_isExternalSymbolPtr - .asFunction< - int Function( - CXCursor C, - ffi.Pointer language, - ffi.Pointer definedIn, - ffi.Pointer isGenerated, - ) - >(); + .asFunction(); /// Determine whether a CXCursor that is a function declaration, is an /// inline declaration. @@ -840,11 +807,12 @@ class LibClang { } late final _clang_Cursor_isFunctionInlinedPtr = - _lookup>( + _lookup>( 'clang_Cursor_isFunctionInlined', ); late final _clang_Cursor_isFunctionInlined = - _clang_Cursor_isFunctionInlinedPtr.asFunction(); + _clang_Cursor_isFunctionInlinedPtr + .asFunction(); /// Determine whether the given cursor represents an inline namespace /// declaration. @@ -853,11 +821,12 @@ class LibClang { } late final _clang_Cursor_isInlineNamespacePtr = - _lookup>( + _lookup>( 'clang_Cursor_isInlineNamespace', ); late final _clang_Cursor_isInlineNamespace = - _clang_Cursor_isInlineNamespacePtr.asFunction(); + _clang_Cursor_isInlineNamespacePtr + .asFunction(); /// Determine whether a CXCursor that is a macro, is a /// builtin one. @@ -866,11 +835,11 @@ class LibClang { } late final _clang_Cursor_isMacroBuiltinPtr = - _lookup>( + _lookup>( 'clang_Cursor_isMacroBuiltin', ); late final _clang_Cursor_isMacroBuiltin = _clang_Cursor_isMacroBuiltinPtr - .asFunction(); + .asFunction(); /// Determine whether a CXCursor that is a macro, is /// function like. @@ -879,12 +848,12 @@ class LibClang { } late final _clang_Cursor_isMacroFunctionLikePtr = - _lookup>( + _lookup>( 'clang_Cursor_isMacroFunctionLike', ); late final _clang_Cursor_isMacroFunctionLike = _clang_Cursor_isMacroFunctionLikePtr - .asFunction(); + .asFunction(); /// Returns non-zero if \p cursor is null. int clang_Cursor_isNull(CXCursor cursor) { @@ -892,11 +861,11 @@ class LibClang { } late final _clang_Cursor_isNullPtr = - _lookup>( + _lookup>( 'clang_Cursor_isNull', ); late final _clang_Cursor_isNull = _clang_Cursor_isNullPtr - .asFunction(); + .asFunction(); /// Given a cursor that represents an Objective-C method or property /// declaration, return non-zero if the declaration was affected by "\@optional". @@ -906,11 +875,11 @@ class LibClang { } late final _clang_Cursor_isObjCOptionalPtr = - _lookup>( + _lookup>( 'clang_Cursor_isObjCOptional', ); late final _clang_Cursor_isObjCOptional = _clang_Cursor_isObjCOptionalPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given cursor is a variadic function or method. int clang_Cursor_isVariadic(CXCursor C) { @@ -918,11 +887,11 @@ class LibClang { } late final _clang_Cursor_isVariadicPtr = - _lookup>( + _lookup>( 'clang_Cursor_isVariadic', ); late final _clang_Cursor_isVariadic = _clang_Cursor_isVariadicPtr - .asFunction(); + .asFunction(); /// Determine if an enum declaration refers to a scoped enum. int clang_EnumDecl_isScoped(CXCursor C) { @@ -930,11 +899,11 @@ class LibClang { } late final _clang_EnumDecl_isScopedPtr = - _lookup>( + _lookup>( 'clang_EnumDecl_isScoped', ); late final _clang_EnumDecl_isScoped = _clang_EnumDecl_isScopedPtr - .asFunction(); + .asFunction(); /// Disposes the created Eval memory. void clang_EvalResult_dispose(CXEvalResult E) { @@ -942,11 +911,11 @@ class LibClang { } late final _clang_EvalResult_disposePtr = - _lookup>( + _lookup>( 'clang_EvalResult_dispose', ); late final _clang_EvalResult_dispose = _clang_EvalResult_disposePtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as double if the /// kind is double. @@ -955,11 +924,11 @@ class LibClang { } late final _clang_EvalResult_getAsDoublePtr = - _lookup>( + _lookup>( 'clang_EvalResult_getAsDouble', ); late final _clang_EvalResult_getAsDouble = _clang_EvalResult_getAsDoublePtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as integer if the /// kind is Int. @@ -968,11 +937,11 @@ class LibClang { } late final _clang_EvalResult_getAsIntPtr = - _lookup>( + _lookup>( 'clang_EvalResult_getAsInt', ); late final _clang_EvalResult_getAsInt = _clang_EvalResult_getAsIntPtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as a long long integer if the /// kind is Int. This prevents overflows that may happen if the result is @@ -982,12 +951,12 @@ class LibClang { } late final _clang_EvalResult_getAsLongLongPtr = - _lookup>( + _lookup>( 'clang_EvalResult_getAsLongLong', ); late final _clang_EvalResult_getAsLongLong = _clang_EvalResult_getAsLongLongPtr - .asFunction(); + .asFunction(); /// Returns the evaluation result as a constant string if the /// kind is other than Int or float. User must not free this pointer, @@ -998,11 +967,11 @@ class LibClang { } late final _clang_EvalResult_getAsStrPtr = - _lookup< - ffi.NativeFunction Function(CXEvalResult E)> - >('clang_EvalResult_getAsStr'); + _lookup>( + 'clang_EvalResult_getAsStr', + ); late final _clang_EvalResult_getAsStr = _clang_EvalResult_getAsStrPtr - .asFunction Function(CXEvalResult E)>(); + .asFunction(); /// Returns the evaluation result as an unsigned integer if /// the kind is Int and clang_EvalResult_isUnsignedInt is non-zero. @@ -1011,12 +980,12 @@ class LibClang { } late final _clang_EvalResult_getAsUnsignedPtr = - _lookup< - ffi.NativeFunction - >('clang_EvalResult_getAsUnsigned'); + _lookup>( + 'clang_EvalResult_getAsUnsigned', + ); late final _clang_EvalResult_getAsUnsigned = _clang_EvalResult_getAsUnsignedPtr - .asFunction(); + .asFunction(); /// Returns the kind of the evaluated result. CXEvalResultKind clang_EvalResult_getKind(CXEvalResult E) { @@ -1024,11 +993,11 @@ class LibClang { } late final _clang_EvalResult_getKindPtr = - _lookup>( + _lookup>( 'clang_EvalResult_getKind', ); late final _clang_EvalResult_getKind = _clang_EvalResult_getKindPtr - .asFunction(); + .asFunction(); /// Returns a non-zero value if the kind is Int and the evaluation /// result resulted in an unsigned integer. @@ -1037,12 +1006,12 @@ class LibClang { } late final _clang_EvalResult_isUnsignedIntPtr = - _lookup>( + _lookup>( 'clang_EvalResult_isUnsignedInt', ); late final _clang_EvalResult_isUnsignedInt = _clang_EvalResult_isUnsignedIntPtr - .asFunction(); + .asFunction(); /// Returns non-zero if the \c file1 and \c file2 point to the same file, /// or they are both NULL. @@ -1051,11 +1020,11 @@ class LibClang { } late final _clang_File_isEqualPtr = - _lookup>( + _lookup>( 'clang_File_isEqual', ); late final _clang_File_isEqual = _clang_File_isEqualPtr - .asFunction(); + .asFunction(); /// Returns the real path name of \c file. /// @@ -1065,11 +1034,11 @@ class LibClang { } late final _clang_File_tryGetRealPathNamePtr = - _lookup>( + _lookup>( 'clang_File_tryGetRealPathName', ); late final _clang_File_tryGetRealPathName = _clang_File_tryGetRealPathNamePtr - .asFunction(); + .asFunction(); /// An indexing action/session, to be applied to one or multiple /// translation units. @@ -1080,11 +1049,11 @@ class LibClang { } late final _clang_IndexAction_createPtr = - _lookup>( + _lookup>( 'clang_IndexAction_create', ); late final _clang_IndexAction_create = _clang_IndexAction_createPtr - .asFunction(); + .asFunction(); /// Destroy the given index action. /// @@ -1095,11 +1064,11 @@ class LibClang { } late final _clang_IndexAction_disposePtr = - _lookup>( + _lookup>( 'clang_IndexAction_dispose', ); late final _clang_IndexAction_dispose = _clang_IndexAction_disposePtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given source location is in the main file of /// the corresponding translation unit. @@ -1108,11 +1077,11 @@ class LibClang { } late final _clang_Location_isFromMainFilePtr = - _lookup>( + _lookup>( 'clang_Location_isFromMainFile', ); late final _clang_Location_isFromMainFile = _clang_Location_isFromMainFilePtr - .asFunction(); + .asFunction(); /// Returns non-zero if the given source location is in a system header. int clang_Location_isInSystemHeader(CXSourceLocation location) { @@ -1120,12 +1089,12 @@ class LibClang { } late final _clang_Location_isInSystemHeaderPtr = - _lookup>( + _lookup>( 'clang_Location_isInSystemHeader', ); late final _clang_Location_isInSystemHeader = _clang_Location_isInSystemHeaderPtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1135,11 +1104,11 @@ class LibClang { } late final _clang_Module_getASTFilePtr = - _lookup>( + _lookup>( 'clang_Module_getASTFile', ); late final _clang_Module_getASTFile = _clang_Module_getASTFilePtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1149,11 +1118,11 @@ class LibClang { } late final _clang_Module_getFullNamePtr = - _lookup>( + _lookup>( 'clang_Module_getFullName', ); late final _clang_Module_getFullName = _clang_Module_getFullNamePtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1164,11 +1133,11 @@ class LibClang { } late final _clang_Module_getNamePtr = - _lookup>( + _lookup>( 'clang_Module_getName', ); late final _clang_Module_getName = _clang_Module_getNamePtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1181,14 +1150,12 @@ class LibClang { } late final _clang_Module_getNumTopLevelHeadersPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXTranslationUnit, CXModule Module) - > - >('clang_Module_getNumTopLevelHeaders'); + _lookup>( + 'clang_Module_getNumTopLevelHeaders', + ); late final _clang_Module_getNumTopLevelHeaders = _clang_Module_getNumTopLevelHeadersPtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1199,11 +1166,11 @@ class LibClang { } late final _clang_Module_getParentPtr = - _lookup>( + _lookup>( 'clang_Module_getParent', ); late final _clang_Module_getParent = _clang_Module_getParentPtr - .asFunction(); + .asFunction(); /// \param Module a module object. /// @@ -1219,20 +1186,12 @@ class LibClang { } late final _clang_Module_getTopLevelHeaderPtr = - _lookup< - ffi.NativeFunction< - CXFile Function( - CXTranslationUnit, - CXModule Module, - ffi.UnsignedInt Index, - ) - > - >('clang_Module_getTopLevelHeader'); + _lookup>( + 'clang_Module_getTopLevelHeader', + ); late final _clang_Module_getTopLevelHeader = _clang_Module_getTopLevelHeaderPtr - .asFunction< - CXFile Function(CXTranslationUnit, CXModule Module, int Index) - >(); + .asFunction(); /// \param Module a module object. /// @@ -1242,11 +1201,11 @@ class LibClang { } late final _clang_Module_isSystemPtr = - _lookup>( + _lookup>( 'clang_Module_isSystem', ); late final _clang_Module_isSystem = _clang_Module_isSystemPtr - .asFunction(); + .asFunction(); /// Release a printing policy. void clang_PrintingPolicy_dispose(CXPrintingPolicy Policy) { @@ -1254,11 +1213,11 @@ class LibClang { } late final _clang_PrintingPolicy_disposePtr = - _lookup>( + _lookup>( 'clang_PrintingPolicy_dispose', ); late final _clang_PrintingPolicy_dispose = _clang_PrintingPolicy_disposePtr - .asFunction(); + .asFunction(); /// Get a property value for the given printing policy. int clang_PrintingPolicy_getProperty( @@ -1269,17 +1228,12 @@ class LibClang { } late final _clang_PrintingPolicy_getPropertyPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXPrintingPolicy Policy, - ffi.UnsignedInt Property, - ) - > - >('clang_PrintingPolicy_getProperty'); + _lookup>( + 'clang_PrintingPolicy_getProperty', + ); late final _clang_PrintingPolicy_getProperty = _clang_PrintingPolicy_getPropertyPtr - .asFunction(); + .asFunction(); /// Set a property value for the given printing policy. void clang_PrintingPolicy_setProperty( @@ -1291,20 +1245,12 @@ class LibClang { } late final _clang_PrintingPolicy_setPropertyPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXPrintingPolicy Policy, - ffi.UnsignedInt Property, - ffi.UnsignedInt Value, - ) - > - >('clang_PrintingPolicy_setProperty'); + _lookup>( + 'clang_PrintingPolicy_setProperty', + ); late final _clang_PrintingPolicy_setProperty = _clang_PrintingPolicy_setPropertyPtr - .asFunction< - void Function(CXPrintingPolicy Policy, int Property, int Value) - >(); + .asFunction(); /// Returns non-zero if \p range is null. int clang_Range_isNull(CXSourceRange range) { @@ -1312,11 +1258,11 @@ class LibClang { } late final _clang_Range_isNullPtr = - _lookup>( + _lookup>( 'clang_Range_isNull', ); late final _clang_Range_isNull = _clang_Range_isNullPtr - .asFunction(); + .asFunction(); /// Destroy the CXTargetInfo object. void clang_TargetInfo_dispose(CXTargetInfo Info) { @@ -1324,11 +1270,11 @@ class LibClang { } late final _clang_TargetInfo_disposePtr = - _lookup>( + _lookup>( 'clang_TargetInfo_dispose', ); late final _clang_TargetInfo_dispose = _clang_TargetInfo_disposePtr - .asFunction(); + .asFunction(); /// Get the pointer width of the target in bits. /// @@ -1338,12 +1284,12 @@ class LibClang { } late final _clang_TargetInfo_getPointerWidthPtr = - _lookup>( + _lookup>( 'clang_TargetInfo_getPointerWidth', ); late final _clang_TargetInfo_getPointerWidth = _clang_TargetInfo_getPointerWidthPtr - .asFunction(); + .asFunction(); /// Get the normalized target triple as a string. /// @@ -1353,11 +1299,11 @@ class LibClang { } late final _clang_TargetInfo_getTriplePtr = - _lookup>( + _lookup>( 'clang_TargetInfo_getTriple', ); late final _clang_TargetInfo_getTriple = _clang_TargetInfo_getTriplePtr - .asFunction(); + .asFunction(); /// Return the alignment of a type in bytes as per C++[expr.alignof] /// standard. @@ -1374,11 +1320,11 @@ class LibClang { } late final _clang_Type_getAlignOfPtr = - _lookup>( + _lookup>( 'clang_Type_getAlignOf', ); late final _clang_Type_getAlignOf = _clang_Type_getAlignOfPtr - .asFunction(); + .asFunction(); /// Retrieve the ref-qualifier kind of a function or method. /// @@ -1389,11 +1335,11 @@ class LibClang { } late final _clang_Type_getCXXRefQualifierPtr = - _lookup>( + _lookup>( 'clang_Type_getCXXRefQualifier', ); late final _clang_Type_getCXXRefQualifier = _clang_Type_getCXXRefQualifierPtr - .asFunction(); + .asFunction(); /// Return the class type of an member pointer type. /// @@ -1403,11 +1349,11 @@ class LibClang { } late final _clang_Type_getClassTypePtr = - _lookup>( + _lookup>( 'clang_Type_getClassType', ); late final _clang_Type_getClassType = _clang_Type_getClassTypePtr - .asFunction(); + .asFunction(); /// Return the type that was modified by this attributed type. /// @@ -1417,11 +1363,11 @@ class LibClang { } late final _clang_Type_getModifiedTypePtr = - _lookup>( + _lookup>( 'clang_Type_getModifiedType', ); late final _clang_Type_getModifiedType = _clang_Type_getModifiedTypePtr - .asFunction(); + .asFunction(); /// Retrieve the type named by the qualified-id. /// @@ -1431,11 +1377,11 @@ class LibClang { } late final _clang_Type_getNamedTypePtr = - _lookup>( + _lookup>( 'clang_Type_getNamedType', ); late final _clang_Type_getNamedType = _clang_Type_getNamedTypePtr - .asFunction(); + .asFunction(); /// Retrieve the nullability kind of a pointer type. CXTypeNullabilityKind clang_Type_getNullability(CXType T) { @@ -1443,11 +1389,11 @@ class LibClang { } late final _clang_Type_getNullabilityPtr = - _lookup>( + _lookup>( 'clang_Type_getNullability', ); late final _clang_Type_getNullability = _clang_Type_getNullabilityPtr - .asFunction(); + .asFunction(); /// Retrieve the number of protocol references associated with an ObjC object/id. /// @@ -1457,12 +1403,12 @@ class LibClang { } late final _clang_Type_getNumObjCProtocolRefsPtr = - _lookup>( + _lookup>( 'clang_Type_getNumObjCProtocolRefs', ); late final _clang_Type_getNumObjCProtocolRefs = _clang_Type_getNumObjCProtocolRefsPtr - .asFunction(); + .asFunction(); /// Retreive the number of type arguments associated with an ObjC object. /// @@ -1472,11 +1418,11 @@ class LibClang { } late final _clang_Type_getNumObjCTypeArgsPtr = - _lookup>( + _lookup>( 'clang_Type_getNumObjCTypeArgs', ); late final _clang_Type_getNumObjCTypeArgs = _clang_Type_getNumObjCTypeArgsPtr - .asFunction(); + .asFunction(); /// Returns the number of template arguments for given template /// specialization, or -1 if type \c T is not a template specialization. @@ -1485,12 +1431,12 @@ class LibClang { } late final _clang_Type_getNumTemplateArgumentsPtr = - _lookup>( + _lookup>( 'clang_Type_getNumTemplateArguments', ); late final _clang_Type_getNumTemplateArguments = _clang_Type_getNumTemplateArgumentsPtr - .asFunction(); + .asFunction(); /// Returns the Objective-C type encoding for the specified CXType. CXString clang_Type_getObjCEncoding(CXType type) { @@ -1498,11 +1444,11 @@ class LibClang { } late final _clang_Type_getObjCEncodingPtr = - _lookup>( + _lookup>( 'clang_Type_getObjCEncoding', ); late final _clang_Type_getObjCEncoding = _clang_Type_getObjCEncodingPtr - .asFunction(); + .asFunction(); /// Retrieves the base type of the ObjCObjectType. /// @@ -1512,12 +1458,12 @@ class LibClang { } late final _clang_Type_getObjCObjectBaseTypePtr = - _lookup>( + _lookup>( 'clang_Type_getObjCObjectBaseType', ); late final _clang_Type_getObjCObjectBaseType = _clang_Type_getObjCObjectBaseTypePtr - .asFunction(); + .asFunction(); /// Retrieve the decl for a protocol reference for an ObjC object/id. /// @@ -1528,12 +1474,12 @@ class LibClang { } late final _clang_Type_getObjCProtocolDeclPtr = - _lookup< - ffi.NativeFunction - >('clang_Type_getObjCProtocolDecl'); + _lookup>( + 'clang_Type_getObjCProtocolDecl', + ); late final _clang_Type_getObjCProtocolDecl = _clang_Type_getObjCProtocolDeclPtr - .asFunction(); + .asFunction(); /// Retrieve a type argument associated with an ObjC object. /// @@ -1544,11 +1490,11 @@ class LibClang { } late final _clang_Type_getObjCTypeArgPtr = - _lookup>( + _lookup>( 'clang_Type_getObjCTypeArg', ); late final _clang_Type_getObjCTypeArg = _clang_Type_getObjCTypeArgPtr - .asFunction(); + .asFunction(); /// Return the offset of a field named S in a record of type T in bits /// as it would be returned by __offsetof__ as per C++11[18.2p4] @@ -1566,13 +1512,11 @@ class LibClang { } late final _clang_Type_getOffsetOfPtr = - _lookup< - ffi.NativeFunction< - ffi.LongLong Function(CXType T, ffi.Pointer S) - > - >('clang_Type_getOffsetOf'); + _lookup>( + 'clang_Type_getOffsetOf', + ); late final _clang_Type_getOffsetOf = _clang_Type_getOffsetOfPtr - .asFunction S)>(); + .asFunction(); /// Return the size of a type in bytes as per C++[expr.sizeof] standard. /// @@ -1586,11 +1530,11 @@ class LibClang { } late final _clang_Type_getSizeOfPtr = - _lookup>( + _lookup>( 'clang_Type_getSizeOf', ); late final _clang_Type_getSizeOf = _clang_Type_getSizeOfPtr - .asFunction(); + .asFunction(); /// Returns the type template argument of a template class specialization /// at given index. @@ -1602,12 +1546,12 @@ class LibClang { } late final _clang_Type_getTemplateArgumentAsTypePtr = - _lookup>( + _lookup>( 'clang_Type_getTemplateArgumentAsType', ); late final _clang_Type_getTemplateArgumentAsType = _clang_Type_getTemplateArgumentAsTypePtr - .asFunction(); + .asFunction(); /// Determine if a typedef is 'transparent' tag. /// @@ -1620,12 +1564,12 @@ class LibClang { } late final _clang_Type_isTransparentTagTypedefPtr = - _lookup>( + _lookup>( 'clang_Type_isTransparentTagTypedef', ); late final _clang_Type_isTransparentTagTypedef = _clang_Type_isTransparentTagTypedefPtr - .asFunction(); + .asFunction(); /// Visit the fields of a particular type. /// @@ -1653,19 +1597,11 @@ class LibClang { } late final _clang_Type_visitFieldsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXType T, - CXFieldVisitor visitor, - CXClientData client_data, - ) - > - >('clang_Type_visitFields'); + _lookup>( + 'clang_Type_visitFields', + ); late final _clang_Type_visitFields = _clang_Type_visitFieldsPtr - .asFunction< - int Function(CXType T, CXFieldVisitor visitor, CXClientData client_data) - >(); + .asFunction(); /// Annotate the given set of tokens by providing cursors for each token /// that can be mapped to a specific entity within the abstract syntax tree. @@ -1705,25 +1641,11 @@ class LibClang { } late final _clang_annotateTokensPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit TU, - ffi.Pointer Tokens, - ffi.UnsignedInt NumTokens, - ffi.Pointer Cursors, - ) - > - >('clang_annotateTokens'); + _lookup>( + 'clang_annotateTokens', + ); late final _clang_annotateTokens = _clang_annotateTokensPtr - .asFunction< - void Function( - CXTranslationUnit TU, - ffi.Pointer Tokens, - int NumTokens, - ffi.Pointer Cursors, - ) - >(); + .asFunction(); /// Perform code completion at a given location in a translation unit. /// @@ -1812,31 +1734,11 @@ class LibClang { } late final _clang_codeCompleteAtPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CXTranslationUnit TU, - ffi.Pointer complete_filename, - ffi.UnsignedInt complete_line, - ffi.UnsignedInt complete_column, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ) - > - >('clang_codeCompleteAt'); + _lookup>( + 'clang_codeCompleteAt', + ); late final _clang_codeCompleteAt = _clang_codeCompleteAtPtr - .asFunction< - ffi.Pointer Function( - CXTranslationUnit TU, - ffi.Pointer complete_filename, - int complete_line, - int complete_column, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ) - >(); + .asFunction(); /// Returns the cursor kind for the container for the current code /// completion context. The container is only guaranteed to be set for @@ -1862,22 +1764,12 @@ class LibClang { } late final _clang_codeCompleteGetContainerKindPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer Results, - ffi.Pointer IsIncomplete, - ) - > - >('clang_codeCompleteGetContainerKind'); + _lookup>( + 'clang_codeCompleteGetContainerKind', + ); late final _clang_codeCompleteGetContainerKind = _clang_codeCompleteGetContainerKindPtr - .asFunction< - int Function( - ffi.Pointer Results, - ffi.Pointer IsIncomplete, - ) - >(); + .asFunction(); /// Returns the USR for the container for the current code completion /// context. If there is not a container for the current context, this @@ -1893,16 +1785,12 @@ class LibClang { } late final _clang_codeCompleteGetContainerUSRPtr = - _lookup< - ffi.NativeFunction< - CXString Function(ffi.Pointer Results) - > - >('clang_codeCompleteGetContainerUSR'); + _lookup>( + 'clang_codeCompleteGetContainerUSR', + ); late final _clang_codeCompleteGetContainerUSR = _clang_codeCompleteGetContainerUSRPtr - .asFunction< - CXString Function(ffi.Pointer Results) - >(); + .asFunction(); /// Determines what completions are appropriate for the context /// the given code completion. @@ -1918,15 +1806,11 @@ class LibClang { } late final _clang_codeCompleteGetContextsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedLongLong Function( - ffi.Pointer Results, - ) - > - >('clang_codeCompleteGetContexts'); + _lookup>( + 'clang_codeCompleteGetContexts', + ); late final _clang_codeCompleteGetContexts = _clang_codeCompleteGetContextsPtr - .asFunction Results)>(); + .asFunction(); /// Retrieve a diagnostic associated with the given code completion. /// @@ -1943,22 +1827,12 @@ class LibClang { } late final _clang_codeCompleteGetDiagnosticPtr = - _lookup< - ffi.NativeFunction< - CXDiagnostic Function( - ffi.Pointer Results, - ffi.UnsignedInt Index, - ) - > - >('clang_codeCompleteGetDiagnostic'); + _lookup>( + 'clang_codeCompleteGetDiagnostic', + ); late final _clang_codeCompleteGetDiagnostic = _clang_codeCompleteGetDiagnosticPtr - .asFunction< - CXDiagnostic Function( - ffi.Pointer Results, - int Index, - ) - >(); + .asFunction(); /// Determine the number of diagnostics produced prior to the /// location where code completion was performed. @@ -1969,16 +1843,12 @@ class LibClang { } late final _clang_codeCompleteGetNumDiagnosticsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer Results) - > - >('clang_codeCompleteGetNumDiagnostics'); + _lookup>( + 'clang_codeCompleteGetNumDiagnostics', + ); late final _clang_codeCompleteGetNumDiagnostics = _clang_codeCompleteGetNumDiagnosticsPtr - .asFunction< - int Function(ffi.Pointer Results) - >(); + .asFunction(); /// Returns the currently-entered selector for an Objective-C message /// send, formatted like "initWithFoo:bar:". Only guaranteed to return a @@ -1996,16 +1866,12 @@ class LibClang { } late final _clang_codeCompleteGetObjCSelectorPtr = - _lookup< - ffi.NativeFunction< - CXString Function(ffi.Pointer Results) - > - >('clang_codeCompleteGetObjCSelector'); + _lookup>( + 'clang_codeCompleteGetObjCSelector', + ); late final _clang_codeCompleteGetObjCSelector = _clang_codeCompleteGetObjCSelectorPtr - .asFunction< - CXString Function(ffi.Pointer Results) - >(); + .asFunction(); /// Construct a USR for a specified Objective-C category. CXString clang_constructUSR_ObjCCategory( @@ -2016,22 +1882,12 @@ class LibClang { } late final _clang_constructUSR_ObjCCategoryPtr = - _lookup< - ffi.NativeFunction< - CXString Function( - ffi.Pointer class_name, - ffi.Pointer category_name, - ) - > - >('clang_constructUSR_ObjCCategory'); + _lookup>( + 'clang_constructUSR_ObjCCategory', + ); late final _clang_constructUSR_ObjCCategory = _clang_constructUSR_ObjCCategoryPtr - .asFunction< - CXString Function( - ffi.Pointer class_name, - ffi.Pointer category_name, - ) - >(); + .asFunction(); /// Construct a USR for a specified Objective-C class. CXString clang_constructUSR_ObjCClass(ffi.Pointer class_name) { @@ -2039,11 +1895,11 @@ class LibClang { } late final _clang_constructUSR_ObjCClassPtr = - _lookup< - ffi.NativeFunction class_name)> - >('clang_constructUSR_ObjCClass'); + _lookup>( + 'clang_constructUSR_ObjCClass', + ); late final _clang_constructUSR_ObjCClass = _clang_constructUSR_ObjCClassPtr - .asFunction class_name)>(); + .asFunction(); /// Construct a USR for a specified Objective-C instance variable and /// the USR for its containing class. @@ -2055,15 +1911,11 @@ class LibClang { } late final _clang_constructUSR_ObjCIvarPtr = - _lookup< - ffi.NativeFunction< - CXString Function(ffi.Pointer name, CXString classUSR) - > - >('clang_constructUSR_ObjCIvar'); + _lookup>( + 'clang_constructUSR_ObjCIvar', + ); late final _clang_constructUSR_ObjCIvar = _clang_constructUSR_ObjCIvarPtr - .asFunction< - CXString Function(ffi.Pointer name, CXString classUSR) - >(); + .asFunction(); /// Construct a USR for a specified Objective-C method and /// the USR for its containing class. @@ -2076,23 +1928,11 @@ class LibClang { } late final _clang_constructUSR_ObjCMethodPtr = - _lookup< - ffi.NativeFunction< - CXString Function( - ffi.Pointer name, - ffi.UnsignedInt isInstanceMethod, - CXString classUSR, - ) - > - >('clang_constructUSR_ObjCMethod'); + _lookup>( + 'clang_constructUSR_ObjCMethod', + ); late final _clang_constructUSR_ObjCMethod = _clang_constructUSR_ObjCMethodPtr - .asFunction< - CXString Function( - ffi.Pointer name, - int isInstanceMethod, - CXString classUSR, - ) - >(); + .asFunction(); /// Construct a USR for a specified Objective-C property and the USR /// for its containing class. @@ -2104,16 +1944,12 @@ class LibClang { } late final _clang_constructUSR_ObjCPropertyPtr = - _lookup< - ffi.NativeFunction< - CXString Function(ffi.Pointer property, CXString classUSR) - > - >('clang_constructUSR_ObjCProperty'); + _lookup>( + 'clang_constructUSR_ObjCProperty', + ); late final _clang_constructUSR_ObjCProperty = _clang_constructUSR_ObjCPropertyPtr - .asFunction< - CXString Function(ffi.Pointer property, CXString classUSR) - >(); + .asFunction(); /// Construct a USR for a specified Objective-C protocol. CXString clang_constructUSR_ObjCProtocol( @@ -2123,14 +1959,12 @@ class LibClang { } late final _clang_constructUSR_ObjCProtocolPtr = - _lookup< - ffi.NativeFunction< - CXString Function(ffi.Pointer protocol_name) - > - >('clang_constructUSR_ObjCProtocol'); + _lookup>( + 'clang_constructUSR_ObjCProtocol', + ); late final _clang_constructUSR_ObjCProtocol = _clang_constructUSR_ObjCProtocolPtr - .asFunction protocol_name)>(); + .asFunction(); /// Creates an empty CXCursorSet. CXCursorSet clang_createCXCursorSet() { @@ -2138,11 +1972,11 @@ class LibClang { } late final _clang_createCXCursorSetPtr = - _lookup>( + _lookup>( 'clang_createCXCursorSet', ); late final _clang_createCXCursorSet = _clang_createCXCursorSetPtr - .asFunction(); + .asFunction(); /// Provides a shared context for creating translation units. /// @@ -2190,18 +2024,9 @@ class LibClang { } late final _clang_createIndexPtr = - _lookup< - ffi.NativeFunction< - CXIndex Function( - ffi.Int excludeDeclarationsFromPCH, - ffi.Int displayDiagnostics, - ) - > - >('clang_createIndex'); + _lookup>('clang_createIndex'); late final _clang_createIndex = _clang_createIndexPtr - .asFunction< - CXIndex Function(int excludeDeclarationsFromPCH, int displayDiagnostics) - >(); + .asFunction(); /// Same as \c clang_createTranslationUnit2, but returns /// the \c CXTranslationUnit instead of an error code. In case of an error this @@ -2215,21 +2040,11 @@ class LibClang { } late final _clang_createTranslationUnitPtr = - _lookup< - ffi.NativeFunction< - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer ast_filename, - ) - > - >('clang_createTranslationUnit'); + _lookup>( + 'clang_createTranslationUnit', + ); late final _clang_createTranslationUnit = _clang_createTranslationUnitPtr - .asFunction< - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer ast_filename, - ) - >(); + .asFunction(); /// Create a translation unit from an AST file (\c -emit-ast). /// @@ -2248,23 +2063,11 @@ class LibClang { } late final _clang_createTranslationUnit2Ptr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXIndex CIdx, - ffi.Pointer ast_filename, - ffi.Pointer out_TU, - ) - > - >('clang_createTranslationUnit2'); + _lookup>( + 'clang_createTranslationUnit2', + ); late final _clang_createTranslationUnit2 = _clang_createTranslationUnit2Ptr - .asFunction< - int Function( - CXIndex CIdx, - ffi.Pointer ast_filename, - ffi.Pointer out_TU, - ) - >(); + .asFunction(); /// Return the CXTranslationUnit for a given source file and the provided /// command line arguments one would pass to the compiler. @@ -2324,29 +2127,11 @@ class LibClang { late final _clang_createTranslationUnitFromSourceFilePtr = _lookup< - ffi.NativeFunction< - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Int num_clang_command_line_args, - ffi.Pointer> clang_command_line_args, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer unsaved_files, - ) - > + ffi.NativeFunction >('clang_createTranslationUnitFromSourceFile'); late final _clang_createTranslationUnitFromSourceFile = _clang_createTranslationUnitFromSourceFilePtr - .asFunction< - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer source_filename, - int num_clang_command_line_args, - ffi.Pointer> clang_command_line_args, - int num_unsaved_files, - ffi.Pointer unsaved_files, - ) - >(); + .asFunction(); /// Returns a default set of code-completion options that can be /// passed to\c clang_codeCompleteAt(). @@ -2355,11 +2140,12 @@ class LibClang { } late final _clang_defaultCodeCompleteOptionsPtr = - _lookup>( + _lookup>( 'clang_defaultCodeCompleteOptions', ); late final _clang_defaultCodeCompleteOptions = - _clang_defaultCodeCompleteOptionsPtr.asFunction(); + _clang_defaultCodeCompleteOptionsPtr + .asFunction(); /// Retrieve the set of display options most similar to the /// default behavior of the clang compiler. @@ -2371,11 +2157,12 @@ class LibClang { } late final _clang_defaultDiagnosticDisplayOptionsPtr = - _lookup>( + _lookup>( 'clang_defaultDiagnosticDisplayOptions', ); late final _clang_defaultDiagnosticDisplayOptions = - _clang_defaultDiagnosticDisplayOptionsPtr.asFunction(); + _clang_defaultDiagnosticDisplayOptionsPtr + .asFunction(); /// Returns the set of flags that is suitable for parsing a translation /// unit that is being edited. @@ -2392,12 +2179,12 @@ class LibClang { } late final _clang_defaultEditingTranslationUnitOptionsPtr = - _lookup>( - 'clang_defaultEditingTranslationUnitOptions', - ); + _lookup< + ffi.NativeFunction + >('clang_defaultEditingTranslationUnitOptions'); late final _clang_defaultEditingTranslationUnitOptions = _clang_defaultEditingTranslationUnitOptionsPtr - .asFunction(); + .asFunction(); /// Returns the set of flags that is suitable for reparsing a translation /// unit. @@ -2412,11 +2199,11 @@ class LibClang { } late final _clang_defaultReparseOptionsPtr = - _lookup< - ffi.NativeFunction - >('clang_defaultReparseOptions'); + _lookup>( + 'clang_defaultReparseOptions', + ); late final _clang_defaultReparseOptions = _clang_defaultReparseOptionsPtr - .asFunction(); + .asFunction(); /// Returns the set of flags that is suitable for saving a translation /// unit. @@ -2430,11 +2217,11 @@ class LibClang { } late final _clang_defaultSaveOptionsPtr = - _lookup< - ffi.NativeFunction - >('clang_defaultSaveOptions'); + _lookup>( + 'clang_defaultSaveOptions', + ); late final _clang_defaultSaveOptions = _clang_defaultSaveOptionsPtr - .asFunction(); + .asFunction(); /// Disposes a CXCursorSet and releases its associated memory. void clang_disposeCXCursorSet(CXCursorSet cset) { @@ -2442,11 +2229,11 @@ class LibClang { } late final _clang_disposeCXCursorSetPtr = - _lookup>( + _lookup>( 'clang_disposeCXCursorSet', ); late final _clang_disposeCXCursorSet = _clang_disposeCXCursorSetPtr - .asFunction(); + .asFunction(); /// Free the memory associated with a \c CXPlatformAvailability structure. void clang_disposeCXPlatformAvailability( @@ -2456,28 +2243,24 @@ class LibClang { } late final _clang_disposeCXPlatformAvailabilityPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer availability) - > - >('clang_disposeCXPlatformAvailability'); + _lookup>( + 'clang_disposeCXPlatformAvailability', + ); late final _clang_disposeCXPlatformAvailability = _clang_disposeCXPlatformAvailabilityPtr - .asFunction< - void Function(ffi.Pointer availability) - >(); + .asFunction(); void clang_disposeCXTUResourceUsage(CXTUResourceUsage usage) { return _clang_disposeCXTUResourceUsage(usage); } late final _clang_disposeCXTUResourceUsagePtr = - _lookup>( + _lookup>( 'clang_disposeCXTUResourceUsage', ); late final _clang_disposeCXTUResourceUsage = _clang_disposeCXTUResourceUsagePtr - .asFunction(); + .asFunction(); /// Free the given set of code-completion results. void clang_disposeCodeCompleteResults( @@ -2487,16 +2270,12 @@ class LibClang { } late final _clang_disposeCodeCompleteResultsPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer Results) - > - >('clang_disposeCodeCompleteResults'); + _lookup>( + 'clang_disposeCodeCompleteResults', + ); late final _clang_disposeCodeCompleteResults = _clang_disposeCodeCompleteResultsPtr - .asFunction< - void Function(ffi.Pointer Results) - >(); + .asFunction(); /// Destroy a diagnostic. void clang_disposeDiagnostic(CXDiagnostic Diagnostic) { @@ -2504,11 +2283,11 @@ class LibClang { } late final _clang_disposeDiagnosticPtr = - _lookup>( + _lookup>( 'clang_disposeDiagnostic', ); late final _clang_disposeDiagnostic = _clang_disposeDiagnosticPtr - .asFunction(); + .asFunction(); /// Release a CXDiagnosticSet and all of its contained diagnostics. void clang_disposeDiagnosticSet(CXDiagnosticSet Diags) { @@ -2516,11 +2295,11 @@ class LibClang { } late final _clang_disposeDiagnosticSetPtr = - _lookup>( + _lookup>( 'clang_disposeDiagnosticSet', ); late final _clang_disposeDiagnosticSet = _clang_disposeDiagnosticSetPtr - .asFunction(); + .asFunction(); /// Destroy the given index. /// @@ -2531,11 +2310,11 @@ class LibClang { } late final _clang_disposeIndexPtr = - _lookup>( + _lookup>( 'clang_disposeIndex', ); late final _clang_disposeIndex = _clang_disposeIndexPtr - .asFunction(); + .asFunction(); /// Free the set of overridden cursors returned by \c /// clang_getOverriddenCursors(). @@ -2544,12 +2323,12 @@ class LibClang { } late final _clang_disposeOverriddenCursorsPtr = - _lookup< - ffi.NativeFunction overridden)> - >('clang_disposeOverriddenCursors'); + _lookup>( + 'clang_disposeOverriddenCursors', + ); late final _clang_disposeOverriddenCursors = _clang_disposeOverriddenCursorsPtr - .asFunction overridden)>(); + .asFunction(); /// Destroy the given \c CXSourceRangeList. void clang_disposeSourceRangeList(ffi.Pointer ranges) { @@ -2557,13 +2336,11 @@ class LibClang { } late final _clang_disposeSourceRangeListPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer ranges) - > - >('clang_disposeSourceRangeList'); + _lookup>( + 'clang_disposeSourceRangeList', + ); late final _clang_disposeSourceRangeList = _clang_disposeSourceRangeListPtr - .asFunction ranges)>(); + .asFunction(); /// Free the given string. void clang_disposeString(CXString string) { @@ -2571,11 +2348,11 @@ class LibClang { } late final _clang_disposeStringPtr = - _lookup>( + _lookup>( 'clang_disposeString', ); late final _clang_disposeString = _clang_disposeStringPtr - .asFunction(); + .asFunction(); /// Free the given string set. void clang_disposeStringSet(ffi.Pointer set) { @@ -2583,11 +2360,11 @@ class LibClang { } late final _clang_disposeStringSetPtr = - _lookup< - ffi.NativeFunction set)> - >('clang_disposeStringSet'); + _lookup>( + 'clang_disposeStringSet', + ); late final _clang_disposeStringSet = _clang_disposeStringSetPtr - .asFunction set)>(); + .asFunction(); /// Free the given set of tokens. void clang_disposeTokens( @@ -2599,23 +2376,11 @@ class LibClang { } late final _clang_disposeTokensPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit TU, - ffi.Pointer Tokens, - ffi.UnsignedInt NumTokens, - ) - > - >('clang_disposeTokens'); + _lookup>( + 'clang_disposeTokens', + ); late final _clang_disposeTokens = _clang_disposeTokensPtr - .asFunction< - void Function( - CXTranslationUnit TU, - ffi.Pointer Tokens, - int NumTokens, - ) - >(); + .asFunction(); /// Destroy the specified CXTranslationUnit object. void clang_disposeTranslationUnit(CXTranslationUnit arg0) { @@ -2623,22 +2388,22 @@ class LibClang { } late final _clang_disposeTranslationUnitPtr = - _lookup>( + _lookup>( 'clang_disposeTranslationUnit', ); late final _clang_disposeTranslationUnit = _clang_disposeTranslationUnitPtr - .asFunction(); + .asFunction(); void clang_enableStackTraces() { return _clang_enableStackTraces(); } late final _clang_enableStackTracesPtr = - _lookup>( + _lookup>( 'clang_enableStackTraces', ); late final _clang_enableStackTraces = _clang_enableStackTracesPtr - .asFunction(); + .asFunction(); /// Determine whether two cursors are equivalent. int clang_equalCursors(CXCursor arg0, CXCursor arg1) { @@ -2646,11 +2411,11 @@ class LibClang { } late final _clang_equalCursorsPtr = - _lookup>( + _lookup>( 'clang_equalCursors', ); late final _clang_equalCursors = _clang_equalCursorsPtr - .asFunction(); + .asFunction(); /// Determine whether two source locations, which must refer into /// the same translation unit, refer to exactly the same point in the source @@ -2663,13 +2428,11 @@ class LibClang { } late final _clang_equalLocationsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXSourceLocation loc1, CXSourceLocation loc2) - > - >('clang_equalLocations'); + _lookup>( + 'clang_equalLocations', + ); late final _clang_equalLocations = _clang_equalLocationsPtr - .asFunction(); + .asFunction(); /// Determine whether two ranges are equivalent. /// @@ -2679,13 +2442,9 @@ class LibClang { } late final _clang_equalRangesPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXSourceRange range1, CXSourceRange range2) - > - >('clang_equalRanges'); + _lookup>('clang_equalRanges'); late final _clang_equalRanges = _clang_equalRangesPtr - .asFunction(); + .asFunction(); /// Determine whether two CXTypes represent the same type. /// @@ -2696,11 +2455,9 @@ class LibClang { } late final _clang_equalTypesPtr = - _lookup>( - 'clang_equalTypes', - ); + _lookup>('clang_equalTypes'); late final _clang_equalTypes = _clang_equalTypesPtr - .asFunction(); + .asFunction(); void clang_executeOnThread( ffi.Pointer)>> @@ -2712,29 +2469,11 @@ class LibClang { } late final _clang_executeOnThreadPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer< - ffi.NativeFunction)> - > - fn, - ffi.Pointer user_data, - ffi.UnsignedInt stack_size, - ) - > - >('clang_executeOnThread'); + _lookup>( + 'clang_executeOnThread', + ); late final _clang_executeOnThread = _clang_executeOnThreadPtr - .asFunction< - void Function( - ffi.Pointer< - ffi.NativeFunction)> - > - fn, - ffi.Pointer user_data, - int stack_size, - ) - >(); + .asFunction(); /// Find #import/#include directives in a specific file. /// @@ -2755,23 +2494,11 @@ class LibClang { } late final _clang_findIncludesInFilePtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXTranslationUnit TU, - CXFile file, - CXCursorAndRangeVisitor visitor, - ) - > - >('clang_findIncludesInFile'); + _lookup>( + 'clang_findIncludesInFile', + ); late final _clang_findIncludesInFile = _clang_findIncludesInFilePtr - .asFunction< - int Function( - CXTranslationUnit TU, - CXFile file, - CXCursorAndRangeVisitor visitor, - ) - >(); + .asFunction(); /// Find references of a declaration in a specific file. /// @@ -2796,23 +2523,11 @@ class LibClang { } late final _clang_findReferencesInFilePtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor cursor, - CXFile file, - CXCursorAndRangeVisitor visitor, - ) - > - >('clang_findReferencesInFile'); + _lookup>( + 'clang_findReferencesInFile', + ); late final _clang_findReferencesInFile = _clang_findReferencesInFilePtr - .asFunction< - int Function( - CXCursor cursor, - CXFile file, - CXCursorAndRangeVisitor visitor, - ) - >(); + .asFunction(); /// Format the given diagnostic in a manner that is suitable for display. /// @@ -2832,13 +2547,11 @@ class LibClang { } late final _clang_formatDiagnosticPtr = - _lookup< - ffi.NativeFunction< - CXString Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Options) - > - >('clang_formatDiagnostic'); + _lookup>( + 'clang_formatDiagnostic', + ); late final _clang_formatDiagnostic = _clang_formatDiagnosticPtr - .asFunction(); + .asFunction(); /// Returns the address space of the given type. int clang_getAddressSpace(CXType T) { @@ -2846,11 +2559,11 @@ class LibClang { } late final _clang_getAddressSpacePtr = - _lookup>( + _lookup>( 'clang_getAddressSpace', ); late final _clang_getAddressSpace = _clang_getAddressSpacePtr - .asFunction(); + .asFunction(); /// Retrieve all ranges from all files that were skipped by the /// preprocessor. @@ -2864,15 +2577,11 @@ class LibClang { } late final _clang_getAllSkippedRangesPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit tu) - > - >('clang_getAllSkippedRanges'); + _lookup>( + 'clang_getAllSkippedRanges', + ); late final _clang_getAllSkippedRanges = _clang_getAllSkippedRangesPtr - .asFunction< - ffi.Pointer Function(CXTranslationUnit tu) - >(); + .asFunction(); /// Retrieve the type of a parameter of a function type. /// @@ -2883,11 +2592,9 @@ class LibClang { } late final _clang_getArgTypePtr = - _lookup>( - 'clang_getArgType', - ); + _lookup>('clang_getArgType'); late final _clang_getArgType = _clang_getArgTypePtr - .asFunction(); + .asFunction(); /// Return the element type of an array type. /// @@ -2897,11 +2604,11 @@ class LibClang { } late final _clang_getArrayElementTypePtr = - _lookup>( + _lookup>( 'clang_getArrayElementType', ); late final _clang_getArrayElementType = _clang_getArrayElementTypePtr - .asFunction(); + .asFunction(); /// Return the array size of a constant array. /// @@ -2911,11 +2618,11 @@ class LibClang { } late final _clang_getArraySizePtr = - _lookup>( + _lookup>( 'clang_getArraySize', ); late final _clang_getArraySize = _clang_getArraySizePtr - .asFunction(); + .asFunction(); /// Retrieve the character data associated with the given string. ffi.Pointer clang_getCString(CXString string) { @@ -2923,11 +2630,9 @@ class LibClang { } late final _clang_getCStringPtr = - _lookup< - ffi.NativeFunction Function(CXString string)> - >('clang_getCString'); + _lookup>('clang_getCString'); late final _clang_getCString = _clang_getCStringPtr - .asFunction Function(CXString string)>(); + .asFunction(); /// Return the memory usage of a translation unit. This object /// should be released with clang_disposeCXTUResourceUsage(). @@ -2936,11 +2641,11 @@ class LibClang { } late final _clang_getCXTUResourceUsagePtr = - _lookup< - ffi.NativeFunction - >('clang_getCXTUResourceUsage'); + _lookup>( + 'clang_getCXTUResourceUsage', + ); late final _clang_getCXTUResourceUsage = _clang_getCXTUResourceUsagePtr - .asFunction(); + .asFunction(); /// Returns the access control level for the referenced object. /// @@ -2952,11 +2657,11 @@ class LibClang { } late final _clang_getCXXAccessSpecifierPtr = - _lookup>( + _lookup>( 'clang_getCXXAccessSpecifier', ); late final _clang_getCXXAccessSpecifier = _clang_getCXXAccessSpecifierPtr - .asFunction(); + .asFunction(); /// Retrieve the canonical cursor corresponding to the given cursor. /// @@ -2985,11 +2690,11 @@ class LibClang { } late final _clang_getCanonicalCursorPtr = - _lookup>( + _lookup>( 'clang_getCanonicalCursor', ); late final _clang_getCanonicalCursor = _clang_getCanonicalCursorPtr - .asFunction(); + .asFunction(); /// Return the canonical type for a CXType. /// @@ -3002,11 +2707,11 @@ class LibClang { } late final _clang_getCanonicalTypePtr = - _lookup>( + _lookup>( 'clang_getCanonicalType', ); late final _clang_getCanonicalType = _clang_getCanonicalTypePtr - .asFunction(); + .asFunction(); /// Retrieve the child diagnostics of a CXDiagnostic. /// @@ -3017,11 +2722,11 @@ class LibClang { } late final _clang_getChildDiagnosticsPtr = - _lookup>( + _lookup>( 'clang_getChildDiagnostics', ); late final _clang_getChildDiagnostics = _clang_getChildDiagnosticsPtr - .asFunction(); + .asFunction(); /// Return a version string, suitable for showing to a user, but not /// intended to be parsed (the format is not guaranteed to be stable). @@ -3030,9 +2735,11 @@ class LibClang { } late final _clang_getClangVersionPtr = - _lookup>('clang_getClangVersion'); + _lookup>( + 'clang_getClangVersion', + ); late final _clang_getClangVersion = _clang_getClangVersionPtr - .asFunction(); + .asFunction(); /// Retrieve the annotation associated with the given completion string. /// @@ -3051,21 +2758,11 @@ class LibClang { } late final _clang_getCompletionAnnotationPtr = - _lookup< - ffi.NativeFunction< - CXString Function( - CXCompletionString completion_string, - ffi.UnsignedInt annotation_number, - ) - > - >('clang_getCompletionAnnotation'); + _lookup>( + 'clang_getCompletionAnnotation', + ); late final _clang_getCompletionAnnotation = _clang_getCompletionAnnotationPtr - .asFunction< - CXString Function( - CXCompletionString completion_string, - int annotation_number, - ) - >(); + .asFunction(); /// Determine the availability of the entity that this code-completion /// string refers to. @@ -3082,14 +2779,12 @@ class LibClang { } late final _clang_getCompletionAvailabilityPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString completion_string) - > - >('clang_getCompletionAvailability'); + _lookup>( + 'clang_getCompletionAvailability', + ); late final _clang_getCompletionAvailability = _clang_getCompletionAvailabilityPtr - .asFunction(); + .asFunction(); /// Retrieve the brief documentation comment attached to the declaration /// that corresponds to the given completion string. @@ -3100,16 +2795,12 @@ class LibClang { } late final _clang_getCompletionBriefCommentPtr = - _lookup< - ffi.NativeFunction< - CXString Function(CXCompletionString completion_string) - > - >('clang_getCompletionBriefComment'); + _lookup>( + 'clang_getCompletionBriefComment', + ); late final _clang_getCompletionBriefComment = _clang_getCompletionBriefCommentPtr - .asFunction< - CXString Function(CXCompletionString completion_string) - >(); + .asFunction(); /// Retrieve the completion string associated with a particular chunk /// within a completion string. @@ -3132,21 +2823,11 @@ class LibClang { late final _clang_getCompletionChunkCompletionStringPtr = _lookup< - ffi.NativeFunction< - CXCompletionString Function( - CXCompletionString completion_string, - ffi.UnsignedInt chunk_number, - ) - > + ffi.NativeFunction >('clang_getCompletionChunkCompletionString'); late final _clang_getCompletionChunkCompletionString = _clang_getCompletionChunkCompletionStringPtr - .asFunction< - CXCompletionString Function( - CXCompletionString completion_string, - int chunk_number, - ) - >(); + .asFunction(); /// Determine the kind of a particular chunk within a completion string. /// @@ -3165,18 +2846,11 @@ class LibClang { } late final _clang_getCompletionChunkKindPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCompletionString completion_string, - ffi.UnsignedInt chunk_number, - ) - > - >('clang_getCompletionChunkKind'); + _lookup>( + 'clang_getCompletionChunkKind', + ); late final _clang_getCompletionChunkKind = _clang_getCompletionChunkKindPtr - .asFunction< - int Function(CXCompletionString completion_string, int chunk_number) - >(); + .asFunction(); /// Retrieve the text associated with a particular chunk within a /// completion string. @@ -3194,21 +2868,11 @@ class LibClang { } late final _clang_getCompletionChunkTextPtr = - _lookup< - ffi.NativeFunction< - CXString Function( - CXCompletionString completion_string, - ffi.UnsignedInt chunk_number, - ) - > - >('clang_getCompletionChunkText'); + _lookup>( + 'clang_getCompletionChunkText', + ); late final _clang_getCompletionChunkText = _clang_getCompletionChunkTextPtr - .asFunction< - CXString Function( - CXCompletionString completion_string, - int chunk_number, - ) - >(); + .asFunction(); /// Fix-its that *must* be applied before inserting the text for the /// corresponding completion. @@ -3266,25 +2930,11 @@ class LibClang { } late final _clang_getCompletionFixItPtr = - _lookup< - ffi.NativeFunction< - CXString Function( - ffi.Pointer results, - ffi.UnsignedInt completion_index, - ffi.UnsignedInt fixit_index, - ffi.Pointer replacement_range, - ) - > - >('clang_getCompletionFixIt'); + _lookup>( + 'clang_getCompletionFixIt', + ); late final _clang_getCompletionFixIt = _clang_getCompletionFixItPtr - .asFunction< - CXString Function( - ffi.Pointer results, - int completion_index, - int fixit_index, - ffi.Pointer replacement_range, - ) - >(); + .asFunction(); /// Retrieve the number of annotations associated with the given /// completion string. @@ -3298,14 +2948,12 @@ class LibClang { } late final _clang_getCompletionNumAnnotationsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString completion_string) - > - >('clang_getCompletionNumAnnotations'); + _lookup>( + 'clang_getCompletionNumAnnotations', + ); late final _clang_getCompletionNumAnnotations = _clang_getCompletionNumAnnotationsPtr - .asFunction(); + .asFunction(); /// Retrieve the number of fix-its for the given completion index. /// @@ -3326,21 +2974,11 @@ class LibClang { } late final _clang_getCompletionNumFixItsPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer results, - ffi.UnsignedInt completion_index, - ) - > - >('clang_getCompletionNumFixIts'); + _lookup>( + 'clang_getCompletionNumFixIts', + ); late final _clang_getCompletionNumFixIts = _clang_getCompletionNumFixItsPtr - .asFunction< - int Function( - ffi.Pointer results, - int completion_index, - ) - >(); + .asFunction(); /// Retrieve the parent context of the given completion string. /// @@ -3364,21 +3002,11 @@ class LibClang { } late final _clang_getCompletionParentPtr = - _lookup< - ffi.NativeFunction< - CXString Function( - CXCompletionString completion_string, - ffi.Pointer kind, - ) - > - >('clang_getCompletionParent'); + _lookup>( + 'clang_getCompletionParent', + ); late final _clang_getCompletionParent = _clang_getCompletionParentPtr - .asFunction< - CXString Function( - CXCompletionString completion_string, - ffi.Pointer kind, - ) - >(); + .asFunction(); /// Determine the priority of this code completion. /// @@ -3395,13 +3023,11 @@ class LibClang { } late final _clang_getCompletionPriorityPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString completion_string) - > - >('clang_getCompletionPriority'); + _lookup>( + 'clang_getCompletionPriority', + ); late final _clang_getCompletionPriority = _clang_getCompletionPriorityPtr - .asFunction(); + .asFunction(); /// Map a source location to the cursor that describes the entity at that /// location in the source code. @@ -3421,13 +3047,9 @@ class LibClang { } late final _clang_getCursorPtr = - _lookup< - ffi.NativeFunction< - CXCursor Function(CXTranslationUnit, CXSourceLocation) - > - >('clang_getCursor'); + _lookup>('clang_getCursor'); late final _clang_getCursor = _clang_getCursorPtr - .asFunction(); + .asFunction(); /// Determine the availability of the entity that this cursor refers to, /// taking the current target platform into account. @@ -3440,11 +3062,11 @@ class LibClang { } late final _clang_getCursorAvailabilityPtr = - _lookup>( + _lookup>( 'clang_getCursorAvailability', ); late final _clang_getCursorAvailability = _clang_getCursorAvailabilityPtr - .asFunction(); + .asFunction(); /// Retrieve a completion string for an arbitrary declaration or macro /// definition cursor. @@ -3458,12 +3080,12 @@ class LibClang { } late final _clang_getCursorCompletionStringPtr = - _lookup>( + _lookup>( 'clang_getCursorCompletionString', ); late final _clang_getCursorCompletionString = _clang_getCursorCompletionStringPtr - .asFunction(); + .asFunction(); /// For a cursor that is either a reference to or a declaration /// of some entity, retrieve a cursor that describes the definition of @@ -3496,11 +3118,11 @@ class LibClang { } late final _clang_getCursorDefinitionPtr = - _lookup>( + _lookup>( 'clang_getCursorDefinition', ); late final _clang_getCursorDefinition = _clang_getCursorDefinitionPtr - .asFunction(); + .asFunction(); /// Retrieve the display name for the entity referenced by this cursor. /// @@ -3512,11 +3134,11 @@ class LibClang { } late final _clang_getCursorDisplayNamePtr = - _lookup>( + _lookup>( 'clang_getCursorDisplayName', ); late final _clang_getCursorDisplayName = _clang_getCursorDisplayNamePtr - .asFunction(); + .asFunction(); /// Retrieve the exception specification type associated with a given cursor. /// This is a value of type CXCursor_ExceptionSpecificationKind. @@ -3527,12 +3149,12 @@ class LibClang { } late final _clang_getCursorExceptionSpecificationTypePtr = - _lookup>( - 'clang_getCursorExceptionSpecificationType', - ); + _lookup< + ffi.NativeFunction + >('clang_getCursorExceptionSpecificationType'); late final _clang_getCursorExceptionSpecificationType = _clang_getCursorExceptionSpecificationTypePtr - .asFunction(); + .asFunction(); /// Retrieve the physical extent of the source construct referenced by /// the given cursor. @@ -3548,11 +3170,11 @@ class LibClang { } late final _clang_getCursorExtentPtr = - _lookup>( + _lookup>( 'clang_getCursorExtent', ); late final _clang_getCursorExtent = _clang_getCursorExtentPtr - .asFunction(); + .asFunction(); /// Retrieve the kind of the given cursor. CXCursorKind clang_getCursorKind(CXCursor arg0) { @@ -3560,11 +3182,11 @@ class LibClang { } late final _clang_getCursorKindPtr = - _lookup>( + _lookup>( 'clang_getCursorKind', ); late final _clang_getCursorKind = _clang_getCursorKindPtr - .asFunction(); + .asFunction(); /// \defgroup CINDEX_DEBUG Debugging facilities /// @@ -3577,11 +3199,11 @@ class LibClang { } late final _clang_getCursorKindSpellingPtr = - _lookup>( + _lookup>( 'clang_getCursorKindSpelling', ); late final _clang_getCursorKindSpelling = _clang_getCursorKindSpellingPtr - .asFunction(); + .asFunction(); /// Determine the "language" of the entity referred to by a given cursor. CXLanguageKind clang_getCursorLanguage(CXCursor cursor) { @@ -3589,11 +3211,11 @@ class LibClang { } late final _clang_getCursorLanguagePtr = - _lookup>( + _lookup>( 'clang_getCursorLanguage', ); late final _clang_getCursorLanguage = _clang_getCursorLanguagePtr - .asFunction(); + .asFunction(); /// Determine the lexical parent of the given cursor. /// @@ -3632,11 +3254,11 @@ class LibClang { } late final _clang_getCursorLexicalParentPtr = - _lookup>( + _lookup>( 'clang_getCursorLexicalParent', ); late final _clang_getCursorLexicalParent = _clang_getCursorLexicalParentPtr - .asFunction(); + .asFunction(); /// Determine the linkage of the entity referred to by a given cursor. CXLinkageKind clang_getCursorLinkage(CXCursor cursor) { @@ -3644,11 +3266,11 @@ class LibClang { } late final _clang_getCursorLinkagePtr = - _lookup>( + _lookup>( 'clang_getCursorLinkage', ); late final _clang_getCursorLinkage = _clang_getCursorLinkagePtr - .asFunction(); + .asFunction(); /// Retrieve the physical location of the source constructor referenced /// by the given cursor. @@ -3663,11 +3285,11 @@ class LibClang { } late final _clang_getCursorLocationPtr = - _lookup>( + _lookup>( 'clang_getCursorLocation', ); late final _clang_getCursorLocation = _clang_getCursorLocationPtr - .asFunction(); + .asFunction(); /// Determine the availability of the entity that this cursor refers to /// on any platforms for which availability information is known. @@ -3724,32 +3346,12 @@ class LibClang { } late final _clang_getCursorPlatformAvailabilityPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXCursor cursor, - ffi.Pointer always_deprecated, - ffi.Pointer deprecated_message, - ffi.Pointer always_unavailable, - ffi.Pointer unavailable_message, - ffi.Pointer availability, - ffi.Int availability_size, - ) - > - >('clang_getCursorPlatformAvailability'); + _lookup>( + 'clang_getCursorPlatformAvailability', + ); late final _clang_getCursorPlatformAvailability = _clang_getCursorPlatformAvailabilityPtr - .asFunction< - int Function( - CXCursor cursor, - ffi.Pointer always_deprecated, - ffi.Pointer deprecated_message, - ffi.Pointer always_unavailable, - ffi.Pointer unavailable_message, - ffi.Pointer availability, - int availability_size, - ) - >(); + .asFunction(); /// Pretty print declarations. /// @@ -3768,15 +3370,11 @@ class LibClang { } late final _clang_getCursorPrettyPrintedPtr = - _lookup< - ffi.NativeFunction< - CXString Function(CXCursor Cursor, CXPrintingPolicy Policy) - > - >('clang_getCursorPrettyPrinted'); + _lookup>( + 'clang_getCursorPrettyPrinted', + ); late final _clang_getCursorPrettyPrinted = _clang_getCursorPrettyPrintedPtr - .asFunction< - CXString Function(CXCursor Cursor, CXPrintingPolicy Policy) - >(); + .asFunction(); /// Retrieve the default policy for the cursor. /// @@ -3787,11 +3385,11 @@ class LibClang { } late final _clang_getCursorPrintingPolicyPtr = - _lookup>( + _lookup>( 'clang_getCursorPrintingPolicy', ); late final _clang_getCursorPrintingPolicy = _clang_getCursorPrintingPolicyPtr - .asFunction(); + .asFunction(); /// Given a cursor that references something else, return the source range /// covering that reference. @@ -3818,20 +3416,12 @@ class LibClang { } late final _clang_getCursorReferenceNameRangePtr = - _lookup< - ffi.NativeFunction< - CXSourceRange Function( - CXCursor C, - ffi.UnsignedInt NameFlags, - ffi.UnsignedInt PieceIndex, - ) - > - >('clang_getCursorReferenceNameRange'); + _lookup>( + 'clang_getCursorReferenceNameRange', + ); late final _clang_getCursorReferenceNameRange = _clang_getCursorReferenceNameRangePtr - .asFunction< - CXSourceRange Function(CXCursor C, int NameFlags, int PieceIndex) - >(); + .asFunction(); /// For a cursor that is a reference, retrieve a cursor representing the /// entity that it references. @@ -3847,11 +3437,11 @@ class LibClang { } late final _clang_getCursorReferencedPtr = - _lookup>( + _lookup>( 'clang_getCursorReferenced', ); late final _clang_getCursorReferenced = _clang_getCursorReferencedPtr - .asFunction(); + .asFunction(); /// Retrieve the return type associated with a given cursor. /// @@ -3861,11 +3451,11 @@ class LibClang { } late final _clang_getCursorResultTypePtr = - _lookup>( + _lookup>( 'clang_getCursorResultType', ); late final _clang_getCursorResultType = _clang_getCursorResultTypePtr - .asFunction(); + .asFunction(); /// Determine the semantic parent of the given cursor. /// @@ -3903,11 +3493,11 @@ class LibClang { } late final _clang_getCursorSemanticParentPtr = - _lookup>( + _lookup>( 'clang_getCursorSemanticParent', ); late final _clang_getCursorSemanticParent = _clang_getCursorSemanticParentPtr - .asFunction(); + .asFunction(); /// Retrieve a name for the entity referenced by this cursor. CXString clang_getCursorSpelling(CXCursor arg0) { @@ -3915,11 +3505,11 @@ class LibClang { } late final _clang_getCursorSpellingPtr = - _lookup>( + _lookup>( 'clang_getCursorSpelling', ); late final _clang_getCursorSpelling = _clang_getCursorSpellingPtr - .asFunction(); + .asFunction(); /// Determine the "thread-local storage (TLS) kind" of the declaration /// referred to by a cursor. @@ -3928,11 +3518,11 @@ class LibClang { } late final _clang_getCursorTLSKindPtr = - _lookup>( + _lookup>( 'clang_getCursorTLSKind', ); late final _clang_getCursorTLSKind = _clang_getCursorTLSKindPtr - .asFunction(); + .asFunction(); /// Retrieve the type of a CXCursor (if any). CXType clang_getCursorType(CXCursor C) { @@ -3940,11 +3530,11 @@ class LibClang { } late final _clang_getCursorTypePtr = - _lookup>( + _lookup>( 'clang_getCursorType', ); late final _clang_getCursorType = _clang_getCursorTypePtr - .asFunction(); + .asFunction(); /// Retrieve a Unified Symbol Resolution (USR) for the entity referenced /// by the given cursor. @@ -3958,11 +3548,11 @@ class LibClang { } late final _clang_getCursorUSRPtr = - _lookup>( + _lookup>( 'clang_getCursorUSR', ); late final _clang_getCursorUSR = _clang_getCursorUSRPtr - .asFunction(); + .asFunction(); /// Describe the visibility of the entity referred to by a cursor. /// @@ -3978,11 +3568,11 @@ class LibClang { } late final _clang_getCursorVisibilityPtr = - _lookup>( + _lookup>( 'clang_getCursorVisibility', ); late final _clang_getCursorVisibility = _clang_getCursorVisibilityPtr - .asFunction(); + .asFunction(); /// Returns the Objective-C type encoding for the specified declaration. CXString clang_getDeclObjCTypeEncoding(CXCursor C) { @@ -3990,11 +3580,11 @@ class LibClang { } late final _clang_getDeclObjCTypeEncodingPtr = - _lookup>( + _lookup>( 'clang_getDeclObjCTypeEncoding', ); late final _clang_getDeclObjCTypeEncoding = _clang_getDeclObjCTypeEncodingPtr - .asFunction(); + .asFunction(); void clang_getDefinitionSpellingAndExtent( CXCursor arg0, @@ -4017,32 +3607,12 @@ class LibClang { } late final _clang_getDefinitionSpellingAndExtentPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXCursor, - ffi.Pointer> startBuf, - ffi.Pointer> endBuf, - ffi.Pointer startLine, - ffi.Pointer startColumn, - ffi.Pointer endLine, - ffi.Pointer endColumn, - ) - > - >('clang_getDefinitionSpellingAndExtent'); + _lookup>( + 'clang_getDefinitionSpellingAndExtent', + ); late final _clang_getDefinitionSpellingAndExtent = _clang_getDefinitionSpellingAndExtentPtr - .asFunction< - void Function( - CXCursor, - ffi.Pointer> startBuf, - ffi.Pointer> endBuf, - ffi.Pointer startLine, - ffi.Pointer startColumn, - ffi.Pointer endLine, - ffi.Pointer endColumn, - ) - >(); + .asFunction(); /// Retrieve a diagnostic associated with the given translation unit. /// @@ -4056,13 +3626,11 @@ class LibClang { } late final _clang_getDiagnosticPtr = - _lookup< - ffi.NativeFunction< - CXDiagnostic Function(CXTranslationUnit Unit, ffi.UnsignedInt Index) - > - >('clang_getDiagnostic'); + _lookup>( + 'clang_getDiagnostic', + ); late final _clang_getDiagnostic = _clang_getDiagnosticPtr - .asFunction(); + .asFunction(); /// Retrieve the category number for this diagnostic. /// @@ -4077,11 +3645,11 @@ class LibClang { } late final _clang_getDiagnosticCategoryPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticCategory', ); late final _clang_getDiagnosticCategory = _clang_getDiagnosticCategoryPtr - .asFunction(); + .asFunction(); /// Retrieve the name of a particular diagnostic category. This /// is now deprecated. Use clang_getDiagnosticCategoryText() @@ -4097,12 +3665,12 @@ class LibClang { } late final _clang_getDiagnosticCategoryNamePtr = - _lookup>( + _lookup>( 'clang_getDiagnosticCategoryName', ); late final _clang_getDiagnosticCategoryName = _clang_getDiagnosticCategoryNamePtr - .asFunction(); + .asFunction(); /// Retrieve the diagnostic category text for a given diagnostic. /// @@ -4112,12 +3680,12 @@ class LibClang { } late final _clang_getDiagnosticCategoryTextPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticCategoryText', ); late final _clang_getDiagnosticCategoryText = _clang_getDiagnosticCategoryTextPtr - .asFunction(); + .asFunction(); /// Retrieve the replacement information for a given fix-it. /// @@ -4151,23 +3719,11 @@ class LibClang { } late final _clang_getDiagnosticFixItPtr = - _lookup< - ffi.NativeFunction< - CXString Function( - CXDiagnostic Diagnostic, - ffi.UnsignedInt FixIt, - ffi.Pointer ReplacementRange, - ) - > - >('clang_getDiagnosticFixIt'); + _lookup>( + 'clang_getDiagnosticFixIt', + ); late final _clang_getDiagnosticFixIt = _clang_getDiagnosticFixItPtr - .asFunction< - CXString Function( - CXDiagnostic Diagnostic, - int FixIt, - ffi.Pointer ReplacementRange, - ) - >(); + .asFunction(); /// Retrieve a diagnostic associated with the given CXDiagnosticSet. /// @@ -4181,13 +3737,11 @@ class LibClang { } late final _clang_getDiagnosticInSetPtr = - _lookup< - ffi.NativeFunction< - CXDiagnostic Function(CXDiagnosticSet Diags, ffi.UnsignedInt Index) - > - >('clang_getDiagnosticInSet'); + _lookup>( + 'clang_getDiagnosticInSet', + ); late final _clang_getDiagnosticInSet = _clang_getDiagnosticInSetPtr - .asFunction(); + .asFunction(); /// Retrieve the source location of the given diagnostic. /// @@ -4198,11 +3752,11 @@ class LibClang { } late final _clang_getDiagnosticLocationPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticLocation', ); late final _clang_getDiagnosticLocation = _clang_getDiagnosticLocationPtr - .asFunction(); + .asFunction(); /// Determine the number of fix-it hints associated with the /// given diagnostic. @@ -4211,11 +3765,11 @@ class LibClang { } late final _clang_getDiagnosticNumFixItsPtr = - _lookup< - ffi.NativeFunction - >('clang_getDiagnosticNumFixIts'); + _lookup>( + 'clang_getDiagnosticNumFixIts', + ); late final _clang_getDiagnosticNumFixIts = _clang_getDiagnosticNumFixItsPtr - .asFunction(); + .asFunction(); /// Determine the number of source ranges associated with the given /// diagnostic. @@ -4224,11 +3778,11 @@ class LibClang { } late final _clang_getDiagnosticNumRangesPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticNumRanges', ); late final _clang_getDiagnosticNumRanges = _clang_getDiagnosticNumRangesPtr - .asFunction(); + .asFunction(); /// Retrieve the name of the command-line option that enabled this /// diagnostic. @@ -4248,15 +3802,11 @@ class LibClang { } late final _clang_getDiagnosticOptionPtr = - _lookup< - ffi.NativeFunction< - CXString Function(CXDiagnostic Diag, ffi.Pointer Disable) - > - >('clang_getDiagnosticOption'); + _lookup>( + 'clang_getDiagnosticOption', + ); late final _clang_getDiagnosticOption = _clang_getDiagnosticOptionPtr - .asFunction< - CXString Function(CXDiagnostic Diag, ffi.Pointer Disable) - >(); + .asFunction(); /// Retrieve a source range associated with the diagnostic. /// @@ -4274,13 +3824,11 @@ class LibClang { } late final _clang_getDiagnosticRangePtr = - _lookup< - ffi.NativeFunction< - CXSourceRange Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Range) - > - >('clang_getDiagnosticRange'); + _lookup>( + 'clang_getDiagnosticRange', + ); late final _clang_getDiagnosticRange = _clang_getDiagnosticRangePtr - .asFunction(); + .asFunction(); /// Retrieve the complete set of diagnostics associated with a /// translation unit. @@ -4291,11 +3839,11 @@ class LibClang { } late final _clang_getDiagnosticSetFromTUPtr = - _lookup< - ffi.NativeFunction - >('clang_getDiagnosticSetFromTU'); + _lookup>( + 'clang_getDiagnosticSetFromTU', + ); late final _clang_getDiagnosticSetFromTU = _clang_getDiagnosticSetFromTUPtr - .asFunction(); + .asFunction(); /// Determine the severity of the given diagnostic. CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic arg0) { @@ -4303,11 +3851,11 @@ class LibClang { } late final _clang_getDiagnosticSeverityPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticSeverity', ); late final _clang_getDiagnosticSeverity = _clang_getDiagnosticSeverityPtr - .asFunction(); + .asFunction(); /// Retrieve the text of the given diagnostic. CXString clang_getDiagnosticSpelling(CXDiagnostic arg0) { @@ -4315,11 +3863,11 @@ class LibClang { } late final _clang_getDiagnosticSpellingPtr = - _lookup>( + _lookup>( 'clang_getDiagnosticSpelling', ); late final _clang_getDiagnosticSpelling = _clang_getDiagnosticSpellingPtr - .asFunction(); + .asFunction(); /// Return the element type of an array, complex, or vector type. /// @@ -4330,11 +3878,11 @@ class LibClang { } late final _clang_getElementTypePtr = - _lookup>( + _lookup>( 'clang_getElementType', ); late final _clang_getElementType = _clang_getElementTypePtr - .asFunction(); + .asFunction(); /// Retrieve the integer value of an enum constant declaration as an unsigned /// long long. @@ -4347,12 +3895,12 @@ class LibClang { } late final _clang_getEnumConstantDeclUnsignedValuePtr = - _lookup>( + _lookup>( 'clang_getEnumConstantDeclUnsignedValue', ); late final _clang_getEnumConstantDeclUnsignedValue = _clang_getEnumConstantDeclUnsignedValuePtr - .asFunction(); + .asFunction(); /// Retrieve the integer value of an enum constant declaration as a signed /// long long. @@ -4365,11 +3913,12 @@ class LibClang { } late final _clang_getEnumConstantDeclValuePtr = - _lookup>( + _lookup>( 'clang_getEnumConstantDeclValue', ); late final _clang_getEnumConstantDeclValue = - _clang_getEnumConstantDeclValuePtr.asFunction(); + _clang_getEnumConstantDeclValuePtr + .asFunction(); /// Retrieve the integer type of an enum declaration. /// @@ -4380,11 +3929,11 @@ class LibClang { } late final _clang_getEnumDeclIntegerTypePtr = - _lookup>( + _lookup>( 'clang_getEnumDeclIntegerType', ); late final _clang_getEnumDeclIntegerType = _clang_getEnumDeclIntegerTypePtr - .asFunction(); + .asFunction(); /// Retrieve the exception specification type associated with a function type. /// This is a value of type CXCursor_ExceptionSpecificationKind. @@ -4395,12 +3944,12 @@ class LibClang { } late final _clang_getExceptionSpecificationTypePtr = - _lookup>( + _lookup>( 'clang_getExceptionSpecificationType', ); late final _clang_getExceptionSpecificationType = _clang_getExceptionSpecificationTypePtr - .asFunction(); + .asFunction(); /// Retrieve the file, line, column, and offset represented by /// the given source location. @@ -4433,27 +3982,11 @@ class LibClang { } late final _clang_getExpansionLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - > - >('clang_getExpansionLocation'); + _lookup>( + 'clang_getExpansionLocation', + ); late final _clang_getExpansionLocation = _clang_getExpansionLocationPtr - .asFunction< - void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - >(); + .asFunction(); /// Retrieve the bit width of a bit field declaration as an integer. /// @@ -4463,11 +3996,11 @@ class LibClang { } late final _clang_getFieldDeclBitWidthPtr = - _lookup>( + _lookup>( 'clang_getFieldDeclBitWidth', ); late final _clang_getFieldDeclBitWidth = _clang_getFieldDeclBitWidthPtr - .asFunction(); + .asFunction(); /// Retrieve a file handle within the given translation unit. /// @@ -4482,15 +4015,8 @@ class LibClang { } late final _clang_getFilePtr = - _lookup< - ffi.NativeFunction< - CXFile Function(CXTranslationUnit tu, ffi.Pointer file_name) - > - >('clang_getFile'); - late final _clang_getFile = _clang_getFilePtr - .asFunction< - CXFile Function(CXTranslationUnit tu, ffi.Pointer file_name) - >(); + _lookup>('clang_getFile'); + late final _clang_getFile = _clang_getFilePtr.asFunction(); /// Retrieve the buffer associated with the given file. /// @@ -4511,23 +4037,11 @@ class LibClang { } late final _clang_getFileContentsPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CXTranslationUnit tu, - CXFile file, - ffi.Pointer size, - ) - > - >('clang_getFileContents'); + _lookup>( + 'clang_getFileContents', + ); late final _clang_getFileContents = _clang_getFileContentsPtr - .asFunction< - ffi.Pointer Function( - CXTranslationUnit tu, - CXFile file, - ffi.Pointer size, - ) - >(); + .asFunction(); /// Retrieve the file, line, column, and offset represented by /// the given source location. @@ -4561,27 +4075,11 @@ class LibClang { } late final _clang_getFileLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - > - >('clang_getFileLocation'); + _lookup>( + 'clang_getFileLocation', + ); late final _clang_getFileLocation = _clang_getFileLocationPtr - .asFunction< - void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - >(); + .asFunction(); /// Retrieve the complete file and path name of the given file. CXString clang_getFileName(CXFile SFile) { @@ -4589,11 +4087,9 @@ class LibClang { } late final _clang_getFileNamePtr = - _lookup>( - 'clang_getFileName', - ); + _lookup>('clang_getFileName'); late final _clang_getFileName = _clang_getFileNamePtr - .asFunction(); + .asFunction(); /// Retrieve the last modification time of the given file. int clang_getFileTime(CXFile SFile) { @@ -4601,11 +4097,9 @@ class LibClang { } late final _clang_getFileTimePtr = - _lookup>( - 'clang_getFileTime', - ); + _lookup>('clang_getFileTime'); late final _clang_getFileTime = _clang_getFileTimePtr - .asFunction(); + .asFunction(); /// Retrieve the unique ID for the given \c file. /// @@ -4618,15 +4112,11 @@ class LibClang { } late final _clang_getFileUniqueIDPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function(CXFile file, ffi.Pointer outID) - > - >('clang_getFileUniqueID'); + _lookup>( + 'clang_getFileUniqueID', + ); late final _clang_getFileUniqueID = _clang_getFileUniqueIDPtr - .asFunction< - int Function(CXFile file, ffi.Pointer outID) - >(); + .asFunction(); /// Retrieve the calling convention associated with a function type. /// @@ -4636,11 +4126,12 @@ class LibClang { } late final _clang_getFunctionTypeCallingConvPtr = - _lookup>( + _lookup>( 'clang_getFunctionTypeCallingConv', ); late final _clang_getFunctionTypeCallingConv = - _clang_getFunctionTypeCallingConvPtr.asFunction(); + _clang_getFunctionTypeCallingConvPtr + .asFunction(); /// For cursors representing an iboutletcollection attribute, /// this function returns the collection element type. @@ -4649,12 +4140,12 @@ class LibClang { } late final _clang_getIBOutletCollectionTypePtr = - _lookup>( + _lookup>( 'clang_getIBOutletCollectionType', ); late final _clang_getIBOutletCollectionType = _clang_getIBOutletCollectionTypePtr - .asFunction(); + .asFunction(); /// Retrieve the file that is included by the given inclusion directive /// cursor. @@ -4663,11 +4154,11 @@ class LibClang { } late final _clang_getIncludedFilePtr = - _lookup>( + _lookup>( 'clang_getIncludedFile', ); late final _clang_getIncludedFile = _clang_getIncludedFilePtr - .asFunction(); + .asFunction(); /// Visit the set of preprocessor inclusions in a translation unit. /// The visitor function is called with the provided data for every included @@ -4682,23 +4173,11 @@ class LibClang { } late final _clang_getInclusionsPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit tu, - CXInclusionVisitor visitor, - CXClientData client_data, - ) - > - >('clang_getInclusions'); + _lookup>( + 'clang_getInclusions', + ); late final _clang_getInclusions = _clang_getInclusionsPtr - .asFunction< - void Function( - CXTranslationUnit tu, - CXInclusionVisitor visitor, - CXClientData client_data, - ) - >(); + .asFunction(); /// Legacy API to retrieve the file, line, column, and offset represented /// by the given source location. @@ -4723,28 +4202,12 @@ class LibClang { } late final _clang_getInstantiationLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - > - >('clang_getInstantiationLocation'); + _lookup>( + 'clang_getInstantiationLocation', + ); late final _clang_getInstantiationLocation = _clang_getInstantiationLocationPtr - .asFunction< - void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - >(); + .asFunction(); /// Retrieves the source location associated with a given file/line/column /// in a particular translation unit. @@ -4758,25 +4221,9 @@ class LibClang { } late final _clang_getLocationPtr = - _lookup< - ffi.NativeFunction< - CXSourceLocation Function( - CXTranslationUnit tu, - CXFile file, - ffi.UnsignedInt line, - ffi.UnsignedInt column, - ) - > - >('clang_getLocation'); + _lookup>('clang_getLocation'); late final _clang_getLocation = _clang_getLocationPtr - .asFunction< - CXSourceLocation Function( - CXTranslationUnit tu, - CXFile file, - int line, - int column, - ) - >(); + .asFunction(); /// Retrieves the source location associated with a given character offset /// in a particular translation unit. @@ -4789,19 +4236,11 @@ class LibClang { } late final _clang_getLocationForOffsetPtr = - _lookup< - ffi.NativeFunction< - CXSourceLocation Function( - CXTranslationUnit tu, - CXFile file, - ffi.UnsignedInt offset, - ) - > - >('clang_getLocationForOffset'); + _lookup>( + 'clang_getLocationForOffset', + ); late final _clang_getLocationForOffset = _clang_getLocationForOffsetPtr - .asFunction< - CXSourceLocation Function(CXTranslationUnit tu, CXFile file, int offset) - >(); + .asFunction(); /// Given a CXFile header file, return the module that contains it, if one /// exists. @@ -4810,11 +4249,11 @@ class LibClang { } late final _clang_getModuleForFilePtr = - _lookup>( + _lookup>( 'clang_getModuleForFile', ); late final _clang_getModuleForFile = _clang_getModuleForFilePtr - .asFunction(); + .asFunction(); /// Retrieve the NULL cursor, which represents no entity. CXCursor clang_getNullCursor() { @@ -4822,9 +4261,11 @@ class LibClang { } late final _clang_getNullCursorPtr = - _lookup>('clang_getNullCursor'); + _lookup>( + 'clang_getNullCursor', + ); late final _clang_getNullCursor = _clang_getNullCursorPtr - .asFunction(); + .asFunction(); /// Retrieve a NULL (invalid) source location. CXSourceLocation clang_getNullLocation() { @@ -4832,11 +4273,11 @@ class LibClang { } late final _clang_getNullLocationPtr = - _lookup>( + _lookup>( 'clang_getNullLocation', ); late final _clang_getNullLocation = _clang_getNullLocationPtr - .asFunction(); + .asFunction(); /// Retrieve a NULL (invalid) source range. CXSourceRange clang_getNullRange() { @@ -4844,11 +4285,11 @@ class LibClang { } late final _clang_getNullRangePtr = - _lookup>( + _lookup>( 'clang_getNullRange', ); late final _clang_getNullRange = _clang_getNullRangePtr - .asFunction(); + .asFunction(); /// Retrieve the number of non-variadic parameters associated with a /// function type. @@ -4859,11 +4300,11 @@ class LibClang { } late final _clang_getNumArgTypesPtr = - _lookup>( + _lookup>( 'clang_getNumArgTypes', ); late final _clang_getNumArgTypes = _clang_getNumArgTypesPtr - .asFunction(); + .asFunction(); /// Retrieve the number of chunks in the given code-completion string. int clang_getNumCompletionChunks(CXCompletionString completion_string) { @@ -4871,13 +4312,11 @@ class LibClang { } late final _clang_getNumCompletionChunksPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString completion_string) - > - >('clang_getNumCompletionChunks'); + _lookup>( + 'clang_getNumCompletionChunks', + ); late final _clang_getNumCompletionChunks = _clang_getNumCompletionChunksPtr - .asFunction(); + .asFunction(); /// Determine the number of diagnostics produced for the given /// translation unit. @@ -4886,11 +4325,11 @@ class LibClang { } late final _clang_getNumDiagnosticsPtr = - _lookup< - ffi.NativeFunction - >('clang_getNumDiagnostics'); + _lookup>( + 'clang_getNumDiagnostics', + ); late final _clang_getNumDiagnostics = _clang_getNumDiagnosticsPtr - .asFunction(); + .asFunction(); /// Determine the number of diagnostics in a CXDiagnosticSet. int clang_getNumDiagnosticsInSet(CXDiagnosticSet Diags) { @@ -4898,11 +4337,11 @@ class LibClang { } late final _clang_getNumDiagnosticsInSetPtr = - _lookup< - ffi.NativeFunction - >('clang_getNumDiagnosticsInSet'); + _lookup>( + 'clang_getNumDiagnosticsInSet', + ); late final _clang_getNumDiagnosticsInSet = _clang_getNumDiagnosticsInSetPtr - .asFunction(); + .asFunction(); /// Return the number of elements of an array or vector type. /// @@ -4913,11 +4352,11 @@ class LibClang { } late final _clang_getNumElementsPtr = - _lookup>( + _lookup>( 'clang_getNumElements', ); late final _clang_getNumElements = _clang_getNumElementsPtr - .asFunction(); + .asFunction(); /// Determine the number of overloaded declarations referenced by a /// \c CXCursor_OverloadedDeclRef cursor. @@ -4931,11 +4370,11 @@ class LibClang { } late final _clang_getNumOverloadedDeclsPtr = - _lookup>( + _lookup>( 'clang_getNumOverloadedDecls', ); late final _clang_getNumOverloadedDecls = _clang_getNumOverloadedDeclsPtr - .asFunction(); + .asFunction(); /// Retrieve a cursor for one of the overloaded declarations referenced /// by a \c CXCursor_OverloadedDeclRef cursor. @@ -4954,13 +4393,11 @@ class LibClang { } late final _clang_getOverloadedDeclPtr = - _lookup< - ffi.NativeFunction< - CXCursor Function(CXCursor cursor, ffi.UnsignedInt index) - > - >('clang_getOverloadedDecl'); + _lookup>( + 'clang_getOverloadedDecl', + ); late final _clang_getOverloadedDecl = _clang_getOverloadedDeclPtr - .asFunction(); + .asFunction(); /// Determine the set of methods that are overridden by the given /// method. @@ -5012,23 +4449,11 @@ class LibClang { } late final _clang_getOverriddenCursorsPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXCursor cursor, - ffi.Pointer> overridden, - ffi.Pointer num_overridden, - ) - > - >('clang_getOverriddenCursors'); + _lookup>( + 'clang_getOverriddenCursors', + ); late final _clang_getOverriddenCursors = _clang_getOverriddenCursorsPtr - .asFunction< - void Function( - CXCursor cursor, - ffi.Pointer> overridden, - ffi.Pointer num_overridden, - ) - >(); + .asFunction(); /// For pointer types, returns the type of the pointee. CXType clang_getPointeeType(CXType T) { @@ -5036,11 +4461,11 @@ class LibClang { } late final _clang_getPointeeTypePtr = - _lookup>( + _lookup>( 'clang_getPointeeType', ); late final _clang_getPointeeType = _clang_getPointeeTypePtr - .asFunction(); + .asFunction(); /// Retrieve the file, line and column represented by the given source /// location, as specified in a # line directive. @@ -5090,25 +4515,11 @@ class LibClang { } late final _clang_getPresumedLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer filename, - ffi.Pointer line, - ffi.Pointer column, - ) - > - >('clang_getPresumedLocation'); + _lookup>( + 'clang_getPresumedLocation', + ); late final _clang_getPresumedLocation = _clang_getPresumedLocationPtr - .asFunction< - void Function( - CXSourceLocation location, - ffi.Pointer filename, - ffi.Pointer line, - ffi.Pointer column, - ) - >(); + .asFunction(); /// Retrieve a source range given the beginning and ending source /// locations. @@ -5117,15 +4528,9 @@ class LibClang { } late final _clang_getRangePtr = - _lookup< - ffi.NativeFunction< - CXSourceRange Function(CXSourceLocation begin, CXSourceLocation end) - > - >('clang_getRange'); + _lookup>('clang_getRange'); late final _clang_getRange = _clang_getRangePtr - .asFunction< - CXSourceRange Function(CXSourceLocation begin, CXSourceLocation end) - >(); + .asFunction(); /// Retrieve a source location representing the last character within a /// source range. @@ -5134,11 +4539,9 @@ class LibClang { } late final _clang_getRangeEndPtr = - _lookup< - ffi.NativeFunction - >('clang_getRangeEnd'); + _lookup>('clang_getRangeEnd'); late final _clang_getRangeEnd = _clang_getRangeEndPtr - .asFunction(); + .asFunction(); /// Retrieve a source location representing the first character within a /// source range. @@ -5147,11 +4550,11 @@ class LibClang { } late final _clang_getRangeStartPtr = - _lookup< - ffi.NativeFunction - >('clang_getRangeStart'); + _lookup>( + 'clang_getRangeStart', + ); late final _clang_getRangeStart = _clang_getRangeStartPtr - .asFunction(); + .asFunction(); /// Retrieve a remapping. /// @@ -5164,11 +4567,11 @@ class LibClang { } late final _clang_getRemappingsPtr = - _lookup< - ffi.NativeFunction path)> - >('clang_getRemappings'); + _lookup>( + 'clang_getRemappings', + ); late final _clang_getRemappings = _clang_getRemappingsPtr - .asFunction path)>(); + .asFunction(); /// Retrieve a remapping. /// @@ -5186,22 +4589,12 @@ class LibClang { } late final _clang_getRemappingsFromFileListPtr = - _lookup< - ffi.NativeFunction< - CXRemapping Function( - ffi.Pointer> filePaths, - ffi.UnsignedInt numFiles, - ) - > - >('clang_getRemappingsFromFileList'); + _lookup>( + 'clang_getRemappingsFromFileList', + ); late final _clang_getRemappingsFromFileList = _clang_getRemappingsFromFileListPtr - .asFunction< - CXRemapping Function( - ffi.Pointer> filePaths, - int numFiles, - ) - >(); + .asFunction(); /// Retrieve the return type associated with a function type. /// @@ -5211,11 +4604,11 @@ class LibClang { } late final _clang_getResultTypePtr = - _lookup>( + _lookup>( 'clang_getResultType', ); late final _clang_getResultType = _clang_getResultTypePtr - .asFunction(); + .asFunction(); /// Retrieve all ranges that were skipped by the preprocessor. /// @@ -5229,21 +4622,11 @@ class LibClang { } late final _clang_getSkippedRangesPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CXTranslationUnit tu, - CXFile file, - ) - > - >('clang_getSkippedRanges'); + _lookup>( + 'clang_getSkippedRanges', + ); late final _clang_getSkippedRanges = _clang_getSkippedRangesPtr - .asFunction< - ffi.Pointer Function( - CXTranslationUnit tu, - CXFile file, - ) - >(); + .asFunction(); /// Given a cursor that may represent a specialization or instantiation /// of a template, retrieve the cursor that represents the template that it @@ -5276,12 +4659,12 @@ class LibClang { } late final _clang_getSpecializedCursorTemplatePtr = - _lookup>( + _lookup>( 'clang_getSpecializedCursorTemplate', ); late final _clang_getSpecializedCursorTemplate = _clang_getSpecializedCursorTemplatePtr - .asFunction(); + .asFunction(); /// Retrieve the file, line, column, and offset represented by /// the given source location. @@ -5314,27 +4697,11 @@ class LibClang { } late final _clang_getSpellingLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - > - >('clang_getSpellingLocation'); + _lookup>( + 'clang_getSpellingLocation', + ); late final _clang_getSpellingLocation = _clang_getSpellingLocationPtr - .asFunction< - void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - >(); + .asFunction(); /// Returns the human-readable null-terminated C string that represents /// the name of the memory category. This string should never be freed. @@ -5345,11 +4712,11 @@ class LibClang { } late final _clang_getTUResourceUsageNamePtr = - _lookup< - ffi.NativeFunction Function(ffi.UnsignedInt kind)> - >('clang_getTUResourceUsageName'); + _lookup>( + 'clang_getTUResourceUsageName', + ); late final _clang_getTUResourceUsageName = _clang_getTUResourceUsageNamePtr - .asFunction Function(int kind)>(); + .asFunction(); /// Given a cursor that represents a template, determine /// the cursor kind of the specializations would be generated by instantiating @@ -5371,11 +4738,11 @@ class LibClang { } late final _clang_getTemplateCursorKindPtr = - _lookup>( + _lookup>( 'clang_getTemplateCursorKind', ); late final _clang_getTemplateCursorKind = _clang_getTemplateCursorKindPtr - .asFunction(); + .asFunction(); /// Get the raw lexical token starting with the given location. /// @@ -5394,21 +4761,9 @@ class LibClang { } late final _clang_getTokenPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CXTranslationUnit TU, - CXSourceLocation Location, - ) - > - >('clang_getToken'); + _lookup>('clang_getToken'); late final _clang_getToken = _clang_getTokenPtr - .asFunction< - ffi.Pointer Function( - CXTranslationUnit TU, - CXSourceLocation Location, - ) - >(); + .asFunction(); /// Retrieve a source range that covers the given token. CXSourceRange clang_getTokenExtent(CXTranslationUnit arg0, CXToken arg1) { @@ -5416,11 +4771,11 @@ class LibClang { } late final _clang_getTokenExtentPtr = - _lookup< - ffi.NativeFunction - >('clang_getTokenExtent'); + _lookup>( + 'clang_getTokenExtent', + ); late final _clang_getTokenExtent = _clang_getTokenExtentPtr - .asFunction(); + .asFunction(); /// Determine the kind of the given token. CXTokenKind clang_getTokenKind(CXToken arg0) { @@ -5428,11 +4783,11 @@ class LibClang { } late final _clang_getTokenKindPtr = - _lookup>( + _lookup>( 'clang_getTokenKind', ); late final _clang_getTokenKind = _clang_getTokenKindPtr - .asFunction(); + .asFunction(); /// Retrieve the source location of the given token. CXSourceLocation clang_getTokenLocation( @@ -5443,13 +4798,11 @@ class LibClang { } late final _clang_getTokenLocationPtr = - _lookup< - ffi.NativeFunction< - CXSourceLocation Function(CXTranslationUnit, CXToken) - > - >('clang_getTokenLocation'); + _lookup>( + 'clang_getTokenLocation', + ); late final _clang_getTokenLocation = _clang_getTokenLocationPtr - .asFunction(); + .asFunction(); /// Determine the spelling of the given token. /// @@ -5460,11 +4813,11 @@ class LibClang { } late final _clang_getTokenSpellingPtr = - _lookup< - ffi.NativeFunction - >('clang_getTokenSpelling'); + _lookup>( + 'clang_getTokenSpelling', + ); late final _clang_getTokenSpelling = _clang_getTokenSpellingPtr - .asFunction(); + .asFunction(); /// Retrieve the cursor that represents the given translation unit. /// @@ -5475,12 +4828,12 @@ class LibClang { } late final _clang_getTranslationUnitCursorPtr = - _lookup>( + _lookup>( 'clang_getTranslationUnitCursor', ); late final _clang_getTranslationUnitCursor = _clang_getTranslationUnitCursorPtr - .asFunction(); + .asFunction(); /// Get the original translation unit source file name. CXString clang_getTranslationUnitSpelling(CXTranslationUnit CTUnit) { @@ -5488,12 +4841,12 @@ class LibClang { } late final _clang_getTranslationUnitSpellingPtr = - _lookup>( + _lookup>( 'clang_getTranslationUnitSpelling', ); late final _clang_getTranslationUnitSpelling = _clang_getTranslationUnitSpellingPtr - .asFunction(); + .asFunction(); /// Get target information for this translation unit. /// @@ -5503,12 +4856,12 @@ class LibClang { } late final _clang_getTranslationUnitTargetInfoPtr = - _lookup< - ffi.NativeFunction - >('clang_getTranslationUnitTargetInfo'); + _lookup>( + 'clang_getTranslationUnitTargetInfo', + ); late final _clang_getTranslationUnitTargetInfo = _clang_getTranslationUnitTargetInfoPtr - .asFunction(); + .asFunction(); /// Return the cursor for the declaration of the given type. CXCursor clang_getTypeDeclaration(CXType T) { @@ -5516,11 +4869,11 @@ class LibClang { } late final _clang_getTypeDeclarationPtr = - _lookup>( + _lookup>( 'clang_getTypeDeclaration', ); late final _clang_getTypeDeclaration = _clang_getTypeDeclarationPtr - .asFunction(); + .asFunction(); /// Retrieve the spelling of a given CXTypeKind. CXString clang_getTypeKindSpelling(CXTypeKind K) { @@ -5528,11 +4881,11 @@ class LibClang { } late final _clang_getTypeKindSpellingPtr = - _lookup>( + _lookup>( 'clang_getTypeKindSpelling', ); late final _clang_getTypeKindSpelling = _clang_getTypeKindSpellingPtr - .asFunction(); + .asFunction(); /// Pretty-print the underlying type using the rules of the /// language of the translation unit from which it came. @@ -5543,11 +4896,11 @@ class LibClang { } late final _clang_getTypeSpellingPtr = - _lookup>( + _lookup>( 'clang_getTypeSpelling', ); late final _clang_getTypeSpelling = _clang_getTypeSpellingPtr - .asFunction(); + .asFunction(); /// Retrieve the underlying type of a typedef declaration. /// @@ -5558,12 +4911,12 @@ class LibClang { } late final _clang_getTypedefDeclUnderlyingTypePtr = - _lookup>( + _lookup>( 'clang_getTypedefDeclUnderlyingType', ); late final _clang_getTypedefDeclUnderlyingType = _clang_getTypedefDeclUnderlyingTypePtr - .asFunction(); + .asFunction(); /// Returns the typedef name of the given type. CXString clang_getTypedefName(CXType CT) { @@ -5571,11 +4924,11 @@ class LibClang { } late final _clang_getTypedefNamePtr = - _lookup>( + _lookup>( 'clang_getTypedefName', ); late final _clang_getTypedefName = _clang_getTypedefNamePtr - .asFunction(); + .asFunction(); /// Compute a hash value for the given cursor. int clang_hashCursor(CXCursor arg0) { @@ -5583,11 +4936,9 @@ class LibClang { } late final _clang_hashCursorPtr = - _lookup>( - 'clang_hashCursor', - ); + _lookup>('clang_hashCursor'); late final _clang_hashCursor = _clang_hashCursorPtr - .asFunction(); + .asFunction(); /// Retrieve the CXSourceLocation represented by the given CXIdxLoc. CXSourceLocation clang_indexLoc_getCXSourceLocation(CXIdxLoc loc) { @@ -5595,12 +4946,12 @@ class LibClang { } late final _clang_indexLoc_getCXSourceLocationPtr = - _lookup>( + _lookup>( 'clang_indexLoc_getCXSourceLocation', ); late final _clang_indexLoc_getCXSourceLocation = _clang_indexLoc_getCXSourceLocationPtr - .asFunction(); + .asFunction(); /// Retrieve the CXIdxFile, file, line, column, and offset represented by /// the given CXIdxLoc. @@ -5627,30 +4978,12 @@ class LibClang { } late final _clang_indexLoc_getFileLocationPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXIdxLoc loc, - ffi.Pointer indexFile, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - > - >('clang_indexLoc_getFileLocation'); + _lookup>( + 'clang_indexLoc_getFileLocation', + ); late final _clang_indexLoc_getFileLocation = _clang_indexLoc_getFileLocationPtr - .asFunction< - void Function( - CXIdxLoc loc, - ffi.Pointer indexFile, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - >(); + .asFunction(); /// Index the given source file and the translation unit corresponding /// to that file via callbacks implemented through #IndexerCallbacks. @@ -5706,41 +5039,11 @@ class LibClang { } late final _clang_indexSourceFilePtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - ffi.UnsignedInt index_callbacks_size, - ffi.UnsignedInt index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer out_TU, - ffi.UnsignedInt TU_options, - ) - > - >('clang_indexSourceFile'); + _lookup>( + 'clang_indexSourceFile', + ); late final _clang_indexSourceFile = _clang_indexSourceFilePtr - .asFunction< - int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - int index_callbacks_size, - int index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - ffi.Pointer out_TU, - int TU_options, - ) - >(); + .asFunction(); /// Same as clang_indexSourceFile but requires a full command line /// for \c command_line_args including argv[0]. This is useful if the standard @@ -5776,41 +5079,11 @@ class LibClang { } late final _clang_indexSourceFileFullArgvPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - ffi.UnsignedInt index_callbacks_size, - ffi.UnsignedInt index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer out_TU, - ffi.UnsignedInt TU_options, - ) - > - >('clang_indexSourceFileFullArgv'); + _lookup>( + 'clang_indexSourceFileFullArgv', + ); late final _clang_indexSourceFileFullArgv = _clang_indexSourceFileFullArgvPtr - .asFunction< - int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - int index_callbacks_size, - int index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - ffi.Pointer out_TU, - int TU_options, - ) - >(); + .asFunction(); /// Index the given translation unit via callbacks implemented through /// #IndexerCallbacks. @@ -5845,29 +5118,11 @@ class LibClang { } late final _clang_indexTranslationUnitPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - ffi.UnsignedInt index_callbacks_size, - ffi.UnsignedInt index_options, - CXTranslationUnit, - ) - > - >('clang_indexTranslationUnit'); + _lookup>( + 'clang_indexTranslationUnit', + ); late final _clang_indexTranslationUnit = _clang_indexTranslationUnitPtr - .asFunction< - int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - int index_callbacks_size, - int index_options, - CXTranslationUnit, - ) - >(); + .asFunction(); ffi.Pointer clang_index_getCXXClassDeclInfo( ffi.Pointer arg0, @@ -5876,20 +5131,12 @@ class LibClang { } late final _clang_index_getCXXClassDeclInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getCXXClassDeclInfo'); + _lookup>( + 'clang_index_getCXXClassDeclInfo', + ); late final _clang_index_getCXXClassDeclInfo = _clang_index_getCXXClassDeclInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); + .asFunction(); /// For retrieving a custom CXIdxClientContainer attached to a /// container. @@ -5900,16 +5147,12 @@ class LibClang { } late final _clang_index_getClientContainerPtr = - _lookup< - ffi.NativeFunction< - CXIdxClientContainer Function(ffi.Pointer) - > - >('clang_index_getClientContainer'); + _lookup>( + 'clang_index_getClientContainer', + ); late final _clang_index_getClientContainer = _clang_index_getClientContainerPtr - .asFunction< - CXIdxClientContainer Function(ffi.Pointer) - >(); + .asFunction(); /// For retrieving a custom CXIdxClientEntity attached to an entity. CXIdxClientEntity clang_index_getClientEntity( @@ -5919,13 +5162,11 @@ class LibClang { } late final _clang_index_getClientEntityPtr = - _lookup< - ffi.NativeFunction< - CXIdxClientEntity Function(ffi.Pointer) - > - >('clang_index_getClientEntity'); + _lookup>( + 'clang_index_getClientEntity', + ); late final _clang_index_getClientEntity = _clang_index_getClientEntityPtr - .asFunction)>(); + .asFunction(); ffi.Pointer clang_index_getIBOutletCollectionAttrInfo(ffi.Pointer arg0) { @@ -5934,19 +5175,11 @@ class LibClang { late final _clang_index_getIBOutletCollectionAttrInfoPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > + ffi.NativeFunction >('clang_index_getIBOutletCollectionAttrInfo'); late final _clang_index_getIBOutletCollectionAttrInfo = _clang_index_getIBOutletCollectionAttrInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); + .asFunction(); ffi.Pointer clang_index_getObjCCategoryDeclInfo( ffi.Pointer arg0, @@ -5955,20 +5188,12 @@ class LibClang { } late final _clang_index_getObjCCategoryDeclInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getObjCCategoryDeclInfo'); + _lookup>( + 'clang_index_getObjCCategoryDeclInfo', + ); late final _clang_index_getObjCCategoryDeclInfo = _clang_index_getObjCCategoryDeclInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); + .asFunction(); ffi.Pointer clang_index_getObjCContainerDeclInfo( ffi.Pointer arg0, @@ -5977,20 +5202,12 @@ class LibClang { } late final _clang_index_getObjCContainerDeclInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getObjCContainerDeclInfo'); + _lookup>( + 'clang_index_getObjCContainerDeclInfo', + ); late final _clang_index_getObjCContainerDeclInfo = _clang_index_getObjCContainerDeclInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); + .asFunction(); ffi.Pointer clang_index_getObjCInterfaceDeclInfo( ffi.Pointer arg0, @@ -5999,20 +5216,12 @@ class LibClang { } late final _clang_index_getObjCInterfaceDeclInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getObjCInterfaceDeclInfo'); + _lookup>( + 'clang_index_getObjCInterfaceDeclInfo', + ); late final _clang_index_getObjCInterfaceDeclInfo = _clang_index_getObjCInterfaceDeclInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); + .asFunction(); ffi.Pointer clang_index_getObjCPropertyDeclInfo( ffi.Pointer arg0, @@ -6021,20 +5230,12 @@ class LibClang { } late final _clang_index_getObjCPropertyDeclInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getObjCPropertyDeclInfo'); + _lookup>( + 'clang_index_getObjCPropertyDeclInfo', + ); late final _clang_index_getObjCPropertyDeclInfo = _clang_index_getObjCPropertyDeclInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); + .asFunction(); ffi.Pointer clang_index_getObjCProtocolRefListInfo(ffi.Pointer arg0) { @@ -6042,31 +5243,24 @@ class LibClang { } late final _clang_index_getObjCProtocolRefListInfoPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('clang_index_getObjCProtocolRefListInfo'); + _lookup>( + 'clang_index_getObjCProtocolRefListInfo', + ); late final _clang_index_getObjCProtocolRefListInfo = _clang_index_getObjCProtocolRefListInfoPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); + .asFunction(); int clang_index_isEntityObjCContainerKind(CXIdxEntityKind arg0) { return _clang_index_isEntityObjCContainerKind(arg0.value); } late final _clang_index_isEntityObjCContainerKindPtr = - _lookup>( + _lookup>( 'clang_index_isEntityObjCContainerKind', ); late final _clang_index_isEntityObjCContainerKind = - _clang_index_isEntityObjCContainerKindPtr.asFunction(); + _clang_index_isEntityObjCContainerKindPtr + .asFunction(); /// For setting a custom CXIdxClientContainer attached to a /// container. @@ -6078,19 +5272,12 @@ class LibClang { } late final _clang_index_setClientContainerPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - CXIdxClientContainer, - ) - > - >('clang_index_setClientContainer'); + _lookup>( + 'clang_index_setClientContainer', + ); late final _clang_index_setClientContainer = _clang_index_setClientContainerPtr - .asFunction< - void Function(ffi.Pointer, CXIdxClientContainer) - >(); + .asFunction(); /// For setting a custom CXIdxClientEntity attached to an entity. void clang_index_setClientEntity( @@ -6101,15 +5288,11 @@ class LibClang { } late final _clang_index_setClientEntityPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, CXIdxClientEntity) - > - >('clang_index_setClientEntity'); + _lookup>( + 'clang_index_setClientEntity', + ); late final _clang_index_setClientEntity = _clang_index_setClientEntityPtr - .asFunction< - void Function(ffi.Pointer, CXIdxClientEntity) - >(); + .asFunction(); /// Determine whether the given cursor kind represents an attribute. int clang_isAttribute(CXCursorKind arg0) { @@ -6117,11 +5300,9 @@ class LibClang { } late final _clang_isAttributePtr = - _lookup>( - 'clang_isAttribute', - ); + _lookup>('clang_isAttribute'); late final _clang_isAttribute = _clang_isAttributePtr - .asFunction(); + .asFunction(); /// Determine whether a CXType has the "const" qualifier set, /// without looking through typedefs that may have added "const" at a @@ -6131,11 +5312,11 @@ class LibClang { } late final _clang_isConstQualifiedTypePtr = - _lookup>( + _lookup>( 'clang_isConstQualifiedType', ); late final _clang_isConstQualifiedType = _clang_isConstQualifiedTypePtr - .asFunction(); + .asFunction(); /// Determine whether the declaration pointed to by this cursor /// is also a definition of that entity. @@ -6144,11 +5325,11 @@ class LibClang { } late final _clang_isCursorDefinitionPtr = - _lookup>( + _lookup>( 'clang_isCursorDefinition', ); late final _clang_isCursorDefinition = _clang_isCursorDefinitionPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents a declaration. int clang_isDeclaration(CXCursorKind arg0) { @@ -6156,11 +5337,11 @@ class LibClang { } late final _clang_isDeclarationPtr = - _lookup>( + _lookup>( 'clang_isDeclaration', ); late final _clang_isDeclaration = _clang_isDeclarationPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents an expression. int clang_isExpression(CXCursorKind arg0) { @@ -6168,11 +5349,11 @@ class LibClang { } late final _clang_isExpressionPtr = - _lookup>( + _lookup>( 'clang_isExpression', ); late final _clang_isExpression = _clang_isExpressionPtr - .asFunction(); + .asFunction(); /// Determine whether the given header is guarded against /// multiple inclusions, either with the conventional @@ -6182,14 +5363,12 @@ class LibClang { } late final _clang_isFileMultipleIncludeGuardedPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXTranslationUnit tu, CXFile file) - > - >('clang_isFileMultipleIncludeGuarded'); + _lookup>( + 'clang_isFileMultipleIncludeGuarded', + ); late final _clang_isFileMultipleIncludeGuarded = _clang_isFileMultipleIncludeGuardedPtr - .asFunction(); + .asFunction(); /// Return 1 if the CXType is a variadic function type, and 0 otherwise. int clang_isFunctionTypeVariadic(CXType T) { @@ -6197,11 +5376,11 @@ class LibClang { } late final _clang_isFunctionTypeVariadicPtr = - _lookup>( + _lookup>( 'clang_isFunctionTypeVariadic', ); late final _clang_isFunctionTypeVariadic = _clang_isFunctionTypeVariadicPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents an invalid /// cursor. @@ -6210,11 +5389,9 @@ class LibClang { } late final _clang_isInvalidPtr = - _lookup>( - 'clang_isInvalid', - ); + _lookup>('clang_isInvalid'); late final _clang_isInvalid = _clang_isInvalidPtr - .asFunction(); + .asFunction(); /// Determine whether the given declaration is invalid. /// @@ -6227,11 +5404,11 @@ class LibClang { } late final _clang_isInvalidDeclarationPtr = - _lookup>( + _lookup>( 'clang_isInvalidDeclaration', ); late final _clang_isInvalidDeclaration = _clang_isInvalidDeclarationPtr - .asFunction(); + .asFunction(); /// Return 1 if the CXType is a POD (plain old data) type, and 0 /// otherwise. @@ -6240,11 +5417,9 @@ class LibClang { } late final _clang_isPODTypePtr = - _lookup>( - 'clang_isPODType', - ); + _lookup>('clang_isPODType'); late final _clang_isPODType = _clang_isPODTypePtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents a preprocessing /// element, such as a preprocessor directive or macro instantiation. @@ -6253,11 +5428,11 @@ class LibClang { } late final _clang_isPreprocessingPtr = - _lookup>( + _lookup>( 'clang_isPreprocessing', ); late final _clang_isPreprocessing = _clang_isPreprocessingPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents a simple /// reference. @@ -6270,11 +5445,9 @@ class LibClang { } late final _clang_isReferencePtr = - _lookup>( - 'clang_isReference', - ); + _lookup>('clang_isReference'); late final _clang_isReference = _clang_isReferencePtr - .asFunction(); + .asFunction(); /// Determine whether a CXType has the "restrict" qualifier set, /// without looking through typedefs that may have added "restrict" at a @@ -6284,11 +5457,11 @@ class LibClang { } late final _clang_isRestrictQualifiedTypePtr = - _lookup>( + _lookup>( 'clang_isRestrictQualifiedType', ); late final _clang_isRestrictQualifiedType = _clang_isRestrictQualifiedTypePtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents a statement. int clang_isStatement(CXCursorKind arg0) { @@ -6296,11 +5469,9 @@ class LibClang { } late final _clang_isStatementPtr = - _lookup>( - 'clang_isStatement', - ); + _lookup>('clang_isStatement'); late final _clang_isStatement = _clang_isStatementPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor kind represents a translation /// unit. @@ -6309,11 +5480,11 @@ class LibClang { } late final _clang_isTranslationUnitPtr = - _lookup>( + _lookup>( 'clang_isTranslationUnit', ); late final _clang_isTranslationUnit = _clang_isTranslationUnitPtr - .asFunction(); + .asFunction(); /// Determine whether the given cursor represents a currently /// unexposed piece of the AST (e.g., CXCursor_UnexposedStmt). @@ -6322,11 +5493,9 @@ class LibClang { } late final _clang_isUnexposedPtr = - _lookup>( - 'clang_isUnexposed', - ); + _lookup>('clang_isUnexposed'); late final _clang_isUnexposed = _clang_isUnexposedPtr - .asFunction(); + .asFunction(); /// Returns 1 if the base class specified by the cursor with kind /// CX_CXXBaseSpecifier is virtual. @@ -6335,11 +5504,11 @@ class LibClang { } late final _clang_isVirtualBasePtr = - _lookup>( + _lookup>( 'clang_isVirtualBase', ); late final _clang_isVirtualBase = _clang_isVirtualBasePtr - .asFunction(); + .asFunction(); /// Determine whether a CXType has the "volatile" qualifier set, /// without looking through typedefs that may have added "volatile" at @@ -6349,11 +5518,11 @@ class LibClang { } late final _clang_isVolatileQualifiedTypePtr = - _lookup>( + _lookup>( 'clang_isVolatileQualifiedType', ); late final _clang_isVolatileQualifiedType = _clang_isVolatileQualifiedTypePtr - .asFunction(); + .asFunction(); /// Deserialize a set of diagnostics from a Clang diagnostics bitcode /// file. @@ -6375,23 +5544,11 @@ class LibClang { } late final _clang_loadDiagnosticsPtr = - _lookup< - ffi.NativeFunction< - CXDiagnosticSet Function( - ffi.Pointer file, - ffi.Pointer error, - ffi.Pointer errorString, - ) - > - >('clang_loadDiagnostics'); + _lookup>( + 'clang_loadDiagnostics', + ); late final _clang_loadDiagnostics = _clang_loadDiagnosticsPtr - .asFunction< - CXDiagnosticSet Function( - ffi.Pointer file, - ffi.Pointer error, - ffi.Pointer errorString, - ) - >(); + .asFunction(); /// Same as \c clang_parseTranslationUnit2, but returns /// the \c CXTranslationUnit instead of an error code. In case of an error this @@ -6418,31 +5575,11 @@ class LibClang { } late final _clang_parseTranslationUnitPtr = - _lookup< - ffi.NativeFunction< - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ) - > - >('clang_parseTranslationUnit'); + _lookup>( + 'clang_parseTranslationUnit', + ); late final _clang_parseTranslationUnit = _clang_parseTranslationUnitPtr - .asFunction< - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ) - >(); + .asFunction(); /// Parse the given source file and the translation unit corresponding /// to that file. @@ -6511,33 +5648,11 @@ class LibClang { } late final _clang_parseTranslationUnit2Ptr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ffi.Pointer out_TU, - ) - > - >('clang_parseTranslationUnit2'); + _lookup>( + 'clang_parseTranslationUnit2', + ); late final _clang_parseTranslationUnit2 = _clang_parseTranslationUnit2Ptr - .asFunction< - int Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ffi.Pointer out_TU, - ) - >(); + .asFunction(); /// Same as clang_parseTranslationUnit2 but requires a full command line /// for \c command_line_args including argv[0]. This is useful if the standard @@ -6567,34 +5682,12 @@ class LibClang { } late final _clang_parseTranslationUnit2FullArgvPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ffi.Pointer out_TU, - ) - > - >('clang_parseTranslationUnit2FullArgv'); + _lookup>( + 'clang_parseTranslationUnit2FullArgv', + ); late final _clang_parseTranslationUnit2FullArgv = _clang_parseTranslationUnit2FullArgvPtr - .asFunction< - int Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - int num_command_line_args, - ffi.Pointer unsaved_files, - int num_unsaved_files, - int options, - ffi.Pointer out_TU, - ) - >(); + .asFunction(); /// Dispose the remapping. void clang_remap_dispose(CXRemapping arg0) { @@ -6602,11 +5695,11 @@ class LibClang { } late final _clang_remap_disposePtr = - _lookup>( + _lookup>( 'clang_remap_dispose', ); late final _clang_remap_dispose = _clang_remap_disposePtr - .asFunction(); + .asFunction(); /// Get the original and the associated filename from the remapping. /// @@ -6624,25 +5717,11 @@ class LibClang { } late final _clang_remap_getFilenamesPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXRemapping, - ffi.UnsignedInt index, - ffi.Pointer original, - ffi.Pointer transformed, - ) - > - >('clang_remap_getFilenames'); + _lookup>( + 'clang_remap_getFilenames', + ); late final _clang_remap_getFilenames = _clang_remap_getFilenamesPtr - .asFunction< - void Function( - CXRemapping, - int index, - ffi.Pointer original, - ffi.Pointer transformed, - ) - >(); + .asFunction(); /// Determine the number of remappings. int clang_remap_getNumFiles(CXRemapping arg0) { @@ -6650,11 +5729,11 @@ class LibClang { } late final _clang_remap_getNumFilesPtr = - _lookup>( + _lookup>( 'clang_remap_getNumFiles', ); late final _clang_remap_getNumFiles = _clang_remap_getNumFilesPtr - .asFunction(); + .asFunction(); /// Reparse the source files that produced this translation unit. /// @@ -6708,25 +5787,11 @@ class LibClang { } late final _clang_reparseTranslationUnitPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXTranslationUnit TU, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer unsaved_files, - ffi.UnsignedInt options, - ) - > - >('clang_reparseTranslationUnit'); + _lookup>( + 'clang_reparseTranslationUnit', + ); late final _clang_reparseTranslationUnit = _clang_reparseTranslationUnitPtr - .asFunction< - int Function( - CXTranslationUnit TU, - int num_unsaved_files, - ffi.Pointer unsaved_files, - int options, - ) - >(); + .asFunction(); /// Saves a translation unit into a serialized representation of /// that translation unit on disk. @@ -6758,23 +5823,11 @@ class LibClang { } late final _clang_saveTranslationUnitPtr = - _lookup< - ffi.NativeFunction< - ffi.Int Function( - CXTranslationUnit TU, - ffi.Pointer FileName, - ffi.UnsignedInt options, - ) - > - >('clang_saveTranslationUnit'); + _lookup>( + 'clang_saveTranslationUnit', + ); late final _clang_saveTranslationUnit = _clang_saveTranslationUnitPtr - .asFunction< - int Function( - CXTranslationUnit TU, - ffi.Pointer FileName, - int options, - ) - >(); + .asFunction(); /// Sort the code-completion results in case-insensitive alphabetical /// order. @@ -6789,22 +5842,12 @@ class LibClang { } late final _clang_sortCodeCompletionResultsPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer Results, - ffi.UnsignedInt NumResults, - ) - > - >('clang_sortCodeCompletionResults'); + _lookup>( + 'clang_sortCodeCompletionResults', + ); late final _clang_sortCodeCompletionResults = _clang_sortCodeCompletionResultsPtr - .asFunction< - void Function( - ffi.Pointer Results, - int NumResults, - ) - >(); + .asFunction(); /// Suspend a translation unit in order to free memory associated with it. /// @@ -6816,11 +5859,11 @@ class LibClang { } late final _clang_suspendTranslationUnitPtr = - _lookup>( + _lookup>( 'clang_suspendTranslationUnit', ); late final _clang_suspendTranslationUnit = _clang_suspendTranslationUnitPtr - .asFunction(); + .asFunction(); /// Enable/disable crash recovery. /// @@ -6831,11 +5874,11 @@ class LibClang { } late final _clang_toggleCrashRecoveryPtr = - _lookup>( + _lookup>( 'clang_toggleCrashRecovery', ); late final _clang_toggleCrashRecovery = _clang_toggleCrashRecoveryPtr - .asFunction(); + .asFunction(); /// Tokenize the source code described by the given range into raw /// lexical tokens. @@ -6861,25 +5904,9 @@ class LibClang { } late final _clang_tokenizePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit TU, - CXSourceRange Range, - ffi.Pointer> Tokens, - ffi.Pointer NumTokens, - ) - > - >('clang_tokenize'); + _lookup>('clang_tokenize'); late final _clang_tokenize = _clang_tokenizePtr - .asFunction< - void Function( - CXTranslationUnit TU, - CXSourceRange Range, - ffi.Pointer> Tokens, - ffi.Pointer NumTokens, - ) - >(); + .asFunction(); /// Visit the children of a particular cursor. /// @@ -6910,23 +5937,11 @@ class LibClang { } late final _clang_visitChildrenPtr = - _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor parent, - CXCursorVisitor visitor, - CXClientData client_data, - ) - > - >('clang_visitChildren'); + _lookup>( + 'clang_visitChildren', + ); late final _clang_visitChildren = _clang_visitChildrenPtr - .asFunction< - int Function( - CXCursor parent, - CXCursorVisitor visitor, - CXClientData client_data, - ) - >(); + .asFunction(); late final addresses = _SymbolAddresses(this); } @@ -6934,1507 +5949,772 @@ class LibClang { class _SymbolAddresses { final LibClang _library; _SymbolAddresses(this._library); - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor) - > - > + ffi.Pointer> get clang_CXCursorSet_contains => _library._clang_CXCursorSet_containsPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor) - > - > + ffi.Pointer> get clang_CXCursorSet_insert => _library._clang_CXCursorSet_insertPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXIndex_getGlobalOptions => _library._clang_CXIndex_getGlobalOptionsPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_CXIndex_setGlobalOptions => _library._clang_CXIndex_setGlobalOptionsPtr; ffi.Pointer< - ffi.NativeFunction Path)> + ffi.NativeFunction > get clang_CXIndex_setInvocationEmissionPathOption => _library._clang_CXIndex_setInvocationEmissionPathOptionPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_CXXConstructor_isConvertingConstructor => _library._clang_CXXConstructor_isConvertingConstructorPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXConstructor_isCopyConstructor => _library._clang_CXXConstructor_isCopyConstructorPtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_CXXConstructor_isDefaultConstructor => _library._clang_CXXConstructor_isDefaultConstructorPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXConstructor_isMoveConstructor => _library._clang_CXXConstructor_isMoveConstructorPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXField_isMutable => _library._clang_CXXField_isMutablePtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isConst => _library._clang_CXXMethod_isConstPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isDefaulted => _library._clang_CXXMethod_isDefaultedPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isPureVirtual => _library._clang_CXXMethod_isPureVirtualPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isStatic => _library._clang_CXXMethod_isStaticPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXMethod_isVirtual => _library._clang_CXXMethod_isVirtualPtr; - ffi.Pointer> + ffi.Pointer> get clang_CXXRecord_isAbstract => _library._clang_CXXRecord_isAbstractPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_Evaluate => _library._clang_Cursor_EvaluatePtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_Cursor_getArgument => _library._clang_Cursor_getArgumentPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getBriefCommentText => _library._clang_Cursor_getBriefCommentTextPtr; - ffi.Pointer Function(CXCursor)>> + ffi.Pointer> get clang_Cursor_getCXXManglings => _library._clang_Cursor_getCXXManglingsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getCommentRange => _library._clang_Cursor_getCommentRangePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getMangling => _library._clang_Cursor_getManglingPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getModule => _library._clang_Cursor_getModulePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getNumArguments => _library._clang_Cursor_getNumArgumentsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getNumTemplateArguments => _library._clang_Cursor_getNumTemplateArgumentsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCDeclQualifiers => _library._clang_Cursor_getObjCDeclQualifiersPtr; - ffi.Pointer Function(CXCursor)>> + ffi.Pointer> get clang_Cursor_getObjCManglings => _library._clang_Cursor_getObjCManglingsPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor C, ffi.UnsignedInt reserved) - > - > + ffi.Pointer> get clang_Cursor_getObjCPropertyAttributes => _library._clang_Cursor_getObjCPropertyAttributesPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCPropertyGetterName => _library._clang_Cursor_getObjCPropertyGetterNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCPropertySetterName => _library._clang_Cursor_getObjCPropertySetterNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getObjCSelectorIndex => _library._clang_Cursor_getObjCSelectorIndexPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getOffsetOfField => _library._clang_Cursor_getOffsetOfFieldPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getRawCommentText => _library._clang_Cursor_getRawCommentTextPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getReceiverType => _library._clang_Cursor_getReceiverTypePtr; - ffi.Pointer< - ffi.NativeFunction< - CXSourceRange Function( - CXCursor, - ffi.UnsignedInt pieceIndex, - ffi.UnsignedInt options, - ) - > - > + ffi.Pointer> get clang_Cursor_getSpellingNameRange => _library._clang_Cursor_getSpellingNameRangePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getStorageClass => _library._clang_Cursor_getStorageClassPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_Cursor_getTemplateArgumentKind => _library._clang_Cursor_getTemplateArgumentKindPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_Cursor_getTemplateArgumentType => _library._clang_Cursor_getTemplateArgumentTypePtr; ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLongLong Function(CXCursor C, ffi.UnsignedInt I) - > + ffi.NativeFunction > get clang_Cursor_getTemplateArgumentUnsignedValue => _library._clang_Cursor_getTemplateArgumentUnsignedValuePtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_Cursor_getTemplateArgumentValue => _library._clang_Cursor_getTemplateArgumentValuePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_getTranslationUnit => _library._clang_Cursor_getTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_hasAttrs => _library._clang_Cursor_hasAttrsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isAnonymous => _library._clang_Cursor_isAnonymousPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isAnonymousRecordDecl => _library._clang_Cursor_isAnonymousRecordDeclPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isBitField => _library._clang_Cursor_isBitFieldPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isDynamicCall => _library._clang_Cursor_isDynamicCallPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor C, - ffi.Pointer language, - ffi.Pointer definedIn, - ffi.Pointer isGenerated, - ) - > - > + ffi.Pointer> get clang_Cursor_isExternalSymbol => _library._clang_Cursor_isExternalSymbolPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isFunctionInlined => _library._clang_Cursor_isFunctionInlinedPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isInlineNamespace => _library._clang_Cursor_isInlineNamespacePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isMacroBuiltin => _library._clang_Cursor_isMacroBuiltinPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isMacroFunctionLike => _library._clang_Cursor_isMacroFunctionLikePtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isNull => _library._clang_Cursor_isNullPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isObjCOptional => _library._clang_Cursor_isObjCOptionalPtr; - ffi.Pointer> + ffi.Pointer> get clang_Cursor_isVariadic => _library._clang_Cursor_isVariadicPtr; - ffi.Pointer> + ffi.Pointer> get clang_EnumDecl_isScoped => _library._clang_EnumDecl_isScopedPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_dispose => _library._clang_EvalResult_disposePtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsDouble => _library._clang_EvalResult_getAsDoublePtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsInt => _library._clang_EvalResult_getAsIntPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsLongLong => _library._clang_EvalResult_getAsLongLongPtr; - ffi.Pointer< - ffi.NativeFunction Function(CXEvalResult E)> - > + ffi.Pointer> get clang_EvalResult_getAsStr => _library._clang_EvalResult_getAsStrPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getAsUnsigned => _library._clang_EvalResult_getAsUnsignedPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_getKind => _library._clang_EvalResult_getKindPtr; - ffi.Pointer> + ffi.Pointer> get clang_EvalResult_isUnsignedInt => _library._clang_EvalResult_isUnsignedIntPtr; - ffi.Pointer> + ffi.Pointer> get clang_File_isEqual => _library._clang_File_isEqualPtr; - ffi.Pointer> + ffi.Pointer> get clang_File_tryGetRealPathName => _library._clang_File_tryGetRealPathNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_IndexAction_create => _library._clang_IndexAction_createPtr; - ffi.Pointer> + ffi.Pointer> get clang_IndexAction_dispose => _library._clang_IndexAction_disposePtr; - ffi.Pointer> + ffi.Pointer> get clang_Location_isFromMainFile => _library._clang_Location_isFromMainFilePtr; - ffi.Pointer> + ffi.Pointer> get clang_Location_isInSystemHeader => _library._clang_Location_isInSystemHeaderPtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getASTFile => _library._clang_Module_getASTFilePtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getFullName => _library._clang_Module_getFullNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getName => _library._clang_Module_getNamePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXTranslationUnit, CXModule Module) - > - > + ffi.Pointer> get clang_Module_getNumTopLevelHeaders => _library._clang_Module_getNumTopLevelHeadersPtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_getParent => _library._clang_Module_getParentPtr; - ffi.Pointer< - ffi.NativeFunction< - CXFile Function(CXTranslationUnit, CXModule Module, ffi.UnsignedInt Index) - > - > + ffi.Pointer> get clang_Module_getTopLevelHeader => _library._clang_Module_getTopLevelHeaderPtr; - ffi.Pointer> + ffi.Pointer> get clang_Module_isSystem => _library._clang_Module_isSystemPtr; - ffi.Pointer> + ffi.Pointer> get clang_PrintingPolicy_dispose => _library._clang_PrintingPolicy_disposePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXPrintingPolicy Policy, - ffi.UnsignedInt Property, - ) - > - > + ffi.Pointer> get clang_PrintingPolicy_getProperty => _library._clang_PrintingPolicy_getPropertyPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXPrintingPolicy Policy, - ffi.UnsignedInt Property, - ffi.UnsignedInt Value, - ) - > - > + ffi.Pointer> get clang_PrintingPolicy_setProperty => _library._clang_PrintingPolicy_setPropertyPtr; - ffi.Pointer> + ffi.Pointer> get clang_Range_isNull => _library._clang_Range_isNullPtr; - ffi.Pointer> + ffi.Pointer> get clang_TargetInfo_dispose => _library._clang_TargetInfo_disposePtr; - ffi.Pointer> + ffi.Pointer> get clang_TargetInfo_getPointerWidth => _library._clang_TargetInfo_getPointerWidthPtr; - ffi.Pointer> + ffi.Pointer> get clang_TargetInfo_getTriple => _library._clang_TargetInfo_getTriplePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getAlignOf => _library._clang_Type_getAlignOfPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getCXXRefQualifier => _library._clang_Type_getCXXRefQualifierPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getClassType => _library._clang_Type_getClassTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getModifiedType => _library._clang_Type_getModifiedTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNamedType => _library._clang_Type_getNamedTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNullability => _library._clang_Type_getNullabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNumObjCProtocolRefs => _library._clang_Type_getNumObjCProtocolRefsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNumObjCTypeArgs => _library._clang_Type_getNumObjCTypeArgsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getNumTemplateArguments => _library._clang_Type_getNumTemplateArgumentsPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getObjCEncoding => _library._clang_Type_getObjCEncodingPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getObjCObjectBaseType => _library._clang_Type_getObjCObjectBaseTypePtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_Type_getObjCProtocolDecl => _library._clang_Type_getObjCProtocolDeclPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getObjCTypeArg => _library._clang_Type_getObjCTypeArgPtr; - ffi.Pointer< - ffi.NativeFunction S)> - > + ffi.Pointer> get clang_Type_getOffsetOf => _library._clang_Type_getOffsetOfPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getSizeOf => _library._clang_Type_getSizeOfPtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_getTemplateArgumentAsType => _library._clang_Type_getTemplateArgumentAsTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_Type_isTransparentTagTypedef => _library._clang_Type_isTransparentTagTypedefPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXType T, - CXFieldVisitor visitor, - CXClientData client_data, - ) - > - > + ffi.Pointer> get clang_Type_visitFields => _library._clang_Type_visitFieldsPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit TU, - ffi.Pointer Tokens, - ffi.UnsignedInt NumTokens, - ffi.Pointer Cursors, - ) - > - > + ffi.Pointer> get clang_annotateTokens => _library._clang_annotateTokensPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CXTranslationUnit TU, - ffi.Pointer complete_filename, - ffi.UnsignedInt complete_line, - ffi.UnsignedInt complete_column, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ) - > - > + ffi.Pointer> get clang_codeCompleteAt => _library._clang_codeCompleteAtPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer Results, - ffi.Pointer IsIncomplete, - ) - > - > + ffi.Pointer> get clang_codeCompleteGetContainerKind => _library._clang_codeCompleteGetContainerKindPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function(ffi.Pointer Results) - > - > + ffi.Pointer> get clang_codeCompleteGetContainerUSR => _library._clang_codeCompleteGetContainerUSRPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLongLong Function(ffi.Pointer Results) - > - > + ffi.Pointer> get clang_codeCompleteGetContexts => _library._clang_codeCompleteGetContextsPtr; - ffi.Pointer< - ffi.NativeFunction< - CXDiagnostic Function( - ffi.Pointer Results, - ffi.UnsignedInt Index, - ) - > - > + ffi.Pointer> get clang_codeCompleteGetDiagnostic => _library._clang_codeCompleteGetDiagnosticPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer Results) - > - > + ffi.Pointer> get clang_codeCompleteGetNumDiagnostics => _library._clang_codeCompleteGetNumDiagnosticsPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function(ffi.Pointer Results) - > - > + ffi.Pointer> get clang_codeCompleteGetObjCSelector => _library._clang_codeCompleteGetObjCSelectorPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function( - ffi.Pointer class_name, - ffi.Pointer category_name, - ) - > - > + ffi.Pointer> get clang_constructUSR_ObjCCategory => _library._clang_constructUSR_ObjCCategoryPtr; - ffi.Pointer< - ffi.NativeFunction class_name)> - > + ffi.Pointer> get clang_constructUSR_ObjCClass => _library._clang_constructUSR_ObjCClassPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function(ffi.Pointer name, CXString classUSR) - > - > + ffi.Pointer> get clang_constructUSR_ObjCIvar => _library._clang_constructUSR_ObjCIvarPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function( - ffi.Pointer name, - ffi.UnsignedInt isInstanceMethod, - CXString classUSR, - ) - > - > + ffi.Pointer> get clang_constructUSR_ObjCMethod => _library._clang_constructUSR_ObjCMethodPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function(ffi.Pointer property, CXString classUSR) - > - > + ffi.Pointer> get clang_constructUSR_ObjCProperty => _library._clang_constructUSR_ObjCPropertyPtr; - ffi.Pointer< - ffi.NativeFunction protocol_name)> - > + ffi.Pointer> get clang_constructUSR_ObjCProtocol => _library._clang_constructUSR_ObjCProtocolPtr; - ffi.Pointer> + ffi.Pointer> get clang_createCXCursorSet => _library._clang_createCXCursorSetPtr; - ffi.Pointer< - ffi.NativeFunction< - CXIndex Function( - ffi.Int excludeDeclarationsFromPCH, - ffi.Int displayDiagnostics, - ) - > - > + ffi.Pointer> get clang_createIndex => _library._clang_createIndexPtr; - ffi.Pointer< - ffi.NativeFunction< - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer ast_filename, - ) - > - > + ffi.Pointer> get clang_createTranslationUnit => _library._clang_createTranslationUnitPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXIndex CIdx, - ffi.Pointer ast_filename, - ffi.Pointer out_TU, - ) - > - > + ffi.Pointer> get clang_createTranslationUnit2 => _library._clang_createTranslationUnit2Ptr; ffi.Pointer< - ffi.NativeFunction< - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Int num_clang_command_line_args, - ffi.Pointer> clang_command_line_args, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer unsaved_files, - ) - > + ffi.NativeFunction > get clang_createTranslationUnitFromSourceFile => _library._clang_createTranslationUnitFromSourceFilePtr; - ffi.Pointer> + ffi.Pointer> get clang_defaultCodeCompleteOptions => _library._clang_defaultCodeCompleteOptionsPtr; - ffi.Pointer> + ffi.Pointer> get clang_defaultDiagnosticDisplayOptions => _library._clang_defaultDiagnosticDisplayOptionsPtr; - ffi.Pointer> - get clang_defaultEditingTranslationUnitOptions => - _library._clang_defaultEditingTranslationUnitOptionsPtr; ffi.Pointer< - ffi.NativeFunction + ffi.NativeFunction > + get clang_defaultEditingTranslationUnitOptions => + _library._clang_defaultEditingTranslationUnitOptionsPtr; + ffi.Pointer> get clang_defaultReparseOptions => _library._clang_defaultReparseOptionsPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_defaultSaveOptions => _library._clang_defaultSaveOptionsPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeCXCursorSet => _library._clang_disposeCXCursorSetPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer availability) - > - > + ffi.Pointer> get clang_disposeCXPlatformAvailability => _library._clang_disposeCXPlatformAvailabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeCXTUResourceUsage => _library._clang_disposeCXTUResourceUsagePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer Results) - > - > + ffi.Pointer> get clang_disposeCodeCompleteResults => _library._clang_disposeCodeCompleteResultsPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeDiagnostic => _library._clang_disposeDiagnosticPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeDiagnosticSet => _library._clang_disposeDiagnosticSetPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeIndex => _library._clang_disposeIndexPtr; - ffi.Pointer< - ffi.NativeFunction overridden)> - > + ffi.Pointer> get clang_disposeOverriddenCursors => _library._clang_disposeOverriddenCursorsPtr; - ffi.Pointer< - ffi.NativeFunction ranges)> - > + ffi.Pointer> get clang_disposeSourceRangeList => _library._clang_disposeSourceRangeListPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeString => _library._clang_disposeStringPtr; - ffi.Pointer< - ffi.NativeFunction set)> - > + ffi.Pointer> get clang_disposeStringSet => _library._clang_disposeStringSetPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit TU, - ffi.Pointer Tokens, - ffi.UnsignedInt NumTokens, - ) - > - > + ffi.Pointer> get clang_disposeTokens => _library._clang_disposeTokensPtr; - ffi.Pointer> + ffi.Pointer> get clang_disposeTranslationUnit => _library._clang_disposeTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer> get clang_enableStackTraces => _library._clang_enableStackTracesPtr; - ffi.Pointer> + ffi.Pointer> get clang_equalCursors => _library._clang_equalCursorsPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXSourceLocation loc1, CXSourceLocation loc2) - > - > + ffi.Pointer> get clang_equalLocations => _library._clang_equalLocationsPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXSourceRange range1, CXSourceRange range2) - > - > + ffi.Pointer> get clang_equalRanges => _library._clang_equalRangesPtr; - ffi.Pointer> + ffi.Pointer> get clang_equalTypes => _library._clang_equalTypesPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer< - ffi.NativeFunction)> - > - fn, - ffi.Pointer user_data, - ffi.UnsignedInt stack_size, - ) - > - > + ffi.Pointer> get clang_executeOnThread => _library._clang_executeOnThreadPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXTranslationUnit TU, - CXFile file, - CXCursorAndRangeVisitor visitor, - ) - > - > + ffi.Pointer> get clang_findIncludesInFile => _library._clang_findIncludesInFilePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor cursor, - CXFile file, - CXCursorAndRangeVisitor visitor, - ) - > - > + ffi.Pointer> get clang_findReferencesInFile => _library._clang_findReferencesInFilePtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Options) - > - > + ffi.Pointer> get clang_formatDiagnostic => _library._clang_formatDiagnosticPtr; - ffi.Pointer> + ffi.Pointer> get clang_getAddressSpace => _library._clang_getAddressSpacePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit tu) - > - > + ffi.Pointer> get clang_getAllSkippedRanges => _library._clang_getAllSkippedRangesPtr; - ffi.Pointer> + ffi.Pointer> get clang_getArgType => _library._clang_getArgTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getArrayElementType => _library._clang_getArrayElementTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getArraySize => _library._clang_getArraySizePtr; - ffi.Pointer< - ffi.NativeFunction Function(CXString string)> - > + ffi.Pointer> get clang_getCString => _library._clang_getCStringPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getCXTUResourceUsage => _library._clang_getCXTUResourceUsagePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCXXAccessSpecifier => _library._clang_getCXXAccessSpecifierPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCanonicalCursor => _library._clang_getCanonicalCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCanonicalType => _library._clang_getCanonicalTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getChildDiagnostics => _library._clang_getChildDiagnosticsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getClangVersion => _library._clang_getClangVersionPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function( - CXCompletionString completion_string, - ffi.UnsignedInt annotation_number, - ) - > - > + ffi.Pointer> get clang_getCompletionAnnotation => _library._clang_getCompletionAnnotationPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString completion_string) - > - > + ffi.Pointer> get clang_getCompletionAvailability => _library._clang_getCompletionAvailabilityPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getCompletionBriefComment => _library._clang_getCompletionBriefCommentPtr; ffi.Pointer< - ffi.NativeFunction< - CXCompletionString Function( - CXCompletionString completion_string, - ffi.UnsignedInt chunk_number, - ) - > + ffi.NativeFunction > get clang_getCompletionChunkCompletionString => _library._clang_getCompletionChunkCompletionStringPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCompletionString completion_string, - ffi.UnsignedInt chunk_number, - ) - > - > + ffi.Pointer> get clang_getCompletionChunkKind => _library._clang_getCompletionChunkKindPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function( - CXCompletionString completion_string, - ffi.UnsignedInt chunk_number, - ) - > - > + ffi.Pointer> get clang_getCompletionChunkText => _library._clang_getCompletionChunkTextPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function( - ffi.Pointer results, - ffi.UnsignedInt completion_index, - ffi.UnsignedInt fixit_index, - ffi.Pointer replacement_range, - ) - > - > + ffi.Pointer> get clang_getCompletionFixIt => _library._clang_getCompletionFixItPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString completion_string) - > - > + ffi.Pointer> get clang_getCompletionNumAnnotations => _library._clang_getCompletionNumAnnotationsPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer results, - ffi.UnsignedInt completion_index, - ) - > - > + ffi.Pointer> get clang_getCompletionNumFixIts => _library._clang_getCompletionNumFixItsPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function( - CXCompletionString completion_string, - ffi.Pointer kind, - ) - > - > + ffi.Pointer> get clang_getCompletionParent => _library._clang_getCompletionParentPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString completion_string) - > - > + ffi.Pointer> get clang_getCompletionPriority => _library._clang_getCompletionPriorityPtr; - ffi.Pointer< - ffi.NativeFunction - > - get clang_getCursor => _library._clang_getCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursor => + _library._clang_getCursorPtr; + ffi.Pointer> get clang_getCursorAvailability => _library._clang_getCursorAvailabilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorCompletionString => _library._clang_getCursorCompletionStringPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorDefinition => _library._clang_getCursorDefinitionPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorDisplayName => _library._clang_getCursorDisplayNamePtr; - ffi.Pointer> + ffi.Pointer< + ffi.NativeFunction + > get clang_getCursorExceptionSpecificationType => _library._clang_getCursorExceptionSpecificationTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorExtent => _library._clang_getCursorExtentPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorKind => _library._clang_getCursorKindPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorKindSpelling => _library._clang_getCursorKindSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLanguage => _library._clang_getCursorLanguagePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLexicalParent => _library._clang_getCursorLexicalParentPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLinkage => _library._clang_getCursorLinkagePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorLocation => _library._clang_getCursorLocationPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - CXCursor cursor, - ffi.Pointer always_deprecated, - ffi.Pointer deprecated_message, - ffi.Pointer always_unavailable, - ffi.Pointer unavailable_message, - ffi.Pointer availability, - ffi.Int availability_size, - ) - > - > + ffi.Pointer> get clang_getCursorPlatformAvailability => _library._clang_getCursorPlatformAvailabilityPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function(CXCursor Cursor, CXPrintingPolicy Policy) - > - > + ffi.Pointer> get clang_getCursorPrettyPrinted => _library._clang_getCursorPrettyPrintedPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorPrintingPolicy => _library._clang_getCursorPrintingPolicyPtr; - ffi.Pointer< - ffi.NativeFunction< - CXSourceRange Function( - CXCursor C, - ffi.UnsignedInt NameFlags, - ffi.UnsignedInt PieceIndex, - ) - > - > + ffi.Pointer> get clang_getCursorReferenceNameRange => _library._clang_getCursorReferenceNameRangePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorReferenced => _library._clang_getCursorReferencedPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorResultType => _library._clang_getCursorResultTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorSemanticParent => _library._clang_getCursorSemanticParentPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorSpelling => _library._clang_getCursorSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorTLSKind => _library._clang_getCursorTLSKindPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorType => _library._clang_getCursorTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorUSR => _library._clang_getCursorUSRPtr; - ffi.Pointer> + ffi.Pointer> get clang_getCursorVisibility => _library._clang_getCursorVisibilityPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDeclObjCTypeEncoding => _library._clang_getDeclObjCTypeEncodingPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXCursor, - ffi.Pointer> startBuf, - ffi.Pointer> endBuf, - ffi.Pointer startLine, - ffi.Pointer startColumn, - ffi.Pointer endLine, - ffi.Pointer endColumn, - ) - > - > + ffi.Pointer> get clang_getDefinitionSpellingAndExtent => _library._clang_getDefinitionSpellingAndExtentPtr; - ffi.Pointer< - ffi.NativeFunction< - CXDiagnostic Function(CXTranslationUnit Unit, ffi.UnsignedInt Index) - > - > + ffi.Pointer> get clang_getDiagnostic => _library._clang_getDiagnosticPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticCategory => _library._clang_getDiagnosticCategoryPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticCategoryName => _library._clang_getDiagnosticCategoryNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticCategoryText => _library._clang_getDiagnosticCategoryTextPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function( - CXDiagnostic Diagnostic, - ffi.UnsignedInt FixIt, - ffi.Pointer ReplacementRange, - ) - > - > + ffi.Pointer> get clang_getDiagnosticFixIt => _library._clang_getDiagnosticFixItPtr; - ffi.Pointer< - ffi.NativeFunction< - CXDiagnostic Function(CXDiagnosticSet Diags, ffi.UnsignedInt Index) - > - > + ffi.Pointer> get clang_getDiagnosticInSet => _library._clang_getDiagnosticInSetPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticLocation => _library._clang_getDiagnosticLocationPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getDiagnosticNumFixIts => _library._clang_getDiagnosticNumFixItsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticNumRanges => _library._clang_getDiagnosticNumRangesPtr; - ffi.Pointer< - ffi.NativeFunction< - CXString Function(CXDiagnostic Diag, ffi.Pointer Disable) - > - > + ffi.Pointer> get clang_getDiagnosticOption => _library._clang_getDiagnosticOptionPtr; - ffi.Pointer< - ffi.NativeFunction< - CXSourceRange Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Range) - > - > + ffi.Pointer> get clang_getDiagnosticRange => _library._clang_getDiagnosticRangePtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getDiagnosticSetFromTU => _library._clang_getDiagnosticSetFromTUPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticSeverity => _library._clang_getDiagnosticSeverityPtr; - ffi.Pointer> + ffi.Pointer> get clang_getDiagnosticSpelling => _library._clang_getDiagnosticSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getElementType => _library._clang_getElementTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getEnumConstantDeclUnsignedValue => _library._clang_getEnumConstantDeclUnsignedValuePtr; - ffi.Pointer> + ffi.Pointer> get clang_getEnumConstantDeclValue => _library._clang_getEnumConstantDeclValuePtr; - ffi.Pointer> + ffi.Pointer> get clang_getEnumDeclIntegerType => _library._clang_getEnumDeclIntegerTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getExceptionSpecificationType => _library._clang_getExceptionSpecificationTypePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - > - > + ffi.Pointer> get clang_getExpansionLocation => _library._clang_getExpansionLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getFieldDeclBitWidth => _library._clang_getFieldDeclBitWidthPtr; - ffi.Pointer< - ffi.NativeFunction< - CXFile Function(CXTranslationUnit tu, ffi.Pointer file_name) - > - > - get clang_getFile => _library._clang_getFilePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CXTranslationUnit tu, - CXFile file, - ffi.Pointer size, - ) - > - > + ffi.Pointer> get clang_getFile => + _library._clang_getFilePtr; + ffi.Pointer> get clang_getFileContents => _library._clang_getFileContentsPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - > - > + ffi.Pointer> get clang_getFileLocation => _library._clang_getFileLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getFileName => _library._clang_getFileNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_getFileTime => _library._clang_getFileTimePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function(CXFile file, ffi.Pointer outID) - > - > + ffi.Pointer> get clang_getFileUniqueID => _library._clang_getFileUniqueIDPtr; - ffi.Pointer> + ffi.Pointer> get clang_getFunctionTypeCallingConv => _library._clang_getFunctionTypeCallingConvPtr; - ffi.Pointer> + ffi.Pointer> get clang_getIBOutletCollectionType => _library._clang_getIBOutletCollectionTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getIncludedFile => _library._clang_getIncludedFilePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit tu, - CXInclusionVisitor visitor, - CXClientData client_data, - ) - > - > + ffi.Pointer> get clang_getInclusions => _library._clang_getInclusionsPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - > - > + ffi.Pointer> get clang_getInstantiationLocation => _library._clang_getInstantiationLocationPtr; - ffi.Pointer< - ffi.NativeFunction< - CXSourceLocation Function( - CXTranslationUnit tu, - CXFile file, - ffi.UnsignedInt line, - ffi.UnsignedInt column, - ) - > - > + ffi.Pointer> get clang_getLocation => _library._clang_getLocationPtr; - ffi.Pointer< - ffi.NativeFunction< - CXSourceLocation Function( - CXTranslationUnit tu, - CXFile file, - ffi.UnsignedInt offset, - ) - > - > + ffi.Pointer> get clang_getLocationForOffset => _library._clang_getLocationForOffsetPtr; - ffi.Pointer> + ffi.Pointer> get clang_getModuleForFile => _library._clang_getModuleForFilePtr; - ffi.Pointer> + ffi.Pointer> get clang_getNullCursor => _library._clang_getNullCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNullLocation => _library._clang_getNullLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNullRange => _library._clang_getNullRangePtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumArgTypes => _library._clang_getNumArgTypesPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCompletionString completion_string) - > - > + ffi.Pointer> get clang_getNumCompletionChunks => _library._clang_getNumCompletionChunksPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getNumDiagnostics => _library._clang_getNumDiagnosticsPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getNumDiagnosticsInSet => _library._clang_getNumDiagnosticsInSetPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumElements => _library._clang_getNumElementsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getNumOverloadedDecls => _library._clang_getNumOverloadedDeclsPtr; - ffi.Pointer< - ffi.NativeFunction< - CXCursor Function(CXCursor cursor, ffi.UnsignedInt index) - > - > + ffi.Pointer> get clang_getOverloadedDecl => _library._clang_getOverloadedDeclPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXCursor cursor, - ffi.Pointer> overridden, - ffi.Pointer num_overridden, - ) - > - > + ffi.Pointer> get clang_getOverriddenCursors => _library._clang_getOverriddenCursorsPtr; - ffi.Pointer> + ffi.Pointer> get clang_getPointeeType => _library._clang_getPointeeTypePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer filename, - ffi.Pointer line, - ffi.Pointer column, - ) - > - > + ffi.Pointer> get clang_getPresumedLocation => _library._clang_getPresumedLocationPtr; - ffi.Pointer< - ffi.NativeFunction< - CXSourceRange Function(CXSourceLocation begin, CXSourceLocation end) - > - > - get clang_getRange => _library._clang_getRangePtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getRange => + _library._clang_getRangePtr; + ffi.Pointer> get clang_getRangeEnd => _library._clang_getRangeEndPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getRangeStart => _library._clang_getRangeStartPtr; - ffi.Pointer< - ffi.NativeFunction path)> - > + ffi.Pointer> get clang_getRemappings => _library._clang_getRemappingsPtr; - ffi.Pointer< - ffi.NativeFunction< - CXRemapping Function( - ffi.Pointer> filePaths, - ffi.UnsignedInt numFiles, - ) - > - > + ffi.Pointer> get clang_getRemappingsFromFileList => _library._clang_getRemappingsFromFileListPtr; - ffi.Pointer> + ffi.Pointer> get clang_getResultType => _library._clang_getResultTypePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(CXTranslationUnit tu, CXFile file) - > - > + ffi.Pointer> get clang_getSkippedRanges => _library._clang_getSkippedRangesPtr; - ffi.Pointer> - get clang_getSpecializedCursorTemplate => - _library._clang_getSpecializedCursorTemplatePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXSourceLocation location, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - > - > - get clang_getSpellingLocation => _library._clang_getSpellingLocationPtr; - ffi.Pointer< - ffi.NativeFunction Function(ffi.UnsignedInt kind)> - > - get clang_getTUResourceUsageName => _library._clang_getTUResourceUsageNamePtr; - ffi.Pointer> - get clang_getTemplateCursorKind => _library._clang_getTemplateCursorKindPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - CXTranslationUnit TU, - CXSourceLocation Location, - ) - > - > - get clang_getToken => _library._clang_getTokenPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> + get clang_getSpecializedCursorTemplate => + _library._clang_getSpecializedCursorTemplatePtr; + ffi.Pointer> + get clang_getSpellingLocation => _library._clang_getSpellingLocationPtr; + ffi.Pointer> + get clang_getTUResourceUsageName => _library._clang_getTUResourceUsageNamePtr; + ffi.Pointer> + get clang_getTemplateCursorKind => _library._clang_getTemplateCursorKindPtr; + ffi.Pointer> get clang_getToken => + _library._clang_getTokenPtr; + ffi.Pointer> get clang_getTokenExtent => _library._clang_getTokenExtentPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTokenKind => _library._clang_getTokenKindPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getTokenLocation => _library._clang_getTokenLocationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTokenSpelling => _library._clang_getTokenSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTranslationUnitCursor => _library._clang_getTranslationUnitCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTranslationUnitSpelling => _library._clang_getTranslationUnitSpellingPtr; - ffi.Pointer< - ffi.NativeFunction - > + ffi.Pointer> get clang_getTranslationUnitTargetInfo => _library._clang_getTranslationUnitTargetInfoPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypeDeclaration => _library._clang_getTypeDeclarationPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypeKindSpelling => _library._clang_getTypeKindSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypeSpelling => _library._clang_getTypeSpellingPtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypedefDeclUnderlyingType => _library._clang_getTypedefDeclUnderlyingTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_getTypedefName => _library._clang_getTypedefNamePtr; - ffi.Pointer> + ffi.Pointer> get clang_hashCursor => _library._clang_hashCursorPtr; - ffi.Pointer> + ffi.Pointer> get clang_indexLoc_getCXSourceLocation => _library._clang_indexLoc_getCXSourceLocationPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXIdxLoc loc, - ffi.Pointer indexFile, - ffi.Pointer file, - ffi.Pointer line, - ffi.Pointer column, - ffi.Pointer offset, - ) - > - > + ffi.Pointer> get clang_indexLoc_getFileLocation => _library._clang_indexLoc_getFileLocationPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - ffi.UnsignedInt index_callbacks_size, - ffi.UnsignedInt index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer out_TU, - ffi.UnsignedInt TU_options, - ) - > - > + ffi.Pointer> get clang_indexSourceFile => _library._clang_indexSourceFilePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - ffi.UnsignedInt index_callbacks_size, - ffi.UnsignedInt index_options, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer out_TU, - ffi.UnsignedInt TU_options, - ) - > - > + ffi.Pointer> get clang_indexSourceFileFullArgv => _library._clang_indexSourceFileFullArgvPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - CXIndexAction, - CXClientData client_data, - ffi.Pointer index_callbacks, - ffi.UnsignedInt index_callbacks_size, - ffi.UnsignedInt index_options, - CXTranslationUnit, - ) - > - > + ffi.Pointer> get clang_indexTranslationUnit => _library._clang_indexTranslationUnitPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer) - > - > + ffi.Pointer> get clang_index_getCXXClassDeclInfo => _library._clang_index_getCXXClassDeclInfoPtr; - ffi.Pointer< - ffi.NativeFunction< - CXIdxClientContainer Function(ffi.Pointer) - > - > + ffi.Pointer> get clang_index_getClientContainer => _library._clang_index_getClientContainerPtr; - ffi.Pointer< - ffi.NativeFunction)> - > + ffi.Pointer> get clang_index_getClientEntity => _library._clang_index_getClientEntityPtr; ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > + ffi.NativeFunction > get clang_index_getIBOutletCollectionAttrInfo => _library._clang_index_getIBOutletCollectionAttrInfoPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - > + ffi.Pointer> get clang_index_getObjCCategoryDeclInfo => _library._clang_index_getObjCCategoryDeclInfoPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - > + ffi.Pointer> get clang_index_getObjCContainerDeclInfo => _library._clang_index_getObjCContainerDeclInfoPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - > + ffi.Pointer> get clang_index_getObjCInterfaceDeclInfo => _library._clang_index_getObjCInterfaceDeclInfoPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - > + ffi.Pointer> get clang_index_getObjCPropertyDeclInfo => _library._clang_index_getObjCPropertyDeclInfoPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - > + ffi.Pointer> get clang_index_getObjCProtocolRefListInfo => _library._clang_index_getObjCProtocolRefListInfoPtr; - ffi.Pointer> + ffi.Pointer> get clang_index_isEntityObjCContainerKind => _library._clang_index_isEntityObjCContainerKindPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, CXIdxClientContainer) - > - > + ffi.Pointer> get clang_index_setClientContainer => _library._clang_index_setClientContainerPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, CXIdxClientEntity) - > - > + ffi.Pointer> get clang_index_setClientEntity => _library._clang_index_setClientEntityPtr; - ffi.Pointer> + ffi.Pointer> get clang_isAttribute => _library._clang_isAttributePtr; - ffi.Pointer> + ffi.Pointer> get clang_isConstQualifiedType => _library._clang_isConstQualifiedTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_isCursorDefinition => _library._clang_isCursorDefinitionPtr; - ffi.Pointer> + ffi.Pointer> get clang_isDeclaration => _library._clang_isDeclarationPtr; - ffi.Pointer> + ffi.Pointer> get clang_isExpression => _library._clang_isExpressionPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXTranslationUnit tu, CXFile file) - > - > + ffi.Pointer> get clang_isFileMultipleIncludeGuarded => _library._clang_isFileMultipleIncludeGuardedPtr; - ffi.Pointer> + ffi.Pointer> get clang_isFunctionTypeVariadic => _library._clang_isFunctionTypeVariadicPtr; - ffi.Pointer> - get clang_isInvalid => _library._clang_isInvalidPtr; - ffi.Pointer> + ffi.Pointer> get clang_isInvalid => + _library._clang_isInvalidPtr; + ffi.Pointer> get clang_isInvalidDeclaration => _library._clang_isInvalidDeclarationPtr; - ffi.Pointer> - get clang_isPODType => _library._clang_isPODTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_isPODType => + _library._clang_isPODTypePtr; + ffi.Pointer> get clang_isPreprocessing => _library._clang_isPreprocessingPtr; - ffi.Pointer> + ffi.Pointer> get clang_isReference => _library._clang_isReferencePtr; - ffi.Pointer> + ffi.Pointer> get clang_isRestrictQualifiedType => _library._clang_isRestrictQualifiedTypePtr; - ffi.Pointer> + ffi.Pointer> get clang_isStatement => _library._clang_isStatementPtr; - ffi.Pointer> + ffi.Pointer> get clang_isTranslationUnit => _library._clang_isTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer> get clang_isUnexposed => _library._clang_isUnexposedPtr; - ffi.Pointer> + ffi.Pointer> get clang_isVirtualBase => _library._clang_isVirtualBasePtr; - ffi.Pointer> + ffi.Pointer> get clang_isVolatileQualifiedType => _library._clang_isVolatileQualifiedTypePtr; - ffi.Pointer< - ffi.NativeFunction< - CXDiagnosticSet Function( - ffi.Pointer file, - ffi.Pointer error, - ffi.Pointer errorString, - ) - > - > + ffi.Pointer> get clang_loadDiagnostics => _library._clang_loadDiagnosticsPtr; - ffi.Pointer< - ffi.NativeFunction< - CXTranslationUnit Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ) - > - > + ffi.Pointer> get clang_parseTranslationUnit => _library._clang_parseTranslationUnitPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ffi.Pointer out_TU, - ) - > - > + ffi.Pointer> get clang_parseTranslationUnit2 => _library._clang_parseTranslationUnit2Ptr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXIndex CIdx, - ffi.Pointer source_filename, - ffi.Pointer> command_line_args, - ffi.Int num_command_line_args, - ffi.Pointer unsaved_files, - ffi.UnsignedInt num_unsaved_files, - ffi.UnsignedInt options, - ffi.Pointer out_TU, - ) - > - > + ffi.Pointer> get clang_parseTranslationUnit2FullArgv => _library._clang_parseTranslationUnit2FullArgvPtr; - ffi.Pointer> + ffi.Pointer> get clang_remap_dispose => _library._clang_remap_disposePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXRemapping, - ffi.UnsignedInt index, - ffi.Pointer original, - ffi.Pointer transformed, - ) - > - > + ffi.Pointer> get clang_remap_getFilenames => _library._clang_remap_getFilenamesPtr; - ffi.Pointer> + ffi.Pointer> get clang_remap_getNumFiles => _library._clang_remap_getNumFilesPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - CXTranslationUnit TU, - ffi.UnsignedInt num_unsaved_files, - ffi.Pointer unsaved_files, - ffi.UnsignedInt options, - ) - > - > + ffi.Pointer> get clang_reparseTranslationUnit => _library._clang_reparseTranslationUnitPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - CXTranslationUnit TU, - ffi.Pointer FileName, - ffi.UnsignedInt options, - ) - > - > + ffi.Pointer> get clang_saveTranslationUnit => _library._clang_saveTranslationUnitPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer Results, - ffi.UnsignedInt NumResults, - ) - > - > + ffi.Pointer> get clang_sortCodeCompletionResults => _library._clang_sortCodeCompletionResultsPtr; - ffi.Pointer> + ffi.Pointer> get clang_suspendTranslationUnit => _library._clang_suspendTranslationUnitPtr; - ffi.Pointer> + ffi.Pointer> get clang_toggleCrashRecovery => _library._clang_toggleCrashRecoveryPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXTranslationUnit TU, - CXSourceRange Range, - ffi.Pointer> Tokens, - ffi.Pointer NumTokens, - ) - > - > - get clang_tokenize => _library._clang_tokenizePtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor parent, - CXCursorVisitor visitor, - CXClientData client_data, - ) - > - > + ffi.Pointer> get clang_tokenize => + _library._clang_tokenizePtr; + ffi.Pointer> get clang_visitChildren => _library._clang_visitChildrenPtr; } @@ -9950,15 +8230,19 @@ typedef CXCursorSet = ffi.Pointer; /// The visitor should return one of the \c CXChildVisitResult values /// to direct clang_visitCursorChildren(). typedef CXCursorVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ) - > - >; + ffi.Pointer>; +typedef CXCursorVisitorFunction = + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ); +typedef DartCXCursorVisitorFunction = + CXChildVisitResult Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ); /// A single diagnostic, containing the diagnostic's severity, /// location, text, source ranges, and fix-it hints. @@ -10076,11 +8360,11 @@ enum CXEvalResultKind { /// The visitor should return one of the \c CXVisitorResult values /// to direct \c clang_Type_visitFields. typedef CXFieldVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor C, CXClientData client_data) - > - >; + ffi.Pointer>; +typedef CXFieldVisitorFunction = + ffi.UnsignedInt Function(CXCursor C, CXClientData client_data); +typedef DartCXFieldVisitorFunction = + CXVisitorResult Function(CXCursor C, CXClientData client_data); /// A particular source file that is part of a translation unit. typedef CXFile = ffi.Pointer; @@ -10621,16 +8905,21 @@ final class CXIdxObjCProtocolRefListInfo extends ffi.Struct { /// array is sorted in order of immediate inclusion. For example, /// the first element refers to the location that included 'included_file'. typedef CXInclusionVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - CXClientData client_data, - ) - > - >; + ffi.Pointer>; +typedef CXInclusionVisitorFunction = + ffi.Void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + CXClientData client_data, + ); +typedef DartCXInclusionVisitorFunction = + void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + int include_len, + CXClientData client_data, + ); /// An "index" that consists of a set of translation units that would /// typically be linked together into an executable or library. @@ -11808,3 +10097,1523 @@ final class IndexerCallbacks extends ffi.Struct { ..ref.indexDeclaration = indexDeclaration ..ref.indexEntityReference = indexEntityReference; } + +typedef NativeClang_CXCursorSet_contains = + ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor); +typedef DartClang_CXCursorSet_contains = + int Function(CXCursorSet cset, CXCursor cursor); +typedef NativeClang_CXCursorSet_insert = + ffi.UnsignedInt Function(CXCursorSet cset, CXCursor cursor); +typedef DartClang_CXCursorSet_insert = + int Function(CXCursorSet cset, CXCursor cursor); +typedef NativeClang_CXIndex_getGlobalOptions = + ffi.UnsignedInt Function(CXIndex); +typedef DartClang_CXIndex_getGlobalOptions = int Function(CXIndex); +typedef NativeClang_CXIndex_setGlobalOptions = + ffi.Void Function(CXIndex, ffi.UnsignedInt options); +typedef DartClang_CXIndex_setGlobalOptions = + void Function(CXIndex, int options); +typedef NativeClang_CXIndex_setInvocationEmissionPathOption = + ffi.Void Function(CXIndex, ffi.Pointer Path); +typedef DartClang_CXIndex_setInvocationEmissionPathOption = + void Function(CXIndex, ffi.Pointer Path); +typedef NativeClang_CXXConstructor_isConvertingConstructor = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXConstructor_isConvertingConstructor = + int Function(CXCursor C); +typedef NativeClang_CXXConstructor_isCopyConstructor = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXConstructor_isCopyConstructor = int Function(CXCursor C); +typedef NativeClang_CXXConstructor_isDefaultConstructor = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXConstructor_isDefaultConstructor = + int Function(CXCursor C); +typedef NativeClang_CXXConstructor_isMoveConstructor = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXConstructor_isMoveConstructor = int Function(CXCursor C); +typedef NativeClang_CXXField_isMutable = ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXField_isMutable = int Function(CXCursor C); +typedef NativeClang_CXXMethod_isConst = ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXMethod_isConst = int Function(CXCursor C); +typedef NativeClang_CXXMethod_isDefaulted = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXMethod_isDefaulted = int Function(CXCursor C); +typedef NativeClang_CXXMethod_isPureVirtual = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXMethod_isPureVirtual = int Function(CXCursor C); +typedef NativeClang_CXXMethod_isStatic = ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXMethod_isStatic = int Function(CXCursor C); +typedef NativeClang_CXXMethod_isVirtual = ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXMethod_isVirtual = int Function(CXCursor C); +typedef NativeClang_CXXRecord_isAbstract = ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_CXXRecord_isAbstract = int Function(CXCursor C); +typedef NativeClang_Cursor_Evaluate = CXEvalResult Function(CXCursor C); +typedef DartClang_Cursor_Evaluate = CXEvalResult Function(CXCursor C); +typedef NativeClang_Cursor_getArgument = + CXCursor Function(CXCursor C, ffi.UnsignedInt i); +typedef DartClang_Cursor_getArgument = CXCursor Function(CXCursor C, int i); +typedef NativeClang_Cursor_getBriefCommentText = CXString Function(CXCursor C); +typedef DartClang_Cursor_getBriefCommentText = CXString Function(CXCursor C); +typedef NativeClang_Cursor_getCXXManglings = + ffi.Pointer Function(CXCursor); +typedef DartClang_Cursor_getCXXManglings = + ffi.Pointer Function(CXCursor); +typedef NativeClang_Cursor_getCommentRange = CXSourceRange Function(CXCursor C); +typedef DartClang_Cursor_getCommentRange = CXSourceRange Function(CXCursor C); +typedef NativeClang_Cursor_getMangling = CXString Function(CXCursor); +typedef DartClang_Cursor_getMangling = CXString Function(CXCursor); +typedef NativeClang_Cursor_getModule = CXModule Function(CXCursor C); +typedef DartClang_Cursor_getModule = CXModule Function(CXCursor C); +typedef NativeClang_Cursor_getNumArguments = ffi.Int Function(CXCursor C); +typedef DartClang_Cursor_getNumArguments = int Function(CXCursor C); +typedef NativeClang_Cursor_getNumTemplateArguments = + ffi.Int Function(CXCursor C); +typedef DartClang_Cursor_getNumTemplateArguments = int Function(CXCursor C); +typedef NativeClang_Cursor_getObjCDeclQualifiers = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_getObjCDeclQualifiers = int Function(CXCursor C); +typedef NativeClang_Cursor_getObjCManglings = + ffi.Pointer Function(CXCursor); +typedef DartClang_Cursor_getObjCManglings = + ffi.Pointer Function(CXCursor); +typedef NativeClang_Cursor_getObjCPropertyAttributes = + ffi.UnsignedInt Function(CXCursor C, ffi.UnsignedInt reserved); +typedef DartClang_Cursor_getObjCPropertyAttributes = + int Function(CXCursor C, int reserved); +typedef NativeClang_Cursor_getObjCPropertyGetterName = + CXString Function(CXCursor C); +typedef DartClang_Cursor_getObjCPropertyGetterName = + CXString Function(CXCursor C); +typedef NativeClang_Cursor_getObjCPropertySetterName = + CXString Function(CXCursor C); +typedef DartClang_Cursor_getObjCPropertySetterName = + CXString Function(CXCursor C); +typedef NativeClang_Cursor_getObjCSelectorIndex = ffi.Int Function(CXCursor); +typedef DartClang_Cursor_getObjCSelectorIndex = int Function(CXCursor); +typedef NativeClang_Cursor_getOffsetOfField = ffi.LongLong Function(CXCursor C); +typedef DartClang_Cursor_getOffsetOfField = int Function(CXCursor C); +typedef NativeClang_Cursor_getRawCommentText = CXString Function(CXCursor C); +typedef DartClang_Cursor_getRawCommentText = CXString Function(CXCursor C); +typedef NativeClang_Cursor_getReceiverType = CXType Function(CXCursor C); +typedef DartClang_Cursor_getReceiverType = CXType Function(CXCursor C); +typedef NativeClang_Cursor_getSpellingNameRange = + CXSourceRange Function( + CXCursor, + ffi.UnsignedInt pieceIndex, + ffi.UnsignedInt options, + ); +typedef DartClang_Cursor_getSpellingNameRange = + CXSourceRange Function(CXCursor, int pieceIndex, int options); +typedef NativeClang_Cursor_getStorageClass = ffi.UnsignedInt Function(CXCursor); +typedef DartClang_Cursor_getStorageClass = int Function(CXCursor); +typedef NativeClang_Cursor_getTemplateArgumentKind = + ffi.UnsignedInt Function(CXCursor C, ffi.UnsignedInt I); +typedef DartClang_Cursor_getTemplateArgumentKind = + int Function(CXCursor C, int I); +typedef NativeClang_Cursor_getTemplateArgumentType = + CXType Function(CXCursor C, ffi.UnsignedInt I); +typedef DartClang_Cursor_getTemplateArgumentType = + CXType Function(CXCursor C, int I); +typedef NativeClang_Cursor_getTemplateArgumentUnsignedValue = + ffi.UnsignedLongLong Function(CXCursor C, ffi.UnsignedInt I); +typedef DartClang_Cursor_getTemplateArgumentUnsignedValue = + int Function(CXCursor C, int I); +typedef NativeClang_Cursor_getTemplateArgumentValue = + ffi.LongLong Function(CXCursor C, ffi.UnsignedInt I); +typedef DartClang_Cursor_getTemplateArgumentValue = + int Function(CXCursor C, int I); +typedef NativeClang_Cursor_getTranslationUnit = + CXTranslationUnit Function(CXCursor); +typedef DartClang_Cursor_getTranslationUnit = + CXTranslationUnit Function(CXCursor); +typedef NativeClang_Cursor_hasAttrs = ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_hasAttrs = int Function(CXCursor C); +typedef NativeClang_Cursor_isAnonymous = ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_isAnonymous = int Function(CXCursor C); +typedef NativeClang_Cursor_isAnonymousRecordDecl = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_isAnonymousRecordDecl = int Function(CXCursor C); +typedef NativeClang_Cursor_isBitField = ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_isBitField = int Function(CXCursor C); +typedef NativeClang_Cursor_isDynamicCall = ffi.Int Function(CXCursor C); +typedef DartClang_Cursor_isDynamicCall = int Function(CXCursor C); +typedef NativeClang_Cursor_isExternalSymbol = + ffi.UnsignedInt Function( + CXCursor C, + ffi.Pointer language, + ffi.Pointer definedIn, + ffi.Pointer isGenerated, + ); +typedef DartClang_Cursor_isExternalSymbol = + int Function( + CXCursor C, + ffi.Pointer language, + ffi.Pointer definedIn, + ffi.Pointer isGenerated, + ); +typedef NativeClang_Cursor_isFunctionInlined = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_isFunctionInlined = int Function(CXCursor C); +typedef NativeClang_Cursor_isInlineNamespace = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_isInlineNamespace = int Function(CXCursor C); +typedef NativeClang_Cursor_isMacroBuiltin = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_isMacroBuiltin = int Function(CXCursor C); +typedef NativeClang_Cursor_isMacroFunctionLike = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_isMacroFunctionLike = int Function(CXCursor C); +typedef NativeClang_Cursor_isNull = ffi.Int Function(CXCursor cursor); +typedef DartClang_Cursor_isNull = int Function(CXCursor cursor); +typedef NativeClang_Cursor_isObjCOptional = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_isObjCOptional = int Function(CXCursor C); +typedef NativeClang_Cursor_isVariadic = ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_Cursor_isVariadic = int Function(CXCursor C); +typedef NativeClang_EnumDecl_isScoped = ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_EnumDecl_isScoped = int Function(CXCursor C); +typedef NativeClang_EvalResult_dispose = ffi.Void Function(CXEvalResult E); +typedef DartClang_EvalResult_dispose = void Function(CXEvalResult E); +typedef NativeClang_EvalResult_getAsDouble = + ffi.Double Function(CXEvalResult E); +typedef DartClang_EvalResult_getAsDouble = double Function(CXEvalResult E); +typedef NativeClang_EvalResult_getAsInt = ffi.Int Function(CXEvalResult E); +typedef DartClang_EvalResult_getAsInt = int Function(CXEvalResult E); +typedef NativeClang_EvalResult_getAsLongLong = + ffi.LongLong Function(CXEvalResult E); +typedef DartClang_EvalResult_getAsLongLong = int Function(CXEvalResult E); +typedef NativeClang_EvalResult_getAsStr = + ffi.Pointer Function(CXEvalResult E); +typedef DartClang_EvalResult_getAsStr = + ffi.Pointer Function(CXEvalResult E); +typedef NativeClang_EvalResult_getAsUnsigned = + ffi.UnsignedLongLong Function(CXEvalResult E); +typedef DartClang_EvalResult_getAsUnsigned = int Function(CXEvalResult E); +typedef NativeClang_EvalResult_getKind = + ffi.UnsignedInt Function(CXEvalResult E); +typedef DartClang_EvalResult_getKind = int Function(CXEvalResult E); +typedef NativeClang_EvalResult_isUnsignedInt = + ffi.UnsignedInt Function(CXEvalResult E); +typedef DartClang_EvalResult_isUnsignedInt = int Function(CXEvalResult E); +typedef NativeClang_File_isEqual = ffi.Int Function(CXFile file1, CXFile file2); +typedef DartClang_File_isEqual = int Function(CXFile file1, CXFile file2); +typedef NativeClang_File_tryGetRealPathName = CXString Function(CXFile file); +typedef DartClang_File_tryGetRealPathName = CXString Function(CXFile file); +typedef NativeClang_IndexAction_create = CXIndexAction Function(CXIndex CIdx); +typedef DartClang_IndexAction_create = CXIndexAction Function(CXIndex CIdx); +typedef NativeClang_IndexAction_dispose = ffi.Void Function(CXIndexAction); +typedef DartClang_IndexAction_dispose = void Function(CXIndexAction); +typedef NativeClang_Location_isFromMainFile = + ffi.Int Function(CXSourceLocation location); +typedef DartClang_Location_isFromMainFile = + int Function(CXSourceLocation location); +typedef NativeClang_Location_isInSystemHeader = + ffi.Int Function(CXSourceLocation location); +typedef DartClang_Location_isInSystemHeader = + int Function(CXSourceLocation location); +typedef NativeClang_Module_getASTFile = CXFile Function(CXModule Module); +typedef DartClang_Module_getASTFile = CXFile Function(CXModule Module); +typedef NativeClang_Module_getFullName = CXString Function(CXModule Module); +typedef DartClang_Module_getFullName = CXString Function(CXModule Module); +typedef NativeClang_Module_getName = CXString Function(CXModule Module); +typedef DartClang_Module_getName = CXString Function(CXModule Module); +typedef NativeClang_Module_getNumTopLevelHeaders = + ffi.UnsignedInt Function(CXTranslationUnit, CXModule Module); +typedef DartClang_Module_getNumTopLevelHeaders = + int Function(CXTranslationUnit, CXModule Module); +typedef NativeClang_Module_getParent = CXModule Function(CXModule Module); +typedef DartClang_Module_getParent = CXModule Function(CXModule Module); +typedef NativeClang_Module_getTopLevelHeader = + CXFile Function(CXTranslationUnit, CXModule Module, ffi.UnsignedInt Index); +typedef DartClang_Module_getTopLevelHeader = + CXFile Function(CXTranslationUnit, CXModule Module, int Index); +typedef NativeClang_Module_isSystem = ffi.Int Function(CXModule Module); +typedef DartClang_Module_isSystem = int Function(CXModule Module); +typedef NativeClang_PrintingPolicy_dispose = + ffi.Void Function(CXPrintingPolicy Policy); +typedef DartClang_PrintingPolicy_dispose = + void Function(CXPrintingPolicy Policy); +typedef NativeClang_PrintingPolicy_getProperty = + ffi.UnsignedInt Function(CXPrintingPolicy Policy, ffi.UnsignedInt Property); +typedef DartClang_PrintingPolicy_getProperty = + int Function(CXPrintingPolicy Policy, int Property); +typedef NativeClang_PrintingPolicy_setProperty = + ffi.Void Function( + CXPrintingPolicy Policy, + ffi.UnsignedInt Property, + ffi.UnsignedInt Value, + ); +typedef DartClang_PrintingPolicy_setProperty = + void Function(CXPrintingPolicy Policy, int Property, int Value); +typedef NativeClang_Range_isNull = ffi.Int Function(CXSourceRange range); +typedef DartClang_Range_isNull = int Function(CXSourceRange range); +typedef NativeClang_TargetInfo_dispose = ffi.Void Function(CXTargetInfo Info); +typedef DartClang_TargetInfo_dispose = void Function(CXTargetInfo Info); +typedef NativeClang_TargetInfo_getPointerWidth = + ffi.Int Function(CXTargetInfo Info); +typedef DartClang_TargetInfo_getPointerWidth = int Function(CXTargetInfo Info); +typedef NativeClang_TargetInfo_getTriple = CXString Function(CXTargetInfo Info); +typedef DartClang_TargetInfo_getTriple = CXString Function(CXTargetInfo Info); +typedef NativeClang_Type_getAlignOf = ffi.LongLong Function(CXType T); +typedef DartClang_Type_getAlignOf = int Function(CXType T); +typedef NativeClang_Type_getCXXRefQualifier = + ffi.UnsignedInt Function(CXType T); +typedef DartClang_Type_getCXXRefQualifier = int Function(CXType T); +typedef NativeClang_Type_getClassType = CXType Function(CXType T); +typedef DartClang_Type_getClassType = CXType Function(CXType T); +typedef NativeClang_Type_getModifiedType = CXType Function(CXType T); +typedef DartClang_Type_getModifiedType = CXType Function(CXType T); +typedef NativeClang_Type_getNamedType = CXType Function(CXType T); +typedef DartClang_Type_getNamedType = CXType Function(CXType T); +typedef NativeClang_Type_getNullability = ffi.UnsignedInt Function(CXType T); +typedef DartClang_Type_getNullability = int Function(CXType T); +typedef NativeClang_Type_getNumObjCProtocolRefs = + ffi.UnsignedInt Function(CXType T); +typedef DartClang_Type_getNumObjCProtocolRefs = int Function(CXType T); +typedef NativeClang_Type_getNumObjCTypeArgs = + ffi.UnsignedInt Function(CXType T); +typedef DartClang_Type_getNumObjCTypeArgs = int Function(CXType T); +typedef NativeClang_Type_getNumTemplateArguments = ffi.Int Function(CXType T); +typedef DartClang_Type_getNumTemplateArguments = int Function(CXType T); +typedef NativeClang_Type_getObjCEncoding = CXString Function(CXType type); +typedef DartClang_Type_getObjCEncoding = CXString Function(CXType type); +typedef NativeClang_Type_getObjCObjectBaseType = CXType Function(CXType T); +typedef DartClang_Type_getObjCObjectBaseType = CXType Function(CXType T); +typedef NativeClang_Type_getObjCProtocolDecl = + CXCursor Function(CXType T, ffi.UnsignedInt i); +typedef DartClang_Type_getObjCProtocolDecl = CXCursor Function(CXType T, int i); +typedef NativeClang_Type_getObjCTypeArg = + CXType Function(CXType T, ffi.UnsignedInt i); +typedef DartClang_Type_getObjCTypeArg = CXType Function(CXType T, int i); +typedef NativeClang_Type_getOffsetOf = + ffi.LongLong Function(CXType T, ffi.Pointer S); +typedef DartClang_Type_getOffsetOf = + int Function(CXType T, ffi.Pointer S); +typedef NativeClang_Type_getSizeOf = ffi.LongLong Function(CXType T); +typedef DartClang_Type_getSizeOf = int Function(CXType T); +typedef NativeClang_Type_getTemplateArgumentAsType = + CXType Function(CXType T, ffi.UnsignedInt i); +typedef DartClang_Type_getTemplateArgumentAsType = + CXType Function(CXType T, int i); +typedef NativeClang_Type_isTransparentTagTypedef = + ffi.UnsignedInt Function(CXType T); +typedef DartClang_Type_isTransparentTagTypedef = int Function(CXType T); +typedef NativeClang_Type_visitFields = + ffi.UnsignedInt Function( + CXType T, + CXFieldVisitor visitor, + CXClientData client_data, + ); +typedef DartClang_Type_visitFields = + int Function(CXType T, CXFieldVisitor visitor, CXClientData client_data); +typedef NativeClang_annotateTokens = + ffi.Void Function( + CXTranslationUnit TU, + ffi.Pointer Tokens, + ffi.UnsignedInt NumTokens, + ffi.Pointer Cursors, + ); +typedef DartClang_annotateTokens = + void Function( + CXTranslationUnit TU, + ffi.Pointer Tokens, + int NumTokens, + ffi.Pointer Cursors, + ); +typedef NativeClang_codeCompleteAt = + ffi.Pointer Function( + CXTranslationUnit TU, + ffi.Pointer complete_filename, + ffi.UnsignedInt complete_line, + ffi.UnsignedInt complete_column, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, + ); +typedef DartClang_codeCompleteAt = + ffi.Pointer Function( + CXTranslationUnit TU, + ffi.Pointer complete_filename, + int complete_line, + int complete_column, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, + ); +typedef NativeClang_codeCompleteGetContainerKind = + ffi.UnsignedInt Function( + ffi.Pointer Results, + ffi.Pointer IsIncomplete, + ); +typedef DartClang_codeCompleteGetContainerKind = + int Function( + ffi.Pointer Results, + ffi.Pointer IsIncomplete, + ); +typedef NativeClang_codeCompleteGetContainerUSR = + CXString Function(ffi.Pointer Results); +typedef DartClang_codeCompleteGetContainerUSR = + CXString Function(ffi.Pointer Results); +typedef NativeClang_codeCompleteGetContexts = + ffi.UnsignedLongLong Function(ffi.Pointer Results); +typedef DartClang_codeCompleteGetContexts = + int Function(ffi.Pointer Results); +typedef NativeClang_codeCompleteGetDiagnostic = + CXDiagnostic Function( + ffi.Pointer Results, + ffi.UnsignedInt Index, + ); +typedef DartClang_codeCompleteGetDiagnostic = + CXDiagnostic Function( + ffi.Pointer Results, + int Index, + ); +typedef NativeClang_codeCompleteGetNumDiagnostics = + ffi.UnsignedInt Function(ffi.Pointer Results); +typedef DartClang_codeCompleteGetNumDiagnostics = + int Function(ffi.Pointer Results); +typedef NativeClang_codeCompleteGetObjCSelector = + CXString Function(ffi.Pointer Results); +typedef DartClang_codeCompleteGetObjCSelector = + CXString Function(ffi.Pointer Results); +typedef NativeClang_constructUSR_ObjCCategory = + CXString Function( + ffi.Pointer class_name, + ffi.Pointer category_name, + ); +typedef DartClang_constructUSR_ObjCCategory = + CXString Function( + ffi.Pointer class_name, + ffi.Pointer category_name, + ); +typedef NativeClang_constructUSR_ObjCClass = + CXString Function(ffi.Pointer class_name); +typedef DartClang_constructUSR_ObjCClass = + CXString Function(ffi.Pointer class_name); +typedef NativeClang_constructUSR_ObjCIvar = + CXString Function(ffi.Pointer name, CXString classUSR); +typedef DartClang_constructUSR_ObjCIvar = + CXString Function(ffi.Pointer name, CXString classUSR); +typedef NativeClang_constructUSR_ObjCMethod = + CXString Function( + ffi.Pointer name, + ffi.UnsignedInt isInstanceMethod, + CXString classUSR, + ); +typedef DartClang_constructUSR_ObjCMethod = + CXString Function( + ffi.Pointer name, + int isInstanceMethod, + CXString classUSR, + ); +typedef NativeClang_constructUSR_ObjCProperty = + CXString Function(ffi.Pointer property, CXString classUSR); +typedef DartClang_constructUSR_ObjCProperty = + CXString Function(ffi.Pointer property, CXString classUSR); +typedef NativeClang_constructUSR_ObjCProtocol = + CXString Function(ffi.Pointer protocol_name); +typedef DartClang_constructUSR_ObjCProtocol = + CXString Function(ffi.Pointer protocol_name); +typedef NativeClang_createCXCursorSet = CXCursorSet Function(); +typedef DartClang_createCXCursorSet = CXCursorSet Function(); +typedef NativeClang_createIndex = + CXIndex Function( + ffi.Int excludeDeclarationsFromPCH, + ffi.Int displayDiagnostics, + ); +typedef DartClang_createIndex = + CXIndex Function(int excludeDeclarationsFromPCH, int displayDiagnostics); +typedef NativeClang_createTranslationUnit = + CXTranslationUnit Function( + CXIndex CIdx, + ffi.Pointer ast_filename, + ); +typedef DartClang_createTranslationUnit = + CXTranslationUnit Function( + CXIndex CIdx, + ffi.Pointer ast_filename, + ); +typedef NativeClang_createTranslationUnit2 = + ffi.UnsignedInt Function( + CXIndex CIdx, + ffi.Pointer ast_filename, + ffi.Pointer out_TU, + ); +typedef DartClang_createTranslationUnit2 = + int Function( + CXIndex CIdx, + ffi.Pointer ast_filename, + ffi.Pointer out_TU, + ); +typedef NativeClang_createTranslationUnitFromSourceFile = + CXTranslationUnit Function( + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Int num_clang_command_line_args, + ffi.Pointer> clang_command_line_args, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer unsaved_files, + ); +typedef DartClang_createTranslationUnitFromSourceFile = + CXTranslationUnit Function( + CXIndex CIdx, + ffi.Pointer source_filename, + int num_clang_command_line_args, + ffi.Pointer> clang_command_line_args, + int num_unsaved_files, + ffi.Pointer unsaved_files, + ); +typedef NativeClang_defaultCodeCompleteOptions = ffi.UnsignedInt Function(); +typedef DartClang_defaultCodeCompleteOptions = int Function(); +typedef NativeClang_defaultDiagnosticDisplayOptions = + ffi.UnsignedInt Function(); +typedef DartClang_defaultDiagnosticDisplayOptions = int Function(); +typedef NativeClang_defaultEditingTranslationUnitOptions = + ffi.UnsignedInt Function(); +typedef DartClang_defaultEditingTranslationUnitOptions = int Function(); +typedef NativeClang_defaultReparseOptions = + ffi.UnsignedInt Function(CXTranslationUnit TU); +typedef DartClang_defaultReparseOptions = int Function(CXTranslationUnit TU); +typedef NativeClang_defaultSaveOptions = + ffi.UnsignedInt Function(CXTranslationUnit TU); +typedef DartClang_defaultSaveOptions = int Function(CXTranslationUnit TU); +typedef NativeClang_disposeCXCursorSet = ffi.Void Function(CXCursorSet cset); +typedef DartClang_disposeCXCursorSet = void Function(CXCursorSet cset); +typedef NativeClang_disposeCXPlatformAvailability = + ffi.Void Function(ffi.Pointer availability); +typedef DartClang_disposeCXPlatformAvailability = + void Function(ffi.Pointer availability); +typedef NativeClang_disposeCXTUResourceUsage = + ffi.Void Function(CXTUResourceUsage usage); +typedef DartClang_disposeCXTUResourceUsage = + void Function(CXTUResourceUsage usage); +typedef NativeClang_disposeCodeCompleteResults = + ffi.Void Function(ffi.Pointer Results); +typedef DartClang_disposeCodeCompleteResults = + void Function(ffi.Pointer Results); +typedef NativeClang_disposeDiagnostic = + ffi.Void Function(CXDiagnostic Diagnostic); +typedef DartClang_disposeDiagnostic = void Function(CXDiagnostic Diagnostic); +typedef NativeClang_disposeDiagnosticSet = + ffi.Void Function(CXDiagnosticSet Diags); +typedef DartClang_disposeDiagnosticSet = void Function(CXDiagnosticSet Diags); +typedef NativeClang_disposeIndex = ffi.Void Function(CXIndex index); +typedef DartClang_disposeIndex = void Function(CXIndex index); +typedef NativeClang_disposeOverriddenCursors = + ffi.Void Function(ffi.Pointer overridden); +typedef DartClang_disposeOverriddenCursors = + void Function(ffi.Pointer overridden); +typedef NativeClang_disposeSourceRangeList = + ffi.Void Function(ffi.Pointer ranges); +typedef DartClang_disposeSourceRangeList = + void Function(ffi.Pointer ranges); +typedef NativeClang_disposeString = ffi.Void Function(CXString string); +typedef DartClang_disposeString = void Function(CXString string); +typedef NativeClang_disposeStringSet = + ffi.Void Function(ffi.Pointer set); +typedef DartClang_disposeStringSet = + void Function(ffi.Pointer set); +typedef NativeClang_disposeTokens = + ffi.Void Function( + CXTranslationUnit TU, + ffi.Pointer Tokens, + ffi.UnsignedInt NumTokens, + ); +typedef DartClang_disposeTokens = + void Function( + CXTranslationUnit TU, + ffi.Pointer Tokens, + int NumTokens, + ); +typedef NativeClang_disposeTranslationUnit = + ffi.Void Function(CXTranslationUnit); +typedef DartClang_disposeTranslationUnit = void Function(CXTranslationUnit); +typedef NativeClang_enableStackTraces = ffi.Void Function(); +typedef DartClang_enableStackTraces = void Function(); +typedef NativeClang_equalCursors = ffi.UnsignedInt Function(CXCursor, CXCursor); +typedef DartClang_equalCursors = int Function(CXCursor, CXCursor); +typedef NativeClang_equalLocations = + ffi.UnsignedInt Function(CXSourceLocation loc1, CXSourceLocation loc2); +typedef DartClang_equalLocations = + int Function(CXSourceLocation loc1, CXSourceLocation loc2); +typedef NativeClang_equalRanges = + ffi.UnsignedInt Function(CXSourceRange range1, CXSourceRange range2); +typedef DartClang_equalRanges = + int Function(CXSourceRange range1, CXSourceRange range2); +typedef NativeClang_equalTypes = ffi.UnsignedInt Function(CXType A, CXType B); +typedef DartClang_equalTypes = int Function(CXType A, CXType B); +typedef NativeClang_executeOnThread = + ffi.Void Function( + ffi.Pointer)>> + fn, + ffi.Pointer user_data, + ffi.UnsignedInt stack_size, + ); +typedef DartClang_executeOnThread = + void Function( + ffi.Pointer)>> + fn, + ffi.Pointer user_data, + int stack_size, + ); +typedef NativeClang_findIncludesInFile = + ffi.UnsignedInt Function( + CXTranslationUnit TU, + CXFile file, + CXCursorAndRangeVisitor visitor, + ); +typedef DartClang_findIncludesInFile = + int Function( + CXTranslationUnit TU, + CXFile file, + CXCursorAndRangeVisitor visitor, + ); +typedef NativeClang_findReferencesInFile = + ffi.UnsignedInt Function( + CXCursor cursor, + CXFile file, + CXCursorAndRangeVisitor visitor, + ); +typedef DartClang_findReferencesInFile = + int Function(CXCursor cursor, CXFile file, CXCursorAndRangeVisitor visitor); +typedef NativeClang_formatDiagnostic = + CXString Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Options); +typedef DartClang_formatDiagnostic = + CXString Function(CXDiagnostic Diagnostic, int Options); +typedef NativeClang_getAddressSpace = ffi.UnsignedInt Function(CXType T); +typedef DartClang_getAddressSpace = int Function(CXType T); +typedef NativeClang_getAllSkippedRanges = + ffi.Pointer Function(CXTranslationUnit tu); +typedef DartClang_getAllSkippedRanges = + ffi.Pointer Function(CXTranslationUnit tu); +typedef NativeClang_getArgType = CXType Function(CXType T, ffi.UnsignedInt i); +typedef DartClang_getArgType = CXType Function(CXType T, int i); +typedef NativeClang_getArrayElementType = CXType Function(CXType T); +typedef DartClang_getArrayElementType = CXType Function(CXType T); +typedef NativeClang_getArraySize = ffi.LongLong Function(CXType T); +typedef DartClang_getArraySize = int Function(CXType T); +typedef NativeClang_getCString = + ffi.Pointer Function(CXString string); +typedef DartClang_getCString = ffi.Pointer Function(CXString string); +typedef NativeClang_getCXTUResourceUsage = + CXTUResourceUsage Function(CXTranslationUnit TU); +typedef DartClang_getCXTUResourceUsage = + CXTUResourceUsage Function(CXTranslationUnit TU); +typedef NativeClang_getCXXAccessSpecifier = ffi.UnsignedInt Function(CXCursor); +typedef DartClang_getCXXAccessSpecifier = int Function(CXCursor); +typedef NativeClang_getCanonicalCursor = CXCursor Function(CXCursor); +typedef DartClang_getCanonicalCursor = CXCursor Function(CXCursor); +typedef NativeClang_getCanonicalType = CXType Function(CXType T); +typedef DartClang_getCanonicalType = CXType Function(CXType T); +typedef NativeClang_getChildDiagnostics = + CXDiagnosticSet Function(CXDiagnostic D); +typedef DartClang_getChildDiagnostics = + CXDiagnosticSet Function(CXDiagnostic D); +typedef NativeClang_getClangVersion = CXString Function(); +typedef DartClang_getClangVersion = CXString Function(); +typedef NativeClang_getCompletionAnnotation = + CXString Function( + CXCompletionString completion_string, + ffi.UnsignedInt annotation_number, + ); +typedef DartClang_getCompletionAnnotation = + CXString Function( + CXCompletionString completion_string, + int annotation_number, + ); +typedef NativeClang_getCompletionAvailability = + ffi.UnsignedInt Function(CXCompletionString completion_string); +typedef DartClang_getCompletionAvailability = + int Function(CXCompletionString completion_string); +typedef NativeClang_getCompletionBriefComment = + CXString Function(CXCompletionString completion_string); +typedef DartClang_getCompletionBriefComment = + CXString Function(CXCompletionString completion_string); +typedef NativeClang_getCompletionChunkCompletionString = + CXCompletionString Function( + CXCompletionString completion_string, + ffi.UnsignedInt chunk_number, + ); +typedef DartClang_getCompletionChunkCompletionString = + CXCompletionString Function( + CXCompletionString completion_string, + int chunk_number, + ); +typedef NativeClang_getCompletionChunkKind = + ffi.UnsignedInt Function( + CXCompletionString completion_string, + ffi.UnsignedInt chunk_number, + ); +typedef DartClang_getCompletionChunkKind = + int Function(CXCompletionString completion_string, int chunk_number); +typedef NativeClang_getCompletionChunkText = + CXString Function( + CXCompletionString completion_string, + ffi.UnsignedInt chunk_number, + ); +typedef DartClang_getCompletionChunkText = + CXString Function(CXCompletionString completion_string, int chunk_number); +typedef NativeClang_getCompletionFixIt = + CXString Function( + ffi.Pointer results, + ffi.UnsignedInt completion_index, + ffi.UnsignedInt fixit_index, + ffi.Pointer replacement_range, + ); +typedef DartClang_getCompletionFixIt = + CXString Function( + ffi.Pointer results, + int completion_index, + int fixit_index, + ffi.Pointer replacement_range, + ); +typedef NativeClang_getCompletionNumAnnotations = + ffi.UnsignedInt Function(CXCompletionString completion_string); +typedef DartClang_getCompletionNumAnnotations = + int Function(CXCompletionString completion_string); +typedef NativeClang_getCompletionNumFixIts = + ffi.UnsignedInt Function( + ffi.Pointer results, + ffi.UnsignedInt completion_index, + ); +typedef DartClang_getCompletionNumFixIts = + int Function( + ffi.Pointer results, + int completion_index, + ); +typedef NativeClang_getCompletionParent = + CXString Function( + CXCompletionString completion_string, + ffi.Pointer kind, + ); +typedef DartClang_getCompletionParent = + CXString Function( + CXCompletionString completion_string, + ffi.Pointer kind, + ); +typedef NativeClang_getCompletionPriority = + ffi.UnsignedInt Function(CXCompletionString completion_string); +typedef DartClang_getCompletionPriority = + int Function(CXCompletionString completion_string); +typedef NativeClang_getCursor = + CXCursor Function(CXTranslationUnit, CXSourceLocation); +typedef DartClang_getCursor = + CXCursor Function(CXTranslationUnit, CXSourceLocation); +typedef NativeClang_getCursorAvailability = + ffi.UnsignedInt Function(CXCursor cursor); +typedef DartClang_getCursorAvailability = int Function(CXCursor cursor); +typedef NativeClang_getCursorCompletionString = + CXCompletionString Function(CXCursor cursor); +typedef DartClang_getCursorCompletionString = + CXCompletionString Function(CXCursor cursor); +typedef NativeClang_getCursorDefinition = CXCursor Function(CXCursor); +typedef DartClang_getCursorDefinition = CXCursor Function(CXCursor); +typedef NativeClang_getCursorDisplayName = CXString Function(CXCursor); +typedef DartClang_getCursorDisplayName = CXString Function(CXCursor); +typedef NativeClang_getCursorExceptionSpecificationType = + ffi.Int Function(CXCursor C); +typedef DartClang_getCursorExceptionSpecificationType = + int Function(CXCursor C); +typedef NativeClang_getCursorExtent = CXSourceRange Function(CXCursor); +typedef DartClang_getCursorExtent = CXSourceRange Function(CXCursor); +typedef NativeClang_getCursorKind = ffi.UnsignedInt Function(CXCursor); +typedef DartClang_getCursorKind = int Function(CXCursor); +typedef NativeClang_getCursorKindSpelling = + CXString Function(ffi.UnsignedInt Kind); +typedef DartClang_getCursorKindSpelling = CXString Function(int Kind); +typedef NativeClang_getCursorLanguage = + ffi.UnsignedInt Function(CXCursor cursor); +typedef DartClang_getCursorLanguage = int Function(CXCursor cursor); +typedef NativeClang_getCursorLexicalParent = CXCursor Function(CXCursor cursor); +typedef DartClang_getCursorLexicalParent = CXCursor Function(CXCursor cursor); +typedef NativeClang_getCursorLinkage = + ffi.UnsignedInt Function(CXCursor cursor); +typedef DartClang_getCursorLinkage = int Function(CXCursor cursor); +typedef NativeClang_getCursorLocation = CXSourceLocation Function(CXCursor); +typedef DartClang_getCursorLocation = CXSourceLocation Function(CXCursor); +typedef NativeClang_getCursorPlatformAvailability = + ffi.Int Function( + CXCursor cursor, + ffi.Pointer always_deprecated, + ffi.Pointer deprecated_message, + ffi.Pointer always_unavailable, + ffi.Pointer unavailable_message, + ffi.Pointer availability, + ffi.Int availability_size, + ); +typedef DartClang_getCursorPlatformAvailability = + int Function( + CXCursor cursor, + ffi.Pointer always_deprecated, + ffi.Pointer deprecated_message, + ffi.Pointer always_unavailable, + ffi.Pointer unavailable_message, + ffi.Pointer availability, + int availability_size, + ); +typedef NativeClang_getCursorPrettyPrinted = + CXString Function(CXCursor Cursor, CXPrintingPolicy Policy); +typedef DartClang_getCursorPrettyPrinted = + CXString Function(CXCursor Cursor, CXPrintingPolicy Policy); +typedef NativeClang_getCursorPrintingPolicy = + CXPrintingPolicy Function(CXCursor); +typedef DartClang_getCursorPrintingPolicy = CXPrintingPolicy Function(CXCursor); +typedef NativeClang_getCursorReferenceNameRange = + CXSourceRange Function( + CXCursor C, + ffi.UnsignedInt NameFlags, + ffi.UnsignedInt PieceIndex, + ); +typedef DartClang_getCursorReferenceNameRange = + CXSourceRange Function(CXCursor C, int NameFlags, int PieceIndex); +typedef NativeClang_getCursorReferenced = CXCursor Function(CXCursor); +typedef DartClang_getCursorReferenced = CXCursor Function(CXCursor); +typedef NativeClang_getCursorResultType = CXType Function(CXCursor C); +typedef DartClang_getCursorResultType = CXType Function(CXCursor C); +typedef NativeClang_getCursorSemanticParent = + CXCursor Function(CXCursor cursor); +typedef DartClang_getCursorSemanticParent = CXCursor Function(CXCursor cursor); +typedef NativeClang_getCursorSpelling = CXString Function(CXCursor); +typedef DartClang_getCursorSpelling = CXString Function(CXCursor); +typedef NativeClang_getCursorTLSKind = + ffi.UnsignedInt Function(CXCursor cursor); +typedef DartClang_getCursorTLSKind = int Function(CXCursor cursor); +typedef NativeClang_getCursorType = CXType Function(CXCursor C); +typedef DartClang_getCursorType = CXType Function(CXCursor C); +typedef NativeClang_getCursorUSR = CXString Function(CXCursor); +typedef DartClang_getCursorUSR = CXString Function(CXCursor); +typedef NativeClang_getCursorVisibility = + ffi.UnsignedInt Function(CXCursor cursor); +typedef DartClang_getCursorVisibility = int Function(CXCursor cursor); +typedef NativeClang_getDeclObjCTypeEncoding = CXString Function(CXCursor C); +typedef DartClang_getDeclObjCTypeEncoding = CXString Function(CXCursor C); +typedef NativeClang_getDefinitionSpellingAndExtent = + ffi.Void Function( + CXCursor, + ffi.Pointer> startBuf, + ffi.Pointer> endBuf, + ffi.Pointer startLine, + ffi.Pointer startColumn, + ffi.Pointer endLine, + ffi.Pointer endColumn, + ); +typedef DartClang_getDefinitionSpellingAndExtent = + void Function( + CXCursor, + ffi.Pointer> startBuf, + ffi.Pointer> endBuf, + ffi.Pointer startLine, + ffi.Pointer startColumn, + ffi.Pointer endLine, + ffi.Pointer endColumn, + ); +typedef NativeClang_getDiagnostic = + CXDiagnostic Function(CXTranslationUnit Unit, ffi.UnsignedInt Index); +typedef DartClang_getDiagnostic = + CXDiagnostic Function(CXTranslationUnit Unit, int Index); +typedef NativeClang_getDiagnosticCategory = + ffi.UnsignedInt Function(CXDiagnostic); +typedef DartClang_getDiagnosticCategory = int Function(CXDiagnostic); +typedef NativeClang_getDiagnosticCategoryName = + CXString Function(ffi.UnsignedInt Category); +typedef DartClang_getDiagnosticCategoryName = CXString Function(int Category); +typedef NativeClang_getDiagnosticCategoryText = CXString Function(CXDiagnostic); +typedef DartClang_getDiagnosticCategoryText = CXString Function(CXDiagnostic); +typedef NativeClang_getDiagnosticFixIt = + CXString Function( + CXDiagnostic Diagnostic, + ffi.UnsignedInt FixIt, + ffi.Pointer ReplacementRange, + ); +typedef DartClang_getDiagnosticFixIt = + CXString Function( + CXDiagnostic Diagnostic, + int FixIt, + ffi.Pointer ReplacementRange, + ); +typedef NativeClang_getDiagnosticInSet = + CXDiagnostic Function(CXDiagnosticSet Diags, ffi.UnsignedInt Index); +typedef DartClang_getDiagnosticInSet = + CXDiagnostic Function(CXDiagnosticSet Diags, int Index); +typedef NativeClang_getDiagnosticLocation = + CXSourceLocation Function(CXDiagnostic); +typedef DartClang_getDiagnosticLocation = + CXSourceLocation Function(CXDiagnostic); +typedef NativeClang_getDiagnosticNumFixIts = + ffi.UnsignedInt Function(CXDiagnostic Diagnostic); +typedef DartClang_getDiagnosticNumFixIts = + int Function(CXDiagnostic Diagnostic); +typedef NativeClang_getDiagnosticNumRanges = + ffi.UnsignedInt Function(CXDiagnostic); +typedef DartClang_getDiagnosticNumRanges = int Function(CXDiagnostic); +typedef NativeClang_getDiagnosticOption = + CXString Function(CXDiagnostic Diag, ffi.Pointer Disable); +typedef DartClang_getDiagnosticOption = + CXString Function(CXDiagnostic Diag, ffi.Pointer Disable); +typedef NativeClang_getDiagnosticRange = + CXSourceRange Function(CXDiagnostic Diagnostic, ffi.UnsignedInt Range); +typedef DartClang_getDiagnosticRange = + CXSourceRange Function(CXDiagnostic Diagnostic, int Range); +typedef NativeClang_getDiagnosticSetFromTU = + CXDiagnosticSet Function(CXTranslationUnit Unit); +typedef DartClang_getDiagnosticSetFromTU = + CXDiagnosticSet Function(CXTranslationUnit Unit); +typedef NativeClang_getDiagnosticSeverity = + ffi.UnsignedInt Function(CXDiagnostic); +typedef DartClang_getDiagnosticSeverity = int Function(CXDiagnostic); +typedef NativeClang_getDiagnosticSpelling = CXString Function(CXDiagnostic); +typedef DartClang_getDiagnosticSpelling = CXString Function(CXDiagnostic); +typedef NativeClang_getElementType = CXType Function(CXType T); +typedef DartClang_getElementType = CXType Function(CXType T); +typedef NativeClang_getEnumConstantDeclUnsignedValue = + ffi.UnsignedLongLong Function(CXCursor C); +typedef DartClang_getEnumConstantDeclUnsignedValue = int Function(CXCursor C); +typedef NativeClang_getEnumConstantDeclValue = + ffi.LongLong Function(CXCursor C); +typedef DartClang_getEnumConstantDeclValue = int Function(CXCursor C); +typedef NativeClang_getEnumDeclIntegerType = CXType Function(CXCursor C); +typedef DartClang_getEnumDeclIntegerType = CXType Function(CXCursor C); +typedef NativeClang_getExceptionSpecificationType = ffi.Int Function(CXType T); +typedef DartClang_getExceptionSpecificationType = int Function(CXType T); +typedef NativeClang_getExpansionLocation = + ffi.Void Function( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ); +typedef DartClang_getExpansionLocation = + void Function( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ); +typedef NativeClang_getFieldDeclBitWidth = ffi.Int Function(CXCursor C); +typedef DartClang_getFieldDeclBitWidth = int Function(CXCursor C); +typedef NativeClang_getFile = + CXFile Function(CXTranslationUnit tu, ffi.Pointer file_name); +typedef DartClang_getFile = + CXFile Function(CXTranslationUnit tu, ffi.Pointer file_name); +typedef NativeClang_getFileContents = + ffi.Pointer Function( + CXTranslationUnit tu, + CXFile file, + ffi.Pointer size, + ); +typedef DartClang_getFileContents = + ffi.Pointer Function( + CXTranslationUnit tu, + CXFile file, + ffi.Pointer size, + ); +typedef NativeClang_getFileLocation = + ffi.Void Function( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ); +typedef DartClang_getFileLocation = + void Function( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ); +typedef NativeClang_getFileName = CXString Function(CXFile SFile); +typedef DartClang_getFileName = CXString Function(CXFile SFile); +typedef NativeClang_getFileTime = ffi.Int64 Function(CXFile SFile); +typedef DartClang_getFileTime = int Function(CXFile SFile); +typedef NativeClang_getFileUniqueID = + ffi.Int Function(CXFile file, ffi.Pointer outID); +typedef DartClang_getFileUniqueID = + int Function(CXFile file, ffi.Pointer outID); +typedef NativeClang_getFunctionTypeCallingConv = + ffi.UnsignedInt Function(CXType T); +typedef DartClang_getFunctionTypeCallingConv = int Function(CXType T); +typedef NativeClang_getIBOutletCollectionType = CXType Function(CXCursor); +typedef DartClang_getIBOutletCollectionType = CXType Function(CXCursor); +typedef NativeClang_getIncludedFile = CXFile Function(CXCursor cursor); +typedef DartClang_getIncludedFile = CXFile Function(CXCursor cursor); +typedef NativeClang_getInclusions = + ffi.Void Function( + CXTranslationUnit tu, + CXInclusionVisitor visitor, + CXClientData client_data, + ); +typedef DartClang_getInclusions = + void Function( + CXTranslationUnit tu, + CXInclusionVisitor visitor, + CXClientData client_data, + ); +typedef NativeClang_getInstantiationLocation = + ffi.Void Function( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ); +typedef DartClang_getInstantiationLocation = + void Function( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ); +typedef NativeClang_getLocation = + CXSourceLocation Function( + CXTranslationUnit tu, + CXFile file, + ffi.UnsignedInt line, + ffi.UnsignedInt column, + ); +typedef DartClang_getLocation = + CXSourceLocation Function( + CXTranslationUnit tu, + CXFile file, + int line, + int column, + ); +typedef NativeClang_getLocationForOffset = + CXSourceLocation Function( + CXTranslationUnit tu, + CXFile file, + ffi.UnsignedInt offset, + ); +typedef DartClang_getLocationForOffset = + CXSourceLocation Function(CXTranslationUnit tu, CXFile file, int offset); +typedef NativeClang_getModuleForFile = + CXModule Function(CXTranslationUnit, CXFile); +typedef DartClang_getModuleForFile = + CXModule Function(CXTranslationUnit, CXFile); +typedef NativeClang_getNullCursor = CXCursor Function(); +typedef DartClang_getNullCursor = CXCursor Function(); +typedef NativeClang_getNullLocation = CXSourceLocation Function(); +typedef DartClang_getNullLocation = CXSourceLocation Function(); +typedef NativeClang_getNullRange = CXSourceRange Function(); +typedef DartClang_getNullRange = CXSourceRange Function(); +typedef NativeClang_getNumArgTypes = ffi.Int Function(CXType T); +typedef DartClang_getNumArgTypes = int Function(CXType T); +typedef NativeClang_getNumCompletionChunks = + ffi.UnsignedInt Function(CXCompletionString completion_string); +typedef DartClang_getNumCompletionChunks = + int Function(CXCompletionString completion_string); +typedef NativeClang_getNumDiagnostics = + ffi.UnsignedInt Function(CXTranslationUnit Unit); +typedef DartClang_getNumDiagnostics = int Function(CXTranslationUnit Unit); +typedef NativeClang_getNumDiagnosticsInSet = + ffi.UnsignedInt Function(CXDiagnosticSet Diags); +typedef DartClang_getNumDiagnosticsInSet = int Function(CXDiagnosticSet Diags); +typedef NativeClang_getNumElements = ffi.LongLong Function(CXType T); +typedef DartClang_getNumElements = int Function(CXType T); +typedef NativeClang_getNumOverloadedDecls = + ffi.UnsignedInt Function(CXCursor cursor); +typedef DartClang_getNumOverloadedDecls = int Function(CXCursor cursor); +typedef NativeClang_getOverloadedDecl = + CXCursor Function(CXCursor cursor, ffi.UnsignedInt index); +typedef DartClang_getOverloadedDecl = + CXCursor Function(CXCursor cursor, int index); +typedef NativeClang_getOverriddenCursors = + ffi.Void Function( + CXCursor cursor, + ffi.Pointer> overridden, + ffi.Pointer num_overridden, + ); +typedef DartClang_getOverriddenCursors = + void Function( + CXCursor cursor, + ffi.Pointer> overridden, + ffi.Pointer num_overridden, + ); +typedef NativeClang_getPointeeType = CXType Function(CXType T); +typedef DartClang_getPointeeType = CXType Function(CXType T); +typedef NativeClang_getPresumedLocation = + ffi.Void Function( + CXSourceLocation location, + ffi.Pointer filename, + ffi.Pointer line, + ffi.Pointer column, + ); +typedef DartClang_getPresumedLocation = + void Function( + CXSourceLocation location, + ffi.Pointer filename, + ffi.Pointer line, + ffi.Pointer column, + ); +typedef NativeClang_getRange = + CXSourceRange Function(CXSourceLocation begin, CXSourceLocation end); +typedef DartClang_getRange = + CXSourceRange Function(CXSourceLocation begin, CXSourceLocation end); +typedef NativeClang_getRangeEnd = + CXSourceLocation Function(CXSourceRange range); +typedef DartClang_getRangeEnd = CXSourceLocation Function(CXSourceRange range); +typedef NativeClang_getRangeStart = + CXSourceLocation Function(CXSourceRange range); +typedef DartClang_getRangeStart = + CXSourceLocation Function(CXSourceRange range); +typedef NativeClang_getRemappings = + CXRemapping Function(ffi.Pointer path); +typedef DartClang_getRemappings = + CXRemapping Function(ffi.Pointer path); +typedef NativeClang_getRemappingsFromFileList = + CXRemapping Function( + ffi.Pointer> filePaths, + ffi.UnsignedInt numFiles, + ); +typedef DartClang_getRemappingsFromFileList = + CXRemapping Function( + ffi.Pointer> filePaths, + int numFiles, + ); +typedef NativeClang_getResultType = CXType Function(CXType T); +typedef DartClang_getResultType = CXType Function(CXType T); +typedef NativeClang_getSkippedRanges = + ffi.Pointer Function(CXTranslationUnit tu, CXFile file); +typedef DartClang_getSkippedRanges = + ffi.Pointer Function(CXTranslationUnit tu, CXFile file); +typedef NativeClang_getSpecializedCursorTemplate = + CXCursor Function(CXCursor C); +typedef DartClang_getSpecializedCursorTemplate = CXCursor Function(CXCursor C); +typedef NativeClang_getSpellingLocation = + ffi.Void Function( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ); +typedef DartClang_getSpellingLocation = + void Function( + CXSourceLocation location, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ); +typedef NativeClang_getTUResourceUsageName = + ffi.Pointer Function(ffi.UnsignedInt kind); +typedef DartClang_getTUResourceUsageName = + ffi.Pointer Function(int kind); +typedef NativeClang_getTemplateCursorKind = + ffi.UnsignedInt Function(CXCursor C); +typedef DartClang_getTemplateCursorKind = int Function(CXCursor C); +typedef NativeClang_getToken = + ffi.Pointer Function( + CXTranslationUnit TU, + CXSourceLocation Location, + ); +typedef DartClang_getToken = + ffi.Pointer Function( + CXTranslationUnit TU, + CXSourceLocation Location, + ); +typedef NativeClang_getTokenExtent = + CXSourceRange Function(CXTranslationUnit, CXToken); +typedef DartClang_getTokenExtent = + CXSourceRange Function(CXTranslationUnit, CXToken); +typedef NativeClang_getTokenKind = ffi.UnsignedInt Function(CXToken); +typedef DartClang_getTokenKind = int Function(CXToken); +typedef NativeClang_getTokenLocation = + CXSourceLocation Function(CXTranslationUnit, CXToken); +typedef DartClang_getTokenLocation = + CXSourceLocation Function(CXTranslationUnit, CXToken); +typedef NativeClang_getTokenSpelling = + CXString Function(CXTranslationUnit, CXToken); +typedef DartClang_getTokenSpelling = + CXString Function(CXTranslationUnit, CXToken); +typedef NativeClang_getTranslationUnitCursor = + CXCursor Function(CXTranslationUnit); +typedef DartClang_getTranslationUnitCursor = + CXCursor Function(CXTranslationUnit); +typedef NativeClang_getTranslationUnitSpelling = + CXString Function(CXTranslationUnit CTUnit); +typedef DartClang_getTranslationUnitSpelling = + CXString Function(CXTranslationUnit CTUnit); +typedef NativeClang_getTranslationUnitTargetInfo = + CXTargetInfo Function(CXTranslationUnit CTUnit); +typedef DartClang_getTranslationUnitTargetInfo = + CXTargetInfo Function(CXTranslationUnit CTUnit); +typedef NativeClang_getTypeDeclaration = CXCursor Function(CXType T); +typedef DartClang_getTypeDeclaration = CXCursor Function(CXType T); +typedef NativeClang_getTypeKindSpelling = CXString Function(ffi.UnsignedInt K); +typedef DartClang_getTypeKindSpelling = CXString Function(int K); +typedef NativeClang_getTypeSpelling = CXString Function(CXType CT); +typedef DartClang_getTypeSpelling = CXString Function(CXType CT); +typedef NativeClang_getTypedefDeclUnderlyingType = CXType Function(CXCursor C); +typedef DartClang_getTypedefDeclUnderlyingType = CXType Function(CXCursor C); +typedef NativeClang_getTypedefName = CXString Function(CXType CT); +typedef DartClang_getTypedefName = CXString Function(CXType CT); +typedef NativeClang_hashCursor = ffi.UnsignedInt Function(CXCursor); +typedef DartClang_hashCursor = int Function(CXCursor); +typedef NativeClang_indexLoc_getCXSourceLocation = + CXSourceLocation Function(CXIdxLoc loc); +typedef DartClang_indexLoc_getCXSourceLocation = + CXSourceLocation Function(CXIdxLoc loc); +typedef NativeClang_indexLoc_getFileLocation = + ffi.Void Function( + CXIdxLoc loc, + ffi.Pointer indexFile, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ); +typedef DartClang_indexLoc_getFileLocation = + void Function( + CXIdxLoc loc, + ffi.Pointer indexFile, + ffi.Pointer file, + ffi.Pointer line, + ffi.Pointer column, + ffi.Pointer offset, + ); +typedef NativeClang_indexSourceFile = + ffi.Int Function( + CXIndexAction, + CXClientData client_data, + ffi.Pointer index_callbacks, + ffi.UnsignedInt index_callbacks_size, + ffi.UnsignedInt index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer out_TU, + ffi.UnsignedInt TU_options, + ); +typedef DartClang_indexSourceFile = + int Function( + CXIndexAction, + CXClientData client_data, + ffi.Pointer index_callbacks, + int index_callbacks_size, + int index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + ffi.Pointer out_TU, + int TU_options, + ); +typedef NativeClang_indexSourceFileFullArgv = + ffi.Int Function( + CXIndexAction, + CXClientData client_data, + ffi.Pointer index_callbacks, + ffi.UnsignedInt index_callbacks_size, + ffi.UnsignedInt index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer out_TU, + ffi.UnsignedInt TU_options, + ); +typedef DartClang_indexSourceFileFullArgv = + int Function( + CXIndexAction, + CXClientData client_data, + ffi.Pointer index_callbacks, + int index_callbacks_size, + int index_options, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + ffi.Pointer out_TU, + int TU_options, + ); +typedef NativeClang_indexTranslationUnit = + ffi.Int Function( + CXIndexAction, + CXClientData client_data, + ffi.Pointer index_callbacks, + ffi.UnsignedInt index_callbacks_size, + ffi.UnsignedInt index_options, + CXTranslationUnit, + ); +typedef DartClang_indexTranslationUnit = + int Function( + CXIndexAction, + CXClientData client_data, + ffi.Pointer index_callbacks, + int index_callbacks_size, + int index_options, + CXTranslationUnit, + ); +typedef NativeClang_index_getCXXClassDeclInfo = + ffi.Pointer Function(ffi.Pointer); +typedef DartClang_index_getCXXClassDeclInfo = + ffi.Pointer Function(ffi.Pointer); +typedef NativeClang_index_getClientContainer = + CXIdxClientContainer Function(ffi.Pointer); +typedef DartClang_index_getClientContainer = + CXIdxClientContainer Function(ffi.Pointer); +typedef NativeClang_index_getClientEntity = + CXIdxClientEntity Function(ffi.Pointer); +typedef DartClang_index_getClientEntity = + CXIdxClientEntity Function(ffi.Pointer); +typedef NativeClang_index_getIBOutletCollectionAttrInfo = + ffi.Pointer Function( + ffi.Pointer, + ); +typedef DartClang_index_getIBOutletCollectionAttrInfo = + ffi.Pointer Function( + ffi.Pointer, + ); +typedef NativeClang_index_getObjCCategoryDeclInfo = + ffi.Pointer Function(ffi.Pointer); +typedef DartClang_index_getObjCCategoryDeclInfo = + ffi.Pointer Function(ffi.Pointer); +typedef NativeClang_index_getObjCContainerDeclInfo = + ffi.Pointer Function( + ffi.Pointer, + ); +typedef DartClang_index_getObjCContainerDeclInfo = + ffi.Pointer Function( + ffi.Pointer, + ); +typedef NativeClang_index_getObjCInterfaceDeclInfo = + ffi.Pointer Function( + ffi.Pointer, + ); +typedef DartClang_index_getObjCInterfaceDeclInfo = + ffi.Pointer Function( + ffi.Pointer, + ); +typedef NativeClang_index_getObjCPropertyDeclInfo = + ffi.Pointer Function(ffi.Pointer); +typedef DartClang_index_getObjCPropertyDeclInfo = + ffi.Pointer Function(ffi.Pointer); +typedef NativeClang_index_getObjCProtocolRefListInfo = + ffi.Pointer Function( + ffi.Pointer, + ); +typedef DartClang_index_getObjCProtocolRefListInfo = + ffi.Pointer Function( + ffi.Pointer, + ); +typedef NativeClang_index_isEntityObjCContainerKind = + ffi.Int Function(ffi.UnsignedInt); +typedef DartClang_index_isEntityObjCContainerKind = int Function(int); +typedef NativeClang_index_setClientContainer = + ffi.Void Function(ffi.Pointer, CXIdxClientContainer); +typedef DartClang_index_setClientContainer = + void Function(ffi.Pointer, CXIdxClientContainer); +typedef NativeClang_index_setClientEntity = + ffi.Void Function(ffi.Pointer, CXIdxClientEntity); +typedef DartClang_index_setClientEntity = + void Function(ffi.Pointer, CXIdxClientEntity); +typedef NativeClang_isAttribute = ffi.UnsignedInt Function(ffi.UnsignedInt); +typedef DartClang_isAttribute = int Function(int); +typedef NativeClang_isConstQualifiedType = ffi.UnsignedInt Function(CXType T); +typedef DartClang_isConstQualifiedType = int Function(CXType T); +typedef NativeClang_isCursorDefinition = ffi.UnsignedInt Function(CXCursor); +typedef DartClang_isCursorDefinition = int Function(CXCursor); +typedef NativeClang_isDeclaration = ffi.UnsignedInt Function(ffi.UnsignedInt); +typedef DartClang_isDeclaration = int Function(int); +typedef NativeClang_isExpression = ffi.UnsignedInt Function(ffi.UnsignedInt); +typedef DartClang_isExpression = int Function(int); +typedef NativeClang_isFileMultipleIncludeGuarded = + ffi.UnsignedInt Function(CXTranslationUnit tu, CXFile file); +typedef DartClang_isFileMultipleIncludeGuarded = + int Function(CXTranslationUnit tu, CXFile file); +typedef NativeClang_isFunctionTypeVariadic = ffi.UnsignedInt Function(CXType T); +typedef DartClang_isFunctionTypeVariadic = int Function(CXType T); +typedef NativeClang_isInvalid = ffi.UnsignedInt Function(ffi.UnsignedInt); +typedef DartClang_isInvalid = int Function(int); +typedef NativeClang_isInvalidDeclaration = ffi.UnsignedInt Function(CXCursor); +typedef DartClang_isInvalidDeclaration = int Function(CXCursor); +typedef NativeClang_isPODType = ffi.UnsignedInt Function(CXType T); +typedef DartClang_isPODType = int Function(CXType T); +typedef NativeClang_isPreprocessing = ffi.UnsignedInt Function(ffi.UnsignedInt); +typedef DartClang_isPreprocessing = int Function(int); +typedef NativeClang_isReference = ffi.UnsignedInt Function(ffi.UnsignedInt); +typedef DartClang_isReference = int Function(int); +typedef NativeClang_isRestrictQualifiedType = + ffi.UnsignedInt Function(CXType T); +typedef DartClang_isRestrictQualifiedType = int Function(CXType T); +typedef NativeClang_isStatement = ffi.UnsignedInt Function(ffi.UnsignedInt); +typedef DartClang_isStatement = int Function(int); +typedef NativeClang_isTranslationUnit = + ffi.UnsignedInt Function(ffi.UnsignedInt); +typedef DartClang_isTranslationUnit = int Function(int); +typedef NativeClang_isUnexposed = ffi.UnsignedInt Function(ffi.UnsignedInt); +typedef DartClang_isUnexposed = int Function(int); +typedef NativeClang_isVirtualBase = ffi.UnsignedInt Function(CXCursor); +typedef DartClang_isVirtualBase = int Function(CXCursor); +typedef NativeClang_isVolatileQualifiedType = + ffi.UnsignedInt Function(CXType T); +typedef DartClang_isVolatileQualifiedType = int Function(CXType T); +typedef NativeClang_loadDiagnostics = + CXDiagnosticSet Function( + ffi.Pointer file, + ffi.Pointer error, + ffi.Pointer errorString, + ); +typedef DartClang_loadDiagnostics = + CXDiagnosticSet Function( + ffi.Pointer file, + ffi.Pointer error, + ffi.Pointer errorString, + ); +typedef NativeClang_parseTranslationUnit = + CXTranslationUnit Function( + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, + ); +typedef DartClang_parseTranslationUnit = + CXTranslationUnit Function( + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, + ); +typedef NativeClang_parseTranslationUnit2 = + ffi.UnsignedInt Function( + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, + ffi.Pointer out_TU, + ); +typedef DartClang_parseTranslationUnit2 = + int Function( + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, + ffi.Pointer out_TU, + ); +typedef NativeClang_parseTranslationUnit2FullArgv = + ffi.UnsignedInt Function( + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + ffi.Int num_command_line_args, + ffi.Pointer unsaved_files, + ffi.UnsignedInt num_unsaved_files, + ffi.UnsignedInt options, + ffi.Pointer out_TU, + ); +typedef DartClang_parseTranslationUnit2FullArgv = + int Function( + CXIndex CIdx, + ffi.Pointer source_filename, + ffi.Pointer> command_line_args, + int num_command_line_args, + ffi.Pointer unsaved_files, + int num_unsaved_files, + int options, + ffi.Pointer out_TU, + ); +typedef NativeClang_remap_dispose = ffi.Void Function(CXRemapping); +typedef DartClang_remap_dispose = void Function(CXRemapping); +typedef NativeClang_remap_getFilenames = + ffi.Void Function( + CXRemapping, + ffi.UnsignedInt index, + ffi.Pointer original, + ffi.Pointer transformed, + ); +typedef DartClang_remap_getFilenames = + void Function( + CXRemapping, + int index, + ffi.Pointer original, + ffi.Pointer transformed, + ); +typedef NativeClang_remap_getNumFiles = ffi.UnsignedInt Function(CXRemapping); +typedef DartClang_remap_getNumFiles = int Function(CXRemapping); +typedef NativeClang_reparseTranslationUnit = + ffi.Int Function( + CXTranslationUnit TU, + ffi.UnsignedInt num_unsaved_files, + ffi.Pointer unsaved_files, + ffi.UnsignedInt options, + ); +typedef DartClang_reparseTranslationUnit = + int Function( + CXTranslationUnit TU, + int num_unsaved_files, + ffi.Pointer unsaved_files, + int options, + ); +typedef NativeClang_saveTranslationUnit = + ffi.Int Function( + CXTranslationUnit TU, + ffi.Pointer FileName, + ffi.UnsignedInt options, + ); +typedef DartClang_saveTranslationUnit = + int Function( + CXTranslationUnit TU, + ffi.Pointer FileName, + int options, + ); +typedef NativeClang_sortCodeCompletionResults = + ffi.Void Function( + ffi.Pointer Results, + ffi.UnsignedInt NumResults, + ); +typedef DartClang_sortCodeCompletionResults = + void Function(ffi.Pointer Results, int NumResults); +typedef NativeClang_suspendTranslationUnit = + ffi.UnsignedInt Function(CXTranslationUnit); +typedef DartClang_suspendTranslationUnit = int Function(CXTranslationUnit); +typedef NativeClang_toggleCrashRecovery = + ffi.Void Function(ffi.UnsignedInt isEnabled); +typedef DartClang_toggleCrashRecovery = void Function(int isEnabled); +typedef NativeClang_tokenize = + ffi.Void Function( + CXTranslationUnit TU, + CXSourceRange Range, + ffi.Pointer> Tokens, + ffi.Pointer NumTokens, + ); +typedef DartClang_tokenize = + void Function( + CXTranslationUnit TU, + CXSourceRange Range, + ffi.Pointer> Tokens, + ffi.Pointer NumTokens, + ); +typedef NativeClang_visitChildren = + ffi.UnsignedInt Function( + CXCursor parent, + CXCursorVisitor visitor, + CXClientData client_data, + ); +typedef DartClang_visitChildren = + int Function( + CXCursor parent, + CXCursorVisitor visitor, + CXClientData client_data, + ); diff --git a/pkgs/ffigen/lib/src/code_generator/func.dart b/pkgs/ffigen/lib/src/code_generator/func.dart index 6e81e1f674..1dc3e155a9 100644 --- a/pkgs/ffigen/lib/src/code_generator/func.dart +++ b/pkgs/ffigen/lib/src/code_generator/func.dart @@ -63,6 +63,7 @@ class Func extends LookUpBinding with HasLocalScope { /// Contains typealias for function type if [exposeFunctionTypedefs] is true. Typealias? _exposedFunctionTypealias; + Typealias? get exposedFunctionTypealias => _exposedFunctionTypealias; bool isIncluded = false; diff --git a/pkgs/ffigen/lib/src/code_generator/func_type.dart b/pkgs/ffigen/lib/src/code_generator/func_type.dart index 37cd04f831..c719ff6087 100644 --- a/pkgs/ffigen/lib/src/code_generator/func_type.dart +++ b/pkgs/ffigen/lib/src/code_generator/func_type.dart @@ -163,6 +163,9 @@ class NativeFunc extends Type { return _type as FunctionType; } + Typealias? get functionTypealias => + _type is Typealias ? _type : null; + @override String getCType(Context context, {bool writeArgumentNames = true}) { final funcType = _type is FunctionType diff --git a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart index ce3d7a7c57..6eb46d648c 100644 --- a/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart +++ b/pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart @@ -2330,15 +2330,15 @@ final class CXCursorSetImpl extends ffi.Opaque {} /// The visitor should return one of the \c CXChildVisitResult values /// to direct clang_visitCursorChildren(). typedef CXCursorVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ) - > - >; + ffi.Pointer>; +typedef CXCursorVisitorFunction = + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ); +typedef DartCXCursorVisitorFunction = + int Function(CXCursor cursor, CXCursor parent, CXClientData client_data); /// A single diagnostic, containing the diagnostic's severity, /// location, text, source ranges, and fix-it hints. @@ -2447,11 +2447,11 @@ sealed class CXEvalResultKind { /// The visitor should return one of the \c CXVisitorResult values /// to direct \c clang_Type_visitFields. typedef CXFieldVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor C, CXClientData client_data) - > - >; + ffi.Pointer>; +typedef CXFieldVisitorFunction = + ffi.UnsignedInt Function(CXCursor C, CXClientData client_data); +typedef DartCXFieldVisitorFunction = + int Function(CXCursor C, CXClientData client_data); /// A particular source file that is part of a translation unit. typedef CXFile = ffi.Pointer; @@ -2480,16 +2480,21 @@ typedef CXIdxClientFile = ffi.Pointer; /// array is sorted in order of immediate inclusion. For example, /// the first element refers to the location that included 'included_file'. typedef CXInclusionVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - CXClientData client_data, - ) - > - >; + ffi.Pointer>; +typedef CXInclusionVisitorFunction = + ffi.Void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + CXClientData client_data, + ); +typedef DartCXInclusionVisitorFunction = + void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + int include_len, + CXClientData client_data, + ); /// An "index" that consists of a set of translation units that would /// typically be linked together into an executable or library. diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index 98b05ffc13..85f12e68ea 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -39,7 +39,12 @@ class ApplyConfigFiltersVisitation extends Visitation { } @override - void visitFunc(Func node) => _visitImpl(node, node.isIncluded); + void visitFunc(Func node) { + if (node.isIncluded) { + node.exposedFunctionTypealias?.isIncluded = true; + } + _visitImpl(node, node.isIncluded); + } @override void visitMacroConstant(MacroConstant node) => @@ -109,6 +114,25 @@ class ApplyConfigFiltersVisitation extends Visitation { @override void visitTypealias(Typealias node) { if (node.isAnonymous) return; + if (node.isIncluded) { + final internalFunc = _getFunctionTypealias(node.type); + if (internalFunc != null) { + internalFunc.isIncluded = true; + } + } _visitImpl(node, node.isIncluded); } } + +Typealias? _getFunctionTypealias(Type type) { + if (type is Typealias) { + type = type.type; + } + if (type is PointerType) { + final child = type.child; + if (child is NativeFunc) { + return child.functionTypealias; + } + } + return null; +} diff --git a/pkgs/ffigen/lib/src/visitor/list_bindings.dart b/pkgs/ffigen/lib/src/visitor/list_bindings.dart index 6f9bfa6888..f411079b31 100644 --- a/pkgs/ffigen/lib/src/visitor/list_bindings.dart +++ b/pkgs/ffigen/lib/src/visitor/list_bindings.dart @@ -119,14 +119,31 @@ class ListBindingsVisitation extends Visitation { } } + @override + void visitFunc(Func node) { + if (_visitImpl(node, _IncludeBehavior.configOrTransitive)) { + final exposed = node.exposedFunctionTypealias; + if (exposed != null) { + _add(exposed); + } + } + } + @override void visitTypealias(Typealias node) { - _visitImpl( + if (_visitImpl( node, - config.typedefs.includeUnused - ? _IncludeBehavior.configOnly - : _IncludeBehavior.configAndTransitive, - ); + node.isInternal + ? _IncludeBehavior.transitive + : (config.typedefs.includeUnused + ? _IncludeBehavior.configOnly + : _IncludeBehavior.configAndTransitive), + )) { + final internalFunc = _getFunctionTypealias(node.type); + if (internalFunc != null) { + _add(internalFunc); + } + } // Objective C has some core typedefs that are important to keep. if (config.objectiveC != null && @@ -152,4 +169,39 @@ class MarkBindingsVisitation extends Visitation { node.visitChildren(visitor); node.generateBindings = bindings.contains(node); } + + @override + void visitFunc(Func node) { + visitBinding(node); + if (node.generateBindings) { + final exposed = node.exposedFunctionTypealias; + if (exposed != null) { + exposed.generateBindings = true; + } + } + } + + @override + void visitTypealias(Typealias node) { + visitBinding(node); + if (node.generateBindings) { + final internalFunc = _getFunctionTypealias(node.type); + if (internalFunc != null) { + internalFunc.generateBindings = true; + } + } + } +} + +Typealias? _getFunctionTypealias(Type type) { + if (type is Typealias) { + type = type.type; + } + if (type is PointerType) { + final child = type.child; + if (child is NativeFunc) { + return child.functionTypealias; + } + } + return null; } diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart index 5f5df1f17f..f7947f5dff 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_dart_handle_bindings.dart @@ -71,5 +71,6 @@ final class Struct2 extends ffi.Struct { }) => $allocator()..ref.h = h; } -typedef Typedef1 = - ffi.Pointer>; +typedef Typedef1 = ffi.Pointer>; +typedef Typedef1Function = ffi.Void Function(ffi.Handle); +typedef DartTypedef1Function = void Function(Object); diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart index eb0ed55bf9..52c3240100 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_native_func_typedef_bindings.dart @@ -71,7 +71,10 @@ class NativeLibrary { .asFunction(); } -typedef InsideReturnType = ffi.Pointer>; +typedef InsideReturnType = + ffi.Pointer>; +typedef InsideReturnTypeFunction = ffi.Void Function(); +typedef DartInsideReturnTypeFunction = void Function(); final class Struct extends ffi.Struct { external ffi.Pointer< @@ -105,6 +108,10 @@ final class Struct2 extends ffi.Struct { }) => $allocator()..ref.constFuncPointer = constFuncPointer; } -typedef VoidFuncPointer = ffi.Pointer>; +typedef VoidFuncPointer = + ffi.Pointer>; +typedef VoidFuncPointerFunction = ffi.Void Function(); +typedef DartVoidFuncPointerFunction = void Function(); typedef WithTypedefReturnType = - ffi.Pointer>; + ffi.Pointer>; +typedef WithTypedefReturnTypeFunction = InsideReturnType Function(); diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart index 5608b359c1..550cfc43c9 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_struct_fptr_fields_bindings.dart @@ -5,7 +5,9 @@ import 'dart:ffi' as ffi; typedef ArithmeticOperation = - ffi.Pointer>; + ffi.Pointer>; +typedef ArithmeticOperationFunction = ffi.Int Function(ffi.Int a, ffi.Int b); +typedef DartArithmeticOperationFunction = int Function(int a, int b); final class S extends ffi.Struct { external ffi.Pointer> func1; diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart index 89d7474092..7d2414c949 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_typedef_bindings.dart @@ -97,7 +97,9 @@ typedef ExcludedStruct = _ExcludedStruct; typedef IncludedTypedef = ffi.Pointer; typedef NTyperef1 = ExcludedStruct; typedef NamedFunctionProto = - ffi.Pointer>; + ffi.Pointer>; +typedef NamedFunctionProtoFunction = ffi.Void Function(); +typedef DartNamedFunctionProtoFunction = void Function(); typedef NamedStructInTypedef = _NamedStructInTypedef; typedef NestingASpecifiedType = ffi.IntPtr; typedef DartNestingASpecifiedType = int; diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart index 2037994182..35c30efc15 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_libclang_bindings.dart @@ -6922,15 +6922,19 @@ final class CXCursorSetImpl extends ffi.Opaque {} /// Visitor invoked for each cursor found by a traversal. typedef CXCursorVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function( - CXCursor cursor, - CXCursor parent, - CXClientData client_data, - ) - > - >; + ffi.Pointer>; +typedef CXCursorVisitorFunction = + ffi.UnsignedInt Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ); +typedef DartCXCursorVisitorFunction = + CXChildVisitResult Function( + CXCursor cursor, + CXCursor parent, + CXClientData client_data, + ); /// Describes the exception specification of a cursor. enum CXCursor_ExceptionSpecificationKind { @@ -7121,11 +7125,11 @@ enum CXEvalResultKind { /// Visitor invoked for each field found by a traversal. typedef CXFieldVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedInt Function(CXCursor C, CXClientData client_data) - > - >; + ffi.Pointer>; +typedef CXFieldVisitorFunction = + ffi.UnsignedInt Function(CXCursor C, CXClientData client_data); +typedef DartCXFieldVisitorFunction = + CXVisitorResult Function(CXCursor C, CXClientData client_data); /// A particular source file that is part of a translation unit. typedef CXFile = ffi.Pointer; @@ -7649,16 +7653,21 @@ final class CXIdxObjCProtocolRefListInfo extends ffi.Struct { /// Visitor invoked for each file in a translation unit (used with /// clang_getInclusions()). typedef CXInclusionVisitor = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CXFile included_file, - ffi.Pointer inclusion_stack, - ffi.UnsignedInt include_len, - CXClientData client_data, - ) - > - >; + ffi.Pointer>; +typedef CXInclusionVisitorFunction = + ffi.Void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + ffi.UnsignedInt include_len, + CXClientData client_data, + ); +typedef DartCXInclusionVisitorFunction = + void Function( + CXFile included_file, + ffi.Pointer inclusion_stack, + int include_len, + CXClientData client_data, + ); /// An "index" that consists of a set of translation units that would typically /// be linked together into an executable or library. diff --git a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart index f6594a9f6a..d00b72bbf3 100644 --- a/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart +++ b/pkgs/ffigen/test/large_integration_tests/_expected_sqlite_bindings.dart @@ -12465,17 +12465,23 @@ final class fts5_api extends ffi.Struct { } typedef fts5_extension_function = - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer pApi, - ffi.Pointer pFts, - ffi.Pointer pCtx, - ffi.Int nVal, - ffi.Pointer> apVal, - ) - > - >; + ffi.Pointer>; +typedef fts5_extension_functionFunction = + ffi.Void Function( + ffi.Pointer pApi, + ffi.Pointer pFts, + ffi.Pointer pCtx, + ffi.Int nVal, + ffi.Pointer> apVal, + ); +typedef Dartfts5_extension_functionFunction = + void Function( + ffi.Pointer pApi, + ffi.Pointer pFts, + ffi.Pointer pCtx, + int nVal, + ffi.Pointer> apVal, + ); final class fts5_tokenizer extends ffi.Struct { external ffi.Pointer< @@ -12579,16 +12585,21 @@ final class sqlite3_blob extends ffi.Opaque {} /// This is legacy and deprecated. It is included for historical /// compatibility and is not documented. typedef sqlite3_callback = - ffi.Pointer< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Int, - ffi.Pointer>, - ffi.Pointer>, - ) - > - >; + ffi.Pointer>; +typedef sqlite3_callbackFunction = + ffi.Int Function( + ffi.Pointer, + ffi.Int, + ffi.Pointer>, + ffi.Pointer>, + ); +typedef Dartsqlite3_callbackFunction = + int Function( + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>, + ); final class sqlite3_context extends ffi.Opaque {} @@ -12605,7 +12616,11 @@ final class sqlite3_context extends ffi.Opaque {} /// The typedef is necessary to work around problems in certain /// C++ compilers. typedef sqlite3_destructor_type = - ffi.Pointer)>>; + ffi.Pointer>; +typedef sqlite3_destructor_typeFunction = + ffi.Void Function(ffi.Pointer); +typedef Dartsqlite3_destructor_typeFunction = + void Function(ffi.Pointer); final class sqlite3_file extends ffi.Struct { /// Methods for an open file @@ -13991,7 +14006,9 @@ final class sqlite3_stmt extends ffi.Opaque {} final class sqlite3_str extends ffi.Opaque {} typedef sqlite3_syscall_ptr = - ffi.Pointer>; + ffi.Pointer>; +typedef sqlite3_syscall_ptrFunction = ffi.Void Function(); +typedef Dartsqlite3_syscall_ptrFunction = void Function(); typedef sqlite3_uint64 = sqlite_uint64; final class sqlite3_value extends ffi.Opaque {} From b8545e48f436e1dfe0650564bfa54e39ec3c5be9 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 10:06:16 +1000 Subject: [PATCH 30/54] dediff --- .../objective_c/avf_audio_bindings.dart | 28 +++-- .../example/objective_c/generate_code.dart | 1 + .../example/swift/swift_api_bindings.dart | 6 +- .../lib/src/code_generator/func_type.dart | 3 +- .../ffigen/lib/src/visitor/list_bindings.dart | 7 +- .../config_tests/include_exclude_test.dart | 8 ++ .../objective_c_example_test.dart | 2 +- .../example_tests/swift_example_test.dart | 4 +- .../native_objc_test/arc_test_bindings.dart | 3 +- .../block_annotation_test_bindings.dart | 104 +++++++++--------- .../native_objc_test/block_test_bindings.dart | 26 +++-- .../category_test_bindings.dart | 5 +- .../native_objc_test/enum_test_bindings.dart | 11 +- .../isolate_test_bindings.dart | 6 +- .../nullable_test_bindings.dart | 4 +- .../ref_count_test_bindings.dart | 4 +- .../sdk_variable_test_bindings.dart | 68 +++++++----- .../static_func_native_test_bindings.dart | 15 +-- .../static_func_test_bindings.dart | 23 ++-- 19 files changed, 188 insertions(+), 140 deletions(-) diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index a5c0bfe631..08a3e584c4 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -105,7 +105,7 @@ extension type AVAudioPlayer._(objc.ObjCObject object$) extension AVAudioPlayer$Methods on AVAudioPlayer { /// averagePowerForChannel: - double averagePowerForChannel(int channelNumber) { + double averagePowerForChannel(DartNSUInteger channelNumber) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.averagePowerForChannel:', @@ -154,7 +154,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// currentTime - double get currentTime { + DartNSTimeInterval get currentTime { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.currentTime', @@ -195,7 +195,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// deviceCurrentTime - double get deviceCurrentTime { + DartNSTimeInterval get deviceCurrentTime { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.deviceCurrentTime', @@ -208,7 +208,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// duration - double get duration { + DartNSTimeInterval get duration { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.duration', @@ -414,7 +414,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// numberOfChannels - int get numberOfChannels { + DartNSUInteger get numberOfChannels { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.numberOfChannels', @@ -425,7 +425,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// numberOfLoops - int get numberOfLoops { + DartNSInteger get numberOfLoops { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.numberOfLoops', @@ -460,7 +460,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// peakPowerForChannel: - double peakPowerForChannel(int channelNumber) { + double peakPowerForChannel(DartNSUInteger channelNumber) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.peakPowerForChannel:', @@ -492,7 +492,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// playAtTime: - bool playAtTime(double time) { + bool playAtTime(DartNSTimeInterval time) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.playAtTime:', @@ -559,7 +559,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// setCurrentTime: - set currentTime(double value) { + set currentTime(DartNSTimeInterval value) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.setCurrentTime:', @@ -624,7 +624,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// setNumberOfLoops: - set numberOfLoops(int value) { + set numberOfLoops(DartNSInteger value) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.setNumberOfLoops:', @@ -668,7 +668,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// setVolume:fadeDuration: - void setVolume(double volume, {required double fadeDuration}) { + void setVolume(double volume, {required DartNSTimeInterval fadeDuration}) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.setVolume:fadeDuration:', @@ -779,6 +779,12 @@ extension type CASpatialAudioExperience._(objc.ObjCObject object$) }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} } +typedef NSInteger = ffi.Long; +typedef DartNSInteger = int; +typedef NSTimeInterval = ffi.Double; +typedef DartNSTimeInterval = double; +typedef NSUInteger = ffi.UnsignedLong; +typedef DartNSUInteger = int; @ffi.Native>( symbol: 'OBJC_CLASS_\$_AVAudioPlayer', ) diff --git a/pkgs/ffigen/example/objective_c/generate_code.dart b/pkgs/ffigen/example/objective_c/generate_code.dart index 6c58f20acc..7b0417d12a 100644 --- a/pkgs/ffigen/example/objective_c/generate_code.dart +++ b/pkgs/ffigen/example/objective_c/generate_code.dart @@ -22,6 +22,7 @@ final config = FfiGenerator( // To tell FFIgen to generate Objective-C bindings, rather than C bindings, // set the objectiveC field to a non-null value. objectiveC: const ObjectiveC(), + enums: const Enums(silenceWarning: true), visitors: [ Visitor( visitObjCInterface: (node) => diff --git a/pkgs/ffigen/example/swift/swift_api_bindings.dart b/pkgs/ffigen/example/swift/swift_api_bindings.dart index 71cab810fc..c1a2fbd1fc 100644 --- a/pkgs/ffigen/example/swift/swift_api_bindings.dart +++ b/pkgs/ffigen/example/swift/swift_api_bindings.dart @@ -11,6 +11,8 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef NSInteger = ffi.Long; +typedef DartNSInteger = int; /// SwiftClass extension type SwiftClass._(objc.ObjCObject object$) @@ -88,13 +90,13 @@ extension SwiftClass$Methods on SwiftClass { } /// setSomeField: - set someField(int value) { + set someField(DartNSInteger value) { final _$$ref = object$.ref; _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setSomeField_, value); } /// someField - int get someField { + DartNSInteger get someField { final _$$ref = object$.ref; return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_someField); } diff --git a/pkgs/ffigen/lib/src/code_generator/func_type.dart b/pkgs/ffigen/lib/src/code_generator/func_type.dart index c719ff6087..da8e17f787 100644 --- a/pkgs/ffigen/lib/src/code_generator/func_type.dart +++ b/pkgs/ffigen/lib/src/code_generator/func_type.dart @@ -163,8 +163,7 @@ class NativeFunc extends Type { return _type as FunctionType; } - Typealias? get functionTypealias => - _type is Typealias ? _type : null; + Typealias? get functionTypealias => _type is Typealias ? _type : null; @override String getCType(Context context, {bool writeArgumentNames = true}) { diff --git a/pkgs/ffigen/lib/src/visitor/list_bindings.dart b/pkgs/ffigen/lib/src/visitor/list_bindings.dart index f411079b31..4f00a57b64 100644 --- a/pkgs/ffigen/lib/src/visitor/list_bindings.dart +++ b/pkgs/ffigen/lib/src/visitor/list_bindings.dart @@ -11,7 +11,6 @@ import 'ast.dart'; enum _IncludeBehavior { configOnly, configOrTransitive, - configAndTransitive, configOrDirectTransitive, transitive, } @@ -42,8 +41,6 @@ class ListBindingsVisitation extends Visitation { return includes.contains(node); case _IncludeBehavior.configOrTransitive: return includes.contains(node) || transitives.contains(node); - case _IncludeBehavior.configAndTransitive: - return includes.contains(node) && transitives.contains(node); case _IncludeBehavior.configOrDirectTransitive: return includes.contains(node) || directTransitives.contains(node); case _IncludeBehavior.transitive: @@ -136,8 +133,8 @@ class ListBindingsVisitation extends Visitation { node.isInternal ? _IncludeBehavior.transitive : (config.typedefs.includeUnused - ? _IncludeBehavior.configOnly - : _IncludeBehavior.configAndTransitive), + ? _IncludeBehavior.configOnly + : _IncludeBehavior.transitive), )) { final internalFunc = _getFunctionTypealias(node.type); if (internalFunc != null) { diff --git a/pkgs/ffigen/test/config_tests/include_exclude_test.dart b/pkgs/ffigen/test/config_tests/include_exclude_test.dart index 073a8eb4b3..dcad0a2b49 100644 --- a/pkgs/ffigen/test/config_tests/include_exclude_test.dart +++ b/pkgs/ffigen/test/config_tests/include_exclude_test.dart @@ -58,6 +58,14 @@ ${strings.headers}: - '${absPath('test/config_tests/include_exclude.h')}' '''; if (include != null || exclude != null) { + if (field == strings.typedefs && exclude != null) { + templateString += + ''' +${strings.functions}: + ${strings.exclude}: + - func +'''; + } templateString += ''' $field: diff --git a/pkgs/ffigen/test/example_tests/objective_c_example_test.dart b/pkgs/ffigen/test/example_tests/objective_c_example_test.dart index e67256a731..6aa5c5fe9b 100644 --- a/pkgs/ffigen/test/example_tests/objective_c_example_test.dart +++ b/pkgs/ffigen/test/example_tests/objective_c_example_test.dart @@ -33,7 +33,7 @@ void main() { actual, contains('AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) {'), ); - expect(actual, contains('double get duration {')); + expect(actual, contains('DartNSTimeInterval get duration {')); expect(actual, contains('bool play() {')); return true; diff --git a/pkgs/ffigen/test/example_tests/swift_example_test.dart b/pkgs/ffigen/test/example_tests/swift_example_test.dart index c876579e8c..4003bc4195 100644 --- a/pkgs/ffigen/test/example_tests/swift_example_test.dart +++ b/pkgs/ffigen/test/example_tests/swift_example_test.dart @@ -55,8 +55,8 @@ void main() { ); expect(actual, contains('static SwiftClass new\$() {')); expect(actual, contains('NSString sayHello() {')); - expect(actual, contains('int get someField {')); - expect(actual, contains('set someField(int value) {')); + expect(actual, contains('DartNSInteger get someField {')); + expect(actual, contains('set someField(DartNSInteger value) {')); // Verify that SwiftClass is loaded using the swift_module prefix. expect( diff --git a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart index 12fd500fb5..a9b3c80fe8 100644 --- a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart @@ -238,7 +238,7 @@ extension ArcTestObject$Methods on ArcTestObject { } /// copyWithZone: - objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { + objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { final _$$ref = object$.ref; final $ret = _objc_msgSend_1cwp428( _$$ref.pointer, @@ -341,6 +341,7 @@ extension ArcTestObject$Methods on ArcTestObject { } } +typedef NSZone = objc.NSZone; @ffi.Native>( symbol: 'OBJC_CLASS_\$_ArcDtorTestObject', ) diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart index 1854786c48..0b78685fc5 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart @@ -223,12 +223,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// invokeBlockProducer: - static DartEmptyBlock invokeBlockProducer( - objc.ObjCBlock< - objc.ObjCBlock Function(ffi.Pointer) - > - block, - ) { + static DartEmptyBlock invokeBlockProducer(DartBlockProducer block) { final _$$ref = block.ref; final $ret = _objc_msgSend_w08mvv( _class_BlockAnnotationTest, @@ -240,7 +235,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// invokeConsumedObjectListenerAsync: static NSThread invokeConsumedObjectListenerAsync( - objc.ObjCBlock, EmptyObject)> block, + DartConsumedObjectListener block, ) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( @@ -253,7 +248,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// invokeConsumedObjectListenerSync: static void invokeConsumedObjectListenerSync( - objc.ObjCBlock, EmptyObject)> block, + DartConsumedObjectListener block, ) { final _$$ref = block.ref; _objc_msgSend_f167m6( @@ -265,8 +260,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// invokeConsumedObjectReceiver: static EmptyObject invokeConsumedObjectReceiver( - objc.ObjCBlock, EmptyObject)> - block, + DartConsumedObjectReceiver block, ) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( @@ -278,9 +272,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// invokeObjectListenerAsync: - static NSThread invokeObjectListenerAsync( - objc.ObjCBlock, EmptyObject)> block, - ) { + static NSThread invokeObjectListenerAsync(DartObjectListener block) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, @@ -291,9 +283,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// invokeObjectListenerSync: - static void invokeObjectListenerSync( - objc.ObjCBlock, EmptyObject)> block, - ) { + static void invokeObjectListenerSync(DartObjectListener block) { final _$$ref = block.ref; _objc_msgSend_f167m6( _class_BlockAnnotationTest, @@ -303,9 +293,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// invokeObjectProducer: - static EmptyObject invokeObjectProducer( - objc.ObjCBlock)> block, - ) { + static EmptyObject invokeObjectProducer(DartObjectProducer block) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, @@ -316,10 +304,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// invokeObjectReceiver: - static EmptyObject invokeObjectReceiver( - objc.ObjCBlock, EmptyObject)> - block, - ) { + static EmptyObject invokeObjectReceiver(DartObjectReceiver block) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, @@ -331,10 +316,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// invokeRetainedBlockProducer: static DartEmptyBlock invokeRetainedBlockProducer( - objc.ObjCBlock< - objc.ObjCBlock Function(ffi.Pointer) - > - block, + DartRetainedBlockProducer block, ) { final _$$ref = block.ref; final $ret = _objc_msgSend_w08mvv( @@ -347,7 +329,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// invokeRetainedObjectProducer: static EmptyObject invokeRetainedObjectProducer( - objc.ObjCBlock)> block, + DartRetainedObjectProducer block, ) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( @@ -365,10 +347,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newBlockProducer - static objc.ObjCBlock< - objc.ObjCBlock Function(ffi.Pointer) - > - newBlockProducer() { + static DartBlockProducer newBlockProducer() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newBlockProducer, @@ -381,10 +360,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newConsumedObjectReceiver - static objc.ObjCBlock< - EmptyObject Function(ffi.Pointer, EmptyObject) - > - newConsumedObjectReceiver() { + static DartConsumedObjectReceiver newConsumedObjectReceiver() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newConsumedObjectReceiver, @@ -397,8 +373,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newObjectProducer - static objc.ObjCBlock)> - newObjectProducer() { + static DartObjectProducer newObjectProducer() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newObjectProducer, @@ -411,10 +386,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newObjectReceiver - static objc.ObjCBlock< - EmptyObject Function(ffi.Pointer, EmptyObject) - > - newObjectReceiver() { + static DartObjectReceiver newObjectReceiver() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newObjectReceiver, @@ -427,10 +399,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newRetainedBlockProducer - static objc.ObjCBlock< - objc.ObjCBlock Function(ffi.Pointer) - > - newRetainedBlockProducer() { + static DartRetainedBlockProducer newRetainedBlockProducer() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newRetainedBlockProducer, @@ -443,8 +412,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newRetainedObjectProducer - static objc.ObjCBlock)> - newRetainedObjectProducer() { + static DartRetainedObjectProducer newRetainedObjectProducer() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newRetainedObjectProducer, @@ -1130,6 +1098,17 @@ interface class BlockAnnotationTestProtocol$Builder { ); } +typedef BlockProducer = ffi.Pointer; +typedef DartBlockProducer = + objc.ObjCBlock< + objc.ObjCBlock Function(ffi.Pointer) + >; +typedef ConsumedObjectListener = ffi.Pointer; +typedef DartConsumedObjectListener = + objc.ObjCBlock, EmptyObject)>; +typedef ConsumedObjectReceiver = ffi.Pointer; +typedef DartConsumedObjectReceiver = + objc.ObjCBlock, EmptyObject)>; typedef EmptyBlock = ffi.Pointer; typedef DartEmptyBlock = objc.ObjCBlock; @@ -1352,7 +1331,7 @@ extension type NSThread._(objc.ObjCObject object$) } /// sleepForTimeInterval: - static void sleepForTimeInterval(double ti) { + static void sleepForTimeInterval(DartNSTimeInterval ti) { _objc_msgSend_hwm8nu(_class_NSThread, _sel_sleepForTimeInterval_, ti); } @@ -1554,7 +1533,7 @@ extension NSThread$Methods on NSThread { } /// setStackSize: - set stackSize(int value) { + set stackSize(DartNSUInteger value) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSThread.setStackSize:', @@ -1576,7 +1555,7 @@ extension NSThread$Methods on NSThread { } /// stackSize - int get stackSize { + DartNSUInteger get stackSize { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSThread.stackSize', @@ -1622,6 +1601,11 @@ extension NSThread$Methods on NSThread { } } +typedef NSTimeInterval = ffi.Double; +typedef DartNSTimeInterval = double; +typedef NSUInteger = ffi.UnsignedLong; +typedef DartNSUInteger = int; + /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. abstract final class ObjCBlock_EmptyBlock_ffiVoid { /// Returns a block that wraps the given raw block pointer. @@ -2988,6 +2972,24 @@ extension ObjCBlock_ffiVoid_ffiVoid_EmptyObject$1$CallExtension } } +typedef ObjectListener = ffi.Pointer; +typedef DartObjectListener = + objc.ObjCBlock, EmptyObject)>; +typedef ObjectProducer = ffi.Pointer; +typedef DartObjectProducer = + objc.ObjCBlock)>; +typedef ObjectReceiver = ffi.Pointer; +typedef DartObjectReceiver = + objc.ObjCBlock, EmptyObject)>; +typedef RetainedBlockProducer = ffi.Pointer; +typedef DartRetainedBlockProducer = + objc.ObjCBlock< + objc.ObjCBlock Function(ffi.Pointer) + >; +typedef RetainedObjectProducer = ffi.Pointer; +typedef DartRetainedObjectProducer = + objc.ObjCBlock)>; + extension type _BlockArgs_1wgsnfr._(objc.ObjCObject object$) implements objc.ObjCObject { /// Constructs a [_BlockArgs_1wgsnfr] that points to the same underlying object as [other]. diff --git a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart index 14de93cbb6..ca0ceb0133 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart @@ -316,8 +316,8 @@ extension type BlockTester._(objc.ObjCObject object$) /// blockingBlockTest:resultBlock: static void blockingBlockTest( - objc.ObjCBlock)> blockingBlock, { - required objc.ObjCBlock resultBlock, + DartIntPtrBlock blockingBlock, { + required DartResultBlock resultBlock, }) { final _$$ref = blockingBlock.ref; final _$$ref$1 = resultBlock.ref; @@ -419,9 +419,7 @@ extension type BlockTester._(objc.ObjCObject object$) } /// callNullableStringBlock: - static objc.NSString? callNullableStringBlock( - objc.ObjCBlock block, - ) { + static objc.NSString? callNullableStringBlock(DartNullableStringBlock block) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( _class_BlockTester, @@ -785,6 +783,9 @@ typedef FloatBlock = ffi.Pointer; typedef DartFloatBlock = objc.ObjCBlock; typedef IntBlock = ffi.Pointer; typedef DartIntBlock = objc.ObjCBlock; +typedef IntPtrBlock = ffi.Pointer; +typedef DartIntPtrBlock = + objc.ObjCBlock)>; typedef ListenerBlock = ffi.Pointer; typedef DartListenerBlock = objc.ObjCBlock< @@ -944,7 +945,7 @@ extension type NSThread._(objc.ObjCObject object$) } /// sleepForTimeInterval: - static void sleepForTimeInterval(double ti) { + static void sleepForTimeInterval(DartNSTimeInterval ti) { _objc_msgSend_hwm8nu(_class_NSThread, _sel_sleepForTimeInterval_, ti); } @@ -1146,7 +1147,7 @@ extension NSThread$Methods on NSThread { } /// setStackSize: - set stackSize(int value) { + set stackSize(DartNSUInteger value) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSThread.setStackSize:', @@ -1168,7 +1169,7 @@ extension NSThread$Methods on NSThread { } /// stackSize - int get stackSize { + DartNSUInteger get stackSize { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSThread.stackSize', @@ -1214,6 +1215,10 @@ extension NSThread$Methods on NSThread { } } +typedef NSTimeInterval = ffi.Double; +typedef DartNSTimeInterval = double; +typedef NSUInteger = ffi.UnsignedLong; +typedef DartNSUInteger = int; typedef NoTrampolineListenerBlock = ffi.Pointer; typedef DartNoTrampolineListenerBlock = objc.ObjCBlock)>; @@ -1223,6 +1228,9 @@ typedef DartNullableListenerBlock = typedef NullableObjectBlock = ffi.Pointer; typedef DartNullableObjectBlock = objc.ObjCBlock; +typedef NullableStringBlock = ffi.Pointer; +typedef DartNullableStringBlock = + objc.ObjCBlock; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_DummyObject_DummyObject { @@ -3835,6 +3843,8 @@ typedef DartObjectBlock = objc.ObjCBlock; typedef ObjectListenerBlock = ffi.Pointer; typedef DartObjectListenerBlock = objc.ObjCBlock; +typedef ResultBlock = ffi.Pointer; +typedef DartResultBlock = objc.ObjCBlock; typedef SelectorBlock = ffi.Pointer; typedef DartSelectorBlock = objc.ObjCBlock)>; diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index 6d48048e5d..7a9c932b95 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -482,7 +482,7 @@ extension NSPromisedItems on objc.NSURL { /// getPromisedItemResourceValue:forKey:error: bool getPromisedItemResourceValue( ffi.Pointer> value, { - required objc.NSString forKey, + required DartNSURLResourceKey forKey, }) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; @@ -884,6 +884,9 @@ extension NSURLPathUtilities on objc.NSURL { } } +typedef NSURLResourceKey = ffi.Pointer; +typedef DartNSURLResourceKey = objc.NSString; + /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSData_NSError { /// Returns a block that wraps the given raw block pointer. diff --git a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart index 624ad51faa..4c823b9ffe 100644 --- a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart @@ -76,7 +76,7 @@ extension type EnumTestInterface._(objc.ObjCObject object$) } /// useImportedNSOptions: - static int useImportedNSOptions(int x) { + static int useImportedNSOptions(DartNSUInteger x) { return _objc_msgSend_1cxnp8y( _class_EnumTestInterface, _sel_useImportedNSOptions_, @@ -123,6 +123,11 @@ enum Fruit { }; } +typedef NSInteger = ffi.Long; +typedef DartNSInteger = int; +typedef NSUInteger = ffi.UnsignedLong; +typedef DartNSUInteger = int; + const int SOME_MACRO = 123; const int UnnamedEnumValue = 0; @@ -192,7 +197,7 @@ final _objc_msgSend_1cxnp8y = objc.msgSendPointer ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + NSUInteger, ) > >() @@ -209,7 +214,7 @@ final _objc_msgSend_1y89lso = objc.msgSendPointer ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + NSInteger, ) > >() diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart index fb2451e90b..bd3609dbf2 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart @@ -41,6 +41,9 @@ external ffi.Pointer _rdx59v_wrapListenerBlock_1bqef4y( ffi.Pointer context, ); +typedef Listener = ffi.Pointer; +typedef DartListener = objc.ObjCBlock; + /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -231,8 +234,7 @@ extension type Sendable._(objc.ObjCObject object$) } /// dummyMethodToForceGenerationOfListener - static objc.ObjCBlock - dummyMethodToForceGenerationOfListener() { + static DartListener dummyMethodToForceGenerationOfListener() { final $ret = _objc_msgSend_uwvaik( _class_Sendable, _sel_dummyMethodToForceGenerationOfListener, diff --git a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart index ba8f6f1664..ef162cfa3e 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart @@ -10,6 +10,8 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +typedef MyString = ffi.Pointer; +typedef DartMyString = objc.NSString; /// NullableInterface extension type NullableInterface._(objc.ObjCObject object$) @@ -123,7 +125,7 @@ extension type NullableInterface._(objc.ObjCObject object$) } /// returnNullableAlias: - static objc.NSString? returnNullableAlias(bool r) { + static DartMyString? returnNullableAlias(bool r) { final $ret = _objc_msgSend_1t6aok9( _class_NullableInterface, _sel_returnNullableAlias_, diff --git a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart index 79e372972b..52e7e608f3 100644 --- a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart @@ -16,6 +16,8 @@ external void objc_autoreleasePoolPop(ffi.Pointer pool); @ffi.Native Function()>() external ffi.Pointer objc_autoreleasePoolPush(); +typedef NSZone = objc.NSZone; + /// RefCountTestObject extension type RefCountTestObject._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -156,7 +158,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { } /// copyWithZone: - objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { + objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { final _$$ref = object$.ref; final $ret = _objc_msgSend_1cwp428( _$$ref.pointer, diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart index 1b66ae4d68..04dbea1231 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart @@ -298,7 +298,7 @@ extension NSColorPicker$Methods on NSColorPicker { /// initWithPickerMask:colorPanel: NSColorPicker? initWithPickerMask( - int mask, { + DartNSUInteger mask, { required NSColorPanel colorPanel, }) { final _$$ref = object$.ref; @@ -339,21 +339,21 @@ extension NSColorPicker$Methods on NSColorPicker { } /// minContentSize - objc.CGSize get minContentSize { + NSSize get minContentSize { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSColorPicker.minContentSize', iOS: (true, null), ); - final $ptr = pkg_ffi.calloc(); + final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_minContentSize) : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_minContentSize); final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), + ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, ); - return ffi.Struct.create($finalizable); + return ffi.Struct.create($finalizable); } /// provideNewButtonImage @@ -426,6 +426,9 @@ extension type NSImage._(objc.ObjCObject object$) implements objc.ObjCObject { }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} } +typedef NSInteger = ffi.Long; +typedef DartNSInteger = int; + /// WARNING: NSMenuItemValidation is a stub. To generate bindings for this class, include /// NSMenuItemValidation in your config's objc-protocols list. /// @@ -485,6 +488,8 @@ extension type NSResponder._(objc.ObjCObject object$) } } +typedef NSSize = objc.CGSize; + /// NSTextList extension type NSTextList._(objc.ObjCObject object$) implements @@ -599,8 +604,8 @@ extension NSTextList$Methods on NSTextList { /// initWithMarkerFormat:options: NSTextList initWithMarkerFormat( - objc.NSString markerFormat, { - required int options, + DartNSTextListMarkerFormat markerFormat, { + required DartNSUInteger options, }) { final _$$ref = object$.ref; final _$$ref$1 = markerFormat.ref; @@ -620,9 +625,9 @@ extension NSTextList$Methods on NSTextList { /// initWithMarkerFormat:options:startingItemNumber: NSTextList initWithMarkerFormat$1( - objc.NSString markerFormat, { - required int options, - required int startingItemNumber, + DartNSTextListMarkerFormat markerFormat, { + required DartNSUInteger options, + required DartNSInteger startingItemNumber, }) { final _$$ref = object$.ref; final _$$ref$1 = markerFormat.ref; @@ -653,7 +658,7 @@ extension NSTextList$Methods on NSTextList { } /// listOptions - int get listOptions { + DartNSUInteger get listOptions { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSTextList.listOptions', @@ -664,7 +669,7 @@ extension NSTextList$Methods on NSTextList { } /// markerForItemNumber: - objc.NSString markerForItemNumber(int itemNumber) { + objc.NSString markerForItemNumber(DartNSInteger itemNumber) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSTextList.markerForItemNumber:', @@ -680,7 +685,7 @@ extension NSTextList$Methods on NSTextList { } /// markerFormat - objc.NSString get markerFormat { + DartNSTextListMarkerFormat get markerFormat { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSTextList.markerFormat', @@ -692,7 +697,7 @@ extension NSTextList$Methods on NSTextList { } /// setStartingItemNumber: - set startingItemNumber(int value) { + set startingItemNumber(DartNSInteger value) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSTextList.setStartingItemNumber:', @@ -703,7 +708,7 @@ extension NSTextList$Methods on NSTextList { } /// startingItemNumber - int get startingItemNumber { + DartNSInteger get startingItemNumber { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSTextList.startingItemNumber', @@ -714,10 +719,16 @@ extension NSTextList$Methods on NSTextList { } } +typedef NSTextListMarkerFormat = ffi.Pointer; +typedef DartNSTextListMarkerFormat = objc.NSString; + sealed class NSTextListOptions { static const NSTextListPrependEnclosingMarker = 1; } +typedef NSUInteger = ffi.UnsignedLong; +typedef DartNSUInteger = int; + /// WARNING: NSUserInterfaceItemIdentification is a stub. To generate bindings for this class, include /// NSUserInterfaceItemIdentification in your config's objc-protocols list. /// @@ -864,7 +875,7 @@ extension UIPickerView$Methods on UIPickerView { } /// numberOfComponents - int get numberOfComponents { + DartNSInteger get numberOfComponents { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.numberOfComponents', @@ -874,7 +885,7 @@ extension UIPickerView$Methods on UIPickerView { } /// numberOfRowsInComponent: - int numberOfRowsInComponent(int component) { + DartNSInteger numberOfRowsInComponent(DartNSInteger component) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.numberOfRowsInComponent:', @@ -898,7 +909,7 @@ extension UIPickerView$Methods on UIPickerView { } /// reloadComponent: - void reloadComponent(int component) { + void reloadComponent(DartNSInteger component) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.reloadComponent:', @@ -908,7 +919,7 @@ extension UIPickerView$Methods on UIPickerView { } /// rowSizeForComponent: - objc.CGSize rowSizeForComponent(int component) { + objc.CGSize rowSizeForComponent(DartNSInteger component) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.rowSizeForComponent:', @@ -935,7 +946,11 @@ extension UIPickerView$Methods on UIPickerView { } /// selectRow:inComponent:animated: - void selectRow(int row, {required int inComponent, required bool animated}) { + void selectRow( + DartNSInteger row, { + required DartNSInteger inComponent, + required bool animated, + }) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.selectRow:inComponent:animated:', @@ -951,7 +966,7 @@ extension UIPickerView$Methods on UIPickerView { } /// selectedRowInComponent: - int selectedRowInComponent(int component) { + DartNSInteger selectedRowInComponent(DartNSInteger component) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.selectedRowInComponent:', @@ -1021,7 +1036,10 @@ extension UIPickerView$Methods on UIPickerView { } /// viewForRow:forComponent: - objc.ObjCObject viewForRow(int row, {required int forComponent}) { + objc.ObjCObject viewForRow( + DartNSInteger row, { + required DartNSInteger forComponent, + }) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.viewForRow:forComponent:', @@ -1175,7 +1193,7 @@ final _objc_msgSend_190ea64 = objc.msgSendPointer ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Long, + NSInteger, ) > >() @@ -1210,7 +1228,7 @@ final _objc_msgSend_1bh1vl9 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + NSUInteger, ffi.Long, ) > @@ -1431,7 +1449,7 @@ final _objc_msgSend_cy4jud = objc.msgSendPointer final _objc_msgSend_exovb9 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + NSUInteger Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart index 41ff128938..3d49c9a5d5 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart @@ -32,16 +32,10 @@ void staticFuncConsumesArg(StaticFuncTestObj a) { return _staticFuncConsumesArg(_$$ref.retainAndReturnPointer()); } -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(symbol: 'staticFuncOfBlock') -external ffi.Pointer _staticFuncOfBlock( - ffi.Pointer a, -); +@ffi.Native(symbol: 'staticFuncOfBlock') +external IntBlock _staticFuncOfBlock(IntBlock a); -objc.ObjCBlock staticFuncOfBlock( - objc.ObjCBlock a, -) { +DartIntBlock staticFuncOfBlock(DartIntBlock a) { final _$$ref = a.ref; return ObjCBlock_Int32_Int32.fromPointer( _staticFuncOfBlock(_$$ref.pointer), @@ -116,6 +110,9 @@ StaticFuncTestObj staticFuncReturnsRetainedArg(StaticFuncTestObj a) { ); } +typedef IntBlock = ffi.Pointer; +typedef DartIntBlock = objc.ObjCBlock; + /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. diff --git a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart index a4ea0b3383..fac42b9067 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart @@ -74,9 +74,7 @@ class StaticFuncTestObjCLibrary { late final _staticFuncConsumesArg = _staticFuncConsumesArgPtr .asFunction)>(); - objc.ObjCBlock staticFuncOfBlock( - objc.ObjCBlock a, - ) { + DartIntBlock staticFuncOfBlock(DartIntBlock a) { final _$$ref = a.ref; return ObjCBlock_Int32_Int32.fromPointer( _staticFuncOfBlock(_$$ref.pointer), @@ -86,19 +84,11 @@ class StaticFuncTestObjCLibrary { } late final _staticFuncOfBlockPtr = - _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - > - >('staticFuncOfBlock'); + _lookup>( + 'staticFuncOfBlock', + ); late final _staticFuncOfBlock = _staticFuncOfBlockPtr - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ) - >(); + .asFunction(); StaticFuncTestObj? staticFuncOfNullableObject(StaticFuncTestObj? a) { final _$$ref = a?.ref; @@ -197,6 +187,9 @@ class StaticFuncTestObjCLibrary { >(); } +typedef IntBlock = ffi.Pointer; +typedef DartIntBlock = objc.ObjCBlock; + /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. From ed671281e84a9e23dfc01bc65ac6fe7b8b0d09ec Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 11:43:52 +1000 Subject: [PATCH 31/54] fmt --- pkgs/ffigen/test/large_integration_tests/large_test.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/ffigen/test/large_integration_tests/large_test.dart b/pkgs/ffigen/test/large_integration_tests/large_test.dart index 7062a2cb72..6228bf2ce4 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_test.dart @@ -71,6 +71,7 @@ void main() { visitStruct: (node) => node.isIncluded = true, visitUnion: (node) => node.isIncluded = true, visitEnum: (node) => node.isIncluded = true, + visitUnnamedEnumConstant: (node) => node.isIncluded = true, visitGlobal: (node) => node.isIncluded = true, visitMacro: (node) => node.isIncluded = true, visitTypealias: (node) => node.isIncluded = true, @@ -158,6 +159,7 @@ void main() { visitStruct: (node) => node.isIncluded = true, visitUnion: (node) => node.isIncluded = true, visitEnum: (node) => node.isIncluded = true, + visitUnnamedEnumConstant: (node) => node.isIncluded = true, visitGlobal: (node) => node.isIncluded = true, visitMacro: (node) => node.isIncluded = true, visitTypealias: (node) => node.isIncluded = true, @@ -230,6 +232,7 @@ void main() { }, visitUnion: (node) => node.isIncluded = true, visitEnum: (node) => node.isIncluded = true, + visitUnnamedEnumConstant: (node) => node.isIncluded = true, visitGlobal: (node) => node.isIncluded = true, visitMacro: (node) => node.isIncluded = true, ), From bb3f278adcf7ac8773ffbe4b42494e23e63f8d38 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 11:49:22 +1000 Subject: [PATCH 32/54] fmt --- .../test/native_cpp_test/cpp_class_test.dart | 20 +++--- .../test/native_objc_test/block_test.dart | 66 ++++++++----------- .../static_func_native_test.dart | 18 ++--- .../native_objc_test/static_func_test.dart | 18 ++--- 4 files changed, 49 insertions(+), 73 deletions(-) diff --git a/pkgs/ffigen/test/native_cpp_test/cpp_class_test.dart b/pkgs/ffigen/test/native_cpp_test/cpp_class_test.dart index 551c815f12..52bf684c2b 100644 --- a/pkgs/ffigen/test/native_cpp_test/cpp_class_test.dart +++ b/pkgs/ffigen/test/native_cpp_test/cpp_class_test.dart @@ -110,18 +110,14 @@ void main() { expect(subject, isNotNull); } - test( - 'retainOwnership after releaseOwnership re-enables GC finalizer', - () { - final counter = calloc().cast(); - counter.value = 0; - retainAfterReleaseInner(counter); - doGC(); - expect(counter.value, 1); - calloc.free(counter); - }, - skip: !canDoGC, - ); + test('retainOwnership after releaseOwnership re-enables GC finalizer', () { + final counter = calloc().cast(); + counter.value = 0; + retainAfterReleaseInner(counter); + doGC(); + expect(counter.value, 1); + calloc.free(counter); + }, skip: !canDoGC); test('retainOwnership throws StateError if already owned', () { final counter = calloc().cast(); diff --git a/pkgs/ffigen/test/native_objc_test/block_test.dart b/pkgs/ffigen/test/native_objc_test/block_test.dart index 74215b84d9..7d8c73902a 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test.dart @@ -733,20 +733,16 @@ void main() { return (inputBlockTracker, blockBlockTracker, outputBlockTracker); } - test( - 'Calling a native block block from Dart has correct ref counting', - () { - using((Arena arena) { - final (inputBlockTracker, blockBlockTracker, outputBlockTracker) = - nativeBlockBlockDartCallRefCountTest(arena); - doGC(); - expect(inputBlockTracker.isAlive, false); - expect(blockBlockTracker.isAlive, false); - expect(outputBlockTracker.isAlive, false); - }); - }, - skip: !canDoGC, - ); + test('Calling a native block block from Dart has correct ref counting', () { + using((Arena arena) { + final (inputBlockTracker, blockBlockTracker, outputBlockTracker) = + nativeBlockBlockDartCallRefCountTest(arena); + doGC(); + expect(inputBlockTracker.isAlive, false); + expect(blockBlockTracker.isAlive, false); + expect(outputBlockTracker.isAlive, false); + }); + }, skip: !canDoGC); @pragma('vm:never-inline') (ReferenceTracker, ReferenceTracker) nativeBlockBlockObjCCallRefCountTest( @@ -772,19 +768,15 @@ void main() { return (blockBlockTracker, outputBlockTracker); } - test( - 'Calling a native block block from ObjC has correct ref counting', - () { - using((Arena arena) { - final (blockBlockTracker, outputBlockTracker) = - nativeBlockBlockObjCCallRefCountTest(arena); - doGC(); - expect(blockBlockTracker.isAlive, false); - expect(outputBlockTracker.isAlive, false); - }); - }, - skip: !canDoGC, - ); + test('Calling a native block block from ObjC has correct ref counting', () { + using((Arena arena) { + final (blockBlockTracker, outputBlockTracker) = + nativeBlockBlockObjCCallRefCountTest(arena); + doGC(); + expect(blockBlockTracker.isAlive, false); + expect(outputBlockTracker.isAlive, false); + }); + }, skip: !canDoGC); @pragma('vm:never-inline') (Pointer, Pointer) objectBlockRefCountTest(Allocator alloc) { @@ -807,18 +799,14 @@ void main() { return (inputCounter, outputCounter); } - test( - 'Objects received and returned by blocks have correct ref counts', - () { - using((Arena arena) { - final (inputCounter, outputCounter) = objectBlockRefCountTest(arena); - doGC(); - expect(inputCounter.value, 0); - expect(outputCounter.value, 0); - }); - }, - skip: !canDoGC, - ); + test('Objects received and returned by blocks have correct ref counts', () { + using((Arena arena) { + final (inputCounter, outputCounter) = objectBlockRefCountTest(arena); + doGC(); + expect(inputCounter.value, 0); + expect(outputCounter.value, 0); + }); + }, skip: !canDoGC); @pragma('vm:never-inline') (Pointer, Pointer) objectNativeBlockRefCountTest( diff --git a/pkgs/ffigen/test/native_objc_test/static_func_native_test.dart b/pkgs/ffigen/test/native_objc_test/static_func_native_test.dart index 8af9524530..d60c1d6daf 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_native_test.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_native_test.dart @@ -38,17 +38,13 @@ void main() { return counter; } - test( - 'Objects passed through static functions have correct ref counts', - () { - using((Arena arena) { - final (counter) = staticFuncOfObjectRefCountTest(arena); - doGC(); - expect(counter.value, 0); - }); - }, - skip: !canDoGC, - ); + test('Objects passed through static functions have correct ref counts', () { + using((Arena arena) { + final (counter) = staticFuncOfObjectRefCountTest(arena); + doGC(); + expect(counter.value, 0); + }); + }, skip: !canDoGC); @pragma('vm:never-inline') Pointer staticFuncOfNullableObjectRefCountTest(Allocator alloc) { diff --git a/pkgs/ffigen/test/native_objc_test/static_func_test.dart b/pkgs/ffigen/test/native_objc_test/static_func_test.dart index b528069d39..fff6bca154 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_test.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_test.dart @@ -46,17 +46,13 @@ void main() { return counter; } - test( - 'Objects passed through static functions have correct ref counts', - () { - using((Arena arena) { - final (counter) = staticFuncOfObjectRefCountTest(arena); - doGC(); - expect(counter.value, 0); - }); - }, - skip: !canDoGC, - ); + test('Objects passed through static functions have correct ref counts', () { + using((Arena arena) { + final (counter) = staticFuncOfObjectRefCountTest(arena); + doGC(); + expect(counter.value, 0); + }); + }, skip: !canDoGC); @pragma('vm:never-inline') Pointer staticFuncOfNullableObjectRefCountTest(Allocator alloc) { From a4bb0b7654a709693270cf031d20754c191cc576 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 12:42:43 +1000 Subject: [PATCH 33/54] wip --- .../objective_c/avf_audio_bindings.dart | 28 ++--- .../lib/src/code_generator/objc_category.dart | 1 + .../lib/src/config_provider/public_ast.dart | 20 ++-- pkgs/ffigen/lib/src/header_parser/parser.dart | 5 +- .../visitor/copy_methods_from_super_type.dart | 11 +- .../ffigen/lib/src/visitor/list_bindings.dart | 5 +- .../native_objc_test/arc_test_bindings.dart | 3 +- .../block_annotation_test_bindings.dart | 104 +++++++++--------- .../native_objc_test/block_test_bindings.dart | 26 ++--- .../category_test_bindings.dart | 5 +- .../native_objc_test/enum_test_bindings.dart | 11 +- .../isolate_test_bindings.dart | 6 +- .../nullable_test_bindings.dart | 4 +- .../ref_count_test_bindings.dart | 4 +- .../sdk_variable_test_bindings.dart | 68 +++++------- .../static_func_native_test_bindings.dart | 15 ++- .../static_func_test_bindings.dart | 23 ++-- 17 files changed, 152 insertions(+), 187 deletions(-) diff --git a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart index 08a3e584c4..a5c0bfe631 100644 --- a/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart +++ b/pkgs/ffigen/example/objective_c/avf_audio_bindings.dart @@ -105,7 +105,7 @@ extension type AVAudioPlayer._(objc.ObjCObject object$) extension AVAudioPlayer$Methods on AVAudioPlayer { /// averagePowerForChannel: - double averagePowerForChannel(DartNSUInteger channelNumber) { + double averagePowerForChannel(int channelNumber) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.averagePowerForChannel:', @@ -154,7 +154,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// currentTime - DartNSTimeInterval get currentTime { + double get currentTime { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.currentTime', @@ -195,7 +195,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// deviceCurrentTime - DartNSTimeInterval get deviceCurrentTime { + double get deviceCurrentTime { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.deviceCurrentTime', @@ -208,7 +208,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// duration - DartNSTimeInterval get duration { + double get duration { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.duration', @@ -414,7 +414,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// numberOfChannels - DartNSUInteger get numberOfChannels { + int get numberOfChannels { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.numberOfChannels', @@ -425,7 +425,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// numberOfLoops - DartNSInteger get numberOfLoops { + int get numberOfLoops { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.numberOfLoops', @@ -460,7 +460,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// peakPowerForChannel: - double peakPowerForChannel(DartNSUInteger channelNumber) { + double peakPowerForChannel(int channelNumber) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.peakPowerForChannel:', @@ -492,7 +492,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// playAtTime: - bool playAtTime(DartNSTimeInterval time) { + bool playAtTime(double time) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.playAtTime:', @@ -559,7 +559,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// setCurrentTime: - set currentTime(DartNSTimeInterval value) { + set currentTime(double value) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.setCurrentTime:', @@ -624,7 +624,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// setNumberOfLoops: - set numberOfLoops(DartNSInteger value) { + set numberOfLoops(int value) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.setNumberOfLoops:', @@ -668,7 +668,7 @@ extension AVAudioPlayer$Methods on AVAudioPlayer { } /// setVolume:fadeDuration: - void setVolume(double volume, {required DartNSTimeInterval fadeDuration}) { + void setVolume(double volume, {required double fadeDuration}) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayer.setVolume:fadeDuration:', @@ -779,12 +779,6 @@ extension type CASpatialAudioExperience._(objc.ObjCObject object$) }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} } -typedef NSInteger = ffi.Long; -typedef DartNSInteger = int; -typedef NSTimeInterval = ffi.Double; -typedef DartNSTimeInterval = double; -typedef NSUInteger = ffi.UnsignedLong; -typedef DartNSUInteger = int; @ffi.Native>( symbol: 'OBJC_CLASS_\$_AVAudioPlayer', ) diff --git a/pkgs/ffigen/lib/src/code_generator/objc_category.dart b/pkgs/ffigen/lib/src/code_generator/objc_category.dart index 794c47f6b1..6927bc6334 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_category.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_category.dart @@ -39,6 +39,7 @@ class ObjCCategory extends NoLookUpBinding with ObjCMethods, HasLocalScope { } bool shouldCopyMethodToInterface(ObjCMethod method) { + if (originalName.isNotEmpty && !isIncluded) return false; if (originalName.isEmpty) return true; return method.returnsInstanceType && !parent.isObjCImport; } diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index 78547dab7e..bcb5cdd9f7 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -277,10 +277,11 @@ class Typealias extends DeclNode { /// An Objective-C interface (class) declaration. class ObjCInterface extends DeclNode { final internal.ObjCInterface _interface; + final _methodWrappers = {}; /// The methods belonging to this Objective-C interface. - late final List methods = _interface.methods - .map((m) => ObjCMethod(this, m)) + List get methods => _interface.methods + .map((m) => _methodWrappers.putIfAbsent(m, () => ObjCMethod(this, m))) .toList(); ObjCInterface(this._interface); @@ -311,10 +312,11 @@ class ObjCInterface extends DeclNode { /// An Objective-C protocol declaration. class ObjCProtocol extends DeclNode { final internal.ObjCProtocol _protocol; + final _methodWrappers = {}; /// The methods belonging to this Objective-C protocol. - late final List methods = _protocol.methods - .map((m) => ObjCMethod(this, m)) + List get methods => _protocol.methods + .map((m) => _methodWrappers.putIfAbsent(m, () => ObjCMethod(this, m))) .toList(); ObjCProtocol(this._protocol); @@ -345,10 +347,11 @@ class ObjCProtocol extends DeclNode { /// An Objective-C category declaration. class ObjCCategory extends DeclNode { final internal.ObjCCategory _category; + final _methodWrappers = {}; /// The methods belonging to this Objective-C category. - late final List methods = _category.methods - .map((m) => ObjCMethod(this, m)) + List get methods => _category.methods + .map((m) => _methodWrappers.putIfAbsent(m, () => ObjCMethod(this, m))) .toList(); /// The [ObjCInterface] that this category extends. @@ -382,10 +385,11 @@ class ObjCCategory extends DeclNode { /// A C++ class declaration. class CppClass extends DeclNode { final internal.CppClass _cppClass; + final _methodWrappers = {}; /// The methods belonging to this C++ class. - late final List methods = _cppClass.methods - .map((m) => CppMethod(this, m)) + List get methods => _cppClass.methods + .map((m) => _methodWrappers.putIfAbsent(m, () => CppMethod(this, m))) .toList(); CppClass(this._cppClass); diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index e541f13570..4a64a2f1fb 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -185,7 +185,6 @@ List _findObjectiveCSysroot() => [ List transformBindings(List rawBindings, Context context) { final config = context.config; - visit(context, CopyMethodsFromSuperTypesVisitation(), rawBindings); final rawNodes = rawBindings .map((b) => b.toPublicAstNode()) .nonNulls @@ -193,6 +192,10 @@ List transformBindings(List rawBindings, Context context) { for (final visitor in config.visitors) { visitor.visitAll(rawNodes); } + visit(context, CopyMethodsFromSuperTypesVisitation(), rawBindings); + for (final visitor in config.visitors) { + visitor.visitAll(rawNodes); + } visit(context, FixOverriddenMethodsVisitation(context), rawBindings); final applyConfigFiltersVisitation = ApplyConfigFiltersVisitation(context); diff --git a/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart b/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart index 4f4f82ce09..fc2796a935 100644 --- a/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart +++ b/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart @@ -66,15 +66,10 @@ class CopyMethodsFromSuperTypesVisitation extends Visitation { // Copy all methods from all the interface's protocols. _copyMethodFromProtocols(node, node.protocols); - // Copy methods from all the categories that extend this interface, if those - // methods return instancetype, because the Dart inheritance rules don't - // match the ObjC rules regarding instancetype. + // Copy methods from all included categories that extend this interface, + // if those methods return instancetype, because the Dart inheritance + // rules don't match the ObjC rules regarding instancetype. // Also copy all methods from any anonymous categories. - // NOTE: The methods are copied regardless of whether the category is - // included by the config filters, since this method copying visit happens - // before the filtering visit. This is technically a bug, but it's unlikely - // to bother anyone, and the fix would be complicated. So we'll ignore it - // for now. for (final category in node.categories) { for (final m in category.methods) { if (category.shouldCopyMethodToInterface(m)) { diff --git a/pkgs/ffigen/lib/src/visitor/list_bindings.dart b/pkgs/ffigen/lib/src/visitor/list_bindings.dart index 4f00a57b64..26580d2e9f 100644 --- a/pkgs/ffigen/lib/src/visitor/list_bindings.dart +++ b/pkgs/ffigen/lib/src/visitor/list_bindings.dart @@ -11,6 +11,7 @@ import 'ast.dart'; enum _IncludeBehavior { configOnly, configOrTransitive, + configAndTransitive, configOrDirectTransitive, transitive, } @@ -41,6 +42,8 @@ class ListBindingsVisitation extends Visitation { return includes.contains(node); case _IncludeBehavior.configOrTransitive: return includes.contains(node) || transitives.contains(node); + case _IncludeBehavior.configAndTransitive: + return includes.contains(node) && transitives.contains(node); case _IncludeBehavior.configOrDirectTransitive: return includes.contains(node) || directTransitives.contains(node); case _IncludeBehavior.transitive: @@ -134,7 +137,7 @@ class ListBindingsVisitation extends Visitation { ? _IncludeBehavior.transitive : (config.typedefs.includeUnused ? _IncludeBehavior.configOnly - : _IncludeBehavior.transitive), + : _IncludeBehavior.configAndTransitive), )) { final internalFunc = _getFunctionTypealias(node.type); if (internalFunc != null) { diff --git a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart index a9b3c80fe8..12fd500fb5 100644 --- a/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/arc_test_bindings.dart @@ -238,7 +238,7 @@ extension ArcTestObject$Methods on ArcTestObject { } /// copyWithZone: - objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { + objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { final _$$ref = object$.ref; final $ret = _objc_msgSend_1cwp428( _$$ref.pointer, @@ -341,7 +341,6 @@ extension ArcTestObject$Methods on ArcTestObject { } } -typedef NSZone = objc.NSZone; @ffi.Native>( symbol: 'OBJC_CLASS_\$_ArcDtorTestObject', ) diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart index 0b78685fc5..1854786c48 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test_bindings.dart @@ -223,7 +223,12 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// invokeBlockProducer: - static DartEmptyBlock invokeBlockProducer(DartBlockProducer block) { + static DartEmptyBlock invokeBlockProducer( + objc.ObjCBlock< + objc.ObjCBlock Function(ffi.Pointer) + > + block, + ) { final _$$ref = block.ref; final $ret = _objc_msgSend_w08mvv( _class_BlockAnnotationTest, @@ -235,7 +240,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// invokeConsumedObjectListenerAsync: static NSThread invokeConsumedObjectListenerAsync( - DartConsumedObjectListener block, + objc.ObjCBlock, EmptyObject)> block, ) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( @@ -248,7 +253,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// invokeConsumedObjectListenerSync: static void invokeConsumedObjectListenerSync( - DartConsumedObjectListener block, + objc.ObjCBlock, EmptyObject)> block, ) { final _$$ref = block.ref; _objc_msgSend_f167m6( @@ -260,7 +265,8 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// invokeConsumedObjectReceiver: static EmptyObject invokeConsumedObjectReceiver( - DartConsumedObjectReceiver block, + objc.ObjCBlock, EmptyObject)> + block, ) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( @@ -272,7 +278,9 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// invokeObjectListenerAsync: - static NSThread invokeObjectListenerAsync(DartObjectListener block) { + static NSThread invokeObjectListenerAsync( + objc.ObjCBlock, EmptyObject)> block, + ) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, @@ -283,7 +291,9 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// invokeObjectListenerSync: - static void invokeObjectListenerSync(DartObjectListener block) { + static void invokeObjectListenerSync( + objc.ObjCBlock, EmptyObject)> block, + ) { final _$$ref = block.ref; _objc_msgSend_f167m6( _class_BlockAnnotationTest, @@ -293,7 +303,9 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// invokeObjectProducer: - static EmptyObject invokeObjectProducer(DartObjectProducer block) { + static EmptyObject invokeObjectProducer( + objc.ObjCBlock)> block, + ) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, @@ -304,7 +316,10 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// invokeObjectReceiver: - static EmptyObject invokeObjectReceiver(DartObjectReceiver block) { + static EmptyObject invokeObjectReceiver( + objc.ObjCBlock, EmptyObject)> + block, + ) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( _class_BlockAnnotationTest, @@ -316,7 +331,10 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// invokeRetainedBlockProducer: static DartEmptyBlock invokeRetainedBlockProducer( - DartRetainedBlockProducer block, + objc.ObjCBlock< + objc.ObjCBlock Function(ffi.Pointer) + > + block, ) { final _$$ref = block.ref; final $ret = _objc_msgSend_w08mvv( @@ -329,7 +347,7 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) /// invokeRetainedObjectProducer: static EmptyObject invokeRetainedObjectProducer( - DartRetainedObjectProducer block, + objc.ObjCBlock)> block, ) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( @@ -347,7 +365,10 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newBlockProducer - static DartBlockProducer newBlockProducer() { + static objc.ObjCBlock< + objc.ObjCBlock Function(ffi.Pointer) + > + newBlockProducer() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newBlockProducer, @@ -360,7 +381,10 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newConsumedObjectReceiver - static DartConsumedObjectReceiver newConsumedObjectReceiver() { + static objc.ObjCBlock< + EmptyObject Function(ffi.Pointer, EmptyObject) + > + newConsumedObjectReceiver() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newConsumedObjectReceiver, @@ -373,7 +397,8 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newObjectProducer - static DartObjectProducer newObjectProducer() { + static objc.ObjCBlock)> + newObjectProducer() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newObjectProducer, @@ -386,7 +411,10 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newObjectReceiver - static DartObjectReceiver newObjectReceiver() { + static objc.ObjCBlock< + EmptyObject Function(ffi.Pointer, EmptyObject) + > + newObjectReceiver() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newObjectReceiver, @@ -399,7 +427,10 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newRetainedBlockProducer - static DartRetainedBlockProducer newRetainedBlockProducer() { + static objc.ObjCBlock< + objc.ObjCBlock Function(ffi.Pointer) + > + newRetainedBlockProducer() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newRetainedBlockProducer, @@ -412,7 +443,8 @@ extension type BlockAnnotationTest._(objc.ObjCObject object$) } /// newRetainedObjectProducer - static DartRetainedObjectProducer newRetainedObjectProducer() { + static objc.ObjCBlock)> + newRetainedObjectProducer() { final $ret = _objc_msgSend_uwvaik( _class_BlockAnnotationTest, _sel_newRetainedObjectProducer, @@ -1098,17 +1130,6 @@ interface class BlockAnnotationTestProtocol$Builder { ); } -typedef BlockProducer = ffi.Pointer; -typedef DartBlockProducer = - objc.ObjCBlock< - objc.ObjCBlock Function(ffi.Pointer) - >; -typedef ConsumedObjectListener = ffi.Pointer; -typedef DartConsumedObjectListener = - objc.ObjCBlock, EmptyObject)>; -typedef ConsumedObjectReceiver = ffi.Pointer; -typedef DartConsumedObjectReceiver = - objc.ObjCBlock, EmptyObject)>; typedef EmptyBlock = ffi.Pointer; typedef DartEmptyBlock = objc.ObjCBlock; @@ -1331,7 +1352,7 @@ extension type NSThread._(objc.ObjCObject object$) } /// sleepForTimeInterval: - static void sleepForTimeInterval(DartNSTimeInterval ti) { + static void sleepForTimeInterval(double ti) { _objc_msgSend_hwm8nu(_class_NSThread, _sel_sleepForTimeInterval_, ti); } @@ -1533,7 +1554,7 @@ extension NSThread$Methods on NSThread { } /// setStackSize: - set stackSize(DartNSUInteger value) { + set stackSize(int value) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSThread.setStackSize:', @@ -1555,7 +1576,7 @@ extension NSThread$Methods on NSThread { } /// stackSize - DartNSUInteger get stackSize { + int get stackSize { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSThread.stackSize', @@ -1601,11 +1622,6 @@ extension NSThread$Methods on NSThread { } } -typedef NSTimeInterval = ffi.Double; -typedef DartNSTimeInterval = double; -typedef NSUInteger = ffi.UnsignedLong; -typedef DartNSUInteger = int; - /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. abstract final class ObjCBlock_EmptyBlock_ffiVoid { /// Returns a block that wraps the given raw block pointer. @@ -2972,24 +2988,6 @@ extension ObjCBlock_ffiVoid_ffiVoid_EmptyObject$1$CallExtension } } -typedef ObjectListener = ffi.Pointer; -typedef DartObjectListener = - objc.ObjCBlock, EmptyObject)>; -typedef ObjectProducer = ffi.Pointer; -typedef DartObjectProducer = - objc.ObjCBlock)>; -typedef ObjectReceiver = ffi.Pointer; -typedef DartObjectReceiver = - objc.ObjCBlock, EmptyObject)>; -typedef RetainedBlockProducer = ffi.Pointer; -typedef DartRetainedBlockProducer = - objc.ObjCBlock< - objc.ObjCBlock Function(ffi.Pointer) - >; -typedef RetainedObjectProducer = ffi.Pointer; -typedef DartRetainedObjectProducer = - objc.ObjCBlock)>; - extension type _BlockArgs_1wgsnfr._(objc.ObjCObject object$) implements objc.ObjCObject { /// Constructs a [_BlockArgs_1wgsnfr] that points to the same underlying object as [other]. diff --git a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart index ca0ceb0133..14de93cbb6 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test_bindings.dart @@ -316,8 +316,8 @@ extension type BlockTester._(objc.ObjCObject object$) /// blockingBlockTest:resultBlock: static void blockingBlockTest( - DartIntPtrBlock blockingBlock, { - required DartResultBlock resultBlock, + objc.ObjCBlock)> blockingBlock, { + required objc.ObjCBlock resultBlock, }) { final _$$ref = blockingBlock.ref; final _$$ref$1 = resultBlock.ref; @@ -419,7 +419,9 @@ extension type BlockTester._(objc.ObjCObject object$) } /// callNullableStringBlock: - static objc.NSString? callNullableStringBlock(DartNullableStringBlock block) { + static objc.NSString? callNullableStringBlock( + objc.ObjCBlock block, + ) { final _$$ref = block.ref; final $ret = _objc_msgSend_nnxkei( _class_BlockTester, @@ -783,9 +785,6 @@ typedef FloatBlock = ffi.Pointer; typedef DartFloatBlock = objc.ObjCBlock; typedef IntBlock = ffi.Pointer; typedef DartIntBlock = objc.ObjCBlock; -typedef IntPtrBlock = ffi.Pointer; -typedef DartIntPtrBlock = - objc.ObjCBlock)>; typedef ListenerBlock = ffi.Pointer; typedef DartListenerBlock = objc.ObjCBlock< @@ -945,7 +944,7 @@ extension type NSThread._(objc.ObjCObject object$) } /// sleepForTimeInterval: - static void sleepForTimeInterval(DartNSTimeInterval ti) { + static void sleepForTimeInterval(double ti) { _objc_msgSend_hwm8nu(_class_NSThread, _sel_sleepForTimeInterval_, ti); } @@ -1147,7 +1146,7 @@ extension NSThread$Methods on NSThread { } /// setStackSize: - set stackSize(DartNSUInteger value) { + set stackSize(int value) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSThread.setStackSize:', @@ -1169,7 +1168,7 @@ extension NSThread$Methods on NSThread { } /// stackSize - DartNSUInteger get stackSize { + int get stackSize { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSThread.stackSize', @@ -1215,10 +1214,6 @@ extension NSThread$Methods on NSThread { } } -typedef NSTimeInterval = ffi.Double; -typedef DartNSTimeInterval = double; -typedef NSUInteger = ffi.UnsignedLong; -typedef DartNSUInteger = int; typedef NoTrampolineListenerBlock = ffi.Pointer; typedef DartNoTrampolineListenerBlock = objc.ObjCBlock)>; @@ -1228,9 +1223,6 @@ typedef DartNullableListenerBlock = typedef NullableObjectBlock = ffi.Pointer; typedef DartNullableObjectBlock = objc.ObjCBlock; -typedef NullableStringBlock = ffi.Pointer; -typedef DartNullableStringBlock = - objc.ObjCBlock; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_DummyObject_DummyObject { @@ -3843,8 +3835,6 @@ typedef DartObjectBlock = objc.ObjCBlock; typedef ObjectListenerBlock = ffi.Pointer; typedef DartObjectListenerBlock = objc.ObjCBlock; -typedef ResultBlock = ffi.Pointer; -typedef DartResultBlock = objc.ObjCBlock; typedef SelectorBlock = ffi.Pointer; typedef DartSelectorBlock = objc.ObjCBlock)>; diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index 7a9c932b95..6d48048e5d 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -482,7 +482,7 @@ extension NSPromisedItems on objc.NSURL { /// getPromisedItemResourceValue:forKey:error: bool getPromisedItemResourceValue( ffi.Pointer> value, { - required DartNSURLResourceKey forKey, + required objc.NSString forKey, }) { final _$$ref = object$.ref; final _$$ref$1 = forKey.ref; @@ -884,9 +884,6 @@ extension NSURLPathUtilities on objc.NSURL { } } -typedef NSURLResourceKey = ffi.Pointer; -typedef DartNSURLResourceKey = objc.NSString; - /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSData_NSError { /// Returns a block that wraps the given raw block pointer. diff --git a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart index 4c823b9ffe..624ad51faa 100644 --- a/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/enum_test_bindings.dart @@ -76,7 +76,7 @@ extension type EnumTestInterface._(objc.ObjCObject object$) } /// useImportedNSOptions: - static int useImportedNSOptions(DartNSUInteger x) { + static int useImportedNSOptions(int x) { return _objc_msgSend_1cxnp8y( _class_EnumTestInterface, _sel_useImportedNSOptions_, @@ -123,11 +123,6 @@ enum Fruit { }; } -typedef NSInteger = ffi.Long; -typedef DartNSInteger = int; -typedef NSUInteger = ffi.UnsignedLong; -typedef DartNSUInteger = int; - const int SOME_MACRO = 123; const int UnnamedEnumValue = 0; @@ -197,7 +192,7 @@ final _objc_msgSend_1cxnp8y = objc.msgSendPointer ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ) > >() @@ -214,7 +209,7 @@ final _objc_msgSend_1y89lso = objc.msgSendPointer ffi.Int32 Function( ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ) > >() diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart index bd3609dbf2..fb2451e90b 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/isolate_test_bindings.dart @@ -41,9 +41,6 @@ external ffi.Pointer _rdx59v_wrapListenerBlock_1bqef4y( ffi.Pointer context, ); -typedef Listener = ffi.Pointer; -typedef DartListener = objc.ObjCBlock; - /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Int32 { /// Returns a block that wraps the given raw block pointer. @@ -234,7 +231,8 @@ extension type Sendable._(objc.ObjCObject object$) } /// dummyMethodToForceGenerationOfListener - static DartListener dummyMethodToForceGenerationOfListener() { + static objc.ObjCBlock + dummyMethodToForceGenerationOfListener() { final $ret = _objc_msgSend_uwvaik( _class_Sendable, _sel_dummyMethodToForceGenerationOfListener, diff --git a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart index ef162cfa3e..ba8f6f1664 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_test_bindings.dart @@ -10,8 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef MyString = ffi.Pointer; -typedef DartMyString = objc.NSString; /// NullableInterface extension type NullableInterface._(objc.ObjCObject object$) @@ -125,7 +123,7 @@ extension type NullableInterface._(objc.ObjCObject object$) } /// returnNullableAlias: - static DartMyString? returnNullableAlias(bool r) { + static objc.NSString? returnNullableAlias(bool r) { final $ret = _objc_msgSend_1t6aok9( _class_NullableInterface, _sel_returnNullableAlias_, diff --git a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart index 52e7e608f3..79e372972b 100644 --- a/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/ref_count_test_bindings.dart @@ -16,8 +16,6 @@ external void objc_autoreleasePoolPop(ffi.Pointer pool); @ffi.Native Function()>() external ffi.Pointer objc_autoreleasePoolPush(); -typedef NSZone = objc.NSZone; - /// RefCountTestObject extension type RefCountTestObject._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -158,7 +156,7 @@ extension RefCountTestObject$Methods on RefCountTestObject { } /// copyWithZone: - objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { + objc.ObjCObject copyWithZone$1(ffi.Pointer zone) { final _$$ref = object$.ref; final $ret = _objc_msgSend_1cwp428( _$$ref.pointer, diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart index 04dbea1231..1b66ae4d68 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test_bindings.dart @@ -298,7 +298,7 @@ extension NSColorPicker$Methods on NSColorPicker { /// initWithPickerMask:colorPanel: NSColorPicker? initWithPickerMask( - DartNSUInteger mask, { + int mask, { required NSColorPanel colorPanel, }) { final _$$ref = object$.ref; @@ -339,21 +339,21 @@ extension NSColorPicker$Methods on NSColorPicker { } /// minContentSize - NSSize get minContentSize { + objc.CGSize get minContentSize { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSColorPicker.minContentSize', iOS: (true, null), ); - final $ptr = pkg_ffi.calloc(); + final $ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_1vdfkenStret($ptr, _$$ref.pointer, _sel_minContentSize) : $ptr.ref = _objc_msgSend_1vdfken(_$$ref.pointer, _sel_minContentSize); final $finalizable = $ptr.cast().asTypedList( - ffi.sizeOf(), + ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree, ); - return ffi.Struct.create($finalizable); + return ffi.Struct.create($finalizable); } /// provideNewButtonImage @@ -426,9 +426,6 @@ extension type NSImage._(objc.ObjCObject object$) implements objc.ObjCObject { }) : object$ = objc.ObjCObject(other, retain: retain, release: release) {} } -typedef NSInteger = ffi.Long; -typedef DartNSInteger = int; - /// WARNING: NSMenuItemValidation is a stub. To generate bindings for this class, include /// NSMenuItemValidation in your config's objc-protocols list. /// @@ -488,8 +485,6 @@ extension type NSResponder._(objc.ObjCObject object$) } } -typedef NSSize = objc.CGSize; - /// NSTextList extension type NSTextList._(objc.ObjCObject object$) implements @@ -604,8 +599,8 @@ extension NSTextList$Methods on NSTextList { /// initWithMarkerFormat:options: NSTextList initWithMarkerFormat( - DartNSTextListMarkerFormat markerFormat, { - required DartNSUInteger options, + objc.NSString markerFormat, { + required int options, }) { final _$$ref = object$.ref; final _$$ref$1 = markerFormat.ref; @@ -625,9 +620,9 @@ extension NSTextList$Methods on NSTextList { /// initWithMarkerFormat:options:startingItemNumber: NSTextList initWithMarkerFormat$1( - DartNSTextListMarkerFormat markerFormat, { - required DartNSUInteger options, - required DartNSInteger startingItemNumber, + objc.NSString markerFormat, { + required int options, + required int startingItemNumber, }) { final _$$ref = object$.ref; final _$$ref$1 = markerFormat.ref; @@ -658,7 +653,7 @@ extension NSTextList$Methods on NSTextList { } /// listOptions - DartNSUInteger get listOptions { + int get listOptions { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSTextList.listOptions', @@ -669,7 +664,7 @@ extension NSTextList$Methods on NSTextList { } /// markerForItemNumber: - objc.NSString markerForItemNumber(DartNSInteger itemNumber) { + objc.NSString markerForItemNumber(int itemNumber) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSTextList.markerForItemNumber:', @@ -685,7 +680,7 @@ extension NSTextList$Methods on NSTextList { } /// markerFormat - DartNSTextListMarkerFormat get markerFormat { + objc.NSString get markerFormat { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSTextList.markerFormat', @@ -697,7 +692,7 @@ extension NSTextList$Methods on NSTextList { } /// setStartingItemNumber: - set startingItemNumber(DartNSInteger value) { + set startingItemNumber(int value) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSTextList.setStartingItemNumber:', @@ -708,7 +703,7 @@ extension NSTextList$Methods on NSTextList { } /// startingItemNumber - DartNSInteger get startingItemNumber { + int get startingItemNumber { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'NSTextList.startingItemNumber', @@ -719,16 +714,10 @@ extension NSTextList$Methods on NSTextList { } } -typedef NSTextListMarkerFormat = ffi.Pointer; -typedef DartNSTextListMarkerFormat = objc.NSString; - sealed class NSTextListOptions { static const NSTextListPrependEnclosingMarker = 1; } -typedef NSUInteger = ffi.UnsignedLong; -typedef DartNSUInteger = int; - /// WARNING: NSUserInterfaceItemIdentification is a stub. To generate bindings for this class, include /// NSUserInterfaceItemIdentification in your config's objc-protocols list. /// @@ -875,7 +864,7 @@ extension UIPickerView$Methods on UIPickerView { } /// numberOfComponents - DartNSInteger get numberOfComponents { + int get numberOfComponents { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.numberOfComponents', @@ -885,7 +874,7 @@ extension UIPickerView$Methods on UIPickerView { } /// numberOfRowsInComponent: - DartNSInteger numberOfRowsInComponent(DartNSInteger component) { + int numberOfRowsInComponent(int component) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.numberOfRowsInComponent:', @@ -909,7 +898,7 @@ extension UIPickerView$Methods on UIPickerView { } /// reloadComponent: - void reloadComponent(DartNSInteger component) { + void reloadComponent(int component) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.reloadComponent:', @@ -919,7 +908,7 @@ extension UIPickerView$Methods on UIPickerView { } /// rowSizeForComponent: - objc.CGSize rowSizeForComponent(DartNSInteger component) { + objc.CGSize rowSizeForComponent(int component) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.rowSizeForComponent:', @@ -946,11 +935,7 @@ extension UIPickerView$Methods on UIPickerView { } /// selectRow:inComponent:animated: - void selectRow( - DartNSInteger row, { - required DartNSInteger inComponent, - required bool animated, - }) { + void selectRow(int row, {required int inComponent, required bool animated}) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.selectRow:inComponent:animated:', @@ -966,7 +951,7 @@ extension UIPickerView$Methods on UIPickerView { } /// selectedRowInComponent: - DartNSInteger selectedRowInComponent(DartNSInteger component) { + int selectedRowInComponent(int component) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.selectedRowInComponent:', @@ -1036,10 +1021,7 @@ extension UIPickerView$Methods on UIPickerView { } /// viewForRow:forComponent: - objc.ObjCObject viewForRow( - DartNSInteger row, { - required DartNSInteger forComponent, - }) { + objc.ObjCObject viewForRow(int row, {required int forComponent}) { final _$$ref = object$.ref; objc.checkOsVersionInternal( 'UIPickerView.viewForRow:forComponent:', @@ -1193,7 +1175,7 @@ final _objc_msgSend_190ea64 = objc.msgSendPointer ffi.Void Function( ffi.Pointer, ffi.Pointer, - NSInteger, + ffi.Long, ) > >() @@ -1228,7 +1210,7 @@ final _objc_msgSend_1bh1vl9 = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - NSUInteger, + ffi.UnsignedLong, ffi.Long, ) > @@ -1449,7 +1431,7 @@ final _objc_msgSend_cy4jud = objc.msgSendPointer final _objc_msgSend_exovb9 = objc.msgSendPointer .cast< ffi.NativeFunction< - NSUInteger Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ) diff --git a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart index 3d49c9a5d5..41ff128938 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_native_test_bindings.dart @@ -32,10 +32,16 @@ void staticFuncConsumesArg(StaticFuncTestObj a) { return _staticFuncConsumesArg(_$$ref.retainAndReturnPointer()); } -@ffi.Native(symbol: 'staticFuncOfBlock') -external IntBlock _staticFuncOfBlock(IntBlock a); +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(symbol: 'staticFuncOfBlock') +external ffi.Pointer _staticFuncOfBlock( + ffi.Pointer a, +); -DartIntBlock staticFuncOfBlock(DartIntBlock a) { +objc.ObjCBlock staticFuncOfBlock( + objc.ObjCBlock a, +) { final _$$ref = a.ref; return ObjCBlock_Int32_Int32.fromPointer( _staticFuncOfBlock(_$$ref.pointer), @@ -110,9 +116,6 @@ StaticFuncTestObj staticFuncReturnsRetainedArg(StaticFuncTestObj a) { ); } -typedef IntBlock = ffi.Pointer; -typedef DartIntBlock = objc.ObjCBlock; - /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. diff --git a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart index fac42b9067..a4ea0b3383 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_test_bindings.dart @@ -74,7 +74,9 @@ class StaticFuncTestObjCLibrary { late final _staticFuncConsumesArg = _staticFuncConsumesArgPtr .asFunction)>(); - DartIntBlock staticFuncOfBlock(DartIntBlock a) { + objc.ObjCBlock staticFuncOfBlock( + objc.ObjCBlock a, + ) { final _$$ref = a.ref; return ObjCBlock_Int32_Int32.fromPointer( _staticFuncOfBlock(_$$ref.pointer), @@ -84,11 +86,19 @@ class StaticFuncTestObjCLibrary { } late final _staticFuncOfBlockPtr = - _lookup>( - 'staticFuncOfBlock', - ); + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + > + >('staticFuncOfBlock'); late final _staticFuncOfBlock = _staticFuncOfBlockPtr - .asFunction(); + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ) + >(); StaticFuncTestObj? staticFuncOfNullableObject(StaticFuncTestObj? a) { final _$$ref = a?.ref; @@ -187,9 +197,6 @@ class StaticFuncTestObjCLibrary { >(); } -typedef IntBlock = ffi.Pointer; -typedef DartIntBlock = objc.ObjCBlock; - /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. From 2af5f68a254f31848518d81d343a737bf1225591 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 13:07:43 +1000 Subject: [PATCH 34/54] fix --- .../example/swift/swift_api_bindings.dart | 6 +- pkgs/ffigen/lib/src/header_parser/parser.dart | 3 - .../example_tests/swift_example_test.dart | 4 +- .../method_filtering_test_bindings.dart | 85 +++++++++++++++++++ 4 files changed, 89 insertions(+), 9 deletions(-) diff --git a/pkgs/ffigen/example/swift/swift_api_bindings.dart b/pkgs/ffigen/example/swift/swift_api_bindings.dart index c1a2fbd1fc..71cab810fc 100644 --- a/pkgs/ffigen/example/swift/swift_api_bindings.dart +++ b/pkgs/ffigen/example/swift/swift_api_bindings.dart @@ -11,8 +11,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -typedef NSInteger = ffi.Long; -typedef DartNSInteger = int; /// SwiftClass extension type SwiftClass._(objc.ObjCObject object$) @@ -90,13 +88,13 @@ extension SwiftClass$Methods on SwiftClass { } /// setSomeField: - set someField(DartNSInteger value) { + set someField(int value) { final _$$ref = object$.ref; _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setSomeField_, value); } /// someField - DartNSInteger get someField { + int get someField { final _$$ref = object$.ref; return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_someField); } diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index 4a64a2f1fb..9ffee852b0 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -193,9 +193,6 @@ List transformBindings(List rawBindings, Context context) { visitor.visitAll(rawNodes); } visit(context, CopyMethodsFromSuperTypesVisitation(), rawBindings); - for (final visitor in config.visitors) { - visitor.visitAll(rawNodes); - } visit(context, FixOverriddenMethodsVisitation(context), rawBindings); final applyConfigFiltersVisitation = ApplyConfigFiltersVisitation(context); diff --git a/pkgs/ffigen/test/example_tests/swift_example_test.dart b/pkgs/ffigen/test/example_tests/swift_example_test.dart index 4003bc4195..c876579e8c 100644 --- a/pkgs/ffigen/test/example_tests/swift_example_test.dart +++ b/pkgs/ffigen/test/example_tests/swift_example_test.dart @@ -55,8 +55,8 @@ void main() { ); expect(actual, contains('static SwiftClass new\$() {')); expect(actual, contains('NSString sayHello() {')); - expect(actual, contains('DartNSInteger get someField {')); - expect(actual, contains('set someField(DartNSInteger value) {')); + expect(actual, contains('int get someField {')); + expect(actual, contains('set someField(int value) {')); // Verify that SwiftClass is loaded using the swift_module prefix. expect( diff --git a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart index d3464955d5..6980653a43 100644 --- a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart @@ -44,6 +44,35 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) _class_MethodFilteringTestInterface, ); + /// alloc + static MethodFilteringTestInterface alloc() { + final $ret = _objc_msgSend_151sglz( + _class_MethodFilteringTestInterface, + _sel_alloc, + ); + return MethodFilteringTestInterface.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static MethodFilteringTestInterface allocWithZone( + ffi.Pointer zone, + ) { + final $ret = _objc_msgSend_1cwp428( + _class_MethodFilteringTestInterface, + _sel_allocWithZone_, + zone, + ); + return MethodFilteringTestInterface.fromPointer( + $ret, + retain: false, + release: true, + ); + } + /// includedStaticMethod static MethodFilteringTestInterface includedStaticMethod() { final $ret = _objc_msgSend_151sglz( @@ -56,6 +85,22 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) release: true, ); } + + /// new + static MethodFilteringTestInterface new$() { + final $ret = _objc_msgSend_151sglz( + _class_MethodFilteringTestInterface, + _sel_new, + ); + return MethodFilteringTestInterface.fromPointer( + $ret, + retain: false, + release: true, + ); + } + + /// Returns a new instance of MethodFilteringTestInterface constructed with the default `new` method. + MethodFilteringTestInterface() : this.as(new$().object$); } extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { @@ -84,6 +129,25 @@ extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_includedProperty); return objc.NSObject.fromPointer($ret, retain: true, release: true); } + + /// init + MethodFilteringTestInterface init() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'MethodFilteringTestInterface.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return MethodFilteringTestInterface.fromPointer( + $ret, + retain: false, + release: true, + ); + } } /// MethodFilteringTestProtocol @@ -362,6 +426,23 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_3hao97 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -407,6 +488,8 @@ final _protocol_MethodFilteringTestProtocol = objc.getProtocol( "MethodFilteringTestProtocol", _protocol_MethodFilteringTestProtocol_raw, ); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); late final _sel_includedInstanceMethod_with_ = objc.registerName( "includedInstanceMethod:with:", @@ -418,6 +501,8 @@ late final _sel_includedProtocolMethod = objc.registerName( late final _sel_includedStaticMethod = objc.registerName( "includedStaticMethod", ); +late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; From 02e8c3f4515ec1a6d573e8d23c1d955c50af41c7 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 13:15:12 +1000 Subject: [PATCH 35/54] fix some tests --- pkgs/ffigen/test/config_tests/include_exclude_test.dart | 8 -------- .../test/example_tests/objective_c_example_test.dart | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/pkgs/ffigen/test/config_tests/include_exclude_test.dart b/pkgs/ffigen/test/config_tests/include_exclude_test.dart index dcad0a2b49..073a8eb4b3 100644 --- a/pkgs/ffigen/test/config_tests/include_exclude_test.dart +++ b/pkgs/ffigen/test/config_tests/include_exclude_test.dart @@ -58,14 +58,6 @@ ${strings.headers}: - '${absPath('test/config_tests/include_exclude.h')}' '''; if (include != null || exclude != null) { - if (field == strings.typedefs && exclude != null) { - templateString += - ''' -${strings.functions}: - ${strings.exclude}: - - func -'''; - } templateString += ''' $field: diff --git a/pkgs/ffigen/test/example_tests/objective_c_example_test.dart b/pkgs/ffigen/test/example_tests/objective_c_example_test.dart index 6aa5c5fe9b..e67256a731 100644 --- a/pkgs/ffigen/test/example_tests/objective_c_example_test.dart +++ b/pkgs/ffigen/test/example_tests/objective_c_example_test.dart @@ -33,7 +33,7 @@ void main() { actual, contains('AVAudioPlayer? initWithContentsOfURL(objc.NSURL url) {'), ); - expect(actual, contains('DartNSTimeInterval get duration {')); + expect(actual, contains('double get duration {')); expect(actual, contains('bool play() {')); return true; From dab4b83762e9431d1aca0c2441ac72893d6acb9d Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 13:37:59 +1000 Subject: [PATCH 36/54] Fix tests --- .../code_generator_test.dart | 34 +++++-- .../_expected_boolean_dartbool_bindings.dart | 36 +++++++ .../_expected_constant_bindings.dart | 4 + .../_expected_enumclass_bindings.dart | 19 ++++ ...xpected_enumclass_duplicates_bindings.dart | 29 ++++++ ...ed_enumclass_func_and_struct_bindings.dart | 94 +++++++++++++++++++ ..._expected_enumclass_integers_bindings.dart | 53 +++++++++++ .../_expected_function_bindings.dart | 72 ++++++++++++++ ..._expected_function_ffiNative_bindings.dart | 27 ++++++ .../_expected_function_n_struct_bindings.dart | 51 ++++++++++ .../_expected_global_bindings.dart | 48 ++++++++++ .../_expected_global_native_bindings.dart | 24 +++++ ...internal_conflict_resolution_bindings.dart | 72 ++++++++++++++ .../_expected_native_symbol_bindings.dart | 10 ++ .../_expected_packed_structs_bindings.dart | 66 +++++++++++++ ...ed_struct_allocate_collision_bindings.dart | 17 ++++ .../_expected_struct_bindings.dart | 59 ++++++++++++ .../_expected_typealias_bindings.dart | 60 ++++++++++++ .../_expected_unions_bindings.dart | 60 ++++++++++++ .../decl_decl_collision_test.dart | 10 ++ .../decl_symbol_address_collision_test.dart | 8 ++ ...expected_decl_decl_collision_bindings.dart | 78 +++++++++++++++ ...ecl_symbol_address_collision_bindings.dart | 54 +++++++++++ ...d_reserved_keyword_collision_bindings.dart | 67 +++++++++++++ .../reserved_keyword_collision_test.dart | 13 ++- .../_expected_sort_bindings.dart | 13 +++ .../function_n_struct_test.dart | 7 ++ .../header_parser_tests/globals_test.dart | 8 ++ .../test/header_parser_tests/sort_test.dart | 8 ++ 29 files changed, 1090 insertions(+), 11 deletions(-) diff --git a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart index 619a254068..db9f442eb6 100644 --- a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart +++ b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart @@ -4,6 +4,7 @@ import 'package:ffigen/src/code_generator.dart'; import 'package:ffigen/src/config_provider/config.dart'; +import 'package:ffigen/src/config_provider/public_ast.dart' as public_ast; import 'package:ffigen/src/context.dart'; import 'package:ffigen/src/header_parser/parser.dart'; import 'package:meta/meta.dart'; @@ -18,16 +19,29 @@ void main() { // BSD-style license that can be found in the LICENSE file. '''; - Context makeContext({Output? output}) => testContext( - FfiGenerator( - output: - output ?? - Output( - dartFile: Uri.file('unused'), - style: const DynamicLibraryBindings(wrapperName: 'Bindings'), - ), - ), - ); + Context makeContext({Output? output, List? visitors}) => + testContext( + FfiGenerator( + output: + output ?? + Output( + dartFile: Uri.file('unused'), + style: const DynamicLibraryBindings(wrapperName: 'Bindings'), + ), + visitors: + visitors ?? [ + public_ast.Visitor( + visitFunc: (node) => node.isIncluded = true, + visitStruct: (node) => node.isIncluded = true, + visitUnion: (node) => node.isIncluded = true, + visitEnum: (node) => node.isIncluded = true, + visitGlobal: (node) => node.isIncluded = true, + visitMacro: (node) => node.isIncluded = true, + visitTypealias: (node) => node.isIncluded = true, + ), + ], + ), + ); group('code_generator: ', () { @isTestGroup diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart index c974a8a80c..1e22944bbd 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_boolean_dartbool_bindings.dart @@ -6,3 +6,39 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +class Bindings { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + Bindings.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + bool test1(bool a, ffi.Pointer b) { + return _test1(a, b); + } + + late final _test1Ptr = + _lookup< + ffi.NativeFunction)> + >('test1'); + late final _test1 = _test1Ptr + .asFunction)>(); +} + +final class Test2 extends ffi.Struct { + @ffi.Bool() + external bool a; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required bool a, + }) => $allocator()..ref.a = a; +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart index c974a8a80c..2beabe40a0 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_constant_bindings.dart @@ -6,3 +6,7 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package + +const int test1 = 20; + +const double test2 = 20.0; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart index c974a8a80c..a6b7fead8b 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_bindings.dart @@ -6,3 +6,22 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +/// test line 1 +/// test line 2 +enum Constants { + a(10), + + /// negative + b(-1); + + final int value; + const Constants(this.value); + + static Constants fromValue(int value) => switch (value) { + 10 => a, + -1 => b, + _ => throw ArgumentError('Unknown value for Constants: $value'), + }; +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart index c974a8a80c..f7148ceb93 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_duplicates_bindings.dart @@ -6,3 +6,32 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +/// test line 1 +/// test line 2 +enum Duplicates { + /// This is a unique value + a(0), + + /// This is an original value + b(1); + + /// This is a duplicate value + static const c = b; + + final int value; + const Duplicates(this.value); + + static Duplicates fromValue(int value) => switch (value) { + 0 => a, + 1 => b, + _ => throw ArgumentError('Unknown value for Duplicates: $value'), + }; + + @override + String toString() { + if (this == b) return "Duplicates.b, Duplicates.c"; + return super.toString(); + } +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart index c974a8a80c..a88b66d737 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_func_and_struct_bindings.dart @@ -6,3 +6,97 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +class Bindings { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + Bindings.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + void funcWithBothEnums(Enum1 value1, int value2) { + return _funcWithBothEnums(value1.value, value2); + } + + late final _funcWithBothEnumsPtr = + _lookup>( + 'funcWithBothEnums', + ); + late final _funcWithBothEnums = _funcWithBothEnumsPtr + .asFunction(); + + Enum1 funcWithEnum1(Enum1 value) { + return Enum1.fromValue(_funcWithEnum1(value.value)); + } + + late final _funcWithEnum1Ptr = + _lookup>('funcWithEnum1'); + late final _funcWithEnum1 = _funcWithEnum1Ptr.asFunction(); + + int funcWithEnum2(int value) { + return _funcWithEnum2(value); + } + + late final _funcWithEnum2Ptr = + _lookup>('funcWithEnum2'); + late final _funcWithEnum2 = _funcWithEnum2Ptr.asFunction(); + + StructWithEnums funcWithStruct(StructWithEnums value) { + return _funcWithStruct(value); + } + + late final _funcWithStructPtr = + _lookup>( + 'funcWithStruct', + ); + late final _funcWithStruct = _funcWithStructPtr + .asFunction(); +} + +enum Enum1 { + a(0), + b(1), + c(2); + + final int value; + const Enum1(this.value); + + static Enum1 fromValue(int value) => switch (value) { + 0 => a, + 1 => b, + 2 => c, + _ => throw ArgumentError('Unknown value for Enum1: $value'), + }; +} + +sealed class Enum2 { + static const value1 = 0; + static const value2 = 1; + static const value3 = 2; +} + +final class StructWithEnums extends ffi.Struct { + @ffi.Int() + external int enum1AsInt; + + Enum1 get enum1 => Enum1.fromValue(enum1AsInt); + set enum1(Enum1 value) => enum1AsInt = value.value; + + @ffi.Int() + external int enum2; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required Enum1 enum1, + required int enum2, + }) => $allocator() + ..ref.enum1 = enum1 + ..ref.enum2 = enum2; +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart index c974a8a80c..589a16332f 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_enumclass_integers_bindings.dart @@ -6,3 +6,56 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +class Bindings { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + Bindings.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + MyEnum acceptsEnum(MyEnum value) { + return MyEnum.fromValue(_acceptsEnum(value.value)); + } + + late final _acceptsEnumPtr = + _lookup>('acceptsEnum'); + late final _acceptsEnum = _acceptsEnumPtr.asFunction(); + + int acceptsInt(int value) { + return _acceptsInt(value); + } + + late final _acceptsIntPtr = + _lookup>('acceptsInt'); + late final _acceptsInt = _acceptsIntPtr.asFunction(); +} + +enum MyEnum { + value1(0), + value2(1), + value3(2); + + final int value; + const MyEnum(this.value); + + static MyEnum fromValue(int value) => switch (value) { + 0 => value1, + 1 => value2, + 2 => value3, + _ => throw ArgumentError('Unknown value for MyEnum: $value'), + }; +} + +sealed class MyIntegerEnum { + static const int1 = 1; + static const int2 = 2; + static const int3 = 10; +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart index c974a8a80c..6798a818dc 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_bindings.dart @@ -6,3 +6,75 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +class Bindings { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + Bindings.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + /// A function with isLeaf: true + int leafFunc(int a) { + return _leafFunc(a); + } + + late final _leafFuncPtr = + _lookup>('leafFunc'); + late final _leafFunc = _leafFuncPtr.asFunction( + isLeaf: true, + ); + + /// Just a test function + /// heres another line + int noParam() { + return _noParam(); + } + + late final _noParamPtr = _lookup>( + 'noParam', + ); + late final _noParam = _noParamPtr.asFunction(); + + ffi.Pointer withPointerParam( + ffi.Pointer a, + ffi.Pointer> b, + ) { + return _withPointerParam(a, b); + } + + late final _withPointerParamPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer>, + ) + > + >('withPointerParam'); + late final _withPointerParam = _withPointerParamPtr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer>, + ) + >(); + + int withPrimitiveParam(int a, int b) { + return _withPrimitiveParam(a, b); + } + + late final _withPrimitiveParamPtr = + _lookup>( + 'withPrimitiveParam', + ); + late final _withPrimitiveParam = _withPrimitiveParamPtr + .asFunction(); +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart index c974a8a80c..946e20e3b1 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_ffiNative_bindings.dart @@ -6,3 +6,30 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +@ffi.DefaultAsset('test') +library; + +import 'dart:ffi' as ffi; + +/// A function with isLeaf: true +@ffi.Native(isLeaf: true) +external int leafFunc(int a); + +/// Just a test function +/// heres another line +@ffi.Native() +external int noParam(); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer>, + ) +>() +external ffi.Pointer withPointerParam( + ffi.Pointer a, + ffi.Pointer> b, +); + +@ffi.Native() +external int withPrimitiveParam(int a, int b); diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart index c974a8a80c..6fdfb1521d 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_function_n_struct_bindings.dart @@ -6,3 +6,54 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +class Bindings { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + Bindings.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + ffi.Pointer someFunc(ffi.Pointer> some) { + return _someFunc(some); + } + + late final _someFuncPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer>) + > + >('someFunc'); + late final _someFunc = _someFuncPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer>) + >(); +} + +final class SomeStruct extends ffi.Struct { + @ffi.Int32() + external int a; + + @ffi.Double() + external double b; + + @ffi.Uint8() + external int c; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int a, + required double b, + required int c, + }) => $allocator() + ..ref.a = a + ..ref.b = b + ..ref.c = c; +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart index c974a8a80c..2b52949bcd 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_bindings.dart @@ -6,3 +6,51 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +class Bindings { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + Bindings.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + late final ffi.Pointer _globalStruct = _lookup( + 'globalStruct', + ); + + ffi.Pointer get globalStruct => _globalStruct; + + late final ffi.Pointer _test1 = _lookup('test1'); + + int get test1 => _test1.value; + + set test1(int value) => _test1.value = value; + + late final ffi.Pointer> _test2 = + _lookup>('test2'); + + ffi.Pointer get test2 => _test2.value; + + late final ffi.Pointer _test3 = _lookup('test3'); + + ffi.Pointer get test3 => _test3; + + late final ffi.Pointer> _test5 = _lookup>( + 'test5', + ); + + ffi.Pointer get test5 => _test5.value; + + set test5(ffi.Pointer value) => _test5.value = value; +} + +final class EmptyStruct extends ffi.Opaque {} + +final class Some extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart index c974a8a80c..595dab2f07 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_global_native_bindings.dart @@ -6,3 +6,27 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +@ffi.DefaultAsset('test') +library; + +import 'dart:ffi' as ffi; + +@ffi.Native() +external EmptyStruct globalStruct; + +@ffi.Native() +external int test1; + +@ffi.Native>() +external final ffi.Pointer test2; + +@ffi.Array.multi([10]) +@ffi.Native>() +external final ffi.Array test3; + +@ffi.Native>() +external ffi.Pointer test5; + +final class EmptyStruct extends ffi.Opaque {} + +final class Some extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart index ec3107d8d2..2620a9d703 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_internal_conflict_resolution_bindings.dart @@ -8,3 +8,75 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +class init_dylib$1 { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + init_dylib$1(ffi.DynamicLibrary dynamicLibrary) + : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + init_dylib$1.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + void Test() { + return _Test(); + } + + late final _TestPtr = _lookup>( + 'Test', + ); + late final _Test = _TestPtr.asFunction(); + + void _c_test() { + return __c_test(); + } + + late final __c_testPtr = _lookup>( + '_c_test', + ); + late final __c_test = __c_testPtr.asFunction(); + + void _dart_test() { + return __dart_test(); + } + + late final __dart_testPtr = _lookup>( + '_dart_test', + ); + late final __dart_test = __dart_testPtr.asFunction(); + + void _test() { + return __test(); + } + + late final __testPtr = _lookup>( + '_test', + ); + late final __test = __testPtr.asFunction(); + + void test() { + return _test$1(); + } + + late final _testPtr = _lookup>( + 'test', + ); + late final _test$1 = _testPtr.asFunction(); +} + +final class ArrayHelperPrefixCollisionTest extends ffi.Opaque {} + +final class _Test$1 extends ffi.Struct { + @ffi.Array.multi([2]) + external ffi.Array array; +} + +sealed class _c_Test {} + +sealed class init_dylib {} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart index c974a8a80c..6083b31c74 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_native_symbol_bindings.dart @@ -6,3 +6,13 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +@ffi.DefaultAsset('test') +library; + +import 'dart:ffi' as ffi; + +@ffi.Native(symbol: '_test') +external void test(); + +@ffi.Native(symbol: '_testField') +external int testField; diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart index c974a8a80c..5beed3d63e 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_packed_structs_bindings.dart @@ -6,3 +6,69 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +final class NoPacking extends ffi.Struct { + @ffi.Uint8() + external int a; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int a, + }) => $allocator()..ref.a = a; +} + +@ffi.Packed(1) +final class Pack1 extends ffi.Struct { + @ffi.Uint8() + external int a; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int a, + }) => $allocator()..ref.a = a; +} + +@ffi.Packed(16) +final class Pack16 extends ffi.Struct { + @ffi.Uint8() + external int a; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int a, + }) => $allocator()..ref.a = a; +} + +@ffi.Packed(2) +final class Pack2 extends ffi.Struct { + @ffi.Uint8() + external int a; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int a, + }) => $allocator()..ref.a = a; +} + +@ffi.Packed(4) +final class Pack4 extends ffi.Struct { + @ffi.Uint8() + external int a; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int a, + }) => $allocator()..ref.a = a; +} + +@ffi.Packed(8) +final class Pack8 extends ffi.Struct { + @ffi.Uint8() + external int a; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int a, + }) => $allocator()..ref.a = a; +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart index c974a8a80c..64e5565654 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_allocate_collision_bindings.dart @@ -6,3 +6,20 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +final class CollisionStruct extends ffi.Struct { + @ffi.Int32() + external int allocator; + + @ffi.Int32() + external int allocate; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int allocator, + required int allocate, + }) => $allocator() + ..ref.allocator = allocator + ..ref.allocate = allocate; +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart index c974a8a80c..d1318f9dab 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_struct_bindings.dart @@ -6,3 +6,62 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +/// Just a test struct +/// heres another line +final class NoMember extends ffi.Opaque {} + +final class WithIntPtrUintPtr extends ffi.Struct { + external ffi.Pointer a; + + external ffi.Pointer> b; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer a, + required ffi.Pointer> b, + }) => $allocator() + ..ref.a = a + ..ref.b = b; +} + +final class WithPointerMember extends ffi.Struct { + external ffi.Pointer a; + + external ffi.Pointer> b; + + @ffi.Uint8() + external int c; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer a, + required ffi.Pointer> b, + required int c, + }) => $allocator() + ..ref.a = a + ..ref.b = b + ..ref.c = c; +} + +final class WithPrimitiveMember extends ffi.Struct { + @ffi.Int32() + external int a; + + @ffi.Double() + external double b; + + @ffi.Uint8() + external int c; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int a, + required double b, + required int c, + }) => $allocator() + ..ref.a = a + ..ref.b = b + ..ref.c = c; +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart index c974a8a80c..077f94c7a5 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_typealias_bindings.dart @@ -6,3 +6,63 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +class Bindings { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + Bindings.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + ffi.Pointer> WithTypealiasStruct( + Struct3Typealias t, + ) { + return _WithTypealiasStruct(t); + } + + late final _WithTypealiasStructPtr = + _lookup< + ffi.NativeFunction< + ffi.Pointer> Function( + Struct3Typealias, + ) + > + >('WithTypealiasStruct'); + late final _WithTypealiasStruct = + _WithTypealiasStructPtr.asFunction< + ffi.Pointer> Function( + Struct3Typealias, + ) + >(); +} + +typedef RawUnused = Struct1; + +final class Struct1 extends ffi.Opaque {} + +final class Struct2 extends ffi.Struct { + @ffi.Double() + external double a; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required double a, + }) => $allocator()..ref.a = a; +} + +typedef Struct2Typealias = Struct2; + +final class Struct3 extends ffi.Opaque {} + +typedef Struct3Typealias = Struct3; + +final class WithTypealiasStruct$1 extends ffi.Struct { + external Struct2Typealias t; +} diff --git a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart index c974a8a80c..9b9f2c0720 100644 --- a/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart +++ b/pkgs/ffigen/test/code_generator_tests/expected_bindings/_expected_unions_bindings.dart @@ -6,3 +6,63 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +final class EmptyUnion extends ffi.Opaque {} + +final class Primitives extends ffi.Union { + @ffi.Char() + external int a; + + @ffi.Int() + external int b; + + @ffi.Float() + external double c; + + @ffi.Double() + external double d; +} + +final class PrimitivesWithPointers extends ffi.Union { + @ffi.Char() + external int a; + + @ffi.Float() + external double b; + + external ffi.Pointer c; + + external ffi.Pointer d; + + external ffi.Pointer d$1; +} + +final class Struct1 extends ffi.Struct { + @ffi.Char() + external int a; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required int a, + }) => $allocator()..ref.a = a; +} + +final class Union1 extends ffi.Union { + @ffi.Char() + external int a; +} + +final class WithArray extends ffi.Union { + @ffi.Array.multi([10]) + external ffi.Array a; + + @ffi.Array.multi([10]) + external ffi.Array b; + + @ffi.Array.multi([10]) + external ffi.Array b$1; + + @ffi.Array.multi([10]) + external ffi.Array> c; +} diff --git a/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart b/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart index ca1435547c..3e96ae2fd6 100644 --- a/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart +++ b/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart @@ -4,6 +4,7 @@ import 'package:ffigen/src/code_generator.dart'; import 'package:ffigen/src/config_provider/config.dart'; +import 'package:ffigen/src/config_provider/public_ast.dart' as public_ast; import 'package:ffigen/src/header_parser/parser.dart'; import 'package:test/test.dart'; import '../test_utils.dart'; @@ -17,6 +18,15 @@ void main() { dartFile: Uri.file('unused'), style: const DynamicLibraryBindings(wrapperName: 'Bindings'), ), + visitors: [ + public_ast.Visitor( + visitFunc: (node) => node.isIncluded = true, + visitStruct: (node) => node.isIncluded = true, + visitEnum: (node) => node.isIncluded = true, + visitMacro: (node) => node.isIncluded = true, + visitTypealias: (node) => node.isIncluded = true, + ), + ], ), ); final library = Library( diff --git a/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart b/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart index 902ef2cfbc..7b1870d16e 100644 --- a/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart +++ b/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart @@ -4,6 +4,7 @@ import 'package:ffigen/src/code_generator.dart'; import 'package:ffigen/src/config_provider/config.dart'; +import 'package:ffigen/src/config_provider/public_ast.dart' as public_ast; import 'package:ffigen/src/header_parser/parser.dart'; import 'package:test/test.dart'; @@ -19,6 +20,13 @@ void main() { dartFile: Uri.file('unused'), style: const DynamicLibraryBindings(wrapperName: 'Bindings'), ), + visitors: [ + public_ast.Visitor( + visitFunc: (node) => node.isIncluded = true, + visitStruct: (node) => node.isIncluded = true, + visitEnum: (node) => node.isIncluded = true, + ), + ], ), ); actual = Library( diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart index dc0a0df2be..ea8b18bd04 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_decl_collision_bindings.dart @@ -2,3 +2,81 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi$2; + +class Bindings { + /// Holds the symbol lookup function. + final ffi$2.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + Bindings(ffi$2.DynamicLibrary dynamicLibrary) + : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + Bindings.fromLookup( + ffi$2.Pointer Function(String symbolName) + lookup, + ) : _lookup = lookup; + + void ffi$1() { + return _ffi$1(); + } + + late final _ffi$1Ptr = _lookup>( + 'ffi\$1', + ); + late final _ffi$1 = _ffi$1Ptr.asFunction(); + + void testCrossDecl$1() { + return _testCrossDecl(); + } + + late final _testCrossDecl$1Ptr = + _lookup>('testCrossDecl'); + late final _testCrossDecl = _testCrossDecl$1Ptr.asFunction(); + + void testFunc() { + return _testFunc(); + } + + late final _testFuncPtr = + _lookup>('testFunc'); + late final _testFunc = _testFuncPtr.asFunction(); + + void testFunc$1() { + return _testFunc$1(); + } + + late final _testFunc$1Ptr = + _lookup>('testFunc'); + late final _testFunc$1 = _testFunc$1Ptr.asFunction(); +} + +sealed class TestEnum {} + +sealed class TestEnum$1 {} + +final class TestStruct extends ffi$2.Opaque {} + +final class TestStruct$1 extends ffi$2.Opaque {} + +const int Test_Macro = 0; + +const int Test_Macro$1 = 0; + +final class ffi extends ffi$2.Opaque {} + +typedef testAlias = ffi$2.Void; +typedef DarttestAlias = void; +typedef testAlias$1 = ffi$2.Void; +typedef DarttestAlias$1 = void; + +sealed class testCrossDecl {} + +const int testCrossDecl$2 = 0; + +final class testCrossDecl$3 extends ffi$2.Opaque {} + +typedef testCrossDecl$4 = ffi$2.Void; +typedef DarttestCrossDecl = void; diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart index a86ae3d208..b18a004065 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_decl_symbol_address_collision_bindings.dart @@ -4,3 +4,57 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +class Bindings$1 { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + Bindings$1(ffi.DynamicLibrary dynamicLibrary) + : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + Bindings$1.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + void _SymbolAddresses_1() { + return __SymbolAddresses_1(); + } + + late final __SymbolAddresses_1Ptr = + _lookup>('_SymbolAddresses_1'); + late final __SymbolAddresses_1 = __SymbolAddresses_1Ptr + .asFunction(); + + void _library() { + return __library(); + } + + late final __libraryPtr = _lookup>( + '_library', + ); + late final __library = __libraryPtr.asFunction(); + + late final addresses$1 = _SymbolAddresses$1(this); +} + +class _SymbolAddresses$1 { + final Bindings$1 _library$1; + _SymbolAddresses$1(this._library$1); + ffi.Pointer> get _SymbolAddresses_1 => + _library$1.__SymbolAddresses_1Ptr; + ffi.Pointer> get _library => + _library$1.__libraryPtr; +} + +sealed class Bindings {} + +typedef Native_library = ffi.Void Function(); +typedef Dart_library = void Function(); + +final class _SymbolAddresses extends ffi.Opaque {} + +final class addresses extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart index dc0a0df2be..3d07ddf33e 100644 --- a/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart +++ b/pkgs/ffigen/test/collision_tests/expected_bindings/_expected_reserved_keyword_collision_bindings.dart @@ -2,3 +2,70 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +class NativeLibrary { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + NativeLibrary(ffi.DynamicLibrary dynamicLibrary) + : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + NativeLibrary.fromLookup( + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; + + void implements(int dynamic, int in$, int deferred) { + return _implements(dynamic, in$, deferred); + } + + late final _implementsPtr = + _lookup>( + 'implements', + ); + late final _implements = _implementsPtr + .asFunction(); + + late final ffi.Pointer _import = _lookup('import'); + + int get import => _import.value; + + set import(int value) => _import.value = value; +} + +final class Repro2795 extends ffi.Struct { + external ffi.Pointer< + ffi.NativeFunction in$)> + > + var$1; + + static ffi.Pointer $allocate( + ffi.Allocator $allocator, { + required ffi.Pointer< + ffi.NativeFunction in$)> + > + var$1, + }) => $allocator()..ref.var$1 = var$1; +} + +final class abstract$ extends ffi.Opaque {} + +enum export$ { + covariant(0); + + final int value; + const export$(this.value); + + static export$ fromValue(int value) => switch (value) { + 0 => covariant, + _ => throw ArgumentError('Unknown value for export\$: $value'), + }; +} + +final class show extends ffi.Opaque {} + +typedef var$ = ffi.Void; +typedef Dartvar = void; diff --git a/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart b/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart index 6e79af52c0..a456c526c2 100644 --- a/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart +++ b/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart @@ -3,6 +3,7 @@ // BSD-style license that can be found in the LICENSE file. import 'package:ffigen/src/config_provider.dart'; +import 'package:ffigen/src/config_provider/public_ast.dart' as public_ast; import 'package:ffigen/src/header_parser.dart' as parser; import 'package:path/path.dart' as path; import 'package:test/test.dart'; @@ -20,7 +21,17 @@ void main() { dartFile: Uri.file('unused'), style: const DynamicLibraryBindings(), ), - + visitors: [ + public_ast.Visitor( + visitFunc: (node) => node.isIncluded = true, + visitStruct: (node) => node.isIncluded = true, + visitUnion: (node) => node.isIncluded = true, + visitEnum: (node) => node.isIncluded = true, + visitGlobal: (node) => node.isIncluded = true, + visitMacro: (node) => node.isIncluded = true, + visitTypealias: (node) => node.isIncluded = true, + ), + ], input: Input( entryPoints: [ Uri.file( diff --git a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart index dc0a0df2be..8843436dc8 100644 --- a/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart +++ b/pkgs/ffigen/test/header_parser_tests/expected_bindings/_expected_sort_bindings.dart @@ -2,3 +2,16 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package +import 'dart:ffi' as ffi; + +typedef aaaa = ffff; + +final class bbbb extends ffi.Opaque {} + +final class cccc extends ffi.Opaque {} + +final class dddd extends ffi.Opaque {} + +typedef eeee = cccc; + +final class ffff extends ffi.Opaque {} diff --git a/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart b/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart index e3fe3b8fca..431b5fa182 100644 --- a/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart @@ -4,6 +4,7 @@ import 'package:ffigen/src/code_generator.dart'; import 'package:ffigen/src/config_provider/config.dart'; +import 'package:ffigen/src/config_provider/public_visitor.dart'; import 'package:ffigen/src/header_parser/parser.dart' as parser; import 'package:ffigen/src/strings.dart' as strings; import 'package:test/test.dart'; @@ -86,6 +87,12 @@ Library expectedLibrary() { dartFile: Uri.file('unused'), style: const DynamicLibraryBindings(), ), + visitors: [ + Visitor( + visitFunc: (node) => node.isIncluded = true, + visitStruct: (node) => node.isIncluded = true, + ), + ], ), ); final struct1 = Struct( diff --git a/pkgs/ffigen/test/header_parser_tests/globals_test.dart b/pkgs/ffigen/test/header_parser_tests/globals_test.dart index 2452c262b3..5ee3008664 100644 --- a/pkgs/ffigen/test/header_parser_tests/globals_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/globals_test.dart @@ -4,6 +4,7 @@ import 'package:ffigen/src/code_generator.dart'; import 'package:ffigen/src/config_provider/config.dart'; +import 'package:ffigen/src/config_provider/public_visitor.dart'; import 'package:ffigen/src/header_parser/parser.dart' as parser; import 'package:path/path.dart' as path; import 'package:test/test.dart'; @@ -95,6 +96,13 @@ Library expectedLibrary() { dartFile: Uri.file('unused'), style: const DynamicLibraryBindings(), ), + visitors: [ + Visitor( + visitGlobal: (node) => node.isIncluded = true, + visitStruct: (node) => node.isIncluded = true, + visitTypealias: (node) => node.isIncluded = true, + ), + ], ), ); final globalStruct = Struct(context: context, name: 'EmptyStruct'); diff --git a/pkgs/ffigen/test/header_parser_tests/sort_test.dart b/pkgs/ffigen/test/header_parser_tests/sort_test.dart index 6c94dbf114..e13ddee9f7 100644 --- a/pkgs/ffigen/test/header_parser_tests/sort_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/sort_test.dart @@ -4,6 +4,7 @@ import 'package:ffigen/src/code_generator.dart'; import 'package:ffigen/src/config_provider.dart'; +import 'package:ffigen/src/config_provider/public_visitor.dart'; import 'package:ffigen/src/header_parser.dart' as parser; import 'package:path/path.dart' as path; import 'package:test/test.dart'; @@ -32,6 +33,13 @@ void main() { ], ), typedefs: const Typedefs(includeUnused: true), + visitors: [ + Visitor( + visitStruct: (node) => node.isIncluded = true, + visitUnion: (node) => node.isIncluded = true, + visitTypealias: (node) => node.isIncluded = true, + ), + ], ), ), ); From 0bcbfddae719b944886434d79dc14e15e3facad2 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 13:47:52 +1000 Subject: [PATCH 37/54] clean up --- pkgs/ffigen/lib/ffigen.dart | 3 -- .../lib/src/code_generator/objc_category.dart | 3 +- .../lib/src/config_provider/config.dart | 28 +------------------ .../lib/src/config_provider/yaml_config.dart | 2 -- .../sub_parsers/classdecl_parser.dart | 3 +- .../type_extractor/extractor.dart | 4 +-- 6 files changed, 5 insertions(+), 38 deletions(-) diff --git a/pkgs/ffigen/lib/ffigen.dart b/pkgs/ffigen/lib/ffigen.dart index b2c31cb40b..9138e740f2 100644 --- a/pkgs/ffigen/lib/ffigen.dart +++ b/pkgs/ffigen/lib/ffigen.dart @@ -23,7 +23,6 @@ export 'src/config_provider.dart' CommentType, CompoundDependencies, Cpp, - CppClasses, Declaration, Declarations, DynamicLibraryBindings, @@ -35,7 +34,6 @@ export 'src/config_provider.dart' Globals, Input, Interfaces, - Macros, NativeExternalBindings, ObjectiveC, Output, @@ -45,7 +43,6 @@ export 'src/config_provider.dart' SymbolFile, Typedefs, Unions, - UnnamedEnums, VarArgFunction, Version, Versions, diff --git a/pkgs/ffigen/lib/src/code_generator/objc_category.dart b/pkgs/ffigen/lib/src/code_generator/objc_category.dart index 6927bc6334..78571e7e6c 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_category.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_category.dart @@ -39,9 +39,8 @@ class ObjCCategory extends NoLookUpBinding with ObjCMethods, HasLocalScope { } bool shouldCopyMethodToInterface(ObjCMethod method) { - if (originalName.isNotEmpty && !isIncluded) return false; if (originalName.isEmpty) return true; - return method.returnsInstanceType && !parent.isObjCImport; + return isIncluded && method.returnsInstanceType && !parent.isObjCImport; } @override diff --git a/pkgs/ffigen/lib/src/config_provider/config.dart b/pkgs/ffigen/lib/src/config_provider/config.dart index fadf6d1d65..c0dc6ab9c7 100644 --- a/pkgs/ffigen/lib/src/config_provider/config.dart +++ b/pkgs/ffigen/lib/src/config_provider/config.dart @@ -28,9 +28,6 @@ final class FfiGenerator { /// Configuration for globals. final Globals globals; - /// Configuration for macro constants. - final Macros macros; - /// Configuration for structs. final Structs structs; @@ -48,9 +45,6 @@ final class FfiGenerator { /// Configuration for unions. final Unions unions; - /// Configuration for unnamed enum constants. - final UnnamedEnums unnamedEnums; - /// Objective-C specific configuration. /// /// If `null`, will only generate for C. @@ -108,12 +102,10 @@ final class FfiGenerator { this.enums = const Enums(), this.functions = const Functions(), this.globals = const Globals(), - this.macros = const Macros(), this.structs = const Structs(), this.cpp, this.typedefs = const Typedefs(), this.unions = const Unions(), - this.unnamedEnums = const UnnamedEnums(), this.objectiveC, required this.output, this.visitors = const [], @@ -259,11 +251,6 @@ final class Globals extends Declarations { const Globals({super.includeSymbolAddress}); } -/// Configuration for macros. -final class Macros extends Declarations { - const Macros(); -} - /// Configuration for struct declarations. final class Structs extends Declarations { /// Whether structs that are dependencies should be included. @@ -295,17 +282,9 @@ final class Typedefs extends Declarations { }); } -/// Configuration for C++ class declarations. -final class CppClasses extends Declarations { - const CppClasses(); -} - /// Configuration for C++. final class Cpp { - /// Declaration filters for C++ classes. - final CppClasses classes; - - const Cpp({this.classes = const CppClasses()}); + const Cpp(); } /// Configuration for union declarations. @@ -316,11 +295,6 @@ final class Unions extends Declarations { const Unions({this.dependencies = CompoundDependencies.opaque}); } -/// Configuration for unnamed enum constants. -final class UnnamedEnums extends Declarations { - const UnnamedEnums(); -} - /// Configuration for Objective-C. final class ObjectiveC { /// Declaration filters for Objective-C categories. diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index 808bb060a8..5821727d02 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -1284,11 +1284,9 @@ final class YamlConfig { }, ), unions: Unions(dependencies: _unionDependencies), - unnamedEnums: const UnnamedEnums(), globals: Globals( includeSymbolAddress: globals.shouldIncludeSymbolAddress, ), - macros: const Macros(), typedefs: Typedefs( useSupportedTypedefs: useSupportedTypedefs, includeUnused: includeUnusedTypedefs, diff --git a/pkgs/ffigen/lib/src/header_parser/sub_parsers/classdecl_parser.dart b/pkgs/ffigen/lib/src/header_parser/sub_parsers/classdecl_parser.dart index bbf538ee49..0ae88c7e80 100644 --- a/pkgs/ffigen/lib/src/header_parser/sub_parsers/classdecl_parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/sub_parsers/classdecl_parser.dart @@ -17,8 +17,7 @@ CppClass? parseClassDeclaration(Context context, clang_types.CXCursor cursor) { final logger = context.logger; // If C++ support is not configured, skip all C++ class cursors immediately. - final cppClasses = config.cpp?.classes; - if (cppClasses == null) return null; + if (config.cpp == null) return null; final usr = cursor.usr(); diff --git a/pkgs/ffigen/lib/src/header_parser/type_extractor/extractor.dart b/pkgs/ffigen/lib/src/header_parser/type_extractor/extractor.dart index c91a991d84..8782b3d2fc 100644 --- a/pkgs/ffigen/lib/src/header_parser/type_extractor/extractor.dart +++ b/pkgs/ffigen/lib/src/header_parser/type_extractor/extractor.dart @@ -45,7 +45,7 @@ Type getCodeGenType( } // Handle C++ templates like std::unique_ptr. - if (context.config.cpp?.classes != null) { + if (context.config.cpp != null) { final numTemplateArgs = clang.clang_Type_getNumTemplateArguments(cxtype); if (numTemplateArgs >= 1) { final declCursor = clang.clang_getTypeDeclaration(cxtype); @@ -274,7 +274,7 @@ Type? _extractfromRecord( final declSpelling = cursor.spelling(); final cursorKind = clang.clang_getCursorKind(cursor); - if (config.cpp?.classes != null) { + if (config.cpp != null) { final seenCppClass = context.bindingsIndex.getSeenCppClass(cursor.usr()); if (seenCppClass != null) { return seenCppClass; From eb76e77177e13f7c21ad0c568270da89f0e074ed Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 14:21:47 +1000 Subject: [PATCH 38/54] clean up --- .../lib/src/config_provider/public_ast.dart | 25 ++++++------------- .../lib/src/config_provider/yaml_config.dart | 1 - pkgs/ffigen/lib/src/header_parser/parser.dart | 7 ++---- 3 files changed, 10 insertions(+), 23 deletions(-) diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index bcb5cdd9f7..90f3ebd785 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -277,11 +277,10 @@ class Typealias extends DeclNode { /// An Objective-C interface (class) declaration. class ObjCInterface extends DeclNode { final internal.ObjCInterface _interface; - final _methodWrappers = {}; /// The methods belonging to this Objective-C interface. - List get methods => _interface.methods - .map((m) => _methodWrappers.putIfAbsent(m, () => ObjCMethod(this, m))) + late final List methods = _interface.methods + .map((m) => ObjCMethod(this, m)) .toList(); ObjCInterface(this._interface); @@ -312,11 +311,10 @@ class ObjCInterface extends DeclNode { /// An Objective-C protocol declaration. class ObjCProtocol extends DeclNode { final internal.ObjCProtocol _protocol; - final _methodWrappers = {}; /// The methods belonging to this Objective-C protocol. - List get methods => _protocol.methods - .map((m) => _methodWrappers.putIfAbsent(m, () => ObjCMethod(this, m))) + late final List methods = _protocol.methods + .map((m) => ObjCMethod(this, m)) .toList(); ObjCProtocol(this._protocol); @@ -347,11 +345,10 @@ class ObjCProtocol extends DeclNode { /// An Objective-C category declaration. class ObjCCategory extends DeclNode { final internal.ObjCCategory _category; - final _methodWrappers = {}; /// The methods belonging to this Objective-C category. - List get methods => _category.methods - .map((m) => _methodWrappers.putIfAbsent(m, () => ObjCMethod(this, m))) + late final List methods = _category.methods + .map((m) => ObjCMethod(this, m)) .toList(); /// The [ObjCInterface] that this category extends. @@ -385,11 +382,10 @@ class ObjCCategory extends DeclNode { /// A C++ class declaration. class CppClass extends DeclNode { final internal.CppClass _cppClass; - final _methodWrappers = {}; /// The methods belonging to this C++ class. - List get methods => _cppClass.methods - .map((m) => _methodWrappers.putIfAbsent(m, () => CppMethod(this, m))) + late final List methods = _cppClass.methods + .map((m) => CppMethod(this, m)) .toList(); CppClass(this._cppClass); @@ -557,11 +553,6 @@ class ObjCMethod extends NamedNode { /// Whether this method is a property setter. bool get isPropertySetter => _method.isPropertySetter; - /// The property setter for this Objective-C method, if it is a property - /// getter. - ObjCMethod? get setter => - _method.setter != null ? ObjCMethod(parent, _method.setter!) : null; - /// Whether this ObjCMethod should be included in code generation. bool get isIncluded => _method.isIncluded; set isIncluded(bool value) => _method.isIncluded = value; diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index 5821727d02..9db5da5442 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -1445,7 +1445,6 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { node.name = rename; } } - node.setter?.isIncluded = node.isIncluded; } YamlDeclarationFilters? _getCompoundDecl(public_ast.DeclNode node) { diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index 9ffee852b0..f7961c3355 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -185,12 +185,9 @@ List _findObjectiveCSysroot() => [ List transformBindings(List rawBindings, Context context) { final config = context.config; - final rawNodes = rawBindings - .map((b) => b.toPublicAstNode()) - .nonNulls - .toList(); + final nodes = rawBindings.map((b) => b.toPublicAstNode()).nonNulls.toList(); for (final visitor in config.visitors) { - visitor.visitAll(rawNodes); + visitor.visitAll(nodes); } visit(context, CopyMethodsFromSuperTypesVisitation(), rawBindings); visit(context, FixOverriddenMethodsVisitation(context), rawBindings); From bb5543d504e0321d9211971dab2df56aafbd36a9 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 15:51:04 +1000 Subject: [PATCH 39/54] fix category bug --- .../code_generator/objc_built_in_types.dart | 7 + .../lib/src/code_generator/objc_category.dart | 2 +- .../lib/src/code_generator/objc_methods.dart | 9 +- pkgs/ffigen/lib/src/header_parser/parser.dart | 27 +- pkgs/ffigen/lib/src/header_parser/utils.dart | 4 +- .../lib/src/visitor/apply_config_filters.dart | 8 +- .../visitor/copy_methods_from_super_type.dart | 2 +- .../code_generator_test.dart | 3 +- .../category_test_bindings.dart | 1144 --------- .../native_objc_test/category_test_bindings.m | 111 - .../method_filtering_test_bindings.dart | 85 - pkgs/objective_c/ffigen_objc.yaml | 7 + .../src/objective_c_bindings_exported.dart | 7 + .../src/objective_c_bindings_generated.dart | 2098 +++-------------- 14 files changed, 342 insertions(+), 3172 deletions(-) delete mode 100644 pkgs/ffigen/test/native_objc_test/category_test_bindings.m diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart index 194e77f1de..803d422c11 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart @@ -124,7 +124,10 @@ const objCBuiltInProtocols = { }; const objCBuiltInCategories = { + 'NSArrayCreation', 'NSDataCreation', + 'NSDateCreation', + 'NSDictionaryCreation', 'NSExtendedArray', 'NSExtendedData', 'NSExtendedDate', @@ -137,8 +140,12 @@ const objCBuiltInCategories = { 'NSExtendedMutableSet', 'NSExtendedOrderedSet', 'NSExtendedSet', + 'NSMutableArrayCreation', + 'NSMutableDictionaryCreation', + 'NSMutableSetCreation', 'NSNumberCreation', 'NSNumberIsFloat', 'NSNumberIsBool', + 'NSSetCreation', 'NSStringExtensionMethods', }; diff --git a/pkgs/ffigen/lib/src/code_generator/objc_category.dart b/pkgs/ffigen/lib/src/code_generator/objc_category.dart index 78571e7e6c..794c47f6b1 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_category.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_category.dart @@ -40,7 +40,7 @@ class ObjCCategory extends NoLookUpBinding with ObjCMethods, HasLocalScope { bool shouldCopyMethodToInterface(ObjCMethod method) { if (originalName.isEmpty) return true; - return isIncluded && method.returnsInstanceType && !parent.isObjCImport; + return method.returnsInstanceType && !parent.isObjCImport; } @override diff --git a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart index f34124fd43..5aaf65dced 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart @@ -13,6 +13,7 @@ import 'local_variables.dart'; import 'native_type.dart'; import 'objc_block.dart'; import 'objc_built_in_functions.dart'; +import 'objc_category.dart'; import 'objc_interface.dart'; import 'objc_nullable.dart'; import 'pointer.dart'; @@ -48,12 +49,16 @@ mixin ObjCMethods { } } - void copyMethod(ObjCMethod method) { + void copyMethod(ObjCMethod method, {ObjCCategory? category}) { // To maintain the pairing between getters and setters after cloning, // instead of directly cloning the setter, we clone the setter when we clone // the getter. This lets us, for example, share the symbol between them. if (method.kind == ObjCMethodKind.propertySetter) return; final cloned = method.clone(); + if (category != null) { + cloned.originalCategory = category; + cloned.setter?.originalCategory = category; + } addMethod(cloned); addMethod(cloned.setter); } @@ -212,6 +217,7 @@ class ObjCMethod extends AstNode with HasLocalScope { ObjCMethods? parent; ObjCMethod? setter; bool isIncluded = true; + ObjCCategory? originalCategory; @override void visitChildren(Visitor visitor, {bool omitMethodName = false}) { @@ -351,6 +357,7 @@ class ObjCMethod extends AstNode with HasLocalScope { clonedMethod.parent = parent; clonedMethod.protocolMethodName = protocolMethodName?.clone(); clonedMethod.isIncluded = isIncluded; + clonedMethod.originalCategory = originalCategory; return clonedMethod; } diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index f7961c3355..38ad2ee657 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -185,27 +185,27 @@ List _findObjectiveCSysroot() => [ List transformBindings(List rawBindings, Context context) { final config = context.config; - final nodes = rawBindings.map((b) => b.toPublicAstNode()).nonNulls.toList(); + final allBindings = visit( + context, + FindTransitiveDepsVisitation(), + rawBindings, + ).transitives; + + visit(context, CopyMethodsFromSuperTypesVisitation(), allBindings); + visit(context, FixOverriddenMethodsVisitation(context), allBindings); + + final nodes = allBindings.map((b) => b.toPublicAstNode()).nonNulls.toList(); for (final visitor in config.visitors) { visitor.visitAll(nodes); } - visit(context, CopyMethodsFromSuperTypesVisitation(), rawBindings); - visit(context, FixOverriddenMethodsVisitation(context), rawBindings); final applyConfigFiltersVisitation = ApplyConfigFiltersVisitation(context); - visit(context, applyConfigFiltersVisitation, rawBindings); + visit(context, applyConfigFiltersVisitation, allBindings); final directlyIncluded = applyConfigFiltersVisitation.directlyIncluded; final included = directlyIncluded.union( applyConfigFiltersVisitation.indirectlyIncluded, ); - final transitives = visit( - context, - FindTransitiveDepsVisitation(), - included, - ).transitives; - final allBindings = included.union(transitives); - final byValueCompounds = visit( context, FindByValueCompoundsVisitation(), @@ -217,6 +217,11 @@ List transformBindings(List rawBindings, Context context) { allBindings, ); + final transitives = visit( + context, + FindTransitiveDepsVisitation(), + included, + ).transitives; final directTransitives = visit( context, FindDirectTransitiveDepsVisitation(config, included, directlyIncluded), diff --git a/pkgs/ffigen/lib/src/header_parser/utils.dart b/pkgs/ffigen/lib/src/header_parser/utils.dart index 0e1bb5bceb..bf1f236fa3 100644 --- a/pkgs/ffigen/lib/src/header_parser/utils.dart +++ b/pkgs/ffigen/lib/src/header_parser/utils.dart @@ -574,7 +574,9 @@ class BindingsIndex { void addObjCCategoryToSeen(String usr, ObjCCategory t) => _objcCategories[usr] = t; ObjCCategory? getSeenObjCCategory(String usr) => _objcCategories[usr]; - bool isSeenObjCCategory(String usr) => _objcCategories.containsKey(usr); + Iterable get seenObjCInterfaces => _objcInterfaces.values; + Iterable get seenObjCProtocols => _objcProtocols.values; + Iterable get seenObjCCategories => _objcCategories.values; } class CursorIndex { diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index 85f12e68ea..6310f98bbd 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -56,7 +56,13 @@ class ApplyConfigFiltersVisitation extends Visitation { if (context.config.objectiveC == null) return; if (!node.isInternal) { - node.filterMethods((m) => !m.unavailable && m.isIncluded); + node.filterMethods((m) { + if (m.unavailable || !m.isIncluded) return false; + if (m.originalCategory case final cat?) { + if (!cat.isIncluded && cat.originalName.isNotEmpty) return false; + } + return true; + }); } _visitImpl(node, node.isIncluded); diff --git a/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart b/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart index fc2796a935..8023e5da10 100644 --- a/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart +++ b/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart @@ -73,7 +73,7 @@ class CopyMethodsFromSuperTypesVisitation extends Visitation { for (final category in node.categories) { for (final m in category.methods) { if (category.shouldCopyMethodToInterface(m)) { - node.copyMethod(m); + node.copyMethod(m, category: category); } } } diff --git a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart index db9f442eb6..575aa2fb63 100644 --- a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart +++ b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart @@ -29,7 +29,8 @@ void main() { style: const DynamicLibraryBindings(wrapperName: 'Bindings'), ), visitors: - visitors ?? [ + visitors ?? + [ public_ast.Visitor( visitFunc: (node) => node.isIncluded = true, visitStruct: (node) => node.isIncluded = true, diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index 6d48048e5d..f891637248 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -10,36 +10,6 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer args) - > - >, - ) ->(isLeaf: true) -external ffi.Pointer _l3cf7j_wrapBlockingBlock_pfv6jd( - int port, - ffi.Pointer context, - ffi.Pointer< - ffi.NativeFunction args)> - > - directInvoke, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Int64, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer _l3cf7j_wrapListenerBlock_pfv6jd( - int port, - ffi.Pointer context, -); /// CatImplementsProto extension CatImplementsProto on Thing { @@ -288,252 +258,6 @@ extension Mul on Thing { } } -/// NSItemProvider -extension NSItemProvider on objc.NSURL { - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier( - objc.NSString typeIdentifier, - ) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_16fy0up( - _$$ref.pointer, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref$1.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - objc.NSProgress? loadDataWithTypeIdentifier( - objc.NSString typeIdentifier, { - required objc.ObjCBlock - forItemProviderCompletionHandler, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = typeIdentifier.ref; - final _$$ref$2 = forItemProviderCompletionHandler.ref; - objc.checkOsVersionInternal( - 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_r0bo0s( - _$$ref.pointer, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSProgress.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - objc.NSArray get writableTypeIdentifiersForItemProvider { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'writableTypeIdentifiersForItemProvider', - ); - } - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - static objc.NSItemProviderRepresentationVisibility - itemProviderVisibilityForRepresentationWithTypeIdentifier$1( - objc.NSString typeIdentifier, - ) { - final _$$ref = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - if (!objc.respondsToSelector( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - )) { - throw objc.UnimplementedOptionalMethodException( - 'NSURL', - 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', - ); - } - final $ret = _objc_msgSend_16fy0up( - _class_NSURL, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - _$$ref.pointer, - ); - return objc.NSItemProviderRepresentationVisibility.fromValue($ret); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static objc.NSURL? objectWithItemProviderData( - objc.NSData data, { - required objc.NSString typeIdentifier, - }) { - final _$$ref = data.ref; - final _$$ref$1 = typeIdentifier.ref; - objc.checkOsVersionInternal( - 'NSURL.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1pnyuds( - _class_NSURL, - _sel_objectWithItemProviderData_typeIdentifier_error_, - _$$ref.pointer, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// readableTypeIdentifiersForItemProvider - static objc.NSArray getReadableTypeIdentifiersForItemProvider() { - objc.checkOsVersionInternal( - 'NSURL.readableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSURL, - _sel_readableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// writableTypeIdentifiersForItemProvider - static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { - objc.checkOsVersionInternal( - 'NSURL.writableTypeIdentifiersForItemProvider', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSURL, - _sel_writableTypeIdentifiersForItemProvider, - ); - return objc.NSArray.fromPointer($ret, retain: true, release: true); - } -} - -/// NSPromisedItems -extension NSPromisedItems on objc.NSURL { - /// checkPromisedItemIsReachableAndReturnError: - bool checkPromisedItemIsReachableAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.checkPromisedItemIsReachableAndReturnError:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1dom33q( - _$$ref.pointer, - _sel_checkPromisedItemIsReachableAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// getPromisedItemResourceValue:forKey:error: - bool getPromisedItemResourceValue( - ffi.Pointer> value, { - required objc.NSString forKey, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = forKey.ref; - objc.checkOsVersionInternal( - 'NSURL.getPromisedItemResourceValue:forKey:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1j9bhml( - _$$ref.pointer, - _sel_getPromisedItemResourceValue_forKey_error_, - value, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// promisedItemResourceValuesForKeys:error: - objc.NSDictionary? promisedItemResourceValuesForKeys(objc.NSArray keys) { - final _$$ref = object$.ref; - final _$$ref$1 = keys.ref; - objc.checkOsVersionInternal( - 'NSURL.promisedItemResourceValuesForKeys:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.pointer, - _sel_promisedItemResourceValuesForKeys_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : objc.NSDictionary.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - /// NSString extension NSString on Thing { /// nsStringExtension @@ -543,554 +267,6 @@ extension NSString on Thing { } } -/// NSURLCategory -extension NSURLCategory on objc.NSURL { - /// extensionMethod - int extensionMethod() { - final _$$ref = object$.ref; - return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_extensionMethod); - } -} - -/// NSURLLoading -extension NSURLLoading on objc.NSURL { - /// URLHandleUsingCache: - @Deprecated('Use NSURLConnection instead') - objc.NSURLHandle? URLHandleUsingCache(bool shouldUseCache) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLHandleUsingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1t6aok9( - _$$ref.pointer, - _sel_URLHandleUsingCache_, - shouldUseCache, - ); - return $ret.address == 0 - ? null - : objc.NSURLHandle.fromPointer($ret, retain: true, release: true); - } - - /// loadResourceDataNotifyingClient:usingCache: - @Deprecated('Use NSURLConnection instead') - void loadResourceDataNotifyingClient( - objc.ObjCObject client, { - required bool usingCache, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = client.ref; - objc.checkOsVersionInternal( - 'NSURL.loadResourceDataNotifyingClient:usingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_6p7ndb( - _$$ref.pointer, - _sel_loadResourceDataNotifyingClient_usingCache_, - _$$ref$1.pointer, - usingCache, - ); - } - - /// propertyForKey: - @Deprecated('Use NSURLConnection instead') - objc.ObjCObject? propertyForKey(objc.NSString propertyKey) { - final _$$ref = object$.ref; - final _$$ref$1 = propertyKey.ref; - objc.checkOsVersionInternal( - 'NSURL.propertyForKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_propertyForKey_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.ObjCObject($ret, retain: true, release: true); - } - - /// resourceDataUsingCache: - @Deprecated('Use NSURLConnection instead') - objc.NSData? resourceDataUsingCache(bool shouldUseCache) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.resourceDataUsingCache:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1t6aok9( - _$$ref.pointer, - _sel_resourceDataUsingCache_, - shouldUseCache, - ); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - /// setProperty:forKey: - @Deprecated('Use NSURLConnection instead') - bool setProperty(objc.ObjCObject property, {required objc.NSString forKey}) { - final _$$ref = object$.ref; - final _$$ref$1 = property.ref; - final _$$ref$2 = forKey.ref; - objc.checkOsVersionInternal( - 'NSURL.setProperty:forKey:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1lsax7n( - _$$ref.pointer, - _sel_setProperty_forKey_, - _$$ref$1.pointer, - _$$ref$2.pointer, - ); - } - - /// setResourceData: - @Deprecated('Use NSURLConnection instead') - bool setResourceData(objc.NSData data) { - final _$$ref = object$.ref; - final _$$ref$1 = data.ref; - objc.checkOsVersionInternal( - 'NSURL.setResourceData:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _$$ref.pointer, - _sel_setResourceData_, - _$$ref$1.pointer, - ); - } -} - -/// NSURLPathUtilities -extension NSURLPathUtilities on objc.NSURL { - /// URLByAppendingPathComponent: - objc.NSURL? URLByAppendingPathComponent(objc.NSString pathComponent) { - final _$$ref = object$.ref; - final _$$ref$1 = pathComponent.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathComponent:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_URLByAppendingPathComponent_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByAppendingPathComponent:isDirectory: - objc.NSURL? URLByAppendingPathComponent$1( - objc.NSString pathComponent, { - required bool isDirectory, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = pathComponent.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathComponent:isDirectory:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.pointer, - _sel_URLByAppendingPathComponent_isDirectory_, - _$$ref$1.pointer, - isDirectory, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByAppendingPathExtension: - objc.NSURL? URLByAppendingPathExtension(objc.NSString pathExtension) { - final _$$ref = object$.ref; - final _$$ref$1 = pathExtension.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByAppendingPathExtension:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.pointer, - _sel_URLByAppendingPathExtension_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByDeletingLastPathComponent - objc.NSURL? get URLByDeletingLastPathComponent { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByDeletingLastPathComponent', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByDeletingLastPathComponent, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByDeletingPathExtension - objc.NSURL? get URLByDeletingPathExtension { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByDeletingPathExtension', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByDeletingPathExtension, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByResolvingSymlinksInPath - objc.NSURL? get URLByResolvingSymlinksInPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByResolvingSymlinksInPath', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByResolvingSymlinksInPath, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// URLByStandardizingPath - objc.NSURL? get URLByStandardizingPath { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.URLByStandardizingPath', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.pointer, - _sel_URLByStandardizingPath, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } - - /// checkResourceIsReachableAndReturnError: - bool checkResourceIsReachableAndReturnError() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.checkResourceIsReachableAndReturnError:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1dom33q( - _$$ref.pointer, - _sel_checkResourceIsReachableAndReturnError_, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret; - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// lastPathComponent - objc.NSString? get lastPathComponent { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.lastPathComponent', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// pathComponents - objc.NSArray? get pathComponents { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.pathComponents', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); - return $ret.address == 0 - ? null - : objc.NSArray.fromPointer($ret, retain: true, release: true); - } - - /// pathExtension - objc.NSString? get pathExtension { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSURL.pathExtension', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); - return $ret.address == 0 - ? null - : objc.NSString.fromPointer($ret, retain: true, release: true); - } - - /// fileURLWithPathComponents: - static objc.NSURL? fileURLWithPathComponents(objc.NSArray components) { - final _$$ref = components.ref; - objc.checkOsVersionInternal( - 'NSURL.fileURLWithPathComponents:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSURL, - _sel_fileURLWithPathComponents_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : objc.NSURL.fromPointer($ret, retain: true, release: true); - } -} - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSData_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - fromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// Creates a block from a C function pointer. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// This block must be invoked by native code running on the same thread as - /// the isolate that registered it. Invoking the block on the wrong thread - /// will result in a crash. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock(_closureCallable, ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) { - return fn( - arg0.address == 0 - ? null - : objc.NSData.fromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : objc.NSError.fromPointer(arg1, retain: true, release: true), - ); - }, keepIsolateAlive), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This block can be invoked from any thread, but only supports void - /// functions, and is not run synchronously. Async functions (ie returning - /// Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - listener( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockPort(_l3cf7j_wrapListenerBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x5cg0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions (ie returning Future) are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock - blocking( - void Function(objc.NSData?, objc.NSError?) fn, { - bool keepIsolateAlive = true, - }) { - return objc.ObjCBlock( - objc.newBlockingBlockPort(_l3cf7j_wrapBlockingBlock_pfv6jd, ( - ffi.Pointer rawArgs, - ) { - final args = _BlockArgs_x5cg0.fromPointer( - rawArgs, - retain: false, - release: false, - ); - - fn(args.arg0, args.arg1); - }, keepIsolateAlive), - retain: false, - release: true, - ); - } - - static void _fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); - static ffi.Pointer _fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_fnPtrTrampoline) - .cast(); - static void _closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - static ffi.Pointer _closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_closureTrampoline) - .cast(); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension - on objc.ObjCBlock { - void call(objc.NSData? arg0, objc.NSError? arg1) { - final _$$ref = arg0?.ref; - final _$$ref$1 = arg1?.ref; - return ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - _$$ref?.pointer ?? ffi.nullptr, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - } -} - /// StaticAndInstanceMethodsWithSameNameCategory extension StaticAndInstanceMethodsWithSameNameCategory on Thing { /// sameNameMethod @@ -1211,50 +387,6 @@ extension Thing$Methods on Thing { } } -extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) - implements objc.ObjCObject { - /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. - _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { - assert(isA(object$)); - } - - /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. - _BlockArgs_x5cg0.fromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { - assert(isA(object$)); - } - - /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. - static bool isA(objc.ObjCObject? obj) => obj == null - ? false - : _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class__BlockArgs_x5cg0, - ); -} - -extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { - objc.NSData? get arg0 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); - return $ret.address == 0 - ? null - : objc.NSData.fromPointer($ret, retain: true, release: true); - } - - objc.NSError? get arg1 { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); - return $ret.address == 0 - ? null - : objc.NSError.fromPointer($ret, retain: true, release: true); - } -} - @ffi.Native>( symbol: 'OBJC_CLASS_\$_ChildOfNSString', ) @@ -1283,14 +415,6 @@ final _class_NSString = objc.getClass( _class_NSString_raw, ).cast(), ); -@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSURL') -external ffi.Pointer _class_NSURL_raw; -final _class_NSURL = objc.getClass( - "NSURL", - () => ffi.Native.addressOf>( - _class_NSURL_raw, - ).cast(), -); @ffi.Native>(symbol: 'OBJC_CLASS_\$_Thing') external ffi.Pointer _class_Thing_raw; final _class_Thing = objc.getClass( @@ -1299,16 +423,6 @@ final _class_Thing = objc.getClass( _class_Thing_raw, ).cast(), ); -@ffi.Native>( - symbol: 'OBJC_CLASS_\$__l3cf7j_BlockArgs_pfv6jd', -) -external ffi.Pointer _class__BlockArgs_x5cg0_raw; -final _class__BlockArgs_x5cg0 = objc.getClass( - "_l3cf7j_BlockArgs_pfv6jd", - () => ffi.Native.addressOf>( - _class__BlockArgs_x5cg0_raw, - ).cast(), -); final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1324,42 +438,6 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_16fy0up = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_17amj0z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1394,23 +472,6 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1dom33q = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1426,86 +487,6 @@ final _objc_msgSend_1gcq84o = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1j9bhml = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1lsax7n = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); final _objc_msgSend_1q0lyci = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1542,42 +523,6 @@ final _objc_msgSend_1sotr3r = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1t6aok9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_6p7ndb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -1593,49 +538,6 @@ final _objc_msgSend_91o635 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_r0bo0s = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_URLByAppendingPathComponent_ = objc.registerName( - "URLByAppendingPathComponent:", -); -late final _sel_URLByAppendingPathComponent_isDirectory_ = objc.registerName( - "URLByAppendingPathComponent:isDirectory:", -); -late final _sel_URLByAppendingPathExtension_ = objc.registerName( - "URLByAppendingPathExtension:", -); -late final _sel_URLByDeletingLastPathComponent = objc.registerName( - "URLByDeletingLastPathComponent", -); -late final _sel_URLByDeletingPathExtension = objc.registerName( - "URLByDeletingPathExtension", -); -late final _sel_URLByResolvingSymlinksInPath = objc.registerName( - "URLByResolvingSymlinksInPath", -); -late final _sel_URLByStandardizingPath = objc.registerName( - "URLByStandardizingPath", -); -late final _sel_URLHandleUsingCache_ = objc.registerName( - "URLHandleUsingCache:", -); late final _sel_add_Y_ = objc.registerName("add:Y:"); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); @@ -1645,59 +547,16 @@ late final _sel_anonymousCategoryMethod = objc.registerName( late final _sel_anonymousCategoryStaticMethod = objc.registerName( "anonymousCategoryStaticMethod", ); -late final _sel_arg0 = objc.registerName("arg0"); -late final _sel_arg1 = objc.registerName("arg1"); -late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( - "checkPromisedItemIsReachableAndReturnError:", -); -late final _sel_checkResourceIsReachableAndReturnError_ = objc.registerName( - "checkResourceIsReachableAndReturnError:", -); -late final _sel_extensionMethod = objc.registerName("extensionMethod"); -late final _sel_fileURLWithPathComponents_ = objc.registerName( - "fileURLWithPathComponents:", -); -late final _sel_getPromisedItemResourceValue_forKey_error_ = objc.registerName( - "getPromisedItemResourceValue:forKey:error:", -); late final _sel_init = objc.registerName("init"); late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); late final _sel_instancetypeMethod = objc.registerName("instancetypeMethod"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = - objc.registerName( - "itemProviderVisibilityForRepresentationWithTypeIdentifier:", - ); -late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); -late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = - objc.registerName( - "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", - ); -late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( - "loadResourceDataNotifyingClient:usingCache:", -); late final _sel_method = objc.registerName("method"); late final _sel_mul_Y_ = objc.registerName("mul:Y:"); late final _sel_new = objc.registerName("new"); late final _sel_nsStringExtension = objc.registerName("nsStringExtension"); -late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc - .registerName("objectWithItemProviderData:typeIdentifier:error:"); -late final _sel_pathComponents = objc.registerName("pathComponents"); -late final _sel_pathExtension = objc.registerName("pathExtension"); -late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( - "promisedItemResourceValuesForKeys:error:", -); -late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); late final _sel_protoMethod = objc.registerName("protoMethod"); -late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( - "readableTypeIdentifiersForItemProvider", -); -late final _sel_resourceDataUsingCache_ = objc.registerName( - "resourceDataUsingCache:", -); late final _sel_sameNameMethod = objc.registerName("sameNameMethod"); -late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); -late final _sel_setResourceData_ = objc.registerName("setResourceData:"); late final _sel_someProperty = objc.registerName("someProperty"); late final _sel_staticMethod = objc.registerName("staticMethod"); late final _sel_staticProtoMethod = objc.registerName("staticProtoMethod"); @@ -1705,9 +564,6 @@ late final _sel_sub_Y_ = objc.registerName("sub:Y:"); late final _sel_supportsSecureCoding = objc.registerName( "supportsSecureCoding", ); -late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( - "writableTypeIdentifiersForItemProvider", -); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m deleted file mode 100644 index f0761e700f..0000000000 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m +++ /dev/null @@ -1,111 +0,0 @@ -#include -#import -#import -#import "category_test.h" -#import "category_test.h" - -#if !__has_feature(objc_arc) -#error "This file must be compiled with ARC enabled" -#endif - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wundeclared-selector" - -typedef struct { - int64_t version; - void* (*newWaiter)(void); - void (*awaitWaiter)(void*); - void* (*currentIsolate)(void); - void (*enterIsolate)(void*); - void (*exitIsolate)(void); - int64_t (*getMainPortId)(void); - bool (*getCurrentThreadOwnsIsolate)(int64_t); - void (*invokeListenerPortBlock)(int64_t port, void*); - void (*invokeBlockingPortBlock)(int64_t port, void*, void*); -} DOBJC_Context; - -id objc_retainBlock(id); - -#define BLOCKING_BLOCK_IMPL(ctx, TYPE, SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ - assert(ctx->version >= 1); \ - void* targetIsolate = ctx->currentIsolate(); \ - int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ - __block __weak TYPE weakSelfBlock = nil; \ - TYPE strongSelfBlock = [SIG { \ - void* currentIsolate = ctx->currentIsolate(); \ - bool mayEnterIsolate = \ - currentIsolate == NULL && \ - ctx->getCurrentThreadOwnsIsolate != NULL && \ - ctx->getCurrentThreadOwnsIsolate(targetPort); \ - if (currentIsolate == targetIsolate || mayEnterIsolate) { \ - if (mayEnterIsolate) { \ - ctx->enterIsolate(targetIsolate); \ - } \ - INVOKE_DIRECT; \ - if (mayEnterIsolate) { \ - ctx->exitIsolate(); \ - } \ - } else { \ - void* waiter = ctx->newWaiter(); \ - TYPE selfRetain = [weakSelfBlock copy]; \ - INVOKE_LISTENER; \ - ctx->awaitWaiter(waiter); \ - (void)selfRetain; \ - } \ - } copy]; \ - weakSelfBlock = strongSelfBlock; \ - return strongSelfBlock; - - -__attribute__((visibility("default"))) -@interface _l3cf7j_BlockArgs_pfv6jd : NSObject -@property (copy) id block; -@property (strong) id arg0; -@property (strong) id arg1; -@end -@implementation _l3cf7j_BlockArgs_pfv6jd -@end - -typedef void (^_ListenerTrampoline)(id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _l3cf7j_wrapListenerBlock_pfv6jd( - int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { - __block __weak _ListenerTrampoline weakSelfBlock = nil; - _ListenerTrampoline strongSelfBlock = [^void(id arg0, id arg1) { - @autoreleasepool { - _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); - } - } copy]; - weakSelfBlock = strongSelfBlock; - return strongSelfBlock; -} - -typedef void (^_BlockingTrampoline)(void * waiter, id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -_ListenerTrampoline _l3cf7j_wrapBlockingBlock_pfv6jd(int64_t port, DOBJC_Context* ctx, - void (*directInvoke)(void*)) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(id arg0, id arg1), { - @autoreleasepool { - _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - directInvoke((__bridge_retained void*)args); - } - }, { - @autoreleasepool { - _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; - args.block = weakSelfBlock; - args.arg0 = arg0; - args.arg1 = arg1; - ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); - } - }); -} -#undef BLOCKING_BLOCK_IMPL - -#pragma clang diagnostic pop diff --git a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart index 6980653a43..d3464955d5 100644 --- a/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/method_filtering_test_bindings.dart @@ -44,35 +44,6 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) _class_MethodFilteringTestInterface, ); - /// alloc - static MethodFilteringTestInterface alloc() { - final $ret = _objc_msgSend_151sglz( - _class_MethodFilteringTestInterface, - _sel_alloc, - ); - return MethodFilteringTestInterface.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static MethodFilteringTestInterface allocWithZone( - ffi.Pointer zone, - ) { - final $ret = _objc_msgSend_1cwp428( - _class_MethodFilteringTestInterface, - _sel_allocWithZone_, - zone, - ); - return MethodFilteringTestInterface.fromPointer( - $ret, - retain: false, - release: true, - ); - } - /// includedStaticMethod static MethodFilteringTestInterface includedStaticMethod() { final $ret = _objc_msgSend_151sglz( @@ -85,22 +56,6 @@ extension type MethodFilteringTestInterface._(objc.ObjCObject object$) release: true, ); } - - /// new - static MethodFilteringTestInterface new$() { - final $ret = _objc_msgSend_151sglz( - _class_MethodFilteringTestInterface, - _sel_new, - ); - return MethodFilteringTestInterface.fromPointer( - $ret, - retain: false, - release: true, - ); - } - - /// Returns a new instance of MethodFilteringTestInterface constructed with the default `new` method. - MethodFilteringTestInterface() : this.as(new$().object$); } extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { @@ -129,25 +84,6 @@ extension MethodFilteringTestInterface$Methods on MethodFilteringTestInterface { final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_includedProperty); return objc.NSObject.fromPointer($ret, retain: true, release: true); } - - /// init - MethodFilteringTestInterface init() { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'MethodFilteringTestInterface.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return MethodFilteringTestInterface.fromPointer( - $ret, - retain: false, - release: true, - ); - } } /// MethodFilteringTestProtocol @@ -426,23 +362,6 @@ final _objc_msgSend_19nvye5 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); final _objc_msgSend_3hao97 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -488,8 +407,6 @@ final _protocol_MethodFilteringTestProtocol = objc.getProtocol( "MethodFilteringTestProtocol", _protocol_MethodFilteringTestProtocol_raw, ); -late final _sel_alloc = objc.registerName("alloc"); -late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); late final _sel_includedInstanceMethod_with_ = objc.registerName( "includedInstanceMethod:with:", @@ -501,8 +418,6 @@ late final _sel_includedProtocolMethod = objc.registerName( late final _sel_includedStaticMethod = objc.registerName( "includedStaticMethod", ); -late final _sel_init = objc.registerName("init"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_new = objc.registerName("new"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/objective_c/ffigen_objc.yaml b/pkgs/objective_c/ffigen_objc.yaml index 3dc2299304..b4d10600f6 100644 --- a/pkgs/objective_c/ffigen_objc.yaml +++ b/pkgs/objective_c/ffigen_objc.yaml @@ -106,7 +106,10 @@ objc-protocols: 'NSObject': 'NSObjectProtocol' objc-categories: include: + - NSArrayCreation - NSDataCreation + - NSDateCreation + - NSDictionaryCreation - NSExtendedArray - NSExtendedData - NSExtendedDate @@ -119,9 +122,13 @@ objc-categories: - NSExtendedMutableSet - NSExtendedOrderedSet - NSExtendedSet + - NSMutableArrayCreation + - NSMutableDictionaryCreation + - NSMutableSetCreation - NSNumberCreation - NSNumberIsFloat - NSNumberIsBool + - NSSetCreation - NSStringExtensionMethods structs: include: diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart b/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart index 5e3700d8b4..f373276bc6 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart @@ -25,6 +25,7 @@ export 'objective_c_bindings_generated.dart' NSAppleEventSendOptions, NSArray, NSArray$Methods, + NSArrayCreation, NSAttributedString, NSAttributedString$Methods, NSAttributedStringEnumerationOptions, @@ -59,9 +60,11 @@ export 'objective_c_bindings_generated.dart' NSDataWritingOptions, NSDate, NSDate$Methods, + NSDateCreation, NSDecodingFailurePolicy, NSDictionary, NSDictionary$Methods, + NSDictionaryCreation, NSEdgeInsets, NSEnumerationOptions, NSEnumerator, @@ -111,6 +114,7 @@ export 'objective_c_bindings_generated.dart' NSMethodSignature$Methods, NSMutableArray, NSMutableArray$Methods, + NSMutableArrayCreation, NSMutableCopying, NSMutableCopying$Builder, NSMutableCopying$Methods, @@ -118,12 +122,14 @@ export 'objective_c_bindings_generated.dart' NSMutableData$Methods, NSMutableDictionary, NSMutableDictionary$Methods, + NSMutableDictionaryCreation, NSMutableIndexSet, NSMutableIndexSet$Methods, NSMutableOrderedSet, NSMutableOrderedSet$Methods, NSMutableSet, NSMutableSet$Methods, + NSMutableSetCreation, NSMutableString, NSMutableString$Methods, NSNotification, @@ -168,6 +174,7 @@ export 'objective_c_bindings_generated.dart' NSSecureCoding$Methods, NSSet, NSSet$Methods, + NSSetCreation, NSSortOptions, NSStream, NSStream$Methods, diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart index 666e50fcaf..f00ed12144 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart @@ -1037,32 +1037,6 @@ extension type DartInputStreamAdapter._(objc.ObjCObject object$) ); } - /// inputStreamWithData: - static DartInputStreamAdapter? inputStreamWithData(NSData data) { - final _$$ref = data.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_DartInputStreamAdapter, - _sel_inputStreamWithData_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : DartInputStreamAdapter.fromPointer($ret, retain: true, release: true); - } - - /// inputStreamWithFileAtPath: - static DartInputStreamAdapter? inputStreamWithFileAtPath(NSString path) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_DartInputStreamAdapter, - _sel_inputStreamWithFileAtPath_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : DartInputStreamAdapter.fromPointer($ret, retain: true, release: true); - } - /// Creates the adapter. /// @param sendPort A port to that is will receive two types of messages: /// -1 => The `NSInputStream` has been closed and the port can be closed. @@ -1080,24 +1054,6 @@ extension type DartInputStreamAdapter._(objc.ObjCObject object$) ); } - /// inputStreamWithURL: - static DartInputStreamAdapter? inputStreamWithURL(NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'DOBJCDartInputStreamAdapter.inputStreamWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_DartInputStreamAdapter, - _sel_inputStreamWithURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : DartInputStreamAdapter.fromPointer($ret, retain: true, release: true); - } - /// new static DartInputStreamAdapter new$() { final $ret = _objc_msgSend_151sglz(_class_DartInputStreamAdapter, _sel_new); @@ -1159,24 +1115,6 @@ extension DartInputStreamAdapter$Methods on DartInputStreamAdapter { ); } - /// initWithFileAtPath: - DartInputStreamAdapter? initWithFileAtPath(NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithFileAtPath_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : DartInputStreamAdapter.fromPointer( - $ret, - retain: false, - release: true, - ); - } - /// initWithURL: DartInputStreamAdapter? initWithURL(NSURL url) { final _$$ref = object$.ref; @@ -1850,6 +1788,60 @@ extension NSArray$Methods on NSArray { } } +/// NSArrayCreation +extension NSArrayCreation on NSArray { + /// initWithContentsOfURL:error: + NSArray? initWithContentsOfURL(NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSArray.initWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSArray.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// arrayWithContentsOfURL:error: + static NSArray? arrayWithContentsOfURL(NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSArray.arrayWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _class_NSArray, + _sel_arrayWithContentsOfURL_error_, + _$$ref.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSArray.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + /// NSAttributedString extension type NSAttributedString._(objc.ObjCObject object$) implements @@ -1907,100 +1899,6 @@ extension type NSAttributedString._(objc.ObjCObject object$) return NSAttributedString.fromPointer($ret, retain: false, release: true); } - /// localizedAttributedStringWithFormat: - /// - /// iOS: introduced 15.0.0 - /// macOS: introduced 12.0.0 - static NSAttributedString localizedAttributedStringWithFormat( - NSAttributedString format, - ) { - final _$$ref = format.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_, - _$$ref.pointer, - ); - return NSAttributedString.fromPointer($ret, retain: true, release: true); - } - - /// localizedAttributedStringWithFormat:context: - /// - /// iOS: introduced 17.0.0 - /// macOS: introduced 14.0.0 - static NSAttributedString localizedAttributedStringWithFormat$1( - NSAttributedString format, { - required NSDictionary context, - }) { - final _$$ref = format.ref; - final _$$ref$1 = context.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:context:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_context_, - _$$ref.pointer, - _$$ref$1.pointer, - ); - return NSAttributedString.fromPointer($ret, retain: true, release: true); - } - - /// localizedAttributedStringWithFormat:options: - /// - /// iOS: introduced 15.0.0 - /// macOS: introduced 12.0.0 - static NSAttributedString localizedAttributedStringWithFormat$2( - NSAttributedString format, { - required DartNSUInteger options, - }) { - final _$$ref = format.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:options:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_s058d2( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_options_, - _$$ref.pointer, - options, - ); - return NSAttributedString.fromPointer($ret, retain: true, release: true); - } - - /// localizedAttributedStringWithFormat:options:context: - /// - /// iOS: introduced 17.0.0 - /// macOS: introduced 14.0.0 - static NSAttributedString localizedAttributedStringWithFormat$3( - NSAttributedString format, { - required DartNSUInteger options, - required NSDictionary context, - }) { - final _$$ref = format.ref; - final _$$ref$1 = context.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.localizedAttributedStringWithFormat:options:context:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_187k8ck( - _class_NSAttributedString, - _sel_localizedAttributedStringWithFormat_options_context_, - _$$ref.pointer, - options, - _$$ref$1.pointer, - ); - return NSAttributedString.fromPointer($ret, retain: true, release: true); - } - /// new static NSAttributedString new$() { final $ret = _objc_msgSend_151sglz(_class_NSAttributedString, _sel_new); @@ -2066,23 +1964,6 @@ extension NSAttributedString$Methods on NSAttributedString { return NSAttributedString.fromPointer($ret, retain: false, release: true); } - /// initWithAttributedString: - NSAttributedString initWithAttributedString(NSAttributedString attrStr) { - final _$$ref = object$.ref; - final _$$ref$1 = attrStr.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithAttributedString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithAttributedString_, - _$$ref$1.pointer, - ); - return NSAttributedString.fromPointer($ret, retain: false, release: true); - } - /// initWithCoder: NSAttributedString? initWithCoder(NSCoder coder) { final _$$ref = object$.ref; @@ -2097,213 +1978,6 @@ extension NSAttributedString$Methods on NSAttributedString { : NSAttributedString.fromPointer($ret, retain: false, release: true); } - /// initWithContentsOfMarkdownFileAtURL:options:baseURL:error: - /// - /// iOS: introduced 15.0.0 - /// macOS: introduced 12.0.0 - NSAttributedString? initWithContentsOfMarkdownFileAtURL( - NSURL markdownFile, { - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markdownFile.ref; - final _$$ref$2 = options?.ref; - final _$$ref$3 = baseURL?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithContentsOfMarkdownFileAtURL:options:baseURL:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1k0ezzm( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSAttributedString.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithFormat:options:locale: - /// - /// iOS: introduced 15.0.0 - /// macOS: introduced 12.0.0 - NSAttributedString initWithFormat( - NSAttributedString format, { - required DartNSUInteger options, - NSLocale? locale, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - final _$$ref$2 = locale?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithFormat:options:locale:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $ret = _objc_msgSend_187k8ck( - _$$ref.retainAndReturnPointer(), - _sel_initWithFormat_options_locale_, - _$$ref$1.pointer, - options, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return NSAttributedString.fromPointer($ret, retain: false, release: true); - } - - /// initWithFormat:options:locale:context: - /// - /// iOS: introduced 17.0.0 - /// macOS: introduced 14.0.0 - NSAttributedString initWithFormat$1( - NSAttributedString format, { - required DartNSUInteger options, - NSLocale? locale, - required NSDictionary context, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = format.ref; - final _$$ref$2 = locale?.ref; - final _$$ref$3 = context.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithFormat:options:locale:context:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final $ret = _objc_msgSend_3fn4ca( - _$$ref.retainAndReturnPointer(), - _sel_initWithFormat_options_locale_context_, - _$$ref$1.pointer, - options, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3.pointer, - ); - return NSAttributedString.fromPointer($ret, retain: false, release: true); - } - - /// initWithMarkdown:options:baseURL:error: - /// - /// iOS: introduced 15.0.0 - /// macOS: introduced 12.0.0 - NSAttributedString? initWithMarkdown( - NSData markdown, { - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markdown.ref; - final _$$ref$2 = options?.ref; - final _$$ref$3 = baseURL?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithMarkdown:options:baseURL:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1k0ezzm( - _$$ref.retainAndReturnPointer(), - _sel_initWithMarkdown_options_baseURL_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSAttributedString.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithMarkdownString:options:baseURL:error: - /// - /// iOS: introduced 15.0.0 - /// macOS: introduced 12.0.0 - NSAttributedString? initWithMarkdownString( - NSString markdownString, { - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = markdownString.ref; - final _$$ref$2 = options?.ref; - final _$$ref$3 = baseURL?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithMarkdownString:options:baseURL:error:', - iOS: (false, (15, 0, 0)), - macOS: (false, (12, 0, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1k0ezzm( - _$$ref.retainAndReturnPointer(), - _sel_initWithMarkdownString_options_baseURL_error_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - _$$ref$3?.pointer ?? ffi.nullptr, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSAttributedString.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// initWithString: - NSAttributedString initWithString(NSString str) { - final _$$ref = object$.ref; - final _$$ref$1 = str.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithString:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithString_, - _$$ref$1.pointer, - ); - return NSAttributedString.fromPointer($ret, retain: false, release: true); - } - - /// initWithString:attributes: - NSAttributedString initWithString$1( - NSString str, { - NSDictionary? attributes, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = str.ref; - final _$$ref$2 = attributes?.ref; - objc.checkOsVersionInternal( - 'NSAttributedString.initWithString:attributes:', - iOS: (false, (3, 2, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_15qeuct( - _$$ref.retainAndReturnPointer(), - _sel_initWithString_attributes_, - _$$ref$1.pointer, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return NSAttributedString.fromPointer($ret, retain: false, release: true); - } - /// string NSString get string { final _$$ref = object$.ref; @@ -2379,7 +2053,8 @@ enum NSAttributedStringMarkdownParsingFailurePolicy { /// macOS: introduced 12.0.0 extension type NSAttributedStringMarkdownParsingOptions._( objc.ObjCObject object$ -) implements objc.ObjCObject, NSObject, NSCopying { +) + implements objc.ObjCObject, NSObject, NSCopying { /// Constructs a [NSAttributedStringMarkdownParsingOptions] that points to the same underlying object as [other]. NSAttributedStringMarkdownParsingOptions.as(objc.ObjCObject other) : object$ = other { @@ -4632,62 +4307,6 @@ extension NSData$Methods on NSData { return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_bytes); } - /// compressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSData? compressedDataUsingAlgorithm(NSDataCompressionAlgorithm algorithm) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.compressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1vnlaqg( - _$$ref.pointer, - _sel_compressedDataUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSData.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decompressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSData? decompressedDataUsingAlgorithm(NSDataCompressionAlgorithm algorithm) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSData.decompressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1vnlaqg( - _$$ref.pointer, - _sel_decompressedDataUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSData.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - /// encodeWithCoder: void encodeWithCoder(NSCoder coder) { final _$$ref = object$.ref; @@ -4714,52 +4333,6 @@ extension NSData$Methods on NSData { return NSData.fromPointer($ret, retain: false, release: true); } - /// initWithBase64EncodedData:options: - NSData? initWithBase64EncodedData( - NSData base64Data, { - required DartNSUInteger options, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = base64Data.ref; - objc.checkOsVersionInternal( - 'NSData.initWithBase64EncodedData:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_7kpg7m( - _$$ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedData_options_, - _$$ref$1.pointer, - options, - ); - return $ret.address == 0 - ? null - : NSData.fromPointer($ret, retain: false, release: true); - } - - /// initWithBase64EncodedString:options: - NSData? initWithBase64EncodedString( - NSString base64String, { - required DartNSUInteger options, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = base64String.ref; - objc.checkOsVersionInternal( - 'NSData.initWithBase64EncodedString:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_7kpg7m( - _$$ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedString_options_, - _$$ref$1.pointer, - options, - ); - return $ret.address == 0 - ? null - : NSData.fromPointer($ret, retain: false, release: true); - } - /// initWithBytes:length: NSData initWithBytes( ffi.Pointer bytes, { @@ -5224,6 +4797,33 @@ extension NSDate$Methods on NSDate { } } +/// NSDateCreation +extension NSDateCreation on NSDate { + /// distantFuture + static NSDate getDistantFuture() { + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantFuture); + return NSDate.fromPointer($ret, retain: true, release: true); + } + + /// distantPast + static NSDate getDistantPast() { + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantPast); + return NSDate.fromPointer($ret, retain: true, release: true); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + static NSDate getNow() { + objc.checkOsVersionInternal( + 'NSDate.now', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_now); + return NSDate.fromPointer($ret, retain: true, release: true); + } +} + enum NSDecodingFailurePolicy { NSDecodingFailurePolicyRaiseException(0), NSDecodingFailurePolicySetErrorAndReturn(1); @@ -5546,6 +5146,60 @@ extension NSDictionary$Methods on NSDictionary { } } +/// NSDictionaryCreation +extension NSDictionaryCreation on NSDictionary { + /// initWithContentsOfURL:error: + NSDictionary? initWithContentsOfURL(NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.initWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSDictionary.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// dictionaryWithContentsOfURL:error: + static NSDictionary? dictionaryWithContentsOfURL(NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSDictionary.dictionaryWithContentsOfURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _class_NSDictionary, + _sel_dictionaryWithContentsOfURL_error_, + _$$ref.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSDictionary.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + final class NSEdgeInsets extends ffi.Struct { @ffi.Double() external double top; @@ -9789,50 +9443,6 @@ extension type NSInputStream._(objc.ObjCObject object$) return NSInputStream.fromPointer($ret, retain: false, release: true); } - /// inputStreamWithData: - static NSInputStream? inputStreamWithData(NSData data) { - final _$$ref = data.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithData_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// inputStreamWithFileAtPath: - static NSInputStream? inputStreamWithFileAtPath(NSString path) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithFileAtPath_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : NSInputStream.fromPointer($ret, retain: true, release: true); - } - - /// inputStreamWithURL: - static NSInputStream? inputStreamWithURL(NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSInputStream.inputStreamWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : NSInputStream.fromPointer($ret, retain: true, release: true); - } - /// new static NSInputStream new$() { final $ret = _objc_msgSend_151sglz(_class_NSInputStream, _sel_new); @@ -9891,20 +9501,6 @@ extension NSInputStream$Methods on NSInputStream { return NSInputStream.fromPointer($ret, retain: false, release: true); } - /// initWithFileAtPath: - NSInputStream? initWithFileAtPath(NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithFileAtPath_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : NSInputStream.fromPointer($ret, retain: false, release: true); - } - /// initWithURL: NSInputStream? initWithURL(NSURL url) { final _$$ref = object$.ref; @@ -11095,22 +10691,6 @@ extension type NSLocale._(objc.ObjCObject object$) return NSLocale.fromPointer($ret, retain: false, release: true); } - /// localeWithLocaleIdentifier: - static NSLocale localeWithLocaleIdentifier(NSString ident) { - final _$$ref = ident.ref; - objc.checkOsVersionInternal( - 'NSLocale.localeWithLocaleIdentifier:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSLocale, - _sel_localeWithLocaleIdentifier_, - _$$ref.pointer, - ); - return NSLocale.fromPointer($ret, retain: true, release: true); - } - /// new static NSLocale new$() { final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_new); @@ -11638,6 +11218,63 @@ extension NSMutableArray$Methods on NSMutableArray { } } +/// NSMutableArrayCreation +extension NSMutableArrayCreation on NSMutableArray { + /// initWithContentsOfFile: + NSMutableArray? initWithContentsOfFile(NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : NSMutableArray.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + NSMutableArray? initWithContentsOfURL(NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : NSMutableArray.fromPointer($ret, retain: false, release: true); + } + + /// arrayWithContentsOfFile: + static NSMutableArray? arrayWithContentsOfFile(NSString path) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : NSMutableArray.fromPointer($ret, retain: true, release: true); + } + + /// arrayWithContentsOfURL: + static NSMutableArray? arrayWithContentsOfURL(NSURL url) { + final _$$ref = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : NSMutableArray.fromPointer($ret, retain: true, release: true); + } +} + /// NSMutableCopying extension type NSMutableCopying._(objc.ObjCProtocol object$) implements objc.ObjCProtocol { @@ -11835,18 +11472,6 @@ extension type NSMutableData._(objc.ObjCObject object$) return NSMutableData.fromPointer($ret, retain: true, release: true); } - /// dataWithCapacity: - static NSMutableData? dataWithCapacity(DartNSUInteger aNumItems) { - final $ret = _objc_msgSend_14hpxwa( - _class_NSMutableData, - _sel_dataWithCapacity_, - aNumItems, - ); - return $ret.address == 0 - ? null - : NSMutableData.fromPointer($ret, retain: true, release: true); - } - /// dataWithContentsOfFile: static NSMutableData? dataWithContentsOfFile(NSString path) { final _$$ref = path.ref; @@ -11922,18 +11547,6 @@ extension type NSMutableData._(objc.ObjCObject object$) return NSMutableData.fromPointer($ret, retain: true, release: true); } - /// dataWithLength: - static NSMutableData? dataWithLength(DartNSUInteger length) { - final $ret = _objc_msgSend_14hpxwa( - _class_NSMutableData, - _sel_dataWithLength_, - length, - ); - return $ret.address == 0 - ? null - : NSMutableData.fromPointer($ret, retain: true, release: true); - } - /// new static NSMutableData new$() { final $ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_new); @@ -11953,66 +11566,6 @@ extension type NSMutableData._(objc.ObjCObject object$) } extension NSMutableData$Methods on NSMutableData { - /// compressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSMutableData? compressedDataUsingAlgorithm( - NSDataCompressionAlgorithm algorithm, - ) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableData.compressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1vnlaqg( - _$$ref.pointer, - _sel_compressedDataUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSMutableData.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// decompressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSMutableData? decompressedDataUsingAlgorithm( - NSDataCompressionAlgorithm algorithm, - ) { - final _$$ref = object$.ref; - objc.checkOsVersionInternal( - 'NSMutableData.decompressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1vnlaqg( - _$$ref.pointer, - _sel_decompressedDataUsingAlgorithm_error_, - algorithm.value, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSMutableData.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - /// init NSMutableData init() { final _$$ref = object$.ref; @@ -12028,52 +11581,6 @@ extension NSMutableData$Methods on NSMutableData { return NSMutableData.fromPointer($ret, retain: false, release: true); } - /// initWithBase64EncodedData:options: - NSMutableData? initWithBase64EncodedData( - NSData base64Data, { - required DartNSUInteger options, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = base64Data.ref; - objc.checkOsVersionInternal( - 'NSMutableData.initWithBase64EncodedData:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_7kpg7m( - _$$ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedData_options_, - _$$ref$1.pointer, - options, - ); - return $ret.address == 0 - ? null - : NSMutableData.fromPointer($ret, retain: false, release: true); - } - - /// initWithBase64EncodedString:options: - NSMutableData? initWithBase64EncodedString( - NSString base64String, { - required DartNSUInteger options, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = base64String.ref; - objc.checkOsVersionInternal( - 'NSMutableData.initWithBase64EncodedString:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final $ret = _objc_msgSend_7kpg7m( - _$$ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedString_options_, - _$$ref$1.pointer, - options, - ); - return $ret.address == 0 - ? null - : NSMutableData.fromPointer($ret, retain: false, release: true); - } - /// initWithBytes:length: NSMutableData initWithBytes( ffi.Pointer bytes, { @@ -12145,19 +11652,6 @@ extension NSMutableData$Methods on NSMutableData { return NSMutableData.fromPointer($ret, retain: false, release: true); } - /// initWithCapacity: - NSMutableData? initWithCapacity(DartNSUInteger capacity) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_14hpxwa( - _$$ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - capacity, - ); - return $ret.address == 0 - ? null - : NSMutableData.fromPointer($ret, retain: false, release: true); - } - /// initWithCoder: NSMutableData? initWithCoder(NSCoder coder) { final _$$ref = object$.ref; @@ -12252,19 +11746,6 @@ extension NSMutableData$Methods on NSMutableData { return NSMutableData.fromPointer($ret, retain: false, release: true); } - /// initWithLength: - NSMutableData? initWithLength(DartNSUInteger length) { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_14hpxwa( - _$$ref.retainAndReturnPointer(), - _sel_initWithLength_, - length, - ); - return $ret.address == 0 - ? null - : NSMutableData.fromPointer($ret, retain: false, release: true); - } - /// length DartNSUInteger get length { final _$$ref = object$.ref; @@ -12590,6 +12071,63 @@ extension NSMutableDictionary$Methods on NSMutableDictionary { } } +/// NSMutableDictionaryCreation +extension NSMutableDictionaryCreation on NSMutableDictionary { + /// initWithContentsOfFile: + NSMutableDictionary? initWithContentsOfFile(NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : NSMutableDictionary.fromPointer($ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + NSMutableDictionary? initWithContentsOfURL(NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : NSMutableDictionary.fromPointer($ret, retain: false, release: true); + } + + /// dictionaryWithContentsOfFile: + static NSMutableDictionary? dictionaryWithContentsOfFile(NSString path) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithContentsOfFile_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : NSMutableDictionary.fromPointer($ret, retain: true, release: true); + } + + /// dictionaryWithContentsOfURL: + static NSMutableDictionary? dictionaryWithContentsOfURL(NSURL url) { + final _$$ref = url.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithContentsOfURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : NSMutableDictionary.fromPointer($ret, retain: true, release: true); + } +} + /// NSMutableIndexSet extension type NSMutableIndexSet._(objc.ObjCObject object$) implements objc.ObjCObject, NSIndexSet { @@ -12854,198 +12392,6 @@ extension type NSMutableOrderedSet._(objc.ObjCObject object$) return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); } - /// orderedSet - static NSMutableOrderedSet orderedSet() { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz( - _class_NSMutableOrderedSet, - _sel_orderedSet, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithArray: - static NSMutableOrderedSet orderedSetWithArray(NSArray array) { - final _$$ref = array.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithArray_, - _$$ref.pointer, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithArray:range:copyItems: - static NSMutableOrderedSet orderedSetWithArray$1( - NSArray array, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = array.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _class_NSMutableOrderedSet, - _sel_orderedSetWithArray_range_copyItems_, - _$$ref.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithCapacity: - static NSMutableOrderedSet orderedSetWithCapacity(DartNSUInteger numItems) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithCapacity:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_14hpxwa( - _class_NSMutableOrderedSet, - _sel_orderedSetWithCapacity_, - numItems, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObject: - static NSMutableOrderedSet orderedSetWithObject(objc.ObjCObject object) { - final _$$ref = object.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithObject_, - _$$ref.pointer, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObjects: - static NSMutableOrderedSet orderedSetWithObjects(objc.ObjCObject firstObj) { - final _$$ref = firstObj.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithObjects_, - _$$ref.pointer, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObjects:count: - static NSMutableOrderedSet orderedSetWithObjects$1( - ffi.Pointer> objects, { - required DartNSUInteger count, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zmbtbd( - _class_NSMutableOrderedSet, - _sel_orderedSetWithObjects_count_, - objects, - count, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet: - static NSMutableOrderedSet orderedSetWithOrderedSet(NSOrderedSet set) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithOrderedSet_, - _$$ref.pointer, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet:range:copyItems: - static NSMutableOrderedSet orderedSetWithOrderedSet$1( - NSOrderedSet set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _class_NSMutableOrderedSet, - _sel_orderedSetWithOrderedSet_range_copyItems_, - _$$ref.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithSet: - static NSMutableOrderedSet orderedSetWithSet(NSSet set) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithSet_, - _$$ref.pointer, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithSet:copyItems: - static NSMutableOrderedSet orderedSetWithSet$1( - NSSet set, { - required bool copyItems, - }) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _class_NSMutableOrderedSet, - _sel_orderedSetWithSet_copyItems_, - _$$ref.pointer, - copyItems, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); - } - /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( @@ -13074,64 +12420,6 @@ extension NSMutableOrderedSet$Methods on NSMutableOrderedSet { return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); } - /// initWithArray: - NSMutableOrderedSet initWithArray(NSArray array) { - final _$$ref = object$.ref; - final _$$ref$1 = array.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_, - _$$ref$1.pointer, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - NSMutableOrderedSet initWithArray$1(NSArray set, {required bool copyItems}) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithArray:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithArray:range:copyItems: - NSMutableOrderedSet initWithArray$2( - NSArray set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_range_copyItems_, - _$$ref$1.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); - } - /// initWithCapacity: NSMutableOrderedSet initWithCapacity(DartNSUInteger numItems) { final _$$ref = object$.ref; @@ -13162,42 +12450,8 @@ extension NSMutableOrderedSet$Methods on NSMutableOrderedSet { : NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); } - /// initWithObject: - NSMutableOrderedSet initWithObject(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithObject_, - _$$ref$1.pointer, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithObjects: - NSMutableOrderedSet initWithObjects(objc.ObjCObject firstObj) { - final _$$ref = object$.ref; - final _$$ref$1 = firstObj.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjects_, - _$$ref$1.pointer, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); - } - /// initWithObjects:count: - NSMutableOrderedSet initWithObjects$1( + NSMutableOrderedSet initWithObjects( ffi.Pointer> objects, { required DartNSUInteger count, }) { @@ -13216,102 +12470,6 @@ extension NSMutableOrderedSet$Methods on NSMutableOrderedSet { return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); } - /// initWithOrderedSet: - NSMutableOrderedSet initWithOrderedSet(NSOrderedSet set) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_, - _$$ref$1.pointer, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithOrderedSet:copyItems: - NSMutableOrderedSet initWithOrderedSet$1( - NSOrderedSet set, { - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithOrderedSet:range:copyItems: - NSMutableOrderedSet initWithOrderedSet$2( - NSOrderedSet set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_range_copyItems_, - _$$ref$1.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet: - NSMutableOrderedSet initWithSet(NSSet set) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_, - _$$ref$1.pointer, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - NSMutableOrderedSet initWithSet$1(NSSet set, {required bool copyItems}) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); - } - /// insertObject:atIndex: void insertObject(objc.ObjCObject object, {required DartNSUInteger atIndex}) { final _$$ref = object$.ref; @@ -13619,6 +12777,9 @@ extension NSMutableSet$Methods on NSMutableSet { } } +/// NSMutableSetCreation +extension NSMutableSetCreation on NSMutableSet {} + /// NSMutableString extension type NSMutableString._(objc.ObjCObject object$) implements objc.ObjCObject, NSString { @@ -14384,41 +13545,6 @@ extension type NSNotification._(objc.ObjCObject object$) return NSNotification.fromPointer($ret, retain: false, release: true); } - /// notificationWithName:object: - static NSNotification notificationWithName( - NSString aName, { - objc.ObjCObject? object, - }) { - final _$$ref = aName.ref; - final _$$ref$1 = object?.ref; - final $ret = _objc_msgSend_15qeuct( - _class_NSNotification, - _sel_notificationWithName_object_, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - ); - return NSNotification.fromPointer($ret, retain: true, release: true); - } - - /// notificationWithName:object:userInfo: - static NSNotification notificationWithName$1( - NSString aName, { - objc.ObjCObject? object, - NSDictionary? userInfo, - }) { - final _$$ref = aName.ref; - final _$$ref$1 = object?.ref; - final _$$ref$2 = userInfo?.ref; - final $ret = _objc_msgSend_11spmsz( - _class_NSNotification, - _sel_notificationWithName_object_userInfo_, - _$$ref.pointer, - _$$ref$1?.pointer ?? ffi.nullptr, - _$$ref$2?.pointer ?? ffi.nullptr, - ); - return NSNotification.fromPointer($ret, retain: true, release: true); - } - /// Returns a new instance of NSNotification constructed with the default `new` method. NSNotification() : this.as(new$().object$); } @@ -14435,16 +13561,6 @@ extension NSNotification$Methods on NSNotification { ); } - /// init - NSNotification init() { - final _$$ref = object$.ref; - final $ret = _objc_msgSend_151sglz( - _$$ref.retainAndReturnPointer(), - _sel_init, - ); - return NSNotification.fromPointer($ret, retain: false, release: true); - } - /// initWithCoder: NSNotification? initWithCoder(NSCoder coder) { final _$$ref = object$.ref; @@ -17610,180 +16726,6 @@ extension type NSOrderedSet._(objc.ObjCObject object$) return NSOrderedSet.fromPointer($ret, retain: false, release: true); } - /// orderedSet - static NSOrderedSet orderedSet() { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); - return NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithArray: - static NSOrderedSet orderedSetWithArray(NSArray array) { - final _$$ref = array.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithArray_, - _$$ref.pointer, - ); - return NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithArray:range:copyItems: - static NSOrderedSet orderedSetWithArray$1( - NSArray array, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = array.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _class_NSOrderedSet, - _sel_orderedSetWithArray_range_copyItems_, - _$$ref.pointer, - range, - copyItems, - ); - return NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObject: - static NSOrderedSet orderedSetWithObject(objc.ObjCObject object) { - final _$$ref = object.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithObject_, - _$$ref.pointer, - ); - return NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObjects: - static NSOrderedSet orderedSetWithObjects(objc.ObjCObject firstObj) { - final _$$ref = firstObj.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithObjects_, - _$$ref.pointer, - ); - return NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithObjects:count: - static NSOrderedSet orderedSetWithObjects$1( - ffi.Pointer> objects, { - required DartNSUInteger count, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_zmbtbd( - _class_NSOrderedSet, - _sel_orderedSetWithObjects_count_, - objects, - count, - ); - return NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet: - static NSOrderedSet orderedSetWithOrderedSet(NSOrderedSet set) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_, - _$$ref.pointer, - ); - return NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet:range:copyItems: - static NSOrderedSet orderedSetWithOrderedSet$1( - NSOrderedSet set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_range_copyItems_, - _$$ref.pointer, - range, - copyItems, - ); - return NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithSet: - static NSOrderedSet orderedSetWithSet(NSSet set) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithSet_, - _$$ref.pointer, - ); - return NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - - /// orderedSetWithSet:copyItems: - static NSOrderedSet orderedSetWithSet$1( - NSSet set, { - required bool copyItems, - }) { - final _$$ref = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _class_NSOrderedSet, - _sel_orderedSetWithSet_copyItems_, - _$$ref.pointer, - copyItems, - ); - return NSOrderedSet.fromPointer($ret, retain: true, release: true); - } - /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635(_class_NSOrderedSet, _sel_supportsSecureCoding); @@ -17863,64 +16805,6 @@ extension NSOrderedSet$Methods on NSOrderedSet { return NSOrderedSet.fromPointer($ret, retain: false, release: true); } - /// initWithArray: - NSOrderedSet initWithArray(NSArray array) { - final _$$ref = object$.ref; - final _$$ref$1 = array.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_, - _$$ref$1.pointer, - ); - return NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - NSOrderedSet initWithArray$1(NSArray set, {required bool copyItems}) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithArray:range:copyItems: - NSOrderedSet initWithArray$2( - NSArray set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _$$ref.retainAndReturnPointer(), - _sel_initWithArray_range_copyItems_, - _$$ref$1.pointer, - range, - copyItems, - ); - return NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - /// initWithCoder: NSOrderedSet? initWithCoder(NSCoder coder) { final _$$ref = object$.ref; @@ -17935,42 +16819,8 @@ extension NSOrderedSet$Methods on NSOrderedSet { : NSOrderedSet.fromPointer($ret, retain: false, release: true); } - /// initWithObject: - NSOrderedSet initWithObject(objc.ObjCObject object) { - final _$$ref = object$.ref; - final _$$ref$1 = object.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithObject_, - _$$ref$1.pointer, - ); - return NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithObjects: - NSOrderedSet initWithObjects(objc.ObjCObject firstObj) { - final _$$ref = object$.ref; - final _$$ref$1 = firstObj.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithObjects_, - _$$ref$1.pointer, - ); - return NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - /// initWithObjects:count: - NSOrderedSet initWithObjects$1( + NSOrderedSet initWithObjects( ffi.Pointer> objects, { required DartNSUInteger count, }) { @@ -17989,102 +16839,6 @@ extension NSOrderedSet$Methods on NSOrderedSet { return NSOrderedSet.fromPointer($ret, retain: false, release: true); } - /// initWithOrderedSet: - NSOrderedSet initWithOrderedSet(NSOrderedSet set) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_, - _$$ref$1.pointer, - ); - return NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithOrderedSet:copyItems: - NSOrderedSet initWithOrderedSet$1( - NSOrderedSet set, { - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithOrderedSet:range:copyItems: - NSOrderedSet initWithOrderedSet$2( - NSOrderedSet set, { - required NSRange range, - required bool copyItems, - }) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_w9bq5x( - _$$ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_range_copyItems_, - _$$ref$1.pointer, - range, - copyItems, - ); - return NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet: - NSOrderedSet initWithSet(NSSet set) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_, - _$$ref$1.pointer, - ); - return NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - NSOrderedSet initWithSet$1(NSSet set, {required bool copyItems}) { - final _$$ref = object$.ref; - final _$$ref$1 = set.ref; - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - _$$ref$1.pointer, - copyItems, - ); - return NSOrderedSet.fromPointer($ret, retain: false, release: true); - } - /// objectAtIndex: objc.ObjCObject objectAtIndex(DartNSUInteger idx) { final _$$ref = object$.ref; @@ -18150,66 +16904,6 @@ extension type NSOutputStream._(objc.ObjCObject object$) return NSOutputStream.fromPointer($ret, retain: false, release: true); } - /// outputStreamToBuffer:capacity: - static NSOutputStream outputStreamToBuffer( - ffi.Pointer buffer, { - required DartNSUInteger capacity, - }) { - final $ret = _objc_msgSend_158ju31( - _class_NSOutputStream, - _sel_outputStreamToBuffer_capacity_, - buffer, - capacity, - ); - return NSOutputStream.fromPointer($ret, retain: true, release: true); - } - - /// outputStreamToFileAtPath:append: - static NSOutputStream outputStreamToFileAtPath( - NSString path, { - required bool append, - }) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_17amj0z( - _class_NSOutputStream, - _sel_outputStreamToFileAtPath_append_, - _$$ref.pointer, - append, - ); - return NSOutputStream.fromPointer($ret, retain: true, release: true); - } - - /// outputStreamToMemory - static NSOutputStream outputStreamToMemory() { - final $ret = _objc_msgSend_151sglz( - _class_NSOutputStream, - _sel_outputStreamToMemory, - ); - return NSOutputStream.fromPointer($ret, retain: true, release: true); - } - - /// outputStreamWithURL:append: - static NSOutputStream? outputStreamWithURL( - NSURL url, { - required bool append, - }) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSOutputStream.outputStreamWithURL:append:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final $ret = _objc_msgSend_17amj0z( - _class_NSOutputStream, - _sel_outputStreamWithURL_append_, - _$$ref.pointer, - append, - ); - return $ret.address == 0 - ? null - : NSOutputStream.fromPointer($ret, retain: true, release: true); - } - /// Returns a new instance of NSOutputStream constructed with the default `new` method. NSOutputStream() : this.as(new$().object$); } @@ -18251,21 +16945,6 @@ extension NSOutputStream$Methods on NSOutputStream { return NSOutputStream.fromPointer($ret, retain: false, release: true); } - /// initToFileAtPath:append: - NSOutputStream? initToFileAtPath(NSString path, {required bool append}) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_17amj0z( - _$$ref.retainAndReturnPointer(), - _sel_initToFileAtPath_append_, - _$$ref$1.pointer, - append, - ); - return $ret.address == 0 - ? null - : NSOutputStream.fromPointer($ret, retain: false, release: true); - } - /// initToMemory NSOutputStream initToMemory() { final _$$ref = object$.ref; @@ -20470,6 +19149,9 @@ extension NSSet$Methods on NSSet { } } +/// NSSetCreation +extension NSSetCreation on NSSet {} + sealed class NSSortOptions { static const NSSortConcurrent = 1; static const NSSortStable = 16; @@ -37124,27 +35806,6 @@ final _objc_msgSend_182fzonStret = objc.msgSendStretPointer ffi.Pointer, ) >(); -final _objc_msgSend_187k8ck = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); final _objc_msgSend_1895u4n = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -38715,25 +37376,6 @@ final _objc_msgSend_1vd1c5m = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_1vnlaqg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); final _objc_msgSend_1vxoo9h = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -39019,29 +37661,6 @@ final _objc_msgSend_3ctkt6 = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_3fn4ca = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ) - >(); final _objc_msgSend_3l8zum = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -39241,25 +37860,6 @@ final _objc_msgSend_7g3u2y = objc.msgSendPointer int, ) >(); -final _objc_msgSend_7kpg7m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_7uautw = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -40632,25 +39232,6 @@ final _objc_msgSend_rc4ypv = objc.msgSendPointer ffi.Pointer, ) >(); -final _objc_msgSend_s058d2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSUInteger, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); final _objc_msgSend_s92gih = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -40854,27 +39435,6 @@ final _objc_msgSend_vbymrb = objc.msgSendPointer int, ) >(); -final _objc_msgSend_w9bq5x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - bool, - ) - >(); final _objc_msgSend_xe84da = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -41240,6 +39800,15 @@ late final _sel_arrayByAddingObjectsFromArray_ = objc.registerName( ); late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); +late final _sel_arrayWithContentsOfFile_ = objc.registerName( + "arrayWithContentsOfFile:", +); +late final _sel_arrayWithContentsOfURL_ = objc.registerName( + "arrayWithContentsOfURL:", +); +late final _sel_arrayWithContentsOfURL_error_ = objc.registerName( + "arrayWithContentsOfURL:error:", +); late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); late final _sel_arrayWithObjects_count_ = objc.registerName( @@ -41349,9 +39918,6 @@ late final _sel_componentsSeparatedByCharactersInSet_ = objc.registerName( late final _sel_componentsSeparatedByString_ = objc.registerName( "componentsSeparatedByString:", ); -late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( - "compressedDataUsingAlgorithm:error:", -); late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); late final _sel_containsIndex_ = objc.registerName("containsIndex:"); late final _sel_containsIndexesInRange_ = objc.registerName( @@ -41388,7 +39954,6 @@ late final _sel_dataWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( late final _sel_dataWithBytes_length_ = objc.registerName( "dataWithBytes:length:", ); -late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); late final _sel_dataWithContentsOfFile_ = objc.registerName( "dataWithContentsOfFile:", ); @@ -41402,7 +39967,6 @@ late final _sel_dataWithContentsOfURL_options_error_ = objc.registerName( "dataWithContentsOfURL:options:error:", ); late final _sel_dataWithData_ = objc.registerName("dataWithData:"); -late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); late final _sel_date = objc.registerName("date"); late final _sel_dateByAddingTimeInterval_ = objc.registerName( "dateByAddingTimeInterval:", @@ -41438,9 +40002,6 @@ late final _sel_decomposedStringWithCanonicalMapping = objc.registerName( late final _sel_decomposedStringWithCompatibilityMapping = objc.registerName( "decomposedStringWithCompatibilityMapping", ); -late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( - "decompressedDataUsingAlgorithm:error:", -); late final _sel_defaultCStringEncoding = objc.registerName( "defaultCStringEncoding", ); @@ -41462,6 +40023,15 @@ late final _sel_dictionary = objc.registerName("dictionary"); late final _sel_dictionaryWithCapacity_ = objc.registerName( "dictionaryWithCapacity:", ); +late final _sel_dictionaryWithContentsOfFile_ = objc.registerName( + "dictionaryWithContentsOfFile:", +); +late final _sel_dictionaryWithContentsOfURL_ = objc.registerName( + "dictionaryWithContentsOfURL:", +); +late final _sel_dictionaryWithContentsOfURL_error_ = objc.registerName( + "dictionaryWithContentsOfURL:error:", +); late final _sel_dictionaryWithDictionary_ = objc.registerName( "dictionaryWithDictionary:", ); @@ -41486,6 +40056,8 @@ late final _sel_discreteProgressWithTotalUnitCount_ = objc.registerName( late final _sel_displayNameForKey_value_ = objc.registerName( "displayNameForKey:value:", ); +late final _sel_distantFuture = objc.registerName("distantFuture"); +late final _sel_distantPast = objc.registerName("distantPast"); late final _sel_doesNotRecognizeSelector_ = objc.registerName( "doesNotRecognizeSelector:", ); @@ -41748,26 +40320,11 @@ late final _sel_initForKeyPath_ofObject_withObserver_options_context_ = objc late final _sel_initToBuffer_capacity_ = objc.registerName( "initToBuffer:capacity:", ); -late final _sel_initToFileAtPath_append_ = objc.registerName( - "initToFileAtPath:append:", -); late final _sel_initToMemory = objc.registerName("initToMemory"); late final _sel_initWithArray_ = objc.registerName("initWithArray:"); late final _sel_initWithArray_copyItems_ = objc.registerName( "initWithArray:copyItems:", ); -late final _sel_initWithArray_range_copyItems_ = objc.registerName( - "initWithArray:range:copyItems:", -); -late final _sel_initWithAttributedString_ = objc.registerName( - "initWithAttributedString:", -); -late final _sel_initWithBase64EncodedData_options_ = objc.registerName( - "initWithBase64EncodedData:options:", -); -late final _sel_initWithBase64EncodedString_options_ = objc.registerName( - "initWithBase64EncodedString:options:", -); late final _sel_initWithBool_ = objc.registerName("initWithBool:"); late final _sel_initWithBytesNoCopy_length_ = objc.registerName( "initWithBytesNoCopy:length:", @@ -41818,16 +40375,15 @@ late final _sel_initWithContentsOfFile_options_error_ = objc.registerName( late final _sel_initWithContentsOfFile_usedEncoding_error_ = objc.registerName( "initWithContentsOfFile:usedEncoding:error:", ); -late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_ = - objc.registerName( - "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:", - ); late final _sel_initWithContentsOfURL_ = objc.registerName( "initWithContentsOfURL:", ); late final _sel_initWithContentsOfURL_encoding_error_ = objc.registerName( "initWithContentsOfURL:encoding:error:", ); +late final _sel_initWithContentsOfURL_error_ = objc.registerName( + "initWithContentsOfURL:error:", +); late final _sel_initWithContentsOfURL_options_error_ = objc.registerName( "initWithContentsOfURL:options:error:", ); @@ -41849,7 +40405,6 @@ late final _sel_initWithDomain_code_userInfo_ = objc.registerName( "initWithDomain:code:userInfo:", ); late final _sel_initWithDouble_ = objc.registerName("initWithDouble:"); -late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); late final _sel_initWithFireDate_interval_repeats_block_ = objc.registerName( "initWithFireDate:interval:repeats:block:", ); @@ -41862,12 +40417,6 @@ late final _sel_initWithFormat_ = objc.registerName("initWithFormat:"); late final _sel_initWithFormat_locale_ = objc.registerName( "initWithFormat:locale:", ); -late final _sel_initWithFormat_options_locale_ = objc.registerName( - "initWithFormat:options:locale:", -); -late final _sel_initWithFormat_options_locale_context_ = objc.registerName( - "initWithFormat:options:locale:context:", -); late final _sel_initWithIndexSet_ = objc.registerName("initWithIndexSet:"); late final _sel_initWithIndex_ = objc.registerName("initWithIndex:"); late final _sel_initWithIndexesInRange_ = objc.registerName( @@ -41886,17 +40435,11 @@ late final _sel_initWithInteger_ = objc.registerName("initWithInteger:"); late final _sel_initWithItem_typeIdentifier_ = objc.registerName( "initWithItem:typeIdentifier:", ); -late final _sel_initWithLength_ = objc.registerName("initWithLength:"); late final _sel_initWithLocaleIdentifier_ = objc.registerName( "initWithLocaleIdentifier:", ); late final _sel_initWithLongLong_ = objc.registerName("initWithLongLong:"); late final _sel_initWithLong_ = objc.registerName("initWithLong:"); -late final _sel_initWithMarkdownString_options_baseURL_error_ = objc - .registerName("initWithMarkdownString:options:baseURL:error:"); -late final _sel_initWithMarkdown_options_baseURL_error_ = objc.registerName( - "initWithMarkdown:options:baseURL:error:", -); late final _sel_initWithName_object_userInfo_ = objc.registerName( "initWithName:object:userInfo:", ); @@ -41920,13 +40463,6 @@ late final _sel_initWithObjects_forKeys_ = objc.registerName( late final _sel_initWithObjects_forKeys_count_ = objc.registerName( "initWithObjects:forKeys:count:", ); -late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); -late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( - "initWithOrderedSet:copyItems:", -); -late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( - "initWithOrderedSet:range:copyItems:", -); late final _sel_initWithParent_userInfo_ = objc.registerName( "initWithParent:userInfo:", ); @@ -41940,9 +40476,6 @@ late final _sel_initWithSet_copyItems_ = objc.registerName( ); late final _sel_initWithShort_ = objc.registerName("initWithShort:"); late final _sel_initWithString_ = objc.registerName("initWithString:"); -late final _sel_initWithString_attributes_ = objc.registerName( - "initWithString:attributes:", -); late final _sel_initWithString_encodingInvalidCharacters_ = objc.registerName( "initWithString:encodingInvalidCharacters:", ); @@ -41989,16 +40522,9 @@ late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_ = "initWithValidatedFormat:validFormatSpecifiers:locale:error:", ); late final _sel_initialize = objc.registerName("initialize"); -late final _sel_inputStreamWithData_ = objc.registerName( - "inputStreamWithData:", -); -late final _sel_inputStreamWithFileAtPath_ = objc.registerName( - "inputStreamWithFileAtPath:", -); late final _sel_inputStreamWithPort_ = objc.registerName( "inputStreamWithPort:", ); -late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); late final _sel_insertObject_atIndex_ = objc.registerName( "insertObject:atIndex:", ); @@ -42129,24 +40655,12 @@ late final _sel_loadItemForTypeIdentifier_options_completionHandler_ = objc late final _sel_loadObjectOfClass_completionHandler_ = objc.registerName( "loadObjectOfClass:completionHandler:", ); -late final _sel_localeWithLocaleIdentifier_ = objc.registerName( - "localeWithLocaleIdentifier:", -); late final _sel_localizations = objc.registerName("localizations"); late final _sel_localizedAdditionalDescription = objc.registerName( "localizedAdditionalDescription", ); late final _sel_localizedAttributedStringForKey_value_table_ = objc .registerName("localizedAttributedStringForKey:value:table:"); -late final _sel_localizedAttributedStringWithFormat_ = objc.registerName( - "localizedAttributedStringWithFormat:", -); -late final _sel_localizedAttributedStringWithFormat_context_ = objc - .registerName("localizedAttributedStringWithFormat:context:"); -late final _sel_localizedAttributedStringWithFormat_options_ = objc - .registerName("localizedAttributedStringWithFormat:options:"); -late final _sel_localizedAttributedStringWithFormat_options_context_ = objc - .registerName("localizedAttributedStringWithFormat:options:context:"); late final _sel_localizedCapitalizedString = objc.registerName( "localizedCapitalizedString", ); @@ -42247,12 +40761,7 @@ late final _sel_new = objc.registerName("new"); late final _sel_newlineCharacterSet = objc.registerName("newlineCharacterSet"); late final _sel_nextObject = objc.registerName("nextObject"); late final _sel_nonBaseCharacterSet = objc.registerName("nonBaseCharacterSet"); -late final _sel_notificationWithName_object_ = objc.registerName( - "notificationWithName:object:", -); -late final _sel_notificationWithName_object_userInfo_ = objc.registerName( - "notificationWithName:object:userInfo:", -); +late final _sel_now = objc.registerName("now"); late final _sel_null = objc.registerName("null"); late final _sel_numberOfArguments = objc.registerName("numberOfArguments"); late final _sel_numberWithBool_ = objc.registerName("numberWithBool:"); @@ -42307,47 +40816,6 @@ late final _sel_objectsWithOptions_passingTest_ = objc.registerName( late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc .registerName("observeValueForKeyPath:ofObject:change:context:"); late final _sel_open = objc.registerName("open"); -late final _sel_orderedSet = objc.registerName("orderedSet"); -late final _sel_orderedSetWithArray_ = objc.registerName( - "orderedSetWithArray:", -); -late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( - "orderedSetWithArray:range:copyItems:", -); -late final _sel_orderedSetWithCapacity_ = objc.registerName( - "orderedSetWithCapacity:", -); -late final _sel_orderedSetWithObject_ = objc.registerName( - "orderedSetWithObject:", -); -late final _sel_orderedSetWithObjects_ = objc.registerName( - "orderedSetWithObjects:", -); -late final _sel_orderedSetWithObjects_count_ = objc.registerName( - "orderedSetWithObjects:count:", -); -late final _sel_orderedSetWithOrderedSet_ = objc.registerName( - "orderedSetWithOrderedSet:", -); -late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( - "orderedSetWithOrderedSet:range:copyItems:", -); -late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); -late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( - "orderedSetWithSet:copyItems:", -); -late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( - "outputStreamToBuffer:capacity:", -); -late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( - "outputStreamToFileAtPath:append:", -); -late final _sel_outputStreamToMemory = objc.registerName( - "outputStreamToMemory", -); -late final _sel_outputStreamWithURL_append_ = objc.registerName( - "outputStreamWithURL:append:", -); late final _sel_paragraphRangeForRange_ = objc.registerName( "paragraphRangeForRange:", ); From 195d2b584de0f215ec706f1c6b6dd1440c3697e0 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 13 Aug 2026 17:51:26 +1000 Subject: [PATCH 40/54] fix --- .../code_generator/objc_built_in_types.dart | 7 - .../lib/src/code_generator/objc_methods.dart | 9 +- pkgs/ffigen/lib/src/header_parser/parser.dart | 4 +- .../lib/src/visitor/apply_config_filters.dart | 18 +- .../visitor/copy_methods_from_super_type.dart | 2 +- .../lib/src/visitor/find_transitive_deps.dart | 5 +- .../category_test_bindings.dart | 1144 +++++++++ .../native_objc_test/category_test_bindings.m | 111 + pkgs/objective_c/ffigen_objc.yaml | 7 - .../src/objective_c_bindings_exported.dart | 7 - .../src/objective_c_bindings_generated.dart | 2095 ++++++++++++++--- 11 files changed, 3088 insertions(+), 321 deletions(-) create mode 100644 pkgs/ffigen/test/native_objc_test/category_test_bindings.m diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart index 803d422c11..194e77f1de 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart @@ -124,10 +124,7 @@ const objCBuiltInProtocols = { }; const objCBuiltInCategories = { - 'NSArrayCreation', 'NSDataCreation', - 'NSDateCreation', - 'NSDictionaryCreation', 'NSExtendedArray', 'NSExtendedData', 'NSExtendedDate', @@ -140,12 +137,8 @@ const objCBuiltInCategories = { 'NSExtendedMutableSet', 'NSExtendedOrderedSet', 'NSExtendedSet', - 'NSMutableArrayCreation', - 'NSMutableDictionaryCreation', - 'NSMutableSetCreation', 'NSNumberCreation', 'NSNumberIsFloat', 'NSNumberIsBool', - 'NSSetCreation', 'NSStringExtensionMethods', }; diff --git a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart index 5aaf65dced..f34124fd43 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_methods.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_methods.dart @@ -13,7 +13,6 @@ import 'local_variables.dart'; import 'native_type.dart'; import 'objc_block.dart'; import 'objc_built_in_functions.dart'; -import 'objc_category.dart'; import 'objc_interface.dart'; import 'objc_nullable.dart'; import 'pointer.dart'; @@ -49,16 +48,12 @@ mixin ObjCMethods { } } - void copyMethod(ObjCMethod method, {ObjCCategory? category}) { + void copyMethod(ObjCMethod method) { // To maintain the pairing between getters and setters after cloning, // instead of directly cloning the setter, we clone the setter when we clone // the getter. This lets us, for example, share the symbol between them. if (method.kind == ObjCMethodKind.propertySetter) return; final cloned = method.clone(); - if (category != null) { - cloned.originalCategory = category; - cloned.setter?.originalCategory = category; - } addMethod(cloned); addMethod(cloned.setter); } @@ -217,7 +212,6 @@ class ObjCMethod extends AstNode with HasLocalScope { ObjCMethods? parent; ObjCMethod? setter; bool isIncluded = true; - ObjCCategory? originalCategory; @override void visitChildren(Visitor visitor, {bool omitMethodName = false}) { @@ -357,7 +351,6 @@ class ObjCMethod extends AstNode with HasLocalScope { clonedMethod.parent = parent; clonedMethod.protocolMethodName = protocolMethodName?.clone(); clonedMethod.isIncluded = isIncluded; - clonedMethod.originalCategory = originalCategory; return clonedMethod; } diff --git a/pkgs/ffigen/lib/src/header_parser/parser.dart b/pkgs/ffigen/lib/src/header_parser/parser.dart index 38ad2ee657..8ab978423f 100644 --- a/pkgs/ffigen/lib/src/header_parser/parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/parser.dart @@ -187,7 +187,7 @@ List transformBindings(List rawBindings, Context context) { final allBindings = visit( context, - FindTransitiveDepsVisitation(), + FindTransitiveDepsVisitation(rawBindings), rawBindings, ).transitives; @@ -219,7 +219,7 @@ List transformBindings(List rawBindings, Context context) { final transitives = visit( context, - FindTransitiveDepsVisitation(), + FindTransitiveDepsVisitation(included), included, ).transitives; final directTransitives = visit( diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index 6310f98bbd..3476136cba 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -56,13 +56,7 @@ class ApplyConfigFiltersVisitation extends Visitation { if (context.config.objectiveC == null) return; if (!node.isInternal) { - node.filterMethods((m) { - if (m.unavailable || !m.isIncluded) return false; - if (m.originalCategory case final cat?) { - if (!cat.isIncluded && cat.originalName.isNotEmpty) return false; - } - return true; - }); + node.filterMethods((m) => !m.unavailable && m.isIncluded); } _visitImpl(node, node.isIncluded); @@ -77,6 +71,16 @@ class ApplyConfigFiltersVisitation extends Visitation { @override void visitObjCCategory(ObjCCategory node) { if (context.config.objectiveC == null) return; + final includeTransitiveCategories = + context.config.objectiveC?.categories.includeTransitive ?? true; + if (includeTransitiveCategories && + (directlyIncluded.contains(node.parent) || + indirectlyIncluded.contains(node.parent) || + (node.parent.isObjCImport && node.parent.isIncluded)) && + node.originalName.isNotEmpty) { + node.isIncluded = true; + } + node.filterMethods((m) { if (m.unavailable) return false; if (node.shouldCopyMethodToInterface(m)) return false; diff --git a/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart b/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart index 8023e5da10..fc2796a935 100644 --- a/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart +++ b/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart @@ -73,7 +73,7 @@ class CopyMethodsFromSuperTypesVisitation extends Visitation { for (final category in node.categories) { for (final m in category.methods) { if (category.shouldCopyMethodToInterface(m)) { - node.copyMethod(m, category: category); + node.copyMethod(m); } } } diff --git a/pkgs/ffigen/lib/src/visitor/find_transitive_deps.dart b/pkgs/ffigen/lib/src/visitor/find_transitive_deps.dart index 236d65072c..b868e65e9d 100644 --- a/pkgs/ffigen/lib/src/visitor/find_transitive_deps.dart +++ b/pkgs/ffigen/lib/src/visitor/find_transitive_deps.dart @@ -8,7 +8,10 @@ import '../config_provider/config.dart' show FfiGenerator; import 'ast.dart'; class FindTransitiveDepsVisitation extends Visitation { - final transitives = {}; + final Set transitives; + + FindTransitiveDepsVisitation(Iterable initialSet) + : transitives = initialSet.toSet(); @override void visitBinding(Binding node) { diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart index f891637248..6d48048e5d 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.dart @@ -10,6 +10,36 @@ import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer args) + > + >, + ) +>(isLeaf: true) +external ffi.Pointer _l3cf7j_wrapBlockingBlock_pfv6jd( + int port, + ffi.Pointer context, + ffi.Pointer< + ffi.NativeFunction args)> + > + directInvoke, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Int64, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer _l3cf7j_wrapListenerBlock_pfv6jd( + int port, + ffi.Pointer context, +); /// CatImplementsProto extension CatImplementsProto on Thing { @@ -258,6 +288,252 @@ extension Mul on Thing { } } +/// NSItemProvider +extension NSItemProvider on objc.NSURL { + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier( + objc.NSString typeIdentifier, + ) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_16fy0up( + _$$ref.pointer, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref$1.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: + objc.NSProgress? loadDataWithTypeIdentifier( + objc.NSString typeIdentifier, { + required objc.ObjCBlock + forItemProviderCompletionHandler, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = typeIdentifier.ref; + final _$$ref$2 = forItemProviderCompletionHandler.ref; + objc.checkOsVersionInternal( + 'NSURL.loadDataWithTypeIdentifier:forItemProviderCompletionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_r0bo0s( + _$$ref.pointer, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSProgress.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + objc.NSArray get writableTypeIdentifiersForItemProvider { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'writableTypeIdentifiersForItemProvider', + ); + } + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + static objc.NSItemProviderRepresentationVisibility + itemProviderVisibilityForRepresentationWithTypeIdentifier$1( + objc.NSString typeIdentifier, + ) { + final _$$ref = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.itemProviderVisibilityForRepresentationWithTypeIdentifier:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + if (!objc.respondsToSelector( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + )) { + throw objc.UnimplementedOptionalMethodException( + 'NSURL', + 'itemProviderVisibilityForRepresentationWithTypeIdentifier:', + ); + } + final $ret = _objc_msgSend_16fy0up( + _class_NSURL, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + _$$ref.pointer, + ); + return objc.NSItemProviderRepresentationVisibility.fromValue($ret); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static objc.NSURL? objectWithItemProviderData( + objc.NSData data, { + required objc.NSString typeIdentifier, + }) { + final _$$ref = data.ref; + final _$$ref$1 = typeIdentifier.ref; + objc.checkOsVersionInternal( + 'NSURL.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1pnyuds( + _class_NSURL, + _sel_objectWithItemProviderData_typeIdentifier_error_, + _$$ref.pointer, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// readableTypeIdentifiersForItemProvider + static objc.NSArray getReadableTypeIdentifiersForItemProvider() { + objc.checkOsVersionInternal( + 'NSURL.readableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSURL, + _sel_readableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// writableTypeIdentifiersForItemProvider + static objc.NSArray getWritableTypeIdentifiersForItemProvider$1() { + objc.checkOsVersionInternal( + 'NSURL.writableTypeIdentifiersForItemProvider', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSURL, + _sel_writableTypeIdentifiersForItemProvider, + ); + return objc.NSArray.fromPointer($ret, retain: true, release: true); + } +} + +/// NSPromisedItems +extension NSPromisedItems on objc.NSURL { + /// checkPromisedItemIsReachableAndReturnError: + bool checkPromisedItemIsReachableAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.checkPromisedItemIsReachableAndReturnError:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_checkPromisedItemIsReachableAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// getPromisedItemResourceValue:forKey:error: + bool getPromisedItemResourceValue( + ffi.Pointer> value, { + required objc.NSString forKey, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = forKey.ref; + objc.checkOsVersionInternal( + 'NSURL.getPromisedItemResourceValue:forKey:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1j9bhml( + _$$ref.pointer, + _sel_getPromisedItemResourceValue_forKey_error_, + value, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// promisedItemResourceValuesForKeys:error: + objc.NSDictionary? promisedItemResourceValuesForKeys(objc.NSArray keys) { + final _$$ref = object$.ref; + final _$$ref$1 = keys.ref; + objc.checkOsVersionInternal( + 'NSURL.promisedItemResourceValuesForKeys:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1lhpu4m( + _$$ref.pointer, + _sel_promisedItemResourceValuesForKeys_error_, + _$$ref$1.pointer, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : objc.NSDictionary.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } +} + /// NSString extension NSString on Thing { /// nsStringExtension @@ -267,6 +543,554 @@ extension NSString on Thing { } } +/// NSURLCategory +extension NSURLCategory on objc.NSURL { + /// extensionMethod + int extensionMethod() { + final _$$ref = object$.ref; + return _objc_msgSend_1gcq84o(_$$ref.pointer, _sel_extensionMethod); + } +} + +/// NSURLLoading +extension NSURLLoading on objc.NSURL { + /// URLHandleUsingCache: + @Deprecated('Use NSURLConnection instead') + objc.NSURLHandle? URLHandleUsingCache(bool shouldUseCache) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLHandleUsingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1t6aok9( + _$$ref.pointer, + _sel_URLHandleUsingCache_, + shouldUseCache, + ); + return $ret.address == 0 + ? null + : objc.NSURLHandle.fromPointer($ret, retain: true, release: true); + } + + /// loadResourceDataNotifyingClient:usingCache: + @Deprecated('Use NSURLConnection instead') + void loadResourceDataNotifyingClient( + objc.ObjCObject client, { + required bool usingCache, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = client.ref; + objc.checkOsVersionInternal( + 'NSURL.loadResourceDataNotifyingClient:usingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_6p7ndb( + _$$ref.pointer, + _sel_loadResourceDataNotifyingClient_usingCache_, + _$$ref$1.pointer, + usingCache, + ); + } + + /// propertyForKey: + @Deprecated('Use NSURLConnection instead') + objc.ObjCObject? propertyForKey(objc.NSString propertyKey) { + final _$$ref = object$.ref; + final _$$ref$1 = propertyKey.ref; + objc.checkOsVersionInternal( + 'NSURL.propertyForKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_propertyForKey_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.ObjCObject($ret, retain: true, release: true); + } + + /// resourceDataUsingCache: + @Deprecated('Use NSURLConnection instead') + objc.NSData? resourceDataUsingCache(bool shouldUseCache) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.resourceDataUsingCache:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1t6aok9( + _$$ref.pointer, + _sel_resourceDataUsingCache_, + shouldUseCache, + ); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + /// setProperty:forKey: + @Deprecated('Use NSURLConnection instead') + bool setProperty(objc.ObjCObject property, {required objc.NSString forKey}) { + final _$$ref = object$.ref; + final _$$ref$1 = property.ref; + final _$$ref$2 = forKey.ref; + objc.checkOsVersionInternal( + 'NSURL.setProperty:forKey:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1lsax7n( + _$$ref.pointer, + _sel_setProperty_forKey_, + _$$ref$1.pointer, + _$$ref$2.pointer, + ); + } + + /// setResourceData: + @Deprecated('Use NSURLConnection instead') + bool setResourceData(objc.NSData data) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + objc.checkOsVersionInternal( + 'NSURL.setResourceData:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _$$ref.pointer, + _sel_setResourceData_, + _$$ref$1.pointer, + ); + } +} + +/// NSURLPathUtilities +extension NSURLPathUtilities on objc.NSURL { + /// URLByAppendingPathComponent: + objc.NSURL? URLByAppendingPathComponent(objc.NSString pathComponent) { + final _$$ref = object$.ref; + final _$$ref$1 = pathComponent.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathComponent:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_URLByAppendingPathComponent_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByAppendingPathComponent:isDirectory: + objc.NSURL? URLByAppendingPathComponent$1( + objc.NSString pathComponent, { + required bool isDirectory, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = pathComponent.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathComponent:isDirectory:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.pointer, + _sel_URLByAppendingPathComponent_isDirectory_, + _$$ref$1.pointer, + isDirectory, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByAppendingPathExtension: + objc.NSURL? URLByAppendingPathExtension(objc.NSString pathExtension) { + final _$$ref = object$.ref; + final _$$ref$1 = pathExtension.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByAppendingPathExtension:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.pointer, + _sel_URLByAppendingPathExtension_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByDeletingLastPathComponent + objc.NSURL? get URLByDeletingLastPathComponent { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByDeletingLastPathComponent', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByDeletingLastPathComponent, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByDeletingPathExtension + objc.NSURL? get URLByDeletingPathExtension { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByDeletingPathExtension', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByDeletingPathExtension, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByResolvingSymlinksInPath + objc.NSURL? get URLByResolvingSymlinksInPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByResolvingSymlinksInPath', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByResolvingSymlinksInPath, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// URLByStandardizingPath + objc.NSURL? get URLByStandardizingPath { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.URLByStandardizingPath', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _$$ref.pointer, + _sel_URLByStandardizingPath, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } + + /// checkResourceIsReachableAndReturnError: + bool checkResourceIsReachableAndReturnError() { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.checkResourceIsReachableAndReturnError:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1dom33q( + _$$ref.pointer, + _sel_checkResourceIsReachableAndReturnError_, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret; + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// lastPathComponent + objc.NSString? get lastPathComponent { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.lastPathComponent', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_lastPathComponent); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// pathComponents + objc.NSArray? get pathComponents { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.pathComponents', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathComponents); + return $ret.address == 0 + ? null + : objc.NSArray.fromPointer($ret, retain: true, release: true); + } + + /// pathExtension + objc.NSString? get pathExtension { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSURL.pathExtension', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_pathExtension); + return $ret.address == 0 + ? null + : objc.NSString.fromPointer($ret, retain: true, release: true); + } + + /// fileURLWithPathComponents: + static objc.NSURL? fileURLWithPathComponents(objc.NSArray components) { + final _$$ref = components.ref; + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPathComponents:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSURL, + _sel_fileURLWithPathComponents_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : objc.NSURL.fromPointer($ret, retain: true, release: true); + } +} + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSData_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + fromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// Creates a block from a C function pointer. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// This block must be invoked by native code running on the same thread as + /// the isolate that registered it. Invoking the block on the wrong thread + /// will result in a crash. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock(_closureCallable, ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) { + return fn( + arg0.address == 0 + ? null + : objc.NSData.fromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : objc.NSError.fromPointer(arg1, retain: true, release: true), + ); + }, keepIsolateAlive), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This block can be invoked from any thread, but only supports void + /// functions, and is not run synchronously. Async functions (ie returning + /// Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + listener( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockPort(_l3cf7j_wrapListenerBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x5cg0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions (ie returning Future) are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock + blocking( + void Function(objc.NSData?, objc.NSError?) fn, { + bool keepIsolateAlive = true, + }) { + return objc.ObjCBlock( + objc.newBlockingBlockPort(_l3cf7j_wrapBlockingBlock_pfv6jd, ( + ffi.Pointer rawArgs, + ) { + final args = _BlockArgs_x5cg0.fromPointer( + rawArgs, + retain: false, + release: false, + ); + + fn(args.arg0, args.arg1); + }, keepIsolateAlive), + retain: false, + release: true, + ); + } + + static void _fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); + static ffi.Pointer _fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_fnPtrTrampoline) + .cast(); + static void _closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + static ffi.Pointer _closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_closureTrampoline) + .cast(); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSData_NSError$CallExtension + on objc.ObjCBlock { + void call(objc.NSData? arg0, objc.NSError? arg1) { + final _$$ref = arg0?.ref; + final _$$ref$1 = arg1?.ref; + return ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + _$$ref?.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + } +} + /// StaticAndInstanceMethodsWithSameNameCategory extension StaticAndInstanceMethodsWithSameNameCategory on Thing { /// sameNameMethod @@ -387,6 +1211,50 @@ extension Thing$Methods on Thing { } } +extension type _BlockArgs_x5cg0._(objc.ObjCObject object$) + implements objc.ObjCObject { + /// Constructs a [_BlockArgs_x5cg0] that points to the same underlying object as [other]. + _BlockArgs_x5cg0.as(objc.ObjCObject other) : object$ = other { + assert(isA(object$)); + } + + /// Constructs a [_BlockArgs_x5cg0] that wraps the given raw object pointer. + _BlockArgs_x5cg0.fromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { + assert(isA(object$)); + } + + /// Returns whether [obj] is an instance of [_BlockArgs_x5cg0]. + static bool isA(objc.ObjCObject? obj) => obj == null + ? false + : _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class__BlockArgs_x5cg0, + ); +} + +extension _BlockArgs_x5cg0$Methods on _BlockArgs_x5cg0 { + objc.NSData? get arg0 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); + return $ret.address == 0 + ? null + : objc.NSData.fromPointer($ret, retain: true, release: true); + } + + objc.NSError? get arg1 { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg1); + return $ret.address == 0 + ? null + : objc.NSError.fromPointer($ret, retain: true, release: true); + } +} + @ffi.Native>( symbol: 'OBJC_CLASS_\$_ChildOfNSString', ) @@ -415,6 +1283,14 @@ final _class_NSString = objc.getClass( _class_NSString_raw, ).cast(), ); +@ffi.Native>(symbol: 'OBJC_CLASS_\$_NSURL') +external ffi.Pointer _class_NSURL_raw; +final _class_NSURL = objc.getClass( + "NSURL", + () => ffi.Native.addressOf>( + _class_NSURL_raw, + ).cast(), +); @ffi.Native>(symbol: 'OBJC_CLASS_\$_Thing') external ffi.Pointer _class_Thing_raw; final _class_Thing = objc.getClass( @@ -423,6 +1299,16 @@ final _class_Thing = objc.getClass( _class_Thing_raw, ).cast(), ); +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__l3cf7j_BlockArgs_pfv6jd', +) +external ffi.Pointer _class__BlockArgs_x5cg0_raw; +final _class__BlockArgs_x5cg0 = objc.getClass( + "_l3cf7j_BlockArgs_pfv6jd", + () => ffi.Native.addressOf>( + _class__BlockArgs_x5cg0_raw, + ).cast(), +); final _objc_msgSend_151sglz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -438,6 +1324,42 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_16fy0up = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_17amj0z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -472,6 +1394,23 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1dom33q = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1gcq84o = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -487,6 +1426,86 @@ final _objc_msgSend_1gcq84o = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1j9bhml = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1lsax7n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1q0lyci = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -523,6 +1542,42 @@ final _objc_msgSend_1sotr3r = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1t6aok9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_6p7ndb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -538,6 +1593,49 @@ final _objc_msgSend_91o635 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_r0bo0s = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_URLByAppendingPathComponent_ = objc.registerName( + "URLByAppendingPathComponent:", +); +late final _sel_URLByAppendingPathComponent_isDirectory_ = objc.registerName( + "URLByAppendingPathComponent:isDirectory:", +); +late final _sel_URLByAppendingPathExtension_ = objc.registerName( + "URLByAppendingPathExtension:", +); +late final _sel_URLByDeletingLastPathComponent = objc.registerName( + "URLByDeletingLastPathComponent", +); +late final _sel_URLByDeletingPathExtension = objc.registerName( + "URLByDeletingPathExtension", +); +late final _sel_URLByResolvingSymlinksInPath = objc.registerName( + "URLByResolvingSymlinksInPath", +); +late final _sel_URLByStandardizingPath = objc.registerName( + "URLByStandardizingPath", +); +late final _sel_URLHandleUsingCache_ = objc.registerName( + "URLHandleUsingCache:", +); late final _sel_add_Y_ = objc.registerName("add:Y:"); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); @@ -547,16 +1645,59 @@ late final _sel_anonymousCategoryMethod = objc.registerName( late final _sel_anonymousCategoryStaticMethod = objc.registerName( "anonymousCategoryStaticMethod", ); +late final _sel_arg0 = objc.registerName("arg0"); +late final _sel_arg1 = objc.registerName("arg1"); +late final _sel_checkPromisedItemIsReachableAndReturnError_ = objc.registerName( + "checkPromisedItemIsReachableAndReturnError:", +); +late final _sel_checkResourceIsReachableAndReturnError_ = objc.registerName( + "checkResourceIsReachableAndReturnError:", +); +late final _sel_extensionMethod = objc.registerName("extensionMethod"); +late final _sel_fileURLWithPathComponents_ = objc.registerName( + "fileURLWithPathComponents:", +); +late final _sel_getPromisedItemResourceValue_forKey_error_ = objc.registerName( + "getPromisedItemResourceValue:forKey:error:", +); late final _sel_init = objc.registerName("init"); late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); late final _sel_instancetypeMethod = objc.registerName("instancetypeMethod"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = + objc.registerName( + "itemProviderVisibilityForRepresentationWithTypeIdentifier:", + ); +late final _sel_lastPathComponent = objc.registerName("lastPathComponent"); +late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = + objc.registerName( + "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", + ); +late final _sel_loadResourceDataNotifyingClient_usingCache_ = objc.registerName( + "loadResourceDataNotifyingClient:usingCache:", +); late final _sel_method = objc.registerName("method"); late final _sel_mul_Y_ = objc.registerName("mul:Y:"); late final _sel_new = objc.registerName("new"); late final _sel_nsStringExtension = objc.registerName("nsStringExtension"); +late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc + .registerName("objectWithItemProviderData:typeIdentifier:error:"); +late final _sel_pathComponents = objc.registerName("pathComponents"); +late final _sel_pathExtension = objc.registerName("pathExtension"); +late final _sel_promisedItemResourceValuesForKeys_error_ = objc.registerName( + "promisedItemResourceValuesForKeys:error:", +); +late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); late final _sel_protoMethod = objc.registerName("protoMethod"); +late final _sel_readableTypeIdentifiersForItemProvider = objc.registerName( + "readableTypeIdentifiersForItemProvider", +); +late final _sel_resourceDataUsingCache_ = objc.registerName( + "resourceDataUsingCache:", +); late final _sel_sameNameMethod = objc.registerName("sameNameMethod"); +late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); +late final _sel_setResourceData_ = objc.registerName("setResourceData:"); late final _sel_someProperty = objc.registerName("someProperty"); late final _sel_staticMethod = objc.registerName("staticMethod"); late final _sel_staticProtoMethod = objc.registerName("staticProtoMethod"); @@ -564,6 +1705,9 @@ late final _sel_sub_Y_ = objc.registerName("sub:Y:"); late final _sel_supportsSecureCoding = objc.registerName( "supportsSecureCoding", ); +late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( + "writableTypeIdentifiersForItemProvider", +); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/ffigen/test/native_objc_test/category_test_bindings.m b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m new file mode 100644 index 0000000000..f0761e700f --- /dev/null +++ b/pkgs/ffigen/test/native_objc_test/category_test_bindings.m @@ -0,0 +1,111 @@ +#include +#import +#import +#import "category_test.h" +#import "category_test.h" + +#if !__has_feature(objc_arc) +#error "This file must be compiled with ARC enabled" +#endif + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundeclared-selector" + +typedef struct { + int64_t version; + void* (*newWaiter)(void); + void (*awaitWaiter)(void*); + void* (*currentIsolate)(void); + void (*enterIsolate)(void*); + void (*exitIsolate)(void); + int64_t (*getMainPortId)(void); + bool (*getCurrentThreadOwnsIsolate)(int64_t); + void (*invokeListenerPortBlock)(int64_t port, void*); + void (*invokeBlockingPortBlock)(int64_t port, void*, void*); +} DOBJC_Context; + +id objc_retainBlock(id); + +#define BLOCKING_BLOCK_IMPL(ctx, TYPE, SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ + assert(ctx->version >= 1); \ + void* targetIsolate = ctx->currentIsolate(); \ + int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ + __block __weak TYPE weakSelfBlock = nil; \ + TYPE strongSelfBlock = [SIG { \ + void* currentIsolate = ctx->currentIsolate(); \ + bool mayEnterIsolate = \ + currentIsolate == NULL && \ + ctx->getCurrentThreadOwnsIsolate != NULL && \ + ctx->getCurrentThreadOwnsIsolate(targetPort); \ + if (currentIsolate == targetIsolate || mayEnterIsolate) { \ + if (mayEnterIsolate) { \ + ctx->enterIsolate(targetIsolate); \ + } \ + INVOKE_DIRECT; \ + if (mayEnterIsolate) { \ + ctx->exitIsolate(); \ + } \ + } else { \ + void* waiter = ctx->newWaiter(); \ + TYPE selfRetain = [weakSelfBlock copy]; \ + INVOKE_LISTENER; \ + ctx->awaitWaiter(waiter); \ + (void)selfRetain; \ + } \ + } copy]; \ + weakSelfBlock = strongSelfBlock; \ + return strongSelfBlock; + + +__attribute__((visibility("default"))) +@interface _l3cf7j_BlockArgs_pfv6jd : NSObject +@property (copy) id block; +@property (strong) id arg0; +@property (strong) id arg1; +@end +@implementation _l3cf7j_BlockArgs_pfv6jd +@end + +typedef void (^_ListenerTrampoline)(id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline _l3cf7j_wrapListenerBlock_pfv6jd( + int64_t port, DOBJC_Context* ctx) NS_RETURNS_RETAINED { + __block __weak _ListenerTrampoline weakSelfBlock = nil; + _ListenerTrampoline strongSelfBlock = [^void(id arg0, id arg1) { + @autoreleasepool { + _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeListenerPortBlock(port, (__bridge_retained void*)args); + } + } copy]; + weakSelfBlock = strongSelfBlock; + return strongSelfBlock; +} + +typedef void (^_BlockingTrampoline)(void * waiter, id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +_ListenerTrampoline _l3cf7j_wrapBlockingBlock_pfv6jd(int64_t port, DOBJC_Context* ctx, + void (*directInvoke)(void*)) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, _ListenerTrampoline, ^void(id arg0, id arg1), { + @autoreleasepool { + _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + directInvoke((__bridge_retained void*)args); + } + }, { + @autoreleasepool { + _l3cf7j_BlockArgs_pfv6jd* args = [[_l3cf7j_BlockArgs_pfv6jd alloc] init]; + args.block = weakSelfBlock; + args.arg0 = arg0; + args.arg1 = arg1; + ctx->invokeBlockingPortBlock(port, (__bridge_retained void*)args, waiter); + } + }); +} +#undef BLOCKING_BLOCK_IMPL + +#pragma clang diagnostic pop diff --git a/pkgs/objective_c/ffigen_objc.yaml b/pkgs/objective_c/ffigen_objc.yaml index b4d10600f6..3dc2299304 100644 --- a/pkgs/objective_c/ffigen_objc.yaml +++ b/pkgs/objective_c/ffigen_objc.yaml @@ -106,10 +106,7 @@ objc-protocols: 'NSObject': 'NSObjectProtocol' objc-categories: include: - - NSArrayCreation - NSDataCreation - - NSDateCreation - - NSDictionaryCreation - NSExtendedArray - NSExtendedData - NSExtendedDate @@ -122,13 +119,9 @@ objc-categories: - NSExtendedMutableSet - NSExtendedOrderedSet - NSExtendedSet - - NSMutableArrayCreation - - NSMutableDictionaryCreation - - NSMutableSetCreation - NSNumberCreation - NSNumberIsFloat - NSNumberIsBool - - NSSetCreation - NSStringExtensionMethods structs: include: diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart b/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart index f373276bc6..5e3700d8b4 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart @@ -25,7 +25,6 @@ export 'objective_c_bindings_generated.dart' NSAppleEventSendOptions, NSArray, NSArray$Methods, - NSArrayCreation, NSAttributedString, NSAttributedString$Methods, NSAttributedStringEnumerationOptions, @@ -60,11 +59,9 @@ export 'objective_c_bindings_generated.dart' NSDataWritingOptions, NSDate, NSDate$Methods, - NSDateCreation, NSDecodingFailurePolicy, NSDictionary, NSDictionary$Methods, - NSDictionaryCreation, NSEdgeInsets, NSEnumerationOptions, NSEnumerator, @@ -114,7 +111,6 @@ export 'objective_c_bindings_generated.dart' NSMethodSignature$Methods, NSMutableArray, NSMutableArray$Methods, - NSMutableArrayCreation, NSMutableCopying, NSMutableCopying$Builder, NSMutableCopying$Methods, @@ -122,14 +118,12 @@ export 'objective_c_bindings_generated.dart' NSMutableData$Methods, NSMutableDictionary, NSMutableDictionary$Methods, - NSMutableDictionaryCreation, NSMutableIndexSet, NSMutableIndexSet$Methods, NSMutableOrderedSet, NSMutableOrderedSet$Methods, NSMutableSet, NSMutableSet$Methods, - NSMutableSetCreation, NSMutableString, NSMutableString$Methods, NSNotification, @@ -174,7 +168,6 @@ export 'objective_c_bindings_generated.dart' NSSecureCoding$Methods, NSSet, NSSet$Methods, - NSSetCreation, NSSortOptions, NSStream, NSStream$Methods, diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart index f00ed12144..e7bd1a35f7 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart @@ -1037,6 +1037,32 @@ extension type DartInputStreamAdapter._(objc.ObjCObject object$) ); } + /// inputStreamWithData: + static DartInputStreamAdapter? inputStreamWithData(NSData data) { + final _$$ref = data.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_DartInputStreamAdapter, + _sel_inputStreamWithData_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : DartInputStreamAdapter.fromPointer($ret, retain: true, release: true); + } + + /// inputStreamWithFileAtPath: + static DartInputStreamAdapter? inputStreamWithFileAtPath(NSString path) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_DartInputStreamAdapter, + _sel_inputStreamWithFileAtPath_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : DartInputStreamAdapter.fromPointer($ret, retain: true, release: true); + } + /// Creates the adapter. /// @param sendPort A port to that is will receive two types of messages: /// -1 => The `NSInputStream` has been closed and the port can be closed. @@ -1054,6 +1080,24 @@ extension type DartInputStreamAdapter._(objc.ObjCObject object$) ); } + /// inputStreamWithURL: + static DartInputStreamAdapter? inputStreamWithURL(NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'DOBJCDartInputStreamAdapter.inputStreamWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_DartInputStreamAdapter, + _sel_inputStreamWithURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : DartInputStreamAdapter.fromPointer($ret, retain: true, release: true); + } + /// new static DartInputStreamAdapter new$() { final $ret = _objc_msgSend_151sglz(_class_DartInputStreamAdapter, _sel_new); @@ -1115,6 +1159,24 @@ extension DartInputStreamAdapter$Methods on DartInputStreamAdapter { ); } + /// initWithFileAtPath: + DartInputStreamAdapter? initWithFileAtPath(NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithFileAtPath_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : DartInputStreamAdapter.fromPointer( + $ret, + retain: false, + release: true, + ); + } + /// initWithURL: DartInputStreamAdapter? initWithURL(NSURL url) { final _$$ref = object$.ref; @@ -1788,60 +1850,6 @@ extension NSArray$Methods on NSArray { } } -/// NSArrayCreation -extension NSArrayCreation on NSArray { - /// initWithContentsOfURL:error: - NSArray? initWithContentsOfURL(NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSArray.initWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSArray.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// arrayWithContentsOfURL:error: - static NSArray? arrayWithContentsOfURL(NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSArray.arrayWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _class_NSArray, - _sel_arrayWithContentsOfURL_error_, - _$$ref.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSArray.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - /// NSAttributedString extension type NSAttributedString._(objc.ObjCObject object$) implements @@ -1899,6 +1907,100 @@ extension type NSAttributedString._(objc.ObjCObject object$) return NSAttributedString.fromPointer($ret, retain: false, release: true); } + /// localizedAttributedStringWithFormat: + /// + /// iOS: introduced 15.0.0 + /// macOS: introduced 12.0.0 + static NSAttributedString localizedAttributedStringWithFormat( + NSAttributedString format, + ) { + final _$$ref = format.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_, + _$$ref.pointer, + ); + return NSAttributedString.fromPointer($ret, retain: true, release: true); + } + + /// localizedAttributedStringWithFormat:context: + /// + /// iOS: introduced 17.0.0 + /// macOS: introduced 14.0.0 + static NSAttributedString localizedAttributedStringWithFormat$1( + NSAttributedString format, { + required NSDictionary context, + }) { + final _$$ref = format.ref; + final _$$ref$1 = context.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:context:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_context_, + _$$ref.pointer, + _$$ref$1.pointer, + ); + return NSAttributedString.fromPointer($ret, retain: true, release: true); + } + + /// localizedAttributedStringWithFormat:options: + /// + /// iOS: introduced 15.0.0 + /// macOS: introduced 12.0.0 + static NSAttributedString localizedAttributedStringWithFormat$2( + NSAttributedString format, { + required DartNSUInteger options, + }) { + final _$$ref = format.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:options:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_s058d2( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_options_, + _$$ref.pointer, + options, + ); + return NSAttributedString.fromPointer($ret, retain: true, release: true); + } + + /// localizedAttributedStringWithFormat:options:context: + /// + /// iOS: introduced 17.0.0 + /// macOS: introduced 14.0.0 + static NSAttributedString localizedAttributedStringWithFormat$3( + NSAttributedString format, { + required DartNSUInteger options, + required NSDictionary context, + }) { + final _$$ref = format.ref; + final _$$ref$1 = context.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.localizedAttributedStringWithFormat:options:context:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_187k8ck( + _class_NSAttributedString, + _sel_localizedAttributedStringWithFormat_options_context_, + _$$ref.pointer, + options, + _$$ref$1.pointer, + ); + return NSAttributedString.fromPointer($ret, retain: true, release: true); + } + /// new static NSAttributedString new$() { final $ret = _objc_msgSend_151sglz(_class_NSAttributedString, _sel_new); @@ -1964,6 +2066,23 @@ extension NSAttributedString$Methods on NSAttributedString { return NSAttributedString.fromPointer($ret, retain: false, release: true); } + /// initWithAttributedString: + NSAttributedString initWithAttributedString(NSAttributedString attrStr) { + final _$$ref = object$.ref; + final _$$ref$1 = attrStr.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithAttributedString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithAttributedString_, + _$$ref$1.pointer, + ); + return NSAttributedString.fromPointer($ret, retain: false, release: true); + } + /// initWithCoder: NSAttributedString? initWithCoder(NSCoder coder) { final _$$ref = object$.ref; @@ -1978,6 +2097,213 @@ extension NSAttributedString$Methods on NSAttributedString { : NSAttributedString.fromPointer($ret, retain: false, release: true); } + /// initWithContentsOfMarkdownFileAtURL:options:baseURL:error: + /// + /// iOS: introduced 15.0.0 + /// macOS: introduced 12.0.0 + NSAttributedString? initWithContentsOfMarkdownFileAtURL( + NSURL markdownFile, { + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markdownFile.ref; + final _$$ref$2 = options?.ref; + final _$$ref$3 = baseURL?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithContentsOfMarkdownFileAtURL:options:baseURL:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1k0ezzm( + _$$ref.retainAndReturnPointer(), + _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSAttributedString.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithFormat:options:locale: + /// + /// iOS: introduced 15.0.0 + /// macOS: introduced 12.0.0 + NSAttributedString initWithFormat( + NSAttributedString format, { + required DartNSUInteger options, + NSLocale? locale, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + final _$$ref$2 = locale?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithFormat:options:locale:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $ret = _objc_msgSend_187k8ck( + _$$ref.retainAndReturnPointer(), + _sel_initWithFormat_options_locale_, + _$$ref$1.pointer, + options, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return NSAttributedString.fromPointer($ret, retain: false, release: true); + } + + /// initWithFormat:options:locale:context: + /// + /// iOS: introduced 17.0.0 + /// macOS: introduced 14.0.0 + NSAttributedString initWithFormat$1( + NSAttributedString format, { + required DartNSUInteger options, + NSLocale? locale, + required NSDictionary context, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = format.ref; + final _$$ref$2 = locale?.ref; + final _$$ref$3 = context.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithFormat:options:locale:context:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final $ret = _objc_msgSend_3fn4ca( + _$$ref.retainAndReturnPointer(), + _sel_initWithFormat_options_locale_context_, + _$$ref$1.pointer, + options, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3.pointer, + ); + return NSAttributedString.fromPointer($ret, retain: false, release: true); + } + + /// initWithMarkdown:options:baseURL:error: + /// + /// iOS: introduced 15.0.0 + /// macOS: introduced 12.0.0 + NSAttributedString? initWithMarkdown( + NSData markdown, { + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markdown.ref; + final _$$ref$2 = options?.ref; + final _$$ref$3 = baseURL?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithMarkdown:options:baseURL:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1k0ezzm( + _$$ref.retainAndReturnPointer(), + _sel_initWithMarkdown_options_baseURL_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSAttributedString.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithMarkdownString:options:baseURL:error: + /// + /// iOS: introduced 15.0.0 + /// macOS: introduced 12.0.0 + NSAttributedString? initWithMarkdownString( + NSString markdownString, { + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = markdownString.ref; + final _$$ref$2 = options?.ref; + final _$$ref$3 = baseURL?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithMarkdownString:options:baseURL:error:', + iOS: (false, (15, 0, 0)), + macOS: (false, (12, 0, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1k0ezzm( + _$$ref.retainAndReturnPointer(), + _sel_initWithMarkdownString_options_baseURL_error_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + _$$ref$3?.pointer ?? ffi.nullptr, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSAttributedString.fromPointer($ret, retain: false, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// initWithString: + NSAttributedString initWithString(NSString str) { + final _$$ref = object$.ref; + final _$$ref$1 = str.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithString:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithString_, + _$$ref$1.pointer, + ); + return NSAttributedString.fromPointer($ret, retain: false, release: true); + } + + /// initWithString:attributes: + NSAttributedString initWithString$1( + NSString str, { + NSDictionary? attributes, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = str.ref; + final _$$ref$2 = attributes?.ref; + objc.checkOsVersionInternal( + 'NSAttributedString.initWithString:attributes:', + iOS: (false, (3, 2, 0)), + macOS: (false, (10, 0, 0)), + ); + final $ret = _objc_msgSend_15qeuct( + _$$ref.retainAndReturnPointer(), + _sel_initWithString_attributes_, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return NSAttributedString.fromPointer($ret, retain: false, release: true); + } + /// string NSString get string { final _$$ref = object$.ref; @@ -4307,6 +4633,62 @@ extension NSData$Methods on NSData { return _objc_msgSend_6ex6p5(_$$ref.pointer, _sel_bytes); } + /// compressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSData? compressedDataUsingAlgorithm(NSDataCompressionAlgorithm algorithm) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.compressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1vnlaqg( + _$$ref.pointer, + _sel_compressedDataUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSData.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decompressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSData? decompressedDataUsingAlgorithm(NSDataCompressionAlgorithm algorithm) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSData.decompressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1vnlaqg( + _$$ref.pointer, + _sel_decompressedDataUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSData.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + /// encodeWithCoder: void encodeWithCoder(NSCoder coder) { final _$$ref = object$.ref; @@ -4333,6 +4715,52 @@ extension NSData$Methods on NSData { return NSData.fromPointer($ret, retain: false, release: true); } + /// initWithBase64EncodedData:options: + NSData? initWithBase64EncodedData( + NSData base64Data, { + required DartNSUInteger options, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = base64Data.ref; + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedData:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_7kpg7m( + _$$ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedData_options_, + _$$ref$1.pointer, + options, + ); + return $ret.address == 0 + ? null + : NSData.fromPointer($ret, retain: false, release: true); + } + + /// initWithBase64EncodedString:options: + NSData? initWithBase64EncodedString( + NSString base64String, { + required DartNSUInteger options, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = base64String.ref; + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedString:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_7kpg7m( + _$$ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedString_options_, + _$$ref$1.pointer, + options, + ); + return $ret.address == 0 + ? null + : NSData.fromPointer($ret, retain: false, release: true); + } + /// initWithBytes:length: NSData initWithBytes( ffi.Pointer bytes, { @@ -4797,33 +5225,6 @@ extension NSDate$Methods on NSDate { } } -/// NSDateCreation -extension NSDateCreation on NSDate { - /// distantFuture - static NSDate getDistantFuture() { - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantFuture); - return NSDate.fromPointer($ret, retain: true, release: true); - } - - /// distantPast - static NSDate getDistantPast() { - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_distantPast); - return NSDate.fromPointer($ret, retain: true, release: true); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - static NSDate getNow() { - objc.checkOsVersionInternal( - 'NSDate.now', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final $ret = _objc_msgSend_151sglz(_class_NSDate, _sel_now); - return NSDate.fromPointer($ret, retain: true, release: true); - } -} - enum NSDecodingFailurePolicy { NSDecodingFailurePolicyRaiseException(0), NSDecodingFailurePolicySetErrorAndReturn(1); @@ -5146,60 +5547,6 @@ extension NSDictionary$Methods on NSDictionary { } } -/// NSDictionaryCreation -extension NSDictionaryCreation on NSDictionary { - /// initWithContentsOfURL:error: - NSDictionary? initWithContentsOfURL(NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.initWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_error_, - _$$ref$1.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSDictionary.fromPointer($ret, retain: false, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } - - /// dictionaryWithContentsOfURL:error: - static NSDictionary? dictionaryWithContentsOfURL(NSURL url) { - final _$$ref = url.ref; - objc.checkOsVersionInternal( - 'NSDictionary.dictionaryWithContentsOfURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final $err = pkg_ffi.calloc>(); - try { - final $ret = _objc_msgSend_1lhpu4m( - _class_NSDictionary, - _sel_dictionaryWithContentsOfURL_error_, - _$$ref.pointer, - $err, - ); - objc.NSErrorException.checkErrorPointer($err.value); - return $ret.address == 0 - ? null - : NSDictionary.fromPointer($ret, retain: true, release: true); - } finally { - pkg_ffi.calloc.free($err); - } - } -} - final class NSEdgeInsets extends ffi.Struct { @ffi.Double() external double top; @@ -9443,6 +9790,50 @@ extension type NSInputStream._(objc.ObjCObject object$) return NSInputStream.fromPointer($ret, retain: false, release: true); } + /// inputStreamWithData: + static NSInputStream? inputStreamWithData(NSData data) { + final _$$ref = data.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithData_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// inputStreamWithFileAtPath: + static NSInputStream? inputStreamWithFileAtPath(NSString path) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithFileAtPath_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : NSInputStream.fromPointer($ret, retain: true, release: true); + } + + /// inputStreamWithURL: + static NSInputStream? inputStreamWithURL(NSURL url) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSInputStream.inputStreamWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithURL_, + _$$ref.pointer, + ); + return $ret.address == 0 + ? null + : NSInputStream.fromPointer($ret, retain: true, release: true); + } + /// new static NSInputStream new$() { final $ret = _objc_msgSend_151sglz(_class_NSInputStream, _sel_new); @@ -9501,6 +9892,20 @@ extension NSInputStream$Methods on NSInputStream { return NSInputStream.fromPointer($ret, retain: false, release: true); } + /// initWithFileAtPath: + NSInputStream? initWithFileAtPath(NSString path) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithFileAtPath_, + _$$ref$1.pointer, + ); + return $ret.address == 0 + ? null + : NSInputStream.fromPointer($ret, retain: false, release: true); + } + /// initWithURL: NSInputStream? initWithURL(NSURL url) { final _$$ref = object$.ref; @@ -10691,6 +11096,22 @@ extension type NSLocale._(objc.ObjCObject object$) return NSLocale.fromPointer($ret, retain: false, release: true); } + /// localeWithLocaleIdentifier: + static NSLocale localeWithLocaleIdentifier(NSString ident) { + final _$$ref = ident.ref; + objc.checkOsVersionInternal( + 'NSLocale.localeWithLocaleIdentifier:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_localeWithLocaleIdentifier_, + _$$ref.pointer, + ); + return NSLocale.fromPointer($ret, retain: true, release: true); + } + /// new static NSLocale new$() { final $ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_new); @@ -11218,63 +11639,6 @@ extension NSMutableArray$Methods on NSMutableArray { } } -/// NSMutableArrayCreation -extension NSMutableArrayCreation on NSMutableArray { - /// initWithContentsOfFile: - NSMutableArray? initWithContentsOfFile(NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : NSMutableArray.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - NSMutableArray? initWithContentsOfURL(NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : NSMutableArray.fromPointer($ret, retain: false, release: true); - } - - /// arrayWithContentsOfFile: - static NSMutableArray? arrayWithContentsOfFile(NSString path) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, - _sel_arrayWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : NSMutableArray.fromPointer($ret, retain: true, release: true); - } - - /// arrayWithContentsOfURL: - static NSMutableArray? arrayWithContentsOfURL(NSURL url) { - final _$$ref = url.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, - _sel_arrayWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : NSMutableArray.fromPointer($ret, retain: true, release: true); - } -} - /// NSMutableCopying extension type NSMutableCopying._(objc.ObjCProtocol object$) implements objc.ObjCProtocol { @@ -11472,6 +11836,18 @@ extension type NSMutableData._(objc.ObjCObject object$) return NSMutableData.fromPointer($ret, retain: true, release: true); } + /// dataWithCapacity: + static NSMutableData? dataWithCapacity(DartNSUInteger aNumItems) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableData, + _sel_dataWithCapacity_, + aNumItems, + ); + return $ret.address == 0 + ? null + : NSMutableData.fromPointer($ret, retain: true, release: true); + } + /// dataWithContentsOfFile: static NSMutableData? dataWithContentsOfFile(NSString path) { final _$$ref = path.ref; @@ -11547,6 +11923,18 @@ extension type NSMutableData._(objc.ObjCObject object$) return NSMutableData.fromPointer($ret, retain: true, release: true); } + /// dataWithLength: + static NSMutableData? dataWithLength(DartNSUInteger length) { + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableData, + _sel_dataWithLength_, + length, + ); + return $ret.address == 0 + ? null + : NSMutableData.fromPointer($ret, retain: true, release: true); + } + /// new static NSMutableData new$() { final $ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_new); @@ -11566,6 +11954,66 @@ extension type NSMutableData._(objc.ObjCObject object$) } extension NSMutableData$Methods on NSMutableData { + /// compressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSMutableData? compressedDataUsingAlgorithm( + NSDataCompressionAlgorithm algorithm, + ) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableData.compressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1vnlaqg( + _$$ref.pointer, + _sel_compressedDataUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSMutableData.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + + /// decompressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSMutableData? decompressedDataUsingAlgorithm( + NSDataCompressionAlgorithm algorithm, + ) { + final _$$ref = object$.ref; + objc.checkOsVersionInternal( + 'NSMutableData.decompressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final $err = pkg_ffi.calloc>(); + try { + final $ret = _objc_msgSend_1vnlaqg( + _$$ref.pointer, + _sel_decompressedDataUsingAlgorithm_error_, + algorithm.value, + $err, + ); + objc.NSErrorException.checkErrorPointer($err.value); + return $ret.address == 0 + ? null + : NSMutableData.fromPointer($ret, retain: true, release: true); + } finally { + pkg_ffi.calloc.free($err); + } + } + /// init NSMutableData init() { final _$$ref = object$.ref; @@ -11581,6 +12029,52 @@ extension NSMutableData$Methods on NSMutableData { return NSMutableData.fromPointer($ret, retain: false, release: true); } + /// initWithBase64EncodedData:options: + NSMutableData? initWithBase64EncodedData( + NSData base64Data, { + required DartNSUInteger options, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = base64Data.ref; + objc.checkOsVersionInternal( + 'NSMutableData.initWithBase64EncodedData:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_7kpg7m( + _$$ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedData_options_, + _$$ref$1.pointer, + options, + ); + return $ret.address == 0 + ? null + : NSMutableData.fromPointer($ret, retain: false, release: true); + } + + /// initWithBase64EncodedString:options: + NSMutableData? initWithBase64EncodedString( + NSString base64String, { + required DartNSUInteger options, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = base64String.ref; + objc.checkOsVersionInternal( + 'NSMutableData.initWithBase64EncodedString:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final $ret = _objc_msgSend_7kpg7m( + _$$ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedString_options_, + _$$ref$1.pointer, + options, + ); + return $ret.address == 0 + ? null + : NSMutableData.fromPointer($ret, retain: false, release: true); + } + /// initWithBytes:length: NSMutableData initWithBytes( ffi.Pointer bytes, { @@ -11652,6 +12146,19 @@ extension NSMutableData$Methods on NSMutableData { return NSMutableData.fromPointer($ret, retain: false, release: true); } + /// initWithCapacity: + NSMutableData? initWithCapacity(DartNSUInteger capacity) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_14hpxwa( + _$$ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + capacity, + ); + return $ret.address == 0 + ? null + : NSMutableData.fromPointer($ret, retain: false, release: true); + } + /// initWithCoder: NSMutableData? initWithCoder(NSCoder coder) { final _$$ref = object$.ref; @@ -11746,6 +12253,19 @@ extension NSMutableData$Methods on NSMutableData { return NSMutableData.fromPointer($ret, retain: false, release: true); } + /// initWithLength: + NSMutableData? initWithLength(DartNSUInteger length) { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_14hpxwa( + _$$ref.retainAndReturnPointer(), + _sel_initWithLength_, + length, + ); + return $ret.address == 0 + ? null + : NSMutableData.fromPointer($ret, retain: false, release: true); + } + /// length DartNSUInteger get length { final _$$ref = object$.ref; @@ -12071,63 +12591,6 @@ extension NSMutableDictionary$Methods on NSMutableDictionary { } } -/// NSMutableDictionaryCreation -extension NSMutableDictionaryCreation on NSMutableDictionary { - /// initWithContentsOfFile: - NSMutableDictionary? initWithContentsOfFile(NSString path) { - final _$$ref = object$.ref; - final _$$ref$1 = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : NSMutableDictionary.fromPointer($ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - NSMutableDictionary? initWithContentsOfURL(NSURL url) { - final _$$ref = object$.ref; - final _$$ref$1 = url.ref; - final $ret = _objc_msgSend_1sotr3r( - _$$ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - _$$ref$1.pointer, - ); - return $ret.address == 0 - ? null - : NSMutableDictionary.fromPointer($ret, retain: false, release: true); - } - - /// dictionaryWithContentsOfFile: - static NSMutableDictionary? dictionaryWithContentsOfFile(NSString path) { - final _$$ref = path.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableDictionary, - _sel_dictionaryWithContentsOfFile_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : NSMutableDictionary.fromPointer($ret, retain: true, release: true); - } - - /// dictionaryWithContentsOfURL: - static NSMutableDictionary? dictionaryWithContentsOfURL(NSURL url) { - final _$$ref = url.ref; - final $ret = _objc_msgSend_1sotr3r( - _class_NSMutableDictionary, - _sel_dictionaryWithContentsOfURL_, - _$$ref.pointer, - ); - return $ret.address == 0 - ? null - : NSMutableDictionary.fromPointer($ret, retain: true, release: true); - } -} - /// NSMutableIndexSet extension type NSMutableIndexSet._(objc.ObjCObject object$) implements objc.ObjCObject, NSIndexSet { @@ -12392,6 +12855,198 @@ extension type NSMutableOrderedSet._(objc.ObjCObject object$) return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); } + /// orderedSet + static NSMutableOrderedSet orderedSet() { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz( + _class_NSMutableOrderedSet, + _sel_orderedSet, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithArray: + static NSMutableOrderedSet orderedSetWithArray(NSArray array) { + final _$$ref = array.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithArray_, + _$$ref.pointer, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithArray:range:copyItems: + static NSMutableOrderedSet orderedSetWithArray$1( + NSArray array, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = array.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _class_NSMutableOrderedSet, + _sel_orderedSetWithArray_range_copyItems_, + _$$ref.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithCapacity: + static NSMutableOrderedSet orderedSetWithCapacity(DartNSUInteger numItems) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithCapacity:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_14hpxwa( + _class_NSMutableOrderedSet, + _sel_orderedSetWithCapacity_, + numItems, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObject: + static NSMutableOrderedSet orderedSetWithObject(objc.ObjCObject object) { + final _$$ref = object.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObject_, + _$$ref.pointer, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObjects: + static NSMutableOrderedSet orderedSetWithObjects(objc.ObjCObject firstObj) { + final _$$ref = firstObj.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObjects_, + _$$ref.pointer, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObjects:count: + static NSMutableOrderedSet orderedSetWithObjects$1( + ffi.Pointer> objects, { + required DartNSUInteger count, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_zmbtbd( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObjects_count_, + objects, + count, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet: + static NSMutableOrderedSet orderedSetWithOrderedSet(NSOrderedSet set) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithOrderedSet_, + _$$ref.pointer, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet:range:copyItems: + static NSMutableOrderedSet orderedSetWithOrderedSet$1( + NSOrderedSet set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _class_NSMutableOrderedSet, + _sel_orderedSetWithOrderedSet_range_copyItems_, + _$$ref.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithSet: + static NSMutableOrderedSet orderedSetWithSet(NSSet set) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithSet_, + _$$ref.pointer, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithSet:copyItems: + static NSMutableOrderedSet orderedSetWithSet$1( + NSSet set, { + required bool copyItems, + }) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _class_NSMutableOrderedSet, + _sel_orderedSetWithSet_copyItems_, + _$$ref.pointer, + copyItems, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: true, release: true); + } + /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( @@ -12420,6 +13075,64 @@ extension NSMutableOrderedSet$Methods on NSMutableOrderedSet { return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); } + /// initWithArray: + NSMutableOrderedSet initWithArray(NSArray array) { + final _$$ref = object$.ref; + final _$$ref$1 = array.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_, + _$$ref$1.pointer, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + NSMutableOrderedSet initWithArray$1(NSArray set, {required bool copyItems}) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithArray:range:copyItems: + NSMutableOrderedSet initWithArray$2( + NSArray set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_range_copyItems_, + _$$ref$1.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); + } + /// initWithCapacity: NSMutableOrderedSet initWithCapacity(DartNSUInteger numItems) { final _$$ref = object$.ref; @@ -12450,8 +13163,42 @@ extension NSMutableOrderedSet$Methods on NSMutableOrderedSet { : NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); } + /// initWithObject: + NSMutableOrderedSet initWithObject(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObject_, + _$$ref$1.pointer, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithObjects: + NSMutableOrderedSet initWithObjects(objc.ObjCObject firstObj) { + final _$$ref = object$.ref; + final _$$ref$1 = firstObj.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjects_, + _$$ref$1.pointer, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); + } + /// initWithObjects:count: - NSMutableOrderedSet initWithObjects( + NSMutableOrderedSet initWithObjects$1( ffi.Pointer> objects, { required DartNSUInteger count, }) { @@ -12470,6 +13217,102 @@ extension NSMutableOrderedSet$Methods on NSMutableOrderedSet { return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); } + /// initWithOrderedSet: + NSMutableOrderedSet initWithOrderedSet(NSOrderedSet set) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_, + _$$ref$1.pointer, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithOrderedSet:copyItems: + NSMutableOrderedSet initWithOrderedSet$1( + NSOrderedSet set, { + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithOrderedSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithOrderedSet:range:copyItems: + NSMutableOrderedSet initWithOrderedSet$2( + NSOrderedSet set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_range_copyItems_, + _$$ref$1.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet: + NSMutableOrderedSet initWithSet(NSSet set) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_, + _$$ref$1.pointer, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + NSMutableOrderedSet initWithSet$1(NSSet set, {required bool copyItems}) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return NSMutableOrderedSet.fromPointer($ret, retain: false, release: true); + } + /// insertObject:atIndex: void insertObject(objc.ObjCObject object, {required DartNSUInteger atIndex}) { final _$$ref = object$.ref; @@ -12777,9 +13620,6 @@ extension NSMutableSet$Methods on NSMutableSet { } } -/// NSMutableSetCreation -extension NSMutableSetCreation on NSMutableSet {} - /// NSMutableString extension type NSMutableString._(objc.ObjCObject object$) implements objc.ObjCObject, NSString { @@ -13545,6 +14385,41 @@ extension type NSNotification._(objc.ObjCObject object$) return NSNotification.fromPointer($ret, retain: false, release: true); } + /// notificationWithName:object: + static NSNotification notificationWithName( + NSString aName, { + objc.ObjCObject? object, + }) { + final _$$ref = aName.ref; + final _$$ref$1 = object?.ref; + final $ret = _objc_msgSend_15qeuct( + _class_NSNotification, + _sel_notificationWithName_object_, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + ); + return NSNotification.fromPointer($ret, retain: true, release: true); + } + + /// notificationWithName:object:userInfo: + static NSNotification notificationWithName$1( + NSString aName, { + objc.ObjCObject? object, + NSDictionary? userInfo, + }) { + final _$$ref = aName.ref; + final _$$ref$1 = object?.ref; + final _$$ref$2 = userInfo?.ref; + final $ret = _objc_msgSend_11spmsz( + _class_NSNotification, + _sel_notificationWithName_object_userInfo_, + _$$ref.pointer, + _$$ref$1?.pointer ?? ffi.nullptr, + _$$ref$2?.pointer ?? ffi.nullptr, + ); + return NSNotification.fromPointer($ret, retain: true, release: true); + } + /// Returns a new instance of NSNotification constructed with the default `new` method. NSNotification() : this.as(new$().object$); } @@ -13561,6 +14436,16 @@ extension NSNotification$Methods on NSNotification { ); } + /// init + NSNotification init() { + final _$$ref = object$.ref; + final $ret = _objc_msgSend_151sglz( + _$$ref.retainAndReturnPointer(), + _sel_init, + ); + return NSNotification.fromPointer($ret, retain: false, release: true); + } + /// initWithCoder: NSNotification? initWithCoder(NSCoder coder) { final _$$ref = object$.ref; @@ -16726,6 +17611,180 @@ extension type NSOrderedSet._(objc.ObjCObject object$) return NSOrderedSet.fromPointer($ret, retain: false, release: true); } + /// orderedSet + static NSOrderedSet orderedSet() { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); + return NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithArray: + static NSOrderedSet orderedSetWithArray(NSArray array) { + final _$$ref = array.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithArray_, + _$$ref.pointer, + ); + return NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithArray:range:copyItems: + static NSOrderedSet orderedSetWithArray$1( + NSArray array, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = array.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _class_NSOrderedSet, + _sel_orderedSetWithArray_range_copyItems_, + _$$ref.pointer, + range, + copyItems, + ); + return NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObject: + static NSOrderedSet orderedSetWithObject(objc.ObjCObject object) { + final _$$ref = object.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithObject_, + _$$ref.pointer, + ); + return NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObjects: + static NSOrderedSet orderedSetWithObjects(objc.ObjCObject firstObj) { + final _$$ref = firstObj.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithObjects_, + _$$ref.pointer, + ); + return NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithObjects:count: + static NSOrderedSet orderedSetWithObjects$1( + ffi.Pointer> objects, { + required DartNSUInteger count, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_zmbtbd( + _class_NSOrderedSet, + _sel_orderedSetWithObjects_count_, + objects, + count, + ); + return NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet: + static NSOrderedSet orderedSetWithOrderedSet(NSOrderedSet set) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_, + _$$ref.pointer, + ); + return NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet:range:copyItems: + static NSOrderedSet orderedSetWithOrderedSet$1( + NSOrderedSet set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_range_copyItems_, + _$$ref.pointer, + range, + copyItems, + ); + return NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithSet: + static NSOrderedSet orderedSetWithSet(NSSet set) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithSet_, + _$$ref.pointer, + ); + return NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + + /// orderedSetWithSet:copyItems: + static NSOrderedSet orderedSetWithSet$1( + NSSet set, { + required bool copyItems, + }) { + final _$$ref = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _class_NSOrderedSet, + _sel_orderedSetWithSet_copyItems_, + _$$ref.pointer, + copyItems, + ); + return NSOrderedSet.fromPointer($ret, retain: true, release: true); + } + /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635(_class_NSOrderedSet, _sel_supportsSecureCoding); @@ -16805,6 +17864,64 @@ extension NSOrderedSet$Methods on NSOrderedSet { return NSOrderedSet.fromPointer($ret, retain: false, release: true); } + /// initWithArray: + NSOrderedSet initWithArray(NSArray array) { + final _$$ref = object$.ref; + final _$$ref$1 = array.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_, + _$$ref$1.pointer, + ); + return NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + NSOrderedSet initWithArray$1(NSArray set, {required bool copyItems}) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithArray:range:copyItems: + NSOrderedSet initWithArray$2( + NSArray set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _$$ref.retainAndReturnPointer(), + _sel_initWithArray_range_copyItems_, + _$$ref$1.pointer, + range, + copyItems, + ); + return NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + /// initWithCoder: NSOrderedSet? initWithCoder(NSCoder coder) { final _$$ref = object$.ref; @@ -16819,8 +17936,42 @@ extension NSOrderedSet$Methods on NSOrderedSet { : NSOrderedSet.fromPointer($ret, retain: false, release: true); } + /// initWithObject: + NSOrderedSet initWithObject(objc.ObjCObject object) { + final _$$ref = object$.ref; + final _$$ref$1 = object.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObject_, + _$$ref$1.pointer, + ); + return NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithObjects: + NSOrderedSet initWithObjects(objc.ObjCObject firstObj) { + final _$$ref = object$.ref; + final _$$ref$1 = firstObj.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithObjects_, + _$$ref$1.pointer, + ); + return NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + /// initWithObjects:count: - NSOrderedSet initWithObjects( + NSOrderedSet initWithObjects$1( ffi.Pointer> objects, { required DartNSUInteger count, }) { @@ -16839,6 +17990,102 @@ extension NSOrderedSet$Methods on NSOrderedSet { return NSOrderedSet.fromPointer($ret, retain: false, release: true); } + /// initWithOrderedSet: + NSOrderedSet initWithOrderedSet(NSOrderedSet set) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_, + _$$ref$1.pointer, + ); + return NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithOrderedSet:copyItems: + NSOrderedSet initWithOrderedSet$1( + NSOrderedSet set, { + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithOrderedSet:range:copyItems: + NSOrderedSet initWithOrderedSet$2( + NSOrderedSet set, { + required NSRange range, + required bool copyItems, + }) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_w9bq5x( + _$$ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_range_copyItems_, + _$$ref$1.pointer, + range, + copyItems, + ); + return NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet: + NSOrderedSet initWithSet(NSSet set) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_1sotr3r( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_, + _$$ref$1.pointer, + ); + return NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + NSOrderedSet initWithSet$1(NSSet set, {required bool copyItems}) { + final _$$ref = object$.ref; + final _$$ref$1 = set.ref; + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + _$$ref$1.pointer, + copyItems, + ); + return NSOrderedSet.fromPointer($ret, retain: false, release: true); + } + /// objectAtIndex: objc.ObjCObject objectAtIndex(DartNSUInteger idx) { final _$$ref = object$.ref; @@ -16904,6 +18151,66 @@ extension type NSOutputStream._(objc.ObjCObject object$) return NSOutputStream.fromPointer($ret, retain: false, release: true); } + /// outputStreamToBuffer:capacity: + static NSOutputStream outputStreamToBuffer( + ffi.Pointer buffer, { + required DartNSUInteger capacity, + }) { + final $ret = _objc_msgSend_158ju31( + _class_NSOutputStream, + _sel_outputStreamToBuffer_capacity_, + buffer, + capacity, + ); + return NSOutputStream.fromPointer($ret, retain: true, release: true); + } + + /// outputStreamToFileAtPath:append: + static NSOutputStream outputStreamToFileAtPath( + NSString path, { + required bool append, + }) { + final _$$ref = path.ref; + final $ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamToFileAtPath_append_, + _$$ref.pointer, + append, + ); + return NSOutputStream.fromPointer($ret, retain: true, release: true); + } + + /// outputStreamToMemory + static NSOutputStream outputStreamToMemory() { + final $ret = _objc_msgSend_151sglz( + _class_NSOutputStream, + _sel_outputStreamToMemory, + ); + return NSOutputStream.fromPointer($ret, retain: true, release: true); + } + + /// outputStreamWithURL:append: + static NSOutputStream? outputStreamWithURL( + NSURL url, { + required bool append, + }) { + final _$$ref = url.ref; + objc.checkOsVersionInternal( + 'NSOutputStream.outputStreamWithURL:append:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final $ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamWithURL_append_, + _$$ref.pointer, + append, + ); + return $ret.address == 0 + ? null + : NSOutputStream.fromPointer($ret, retain: true, release: true); + } + /// Returns a new instance of NSOutputStream constructed with the default `new` method. NSOutputStream() : this.as(new$().object$); } @@ -16945,6 +18252,21 @@ extension NSOutputStream$Methods on NSOutputStream { return NSOutputStream.fromPointer($ret, retain: false, release: true); } + /// initToFileAtPath:append: + NSOutputStream? initToFileAtPath(NSString path, {required bool append}) { + final _$$ref = object$.ref; + final _$$ref$1 = path.ref; + final $ret = _objc_msgSend_17amj0z( + _$$ref.retainAndReturnPointer(), + _sel_initToFileAtPath_append_, + _$$ref$1.pointer, + append, + ); + return $ret.address == 0 + ? null + : NSOutputStream.fromPointer($ret, retain: false, release: true); + } + /// initToMemory NSOutputStream initToMemory() { final _$$ref = object$.ref; @@ -19149,9 +20471,6 @@ extension NSSet$Methods on NSSet { } } -/// NSSetCreation -extension NSSetCreation on NSSet {} - sealed class NSSortOptions { static const NSSortConcurrent = 1; static const NSSortStable = 16; @@ -35806,6 +37125,27 @@ final _objc_msgSend_182fzonStret = objc.msgSendStretPointer ffi.Pointer, ) >(); +final _objc_msgSend_187k8ck = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); final _objc_msgSend_1895u4n = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -37376,6 +38716,25 @@ final _objc_msgSend_1vd1c5m = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_1vnlaqg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1vxoo9h = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -37661,6 +39020,29 @@ final _objc_msgSend_3ctkt6 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_3fn4ca = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_3l8zum = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -37860,6 +39242,25 @@ final _objc_msgSend_7g3u2y = objc.msgSendPointer int, ) >(); +final _objc_msgSend_7kpg7m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_7uautw = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -39232,6 +40633,25 @@ final _objc_msgSend_rc4ypv = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_s058d2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSUInteger, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_s92gih = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -39435,6 +40855,27 @@ final _objc_msgSend_vbymrb = objc.msgSendPointer int, ) >(); +final _objc_msgSend_w9bq5x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + bool, + ) + >(); final _objc_msgSend_xe84da = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -39800,15 +41241,6 @@ late final _sel_arrayByAddingObjectsFromArray_ = objc.registerName( ); late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); -late final _sel_arrayWithContentsOfFile_ = objc.registerName( - "arrayWithContentsOfFile:", -); -late final _sel_arrayWithContentsOfURL_ = objc.registerName( - "arrayWithContentsOfURL:", -); -late final _sel_arrayWithContentsOfURL_error_ = objc.registerName( - "arrayWithContentsOfURL:error:", -); late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); late final _sel_arrayWithObjects_count_ = objc.registerName( @@ -39918,6 +41350,9 @@ late final _sel_componentsSeparatedByCharactersInSet_ = objc.registerName( late final _sel_componentsSeparatedByString_ = objc.registerName( "componentsSeparatedByString:", ); +late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( + "compressedDataUsingAlgorithm:error:", +); late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); late final _sel_containsIndex_ = objc.registerName("containsIndex:"); late final _sel_containsIndexesInRange_ = objc.registerName( @@ -39954,6 +41389,7 @@ late final _sel_dataWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( late final _sel_dataWithBytes_length_ = objc.registerName( "dataWithBytes:length:", ); +late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); late final _sel_dataWithContentsOfFile_ = objc.registerName( "dataWithContentsOfFile:", ); @@ -39967,6 +41403,7 @@ late final _sel_dataWithContentsOfURL_options_error_ = objc.registerName( "dataWithContentsOfURL:options:error:", ); late final _sel_dataWithData_ = objc.registerName("dataWithData:"); +late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); late final _sel_date = objc.registerName("date"); late final _sel_dateByAddingTimeInterval_ = objc.registerName( "dateByAddingTimeInterval:", @@ -40002,6 +41439,9 @@ late final _sel_decomposedStringWithCanonicalMapping = objc.registerName( late final _sel_decomposedStringWithCompatibilityMapping = objc.registerName( "decomposedStringWithCompatibilityMapping", ); +late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( + "decompressedDataUsingAlgorithm:error:", +); late final _sel_defaultCStringEncoding = objc.registerName( "defaultCStringEncoding", ); @@ -40023,15 +41463,6 @@ late final _sel_dictionary = objc.registerName("dictionary"); late final _sel_dictionaryWithCapacity_ = objc.registerName( "dictionaryWithCapacity:", ); -late final _sel_dictionaryWithContentsOfFile_ = objc.registerName( - "dictionaryWithContentsOfFile:", -); -late final _sel_dictionaryWithContentsOfURL_ = objc.registerName( - "dictionaryWithContentsOfURL:", -); -late final _sel_dictionaryWithContentsOfURL_error_ = objc.registerName( - "dictionaryWithContentsOfURL:error:", -); late final _sel_dictionaryWithDictionary_ = objc.registerName( "dictionaryWithDictionary:", ); @@ -40056,8 +41487,6 @@ late final _sel_discreteProgressWithTotalUnitCount_ = objc.registerName( late final _sel_displayNameForKey_value_ = objc.registerName( "displayNameForKey:value:", ); -late final _sel_distantFuture = objc.registerName("distantFuture"); -late final _sel_distantPast = objc.registerName("distantPast"); late final _sel_doesNotRecognizeSelector_ = objc.registerName( "doesNotRecognizeSelector:", ); @@ -40320,11 +41749,26 @@ late final _sel_initForKeyPath_ofObject_withObserver_options_context_ = objc late final _sel_initToBuffer_capacity_ = objc.registerName( "initToBuffer:capacity:", ); +late final _sel_initToFileAtPath_append_ = objc.registerName( + "initToFileAtPath:append:", +); late final _sel_initToMemory = objc.registerName("initToMemory"); late final _sel_initWithArray_ = objc.registerName("initWithArray:"); late final _sel_initWithArray_copyItems_ = objc.registerName( "initWithArray:copyItems:", ); +late final _sel_initWithArray_range_copyItems_ = objc.registerName( + "initWithArray:range:copyItems:", +); +late final _sel_initWithAttributedString_ = objc.registerName( + "initWithAttributedString:", +); +late final _sel_initWithBase64EncodedData_options_ = objc.registerName( + "initWithBase64EncodedData:options:", +); +late final _sel_initWithBase64EncodedString_options_ = objc.registerName( + "initWithBase64EncodedString:options:", +); late final _sel_initWithBool_ = objc.registerName("initWithBool:"); late final _sel_initWithBytesNoCopy_length_ = objc.registerName( "initWithBytesNoCopy:length:", @@ -40375,15 +41819,16 @@ late final _sel_initWithContentsOfFile_options_error_ = objc.registerName( late final _sel_initWithContentsOfFile_usedEncoding_error_ = objc.registerName( "initWithContentsOfFile:usedEncoding:error:", ); +late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_ = + objc.registerName( + "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:", + ); late final _sel_initWithContentsOfURL_ = objc.registerName( "initWithContentsOfURL:", ); late final _sel_initWithContentsOfURL_encoding_error_ = objc.registerName( "initWithContentsOfURL:encoding:error:", ); -late final _sel_initWithContentsOfURL_error_ = objc.registerName( - "initWithContentsOfURL:error:", -); late final _sel_initWithContentsOfURL_options_error_ = objc.registerName( "initWithContentsOfURL:options:error:", ); @@ -40405,6 +41850,7 @@ late final _sel_initWithDomain_code_userInfo_ = objc.registerName( "initWithDomain:code:userInfo:", ); late final _sel_initWithDouble_ = objc.registerName("initWithDouble:"); +late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); late final _sel_initWithFireDate_interval_repeats_block_ = objc.registerName( "initWithFireDate:interval:repeats:block:", ); @@ -40417,6 +41863,12 @@ late final _sel_initWithFormat_ = objc.registerName("initWithFormat:"); late final _sel_initWithFormat_locale_ = objc.registerName( "initWithFormat:locale:", ); +late final _sel_initWithFormat_options_locale_ = objc.registerName( + "initWithFormat:options:locale:", +); +late final _sel_initWithFormat_options_locale_context_ = objc.registerName( + "initWithFormat:options:locale:context:", +); late final _sel_initWithIndexSet_ = objc.registerName("initWithIndexSet:"); late final _sel_initWithIndex_ = objc.registerName("initWithIndex:"); late final _sel_initWithIndexesInRange_ = objc.registerName( @@ -40435,11 +41887,17 @@ late final _sel_initWithInteger_ = objc.registerName("initWithInteger:"); late final _sel_initWithItem_typeIdentifier_ = objc.registerName( "initWithItem:typeIdentifier:", ); +late final _sel_initWithLength_ = objc.registerName("initWithLength:"); late final _sel_initWithLocaleIdentifier_ = objc.registerName( "initWithLocaleIdentifier:", ); late final _sel_initWithLongLong_ = objc.registerName("initWithLongLong:"); late final _sel_initWithLong_ = objc.registerName("initWithLong:"); +late final _sel_initWithMarkdownString_options_baseURL_error_ = objc + .registerName("initWithMarkdownString:options:baseURL:error:"); +late final _sel_initWithMarkdown_options_baseURL_error_ = objc.registerName( + "initWithMarkdown:options:baseURL:error:", +); late final _sel_initWithName_object_userInfo_ = objc.registerName( "initWithName:object:userInfo:", ); @@ -40463,6 +41921,13 @@ late final _sel_initWithObjects_forKeys_ = objc.registerName( late final _sel_initWithObjects_forKeys_count_ = objc.registerName( "initWithObjects:forKeys:count:", ); +late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); +late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( + "initWithOrderedSet:copyItems:", +); +late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( + "initWithOrderedSet:range:copyItems:", +); late final _sel_initWithParent_userInfo_ = objc.registerName( "initWithParent:userInfo:", ); @@ -40476,6 +41941,9 @@ late final _sel_initWithSet_copyItems_ = objc.registerName( ); late final _sel_initWithShort_ = objc.registerName("initWithShort:"); late final _sel_initWithString_ = objc.registerName("initWithString:"); +late final _sel_initWithString_attributes_ = objc.registerName( + "initWithString:attributes:", +); late final _sel_initWithString_encodingInvalidCharacters_ = objc.registerName( "initWithString:encodingInvalidCharacters:", ); @@ -40522,9 +41990,16 @@ late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_ = "initWithValidatedFormat:validFormatSpecifiers:locale:error:", ); late final _sel_initialize = objc.registerName("initialize"); +late final _sel_inputStreamWithData_ = objc.registerName( + "inputStreamWithData:", +); +late final _sel_inputStreamWithFileAtPath_ = objc.registerName( + "inputStreamWithFileAtPath:", +); late final _sel_inputStreamWithPort_ = objc.registerName( "inputStreamWithPort:", ); +late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); late final _sel_insertObject_atIndex_ = objc.registerName( "insertObject:atIndex:", ); @@ -40655,12 +42130,24 @@ late final _sel_loadItemForTypeIdentifier_options_completionHandler_ = objc late final _sel_loadObjectOfClass_completionHandler_ = objc.registerName( "loadObjectOfClass:completionHandler:", ); +late final _sel_localeWithLocaleIdentifier_ = objc.registerName( + "localeWithLocaleIdentifier:", +); late final _sel_localizations = objc.registerName("localizations"); late final _sel_localizedAdditionalDescription = objc.registerName( "localizedAdditionalDescription", ); late final _sel_localizedAttributedStringForKey_value_table_ = objc .registerName("localizedAttributedStringForKey:value:table:"); +late final _sel_localizedAttributedStringWithFormat_ = objc.registerName( + "localizedAttributedStringWithFormat:", +); +late final _sel_localizedAttributedStringWithFormat_context_ = objc + .registerName("localizedAttributedStringWithFormat:context:"); +late final _sel_localizedAttributedStringWithFormat_options_ = objc + .registerName("localizedAttributedStringWithFormat:options:"); +late final _sel_localizedAttributedStringWithFormat_options_context_ = objc + .registerName("localizedAttributedStringWithFormat:options:context:"); late final _sel_localizedCapitalizedString = objc.registerName( "localizedCapitalizedString", ); @@ -40761,7 +42248,12 @@ late final _sel_new = objc.registerName("new"); late final _sel_newlineCharacterSet = objc.registerName("newlineCharacterSet"); late final _sel_nextObject = objc.registerName("nextObject"); late final _sel_nonBaseCharacterSet = objc.registerName("nonBaseCharacterSet"); -late final _sel_now = objc.registerName("now"); +late final _sel_notificationWithName_object_ = objc.registerName( + "notificationWithName:object:", +); +late final _sel_notificationWithName_object_userInfo_ = objc.registerName( + "notificationWithName:object:userInfo:", +); late final _sel_null = objc.registerName("null"); late final _sel_numberOfArguments = objc.registerName("numberOfArguments"); late final _sel_numberWithBool_ = objc.registerName("numberWithBool:"); @@ -40816,6 +42308,47 @@ late final _sel_objectsWithOptions_passingTest_ = objc.registerName( late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc .registerName("observeValueForKeyPath:ofObject:change:context:"); late final _sel_open = objc.registerName("open"); +late final _sel_orderedSet = objc.registerName("orderedSet"); +late final _sel_orderedSetWithArray_ = objc.registerName( + "orderedSetWithArray:", +); +late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( + "orderedSetWithArray:range:copyItems:", +); +late final _sel_orderedSetWithCapacity_ = objc.registerName( + "orderedSetWithCapacity:", +); +late final _sel_orderedSetWithObject_ = objc.registerName( + "orderedSetWithObject:", +); +late final _sel_orderedSetWithObjects_ = objc.registerName( + "orderedSetWithObjects:", +); +late final _sel_orderedSetWithObjects_count_ = objc.registerName( + "orderedSetWithObjects:count:", +); +late final _sel_orderedSetWithOrderedSet_ = objc.registerName( + "orderedSetWithOrderedSet:", +); +late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( + "orderedSetWithOrderedSet:range:copyItems:", +); +late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); +late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( + "orderedSetWithSet:copyItems:", +); +late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( + "outputStreamToBuffer:capacity:", +); +late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( + "outputStreamToFileAtPath:append:", +); +late final _sel_outputStreamToMemory = objc.registerName( + "outputStreamToMemory", +); +late final _sel_outputStreamWithURL_append_ = objc.registerName( + "outputStreamWithURL:append:", +); late final _sel_paragraphRangeForRange_ = objc.registerName( "paragraphRangeForRange:", ); From 090ddb6bc4347cbac84d5156c308bafcd4ded56c Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 14 Aug 2026 10:01:58 +1000 Subject: [PATCH 41/54] cleaning --- pkgs/ffigen/lib/src/code_generator/func.dart | 1 - .../lib/src/visitor/apply_config_filters.dart | 7 +------ .../ffigen/lib/src/visitor/list_bindings.dart | 21 ------------------- 3 files changed, 1 insertion(+), 28 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/func.dart b/pkgs/ffigen/lib/src/code_generator/func.dart index 1dc3e155a9..6e81e1f674 100644 --- a/pkgs/ffigen/lib/src/code_generator/func.dart +++ b/pkgs/ffigen/lib/src/code_generator/func.dart @@ -63,7 +63,6 @@ class Func extends LookUpBinding with HasLocalScope { /// Contains typealias for function type if [exposeFunctionTypedefs] is true. Typealias? _exposedFunctionTypealias; - Typealias? get exposedFunctionTypealias => _exposedFunctionTypealias; bool isIncluded = false; diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index 3476136cba..88158d5892 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -39,12 +39,7 @@ class ApplyConfigFiltersVisitation extends Visitation { } @override - void visitFunc(Func node) { - if (node.isIncluded) { - node.exposedFunctionTypealias?.isIncluded = true; - } - _visitImpl(node, node.isIncluded); - } + void visitFunc(Func node) => _visitImpl(node, node.isIncluded); @override void visitMacroConstant(MacroConstant node) => diff --git a/pkgs/ffigen/lib/src/visitor/list_bindings.dart b/pkgs/ffigen/lib/src/visitor/list_bindings.dart index 26580d2e9f..d132d2d465 100644 --- a/pkgs/ffigen/lib/src/visitor/list_bindings.dart +++ b/pkgs/ffigen/lib/src/visitor/list_bindings.dart @@ -119,16 +119,6 @@ class ListBindingsVisitation extends Visitation { } } - @override - void visitFunc(Func node) { - if (_visitImpl(node, _IncludeBehavior.configOrTransitive)) { - final exposed = node.exposedFunctionTypealias; - if (exposed != null) { - _add(exposed); - } - } - } - @override void visitTypealias(Typealias node) { if (_visitImpl( @@ -170,17 +160,6 @@ class MarkBindingsVisitation extends Visitation { node.generateBindings = bindings.contains(node); } - @override - void visitFunc(Func node) { - visitBinding(node); - if (node.generateBindings) { - final exposed = node.exposedFunctionTypealias; - if (exposed != null) { - exposed.generateBindings = true; - } - } - } - @override void visitTypealias(Typealias node) { visitBinding(node); From 8fa206f6e6df6a469cf6036093ca34fe30ce03df Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 14 Aug 2026 10:13:43 +1000 Subject: [PATCH 42/54] clean up example --- pkgs/ffigen/example/objective_c/generate_code.dart | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/ffigen/example/objective_c/generate_code.dart b/pkgs/ffigen/example/objective_c/generate_code.dart index 7b0417d12a..de3e1f7aeb 100644 --- a/pkgs/ffigen/example/objective_c/generate_code.dart +++ b/pkgs/ffigen/example/objective_c/generate_code.dart @@ -22,11 +22,18 @@ final config = FfiGenerator( // To tell FFIgen to generate Objective-C bindings, rather than C bindings, // set the objectiveC field to a non-null value. objectiveC: const ObjectiveC(), - enums: const Enums(silenceWarning: true), visitors: [ Visitor( - visitObjCInterface: (node) => - node.isIncluded = node.name == 'AVAudioPlayer', + // The visitObjCInterface function is invoked for each interface + // discovered while parsing the entryPoints. + visitObjCInterface: (node) { + if (node.name == 'AVAudioPlayer') { + // API elements like interfaces are excluded from the generated + // bindings by default. So choose the ones you want to include and set + // .isIncluded to true. + node.isIncluded = true; + } + } ), ], From f74dd485a5c3bd195b43855ea371db355f77d91c Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 14 Aug 2026 10:39:49 +1000 Subject: [PATCH 43/54] clean up --- .../example/objective_c/generate_code.dart | 2 +- .../sub_parsers/compounddecl_parser.dart | 18 ++---------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/pkgs/ffigen/example/objective_c/generate_code.dart b/pkgs/ffigen/example/objective_c/generate_code.dart index de3e1f7aeb..ee8fd45601 100644 --- a/pkgs/ffigen/example/objective_c/generate_code.dart +++ b/pkgs/ffigen/example/objective_c/generate_code.dart @@ -33,7 +33,7 @@ final config = FfiGenerator( // .isIncluded to true. node.isIncluded = true; } - } + }, ), ], diff --git a/pkgs/ffigen/lib/src/header_parser/sub_parsers/compounddecl_parser.dart b/pkgs/ffigen/lib/src/header_parser/sub_parsers/compounddecl_parser.dart index 3bd22b2c04..04cef10514 100644 --- a/pkgs/ffigen/lib/src/header_parser/sub_parsers/compounddecl_parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/sub_parsers/compounddecl_parser.dart @@ -3,7 +3,6 @@ // BSD-style license that can be found in the LICENSE file. import '../../code_generator.dart'; -import '../../config_provider/config.dart'; import '../../context.dart'; import '../../strings.dart' as strings; import '../clang_bindings/clang_bindings.dart' as clang_types; @@ -13,22 +12,10 @@ import 'api_availability.dart'; Compound? parseStructDeclaration( clang_types.CXCursor cursor, Context context, -) => _parseCompoundDeclaration( - cursor, - context, - 'Struct', - context.config.structs, - Struct.new, -); +) => _parseCompoundDeclaration(cursor, context, 'Struct', Struct.new); Compound? parseUnionDeclaration(clang_types.CXCursor cursor, Context context) => - _parseCompoundDeclaration( - cursor, - context, - 'Union', - context.config.unions, - Union.new, - ); + _parseCompoundDeclaration(cursor, context, 'Union', Union.new); /// Holds temporary information regarding [compound] while parsing. class _ParsedCompound { @@ -94,7 +81,6 @@ Compound? _parseCompoundDeclaration( clang_types.CXCursor cursor, Context context, String className, - Declarations configDecl, Compound Function({ String? usr, String? originalName, From 01f29590e8c845fe70e1ace26c658862530f66d7 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 14 Aug 2026 11:34:05 +1000 Subject: [PATCH 44/54] clean up --- .../lib/src/code_generator/func_type.dart | 2 - pkgs/ffigen/lib/src/header_parser/utils.dart | 4 +- .../lib/src/visitor/apply_config_filters.dart | 27 +----------- .../visitor/copy_methods_from_super_type.dart | 11 +++-- .../ffigen/lib/src/visitor/list_bindings.dart | 41 +++---------------- .../decl_symbol_address_collision_test.dart | 3 ++ 6 files changed, 19 insertions(+), 69 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/func_type.dart b/pkgs/ffigen/lib/src/code_generator/func_type.dart index da8e17f787..37cd04f831 100644 --- a/pkgs/ffigen/lib/src/code_generator/func_type.dart +++ b/pkgs/ffigen/lib/src/code_generator/func_type.dart @@ -163,8 +163,6 @@ class NativeFunc extends Type { return _type as FunctionType; } - Typealias? get functionTypealias => _type is Typealias ? _type : null; - @override String getCType(Context context, {bool writeArgumentNames = true}) { final funcType = _type is FunctionType diff --git a/pkgs/ffigen/lib/src/header_parser/utils.dart b/pkgs/ffigen/lib/src/header_parser/utils.dart index bf1f236fa3..0e1bb5bceb 100644 --- a/pkgs/ffigen/lib/src/header_parser/utils.dart +++ b/pkgs/ffigen/lib/src/header_parser/utils.dart @@ -574,9 +574,7 @@ class BindingsIndex { void addObjCCategoryToSeen(String usr, ObjCCategory t) => _objcCategories[usr] = t; ObjCCategory? getSeenObjCCategory(String usr) => _objcCategories[usr]; - Iterable get seenObjCInterfaces => _objcInterfaces.values; - Iterable get seenObjCProtocols => _objcProtocols.values; - Iterable get seenObjCCategories => _objcCategories.values; + bool isSeenObjCCategory(String usr) => _objcCategories.containsKey(usr); } class CursorIndex { diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index 88158d5892..1380dafc21 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -66,12 +66,8 @@ class ApplyConfigFiltersVisitation extends Visitation { @override void visitObjCCategory(ObjCCategory node) { if (context.config.objectiveC == null) return; - final includeTransitiveCategories = - context.config.objectiveC?.categories.includeTransitive ?? true; - if (includeTransitiveCategories && - (directlyIncluded.contains(node.parent) || - indirectlyIncluded.contains(node.parent) || - (node.parent.isObjCImport && node.parent.isIncluded)) && + if (context.config.objectiveC!.categories.includeTransitive && + node.parent.isIncluded && node.originalName.isNotEmpty) { node.isIncluded = true; } @@ -119,25 +115,6 @@ class ApplyConfigFiltersVisitation extends Visitation { @override void visitTypealias(Typealias node) { if (node.isAnonymous) return; - if (node.isIncluded) { - final internalFunc = _getFunctionTypealias(node.type); - if (internalFunc != null) { - internalFunc.isIncluded = true; - } - } _visitImpl(node, node.isIncluded); } } - -Typealias? _getFunctionTypealias(Type type) { - if (type is Typealias) { - type = type.type; - } - if (type is PointerType) { - final child = type.child; - if (child is NativeFunc) { - return child.functionTypealias; - } - } - return null; -} diff --git a/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart b/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart index fc2796a935..4f4f82ce09 100644 --- a/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart +++ b/pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart @@ -66,10 +66,15 @@ class CopyMethodsFromSuperTypesVisitation extends Visitation { // Copy all methods from all the interface's protocols. _copyMethodFromProtocols(node, node.protocols); - // Copy methods from all included categories that extend this interface, - // if those methods return instancetype, because the Dart inheritance - // rules don't match the ObjC rules regarding instancetype. + // Copy methods from all the categories that extend this interface, if those + // methods return instancetype, because the Dart inheritance rules don't + // match the ObjC rules regarding instancetype. // Also copy all methods from any anonymous categories. + // NOTE: The methods are copied regardless of whether the category is + // included by the config filters, since this method copying visit happens + // before the filtering visit. This is technically a bug, but it's unlikely + // to bother anyone, and the fix would be complicated. So we'll ignore it + // for now. for (final category in node.categories) { for (final m in category.methods) { if (category.shouldCopyMethodToInterface(m)) { diff --git a/pkgs/ffigen/lib/src/visitor/list_bindings.dart b/pkgs/ffigen/lib/src/visitor/list_bindings.dart index d132d2d465..6f9bfa6888 100644 --- a/pkgs/ffigen/lib/src/visitor/list_bindings.dart +++ b/pkgs/ffigen/lib/src/visitor/list_bindings.dart @@ -121,19 +121,12 @@ class ListBindingsVisitation extends Visitation { @override void visitTypealias(Typealias node) { - if (_visitImpl( + _visitImpl( node, - node.isInternal - ? _IncludeBehavior.transitive - : (config.typedefs.includeUnused - ? _IncludeBehavior.configOnly - : _IncludeBehavior.configAndTransitive), - )) { - final internalFunc = _getFunctionTypealias(node.type); - if (internalFunc != null) { - _add(internalFunc); - } - } + config.typedefs.includeUnused + ? _IncludeBehavior.configOnly + : _IncludeBehavior.configAndTransitive, + ); // Objective C has some core typedefs that are important to keep. if (config.objectiveC != null && @@ -159,28 +152,4 @@ class MarkBindingsVisitation extends Visitation { node.visitChildren(visitor); node.generateBindings = bindings.contains(node); } - - @override - void visitTypealias(Typealias node) { - visitBinding(node); - if (node.generateBindings) { - final internalFunc = _getFunctionTypealias(node.type); - if (internalFunc != null) { - internalFunc.generateBindings = true; - } - } - } -} - -Typealias? _getFunctionTypealias(Type type) { - if (type is Typealias) { - type = type.type; - } - if (type is PointerType) { - final child = type.child; - if (child is NativeFunc) { - return child.functionTypealias; - } - } - return null; } diff --git a/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart b/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart index 7b1870d16e..cc5ced0456 100644 --- a/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart +++ b/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart @@ -25,6 +25,9 @@ void main() { visitFunc: (node) => node.isIncluded = true, visitStruct: (node) => node.isIncluded = true, visitEnum: (node) => node.isIncluded = true, + visitGlobal: (node) => node.isIncluded = true, + visitMacro: (node) => node.isIncluded = true, + visitTypealias: (node) => node.isIncluded = true, ), ], ), From f22482772ab412d88f4b26949f38255def583dcf Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 14 Aug 2026 12:32:01 +1000 Subject: [PATCH 45/54] migrate monorepo configs --- .../example/host_name/tool/ffigen.dart | 8 +- .../example/mini_audio/tool/ffigen.dart | 28 +- .../example/sqlite/tool/ffigen.dart | 11 +- .../example/sqlite_no_link/tool/ffigen.dart | 7 +- .../example/sqlite_prebuilt/tool/ffigen.dart | 7 +- .../example/stb_image/tool/ffigen.dart | 8 +- pkgs/ffigen/README.md | 8 +- pkgs/ffigen/example/objective_c/README.md | 10 +- .../tool/ffigen.dart | 12 +- pkgs/swiftgen/example/avf_audio_bindings.dart | 1011 +++++++++-------- pkgs/swiftgen/example/generate_code.dart | 12 +- pkgs/swiftgen/lib/src/config.dart | 20 +- pkgs/swiftgen/lib/src/generator.dart | 6 - pkgs/swiftgen/test/integration/util.dart | 20 +- 14 files changed, 601 insertions(+), 567 deletions(-) diff --git a/pkgs/code_assets/example/host_name/tool/ffigen.dart b/pkgs/code_assets/example/host_name/tool/ffigen.dart index f434f8488e..1e0ab9b657 100644 --- a/pkgs/code_assets/example/host_name/tool/ffigen.dart +++ b/pkgs/code_assets/example/host_name/tool/ffigen.dart @@ -8,12 +8,14 @@ import 'package:ffigen/ffigen.dart'; void main() { final packageRoot = Platform.script.resolve('../'); - final functions = Functions.includeSet({'gethostname'}); + final visitors = [ + Visitor(visitFunc: (node) => node.isIncluded = node.name == 'gethostname'), + ]; final FfiGenerator generator; if (Platform.isWindows) { generator = FfiGenerator( input: Input(entryPoints: [packageRoot.resolve('src/windows.h')]), - functions: functions, + visitors: visitors, output: Output( dartFile: packageRoot.resolve('lib/src/third_party/windows.dart'), preamble: ''' @@ -27,7 +29,7 @@ void main() { } else { generator = FfiGenerator( input: Input(entryPoints: [packageRoot.resolve('src/unix.h')]), - functions: functions, + visitors: visitors, output: Output( dartFile: packageRoot.resolve('lib/src/third_party/unix.dart'), preamble: ''' diff --git a/pkgs/code_assets/example/mini_audio/tool/ffigen.dart b/pkgs/code_assets/example/mini_audio/tool/ffigen.dart index a6d3a005dd..cb16f31649 100644 --- a/pkgs/code_assets/example/mini_audio/tool/ffigen.dart +++ b/pkgs/code_assets/example/mini_audio/tool/ffigen.dart @@ -10,21 +10,19 @@ void main() { final packageRoot = Platform.script.resolve('../'); FfiGenerator( input: Input(entryPoints: [packageRoot.resolve('third_party/miniaudio.h')]), - functions: Functions( - include: (decl) => { - 'ma_engine_init', - 'ma_engine_play_sound', - 'ma_engine_uninit', - }.contains(decl.originalName), - recordUse: (_) => true, - ), - structs: Structs( - include: (decl) => {'ma_engine'}.contains(decl.originalName), - ), - enums: Enums( - include: (decl) => {'ma_result'}.contains(decl.originalName), - silenceWarning: true, - ), + functions: Functions(recordUse: (_) => true), + enums: const Enums(silenceWarning: true), + visitors: [ + Visitor( + visitFunc: (node) => node.isIncluded = { + 'ma_engine_init', + 'ma_engine_play_sound', + 'ma_engine_uninit', + }.contains(node.name), + visitStruct: (node) => node.isIncluded = node.name == 'ma_engine', + visitEnum: (node) => node.isIncluded = node.name == 'ma_result', + ), + ], output: Output( dartFile: packageRoot.resolve('lib/src/third_party/miniaudio.g.dart'), recordUseMapping: packageRoot.resolve( diff --git a/pkgs/code_assets/example/sqlite/tool/ffigen.dart b/pkgs/code_assets/example/sqlite/tool/ffigen.dart index ec52a7bbcf..a5d857337d 100644 --- a/pkgs/code_assets/example/sqlite/tool/ffigen.dart +++ b/pkgs/code_assets/example/sqlite/tool/ffigen.dart @@ -12,10 +12,13 @@ void main() { input: Input( entryPoints: [packageRoot.resolve('third_party/sqlite/sqlite3.h')], ), - functions: Functions( - include: (decl) => {'sqlite3_libversion'}.contains(decl.originalName), - recordUse: (_) => true, - ), + functions: Functions(recordUse: (_) => true), + visitors: [ + Visitor( + visitFunc: (node) => + node.isIncluded = node.name == 'sqlite3_libversion', + ), + ], output: Output( dartFile: packageRoot.resolve('lib/src/third_party/sqlite3.g.dart'), recordUseMapping: packageRoot.resolve( diff --git a/pkgs/code_assets/example/sqlite_no_link/tool/ffigen.dart b/pkgs/code_assets/example/sqlite_no_link/tool/ffigen.dart index 41f92e40a3..69f1ddcb2f 100644 --- a/pkgs/code_assets/example/sqlite_no_link/tool/ffigen.dart +++ b/pkgs/code_assets/example/sqlite_no_link/tool/ffigen.dart @@ -12,7 +12,12 @@ void main() { input: Input( entryPoints: [packageRoot.resolve('third_party/sqlite/sqlite3.h')], ), - functions: Functions.includeSet({'sqlite3_libversion'}), + visitors: [ + Visitor( + visitFunc: (node) => + node.isIncluded = node.name == 'sqlite3_libversion', + ), + ], output: Output( dartFile: packageRoot.resolve('lib/src/third_party/sqlite3.g.dart'), preamble: ''' diff --git a/pkgs/code_assets/example/sqlite_prebuilt/tool/ffigen.dart b/pkgs/code_assets/example/sqlite_prebuilt/tool/ffigen.dart index 41f92e40a3..69f1ddcb2f 100644 --- a/pkgs/code_assets/example/sqlite_prebuilt/tool/ffigen.dart +++ b/pkgs/code_assets/example/sqlite_prebuilt/tool/ffigen.dart @@ -12,7 +12,12 @@ void main() { input: Input( entryPoints: [packageRoot.resolve('third_party/sqlite/sqlite3.h')], ), - functions: Functions.includeSet({'sqlite3_libversion'}), + visitors: [ + Visitor( + visitFunc: (node) => + node.isIncluded = node.name == 'sqlite3_libversion', + ), + ], output: Output( dartFile: packageRoot.resolve('lib/src/third_party/sqlite3.g.dart'), preamble: ''' diff --git a/pkgs/code_assets/example/stb_image/tool/ffigen.dart b/pkgs/code_assets/example/stb_image/tool/ffigen.dart index 253397714b..eecb2b1ccb 100644 --- a/pkgs/code_assets/example/stb_image/tool/ffigen.dart +++ b/pkgs/code_assets/example/stb_image/tool/ffigen.dart @@ -10,10 +10,10 @@ void main() { final packageRoot = Platform.script.resolve('../'); FfiGenerator( input: Input(entryPoints: [packageRoot.resolve('third_party/stb_image.h')]), - functions: Functions( - include: (decl) => {'stbi_info'}.contains(decl.originalName), - recordUse: (_) => true, - ), + functions: Functions(recordUse: (_) => true), + visitors: [ + Visitor(visitFunc: (node) => node.isIncluded = node.name == 'stbi_info'), + ], output: Output( dartFile: packageRoot.resolve('lib/src/third_party/stb_image.g.dart'), recordUseMapping: packageRoot.resolve( diff --git a/pkgs/ffigen/README.md b/pkgs/ffigen/README.md index 5e237bf0a1..411f4b3bf8 100644 --- a/pkgs/ffigen/README.md +++ b/pkgs/ffigen/README.md @@ -57,7 +57,7 @@ app has been created via `dart create ffigen_example`. import 'dart:io'; import 'package:ffigen/ffigen.dart'; - + void main() { final packageRoot = Platform.script.resolve('../'); FfiGenerator( @@ -65,8 +65,10 @@ app has been created via `dart create ffigen_example`. output: Output(dartFile: packageRoot.resolve('lib/add.g.dart')), // Optional. Where to look for header files. input: Input(entryPoints: [packageRoot.resolve('src/add.h')]), - // Optional. What functions to generate bindings for. - functions: Functions.includeSet({'add'}), + // Optional. Transform and filter AST nodes. + visitors: [ + Visitor(visitFunc: (node) => node.isIncluded = node.name == 'add'), + ], ).generate(); } ``` diff --git a/pkgs/ffigen/example/objective_c/README.md b/pkgs/ffigen/example/objective_c/README.md index 8e67d0d7a4..6cb83ae5a2 100644 --- a/pkgs/ffigen/example/objective_c/README.md +++ b/pkgs/ffigen/example/objective_c/README.md @@ -11,12 +11,12 @@ dart play_audio.dart test.mp3 The FFIgen config for an Objective C library looks very similar to a C library. The most important difference is that you must set `FfiGenerator.objectiveC`. -If you want to filter which interfaces are included you can use the -`FfiGenerator.objectiveC.interfaces` option. -This works similarly to the other filtering options. +If you want to filter which interfaces are included, you can use the +`FfiGenerator.visitors` option to inspect AST nodes and set `node.isIncluded = true` +on the interfaces you want to generate. It is recommended that you filter out just about everything you're not -interested in binding (see the FFIgen config in [pubspec.yaml](./pubspec.yaml)). +interested in binding (see the FFIgen config in [generate_code.dart](./generate_code.dart)). Virtually all Objective C libraries depend on Apple's internal libraries, which are huge. Filtering can reduce the generated bindings from millions of lines to thousands. @@ -25,7 +25,7 @@ In this example, we're only interested in `AVAudioPlayer`, so we've filtered out everything else. FFIgen will automatically pull in anything referenced by any of the fields or methods of `AVAudioPlayer`, but by default they're generated as stubs. To generate full bindings for the transient dependencies, -add them to your include set, or set `Interfaces.includeTransitive` to `true`. +set `node.isIncluded = true` for them in your visitor, or set `Interfaces.includeTransitive` to `true`. ## Generating bindings diff --git a/pkgs/hooks_runner/test_data/treeshaking_dylib_record_use/tool/ffigen.dart b/pkgs/hooks_runner/test_data/treeshaking_dylib_record_use/tool/ffigen.dart index f2b4d7873e..c2d189ff9a 100644 --- a/pkgs/hooks_runner/test_data/treeshaking_dylib_record_use/tool/ffigen.dart +++ b/pkgs/hooks_runner/test_data/treeshaking_dylib_record_use/tool/ffigen.dart @@ -15,9 +15,13 @@ void main() { entryPoints: [packageRoot.resolve('src/add.c')], ), functions: Functions( - include: (_) => true, recordUse: (_) => true, ), + visitors: [ + Visitor( + visitFunc: (node) => node.isIncluded = true, + ), + ], output: Output( preamble: ''' // Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file @@ -40,9 +44,13 @@ void main() { entryPoints: [packageRoot.resolve('src/multiply.c')], ), functions: Functions( - include: (_) => true, recordUse: (_) => true, ), + visitors: [ + Visitor( + visitFunc: (node) => node.isIncluded = true, + ), + ], output: Output( preamble: ''' // Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file diff --git a/pkgs/swiftgen/example/avf_audio_bindings.dart b/pkgs/swiftgen/example/avf_audio_bindings.dart index 38d8da0335..ad7cd06994 100644 --- a/pkgs/swiftgen/example/avf_audio_bindings.dart +++ b/pkgs/swiftgen/example/avf_audio_bindings.dart @@ -2,23 +2,18 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -// ignore_for_file: always_specify_types -// ignore_for_file: camel_case_types -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: unnecessary_non_null_assertion -// ignore_for_file: unused_element -// ignore_for_file: unused_field -// ignore_for_file: unused_import // coverage:ignore-file // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. -// ignore_for_file: type=lint +// ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; +const _$objcVersionCheck = objc.ObjCVersionCheck(9, 5); + /// WARNING: AVAudioFormatWrapper is a stub. To generate bindings for this class, include /// AVAudioFormatWrapper in your config's objc-interfaces list. /// @@ -46,416 +41,6 @@ extension type AVAudioFormatWrapper._(objc.ObjCObject object$) } } -late final _class_AVAudioPlayerWrapper = objc.getClass( - "AVFAudioWrapper.AVAudioPlayerWrapper", -); -late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -final _objc_msgSend_19nvye5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_currentDevice = objc.registerName("currentDevice"); -final _objc_msgSend_151sglz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_currentTime = objc.registerName("currentTime"); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); -final _objc_msgSend_hwm8nu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -late final _sel_data = objc.registerName("data"); -late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); -late final _sel_duration = objc.registerName("duration"); -late final _sel_enableRate = objc.registerName("enableRate"); -final _objc_msgSend_91o635 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -late final _sel_format = objc.registerName("format"); -late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); -late final _sel_setIsMeteringEnabled_ = objc.registerName( - "setIsMeteringEnabled:", -); -late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); -late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); -final _objc_msgSend_4sp4xj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -late final _sel_pan = objc.registerName("pan"); -final _objc_msgSend_2cgrxl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_setPan_ = objc.registerName("setPan:"); -final _objc_msgSend_v5hmet = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -late final _sel_isPlaying = objc.registerName("isPlaying"); -late final _sel_rate = objc.registerName("rate"); -late final _sel_setRate_ = objc.registerName("setRate:"); -late final _sel_url = objc.registerName("url"); -late final _sel_volume = objc.registerName("volume"); -late final _sel_setVolume_ = objc.registerName("setVolume:"); -typedef instancetype = ffi.Pointer; -typedef Dartinstancetype = objc.ObjCObject; -late final _sel_initWithContentsOf_error_ = objc.registerName( - "initWithContentsOf:error:", -); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -late final _sel_initWithContentsOf_fileTypeHint_error_ = objc.registerName( - "initWithContentsOf:fileTypeHint:error:", -); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); -late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( - "initWithData:fileTypeHint:error:", -); -late final _sel_averagePowerForChannel_ = objc.registerName( - "averagePowerForChannel:", -); -final _objc_msgSend_1o3b4v9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1o3b4v9Fpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -late final _sel_pause = objc.registerName("pause"); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_peakPowerForChannel_ = objc.registerName( - "peakPowerForChannel:", -); -late final _sel_play = objc.registerName("play"); -late final _sel_playAtTime_ = objc.registerName("playAtTime:"); -final _objc_msgSend_18chyc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); -late final _sel_setVolume_fadeDuration_ = objc.registerName( - "setVolume:fadeDuration:", -); -final _objc_msgSend_1p4uk9e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - double, - ) - >(); -late final _sel_stop = objc.registerName("stop"); -late final _sel_updateMeters = objc.registerName("updateMeters"); -late final _sel_init = objc.registerName("init"); -late final _sel_new = objc.registerName("new"); -late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); -final _objc_msgSend_1cwp428 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_alloc = objc.registerName("alloc"); - /// AVAudioPlayerWrapper extension type AVAudioPlayerWrapper._(objc.ObjCObject object$) implements objc.ObjCObject, objc.NSObject { @@ -505,32 +90,24 @@ extension type AVAudioPlayerWrapper._(objc.ObjCObject object$) ); return AVAudioPlayerWrapper.fromPointer($ret, retain: false, release: true); } - - /// new - static AVAudioPlayerWrapper new$() { - final $ret = _objc_msgSend_151sglz(_class_AVAudioPlayerWrapper, _sel_new); - return AVAudioPlayerWrapper.fromPointer($ret, retain: false, release: true); - } - - /// Returns a new instance of AVAudioPlayerWrapper constructed with the default `new` method. - AVAudioPlayerWrapper() : this.as(new$().object$); } extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { /// averagePowerForChannel: double averagePowerForChannel(int channelNumber) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.averagePowerForChannel:', macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants ? _objc_msgSend_1o3b4v9Fpret( - object$.ref.pointer, + _$$ref.pointer, _sel_averagePowerForChannel_, channelNumber, ) : _objc_msgSend_1o3b4v9( - object$.ref.pointer, + _$$ref.pointer, _sel_averagePowerForChannel_, channelNumber, ); @@ -538,11 +115,12 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { /// currentDevice objc.NSString? get currentDevice { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.currentDevice', macOS: (false, (10, 13, 0)), ); - final $ret = _objc_msgSend_151sglz(object$.ref.pointer, _sel_currentDevice); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentDevice); return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true); @@ -550,22 +128,24 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { /// currentTime double get currentTime { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.currentTime', macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(object$.ref.pointer, _sel_currentTime) - : _objc_msgSend_1ukqyt8(object$.ref.pointer, _sel_currentTime); + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_currentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_currentTime); } /// data objc.NSData? get data { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.data', macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_151sglz(object$.ref.pointer, _sel_data); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_data); return $ret.address == 0 ? null : objc.NSData.fromPointer($ret, retain: true, release: true); @@ -573,64 +153,53 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { /// deviceCurrentTime double get deviceCurrentTime { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.deviceCurrentTime', macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - object$.ref.pointer, - _sel_deviceCurrentTime, - ) - : _objc_msgSend_1ukqyt8(object$.ref.pointer, _sel_deviceCurrentTime); + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_deviceCurrentTime) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_deviceCurrentTime); } /// duration double get duration { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.duration', macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(object$.ref.pointer, _sel_duration) - : _objc_msgSend_1ukqyt8(object$.ref.pointer, _sel_duration); + ? _objc_msgSend_1ukqyt8Fpret(_$$ref.pointer, _sel_duration) + : _objc_msgSend_1ukqyt8(_$$ref.pointer, _sel_duration); } /// enableRate bool get enableRate { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.enableRate', macOS: (false, (10, 8, 0)), ); - return _objc_msgSend_91o635(object$.ref.pointer, _sel_enableRate); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_enableRate); } /// format AVAudioFormatWrapper get format { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.format', macOS: (false, (10, 12, 0)), ); - final $ret = _objc_msgSend_151sglz(object$.ref.pointer, _sel_format); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_format); return AVAudioFormatWrapper.fromPointer($ret, retain: true, release: true); } - /// init - AVAudioPlayerWrapper init() { - objc.checkOsVersionInternal( - 'AVAudioPlayerWrapper.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final $ret = _objc_msgSend_151sglz( - object$.ref.retainAndReturnPointer(), - _sel_init, - ); - return AVAudioPlayerWrapper.fromPointer($ret, retain: false, release: true); - } - /// initWithContentsOf:error: AVAudioPlayerWrapper? initWithContentsOf(objc.NSURL url) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.initWithContentsOf:error:', macOS: (false, (10, 7, 0)), @@ -638,9 +207,9 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { final $err = pkg_ffi.calloc>(); try { final $ret = _objc_msgSend_1lhpu4m( - object$.ref.retainAndReturnPointer(), + _$$ref.retainAndReturnPointer(), _sel_initWithContentsOf_error_, - url.ref.pointer, + _$$ref$1.pointer, $err, ); objc.NSErrorException.checkErrorPointer($err.value); @@ -661,6 +230,9 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { objc.NSURL url, { objc.NSString? fileTypeHint, }) { + final _$$ref = object$.ref; + final _$$ref$1 = url.ref; + final _$$ref$2 = fileTypeHint?.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.initWithContentsOf:fileTypeHint:error:', macOS: (false, (10, 9, 0)), @@ -668,10 +240,10 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { final $err = pkg_ffi.calloc>(); try { final $ret = _objc_msgSend_1pnyuds( - object$.ref.retainAndReturnPointer(), + _$$ref.retainAndReturnPointer(), _sel_initWithContentsOf_fileTypeHint_error_, - url.ref.pointer, - fileTypeHint?.ref.pointer ?? ffi.nullptr, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, $err, ); objc.NSErrorException.checkErrorPointer($err.value); @@ -689,6 +261,8 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { /// initWithData:error: AVAudioPlayerWrapper? initWithData(objc.NSData data) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.initWithData:error:', macOS: (false, (10, 7, 0)), @@ -696,9 +270,9 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { final $err = pkg_ffi.calloc>(); try { final $ret = _objc_msgSend_1lhpu4m( - object$.ref.retainAndReturnPointer(), + _$$ref.retainAndReturnPointer(), _sel_initWithData_error_, - data.ref.pointer, + _$$ref$1.pointer, $err, ); objc.NSErrorException.checkErrorPointer($err.value); @@ -719,6 +293,9 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { objc.NSData data, { objc.NSString? fileTypeHint, }) { + final _$$ref = object$.ref; + final _$$ref$1 = data.ref; + final _$$ref$2 = fileTypeHint?.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.initWithData:fileTypeHint:error:', macOS: (false, (10, 9, 0)), @@ -726,10 +303,10 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { final $err = pkg_ffi.calloc>(); try { final $ret = _objc_msgSend_1pnyuds( - object$.ref.retainAndReturnPointer(), + _$$ref.retainAndReturnPointer(), _sel_initWithData_fileTypeHint_error_, - data.ref.pointer, - fileTypeHint?.ref.pointer ?? ffi.nullptr, + _$$ref$1.pointer, + _$$ref$2?.pointer ?? ffi.nullptr, $err, ); objc.NSErrorException.checkErrorPointer($err.value); @@ -747,74 +324,81 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { /// isMeteringEnabled bool get isMeteringEnabled { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.isMeteringEnabled', macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_91o635(object$.ref.pointer, _sel_isMeteringEnabled); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isMeteringEnabled); } /// isPlaying bool get isPlaying { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.isPlaying', macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_91o635(object$.ref.pointer, _sel_isPlaying); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_isPlaying); } /// numberOfChannels int get numberOfChannels { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.numberOfChannels', macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_1hz7y9r(object$.ref.pointer, _sel_numberOfChannels); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfChannels); } /// numberOfLoops int get numberOfLoops { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.numberOfLoops', macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_1hz7y9r(object$.ref.pointer, _sel_numberOfLoops); + return _objc_msgSend_1hz7y9r(_$$ref.pointer, _sel_numberOfLoops); } /// pan double get pan { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.pan', macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(object$.ref.pointer, _sel_pan) - : _objc_msgSend_2cgrxl(object$.ref.pointer, _sel_pan); + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_pan) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_pan); } /// pause void pause() { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.pause', macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1pl9qdv(object$.ref.pointer, _sel_pause); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_pause); } /// peakPowerForChannel: double peakPowerForChannel(int channelNumber) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.peakPowerForChannel:', macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants ? _objc_msgSend_1o3b4v9Fpret( - object$.ref.pointer, + _$$ref.pointer, _sel_peakPowerForChannel_, channelNumber, ) : _objc_msgSend_1o3b4v9( - object$.ref.pointer, + _$$ref.pointer, _sel_peakPowerForChannel_, channelNumber, ); @@ -822,130 +406,140 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { /// play bool play() { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.play', macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_91o635(object$.ref.pointer, _sel_play); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_play); } /// playAtTime: bool playAtTime(double time) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.playAtTime:', macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_18chyc(object$.ref.pointer, _sel_playAtTime_, time); + return _objc_msgSend_18chyc(_$$ref.pointer, _sel_playAtTime_, time); } /// prepareToPlay bool prepareToPlay() { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.prepareToPlay', macOS: (false, (10, 7, 0)), ); - return _objc_msgSend_91o635(object$.ref.pointer, _sel_prepareToPlay); + return _objc_msgSend_91o635(_$$ref.pointer, _sel_prepareToPlay); } /// rate double get rate { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.rate', macOS: (false, (10, 8, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(object$.ref.pointer, _sel_rate) - : _objc_msgSend_2cgrxl(object$.ref.pointer, _sel_rate); + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_rate) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_rate); } /// setCurrentDevice: set currentDevice(objc.NSString? value) { + final _$$ref = object$.ref; + final _$$ref$1 = value?.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.setCurrentDevice:', macOS: (false, (10, 13, 0)), ); _objc_msgSend_xtuoz7( - object$.ref.pointer, + _$$ref.pointer, _sel_setCurrentDevice_, - value?.ref.pointer ?? ffi.nullptr, + _$$ref$1?.pointer ?? ffi.nullptr, ); } /// setCurrentTime: set currentTime(double value) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.setCurrentTime:', macOS: (false, (10, 7, 0)), ); - _objc_msgSend_hwm8nu(object$.ref.pointer, _sel_setCurrentTime_, value); + _objc_msgSend_hwm8nu(_$$ref.pointer, _sel_setCurrentTime_, value); } /// setEnableRate: set enableRate(bool value) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.setEnableRate:', macOS: (false, (10, 8, 0)), ); - _objc_msgSend_1s56lr9(object$.ref.pointer, _sel_setEnableRate_, value); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setEnableRate_, value); } /// setIsMeteringEnabled: set isMeteringEnabled(bool value) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.setIsMeteringEnabled:', macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1s56lr9( - object$.ref.pointer, - _sel_setIsMeteringEnabled_, - value, - ); + _objc_msgSend_1s56lr9(_$$ref.pointer, _sel_setIsMeteringEnabled_, value); } /// setNumberOfLoops: set numberOfLoops(int value) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.setNumberOfLoops:', macOS: (false, (10, 7, 0)), ); - _objc_msgSend_4sp4xj(object$.ref.pointer, _sel_setNumberOfLoops_, value); + _objc_msgSend_4sp4xj(_$$ref.pointer, _sel_setNumberOfLoops_, value); } /// setPan: set pan(double value) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.setPan:', macOS: (false, (10, 7, 0)), ); - _objc_msgSend_v5hmet(object$.ref.pointer, _sel_setPan_, value); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setPan_, value); } /// setRate: set rate(double value) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.setRate:', macOS: (false, (10, 8, 0)), ); - _objc_msgSend_v5hmet(object$.ref.pointer, _sel_setRate_, value); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setRate_, value); } /// setVolume: set volume(double value) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.setVolume:', macOS: (false, (10, 7, 0)), ); - _objc_msgSend_v5hmet(object$.ref.pointer, _sel_setVolume_, value); + _objc_msgSend_v5hmet(_$$ref.pointer, _sel_setVolume_, value); } /// setVolume:fadeDuration: void setVolume(double volume, {required double fadeDuration}) { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.setVolume:fadeDuration:', macOS: (false, (10, 12, 0)), ); _objc_msgSend_1p4uk9e( - object$.ref.pointer, + _$$ref.pointer, _sel_setVolume_fadeDuration_, volume, fadeDuration, @@ -954,29 +548,32 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { /// stop void stop() { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.stop', macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1pl9qdv(object$.ref.pointer, _sel_stop); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_stop); } /// updateMeters void updateMeters() { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.updateMeters', macOS: (false, (10, 7, 0)), ); - _objc_msgSend_1pl9qdv(object$.ref.pointer, _sel_updateMeters); + _objc_msgSend_1pl9qdv(_$$ref.pointer, _sel_updateMeters); } /// url objc.NSURL? get url { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.url', macOS: (false, (10, 7, 0)), ); - final $ret = _objc_msgSend_151sglz(object$.ref.pointer, _sel_url); + final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_url); return $ret.address == 0 ? null : objc.NSURL.fromPointer($ret, retain: true, release: true); @@ -984,12 +581,428 @@ extension AVAudioPlayerWrapper$Methods on AVAudioPlayerWrapper { /// volume double get volume { + final _$$ref = object$.ref; objc.checkOsVersionInternal( 'AVAudioPlayerWrapper.volume', macOS: (false, (10, 7, 0)), ); return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(object$.ref.pointer, _sel_volume) - : _objc_msgSend_2cgrxl(object$.ref.pointer, _sel_volume); + ? _objc_msgSend_2cgrxlFpret(_$$ref.pointer, _sel_volume) + : _objc_msgSend_2cgrxl(_$$ref.pointer, _sel_volume); } } + +@ffi.Native>( + symbol: 'OBJC_CLASS_\$__TtC15AVFAudioWrapper20AVAudioPlayerWrapper', +) +external ffi.Pointer _class_AVAudioPlayerWrapper_raw; +final _class_AVAudioPlayerWrapper = objc.getClass( + "AVFAudioWrapper.AVAudioPlayerWrapper", + () => ffi.Native.addressOf>( + _class_AVAudioPlayerWrapper_raw, + ).cast(), +); +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18chyc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1hz7y9r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1o3b4v9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1o3b4v9Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1p4uk9e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + double, + ) + >(); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1s56lr9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_4sp4xj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_91o635 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hwm8nu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_v5hmet = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +late final _sel_averagePowerForChannel_ = objc.registerName( + "averagePowerForChannel:", +); +late final _sel_currentDevice = objc.registerName("currentDevice"); +late final _sel_currentTime = objc.registerName("currentTime"); +late final _sel_data = objc.registerName("data"); +late final _sel_deviceCurrentTime = objc.registerName("deviceCurrentTime"); +late final _sel_duration = objc.registerName("duration"); +late final _sel_enableRate = objc.registerName("enableRate"); +late final _sel_format = objc.registerName("format"); +late final _sel_initWithContentsOf_error_ = objc.registerName( + "initWithContentsOf:error:", +); +late final _sel_initWithContentsOf_fileTypeHint_error_ = objc.registerName( + "initWithContentsOf:fileTypeHint:error:", +); +late final _sel_initWithData_error_ = objc.registerName("initWithData:error:"); +late final _sel_initWithData_fileTypeHint_error_ = objc.registerName( + "initWithData:fileTypeHint:error:", +); +late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_isMeteringEnabled = objc.registerName("isMeteringEnabled"); +late final _sel_isPlaying = objc.registerName("isPlaying"); +late final _sel_numberOfChannels = objc.registerName("numberOfChannels"); +late final _sel_numberOfLoops = objc.registerName("numberOfLoops"); +late final _sel_pan = objc.registerName("pan"); +late final _sel_pause = objc.registerName("pause"); +late final _sel_peakPowerForChannel_ = objc.registerName( + "peakPowerForChannel:", +); +late final _sel_play = objc.registerName("play"); +late final _sel_playAtTime_ = objc.registerName("playAtTime:"); +late final _sel_prepareToPlay = objc.registerName("prepareToPlay"); +late final _sel_rate = objc.registerName("rate"); +late final _sel_setCurrentDevice_ = objc.registerName("setCurrentDevice:"); +late final _sel_setCurrentTime_ = objc.registerName("setCurrentTime:"); +late final _sel_setEnableRate_ = objc.registerName("setEnableRate:"); +late final _sel_setIsMeteringEnabled_ = objc.registerName( + "setIsMeteringEnabled:", +); +late final _sel_setNumberOfLoops_ = objc.registerName("setNumberOfLoops:"); +late final _sel_setPan_ = objc.registerName("setPan:"); +late final _sel_setRate_ = objc.registerName("setRate:"); +late final _sel_setVolume_ = objc.registerName("setVolume:"); +late final _sel_setVolume_fadeDuration_ = objc.registerName( + "setVolume:fadeDuration:", +); +late final _sel_stop = objc.registerName("stop"); +late final _sel_updateMeters = objc.registerName("updateMeters"); +late final _sel_url = objc.registerName("url"); +late final _sel_volume = objc.registerName("volume"); +typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = objc.ObjCObject; diff --git a/pkgs/swiftgen/example/generate_code.dart b/pkgs/swiftgen/example/generate_code.dart index f85b532e19..35abbbbe4e 100644 --- a/pkgs/swiftgen/example/generate_code.dart +++ b/pkgs/swiftgen/example/generate_code.dart @@ -46,10 +46,16 @@ Future main() async { ios: fg.Versions(min: Version(12, 0, 0)), macos: fg.Versions(min: Version(10, 14, 0)), ), - interfaces: fg.Interfaces( - include: (decl) => decl.originalName == 'AVAudioPlayerWrapper', - ), ), + visitors: [ + fg.Visitor( + visitObjCInterface: (node) { + if (node.name == 'AVAudioPlayerWrapper') { + node.isIncluded = true; + } + }, + ), + ], ), ).generate(logger: logger, tempDirectory: Uri.directory('temp')); diff --git a/pkgs/swiftgen/lib/src/config.dart b/pkgs/swiftgen/lib/src/config.dart index c1b82acc16..4f24d6f417 100644 --- a/pkgs/swiftgen/lib/src/config.dart +++ b/pkgs/swiftgen/lib/src/config.dart @@ -228,15 +228,9 @@ class FfiGeneratorOptions { /// [ffigen.FfiGenerator.enums] final ffigen.Enums enums; - /// [ffigen.FfiGenerator.unnamedEnums] - final ffigen.UnnamedEnums unnamedEnums; - /// [ffigen.FfiGenerator.globals] final ffigen.Globals globals; - /// [ffigen.FfiGenerator.macros] - final ffigen.Macros macros; - /// [ffigen.FfiGenerator.typedefs] final ffigen.Typedefs typedefs; @@ -247,14 +241,12 @@ class FfiGeneratorOptions { final List visitors; const FfiGeneratorOptions({ - this.functions = ffigen.Functions.excludeAll, - this.structs = ffigen.Structs.excludeAll, - this.unions = ffigen.Unions.excludeAll, - this.enums = ffigen.Enums.excludeAll, - this.unnamedEnums = ffigen.UnnamedEnums.excludeAll, - this.globals = ffigen.Globals.excludeAll, - this.macros = ffigen.Macros.excludeAll, - this.typedefs = ffigen.Typedefs.excludeAll, + this.functions = const ffigen.Functions(), + this.structs = const ffigen.Structs(), + this.unions = const ffigen.Unions(), + this.enums = const ffigen.Enums(), + this.globals = const ffigen.Globals(), + this.typedefs = const ffigen.Typedefs(), this.objectiveC = const ffigen.ObjectiveC(), this.visitors = const [], }); diff --git a/pkgs/swiftgen/lib/src/generator.dart b/pkgs/swiftgen/lib/src/generator.dart index 750a27ca0a..ca02f0f14e 100644 --- a/pkgs/swiftgen/lib/src/generator.dart +++ b/pkgs/swiftgen/lib/src/generator.dart @@ -91,22 +91,16 @@ extension SwiftGenGenerator on SwiftGenerator { structs: ffigen.structs, unions: ffigen.unions, enums: ffigen.enums, - unnamedEnums: ffigen.unnamedEnums, globals: ffigen.globals, - macros: ffigen.macros, typedefs: ffigen.typedefs, objectiveC: fg.ObjectiveC( interfaces: fg.Interfaces( - include: interfaces.include, - includeMember: interfaces.includeMember, includeTransitive: interfaces.includeTransitive, module: interfaces.module != fg.Interfaces.noModule ? interfaces.module : (_) => output.module, ), protocols: fg.Protocols( - include: protocols.include, - includeMember: protocols.includeMember, includeTransitive: protocols.includeTransitive, module: protocols.module != fg.Protocols.noModule ? protocols.module diff --git a/pkgs/swiftgen/test/integration/util.dart b/pkgs/swiftgen/test/integration/util.dart index d7e027eec5..7e4b598ee2 100644 --- a/pkgs/swiftgen/test/integration/util.dart +++ b/pkgs/swiftgen/test/integration/util.dart @@ -81,14 +81,20 @@ class TestGenerator { ''', ), ffigen: FfiGeneratorOptions( - objectiveC: fg.ObjectiveC( - interfaces: fg.Interfaces( - include: (decl) => decl.originalName.startsWith('Test'), + visitors: [ + fg.Visitor( + visitObjCInterface: (node) { + if (node.name.startsWith('Test')) { + node.isIncluded = true; + } + }, + visitObjCProtocol: (node) { + if (node.name.startsWith('Test')) { + node.isIncluded = true; + } + }, ), - protocols: fg.Protocols( - include: (decl) => decl.originalName.startsWith('Test'), - ), - ), + ], ), ).generate( logger: Logger.root..level = Level.SEVERE, From 05bb9810ab4da0d69fdd302c720c9eb2584962a3 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 14 Aug 2026 12:34:49 +1000 Subject: [PATCH 46/54] clean up --- pkgs/ffigen/lib/src/visitor/apply_config_filters.dart | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index 1380dafc21..8b873d7aaf 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -66,11 +66,6 @@ class ApplyConfigFiltersVisitation extends Visitation { @override void visitObjCCategory(ObjCCategory node) { if (context.config.objectiveC == null) return; - if (context.config.objectiveC!.categories.includeTransitive && - node.parent.isIncluded && - node.originalName.isNotEmpty) { - node.isIncluded = true; - } node.filterMethods((m) { if (m.unavailable) return false; From dae5b3171bfbc32b9bd592f7f613e32d5b39081b Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 14 Aug 2026 15:05:03 +1000 Subject: [PATCH 47/54] changelog --- pkgs/ffigen/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/ffigen/CHANGELOG.md b/pkgs/ffigen/CHANGELOG.md index 3475b4844f..e9c11c149e 100644 --- a/pkgs/ffigen/CHANGELOG.md +++ b/pkgs/ffigen/CHANGELOG.md @@ -3,6 +3,7 @@ - __Breaking change__: Major overhaul of Dart config API: - Replace various callback based config elements with a `Visitor` pattern. - `rename` and `renameMember` replaced with `.name` setters on AST nodes. + - `include` and `includeMember` replaced with `.isIncluded` on AST nodes. - Consolidate `imported` fields and `importedTypesByUsr` into `FfiGenerator.importType`, switching it to a callback pattern - Deleted empty `Integers` class From b02fafcf6450040b160bae0d314036e8de382694 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 14 Aug 2026 17:28:48 +1000 Subject: [PATCH 48/54] wip --- .../lib/src/code_generator/constant.dart | 79 +++++----- .../ffigen/lib/src/code_generator/global.dart | 32 ++++ .../lib/src/code_generator/library.dart | 20 ++- .../ffigen/lib/src/code_generator/writer.dart | 5 +- .../lib/src/config_provider/public_ast.dart | 26 --- .../src/config_provider/public_visitor.dart | 8 - .../lib/src/config_provider/yaml_config.dart | 8 - pkgs/ffigen/lib/src/context.dart | 2 +- .../sub_parsers/unnamed_enumdecl_parser.dart | 9 +- .../header_parser/sub_parsers/var_parser.dart | 36 +---- pkgs/ffigen/lib/src/header_parser/utils.dart | 16 +- .../lib/src/visitor/apply_config_filters.dart | 7 - pkgs/ffigen/lib/src/visitor/visitor.dart | 5 +- .../code_generator_test.dart | 114 ++++++++++++++ .../exclude_all_by_default_test.dart | 4 +- .../test/header_parser_tests/macros_test.dart | 40 ++--- .../static_const_test.dart | 149 ++++++++++++++---- .../unnamed_enums_test.dart | 4 +- .../large_objc_test.dart | 1 - .../ffigen/test/rename_tests/rename_test.dart | 22 ++- 20 files changed, 381 insertions(+), 206 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/constant.dart b/pkgs/ffigen/lib/src/code_generator/constant.dart index 368ebb0b72..c7aae2482d 100644 --- a/pkgs/ffigen/lib/src/code_generator/constant.dart +++ b/pkgs/ffigen/lib/src/code_generator/constant.dart @@ -11,18 +11,8 @@ import 'scope.dart'; import 'utils.dart'; import 'writer.dart'; -/// A simple Constant. -/// -/// Expands to - -/// ```dart -/// const = ; -/// ``` -/// -/// Example - -/// ```dart -/// const int name = 10; -/// ``` -class Constant extends NoLookUpBinding { +/// A constant defined by an unnamed enum. +class UnnamedEnumConstant extends NoLookUpBinding { /// The rawType is pasted as it is. E.g 'int', 'String', 'double' final String rawType; @@ -35,7 +25,7 @@ class Constant extends NoLookUpBinding { bool isIncluded = false; - Constant({ + UnnamedEnumConstant({ super.usr, super.originalName, required String name, @@ -63,25 +53,6 @@ class Constant extends NoLookUpBinding { ); } - @override - public_ast.AstNode? toPublicAstNode() => public_ast.Constant(this); - - @override - void visit(Visitation visitation) => visitation.visitConstant(this); -} - -/// A [Constant] defined by an unnamed enum. -class UnnamedEnumConstant extends Constant { - UnnamedEnumConstant({ - super.usr, - super.originalName, - required super.name, - super.dartDoc, - required super.rawType, - required super.rawValue, - super.apiAvailability, - }); - @override public_ast.AstNode? toPublicAstNode() => public_ast.UnnamedEnumConstant(this); @@ -90,17 +61,47 @@ class UnnamedEnumConstant extends Constant { visitation.visitUnnamedEnumConstant(this); } -/// A [Constant] defined by a macro. -class MacroConstant extends Constant { +/// A constant defined by a macro. +class MacroConstant extends NoLookUpBinding { + /// The rawType is pasted as it is. E.g 'int', 'String', 'double' + final String rawType; + + /// The rawValue is pasted as it is. + /// + /// Put quotes if type is a string. + final String rawValue; + + final ApiAvailability? apiAvailability; + + bool isIncluded = false; + MacroConstant({ super.usr, super.originalName, - required super.name, + required String name, super.dartDoc, - required super.rawType, - required super.rawValue, - super.apiAvailability, - }); + required this.rawType, + required this.rawValue, + this.apiAvailability, + }) : super(symbol: Symbol(name, SymbolKind.field)); + + @override + BindingString toBindingString(Writer w) { + final s = StringBuffer(); + final constantName = name; + + s.write(makeDartDoc(dartDoc)); + final deprecatedAnnotation = apiAvailability?.deprecatedAnnotation; + if (deprecatedAnnotation != null) { + s.write('$deprecatedAnnotation\n'); + } + s.write('\nconst $rawType $constantName = $rawValue;\n\n'); + + return BindingString( + type: BindingStringType.constant, + string: s.toString(), + ); + } @override public_ast.AstNode? toPublicAstNode() => public_ast.MacroConstant(this); diff --git a/pkgs/ffigen/lib/src/code_generator/global.dart b/pkgs/ffigen/lib/src/code_generator/global.dart index 8c4a59b706..448e67e2dc 100644 --- a/pkgs/ffigen/lib/src/code_generator/global.dart +++ b/pkgs/ffigen/lib/src/code_generator/global.dart @@ -15,6 +15,23 @@ import 'type.dart'; import 'utils.dart'; import 'writer.dart'; +/// A constant value for a [Global]. +class ConstantValue { + final String rawType; + final String rawValue; + + const ConstantValue({required this.rawType, required this.rawValue}); + + @override + bool operator ==(Object other) => + other is ConstantValue && + other.rawType == rawType && + other.rawValue == rawValue; + + @override + int get hashCode => Object.hash(rawType, rawValue); +} + /// A binding to a global variable /// /// For a C global variable - @@ -29,12 +46,15 @@ class Global extends LookUpBinding with HasLocalScope { final Type type; final bool exposeSymbolAddress; final bool constant; + final ConstantValue? constantValue; @override final bool loadFromNativeAsset; bool isIncluded = false; + bool get isConst => constantValue != null && !exposeSymbolAddress; + Global({ super.usr, super.originalName, @@ -43,6 +63,7 @@ class Global extends LookUpBinding with HasLocalScope { super.dartDoc, this.exposeSymbolAddress = false, this.constant = false, + this.constantValue, this.loadFromNativeAsset = false, }) : super(symbol: Symbol(name, SymbolKind.field)); @@ -54,6 +75,16 @@ class Global extends LookUpBinding with HasLocalScope { final s = StringBuffer(); final globalVarName = name; s.write(makeDartDoc(dartDoc)); + if (isConst) { + s.write( + 'const ${constantValue!.rawType} $globalVarName = ' + '${constantValue!.rawValue};\n\n', + ); + return BindingString( + type: BindingStringType.global, + string: s.toString(), + ); + } final context = w.context; final dartType = type.getDartType(context); final ffiDartType = type.getFfiDartType(context); @@ -173,6 +204,7 @@ class Global extends LookUpBinding with HasLocalScope { @override void visitChildren(Visitor visitor) { super.visitChildren(visitor); + if (isConst) return; visitor.visit(type); visitor.visit(ffiImport); if (loadFromNativeAsset && exposeSymbolAddress) { diff --git a/pkgs/ffigen/lib/src/code_generator/library.dart b/pkgs/ffigen/lib/src/code_generator/library.dart index c37b2c2e88..dfe5fe47cc 100644 --- a/pkgs/ffigen/lib/src/code_generator/library.dart +++ b/pkgs/ffigen/lib/src/code_generator/library.dart @@ -55,6 +55,7 @@ class Library { // Seperate bindings which require lookup. final lookupBindings = []; final nativeBindings = []; + final noLookUpBindings = []; String? nativeAssetId; final outputStyle = context.config.output.style; @@ -62,15 +63,22 @@ class Library { ? outputStyle.assetId : null; - for (final binding in bindings.whereType()) { - final loadFromNativeAsset = binding.loadFromNativeAsset; + for (final binding in bindings) { + if (binding is LookUpBinding) { + if (binding is Global && binding.isConst) { + noLookUpBindings.add(binding); + continue; + } + final loadFromNativeAsset = binding.loadFromNativeAsset; - // At the moment, all bindings share their native config. - if (loadFromNativeAsset) nativeAssetId = outputStyleAssetId; + // At the moment, all bindings share their native config. + if (loadFromNativeAsset) nativeAssetId = outputStyleAssetId; - (loadFromNativeAsset ? nativeBindings : lookupBindings).add(binding); + (loadFromNativeAsset ? nativeBindings : lookupBindings).add(binding); + } else { + noLookUpBindings.add(binding); + } } - final noLookUpBindings = bindings.whereType().toList(); final hasNoLookupNativeHelper = noLookUpBindings.any( (b) => b.hasNativeHelperFunctions, ); diff --git a/pkgs/ffigen/lib/src/code_generator/writer.dart b/pkgs/ffigen/lib/src/code_generator/writer.dart index 46fb375e80..77b5ccd489 100644 --- a/pkgs/ffigen/lib/src/code_generator/writer.dart +++ b/pkgs/ffigen/lib/src/code_generator/writer.dart @@ -226,7 +226,7 @@ const _\$objcVersionCheck = $objcPrefix.ObjCVersionCheck( // Warn for macros. final hasMacroBindings = bindings.any( - (element) => element is Constant && element.usr.contains('@macro@'), + (element) => element is MacroConstant, ); if (hasMacroBindings) { context.logger.info( @@ -237,8 +237,7 @@ const _\$objcVersionCheck = $objcPrefix.ObjCVersionCheck( // Remove internal bindings and macros. bindings.removeWhere((element) { - return element.isInternal || - (element is Constant && element.usr.contains('@macro@')); + return element.isInternal || (element is MacroConstant); }); // Sort bindings alphabetically by USR. diff --git a/pkgs/ffigen/lib/src/config_provider/public_ast.dart b/pkgs/ffigen/lib/src/config_provider/public_ast.dart index 90f3ebd785..810a4e598a 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_ast.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_ast.dart @@ -196,32 +196,6 @@ class Global extends DeclNode { set isIncluded(bool value) => _global.isIncluded = value; } -/// A C constant declaration. -class Constant extends DeclNode { - final internal.Constant _constant; - - Constant(this._constant); - - @override - void accept(Visitor visitor) => visitor.visitConstant(this); - - @override - String get usr => _constant.usr; - - @override - String get originalName => _constant.originalName; - - @override - String get name => _constant.symbol.oldName; - - @override - set name(String value) => _constant.symbol.oldName = value; - - /// Whether this Constant should be included in code generation. - bool get isIncluded => _constant.isIncluded; - set isIncluded(bool value) => _constant.isIncluded = value; -} - /// A C macro constant declaration. class MacroConstant extends DeclNode { final internal.MacroConstant _macro; diff --git a/pkgs/ffigen/lib/src/config_provider/public_visitor.dart b/pkgs/ffigen/lib/src/config_provider/public_visitor.dart index 87d75704d5..b9f63349c2 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_visitor.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_visitor.dart @@ -73,7 +73,6 @@ abstract base class Visitor { void Function(Union) visitUnion, void Function(EnumClass) visitEnum, void Function(Global) visitGlobal, - void Function(Constant) visitConstant, void Function(MacroConstant) visitMacro, void Function(Typealias) visitTypealias, void Function(ObjCInterface) visitObjCInterface, @@ -99,7 +98,6 @@ abstract base class Visitor { void visitUnion(Union node) {} void visitEnum(EnumClass node) {} void visitGlobal(Global node) {} - void visitConstant(Constant node) {} void visitMacro(MacroConstant node) {} void visitTypealias(Typealias node) {} void visitObjCInterface(ObjCInterface node) {} @@ -120,7 +118,6 @@ final class _CallbackVisitor extends Visitor { final void Function(Union) _visitUnion; final void Function(EnumClass) _visitEnum; final void Function(Global) _visitGlobal; - final void Function(Constant) _visitConstant; final void Function(MacroConstant) _visitMacro; final void Function(Typealias) _visitTypealias; final void Function(ObjCInterface) _visitObjCInterface; @@ -140,7 +137,6 @@ final class _CallbackVisitor extends Visitor { void Function(Union) visitUnion = _defaultVisit, void Function(EnumClass) visitEnum = _defaultVisit, void Function(Global) visitGlobal = _defaultVisit, - void Function(Constant) visitConstant = _defaultVisit, void Function(MacroConstant) visitMacro = _defaultVisit, void Function(Typealias) visitTypealias = _defaultVisit, void Function(ObjCInterface) visitObjCInterface = _defaultVisit, @@ -158,7 +154,6 @@ final class _CallbackVisitor extends Visitor { _visitUnion = visitUnion, _visitEnum = visitEnum, _visitGlobal = visitGlobal, - _visitConstant = visitConstant, _visitMacro = visitMacro, _visitTypealias = visitTypealias, _visitObjCInterface = visitObjCInterface, @@ -190,9 +185,6 @@ final class _CallbackVisitor extends Visitor { @override void visitGlobal(Global node) => _visitGlobal(node); - @override - void visitConstant(Constant node) => _visitConstant(node); - @override void visitMacro(MacroConstant node) => _visitMacro(node); diff --git a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart index 9db5da5442..1909c1133a 100644 --- a/pkgs/ffigen/lib/src/config_provider/yaml_config.dart +++ b/pkgs/ffigen/lib/src/config_provider/yaml_config.dart @@ -1373,14 +1373,6 @@ final class YamlConfigAstVisitor extends public_ast.Visitor { } } - @override - void visitConstant(public_ast.Constant node) { - node.isIncluded = config.globals.shouldInclude(_decl(node)); - if (config.globals.rename(_decl(node)) case final rename?) { - node.name = rename; - } - } - @override void visitMacro(public_ast.MacroConstant node) { node.isIncluded = config.macroDecl.shouldInclude(_decl(node)); diff --git a/pkgs/ffigen/lib/src/context.dart b/pkgs/ffigen/lib/src/context.dart index b67b899891..d2cddf04c6 100644 --- a/pkgs/ffigen/lib/src/context.dart +++ b/pkgs/ffigen/lib/src/context.dart @@ -22,7 +22,7 @@ class Context { final CursorIndex cursorIndex; final bindingsIndex = BindingsIndex(); final savedMacros = {}; - final unnamedEnumConstants = []; + final unnamedEnumConstants = []; late final ObjCBuiltInFunctions objCBuiltInFunctions; bool hasSourceErrors = false; final reportedCommentRanges = <((String, int), (String, int))>{}; diff --git a/pkgs/ffigen/lib/src/header_parser/sub_parsers/unnamed_enumdecl_parser.dart b/pkgs/ffigen/lib/src/header_parser/sub_parsers/unnamed_enumdecl_parser.dart index 2dec4a9965..003659b5f1 100644 --- a/pkgs/ffigen/lib/src/header_parser/sub_parsers/unnamed_enumdecl_parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/sub_parsers/unnamed_enumdecl_parser.dart @@ -9,9 +9,12 @@ import '../utils.dart'; import 'api_availability.dart'; /// Saves unnamed enums. -List saveUnNamedEnum(Context context, clang_types.CXCursor cursor) { +List saveUnNamedEnum( + Context context, + clang_types.CXCursor cursor, +) { final logger = context.logger; - final addedConstants = []; + final addedConstants = []; cursor.visitChildren((child) { try { logger.finest( @@ -40,7 +43,7 @@ List saveUnNamedEnum(Context context, clang_types.CXCursor cursor) { } /// Adds the parameter to func in functiondecl_parser.dart. -Constant? _addUnNamedEnumConstant( +UnnamedEnumConstant? _addUnNamedEnumConstant( Context context, clang_types.CXCursor cursor, ) { diff --git a/pkgs/ffigen/lib/src/header_parser/sub_parsers/var_parser.dart b/pkgs/ffigen/lib/src/header_parser/sub_parsers/var_parser.dart index 2e6da6402f..99792b9ef4 100644 --- a/pkgs/ffigen/lib/src/header_parser/sub_parsers/var_parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/sub_parsers/var_parser.dart @@ -21,39 +21,26 @@ Binding? parseVarDeclaration(Context context, clang_types.CXCursor cursor) { if (bindingsIndex.isSeenGlobalVar(usr)) { return bindingsIndex.getSeenGlobalVar(usr); } - if (bindingsIndex.isSeenVariableConstant(usr)) { - return bindingsIndex.getSeenVariableConstant(usr); - } final decl = Declaration(usr: usr, originalName: name); final cType = cursor.type(); - // Try to evaluate as a constant first, - // unless the config asks for the variable's address. - if (cType.isConstQualified && !config.globals.includeSymbolAddress(decl)) { + ConstantValue? constantValue; + if (cType.isConstQualified) { final evalResult = clang.clang_Cursor_Evaluate(cursor); final evalKind = clang.clang_EvalResult_getKind(evalResult); - Constant? constant; switch (evalKind) { case clang_types.CXEvalResultKind.CXEval_Int: final value = clang.clang_EvalResult_getAsLongLong(evalResult); - constant = Constant( - usr: usr, - originalName: name, - name: name, - dartDoc: getCursorDocComment(context, cursor), + constantValue = ConstantValue( rawType: 'int', rawValue: value.toString(), ); break; case clang_types.CXEvalResultKind.CXEval_Float: final value = clang.clang_EvalResult_getAsDouble(evalResult); - constant = Constant( - usr: usr, - originalName: name, - name: name, - dartDoc: getCursorDocComment(context, cursor), + constantValue = ConstantValue( rawType: 'double', rawValue: writeDoubleAsString(value), ); @@ -61,25 +48,13 @@ Binding? parseVarDeclaration(Context context, clang_types.CXCursor cursor) { case clang_types.CXEvalResultKind.CXEval_StrLiteral: final value = clang.clang_EvalResult_getAsStr(evalResult); final rawValue = getWrittenStringRepresentation(name, value, context); - constant = Constant( - usr: usr, - originalName: name, - name: name, - dartDoc: getCursorDocComment(context, cursor), + constantValue = ConstantValue( rawType: 'String', rawValue: "'$rawValue'", ); break; } clang.clang_EvalResult_dispose(evalResult); - - if (constant != null) { - logger.fine( - '++++ Adding Constant from Global: ${cursor.completeStringRepr()}', - ); - bindingsIndex.addVariableConstantToSeen(usr, constant); - return constant; - } } logger.fine('++++ Adding Global: ${cursor.completeStringRepr()}'); @@ -107,6 +82,7 @@ Binding? parseVarDeclaration(Context context, clang_types.CXCursor cursor) { dartDoc: getCursorDocComment(context, cursor), exposeSymbolAddress: config.globals.includeSymbolAddress(decl), constant: cType.isConstQualified, + constantValue: constantValue, loadFromNativeAsset: nativeOutputStyle, ); bindingsIndex.addGlobalVarToSeen(usr, global); diff --git a/pkgs/ffigen/lib/src/header_parser/utils.dart b/pkgs/ffigen/lib/src/header_parser/utils.dart index 9926440ad6..da2680d6cd 100644 --- a/pkgs/ffigen/lib/src/header_parser/utils.dart +++ b/pkgs/ffigen/lib/src/header_parser/utils.dart @@ -516,10 +516,9 @@ class Macro { class BindingsIndex { // Tracks if bindings are already seen, Map key is USR obtained from libclang. final Map _functions = {}; - final Map _unnamedEnumConstants = {}; + final Map _unnamedEnumConstants = {}; final Map _macros = {}; final Map _globals = {}; - final Map _variableConstants = {}; final Map _typealiases = {}; final Map _enums = {}; final Map _compounds = {}; @@ -535,18 +534,15 @@ class BindingsIndex { bool isSeenFunc(String usr) => _functions.containsKey(usr); void addFuncToSeen(String usr, Func func) => _functions[usr] = func; Func? getSeenFunc(String usr) => _functions[usr]; - void addUnnamedEnumConstantToSeen(String usr, Constant enumConstant) => - _unnamedEnumConstants[usr] = enumConstant; - Constant? getSeenUnnamedEnumConstant(String usr) => + void addUnnamedEnumConstantToSeen( + String usr, + UnnamedEnumConstant enumConstant, + ) => _unnamedEnumConstants[usr] = enumConstant; + UnnamedEnumConstant? getSeenUnnamedEnumConstant(String usr) => _unnamedEnumConstants[usr]; bool isSeenGlobalVar(String usr) => _globals.containsKey(usr); void addGlobalVarToSeen(String usr, Global global) => _globals[usr] = global; Global? getSeenGlobalVar(String usr) => _globals[usr]; - bool isSeenVariableConstant(String usr) => - _variableConstants.containsKey(usr); - void addVariableConstantToSeen(String usr, Constant constant) => - _variableConstants[usr] = constant; - Constant? getSeenVariableConstant(String usr) => _variableConstants[usr]; bool isSeenTypealias(String usr) => _typealiases.containsKey(usr); void addTypealiasToSeen(String usr, Typealias t) => _typealiases[usr] = t; Typealias? getSeenTypealias(String usr) => _typealiases[usr]; diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index 8b873d7aaf..f82db1b75c 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -100,13 +100,6 @@ class ApplyConfigFiltersVisitation extends Visitation { @override void visitGlobal(Global node) => _visitImpl(node, node.isIncluded); - @override - void visitConstant(Constant node) { - // MacroConstant and UnnamedEnumConstant have their own overrides, so this - // only applies to base Constants (e.g. from static const variables). - _visitImpl(node, node.isIncluded); - } - @override void visitTypealias(Typealias node) { if (node.isAnonymous) return; diff --git a/pkgs/ffigen/lib/src/visitor/visitor.dart b/pkgs/ffigen/lib/src/visitor/visitor.dart index 12fc52c076..333c79078d 100644 --- a/pkgs/ffigen/lib/src/visitor/visitor.dart +++ b/pkgs/ffigen/lib/src/visitor/visitor.dart @@ -91,10 +91,9 @@ abstract class Visitation { void visitCppMethod(CppMethod node) => visitAstNode(node); void visitFunc(Func node) => visitLookUpBinding(node); void visitFunctionType(FunctionType node) => visitType(node); - void visitMacroConstant(MacroConstant node) => visitConstant(node); + void visitMacroConstant(MacroConstant node) => visitNoLookUpBinding(node); void visitUnnamedEnumConstant(UnnamedEnumConstant node) => - visitConstant(node); - void visitConstant(Constant node) => visitNoLookUpBinding(node); + visitNoLookUpBinding(node); void visitGlobal(Global node) => visitLookUpBinding(node); void visitTypealias(Typealias node) => visitBindingType(node); void visitPointerType(PointerType node) => visitType(node); diff --git a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart index 575aa2fb63..a425542dc7 100644 --- a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart +++ b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart @@ -342,6 +342,120 @@ void main() { _matchLib(library, 'constant'); }); + test('const global', () { + final context = makeContext(); + final library = Library( + context: context, + header: '$licenseHeader\n', + bindings: transformBindings([ + Global( + name: 'test1', + type: NativeType(SupportedNativeType.int32), + constant: true, + constantValue: const ConstantValue(rawType: 'int', rawValue: '20'), + ), + Global( + name: 'test2', + type: NativeType(SupportedNativeType.double), + constant: true, + constantValue: const ConstantValue( + rawType: 'double', + rawValue: '20.0', + ), + ), + ], context), + ); + final output = library.generate(); + expect(output, contains('const int test1 = 20;')); + expect(output, contains('const double test2 = 20.0;')); + }); + + withAndWithoutNative('const global with symbol address exposed', ( + loadFromNativeAsset, + ) { + final context = makeContext( + output: Output( + dartFile: Uri.file('unused'), + style: loadFromNativeAsset + ? const NativeExternalBindings(assetId: 'test') + : const DynamicLibraryBindings(wrapperName: 'Bindings'), + ), + ); + final g = Global( + loadFromNativeAsset: loadFromNativeAsset, + name: 'constWithAddress', + type: NativeType(SupportedNativeType.int32), + constant: true, + constantValue: const ConstantValue(rawType: 'int', rawValue: '42'), + exposeSymbolAddress: true, + ); + expect(g.isConst, isFalse); + final library = Library( + context: context, + bindings: transformBindings([g], context), + ); + final output = library.generate(); + if (loadFromNativeAsset) { + expect(output, contains('@ffi.Native()')); + expect(output, contains('external final int constWithAddress;')); + expect(output, contains('const addresses = _SymbolAddresses();')); + expect( + output, + contains( + 'ffi.Pointer get constWithAddress => ' + 'ffi.Native.addressOf(self.constWithAddress);', + ), + ); + } else { + expect(output, contains("lookup('constWithAddress')")); + expect(output, contains('int get constWithAddress =>')); + expect(output, isNot(contains('set constWithAddress'))); + expect( + output, + contains('late final addresses = _SymbolAddresses(this);'), + ); + expect( + output, + contains( + 'ffi.Pointer get constWithAddress => ' + '_library._constWithAddress;', + ), + ); + } + }); + + test('ConstantValue equality and hashCode', () { + const v1 = ConstantValue(rawType: 'int', rawValue: '10'); + const v2 = ConstantValue(rawType: 'int', rawValue: '10'); + const v3 = ConstantValue(rawType: 'double', rawValue: '10'); + const v4 = ConstantValue(rawType: 'int', rawValue: '20'); + + expect(v1, equals(v2)); + expect(v1.hashCode, equals(v2.hashCode)); + expect(v1, isNot(equals(v3))); + expect(v1, isNot(equals(v4))); + }); + + test('Global.isConst', () { + final g1 = Global( + name: 'g1', + type: intType, + constantValue: const ConstantValue(rawType: 'int', rawValue: '1'), + ); + expect(g1.isConst, isTrue); + + final g2 = Global( + name: 'g2', + type: intType, + constantValue: const ConstantValue(rawType: 'int', rawValue: '1'), + exposeSymbolAddress: true, + ); + expect(g2.isConst, isFalse); + + final g3 = Global(name: 'g3', type: intType); + expect(g3.isConst, isFalse); + }); + test('enum_class', () { final context = makeContext(); final library = Library( diff --git a/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart b/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart index 5ff2b8cd1e..11d8998f3c 100644 --- a/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart +++ b/pkgs/ffigen/test/config_tests/exclude_all_by_default_test.dart @@ -27,9 +27,9 @@ ${strings.headers}: expect(library.getBinding('Struct'), isA()); expect(library.getBinding('Union'), isA()); expect(library.getBinding('global'), isA()); - expect(library.getBinding('MACRO'), isA()); + expect(library.getBinding('MACRO'), isA()); expect(library.getBinding('Enum'), isA()); - expect(library.getBinding('unnamedEnum'), isA()); + expect(library.getBinding('unnamedEnum'), isA()); }); test('exclude_all_by_default test flag true', () { diff --git a/pkgs/ffigen/test/header_parser_tests/macros_test.dart b/pkgs/ffigen/test/header_parser_tests/macros_test.dart index 4aab708d8b..296b38ffb0 100644 --- a/pkgs/ffigen/test/header_parser_tests/macros_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/macros_test.dart @@ -148,36 +148,40 @@ Library expectedLibrary() { return Library( context: testContext(), bindings: [ - Constant(name: 'TEST1', rawType: 'double', rawValue: '1.1'), - Constant(name: 'TEST2', rawType: 'int', rawValue: '10'), - Constant(name: 'TEST3', rawType: 'double', rawValue: '11.1'), - Constant(name: 'TEST4', rawType: 'String', rawValue: "'test'"), - Constant(name: 'TEST5', rawType: 'int', rawValue: '4'), - Constant(name: 'TEST6', rawType: 'int', rawValue: '1'), - Constant(name: 'TEST8', rawType: 'int', rawValue: '5'), - Constant(name: 'TEST9', rawType: 'String', rawValue: r"'\$dollar'"), - Constant(name: 'TEST10', rawType: 'String', rawValue: r"'test\'s'"), - Constant(name: 'TEST11', rawType: 'String', rawValue: r"'\x80'"), - Constant( + MacroConstant(name: 'TEST1', rawType: 'double', rawValue: '1.1'), + MacroConstant(name: 'TEST2', rawType: 'int', rawValue: '10'), + MacroConstant(name: 'TEST3', rawType: 'double', rawValue: '11.1'), + MacroConstant(name: 'TEST4', rawType: 'String', rawValue: "'test'"), + MacroConstant(name: 'TEST5', rawType: 'int', rawValue: '4'), + MacroConstant(name: 'TEST6', rawType: 'int', rawValue: '1'), + MacroConstant(name: 'TEST8', rawType: 'int', rawValue: '5'), + MacroConstant(name: 'TEST9', rawType: 'String', rawValue: r"'\$dollar'"), + MacroConstant(name: 'TEST10', rawType: 'String', rawValue: r"'test\'s'"), + MacroConstant(name: 'TEST11', rawType: 'String', rawValue: r"'\x80'"), + MacroConstant( name: 'TEST12', rawType: 'String', rawValue: r"'hello\n\t\r\v\b'", ), - Constant(name: 'TEST13', rawType: 'String', rawValue: r"'test\\'"), - Constant( + MacroConstant(name: 'TEST13', rawType: 'String', rawValue: r"'test\\'"), + MacroConstant( name: 'TEST14', rawType: 'double', rawValue: strings.doubleInfinity, ), - Constant( + MacroConstant( name: 'TEST15', rawType: 'double', rawValue: strings.doubleNegativeInfinity, ), - Constant(name: 'TEST16', rawType: 'double', rawValue: strings.doubleNaN), - Constant(name: 'TEST17', rawType: 'int', rawValue: '0'), - Constant(name: 'TEST18', rawType: 'int', rawValue: '4'), - Constant(name: 'TEST19', rawType: 'int', rawValue: '8'), + MacroConstant( + name: 'TEST16', + rawType: 'double', + rawValue: strings.doubleNaN, + ), + MacroConstant(name: 'TEST17', rawType: 'int', rawValue: '0'), + MacroConstant(name: 'TEST18', rawType: 'int', rawValue: '4'), + MacroConstant(name: 'TEST19', rawType: 'int', rawValue: '8'), ], )..forceFillNamesForTesting(); } diff --git a/pkgs/ffigen/test/header_parser_tests/static_const_test.dart b/pkgs/ffigen/test/header_parser_tests/static_const_test.dart index a8fb0e4b86..0ff8869586 100644 --- a/pkgs/ffigen/test/header_parser_tests/static_const_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/static_const_test.dart @@ -191,60 +191,141 @@ Library expectedLibrary() { return Library( context: testContext(), bindings: [ - Constant(name: 'TEST_INT', rawType: 'int', rawValue: '10'), - Constant(name: 'TEST_NEGATIVE_INT', rawType: 'int', rawValue: '-10'), - Constant(name: 'TEST_DOUBLE', rawType: 'double', rawValue: '3.14'), - Constant( + Global( + name: 'TEST_INT', + type: intType, + constant: true, + constantValue: const ConstantValue(rawType: 'int', rawValue: '10'), + ), + Global( + name: 'TEST_NEGATIVE_INT', + type: intType, + constant: true, + constantValue: const ConstantValue(rawType: 'int', rawValue: '-10'), + ), + Global( + name: 'TEST_DOUBLE', + type: doubleType, + constant: true, + constantValue: const ConstantValue(rawType: 'double', rawValue: '3.14'), + ), + Global( name: 'TEST_NEGATIVE_DOUBLE', - rawType: 'double', - rawValue: '-3.14', - ), - Constant(name: 'TEST_EXPRESSION', rawType: 'int', rawValue: '10'), - Constant(name: 'TEST_HEX', rawType: 'int', rawValue: '255'), - Constant(name: 'TEST_NEGATIVE_HEX', rawType: 'int', rawValue: '-255'), - Constant(name: 'TEST_STRING', rawType: 'String', rawValue: "'test'"), - Constant( + type: doubleType, + constant: true, + constantValue: const ConstantValue( + rawType: 'double', + rawValue: '-3.14', + ), + ), + Global( + name: 'TEST_EXPRESSION', + type: intType, + constant: true, + constantValue: const ConstantValue(rawType: 'int', rawValue: '10'), + ), + Global( + name: 'TEST_HEX', + type: intType, + constant: true, + constantValue: const ConstantValue(rawType: 'int', rawValue: '255'), + ), + Global( + name: 'TEST_NEGATIVE_HEX', + type: intType, + constant: true, + constantValue: const ConstantValue(rawType: 'int', rawValue: '-255'), + ), + Global( + name: 'TEST_STRING', + type: PointerType(charType), + constant: true, + constantValue: const ConstantValue( + rawType: 'String', + rawValue: "'test'", + ), + ), + Global( name: 'TEST_STRING_SPECIAL', - rawType: 'String', - rawValue: r"'\$dollar'", + type: PointerType(charType), + constant: true, + constantValue: const ConstantValue( + rawType: 'String', + rawValue: r"'\$dollar'", + ), ), - Constant( + Global( name: 'TEST_STRING_QUOTES', - rawType: 'String', - rawValue: r"'test\'s'", + type: PointerType(charType), + constant: true, + constantValue: const ConstantValue( + rawType: 'String', + rawValue: r"'test\'s'", + ), ), - Constant( + Global( name: 'TEST_STRING_BACKSLASH', - rawType: 'String', - rawValue: r"'test\\'", + type: PointerType(charType), + constant: true, + constantValue: const ConstantValue( + rawType: 'String', + rawValue: r"'test\\'", + ), ), - Constant( + Global( name: 'TEST_STRING_CONTROLS', - rawType: 'String', - rawValue: r"'hello\n\t\r\v\b'", + type: PointerType(charType), + constant: true, + constantValue: const ConstantValue( + rawType: 'String', + rawValue: r"'hello\n\t\r\v\b'", + ), ), - Constant( + Global( name: 'TEST_INF', - rawType: 'double', - rawValue: strings.doubleInfinity, + type: doubleType, + constant: true, + constantValue: const ConstantValue( + rawType: 'double', + rawValue: strings.doubleInfinity, + ), ), - Constant( + Global( name: 'TEST_NEGATIVE_INF', - rawType: 'double', - rawValue: strings.doubleNegativeInfinity, + type: doubleType, + constant: true, + constantValue: const ConstantValue( + rawType: 'double', + rawValue: strings.doubleNegativeInfinity, + ), ), - Constant( + Global( name: 'TEST_NAN', - rawType: 'double', - rawValue: strings.doubleNaN, + type: doubleType, + constant: true, + constantValue: const ConstantValue( + rawType: 'double', + rawValue: strings.doubleNaN, + ), ), myFlags, myBufferUsage, - Constant(name: 'MyBufferUsage_None', rawType: 'int', rawValue: '0'), - Constant(name: 'MyBufferUsage_MapRead', rawType: 'int', rawValue: '1'), + Global( + name: 'MyBufferUsage_None', + type: myBufferUsage, + constant: true, + constantValue: const ConstantValue(rawType: 'int', rawValue: '0'), + ), + Global( + name: 'MyBufferUsage_MapRead', + type: myBufferUsage, + constant: true, + constantValue: const ConstantValue(rawType: 'int', rawValue: '1'), + ), Global( name: 'TEST_STRING_ARRAY', type: ConstantArray(11, charType, useArrayType: false), + constant: true, ), Global(name: 'test_global', type: intType), ], diff --git a/pkgs/ffigen/test/header_parser_tests/unnamed_enums_test.dart b/pkgs/ffigen/test/header_parser_tests/unnamed_enums_test.dart index 7cdba854b3..f4090fce7d 100644 --- a/pkgs/ffigen/test/header_parser_tests/unnamed_enums_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/unnamed_enums_test.dart @@ -65,8 +65,8 @@ Library expectedLibrary() { return Library( context: testContext(), bindings: [ - Constant(name: 'A', rawType: 'int', rawValue: '1'), - Constant(name: 'C', rawType: 'int', rawValue: '3'), + UnnamedEnumConstant(name: 'A', rawType: 'int', rawValue: '1'), + UnnamedEnumConstant(name: 'C', rawType: 'int', rawValue: '3'), ], )..forceFillNamesForTesting(); } diff --git a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart index 40e2c1084a..6e584be5fe 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart @@ -115,7 +115,6 @@ void main() { visitTypealias: (node) => node.isIncluded = shouldIncludeNode('typedefs', node), visitMacro: (node) => node.isIncluded = false, - visitConstant: (node) => node.isIncluded = false, visitObjCInterface: (node) => node.isIncluded = shouldIncludeNode('objcInterfaces', node), visitObjCProtocol: (node) => node.isIncluded = shouldIncludeNode( diff --git a/pkgs/ffigen/test/rename_tests/rename_test.dart b/pkgs/ffigen/test/rename_tests/rename_test.dart index e23ec4bcd1..94afa36543 100644 --- a/pkgs/ffigen/test/rename_tests/rename_test.dart +++ b/pkgs/ffigen/test/rename_tests/rename_test.dart @@ -307,11 +307,23 @@ Library expectedLibrary() { EnumConstant(name: 'fullMatchSuccess', value: 1), ], ), - Constant(name: '${macroPrefix}Macro1', rawType: 'int', rawValue: '1'), - Constant(name: 'Macro2', rawType: 'int', rawValue: '2'), - Constant(name: 'Macro3', rawType: 'int', rawValue: '3'), - Constant(name: 'unnamed_underscore', rawType: 'int', rawValue: '0'), - Constant(name: 'unnamedFullMatchSuccess', rawType: 'int', rawValue: '1'), + MacroConstant( + name: '${macroPrefix}Macro1', + rawType: 'int', + rawValue: '1', + ), + MacroConstant(name: 'Macro2', rawType: 'int', rawValue: '2'), + MacroConstant(name: 'Macro3', rawType: 'int', rawValue: '3'), + UnnamedEnumConstant( + name: 'unnamed_underscore', + rawType: 'int', + rawValue: '0', + ), + UnnamedEnumConstant( + name: 'unnamedFullMatchSuccess', + rawType: 'int', + rawValue: '1', + ), struct5Alias, ], )..forceFillNamesForTesting(); From 00b86d9c5bd7848f9414454e0d26747e9ad95abd Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 17 Aug 2026 10:39:35 +1000 Subject: [PATCH 49/54] wip --- .../lib/src/code_generator/constant.dart | 71 +++++++++---------- .../lib/src/visitor/apply_config_filters.dart | 7 +- pkgs/ffigen/lib/src/visitor/visitor.dart | 5 +- 3 files changed, 36 insertions(+), 47 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/constant.dart b/pkgs/ffigen/lib/src/code_generator/constant.dart index c7aae2482d..12bc5b7ebc 100644 --- a/pkgs/ffigen/lib/src/code_generator/constant.dart +++ b/pkgs/ffigen/lib/src/code_generator/constant.dart @@ -11,8 +11,18 @@ import 'scope.dart'; import 'utils.dart'; import 'writer.dart'; -/// A constant defined by an unnamed enum. -class UnnamedEnumConstant extends NoLookUpBinding { +/// Base class for constants. +/// +/// Expands to - +/// ```dart +/// const = ; +/// ``` +/// +/// Example - +/// ```dart +/// const int name = 10; +/// ``` +abstract class Constant extends NoLookUpBinding { /// The rawType is pasted as it is. E.g 'int', 'String', 'double' final String rawType; @@ -25,7 +35,7 @@ class UnnamedEnumConstant extends NoLookUpBinding { bool isIncluded = false; - UnnamedEnumConstant({ + Constant({ super.usr, super.originalName, required String name, @@ -52,6 +62,19 @@ class UnnamedEnumConstant extends NoLookUpBinding { string: s.toString(), ); } +} + +/// A constant defined by an unnamed enum. +class UnnamedEnumConstant extends Constant { + UnnamedEnumConstant({ + super.usr, + super.originalName, + required super.name, + super.dartDoc, + required super.rawType, + required super.rawValue, + super.apiAvailability, + }); @override public_ast.AstNode? toPublicAstNode() => public_ast.UnnamedEnumConstant(this); @@ -62,46 +85,16 @@ class UnnamedEnumConstant extends NoLookUpBinding { } /// A constant defined by a macro. -class MacroConstant extends NoLookUpBinding { - /// The rawType is pasted as it is. E.g 'int', 'String', 'double' - final String rawType; - - /// The rawValue is pasted as it is. - /// - /// Put quotes if type is a string. - final String rawValue; - - final ApiAvailability? apiAvailability; - - bool isIncluded = false; - +class MacroConstant extends Constant { MacroConstant({ super.usr, super.originalName, - required String name, + required super.name, super.dartDoc, - required this.rawType, - required this.rawValue, - this.apiAvailability, - }) : super(symbol: Symbol(name, SymbolKind.field)); - - @override - BindingString toBindingString(Writer w) { - final s = StringBuffer(); - final constantName = name; - - s.write(makeDartDoc(dartDoc)); - final deprecatedAnnotation = apiAvailability?.deprecatedAnnotation; - if (deprecatedAnnotation != null) { - s.write('$deprecatedAnnotation\n'); - } - s.write('\nconst $rawType $constantName = $rawValue;\n\n'); - - return BindingString( - type: BindingStringType.constant, - string: s.toString(), - ); - } + required super.rawType, + required super.rawValue, + super.apiAvailability, + }); @override public_ast.AstNode? toPublicAstNode() => public_ast.MacroConstant(this); diff --git a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart index f82db1b75c..22ac683918 100644 --- a/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart +++ b/pkgs/ffigen/lib/src/visitor/apply_config_filters.dart @@ -42,8 +42,7 @@ class ApplyConfigFiltersVisitation extends Visitation { void visitFunc(Func node) => _visitImpl(node, node.isIncluded); @override - void visitMacroConstant(MacroConstant node) => - _visitImpl(node, node.isIncluded); + void visitConstant(Constant node) => _visitImpl(node, node.isIncluded); @override void visitObjCInterface(ObjCInterface node) { @@ -93,10 +92,6 @@ class ApplyConfigFiltersVisitation extends Visitation { _visitImpl(node, node.isIncluded); } - @override - void visitUnnamedEnumConstant(UnnamedEnumConstant node) => - _visitImpl(node, node.isIncluded); - @override void visitGlobal(Global node) => _visitImpl(node, node.isIncluded); diff --git a/pkgs/ffigen/lib/src/visitor/visitor.dart b/pkgs/ffigen/lib/src/visitor/visitor.dart index 333c79078d..c66ea5aaec 100644 --- a/pkgs/ffigen/lib/src/visitor/visitor.dart +++ b/pkgs/ffigen/lib/src/visitor/visitor.dart @@ -91,9 +91,10 @@ abstract class Visitation { void visitCppMethod(CppMethod node) => visitAstNode(node); void visitFunc(Func node) => visitLookUpBinding(node); void visitFunctionType(FunctionType node) => visitType(node); - void visitMacroConstant(MacroConstant node) => visitNoLookUpBinding(node); + void visitConstant(Constant node) => visitNoLookUpBinding(node); + void visitMacroConstant(MacroConstant node) => visitConstant(node); void visitUnnamedEnumConstant(UnnamedEnumConstant node) => - visitNoLookUpBinding(node); + visitConstant(node); void visitGlobal(Global node) => visitLookUpBinding(node); void visitTypealias(Typealias node) => visitBindingType(node); void visitPointerType(PointerType node) => visitType(node); From 0dda3cf6dfc562639bd6e06dc4a816615fe016d8 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 17 Aug 2026 10:48:38 +1000 Subject: [PATCH 50/54] stableRandomInclude --- .../large_objc_test.dart | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart index 40e2c1084a..3222fc594a 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart @@ -42,7 +42,7 @@ void main() { bool randInclude(String kind, DeclNode declaration, [String? member]) => fnvHash32('$seed.$kind.${declaration.usr}.$member') < ((1 << 32) * inclusionRatio); - bool shouldIncludeNode( + bool stableRandomInclude( String kind, DeclNode declaration, [ Set forceIncludes = const {}, @@ -101,30 +101,30 @@ void main() { visitors: [ Visitor( visitFunc: (node) => - node.isIncluded = shouldIncludeNode('functionDecl', node), + node.isIncluded = stableRandomInclude('functionDecl', node), visitStruct: (node) => - node.isIncluded = shouldIncludeNode('structDecl', node), + node.isIncluded = stableRandomInclude('structDecl', node), visitUnion: (node) => - node.isIncluded = shouldIncludeNode('unionDecl', node), + node.isIncluded = stableRandomInclude('unionDecl', node), visitEnum: (node) => - node.isIncluded = shouldIncludeNode('enums', node), - visitUnnamedEnumConstant: (node) => - node.isIncluded = shouldIncludeNode('unnamedEnumConstants', node), + node.isIncluded = stableRandomInclude('enums', node), + visitUnnamedEnumConstant: (node) => node.isIncluded = + stableRandomInclude('unnamedEnumConstants', node), visitGlobal: (node) => - node.isIncluded = shouldIncludeNode('globals', node), + node.isIncluded = stableRandomInclude('globals', node), visitTypealias: (node) => - node.isIncluded = shouldIncludeNode('typedefs', node), + node.isIncluded = stableRandomInclude('typedefs', node), visitMacro: (node) => node.isIncluded = false, visitConstant: (node) => node.isIncluded = false, visitObjCInterface: (node) => - node.isIncluded = shouldIncludeNode('objcInterfaces', node), - visitObjCProtocol: (node) => node.isIncluded = shouldIncludeNode( + node.isIncluded = stableRandomInclude('objcInterfaces', node), + visitObjCProtocol: (node) => node.isIncluded = stableRandomInclude( 'objcProtocols', node, forceIncludedProtocols, ), visitObjCCategory: (node) => - node.isIncluded = shouldIncludeNode('objcCategories', node), + node.isIncluded = stableRandomInclude('objcCategories', node), visitObjCMethod: (node) { final kind = switch (node.parent) { ObjCInterface() => 'objcInterfaces', From 7c882375e5ae047e8b5c4bc7f157b838d4f92ccb Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 17 Aug 2026 11:09:25 +1000 Subject: [PATCH 51/54] visitFoo -> foo in inline Visitor --- .../example/host_name/tool/ffigen.dart | 2 +- .../example/mini_audio/tool/ffigen.dart | 6 +- .../example/sqlite/tool/ffigen.dart | 3 +- .../example/sqlite_no_link/tool/ffigen.dart | 3 +- .../example/sqlite_prebuilt/tool/ffigen.dart | 3 +- .../example/stb_image/tool/ffigen.dart | 2 +- pkgs/ffigen/README.md | 2 +- pkgs/ffigen/example/add/tool/ffigen.dart | 4 +- .../example/objective_c/generate_code.dart | 4 +- .../lib/src/config_provider/config.dart | 4 +- .../src/config_provider/public_visitor.dart | 184 +++++++++--------- .../code_generator_test.dart | 14 +- .../decl_decl_collision_test.dart | 10 +- .../decl_symbol_address_collision_test.dart | 12 +- .../reserved_keyword_collision_test.dart | 14 +- .../function_n_struct_test.dart | 4 +- .../header_parser_tests/globals_test.dart | 6 +- .../header_parser_tests/record_use_test.dart | 2 +- .../test/header_parser_tests/sort_test.dart | 6 +- .../large_objc_test.dart | 30 +-- .../large_integration_tests/large_test.dart | 48 ++--- .../native_cpp_test/verify_bindings_test.dart | 4 +- .../native_objc_test/deprecated_test.dart | 16 +- .../test/native_objc_test/ns_range_test.dart | 2 +- .../swift_unavailable_test.dart | 2 +- .../native_objc_test/transitive_test.dart | 6 +- .../unit_tests/renaming_visitor_test.dart | 6 +- .../tool/ffigen.dart | 4 +- pkgs/swiftgen/example/generate_code.dart | 2 +- pkgs/swiftgen/test/integration/util.dart | 4 +- 30 files changed, 203 insertions(+), 206 deletions(-) diff --git a/pkgs/code_assets/example/host_name/tool/ffigen.dart b/pkgs/code_assets/example/host_name/tool/ffigen.dart index 1e0ab9b657..75c4f0599a 100644 --- a/pkgs/code_assets/example/host_name/tool/ffigen.dart +++ b/pkgs/code_assets/example/host_name/tool/ffigen.dart @@ -9,7 +9,7 @@ import 'package:ffigen/ffigen.dart'; void main() { final packageRoot = Platform.script.resolve('../'); final visitors = [ - Visitor(visitFunc: (node) => node.isIncluded = node.name == 'gethostname'), + Visitor(func: (node) => node.isIncluded = node.name == 'gethostname'), ]; final FfiGenerator generator; if (Platform.isWindows) { diff --git a/pkgs/code_assets/example/mini_audio/tool/ffigen.dart b/pkgs/code_assets/example/mini_audio/tool/ffigen.dart index cb16f31649..2d938cba30 100644 --- a/pkgs/code_assets/example/mini_audio/tool/ffigen.dart +++ b/pkgs/code_assets/example/mini_audio/tool/ffigen.dart @@ -14,13 +14,13 @@ void main() { enums: const Enums(silenceWarning: true), visitors: [ Visitor( - visitFunc: (node) => node.isIncluded = { + func: (node) => node.isIncluded = { 'ma_engine_init', 'ma_engine_play_sound', 'ma_engine_uninit', }.contains(node.name), - visitStruct: (node) => node.isIncluded = node.name == 'ma_engine', - visitEnum: (node) => node.isIncluded = node.name == 'ma_result', + struct: (node) => node.isIncluded = node.name == 'ma_engine', + enumClass: (node) => node.isIncluded = node.name == 'ma_result', ), ], output: Output( diff --git a/pkgs/code_assets/example/sqlite/tool/ffigen.dart b/pkgs/code_assets/example/sqlite/tool/ffigen.dart index a5d857337d..b25e5b406d 100644 --- a/pkgs/code_assets/example/sqlite/tool/ffigen.dart +++ b/pkgs/code_assets/example/sqlite/tool/ffigen.dart @@ -15,8 +15,7 @@ void main() { functions: Functions(recordUse: (_) => true), visitors: [ Visitor( - visitFunc: (node) => - node.isIncluded = node.name == 'sqlite3_libversion', + func: (node) => node.isIncluded = node.name == 'sqlite3_libversion', ), ], output: Output( diff --git a/pkgs/code_assets/example/sqlite_no_link/tool/ffigen.dart b/pkgs/code_assets/example/sqlite_no_link/tool/ffigen.dart index 69f1ddcb2f..58957d6ce3 100644 --- a/pkgs/code_assets/example/sqlite_no_link/tool/ffigen.dart +++ b/pkgs/code_assets/example/sqlite_no_link/tool/ffigen.dart @@ -14,8 +14,7 @@ void main() { ), visitors: [ Visitor( - visitFunc: (node) => - node.isIncluded = node.name == 'sqlite3_libversion', + func: (node) => node.isIncluded = node.name == 'sqlite3_libversion', ), ], output: Output( diff --git a/pkgs/code_assets/example/sqlite_prebuilt/tool/ffigen.dart b/pkgs/code_assets/example/sqlite_prebuilt/tool/ffigen.dart index 69f1ddcb2f..58957d6ce3 100644 --- a/pkgs/code_assets/example/sqlite_prebuilt/tool/ffigen.dart +++ b/pkgs/code_assets/example/sqlite_prebuilt/tool/ffigen.dart @@ -14,8 +14,7 @@ void main() { ), visitors: [ Visitor( - visitFunc: (node) => - node.isIncluded = node.name == 'sqlite3_libversion', + func: (node) => node.isIncluded = node.name == 'sqlite3_libversion', ), ], output: Output( diff --git a/pkgs/code_assets/example/stb_image/tool/ffigen.dart b/pkgs/code_assets/example/stb_image/tool/ffigen.dart index eecb2b1ccb..095f39b47c 100644 --- a/pkgs/code_assets/example/stb_image/tool/ffigen.dart +++ b/pkgs/code_assets/example/stb_image/tool/ffigen.dart @@ -12,7 +12,7 @@ void main() { input: Input(entryPoints: [packageRoot.resolve('third_party/stb_image.h')]), functions: Functions(recordUse: (_) => true), visitors: [ - Visitor(visitFunc: (node) => node.isIncluded = node.name == 'stbi_info'), + Visitor(func: (node) => node.isIncluded = node.name == 'stbi_info'), ], output: Output( dartFile: packageRoot.resolve('lib/src/third_party/stb_image.g.dart'), diff --git a/pkgs/ffigen/README.md b/pkgs/ffigen/README.md index 411f4b3bf8..04646aa9a4 100644 --- a/pkgs/ffigen/README.md +++ b/pkgs/ffigen/README.md @@ -67,7 +67,7 @@ app has been created via `dart create ffigen_example`. input: Input(entryPoints: [packageRoot.resolve('src/add.h')]), // Optional. Transform and filter AST nodes. visitors: [ - Visitor(visitFunc: (node) => node.isIncluded = node.name == 'add'), + Visitor(func: (node) => node.isIncluded = node.name == 'add'), ], ).generate(); } diff --git a/pkgs/ffigen/example/add/tool/ffigen.dart b/pkgs/ffigen/example/add/tool/ffigen.dart index 922843e0cf..d28506789d 100644 --- a/pkgs/ffigen/example/add/tool/ffigen.dart +++ b/pkgs/ffigen/example/add/tool/ffigen.dart @@ -9,9 +9,7 @@ FfiGenerator getConfig(Uri packageRoot) { return FfiGenerator( output: Output(dartFile: packageRoot.resolve('lib/add.g.dart')), input: Input(entryPoints: [packageRoot.resolve('src/add.h')]), - visitors: [ - Visitor(visitFunc: (node) => node.isIncluded = node.name == 'add'), - ], + visitors: [Visitor(func: (node) => node.isIncluded = node.name == 'add')], ); } diff --git a/pkgs/ffigen/example/objective_c/generate_code.dart b/pkgs/ffigen/example/objective_c/generate_code.dart index ee8fd45601..39fa5bad01 100644 --- a/pkgs/ffigen/example/objective_c/generate_code.dart +++ b/pkgs/ffigen/example/objective_c/generate_code.dart @@ -24,9 +24,9 @@ final config = FfiGenerator( objectiveC: const ObjectiveC(), visitors: [ Visitor( - // The visitObjCInterface function is invoked for each interface + // The objCInterface function is invoked for each interface // discovered while parsing the entryPoints. - visitObjCInterface: (node) { + objCInterface: (node) { if (node.name == 'AVAudioPlayer') { // API elements like interfaces are excluded from the generated // bindings by default. So choose the ones you want to include and set diff --git a/pkgs/ffigen/lib/src/config_provider/config.dart b/pkgs/ffigen/lib/src/config_provider/config.dart index c0dc6ab9c7..a82b208c09 100644 --- a/pkgs/ffigen/lib/src/config_provider/config.dart +++ b/pkgs/ffigen/lib/src/config_provider/config.dart @@ -65,7 +65,7 @@ final class FfiGenerator { /// Filtering declarations: /// ```dart /// Visitor( - /// visitFunc: (node) { + /// func: (node) { /// if (node.name.startsWith('_')) { /// node.isIncluded = false; /// } @@ -76,7 +76,7 @@ final class FfiGenerator { /// Renaming declarations: /// ```dart /// Visitor( - /// visitStruct: (node) { + /// struct: (node) { /// if (node.name == 'custom_type') { /// node.name = 'CustomType'; /// } diff --git a/pkgs/ffigen/lib/src/config_provider/public_visitor.dart b/pkgs/ffigen/lib/src/config_provider/public_visitor.dart index 87d75704d5..a242e41c15 100644 --- a/pkgs/ffigen/lib/src/config_provider/public_visitor.dart +++ b/pkgs/ffigen/lib/src/config_provider/public_visitor.dart @@ -49,7 +49,7 @@ abstract base class Visitor { /// Filtering declarations: /// ```dart /// Visitor( - /// visitFunc: (node) { + /// func: (node) { /// if (node.name.startsWith('_')) { /// node.isIncluded = false; /// } @@ -60,7 +60,7 @@ abstract base class Visitor { /// Renaming declarations: /// ```dart /// Visitor( - /// visitStruct: (node) { + /// struct: (node) { /// if (node.name == 'custom_type') { /// node.name = 'CustomType'; /// } @@ -68,24 +68,24 @@ abstract base class Visitor { /// ) /// ``` factory Visitor({ - void Function(Func) visitFunc, - void Function(Struct) visitStruct, - void Function(Union) visitUnion, - void Function(EnumClass) visitEnum, - void Function(Global) visitGlobal, - void Function(Constant) visitConstant, - void Function(MacroConstant) visitMacro, - void Function(Typealias) visitTypealias, - void Function(ObjCInterface) visitObjCInterface, - void Function(ObjCProtocol) visitObjCProtocol, - void Function(ObjCCategory) visitObjCCategory, - void Function(CppClass) visitCppClass, - void Function(Field) visitField, - void Function(EnumConstant) visitEnumConstant, - void Function(UnnamedEnumConstant) visitUnnamedEnumConstant, - void Function(Param) visitParam, - void Function(ObjCMethod) visitObjCMethod, - void Function(CppMethod) visitCppMethod, + void Function(Func) func, + void Function(Struct) struct, + void Function(Union) union, + void Function(EnumClass) enumClass, + void Function(Global) global, + void Function(Constant) constant, + void Function(MacroConstant) macroConstant, + void Function(Typealias) typealias, + void Function(ObjCInterface) objCInterface, + void Function(ObjCProtocol) objCProtocol, + void Function(ObjCCategory) objCCategory, + void Function(CppClass) cppClass, + void Function(Field) field, + void Function(EnumConstant) enumConstant, + void Function(UnnamedEnumConstant) unnamedEnumConstant, + void Function(Param) param, + void Function(ObjCMethod) objCMethod, + void Function(CppMethod) cppMethod, }) = _CallbackVisitor; void visitAll(Iterable nodes) { @@ -115,118 +115,118 @@ abstract base class Visitor { } final class _CallbackVisitor extends Visitor { - final void Function(Func) _visitFunc; - final void Function(Struct) _visitStruct; - final void Function(Union) _visitUnion; - final void Function(EnumClass) _visitEnum; - final void Function(Global) _visitGlobal; - final void Function(Constant) _visitConstant; - final void Function(MacroConstant) _visitMacro; - final void Function(Typealias) _visitTypealias; - final void Function(ObjCInterface) _visitObjCInterface; - final void Function(ObjCProtocol) _visitObjCProtocol; - final void Function(ObjCCategory) _visitObjCCategory; - final void Function(CppClass) _visitCppClass; - final void Function(Field) _visitField; - final void Function(EnumConstant) _visitEnumConstant; - final void Function(UnnamedEnumConstant) _visitUnnamedEnumConstant; - final void Function(Param) _visitParam; - final void Function(ObjCMethod) _visitObjCMethod; - final void Function(CppMethod) _visitCppMethod; + final void Function(Func) _func; + final void Function(Struct) _struct; + final void Function(Union) _union; + final void Function(EnumClass) _enumClass; + final void Function(Global) _global; + final void Function(Constant) _constant; + final void Function(MacroConstant) _macroConstant; + final void Function(Typealias) _typealias; + final void Function(ObjCInterface) _objCInterface; + final void Function(ObjCProtocol) _objCProtocol; + final void Function(ObjCCategory) _objCCategory; + final void Function(CppClass) _cppClass; + final void Function(Field) _field; + final void Function(EnumConstant) _enumConstant; + final void Function(UnnamedEnumConstant) _unnamedEnumConstant; + final void Function(Param) _param; + final void Function(ObjCMethod) _objCMethod; + final void Function(CppMethod) _cppMethod; const _CallbackVisitor({ - void Function(Func) visitFunc = _defaultVisit, - void Function(Struct) visitStruct = _defaultVisit, - void Function(Union) visitUnion = _defaultVisit, - void Function(EnumClass) visitEnum = _defaultVisit, - void Function(Global) visitGlobal = _defaultVisit, - void Function(Constant) visitConstant = _defaultVisit, - void Function(MacroConstant) visitMacro = _defaultVisit, - void Function(Typealias) visitTypealias = _defaultVisit, - void Function(ObjCInterface) visitObjCInterface = _defaultVisit, - void Function(ObjCProtocol) visitObjCProtocol = _defaultVisit, - void Function(ObjCCategory) visitObjCCategory = _defaultVisit, - void Function(CppClass) visitCppClass = _defaultVisit, - void Function(Field) visitField = _defaultVisit, - void Function(EnumConstant) visitEnumConstant = _defaultVisit, - void Function(UnnamedEnumConstant) visitUnnamedEnumConstant = _defaultVisit, - void Function(Param) visitParam = _defaultVisit, - void Function(ObjCMethod) visitObjCMethod = _defaultVisit, - void Function(CppMethod) visitCppMethod = _defaultVisit, - }) : _visitFunc = visitFunc, - _visitStruct = visitStruct, - _visitUnion = visitUnion, - _visitEnum = visitEnum, - _visitGlobal = visitGlobal, - _visitConstant = visitConstant, - _visitMacro = visitMacro, - _visitTypealias = visitTypealias, - _visitObjCInterface = visitObjCInterface, - _visitObjCProtocol = visitObjCProtocol, - _visitObjCCategory = visitObjCCategory, - _visitCppClass = visitCppClass, - _visitField = visitField, - _visitEnumConstant = visitEnumConstant, - _visitUnnamedEnumConstant = visitUnnamedEnumConstant, - _visitParam = visitParam, - _visitObjCMethod = visitObjCMethod, - _visitCppMethod = visitCppMethod, + void Function(Func) func = _defaultVisit, + void Function(Struct) struct = _defaultVisit, + void Function(Union) union = _defaultVisit, + void Function(EnumClass) enumClass = _defaultVisit, + void Function(Global) global = _defaultVisit, + void Function(Constant) constant = _defaultVisit, + void Function(MacroConstant) macroConstant = _defaultVisit, + void Function(Typealias) typealias = _defaultVisit, + void Function(ObjCInterface) objCInterface = _defaultVisit, + void Function(ObjCProtocol) objCProtocol = _defaultVisit, + void Function(ObjCCategory) objCCategory = _defaultVisit, + void Function(CppClass) cppClass = _defaultVisit, + void Function(Field) field = _defaultVisit, + void Function(EnumConstant) enumConstant = _defaultVisit, + void Function(UnnamedEnumConstant) unnamedEnumConstant = _defaultVisit, + void Function(Param) param = _defaultVisit, + void Function(ObjCMethod) objCMethod = _defaultVisit, + void Function(CppMethod) cppMethod = _defaultVisit, + }) : _func = func, + _struct = struct, + _union = union, + _enumClass = enumClass, + _global = global, + _constant = constant, + _macroConstant = macroConstant, + _typealias = typealias, + _objCInterface = objCInterface, + _objCProtocol = objCProtocol, + _objCCategory = objCCategory, + _cppClass = cppClass, + _field = field, + _enumConstant = enumConstant, + _unnamedEnumConstant = unnamedEnumConstant, + _param = param, + _objCMethod = objCMethod, + _cppMethod = cppMethod, super.base(); static void _defaultVisit(Object _) {} @override - void visitFunc(Func node) => _visitFunc(node); + void visitFunc(Func node) => _func(node); @override - void visitStruct(Struct node) => _visitStruct(node); + void visitStruct(Struct node) => _struct(node); @override - void visitUnion(Union node) => _visitUnion(node); + void visitUnion(Union node) => _union(node); @override - void visitEnum(EnumClass node) => _visitEnum(node); + void visitEnum(EnumClass node) => _enumClass(node); @override - void visitGlobal(Global node) => _visitGlobal(node); + void visitGlobal(Global node) => _global(node); @override - void visitConstant(Constant node) => _visitConstant(node); + void visitConstant(Constant node) => _constant(node); @override - void visitMacro(MacroConstant node) => _visitMacro(node); + void visitMacro(MacroConstant node) => _macroConstant(node); @override - void visitTypealias(Typealias node) => _visitTypealias(node); + void visitTypealias(Typealias node) => _typealias(node); @override - void visitObjCInterface(ObjCInterface node) => _visitObjCInterface(node); + void visitObjCInterface(ObjCInterface node) => _objCInterface(node); @override - void visitObjCProtocol(ObjCProtocol node) => _visitObjCProtocol(node); + void visitObjCProtocol(ObjCProtocol node) => _objCProtocol(node); @override - void visitObjCCategory(ObjCCategory node) => _visitObjCCategory(node); + void visitObjCCategory(ObjCCategory node) => _objCCategory(node); @override - void visitCppClass(CppClass node) => _visitCppClass(node); + void visitCppClass(CppClass node) => _cppClass(node); @override - void visitField(Field node) => _visitField(node); + void visitField(Field node) => _field(node); @override - void visitEnumConstant(EnumConstant node) => _visitEnumConstant(node); + void visitEnumConstant(EnumConstant node) => _enumConstant(node); @override void visitUnnamedEnumConstant(UnnamedEnumConstant node) => - _visitUnnamedEnumConstant(node); + _unnamedEnumConstant(node); @override - void visitParam(Param node) => _visitParam(node); + void visitParam(Param node) => _param(node); @override - void visitObjCMethod(ObjCMethod node) => _visitObjCMethod(node); + void visitObjCMethod(ObjCMethod node) => _objCMethod(node); @override - void visitCppMethod(CppMethod node) => _visitCppMethod(node); + void visitCppMethod(CppMethod node) => _cppMethod(node); } diff --git a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart index 575aa2fb63..a2c5fbbb8e 100644 --- a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart +++ b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart @@ -32,13 +32,13 @@ void main() { visitors ?? [ public_ast.Visitor( - visitFunc: (node) => node.isIncluded = true, - visitStruct: (node) => node.isIncluded = true, - visitUnion: (node) => node.isIncluded = true, - visitEnum: (node) => node.isIncluded = true, - visitGlobal: (node) => node.isIncluded = true, - visitMacro: (node) => node.isIncluded = true, - visitTypealias: (node) => node.isIncluded = true, + func: (node) => node.isIncluded = true, + struct: (node) => node.isIncluded = true, + union: (node) => node.isIncluded = true, + enumClass: (node) => node.isIncluded = true, + global: (node) => node.isIncluded = true, + macroConstant: (node) => node.isIncluded = true, + typealias: (node) => node.isIncluded = true, ), ], ), diff --git a/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart b/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart index 3e96ae2fd6..2fb30d6b15 100644 --- a/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart +++ b/pkgs/ffigen/test/collision_tests/decl_decl_collision_test.dart @@ -20,11 +20,11 @@ void main() { ), visitors: [ public_ast.Visitor( - visitFunc: (node) => node.isIncluded = true, - visitStruct: (node) => node.isIncluded = true, - visitEnum: (node) => node.isIncluded = true, - visitMacro: (node) => node.isIncluded = true, - visitTypealias: (node) => node.isIncluded = true, + func: (node) => node.isIncluded = true, + struct: (node) => node.isIncluded = true, + enumClass: (node) => node.isIncluded = true, + macroConstant: (node) => node.isIncluded = true, + typealias: (node) => node.isIncluded = true, ), ], ), diff --git a/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart b/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart index cc5ced0456..9960b15780 100644 --- a/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart +++ b/pkgs/ffigen/test/collision_tests/decl_symbol_address_collision_test.dart @@ -22,12 +22,12 @@ void main() { ), visitors: [ public_ast.Visitor( - visitFunc: (node) => node.isIncluded = true, - visitStruct: (node) => node.isIncluded = true, - visitEnum: (node) => node.isIncluded = true, - visitGlobal: (node) => node.isIncluded = true, - visitMacro: (node) => node.isIncluded = true, - visitTypealias: (node) => node.isIncluded = true, + func: (node) => node.isIncluded = true, + struct: (node) => node.isIncluded = true, + enumClass: (node) => node.isIncluded = true, + global: (node) => node.isIncluded = true, + macroConstant: (node) => node.isIncluded = true, + typealias: (node) => node.isIncluded = true, ), ], ), diff --git a/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart b/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart index a456c526c2..9e821951d5 100644 --- a/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart +++ b/pkgs/ffigen/test/collision_tests/reserved_keyword_collision_test.dart @@ -23,13 +23,13 @@ void main() { ), visitors: [ public_ast.Visitor( - visitFunc: (node) => node.isIncluded = true, - visitStruct: (node) => node.isIncluded = true, - visitUnion: (node) => node.isIncluded = true, - visitEnum: (node) => node.isIncluded = true, - visitGlobal: (node) => node.isIncluded = true, - visitMacro: (node) => node.isIncluded = true, - visitTypealias: (node) => node.isIncluded = true, + func: (node) => node.isIncluded = true, + struct: (node) => node.isIncluded = true, + union: (node) => node.isIncluded = true, + enumClass: (node) => node.isIncluded = true, + global: (node) => node.isIncluded = true, + macroConstant: (node) => node.isIncluded = true, + typealias: (node) => node.isIncluded = true, ), ], input: Input( diff --git a/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart b/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart index 431b5fa182..8af18c3e83 100644 --- a/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/function_n_struct_test.dart @@ -89,8 +89,8 @@ Library expectedLibrary() { ), visitors: [ Visitor( - visitFunc: (node) => node.isIncluded = true, - visitStruct: (node) => node.isIncluded = true, + func: (node) => node.isIncluded = true, + struct: (node) => node.isIncluded = true, ), ], ), diff --git a/pkgs/ffigen/test/header_parser_tests/globals_test.dart b/pkgs/ffigen/test/header_parser_tests/globals_test.dart index 5ee3008664..1ec410ace1 100644 --- a/pkgs/ffigen/test/header_parser_tests/globals_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/globals_test.dart @@ -98,9 +98,9 @@ Library expectedLibrary() { ), visitors: [ Visitor( - visitGlobal: (node) => node.isIncluded = true, - visitStruct: (node) => node.isIncluded = true, - visitTypealias: (node) => node.isIncluded = true, + global: (node) => node.isIncluded = true, + struct: (node) => node.isIncluded = true, + typealias: (node) => node.isIncluded = true, ), ], ), diff --git a/pkgs/ffigen/test/header_parser_tests/record_use_test.dart b/pkgs/ffigen/test/header_parser_tests/record_use_test.dart index dc94f835f2..e6d77827bd 100644 --- a/pkgs/ffigen/test/header_parser_tests/record_use_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/record_use_test.dart @@ -20,7 +20,7 @@ void main() { functions: Functions(recordUse: (decl) => true), visitors: [ Visitor( - visitFunc: (node) { + func: (node) { node.isIncluded = true; if (node.name == 'sum') { node.name = 'add'; diff --git a/pkgs/ffigen/test/header_parser_tests/sort_test.dart b/pkgs/ffigen/test/header_parser_tests/sort_test.dart index e13ddee9f7..106f2ee259 100644 --- a/pkgs/ffigen/test/header_parser_tests/sort_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/sort_test.dart @@ -35,9 +35,9 @@ void main() { typedefs: const Typedefs(includeUnused: true), visitors: [ Visitor( - visitStruct: (node) => node.isIncluded = true, - visitUnion: (node) => node.isIncluded = true, - visitTypealias: (node) => node.isIncluded = true, + struct: (node) => node.isIncluded = true, + union: (node) => node.isIncluded = true, + typealias: (node) => node.isIncluded = true, ), ], ), diff --git a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart index 3222fc594a..1389c5c2c3 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_objc_test.dart @@ -100,32 +100,34 @@ void main() { ), visitors: [ Visitor( - visitFunc: (node) => + func: (node) => node.isIncluded = stableRandomInclude('functionDecl', node), - visitStruct: (node) => + struct: (node) => node.isIncluded = stableRandomInclude('structDecl', node), - visitUnion: (node) => + union: (node) => node.isIncluded = stableRandomInclude('unionDecl', node), - visitEnum: (node) => + enumClass: (node) => node.isIncluded = stableRandomInclude('enums', node), - visitUnnamedEnumConstant: (node) => node.isIncluded = - stableRandomInclude('unnamedEnumConstants', node), - visitGlobal: (node) => + unnamedEnumConstant: (node) => node.isIncluded = stableRandomInclude( + 'unnamedEnumConstants', + node, + ), + global: (node) => node.isIncluded = stableRandomInclude('globals', node), - visitTypealias: (node) => + typealias: (node) => node.isIncluded = stableRandomInclude('typedefs', node), - visitMacro: (node) => node.isIncluded = false, - visitConstant: (node) => node.isIncluded = false, - visitObjCInterface: (node) => + macroConstant: (node) => node.isIncluded = false, + constant: (node) => node.isIncluded = false, + objCInterface: (node) => node.isIncluded = stableRandomInclude('objcInterfaces', node), - visitObjCProtocol: (node) => node.isIncluded = stableRandomInclude( + objCProtocol: (node) => node.isIncluded = stableRandomInclude( 'objcProtocols', node, forceIncludedProtocols, ), - visitObjCCategory: (node) => + objCCategory: (node) => node.isIncluded = stableRandomInclude('objcCategories', node), - visitObjCMethod: (node) { + objCMethod: (node) { final kind = switch (node.parent) { ObjCInterface() => 'objcInterfaces', ObjCProtocol() => 'objcProtocols', diff --git a/pkgs/ffigen/test/large_integration_tests/large_test.dart b/pkgs/ffigen/test/large_integration_tests/large_test.dart index 6228bf2ce4..31e28c0b0a 100644 --- a/pkgs/ffigen/test/large_integration_tests/large_test.dart +++ b/pkgs/ffigen/test/large_integration_tests/large_test.dart @@ -67,14 +67,14 @@ void main() { : null, visitors: [ Visitor( - visitFunc: (node) => node.isIncluded = true, - visitStruct: (node) => node.isIncluded = true, - visitUnion: (node) => node.isIncluded = true, - visitEnum: (node) => node.isIncluded = true, - visitUnnamedEnumConstant: (node) => node.isIncluded = true, - visitGlobal: (node) => node.isIncluded = true, - visitMacro: (node) => node.isIncluded = true, - visitTypealias: (node) => node.isIncluded = true, + func: (node) => node.isIncluded = true, + struct: (node) => node.isIncluded = true, + union: (node) => node.isIncluded = true, + enumClass: (node) => node.isIncluded = true, + unnamedEnumConstant: (node) => node.isIncluded = true, + global: (node) => node.isIncluded = true, + macroConstant: (node) => node.isIncluded = true, + typealias: (node) => node.isIncluded = true, ), ], ); @@ -155,14 +155,14 @@ void main() { ), visitors: [ Visitor( - visitFunc: (node) => node.isIncluded = true, - visitStruct: (node) => node.isIncluded = true, - visitUnion: (node) => node.isIncluded = true, - visitEnum: (node) => node.isIncluded = true, - visitUnnamedEnumConstant: (node) => node.isIncluded = true, - visitGlobal: (node) => node.isIncluded = true, - visitMacro: (node) => node.isIncluded = true, - visitTypealias: (node) => node.isIncluded = true, + func: (node) => node.isIncluded = true, + struct: (node) => node.isIncluded = true, + union: (node) => node.isIncluded = true, + enumClass: (node) => node.isIncluded = true, + unnamedEnumConstant: (node) => node.isIncluded = true, + global: (node) => node.isIncluded = true, + macroConstant: (node) => node.isIncluded = true, + typealias: (node) => node.isIncluded = true, ), ], ); @@ -205,7 +205,7 @@ void main() { structs: const Structs(dependencies: CompoundDependencies.full), visitors: [ Visitor( - visitFunc: (node) { + func: (node) { if ({ 'sqlite3_vmprintf', 'sqlite3_vsnprintf', @@ -216,25 +216,25 @@ void main() { node.isIncluded = true; } }, - visitStruct: (node) { + struct: (node) { if (vaRegex.hasMatch(node.originalName)) { node.isIncluded = false; } else { node.isIncluded = true; } }, - visitTypealias: (node) { + typealias: (node) { if (vaRegex.hasMatch(node.originalName)) { node.isIncluded = false; } else { node.isIncluded = true; } }, - visitUnion: (node) => node.isIncluded = true, - visitEnum: (node) => node.isIncluded = true, - visitUnnamedEnumConstant: (node) => node.isIncluded = true, - visitGlobal: (node) => node.isIncluded = true, - visitMacro: (node) => node.isIncluded = true, + union: (node) => node.isIncluded = true, + enumClass: (node) => node.isIncluded = true, + unnamedEnumConstant: (node) => node.isIncluded = true, + global: (node) => node.isIncluded = true, + macroConstant: (node) => node.isIncluded = true, ), ], ); diff --git a/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart b/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart index 7f6eeef9ea..88087b95ab 100644 --- a/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart +++ b/pkgs/ffigen/test/native_cpp_test/verify_bindings_test.dart @@ -54,7 +54,7 @@ void main() { cpp: const Cpp(), visitors: [ Visitor( - visitCppClass: (node) => node.isIncluded = { + cppClass: (node) => node.isIncluded = { 'Animal', 'FinalizerTestSubject', }.contains(node.originalName), @@ -77,7 +77,7 @@ void main() { cpp: const Cpp(), visitors: [ Visitor( - visitCppClass: (node) => node.isIncluded = { + cppClass: (node) => node.isIncluded = { 'Node', 'NodeManager', 'NodeContainer', diff --git a/pkgs/ffigen/test/native_objc_test/deprecated_test.dart b/pkgs/ffigen/test/native_objc_test/deprecated_test.dart index e662d724b9..56fb93381e 100644 --- a/pkgs/ffigen/test/native_objc_test/deprecated_test.dart +++ b/pkgs/ffigen/test/native_objc_test/deprecated_test.dart @@ -50,35 +50,35 @@ String bindingsForVersion({Versions? iosVers, Versions? macosVers}) { ), visitors: [ Visitor( - visitObjCInterface: (node) => node.isIncluded = { + objCInterface: (node) => node.isIncluded = { 'DeprecatedInterfaceMethods', 'DeprecatedInterface', }.contains(node.originalName), - visitObjCProtocol: (node) => node.isIncluded = { + objCProtocol: (node) => node.isIncluded = { 'DeprecatedProtocolMethods', 'DeprecatedProtocol', }.contains(node.originalName), - visitObjCCategory: (node) => node.isIncluded = { + objCCategory: (node) => node.isIncluded = { 'DeprecatedCategoryMethods', 'DeprecatedCategory', }.contains(node.originalName), - visitFunc: (node) => node.isIncluded = { + func: (node) => node.isIncluded = { 'normalFunction', 'deprecatedFunction', }.contains(node.originalName), - visitStruct: (node) => node.isIncluded = { + struct: (node) => node.isIncluded = { 'NormalStruct', 'DeprecatedStruct', }.contains(node.originalName), - visitUnion: (node) => node.isIncluded = { + union: (node) => node.isIncluded = { 'NormalUnion', 'DeprecatedUnion', }.contains(node.originalName), - visitEnum: (node) => node.isIncluded = { + enumClass: (node) => node.isIncluded = { 'NormalEnum', 'DeprecatedEnum', }.contains(node.originalName), - visitUnnamedEnumConstant: (node) => node.isIncluded = { + unnamedEnumConstant: (node) => node.isIncluded = { 'normalUnnamedEnum', 'deprecatedUnnamedEnum', }.contains(node.originalName), diff --git a/pkgs/ffigen/test/native_objc_test/ns_range_test.dart b/pkgs/ffigen/test/native_objc_test/ns_range_test.dart index eb688006e5..f383514e57 100644 --- a/pkgs/ffigen/test/native_objc_test/ns_range_test.dart +++ b/pkgs/ffigen/test/native_objc_test/ns_range_test.dart @@ -49,7 +49,7 @@ void main() { objectiveC: const ObjectiveC(), visitors: [ Visitor( - visitObjCInterface: (node) => + objCInterface: (node) => node.isIncluded = node.originalName == 'SFTranscriptionSegment', ), ], diff --git a/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart b/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart index a04804b204..9b6a514473 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_unavailable_test.dart @@ -50,7 +50,7 @@ void main() { objectiveC: const ObjectiveC(), visitors: [ Visitor( - visitObjCInterface: (node) => + objCInterface: (node) => node.isIncluded = node.originalName == 'Animal', ), ], diff --git a/pkgs/ffigen/test/native_objc_test/transitive_test.dart b/pkgs/ffigen/test/native_objc_test/transitive_test.dart index 8352150495..3232e7b0ed 100644 --- a/pkgs/ffigen/test/native_objc_test/transitive_test.dart +++ b/pkgs/ffigen/test/native_objc_test/transitive_test.dart @@ -58,15 +58,15 @@ String generate({ ), visitors: [ Visitor( - visitObjCInterface: (node) => node.isIncluded = { + objCInterface: (node) => node.isIncluded = { 'DirectlyIncluded', 'DirectlyIncludedWithProtocol', 'DirectlyIncludedIntForCat', 'Bug2935DirectInterface', }.contains(node.originalName), - visitObjCProtocol: (node) => + objCProtocol: (node) => node.isIncluded = node.originalName == 'DirectlyIncludedProtocol', - visitObjCCategory: (node) => + objCCategory: (node) => node.isIncluded = node.originalName == 'DirectlyIncludedCategory', ), ], diff --git a/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart b/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart index d3c972634d..5d79a1e66a 100644 --- a/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart +++ b/pkgs/ffigen/test/unit_tests/renaming_visitor_test.dart @@ -470,19 +470,19 @@ objc-interfaces: final visitedParams = []; final visitor = public_ast.Visitor( - visitFunc: (node) { + func: (node) { visitedFuncs.add(node.name); if (node.name == 'c_foo') { node.name = 'dartFoo'; } }, - visitStruct: (node) { + struct: (node) { visitedStructs.add(node.name); if (node.name == 'c_struct') { node.name = 'DartStruct'; } }, - visitParam: (node) { + param: (node) { visitedParams.add(node.name); if (node.name == 'arg_0') { node.name = 'renamedArg0'; diff --git a/pkgs/hooks_runner/test_data/treeshaking_dylib_record_use/tool/ffigen.dart b/pkgs/hooks_runner/test_data/treeshaking_dylib_record_use/tool/ffigen.dart index c2d189ff9a..e96c4be3d4 100644 --- a/pkgs/hooks_runner/test_data/treeshaking_dylib_record_use/tool/ffigen.dart +++ b/pkgs/hooks_runner/test_data/treeshaking_dylib_record_use/tool/ffigen.dart @@ -19,7 +19,7 @@ void main() { ), visitors: [ Visitor( - visitFunc: (node) => node.isIncluded = true, + func: (node) => node.isIncluded = true, ), ], output: Output( @@ -48,7 +48,7 @@ void main() { ), visitors: [ Visitor( - visitFunc: (node) => node.isIncluded = true, + func: (node) => node.isIncluded = true, ), ], output: Output( diff --git a/pkgs/swiftgen/example/generate_code.dart b/pkgs/swiftgen/example/generate_code.dart index 35abbbbe4e..553c76fdfa 100644 --- a/pkgs/swiftgen/example/generate_code.dart +++ b/pkgs/swiftgen/example/generate_code.dart @@ -49,7 +49,7 @@ Future main() async { ), visitors: [ fg.Visitor( - visitObjCInterface: (node) { + objCInterface: (node) { if (node.name == 'AVAudioPlayerWrapper') { node.isIncluded = true; } diff --git a/pkgs/swiftgen/test/integration/util.dart b/pkgs/swiftgen/test/integration/util.dart index 7e4b598ee2..74eff1420e 100644 --- a/pkgs/swiftgen/test/integration/util.dart +++ b/pkgs/swiftgen/test/integration/util.dart @@ -83,12 +83,12 @@ class TestGenerator { ffigen: FfiGeneratorOptions( visitors: [ fg.Visitor( - visitObjCInterface: (node) { + objCInterface: (node) { if (node.name.startsWith('Test')) { node.isIncluded = true; } }, - visitObjCProtocol: (node) { + objCProtocol: (node) { if (node.name.startsWith('Test')) { node.isIncluded = true; } From cd2c6b7841b4d166d1455546f0d9771d2dd72bc5 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 17 Aug 2026 13:23:17 +1000 Subject: [PATCH 52/54] clean up --- pkgs/ffigen/lib/src/code_generator/constant.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/constant.dart b/pkgs/ffigen/lib/src/code_generator/constant.dart index 12bc5b7ebc..e74ab4a87a 100644 --- a/pkgs/ffigen/lib/src/code_generator/constant.dart +++ b/pkgs/ffigen/lib/src/code_generator/constant.dart @@ -64,7 +64,7 @@ abstract class Constant extends NoLookUpBinding { } } -/// A constant defined by an unnamed enum. +/// A [Constant] defined by an unnamed enum. class UnnamedEnumConstant extends Constant { UnnamedEnumConstant({ super.usr, @@ -84,7 +84,7 @@ class UnnamedEnumConstant extends Constant { visitation.visitUnnamedEnumConstant(this); } -/// A constant defined by a macro. +/// A [Constant] defined by a macro. class MacroConstant extends Constant { MacroConstant({ super.usr, From 8b13691092d278db19200a4ce257814ec996656a Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 17 Aug 2026 13:37:05 +1000 Subject: [PATCH 53/54] clean up --- pkgs/ffigen/lib/src/code_generator/library.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/library.dart b/pkgs/ffigen/lib/src/code_generator/library.dart index dfe5fe47cc..c0df0abfba 100644 --- a/pkgs/ffigen/lib/src/code_generator/library.dart +++ b/pkgs/ffigen/lib/src/code_generator/library.dart @@ -64,11 +64,8 @@ class Library { : null; for (final binding in bindings) { - if (binding is LookUpBinding) { - if (binding is Global && binding.isConst) { - noLookUpBindings.add(binding); - continue; - } + // All LookUpBindings are look-up bindings, except const Globals. + if (binding is LookUpBinding && !(binding is Global && binding.isConst)) { final loadFromNativeAsset = binding.loadFromNativeAsset; // At the moment, all bindings share their native config. From 19ee8df4054c57e132e155b061a3ae9e52c7f061 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 17 Aug 2026 13:44:38 +1000 Subject: [PATCH 54/54] clean up --- .../ffigen/lib/src/code_generator/global.dart | 29 ++++------ .../header_parser/sub_parsers/var_parser.dart | 14 ++--- pkgs/ffigen/lib/src/visitor/visitor.dart | 2 +- .../code_generator_test.dart | 25 ++------- .../static_const_test.dart | 56 ++++++++----------- 5 files changed, 42 insertions(+), 84 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/global.dart b/pkgs/ffigen/lib/src/code_generator/global.dart index 448e67e2dc..aceda8d69b 100644 --- a/pkgs/ffigen/lib/src/code_generator/global.dart +++ b/pkgs/ffigen/lib/src/code_generator/global.dart @@ -15,23 +15,6 @@ import 'type.dart'; import 'utils.dart'; import 'writer.dart'; -/// A constant value for a [Global]. -class ConstantValue { - final String rawType; - final String rawValue; - - const ConstantValue({required this.rawType, required this.rawValue}); - - @override - bool operator ==(Object other) => - other is ConstantValue && - other.rawType == rawType && - other.rawValue == rawValue; - - @override - int get hashCode => Object.hash(rawType, rawValue); -} - /// A binding to a global variable /// /// For a C global variable - @@ -77,8 +60,8 @@ class Global extends LookUpBinding with HasLocalScope { s.write(makeDartDoc(dartDoc)); if (isConst) { s.write( - 'const ${constantValue!.rawType} $globalVarName = ' - '${constantValue!.rawValue};\n\n', + 'const ${constantValue!.type} $globalVarName = ' + '${constantValue!.value};\n\n', ); return BindingString( type: BindingStringType.global, @@ -215,3 +198,11 @@ class Global extends LookUpBinding with HasLocalScope { @override void visit(Visitation visitation) => visitation.visitGlobal(this); } + +/// A constant value for a [Global]. +class ConstantValue { + final String type; + final String value; + + const ConstantValue({required this.type, required this.value}); +} diff --git a/pkgs/ffigen/lib/src/header_parser/sub_parsers/var_parser.dart b/pkgs/ffigen/lib/src/header_parser/sub_parsers/var_parser.dart index 99792b9ef4..ac2dd2364e 100644 --- a/pkgs/ffigen/lib/src/header_parser/sub_parsers/var_parser.dart +++ b/pkgs/ffigen/lib/src/header_parser/sub_parsers/var_parser.dart @@ -33,25 +33,19 @@ Binding? parseVarDeclaration(Context context, clang_types.CXCursor cursor) { switch (evalKind) { case clang_types.CXEvalResultKind.CXEval_Int: final value = clang.clang_EvalResult_getAsLongLong(evalResult); - constantValue = ConstantValue( - rawType: 'int', - rawValue: value.toString(), - ); + constantValue = ConstantValue(type: 'int', value: value.toString()); break; case clang_types.CXEvalResultKind.CXEval_Float: final value = clang.clang_EvalResult_getAsDouble(evalResult); constantValue = ConstantValue( - rawType: 'double', - rawValue: writeDoubleAsString(value), + type: 'double', + value: writeDoubleAsString(value), ); break; case clang_types.CXEvalResultKind.CXEval_StrLiteral: final value = clang.clang_EvalResult_getAsStr(evalResult); final rawValue = getWrittenStringRepresentation(name, value, context); - constantValue = ConstantValue( - rawType: 'String', - rawValue: "'$rawValue'", - ); + constantValue = ConstantValue(type: 'String', value: "'$rawValue'"); break; } clang.clang_EvalResult_dispose(evalResult); diff --git a/pkgs/ffigen/lib/src/visitor/visitor.dart b/pkgs/ffigen/lib/src/visitor/visitor.dart index c66ea5aaec..12fc52c076 100644 --- a/pkgs/ffigen/lib/src/visitor/visitor.dart +++ b/pkgs/ffigen/lib/src/visitor/visitor.dart @@ -91,10 +91,10 @@ abstract class Visitation { void visitCppMethod(CppMethod node) => visitAstNode(node); void visitFunc(Func node) => visitLookUpBinding(node); void visitFunctionType(FunctionType node) => visitType(node); - void visitConstant(Constant node) => visitNoLookUpBinding(node); void visitMacroConstant(MacroConstant node) => visitConstant(node); void visitUnnamedEnumConstant(UnnamedEnumConstant node) => visitConstant(node); + void visitConstant(Constant node) => visitNoLookUpBinding(node); void visitGlobal(Global node) => visitLookUpBinding(node); void visitTypealias(Typealias node) => visitBindingType(node); void visitPointerType(PointerType node) => visitType(node); diff --git a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart index 31419799f2..8d1691bca3 100644 --- a/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart +++ b/pkgs/ffigen/test/code_generator_tests/code_generator_test.dart @@ -352,16 +352,13 @@ void main() { name: 'test1', type: NativeType(SupportedNativeType.int32), constant: true, - constantValue: const ConstantValue(rawType: 'int', rawValue: '20'), + constantValue: const ConstantValue(type: 'int', value: '20'), ), Global( name: 'test2', type: NativeType(SupportedNativeType.double), constant: true, - constantValue: const ConstantValue( - rawType: 'double', - rawValue: '20.0', - ), + constantValue: const ConstantValue(type: 'double', value: '20.0'), ), ], context), ); @@ -386,7 +383,7 @@ void main() { name: 'constWithAddress', type: NativeType(SupportedNativeType.int32), constant: true, - constantValue: const ConstantValue(rawType: 'int', rawValue: '42'), + constantValue: const ConstantValue(type: 'int', value: '42'), exposeSymbolAddress: true, ); expect(g.isConst, isFalse); @@ -424,30 +421,18 @@ void main() { } }); - test('ConstantValue equality and hashCode', () { - const v1 = ConstantValue(rawType: 'int', rawValue: '10'); - const v2 = ConstantValue(rawType: 'int', rawValue: '10'); - const v3 = ConstantValue(rawType: 'double', rawValue: '10'); - const v4 = ConstantValue(rawType: 'int', rawValue: '20'); - - expect(v1, equals(v2)); - expect(v1.hashCode, equals(v2.hashCode)); - expect(v1, isNot(equals(v3))); - expect(v1, isNot(equals(v4))); - }); - test('Global.isConst', () { final g1 = Global( name: 'g1', type: intType, - constantValue: const ConstantValue(rawType: 'int', rawValue: '1'), + constantValue: const ConstantValue(type: 'int', value: '1'), ); expect(g1.isConst, isTrue); final g2 = Global( name: 'g2', type: intType, - constantValue: const ConstantValue(rawType: 'int', rawValue: '1'), + constantValue: const ConstantValue(type: 'int', value: '1'), exposeSymbolAddress: true, ); expect(g2.isConst, isFalse); diff --git a/pkgs/ffigen/test/header_parser_tests/static_const_test.dart b/pkgs/ffigen/test/header_parser_tests/static_const_test.dart index 0ff8869586..a405e658af 100644 --- a/pkgs/ffigen/test/header_parser_tests/static_const_test.dart +++ b/pkgs/ffigen/test/header_parser_tests/static_const_test.dart @@ -195,90 +195,78 @@ Library expectedLibrary() { name: 'TEST_INT', type: intType, constant: true, - constantValue: const ConstantValue(rawType: 'int', rawValue: '10'), + constantValue: const ConstantValue(type: 'int', value: '10'), ), Global( name: 'TEST_NEGATIVE_INT', type: intType, constant: true, - constantValue: const ConstantValue(rawType: 'int', rawValue: '-10'), + constantValue: const ConstantValue(type: 'int', value: '-10'), ), Global( name: 'TEST_DOUBLE', type: doubleType, constant: true, - constantValue: const ConstantValue(rawType: 'double', rawValue: '3.14'), + constantValue: const ConstantValue(type: 'double', value: '3.14'), ), Global( name: 'TEST_NEGATIVE_DOUBLE', type: doubleType, constant: true, - constantValue: const ConstantValue( - rawType: 'double', - rawValue: '-3.14', - ), + constantValue: const ConstantValue(type: 'double', value: '-3.14'), ), Global( name: 'TEST_EXPRESSION', type: intType, constant: true, - constantValue: const ConstantValue(rawType: 'int', rawValue: '10'), + constantValue: const ConstantValue(type: 'int', value: '10'), ), Global( name: 'TEST_HEX', type: intType, constant: true, - constantValue: const ConstantValue(rawType: 'int', rawValue: '255'), + constantValue: const ConstantValue(type: 'int', value: '255'), ), Global( name: 'TEST_NEGATIVE_HEX', type: intType, constant: true, - constantValue: const ConstantValue(rawType: 'int', rawValue: '-255'), + constantValue: const ConstantValue(type: 'int', value: '-255'), ), Global( name: 'TEST_STRING', type: PointerType(charType), constant: true, - constantValue: const ConstantValue( - rawType: 'String', - rawValue: "'test'", - ), + constantValue: const ConstantValue(type: 'String', value: "'test'"), ), Global( name: 'TEST_STRING_SPECIAL', type: PointerType(charType), constant: true, constantValue: const ConstantValue( - rawType: 'String', - rawValue: r"'\$dollar'", + type: 'String', + value: r"'\$dollar'", ), ), Global( name: 'TEST_STRING_QUOTES', type: PointerType(charType), constant: true, - constantValue: const ConstantValue( - rawType: 'String', - rawValue: r"'test\'s'", - ), + constantValue: const ConstantValue(type: 'String', value: r"'test\'s'"), ), Global( name: 'TEST_STRING_BACKSLASH', type: PointerType(charType), constant: true, - constantValue: const ConstantValue( - rawType: 'String', - rawValue: r"'test\\'", - ), + constantValue: const ConstantValue(type: 'String', value: r"'test\\'"), ), Global( name: 'TEST_STRING_CONTROLS', type: PointerType(charType), constant: true, constantValue: const ConstantValue( - rawType: 'String', - rawValue: r"'hello\n\t\r\v\b'", + type: 'String', + value: r"'hello\n\t\r\v\b'", ), ), Global( @@ -286,8 +274,8 @@ Library expectedLibrary() { type: doubleType, constant: true, constantValue: const ConstantValue( - rawType: 'double', - rawValue: strings.doubleInfinity, + type: 'double', + value: strings.doubleInfinity, ), ), Global( @@ -295,8 +283,8 @@ Library expectedLibrary() { type: doubleType, constant: true, constantValue: const ConstantValue( - rawType: 'double', - rawValue: strings.doubleNegativeInfinity, + type: 'double', + value: strings.doubleNegativeInfinity, ), ), Global( @@ -304,8 +292,8 @@ Library expectedLibrary() { type: doubleType, constant: true, constantValue: const ConstantValue( - rawType: 'double', - rawValue: strings.doubleNaN, + type: 'double', + value: strings.doubleNaN, ), ), myFlags, @@ -314,13 +302,13 @@ Library expectedLibrary() { name: 'MyBufferUsage_None', type: myBufferUsage, constant: true, - constantValue: const ConstantValue(rawType: 'int', rawValue: '0'), + constantValue: const ConstantValue(type: 'int', value: '0'), ), Global( name: 'MyBufferUsage_MapRead', type: myBufferUsage, constant: true, - constantValue: const ConstantValue(rawType: 'int', rawValue: '1'), + constantValue: const ConstantValue(type: 'int', value: '1'), ), Global( name: 'TEST_STRING_ARRAY',